var requirejs,require,define;(function(global,setTimeout){var req,s,head,baseElement,dataMain,src,interactiveScript,currentlyAddingScript,mainScript,subPath,version='2.3.6',commentRegExp=/\/\*[\s\S]*?\*\/|([^:"'=]|^)\/\/.*$/mg,cjsRequireRegExp=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,jsSuffixRegExp=/\.js$/,currDirRegExp=/^\.\//,op=Object.prototype,ostring=op.toString,hasOwn=op.hasOwnProperty,isBrowser=!!(typeof window!=='undefined'&&typeof navigator!=='undefined'&&window.document),isWebWorker=!isBrowser&&typeof importScripts!=='undefined',readyRegExp=isBrowser&&navigator.platform==='PLAYSTATION 3'?/^complete$/:/^(complete|loaded)$/,defContextName='_',isOpera=typeof opera!=='undefined'&&opera.toString()==='[object Opera]',contexts={},cfg={},globalDefQueue=[],useInteractive=false;function commentReplace(match,singlePrefix){return singlePrefix||'';}
function isFunction(it){return ostring.call(it)==='[object Function]';}
function isArray(it){return ostring.call(it)==='[object Array]';}
function each(ary,func){if(ary){var i;for(i=0;i<ary.length;i+=1){if(ary[i]&&func(ary[i],i,ary)){break;}}}}
function eachReverse(ary,func){if(ary){var i;for(i=ary.length-1;i>-1;i-=1){if(ary[i]&&func(ary[i],i,ary)){break;}}}}
function hasProp(obj,prop){return hasOwn.call(obj,prop);}
function getOwn(obj,prop){return hasProp(obj,prop)&&obj[prop];}
function eachProp(obj,func){var prop;for(prop in obj){if(hasProp(obj,prop)){if(func(obj[prop],prop)){break;}}}}
function mixin(target,source,force,deepStringMixin){if(source){eachProp(source,function(value,prop){if(force||!hasProp(target,prop)){if(deepStringMixin&&typeof value==='object'&&value&&!isArray(value)&&!isFunction(value)&&!(value instanceof RegExp)){if(!target[prop]){target[prop]={};}
mixin(target[prop],value,force,deepStringMixin);}else{target[prop]=value;}}});}
return target;}
function bind(obj,fn){return function(){return fn.apply(obj,arguments);};}
function scripts(){return document.getElementsByTagName('script');}
function defaultOnError(err){throw err;}
function getGlobal(value){if(!value){return value;}
var g=global;each(value.split('.'),function(part){g=g[part];});return g;}
function makeError(id,msg,err,requireModules){var e=new Error(msg+'\nhttps://requirejs.org/docs/errors.html#'+id);e.requireType=id;e.requireModules=requireModules;if(err){e.originalError=err;}
return e;}
if(typeof define!=='undefined'){return;}
if(typeof requirejs!=='undefined'){if(isFunction(requirejs)){return;}
cfg=requirejs;requirejs=undefined;}
if(typeof require!=='undefined'&&!isFunction(require)){cfg=require;require=undefined;}
function newContext(contextName){var inCheckLoaded,Module,context,handlers,checkLoadedTimeoutId,config={waitSeconds:7,baseUrl:'./',paths:{},bundles:{},pkgs:{},shim:{},config:{}},registry={},enabledRegistry={},undefEvents={},defQueue=[],defined={},urlFetched={},bundlesMap={},requireCounter=1,unnormalizedCounter=1;function trimDots(ary){var i,part;for(i=0;i<ary.length;i++){part=ary[i];if(part==='.'){ary.splice(i,1);i-=1;}else if(part==='..'){if(i===0||(i===1&&ary[2]==='..')||ary[i-1]==='..'){continue;}else if(i>0){ary.splice(i-1,2);i-=2;}}}}
function normalize(name,baseName,applyMap){var pkgMain,mapValue,nameParts,i,j,nameSegment,lastIndex,foundMap,foundI,foundStarMap,starI,normalizedBaseParts,baseParts=(baseName&&baseName.split('/')),map=config.map,starMap=map&&map['*'];if(name){name=name.split('/');lastIndex=name.length-1;if(config.nodeIdCompat&&jsSuffixRegExp.test(name[lastIndex])){name[lastIndex]=name[lastIndex].replace(jsSuffixRegExp,'');}
if(name[0].charAt(0)==='.'&&baseParts){normalizedBaseParts=baseParts.slice(0,baseParts.length-1);name=normalizedBaseParts.concat(name);}
trimDots(name);name=name.join('/');}
if(applyMap&&map&&(baseParts||starMap)){nameParts=name.split('/');outerLoop:for(i=nameParts.length;i>0;i-=1){nameSegment=nameParts.slice(0,i).join('/');if(baseParts){for(j=baseParts.length;j>0;j-=1){mapValue=getOwn(map,baseParts.slice(0,j).join('/'));if(mapValue){mapValue=getOwn(mapValue,nameSegment);if(mapValue){foundMap=mapValue;foundI=i;break outerLoop;}}}}
if(!foundStarMap&&starMap&&getOwn(starMap,nameSegment)){foundStarMap=getOwn(starMap,nameSegment);starI=i;}}
if(!foundMap&&foundStarMap){foundMap=foundStarMap;foundI=starI;}
if(foundMap){nameParts.splice(0,foundI,foundMap);name=nameParts.join('/');}}
pkgMain=getOwn(config.pkgs,name);return pkgMain?pkgMain:name;}
function removeScript(name){if(isBrowser){each(scripts(),function(scriptNode){if(scriptNode.getAttribute('data-requiremodule')===name&&scriptNode.getAttribute('data-requirecontext')===context.contextName){scriptNode.parentNode.removeChild(scriptNode);return true;}});}}
function hasPathFallback(id){var pathConfig=getOwn(config.paths,id);if(pathConfig&&isArray(pathConfig)&&pathConfig.length>1){pathConfig.shift();context.require.undef(id);context.makeRequire(null,{skipMap:true})([id]);return true;}}
function splitPrefix(name){var prefix,index=name?name.indexOf('!'):-1;if(index>-1){prefix=name.substring(0,index);name=name.substring(index+1,name.length);}
return[prefix,name];}
function makeModuleMap(name,parentModuleMap,isNormalized,applyMap){var url,pluginModule,suffix,nameParts,prefix=null,parentName=parentModuleMap?parentModuleMap.name:null,originalName=name,isDefine=true,normalizedName='';if(!name){isDefine=false;name='_@r'+(requireCounter+=1);}
nameParts=splitPrefix(name);prefix=nameParts[0];name=nameParts[1];if(prefix){prefix=normalize(prefix,parentName,applyMap);pluginModule=getOwn(defined,prefix);}
if(name){if(prefix){if(isNormalized){normalizedName=name;}else if(pluginModule&&pluginModule.normalize){normalizedName=pluginModule.normalize(name,function(name){return normalize(name,parentName,applyMap);});}else{normalizedName=name.indexOf('!')===-1?normalize(name,parentName,applyMap):name;}}else{normalizedName=normalize(name,parentName,applyMap);nameParts=splitPrefix(normalizedName);prefix=nameParts[0];normalizedName=nameParts[1];isNormalized=true;url=context.nameToUrl(normalizedName);}}
suffix=prefix&&!pluginModule&&!isNormalized?'_unnormalized'+(unnormalizedCounter+=1):'';return{prefix:prefix,name:normalizedName,parentMap:parentModuleMap,unnormalized:!!suffix,url:url,originalName:originalName,isDefine:isDefine,id:(prefix?prefix+'!'+normalizedName:normalizedName)+suffix};}
function getModule(depMap){var id=depMap.id,mod=getOwn(registry,id);if(!mod){mod=registry[id]=new context.Module(depMap);}
return mod;}
function on(depMap,name,fn){var id=depMap.id,mod=getOwn(registry,id);if(hasProp(defined,id)&&(!mod||mod.defineEmitComplete)){if(name==='defined'){fn(defined[id]);}}else{mod=getModule(depMap);if(mod.error&&name==='error'){fn(mod.error);}else{mod.on(name,fn);}}}
function onError(err,errback){var ids=err.requireModules,notified=false;if(errback){errback(err);}else{each(ids,function(id){var mod=getOwn(registry,id);if(mod){mod.error=err;if(mod.events.error){notified=true;mod.emit('error',err);}}});if(!notified){req.onError(err);}}}
function takeGlobalQueue(){if(globalDefQueue.length){each(globalDefQueue,function(queueItem){var id=queueItem[0];if(typeof id==='string'){context.defQueueMap[id]=true;}
defQueue.push(queueItem);});globalDefQueue=[];}}
handlers={'require':function(mod){if(mod.require){return mod.require;}else{return(mod.require=context.makeRequire(mod.map));}},'exports':function(mod){mod.usingExports=true;if(mod.map.isDefine){if(mod.exports){return(defined[mod.map.id]=mod.exports);}else{return(mod.exports=defined[mod.map.id]={});}}},'module':function(mod){if(mod.module){return mod.module;}else{return(mod.module={id:mod.map.id,uri:mod.map.url,config:function(){return getOwn(config.config,mod.map.id)||{};},exports:mod.exports||(mod.exports={})});}}};function cleanRegistry(id){delete registry[id];delete enabledRegistry[id];}
function breakCycle(mod,traced,processed){var id=mod.map.id;if(mod.error){mod.emit('error',mod.error);}else{traced[id]=true;each(mod.depMaps,function(depMap,i){var depId=depMap.id,dep=getOwn(registry,depId);if(dep&&!mod.depMatched[i]&&!processed[depId]){if(getOwn(traced,depId)){mod.defineDep(i,defined[depId]);mod.check();}else{breakCycle(dep,traced,processed);}}});processed[id]=true;}}
function checkLoaded(){var err,usingPathFallback,waitInterval=config.waitSeconds*1000,expired=waitInterval&&(context.startTime+waitInterval)<new Date().getTime(),noLoads=[],reqCalls=[],stillLoading=false,needCycleCheck=true;if(inCheckLoaded){return;}
inCheckLoaded=true;eachProp(enabledRegistry,function(mod){var map=mod.map,modId=map.id;if(!mod.enabled){return;}
if(!map.isDefine){reqCalls.push(mod);}
if(!mod.error){if(!mod.inited&&expired){if(hasPathFallback(modId)){usingPathFallback=true;stillLoading=true;}else{noLoads.push(modId);removeScript(modId);}}else if(!mod.inited&&mod.fetched&&map.isDefine){stillLoading=true;if(!map.prefix){return(needCycleCheck=false);}}}});if(expired&&noLoads.length){err=makeError('timeout','Load timeout for modules: '+noLoads,null,noLoads);err.contextName=context.contextName;return onError(err);}
if(needCycleCheck){each(reqCalls,function(mod){breakCycle(mod,{},{});});}
if((!expired||usingPathFallback)&&stillLoading){if((isBrowser||isWebWorker)&&!checkLoadedTimeoutId){checkLoadedTimeoutId=setTimeout(function(){checkLoadedTimeoutId=0;checkLoaded();},50);}}
inCheckLoaded=false;}
Module=function(map){this.events=getOwn(undefEvents,map.id)||{};this.map=map;this.shim=getOwn(config.shim,map.id);this.depExports=[];this.depMaps=[];this.depMatched=[];this.pluginMaps={};this.depCount=0;};Module.prototype={init:function(depMaps,factory,errback,options){options=options||{};if(this.inited){return;}
this.factory=factory;if(errback){this.on('error',errback);}else if(this.events.error){errback=bind(this,function(err){this.emit('error',err);});}
this.depMaps=depMaps&&depMaps.slice(0);this.errback=errback;this.inited=true;this.ignore=options.ignore;if(options.enabled||this.enabled){this.enable();}else{this.check();}},defineDep:function(i,depExports){if(!this.depMatched[i]){this.depMatched[i]=true;this.depCount-=1;this.depExports[i]=depExports;}},fetch:function(){if(this.fetched){return;}
this.fetched=true;context.startTime=(new Date()).getTime();var map=this.map;if(this.shim){context.makeRequire(this.map,{enableBuildCallback:true})(this.shim.deps||[],bind(this,function(){return map.prefix?this.callPlugin():this.load();}));}else{return map.prefix?this.callPlugin():this.load();}},load:function(){var url=this.map.url;if(!urlFetched[url]){urlFetched[url]=true;context.load(this.map.id,url);}},check:function(){if(!this.enabled||this.enabling){return;}
var err,cjsModule,id=this.map.id,depExports=this.depExports,exports=this.exports,factory=this.factory;if(!this.inited){if(!hasProp(context.defQueueMap,id)){this.fetch();}}else if(this.error){this.emit('error',this.error);}else if(!this.defining){this.defining=true;if(this.depCount<1&&!this.defined){if(isFunction(factory)){if((this.events.error&&this.map.isDefine)||req.onError!==defaultOnError){try{exports=context.execCb(id,factory,depExports,exports);}catch(e){err=e;}}else{exports=context.execCb(id,factory,depExports,exports);}
if(this.map.isDefine&&exports===undefined){cjsModule=this.module;if(cjsModule){exports=cjsModule.exports;}else if(this.usingExports){exports=this.exports;}}
if(err){err.requireMap=this.map;err.requireModules=this.map.isDefine?[this.map.id]:null;err.requireType=this.map.isDefine?'define':'require';return onError((this.error=err));}}else{exports=factory;}
this.exports=exports;if(this.map.isDefine&&!this.ignore){defined[id]=exports;if(req.onResourceLoad){var resLoadMaps=[];each(this.depMaps,function(depMap){resLoadMaps.push(depMap.normalizedMap||depMap);});req.onResourceLoad(context,this.map,resLoadMaps);}}
cleanRegistry(id);this.defined=true;}
this.defining=false;if(this.defined&&!this.defineEmitted){this.defineEmitted=true;this.emit('defined',this.exports);this.defineEmitComplete=true;}}},callPlugin:function(){var map=this.map,id=map.id,pluginMap=makeModuleMap(map.prefix);this.depMaps.push(pluginMap);on(pluginMap,'defined',bind(this,function(plugin){var load,normalizedMap,normalizedMod,bundleId=getOwn(bundlesMap,this.map.id),name=this.map.name,parentName=this.map.parentMap?this.map.parentMap.name:null,localRequire=context.makeRequire(map.parentMap,{enableBuildCallback:true});if(this.map.unnormalized){if(plugin.normalize){name=plugin.normalize(name,function(name){return normalize(name,parentName,true);})||'';}
normalizedMap=makeModuleMap(map.prefix+'!'+name,this.map.parentMap,true);on(normalizedMap,'defined',bind(this,function(value){this.map.normalizedMap=normalizedMap;this.init([],function(){return value;},null,{enabled:true,ignore:true});}));normalizedMod=getOwn(registry,normalizedMap.id);if(normalizedMod){this.depMaps.push(normalizedMap);if(this.events.error){normalizedMod.on('error',bind(this,function(err){this.emit('error',err);}));}
normalizedMod.enable();}
return;}
if(bundleId){this.map.url=context.nameToUrl(bundleId);this.load();return;}
load=bind(this,function(value){this.init([],function(){return value;},null,{enabled:true});});load.error=bind(this,function(err){this.inited=true;this.error=err;err.requireModules=[id];eachProp(registry,function(mod){if(mod.map.id.indexOf(id+'_unnormalized')===0){cleanRegistry(mod.map.id);}});onError(err);});load.fromText=bind(this,function(text,textAlt){var moduleName=map.name,moduleMap=makeModuleMap(moduleName),hasInteractive=useInteractive;if(textAlt){text=textAlt;}
if(hasInteractive){useInteractive=false;}
getModule(moduleMap);if(hasProp(config.config,id)){config.config[moduleName]=config.config[id];}
try{req.exec(text);}catch(e){return onError(makeError('fromtexteval','fromText eval for '+id+' failed: '+e,e,[id]));}
if(hasInteractive){useInteractive=true;}
this.depMaps.push(moduleMap);context.completeLoad(moduleName);localRequire([moduleName],load);});plugin.load(map.name,localRequire,load,config);}));context.enable(pluginMap,this);this.pluginMaps[pluginMap.id]=pluginMap;},enable:function(){enabledRegistry[this.map.id]=this;this.enabled=true;this.enabling=true;each(this.depMaps,bind(this,function(depMap,i){var id,mod,handler;if(typeof depMap==='string'){depMap=makeModuleMap(depMap,(this.map.isDefine?this.map:this.map.parentMap),false,!this.skipMap);this.depMaps[i]=depMap;handler=getOwn(handlers,depMap.id);if(handler){this.depExports[i]=handler(this);return;}
this.depCount+=1;on(depMap,'defined',bind(this,function(depExports){if(this.undefed){return;}
this.defineDep(i,depExports);this.check();}));if(this.errback){on(depMap,'error',bind(this,this.errback));}else if(this.events.error){on(depMap,'error',bind(this,function(err){this.emit('error',err);}));}}
id=depMap.id;mod=registry[id];if(!hasProp(handlers,id)&&mod&&!mod.enabled){context.enable(depMap,this);}}));eachProp(this.pluginMaps,bind(this,function(pluginMap){var mod=getOwn(registry,pluginMap.id);if(mod&&!mod.enabled){context.enable(pluginMap,this);}}));this.enabling=false;this.check();},on:function(name,cb){var cbs=this.events[name];if(!cbs){cbs=this.events[name]=[];}
cbs.push(cb);},emit:function(name,evt){each(this.events[name],function(cb){cb(evt);});if(name==='error'){delete this.events[name];}}};function callGetModule(args){if(!hasProp(defined,args[0])){getModule(makeModuleMap(args[0],null,true)).init(args[1],args[2]);}}
function removeListener(node,func,name,ieName){if(node.detachEvent&&!isOpera){if(ieName){node.detachEvent(ieName,func);}}else{node.removeEventListener(name,func,false);}}
function getScriptData(evt){var node=evt.currentTarget||evt.srcElement;removeListener(node,context.onScriptLoad,'load','onreadystatechange');removeListener(node,context.onScriptError,'error');return{node:node,id:node&&node.getAttribute('data-requiremodule')};}
function intakeDefines(){var args;takeGlobalQueue();while(defQueue.length){args=defQueue.shift();if(args[0]===null){return onError(makeError('mismatch','Mismatched anonymous define() module: '+
args[args.length-1]));}else{callGetModule(args);}}
context.defQueueMap={};}
context={config:config,contextName:contextName,registry:registry,defined:defined,urlFetched:urlFetched,defQueue:defQueue,defQueueMap:{},Module:Module,makeModuleMap:makeModuleMap,nextTick:req.nextTick,onError:onError,configure:function(cfg){if(cfg.baseUrl){if(cfg.baseUrl.charAt(cfg.baseUrl.length-1)!=='/'){cfg.baseUrl+='/';}}
if(typeof cfg.urlArgs==='string'){var urlArgs=cfg.urlArgs;cfg.urlArgs=function(id,url){return(url.indexOf('?')===-1?'?':'&')+urlArgs;};}
var shim=config.shim,objs={paths:true,bundles:true,config:true,map:true};eachProp(cfg,function(value,prop){if(objs[prop]){if(!config[prop]){config[prop]={};}
mixin(config[prop],value,true,true);}else{config[prop]=value;}});if(cfg.bundles){eachProp(cfg.bundles,function(value,prop){each(value,function(v){if(v!==prop){bundlesMap[v]=prop;}});});}
if(cfg.shim){eachProp(cfg.shim,function(value,id){if(isArray(value)){value={deps:value};}
if((value.exports||value.init)&&!value.exportsFn){value.exportsFn=context.makeShimExports(value);}
shim[id]=value;});config.shim=shim;}
if(cfg.packages){each(cfg.packages,function(pkgObj){var location,name;pkgObj=typeof pkgObj==='string'?{name:pkgObj}:pkgObj;name=pkgObj.name;location=pkgObj.location;if(location){config.paths[name]=pkgObj.location;}
config.pkgs[name]=pkgObj.name+'/'+(pkgObj.main||'main').replace(currDirRegExp,'').replace(jsSuffixRegExp,'');});}
eachProp(registry,function(mod,id){if(!mod.inited&&!mod.map.unnormalized){mod.map=makeModuleMap(id,null,true);}});if(cfg.deps||cfg.callback){context.require(cfg.deps||[],cfg.callback);}},makeShimExports:function(value){function fn(){var ret;if(value.init){ret=value.init.apply(global,arguments);}
return ret||(value.exports&&getGlobal(value.exports));}
return fn;},makeRequire:function(relMap,options){options=options||{};function localRequire(deps,callback,errback){var id,map,requireMod;if(options.enableBuildCallback&&callback&&isFunction(callback)){callback.__requireJsBuild=true;}
if(typeof deps==='string'){if(isFunction(callback)){return onError(makeError('requireargs','Invalid require call'),errback);}
if(relMap&&hasProp(handlers,deps)){return handlers[deps](registry[relMap.id]);}
if(req.get){return req.get(context,deps,relMap,localRequire);}
map=makeModuleMap(deps,relMap,false,true);id=map.id;if(!hasProp(defined,id)){return onError(makeError('notloaded','Module name "'+
id+'" has not been loaded yet for context: '+
contextName+
(relMap?'':'. Use require([])')));}
return defined[id];}
intakeDefines();context.nextTick(function(){intakeDefines();requireMod=getModule(makeModuleMap(null,relMap));requireMod.skipMap=options.skipMap;requireMod.init(deps,callback,errback,{enabled:true});checkLoaded();});return localRequire;}
mixin(localRequire,{isBrowser:isBrowser,toUrl:function(moduleNamePlusExt){var ext,index=moduleNamePlusExt.lastIndexOf('.'),segment=moduleNamePlusExt.split('/')[0],isRelative=segment==='.'||segment==='..';if(index!==-1&&(!isRelative||index>1)){ext=moduleNamePlusExt.substring(index,moduleNamePlusExt.length);moduleNamePlusExt=moduleNamePlusExt.substring(0,index);}
return context.nameToUrl(normalize(moduleNamePlusExt,relMap&&relMap.id,true),ext,true);},defined:function(id){return hasProp(defined,makeModuleMap(id,relMap,false,true).id);},specified:function(id){id=makeModuleMap(id,relMap,false,true).id;return hasProp(defined,id)||hasProp(registry,id);}});if(!relMap){localRequire.undef=function(id){takeGlobalQueue();var map=makeModuleMap(id,relMap,true),mod=getOwn(registry,id);mod.undefed=true;removeScript(id);delete defined[id];delete urlFetched[map.url];delete undefEvents[id];eachReverse(defQueue,function(args,i){if(args[0]===id){defQueue.splice(i,1);}});delete context.defQueueMap[id];if(mod){if(mod.events.defined){undefEvents[id]=mod.events;}
cleanRegistry(id);}};}
return localRequire;},enable:function(depMap){var mod=getOwn(registry,depMap.id);if(mod){getModule(depMap).enable();}},completeLoad:function(moduleName){var found,args,mod,shim=getOwn(config.shim,moduleName)||{},shExports=shim.exports;takeGlobalQueue();while(defQueue.length){args=defQueue.shift();if(args[0]===null){args[0]=moduleName;if(found){break;}
found=true;}else if(args[0]===moduleName){found=true;}
callGetModule(args);}
context.defQueueMap={};mod=getOwn(registry,moduleName);if(!found&&!hasProp(defined,moduleName)&&mod&&!mod.inited){if(config.enforceDefine&&(!shExports||!getGlobal(shExports))){if(hasPathFallback(moduleName)){return;}else{return onError(makeError('nodefine','No define call for '+moduleName,null,[moduleName]));}}else{callGetModule([moduleName,(shim.deps||[]),shim.exportsFn]);}}
checkLoaded();},nameToUrl:function(moduleName,ext,skipExt){var paths,syms,i,parentModule,url,parentPath,bundleId,pkgMain=getOwn(config.pkgs,moduleName);if(pkgMain){moduleName=pkgMain;}
bundleId=getOwn(bundlesMap,moduleName);if(bundleId){return context.nameToUrl(bundleId,ext,skipExt);}
if(req.jsExtRegExp.test(moduleName)){url=moduleName+(ext||'');}else{paths=config.paths;syms=moduleName.split('/');for(i=syms.length;i>0;i-=1){parentModule=syms.slice(0,i).join('/');parentPath=getOwn(paths,parentModule);if(parentPath){if(isArray(parentPath)){parentPath=parentPath[0];}
syms.splice(0,i,parentPath);break;}}
url=syms.join('/');url+=(ext||(/^data\:|^blob\:|\?/.test(url)||skipExt?'':'.js'));url=(url.charAt(0)==='/'||url.match(/^[\w\+\.\-]+:/)?'':config.baseUrl)+url;}
return config.urlArgs&&!/^blob\:/.test(url)?url+config.urlArgs(moduleName,url):url;},load:function(id,url){req.load(context,id,url);},execCb:function(name,callback,args,exports){return callback.apply(exports,args);},onScriptLoad:function(evt){if(evt.type==='load'||(readyRegExp.test((evt.currentTarget||evt.srcElement).readyState))){interactiveScript=null;var data=getScriptData(evt);context.completeLoad(data.id);}},onScriptError:function(evt){var data=getScriptData(evt);if(!hasPathFallback(data.id)){var parents=[];eachProp(registry,function(value,key){if(key.indexOf('_@r')!==0){each(value.depMaps,function(depMap){if(depMap.id===data.id){parents.push(key);return true;}});}});return onError(makeError('scripterror','Script error for "'+data.id+
(parents.length?'", needed by: '+parents.join(', '):'"'),evt,[data.id]));}}};context.require=context.makeRequire();return context;}
req=requirejs=function(deps,callback,errback,optional){var context,config,contextName=defContextName;if(!isArray(deps)&&typeof deps!=='string'){config=deps;if(isArray(callback)){deps=callback;callback=errback;errback=optional;}else{deps=[];}}
if(config&&config.context){contextName=config.context;}
context=getOwn(contexts,contextName);if(!context){context=contexts[contextName]=req.s.newContext(contextName);}
if(config){context.configure(config);}
return context.require(deps,callback,errback);};req.config=function(config){return req(config);};req.nextTick=typeof setTimeout!=='undefined'?function(fn){setTimeout(fn,4);}:function(fn){fn();};if(!require){require=req;}
req.version=version;req.jsExtRegExp=/^\/|:|\?|\.js$/;req.isBrowser=isBrowser;s=req.s={contexts:contexts,newContext:newContext};req({});each(['toUrl','undef','defined','specified'],function(prop){req[prop]=function(){var ctx=contexts[defContextName];return ctx.require[prop].apply(ctx,arguments);};});if(isBrowser){head=s.head=document.getElementsByTagName('head')[0];baseElement=document.getElementsByTagName('base')[0];if(baseElement){head=s.head=baseElement.parentNode;}}
req.onError=defaultOnError;req.createNode=function(config,moduleName,url){var node=config.xhtml?document.createElementNS('http://www.w3.org/1999/xhtml','html:script'):document.createElement('script');node.type=config.scriptType||'text/javascript';node.charset='utf-8';node.async=true;return node;};req.load=function(context,moduleName,url){var config=(context&&context.config)||{},node;if(isBrowser){node=req.createNode(config,moduleName,url);node.setAttribute('data-requirecontext',context.contextName);node.setAttribute('data-requiremodule',moduleName);if(node.attachEvent&&!(node.attachEvent.toString&&node.attachEvent.toString().indexOf('[native code')<0)&&!isOpera){useInteractive=true;node.attachEvent('onreadystatechange',context.onScriptLoad);}else{node.addEventListener('load',context.onScriptLoad,false);node.addEventListener('error',context.onScriptError,false);}
node.src=url;if(config.onNodeCreated){config.onNodeCreated(node,config,moduleName,url);}
currentlyAddingScript=node;if(baseElement){head.insertBefore(node,baseElement);}else{head.appendChild(node);}
currentlyAddingScript=null;return node;}else if(isWebWorker){try{setTimeout(function(){},0);importScripts(url);context.completeLoad(moduleName);}catch(e){context.onError(makeError('importscripts','importScripts failed for '+
moduleName+' at '+url,e,[moduleName]));}}};function getInteractiveScript(){if(interactiveScript&&interactiveScript.readyState==='interactive'){return interactiveScript;}
eachReverse(scripts(),function(script){if(script.readyState==='interactive'){return(interactiveScript=script);}});return interactiveScript;}
if(isBrowser&&!cfg.skipDataMain){eachReverse(scripts(),function(script){if(!head){head=script.parentNode;}
dataMain=script.getAttribute('data-main');if(dataMain){mainScript=dataMain;if(!cfg.baseUrl&&mainScript.indexOf('!')===-1){src=mainScript.split('/');mainScript=src.pop();subPath=src.length?src.join('/')+'/':'./';cfg.baseUrl=subPath;}
mainScript=mainScript.replace(jsSuffixRegExp,'');if(req.jsExtRegExp.test(mainScript)){mainScript=dataMain;}
cfg.deps=cfg.deps?cfg.deps.concat(mainScript):[mainScript];return true;}});}
define=function(name,deps,callback){var node,context;if(typeof name!=='string'){callback=deps;deps=name;name=null;}
if(!isArray(deps)){callback=deps;deps=null;}
if(!deps&&isFunction(callback)){deps=[];if(callback.length){callback.toString().replace(commentRegExp,commentReplace).replace(cjsRequireRegExp,function(match,dep){deps.push(dep);});deps=(callback.length===1?['require']:['require','exports','module']).concat(deps);}}
if(useInteractive){node=currentlyAddingScript||getInteractiveScript();if(node){if(!name){name=node.getAttribute('data-requiremodule');}
context=contexts[node.getAttribute('data-requirecontext')];}}
if(context){context.defQueue.push([name,deps,callback]);context.defQueueMap[name]=true;}else{globalDefQueue.push([name,deps,callback]);}};define.amd={jQuery:true};req.exec=function(text){return eval(text);};req(cfg);}(this,(typeof setTimeout==='undefined'?undefined:setTimeout)));;(function(){var ctx=require.s.contexts._,origNameToUrl=ctx.nameToUrl,baseUrl=ctx.config.baseUrl;ctx.nameToUrl=function(){var url=origNameToUrl.apply(ctx,arguments);if(url.indexOf(baseUrl)===0&&!url.match(/\/tiny_mce\//)&&!url.match(/\/v1\/songbird/)){url=url.replace(/(\.min)?\.js$/,'.min.js');}
return url;};})();;require.config({"config": {
        "jsbuild":{"underscore.min.js":"(function(global,factory){typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory():typeof define==='function'&&define.amd?define('underscore',factory):(global=typeof globalThis!=='undefined'?globalThis:global||self,(function(){var current=global._;var exports=global._=factory();exports.noConflict=function(){global._=current;return exports;};}()));}(this,(function(){var VERSION='1.13.2';var root=typeof self=='object'&&self.self===self&&self||typeof global=='object'&&global.global===global&&global||Function('return this')()||{};var ArrayProto=Array.prototype,ObjProto=Object.prototype;var SymbolProto=typeof Symbol!=='undefined'?Symbol.prototype:null;var push=ArrayProto.push,slice=ArrayProto.slice,toString=ObjProto.toString,hasOwnProperty=ObjProto.hasOwnProperty;var supportsArrayBuffer=typeof ArrayBuffer!=='undefined',supportsDataView=typeof DataView!=='undefined';var nativeIsArray=Array.isArray,nativeKeys=Object.keys,nativeCreate=Object.create,nativeIsView=supportsArrayBuffer&&ArrayBuffer.isView;var _isNaN=isNaN,_isFinite=isFinite;var hasEnumBug=!{toString:null}.propertyIsEnumerable('toString');var nonEnumerableProps=['valueOf','isPrototypeOf','toString','propertyIsEnumerable','hasOwnProperty','toLocaleString'];var MAX_ARRAY_INDEX=Math.pow(2,53)-1;function restArguments(func,startIndex){startIndex=startIndex==null?func.length-1:+startIndex;return function(){var length=Math.max(arguments.length-startIndex,0),rest=Array(length),index=0;for(;index<length;index++){rest[index]=arguments[index+startIndex];}\nswitch(startIndex){case 0:return func.call(this,rest);case 1:return func.call(this,arguments[0],rest);case 2:return func.call(this,arguments[0],arguments[1],rest);}\nvar args=Array(startIndex+1);for(index=0;index<startIndex;index++){args[index]=arguments[index];}\nargs[startIndex]=rest;return func.apply(this,args);};}\nfunction isObject(obj){var type=typeof obj;return type==='function'||type==='object'&&!!obj;}\nfunction isNull(obj){return obj===null;}\nfunction isUndefined(obj){return obj===void 0;}\nfunction isBoolean(obj){return obj===true||obj===false||toString.call(obj)==='[object Boolean]';}\nfunction isElement(obj){return!!(obj&&obj.nodeType===1);}\nfunction tagTester(name){var tag='[object '+name+']';return function(obj){return toString.call(obj)===tag;};}\nvar isString=tagTester('String');var isNumber=tagTester('Number');var isDate=tagTester('Date');var isRegExp=tagTester('RegExp');var isError=tagTester('Error');var isSymbol=tagTester('Symbol');var isArrayBuffer=tagTester('ArrayBuffer');var isFunction=tagTester('Function');var nodelist=root.document&&root.document.childNodes;if(typeof/./!='function'&&typeof Int8Array!='object'&&typeof nodelist!='function'){isFunction=function(obj){return typeof obj=='function'||false;};}\nvar isFunction$1=isFunction;var hasObjectTag=tagTester('Object');var hasStringTagBug=(supportsDataView&&hasObjectTag(new DataView(new ArrayBuffer(8)))),isIE11=(typeof Map!=='undefined'&&hasObjectTag(new Map));var isDataView=tagTester('DataView');function ie10IsDataView(obj){return obj!=null&&isFunction$1(obj.getInt8)&&isArrayBuffer(obj.buffer);}\nvar isDataView$1=(hasStringTagBug?ie10IsDataView:isDataView);var isArray=nativeIsArray||tagTester('Array');function has$1(obj,key){return obj!=null&&hasOwnProperty.call(obj,key);}\nvar isArguments=tagTester('Arguments');(function(){if(!isArguments(arguments)){isArguments=function(obj){return has$1(obj,'callee');};}}());var isArguments$1=isArguments;function isFinite$1(obj){return!isSymbol(obj)&&_isFinite(obj)&&!isNaN(parseFloat(obj));}\nfunction isNaN$1(obj){return isNumber(obj)&&_isNaN(obj);}\nfunction constant(value){return function(){return value;};}\nfunction createSizePropertyCheck(getSizeProperty){return function(collection){var sizeProperty=getSizeProperty(collection);return typeof sizeProperty=='number'&&sizeProperty>=0&&sizeProperty<=MAX_ARRAY_INDEX;}}\nfunction shallowProperty(key){return function(obj){return obj==null?void 0:obj[key];};}\nvar getByteLength=shallowProperty('byteLength');var isBufferLike=createSizePropertyCheck(getByteLength);var typedArrayPattern=/\\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\\]/;function isTypedArray(obj){return nativeIsView?(nativeIsView(obj)&&!isDataView$1(obj)):isBufferLike(obj)&&typedArrayPattern.test(toString.call(obj));}\nvar isTypedArray$1=supportsArrayBuffer?isTypedArray:constant(false);var getLength=shallowProperty('length');function emulatedSet(keys){var hash={};for(var l=keys.length,i=0;i<l;++i)hash[keys[i]]=true;return{contains:function(key){return hash[key]===true;},push:function(key){hash[key]=true;return keys.push(key);}};}\nfunction collectNonEnumProps(obj,keys){keys=emulatedSet(keys);var nonEnumIdx=nonEnumerableProps.length;var constructor=obj.constructor;var proto=isFunction$1(constructor)&&constructor.prototype||ObjProto;var prop='constructor';if(has$1(obj,prop)&&!keys.contains(prop))keys.push(prop);while(nonEnumIdx--){prop=nonEnumerableProps[nonEnumIdx];if(prop in obj&&obj[prop]!==proto[prop]&&!keys.contains(prop)){keys.push(prop);}}}\nfunction keys(obj){if(!isObject(obj))return[];if(nativeKeys)return nativeKeys(obj);var keys=[];for(var key in obj)if(has$1(obj,key))keys.push(key);if(hasEnumBug)collectNonEnumProps(obj,keys);return keys;}\nfunction isEmpty(obj){if(obj==null)return true;var length=getLength(obj);if(typeof length=='number'&&(isArray(obj)||isString(obj)||isArguments$1(obj)))return length===0;return getLength(keys(obj))===0;}\nfunction isMatch(object,attrs){var _keys=keys(attrs),length=_keys.length;if(object==null)return!length;var obj=Object(object);for(var i=0;i<length;i++){var key=_keys[i];if(attrs[key]!==obj[key]||!(key in obj))return false;}\nreturn true;}\nfunction _$1(obj){if(obj instanceof _$1)return obj;if(!(this instanceof _$1))return new _$1(obj);this._wrapped=obj;}\n_$1.VERSION=VERSION;_$1.prototype.value=function(){return this._wrapped;};_$1.prototype.valueOf=_$1.prototype.toJSON=_$1.prototype.value;_$1.prototype.toString=function(){return String(this._wrapped);};function toBufferView(bufferSource){return new Uint8Array(bufferSource.buffer||bufferSource,bufferSource.byteOffset||0,getByteLength(bufferSource));}\nvar tagDataView='[object DataView]';function eq(a,b,aStack,bStack){if(a===b)return a!==0||1 / a===1 / b;if(a==null||b==null)return false;if(a!==a)return b!==b;var type=typeof a;if(type!=='function'&&type!=='object'&&typeof b!='object')return false;return deepEq(a,b,aStack,bStack);}\nfunction deepEq(a,b,aStack,bStack){if(a instanceof _$1)a=a._wrapped;if(b instanceof _$1)b=b._wrapped;var className=toString.call(a);if(className!==toString.call(b))return false;if(hasStringTagBug&&className=='[object Object]'&&isDataView$1(a)){if(!isDataView$1(b))return false;className=tagDataView;}\nswitch(className){case'[object RegExp]':case'[object String]':return''+a===''+b;case'[object Number]':if(+a!==+a)return+b!==+b;return+a===0?1 /+a===1 / b:+a===+b;case'[object Date]':case'[object Boolean]':return+a===+b;case'[object Symbol]':return SymbolProto.valueOf.call(a)===SymbolProto.valueOf.call(b);case'[object ArrayBuffer]':case tagDataView:return deepEq(toBufferView(a),toBufferView(b),aStack,bStack);}\nvar areArrays=className==='[object Array]';if(!areArrays&&isTypedArray$1(a)){var byteLength=getByteLength(a);if(byteLength!==getByteLength(b))return false;if(a.buffer===b.buffer&&a.byteOffset===b.byteOffset)return true;areArrays=true;}\nif(!areArrays){if(typeof a!='object'||typeof b!='object')return false;var aCtor=a.constructor,bCtor=b.constructor;if(aCtor!==bCtor&&!(isFunction$1(aCtor)&&aCtor instanceof aCtor&&isFunction$1(bCtor)&&bCtor instanceof bCtor)&&('constructor'in a&&'constructor'in b)){return false;}}\naStack=aStack||[];bStack=bStack||[];var length=aStack.length;while(length--){if(aStack[length]===a)return bStack[length]===b;}\naStack.push(a);bStack.push(b);if(areArrays){length=a.length;if(length!==b.length)return false;while(length--){if(!eq(a[length],b[length],aStack,bStack))return false;}}else{var _keys=keys(a),key;length=_keys.length;if(keys(b).length!==length)return false;while(length--){key=_keys[length];if(!(has$1(b,key)&&eq(a[key],b[key],aStack,bStack)))return false;}}\naStack.pop();bStack.pop();return true;}\nfunction isEqual(a,b){return eq(a,b);}\nfunction allKeys(obj){if(!isObject(obj))return[];var keys=[];for(var key in obj)keys.push(key);if(hasEnumBug)collectNonEnumProps(obj,keys);return keys;}\nfunction ie11fingerprint(methods){var length=getLength(methods);return function(obj){if(obj==null)return false;var keys=allKeys(obj);if(getLength(keys))return false;for(var i=0;i<length;i++){if(!isFunction$1(obj[methods[i]]))return false;}\nreturn methods!==weakMapMethods||!isFunction$1(obj[forEachName]);};}\nvar forEachName='forEach',hasName='has',commonInit=['clear','delete'],mapTail=['get',hasName,'set'];var mapMethods=commonInit.concat(forEachName,mapTail),weakMapMethods=commonInit.concat(mapTail),setMethods=['add'].concat(commonInit,forEachName,hasName);var isMap=isIE11?ie11fingerprint(mapMethods):tagTester('Map');var isWeakMap=isIE11?ie11fingerprint(weakMapMethods):tagTester('WeakMap');var isSet=isIE11?ie11fingerprint(setMethods):tagTester('Set');var isWeakSet=tagTester('WeakSet');function values(obj){var _keys=keys(obj);var length=_keys.length;var values=Array(length);for(var i=0;i<length;i++){values[i]=obj[_keys[i]];}\nreturn values;}\nfunction pairs(obj){var _keys=keys(obj);var length=_keys.length;var pairs=Array(length);for(var i=0;i<length;i++){pairs[i]=[_keys[i],obj[_keys[i]]];}\nreturn pairs;}\nfunction invert(obj){var result={};var _keys=keys(obj);for(var i=0,length=_keys.length;i<length;i++){result[obj[_keys[i]]]=_keys[i];}\nreturn result;}\nfunction functions(obj){var names=[];for(var key in obj){if(isFunction$1(obj[key]))names.push(key);}\nreturn names.sort();}\nfunction createAssigner(keysFunc,defaults){return function(obj){var length=arguments.length;if(defaults)obj=Object(obj);if(length<2||obj==null)return obj;for(var index=1;index<length;index++){var source=arguments[index],keys=keysFunc(source),l=keys.length;for(var i=0;i<l;i++){var key=keys[i];if(!defaults||obj[key]===void 0)obj[key]=source[key];}}\nreturn obj;};}\nvar extend=createAssigner(allKeys);var extendOwn=createAssigner(keys);var defaults=createAssigner(allKeys,true);function ctor(){return function(){};}\nfunction baseCreate(prototype){if(!isObject(prototype))return{};if(nativeCreate)return nativeCreate(prototype);var Ctor=ctor();Ctor.prototype=prototype;var result=new Ctor;Ctor.prototype=null;return result;}\nfunction create(prototype,props){var result=baseCreate(prototype);if(props)extendOwn(result,props);return result;}\nfunction clone(obj){if(!isObject(obj))return obj;return isArray(obj)?obj.slice():extend({},obj);}\nfunction tap(obj,interceptor){interceptor(obj);return obj;}\nfunction toPath$1(path){return isArray(path)?path:[path];}\n_$1.toPath=toPath$1;function toPath(path){return _$1.toPath(path);}\nfunction deepGet(obj,path){var length=path.length;for(var i=0;i<length;i++){if(obj==null)return void 0;obj=obj[path[i]];}\nreturn length?obj:void 0;}\nfunction get(object,path,defaultValue){var value=deepGet(object,toPath(path));return isUndefined(value)?defaultValue:value;}\nfunction has(obj,path){path=toPath(path);var length=path.length;for(var i=0;i<length;i++){var key=path[i];if(!has$1(obj,key))return false;obj=obj[key];}\nreturn!!length;}\nfunction identity(value){return value;}\nfunction matcher(attrs){attrs=extendOwn({},attrs);return function(obj){return isMatch(obj,attrs);};}\nfunction property(path){path=toPath(path);return function(obj){return deepGet(obj,path);};}\nfunction optimizeCb(func,context,argCount){if(context===void 0)return func;switch(argCount==null?3:argCount){case 1:return function(value){return func.call(context,value);};case 3:return function(value,index,collection){return func.call(context,value,index,collection);};case 4:return function(accumulator,value,index,collection){return func.call(context,accumulator,value,index,collection);};}\nreturn function(){return func.apply(context,arguments);};}\nfunction baseIteratee(value,context,argCount){if(value==null)return identity;if(isFunction$1(value))return optimizeCb(value,context,argCount);if(isObject(value)&&!isArray(value))return matcher(value);return property(value);}\nfunction iteratee(value,context){return baseIteratee(value,context,Infinity);}\n_$1.iteratee=iteratee;function cb(value,context,argCount){if(_$1.iteratee!==iteratee)return _$1.iteratee(value,context);return baseIteratee(value,context,argCount);}\nfunction mapObject(obj,iteratee,context){iteratee=cb(iteratee,context);var _keys=keys(obj),length=_keys.length,results={};for(var index=0;index<length;index++){var currentKey=_keys[index];results[currentKey]=iteratee(obj[currentKey],currentKey,obj);}\nreturn results;}\nfunction noop(){}\nfunction propertyOf(obj){if(obj==null)return noop;return function(path){return get(obj,path);};}\nfunction times(n,iteratee,context){var accum=Array(Math.max(0,n));iteratee=optimizeCb(iteratee,context,1);for(var i=0;i<n;i++)accum[i]=iteratee(i);return accum;}\nfunction random(min,max){if(max==null){max=min;min=0;}\nreturn min+Math.floor(Math.random()*(max-min+1));}\nvar now=Date.now||function(){return new Date().getTime();};function createEscaper(map){var escaper=function(match){return map[match];};var source='(?:'+keys(map).join('|')+')';var testRegexp=RegExp(source);var replaceRegexp=RegExp(source,'g');return function(string){string=string==null?'':''+string;return testRegexp.test(string)?string.replace(replaceRegexp,escaper):string;};}\nvar escapeMap={'&':'&amp;','<':'&lt;','>':'&gt;','\"':'&quot;',\"'\":'&#x27;','`':'&#x60;'};var _escape=createEscaper(escapeMap);var unescapeMap=invert(escapeMap);var _unescape=createEscaper(unescapeMap);var templateSettings=_$1.templateSettings={evaluate:/<%([\\s\\S]+?)%>/g,interpolate:/<%=([\\s\\S]+?)%>/g,escape:/<%-([\\s\\S]+?)%>/g};var noMatch=/(.)^/;var escapes={\"'\":\"'\",'\\\\':'\\\\','\\r':'r','\\n':'n','\\u2028':'u2028','\\u2029':'u2029'};var escapeRegExp=/\\\\|'|\\r|\\n|\\u2028|\\u2029/g;function escapeChar(match){return'\\\\'+escapes[match];}\nvar bareIdentifier=/^\\s*(\\w|\\$)+\\s*$/;function template(text,settings,oldSettings){if(!settings&&oldSettings)settings=oldSettings;settings=defaults({},settings,_$1.templateSettings);var matcher=RegExp([(settings.escape||noMatch).source,(settings.interpolate||noMatch).source,(settings.evaluate||noMatch).source].join('|')+'|$','g');var index=0;var source=\"__p+='\";text.replace(matcher,function(match,escape,interpolate,evaluate,offset){source+=text.slice(index,offset).replace(escapeRegExp,escapeChar);index=offset+match.length;if(escape){source+=\"'+\\n((__t=(\"+escape+\"))==null?'':_.escape(__t))+\\n'\";}else if(interpolate){source+=\"'+\\n((__t=(\"+interpolate+\"))==null?'':__t)+\\n'\";}else if(evaluate){source+=\"';\\n\"+evaluate+\"\\n__p+='\";}\nreturn match;});source+=\"';\\n\";var argument=settings.variable;if(argument){if(!bareIdentifier.test(argument))throw new Error('variable is not a bare identifier: '+argument);}else{source='with(obj||{}){\\n'+source+'}\\n';argument='obj';}\nsource=\"var __t,__p='',__j=Array.prototype.join,\"+\"print=function(){__p+=__j.call(arguments,'');};\\n\"+\nsource+'return __p;\\n';var render;try{render=new Function(argument,'_',source);}catch(e){e.source=source;throw e;}\nvar template=function(data){return render.call(this,data,_$1);};template.source='function('+argument+'){\\n'+source+'}';return template;}\nfunction result(obj,path,fallback){path=toPath(path);var length=path.length;if(!length){return isFunction$1(fallback)?fallback.call(obj):fallback;}\nfor(var i=0;i<length;i++){var prop=obj==null?void 0:obj[path[i]];if(prop===void 0){prop=fallback;i=length;}\nobj=isFunction$1(prop)?prop.call(obj):prop;}\nreturn obj;}\nvar idCounter=0;function uniqueId(prefix){var id=++idCounter+'';return prefix?prefix+id:id;}\nfunction chain(obj){var instance=_$1(obj);instance._chain=true;return instance;}\nfunction executeBound(sourceFunc,boundFunc,context,callingContext,args){if(!(callingContext instanceof boundFunc))return sourceFunc.apply(context,args);var self=baseCreate(sourceFunc.prototype);var result=sourceFunc.apply(self,args);if(isObject(result))return result;return self;}\nvar partial=restArguments(function(func,boundArgs){var placeholder=partial.placeholder;var bound=function(){var position=0,length=boundArgs.length;var args=Array(length);for(var i=0;i<length;i++){args[i]=boundArgs[i]===placeholder?arguments[position++]:boundArgs[i];}\nwhile(position<arguments.length)args.push(arguments[position++]);return executeBound(func,bound,this,this,args);};return bound;});partial.placeholder=_$1;var bind=restArguments(function(func,context,args){if(!isFunction$1(func))throw new TypeError('Bind must be called on a function');var bound=restArguments(function(callArgs){return executeBound(func,bound,context,this,args.concat(callArgs));});return bound;});var isArrayLike=createSizePropertyCheck(getLength);function flatten$1(input,depth,strict,output){output=output||[];if(!depth&&depth!==0){depth=Infinity;}else if(depth<=0){return output.concat(input);}\nvar idx=output.length;for(var i=0,length=getLength(input);i<length;i++){var value=input[i];if(isArrayLike(value)&&(isArray(value)||isArguments$1(value))){if(depth>1){flatten$1(value,depth-1,strict,output);idx=output.length;}else{var j=0,len=value.length;while(j<len)output[idx++]=value[j++];}}else if(!strict){output[idx++]=value;}}\nreturn output;}\nvar bindAll=restArguments(function(obj,keys){keys=flatten$1(keys,false,false);var index=keys.length;if(index<1)throw new Error('bindAll must be passed function names');while(index--){var key=keys[index];obj[key]=bind(obj[key],obj);}\nreturn obj;});function memoize(func,hasher){var memoize=function(key){var cache=memoize.cache;var address=''+(hasher?hasher.apply(this,arguments):key);if(!has$1(cache,address))cache[address]=func.apply(this,arguments);return cache[address];};memoize.cache={};return memoize;}\nvar delay=restArguments(function(func,wait,args){return setTimeout(function(){return func.apply(null,args);},wait);});var defer=partial(delay,_$1,1);function throttle(func,wait,options){var timeout,context,args,result;var previous=0;if(!options)options={};var later=function(){previous=options.leading===false?0:now();timeout=null;result=func.apply(context,args);if(!timeout)context=args=null;};var throttled=function(){var _now=now();if(!previous&&options.leading===false)previous=_now;var remaining=wait-(_now-previous);context=this;args=arguments;if(remaining<=0||remaining>wait){if(timeout){clearTimeout(timeout);timeout=null;}\nprevious=_now;result=func.apply(context,args);if(!timeout)context=args=null;}else if(!timeout&&options.trailing!==false){timeout=setTimeout(later,remaining);}\nreturn result;};throttled.cancel=function(){clearTimeout(timeout);previous=0;timeout=context=args=null;};return throttled;}\nfunction debounce(func,wait,immediate){var timeout,previous,args,result,context;var later=function(){var passed=now()-previous;if(wait>passed){timeout=setTimeout(later,wait-passed);}else{timeout=null;if(!immediate)result=func.apply(context,args);if(!timeout)args=context=null;}};var debounced=restArguments(function(_args){context=this;args=_args;previous=now();if(!timeout){timeout=setTimeout(later,wait);if(immediate)result=func.apply(context,args);}\nreturn result;});debounced.cancel=function(){clearTimeout(timeout);timeout=args=context=null;};return debounced;}\nfunction wrap(func,wrapper){return partial(wrapper,func);}\nfunction negate(predicate){return function(){return!predicate.apply(this,arguments);};}\nfunction compose(){var args=arguments;var start=args.length-1;return function(){var i=start;var result=args[start].apply(this,arguments);while(i--)result=args[i].call(this,result);return result;};}\nfunction after(times,func){return function(){if(--times<1){return func.apply(this,arguments);}};}\nfunction before(times,func){var memo;return function(){if(--times>0){memo=func.apply(this,arguments);}\nif(times<=1)func=null;return memo;};}\nvar once=partial(before,2);function findKey(obj,predicate,context){predicate=cb(predicate,context);var _keys=keys(obj),key;for(var i=0,length=_keys.length;i<length;i++){key=_keys[i];if(predicate(obj[key],key,obj))return key;}}\nfunction createPredicateIndexFinder(dir){return function(array,predicate,context){predicate=cb(predicate,context);var length=getLength(array);var index=dir>0?0:length-1;for(;index>=0&&index<length;index+=dir){if(predicate(array[index],index,array))return index;}\nreturn-1;};}\nvar findIndex=createPredicateIndexFinder(1);var findLastIndex=createPredicateIndexFinder(-1);function sortedIndex(array,obj,iteratee,context){iteratee=cb(iteratee,context,1);var value=iteratee(obj);var low=0,high=getLength(array);while(low<high){var mid=Math.floor((low+high)/ 2);if(iteratee(array[mid])<value)low=mid+1;else high=mid;}\nreturn low;}\nfunction createIndexFinder(dir,predicateFind,sortedIndex){return function(array,item,idx){var i=0,length=getLength(array);if(typeof idx=='number'){if(dir>0){i=idx>=0?idx:Math.max(idx+length,i);}else{length=idx>=0?Math.min(idx+1,length):idx+length+1;}}else if(sortedIndex&&idx&&length){idx=sortedIndex(array,item);return array[idx]===item?idx:-1;}\nif(item!==item){idx=predicateFind(slice.call(array,i,length),isNaN$1);return idx>=0?idx+i:-1;}\nfor(idx=dir>0?i:length-1;idx>=0&&idx<length;idx+=dir){if(array[idx]===item)return idx;}\nreturn-1;};}\nvar indexOf=createIndexFinder(1,findIndex,sortedIndex);var lastIndexOf=createIndexFinder(-1,findLastIndex);function find(obj,predicate,context){var keyFinder=isArrayLike(obj)?findIndex:findKey;var key=keyFinder(obj,predicate,context);if(key!==void 0&&key!==-1)return obj[key];}\nfunction findWhere(obj,attrs){return find(obj,matcher(attrs));}\nfunction each(obj,iteratee,context){iteratee=optimizeCb(iteratee,context);var i,length;if(isArrayLike(obj)){for(i=0,length=obj.length;i<length;i++){iteratee(obj[i],i,obj);}}else{var _keys=keys(obj);for(i=0,length=_keys.length;i<length;i++){iteratee(obj[_keys[i]],_keys[i],obj);}}\nreturn obj;}\nfunction map(obj,iteratee,context){iteratee=cb(iteratee,context);var _keys=!isArrayLike(obj)&&keys(obj),length=(_keys||obj).length,results=Array(length);for(var index=0;index<length;index++){var currentKey=_keys?_keys[index]:index;results[index]=iteratee(obj[currentKey],currentKey,obj);}\nreturn results;}\nfunction createReduce(dir){var reducer=function(obj,iteratee,memo,initial){var _keys=!isArrayLike(obj)&&keys(obj),length=(_keys||obj).length,index=dir>0?0:length-1;if(!initial){memo=obj[_keys?_keys[index]:index];index+=dir;}\nfor(;index>=0&&index<length;index+=dir){var currentKey=_keys?_keys[index]:index;memo=iteratee(memo,obj[currentKey],currentKey,obj);}\nreturn memo;};return function(obj,iteratee,memo,context){var initial=arguments.length>=3;return reducer(obj,optimizeCb(iteratee,context,4),memo,initial);};}\nvar reduce=createReduce(1);var reduceRight=createReduce(-1);function filter(obj,predicate,context){var results=[];predicate=cb(predicate,context);each(obj,function(value,index,list){if(predicate(value,index,list))results.push(value);});return results;}\nfunction reject(obj,predicate,context){return filter(obj,negate(cb(predicate)),context);}\nfunction every(obj,predicate,context){predicate=cb(predicate,context);var _keys=!isArrayLike(obj)&&keys(obj),length=(_keys||obj).length;for(var index=0;index<length;index++){var currentKey=_keys?_keys[index]:index;if(!predicate(obj[currentKey],currentKey,obj))return false;}\nreturn true;}\nfunction some(obj,predicate,context){predicate=cb(predicate,context);var _keys=!isArrayLike(obj)&&keys(obj),length=(_keys||obj).length;for(var index=0;index<length;index++){var currentKey=_keys?_keys[index]:index;if(predicate(obj[currentKey],currentKey,obj))return true;}\nreturn false;}\nfunction contains(obj,item,fromIndex,guard){if(!isArrayLike(obj))obj=values(obj);if(typeof fromIndex!='number'||guard)fromIndex=0;return indexOf(obj,item,fromIndex)>=0;}\nvar invoke=restArguments(function(obj,path,args){var contextPath,func;if(isFunction$1(path)){func=path;}else{path=toPath(path);contextPath=path.slice(0,-1);path=path[path.length-1];}\nreturn map(obj,function(context){var method=func;if(!method){if(contextPath&&contextPath.length){context=deepGet(context,contextPath);}\nif(context==null)return void 0;method=context[path];}\nreturn method==null?method:method.apply(context,args);});});function pluck(obj,key){return map(obj,property(key));}\nfunction where(obj,attrs){return filter(obj,matcher(attrs));}\nfunction max(obj,iteratee,context){var result=-Infinity,lastComputed=-Infinity,value,computed;if(iteratee==null||typeof iteratee=='number'&&typeof obj[0]!='object'&&obj!=null){obj=isArrayLike(obj)?obj:values(obj);for(var i=0,length=obj.length;i<length;i++){value=obj[i];if(value!=null&&value>result){result=value;}}}else{iteratee=cb(iteratee,context);each(obj,function(v,index,list){computed=iteratee(v,index,list);if(computed>lastComputed||computed===-Infinity&&result===-Infinity){result=v;lastComputed=computed;}});}\nreturn result;}\nfunction min(obj,iteratee,context){var result=Infinity,lastComputed=Infinity,value,computed;if(iteratee==null||typeof iteratee=='number'&&typeof obj[0]!='object'&&obj!=null){obj=isArrayLike(obj)?obj:values(obj);for(var i=0,length=obj.length;i<length;i++){value=obj[i];if(value!=null&&value<result){result=value;}}}else{iteratee=cb(iteratee,context);each(obj,function(v,index,list){computed=iteratee(v,index,list);if(computed<lastComputed||computed===Infinity&&result===Infinity){result=v;lastComputed=computed;}});}\nreturn result;}\nvar reStrSymbol=/[^\\ud800-\\udfff]|[\\ud800-\\udbff][\\udc00-\\udfff]|[\\ud800-\\udfff]/g;function toArray(obj){if(!obj)return[];if(isArray(obj))return slice.call(obj);if(isString(obj)){return obj.match(reStrSymbol);}\nif(isArrayLike(obj))return map(obj,identity);return values(obj);}\nfunction sample(obj,n,guard){if(n==null||guard){if(!isArrayLike(obj))obj=values(obj);return obj[random(obj.length-1)];}\nvar sample=toArray(obj);var length=getLength(sample);n=Math.max(Math.min(n,length),0);var last=length-1;for(var index=0;index<n;index++){var rand=random(index,last);var temp=sample[index];sample[index]=sample[rand];sample[rand]=temp;}\nreturn sample.slice(0,n);}\nfunction shuffle(obj){return sample(obj,Infinity);}\nfunction sortBy(obj,iteratee,context){var index=0;iteratee=cb(iteratee,context);return pluck(map(obj,function(value,key,list){return{value:value,index:index++,criteria:iteratee(value,key,list)};}).sort(function(left,right){var a=left.criteria;var b=right.criteria;if(a!==b){if(a>b||a===void 0)return 1;if(a<b||b===void 0)return-1;}\nreturn left.index-right.index;}),'value');}\nfunction group(behavior,partition){return function(obj,iteratee,context){var result=partition?[[],[]]:{};iteratee=cb(iteratee,context);each(obj,function(value,index){var key=iteratee(value,index,obj);behavior(result,value,key);});return result;};}\nvar groupBy=group(function(result,value,key){if(has$1(result,key))result[key].push(value);else result[key]=[value];});var indexBy=group(function(result,value,key){result[key]=value;});var countBy=group(function(result,value,key){if(has$1(result,key))result[key]++;else result[key]=1;});var partition=group(function(result,value,pass){result[pass?0:1].push(value);},true);function size(obj){if(obj==null)return 0;return isArrayLike(obj)?obj.length:keys(obj).length;}\nfunction keyInObj(value,key,obj){return key in obj;}\nvar pick=restArguments(function(obj,keys){var result={},iteratee=keys[0];if(obj==null)return result;if(isFunction$1(iteratee)){if(keys.length>1)iteratee=optimizeCb(iteratee,keys[1]);keys=allKeys(obj);}else{iteratee=keyInObj;keys=flatten$1(keys,false,false);obj=Object(obj);}\nfor(var i=0,length=keys.length;i<length;i++){var key=keys[i];var value=obj[key];if(iteratee(value,key,obj))result[key]=value;}\nreturn result;});var omit=restArguments(function(obj,keys){var iteratee=keys[0],context;if(isFunction$1(iteratee)){iteratee=negate(iteratee);if(keys.length>1)context=keys[1];}else{keys=map(flatten$1(keys,false,false),String);iteratee=function(value,key){return!contains(keys,key);};}\nreturn pick(obj,iteratee,context);});function initial(array,n,guard){return slice.call(array,0,Math.max(0,array.length-(n==null||guard?1:n)));}\nfunction first(array,n,guard){if(array==null||array.length<1)return n==null||guard?void 0:[];if(n==null||guard)return array[0];return initial(array,array.length-n);}\nfunction rest(array,n,guard){return slice.call(array,n==null||guard?1:n);}\nfunction last(array,n,guard){if(array==null||array.length<1)return n==null||guard?void 0:[];if(n==null||guard)return array[array.length-1];return rest(array,Math.max(0,array.length-n));}\nfunction compact(array){return filter(array,Boolean);}\nfunction flatten(array,depth){return flatten$1(array,depth,false);}\nvar difference=restArguments(function(array,rest){rest=flatten$1(rest,true,true);return filter(array,function(value){return!contains(rest,value);});});var without=restArguments(function(array,otherArrays){return difference(array,otherArrays);});function uniq(array,isSorted,iteratee,context){if(!isBoolean(isSorted)){context=iteratee;iteratee=isSorted;isSorted=false;}\nif(iteratee!=null)iteratee=cb(iteratee,context);var result=[];var seen=[];for(var i=0,length=getLength(array);i<length;i++){var value=array[i],computed=iteratee?iteratee(value,i,array):value;if(isSorted&&!iteratee){if(!i||seen!==computed)result.push(value);seen=computed;}else if(iteratee){if(!contains(seen,computed)){seen.push(computed);result.push(value);}}else if(!contains(result,value)){result.push(value);}}\nreturn result;}\nvar union=restArguments(function(arrays){return uniq(flatten$1(arrays,true,true));});function intersection(array){var result=[];var argsLength=arguments.length;for(var i=0,length=getLength(array);i<length;i++){var item=array[i];if(contains(result,item))continue;var j;for(j=1;j<argsLength;j++){if(!contains(arguments[j],item))break;}\nif(j===argsLength)result.push(item);}\nreturn result;}\nfunction unzip(array){var length=array&&max(array,getLength).length||0;var result=Array(length);for(var index=0;index<length;index++){result[index]=pluck(array,index);}\nreturn result;}\nvar zip=restArguments(unzip);function object(list,values){var result={};for(var i=0,length=getLength(list);i<length;i++){if(values){result[list[i]]=values[i];}else{result[list[i][0]]=list[i][1];}}\nreturn result;}\nfunction range(start,stop,step){if(stop==null){stop=start||0;start=0;}\nif(!step){step=stop<start?-1:1;}\nvar length=Math.max(Math.ceil((stop-start)/ step),0);var range=Array(length);for(var idx=0;idx<length;idx++,start+=step){range[idx]=start;}\nreturn range;}\nfunction chunk(array,count){if(count==null||count<1)return[];var result=[];var i=0,length=array.length;while(i<length){result.push(slice.call(array,i,i+=count));}\nreturn result;}\nfunction chainResult(instance,obj){return instance._chain?_$1(obj).chain():obj;}\nfunction mixin(obj){each(functions(obj),function(name){var func=_$1[name]=obj[name];_$1.prototype[name]=function(){var args=[this._wrapped];push.apply(args,arguments);return chainResult(this,func.apply(_$1,args));};});return _$1;}\neach(['pop','push','reverse','shift','sort','splice','unshift'],function(name){var method=ArrayProto[name];_$1.prototype[name]=function(){var obj=this._wrapped;if(obj!=null){method.apply(obj,arguments);if((name==='shift'||name==='splice')&&obj.length===0){delete obj[0];}}\nreturn chainResult(this,obj);};});each(['concat','join','slice'],function(name){var method=ArrayProto[name];_$1.prototype[name]=function(){var obj=this._wrapped;if(obj!=null)obj=method.apply(obj,arguments);return chainResult(this,obj);};});var allExports={__proto__:null,VERSION:VERSION,restArguments:restArguments,isObject:isObject,isNull:isNull,isUndefined:isUndefined,isBoolean:isBoolean,isElement:isElement,isString:isString,isNumber:isNumber,isDate:isDate,isRegExp:isRegExp,isError:isError,isSymbol:isSymbol,isArrayBuffer:isArrayBuffer,isDataView:isDataView$1,isArray:isArray,isFunction:isFunction$1,isArguments:isArguments$1,isFinite:isFinite$1,isNaN:isNaN$1,isTypedArray:isTypedArray$1,isEmpty:isEmpty,isMatch:isMatch,isEqual:isEqual,isMap:isMap,isWeakMap:isWeakMap,isSet:isSet,isWeakSet:isWeakSet,keys:keys,allKeys:allKeys,values:values,pairs:pairs,invert:invert,functions:functions,methods:functions,extend:extend,extendOwn:extendOwn,assign:extendOwn,defaults:defaults,create:create,clone:clone,tap:tap,get:get,has:has,mapObject:mapObject,identity:identity,constant:constant,noop:noop,toPath:toPath$1,property:property,propertyOf:propertyOf,matcher:matcher,matches:matcher,times:times,random:random,now:now,escape:_escape,unescape:_unescape,templateSettings:templateSettings,template:template,result:result,uniqueId:uniqueId,chain:chain,iteratee:iteratee,partial:partial,bind:bind,bindAll:bindAll,memoize:memoize,delay:delay,defer:defer,throttle:throttle,debounce:debounce,wrap:wrap,negate:negate,compose:compose,after:after,before:before,once:once,findKey:findKey,findIndex:findIndex,findLastIndex:findLastIndex,sortedIndex:sortedIndex,indexOf:indexOf,lastIndexOf:lastIndexOf,find:find,detect:find,findWhere:findWhere,each:each,forEach:each,map:map,collect:map,reduce:reduce,foldl:reduce,inject:reduce,reduceRight:reduceRight,foldr:reduceRight,filter:filter,select:filter,reject:reject,every:every,all:every,some:some,any:some,contains:contains,includes:contains,include:contains,invoke:invoke,pluck:pluck,where:where,max:max,min:min,shuffle:shuffle,sample:sample,sortBy:sortBy,groupBy:groupBy,indexBy:indexBy,countBy:countBy,partition:partition,toArray:toArray,size:size,pick:pick,omit:omit,first:first,head:first,take:first,initial:initial,last:last,rest:rest,tail:rest,drop:rest,compact:compact,flatten:flatten,without:without,uniq:uniq,unique:uniq,union:union,intersection:intersection,difference:difference,unzip:unzip,transpose:unzip,zip:zip,object:object,range:range,chunk:chunk,mixin:mixin,'default':_$1};var _=mixin(allExports);_._=_;return _;})));","moment-timezone-with-data.min.js":"(function(root,factory){\"use strict\";if(typeof module==='object'&&module.exports){module.exports=factory(require('moment'));}else if(typeof define==='function'&&define.amd){define(['moment'],factory);}else{factory(root.moment);}}(this,function(moment){\"use strict\";if(moment.version===undefined&&moment.default){moment=moment.default;}\nvar VERSION=\"0.5.34\",zones={},links={},countries={},names={},guesses={},cachedGuess;if(!moment||typeof moment.version!=='string'){logError('Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/');}\nvar momentVersion=moment.version.split('.'),major=+momentVersion[0],minor=+momentVersion[1];if(major<2||(major===2&&minor<6)){logError('Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js '+moment.version+'. See momentjs.com');}\nfunction charCodeToInt(charCode){if(charCode>96){return charCode-87;}else if(charCode>64){return charCode-29;}\nreturn charCode-48;}\nfunction unpackBase60(string){var i=0,parts=string.split('.'),whole=parts[0],fractional=parts[1]||'',multiplier=1,num,out=0,sign=1;if(string.charCodeAt(0)===45){i=1;sign=-1;}\nfor(i;i<whole.length;i++){num=charCodeToInt(whole.charCodeAt(i));out=60*out+num;}\nfor(i=0;i<fractional.length;i++){multiplier=multiplier / 60;num=charCodeToInt(fractional.charCodeAt(i));out+=num*multiplier;}\nreturn out*sign;}\nfunction arrayToInt(array){for(var i=0;i<array.length;i++){array[i]=unpackBase60(array[i]);}}\nfunction intToUntil(array,length){for(var i=0;i<length;i++){array[i]=Math.round((array[i-1]||0)+(array[i]*60000));}\narray[length-1]=Infinity;}\nfunction mapIndices(source,indices){var out=[],i;for(i=0;i<indices.length;i++){out[i]=source[indices[i]];}\nreturn out;}\nfunction unpack(string){var data=string.split('|'),offsets=data[2].split(' '),indices=data[3].split(''),untils=data[4].split(' ');arrayToInt(offsets);arrayToInt(indices);arrayToInt(untils);intToUntil(untils,indices.length);return{name:data[0],abbrs:mapIndices(data[1].split(' '),indices),offsets:mapIndices(offsets,indices),untils:untils,population:data[5]|0};}\nfunction Zone(packedString){if(packedString){this._set(unpack(packedString));}}\nZone.prototype={_set:function(unpacked){this.name=unpacked.name;this.abbrs=unpacked.abbrs;this.untils=unpacked.untils;this.offsets=unpacked.offsets;this.population=unpacked.population;},_index:function(timestamp){var target=+timestamp,untils=this.untils,i;for(i=0;i<untils.length;i++){if(target<untils[i]){return i;}}},countries:function(){var zone_name=this.name;return Object.keys(countries).filter(function(country_code){return countries[country_code].zones.indexOf(zone_name)!==-1;});},parse:function(timestamp){var target=+timestamp,offsets=this.offsets,untils=this.untils,max=untils.length-1,offset,offsetNext,offsetPrev,i;for(i=0;i<max;i++){offset=offsets[i];offsetNext=offsets[i+1];offsetPrev=offsets[i?i-1:i];if(offset<offsetNext&&tz.moveAmbiguousForward){offset=offsetNext;}else if(offset>offsetPrev&&tz.moveInvalidForward){offset=offsetPrev;}\nif(target<untils[i]-(offset*60000)){return offsets[i];}}\nreturn offsets[max];},abbr:function(mom){return this.abbrs[this._index(mom)];},offset:function(mom){logError(\"zone.offset has been deprecated in favor of zone.utcOffset\");return this.offsets[this._index(mom)];},utcOffset:function(mom){return this.offsets[this._index(mom)];}};function Country(country_name,zone_names){this.name=country_name;this.zones=zone_names;}\nfunction OffsetAt(at){var timeString=at.toTimeString();var abbr=timeString.match(/\\([a-z ]+\\)/i);if(abbr&&abbr[0]){abbr=abbr[0].match(/[A-Z]/g);abbr=abbr?abbr.join(''):undefined;}else{abbr=timeString.match(/[A-Z]{3,5}/g);abbr=abbr?abbr[0]:undefined;}\nif(abbr==='GMT'){abbr=undefined;}\nthis.at=+at;this.abbr=abbr;this.offset=at.getTimezoneOffset();}\nfunction ZoneScore(zone){this.zone=zone;this.offsetScore=0;this.abbrScore=0;}\nZoneScore.prototype.scoreOffsetAt=function(offsetAt){this.offsetScore+=Math.abs(this.zone.utcOffset(offsetAt.at)-offsetAt.offset);if(this.zone.abbr(offsetAt.at).replace(/[^A-Z]/g,'')!==offsetAt.abbr){this.abbrScore++;}};function findChange(low,high){var mid,diff;while((diff=((high.at-low.at)/ 12e4|0)*6e4)){mid=new OffsetAt(new Date(low.at+diff));if(mid.offset===low.offset){low=mid;}else{high=mid;}}\nreturn low;}\nfunction userOffsets(){var startYear=new Date().getFullYear()-2,last=new OffsetAt(new Date(startYear,0,1)),offsets=[last],change,next,i;for(i=1;i<48;i++){next=new OffsetAt(new Date(startYear,i,1));if(next.offset!==last.offset){change=findChange(last,next);offsets.push(change);offsets.push(new OffsetAt(new Date(change.at+6e4)));}\nlast=next;}\nfor(i=0;i<4;i++){offsets.push(new OffsetAt(new Date(startYear+i,0,1)));offsets.push(new OffsetAt(new Date(startYear+i,6,1)));}\nreturn offsets;}\nfunction sortZoneScores(a,b){if(a.offsetScore!==b.offsetScore){return a.offsetScore-b.offsetScore;}\nif(a.abbrScore!==b.abbrScore){return a.abbrScore-b.abbrScore;}\nif(a.zone.population!==b.zone.population){return b.zone.population-a.zone.population;}\nreturn b.zone.name.localeCompare(a.zone.name);}\nfunction addToGuesses(name,offsets){var i,offset;arrayToInt(offsets);for(i=0;i<offsets.length;i++){offset=offsets[i];guesses[offset]=guesses[offset]||{};guesses[offset][name]=true;}}\nfunction guessesForUserOffsets(offsets){var offsetsLength=offsets.length,filteredGuesses={},out=[],i,j,guessesOffset;for(i=0;i<offsetsLength;i++){guessesOffset=guesses[offsets[i].offset]||{};for(j in guessesOffset){if(guessesOffset.hasOwnProperty(j)){filteredGuesses[j]=true;}}}\nfor(i in filteredGuesses){if(filteredGuesses.hasOwnProperty(i)){out.push(names[i]);}}\nreturn out;}\nfunction rebuildGuess(){try{var intlName=Intl.DateTimeFormat().resolvedOptions().timeZone;if(intlName&&intlName.length>3){var name=names[normalizeName(intlName)];if(name){return name;}\nlogError(\"Moment Timezone found \"+intlName+\" from the Intl api, but did not have that data loaded.\");}}catch(e){}\nvar offsets=userOffsets(),offsetsLength=offsets.length,guesses=guessesForUserOffsets(offsets),zoneScores=[],zoneScore,i,j;for(i=0;i<guesses.length;i++){zoneScore=new ZoneScore(getZone(guesses[i]),offsetsLength);for(j=0;j<offsetsLength;j++){zoneScore.scoreOffsetAt(offsets[j]);}\nzoneScores.push(zoneScore);}\nzoneScores.sort(sortZoneScores);return zoneScores.length>0?zoneScores[0].zone.name:undefined;}\nfunction guess(ignoreCache){if(!cachedGuess||ignoreCache){cachedGuess=rebuildGuess();}\nreturn cachedGuess;}\nfunction normalizeName(name){return(name||'').toLowerCase().replace(/\\//g,'_');}\nfunction addZone(packed){var i,name,split,normalized;if(typeof packed===\"string\"){packed=[packed];}\nfor(i=0;i<packed.length;i++){split=packed[i].split('|');name=split[0];normalized=normalizeName(name);zones[normalized]=packed[i];names[normalized]=name;addToGuesses(normalized,split[2].split(' '));}}\nfunction getZone(name,caller){name=normalizeName(name);var zone=zones[name];var link;if(zone instanceof Zone){return zone;}\nif(typeof zone==='string'){zone=new Zone(zone);zones[name]=zone;return zone;}\nif(links[name]&&caller!==getZone&&(link=getZone(links[name],getZone))){zone=zones[name]=new Zone();zone._set(link);zone.name=names[name];return zone;}\nreturn null;}\nfunction getNames(){var i,out=[];for(i in names){if(names.hasOwnProperty(i)&&(zones[i]||zones[links[i]])&&names[i]){out.push(names[i]);}}\nreturn out.sort();}\nfunction getCountryNames(){return Object.keys(countries);}\nfunction addLink(aliases){var i,alias,normal0,normal1;if(typeof aliases===\"string\"){aliases=[aliases];}\nfor(i=0;i<aliases.length;i++){alias=aliases[i].split('|');normal0=normalizeName(alias[0]);normal1=normalizeName(alias[1]);links[normal0]=normal1;names[normal0]=alias[0];links[normal1]=normal0;names[normal1]=alias[1];}}\nfunction addCountries(data){var i,country_code,country_zones,split;if(!data||!data.length)return;for(i=0;i<data.length;i++){split=data[i].split('|');country_code=split[0].toUpperCase();country_zones=split[1].split(' ');countries[country_code]=new Country(country_code,country_zones);}}\nfunction getCountry(name){name=name.toUpperCase();return countries[name]||null;}\nfunction zonesForCountry(country,with_offset){country=getCountry(country);if(!country)return null;var zones=country.zones.sort();if(with_offset){return zones.map(function(zone_name){var zone=getZone(zone_name);return{name:zone_name,offset:zone.utcOffset(new Date())};});}\nreturn zones;}\nfunction loadData(data){addZone(data.zones);addLink(data.links);addCountries(data.countries);tz.dataVersion=data.version;}\nfunction zoneExists(name){if(!zoneExists.didShowError){zoneExists.didShowError=true;logError(\"moment.tz.zoneExists('\"+name+\"') has been deprecated in favor of !moment.tz.zone('\"+name+\"')\");}\nreturn!!getZone(name);}\nfunction needsOffset(m){var isUnixTimestamp=(m._f==='X'||m._f==='x');return!!(m._a&&(m._tzm===undefined)&&!isUnixTimestamp);}\nfunction logError(message){if(typeof console!=='undefined'&&typeof console.error==='function'){console.error(message);}}\nfunction tz(input){var args=Array.prototype.slice.call(arguments,0,-1),name=arguments[arguments.length-1],zone=getZone(name),out=moment.utc.apply(null,args);if(zone&&!moment.isMoment(input)&&needsOffset(out)){out.add(zone.parse(out),'minutes');}\nout.tz(name);return out;}\ntz.version=VERSION;tz.dataVersion='';tz._zones=zones;tz._links=links;tz._names=names;tz._countries=countries;tz.add=addZone;tz.link=addLink;tz.load=loadData;tz.zone=getZone;tz.zoneExists=zoneExists;tz.guess=guess;tz.names=getNames;tz.Zone=Zone;tz.unpack=unpack;tz.unpackBase60=unpackBase60;tz.needsOffset=needsOffset;tz.moveInvalidForward=true;tz.moveAmbiguousForward=false;tz.countries=getCountryNames;tz.zonesForCountry=zonesForCountry;var fn=moment.fn;moment.tz=tz;moment.defaultZone=null;moment.updateOffset=function(mom,keepTime){var zone=moment.defaultZone,offset;if(mom._z===undefined){if(zone&&needsOffset(mom)&&!mom._isUTC){mom._d=moment.utc(mom._a)._d;mom.utc().add(zone.parse(mom),'minutes');}\nmom._z=zone;}\nif(mom._z){offset=mom._z.utcOffset(mom);if(Math.abs(offset)<16){offset=offset / 60;}\nif(mom.utcOffset!==undefined){var z=mom._z;mom.utcOffset(-offset,keepTime);mom._z=z;}else{mom.zone(offset,keepTime);}}};fn.tz=function(name,keepTime){if(name){if(typeof name!=='string'){throw new Error('Time zone name must be a string, got '+name+' ['+typeof name+']');}\nthis._z=getZone(name);if(this._z){moment.updateOffset(this,keepTime);}else{logError(\"Moment Timezone has no data for \"+name+\". See http://momentjs.com/timezone/docs/#/data-loading/.\");}\nreturn this;}\nif(this._z){return this._z.name;}};function abbrWrap(old){return function(){if(this._z){return this._z.abbr(this);}\nreturn old.call(this);};}\nfunction resetZoneWrap(old){return function(){this._z=null;return old.apply(this,arguments);};}\nfunction resetZoneWrap2(old){return function(){if(arguments.length>0)this._z=null;return old.apply(this,arguments);};}\nfn.zoneName=abbrWrap(fn.zoneName);fn.zoneAbbr=abbrWrap(fn.zoneAbbr);fn.utc=resetZoneWrap(fn.utc);fn.local=resetZoneWrap(fn.local);fn.utcOffset=resetZoneWrap2(fn.utcOffset);moment.tz.setDefault=function(name){if(major<2||(major===2&&minor<9)){logError('Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js '+moment.version+'.');}\nmoment.defaultZone=name?getZone(name):null;return moment;};var momentProperties=moment.momentProperties;if(Object.prototype.toString.call(momentProperties)==='[object Array]'){momentProperties.push('_z');momentProperties.push('_a');}else if(momentProperties){momentProperties._z=null;}\nloadData({\"version\":\"2021e\",\"zones\":[\"Africa/Abidjan|LMT GMT|g.8 0|01|-2ldXH.Q|48e5\",\"Africa/Nairobi|LMT +0230 EAT +0245|-2r.g -2u -30 -2J|012132|-2ua2r.g N6nV.g 3Fbu h1cu dzbJ|47e5\",\"Africa/Algiers|PMT WET WEST CET CEST|-9.l 0 -10 -10 -20|0121212121212121343431312123431213|-2nco9.l cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 DA0 Imo0 rd0 De0 9Xz0 1fb0 1ap0 16K0 2yo0 mEp0 hwL0 jxA0 11A0 dDd0 17b0 11B0 1cN0 2Dy0 1cN0 1fB0 1cL0|26e5\",\"Africa/Lagos|LMT GMT +0030 WAT|-d.z 0 -u -10|01023|-2B40d.z 7iod.z dnXK.p dLzH.z|17e6\",\"Africa/Bissau|LMT -01 GMT|12.k 10 0|012|-2ldX0 2xoo0|39e4\",\"Africa/Maputo|LMT CAT|-2a.k -20|01|-2GJea.k|26e5\",\"Africa/Cairo|EET EEST|-20 -30|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1bIO0 vb0 1ip0 11z0 1iN0 1nz0 12p0 1pz0 10N0 1pz0 16p0 1jz0 s3d0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1WL0 rd0 1Rz0 wp0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1qL0 Xd0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1ny0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 WL0 1qN0 Rb0 1wp0 On0 1zd0 Lz0 1EN0 Fb0 c10 8n0 8Nd0 gL0 e10 mn0|15e6\",\"Africa/Casablanca|LMT +00 +01|u.k 0 -10|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-2gMnt.E 130Lt.E rb0 Dd0 dVb0 b6p0 TX0 EoB0 LL0 gnd0 rz0 43d0 AL0 1Nd0 XX0 1Cp0 pz0 dEp0 4mn0 SyN0 AL0 1Nd0 wn0 1FB0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0|32e5\",\"Africa/Ceuta|WET WEST CET CEST|0 -10 -10 -20|010101010101010101010232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-25KN0 11z0 drd0 18p0 3HX0 17d0 1fz0 1a10 1io0 1a00 1y7o0 LL0 gnd0 rz0 43d0 AL0 1Nd0 XX0 1Cp0 pz0 dEp0 4VB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|85e3\",\"Africa/El_Aaiun|LMT -01 +00 +01|Q.M 10 0 -10|012323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1rDz7.c 1GVA7.c 6L0 AL0 1Nd0 XX0 1Cp0 pz0 1cBB0 AL0 1Nd0 wn0 1FB0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0|20e4\",\"Africa/Johannesburg|SAST SAST SAST|-1u -20 -30|012121|-2GJdu 1Ajdu 1cL0 1cN0 1cL0|84e5\",\"Africa/Juba|LMT CAT CAST EAT|-26.s -20 -30 -30|012121212121212121212121212121212131|-1yW26.s 1zK06.s 16L0 1iN0 17b0 1jd0 17b0 1ip0 17z0 1i10 17X0 1hB0 18n0 1hd0 19b0 1gp0 19z0 1iN0 17b0 1ip0 17z0 1i10 18n0 1hd0 18L0 1gN0 19b0 1gp0 19z0 1iN0 17z0 1i10 17X0 yGd0 PeX0|\",\"Africa/Khartoum|LMT CAT CAST EAT|-2a.8 -20 -30 -30|012121212121212121212121212121212131|-1yW2a.8 1zK0a.8 16L0 1iN0 17b0 1jd0 17b0 1ip0 17z0 1i10 17X0 1hB0 18n0 1hd0 19b0 1gp0 19z0 1iN0 17b0 1ip0 17z0 1i10 18n0 1hd0 18L0 1gN0 19b0 1gp0 19z0 1iN0 17z0 1i10 17X0 yGd0 HjL0|51e5\",\"Africa/Monrovia|MMT MMT GMT|H.8 I.u 0|012|-23Lzg.Q 28G01.m|11e5\",\"Africa/Ndjamena|LMT WAT WAST|-10.c -10 -20|0121|-2le10.c 2J3c0.c Wn0|13e5\",\"Africa/Sao_Tome|LMT GMT WAT|A.J 0 -10|0121|-2le00 4i6N0 2q00|\",\"Africa/Tripoli|LMT CET CEST EET|-Q.I -10 -20 -20|012121213121212121212121213123123|-21JcQ.I 1hnBQ.I vx0 4iP0 xx0 4eN0 Bb0 7ip0 U0n0 A10 1db0 1cN0 1db0 1dd0 1db0 1eN0 1bb0 1e10 1cL0 1c10 1db0 1dd0 1db0 1cN0 1db0 1q10 fAn0 1ep0 1db0 AKq0 TA0 1o00|11e5\",\"Africa/Tunis|PMT CET CEST|-9.l -10 -20|0121212121212121212121212121212121|-2nco9.l 18pa9.l 1qM0 DA0 3Tc0 11B0 1ze0 WM0 7z0 3d0 14L0 1cN0 1f90 1ar0 16J0 1gXB0 WM0 1rA0 11c0 nwo0 Ko0 1cM0 1cM0 1rA0 10M0 zuM0 10N0 1aN0 1qM0 WM0 1qM0 11A0 1o00|20e5\",\"Africa/Windhoek|+0130 SAST SAST CAT WAT|-1u -20 -30 -20 -10|01213434343434343434343434343434343434343434343434343|-2GJdu 1Ajdu 1cL0 1SqL0 9Io0 16P0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0|32e4\",\"America/Adak|NST NWT NPT BST BDT AHST HST HDT|b0 a0 a0 b0 a0 a0 a0 90|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17SX0 8wW0 iB0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cm0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|326\",\"America/Anchorage|AST AWT APT AHST AHDT YST AKST AKDT|a0 90 90 a0 90 90 90 80|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17T00 8wX0 iA0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cm0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|30e4\",\"America/Puerto_Rico|AST AWT APT|40 30 30|0120|-17lU0 7XT0 iu0|24e5\",\"America/Araguaina|LMT -03 -02|3c.M 30 20|0121212121212121212121212121212121212121212121212121|-2glwL.c HdKL.c 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 dMN0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 ny10 Lz0|14e4\",\"America/Argentina/Buenos_Aires|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 A4p0 uL0 1qN0 WL0|\",\"America/Argentina/Catamarca|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323132321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 rlB0 7B0 8zb0 uL0|\",\"America/Argentina/Cordoba|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323132323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 A4p0 uL0 1qN0 WL0|\",\"America/Argentina/Jujuy|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323121323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1ze0 TX0 1ld0 WK0 1wp0 TX0 A4p0 uL0|\",\"America/Argentina/La_Rioja|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Qn0 qO0 16n0 Rb0 1wp0 TX0 rlB0 7B0 8zb0 uL0|\",\"America/Argentina/Mendoza|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232312121321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1u20 SL0 1vd0 Tb0 1wp0 TW0 ri10 Op0 7TX0 uL0|\",\"America/Argentina/Rio_Gallegos|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 rlB0 7B0 8zb0 uL0|\",\"America/Argentina/Salta|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 A4p0 uL0|\",\"America/Argentina/San_Juan|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Qn0 qO0 16n0 Rb0 1wp0 TX0 rld0 m10 8lb0 uL0|\",\"America/Argentina/San_Luis|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323121212321212|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 XX0 1q20 SL0 AN0 vDb0 m10 8lb0 8L0 jd0 1qN0 WL0 1qN0|\",\"America/Argentina/Tucuman|CMT -04 -03 -02|4g.M 40 30 20|0121212121212121212121212121212121212121212323232313232123232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 rlB0 4N0 8BX0 uL0 1qN0 WL0|\",\"America/Argentina/Ushuaia|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 rkN0 8p0 8zb0 uL0|\",\"America/Asuncion|AMT -04 -03|3O.E 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-1x589.k 1DKM9.k 3CL0 3Dd0 10L0 1pB0 10n0 1pB0 10n0 1pB0 1cL0 1dd0 1db0 1dd0 1cL0 1dd0 1cL0 1dd0 1cL0 1dd0 1db0 1dd0 1cL0 1dd0 1cL0 1dd0 1cL0 1dd0 1db0 1dd0 1cL0 1lB0 14n0 1dd0 1cL0 1fd0 WL0 1rd0 1aL0 1dB0 Xz0 1qp0 Xb0 1qN0 10L0 1rB0 TX0 1tB0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 WN0 1qL0 11B0 1nX0 1ip0 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 TX0 1tB0 19X0 1a10 1fz0 1a10 1fz0 1cN0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0|28e5\",\"America/Panama|CMT EST|5j.A 50|01|-2uduE.o|15e5\",\"America/Bahia_Banderas|LMT MST CST PST MDT CDT|71 70 60 80 60 50|0121212131414141414141414141414141414152525252525252525252525252525252525252525252525252525252|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nW0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|84e3\",\"America/Bahia|LMT -03 -02|2y.4 30 20|01212121212121212121212121212121212121212121212121212121212121|-2glxp.U HdLp.U 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 l5B0 Rb0|27e5\",\"America/Barbados|LMT AST ADT -0330|3W.t 40 30 3u|0121213121212121|-2m4k1.v 1eAN1.v RB0 1Bz0 Op0 1rb0 11d0 1jJc0 IL0 1ip0 17b0 1ip0 17b0 1ld0 13b0|28e4\",\"America/Belem|LMT -03 -02|3d.U 30 20|012121212121212121212121212121|-2glwK.4 HdKK.4 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0|20e5\",\"America/Belize|LMT CST -0530 CWT CPT CDT|5Q.M 60 5u 50 50 50|012121212121212121212121212121212121212121212121213412121212121212121212121212121212121212121215151|-2kBu7.c fPA7.c Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu Rcu 7Bt0 Ni0 4nd0 Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu e9Au qn0 lxB0 mn0|57e3\",\"America/Boa_Vista|LMT -04 -03|42.E 40 30|0121212121212121212121212121212121|-2glvV.k HdKV.k 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 smp0 WL0 1tB0 2L0|62e2\",\"America/Bogota|BMT -05 -04|4U.g 50 40|0121|-2eb73.I 38yo3.I 2en0|90e5\",\"America/Boise|PST PDT MST MWT MPT MDT|80 70 70 60 60 60|0101023425252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-261q0 1nX0 11B0 1nX0 8C10 JCL0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 Dd0 1Kn0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e4\",\"America/Cambridge_Bay|-00 MST MWT MPT MDDT MDT CST CDT EST|0 70 60 60 50 60 60 50 50|0123141515151515151515151515151515151515151515678651515151515151515151515151515151515151515151515151515151515151515151515151|-21Jc0 RO90 8x20 ix0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11A0 1nX0 2K0 WQ0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e2\",\"America/Campo_Grande|LMT -04 -03|3C.s 40 30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwl.w HdLl.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 1C10 Lz0 1Ip0 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|77e4\",\"America/Cancun|LMT CST EST EDT CDT|5L.4 60 50 40 50|0123232341414141414141414141414141414141412|-1UQG0 2q2o0 yLB0 1lb0 14p0 1lb0 14p0 Lz0 xB0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 Dd0|63e4\",\"America/Caracas|CMT -0430 -04|4r.E 4u 40|01212|-2kV7w.k 28KM2.k 1IwOu kqo0|29e5\",\"America/Cayenne|LMT -04 -03|3t.k 40 30|012|-2mrwu.E 2gWou.E|58e3\",\"America/Chicago|CST CDT EST CWT CPT|60 50 50 50 50|01010101010101010101010101010101010102010101010103401010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 1wp0 TX0 WN0 1qL0 1cN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 11B0 1Hz0 14p0 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|92e5\",\"America/Chihuahua|LMT MST CST CDT MDT|74.k 70 60 50 60|0121212323241414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|81e4\",\"America/Costa_Rica|SJMT CST CDT|5A.d 60 50|0121212121|-1Xd6n.L 2lu0n.L Db0 1Kp0 Db0 pRB0 15b0 1kp0 mL0|12e5\",\"America/Phoenix|MST MDT MWT|70 60 60|01010202010|-261r0 1nX0 11B0 1nX0 SgN0 4Al1 Ap0 1db0 SWqX 1cL0|42e5\",\"America/Cuiaba|LMT -04 -03|3I.k 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwf.E HdLf.E 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 4a10 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|54e4\",\"America/Danmarkshavn|LMT -03 -02 GMT|1e.E 30 20 0|01212121212121212121212121212121213|-2a5WJ.k 2z5fJ.k 19U0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 DC0|8\",\"America/Dawson_Creek|PST PDT PWT PPT MST|80 70 70 70 70|0102301010101010101010101010101010101010101010101010101014|-25TO0 1in0 UGp0 8x10 iy0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 ML0|12e3\",\"America/Dawson|YST YDT YWT YPT YDDT PST PDT MST|90 80 80 80 70 80 70 70|010102304056565656565656565656565656565656565656565656565656565656565656565656565656565656567|-25TN0 1in0 1o10 13V0 Ser0 8x00 iz0 LCL0 1fA0 jrA0 fNd0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1z90|13e2\",\"America/Denver|MST MDT MWT MPT|70 60 60 60|01010101023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261r0 1nX0 11B0 1nX0 11B0 1qL0 WN0 mn0 Ord0 8x20 ix0 LCN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e5\",\"America/Detroit|LMT CST EST EWT EPT EDT|5w.b 60 50 40 40 40|0123425252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-2Cgir.N peqr.N 156L0 8x40 iv0 6fd0 11z0 JxX1 SMX 1cN0 1cL0 aW10 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e5\",\"America/Edmonton|LMT MST MDT MWT MPT|7x.Q 70 60 60 60|0121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2yd4q.8 shdq.8 1in0 17d0 hz0 2dB0 1fz0 1a10 11z0 1qN0 WL0 1qN0 11z0 IGN0 8x20 ix0 3NB0 11z0 XQp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|10e5\",\"America/Eirunepe|LMT -05 -04|4D.s 50 40|0121212121212121212121212121212121|-2glvk.w HdLk.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 dPB0 On0 yTd0 d5X0|31e3\",\"America/El_Salvador|LMT CST CDT|5U.M 60 50|012121|-1XiG3.c 2Fvc3.c WL0 1qN0 WL0|11e5\",\"America/Tijuana|LMT MST PST PDT PWT PPT|7M.4 70 80 70 70 70|012123245232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UQE0 4PX0 8mM0 8lc0 SN0 1cL0 pHB0 83r0 zI0 5O10 1Rz0 cOO0 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 BUp0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|20e5\",\"America/Fort_Nelson|PST PDT PWT PPT MST|80 70 70 70 70|01023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010104|-25TO0 1in0 UGp0 8x10 iy0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0|39e2\",\"America/Fort_Wayne|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|010101023010101010101010101040454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 QI10 Db0 RB0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 5Tz0 1o10 qLb0 1cL0 1cN0 1cL0 1qhd0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|\",\"America/Fortaleza|LMT -03 -02|2y 30 20|0121212121212121212121212121212121212121|-2glxq HdLq 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 5z0 2mN0 On0|34e5\",\"America/Glace_Bay|LMT AST ADT AWT APT|3X.M 40 30 30 30|012134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsI0.c CwO0.c 1in0 UGp0 8x50 iu0 iq10 11z0 Jg10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|19e3\",\"America/Godthab|LMT -03 -02|3q.U 30 20|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5Ux.4 2z5dx.4 19U0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e3\",\"America/Goose_Bay|NST NDT NST NDT NWT NPT AST ADT ADDT|3u.Q 2u.Q 3u 2u 2u 2u 40 30 20|010232323232323245232323232323232323232323232323232323232326767676767676767676767676767676767676767676768676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-25TSt.8 1in0 DXb0 2HbX.8 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 WL0 1qN0 WL0 1qN0 7UHu itu 1tB0 WL0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1tB0 WL0 1ld0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 S10 g0u 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14n1 1lb0 14p0 1nW0 11C0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|76e2\",\"America/Grand_Turk|KMT EST EDT AST|57.a 50 40 40|0121212121212121212121212121212121212121212121212121212121212121212121212132121212121212121212121212121212121212121|-2l1uQ.O 2HHBQ.O 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 7jA0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e2\",\"America/Guatemala|LMT CST CDT|62.4 60 50|0121212121|-24KhV.U 2efXV.U An0 mtd0 Nz0 ifB0 17b0 zDB0 11z0|13e5\",\"America/Guayaquil|QMT -05 -04|5e 50 40|0121|-1yVSK 2uILK rz0|27e5\",\"America/Guyana|LMT -04 -0345 -03|3Q.D 40 3J 30|01231|-2mf87.l 8Hc7.l 2r7bJ Ey0f|80e4\",\"America/Halifax|LMT AST ADT AWT APT|4e.o 40 30 30 30|0121212121212121212121212121212121212121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsHJ.A xzzJ.A 1db0 3I30 1in0 3HX0 IL0 1E10 ML0 1yN0 Pb0 1Bd0 Mn0 1Bd0 Rz0 1w10 Xb0 1w10 LX0 1w10 Xb0 1w10 Lz0 1C10 Jz0 1E10 OL0 1yN0 Un0 1qp0 Xb0 1qp0 11X0 1w10 Lz0 1HB0 LX0 1C10 FX0 1w10 Xb0 1qp0 Xb0 1BB0 LX0 1td0 Xb0 1qp0 Xb0 Rf0 8x50 iu0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 3Qp0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 3Qp0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 6i10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|39e4\",\"America/Havana|HMT CST CDT|5t.A 50 40|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Meuu.o 72zu.o ML0 sld0 An0 1Nd0 Db0 1Nd0 An0 6Ep0 An0 1Nd0 An0 JDd0 Mn0 1Ap0 On0 1fd0 11X0 1qN0 WL0 1wp0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 14n0 1ld0 14L0 1kN0 15b0 1kp0 1cL0 1cN0 1fz0 1a10 1fz0 1fB0 11z0 14p0 1nX0 11B0 1nX0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 14n0 1ld0 14n0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 1a10 1in0 1a10 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 17c0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 11A0 6i00 Rc0 1wo0 U00 1tA0 Rc0 1wo0 U00 1wo0 U00 1zc0 U00 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0|21e5\",\"America/Hermosillo|LMT MST CST PST MDT|7n.Q 70 60 80 60|0121212131414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0|64e4\",\"America/Indiana/Knox|CST CDT CWT CPT EST|60 50 50 50 50|0101023010101010101010101010101010101040101010101010101010101010101010101010101010101010141010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 11z0 1o10 11z0 1o10 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 3Cn0 8wp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 z8o0 1o00 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|\",\"America/Indiana/Marengo|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101023010101010101010104545454545414545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 dyN0 11z0 6fd0 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 jrz0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1VA0 LA0 1BX0 1e6p0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|\",\"America/Indiana/Petersburg|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010104010101010101010101010141014545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 njX0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 3Fb0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 19co0 1o00 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|\",\"America/Indiana/Tell_City|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010401054541010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 njX0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 8wn0 1cN0 1cL0 1cN0 1cK0 1cN0 1cL0 1qhd0 1o00 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|\",\"America/Indiana/Vevay|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|010102304545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 kPB0 Awn0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1lnd0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|\",\"America/Indiana/Vincennes|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010101010454541014545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 g0p0 11z0 1o10 11z0 1qL0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 caL0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|\",\"America/Indiana/Winamac|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010101010101010454541054545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 jrz0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1za0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|\",\"America/Inuvik|-00 PST PDDT MST MDT|0 80 60 70 60|0121343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-FnA0 tWU0 1fA0 wPe0 2pz0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|35e2\",\"America/Iqaluit|-00 EWT EPT EST EDDT EDT CST CDT|0 40 40 50 30 40 60 50|01234353535353535353535353535353535353535353567353535353535353535353535353535353535353535353535353535353535353535353535353|-16K00 7nX0 iv0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11C0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|67e2\",\"America/Jamaica|KMT EST EDT|57.a 50 40|0121212121212121212121|-2l1uQ.O 2uM1Q.O 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0|94e4\",\"America/Juneau|PST PWT PPT PDT YDT YST AKST AKDT|80 70 70 70 80 90 90 80|01203030303030303030303030403030356767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cM0 1cM0 1cL0 1cN0 1fz0 1a10 1fz0 co0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|33e3\",\"America/Kentucky/Louisville|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101010102301010101010101010101010101454545454545414545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 3Fd0 Nb0 LPd0 11z0 RB0 8x30 iw0 1nX1 e0X 9vd0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 xz0 gso0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1VA0 LA0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|\",\"America/Kentucky/Monticello|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101023010101010101010101010101010101010101010101010101010101010101010101454545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 SWp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|\",\"America/La_Paz|CMT BST -04|4w.A 3w.A 40|012|-1x37r.o 13b0|19e5\",\"America/Lima|LMT -05 -04|58.A 50 40|0121212121212121|-2tyGP.o 1bDzP.o zX0 1aN0 1cL0 1cN0 1cL0 1PrB0 zX0 1O10 zX0 6Gp0 zX0 98p0 zX0|11e6\",\"America/Los_Angeles|PST PDT PWT PPT|80 70 70 70|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261q0 1nX0 11B0 1nX0 SgN0 8x10 iy0 5Wp1 1VaX 3dA0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e6\",\"America/Maceio|LMT -03 -02|2m.Q 30 20|012121212121212121212121212121212121212121|-2glxB.8 HdLB.8 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 dMN0 Lz0 8Q10 WL0 1tB0 5z0 2mN0 On0|93e4\",\"America/Managua|MMT CST EST CDT|5J.c 60 50 50|0121313121213131|-1quie.M 1yAMe.M 4mn0 9Up0 Dz0 1K10 Dz0 s3F0 1KH0 DB0 9In0 k8p0 19X0 1o30 11y0|22e5\",\"America/Manaus|LMT -04 -03|40.4 40 30|01212121212121212121212121212121|-2glvX.U HdKX.U 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 dPB0 On0|19e5\",\"America/Martinique|FFMT AST ADT|44.k 40 30|0121|-2mPTT.E 2LPbT.E 19X0|39e4\",\"America/Matamoros|LMT CST CDT|6E 60 50|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1UQG0 2FjC0 1nX0 i6p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|45e4\",\"America/Mazatlan|LMT MST CST PST MDT|75.E 70 60 80 60|0121212131414141414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|44e4\",\"America/Menominee|CST CDT CWT CPT EST|60 50 50 50 50|01010230101041010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 LCN0 1fz0 6410 9Jb0 1cM0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|85e2\",\"America/Merida|LMT CST EST CDT|5W.s 60 50 50|0121313131313131313131313131313131313131313131313131313131313131313131313131313131313131|-1UQG0 2q2o0 2hz0 wu30 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|11e5\",\"America/Metlakatla|PST PWT PPT PDT AKST AKDT|80 70 70 70 90 80|01203030303030303030303030303030304545450454545454545454545454545454545454545454|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1hU10 Rd0 1zb0 Op0 1zb0 Op0 1zb0 uM0 jB0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|14e2\",\"America/Mexico_City|LMT MST CST CDT CWT|6A.A 70 60 50 50|012121232324232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 gEn0 TX0 3xd0 Jb0 6zB0 SL0 e5d0 17b0 1Pff0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|20e6\",\"America/Miquelon|LMT AST -03 -02|3I.E 40 30 20|012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2mKkf.k 2LTAf.k gQ10 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|61e2\",\"America/Moncton|EST AST ADT AWT APT|50 40 30 30 30|012121212121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsH0 CwN0 1in0 zAo0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1K10 Lz0 1zB0 NX0 1u10 Wn0 S20 8x50 iu0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 3Cp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14n1 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 ReX 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|64e3\",\"America/Monterrey|LMT CST CDT|6F.g 60 50|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1UQG0 2FjC0 1nX0 i6p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|41e5\",\"America/Montevideo|LMT MMT -04 -03 -0330 -0230 -02 -0130|3I.P 3I.P 40 30 3u 2u 20 1u|012343434343434343434343435353636353636375363636363636363636363636363636363636363636363|-2tRUf.9 sVc0 8jcf.9 1db0 1dcu 1cLu 1dcu 1cLu ircu 11zu 1o0u 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 1qMu WLu 1fAu 1cLu 1o0u 11zu NAu 3jXu zXu Dq0u 19Xu pcu jz0 cm10 19X0 6tB0 1fbu 3o0u jX0 4vB0 xz0 3Cp0 mmu 1a10 IMu Db0 4c10 uL0 1Nd0 An0 1SN0 uL0 mp0 28L0 iPB0 un0 1SN0 xz0 1zd0 Lz0 1zd0 Rb0 1zd0 On0 1wp0 Rb0 s8p0 1fB0 1ip0 11z0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 14n0 1ld0 14n0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 11z0|17e5\",\"America/Toronto|EST EDT EWT EPT|50 40 40 40|01010101010101010101010101010101010101010101012301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TR0 1in0 11Wu 1nzu 1fD0 WJ0 1wr0 Nb0 1Ap0 On0 1zd0 On0 1wp0 TX0 1tB0 TX0 1tB0 TX0 1tB0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 4kM0 8x40 iv0 1o10 11z0 1nX0 11z0 1o10 11z0 1o10 1qL0 11D0 1nX0 11B0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|65e5\",\"America/New_York|EST EDT EWT EPT|50 40 40 40|01010101010101010101010101010101010101010101010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261t0 1nX0 11B0 1nX0 11B0 1qL0 1a10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x40 iv0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e6\",\"America/Nipigon|EST EDT EWT EPT|50 40 40 40|010123010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TR0 1in0 Rnb0 3je0 8x40 iv0 19yN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|16e2\",\"America/Nome|NST NWT NPT BST BDT YST AKST AKDT|b0 a0 a0 b0 a0 90 90 80|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17SX0 8wW0 iB0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cl0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|38e2\",\"America/Noronha|LMT -02 -01|29.E 20 10|0121212121212121212121212121212121212121|-2glxO.k HdKO.k 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 2L0 2pB0 On0|30e2\",\"America/North_Dakota/Beulah|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101014545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|\",\"America/North_Dakota/Center|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101014545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14o0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|\",\"America/North_Dakota/New_Salem|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101454545454545454545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14o0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|\",\"America/Ojinaga|LMT MST CST CDT MDT|6V.E 70 60 50 60|0121212323241414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e3\",\"America/Pangnirtung|-00 AST AWT APT ADDT ADT EDT EST CST CDT|0 40 30 30 20 30 40 50 60 50|012314151515151515151515151515151515167676767689767676767676767676767676767676767676767676767676767676767676767676767676767|-1XiM0 PnG0 8x50 iu0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1o00 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11C0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|14e2\",\"America/Paramaribo|LMT PMT PMT -0330 -03|3E.E 3E.Q 3E.A 3u 30|01234|-2nDUj.k Wqo0.c qanX.I 1yVXN.o|24e4\",\"America/Port-au-Prince|PPMT EST EDT|4N 50 40|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-28RHb 2FnMb 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14q0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 i6n0 1nX0 11B0 1nX0 d430 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 3iN0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5\",\"America/Rio_Branco|LMT -05 -04|4v.c 50 40|01212121212121212121212121212121|-2glvs.M HdLs.M 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 NBd0 d5X0|31e4\",\"America/Porto_Velho|LMT -04 -03|4f.A 40 30|012121212121212121212121212121|-2glvI.o HdKI.o 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0|37e4\",\"America/Punta_Arenas|SMT -05 -04 -03|4G.K 50 40 30|0102021212121212121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-2q2jh.e fJAh.e 5knG.K 1Vzh.e jRAG.K 1pbh.e 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 blz0 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0|\",\"America/Rainy_River|CST CDT CWT CPT|60 50 50 50|010123010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TQ0 1in0 Rnb0 3je0 8x30 iw0 19yN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|842\",\"America/Rankin_Inlet|-00 CST CDDT CDT EST|0 60 40 50 50|012131313131313131313131313131313131313131313431313131313131313131313131313131313131313131313131313131313131313131313131|-vDc0 keu0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e2\",\"America/Recife|LMT -03 -02|2j.A 30 20|0121212121212121212121212121212121212121|-2glxE.o HdLE.o 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 2L0 2pB0 On0|33e5\",\"America/Regina|LMT MST MDT MWT MPT CST|6W.A 70 60 60 60 60|012121212121212121212121341212121212121212121212121215|-2AD51.o uHe1.o 1in0 s2L0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 66N0 1cL0 1cN0 19X0 1fB0 1cL0 1fB0 1cL0 1cN0 1cL0 M30 8x20 ix0 1ip0 1cL0 1ip0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 3NB0 1cL0 1cN0|19e4\",\"America/Resolute|-00 CST CDDT CDT EST|0 60 40 50 50|012131313131313131313131313131313131313131313431313131313431313131313131313131313131313131313131313131313131313131313131|-SnA0 GWS0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|229\",\"America/Santarem|LMT -04 -03|3C.M 40 30|0121212121212121212121212121212|-2glwl.c HdLl.c 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 NBd0|21e4\",\"America/Santiago|SMT -05 -04 -03|4G.K 50 40 30|010202121212121212321232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-2q2jh.e fJAh.e 5knG.K 1Vzh.e jRAG.K 1pbh.e 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 9Bz0 jb0 1oN0 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0|62e5\",\"America/Santo_Domingo|SDMT EST EDT -0430 AST|4E 50 40 4u 40|01213131313131414|-1ttjk 1lJMk Mn0 6sp0 Lbu 1Cou yLu 1RAu wLu 1QMu xzu 1Q0u xXu 1PAu 13jB0 e00|29e5\",\"America/Sao_Paulo|LMT -03 -02|36.s 30 20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwR.w HdKR.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 pTd0 PX0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 1C10 Lz0 1Ip0 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|20e6\",\"America/Scoresbysund|LMT -02 -01 +00|1r.Q 20 10 0|0121323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2a5Ww.8 2z5ew.8 1a00 1cK0 1cL0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|452\",\"America/Sitka|PST PWT PPT PDT YST AKST AKDT|80 70 70 70 90 90 80|01203030303030303030303030303030345656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 co0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|90e2\",\"America/St_Johns|NST NDT NST NDT NWT NPT NDDT|3u.Q 2u.Q 3u 2u 2u 2u 1u|01010101010101010101010101010101010102323232323232324523232323232323232323232323232323232323232323232323232323232323232323232323232323232326232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-28oit.8 14L0 1nB0 1in0 1gm0 Dz0 1JB0 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 1cL0 1fB0 19X0 1fB0 19X0 10O0 eKX.8 19X0 1iq0 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 WL0 1qN0 WL0 1qN0 7UHu itu 1tB0 WL0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1tB0 WL0 1ld0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14n1 1lb0 14p0 1nW0 11C0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|11e4\",\"America/Swift_Current|LMT MST MDT MWT MPT CST|7b.k 70 60 60 60 60|012134121212121212121215|-2AD4M.E uHdM.E 1in0 UGp0 8x20 ix0 1o10 17b0 1ip0 11z0 1o10 11z0 1o10 11z0 isN0 1cL0 3Cp0 1cL0 1cN0 11z0 1qN0 WL0 pMp0|16e3\",\"America/Tegucigalpa|LMT CST CDT|5M.Q 60 50|01212121|-1WGGb.8 2ETcb.8 WL0 1qN0 WL0 GRd0 AL0|11e5\",\"America/Thule|LMT AST ADT|4z.8 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5To.Q 31NBo.Q 1cL0 1cN0 1cL0 1fB0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|656\",\"America/Thunder_Bay|CST EST EWT EPT EDT|60 50 40 40 40|0123141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141|-2q5S0 1iaN0 8x40 iv0 XNB0 1cL0 1cN0 1fz0 1cN0 1cL0 3Cp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|11e4\",\"America/Vancouver|PST PDT PWT PPT|80 70 70 70|0102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TO0 1in0 UGp0 8x10 iy0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5\",\"America/Whitehorse|YST YDT YWT YPT YDDT PST PDT MST|90 80 80 80 70 80 70 70|010102304056565656565656565656565656565656565656565656565656565656565656565656565656565656567|-25TN0 1in0 1o10 13V0 Ser0 8x00 iz0 LCL0 1fA0 3NA0 vrd0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1z90|23e3\",\"America/Winnipeg|CST CDT CWT CPT|60 50 50 50|010101023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aIi0 WL0 3ND0 1in0 Jap0 Rb0 aCN0 8x30 iw0 1tB0 11z0 1ip0 11z0 1o10 11z0 1o10 11z0 1rd0 10L0 1op0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 1cL0 1cN0 11z0 6i10 WL0 6i10 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|66e4\",\"America/Yakutat|YST YWT YPT YDT AKST AKDT|90 80 80 80 90 80|01203030303030303030303030303030304545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-17T10 8x00 iz0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cn0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|642\",\"America/Yellowknife|-00 MST MWT MPT MDDT MDT|0 70 60 60 50 60|012314151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151|-1pdA0 hix0 8x20 ix0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|19e3\",\"Antarctica/Casey|-00 +08 +11|0 -80 -b0|0121212121212|-2q00 1DjS0 T90 40P0 KL0 blz0 3m10 1o30 14k0 1kr0 12l0 1o01|10\",\"Antarctica/Davis|-00 +07 +05|0 -70 -50|01012121|-vyo0 iXt0 alj0 1D7v0 VB0 3Wn0 KN0|70\",\"Pacific/Port_Moresby|+10|-a0|0||25e4\",\"Antarctica/Macquarie|AEST AEDT -00|-a0 -b0 0|010201010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 1a00 4SK0 1ayy0 Lvs0 1cM0 1o00 Rc0 1wo0 Rc0 1wo0 U00 1wo0 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 3Co0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|1\",\"Antarctica/Mawson|-00 +06 +05|0 -60 -50|012|-CEo0 2fyk0|60\",\"Pacific/Auckland|NZMT NZST NZST NZDT|-bu -cu -c0 -d0|01020202020202020202020202023232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1GCVu Lz0 1tB0 11zu 1o0u 11zu 1o0u 11zu 1o0u 14nu 1lcu 14nu 1lcu 1lbu 11Au 1nXu 11Au 1nXu 11Au 1nXu 11Au 1nXu 11Au 1qLu WMu 1qLu 11Au 1n1bu IM0 1C00 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1qM0 14o0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1io0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|14e5\",\"Antarctica/Palmer|-00 -03 -04 -02|0 30 40 20|0121212121213121212121212121212121212121212121212121212121212121212121212121212121|-cao0 nD0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 jsN0 14N0 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0|40\",\"Antarctica/Rothera|-00 -03|0 30|01|gOo0|130\",\"Asia/Riyadh|LMT +03|-36.Q -30|01|-TvD6.Q|57e5\",\"Antarctica/Troll|-00 +00 +02|0 0 -20|01212121212121212121212121212121212121212121212121212121212121212121|1puo0 hd0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|40\",\"Antarctica/Vostok|-00 +06|0 -60|01|-tjA0|25\",\"Europe/Oslo|CET CEST|-10 -20|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2awM0 Qm0 W6o0 5pf0 WM0 1fA0 1cM0 1cM0 1cM0 1cM0 wJc0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1qM0 WM0 zpc0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|62e4\",\"Asia/Almaty|LMT +05 +06 +07|-57.M -50 -60 -70|012323232323232323232321232323232323232323232323232|-1Pc57.M eUo7.M 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0|15e5\",\"Asia/Amman|LMT EET EEST|-2n.I -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1yW2n.I 1HiMn.I KL0 1oN0 11b0 1oN0 11b0 1pd0 1dz0 1cp0 11b0 1op0 11b0 fO10 1db0 1e10 1cL0 1cN0 1cL0 1cN0 1fz0 1pd0 10n0 1ld0 14n0 1hB0 15b0 1ip0 19X0 1cN0 1cL0 1cN0 17b0 1ld0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1So0 y00 1fc0 1dc0 1co0 1dc0 1cM0 1cM0 1cM0 1o00 11A0 1lc0 17c0 1cM0 1cM0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 4bX0 Dd0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 LA0 1C00 LA0 1C00 Oo0 1zc0 Oo0 1C00 LA0 1C00 LA0 1C00 LA0 1C00 LA0 1C00 Oo0 1zc0 Oo0 1C00 LA0 1C00 LA0 1C00 LA0 1C00 LA0 1C00 Oo0 1C00 LA0 1C00|25e5\",\"Asia/Anadyr|LMT +12 +13 +14 +11|-bN.U -c0 -d0 -e0 -b0|01232121212121212121214121212121212121212121212121212121212141|-1PcbN.U eUnN.U 23CL0 1db0 2q10 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|13e3\",\"Asia/Aqtau|LMT +04 +05 +06|-3l.4 -40 -50 -60|012323232323232323232123232312121212121212121212|-1Pc3l.4 eUnl.4 24PX0 2pX0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|15e4\",\"Asia/Aqtobe|LMT +04 +05 +06|-3M.E -40 -50 -60|0123232323232323232321232323232323232323232323232|-1Pc3M.E eUnM.E 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0|27e4\",\"Asia/Ashgabat|LMT +04 +05 +06|-3R.w -40 -50 -60|0123232323232323232323212|-1Pc3R.w eUnR.w 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0|41e4\",\"Asia/Atyrau|LMT +03 +05 +06 +04|-3r.I -30 -50 -60 -40|01232323232323232323242323232323232324242424242|-1Pc3r.I eUor.I 24PW0 2pX0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 2sp0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|\",\"Asia/Baghdad|BMT +03 +04|-2V.A -30 -40|012121212121212121212121212121212121212121212121212121|-26BeV.A 2ACnV.A 11b0 1cp0 1dz0 1dd0 1db0 1cN0 1cp0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1de0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0|66e5\",\"Asia/Qatar|LMT +04 +03|-3q.8 -40 -30|012|-21Jfq.8 27BXq.8|96e4\",\"Asia/Baku|LMT +03 +04 +05|-3j.o -30 -40 -50|01232323232323232323232123232323232323232323232323232323232323232|-1Pc3j.o 1jUoj.o WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cM0 9Je0 1o00 11z0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|27e5\",\"Asia/Bangkok|BMT +07|-6G.4 -70|01|-218SG.4|15e6\",\"Asia/Barnaul|LMT +06 +07 +08|-5z -60 -70 -80|0123232323232323232323212323232321212121212121212121212121212121212|-21S5z pCnz 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 p90 LE0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|\",\"Asia/Beirut|EET EEST|-20 -30|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-21aq0 1on0 1410 1db0 19B0 1in0 1ip0 WL0 1lQp0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 q6N0 En0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1op0 11b0 dA10 17b0 1iN0 17b0 1iN0 17b0 1iN0 17b0 1vB0 SL0 1mp0 13z0 1iN0 17b0 1iN0 17b0 1jd0 12n0 1a10 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0|22e5\",\"Asia/Bishkek|LMT +05 +06 +07|-4W.o -50 -60 -70|012323232323232323232321212121212121212121212121212|-1Pc4W.o eUnW.o 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2e00 1tX0 17b0 1ip0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1cPu 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0|87e4\",\"Asia/Brunei|LMT +0730 +08|-7D.E -7u -80|012|-1KITD.E gDc9.E|42e4\",\"Asia/Kolkata|MMT IST +0630|-5l.a -5u -6u|012121|-2zOtl.a 1r2LP.a 1un0 HB0 7zX0|15e6\",\"Asia/Chita|LMT +08 +09 +10|-7x.Q -80 -90 -a0|012323232323232323232321232323232323232323232323232323232323232312|-21Q7x.Q pAnx.Q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3re0|33e4\",\"Asia/Choibalsan|LMT +07 +08 +10 +09|-7C -70 -80 -a0 -90|0123434343434343434343434343434343434343434343424242|-2APHC 2UkoC cKn0 1da0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 3Db0 h1f0 1cJ0 1cP0 1cJ0|38e3\",\"Asia/Shanghai|CST CDT|-80 -90|01010101010101010101010101010|-23uw0 18n0 OjB0 Rz0 11d0 1wL0 A10 8HX0 1G10 Tz0 1ip0 1jX0 1cN0 11b0 1oN0 aL0 1tU30 Rb0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0|23e6\",\"Asia/Colombo|MMT +0530 +06 +0630|-5j.w -5u -60 -6u|01231321|-2zOtj.w 1rFbN.w 1zzu 7Apu 23dz0 11zu n3cu|22e5\",\"Asia/Dhaka|HMT +0630 +0530 +06 +07|-5R.k -6u -5u -60 -70|0121343|-18LFR.k 1unn.k HB0 m6n0 2kxbu 1i00|16e6\",\"Asia/Damascus|LMT EET EEST|-2p.c -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-21Jep.c Hep.c 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1xRB0 11X0 1oN0 10L0 1pB0 11b0 1oN0 10L0 1mp0 13X0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 Nb0 1AN0 Nb0 bcp0 19X0 1gp0 19X0 3ld0 1xX0 Vd0 1Bz0 Sp0 1vX0 10p0 1dz0 1cN0 1cL0 1db0 1db0 1g10 1an0 1ap0 1db0 1fd0 1db0 1cN0 1db0 1dd0 1db0 1cp0 1dz0 1c10 1dX0 1cN0 1db0 1dd0 1db0 1cN0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1db0 1cN0 1db0 1cN0 19z0 1fB0 1qL0 11B0 1on0 Wp0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0|26e5\",\"Asia/Dili|LMT +08 +09|-8m.k -80 -90|01212|-2le8m.k 1dnXm.k 1nfA0 Xld0|19e4\",\"Asia/Dubai|LMT +04|-3F.c -40|01|-21JfF.c|39e5\",\"Asia/Dushanbe|LMT +05 +06 +07|-4z.c -50 -60 -70|012323232323232323232321|-1Pc4z.c eUnz.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2hB0|76e4\",\"Asia/Famagusta|LMT EET EEST +03|-2f.M -20 -30 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212312121212121212121212121212121212121212121|-1Vc2f.M 2a3cf.M 1cL0 1qp0 Xz0 19B0 19X0 1fB0 1db0 1cp0 1cL0 1fB0 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1o30 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 15U0 2Ks0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|\",\"Asia/Gaza|EET EEST IST IDT|-20 -30 -20 -30|010101010101010101010101010101010123232323232323232323232323232320101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2o0 MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 pBa0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 dW0 hfB0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 M10 C00 17c0 1io0 17c0 1io0 17c0 1o00 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 17c0 1io0 18N0 1bz0 19z0 1gp0 1610 1iL0 11z0 1o10 14o0 1lA1 SKX 1xd1 MKX 1AN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nA0 1210 1qL0 WN0 1qL0 WN0 1qL0 11c0 1on0 11B0 1o00 11A0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1nA0 1200 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1nA0 1200 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1qo0 Xc0 1qo0|18e5\",\"Asia/Hebron|EET EEST IST IDT|-20 -30 -20 -30|01010101010101010101010101010101012323232323232323232323232323232010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2o0 MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 pBa0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 dW0 hfB0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 M10 C00 17c0 1io0 17c0 1io0 17c0 1o00 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 17c0 1io0 18N0 1bz0 19z0 1gp0 1610 1iL0 12L0 1mN0 14o0 1lc0 Tb0 1xd1 MKX bB0 cn0 1cN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nA0 1210 1qL0 WN0 1qL0 WN0 1qL0 11c0 1on0 11B0 1o00 11A0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1nA0 1200 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1nA0 1200 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1qo0 Xc0 1qo0|25e4\",\"Asia/Ho_Chi_Minh|LMT PLMT +07 +08 +09|-76.E -76.u -70 -80 -90|0123423232|-2yC76.E bK00.a 1h7b6.u 5lz0 18o0 3Oq0 k5b0 aW00 BAM0|90e5\",\"Asia/Hong_Kong|LMT HKT HKST HKWT JST|-7A.G -80 -90 -8u -90|0123412121212121212121212121212121212121212121212121212121212121212121|-2CFH0 1taO0 Hc0 xUu 9tBu 11z0 1tDu Rc0 1wo0 11A0 1cM0 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1nX0 U10 1tz0 U10 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 Rd0 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 17d0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1cL0 6fd0 14n0|73e5\",\"Asia/Hovd|LMT +06 +07 +08|-66.A -60 -70 -80|012323232323232323232323232323232323232323232323232|-2APG6.A 2Uko6.A cKn0 1db0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 kEp0 1cJ0 1cP0 1cJ0|81e3\",\"Asia/Irkutsk|IMT +07 +08 +09|-6V.5 -70 -80 -90|01232323232323232323232123232323232323232323232323232323232323232|-21zGV.5 pjXV.5 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|60e4\",\"Europe/Istanbul|IMT EET EEST +03 +04|-1U.U -20 -30 -30 -40|0121212121212121212121212121212121212121212121234312121212121212121212121212121212121212121212121212121212121212123|-2ogNU.U dzzU.U 11b0 8tB0 1on0 1410 1db0 19B0 1in0 3Rd0 Un0 1oN0 11b0 zSN0 CL0 mp0 1Vz0 1gN0 8yn0 1yp0 ML0 1kp0 17b0 1ip0 17b0 1fB0 19X0 1ip0 19X0 1ip0 17b0 qdB0 38L0 1jd0 Tz0 l6O0 11A0 WN0 1qL0 TB0 1tX0 U10 1tz0 11B0 1in0 17d0 z90 cne0 pb0 2Cp0 1800 14o0 1dc0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1a00 1fA0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WO0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 Xc0 1qo0 WM0 1qM0 11A0 1o00 1200 1nA0 11A0 1tA0 U00 15w0|13e6\",\"Asia/Jakarta|BMT +0720 +0730 +09 +08 WIB|-77.c -7k -7u -90 -80 -70|01232425|-1Q0Tk luM0 mPzO 8vWu 6kpu 4PXu xhcu|31e6\",\"Asia/Jayapura|LMT +09 +0930 WIT|-9m.M -90 -9u -90|0123|-1uu9m.M sMMm.M L4nu|26e4\",\"Asia/Jerusalem|JMT IST IDT IDDT|-2k.E -20 -30 -40|01212121212121321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-26Bek.E SyOk.E MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 3LA0 Eo0 oo0 1co0 1dA0 16o0 10M0 1jc0 1tA0 14o0 1cM0 1a00 11A0 1Nc0 Ao0 1Nc0 Ao0 1Ko0 LA0 1o00 WM0 EQK0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 1hB0 1dX0 1ep0 1aL0 1eN0 17X0 1nf0 11z0 1tB0 19W0 1e10 17b0 1ep0 1gL0 18N0 1fz0 1eN0 17b0 1gq0 1gn0 19d0 1dz0 1c10 17X0 1hB0 1gn0 19d0 1dz0 1c10 17X0 1kp0 1dz0 1c10 1aL0 1eN0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0|81e4\",\"Asia/Kabul|+04 +0430|-40 -4u|01|-10Qs0|46e5\",\"Asia/Kamchatka|LMT +11 +12 +13|-ay.A -b0 -c0 -d0|012323232323232323232321232323232323232323232323232323232323212|-1SLKy.A ivXy.A 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|18e4\",\"Asia/Karachi|LMT +0530 +0630 +05 PKT PKST|-4s.c -5u -6u -50 -50 -60|012134545454|-2xoss.c 1qOKW.c 7zX0 eup0 LqMu 1fy00 1cL0 dK10 11b0 1610 1jX0|24e6\",\"Asia/Urumqi|LMT +06|-5O.k -60|01|-1GgtO.k|32e5\",\"Asia/Kathmandu|LMT +0530 +0545|-5F.g -5u -5J|012|-21JhF.g 2EGMb.g|12e5\",\"Asia/Khandyga|LMT +08 +09 +10 +11|-92.d -80 -90 -a0 -b0|0123232323232323232323212323232323232323232323232343434343434343432|-21Q92.d pAp2.d 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 qK0 yN0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 17V0 7zD0|66e2\",\"Asia/Krasnoyarsk|LMT +06 +07 +08|-6b.q -60 -70 -80|01232323232323232323232123232323232323232323232323232323232323232|-21Hib.q prAb.q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|10e5\",\"Asia/Kuala_Lumpur|SMT +07 +0720 +0730 +09 +08|-6T.p -70 -7k -7u -90 -80|0123435|-2Bg6T.p 17anT.p l5XE 17bO 8Fyu 1so1u|71e5\",\"Asia/Kuching|LMT +0730 +08 +0820 +09|-7l.k -7u -80 -8k -90|0123232323232323242|-1KITl.k gDbP.k 6ynu AnE 1O0k AnE 1NAk AnE 1NAk AnE 1NAk AnE 1O0k AnE 1NAk AnE pAk 8Fz0|13e4\",\"Asia/Macau|LMT CST +09 +10 CDT|-7y.a -80 -90 -a0 -90|012323214141414141414141414141414141414141414141414141414141414141414141|-2CFHy.a 1uqKy.a PX0 1kn0 15B0 11b0 4Qq0 1oM0 11c0 1ko0 1u00 11A0 1cM0 11c0 1o00 11A0 1o00 11A0 1oo0 1400 1o00 11A0 1o00 U00 1tA0 U00 1wo0 Rc0 1wru U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 Rd0 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 17d0 1cK0 1cO0 1cK0 1cO0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1cL0 6fd0 14n0|57e4\",\"Asia/Magadan|LMT +10 +11 +12|-a3.c -a0 -b0 -c0|012323232323232323232321232323232323232323232323232323232323232312|-1Pca3.c eUo3.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3Cq0|95e3\",\"Asia/Makassar|LMT MMT +08 +09 WITA|-7V.A -7V.A -80 -90 -80|01234|-21JjV.A vfc0 myLV.A 8ML0|15e5\",\"Asia/Manila|PST PDT JST|-80 -90 -90|010201010|-1kJI0 AL0 cK10 65X0 mXB0 vX0 VK10 1db0|24e6\",\"Asia/Nicosia|LMT EET EEST|-2d.s -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Vc2d.s 2a3cd.s 1cL0 1qp0 Xz0 19B0 19X0 1fB0 1db0 1cp0 1cL0 1fB0 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1o30 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|32e4\",\"Asia/Novokuznetsk|LMT +06 +07 +08|-5M.M -60 -70 -80|012323232323232323232321232323232323232323232323232323232323212|-1PctM.M eULM.M 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|55e4\",\"Asia/Novosibirsk|LMT +06 +07 +08|-5v.E -60 -70 -80|0123232323232323232323212323212121212121212121212121212121212121212|-21Qnv.E pAFv.E 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 ml0 Os0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 4eN0|15e5\",\"Asia/Omsk|LMT +05 +06 +07|-4R.u -50 -60 -70|01232323232323232323232123232323232323232323232323232323232323232|-224sR.u pMLR.u 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|12e5\",\"Asia/Oral|LMT +03 +05 +06 +04|-3p.o -30 -50 -60 -40|01232323232323232424242424242424242424242424242|-1Pc3p.o eUop.o 23CK0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 1cM0 IM0 1EM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|27e4\",\"Asia/Pontianak|LMT PMT +0730 +09 +08 WITA WIB|-7h.k -7h.k -7u -90 -80 -80 -70|012324256|-2ua7h.k XE00 munL.k 8Rau 6kpu 4PXu xhcu Wqnu|23e4\",\"Asia/Pyongyang|LMT KST JST KST|-8n -8u -90 -90|012313|-2um8n 97XR 1lTzu 2Onc0 6BA0|29e5\",\"Asia/Qostanay|LMT +04 +05 +06|-4e.s -40 -50 -60|012323232323232323232123232323232323232323232323|-1Pc4e.s eUoe.s 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|\",\"Asia/Qyzylorda|LMT +04 +05 +06|-4l.Q -40 -50 -60|01232323232323232323232323232323232323232323232|-1Pc4l.Q eUol.Q 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 3ao0 1EM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 zQl0|73e4\",\"Asia/Rangoon|RMT +0630 +09|-6o.L -6u -90|0121|-21Jio.L SmnS.L 7j9u|48e5\",\"Asia/Sakhalin|LMT +09 +11 +12 +10|-9u.M -90 -b0 -c0 -a0|01232323232323232323232423232323232424242424242424242424242424242|-2AGVu.M 1BoMu.M 1qFa0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 2pB0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|58e4\",\"Asia/Samarkand|LMT +04 +05 +06|-4r.R -40 -50 -60|01232323232323232323232|-1Pc4r.R eUor.R 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0|36e4\",\"Asia/Seoul|LMT KST JST KST KDT KDT|-8r.Q -8u -90 -90 -a0 -9u|012343434343151515151515134343|-2um8r.Q 97XV.Q 1m1zu 6CM0 Fz0 1kN0 14n0 1kN0 14L0 1zd0 On0 69B0 2I0u OL0 1FB0 Rb0 1qN0 TX0 1tB0 TX0 1tB0 TX0 1tB0 TX0 2ap0 12FBu 11A0 1o00 11A0|23e6\",\"Asia/Srednekolymsk|LMT +10 +11 +12|-ae.Q -a0 -b0 -c0|01232323232323232323232123232323232323232323232323232323232323232|-1Pcae.Q eUoe.Q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|35e2\",\"Asia/Taipei|CST JST CDT|-80 -90 -90|01020202020202020202020202020202020202020|-1iw80 joM0 1yo0 Tz0 1ip0 1jX0 1cN0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 10N0 1BX0 10p0 1pz0 10p0 1pz0 10p0 1db0 1dd0 1db0 1cN0 1db0 1cN0 1db0 1cN0 1db0 1BB0 ML0 1Bd0 ML0 uq10 1db0 1cN0 1db0 97B0 AL0|74e5\",\"Asia/Tashkent|LMT +05 +06 +07|-4B.b -50 -60 -70|012323232323232323232321|-1Pc4B.b eUnB.b 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0|23e5\",\"Asia/Tbilisi|TBMT +03 +04 +05|-2X.b -30 -40 -50|0123232323232323232323212121232323232323232323212|-1Pc2X.b 1jUnX.b WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cK0 1cL0 1cN0 1cL0 1cN0 2pz0 1cL0 1fB0 3Nz0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 An0 Os0 WM0|11e5\",\"Asia/Tehran|LMT TMT +0330 +04 +05 +0430|-3p.I -3p.I -3u -40 -50 -4u|01234325252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-2btDp.I 1d3c0 1huLT.I TXu 1pz0 sN0 vAu 1cL0 1dB0 1en0 pNB0 UL0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 64p0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0|14e6\",\"Asia/Thimphu|LMT +0530 +06|-5W.A -5u -60|012|-Su5W.A 1BGMs.A|79e3\",\"Asia/Tokyo|JST JDT|-90 -a0|010101010|-QJJ0 Rc0 1lc0 14o0 1zc0 Oo0 1zc0 Oo0|38e6\",\"Asia/Tomsk|LMT +06 +07 +08|-5D.P -60 -70 -80|0123232323232323232323212323232323232323232323212121212121212121212|-21NhD.P pxzD.P 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 co0 1bB0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3Qp0|10e5\",\"Asia/Ulaanbaatar|LMT +07 +08 +09|-77.w -70 -80 -90|012323232323232323232323232323232323232323232323232|-2APH7.w 2Uko7.w cKn0 1db0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 kEp0 1cJ0 1cP0 1cJ0|12e5\",\"Asia/Ust-Nera|LMT +08 +09 +12 +11 +10|-9w.S -80 -90 -c0 -b0 -a0|012343434343434343434345434343434343434343434343434343434343434345|-21Q9w.S pApw.S 23CL0 1d90 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 17V0 7zD0|65e2\",\"Asia/Vladivostok|LMT +09 +10 +11|-8L.v -90 -a0 -b0|01232323232323232323232123232323232323232323232323232323232323232|-1SJIL.v itXL.v 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|60e4\",\"Asia/Yakutsk|LMT +08 +09 +10|-8C.W -80 -90 -a0|01232323232323232323232123232323232323232323232323232323232323232|-21Q8C.W pAoC.W 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|28e4\",\"Asia/Yekaterinburg|LMT PMT +04 +05 +06|-42.x -3J.5 -40 -50 -60|012343434343434343434343234343434343434343434343434343434343434343|-2ag42.x 7mQh.s qBvJ.5 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|14e5\",\"Asia/Yerevan|LMT +03 +04 +05|-2W -30 -40 -50|0123232323232323232323212121212323232323232323232323232323232|-1Pc2W 1jUnW WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 4RX0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0|13e5\",\"Atlantic/Azores|HMT -02 -01 +00 WET|1S.w 20 10 0 0|0121212121212121212121212121212121212121212123212321232123212121212121212121212121212121212121212121232323232323232323232323232323234323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2ldW0 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 qIl0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cL0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|25e4\",\"Atlantic/Bermuda|BMT BST AST ADT|4j.i 3j.i 40 30|010102323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-28p7E.G 1bb0 1i10 11X0 ru30 thbE.G 1PX0 11B0 1tz0 Rd0 1zb0 Op0 1zb0 3I10 Lz0 1EN0 FX0 1HB0 FX0 1Kp0 Db0 1Kp0 Db0 1Kp0 FX0 93d0 11z0 GAp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|65e3\",\"Atlantic/Canary|LMT -01 WET WEST|11.A 10 0 -10|01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UtaW.o XPAW.o 1lAK0 1a10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4\",\"Atlantic/Cape_Verde|LMT -02 -01|1y.4 20 10|01212|-2ldW0 1eEo0 7zX0 1djf0|50e4\",\"Atlantic/Faroe|LMT WET WEST|r.4 0 -10|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2uSnw.U 2Wgow.U 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|49e3\",\"Atlantic/Madeira|FMT -01 +00 +01 WET WEST|17.A 10 0 -10 0 -10|0121212121212121212121212121212121212121212123212321232123212121212121212121212121212121212121212121454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-2ldX0 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 qIl0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|27e4\",\"Atlantic/Reykjavik|LMT -01 +00 GMT|1s 10 0 0|012121212121212121212121212121212121212121212121212121212121212121213|-2uWmw mfaw 1Bd0 ML0 1LB0 Cn0 1LB0 3fX0 C10 HrX0 1cO0 LB0 1EL0 LA0 1C00 Oo0 1wo0 Rc0 1wo0 Rc0 1wo0 Rc0 1zc0 Oo0 1zc0 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0|12e4\",\"Atlantic/South_Georgia|-02|20|0||30\",\"Atlantic/Stanley|SMT -04 -03 -02|3P.o 40 30 20|012121212121212323212121212121212121212121212121212121212121212121212|-2kJw8.A 12bA8.A 19X0 1fB0 19X0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 Cn0 1Cc10 WL0 1qL0 U10 1tz0 2mN0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1tz0 U10 1tz0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1tz0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qN0 U10 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 U10 1tz0 U10 1tz0 U10|21e2\",\"Australia/Sydney|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 14o0 1o00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 11A0 1o00 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|40e5\",\"Australia/Adelaide|ACST ACDT|-9u -au|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293ju xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 Oo0 1zc0 WM0 1qM0 Rc0 1zc0 U00 1tA0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|11e5\",\"Australia/Brisbane|AEST AEDT|-a0 -b0|01010101010101010|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0|20e5\",\"Australia/Broken_Hill|ACST ACDT|-9u -au|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293ju xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 14o0 1o00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|18e3\",\"Australia/Hobart|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 1a00 1qM0 Oo0 1zc0 Oo0 TAo0 yM0 1cM0 1cM0 1fA0 1a00 VfA0 1cM0 1o00 Rc0 1wo0 Rc0 1wo0 U00 1wo0 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|21e4\",\"Australia/Darwin|ACST ACDT|-9u -au|010101010|-293ju xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00|12e4\",\"Australia/Eucla|+0845 +0945|-8J -9J|0101010101010101010|-293iJ xc0 10jc0 yM0 1cM0 1cM0 1gSo0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|368\",\"Australia/Lord_Howe|AEST +1030 +1130 +11|-a0 -au -bu -b0|0121212121313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313|raC0 1zdu Rb0 1zd0 On0 1zd0 On0 1zd0 On0 1zd0 TXu 1qMu WLu 1tAu WLu 1tAu TXu 1tAu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu 11zu 1o0u 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 11Au 1nXu 1qMu 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 1qMu 11zu 1o0u WLu 1qMu 14nu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu|347\",\"Australia/Lindeman|AEST AEDT|-a0 -b0|010101010101010101010|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0|10\",\"Australia/Melbourne|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1qM0 11A0 1tA0 U00 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 11A0 1o00 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|39e5\",\"Australia/Perth|AWST AWDT|-80 -90|0101010101010101010|-293i0 xc0 10jc0 yM0 1cM0 1cM0 1gSo0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|18e5\",\"CET|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|\",\"Pacific/Easter|EMT -07 -06 -05|7h.s 70 60 50|012121212121212121212121212123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1uSgG.w 1s4IG.w WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 2pA0 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0|30e2\",\"CST6CDT|CST CDT CWT CPT|60 50 50 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|\",\"EET|EET EEST|-20 -30|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|hDB0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|\",\"Europe/Dublin|DMT IST GMT BST IST|p.l -y.D 0 -10 -10|01232323232324242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242|-2ax9y.D Rc0 1fzy.D 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 g600 14o0 1wo0 17c0 1io0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5\",\"EST|EST|50|0||\",\"EST5EDT|EST EDT EWT EPT|50 40 40 40|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261t0 1nX0 11B0 1nX0 SgN0 8x40 iv0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|\",\"Etc/GMT-0|GMT|0|0||\",\"Etc/GMT-1|+01|-10|0||\",\"Etc/GMT-11|+11|-b0|0||\",\"Pacific/Tarawa|+12|-c0|0||29e3\",\"Etc/GMT-13|+13|-d0|0||\",\"Etc/GMT-14|+14|-e0|0||\",\"Etc/GMT-2|+02|-20|0||\",\"Etc/GMT-3|+03|-30|0||\",\"Etc/GMT-4|+04|-40|0||\",\"Etc/GMT-5|+05|-50|0||\",\"Etc/GMT-6|+06|-60|0||\",\"Indian/Christmas|+07|-70|0||21e2\",\"Etc/GMT-8|+08|-80|0||\",\"Pacific/Palau|+09|-90|0||21e3\",\"Etc/GMT+1|-01|10|0||\",\"Etc/GMT+10|-10|a0|0||\",\"Etc/GMT+11|-11|b0|0||\",\"Etc/GMT+12|-12|c0|0||\",\"Etc/GMT+3|-03|30|0||\",\"Etc/GMT+4|-04|40|0||\",\"Etc/GMT+5|-05|50|0||\",\"Etc/GMT+6|-06|60|0||\",\"Etc/GMT+7|-07|70|0||\",\"Etc/GMT+8|-08|80|0||\",\"Etc/GMT+9|-09|90|0||\",\"Etc/UTC|UTC|0|0||\",\"Europe/Amsterdam|AMT NST +0120 +0020 CEST CET|-j.w -1j.w -1k -k -20 -10|010101010101010101010101010101010101010101012323234545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545|-2aFcj.w 11b0 1iP0 11A0 1io0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1co0 1io0 1yo0 Pc0 1a00 1fA0 1Bc0 Mo0 1tc0 Uo0 1tA0 U00 1uo0 W00 1s00 VA0 1so0 Vc0 1sM0 UM0 1wo0 Rc0 1u00 Wo0 1rA0 W00 1s00 VA0 1sM0 UM0 1w00 fV0 BCX.w 1tA0 U00 1u00 Wo0 1sm0 601k WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|16e5\",\"Europe/Andorra|WET CET CEST|0 -10 -20|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-UBA0 1xIN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|79e3\",\"Europe/Astrakhan|LMT +03 +04 +05|-3c.c -30 -40 -50|012323232323232323212121212121212121212121212121212121212121212|-1Pcrc.c eUMc.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|10e5\",\"Europe/Athens|AMT EET EEST CEST CET|-1y.Q -20 -30 -20 -10|012123434121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a61x.Q CNbx.Q mn0 kU10 9b0 3Es0 Xa0 1fb0 1dd0 k3X0 Nz0 SCp0 1vc0 SO0 1cM0 1a00 1ao0 1fc0 1a10 1fG0 1cg0 1dX0 1bX0 1cQ0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|35e5\",\"Europe/London|GMT BST BDST|0 -10 -20|0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2axa0 Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|10e6\",\"Europe/Belgrade|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-19RC0 3IP0 WM0 1fA0 1cM0 1cM0 1rc0 Qo0 1vmo0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5\",\"Europe/Berlin|CET CEST CEMT|-10 -20 -30|01010101010101210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 kL0 Nc0 m10 WM0 1ao0 1cp0 dX0 jz0 Dd0 1io0 17c0 1fA0 1a00 1ehA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|41e5\",\"Europe/Prague|CET CEST GMT|-10 -20 0|01010101010101010201010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 1cM0 1qM0 11c0 mp0 xA0 mn0 17c0 1io0 17c0 1fc0 1ao0 1bNc0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|13e5\",\"Europe/Brussels|WET CET CEST WEST|0 -10 -20 -10|0121212103030303030303030303030303030303030303030303212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2ehc0 3zX0 11c0 1iO0 11A0 1o00 11A0 my0 Ic0 1qM0 Rc0 1EM0 UM0 1u00 10o0 1io0 1io0 17c0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a30 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 y00 5Wn0 WM0 1fA0 1cM0 16M0 1iM0 16M0 1C00 Uo0 1eeo0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|21e5\",\"Europe/Bucharest|BMT EET EEST|-1I.o -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1xApI.o 20LI.o RA0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Axc0 On0 1fA0 1a10 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cK0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cL0 1cN0 1cL0 1fB0 1nX0 11E0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|19e5\",\"Europe/Budapest|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 1oo0 11c0 1lc0 17c0 O1V0 3Nf0 WM0 1fA0 1cM0 1cM0 1oJ0 1dd0 1020 1fX0 1cp0 1cM0 1cM0 1cM0 1fA0 1a00 bhy0 Rb0 1wr0 Rc0 1C00 LA0 1C00 LA0 SNW0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cO0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e5\",\"Europe/Zurich|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-19Lc0 11A0 1o00 11A0 1xG10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|38e4\",\"Europe/Chisinau|CMT BMT EET EEST CEST CET MSK MSD|-1T -1I.o -20 -30 -20 -10 -30 -40|012323232323232323234545467676767676767676767323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-26jdT wGMa.A 20LI.o RA0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 27A0 2en0 39g0 WM0 1fA0 1cM0 V90 1t7z0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 gL0 WO0 1cM0 1cM0 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1nX0 11D0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|67e4\",\"Europe/Copenhagen|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2azC0 Tz0 VuO0 60q0 WM0 1fA0 1cM0 1cM0 1cM0 S00 1HA0 Nc0 1C00 Dc0 1Nc0 Ao0 1h5A0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5\",\"Europe/Gibraltar|GMT BST BDST CET CEST|0 -10 -20 -10 -20|010101010101010101010101010101010101010101010101012121212121010121010101010101010101034343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-2axa0 Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 10Jz0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|30e3\",\"Europe/Helsinki|HMT EET EEST|-1D.N -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1WuND.N OULD.N 1dA0 1xGq0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5\",\"Europe/Kaliningrad|CET CEST EET EEST MSK MSD +03|-10 -20 -20 -30 -30 -40 -30|01010101010101232454545454545454543232323232323232323232323232323232323232323262|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 390 7A0 1en0 12N0 1pbb0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|44e4\",\"Europe/Kiev|KMT EET MSK CEST CET MSD EEST|-22.4 -20 -30 -20 -10 -40 -30|0123434252525252525252525256161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161|-1Pc22.4 eUo2.4 rnz0 2Hg0 WM0 1fA0 da0 1v4m0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 Db0 3220 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|34e5\",\"Europe/Kirov|LMT +03 +04 +05|-3i.M -30 -40 -50|01232323232323232321212121212121212121212121212121212121212121|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|48e4\",\"Europe/Lisbon|LMT WET WEST WEMT CET CEST|A.J 0 -10 -20 -10 -20|01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121214121212121212121212121212121212124545454212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2le00 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 pvy0 1cM0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|27e5\",\"Europe/Luxembourg|LMT CET CEST WET WEST WEST WET|-o.A -10 -20 0 -10 -20 -10|0121212134343434343434343434343434343434343434343434565651212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2DG0o.A t6mo.A TB0 1nX0 Up0 1o20 11A0 rW0 CM0 1qP0 R90 1EO0 UK0 1u20 10m0 1ip0 1in0 17e0 19W0 1fB0 1db0 1cp0 1in0 17d0 1fz0 1a10 1in0 1a10 1in0 17f0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 vA0 60L0 WM0 1fA0 1cM0 17c0 1io0 16M0 1C00 Uo0 1eeo0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4\",\"Europe/Madrid|WET WEST WEMT CET CEST|0 -10 -20 -10 -20|010101010101010101210343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-25Td0 19B0 1cL0 1dd0 b1z0 18p0 3HX0 17d0 1fz0 1a10 1io0 1a00 1in0 17d0 iIn0 Hd0 1cL0 bb0 1200 2s20 14n0 5aL0 Mp0 1vz0 17d0 1in0 17d0 1in0 17d0 1in0 17d0 6hX0 11B0 XHX0 1a10 1fz0 1a10 19X0 1cN0 1fz0 1a10 1fC0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|62e5\",\"Europe/Malta|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2arB0 Lz0 1cN0 1db0 1410 1on0 Wp0 1qL0 17d0 1cL0 M3B0 5M20 WM0 1fA0 1co0 17c0 1iM0 16m0 1de0 1lc0 14m0 1lc0 WO0 1qM0 GTW0 On0 1C10 LA0 1C00 LA0 1EM0 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1co0 1cM0 1lA0 Xc0 1qq0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1iN0 19z0 1fB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|42e4\",\"Europe/Minsk|MMT EET MSK CEST CET MSD EEST +03|-1O -20 -30 -20 -10 -40 -30 -30|01234343252525252525252525261616161616161616161616161616161616161617|-1Pc1O eUnO qNX0 3gQ0 WM0 1fA0 1cM0 Al0 1tsn0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 3Fc0 1cN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0|19e5\",\"Europe/Monaco|PMT WET WEST WEMT CET CEST|-9.l 0 -10 -20 -10 -20|01212121212121212121212121212121212121212121212121232323232345454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-2n5c9.l cFX9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 1u00 10o0 1io0 1wo0 Rc0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Df0 2RV0 11z0 11B0 1ze0 WM0 1fA0 1cM0 1fa0 1aq0 16M0 1ekn0 1cL0 1fC0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|38e3\",\"Europe/Moscow|MMT MMT MST MDST MSD MSK +05 EET EEST MSK|-2u.h -2v.j -3v.j -4v.j -40 -30 -50 -20 -30 -40|012132345464575454545454545454545458754545454545454545454545454545454545454595|-2ag2u.h 2pyW.W 1bA0 11X0 GN0 1Hb0 c4v.j ik0 3DA0 dz0 15A0 c10 2q10 iM10 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cN0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|16e6\",\"Europe/Paris|PMT WET WEST CEST CET WEMT|-9.l 0 -10 -20 -10 -20|0121212121212121212121212121212121212121212121212123434352543434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-2nco9.l cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 1u00 10o0 1io0 1wo0 Rc0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Df0 Ik0 5M30 WM0 1fA0 1cM0 Vx0 hB0 1aq0 16M0 1ekn0 1cL0 1fC0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|11e6\",\"Europe/Riga|RMT LST EET MSK CEST CET MSD EEST|-1A.y -2A.y -20 -30 -20 -10 -40 -30|010102345454536363636363636363727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272|-25TzA.y 11A0 1iM0 ko0 gWm0 yDXA.y 2bX0 3fE0 WM0 1fA0 1cM0 1cM0 4m0 1sLy0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cN0 1o00 11A0 1o00 11A0 1qM0 3oo0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|64e4\",\"Europe/Rome|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2arB0 Lz0 1cN0 1db0 1410 1on0 Wp0 1qL0 17d0 1cL0 M3B0 5M20 WM0 1fA0 1cM0 16M0 1iM0 16m0 1de0 1lc0 14m0 1lc0 WO0 1qM0 GTW0 On0 1C10 LA0 1C00 LA0 1EM0 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1C00 LA0 1zc0 Oo0 1C00 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1zc0 Oo0 1fC0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|39e5\",\"Europe/Samara|LMT +03 +04 +05|-3k.k -30 -40 -50|0123232323232323232121232323232323232323232323232323232323212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 2y10 14m0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|12e5\",\"Europe/Saratov|LMT +03 +04 +05|-34.i -30 -40 -50|012323232323232321212121212121212121212121212121212121212121212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1cM0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 5810|\",\"Europe/Simferopol|SMT EET MSK CEST CET MSD EEST MSK|-2g -20 -30 -20 -10 -40 -30 -40|012343432525252525252525252161616525252616161616161616161616161616161616172|-1Pc2g eUog rEn0 2qs0 WM0 1fA0 1cM0 3V0 1u0L0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Q00 4eL0 1cL0 1cN0 1cL0 1cN0 dX0 WL0 1cN0 1cL0 1fB0 1o30 11B0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11z0 1nW0|33e4\",\"Europe/Sofia|EET CET CEST EEST|-20 -10 -20 -30|01212103030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030|-168L0 WM0 1fA0 1cM0 1cM0 1cN0 1mKH0 1dd0 1fb0 1ap0 1fb0 1a20 1fy0 1a30 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1nX0 11E0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5\",\"Europe/Stockholm|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2azC0 TB0 2yDe0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|15e5\",\"Europe/Tallinn|TMT CET CEST EET MSK MSD EEST|-1D -10 -20 -20 -30 -40 -30|012103421212454545454545454546363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363|-26oND teD 11A0 1Ta0 4rXl KSLD 2FX0 2Jg0 WM0 1fA0 1cM0 18J0 1sTX0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o10 11A0 1qM0 5QM0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|41e4\",\"Europe/Tirane|LMT CET CEST|-1j.k -10 -20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glBj.k 14pcj.k 5LC0 WM0 4M0 1fCK0 10n0 1op0 11z0 1pd0 11z0 1qN0 WL0 1qp0 Xb0 1qp0 Xb0 1qp0 11z0 1lB0 11z0 1qN0 11z0 1iN0 16n0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|42e4\",\"Europe/Ulyanovsk|LMT +03 +04 +05 +02|-3d.A -30 -40 -50 -20|01232323232323232321214121212121212121212121212121212121212121212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|13e5\",\"Europe/Uzhgorod|CET CEST MSK MSD EET EEST|-10 -20 -30 -40 -20 -30|010101023232323232323232320454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-1cqL0 6i00 WM0 1fA0 1cM0 1ml0 1Cp0 1r3W0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Q00 1Nf0 2pw0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|11e4\",\"Europe/Vienna|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 3KM0 14o0 LA00 6i00 WM0 1fA0 1cM0 1cM0 1cM0 400 2qM0 1ao0 1co0 1cM0 1io0 17c0 1gHa0 19X0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|18e5\",\"Europe/Vilnius|WMT KMT CET EET MSK CEST MSD EEST|-1o -1z.A -10 -20 -30 -20 -40 -30|012324525254646464646464646473737373737373737352537373737373737373737373737373737373737373737373737373737373737373737373|-293do 6ILM.o 1Ooz.A zz0 Mfd0 29W0 3is0 WM0 1fA0 1cM0 LV0 1tgL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11B0 1o00 11A0 1qM0 8io0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4\",\"Europe/Volgograd|LMT +03 +04 +05|-2V.E -30 -40 -50|0123232323232323212121212121212121212121212121212121212121212121|-21IqV.E psLV.E 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1cM0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 9Jd0 5gn0|10e5\",\"Europe/Warsaw|WMT CET CEST EET EEST|-1o -10 -20 -20 -30|012121234312121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2ctdo 1LXo 11d0 1iO0 11A0 1o00 11A0 1on0 11A0 6zy0 HWP0 5IM0 WM0 1fA0 1cM0 1dz0 1mL0 1en0 15B0 1aq0 1nA0 11A0 1io0 17c0 1fA0 1a00 iDX0 LA0 1cM0 1cM0 1C00 Oo0 1cM0 1cM0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1C00 LA0 uso0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e5\",\"Europe/Zaporozhye|+0220 EET MSK CEST CET MSD EEST|-2k -20 -30 -20 -10 -40 -30|01234342525252525252525252526161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161|-1Pc2k eUok rdb0 2RE0 WM0 1fA0 8m0 1v9a0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cK0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|77e4\",\"HST|HST|a0|0||\",\"Indian/Chagos|LMT +05 +06|-4N.E -50 -60|012|-2xosN.E 3AGLN.E|30e2\",\"Indian/Cocos|+0630|-6u|0||596\",\"Indian/Kerguelen|-00 +05|0 -50|01|-MG00|130\",\"Indian/Mahe|LMT +04|-3F.M -40|01|-2xorF.M|79e3\",\"Indian/Maldives|MMT +05|-4S -50|01|-olgS|35e4\",\"Indian/Mauritius|LMT +04 +05|-3O -40 -50|012121|-2xorO 34unO 14L0 12kr0 11z0|15e4\",\"Indian/Reunion|LMT +04|-3F.Q -40|01|-2mDDF.Q|84e4\",\"Pacific/Kwajalein|+11 +10 +09 -12 +12|-b0 -a0 -90 c0 -c0|012034|-1kln0 akp0 6Up0 12ry0 Wan0|14e3\",\"MET|MET MEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|\",\"MST|MST|70|0||\",\"MST7MDT|MST MDT MWT MPT|70 60 60 60|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|\",\"Pacific/Chatham|+1215 +1245 +1345|-cf -cJ -dJ|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-WqAf 1adef IM0 1C00 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1qM0 14o0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1io0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|600\",\"Pacific/Apia|LMT -1130 -11 -10 +14 +13|bq.U bu b0 a0 -e0 -d0|01232345454545454545454545|-2nDMx.4 1yW03.4 2rRbu 1ff0 1a00 CI0 AQ0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0|37e3\",\"Pacific/Bougainville|+10 +09 +11|-a0 -90 -b0|0102|-16Wy0 7CN0 2MQp0|18e4\",\"Pacific/Chuuk|+10 +09|-a0 -90|01010|-2ewy0 axB0 RVX0 axd0|49e3\",\"Pacific/Efate|LMT +11 +12|-bd.g -b0 -c0|012121212121212121212121|-2l9nd.g 2uNXd.g Dc0 n610 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 Lz0 1Nd0 An0|66e3\",\"Pacific/Enderbury|-00 -12 -11 +13|0 c0 b0 -d0|0123|-1iIo0 1GsA0 B7X0|1\",\"Pacific/Fakaofo|-11 +13|b0 -d0|01|1Gfn0|483\",\"Pacific/Fiji|LMT +12 +13|-bT.I -c0 -d0|01212121212121212121212121212121212121212121212121212121212121|-2bUzT.I 3m8NT.I LA0 1EM0 IM0 nJc0 LA0 1o00 Rc0 1wo0 Ao0 1Nc0 Ao0 1Q00 xz0 1SN0 uM0 1SM0 uM0 1VA0 s00 1VA0 s00 1VA0 s00 20o0 pc0 2hc0 bc0 4q00 pc0 20o0 pc0 20o0 pc0 20o0 s00 1VA0 s00 20o0 pc0 20o0 pc0 20o0 pc0 20o0 pc0 20o0 s00 20o0 pc0 20o0 pc0 20o0 pc0 20o0 pc0 20o0 s00 1VA0 s00|88e4\",\"Pacific/Galapagos|LMT -05 -06|5W.o 50 60|01212|-1yVS1.A 2dTz1.A gNd0 rz0|25e3\",\"Pacific/Gambier|LMT -09|8X.M 90|01|-2jof0.c|125\",\"Pacific/Guadalcanal|LMT +11|-aD.M -b0|01|-2joyD.M|11e4\",\"Pacific/Guam|GST +09 GDT ChST|-a0 -90 -b0 -a0|01020202020202020203|-18jK0 6pB0 AhB0 3QL0 g2p0 3p91 WOX rX0 1zd0 Rb0 1wp0 Rb0 5xd0 rX0 5sN0 zb1 1C0X On0 ULb0|17e4\",\"Pacific/Honolulu|HST HDT HWT HPT HST|au 9u 9u 9u a0|0102304|-1thLu 8x0 lef0 8wWu iAu 46p0|37e4\",\"Pacific/Kiritimati|-1040 -10 +14|aE a0 -e0|012|nIaE B7Xk|51e2\",\"Pacific/Kosrae|+11 +09 +10 +12|-b0 -90 -a0 -c0|01021030|-2ewz0 axC0 HBy0 akp0 axd0 WOK0 1bdz0|66e2\",\"Pacific/Majuro|+11 +09 +10 +12|-b0 -90 -a0 -c0|0102103|-2ewz0 axC0 HBy0 akp0 6RB0 12um0|28e3\",\"Pacific/Marquesas|LMT -0930|9i 9u|01|-2joeG|86e2\",\"Pacific/Pago_Pago|LMT SST|bm.M b0|01|-2nDMB.c|37e2\",\"Pacific/Nauru|LMT +1130 +09 +12|-b7.E -bu -90 -c0|01213|-1Xdn7.E QCnB.E 7mqu 1lnbu|10e3\",\"Pacific/Niue|LMT -1120 -11|bj.E bk b0|012|-FScE.k suo0.k|12e2\",\"Pacific/Norfolk|+1112 +1130 +1230 +11 +12|-bc -bu -cu -b0 -c0|012134343434343434343434343434343434343434|-Kgbc W01G Oo0 1COo0 9Jcu 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|25e4\",\"Pacific/Noumea|LMT +11 +12|-b5.M -b0 -c0|01212121|-2l9n5.M 2EqM5.M xX0 1PB0 yn0 HeP0 Ao0|98e3\",\"Pacific/Pitcairn|-0830 -08|8u 80|01|18Vku|56\",\"Pacific/Pohnpei|+11 +09 +10|-b0 -90 -a0|010210|-2ewz0 axC0 HBy0 akp0 axd0|34e3\",\"Pacific/Rarotonga|LMT -1030 -0930 -10|aD.4 au 9u a0|0123232323232323232323232323|-FSdk.U 13tbO.U IL0 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu Onu|13e3\",\"Pacific/Tahiti|LMT -10|9W.g a0|01|-2joe1.I|18e4\",\"Pacific/Tongatapu|LMT +1220 +13 +14|-cj.c -ck -d0 -e0|01232323232|-XbMj.c BgLX.c 1yndk 15A0 1wo0 xz0 1Q10 xz0 zWN0 s00|75e3\",\"PST8PDT|PST PDT PWT PPT|80 70 70 70|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261q0 1nX0 11B0 1nX0 SgN0 8x10 iy0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|\",\"WET|WET WEST|0 -10|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|hDB0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|\"],\"links\":[\"Africa/Abidjan|Africa/Accra\",\"Africa/Abidjan|Africa/Bamako\",\"Africa/Abidjan|Africa/Banjul\",\"Africa/Abidjan|Africa/Conakry\",\"Africa/Abidjan|Africa/Dakar\",\"Africa/Abidjan|Africa/Freetown\",\"Africa/Abidjan|Africa/Lome\",\"Africa/Abidjan|Africa/Nouakchott\",\"Africa/Abidjan|Africa/Ouagadougou\",\"Africa/Abidjan|Africa/Timbuktu\",\"Africa/Abidjan|Atlantic/St_Helena\",\"Africa/Cairo|Egypt\",\"Africa/Johannesburg|Africa/Maseru\",\"Africa/Johannesburg|Africa/Mbabane\",\"Africa/Lagos|Africa/Bangui\",\"Africa/Lagos|Africa/Brazzaville\",\"Africa/Lagos|Africa/Douala\",\"Africa/Lagos|Africa/Kinshasa\",\"Africa/Lagos|Africa/Libreville\",\"Africa/Lagos|Africa/Luanda\",\"Africa/Lagos|Africa/Malabo\",\"Africa/Lagos|Africa/Niamey\",\"Africa/Lagos|Africa/Porto-Novo\",\"Africa/Maputo|Africa/Blantyre\",\"Africa/Maputo|Africa/Bujumbura\",\"Africa/Maputo|Africa/Gaborone\",\"Africa/Maputo|Africa/Harare\",\"Africa/Maputo|Africa/Kigali\",\"Africa/Maputo|Africa/Lubumbashi\",\"Africa/Maputo|Africa/Lusaka\",\"Africa/Nairobi|Africa/Addis_Ababa\",\"Africa/Nairobi|Africa/Asmara\",\"Africa/Nairobi|Africa/Asmera\",\"Africa/Nairobi|Africa/Dar_es_Salaam\",\"Africa/Nairobi|Africa/Djibouti\",\"Africa/Nairobi|Africa/Kampala\",\"Africa/Nairobi|Africa/Mogadishu\",\"Africa/Nairobi|Indian/Antananarivo\",\"Africa/Nairobi|Indian/Comoro\",\"Africa/Nairobi|Indian/Mayotte\",\"Africa/Tripoli|Libya\",\"America/Adak|America/Atka\",\"America/Adak|US/Aleutian\",\"America/Anchorage|US/Alaska\",\"America/Argentina/Buenos_Aires|America/Buenos_Aires\",\"America/Argentina/Catamarca|America/Argentina/ComodRivadavia\",\"America/Argentina/Catamarca|America/Catamarca\",\"America/Argentina/Cordoba|America/Cordoba\",\"America/Argentina/Cordoba|America/Rosario\",\"America/Argentina/Jujuy|America/Jujuy\",\"America/Argentina/Mendoza|America/Mendoza\",\"America/Chicago|US/Central\",\"America/Denver|America/Shiprock\",\"America/Denver|Navajo\",\"America/Denver|US/Mountain\",\"America/Detroit|US/Michigan\",\"America/Edmonton|Canada/Mountain\",\"America/Fort_Wayne|America/Indiana/Indianapolis\",\"America/Fort_Wayne|America/Indianapolis\",\"America/Fort_Wayne|US/East-Indiana\",\"America/Godthab|America/Nuuk\",\"America/Halifax|Canada/Atlantic\",\"America/Havana|Cuba\",\"America/Indiana/Knox|America/Knox_IN\",\"America/Indiana/Knox|US/Indiana-Starke\",\"America/Jamaica|Jamaica\",\"America/Kentucky/Louisville|America/Louisville\",\"America/Los_Angeles|US/Pacific\",\"America/Manaus|Brazil/West\",\"America/Mazatlan|Mexico/BajaSur\",\"America/Mexico_City|Mexico/General\",\"America/New_York|US/Eastern\",\"America/Noronha|Brazil/DeNoronha\",\"America/Panama|America/Atikokan\",\"America/Panama|America/Cayman\",\"America/Panama|America/Coral_Harbour\",\"America/Phoenix|America/Creston\",\"America/Phoenix|US/Arizona\",\"America/Puerto_Rico|America/Anguilla\",\"America/Puerto_Rico|America/Antigua\",\"America/Puerto_Rico|America/Aruba\",\"America/Puerto_Rico|America/Blanc-Sablon\",\"America/Puerto_Rico|America/Curacao\",\"America/Puerto_Rico|America/Dominica\",\"America/Puerto_Rico|America/Grenada\",\"America/Puerto_Rico|America/Guadeloupe\",\"America/Puerto_Rico|America/Kralendijk\",\"America/Puerto_Rico|America/Lower_Princes\",\"America/Puerto_Rico|America/Marigot\",\"America/Puerto_Rico|America/Montserrat\",\"America/Puerto_Rico|America/Port_of_Spain\",\"America/Puerto_Rico|America/St_Barthelemy\",\"America/Puerto_Rico|America/St_Kitts\",\"America/Puerto_Rico|America/St_Lucia\",\"America/Puerto_Rico|America/St_Thomas\",\"America/Puerto_Rico|America/St_Vincent\",\"America/Puerto_Rico|America/Tortola\",\"America/Puerto_Rico|America/Virgin\",\"America/Regina|Canada/Saskatchewan\",\"America/Rio_Branco|America/Porto_Acre\",\"America/Rio_Branco|Brazil/Acre\",\"America/Santiago|Chile/Continental\",\"America/Sao_Paulo|Brazil/East\",\"America/St_Johns|Canada/Newfoundland\",\"America/Tijuana|America/Ensenada\",\"America/Tijuana|America/Santa_Isabel\",\"America/Tijuana|Mexico/BajaNorte\",\"America/Toronto|America/Montreal\",\"America/Toronto|America/Nassau\",\"America/Toronto|Canada/Eastern\",\"America/Vancouver|Canada/Pacific\",\"America/Whitehorse|Canada/Yukon\",\"America/Winnipeg|Canada/Central\",\"Asia/Ashgabat|Asia/Ashkhabad\",\"Asia/Bangkok|Asia/Phnom_Penh\",\"Asia/Bangkok|Asia/Vientiane\",\"Asia/Dhaka|Asia/Dacca\",\"Asia/Dubai|Asia/Muscat\",\"Asia/Ho_Chi_Minh|Asia/Saigon\",\"Asia/Hong_Kong|Hongkong\",\"Asia/Jerusalem|Asia/Tel_Aviv\",\"Asia/Jerusalem|Israel\",\"Asia/Kathmandu|Asia/Katmandu\",\"Asia/Kolkata|Asia/Calcutta\",\"Asia/Kuala_Lumpur|Asia/Singapore\",\"Asia/Kuala_Lumpur|Singapore\",\"Asia/Macau|Asia/Macao\",\"Asia/Makassar|Asia/Ujung_Pandang\",\"Asia/Nicosia|Europe/Nicosia\",\"Asia/Qatar|Asia/Bahrain\",\"Asia/Rangoon|Asia/Yangon\",\"Asia/Riyadh|Antarctica/Syowa\",\"Asia/Riyadh|Asia/Aden\",\"Asia/Riyadh|Asia/Kuwait\",\"Asia/Seoul|ROK\",\"Asia/Shanghai|Asia/Chongqing\",\"Asia/Shanghai|Asia/Chungking\",\"Asia/Shanghai|Asia/Harbin\",\"Asia/Shanghai|PRC\",\"Asia/Taipei|ROC\",\"Asia/Tehran|Iran\",\"Asia/Thimphu|Asia/Thimbu\",\"Asia/Tokyo|Japan\",\"Asia/Ulaanbaatar|Asia/Ulan_Bator\",\"Asia/Urumqi|Asia/Kashgar\",\"Atlantic/Faroe|Atlantic/Faeroe\",\"Atlantic/Reykjavik|Iceland\",\"Atlantic/South_Georgia|Etc/GMT+2\",\"Australia/Adelaide|Australia/South\",\"Australia/Brisbane|Australia/Queensland\",\"Australia/Broken_Hill|Australia/Yancowinna\",\"Australia/Darwin|Australia/North\",\"Australia/Hobart|Australia/Currie\",\"Australia/Hobart|Australia/Tasmania\",\"Australia/Lord_Howe|Australia/LHI\",\"Australia/Melbourne|Australia/Victoria\",\"Australia/Perth|Australia/West\",\"Australia/Sydney|Australia/ACT\",\"Australia/Sydney|Australia/Canberra\",\"Australia/Sydney|Australia/NSW\",\"Etc/GMT-0|Etc/GMT\",\"Etc/GMT-0|Etc/GMT+0\",\"Etc/GMT-0|Etc/GMT0\",\"Etc/GMT-0|Etc/Greenwich\",\"Etc/GMT-0|GMT\",\"Etc/GMT-0|GMT+0\",\"Etc/GMT-0|GMT-0\",\"Etc/GMT-0|GMT0\",\"Etc/GMT-0|Greenwich\",\"Etc/UTC|Etc/UCT\",\"Etc/UTC|Etc/Universal\",\"Etc/UTC|Etc/Zulu\",\"Etc/UTC|UCT\",\"Etc/UTC|UTC\",\"Etc/UTC|Universal\",\"Etc/UTC|Zulu\",\"Europe/Belgrade|Europe/Ljubljana\",\"Europe/Belgrade|Europe/Podgorica\",\"Europe/Belgrade|Europe/Sarajevo\",\"Europe/Belgrade|Europe/Skopje\",\"Europe/Belgrade|Europe/Zagreb\",\"Europe/Chisinau|Europe/Tiraspol\",\"Europe/Dublin|Eire\",\"Europe/Helsinki|Europe/Mariehamn\",\"Europe/Istanbul|Asia/Istanbul\",\"Europe/Istanbul|Turkey\",\"Europe/Lisbon|Portugal\",\"Europe/London|Europe/Belfast\",\"Europe/London|Europe/Guernsey\",\"Europe/London|Europe/Isle_of_Man\",\"Europe/London|Europe/Jersey\",\"Europe/London|GB\",\"Europe/London|GB-Eire\",\"Europe/Moscow|W-SU\",\"Europe/Oslo|Arctic/Longyearbyen\",\"Europe/Oslo|Atlantic/Jan_Mayen\",\"Europe/Prague|Europe/Bratislava\",\"Europe/Rome|Europe/San_Marino\",\"Europe/Rome|Europe/Vatican\",\"Europe/Warsaw|Poland\",\"Europe/Zurich|Europe/Busingen\",\"Europe/Zurich|Europe/Vaduz\",\"Indian/Christmas|Etc/GMT-7\",\"Pacific/Auckland|Antarctica/McMurdo\",\"Pacific/Auckland|Antarctica/South_Pole\",\"Pacific/Auckland|NZ\",\"Pacific/Chatham|NZ-CHAT\",\"Pacific/Chuuk|Pacific/Truk\",\"Pacific/Chuuk|Pacific/Yap\",\"Pacific/Easter|Chile/EasterIsland\",\"Pacific/Enderbury|Pacific/Kanton\",\"Pacific/Guam|Pacific/Saipan\",\"Pacific/Honolulu|Pacific/Johnston\",\"Pacific/Honolulu|US/Hawaii\",\"Pacific/Kwajalein|Kwajalein\",\"Pacific/Pago_Pago|Pacific/Midway\",\"Pacific/Pago_Pago|Pacific/Samoa\",\"Pacific/Pago_Pago|US/Samoa\",\"Pacific/Palau|Etc/GMT-9\",\"Pacific/Pohnpei|Pacific/Ponape\",\"Pacific/Port_Moresby|Antarctica/DumontDUrville\",\"Pacific/Port_Moresby|Etc/GMT-10\",\"Pacific/Tarawa|Etc/GMT-12\",\"Pacific/Tarawa|Pacific/Funafuti\",\"Pacific/Tarawa|Pacific/Wake\",\"Pacific/Tarawa|Pacific/Wallis\"],\"countries\":[\"AD|Europe/Andorra\",\"AE|Asia/Dubai\",\"AF|Asia/Kabul\",\"AG|America/Port_of_Spain America/Antigua\",\"AI|America/Port_of_Spain America/Anguilla\",\"AL|Europe/Tirane\",\"AM|Asia/Yerevan\",\"AO|Africa/Lagos Africa/Luanda\",\"AQ|Antarctica/Casey Antarctica/Davis Antarctica/DumontDUrville Antarctica/Mawson Antarctica/Palmer Antarctica/Rothera Antarctica/Syowa Antarctica/Troll Antarctica/Vostok Pacific/Auckland Antarctica/McMurdo\",\"AR|America/Argentina/Buenos_Aires America/Argentina/Cordoba America/Argentina/Salta America/Argentina/Jujuy America/Argentina/Tucuman America/Argentina/Catamarca America/Argentina/La_Rioja America/Argentina/San_Juan America/Argentina/Mendoza America/Argentina/San_Luis America/Argentina/Rio_Gallegos America/Argentina/Ushuaia\",\"AS|Pacific/Pago_Pago\",\"AT|Europe/Vienna\",\"AU|Australia/Lord_Howe Antarctica/Macquarie Australia/Hobart Australia/Melbourne Australia/Sydney Australia/Broken_Hill Australia/Brisbane Australia/Lindeman Australia/Adelaide Australia/Darwin Australia/Perth Australia/Eucla\",\"AW|America/Curacao America/Aruba\",\"AX|Europe/Helsinki Europe/Mariehamn\",\"AZ|Asia/Baku\",\"BA|Europe/Belgrade Europe/Sarajevo\",\"BB|America/Barbados\",\"BD|Asia/Dhaka\",\"BE|Europe/Brussels\",\"BF|Africa/Abidjan Africa/Ouagadougou\",\"BG|Europe/Sofia\",\"BH|Asia/Qatar Asia/Bahrain\",\"BI|Africa/Maputo Africa/Bujumbura\",\"BJ|Africa/Lagos Africa/Porto-Novo\",\"BL|America/Port_of_Spain America/St_Barthelemy\",\"BM|Atlantic/Bermuda\",\"BN|Asia/Brunei\",\"BO|America/La_Paz\",\"BQ|America/Curacao America/Kralendijk\",\"BR|America/Noronha America/Belem America/Fortaleza America/Recife America/Araguaina America/Maceio America/Bahia America/Sao_Paulo America/Campo_Grande America/Cuiaba America/Santarem America/Porto_Velho America/Boa_Vista America/Manaus America/Eirunepe America/Rio_Branco\",\"BS|America/Nassau\",\"BT|Asia/Thimphu\",\"BW|Africa/Maputo Africa/Gaborone\",\"BY|Europe/Minsk\",\"BZ|America/Belize\",\"CA|America/St_Johns America/Halifax America/Glace_Bay America/Moncton America/Goose_Bay America/Blanc-Sablon America/Toronto America/Nipigon America/Thunder_Bay America/Iqaluit America/Pangnirtung America/Atikokan America/Winnipeg America/Rainy_River America/Resolute America/Rankin_Inlet America/Regina America/Swift_Current America/Edmonton America/Cambridge_Bay America/Yellowknife America/Inuvik America/Creston America/Dawson_Creek America/Fort_Nelson America/Whitehorse America/Dawson America/Vancouver\",\"CC|Indian/Cocos\",\"CD|Africa/Maputo Africa/Lagos Africa/Kinshasa Africa/Lubumbashi\",\"CF|Africa/Lagos Africa/Bangui\",\"CG|Africa/Lagos Africa/Brazzaville\",\"CH|Europe/Zurich\",\"CI|Africa/Abidjan\",\"CK|Pacific/Rarotonga\",\"CL|America/Santiago America/Punta_Arenas Pacific/Easter\",\"CM|Africa/Lagos Africa/Douala\",\"CN|Asia/Shanghai Asia/Urumqi\",\"CO|America/Bogota\",\"CR|America/Costa_Rica\",\"CU|America/Havana\",\"CV|Atlantic/Cape_Verde\",\"CW|America/Curacao\",\"CX|Indian/Christmas\",\"CY|Asia/Nicosia Asia/Famagusta\",\"CZ|Europe/Prague\",\"DE|Europe/Zurich Europe/Berlin Europe/Busingen\",\"DJ|Africa/Nairobi Africa/Djibouti\",\"DK|Europe/Copenhagen\",\"DM|America/Port_of_Spain America/Dominica\",\"DO|America/Santo_Domingo\",\"DZ|Africa/Algiers\",\"EC|America/Guayaquil Pacific/Galapagos\",\"EE|Europe/Tallinn\",\"EG|Africa/Cairo\",\"EH|Africa/El_Aaiun\",\"ER|Africa/Nairobi Africa/Asmara\",\"ES|Europe/Madrid Africa/Ceuta Atlantic/Canary\",\"ET|Africa/Nairobi Africa/Addis_Ababa\",\"FI|Europe/Helsinki\",\"FJ|Pacific/Fiji\",\"FK|Atlantic/Stanley\",\"FM|Pacific/Chuuk Pacific/Pohnpei Pacific/Kosrae\",\"FO|Atlantic/Faroe\",\"FR|Europe/Paris\",\"GA|Africa/Lagos Africa/Libreville\",\"GB|Europe/London\",\"GD|America/Port_of_Spain America/Grenada\",\"GE|Asia/Tbilisi\",\"GF|America/Cayenne\",\"GG|Europe/London Europe/Guernsey\",\"GH|Africa/Accra\",\"GI|Europe/Gibraltar\",\"GL|America/Nuuk America/Danmarkshavn America/Scoresbysund America/Thule\",\"GM|Africa/Abidjan Africa/Banjul\",\"GN|Africa/Abidjan Africa/Conakry\",\"GP|America/Port_of_Spain America/Guadeloupe\",\"GQ|Africa/Lagos Africa/Malabo\",\"GR|Europe/Athens\",\"GS|Atlantic/South_Georgia\",\"GT|America/Guatemala\",\"GU|Pacific/Guam\",\"GW|Africa/Bissau\",\"GY|America/Guyana\",\"HK|Asia/Hong_Kong\",\"HN|America/Tegucigalpa\",\"HR|Europe/Belgrade Europe/Zagreb\",\"HT|America/Port-au-Prince\",\"HU|Europe/Budapest\",\"ID|Asia/Jakarta Asia/Pontianak Asia/Makassar Asia/Jayapura\",\"IE|Europe/Dublin\",\"IL|Asia/Jerusalem\",\"IM|Europe/London Europe/Isle_of_Man\",\"IN|Asia/Kolkata\",\"IO|Indian/Chagos\",\"IQ|Asia/Baghdad\",\"IR|Asia/Tehran\",\"IS|Atlantic/Reykjavik\",\"IT|Europe/Rome\",\"JE|Europe/London Europe/Jersey\",\"JM|America/Jamaica\",\"JO|Asia/Amman\",\"JP|Asia/Tokyo\",\"KE|Africa/Nairobi\",\"KG|Asia/Bishkek\",\"KH|Asia/Bangkok Asia/Phnom_Penh\",\"KI|Pacific/Tarawa Pacific/Enderbury Pacific/Kiritimati\",\"KM|Africa/Nairobi Indian/Comoro\",\"KN|America/Port_of_Spain America/St_Kitts\",\"KP|Asia/Pyongyang\",\"KR|Asia/Seoul\",\"KW|Asia/Riyadh Asia/Kuwait\",\"KY|America/Panama America/Cayman\",\"KZ|Asia/Almaty Asia/Qyzylorda Asia/Qostanay Asia/Aqtobe Asia/Aqtau Asia/Atyrau Asia/Oral\",\"LA|Asia/Bangkok Asia/Vientiane\",\"LB|Asia/Beirut\",\"LC|America/Port_of_Spain America/St_Lucia\",\"LI|Europe/Zurich Europe/Vaduz\",\"LK|Asia/Colombo\",\"LR|Africa/Monrovia\",\"LS|Africa/Johannesburg Africa/Maseru\",\"LT|Europe/Vilnius\",\"LU|Europe/Luxembourg\",\"LV|Europe/Riga\",\"LY|Africa/Tripoli\",\"MA|Africa/Casablanca\",\"MC|Europe/Monaco\",\"MD|Europe/Chisinau\",\"ME|Europe/Belgrade Europe/Podgorica\",\"MF|America/Port_of_Spain America/Marigot\",\"MG|Africa/Nairobi Indian/Antananarivo\",\"MH|Pacific/Majuro Pacific/Kwajalein\",\"MK|Europe/Belgrade Europe/Skopje\",\"ML|Africa/Abidjan Africa/Bamako\",\"MM|Asia/Yangon\",\"MN|Asia/Ulaanbaatar Asia/Hovd Asia/Choibalsan\",\"MO|Asia/Macau\",\"MP|Pacific/Guam Pacific/Saipan\",\"MQ|America/Martinique\",\"MR|Africa/Abidjan Africa/Nouakchott\",\"MS|America/Port_of_Spain America/Montserrat\",\"MT|Europe/Malta\",\"MU|Indian/Mauritius\",\"MV|Indian/Maldives\",\"MW|Africa/Maputo Africa/Blantyre\",\"MX|America/Mexico_City America/Cancun America/Merida America/Monterrey America/Matamoros America/Mazatlan America/Chihuahua America/Ojinaga America/Hermosillo America/Tijuana America/Bahia_Banderas\",\"MY|Asia/Kuala_Lumpur Asia/Kuching\",\"MZ|Africa/Maputo\",\"NA|Africa/Windhoek\",\"NC|Pacific/Noumea\",\"NE|Africa/Lagos Africa/Niamey\",\"NF|Pacific/Norfolk\",\"NG|Africa/Lagos\",\"NI|America/Managua\",\"NL|Europe/Amsterdam\",\"NO|Europe/Oslo\",\"NP|Asia/Kathmandu\",\"NR|Pacific/Nauru\",\"NU|Pacific/Niue\",\"NZ|Pacific/Auckland Pacific/Chatham\",\"OM|Asia/Dubai Asia/Muscat\",\"PA|America/Panama\",\"PE|America/Lima\",\"PF|Pacific/Tahiti Pacific/Marquesas Pacific/Gambier\",\"PG|Pacific/Port_Moresby Pacific/Bougainville\",\"PH|Asia/Manila\",\"PK|Asia/Karachi\",\"PL|Europe/Warsaw\",\"PM|America/Miquelon\",\"PN|Pacific/Pitcairn\",\"PR|America/Puerto_Rico\",\"PS|Asia/Gaza Asia/Hebron\",\"PT|Europe/Lisbon Atlantic/Madeira Atlantic/Azores\",\"PW|Pacific/Palau\",\"PY|America/Asuncion\",\"QA|Asia/Qatar\",\"RE|Indian/Reunion\",\"RO|Europe/Bucharest\",\"RS|Europe/Belgrade\",\"RU|Europe/Kaliningrad Europe/Moscow Europe/Simferopol Europe/Kirov Europe/Volgograd Europe/Astrakhan Europe/Saratov Europe/Ulyanovsk Europe/Samara Asia/Yekaterinburg Asia/Omsk Asia/Novosibirsk Asia/Barnaul Asia/Tomsk Asia/Novokuznetsk Asia/Krasnoyarsk Asia/Irkutsk Asia/Chita Asia/Yakutsk Asia/Khandyga Asia/Vladivostok Asia/Ust-Nera Asia/Magadan Asia/Sakhalin Asia/Srednekolymsk Asia/Kamchatka Asia/Anadyr\",\"RW|Africa/Maputo Africa/Kigali\",\"SA|Asia/Riyadh\",\"SB|Pacific/Guadalcanal\",\"SC|Indian/Mahe\",\"SD|Africa/Khartoum\",\"SE|Europe/Stockholm\",\"SG|Asia/Singapore\",\"SH|Africa/Abidjan Atlantic/St_Helena\",\"SI|Europe/Belgrade Europe/Ljubljana\",\"SJ|Europe/Oslo Arctic/Longyearbyen\",\"SK|Europe/Prague Europe/Bratislava\",\"SL|Africa/Abidjan Africa/Freetown\",\"SM|Europe/Rome Europe/San_Marino\",\"SN|Africa/Abidjan Africa/Dakar\",\"SO|Africa/Nairobi Africa/Mogadishu\",\"SR|America/Paramaribo\",\"SS|Africa/Juba\",\"ST|Africa/Sao_Tome\",\"SV|America/El_Salvador\",\"SX|America/Curacao America/Lower_Princes\",\"SY|Asia/Damascus\",\"SZ|Africa/Johannesburg Africa/Mbabane\",\"TC|America/Grand_Turk\",\"TD|Africa/Ndjamena\",\"TF|Indian/Reunion Indian/Kerguelen\",\"TG|Africa/Abidjan Africa/Lome\",\"TH|Asia/Bangkok\",\"TJ|Asia/Dushanbe\",\"TK|Pacific/Fakaofo\",\"TL|Asia/Dili\",\"TM|Asia/Ashgabat\",\"TN|Africa/Tunis\",\"TO|Pacific/Tongatapu\",\"TR|Europe/Istanbul\",\"TT|America/Port_of_Spain\",\"TV|Pacific/Funafuti\",\"TW|Asia/Taipei\",\"TZ|Africa/Nairobi Africa/Dar_es_Salaam\",\"UA|Europe/Simferopol Europe/Kiev Europe/Uzhgorod Europe/Zaporozhye\",\"UG|Africa/Nairobi Africa/Kampala\",\"UM|Pacific/Pago_Pago Pacific/Wake Pacific/Honolulu Pacific/Midway\",\"US|America/New_York America/Detroit America/Kentucky/Louisville America/Kentucky/Monticello America/Indiana/Indianapolis America/Indiana/Vincennes America/Indiana/Winamac America/Indiana/Marengo America/Indiana/Petersburg America/Indiana/Vevay America/Chicago America/Indiana/Tell_City America/Indiana/Knox America/Menominee America/North_Dakota/Center America/North_Dakota/New_Salem America/North_Dakota/Beulah America/Denver America/Boise America/Phoenix America/Los_Angeles America/Anchorage America/Juneau America/Sitka America/Metlakatla America/Yakutat America/Nome America/Adak Pacific/Honolulu\",\"UY|America/Montevideo\",\"UZ|Asia/Samarkand Asia/Tashkent\",\"VA|Europe/Rome Europe/Vatican\",\"VC|America/Port_of_Spain America/St_Vincent\",\"VE|America/Caracas\",\"VG|America/Port_of_Spain America/Tortola\",\"VI|America/Port_of_Spain America/St_Thomas\",\"VN|Asia/Bangkok Asia/Ho_Chi_Minh\",\"VU|Pacific/Efate\",\"WF|Pacific/Wallis\",\"WS|Pacific/Apia\",\"YE|Asia/Riyadh Asia/Aden\",\"YT|Africa/Nairobi Indian/Mayotte\",\"ZA|Africa/Johannesburg\",\"ZM|Africa/Maputo Africa/Lusaka\",\"ZW|Africa/Maputo Africa/Harare\"]});return moment;}));","jquery.min.js":"/*!\n * jQuery JavaScript Library v3.6.0\n * https://jquery.com/\n *\n * Includes Sizzle.js\n * https://sizzlejs.com/\n *\n * Copyright OpenJS Foundation and other contributors\n * Released under the MIT license\n * https://jquery.org/license\n *\n * Date: 2021-03-02T17:08Z\n */\n(function(global,factory){\"use strict\";if(typeof module===\"object\"&&typeof module.exports===\"object\"){module.exports=global.document?factory(global,true):function(w){if(!w.document){throw new Error(\"jQuery requires a window with a document\");}\nreturn factory(w);};}else{factory(global);}})(typeof window!==\"undefined\"?window:this,function(window,noGlobal){\"use strict\";var arr=[];var getProto=Object.getPrototypeOf;var slice=arr.slice;var flat=arr.flat?function(array){return arr.flat.call(array);}:function(array){return arr.concat.apply([],array);};var push=arr.push;var indexOf=arr.indexOf;var class2type={};var toString=class2type.toString;var hasOwn=class2type.hasOwnProperty;var fnToString=hasOwn.toString;var ObjectFunctionString=fnToString.call(Object);var support={};var isFunction=function isFunction(obj){return typeof obj===\"function\"&&typeof obj.nodeType!==\"number\"&&typeof obj.item!==\"function\";};var isWindow=function isWindow(obj){return obj!=null&&obj===obj.window;};var document=window.document;var preservedScriptAttributes={type:true,src:true,nonce:true,noModule:true};function DOMEval(code,node,doc){doc=doc||document;var i,val,script=doc.createElement(\"script\");script.text=code;if(node){for(i in preservedScriptAttributes){val=node[i]||node.getAttribute&&node.getAttribute(i);if(val){script.setAttribute(i,val);}}}\ndoc.head.appendChild(script).parentNode.removeChild(script);}\nfunction toType(obj){if(obj==null){return obj+\"\";}\nreturn typeof obj===\"object\"||typeof obj===\"function\"?class2type[toString.call(obj)]||\"object\":typeof obj;}\nvar\nversion=\"3.6.0\",jQuery=function(selector,context){return new jQuery.fn.init(selector,context);};jQuery.fn=jQuery.prototype={jquery:version,constructor:jQuery,length:0,toArray:function(){return slice.call(this);},get:function(num){if(num==null){return slice.call(this);}\nreturn num<0?this[num+this.length]:this[num];},pushStack:function(elems){var ret=jQuery.merge(this.constructor(),elems);ret.prevObject=this;return ret;},each:function(callback){return jQuery.each(this,callback);},map:function(callback){return this.pushStack(jQuery.map(this,function(elem,i){return callback.call(elem,i,elem);}));},slice:function(){return this.pushStack(slice.apply(this,arguments));},first:function(){return this.eq(0);},last:function(){return this.eq(-1);},even:function(){return this.pushStack(jQuery.grep(this,function(_elem,i){return(i+1)%2;}));},odd:function(){return this.pushStack(jQuery.grep(this,function(_elem,i){return i%2;}));},eq:function(i){var len=this.length,j=+i+(i<0?len:0);return this.pushStack(j>=0&&j<len?[this[j]]:[]);},end:function(){return this.prevObject||this.constructor();},push:push,sort:arr.sort,splice:arr.splice};jQuery.extend=jQuery.fn.extend=function(){var options,name,src,copy,copyIsArray,clone,target=arguments[0]||{},i=1,length=arguments.length,deep=false;if(typeof target===\"boolean\"){deep=target;target=arguments[i]||{};i++;}\nif(typeof target!==\"object\"&&!isFunction(target)){target={};}\nif(i===length){target=this;i--;}\nfor(;i<length;i++){if((options=arguments[i])!=null){for(name in options){copy=options[name];if(name===\"__proto__\"||target===copy){continue;}\nif(deep&&copy&&(jQuery.isPlainObject(copy)||(copyIsArray=Array.isArray(copy)))){src=target[name];if(copyIsArray&&!Array.isArray(src)){clone=[];}else if(!copyIsArray&&!jQuery.isPlainObject(src)){clone={};}else{clone=src;}\ncopyIsArray=false;target[name]=jQuery.extend(deep,clone,copy);}else if(copy!==undefined){target[name]=copy;}}}}\nreturn target;};jQuery.extend({expando:\"jQuery\"+(version+Math.random()).replace(/\\D/g,\"\"),isReady:true,error:function(msg){throw new Error(msg);},noop:function(){},isPlainObject:function(obj){var proto,Ctor;if(!obj||toString.call(obj)!==\"[object Object]\"){return false;}\nproto=getProto(obj);if(!proto){return true;}\nCtor=hasOwn.call(proto,\"constructor\")&&proto.constructor;return typeof Ctor===\"function\"&&fnToString.call(Ctor)===ObjectFunctionString;},isEmptyObject:function(obj){var name;for(name in obj){return false;}\nreturn true;},globalEval:function(code,options,doc){DOMEval(code,{nonce:options&&options.nonce},doc);},each:function(obj,callback){var length,i=0;if(isArrayLike(obj)){length=obj.length;for(;i<length;i++){if(callback.call(obj[i],i,obj[i])===false){break;}}}else{for(i in obj){if(callback.call(obj[i],i,obj[i])===false){break;}}}\nreturn obj;},makeArray:function(arr,results){var ret=results||[];if(arr!=null){if(isArrayLike(Object(arr))){jQuery.merge(ret,typeof arr===\"string\"?[arr]:arr);}else{push.call(ret,arr);}}\nreturn ret;},inArray:function(elem,arr,i){return arr==null?-1:indexOf.call(arr,elem,i);},merge:function(first,second){var len=+second.length,j=0,i=first.length;for(;j<len;j++){first[i++]=second[j];}\nfirst.length=i;return first;},grep:function(elems,callback,invert){var callbackInverse,matches=[],i=0,length=elems.length,callbackExpect=!invert;for(;i<length;i++){callbackInverse=!callback(elems[i],i);if(callbackInverse!==callbackExpect){matches.push(elems[i]);}}\nreturn matches;},map:function(elems,callback,arg){var length,value,i=0,ret=[];if(isArrayLike(elems)){length=elems.length;for(;i<length;i++){value=callback(elems[i],i,arg);if(value!=null){ret.push(value);}}}else{for(i in elems){value=callback(elems[i],i,arg);if(value!=null){ret.push(value);}}}\nreturn flat(ret);},guid:1,support:support});if(typeof Symbol===\"function\"){jQuery.fn[Symbol.iterator]=arr[Symbol.iterator];}\njQuery.each(\"Boolean Number String Function Array Date RegExp Object Error Symbol\".split(\" \"),function(_i,name){class2type[\"[object \"+name+\"]\"]=name.toLowerCase();});function isArrayLike(obj){var length=!!obj&&\"length\"in obj&&obj.length,type=toType(obj);if(isFunction(obj)||isWindow(obj)){return false;}\nreturn type===\"array\"||length===0||typeof length===\"number\"&&length>0&&(length-1)in obj;}\nvar Sizzle=/*!\n * Sizzle CSS Selector Engine v2.3.6\n * https://sizzlejs.com/\n *\n * Copyright JS Foundation and other contributors\n * Released under the MIT license\n * https://js.foundation/\n *\n * Date: 2021-02-16\n */\n(function(window){var i,support,Expr,getText,isXML,tokenize,compile,select,outermostContext,sortInput,hasDuplicate,setDocument,document,docElem,documentIsHTML,rbuggyQSA,rbuggyMatches,matches,contains,expando=\"sizzle\"+1*new Date(),preferredDoc=window.document,dirruns=0,done=0,classCache=createCache(),tokenCache=createCache(),compilerCache=createCache(),nonnativeSelectorCache=createCache(),sortOrder=function(a,b){if(a===b){hasDuplicate=true;}\nreturn 0;},hasOwn=({}).hasOwnProperty,arr=[],pop=arr.pop,pushNative=arr.push,push=arr.push,slice=arr.slice,indexOf=function(list,elem){var i=0,len=list.length;for(;i<len;i++){if(list[i]===elem){return i;}}\nreturn-1;},booleans=\"checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|\"+\"ismap|loop|multiple|open|readonly|required|scoped\",whitespace=\"[\\\\x20\\\\t\\\\r\\\\n\\\\f]\",identifier=\"(?:\\\\\\\\[\\\\da-fA-F]{1,6}\"+whitespace+\"?|\\\\\\\\[^\\\\r\\\\n\\\\f]|[\\\\w-]|[^\\0-\\\\x7f])+\",attributes=\"\\\\[\"+whitespace+\"*(\"+identifier+\")(?:\"+whitespace+\"*([*^$|!~]?=)\"+whitespace+\"*(?:'((?:\\\\\\\\.|[^\\\\\\\\'])*)'|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\"|(\"+identifier+\"))|)\"+\nwhitespace+\"*\\\\]\",pseudos=\":(\"+identifier+\")(?:\\\\((\"+\"('((?:\\\\\\\\.|[^\\\\\\\\'])*)'|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\")|\"+\"((?:\\\\\\\\.|[^\\\\\\\\()[\\\\]]|\"+attributes+\")*)|\"+\".*\"+\")\\\\)|)\",rwhitespace=new RegExp(whitespace+\"+\",\"g\"),rtrim=new RegExp(\"^\"+whitespace+\"+|((?:^|[^\\\\\\\\])(?:\\\\\\\\.)*)\"+\nwhitespace+\"+$\",\"g\"),rcomma=new RegExp(\"^\"+whitespace+\"*,\"+whitespace+\"*\"),rcombinators=new RegExp(\"^\"+whitespace+\"*([>+~]|\"+whitespace+\")\"+whitespace+\"*\"),rdescend=new RegExp(whitespace+\"|>\"),rpseudo=new RegExp(pseudos),ridentifier=new RegExp(\"^\"+identifier+\"$\"),matchExpr={\"ID\":new RegExp(\"^#(\"+identifier+\")\"),\"CLASS\":new RegExp(\"^\\\\.(\"+identifier+\")\"),\"TAG\":new RegExp(\"^(\"+identifier+\"|[*])\"),\"ATTR\":new RegExp(\"^\"+attributes),\"PSEUDO\":new RegExp(\"^\"+pseudos),\"CHILD\":new RegExp(\"^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\\\(\"+\nwhitespace+\"*(even|odd|(([+-]|)(\\\\d*)n|)\"+whitespace+\"*(?:([+-]|)\"+\nwhitespace+\"*(\\\\d+)|))\"+whitespace+\"*\\\\)|)\",\"i\"),\"bool\":new RegExp(\"^(?:\"+booleans+\")$\",\"i\"),\"needsContext\":new RegExp(\"^\"+whitespace+\"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\\\(\"+whitespace+\"*((?:-\\\\d)?\\\\d*)\"+whitespace+\"*\\\\)|)(?=[^-]|$)\",\"i\")},rhtml=/HTML$/i,rinputs=/^(?:input|select|textarea|button)$/i,rheader=/^h\\d$/i,rnative=/^[^{]+\\{\\s*\\[native \\w/,rquickExpr=/^(?:#([\\w-]+)|(\\w+)|\\.([\\w-]+))$/,rsibling=/[+~]/,runescape=new RegExp(\"\\\\\\\\[\\\\da-fA-F]{1,6}\"+whitespace+\"?|\\\\\\\\([^\\\\r\\\\n\\\\f])\",\"g\"),funescape=function(escape,nonHex){var high=\"0x\"+escape.slice(1)-0x10000;return nonHex?nonHex:high<0?String.fromCharCode(high+0x10000):String.fromCharCode(high>>10|0xD800,high&0x3FF|0xDC00);},rcssescape=/([\\0-\\x1f\\x7f]|^-?\\d)|^-$|[^\\0-\\x1f\\x7f-\\uFFFF\\w-]/g,fcssescape=function(ch,asCodePoint){if(asCodePoint){if(ch===\"\\0\"){return\"\\uFFFD\";}\nreturn ch.slice(0,-1)+\"\\\\\"+\nch.charCodeAt(ch.length-1).toString(16)+\" \";}\nreturn\"\\\\\"+ch;},unloadHandler=function(){setDocument();},inDisabledFieldset=addCombinator(function(elem){return elem.disabled===true&&elem.nodeName.toLowerCase()===\"fieldset\";},{dir:\"parentNode\",next:\"legend\"});try{push.apply((arr=slice.call(preferredDoc.childNodes)),preferredDoc.childNodes);arr[preferredDoc.childNodes.length].nodeType;}catch(e){push={apply:arr.length?function(target,els){pushNative.apply(target,slice.call(els));}:function(target,els){var j=target.length,i=0;while((target[j++]=els[i++])){}\ntarget.length=j-1;}};}\nfunction Sizzle(selector,context,results,seed){var m,i,elem,nid,match,groups,newSelector,newContext=context&&context.ownerDocument,nodeType=context?context.nodeType:9;results=results||[];if(typeof selector!==\"string\"||!selector||nodeType!==1&&nodeType!==9&&nodeType!==11){return results;}\nif(!seed){setDocument(context);context=context||document;if(documentIsHTML){if(nodeType!==11&&(match=rquickExpr.exec(selector))){if((m=match[1])){if(nodeType===9){if((elem=context.getElementById(m))){if(elem.id===m){results.push(elem);return results;}}else{return results;}}else{if(newContext&&(elem=newContext.getElementById(m))&&contains(context,elem)&&elem.id===m){results.push(elem);return results;}}}else if(match[2]){push.apply(results,context.getElementsByTagName(selector));return results;}else if((m=match[3])&&support.getElementsByClassName&&context.getElementsByClassName){push.apply(results,context.getElementsByClassName(m));return results;}}\nif(support.qsa&&!nonnativeSelectorCache[selector+\" \"]&&(!rbuggyQSA||!rbuggyQSA.test(selector))&&(nodeType!==1||context.nodeName.toLowerCase()!==\"object\")){newSelector=selector;newContext=context;if(nodeType===1&&(rdescend.test(selector)||rcombinators.test(selector))){newContext=rsibling.test(selector)&&testContext(context.parentNode)||context;if(newContext!==context||!support.scope){if((nid=context.getAttribute(\"id\"))){nid=nid.replace(rcssescape,fcssescape);}else{context.setAttribute(\"id\",(nid=expando));}}\ngroups=tokenize(selector);i=groups.length;while(i--){groups[i]=(nid?\"#\"+nid:\":scope\")+\" \"+\ntoSelector(groups[i]);}\nnewSelector=groups.join(\",\");}\ntry{push.apply(results,newContext.querySelectorAll(newSelector));return results;}catch(qsaError){nonnativeSelectorCache(selector,true);}finally{if(nid===expando){context.removeAttribute(\"id\");}}}}}\nreturn select(selector.replace(rtrim,\"$1\"),context,results,seed);}\nfunction createCache(){var keys=[];function cache(key,value){if(keys.push(key+\" \")>Expr.cacheLength){delete cache[keys.shift()];}\nreturn(cache[key+\" \"]=value);}\nreturn cache;}\nfunction markFunction(fn){fn[expando]=true;return fn;}\nfunction assert(fn){var el=document.createElement(\"fieldset\");try{return!!fn(el);}catch(e){return false;}finally{if(el.parentNode){el.parentNode.removeChild(el);}\nel=null;}}\nfunction addHandle(attrs,handler){var arr=attrs.split(\"|\"),i=arr.length;while(i--){Expr.attrHandle[arr[i]]=handler;}}\nfunction siblingCheck(a,b){var cur=b&&a,diff=cur&&a.nodeType===1&&b.nodeType===1&&a.sourceIndex-b.sourceIndex;if(diff){return diff;}\nif(cur){while((cur=cur.nextSibling)){if(cur===b){return-1;}}}\nreturn a?1:-1;}\nfunction createInputPseudo(type){return function(elem){var name=elem.nodeName.toLowerCase();return name===\"input\"&&elem.type===type;};}\nfunction createButtonPseudo(type){return function(elem){var name=elem.nodeName.toLowerCase();return(name===\"input\"||name===\"button\")&&elem.type===type;};}\nfunction createDisabledPseudo(disabled){return function(elem){if(\"form\"in elem){if(elem.parentNode&&elem.disabled===false){if(\"label\"in elem){if(\"label\"in elem.parentNode){return elem.parentNode.disabled===disabled;}else{return elem.disabled===disabled;}}\nreturn elem.isDisabled===disabled||elem.isDisabled!==!disabled&&inDisabledFieldset(elem)===disabled;}\nreturn elem.disabled===disabled;}else if(\"label\"in elem){return elem.disabled===disabled;}\nreturn false;};}\nfunction createPositionalPseudo(fn){return markFunction(function(argument){argument=+argument;return markFunction(function(seed,matches){var j,matchIndexes=fn([],seed.length,argument),i=matchIndexes.length;while(i--){if(seed[(j=matchIndexes[i])]){seed[j]=!(matches[j]=seed[j]);}}});});}\nfunction testContext(context){return context&&typeof context.getElementsByTagName!==\"undefined\"&&context;}\nsupport=Sizzle.support={};isXML=Sizzle.isXML=function(elem){var namespace=elem&&elem.namespaceURI,docElem=elem&&(elem.ownerDocument||elem).documentElement;return!rhtml.test(namespace||docElem&&docElem.nodeName||\"HTML\");};setDocument=Sizzle.setDocument=function(node){var hasCompare,subWindow,doc=node?node.ownerDocument||node:preferredDoc;if(doc==document||doc.nodeType!==9||!doc.documentElement){return document;}\ndocument=doc;docElem=document.documentElement;documentIsHTML=!isXML(document);if(preferredDoc!=document&&(subWindow=document.defaultView)&&subWindow.top!==subWindow){if(subWindow.addEventListener){subWindow.addEventListener(\"unload\",unloadHandler,false);}else if(subWindow.attachEvent){subWindow.attachEvent(\"onunload\",unloadHandler);}}\nsupport.scope=assert(function(el){docElem.appendChild(el).appendChild(document.createElement(\"div\"));return typeof el.querySelectorAll!==\"undefined\"&&!el.querySelectorAll(\":scope fieldset div\").length;});support.attributes=assert(function(el){el.className=\"i\";return!el.getAttribute(\"className\");});support.getElementsByTagName=assert(function(el){el.appendChild(document.createComment(\"\"));return!el.getElementsByTagName(\"*\").length;});support.getElementsByClassName=rnative.test(document.getElementsByClassName);support.getById=assert(function(el){docElem.appendChild(el).id=expando;return!document.getElementsByName||!document.getElementsByName(expando).length;});if(support.getById){Expr.filter[\"ID\"]=function(id){var attrId=id.replace(runescape,funescape);return function(elem){return elem.getAttribute(\"id\")===attrId;};};Expr.find[\"ID\"]=function(id,context){if(typeof context.getElementById!==\"undefined\"&&documentIsHTML){var elem=context.getElementById(id);return elem?[elem]:[];}};}else{Expr.filter[\"ID\"]=function(id){var attrId=id.replace(runescape,funescape);return function(elem){var node=typeof elem.getAttributeNode!==\"undefined\"&&elem.getAttributeNode(\"id\");return node&&node.value===attrId;};};Expr.find[\"ID\"]=function(id,context){if(typeof context.getElementById!==\"undefined\"&&documentIsHTML){var node,i,elems,elem=context.getElementById(id);if(elem){node=elem.getAttributeNode(\"id\");if(node&&node.value===id){return[elem];}\nelems=context.getElementsByName(id);i=0;while((elem=elems[i++])){node=elem.getAttributeNode(\"id\");if(node&&node.value===id){return[elem];}}}\nreturn[];}};}\nExpr.find[\"TAG\"]=support.getElementsByTagName?function(tag,context){if(typeof context.getElementsByTagName!==\"undefined\"){return context.getElementsByTagName(tag);}else if(support.qsa){return context.querySelectorAll(tag);}}:function(tag,context){var elem,tmp=[],i=0,results=context.getElementsByTagName(tag);if(tag===\"*\"){while((elem=results[i++])){if(elem.nodeType===1){tmp.push(elem);}}\nreturn tmp;}\nreturn results;};Expr.find[\"CLASS\"]=support.getElementsByClassName&&function(className,context){if(typeof context.getElementsByClassName!==\"undefined\"&&documentIsHTML){return context.getElementsByClassName(className);}};rbuggyMatches=[];rbuggyQSA=[];if((support.qsa=rnative.test(document.querySelectorAll))){assert(function(el){var input;docElem.appendChild(el).innerHTML=\"<a id='\"+expando+\"'></a>\"+\"<select id='\"+expando+\"-\\r\\\\' msallowcapture=''>\"+\"<option selected=''></option></select>\";if(el.querySelectorAll(\"[msallowcapture^='']\").length){rbuggyQSA.push(\"[*^$]=\"+whitespace+\"*(?:''|\\\"\\\")\");}\nif(!el.querySelectorAll(\"[selected]\").length){rbuggyQSA.push(\"\\\\[\"+whitespace+\"*(?:value|\"+booleans+\")\");}\nif(!el.querySelectorAll(\"[id~=\"+expando+\"-]\").length){rbuggyQSA.push(\"~=\");}\ninput=document.createElement(\"input\");input.setAttribute(\"name\",\"\");el.appendChild(input);if(!el.querySelectorAll(\"[name='']\").length){rbuggyQSA.push(\"\\\\[\"+whitespace+\"*name\"+whitespace+\"*=\"+\nwhitespace+\"*(?:''|\\\"\\\")\");}\nif(!el.querySelectorAll(\":checked\").length){rbuggyQSA.push(\":checked\");}\nif(!el.querySelectorAll(\"a#\"+expando+\"+*\").length){rbuggyQSA.push(\".#.+[+~]\");}\nel.querySelectorAll(\"\\\\\\f\");rbuggyQSA.push(\"[\\\\r\\\\n\\\\f]\");});assert(function(el){el.innerHTML=\"<a href='' disabled='disabled'></a>\"+\"<select disabled='disabled'><option/></select>\";var input=document.createElement(\"input\");input.setAttribute(\"type\",\"hidden\");el.appendChild(input).setAttribute(\"name\",\"D\");if(el.querySelectorAll(\"[name=d]\").length){rbuggyQSA.push(\"name\"+whitespace+\"*[*^$|!~]?=\");}\nif(el.querySelectorAll(\":enabled\").length!==2){rbuggyQSA.push(\":enabled\",\":disabled\");}\ndocElem.appendChild(el).disabled=true;if(el.querySelectorAll(\":disabled\").length!==2){rbuggyQSA.push(\":enabled\",\":disabled\");}\nel.querySelectorAll(\"*,:x\");rbuggyQSA.push(\",.*:\");});}\nif((support.matchesSelector=rnative.test((matches=docElem.matches||docElem.webkitMatchesSelector||docElem.mozMatchesSelector||docElem.oMatchesSelector||docElem.msMatchesSelector)))){assert(function(el){support.disconnectedMatch=matches.call(el,\"*\");matches.call(el,\"[s!='']:x\");rbuggyMatches.push(\"!=\",pseudos);});}\nrbuggyQSA=rbuggyQSA.length&&new RegExp(rbuggyQSA.join(\"|\"));rbuggyMatches=rbuggyMatches.length&&new RegExp(rbuggyMatches.join(\"|\"));hasCompare=rnative.test(docElem.compareDocumentPosition);contains=hasCompare||rnative.test(docElem.contains)?function(a,b){var adown=a.nodeType===9?a.documentElement:a,bup=b&&b.parentNode;return a===bup||!!(bup&&bup.nodeType===1&&(adown.contains?adown.contains(bup):a.compareDocumentPosition&&a.compareDocumentPosition(bup)&16));}:function(a,b){if(b){while((b=b.parentNode)){if(b===a){return true;}}}\nreturn false;};sortOrder=hasCompare?function(a,b){if(a===b){hasDuplicate=true;return 0;}\nvar compare=!a.compareDocumentPosition-!b.compareDocumentPosition;if(compare){return compare;}\ncompare=(a.ownerDocument||a)==(b.ownerDocument||b)?a.compareDocumentPosition(b):1;if(compare&1||(!support.sortDetached&&b.compareDocumentPosition(a)===compare)){if(a==document||a.ownerDocument==preferredDoc&&contains(preferredDoc,a)){return-1;}\nif(b==document||b.ownerDocument==preferredDoc&&contains(preferredDoc,b)){return 1;}\nreturn sortInput?(indexOf(sortInput,a)-indexOf(sortInput,b)):0;}\nreturn compare&4?-1:1;}:function(a,b){if(a===b){hasDuplicate=true;return 0;}\nvar cur,i=0,aup=a.parentNode,bup=b.parentNode,ap=[a],bp=[b];if(!aup||!bup){return a==document?-1:b==document?1:aup?-1:bup?1:sortInput?(indexOf(sortInput,a)-indexOf(sortInput,b)):0;}else if(aup===bup){return siblingCheck(a,b);}\ncur=a;while((cur=cur.parentNode)){ap.unshift(cur);}\ncur=b;while((cur=cur.parentNode)){bp.unshift(cur);}\nwhile(ap[i]===bp[i]){i++;}\nreturn i?siblingCheck(ap[i],bp[i]):ap[i]==preferredDoc?-1:bp[i]==preferredDoc?1:0;};return document;};Sizzle.matches=function(expr,elements){return Sizzle(expr,null,null,elements);};Sizzle.matchesSelector=function(elem,expr){setDocument(elem);if(support.matchesSelector&&documentIsHTML&&!nonnativeSelectorCache[expr+\" \"]&&(!rbuggyMatches||!rbuggyMatches.test(expr))&&(!rbuggyQSA||!rbuggyQSA.test(expr))){try{var ret=matches.call(elem,expr);if(ret||support.disconnectedMatch||elem.document&&elem.document.nodeType!==11){return ret;}}catch(e){nonnativeSelectorCache(expr,true);}}\nreturn Sizzle(expr,document,null,[elem]).length>0;};Sizzle.contains=function(context,elem){if((context.ownerDocument||context)!=document){setDocument(context);}\nreturn contains(context,elem);};Sizzle.attr=function(elem,name){if((elem.ownerDocument||elem)!=document){setDocument(elem);}\nvar fn=Expr.attrHandle[name.toLowerCase()],val=fn&&hasOwn.call(Expr.attrHandle,name.toLowerCase())?fn(elem,name,!documentIsHTML):undefined;return val!==undefined?val:support.attributes||!documentIsHTML?elem.getAttribute(name):(val=elem.getAttributeNode(name))&&val.specified?val.value:null;};Sizzle.escape=function(sel){return(sel+\"\").replace(rcssescape,fcssescape);};Sizzle.error=function(msg){throw new Error(\"Syntax error, unrecognized expression: \"+msg);};Sizzle.uniqueSort=function(results){var elem,duplicates=[],j=0,i=0;hasDuplicate=!support.detectDuplicates;sortInput=!support.sortStable&&results.slice(0);results.sort(sortOrder);if(hasDuplicate){while((elem=results[i++])){if(elem===results[i]){j=duplicates.push(i);}}\nwhile(j--){results.splice(duplicates[j],1);}}\nsortInput=null;return results;};getText=Sizzle.getText=function(elem){var node,ret=\"\",i=0,nodeType=elem.nodeType;if(!nodeType){while((node=elem[i++])){ret+=getText(node);}}else if(nodeType===1||nodeType===9||nodeType===11){if(typeof elem.textContent===\"string\"){return elem.textContent;}else{for(elem=elem.firstChild;elem;elem=elem.nextSibling){ret+=getText(elem);}}}else if(nodeType===3||nodeType===4){return elem.nodeValue;}\nreturn ret;};Expr=Sizzle.selectors={cacheLength:50,createPseudo:markFunction,match:matchExpr,attrHandle:{},find:{},relative:{\">\":{dir:\"parentNode\",first:true},\" \":{dir:\"parentNode\"},\"+\":{dir:\"previousSibling\",first:true},\"~\":{dir:\"previousSibling\"}},preFilter:{\"ATTR\":function(match){match[1]=match[1].replace(runescape,funescape);match[3]=(match[3]||match[4]||match[5]||\"\").replace(runescape,funescape);if(match[2]===\"~=\"){match[3]=\" \"+match[3]+\" \";}\nreturn match.slice(0,4);},\"CHILD\":function(match){match[1]=match[1].toLowerCase();if(match[1].slice(0,3)===\"nth\"){if(!match[3]){Sizzle.error(match[0]);}\nmatch[4]=+(match[4]?match[5]+(match[6]||1):2*(match[3]===\"even\"||match[3]===\"odd\"));match[5]=+((match[7]+match[8])||match[3]===\"odd\");}else if(match[3]){Sizzle.error(match[0]);}\nreturn match;},\"PSEUDO\":function(match){var excess,unquoted=!match[6]&&match[2];if(matchExpr[\"CHILD\"].test(match[0])){return null;}\nif(match[3]){match[2]=match[4]||match[5]||\"\";}else if(unquoted&&rpseudo.test(unquoted)&&(excess=tokenize(unquoted,true))&&(excess=unquoted.indexOf(\")\",unquoted.length-excess)-unquoted.length)){match[0]=match[0].slice(0,excess);match[2]=unquoted.slice(0,excess);}\nreturn match.slice(0,3);}},filter:{\"TAG\":function(nodeNameSelector){var nodeName=nodeNameSelector.replace(runescape,funescape).toLowerCase();return nodeNameSelector===\"*\"?function(){return true;}:function(elem){return elem.nodeName&&elem.nodeName.toLowerCase()===nodeName;};},\"CLASS\":function(className){var pattern=classCache[className+\" \"];return pattern||(pattern=new RegExp(\"(^|\"+whitespace+\")\"+className+\"(\"+whitespace+\"|$)\"))&&classCache(className,function(elem){return pattern.test(typeof elem.className===\"string\"&&elem.className||typeof elem.getAttribute!==\"undefined\"&&elem.getAttribute(\"class\")||\"\");});},\"ATTR\":function(name,operator,check){return function(elem){var result=Sizzle.attr(elem,name);if(result==null){return operator===\"!=\";}\nif(!operator){return true;}\nresult+=\"\";return operator===\"=\"?result===check:operator===\"!=\"?result!==check:operator===\"^=\"?check&&result.indexOf(check)===0:operator===\"*=\"?check&&result.indexOf(check)>-1:operator===\"$=\"?check&&result.slice(-check.length)===check:operator===\"~=\"?(\" \"+result.replace(rwhitespace,\" \")+\" \").indexOf(check)>-1:operator===\"|=\"?result===check||result.slice(0,check.length+1)===check+\"-\":false;};},\"CHILD\":function(type,what,_argument,first,last){var simple=type.slice(0,3)!==\"nth\",forward=type.slice(-4)!==\"last\",ofType=what===\"of-type\";return first===1&&last===0?function(elem){return!!elem.parentNode;}:function(elem,_context,xml){var cache,uniqueCache,outerCache,node,nodeIndex,start,dir=simple!==forward?\"nextSibling\":\"previousSibling\",parent=elem.parentNode,name=ofType&&elem.nodeName.toLowerCase(),useCache=!xml&&!ofType,diff=false;if(parent){if(simple){while(dir){node=elem;while((node=node[dir])){if(ofType?node.nodeName.toLowerCase()===name:node.nodeType===1){return false;}}\nstart=dir=type===\"only\"&&!start&&\"nextSibling\";}\nreturn true;}\nstart=[forward?parent.firstChild:parent.lastChild];if(forward&&useCache){node=parent;outerCache=node[expando]||(node[expando]={});uniqueCache=outerCache[node.uniqueID]||(outerCache[node.uniqueID]={});cache=uniqueCache[type]||[];nodeIndex=cache[0]===dirruns&&cache[1];diff=nodeIndex&&cache[2];node=nodeIndex&&parent.childNodes[nodeIndex];while((node=++nodeIndex&&node&&node[dir]||(diff=nodeIndex=0)||start.pop())){if(node.nodeType===1&&++diff&&node===elem){uniqueCache[type]=[dirruns,nodeIndex,diff];break;}}}else{if(useCache){node=elem;outerCache=node[expando]||(node[expando]={});uniqueCache=outerCache[node.uniqueID]||(outerCache[node.uniqueID]={});cache=uniqueCache[type]||[];nodeIndex=cache[0]===dirruns&&cache[1];diff=nodeIndex;}\nif(diff===false){while((node=++nodeIndex&&node&&node[dir]||(diff=nodeIndex=0)||start.pop())){if((ofType?node.nodeName.toLowerCase()===name:node.nodeType===1)&&++diff){if(useCache){outerCache=node[expando]||(node[expando]={});uniqueCache=outerCache[node.uniqueID]||(outerCache[node.uniqueID]={});uniqueCache[type]=[dirruns,diff];}\nif(node===elem){break;}}}}}\ndiff-=last;return diff===first||(diff%first===0&&diff / first>=0);}};},\"PSEUDO\":function(pseudo,argument){var args,fn=Expr.pseudos[pseudo]||Expr.setFilters[pseudo.toLowerCase()]||Sizzle.error(\"unsupported pseudo: \"+pseudo);if(fn[expando]){return fn(argument);}\nif(fn.length>1){args=[pseudo,pseudo,\"\",argument];return Expr.setFilters.hasOwnProperty(pseudo.toLowerCase())?markFunction(function(seed,matches){var idx,matched=fn(seed,argument),i=matched.length;while(i--){idx=indexOf(seed,matched[i]);seed[idx]=!(matches[idx]=matched[i]);}}):function(elem){return fn(elem,0,args);};}\nreturn fn;}},pseudos:{\"not\":markFunction(function(selector){var input=[],results=[],matcher=compile(selector.replace(rtrim,\"$1\"));return matcher[expando]?markFunction(function(seed,matches,_context,xml){var elem,unmatched=matcher(seed,null,xml,[]),i=seed.length;while(i--){if((elem=unmatched[i])){seed[i]=!(matches[i]=elem);}}}):function(elem,_context,xml){input[0]=elem;matcher(input,null,xml,results);input[0]=null;return!results.pop();};}),\"has\":markFunction(function(selector){return function(elem){return Sizzle(selector,elem).length>0;};}),\"contains\":markFunction(function(text){text=text.replace(runescape,funescape);return function(elem){return(elem.textContent||getText(elem)).indexOf(text)>-1;};}),\"lang\":markFunction(function(lang){if(!ridentifier.test(lang||\"\")){Sizzle.error(\"unsupported lang: \"+lang);}\nlang=lang.replace(runescape,funescape).toLowerCase();return function(elem){var elemLang;do{if((elemLang=documentIsHTML?elem.lang:elem.getAttribute(\"xml:lang\")||elem.getAttribute(\"lang\"))){elemLang=elemLang.toLowerCase();return elemLang===lang||elemLang.indexOf(lang+\"-\")===0;}}while((elem=elem.parentNode)&&elem.nodeType===1);return false;};}),\"target\":function(elem){var hash=window.location&&window.location.hash;return hash&&hash.slice(1)===elem.id;},\"root\":function(elem){return elem===docElem;},\"focus\":function(elem){return elem===document.activeElement&&(!document.hasFocus||document.hasFocus())&&!!(elem.type||elem.href||~elem.tabIndex);},\"enabled\":createDisabledPseudo(false),\"disabled\":createDisabledPseudo(true),\"checked\":function(elem){var nodeName=elem.nodeName.toLowerCase();return(nodeName===\"input\"&&!!elem.checked)||(nodeName===\"option\"&&!!elem.selected);},\"selected\":function(elem){if(elem.parentNode){elem.parentNode.selectedIndex;}\nreturn elem.selected===true;},\"empty\":function(elem){for(elem=elem.firstChild;elem;elem=elem.nextSibling){if(elem.nodeType<6){return false;}}\nreturn true;},\"parent\":function(elem){return!Expr.pseudos[\"empty\"](elem);},\"header\":function(elem){return rheader.test(elem.nodeName);},\"input\":function(elem){return rinputs.test(elem.nodeName);},\"button\":function(elem){var name=elem.nodeName.toLowerCase();return name===\"input\"&&elem.type===\"button\"||name===\"button\";},\"text\":function(elem){var attr;return elem.nodeName.toLowerCase()===\"input\"&&elem.type===\"text\"&&((attr=elem.getAttribute(\"type\"))==null||attr.toLowerCase()===\"text\");},\"first\":createPositionalPseudo(function(){return[0];}),\"last\":createPositionalPseudo(function(_matchIndexes,length){return[length-1];}),\"eq\":createPositionalPseudo(function(_matchIndexes,length,argument){return[argument<0?argument+length:argument];}),\"even\":createPositionalPseudo(function(matchIndexes,length){var i=0;for(;i<length;i+=2){matchIndexes.push(i);}\nreturn matchIndexes;}),\"odd\":createPositionalPseudo(function(matchIndexes,length){var i=1;for(;i<length;i+=2){matchIndexes.push(i);}\nreturn matchIndexes;}),\"lt\":createPositionalPseudo(function(matchIndexes,length,argument){var i=argument<0?argument+length:argument>length?length:argument;for(;--i>=0;){matchIndexes.push(i);}\nreturn matchIndexes;}),\"gt\":createPositionalPseudo(function(matchIndexes,length,argument){var i=argument<0?argument+length:argument;for(;++i<length;){matchIndexes.push(i);}\nreturn matchIndexes;})}};Expr.pseudos[\"nth\"]=Expr.pseudos[\"eq\"];for(i in{radio:true,checkbox:true,file:true,password:true,image:true}){Expr.pseudos[i]=createInputPseudo(i);}\nfor(i in{submit:true,reset:true}){Expr.pseudos[i]=createButtonPseudo(i);}\nfunction setFilters(){}\nsetFilters.prototype=Expr.filters=Expr.pseudos;Expr.setFilters=new setFilters();tokenize=Sizzle.tokenize=function(selector,parseOnly){var matched,match,tokens,type,soFar,groups,preFilters,cached=tokenCache[selector+\" \"];if(cached){return parseOnly?0:cached.slice(0);}\nsoFar=selector;groups=[];preFilters=Expr.preFilter;while(soFar){if(!matched||(match=rcomma.exec(soFar))){if(match){soFar=soFar.slice(match[0].length)||soFar;}\ngroups.push((tokens=[]));}\nmatched=false;if((match=rcombinators.exec(soFar))){matched=match.shift();tokens.push({value:matched,type:match[0].replace(rtrim,\" \")});soFar=soFar.slice(matched.length);}\nfor(type in Expr.filter){if((match=matchExpr[type].exec(soFar))&&(!preFilters[type]||(match=preFilters[type](match)))){matched=match.shift();tokens.push({value:matched,type:type,matches:match});soFar=soFar.slice(matched.length);}}\nif(!matched){break;}}\nreturn parseOnly?soFar.length:soFar?Sizzle.error(selector):tokenCache(selector,groups).slice(0);};function toSelector(tokens){var i=0,len=tokens.length,selector=\"\";for(;i<len;i++){selector+=tokens[i].value;}\nreturn selector;}\nfunction addCombinator(matcher,combinator,base){var dir=combinator.dir,skip=combinator.next,key=skip||dir,checkNonElements=base&&key===\"parentNode\",doneName=done++;return combinator.first?function(elem,context,xml){while((elem=elem[dir])){if(elem.nodeType===1||checkNonElements){return matcher(elem,context,xml);}}\nreturn false;}:function(elem,context,xml){var oldCache,uniqueCache,outerCache,newCache=[dirruns,doneName];if(xml){while((elem=elem[dir])){if(elem.nodeType===1||checkNonElements){if(matcher(elem,context,xml)){return true;}}}}else{while((elem=elem[dir])){if(elem.nodeType===1||checkNonElements){outerCache=elem[expando]||(elem[expando]={});uniqueCache=outerCache[elem.uniqueID]||(outerCache[elem.uniqueID]={});if(skip&&skip===elem.nodeName.toLowerCase()){elem=elem[dir]||elem;}else if((oldCache=uniqueCache[key])&&oldCache[0]===dirruns&&oldCache[1]===doneName){return(newCache[2]=oldCache[2]);}else{uniqueCache[key]=newCache;if((newCache[2]=matcher(elem,context,xml))){return true;}}}}}\nreturn false;};}\nfunction elementMatcher(matchers){return matchers.length>1?function(elem,context,xml){var i=matchers.length;while(i--){if(!matchers[i](elem,context,xml)){return false;}}\nreturn true;}:matchers[0];}\nfunction multipleContexts(selector,contexts,results){var i=0,len=contexts.length;for(;i<len;i++){Sizzle(selector,contexts[i],results);}\nreturn results;}\nfunction condense(unmatched,map,filter,context,xml){var elem,newUnmatched=[],i=0,len=unmatched.length,mapped=map!=null;for(;i<len;i++){if((elem=unmatched[i])){if(!filter||filter(elem,context,xml)){newUnmatched.push(elem);if(mapped){map.push(i);}}}}\nreturn newUnmatched;}\nfunction setMatcher(preFilter,selector,matcher,postFilter,postFinder,postSelector){if(postFilter&&!postFilter[expando]){postFilter=setMatcher(postFilter);}\nif(postFinder&&!postFinder[expando]){postFinder=setMatcher(postFinder,postSelector);}\nreturn markFunction(function(seed,results,context,xml){var temp,i,elem,preMap=[],postMap=[],preexisting=results.length,elems=seed||multipleContexts(selector||\"*\",context.nodeType?[context]:context,[]),matcherIn=preFilter&&(seed||!selector)?condense(elems,preMap,preFilter,context,xml):elems,matcherOut=matcher?postFinder||(seed?preFilter:preexisting||postFilter)?[]:results:matcherIn;if(matcher){matcher(matcherIn,matcherOut,context,xml);}\nif(postFilter){temp=condense(matcherOut,postMap);postFilter(temp,[],context,xml);i=temp.length;while(i--){if((elem=temp[i])){matcherOut[postMap[i]]=!(matcherIn[postMap[i]]=elem);}}}\nif(seed){if(postFinder||preFilter){if(postFinder){temp=[];i=matcherOut.length;while(i--){if((elem=matcherOut[i])){temp.push((matcherIn[i]=elem));}}\npostFinder(null,(matcherOut=[]),temp,xml);}\ni=matcherOut.length;while(i--){if((elem=matcherOut[i])&&(temp=postFinder?indexOf(seed,elem):preMap[i])>-1){seed[temp]=!(results[temp]=elem);}}}}else{matcherOut=condense(matcherOut===results?matcherOut.splice(preexisting,matcherOut.length):matcherOut);if(postFinder){postFinder(null,results,matcherOut,xml);}else{push.apply(results,matcherOut);}}});}\nfunction matcherFromTokens(tokens){var checkContext,matcher,j,len=tokens.length,leadingRelative=Expr.relative[tokens[0].type],implicitRelative=leadingRelative||Expr.relative[\" \"],i=leadingRelative?1:0,matchContext=addCombinator(function(elem){return elem===checkContext;},implicitRelative,true),matchAnyContext=addCombinator(function(elem){return indexOf(checkContext,elem)>-1;},implicitRelative,true),matchers=[function(elem,context,xml){var ret=(!leadingRelative&&(xml||context!==outermostContext))||((checkContext=context).nodeType?matchContext(elem,context,xml):matchAnyContext(elem,context,xml));checkContext=null;return ret;}];for(;i<len;i++){if((matcher=Expr.relative[tokens[i].type])){matchers=[addCombinator(elementMatcher(matchers),matcher)];}else{matcher=Expr.filter[tokens[i].type].apply(null,tokens[i].matches);if(matcher[expando]){j=++i;for(;j<len;j++){if(Expr.relative[tokens[j].type]){break;}}\nreturn setMatcher(i>1&&elementMatcher(matchers),i>1&&toSelector(tokens.slice(0,i-1).concat({value:tokens[i-2].type===\" \"?\"*\":\"\"})).replace(rtrim,\"$1\"),matcher,i<j&&matcherFromTokens(tokens.slice(i,j)),j<len&&matcherFromTokens((tokens=tokens.slice(j))),j<len&&toSelector(tokens));}\nmatchers.push(matcher);}}\nreturn elementMatcher(matchers);}\nfunction matcherFromGroupMatchers(elementMatchers,setMatchers){var bySet=setMatchers.length>0,byElement=elementMatchers.length>0,superMatcher=function(seed,context,xml,results,outermost){var elem,j,matcher,matchedCount=0,i=\"0\",unmatched=seed&&[],setMatched=[],contextBackup=outermostContext,elems=seed||byElement&&Expr.find[\"TAG\"](\"*\",outermost),dirrunsUnique=(dirruns+=contextBackup==null?1:Math.random()||0.1),len=elems.length;if(outermost){outermostContext=context==document||context||outermost;}\nfor(;i!==len&&(elem=elems[i])!=null;i++){if(byElement&&elem){j=0;if(!context&&elem.ownerDocument!=document){setDocument(elem);xml=!documentIsHTML;}\nwhile((matcher=elementMatchers[j++])){if(matcher(elem,context||document,xml)){results.push(elem);break;}}\nif(outermost){dirruns=dirrunsUnique;}}\nif(bySet){if((elem=!matcher&&elem)){matchedCount--;}\nif(seed){unmatched.push(elem);}}}\nmatchedCount+=i;if(bySet&&i!==matchedCount){j=0;while((matcher=setMatchers[j++])){matcher(unmatched,setMatched,context,xml);}\nif(seed){if(matchedCount>0){while(i--){if(!(unmatched[i]||setMatched[i])){setMatched[i]=pop.call(results);}}}\nsetMatched=condense(setMatched);}\npush.apply(results,setMatched);if(outermost&&!seed&&setMatched.length>0&&(matchedCount+setMatchers.length)>1){Sizzle.uniqueSort(results);}}\nif(outermost){dirruns=dirrunsUnique;outermostContext=contextBackup;}\nreturn unmatched;};return bySet?markFunction(superMatcher):superMatcher;}\ncompile=Sizzle.compile=function(selector,match){var i,setMatchers=[],elementMatchers=[],cached=compilerCache[selector+\" \"];if(!cached){if(!match){match=tokenize(selector);}\ni=match.length;while(i--){cached=matcherFromTokens(match[i]);if(cached[expando]){setMatchers.push(cached);}else{elementMatchers.push(cached);}}\ncached=compilerCache(selector,matcherFromGroupMatchers(elementMatchers,setMatchers));cached.selector=selector;}\nreturn cached;};select=Sizzle.select=function(selector,context,results,seed){var i,tokens,token,type,find,compiled=typeof selector===\"function\"&&selector,match=!seed&&tokenize((selector=compiled.selector||selector));results=results||[];if(match.length===1){tokens=match[0]=match[0].slice(0);if(tokens.length>2&&(token=tokens[0]).type===\"ID\"&&context.nodeType===9&&documentIsHTML&&Expr.relative[tokens[1].type]){context=(Expr.find[\"ID\"](token.matches[0].replace(runescape,funescape),context)||[])[0];if(!context){return results;}else if(compiled){context=context.parentNode;}\nselector=selector.slice(tokens.shift().value.length);}\ni=matchExpr[\"needsContext\"].test(selector)?0:tokens.length;while(i--){token=tokens[i];if(Expr.relative[(type=token.type)]){break;}\nif((find=Expr.find[type])){if((seed=find(token.matches[0].replace(runescape,funescape),rsibling.test(tokens[0].type)&&testContext(context.parentNode)||context))){tokens.splice(i,1);selector=seed.length&&toSelector(tokens);if(!selector){push.apply(results,seed);return results;}\nbreak;}}}}\n(compiled||compile(selector,match))(seed,context,!documentIsHTML,results,!context||rsibling.test(selector)&&testContext(context.parentNode)||context);return results;};support.sortStable=expando.split(\"\").sort(sortOrder).join(\"\")===expando;support.detectDuplicates=!!hasDuplicate;setDocument();support.sortDetached=assert(function(el){return el.compareDocumentPosition(document.createElement(\"fieldset\"))&1;});if(!assert(function(el){el.innerHTML=\"<a href='#'></a>\";return el.firstChild.getAttribute(\"href\")===\"#\";})){addHandle(\"type|href|height|width\",function(elem,name,isXML){if(!isXML){return elem.getAttribute(name,name.toLowerCase()===\"type\"?1:2);}});}\nif(!support.attributes||!assert(function(el){el.innerHTML=\"<input/>\";el.firstChild.setAttribute(\"value\",\"\");return el.firstChild.getAttribute(\"value\")===\"\";})){addHandle(\"value\",function(elem,_name,isXML){if(!isXML&&elem.nodeName.toLowerCase()===\"input\"){return elem.defaultValue;}});}\nif(!assert(function(el){return el.getAttribute(\"disabled\")==null;})){addHandle(booleans,function(elem,name,isXML){var val;if(!isXML){return elem[name]===true?name.toLowerCase():(val=elem.getAttributeNode(name))&&val.specified?val.value:null;}});}\nreturn Sizzle;})(window);jQuery.find=Sizzle;jQuery.expr=Sizzle.selectors;jQuery.expr[\":\"]=jQuery.expr.pseudos;jQuery.uniqueSort=jQuery.unique=Sizzle.uniqueSort;jQuery.text=Sizzle.getText;jQuery.isXMLDoc=Sizzle.isXML;jQuery.contains=Sizzle.contains;jQuery.escapeSelector=Sizzle.escape;var dir=function(elem,dir,until){var matched=[],truncate=until!==undefined;while((elem=elem[dir])&&elem.nodeType!==9){if(elem.nodeType===1){if(truncate&&jQuery(elem).is(until)){break;}\nmatched.push(elem);}}\nreturn matched;};var siblings=function(n,elem){var matched=[];for(;n;n=n.nextSibling){if(n.nodeType===1&&n!==elem){matched.push(n);}}\nreturn matched;};var rneedsContext=jQuery.expr.match.needsContext;function nodeName(elem,name){return elem.nodeName&&elem.nodeName.toLowerCase()===name.toLowerCase();}\nvar rsingleTag=(/^<([a-z][^\\/\\0>:\\x20\\t\\r\\n\\f]*)[\\x20\\t\\r\\n\\f]*\\/?>(?:<\\/\\1>|)$/i);function winnow(elements,qualifier,not){if(isFunction(qualifier)){return jQuery.grep(elements,function(elem,i){return!!qualifier.call(elem,i,elem)!==not;});}\nif(qualifier.nodeType){return jQuery.grep(elements,function(elem){return(elem===qualifier)!==not;});}\nif(typeof qualifier!==\"string\"){return jQuery.grep(elements,function(elem){return(indexOf.call(qualifier,elem)>-1)!==not;});}\nreturn jQuery.filter(qualifier,elements,not);}\njQuery.filter=function(expr,elems,not){var elem=elems[0];if(not){expr=\":not(\"+expr+\")\";}\nif(elems.length===1&&elem.nodeType===1){return jQuery.find.matchesSelector(elem,expr)?[elem]:[];}\nreturn jQuery.find.matches(expr,jQuery.grep(elems,function(elem){return elem.nodeType===1;}));};jQuery.fn.extend({find:function(selector){var i,ret,len=this.length,self=this;if(typeof selector!==\"string\"){return this.pushStack(jQuery(selector).filter(function(){for(i=0;i<len;i++){if(jQuery.contains(self[i],this)){return true;}}}));}\nret=this.pushStack([]);for(i=0;i<len;i++){jQuery.find(selector,self[i],ret);}\nreturn len>1?jQuery.uniqueSort(ret):ret;},filter:function(selector){return this.pushStack(winnow(this,selector||[],false));},not:function(selector){return this.pushStack(winnow(this,selector||[],true));},is:function(selector){return!!winnow(this,typeof selector===\"string\"&&rneedsContext.test(selector)?jQuery(selector):selector||[],false).length;}});var rootjQuery,rquickExpr=/^(?:\\s*(<[\\w\\W]+>)[^>]*|#([\\w-]+))$/,init=jQuery.fn.init=function(selector,context,root){var match,elem;if(!selector){return this;}\nroot=root||rootjQuery;if(typeof selector===\"string\"){if(selector[0]===\"<\"&&selector[selector.length-1]===\">\"&&selector.length>=3){match=[null,selector,null];}else{match=rquickExpr.exec(selector);}\nif(match&&(match[1]||!context)){if(match[1]){context=context instanceof jQuery?context[0]:context;jQuery.merge(this,jQuery.parseHTML(match[1],context&&context.nodeType?context.ownerDocument||context:document,true));if(rsingleTag.test(match[1])&&jQuery.isPlainObject(context)){for(match in context){if(isFunction(this[match])){this[match](context[match]);}else{this.attr(match,context[match]);}}}\nreturn this;}else{elem=document.getElementById(match[2]);if(elem){this[0]=elem;this.length=1;}\nreturn this;}}else if(!context||context.jquery){return(context||root).find(selector);}else{return this.constructor(context).find(selector);}}else if(selector.nodeType){this[0]=selector;this.length=1;return this;}else if(isFunction(selector)){return root.ready!==undefined?root.ready(selector):selector(jQuery);}\nreturn jQuery.makeArray(selector,this);};init.prototype=jQuery.fn;rootjQuery=jQuery(document);var rparentsprev=/^(?:parents|prev(?:Until|All))/,guaranteedUnique={children:true,contents:true,next:true,prev:true};jQuery.fn.extend({has:function(target){var targets=jQuery(target,this),l=targets.length;return this.filter(function(){var i=0;for(;i<l;i++){if(jQuery.contains(this,targets[i])){return true;}}});},closest:function(selectors,context){var cur,i=0,l=this.length,matched=[],targets=typeof selectors!==\"string\"&&jQuery(selectors);if(!rneedsContext.test(selectors)){for(;i<l;i++){for(cur=this[i];cur&&cur!==context;cur=cur.parentNode){if(cur.nodeType<11&&(targets?targets.index(cur)>-1:cur.nodeType===1&&jQuery.find.matchesSelector(cur,selectors))){matched.push(cur);break;}}}}\nreturn this.pushStack(matched.length>1?jQuery.uniqueSort(matched):matched);},index:function(elem){if(!elem){return(this[0]&&this[0].parentNode)?this.first().prevAll().length:-1;}\nif(typeof elem===\"string\"){return indexOf.call(jQuery(elem),this[0]);}\nreturn indexOf.call(this,elem.jquery?elem[0]:elem);},add:function(selector,context){return this.pushStack(jQuery.uniqueSort(jQuery.merge(this.get(),jQuery(selector,context))));},addBack:function(selector){return this.add(selector==null?this.prevObject:this.prevObject.filter(selector));}});function sibling(cur,dir){while((cur=cur[dir])&&cur.nodeType!==1){}\nreturn cur;}\njQuery.each({parent:function(elem){var parent=elem.parentNode;return parent&&parent.nodeType!==11?parent:null;},parents:function(elem){return dir(elem,\"parentNode\");},parentsUntil:function(elem,_i,until){return dir(elem,\"parentNode\",until);},next:function(elem){return sibling(elem,\"nextSibling\");},prev:function(elem){return sibling(elem,\"previousSibling\");},nextAll:function(elem){return dir(elem,\"nextSibling\");},prevAll:function(elem){return dir(elem,\"previousSibling\");},nextUntil:function(elem,_i,until){return dir(elem,\"nextSibling\",until);},prevUntil:function(elem,_i,until){return dir(elem,\"previousSibling\",until);},siblings:function(elem){return siblings((elem.parentNode||{}).firstChild,elem);},children:function(elem){return siblings(elem.firstChild);},contents:function(elem){if(elem.contentDocument!=null&&getProto(elem.contentDocument)){return elem.contentDocument;}\nif(nodeName(elem,\"template\")){elem=elem.content||elem;}\nreturn jQuery.merge([],elem.childNodes);}},function(name,fn){jQuery.fn[name]=function(until,selector){var matched=jQuery.map(this,fn,until);if(name.slice(-5)!==\"Until\"){selector=until;}\nif(selector&&typeof selector===\"string\"){matched=jQuery.filter(selector,matched);}\nif(this.length>1){if(!guaranteedUnique[name]){jQuery.uniqueSort(matched);}\nif(rparentsprev.test(name)){matched.reverse();}}\nreturn this.pushStack(matched);};});var rnothtmlwhite=(/[^\\x20\\t\\r\\n\\f]+/g);function createOptions(options){var object={};jQuery.each(options.match(rnothtmlwhite)||[],function(_,flag){object[flag]=true;});return object;}\njQuery.Callbacks=function(options){options=typeof options===\"string\"?createOptions(options):jQuery.extend({},options);var\nfiring,memory,fired,locked,list=[],queue=[],firingIndex=-1,fire=function(){locked=locked||options.once;fired=firing=true;for(;queue.length;firingIndex=-1){memory=queue.shift();while(++firingIndex<list.length){if(list[firingIndex].apply(memory[0],memory[1])===false&&options.stopOnFalse){firingIndex=list.length;memory=false;}}}\nif(!options.memory){memory=false;}\nfiring=false;if(locked){if(memory){list=[];}else{list=\"\";}}},self={add:function(){if(list){if(memory&&!firing){firingIndex=list.length-1;queue.push(memory);}\n(function add(args){jQuery.each(args,function(_,arg){if(isFunction(arg)){if(!options.unique||!self.has(arg)){list.push(arg);}}else if(arg&&arg.length&&toType(arg)!==\"string\"){add(arg);}});})(arguments);if(memory&&!firing){fire();}}\nreturn this;},remove:function(){jQuery.each(arguments,function(_,arg){var index;while((index=jQuery.inArray(arg,list,index))>-1){list.splice(index,1);if(index<=firingIndex){firingIndex--;}}});return this;},has:function(fn){return fn?jQuery.inArray(fn,list)>-1:list.length>0;},empty:function(){if(list){list=[];}\nreturn this;},disable:function(){locked=queue=[];list=memory=\"\";return this;},disabled:function(){return!list;},lock:function(){locked=queue=[];if(!memory&&!firing){list=memory=\"\";}\nreturn this;},locked:function(){return!!locked;},fireWith:function(context,args){if(!locked){args=args||[];args=[context,args.slice?args.slice():args];queue.push(args);if(!firing){fire();}}\nreturn this;},fire:function(){self.fireWith(this,arguments);return this;},fired:function(){return!!fired;}};return self;};function Identity(v){return v;}\nfunction Thrower(ex){throw ex;}\nfunction adoptValue(value,resolve,reject,noValue){var method;try{if(value&&isFunction((method=value.promise))){method.call(value).done(resolve).fail(reject);}else if(value&&isFunction((method=value.then))){method.call(value,resolve,reject);}else{resolve.apply(undefined,[value].slice(noValue));}}catch(value){reject.apply(undefined,[value]);}}\njQuery.extend({Deferred:function(func){var tuples=[[\"notify\",\"progress\",jQuery.Callbacks(\"memory\"),jQuery.Callbacks(\"memory\"),2],[\"resolve\",\"done\",jQuery.Callbacks(\"once memory\"),jQuery.Callbacks(\"once memory\"),0,\"resolved\"],[\"reject\",\"fail\",jQuery.Callbacks(\"once memory\"),jQuery.Callbacks(\"once memory\"),1,\"rejected\"]],state=\"pending\",promise={state:function(){return state;},always:function(){deferred.done(arguments).fail(arguments);return this;},\"catch\":function(fn){return promise.then(null,fn);},pipe:function(){var fns=arguments;return jQuery.Deferred(function(newDefer){jQuery.each(tuples,function(_i,tuple){var fn=isFunction(fns[tuple[4]])&&fns[tuple[4]];deferred[tuple[1]](function(){var returned=fn&&fn.apply(this,arguments);if(returned&&isFunction(returned.promise)){returned.promise().progress(newDefer.notify).done(newDefer.resolve).fail(newDefer.reject);}else{newDefer[tuple[0]+\"With\"](this,fn?[returned]:arguments);}});});fns=null;}).promise();},then:function(onFulfilled,onRejected,onProgress){var maxDepth=0;function resolve(depth,deferred,handler,special){return function(){var that=this,args=arguments,mightThrow=function(){var returned,then;if(depth<maxDepth){return;}\nreturned=handler.apply(that,args);if(returned===deferred.promise()){throw new TypeError(\"Thenable self-resolution\");}\nthen=returned&&(typeof returned===\"object\"||typeof returned===\"function\")&&returned.then;if(isFunction(then)){if(special){then.call(returned,resolve(maxDepth,deferred,Identity,special),resolve(maxDepth,deferred,Thrower,special));}else{maxDepth++;then.call(returned,resolve(maxDepth,deferred,Identity,special),resolve(maxDepth,deferred,Thrower,special),resolve(maxDepth,deferred,Identity,deferred.notifyWith));}}else{if(handler!==Identity){that=undefined;args=[returned];}\n(special||deferred.resolveWith)(that,args);}},process=special?mightThrow:function(){try{mightThrow();}catch(e){if(jQuery.Deferred.exceptionHook){jQuery.Deferred.exceptionHook(e,process.stackTrace);}\nif(depth+1>=maxDepth){if(handler!==Thrower){that=undefined;args=[e];}\ndeferred.rejectWith(that,args);}}};if(depth){process();}else{if(jQuery.Deferred.getStackHook){process.stackTrace=jQuery.Deferred.getStackHook();}\nwindow.setTimeout(process);}};}\nreturn jQuery.Deferred(function(newDefer){tuples[0][3].add(resolve(0,newDefer,isFunction(onProgress)?onProgress:Identity,newDefer.notifyWith));tuples[1][3].add(resolve(0,newDefer,isFunction(onFulfilled)?onFulfilled:Identity));tuples[2][3].add(resolve(0,newDefer,isFunction(onRejected)?onRejected:Thrower));}).promise();},promise:function(obj){return obj!=null?jQuery.extend(obj,promise):promise;}},deferred={};jQuery.each(tuples,function(i,tuple){var list=tuple[2],stateString=tuple[5];promise[tuple[1]]=list.add;if(stateString){list.add(function(){state=stateString;},tuples[3-i][2].disable,tuples[3-i][3].disable,tuples[0][2].lock,tuples[0][3].lock);}\nlist.add(tuple[3].fire);deferred[tuple[0]]=function(){deferred[tuple[0]+\"With\"](this===deferred?undefined:this,arguments);return this;};deferred[tuple[0]+\"With\"]=list.fireWith;});promise.promise(deferred);if(func){func.call(deferred,deferred);}\nreturn deferred;},when:function(singleValue){var\nremaining=arguments.length,i=remaining,resolveContexts=Array(i),resolveValues=slice.call(arguments),primary=jQuery.Deferred(),updateFunc=function(i){return function(value){resolveContexts[i]=this;resolveValues[i]=arguments.length>1?slice.call(arguments):value;if(!(--remaining)){primary.resolveWith(resolveContexts,resolveValues);}};};if(remaining<=1){adoptValue(singleValue,primary.done(updateFunc(i)).resolve,primary.reject,!remaining);if(primary.state()===\"pending\"||isFunction(resolveValues[i]&&resolveValues[i].then)){return primary.then();}}\nwhile(i--){adoptValue(resolveValues[i],updateFunc(i),primary.reject);}\nreturn primary.promise();}});var rerrorNames=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;jQuery.Deferred.exceptionHook=function(error,stack){if(window.console&&window.console.warn&&error&&rerrorNames.test(error.name)){window.console.warn(\"jQuery.Deferred exception: \"+error.message,error.stack,stack);}};jQuery.readyException=function(error){window.setTimeout(function(){throw error;});};var readyList=jQuery.Deferred();jQuery.fn.ready=function(fn){readyList.then(fn).catch(function(error){jQuery.readyException(error);});return this;};jQuery.extend({isReady:false,readyWait:1,ready:function(wait){if(wait===true?--jQuery.readyWait:jQuery.isReady){return;}\njQuery.isReady=true;if(wait!==true&&--jQuery.readyWait>0){return;}\nreadyList.resolveWith(document,[jQuery]);}});jQuery.ready.then=readyList.then;function completed(){document.removeEventListener(\"DOMContentLoaded\",completed);window.removeEventListener(\"load\",completed);jQuery.ready();}\nif(document.readyState===\"complete\"||(document.readyState!==\"loading\"&&!document.documentElement.doScroll)){window.setTimeout(jQuery.ready);}else{document.addEventListener(\"DOMContentLoaded\",completed);window.addEventListener(\"load\",completed);}\nvar access=function(elems,fn,key,value,chainable,emptyGet,raw){var i=0,len=elems.length,bulk=key==null;if(toType(key)===\"object\"){chainable=true;for(i in key){access(elems,fn,i,key[i],true,emptyGet,raw);}}else if(value!==undefined){chainable=true;if(!isFunction(value)){raw=true;}\nif(bulk){if(raw){fn.call(elems,value);fn=null;}else{bulk=fn;fn=function(elem,_key,value){return bulk.call(jQuery(elem),value);};}}\nif(fn){for(;i<len;i++){fn(elems[i],key,raw?value:value.call(elems[i],i,fn(elems[i],key)));}}}\nif(chainable){return elems;}\nif(bulk){return fn.call(elems);}\nreturn len?fn(elems[0],key):emptyGet;};var rmsPrefix=/^-ms-/,rdashAlpha=/-([a-z])/g;function fcamelCase(_all,letter){return letter.toUpperCase();}\nfunction camelCase(string){return string.replace(rmsPrefix,\"ms-\").replace(rdashAlpha,fcamelCase);}\nvar acceptData=function(owner){return owner.nodeType===1||owner.nodeType===9||!(+owner.nodeType);};function Data(){this.expando=jQuery.expando+Data.uid++;}\nData.uid=1;Data.prototype={cache:function(owner){var value=owner[this.expando];if(!value){value={};if(acceptData(owner)){if(owner.nodeType){owner[this.expando]=value;}else{Object.defineProperty(owner,this.expando,{value:value,configurable:true});}}}\nreturn value;},set:function(owner,data,value){var prop,cache=this.cache(owner);if(typeof data===\"string\"){cache[camelCase(data)]=value;}else{for(prop in data){cache[camelCase(prop)]=data[prop];}}\nreturn cache;},get:function(owner,key){return key===undefined?this.cache(owner):owner[this.expando]&&owner[this.expando][camelCase(key)];},access:function(owner,key,value){if(key===undefined||((key&&typeof key===\"string\")&&value===undefined)){return this.get(owner,key);}\nthis.set(owner,key,value);return value!==undefined?value:key;},remove:function(owner,key){var i,cache=owner[this.expando];if(cache===undefined){return;}\nif(key!==undefined){if(Array.isArray(key)){key=key.map(camelCase);}else{key=camelCase(key);key=key in cache?[key]:(key.match(rnothtmlwhite)||[]);}\ni=key.length;while(i--){delete cache[key[i]];}}\nif(key===undefined||jQuery.isEmptyObject(cache)){if(owner.nodeType){owner[this.expando]=undefined;}else{delete owner[this.expando];}}},hasData:function(owner){var cache=owner[this.expando];return cache!==undefined&&!jQuery.isEmptyObject(cache);}};var dataPriv=new Data();var dataUser=new Data();var rbrace=/^(?:\\{[\\w\\W]*\\}|\\[[\\w\\W]*\\])$/,rmultiDash=/[A-Z]/g;function getData(data){if(data===\"true\"){return true;}\nif(data===\"false\"){return false;}\nif(data===\"null\"){return null;}\nif(data===+data+\"\"){return+data;}\nif(rbrace.test(data)){return JSON.parse(data);}\nreturn data;}\nfunction dataAttr(elem,key,data){var name;if(data===undefined&&elem.nodeType===1){name=\"data-\"+key.replace(rmultiDash,\"-$&\").toLowerCase();data=elem.getAttribute(name);if(typeof data===\"string\"){try{data=getData(data);}catch(e){}\ndataUser.set(elem,key,data);}else{data=undefined;}}\nreturn data;}\njQuery.extend({hasData:function(elem){return dataUser.hasData(elem)||dataPriv.hasData(elem);},data:function(elem,name,data){return dataUser.access(elem,name,data);},removeData:function(elem,name){dataUser.remove(elem,name);},_data:function(elem,name,data){return dataPriv.access(elem,name,data);},_removeData:function(elem,name){dataPriv.remove(elem,name);}});jQuery.fn.extend({data:function(key,value){var i,name,data,elem=this[0],attrs=elem&&elem.attributes;if(key===undefined){if(this.length){data=dataUser.get(elem);if(elem.nodeType===1&&!dataPriv.get(elem,\"hasDataAttrs\")){i=attrs.length;while(i--){if(attrs[i]){name=attrs[i].name;if(name.indexOf(\"data-\")===0){name=camelCase(name.slice(5));dataAttr(elem,name,data[name]);}}}\ndataPriv.set(elem,\"hasDataAttrs\",true);}}\nreturn data;}\nif(typeof key===\"object\"){return this.each(function(){dataUser.set(this,key);});}\nreturn access(this,function(value){var data;if(elem&&value===undefined){data=dataUser.get(elem,key);if(data!==undefined){return data;}\ndata=dataAttr(elem,key);if(data!==undefined){return data;}\nreturn;}\nthis.each(function(){dataUser.set(this,key,value);});},null,value,arguments.length>1,null,true);},removeData:function(key){return this.each(function(){dataUser.remove(this,key);});}});jQuery.extend({queue:function(elem,type,data){var queue;if(elem){type=(type||\"fx\")+\"queue\";queue=dataPriv.get(elem,type);if(data){if(!queue||Array.isArray(data)){queue=dataPriv.access(elem,type,jQuery.makeArray(data));}else{queue.push(data);}}\nreturn queue||[];}},dequeue:function(elem,type){type=type||\"fx\";var queue=jQuery.queue(elem,type),startLength=queue.length,fn=queue.shift(),hooks=jQuery._queueHooks(elem,type),next=function(){jQuery.dequeue(elem,type);};if(fn===\"inprogress\"){fn=queue.shift();startLength--;}\nif(fn){if(type===\"fx\"){queue.unshift(\"inprogress\");}\ndelete hooks.stop;fn.call(elem,next,hooks);}\nif(!startLength&&hooks){hooks.empty.fire();}},_queueHooks:function(elem,type){var key=type+\"queueHooks\";return dataPriv.get(elem,key)||dataPriv.access(elem,key,{empty:jQuery.Callbacks(\"once memory\").add(function(){dataPriv.remove(elem,[type+\"queue\",key]);})});}});jQuery.fn.extend({queue:function(type,data){var setter=2;if(typeof type!==\"string\"){data=type;type=\"fx\";setter--;}\nif(arguments.length<setter){return jQuery.queue(this[0],type);}\nreturn data===undefined?this:this.each(function(){var queue=jQuery.queue(this,type,data);jQuery._queueHooks(this,type);if(type===\"fx\"&&queue[0]!==\"inprogress\"){jQuery.dequeue(this,type);}});},dequeue:function(type){return this.each(function(){jQuery.dequeue(this,type);});},clearQueue:function(type){return this.queue(type||\"fx\",[]);},promise:function(type,obj){var tmp,count=1,defer=jQuery.Deferred(),elements=this,i=this.length,resolve=function(){if(!(--count)){defer.resolveWith(elements,[elements]);}};if(typeof type!==\"string\"){obj=type;type=undefined;}\ntype=type||\"fx\";while(i--){tmp=dataPriv.get(elements[i],type+\"queueHooks\");if(tmp&&tmp.empty){count++;tmp.empty.add(resolve);}}\nresolve();return defer.promise(obj);}});var pnum=(/[+-]?(?:\\d*\\.|)\\d+(?:[eE][+-]?\\d+|)/).source;var rcssNum=new RegExp(\"^(?:([+-])=|)(\"+pnum+\")([a-z%]*)$\",\"i\");var cssExpand=[\"Top\",\"Right\",\"Bottom\",\"Left\"];var documentElement=document.documentElement;var isAttached=function(elem){return jQuery.contains(elem.ownerDocument,elem);},composed={composed:true};if(documentElement.getRootNode){isAttached=function(elem){return jQuery.contains(elem.ownerDocument,elem)||elem.getRootNode(composed)===elem.ownerDocument;};}\nvar isHiddenWithinTree=function(elem,el){elem=el||elem;return elem.style.display===\"none\"||elem.style.display===\"\"&&isAttached(elem)&&jQuery.css(elem,\"display\")===\"none\";};function adjustCSS(elem,prop,valueParts,tween){var adjusted,scale,maxIterations=20,currentValue=tween?function(){return tween.cur();}:function(){return jQuery.css(elem,prop,\"\");},initial=currentValue(),unit=valueParts&&valueParts[3]||(jQuery.cssNumber[prop]?\"\":\"px\"),initialInUnit=elem.nodeType&&(jQuery.cssNumber[prop]||unit!==\"px\"&&+initial)&&rcssNum.exec(jQuery.css(elem,prop));if(initialInUnit&&initialInUnit[3]!==unit){initial=initial / 2;unit=unit||initialInUnit[3];initialInUnit=+initial||1;while(maxIterations--){jQuery.style(elem,prop,initialInUnit+unit);if((1-scale)*(1-(scale=currentValue()/ initial||0.5))<=0){maxIterations=0;}\ninitialInUnit=initialInUnit / scale;}\ninitialInUnit=initialInUnit*2;jQuery.style(elem,prop,initialInUnit+unit);valueParts=valueParts||[];}\nif(valueParts){initialInUnit=+initialInUnit||+initial||0;adjusted=valueParts[1]?initialInUnit+(valueParts[1]+1)*valueParts[2]:+valueParts[2];if(tween){tween.unit=unit;tween.start=initialInUnit;tween.end=adjusted;}}\nreturn adjusted;}\nvar defaultDisplayMap={};function getDefaultDisplay(elem){var temp,doc=elem.ownerDocument,nodeName=elem.nodeName,display=defaultDisplayMap[nodeName];if(display){return display;}\ntemp=doc.body.appendChild(doc.createElement(nodeName));display=jQuery.css(temp,\"display\");temp.parentNode.removeChild(temp);if(display===\"none\"){display=\"block\";}\ndefaultDisplayMap[nodeName]=display;return display;}\nfunction showHide(elements,show){var display,elem,values=[],index=0,length=elements.length;for(;index<length;index++){elem=elements[index];if(!elem.style){continue;}\ndisplay=elem.style.display;if(show){if(display===\"none\"){values[index]=dataPriv.get(elem,\"display\")||null;if(!values[index]){elem.style.display=\"\";}}\nif(elem.style.display===\"\"&&isHiddenWithinTree(elem)){values[index]=getDefaultDisplay(elem);}}else{if(display!==\"none\"){values[index]=\"none\";dataPriv.set(elem,\"display\",display);}}}\nfor(index=0;index<length;index++){if(values[index]!=null){elements[index].style.display=values[index];}}\nreturn elements;}\njQuery.fn.extend({show:function(){return showHide(this,true);},hide:function(){return showHide(this);},toggle:function(state){if(typeof state===\"boolean\"){return state?this.show():this.hide();}\nreturn this.each(function(){if(isHiddenWithinTree(this)){jQuery(this).show();}else{jQuery(this).hide();}});}});var rcheckableType=(/^(?:checkbox|radio)$/i);var rtagName=(/<([a-z][^\\/\\0>\\x20\\t\\r\\n\\f]*)/i);var rscriptType=(/^$|^module$|\\/(?:java|ecma)script/i);(function(){var fragment=document.createDocumentFragment(),div=fragment.appendChild(document.createElement(\"div\")),input=document.createElement(\"input\");input.setAttribute(\"type\",\"radio\");input.setAttribute(\"checked\",\"checked\");input.setAttribute(\"name\",\"t\");div.appendChild(input);support.checkClone=div.cloneNode(true).cloneNode(true).lastChild.checked;div.innerHTML=\"<textarea>x</textarea>\";support.noCloneChecked=!!div.cloneNode(true).lastChild.defaultValue;div.innerHTML=\"<option></option>\";support.option=!!div.lastChild;})();var wrapMap={thead:[1,\"<table>\",\"</table>\"],col:[2,\"<table><colgroup>\",\"</colgroup></table>\"],tr:[2,\"<table><tbody>\",\"</tbody></table>\"],td:[3,\"<table><tbody><tr>\",\"</tr></tbody></table>\"],_default:[0,\"\",\"\"]};wrapMap.tbody=wrapMap.tfoot=wrapMap.colgroup=wrapMap.caption=wrapMap.thead;wrapMap.th=wrapMap.td;if(!support.option){wrapMap.optgroup=wrapMap.option=[1,\"<select multiple='multiple'>\",\"</select>\"];}\nfunction getAll(context,tag){var ret;if(typeof context.getElementsByTagName!==\"undefined\"){ret=context.getElementsByTagName(tag||\"*\");}else if(typeof context.querySelectorAll!==\"undefined\"){ret=context.querySelectorAll(tag||\"*\");}else{ret=[];}\nif(tag===undefined||tag&&nodeName(context,tag)){return jQuery.merge([context],ret);}\nreturn ret;}\nfunction setGlobalEval(elems,refElements){var i=0,l=elems.length;for(;i<l;i++){dataPriv.set(elems[i],\"globalEval\",!refElements||dataPriv.get(refElements[i],\"globalEval\"));}}\nvar rhtml=/<|&#?\\w+;/;function buildFragment(elems,context,scripts,selection,ignored){var elem,tmp,tag,wrap,attached,j,fragment=context.createDocumentFragment(),nodes=[],i=0,l=elems.length;for(;i<l;i++){elem=elems[i];if(elem||elem===0){if(toType(elem)===\"object\"){jQuery.merge(nodes,elem.nodeType?[elem]:elem);}else if(!rhtml.test(elem)){nodes.push(context.createTextNode(elem));}else{tmp=tmp||fragment.appendChild(context.createElement(\"div\"));tag=(rtagName.exec(elem)||[\"\",\"\"])[1].toLowerCase();wrap=wrapMap[tag]||wrapMap._default;tmp.innerHTML=wrap[1]+jQuery.htmlPrefilter(elem)+wrap[2];j=wrap[0];while(j--){tmp=tmp.lastChild;}\njQuery.merge(nodes,tmp.childNodes);tmp=fragment.firstChild;tmp.textContent=\"\";}}}\nfragment.textContent=\"\";i=0;while((elem=nodes[i++])){if(selection&&jQuery.inArray(elem,selection)>-1){if(ignored){ignored.push(elem);}\ncontinue;}\nattached=isAttached(elem);tmp=getAll(fragment.appendChild(elem),\"script\");if(attached){setGlobalEval(tmp);}\nif(scripts){j=0;while((elem=tmp[j++])){if(rscriptType.test(elem.type||\"\")){scripts.push(elem);}}}}\nreturn fragment;}\nvar rtypenamespace=/^([^.]*)(?:\\.(.+)|)/;function returnTrue(){return true;}\nfunction returnFalse(){return false;}\nfunction expectSync(elem,type){return(elem===safeActiveElement())===(type===\"focus\");}\nfunction safeActiveElement(){try{return document.activeElement;}catch(err){}}\nfunction on(elem,types,selector,data,fn,one){var origFn,type;if(typeof types===\"object\"){if(typeof selector!==\"string\"){data=data||selector;selector=undefined;}\nfor(type in types){on(elem,type,selector,data,types[type],one);}\nreturn elem;}\nif(data==null&&fn==null){fn=selector;data=selector=undefined;}else if(fn==null){if(typeof selector===\"string\"){fn=data;data=undefined;}else{fn=data;data=selector;selector=undefined;}}\nif(fn===false){fn=returnFalse;}else if(!fn){return elem;}\nif(one===1){origFn=fn;fn=function(event){jQuery().off(event);return origFn.apply(this,arguments);};fn.guid=origFn.guid||(origFn.guid=jQuery.guid++);}\nreturn elem.each(function(){jQuery.event.add(this,types,fn,data,selector);});}\njQuery.event={global:{},add:function(elem,types,handler,data,selector){var handleObjIn,eventHandle,tmp,events,t,handleObj,special,handlers,type,namespaces,origType,elemData=dataPriv.get(elem);if(!acceptData(elem)){return;}\nif(handler.handler){handleObjIn=handler;handler=handleObjIn.handler;selector=handleObjIn.selector;}\nif(selector){jQuery.find.matchesSelector(documentElement,selector);}\nif(!handler.guid){handler.guid=jQuery.guid++;}\nif(!(events=elemData.events)){events=elemData.events=Object.create(null);}\nif(!(eventHandle=elemData.handle)){eventHandle=elemData.handle=function(e){return typeof jQuery!==\"undefined\"&&jQuery.event.triggered!==e.type?jQuery.event.dispatch.apply(elem,arguments):undefined;};}\ntypes=(types||\"\").match(rnothtmlwhite)||[\"\"];t=types.length;while(t--){tmp=rtypenamespace.exec(types[t])||[];type=origType=tmp[1];namespaces=(tmp[2]||\"\").split(\".\").sort();if(!type){continue;}\nspecial=jQuery.event.special[type]||{};type=(selector?special.delegateType:special.bindType)||type;special=jQuery.event.special[type]||{};handleObj=jQuery.extend({type:type,origType:origType,data:data,handler:handler,guid:handler.guid,selector:selector,needsContext:selector&&jQuery.expr.match.needsContext.test(selector),namespace:namespaces.join(\".\")},handleObjIn);if(!(handlers=events[type])){handlers=events[type]=[];handlers.delegateCount=0;if(!special.setup||special.setup.call(elem,data,namespaces,eventHandle)===false){if(elem.addEventListener){elem.addEventListener(type,eventHandle);}}}\nif(special.add){special.add.call(elem,handleObj);if(!handleObj.handler.guid){handleObj.handler.guid=handler.guid;}}\nif(selector){handlers.splice(handlers.delegateCount++,0,handleObj);}else{handlers.push(handleObj);}\njQuery.event.global[type]=true;}},remove:function(elem,types,handler,selector,mappedTypes){var j,origCount,tmp,events,t,handleObj,special,handlers,type,namespaces,origType,elemData=dataPriv.hasData(elem)&&dataPriv.get(elem);if(!elemData||!(events=elemData.events)){return;}\ntypes=(types||\"\").match(rnothtmlwhite)||[\"\"];t=types.length;while(t--){tmp=rtypenamespace.exec(types[t])||[];type=origType=tmp[1];namespaces=(tmp[2]||\"\").split(\".\").sort();if(!type){for(type in events){jQuery.event.remove(elem,type+types[t],handler,selector,true);}\ncontinue;}\nspecial=jQuery.event.special[type]||{};type=(selector?special.delegateType:special.bindType)||type;handlers=events[type]||[];tmp=tmp[2]&&new RegExp(\"(^|\\\\.)\"+namespaces.join(\"\\\\.(?:.*\\\\.|)\")+\"(\\\\.|$)\");origCount=j=handlers.length;while(j--){handleObj=handlers[j];if((mappedTypes||origType===handleObj.origType)&&(!handler||handler.guid===handleObj.guid)&&(!tmp||tmp.test(handleObj.namespace))&&(!selector||selector===handleObj.selector||selector===\"**\"&&handleObj.selector)){handlers.splice(j,1);if(handleObj.selector){handlers.delegateCount--;}\nif(special.remove){special.remove.call(elem,handleObj);}}}\nif(origCount&&!handlers.length){if(!special.teardown||special.teardown.call(elem,namespaces,elemData.handle)===false){jQuery.removeEvent(elem,type,elemData.handle);}\ndelete events[type];}}\nif(jQuery.isEmptyObject(events)){dataPriv.remove(elem,\"handle events\");}},dispatch:function(nativeEvent){var i,j,ret,matched,handleObj,handlerQueue,args=new Array(arguments.length),event=jQuery.event.fix(nativeEvent),handlers=(dataPriv.get(this,\"events\")||Object.create(null))[event.type]||[],special=jQuery.event.special[event.type]||{};args[0]=event;for(i=1;i<arguments.length;i++){args[i]=arguments[i];}\nevent.delegateTarget=this;if(special.preDispatch&&special.preDispatch.call(this,event)===false){return;}\nhandlerQueue=jQuery.event.handlers.call(this,event,handlers);i=0;while((matched=handlerQueue[i++])&&!event.isPropagationStopped()){event.currentTarget=matched.elem;j=0;while((handleObj=matched.handlers[j++])&&!event.isImmediatePropagationStopped()){if(!event.rnamespace||handleObj.namespace===false||event.rnamespace.test(handleObj.namespace)){event.handleObj=handleObj;event.data=handleObj.data;ret=((jQuery.event.special[handleObj.origType]||{}).handle||handleObj.handler).apply(matched.elem,args);if(ret!==undefined){if((event.result=ret)===false){event.preventDefault();event.stopPropagation();}}}}}\nif(special.postDispatch){special.postDispatch.call(this,event);}\nreturn event.result;},handlers:function(event,handlers){var i,handleObj,sel,matchedHandlers,matchedSelectors,handlerQueue=[],delegateCount=handlers.delegateCount,cur=event.target;if(delegateCount&&cur.nodeType&&!(event.type===\"click\"&&event.button>=1)){for(;cur!==this;cur=cur.parentNode||this){if(cur.nodeType===1&&!(event.type===\"click\"&&cur.disabled===true)){matchedHandlers=[];matchedSelectors={};for(i=0;i<delegateCount;i++){handleObj=handlers[i];sel=handleObj.selector+\" \";if(matchedSelectors[sel]===undefined){matchedSelectors[sel]=handleObj.needsContext?jQuery(sel,this).index(cur)>-1:jQuery.find(sel,this,null,[cur]).length;}\nif(matchedSelectors[sel]){matchedHandlers.push(handleObj);}}\nif(matchedHandlers.length){handlerQueue.push({elem:cur,handlers:matchedHandlers});}}}}\ncur=this;if(delegateCount<handlers.length){handlerQueue.push({elem:cur,handlers:handlers.slice(delegateCount)});}\nreturn handlerQueue;},addProp:function(name,hook){Object.defineProperty(jQuery.Event.prototype,name,{enumerable:true,configurable:true,get:isFunction(hook)?function(){if(this.originalEvent){return hook(this.originalEvent);}}:function(){if(this.originalEvent){return this.originalEvent[name];}},set:function(value){Object.defineProperty(this,name,{enumerable:true,configurable:true,writable:true,value:value});}});},fix:function(originalEvent){return originalEvent[jQuery.expando]?originalEvent:new jQuery.Event(originalEvent);},special:{load:{noBubble:true},click:{setup:function(data){var el=this||data;if(rcheckableType.test(el.type)&&el.click&&nodeName(el,\"input\")){leverageNative(el,\"click\",returnTrue);}\nreturn false;},trigger:function(data){var el=this||data;if(rcheckableType.test(el.type)&&el.click&&nodeName(el,\"input\")){leverageNative(el,\"click\");}\nreturn true;},_default:function(event){var target=event.target;return rcheckableType.test(target.type)&&target.click&&nodeName(target,\"input\")&&dataPriv.get(target,\"click\")||nodeName(target,\"a\");}},beforeunload:{postDispatch:function(event){if(event.result!==undefined&&event.originalEvent){event.originalEvent.returnValue=event.result;}}}}};function leverageNative(el,type,expectSync){if(!expectSync){if(dataPriv.get(el,type)===undefined){jQuery.event.add(el,type,returnTrue);}\nreturn;}\ndataPriv.set(el,type,false);jQuery.event.add(el,type,{namespace:false,handler:function(event){var notAsync,result,saved=dataPriv.get(this,type);if((event.isTrigger&1)&&this[type]){if(!saved.length){saved=slice.call(arguments);dataPriv.set(this,type,saved);notAsync=expectSync(this,type);this[type]();result=dataPriv.get(this,type);if(saved!==result||notAsync){dataPriv.set(this,type,false);}else{result={};}\nif(saved!==result){event.stopImmediatePropagation();event.preventDefault();return result&&result.value;}}else if((jQuery.event.special[type]||{}).delegateType){event.stopPropagation();}}else if(saved.length){dataPriv.set(this,type,{value:jQuery.event.trigger(jQuery.extend(saved[0],jQuery.Event.prototype),saved.slice(1),this)});event.stopImmediatePropagation();}}});}\njQuery.removeEvent=function(elem,type,handle){if(elem.removeEventListener){elem.removeEventListener(type,handle);}};jQuery.Event=function(src,props){if(!(this instanceof jQuery.Event)){return new jQuery.Event(src,props);}\nif(src&&src.type){this.originalEvent=src;this.type=src.type;this.isDefaultPrevented=src.defaultPrevented||src.defaultPrevented===undefined&&src.returnValue===false?returnTrue:returnFalse;this.target=(src.target&&src.target.nodeType===3)?src.target.parentNode:src.target;this.currentTarget=src.currentTarget;this.relatedTarget=src.relatedTarget;}else{this.type=src;}\nif(props){jQuery.extend(this,props);}\nthis.timeStamp=src&&src.timeStamp||Date.now();this[jQuery.expando]=true;};jQuery.Event.prototype={constructor:jQuery.Event,isDefaultPrevented:returnFalse,isPropagationStopped:returnFalse,isImmediatePropagationStopped:returnFalse,isSimulated:false,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=returnTrue;if(e&&!this.isSimulated){e.preventDefault();}},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=returnTrue;if(e&&!this.isSimulated){e.stopPropagation();}},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=returnTrue;if(e&&!this.isSimulated){e.stopImmediatePropagation();}\nthis.stopPropagation();}};jQuery.each({altKey:true,bubbles:true,cancelable:true,changedTouches:true,ctrlKey:true,detail:true,eventPhase:true,metaKey:true,pageX:true,pageY:true,shiftKey:true,view:true,\"char\":true,code:true,charCode:true,key:true,keyCode:true,button:true,buttons:true,clientX:true,clientY:true,offsetX:true,offsetY:true,pointerId:true,pointerType:true,screenX:true,screenY:true,targetTouches:true,toElement:true,touches:true,which:true},jQuery.event.addProp);jQuery.each({focus:\"focusin\",blur:\"focusout\"},function(type,delegateType){jQuery.event.special[type]={setup:function(){leverageNative(this,type,expectSync);return false;},trigger:function(){leverageNative(this,type);return true;},_default:function(){return true;},delegateType:delegateType};});jQuery.each({mouseenter:\"mouseover\",mouseleave:\"mouseout\",pointerenter:\"pointerover\",pointerleave:\"pointerout\"},function(orig,fix){jQuery.event.special[orig]={delegateType:fix,bindType:fix,handle:function(event){var ret,target=this,related=event.relatedTarget,handleObj=event.handleObj;if(!related||(related!==target&&!jQuery.contains(target,related))){event.type=handleObj.origType;ret=handleObj.handler.apply(this,arguments);event.type=fix;}\nreturn ret;}};});jQuery.fn.extend({on:function(types,selector,data,fn){return on(this,types,selector,data,fn);},one:function(types,selector,data,fn){return on(this,types,selector,data,fn,1);},off:function(types,selector,fn){var handleObj,type;if(types&&types.preventDefault&&types.handleObj){handleObj=types.handleObj;jQuery(types.delegateTarget).off(handleObj.namespace?handleObj.origType+\".\"+handleObj.namespace:handleObj.origType,handleObj.selector,handleObj.handler);return this;}\nif(typeof types===\"object\"){for(type in types){this.off(type,selector,types[type]);}\nreturn this;}\nif(selector===false||typeof selector===\"function\"){fn=selector;selector=undefined;}\nif(fn===false){fn=returnFalse;}\nreturn this.each(function(){jQuery.event.remove(this,types,fn,selector);});}});var\nrnoInnerhtml=/<script|<style|<link/i,rchecked=/checked\\s*(?:[^=]|=\\s*.checked.)/i,rcleanScript=/^\\s*<!(?:\\[CDATA\\[|--)|(?:\\]\\]|--)>\\s*$/g;function manipulationTarget(elem,content){if(nodeName(elem,\"table\")&&nodeName(content.nodeType!==11?content:content.firstChild,\"tr\")){return jQuery(elem).children(\"tbody\")[0]||elem;}\nreturn elem;}\nfunction disableScript(elem){elem.type=(elem.getAttribute(\"type\")!==null)+\"/\"+elem.type;return elem;}\nfunction restoreScript(elem){if((elem.type||\"\").slice(0,5)===\"true/\"){elem.type=elem.type.slice(5);}else{elem.removeAttribute(\"type\");}\nreturn elem;}\nfunction cloneCopyEvent(src,dest){var i,l,type,pdataOld,udataOld,udataCur,events;if(dest.nodeType!==1){return;}\nif(dataPriv.hasData(src)){pdataOld=dataPriv.get(src);events=pdataOld.events;if(events){dataPriv.remove(dest,\"handle events\");for(type in events){for(i=0,l=events[type].length;i<l;i++){jQuery.event.add(dest,type,events[type][i]);}}}}\nif(dataUser.hasData(src)){udataOld=dataUser.access(src);udataCur=jQuery.extend({},udataOld);dataUser.set(dest,udataCur);}}\nfunction fixInput(src,dest){var nodeName=dest.nodeName.toLowerCase();if(nodeName===\"input\"&&rcheckableType.test(src.type)){dest.checked=src.checked;}else if(nodeName===\"input\"||nodeName===\"textarea\"){dest.defaultValue=src.defaultValue;}}\nfunction domManip(collection,args,callback,ignored){args=flat(args);var fragment,first,scripts,hasScripts,node,doc,i=0,l=collection.length,iNoClone=l-1,value=args[0],valueIsFunction=isFunction(value);if(valueIsFunction||(l>1&&typeof value===\"string\"&&!support.checkClone&&rchecked.test(value))){return collection.each(function(index){var self=collection.eq(index);if(valueIsFunction){args[0]=value.call(this,index,self.html());}\ndomManip(self,args,callback,ignored);});}\nif(l){fragment=buildFragment(args,collection[0].ownerDocument,false,collection,ignored);first=fragment.firstChild;if(fragment.childNodes.length===1){fragment=first;}\nif(first||ignored){scripts=jQuery.map(getAll(fragment,\"script\"),disableScript);hasScripts=scripts.length;for(;i<l;i++){node=fragment;if(i!==iNoClone){node=jQuery.clone(node,true,true);if(hasScripts){jQuery.merge(scripts,getAll(node,\"script\"));}}\ncallback.call(collection[i],node,i);}\nif(hasScripts){doc=scripts[scripts.length-1].ownerDocument;jQuery.map(scripts,restoreScript);for(i=0;i<hasScripts;i++){node=scripts[i];if(rscriptType.test(node.type||\"\")&&!dataPriv.access(node,\"globalEval\")&&jQuery.contains(doc,node)){if(node.src&&(node.type||\"\").toLowerCase()!==\"module\"){if(jQuery._evalUrl&&!node.noModule){jQuery._evalUrl(node.src,{nonce:node.nonce||node.getAttribute(\"nonce\")},doc);}}else{DOMEval(node.textContent.replace(rcleanScript,\"\"),node,doc);}}}}}}\nreturn collection;}\nfunction remove(elem,selector,keepData){var node,nodes=selector?jQuery.filter(selector,elem):elem,i=0;for(;(node=nodes[i])!=null;i++){if(!keepData&&node.nodeType===1){jQuery.cleanData(getAll(node));}\nif(node.parentNode){if(keepData&&isAttached(node)){setGlobalEval(getAll(node,\"script\"));}\nnode.parentNode.removeChild(node);}}\nreturn elem;}\njQuery.extend({htmlPrefilter:function(html){return html;},clone:function(elem,dataAndEvents,deepDataAndEvents){var i,l,srcElements,destElements,clone=elem.cloneNode(true),inPage=isAttached(elem);if(!support.noCloneChecked&&(elem.nodeType===1||elem.nodeType===11)&&!jQuery.isXMLDoc(elem)){destElements=getAll(clone);srcElements=getAll(elem);for(i=0,l=srcElements.length;i<l;i++){fixInput(srcElements[i],destElements[i]);}}\nif(dataAndEvents){if(deepDataAndEvents){srcElements=srcElements||getAll(elem);destElements=destElements||getAll(clone);for(i=0,l=srcElements.length;i<l;i++){cloneCopyEvent(srcElements[i],destElements[i]);}}else{cloneCopyEvent(elem,clone);}}\ndestElements=getAll(clone,\"script\");if(destElements.length>0){setGlobalEval(destElements,!inPage&&getAll(elem,\"script\"));}\nreturn clone;},cleanData:function(elems){var data,elem,type,special=jQuery.event.special,i=0;for(;(elem=elems[i])!==undefined;i++){if(acceptData(elem)){if((data=elem[dataPriv.expando])){if(data.events){for(type in data.events){if(special[type]){jQuery.event.remove(elem,type);}else{jQuery.removeEvent(elem,type,data.handle);}}}\nelem[dataPriv.expando]=undefined;}\nif(elem[dataUser.expando]){elem[dataUser.expando]=undefined;}}}}});jQuery.fn.extend({detach:function(selector){return remove(this,selector,true);},remove:function(selector){return remove(this,selector);},text:function(value){return access(this,function(value){return value===undefined?jQuery.text(this):this.empty().each(function(){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){this.textContent=value;}});},null,value,arguments.length);},append:function(){return domManip(this,arguments,function(elem){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var target=manipulationTarget(this,elem);target.appendChild(elem);}});},prepend:function(){return domManip(this,arguments,function(elem){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var target=manipulationTarget(this,elem);target.insertBefore(elem,target.firstChild);}});},before:function(){return domManip(this,arguments,function(elem){if(this.parentNode){this.parentNode.insertBefore(elem,this);}});},after:function(){return domManip(this,arguments,function(elem){if(this.parentNode){this.parentNode.insertBefore(elem,this.nextSibling);}});},empty:function(){var elem,i=0;for(;(elem=this[i])!=null;i++){if(elem.nodeType===1){jQuery.cleanData(getAll(elem,false));elem.textContent=\"\";}}\nreturn this;},clone:function(dataAndEvents,deepDataAndEvents){dataAndEvents=dataAndEvents==null?false:dataAndEvents;deepDataAndEvents=deepDataAndEvents==null?dataAndEvents:deepDataAndEvents;return this.map(function(){return jQuery.clone(this,dataAndEvents,deepDataAndEvents);});},html:function(value){return access(this,function(value){var elem=this[0]||{},i=0,l=this.length;if(value===undefined&&elem.nodeType===1){return elem.innerHTML;}\nif(typeof value===\"string\"&&!rnoInnerhtml.test(value)&&!wrapMap[(rtagName.exec(value)||[\"\",\"\"])[1].toLowerCase()]){value=jQuery.htmlPrefilter(value);try{for(;i<l;i++){elem=this[i]||{};if(elem.nodeType===1){jQuery.cleanData(getAll(elem,false));elem.innerHTML=value;}}\nelem=0;}catch(e){}}\nif(elem){this.empty().append(value);}},null,value,arguments.length);},replaceWith:function(){var ignored=[];return domManip(this,arguments,function(elem){var parent=this.parentNode;if(jQuery.inArray(this,ignored)<0){jQuery.cleanData(getAll(this));if(parent){parent.replaceChild(elem,this);}}},ignored);}});jQuery.each({appendTo:\"append\",prependTo:\"prepend\",insertBefore:\"before\",insertAfter:\"after\",replaceAll:\"replaceWith\"},function(name,original){jQuery.fn[name]=function(selector){var elems,ret=[],insert=jQuery(selector),last=insert.length-1,i=0;for(;i<=last;i++){elems=i===last?this:this.clone(true);jQuery(insert[i])[original](elems);push.apply(ret,elems.get());}\nreturn this.pushStack(ret);};});var rnumnonpx=new RegExp(\"^(\"+pnum+\")(?!px)[a-z%]+$\",\"i\");var getStyles=function(elem){var view=elem.ownerDocument.defaultView;if(!view||!view.opener){view=window;}\nreturn view.getComputedStyle(elem);};var swap=function(elem,options,callback){var ret,name,old={};for(name in options){old[name]=elem.style[name];elem.style[name]=options[name];}\nret=callback.call(elem);for(name in options){elem.style[name]=old[name];}\nreturn ret;};var rboxStyle=new RegExp(cssExpand.join(\"|\"),\"i\");(function(){function computeStyleTests(){if(!div){return;}\ncontainer.style.cssText=\"position:absolute;left:-11111px;width:60px;\"+\"margin-top:1px;padding:0;border:0\";div.style.cssText=\"position:relative;display:block;box-sizing:border-box;overflow:scroll;\"+\"margin:auto;border:1px;padding:1px;\"+\"width:60%;top:1%\";documentElement.appendChild(container).appendChild(div);var divStyle=window.getComputedStyle(div);pixelPositionVal=divStyle.top!==\"1%\";reliableMarginLeftVal=roundPixelMeasures(divStyle.marginLeft)===12;div.style.right=\"60%\";pixelBoxStylesVal=roundPixelMeasures(divStyle.right)===36;boxSizingReliableVal=roundPixelMeasures(divStyle.width)===36;div.style.position=\"absolute\";scrollboxSizeVal=roundPixelMeasures(div.offsetWidth / 3)===12;documentElement.removeChild(container);div=null;}\nfunction roundPixelMeasures(measure){return Math.round(parseFloat(measure));}\nvar pixelPositionVal,boxSizingReliableVal,scrollboxSizeVal,pixelBoxStylesVal,reliableTrDimensionsVal,reliableMarginLeftVal,container=document.createElement(\"div\"),div=document.createElement(\"div\");if(!div.style){return;}\ndiv.style.backgroundClip=\"content-box\";div.cloneNode(true).style.backgroundClip=\"\";support.clearCloneStyle=div.style.backgroundClip===\"content-box\";jQuery.extend(support,{boxSizingReliable:function(){computeStyleTests();return boxSizingReliableVal;},pixelBoxStyles:function(){computeStyleTests();return pixelBoxStylesVal;},pixelPosition:function(){computeStyleTests();return pixelPositionVal;},reliableMarginLeft:function(){computeStyleTests();return reliableMarginLeftVal;},scrollboxSize:function(){computeStyleTests();return scrollboxSizeVal;},reliableTrDimensions:function(){var table,tr,trChild,trStyle;if(reliableTrDimensionsVal==null){table=document.createElement(\"table\");tr=document.createElement(\"tr\");trChild=document.createElement(\"div\");table.style.cssText=\"position:absolute;left:-11111px;border-collapse:separate\";tr.style.cssText=\"border:1px solid\";tr.style.height=\"1px\";trChild.style.height=\"9px\";trChild.style.display=\"block\";documentElement.appendChild(table).appendChild(tr).appendChild(trChild);trStyle=window.getComputedStyle(tr);reliableTrDimensionsVal=(parseInt(trStyle.height,10)+\nparseInt(trStyle.borderTopWidth,10)+\nparseInt(trStyle.borderBottomWidth,10))===tr.offsetHeight;documentElement.removeChild(table);}\nreturn reliableTrDimensionsVal;}});})();function curCSS(elem,name,computed){var width,minWidth,maxWidth,ret,style=elem.style;computed=computed||getStyles(elem);if(computed){ret=computed.getPropertyValue(name)||computed[name];if(ret===\"\"&&!isAttached(elem)){ret=jQuery.style(elem,name);}\nif(!support.pixelBoxStyles()&&rnumnonpx.test(ret)&&rboxStyle.test(name)){width=style.width;minWidth=style.minWidth;maxWidth=style.maxWidth;style.minWidth=style.maxWidth=style.width=ret;ret=computed.width;style.width=width;style.minWidth=minWidth;style.maxWidth=maxWidth;}}\nreturn ret!==undefined?ret+\"\":ret;}\nfunction addGetHookIf(conditionFn,hookFn){return{get:function(){if(conditionFn()){delete this.get;return;}\nreturn(this.get=hookFn).apply(this,arguments);}};}\nvar cssPrefixes=[\"Webkit\",\"Moz\",\"ms\"],emptyStyle=document.createElement(\"div\").style,vendorProps={};function vendorPropName(name){var capName=name[0].toUpperCase()+name.slice(1),i=cssPrefixes.length;while(i--){name=cssPrefixes[i]+capName;if(name in emptyStyle){return name;}}}\nfunction finalPropName(name){var final=jQuery.cssProps[name]||vendorProps[name];if(final){return final;}\nif(name in emptyStyle){return name;}\nreturn vendorProps[name]=vendorPropName(name)||name;}\nvar\nrdisplayswap=/^(none|table(?!-c[ea]).+)/,rcustomProp=/^--/,cssShow={position:\"absolute\",visibility:\"hidden\",display:\"block\"},cssNormalTransform={letterSpacing:\"0\",fontWeight:\"400\"};function setPositiveNumber(_elem,value,subtract){var matches=rcssNum.exec(value);return matches?Math.max(0,matches[2]-(subtract||0))+(matches[3]||\"px\"):value;}\nfunction boxModelAdjustment(elem,dimension,box,isBorderBox,styles,computedVal){var i=dimension===\"width\"?1:0,extra=0,delta=0;if(box===(isBorderBox?\"border\":\"content\")){return 0;}\nfor(;i<4;i+=2){if(box===\"margin\"){delta+=jQuery.css(elem,box+cssExpand[i],true,styles);}\nif(!isBorderBox){delta+=jQuery.css(elem,\"padding\"+cssExpand[i],true,styles);if(box!==\"padding\"){delta+=jQuery.css(elem,\"border\"+cssExpand[i]+\"Width\",true,styles);}else{extra+=jQuery.css(elem,\"border\"+cssExpand[i]+\"Width\",true,styles);}}else{if(box===\"content\"){delta-=jQuery.css(elem,\"padding\"+cssExpand[i],true,styles);}\nif(box!==\"margin\"){delta-=jQuery.css(elem,\"border\"+cssExpand[i]+\"Width\",true,styles);}}}\nif(!isBorderBox&&computedVal>=0){delta+=Math.max(0,Math.ceil(elem[\"offset\"+dimension[0].toUpperCase()+dimension.slice(1)]-\ncomputedVal-\ndelta-\nextra-\n0.5))||0;}\nreturn delta;}\nfunction getWidthOrHeight(elem,dimension,extra){var styles=getStyles(elem),boxSizingNeeded=!support.boxSizingReliable()||extra,isBorderBox=boxSizingNeeded&&jQuery.css(elem,\"boxSizing\",false,styles)===\"border-box\",valueIsBorderBox=isBorderBox,val=curCSS(elem,dimension,styles),offsetProp=\"offset\"+dimension[0].toUpperCase()+dimension.slice(1);if(rnumnonpx.test(val)){if(!extra){return val;}\nval=\"auto\";}\nif((!support.boxSizingReliable()&&isBorderBox||!support.reliableTrDimensions()&&nodeName(elem,\"tr\")||val===\"auto\"||!parseFloat(val)&&jQuery.css(elem,\"display\",false,styles)===\"inline\")&&elem.getClientRects().length){isBorderBox=jQuery.css(elem,\"boxSizing\",false,styles)===\"border-box\";valueIsBorderBox=offsetProp in elem;if(valueIsBorderBox){val=elem[offsetProp];}}\nval=parseFloat(val)||0;return(val+\nboxModelAdjustment(elem,dimension,extra||(isBorderBox?\"border\":\"content\"),valueIsBorderBox,styles,val))+\"px\";}\njQuery.extend({cssHooks:{opacity:{get:function(elem,computed){if(computed){var ret=curCSS(elem,\"opacity\");return ret===\"\"?\"1\":ret;}}}},cssNumber:{\"animationIterationCount\":true,\"columnCount\":true,\"fillOpacity\":true,\"flexGrow\":true,\"flexShrink\":true,\"fontWeight\":true,\"gridArea\":true,\"gridColumn\":true,\"gridColumnEnd\":true,\"gridColumnStart\":true,\"gridRow\":true,\"gridRowEnd\":true,\"gridRowStart\":true,\"lineHeight\":true,\"opacity\":true,\"order\":true,\"orphans\":true,\"widows\":true,\"zIndex\":true,\"zoom\":true},cssProps:{},style:function(elem,name,value,extra){if(!elem||elem.nodeType===3||elem.nodeType===8||!elem.style){return;}\nvar ret,type,hooks,origName=camelCase(name),isCustomProp=rcustomProp.test(name),style=elem.style;if(!isCustomProp){name=finalPropName(origName);}\nhooks=jQuery.cssHooks[name]||jQuery.cssHooks[origName];if(value!==undefined){type=typeof value;if(type===\"string\"&&(ret=rcssNum.exec(value))&&ret[1]){value=adjustCSS(elem,name,ret);type=\"number\";}\nif(value==null||value!==value){return;}\nif(type===\"number\"&&!isCustomProp){value+=ret&&ret[3]||(jQuery.cssNumber[origName]?\"\":\"px\");}\nif(!support.clearCloneStyle&&value===\"\"&&name.indexOf(\"background\")===0){style[name]=\"inherit\";}\nif(!hooks||!(\"set\"in hooks)||(value=hooks.set(elem,value,extra))!==undefined){if(isCustomProp){style.setProperty(name,value);}else{style[name]=value;}}}else{if(hooks&&\"get\"in hooks&&(ret=hooks.get(elem,false,extra))!==undefined){return ret;}\nreturn style[name];}},css:function(elem,name,extra,styles){var val,num,hooks,origName=camelCase(name),isCustomProp=rcustomProp.test(name);if(!isCustomProp){name=finalPropName(origName);}\nhooks=jQuery.cssHooks[name]||jQuery.cssHooks[origName];if(hooks&&\"get\"in hooks){val=hooks.get(elem,true,extra);}\nif(val===undefined){val=curCSS(elem,name,styles);}\nif(val===\"normal\"&&name in cssNormalTransform){val=cssNormalTransform[name];}\nif(extra===\"\"||extra){num=parseFloat(val);return extra===true||isFinite(num)?num||0:val;}\nreturn val;}});jQuery.each([\"height\",\"width\"],function(_i,dimension){jQuery.cssHooks[dimension]={get:function(elem,computed,extra){if(computed){return rdisplayswap.test(jQuery.css(elem,\"display\"))&&(!elem.getClientRects().length||!elem.getBoundingClientRect().width)?swap(elem,cssShow,function(){return getWidthOrHeight(elem,dimension,extra);}):getWidthOrHeight(elem,dimension,extra);}},set:function(elem,value,extra){var matches,styles=getStyles(elem),scrollboxSizeBuggy=!support.scrollboxSize()&&styles.position===\"absolute\",boxSizingNeeded=scrollboxSizeBuggy||extra,isBorderBox=boxSizingNeeded&&jQuery.css(elem,\"boxSizing\",false,styles)===\"border-box\",subtract=extra?boxModelAdjustment(elem,dimension,extra,isBorderBox,styles):0;if(isBorderBox&&scrollboxSizeBuggy){subtract-=Math.ceil(elem[\"offset\"+dimension[0].toUpperCase()+dimension.slice(1)]-\nparseFloat(styles[dimension])-\nboxModelAdjustment(elem,dimension,\"border\",false,styles)-\n0.5);}\nif(subtract&&(matches=rcssNum.exec(value))&&(matches[3]||\"px\")!==\"px\"){elem.style[dimension]=value;value=jQuery.css(elem,dimension);}\nreturn setPositiveNumber(elem,value,subtract);}};});jQuery.cssHooks.marginLeft=addGetHookIf(support.reliableMarginLeft,function(elem,computed){if(computed){return(parseFloat(curCSS(elem,\"marginLeft\"))||elem.getBoundingClientRect().left-\nswap(elem,{marginLeft:0},function(){return elem.getBoundingClientRect().left;}))+\"px\";}});jQuery.each({margin:\"\",padding:\"\",border:\"Width\"},function(prefix,suffix){jQuery.cssHooks[prefix+suffix]={expand:function(value){var i=0,expanded={},parts=typeof value===\"string\"?value.split(\" \"):[value];for(;i<4;i++){expanded[prefix+cssExpand[i]+suffix]=parts[i]||parts[i-2]||parts[0];}\nreturn expanded;}};if(prefix!==\"margin\"){jQuery.cssHooks[prefix+suffix].set=setPositiveNumber;}});jQuery.fn.extend({css:function(name,value){return access(this,function(elem,name,value){var styles,len,map={},i=0;if(Array.isArray(name)){styles=getStyles(elem);len=name.length;for(;i<len;i++){map[name[i]]=jQuery.css(elem,name[i],false,styles);}\nreturn map;}\nreturn value!==undefined?jQuery.style(elem,name,value):jQuery.css(elem,name);},name,value,arguments.length>1);}});function Tween(elem,options,prop,end,easing){return new Tween.prototype.init(elem,options,prop,end,easing);}\njQuery.Tween=Tween;Tween.prototype={constructor:Tween,init:function(elem,options,prop,end,easing,unit){this.elem=elem;this.prop=prop;this.easing=easing||jQuery.easing._default;this.options=options;this.start=this.now=this.cur();this.end=end;this.unit=unit||(jQuery.cssNumber[prop]?\"\":\"px\");},cur:function(){var hooks=Tween.propHooks[this.prop];return hooks&&hooks.get?hooks.get(this):Tween.propHooks._default.get(this);},run:function(percent){var eased,hooks=Tween.propHooks[this.prop];if(this.options.duration){this.pos=eased=jQuery.easing[this.easing](percent,this.options.duration*percent,0,1,this.options.duration);}else{this.pos=eased=percent;}\nthis.now=(this.end-this.start)*eased+this.start;if(this.options.step){this.options.step.call(this.elem,this.now,this);}\nif(hooks&&hooks.set){hooks.set(this);}else{Tween.propHooks._default.set(this);}\nreturn this;}};Tween.prototype.init.prototype=Tween.prototype;Tween.propHooks={_default:{get:function(tween){var result;if(tween.elem.nodeType!==1||tween.elem[tween.prop]!=null&&tween.elem.style[tween.prop]==null){return tween.elem[tween.prop];}\nresult=jQuery.css(tween.elem,tween.prop,\"\");return!result||result===\"auto\"?0:result;},set:function(tween){if(jQuery.fx.step[tween.prop]){jQuery.fx.step[tween.prop](tween);}else if(tween.elem.nodeType===1&&(jQuery.cssHooks[tween.prop]||tween.elem.style[finalPropName(tween.prop)]!=null)){jQuery.style(tween.elem,tween.prop,tween.now+tween.unit);}else{tween.elem[tween.prop]=tween.now;}}}};Tween.propHooks.scrollTop=Tween.propHooks.scrollLeft={set:function(tween){if(tween.elem.nodeType&&tween.elem.parentNode){tween.elem[tween.prop]=tween.now;}}};jQuery.easing={linear:function(p){return p;},swing:function(p){return 0.5-Math.cos(p*Math.PI)/ 2;},_default:\"swing\"};jQuery.fx=Tween.prototype.init;jQuery.fx.step={};var\nfxNow,inProgress,rfxtypes=/^(?:toggle|show|hide)$/,rrun=/queueHooks$/;function schedule(){if(inProgress){if(document.hidden===false&&window.requestAnimationFrame){window.requestAnimationFrame(schedule);}else{window.setTimeout(schedule,jQuery.fx.interval);}\njQuery.fx.tick();}}\nfunction createFxNow(){window.setTimeout(function(){fxNow=undefined;});return(fxNow=Date.now());}\nfunction genFx(type,includeWidth){var which,i=0,attrs={height:type};includeWidth=includeWidth?1:0;for(;i<4;i+=2-includeWidth){which=cssExpand[i];attrs[\"margin\"+which]=attrs[\"padding\"+which]=type;}\nif(includeWidth){attrs.opacity=attrs.width=type;}\nreturn attrs;}\nfunction createTween(value,prop,animation){var tween,collection=(Animation.tweeners[prop]||[]).concat(Animation.tweeners[\"*\"]),index=0,length=collection.length;for(;index<length;index++){if((tween=collection[index].call(animation,prop,value))){return tween;}}}\nfunction defaultPrefilter(elem,props,opts){var prop,value,toggle,hooks,oldfire,propTween,restoreDisplay,display,isBox=\"width\"in props||\"height\"in props,anim=this,orig={},style=elem.style,hidden=elem.nodeType&&isHiddenWithinTree(elem),dataShow=dataPriv.get(elem,\"fxshow\");if(!opts.queue){hooks=jQuery._queueHooks(elem,\"fx\");if(hooks.unqueued==null){hooks.unqueued=0;oldfire=hooks.empty.fire;hooks.empty.fire=function(){if(!hooks.unqueued){oldfire();}};}\nhooks.unqueued++;anim.always(function(){anim.always(function(){hooks.unqueued--;if(!jQuery.queue(elem,\"fx\").length){hooks.empty.fire();}});});}\nfor(prop in props){value=props[prop];if(rfxtypes.test(value)){delete props[prop];toggle=toggle||value===\"toggle\";if(value===(hidden?\"hide\":\"show\")){if(value===\"show\"&&dataShow&&dataShow[prop]!==undefined){hidden=true;}else{continue;}}\norig[prop]=dataShow&&dataShow[prop]||jQuery.style(elem,prop);}}\npropTween=!jQuery.isEmptyObject(props);if(!propTween&&jQuery.isEmptyObject(orig)){return;}\nif(isBox&&elem.nodeType===1){opts.overflow=[style.overflow,style.overflowX,style.overflowY];restoreDisplay=dataShow&&dataShow.display;if(restoreDisplay==null){restoreDisplay=dataPriv.get(elem,\"display\");}\ndisplay=jQuery.css(elem,\"display\");if(display===\"none\"){if(restoreDisplay){display=restoreDisplay;}else{showHide([elem],true);restoreDisplay=elem.style.display||restoreDisplay;display=jQuery.css(elem,\"display\");showHide([elem]);}}\nif(display===\"inline\"||display===\"inline-block\"&&restoreDisplay!=null){if(jQuery.css(elem,\"float\")===\"none\"){if(!propTween){anim.done(function(){style.display=restoreDisplay;});if(restoreDisplay==null){display=style.display;restoreDisplay=display===\"none\"?\"\":display;}}\nstyle.display=\"inline-block\";}}}\nif(opts.overflow){style.overflow=\"hidden\";anim.always(function(){style.overflow=opts.overflow[0];style.overflowX=opts.overflow[1];style.overflowY=opts.overflow[2];});}\npropTween=false;for(prop in orig){if(!propTween){if(dataShow){if(\"hidden\"in dataShow){hidden=dataShow.hidden;}}else{dataShow=dataPriv.access(elem,\"fxshow\",{display:restoreDisplay});}\nif(toggle){dataShow.hidden=!hidden;}\nif(hidden){showHide([elem],true);}\nanim.done(function(){if(!hidden){showHide([elem]);}\ndataPriv.remove(elem,\"fxshow\");for(prop in orig){jQuery.style(elem,prop,orig[prop]);}});}\npropTween=createTween(hidden?dataShow[prop]:0,prop,anim);if(!(prop in dataShow)){dataShow[prop]=propTween.start;if(hidden){propTween.end=propTween.start;propTween.start=0;}}}}\nfunction propFilter(props,specialEasing){var index,name,easing,value,hooks;for(index in props){name=camelCase(index);easing=specialEasing[name];value=props[index];if(Array.isArray(value)){easing=value[1];value=props[index]=value[0];}\nif(index!==name){props[name]=value;delete props[index];}\nhooks=jQuery.cssHooks[name];if(hooks&&\"expand\"in hooks){value=hooks.expand(value);delete props[name];for(index in value){if(!(index in props)){props[index]=value[index];specialEasing[index]=easing;}}}else{specialEasing[name]=easing;}}}\nfunction Animation(elem,properties,options){var result,stopped,index=0,length=Animation.prefilters.length,deferred=jQuery.Deferred().always(function(){delete tick.elem;}),tick=function(){if(stopped){return false;}\nvar currentTime=fxNow||createFxNow(),remaining=Math.max(0,animation.startTime+animation.duration-currentTime),temp=remaining / animation.duration||0,percent=1-temp,index=0,length=animation.tweens.length;for(;index<length;index++){animation.tweens[index].run(percent);}\ndeferred.notifyWith(elem,[animation,percent,remaining]);if(percent<1&&length){return remaining;}\nif(!length){deferred.notifyWith(elem,[animation,1,0]);}\ndeferred.resolveWith(elem,[animation]);return false;},animation=deferred.promise({elem:elem,props:jQuery.extend({},properties),opts:jQuery.extend(true,{specialEasing:{},easing:jQuery.easing._default},options),originalProperties:properties,originalOptions:options,startTime:fxNow||createFxNow(),duration:options.duration,tweens:[],createTween:function(prop,end){var tween=jQuery.Tween(elem,animation.opts,prop,end,animation.opts.specialEasing[prop]||animation.opts.easing);animation.tweens.push(tween);return tween;},stop:function(gotoEnd){var index=0,length=gotoEnd?animation.tweens.length:0;if(stopped){return this;}\nstopped=true;for(;index<length;index++){animation.tweens[index].run(1);}\nif(gotoEnd){deferred.notifyWith(elem,[animation,1,0]);deferred.resolveWith(elem,[animation,gotoEnd]);}else{deferred.rejectWith(elem,[animation,gotoEnd]);}\nreturn this;}}),props=animation.props;propFilter(props,animation.opts.specialEasing);for(;index<length;index++){result=Animation.prefilters[index].call(animation,elem,props,animation.opts);if(result){if(isFunction(result.stop)){jQuery._queueHooks(animation.elem,animation.opts.queue).stop=result.stop.bind(result);}\nreturn result;}}\njQuery.map(props,createTween,animation);if(isFunction(animation.opts.start)){animation.opts.start.call(elem,animation);}\nanimation.progress(animation.opts.progress).done(animation.opts.done,animation.opts.complete).fail(animation.opts.fail).always(animation.opts.always);jQuery.fx.timer(jQuery.extend(tick,{elem:elem,anim:animation,queue:animation.opts.queue}));return animation;}\njQuery.Animation=jQuery.extend(Animation,{tweeners:{\"*\":[function(prop,value){var tween=this.createTween(prop,value);adjustCSS(tween.elem,prop,rcssNum.exec(value),tween);return tween;}]},tweener:function(props,callback){if(isFunction(props)){callback=props;props=[\"*\"];}else{props=props.match(rnothtmlwhite);}\nvar prop,index=0,length=props.length;for(;index<length;index++){prop=props[index];Animation.tweeners[prop]=Animation.tweeners[prop]||[];Animation.tweeners[prop].unshift(callback);}},prefilters:[defaultPrefilter],prefilter:function(callback,prepend){if(prepend){Animation.prefilters.unshift(callback);}else{Animation.prefilters.push(callback);}}});jQuery.speed=function(speed,easing,fn){var opt=speed&&typeof speed===\"object\"?jQuery.extend({},speed):{complete:fn||!fn&&easing||isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&!isFunction(easing)&&easing};if(jQuery.fx.off){opt.duration=0;}else{if(typeof opt.duration!==\"number\"){if(opt.duration in jQuery.fx.speeds){opt.duration=jQuery.fx.speeds[opt.duration];}else{opt.duration=jQuery.fx.speeds._default;}}}\nif(opt.queue==null||opt.queue===true){opt.queue=\"fx\";}\nopt.old=opt.complete;opt.complete=function(){if(isFunction(opt.old)){opt.old.call(this);}\nif(opt.queue){jQuery.dequeue(this,opt.queue);}};return opt;};jQuery.fn.extend({fadeTo:function(speed,to,easing,callback){return this.filter(isHiddenWithinTree).css(\"opacity\",0).show().end().animate({opacity:to},speed,easing,callback);},animate:function(prop,speed,easing,callback){var empty=jQuery.isEmptyObject(prop),optall=jQuery.speed(speed,easing,callback),doAnimation=function(){var anim=Animation(this,jQuery.extend({},prop),optall);if(empty||dataPriv.get(this,\"finish\")){anim.stop(true);}};doAnimation.finish=doAnimation;return empty||optall.queue===false?this.each(doAnimation):this.queue(optall.queue,doAnimation);},stop:function(type,clearQueue,gotoEnd){var stopQueue=function(hooks){var stop=hooks.stop;delete hooks.stop;stop(gotoEnd);};if(typeof type!==\"string\"){gotoEnd=clearQueue;clearQueue=type;type=undefined;}\nif(clearQueue){this.queue(type||\"fx\",[]);}\nreturn this.each(function(){var dequeue=true,index=type!=null&&type+\"queueHooks\",timers=jQuery.timers,data=dataPriv.get(this);if(index){if(data[index]&&data[index].stop){stopQueue(data[index]);}}else{for(index in data){if(data[index]&&data[index].stop&&rrun.test(index)){stopQueue(data[index]);}}}\nfor(index=timers.length;index--;){if(timers[index].elem===this&&(type==null||timers[index].queue===type)){timers[index].anim.stop(gotoEnd);dequeue=false;timers.splice(index,1);}}\nif(dequeue||!gotoEnd){jQuery.dequeue(this,type);}});},finish:function(type){if(type!==false){type=type||\"fx\";}\nreturn this.each(function(){var index,data=dataPriv.get(this),queue=data[type+\"queue\"],hooks=data[type+\"queueHooks\"],timers=jQuery.timers,length=queue?queue.length:0;data.finish=true;jQuery.queue(this,type,[]);if(hooks&&hooks.stop){hooks.stop.call(this,true);}\nfor(index=timers.length;index--;){if(timers[index].elem===this&&timers[index].queue===type){timers[index].anim.stop(true);timers.splice(index,1);}}\nfor(index=0;index<length;index++){if(queue[index]&&queue[index].finish){queue[index].finish.call(this);}}\ndelete data.finish;});}});jQuery.each([\"toggle\",\"show\",\"hide\"],function(_i,name){var cssFn=jQuery.fn[name];jQuery.fn[name]=function(speed,easing,callback){return speed==null||typeof speed===\"boolean\"?cssFn.apply(this,arguments):this.animate(genFx(name,true),speed,easing,callback);};});jQuery.each({slideDown:genFx(\"show\"),slideUp:genFx(\"hide\"),slideToggle:genFx(\"toggle\"),fadeIn:{opacity:\"show\"},fadeOut:{opacity:\"hide\"},fadeToggle:{opacity:\"toggle\"}},function(name,props){jQuery.fn[name]=function(speed,easing,callback){return this.animate(props,speed,easing,callback);};});jQuery.timers=[];jQuery.fx.tick=function(){var timer,i=0,timers=jQuery.timers;fxNow=Date.now();for(;i<timers.length;i++){timer=timers[i];if(!timer()&&timers[i]===timer){timers.splice(i--,1);}}\nif(!timers.length){jQuery.fx.stop();}\nfxNow=undefined;};jQuery.fx.timer=function(timer){jQuery.timers.push(timer);jQuery.fx.start();};jQuery.fx.interval=13;jQuery.fx.start=function(){if(inProgress){return;}\ninProgress=true;schedule();};jQuery.fx.stop=function(){inProgress=null;};jQuery.fx.speeds={slow:600,fast:200,_default:400};jQuery.fn.delay=function(time,type){time=jQuery.fx?jQuery.fx.speeds[time]||time:time;type=type||\"fx\";return this.queue(type,function(next,hooks){var timeout=window.setTimeout(next,time);hooks.stop=function(){window.clearTimeout(timeout);};});};(function(){var input=document.createElement(\"input\"),select=document.createElement(\"select\"),opt=select.appendChild(document.createElement(\"option\"));input.type=\"checkbox\";support.checkOn=input.value!==\"\";support.optSelected=opt.selected;input=document.createElement(\"input\");input.value=\"t\";input.type=\"radio\";support.radioValue=input.value===\"t\";})();var boolHook,attrHandle=jQuery.expr.attrHandle;jQuery.fn.extend({attr:function(name,value){return access(this,jQuery.attr,name,value,arguments.length>1);},removeAttr:function(name){return this.each(function(){jQuery.removeAttr(this,name);});}});jQuery.extend({attr:function(elem,name,value){var ret,hooks,nType=elem.nodeType;if(nType===3||nType===8||nType===2){return;}\nif(typeof elem.getAttribute===\"undefined\"){return jQuery.prop(elem,name,value);}\nif(nType!==1||!jQuery.isXMLDoc(elem)){hooks=jQuery.attrHooks[name.toLowerCase()]||(jQuery.expr.match.bool.test(name)?boolHook:undefined);}\nif(value!==undefined){if(value===null){jQuery.removeAttr(elem,name);return;}\nif(hooks&&\"set\"in hooks&&(ret=hooks.set(elem,value,name))!==undefined){return ret;}\nelem.setAttribute(name,value+\"\");return value;}\nif(hooks&&\"get\"in hooks&&(ret=hooks.get(elem,name))!==null){return ret;}\nret=jQuery.find.attr(elem,name);return ret==null?undefined:ret;},attrHooks:{type:{set:function(elem,value){if(!support.radioValue&&value===\"radio\"&&nodeName(elem,\"input\")){var val=elem.value;elem.setAttribute(\"type\",value);if(val){elem.value=val;}\nreturn value;}}}},removeAttr:function(elem,value){var name,i=0,attrNames=value&&value.match(rnothtmlwhite);if(attrNames&&elem.nodeType===1){while((name=attrNames[i++])){elem.removeAttribute(name);}}}});boolHook={set:function(elem,value,name){if(value===false){jQuery.removeAttr(elem,name);}else{elem.setAttribute(name,name);}\nreturn name;}};jQuery.each(jQuery.expr.match.bool.source.match(/\\w+/g),function(_i,name){var getter=attrHandle[name]||jQuery.find.attr;attrHandle[name]=function(elem,name,isXML){var ret,handle,lowercaseName=name.toLowerCase();if(!isXML){handle=attrHandle[lowercaseName];attrHandle[lowercaseName]=ret;ret=getter(elem,name,isXML)!=null?lowercaseName:null;attrHandle[lowercaseName]=handle;}\nreturn ret;};});var rfocusable=/^(?:input|select|textarea|button)$/i,rclickable=/^(?:a|area)$/i;jQuery.fn.extend({prop:function(name,value){return access(this,jQuery.prop,name,value,arguments.length>1);},removeProp:function(name){return this.each(function(){delete this[jQuery.propFix[name]||name];});}});jQuery.extend({prop:function(elem,name,value){var ret,hooks,nType=elem.nodeType;if(nType===3||nType===8||nType===2){return;}\nif(nType!==1||!jQuery.isXMLDoc(elem)){name=jQuery.propFix[name]||name;hooks=jQuery.propHooks[name];}\nif(value!==undefined){if(hooks&&\"set\"in hooks&&(ret=hooks.set(elem,value,name))!==undefined){return ret;}\nreturn(elem[name]=value);}\nif(hooks&&\"get\"in hooks&&(ret=hooks.get(elem,name))!==null){return ret;}\nreturn elem[name];},propHooks:{tabIndex:{get:function(elem){var tabindex=jQuery.find.attr(elem,\"tabindex\");if(tabindex){return parseInt(tabindex,10);}\nif(rfocusable.test(elem.nodeName)||rclickable.test(elem.nodeName)&&elem.href){return 0;}\nreturn-1;}}},propFix:{\"for\":\"htmlFor\",\"class\":\"className\"}});if(!support.optSelected){jQuery.propHooks.selected={get:function(elem){var parent=elem.parentNode;if(parent&&parent.parentNode){parent.parentNode.selectedIndex;}\nreturn null;},set:function(elem){var parent=elem.parentNode;if(parent){parent.selectedIndex;if(parent.parentNode){parent.parentNode.selectedIndex;}}}};}\njQuery.each([\"tabIndex\",\"readOnly\",\"maxLength\",\"cellSpacing\",\"cellPadding\",\"rowSpan\",\"colSpan\",\"useMap\",\"frameBorder\",\"contentEditable\"],function(){jQuery.propFix[this.toLowerCase()]=this;});function stripAndCollapse(value){var tokens=value.match(rnothtmlwhite)||[];return tokens.join(\" \");}\nfunction getClass(elem){return elem.getAttribute&&elem.getAttribute(\"class\")||\"\";}\nfunction classesToArray(value){if(Array.isArray(value)){return value;}\nif(typeof value===\"string\"){return value.match(rnothtmlwhite)||[];}\nreturn[];}\njQuery.fn.extend({addClass:function(value){var classes,elem,cur,curValue,clazz,j,finalValue,i=0;if(isFunction(value)){return this.each(function(j){jQuery(this).addClass(value.call(this,j,getClass(this)));});}\nclasses=classesToArray(value);if(classes.length){while((elem=this[i++])){curValue=getClass(elem);cur=elem.nodeType===1&&(\" \"+stripAndCollapse(curValue)+\" \");if(cur){j=0;while((clazz=classes[j++])){if(cur.indexOf(\" \"+clazz+\" \")<0){cur+=clazz+\" \";}}\nfinalValue=stripAndCollapse(cur);if(curValue!==finalValue){elem.setAttribute(\"class\",finalValue);}}}}\nreturn this;},removeClass:function(value){var classes,elem,cur,curValue,clazz,j,finalValue,i=0;if(isFunction(value)){return this.each(function(j){jQuery(this).removeClass(value.call(this,j,getClass(this)));});}\nif(!arguments.length){return this.attr(\"class\",\"\");}\nclasses=classesToArray(value);if(classes.length){while((elem=this[i++])){curValue=getClass(elem);cur=elem.nodeType===1&&(\" \"+stripAndCollapse(curValue)+\" \");if(cur){j=0;while((clazz=classes[j++])){while(cur.indexOf(\" \"+clazz+\" \")>-1){cur=cur.replace(\" \"+clazz+\" \",\" \");}}\nfinalValue=stripAndCollapse(cur);if(curValue!==finalValue){elem.setAttribute(\"class\",finalValue);}}}}\nreturn this;},toggleClass:function(value,stateVal){var type=typeof value,isValidValue=type===\"string\"||Array.isArray(value);if(typeof stateVal===\"boolean\"&&isValidValue){return stateVal?this.addClass(value):this.removeClass(value);}\nif(isFunction(value)){return this.each(function(i){jQuery(this).toggleClass(value.call(this,i,getClass(this),stateVal),stateVal);});}\nreturn this.each(function(){var className,i,self,classNames;if(isValidValue){i=0;self=jQuery(this);classNames=classesToArray(value);while((className=classNames[i++])){if(self.hasClass(className)){self.removeClass(className);}else{self.addClass(className);}}}else if(value===undefined||type===\"boolean\"){className=getClass(this);if(className){dataPriv.set(this,\"__className__\",className);}\nif(this.setAttribute){this.setAttribute(\"class\",className||value===false?\"\":dataPriv.get(this,\"__className__\")||\"\");}}});},hasClass:function(selector){var className,elem,i=0;className=\" \"+selector+\" \";while((elem=this[i++])){if(elem.nodeType===1&&(\" \"+stripAndCollapse(getClass(elem))+\" \").indexOf(className)>-1){return true;}}\nreturn false;}});var rreturn=/\\r/g;jQuery.fn.extend({val:function(value){var hooks,ret,valueIsFunction,elem=this[0];if(!arguments.length){if(elem){hooks=jQuery.valHooks[elem.type]||jQuery.valHooks[elem.nodeName.toLowerCase()];if(hooks&&\"get\"in hooks&&(ret=hooks.get(elem,\"value\"))!==undefined){return ret;}\nret=elem.value;if(typeof ret===\"string\"){return ret.replace(rreturn,\"\");}\nreturn ret==null?\"\":ret;}\nreturn;}\nvalueIsFunction=isFunction(value);return this.each(function(i){var val;if(this.nodeType!==1){return;}\nif(valueIsFunction){val=value.call(this,i,jQuery(this).val());}else{val=value;}\nif(val==null){val=\"\";}else if(typeof val===\"number\"){val+=\"\";}else if(Array.isArray(val)){val=jQuery.map(val,function(value){return value==null?\"\":value+\"\";});}\nhooks=jQuery.valHooks[this.type]||jQuery.valHooks[this.nodeName.toLowerCase()];if(!hooks||!(\"set\"in hooks)||hooks.set(this,val,\"value\")===undefined){this.value=val;}});}});jQuery.extend({valHooks:{option:{get:function(elem){var val=jQuery.find.attr(elem,\"value\");return val!=null?val:stripAndCollapse(jQuery.text(elem));}},select:{get:function(elem){var value,option,i,options=elem.options,index=elem.selectedIndex,one=elem.type===\"select-one\",values=one?null:[],max=one?index+1:options.length;if(index<0){i=max;}else{i=one?index:0;}\nfor(;i<max;i++){option=options[i];if((option.selected||i===index)&&!option.disabled&&(!option.parentNode.disabled||!nodeName(option.parentNode,\"optgroup\"))){value=jQuery(option).val();if(one){return value;}\nvalues.push(value);}}\nreturn values;},set:function(elem,value){var optionSet,option,options=elem.options,values=jQuery.makeArray(value),i=options.length;while(i--){option=options[i];if(option.selected=jQuery.inArray(jQuery.valHooks.option.get(option),values)>-1){optionSet=true;}}\nif(!optionSet){elem.selectedIndex=-1;}\nreturn values;}}}});jQuery.each([\"radio\",\"checkbox\"],function(){jQuery.valHooks[this]={set:function(elem,value){if(Array.isArray(value)){return(elem.checked=jQuery.inArray(jQuery(elem).val(),value)>-1);}}};if(!support.checkOn){jQuery.valHooks[this].get=function(elem){return elem.getAttribute(\"value\")===null?\"on\":elem.value;};}});support.focusin=\"onfocusin\"in window;var rfocusMorph=/^(?:focusinfocus|focusoutblur)$/,stopPropagationCallback=function(e){e.stopPropagation();};jQuery.extend(jQuery.event,{trigger:function(event,data,elem,onlyHandlers){var i,cur,tmp,bubbleType,ontype,handle,special,lastElement,eventPath=[elem||document],type=hasOwn.call(event,\"type\")?event.type:event,namespaces=hasOwn.call(event,\"namespace\")?event.namespace.split(\".\"):[];cur=lastElement=tmp=elem=elem||document;if(elem.nodeType===3||elem.nodeType===8){return;}\nif(rfocusMorph.test(type+jQuery.event.triggered)){return;}\nif(type.indexOf(\".\")>-1){namespaces=type.split(\".\");type=namespaces.shift();namespaces.sort();}\nontype=type.indexOf(\":\")<0&&\"on\"+type;event=event[jQuery.expando]?event:new jQuery.Event(type,typeof event===\"object\"&&event);event.isTrigger=onlyHandlers?2:3;event.namespace=namespaces.join(\".\");event.rnamespace=event.namespace?new RegExp(\"(^|\\\\.)\"+namespaces.join(\"\\\\.(?:.*\\\\.|)\")+\"(\\\\.|$)\"):null;event.result=undefined;if(!event.target){event.target=elem;}\ndata=data==null?[event]:jQuery.makeArray(data,[event]);special=jQuery.event.special[type]||{};if(!onlyHandlers&&special.trigger&&special.trigger.apply(elem,data)===false){return;}\nif(!onlyHandlers&&!special.noBubble&&!isWindow(elem)){bubbleType=special.delegateType||type;if(!rfocusMorph.test(bubbleType+type)){cur=cur.parentNode;}\nfor(;cur;cur=cur.parentNode){eventPath.push(cur);tmp=cur;}\nif(tmp===(elem.ownerDocument||document)){eventPath.push(tmp.defaultView||tmp.parentWindow||window);}}\ni=0;while((cur=eventPath[i++])&&!event.isPropagationStopped()){lastElement=cur;event.type=i>1?bubbleType:special.bindType||type;handle=(dataPriv.get(cur,\"events\")||Object.create(null))[event.type]&&dataPriv.get(cur,\"handle\");if(handle){handle.apply(cur,data);}\nhandle=ontype&&cur[ontype];if(handle&&handle.apply&&acceptData(cur)){event.result=handle.apply(cur,data);if(event.result===false){event.preventDefault();}}}\nevent.type=type;if(!onlyHandlers&&!event.isDefaultPrevented()){if((!special._default||special._default.apply(eventPath.pop(),data)===false)&&acceptData(elem)){if(ontype&&isFunction(elem[type])&&!isWindow(elem)){tmp=elem[ontype];if(tmp){elem[ontype]=null;}\njQuery.event.triggered=type;if(event.isPropagationStopped()){lastElement.addEventListener(type,stopPropagationCallback);}\nelem[type]();if(event.isPropagationStopped()){lastElement.removeEventListener(type,stopPropagationCallback);}\njQuery.event.triggered=undefined;if(tmp){elem[ontype]=tmp;}}}}\nreturn event.result;},simulate:function(type,elem,event){var e=jQuery.extend(new jQuery.Event(),event,{type:type,isSimulated:true});jQuery.event.trigger(e,null,elem);}});jQuery.fn.extend({trigger:function(type,data){return this.each(function(){jQuery.event.trigger(type,data,this);});},triggerHandler:function(type,data){var elem=this[0];if(elem){return jQuery.event.trigger(type,data,elem,true);}}});if(!support.focusin){jQuery.each({focus:\"focusin\",blur:\"focusout\"},function(orig,fix){var handler=function(event){jQuery.event.simulate(fix,event.target,jQuery.event.fix(event));};jQuery.event.special[fix]={setup:function(){var doc=this.ownerDocument||this.document||this,attaches=dataPriv.access(doc,fix);if(!attaches){doc.addEventListener(orig,handler,true);}\ndataPriv.access(doc,fix,(attaches||0)+1);},teardown:function(){var doc=this.ownerDocument||this.document||this,attaches=dataPriv.access(doc,fix)-1;if(!attaches){doc.removeEventListener(orig,handler,true);dataPriv.remove(doc,fix);}else{dataPriv.access(doc,fix,attaches);}}};});}\nvar location=window.location;var nonce={guid:Date.now()};var rquery=(/\\?/);jQuery.parseXML=function(data){var xml,parserErrorElem;if(!data||typeof data!==\"string\"){return null;}\ntry{xml=(new window.DOMParser()).parseFromString(data,\"text/xml\");}catch(e){}\nparserErrorElem=xml&&xml.getElementsByTagName(\"parsererror\")[0];if(!xml||parserErrorElem){jQuery.error(\"Invalid XML: \"+(parserErrorElem?jQuery.map(parserErrorElem.childNodes,function(el){return el.textContent;}).join(\"\\n\"):data));}\nreturn xml;};var\nrbracket=/\\[\\]$/,rCRLF=/\\r?\\n/g,rsubmitterTypes=/^(?:submit|button|image|reset|file)$/i,rsubmittable=/^(?:input|select|textarea|keygen)/i;function buildParams(prefix,obj,traditional,add){var name;if(Array.isArray(obj)){jQuery.each(obj,function(i,v){if(traditional||rbracket.test(prefix)){add(prefix,v);}else{buildParams(prefix+\"[\"+(typeof v===\"object\"&&v!=null?i:\"\")+\"]\",v,traditional,add);}});}else if(!traditional&&toType(obj)===\"object\"){for(name in obj){buildParams(prefix+\"[\"+name+\"]\",obj[name],traditional,add);}}else{add(prefix,obj);}}\njQuery.param=function(a,traditional){var prefix,s=[],add=function(key,valueOrFunction){var value=isFunction(valueOrFunction)?valueOrFunction():valueOrFunction;s[s.length]=encodeURIComponent(key)+\"=\"+\nencodeURIComponent(value==null?\"\":value);};if(a==null){return\"\";}\nif(Array.isArray(a)||(a.jquery&&!jQuery.isPlainObject(a))){jQuery.each(a,function(){add(this.name,this.value);});}else{for(prefix in a){buildParams(prefix,a[prefix],traditional,add);}}\nreturn s.join(\"&\");};jQuery.fn.extend({serialize:function(){return jQuery.param(this.serializeArray());},serializeArray:function(){return this.map(function(){var elements=jQuery.prop(this,\"elements\");return elements?jQuery.makeArray(elements):this;}).filter(function(){var type=this.type;return this.name&&!jQuery(this).is(\":disabled\")&&rsubmittable.test(this.nodeName)&&!rsubmitterTypes.test(type)&&(this.checked||!rcheckableType.test(type));}).map(function(_i,elem){var val=jQuery(this).val();if(val==null){return null;}\nif(Array.isArray(val)){return jQuery.map(val,function(val){return{name:elem.name,value:val.replace(rCRLF,\"\\r\\n\")};});}\nreturn{name:elem.name,value:val.replace(rCRLF,\"\\r\\n\")};}).get();}});var\nr20=/%20/g,rhash=/#.*$/,rantiCache=/([?&])_=[^&]*/,rheaders=/^(.*?):[ \\t]*([^\\r\\n]*)$/mg,rlocalProtocol=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,rnoContent=/^(?:GET|HEAD)$/,rprotocol=/^\\/\\//,prefilters={},transports={},allTypes=\"*/\".concat(\"*\"),originAnchor=document.createElement(\"a\");originAnchor.href=location.href;function addToPrefiltersOrTransports(structure){return function(dataTypeExpression,func){if(typeof dataTypeExpression!==\"string\"){func=dataTypeExpression;dataTypeExpression=\"*\";}\nvar dataType,i=0,dataTypes=dataTypeExpression.toLowerCase().match(rnothtmlwhite)||[];if(isFunction(func)){while((dataType=dataTypes[i++])){if(dataType[0]===\"+\"){dataType=dataType.slice(1)||\"*\";(structure[dataType]=structure[dataType]||[]).unshift(func);}else{(structure[dataType]=structure[dataType]||[]).push(func);}}}};}\nfunction inspectPrefiltersOrTransports(structure,options,originalOptions,jqXHR){var inspected={},seekingTransport=(structure===transports);function inspect(dataType){var selected;inspected[dataType]=true;jQuery.each(structure[dataType]||[],function(_,prefilterOrFactory){var dataTypeOrTransport=prefilterOrFactory(options,originalOptions,jqXHR);if(typeof dataTypeOrTransport===\"string\"&&!seekingTransport&&!inspected[dataTypeOrTransport]){options.dataTypes.unshift(dataTypeOrTransport);inspect(dataTypeOrTransport);return false;}else if(seekingTransport){return!(selected=dataTypeOrTransport);}});return selected;}\nreturn inspect(options.dataTypes[0])||!inspected[\"*\"]&&inspect(\"*\");}\nfunction ajaxExtend(target,src){var key,deep,flatOptions=jQuery.ajaxSettings.flatOptions||{};for(key in src){if(src[key]!==undefined){(flatOptions[key]?target:(deep||(deep={})))[key]=src[key];}}\nif(deep){jQuery.extend(true,target,deep);}\nreturn target;}\nfunction ajaxHandleResponses(s,jqXHR,responses){var ct,type,finalDataType,firstDataType,contents=s.contents,dataTypes=s.dataTypes;while(dataTypes[0]===\"*\"){dataTypes.shift();if(ct===undefined){ct=s.mimeType||jqXHR.getResponseHeader(\"Content-Type\");}}\nif(ct){for(type in contents){if(contents[type]&&contents[type].test(ct)){dataTypes.unshift(type);break;}}}\nif(dataTypes[0]in responses){finalDataType=dataTypes[0];}else{for(type in responses){if(!dataTypes[0]||s.converters[type+\" \"+dataTypes[0]]){finalDataType=type;break;}\nif(!firstDataType){firstDataType=type;}}\nfinalDataType=finalDataType||firstDataType;}\nif(finalDataType){if(finalDataType!==dataTypes[0]){dataTypes.unshift(finalDataType);}\nreturn responses[finalDataType];}}\nfunction ajaxConvert(s,response,jqXHR,isSuccess){var conv2,current,conv,tmp,prev,converters={},dataTypes=s.dataTypes.slice();if(dataTypes[1]){for(conv in s.converters){converters[conv.toLowerCase()]=s.converters[conv];}}\ncurrent=dataTypes.shift();while(current){if(s.responseFields[current]){jqXHR[s.responseFields[current]]=response;}\nif(!prev&&isSuccess&&s.dataFilter){response=s.dataFilter(response,s.dataType);}\nprev=current;current=dataTypes.shift();if(current){if(current===\"*\"){current=prev;}else if(prev!==\"*\"&&prev!==current){conv=converters[prev+\" \"+current]||converters[\"* \"+current];if(!conv){for(conv2 in converters){tmp=conv2.split(\" \");if(tmp[1]===current){conv=converters[prev+\" \"+tmp[0]]||converters[\"* \"+tmp[0]];if(conv){if(conv===true){conv=converters[conv2];}else if(converters[conv2]!==true){current=tmp[0];dataTypes.unshift(tmp[1]);}\nbreak;}}}}\nif(conv!==true){if(conv&&s.throws){response=conv(response);}else{try{response=conv(response);}catch(e){return{state:\"parsererror\",error:conv?e:\"No conversion from \"+prev+\" to \"+current};}}}}}}\nreturn{state:\"success\",data:response};}\njQuery.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:location.href,type:\"GET\",isLocal:rlocalProtocol.test(location.protocol),global:true,processData:true,async:true,contentType:\"application/x-www-form-urlencoded; charset=UTF-8\",accepts:{\"*\":allTypes,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\",text:\"responseText\",json:\"responseJSON\"},converters:{\"* text\":String,\"text html\":true,\"text json\":JSON.parse,\"text xml\":jQuery.parseXML},flatOptions:{url:true,context:true}},ajaxSetup:function(target,settings){return settings?ajaxExtend(ajaxExtend(target,jQuery.ajaxSettings),settings):ajaxExtend(jQuery.ajaxSettings,target);},ajaxPrefilter:addToPrefiltersOrTransports(prefilters),ajaxTransport:addToPrefiltersOrTransports(transports),ajax:function(url,options){if(typeof url===\"object\"){options=url;url=undefined;}\noptions=options||{};var transport,cacheURL,responseHeadersString,responseHeaders,timeoutTimer,urlAnchor,completed,fireGlobals,i,uncached,s=jQuery.ajaxSetup({},options),callbackContext=s.context||s,globalEventContext=s.context&&(callbackContext.nodeType||callbackContext.jquery)?jQuery(callbackContext):jQuery.event,deferred=jQuery.Deferred(),completeDeferred=jQuery.Callbacks(\"once memory\"),statusCode=s.statusCode||{},requestHeaders={},requestHeadersNames={},strAbort=\"canceled\",jqXHR={readyState:0,getResponseHeader:function(key){var match;if(completed){if(!responseHeaders){responseHeaders={};while((match=rheaders.exec(responseHeadersString))){responseHeaders[match[1].toLowerCase()+\" \"]=(responseHeaders[match[1].toLowerCase()+\" \"]||[]).concat(match[2]);}}\nmatch=responseHeaders[key.toLowerCase()+\" \"];}\nreturn match==null?null:match.join(\", \");},getAllResponseHeaders:function(){return completed?responseHeadersString:null;},setRequestHeader:function(name,value){if(completed==null){name=requestHeadersNames[name.toLowerCase()]=requestHeadersNames[name.toLowerCase()]||name;requestHeaders[name]=value;}\nreturn this;},overrideMimeType:function(type){if(completed==null){s.mimeType=type;}\nreturn this;},statusCode:function(map){var code;if(map){if(completed){jqXHR.always(map[jqXHR.status]);}else{for(code in map){statusCode[code]=[statusCode[code],map[code]];}}}\nreturn this;},abort:function(statusText){var finalText=statusText||strAbort;if(transport){transport.abort(finalText);}\ndone(0,finalText);return this;}};deferred.promise(jqXHR);s.url=((url||s.url||location.href)+\"\").replace(rprotocol,location.protocol+\"//\");s.type=options.method||options.type||s.method||s.type;s.dataTypes=(s.dataType||\"*\").toLowerCase().match(rnothtmlwhite)||[\"\"];if(s.crossDomain==null){urlAnchor=document.createElement(\"a\");try{urlAnchor.href=s.url;urlAnchor.href=urlAnchor.href;s.crossDomain=originAnchor.protocol+\"//\"+originAnchor.host!==urlAnchor.protocol+\"//\"+urlAnchor.host;}catch(e){s.crossDomain=true;}}\nif(s.data&&s.processData&&typeof s.data!==\"string\"){s.data=jQuery.param(s.data,s.traditional);}\ninspectPrefiltersOrTransports(prefilters,s,options,jqXHR);if(completed){return jqXHR;}\nfireGlobals=jQuery.event&&s.global;if(fireGlobals&&jQuery.active++===0){jQuery.event.trigger(\"ajaxStart\");}\ns.type=s.type.toUpperCase();s.hasContent=!rnoContent.test(s.type);cacheURL=s.url.replace(rhash,\"\");if(!s.hasContent){uncached=s.url.slice(cacheURL.length);if(s.data&&(s.processData||typeof s.data===\"string\")){cacheURL+=(rquery.test(cacheURL)?\"&\":\"?\")+s.data;delete s.data;}\nif(s.cache===false){cacheURL=cacheURL.replace(rantiCache,\"$1\");uncached=(rquery.test(cacheURL)?\"&\":\"?\")+\"_=\"+(nonce.guid++)+\nuncached;}\ns.url=cacheURL+uncached;}else if(s.data&&s.processData&&(s.contentType||\"\").indexOf(\"application/x-www-form-urlencoded\")===0){s.data=s.data.replace(r20,\"+\");}\nif(s.ifModified){if(jQuery.lastModified[cacheURL]){jqXHR.setRequestHeader(\"If-Modified-Since\",jQuery.lastModified[cacheURL]);}\nif(jQuery.etag[cacheURL]){jqXHR.setRequestHeader(\"If-None-Match\",jQuery.etag[cacheURL]);}}\nif(s.data&&s.hasContent&&s.contentType!==false||options.contentType){jqXHR.setRequestHeader(\"Content-Type\",s.contentType);}\njqXHR.setRequestHeader(\"Accept\",s.dataTypes[0]&&s.accepts[s.dataTypes[0]]?s.accepts[s.dataTypes[0]]+\n(s.dataTypes[0]!==\"*\"?\", \"+allTypes+\"; q=0.01\":\"\"):s.accepts[\"*\"]);for(i in s.headers){jqXHR.setRequestHeader(i,s.headers[i]);}\nif(s.beforeSend&&(s.beforeSend.call(callbackContext,jqXHR,s)===false||completed)){return jqXHR.abort();}\nstrAbort=\"abort\";completeDeferred.add(s.complete);jqXHR.done(s.success);jqXHR.fail(s.error);transport=inspectPrefiltersOrTransports(transports,s,options,jqXHR);if(!transport){done(-1,\"No Transport\");}else{jqXHR.readyState=1;if(fireGlobals){globalEventContext.trigger(\"ajaxSend\",[jqXHR,s]);}\nif(completed){return jqXHR;}\nif(s.async&&s.timeout>0){timeoutTimer=window.setTimeout(function(){jqXHR.abort(\"timeout\");},s.timeout);}\ntry{completed=false;transport.send(requestHeaders,done);}catch(e){if(completed){throw e;}\ndone(-1,e);}}\nfunction done(status,nativeStatusText,responses,headers){var isSuccess,success,error,response,modified,statusText=nativeStatusText;if(completed){return;}\ncompleted=true;if(timeoutTimer){window.clearTimeout(timeoutTimer);}\ntransport=undefined;responseHeadersString=headers||\"\";jqXHR.readyState=status>0?4:0;isSuccess=status>=200&&status<300||status===304;if(responses){response=ajaxHandleResponses(s,jqXHR,responses);}\nif(!isSuccess&&jQuery.inArray(\"script\",s.dataTypes)>-1&&jQuery.inArray(\"json\",s.dataTypes)<0){s.converters[\"text script\"]=function(){};}\nresponse=ajaxConvert(s,response,jqXHR,isSuccess);if(isSuccess){if(s.ifModified){modified=jqXHR.getResponseHeader(\"Last-Modified\");if(modified){jQuery.lastModified[cacheURL]=modified;}\nmodified=jqXHR.getResponseHeader(\"etag\");if(modified){jQuery.etag[cacheURL]=modified;}}\nif(status===204||s.type===\"HEAD\"){statusText=\"nocontent\";}else if(status===304){statusText=\"notmodified\";}else{statusText=response.state;success=response.data;error=response.error;isSuccess=!error;}}else{error=statusText;if(status||!statusText){statusText=\"error\";if(status<0){status=0;}}}\njqXHR.status=status;jqXHR.statusText=(nativeStatusText||statusText)+\"\";if(isSuccess){deferred.resolveWith(callbackContext,[success,statusText,jqXHR]);}else{deferred.rejectWith(callbackContext,[jqXHR,statusText,error]);}\njqXHR.statusCode(statusCode);statusCode=undefined;if(fireGlobals){globalEventContext.trigger(isSuccess?\"ajaxSuccess\":\"ajaxError\",[jqXHR,s,isSuccess?success:error]);}\ncompleteDeferred.fireWith(callbackContext,[jqXHR,statusText]);if(fireGlobals){globalEventContext.trigger(\"ajaxComplete\",[jqXHR,s]);if(!(--jQuery.active)){jQuery.event.trigger(\"ajaxStop\");}}}\nreturn jqXHR;},getJSON:function(url,data,callback){return jQuery.get(url,data,callback,\"json\");},getScript:function(url,callback){return jQuery.get(url,undefined,callback,\"script\");}});jQuery.each([\"get\",\"post\"],function(_i,method){jQuery[method]=function(url,data,callback,type){if(isFunction(data)){type=type||callback;callback=data;data=undefined;}\nreturn jQuery.ajax(jQuery.extend({url:url,type:method,dataType:type,data:data,success:callback},jQuery.isPlainObject(url)&&url));};});jQuery.ajaxPrefilter(function(s){var i;for(i in s.headers){if(i.toLowerCase()===\"content-type\"){s.contentType=s.headers[i]||\"\";}}});jQuery._evalUrl=function(url,options,doc){return jQuery.ajax({url:url,type:\"GET\",dataType:\"script\",cache:true,async:false,global:false,converters:{\"text script\":function(){}},dataFilter:function(response){jQuery.globalEval(response,options,doc);}});};jQuery.fn.extend({wrapAll:function(html){var wrap;if(this[0]){if(isFunction(html)){html=html.call(this[0]);}\nwrap=jQuery(html,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){wrap.insertBefore(this[0]);}\nwrap.map(function(){var elem=this;while(elem.firstElementChild){elem=elem.firstElementChild;}\nreturn elem;}).append(this);}\nreturn this;},wrapInner:function(html){if(isFunction(html)){return this.each(function(i){jQuery(this).wrapInner(html.call(this,i));});}\nreturn this.each(function(){var self=jQuery(this),contents=self.contents();if(contents.length){contents.wrapAll(html);}else{self.append(html);}});},wrap:function(html){var htmlIsFunction=isFunction(html);return this.each(function(i){jQuery(this).wrapAll(htmlIsFunction?html.call(this,i):html);});},unwrap:function(selector){this.parent(selector).not(\"body\").each(function(){jQuery(this).replaceWith(this.childNodes);});return this;}});jQuery.expr.pseudos.hidden=function(elem){return!jQuery.expr.pseudos.visible(elem);};jQuery.expr.pseudos.visible=function(elem){return!!(elem.offsetWidth||elem.offsetHeight||elem.getClientRects().length);};jQuery.ajaxSettings.xhr=function(){try{return new window.XMLHttpRequest();}catch(e){}};var xhrSuccessStatus={0:200,1223:204},xhrSupported=jQuery.ajaxSettings.xhr();support.cors=!!xhrSupported&&(\"withCredentials\"in xhrSupported);support.ajax=xhrSupported=!!xhrSupported;jQuery.ajaxTransport(function(options){var callback,errorCallback;if(support.cors||xhrSupported&&!options.crossDomain){return{send:function(headers,complete){var i,xhr=options.xhr();xhr.open(options.type,options.url,options.async,options.username,options.password);if(options.xhrFields){for(i in options.xhrFields){xhr[i]=options.xhrFields[i];}}\nif(options.mimeType&&xhr.overrideMimeType){xhr.overrideMimeType(options.mimeType);}\nif(!options.crossDomain&&!headers[\"X-Requested-With\"]){headers[\"X-Requested-With\"]=\"XMLHttpRequest\";}\nfor(i in headers){xhr.setRequestHeader(i,headers[i]);}\ncallback=function(type){return function(){if(callback){callback=errorCallback=xhr.onload=xhr.onerror=xhr.onabort=xhr.ontimeout=xhr.onreadystatechange=null;if(type===\"abort\"){xhr.abort();}else if(type===\"error\"){if(typeof xhr.status!==\"number\"){complete(0,\"error\");}else{complete(xhr.status,xhr.statusText);}}else{complete(xhrSuccessStatus[xhr.status]||xhr.status,xhr.statusText,(xhr.responseType||\"text\")!==\"text\"||typeof xhr.responseText!==\"string\"?{binary:xhr.response}:{text:xhr.responseText},xhr.getAllResponseHeaders());}}};};xhr.onload=callback();errorCallback=xhr.onerror=xhr.ontimeout=callback(\"error\");if(xhr.onabort!==undefined){xhr.onabort=errorCallback;}else{xhr.onreadystatechange=function(){if(xhr.readyState===4){window.setTimeout(function(){if(callback){errorCallback();}});}};}\ncallback=callback(\"abort\");try{xhr.send(options.hasContent&&options.data||null);}catch(e){if(callback){throw e;}}},abort:function(){if(callback){callback();}}};}});jQuery.ajaxPrefilter(function(s){if(s.crossDomain){s.contents.script=false;}});jQuery.ajaxSetup({accepts:{script:\"text/javascript, application/javascript, \"+\"application/ecmascript, application/x-ecmascript\"},contents:{script:/\\b(?:java|ecma)script\\b/},converters:{\"text script\":function(text){jQuery.globalEval(text);return text;}}});jQuery.ajaxPrefilter(\"script\",function(s){if(s.cache===undefined){s.cache=false;}\nif(s.crossDomain){s.type=\"GET\";}});jQuery.ajaxTransport(\"script\",function(s){if(s.crossDomain||s.scriptAttrs){var script,callback;return{send:function(_,complete){script=jQuery(\"<script>\").attr(s.scriptAttrs||{}).prop({charset:s.scriptCharset,src:s.url}).on(\"load error\",callback=function(evt){script.remove();callback=null;if(evt){complete(evt.type===\"error\"?404:200,evt.type);}});document.head.appendChild(script[0]);},abort:function(){if(callback){callback();}}};}});var oldCallbacks=[],rjsonp=/(=)\\?(?=&|$)|\\?\\?/;jQuery.ajaxSetup({jsonp:\"callback\",jsonpCallback:function(){var callback=oldCallbacks.pop()||(jQuery.expando+\"_\"+(nonce.guid++));this[callback]=true;return callback;}});jQuery.ajaxPrefilter(\"json jsonp\",function(s,originalSettings,jqXHR){var callbackName,overwritten,responseContainer,jsonProp=s.jsonp!==false&&(rjsonp.test(s.url)?\"url\":typeof s.data===\"string\"&&(s.contentType||\"\").indexOf(\"application/x-www-form-urlencoded\")===0&&rjsonp.test(s.data)&&\"data\");if(jsonProp||s.dataTypes[0]===\"jsonp\"){callbackName=s.jsonpCallback=isFunction(s.jsonpCallback)?s.jsonpCallback():s.jsonpCallback;if(jsonProp){s[jsonProp]=s[jsonProp].replace(rjsonp,\"$1\"+callbackName);}else if(s.jsonp!==false){s.url+=(rquery.test(s.url)?\"&\":\"?\")+s.jsonp+\"=\"+callbackName;}\ns.converters[\"script json\"]=function(){if(!responseContainer){jQuery.error(callbackName+\" was not called\");}\nreturn responseContainer[0];};s.dataTypes[0]=\"json\";overwritten=window[callbackName];window[callbackName]=function(){responseContainer=arguments;};jqXHR.always(function(){if(overwritten===undefined){jQuery(window).removeProp(callbackName);}else{window[callbackName]=overwritten;}\nif(s[callbackName]){s.jsonpCallback=originalSettings.jsonpCallback;oldCallbacks.push(callbackName);}\nif(responseContainer&&isFunction(overwritten)){overwritten(responseContainer[0]);}\nresponseContainer=overwritten=undefined;});return\"script\";}});support.createHTMLDocument=(function(){var body=document.implementation.createHTMLDocument(\"\").body;body.innerHTML=\"<form></form><form></form>\";return body.childNodes.length===2;})();jQuery.parseHTML=function(data,context,keepScripts){if(typeof data!==\"string\"){return[];}\nif(typeof context===\"boolean\"){keepScripts=context;context=false;}\nvar base,parsed,scripts;if(!context){if(support.createHTMLDocument){context=document.implementation.createHTMLDocument(\"\");base=context.createElement(\"base\");base.href=document.location.href;context.head.appendChild(base);}else{context=document;}}\nparsed=rsingleTag.exec(data);scripts=!keepScripts&&[];if(parsed){return[context.createElement(parsed[1])];}\nparsed=buildFragment([data],context,scripts);if(scripts&&scripts.length){jQuery(scripts).remove();}\nreturn jQuery.merge([],parsed.childNodes);};jQuery.fn.load=function(url,params,callback){var selector,type,response,self=this,off=url.indexOf(\" \");if(off>-1){selector=stripAndCollapse(url.slice(off));url=url.slice(0,off);}\nif(isFunction(params)){callback=params;params=undefined;}else if(params&&typeof params===\"object\"){type=\"POST\";}\nif(self.length>0){jQuery.ajax({url:url,type:type||\"GET\",dataType:\"html\",data:params}).done(function(responseText){response=arguments;self.html(selector?jQuery(\"<div>\").append(jQuery.parseHTML(responseText)).find(selector):responseText);}).always(callback&&function(jqXHR,status){self.each(function(){callback.apply(this,response||[jqXHR.responseText,status,jqXHR]);});});}\nreturn this;};jQuery.expr.pseudos.animated=function(elem){return jQuery.grep(jQuery.timers,function(fn){return elem===fn.elem;}).length;};jQuery.offset={setOffset:function(elem,options,i){var curPosition,curLeft,curCSSTop,curTop,curOffset,curCSSLeft,calculatePosition,position=jQuery.css(elem,\"position\"),curElem=jQuery(elem),props={};if(position===\"static\"){elem.style.position=\"relative\";}\ncurOffset=curElem.offset();curCSSTop=jQuery.css(elem,\"top\");curCSSLeft=jQuery.css(elem,\"left\");calculatePosition=(position===\"absolute\"||position===\"fixed\")&&(curCSSTop+curCSSLeft).indexOf(\"auto\")>-1;if(calculatePosition){curPosition=curElem.position();curTop=curPosition.top;curLeft=curPosition.left;}else{curTop=parseFloat(curCSSTop)||0;curLeft=parseFloat(curCSSLeft)||0;}\nif(isFunction(options)){options=options.call(elem,i,jQuery.extend({},curOffset));}\nif(options.top!=null){props.top=(options.top-curOffset.top)+curTop;}\nif(options.left!=null){props.left=(options.left-curOffset.left)+curLeft;}\nif(\"using\"in options){options.using.call(elem,props);}else{curElem.css(props);}}};jQuery.fn.extend({offset:function(options){if(arguments.length){return options===undefined?this:this.each(function(i){jQuery.offset.setOffset(this,options,i);});}\nvar rect,win,elem=this[0];if(!elem){return;}\nif(!elem.getClientRects().length){return{top:0,left:0};}\nrect=elem.getBoundingClientRect();win=elem.ownerDocument.defaultView;return{top:rect.top+win.pageYOffset,left:rect.left+win.pageXOffset};},position:function(){if(!this[0]){return;}\nvar offsetParent,offset,doc,elem=this[0],parentOffset={top:0,left:0};if(jQuery.css(elem,\"position\")===\"fixed\"){offset=elem.getBoundingClientRect();}else{offset=this.offset();doc=elem.ownerDocument;offsetParent=elem.offsetParent||doc.documentElement;while(offsetParent&&(offsetParent===doc.body||offsetParent===doc.documentElement)&&jQuery.css(offsetParent,\"position\")===\"static\"){offsetParent=offsetParent.parentNode;}\nif(offsetParent&&offsetParent!==elem&&offsetParent.nodeType===1){parentOffset=jQuery(offsetParent).offset();parentOffset.top+=jQuery.css(offsetParent,\"borderTopWidth\",true);parentOffset.left+=jQuery.css(offsetParent,\"borderLeftWidth\",true);}}\nreturn{top:offset.top-parentOffset.top-jQuery.css(elem,\"marginTop\",true),left:offset.left-parentOffset.left-jQuery.css(elem,\"marginLeft\",true)};},offsetParent:function(){return this.map(function(){var offsetParent=this.offsetParent;while(offsetParent&&jQuery.css(offsetParent,\"position\")===\"static\"){offsetParent=offsetParent.offsetParent;}\nreturn offsetParent||documentElement;});}});jQuery.each({scrollLeft:\"pageXOffset\",scrollTop:\"pageYOffset\"},function(method,prop){var top=\"pageYOffset\"===prop;jQuery.fn[method]=function(val){return access(this,function(elem,method,val){var win;if(isWindow(elem)){win=elem;}else if(elem.nodeType===9){win=elem.defaultView;}\nif(val===undefined){return win?win[prop]:elem[method];}\nif(win){win.scrollTo(!top?val:win.pageXOffset,top?val:win.pageYOffset);}else{elem[method]=val;}},method,val,arguments.length);};});jQuery.each([\"top\",\"left\"],function(_i,prop){jQuery.cssHooks[prop]=addGetHookIf(support.pixelPosition,function(elem,computed){if(computed){computed=curCSS(elem,prop);return rnumnonpx.test(computed)?jQuery(elem).position()[prop]+\"px\":computed;}});});jQuery.each({Height:\"height\",Width:\"width\"},function(name,type){jQuery.each({padding:\"inner\"+name,content:type,\"\":\"outer\"+name},function(defaultExtra,funcName){jQuery.fn[funcName]=function(margin,value){var chainable=arguments.length&&(defaultExtra||typeof margin!==\"boolean\"),extra=defaultExtra||(margin===true||value===true?\"margin\":\"border\");return access(this,function(elem,type,value){var doc;if(isWindow(elem)){return funcName.indexOf(\"outer\")===0?elem[\"inner\"+name]:elem.document.documentElement[\"client\"+name];}\nif(elem.nodeType===9){doc=elem.documentElement;return Math.max(elem.body[\"scroll\"+name],doc[\"scroll\"+name],elem.body[\"offset\"+name],doc[\"offset\"+name],doc[\"client\"+name]);}\nreturn value===undefined?jQuery.css(elem,type,extra):jQuery.style(elem,type,value,extra);},type,chainable?margin:undefined,chainable);};});});jQuery.each([\"ajaxStart\",\"ajaxStop\",\"ajaxComplete\",\"ajaxError\",\"ajaxSuccess\",\"ajaxSend\"],function(_i,type){jQuery.fn[type]=function(fn){return this.on(type,fn);};});jQuery.fn.extend({bind:function(types,data,fn){return this.on(types,null,data,fn);},unbind:function(types,fn){return this.off(types,null,fn);},delegate:function(selector,types,data,fn){return this.on(types,selector,data,fn);},undelegate:function(selector,types,fn){return arguments.length===1?this.off(selector,\"**\"):this.off(types,selector||\"**\",fn);},hover:function(fnOver,fnOut){return this.mouseenter(fnOver).mouseleave(fnOut||fnOver);}});jQuery.each((\"blur focus focusin focusout resize scroll click dblclick \"+\"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave \"+\"change select submit keydown keypress keyup contextmenu\").split(\" \"),function(_i,name){jQuery.fn[name]=function(data,fn){return arguments.length>0?this.on(name,null,data,fn):this.trigger(name);};});var rtrim=/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g;jQuery.proxy=function(fn,context){var tmp,args,proxy;if(typeof context===\"string\"){tmp=fn[context];context=fn;fn=tmp;}\nif(!isFunction(fn)){return undefined;}\nargs=slice.call(arguments,2);proxy=function(){return fn.apply(context||this,args.concat(slice.call(arguments)));};proxy.guid=fn.guid=fn.guid||jQuery.guid++;return proxy;};jQuery.holdReady=function(hold){if(hold){jQuery.readyWait++;}else{jQuery.ready(true);}};jQuery.isArray=Array.isArray;jQuery.parseJSON=JSON.parse;jQuery.nodeName=nodeName;jQuery.isFunction=isFunction;jQuery.isWindow=isWindow;jQuery.camelCase=camelCase;jQuery.type=toType;jQuery.now=Date.now;jQuery.isNumeric=function(obj){var type=jQuery.type(obj);return(type===\"number\"||type===\"string\")&&!isNaN(obj-parseFloat(obj));};jQuery.trim=function(text){return text==null?\"\":(text+\"\").replace(rtrim,\"\");};if(typeof define===\"function\"&&define.amd){define(\"jquery\",[],function(){return jQuery;});}\nvar\n_jQuery=window.jQuery,_$=window.$;jQuery.noConflict=function(deep){if(window.$===jQuery){window.$=_$;}\nif(deep&&window.jQuery===jQuery){window.jQuery=_jQuery;}\nreturn jQuery;};if(typeof noGlobal===\"undefined\"){window.jQuery=window.$=jQuery;}\nreturn jQuery;});","requirejs-config.min.js":"(function(require){(function(){var config={map:{'*':{directoryRegionUpdater:'Magento_Directory/js/region-updater'}}};require.config(config);})();(function(){var config={waitSeconds:0,map:{'*':{'ko':'knockoutjs/knockout','knockout':'knockoutjs/knockout','mageUtils':'mage/utils/main','rjsResolver':'mage/requirejs/resolver','jquery-ui-modules/core':'jquery/ui-modules/core','jquery-ui-modules/accordion':'jquery/ui-modules/widgets/accordion','jquery-ui-modules/autocomplete':'jquery/ui-modules/widgets/autocomplete','jquery-ui-modules/button':'jquery/ui-modules/widgets/button','jquery-ui-modules/datepicker':'jquery/ui-modules/widgets/datepicker','jquery-ui-modules/dialog':'jquery/ui-modules/widgets/dialog','jquery-ui-modules/draggable':'jquery/ui-modules/widgets/draggable','jquery-ui-modules/droppable':'jquery/ui-modules/widgets/droppable','jquery-ui-modules/effect-blind':'jquery/ui-modules/effects/effect-blind','jquery-ui-modules/effect-bounce':'jquery/ui-modules/effects/effect-bounce','jquery-ui-modules/effect-clip':'jquery/ui-modules/effects/effect-clip','jquery-ui-modules/effect-drop':'jquery/ui-modules/effects/effect-drop','jquery-ui-modules/effect-explode':'jquery/ui-modules/effects/effect-explode','jquery-ui-modules/effect-fade':'jquery/ui-modules/effects/effect-fade','jquery-ui-modules/effect-fold':'jquery/ui-modules/effects/effect-fold','jquery-ui-modules/effect-highlight':'jquery/ui-modules/effects/effect-highlight','jquery-ui-modules/effect-scale':'jquery/ui-modules/effects/effect-scale','jquery-ui-modules/effect-pulsate':'jquery/ui-modules/effects/effect-pulsate','jquery-ui-modules/effect-shake':'jquery/ui-modules/effects/effect-shake','jquery-ui-modules/effect-slide':'jquery/ui-modules/effects/effect-slide','jquery-ui-modules/effect-transfer':'jquery/ui-modules/effects/effect-transfer','jquery-ui-modules/effect':'jquery/ui-modules/effect','jquery-ui-modules/menu':'jquery/ui-modules/widgets/menu','jquery-ui-modules/mouse':'jquery/ui-modules/widgets/mouse','jquery-ui-modules/position':'jquery/ui-modules/position','jquery-ui-modules/progressbar':'jquery/ui-modules/widgets/progressbar','jquery-ui-modules/resizable':'jquery/ui-modules/widgets/resizable','jquery-ui-modules/selectable':'jquery/ui-modules/widgets/selectable','jquery-ui-modules/selectmenu':'jquery/ui-modules/widgets/selectmenu','jquery-ui-modules/slider':'jquery/ui-modules/widgets/slider','jquery-ui-modules/sortable':'jquery/ui-modules/widgets/sortable','jquery-ui-modules/spinner':'jquery/ui-modules/widgets/spinner','jquery-ui-modules/tabs':'jquery/ui-modules/widgets/tabs','jquery-ui-modules/tooltip':'jquery/ui-modules/widgets/tooltip','jquery-ui-modules/widget':'jquery/ui-modules/widget','jquery-ui-modules/timepicker':'jquery/timepicker','vimeo':'vimeo/player','vimeoWrapper':'vimeo/vimeo-wrapper'}},shim:{'mage/adminhtml/backup':['prototype'],'mage/captcha':['prototype'],'mage/new-gallery':['jquery'],'jquery/ui':['jquery'],'matchMedia':{'exports':'mediaCheck'},'magnifier/magnifier':['jquery'],'vimeo/player':{'exports':'Player'}},paths:{'jquery/validate':'jquery/jquery.validate','jquery/file-uploader':'jquery/fileUploader/jquery.fileuploader','prototype':'legacy-build.min','jquery/jquery-storageapi':'js-storage/storage-wrapper','text':'mage/requirejs/text','domReady':'requirejs/domReady','spectrum':'jquery/spectrum/spectrum','tinycolor':'jquery/spectrum/tinycolor','jquery-ui-modules':'jquery/ui-modules'},config:{text:{'headers':{'X-Requested-With':'XMLHttpRequest'}}}};require(['jquery'],function($){'use strict';$.noConflict();});require.config(config);})();(function(){var config={map:{'*':{'rowBuilder':'Magento_Theme/js/row-builder','toggleAdvanced':'mage/toggle','translateInline':'mage/translate-inline','sticky':'mage/sticky','tabs':'mage/tabs','collapsible':'mage/collapsible','dropdownDialog':'mage/dropdown','dropdown':'mage/dropdowns','accordion':'mage/accordion','loader':'mage/loader','tooltip':'mage/tooltip','deletableItem':'mage/deletable-item','itemTable':'mage/item-table','fieldsetControls':'mage/fieldset-controls','fieldsetResetControl':'mage/fieldset-controls','redirectUrl':'mage/redirect-url','loaderAjax':'mage/loader','menu':'mage/menu','popupWindow':'mage/popup-window','validation':'mage/validation/validation','breadcrumbs':'Magento_Theme/js/view/breadcrumbs','jquery/ui':'jquery/compat','cookieStatus':'Magento_Theme/js/cookie-status'}},deps:['mage/common','mage/dataPost','mage/bootstrap'],config:{mixins:{'Magento_Theme/js/view/breadcrumbs':{'Magento_Theme/js/view/add-home-breadcrumb':true}}}};if(typeof window!=='undefined'&&window.document){try{if(!window.localStorage||!window.sessionStorage){throw new Error();}\nlocalStorage.setItem('storage_test',1);localStorage.removeItem('storage_test');}catch(e){config.deps.push('mage/polyfill');}}\nrequire.config(config);})();(function(){var config={map:{'*':{checkoutBalance:'Magento_Customer/js/checkout-balance',address:'Magento_Customer/js/address',changeEmailPassword:'Magento_Customer/js/change-email-password',passwordStrengthIndicator:'Magento_Customer/js/password-strength-indicator',zxcvbn:'Magento_Customer/js/zxcvbn',addressValidation:'Magento_Customer/js/addressValidation',showPassword:'Magento_Customer/js/show-password','Magento_Customer/address':'Magento_Customer/js/address','Magento_Customer/change-email-password':'Magento_Customer/js/change-email-password',globalSessionLoader:'Magento_Customer/js/customer-global-session-loader.js'}}};require.config(config);})();(function(){var config={map:{'*':{escaper:'Magento_Security/js/escaper'}}};require.config(config);})();(function(){var config={map:{'*':{quickSearch:'Magento_Search/js/form-mini','Magento_Search/form-mini':'Magento_Search/js/form-mini'}}};require.config(config);})();(function(){var config={map:{'*':{priceBox:'Magento_Catalog/js/price-box',priceOptionDate:'Magento_Catalog/js/price-option-date',priceOptionFile:'Magento_Catalog/js/price-option-file',priceOptions:'Magento_Catalog/js/price-options',priceUtils:'Magento_Catalog/js/price-utils'}}};require.config(config);})();(function(){var config={map:{'*':{compareList:'Magento_Catalog/js/list',relatedProducts:'Magento_Catalog/js/related-products',upsellProducts:'Magento_Catalog/js/upsell-products',productListToolbarForm:'Magento_Catalog/js/product/list/toolbar',catalogGallery:'Magento_Catalog/js/gallery',catalogAddToCart:'Magento_Catalog/js/catalog-add-to-cart'}},config:{mixins:{'Magento_Theme/js/view/breadcrumbs':{'Magento_Catalog/js/product/breadcrumbs':true}}}};require.config(config);})();(function(){var config={map:{'*':{addToCart:'Magento_Msrp/js/msrp'}}};require.config(config);})();(function(){var config={map:{'*':{catalogSearch:'Magento_CatalogSearch/form-mini'}}};require.config(config);})();(function(){var config={map:{'*':{creditCardType:'Magento_Payment/js/cc-type','Magento_Payment/cc-type':'Magento_Payment/js/cc-type'}}};require.config(config);})();(function(){var config={map:{'*':{giftMessage:'Magento_Sales/js/gift-message',ordersReturns:'Magento_Sales/js/orders-returns','Magento_Sales/gift-message':'Magento_Sales/js/gift-message','Magento_Sales/orders-returns':'Magento_Sales/js/orders-returns'}}};require.config(config);})();(function(){var config={map:{'*':{discountCode:'Magento_Checkout/js/discount-codes',shoppingCart:'Magento_Checkout/js/shopping-cart',regionUpdater:'Magento_Checkout/js/region-updater',sidebar:'Magento_Checkout/js/sidebar',checkoutLoader:'Magento_Checkout/js/checkout-loader',checkoutData:'Magento_Checkout/js/checkout-data',proceedToCheckout:'Magento_Checkout/js/proceed-to-checkout',catalogAddToCart:'Magento_Catalog/js/catalog-add-to-cart'}},shim:{'Magento_Checkout/js/model/totals':{deps:['Magento_Customer/js/customer-data']}}};require.config(config);})();(function(){var config={map:{'*':{requireCookie:'Magento_Cookie/js/require-cookie',cookieNotices:'Magento_Cookie/js/notices'}}};require.config(config);})();(function(){var config={map:{'*':{downloadable:'Magento_Downloadable/js/downloadable','Magento_Downloadable/downloadable':'Magento_Downloadable/js/downloadable'}}};require.config(config);})();(function(){var config={map:{'*':{bundleOption:'Magento_Bundle/bundle',priceBundle:'Magento_Bundle/js/price-bundle',slide:'Magento_Bundle/js/slide',productSummary:'Magento_Bundle/js/product-summary'}}};require.config(config);})();(function(){var config={map:{'*':{giftOptions:'Magento_GiftMessage/js/gift-options','Magento_GiftMessage/gift-options':'Magento_GiftMessage/js/gift-options'}}};require.config(config);})();(function(){var config={deps:[],shim:{'chartjs/chartjs-adapter-moment':['moment'],'chartjs/es6-shim.min':{},'tiny_mce_5/tinymce.min':{exports:'tinyMCE'}},paths:{'ui/template':'Magento_Ui/templates'},map:{'*':{uiElement:'Magento_Ui/js/lib/core/element/element',uiCollection:'Magento_Ui/js/lib/core/collection',uiComponent:'Magento_Ui/js/lib/core/collection',uiClass:'Magento_Ui/js/lib/core/class',uiEvents:'Magento_Ui/js/lib/core/events',uiRegistry:'Magento_Ui/js/lib/registry/registry',consoleLogger:'Magento_Ui/js/lib/logger/console-logger',uiLayout:'Magento_Ui/js/core/renderer/layout',buttonAdapter:'Magento_Ui/js/form/button-adapter',chartJs:'chartjs/Chart.min','chart.js':'chartjs/Chart.min',tinymce:'tiny_mce_5/tinymce.min',wysiwygAdapter:'mage/adminhtml/wysiwyg/tiny_mce/tinymce5Adapter'}}};require.config(config);})();(function(){var config={deps:['Magento_Ui/js/core/app']};require.config(config);})();(function(){var config={map:{'*':{pageCache:'Magento_PageCache/js/page-cache'}},deps:['Magento_PageCache/js/form-key-provider']};require.config(config);})();(function(){var config={map:{'*':{captcha:'Magento_Captcha/js/captcha','Magento_Captcha/captcha':'Magento_Captcha/js/captcha'}}};require.config(config);})();(function(){var config={map:{'*':{configurable:'Magento_ConfigurableProduct/js/configurable'}},config:{mixins:{'Magento_Catalog/js/catalog-add-to-cart':{'Magento_ConfigurableProduct/js/catalog-add-to-cart-mixin':true}}}};require.config(config);})();(function(){var config={map:{'*':{multiShipping:'Magento_Multishipping/js/multi-shipping',orderOverview:'Magento_Multishipping/js/overview',payment:'Magento_Multishipping/js/payment',billingLoader:'Magento_Checkout/js/checkout-loader',cartUpdate:'Magento_Checkout/js/action/update-shopping-cart',multiShippingBalance:'Magento_Multishipping/js/multi-shipping-balance'}}};require.config(config);})();(function(){var config={map:{'*':{recentlyViewedProducts:'Magento_Reports/js/recently-viewed'}}};require.config(config);})();(function(){var config={config:{mixins:{'Magento_Checkout/js/model/quote':{'Magento_InventoryInStorePickupFrontend/js/model/quote-ext':true},'Magento_Checkout/js/view/shipping-information':{'Magento_InventoryInStorePickupFrontend/js/view/shipping-information-ext':true},'Magento_Checkout/js/model/checkout-data-resolver':{'Magento_InventoryInStorePickupFrontend/js/model/checkout-data-resolver-ext':true},'Magento_Checkout/js/checkout-data':{'Magento_InventoryInStorePickupFrontend/js/checkout-data-ext':true}}}};require.config(config);})();(function(){var config={config:{mixins:{'Magento_Swatches/js/swatch-renderer':{'Magento_InventorySwatchesFrontendUi/js/swatch-renderer':true}}}};require.config(config);})();(function(){var config={map:{'*':{subscriptionStatusResolver:'Magento_Newsletter/js/subscription-status-resolver',newsletterSignUp:'Magento_Newsletter/js/newsletter-sign-up'}}};require.config(config);})();(function(){var config={config:{mixins:{'Magento_Checkout/js/action/select-payment-method':{'Magento_SalesRule/js/action/select-payment-method-mixin':true},'Magento_Checkout/js/model/shipping-save-processor':{'Magento_SalesRule/js/model/shipping-save-processor-mixin':true},'Magento_Checkout/js/action/place-order':{'Magento_SalesRule/js/model/place-order-mixin':true}}}};require.config(config);})();(function(){var config={map:{'*':{'slick':'Magento_PageBuilder/js/resource/slick/slick','jarallax':'Magento_PageBuilder/js/resource/jarallax/jarallax','jarallaxVideo':'Magento_PageBuilder/js/resource/jarallax/jarallax-video','Magento_PageBuilder/js/resource/vimeo/player':'vimeo/player','Magento_PageBuilder/js/resource/vimeo/vimeo-wrapper':'vimeo/vimeo-wrapper','jarallax-wrapper':'Magento_PageBuilder/js/resource/jarallax/jarallax-wrapper'}},shim:{'Magento_PageBuilder/js/resource/slick/slick':{deps:['jquery']},'Magento_PageBuilder/js/resource/jarallax/jarallax-video':{deps:['jarallax-wrapper','vimeoWrapper']}}};require.config(config);})();(function(){var config={shim:{cardinaljs:{exports:'Cardinal'},cardinaljsSandbox:{exports:'Cardinal'}},paths:{cardinaljsSandbox:'https://includestest.ccdc02.com/cardinalcruise/v1/songbird',cardinaljs:'https://songbird.cardinalcommerce.com/edge/v1/songbird'}};require.config(config);})();(function(){var config={map:{'*':{transparent:'Magento_Payment/js/transparent','Magento_Payment/transparent':'Magento_Payment/js/transparent'}}};require.config(config);})();(function(){var config={map:{'*':{orderReview:'Magento_Paypal/js/order-review','Magento_Paypal/order-review':'Magento_Paypal/js/order-review',paypalCheckout:'Magento_Paypal/js/paypal-checkout'}}};require.config(config);})();(function(){var config={config:{mixins:{'Magento_Customer/js/customer-data':{'Magento_Persistent/js/view/customer-data-mixin':true}}}};require.config(config);})();(function(){var config={map:{'*':{loadPlayer:'Magento_ProductVideo/js/load-player',fotoramaVideoEvents:'Magento_ProductVideo/js/fotorama-add-video-events','vimeoWrapper':'vimeo/vimeo-wrapper'}},shim:{vimeoAPI:{},'Magento_ProductVideo/js/load-player':{deps:['vimeoWrapper']}}};require.config(config);})();(function(){var config={config:{mixins:{'Magento_Checkout/js/action/place-order':{'Magento_CheckoutAgreements/js/model/place-order-mixin':true},'Magento_Checkout/js/action/set-payment-information':{'Magento_CheckoutAgreements/js/model/set-payment-information-mixin':true}}}};require.config(config);})();(function(){var config={config:{mixins:{'Magento_Checkout/js/model/place-order':{'Magento_ReCaptchaCheckout/js/model/place-order-mixin':true},'Magento_ReCaptchaWebapiUi/js/webapiReCaptchaRegistry':{'Magento_ReCaptchaCheckout/js/webapiReCaptchaRegistry-mixin':true}}}};require.config(config);})();(function(){'use strict';var config={config:{mixins:{'Magento_Ui/js/view/messages':{'Magento_ReCaptchaFrontendUi/js/ui-messages-mixin':true}}}};require.config(config);})();(function(){var config={config:{mixins:{'Magento_Paypal/js/view/payment/method-renderer/payflowpro-method':{'Magento_ReCaptchaPaypal/js/payflowpro-method-mixin':true}}}};require.config(config);})();(function(){var config={config:{mixins:{'jquery':{'Magento_ReCaptchaWebapiUi/js/jquery-mixin':true}}}};require.config(config);})();(function(){var config={map:{'*':{mageTranslationDictionary:'Magento_Translation/js/mage-translation-dictionary'}},deps:['mageTranslationDictionary']};require.config(config);})();(function(){var config={map:{'*':{editTrigger:'mage/edit-trigger',addClass:'Magento_Translation/js/add-class','Magento_Translation/add-class':'Magento_Translation/js/add-class'}}};require.config(config);})();(function(){var config={map:{'*':{configurableVariationQty:'Magento_InventoryConfigurableProductFrontendUi/js/configurable-variation-qty'}},config:{mixins:{'Magento_ConfigurableProduct/js/configurable':{'Magento_InventoryConfigurableProductFrontendUi/js/configurable':true}}}};require.config(config);})();(function(){var config={config:{mixins:{'Magento_Checkout/js/view/payment/list':{'Magento_PaypalCaptcha/js/view/payment/list-mixin':true},'Magento_Paypal/js/view/payment/method-renderer/payflowpro-method':{'Magento_PaypalCaptcha/js/view/payment/method-renderer/payflowpro-method-mixin':true},'Magento_Captcha/js/view/checkout/defaultCaptcha':{'Magento_PaypalCaptcha/js/view/checkout/defaultCaptcha-mixin':true}}}};require.config(config);})();(function(){var config={map:{'*':{'taxToggle':'Magento_Weee/js/tax-toggle','Magento_Weee/tax-toggle':'Magento_Weee/js/tax-toggle'}}};require.config(config);})();(function(){var config={map:{'*':{wishlist:'Magento_Wishlist/js/wishlist',addToWishlist:'Magento_Wishlist/js/add-to-wishlist',wishlistSearch:'Magento_Wishlist/js/search'}}};require.config(config);})();(function(){var config={map:{'*':{catalogAddToCart:'MGS_AjaxCart/js/action/catalog-add-to-cart',widgetAddToCart:'MGS_AjaxCart/js/action/widget-add-to-cart',mgsAjaxCartFooter:'MGS_AjaxCart/js/footer',}},shim:{'magnificPopup':['jquery']},paths:{'magnificPopup':'MGS_AjaxCart/js/lib/magnific-popup'}};require.config(config);})();(function(){var config={config:{mixins:{'Smile_ElasticsuiteCatalog/js/range-slider-widget':{'MGS_Ajaxlayernavigation/js/range-slider-widget':true}}}};require.config(config);})();(function(){var config={map:{'*':{aQuickView:'MGS_Aquickview/js/quickview'}},paths:{},};require.config(config);})();(function(){var config={\"map\":{\"*\":{\"zoom-images\":\"MGS_ExtraGallery/js/jquery.zoom.min\"}},\"paths\":{\"zoom-images\":\"MGS_ExtraGallery/js/jquery.zoom.min\"},\"shim\":{\"MGS_ExtraGallery/js/jquery.zoom.min\":[\"jquery\"]},config:{mixins:{'Magento_ConfigurableProduct/js/configurable':{'MGS_ExtraGallery/js/configurable':true},'Magento_Swatches/js/swatch-renderer':{'MGS_ExtraGallery/js/swatch-renderer':true}}}};require.config(config);})();(function(){var config={\"map\":{\"*\":{\"mgsowlcarousel\":\"MGS_Fbuilder/js/owl.carousel.min\",\"magnificPopup\":\"MGS_Fbuilder/js/jquery.magnific-popup.min\",\"lazyload\":\"MGS_Fbuilder/js/jquery.lazyload\",\"waypoints\":\"MGS_Fbuilder/js/waypoints.min\",\"fbuilderSearch\":\"MGS_Fbuilder/js/search-suggest\",\"chartjs\":\"MGS_Fbuilder/js/chart.min\",\"mgslightbox\":\"MGS_Fbuilder/js/lightbox.min\",\"beforeafter\":\"MGS_Fbuilder/js/jquery.twentytwenty\",\"bridget\":\"MGS_Fbuilder/js/jquery-bridget\"}},\"paths\":{\"mgsowlcarousel\":\"MGS_Fbuilder/js/owl.carousel.min\",\"magnificPopup\":\"MGS_Fbuilder/js/jquery.magnific-popup.min\",\"lazyload\":\"MGS_Fbuilder/js/jquery.lazyload\",\"waypoints\":\"MGS_Fbuilder/js/waypoints.min\",\"chartjs\":\"MGS_Fbuilder/js/chart.min\",\"mgslightbox\":\"MGS_Fbuilder/js/lightbox.min\",\"beforeafter\":\"MGS_Fbuilder/js/jquery.twentytwenty\",\"bridget\":\"MGS_Fbuilder/js/jquery-bridget\"},\"shim\":{\"MGS_Fbuilder/js/owl.carousel.min\":[\"jquery\"],\"MGS_Fbuilder/js/jquery.magnific-popup.min\":[\"jquery\"],\"MGS_Fbuilder/js/jquery.lazyload\":[\"jquery\"],\"MGS_Fbuilder/js/waypoints.min\":[\"jquery\"],\"MGS_Fbuilder/js/lightbox.min\":[\"jquery\"],\"MGS_Fbuilder/js/jquery.twentytwenty\":[\"jquery\"],\"MGS_Fbuilder/js/jquery-bridget\":[\"jquery\"]}};require.config(config);})();(function(){var config={map:{'*':{searchListToolbarForm:'MGS_InstantSearch/js/search/list/toolbar',}}};require.config(config);})();(function(){var config={\"map\":{\"*\":{\"lookbook/owlcarousel\":\"MGS_Lookbook/js/owl.carousel\"}},\"paths\":{\"lookbook/owlcarousel\":\"MGS_Lookbook/js/owl.carousel\"},\"shim\":{\"MGS_Lookbook/js/owl.carousel\":[\"jquery\"]}};require.config(config);})();(function(){var config={};if(window.location.href.indexOf('onestepcheckout')!==-1){config={map:{'*':{'Magento_Checkout/js/model/shipping-rate-service':'MGS_OSCheckout/js/model/shipping/shipping-rate-service','Magento_Checkout/js/model/shipping-rates-validator':'MGS_OSCheckout/js/model/shipping/shipping-rates-validator','Magento_CheckoutAgreements/js/model/agreements-assigner':'MGS_OSCheckout/js/model/agreement/agreements-assigner'},'MGS_OSCheckout/js/model/shipping/shipping-rates-validator':{'Magento_Checkout/js/model/shipping-rates-validator':'Magento_Checkout/js/model/shipping-rates-validator'},'Magento_Checkout/js/model/shipping-save-processor/default':{'Magento_Checkout/js/model/full-screen-loader':'MGS_OSCheckout/js/model/one-step-checkout-loader'},'Magento_Checkout/js/action/set-billing-address':{'Magento_Checkout/js/model/full-screen-loader':'MGS_OSCheckout/js/model/one-step-checkout-loader'},'Magento_SalesRule/js/action/set-coupon-code':{'Magento_Checkout/js/model/full-screen-loader':'MGS_OSCheckout/js/model/onestepcheckout-loader/discount'},'Magento_SalesRule/js/action/cancel-coupon':{'Magento_Checkout/js/model/full-screen-loader':'MGS_OSCheckout/js/model/onestepcheckout-loader/discount'},'MGS_OSCheckout/js/model/one-step-checkout-loader':{'Magento_Checkout/js/model/full-screen-loader':'Magento_Checkout/js/model/full-screen-loader'},},config:{mixins:{'Magento_Braintree/js/view/payment/method-renderer/paypal':{'MGS_OSCheckout/js/view/payment/braintree-paypal-mixins':true},'Magento_Checkout/js/action/place-order':{'MGS_OSCheckout/js/action/place-order-mixins':true},'Magento_Paypal/js/action/set-payment-method':{'MGS_OSCheckout/js/model/set-payment-method-mixin':true}}}};if(window.location.href.indexOf('#')!==-1){window.history.pushState(\"\",document.title,window.location.pathname);}}\nrequire.config(config);})();(function(){var config={map:{'*':{storelocator:'MGS_StoreLocator/js/storelocator'}}};require.config(config);})();(function(){var config={\"map\":{\"*\":{\"mLazysizes\":\"MGS_ThemeSettings/js/lazysizes.min\",\"mgsvisible\":\"MGS_ThemeSettings/js/element_visible\",\"mgsbgvideo\":\"MGS_ThemeSettings/js/jquery.mb.YTPlayer.src\",\"mrotateImage\":\"MGS_ThemeSettings/js/j360\",\"mgsslick\":\"MGS_ThemeSettings/js/slick.min\",\"mgsmasonry\":\"MGS_ThemeSettings/js/masonryChangeRow.pkgd\",\"MgsModelViewLegacy\":\"MGS_ThemeSettings/js/model-ar-legacy\",\"stickyContent\":\"MGS_ThemeSettings/js/jquery.sticky-kit.min\"}},\"paths\":{\"mLazysizes\":\"MGS_ThemeSettings/js/lazysizes.min\",\"mgsvisible\":\"MGS_ThemeSettings/js/element_visible\",\"mgsbgvideo\":\"MGS_ThemeSettings/js/jquery.mb.YTPlayer.src\",\"mrotateImage\":\"MGS_ThemeSettings/js/j360\",\"mgsslick\":\"MGS_ThemeSettings/js/slick.min\",\"mgsmasonry\":\"MGS_ThemeSettings/js/masonryChangeRow.pkgd\",\"MgsModelViewLegacy\":\"MGS_ThemeSettings/js/model-ar-legacy\",\"stickyContent\":\"MGS_ThemeSettings/js/jquery.sticky-kit.min\",},\"shim\":{\"MGS_ThemeSettings/js/element_visible\":[\"jquery\"],\"MGS_ThemeSettings/js/jquery.mb.YTPlayer.src\":[\"jquery\"],\"MGS_ThemeSettings/js/j360\":[\"jquery\"],\"MGS_ThemeSettings/js/masonryChangeRow.pkgd\":[\"jquery\"],\"MGS_ThemeSettings/js/model-ar-legacy\":[\"jquery\"],\"MGS_ThemeSettings/js/model-ar.min\":[\"jquery\"],\"MGS_ThemeSettings/js/jquery.sticky-kit.min\":[\"jquery\"]},config:{mixins:{'Magento_Swatches/js/swatch-renderer':{'MGS_ThemeSettings/js/swatch-renderer':true}}}};require.config(config);})();(function(){var config={paths:{'jquery/file-uploader':'Mageplaza_Core/lib/fileUploader/jquery.fileuploader','mageplaza/core/jquery/popup':'Mageplaza_Core/js/jquery.magnific-popup.min','mageplaza/core/owl.carousel':'Mageplaza_Core/js/owl.carousel.min','mageplaza/core/bootstrap':'Mageplaza_Core/js/bootstrap.min',mpIonRangeSlider:'Mageplaza_Core/js/ion.rangeSlider.min',touchPunch:'Mageplaza_Core/js/jquery.ui.touch-punch.min',mpDevbridgeAutocomplete:'Mageplaza_Core/js/jquery.autocomplete.min'},shim:{\"mageplaza/core/jquery/popup\":[\"jquery\"],\"mageplaza/core/owl.carousel\":[\"jquery\"],\"mageplaza/core/bootstrap\":[\"jquery\"],mpIonRangeSlider:[\"jquery\"],mpDevbridgeAutocomplete:[\"jquery\"],touchPunch:['jquery','jquery-ui-modules/core','jquery-ui-modules/mouse','jquery-ui-modules/widget']}};require.config(config);})();(function(){var config={};if(typeof window.AVADA_EM!=='undefined'){config={config:{mixins:{'Magento_Checkout/js/view/billing-address':{'Mageplaza_Smtp/js/view/billing-address-mixins':true},'Magento_Checkout/js/view/shipping':{'Mageplaza_Smtp/js/view/shipping-mixins':true}}}};}\nrequire.config(config);})();(function(){var config={paths:{socialProvider:'Mageplaza_SocialLogin/js/provider',socialPopupForm:'Mageplaza_SocialLogin/js/popup'},map:{'*':{'Magento_Checkout/js/proceed-to-checkout':'Mageplaza_SocialLogin/js/proceed-to-checkout'}}};require.config(config);})();(function(){var config={map:{'*':{'easing':'magepow/easing','slick':'magepow/slick','gridSlider':'magepow/grid-slider',},},paths:{'magepow/easing':'Magepow_Core/js/plugin/jquery.easing.min','magepow/slick':'Magepow_Core/js/plugin/slick.min','magepow/grid-slider':'Magepow_Core/js/grid-slider',},shim:{'magepow/easing':{deps:['jquery']},'magepow/slick':{deps:['jquery']}}};require.config(config);})();(function(){var config={map:{'*':{infinitescroll:'Magepow_InfiniteScroll/js/plugin/infinitescroll',}},paths:{'magepow/infinitescroll':'Magepow_InfiniteScroll/js/plugin/infinitescroll',},shim:{'magepow/infinitescroll':{deps:['jquery']}}};require.config(config);})();(function(){var config={map:{'*':{sizechart:'Magepow_Sizechart/js/popup'}},paths:{'magepow/sizechart':\"Magepow_Sizechart/js/popup\"},shim:{'magepow/sizechart':{deps:['jquery']}}}\nrequire.config(config);})();(function(){var config={map:{'*':{MagentoMetaTrack:'Meta_Conversion/js/tracking'}}};require.config(config);})();(function(){var config={map:{'*':{'plumrocket/utils':'Plumrocket_Base/js/utils'}}};require.config(config);})();(function(){var config={config:{mixins:{'Magento_Ui/js/lib/validation/validator':{'Smile_ElasticsuiteCore/js/validation/validator-mixin':true}}},};require.config(config);})();(function(){var config={map:{'*':{quickSearch:'Smile_ElasticsuiteCore/js/form-mini'}}};require.config(config);})();(function(){var config={map:{'*':{rangeSlider:'Smile_ElasticsuiteCatalog/js/range-slider-widget'}},shim:{'Smile_ElasticsuiteCatalog/js/jquery.ui.touch-punch.min':{deps:['Smile_ElasticsuiteCatalog/js/mouse']}}};require.config(config);})();(function(){var config={'paths':{'dmpt':'Sparsh_AbandonedCart/js/dmpt','stick-to-me':'Sparsh_AbandonedCart/js/stick-to-me'},'shim':{'dmpt':{exports:'_dmTrack',deps:['jquery']},'stick-to-me':{deps:['jquery']}}};require.config(config);})();(function(){var config={map:{'*':{referralPoints:'Webkul_RewardSystem/js/referral-points',}}};require.config(config);})();(function(){var config={deps:['Magento_Theme/js/theme']};require.config(config);})();(function(){var config={\"map\":{\"*\":{\"mgs/isotope\":\"MGS_Portfolio/js/isotope.pkgd.min\",}},\"paths\":{\"mgs/isotope\":\"MGS_Portfolio/js/isotope.pkgd.min\",}};require.config(config);})();})(require);","matchMedia.min.js":"/*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas, David Knight. MIT license */\nwindow.matchMedia||(window.matchMedia=function(){\"use strict\";var styleMedia=(window.styleMedia||window.media);if(!styleMedia){var style=document.createElement('style'),script=document.getElementsByTagName('script')[0],info=null;style.type='text/css';style.id='matchmediajs-test';if(!script){document.head.appendChild(style);}else{script.parentNode.insertBefore(style,script);}\ninfo=('getComputedStyle'in window)&&window.getComputedStyle(style,null)||style.currentStyle;styleMedia={matchMedium:function(media){var text='@media '+media+'{ #matchmediajs-test { width: 1px; } }';if(style.styleSheet){style.styleSheet.cssText=text;}else{style.textContent=text;}\nreturn info.width==='1px';}};}\nreturn function(media){return{matches:styleMedia.matchMedium(media||'all'),media:media||'all'};};}());\n/*! matchMedia() polyfill addListener/removeListener extension. Author & copyright (c) 2012: Scott Jehl. Dual MIT/BSD license */\n(function(){if(window.matchMedia&&window.matchMedia('all').addListener){return false;}\nvar localMatchMedia=window.matchMedia,hasMediaQueries=localMatchMedia('only all').matches,isListening=false,timeoutID=0,queries=[],handleChange=function(evt){clearTimeout(timeoutID);timeoutID=setTimeout(function(){for(var i=0,il=queries.length;i<il;i++){var mql=queries[i].mql,listeners=queries[i].listeners||[],matches=localMatchMedia(mql.media).matches;if(matches!==mql.matches){mql.matches=matches;for(var j=0,jl=listeners.length;j<jl;j++){listeners[j].call(window,mql);}}}},30);};window.matchMedia=function(media){var mql=localMatchMedia(media),listeners=[],index=0;mql.addListener=function(listener){if(!hasMediaQueries){return;}\nif(!isListening){isListening=true;window.addEventListener('resize',handleChange,true);}\nif(index===0){index=queries.push({mql:mql,listeners:listeners});}\nlisteners.push(listener);};mql.removeListener=function(listener){for(var i=0,il=listeners.length;i<il;i++){if(listeners[i]===listener){listeners.splice(i,1);}}};return mql;};}());window.mediaCheck=function(options){var mq;function mqChange(mq,options){if(mq.matches){if(typeof options.entry===\"function\"){options.entry();}}else if(typeof options.exit===\"function\"){options.exit();}};mq=window.matchMedia(options.media);mq.addListener(function(){mqChange(mq,options);});mqChange(mq,options);};","requirejs-min-resolver.min.js":"(function(){var ctx=require.s.contexts._,origNameToUrl=ctx.nameToUrl,baseUrl=ctx.config.baseUrl;ctx.nameToUrl=function(){var url=origNameToUrl.apply(ctx,arguments);if(url.indexOf(baseUrl)===0&&!url.match(/\\/tiny_mce\\//)&&!url.match(/\\/v1\\/songbird/)){url=url.replace(/(\\.min)?\\.js$/,'.min.js');}\nreturn url;};})();","Magento_Theme/js/cookie-status.min.js":"define(['jquery','Magento_Ui/js/modal/modal','mage/translate'],function($,modal){'use strict';$.widget('mage.cookieStatus',{options:{type:'popup',responsive:true,innerScroll:true,autoOpen:true,buttons:[{text:$.mage.__('Close'),class:'cookie-status',click:function(){this.closeModal();}}]},_init:function(){if(!navigator.cookieEnabled){modal(this.options,$('#cookie-status'));}}});return $.mage.cookieStatus;});","Magento_Theme/js/row-builder.min.js":"define(['jquery','mage/template','jquery-ui-modules/widget'],function($,mageTemplate){'use strict';$.widget('mage.rowBuilder',{options:{rowTemplate:'#template-registrant',rowContainer:'#registrant-container',rowIndex:0,rowCount:0,rowParentElem:'<li></li>',rowContainerClass:'fields',addRowBtn:'#add-registrant-button',btnRemoveIdPrefix:'btn-remove',btnRemoveSelector:'.btn-remove',rowIdPrefix:'row',additionalRowClass:'add-row',formDataPost:null,addEventSelector:'button',remEventSelector:'a',hideFirstRowAddSeparator:true,maxRows:1000,maxRowsMsg:'#max-registrant-message'},_create:function(){this.rowTemplate=mageTemplate(this.options.rowTemplate);this.options.rowCount=this.options.rowIndex=0;$($.proxy(this.ready,this));this.element.on('click',this.options.addEventSelector+this.options.addRowBtn,$.proxy(this.handleAdd,this));this.element.on('click',this.options.remEventSelector+this.options.btnRemoveSelector,$.proxy(this.handleRemove,this));},ready:function(){if(this.options.formDataPost&&this.options.formDataPost.formData&&this.options.formDataPost.formData.length){this.processFormDataArr(this.options.formDataPost);}else if(this.options.rowIndex===0&&this.options.maxRows!==0){this.addRow(0);}},processFormDataArr:function(formDataArr){var formData=formDataArr.formData,templateFields=formDataArr.templateFields,formRow,i,j;for(i=this.options.rowIndex=0;i<formData.length;this.options.rowIndex=i++){this.addRow(i);formRow=formData[i];for(j=0;j<formRow.length;j++){this.setFieldById(templateFields[j]+i,formRow[j]);}}},addRow:function(index){var row=$(this.options.rowParentElem),tmpl;row.addClass(this.options.rowContainerClass).attr('id',this.options.rowIdPrefix+index);tmpl=this.rowTemplate({data:{_index_:index}});$(tmpl).appendTo(row);$(this.options.rowContainer).append(row).trigger('contentUpdated');row.addClass(this.options.additionalRowClass);if(this.options.rowIndex===0&&this.options.hideFirstRowAddSeparator){$('#'+this._esc(this.options.btnRemoveIdPrefix)+'0').remove();$('#'+this._esc(this.options.rowIdPrefix)+'0').removeClass(this.options.additionalRowClass);}\nthis.maxRowCheck(++this.options.rowCount);return row;},removeRow:function(rowIndex){$('#'+this._esc(this.options.rowIdPrefix)+rowIndex).remove();this.maxRowCheck(--this.options.rowCount);return false;},maxRowCheck:function(rowIndex){var addRowBtn=$(this.options.addRowBtn),maxRowMsg=$(this.options.maxRowsMsg);if(rowIndex>=this.options.maxRows){addRowBtn.hide();maxRowMsg.show();}else if(addRowBtn.is(':hidden')){addRowBtn.show();maxRowMsg.hide();}},setFieldById:function(domId,value){var x=$('#'+this._esc(domId));if(x.length){if(x.is(':checkbox')){x.attr('checked',true);}else if(x.is('option')){x.attr('selected','selected');}else{x.val(value);}}},handleAdd:function(){this.addRow(++this.options.rowIndex);return false;},handleRemove:function(e){this.removeRow($(e.currentTarget).closest('[id^=\"'+this.options.btnRemoveIdPrefix+'\"]').attr('id').replace(this.options.btnRemoveIdPrefix,''));return false;},_esc:function(str){return str?str.replace(/([ ;&,.+*~\\':\"!\\^$\\[\\]()=>|\\/@])/g,'\\\\$1'):str;}});return $.mage.rowBuilder;});","Magento_Theme/js/theme.min.js":"define(['jquery','mage/smart-keyboard-handler','mage/mage','domReady!'],function($,keyboardHandler){'use strict';$('.cart-summary').mage('sticky',{container:'#maincontent'});$('.panel.header > .header.links').clone().appendTo('#store\\\\.links');$('#store\\\\.links li a').each(function(){var id=$(this).attr('id');if(id!==undefined){$(this).attr('id',id+'_mobile');}});keyboardHandler.apply();});","Magento_Theme/js/view/add-home-breadcrumb.min.js":"define(['jquery','Magento_Theme/js/model/breadcrumb-list','mage/translate'],function($,breadcrumbList){'use strict';var homeCrumb=function(){return{name:'home',label:$.mage.__('Home'),title:$.mage.__('Go to Home Page'),link:BASE_URL||''};};return function(breadcrumb){breadcrumbList.unshift(homeCrumb());return breadcrumb;};});","Magento_Theme/js/view/messages.min.js":"define(['jquery','uiComponent','Magento_Customer/js/customer-data','underscore','escaper','jquery/jquery-storageapi'],function($,Component,customerData,_,escaper){'use strict';return Component.extend({defaults:{cookieMessages:[],messages:[],selector:'.page.messages .message',allowedTags:['div','span','b','strong','i','em','u','a'],listens:{isHidden:'onHiddenChange'}},initialize:function(){this._super();this.cookieMessages=_.unique($.cookieStorage.get('mage-messages'),'text');this.messages=customerData.get('messages').extend({disposableCustomerData:'messages'});if(!_.isEmpty(this.messages().messages)){customerData.set('messages',{});}\nsetTimeout(()=>{$.mage.cookies.set('mage-messages','',{samesite:'strict',domain:''});},5000)},prepareMessageForHtml:function(message){return escaper.escapeHtml(message,this.allowedTags);},RemoveMessage:function(){$('.page.messages .message').toggleClass('fadeIn fadeOut');setTimeout(function(){$('.page.messages .message').hide()},2000);},onHiddenChange:function(isHidden){var self=this;if(isHidden){setTimeout(function(){self.RemoveMessage();},5000);}\nthis.isHidden(false);}});});","Magento_Theme/js/view/breadcrumbs.min.js":"define(['jquery','mage/template','Magento_Theme/js/model/breadcrumb-list','text!Magento_Theme/templates/breadcrumbs.html','jquery-ui-modules/widget'],function($,mageTemplate,breadcrumbList,tpl){'use strict';$.widget('mage.breadcrumbs',{_init:function(){this._super();this._render();},_render:function(){var html,crumbs=breadcrumbList,template=mageTemplate(tpl);this._decorate(crumbs);html=template({'breadcrumbs':crumbs});if(html.length){$(this.element).html(html);}},_decorate:function(list){if(list.length){list[0].first=true;}\nif(list.length>1){list[list.length-1].last=true;}}});return $.mage.breadcrumbs;});","Magento_Theme/js/model/breadcrumb-list.min.js":"define([],function(){'use strict';return[];});","Magento_Payment/js/transparent.min.js":"define(['jquery','mage/template','Magento_Ui/js/modal/alert','jquery-ui-modules/widget','Magento_Payment/js/model/credit-card-validation/validator','Magento_Checkout/js/model/full-screen-loader'],function($,mageTemplate,alert,ui,validator,fullScreenLoader){'use strict';$.widget('mage.transparent',{options:{context:null,placeOrderSelector:'[data-role=\"review-save\"]',paymentFormSelector:'#co-payment-form',updateSelectorPrefix:'#checkout-',updateSelectorSuffix:'-load',hiddenFormTmpl:'<form target=\"<%= data.target %>\" action=\"<%= data.action %>\" method=\"POST\" '+'hidden enctype=\"application/x-www-form-urlencoded\" class=\"no-display\">'+'<% _.each(data.inputs, function(val, key){ %>'+'<input value=\"<%= val %>\" name=\"<%= key %>\" type=\"hidden\">'+'<% }); %>'+'</form>',reviewAgreementForm:'#checkout-agreements',cgiUrl:null,orderSaveUrl:null,controller:null,gateway:null,dateDelim:null,cardFieldsMap:null,expireYearLength:2},_create:function(){this.hiddenFormTmpl=mageTemplate(this.options.hiddenFormTmpl);if(this.options.context){this.options.context.setPlaceOrderHandler($.proxy(this._orderSave,this));this.options.context.setValidateHandler($.proxy(this._validateHandler,this));}else{$(this.options.placeOrderSelector).off('click').on('click',$.proxy(this._placeOrderHandler,this));}\nthis.element.validation();$('[data-container=\"'+this.options.gateway+'-cc-number\"]').on('focusout',function(){$(this).valid();});},_validateHandler:function(){return this.element.validation&&this.element.validation('isValid');},_placeOrderHandler:function(){if(this._validateHandler()){this._orderSave();}\nreturn false;},_orderSave:function(){var postData=$(this.options.paymentFormSelector).serialize();if($(this.options.reviewAgreementForm).length){postData+='&'+$(this.options.reviewAgreementForm).serialize();}\npostData+='&controller='+this.options.controller;postData+='&cc_type='+this.element.find('[data-container=\"'+this.options.gateway+'-cc-type\"]').val();return $.ajax({url:this.options.orderSaveUrl,type:'post',context:this,data:postData,dataType:'json',beforeSend:function(){fullScreenLoader.startLoader();},success:function(response){var preparedData,msg,alertActionHandler=function(){};if(response.success&&response[this.options.gateway]){preparedData=this._preparePaymentData(response[this.options.gateway].fields,this.options.cardFieldsMap);this._postPaymentToGateway(preparedData);}else{fullScreenLoader.stopLoader(true);msg=response['error_messages'];if(this.options.context){this.options.context.clearTimeout().fail();alertActionHandler=this.options.context.alertActionHandler;}\nif(typeof msg==='object'){msg=msg.join('\\n');}\nif(msg){alert({content:msg,actions:{always:alertActionHandler}});}}}.bind(this)});},_postPaymentToGateway:function(data){var tmpl,iframeSelector='[data-container=\"'+this.options.gateway+'-transparent-iframe\"]';tmpl=this.hiddenFormTmpl({data:{target:$(iframeSelector).attr('name'),action:this.options.cgiUrl,inputs:data}});$(tmpl).appendTo($(iframeSelector)).trigger('submit');},_preparePaymentData:function(data,ccfields){var preparedata;if(this.element.find('[data-container=\"'+this.options.gateway+'-cc-cvv\"]').length){data[ccfields.cccvv]=this.element.find('[data-container=\"'+this.options.gateway+'-cc-cvv\"]').val();}\npreparedata=this._prepareExpDate();data[ccfields.ccexpdate]=preparedata.month+this.options.dateDelim+preparedata.year;data[ccfields.ccnum]=this.element.find('[data-container=\"'+this.options.gateway+'-cc-number\"]').val();return data;},_prepareExpDate:function(){var year=this.element.find('[data-container=\"'+this.options.gateway+'-cc-year\"]').val(),month=parseInt(this.element.find('[data-container=\"'+this.options.gateway+'-cc-month\"]').val(),10);if(year.length>this.options.expireYearLength){year=year.substring(year.length-this.options.expireYearLength);}\nif(month<10){month='0'+month;}\nreturn{month:month,year:year};}});return $.mage.transparent;});","Magento_Payment/js/cc-type.min.js":"define(['jquery','jquery-ui-modules/widget'],function($){'use strict';$.widget('mage.creditCardType',{options:{typeCodes:['SS','SM','SO']},_create:function(){this.element.on('change',$.proxy(this._toggleCardType,this)).trigger('change');},_toggleCardType:function(){$(this.options.creditCardTypeContainer).toggle($.inArray(this.element.val(),this.options.typeCodes)!==-1);}});return $.mage.creditCardType;});","Magento_Payment/js/view/payment/cc-form.min.js":"define(['underscore','Magento_Checkout/js/view/payment/default','Magento_Payment/js/model/credit-card-validation/credit-card-data','Magento_Payment/js/model/credit-card-validation/credit-card-number-validator','mage/translate'],function(_,Component,creditCardData,cardNumberValidator,$t){'use strict';return Component.extend({defaults:{creditCardType:'',creditCardExpYear:'',creditCardExpMonth:'',creditCardNumber:'',creditCardSsStartMonth:'',creditCardSsStartYear:'',creditCardSsIssue:'',creditCardVerificationNumber:'',selectedCardType:null},initObservable:function(){this._super().observe(['creditCardType','creditCardExpYear','creditCardExpMonth','creditCardNumber','creditCardVerificationNumber','creditCardSsStartMonth','creditCardSsStartYear','creditCardSsIssue','selectedCardType']);return this;},initialize:function(){var self=this;this._super();this.creditCardNumber.subscribe(function(value){var result;self.selectedCardType(null);if(value===''||value===null){return false;}\nresult=cardNumberValidator(value);if(!result.isPotentiallyValid&&!result.isValid){return false;}\nif(result.card!==null){self.selectedCardType(result.card.type);creditCardData.creditCard=result.card;}\nif(result.isValid){creditCardData.creditCardNumber=value;self.creditCardType(result.card.type);}});this.creditCardExpYear.subscribe(function(value){creditCardData.expirationYear=value;});this.creditCardExpMonth.subscribe(function(value){creditCardData.expirationMonth=value;});this.creditCardVerificationNumber.subscribe(function(value){creditCardData.cvvCode=value;});},getCode:function(){return'cc';},getData:function(){return{'method':this.item.method,'additional_data':{'cc_cid':this.creditCardVerificationNumber(),'cc_ss_start_month':this.creditCardSsStartMonth(),'cc_ss_start_year':this.creditCardSsStartYear(),'cc_ss_issue':this.creditCardSsIssue(),'cc_type':this.creditCardType(),'cc_exp_year':this.creditCardExpYear(),'cc_exp_month':this.creditCardExpMonth(),'cc_number':this.creditCardNumber()}};},getCcAvailableTypes:function(){return window.checkoutConfig.payment.ccform.availableTypes[this.getCode()];},getIcons:function(type){return window.checkoutConfig.payment.ccform.icons.hasOwnProperty(type)?window.checkoutConfig.payment.ccform.icons[type]:false;},getCcMonths:function(){return window.checkoutConfig.payment.ccform.months[this.getCode()];},getCcYears:function(){return window.checkoutConfig.payment.ccform.years[this.getCode()];},hasVerification:function(){return window.checkoutConfig.payment.ccform.hasVerification[this.getCode()];},hasSsCardType:function(){return window.checkoutConfig.payment.ccform.hasSsCardType[this.getCode()];},getCvvImageUrl:function(){return window.checkoutConfig.payment.ccform.cvvImageUrl[this.getCode()];},getCvvImageHtml:function(){return'<img src=\"'+this.getCvvImageUrl()+'\" alt=\"'+$t('Card Verification Number Visual Reference')+'\" title=\"'+$t('Card Verification Number Visual Reference')+'\" />';},getCvvImageUnsanitizedHtml:function(){return this.getCvvImageHtml();},getSsStartYears:function(){return window.checkoutConfig.payment.ccform.ssStartYears[this.getCode()];},getCcAvailableTypesValues:function(){return _.map(this.getCcAvailableTypes(),function(value,key){return{'value':key,'type':value};});},getCcMonthsValues:function(){return _.map(this.getCcMonths(),function(value,key){return{'value':key,'month':value};});},getCcYearsValues:function(){return _.map(this.getCcYears(),function(value,key){return{'value':key,'year':value};});},getSsStartYearsValues:function(){return _.map(this.getSsStartYears(),function(value,key){return{'value':key,'year':value};});},isShowLegend:function(){return false;},getCcTypeTitleByCode:function(code){var title='',keyValue='value',keyType='type';_.each(this.getCcAvailableTypesValues(),function(value){if(value[keyValue]===code){title=value[keyType];}});return title;},formatDisplayCcNumber:function(number){return'xxxx-'+number.substr(-4);},getInfo:function(){return[{'name':'Credit Card Type',value:this.getCcTypeTitleByCode(this.creditCardType())},{'name':'Credit Card Number',value:this.formatDisplayCcNumber(this.creditCardNumber())}];}});});","Magento_Payment/js/view/payment/payments.min.js":"define(['uiComponent','Magento_Checkout/js/model/payment/renderer-list'],function(Component,rendererList){'use strict';rendererList.push({type:'free',component:'Magento_Payment/js/view/payment/method-renderer/free-method'});return Component.extend({});});","Magento_Payment/js/view/payment/iframe.min.js":"define(['jquery','Magento_Payment/js/view/payment/cc-form','Magento_Ui/js/model/messageList','mage/translate','Magento_Checkout/js/model/full-screen-loader','Magento_Checkout/js/action/set-payment-information','Magento_Checkout/js/model/payment/additional-validators','Magento_Ui/js/modal/alert'],function($,Component,messageList,$t,fullScreenLoader,setPaymentInformationAction,additionalValidators,alert){'use strict';return Component.extend({defaults:{template:'Magento_Payment/payment/iframe',timeoutId:null,timeoutMessage:'Sorry, but something went wrong.'},getSource:function(){return window.checkoutConfig.payment.iframe.source[this.getCode()];},getControllerName:function(){return window.checkoutConfig.payment.iframe.controllerName[this.getCode()];},getPlaceOrderUrl:function(){return window.checkoutConfig.payment.iframe.placeOrderUrl[this.getCode()];},getCgiUrl:function(){return window.checkoutConfig.payment.iframe.cgiUrl[this.getCode()];},getSaveOrderUrl:function(){return window.checkoutConfig.payment.iframe.saveOrderUrl[this.getCode()];},getDateDelim:function(){return window.checkoutConfig.payment.iframe.dateDelim[this.getCode()];},getCardFieldsMap:function(){return window.checkoutConfig.payment.iframe.cardFieldsMap[this.getCode()];},getExpireYearLength:function(){return window.checkoutConfig.payment.iframe.expireYearLength[this.getCode()];},originalPlaceOrder:function(parent){return parent.placeOrder.bind(parent);},getTimeoutTime:function(){return window.checkoutConfig.payment.iframe.timeoutTime[this.getCode()];},getTimeoutMessage:function(){return $t(this.timeoutMessage);},placeOrder:function(){var self=this;if(this.validateHandler()&&additionalValidators.validate()&&this.isPlaceOrderActionAllowed()===true){fullScreenLoader.startLoader();this.isPlaceOrderActionAllowed(false);$.when(this.setPaymentInformation()).done(this.done.bind(this)).fail(this.fail.bind(this)).always(function(){self.isPlaceOrderActionAllowed(true);});this.initTimeoutHandler();}},setPaymentInformation:function(){return setPaymentInformationAction(this.messageContainer,{method:this.getCode()});},initTimeoutHandler:function(){this.timeoutId=setTimeout(this.timeoutHandler.bind(this),this.getTimeoutTime());$(window).off('clearTimeout').on('clearTimeout',this.clearTimeout.bind(this));},clearTimeout:function(){clearTimeout(this.timeoutId);this.fail();return this;},timeoutHandler:function(){this.clearTimeout();alert({content:this.getTimeoutMessage(),actions:{always:this.alertActionHandler.bind(this)}});this.fail();},alertActionHandler:function(){fullScreenLoader.startLoader();window.location.reload();},fail:function(){fullScreenLoader.stopLoader();return this;},done:function(){this.placeOrderHandler().fail(function(){fullScreenLoader.stopLoader();});return this;}});});","Magento_Payment/js/view/payment/method-renderer/free-method.min.js":"define(['Magento_Checkout/js/view/payment/default','Magento_Checkout/js/model/quote'],function(Component,quote){'use strict';return Component.extend({defaults:{template:'Magento_Payment/payment/free'},isAvailable:function(){return quote.totals()['grand_total']<=0;}});});","Magento_Payment/js/model/credit-card-validation/credit-card-data.min.js":"define([],function(){'use strict';return{creditCard:null,creditCardNumber:null,expirationMonth:null,expirationYear:null,cvvCode:null};});","Magento_Payment/js/model/credit-card-validation/credit-card-number-validator.min.js":"define(['mageUtils','Magento_Payment/js/model/credit-card-validation/credit-card-number-validator/luhn10-validator','Magento_Payment/js/model/credit-card-validation/credit-card-number-validator/credit-card-type'],function(utils,luhn10,creditCardTypes){'use strict';function resultWrapper(card,isPotentiallyValid,isValid){return{card:card,isValid:isValid,isPotentiallyValid:isPotentiallyValid};}\nreturn function(value){var potentialTypes,cardType,valid,i,maxLength;if(utils.isEmpty(value)){return resultWrapper(null,false,false);}\nvalue=value.replace(/\\s+/g,'');if(!/^\\d*$/.test(value)){return resultWrapper(null,false,false);}\npotentialTypes=creditCardTypes.getCardTypes(value);if(potentialTypes.length===0){return resultWrapper(null,false,false);}else if(potentialTypes.length!==1){return resultWrapper(null,true,false);}\ncardType=potentialTypes[0];if(cardType.type==='unionpay'){valid=true;}else{valid=luhn10(value);}\nfor(i=0;i<cardType.lengths.length;i++){if(cardType.lengths[i]===value.length){return resultWrapper(cardType,valid,valid);}}\nmaxLength=Math.max.apply(null,cardType.lengths);if(value.length<maxLength){return resultWrapper(cardType,true,false);}\nreturn resultWrapper(cardType,false,false);};});","Magento_Payment/js/model/credit-card-validation/validator.min.js":"define(['jquery','Magento_Payment/js/model/credit-card-validation/cvv-validator','Magento_Payment/js/model/credit-card-validation/credit-card-number-validator','Magento_Payment/js/model/credit-card-validation/expiration-date-validator/expiration-year-validator','Magento_Payment/js/model/credit-card-validation/expiration-date-validator/expiration-month-validator','Magento_Payment/js/model/credit-card-validation/credit-card-data','mage/translate'],function($,cvvValidator,creditCardNumberValidator,yearValidator,monthValidator,creditCardData){'use strict';$('.payment-method-content input[type=\"number\"]').on('keyup',function(){if($(this).val()<0){$(this).val($(this).val().replace(/^-/,''));}});$.each({'validate-card-type':[function(number,item,allowedTypes){var cardInfo,i,l;if(!creditCardNumberValidator(number).isValid){return false;}\ncardInfo=creditCardNumberValidator(number).card;for(i=0,l=allowedTypes.length;i<l;i++){if(cardInfo.title==allowedTypes[i].type){return true;}}\nreturn false;},$.mage.__('Please enter a valid credit card type number.')],'validate-card-number':[function(number){return creditCardNumberValidator(number).isValid;},$.mage.__('Please enter a valid credit card number.')],'validate-card-date':[function(date){return monthValidator(date).isValid;},$.mage.__('Incorrect credit card expiration month.')],'validate-card-cvv':[function(cvv){var maxLength=creditCardData.creditCard?creditCardData.creditCard.code.size:3;return cvvValidator(cvv,maxLength).isValid;},$.mage.__('Please enter a valid credit card verification number.')],'validate-card-year':[function(date){return yearValidator(date).isValid;},$.mage.__('Incorrect credit card expiration year.')]},function(i,rule){rule.unshift(i);$.validator.addMethod.apply($.validator,rule);});});","Magento_Payment/js/model/credit-card-validation/cvv-validator.min.js":"define([],function(){'use strict';function resultWrapper(isValid,isPotentiallyValid){return{isValid:isValid,isPotentiallyValid:isPotentiallyValid};}\nreturn function(value,maxLength){var DEFAULT_LENGTH=3;maxLength=maxLength||DEFAULT_LENGTH;if(!/^\\d*$/.test(value)){return resultWrapper(false,false);}\nif(value.length===maxLength){return resultWrapper(true,true);}\nif(value.length<maxLength){return resultWrapper(false,true);}\nif(value.length>maxLength){return resultWrapper(false,false);}};});","Magento_Payment/js/model/credit-card-validation/expiration-date-validator.min.js":"define(['mageUtils','Magento_Payment/js/model/credit-card-validation/expiration-date-validator/parse-date','Magento_Payment/js/model/credit-card-validation/expiration-date-validator/expiration-month-validator','Magento_Payment/js/model/credit-card-validation/expiration-date-validator/expiration-year-validator'],function(utils,parseDate,expirationMonth,expirationYear){'use strict';function resultWrapper(isValid,isPotentiallyValid,month,year){return{isValid:isValid,isPotentiallyValid:isPotentiallyValid,month:month,year:year};}\nreturn function(value){var date,monthValid,yearValid;if(utils.isEmpty(value)){return resultWrapper(false,false,null,null);}\nvalue=value.replace(/^(\\d\\d) (\\d\\d(\\d\\d)?)$/,'$1/$2');date=parseDate(value);monthValid=expirationMonth(date.month);yearValid=expirationYear(date.year);if(monthValid.isValid&&yearValid.isValid){return resultWrapper(true,true,date.month,date.year);}\nif(monthValid.isPotentiallyValid&&yearValid.isPotentiallyValid){return resultWrapper(false,true,null,null);}\nreturn resultWrapper(false,false,null,null);};});","Magento_Payment/js/model/credit-card-validation/expiration-date-validator/parse-date.min.js":"define([],function(){'use strict';return function(value){var month,len;if(value.match('/')){value=value.split(/\\s*\\/\\s*/g);return{month:value[0],year:value.slice(1).join()};}\nlen=value[0]==='0'||value.length>5||value.length===4||value.length===3?2:1;month=value.substr(0,len);return{month:month,year:value.substr(month.length,4)};};});","Magento_Payment/js/model/credit-card-validation/expiration-date-validator/expiration-month-validator.min.js":"define([],function(){'use strict';function resultWrapper(isValid,isPotentiallyValid){return{isValid:isValid,isPotentiallyValid:isPotentiallyValid};}\nreturn function(value){var month,monthValid;if(value.replace(/\\s/g,'')===''||value==='0'){return resultWrapper(false,true);}\nif(!/^\\d*$/.test(value)){return resultWrapper(false,false);}\nif(isNaN(value)){return resultWrapper(false,false);}\nmonth=parseInt(value,10);monthValid=month>0&&month<13;return resultWrapper(monthValid,monthValid);};});","Magento_Payment/js/model/credit-card-validation/expiration-date-validator/expiration-year-validator.min.js":"define([],function(){'use strict';function resultWrapper(isValid,isPotentiallyValid){return{isValid:isValid,isPotentiallyValid:isPotentiallyValid};}\nreturn function(value){var currentYear=new Date().getFullYear(),len=value.length,valid,expMaxLifetime=19;if(value.replace(/\\s/g,'')===''){return resultWrapper(false,true);}\nif(!/^\\d*$/.test(value)){return resultWrapper(false,false);}\nif(len!==4){return resultWrapper(false,true);}\nvalue=parseInt(value,10);valid=value>=currentYear&&value<=currentYear+expMaxLifetime;return resultWrapper(valid,valid);};});","Magento_Payment/js/model/credit-card-validation/credit-card-number-validator/credit-card-type.min.js":"define(['jquery','mageUtils'],function($,utils){'use strict';var types=[{title:'Visa',type:'VI',pattern:'^4\\\\d*$',gaps:[4,8,12],lengths:[16],code:{name:'CVV',size:3}},{title:'MasterCard',type:'MC',pattern:'^(?:5[1-5][0-9]{2}|222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}$',gaps:[4,8,12],lengths:[16],code:{name:'CVC',size:3}},{title:'American Express',type:'AE',pattern:'^3([47]\\\\d*)?$',isAmex:true,gaps:[4,10],lengths:[15],code:{name:'CID',size:4}},{title:'Diners',type:'DN',pattern:'^(3(0[0-5]|095|6|[8-9]))\\\\d*$',gaps:[4,10],lengths:[14,16,17,18,19],code:{name:'CVV',size:3}},{title:'Discover',type:'DI',pattern:'^(6011(0|[2-4]|74|7[7-9]|8[6-9]|9)|6(4[4-9]|5))\\\\d*$',gaps:[4,8,12],lengths:[16,17,18,19],code:{name:'CID',size:3}},{title:'JCB',type:'JCB',pattern:'^35(2[8-9]|[3-8])\\\\d*$',gaps:[4,8,12],lengths:[16,17,18,19],code:{name:'CVV',size:3}},{title:'UnionPay',type:'UN',pattern:'^(622(1(2[6-9]|[3-9])|[3-8]|9([[0-1]|2[0-5]))|62[4-6]|628([2-8]))\\\\d*?$',gaps:[4,8,12],lengths:[16,17,18,19],code:{name:'CVN',size:3}},{title:'Maestro International',type:'MI',pattern:'^(5(0|[6-9])|63|67(?!59|6770|6774))\\\\d*$',gaps:[4,8,12],lengths:[12,13,14,15,16,17,18,19],code:{name:'CVC',size:3}},{title:'Maestro Domestic',type:'MD',pattern:'^6759(?!24|38|40|6[3-9]|70|76)|676770|676774\\\\d*$',gaps:[4,8,12],lengths:[12,13,14,15,16,17,18,19],code:{name:'CVC',size:3}},{title:'Hipercard',type:'HC',pattern:'^((606282)|(637095)|(637568)|(637599)|(637609)|(637612))\\\\d*$',gaps:[4,8,12],lengths:[13,16],code:{name:'CVC',size:3}},{title:'Elo',type:'ELO',pattern:'^((509091)|(636368)|(636297)|(504175)|(438935)|(40117[8-9])|(45763[1-2])|'+'(457393)|(431274)|(50990[0-2])|(5099[7-9][0-9])|(50996[4-9])|(509[1-8][0-9][0-9])|'+'(5090(0[0-2]|0[4-9]|1[2-9]|[24589][0-9]|3[1-9]|6[0-46-9]|7[0-24-9]))|'+'(5067(0[0-24-8]|1[0-24-9]|2[014-9]|3[0-379]|4[0-9]|5[0-3]|6[0-5]|7[0-8]))|'+'(6504(0[5-9]|1[0-9]|2[0-9]|3[0-9]))|'+'(6504(8[5-9]|9[0-9])|6505(0[0-9]|1[0-9]|2[0-9]|3[0-8]))|'+'(6505(4[1-9]|5[0-9]|6[0-9]|7[0-9]|8[0-9]|9[0-8]))|'+'(6507(0[0-9]|1[0-8]))|(65072[0-7])|(6509(0[1-9]|1[0-9]|20))|'+'(6516(5[2-9]|6[0-9]|7[0-9]))|(6550(0[0-9]|1[0-9]))|'+'(6550(2[1-9]|3[0-9]|4[0-9]|5[0-8])))\\\\d*$',gaps:[4,8,12],lengths:[16],code:{name:'CVC',size:3}},{title:'Aura',type:'AU',pattern:'^5078\\\\d*$',gaps:[4,8,12],lengths:[19],code:{name:'CVC',size:3}}];return{getCardTypes:function(cardNumber){var i,value,result=[];if(utils.isEmpty(cardNumber)){return result;}\nif(cardNumber===''){return $.extend(true,{},types);}\nfor(i=0;i<types.length;i++){value=types[i];if(new RegExp(value.pattern).test(cardNumber)){result.push($.extend(true,{},value));}}\nreturn result;}};});","Magento_Payment/js/model/credit-card-validation/credit-card-number-validator/luhn10-validator.min.js":"define([],function(){'use strict';return function(a,b,c,d,e){for(d=+a[b=a.length-1],e=0;b--;){c=+a[b];d+=++e%2?2*c%10+(c>4):c;}\nreturn!(d%10);};});","Magento_Usps/js/view/shipping-rates-validation.min.js":"define(['uiComponent','Magento_Checkout/js/model/shipping-rates-validator','Magento_Checkout/js/model/shipping-rates-validation-rules','../model/shipping-rates-validator','../model/shipping-rates-validation-rules'],function(Component,defaultShippingRatesValidator,defaultShippingRatesValidationRules,uspsShippingRatesValidator,uspsShippingRatesValidationRules){'use strict';defaultShippingRatesValidator.registerValidator('usps',uspsShippingRatesValidator);defaultShippingRatesValidationRules.registerRules('usps',uspsShippingRatesValidationRules);return Component;});","Magento_Usps/js/model/shipping-rates-validation-rules.min.js":"define([],function(){'use strict';return{getRules:function(){return{'country_id':{'required':true},'postcode':{'required':false}};}};});","Magento_Usps/js/model/shipping-rates-validator.min.js":"define(['jquery','mageUtils','./shipping-rates-validation-rules','mage/translate'],function($,utils,validationRules,$t){'use strict';var checkoutConfig=window.checkoutConfig;return{validationErrors:[],validate:function(address){var rules=validationRules.getRules(),self=this;$.each(rules,function(field,rule){var message;if(rule.required&&utils.isEmpty(address[field])){message=$t('Field ')+field+$t(' is required.');self.validationErrors.push(message);}});if(!this.validationErrors.length){if(address['country_id']==checkoutConfig.originCountryCode){return!utils.isEmpty(address.postcode);}\nreturn true;}\nreturn false;}};});","Magento_Ups/js/view/shipping-rates-validation.min.js":"define(['uiComponent','Magento_Checkout/js/model/shipping-rates-validator','Magento_Checkout/js/model/shipping-rates-validation-rules','Magento_Ups/js/model/shipping-rates-validator','Magento_Ups/js/model/shipping-rates-validation-rules'],function(Component,defaultShippingRatesValidator,defaultShippingRatesValidationRules,upsShippingRatesValidator,upsShippingRatesValidationRules){'use strict';defaultShippingRatesValidator.registerValidator('ups',upsShippingRatesValidator);defaultShippingRatesValidationRules.registerRules('ups',upsShippingRatesValidationRules);return Component;});","Magento_Ups/js/model/shipping-rates-validation-rules.min.js":"define([],function(){'use strict';return{getRules:function(){return{'postcode':{'required':true},'country_id':{'required':true}};}};});","Magento_Ups/js/model/shipping-rates-validator.min.js":"define(['jquery','mageUtils','Magento_Ups/js/model/shipping-rates-validation-rules','mage/translate'],function($,utils,validationRules,$t){'use strict';return{validationErrors:[],validate:function(address){var self=this;this.validationErrors=[];$.each(validationRules.getRules(),function(field,rule){var message;if(rule.required&&utils.isEmpty(address[field])){message=$t('Field ')+field+$t(' is required.');self.validationErrors.push(message);}});return!this.validationErrors.length;}};});","Sparsh_AbandonedCart/js/stickToMeModel.min.js":"require(['jquery','stick-to-me',],function($){$(document).ready(function(){$.stickToMe({layer:'#sparsh_abandoned_cart_stick_layer',trigger:['all'],fadespeed:0,maxamount:1,maxtime:0,bgclickclose:false,escclose:false});});});","Sparsh_AbandonedCart/js/stick-to-me.min.js":"/*!\r\n * jQuery Stick to Me plugin\r\n *\r\n * @author: Guilherme Assemany\r\n * @version: 1.0\r\n * @requires jQuery 1.6.1 or later\r\n *\r\n */\n(function($){$.stickToMe=function(configs){var defaults={layer:\"\",fadespeed:400,trigger:['top'],maxtime:0,mintime:0,delay:0,interval:0,maxamount:0,cookie:false,bgclickclose:true,escclose:true,onleave:function(e){},disableleftscroll:true};var settings=$.extend({},defaults,configs);$(settings.layer).hide();var startuptime=new Date().getTime();var windowHeight=$(window).height();var windowWidth=$(window).width();var offsetbind=false;var howmanytimes=0;var lasttime=0;var chromealert=true;var lastx,lasty=0;if(/Chrome/.test(navigator.userAgent)){var chrome=true;if($(document).width()>windowWidth&&settings.disableleftscroll==true){chromealert=false;}}\nvar conth=parseFloat($(settings.layer).css(\"height\"));var contw=parseFloat($(settings.layer).css(\"width\"));var reqsettings={backgroundcss:{'z-index':'1000','display':'none'},boxcss:{'z-index':'1000','position':'fixed','left':'0','top':'40%','right':'0','margin':'0 auto'}};$.extend(true,settings,reqsettings);$(document).bind('mousemove',function(e){lastx=e.pageX;lasty=e.pageY;});$(document).bind('mouseleave',function(e){setTimeout(function(){ontheleave(e);},settings.delay);});$(document).ready(function(){mobilePopup()})\nif(chrome){$(document).unbind(\"mouseleave\");chromefix();}\nfunction chromefix(){offsetbind=false;$(document).bind('mousemove.bindoffset',function(e){if(offsetbind){$(document).bind('mouseleave',function(e){setTimeout(function(){ontheleave(e);},settings.delay);});$(document).unbind(\"mousemove.bindoffset\");}\noffsetbind=true;});}\n$(window).resize(function(e){windowHeight=$(window).height();windowWidth=$(window).width();});function ontheleave(e){var scrolltop=document.documentElement?document.documentElement.scrollTop:document.body.scrollTop;var scrollleft=document.documentElement?document.documentElement.scrollLeft:document.body.scrollLeft;scrolltop=($(document).scrollTop()>scrolltop)?$(document).scrollTop():scrolltop;scrollleft=($(document).scrollLeft()>scrollleft)?$(document).scrollLeft():scrollleft;if((Math.round(e.pageX)==-1||Math.round(e.pageY)==-1)||(e.pageX==-3||e.pageY==-3)){var clienty=-lasty+scrolltop;var clientx=lastx-scrollleft;}else{var clienty=-e.pageY+scrolltop;var clientx=e.pageX-scrollleft;}\nvar ey1=(-windowHeight / windowWidth)*clientx;var ey2=((windowHeight / windowWidth)*clientx)-windowHeight;var leaveside;if(clienty>=ey1){if(clienty>=ey2){leaveside=\"top\";}else{leaveside=\"right\";}}else{if(clienty>=ey2){leaveside=\"left\";}else{leaveside=\"bottom\";}}\nif(/Firefox[\\/\\s](\\d+\\.\\d+)/.test(navigator.userAgent)){if(clienty<0&&clienty>-windowHeight&&clientx>0&&clientx<windowWidth){return;}}\nif($.inArray(leaveside,settings.trigger)!=-1||$.inArray('all',settings.trigger)!=-1){var recenttime=new Date().getTime();if((recenttime-startuptime)>=settings.mintime){if((recenttime-startuptime)<=settings.maxtime||settings.maxtime==0){if(howmanytimes<settings.maxamount||settings.maxamount==0){if((recenttime-lasttime)>=settings.interval||settings.interval==0){if(chromealert){var cookiehowm=getamount(\"ck_stick_visit\");if(settings.cookie==false||(settings.cookie==true&&(cookiehowm<settings.maxamount||settings.maxamount==0))){settings.onleave.call(this,leaveside);if(settings.layer!=\"\"){showbox();}\nhowmanytimes++;if(settings.cookie==true){cookiehowm++;document.cookie=\"ck_stick_visit=\"+cookiehowm+\"; path=/\";}\nlasttime=new Date().getTime();}}}}}}}\nif(chrome){$(document).unbind(\"mouseleave\");chromefix();}}\nfunction showbox(){if($.data(document.body,\"stick_var\")!=1){$.data(document.body,\"stick_var\",1);$('<div class=\"sparsh_abandoned_cart_stick_block_layer\"></div>').appendTo('body').css(settings.backgroundcss).fadeIn(settings.fadespeed);$('<div class=\"stick_container\"></div>').appendTo('body');$(settings.layer).clone().show().css(settings.boxcss).appendTo(\".stick_container\");if(settings.bgclickclose){$('.sparsh_abandoned_cart_stick_block_layer').click(function(){stick_close();});}\nif(settings.escclose){$(\"body\").keyup(function(e){if(e.which==27){stick_close();}});}}}\nfunction mobilePopup(){if(windowWidth<1024&&settings.layer!=\"\"){showbox();}}};function getamount(cname){var name=cname+\"=\";var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' '){c=c.substring(1);}\nif(c.indexOf(name)!=-1){return c.substring(name.length,c.length);}}\nreturn 0;}\nfunction stick_close(){$('.stick_container').fadeOut(function(){$(this).remove();});$('.sparsh_abandoned_cart_stick_block_layer').fadeOut(function(){$(this).remove();});$.removeData(document.body,\"stick_var\");}\n$.stick_close=function(){stick_close();}}(jQuery));","Sparsh_AbandonedCart/js/dmpt.min.js":"define(['domReady!'],function(){'use strict';function createTag(regionPrefix){var connector=document.createElement('script'),s=document.getElementsByTagName('script')[0];connector.type='text/javascript';connector.src='//'+regionPrefix+'t.trackedlink.net/_dmpt.js';s.parentNode.insertBefore(connector,s);}\nreturn function(trackingCode){createTag(trackingCode.regionPrefix);};});","Sparsh_AbandonedCart/js/emailCapture.min.js":"define(['jquery','domReady!'],function($){'use strict';function validateEmail(sEmail){var filter=/^([\\w-\\.]+)@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.)|(([\\w-]+\\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\\]?)$/;return filter.test(sEmail);}\nfunction emailCaptureCheckout(url){var previousEmail='';$('body').on('blur','input[id=customer-email]',function(){var email=$(this).val();if(email===previousEmail){return false;}\nif(email&&validateEmail(email)){previousEmail=email;$.post(url,{email:email});}});}\nfunction emailCaptureExitPopup(url){$('body').on('click','.stick_container #sparsh_abandoned_cart_stick_layer .save',function(ele){var email=$('.stick_container #sparsh_abandoned_cart_stick_layer #exit-email').val();var message=$('.stick_container #sparsh_abandoned_cart_stick_layer .message');if(email&&validateEmail(email)){$('body').loader('show');message.hide();$.post(url,{email:email},function(result){$('body').loader('hide');if(result['success']){message.html(result['success']);message.show();setTimeout(function(){$.stick_close();message.hide();},2000);}\nelse if(result['error']){message.html(result['error']);message.show();}\nelse{console.log(result);message.hide();$.stick_close();}});}\nelse{message.html('Please enter a valid email address (Ex: johndoe@domain.com).');message.show();}});}\nreturn function(emailCapture){if(emailCapture.type==='checkout'){emailCaptureCheckout(emailCapture.url);}\nif(emailCapture.type==='exit'){emailCaptureExitPopup(emailCapture.url);}};});","Magento_InstantPurchase/js/view/instant-purchase.min.js":"define(['ko','jquery','underscore','uiComponent','Magento_Ui/js/modal/confirm','Magento_Customer/js/customer-data','mage/url','mage/template','mage/translate','text!Magento_InstantPurchase/template/confirmation.html','mage/validation'],function(ko,$,_,Component,confirm,customerData,urlBuilder,mageTemplate,$t,confirmationTemplate){'use strict';return Component.extend({defaults:{template:'Magento_InstantPurchase/instant-purchase',buttonText:$t('Instant Purchase'),purchaseUrl:urlBuilder.build('instantpurchase/button/placeOrder'),showButton:false,paymentToken:null,shippingAddress:null,billingAddress:null,shippingMethod:null,productFormSelector:'#product_addtocart_form',confirmationTitle:$t('Instant Purchase Confirmation'),confirmationData:{message:$t('Are you sure you want to place order and pay?'),shippingAddressTitle:$t('Shipping Address'),billingAddressTitle:$t('Billing Address'),paymentMethodTitle:$t('Payment Method'),shippingMethodTitle:$t('Shipping Method')}},initialize:function(){var instantPurchase=customerData.get('instant-purchase');this._super();this.setPurchaseData(instantPurchase());instantPurchase.subscribe(this.setPurchaseData,this);},initObservable:function(){this._super().observe('showButton paymentToken shippingAddress billingAddress shippingMethod');return this;},setPurchaseData:function(data){this.showButton(data.available);this.paymentToken(data.paymentToken);this.shippingAddress(data.shippingAddress);this.billingAddress(data.billingAddress);this.shippingMethod(data.shippingMethod);},instantPurchase:function(){var form=$(this.productFormSelector),confirmTemplate=mageTemplate(confirmationTemplate),confirmData=_.extend({},this.confirmationData,{paymentToken:this.paymentToken().summary,shippingAddress:this.shippingAddress().summary,billingAddress:this.billingAddress().summary,shippingMethod:this.shippingMethod().summary});if(!(form.validation()&&form.validation('isValid'))){return;}\nconfirm({title:this.confirmationTitle,content:confirmTemplate({data:confirmData}),actions:{confirm:function(){$.ajax({url:this.purchaseUrl,data:form.serialize(),type:'post',dataType:'json',beforeSend:function(){$('body').trigger('processStart');}}).always(function(){$('body').trigger('processStop');});}.bind(this)}});}});});","MGS_Portfolio/js/isotope.pkgd.min.js":"/*!\r\n * Isotope PACKAGED v3.0.1\r\n *\r\n * Licensed GPLv3 for open source use\r\n * or Isotope Commercial License for commercial use\r\n *\r\n * http://isotope.metafizzy.co\r\n * Copyright 2016 Metafizzy\r\n */\r\n\r\n!function(t,e){\"use strict\";\"function\"==typeof define&&define.amd?define(\"jquery-bridget/jquery-bridget\",[\"jquery\"],function(i){e(t,i)}):\"object\"==typeof module&&module.exports?module.exports=e(t,require(\"jquery\")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){\"use strict\";function i(i,s,a){function u(t,e,n){var o,s=\"$().\"+i+'(\"'+e+'\")';return t.each(function(t,u){var h=a.data(u,i);if(!h)return void r(i+\" not initialized. Cannot call methods, i.e. \"+s);var d=h[e];if(!d||\"_\"==e.charAt(0))return void r(s+\" is not a valid method\");var l=d.apply(h,n);o=void 0===o?l:o}),void 0!==o?o:t}function h(t,e){t.each(function(t,n){var o=a.data(n,i);o?(o.option(e),o._init()):(o=new s(n,e),a.data(n,i,o))})}a=a||e||t.jQuery,a&&(s.prototype.option||(s.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if(\"string\"==typeof t){var e=o.call(arguments,1);return u(this,t,e)}return h(this,t),this},n(a))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var o=Array.prototype.slice,s=t.console,r=\"undefined\"==typeof s?function(){}:function(t){s.error(t)};return n(e||t.jQuery),i}),function(t,e){\"function\"==typeof define&&define.amd?define(\"ev-emitter/ev-emitter\",e):\"object\"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}(\"undefined\"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=0,o=i[n];e=e||[];for(var s=this._onceEvents&&this._onceEvents[t];o;){var r=s&&s[o];r&&(this.off(t,o),delete s[o]),o.apply(this,e),n+=r?0:1,o=i[n]}return this}},t}),function(t,e){\"use strict\";\"function\"==typeof define&&define.amd?define(\"get-size/get-size\",[],function(){return e()}):\"object\"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){\"use strict\";function t(t){var e=parseFloat(t),i=-1==t.indexOf(\"%\")&&!isNaN(e);return i&&e}function e(){}function i(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;h>e;e++){var i=u[e];t[i]=0}return t}function n(t){var e=getComputedStyle(t);return e||a(\"Style returned \"+e+\". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1\"),e}function o(){if(!d){d=!0;var e=document.createElement(\"div\");e.style.width=\"200px\",e.style.padding=\"1px 2px 3px 4px\",e.style.borderStyle=\"solid\",e.style.borderWidth=\"1px 2px 3px 4px\",e.style.boxSizing=\"border-box\";var i=document.body||document.documentElement;i.appendChild(e);var o=n(e);s.isBoxSizeOuter=r=200==t(o.width),i.removeChild(e)}}function s(e){if(o(),\"string\"==typeof e&&(e=document.querySelector(e)),e&&\"object\"==typeof e&&e.nodeType){var s=n(e);if(\"none\"==s.display)return i();var a={};a.width=e.offsetWidth,a.height=e.offsetHeight;for(var d=a.isBorderBox=\"border-box\"==s.boxSizing,l=0;h>l;l++){var f=u[l],c=s[f],m=parseFloat(c);a[f]=isNaN(m)?0:m}var p=a.paddingLeft+a.paddingRight,y=a.paddingTop+a.paddingBottom,g=a.marginLeft+a.marginRight,v=a.marginTop+a.marginBottom,_=a.borderLeftWidth+a.borderRightWidth,I=a.borderTopWidth+a.borderBottomWidth,z=d&&r,x=t(s.width);x!==!1&&(a.width=x+(z?0:p+_));var S=t(s.height);return S!==!1&&(a.height=S+(z?0:y+I)),a.innerWidth=a.width-(p+_),a.innerHeight=a.height-(y+I),a.outerWidth=a.width+g,a.outerHeight=a.height+v,a}}var r,a=\"undefined\"==typeof console?e:function(t){console.error(t)},u=[\"paddingLeft\",\"paddingRight\",\"paddingTop\",\"paddingBottom\",\"marginLeft\",\"marginRight\",\"marginTop\",\"marginBottom\",\"borderLeftWidth\",\"borderRightWidth\",\"borderTopWidth\",\"borderBottomWidth\"],h=u.length,d=!1;return s}),function(t,e){\"use strict\";\"function\"==typeof define&&define.amd?define(\"desandro-matches-selector/matches-selector\",e):\"object\"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){\"use strict\";var t=function(){var t=Element.prototype;if(t.matches)return\"matches\";if(t.matchesSelector)return\"matchesSelector\";for(var e=[\"webkit\",\"moz\",\"ms\",\"o\"],i=0;i<e.length;i++){var n=e[i],o=n+\"MatchesSelector\";if(t[o])return o}}();return function(e,i){return e[t](i)}}),function(t,e){\"function\"==typeof define&&define.amd?define(\"fizzy-ui-utils/utils\",[\"desandro-matches-selector/matches-selector\"],function(i){return e(t,i)}):\"object\"==typeof module&&module.exports?module.exports=e(t,require(\"desandro-matches-selector\")):t.fizzyUIUtils=e(t,t.matchesSelector)}(window,function(t,e){var i={};i.extend=function(t,e){for(var i in e)t[i]=e[i];return t},i.modulo=function(t,e){return(t%e+e)%e},i.makeArray=function(t){var e=[];if(Array.isArray(t))e=t;else if(t&&\"number\"==typeof t.length)for(var i=0;i<t.length;i++)e.push(t[i]);else e.push(t);return e},i.removeFrom=function(t,e){var i=t.indexOf(e);-1!=i&&t.splice(i,1)},i.getParent=function(t,i){for(;t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return\"string\"==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e=\"on\"+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,n){t=i.makeArray(t);var o=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!n)return void o.push(t);e(t,n)&&o.push(t);for(var i=t.querySelectorAll(n),s=0;s<i.length;s++)o.push(i[s])}}),o},i.debounceMethod=function(t,e,i){var n=t.prototype[e],o=e+\"Timeout\";t.prototype[e]=function(){var t=this[o];t&&clearTimeout(t);var e=arguments,s=this;this[o]=setTimeout(function(){n.apply(s,e),delete s[o]},i||100)}},i.docReady=function(t){var e=document.readyState;\"complete\"==e||\"interactive\"==e?t():document.addEventListener(\"DOMContentLoaded\",t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+\"-\"+i}).toLowerCase()};var n=t.console;return i.htmlInit=function(e,o){i.docReady(function(){var s=i.toDashed(o),r=\"data-\"+s,a=document.querySelectorAll(\"[\"+r+\"]\"),u=document.querySelectorAll(\".js-\"+s),h=i.makeArray(a).concat(i.makeArray(u)),d=r+\"-options\",l=t.jQuery;h.forEach(function(t){var i,s=t.getAttribute(r)||t.getAttribute(d);try{i=s&&JSON.parse(s)}catch(a){return void(n&&n.error(\"Error parsing \"+r+\" on \"+t.className+\": \"+a))}var u=new e(t,i);l&&l.data(t,o,u)})})},i}),function(t,e){\"function\"==typeof define&&define.amd?define(\"outlayer/item\",[\"ev-emitter/ev-emitter\",\"get-size/get-size\"],e):\"object\"==typeof module&&module.exports?module.exports=e(require(\"ev-emitter\"),require(\"get-size\")):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))}(window,function(t,e){\"use strict\";function i(t){for(var e in t)return!1;return e=null,!0}function n(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}function o(t){return t.replace(/([A-Z])/g,function(t){return\"-\"+t.toLowerCase()})}var s=document.documentElement.style,r=\"string\"==typeof s.transition?\"transition\":\"WebkitTransition\",a=\"string\"==typeof s.transform?\"transform\":\"WebkitTransform\",u={WebkitTransition:\"webkitTransitionEnd\",transition:\"transitionend\"}[r],h={transform:a,transition:r,transitionDuration:r+\"Duration\",transitionProperty:r+\"Property\",transitionDelay:r+\"Delay\"},d=n.prototype=Object.create(t.prototype);d.constructor=n,d._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:\"absolute\"})},d.handleEvent=function(t){var e=\"on\"+t.type;this[e]&&this[e](t)},d.getSize=function(){this.size=e(this.element)},d.css=function(t){var e=this.element.style;for(var i in t){var n=h[i]||i;e[n]=t[i]}},d.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption(\"originLeft\"),i=this.layout._getOption(\"originTop\"),n=t[e?\"left\":\"right\"],o=t[i?\"top\":\"bottom\"],s=this.layout.size,r=-1!=n.indexOf(\"%\")?parseFloat(n)/100*s.width:parseInt(n,10),a=-1!=o.indexOf(\"%\")?parseFloat(o)/100*s.height:parseInt(o,10);r=isNaN(r)?0:r,a=isNaN(a)?0:a,r-=e?s.paddingLeft:s.paddingRight,a-=i?s.paddingTop:s.paddingBottom,this.position.x=r,this.position.y=a},d.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption(\"originLeft\"),n=this.layout._getOption(\"originTop\"),o=i?\"paddingLeft\":\"paddingRight\",s=i?\"left\":\"right\",r=i?\"right\":\"left\",a=this.position.x+t[o];e[s]=this.getXValue(a),e[r]=\"\";var u=n?\"paddingTop\":\"paddingBottom\",h=n?\"top\":\"bottom\",d=n?\"bottom\":\"top\",l=this.position.y+t[u];e[h]=this.getYValue(l),e[d]=\"\",this.css(e),this.emitEvent(\"layout\",[this])},d.getXValue=function(t){var e=this.layout._getOption(\"horizontal\");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+\"%\":t+\"px\"},d.getYValue=function(t){var e=this.layout._getOption(\"horizontal\");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+\"%\":t+\"px\"},d._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,o=parseInt(t,10),s=parseInt(e,10),r=o===this.position.x&&s===this.position.y;if(this.setPosition(t,e),r&&!this.isTransitioning)return void this.layoutPosition();var a=t-i,u=e-n,h={};h.transform=this.getTranslate(a,u),this.transition({to:h,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},d.getTranslate=function(t,e){var i=this.layout._getOption(\"originLeft\"),n=this.layout._getOption(\"originTop\");return t=i?t:-t,e=n?e:-e,\"translate3d(\"+t+\"px, \"+e+\"px, 0)\"},d.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},d.moveTo=d._transitionTo,d.setPosition=function(t,e){this.position.x=parseInt(t,10),this.position.y=parseInt(e,10)},d._nonTransition=function(t){this.css(t.to),t.isCleaning&&this._removeStyles(t.to);for(var e in t.onTransitionEnd)t.onTransitionEnd[e].call(this)},d.transition=function(t){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(t);var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);var n=this.element.offsetHeight;n=null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0};var l=\"opacity,\"+o(a);d.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t=\"number\"==typeof t?t+\"ms\":t,this.css({transitionProperty:l,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(u,this,!1)}},d.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},d.onotransitionend=function(t){this.ontransitionend(t)};var f={\"-webkit-transform\":\"transform\"};d.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,n=f[t.propertyName]||t.propertyName;if(delete e.ingProperties[n],i(e.ingProperties)&&this.disableTransition(),n in e.clean&&(this.element.style[t.propertyName]=\"\",delete e.clean[n]),n in e.onEnd){var o=e.onEnd[n];o.call(this),delete e.onEnd[n]}this.emitEvent(\"transitionEnd\",[this])}},d.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(u,this,!1),this.isTransitioning=!1},d._removeStyles=function(t){var e={};for(var i in t)e[i]=\"\";this.css(e)};var c={transitionProperty:\"\",transitionDuration:\"\",transitionDelay:\"\"};return d.removeTransitionStyles=function(){this.css(c)},d.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+\"ms\"},d.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:\"\"}),this.emitEvent(\"remove\",[this])},d.remove=function(){return r&&parseFloat(this.layout.options.transitionDuration)?(this.once(\"transitionEnd\",function(){this.removeElem()}),void this.hide()):void this.removeElem()},d.reveal=function(){delete this.isHidden,this.css({display:\"\"});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty(\"visibleStyle\");e[i]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},d.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent(\"reveal\")},d.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return\"opacity\";for(var i in e)return i},d.hide=function(){this.isHidden=!0,this.css({display:\"\"});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty(\"hiddenStyle\");e[i]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},d.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:\"none\"}),this.emitEvent(\"hide\"))},d.destroy=function(){this.css({position:\"\",left:\"\",right:\"\",top:\"\",bottom:\"\",transition:\"\",transform:\"\"})},n}),function(t,e){\"use strict\";\"function\"==typeof define&&define.amd?define(\"outlayer/outlayer\",[\"ev-emitter/ev-emitter\",\"get-size/get-size\",\"fizzy-ui-utils/utils\",\"./item\"],function(i,n,o,s){return e(t,i,n,o,s)}):\"object\"==typeof module&&module.exports?module.exports=e(t,require(\"ev-emitter\"),require(\"get-size\"),require(\"fizzy-ui-utils\"),require(\"./item\")):t.Outlayer=e(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)}(window,function(t,e,i,n,o){\"use strict\";function s(t,e){var i=n.getQueryElement(t);if(!i)return void(u&&u.error(\"Bad element for \"+this.constructor.namespace+\": \"+(i||t)));this.element=i,h&&(this.$element=h(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e);var o=++l;this.element.outlayerGUID=o,f[o]=this,this._create();var s=this._getOption(\"initLayout\");s&&this.layout()}function r(t){function e(){t.apply(this,arguments)}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e}function a(t){if(\"number\"==typeof t)return t;var e=t.match(/(^\\d*\\.?\\d*)(\\w*)/),i=e&&e[1],n=e&&e[2];if(!i.length)return 0;i=parseFloat(i);var o=m[n]||1;return i*o}var u=t.console,h=t.jQuery,d=function(){},l=0,f={};s.namespace=\"outlayer\",s.Item=o,s.defaults={containerStyle:{position:\"relative\"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:\"0.4s\",hiddenStyle:{opacity:0,transform:\"scale(0.001)\"},visibleStyle:{opacity:1,transform:\"scale(1)\"}};var c=s.prototype;n.extend(c,e.prototype),c.option=function(t){n.extend(this.options,t)},c._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},s.compatOptions={initLayout:\"isInitLayout\",horizontal:\"isHorizontal\",layoutInstant:\"isLayoutInstant\",originLeft:\"isOriginLeft\",originTop:\"isOriginTop\",resize:\"isResizeBound\",resizeContainer:\"isResizingContainer\"},c._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle);var t=this._getOption(\"resize\");t&&this.bindResize()},c.reloadItems=function(){this.items=this._itemize(this.element.children)},c._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],o=0;o<e.length;o++){var s=e[o],r=new i(s,this);n.push(r)}return n},c._filterFindItemElements=function(t){return n.filterFindElements(t,this.options.itemSelector)},c.getItemElements=function(){return this.items.map(function(t){return t.element})},c.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption(\"layoutInstant\"),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},c._init=c.layout,c._resetLayout=function(){this.getSize()},c.getSize=function(){this.size=i(this.element)},c._getMeasurement=function(t,e){var n,o=this.options[t];o?(\"string\"==typeof o?n=this.element.querySelector(o):o instanceof HTMLElement&&(n=o),this[t]=n?i(n)[e]:o):this[t]=0},c.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},c._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},c._layoutItems=function(t,e){if(this._emitCompleteOnItems(\"layout\",t),t&&t.length){var i=[];t.forEach(function(t){var n=this._getItemLayoutPosition(t);n.item=t,n.isInstant=e||t.isLayoutInstant,i.push(n)},this),this._processLayoutQueue(i)}},c._getItemLayoutPosition=function(){return{x:0,y:0}},c._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},c.updateStagger=function(){var t=this.options.stagger;return null===t||void 0===t?void(this.stagger=0):(this.stagger=a(t),this.stagger)},c._positionItem=function(t,e,i,n,o){n?t.goTo(e,i):(t.stagger(o*this.stagger),t.moveTo(e,i))},c._postLayout=function(){this.resizeContainer()},c.resizeContainer=function(){var t=this._getOption(\"resizeContainer\");if(t){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},c._getContainerSize=d,c._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?\"width\":\"height\"]=t+\"px\"}},c._emitCompleteOnItems=function(t,e){function i(){o.dispatchEvent(t+\"Complete\",null,[e])}function n(){r++,r==s&&i()}var o=this,s=e.length;if(!e||!s)return void i();var r=0;e.forEach(function(e){e.once(t,n)})},c.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;if(this.emitEvent(t,n),h)if(this.$element=this.$element||h(this.element),e){var o=h.Event(e);o.type=t,this.$element.trigger(o,i)}else this.$element.trigger(t,i)},c.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},c.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},c.stamp=function(t){t=this._find(t),t&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},c.unstamp=function(t){t=this._find(t),t&&t.forEach(function(t){n.removeFrom(this.stamps,t),this.unignore(t)},this)},c._find=function(t){return t?(\"string\"==typeof t&&(t=this.element.querySelectorAll(t)),t=n.makeArray(t)):void 0},c._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},c._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},c._manageStamp=d,c._getElementOffset=function(t){var e=t.getBoundingClientRect(),n=this._boundingRect,o=i(t),s={left:e.left-n.left-o.marginLeft,top:e.top-n.top-o.marginTop,right:n.right-e.right-o.marginRight,bottom:n.bottom-e.bottom-o.marginBottom};return s},c.handleEvent=n.handleEvent,c.bindResize=function(){t.addEventListener(\"resize\",this),this.isResizeBound=!0},c.unbindResize=function(){t.removeEventListener(\"resize\",this),this.isResizeBound=!1},c.onresize=function(){this.resize()},n.debounceMethod(s,\"onresize\",100),c.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},c.needsResizeLayout=function(){var t=i(this.element),e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},c.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},c.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},c.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},c.reveal=function(t){if(this._emitCompleteOnItems(\"reveal\",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.reveal()})}},c.hide=function(t){if(this._emitCompleteOnItems(\"hide\",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.hide()})}},c.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},c.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},c.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},c.getItems=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){var i=this.getItem(t);i&&e.push(i)},this),e},c.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems(\"remove\",e),e&&e.length&&e.forEach(function(t){t.remove(),n.removeFrom(this.items,t)},this)},c.destroy=function(){var t=this.element.style;t.height=\"\",t.position=\"\",t.width=\"\",this.items.forEach(function(t){t.destroy()}),this.unbindResize();var e=this.element.outlayerGUID;delete f[e],delete this.element.outlayerGUID,h&&h.removeData(this.element,this.constructor.namespace)},s.data=function(t){t=n.getQueryElement(t);var e=t&&t.outlayerGUID;return e&&f[e]},s.create=function(t,e){var i=r(s);return i.defaults=n.extend({},s.defaults),n.extend(i.defaults,e),i.compatOptions=n.extend({},s.compatOptions),i.namespace=t,i.data=s.data,i.Item=r(o),n.htmlInit(i,t),h&&h.bridget&&h.bridget(t,i),i};var m={ms:1,s:1e3};return s.Item=o,s}),function(t,e){\"function\"==typeof define&&define.amd?define(\"isotope/js/item\",[\"outlayer/outlayer\"],e):\"object\"==typeof module&&module.exports?module.exports=e(require(\"outlayer\")):(t.Isotope=t.Isotope||{},t.Isotope.Item=e(t.Outlayer))}(window,function(t){\"use strict\";function e(){t.Item.apply(this,arguments)}var i=e.prototype=Object.create(t.Item.prototype),n=i._create;i._create=function(){this.id=this.layout.itemGUID++,n.call(this),this.sortData={}},i.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData[\"original-order\"]=this.id,this.sortData.random=Math.random();var t=this.layout.options.getSortData,e=this.layout._sorters;for(var i in t){var n=e[i];this.sortData[i]=n(this.element,this)}}};var o=i.destroy;return i.destroy=function(){o.apply(this,arguments),this.css({display:\"\"})},e}),function(t,e){\"function\"==typeof define&&define.amd?define(\"isotope/js/layout-mode\",[\"get-size/get-size\",\"outlayer/outlayer\"],e):\"object\"==typeof module&&module.exports?module.exports=e(require(\"get-size\"),require(\"outlayer\")):(t.Isotope=t.Isotope||{},t.Isotope.LayoutMode=e(t.getSize,t.Outlayer))}(window,function(t,e){\"use strict\";function i(t){this.isotope=t,t&&(this.options=t.options[this.namespace],this.element=t.element,this.items=t.filteredItems,this.size=t.size)}var n=i.prototype,o=[\"_resetLayout\",\"_getItemLayoutPosition\",\"_manageStamp\",\"_getContainerSize\",\"_getElementOffset\",\"needsResizeLayout\",\"_getOption\"];return o.forEach(function(t){n[t]=function(){return e.prototype[t].apply(this.isotope,arguments)}}),n.needsVerticalResizeLayout=function(){var e=t(this.isotope.element),i=this.isotope.size&&e;return i&&e.innerHeight!=this.isotope.size.innerHeight},n._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},n.getColumnWidth=function(){this.getSegmentSize(\"column\",\"Width\")},n.getRowHeight=function(){this.getSegmentSize(\"row\",\"Height\")},n.getSegmentSize=function(t,e){var i=t+e,n=\"outer\"+e;if(this._getMeasurement(i,n),!this[i]){var o=this.getFirstItemSize();this[i]=o&&o[n]||this.isotope.size[\"inner\"+e]}},n.getFirstItemSize=function(){var e=this.isotope.filteredItems[0];return e&&e.element&&t(e.element)},n.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},n.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},i.modes={},i.create=function(t,e){function o(){i.apply(this,arguments)}return o.prototype=Object.create(n),o.prototype.constructor=o,e&&(o.options=e),o.prototype.namespace=t,i.modes[t]=o,o},i}),function(t,e){\"function\"==typeof define&&define.amd?define(\"masonry/masonry\",[\"outlayer/outlayer\",\"get-size/get-size\"],e):\"object\"==typeof module&&module.exports?module.exports=e(require(\"outlayer\"),require(\"get-size\")):t.Masonry=e(t.Outlayer,t.getSize)}(window,function(t,e){var i=t.create(\"masonry\");return i.compatOptions.fitWidth=\"isFitWidth\",i.prototype._resetLayout=function(){this.getSize(),this._getMeasurement(\"columnWidth\",\"outerWidth\"),this._getMeasurement(\"gutter\",\"outerWidth\"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0},i.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&e(i).outerWidth||this.containerWidth}var n=this.columnWidth+=this.gutter,o=this.containerWidth+this.gutter,s=o/n,r=n-o%n,a=r&&1>r?\"round\":\"floor\";s=Math[a](s),this.cols=Math.max(s,1)},i.prototype.getContainerWidth=function(){var t=this._getOption(\"fitWidth\"),i=t?this.element.parentNode:this.element,n=e(i);this.containerWidth=n&&n.innerWidth},i.prototype._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=e&&1>e?\"round\":\"ceil\",n=Math[i](t.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var o=this._getColGroup(n),s=Math.min.apply(Math,o),r=o.indexOf(s),a={x:this.columnWidth*r,y:s},u=s+t.size.outerHeight,h=this.cols+1-o.length,d=0;h>d;d++)this.colYs[r+d]=u;return a},i.prototype._getColGroup=function(t){if(2>t)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;i>n;n++){var o=this.colYs.slice(n,n+t);e[n]=Math.max.apply(Math,o)}return e},i.prototype._manageStamp=function(t){var i=e(t),n=this._getElementOffset(t),o=this._getOption(\"originLeft\"),s=o?n.left:n.right,r=s+i.outerWidth,a=Math.floor(s/this.columnWidth);a=Math.max(0,a);var u=Math.floor(r/this.columnWidth);u-=r%this.columnWidth?0:1,u=Math.min(this.cols-1,u);for(var h=this._getOption(\"originTop\"),d=(h?n.top:n.bottom)+i.outerHeight,l=a;u>=l;l++)this.colYs[l]=Math.max(d,this.colYs[l])},i.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption(\"fitWidth\")&&(t.width=this._getContainerFitWidth()),t},i.prototype._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},i.prototype.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},i}),function(t,e){\"function\"==typeof define&&define.amd?define(\"isotope/js/layout-modes/masonry\",[\"../layout-mode\",\"masonry/masonry\"],e):\"object\"==typeof module&&module.exports?module.exports=e(require(\"../layout-mode\"),require(\"masonry-layout\")):e(t.Isotope.LayoutMode,t.Masonry)}(window,function(t,e){\"use strict\";var i=t.create(\"masonry\"),n=i.prototype,o={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(var s in e.prototype)o[s]||(n[s]=e.prototype[s]);var r=n.measureColumns;n.measureColumns=function(){this.items=this.isotope.filteredItems,r.call(this)};var a=n._getOption;return n._getOption=function(t){return\"fitWidth\"==t?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:a.apply(this.isotope,arguments)},i}),function(t,e){\"function\"==typeof define&&define.amd?define(\"isotope/js/layout-modes/fit-rows\",[\"../layout-mode\"],e):\"object\"==typeof exports?module.exports=e(require(\"../layout-mode\")):e(t.Isotope.LayoutMode)}(window,function(t){\"use strict\";var e=t.create(\"fitRows\"),i=e.prototype;return i._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement(\"gutter\",\"outerWidth\")},i._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter;0!==this.x&&e+this.x>i&&(this.x=0,this.y=this.maxY);var n={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=e,n},i._getContainerSize=function(){return{height:this.maxY}},e}),function(t,e){\"function\"==typeof define&&define.amd?define(\"isotope/js/layout-modes/vertical\",[\"../layout-mode\"],e):\"object\"==typeof module&&module.exports?module.exports=e(require(\"../layout-mode\")):e(t.Isotope.LayoutMode)}(window,function(t){\"use strict\";var e=t.create(\"vertical\",{horizontalAlignment:0}),i=e.prototype;return i._resetLayout=function(){this.y=0},i._getItemLayoutPosition=function(t){t.getSize();var e=(this.isotope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=t.size.outerHeight,{x:e,y:i}},i._getContainerSize=function(){return{height:this.y}},e}),function(t,e){\"function\"==typeof define&&define.amd?define([\"outlayer/outlayer\",\"get-size/get-size\",\"desandro-matches-selector/matches-selector\",\"fizzy-ui-utils/utils\",\"isotope/js/item\",\"isotope/js/layout-mode\",\"isotope/js/layout-modes/masonry\",\"isotope/js/layout-modes/fit-rows\",\"isotope/js/layout-modes/vertical\"],function(i,n,o,s,r,a){return e(t,i,n,o,s,r,a)}):\"object\"==typeof module&&module.exports?module.exports=e(t,require(\"outlayer\"),require(\"get-size\"),require(\"desandro-matches-selector\"),require(\"fizzy-ui-utils\"),require(\"isotope/js/item\"),require(\"isotope/js/layout-mode\"),require(\"isotope/js/layout-modes/masonry\"),require(\"isotope/js/layout-modes/fit-rows\"),require(\"isotope/js/layout-modes/vertical\")):t.Isotope=e(t,t.Outlayer,t.getSize,t.matchesSelector,t.fizzyUIUtils,t.Isotope.Item,t.Isotope.LayoutMode)}(window,function(t,e,i,n,o,s,r){function a(t,e){return function(i,n){for(var o=0;o<t.length;o++){var s=t[o],r=i.sortData[s],a=n.sortData[s];if(r>a||a>r){var u=void 0!==e[s]?e[s]:e,h=u?1:-1;return(r>a?1:-1)*h}}return 0}}var u=t.jQuery,h=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\\s+|\\s+$/g,\"\")},d=e.create(\"isotope\",{layoutMode:\"masonry\",isJQueryFiltering:!0,sortAscending:!0});d.Item=s,d.LayoutMode=r;var l=d.prototype;l._create=function(){this.itemGUID=0,this._sorters={},this._getSorters(),e.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=[\"original-order\"];for(var t in r.modes)this._initLayoutMode(t)},l.reloadItems=function(){this.itemGUID=0,e.prototype.reloadItems.call(this)},l._itemize=function(){for(var t=e.prototype._itemize.apply(this,arguments),i=0;i<t.length;i++){var n=t[i];n.id=this.itemGUID++}return this._updateItemsSortData(t),t},l._initLayoutMode=function(t){var e=r.modes[t],i=this.options[t]||{};this.options[t]=e.options?o.extend(e.options,i):i,this.modes[t]=new e(this)},l.layout=function(){return!this._isLayoutInited&&this._getOption(\"initLayout\")?void this.arrange():void this._layout()},l._layout=function(){var t=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,t),this._isLayoutInited=!0},l.arrange=function(t){this.option(t),this._getIsInstant();var e=this._filter(this.items);this.filteredItems=e.matches,this._bindArrangeComplete(),this._isInstant?this._noTransition(this._hideReveal,[e]):this._hideReveal(e),this._sort(),this._layout()},l._init=l.arrange,l._hideReveal=function(t){this.reveal(t.needReveal),this.hide(t.needHide)},l._getIsInstant=function(){var t=this._getOption(\"layoutInstant\"),e=void 0!==t?t:!this._isLayoutInited;return this._isInstant=e,e},l._bindArrangeComplete=function(){function t(){e&&i&&n&&o.dispatchEvent(\"arrangeComplete\",null,[o.filteredItems])}var e,i,n,o=this;this.once(\"layoutComplete\",function(){e=!0,t()}),this.once(\"hideComplete\",function(){i=!0,t()}),this.once(\"revealComplete\",function(){n=!0,t()})},l._filter=function(t){var e=this.options.filter;e=e||\"*\";for(var i=[],n=[],o=[],s=this._getFilterTest(e),r=0;r<t.length;r++){var a=t[r];if(!a.isIgnored){var u=s(a);u&&i.push(a),u&&a.isHidden?n.push(a):u||a.isHidden||o.push(a)}}return{matches:i,needReveal:n,needHide:o}},l._getFilterTest=function(t){return u&&this.options.isJQueryFiltering?function(e){return u(e.element).is(t)}:\"function\"==typeof t?function(e){return t(e.element)}:function(e){return n(e.element,t)}},l.updateSortData=function(t){var e;t?(t=o.makeArray(t),e=this.getItems(t)):e=this.items,this._getSorters(),this._updateItemsSortData(e)},l._getSorters=function(){var t=this.options.getSortData;for(var e in t){var i=t[e];this._sorters[e]=f(i)}},l._updateItemsSortData=function(t){for(var e=t&&t.length,i=0;e&&e>i;i++){var n=t[i];n.updateSortData()}};var f=function(){function t(t){if(\"string\"!=typeof t)return t;var i=h(t).split(\" \"),n=i[0],o=n.match(/^\\[(.+)\\]$/),s=o&&o[1],r=e(s,n),a=d.sortDataParsers[i[1]];\r\nreturn t=a?function(t){return t&&a(r(t))}:function(t){return t&&r(t)}}function e(t,e){return t?function(e){return e.getAttribute(t)}:function(t){var i=t.querySelector(e);return i&&i.textContent}}return t}();d.sortDataParsers={parseInt:function(t){return parseInt(t,10)},parseFloat:function(t){return parseFloat(t)}},l._sort=function(){var t=this.options.sortBy;if(t){var e=[].concat.apply(t,this.sortHistory),i=a(e,this.options.sortAscending);this.filteredItems.sort(i),t!=this.sortHistory[0]&&this.sortHistory.unshift(t)}},l._mode=function(){var t=this.options.layoutMode,e=this.modes[t];if(!e)throw new Error(\"No layout mode: \"+t);return e.options=this.options[t],e},l._resetLayout=function(){e.prototype._resetLayout.call(this),this._mode()._resetLayout()},l._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},l._manageStamp=function(t){this._mode()._manageStamp(t)},l._getContainerSize=function(){return this._mode()._getContainerSize()},l.needsResizeLayout=function(){return this._mode().needsResizeLayout()},l.appended=function(t){var e=this.addItems(t);if(e.length){var i=this._filterRevealAdded(e);this.filteredItems=this.filteredItems.concat(i)}},l.prepended=function(t){var e=this._itemize(t);if(e.length){this._resetLayout(),this._manageStamps();var i=this._filterRevealAdded(e);this.layoutItems(this.filteredItems),this.filteredItems=i.concat(this.filteredItems),this.items=e.concat(this.items)}},l._filterRevealAdded=function(t){var e=this._filter(t);return this.hide(e.needHide),this.reveal(e.matches),this.layoutItems(e.matches,!0),e.matches},l.insert=function(t){var e=this.addItems(t);if(e.length){var i,n,o=e.length;for(i=0;o>i;i++)n=e[i],this.element.appendChild(n.element);var s=this._filter(e).matches;for(i=0;o>i;i++)e[i].isLayoutInstant=!0;for(this.arrange(),i=0;o>i;i++)delete e[i].isLayoutInstant;this.reveal(s)}};var c=l.remove;return l.remove=function(t){t=o.makeArray(t);var e=this.getItems(t);c.call(this,t);for(var i=e&&e.length,n=0;i&&i>n;n++){var s=e[n];o.removeFrom(this.filteredItems,s)}},l.shuffle=function(){for(var t=0;t<this.items.length;t++){var e=this.items[t];e.sortData.random=Math.random()}this.options.sortBy=\"random\",this._sort(),this._layout()},l._noTransition=function(t,e){var i=this.options.transitionDuration;this.options.transitionDuration=0;var n=t.apply(this,e);return this.options.transitionDuration=i,n},l.getFilteredItemElements=function(){return this.filteredItems.map(function(t){return t.element})},d});","MGS_InstantSearch/js/autocomplete.min.js":"define(['jquery','uiComponent','ko'],function($,Component,ko){'use strict';return Component.extend({defaults:{template:'MGS_InstantSearch/search/autocomplete',showPopup:ko.observable(false),result:{product:{data:ko.observableArray([]),size:ko.observable(0),url:ko.observable('')},category:{data:ko.observableArray([]),size:ko.observable(0),url:ko.observable('')},page:{data:ko.observableArray([]),size:ko.observable(0),url:ko.observable('')},blog:{data:ko.observableArray([]),size:ko.observable(0),url:ko.observable('')}},textNoResult:'',anyResultCount:false},initialize:function(){var self=this;this._super();window.instantSearch=self.result;textNoResult:this.textNoResult;this.anyResultCount=ko.computed(function(){var sum=self.result.product.size()+self.result.category.size()+self.result.page.size()+self.result.blog.size();if(sum>0){return true;}\nreturn false;},this);}});});","MGS_InstantSearch/js/search/list/toolbar.min.js":"define([\"jquery\",\"jquery/ui\"],function($){$.widget('mage.searchListToolbarForm',{options:{limitControl:'[data-role=\"limiter\"]',limit:'list_limit',limitDefault:'12',url:''},_create:function(){this._bind($(this.options.limitControl),this.options.limit,this.options.limitDefault);},_bind:function(element,paramName,defaultValue){if(element.is(\"select\")){element.on('change',{paramName:paramName,default:defaultValue},$.proxy(this._processSelect,this));}},_processSelect:function(event){this.changeUrl(event.data.paramName,event.currentTarget.options[event.currentTarget.selectedIndex].value,event.data.default);},changeUrl:function(paramName,paramValue,defaultValue){var decode=window.decodeURIComponent;var urlPaths=this.options.url.split('?'),baseUrl=urlPaths[0],urlParams=urlPaths[1]?urlPaths[1].split('&'):[],paramData={},parameters;for(var i=0;i<urlParams.length;i++){parameters=urlParams[i].split('=');paramData[decode(parameters[0])]=parameters[1]!==undefined?decode(parameters[1].replace(/\\+/g,'%20')):'';}\nparamData[paramName]=paramValue;if(paramValue==defaultValue){delete paramData[paramName];}\nparamData=$.param(paramData);location.href=baseUrl+(paramData.length?'?'+paramData:'');}});return $.mage.searchListToolbarForm;});","MGS_InstantSearch/js/view/category.min.js":"define(['ko','jquery','uiComponent'],function(ko,$,Component){'use strict';return Component.extend({defaults:{template:'MGS_InstantSearch/search/category',result:{category:{data:ko.observableArray([]),size:ko.observable(0),url:ko.observable('')}},isVisible:false},initialize:function(){var self=this;this._super();if(window.instantSearch.category){self.result.category=window.instantSearch.category;}\nthis.isVisible=ko.computed(function(){var sum=self.result.category.size();if(sum>0){return true;}\nreturn false;},this);}});});","MGS_InstantSearch/js/view/blog.min.js":"define(['ko','jquery','uiComponent'],function(ko,$,Component){'use strict';return Component.extend({defaults:{template:'MGS_InstantSearch/search/blog',result:{blog:{data:ko.observableArray([]),size:ko.observable(0),url:ko.observable('')}},isVisible:false},initialize:function(){var self=this;this._super();if(window.instantSearch.blog){self.result.blog=window.instantSearch.blog;}\nthis.isVisible=ko.computed(function(){var sum=self.result.blog.size();if(sum>0){return true;}\nreturn false;},this);}});});","MGS_InstantSearch/js/view/product.min.js":"define(['ko','jquery','uiComponent'],function(ko,$,Component){'use strict';return Component.extend({defaults:{template:'MGS_InstantSearch/search/product',result:{product:{data:ko.observableArray([]),size:ko.observable(0),url:ko.observable('')}},isVisible:false},initialize:function(){var self=this;this._super();if(window.instantSearch.product){self.result.product=window.instantSearch.product;}\nthis.isVisible=ko.computed(function(){var sum=self.result.product.size();if(sum>0){return true;}\nreturn false;},this);}});});","MGS_InstantSearch/js/view/cms/page.min.js":"define(['ko','jquery','uiComponent'],function(ko,$,Component){'use strict';return Component.extend({defaults:{template:'MGS_InstantSearch/search/cms/page',result:{page:{data:ko.observableArray([]),size:ko.observable(0),url:ko.observable('')}},isVisible:false},initialize:function(){var self=this;this._super();if(window.instantSearch.page){self.result.page=window.instantSearch.page;}\nthis.isVisible=ko.computed(function(){var sum=self.result.page.size();if(sum>0){return true;}\nreturn false;},this);}});});","MGS_InstantSearch/js/action/bindEvents.min.js":"define(['jquery','uiComponent','uiRegistry','mageUtils'],function($,Component,registry,utils){'use strict';return Component.extend({defaults:{minSearchLength:2},initialize:function(){this._super();utils.limit(this,'load',this.searchDelay);$(this.inputSelector).off('input').on('input',$.proxy(this.load,this)).on('input',$.proxy(this.searchButtonStatus,this)).on('focus',$.proxy(this.showPopup,this));$(document).on('click',$.proxy(this.hidePopup,this));$(document).ready($.proxy(this.load,this));$(document).ready($.proxy(this.searchButtonStatus,this));},load:function(event){var self=this;var searchText=$(self.inputSelector).val();if(searchText.length<self.minSearchLength){return false;}\nregistry.get('autocompleteDataProvider',function(dataProvider){dataProvider.searchText=searchText;dataProvider.load();});},showPopup:function(event){var self=this,searchField=$(self.inputSelector),searchFieldHasFocus=searchField.is(':focus')&&searchField.val().length>=self.minSearchLength;registry.get('instant_search_form',function(autocomplete){autocomplete.showPopup(searchFieldHasFocus);});},hidePopup:function(event){if($(this.searchFormSelector).has($(event.target)).length<=0){registry.get('instant_search_form',function(autocomplete){autocomplete.showPopup(false);});}},searchButtonStatus:function(event){var self=this,searchField=$(self.inputSelector),searchButton=$(self.searchButtonSelector),searchButtonDisabled=(searchField.val().length>0)?false:true;searchButton.attr('disabled',searchButtonDisabled);},spinnerShow:function(){var spinner=$(this.searchFormSelector);spinner.addClass('loading');},spinnerHide:function(){var spinner=$(this.searchFormSelector);spinner.removeClass('loading');}});});","MGS_InstantSearch/js/action/dataProvider.min.js":"define(['jquery','uiComponent','uiRegistry','underscore'],function($,Component,registry,_){'use strict';$.Product=function(data){this.name=data.name;this.image=data.image;this.reviews_rating=data[1]?data[1].reviews_rating:null;this.short_description=data[0]?data[0].short_description:null;this.price=data.price;this.url=data.url;};$.Category=function(data){this.name=data.name;this.url=data.url;};$.Page=function(data){this.name=data.name;this.url=data.url;};$.Blog=function(data){this.name=data.name;this.short_content=data.short_content;this.thumbnail=data.thumbnail;this.url=data.url;};return Component.extend({defaults:{localStorage:'',searchText:''},initialize:function(){if(typeof $.initNamespaceStorage!=='undefined'){this.localStorage=$.initNamespaceStorage('instantsearch').localStorage;}\nthis._super();},load:function(){var self=this;if(this.xhr){this.xhr.abort();}\nthis.xhr=$.ajax({method:\"get\",dataType:\"json\",url:this.url,data:{q:this.searchText},beforeSend:function(){self.spinnerShow();if(self.loadFromLocalSorage(self.searchText)){self.showPopup();}},success:$.proxy(function(response){self.parseData(response);self.saveToLocalSorage(response,self.searchText);self.spinnerHide();self.showPopup();})});},showPopup:function(){registry.get('autocompleteBindEvents',function(binder){binder.showPopup();});},spinnerShow:function(){registry.get('autocompleteBindEvents',function(binder){binder.spinnerShow();});},spinnerHide:function(){registry.get('autocompleteBindEvents',function(binder){binder.spinnerHide();});},parseData:function(response){this.setProducts(this.getResponseData(response,'product'));this.setCategories(this.getResponseData(response,'category'));this.setPages(this.getResponseData(response,'page'));this.setBlogs(this.getResponseData(response,'blog'));},getResponseData:function(response,code){var data=[]\nif(_.isUndefined(response.result)){return data;}\n$.each(response.result,function(index,obj){if(index==code){data=obj;}});return data;},setProducts:function(productsData){var products=[];if(!_.isUndefined(productsData.data)){products=$.map(productsData.data,function(product){return new $.Product(product)});}\nregistry.get('instant_search_form',function(autocomplete){autocomplete.result.product.data(products);autocomplete.result.product.size(productsData.size);autocomplete.result.product.url(productsData.url);});},setCategories:function(categoriesData){var categories=[];if(!_.isUndefined(categoriesData.data)){categories=$.map(categoriesData.data,function(category){return new $.Category(category)});}\nregistry.get('instant_search_form',function(autocomplete){autocomplete.result.category.data(categories);autocomplete.result.category.size(categoriesData.size);autocomplete.result.category.url(categoriesData.url);});},setPages:function(pagesData){var pages=[];if(!_.isUndefined(pagesData.data)){pages=$.map(pagesData.data,function(page){return new $.Page(page)});}\nregistry.get('instant_search_form',function(autocomplete){autocomplete.result.page.data(pages);autocomplete.result.page.size(pagesData.size);autocomplete.result.page.url(pagesData.url);});},setBlogs:function(postsData){var posts=[];if(!_.isUndefined(postsData.data)){posts=$.map(postsData.data,function(post){return new $.Blog(post)});}\nregistry.get('instant_search_form',function(autocomplete){autocomplete.result.blog.data(posts);autocomplete.result.blog.size(postsData.size);autocomplete.result.blog.url(postsData.url);});},loadFromLocalSorage:function(queryText){if(!this.localStorage){return;}\nvar hash=this._hash(queryText);var data=this.localStorage.get(hash);if(!data){return false;}\nthis.parseData(data);return true;},saveToLocalSorage:function(data,queryText){if(!this.localStorage){return;}\nvar hash=this._hash(queryText);this.localStorage.remove(hash);this.localStorage.set(hash,data);},_hash:function(object){var string=JSON.stringify(object)+\"\";var hash=0,i,chr,len;if(string.length==0){return hash;}\nfor(i=0,len=string.length;i<len;i++){chr=string.charCodeAt(i);hash=((hash<<5)-hash)+chr;hash|=0;}\nreturn'h'+hash;}});});","Magento_Catalog/product/view/validation.min.js":"define(['jquery','jquery-ui-modules/widget','mage/validation/validation'],function($){'use strict';$.widget('mage.validation',$.mage.validation,{options:{radioCheckboxClosest:'ul, ol',errorPlacement:function(error,element){var messageBox,dataValidate;if($(element).hasClass('datetime-picker')){element=$(element).parent();if(element.parent().find('.mage-error').length){return;}}\nif(element.attr('data-errors-message-box')){messageBox=$(element.attr('data-errors-message-box'));messageBox.html(error);return;}\ndataValidate=element.attr('data-validate');if(dataValidate&&dataValidate.indexOf('validate-one-checkbox-required-by-name')>0){error.appendTo('#links-advice-container');}else if(element.is(':radio, :checkbox')){element.closest(this.radioCheckboxClosest).after(error);}else{element.after(error);}},highlight:function(element,errorClass){var dataValidate=$(element).attr('data-validate');if(dataValidate&&dataValidate.indexOf('validate-required-datetime')>0){$(element).parent().find('.datetime-picker').each(function(){$(this).removeClass(errorClass);if($(this).val().length===0){$(this).addClass(errorClass);}});}else if($(element).is(':radio, :checkbox')){$(element).closest(this.radioCheckboxClosest).addClass(errorClass);}else{$(element).addClass(errorClass);}},unhighlight:function(element,errorClass){var dataValidate=$(element).attr('data-validate');if(dataValidate&&dataValidate.indexOf('validate-required-datetime')>0){$(element).parent().find('.datetime-picker').removeClass(errorClass);}else if($(element).is(':radio, :checkbox')){$(element).closest(this.radioCheckboxClosest).removeClass(errorClass);}else{$(element).removeClass(errorClass);}}}});return $.mage.validation;});","Magento_Catalog/js/price-options.min.js":"define(['jquery','underscore','mage/template','priceUtils','priceBox','jquery-ui-modules/widget'],function($,_,mageTemplate,utils){'use strict';var globalOptions={productId:null,priceHolderSelector:'.price-box',optionsSelector:'.product-custom-option',optionConfig:{},optionHandlers:{},optionTemplate:'<%= data.label %>'+'<% if (data.finalPrice.value > 0) { %>'+' +<%- data.finalPrice.formatted %>'+'<% } else if (data.finalPrice.value < 0) { %>'+' <%- data.finalPrice.formatted %>'+'<% } %>',controlContainer:'dd'};function defaultGetOptionValue(element,optionsConfig){var changes={},optionValue=element.val(),optionId=utils.findOptionId(element[0]),optionName=element.prop('name'),optionType=element.prop('type'),optionConfig=optionsConfig[optionId],optionHash=optionName;switch(optionType){case'text':case'textarea':changes[optionHash]=optionValue?optionConfig.prices:{};break;case'radio':if(element.is(':checked')){changes[optionHash]=optionConfig[optionValue]&&optionConfig[optionValue].prices||{};}\nbreak;case'select-one':changes[optionHash]=optionConfig[optionValue]&&optionConfig[optionValue].prices||{};break;case'select-multiple':_.each(optionConfig,function(row,optionValueCode){optionHash=optionName+'##'+optionValueCode;changes[optionHash]=_.contains(optionValue,optionValueCode)?row.prices:{};});break;case'checkbox':optionHash=optionName+'##'+optionValue;changes[optionHash]=element.is(':checked')?optionConfig[optionValue].prices:{};break;case'file':changes[optionHash]=optionValue||element.prop('disabled')?optionConfig.prices:{};break;}\nreturn changes;}\n$.widget('mage.priceOptions',{options:globalOptions,_init:function initPriceBundle(){$(this.options.optionsSelector,this.element).trigger('change');},_create:function createPriceOptions(){var form=this.element,options=$(this.options.optionsSelector,form),priceBox=$(this.options.priceHolderSelector,$(this.options.optionsSelector).element);if(priceBox.data('magePriceBox')&&priceBox.priceBox('option')&&priceBox.priceBox('option').priceConfig){if(priceBox.priceBox('option').priceConfig.optionTemplate){this._setOption('optionTemplate',priceBox.priceBox('option').priceConfig.optionTemplate);}\nthis._setOption('priceFormat',priceBox.priceBox('option').priceConfig.priceFormat);}\nthis._applyOptionNodeFix(options);options.on('change',this._onOptionChanged.bind(this));},_onOptionChanged:function onOptionChanged(event){var changes,option=$(event.target),handler=this.options.optionHandlers[option.data('role')];option.data('optionContainer',option.closest(this.options.controlContainer));if(handler&&handler instanceof Function){changes=handler(option,this.options.optionConfig,this);}else{changes=defaultGetOptionValue(option,this.options.optionConfig);}\n$(this.options.priceHolderSelector).trigger('updatePrice',changes);},_applyOptionNodeFix:function applyOptionNodeFix(options){var config=this.options,format=config.priceFormat,template=config.optionTemplate;template=mageTemplate(template);options.filter('select').each(function(index,element){var $element=$(element),optionId=utils.findOptionId($element),optionConfig=config.optionConfig&&config.optionConfig[optionId];$element.find('option').each(function(idx,option){var $option,optionValue,toTemplate,prices;$option=$(option);optionValue=$option.val();if(!optionValue&&optionValue!==0){return;}\ntoTemplate={data:{label:optionConfig[optionValue]&&optionConfig[optionValue].name}};prices=optionConfig[optionValue]?optionConfig[optionValue].prices:null;if(prices){_.each(prices,function(price,type){var value=+price.amount;value+=_.reduce(price.adjustments,function(sum,x){return sum+x;},0);toTemplate.data[type]={value:value,formatted:utils.formatPriceLocale(value,format)};});$option.text(template(toTemplate));}});});},_setOptions:function setOptions(options){$.extend(true,this.options,options);this._super(options);return this;}});return $.mage.priceOptions;});","Magento_Catalog/js/list.min.js":"define(['jquery','jquery-ui-modules/widget'],function($){'use strict';$.widget('mage.compareList',{_create:function(){var elem=this.element,products=$('thead td',elem),headings;if(products.length>this.options.productsInRow){headings=$('<table></table>').addClass('comparison headings data table').insertBefore(elem.closest('.container'));elem.addClass('scroll');$('th',elem).each(function(){var th=$(this),thCopy=th.clone();th.animate({top:'+=0'},50,function(){var height=th.height();thCopy.css('height',height).appendTo(headings).wrap('<tr></tr>');});});}\n$(this.options.windowPrintSelector).on('click',function(e){e.preventDefault();window.print();});}});return $.mage.compareList;});","Magento_Catalog/js/price-option-date.min.js":"define(['jquery','priceUtils','priceOptions','jquery-ui-modules/widget'],function($,utils){'use strict';var globalOptions={fromSelector:'form',dropdownsSelector:'[data-role=calendar-dropdown]'},optionHandler={};optionHandler.optionHandlers={};function onCalendarDropdownChange(siblings){return function(element,optionConfig){var changes={},optionId=utils.findOptionId(element),overhead=optionConfig[optionId].prices,isNeedToUpdate=true,optionHash='price-option-calendar-'+optionId;siblings.each(function(index,el){isNeedToUpdate=isNeedToUpdate&&!!$(el).val();});overhead=isNeedToUpdate?overhead:{};changes[optionHash]=overhead;return changes;};}\nfunction getDaysInMonth(month,year){return new Date(year,month,0).getDate();}\nfunction onDateChange(dropdowns){var daysNodes,curMonth,curYear,expectedDays,options,needed,month=dropdowns.filter('[data-calendar-role=month]'),year=dropdowns.filter('[data-calendar-role=year]');if(month.length&&year.length){daysNodes=dropdowns.filter('[data-calendar-role=day]').find('option');curMonth=month.val()||'01';curYear=year.val()||'2000';expectedDays=getDaysInMonth(curMonth,curYear);if(daysNodes.length-1>expectedDays){daysNodes.each(function(i,e){if(e.value>expectedDays){$(e).remove();}});}else if(daysNodes.length-1<expectedDays){options=[];needed=expectedDays-daysNodes.length+1;while(needed--){options.push('<option value=\"'+(expectedDays-needed)+'\">'+(expectedDays-needed)+'</option>');}\n$(options.join('')).insertAfter(daysNodes.last());}}}\n$.widget('mage.priceOptionDate',{options:globalOptions,_create:function initOptionDate(){var field=this.element,form=field.closest(this.options.fromSelector),dropdowns=$(this.options.dropdownsSelector,field),dateOptionId;if(dropdowns.length){dateOptionId=this.options.dropdownsSelector+dropdowns.attr('name');optionHandler.optionHandlers[dateOptionId]=onCalendarDropdownChange(dropdowns);form.priceOptions(optionHandler);dropdowns.data('role',dateOptionId);dropdowns.on('change',onDateChange.bind(this,dropdowns));}}});return $.mage.priceOptionDate;});","Magento_Catalog/js/upsell-products.min.js":"define(['jquery','jquery-ui-modules/widget'],function($){'use strict';$.widget('mage.upsellProducts',{options:{elementsSelector:'.item.product'},_create:function(){if(this.element.data('shuffle')){this._shuffle(this.element.find(this.options.elementsSelector));}\nthis._showUpsellProducts(this.element.find(this.options.elementsSelector),this.element.data('limit'),this.element.data('shuffle-weighted'));},_showUpsellProducts:function(elements,limit,weightedRandom){var index,weights=[],random=[],weight=2,shown=0,$element,currentGroup,prevGroup;if(limit===0){limit=elements.length;}\nif(weightedRandom&&limit>0&&limit<elements.length){for(index=0;index<limit;index++){$element=$(elements[index]);if($element.data('shuffle-group')!==''){break;}\n$element.show();shown++;}\nlimit-=shown;for(index=elements.length-1;index>=0;index--){$element=$(elements[index]);currentGroup=$element.data('shuffle-group');if(currentGroup!==''){weights.push([index,Math.log(weight)]);if(typeof prevGroup!=='undefined'&&prevGroup!==currentGroup){weight+=2;}\nprevGroup=currentGroup;}}\nif(weights.length===0){return;}\nfor(index=0;index<weights.length;index++){random.push([weights[index][0],Math.pow(Math.random(),1 / weights[index][1])]);}\nrandom.sort(function(a,b){a=a[1];b=b[1];return a<b?1:(a>b?-1:0);});index=0;while(limit){$(elements[random[index][0]]).show();limit--;index++}\nreturn;}\nfor(index=0;index<limit;index++){$(elements[index]).show();}},_shuffle:function shuffle(elements){var parent,child,lastSibling;if(elements.length){parent=$(elements[0]).parent();}\nwhile(elements.length){child=elements.splice(Math.floor(Math.random()*elements.length),1)[0];lastSibling=parent.find('[data-shuffle-group=\"'+$(child).data('shuffle-group')+'\"]').last();lastSibling.after(child);}}});return $.mage.upsellProducts;});","Magento_Catalog/js/price-utils.min.js":"define(['jquery','underscore'],function($,_){'use strict';var globalPriceFormat={requiredPrecision:2,integerRequired:1,decimalSymbol:',',groupSymbol:',',groupLength:','};function stringPad(string,times){return new Array(times+1).join(string);}\nfunction formatPriceLocale(amount,format,isShowSign){var s='',precision,pattern,locale,r;format=_.extend(globalPriceFormat,format);precision=isNaN(format.requiredPrecision=Math.abs(format.requiredPrecision))?2:format.requiredPrecision;pattern=format.pattern||'%s';locale=window.LOCALE||'en-US';if(isShowSign===undefined||isShowSign===true){s=amount<0?'-':isShowSign?'+':'';}else if(isShowSign===false){s='';}\npattern=pattern.indexOf('{sign}')<0?s+pattern:pattern.replace('{sign}',s);amount=Number(Math.round(Math.abs(+amount||0)+'e+'+precision)+('e-'+precision));r=amount.toLocaleString(locale,{minimumFractionDigits:precision});return pattern.replace('%s',r).replace(/^\\s\\s*/,'').replace(/\\s\\s*$/,'');}\nfunction formatPrice(amount,format,isShowSign){var s='',precision,integerRequired,decimalSymbol,groupSymbol,groupLength,pattern,i,pad,j,re,r,am;format=_.extend(globalPriceFormat,format);precision=isNaN(format.requiredPrecision=Math.abs(format.requiredPrecision))?2:format.requiredPrecision;integerRequired=isNaN(format.integerRequired=Math.abs(format.integerRequired))?1:format.integerRequired;decimalSymbol=format.decimalSymbol===undefined?',':format.decimalSymbol;groupSymbol=format.groupSymbol===undefined?'.':format.groupSymbol;groupLength=format.groupLength===undefined?3:format.groupLength;pattern=format.pattern||'%s';if(isShowSign===undefined||isShowSign===true){s=amount<0?'-':isShowSign?'+':'';}else if(isShowSign===false){s='';}\npattern=pattern.indexOf('{sign}')<0?s+pattern:pattern.replace('{sign}',s);i=parseInt(amount=Number(Math.round(Math.abs(+amount||0)+'e+'+precision)+('e-'+precision)),10)+'';pad=i.length<integerRequired?integerRequired-i.length:0;i=stringPad('0',pad)+i;j=i.length>groupLength?i.length%groupLength:0;re=new RegExp('(\\\\d{'+groupLength+'})(?=\\\\d)','g');am=Number(Math.round(Math.abs(amount-i)+'e+'+precision)+('e-'+precision));r=(j?i.substr(0,j)+groupSymbol:'')+\ni.substr(j).replace(re,'$1'+groupSymbol)+\n(precision?decimalSymbol+am.toFixed(precision).replace(/-/,0).slice(2):'');return pattern.replace('%s',r).replace(/^\\s\\s*/,'').replace(/\\s\\s*$/,'');}\nfunction objectDeepClone(obj){return JSON.parse(JSON.stringify(obj));}\nfunction findOptionId(element){var re,id,name;if(!element){return id;}\nname=$(element).attr('name');if(name.indexOf('[')!==-1){re=/\\[([^\\]]+)?\\]/;}else{re=/_([^\\]]+)?_/;}\nid=re.exec(name)&&re.exec(name)[1];if(id){return id;}}\nreturn{formatPriceLocale:formatPriceLocale,formatPrice:formatPrice,deepClone:objectDeepClone,strPad:stringPad,findOptionId:findOptionId};});","Magento_Catalog/js/storage-manager.min.js":"define(['underscore','uiElement','mageUtils','Magento_Catalog/js/product/storage/storage-service','Magento_Customer/js/section-config','jquery'],function(_,Element,utils,storage,sectionConfig,$){'use strict';$(document).on('submit',function(event){var sections;if(event.target.method.match(/post|put|delete/i)){sections=sectionConfig.getAffectedSections(event.target.action);if(sections&&window.localStorage){_.each(sections,function(section){window.localStorage.removeItem(section);});}}});return Element.extend({defaults:{defaultNamespace:{lifetime:1000},storagesConfiguration:{'recently_viewed_product':{namespace:'recently_viewed_product',className:'IdsStorage',lifetime:'${ $.defaultNamespace.lifetime }',requestConfig:{typeId:'${ $.storagesConfiguration.recently_viewed_product.namespace }'},savePrevious:{namespace:'${ $.storagesConfiguration.recently_viewed_product.namespace }'+'_previous',className:'${ $.storagesConfiguration.recently_viewed_product.className }'},allowToSendRequest:0},'recently_compared_product':{namespace:'recently_compared_product',className:'IdsStorageCompare',provider:'compare-products',lifetime:'${ $.defaultNamespace.lifetime }',requestConfig:{typeId:'${ $.storagesConfiguration.recently_compared_product.namespace }'},savePrevious:{namespace:'${ $.storagesConfiguration.recently_compared_product.namespace }'+'_previous',className:'${ $.storagesConfiguration.recently_compared_product.className }'},allowToSendRequest:0},'product_data_storage':{namespace:'product_data_storage',className:'DataStorage',allowToSendRequest:0,updateRequestConfig:{url:'',method:'GET',dataType:'json'}}},requestConfig:{method:'POST',dataType:'json',ajaxSaveType:'default',ignoreProcessEvents:true},requestSent:0},initialize:function(){this._super().prepareStoragesConfig().initStorages().initStartData().initUpdateStorageDataListener();return this;},initStorages:function(){_.each(this.storagesNamespace,function(name){this[name]=storage.createStorage(this.storagesConfiguration[name]);if(this.storagesConfiguration[name].savePrevious){this[name].previous=storage.createStorage(this.storagesConfiguration[name].savePrevious);}}.bind(this));return this;},initStartData:function(){_.each(this.storagesNamespace,function(name){this.updateDataHandler(name,this[name].get());}.bind(this));return this;},prepareStoragesConfig:function(){this.storagesNamespace=_.keys(this.storagesConfiguration);_.each(this.storagesNamespace,function(name){this.storagesConfiguration[name].requestConfig=_.extend(utils.copy(this.requestConfig),this.storagesConfiguration[name].requestConfig);}.bind(this));return this;},getUtcTime:function(){return new Date().getTime()/ 1000;},initUpdateStorageDataListener:function(){_.each(this.storagesNamespace,function(name){if(this[name].data){this[name].data.subscribe(this.updateDataHandler.bind(this,name));}}.bind(this));},updateDataHandler:function(name,data){var previousData=this[name].previous?this[name].previous.get():false;if(!_.isEmpty(previousData)&&!_.isEmpty(data)&&!utils.compare(data,previousData).equal){this[name].set(data);this[name].previous.set(data);this.sendRequest(name,data);}else if(_.isEmpty(previousData)&&!_.isEmpty(data)){this[name].set(data);this.sendRequest(name,data);}},getLastUpdate:function(name){return window.localStorage.getItem(this[name].namespace+'_last_update');},setLastUpdate:function(name){window.localStorage.setItem(this[name].namespace+'_last_update',this.getUtcTime());},requestHandler:function(name){this.setLastUpdate(name);this.requestSent=1;},sendRequest:function(name,data){var params=utils.copy(this.storagesConfiguration[name].requestConfig),url=params.syncUrl,typeId=params.typeId;if(this.requestSent||!~~this.storagesConfiguration[name].allowToSendRequest){return;}\ndelete params.typeId;delete params.url;this.requestSent=1;return utils.ajaxSubmit({url:url,data:{ids:data,'type_id':typeId}},params).done(this.requestHandler.bind(this,name));}});});","Magento_Catalog/js/price-box.min.js":"define(['jquery','Magento_Catalog/js/price-utils','underscore','mage/template','jquery-ui-modules/widget'],function($,utils,_,mageTemplate){'use strict';var globalOptions={productId:null,priceConfig:null,prices:{},priceTemplate:'<span class=\"price\"><%- data.formatted %></span>'};$.widget('mage.priceBox',{options:globalOptions,qtyInfo:'#qty',_init:function initPriceBox(){var box=this.element;box.trigger('updatePrice');this.cache.displayPrices=utils.deepClone(this.options.prices);},_create:function createPriceBox(){var box=this.element;this.cache={};this._setDefaultsFromPriceConfig();this._setDefaultsFromDataSet();box.on('reloadPrice',this.reloadPrice.bind(this));box.on('updatePrice',this.onUpdatePrice.bind(this));$(this.qtyInfo).on('input',this.updateProductTierPrice.bind(this));box.trigger('price-box-initialized');},onUpdatePrice:function onUpdatePrice(event,prices){return this.updatePrice(prices);},updatePrice:function updatePrice(newPrices){var prices=this.cache.displayPrices,additionalPrice={},pricesCode=[],priceValue,origin,finalPrice;this.cache.additionalPriceObject=this.cache.additionalPriceObject||{};if(newPrices){$.extend(this.cache.additionalPriceObject,newPrices);}\nif(!_.isEmpty(additionalPrice)){pricesCode=_.keys(additionalPrice);}else if(!_.isEmpty(prices)){pricesCode=_.keys(prices);}\n_.each(this.cache.additionalPriceObject,function(additional){if(additional&&!_.isEmpty(additional)){pricesCode=_.keys(additional);}\n_.each(pricesCode,function(priceCode){priceValue=additional[priceCode]||{};priceValue.amount=+priceValue.amount||0;priceValue.adjustments=priceValue.adjustments||{};additionalPrice[priceCode]=additionalPrice[priceCode]||{'amount':0,'adjustments':{}};additionalPrice[priceCode].amount=0+(additionalPrice[priceCode].amount||0)+\npriceValue.amount;_.each(priceValue.adjustments,function(adValue,adCode){additionalPrice[priceCode].adjustments[adCode]=0+\n(additionalPrice[priceCode].adjustments[adCode]||0)+adValue;});});});if(_.isEmpty(additionalPrice)){this.cache.displayPrices=utils.deepClone(this.options.prices);}else{_.each(additionalPrice,function(option,priceCode){origin=this.options.prices[priceCode]||{};finalPrice=prices[priceCode]||{};option.amount=option.amount||0;origin.amount=origin.amount||0;origin.adjustments=origin.adjustments||{};finalPrice.adjustments=finalPrice.adjustments||{};finalPrice.amount=0+origin.amount+option.amount;_.each(option.adjustments,function(pa,paCode){finalPrice.adjustments[paCode]=0+(origin.adjustments[paCode]||0)+pa;});},this);}\nthis.element.trigger('priceUpdated',this.cache.displayPrices);this.element.trigger('reloadPrice');},reloadPrice:function reDrawPrices(){var priceFormat=(this.options.priceConfig&&this.options.priceConfig.priceFormat)||{},priceTemplate=mageTemplate(this.options.priceTemplate);_.each(this.cache.displayPrices,function(price,priceCode){price.final=_.reduce(price.adjustments,function(memo,amount){return memo+amount;},price.amount);price.formatted=utils.formatPriceLocale(price.final,priceFormat);$('[data-price-type=\"'+priceCode+'\"]',this.element).html(priceTemplate({data:price}));},this);},setDefault:function setDefaultPrices(prices){this.cache.displayPrices=utils.deepClone(prices);this.options.prices=utils.deepClone(prices);},_setOptions:function setOptions(options){$.extend(true,this.options,options);if('disabled'in options){this._setOption('disabled',options.disabled);}\nreturn this;},_setDefaultsFromDataSet:function _setDefaultsFromDataSet(){var box=this.element,priceHolders=$('[data-price-type]',box),prices=this.options.prices;this.options.productId=box.data('productId');if(_.isEmpty(prices)){priceHolders.each(function(index,element){var type=$(element).data('priceType'),amount=parseFloat($(element).data('priceAmount'));if(type&&!_.isNaN(amount)){prices[type]={amount:amount};}});}},_setDefaultsFromPriceConfig:function _setDefaultsFromPriceConfig(){var config=this.options.priceConfig;if(config&&config.prices){this.options.prices=config.prices;}},updateProductTierPrice:function updateProductTierPrice(){var originalPrice,prices={'prices':{}};if(this.options.prices.finalPrice){originalPrice=this.options.prices.finalPrice.amount;prices.prices.finalPrice={'amount':this.getPrice('price')-originalPrice};}\nif(this.options.prices.basePrice){originalPrice=this.options.prices.basePrice.amount;prices.prices.basePrice={'amount':this.getPrice('basePrice')-originalPrice};}\nthis.updatePrice(prices);},getPrice:function(priceKey){var productQty=$(this.qtyInfo).val(),result,tierPriceItem,i;for(i=0;i<this.options.priceConfig.tierPrices.length;i++){tierPriceItem=this.options.priceConfig.tierPrices[i];if(productQty>=tierPriceItem.qty&&tierPriceItem[priceKey]){result=tierPriceItem[priceKey];}}\nreturn result;}});return $.mage.priceBox;});","Magento_Catalog/js/validate-product.min.js":"define(['jquery','mage/mage','Magento_Catalog/product/view/validation','catalogAddToCart'],function($){'use strict';$.widget('mage.productValidate',{options:{bindSubmit:false,radioCheckboxClosest:'.nested',addToCartButtonSelector:'.action.tocart'},_create:function(){var bindSubmit=this.options.bindSubmit;this.element.validation({radioCheckboxClosest:this.options.radioCheckboxClosest,submitHandler:function(form){var jqForm=$(form).catalogAddToCart({bindSubmit:bindSubmit});jqForm.catalogAddToCart('submitForm',jqForm);return false;}});$(this.options.addToCartButtonSelector).attr('disabled',false);}});return $.mage.productValidate;});","Magento_Catalog/js/related-products.min.js":"define(['jquery','jquery-ui-modules/widget','mage/translate'],function($){'use strict';$.widget('mage.relatedProducts',{options:{relatedCheckbox:'.related-checkbox',relatedProductsCheckFlag:false,relatedProductsField:'#related-products-field',selectAllMessage:$.mage.__('select all'),unselectAllMessage:$.mage.__('unselect all'),selectAllLink:'[data-role=\"select-all\"]',elementsSelector:'.item.product'},_create:function(){$(this.options.selectAllLink,this.element).on('click',$.proxy(this._selectAllRelated,this));$(this.options.relatedCheckbox,this.element).on('click',$.proxy(this._addRelatedToProduct,this));if(this.element.data('shuffle')){this._shuffle(this.element.find(this.options.elementsSelector));}\nthis._showRelatedProducts(this.element.find(this.options.elementsSelector),this.element.data('limit'),this.element.data('shuffle-weighted'));},_selectAllRelated:function(e){var innerHTML=this.options.relatedProductsCheckFlag?this.options.selectAllMessage:this.options.unselectAllMessage;$(e.target).html(innerHTML);$(this.options.relatedCheckbox+':visible').attr('checked',this.options.relatedProductsCheckFlag=!this.options.relatedProductsCheckFlag);this._addRelatedToProduct();return false;},_addRelatedToProduct:function(){$(this.options.relatedProductsField).val($(this.options.relatedCheckbox+':checked').map(function(){return this.value;}).get().join(','));},_showRelatedProducts:function(elements,limit,weightedRandom){var index,weights=[],random=[],weight=2,shown=0,$element,currentGroup,prevGroup;if(limit===0){limit=elements.length;}\nif(weightedRandom&&limit>0&&limit<elements.length){for(index=0;index<limit;index++){$element=$(elements[index]);if($element.data('shuffle-group')!==''){break;}\n$element.show();shown++;}\nlimit-=shown;for(index=elements.length-1;index>=0;index--){$element=$(elements[index]);currentGroup=$element.data('shuffle-group');if(currentGroup!==''){weights.push([index,Math.log(weight)]);if(typeof prevGroup!=='undefined'&&prevGroup!==currentGroup){weight+=2;}\nprevGroup=currentGroup;}}\nif(weights.length===0){return;}\nfor(index=0;index<weights.length;index++){random.push([weights[index][0],Math.pow(Math.random(),1 / weights[index][1])]);}\nrandom.sort(function(a,b){a=a[1];b=b[1];return a<b?1:(a>b?-1:0);});index=0;while(limit){$(elements[random[index][0]]).show();limit--;index++}\nreturn;}\nfor(index=0;index<limit;index++){$(elements[index]).show();}},_shuffle:function shuffle(elements){var parent,child,lastSibling;if(elements.length){parent=$(elements[0]).parent();}\nwhile(elements.length){child=elements.splice(Math.floor(Math.random()*elements.length),1)[0];lastSibling=parent.find('[data-shuffle-group=\"'+$(child).data('shuffle-group')+'\"]').last();lastSibling.after(child);}}});return $.mage.relatedProducts;});","Magento_Catalog/js/gallery.min.js":"define(['jquery','jquery-ui-modules/widget'],function($){'use strict';$.widget('mage.gallery',{options:{minWidth:300,widthOffset:90,heightOffset:210,closeWindow:'div.buttons-set a[role=\"close-window\"]'},_create:function(){$(this.options.closeWindow).on('click',function(){window.close();});this._resizeWindow();},_resizeWindow:function(){var img=this.element,width=img.width()<this.options.minWidth?this.options.minWidth:img.width();window.resizeTo(width+this.options.widthOffset,img.height()+this.options.heightOffset);}});return $.mage.gallery;});","Magento_Catalog/js/price-option-file.min.js":"define(['jquery','jquery-ui-modules/widget'],function($){'use strict';$.widget('mage.priceOptionFile',{options:{fileName:'',fileNamed:'',fieldNameAction:'',changeFileSelector:'',deleteFileSelector:''},_create:function(){this.fileDeleteFlag=this.fileChangeFlag=false;this.inputField=this.element.find('input[name='+this.options.fileName+']')[0];this.inputFieldAction=this.element.find('input[name='+this.options.fieldNameAction+']')[0];this.fileNameSpan=this.element.parent('dd').find('.'+this.options.fileNamed);$(this.options.changeFileSelector).on('click',$.proxy(function(){this._toggleFileChange();},this));$(this.options.deleteFileSelector).on('click',$.proxy(function(){this._toggleFileDelete();},this));},_toggleFileChange:function(){this.element.toggle();this.fileChangeFlag=!this.fileChangeFlag;if(!this.fileDeleteFlag){$(this.inputFieldAction).attr('value',this.fileChangeFlag?'save_new':'save_old');this.inputField.disabled=!this.fileChangeFlag;}},_toggleFileDelete:function(){this.fileDeleteFlag=$(this.options.deleteFileSelector+':checked').val();$(this.inputFieldAction).attr('value',this.fileDeleteFlag?'':this.fileChangeFlag?'save_new':'save_old');this.inputField.disabled=this.fileDeleteFlag||!this.fileChangeFlag;this.fileNameSpan.css('text-decoration',this.fileDeleteFlag?'line-through':'none');}});return $.mage.priceOptionFile;});","Magento_Catalog/js/catalog-add-to-cart.min.js":"define(['jquery','mage/translate','underscore','Magento_Catalog/js/product/view/product-ids-resolver','Magento_Catalog/js/product/view/product-info-resolver','jquery-ui-modules/widget'],function($,$t,_,idsResolver,productInfoResolver){'use strict';$.widget('mage.catalogAddToCart',{options:{processStart:null,processStop:null,bindSubmit:true,minicartSelector:'[data-block=\"minicart\"]',messagesSelector:'[data-placeholder=\"messages\"]',productStatusSelector:'.stock.available',addToCartButtonSelector:'.action.tocart',addToCartButtonDisabledClass:'disabled',addToCartButtonTextWhileAdding:'',addToCartButtonTextAdded:'',addToCartButtonTextDefault:'',productInfoResolver:productInfoResolver},_create:function(){if(this.options.bindSubmit){this._bindSubmit();}\n$(this.options.addToCartButtonSelector).prop('disabled',false);},_bindSubmit:function(){var self=this;if(this.element.data('catalog-addtocart-initialized')){return;}\nthis.element.data('catalog-addtocart-initialized',1);this.element.on('submit',function(e){e.preventDefault();self.submitForm($(this));});},_redirect:function(url){var urlParts,locationParts,forceReload;urlParts=url.split('#');locationParts=window.location.href.split('#');forceReload=urlParts[0]===locationParts[0];window.location.assign(url);if(forceReload){window.location.reload();}},isLoaderEnabled:function(){return this.options.processStart&&this.options.processStop;},submitForm:function(form){this.ajaxSubmit(form);},ajaxSubmit:function(form){var self=this,productIds=idsResolver(form),productInfo=self.options.productInfoResolver(form),formData;$(self.options.minicartSelector).trigger('contentLoading');self.disableAddToCartButton(form);formData=new FormData(form[0]);$.ajax({url:form.prop('action'),data:formData,type:'post',dataType:'json',cache:false,contentType:false,processData:false,beforeSend:function(){if(self.isLoaderEnabled()){$('body').trigger(self.options.processStart);}},success:function(res){var eventData,parameters;$(document).trigger('ajax:addToCart',{'sku':form.data().productSku,'productIds':productIds,'productInfo':productInfo,'form':form,'response':res});if(self.isLoaderEnabled()){$('body').trigger(self.options.processStop);}\nif(res.backUrl){eventData={'form':form,'redirectParameters':[]};$('body').trigger('catalogCategoryAddToCartRedirect',eventData);if(eventData.redirectParameters.length>0&&window.location.href.split(/[?#]/)[0]===res.backUrl){parameters=res.backUrl.split('#');parameters.push(eventData.redirectParameters.join('&'));res.backUrl=parameters.join('#');}\nself._redirect(res.backUrl);return;}\nif(res.messages){$(self.options.messagesSelector).html(res.messages);}\nif(res.minicart){$(self.options.minicartSelector).replaceWith(res.minicart);$(self.options.minicartSelector).trigger('contentUpdated');}\nif(res.product&&res.product.statusText){$(self.options.productStatusSelector).removeClass('available').addClass('unavailable').find('span').html(res.product.statusText);}\nself.enableAddToCartButton(form);},error:function(res){$(document).trigger('ajax:addToCart:error',{'sku':form.data().productSku,'productIds':productIds,'productInfo':productInfo,'form':form,'response':res});},complete:function(res){if(res.state()==='rejected'){location.reload();}}});},disableAddToCartButton:function(form){var addToCartButtonTextWhileAdding=this.options.addToCartButtonTextWhileAdding||$t('Adding...'),addToCartButton=$(form).find(this.options.addToCartButtonSelector);addToCartButton.addClass(this.options.addToCartButtonDisabledClass);addToCartButton.find('span').text(addToCartButtonTextWhileAdding);addToCartButton.prop('title',addToCartButtonTextWhileAdding);},enableAddToCartButton:function(form){var addToCartButtonTextAdded=this.options.addToCartButtonTextAdded||$t('Added'),self=this,addToCartButton=$(form).find(this.options.addToCartButtonSelector);addToCartButton.find('span').text(addToCartButtonTextAdded);addToCartButton.prop('title',addToCartButtonTextAdded);setTimeout(function(){var addToCartButtonTextDefault=self.options.addToCartButtonTextDefault||$t('Add to Cart');addToCartButton.removeClass(self.options.addToCartButtonDisabledClass);addToCartButton.find('span').text(addToCartButtonTextDefault);addToCartButton.prop('title',addToCartButtonTextDefault);},1000);}});return $.mage.catalogAddToCart;});","Magento_Catalog/js/product/addtocart-button.min.js":"define(['Magento_Ui/js/grid/columns/column','Magento_Catalog/js/product/uenc-processor','Magento_Catalog/js/product/list/column-status-validator'],function(Element,uencProcessor,columnStatusValidator){'use strict';return Element.extend({defaults:{label:''},getDataMageInit:function(row){return'{\"redirectUrl\": { \"url\" : \"'+uencProcessor(row['add_to_cart_button'].url)+'\"}}';},getDataPost:function(row){return uencProcessor(row['add_to_cart_button']['post_data']);},hasRequiredOptions:function(row){return row['add_to_cart_button']['required_options'];},isSalable:function(row){return row['is_salable'];},isAvailable:function(row){return row['is_available'];},isAllowed:function(){return columnStatusValidator.isValid(this.source(),'add_to_cart','show_buttons');},getLabel:function(){return this.label;}});});","Magento_Catalog/js/product/provider-compared.min.js":"define(['underscore','./provider','Magento_Catalog/js/product/storage/storage-service','Magento_Customer/js/customer-data'],function(_,Provider,storage,customerData){'use strict';return Provider.extend({idsHandler:function(data){this.productStorage.setIds(this.data.currency,this.data.store,this.dataFilter(data));},dataFilter:function(data){var providerData=this.idsStorage.prepareData(customerData.get(this.identifiersConfig.provider)().items),result={},productCurrentScope,scopeId;if(typeof this.data.productCurrentScope!=='undefined'&&window.checkout&&window.checkout.baseUrl){productCurrentScope=this.data.productCurrentScope;scopeId=productCurrentScope==='store'?window.checkout.storeId:productCurrentScope==='group'?window.checkout.storeGroupId:window.checkout.websiteId;_.each(data,function(value,key){if(!providerData[productCurrentScope+'-'+scopeId+'-'+key]){result[key]=value;}});}else{_.each(data,function(value,key){if(!providerData[key]){result[key]=value;}});}\nreturn result;},filterData:function(data){var result={},i=0,ids=_.keys(this.dataFilter(this.ids())),length=ids.length;for(i;i<length;i++){if(ids[i]&&data[ids[i]]){result[ids[i]]=data[ids[i]];}}\nreturn result;}});});","Magento_Catalog/js/product/query-builder.min.js":"define(['underscore'],function(_){'use strict';return{buildQuery:function(data){var filters=[];_.each(data,function(value,key){filters.push({field:key,value:value,'condition_type':'in'});});return{searchCriteria:{filterGroups:[{filters:filters}]}};}};});","Magento_Catalog/js/product/uenc-processor.min.js":"define([],function(){'use strict';function _isJSON(data){try{JSON.parse(data);}catch(e){return false;}\nreturn true;}\nfunction _stringProcessor(data,placeholder,uenc){if(data&&~data.indexOf(placeholder)){return data.replace(placeholder,uenc);}\nreturn data;}\nfunction _objectProcessor(data,placeholder,uenc){data=JSON.parse(data);if(data.hasOwnProperty('action')){data.action=_stringProcessor(data.action,placeholder,uenc);}\nif(data.hasOwnProperty('data')&&data.data.hasOwnProperty('uenc')){data.data.uenc=uenc;}\nreturn JSON.stringify(data);}\nreturn function(data,placeholder){var uenc=btoa(window.location.href).replace('+/=','-_,');placeholder=placeholder||encodeURI('%uenc%');return _isJSON(data)?_objectProcessor(data,placeholder,uenc):_stringProcessor(data,placeholder,uenc);};});","Magento_Catalog/js/product/addtocompare-button.min.js":"define(['Magento_Ui/js/grid/columns/column','Magento_Catalog/js/product/uenc-processor','Magento_Catalog/js/product/list/column-status-validator'],function(Column,uencProcessor,columnStatusValidator){'use strict';return Column.extend({defaults:{label:''},getDataPost:function(row){return uencProcessor(row['add_to_compare_button'].url||row['add_to_compare_button']['post_data']);},isAllowed:function(){return columnStatusValidator.isValid(this.source(),'add_to_compare','show_buttons');},getLabel:function(){return this.label;}});});","Magento_Catalog/js/product/learn-more.min.js":"define(['Magento_Ui/js/grid/columns/column','Magento_Catalog/js/product/list/column-status-validator'],function(Column,columnStatusValidator){'use strict';return Column.extend({isAllowed:function(){return columnStatusValidator.isValid(this.source(),'learn_more','show_attributes');}});});","Magento_Catalog/js/product/provider.min.js":"define(['underscore','jquery','mageUtils','uiElement','Magento_Catalog/js/product/storage/storage-service','Magento_Customer/js/customer-data','Magento_Catalog/js/product/view/product-ids-resolver'],function(_,$,utils,Element,storage,customerData,productResolver){'use strict';return Element.extend({defaults:{identifiersConfig:{namespace:''},productStorageConfig:{namespace:'product_data_storage',customerDataProvider:'product_data_storage',updateRequestConfig:{url:'',method:'GET',dataType:'json'},className:'DataStorage'},ids:{},listens:{ids:'idsHandler'}},initialize:function(){this._super().initIdsStorage();return this;},initObservable:function(){this._super();this.observe('ids');return this;},initIdsStorage:function(){storage.onStorageInit(this.identifiersConfig.namespace,this.idsStorageHandler.bind(this));return this;},idsStorageHandler:function(idsStorage){this.idsStorage=idsStorage;this.productStorage=storage.createStorage(this.productStorageConfig);this.productStorage.data.subscribe(this.dataCollectionHandler.bind(this));if(~~this.idsStorage.allowToSendRequest){customerData.reload([idsStorage.namespace]).done(this._resolveDataByIds.bind(this));}else{this._resolveDataByIds();}},_resolveDataByIds:function(){if(!window.checkout||!window.checkout.baseUrl){return;}\nthis.initIdsListener();this.idsMerger(this.idsStorage.get(),this.prepareDataFromCustomerData(customerData.get(this.identifiersConfig.namespace)()));if(!_.isEmpty(this.productStorage.data())){this.dataCollectionHandler(this.productStorage.data());}else{this.productStorage.setIds(this.data.currency,this.data.store,this.ids());}},initIdsListener:function(){customerData.get(this.identifiersConfig.namespace).subscribe(function(data){this.idsMerger(this.prepareDataFromCustomerData(data));}.bind(this));this.idsStorage.data.subscribe(this.idsMerger.bind(this));},prepareDataFromCustomerData:function(data){data=data.items?data.items:data;return data;},filterIds:function(ids){var _ids={},currentTime=new Date().getTime()/ 1000,currentProductIds=productResolver($('#product_addtocart_form')),productCurrentScope=this.data.productCurrentScope,scopeId=productCurrentScope==='store'?window.checkout.storeId:productCurrentScope==='group'?window.checkout.storeGroupId:window.checkout.websiteId;_.each(ids,function(id,key){if(currentTime-ids[key]['added_at']<~~this.idsStorage.lifetime&&!_.contains(currentProductIds,ids[key]['product_id'])&&(!id.hasOwnProperty('scope_id')||ids[key]['scope_id']===scopeId)){_ids[id['product_id']]=id;}},this);return _ids;},idsMerger:function(data,optionalData){if(data&&optionalData){data=_.extend(data,optionalData);}\nif(!_.isEmpty(data)){this.ids(this.filterIds(_.extend(this.ids(),data)));}},idsHandler:function(data){this.productStorage.setIds(this.data.currency,this.data.store,data);},processData:function(data){var curData=utils.copy(this.data),ids=this.ids();delete data['data_id'];data=_.values(data);_.each(data,function(record,index){record._rowIndex=index;record['added_at']=ids[record.id]['added_at'];},this);curData.items=data;this.set('data',curData);},dataCollectionHandler:function(data){data=this.filterData(data);this.processData(data);},filterData:function(data){var result={},i=0,ids=_.keys(this.ids()),length=ids.length;for(i;i<length;i++){if(ids[i]&&data[ids[i]]){result[ids[i]]=data[ids[i]];}}\nreturn result;}});});","Magento_Catalog/js/product/name.min.js":"define(['Magento_Ui/js/grid/columns/column','Magento_Catalog/js/product/list/column-status-validator','escaper'],function(Column,columnStatusValidator,escaper){'use strict';return Column.extend({defaults:{allowedTags:['div','span','b','strong','i','em','u','a']},isAllowed:function(){return columnStatusValidator.isValid(this.source(),'name','show_attributes');},getNameUnsanitizedHtml:function(label){return escaper.escapeHtml(label,this.allowedTags);}});});","Magento_Catalog/js/product/remaining-characters.min.js":"define(['jquery','mage/translate','jquery-ui-modules/widget'],function($,$t){'use strict';$.widget('mage.remainingCharacters',{options:{remainingText:$t('remaining'),tooManyText:$t('too many'),errorClass:'mage-error',noDisplayClass:'no-display'},_create:function(){this.note=$(this.options.noteSelector);this.counter=$(this.options.counterSelector);this.updateCharacterCount();this.element.on('change keyup paste',this.updateCharacterCount.bind(this));},updateCharacterCount:function(){var length=this.element.val().length,diff=this.options.maxLength-length;this.counter.text(this._formatMessage(diff));this.counter.toggleClass(this.options.noDisplayClass,length===0);this.note.toggleClass(this.options.errorClass,diff<0);},_formatMessage:function(diff){var count=Math.abs(diff),qualifier=diff<0?this.options.tooManyText:this.options.remainingText;return'('+count+' '+qualifier+')';}});return $.mage.remainingCharacters;});","Magento_Catalog/js/product/breadcrumbs.min.js":"define(['jquery','Magento_Theme/js/model/breadcrumb-list'],function($,breadcrumbList){'use strict';return function(widget){$.widget('mage.breadcrumbs',widget,{options:{categoryUrlSuffix:'',useCategoryPathInUrl:false,product:'',categoryItemSelector:'.category-item',menuContainer:'[data-action=\"navigation\"] > ul'},_render:function(){this._appendCatalogCrumbs();this._super();},_appendCatalogCrumbs:function(){var categoryCrumbs=this._resolveCategoryCrumbs();categoryCrumbs.forEach(function(crumbInfo){breadcrumbList.push(crumbInfo);});if(this.options.product){breadcrumbList.push(this._getProductCrumb());}},_resolveCategoryCrumbs:function(){var menuItem=this._resolveCategoryMenuItem(),categoryCrumbs=[];if(menuItem!==null&&menuItem.length){categoryCrumbs.unshift(this._getCategoryCrumb(menuItem));while((menuItem=this._getParentMenuItem(menuItem))!==null){categoryCrumbs.unshift(this._getCategoryCrumb(menuItem));}}\nreturn categoryCrumbs;},_getCategoryCrumb:function(menuItem){return{'name':'category','label':menuItem.text(),'link':menuItem.attr('href'),'title':''};},_getProductCrumb:function(){return{'name':'product','label':this.options.product,'link':'','title':''};},_getParentMenuItem:function(menuItem){var classes,classNav,parentClass,parentMenuItem=null;if(!menuItem){return null;}\nclasses=menuItem.parent().attr('class');classNav=classes.match(/(nav\\-)[0-9]+(\\-[0-9]+)+/gi);if(classNav){classNav=classNav[0];parentClass=classNav.substr(0,classNav.lastIndexOf('-'));if(parentClass.lastIndexOf('-')!==-1){parentMenuItem=$(this.options.menuContainer).find('.'+parentClass+' > a');parentMenuItem=parentMenuItem.length?parentMenuItem:null;}}\nreturn parentMenuItem;},_resolveCategoryMenuItem:function(){var categoryUrl=this._resolveCategoryUrl(),menu=$(this.options.menuContainer),categoryMenuItem=null;if(categoryUrl&&menu.length){categoryMenuItem=menu.find(this.options.categoryItemSelector+' > a[href=\"'+categoryUrl+'\"]');}\nreturn categoryMenuItem;},_resolveCategoryUrl:function(){var categoryUrl;if(this.options.useCategoryPathInUrl){categoryUrl=window.location.href.split('?')[0];categoryUrl=categoryUrl.substring(0,categoryUrl.lastIndexOf('/'))+\nthis.options.categoryUrlSuffix;}else{categoryUrl=document.referrer;if(categoryUrl.indexOf('?')>0){categoryUrl=categoryUrl.substr(0,categoryUrl.indexOf('?'));}}\nreturn categoryUrl;}});return $.mage.breadcrumbs;};});","Magento_Catalog/js/product/list/toolbar.min.js":"define(['jquery','jquery-ui-modules/widget'],function($){'use strict';$.widget('mage.productListToolbarForm',{options:{modeControl:'[data-role=\"mode-switcher\"]',directionControl:'[data-role=\"direction-switcher\"]',orderControl:'[data-role=\"sorter\"]',limitControl:'[data-role=\"limiter\"]',mode:'product_list_mode',direction:'product_list_dir',order:'product_list_order',limit:'product_list_limit',page:'p',modeDefault:'grid',directionDefault:'asc',orderDefault:'position',limitDefault:'9',url:'',formKey:'',post:false},_create:function(){this._bind($(this.options.modeControl,this.element),this.options.mode,this.options.modeDefault);this._bind($(this.options.directionControl,this.element),this.options.direction,this.options.directionDefault);this._bind($(this.options.orderControl,this.element),this.options.order,this.options.orderDefault);this._bind($(this.options.limitControl,this.element),this.options.limit,this.options.limitDefault);},_bind:function(element,paramName,defaultValue){if(element.is('select')){element.on('change',{paramName:paramName,'default':defaultValue},$.proxy(this._processSelect,this));}else{element.on('click',{paramName:paramName,'default':defaultValue},$.proxy(this._processLink,this));}},_processLink:function(event){event.preventDefault();this.changeUrl(event.data.paramName,$(event.currentTarget).data('value'),event.data.default);},_processSelect:function(event){this.changeUrl(event.data.paramName,event.currentTarget.options[event.currentTarget.selectedIndex].value,event.data.default);},getUrlParams:function(){var decode=window.decodeURIComponent,urlPaths=this.options.url.split('?'),urlParams=urlPaths[1]?urlPaths[1].split('&'):[],params={},parameters,i;for(i=0;i<urlParams.length;i++){parameters=urlParams[i].split('=');params[decode(parameters[0])]=parameters[1]!==undefined?decode(parameters[1].replace(/\\+/g,'%20')):'';}\nreturn params;},getCurrentLimit:function(){return this.getUrlParams()[this.options.limit]||this.options.limitDefault;},getCurrentPage:function(){return this.getUrlParams()[this.options.page]||1;},changeUrl:function(paramName,paramValue,defaultValue){var urlPaths=this.options.url.split('?'),baseUrl=urlPaths[0],paramData=this.getUrlParams(),currentPage=this.getCurrentPage(),form,params,key,input,formKey,newPage;if(currentPage>1&&paramName===this.options.mode){delete paramData[this.options.page];}\nif(currentPage>1&&paramName===this.options.limit){newPage=Math.floor(this.getCurrentLimit()*(currentPage-1)/ paramValue)+1;if(newPage>1){paramData[this.options.page]=newPage;}else{delete paramData[this.options.page];}}\nparamData[paramName]=paramValue;if(this.options.post){form=document.createElement('form');params=[this.options.mode,this.options.direction,this.options.order,this.options.limit];for(key in paramData){if(params.indexOf(key)!==-1){input=document.createElement('input');input.name=key;input.value=paramData[key];form.appendChild(input);delete paramData[key];}}\nformKey=document.createElement('input');formKey.name='form_key';formKey.value=this.options.formKey;form.appendChild(formKey);paramData=$.param(paramData);baseUrl+=paramData.length?'?'+paramData:'';form.action=baseUrl;form.method='POST';document.body.appendChild(form);form.submit();}else{if(paramValue==defaultValue){delete paramData[paramName];}\nparamData=$.param(paramData);location.href=baseUrl+(paramData.length?'?'+paramData:'');}}});return $.mage.productListToolbarForm;});","Magento_Catalog/js/product/list/listing.min.js":"define(['ko','underscore','Magento_Ui/js/grid/listing'],function(ko,_,Listing){'use strict';return Listing.extend({defaults:{additionalClasses:'',filteredRows:{},limit:5,listens:{elems:'filterRowsFromCache','${ $.provider }:data.items':'filterRowsFromServer'}},initialize:function(){this._super();this.filteredRows=ko.observable();this.initProductsLimit();this.hideLoader();},initProductsLimit:function(){if(this.source['page_size']){this.limit=this.source['page_size'];}\nreturn this;},initObservable:function(){this._super().track({rows:[]});return this;},filterRowsFromCache:function(){this._filterRows(this.rows);},filterRowsFromServer:function(rows){this._filterRows(rows);},_filterRows:function(rows){this.filteredRows(_.sortBy(rows,'added_at').reverse().slice(0,this.limit));},getUrl:function(row){return row.url;},getComponentByCode:function(code){var elems=this.elems()?this.elems():ko.getObservable(this,'elems'),component;component=_.filter(elems,function(elem){return elem.index===code;},this).pop();return component;}});});","Magento_Catalog/js/product/list/column-status-validator.min.js":"define(['underscore'],function(_){'use strict';return _.extend({isValid:function(source,attributeCode,type){var attributes;if(!source[type]){return false;}\nattributes=source[type].split(',');return _.contains(attributes,attributeCode);}});});","Magento_Catalog/js/product/list/columns/pricetype-box.min.js":"define(['ko','underscore','uiCollection'],function(ko,_,Collection){'use strict';return Collection.extend({getPriceByCode:function(code){var elems=this.elems()?this.elems():ko.getObservable(this,'elems'),price;price=_.filter(elems,function(elem){return elem.index.split('.').shift()===code;},this).pop();price.source=this.source();price.priceType=code;return price;},getBody:function(){return this.bodyTmpl;},hasPriceRange:function(row){return row['price_info']['max_regular_price']!==row['price_info']['min_regular_price'];}});});","Magento_Catalog/js/product/list/columns/image.min.js":"define(['underscore','Magento_Ui/js/grid/columns/column','Magento_Catalog/js/product/list/column-status-validator'],function(_,Element,columnStatusValidator){'use strict';return Element.extend({defaults:{bodyTmpl:'Magento_Catalog/product/list/columns/image',imageCode:'default',image:{}},getImage:function(images){return _.filter(images,function(image){return this.imageCode===image.code;},this).pop();},getImageUrl:function(row){return this.getImage(row.images).url;},getWidth:function(row){return this.getImage(row.images).width;},getHeight:function(row){return this.getImage(row.images).height;},getResizedImageWidth:function(row){return this.getImage(row.images)['resized_width'];},getResizedImageHeight:function(row){return this.getImage(row.images)['resized_height'];},getLabel:function(row){if(!this.imageExists(row)){return this._super();}\nreturn this.getImage(row.images).label;},imageExists:function(row){return this.getImage(row.images)!=='undefined';},isAllowed:function(){return columnStatusValidator.isValid(this.source(),'image','show_attributes');}});});","Magento_Catalog/js/product/list/columns/final-price.min.js":"define(['underscore','uiRegistry','mageUtils','uiCollection'],function(_,registry,utils,Collection){'use strict';return Collection.extend({defaults:{label:false,headerTmpl:'ui/grid/columns/text',showMinimalPrice:false,showMaximumPrice:false,useLinkForAsLowAs:false,bodyTmpl:'Magento_Catalog/product/final_price',priceWrapperCssClasses:'',priceWrapperAttr:{}},getPrice:function(row){return row['price_info']['formatted_prices']['final_price'];},getPriceUnsanitizedHtml:function(row){return this.getPrice(row);},getRegularPrice:function(row){return row['price_info']['formatted_prices']['regular_price'];},getRegularPriceUnsanitizedHtml:function(row){return this.getRegularPrice(row);},hasPriceRange:function(row){return row['price_info']['max_regular_price']!==row['price_info']['min_regular_price'];},hasSpecialPrice:function(row){return row['price_info']['regular_price']>row['price_info']['final_price'];},isMinimalPrice:function(row){return row['price_info']['minimal_price']<row['price_info']['final_price'];},getMinimalPrice:function(row){return row['price_info']['formatted_prices']['minimal_price'];},getMinimalPriceUnsanitizedHtml:function(row){return this.getMinimalPrice(row);},isSalable:function(row){return row['is_salable'];},getMaxPrice:function(row){return row['price_info']['formatted_prices']['max_price'];},getMaxPriceUnsanitizedHtml:function(row){return this.getMaxPrice(row);},getMaxRegularPrice:function(row){return row['price_info']['formatted_prices']['max_regular_price'];},getMaxRegularPriceUnsanitizedHtml:function(row){return this.getMaxRegularPrice(row);},getMinRegularPrice:function(row){return row['price_info']['formatted_prices']['min_regular_price'];},getMinRegularPriceUnsanitizedHtml:function(row){return this.getMinRegularPrice(row);},getAdjustmentCssClasses:function(){return _.pluck(this.getAdjustments(),'index').join(' ');},getMinimalPriceAmount:function(row){return row['price_info']['minimal_price'];},getMinimalPriceAmountUnsanitizedHtml:function(row){return this.getMinimalPriceAmount(row);},getMinimalRegularPriceAmount:function(row){return row['price_info']['min_regular_price'];},getMaximumPriceAmount:function(row){return row['price_info']['max_price'];},getMaximumRegularPriceAmount:function(row){return row['price_info']['max_regular_price'];},showMinRegularPrice:function(row){return this.getMinimalPriceAmount(row)<this.getMinimalRegularPriceAmount(row);},showMaxRegularPrice:function(row){return this.getMaximumPriceAmount(row)<this.getMaximumRegularPriceAmount(row);},getBody:function(){return this.bodyTmpl;},getAdjustments:function(){var adjustments=this.elems();_.each(adjustments,function(adjustment){adjustment.setPriceType(this.priceType);adjustment.source=this.source;},this);return adjustments;}});});","Magento_Catalog/js/product/list/columns/price-box.min.js":"define(['ko','underscore','uiRegistry','mageUtils','uiCollection','Magento_Catalog/js/product/list/column-status-validator','uiLayout'],function(ko,_,registry,utils,Collection,columnStatusValidator,layout){'use strict';return Collection.extend({defaults:{label:'',hasSpecialPrice:false,showMinimalPrice:false,useLinkForAsLowAs:false,visible:true,headerTmpl:'ui/grid/columns/text',bodyTmpl:'Magento_Catalog/product/price/price_box',disableAction:false,controlVisibility:true,sortable:false,sorting:false,draggable:true,fieldClass:{},renders:{default:{}},ignoreTmpls:{fieldAction:true},statefull:{visible:true,sorting:true},imports:{exportSorting:'sorting'},listens:{elems:''},modules:{source:'${ $.provider }'},pricesInit:{}},sort:function(){return this;},isAllowed:function(){return columnStatusValidator.isValid(this.source(),'price','show_attributes');},getPrices:function(row){var elems=this.elems()?this.elems():ko.getObservable(this,'elems'),result;this.initPrices(row);result=_.filter(elems,function(elem){return elem.productType===row.type;});return result;},_deepObjectExtend:function(target,source){var _target=utils.copy(target);_.each(source,function(value,key){if(_.keys(value).length&&typeof _target[key]!=='undefined'){_target[key]=this._deepObjectExtend(_target[key],value);}else{_target[key]=value;}},this);return _target;},_initPriceWithCustomMetaData:function(productType){var price=this._deepObjectExtend(this.renders.prices['default'],this.renders.prices[productType]);price.name=productType+'.default';price.parent=this.name;price.source=this.source;price.productType=productType;layout([price]);},_initPricesForProductType:function(_priceData,productType){var prices=[];this._setPriceNamesToPrices(_priceData,productType);_.sortBy(_priceData,this._comparePrices);_.each(_priceData,function(priceData){if(!priceData.component){return;}\npriceData.parent=this.name;priceData.provider=this.provider;priceData.productType=productType;priceData=utils.template(priceData,this);prices.push(priceData);},this);layout(prices);},initPrices:function(row){var _priceData=[],productType=row.type,defaultPrice=this.renders.prices['default'];if(this.pricesInit[productType]){return true;}\nthis.pricesInit[productType]=true;if(this.renders.prices[productType]&&this._needToApplyCustomTemplate(this.renders.prices[productType])){return this._initPriceWithCustomMetaData(productType);}\nif(this.renders.prices[productType]&&this.renders.prices[productType].children){_priceData=this._deepObjectExtend(defaultPrice.children,this.renders.prices[productType].children);}else{_priceData=defaultPrice.children;}\nreturn this._initPricesForProductType(_priceData,productType);},_setPriceNamesToPrices:function(prices,productType){_.each(prices,function(price,name){price.priceType=name;price.name=name+'.'+productType;});return prices;},_comparePrices:function(firstPrice,secondPrice){if(firstPrice.sortOrder<secondPrice.sortOrder){return-1;}\nif(firstPrice.sortOrder>secondPrice.sortOrder){return 1;}\nreturn 0;},_needToApplyCustomTemplate:function(productData){return productData.bodyTmpl||productData.component;},getBody:function(){return this.bodyTmpl;},getLabel:function(){return this.label;}});});","Magento_Catalog/js/product/view/product-info-resolver.min.js":"define(['underscore','Magento_Catalog/js/product/view/product-info'],function(_,productInfo){'use strict';return function($form){var product=_.findWhere($form.serializeArray(),{name:'product'});if(!_.isUndefined(product)){productInfo().push({'id':product.value});}\nreturn _.uniq(productInfo(),function(item){return item.id;});};});","Magento_Catalog/js/product/view/product-ids-resolver.min.js":"define(['underscore','Magento_Catalog/js/product/view/product-ids'],function(_,productIds){'use strict';return function($form){var idSet=productIds(),product=_.findWhere($form.serializeArray(),{name:'product'});if(!_.isUndefined(product)){idSet.push(product.value);}\nreturn _.uniq(idSet);};});","Magento_Catalog/js/product/view/provider.min.js":"define(['underscore','uiElement','Magento_Catalog/js/product/storage/storage-service'],function(_,Element,storage){'use strict';return Element.extend({defaults:{identifiersConfig:{namespace:'recently_viewed_product'},productStorageConfig:{namespace:'product_data_storage',updateRequestConfig:{method:'GET',dataType:'json'},className:'DataStorage'}},initialize:function(){this._super();if(window.checkout&&window.checkout.baseUrl){this.initIdsStorage();}\nthis.initDataStorage();return this;},initIdsStorage:function(){storage.onStorageInit(this.identifiersConfig.namespace,this.idsStorageHandler.bind(this));return this;},initDataStorage:function(){storage.onStorageInit(this.productStorageConfig.namespace,this.dataStorageHandler.bind(this));return this;},dataStorageHandler:function(dataStorage){this.productStorage=dataStorage;this.productStorage.add(this.data.items);},idsStorageHandler:function(idsStorage){this.idsStorage=idsStorage;this.idsStorage.add(this.getIdentifiers());},getIdentifiers:function(){var result={},productCurrentScope=this.data.productCurrentScope,scopeId=productCurrentScope==='store'?window.checkout.storeId:productCurrentScope==='group'?window.checkout.storeGroupId:window.checkout.websiteId;_.each(this.data.items,function(item,key){result[productCurrentScope+'-'+scopeId+'-'+key]={'added_at':new Date().getTime()/ 1000,'product_id':key,'scope_id':scopeId};},this);return result;}});});","Magento_Catalog/js/product/view/product-info.min.js":"define(['ko'],function(ko){'use strict';return ko.observableArray([]);});","Magento_Catalog/js/product/view/product-ids.min.js":"define(['ko'],function(ko){'use strict';return ko.observableArray([]);});","Magento_Catalog/js/product/storage/ids-storage-compare.min.js":"define(['underscore','ko','mageUtils','Magento_Customer/js/customer-data','Magento_Catalog/js/product/storage/ids-storage'],function(_,ko,utils,customerData,idsStorage){'use strict';return _.extend(utils.copy(idsStorage),{name:'IdsStorageCompare',initialize:function(){if(!this.data){this.data=ko.observable({});}\nif(this.provider&&window.checkout&&window.checkout.baseUrl){this.providerDataHandler(customerData.get(this.provider)());this.initProviderListener();}\nthis.initLocalStorage().cachesDataFromLocalStorage().initDataListener();return this;},initProviderListener:function(){customerData.get(this.provider).subscribe(this.providerDataHandler.bind(this));},providerDataHandler:function(data){data=data.items||data;data=this.prepareData(data);this.add(data);},prepareData:function(data){var result={},scopeId;_.each(data,function(item){if(typeof item.productScope!=='undefined'){scopeId=item.productScope==='store'?window.checkout.storeId:item.productScope==='group'?window.checkout.storeGroupId:window.checkout.websiteId;result[item.productScope+'-'+scopeId+'-'+item.id]={'added_at':new Date().getTime()/ 1000,'product_id':item.id,'scope_id':scopeId};}else{result[item.id]={'added_at':new Date().getTime()/ 1000,'product_id':item.id};}});return result;}});});","Magento_Catalog/js/product/storage/ids-storage.min.js":"define(['jquery','underscore','ko','mageUtils','jquery/jquery-storageapi'],function($,_,ko,utils){'use strict';function setLocalStorageItem(namespace,data){try{window.localStorage.setItem(namespace,JSON.stringify(data));}catch(e){console.warn('localStorage is unavailable - skipping local caching of product data');console.error(e);}}\nreturn{name:'IdsStorage',initialize:function(){if(!this.data){this.data=ko.observable({});}\nthis.initCustomerDataReloadListener().initLocalStorage().cachesDataFromLocalStorage().initDataListener();return this;},getDataFromLocalStorage:function(){return this.localStorage.get();},cachesDataFromLocalStorage:function(){this.data(this.getDataFromLocalStorage());return this;},initLocalStorage:function(){this.localStorage=$.initNamespaceStorage(this.namespace).localStorage;return this;},initDataListener:function(){this.data.subscribe(this.internalDataHandler.bind(this));},initCustomerDataReloadListener:function(){$(document).on('customer-data-reload',function(event,sections){if((_.isEmpty(sections)||_.contains(sections,this.namespace))&&~~this.allowToSendRequest){this.localStorage.removeAll();this.data();}}.bind(this));return this;},internalDataHandler:function(data){setLocalStorageItem(this.namespace,data);},externalDataHandler:function(data){data=data.items?data.items:data;this.set(_.extend(utils.copy(this.data()),data));}};});","Magento_Catalog/js/product/storage/data-storage.min.js":"define(['jquery','underscore','ko','mageUtils','Magento_Catalog/js/product/query-builder','Magento_Customer/js/customer-data','jquery/jquery-storageapi'],function($,_,ko,utils,queryBuilder,customerData){'use strict';function getParsedDataFromServer(data){var result={};_.each(data.items,function(item){if(item.id){result[item.id]=item;}});return{items:result};}\nfunction setLocalStorageItem(namespace,data){try{window.localStorage.setItem(namespace,JSON.stringify(data));}catch(e){console.warn('localStorage is unavailable - skipping local caching of product data');console.error(e);}}\nreturn{name:'DataStorage',request:{},customerDataProvider:'product_data_storage',initialize:function(){if(!this.data){this.data=ko.observable({});}\nthis.initLocalStorage().initCustomerDataReloadListener().cachesDataFromLocalStorage().initDataListener().initProvideStorage().initProviderListener();return this;},initCustomerDataReloadListener:function(){$(document).on('customer-data-invalidate',this._flushProductStorage.bind(this));return this;},_flushProductStorage:function(event,sections){if(_.isEmpty(sections)||_.contains(sections,'product_data_storage')){this.localStorage.removeAll();}},initDataListener:function(){this.data.subscribe(this.dataHandler.bind(this));return this;},initProvideStorage:function(){this.providerHandler(customerData.get(this.customerDataProvider)());return this;},dataHandler:function(data){if(_.isEmpty(data)){this.localStorage.removeAll();}else{setLocalStorageItem(this.namespace,data);}},providerHandler:function(data){var currentData=utils.copy(this.data()),ids=_.keys(data.items);if(data.items&&ids.length){data=data.items;this.data(_.extend(data,currentData));}},setIds:function(currency,store,ids){if(!this.hasInCache(currency,store,ids)){this.loadDataFromServer(currency,store,ids);}else{this.data.valueHasMutated();}},getDataByIdentifiers:function(currency,store,productIdentifiers){var data={},dataCollection=this.data(),id;for(id in productIdentifiers){if(productIdentifiers.hasOwnProperty(id)){data[id]=dataCollection[id];}}\nreturn data;},hasInCache:function(currency,store,ids){var data=this.data(),id;for(id in ids){if(!data.hasOwnProperty(id)||data[id]['currency_code']!==currency||~~data[id]['store_id']!==~~store){return false;}}\nreturn true;},loadDataFromServer:function(currency,store,ids){var idsArray=_.keys(ids),prepareAjaxParams={'entity_id':idsArray.join(',')};if(this.request.sent&&this.hasIdsInSentRequest(ids)){return;}\nthis.request={sent:true,data:ids};this.updateRequestConfig.data=queryBuilder.buildQuery(prepareAjaxParams);this.updateRequestConfig.data['store_id']=store;this.updateRequestConfig.data['currency_code']=currency;$.ajax(this.updateRequestConfig).done(function(data){this.request={};this.providerHandler(getParsedDataFromServer(data));}.bind(this));},addDataFromPageCache:function(data){this.providerHandler(getParsedDataFromServer(data));},hasIdsInSentRequest:function(ids){var sentDataIds,currentDataIds;if(this.request.data){sentDataIds=_.keys(this.request.data);currentDataIds=_.keys(ids);_.each(currentDataIds,function(id){if(_.lastIndexOf(sentDataIds,id)===-1){return false;}});return true;}\nreturn false;},initProviderListener:function(){customerData.get(this.customerDataProvider).subscribe(this.providerHandler.bind(this));return this;},cachesDataFromLocalStorage:function(){this.data(this.getDataFromLocalStorage());return this;},getDataFromLocalStorage:function(){return this.localStorage.get();},initLocalStorage:function(){this.localStorage=$.initNamespaceStorage(this.namespace).localStorage;return this;}};});","Magento_Catalog/js/product/storage/storage-service.min.js":"define(['jquery','underscore','mageUtils','mage/translate','Magento_Catalog/js/product/storage/ids-storage','Magento_Catalog/js/product/storage/data-storage','Magento_Catalog/js/product/storage/ids-storage-compare'],function($,_,utils,$t,IdsStorage,DataStore,IdsStorageCompare){'use strict';return(function(){var\nstorages={},classes={},prototype={set:function(data){if(!utils.compare(data,this.data()).equal){this.data(data);}},add:function(data){if(!_.isEmpty(data)){this.data(_.extend(utils.copy(this.data()),data));}},get:function(){return this.data();}},storagesInterface={data:'function',initialize:'function',namespace:'string'},_private={overrideClassMethods:function(extensionMethods,originInstance){var methodsName=_.keys(extensionMethods),i=0,length=methodsName.length;for(i;i<length;i++){if(_.isFunction(originInstance[methodsName[i]])){originInstance[methodsName[i]]=extensionMethods[methodsName[i]];}}\nreturn originInstance;},isImplementInterface:function(classInstance){_.each(storagesInterface,function(key,value){if(typeof classInstance[key]!==value){return false;}});return true;}},subsctibers={};(function(){classes[IdsStorage.name]=function(config){_.extend(this,IdsStorage,config);};classes[IdsStorageCompare.name]=function(config){_.extend(this,IdsStorageCompare,config);};classes[DataStore.name]=function(config){_.extend(this,DataStore,config);};_.each(classes,function(classItem){classItem.prototype=prototype;});})();return{createStorage:function(config){var instance,initialized;if(storages[config.namespace]){return storages[config.namespace];}\ninstance=new classes[config.className](config);if(_private.isImplementInterface(instance)){initialized=storages[config.namespace]=instance.initialize();this.processSubscribers(initialized,config);return initialized;}\nthrow new Error('Class '+config.className+$t('does not implement Storage Interface'));},processSubscribers:function(initialized,config){if(subsctibers[config.namespace]){_.each(subsctibers[config.namespace],function(callback){callback(initialized);});delete subsctibers[config.namespace];}},onStorageInit:function(namespace,callback){if(storages[namespace]){callback(storages[namespace]);}else{subsctibers[namespace]?subsctibers[namespace].push(callback):subsctibers[namespace]=[callback];}},getStorage:function(namespace){return storages[namespace];}};})();});","Magento_Catalog/js/view/compare-products.min.js":"define(['uiComponent','Magento_Customer/js/customer-data','jquery','underscore','mage/mage','mage/decorate'],function(Component,customerData,$,_){'use strict';var sidebarInitialized=false,compareProductsReloaded=false;function initSidebar(){if(sidebarInitialized){return;}\nsidebarInitialized=true;$('[data-role=compare-products-sidebar]').decorate('list',true);}\nreturn Component.extend({initialize:function(){this._super();this.compareProducts=customerData.get('compare-products');if(!compareProductsReloaded&&!_.isEmpty(this.compareProducts())&&_.indexOf(customerData.getExpiredSectionNames(),'compare-products')===-1&&window.checkout&&window.checkout.websiteId&&window.checkout.websiteId!==this.compareProducts().websiteId){this.compareProducts().count=0;customerData.reload(['compare-products'],false);compareProductsReloaded=true;}\ninitSidebar();}});});","Magento_Catalog/js/view/image.min.js":"define(['uiComponent'],function(Component){'use strict';return Component.extend({initialize:function(){this._super();this.template=window.checkout.imageTemplate||this.template;}});});","Magento_GoogleAnalytics/js/google-analytics.min.js":"define(['jquery','mage/cookies'],function($){'use strict';return function(config){var allowServices=false,allowedCookies,allowedWebsites;if(config.isCookieRestrictionModeEnabled){allowedCookies=$.mage.cookies.get(config.cookieName);if(allowedCookies!==null){allowedWebsites=JSON.parse(allowedCookies);if(allowedWebsites[config.currentWebsite]===1){allowServices=true;}}}else{allowServices=true;}\nif(allowServices){(function(i,s,o,g,r,a,m){i.GoogleAnalyticsObject=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create',config.pageTrackingData.accountId,'auto');if(config.pageTrackingData.isAnonymizedIpActive){ga('set','anonymizeIp',true);}\nif(config.ordersTrackingData.hasOwnProperty('currency')){ga('require','ec','ec.js');ga('set','currencyCode',config.ordersTrackingData.currency);if(config.ordersTrackingData.products){$.each(config.ordersTrackingData.products,function(index,value){ga('ec:addProduct',value);});}\nif(config.ordersTrackingData.orders){$.each(config.ordersTrackingData.orders,function(index,value){ga('ec:setAction','purchase',value);});}\nga('send','pageview');}else{ga('send','pageview'+config.pageTrackingData.optPageUrl);}}}});","magnifier/magnifier.min.js":"(function($){$.fn.magnify=function(options){'use strict';var magnify=new Magnify($(this),options);return magnify;};function Magnify(element,options){var customUserOptions=options||{},$box=$(element),$thumb,that=this,largeWrapper=options.largeWrapper||'.magnifier-preview',$magnifierPreview=$(largeWrapper);curThumb=null,magnifierOptions={x:0,y:0,w:0,h:0,lensW:0,lensH:0,lensBgX:0,lensBgY:0,largeW:0,largeH:0,largeL:0,largeT:0,zoom:2,zoomMin:1.1,zoomMax:5,mode:'outside',eventType:'click',status:0,zoomAttached:false,zoomable:customUserOptions.zoomable!==undefined?customUserOptions.zoomable:false,onthumbenter:customUserOptions.onthumbenter!==undefined?customUserOptions.onthumbenter:null,onthumbmove:customUserOptions.onthumbmove!==undefined?customUserOptions.onthumbmove:null,onthumbleave:customUserOptions.onthumbleave!==undefined?customUserOptions.onthumbleave:null,onzoom:customUserOptions.onzoom!==undefined?customUserOptions.onzoom:null},pos={t:0,l:0,x:0,y:0},gId=0,status=0,curIdx='',curLens=null,curLarge=null,lensbg=customUserOptions.bg!==undefined?customUserOptions.lensbg:true,gZoom=customUserOptions.zoom!==undefined?customUserOptions.zoom:magnifierOptions.zoom,gZoomMin=customUserOptions.zoomMin!==undefined?customUserOptions.zoomMin:magnifierOptions.zoomMin,gZoomMax=customUserOptions.zoomMax!==undefined?customUserOptions.zoomMax:magnifierOptions.zoomMax,gMode=customUserOptions.mode||magnifierOptions.mode,gEventType=customUserOptions.eventType||magnifierOptions.eventType,data={},inBounds=false,isOverThumb=false,rate=1,paddingX=0,paddingY=0,enabled=true,showWrapper=true;var MagnifyCls={magnifyHidden:'magnify-hidden',magnifyOpaque:'magnify-opaque',magnifyFull:'magnify-fullimage'};that.update=function(){updateLensOnLoad();};that.init=function(){_init($box,options);};function _toBoolean(str){if(typeof str==='string'){if(str==='true'){return true;}else if(str==='false'||''){return false;}\nconsole.warn('Wrong type: can\\'t be transformed to Boolean');}else if(typeof str==='boolean'){return str;}}\nfunction createLens(thumb){if($(thumb).siblings('.magnify-lens').length){return false;}\nvar lens=$('<div class=\"magnify-lens magnify-hidden\" data-gallery-role=\"magnifier-zoom\"></div>');$(thumb).parent().append(lens);}\nfunction updateLensOnLoad(idSelectorMainImg,thumb,largeImgInMagnifyLens,largeWrapper){var magnifyLensElement=$box.find('.magnify-lens'),textWrapper;if(data[idSelectorMainImg].status===1){textWrapper=$('<div class=\"magnifier-loader-text\"></div>');magnifyLensElement.className='magnifier-loader magnify-hidden';textWrapper.html('Loading...');magnifyLensElement.html('').append(textWrapper);}else if(data[idSelectorMainImg].status===2){magnifyLensElement.addClass(MagnifyCls.magnifyHidden);magnifyLensElement.html('');largeImgInMagnifyLens.id=idSelectorMainImg+'-large';largeImgInMagnifyLens.style.width=data[idSelectorMainImg].largeImgInMagnifyLensWidth+'px';largeImgInMagnifyLens.style.height=data[idSelectorMainImg].largeImgInMagnifyLensHeight+'px';largeImgInMagnifyLens.className='magnifier-large magnify-hidden';if(data[idSelectorMainImg].mode==='inside'){magnifyLensElement.append(largeImgInMagnifyLens);}else{largeWrapper.html('').append(largeImgInMagnifyLens);}}\ndata[idSelectorMainImg].lensH=data[idSelectorMainImg].lensH>$thumb.height()?$thumb.height():data[idSelectorMainImg].lensH;if(Math.round(data[idSelectorMainImg].lensW)===0){magnifyLensElement.css('display','none');}else{magnifyLensElement.css({width:Math.round(data[idSelectorMainImg].lensW)+'px',height:Math.round(data[idSelectorMainImg].lensH)+'px',display:''});}}\nfunction getMousePos(){var xPos=pos.x-magnifierOptions.x,yPos=pos.y-magnifierOptions.y,t,l;inBounds=xPos<0||yPos<0||xPos>magnifierOptions.w||yPos>magnifierOptions.h?false:true;l=xPos-magnifierOptions.lensW / 2;t=yPos-magnifierOptions.lensH / 2;if(xPos<magnifierOptions.lensW / 2){l=0;}\nif(yPos<magnifierOptions.lensH / 2){t=0;}\nif(xPos-magnifierOptions.w+Math.ceil(magnifierOptions.lensW / 2)>0){l=magnifierOptions.w-Math.ceil(magnifierOptions.lensW+2);}\nif(yPos-magnifierOptions.h+Math.ceil(magnifierOptions.lensH / 2)>0){t=magnifierOptions.h-Math.ceil(magnifierOptions.lensH);}\npos.l=l;pos.t=t;magnifierOptions.lensBgX=pos.l;magnifierOptions.lensBgY=pos.t;if(magnifierOptions.mode==='inside'){magnifierOptions.largeL=Math.round(xPos*(magnifierOptions.zoom-magnifierOptions.lensW / magnifierOptions.w));magnifierOptions.largeT=Math.round(yPos*(magnifierOptions.zoom-magnifierOptions.lensH / magnifierOptions.h));}else{magnifierOptions.largeL=Math.round(magnifierOptions.lensBgX*magnifierOptions.zoom*(magnifierOptions.largeWrapperW / magnifierOptions.w));magnifierOptions.largeT=Math.round(magnifierOptions.lensBgY*magnifierOptions.zoom*(magnifierOptions.largeWrapperH / magnifierOptions.h));}}\nfunction onThumbEnter(){if(_toBoolean(enabled)){magnifierOptions=data[curIdx];curLens=$box.find('.magnify-lens');if(magnifierOptions.status===2){curLens.removeClass(MagnifyCls.magnifyOpaque);curLarge=$('#'+curIdx+'-large');curLarge.removeClass(MagnifyCls.magnifyHidden);}else if(magnifierOptions.status===1){curLens.className='magnifier-loader';}}}\nfunction onThumbLeave(){if(magnifierOptions.status>0){var handler=magnifierOptions.onthumbleave;if(handler!==null){handler({thumb:curThumb,lens:curLens,large:curLarge,x:pos.x,y:pos.y});}\nif(!curLens.hasClass(MagnifyCls.magnifyHidden)){curLens.addClass(MagnifyCls.magnifyHidden);if(curLarge!==null){curLarge.addClass(MagnifyCls.magnifyHidden);}}}}\nfunction move(){if(_toBoolean(enabled)){if(status!==magnifierOptions.status){onThumbEnter();}\nif(magnifierOptions.status>0){curThumb.className=magnifierOptions.thumbCssClass+' magnify-opaque';if(magnifierOptions.status===1){curLens.className='magnifier-loader';}else if(magnifierOptions.status===2){curLens.removeClass(MagnifyCls.magnifyHidden);curLarge.removeClass(MagnifyCls.magnifyHidden);curLarge.css({left:'-'+magnifierOptions.largeL+'px',top:'-'+magnifierOptions.largeT+'px'});}\nvar borderOffset=2;pos.t=pos.t<=0?0:pos.t-borderOffset;curLens.css({left:pos.l+paddingX+'px',top:pos.t+paddingY+'px'});if(lensbg){curLens.css({'background-color':'rgba(f,f,f,.5)'});}else{curLens.get(0).style.backgroundPosition='-'+\nmagnifierOptions.lensBgX+'px -'+\nmagnifierOptions.lensBgY+'px';}\nvar handler=magnifierOptions.onthumbmove;if(handler!==null){handler({thumb:curThumb,lens:curLens,large:curLarge,x:pos.x,y:pos.y});}}\nstatus=magnifierOptions.status;}}\nfunction setThumbData(mainImage,mainImageData){var thumbBounds=mainImage.getBoundingClientRect(),w=0,h=0;mainImageData.x=Math.round(thumbBounds.left);mainImageData.y=Math.round(thumbBounds.top);mainImageData.w=Math.round(thumbBounds.right-mainImageData.x);mainImageData.h=Math.round(thumbBounds.bottom-mainImageData.y);if(mainImageData.mode==='inside'){w=mainImageData.w;h=mainImageData.h;}else{w=mainImageData.largeWrapperW;h=mainImageData.largeWrapperH;}\nmainImageData.largeImgInMagnifyLensWidth=Math.round(mainImageData.zoom*w);mainImageData.largeImgInMagnifyLensHeight=Math.round(mainImageData.zoom*h);mainImageData.lensW=Math.round(mainImageData.w / mainImageData.zoom);mainImageData.lensH=Math.round(mainImageData.h / mainImageData.zoom);}\nfunction _init($box,options){var opts={};if(options.thumb===undefined){return false;}\n$thumb=$box.find(options.thumb);if($thumb.length){for(var key in options){opts[key]=options[key];}\nopts.thumb=$thumb;enabled=opts.enabled;if(_toBoolean(enabled)){$magnifierPreview.show().css('display','');$magnifierPreview.addClass(MagnifyCls.magnifyHidden);set(opts);}else{$magnifierPreview.empty().hide();}}\nreturn that;}\nfunction hoverEvents(thumb){$(thumb).on('mouseover',function(e){if(showWrapper){if(magnifierOptions.status!==0){onThumbLeave();}\nhandleEvents(e);isOverThumb=inBounds;}}).trigger('mouseover');}\nfunction clickEvents(thumb){$(thumb).on('click',function(e){if(showWrapper){if(!isOverThumb){if(magnifierOptions.status!==0){onThumbLeave();}\nhandleEvents(e);isOverThumb=true;}}});}\nfunction bindEvents(eType,thumb){var eventFlag='hasBoundEvent_'+eType;if(thumb[eventFlag]){return;}\nthumb[eventFlag]=true;switch(eType){case'hover':hoverEvents(thumb);break;case'click':clickEvents(thumb);break;}}\nfunction handleEvents(e){var src=e.target;curIdx=src.id;curThumb=src;onThumbEnter(src);setThumbData(curThumb,magnifierOptions);pos.x=e.clientX;pos.y=e.clientY;getMousePos();move();var handler=magnifierOptions.onthumbenter;if(handler!==null){handler({thumb:curThumb,lens:curLens,large:curLarge,x:pos.x,y:pos.y});}}\nfunction set(options){if(data[options.thumb.id]!==undefined){curThumb=options.thumb;return false;}\nvar thumbObj=new Image(),largeObj=new Image(),$thumb=options.thumb,thumb=$thumb.get(0),idx=thumb.id,largeUrl,largeWrapper=$(options.largeWrapper),zoom=options.zoom||thumb.getAttribute('data-zoom')||gZoom,zoomMin=options.zoomMin||gZoomMin,zoomMax=options.zoomMax||gZoomMax,mode=options.mode||thumb.getAttribute('data-mode')||gMode,eventType=options.eventType||thumb.getAttribute('data-eventType')||gEventType,onthumbenter=options.onthumbenter!==undefined?options.onthumbenter:magnifierOptions.onthumbenter,onthumbleave=options.onthumbleave!==undefined?options.onthumbleave:magnifierOptions.onthumbleave,onthumbmove=options.onthumbmove!==undefined?options.onthumbmove:magnifierOptions.onthumbmove;largeUrl=$thumb.data('original')||customUserOptions.full||$thumb.attr('src');if(thumb.id===''){idx=thumb.id='magnifier-item-'+gId;gId+=1;}\ncreateLens(thumb,idx);if(options.width){largeWrapper.width(options.width);}\nif(options.height){largeWrapper.height(options.height);}\nif(options.top){if(typeof options.top=='function'){var top=options.top()+'px';}else{var top=options.top+'px';}\nif(largeWrapper.length){largeWrapper[0].style.top=top.replace('%px','%');}}\nif(options.left){if(typeof options.left=='function'){var left=options.left()+'px';}else{var left=options.left+'px';}\nif(largeWrapper.length){largeWrapper[0].style.left=left.replace('%px','%');}}\ndata[idx]={zoom:zoom,zoomMin:zoomMin,zoomMax:zoomMax,mode:mode,eventType:eventType,thumbCssClass:thumb.className,zoomAttached:false,status:0,largeUrl:largeUrl,largeWrapperId:mode==='outside'?largeWrapper.attr('id'):null,largeWrapperW:mode==='outside'?largeWrapper.width():null,largeWrapperH:mode==='outside'?largeWrapper.height():null,onthumbenter:onthumbenter,onthumbleave:onthumbleave,onthumbmove:onthumbmove};paddingX=($thumb.parent().width()-$thumb.width())/ 2;paddingY=($thumb.parent().height()-$thumb.height())/ 2;showWrapper=false;$(thumbObj).on('load',function(){if(data.length>0){data[idx].status=1;$(largeObj).on('load',function(){if(largeObj.width>largeWrapper.width()||largeObj.height>largeWrapper.height()){showWrapper=true;bindEvents(eventType,thumb);data[idx].status=2;if(largeObj.width>largeObj.height){data[idx].zoom=largeObj.width / largeWrapper.width();}else{data[idx].zoom=largeObj.height / largeWrapper.height();}\nsetThumbData(thumb,data[idx]);updateLensOnLoad(idx,thumb,largeObj,largeWrapper);}});largeObj.src=data[idx].largeUrl;}});thumbObj.src=thumb.src;}\nfunction onMouseLeave(){onThumbLeave();isOverThumb=false;$magnifierPreview.addClass(MagnifyCls.magnifyHidden);}\nfunction onMousemove(e){pos.x=e.clientX;pos.y=e.clientY;getMousePos();if(gEventType==='hover'){isOverThumb=inBounds;}\nif(inBounds&&isOverThumb){if(gMode==='outside'){$magnifierPreview.removeClass(MagnifyCls.magnifyHidden);}\nmove();}}\nfunction onScroll(){if(curThumb!==null){setThumbData(curThumb,magnifierOptions);}}\n$(window).on('scroll',onScroll);$(window).on('resize',function(){_init($box,customUserOptions);});$box.on('mousemove',onMousemove);$box.on('mouseleave',onMouseLeave);_init($box,customUserOptions);}}(jQuery));","magnifier/magnify.min.js":"define(['jquery','underscore','magnifier/magnifier'],function($,_){'use strict';return function(config,element){var isTouchEnabled='ontouchstart'in document.documentElement,gallerySelector='[data-gallery-role=\"gallery\"]',magnifierSelector='[data-gallery-role=\"magnifier\"]',magnifierZoomSelector='[data-gallery-role=\"magnifier-zoom\"]',zoomInButtonSelector='[data-gallery-role=\"fotorama__zoom-in\"]',zoomOutButtonSelector='[data-gallery-role=\"fotorama__zoom-out\"]',fullscreenImageSelector='[data-gallery-role=\"stage-shaft\"] [data-active=\"true\"] .fotorama__img--full',imageDraggableClass='fotorama__img--draggable',imageZoommable='fotorama__img--zoommable',zoomInLoaded='zoom-in-loaded',zoomOutLoaded='zoom-out-loaded',zoomInDisabled='fotorama__zoom-in--disabled',zoomOutDisabled='fotorama__zoom-out--disabled',keyboardNavigation,videoContainerClass='fotorama-video-container',hideMagnifier,dragFlag,endX,transitionEnabled,transitionActive=false,tapFlag=0,allowZoomOut=false,allowZoomIn=true;transitionEnabled=document.documentElement.style.transition!==undefined||document.documentElement.style.WebkitTransition!==undefined||document.documentElement.style.MozTransition!==undefined||document.documentElement.style.MsTransition!==undefined||document.documentElement.style.OTransition!==undefined;function getImageSize(img){return{rw:img.naturalWidth,rh:img.naturalHeight};}\nfunction calculateMinSize($image){var minHeight,minWidth,height=$image.height(),width=$image.width(),parentHeight=$image.parent().height(),parentWidth=$image.parent().width();if(width>parentWidth||height>parentHeight){if(width / height<parentWidth / parentHeight){minHeight=parentHeight;minWidth=width*(parentHeight / height);}else{minWidth=parentWidth;minHeight=height*parentWidth / width;}\n$image.css({'min-width':minWidth,'min-height':minHeight});}}\nfunction toggleZoomable($image,flag){if(flag){$image.css({'min-width':$image.width(),'min-height':$image.height(),'width':$image.width(),'height':$image.height()}).addClass(imageZoommable);}else{$image.css({width:'',height:'',top:'',left:'',right:'',bottom:''}).removeClass(imageZoommable);calculateMinSize($image);}}\nfunction resetVars($image){allowZoomIn=true;allowZoomOut=dragFlag=transitionActive=false;$image.hasClass(imageDraggableClass)&&$image.removeClass(imageDraggableClass);toggleZoomable($image,false);}\nfunction hideZoomControls(isHide){if(isHide){$(zoomInButtonSelector).addClass(zoomInDisabled);$(zoomOutButtonSelector).addClass(zoomOutDisabled);}else{$(zoomInButtonSelector).removeClass(zoomInDisabled);$(zoomOutButtonSelector).removeClass(zoomOutDisabled);}}\nfunction asyncToggleZoomButtons(path,$image){var img=new Image();img.onload=function(){this.height>$image.parent().height()||this.width>$image.parent().width()?hideZoomControls(false):hideZoomControls(true);};img.src=path;}\nfunction toggleZoomButtons($image,isTouchScreen,isVideoActiveFrame){var path=$image.attr('src');if(path&&!isTouchScreen&&!isVideoActiveFrame){asyncToggleZoomButtons(path,$image);}else{hideZoomControls(true);}}\nfunction resizeHandler(e,$image){var imageSize,parentWidth,parentHeight,isImageSmall,isImageFit;if(!e.data.$image||!e.data.$image.length)\nreturn;imageSize=getImageSize($(fullscreenImageSelector)[0]);parentWidth=e.data.$image.parent().width();parentHeight=e.data.$image.parent().height();isImageSmall=parentWidth>=imageSize.rw&&parentHeight>=imageSize.rh;isImageFit=parentWidth>e.data.$image.width()&&parentHeight>e.data.$image.height();toggleZoomButtons(e.data.$image,isTouchEnabled,checkForVideo(e.data.fotorama.activeFrame.$stageFrame));calculateMinSize(e.data.$image);if(e.data.$image.hasClass(imageZoommable)&&!allowZoomOut||isImageSmall||isImageFit){resetVars(e.data.$image);}\nif(!isImageSmall){toggleStandartNavigation();}}\nfunction getTopValue($image,topProp,step,height,containerHeight){var top;if(parseInt($image.css('marginTop'))||parseInt($image.css('marginLeft'))){top=dragFlag?topProp-step / 4:0;top=top<containerHeight-height?containerHeight-height:top;top=top>height-containerHeight?height-containerHeight:top;}else{top=topProp+step / 2;top=top<containerHeight-height?containerHeight-height:top;top=top>0?0:top;if(!dragFlag&&step<0){top=top<(containerHeight-height)/ 2?(containerHeight-height)/ 2:top;}}\nreturn top;}\nfunction getLeftValue(leftProp,step,width,containerWidth){var left;left=leftProp+step / 2;left=left<containerWidth-width?containerWidth-width:left;left=left>0?0:left;if(!dragFlag&&step<0){left=left<(containerWidth-width)/ 2?(containerWidth-width)/ 2:left;}\nreturn left;}\nfunction checkFullscreenImagePosition($image,dimentions,widthStep,heightStep){var $imageContainer,containerWidth,containerHeight,settings,top,left,right,bottom,ratio;if($(gallerySelector).data('fotorama').fullScreen){transitionActive=true;$imageContainer=$image.parent();containerWidth=$imageContainer.width();containerHeight=$imageContainer.height();top=$image.position().top;left=$image.position().left;ratio=$image.width()/ $image.height();dimentions.height=isNaN(dimentions.height)?dimentions.width / ratio:dimentions.height;dimentions.width=isNaN(dimentions.width)?dimentions.height*ratio:dimentions.width;top=dimentions.height>=containerHeight?getTopValue($image,top,heightStep,dimentions.height,containerHeight):0;left=dimentions.width>=containerWidth?getLeftValue(left,widthStep,dimentions.width,containerWidth):0;right=dragFlag&&left<(containerWidth-dimentions.width)/ 2?0:left;bottom=dragFlag?0:top;settings=$.extend(dimentions,{top:top,left:left,right:right});$image.css(settings);}}\nfunction toggleStandartNavigation(){var $selectable=$('a[href], area[href], input, select, textarea, button, iframe, object, embed, *[tabindex], *[contenteditable]').not('[tabindex=-1], [disabled], :hidden'),fotorama=$(gallerySelector).data('fotorama'),$focus=$(':focus'),index;if(fotorama.fullScreen){$selectable.each(function(number){if($(this).is($focus)){index=number;}});fotorama.setOptions({swipe:!allowZoomOut,keyboard:!allowZoomOut});if(_.isNumber(index)){$selectable.eq(index).trigger('focus');}}}\nfunction zoomIn(e,xStep,yStep){var $image,imgOriginalSize,imageWidth,imageHeight,zoomWidthStep,zoomHeightStep,widthResult,heightResult,ratio,dimentions={};if(allowZoomIn&&(!transitionEnabled||!transitionActive)&&(isTouchEnabled||!$(zoomInButtonSelector).hasClass(zoomInDisabled))){$image=$(fullscreenImageSelector);imgOriginalSize=getImageSize($image[0]);imageWidth=$image.width();imageHeight=$image.height();ratio=imageWidth / imageHeight;allowZoomOut=true;toggleStandartNavigation();if(!$image.hasClass(imageZoommable)){toggleZoomable($image,true);}\ne.preventDefault();if(imageWidth>=imageHeight){zoomWidthStep=xStep||Math.ceil(imageWidth*parseFloat(config.magnifierOpts.fullscreenzoom)/ 100);widthResult=imageWidth+zoomWidthStep;if(widthResult>=imgOriginalSize.rw){widthResult=imgOriginalSize.rw;zoomWidthStep=xStep||widthResult-imageWidth;allowZoomIn=false;}\nheightResult=widthResult / ratio;zoomHeightStep=yStep||heightResult-imageHeight;}else{zoomHeightStep=yStep||Math.ceil(imageHeight*parseFloat(config.magnifierOpts.fullscreenzoom)/ 100);heightResult=imageHeight+zoomHeightStep;if(heightResult>=imgOriginalSize.rh){heightResult=imgOriginalSize.rh;zoomHeightStep=yStep||heightResult-imageHeight;allowZoomIn=false;}\nwidthResult=heightResult*ratio;zoomWidthStep=xStep||widthResult-imageWidth;}\nif(imageWidth>=imageHeight&&imageWidth!==imgOriginalSize.rw){dimentions=$.extend(dimentions,{width:widthResult,height:'auto'});checkFullscreenImagePosition($image,dimentions,-zoomWidthStep,-zoomHeightStep);}else if(imageWidth<imageHeight&&imageHeight!==imgOriginalSize.rh){dimentions=$.extend(dimentions,{width:'auto',height:heightResult});checkFullscreenImagePosition($image,dimentions,-zoomWidthStep,-zoomHeightStep);}}\nreturn false;}\nfunction zoomOut(e,xStep,yStep){var $image,widthResult,heightResult,dimentions,parentWidth,parentHeight,imageWidth,imageHeight,zoomWidthStep,zoomHeightStep,ratio,fitIntoParent;if(allowZoomOut&&(!transitionEnabled||!transitionActive)&&(isTouchEnabled||!$(zoomOutButtonSelector).hasClass(zoomOutDisabled))){allowZoomIn=true;$image=$(fullscreenImageSelector);parentWidth=$image.parent().width();parentHeight=$image.parent().height();imageWidth=$image.width();imageHeight=$image.height();ratio=imageWidth / imageHeight;e.preventDefault();if(imageWidth>=imageHeight){zoomWidthStep=xStep||Math.ceil(imageWidth*parseFloat(config.magnifierOpts.fullscreenzoom)/ 100);widthResult=imageWidth-zoomWidthStep;heightResult=widthResult / ratio;zoomHeightStep=yStep||imageHeight-heightResult;}else{zoomHeightStep=yStep||Math.ceil(imageHeight*parseFloat(config.magnifierOpts.fullscreenzoom)/ 100);heightResult=imageHeight-zoomHeightStep;widthResult=heightResult*ratio;zoomWidthStep=xStep||imageWidth-widthResult;}\nfitIntoParent=function(){if(ratio>parentWidth / parentHeight){widthResult=parentWidth;zoomWidthStep=imageWidth-widthResult;heightResult=widthResult / ratio;zoomHeightStep=imageHeight-heightResult;dimentions={width:widthResult,height:'auto'};}else{heightResult=parentHeight;zoomHeightStep=imageHeight-heightResult;widthResult=heightResult*ratio;zoomWidthStep=imageWidth-widthResult;dimentions={width:'auto',height:heightResult};}\ncheckFullscreenImagePosition($image,dimentions,zoomWidthStep,zoomHeightStep);};if(imageWidth>=imageHeight){if(widthResult>parentWidth){dimentions={width:widthResult,height:'auto'};checkFullscreenImagePosition($image,dimentions,zoomWidthStep,zoomHeightStep);}else if(heightResult>parentHeight){dimentions={width:widthResult,height:'auto'};checkFullscreenImagePosition($image,dimentions,zoomWidthStep,zoomHeightStep);}else{allowZoomOut=dragFlag=false;toggleStandartNavigation();fitIntoParent();}}else if(heightResult>parentHeight){dimentions={width:'auto',height:heightResult};checkFullscreenImagePosition($image,dimentions,zoomWidthStep,zoomHeightStep);}else if(widthResult>parentWidth){dimentions={width:'auto',height:heightResult};checkFullscreenImagePosition($image,dimentions,zoomWidthStep,zoomHeightStep);}else{allowZoomOut=dragFlag=false;toggleStandartNavigation();fitIntoParent();}}\nreturn false;}\nfunction mousewheel(e,fotorama,element){var $fotoramaStage=fotorama.activeFrame.$stageFrame,fotoramaStage=$fotoramaStage.get(0);function onWheel(e){var delta=e.deltaY||e.wheelDelta,ev=e||window.event;if($(gallerySelector).data('fotorama').fullScreen){if(e.deltaY){if(delta>0){zoomOut(ev);}else{zoomIn(ev);}}else if(delta>0){zoomIn(ev);}else{zoomOut(ev);}\ne.preventDefault?e.preventDefault():e.returnValue=false;}}\nif(!$fotoramaStage.hasClass('magnify-wheel-loaded')){if(fotoramaStage&&fotoramaStage.addEventListener){if('onwheel'in document){fotoramaStage.addEventListener('wheel',onWheel,{passive:true});}else if('onmousewheel'in document){fotoramaStage.addEventListener('mousewheel',onWheel);}else{fotoramaStage.addEventListener('MozMousePixelScroll',onWheel);}\n$fotoramaStage.addClass('magnify-wheel-loaded');}}}\nfunction magnifierFullscreen(fotorama){var isDragActive=false,startX,startY,imagePosX,imagePosY,touch,swipeSlide,$gallery=$(gallerySelector),$image=$(fullscreenImageSelector,$gallery),$imageContainer=$('[data-gallery-role=\"stage-shaft\"] [data-active=\"true\"]'),gallery=$gallery.data('fotorama'),pinchDimention;swipeSlide=_.throttle(function(direction){$(gallerySelector).data('fotorama').show(direction);},500,{trailing:false});function getTop($el){return parseInt($el.get(0).style.top);}\nfunction shiftImage(dx,dy,e){var top=+imagePosY+dy,left=+imagePosX+dx,swipeCondition=$image.width()/ 10+20;dragFlag=true;if($image.offset().left===$imageContainer.offset().left+$imageContainer.width()-$image.width()&&e.keyCode===39||endX-1<$imageContainer.offset().left+$imageContainer.width()-$image.width()&&dx<0&&_.isNumber(endX)&&(e.type==='mousemove'||e.type==='touchmove'||e.type==='pointermove'||e.type==='MSPointerMove')){endX=null;swipeSlide('>');return;}\nif($image.offset().left===$imageContainer.offset().left&&dx!==0&&e.keyCode===37||endX===$imageContainer.offset().left&&dx>0&&(e.type==='mousemove'||e.type==='touchmove'||e.type==='pointermove'||e.type==='MSPointerMove')){endX=null;swipeSlide('<');return;}\nif($image.height()>$imageContainer.height()){if($imageContainer.height()>$image.height()+top){$image.css('top',$imageContainer.height()-$image.height());}else{top=$image.height()-getTop($image)-$imageContainer.height();dy=dy<top?dy:top;$image.css('top',getTop($image)+dy);}}\nif($image.width()>$imageContainer.width()){if($imageContainer.offset().left+$imageContainer.width()>left+$image.width()){left=$imageContainer.offset().left+$imageContainer.width()-$image.width();}else{left=$imageContainer.offset().left<left?$imageContainer.offset().left:left;}\n$image.offset({'left':left});$image.css('right','');}else if(Math.abs(dy)<1&&allowZoomOut&&!(e.type==='mousemove'||e.type==='touchmove'||e.type==='pointermove'||e.type==='MSPointerMove')){dx<0?$(gallerySelector).data('fotorama').show('>'):$(gallerySelector).data('fotorama').show('<');}\nif($image.width()<=$imageContainer.width()&&allowZoomOut&&(e.type==='mousemove'||e.type==='touchmove'||e.type==='pointermove'||e.type==='MSPointerMove')&&Math.abs(dx)>Math.abs(dy)&&Math.abs(dx)>swipeCondition){dx<0?swipeSlide('>'):swipeSlide('<');}}\nfunction dblClickHandler(e){var imgOriginalSize=getImageSize($image[0]),proportions;if(imgOriginalSize.rh<$image.parent().height()&&imgOriginalSize.rw<$image.parent().width()){return;}\nproportions=imgOriginalSize.rw / imgOriginalSize.rh;if(allowZoomIn){zoomIn(e,imgOriginalSize.rw-$image.width(),imgOriginalSize.rh-$image.height());}else if(proportions>$imageContainer.width()/ $imageContainer.height()){zoomOut(e,imgOriginalSize.rw-$imageContainer.width(),imgOriginalSize.rw / proportions);}else{zoomOut(e,imgOriginalSize.rw*proportions,imgOriginalSize.rh-$imageContainer.height());}}\nfunction detectDoubleTap(e){var now=new Date().getTime(),timesince=now-tapFlag;if(timesince<400&&timesince>0){transitionActive=false;tapFlag=0;dblClickHandler(e);}else{tapFlag=new Date().getTime();}}\nif(isTouchEnabled){$image.off('tap');$image.on('tap',function(e){if(e.originalEvent.originalEvent.touches.length===0){detectDoubleTap(e);}});}else{$image.off('dblclick');$image.on('dblclick',dblClickHandler);}\nif(gallery.fullScreen){toggleZoomButtons($image,isTouchEnabled,checkForVideo(fotorama.activeFrame.$stageFrame));}\nfunction getDimention(event){return Math.sqrt((event.touches[0].clientX-event.touches[1].clientX)*(event.touches[0].clientX-event.touches[1].clientX)+\n(event.touches[0].clientY-event.touches[1].clientY)*(event.touches[0].clientY-event.touches[1].clientY));}\n$image.off(isTouchEnabled?'touchstart':'pointerdown mousedown MSPointerDown');$image.on(isTouchEnabled?'touchstart':'pointerdown mousedown MSPointerDown',function(e){if(e&&e.originalEvent.touches&&e.originalEvent.touches.length>=2){e.preventDefault();pinchDimention=getDimention(e.originalEvent);isDragActive=false;if($image.hasClass(imageDraggableClass)){$image.removeClass(imageDraggableClass);}}else if(gallery.fullScreen&&(!transitionEnabled||!transitionActive)){imagePosY=getTop($image);imagePosX=$image.offset().left;if(isTouchEnabled){touch=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0];e.clientX=touch.pageX;e.clientY=touch.pageY;}\nstartX=e.clientX||e.originalEvent.clientX;startY=e.clientY||e.originalEvent.clientY;isDragActive=true;}\nif($image.offset()&&$image.width()>$imageContainer.width()){endX=$image.offset().left;}});$image.off(isTouchEnabled?'touchmove':'mousemove pointermove MSPointerMove');$image.on(isTouchEnabled?'touchmove':'mousemove pointermove MSPointerMove',function(e){if(e&&e.originalEvent.touches&&e.originalEvent.touches.length>=2){e.preventDefault();var currentDimention=getDimention(e.originalEvent);if($image.hasClass(imageDraggableClass)){$image.removeClass(imageDraggableClass);}\nif(currentDimention<pinchDimention){zoomOut(e);pinchDimention=currentDimention;}else if(currentDimention>pinchDimention){zoomIn(e);pinchDimention=currentDimention;}}else{var clientX,clientY;if(gallery.fullScreen&&isDragActive&&(!transitionEnabled||!transitionActive)){if(allowZoomOut&&!$image.hasClass(imageDraggableClass)){$image.addClass(imageDraggableClass);}\nclientX=e.clientX||e.originalEvent.clientX;clientY=e.clientY||e.originalEvent.clientY;e.preventDefault();if(isTouchEnabled){touch=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0];clientX=touch.pageX;clientY=touch.pageY;}\nif(allowZoomOut){imagePosY=getTop($(fullscreenImageSelector,$gallery));shiftImage(clientX-startX,clientY-startY,e);}}}});$image.off('transitionend webkitTransitionEnd mozTransitionEnd msTransitionEnd ');$image.on('transitionend webkitTransitionEnd mozTransitionEnd msTransitionEnd',function(){transitionActive=false;});if(keyboardNavigation){$(document).off('keydown',keyboardNavigation);}\nkeyboardNavigation=function(e){var step=40,$focus=$(':focus'),isFullScreen=$(gallerySelector).data('fotorama').fullScreen,initVars=function(){imagePosX=$(fullscreenImageSelector,$gallery).offset().left;imagePosY=getTop($(fullscreenImageSelector,$gallery));};if(($focus.attr('data-gallery-role')||!$focus.length)&&allowZoomOut){if(isFullScreen){imagePosX=$(fullscreenImageSelector,$(gallerySelector)).offset().left;imagePosY=getTop($(fullscreenImageSelector,$(gallerySelector)));}\nif(e.keyCode===39){if(isFullScreen){initVars();shiftImage(-step,0,e);}}\nif(e.keyCode===38){if(isFullScreen){initVars();shiftImage(0,step,e);}}\nif(e.keyCode===37){if(isFullScreen){initVars();shiftImage(step,0,e);}}\nif(e.keyCode===40){if(isFullScreen){e.preventDefault();initVars();shiftImage(0,-step,e);}}}\nif(e.keyCode===27&&isFullScreen&&allowZoomOut){$(gallerySelector).data('fotorama').cancelFullScreen();}};$(document).on('keydown',keyboardNavigation);$(document).on(isTouchEnabled?'touchend':'mouseup pointerup MSPointerUp',function(e){if(gallery.fullScreen){if($image.offset()&&$image.width()>$imageContainer.width()){endX=$image.offset().left;}\nisDragActive=false;$image.removeClass(imageDraggableClass);}});$(window).off('resize',resizeHandler);$(window).on('resize',{$image:$image,fotorama:fotorama},resizeHandler);}\nhideMagnifier=function(){$(magnifierSelector).empty().hide();$(magnifierZoomSelector).remove();};function checkForVideo($stageFrame){return $stageFrame.hasClass(videoContainerClass);}\nfunction behaveOnDrag(e,initPos){var pos=[e.pageX,e.pageY],isArrow=$(e.target).data('gallery-role')==='arrow',isClick=initPos[0]===pos[0]&&initPos[1]===pos[1],isImg=$(e.target).parent().data('active');if(isArrow||isImg&&!isClick){hideMagnifier();}}\nif(config.magnifierOpts.enabled){$(element).on('pointerdown mousedown MSPointerDown',function(e){var pos=[e.pageX,e.pageY];$(element).on('mousemove pointermove MSPointerMove',function(ev){navigator.msPointerEnabled?hideMagnifier():behaveOnDrag(ev,pos);});$(document).on('mouseup pointerup MSPointerUp',function(){$(element).off('mousemove pointermove MSPointerMove');});});}\n$.extend(config.magnifierOpts,{zoomable:false,thumb:'.fotorama__img',largeWrapper:'[data-gallery-role=\"magnifier\"]',height:config.magnifierOpts.height||function(){return $('[data-active=\"true\"]').height();},width:config.magnifierOpts.width||function(){var productMedia=$(gallerySelector).parent().parent();return productMedia.parent().width()-productMedia.width()-20;},left:config.magnifierOpts.left||function(){return $(gallerySelector).offset().left+$(gallerySelector).width()+20;},top:config.magnifierOpts.top||function(){return $(gallerySelector).offset().top;}});$(element).on('fotorama:load fotorama:showend fotorama:fullscreenexit fotorama:ready',function(e,fotorama){var $activeStageFrame=$(gallerySelector).data('fotorama').activeFrame.$stageFrame;if(!$activeStageFrame.find(magnifierZoomSelector).length){hideMagnifier();if(config.magnifierOpts){config.magnifierOpts.large=$(gallerySelector).data('fotorama').activeFrame.img;config.magnifierOpts.full=fotorama.data[fotorama.activeIndex].original;!checkForVideo($activeStageFrame)&&$($activeStageFrame).magnify(config.magnifierOpts);}}});$(element).on('gallery:loaded',function(e){var $prevImage;$(element).find(gallerySelector).on('fotorama:ready',function(e,fotorama){var $zoomIn=$(zoomInButtonSelector),$zoomOut=$(zoomOutButtonSelector);if(!$zoomIn.hasClass(zoomInLoaded)){$zoomIn.on('click touchstart',zoomIn);$zoomIn.on('mousedown',function(e){e.stopPropagation();});$zoomIn.on('keyup',function(e){if(e.keyCode===13){zoomIn(e);}});$(window).on('keyup',function(e){if(e.keyCode===107||fotorama.fullscreen){zoomIn(e);}});$zoomIn.addClass(zoomInLoaded);}\nif(!$zoomOut.hasClass(zoomOutLoaded)){$zoomOut.on('click touchstart',zoomOut);$zoomOut.on('mousedown',function(e){e.stopPropagation();});$zoomOut.on('keyup',function(e){if(e.keyCode===13){zoomOut(e);}});$(window).on('keyup',function(e){if(e.keyCode===109||fotorama.fullscreen){zoomOut(e);}});$zoomOut.addClass(zoomOutLoaded);}}).on('fotorama:fullscreenenter fotorama:showend',function(e,fotorama){hideMagnifier();if(!$(fullscreenImageSelector).is($prevImage)){resetVars($(fullscreenImageSelector));}\nmagnifierFullscreen(fotorama);mousewheel(e,fotorama,element);if($prevImage){calculateMinSize($prevImage);if(!$(fullscreenImageSelector).is($prevImage)){resetVars($prevImage);}}\ntoggleStandartNavigation();}).on('fotorama:load',function(e,fotorama){if($(gallerySelector).data('fotorama').fullScreen){toggleZoomButtons($(fullscreenImageSelector),isTouchEnabled,checkForVideo(fotorama.activeFrame.$stageFrame));}\nmagnifierFullscreen(fotorama);}).on('fotorama:show',function(e,fotorama){$prevImage=_.clone($(fullscreenImageSelector));hideMagnifier();}).on('fotorama:fullscreenexit',function(e,fotorama){resetVars($(fullscreenImageSelector));hideMagnifier();hideZoomControls(true);});});return config;};});","Magento_GiftMessage/js/gift-options.min.js":"define(['jquery','jquery-ui-modules/widget'],function($){'use strict';$.widget('mage.giftOptions',{options:{mageError:'mage-error',noDisplay:'no-display',requiredEntry:'required-entry'},_init:function(){this._toggleVisibility();},_create:function(){this.element.on('click',$.proxy(this._toggleVisibility,this));$(this.element.data('selector').id).find('.giftmessage-area').on('change',$.proxy(this._toggleRequired,this));},_toggleVisibility:function(event){var checkbox=event?$(event.target):this.element,container=$(checkbox.data('selector').id),_this;if(checkbox.is(':checked')){container.show().find('.giftmessage-area:not(:visible)').each(function(x,element){if($(element).val().length>0){$(element).trigger('change');container.find('a').trigger('click');}});}else{_this=this;container.hide().find('.input-text:not(.giftmessage-area)').each(function(x,element){$(element).val(element.defaultValue).removeClass(_this.options.mageError).next('div.'+_this.options.mageError).remove();}).end().find('.giftmessage-area').val('').change().end().find('.select').val('').change().end().find('.checkbox:checked').prop('checked',false).trigger('click').prop('checked',false).end().find('.price-box').addClass(this.options.noDisplay).end();}},_toggleRequired:function(event){var textArea=$(event.target),length=textArea.val().length;textArea.closest('li').prev('.fields').find('.input-text').toggleClass(this.options.requiredEntry,length>0);}});return $.mage.giftOptions;});","Magento_GiftMessage/js/view/gift-message.min.js":"define(['uiComponent','Magento_GiftMessage/js/model/gift-message','Magento_GiftMessage/js/model/gift-options','Magento_GiftMessage/js/action/gift-options'],function(Component,GiftMessage,giftOptions,giftOptionsService){'use strict';return Component.extend({formBlockVisibility:null,resultBlockVisibility:null,model:{},initialize:function(){var self=this,model;this._super().observe('formBlockVisibility').observe({'resultBlockVisibility':false});this.itemId=this.itemId||'orderLevel';model=new GiftMessage(this.itemId);this.model=model;this.isResultBlockVisible();giftOptions.addOption(model);this.model.getObservable('isClear').subscribe(function(value){if(value==true){self.formBlockVisibility(false);self.model.getObservable('alreadyAdded')(true);}});},isResultBlockVisible:function(){var self=this;if(this.model.getObservable('alreadyAdded')()){this.resultBlockVisibility(true);}\nthis.model.getObservable('additionalOptionsApplied').subscribe(function(value){if(value==true){self.resultBlockVisibility(true);}});},getObservable:function(key){return this.model.getObservable(key);},toggleFormBlockVisibility:function(){if(!this.model.getObservable('alreadyAdded')()){this.formBlockVisibility(!this.formBlockVisibility());}else{this.resultBlockVisibility(!this.resultBlockVisibility());}},editOptions:function(){this.resultBlockVisibility(false);this.formBlockVisibility(true);},deleteOptions:function(){giftOptionsService(this.model,true);},hideFormBlock:function(){this.formBlockVisibility(false);if(this.model.getObservable('alreadyAdded')()){this.resultBlockVisibility(true);}},hasActiveOptions:function(){var regionData=this.getRegion('additionalOptions'),options=regionData(),i;for(i=0;i<options.length;i++){if(options[i].isActive()){return true;}}\nreturn false;},isActive:function(){return this.model.isGiftMessageAvailable();},submitOptions:function(){giftOptionsService(this.model);}});});","Magento_GiftMessage/js/model/gift-message.min.js":"define(['uiElement','underscore','mage/url'],function(uiElement,_,url){'use strict';var provider=uiElement();return function(itemId){var model={id:'message-'+itemId,itemId:itemId,observables:{},additionalOptions:[],submitParams:['recipient','sender','message'],initialize:function(){var message=false;this.getObservable('alreadyAdded')(false);if(this.itemId=='orderLevel'){message=window.giftOptionsConfig.giftMessage.hasOwnProperty(this.itemId)?window.giftOptionsConfig.giftMessage[this.itemId]:null;}else{message=window.giftOptionsConfig.giftMessage.hasOwnProperty('itemLevel')&&window.giftOptionsConfig.giftMessage.itemLevel.hasOwnProperty(this.itemId)?window.giftOptionsConfig.giftMessage.itemLevel[this.itemId].message:null;}\nif(_.isObject(message)){this.getObservable('recipient')(message.recipient);this.getObservable('sender')(message.sender);this.getObservable('message')(message.message);this.getObservable('alreadyAdded')(true);}},getObservable:function(key){this.initObservable(this.id,key);return provider[this.getUniqueKey(this.id,key)];},initObservable:function(node,key){if(node&&!this.observables.hasOwnProperty(node)){this.observables[node]=[];}\nif(key&&this.observables[node].indexOf(key)===-1){this.observables[node].push(key);provider.observe(this.getUniqueKey(node,key));}},getUniqueKey:function(node,key){return node+'-'+key;},getConfigValue:function(key){return window.giftOptionsConfig.hasOwnProperty(key)?window.giftOptionsConfig[key]:null;},reset:function(){this.getObservable('isClear')(true);},getAfterSubmitCallbacks:function(){var callbacks=[];callbacks.push(this.afterSubmit);_.each(this.additionalOptions,function(option){if(_.isFunction(option.afterSubmit)){callbacks.push(option.afterSubmit);}});return callbacks;},afterSubmit:function(){window.location.href=url.build('checkout/cart/updatePost')+'?form_key='+window.checkoutConfig.formKey+'&cart[]';},getSubmitParams:function(remove){var params={},self=this;_.each(this.submitParams,function(key){var observable=provider[self.getUniqueKey(self.id,key)];if(_.isFunction(observable)){params[key]=remove?null:observable();}});if(this.additionalOptions.length){params['extension_attributes']={};}\n_.each(this.additionalOptions,function(option){if(_.isFunction(option.getSubmitParams)){params['extension_attributes']=_.extend(params['extension_attributes'],option.getSubmitParams(remove));}});return params;},isGiftMessageAvailable:function(){var isGloballyAvailable,giftMessageConfig,itemConfig;if(this.itemId==='orderLevel'){return this.getConfigValue('isOrderLevelGiftOptionsEnabled');}\nisGloballyAvailable=this.getConfigValue('isItemLevelGiftOptionsEnabled');giftMessageConfig=window.giftOptionsConfig.giftMessage;itemConfig=giftMessageConfig.hasOwnProperty('itemLevel')&&giftMessageConfig.itemLevel.hasOwnProperty(this.itemId)?giftMessageConfig.itemLevel[this.itemId]:{};return itemConfig.hasOwnProperty('is_available')?itemConfig['is_available']:isGloballyAvailable;}};model.initialize();return model;};});","Magento_GiftMessage/js/model/gift-options.min.js":"define(['underscore','ko'],function(_,ko){'use strict';return{options:ko.observableArray([]),addOption:function(option){if(!this.options().hasOwnProperty(option.itemId)){this.options.push({id:option.itemId,value:option});}},getOptionByItemId:function(itemId){var option=null;_.each(this.options(),function(data){if(data.id===itemId){option=data.value;return false;}});return option;}};});","Magento_GiftMessage/js/model/url-builder.min.js":"define(['jquery','Magento_Checkout/js/model/url-builder'],function($,urlBuilder){'use strict';return $.extend(urlBuilder,{storeCode:window.giftOptionsConfig.storeCode});});","Magento_GiftMessage/js/action/gift-options.min.js":"define(['Magento_GiftMessage/js/model/url-builder','mage/storage','Magento_Ui/js/model/messageList','Magento_Checkout/js/model/error-processor','mage/url','Magento_Checkout/js/model/quote','underscore'],function(urlBuilder,storage,messageList,errorProcessor,url,quote,_){'use strict';return function(giftMessage,remove){var serviceUrl;url.setBaseUrl(giftMessage.getConfigValue('baseUrl'));if(giftMessage.getConfigValue('isCustomerLoggedIn')){serviceUrl=urlBuilder.createUrl('/carts/mine/gift-message',{});if(giftMessage.itemId!='orderLevel'){serviceUrl=urlBuilder.createUrl('/carts/mine/gift-message/:itemId',{itemId:giftMessage.itemId});}}else{serviceUrl=urlBuilder.createUrl('/guest-carts/:cartId/gift-message',{cartId:quote.getQuoteId()});if(giftMessage.itemId!='orderLevel'){serviceUrl=urlBuilder.createUrl('/guest-carts/:cartId/gift-message/:itemId',{cartId:quote.getQuoteId(),itemId:giftMessage.itemId});}}\nmessageList.clear();storage.post(serviceUrl,JSON.stringify({'gift_message':giftMessage.getSubmitParams(remove)})).done(function(){giftMessage.reset();_.each(giftMessage.getAfterSubmitCallbacks(),function(callback){if(_.isFunction(callback)){callback();}});}).fail(function(response){errorProcessor.process(response);});};});","Magento_Fedex/js/view/shipping-rates-validation.min.js":"define(['uiComponent','Magento_Checkout/js/model/shipping-rates-validator','Magento_Checkout/js/model/shipping-rates-validation-rules','Magento_Fedex/js/model/shipping-rates-validator','Magento_Fedex/js/model/shipping-rates-validation-rules'],function(Component,defaultShippingRatesValidator,defaultShippingRatesValidationRules,fedexShippingRatesValidator,fedexShippingRatesValidationRules){'use strict';defaultShippingRatesValidator.registerValidator('fedex',fedexShippingRatesValidator);defaultShippingRatesValidationRules.registerRules('fedex',fedexShippingRatesValidationRules);return Component;});","Magento_Fedex/js/model/shipping-rates-validation-rules.min.js":"define([],function(){'use strict';return{getRules:function(){return{'postcode':{'required':true},'country_id':{'required':true},'city':{'required':true}};}};});","Magento_Fedex/js/model/shipping-rates-validator.min.js":"define(['jquery','mageUtils','Magento_Fedex/js/model/shipping-rates-validation-rules','mage/translate'],function($,utils,validationRules,$t){'use strict';return{validationErrors:[],validate:function(address){var self=this;this.validationErrors=[];$.each(validationRules.getRules(),function(field,rule){var message;if(rule.required&&utils.isEmpty(address[field])){message=$t('Field ')+field+$t(' is required.');self.validationErrors.push(message);}});return!this.validationErrors.length;}};});","Amasty_MessengerWidget/js/view/privacy-policy.min.js":"define(['jquery','ko','uiComponent','mage/cookies'],function($,ko,Component){'use strict';return Component.extend({defaults:{isPopupOpened:false,isPrivacyPolicyAccepted:false,privacyPolicyContent:'',isPrivacyPolicyEnabled:false,links:{'isPopupOpened':'${ $.parentName }:isPrivacyPopupOpened','isPrivacyPolicyAccepted':'${ $.parentName }:isPrivacyPolicyAccepted'},cookieKey:'ammessenger-privacy-policy-accepted'},initialize:function(){this._super();if(!this.isPrivacyPolicyEnabled){this.isPrivacyPolicyAccepted(true);return this;}\nthis.isPrivacyPolicyAccepted(this.getPrivacyPolicyAcceptState());$(document).keydown(function(event){if(event.keyCode===27){this.closePopup();}}.bind(this));return this;},initObservable:function(){this._super().observe(['isPopupOpened','isPrivacyPolicyAccepted','isEnabled']);return this;},openPopup:function(){this.isPopupOpened(true);},closePopup:function(){this.isPopupOpened(false);},acceptPrivacyPolicy:function(){var currentDate=new Date();$.mage.cookies.set(this.cookieKey,true,{expires:new Date(currentDate.setDate(currentDate.getDate()+365))});this.isPrivacyPolicyAccepted(true);this.closePopup();},getPrivacyPolicyAcceptState:function(){return $.mage.cookies.get(this.cookieKey);}});});","Amasty_MessengerWidget/js/view/messenger-widget.min.js":"define(['ko','uiComponent'],function(ko,Component){'use strict';return Component.extend({defaults:{widgetPosition:'',widgetPositionCss:'-bottom -left',widgetCssModifiers:'',openedState:false,isPrivacyPopupOpened:false,isPrivacyPolicyAccepted:false,cssModifiers:{openedState:'-opened',maxCircleMessengers:5,circleOpenedView:'-drop-circle',lineOpenedView:'-drop-line'},messengers:[],imports:{isPrivacyPolicyEnabled:'${ $.name }.ammessenger-privacy-policy:isPrivacyPolicyEnabled'}},initialize:function(){this._super();this.setWidgetPosition();return this;},initObservable:function(){this._super().observe(['widgetPositionCss','openedState','isPrivacyPopupOpened','isPrivacyPolicyAccepted']);this.widgetCssModifiers=ko.pureComputed(function(){var openedStatus=this.openedState()?' '+this.cssModifiers.openedState:'';return this.getWidgetCssModifiers()+openedStatus;},this);return this;},setWidgetPosition:function(){switch(this.widgetPosition){case'top-left':this.widgetPositionCss('-top -left');break;case'top-right':this.widgetPositionCss('-top -right');break;case'center-left':this.widgetPositionCss('-center -left');break;case'center-right':this.widgetPositionCss('-center -right');break;case'bottom-left':this.widgetPositionCss('-bottom -left');break;case'bottom-right':this.widgetPositionCss('-bottom -right');break;default:this.widgetPositionCss('-bottom -right');}},onMainButtonClick:function(){if(this.isPrivacyPolicyEnabled&&!this.isPrivacyPolicyAccepted()){this.isPrivacyPopupOpened(true);return;}\nif(this.messengers.length>1){this.openedState(!this.openedState());}},onMessengerClick:function(){event.stopPropagation();return true;},getWidgetCssModifiers:function(){var counterModifier,dropModifier;counterModifier=this.messengers.length<=this.cssModifiers.maxCircleMessengers?'-items-'+this.messengers.length:'-items-'+this.cssModifiers.maxCircleMessengers;dropModifier=this.messengers.length>this.cssModifiers.maxCircleMessengers||this.widgetPosition.includes('center')?this.cssModifiers.lineOpenedView:this.cssModifiers.circleOpenedView;return counterModifier+' '+dropModifier;}});});","MGS_AjaxCart/js/config.min.js":"define(['jquery'],function($){\"use strict\";var mgsConfig={requestParamName:'ajax',};mgsConfig.setOptions=function(options){for(var optionName in options){this[optionName]=options[optionName];}};return mgsConfig;});","MGS_AjaxCart/js/ajaxcart.min.js":"define(['uiComponent','Magento_Customer/js/customer-data','jquery','ko','mgsAjaxCartFooter','Magento_Ui/js/modal/modal'],function(Component,customerData,$,ko){'use strict';var sidebarCart=$('[data-block=\"footer_minicart\"]');var addToCartCalls=0;var sidebarInitialized=false;function initSidebar(){if(sidebarCart.data('mageSidebar')){sidebarCart.mgsAjaxCartFooter('update');}\nsidebarCart.trigger('contentUpdated');if(sidebarInitialized){return false;}\nsidebarInitialized=true;sidebarCart.mgsAjaxCartFooter({\"targetElement\":\"#footer-mini-cart\",\"url\":{\"checkout\":window.checkout.checkoutUrl,\"update\":window.checkout.updateItemQtyUrl,\"remove\":window.checkout.removeItemUrl,\"loginUrl\":window.checkout.customerLoginUrl,\"isRedirectRequired\":window.checkout.isRedirectRequired},\"button\":{\"checkout\":\"#footer-cart-btn-checkout\",\"remove\":\".item a.action.delete\",\"close\":\"\"},\"minicart\":{\"list\":\"\",\"content\":\"\",\"qty\":\"\",\"subtotal\":\"\"},\"item\":{\"qty\":\"input.cart-item-qty\",\"button\":\"button.update-cart-item\"},\"confirmMessage\":$.mage.__('Are you sure you would like to remove this item from the shopping cart?')});}\nreturn Component.extend({ajaxcart:ko.observable({}),toggleFooterSidebar:function(){$('#footer-cart-trigger').toggleClass('active');$('#footer-mini-cart').slideToggle(300);},initSidebar:initSidebar,initialize:function(){var self=this;this._super();this.cartSidebar=customerData.get('cart');window.cartSidebar=self.cartSidebar;$('#fixed-cart-footer').show();initSidebar();this.cartSidebar.subscribe(function(){addToCartCalls--;sidebarInitialized=false;initSidebar();},this);$('[data-block=\"minicart\"]').on('contentLoading',function(event){addToCartCalls++;});},});});","MGS_AjaxCart/js/footer.min.js":"define([\"jquery\",'Magento_Customer/js/model/authentication-popup','Magento_Customer/js/customer-data','Magento_Ui/js/modal/alert','Magento_Ui/js/modal/confirm',\"jquery/ui\",\"mage/decorate\"],function($,authenticationPopup,customerData,alert,confirm){$.widget('mage.mgsAjaxCartFooter',{options:{isRecursive:true,maxItemsVisible:3},scrollHeight:0,_create:function(){this._initContent();},update:function(){$(this.options.targetElement).trigger('contentUpdated');this._calcHeight();this._isOverflowed();},_initContent:function(){var self=this,events={};this.element.decorate('list',this.options.isRecursive);events['click '+this.options.button.checkout]=$.proxy(function(){var cart=customerData.get('cart'),customer=customerData.get('customer');if(!customer().firstname&&!cart().isGuestCheckoutAllowed){if(this.options.url.isRedirectRequired){location.href=this.options.url.loginUrl;}else{authenticationPopup.showModal();}\nreturn false;}\nlocation.href=this.options.url.checkout;},this);events['click '+this.options.button.remove]=function(event){event.stopPropagation();confirm({content:self.options.confirmMessage,actions:{confirm:function(){self._removeItem($(event.currentTarget));},always:function(event){event.stopImmediatePropagation();}}});};events['keyup '+this.options.item.qty]=function(event){self._showItemButton($(event.target));};events['click '+this.options.item.button]=function(event){event.stopPropagation();self._updateItemQty($(event.currentTarget));};events['focusout '+this.options.item.qty]=function(event){self._validateQty($(event.currentTarget));};events['click .edit-icon']=function(event){event.stopPropagation();self._showOptions($(event.currentTarget));}\nthis._on(this.element,events);},_isOverflowed:function(){var list=$(this.options.minicart.list),cssOverflowClass='overflowed';if(this.scrollHeight>list.innerHeight()){list.parent().addClass(cssOverflowClass);}else{list.parent().removeClass(cssOverflowClass);}},_showItemButton:function(elem){var itemId=elem.data('cart-item');var itemQty=elem.data('item-qty');if(this._isValidQty(itemQty,elem.val())){$('#ft-update-cart-item-'+itemId).show('fade',300);}else if(elem.val()==0){this._hideItemButton(elem);}else{this._hideItemButton(elem);}},_isValidQty:function(origin,changed){return(origin!=changed)&&(changed.length>0)&&(changed-0==changed)&&(changed-0>0);},_validateQty:function(elem){var itemQty=elem.data('item-qty');if(!this._isValidQty(itemQty,elem.val())){elem.val(itemQty);}},_hideItemButton:function(elem){var itemId=elem.data('cart-item');$('#ft-update-cart-item-'+itemId).hide('fade',300);},_updateItemQty:function(elem){var itemId=elem.data('cart-item');this._ajax(this.options.url.update,{item_id:itemId,item_qty:$('#ft-cart-item-'+itemId+'-qty').val()},elem,this._updateItemQtyAfter);},_updateItemQtyAfter:function(elem){this._hideItemButton(elem);},_removeItem:function(elem){var itemId=elem.data('cart-item');this._ajax(this.options.url.remove,{item_id:itemId},elem,this._removeItemAfter);},_removeItemAfter:function(elem,response){},_ajax:function(url,data,elem,callback){$.extend(data,{'form_key':$.mage.cookies.get('form_key')});$.ajax({url:url,data:data,type:'post',dataType:'json',context:this,beforeSend:function(){elem.attr('disabled','disabled');},complete:function(){elem.attr('disabled',null);}}).done(function(response){if(response.success){callback.call(this,elem,response);}else{var msg=response.error_message;if(msg){alert({content:$.mage.__(msg)});}}}).fail(function(error){console.log(JSON.stringify(error));});},_showOptions:function(elem){var $elemTarget=elem.parent().parent();var $optionTarget=$elemTarget.find('.item-actions');var $listItem=$elemTarget.parent();if($optionTarget.hasClass('show-actions')){$optionTarget.removeClass('show-actions');}else{$listItem.find('div.item-actions.show-actions').removeClass('show-actions');$optionTarget.addClass('show-actions');}},_calcHeight:function(){var self=this,height=0,counter=this.options.maxItemsVisible,target=$(this.options.minicart.list);target.children().each(function(){var outerHeight=$(this).outerHeight();if(counter-->0){height+=outerHeight;}\nself.scrollHeight+=outerHeight;});target.height(height);}});return $.mage.mgsAjaxCartFooter;});","MGS_AjaxCart/js/action.min.js":"define(['jquery','MGS_AjaxCart/js/config','Magento_Ui/js/modal/modal','magnificPopup'],function($,mgsConfig,modal){\"use strict\";jQuery.widget('mgs.action',{options:{requestParamName:mgsConfig.requestParamName},fire:function(tag,actionId,url,data,redirectToCatalog){this._fire(tag,actionId,url,data);},_fire:function(tag,actionId,url,data){var textCart=$.mage.__('Add To Cart');var self=this;data.push({name:this.options.requestParamName,value:1});jQuery.ajax({url:url,data:jQuery.param(data),type:'post',dataType:'json',beforeSend:function(xhr,options){if(mgsConfig.animationType){jQuery('#mgs-ajax-loading').show();}else{if(tag.find('.tocart').length){tag.find('.tocart').addClass('disabled');tag.find('.tocart .icon').removeClass('pe-7s-shopbag');tag.find('.tocart .icon').addClass('fa-spin pe-7s-config');tag.find('.tocart .text').text('Adding...');tag.find('.tocart').attr('title','Adding...');tag.attr('title','Adding...');}else{tag.addClass('disabled');tag.attr('title','Adding...');}}},success:function(response,status){if(tag.find('.tocart').length){tag.find('.tocart').removeClass('disabled');tag.find('.tocart .text').text(textCart);tag.find('.tocart .icon').removeClass('pe-7s-config');tag.find('.tocart .icon').removeClass('fa-spin');tag.find('.tocart .icon').addClass('pe-7s-shopbag');if(tag.closest('.product-item-info').length){$source=tag.closest('.product-item-info');var width=$source.outerWidth();var height=$source.outerHeight();}else{$source=tag.find('.tocart');var width=300;var height=300;}}else{tag.removeClass('disabled');tag.find('.icon').removeClass('fa-spin');tag.find('.text').text(textCart);tag.find('.icon').removeClass('pe-7s-config');tag.find('.icon').addClass('pe-7s-shopbag');$source=tag.closest('.product-item-info');var width=$source.outerWidth();var height=$source.outerHeight();}\nif(status=='success'){if(response.backUrl){data.push({name:'action_url',value:response.backUrl});self._fire(tag,actionId,response.backUrl,data);}else{if(response.ui){if(response.productView){if(!response.lisProduct&&CATALOG_CHECK==2){$(\"#product-addtocart-button > span\").text('Add to cart');return;}\n$.ajax({url:response.ui,dataType:'json',success:function(result){jQuery('#mgs-ajax-loading').hide();if(result.product_detail){$('body').append('<div id=\"ajaxcart_form_popup'+result.id_product+'\" class=\"product_quickview_content\"></div>');var options={type:'popup',modalClass:\"ajaxCartForm viewBox\",responsive:true,innerScroll:true,title:false,buttons:false};var popup=modal(options,$('#ajaxcart_form_popup'+result.id_product));$('#ajaxcart_form_popup'+result.id_product).html(result.product_detail);$('#ajaxcart_form_popup'+result.id_product).trigger('contentUpdated');$('#ajaxcart_form_popup'+result.id_product).modal('openModal').on('modalclosed',function(){$('#ajaxcart_form_popup'+result.id_product).parents('.ajaxCartForm').remove();$('body:not(.origin-catalog-product-view)').removeClass('catalog-product-view');$('body').css('overflow','auto');});}}});}else{jQuery('#mgs-ajax-loading').hide();if(response.animationType=='popup'){$('.page.messages').hide();$('body').append('<div id=\"popup_ajaxcart_success\" class=\"popup__main popup--result\"></div>');var options={type:'popup',modalClass:\"success-ajax--popup viewBox\",responsive:true,innerScroll:true,title:false,buttons:false};var popup=modal(options,$('#popup_ajaxcart_success'));if(response.related!=\"\"){$('.success-ajax--popup .modal-inner-wrap').addClass('popup-related');}\n$('#popup_ajaxcart_success').html(response.ui+response.related);$('#popup_ajaxcart_success').trigger('contentUpdated');$('#popup_ajaxcart_success').modal('openModal').on('modalclosed',function(){$('#popup_ajaxcart_success').parents('.success-ajax--popup').remove();});setTimeout(function(){$('.page.messages .message').hide();$('.page.messages').show();},2000);}else if(response.animationType=='flycart'){var $source='';if(tag.find('.tocart').length){if(tag.closest('.product-item-info').length){$source=tag.closest('.product-item-info');}else{$source=tag.find('.tocart');}}else{tag.removeClass('disabled');$source=tag.closest('.product-item-info');}\nvar $animatedObject=jQuery('<div class=\"flycart-animated-add\" style=\"position: absolute;z-index: 99999;\">'+response.image+'</div>');var $_left=$source.offset().left-1;var $_top=$source.offset().top-1;$animatedObject.css({top:$_top,left:$_left});jQuery('html').append($animatedObject);if(jQuery(window).width()>767){var gotoX=jQuery(\"#fixed-cart-footer\").offset().left+20;var gotoY=jQuery(\"#fixed-cart-footer\").offset().top;jQuery('#footer-cart-trigger').addClass('active');jQuery('#footer-mini-cart').slideDown(300);}else{var gotoX=jQuery(\"#cart-top-action\").offset().left;var gotoY=jQuery(\"#cart-top-action\").offset().top;}\n$animatedObject.animate({opacity:0.6,left:gotoX,top:gotoY},2000,function(){$animatedObject.remove();});}else{$('.product_quickview_content').modal('closeModal');$(\"header.page-header\").addClass(\"show-sticky-menu\");$('[data-block=\"minicart\"]').find('[data-role=\"dropdownDialog\"]').dropdownDialog(\"open\");}}}}}},error:function(){jQuery('#mgs-ajax-loading').hide();window.location.href=mgsConfig.redirectCartUrl;}});}});return jQuery.mgs.action;});","MGS_AjaxCart/js/action/product-add-to-cart.min.js":"require(['jquery','Magento_Ui/js/modal/modal',],function($,modal){jQuery('#product-addtocart-button').on('click',function(){var form=jQuery('#product_addtocart_form');var isValid=form.valid();if(isValid){jQuery(this).addClass('disabled tocart-loading');var data=form.serializeArray();data.push({name:'ajax',value:1});jQuery.ajax({url:form.attr('action'),data:jQuery.param(data),type:'post',dataType:'json',beforeSend:function(xhr,options){jQuery('#mgs-ajax-loading').show();},success:function(response,status){if(status=='success'){if(response.ui){jQuery('#mgs-ajax-loading').hide();if(response.animationType=='popup'){$('.page.messages').hide();if($(document).find('.ajaxCartForm').length){$(document).find('.ajaxCartForm .modal-header .action-close').trigger('click');}\n$('body').append('<div id=\"popup_ajaxcart_success\" class=\"popup__main popup--result\"></div>');var options={type:'popup',modalClass:\"success-ajax--popup viewBox\",responsive:true,innerScroll:true,title:false,buttons:false};var popup=modal(options,$('#popup_ajaxcart_success'));$('#popup_ajaxcart_success').html(response.ui+response.related);$('#popup_ajaxcart_success').trigger('contentUpdated');$('#popup_ajaxcart_success').modal('openModal').on('modalclosed',function(){$('#popup_ajaxcart_success').parents('.success-ajax--popup').remove();});setTimeout(function(){$('.page.messages .message').hide();$('.page.messages').show();},2000);}else if(response.animationType=='flycart'){var $animatedObject=jQuery('<div class=\"flycart-animated-add\" style=\"position: absolute;z-index: 99999;\">'+response.image+'</div>');var left=$_this.offset().left;var top=$_this.offset().top;$animatedObject.css({top:top-1,left:left-1});jQuery('html').append($animatedObject);jQuery('#footer-cart-trigger').addClass('active');jQuery('#footer-mini-cart').slideDown(300);var gotoX=jQuery(\"#fixed-cart-footer\").offset().left+20;var gotoY=jQuery(\"#fixed-cart-footer\").offset().top;if($(document).find('.ajaxCartForm').length){$(document).find('.ajaxCartForm .modal-header .action-close').trigger('click');}\n$animatedObject.animate({opacity:0.6,left:gotoX,top:gotoY},2000,function(){$animatedObject.fadeOut('fast',function(){$animatedObject.remove();jQuery('html').removeClass('add-item-success');});});}else{$('.product_quickview_content').modal('closeModal');$(\"header.page-header\").addClass(\"show-sticky-menu\");$('[data-block=\"minicart\"]').find('[data-role=\"dropdownDialog\"]').dropdownDialog(\"open\");setTimeout(function(){$(\"header.page-header\").removeClass(\"show-sticky-menu\");$('[data-block=\"minicart\"]').find('[data-role=\"dropdownDialog\"]').dropdownDialog(\"close\");},5000);$(\"#product-addtocart-button > span\").text('Add to cart');}}else{window.location.reload(true);}}}});return false;}});});","MGS_AjaxCart/js/action/widget-add-to-cart.min.js":"define(['jquery','MGS_AjaxCart/js/config','MGS_AjaxCart/js/action'],function($,mgsConfig){\"use strict\";jQuery.widget('mgs.widgetAddToCart',jQuery.mgs.action,{options:{formKey:''},_create:function(){var self=this;this._super();this.element.one('mouseup',function(){if(!self.element.closest('form').is(\":data('mgsCatalogAddToCart')\")){self.element.off('click');self._on({'click':self.onClick});}});},getActionId:function(){return'widget-add-to-cart-'+jQuery.now()},onClick:function(event){event.preventDefault();event.stopImmediatePropagation();var postData=this.element.data('post');if(postData){this.fire(this.element,this.getActionId(),postData.action,this._preparePostData(postData));}else if(this.element.is(\":data('mageRedirectUrl')\")){var url=this.element.redirectUrl('option','url');if(url){this.fire(this.element,this.getActionId(),url,this._preparePostData({action:url}));}}},_preparePostData:function(postData){var result=[];var data=postData.data||{};for(var name in data){result.push({'name':name,'value':data[name]});}\nresult.push({name:'action_url',value:postData.action});result.push({name:'form_key',value:this.options.formKey});return result;}});return jQuery.mgs.widgetAddToCart;});","MGS_AjaxCart/js/action/catalog-add-to-cart.min.js":"define(['jquery','MGS_AjaxCart/js/config','MGS_AjaxCart/js/action',],function($,modal){\"use strict\";jQuery.widget('mgs.catalogAddToCart',jQuery.mgs.action,{options:{bindSubmit:true,redirectToCatalog:false},_create:function(){if(this.options.bindSubmit){this._super();this._on({'submit':function(event){event.preventDefault();var data=this.element.serializeArray();data.push({name:'action_url',value:this.element.attr('action')});this.fire(this.element,this.getActionId(),this.element.attr('action'),data,this.options.redirectToCatalog);}});}},getActionId:function(){return'catalog-add-to-cart-'+jQuery.now()}});return jQuery.mgs.catalogAddToCart;});","MGS_AjaxCart/js/lib/magnific-popup.min.js":"/*! Magnific Popup - v1.1.0 - 2016-02-20\n* http://dimsemenov.com/plugins/magnific-popup/\n* Copyright (c) 2016 Dmitry Semenov; */!function(a){\"function\"==typeof define&&define.amd?define([\"jquery\"],a):a(\"object\"==typeof exports?require(\"jquery\"):window.jQuery||window.Zepto)}(function(a){var b,c,d,e,f,g,h=\"Close\",i=\"BeforeClose\",j=\"AfterClose\",k=\"BeforeAppend\",l=\"MarkupParse\",m=\"Open\",n=\"Change\",o=\"mfp\",p=\".\"+o,q=\"mfp-ready\",r=\"mfp-removing\",s=\"mfp-prevent-close\",t=function(){},u=!!window.jQuery,v=a(window),w=function(a,c){b.ev.on(o+a+p,c)},x=function(b,c,d,e){var f=document.createElement(\"div\");return f.className=\"mfp-\"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},y=function(c,d){b.ev.triggerHandler(o+c,d),b.st.callbacks&&(c=c.charAt(0).toLowerCase()+c.slice(1),b.st.callbacks[c]&&b.st.callbacks[c].apply(b,a.isArray(d)?d:[d]))},z=function(c){return c===g&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=a(b.st.closeMarkup.replace(\"%title%\",b.st.tClose)),g=c),b.currTemplate.closeBtn},A=function(){a.magnificPopup.instance||(b=new t,b.init(),a.magnificPopup.instance=b)},B=function(){var a=document.createElement(\"p\").style,b=[\"ms\",\"O\",\"Moz\",\"Webkit\"];if(void 0!==a.transition)return!0;for(;b.length;)if(b.pop()+\"Transition\"in a)return!0;return!1};t.prototype={constructor:t,init:function(){var c=navigator.appVersion;b.isLowIE=b.isIE8=document.all&&!document.addEventListener,b.isAndroid=/android/gi.test(c),b.isIOS=/iphone|ipad|ipod/gi.test(c),b.supportsTransition=B(),b.probablyMobile=b.isAndroid||b.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),d=a(document),b.popupsCache={}},open:function(c){var e;if(c.isObj===!1){b.items=c.items.toArray(),b.index=0;var g,h=c.items;for(e=0;e<h.length;e++)if(g=h[e],g.parsed&&(g=g.el[0]),g===c.el[0]){b.index=e;break}}else b.items=a.isArray(c.items)?c.items:[c.items],b.index=c.index||0;if(b.isOpen)return void b.updateItemHTML();b.types=[],f=\"\",c.mainEl&&c.mainEl.length?b.ev=c.mainEl.eq(0):b.ev=d,c.key?(b.popupsCache[c.key]||(b.popupsCache[c.key]={}),b.currTemplate=b.popupsCache[c.key]):b.currTemplate={},b.st=a.extend(!0,{},a.magnificPopup.defaults,c),b.fixedContentPos=\"auto\"===b.st.fixedContentPos?!b.probablyMobile:b.st.fixedContentPos,b.st.modal&&(b.st.closeOnContentClick=!1,b.st.closeOnBgClick=!1,b.st.showCloseBtn=!1,b.st.enableEscapeKey=!1),b.bgOverlay||(b.bgOverlay=x(\"bg\").on(\"click\"+p,function(){b.close()}),b.wrap=x(\"wrap\").attr(\"tabindex\",-1).on(\"click\"+p,function(a){b._checkIfClose(a.target)&&b.close()}),b.container=x(\"container\",b.wrap)),b.contentContainer=x(\"content\"),b.st.preloader&&(b.preloader=x(\"preloader\",b.container,b.st.tLoading));var i=a.magnificPopup.modules;for(e=0;e<i.length;e++){var j=i[e];j=j.charAt(0).toUpperCase()+j.slice(1),b[\"init\"+j].call(b)}y(\"BeforeOpen\"),b.st.showCloseBtn&&(b.st.closeBtnInside?(w(l,function(a,b,c,d){c.close_replaceWith=z(d.type)}),f+=\" mfp-close-btn-in\"):b.wrap.append(z())),b.st.alignTop&&(f+=\" mfp-align-top\"),b.fixedContentPos?b.wrap.css({overflow:b.st.overflowY,overflowX:\"hidden\",overflowY:b.st.overflowY}):b.wrap.css({top:v.scrollTop(),position:\"absolute\"}),(b.st.fixedBgPos===!1||\"auto\"===b.st.fixedBgPos&&!b.fixedContentPos)&&b.bgOverlay.css({height:d.height(),position:\"absolute\"}),b.st.enableEscapeKey&&d.on(\"keyup\"+p,function(a){27===a.keyCode&&b.close()}),v.on(\"resize\"+p,function(){b.updateSize()}),b.st.closeOnContentClick||(f+=\" mfp-auto-cursor\"),f&&b.wrap.addClass(f);var k=b.wH=v.height(),n={};if(b.fixedContentPos&&b._hasScrollBar(k)){var o=b._getScrollbarSize();o&&(n.marginRight=o)}b.fixedContentPos&&(b.isIE7?a(\"body, html\").css(\"overflow\",\"hidden\"):n.overflow=\"hidden\");var r=b.st.mainClass;return b.isIE7&&(r+=\" mfp-ie7\"),r&&b._addClassToMFP(r),b.updateItemHTML(),y(\"BuildControls\"),a(\"html\").css(n),b.bgOverlay.add(b.wrap).prependTo(b.st.prependTo||a(document.body)),b._lastFocusedEl=document.activeElement,setTimeout(function(){b.content?(b._addClassToMFP(q),b._setFocus()):b.bgOverlay.addClass(q),d.on(\"focusin\"+p,b._onFocusIn)},16),b.isOpen=!0,b.updateSize(k),y(m),c},close:function(){b.isOpen&&(y(i),b.isOpen=!1,b.st.removalDelay&&!b.isLowIE&&b.supportsTransition?(b._addClassToMFP(r),setTimeout(function(){b._close()},b.st.removalDelay)):b._close())},_close:function(){y(h);var c=r+\" \"+q+\" \";if(b.bgOverlay.detach(),b.wrap.detach(),b.container.empty(),b.st.mainClass&&(c+=b.st.mainClass+\" \"),b._removeClassFromMFP(c),b.fixedContentPos){var e={marginRight:\"\"};b.isIE7?a(\"body, html\").css(\"overflow\",\"\"):e.overflow=\"\",a(\"html\").css(e)}d.off(\"keyup\"+p+\" focusin\"+p),b.ev.off(p),b.wrap.attr(\"class\",\"mfp-wrap\").removeAttr(\"style\"),b.bgOverlay.attr(\"class\",\"mfp-bg\"),b.container.attr(\"class\",\"mfp-container\"),!b.st.showCloseBtn||b.st.closeBtnInside&&b.currTemplate[b.currItem.type]!==!0||b.currTemplate.closeBtn&&b.currTemplate.closeBtn.detach(),b.st.autoFocusLast&&b._lastFocusedEl&&a(b._lastFocusedEl).focus(),b.currItem=null,b.content=null,b.currTemplate=null,b.prevHeight=0,y(j)},updateSize:function(a){if(b.isIOS){var c=document.documentElement.clientWidth/window.innerWidth,d=window.innerHeight*c;b.wrap.css(\"height\",d),b.wH=d}else b.wH=a||v.height();b.fixedContentPos||b.wrap.css(\"height\",b.wH),y(\"Resize\")},updateItemHTML:function(){var c=b.items[b.index];b.contentContainer.detach(),b.content&&b.content.detach(),c.parsed||(c=b.parseEl(b.index));var d=c.type;if(y(\"BeforeChange\",[b.currItem?b.currItem.type:\"\",d]),b.currItem=c,!b.currTemplate[d]){var f=b.st[d]?b.st[d].markup:!1;y(\"FirstMarkupParse\",f),f?b.currTemplate[d]=a(f):b.currTemplate[d]=!0}e&&e!==c.type&&b.container.removeClass(\"mfp-\"+e+\"-holder\");var g=b[\"get\"+d.charAt(0).toUpperCase()+d.slice(1)](c,b.currTemplate[d]);b.appendContent(g,d),c.preloaded=!0,y(n,c),e=c.type,b.container.prepend(b.contentContainer),y(\"AfterChange\")},appendContent:function(a,c){b.content=a,a?b.st.showCloseBtn&&b.st.closeBtnInside&&b.currTemplate[c]===!0?b.content.find(\".mfp-close\").length||b.content.append(z()):b.content=a:b.content=\"\",y(k),b.container.addClass(\"mfp-\"+c+\"-holder\"),b.contentContainer.append(b.content)},parseEl:function(c){var d,e=b.items[c];if(e.tagName?e={el:a(e)}:(d=e.type,e={data:e,src:e.src}),e.el){for(var f=b.types,g=0;g<f.length;g++)if(e.el.hasClass(\"mfp-\"+f[g])){d=f[g];break}e.src=e.el.attr(\"data-mfp-src\"),e.src||(e.src=e.el.attr(\"href\"))}return e.type=d||b.st.type||\"inline\",e.index=c,e.parsed=!0,b.items[c]=e,y(\"ElementParse\",e),b.items[c]},addGroup:function(a,c){var d=function(d){d.mfpEl=this,b._openClick(d,a,c)};c||(c={});var e=\"click.magnificPopup\";c.mainEl=a,c.items?(c.isObj=!0,a.off(e).on(e,d)):(c.isObj=!1,c.delegate?a.off(e).on(e,c.delegate,d):(c.items=a,a.off(e).on(e,d)))},_openClick:function(c,d,e){var f=void 0!==e.midClick?e.midClick:a.magnificPopup.defaults.midClick;if(f||!(2===c.which||c.ctrlKey||c.metaKey||c.altKey||c.shiftKey)){var g=void 0!==e.disableOn?e.disableOn:a.magnificPopup.defaults.disableOn;if(g)if(a.isFunction(g)){if(!g.call(b))return!0}else if(v.width()<g)return!0;c.type&&(c.preventDefault(),b.isOpen&&c.stopPropagation()),e.el=a(c.mfpEl),e.delegate&&(e.items=d.find(e.delegate)),b.open(e)}},updateStatus:function(a,d){if(b.preloader){c!==a&&b.container.removeClass(\"mfp-s-\"+c),d||\"loading\"!==a||(d=b.st.tLoading);var e={status:a,text:d};y(\"UpdateStatus\",e),a=e.status,d=e.text,b.preloader.html(d),b.preloader.find(\"a\").on(\"click\",function(a){a.stopImmediatePropagation()}),b.container.addClass(\"mfp-s-\"+a),c=a}},_checkIfClose:function(c){if(!a(c).hasClass(s)){var d=b.st.closeOnContentClick,e=b.st.closeOnBgClick;if(d&&e)return!0;if(!b.content||a(c).hasClass(\"mfp-close\")||b.preloader&&c===b.preloader[0])return!0;if(c===b.content[0]||a.contains(b.content[0],c)){if(d)return!0}else if(e&&a.contains(document,c))return!0;return!1}},_addClassToMFP:function(a){b.bgOverlay.addClass(a),b.wrap.addClass(a)},_removeClassFromMFP:function(a){this.bgOverlay.removeClass(a),b.wrap.removeClass(a)},_hasScrollBar:function(a){return(b.isIE7?d.height():document.body.scrollHeight)>(a||v.height())},_setFocus:function(){(b.st.focus?b.content.find(b.st.focus).eq(0):b.wrap).focus()},_onFocusIn:function(c){return c.target===b.wrap[0]||a.contains(b.wrap[0],c.target)?void 0:(b._setFocus(),!1)},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),y(l,[b,c,d]),a.each(c,function(c,d){if(void 0===d||d===!1)return!0;if(e=c.split(\"_\"),e.length>1){var f=b.find(p+\"-\"+e[0]);if(f.length>0){var g=e[1];\"replaceWith\"===g?f[0]!==d[0]&&f.replaceWith(d):\"img\"===g?f.is(\"img\")?f.attr(\"src\",d):f.replaceWith(a(\"<img>\").attr(\"src\",d).attr(\"class\",f.attr(\"class\"))):f.attr(e[1],d)}}else b.find(p+\"-\"+c).html(d)})},_getScrollbarSize:function(){if(void 0===b.scrollbarSize){var a=document.createElement(\"div\");a.style.cssText=\"width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;\",document.body.appendChild(a),b.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return b.scrollbarSize}},a.magnificPopup={instance:null,proto:t.prototype,modules:[],open:function(b,c){return A(),b=b?a.extend(!0,{},b):{},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:\"\",preloader:!0,focus:\"\",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:\"auto\",fixedBgPos:\"auto\",overflowY:\"auto\",closeMarkup:'<button title=\"%title%\" type=\"button\" class=\"mfp-close\">&#215;</button>',tClose:\"Close (Esc)\",tLoading:\"Loading...\",autoFocusLast:!0}},a.fn.magnificPopup=function(c){A();var d=a(this);if(\"string\"==typeof c)if(\"open\"===c){var e,f=u?d.data(\"magnificPopup\"):d[0].magnificPopup,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),u?d.data(\"magnificPopup\",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var C,D,E,F=\"inline\",G=function(){E&&(D.after(E.addClass(C)).detach(),E=null)};a.magnificPopup.registerModule(F,{options:{hiddenClass:\"hide\",markup:\"\",tNotFound:\"Content not found\"},proto:{initInline:function(){b.types.push(F),w(h+\".\"+F,function(){G()})},getInline:function(c,d){if(G(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(D||(C=e.hiddenClass,D=x(C),C=\"mfp-\"+C),E=f.after(D).detach().removeClass(C)),b.updateStatus(\"ready\")}else b.updateStatus(\"error\",e.tNotFound),f=a(\"<div>\");return c.inlineElement=f,f}return b.updateStatus(\"ready\"),b._parseMarkup(d,{},c),d}}});var H,I=\"ajax\",J=function(){H&&a(document.body).removeClass(H)},K=function(){J(),b.req&&b.req.abort()};a.magnificPopup.registerModule(I,{options:{settings:null,cursor:\"mfp-ajax-cur\",tError:'<a href=\"%url%\">The content</a> could not be loaded.'},proto:{initAjax:function(){b.types.push(I),H=b.st.ajax.cursor,w(h+\".\"+I,K),w(\"BeforeChange.\"+I,K)},getAjax:function(c){H&&a(document.body).addClass(H),b.updateStatus(\"loading\");var d=a.extend({url:c.src,success:function(d,e,f){var g={data:d,xhr:f};y(\"ParseAjax\",g),b.appendContent(a(g.data),I),c.finished=!0,J(),b._setFocus(),setTimeout(function(){b.wrap.addClass(q)},16),b.updateStatus(\"ready\"),y(\"AjaxContentAdded\")},error:function(){J(),c.finished=c.loadError=!0,b.updateStatus(\"error\",b.st.ajax.tError.replace(\"%url%\",c.src))}},b.st.ajax.settings);return b.req=a.ajax(d),\"\"}}});var L,M=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||\"\"}return\"\"};a.magnificPopup.registerModule(\"image\",{options:{markup:'<div class=\"mfp-figure\"><div class=\"mfp-close\"></div><figure><div class=\"mfp-img\"></div><figcaption><div class=\"mfp-bottom-bar\"><div class=\"mfp-title\"></div><div class=\"mfp-counter\"></div></div></figcaption></figure></div>',cursor:\"mfp-zoom-out-cur\",titleSrc:\"title\",verticalFit:!0,tError:'<a href=\"%url%\">The image</a> could not be loaded.'},proto:{initImage:function(){var c=b.st.image,d=\".image\";b.types.push(\"image\"),w(m+d,function(){\"image\"===b.currItem.type&&c.cursor&&a(document.body).addClass(c.cursor)}),w(h+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),v.off(\"resize\"+p)}),w(\"Resize\"+d,b.resizeImage),b.isLowIE&&w(\"AfterChange\",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css(\"padding-top\"),10)+parseInt(a.img.css(\"padding-bottom\"),10)),a.img.css(\"max-height\",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,L&&clearInterval(L),a.isCheckingImgSize=!1,y(\"ImageHasSize\",a),a.imgHidden&&(b.content&&b.content.removeClass(\"mfp-loading\"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){L&&clearInterval(L),L=setInterval(function(){return d.naturalWidth>0?void b._onImageHasSize(a):(c>200&&clearInterval(L),c++,void(3===c?e(10):40===c?e(50):100===c&&e(500)))},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(\".mfploader\"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus(\"ready\")),c.hasSize=!0,c.loaded=!0,y(\"ImageLoadComplete\")):(e++,200>e?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(\".mfploader\"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus(\"error\",h.tError.replace(\"%url%\",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(\".mfp-img\");if(i.length){var j=document.createElement(\"img\");j.className=\"mfp-img\",c.el&&c.el.find(\"img\").length&&(j.alt=c.el.find(\"img\").attr(\"alt\")),c.img=a(j).on(\"load.mfploader\",f).on(\"error.mfploader\",g),j.src=c.src,i.is(\"img\")&&(c.img=c.img.clone()),j=c.img[0],j.naturalWidth>0?c.hasSize=!0:j.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:M(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(L&&clearInterval(L),c.loadError?(d.addClass(\"mfp-loading\"),b.updateStatus(\"error\",h.tError.replace(\"%url%\",c.src))):(d.removeClass(\"mfp-loading\"),b.updateStatus(\"ready\")),d):(b.updateStatus(\"loading\"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass(\"mfp-loading\"),b.findImageSize(c)),d)}}});var N,O=function(){return void 0===N&&(N=void 0!==document.createElement(\"p\").style.MozTransform),N};a.magnificPopup.registerModule(\"zoom\",{options:{enabled:!1,easing:\"ease-in-out\",duration:300,opener:function(a){return a.is(\"img\")?a:a.find(\"img\")}},proto:{initZoom:function(){var a,c=b.st.zoom,d=\".zoom\";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,j=function(a){var b=a.clone().removeAttr(\"style\").removeAttr(\"class\").addClass(\"mfp-animated-image\"),d=\"all \"+c.duration/1e3+\"s \"+c.easing,e={position:\"fixed\",zIndex:9999,left:0,top:0,\"-webkit-backface-visibility\":\"hidden\"},f=\"transition\";return e[\"-webkit-\"+f]=e[\"-moz-\"+f]=e[\"-o-\"+f]=e[f]=d,b.css(e),b},k=function(){b.content.css(\"visibility\",\"visible\")};w(\"BuildControls\"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css(\"visibility\",\"hidden\"),a=b._getItemToZoom(),!a)return void k();f=j(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){k(),setTimeout(function(){f.remove(),a=f=null,y(\"ZoomAnimationEnded\")},16)},g)},16)}}),w(i+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(a=b._getItemToZoom(),!a)return;f=j(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css(\"visibility\",\"hidden\"),setTimeout(function(){f.css(b._getOffset())},16)}}),w(h+d,function(){b._allowZoom()&&(k(),f&&f.remove(),a=null)})}},_allowZoom:function(){return\"image\"===b.currItem.type},_getItemToZoom:function(){return b.currItem.hasSize?b.currItem.img:!1},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css(\"padding-top\"),10),g=parseInt(d.css(\"padding-bottom\"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(u?d.innerHeight():d[0].offsetHeight)-g-f};return O()?h[\"-moz-transform\"]=h.transform=\"translate(\"+e.left+\"px,\"+e.top+\"px)\":(h.left=e.left,h.top=e.top),h}}});var P=\"iframe\",Q=\"//about:blank\",R=function(a){if(b.currTemplate[P]){var c=b.currTemplate[P].find(\"iframe\");c.length&&(a||(c[0].src=Q),b.isIE8&&c.css(\"display\",a?\"block\":\"none\"))}};a.magnificPopup.registerModule(P,{options:{markup:'<div class=\"mfp-iframe-scaler\"><div class=\"mfp-close\"></div><iframe class=\"mfp-iframe\" src=\"//about:blank\" frameborder=\"0\" allowfullscreen></iframe></div>',srcAction:\"iframe_src\",patterns:{youtube:{index:\"youtube.com\",id:\"v=\",src:\"//www.youtube.com/embed/%id%?autoplay=1\"},vimeo:{index:\"vimeo.com/\",id:\"/\",src:\"//player.vimeo.com/video/%id%?autoplay=1\"},gmaps:{index:\"//maps.google.\",src:\"%id%&output=embed\"}}},proto:{initIframe:function(){b.types.push(P),w(\"BeforeChange\",function(a,b,c){b!==c&&(b===P?R():c===P&&R(!0))}),w(h+\".\"+P,function(){R()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){return e.indexOf(this.index)>-1?(this.id&&(e=\"string\"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace(\"%id%\",e),!1):void 0});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus(\"ready\"),d}}});var S=function(a){var c=b.items.length;return a>c-1?a-c:0>a?c+a:a},T=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule(\"gallery\",{options:{enabled:!1,arrowMarkup:'<button title=\"%title%\" type=\"button\" class=\"mfp-arrow mfp-arrow-%dir%\"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:\"Previous (Left arrow key)\",tNext:\"Next (Right arrow key)\",tCounter:\"%curr% of %total%\"},proto:{initGallery:function(){var c=b.st.gallery,e=\".mfp-gallery\";return b.direction=!0,c&&c.enabled?(f+=\" mfp-gallery\",w(m+e,function(){c.navigateByImgClick&&b.wrap.on(\"click\"+e,\".mfp-img\",function(){return b.items.length>1?(b.next(),!1):void 0}),d.on(\"keydown\"+e,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),w(\"UpdateStatus\"+e,function(a,c){c.text&&(c.text=T(c.text,b.currItem.index,b.items.length))}),w(l+e,function(a,d,e,f){var g=b.items.length;e.counter=g>1?T(c.tCounter,f.index,g):\"\"}),w(\"BuildControls\"+e,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,\"left\")).addClass(s),f=b.arrowRight=a(d.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,\"right\")).addClass(s);e.click(function(){b.prev()}),f.click(function(){b.next()}),b.container.append(e.add(f))}}),w(n+e,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),void w(h+e,function(){d.off(e),b.wrap.off(\"click\"+e),b.arrowRight=b.arrowLeft=null})):!1},next:function(){b.direction=!0,b.index=S(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=S(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=S(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),y(\"LazyLoad\",d),\"image\"===d.type&&(d.img=a('<img class=\"mfp-img\" />').on(\"load.mfploader\",function(){d.hasSize=!0}).on(\"error.mfploader\",function(){d.hasSize=!0,d.loadError=!0,y(\"LazyLoadError\",d)}).attr(\"src\",d.src)),d.preloaded=!0}}}});var U=\"retina\";a.magnificPopup.registerModule(U,{options:{replaceSrc:function(a){return a.src.replace(/\\.\\w+$/,function(a){return\"@2x\"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(w(\"ImageHasSize.\"+U,function(a,b){b.img.css({\"max-width\":b.img[0].naturalWidth/c,width:\"100%\"})}),w(\"ElementParse.\"+U,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),A()});","chartjs/Chart.min.js":"/*!\n * Chart.js v3.9.1\n * https://www.chartjs.org\n * (c) 2022 Chart.js Contributors\n * Released under the MIT License\n */\n!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).Chart=e()}(this,(function(){\"use strict\";function t(){}const e=function(){let t=0;return function(){return t++}}();function i(t){return null==t}function s(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return\"[object\"===e.slice(0,7)&&\"Array]\"===e.slice(-6)}function n(t){return null!==t&&\"[object Object]\"===Object.prototype.toString.call(t)}const o=t=>(\"number\"==typeof t||t instanceof Number)&&isFinite(+t);function a(t,e){return o(t)?t:e}function r(t,e){return void 0===t?e:t}const l=(t,e)=>\"string\"==typeof t&&t.endsWith(\"%\")?parseFloat(t)/100:t/e,h=(t,e)=>\"string\"==typeof t&&t.endsWith(\"%\")?parseFloat(t)/100*e:+t;function c(t,e,i){if(t&&\"function\"==typeof t.call)return t.apply(i,e)}function d(t,e,i,o){let a,r,l;if(s(t))if(r=t.length,o)for(a=r-1;a>=0;a--)e.call(i,t[a],a);else for(a=0;a<r;a++)e.call(i,t[a],a);else if(n(t))for(l=Object.keys(t),r=l.length,a=0;a<r;a++)e.call(i,t[l[a]],l[a])}function u(t,e){let i,s,n,o;if(!t||!e||t.length!==e.length)return!1;for(i=0,s=t.length;i<s;++i)if(n=t[i],o=e[i],n.datasetIndex!==o.datasetIndex||n.index!==o.index)return!1;return!0}function f(t){if(s(t))return t.map(f);if(n(t)){const e=Object.create(null),i=Object.keys(t),s=i.length;let n=0;for(;n<s;++n)e[i[n]]=f(t[i[n]]);return e}return t}function g(t){return-1===[\"__proto__\",\"prototype\",\"constructor\"].indexOf(t)}function p(t,e,i,s){if(!g(t))return;const o=e[t],a=i[t];n(o)&&n(a)?m(o,a,s):e[t]=f(a)}function m(t,e,i){const o=s(e)?e:[e],a=o.length;if(!n(t))return t;const r=(i=i||{}).merger||p;for(let s=0;s<a;++s){if(!n(e=o[s]))continue;const a=Object.keys(e);for(let s=0,n=a.length;s<n;++s)r(a[s],t,e,i)}return t}function b(t,e){return m(t,e,{merger:x})}function x(t,e,i){if(!g(t))return;const s=e[t],o=i[t];n(s)&&n(o)?b(s,o):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=f(o))}const _={\"\":t=>t,x:t=>t.x,y:t=>t.y};function y(t,e){const i=_[e]||(_[e]=function(t){const e=v(t);return t=>{for(const i of e){if(\"\"===i)break;t=t&&t[i]}return t}}(e));return i(t)}function v(t){const e=t.split(\".\"),i=[];let s=\"\";for(const t of e)s+=t,s.endsWith(\"\\\\\")?s=s.slice(0,-1)+\".\":(i.push(s),s=\"\");return i}function w(t){return t.charAt(0).toUpperCase()+t.slice(1)}const M=t=>void 0!==t,k=t=>\"function\"==typeof t,S=(t,e)=>{if(t.size!==e.size)return!1;for(const i of t)if(!e.has(i))return!1;return!0};function P(t){return\"mouseup\"===t.type||\"click\"===t.type||\"contextmenu\"===t.type}const D=Math.PI,O=2*D,C=O+D,A=Number.POSITIVE_INFINITY,T=D/180,L=D/2,E=D/4,R=2*D/3,I=Math.log10,z=Math.sign;function F(t){const e=Math.round(t);t=N(t,e,t/1e3)?e:t;const i=Math.pow(10,Math.floor(I(t))),s=t/i;return(s<=1?1:s<=2?2:s<=5?5:10)*i}function V(t){const e=[],i=Math.sqrt(t);let s;for(s=1;s<i;s++)t%s==0&&(e.push(s),e.push(t/s));return i===(0|i)&&e.push(i),e.sort(((t,e)=>t-e)).pop(),e}function B(t){return!isNaN(parseFloat(t))&&isFinite(t)}function N(t,e,i){return Math.abs(t-e)<i}function W(t,e){const i=Math.round(t);return i-e<=t&&i+e>=t}function j(t,e,i){let s,n,o;for(s=0,n=t.length;s<n;s++)o=t[s][i],isNaN(o)||(e.min=Math.min(e.min,o),e.max=Math.max(e.max,o))}function H(t){return t*(D/180)}function $(t){return t*(180/D)}function Y(t){if(!o(t))return;let e=1,i=0;for(;Math.round(t*e)/e!==t;)e*=10,i++;return i}function U(t,e){const i=e.x-t.x,s=e.y-t.y,n=Math.sqrt(i*i+s*s);let o=Math.atan2(s,i);return o<-.5*D&&(o+=O),{angle:o,distance:n}}function X(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function q(t,e){return(t-e+C)%O-D}function K(t){return(t%O+O)%O}function G(t,e,i,s){const n=K(t),o=K(e),a=K(i),r=K(o-n),l=K(a-n),h=K(n-o),c=K(n-a);return n===o||n===a||s&&o===a||r>l&&h<c}function Z(t,e,i){return Math.max(e,Math.min(i,t))}function J(t){return Z(t,-32768,32767)}function Q(t,e,i,s=1e-6){return t>=Math.min(e,i)-s&&t<=Math.max(e,i)+s}function tt(t,e,i){i=i||(i=>t[i]<e);let s,n=t.length-1,o=0;for(;n-o>1;)s=o+n>>1,i(s)?o=s:n=s;return{lo:o,hi:n}}const et=(t,e,i,s)=>tt(t,i,s?s=>t[s][e]<=i:s=>t[s][e]<i),it=(t,e,i)=>tt(t,i,(s=>t[s][e]>=i));function st(t,e,i){let s=0,n=t.length;for(;s<n&&t[s]<e;)s++;for(;n>s&&t[n-1]>i;)n--;return s>0||n<t.length?t.slice(s,n):t}const nt=[\"push\",\"pop\",\"shift\",\"splice\",\"unshift\"];function ot(t,e){t._chartjs?t._chartjs.listeners.push(e):(Object.defineProperty(t,\"_chartjs\",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),nt.forEach((e=>{const i=\"_onData\"+w(e),s=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...e){const n=s.apply(this,e);return t._chartjs.listeners.forEach((t=>{\"function\"==typeof t[i]&&t[i](...e)})),n}})})))}function at(t,e){const i=t._chartjs;if(!i)return;const s=i.listeners,n=s.indexOf(e);-1!==n&&s.splice(n,1),s.length>0||(nt.forEach((e=>{delete t[e]})),delete t._chartjs)}function rt(t){const e=new Set;let i,s;for(i=0,s=t.length;i<s;++i)e.add(t[i]);return e.size===s?t:Array.from(e)}const lt=\"undefined\"==typeof window?function(t){return t()}:window.requestAnimationFrame;function ht(t,e,i){const s=i||(t=>Array.prototype.slice.call(t));let n=!1,o=[];return function(...i){o=s(i),n||(n=!0,lt.call(window,(()=>{n=!1,t.apply(e,o)})))}}function ct(t,e){let i;return function(...s){return e?(clearTimeout(i),i=setTimeout(t,e,s)):t.apply(this,s),e}}const dt=t=>\"start\"===t?\"left\":\"end\"===t?\"right\":\"center\",ut=(t,e,i)=>\"start\"===t?e:\"end\"===t?i:(e+i)/2,ft=(t,e,i,s)=>t===(s?\"left\":\"right\")?i:\"center\"===t?(e+i)/2:e;function gt(t,e,i){const s=e.length;let n=0,o=s;if(t._sorted){const{iScale:a,_parsed:r}=t,l=a.axis,{min:h,max:c,minDefined:d,maxDefined:u}=a.getUserBounds();d&&(n=Z(Math.min(et(r,a.axis,h).lo,i?s:et(e,l,a.getPixelForValue(h)).lo),0,s-1)),o=u?Z(Math.max(et(r,a.axis,c,!0).hi+1,i?0:et(e,l,a.getPixelForValue(c),!0).hi+1),n,s)-n:s-n}return{start:n,count:o}}function pt(t){const{xScale:e,yScale:i,_scaleRanges:s}=t,n={xmin:e.min,xmax:e.max,ymin:i.min,ymax:i.max};if(!s)return t._scaleRanges=n,!0;const o=s.xmin!==e.min||s.xmax!==e.max||s.ymin!==i.min||s.ymax!==i.max;return Object.assign(s,n),o}var mt=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,i,s){const n=e.listeners[s],o=e.duration;n.forEach((s=>s({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(i-e.start,o)})))}_refresh(){this._request||(this._running=!0,this._request=lt.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((i,s)=>{if(!i.running||!i.items.length)return;const n=i.items;let o,a=n.length-1,r=!1;for(;a>=0;--a)o=n[a],o._active?(o._total>i.duration&&(i.duration=o._total),o.tick(t),r=!0):(n[a]=n[n.length-1],n.pop());r&&(s.draw(),this._notify(s,i,t,\"progress\")),n.length||(i.running=!1,this._notify(s,i,t,\"complete\"),i.initial=!1),e+=n.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(((t,e)=>Math.max(t,e._duration)),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const i=e.items;let s=i.length-1;for(;s>=0;--s)i[s].cancel();e.items=[],this._notify(t,e,Date.now(),\"complete\")}remove(t){return this._charts.delete(t)}};\n    /*!\n     * @kurkle/color v0.2.1\n     * https://github.com/kurkle/color#readme\n     * (c) 2022 Jukka Kurkela\n     * Released under the MIT License\n     */function bt(t){return t+.5|0}const xt=(t,e,i)=>Math.max(Math.min(t,i),e);function _t(t){return xt(bt(2.55*t),0,255)}function yt(t){return xt(bt(255*t),0,255)}function vt(t){return xt(bt(t/2.55)/100,0,1)}function wt(t){return xt(bt(100*t),0,100)}const Mt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},kt=[...\"0123456789ABCDEF\"],St=t=>kt[15&t],Pt=t=>kt[(240&t)>>4]+kt[15&t],Dt=t=>(240&t)>>4==(15&t);function Ot(t){var e=(t=>Dt(t.r)&&Dt(t.g)&&Dt(t.b)&&Dt(t.a))(t)?St:Pt;return t?\"#\"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):\"\")(t.a,e):void 0}const Ct=/^(hsla?|hwb|hsv)\\(\\s*([-+.e\\d]+)(?:deg)?[\\s,]+([-+.e\\d]+)%[\\s,]+([-+.e\\d]+)%(?:[\\s,]+([-+.e\\d]+)(%)?)?\\s*\\)$/;function At(t,e,i){const s=e*Math.min(i,1-i),n=(e,n=(e+t/30)%12)=>i-s*Math.max(Math.min(n-3,9-n,1),-1);return[n(0),n(8),n(4)]}function Tt(t,e,i){const s=(s,n=(s+t/60)%6)=>i-i*e*Math.max(Math.min(n,4-n,1),0);return[s(5),s(3),s(1)]}function Lt(t,e,i){const s=At(t,1,.5);let n;for(e+i>1&&(n=1/(e+i),e*=n,i*=n),n=0;n<3;n++)s[n]*=1-e-i,s[n]+=e;return s}function Et(t){const e=t.r/255,i=t.g/255,s=t.b/255,n=Math.max(e,i,s),o=Math.min(e,i,s),a=(n+o)/2;let r,l,h;return n!==o&&(h=n-o,l=a>.5?h/(2-n-o):h/(n+o),r=function(t,e,i,s,n){return t===n?(e-i)/s+(e<i?6:0):e===n?(i-t)/s+2:(t-e)/s+4}(e,i,s,h,n),r=60*r+.5),[0|r,l||0,a]}function Rt(t,e,i,s){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,i,s)).map(yt)}function It(t,e,i){return Rt(At,t,e,i)}function zt(t){return(t%360+360)%360}function Ft(t){const e=Ct.exec(t);let i,s=255;if(!e)return;e[5]!==i&&(s=e[6]?_t(+e[5]):yt(+e[5]));const n=zt(+e[2]),o=+e[3]/100,a=+e[4]/100;return i=\"hwb\"===e[1]?function(t,e,i){return Rt(Lt,t,e,i)}(n,o,a):\"hsv\"===e[1]?function(t,e,i){return Rt(Tt,t,e,i)}(n,o,a):It(n,o,a),{r:i[0],g:i[1],b:i[2],a:s}}const Vt={x:\"dark\",Z:\"light\",Y:\"re\",X:\"blu\",W:\"gr\",V:\"medium\",U:\"slate\",A:\"ee\",T:\"ol\",S:\"or\",B:\"ra\",C:\"lateg\",D:\"ights\",R:\"in\",Q:\"turquois\",E:\"hi\",P:\"ro\",O:\"al\",N:\"le\",M:\"de\",L:\"yello\",F:\"en\",K:\"ch\",G:\"arks\",H:\"ea\",I:\"ightg\",J:\"wh\"},Bt={OiceXe:\"f0f8ff\",antiquewEte:\"faebd7\",aqua:\"ffff\",aquamarRe:\"7fffd4\",azuY:\"f0ffff\",beige:\"f5f5dc\",bisque:\"ffe4c4\",black:\"0\",blanKedOmond:\"ffebcd\",Xe:\"ff\",XeviTet:\"8a2be2\",bPwn:\"a52a2a\",burlywood:\"deb887\",caMtXe:\"5f9ea0\",KartYuse:\"7fff00\",KocTate:\"d2691e\",cSO:\"ff7f50\",cSnflowerXe:\"6495ed\",cSnsilk:\"fff8dc\",crimson:\"dc143c\",cyan:\"ffff\",xXe:\"8b\",xcyan:\"8b8b\",xgTMnPd:\"b8860b\",xWay:\"a9a9a9\",xgYF:\"6400\",xgYy:\"a9a9a9\",xkhaki:\"bdb76b\",xmagFta:\"8b008b\",xTivegYF:\"556b2f\",xSange:\"ff8c00\",xScEd:\"9932cc\",xYd:\"8b0000\",xsOmon:\"e9967a\",xsHgYF:\"8fbc8f\",xUXe:\"483d8b\",xUWay:\"2f4f4f\",xUgYy:\"2f4f4f\",xQe:\"ced1\",xviTet:\"9400d3\",dAppRk:\"ff1493\",dApskyXe:\"bfff\",dimWay:\"696969\",dimgYy:\"696969\",dodgerXe:\"1e90ff\",fiYbrick:\"b22222\",flSOwEte:\"fffaf0\",foYstWAn:\"228b22\",fuKsia:\"ff00ff\",gaRsbSo:\"dcdcdc\",ghostwEte:\"f8f8ff\",gTd:\"ffd700\",gTMnPd:\"daa520\",Way:\"808080\",gYF:\"8000\",gYFLw:\"adff2f\",gYy:\"808080\",honeyMw:\"f0fff0\",hotpRk:\"ff69b4\",RdianYd:\"cd5c5c\",Rdigo:\"4b0082\",ivSy:\"fffff0\",khaki:\"f0e68c\",lavFMr:\"e6e6fa\",lavFMrXsh:\"fff0f5\",lawngYF:\"7cfc00\",NmoncEffon:\"fffacd\",ZXe:\"add8e6\",ZcSO:\"f08080\",Zcyan:\"e0ffff\",ZgTMnPdLw:\"fafad2\",ZWay:\"d3d3d3\",ZgYF:\"90ee90\",ZgYy:\"d3d3d3\",ZpRk:\"ffb6c1\",ZsOmon:\"ffa07a\",ZsHgYF:\"20b2aa\",ZskyXe:\"87cefa\",ZUWay:\"778899\",ZUgYy:\"778899\",ZstAlXe:\"b0c4de\",ZLw:\"ffffe0\",lime:\"ff00\",limegYF:\"32cd32\",lRF:\"faf0e6\",magFta:\"ff00ff\",maPon:\"800000\",VaquamarRe:\"66cdaa\",VXe:\"cd\",VScEd:\"ba55d3\",VpurpN:\"9370db\",VsHgYF:\"3cb371\",VUXe:\"7b68ee\",VsprRggYF:\"fa9a\",VQe:\"48d1cc\",VviTetYd:\"c71585\",midnightXe:\"191970\",mRtcYam:\"f5fffa\",mistyPse:\"ffe4e1\",moccasR:\"ffe4b5\",navajowEte:\"ffdead\",navy:\"80\",Tdlace:\"fdf5e6\",Tive:\"808000\",TivedBb:\"6b8e23\",Sange:\"ffa500\",SangeYd:\"ff4500\",ScEd:\"da70d6\",pOegTMnPd:\"eee8aa\",pOegYF:\"98fb98\",pOeQe:\"afeeee\",pOeviTetYd:\"db7093\",papayawEp:\"ffefd5\",pHKpuff:\"ffdab9\",peru:\"cd853f\",pRk:\"ffc0cb\",plum:\"dda0dd\",powMrXe:\"b0e0e6\",purpN:\"800080\",YbeccapurpN:\"663399\",Yd:\"ff0000\",Psybrown:\"bc8f8f\",PyOXe:\"4169e1\",saddNbPwn:\"8b4513\",sOmon:\"fa8072\",sandybPwn:\"f4a460\",sHgYF:\"2e8b57\",sHshell:\"fff5ee\",siFna:\"a0522d\",silver:\"c0c0c0\",skyXe:\"87ceeb\",UXe:\"6a5acd\",UWay:\"708090\",UgYy:\"708090\",snow:\"fffafa\",sprRggYF:\"ff7f\",stAlXe:\"4682b4\",tan:\"d2b48c\",teO:\"8080\",tEstN:\"d8bfd8\",tomato:\"ff6347\",Qe:\"40e0d0\",viTet:\"ee82ee\",JHt:\"f5deb3\",wEte:\"ffffff\",wEtesmoke:\"f5f5f5\",Lw:\"ffff00\",LwgYF:\"9acd32\"};let Nt;function Wt(t){Nt||(Nt=function(){const t={},e=Object.keys(Bt),i=Object.keys(Vt);let s,n,o,a,r;for(s=0;s<e.length;s++){for(a=r=e[s],n=0;n<i.length;n++)o=i[n],r=r.replace(o,Vt[o]);o=parseInt(Bt[a],16),t[r]=[o>>16&255,o>>8&255,255&o]}return t}(),Nt.transparent=[0,0,0,0]);const e=Nt[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}const jt=/^rgba?\\(\\s*([-+.\\d]+)(%)?[\\s,]+([-+.e\\d]+)(%)?[\\s,]+([-+.e\\d]+)(%)?(?:[\\s,/]+([-+.e\\d]+)(%)?)?\\s*\\)$/;const Ht=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,$t=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Yt(t,e,i){if(t){let s=Et(t);s[e]=Math.max(0,Math.min(s[e]+s[e]*i,0===e?360:1)),s=It(s),t.r=s[0],t.g=s[1],t.b=s[2]}}function Ut(t,e){return t?Object.assign(e||{},t):t}function Xt(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=yt(t[3]))):(e=Ut(t,{r:0,g:0,b:0,a:1})).a=yt(e.a),e}function qt(t){return\"r\"===t.charAt(0)?function(t){const e=jt.exec(t);let i,s,n,o=255;if(e){if(e[7]!==i){const t=+e[7];o=e[8]?_t(t):xt(255*t,0,255)}return i=+e[1],s=+e[3],n=+e[5],i=255&(e[2]?_t(i):xt(i,0,255)),s=255&(e[4]?_t(s):xt(s,0,255)),n=255&(e[6]?_t(n):xt(n,0,255)),{r:i,g:s,b:n,a:o}}}(t):Ft(t)}class Kt{constructor(t){if(t instanceof Kt)return t;const e=typeof t;let i;var s,n,o;\"object\"===e?i=Xt(t):\"string\"===e&&(o=(s=t).length,\"#\"===s[0]&&(4===o||5===o?n={r:255&17*Mt[s[1]],g:255&17*Mt[s[2]],b:255&17*Mt[s[3]],a:5===o?17*Mt[s[4]]:255}:7!==o&&9!==o||(n={r:Mt[s[1]]<<4|Mt[s[2]],g:Mt[s[3]]<<4|Mt[s[4]],b:Mt[s[5]]<<4|Mt[s[6]],a:9===o?Mt[s[7]]<<4|Mt[s[8]]:255})),i=n||Wt(t)||qt(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=Ut(this._rgb);return t&&(t.a=vt(t.a)),t}set rgb(t){this._rgb=Xt(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${vt(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?Ot(this._rgb):void 0}hslString(){return this._valid?function(t){if(!t)return;const e=Et(t),i=e[0],s=wt(e[1]),n=wt(e[2]);return t.a<255?`hsla(${i}, ${s}%, ${n}%, ${vt(t.a)})`:`hsl(${i}, ${s}%, ${n}%)`}(this._rgb):void 0}mix(t,e){if(t){const i=this.rgb,s=t.rgb;let n;const o=e===n?.5:e,a=2*o-1,r=i.a-s.a,l=((a*r==-1?a:(a+r)/(1+a*r))+1)/2;n=1-l,i.r=255&l*i.r+n*s.r+.5,i.g=255&l*i.g+n*s.g+.5,i.b=255&l*i.b+n*s.b+.5,i.a=o*i.a+(1-o)*s.a,this.rgb=i}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,i){const s=$t(vt(t.r)),n=$t(vt(t.g)),o=$t(vt(t.b));return{r:yt(Ht(s+i*($t(vt(e.r))-s))),g:yt(Ht(n+i*($t(vt(e.g))-n))),b:yt(Ht(o+i*($t(vt(e.b))-o))),a:t.a+i*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new Kt(this.rgb)}alpha(t){return this._rgb.a=yt(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=bt(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Yt(this._rgb,2,t),this}darken(t){return Yt(this._rgb,2,-t),this}saturate(t){return Yt(this._rgb,1,t),this}desaturate(t){return Yt(this._rgb,1,-t),this}rotate(t){return function(t,e){var i=Et(t);i[0]=zt(i[0]+e),i=It(i),t.r=i[0],t.g=i[1],t.b=i[2]}(this._rgb,t),this}}function Gt(t){return new Kt(t)}function Zt(t){if(t&&\"object\"==typeof t){const e=t.toString();return\"[object CanvasPattern]\"===e||\"[object CanvasGradient]\"===e}return!1}function Jt(t){return Zt(t)?t:Gt(t)}function Qt(t){return Zt(t)?t:Gt(t).saturate(.5).darken(.1).hexString()}const te=Object.create(null),ee=Object.create(null);function ie(t,e){if(!e)return t;const i=e.split(\".\");for(let e=0,s=i.length;e<s;++e){const s=i[e];t=t[s]||(t[s]=Object.create(null))}return t}function se(t,e,i){return\"string\"==typeof e?m(ie(t,e),i):m(ie(t,\"\"),e)}var ne=new class{constructor(t){this.animation=void 0,this.backgroundColor=\"rgba(0,0,0,0.1)\",this.borderColor=\"rgba(0,0,0,0.1)\",this.color=\"#666\",this.datasets={},this.devicePixelRatio=t=>t.chart.platform.getDevicePixelRatio(),this.elements={},this.events=[\"mousemove\",\"mouseout\",\"click\",\"touchstart\",\"touchmove\"],this.font={family:\"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif\",size:12,style:\"normal\",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>Qt(e.backgroundColor),this.hoverBorderColor=(t,e)=>Qt(e.borderColor),this.hoverColor=(t,e)=>Qt(e.color),this.indexAxis=\"x\",this.interaction={mode:\"nearest\",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t)}set(t,e){return se(this,t,e)}get(t){return ie(this,t)}describe(t,e){return se(ee,t,e)}override(t,e){return se(te,t,e)}route(t,e,i,s){const o=ie(this,t),a=ie(this,i),l=\"_\"+e;Object.defineProperties(o,{[l]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[l],e=a[s];return n(t)?Object.assign({},e,t):r(t,e)},set(t){this[l]=t}}})}}({_scriptable:t=>!t.startsWith(\"on\"),_indexable:t=>\"events\"!==t,hover:{_fallback:\"interaction\"},interaction:{_scriptable:!1,_indexable:!1}});function oe(){return\"undefined\"!=typeof window&&\"undefined\"!=typeof document}function ae(t){let e=t.parentNode;return e&&\"[object ShadowRoot]\"===e.toString()&&(e=e.host),e}function re(t,e,i){let s;return\"string\"==typeof t?(s=parseInt(t,10),-1!==t.indexOf(\"%\")&&(s=s/100*e.parentNode[i])):s=t,s}const le=t=>window.getComputedStyle(t,null);function he(t,e){return le(t).getPropertyValue(e)}const ce=[\"top\",\"right\",\"bottom\",\"left\"];function de(t,e,i){const s={};i=i?\"-\"+i:\"\";for(let n=0;n<4;n++){const o=ce[n];s[o]=parseFloat(t[e+\"-\"+o+i])||0}return s.width=s.left+s.right,s.height=s.top+s.bottom,s}function ue(t,e){if(\"native\"in t)return t;const{canvas:i,currentDevicePixelRatio:s}=e,n=le(i),o=\"border-box\"===n.boxSizing,a=de(n,\"padding\"),r=de(n,\"border\",\"width\"),{x:l,y:h,box:c}=function(t,e){const i=t.touches,s=i&&i.length?i[0]:t,{offsetX:n,offsetY:o}=s;let a,r,l=!1;if(((t,e,i)=>(t>0||e>0)&&(!i||!i.shadowRoot))(n,o,t.target))a=n,r=o;else{const t=e.getBoundingClientRect();a=s.clientX-t.left,r=s.clientY-t.top,l=!0}return{x:a,y:r,box:l}}(t,i),d=a.left+(c&&r.left),u=a.top+(c&&r.top);let{width:f,height:g}=e;return o&&(f-=a.width+r.width,g-=a.height+r.height),{x:Math.round((l-d)/f*i.width/s),y:Math.round((h-u)/g*i.height/s)}}const fe=t=>Math.round(10*t)/10;function ge(t,e,i,s){const n=le(t),o=de(n,\"margin\"),a=re(n.maxWidth,t,\"clientWidth\")||A,r=re(n.maxHeight,t,\"clientHeight\")||A,l=function(t,e,i){let s,n;if(void 0===e||void 0===i){const o=ae(t);if(o){const t=o.getBoundingClientRect(),a=le(o),r=de(a,\"border\",\"width\"),l=de(a,\"padding\");e=t.width-l.width-r.width,i=t.height-l.height-r.height,s=re(a.maxWidth,o,\"clientWidth\"),n=re(a.maxHeight,o,\"clientHeight\")}else e=t.clientWidth,i=t.clientHeight}return{width:e,height:i,maxWidth:s||A,maxHeight:n||A}}(t,e,i);let{width:h,height:c}=l;if(\"content-box\"===n.boxSizing){const t=de(n,\"border\",\"width\"),e=de(n,\"padding\");h-=e.width+t.width,c-=e.height+t.height}return h=Math.max(0,h-o.width),c=Math.max(0,s?Math.floor(h/s):c-o.height),h=fe(Math.min(h,a,l.maxWidth)),c=fe(Math.min(c,r,l.maxHeight)),h&&!c&&(c=fe(h/2)),{width:h,height:c}}function pe(t,e,i){const s=e||1,n=Math.floor(t.height*s),o=Math.floor(t.width*s);t.height=n/s,t.width=o/s;const a=t.canvas;return a.style&&(i||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==s||a.height!==n||a.width!==o)&&(t.currentDevicePixelRatio=s,a.height=n,a.width=o,t.ctx.setTransform(s,0,0,s,0,0),!0)}const me=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener(\"test\",null,e),window.removeEventListener(\"test\",null,e)}catch(t){}return t}();function be(t,e){const i=he(t,e),s=i&&i.match(/^(\\d+)(\\.\\d+)?px$/);return s?+s[1]:void 0}function xe(t){return!t||i(t.size)||i(t.family)?null:(t.style?t.style+\" \":\"\")+(t.weight?t.weight+\" \":\"\")+t.size+\"px \"+t.family}function _e(t,e,i,s,n){let o=e[n];return o||(o=e[n]=t.measureText(n).width,i.push(n)),o>s&&(s=o),s}function ye(t,e,i,n){let o=(n=n||{}).data=n.data||{},a=n.garbageCollect=n.garbageCollect||[];n.font!==e&&(o=n.data={},a=n.garbageCollect=[],n.font=e),t.save(),t.font=e;let r=0;const l=i.length;let h,c,d,u,f;for(h=0;h<l;h++)if(u=i[h],null!=u&&!0!==s(u))r=_e(t,o,a,r,u);else if(s(u))for(c=0,d=u.length;c<d;c++)f=u[c],null==f||s(f)||(r=_e(t,o,a,r,f));t.restore();const g=a.length/2;if(g>i.length){for(h=0;h<g;h++)delete o[a[h]];a.splice(0,g)}return r}function ve(t,e,i){const s=t.currentDevicePixelRatio,n=0!==i?Math.max(i/2,.5):0;return Math.round((e-n)*s)/s+n}function we(t,e){(e=e||t.getContext(\"2d\")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function Me(t,e,i,s){ke(t,e,i,s,null)}function ke(t,e,i,s,n){let o,a,r,l,h,c;const d=e.pointStyle,u=e.rotation,f=e.radius;let g=(u||0)*T;if(d&&\"object\"==typeof d&&(o=d.toString(),\"[object HTMLImageElement]\"===o||\"[object HTMLCanvasElement]\"===o))return t.save(),t.translate(i,s),t.rotate(g),t.drawImage(d,-d.width/2,-d.height/2,d.width,d.height),void t.restore();if(!(isNaN(f)||f<=0)){switch(t.beginPath(),d){default:n?t.ellipse(i,s,n/2,f,0,0,O):t.arc(i,s,f,0,O),t.closePath();break;case\"triangle\":t.moveTo(i+Math.sin(g)*f,s-Math.cos(g)*f),g+=R,t.lineTo(i+Math.sin(g)*f,s-Math.cos(g)*f),g+=R,t.lineTo(i+Math.sin(g)*f,s-Math.cos(g)*f),t.closePath();break;case\"rectRounded\":h=.516*f,l=f-h,a=Math.cos(g+E)*l,r=Math.sin(g+E)*l,t.arc(i-a,s-r,h,g-D,g-L),t.arc(i+r,s-a,h,g-L,g),t.arc(i+a,s+r,h,g,g+L),t.arc(i-r,s+a,h,g+L,g+D),t.closePath();break;case\"rect\":if(!u){l=Math.SQRT1_2*f,c=n?n/2:l,t.rect(i-c,s-l,2*c,2*l);break}g+=E;case\"rectRot\":a=Math.cos(g)*f,r=Math.sin(g)*f,t.moveTo(i-a,s-r),t.lineTo(i+r,s-a),t.lineTo(i+a,s+r),t.lineTo(i-r,s+a),t.closePath();break;case\"crossRot\":g+=E;case\"cross\":a=Math.cos(g)*f,r=Math.sin(g)*f,t.moveTo(i-a,s-r),t.lineTo(i+a,s+r),t.moveTo(i+r,s-a),t.lineTo(i-r,s+a);break;case\"star\":a=Math.cos(g)*f,r=Math.sin(g)*f,t.moveTo(i-a,s-r),t.lineTo(i+a,s+r),t.moveTo(i+r,s-a),t.lineTo(i-r,s+a),g+=E,a=Math.cos(g)*f,r=Math.sin(g)*f,t.moveTo(i-a,s-r),t.lineTo(i+a,s+r),t.moveTo(i+r,s-a),t.lineTo(i-r,s+a);break;case\"line\":a=n?n/2:Math.cos(g)*f,r=Math.sin(g)*f,t.moveTo(i-a,s-r),t.lineTo(i+a,s+r);break;case\"dash\":t.moveTo(i,s),t.lineTo(i+Math.cos(g)*f,s+Math.sin(g)*f)}t.fill(),e.borderWidth>0&&t.stroke()}}function Se(t,e,i){return i=i||.5,!e||t&&t.x>e.left-i&&t.x<e.right+i&&t.y>e.top-i&&t.y<e.bottom+i}function Pe(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function De(t){t.restore()}function Oe(t,e,i,s,n){if(!e)return t.lineTo(i.x,i.y);if(\"middle\"===n){const s=(e.x+i.x)/2;t.lineTo(s,e.y),t.lineTo(s,i.y)}else\"after\"===n!=!!s?t.lineTo(e.x,i.y):t.lineTo(i.x,e.y);t.lineTo(i.x,i.y)}function Ce(t,e,i,s){if(!e)return t.lineTo(i.x,i.y);t.bezierCurveTo(s?e.cp1x:e.cp2x,s?e.cp1y:e.cp2y,s?i.cp2x:i.cp1x,s?i.cp2y:i.cp1y,i.x,i.y)}function Ae(t,e,n,o,a,r={}){const l=s(e)?e:[e],h=r.strokeWidth>0&&\"\"!==r.strokeColor;let c,d;for(t.save(),t.font=a.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]);i(e.rotation)||t.rotate(e.rotation);e.color&&(t.fillStyle=e.color);e.textAlign&&(t.textAlign=e.textAlign);e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,r),c=0;c<l.length;++c)d=l[c],h&&(r.strokeColor&&(t.strokeStyle=r.strokeColor),i(r.strokeWidth)||(t.lineWidth=r.strokeWidth),t.strokeText(d,n,o,r.maxWidth)),t.fillText(d,n,o,r.maxWidth),Te(t,n,o,d,r),o+=a.lineHeight;t.restore()}function Te(t,e,i,s,n){if(n.strikethrough||n.underline){const o=t.measureText(s),a=e-o.actualBoundingBoxLeft,r=e+o.actualBoundingBoxRight,l=i-o.actualBoundingBoxAscent,h=i+o.actualBoundingBoxDescent,c=n.strikethrough?(l+h)/2:h;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=n.decorationWidth||2,t.moveTo(a,c),t.lineTo(r,c),t.stroke()}}function Le(t,e){const{x:i,y:s,w:n,h:o,radius:a}=e;t.arc(i+a.topLeft,s+a.topLeft,a.topLeft,-L,D,!0),t.lineTo(i,s+o-a.bottomLeft),t.arc(i+a.bottomLeft,s+o-a.bottomLeft,a.bottomLeft,D,L,!0),t.lineTo(i+n-a.bottomRight,s+o),t.arc(i+n-a.bottomRight,s+o-a.bottomRight,a.bottomRight,L,0,!0),t.lineTo(i+n,s+a.topRight),t.arc(i+n-a.topRight,s+a.topRight,a.topRight,0,-L,!0),t.lineTo(i+a.topLeft,s)}function Ee(t,e=[\"\"],i=t,s,n=(()=>t[0])){M(s)||(s=$e(\"_fallback\",t));const o={[Symbol.toStringTag]:\"Object\",_cacheable:!0,_scopes:t,_rootScopes:i,_fallback:s,_getTarget:n,override:n=>Ee([n,...t],e,i,s)};return new Proxy(o,{deleteProperty:(e,i)=>(delete e[i],delete e._keys,delete t[0][i],!0),get:(i,s)=>Ve(i,s,(()=>function(t,e,i,s){let n;for(const o of e)if(n=$e(ze(o,t),i),M(n))return Fe(t,n)?je(i,s,t,n):n}(s,e,t,i))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>Ye(t).includes(e),ownKeys:t=>Ye(t),set(t,e,i){const s=t._storage||(t._storage=n());return t[e]=s[e]=i,delete t._keys,!0}})}function Re(t,e,i,o){const a={_cacheable:!1,_proxy:t,_context:e,_subProxy:i,_stack:new Set,_descriptors:Ie(t,o),setContext:e=>Re(t,e,i,o),override:s=>Re(t.override(s),e,i,o)};return new Proxy(a,{deleteProperty:(e,i)=>(delete e[i],delete t[i],!0),get:(t,e,i)=>Ve(t,e,(()=>function(t,e,i){const{_proxy:o,_context:a,_subProxy:r,_descriptors:l}=t;let h=o[e];k(h)&&l.isScriptable(e)&&(h=function(t,e,i,s){const{_proxy:n,_context:o,_subProxy:a,_stack:r}=i;if(r.has(t))throw new Error(\"Recursion detected: \"+Array.from(r).join(\"->\")+\"->\"+t);r.add(t),e=e(o,a||s),r.delete(t),Fe(t,e)&&(e=je(n._scopes,n,t,e));return e}(e,h,t,i));s(h)&&h.length&&(h=function(t,e,i,s){const{_proxy:o,_context:a,_subProxy:r,_descriptors:l}=i;if(M(a.index)&&s(t))e=e[a.index%e.length];else if(n(e[0])){const i=e,s=o._scopes.filter((t=>t!==i));e=[];for(const n of i){const i=je(s,o,t,n);e.push(Re(i,a,r&&r[t],l))}}return e}(e,h,t,l.isIndexable));Fe(e,h)&&(h=Re(h,a,r&&r[e],l));return h}(t,e,i))),getOwnPropertyDescriptor:(e,i)=>e._descriptors.allKeys?Reflect.has(t,i)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,i),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,i)=>Reflect.has(t,i),ownKeys:()=>Reflect.ownKeys(t),set:(e,i,s)=>(t[i]=s,delete e[i],!0)})}function Ie(t,e={scriptable:!0,indexable:!0}){const{_scriptable:i=e.scriptable,_indexable:s=e.indexable,_allKeys:n=e.allKeys}=t;return{allKeys:n,scriptable:i,indexable:s,isScriptable:k(i)?i:()=>i,isIndexable:k(s)?s:()=>s}}const ze=(t,e)=>t?t+w(e):e,Fe=(t,e)=>n(e)&&\"adapters\"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Ve(t,e,i){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const s=i();return t[e]=s,s}function Be(t,e,i){return k(t)?t(e,i):t}const Ne=(t,e)=>!0===t?e:\"string\"==typeof t?y(e,t):void 0;function We(t,e,i,s,n){for(const o of e){const e=Ne(i,o);if(e){t.add(e);const o=Be(e._fallback,i,n);if(M(o)&&o!==i&&o!==s)return o}else if(!1===e&&M(s)&&i!==s)return null}return!1}function je(t,e,i,o){const a=e._rootScopes,r=Be(e._fallback,i,o),l=[...t,...a],h=new Set;h.add(o);let c=He(h,l,i,r||i,o);return null!==c&&((!M(r)||r===i||(c=He(h,l,r,c,o),null!==c))&&Ee(Array.from(h),[\"\"],a,r,(()=>function(t,e,i){const o=t._getTarget();e in o||(o[e]={});const a=o[e];if(s(a)&&n(i))return i;return a}(e,i,o))))}function He(t,e,i,s,n){for(;i;)i=We(t,e,i,s,n);return i}function $e(t,e){for(const i of e){if(!i)continue;const e=i[t];if(M(e))return e}}function Ye(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const i of t)for(const t of Object.keys(i).filter((t=>!t.startsWith(\"_\"))))e.add(t);return Array.from(e)}(t._scopes)),e}function Ue(t,e,i,s){const{iScale:n}=t,{key:o=\"r\"}=this._parsing,a=new Array(s);let r,l,h,c;for(r=0,l=s;r<l;++r)h=r+i,c=e[h],a[r]={r:n.parse(y(c,o),h)};return a}const Xe=Number.EPSILON||1e-14,qe=(t,e)=>e<t.length&&!t[e].skip&&t[e],Ke=t=>\"x\"===t?\"y\":\"x\";function Ge(t,e,i,s){const n=t.skip?e:t,o=e,a=i.skip?e:i,r=X(o,n),l=X(a,o);let h=r/(r+l),c=l/(r+l);h=isNaN(h)?0:h,c=isNaN(c)?0:c;const d=s*h,u=s*c;return{previous:{x:o.x-d*(a.x-n.x),y:o.y-d*(a.y-n.y)},next:{x:o.x+u*(a.x-n.x),y:o.y+u*(a.y-n.y)}}}function Ze(t,e=\"x\"){const i=Ke(e),s=t.length,n=Array(s).fill(0),o=Array(s);let a,r,l,h=qe(t,0);for(a=0;a<s;++a)if(r=l,l=h,h=qe(t,a+1),l){if(h){const t=h[e]-l[e];n[a]=0!==t?(h[i]-l[i])/t:0}o[a]=r?h?z(n[a-1])!==z(n[a])?0:(n[a-1]+n[a])/2:n[a-1]:n[a]}!function(t,e,i){const s=t.length;let n,o,a,r,l,h=qe(t,0);for(let c=0;c<s-1;++c)l=h,h=qe(t,c+1),l&&h&&(N(e[c],0,Xe)?i[c]=i[c+1]=0:(n=i[c]/e[c],o=i[c+1]/e[c],r=Math.pow(n,2)+Math.pow(o,2),r<=9||(a=3/Math.sqrt(r),i[c]=n*a*e[c],i[c+1]=o*a*e[c])))}(t,n,o),function(t,e,i=\"x\"){const s=Ke(i),n=t.length;let o,a,r,l=qe(t,0);for(let h=0;h<n;++h){if(a=r,r=l,l=qe(t,h+1),!r)continue;const n=r[i],c=r[s];a&&(o=(n-a[i])/3,r[`cp1${i}`]=n-o,r[`cp1${s}`]=c-o*e[h]),l&&(o=(l[i]-n)/3,r[`cp2${i}`]=n+o,r[`cp2${s}`]=c+o*e[h])}}(t,o,e)}function Je(t,e,i){return Math.max(Math.min(t,i),e)}function Qe(t,e,i,s,n){let o,a,r,l;if(e.spanGaps&&(t=t.filter((t=>!t.skip))),\"monotone\"===e.cubicInterpolationMode)Ze(t,n);else{let i=s?t[t.length-1]:t[0];for(o=0,a=t.length;o<a;++o)r=t[o],l=Ge(i,r,t[Math.min(o+1,a-(s?0:1))%a],e.tension),r.cp1x=l.previous.x,r.cp1y=l.previous.y,r.cp2x=l.next.x,r.cp2y=l.next.y,i=r}e.capBezierPoints&&function(t,e){let i,s,n,o,a,r=Se(t[0],e);for(i=0,s=t.length;i<s;++i)a=o,o=r,r=i<s-1&&Se(t[i+1],e),o&&(n=t[i],a&&(n.cp1x=Je(n.cp1x,e.left,e.right),n.cp1y=Je(n.cp1y,e.top,e.bottom)),r&&(n.cp2x=Je(n.cp2x,e.left,e.right),n.cp2y=Je(n.cp2y,e.top,e.bottom)))}(t,i)}const ti=t=>0===t||1===t,ei=(t,e,i)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*O/i),ii=(t,e,i)=>Math.pow(2,-10*t)*Math.sin((t-e)*O/i)+1,si={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*L),easeOutSine:t=>Math.sin(t*L),easeInOutSine:t=>-.5*(Math.cos(D*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>ti(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>ti(t)?t:ei(t,.075,.3),easeOutElastic:t=>ti(t)?t:ii(t,.075,.3),easeInOutElastic(t){const e=.1125;return ti(t)?t:t<.5?.5*ei(2*t,e,.45):.5+.5*ii(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-si.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,i=2.75;return t<1/i?e*t*t:t<2/i?e*(t-=1.5/i)*t+.75:t<2.5/i?e*(t-=2.25/i)*t+.9375:e*(t-=2.625/i)*t+.984375},easeInOutBounce:t=>t<.5?.5*si.easeInBounce(2*t):.5*si.easeOutBounce(2*t-1)+.5};function ni(t,e,i,s){return{x:t.x+i*(e.x-t.x),y:t.y+i*(e.y-t.y)}}function oi(t,e,i,s){return{x:t.x+i*(e.x-t.x),y:\"middle\"===s?i<.5?t.y:e.y:\"after\"===s?i<1?t.y:e.y:i>0?e.y:t.y}}function ai(t,e,i,s){const n={x:t.cp2x,y:t.cp2y},o={x:e.cp1x,y:e.cp1y},a=ni(t,n,i),r=ni(n,o,i),l=ni(o,e,i),h=ni(a,r,i),c=ni(r,l,i);return ni(h,c,i)}const ri=new Map;function li(t,e,i){return function(t,e){e=e||{};const i=t+JSON.stringify(e);let s=ri.get(i);return s||(s=new Intl.NumberFormat(t,e),ri.set(i,s)),s}(e,i).format(t)}const hi=new RegExp(/^(normal|(\\d+(?:\\.\\d+)?)(px|em|%)?)$/),ci=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function di(t,e){const i=(\"\"+t).match(hi);if(!i||\"normal\"===i[1])return 1.2*e;switch(t=+i[2],i[3]){case\"px\":return t;case\"%\":t/=100}return e*t}function ui(t,e){const i={},s=n(e),o=s?Object.keys(e):e,a=n(t)?s?i=>r(t[i],t[e[i]]):e=>t[e]:()=>t;for(const t of o)i[t]=+a(t)||0;return i}function fi(t){return ui(t,{top:\"y\",right:\"x\",bottom:\"y\",left:\"x\"})}function gi(t){return ui(t,[\"topLeft\",\"topRight\",\"bottomLeft\",\"bottomRight\"])}function pi(t){const e=fi(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function mi(t,e){t=t||{},e=e||ne.font;let i=r(t.size,e.size);\"string\"==typeof i&&(i=parseInt(i,10));let s=r(t.style,e.style);s&&!(\"\"+s).match(ci)&&(console.warn('Invalid font style specified: \"'+s+'\"'),s=\"\");const n={family:r(t.family,e.family),lineHeight:di(r(t.lineHeight,e.lineHeight),i),size:i,style:s,weight:r(t.weight,e.weight),string:\"\"};return n.string=xe(n),n}function bi(t,e,i,n){let o,a,r,l=!0;for(o=0,a=t.length;o<a;++o)if(r=t[o],void 0!==r&&(void 0!==e&&\"function\"==typeof r&&(r=r(e),l=!1),void 0!==i&&s(r)&&(r=r[i%r.length],l=!1),void 0!==r))return n&&!l&&(n.cacheable=!1),r}function xi(t,e,i){const{min:s,max:n}=t,o=h(e,(n-s)/2),a=(t,e)=>i&&0===t?0:t+e;return{min:a(s,-Math.abs(o)),max:a(n,o)}}function _i(t,e){return Object.assign(Object.create(t),e)}function yi(t,e,i){return t?function(t,e){return{x:i=>t+t+e-i,setWidth(t){e=t},textAlign:t=>\"center\"===t?t:\"right\"===t?\"left\":\"right\",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,i):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function vi(t,e){let i,s;\"ltr\"!==e&&\"rtl\"!==e||(i=t.canvas.style,s=[i.getPropertyValue(\"direction\"),i.getPropertyPriority(\"direction\")],i.setProperty(\"direction\",e,\"important\"),t.prevTextDirection=s)}function wi(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty(\"direction\",e[0],e[1]))}function Mi(t){return\"angle\"===t?{between:G,compare:q,normalize:K}:{between:Q,compare:(t,e)=>t-e,normalize:t=>t}}function ki({start:t,end:e,count:i,loop:s,style:n}){return{start:t%i,end:e%i,loop:s&&(e-t+1)%i==0,style:n}}function Si(t,e,i){if(!i)return[t];const{property:s,start:n,end:o}=i,a=e.length,{compare:r,between:l,normalize:h}=Mi(s),{start:c,end:d,loop:u,style:f}=function(t,e,i){const{property:s,start:n,end:o}=i,{between:a,normalize:r}=Mi(s),l=e.length;let h,c,{start:d,end:u,loop:f}=t;if(f){for(d+=l,u+=l,h=0,c=l;h<c&&a(r(e[d%l][s]),n,o);++h)d--,u--;d%=l,u%=l}return u<d&&(u+=l),{start:d,end:u,loop:f,style:t.style}}(t,e,i),g=[];let p,m,b,x=!1,_=null;const y=()=>x||l(n,b,p)&&0!==r(n,b),v=()=>!x||0===r(o,p)||l(o,b,p);for(let t=c,i=c;t<=d;++t)m=e[t%a],m.skip||(p=h(m[s]),p!==b&&(x=l(p,n,o),null===_&&y()&&(_=0===r(p,n)?t:i),null!==_&&v()&&(g.push(ki({start:_,end:t,loop:u,count:a,style:f})),_=null),i=t,b=p));return null!==_&&g.push(ki({start:_,end:d,loop:u,count:a,style:f})),g}function Pi(t,e){const i=[],s=t.segments;for(let n=0;n<s.length;n++){const o=Si(s[n],t.points,e);o.length&&i.push(...o)}return i}function Di(t,e){const i=t.points,s=t.options.spanGaps,n=i.length;if(!n)return[];const o=!!t._loop,{start:a,end:r}=function(t,e,i,s){let n=0,o=e-1;if(i&&!s)for(;n<e&&!t[n].skip;)n++;for(;n<e&&t[n].skip;)n++;for(n%=e,i&&(o+=n);o>n&&t[o%e].skip;)o--;return o%=e,{start:n,end:o}}(i,n,o,s);if(!0===s)return Oi(t,[{start:a,end:r,loop:o}],i,e);return Oi(t,function(t,e,i,s){const n=t.length,o=[];let a,r=e,l=t[e];for(a=e+1;a<=i;++a){const i=t[a%n];i.skip||i.stop?l.skip||(s=!1,o.push({start:e%n,end:(a-1)%n,loop:s}),e=r=i.stop?a:null):(r=a,l.skip&&(e=a)),l=i}return null!==r&&o.push({start:e%n,end:r%n,loop:s}),o}(i,a,r<a?r+n:r,!!t._fullLoop&&0===a&&r===n-1),i,e)}function Oi(t,e,i,s){return s&&s.setContext&&i?function(t,e,i,s){const n=t._chart.getContext(),o=Ci(t.options),{_datasetIndex:a,options:{spanGaps:r}}=t,l=i.length,h=[];let c=o,d=e[0].start,u=d;function f(t,e,s,n){const o=r?-1:1;if(t!==e){for(t+=l;i[t%l].skip;)t-=o;for(;i[e%l].skip;)e+=o;t%l!=e%l&&(h.push({start:t%l,end:e%l,loop:s,style:n}),c=n,d=e%l)}}for(const t of e){d=r?d:t.start;let e,o=i[d%l];for(u=d+1;u<=t.end;u++){const r=i[u%l];e=Ci(s.setContext(_i(n,{type:\"segment\",p0:o,p1:r,p0DataIndex:(u-1)%l,p1DataIndex:u%l,datasetIndex:a}))),Ai(e,c)&&f(d,u-1,t.loop,c),o=r,c=e}d<u-1&&f(d,u-1,t.loop,c)}return h}(t,e,i,s):e}function Ci(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function Ai(t,e){return e&&JSON.stringify(t)!==JSON.stringify(e)}var Ti=Object.freeze({__proto__:null,easingEffects:si,isPatternOrGradient:Zt,color:Jt,getHoverColor:Qt,noop:t,uid:e,isNullOrUndef:i,isArray:s,isObject:n,isFinite:o,finiteOrDefault:a,valueOrDefault:r,toPercentage:l,toDimension:h,callback:c,each:d,_elementsEqual:u,clone:f,_merger:p,merge:m,mergeIf:b,_mergerIf:x,_deprecated:function(t,e,i,s){void 0!==e&&console.warn(t+': \"'+i+'\" is deprecated. Please use \"'+s+'\" instead')},resolveObjectKey:y,_splitKey:v,_capitalize:w,defined:M,isFunction:k,setsEqual:S,_isClickEvent:P,toFontString:xe,_measureText:_e,_longestText:ye,_alignPixel:ve,clearCanvas:we,drawPoint:Me,drawPointLegend:ke,_isPointInArea:Se,clipArea:Pe,unclipArea:De,_steppedLineTo:Oe,_bezierCurveTo:Ce,renderText:Ae,addRoundedRectPath:Le,_lookup:tt,_lookupByKey:et,_rlookupByKey:it,_filterBetween:st,listenArrayEvents:ot,unlistenArrayEvents:at,_arrayUnique:rt,_createResolver:Ee,_attachContext:Re,_descriptors:Ie,_parseObjectDataRadialScale:Ue,splineCurve:Ge,splineCurveMonotone:Ze,_updateBezierControlPoints:Qe,_isDomSupported:oe,_getParentNode:ae,getStyle:he,getRelativePosition:ue,getMaximumSize:ge,retinaScale:pe,supportsEventListenerOptions:me,readUsedSize:be,fontString:function(t,e,i){return e+\" \"+t+\"px \"+i},requestAnimFrame:lt,throttled:ht,debounce:ct,_toLeftRightCenter:dt,_alignStartEnd:ut,_textX:ft,_getStartAndCountOfVisiblePoints:gt,_scaleRangesChanged:pt,_pointInLine:ni,_steppedInterpolation:oi,_bezierInterpolation:ai,formatNumber:li,toLineHeight:di,_readValueToProps:ui,toTRBL:fi,toTRBLCorners:gi,toPadding:pi,toFont:mi,resolve:bi,_addGrace:xi,createContext:_i,PI:D,TAU:O,PITAU:C,INFINITY:A,RAD_PER_DEG:T,HALF_PI:L,QUARTER_PI:E,TWO_THIRDS_PI:R,log10:I,sign:z,niceNum:F,_factorize:V,isNumber:B,almostEquals:N,almostWhole:W,_setMinAndMaxByKey:j,toRadians:H,toDegrees:$,_decimalPlaces:Y,getAngleFromPoint:U,distanceBetweenPoints:X,_angleDiff:q,_normalizeAngle:K,_angleBetween:G,_limitValue:Z,_int16Range:J,_isBetween:Q,getRtlAdapter:yi,overrideTextDirection:vi,restoreTextDirection:wi,_boundSegment:Si,_boundSegments:Pi,_computeSegments:Di});function Li(t,e,i,s){const{controller:n,data:o,_sorted:a}=t,r=n._cachedMeta.iScale;if(r&&e===r.axis&&\"r\"!==e&&a&&o.length){const t=r._reversePixels?it:et;if(!s)return t(o,e,i);if(n._sharedOptions){const s=o[0],n=\"function\"==typeof s.getRange&&s.getRange(e);if(n){const s=t(o,e,i-n),a=t(o,e,i+n);return{lo:s.lo,hi:a.hi}}}}return{lo:0,hi:o.length-1}}function Ei(t,e,i,s,n){const o=t.getSortedVisibleDatasetMetas(),a=i[e];for(let t=0,i=o.length;t<i;++t){const{index:i,data:r}=o[t],{lo:l,hi:h}=Li(o[t],e,a,n);for(let t=l;t<=h;++t){const e=r[t];e.skip||s(e,i,t)}}}function Ri(t,e,i,s,n){const o=[];if(!n&&!t.isPointInArea(e))return o;return Ei(t,i,e,(function(i,a,r){(n||Se(i,t.chartArea,0))&&i.inRange(e.x,e.y,s)&&o.push({element:i,datasetIndex:a,index:r})}),!0),o}function Ii(t,e,i,s,n,o){let a=[];const r=function(t){const e=-1!==t.indexOf(\"x\"),i=-1!==t.indexOf(\"y\");return function(t,s){const n=e?Math.abs(t.x-s.x):0,o=i?Math.abs(t.y-s.y):0;return Math.sqrt(Math.pow(n,2)+Math.pow(o,2))}}(i);let l=Number.POSITIVE_INFINITY;return Ei(t,i,e,(function(i,h,c){const d=i.inRange(e.x,e.y,n);if(s&&!d)return;const u=i.getCenterPoint(n);if(!(!!o||t.isPointInArea(u))&&!d)return;const f=r(e,u);f<l?(a=[{element:i,datasetIndex:h,index:c}],l=f):f===l&&a.push({element:i,datasetIndex:h,index:c})})),a}function zi(t,e,i,s,n,o){return o||t.isPointInArea(e)?\"r\"!==i||s?Ii(t,e,i,s,n,o):function(t,e,i,s){let n=[];return Ei(t,i,e,(function(t,i,o){const{startAngle:a,endAngle:r}=t.getProps([\"startAngle\",\"endAngle\"],s),{angle:l}=U(t,{x:e.x,y:e.y});G(l,a,r)&&n.push({element:t,datasetIndex:i,index:o})})),n}(t,e,i,n):[]}function Fi(t,e,i,s,n){const o=[],a=\"x\"===i?\"inXRange\":\"inYRange\";let r=!1;return Ei(t,i,e,((t,s,l)=>{t[a](e[i],n)&&(o.push({element:t,datasetIndex:s,index:l}),r=r||t.inRange(e.x,e.y,n))})),s&&!r?[]:o}var Vi={evaluateInteractionItems:Ei,modes:{index(t,e,i,s){const n=ue(e,t),o=i.axis||\"x\",a=i.includeInvisible||!1,r=i.intersect?Ri(t,n,o,s,a):zi(t,n,o,!1,s,a),l=[];return r.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=r[0].index,i=t.data[e];i&&!i.skip&&l.push({element:i,datasetIndex:t.index,index:e})})),l):[]},dataset(t,e,i,s){const n=ue(e,t),o=i.axis||\"xy\",a=i.includeInvisible||!1;let r=i.intersect?Ri(t,n,o,s,a):zi(t,n,o,!1,s,a);if(r.length>0){const e=r[0].datasetIndex,i=t.getDatasetMeta(e).data;r=[];for(let t=0;t<i.length;++t)r.push({element:i[t],datasetIndex:e,index:t})}return r},point:(t,e,i,s)=>Ri(t,ue(e,t),i.axis||\"xy\",s,i.includeInvisible||!1),nearest(t,e,i,s){const n=ue(e,t),o=i.axis||\"xy\",a=i.includeInvisible||!1;return zi(t,n,o,i.intersect,s,a)},x:(t,e,i,s)=>Fi(t,ue(e,t),\"x\",i.intersect,s),y:(t,e,i,s)=>Fi(t,ue(e,t),\"y\",i.intersect,s)}};const Bi=[\"left\",\"top\",\"right\",\"bottom\"];function Ni(t,e){return t.filter((t=>t.pos===e))}function Wi(t,e){return t.filter((t=>-1===Bi.indexOf(t.pos)&&t.box.axis===e))}function ji(t,e){return t.sort(((t,i)=>{const s=e?i:t,n=e?t:i;return s.weight===n.weight?s.index-n.index:s.weight-n.weight}))}function Hi(t,e){const i=function(t){const e={};for(const i of t){const{stack:t,pos:s,stackWeight:n}=i;if(!t||!Bi.includes(s))continue;const o=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=n}return e}(t),{vBoxMaxWidth:s,hBoxMaxHeight:n}=e;let o,a,r;for(o=0,a=t.length;o<a;++o){r=t[o];const{fullSize:a}=r.box,l=i[r.stack],h=l&&r.stackWeight/l.weight;r.horizontal?(r.width=h?h*s:a&&e.availableWidth,r.height=n):(r.width=s,r.height=h?h*n:a&&e.availableHeight)}return i}function $i(t,e,i,s){return Math.max(t[i],e[i])+Math.max(t[s],e[s])}function Yi(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function Ui(t,e,i,s){const{pos:o,box:a}=i,r=t.maxPadding;if(!n(o)){i.size&&(t[o]-=i.size);const e=s[i.stack]||{size:0,count:1};e.size=Math.max(e.size,i.horizontal?a.height:a.width),i.size=e.size/e.count,t[o]+=i.size}a.getPadding&&Yi(r,a.getPadding());const l=Math.max(0,e.outerWidth-$i(r,t,\"left\",\"right\")),h=Math.max(0,e.outerHeight-$i(r,t,\"top\",\"bottom\")),c=l!==t.w,d=h!==t.h;return t.w=l,t.h=h,i.horizontal?{same:c,other:d}:{same:d,other:c}}function Xi(t,e){const i=e.maxPadding;function s(t){const s={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{s[t]=Math.max(e[t],i[t])})),s}return s(t?[\"left\",\"right\"]:[\"top\",\"bottom\"])}function qi(t,e,i,s){const n=[];let o,a,r,l,h,c;for(o=0,a=t.length,h=0;o<a;++o){r=t[o],l=r.box,l.update(r.width||e.w,r.height||e.h,Xi(r.horizontal,e));const{same:a,other:d}=Ui(e,i,r,s);h|=a&&n.length,c=c||d,l.fullSize||n.push(r)}return h&&qi(n,e,i,s)||c}function Ki(t,e,i,s,n){t.top=i,t.left=e,t.right=e+s,t.bottom=i+n,t.width=s,t.height=n}function Gi(t,e,i,s){const n=i.padding;let{x:o,y:a}=e;for(const r of t){const t=r.box,l=s[r.stack]||{count:1,placed:0,weight:1},h=r.stackWeight/l.weight||1;if(r.horizontal){const s=e.w*h,o=l.size||t.height;M(l.start)&&(a=l.start),t.fullSize?Ki(t,n.left,a,i.outerWidth-n.right-n.left,o):Ki(t,e.left+l.placed,a,s,o),l.start=a,l.placed+=s,a=t.bottom}else{const s=e.h*h,a=l.size||t.width;M(l.start)&&(o=l.start),t.fullSize?Ki(t,o,n.top,a,i.outerHeight-n.bottom-n.top):Ki(t,o,e.top+l.placed,a,s),l.start=o,l.placed+=s,o=t.right}}e.x=o,e.y=a}ne.set(\"layout\",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var Zi={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||\"top\",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const i=t.boxes?t.boxes.indexOf(e):-1;-1!==i&&t.boxes.splice(i,1)},configure(t,e,i){e.fullSize=i.fullSize,e.position=i.position,e.weight=i.weight},update(t,e,i,s){if(!t)return;const n=pi(t.options.layout.padding),o=Math.max(e-n.width,0),a=Math.max(i-n.height,0),r=function(t){const e=function(t){const e=[];let i,s,n,o,a,r;for(i=0,s=(t||[]).length;i<s;++i)n=t[i],({position:o,options:{stack:a,stackWeight:r=1}}=n),e.push({index:i,box:n,pos:o,horizontal:n.isHorizontal(),weight:n.weight,stack:a&&o+a,stackWeight:r});return e}(t),i=ji(e.filter((t=>t.box.fullSize)),!0),s=ji(Ni(e,\"left\"),!0),n=ji(Ni(e,\"right\")),o=ji(Ni(e,\"top\"),!0),a=ji(Ni(e,\"bottom\")),r=Wi(e,\"x\"),l=Wi(e,\"y\");return{fullSize:i,leftAndTop:s.concat(o),rightAndBottom:n.concat(l).concat(a).concat(r),chartArea:Ni(e,\"chartArea\"),vertical:s.concat(n).concat(l),horizontal:o.concat(a).concat(r)}}(t.boxes),l=r.vertical,h=r.horizontal;d(t.boxes,(t=>{\"function\"==typeof t.beforeLayout&&t.beforeLayout()}));const c=l.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,u=Object.freeze({outerWidth:e,outerHeight:i,padding:n,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/c,hBoxMaxHeight:a/2}),f=Object.assign({},n);Yi(f,pi(s));const g=Object.assign({maxPadding:f,w:o,h:a,x:n.left,y:n.top},n),p=Hi(l.concat(h),u);qi(r.fullSize,g,u,p),qi(l,g,u,p),qi(h,g,u,p)&&qi(l,g,u,p),function(t){const e=t.maxPadding;function i(i){const s=Math.max(e[i]-t[i],0);return t[i]+=s,s}t.y+=i(\"top\"),t.x+=i(\"left\"),i(\"right\"),i(\"bottom\")}(g),Gi(r.leftAndTop,g,u,p),g.x+=g.w,g.y+=g.h,Gi(r.rightAndBottom,g,u,p),t.chartArea={left:g.left,top:g.top,right:g.left+g.w,bottom:g.top+g.h,height:g.h,width:g.w},d(r.chartArea,(e=>{const i=e.box;Object.assign(i,t.chartArea),i.update(g.w,g.h,{left:0,top:0,right:0,bottom:0})}))}};class Ji{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,i,s){return e=Math.max(0,e||t.width),i=i||t.height,{width:e,height:Math.max(0,s?Math.floor(e/s):i)}}isAttached(t){return!0}updateConfig(t){}}class Qi extends Ji{acquireContext(t){return t&&t.getContext&&t.getContext(\"2d\")||null}updateConfig(t){t.options.animation=!1}}const ts={touchstart:\"mousedown\",touchmove:\"mousemove\",touchend:\"mouseup\",pointerenter:\"mouseenter\",pointerdown:\"mousedown\",pointermove:\"mousemove\",pointerup:\"mouseup\",pointerleave:\"mouseout\",pointerout:\"mouseout\"},es=t=>null===t||\"\"===t;const is=!!me&&{passive:!0};function ss(t,e,i){t.canvas.removeEventListener(e,i,is)}function ns(t,e){for(const i of t)if(i===e||i.contains(e))return!0}function os(t,e,i){const s=t.canvas,n=new MutationObserver((t=>{let e=!1;for(const i of t)e=e||ns(i.addedNodes,s),e=e&&!ns(i.removedNodes,s);e&&i()}));return n.observe(document,{childList:!0,subtree:!0}),n}function as(t,e,i){const s=t.canvas,n=new MutationObserver((t=>{let e=!1;for(const i of t)e=e||ns(i.removedNodes,s),e=e&&!ns(i.addedNodes,s);e&&i()}));return n.observe(document,{childList:!0,subtree:!0}),n}const rs=new Map;let ls=0;function hs(){const t=window.devicePixelRatio;t!==ls&&(ls=t,rs.forEach(((e,i)=>{i.currentDevicePixelRatio!==t&&e()})))}function cs(t,e,i){const s=t.canvas,n=s&&ae(s);if(!n)return;const o=ht(((t,e)=>{const s=n.clientWidth;i(t,e),s<n.clientWidth&&i()}),window),a=new ResizeObserver((t=>{const e=t[0],i=e.contentRect.width,s=e.contentRect.height;0===i&&0===s||o(i,s)}));return a.observe(n),function(t,e){rs.size||window.addEventListener(\"resize\",hs),rs.set(t,e)}(t,o),a}function ds(t,e,i){i&&i.disconnect(),\"resize\"===e&&function(t){rs.delete(t),rs.size||window.removeEventListener(\"resize\",hs)}(t)}function us(t,e,i){const s=t.canvas,n=ht((e=>{null!==t.ctx&&i(function(t,e){const i=ts[t.type]||t.type,{x:s,y:n}=ue(t,e);return{type:i,chart:e,native:t,x:void 0!==s?s:null,y:void 0!==n?n:null}}(e,t))}),t,(t=>{const e=t[0];return[e,e.offsetX,e.offsetY]}));return function(t,e,i){t.addEventListener(e,i,is)}(s,e,n),n}class fs extends Ji{acquireContext(t,e){const i=t&&t.getContext&&t.getContext(\"2d\");return i&&i.canvas===t?(function(t,e){const i=t.style,s=t.getAttribute(\"height\"),n=t.getAttribute(\"width\");if(t.$chartjs={initial:{height:s,width:n,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||\"block\",i.boxSizing=i.boxSizing||\"border-box\",es(n)){const e=be(t,\"width\");void 0!==e&&(t.width=e)}if(es(s))if(\"\"===t.style.height)t.height=t.width/(e||2);else{const e=be(t,\"height\");void 0!==e&&(t.height=e)}}(t,e),i):null}releaseContext(t){const e=t.canvas;if(!e.$chartjs)return!1;const s=e.$chartjs.initial;[\"height\",\"width\"].forEach((t=>{const n=s[t];i(n)?e.removeAttribute(t):e.setAttribute(t,n)}));const n=s.style||{};return Object.keys(n).forEach((t=>{e.style[t]=n[t]})),e.width=e.width,delete e.$chartjs,!0}addEventListener(t,e,i){this.removeEventListener(t,e);const s=t.$proxies||(t.$proxies={}),n={attach:os,detach:as,resize:cs}[e]||us;s[e]=n(t,e,i)}removeEventListener(t,e){const i=t.$proxies||(t.$proxies={}),s=i[e];if(!s)return;({attach:ds,detach:ds,resize:ds}[e]||ss)(t,e,s),i[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,s){return ge(t,e,i,s)}isAttached(t){const e=ae(t);return!(!e||!e.isConnected)}}function gs(t){return!oe()||\"undefined\"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?Qi:fs}var ps=Object.freeze({__proto__:null,_detectPlatform:gs,BasePlatform:Ji,BasicPlatform:Qi,DomPlatform:fs});const ms=\"transparent\",bs={boolean:(t,e,i)=>i>.5?e:t,color(t,e,i){const s=Jt(t||ms),n=s.valid&&Jt(e||ms);return n&&n.valid?n.mix(s,i).hexString():e},number:(t,e,i)=>t+(e-t)*i};class xs{constructor(t,e,i,s){const n=e[i];s=bi([t.to,s,n,t.from]);const o=bi([t.from,n,s]);this._active=!0,this._fn=t.fn||bs[t.type||typeof o],this._easing=si[t.easing]||si.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=i,this._from=o,this._to=s,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);const s=this._target[this._prop],n=i-this._start,o=this._duration-n;this._start=i,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=n,this._loop=!!t.loop,this._to=bi([t.to,e,s,t.from]),this._from=bi([t.from,s,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,i=this._duration,s=this._prop,n=this._from,o=this._loop,a=this._to;let r;if(this._active=n!==a&&(o||e<i),!this._active)return this._target[s]=a,void this._notify(!0);e<0?this._target[s]=n:(r=e/i%2,r=o&&r>1?2-r:r,r=this._easing(Math.min(1,Math.max(0,r))),this._target[s]=this._fn(n,a,r))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,i)=>{t.push({res:e,rej:i})}))}_notify(t){const e=t?\"res\":\"rej\",i=this._promises||[];for(let t=0;t<i.length;t++)i[t][e]()}}ne.set(\"animation\",{delay:void 0,duration:1e3,easing:\"easeOutQuart\",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});const _s=Object.keys(ne.animation);ne.describe(\"animation\",{_fallback:!1,_indexable:!1,_scriptable:t=>\"onProgress\"!==t&&\"onComplete\"!==t&&\"fn\"!==t}),ne.set(\"animations\",{colors:{type:\"color\",properties:[\"color\",\"borderColor\",\"backgroundColor\"]},numbers:{type:\"number\",properties:[\"x\",\"y\",\"borderWidth\",\"radius\",\"tension\"]}}),ne.describe(\"animations\",{_fallback:\"animation\"}),ne.set(\"transitions\",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:\"transparent\"},visible:{type:\"boolean\",duration:0}}},hide:{animations:{colors:{to:\"transparent\"},visible:{type:\"boolean\",easing:\"linear\",fn:t=>0|t}}}});class ys{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!n(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach((i=>{const o=t[i];if(!n(o))return;const a={};for(const t of _s)a[t]=o[t];(s(o.properties)&&o.properties||[i]).forEach((t=>{t!==i&&e.has(t)||e.set(t,a)}))}))}_animateOptions(t,e){const i=e.options,s=function(t,e){if(!e)return;let i=t.options;if(!i)return void(t.options=e);i.$shared&&(t.options=i=Object.assign({},i,{$shared:!1,$animations:{}}));return i}(t,i);if(!s)return[];const n=this._createAnimations(s,i);return i.$shared&&function(t,e){const i=[],s=Object.keys(e);for(let e=0;e<s.length;e++){const n=t[s[e]];n&&n.active()&&i.push(n.wait())}return Promise.all(i)}(t.options.$animations,i).then((()=>{t.options=i}),(()=>{})),n}_createAnimations(t,e){const i=this._properties,s=[],n=t.$animations||(t.$animations={}),o=Object.keys(e),a=Date.now();let r;for(r=o.length-1;r>=0;--r){const l=o[r];if(\"$\"===l.charAt(0))continue;if(\"options\"===l){s.push(...this._animateOptions(t,e));continue}const h=e[l];let c=n[l];const d=i.get(l);if(c){if(d&&c.active()){c.update(d,h,a);continue}c.cancel()}d&&d.duration?(n[l]=c=new xs(d,t,l,h),s.push(c)):t[l]=h}return s}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const i=this._createAnimations(t,e);return i.length?(mt.add(this._chart,i),!0):void 0}}function vs(t,e){const i=t&&t.options||{},s=i.reverse,n=void 0===i.min?e:0,o=void 0===i.max?e:0;return{start:s?o:n,end:s?n:o}}function ws(t,e){const i=[],s=t._getSortedDatasetMetas(e);let n,o;for(n=0,o=s.length;n<o;++n)i.push(s[n].index);return i}function Ms(t,e,i,s={}){const n=t.keys,a=\"single\"===s.mode;let r,l,h,c;if(null!==e){for(r=0,l=n.length;r<l;++r){if(h=+n[r],h===i){if(s.all)continue;break}c=t.values[h],o(c)&&(a||0===e||z(e)===z(c))&&(e+=c)}return e}}function ks(t,e){const i=t&&t.options.stacked;return i||void 0===i&&void 0!==e.stack}function Ss(t,e,i){const s=t[e]||(t[e]={});return s[i]||(s[i]={})}function Ps(t,e,i,s){for(const n of e.getMatchingVisibleMetas(s).reverse()){const e=t[n.index];if(i&&e>0||!i&&e<0)return n.index}return null}function Ds(t,e){const{chart:i,_cachedMeta:s}=t,n=i._stacks||(i._stacks={}),{iScale:o,vScale:a,index:r}=s,l=o.axis,h=a.axis,c=function(t,e,i){return`${t.id}.${e.id}.${i.stack||i.type}`}(o,a,s),d=e.length;let u;for(let t=0;t<d;++t){const i=e[t],{[l]:o,[h]:d}=i;u=(i._stacks||(i._stacks={}))[h]=Ss(n,c,o),u[r]=d,u._top=Ps(u,a,!0,s.type),u._bottom=Ps(u,a,!1,s.type)}}function Os(t,e){const i=t.scales;return Object.keys(i).filter((t=>i[t].axis===e)).shift()}function Cs(t,e){const i=t.controller.index,s=t.vScale&&t.vScale.axis;if(s){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[s]||void 0===e[s][i])return;delete e[s][i]}}}const As=t=>\"reset\"===t||\"none\"===t,Ts=(t,e)=>e?t:Object.assign({},t);class Ls{constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=ks(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&Cs(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,i=this.getDataset(),s=(t,e,i,s)=>\"x\"===t?e:\"r\"===t?s:i,n=e.xAxisID=r(i.xAxisID,Os(t,\"x\")),o=e.yAxisID=r(i.yAxisID,Os(t,\"y\")),a=e.rAxisID=r(i.rAxisID,Os(t,\"r\")),l=e.indexAxis,h=e.iAxisID=s(l,n,o,a),c=e.vAxisID=s(l,o,n,a);e.xScale=this.getScaleForId(n),e.yScale=this.getScaleForId(o),e.rScale=this.getScaleForId(a),e.iScale=this.getScaleForId(h),e.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update(\"reset\")}_destroy(){const t=this._cachedMeta;this._data&&at(this._data,this),t._stacked&&Cs(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if(n(e))this._data=function(t){const e=Object.keys(t),i=new Array(e.length);let s,n,o;for(s=0,n=e.length;s<n;++s)o=e[s],i[s]={x:o,y:t[o]};return i}(e);else if(i!==e){if(i){at(i,this);const t=this._cachedMeta;Cs(t),t._parsed=[]}e&&Object.isExtensible(e)&&ot(e,this),this._syncList=[],this._data=e}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,i=this.getDataset();let s=!1;this._dataCheck();const n=e._stacked;e._stacked=ks(e.vScale,e),e.stack!==i.stack&&(s=!0,Cs(e),e.stack=i.stack),this._resyncElements(t),(s||n!==e._stacked)&&Ds(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:i,_data:o}=this,{iScale:a,_stacked:r}=i,l=a.axis;let h,c,d,u=0===t&&e===o.length||i._sorted,f=t>0&&i._parsed[t-1];if(!1===this._parsing)i._parsed=o,i._sorted=!0,d=o;else{d=s(o[t])?this.parseArrayData(i,o,t,e):n(o[t])?this.parseObjectData(i,o,t,e):this.parsePrimitiveData(i,o,t,e);const a=()=>null===c[l]||f&&c[l]<f[l];for(h=0;h<e;++h)i._parsed[h+t]=c=d[h],u&&(a()&&(u=!1),f=c);i._sorted=u}r&&Ds(this,d)}parsePrimitiveData(t,e,i,s){const{iScale:n,vScale:o}=t,a=n.axis,r=o.axis,l=n.getLabels(),h=n===o,c=new Array(s);let d,u,f;for(d=0,u=s;d<u;++d)f=d+i,c[d]={[a]:h||n.parse(l[f],f),[r]:o.parse(e[f],f)};return c}parseArrayData(t,e,i,s){const{xScale:n,yScale:o}=t,a=new Array(s);let r,l,h,c;for(r=0,l=s;r<l;++r)h=r+i,c=e[h],a[r]={x:n.parse(c[0],h),y:o.parse(c[1],h)};return a}parseObjectData(t,e,i,s){const{xScale:n,yScale:o}=t,{xAxisKey:a=\"x\",yAxisKey:r=\"y\"}=this._parsing,l=new Array(s);let h,c,d,u;for(h=0,c=s;h<c;++h)d=h+i,u=e[d],l[h]={x:n.parse(y(u,a),d),y:o.parse(y(u,r),d)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,i){const s=this.chart,n=this._cachedMeta,o=e[t.axis];return Ms({keys:ws(s,!0),values:e._stacks[t.axis]},o,n.index,{mode:i})}updateRangeFromParsed(t,e,i,s){const n=i[e.axis];let o=null===n?NaN:n;const a=s&&i._stacks[e.axis];s&&a&&(s.values=a,o=Ms(s,n,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,e){const i=this._cachedMeta,s=i._parsed,n=i._sorted&&t===i.iScale,a=s.length,r=this._getOtherScale(t),l=((t,e,i)=>t&&!e.hidden&&e._stacked&&{keys:ws(i,!0),values:null})(e,i,this.chart),h={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:d}=function(t){const{min:e,max:i,minDefined:s,maxDefined:n}=t.getUserBounds();return{min:s?e:Number.NEGATIVE_INFINITY,max:n?i:Number.POSITIVE_INFINITY}}(r);let u,f;function g(){f=s[u];const e=f[r.axis];return!o(f[t.axis])||c>e||d<e}for(u=0;u<a&&(g()||(this.updateRangeFromParsed(h,t,f,l),!n));++u);if(n)for(u=a-1;u>=0;--u)if(!g()){this.updateRangeFromParsed(h,t,f,l);break}return h}getAllParsedValues(t){const e=this._cachedMeta._parsed,i=[];let s,n,a;for(s=0,n=e.length;s<n;++s)a=e[s][t.axis],o(a)&&i.push(a);return i}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,i=e.iScale,s=e.vScale,n=this.getParsed(t);return{label:i?\"\"+i.getLabelForValue(n[i.axis]):\"\",value:s?\"\"+s.getLabelForValue(n[s.axis]):\"\"}}_update(t){const e=this._cachedMeta;this.update(t||\"default\"),e._clip=function(t){let e,i,s,o;return n(t)?(e=t.top,i=t.right,s=t.bottom,o=t.left):e=i=s=o=t,{top:e,right:i,bottom:s,left:o,disabled:!1===t}}(r(this.options.clip,function(t,e,i){if(!1===i)return!1;const s=vs(t,i),n=vs(e,i);return{top:n.end,right:s.end,bottom:n.start,left:s.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,i=this._cachedMeta,s=i.data||[],n=e.chartArea,o=[],a=this._drawStart||0,r=this._drawCount||s.length-a,l=this.options.drawActiveElementsOnTop;let h;for(i.dataset&&i.dataset.draw(t,n,a,r),h=a;h<a+r;++h){const e=s[h];e.hidden||(e.active&&l?o.push(e):e.draw(t,n))}for(h=0;h<o.length;++h)o[h].draw(t,n)}getStyle(t,e){const i=e?\"active\":\"default\";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(t||0,i)}getContext(t,e,i){const s=this.getDataset();let n;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];n=e.$context||(e.$context=function(t,e,i){return _i(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:i,index:e,mode:\"default\",type:\"data\"})}(this.getContext(),t,e)),n.parsed=this.getParsed(t),n.raw=s.data[t],n.index=n.dataIndex=t}else n=this.$context||(this.$context=function(t,e){return _i(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:\"default\",type:\"dataset\"})}(this.chart.getContext(),this.index)),n.dataset=s,n.index=n.datasetIndex=this.index;return n.active=!!e,n.mode=i,n}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e=\"default\",i){const s=\"active\"===e,n=this._cachedDataOpts,o=t+\"-\"+e,a=n[o],r=this.enableOptionSharing&&M(i);if(a)return Ts(a,r);const l=this.chart.config,h=l.datasetElementScopeKeys(this._type,t),c=s?[`${t}Hover`,\"hover\",t,\"\"]:[t,\"\"],d=l.getOptionScopes(this.getDataset(),h),u=Object.keys(ne.elements[t]),f=l.resolveNamedOptions(d,u,(()=>this.getContext(i,s)),c);return f.$shared&&(f.$shared=r,n[o]=Object.freeze(Ts(f,r))),f}_resolveAnimations(t,e,i){const s=this.chart,n=this._cachedDataOpts,o=`animation-${e}`,a=n[o];if(a)return a;let r;if(!1!==s.options.animation){const s=this.chart.config,n=s.datasetAnimationScopeKeys(this._type,e),o=s.getOptionScopes(this.getDataset(),n);r=s.createResolver(o,this.getContext(t,i,e))}const l=new ys(s,r&&r.animations);return r&&r._cacheable&&(n[o]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||As(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const i=this.resolveDataElementOptions(t,e),s=this._sharedOptions,n=this.getSharedOptions(i),o=this.includeOptions(e,n)||n!==s;return this.updateSharedOptions(n,e,i),{sharedOptions:n,includeOptions:o}}updateElement(t,e,i,s){As(s)?Object.assign(t,i):this._resolveAnimations(e,s).update(t,i)}updateSharedOptions(t,e,i){t&&!As(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,s){t.active=s;const n=this.getStyle(e,s);this._resolveAnimations(e,i,s).update(t,{options:!s&&this.getSharedOptions(n)||n})}removeHoverStyle(t,e,i){this._setStyle(t,i,\"active\",!1)}setHoverStyle(t,e,i){this._setStyle(t,i,\"active\",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,\"active\",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,\"active\",!0)}_resyncElements(t){const e=this._data,i=this._cachedMeta.data;for(const[t,e,i]of this._syncList)this[t](e,i);this._syncList=[];const s=i.length,n=e.length,o=Math.min(n,s);o&&this.parse(0,o),n>s?this._insertElements(s,n-s,t):n<s&&this._removeElements(n,s-n)}_insertElements(t,e,i=!0){const s=this._cachedMeta,n=s.data,o=t+e;let a;const r=t=>{for(t.length+=e,a=t.length-1;a>=o;a--)t[a]=t[a-e]};for(r(n),a=t;a<o;++a)n[a]=new this.dataElementType;this._parsing&&r(s._parsed),this.parse(t,e),i&&this.updateElements(n,t,e,\"reset\")}updateElements(t,e,i,s){}_removeElements(t,e){const i=this._cachedMeta;if(this._parsing){const s=i._parsed.splice(t,e);i._stacked&&Cs(i,s)}i.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,i,s]=t;this[e](i,s)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync([\"_insertElements\",this.getDataset().data.length-t,t])}_onDataPop(){this._sync([\"_removeElements\",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync([\"_removeElements\",0,1])}_onDataSplice(t,e){e&&this._sync([\"_removeElements\",t,e]);const i=arguments.length-2;i&&this._sync([\"_insertElements\",t,i])}_onDataUnshift(){this._sync([\"_insertElements\",0,arguments.length])}}Ls.defaults={},Ls.prototype.datasetElementType=null,Ls.prototype.dataElementType=null;class Es{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(t){const{x:e,y:i}=this.getProps([\"x\",\"y\"],t);return{x:e,y:i}}hasValue(){return B(this.x)&&B(this.y)}getProps(t,e){const i=this.$animations;if(!e||!i)return this;const s={};return t.forEach((t=>{s[t]=i[t]&&i[t].active()?i[t]._to:this[t]})),s}}Es.defaults={},Es.defaultRoutes=void 0;const Rs={values:t=>s(t)?t:\"\"+t,numeric(t,e,i){if(0===t)return\"0\";const s=this.chart.options.locale;let n,o=t;if(i.length>1){const e=Math.max(Math.abs(i[0].value),Math.abs(i[i.length-1].value));(e<1e-4||e>1e15)&&(n=\"scientific\"),o=function(t,e){let i=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;Math.abs(i)>=1&&t!==Math.floor(t)&&(i=t-Math.floor(t));return i}(t,i)}const a=I(Math.abs(o)),r=Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:n,minimumFractionDigits:r,maximumFractionDigits:r};return Object.assign(l,this.options.ticks.format),li(t,s,l)},logarithmic(t,e,i){if(0===t)return\"0\";const s=t/Math.pow(10,Math.floor(I(t)));return 1===s||2===s||5===s?Rs.numeric.call(this,t,e,i):\"\"}};var Is={formatters:Rs};function zs(t,e){const s=t.options.ticks,n=s.maxTicksLimit||function(t){const e=t.options.offset,i=t._tickSize(),s=t._length/i+(e?0:1),n=t._maxLength/i;return Math.floor(Math.min(s,n))}(t),o=s.major.enabled?function(t){const e=[];let i,s;for(i=0,s=t.length;i<s;i++)t[i].major&&e.push(i);return e}(e):[],a=o.length,r=o[0],l=o[a-1],h=[];if(a>n)return function(t,e,i,s){let n,o=0,a=i[0];for(s=Math.ceil(s),n=0;n<t.length;n++)n===a&&(e.push(t[n]),o++,a=i[o*s])}(e,h,o,a/n),h;const c=function(t,e,i){const s=function(t){const e=t.length;let i,s;if(e<2)return!1;for(s=t[0],i=1;i<e;++i)if(t[i]-t[i-1]!==s)return!1;return s}(t),n=e.length/i;if(!s)return Math.max(n,1);const o=V(s);for(let t=0,e=o.length-1;t<e;t++){const e=o[t];if(e>n)return e}return Math.max(n,1)}(o,e,n);if(a>0){let t,s;const n=a>1?Math.round((l-r)/(a-1)):null;for(Fs(e,h,c,i(n)?0:r-n,r),t=0,s=a-1;t<s;t++)Fs(e,h,c,o[t],o[t+1]);return Fs(e,h,c,l,i(n)?e.length:l+n),h}return Fs(e,h,c),h}function Fs(t,e,i,s,n){const o=r(s,0),a=Math.min(r(n,t.length),t.length);let l,h,c,d=0;for(i=Math.ceil(i),n&&(l=n-s,i=l/Math.floor(l/i)),c=o;c<0;)d++,c=Math.round(o+d*i);for(h=Math.max(o,0);h<a;h++)h===c&&(e.push(t[h]),d++,c=Math.round(o+d*i))}ne.set(\"scale\",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:\"ticks\",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:\"\",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:\"\",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Is.formatters.values,minor:{},major:{},align:\"center\",crossAlign:\"near\",showLabelBackdrop:!1,backdropColor:\"rgba(255, 255, 255, 0.75)\",backdropPadding:2}}),ne.route(\"scale.ticks\",\"color\",\"\",\"color\"),ne.route(\"scale.grid\",\"color\",\"\",\"borderColor\"),ne.route(\"scale.grid\",\"borderColor\",\"\",\"borderColor\"),ne.route(\"scale.title\",\"color\",\"\",\"color\"),ne.describe(\"scale\",{_fallback:!1,_scriptable:t=>!t.startsWith(\"before\")&&!t.startsWith(\"after\")&&\"callback\"!==t&&\"parser\"!==t,_indexable:t=>\"borderDash\"!==t&&\"tickBorderDash\"!==t}),ne.describe(\"scales\",{_fallback:\"scale\"}),ne.describe(\"scale.ticks\",{_scriptable:t=>\"backdropPadding\"!==t&&\"callback\"!==t,_indexable:t=>\"backdropPadding\"!==t});const Vs=(t,e,i)=>\"top\"===e||\"left\"===e?t[e]+i:t[e]-i;function Bs(t,e){const i=[],s=t.length/e,n=t.length;let o=0;for(;o<n;o+=s)i.push(t[Math.floor(o)]);return i}function Ns(t,e,i){const s=t.ticks.length,n=Math.min(e,s-1),o=t._startPixel,a=t._endPixel,r=1e-6;let l,h=t.getPixelForTick(n);if(!(i&&(l=1===s?Math.max(h-o,a-h):0===e?(t.getPixelForTick(1)-h)/2:(h-t.getPixelForTick(n-1))/2,h+=n<e?l:-l,h<o-r||h>a+r)))return h}function Ws(t){return t.drawTicks?t.tickLength:0}function js(t,e){if(!t.display)return 0;const i=mi(t.font,e),n=pi(t.padding);return(s(t.text)?t.text.length:1)*i.lineHeight+n.height}function Hs(t,e,i){let s=dt(t);return(i&&\"right\"!==e||!i&&\"right\"===e)&&(s=(t=>\"left\"===t?\"right\":\"right\"===t?\"left\":t)(s)),s}class $s extends Es{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:i,_suggestedMax:s}=this;return t=a(t,Number.POSITIVE_INFINITY),e=a(e,Number.NEGATIVE_INFINITY),i=a(i,Number.POSITIVE_INFINITY),s=a(s,Number.NEGATIVE_INFINITY),{min:a(t,i),max:a(e,s),minDefined:o(t),maxDefined:o(e)}}getMinMax(t){let e,{min:i,max:s,minDefined:n,maxDefined:o}=this.getUserBounds();if(n&&o)return{min:i,max:s};const r=this.getMatchingVisibleMetas();for(let a=0,l=r.length;a<l;++a)e=r[a].controller.getMinMax(this,t),n||(i=Math.min(i,e.min)),o||(s=Math.max(s,e.max));return i=o&&i>s?s:i,s=n&&i>s?i:s,{min:a(i,a(s,i)),max:a(s,a(i,s))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){c(this.options.beforeUpdate,[this])}update(t,e,i){const{beginAtZero:s,grace:n,ticks:o}=this.options,a=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=xi(this,n,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const r=a<this.ticks.length;this._convertTicksToLabels(r?Bs(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||\"auto\"===o.source)&&(this.ticks=zs(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),r&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,i=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,i=!i),this._startPixel=t,this._endPixel=e,this._reversePixels=i,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){c(this.options.afterUpdate,[this])}beforeSetDimensions(){c(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){c(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),c(this.options[t],[this])}beforeDataLimits(){this._callHooks(\"beforeDataLimits\")}determineDataLimits(){}afterDataLimits(){this._callHooks(\"afterDataLimits\")}beforeBuildTicks(){this._callHooks(\"beforeBuildTicks\")}buildTicks(){return[]}afterBuildTicks(){this._callHooks(\"afterBuildTicks\")}beforeTickToLabelConversion(){c(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let i,s,n;for(i=0,s=t.length;i<s;i++)n=t[i],n.label=c(e.callback,[n.value,i,t],this)}afterTickToLabelConversion(){c(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){c(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,i=this.ticks.length,s=e.minRotation||0,n=e.maxRotation;let o,a,r,l=s;if(!this._isVisible()||!e.display||s>=n||i<=1||!this.isHorizontal())return void(this.labelRotation=s);const h=this._getLabelSizes(),c=h.widest.width,d=h.highest.height,u=Z(this.chart.width-c,0,this.maxWidth);o=t.offset?this.maxWidth/i:u/(i-1),c+6>o&&(o=u/(i-(t.offset?.5:1)),a=this.maxHeight-Ws(t.grid)-e.padding-js(t.title,this.chart.options.font),r=Math.sqrt(c*c+d*d),l=$(Math.min(Math.asin(Z((h.highest.height+6)/o,-1,1)),Math.asin(Z(a/r,-1,1))-Math.asin(Z(d/r,-1,1)))),l=Math.max(s,Math.min(n,l))),this.labelRotation=l}afterCalculateLabelRotation(){c(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){c(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:i,title:s,grid:n}}=this,o=this._isVisible(),a=this.isHorizontal();if(o){const o=js(s,e.options.font);if(a?(t.width=this.maxWidth,t.height=Ws(n)+o):(t.height=this.maxHeight,t.width=Ws(n)+o),i.display&&this.ticks.length){const{first:e,last:s,widest:n,highest:o}=this._getLabelSizes(),r=2*i.padding,l=H(this.labelRotation),h=Math.cos(l),c=Math.sin(l);if(a){const e=i.mirror?0:c*n.width+h*o.height;t.height=Math.min(this.maxHeight,t.height+e+r)}else{const e=i.mirror?0:h*n.width+c*o.height;t.width=Math.min(this.maxWidth,t.width+e+r)}this._calculatePadding(e,s,c,h)}}this._handleMargins(),a?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,i,s){const{ticks:{align:n,padding:o},position:a}=this.options,r=0!==this.labelRotation,l=\"top\"!==a&&\"x\"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,h=this.right-this.getPixelForTick(this.ticks.length-1);let c=0,d=0;r?l?(c=s*t.width,d=i*e.height):(c=i*t.height,d=s*e.width):\"start\"===n?d=e.width:\"end\"===n?c=t.width:\"inner\"!==n&&(c=t.width/2,d=e.width/2),this.paddingLeft=Math.max((c-a+o)*this.width/(this.width-a),0),this.paddingRight=Math.max((d-h+o)*this.width/(this.width-h),0)}else{let i=e.height/2,s=t.height/2;\"start\"===n?(i=0,s=t.height):\"end\"===n&&(i=e.height,s=0),this.paddingTop=i+o,this.paddingBottom=s+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){c(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return\"top\"===e||\"bottom\"===e||\"x\"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,s;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,s=t.length;e<s;e++)i(t[e].label)&&(t.splice(e,1),s--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let i=this.ticks;e<i.length&&(i=Bs(i,e)),this._labelSizes=t=this._computeLabelSizes(i,i.length)}return t}_computeLabelSizes(t,e){const{ctx:n,_longestTextCache:o}=this,a=[],r=[];let l,h,c,u,f,g,p,m,b,x,_,y=0,v=0;for(l=0;l<e;++l){if(u=t[l].label,f=this._resolveTickFontOptions(l),n.font=g=f.string,p=o[g]=o[g]||{data:{},gc:[]},m=f.lineHeight,b=x=0,i(u)||s(u)){if(s(u))for(h=0,c=u.length;h<c;++h)_=u[h],i(_)||s(_)||(b=_e(n,p.data,p.gc,b,_),x+=m)}else b=_e(n,p.data,p.gc,b,u),x=m;a.push(b),r.push(x),y=Math.max(b,y),v=Math.max(x,v)}!function(t,e){d(t,(t=>{const i=t.gc,s=i.length/2;let n;if(s>e){for(n=0;n<s;++n)delete t.data[i[n]];i.splice(0,s)}}))}(o,e);const w=a.indexOf(y),M=r.indexOf(v),k=t=>({width:a[t]||0,height:r[t]||0});return{first:k(0),last:k(e-1),widest:k(w),highest:k(M),widths:a,heights:r}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return J(this._alignToPixels?ve(this.chart,e,0):e)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const i=e[t];return i.$context||(i.$context=function(t,e,i){return _i(t,{tick:i,index:e,type:\"tick\"})}(this.getContext(),t,i))}return this.$context||(this.$context=_i(this.chart.getContext(),{scale:this,type:\"scale\"}))}_tickSize(){const t=this.options.ticks,e=H(this.labelRotation),i=Math.abs(Math.cos(e)),s=Math.abs(Math.sin(e)),n=this._getLabelSizes(),o=t.autoSkipPadding||0,a=n?n.widest.width+o:0,r=n?n.highest.height+o:0;return this.isHorizontal()?r*i>a*s?a/i:r/s:r*s<a*i?r/i:a/s}_isVisible(){const t=this.options.display;return\"auto\"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,i=this.chart,s=this.options,{grid:o,position:a}=s,l=o.offset,h=this.isHorizontal(),c=this.ticks.length+(l?1:0),d=Ws(o),u=[],f=o.setContext(this.getContext()),g=f.drawBorder?f.borderWidth:0,p=g/2,m=function(t){return ve(i,t,g)};let b,x,_,y,v,w,M,k,S,P,D,O;if(\"top\"===a)b=m(this.bottom),w=this.bottom-d,k=b-p,P=m(t.top)+p,O=t.bottom;else if(\"bottom\"===a)b=m(this.top),P=t.top,O=m(t.bottom)-p,w=b+p,k=this.top+d;else if(\"left\"===a)b=m(this.right),v=this.right-d,M=b-p,S=m(t.left)+p,D=t.right;else if(\"right\"===a)b=m(this.left),S=t.left,D=m(t.right)-p,v=b+p,M=this.left+d;else if(\"x\"===e){if(\"center\"===a)b=m((t.top+t.bottom)/2+.5);else if(n(a)){const t=Object.keys(a)[0],e=a[t];b=m(this.chart.scales[t].getPixelForValue(e))}P=t.top,O=t.bottom,w=b+p,k=w+d}else if(\"y\"===e){if(\"center\"===a)b=m((t.left+t.right)/2);else if(n(a)){const t=Object.keys(a)[0],e=a[t];b=m(this.chart.scales[t].getPixelForValue(e))}v=b-p,M=v-d,S=t.left,D=t.right}const C=r(s.ticks.maxTicksLimit,c),A=Math.max(1,Math.ceil(c/C));for(x=0;x<c;x+=A){const t=o.setContext(this.getContext(x)),e=t.lineWidth,s=t.color,n=t.borderDash||[],a=t.borderDashOffset,r=t.tickWidth,c=t.tickColor,d=t.tickBorderDash||[],f=t.tickBorderDashOffset;_=Ns(this,x,l),void 0!==_&&(y=ve(i,_,e),h?v=M=S=D=y:w=k=P=O=y,u.push({tx1:v,ty1:w,tx2:M,ty2:k,x1:S,y1:P,x2:D,y2:O,width:e,color:s,borderDash:n,borderDashOffset:a,tickWidth:r,tickColor:c,tickBorderDash:d,tickBorderDashOffset:f}))}return this._ticksLength=c,this._borderValue=b,u}_computeLabelItems(t){const e=this.axis,i=this.options,{position:o,ticks:a}=i,r=this.isHorizontal(),l=this.ticks,{align:h,crossAlign:c,padding:d,mirror:u}=a,f=Ws(i.grid),g=f+d,p=u?-d:g,m=-H(this.labelRotation),b=[];let x,_,y,v,w,M,k,S,P,D,O,C,A=\"middle\";if(\"top\"===o)M=this.bottom-p,k=this._getXAxisLabelAlignment();else if(\"bottom\"===o)M=this.top+p,k=this._getXAxisLabelAlignment();else if(\"left\"===o){const t=this._getYAxisLabelAlignment(f);k=t.textAlign,w=t.x}else if(\"right\"===o){const t=this._getYAxisLabelAlignment(f);k=t.textAlign,w=t.x}else if(\"x\"===e){if(\"center\"===o)M=(t.top+t.bottom)/2+g;else if(n(o)){const t=Object.keys(o)[0],e=o[t];M=this.chart.scales[t].getPixelForValue(e)+g}k=this._getXAxisLabelAlignment()}else if(\"y\"===e){if(\"center\"===o)w=(t.left+t.right)/2-g;else if(n(o)){const t=Object.keys(o)[0],e=o[t];w=this.chart.scales[t].getPixelForValue(e)}k=this._getYAxisLabelAlignment(f).textAlign}\"y\"===e&&(\"start\"===h?A=\"top\":\"end\"===h&&(A=\"bottom\"));const T=this._getLabelSizes();for(x=0,_=l.length;x<_;++x){y=l[x],v=y.label;const t=a.setContext(this.getContext(x));S=this.getPixelForTick(x)+a.labelOffset,P=this._resolveTickFontOptions(x),D=P.lineHeight,O=s(v)?v.length:1;const e=O/2,i=t.color,n=t.textStrokeColor,h=t.textStrokeWidth;let d,f=k;if(r?(w=S,\"inner\"===k&&(f=x===_-1?this.options.reverse?\"left\":\"right\":0===x?this.options.reverse?\"right\":\"left\":\"center\"),C=\"top\"===o?\"near\"===c||0!==m?-O*D+D/2:\"center\"===c?-T.highest.height/2-e*D+D:-T.highest.height+D/2:\"near\"===c||0!==m?D/2:\"center\"===c?T.highest.height/2-e*D:T.highest.height-O*D,u&&(C*=-1)):(M=S,C=(1-O)*D/2),t.showLabelBackdrop){const e=pi(t.backdropPadding),i=T.heights[x],s=T.widths[x];let n=M+C-e.top,o=w-e.left;switch(A){case\"middle\":n-=i/2;break;case\"bottom\":n-=i}switch(k){case\"center\":o-=s/2;break;case\"right\":o-=s}d={left:o,top:n,width:s+e.width,height:i+e.height,color:t.backdropColor}}b.push({rotation:m,label:v,font:P,color:i,strokeColor:n,strokeWidth:h,textOffset:C,textAlign:f,textBaseline:A,translation:[w,M],backdrop:d})}return b}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-H(this.labelRotation))return\"top\"===t?\"left\":\"right\";let i=\"center\";return\"start\"===e.align?i=\"left\":\"end\"===e.align?i=\"right\":\"inner\"===e.align&&(i=\"inner\"),i}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:i,mirror:s,padding:n}}=this.options,o=t+n,a=this._getLabelSizes().widest.width;let r,l;return\"left\"===e?s?(l=this.right+n,\"near\"===i?r=\"left\":\"center\"===i?(r=\"center\",l+=a/2):(r=\"right\",l+=a)):(l=this.right-o,\"near\"===i?r=\"right\":\"center\"===i?(r=\"center\",l-=a/2):(r=\"left\",l=this.left)):\"right\"===e?s?(l=this.left+n,\"near\"===i?r=\"right\":\"center\"===i?(r=\"center\",l-=a/2):(r=\"left\",l-=a)):(l=this.left+o,\"near\"===i?r=\"left\":\"center\"===i?(r=\"center\",l+=a/2):(r=\"right\",l=this.right)):r=\"right\",{textAlign:r,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return\"left\"===e||\"right\"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:\"top\"===e||\"bottom\"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:i,top:s,width:n,height:o}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(i,s,n,o),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const i=this.ticks.findIndex((e=>e.value===t));if(i>=0){return e.setContext(this.getContext(i)).lineWidth}return 0}drawGrid(t){const e=this.options.grid,i=this.ctx,s=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let n,o;const a=(t,e,s)=>{s.width&&s.color&&(i.save(),i.lineWidth=s.width,i.strokeStyle=s.color,i.setLineDash(s.borderDash||[]),i.lineDashOffset=s.borderDashOffset,i.beginPath(),i.moveTo(t.x,t.y),i.lineTo(e.x,e.y),i.stroke(),i.restore())};if(e.display)for(n=0,o=s.length;n<o;++n){const t=s[n];e.drawOnChartArea&&a({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&a({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{grid:i}}=this,s=i.setContext(this.getContext()),n=i.drawBorder?s.borderWidth:0;if(!n)return;const o=i.setContext(this.getContext(0)).lineWidth,a=this._borderValue;let r,l,h,c;this.isHorizontal()?(r=ve(t,this.left,n)-n/2,l=ve(t,this.right,o)+o/2,h=c=a):(h=ve(t,this.top,n)-n/2,c=ve(t,this.bottom,o)+o/2,r=l=a),e.save(),e.lineWidth=s.borderWidth,e.strokeStyle=s.borderColor,e.beginPath(),e.moveTo(r,h),e.lineTo(l,c),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,i=this._computeLabelArea();i&&Pe(e,i);const s=this._labelItems||(this._labelItems=this._computeLabelItems(t));let n,o;for(n=0,o=s.length;n<o;++n){const t=s[n],i=t.font,o=t.label;t.backdrop&&(e.fillStyle=t.backdrop.color,e.fillRect(t.backdrop.left,t.backdrop.top,t.backdrop.width,t.backdrop.height)),Ae(e,o,0,t.textOffset,i,t)}i&&De(e)}drawTitle(){const{ctx:t,options:{position:e,title:i,reverse:o}}=this;if(!i.display)return;const a=mi(i.font),r=pi(i.padding),l=i.align;let h=a.lineHeight/2;\"bottom\"===e||\"center\"===e||n(e)?(h+=r.bottom,s(i.text)&&(h+=a.lineHeight*(i.text.length-1))):h+=r.top;const{titleX:c,titleY:d,maxWidth:u,rotation:f}=function(t,e,i,s){const{top:o,left:a,bottom:r,right:l,chart:h}=t,{chartArea:c,scales:d}=h;let u,f,g,p=0;const m=r-o,b=l-a;if(t.isHorizontal()){if(f=ut(s,a,l),n(i)){const t=Object.keys(i)[0],s=i[t];g=d[t].getPixelForValue(s)+m-e}else g=\"center\"===i?(c.bottom+c.top)/2+m-e:Vs(t,i,e);u=l-a}else{if(n(i)){const t=Object.keys(i)[0],s=i[t];f=d[t].getPixelForValue(s)-b+e}else f=\"center\"===i?(c.left+c.right)/2-b+e:Vs(t,i,e);g=ut(s,r,o),p=\"left\"===i?-L:L}return{titleX:f,titleY:g,maxWidth:u,rotation:p}}(this,h,e,l);Ae(t,i.text,0,0,a,{color:i.color,maxWidth:u,rotation:f,textAlign:Hs(l,e,o),textBaseline:\"middle\",translation:[c,d]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,i=r(t.grid&&t.grid.z,-1);return this._isVisible()&&this.draw===$s.prototype.draw?[{z:i,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:i+1,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+\"AxisID\",s=[];let n,o;for(n=0,o=e.length;n<o;++n){const o=e[n];o[i]!==this.id||t&&o.type!==t||s.push(o)}return s}_resolveTickFontOptions(t){return mi(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Ys{constructor(t,e,i){this.type=t,this.scope=e,this.override=i,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let i;(function(t){return\"id\"in t&&\"defaults\"in t})(e)&&(i=this.register(e));const s=this.items,n=t.id,o=this.scope+\".\"+n;if(!n)throw new Error(\"class does not have id: \"+t);return n in s||(s[n]=t,function(t,e,i){const s=m(Object.create(null),[i?ne.get(i):{},ne.get(e),t.defaults]);ne.set(e,s),t.defaultRoutes&&function(t,e){Object.keys(e).forEach((i=>{const s=i.split(\".\"),n=s.pop(),o=[t].concat(s).join(\".\"),a=e[i].split(\".\"),r=a.pop(),l=a.join(\".\");ne.route(o,n,l,r)}))}(e,t.defaultRoutes);t.descriptors&&ne.describe(e,t.descriptors)}(t,o,i),this.override&&ne.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){const e=this.items,i=t.id,s=this.scope;i in e&&delete e[i],s&&i in ne[s]&&(delete ne[s][i],this.override&&delete te[i])}}var Us=new class{constructor(){this.controllers=new Ys(Ls,\"datasets\",!0),this.elements=new Ys(Es,\"elements\"),this.plugins=new Ys(Object,\"plugins\"),this.scales=new Ys($s,\"scales\"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each(\"register\",t)}remove(...t){this._each(\"unregister\",t)}addControllers(...t){this._each(\"register\",t,this.controllers)}addElements(...t){this._each(\"register\",t,this.elements)}addPlugins(...t){this._each(\"register\",t,this.plugins)}addScales(...t){this._each(\"register\",t,this.scales)}getController(t){return this._get(t,this.controllers,\"controller\")}getElement(t){return this._get(t,this.elements,\"element\")}getPlugin(t){return this._get(t,this.plugins,\"plugin\")}getScale(t){return this._get(t,this.scales,\"scale\")}removeControllers(...t){this._each(\"unregister\",t,this.controllers)}removeElements(...t){this._each(\"unregister\",t,this.elements)}removePlugins(...t){this._each(\"unregister\",t,this.plugins)}removeScales(...t){this._each(\"unregister\",t,this.scales)}_each(t,e,i){[...e].forEach((e=>{const s=i||this._getRegistryForType(e);i||s.isForType(e)||s===this.plugins&&e.id?this._exec(t,s,e):d(e,(e=>{const s=i||this._getRegistryForType(e);this._exec(t,s,e)}))}))}_exec(t,e,i){const s=w(t);c(i[\"before\"+s],[],i),e[t](i),c(i[\"after\"+s],[],i)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const i=this._typedRegistries[e];if(i.isForType(t))return i}return this.plugins}_get(t,e,i){const s=e.get(t);if(void 0===s)throw new Error('\"'+t+'\" is not a registered '+i+\".\");return s}};class Xs{constructor(){this._init=[]}notify(t,e,i,s){\"beforeInit\"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,\"install\"));const n=s?this._descriptors(t).filter(s):this._descriptors(t),o=this._notify(n,t,e,i);return\"afterDestroy\"===e&&(this._notify(n,t,\"stop\"),this._notify(this._init,t,\"uninstall\")),o}_notify(t,e,i,s){s=s||{};for(const n of t){const t=n.plugin;if(!1===c(t[i],[e,s,n.options],t)&&s.cancelable)return!1}return!0}invalidate(){i(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const i=t&&t.config,s=r(i.options&&i.options.plugins,{}),n=function(t){const e={},i=[],s=Object.keys(Us.plugins.items);for(let t=0;t<s.length;t++)i.push(Us.getPlugin(s[t]));const n=t.plugins||[];for(let t=0;t<n.length;t++){const s=n[t];-1===i.indexOf(s)&&(i.push(s),e[s.id]=!0)}return{plugins:i,localIds:e}}(i);return!1!==s||e?function(t,{plugins:e,localIds:i},s,n){const o=[],a=t.getContext();for(const r of e){const e=r.id,l=qs(s[e],n);null!==l&&o.push({plugin:r,options:Ks(t.config,{plugin:r,local:i[e]},l,a)})}return o}(t,n,s,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],i=this._cache,s=(t,e)=>t.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(s(e,i),t,\"stop\"),this._notify(s(i,e),t,\"start\")}}function qs(t,e){return e||!1!==t?!0===t?{}:t:null}function Ks(t,{plugin:e,local:i},s,n){const o=t.pluginScopeKeys(e),a=t.getOptionScopes(s,o);return i&&e.defaults&&a.push(e.defaults),t.createResolver(a,n,[\"\"],{scriptable:!1,indexable:!1,allKeys:!0})}function Gs(t,e){const i=ne.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||i.indexAxis||\"x\"}function Zs(t,e){return\"x\"===t||\"y\"===t?t:e.axis||(\"top\"===(i=e.position)||\"bottom\"===i?\"x\":\"left\"===i||\"right\"===i?\"y\":void 0)||t.charAt(0).toLowerCase();var i}function Js(t){const e=t.options||(t.options={});e.plugins=r(e.plugins,{}),e.scales=function(t,e){const i=te[t.type]||{scales:{}},s=e.scales||{},o=Gs(t.type,e),a=Object.create(null),r=Object.create(null);return Object.keys(s).forEach((t=>{const e=s[t];if(!n(e))return console.error(`Invalid scale configuration for scale: ${t}`);if(e._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);const l=Zs(t,e),h=function(t,e){return t===e?\"_index_\":\"_value_\"}(l,o),c=i.scales||{};a[l]=a[l]||t,r[t]=b(Object.create(null),[{axis:l},e,c[l],c[h]])})),t.data.datasets.forEach((i=>{const n=i.type||t.type,o=i.indexAxis||Gs(n,e),l=(te[n]||{}).scales||{};Object.keys(l).forEach((t=>{const e=function(t,e){let i=t;return\"_index_\"===t?i=e:\"_value_\"===t&&(i=\"x\"===e?\"y\":\"x\"),i}(t,o),n=i[e+\"AxisID\"]||a[e]||e;r[n]=r[n]||Object.create(null),b(r[n],[{axis:e},s[n],l[t]])}))})),Object.keys(r).forEach((t=>{const e=r[t];b(e,[ne.scales[e.type],ne.scale])})),r}(t,e)}function Qs(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const tn=new Map,en=new Set;function sn(t,e){let i=tn.get(t);return i||(i=e(),tn.set(t,i),en.add(i)),i}const nn=(t,e,i)=>{const s=y(e,i);void 0!==s&&t.add(s)};class on{constructor(t){this._config=function(t){return(t=t||{}).data=Qs(t.data),Js(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Qs(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),Js(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return sn(t,(()=>[[`datasets.${t}`,\"\"]]))}datasetAnimationScopeKeys(t,e){return sn(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,\"\"]]))}datasetElementScopeKeys(t,e){return sn(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,\"\"]]))}pluginScopeKeys(t){const e=t.id;return sn(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const i=this._scopeCache;let s=i.get(t);return s&&!e||(s=new Map,i.set(t,s)),s}getOptionScopes(t,e,i){const{options:s,type:n}=this,o=this._cachedScopes(t,i),a=o.get(e);if(a)return a;const r=new Set;e.forEach((e=>{t&&(r.add(t),e.forEach((e=>nn(r,t,e)))),e.forEach((t=>nn(r,s,t))),e.forEach((t=>nn(r,te[n]||{},t))),e.forEach((t=>nn(r,ne,t))),e.forEach((t=>nn(r,ee,t)))}));const l=Array.from(r);return 0===l.length&&l.push(Object.create(null)),en.has(e)&&o.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,te[e]||{},ne.datasets[e]||{},{type:e},ne,ee]}resolveNamedOptions(t,e,i,n=[\"\"]){const o={$shared:!0},{resolver:a,subPrefixes:r}=an(this._resolverCache,t,n);let l=a;if(function(t,e){const{isScriptable:i,isIndexable:n}=Ie(t);for(const o of e){const e=i(o),a=n(o),r=(a||e)&&t[o];if(e&&(k(r)||rn(r))||a&&s(r))return!0}return!1}(a,e)){o.$shared=!1;l=Re(a,i=k(i)?i():i,this.createResolver(t,i,r))}for(const t of e)o[t]=l[t];return o}createResolver(t,e,i=[\"\"],s){const{resolver:o}=an(this._resolverCache,t,i);return n(e)?Re(o,e,void 0,s):o}}function an(t,e,i){let s=t.get(e);s||(s=new Map,t.set(e,s));const n=i.join();let o=s.get(n);if(!o){o={resolver:Ee(e,i),subPrefixes:i.filter((t=>!t.toLowerCase().includes(\"hover\")))},s.set(n,o)}return o}const rn=t=>n(t)&&Object.getOwnPropertyNames(t).reduce(((e,i)=>e||k(t[i])),!1);const ln=[\"top\",\"bottom\",\"left\",\"right\",\"chartArea\"];function hn(t,e){return\"top\"===t||\"bottom\"===t||-1===ln.indexOf(t)&&\"x\"===e}function cn(t,e){return function(i,s){return i[t]===s[t]?i[e]-s[e]:i[t]-s[t]}}function dn(t){const e=t.chart,i=e.options.animation;e.notifyPlugins(\"afterRender\"),c(i&&i.onComplete,[t],e)}function un(t){const e=t.chart,i=e.options.animation;c(i&&i.onProgress,[t],e)}function fn(t){return oe()&&\"string\"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const gn={},pn=t=>{const e=fn(t);return Object.values(gn).filter((t=>t.canvas===e)).pop()};function mn(t,e,i){const s=Object.keys(t);for(const n of s){const s=+n;if(s>=e){const o=t[n];delete t[n],(i>0||s>e)&&(t[s+i]=o)}}}class bn{constructor(t,i){const s=this.config=new on(i),n=fn(t),o=pn(n);if(o)throw new Error(\"Canvas is already in use. Chart with ID '\"+o.id+\"' must be destroyed before the canvas with ID '\"+o.canvas.id+\"' can be reused.\");const a=s.createResolver(s.chartOptionScopes(),this.getContext());this.platform=new(s.platform||gs(n)),this.platform.updateConfig(s);const r=this.platform.acquireContext(n,a.aspectRatio),l=r&&r.canvas,h=l&&l.height,c=l&&l.width;this.id=e(),this.ctx=r,this.canvas=l,this.width=c,this.height=h,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Xs,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=ct((t=>this.update(t)),a.resizeDelay||0),this._dataChanges=[],gn[this.id]=this,r&&l?(mt.listen(this,\"complete\",dn),mt.listen(this,\"progress\",un),this._initialize(),this.attached&&this.update()):console.error(\"Failed to create chart: can't acquire context from the given item\")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:s,height:n,_aspectRatio:o}=this;return i(t)?e&&o?o:n?s/n:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}_initialize(){return this.notifyPlugins(\"beforeInit\"),this.options.responsive?this.resize():pe(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins(\"afterInit\"),this}clear(){return we(this.canvas,this.ctx),this}stop(){return mt.stop(this),this}resize(t,e){mt.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const i=this.options,s=this.canvas,n=i.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(s,t,e,n),a=i.devicePixelRatio||this.platform.getDevicePixelRatio(),r=this.width?\"resize\":\"attach\";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,pe(this,a,!0)&&(this.notifyPlugins(\"resize\",{size:o}),c(i.onResize,[this,o],this),this.attached&&this._doResize(r)&&this.render())}ensureScalesHaveIDs(){d(this.options.scales||{},((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,i=this.scales,s=Object.keys(i).reduce(((t,e)=>(t[e]=!1,t)),{});let n=[];e&&(n=n.concat(Object.keys(e).map((t=>{const i=e[t],s=Zs(t,i),n=\"r\"===s,o=\"x\"===s;return{options:i,dposition:n?\"chartArea\":o?\"bottom\":\"left\",dtype:n?\"radialLinear\":o?\"category\":\"linear\"}})))),d(n,(e=>{const n=e.options,o=n.id,a=Zs(o,n),l=r(n.type,e.dtype);void 0!==n.position&&hn(n.position,a)===hn(e.dposition)||(n.position=e.dposition),s[o]=!0;let h=null;if(o in i&&i[o].type===l)h=i[o];else{h=new(Us.getScale(l))({id:o,type:l,ctx:this.ctx,chart:this}),i[h.id]=h}h.init(n,t)})),d(s,((t,e)=>{t||delete i[e]})),d(i,(t=>{Zi.configure(this,t,t.options),Zi.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,i=t.length;if(t.sort(((t,e)=>t.index-e.index)),i>e){for(let t=e;t<i;++t)this._destroyDatasetMeta(t);t.splice(e,i-e)}this._sortedMetasets=t.slice(0).sort(cn(\"order\",\"index\"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach(((t,i)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(i)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let i,s;for(this._removeUnreferencedMetasets(),i=0,s=e.length;i<s;i++){const s=e[i];let n=this.getDatasetMeta(i);const o=s.type||this.config.type;if(n.type&&n.type!==o&&(this._destroyDatasetMeta(i),n=this.getDatasetMeta(i)),n.type=o,n.indexAxis=s.indexAxis||Gs(o,this.options),n.order=s.order||0,n.index=i,n.label=\"\"+s.label,n.visible=this.isDatasetVisible(i),n.controller)n.controller.updateIndex(i),n.controller.linkScales();else{const e=Us.getController(o),{datasetElementType:s,dataElementType:a}=ne.datasets[o];Object.assign(e.prototype,{dataElementType:Us.getElement(a),datasetElementType:s&&Us.getElement(s)}),n.controller=new e(this,i),t.push(n.controller)}}return this._updateMetasets(),t}_resetElements(){d(this.data.datasets,((t,e)=>{this.getDatasetMeta(e).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins(\"reset\")}update(t){const e=this.config;e.update();const i=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins(\"beforeUpdate\",{mode:t,cancelable:!0}))return;const n=this.buildOrUpdateControllers();this.notifyPlugins(\"beforeElementsUpdate\");let o=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),i=!s&&-1===n.indexOf(e);e.buildOrUpdateElements(i),o=Math.max(+e.getMaxOverflow(),o)}o=this._minPadding=i.layout.autoPadding?o:0,this._updateLayout(o),s||d(n,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins(\"afterUpdate\",{mode:t}),this._layers.sort(cn(\"z\",\"_idx\"));const{_active:a,_lastEvent:r}=this;r?this._eventHandler(r,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){d(this.scales,(t=>{Zi.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),i=new Set(t.events);S(e,i)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:i,start:s,count:n}of e){mn(t,s,\"_removeElements\"===i?-n:n)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,i=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+\",\"+t.splice(1).join(\",\")))),s=i(0);for(let t=1;t<e;t++)if(!S(s,i(t)))return;return Array.from(s).map((t=>t.split(\",\"))).map((t=>({method:t[1],start:+t[2],count:+t[3]})))}_updateLayout(t){if(!1===this.notifyPlugins(\"beforeLayout\",{cancelable:!0}))return;Zi.update(this,this.width,this.height,t);const e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],d(this.boxes,(t=>{i&&\"chartArea\"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))}),this),this._layers.forEach(((t,e)=>{t._idx=e})),this.notifyPlugins(\"afterLayout\")}_updateDatasets(t){if(!1!==this.notifyPlugins(\"beforeDatasetsUpdate\",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,i=this.data.datasets.length;e<i;++e)this._updateDataset(e,k(t)?t({datasetIndex:e}):t);this.notifyPlugins(\"afterDatasetsUpdate\",{mode:t})}}_updateDataset(t,e){const i=this.getDatasetMeta(t),s={meta:i,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins(\"beforeDatasetUpdate\",s)&&(i.controller._update(e),s.cancelable=!1,this.notifyPlugins(\"afterDatasetUpdate\",s))}render(){!1!==this.notifyPlugins(\"beforeRender\",{cancelable:!0})&&(mt.has(this)?this.attached&&!mt.running(this)&&mt.start(this):(this.draw(),dn({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resize(t,e),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins(\"beforeDraw\",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins(\"afterDraw\")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,i=[];let s,n;for(s=0,n=e.length;s<n;++s){const n=e[s];t&&!n.visible||i.push(n)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins(\"beforeDatasetsDraw\",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins(\"afterDatasetsDraw\")}_drawDataset(t){const e=this.ctx,i=t._clip,s=!i.disabled,n=this.chartArea,o={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins(\"beforeDatasetDraw\",o)&&(s&&Pe(e,{left:!1===i.left?0:n.left-i.left,right:!1===i.right?this.width:n.right+i.right,top:!1===i.top?0:n.top-i.top,bottom:!1===i.bottom?this.height:n.bottom+i.bottom}),t.controller.draw(),s&&De(e),o.cancelable=!1,this.notifyPlugins(\"afterDatasetDraw\",o))}isPointInArea(t){return Se(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,i,s){const n=Vi.modes[e];return\"function\"==typeof n?n(this,t,i,s):[]}getDatasetMeta(t){const e=this.data.datasets[t],i=this._metasets;let s=i.filter((t=>t&&t._dataset===e)).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},i.push(s)),s}getContext(){return this.$context||(this.$context=_i(null,{chart:this,type:\"chart\"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const i=this.getDatasetMeta(t);return\"boolean\"==typeof i.hidden?!i.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,i){const s=i?\"show\":\"hide\",n=this.getDatasetMeta(t),o=n.controller._resolveAnimations(void 0,s);M(e)?(n.data[e].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),o.update(n,{visible:i}),this.update((e=>e.datasetIndex===t?s:void 0)))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),mt.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins(\"beforeDestroy\");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),we(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),this.notifyPlugins(\"destroy\"),delete gn[this.id],this.notifyPlugins(\"afterDestroy\")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,i=(i,s)=>{e.addEventListener(this,i,s),t[i]=s},s=(t,e,i)=>{t.offsetX=e,t.offsetY=i,this._eventHandler(t)};d(this.options.events,(t=>i(t,s)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,i=(i,s)=>{e.addEventListener(this,i,s),t[i]=s},s=(i,s)=>{t[i]&&(e.removeEventListener(this,i,s),delete t[i])},n=(t,e)=>{this.canvas&&this.resize(t,e)};let o;const a=()=>{s(\"attach\",a),this.attached=!0,this.resize(),i(\"resize\",n),i(\"detach\",o)};o=()=>{this.attached=!1,s(\"resize\",n),this._stop(),this._resize(0,0),i(\"attach\",a)},e.isAttached(this.canvas)?a():o()}unbindEvents(){d(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},d(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,i){const s=i?\"set\":\"remove\";let n,o,a,r;for(\"dataset\"===e&&(n=this.getDatasetMeta(t[0].datasetIndex),n.controller[\"_\"+s+\"DatasetHoverStyle\"]()),a=0,r=t.length;a<r;++a){o=t[a];const e=o&&this.getDatasetMeta(o.datasetIndex).controller;e&&e[s+\"HoverStyle\"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],i=t.map((({datasetIndex:t,index:e})=>{const i=this.getDatasetMeta(t);if(!i)throw new Error(\"No dataset found at index \"+t);return{datasetIndex:t,element:i.data[e],index:e}}));!u(i,e)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}_updateHoverStyles(t,e,i){const s=this.options.hover,n=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),o=n(e,t),a=i?t:n(t,e);o.length&&this.updateHoverStyle(o,s.mode,!1),a.length&&s.mode&&this.updateHoverStyle(a,s.mode,!0)}_eventHandler(t,e){const i={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},s=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins(\"beforeEvent\",i,s))return;const n=this._handleEvent(t,e,i.inChartArea);return i.cancelable=!1,this.notifyPlugins(\"afterEvent\",i,s),(n||i.changed)&&this.render(),this}_handleEvent(t,e,i){const{_active:s=[],options:n}=this,o=e,a=this._getActiveElements(t,s,i,o),r=P(t),l=function(t,e,i,s){return i&&\"mouseout\"!==t.type?s?e:t:null}(t,this._lastEvent,i,r);i&&(this._lastEvent=null,c(n.onHover,[t,a,this],this),r&&c(n.onClick,[t,a,this],this));const h=!u(a,s);return(h||e)&&(this._active=a,this._updateHoverStyles(a,s,e)),this._lastEvent=l,h}_getActiveElements(t,e,i,s){if(\"mouseout\"===t.type)return[];if(!i)return e;const n=this.options.hover;return this.getElementsAtEventForMode(t,n.mode,n,s)}}const xn=()=>d(bn.instances,(t=>t._plugins.invalidate())),_n=!0;function yn(){throw new Error(\"This method is not implemented: Check that a complete date adapter is provided.\")}Object.defineProperties(bn,{defaults:{enumerable:_n,value:ne},instances:{enumerable:_n,value:gn},overrides:{enumerable:_n,value:te},registry:{enumerable:_n,value:Us},version:{enumerable:_n,value:\"3.9.1\"},getChart:{enumerable:_n,value:pn},register:{enumerable:_n,value:(...t)=>{Us.add(...t),xn()}},unregister:{enumerable:_n,value:(...t)=>{Us.remove(...t),xn()}}});class vn{constructor(t){this.options=t||{}}init(t){}formats(){return yn()}parse(t,e){return yn()}format(t,e){return yn()}add(t,e,i){return yn()}diff(t,e,i){return yn()}startOf(t,e,i){return yn()}endOf(t,e){return yn()}}vn.override=function(t){Object.assign(vn.prototype,t)};var wn={_date:vn};function Mn(t){const e=t.iScale,i=function(t,e){if(!t._cache.$bar){const i=t.getMatchingVisibleMetas(e);let s=[];for(let e=0,n=i.length;e<n;e++)s=s.concat(i[e].controller.getAllParsedValues(t));t._cache.$bar=rt(s.sort(((t,e)=>t-e)))}return t._cache.$bar}(e,t.type);let s,n,o,a,r=e._length;const l=()=>{32767!==o&&-32768!==o&&(M(a)&&(r=Math.min(r,Math.abs(o-a)||r)),a=o)};for(s=0,n=i.length;s<n;++s)o=e.getPixelForValue(i[s]),l();for(a=void 0,s=0,n=e.ticks.length;s<n;++s)o=e.getPixelForTick(s),l();return r}function kn(t,e,i,n){return s(t)?function(t,e,i,s){const n=i.parse(t[0],s),o=i.parse(t[1],s),a=Math.min(n,o),r=Math.max(n,o);let l=a,h=r;Math.abs(a)>Math.abs(r)&&(l=r,h=a),e[i.axis]=h,e._custom={barStart:l,barEnd:h,start:n,end:o,min:a,max:r}}(t,e,i,n):e[i.axis]=i.parse(t,n),e}function Sn(t,e,i,s){const n=t.iScale,o=t.vScale,a=n.getLabels(),r=n===o,l=[];let h,c,d,u;for(h=i,c=i+s;h<c;++h)u=e[h],d={},d[n.axis]=r||n.parse(a[h],h),l.push(kn(u,d,o,h));return l}function Pn(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function Dn(t,e,i,s){let n=e.borderSkipped;const o={};if(!n)return void(t.borderSkipped=o);if(!0===n)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:a,end:r,reverse:l,top:h,bottom:c}=function(t){let e,i,s,n,o;return t.horizontal?(e=t.base>t.x,i=\"left\",s=\"right\"):(e=t.base<t.y,i=\"bottom\",s=\"top\"),e?(n=\"end\",o=\"start\"):(n=\"start\",o=\"end\"),{start:i,end:s,reverse:e,top:n,bottom:o}}(t);\"middle\"===n&&i&&(t.enableBorderRadius=!0,(i._top||0)===s?n=h:(i._bottom||0)===s?n=c:(o[On(c,a,r,l)]=!0,n=h)),o[On(n,a,r,l)]=!0,t.borderSkipped=o}function On(t,e,i,s){var n,o,a;return s?(a=i,t=Cn(t=(n=t)===(o=e)?a:n===a?o:n,i,e)):t=Cn(t,e,i),t}function Cn(t,e,i){return\"start\"===t?e:\"end\"===t?i:t}function An(t,{inflateAmount:e},i){t.inflateAmount=\"auto\"===e?1===i?.33:0:e}class Tn extends Ls{parsePrimitiveData(t,e,i,s){return Sn(t,e,i,s)}parseArrayData(t,e,i,s){return Sn(t,e,i,s)}parseObjectData(t,e,i,s){const{iScale:n,vScale:o}=t,{xAxisKey:a=\"x\",yAxisKey:r=\"y\"}=this._parsing,l=\"x\"===n.axis?a:r,h=\"x\"===o.axis?a:r,c=[];let d,u,f,g;for(d=i,u=i+s;d<u;++d)g=e[d],f={},f[n.axis]=n.parse(y(g,l),d),c.push(kn(y(g,h),f,o,d));return c}updateRangeFromParsed(t,e,i,s){super.updateRangeFromParsed(t,e,i,s);const n=i._custom;n&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,n.min),t.max=Math.max(t.max,n.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:i,vScale:s}=e,n=this.getParsed(t),o=n._custom,a=Pn(o)?\"[\"+o.start+\", \"+o.end+\"]\":\"\"+s.getLabelForValue(n[s.axis]);return{label:\"\"+i.getLabelForValue(n[i.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,s,n){const o=\"reset\"===n,{index:a,_cachedMeta:{vScale:r}}=this,l=r.getBasePixel(),h=r.isHorizontal(),c=this._getRuler(),{sharedOptions:d,includeOptions:u}=this._getSharedOptions(e,n);for(let f=e;f<e+s;f++){const e=this.getParsed(f),s=o||i(e[r.axis])?{base:l,head:l}:this._calculateBarValuePixels(f),g=this._calculateBarIndexPixels(f,c),p=(e._stacks||{})[r.axis],m={horizontal:h,base:s.base,enableBorderRadius:!p||Pn(e._custom)||a===p._top||a===p._bottom,x:h?s.head:g.center,y:h?g.center:s.head,height:h?g.size:Math.abs(s.size),width:h?Math.abs(s.size):g.size};u&&(m.options=d||this.resolveDataElementOptions(f,t[f].active?\"active\":n));const b=m.options||t[f].options;Dn(m,b,p,a),An(m,b,c.ratio),this.updateElement(t[f],f,m,n)}}_getStacks(t,e){const{iScale:s}=this._cachedMeta,n=s.getMatchingVisibleMetas(this._type).filter((t=>t.controller.options.grouped)),o=s.options.stacked,a=[],r=t=>{const s=t.controller.getParsed(e),n=s&&s[t.vScale.axis];if(i(n)||isNaN(n))return!0};for(const i of n)if((void 0===e||!r(i))&&((!1===o||-1===a.indexOf(i.stack)||void 0===o&&void 0===i.stack)&&a.push(i.stack),i.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,i){const s=this._getStacks(t,i),n=void 0!==e?s.indexOf(e):-1;return-1===n?s.length-1:n}_getRuler(){const t=this.options,e=this._cachedMeta,i=e.iScale,s=[];let n,o;for(n=0,o=e.data.length;n<o;++n)s.push(i.getPixelForValue(this.getParsed(n)[i.axis],n));const a=t.barThickness;return{min:a||Mn(e),pixels:s,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:s},options:{base:n,minBarLength:o}}=this,a=n||0,r=this.getParsed(t),l=r._custom,h=Pn(l);let c,d,u=r[e.axis],f=0,g=s?this.applyStack(e,r,s):u;g!==u&&(f=g-u,g=u),h&&(u=l.barStart,g=l.barEnd-l.barStart,0!==u&&z(u)!==z(l.barEnd)&&(f=0),f+=u);const p=i(n)||h?f:n;let m=e.getPixelForValue(p);if(c=this.chart.getDataVisibility(t)?e.getPixelForValue(f+g):m,d=c-m,Math.abs(d)<o){d=function(t,e,i){return 0!==t?z(t):(e.isHorizontal()?1:-1)*(e.min>=i?1:-1)}(d,e,a)*o,u===a&&(m-=d/2);const t=e.getPixelForDecimal(0),i=e.getPixelForDecimal(1),s=Math.min(t,i),n=Math.max(t,i);m=Math.max(Math.min(m,n),s),c=m+d}if(m===e.getPixelForValue(a)){const t=z(d)*e.getLineWidthForValue(a)/2;m+=t,d-=t}return{size:d,base:m,head:c,center:c+d/2}}_calculateBarIndexPixels(t,e){const s=e.scale,n=this.options,o=n.skipNull,a=r(n.maxBarThickness,1/0);let l,h;if(e.grouped){const s=o?this._getStackCount(t):e.stackCount,r=\"flex\"===n.barThickness?function(t,e,i,s){const n=e.pixels,o=n[t];let a=t>0?n[t-1]:null,r=t<n.length-1?n[t+1]:null;const l=i.categoryPercentage;null===a&&(a=o-(null===r?e.end-e.start:r-o)),null===r&&(r=o+o-a);const h=o-(o-Math.min(a,r))/2*l;return{chunk:Math.abs(r-a)/2*l/s,ratio:i.barPercentage,start:h}}(t,e,n,s):function(t,e,s,n){const o=s.barThickness;let a,r;return i(o)?(a=e.min*s.categoryPercentage,r=s.barPercentage):(a=o*n,r=1),{chunk:a/n,ratio:r,start:e.pixels[t]-a/2}}(t,e,n,s),c=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);l=r.start+r.chunk*c+r.chunk/2,h=Math.min(a,r.chunk*r.ratio)}else l=s.getPixelForValue(this.getParsed(t)[s.axis],t),h=Math.min(a,e.min*e.ratio);return{base:l-h/2,head:l+h/2,center:l,size:h}}draw(){const t=this._cachedMeta,e=t.vScale,i=t.data,s=i.length;let n=0;for(;n<s;++n)null!==this.getParsed(n)[e.axis]&&i[n].draw(this._ctx)}}Tn.id=\"bar\",Tn.defaults={datasetElementType:!1,dataElementType:\"bar\",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:\"number\",properties:[\"x\",\"y\",\"base\",\"width\",\"height\"]}}},Tn.overrides={scales:{_index_:{type:\"category\",offset:!0,grid:{offset:!0}},_value_:{type:\"linear\",beginAtZero:!0}}};class Ln extends Ls{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,i,s){const n=super.parsePrimitiveData(t,e,i,s);for(let t=0;t<n.length;t++)n[t]._custom=this.resolveDataElementOptions(t+i).radius;return n}parseArrayData(t,e,i,s){const n=super.parseArrayData(t,e,i,s);for(let t=0;t<n.length;t++){const s=e[i+t];n[t]._custom=r(s[2],this.resolveDataElementOptions(t+i).radius)}return n}parseObjectData(t,e,i,s){const n=super.parseObjectData(t,e,i,s);for(let t=0;t<n.length;t++){const s=e[i+t];n[t]._custom=r(s&&s.r&&+s.r,this.resolveDataElementOptions(t+i).radius)}return n}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let i=t.length-1;i>=0;--i)e=Math.max(e,t[i].size(this.resolveDataElementOptions(i))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,{xScale:i,yScale:s}=e,n=this.getParsed(t),o=i.getLabelForValue(n.x),a=s.getLabelForValue(n.y),r=n._custom;return{label:e.label,value:\"(\"+o+\", \"+a+(r?\", \"+r:\"\")+\")\"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,i,s){const n=\"reset\"===s,{iScale:o,vScale:a}=this._cachedMeta,{sharedOptions:r,includeOptions:l}=this._getSharedOptions(e,s),h=o.axis,c=a.axis;for(let d=e;d<e+i;d++){const e=t[d],i=!n&&this.getParsed(d),u={},f=u[h]=n?o.getPixelForDecimal(.5):o.getPixelForValue(i[h]),g=u[c]=n?a.getBasePixel():a.getPixelForValue(i[c]);u.skip=isNaN(f)||isNaN(g),l&&(u.options=r||this.resolveDataElementOptions(d,e.active?\"active\":s),n&&(u.options.radius=0)),this.updateElement(e,d,u,s)}}resolveDataElementOptions(t,e){const i=this.getParsed(t);let s=super.resolveDataElementOptions(t,e);s.$shared&&(s=Object.assign({},s,{$shared:!1}));const n=s.radius;return\"active\"!==e&&(s.radius=0),s.radius+=r(i&&i._custom,n),s}}Ln.id=\"bubble\",Ln.defaults={datasetElementType:!1,dataElementType:\"point\",animations:{numbers:{type:\"number\",properties:[\"x\",\"y\",\"borderWidth\",\"radius\"]}}},Ln.overrides={scales:{x:{type:\"linear\"},y:{type:\"linear\"}},plugins:{tooltip:{callbacks:{title:()=>\"\"}}}};class En extends Ls{constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const i=this.getDataset().data,s=this._cachedMeta;if(!1===this._parsing)s._parsed=i;else{let o,a,r=t=>+i[t];if(n(i[t])){const{key:t=\"value\"}=this._parsing;r=e=>+y(i[e],t)}for(o=t,a=t+e;o<a;++o)s._parsed[o]=r(o)}}_getRotation(){return H(this.options.rotation-90)}_getCircumference(){return H(this.options.circumference)}_getRotationExtents(){let t=O,e=-O;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)){const s=this.chart.getDatasetMeta(i).controller,n=s._getRotation(),o=s._getCircumference();t=Math.min(t,n),e=Math.max(e,n+o)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:i}=e,s=this._cachedMeta,n=s.data,o=this.getMaxBorderWidth()+this.getMaxOffset(n)+this.options.spacing,a=Math.max((Math.min(i.width,i.height)-o)/2,0),r=Math.min(l(this.options.cutout,a),1),c=this._getRingWeight(this.index),{circumference:d,rotation:u}=this._getRotationExtents(),{ratioX:f,ratioY:g,offsetX:p,offsetY:m}=function(t,e,i){let s=1,n=1,o=0,a=0;if(e<O){const r=t,l=r+e,h=Math.cos(r),c=Math.sin(r),d=Math.cos(l),u=Math.sin(l),f=(t,e,s)=>G(t,r,l,!0)?1:Math.max(e,e*i,s,s*i),g=(t,e,s)=>G(t,r,l,!0)?-1:Math.min(e,e*i,s,s*i),p=f(0,h,d),m=f(L,c,u),b=g(D,h,d),x=g(D+L,c,u);s=(p-b)/2,n=(m-x)/2,o=-(p+b)/2,a=-(m+x)/2}return{ratioX:s,ratioY:n,offsetX:o,offsetY:a}}(u,d,r),b=(i.width-o)/f,x=(i.height-o)/g,_=Math.max(Math.min(b,x)/2,0),y=h(this.options.radius,_),v=(y-Math.max(y*r,0))/this._getVisibleDatasetWeightTotal();this.offsetX=p*y,this.offsetY=m*y,s.total=this.calculateTotal(),this.outerRadius=y-v*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-v*c,0),this.updateElements(n,0,n.length,t)}_circumference(t,e){const i=this.options,s=this._cachedMeta,n=this._getCircumference();return e&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||null===s._parsed[t]||s.data[t].hidden?0:this.calculateCircumference(s._parsed[t]*n/O)}updateElements(t,e,i,s){const n=\"reset\"===s,o=this.chart,a=o.chartArea,r=o.options.animation,l=(a.left+a.right)/2,h=(a.top+a.bottom)/2,c=n&&r.animateScale,d=c?0:this.innerRadius,u=c?0:this.outerRadius,{sharedOptions:f,includeOptions:g}=this._getSharedOptions(e,s);let p,m=this._getRotation();for(p=0;p<e;++p)m+=this._circumference(p,n);for(p=e;p<e+i;++p){const e=this._circumference(p,n),i=t[p],o={x:l+this.offsetX,y:h+this.offsetY,startAngle:m,endAngle:m+e,circumference:e,outerRadius:u,innerRadius:d};g&&(o.options=f||this.resolveDataElementOptions(p,i.active?\"active\":s)),m+=e,this.updateElement(i,p,o,s)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let i,s=0;for(i=0;i<e.length;i++){const n=t._parsed[i];null===n||isNaN(n)||!this.chart.getDataVisibility(i)||e[i].hidden||(s+=Math.abs(n))}return s}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?O*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,s=i.data.labels||[],n=li(e._parsed[t],i.options.locale);return{label:s[t]||\"\",value:n}}getMaxBorderWidth(t){let e=0;const i=this.chart;let s,n,o,a,r;if(!t)for(s=0,n=i.data.datasets.length;s<n;++s)if(i.isDatasetVisible(s)){o=i.getDatasetMeta(s),t=o.data,a=o.controller;break}if(!t)return 0;for(s=0,n=t.length;s<n;++s)r=a.resolveDataElementOptions(s),\"inner\"!==r.borderAlign&&(e=Math.max(e,r.borderWidth||0,r.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let i=0,s=t.length;i<s;++i){const t=this.resolveDataElementOptions(i);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let i=0;i<t;++i)this.chart.isDatasetVisible(i)&&(e+=this._getRingWeight(i));return e}_getRingWeight(t){return Math.max(r(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}En.id=\"doughnut\",En.defaults={datasetElementType:!1,dataElementType:\"arc\",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:\"number\",properties:[\"circumference\",\"endAngle\",\"innerRadius\",\"outerRadius\",\"startAngle\",\"x\",\"y\",\"offset\",\"borderWidth\",\"spacing\"]}},cutout:\"50%\",rotation:0,circumference:360,radius:\"100%\",spacing:0,indexAxis:\"r\"},En.descriptors={_scriptable:t=>\"spacing\"!==t,_indexable:t=>\"spacing\"!==t},En.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i}}=t.legend.options;return e.labels.map(((e,s)=>{const n=t.getDatasetMeta(0).controller.getStyle(s);return{text:e,fillStyle:n.backgroundColor,strokeStyle:n.borderColor,lineWidth:n.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(s),index:s}}))}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}},tooltip:{callbacks:{title:()=>\"\",label(t){let e=t.label;const i=\": \"+t.formattedValue;return s(e)?(e=e.slice(),e[0]+=i):e+=i,e}}}}};class Rn extends Ls{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:i,data:s=[],_dataset:n}=e,o=this.chart._animationsDisabled;let{start:a,count:r}=gt(e,s,o);this._drawStart=a,this._drawCount=r,pt(e)&&(a=0,r=s.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!n._decimated,i.points=s;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(i,void 0,{animated:!o,options:l},t),this.updateElements(s,a,r,t)}updateElements(t,e,s,n){const o=\"reset\"===n,{iScale:a,vScale:r,_stacked:l,_dataset:h}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(e,n),u=a.axis,f=r.axis,{spanGaps:g,segment:p}=this.options,m=B(g)?g:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||o||\"none\"===n;let x=e>0&&this.getParsed(e-1);for(let g=e;g<e+s;++g){const e=t[g],s=this.getParsed(g),_=b?e:{},y=i(s[f]),v=_[u]=a.getPixelForValue(s[u],g),w=_[f]=o||y?r.getBasePixel():r.getPixelForValue(l?this.applyStack(r,s,l):s[f],g);_.skip=isNaN(v)||isNaN(w)||y,_.stop=g>0&&Math.abs(s[u]-x[u])>m,p&&(_.parsed=s,_.raw=h.data[g]),d&&(_.options=c||this.resolveDataElementOptions(g,e.active?\"active\":n)),b||this.updateElement(e,g,_,n),x=s}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,i=e.options&&e.options.borderWidth||0,s=t.data||[];if(!s.length)return i;const n=s[0].size(this.resolveDataElementOptions(0)),o=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(i,n,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}Rn.id=\"line\",Rn.defaults={datasetElementType:\"line\",dataElementType:\"point\",showLine:!0,spanGaps:!1},Rn.overrides={scales:{_index_:{type:\"category\"},_value_:{type:\"linear\"}}};class In extends Ls{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,s=i.data.labels||[],n=li(e._parsed[t].r,i.options.locale);return{label:s[t]||\"\",value:n}}parseObjectData(t,e,i,s){return Ue.bind(this)(t,e,i,s)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach(((t,i)=>{const s=this.getParsed(i).r;!isNaN(s)&&this.chart.getDataVisibility(i)&&(s<e.min&&(e.min=s),s>e.max&&(e.max=s))})),e}_updateRadius(){const t=this.chart,e=t.chartArea,i=t.options,s=Math.min(e.right-e.left,e.bottom-e.top),n=Math.max(s/2,0),o=(n-Math.max(i.cutoutPercentage?n/100*i.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=n-o*this.index,this.innerRadius=this.outerRadius-o}updateElements(t,e,i,s){const n=\"reset\"===s,o=this.chart,a=o.options.animation,r=this._cachedMeta.rScale,l=r.xCenter,h=r.yCenter,c=r.getIndexAngle(0)-.5*D;let d,u=c;const f=360/this.countVisibleElements();for(d=0;d<e;++d)u+=this._computeAngle(d,s,f);for(d=e;d<e+i;d++){const e=t[d];let i=u,g=u+this._computeAngle(d,s,f),p=o.getDataVisibility(d)?r.getDistanceFromCenterForValue(this.getParsed(d).r):0;u=g,n&&(a.animateScale&&(p=0),a.animateRotate&&(i=g=c));const m={x:l,y:h,innerRadius:0,outerRadius:p,startAngle:i,endAngle:g,options:this.resolveDataElementOptions(d,e.active?\"active\":s)};this.updateElement(e,d,m,s)}}countVisibleElements(){const t=this._cachedMeta;let e=0;return t.data.forEach(((t,i)=>{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&e++})),e}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?H(this.resolveDataElementOptions(t,e).angle||i):0}}In.id=\"polarArea\",In.defaults={dataElementType:\"arc\",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:\"number\",properties:[\"x\",\"y\",\"startAngle\",\"endAngle\",\"innerRadius\",\"outerRadius\"]}},indexAxis:\"r\",startAngle:0},In.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i}}=t.legend.options;return e.labels.map(((e,s)=>{const n=t.getDatasetMeta(0).controller.getStyle(s);return{text:e,fillStyle:n.backgroundColor,strokeStyle:n.borderColor,lineWidth:n.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(s),index:s}}))}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}},tooltip:{callbacks:{title:()=>\"\",label:t=>t.chart.data.labels[t.dataIndex]+\": \"+t.formattedValue}}},scales:{r:{type:\"radialLinear\",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class zn extends En{}zn.id=\"pie\",zn.defaults={cutout:0,rotation:0,circumference:360,radius:\"100%\"};class Fn extends Ls{getLabelAndValue(t){const e=this._cachedMeta.vScale,i=this.getParsed(t);return{label:e.getLabels()[t],value:\"\"+e.getLabelForValue(i[e.axis])}}parseObjectData(t,e,i,s){return Ue.bind(this)(t,e,i,s)}update(t){const e=this._cachedMeta,i=e.dataset,s=e.data||[],n=e.iScale.getLabels();if(i.points=s,\"resize\"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const o={_loop:!0,_fullLoop:n.length===s.length,options:e};this.updateElement(i,void 0,o,t)}this.updateElements(s,0,s.length,t)}updateElements(t,e,i,s){const n=this._cachedMeta.rScale,o=\"reset\"===s;for(let a=e;a<e+i;a++){const e=t[a],i=this.resolveDataElementOptions(a,e.active?\"active\":s),r=n.getPointPositionForValue(a,this.getParsed(a).r),l=o?n.xCenter:r.x,h=o?n.yCenter:r.y,c={x:l,y:h,angle:r.angle,skip:isNaN(l)||isNaN(h),options:i};this.updateElement(e,a,c,s)}}}Fn.id=\"radar\",Fn.defaults={datasetElementType:\"line\",dataElementType:\"point\",indexAxis:\"r\",showLine:!0,elements:{line:{fill:\"start\"}}},Fn.overrides={aspectRatio:1,scales:{r:{type:\"radialLinear\"}}};class Vn extends Ls{update(t){const e=this._cachedMeta,{data:i=[]}=e,s=this.chart._animationsDisabled;let{start:n,count:o}=gt(e,i,s);if(this._drawStart=n,this._drawCount=o,pt(e)&&(n=0,o=i.length),this.options.showLine){const{dataset:n,_dataset:o}=e;n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!o._decimated,n.points=i;const a=this.resolveDatasetElementOptions(t);a.segment=this.options.segment,this.updateElement(n,void 0,{animated:!s,options:a},t)}this.updateElements(i,n,o,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=Us.getElement(\"line\")),super.addElements()}updateElements(t,e,s,n){const o=\"reset\"===n,{iScale:a,vScale:r,_stacked:l,_dataset:h}=this._cachedMeta,c=this.resolveDataElementOptions(e,n),d=this.getSharedOptions(c),u=this.includeOptions(n,d),f=a.axis,g=r.axis,{spanGaps:p,segment:m}=this.options,b=B(p)?p:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||o||\"none\"===n;let _=e>0&&this.getParsed(e-1);for(let c=e;c<e+s;++c){const e=t[c],s=this.getParsed(c),p=x?e:{},y=i(s[g]),v=p[f]=a.getPixelForValue(s[f],c),w=p[g]=o||y?r.getBasePixel():r.getPixelForValue(l?this.applyStack(r,s,l):s[g],c);p.skip=isNaN(v)||isNaN(w)||y,p.stop=c>0&&Math.abs(s[f]-_[f])>b,m&&(p.parsed=s,p.raw=h.data[c]),u&&(p.options=d||this.resolveDataElementOptions(c,e.active?\"active\":n)),x||this.updateElement(e,c,p,n),_=s}this.updateSharedOptions(d,n,c)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let i=e.length-1;i>=0;--i)t=Math.max(t,e[i].size(this.resolveDataElementOptions(i))/2);return t>0&&t}const i=t.dataset,s=i.options&&i.options.borderWidth||0;if(!e.length)return s;const n=e[0].size(this.resolveDataElementOptions(0)),o=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(s,n,o)/2}}Vn.id=\"scatter\",Vn.defaults={datasetElementType:!1,dataElementType:\"point\",showLine:!1,fill:!1},Vn.overrides={interaction:{mode:\"point\"},plugins:{tooltip:{callbacks:{title:()=>\"\",label:t=>\"(\"+t.label+\", \"+t.formattedValue+\")\"}}},scales:{x:{type:\"linear\"},y:{type:\"linear\"}}};var Bn=Object.freeze({__proto__:null,BarController:Tn,BubbleController:Ln,DoughnutController:En,LineController:Rn,PolarAreaController:In,PieController:zn,RadarController:Fn,ScatterController:Vn});function Nn(t,e,i){const{startAngle:s,pixelMargin:n,x:o,y:a,outerRadius:r,innerRadius:l}=e;let h=n/r;t.beginPath(),t.arc(o,a,r,s-h,i+h),l>n?(h=n/l,t.arc(o,a,l,i+h,s-h,!0)):t.arc(o,a,n,i+L,s-L),t.closePath(),t.clip()}function Wn(t,e,i,s){const n=ui(t.options.borderRadius,[\"outerStart\",\"outerEnd\",\"innerStart\",\"innerEnd\"]);const o=(i-e)/2,a=Math.min(o,s*e/2),r=t=>{const e=(i-Math.min(o,t))*s/2;return Z(t,0,Math.min(o,e))};return{outerStart:r(n.outerStart),outerEnd:r(n.outerEnd),innerStart:Z(n.innerStart,0,a),innerEnd:Z(n.innerEnd,0,a)}}function jn(t,e,i,s){return{x:i+t*Math.cos(e),y:s+t*Math.sin(e)}}function Hn(t,e,i,s,n,o){const{x:a,y:r,startAngle:l,pixelMargin:h,innerRadius:c}=e,d=Math.max(e.outerRadius+s+i-h,0),u=c>0?c+s+i+h:0;let f=0;const g=n-l;if(s){const t=((c>0?c-s:0)+(d>0?d-s:0))/2;f=(g-(0!==t?g*t/(t+s):g))/2}const p=(g-Math.max(.001,g*d-i/D)/d)/2,m=l+p+f,b=n-p-f,{outerStart:x,outerEnd:_,innerStart:y,innerEnd:v}=Wn(e,u,d,b-m),w=d-x,M=d-_,k=m+x/w,S=b-_/M,P=u+y,O=u+v,C=m+y/P,A=b-v/O;if(t.beginPath(),o){if(t.arc(a,r,d,k,S),_>0){const e=jn(M,S,a,r);t.arc(e.x,e.y,_,S,b+L)}const e=jn(O,b,a,r);if(t.lineTo(e.x,e.y),v>0){const e=jn(O,A,a,r);t.arc(e.x,e.y,v,b+L,A+Math.PI)}if(t.arc(a,r,u,b-v/u,m+y/u,!0),y>0){const e=jn(P,C,a,r);t.arc(e.x,e.y,y,C+Math.PI,m-L)}const i=jn(w,m,a,r);if(t.lineTo(i.x,i.y),x>0){const e=jn(w,k,a,r);t.arc(e.x,e.y,x,m-L,k)}}else{t.moveTo(a,r);const e=Math.cos(k)*d+a,i=Math.sin(k)*d+r;t.lineTo(e,i);const s=Math.cos(S)*d+a,n=Math.sin(S)*d+r;t.lineTo(s,n)}t.closePath()}function $n(t,e,i,s,n,o){const{options:a}=e,{borderWidth:r,borderJoinStyle:l}=a,h=\"inner\"===a.borderAlign;r&&(h?(t.lineWidth=2*r,t.lineJoin=l||\"round\"):(t.lineWidth=r,t.lineJoin=l||\"bevel\"),e.fullCircles&&function(t,e,i){const{x:s,y:n,startAngle:o,pixelMargin:a,fullCircles:r}=e,l=Math.max(e.outerRadius-a,0),h=e.innerRadius+a;let c;for(i&&Nn(t,e,o+O),t.beginPath(),t.arc(s,n,h,o+O,o,!0),c=0;c<r;++c)t.stroke();for(t.beginPath(),t.arc(s,n,l,o,o+O),c=0;c<r;++c)t.stroke()}(t,e,h),h&&Nn(t,e,n),Hn(t,e,i,s,n,o),t.stroke())}class Yn extends Es{constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,i){const s=this.getProps([\"x\",\"y\"],i),{angle:n,distance:o}=U(s,{x:t,y:e}),{startAngle:a,endAngle:l,innerRadius:h,outerRadius:c,circumference:d}=this.getProps([\"startAngle\",\"endAngle\",\"innerRadius\",\"outerRadius\",\"circumference\"],i),u=this.options.spacing/2,f=r(d,l-a)>=O||G(n,a,l),g=Q(o,h+u,c+u);return f&&g}getCenterPoint(t){const{x:e,y:i,startAngle:s,endAngle:n,innerRadius:o,outerRadius:a}=this.getProps([\"x\",\"y\",\"startAngle\",\"endAngle\",\"innerRadius\",\"outerRadius\",\"circumference\"],t),{offset:r,spacing:l}=this.options,h=(s+n)/2,c=(o+a+l+r)/2;return{x:e+Math.cos(h)*c,y:i+Math.sin(h)*c}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:i}=this,s=(e.offset||0)/2,n=(e.spacing||0)/2,o=e.circular;if(this.pixelMargin=\"inner\"===e.borderAlign?.33:0,this.fullCircles=i>O?Math.floor(i/O):0,0===i||this.innerRadius<0||this.outerRadius<0)return;t.save();let a=0;if(s){a=s/2;const e=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(e)*a,Math.sin(e)*a),this.circumference>=D&&(a=s)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;const r=function(t,e,i,s,n){const{fullCircles:o,startAngle:a,circumference:r}=e;let l=e.endAngle;if(o){Hn(t,e,i,s,a+O,n);for(let e=0;e<o;++e)t.fill();isNaN(r)||(l=a+r%O,r%O==0&&(l+=O))}return Hn(t,e,i,s,l,n),t.fill(),l}(t,this,a,n,o);$n(t,this,a,n,r,o),t.restore()}}function Un(t,e,i=e){t.lineCap=r(i.borderCapStyle,e.borderCapStyle),t.setLineDash(r(i.borderDash,e.borderDash)),t.lineDashOffset=r(i.borderDashOffset,e.borderDashOffset),t.lineJoin=r(i.borderJoinStyle,e.borderJoinStyle),t.lineWidth=r(i.borderWidth,e.borderWidth),t.strokeStyle=r(i.borderColor,e.borderColor)}function Xn(t,e,i){t.lineTo(i.x,i.y)}function qn(t,e,i={}){const s=t.length,{start:n=0,end:o=s-1}=i,{start:a,end:r}=e,l=Math.max(n,a),h=Math.min(o,r),c=n<a&&o<a||n>r&&o>r;return{count:s,start:l,loop:e.loop,ilen:h<l&&!c?s+h-l:h-l}}function Kn(t,e,i,s){const{points:n,options:o}=e,{count:a,start:r,loop:l,ilen:h}=qn(n,i,s),c=function(t){return t.stepped?Oe:t.tension||\"monotone\"===t.cubicInterpolationMode?Ce:Xn}(o);let d,u,f,{move:g=!0,reverse:p}=s||{};for(d=0;d<=h;++d)u=n[(r+(p?h-d:d))%a],u.skip||(g?(t.moveTo(u.x,u.y),g=!1):c(t,f,u,p,o.stepped),f=u);return l&&(u=n[(r+(p?h:0))%a],c(t,f,u,p,o.stepped)),!!l}function Gn(t,e,i,s){const n=e.points,{count:o,start:a,ilen:r}=qn(n,i,s),{move:l=!0,reverse:h}=s||{};let c,d,u,f,g,p,m=0,b=0;const x=t=>(a+(h?r-t:t))%o,_=()=>{f!==g&&(t.lineTo(m,g),t.lineTo(m,f),t.lineTo(m,p))};for(l&&(d=n[x(0)],t.moveTo(d.x,d.y)),c=0;c<=r;++c){if(d=n[x(c)],d.skip)continue;const e=d.x,i=d.y,s=0|e;s===u?(i<f?f=i:i>g&&(g=i),m=(b*m+e)/++b):(_(),t.lineTo(e,i),u=s,b=0,f=g=i),p=i}_()}function Zn(t){const e=t.options,i=e.borderDash&&e.borderDash.length;return!(t._decimated||t._loop||e.tension||\"monotone\"===e.cubicInterpolationMode||e.stepped||i)?Gn:Kn}Yn.id=\"arc\",Yn.defaults={borderAlign:\"center\",borderColor:\"#fff\",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},Yn.defaultRoutes={backgroundColor:\"backgroundColor\"};const Jn=\"function\"==typeof Path2D;function Qn(t,e,i,s){Jn&&!e.options.segment?function(t,e,i,s){let n=e._path;n||(n=e._path=new Path2D,e.path(n,i,s)&&n.closePath()),Un(t,e.options),t.stroke(n)}(t,e,i,s):function(t,e,i,s){const{segments:n,options:o}=e,a=Zn(e);for(const r of n)Un(t,o,r.style),t.beginPath(),a(t,e,r,{start:i,end:i+s-1})&&t.closePath(),t.stroke()}(t,e,i,s)}class to extends Es{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const i=this.options;if((i.tension||\"monotone\"===i.cubicInterpolationMode)&&!i.stepped&&!this._pointsUpdated){const s=i.spanGaps?this._loop:this._fullLoop;Qe(this._points,i,t,s,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Di(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,i=t.length;return i&&e[t[i-1].end]}interpolate(t,e){const i=this.options,s=t[e],n=this.points,o=Pi(this,{property:e,start:s,end:s});if(!o.length)return;const a=[],r=function(t){return t.stepped?oi:t.tension||\"monotone\"===t.cubicInterpolationMode?ai:ni}(i);let l,h;for(l=0,h=o.length;l<h;++l){const{start:h,end:c}=o[l],d=n[h],u=n[c];if(d===u){a.push(d);continue}const f=r(d,u,Math.abs((s-d[e])/(u[e]-d[e])),i.stepped);f[e]=t[e],a.push(f)}return 1===a.length?a[0]:a}pathSegment(t,e,i){return Zn(this)(t,this,e,i)}path(t,e,i){const s=this.segments,n=Zn(this);let o=this._loop;e=e||0,i=i||this.points.length-e;for(const a of s)o&=n(t,this,a,{start:e,end:e+i-1});return!!o}draw(t,e,i,s){const n=this.options||{};(this.points||[]).length&&n.borderWidth&&(t.save(),Qn(t,this,i,s),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function eo(t,e,i,s){const n=t.options,{[i]:o}=t.getProps([i],s);return Math.abs(e-o)<n.radius+n.hitRadius}to.id=\"line\",to.defaults={borderCapStyle:\"butt\",borderDash:[],borderDashOffset:0,borderJoinStyle:\"miter\",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:\"default\",fill:!1,spanGaps:!1,stepped:!1,tension:0},to.defaultRoutes={backgroundColor:\"backgroundColor\",borderColor:\"borderColor\"},to.descriptors={_scriptable:!0,_indexable:t=>\"borderDash\"!==t&&\"fill\"!==t};class io extends Es{constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,i){const s=this.options,{x:n,y:o}=this.getProps([\"x\",\"y\"],i);return Math.pow(t-n,2)+Math.pow(e-o,2)<Math.pow(s.hitRadius+s.radius,2)}inXRange(t,e){return eo(this,t,\"x\",e)}inYRange(t,e){return eo(this,t,\"y\",e)}getCenterPoint(t){const{x:e,y:i}=this.getProps([\"x\",\"y\"],t);return{x:e,y:i}}size(t){let e=(t=t||this.options||{}).radius||0;e=Math.max(e,e&&t.hoverRadius||0);return 2*(e+(e&&t.borderWidth||0))}draw(t,e){const i=this.options;this.skip||i.radius<.1||!Se(this,e,this.size(i)/2)||(t.strokeStyle=i.borderColor,t.lineWidth=i.borderWidth,t.fillStyle=i.backgroundColor,Me(t,i,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function so(t,e){const{x:i,y:s,base:n,width:o,height:a}=t.getProps([\"x\",\"y\",\"base\",\"width\",\"height\"],e);let r,l,h,c,d;return t.horizontal?(d=a/2,r=Math.min(i,n),l=Math.max(i,n),h=s-d,c=s+d):(d=o/2,r=i-d,l=i+d,h=Math.min(s,n),c=Math.max(s,n)),{left:r,top:h,right:l,bottom:c}}function no(t,e,i,s){return t?0:Z(e,i,s)}function oo(t){const e=so(t),i=e.right-e.left,s=e.bottom-e.top,o=function(t,e,i){const s=t.options.borderWidth,n=t.borderSkipped,o=fi(s);return{t:no(n.top,o.top,0,i),r:no(n.right,o.right,0,e),b:no(n.bottom,o.bottom,0,i),l:no(n.left,o.left,0,e)}}(t,i/2,s/2),a=function(t,e,i){const{enableBorderRadius:s}=t.getProps([\"enableBorderRadius\"]),o=t.options.borderRadius,a=gi(o),r=Math.min(e,i),l=t.borderSkipped,h=s||n(o);return{topLeft:no(!h||l.top||l.left,a.topLeft,0,r),topRight:no(!h||l.top||l.right,a.topRight,0,r),bottomLeft:no(!h||l.bottom||l.left,a.bottomLeft,0,r),bottomRight:no(!h||l.bottom||l.right,a.bottomRight,0,r)}}(t,i/2,s/2);return{outer:{x:e.left,y:e.top,w:i,h:s,radius:a},inner:{x:e.left+o.l,y:e.top+o.t,w:i-o.l-o.r,h:s-o.t-o.b,radius:{topLeft:Math.max(0,a.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,a.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(o.b,o.r))}}}}function ao(t,e,i,s){const n=null===e,o=null===i,a=t&&!(n&&o)&&so(t,s);return a&&(n||Q(e,a.left,a.right))&&(o||Q(i,a.top,a.bottom))}function ro(t,e){t.rect(e.x,e.y,e.w,e.h)}function lo(t,e,i={}){const s=t.x!==i.x?-e:0,n=t.y!==i.y?-e:0,o=(t.x+t.w!==i.x+i.w?e:0)-s,a=(t.y+t.h!==i.y+i.h?e:0)-n;return{x:t.x+s,y:t.y+n,w:t.w+o,h:t.h+a,radius:t.radius}}io.id=\"point\",io.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:\"circle\",radius:3,rotation:0},io.defaultRoutes={backgroundColor:\"backgroundColor\",borderColor:\"borderColor\"};class ho extends Es{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:i,backgroundColor:s}}=this,{inner:n,outer:o}=oo(this),a=(r=o.radius).topLeft||r.topRight||r.bottomLeft||r.bottomRight?Le:ro;var r;t.save(),o.w===n.w&&o.h===n.h||(t.beginPath(),a(t,lo(o,e,n)),t.clip(),a(t,lo(n,-e,o)),t.fillStyle=i,t.fill(\"evenodd\")),t.beginPath(),a(t,lo(n,e)),t.fillStyle=s,t.fill(),t.restore()}inRange(t,e,i){return ao(this,t,e,i)}inXRange(t,e){return ao(this,t,null,e)}inYRange(t,e){return ao(this,null,t,e)}getCenterPoint(t){const{x:e,y:i,base:s,horizontal:n}=this.getProps([\"x\",\"y\",\"base\",\"horizontal\"],t);return{x:n?(e+s)/2:e,y:n?i:(i+s)/2}}getRange(t){return\"x\"===t?this.width/2:this.height/2}}ho.id=\"bar\",ho.defaults={borderSkipped:\"start\",borderWidth:0,borderRadius:0,inflateAmount:\"auto\",pointStyle:void 0},ho.defaultRoutes={backgroundColor:\"backgroundColor\",borderColor:\"borderColor\"};var co=Object.freeze({__proto__:null,ArcElement:Yn,LineElement:to,PointElement:io,BarElement:ho});function uo(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,\"data\",{value:e})}}function fo(t){t.data.datasets.forEach((t=>{uo(t)}))}var go={id:\"decimation\",defaults:{algorithm:\"min-max\",enabled:!1},beforeElementsUpdate:(t,e,s)=>{if(!s.enabled)return void fo(t);const n=t.width;t.data.datasets.forEach(((e,o)=>{const{_data:a,indexAxis:r}=e,l=t.getDatasetMeta(o),h=a||e.data;if(\"y\"===bi([r,t.options.indexAxis]))return;if(!l.controller.supportsDecimation)return;const c=t.scales[l.xAxisID];if(\"linear\"!==c.type&&\"time\"!==c.type)return;if(t.options.parsing)return;let{start:d,count:u}=function(t,e){const i=e.length;let s,n=0;const{iScale:o}=t,{min:a,max:r,minDefined:l,maxDefined:h}=o.getUserBounds();return l&&(n=Z(et(e,o.axis,a).lo,0,i-1)),s=h?Z(et(e,o.axis,r).hi+1,n,i)-n:i-n,{start:n,count:s}}(l,h);if(u<=(s.threshold||4*n))return void uo(e);let f;switch(i(a)&&(e._data=h,delete e.data,Object.defineProperty(e,\"data\",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(t){this._data=t}})),s.algorithm){case\"lttb\":f=function(t,e,i,s,n){const o=n.samples||s;if(o>=i)return t.slice(e,e+i);const a=[],r=(i-2)/(o-2);let l=0;const h=e+i-1;let c,d,u,f,g,p=e;for(a[l++]=t[p],c=0;c<o-2;c++){let s,n=0,o=0;const h=Math.floor((c+1)*r)+1+e,m=Math.min(Math.floor((c+2)*r)+1,i)+e,b=m-h;for(s=h;s<m;s++)n+=t[s].x,o+=t[s].y;n/=b,o/=b;const x=Math.floor(c*r)+1+e,_=Math.min(Math.floor((c+1)*r)+1,i)+e,{x:y,y:v}=t[p];for(u=f=-1,s=x;s<_;s++)f=.5*Math.abs((y-n)*(t[s].y-v)-(y-t[s].x)*(o-v)),f>u&&(u=f,d=t[s],g=s);a[l++]=d,p=g}return a[l++]=t[h],a}(h,d,u,n,s);break;case\"min-max\":f=function(t,e,s,n){let o,a,r,l,h,c,d,u,f,g,p=0,m=0;const b=[],x=e+s-1,_=t[e].x,y=t[x].x-_;for(o=e;o<e+s;++o){a=t[o],r=(a.x-_)/y*n,l=a.y;const e=0|r;if(e===h)l<f?(f=l,c=o):l>g&&(g=l,d=o),p=(m*p+a.x)/++m;else{const s=o-1;if(!i(c)&&!i(d)){const e=Math.min(c,d),i=Math.max(c,d);e!==u&&e!==s&&b.push({...t[e],x:p}),i!==u&&i!==s&&b.push({...t[i],x:p})}o>0&&s!==u&&b.push(t[s]),b.push(a),h=e,m=0,f=g=l,c=d=u=o}}return b}(h,d,u,n);break;default:throw new Error(`Unsupported decimation algorithm '${s.algorithm}'`)}e._decimated=f}))},destroy(t){fo(t)}};function po(t,e,i,s){if(s)return;let n=e[t],o=i[t];return\"angle\"===t&&(n=K(n),o=K(o)),{property:t,start:n,end:o}}function mo(t,e,i){for(;e>t;e--){const t=i[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function bo(t,e,i,s){return t&&e?s(t[i],e[i]):t?t[i]:e?e[i]:0}function xo(t,e){let i=[],n=!1;return s(t)?(n=!0,i=t):i=function(t,e){const{x:i=null,y:s=null}=t||{},n=e.points,o=[];return e.segments.forEach((({start:t,end:e})=>{e=mo(t,e,n);const a=n[t],r=n[e];null!==s?(o.push({x:a.x,y:s}),o.push({x:r.x,y:s})):null!==i&&(o.push({x:i,y:a.y}),o.push({x:i,y:r.y}))})),o}(t,e),i.length?new to({points:i,options:{tension:0},_loop:n,_fullLoop:n}):null}function _o(t){return t&&!1!==t.fill}function yo(t,e,i){let s=t[e].fill;const n=[e];let a;if(!i)return s;for(;!1!==s&&-1===n.indexOf(s);){if(!o(s))return s;if(a=t[s],!a)return!1;if(a.visible)return s;n.push(s),s=a.fill}return!1}function vo(t,e,i){const s=function(t){const e=t.options,i=e.fill;let s=r(i&&i.target,i);void 0===s&&(s=!!e.backgroundColor);if(!1===s||null===s)return!1;if(!0===s)return\"origin\";return s}(t);if(n(s))return!isNaN(s.value)&&s;let a=parseFloat(s);return o(a)&&Math.floor(a)===a?function(t,e,i,s){\"-\"!==t&&\"+\"!==t||(i=e+i);if(i===e||i<0||i>=s)return!1;return i}(s[0],e,a,i):[\"origin\",\"start\",\"end\",\"stack\",\"shape\"].indexOf(s)>=0&&s}function wo(t,e,i){const s=[];for(let n=0;n<i.length;n++){const o=i[n],{first:a,last:r,point:l}=Mo(o,e,\"x\");if(!(!l||a&&r))if(a)s.unshift(l);else if(t.push(l),!r)break}t.push(...s)}function Mo(t,e,i){const s=t.interpolate(e,i);if(!s)return{};const n=s[i],o=t.segments,a=t.points;let r=!1,l=!1;for(let t=0;t<o.length;t++){const e=o[t],s=a[e.start][i],h=a[e.end][i];if(Q(n,s,h)){r=n===s,l=n===h;break}}return{first:r,last:l,point:s}}class ko{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,i){const{x:s,y:n,radius:o}=this;return e=e||{start:0,end:O},t.arc(s,n,o,e.end,e.start,!0),!i.bounds}interpolate(t){const{x:e,y:i,radius:s}=this,n=t.angle;return{x:e+Math.cos(n)*s,y:i+Math.sin(n)*s,angle:n}}}function So(t){const{chart:e,fill:i,line:s}=t;if(o(i))return function(t,e){const i=t.getDatasetMeta(e);return i&&t.isDatasetVisible(e)?i.dataset:null}(e,i);if(\"stack\"===i)return function(t){const{scale:e,index:i,line:s}=t,n=[],o=s.segments,a=s.points,r=function(t,e){const i=[],s=t.getMatchingVisibleMetas(\"line\");for(let t=0;t<s.length;t++){const n=s[t];if(n.index===e)break;n.hidden||i.unshift(n.dataset)}return i}(e,i);r.push(xo({x:null,y:e.bottom},s));for(let t=0;t<o.length;t++){const e=o[t];for(let t=e.start;t<=e.end;t++)wo(n,a[t],r)}return new to({points:n,options:{}})}(t);if(\"shape\"===i)return!0;const a=function(t){if((t.scale||{}).getPointPositionForValue)return function(t){const{scale:e,fill:i}=t,s=e.options,o=e.getLabels().length,a=s.reverse?e.max:e.min,r=function(t,e,i){let s;return s=\"start\"===t?i:\"end\"===t?e.options.reverse?e.min:e.max:n(t)?t.value:e.getBaseValue(),s}(i,e,a),l=[];if(s.grid.circular){const t=e.getPointPositionForValue(0,a);return new ko({x:t.x,y:t.y,radius:e.getDistanceFromCenterForValue(r)})}for(let t=0;t<o;++t)l.push(e.getPointPositionForValue(t,r));return l}(t);return function(t){const{scale:e={},fill:i}=t,s=function(t,e){let i=null;return\"start\"===t?i=e.bottom:\"end\"===t?i=e.top:n(t)?i=e.getPixelForValue(t.value):e.getBasePixel&&(i=e.getBasePixel()),i}(i,e);if(o(s)){const t=e.isHorizontal();return{x:t?s:null,y:t?null:s}}return null}(t)}(t);return a instanceof ko?a:xo(a,s)}function Po(t,e,i){const s=So(e),{line:n,scale:o,axis:a}=e,r=n.options,l=r.fill,h=r.backgroundColor,{above:c=h,below:d=h}=l||{};s&&n.points.length&&(Pe(t,i),function(t,e){const{line:i,target:s,above:n,below:o,area:a,scale:r}=e,l=i._loop?\"angle\":e.axis;t.save(),\"x\"===l&&o!==n&&(Do(t,s,a.top),Oo(t,{line:i,target:s,color:n,scale:r,property:l}),t.restore(),t.save(),Do(t,s,a.bottom));Oo(t,{line:i,target:s,color:o,scale:r,property:l}),t.restore()}(t,{line:n,target:s,above:c,below:d,area:i,scale:o,axis:a}),De(t))}function Do(t,e,i){const{segments:s,points:n}=e;let o=!0,a=!1;t.beginPath();for(const r of s){const{start:s,end:l}=r,h=n[s],c=n[mo(s,l,n)];o?(t.moveTo(h.x,h.y),o=!1):(t.lineTo(h.x,i),t.lineTo(h.x,h.y)),a=!!e.pathSegment(t,r,{move:a}),a?t.closePath():t.lineTo(c.x,i)}t.lineTo(e.first().x,i),t.closePath(),t.clip()}function Oo(t,e){const{line:i,target:s,property:n,color:o,scale:a}=e,r=function(t,e,i){const s=t.segments,n=t.points,o=e.points,a=[];for(const t of s){let{start:s,end:r}=t;r=mo(s,r,n);const l=po(i,n[s],n[r],t.loop);if(!e.segments){a.push({source:t,target:l,start:n[s],end:n[r]});continue}const h=Pi(e,l);for(const e of h){const s=po(i,o[e.start],o[e.end],e.loop),r=Si(t,n,s);for(const t of r)a.push({source:t,target:e,start:{[i]:bo(l,s,\"start\",Math.max)},end:{[i]:bo(l,s,\"end\",Math.min)}})}}return a}(i,s,n);for(const{source:e,target:l,start:h,end:c}of r){const{style:{backgroundColor:r=o}={}}=e,d=!0!==s;t.save(),t.fillStyle=r,Co(t,a,d&&po(n,h,c)),t.beginPath();const u=!!i.pathSegment(t,e);let f;if(d){u?t.closePath():Ao(t,s,c,n);const e=!!s.pathSegment(t,l,{move:u,reverse:!0});f=u&&e,f||Ao(t,s,h,n)}t.closePath(),t.fill(f?\"evenodd\":\"nonzero\"),t.restore()}}function Co(t,e,i){const{top:s,bottom:n}=e.chart.chartArea,{property:o,start:a,end:r}=i||{};\"x\"===o&&(t.beginPath(),t.rect(a,s,r-a,n-s),t.clip())}function Ao(t,e,i,s){const n=e.interpolate(i,s);n&&t.lineTo(n.x,n.y)}var To={id:\"filler\",afterDatasetsUpdate(t,e,i){const s=(t.data.datasets||[]).length,n=[];let o,a,r,l;for(a=0;a<s;++a)o=t.getDatasetMeta(a),r=o.dataset,l=null,r&&r.options&&r instanceof to&&(l={visible:t.isDatasetVisible(a),index:a,fill:vo(r,a,s),chart:t,axis:o.controller.options.indexAxis,scale:o.vScale,line:r}),o.$filler=l,n.push(l);for(a=0;a<s;++a)l=n[a],l&&!1!==l.fill&&(l.fill=yo(n,a,i.propagate))},beforeDraw(t,e,i){const s=\"beforeDraw\"===i.drawTime,n=t.getSortedVisibleDatasetMetas(),o=t.chartArea;for(let e=n.length-1;e>=0;--e){const i=n[e].$filler;i&&(i.line.updateControlPoints(o,i.axis),s&&i.fill&&Po(t.ctx,i,o))}},beforeDatasetsDraw(t,e,i){if(\"beforeDatasetsDraw\"!==i.drawTime)return;const s=t.getSortedVisibleDatasetMetas();for(let e=s.length-1;e>=0;--e){const i=s[e].$filler;_o(i)&&Po(t.ctx,i,t.chartArea)}},beforeDatasetDraw(t,e,i){const s=e.meta.$filler;_o(s)&&\"beforeDatasetDraw\"===i.drawTime&&Po(t.ctx,s,t.chartArea)},defaults:{propagate:!0,drawTime:\"beforeDatasetDraw\"}};const Lo=(t,e)=>{let{boxHeight:i=e,boxWidth:s=e}=t;return t.usePointStyle&&(i=Math.min(i,e),s=t.pointStyleWidth||Math.min(s,e)),{boxWidth:s,boxHeight:i,itemHeight:Math.max(e,i)}};class Eo extends Es{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,i){this.maxWidth=t,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=c(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter((e=>t.filter(e,this.chart.data)))),t.sort&&(e=e.sort(((e,i)=>t.sort(e,i,this.chart.data)))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const i=t.labels,s=mi(i.font),n=s.size,o=this._computeTitleHeight(),{boxWidth:a,itemHeight:r}=Lo(i,n);let l,h;e.font=s.string,this.isHorizontal()?(l=this.maxWidth,h=this._fitRows(o,n,a,r)+10):(h=this.maxHeight,l=this._fitCols(o,n,a,r)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(h,t.maxHeight||this.maxHeight)}_fitRows(t,e,i,s){const{ctx:n,maxWidth:o,options:{labels:{padding:a}}}=this,r=this.legendHitBoxes=[],l=this.lineWidths=[0],h=s+a;let c=t;n.textAlign=\"left\",n.textBaseline=\"middle\";let d=-1,u=-h;return this.legendItems.forEach(((t,f)=>{const g=i+e/2+n.measureText(t.text).width;(0===f||l[l.length-1]+g+2*a>o)&&(c+=h,l[l.length-(f>0?0:1)]=0,u+=h,d++),r[f]={left:0,top:u,row:d,width:g,height:s},l[l.length-1]+=g+a})),c}_fitCols(t,e,i,s){const{ctx:n,maxHeight:o,options:{labels:{padding:a}}}=this,r=this.legendHitBoxes=[],l=this.columnSizes=[],h=o-t;let c=a,d=0,u=0,f=0,g=0;return this.legendItems.forEach(((t,o)=>{const p=i+e/2+n.measureText(t.text).width;o>0&&u+s+2*a>h&&(c+=d+a,l.push({width:d,height:u}),f+=d+a,g++,d=u=0),r[o]={left:f,top:u,col:g,width:p,height:s},d=Math.max(d,p),u+=s+a})),c+=d,l.push({width:d,height:u}),c}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:s},rtl:n}}=this,o=yi(n,this.left,this.width);if(this.isHorizontal()){let n=0,a=ut(i,this.left+s,this.right-this.lineWidths[n]);for(const r of e)n!==r.row&&(n=r.row,a=ut(i,this.left+s,this.right-this.lineWidths[n])),r.top+=this.top+t+s,r.left=o.leftForLtr(o.x(a),r.width),a+=r.width+s}else{let n=0,a=ut(i,this.top+t+s,this.bottom-this.columnSizes[n].height);for(const r of e)r.col!==n&&(n=r.col,a=ut(i,this.top+t+s,this.bottom-this.columnSizes[n].height)),r.top=a,r.left+=this.left+s,r.left=o.leftForLtr(o.x(r.left),r.width),a+=r.height+s}}isHorizontal(){return\"top\"===this.options.position||\"bottom\"===this.options.position}draw(){if(this.options.display){const t=this.ctx;Pe(t,this),this._draw(),De(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:i,ctx:s}=this,{align:n,labels:o}=t,a=ne.color,l=yi(t.rtl,this.left,this.width),h=mi(o.font),{color:c,padding:d}=o,u=h.size,f=u/2;let g;this.drawTitle(),s.textAlign=l.textAlign(\"left\"),s.textBaseline=\"middle\",s.lineWidth=.5,s.font=h.string;const{boxWidth:p,boxHeight:m,itemHeight:b}=Lo(o,u),x=this.isHorizontal(),_=this._computeTitleHeight();g=x?{x:ut(n,this.left+d,this.right-i[0]),y:this.top+d+_,line:0}:{x:this.left+d,y:ut(n,this.top+_+d,this.bottom-e[0].height),line:0},vi(this.ctx,t.textDirection);const y=b+d;this.legendItems.forEach(((v,w)=>{s.strokeStyle=v.fontColor||c,s.fillStyle=v.fontColor||c;const M=s.measureText(v.text).width,k=l.textAlign(v.textAlign||(v.textAlign=o.textAlign)),S=p+f+M;let P=g.x,D=g.y;l.setWidth(this.width),x?w>0&&P+S+d>this.right&&(D=g.y+=y,g.line++,P=g.x=ut(n,this.left+d,this.right-i[g.line])):w>0&&D+y>this.bottom&&(P=g.x=P+e[g.line].width+d,g.line++,D=g.y=ut(n,this.top+_+d,this.bottom-e[g.line].height));!function(t,e,i){if(isNaN(p)||p<=0||isNaN(m)||m<0)return;s.save();const n=r(i.lineWidth,1);if(s.fillStyle=r(i.fillStyle,a),s.lineCap=r(i.lineCap,\"butt\"),s.lineDashOffset=r(i.lineDashOffset,0),s.lineJoin=r(i.lineJoin,\"miter\"),s.lineWidth=n,s.strokeStyle=r(i.strokeStyle,a),s.setLineDash(r(i.lineDash,[])),o.usePointStyle){const a={radius:m*Math.SQRT2/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:n},r=l.xPlus(t,p/2);ke(s,a,r,e+f,o.pointStyleWidth&&p)}else{const o=e+Math.max((u-m)/2,0),a=l.leftForLtr(t,p),r=gi(i.borderRadius);s.beginPath(),Object.values(r).some((t=>0!==t))?Le(s,{x:a,y:o,w:p,h:m,radius:r}):s.rect(a,o,p,m),s.fill(),0!==n&&s.stroke()}s.restore()}(l.x(P),D,v),P=ft(k,P+p+f,x?P+S:this.right,t.rtl),function(t,e,i){Ae(s,i.text,t,e+b/2,h,{strikethrough:i.hidden,textAlign:l.textAlign(i.textAlign)})}(l.x(P),D,v),x?g.x+=S+d:g.y+=y})),wi(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,i=mi(e.font),s=pi(e.padding);if(!e.display)return;const n=yi(t.rtl,this.left,this.width),o=this.ctx,a=e.position,r=i.size/2,l=s.top+r;let h,c=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),h=this.top+l,c=ut(t.align,c,this.right-d);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);h=l+ut(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const u=ut(a,c,c+d);o.textAlign=n.textAlign(dt(a)),o.textBaseline=\"middle\",o.strokeStyle=e.color,o.fillStyle=e.color,o.font=i.string,Ae(o,e.text,u,h,i)}_computeTitleHeight(){const t=this.options.title,e=mi(t.font),i=pi(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){let i,s,n;if(Q(t,this.left,this.right)&&Q(e,this.top,this.bottom))for(n=this.legendHitBoxes,i=0;i<n.length;++i)if(s=n[i],Q(t,s.left,s.left+s.width)&&Q(e,s.top,s.top+s.height))return this.legendItems[i];return null}handleEvent(t){const e=this.options;if(!function(t,e){if((\"mousemove\"===t||\"mouseout\"===t)&&(e.onHover||e.onLeave))return!0;if(e.onClick&&(\"click\"===t||\"mouseup\"===t))return!0;return!1}(t.type,e))return;const i=this._getLegendItemAt(t.x,t.y);if(\"mousemove\"===t.type||\"mouseout\"===t.type){const o=this._hoveredItem,a=(n=i,null!==(s=o)&&null!==n&&s.datasetIndex===n.datasetIndex&&s.index===n.index);o&&!a&&c(e.onLeave,[t,o,this],this),this._hoveredItem=i,i&&!a&&c(e.onHover,[t,i,this],this)}else i&&c(e.onClick,[t,i,this],this);var s,n}}var Ro={id:\"legend\",_element:Eo,start(t,e,i){const s=t.legend=new Eo({ctx:t.ctx,options:i,chart:t});Zi.configure(t,s,i),Zi.addBox(t,s)},stop(t){Zi.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,i){const s=t.legend;Zi.configure(t,s,i),s.options=i},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:\"top\",align:\"center\",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,i){const s=e.datasetIndex,n=i.chart;n.isDatasetVisible(s)?(n.hide(s),e.hidden=!0):(n.show(s),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:i,pointStyle:s,textAlign:n,color:o}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const a=t.controller.getStyle(i?0:void 0),r=pi(a.borderWidth);return{text:e[t.index].label,fillStyle:a.backgroundColor,fontColor:o,hidden:!t.visible,lineCap:a.borderCapStyle,lineDash:a.borderDash,lineDashOffset:a.borderDashOffset,lineJoin:a.borderJoinStyle,lineWidth:(r.width+r.height)/4,strokeStyle:a.borderColor,pointStyle:s||a.pointStyle,rotation:a.rotation,textAlign:n||a.textAlign,borderRadius:0,datasetIndex:t.index}}),this)}},title:{color:t=>t.chart.options.color,display:!1,position:\"center\",text:\"\"}},descriptors:{_scriptable:t=>!t.startsWith(\"on\"),labels:{_scriptable:t=>![\"generateLabels\",\"filter\",\"sort\"].includes(t)}}};class Io extends Es{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const i=this.options;if(this.left=0,this.top=0,!i.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const n=s(i.text)?i.text.length:1;this._padding=pi(i.padding);const o=n*mi(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return\"top\"===t||\"bottom\"===t}_drawArgs(t){const{top:e,left:i,bottom:s,right:n,options:o}=this,a=o.align;let r,l,h,c=0;return this.isHorizontal()?(l=ut(a,i,n),h=e+t,r=n-i):(\"left\"===o.position?(l=i+t,h=ut(a,s,e),c=-.5*D):(l=n-t,h=ut(a,e,s),c=.5*D),r=s-e),{titleX:l,titleY:h,maxWidth:r,rotation:c}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const i=mi(e.font),s=i.lineHeight/2+this._padding.top,{titleX:n,titleY:o,maxWidth:a,rotation:r}=this._drawArgs(s);Ae(t,e.text,0,0,i,{color:e.color,maxWidth:a,rotation:r,textAlign:dt(e.align),textBaseline:\"middle\",translation:[n,o]})}}var zo={id:\"title\",_element:Io,start(t,e,i){!function(t,e){const i=new Io({ctx:t.ctx,options:e,chart:t});Zi.configure(t,i,e),Zi.addBox(t,i),t.titleBlock=i}(t,i)},stop(t){const e=t.titleBlock;Zi.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,i){const s=t.titleBlock;Zi.configure(t,s,i),s.options=i},defaults:{align:\"center\",display:!1,font:{weight:\"bold\"},fullSize:!0,padding:10,position:\"top\",text:\"\",weight:2e3},defaultRoutes:{color:\"color\"},descriptors:{_scriptable:!0,_indexable:!1}};const Fo=new WeakMap;var Vo={id:\"subtitle\",start(t,e,i){const s=new Io({ctx:t.ctx,options:i,chart:t});Zi.configure(t,s,i),Zi.addBox(t,s),Fo.set(t,s)},stop(t){Zi.removeBox(t,Fo.get(t)),Fo.delete(t)},beforeUpdate(t,e,i){const s=Fo.get(t);Zi.configure(t,s,i),s.options=i},defaults:{align:\"center\",display:!1,font:{weight:\"normal\"},fullSize:!0,padding:0,position:\"top\",text:\"\",weight:1500},defaultRoutes:{color:\"color\"},descriptors:{_scriptable:!0,_indexable:!1}};const Bo={average(t){if(!t.length)return!1;let e,i,s=0,n=0,o=0;for(e=0,i=t.length;e<i;++e){const i=t[e].element;if(i&&i.hasValue()){const t=i.tooltipPosition();s+=t.x,n+=t.y,++o}}return{x:s/o,y:n/o}},nearest(t,e){if(!t.length)return!1;let i,s,n,o=e.x,a=e.y,r=Number.POSITIVE_INFINITY;for(i=0,s=t.length;i<s;++i){const s=t[i].element;if(s&&s.hasValue()){const t=X(e,s.getCenterPoint());t<r&&(r=t,n=s)}}if(n){const t=n.tooltipPosition();o=t.x,a=t.y}return{x:o,y:a}}};function No(t,e){return e&&(s(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Wo(t){return(\"string\"==typeof t||t instanceof String)&&t.indexOf(\"\\n\")>-1?t.split(\"\\n\"):t}function jo(t,e){const{element:i,datasetIndex:s,index:n}=e,o=t.getDatasetMeta(s).controller,{label:a,value:r}=o.getLabelAndValue(n);return{chart:t,label:a,parsed:o.getParsed(n),raw:t.data.datasets[s].data[n],formattedValue:r,dataset:o.getDataset(),dataIndex:n,datasetIndex:s,element:i}}function Ho(t,e){const i=t.chart.ctx,{body:s,footer:n,title:o}=t,{boxWidth:a,boxHeight:r}=e,l=mi(e.bodyFont),h=mi(e.titleFont),c=mi(e.footerFont),u=o.length,f=n.length,g=s.length,p=pi(e.padding);let m=p.height,b=0,x=s.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);if(x+=t.beforeBody.length+t.afterBody.length,u&&(m+=u*h.lineHeight+(u-1)*e.titleSpacing+e.titleMarginBottom),x){m+=g*(e.displayColors?Math.max(r,l.lineHeight):l.lineHeight)+(x-g)*l.lineHeight+(x-1)*e.bodySpacing}f&&(m+=e.footerMarginTop+f*c.lineHeight+(f-1)*e.footerSpacing);let _=0;const y=function(t){b=Math.max(b,i.measureText(t).width+_)};return i.save(),i.font=h.string,d(t.title,y),i.font=l.string,d(t.beforeBody.concat(t.afterBody),y),_=e.displayColors?a+2+e.boxPadding:0,d(s,(t=>{d(t.before,y),d(t.lines,y),d(t.after,y)})),_=0,i.font=c.string,d(t.footer,y),i.restore(),b+=p.width,{width:b,height:m}}function $o(t,e,i,s){const{x:n,width:o}=i,{width:a,chartArea:{left:r,right:l}}=t;let h=\"center\";return\"center\"===s?h=n<=(r+l)/2?\"left\":\"right\":n<=o/2?h=\"left\":n>=a-o/2&&(h=\"right\"),function(t,e,i,s){const{x:n,width:o}=s,a=i.caretSize+i.caretPadding;return\"left\"===t&&n+o+a>e.width||\"right\"===t&&n-o-a<0||void 0}(h,t,e,i)&&(h=\"center\"),h}function Yo(t,e,i){const s=i.yAlign||e.yAlign||function(t,e){const{y:i,height:s}=e;return i<s/2?\"top\":i>t.height-s/2?\"bottom\":\"center\"}(t,i);return{xAlign:i.xAlign||e.xAlign||$o(t,e,i,s),yAlign:s}}function Uo(t,e,i,s){const{caretSize:n,caretPadding:o,cornerRadius:a}=t,{xAlign:r,yAlign:l}=i,h=n+o,{topLeft:c,topRight:d,bottomLeft:u,bottomRight:f}=gi(a);let g=function(t,e){let{x:i,width:s}=t;return\"right\"===e?i-=s:\"center\"===e&&(i-=s/2),i}(e,r);const p=function(t,e,i){let{y:s,height:n}=t;return\"top\"===e?s+=i:s-=\"bottom\"===e?n+i:n/2,s}(e,l,h);return\"center\"===l?\"left\"===r?g+=h:\"right\"===r&&(g-=h):\"left\"===r?g-=Math.max(c,u)+n:\"right\"===r&&(g+=Math.max(d,f)+n),{x:Z(g,0,s.width-e.width),y:Z(p,0,s.height-e.height)}}function Xo(t,e,i){const s=pi(i.padding);return\"center\"===e?t.x+t.width/2:\"right\"===e?t.x+t.width-s.right:t.x+s.left}function qo(t){return No([],Wo(t))}function Ko(t,e){const i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}class Go extends Es{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart||t._chart,this._chart=this.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,i=this.options.setContext(this.getContext()),s=i.enabled&&e.options.animation&&i.animations,n=new ys(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(n)),n}getContext(){return this.$context||(this.$context=(t=this.chart.getContext(),e=this,i=this._tooltipItems,_i(t,{tooltip:e,tooltipItems:i,type:\"tooltip\"})));var t,e,i}getTitle(t,e){const{callbacks:i}=e,s=i.beforeTitle.apply(this,[t]),n=i.title.apply(this,[t]),o=i.afterTitle.apply(this,[t]);let a=[];return a=No(a,Wo(s)),a=No(a,Wo(n)),a=No(a,Wo(o)),a}getBeforeBody(t,e){return qo(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const{callbacks:i}=e,s=[];return d(t,(t=>{const e={before:[],lines:[],after:[]},n=Ko(i,t);No(e.before,Wo(n.beforeLabel.call(this,t))),No(e.lines,n.label.call(this,t)),No(e.after,Wo(n.afterLabel.call(this,t))),s.push(e)})),s}getAfterBody(t,e){return qo(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const{callbacks:i}=e,s=i.beforeFooter.apply(this,[t]),n=i.footer.apply(this,[t]),o=i.afterFooter.apply(this,[t]);let a=[];return a=No(a,Wo(s)),a=No(a,Wo(n)),a=No(a,Wo(o)),a}_createItems(t){const e=this._active,i=this.chart.data,s=[],n=[],o=[];let a,r,l=[];for(a=0,r=e.length;a<r;++a)l.push(jo(this.chart,e[a]));return t.filter&&(l=l.filter(((e,s,n)=>t.filter(e,s,n,i)))),t.itemSort&&(l=l.sort(((e,s)=>t.itemSort(e,s,i)))),d(l,(e=>{const i=Ko(t.callbacks,e);s.push(i.labelColor.call(this,e)),n.push(i.labelPointStyle.call(this,e)),o.push(i.labelTextColor.call(this,e))})),this.labelColors=s,this.labelPointStyles=n,this.labelTextColors=o,this.dataPoints=l,l}update(t,e){const i=this.options.setContext(this.getContext()),s=this._active;let n,o=[];if(s.length){const t=Bo[i.position].call(this,s,this._eventPosition);o=this._createItems(i),this.title=this.getTitle(o,i),this.beforeBody=this.getBeforeBody(o,i),this.body=this.getBody(o,i),this.afterBody=this.getAfterBody(o,i),this.footer=this.getFooter(o,i);const e=this._size=Ho(this,i),a=Object.assign({},t,e),r=Yo(this.chart,i,a),l=Uo(i,a,r,this.chart);this.xAlign=r.xAlign,this.yAlign=r.yAlign,n={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(n={opacity:0});this._tooltipItems=o,this.$context=void 0,n&&this._resolveAnimations().update(this,n),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,i,s){const n=this.getCaretPosition(t,i,s);e.lineTo(n.x1,n.y1),e.lineTo(n.x2,n.y2),e.lineTo(n.x3,n.y3)}getCaretPosition(t,e,i){const{xAlign:s,yAlign:n}=this,{caretSize:o,cornerRadius:a}=i,{topLeft:r,topRight:l,bottomLeft:h,bottomRight:c}=gi(a),{x:d,y:u}=t,{width:f,height:g}=e;let p,m,b,x,_,y;return\"center\"===n?(_=u+g/2,\"left\"===s?(p=d,m=p-o,x=_+o,y=_-o):(p=d+f,m=p+o,x=_-o,y=_+o),b=p):(m=\"left\"===s?d+Math.max(r,h)+o:\"right\"===s?d+f-Math.max(l,c)-o:this.caretX,\"top\"===n?(x=u,_=x-o,p=m-o,b=m+o):(x=u+g,_=x+o,p=m+o,b=m-o),y=x),{x1:p,x2:m,x3:b,y1:x,y2:_,y3:y}}drawTitle(t,e,i){const s=this.title,n=s.length;let o,a,r;if(n){const l=yi(i.rtl,this.x,this.width);for(t.x=Xo(this,i.titleAlign,i),e.textAlign=l.textAlign(i.titleAlign),e.textBaseline=\"middle\",o=mi(i.titleFont),a=i.titleSpacing,e.fillStyle=i.titleColor,e.font=o.string,r=0;r<n;++r)e.fillText(s[r],l.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+a,r+1===n&&(t.y+=i.titleMarginBottom-a)}}_drawColorBox(t,e,i,s,o){const a=this.labelColors[i],r=this.labelPointStyles[i],{boxHeight:l,boxWidth:h,boxPadding:c}=o,d=mi(o.bodyFont),u=Xo(this,\"left\",o),f=s.x(u),g=l<d.lineHeight?(d.lineHeight-l)/2:0,p=e.y+g;if(o.usePointStyle){const e={radius:Math.min(h,l)/2,pointStyle:r.pointStyle,rotation:r.rotation,borderWidth:1},i=s.leftForLtr(f,h)+h/2,n=p+l/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,Me(t,e,i,n),t.strokeStyle=a.borderColor,t.fillStyle=a.backgroundColor,Me(t,e,i,n)}else{t.lineWidth=n(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,t.strokeStyle=a.borderColor,t.setLineDash(a.borderDash||[]),t.lineDashOffset=a.borderDashOffset||0;const e=s.leftForLtr(f,h-c),i=s.leftForLtr(s.xPlus(f,1),h-c-2),r=gi(a.borderRadius);Object.values(r).some((t=>0!==t))?(t.beginPath(),t.fillStyle=o.multiKeyBackground,Le(t,{x:e,y:p,w:h,h:l,radius:r}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),Le(t,{x:i,y:p+1,w:h-2,h:l-2,radius:r}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(e,p,h,l),t.strokeRect(e,p,h,l),t.fillStyle=a.backgroundColor,t.fillRect(i,p+1,h-2,l-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,e,i){const{body:s}=this,{bodySpacing:n,bodyAlign:o,displayColors:a,boxHeight:r,boxWidth:l,boxPadding:h}=i,c=mi(i.bodyFont);let u=c.lineHeight,f=0;const g=yi(i.rtl,this.x,this.width),p=function(i){e.fillText(i,g.x(t.x+f),t.y+u/2),t.y+=u+n},m=g.textAlign(o);let b,x,_,y,v,w,M;for(e.textAlign=o,e.textBaseline=\"middle\",e.font=c.string,t.x=Xo(this,m,i),e.fillStyle=i.bodyColor,d(this.beforeBody,p),f=a&&\"right\"!==m?\"center\"===o?l/2+h:l+2+h:0,y=0,w=s.length;y<w;++y){for(b=s[y],x=this.labelTextColors[y],e.fillStyle=x,d(b.before,p),_=b.lines,a&&_.length&&(this._drawColorBox(e,t,y,g,i),u=Math.max(c.lineHeight,r)),v=0,M=_.length;v<M;++v)p(_[v]),u=c.lineHeight;d(b.after,p)}f=0,u=c.lineHeight,d(this.afterBody,p),t.y-=n}drawFooter(t,e,i){const s=this.footer,n=s.length;let o,a;if(n){const r=yi(i.rtl,this.x,this.width);for(t.x=Xo(this,i.footerAlign,i),t.y+=i.footerMarginTop,e.textAlign=r.textAlign(i.footerAlign),e.textBaseline=\"middle\",o=mi(i.footerFont),e.fillStyle=i.footerColor,e.font=o.string,a=0;a<n;++a)e.fillText(s[a],r.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+i.footerSpacing}}drawBackground(t,e,i,s){const{xAlign:n,yAlign:o}=this,{x:a,y:r}=t,{width:l,height:h}=i,{topLeft:c,topRight:d,bottomLeft:u,bottomRight:f}=gi(s.cornerRadius);e.fillStyle=s.backgroundColor,e.strokeStyle=s.borderColor,e.lineWidth=s.borderWidth,e.beginPath(),e.moveTo(a+c,r),\"top\"===o&&this.drawCaret(t,e,i,s),e.lineTo(a+l-d,r),e.quadraticCurveTo(a+l,r,a+l,r+d),\"center\"===o&&\"right\"===n&&this.drawCaret(t,e,i,s),e.lineTo(a+l,r+h-f),e.quadraticCurveTo(a+l,r+h,a+l-f,r+h),\"bottom\"===o&&this.drawCaret(t,e,i,s),e.lineTo(a+u,r+h),e.quadraticCurveTo(a,r+h,a,r+h-u),\"center\"===o&&\"left\"===n&&this.drawCaret(t,e,i,s),e.lineTo(a,r+c),e.quadraticCurveTo(a,r,a+c,r),e.closePath(),e.fill(),s.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,i=this.$animations,s=i&&i.x,n=i&&i.y;if(s||n){const i=Bo[t.position].call(this,this._active,this._eventPosition);if(!i)return;const o=this._size=Ho(this,t),a=Object.assign({},i,this._size),r=Yo(e,t,a),l=Uo(t,a,r,e);s._to===l.x&&n._to===l.y||(this.xAlign=r.xAlign,this.yAlign=r.yAlign,this.width=o.width,this.height=o.height,this.caretX=i.x,this.caretY=i.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(e);const s={width:this.width,height:this.height},n={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const o=pi(e.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&a&&(t.save(),t.globalAlpha=i,this.drawBackground(n,t,s,e),vi(t,e.textDirection),n.y+=o.top,this.drawTitle(n,t,e),this.drawBody(n,t,e),this.drawFooter(n,t,e),wi(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const i=this._active,s=t.map((({datasetIndex:t,index:e})=>{const i=this.chart.getDatasetMeta(t);if(!i)throw new Error(\"Cannot find a dataset at index \"+t);return{datasetIndex:t,element:i.data[e],index:e}})),n=!u(i,s),o=this._positionChanged(s,e);(n||o)&&(this._active=s,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,i=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,n=this._active||[],o=this._getActiveElements(t,n,e,i),a=this._positionChanged(o,t),r=e||!u(o,n)||a;return r&&(this._active=o,(s.enabled||s.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),r}_getActiveElements(t,e,i,s){const n=this.options;if(\"mouseout\"===t.type)return[];if(!s)return e;const o=this.chart.getElementsAtEventForMode(t,n.mode,n,i);return n.reverse&&o.reverse(),o}_positionChanged(t,e){const{caretX:i,caretY:s,options:n}=this,o=Bo[n.position].call(this,t,e);return!1!==o&&(i!==o.x||s!==o.y)}}Go.positioners=Bo;var Zo={id:\"tooltip\",_element:Go,positioners:Bo,afterInit(t,e,i){i&&(t.tooltip=new Go({chart:t,options:i}))},beforeUpdate(t,e,i){t.tooltip&&t.tooltip.initialize(i)},reset(t,e,i){t.tooltip&&t.tooltip.initialize(i)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const i={tooltip:e};if(!1===t.notifyPlugins(\"beforeTooltipDraw\",i))return;e.draw(t.ctx),t.notifyPlugins(\"afterTooltipDraw\",i)}},afterEvent(t,e){if(t.tooltip){const i=e.replay;t.tooltip.handleEvent(e.event,i,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:\"average\",backgroundColor:\"rgba(0,0,0,0.8)\",titleColor:\"#fff\",titleFont:{weight:\"bold\"},titleSpacing:2,titleMarginBottom:6,titleAlign:\"left\",bodyColor:\"#fff\",bodySpacing:2,bodyFont:{},bodyAlign:\"left\",footerColor:\"#fff\",footerSpacing:2,footerMarginTop:6,footerFont:{weight:\"bold\"},footerAlign:\"left\",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:\"#fff\",displayColors:!0,boxPadding:0,borderColor:\"rgba(0,0,0,0)\",borderWidth:0,animation:{duration:400,easing:\"easeOutQuart\"},animations:{numbers:{type:\"number\",properties:[\"x\",\"y\",\"width\",\"height\",\"caretX\",\"caretY\"]},opacity:{easing:\"linear\",duration:200}},callbacks:{beforeTitle:t,title(t){if(t.length>0){const e=t[0],i=e.chart.data.labels,s=i?i.length:0;if(this&&this.options&&\"dataset\"===this.options.mode)return e.dataset.label||\"\";if(e.label)return e.label;if(s>0&&e.dataIndex<s)return i[e.dataIndex]}return\"\"},afterTitle:t,beforeBody:t,beforeLabel:t,label(t){if(this&&this.options&&\"dataset\"===this.options.mode)return t.label+\": \"+t.formattedValue||t.formattedValue;let e=t.dataset.label||\"\";e&&(e+=\": \");const s=t.formattedValue;return i(s)||(e+=s),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:t,afterBody:t,beforeFooter:t,footer:t,afterFooter:t}},defaultRoutes:{bodyFont:\"font\",footerFont:\"font\",titleFont:\"font\"},descriptors:{_scriptable:t=>\"filter\"!==t&&\"itemSort\"!==t&&\"external\"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:\"animation\"}},additionalOptionScopes:[\"interaction\"]},Jo=Object.freeze({__proto__:null,Decimation:go,Filler:To,Legend:Ro,SubTitle:Vo,Title:zo,Tooltip:Zo});function Qo(t,e,i,s){const n=t.indexOf(e);if(-1===n)return((t,e,i,s)=>(\"string\"==typeof e?(i=t.push(e)-1,s.unshift({index:i,label:e})):isNaN(e)&&(i=null),i))(t,e,i,s);return n!==t.lastIndexOf(e)?i:n}class ta extends $s{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:i,label:s}of e)t[i]===s&&t.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(i(t))return null;const s=this.getLabels();return((t,e)=>null===t?null:Z(Math.round(t),0,e))(e=isFinite(e)&&s[e]===t?e:Qo(s,t,r(e,t),this._addedLabels),s.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:i,max:s}=this.getMinMax(!0);\"ticks\"===this.options.bounds&&(t||(i=0),e||(s=this.getLabels().length-1)),this.min=i,this.max=s}buildTicks(){const t=this.min,e=this.max,i=this.options.offset,s=[];let n=this.getLabels();n=0===t&&e===n.length-1?n:n.slice(t,e+1),this._valueRange=Math.max(n.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let i=t;i<=e;i++)s.push({value:i});return s}getLabelForValue(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return\"number\"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function ea(t,e,{horizontal:i,minRotation:s}){const n=H(s),o=(i?Math.sin(n):Math.cos(n))||.001,a=.75*e*(\"\"+t).length;return Math.min(e/o,a)}ta.id=\"category\",ta.defaults={ticks:{callback:ta.prototype.getLabelForValue}};class ia extends $s{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return i(t)||(\"number\"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds();let{min:s,max:n}=this;const o=t=>s=e?s:t,a=t=>n=i?n:t;if(t){const t=z(s),e=z(n);t<0&&e<0?a(0):t>0&&e>0&&o(0)}if(s===n){let e=1;(n>=Number.MAX_SAFE_INTEGER||s<=Number.MIN_SAFE_INTEGER)&&(e=Math.abs(.05*n)),a(n+e),t||o(s-e)}this.min=s,this.max=n}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:i,stepSize:s}=t;return s?(e=Math.ceil(this.max/s)-Math.floor(this.min/s)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${s} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),i=i||11),i&&(e=Math.min(i,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let s=this.getTickLimit();s=Math.max(2,s);const n=function(t,e){const s=[],{bounds:n,step:o,min:a,max:r,precision:l,count:h,maxTicks:c,maxDigits:d,includeBounds:u}=t,f=o||1,g=c-1,{min:p,max:m}=e,b=!i(a),x=!i(r),_=!i(h),y=(m-p)/(d+1);let v,w,M,k,S=F((m-p)/g/f)*f;if(S<1e-14&&!b&&!x)return[{value:p},{value:m}];k=Math.ceil(m/S)-Math.floor(p/S),k>g&&(S=F(k*S/g/f)*f),i(l)||(v=Math.pow(10,l),S=Math.ceil(S*v)/v),\"ticks\"===n?(w=Math.floor(p/S)*S,M=Math.ceil(m/S)*S):(w=p,M=m),b&&x&&o&&W((r-a)/o,S/1e3)?(k=Math.round(Math.min((r-a)/S,c)),S=(r-a)/k,w=a,M=r):_?(w=b?a:w,M=x?r:M,k=h-1,S=(M-w)/k):(k=(M-w)/S,k=N(k,Math.round(k),S/1e3)?Math.round(k):Math.ceil(k));const P=Math.max(Y(S),Y(w));v=Math.pow(10,i(l)?P:l),w=Math.round(w*v)/v,M=Math.round(M*v)/v;let D=0;for(b&&(u&&w!==a?(s.push({value:a}),w<a&&D++,N(Math.round((w+D*S)*v)/v,a,ea(a,y,t))&&D++):w<a&&D++);D<k;++D)s.push({value:Math.round((w+D*S)*v)/v});return x&&u&&M!==r?s.length&&N(s[s.length-1].value,r,ea(r,y,t))?s[s.length-1].value=r:s.push({value:r}):x&&M!==r||s.push({value:M}),s}({maxTicks:s,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return\"ticks\"===t.bounds&&j(n,this,\"value\"),t.reverse?(n.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),n}configure(){const t=this.ticks;let e=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){const s=(i-e)/Math.max(t.length-1,1)/2;e-=s,i+=s}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(t){return li(t,this.chart.options.locale,this.options.ticks.format)}}class sa extends ia{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=o(t)?t:0,this.max=o(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,i=H(this.options.ticks.minRotation),s=(t?Math.sin(i):Math.cos(i))||.001,n=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,n.lineHeight/s))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}function na(t){return 1===t/Math.pow(10,Math.floor(I(t)))}sa.id=\"linear\",sa.defaults={ticks:{callback:Is.formatters.numeric}};class oa extends $s{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const i=ia.prototype.parse.apply(this,[t,e]);if(0!==i)return o(i)&&i>0?i:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=o(t)?Math.max(0,t):null,this.max=o(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let i=this.min,s=this.max;const n=e=>i=t?i:e,o=t=>s=e?s:t,a=(t,e)=>Math.pow(10,Math.floor(I(t))+e);i===s&&(i<=0?(n(1),o(10)):(n(a(i,-1)),o(a(s,1)))),i<=0&&n(a(s,-1)),s<=0&&o(a(i,1)),this._zero&&this.min!==this._suggestedMin&&i===a(this.min,0)&&n(a(i,-1)),this.min=i,this.max=s}buildTicks(){const t=this.options,e=function(t,e){const i=Math.floor(I(e.max)),s=Math.ceil(e.max/Math.pow(10,i)),n=[];let o=a(t.min,Math.pow(10,Math.floor(I(e.min)))),r=Math.floor(I(o)),l=Math.floor(o/Math.pow(10,r)),h=r<0?Math.pow(10,Math.abs(r)):1;do{n.push({value:o,major:na(o)}),++l,10===l&&(l=1,++r,h=r>=0?1:h),o=Math.round(l*Math.pow(10,r)*h)/h}while(r<i||r===i&&l<s);const c=a(t.max,o);return n.push({value:c,major:na(o)}),n}({min:this._userMin,max:this._userMax},this);return\"ticks\"===t.bounds&&j(e,this,\"value\"),t.reverse?(e.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),e}getLabelForValue(t){return void 0===t?\"0\":li(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=I(t),this._valueRange=I(this.max)-I(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(I(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function aa(t){const e=t.ticks;if(e.display&&t.display){const t=pi(e.backdropPadding);return r(e.font&&e.font.size,ne.font.size)+t.height}return 0}function ra(t,e,i,s,n){return t===s||t===n?{start:e-i/2,end:e+i/2}:t<s||t>n?{start:e-i,end:e}:{start:e,end:e+i}}function la(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},i=Object.assign({},e),n=[],o=[],a=t._pointLabels.length,r=t.options.pointLabels,l=r.centerPointLabels?D/a:0;for(let u=0;u<a;u++){const a=r.setContext(t.getPointLabelContext(u));o[u]=a.padding;const f=t.getPointPosition(u,t.drawingArea+o[u],l),g=mi(a.font),p=(h=t.ctx,c=g,d=s(d=t._pointLabels[u])?d:[d],{w:ye(h,c.string,d),h:d.length*c.lineHeight});n[u]=p;const m=K(t.getIndexAngle(u)+l),b=Math.round($(m));ha(i,e,m,ra(b,f.x,p.w,0,180),ra(b,f.y,p.h,90,270))}var h,c,d;t.setCenterPoint(e.l-i.l,i.r-e.r,e.t-i.t,i.b-e.b),t._pointLabelItems=function(t,e,i){const s=[],n=t._pointLabels.length,o=t.options,a=aa(o)/2,r=t.drawingArea,l=o.pointLabels.centerPointLabels?D/n:0;for(let o=0;o<n;o++){const n=t.getPointPosition(o,r+a+i[o],l),h=Math.round($(K(n.angle+L))),c=e[o],d=ua(n.y,c.h,h),u=ca(h),f=da(n.x,c.w,u);s.push({x:n.x,y:d,textAlign:u,left:f,top:d,right:f+c.w,bottom:d+c.h})}return s}(t,n,o)}function ha(t,e,i,s,n){const o=Math.abs(Math.sin(i)),a=Math.abs(Math.cos(i));let r=0,l=0;s.start<e.l?(r=(e.l-s.start)/o,t.l=Math.min(t.l,e.l-r)):s.end>e.r&&(r=(s.end-e.r)/o,t.r=Math.max(t.r,e.r+r)),n.start<e.t?(l=(e.t-n.start)/a,t.t=Math.min(t.t,e.t-l)):n.end>e.b&&(l=(n.end-e.b)/a,t.b=Math.max(t.b,e.b+l))}function ca(t){return 0===t||180===t?\"center\":t<180?\"left\":\"right\"}function da(t,e,i){return\"right\"===i?t-=e:\"center\"===i&&(t-=e/2),t}function ua(t,e,i){return 90===i||270===i?t-=e/2:(i>270||i<90)&&(t-=e),t}function fa(t,e,i,s){const{ctx:n}=t;if(i)n.arc(t.xCenter,t.yCenter,e,0,O);else{let i=t.getPointPosition(0,e);n.moveTo(i.x,i.y);for(let o=1;o<s;o++)i=t.getPointPosition(o,e),n.lineTo(i.x,i.y)}}oa.id=\"logarithmic\",oa.defaults={ticks:{callback:Is.formatters.logarithmic,major:{enabled:!0}}};class ga extends ia{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=pi(aa(this.options)/2),e=this.width=this.maxWidth-t.width,i=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+i/2+t.top),this.drawingArea=Math.floor(Math.min(e,i)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=o(t)&&!isNaN(t)?t:0,this.max=o(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/aa(this.options))}generateTickLabels(t){ia.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map(((t,e)=>{const i=c(this.options.pointLabels.callback,[t,e],this);return i||0===i?i:\"\"})).filter(((t,e)=>this.chart.getDataVisibility(e)))}fit(){const t=this.options;t.display&&t.pointLabels.display?la(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,i,s){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((i-s)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,i,s))}getIndexAngle(t){return K(t*(O/(this._pointLabels.length||1))+H(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(i(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(i(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t<e.length){const i=e[t];return function(t,e,i){return _i(t,{label:i,index:e,type:\"pointLabel\"})}(this.getContext(),t,i)}}getPointPosition(t,e,i=0){const s=this.getIndexAngle(t)-L+i;return{x:Math.cos(s)*e+this.xCenter,y:Math.sin(s)*e+this.yCenter,angle:s}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:e,top:i,right:s,bottom:n}=this._pointLabelItems[t];return{left:e,top:i,right:s,bottom:n}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const i=this.ctx;i.save(),i.beginPath(),fa(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),i.closePath(),i.fillStyle=t,i.fill(),i.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:s,grid:n}=e,o=this._pointLabels.length;let a,r,l;if(e.pointLabels.display&&function(t,e){const{ctx:s,options:{pointLabels:n}}=t;for(let o=e-1;o>=0;o--){const e=n.setContext(t.getPointLabelContext(o)),a=mi(e.font),{x:r,y:l,textAlign:h,left:c,top:d,right:u,bottom:f}=t._pointLabelItems[o],{backdropColor:g}=e;if(!i(g)){const t=gi(e.borderRadius),i=pi(e.backdropPadding);s.fillStyle=g;const n=c-i.left,o=d-i.top,a=u-c+i.width,r=f-d+i.height;Object.values(t).some((t=>0!==t))?(s.beginPath(),Le(s,{x:n,y:o,w:a,h:r,radius:t}),s.fill()):s.fillRect(n,o,a,r)}Ae(s,t._pointLabels[o],r,l+a.lineHeight/2,a,{color:e.color,textAlign:h,textBaseline:\"middle\"})}}(this,o),n.display&&this.ticks.forEach(((t,e)=>{if(0!==e){r=this.getDistanceFromCenterForValue(t.value);!function(t,e,i,s){const n=t.ctx,o=e.circular,{color:a,lineWidth:r}=e;!o&&!s||!a||!r||i<0||(n.save(),n.strokeStyle=a,n.lineWidth=r,n.setLineDash(e.borderDash),n.lineDashOffset=e.borderDashOffset,n.beginPath(),fa(t,i,o,s),n.closePath(),n.stroke(),n.restore())}(this,n.setContext(this.getContext(e-1)),r,o)}})),s.display){for(t.save(),a=o-1;a>=0;a--){const i=s.setContext(this.getPointLabelContext(a)),{color:n,lineWidth:o}=i;o&&n&&(t.lineWidth=o,t.strokeStyle=n,t.setLineDash(i.borderDash),t.lineDashOffset=i.borderDashOffset,r=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),l=this.getPointPosition(a,r),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(l.x,l.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;const s=this.getIndexAngle(0);let n,o;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(s),t.textAlign=\"center\",t.textBaseline=\"middle\",this.ticks.forEach(((s,a)=>{if(0===a&&!e.reverse)return;const r=i.setContext(this.getContext(a)),l=mi(r.font);if(n=this.getDistanceFromCenterForValue(this.ticks[a].value),r.showLabelBackdrop){t.font=l.string,o=t.measureText(s.label).width,t.fillStyle=r.backdropColor;const e=pi(r.backdropPadding);t.fillRect(-o/2-e.left,-n-l.size/2-e.top,o+e.width,l.size+e.height)}Ae(t,s.label,0,-n,l,{color:r.color})})),t.restore()}drawTitle(){}}ga.id=\"radialLinear\",ga.defaults={display:!0,animate:!0,position:\"chartArea\",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Is.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}},ga.defaultRoutes={\"angleLines.color\":\"borderColor\",\"pointLabels.color\":\"color\",\"ticks.color\":\"color\"},ga.descriptors={angleLines:{_fallback:\"grid\"}};const pa={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},ma=Object.keys(pa);function ba(t,e){return t-e}function xa(t,e){if(i(e))return null;const s=t._adapter,{parser:n,round:a,isoWeekday:r}=t._parseOpts;let l=e;return\"function\"==typeof n&&(l=n(l)),o(l)||(l=\"string\"==typeof n?s.parse(l,n):s.parse(l)),null===l?null:(a&&(l=\"week\"!==a||!B(r)&&!0!==r?s.startOf(l,a):s.startOf(l,\"isoWeek\",r)),+l)}function _a(t,e,i,s){const n=ma.length;for(let o=ma.indexOf(t);o<n-1;++o){const t=pa[ma[o]],n=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((i-e)/(n*t.size))<=s)return ma[o]}return ma[n-1]}function ya(t,e,i){if(i){if(i.length){const{lo:s,hi:n}=tt(i,e);t[i[s]>=e?i[s]:i[n]]=!0}}else t[e]=!0}function va(t,e,i){const s=[],n={},o=e.length;let a,r;for(a=0;a<o;++a)r=e[a],n[r]=a,s.push({value:r,major:!1});return 0!==o&&i?function(t,e,i,s){const n=t._adapter,o=+n.startOf(e[0].value,s),a=e[e.length-1].value;let r,l;for(r=o;r<=a;r=+n.add(r,1,s))l=i[r],l>=0&&(e[l].major=!0);return e}(t,s,n,i):s}class wa extends $s{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit=\"day\",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e){const i=t.time||(t.time={}),s=this._adapter=new wn._date(t.adapters.date);s.init(e),b(i.displayFormats,s.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:xa(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,i=t.time.unit||\"day\";let{min:s,max:n,minDefined:a,maxDefined:r}=this.getUserBounds();function l(t){a||isNaN(t.min)||(s=Math.min(s,t.min)),r||isNaN(t.max)||(n=Math.max(n,t.max))}a&&r||(l(this._getLabelBounds()),\"ticks\"===t.bounds&&\"labels\"===t.ticks.source||l(this.getMinMax(!1))),s=o(s)&&!isNaN(s)?s:+e.startOf(Date.now(),i),n=o(n)&&!isNaN(n)?n:+e.endOf(Date.now(),i)+1,this.min=Math.min(s,n-1),this.max=Math.max(s+1,n)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],i=t[t.length-1]),{min:e,max:i}}buildTicks(){const t=this.options,e=t.time,i=t.ticks,s=\"labels\"===i.source?this.getLabelTimestamps():this._generate();\"ticks\"===t.bounds&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);const n=this.min,o=st(s,n,this.max);return this._unit=e.unit||(i.autoSkip?_a(e.minUnit,this.min,this.max,this._getLabelCapacity(n)):function(t,e,i,s,n){for(let o=ma.length-1;o>=ma.indexOf(i);o--){const i=ma[o];if(pa[i].common&&t._adapter.diff(n,s,i)>=e-1)return i}return ma[i?ma.indexOf(i):0]}(this,o.length,e.minUnit,this.min,this.max)),this._majorUnit=i.major.enabled&&\"year\"!==this._unit?function(t){for(let e=ma.indexOf(t)+1,i=ma.length;e<i;++e)if(pa[ma[e]].common)return ma[e]}(this._unit):void 0,this.initOffsets(s),t.reverse&&o.reverse(),va(this,o,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map((t=>+t.value)))}initOffsets(t){let e,i,s=0,n=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),s=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,i=this.getDecimalForValue(t[t.length-1]),n=1===t.length?i:(i-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;s=Z(s,0,o),n=Z(n,0,o),this._offsets={start:s,end:n,factor:1/(s+1+n)}}_generate(){const t=this._adapter,e=this.min,i=this.max,s=this.options,n=s.time,o=n.unit||_a(n.minUnit,e,i,this._getLabelCapacity(e)),a=r(n.stepSize,1),l=\"week\"===o&&n.isoWeekday,h=B(l)||!0===l,c={};let d,u,f=e;if(h&&(f=+t.startOf(f,\"isoWeek\",l)),f=+t.startOf(f,h?\"day\":o),t.diff(i,e,o)>1e5*a)throw new Error(e+\" and \"+i+\" are too far apart with stepSize of \"+a+\" \"+o);const g=\"data\"===s.ticks.source&&this.getDataTimestamps();for(d=f,u=0;d<i;d=+t.add(d,a,o),u++)ya(c,d,g);return d!==i&&\"ticks\"!==s.bounds&&1!==u||ya(c,d,g),Object.keys(c).sort(((t,e)=>t-e)).map((t=>+t))}getLabelForValue(t){const e=this._adapter,i=this.options.time;return i.tooltipFormat?e.format(t,i.tooltipFormat):e.format(t,i.displayFormats.datetime)}_tickFormatFunction(t,e,i,s){const n=this.options,o=n.time.displayFormats,a=this._unit,r=this._majorUnit,l=a&&o[a],h=r&&o[r],d=i[e],u=r&&h&&d&&d.major,f=this._adapter.format(t,s||(u?h:l)),g=n.ticks.callback;return g?c(g,[f,e,i],this):f}generateTickLabels(t){let e,i,s;for(e=0,i=t.length;e<i;++e)s=t[e],s.label=this._tickFormatFunction(s.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,i=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+i)*e.factor)}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+i*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,i=this.ctx.measureText(t).width,s=H(this.isHorizontal()?e.maxRotation:e.minRotation),n=Math.cos(s),o=Math.sin(s),a=this._resolveTickFontOptions(0).size;return{w:i*n+a*o,h:i*o+a*n}}_getLabelCapacity(t){const e=this.options.time,i=e.displayFormats,s=i[e.unit]||i.millisecond,n=this._tickFormatFunction(t,0,va(this,[t],this._majorUnit),s),o=this._getLabelSize(n),a=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return a>0?a:1}getDataTimestamps(){let t,e,i=this._cache.data||[];if(i.length)return i;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(t=0,e=s.length;t<e;++t)i=i.concat(s[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(i)}getLabelTimestamps(){const t=this._cache.labels||[];let e,i;if(t.length)return t;const s=this.getLabels();for(e=0,i=s.length;e<i;++e)t.push(xa(this,s[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return rt(t.sort(ba))}}function Ma(t,e,i){let s,n,o,a,r=0,l=t.length-1;i?(e>=t[r].pos&&e<=t[l].pos&&({lo:r,hi:l}=et(t,\"pos\",e)),({pos:s,time:o}=t[r]),({pos:n,time:a}=t[l])):(e>=t[r].time&&e<=t[l].time&&({lo:r,hi:l}=et(t,\"time\",e)),({time:s,pos:o}=t[r]),({time:n,pos:a}=t[l]));const h=n-s;return h?o+(a-o)*(e-s)/h:o}wa.id=\"time\",wa.defaults={bounds:\"data\",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:\"millisecond\",displayFormats:{}},ticks:{source:\"auto\",major:{enabled:!1}}};class ka extends wa{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=Ma(e,this.min),this._tableRange=Ma(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:i}=this,s=[],n=[];let o,a,r,l,h;for(o=0,a=t.length;o<a;++o)l=t[o],l>=e&&l<=i&&s.push(l);if(s.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(o=0,a=s.length;o<a;++o)h=s[o+1],r=s[o-1],l=s[o],Math.round((h+r)/2)!==l&&n.push({time:l,pos:o/(a-1)});return n}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),i=this.getLabelTimestamps();return t=e.length&&i.length?this.normalize(e.concat(i)):e.length?e:i,t=this._cache.all=t,t}getDecimalForValue(t){return(Ma(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return Ma(this._table,i*this._tableRange+this._minPos,!0)}}ka.id=\"timeseries\",ka.defaults=wa.defaults;var Sa=Object.freeze({__proto__:null,CategoryScale:ta,LinearScale:sa,LogarithmicScale:oa,RadialLinearScale:ga,TimeScale:wa,TimeSeriesScale:ka});return bn.register(Bn,Sa,co,Jo),bn.helpers={...Ti},bn._adapters=wn,bn.Animation=xs,bn.Animations=ys,bn.animator=mt,bn.controllers=Us.controllers.items,bn.DatasetController=Ls,bn.Element=Es,bn.elements=co,bn.Interaction=Vi,bn.layouts=Zi,bn.platforms=ps,bn.Scale=$s,bn.Ticks=Is,Object.assign(bn,Bn,Sa,co,Jo,ps),bn.Chart=bn,\"undefined\"!=typeof window&&(window.Chart=bn),bn}));\n","chartjs/chartjs-adapter-moment.min.js":"/*!\n  * chartjs-adapter-moment v1.0.0\n  * https://www.chartjs.org\n  * (c) 2021 chartjs-adapter-moment Contributors\n  * Released under the MIT license\n  */\n(function(global,factory){typeof exports==='object'&&typeof module!=='undefined'?factory(require('moment'),require('chart.js')):typeof define==='function'&&define.amd?define(['moment','chart.js'],factory):(global=typeof globalThis!=='undefined'?globalThis:global||self,factory(global.moment,global.Chart));}(this,(function(moment,chart_js){'use strict';function _interopDefaultLegacy(e){return e&&typeof e==='object'&&'default'in e?e:{'default':e};}\nvar moment__default=_interopDefaultLegacy(moment);const FORMATS={datetime:'MMM D, YYYY, h:mm:ss a',millisecond:'h:mm:ss.SSS a',second:'h:mm:ss a',minute:'h:mm a',hour:'hA',day:'MMM D',week:'ll',month:'MMM YYYY',quarter:'[Q]Q - YYYY',year:'YYYY'};chart_js._adapters._date.override(typeof moment__default['default']==='function'?{_id:'moment',formats:function(){return FORMATS;},parse:function(value,format){if(typeof value==='string'&&typeof format==='string'){value=moment__default['default'](value,format);}else if(!(value instanceof moment__default['default'])){value=moment__default['default'](value);}\nreturn value.isValid()?value.valueOf():null;},format:function(time,format){return moment__default['default'](time).format(format);},add:function(time,amount,unit){return moment__default['default'](time).add(amount,unit).valueOf();},diff:function(max,min,unit){return moment__default['default'](max).diff(moment__default['default'](min),unit);},startOf:function(time,unit,weekday){time=moment__default['default'](time);if(unit==='isoWeek'){weekday=Math.trunc(Math.min(Math.max(0,weekday),6));return time.isoWeekday(weekday).startOf('day').valueOf();}\nreturn time.startOf(unit).valueOf();},endOf:function(time,unit){return moment__default['default'](time).endOf(unit).valueOf();}}:{});})));","chartjs/es6-shim.min.js":"/*!\n  * https://github.com/paulmillr/es6-shim\n  * @license es6-shim Copyright 2013-2014 by Paul Miller (http://paulmillr.com)\n  *   and contributors,  MIT License\n  * es6-shim: v0.25.0\n  * see https://github.com/paulmillr/es6-shim/blob/0.25.0/LICENSE\n  * Details and documentation:\n  * https://github.com/paulmillr/es6-shim/\n  */\n(function(e,t){if(typeof define===\"function\"&&define.amd){define(t)}else if(typeof exports===\"object\"){module.exports=t()}else{e.returnExports=t()}})(this,function(){\"use strict\";var e=function(e){try{e()}catch(t){return false}return true};var t=function(e,t){try{var r=function(){e.apply(this,arguments)};if(!r.__proto__){return false}Object.setPrototypeOf(r,e);r.prototype=Object.create(e.prototype,{constructor:{value:e}});return t(r)}catch(n){return false}};var r=function(){try{Object.defineProperty({},\"x\",{});return true}catch(e){return false}};var n=function(){var e=false;if(String.prototype.startsWith){try{\"/a/\".startsWith(/a/)}catch(t){e=true}}return e};var i=new Function(\"return this;\");var o=i();var a=o.isFinite;var u=!!Object.defineProperty&&r();var s=n();var f=Function.call.bind(String.prototype.indexOf);var c=Function.call.bind(Object.prototype.toString);var l=Function.call.bind(Object.prototype.hasOwnProperty);var p;var h=function(){};var v=o.Symbol||{};var y=v.species||\"@@species\";var b={string:function(e){return c(e)===\"[object String]\"},regex:function(e){return c(e)===\"[object RegExp]\"},symbol:function(e){return typeof o.Symbol===\"function\"&&typeof e===\"symbol\"}};var g=function(e,t,r,n){if(!n&&t in e){return}if(u){Object.defineProperty(e,t,{configurable:true,enumerable:false,writable:true,value:r})}else{e[t]=r}};var d={getter:function(e,t,r){if(!u){throw new TypeError(\"getters require true ES5 support\")}Object.defineProperty(e,t,{configurable:true,enumerable:false,get:r})},proxy:function(e,t,r){if(!u){throw new TypeError(\"getters require true ES5 support\")}var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,{configurable:n.configurable,enumerable:n.enumerable,get:function i(){return e[t]},set:function o(r){e[t]=r}})},redefine:function(e,t,r){if(u){var n=Object.getOwnPropertyDescriptor(e,t);n.value=r;Object.defineProperty(e,t,n)}else{e[t]=r}}};var m=function(e,t){Object.keys(t).forEach(function(r){var n=t[r];g(e,r,n,false)})};var w=Object.create||function(e,t){function r(){}r.prototype=e;var n=new r;if(typeof t!==\"undefined\"){m(n,t)}return n};var O=b.symbol(v.iterator)?v.iterator:\"_es6-shim iterator_\";if(o.Set&&typeof(new o.Set)[\"@@iterator\"]===\"function\"){O=\"@@iterator\"}var j=function(e,t){if(!t){t=function n(){return this}}var r={};r[O]=t;m(e,r);if(!e[O]&&b.symbol(O)){e[O]=t}};var I=function dt(e){var t=c(e);var r=t===\"[object Arguments]\";if(!r){r=t!==\"[object Array]\"&&e!==null&&typeof e===\"object\"&&typeof e.length===\"number\"&&e.length>=0&&c(e.callee)===\"[object Function]\"}return r};var T=Function.call.bind(Function.apply);var M={Call:function mt(e,t){var r=arguments.length>2?arguments[2]:[];if(!M.IsCallable(e)){throw new TypeError(e+\" is not a function\")}return T(e,t,r)},RequireObjectCoercible:function(e,t){if(e==null){throw new TypeError(t||\"Cannot call method on \"+e)}},TypeIsObject:function(e){return e!=null&&Object(e)===e},ToObject:function(e,t){M.RequireObjectCoercible(e,t);return Object(e)},IsCallable:function(e){return typeof e===\"function\"&&c(e)===\"[object Function]\"},ToInt32:function(e){return M.ToNumber(e)>>0},ToUint32:function(e){return M.ToNumber(e)>>>0},ToNumber:function(e){if(c(e)===\"[object Symbol]\"){throw new TypeError(\"Cannot convert a Symbol value to a number\")}return+e},ToInteger:function(e){var t=M.ToNumber(e);if(Number.isNaN(t)){return 0}if(t===0||!Number.isFinite(t)){return t}return(t>0?1:-1)*Math.floor(Math.abs(t))},ToLength:function(e){var t=M.ToInteger(e);if(t<=0){return 0}if(t>Number.MAX_SAFE_INTEGER){return Number.MAX_SAFE_INTEGER}return t},SameValue:function(e,t){if(e===t){if(e===0){return 1/e===1/t}return true}return Number.isNaN(e)&&Number.isNaN(t)},SameValueZero:function(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)},IsIterable:function(e){return M.TypeIsObject(e)&&(typeof e[O]!==\"undefined\"||I(e))},GetIterator:function(e){if(I(e)){return new p(e,\"value\")}var t=e[O];if(!M.IsCallable(t)){throw new TypeError(\"value is not an iterable\")}var r=t.call(e);if(!M.TypeIsObject(r)){throw new TypeError(\"bad iterator\")}return r},IteratorNext:function(e){var t=arguments.length>1?e.next(arguments[1]):e.next();if(!M.TypeIsObject(t)){throw new TypeError(\"bad iterator\")}return t},Construct:function(e,t){var r;if(M.IsCallable(e[y])){r=e[y]()}else{r=w(e.prototype||null)}m(r,{_es6construct:true});var n=M.Call(e,r,t);return M.TypeIsObject(n)?n:r}};var N=function(e){if(!M.TypeIsObject(e)){throw new TypeError(\"bad object\")}if(!e._es6construct){if(e.constructor&&M.IsCallable(e.constructor[y])){e=e.constructor[y](e)}m(e,{_es6construct:true})}return e};var _=function(){function e(e){var t=Math.floor(e),r=e-t;if(r<.5){return t}if(r>.5){return t+1}return t%2?t+1:t}function t(t,r,n){var i=(1<<r-1)-1,o,a,u,s,f,c,l;if(t!==t){a=(1<<r)-1;u=Math.pow(2,n-1);o=0}else if(t===Infinity||t===-Infinity){a=(1<<r)-1;u=0;o=t<0?1:0}else if(t===0){a=0;u=0;o=1/t===-Infinity?1:0}else{o=t<0;t=Math.abs(t);if(t>=Math.pow(2,1-i)){a=Math.min(Math.floor(Math.log(t)/Math.LN2),1023);u=e(t/Math.pow(2,a)*Math.pow(2,n));if(u/Math.pow(2,n)>=2){a=a+1;u=1}if(a>i){a=(1<<r)-1;u=0}else{a=a+i;u=u-Math.pow(2,n)}}else{a=0;u=e(t/Math.pow(2,1-i-n))}}f=[];for(s=n;s;s-=1){f.push(u%2?1:0);u=Math.floor(u/2)}for(s=r;s;s-=1){f.push(a%2?1:0);a=Math.floor(a/2)}f.push(o?1:0);f.reverse();c=f.join(\"\");l=[];while(c.length){l.push(parseInt(c.slice(0,8),2));c=c.slice(8)}return l}function r(e,t,r){var n=[],i,o,a,u,s,f,c,l;for(i=e.length;i;i-=1){a=e[i-1];for(o=8;o;o-=1){n.push(a%2?1:0);a=a>>1}}n.reverse();u=n.join(\"\");s=(1<<t-1)-1;f=parseInt(u.slice(0,1),2)?-1:1;c=parseInt(u.slice(1,1+t),2);l=parseInt(u.slice(1+t),2);if(c===(1<<t)-1){return l!==0?NaN:f*Infinity}else if(c>0){return f*Math.pow(2,c-s)*(1+l/Math.pow(2,r))}else if(l!==0){return f*Math.pow(2,-(s-1))*(l/Math.pow(2,r))}else{return f<0?-0:0}}function n(e){return r(e,11,52)}function i(e){return t(e,11,52)}function o(e){return r(e,8,23)}function a(e){return t(e,8,23)}var u={toFloat32:function(e){return o(a(e))}};if(typeof Float32Array!==\"undefined\"){var s=new Float32Array(1);u.toFloat32=function(e){s[0]=e;return s[0]}}return u}();m(String,{fromCodePoint:function wt(e){var t=[];var r;for(var n=0,i=arguments.length;n<i;n++){r=Number(arguments[n]);if(!M.SameValue(r,M.ToInteger(r))||r<0||r>1114111){throw new RangeError(\"Invalid code point \"+r)}if(r<65536){t.push(String.fromCharCode(r))}else{r-=65536;t.push(String.fromCharCode((r>>10)+55296));t.push(String.fromCharCode(r%1024+56320))}}return t.join(\"\")},raw:function Ot(e){var t=M.ToObject(e,\"bad callSite\");var r=t.raw;var n=M.ToObject(r,\"bad raw value\");var i=n.length;var o=M.ToLength(i);if(o<=0){return\"\"}var a=[];var u=0;var s,f,c,l;while(u<o){s=String(u);f=n[s];c=String(f);a.push(c);if(u+1>=o){break}f=u+1<arguments.length?arguments[u+1]:\"\";l=String(f);a.push(l);u++}return a.join(\"\")}});if(String.fromCodePoint.length!==1){var E=Function.apply.bind(String.fromCodePoint);g(String,\"fromCodePoint\",function jt(e){return E(this,arguments)},true)}var x=function It(e,t){if(t<1){return\"\"}if(t%2){return It(e,t-1)+e}var r=It(e,t/2);return r+r};var S=Infinity;var P={repeat:function Tt(e){M.RequireObjectCoercible(this);var t=String(this);e=M.ToInteger(e);if(e<0||e>=S){throw new RangeError(\"repeat count must be less than infinity and not overflow maximum string size\")}return x(t,e)},startsWith:function(e){M.RequireObjectCoercible(this);var t=String(this);if(b.regex(e)){throw new TypeError('Cannot call method \"startsWith\" with a regex')}e=String(e);var r=arguments.length>1?arguments[1]:void 0;var n=Math.max(M.ToInteger(r),0);return t.slice(n,n+e.length)===e},endsWith:function(e){M.RequireObjectCoercible(this);var t=String(this);if(b.regex(e)){throw new TypeError('Cannot call method \"endsWith\" with a regex')}e=String(e);var r=t.length;var n=arguments.length>1?arguments[1]:void 0;var i=typeof n===\"undefined\"?r:M.ToInteger(n);var o=Math.min(Math.max(i,0),r);return t.slice(o-e.length,o)===e},includes:function Mt(e){var t=arguments.length>1?arguments[1]:void 0;return f(this,e,t)!==-1},codePointAt:function(e){M.RequireObjectCoercible(this);var t=String(this);var r=M.ToInteger(e);var n=t.length;if(r>=0&&r<n){var i=t.charCodeAt(r);var o=r+1===n;if(i<55296||i>56319||o){return i}var a=t.charCodeAt(r+1);if(a<56320||a>57343){return i}return(i-55296)*1024+(a-56320)+65536}}};m(String.prototype,P);var C=\"\\x85\".trim().length!==1;if(C){delete String.prototype.trim;var k=[\"\t\\n\u000b\\f\\r \\xa0\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\",\"\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\u2028\",\"\\u2029\\ufeff\"].join(\"\");var A=new RegExp(\"(^[\"+k+\"]+)|([\"+k+\"]+$)\",\"g\");m(String.prototype,{trim:function(){if(typeof this===\"undefined\"||this===null){throw new TypeError(\"can't convert \"+this+\" to object\")}return String(this).replace(A,\"\")}})}var R=function(e){M.RequireObjectCoercible(e);this._s=String(e);this._i=0};R.prototype.next=function(){var e=this._s,t=this._i;if(typeof e===\"undefined\"||t>=e.length){this._s=void 0;return{value:void 0,done:true}}var r=e.charCodeAt(t),n,i;if(r<55296||r>56319||t+1===e.length){i=1}else{n=e.charCodeAt(t+1);i=n<56320||n>57343?1:2}this._i=t+i;return{value:e.substr(t,i),done:false}};j(R.prototype);j(String.prototype,function(){return new R(this)});if(!s){g(String.prototype,\"startsWith\",P.startsWith,true);g(String.prototype,\"endsWith\",P.endsWith,true)}var F={from:function(e){var t=arguments.length>1?arguments[1]:void 0;var r=M.ToObject(e,\"bad iterable\");if(typeof t!==\"undefined\"&&!M.IsCallable(t)){throw new TypeError(\"Array.from: when provided, the second argument must be a function\")}var n=arguments.length>2;var i=n?arguments[2]:void 0;var o=M.IsIterable(r);var a;var u,s,f;if(o){s=0;u=M.IsCallable(this)?Object(new this):[];var c=o?M.GetIterator(r):null;var l;do{l=M.IteratorNext(c);if(!l.done){f=l.value;if(t){u[s]=n?t.call(i,f,s):t(f,s)}else{u[s]=f}s+=1}}while(!l.done);a=s}else{a=M.ToLength(r.length);u=M.IsCallable(this)?Object(new this(a)):new Array(a);for(s=0;s<a;++s){f=r[s];if(t){u[s]=n?t.call(i,f,s):t(f,s)}else{u[s]=f}}}u.length=a;return u},of:function(){return Array.from(arguments)}};m(Array,F);var D=function(){try{return Array.from({length:-1}).length===0}catch(e){return false}};if(!D()){g(Array,\"from\",F.from,true)}var z=function(e){return{value:e,done:arguments.length===0}};p=function(e,t){this.i=0;this.array=e;this.kind=t};m(p.prototype,{next:function(){var e=this.i,t=this.array;if(!(this instanceof p)){throw new TypeError(\"Not an ArrayIterator\")}if(typeof t!==\"undefined\"){var r=M.ToLength(t.length);for(;e<r;e++){var n=this.kind;var i;if(n===\"key\"){i=e}else if(n===\"value\"){i=t[e]}else if(n===\"entry\"){i=[e,t[e]]}this.i=e+1;return{value:i,done:false}}}this.array=void 0;return{value:void 0,done:true}}});j(p.prototype);var L=function(e,t){this.object=e;this.array=null;this.kind=t};function q(e){var t=[];for(var r in e){t.push(r)}return t}m(L.prototype,{next:function(){var e,t=this.array;if(!(this instanceof L)){throw new TypeError(\"Not an ObjectIterator\")}if(t===null){t=this.array=q(this.object)}while(M.ToLength(t.length)>0){e=t.shift();if(!(e in this.object)){continue}if(this.kind===\"key\"){return z(e)}else if(this.kind===\"value\"){return z(this.object[e])}else{return z([e,this.object[e]])}}return z()}});j(L.prototype);var G={copyWithin:function(e,t){var r=arguments[2];var n=M.ToObject(this);var i=M.ToLength(n.length);e=M.ToInteger(e);t=M.ToInteger(t);var o=e<0?Math.max(i+e,0):Math.min(e,i);var a=t<0?Math.max(i+t,0):Math.min(t,i);r=typeof r===\"undefined\"?i:M.ToInteger(r);var u=r<0?Math.max(i+r,0):Math.min(r,i);var s=Math.min(u-a,i-o);var f=1;if(a<o&&o<a+s){f=-1;a+=s-1;o+=s-1}while(s>0){if(l(n,a)){n[o]=n[a]}else{delete n[a]}a+=f;o+=f;s-=1}return n},fill:function(e){var t=arguments.length>1?arguments[1]:void 0;var r=arguments.length>2?arguments[2]:void 0;var n=M.ToObject(this);var i=M.ToLength(n.length);t=M.ToInteger(typeof t===\"undefined\"?0:t);r=M.ToInteger(typeof r===\"undefined\"?i:r);var o=t<0?Math.max(i+t,0):Math.min(t,i);var a=r<0?i+r:r;for(var u=o;u<i&&u<a;++u){n[u]=e}return n},find:function Nt(e){var t=M.ToObject(this);var r=M.ToLength(t.length);if(!M.IsCallable(e)){throw new TypeError(\"Array#find: predicate must be a function\")}var n=arguments.length>1?arguments[1]:null;for(var i=0,o;i<r;i++){o=t[i];if(n){if(e.call(n,o,i,t)){return o}}else if(e(o,i,t)){return o}}},findIndex:function _t(e){var t=M.ToObject(this);var r=M.ToLength(t.length);if(!M.IsCallable(e)){throw new TypeError(\"Array#findIndex: predicate must be a function\")}var n=arguments.length>1?arguments[1]:null;for(var i=0;i<r;i++){if(n){if(e.call(n,t[i],i,t)){return i}}else if(e(t[i],i,t)){return i}}return-1},keys:function(){return new p(this,\"key\")},values:function(){return new p(this,\"value\")},entries:function(){return new p(this,\"entry\")}};if(Array.prototype.keys&&!M.IsCallable([1].keys().next)){delete Array.prototype.keys}if(Array.prototype.entries&&!M.IsCallable([1].entries().next)){delete Array.prototype.entries}if(Array.prototype.keys&&Array.prototype.entries&&!Array.prototype.values&&Array.prototype[O]){m(Array.prototype,{values:Array.prototype[O]});if(b.symbol(v.unscopables)){Array.prototype[v.unscopables].values=true}}m(Array.prototype,G);j(Array.prototype,function(){return this.values()});if(Object.getPrototypeOf){j(Object.getPrototypeOf([].values()))}var W=Math.pow(2,53)-1;m(Number,{MAX_SAFE_INTEGER:W,MIN_SAFE_INTEGER:-W,EPSILON:2.220446049250313e-16,parseInt:o.parseInt,parseFloat:o.parseFloat,isFinite:function(e){return typeof e===\"number\"&&a(e)},isInteger:function(e){return Number.isFinite(e)&&M.ToInteger(e)===e},isSafeInteger:function(e){return Number.isInteger(e)&&Math.abs(e)<=Number.MAX_SAFE_INTEGER},isNaN:function(e){return e!==e}});if(![,1].find(function(e,t){return t===0})){g(Array.prototype,\"find\",G.find,true)}if([,1].findIndex(function(e,t){return t===0})!==0){g(Array.prototype,\"findIndex\",G.findIndex,true)}if(u){m(Object,{assign:function(e,t){if(!M.TypeIsObject(e)){throw new TypeError(\"target must be an object\")}return Array.prototype.reduce.call(arguments,function(e,t){return Object.keys(Object(t)).reduce(function(e,r){e[r]=t[r];return e},e)})},is:function(e,t){return M.SameValue(e,t)},setPrototypeOf:function(e,t){var r;var n=function(e,t){if(!M.TypeIsObject(e)){throw new TypeError(\"cannot set prototype on a non-object\")}if(!(t===null||M.TypeIsObject(t))){throw new TypeError(\"can only set prototype to an object or null\"+t)}};var i=function(e,t){n(e,t);r.call(e,t);return e};try{r=e.getOwnPropertyDescriptor(e.prototype,t).set;r.call({},null)}catch(o){if(e.prototype!=={}[t]){return}r=function(e){this[t]=e};i.polyfill=i(i({},null),e.prototype)instanceof e}return i}(Object,\"__proto__\")})}if(Object.setPrototypeOf&&Object.getPrototypeOf&&Object.getPrototypeOf(Object.setPrototypeOf({},null))!==null&&Object.getPrototypeOf(Object.create(null))===null){(function(){var e=Object.create(null);var t=Object.getPrototypeOf,r=Object.setPrototypeOf;Object.getPrototypeOf=function(r){var n=t(r);return n===e?null:n};Object.setPrototypeOf=function(t,n){if(n===null){n=e}return r(t,n)};Object.setPrototypeOf.polyfill=false})()}var V=function(){try{Object.keys(\"foo\");return true}catch(e){return false}}();if(!V){var U=Object.keys;g(Object,\"keys\",function Et(e){return U(M.ToObject(e))},true)}if(Object.getOwnPropertyNames){var X=function(){try{Object.getOwnPropertyNames(\"foo\");return true}catch(e){return false}}();if(!X){var Z=Object.getOwnPropertyNames;g(Object,\"getOwnPropertyNames\",function xt(e){return Z(M.ToObject(e))},true)}}if(!RegExp.prototype.flags&&u){var $=function St(){if(!M.TypeIsObject(this)){throw new TypeError(\"Method called on incompatible type: must be an object.\")}var e=\"\";if(this.global){e+=\"g\"}if(this.ignoreCase){e+=\"i\"}if(this.multiline){e+=\"m\"}if(this.unicode){e+=\"u\"}if(this.sticky){e+=\"y\"}return e};d.getter(RegExp.prototype,\"flags\",$)}var K=function(){try{return String(new RegExp(/a/g,\"i\"))===\"/a/i\"}catch(e){return false}}();if(!K&&u){var B=RegExp;var H=function Pt(e,t){if(b.regex(e)&&b.string(t)){return new Pt(e.source,t)}return new B(e,t)};g(H,\"toString\",B.toString.bind(B),true);if(Object.setPrototypeOf){Object.setPrototypeOf(B,H)}Object.getOwnPropertyNames(B).forEach(function(e){if(e===\"$input\"){return}if(e in h){return}d.proxy(B,e,H)});H.prototype=B.prototype;d.redefine(B.prototype,\"constructor\",H);RegExp=H;d.redefine(o,\"RegExp\",H)}var J={acosh:function(e){var t=Number(e);if(Number.isNaN(t)||e<1){return NaN}if(t===1){return 0}if(t===Infinity){return t}return Math.log(t/Math.E+Math.sqrt(t+1)*Math.sqrt(t-1)/Math.E)+1},asinh:function(e){e=Number(e);if(e===0||!a(e)){return e}return e<0?-Math.asinh(-e):Math.log(e+Math.sqrt(e*e+1))},atanh:function(e){e=Number(e);if(Number.isNaN(e)||e<-1||e>1){return NaN}if(e===-1){return-Infinity}if(e===1){return Infinity}if(e===0){return e}return.5*Math.log((1+e)/(1-e))},cbrt:function(e){e=Number(e);if(e===0){return e}var t=e<0,r;if(t){e=-e}r=Math.pow(e,1/3);return t?-r:r},clz32:function(e){e=Number(e);var t=M.ToUint32(e);if(t===0){return 32}return 32-t.toString(2).length},cosh:function(e){e=Number(e);if(e===0){return 1}if(Number.isNaN(e)){return NaN}if(!a(e)){return Infinity}if(e<0){e=-e}if(e>21){return Math.exp(e)/2}return(Math.exp(e)+Math.exp(-e))/2},expm1:function(e){var t=Number(e);if(t===-Infinity){return-1}if(!a(t)||e===0){return t}if(Math.abs(t)>.5){return Math.exp(t)-1}var r=t;var n=0;var i=1;while(n+r!==n){n+=r;i+=1;r*=t/i}return n},hypot:function(e,t){var r=false;var n=true;var i=false;var o=[];Array.prototype.every.call(arguments,function(e){var t=Number(e);if(Number.isNaN(t)){r=true}else if(t===Infinity||t===-Infinity){i=true}else if(t!==0){n=false}if(i){return false}else if(!r){o.push(Math.abs(t))}return true});if(i){return Infinity}if(r){return NaN}if(n){return 0}o.sort(function(e,t){return t-e});var a=o[0];var u=o.map(function(e){return e/a});var s=u.reduce(function(e,t){return e+t*t},0);return a*Math.sqrt(s)},log2:function(e){return Math.log(e)*Math.LOG2E},log10:function(e){return Math.log(e)*Math.LOG10E},log1p:function(e){var t=Number(e);if(t<-1||Number.isNaN(t)){return NaN}if(t===0||t===Infinity){return t}if(t===-1){return-Infinity}return 1+t-1===0?t:t*(Math.log(1+t)/(1+t-1))},sign:function(e){var t=+e;if(t===0){return t}if(Number.isNaN(t)){return t}return t<0?-1:1},sinh:function(e){var t=Number(e);if(!a(e)||e===0){return e}if(Math.abs(t)<1){return(Math.expm1(t)-Math.expm1(-t))/2}return(Math.exp(t-1)-Math.exp(-t-1))*Math.E/2},tanh:function(e){var t=Number(e);if(Number.isNaN(e)||t===0){return t}if(t===Infinity){return 1}if(t===-Infinity){return-1}var r=Math.expm1(t);var n=Math.expm1(-t);if(r===Infinity){return 1}if(n===Infinity){return-1}return(r-n)/(Math.exp(t)+Math.exp(-t))},trunc:function(e){var t=Number(e);return t<0?-Math.floor(-t):Math.floor(t)},imul:function(e,t){e=M.ToUint32(e);t=M.ToUint32(t);var r=e>>>16&65535;var n=e&65535;var i=t>>>16&65535;var o=t&65535;return n*o+(r*o+n*i<<16>>>0)|0},fround:function(e){if(e===0||e===Infinity||e===-Infinity||Number.isNaN(e)){return e}var t=Number(e);return _.toFloat32(t)}};m(Math,J);g(Math,\"tanh\",J.tanh,Math.tanh(-2e-17)!==-2e-17);g(Math,\"acosh\",J.acosh,Math.acosh(Number.MAX_VALUE)===Infinity);g(Math,\"sinh\",J.sinh,Math.sinh(-2e-17)!==-2e-17);var Q=Math.expm1(10);g(Math,\"expm1\",J.expm1,Q>22025.465794806718||Q<22025.465794806718);var Y=Math.round(.5-Number.EPSILON/4)===0&&Math.round(-.5+Number.EPSILON/3.99)===1;var et=Math.round;g(Math,\"round\",function Ct(e){if(-.5<=e&&e<.5&&e!==0){return Math.sign(e*0)}return et(e)},!Y);if(Math.imul(4294967295,5)!==-5){Math.imul=J.imul}var tt=function(){var e,t;M.IsPromise=function(e){if(!M.TypeIsObject(e)){return false}if(!e._promiseConstructor){return false}if(typeof e._status===\"undefined\"){return false}return true};var r=function(e){if(!M.IsCallable(e)){throw new TypeError(\"bad promise constructor\")}var t=this;var r=function(e,r){t.resolve=e;t.reject=r};t.promise=M.Construct(e,[r]);if(!t.promise._es6construct){throw new TypeError(\"bad promise constructor\")}if(!(M.IsCallable(t.resolve)&&M.IsCallable(t.reject))){throw new TypeError(\"bad promise constructor\")}};var n=o.setTimeout;var i;if(typeof window!==\"undefined\"&&M.IsCallable(window.postMessage)){i=function(){var e=[];var t=\"zero-timeout-message\";var r=function(r){e.push(r);window.postMessage(t,\"*\")};var n=function(r){if(r.source===window&&r.data===t){r.stopPropagation();if(e.length===0){return}var n=e.shift();n()}};window.addEventListener(\"message\",n,true);return r}}var a=function(){var e=o.Promise;return e&&e.resolve&&function(t){return e.resolve().then(t)}};var u=M.IsCallable(o.setImmediate)?o.setImmediate.bind(o):typeof process===\"object\"&&process.nextTick?process.nextTick:a()||(M.IsCallable(i)?i():function(e){n(e,0)});var s=function(e,t){if(!M.TypeIsObject(e)){return false}var r=t.resolve;var n=t.reject;try{var i=e.then;if(!M.IsCallable(i)){return false}i.call(e,r,n)}catch(o){n(o)}return true};var f=function(e,t){e.forEach(function(e){u(function(){var r=e.handler;var n=e.capability;var i=n.resolve;var o=n.reject;try{var a=r(t);if(a===n.promise){throw new TypeError(\"self resolution\")}var u=s(a,n);if(!u){i(a)}}catch(f){o(f)}})})};var c=function(e,t,n){return function(i){if(i===e){return n(new TypeError(\"self resolution\"))}var o=e._promiseConstructor;var a=new r(o);var u=s(i,a);if(u){return a.promise.then(t,n)}else{return t(i)}}};e=function(e){var t=this;t=N(t);if(!t._promiseConstructor){throw new TypeError(\"bad promise\")}if(typeof t._status!==\"undefined\"){throw new TypeError(\"promise already initialized\")}if(!M.IsCallable(e)){throw new TypeError(\"not a valid resolver\")}t._status=\"unresolved\";t._resolveReactions=[];t._rejectReactions=[];var r=function(e){if(t._status!==\"unresolved\"){return}var r=t._resolveReactions;t._result=e;t._resolveReactions=void 0;t._rejectReactions=void 0;t._status=\"has-resolution\";f(r,e)};var n=function(e){if(t._status!==\"unresolved\"){return}var r=t._rejectReactions;t._result=e;t._resolveReactions=void 0;t._rejectReactions=void 0;t._status=\"has-rejection\";f(r,e)};try{e(r,n)}catch(i){n(i)}return t};t=e.prototype;var l=function(e,t,r,n){var i=false;return function(o){if(i){return}i=true;t[e]=o;if(--n.count===0){var a=r.resolve;a(t)}}};g(e,y,function(e){var r=this;var n=r.prototype||t;e=e||w(n);m(e,{_status:void 0,_result:void 0,_resolveReactions:void 0,_rejectReactions:void 0,_promiseConstructor:void 0});e._promiseConstructor=r;return e});m(e,{all:function p(e){var t=this;var n=new r(t);var i=n.resolve;var o=n.reject;try{if(!M.IsIterable(e)){throw new TypeError(\"bad iterable\")}var a=M.GetIterator(e);var u=[],s={count:1};for(var f=0;;f++){var c=M.IteratorNext(a);if(c.done){break}var p=t.resolve(c.value);var h=l(f,u,n,s);s.count++;p.then(h,n.reject)}if(--s.count===0){i(u)}}catch(v){o(v)}return n.promise},race:function h(e){var t=this;var n=new r(t);var i=n.resolve;var o=n.reject;try{if(!M.IsIterable(e)){throw new TypeError(\"bad iterable\")}var a=M.GetIterator(e);while(true){var u=M.IteratorNext(a);if(u.done){break}var s=t.resolve(u.value);s.then(i,o)}}catch(f){o(f)}return n.promise},reject:function v(e){var t=this;var n=new r(t);var i=n.reject;i(e);return n.promise},resolve:function b(e){var t=this;if(M.IsPromise(e)){var n=e._promiseConstructor;if(n===t){return e}}var i=new r(t);var o=i.resolve;o(e);return i.promise}});m(t,{\"catch\":function(e){return this.then(void 0,e)},then:function d(e,t){var n=this;if(!M.IsPromise(n)){throw new TypeError(\"not a promise\")}var i=this.constructor;var o=new r(i);if(!M.IsCallable(t)){t=function(e){throw e}}if(!M.IsCallable(e)){e=function(e){return e}}var a=c(n,e,t);var u={capability:o,handler:a};var s={capability:o,handler:t};switch(n._status){case\"unresolved\":n._resolveReactions.push(u);n._rejectReactions.push(s);break;case\"has-resolution\":f([u],n._result);break;case\"has-rejection\":f([s],n._result);break;default:throw new TypeError(\"unexpected\")}return o.promise}});return e}();if(o.Promise){delete o.Promise.accept;delete o.Promise.defer;delete o.Promise.prototype.chain}m(o,{Promise:tt});var rt=t(o.Promise,function(e){return e.resolve(42)instanceof e});var nt=function(){try{o.Promise.reject(42).then(null,5).then(null,h);return true}catch(e){return false}}();var it=function(){try{Promise.call(3,h)}catch(e){return true}return false}();if(!rt||!nt||!it){Promise=tt;g(o,\"Promise\",tt,true)}var ot=function(e){var t=Object.keys(e.reduce(function(e,t){e[t]=true;return e},{}));return e.join(\":\")===t.join(\":\")};var at=ot([\"z\",\"a\",\"bb\"]);var ut=ot([\"z\",1,\"a\",\"3\",2]);if(u){var st=function kt(e){if(!at){return null}var t=typeof e;if(t===\"string\"){return\"$\"+e}else if(t===\"number\"){if(!ut){return\"n\"+e}return e}return null};var ft=function At(){return Object.create?Object.create(null):{}};var ct={Map:function(){var e={};function t(e,t){this.key=e;this.value=t;this.next=null;this.prev=null}t.prototype.isRemoved=function(){return this.key===e};function r(e,t){this.head=e._head;this.i=this.head;this.kind=t}r.prototype={next:function(){var e=this.i,t=this.kind,r=this.head,n;if(typeof this.i===\"undefined\"){return{value:void 0,done:true}}while(e.isRemoved()&&e!==r){e=e.prev}while(e.next!==r){e=e.next;if(!e.isRemoved()){if(t===\"key\"){n=e.key}else if(t===\"value\"){n=e.value}else{n=[e.key,e.value]}this.i=e;return{value:n,done:false}}}this.i=void 0;return{value:void 0,done:true}}};j(r.prototype);function n(e){var r=this;if(!M.TypeIsObject(r)){throw new TypeError(\"Map does not accept arguments when called as a function\")}r=N(r);if(!r._es6map){throw new TypeError(\"bad map\")}var n=new t(null,null);n.next=n.prev=n;m(r,{_head:n,_storage:ft(),_size:0});if(typeof e!==\"undefined\"&&e!==null){var i=M.GetIterator(e);var o=r.set;if(!M.IsCallable(o)){throw new TypeError(\"bad map\")}while(true){var a=M.IteratorNext(i);if(a.done){break}var u=a.value;if(!M.TypeIsObject(u)){throw new TypeError(\"expected iterable of pairs\")}o.call(r,u[0],u[1])}}return r}var i=n.prototype;g(n,y,function(e){var t=this;var r=t.prototype||i;e=e||w(r);m(e,{_es6map:true});return e});d.getter(n.prototype,\"size\",function(){if(typeof this._size===\"undefined\"){throw new TypeError(\"size method called on incompatible Map\")}return this._size});m(n.prototype,{get:function(e){var t=st(e);if(t!==null){var r=this._storage[t];if(r){return r.value}else{return}}var n=this._head,i=n;while((i=i.next)!==n){if(M.SameValueZero(i.key,e)){return i.value}}},has:function(e){var t=st(e);if(t!==null){return typeof this._storage[t]!==\"undefined\"}var r=this._head,n=r;while((n=n.next)!==r){if(M.SameValueZero(n.key,e)){return true}}return false},set:function(e,r){var n=this._head,i=n,o;var a=st(e);if(a!==null){if(typeof this._storage[a]!==\"undefined\"){this._storage[a].value=r;return this}else{o=this._storage[a]=new t(e,r);i=n.prev}}while((i=i.next)!==n){if(M.SameValueZero(i.key,e)){i.value=r;return this}}o=o||new t(e,r);if(M.SameValue(-0,e)){o.key=+0}o.next=this._head;o.prev=this._head.prev;o.prev.next=o;o.next.prev=o;this._size+=1;return this},\"delete\":function(t){var r=this._head,n=r;var i=st(t);if(i!==null){if(typeof this._storage[i]===\"undefined\"){return false}n=this._storage[i].prev;delete this._storage[i]}while((n=n.next)!==r){if(M.SameValueZero(n.key,t)){n.key=n.value=e;n.prev.next=n.next;n.next.prev=n.prev;this._size-=1;return true}}return false},clear:function(){this._size=0;this._storage=ft();var t=this._head,r=t,n=r.next;while((r=n)!==t){r.key=r.value=e;n=r.next;r.next=r.prev=t}t.next=t.prev=t},keys:function(){return new r(this,\"key\")},values:function(){return new r(this,\"value\")},entries:function(){return new r(this,\"key+value\")},forEach:function(e){var t=arguments.length>1?arguments[1]:null;var r=this.entries();for(var n=r.next();!n.done;n=r.next()){if(t){e.call(t,n.value[1],n.value[0],this)}else{e(n.value[1],n.value[0],this)}}}});j(n.prototype,function(){return this.entries()});return n}(),Set:function(){var e=function n(e){var t=this;if(!M.TypeIsObject(t)){throw new TypeError(\"Set does not accept arguments when called as a function\")}t=N(t);if(!t._es6set){throw new TypeError(\"bad set\")}m(t,{\"[[SetData]]\":null,_storage:ft()});if(typeof e!==\"undefined\"&&e!==null){var r=M.GetIterator(e);var n=t.add;if(!M.IsCallable(n)){throw new TypeError(\"bad set\")}while(true){var i=M.IteratorNext(r);if(i.done){break}var o=i.value;n.call(t,o)}}return t};var t=e.prototype;g(e,y,function(e){var r=this;var n=r.prototype||t;e=e||w(n);m(e,{_es6set:true});return e});var r=function i(e){if(!e[\"[[SetData]]\"]){var t=e[\"[[SetData]]\"]=new ct.Map;Object.keys(e._storage).forEach(function(e){if(e.charCodeAt(0)===36){e=e.slice(1)}else if(e.charAt(0)===\"n\"){e=+e.slice(1)}else{e=+e}t.set(e,e)});e._storage=null}};d.getter(e.prototype,\"size\",function(){if(typeof this._storage===\"undefined\"){throw new TypeError(\"size method called on incompatible Set\")}r(this);return this[\"[[SetData]]\"].size});m(e.prototype,{has:function(e){var t;if(this._storage&&(t=st(e))!==null){return!!this._storage[t]}r(this);return this[\"[[SetData]]\"].has(e)},add:function(e){var t;if(this._storage&&(t=st(e))!==null){this._storage[t]=true;return this}r(this);this[\"[[SetData]]\"].set(e,e);return this},\"delete\":function(e){var t;if(this._storage&&(t=st(e))!==null){var n=l(this._storage,t);return delete this._storage[t]&&n}r(this);return this[\"[[SetData]]\"][\"delete\"](e)},clear:function(){if(this._storage){this._storage=ft()}else{this[\"[[SetData]]\"].clear()}},values:function(){r(this);return this[\"[[SetData]]\"].values()},entries:function(){r(this);return this[\"[[SetData]]\"].entries()},forEach:function(e){var t=arguments.length>1?arguments[1]:null;var n=this;r(n);this[\"[[SetData]]\"].forEach(function(r,i){if(t){e.call(t,i,i,n)}else{e(i,i,n)}})}});g(e,\"keys\",e.values,true);j(e.prototype,function(){return this.values()});return e}()};m(o,ct);if(o.Map||o.Set){if(typeof o.Map.prototype.clear!==\"function\"||(new o.Set).size!==0||(new o.Map).size!==0||typeof o.Map.prototype.keys!==\"function\"||typeof o.Set.prototype.keys!==\"function\"||typeof o.Map.prototype.forEach!==\"function\"||typeof o.Set.prototype.forEach!==\"function\"||e(o.Map)||e(o.Set)||!t(o.Map,function(e){var t=new e([]);t.set(42,42);return t instanceof e})){o.Map=ct.Map;o.Set=ct.Set}}if(o.Set.prototype.keys!==o.Set.prototype.values){g(o.Set.prototype,\"keys\",o.Set.prototype.values,true)}j(Object.getPrototypeOf((new o.Map).keys()));j(Object.getPrototypeOf((new o.Set).keys()))}if(!o.Reflect){g(o,\"Reflect\",{})}var lt=o.Reflect;var pt=function Rt(e){if(!M.TypeIsObject(e)){throw new TypeError(\"target must be an object\")}};m(o.Reflect,{apply:function Ft(){return M.Call.apply(null,arguments)},construct:function Dt(e,t){if(!M.IsCallable(e)){throw new TypeError(\"First argument must be callable.\")}return M.Construct(e,t)},deleteProperty:function zt(e,t){pt(e);if(u){var r=Object.getOwnPropertyDescriptor(e,t);if(r&&!r.configurable){return false}}return delete e[t]},enumerate:function Lt(e){pt(e);return new L(e,\"key\")},has:function qt(e,t){pt(e);return t in e}});if(Object.getOwnPropertyNames){m(o.Reflect,{ownKeys:function Gt(e){pt(e);var t=Object.getOwnPropertyNames(e);if(M.IsCallable(Object.getOwnPropertySymbols)){t.push.apply(t,Object.getOwnPropertySymbols(e))}return t}})}if(Object.preventExtensions){m(o.Reflect,{isExtensible:function Wt(e){pt(e);return Object.isExtensible(e)},preventExtensions:function Vt(e){pt(e);return yt(function(){Object.preventExtensions(e)})}})}if(u){var ht=function Ut(e,t,r){var n=Object.getOwnPropertyDescriptor(e,t);if(!n){var i=Object.getPrototypeOf(e);if(i===null){return undefined}return ht(i,t,r)}if(\"value\"in n){return n.value}if(n.get){return n.get.call(r)}return undefined};var vt=function Xt(e,t,r,n){var i=Object.getOwnPropertyDescriptor(e,t);if(!i){var o=Object.getPrototypeOf(e);if(o!==null){return vt(o,t,r,n)}i={value:void 0,writable:true,enumerable:true,configurable:true}}if(\"value\"in i){if(!i.writable){return false}if(!M.TypeIsObject(n)){return false}var a=Object.getOwnPropertyDescriptor(n,t);if(a){return lt.defineProperty(n,t,{value:r})}else{return lt.defineProperty(n,t,{value:r,writable:true,enumerable:true,configurable:true})}}if(i.set){i.set.call(n,r);return true}return false\n};var yt=function Zt(e){try{e()}catch(t){return false}return true};m(o.Reflect,{defineProperty:function $t(e,t,r){pt(e);return yt(function(){Object.defineProperty(e,t,r)})},getOwnPropertyDescriptor:function Kt(e,t){pt(e);return Object.getOwnPropertyDescriptor(e,t)},get:function Bt(e,t){pt(e);var r=arguments.length>2?arguments[2]:e;return ht(e,t,r)},set:function Ht(e,t,r){pt(e);var n=arguments.length>3?arguments[3]:e;return vt(e,t,r,n)}})}if(Object.getPrototypeOf){var bt=Object.getPrototypeOf;m(o.Reflect,{getPrototypeOf:function Jt(e){pt(e);return bt(e)}})}if(Object.setPrototypeOf){var gt=function(e,t){while(t){if(e===t){return true}t=lt.getPrototypeOf(t)}return false};m(o.Reflect,{setPrototypeOf:function Qt(e,t){pt(e);if(t!==null&&!M.TypeIsObject(t)){throw new TypeError(\"proto must be an object or null\")}if(t===lt.getPrototypeOf(e)){return true}if(lt.isExtensible&&!lt.isExtensible(e)){return false}if(gt(e,t)){return false}Object.setPrototypeOf(e,t);return true}})}return o});\n\n","Magepow_InfiniteScroll/js/plugin/infinitescroll.min.js":"if(typeof(IASCallbacks)==\"undefined\"){var IASCallbacks=function(){this.list=[];this.fireStack=[];this.isFiring=false;this.isDisabled=false;this.fire=function(args){var context=args[0],deferred=args[1],callbackArguments=args[2];this.isFiring=true;for(var i=0,l=this.list.length;i<l;i++){if(false===this.list[i].fn.apply(context,callbackArguments)){deferred.reject();break;}}\nthis.isFiring=false;deferred.resolve();if(this.fireStack.length){this.fire(this.fireStack.shift());}};this.inList=function(callback,index){index=index||0;for(var i=index,length=this.list.length;i<length;i++){if(this.list[i].fn===callback||(callback.guid&&this.list[i].fn.guid&&callback.guid===this.list[i].fn.guid)){return i;}}\nreturn-1;};return this;};IASCallbacks.prototype={add:function(callback,priority){var callbackObject={fn:callback,priority:priority};priority=priority||0;for(var i=0,length=this.list.length;i<length;i++){if(priority>this.list[i].priority){this.list.splice(i,0,callbackObject);return this;}}\nthis.list.push(callbackObject);return this;},remove:function(callback){var index=0;while((index=this.inList(callback,index))>-1){this.list.splice(index,1);}\nreturn this;},has:function(callback){return(this.inList(callback)>-1);},fireWith:function(context,args){var deferred=jQuery.Deferred();if(this.isDisabled){return deferred.reject();}\nargs=args||[];args=[context,deferred,args.slice?args.slice():args];if(this.isFiring){this.fireStack.push(args);}else{this.fire(args);}\nreturn deferred;},disable:function(){this.isDisabled=true;},enable:function(){this.isDisabled=false;}};}\n(function($){'use strict';var UNDETERMINED_SCROLLOFFSET=-1;var IAS=function($element,options){this.itemsContainerSelector=options.container;this.itemSelector=options.item;this.nextSelector=options.next;this.paginationSelector=options.pagination;this.$scrollContainer=$element;this.$itemsContainer=$(this.itemsContainerSelector);this.$container=(window===$element.get(0)?$(document):$element);this.defaultDelay=options.delay;this.negativeMargin=options.negativeMargin;this.nextUrl=null;this.isBound=false;this.listeners={next:new IASCallbacks(),load:new IASCallbacks(),loaded:new IASCallbacks(),render:new IASCallbacks(),rendered:new IASCallbacks(),scroll:new IASCallbacks(),noneLeft:new IASCallbacks(),ready:new IASCallbacks()};this.extensions=[];this.scrollHandler=function(){var currentScrollOffset=this.getCurrentScrollOffset(this.$scrollContainer),scrollThreshold=this.getScrollThreshold();if(!this.isBound){return;}\nif(UNDETERMINED_SCROLLOFFSET==scrollThreshold){return;}\nthis.fire('scroll',[currentScrollOffset,scrollThreshold]);if(currentScrollOffset>=scrollThreshold){this.next();}};this.getLastItem=function(){return $(this.itemSelector,this.$itemsContainer.get(0)).last();};this.getFirstItem=function(){return $(this.itemSelector,this.$itemsContainer.get(0)).first();};this.getScrollThreshold=function(negativeMargin){var $lastElement;negativeMargin=negativeMargin||this.negativeMargin;negativeMargin=(negativeMargin>=0?negativeMargin*-1:negativeMargin);$lastElement=this.getLastItem();if(0===$lastElement.length){return UNDETERMINED_SCROLLOFFSET;}\nreturn($lastElement.offset().top+$lastElement.height()+negativeMargin);};this.getCurrentScrollOffset=function($container){var scrollTop=0,containerHeight=$container.height();if(window===$container.get(0)){scrollTop=$container.scrollTop();}else{scrollTop=$container.offset().top;}\nif(navigator.platform.indexOf(\"iPhone\")!=-1||navigator.platform.indexOf(\"iPod\")!=-1){containerHeight+=80;}\nreturn(scrollTop+containerHeight);};this.getNextUrl=function(container){if(!container){container=this.$container;}\nvar next_url=$(this.nextSelector,container).last().attr('href');if(typeof(next_url)!='undefined'){next_url+=next_url.includes('?')?'&ajaxscroll=1':'?ajaxscroll=1';}else{next_url='';}\nreturn next_url;};this.load=function(url,callback,delay){var self=this,$itemContainer,items=[],timeStart=+new Date(),timeDiff;delay=delay||this.defaultDelay;var loadEvent={url:url};self.fire('load',[loadEvent]);return $.get(loadEvent.url,null,$.proxy(function(data){$itemContainer=$(this.itemsContainerSelector,data).eq(0);if(0===$itemContainer.length){$itemContainer=$(data).filter(this.itemsContainerSelector).eq(0);}\nif($itemContainer){$itemContainer.find(this.itemSelector).each(function(){items.push(this);});}\nself.fire('loaded',[data,items]);if(callback){timeDiff=+new Date()-timeStart;if(timeDiff<delay){setTimeout(function(){callback.call(self,data,items);},delay-timeDiff);}else{callback.call(self,data,items);}}},self),'html');};this.render=function(items,callback){var self=this,$lastItem=this.getLastItem(),count=0;var promise=this.fire('render',[items]);promise.done(function(){$(items).hide();$lastItem.after(items);$(items).fadeIn(400,function(){if(++count<items.length){return;}\nself.fire('rendered',[items]);if(callback){callback();}});});};this.hidePagination=function(){if(this.paginationSelector){$(this.paginationSelector,this.$container).hide();}};this.restorePagination=function(){if(this.paginationSelector){$(this.paginationSelector,this.$container).show();}};this.throttle=function(callback,delay){var lastExecutionTime=0,wrapper,timerId;wrapper=function(){var that=this,args=arguments,diff=+new Date()-lastExecutionTime;function execute(){lastExecutionTime=+new Date();callback.apply(that,args);}\nif(!timerId){execute();}else{clearTimeout(timerId);}\nif(diff>delay){execute();}else{timerId=setTimeout(execute,delay);}};if($.guid){wrapper.guid=callback.guid=callback.guid||$.guid++;}\nreturn wrapper;};this.fire=function(event,args){return this.listeners[event].fireWith(this,args);};return this;};IAS.prototype.initialize=function(){var currentScrollOffset=this.getCurrentScrollOffset(this.$scrollContainer),scrollThreshold=this.getScrollThreshold();this.hidePagination();this.bind();for(var i=0,l=this.extensions.length;i<l;i++){this.extensions[i].bind(this);}\nthis.fire('ready');this.nextUrl=this.getNextUrl();if(currentScrollOffset>=scrollThreshold&&this.nextUrl){this.next();}\nreturn this;};IAS.prototype.bind=function(){if(this.isBound){return;}\nthis.$scrollContainer.on('scroll',$.proxy(this.throttle(this.scrollHandler,150),this));this.isBound=true;};IAS.prototype.unbind=function(){if(!this.isBound){return;}\nthis.$scrollContainer.off('scroll',this.scrollHandler);this.isBound=false;};IAS.prototype.destroy=function(){this.unbind();};IAS.prototype.on=function(event,callback,priority){if(typeof this.listeners[event]=='undefined'){throw new Error('There is no event called \"'+event+'\"');}\npriority=priority||0;this.listeners[event].add($.proxy(callback,this),priority);return this;};IAS.prototype.one=function(event,callback){var self=this;var remover=function(){self.off(event,callback);self.off(event,remover);};this.on(event,callback);this.on(event,remover);return this;};IAS.prototype.off=function(event,callback){if(typeof this.listeners[event]=='undefined'){throw new Error('There is no event called \"'+event+'\"');}\nthis.listeners[event].remove(callback);return this;};IAS.prototype.next=function(){var url=this.nextUrl,self=this;this.unbind();if(!url){this.fire('noneLeft',[this.getLastItem()]);this.listeners['noneLeft'].disable();self.bind();return false;}\nvar promise=this.fire('next',[url]);promise.done(function(){self.load(url,function(data,items){self.render(items,function(){self.nextUrl=self.getNextUrl(data);self.bind();});});});promise.fail(function(){self.bind();});return true;};IAS.prototype.extension=function(extension){if(typeof extension['bind']=='undefined'){throw new Error('Extension doesn\\'t have required method \"bind\"');}\nif(typeof extension['initialize']!='undefined'){extension.initialize(this);}\nthis.extensions.push(extension);return this;};$.ias=function(option){var $window=$(window);return $window.ias.apply($window,arguments);};$.fn.ias=function(option){var args=Array.prototype.slice.call(arguments);var retval=this;this.each(function(){var $this=$(this),data=$this.data('ias'),options=$.extend({},$.fn.ias.defaults,$this.data(),typeof option=='object'&&option);if(!data){$this.data('ias',(data=new IAS($this,options)));$(document).ready($.proxy(data.initialize,data));}\nif(typeof option==='string'){if(typeof data[option]!=='function'){throw new Error('There is no method called \"'+option+'\"');}\nargs.shift();data[option].apply(data,args);if(option==='destroy'){$this.data('ias',null);}}\nretval=$this.data('ias');});return retval;};$.fn.ias.defaults={item:'.item',container:'.listing',next:'.next',pagination:false,delay:600,negativeMargin:10};})(jQuery);if(typeof(IASHistoryExtension)==\"undefined\"){var IASHistoryExtension=function(options){options=jQuery.extend({},this.defaults,options);this.ias=null;this.prevSelector=options.prev;this.prevUrl=null;this.listeners={prev:new IASCallbacks()};this.onPageChange=function(pageNum,scrollOffset,url){var state={};if(!window.history||!window.history.replaceState){return;}\nhistory.replaceState(state,document.title,url);};this.onScroll=function(currentScrollOffset,scrollThreshold){var firstItemScrollThreshold=this.getScrollThresholdFirstItem();if(!this.prevUrl){return;}\ncurrentScrollOffset-=this.ias.$scrollContainer.height();if(currentScrollOffset<=firstItemScrollThreshold){this.prev();}};this.getPrevUrl=function(container){if(!container){container=this.ias.$container;}\nvar prev_url=jQuery(this.prevSelector,container).last().attr('href');if(typeof(prev_url)!='undefined'){prev_url+=prev_url.includes('?')?'&ajaxscroll=1':'?ajaxscroll=1';}else{prev_url='';}\nreturn prev_url;};this.getScrollThresholdFirstItem=function(){var $firstElement;$firstElement=this.ias.getFirstItem();if(0===$firstElement.length){return-1;}\nreturn($firstElement.offset().top);};this.renderBefore=function(items,callback){var ias=this.ias,$firstItem=ias.getFirstItem(),count=0;ias.fire('render',[items]);jQuery(items).hide();$firstItem.before(items);jQuery(items).fadeIn(400,function(){if(++count<items.length){return;}\nias.fire('rendered',[items]);if(callback){callback();}});};return this;};IASHistoryExtension.prototype.initialize=function(ias){var self=this;this.ias=ias;jQuery.extend(ias.listeners,this.listeners);ias.prev=function(){return self.prev();};this.prevUrl=this.getPrevUrl();};IASHistoryExtension.prototype.bind=function(ias){var self=this;ias.on('pageChange',jQuery.proxy(this.onPageChange,this));ias.on('scroll',jQuery.proxy(this.onScroll,this));ias.on('ready',function(){var currentScrollOffset=ias.getCurrentScrollOffset(ias.$scrollContainer),firstItemScrollThreshold=self.getScrollThresholdFirstItem();currentScrollOffset-=ias.$scrollContainer.height();if(currentScrollOffset<=firstItemScrollThreshold){self.prev();}});};IASHistoryExtension.prototype.prev=function(){var url=this.prevUrl,self=this,ias=this.ias;if(!url){return false;}\nias.unbind();var promise=ias.fire('prev',[url]);promise.done(function(){ias.load(url,function(data,items){self.renderBefore(items,function(){self.prevUrl=self.getPrevUrl(data);ias.bind();if(self.prevUrl){self.prev();}});});});promise.fail(function(){ias.bind();});return true;};IASHistoryExtension.prototype.defaults={prev:\".prev\"};}\nif(typeof(IASNoneLeftExtension)==\"undefined\"){var IASNoneLeftExtension=function(options){options=jQuery.extend({},this.defaults,options);this.ias=null;this.uid=(new Date()).getTime();this.html=(options.html).replace('{text}',options.text);this.showNoneLeft=function(){var $element=jQuery(this.html).attr('id','ias_noneleft_'+this.uid),$lastItem=this.ias.getLastItem();$lastItem.after($element);$element.fadeIn();};return this;};IASNoneLeftExtension.prototype.bind=function(ias){this.ias=ias;ias.on('noneLeft',jQuery.proxy(this.showNoneLeft,this));};IASNoneLeftExtension.prototype.defaults={text:'You reached the end.',html:'<div class=\"ias-noneleft\" style=\"text-align: center;\">{text}</div>'};}\nif(typeof(IASPagingExtension)==\"undefined\"){var IASPagingExtension=function(){this.ias=null;this.pagebreaks=[[0,document.location.toString()]];this.lastPageNum=1;this.enabled=true;this.listeners={pageChange:new IASCallbacks()};this.onScroll=function(currentScrollOffset,scrollThreshold){if(!this.enabled){return;}\nvar ias=this.ias,currentPageNum=this.getCurrentPageNum(currentScrollOffset),currentPagebreak=this.getCurrentPagebreak(currentScrollOffset),urlPage;if(this.lastPageNum!==currentPageNum){urlPage=currentPagebreak[1];ias.fire('pageChange',[currentPageNum,currentScrollOffset,urlPage]);}\nthis.lastPageNum=currentPageNum;};this.onNext=function(url){var currentScrollOffset=this.ias.getCurrentScrollOffset(this.ias.$scrollContainer);this.pagebreaks.push([currentScrollOffset,url]);var currentPageNum=this.getCurrentPageNum(currentScrollOffset)+1;this.ias.fire('pageChange',[currentPageNum,currentScrollOffset,url]);this.lastPageNum=currentPageNum;};this.onPrev=function(url){var self=this,ias=self.ias,currentScrollOffset=ias.getCurrentScrollOffset(ias.$scrollContainer),prevCurrentScrollOffset=currentScrollOffset-ias.$scrollContainer.height(),$firstItem=ias.getFirstItem();this.enabled=false;this.pagebreaks.unshift([0,url]);ias.one('rendered',function(){for(var i=1,l=self.pagebreaks.length;i<l;i++){self.pagebreaks[i][0]=self.pagebreaks[i][0]+$firstItem.offset().top;}\nvar currentPageNum=self.getCurrentPageNum(prevCurrentScrollOffset)+1;ias.fire('pageChange',[currentPageNum,prevCurrentScrollOffset,url]);self.lastPageNum=currentPageNum;self.enabled=true;});};return this;};IASPagingExtension.prototype.initialize=function(ias){this.ias=ias;jQuery.extend(ias.listeners,this.listeners);};IASPagingExtension.prototype.bind=function(ias){try{ias.on('prev',jQuery.proxy(this.onPrev,this),this.priority);}catch(exception){}\nias.on('next',jQuery.proxy(this.onNext,this),this.priority);ias.on('scroll',jQuery.proxy(this.onScroll,this),this.priority);};IASPagingExtension.prototype.getCurrentPageNum=function(scrollOffset){for(var i=(this.pagebreaks.length-1);i>0;i--){if(scrollOffset>this.pagebreaks[i][0]){return i+1;}}\nreturn 1;};IASPagingExtension.prototype.getCurrentPagebreak=function(scrollOffset){for(var i=(this.pagebreaks.length-1);i>=0;i--){if(scrollOffset>this.pagebreaks[i][0]){return this.pagebreaks[i];}}\nreturn null;};IASPagingExtension.prototype.priority=500;}\nif(typeof(IASSpinnerExtension)==\"undefined\"){var IASSpinnerExtension=function(options){options=jQuery.extend({},this.defaults,options);this.ias=null;this.uid=new Date().getTime();this.src=options.src;this.html=(options.html).replace('{src}',this.src);this.showSpinner=function(){var $spinner=this.getSpinner()||this.createSpinner(),$lastItem=this.ias.getLastItem();$lastItem.after($spinner);$spinner.fadeIn();};this.showSpinnerBefore=function(){var $spinner=this.getSpinner()||this.createSpinner(),$firstItem=this.ias.getFirstItem();$firstItem.before($spinner);$spinner.fadeIn();};this.removeSpinner=function(){if(this.hasSpinner()){this.getSpinner().remove();}};this.getSpinner=function(){var $spinner=jQuery('#ias_spinner_'+this.uid);if($spinner.length>0){return $spinner;}\nreturn false;};this.hasSpinner=function(){var $spinner=jQuery('#ias_spinner_'+this.uid);return($spinner.length>0);};this.createSpinner=function(){var $spinner=jQuery(this.html).attr('id','ias_spinner_'+this.uid);$spinner.hide();return $spinner;};return this;};IASSpinnerExtension.prototype.bind=function(ias){this.ias=ias;ias.on('next',jQuery.proxy(this.showSpinner,this));try{ias.on('prev',jQuery.proxy(this.showSpinnerBefore,this));}catch(exception){}\nias.on('render',jQuery.proxy(this.removeSpinner,this));};IASSpinnerExtension.prototype.defaults={src:'data:image/gif;base64,R0lGODlhEAAQAPQAAP///wAAAPDw8IqKiuDg4EZGRnp6egAAAFhYWCQkJKysrL6+vhQUFJycnAQEBDY2NmhoaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAAEAAQAAAFdyAgAgIJIeWoAkRCCMdBkKtIHIngyMKsErPBYbADpkSCwhDmQCBethRB6Vj4kFCkQPG4IlWDgrNRIwnO4UKBXDufzQvDMaoSDBgFb886MiQadgNABAokfCwzBA8LCg0Egl8jAggGAA1kBIA1BAYzlyILczULC2UhACH5BAkKAAAALAAAAAAQABAAAAV2ICACAmlAZTmOREEIyUEQjLKKxPHADhEvqxlgcGgkGI1DYSVAIAWMx+lwSKkICJ0QsHi9RgKBwnVTiRQQgwF4I4UFDQQEwi6/3YSGWRRmjhEETAJfIgMFCnAKM0KDV4EEEAQLiF18TAYNXDaSe3x6mjidN1s3IQAh+QQJCgAAACwAAAAAEAAQAAAFeCAgAgLZDGU5jgRECEUiCI+yioSDwDJyLKsXoHFQxBSHAoAAFBhqtMJg8DgQBgfrEsJAEAg4YhZIEiwgKtHiMBgtpg3wbUZXGO7kOb1MUKRFMysCChAoggJCIg0GC2aNe4gqQldfL4l/Ag1AXySJgn5LcoE3QXI3IQAh+QQJCgAAACwAAAAAEAAQAAAFdiAgAgLZNGU5joQhCEjxIssqEo8bC9BRjy9Ag7GILQ4QEoE0gBAEBcOpcBA0DoxSK/e8LRIHn+i1cK0IyKdg0VAoljYIg+GgnRrwVS/8IAkICyosBIQpBAMoKy9dImxPhS+GKkFrkX+TigtLlIyKXUF+NjagNiEAIfkECQoAAAAsAAAAABAAEAAABWwgIAICaRhlOY4EIgjH8R7LKhKHGwsMvb4AAy3WODBIBBKCsYA9TjuhDNDKEVSERezQEL0WrhXucRUQGuik7bFlngzqVW9LMl9XWvLdjFaJtDFqZ1cEZUB0dUgvL3dgP4WJZn4jkomWNpSTIyEAIfkECQoAAAAsAAAAABAAEAAABX4gIAICuSxlOY6CIgiD8RrEKgqGOwxwUrMlAoSwIzAGpJpgoSDAGifDY5kopBYDlEpAQBwevxfBtRIUGi8xwWkDNBCIwmC9Vq0aiQQDQuK+VgQPDXV9hCJjBwcFYU5pLwwHXQcMKSmNLQcIAExlbH8JBwttaX0ABAcNbWVbKyEAIfkECQoAAAAsAAAAABAAEAAABXkgIAICSRBlOY7CIghN8zbEKsKoIjdFzZaEgUBHKChMJtRwcWpAWoWnifm6ESAMhO8lQK0EEAV3rFopIBCEcGwDKAqPh4HUrY4ICHH1dSoTFgcHUiZjBhAJB2AHDykpKAwHAwdzf19KkASIPl9cDgcnDkdtNwiMJCshACH5BAkKAAAALAAAAAAQABAAAAV3ICACAkkQZTmOAiosiyAoxCq+KPxCNVsSMRgBsiClWrLTSWFoIQZHl6pleBh6suxKMIhlvzbAwkBWfFWrBQTxNLq2RG2yhSUkDs2b63AYDAoJXAcFRwADeAkJDX0AQCsEfAQMDAIPBz0rCgcxky0JRWE1AmwpKyEAIfkECQoAAAAsAAAAABAAEAAABXkgIAICKZzkqJ4nQZxLqZKv4NqNLKK2/Q4Ek4lFXChsg5ypJjs1II3gEDUSRInEGYAw6B6zM4JhrDAtEosVkLUtHA7RHaHAGJQEjsODcEg0FBAFVgkQJQ1pAwcDDw8KcFtSInwJAowCCA6RIwqZAgkPNgVpWndjdyohACH5BAkKAAAALAAAAAAQABAAAAV5ICACAimc5KieLEuUKvm2xAKLqDCfC2GaO9eL0LABWTiBYmA06W6kHgvCqEJiAIJiu3gcvgUsscHUERm+kaCxyxa+zRPk0SgJEgfIvbAdIAQLCAYlCj4DBw0IBQsMCjIqBAcPAooCBg9pKgsJLwUFOhCZKyQDA3YqIQAh+QQJCgAAACwAAAAAEAAQAAAFdSAgAgIpnOSonmxbqiThCrJKEHFbo8JxDDOZYFFb+A41E4H4OhkOipXwBElYITDAckFEOBgMQ3arkMkUBdxIUGZpEb7kaQBRlASPg0FQQHAbEEMGDSVEAA1QBhAED1E0NgwFAooCDWljaQIQCE5qMHcNhCkjIQAh+QQJCgAAACwAAAAAEAAQAAAFeSAgAgIpnOSoLgxxvqgKLEcCC65KEAByKK8cSpA4DAiHQ/DkKhGKh4ZCtCyZGo6F6iYYPAqFgYy02xkSaLEMV34tELyRYNEsCQyHlvWkGCzsPgMCEAY7Cg04Uk48LAsDhRA8MVQPEF0GAgqYYwSRlycNcWskCkApIyEAOwAAAAAAAAAAAA==',html:'<div class=\"ias-spinner\" style=\"text-align: center;\"><img src=\"{src}\"/></div>'};}\nif(typeof(IASTriggerExtension)==\"undefined\"){var IASTriggerExtension=function(options){options=jQuery.extend({},this.defaults,options);this.ias=null;this.html=(options.html).replace('{text}',options.text);this.htmlPrev=(options.htmlPrev).replace('{text}',options.textPrev);this.enabled=true;this.count=0;this.offset=options.offset;this.$triggerNext=null;this.$triggerPrev=null;this.showTriggerNext=function(){if(!this.enabled){return true;}\nif(false===this.offset||++this.count<this.offset){return true;}\nvar $trigger=this.$triggerNext||(this.$triggerNext=this.createTrigger(this.next,this.html));var $lastItem=this.ias.getLastItem();$lastItem.after($trigger);$trigger.fadeIn();return false;};this.showTriggerPrev=function(){if(!this.enabled){return true;}\nvar $trigger=this.$triggerPrev||(this.$triggerPrev=this.createTrigger(this.prev,this.htmlPrev));var $firstItem=this.ias.getFirstItem();$firstItem.before($trigger);$trigger.fadeIn();return false;};this.createTrigger=function(clickCallback,html){var uid=(new Date()).getTime(),$trigger;html=html||this.html;$trigger=jQuery(html).attr('id','ias_trigger_'+uid);$trigger.hide();$trigger.on('click',jQuery.proxy(clickCallback,this));return $trigger;};return this;};IASTriggerExtension.prototype.bind=function(ias){var self=this;this.ias=ias;try{ias.on('prev',jQuery.proxy(this.showTriggerPrev,this),this.priority);}catch(exception){}\nias.on('next',jQuery.proxy(this.showTriggerNext,this),this.priority);ias.on('rendered',function(){self.enabled=true;},this.priority);};IASTriggerExtension.prototype.next=function(){this.enabled=false;this.ias.unbind();if(this.$triggerNext){this.$triggerNext.remove();this.$triggerNext=null;}\nthis.ias.next();};IASTriggerExtension.prototype.prev=function(){this.enabled=false;this.ias.unbind();if(this.$triggerPrev){this.$triggerPrev.remove();this.$triggerPrev=null;}\nthis.ias.prev();};IASTriggerExtension.prototype.defaults={text:'Load more items',html:'<div class=\"ias-trigger ias-trigger-next\" style=\"text-align: center; cursor: pointer;\"><a>{text}</a></div>',textPrev:'Load previous items',htmlPrev:'<div class=\"ias-trigger ias-trigger-prev\" style=\"text-align: center; cursor: pointer;\"><a>{text}</a></div>',offset:0};IASTriggerExtension.prototype.priority=1000;}\nwindow.IASCallbacks=IASCallbacks;window.IASHistoryExtension=IASHistoryExtension;window.IASTriggerExtension=IASTriggerExtension;window.IASSpinnerExtension=IASSpinnerExtension;window.IASPagingExtension=IASPagingExtension;window.IASNoneLeftExtension=IASNoneLeftExtension;","Magento_Reports/js/recently-viewed.min.js":"define(['jquery','jquery-ui-modules/widget'],function($){'use strict';$.widget('mage.recentlyViewedProducts',{options:{localStorageKey:'recently-viewed-products',productBlock:'#widget_viewed_item',viewedContainer:'ol'},_create:function(){var productHtml=$(this.options.productBlock).html(),productSku=$(this.options.productBlock).data('sku'),products=JSON.parse(window.localStorage.getItem(this.options.localStorageKey)),productsLength,maximum,showed,index;if(products){productsLength=products.sku.length;maximum=$(this.element).data('count');showed=0;for(index=0;index<=productsLength;index++){if(products.sku[index]==productSku||showed>=maximum){products.sku.splice(index,1);products.html.splice(index,1);}else{$(this.element).find(this.options.viewedContainer).append(products.html[index]);$(this.element).show();showed++;}}\n$(this.element).find(this.options.productBlock).show();}else{products={};products.sku=[];products.html=[];}\nproducts.sku.unshift(productSku);products.html.unshift(productHtml);window.localStorage.setItem(this.options.localStorageKey,JSON.stringify(products));}});return $.mage.recentlyViewedProducts;});","Magento_Weee/js/tax-toggle.min.js":"define(['jquery'],function($){'use strict';function onToggle(config,e){var elem=$(e.currentTarget),expandedClassName=config.expandedClassName||'cart-tax-total-expanded';elem.toggleClass(expandedClassName);$(config.itemTaxId).toggle();}\nreturn function(data,el){$(el).on('click',onToggle.bind(null,data));};});","Magento_Weee/js/price/adjustment.min.js":"define(['Magento_Ui/js/grid/columns/column'],function(Element){'use strict';return Element.extend({defaults:{bodyTmpl:'Magento_Weee/price/adjustment',dataSource:'${ $.parentName }.provider',inclFptWithDesc:1,inclFpt:0,exclFpt:2,bothFptPrices:3},getWeeeAttributes:function(row){return row['price_info']['extension_attributes']['weee_attributes'];},getWeeeTaxWithoutTax:function(taxAmount){return taxAmount['amount_excl_tax'];},getWeeeTaxWithoutTaxUnsanitizedHtml:function(taxAmount){return this.getWeeeTaxWithoutTax(taxAmount);},getWeeeTaxWithTax:function(taxAmount){return taxAmount['tax_amount_incl_tax'];},getWeeeTaxWithTaxUnsanitizedHtml:function(taxAmount){return this.getWeeeTaxWithTax(taxAmount);},getWeeTaxAttributeName:function(taxAmount){return taxAmount['attribute_code'];},setPriceType:function(priceType){this.taxPriceType=priceType;return this;},isShown:function(row){return row['price_info']['extension_attributes']['weee_attributes'].length;},getWeeeAdjustment:function(row){return row['price_info']['extension_attributes']['weee_adjustment'];},getWeeeAdjustmentUnsanitizedHtml:function(row){return this.getWeeeAdjustment(row);},displayPriceInclFpt:function(){return+this.source.data.displayWeee===this.inclFpt;},displayPriceInclFptDescr:function(){return+this.source.data.displayWeee===this.inclFptWithDesc;},displayPriceExclFptDescr:function(){return+this.source.data.displayWeee===this.exclFpt;},displayPriceExclFpt:function(){return+this.source.data.displayWeee===this.bothFptPrices;},displayPriceExclTax:function(){return+this.source.data.displayTaxes===this.inclFptWithDesc;},displayPriceInclTax:function(){return+this.source.data.displayTaxes===this.exclFpt;},displayBothPricesTax:function(){return+this.source.data.displayTaxes===this.bothFptPrices;}});});","Magento_Weee/js/view/cart/totals/weee.min.js":"define(['Magento_Weee/js/view/checkout/summary/weee'],function(Component){'use strict';return Component.extend({isFullMode:function(){return true;}});});","Magento_Weee/js/view/checkout/summary/weee.min.js":"define(['Magento_Checkout/js/view/summary/abstract-total','Magento_Checkout/js/model/quote','Magento_Checkout/js/model/totals','Magento_Catalog/js/price-utils'],function(Component,quote,totals){'use strict';return Component.extend({defaults:{template:'Magento_Weee/checkout/summary/weee'},isIncludedInSubtotal:window.checkoutConfig.isIncludedInSubtotal,totals:totals.totals,getWeeeTaxSegment:function(){var weee=totals.getSegment('weee_tax')||totals.getSegment('weee');if(weee!==null&&weee.hasOwnProperty('value')){return weee.value;}\nreturn 0;},getValue:function(){return this.getFormattedPrice(this.getWeeeTaxSegment());},isDisplayed:function(){return this.isFullMode()&&this.getWeeeTaxSegment()>0;}});});","Magento_Weee/js/view/checkout/summary/item/price/row_excl_tax.min.js":"define(['Magento_Weee/js/view/checkout/summary/item/price/weee'],function(weee){'use strict';return weee.extend({defaults:{template:'Magento_Weee/checkout/summary/item/price/row_excl_tax'},getFinalRowDisplayPriceExclTax:function(item){var rowTotalExclTax=parseFloat(item['row_total']);if(!window.checkoutConfig.getIncludeWeeeFlag){rowTotalExclTax+=parseFloat(item['qty'])*parseFloat(item['weee_tax_applied_amount']);}\nreturn rowTotalExclTax;},getRowDisplayPriceExclTax:function(item){var rowTotalExclTax=parseFloat(item['row_total']);if(window.checkoutConfig.getIncludeWeeeFlag){rowTotalExclTax+=this.getRowWeeeTaxExclTax(item);}\nreturn rowTotalExclTax;},getRowWeeeTaxExclTax:function(item){var totalWeeeTaxExclTaxApplied=0,weeeTaxAppliedAmounts;if(item['weee_tax_applied']){weeeTaxAppliedAmounts=JSON.parse(item['weee_tax_applied']);weeeTaxAppliedAmounts.forEach(function(weeeTaxAppliedAmount){totalWeeeTaxExclTaxApplied+=parseFloat(Math.max(weeeTaxAppliedAmount['row_amount'],0));});}\nreturn totalWeeeTaxExclTaxApplied;}});});","Magento_Weee/js/view/checkout/summary/item/price/weee.min.js":"define(['Magento_Checkout/js/view/summary/abstract-total','Magento_Checkout/js/model/quote'],function(Component){'use strict';return Component.extend({isDisplayPriceWithWeeeDetails:function(item){if(!parseFloat(item['weee_tax_applied_amount'])||parseFloat(item['weee_tax_applied_amount']<=0)){return false;}\nreturn window.checkoutConfig.isDisplayPriceWithWeeeDetails;},isDisplayFinalPrice:function(item){if(!parseFloat(item['weee_tax_applied_amount'])){return false;}\nreturn window.checkoutConfig.isDisplayFinalPrice;},getWeeeTaxApplied:function(item){if(item['weee_tax_applied']){return JSON.parse(item['weee_tax_applied']);}\nreturn[];}});});","Magento_Weee/js/view/checkout/summary/item/price/row_incl_tax.min.js":"define(['Magento_Weee/js/view/checkout/summary/item/price/weee'],function(weee){'use strict';return weee.extend({defaults:{template:'Magento_Weee/checkout/summary/item/price/row_incl_tax',displayArea:'row_incl_tax'},getFinalRowDisplayPriceInclTax:function(item){var rowTotalInclTax=parseFloat(item['row_total_incl_tax']);if(!window.checkoutConfig.getIncludeWeeeFlag){rowTotalInclTax+=this.getRowWeeeTaxInclTax(item);}\nreturn rowTotalInclTax;},getRowDisplayPriceInclTax:function(item){var rowTotalInclTax=parseFloat(item['row_total_incl_tax']);if(window.checkoutConfig.getIncludeWeeeFlag){rowTotalInclTax+=this.getRowWeeeTaxInclTax(item);}\nreturn rowTotalInclTax;},getRowWeeeTaxInclTax:function(item){var totalWeeeTaxInclTaxApplied=0,weeeTaxAppliedAmounts;if(item['weee_tax_applied']){weeeTaxAppliedAmounts=JSON.parse(item['weee_tax_applied']);weeeTaxAppliedAmounts.forEach(function(weeeTaxAppliedAmount){totalWeeeTaxInclTaxApplied+=parseFloat(Math.max(weeeTaxAppliedAmount['row_amount_incl_tax'],0));});}\nreturn totalWeeeTaxInclTaxApplied;}});});","Magento_ProductAlert/js/form-submitter.min.js":"define(['jquery'],function($){'use strict';return function(data,element){$(element).trigger('submit');};});","Magento_ReCaptchaPaypal/js/payflowpro-method-mixin.min.js":"define(['jquery','Magento_Checkout/js/model/payment/additional-validators'],function($,additionalValidators){'use strict';return function(originalComponent){return originalComponent.extend({placeOrder:function(){var original=this._super.bind(this),isEnabledForPaypal=window.checkoutConfig.recaptcha_paypal,paymentFormSelector=$('#co-payment-form'),startEvent='captcha:startExecute',endEvent='captcha:endExecute';if(!this.validateHandler()||!additionalValidators.validate()||!isEnabledForPaypal){return original();}\npaymentFormSelector.off(endEvent).on(endEvent,function(){original();paymentFormSelector.off(endEvent);});paymentFormSelector.trigger(startEvent);}});};});","Magento_ReCaptchaPaypal/js/reCaptchaPaypal.min.js":"define(['Magento_ReCaptchaFrontendUi/js/reCaptcha','jquery'],function(Component,$){'use strict';return Component.extend({reCaptchaCallback:function(token){this.tokenField.value=token;this.$parentForm.trigger('captcha:endExecute');},initParentForm:function(parentForm,widgetId){var me=this;parentForm.on('captcha:startExecute',function(event){if(!me.tokenField.value&&me.getIsInvisibleRecaptcha()){grecaptcha.execute(widgetId);event.preventDefault(event);event.stopImmediatePropagation();}else{me.$parentForm.trigger('captcha:endExecute');}});this.tokenField=$('<input type=\"text\" name=\"token\" style=\"display: none\" />')[0];this.$parentForm=parentForm;parentForm.append(this.tokenField);}});});","Magento_Msrp/js/msrp.min.js":"define(['jquery','Magento_Catalog/js/price-utils','underscore','jquery-ui-modules/widget','mage/dropdown','mage/template'],function($,priceUtils,_){'use strict';$.widget('mage.addToCart',{options:{showAddToCart:true,submitUrl:'',cartButtonId:'',singleOpenDropDown:true,dialog:{},dialogDelay:500,origin:'',cartForm:'.form.map.checkout',msrpLabelId:'#map-popup-msrp',msrpPriceElement:'#map-popup-msrp .price-wrapper',priceLabelId:'#map-popup-price',priceElement:'#map-popup-price .price',mapInfoLinks:'.map-show-info',displayPriceElement:'.old-price.map-old-price .price-wrapper',fallbackPriceElement:'.normal-price.map-fallback-price .price-wrapper',displayPriceContainer:'.old-price.map-old-price',fallbackPriceContainer:'.normal-price.map-fallback-price',popUpAttr:'[data-role=msrp-popup-template]',popupCartButtonId:'#map-popup-button',paypalCheckoutButons:'[data-action=checkout-form-submit]',popupId:'',realPrice:'',isSaleable:'',msrpPrice:'',helpLinkId:'',addToCartButton:'',productName:'',addToCartUrl:''},openDropDown:null,triggerClass:'dropdown-active',popUpOptions:{appendTo:'body',dialogContentClass:'active',closeOnMouseLeave:false,autoPosition:true,closeOnClickOutside:false,'dialogClass':'popup map-popup-wrapper',position:{my:'left top',collision:'fit none',at:'left bottom',within:'body'},shadowHinter:'popup popup-pointer'},popupOpened:false,wasOpened:false,_create:function(){if(this.options.origin==='msrp'){this.initMsrpPopup();}else if(this.options.origin==='info'){this.initInfoPopup();}else if(this.options.origin==='tier'){this.initTierPopup();}\n$(this.options.cartButtonId).on('click',this._addToCartSubmit.bind(this));$(document).on('updateMsrpPriceBlock',this.onUpdateMsrpPrice.bind(this));$(this.options.cartForm).on('submit',this._onSubmitForm.bind(this));},initMsrpPopup:function(){var popupDOM=$(this.options.popUpAttr)[0],$msrpPopup=$(popupDOM.innerHTML.trim());$msrpPopup.find(this.options.productIdInput).val(this.options.productId);$('body').append($msrpPopup);$msrpPopup.trigger('contentUpdated');$msrpPopup.find('button').on('click',this.handleMsrpAddToCart.bind(this)).filter(this.options.popupCartButtonId).text($(this.options.addToCartButton).text());$msrpPopup.find(this.options.paypalCheckoutButons).on('click',this.handleMsrpPaypalCheckout.bind(this));$(this.options.popupId).on('click',this.openPopup.bind(this));this.$popup=$msrpPopup;},initInfoPopup:function(){var infoPopupDOM=$('[data-role=msrp-info-template]')[0],$infoPopup=$(infoPopupDOM.innerHTML.trim());$('body').append($infoPopup);$(this.options.helpLinkId).on('click',function(e){this.popUpOptions.position.of=$(e.target);$infoPopup.dropdownDialog(this.popUpOptions).dropdownDialog('open');this._toggle($infoPopup);}.bind(this));this.$popup=$infoPopup;},initTierPopup:function(){var popupDOM=$(this.options.popUpAttr)[0],$tierPopup=$(popupDOM.innerHTML.trim());$('body').append($tierPopup);$tierPopup.find(this.options.productIdInput).val(this.options.productId);this.popUpOptions.position.of=$(this.options.helpLinkId);$tierPopup.find('button').on('click',this.handleTierAddToCart.bind(this)).filter(this.options.popupCartButtonId).text($(this.options.addToCartButton).text());$tierPopup.find(this.options.paypalCheckoutButons).on('click',this.handleTierPaypalCheckout.bind(this));$(this.options.attr).on('click',function(e){this.$popup=$tierPopup;this.tierOptions=$(e.target).data('tier-price');this.openPopup(e);}.bind(this));},handleMsrpAddToCart:function(ev){ev.preventDefault();if(this.options.addToCartButton){$(this.options.addToCartButton).trigger('click');this.closePopup(this.$popup);}},handleMsrpPaypalCheckout:function(){this.closePopup(this.$popup);},handleTierAddToCart:function(ev){ev.preventDefault();if(this.options.addToCartButton&&this.options.inputQty&&!isNaN(this.tierOptions.qty)){$(this.options.inputQty).val(this.tierOptions.qty);$(this.options.addToCartButton).trigger('click');this.closePopup(this.$popup);}},handleTierPaypalCheckout:function(){if(this.options.inputQty&&!isNaN(this.tierOptions.qty)){$(this.options.inputQty).val(this.tierOptions.qty);this.closePopup(this.$popup);}},openPopup:function(event){var options=this.tierOptions||this.options;this.popUpOptions.position.of=$(event.target);if(!this.wasOpened){this.$popup.find(this.options.msrpLabelId).html(options.msrpPrice);this.$popup.find(this.options.priceLabelId).html(options.realPrice);this.wasOpened=true;}\nthis.$popup.dropdownDialog(this.popUpOptions).dropdownDialog('open');this._toggle(this.$popup);if(!this.options.isSaleable){this.$popup.find('form').hide();}},_toggle:function($elem){$(document).on('mouseup.msrp touchend.msrp',function(e){if(!$elem.is(e.target)&&$elem.has(e.target).length===0){this.closePopup($elem);}}.bind(this));$(window).on('resize',function(){this.closePopup($elem);}.bind(this));},closePopup:function($elem){$elem.dropdownDialog('close');$(document).off('mouseup.msrp touchend.msrp');},_addToCartSubmit:function(e){this.element.trigger('addToCart',this.element);if(this.element.data('stop-processing')){return false;}\nif(this.options.addToCartButton){$(this.options.addToCartButton).trigger('click');return false;}\nif(this.options.addToCartUrl){$('.mage-dropdown-dialog > .ui-dialog-content').dropdownDialog('close');}\ne.preventDefault();$(this.options.cartForm).trigger('submit');},onUpdateMsrpPrice:function onUpdateMsrpPrice(event,priceIndex,prices,$priceBox){var defaultMsrp,defaultPrice,msrpPrice,finalPrice;defaultMsrp=_.chain(prices).map(function(price){return price.msrpPrice.amount;}).reject(function(p){return p===null;}).max().value();defaultPrice=_.chain(prices).map(function(p){return p.finalPrice.amount;}).min().value();if(typeof priceIndex!=='undefined'){msrpPrice=prices[priceIndex].msrpPrice.amount;finalPrice=prices[priceIndex].finalPrice.amount;if(msrpPrice===null||msrpPrice<=finalPrice){this.updateNonMsrpPrice(priceUtils.formatPriceLocale(finalPrice),$priceBox);}else{this.updateMsrpPrice(priceUtils.formatPriceLocale(finalPrice),priceUtils.formatPriceLocale(msrpPrice),false,$priceBox);}}else{this.updateMsrpPrice(priceUtils.formatPriceLocale(defaultPrice),priceUtils.formatPriceLocale(defaultMsrp),true,$priceBox);}},updateMsrpPrice:function(finalPrice,msrpPrice,useDefaultPrice,$priceBox){var options=this.tierOptions||this.options;$(this.options.fallbackPriceContainer,$priceBox).hide();$(this.options.displayPriceContainer,$priceBox).show();$(this.options.mapInfoLinks,$priceBox).show();if(useDefaultPrice||!this.wasOpened){if(this.$popup){this.$popup.find(this.options.msrpLabelId).html(options.msrpPrice);this.$popup.find(this.options.priceLabelId).html(options.realPrice);}\n$(this.options.displayPriceElement,$priceBox).html(msrpPrice);this.wasOpened=true;}\nif(!useDefaultPrice){this.$popup.find(this.options.msrpPriceElement).html(msrpPrice);this.$popup.find(this.options.priceElement).html(finalPrice);$(this.options.displayPriceElement,$priceBox).html(msrpPrice);}},updateNonMsrpPrice:function(price,$priceBox){$(this.options.fallbackPriceElement,$priceBox).html(price);$(this.options.displayPriceContainer,$priceBox).hide();$(this.options.mapInfoLinks,$priceBox).hide();$(this.options.fallbackPriceContainer,$priceBox).show();},_onSubmitForm:function(){if($(this.options.cartForm).valid()){$(this.options.cartButtonId).prop('disabled',true);}}});return $.mage.addToCart;});","Magento_Msrp/js/product/list/columns/msrp-price.min.js":"define(['jquery','underscore','Magento_Catalog/js/product/list/columns/price-box','Magento_Catalog/js/product/addtocart-button','mage/dropdown'],function($,_,PriceBox){'use strict';return PriceBox.extend({defaults:{priceBoxSelector:'[data-role=msrp-price-box]',popupTmpl:'Magento_Msrp/product/item/popup',popupTriggerSelector:'[data-role=msrp-popup-trigger]',popupSelector:'[data-role=msrp-popup]',popupOptions:{appendTo:'body',dialogContentClass:'active',closeOnMouseLeave:false,autoPosition:true,dialogClass:'popup map-popup-wrapper',position:{my:'left top',collision:'fit none',at:'left bottom',within:'body'},shadowHinter:'popup popup-pointer'}},openPopup:function(data,elem,event){var $elem=$(elem),$popup=$elem.find(this.popupSelector),$trigger=$elem.find(this.popupTriggerSelector);event.stopPropagation();this.popupOptions.position.of=$trigger;this.popupOptions.triggerTarget=$trigger;$popup.dropdownDialog(this.popupOptions).dropdownDialog('open');},initListeners:function(elem,data){var $trigger=$(elem).find(this.popupTriggerSelector);$trigger.on('click',this.openPopup.bind(this,data,elem));},isMsrpApplicable:function(row){return this.getPrice(row)['is_applicable'];},getPrice:function(row){return row['price_info']['extension_attributes'].msrp;},getPriceUnsanitizedHtml:function(row){return this.getPrice(row);},getMsrpPriceUnsanitizedHtml:function(row){return this.getPrice(row)['msrp_price'];},getBody:function(){return this.bodyTmpl;},isShowPriceOnGesture:function(row){return this.getPrice(row)['is_shown_price_on_gesture'];},getMsrpPriceMessage:function(row){return this.getPrice(row)['msrp_message'];},getMsrpPriceMessageUnsanitizedHtml:function(row){return this.getMsrpPriceMessage(row);},getExplanationMessage:function(row){return this.getPrice(row)['explanation_message'];},getExplanationMessageUnsanitizedHtml:function(row){return this.getExplanationMessage(row);}});});","Magento_Msrp/js/view/checkout/minicart/subtotal/totals.min.js":"define(['Magento_Tax/js/view/checkout/minicart/subtotal/totals','underscore'],function(Component,_){'use strict';return Component.extend({initialize:function(){this._super();this.displaySubtotal(this.isMsrpApplied(this.cart().items));this.cart.subscribe(function(updatedCart){this.displaySubtotal(this.isMsrpApplied(updatedCart.items));},this);},isMsrpApplied:function(cartItems){return!_.find(cartItems,function(item){if(_.has(item,'canApplyMsrp')){return item.canApplyMsrp;}\nreturn false;});}});});","Magento_Ui/js/block-loader.min.js":"define(['ko','jquery','Magento_Ui/js/lib/knockout/template/loader','mage/template'],function(ko,$,templateLoader,template){'use strict';var blockLoaderTemplatePath='ui/block-loader',blockContentLoadingClass='_block-content-loading',blockLoader,blockLoaderClass,blockLoaderElement=$.Deferred(),loaderImageHref=$.Deferred();templateLoader.loadTemplate(blockLoaderTemplatePath).done(function(blockLoaderTemplate){loaderImageHref.done(function(loaderHref){blockLoader=template(blockLoaderTemplate.trim(),{loaderImageHref:loaderHref});blockLoader=$(blockLoader);blockLoaderClass='.'+blockLoader.attr('class');blockLoaderElement.resolve();});});function isLoadingClassRequired(element){var position=element.css('position');if(position==='absolute'||position==='fixed'){return false;}\nreturn true;}\nfunction addBlockLoader(element){element.find(':focus').trigger('blur');element.find('input:disabled, select:disabled').addClass('_disabled');element.find('input, select').prop('disabled',true);if(isLoadingClassRequired(element)){element.addClass(blockContentLoadingClass);}\nelement.append(blockLoader.clone());}\nfunction removeBlockLoader(element){if(!element.has(blockLoaderClass).length){return;}\nelement.find(blockLoaderClass).remove();element.find('input:not(\"._disabled\"), select:not(\"._disabled\")').prop('disabled',false);element.find('input:disabled, select:disabled').removeClass('_disabled');element.removeClass(blockContentLoadingClass);}\nreturn function(loaderHref){loaderImageHref.resolve(loaderHref);ko.bindingHandlers.blockLoader={update:function(element,displayBlockLoader){element=$(element);if(ko.unwrap(displayBlockLoader())){blockLoaderElement.done(addBlockLoader(element));}else{blockLoaderElement.done(removeBlockLoader(element));}}};};});","Magento_Ui/js/form/adapter.min.js":"define(['jquery','underscore','Magento_Ui/js/form/adapter/buttons'],function($,_,buttons){'use strict';var selectorPrefix='',eventPrefix;function initListener(callback,action){var selector=selectorPrefix?selectorPrefix+' '+buttons[action]:buttons[action],elem=$(selector)[0];if(!elem){return;}\nif(elem.onclick){elem.onclick=null;}\n$(elem).on('click'+eventPrefix,callback);}\nfunction destroyListener(action){var selector=selectorPrefix?selectorPrefix+' '+buttons[action]:buttons[action],elem=$(selector)[0];if(!elem){return;}\nif(elem.onclick){elem.onclick=null;}\n$(elem).off('click'+eventPrefix);}\nreturn{on:function(handlers,selectorPref,eventPref){selectorPrefix=selectorPrefix||selectorPref;eventPrefix=eventPref;_.each(handlers,initListener);selectorPrefix='';},off:function(handlers,eventPref){eventPrefix=eventPref;_.each(handlers,destroyListener);}};});","Magento_Ui/js/form/form.min.js":"define(['underscore','Magento_Ui/js/lib/spinner','rjsResolver','./adapter','uiCollection','mageUtils','jquery','Magento_Ui/js/core/app','mage/validation'],function(_,loader,resolver,adapter,Collection,utils,$,app){'use strict';function prepareParams(params){var result='?';_.each(params,function(value,key){result+=key+'='+value+'&';});return result.slice(0,-1);}\nfunction collectData(items){var result={},name;items=Array.prototype.slice.call(items);items.forEach(function(item){switch(item.type){case'checkbox':result[item.name]=+!!item.checked;break;case'radio':if(item.checked){result[item.name]=item.value;}\nbreak;case'select-multiple':name=item.name.substring(0,item.name.length-2);result[name]=_.pluck(item.selectedOptions,'value');break;default:result[item.name]=item.value;}});return result;}\nfunction makeRequest(params,data,url){var save=$.Deferred();data=utils.serialize(data);data['form_key']=window.FORM_KEY;if(!url){save.resolve();}\n$('body').trigger('processStart');$.ajax({url:url+prepareParams(params),data:data,dataType:'json',success:function(resp){if(resp.ajaxExpired){window.location.href=resp.ajaxRedirect;}\nif(!resp.error){save.resolve(resp);return true;}\n$('body').notification('clear');$.each(resp.messages,function(key,message){$('body').notification('add',{error:resp.error,message:message,insertMethod:function(msg){$('.page-main-actions').after(msg);}});});},complete:function(){$('body').trigger('processStop');}});return save.promise();}\nfunction isValidFields(items){var result=true;_.each(items,function(item){if(!$.validator.validateSingleElement(item)){result=false;}});return result;}\nreturn Collection.extend({defaults:{additionalFields:[],additionalInvalid:false,selectorPrefix:'.page-content',messagesClass:'messages',errorClass:'.admin__field._error',eventPrefix:'.${ $.index }',ajaxSave:false,ajaxSaveType:'default',imports:{reloadUrl:'${ $.provider}:reloadUrl'},listens:{selectorPrefix:'destroyAdapter initAdapter','${ $.name }.${ $.reloadItem }':'params.set reload'},exports:{selectorPrefix:'${ $.provider }:client.selectorPrefix',messagesClass:'${ $.provider }:client.messagesClass'}},initialize:function(){this._super().initAdapter();resolver(this.hideLoader,this);return this;},initObservable:function(){return this._super().observe(['responseData','responseStatus']);},initConfig:function(){this._super();this.selector='[data-form-part='+this.namespace+']';return this;},initAdapter:function(){adapter.on({'reset':this.reset.bind(this),'save':this.save.bind(this,true,{}),'saveAndContinue':this.save.bind(this,false,{})},this.selectorPrefix,this.eventPrefix);return this;},destroyAdapter:function(){adapter.off(['reset','save','saveAndContinue'],this.eventPrefix);return this;},hideLoader:function(){loader.get(this.name).hide();return this;},save:function(redirect,data){this.validate();if(!this.additionalInvalid&&!this.source.get('params.invalid')){this.setAdditionalData(data).submit(redirect);}else{this.focusInvalid();}},focusInvalid:function(){var invalidField=_.find(this.delegate('checkInvalid'));if(!_.isUndefined(invalidField)&&_.isFunction(invalidField.focused)){invalidField.focused(true);}\nreturn this;},setAdditionalData:function(data){_.each(data,function(value,name){this.source.set('data.'+name,value);},this);return this;},submit:function(redirect){var additional=collectData(this.additionalFields),source=this.source;_.each(additional,function(value,name){source.set('data.'+name,value);});source.save({redirect:redirect,ajaxSave:this.ajaxSave,ajaxSaveType:this.ajaxSaveType,response:{data:this.responseData,status:this.responseStatus},attributes:{id:this.namespace}});},validate:function(){this.additionalFields=document.querySelectorAll(this.selector);this.source.set('params.invalid',false);this.source.trigger('data.validate');this.set('additionalInvalid',!isValidFields(this.additionalFields));},reset:function(){this.source.trigger('data.reset');$('[data-bind*=datepicker]').val('');},overload:function(){this.source.trigger('data.overload');},reload:function(){makeRequest(this.params,this.data,this.reloadUrl).then(function(data){app(data,true);});}});});","Magento_Ui/js/form/button-adapter.min.js":"define(['uiClass','jquery','underscore','uiRegistry'],function(Class,$,_,registry){'use strict';return Class.extend({initialize:function(config,elem){return this._super().initActions().initAdapter(elem);},initActions:function(){var callbacks=[];_.each(this.actions,function(action){callbacks.push({action:registry.async(action.targetName),args:_.union([action.actionName],action.params)});});this.callback=function(){_.each(callbacks,function(callback){callback.action.apply(callback.action,callback.args);});};return this;},initAdapter:function(elem){$(elem).on('click',this.callback);return this;}});});","Magento_Ui/js/form/provider.min.js":"define(['underscore','uiElement','./client','mageUtils'],function(_,Element,Client,utils){'use strict';return Element.extend({defaults:{clientConfig:{urls:{save:'${ $.submit_url }',beforeSave:'${ $.validate_url }'}},ignoreTmpls:{data:true}},initialize:function(){this._super().initClient();return this;},initClient:function(){this.client=new Client(this.clientConfig);return this;},save:function(options){var data=this.get('data');this.client.save(data,options);return this;},updateConfig:function(isProvider,newData,oldData){if(isProvider===true){this.setData(oldData,newData,this);}\nreturn this;},setData:function(oldData,newData,current,parentPath){_.each(newData,function(val,key){if(_.isObject(val)||_.isArray(val)){this.setData(oldData[key],val,current[key],utils.fullPath(parentPath,key));}else if(val!=oldData[key]&&oldData[key]==current[key]){this.set(utils.fullPath(parentPath,key),val);}},this);}});});","Magento_Ui/js/form/client.min.js":"define(['jquery','underscore','mageUtils','uiClass'],function($,_,utils,Class){'use strict';function beforeSave(data,url,selectorPrefix,messagesClass){var save=$.Deferred();data=utils.serialize(utils.filterFormData(data));data['form_key']=window.FORM_KEY;if(!url||url==='undefined'){return save.resolve();}\n$('body').trigger('processStart');$.ajax({url:url,data:data,success:function(resp){if(!resp.error){save.resolve();return true;}\n$('body').notification('clear');$.each(resp.messages||[resp.message]||[],function(key,message){$('body').notification('add',{error:resp.error,message:message,insertMethod:function(msg){var $wrapper=$('<div></div>').addClass(messagesClass).html(msg);$('.page-main-actions',selectorPrefix).after($wrapper);$('html, body').animate({scrollTop:$('.page-main-actions',selectorPrefix).offset().top});}});});},complete:function(){$('body').trigger('processStop');}});return save.promise();}\nreturn Class.extend({save:function(data,options){var url=this.urls.beforeSave,save=this._save.bind(this,data,options);beforeSave(data,url,this.selectorPrefix,this.messagesClass).then(save);return this;},_save:function(data,options){var url=this.urls.save;$('body').trigger('processStart');options=options||{};if(!options.redirect){url+='back/edit';}\nif(options.ajaxSave){utils.ajaxSubmit({url:url,data:data},options);$('body').trigger('processStop');return this;}\nutils.submit({url:url,data:data},options.attributes);return this;}});});","Magento_Ui/js/form/switcher.min.js":"define(['underscore','uiRegistry','uiClass'],function(_,registry,Class){'use strict';return Class.extend({defaults:{rules:[]},initialize:function(){this._super().initRules();return this;},initRules:function(){this.rules.forEach(this.initRule,this);return this;},initRule:function(rule){var handler=this.onValueChange.bind(this,rule);if(!rule.target){rule.target=this.target;}\nif(!rule.property){rule.property=this.property;}\nregistry.get(rule.target,function(target){this.applyRule(rule,target.get(rule.property));target.on(rule.property,handler);}.bind(this));return this;},addRule:function(rule){this.rules.push(rule);this.initRule(rule);return this;},applyRule:function(rule,value){var actions=rule.actions;if(rule.value!=value){return;}else if(rule.strict){return;}\nactions.forEach(this.applyAction,this);},applyAction:function(action){registry.get(action.target,function(target){var callback=target[action.callback];callback.apply(target,action.params||[]);});},onValueChange:function(rule,value){this.applyRule(rule,value);}});});","Magento_Ui/js/form/adapter/buttons.min.js":"define(function(){'use strict';return{'reset':'#reset','save':'#save','saveAndContinue':'#save_and_continue'};});","Magento_Ui/js/form/components/html.min.js":"define(['jquery','underscore','uiComponent'],function($,_,Component){'use strict';return Component.extend({defaults:{content:'',showSpinner:false,loading:false,visible:true,template:'ui/content/content',additionalClasses:{},ignoreTmpls:{content:true}},initialize:function(){_.bindAll(this,'onContainerToggle','onDataLoaded');this._super()._setClasses().initAjaxConfig();return this;},initObservable:function(){this._super().observe('content loading visible');return this;},_setClasses:function(){var additional=this.additionalClasses,classes;if(_.isString(additional)){additional=this.additionalClasses.split(' ');classes=this.additionalClasses={};additional.forEach(function(name){classes[name]=true;},this);}\n_.extend(this.additionalClasses,{'admin__scope-old':!!additional});return this;},initContainer:function(parent){this._super();parent.on('active',this.onContainerToggle);return this;},initAjaxConfig:function(){this.ajaxConfig={url:this.url,data:{FORM_KEY:window.FORM_KEY},success:this.onDataLoaded};return this;},onContainerToggle:function(active){if(active&&this.shouldLoad()){this.loadData();}},hasData:function(){return!!this.content();},shouldLoad:function(){return this.url&&!this.hasData()&&!this.loading();},loadData:function(){this.loading(true);$.ajax(this.ajaxConfig);return this;},onDataLoaded:function(data){this.updateContent(data).loading(false);},updateContent:function(content){this.content(content);return this;},getContentUnsanitizedHtml:function(){return this.content();}});});","Magento_Ui/js/form/components/area.min.js":"define(['underscore','./tab'],function(_,Tab){'use strict';return Tab.extend({defaults:{uniqueNs:'params.activeArea',template:'ui/area',changed:false,loading:false},initialize:function(){_.bindAll(this,'onChildrenUpdate','onContentLoading');return this._super();},initObservable:function(){this._super().observe('changed loading');return this;},initElement:function(elem){this._super();elem.on({'update':this.onChildrenUpdate,'loading':this.onContentLoading});return this;},onChildrenUpdate:function(hasChanged){if(!hasChanged){hasChanged=_.some(this.delegate('hasChanged'));}\nthis.changed(hasChanged);},onContentLoading:function(isLoading){this.loading(isLoading);}});});","Magento_Ui/js/form/components/group.min.js":"define(['underscore','uiCollection'],function(_,Collection){'use strict';return Collection.extend({defaults:{visible:true,label:'',showLabel:true,required:false,template:'ui/group/group',fieldTemplate:'ui/form/field',breakLine:true,validateWholeGroup:false,additionalClasses:{}},initialize:function(){this._super()._setClasses();return this;},initObservable:function(){this._super().observe('visible').observe({required:!!+this.required});return this;},_setClasses:function(){var additional=this.additionalClasses,classes;if(_.isString(additional)){additional=this.additionalClasses.split(' ');classes=this.additionalClasses={};additional.forEach(function(name){classes[name]=true;},this);}\n_.extend(this.additionalClasses,{'admin__control-grouped':!this.breakLine,'admin__control-fields':this.breakLine,required:this.required,_error:this.error,_disabled:this.disabled});return this;},isSingle:function(){return this.elems.getLength()===1;},isMultiple:function(){return this.elems.getLength()>1;},getPreview:function(){return this.elems.map('getPreview');}});});","Magento_Ui/js/form/components/collection.min.js":"define(['underscore','mageUtils','uiRegistry','uiComponent','uiLayout','Magento_Ui/js/modal/confirm'],function(_,utils,registry,Component,layout,confirm){'use strict';var childTemplate={parent:'${ $.$data.name }',name:'${ $.$data.childIndex }',dataScope:'${ $.name }',nodeTemplate:'${ $.$data.name }.${ $.$data.itemTemplate }'};return Component.extend({defaults:{lastIndex:0,template:'ui/form/components/collection'},initialize:function(){this._super().initChildren();return this;},initElement:function(elem){this._super();elem.activate();this.bubble('update');return this;},initChildren:function(){var children=this.source.get(this.dataScope),initial=this.initialItems=[];_.each(children,function(item,index){initial.push(index);this.addChild(index);},this);return this;},addChild:function(index){this.childIndex=!_.isString(index)?'new_'+this.lastIndex++:index;layout([utils.template(childTemplate,this)]);return this;},hasChanged:function(){var initial=this.initialItems,current=this.elems.pluck('index'),changed=!utils.equalArrays(initial,current);return changed||this.elems.some(function(elem){return _.some(elem.delegate('hasChanged'));});},validate:function(){var elems;this.allValid=true;elems=this.elems.sortBy(function(elem){return!elem.active();});elems=elems.map(this._validate,this);return _.flatten(elems);},_validate:function(elem){var result=elem.delegate('validate'),invalid;invalid=_.some(result,function(item){return!item.valid;});if(this.allValid&&invalid){this.allValid=false;elem.activate();}\nreturn result;},removeAddress:function(elem){var self=this;confirm({content:this.removeMessage,actions:{confirm:function(){self._removeAddress(elem);}}});},_removeAddress:function(elem){var isActive=elem.active(),first;elem.destroy();first=this.elems.first();if(first&&isActive){first.activate();}\nthis.bubble('update');}});});","Magento_Ui/js/form/components/insert-form.min.js":"define(['./insert','mageUtils','jquery'],function(Insert,utils,$){'use strict';function getPageActions(elem,actionsClass){var el=document.createElement('div');el.innerHTML=elem;return el.getElementsByClassName(actionsClass)[0];}\nfunction removePageActions(elem,actionsClass){var el=document.createElement('div'),actions;el.innerHTML=elem;actions=el.getElementsByClassName(actionsClass)[0];if(actions){el.removeChild(actions);}\nreturn el.innerHTML;}\nreturn Insert.extend({defaults:{externalFormName:'${ $.ns }.${ $.ns }',pageActionsClass:'page-actions',actionsContainerClass:'page-main-actions',exports:{prefix:'${ $.externalFormName }:selectorPrefix'},imports:{toolbarSection:'${ $.toolbarContainer }:toolbarSection',prefix:'${ $.toolbarContainer }:rootSelector',messagesClass:'${ $.externalFormName }:messagesClass'},settings:{ajax:{ajaxSave:true,exports:{ajaxSave:'${ $.externalFormName }:ajaxSave'},imports:{responseStatus:'${ $.externalFormName }:responseStatus',responseData:'${ $.externalFormName }:responseData'}}},modules:{externalForm:'${ $.externalFormName }'}},initObservable:function(){return this._super().observe('responseStatus');},initConfig:function(config){var defaults=this.constructor.defaults;utils.extend(defaults,defaults.settings[config.formSubmitType]||{});return this._super();},destroyInserted:function(){if(this.isRendered&&this.externalForm()){this.externalForm().delegate('destroy');this.removeActions();this.responseStatus(undefined);this.responseData={};}\nreturn this._super();},onRender:function(data){var actions=getPageActions(data,this.pageActionsClass);if(!data.length){return this;}\ndata=removePageActions(data,this.pageActionsClass);this.renderActions(actions);this._super(data);},renderActions:function(actions){var $container=$('<div></div>');$container.addClass(this.actionsContainerClass).append(actions);this.formHeader=$container;$(this.toolbarSection).append(this.formHeader);},removeActions:function(){$(this.formHeader).siblings('.'+this.messagesClass).remove();$(this.formHeader).remove();this.formHeader=$();},resetForm:function(){if(this.externalSource()){this.externalSource().trigger('data.reset');this.responseStatus(undefined);}}});});","Magento_Ui/js/form/components/tab_group.min.js":"define(['underscore','Magento_Ui/js/lib/collapsible'],function(_,Collapsible){'use strict';return Collapsible.extend({defaults:{listens:{'${ $.provider }:data.validate':'onValidate'},collapsible:false,opened:true},initElement:function(elem){this._super().initActivation(elem);return this;},initActivation:function(elem){var elems=this.elems(),isFirst=!elems.indexOf(elem);if(isFirst||elem.active()){elem.activate();}\nreturn this;},validate:function(elem){var result=elem.delegate('validate'),invalid;invalid=_.find(result,function(item){return typeof item!=='undefined'&&!item.valid;});if(invalid){elem.activate();invalid.target.focused(true);}\nreturn invalid;},onValidate:function(){this.elems.sortBy(function(elem){return!elem.active();}).some(this.validate,this);}});});","Magento_Ui/js/form/components/button.min.js":"define(['uiElement','uiRegistry','uiLayout','mageUtils','underscore'],function(Element,registry,layout,utils,_){'use strict';return Element.extend({defaults:{buttonClasses:{},additionalClasses:{},displayArea:'outsideGroup',displayAsLink:false,elementTmpl:'ui/form/element/button',template:'ui/form/components/button/simple',visible:true,disabled:false,title:'',buttonTextId:'',ariLabelledby:''},initialize:function(){return this._super()._setClasses()._setButtonClasses();},initObservable:function(){return this._super().observe(['visible','disabled','title','childError']);},action:function(){this.actions.forEach(this.applyAction,this);},applyAction:function(action){var targetName=action.targetName,params=utils.copy(action.params)||[],actionName=action.actionName,target;if(!registry.has(targetName)){this.getFromTemplate(targetName);}\ntarget=registry.async(targetName);if(target&&typeof target==='function'&&actionName){params.unshift(actionName);target.apply(target,params);}},getFromTemplate:function(targetName){var parentName=targetName.split('.'),index=parentName.pop(),child;parentName=parentName.join('.');child=utils.template({parent:parentName,name:index,nodeTemplate:targetName});layout([child]);},_setClasses:function(){if(typeof this.additionalClasses==='string'){if(this.additionalClasses===''){this.additionalClasses={};return this;}\nthis.additionalClasses=this.additionalClasses.trim().split(' ').reduce(function(classes,name){classes[name]=true;return classes;},{});}\nreturn this;},_setButtonClasses:function(){var additional=this.buttonClasses;if(_.isString(additional)){this.buttonClasses={};if(additional.trim().length){additional=additional.trim().split(' ');additional.forEach(function(name){if(name.length){this.buttonClasses[name]=true;}},this);}}\n_.extend(this.buttonClasses,{'action-basic':!this.displayAsLink,'action-additional':this.displayAsLink});return this;}});});","Magento_Ui/js/form/components/tab.min.js":"define(['uiCollection'],function(Collection){'use strict';return Collection.extend({defaults:{uniqueProp:'active',active:false,wasActivated:false},initialize:function(){this._super().setUnique();},initObservable:function(){this._super().observe('active wasActivated');return this;},activate:function(){this.active(true);this.wasActivated(true);this.setUnique();return true;}});});","Magento_Ui/js/form/components/multiline.min.js":"define(['./group'],function(Group){'use strict';return Group.extend({defaults:{links:{value:'${ $.provider }:${ $.dataScope }'}},initialize:function(){return this._super()._prepareValue();},initObservable:function(){this._super().observe('value');return this;},_prepareValue:function(){var value=this.value();if(typeof value==='string'){this.value(value.split('\\n'));}\nreturn this;}});});","Magento_Ui/js/form/components/fieldset.min.js":"define(['Magento_Ui/js/lib/collapsible','underscore'],function(Collapsible,_){'use strict';return Collapsible.extend({defaults:{template:'ui/form/fieldset',collapsible:false,changed:false,loading:false,error:false,opened:false,level:0,visible:true,initializeFieldsetDataByDefault:false,disabled:false,listens:{'opened':'onVisibilityChange'},additionalClasses:{}},initialize:function(){_.bindAll(this,'onChildrenUpdate','onChildrenError','onContentLoading');return this._super()._setClasses();},initConfig:function(){this._super();this._wasOpened=this.opened||!this.collapsible;return this;},initObservable:function(){this._super().observe('changed loading error visible');return this;},initElement:function(elem){elem.initContainer(this);elem.on({'update':this.onChildrenUpdate,'loading':this.onContentLoading,'error':this.onChildrenError});if(this.disabled){try{elem.disabled(true);}\ncatch(e){}}\nreturn this;},onChildrenUpdate:function(hasChanged){if(!hasChanged){hasChanged=_.some(this.delegate('hasChanged'));}\nthis.bubble('update',hasChanged);this.changed(hasChanged);},_setClasses:function(){var additional=this.additionalClasses,classes;if(_.isString(additional)){additional=this.additionalClasses.split(' ');classes=this.additionalClasses={};additional.forEach(function(name){classes[name]=true;},this);}\n_.extend(this.additionalClasses,{'admin__collapsible-block-wrapper':this.collapsible,_show:this.opened,_hide:!this.opened,_disabled:this.disabled});return this;},onVisibilityChange:function(isOpened){if(!this._wasOpened){this._wasOpened=isOpened;}},onChildrenError:function(message){var hasErrors=false;if(!message){hasErrors=this._isChildrenHasErrors(hasErrors,this);}\nthis.error(hasErrors||message);if(hasErrors||message){this.open();}},_isChildrenHasErrors:function(hasErrors,container){var self=this;if(hasErrors===false&&container.hasOwnProperty('elems')){hasErrors=container.elems.some('error');if(hasErrors===false&&container.hasOwnProperty('_elems')){container._elems.forEach(function(child){if(hasErrors===false){hasErrors=self._isChildrenHasErrors(hasErrors,child);}});}}\nreturn hasErrors;},onContentLoading:function(isLoading){this.loading(isLoading);}});});","Magento_Ui/js/form/components/collection/item.min.js":"define(['underscore','mageUtils','../tab'],function(_,utils,Tab){'use strict';var previewConfig={separator:' ',prefix:''};function parsePreview(data){if(typeof data=='string'){data={items:data};}\ndata.items=utils.stringToArray(data.items);return _.defaults(data,previewConfig);}\nreturn Tab.extend({defaults:{label:'',uniqueNs:'activeCollectionItem',previewTpl:'ui/form/components/collection/preview'},initialize:function(){_.bindAll(this,'buildPreview','hasPreview');return this._super();},initConfig:function(){this._super();this.displayed=[];return this;},initObservable:function(){this._super().observe({noPreview:true,indexed:{}});return this;},initElement:function(elem){this._super().insertToIndexed(elem);return this;},insertToIndexed:function(elem){var indexed=this.indexed();indexed[elem.index]=elem;this.indexed(indexed);return this;},destroy:function(){this._super();this._clearData();},_clearData:function(){this.source.remove(this.dataScope);return this;},formatPreviews:function(previews){return previews.map(parsePreview);},buildPreview:function(data){var preview=this.getPreview(data.items),prefix=data.prefix;return prefix+preview.join(data.separator);},hasPreview:function(data){return!!this.getPreview(data.items).length;},getPreview:function(items){var elems=this.indexed(),displayed=this.displayed,preview;items=items.map(function(index){var elem=elems[index];preview=elem&&elem.visible()?elem.getPreview():'';preview=Array.isArray(preview)?_.compact(preview).join(', '):preview;utils.toggle(displayed,index,!!preview);return preview;});this.noPreview(!displayed.length);return _.compact(items);}});});","Magento_Ui/js/form/element/color-picker.min.js":"define(['mage/translate','Magento_Ui/js/form/element/abstract','Magento_Ui/js/form/element/color-picker-palette'],function($t,Abstract,palette){'use strict';return Abstract.extend({defaults:{colorPickerConfig:{chooseText:$t('Apply'),cancelText:$t('Cancel'),maxSelectionSize:8,clickoutFiresChange:true,allowEmpty:true,localStorageKey:'magento.spectrum',palette:palette}},initialize:function(){this._super();this.colorPickerConfig.value=this.value;return this;}});});","Magento_Ui/js/form/element/checkbox-set.min.js":"define(['underscore','mageUtils','./abstract'],function(_,utils,Abstract){'use strict';return Abstract.extend({defaults:{template:'ui/form/element/checkbox-set',multiple:false,multipleScopeValue:null},initConfig:function(){this._super();this.value=this.normalizeData(this.value);return this;},initLinks:function(){var scope=this.source.get(this.dataScope);this.multipleScopeValue=this.multiple&&_.isArray(scope)?utils.copy(scope):undefined;return this._super();},reset:function(){this.value(utils.copy(this.initialValue));this.error(false);return this;},clear:function(){var value=this.multiple?[]:'';this.value(value);this.error(false);return this;},normalizeData:function(value){if(!this.multiple){return this._super();}\nreturn _.isArray(value)?utils.copy(value):[];},setInitialValue:function(){this._super();this.initialValue=utils.copy(this.initialValue);return this;},getInitialValue:function(){var values=[this.multipleScopeValue,this.default,this.value.peek(),[]],value;if(!this.multiple){return this._super();}\nvalues.some(function(v){return _.isArray(v)&&(value=utils.copy(v));});return value;},getPreview:function(){var option;if(!this.multiple){option=this.getOption(this.value());return option?option.label:'';}\nreturn this.value.map(function(value){return this.getOption(value).label;},this);},getOption:function(value){return _.findWhere(this.options,{value:value});},hasChanged:function(){var value=this.value(),initial=this.initialValue;return this.multiple?!utils.equalArrays(value,initial):this._super();}});});","Magento_Ui/js/form/element/post-code.min.js":"define(['underscore','./abstract'],function(_,Abstract){'use strict';return Abstract.extend({defaults:{imports:{countryOptions:'${ $.parentName }.country_id:indexedOptions',update:'${ $.parentName }.country_id:value'}},initObservable:function(){this._super();this.value.equalityComparer=function(oldValue,newValue){return!oldValue&&!newValue||oldValue===newValue;};return this;},update:function(value){var isZipCodeOptional,option;if(!value){return;}\noption=_.isObject(this.countryOptions)&&this.countryOptions[value];if(!option){return;}\nisZipCodeOptional=!!option['is_zipcode_optional'];if(isZipCodeOptional){this.error(false);}\nthis.validation['required-entry']=!isZipCodeOptional;this.required(!isZipCodeOptional);}});});","Magento_Ui/js/form/element/website.min.js":"define(['underscore','uiRegistry','./select'],function(_,registry,Select){'use strict';return Select.extend({defaults:{customerId:null,isGlobalScope:0},initialize:function(){this._super();return this;}});});","Magento_Ui/js/form/element/single-checkbox-use-config.min.js":"define(['Magento_Ui/js/form/element/single-checkbox'],function(Component){'use strict';return Component.extend({defaults:{isUseDefault:false,isUseConfig:false,listens:{'isUseConfig':'toggleElement','isUseDefault':'toggleElement'}},initObservable:function(){return this._super().observe('isUseConfig');},toggleElement:function(){this.disabled(this.isUseDefault()||this.isUseConfig());if(this.source){this.source.set('data.use_default.'+this.index,Number(this.isUseDefault()));}}});});","Magento_Ui/js/form/element/abstract.min.js":"define(['underscore','mageUtils','uiLayout','uiElement','Magento_Ui/js/lib/validation/validator'],function(_,utils,layout,Element,validator){'use strict';return Element.extend({defaults:{visible:true,preview:'',focused:false,required:false,disabled:false,valueChangedByUser:false,elementTmpl:'ui/form/element/input',tooltipTpl:'ui/form/element/helper/tooltip',fallbackResetTpl:'ui/form/element/helper/fallback-reset','input_type':'input',placeholder:false,description:'',labelVisible:true,label:'',error:'',warn:'',notice:'',customScope:'',default:'',isDifferedFromDefault:false,showFallbackReset:false,additionalClasses:{},isUseDefault:'',serviceDisabled:false,valueUpdate:false,switcherConfig:{component:'Magento_Ui/js/form/switcher',name:'${ $.name }_switcher',target:'${ $.name }',property:'value'},listens:{visible:'setPreview',value:'setDifferedFromDefault','${ $.provider }:data.reset':'reset','${ $.provider }:data.overload':'overload','${ $.provider }:${ $.customScope ? $.customScope + \".\" : \"\"}data.validate':'validate','isUseDefault':'toggleUseDefault'},ignoreTmpls:{value:true},links:{value:'${ $.provider }:${ $.dataScope }'}},initialize:function(){_.bindAll(this,'reset');this._super().setInitialValue()._setClasses().initSwitcher();return this;},checkInvalid:function(){return this.error()&&this.error().length?this:null;},initObservable:function(){var rules=this.validation=this.validation||{};this._super();this.observe('error disabled focused preview visible value warn notice isDifferedFromDefault').observe('isUseDefault serviceDisabled').observe({'required':!!rules['required-entry']});return this;},initConfig:function(){var uid=utils.uniqueid(),name,valueUpdate,scope;this._super();scope=this.dataScope.split('.');name=scope.length>1?scope.slice(1):scope;valueUpdate=this.showFallbackReset?'afterkeydown':this.valueUpdate;_.extend(this,{uid:uid,noticeId:'notice-'+uid,errorId:'error-'+uid,tooltipId:'tooltip-'+uid,inputName:utils.serializeName(name.join('.')),valueUpdate:valueUpdate});return this;},initSwitcher:function(){if(this.switcherConfig.enabled){layout([this.switcherConfig]);}\nreturn this;},setInitialValue:function(){this.initialValue=this.getInitialValue();if(this.value.peek()!==this.initialValue){this.value(this.initialValue);}\nthis.on('value',this.onUpdate.bind(this));this.isUseDefault(this.disabled());return this;},_setClasses:function(){var additional=this.additionalClasses;if(_.isString(additional)){this.additionalClasses={};if(additional.trim().length){additional=additional.trim().split(' ');additional.forEach(function(name){if(name.length){this.additionalClasses[name]=true;}},this);}}\n_.extend(this.additionalClasses,{_required:this.required,_error:this.error,_warn:this.warn,_disabled:this.disabled});return this;},getInitialValue:function(){var values=[this.value(),this.default],value;values.some(function(v){if(v!==null&&v!==undefined){value=v;return true;}\nreturn false;});return this.normalizeData(value);},setVisible:function(isVisible){this.visible(isVisible);return this;},show:function(){this.visible(true);return this;},hide:function(){this.visible(false);return this;},disable:function(){this.disabled(true);return this;},enable:function(){this.disabled(false);return this;},setValidation:function(rule,options){var rules=utils.copy(this.validation),changed;if(_.isObject(rule)){_.extend(this.validation,rule);}else{this.validation[rule]=options;}\nchanged=!utils.compare(rules,this.validation).equal;if(changed){this.required(!!rules['required-entry']);this.validate();}\nreturn this;},getPreview:function(){return this.value();},hasAddons:function(){return this.addbefore||this.addafter;},hasService:function(){return this.service&&this.service.template;},hasChanged:function(){var notEqual=this.value()!==this.initialValue;return!this.visible()?false:notEqual;},hasData:function(){return!utils.isEmpty(this.value());},reset:function(){this.value(this.initialValue);this.error(false);return this;},overload:function(){this.setInitialValue();this.bubble('update',this.hasChanged());},clear:function(){this.value('');return this;},normalizeData:function(value){return utils.isEmpty(value)?'':value;},validate:function(){var value=this.value(),result=validator(this.validation,value,this.validationParams),message=!this.disabled()&&this.visible()?result.message:'',isValid=this.disabled()||!this.visible()||result.passed;this.error(message);this.error.valueHasMutated();this.bubble('error',message);if(this.source&&!isValid){this.source.set('params.invalid',true);}\nreturn{valid:isValid,target:this};},onUpdate:function(){this.bubble('update',this.hasChanged());this.validate();},restoreToDefault:function(){this.value(this.default);this.focused(true);},setDifferedFromDefault:function(){var value=typeof this.value()!='undefined'&&this.value()!==null?this.value():'',defaultValue=typeof this.default!='undefined'&&this.default!==null?this.default:'';this.isDifferedFromDefault(value!==defaultValue);},toggleUseDefault:function(state){this.disabled(state);if(this.source&&this.hasService()){this.source.set('data.use_default.'+this.index,Number(state));}},userChanges:function(){this.valueChangedByUser=true;},getDescriptionId:function(){var id=false;if(this.error()){id=this.errorId;}else if(this.notice()){id=this.noticeId;}\nreturn id;}});});","Magento_Ui/js/form/element/single-checkbox-toggle-notice.min.js":"define(['Magento_Ui/js/form/element/single-checkbox'],function(SingleCheckbox){'use strict';return SingleCheckbox.extend({defaults:{notices:[],tracks:{notice:true}},initialize:function(){this._super().chooseNotice();return this;},chooseNotice:function(){var checkedNoticeNumber=Number(this.checked());this.notice=this.notices[checkedNoticeNumber];},onUpdate:function(){this._super();this.chooseNotice();}});});","Magento_Ui/js/form/element/media.min.js":"define(['mageUtils','./abstract'],function(utils,Abstract){'use strict';return Abstract.extend({defaults:{links:{value:''}},initialize:function(){this._super().initFormId();return this;},initFormId:function(){var namespace;if(this.formId){return this;}\nnamespace=this.name.split('.');this.formId=namespace[0];return this;}});});","Magento_Ui/js/form/element/text.min.js":"define(['uiElement','mageUtils'],function(Element,utils){'use strict';return Element.extend({defaults:{visible:true,label:'',error:'',uid:utils.uniqueid(),disabled:false,links:{value:'${ $.provider }:${ $.dataScope }'}},hasService:function(){return false;},hasAddons:function(){return false;},initObservable:function(){this._super().observe('disabled visible value');return this;}});});","Magento_Ui/js/form/element/region.min.js":"define(['underscore','uiRegistry','./select','Magento_Checkout/js/model/default-post-code-resolver'],function(_,registry,Select,defaultPostCodeResolver){'use strict';return Select.extend({defaults:{skipValidation:false,imports:{countryOptions:'${ $.parentName }.country_id:indexedOptions',update:'${ $.parentName }.country_id:value'}},initialize:function(){var option;this._super();option=_.find(this.countryOptions,function(row){return row['is_default']===true;});this.hideRegion(option);return this;},update:function(value){var isRegionRequired,option;if(!value){return;}\noption=_.isObject(this.countryOptions)&&this.countryOptions[value];if(!option){return;}\nthis.hideRegion(option);defaultPostCodeResolver.setUseDefaultPostCode(!option['is_zipcode_optional']);isRegionRequired=!this.skipValidation&&!!option['is_region_required'];if(!isRegionRequired){this.error(false);}\nthis.required(isRegionRequired);this.validation['required-entry']=isRegionRequired;registry.get(this.customName,function(input){input.required(isRegionRequired);input.validation['required-entry']=isRegionRequired;input.validation['validate-not-number-first']=!this.options().length;}.bind(this));},hideRegion:function(option){if(!option||option['is_region_visible']!==false){return;}\nthis.setVisible(false);if(this.customEntry){this.toggleInput(false);}}});});","Magento_Ui/js/form/element/boolean.min.js":"define(['./abstract'],function(Abstract){'use strict';return Abstract.extend({defaults:{checked:false,links:{checked:'value'}},initObservable:function(){return this._super().observe('checked');},normalizeData:function(){return!!+this._super();},onUpdate:function(){if(this.hasUnique){this.setUnique();}\nreturn this._super();}});});","Magento_Ui/js/form/element/wysiwyg.min.js":"define(['wysiwygAdapter','Magento_Ui/js/lib/view/utils/async','underscore','ko','./abstract','mage/adminhtml/events','Magento_Variable/variables'],function(wysiwyg,$,_,ko,Abstract,varienGlobalEvents){'use strict';return Abstract.extend({currentWysiwyg:undefined,defaults:{elementSelector:'textarea',suffixRegExpPattern:'${ $.wysiwygUniqueSuffix }',$wysiwygEditorButton:'',links:{value:'${ $.provider }:${ $.dataScope }'},template:'ui/form/field',elementTmpl:'ui/form/element/wysiwyg',content:'',showSpinner:false,loading:false,listens:{disabled:'setDisabled'}},initialize:function(){this._super().initNodeListener();$.async({component:this,selector:'button'},function(element){this.$wysiwygEditorButton=this.$wysiwygEditorButton?this.$wysiwygEditorButton.add($(element)):$(element);}.bind(this));varienGlobalEvents.attachEventHandler('wysiwygEditorInitialized',function(){if(!_.isUndefined(window.tinyMceEditors)){this.currentWysiwyg=window.tinyMceEditors[this.wysiwygId];}\nif(this.disabled()){this.setDisabled(true);}}.bind(this));return this;},initConfig:function(config){var pattern=config.suffixRegExpPattern||this.constructor.defaults.suffixRegExpPattern;pattern=pattern.replace(/\\$/g,'\\\\$&');config.content=config.content.replace(new RegExp(pattern,'g'),this.getUniqueSuffix(config));this._super();return this;},getUniqueSuffix:function(config){return config.name.replace(/(\\.|-)/g,'_');},destroy:function(){this._super();wysiwyg.removeEvents(this.wysiwygId);},initObservable:function(){this._super().observe(['value','content']);return this;},initNodeListener:function(){$.async({component:this,selector:this.elementSelector},this.setElementNode.bind(this));return this;},setElementNode:function(node){$(node).bindings({value:this.value});},setDisabled:function(disabled){if(this.$wysiwygEditorButton&&disabled){this.$wysiwygEditorButton.prop('disabled','disabled');}else if(this.$wysiwygEditorButton){this.$wysiwygEditorButton.prop('disabled',false);}\nif(!_.isUndefined(this.currentWysiwyg)&&this.currentWysiwyg.activeEditor()){this.currentWysiwyg.setEnabledStatus(!disabled);this.currentWysiwyg.getPluginButtons().prop('disabled',disabled);}},getContentUnsanitizedHtml:function(){return this.content();}});});","Magento_Ui/js/form/element/image-uploader.min.js":"define(['jquery','underscore','mageUtils','Magento_Ui/js/modal/alert','Magento_Ui/js/lib/validation/validator','Magento_Ui/js/form/element/file-uploader','mage/adminhtml/browser'],function($,_,utils,uiAlert,validator,Element,browser){'use strict';return Element.extend({initialize:function(){this._super();$(window).on('fileDeleted.mediabrowser',this.onDeleteFile.bind(this));},initConfig:function(){var mediaGalleryUid=utils.uniqueid();this._super();_.extend(this,{mediaGalleryUid:mediaGalleryUid});return this;},addFileFromMediaGallery:function(imageUploader,e){var $buttonEl=$(e.target),fileSize=$buttonEl.data('size'),fileMimeType=$buttonEl.data('mime-type'),filePathname=$buttonEl.val(),fileBasename=filePathname.split('/').pop();this.addFile({type:fileMimeType,name:fileBasename,size:fileSize,url:filePathname});},openMediaBrowserDialog:function(imageUploader,e){var $buttonEl=$(e.target),openDialogUrl=this.mediaGallery.openDialogUrl+'target_element_id/'+$buttonEl.attr('id')+'/store/'+this.mediaGallery.storeId+'/type/image/?isAjax=true';if(this.mediaGallery.initialOpenSubpath){openDialogUrl+='&current_tree_path='+Base64.idEncode(this.mediaGallery.initialOpenSubpath);}\nbrowser.openDialog(openDialogUrl,null,null,this.mediaGallery.openDialogTitle,{targetElementId:$buttonEl.attr('id')});},onDeleteFile:function(e,data){var fileId=this.getFileId(),deletedFileIds=data.ids;if(fileId&&$.inArray(fileId,deletedFileIds)>-1){this.clear();}\nreturn this;},clear:function(){this.value([]);return this;},getFileId:function(){return this.hasData()?this.value()[0].id:null;},triggerImageUpload:function(imageUploader,e){$(e.target).closest('.file-uploader').find('input[type=\"file\"]').trigger('click');},getAllowedFileExtensionsInCommaDelimitedFormat:function(){var allowedExtensions=this.allowedExtensions.toUpperCase().split(' ');if(allowedExtensions.indexOf('JPG')!==-1&&allowedExtensions.indexOf('JPEG')!==-1){allowedExtensions.splice(allowedExtensions.indexOf('JPEG'),1);}\nreturn allowedExtensions.join(', ');}});});","Magento_Ui/js/form/element/select.min.js":"define(['underscore','mageUtils','uiRegistry','./abstract','uiLayout'],function(_,utils,registry,Abstract,layout){'use strict';var inputNode={parent:'${ $.$data.parentName }',component:'Magento_Ui/js/form/element/abstract',template:'${ $.$data.template }',provider:'${ $.$data.provider }',name:'${ $.$data.index }_input',dataScope:'${ $.$data.customEntry }',customScope:'${ $.$data.customScope }',sortOrder:{after:'${ $.$data.name }'},displayArea:'body',label:'${ $.$data.label }'};function parseOptions(nodes,captionValue){var caption,value;nodes=_.map(nodes,function(node){value=node.value;if(value===null||value===captionValue){if(_.isUndefined(caption)){caption=node.label;}}else{return node;}});return{options:_.compact(nodes),caption:_.isString(caption)?caption:false};}\nfunction findFirst(data){var value;data.some(function(node){value=node.value;if(Array.isArray(value)){value=findFirst(value);}\nreturn!_.isUndefined(value);});return value;}\nfunction indexOptions(data,result){var value;result=result||{};data.forEach(function(item){value=item.value;if(Array.isArray(value)){indexOptions(value,result);}else{result[value]=item;}});return result;}\nreturn Abstract.extend({defaults:{customName:'${ $.parentName }.${ $.index }_input',elementTmpl:'ui/form/element/select',caption:'',options:[]},initialize:function(){this._super();if(this.customEntry){registry.get(this.name,this.initInput.bind(this));}\nif(this.filterBy){this.initFilter();}\nreturn this;},initObservable:function(){this._super();this.initialOptions=this.options;this.observe('options caption').setOptions(this.options());return this;},initFilter:function(){var filter=this.filterBy;this.filter(this.default,filter.field);this.setLinks({filter:filter.target},'imports');return this;},initInput:function(){layout([utils.template(inputNode,this)]);return this;},normalizeData:function(){var value=this._super(),option;if(value!==''){option=this.getOption(value);return option&&option.value;}\nif(!this.caption()){return findFirst(this.options);}},filter:function(value,field){var source=this.initialOptions,result;field=field||this.filterBy.field;result=_.filter(source,function(item){return item[field]===value||item.value==='';});this.setOptions(result);},toggleInput:function(isVisible){registry.get(this.customName,function(input){input.setVisible(isVisible);});},setOptions:function(data){var captionValue=this.captionValue||'',result=parseOptions(data,captionValue),isVisible;this.indexedOptions=indexOptions(result.options);this.options(result.options);if(!this.caption()){this.caption(result.caption);}\nif(this.customEntry){isVisible=!!result.options.length;this.setVisible(isVisible);this.toggleInput(!isVisible);}\nreturn this;},getPreview:function(){var value=this.value(),option=this.indexedOptions[value],preview=option?option.label:'';this.preview(preview);return preview;},getOption:function(value){return this.indexedOptions[value];},clear:function(){var value=this.caption()?'':findFirst(this.options);this.value(value);return this;},setInitialValue:function(){if(_.isUndefined(this.value())&&!this.default){this.clear();}\nreturn this._super();}});});","Magento_Ui/js/form/element/multiselect.min.js":"define(['underscore','mageUtils','./select'],function(_,utils,Select){'use strict';return Select.extend({defaults:{size:5,elementTmpl:'ui/form/element/multiselect',listens:{value:'setDifferedFromDefault setPrepareToSendData'}},setInitialValue:function(){this._super();this.initialValue=utils.copy(this.initialValue);return this;},normalizeData:function(value){if(utils.isEmpty(value)){value=[];}\nreturn _.isString(value)?value.split(','):value;},setPrepareToSendData:function(data){if(_.isUndefined(data)||!data.length){data='';}\nthis.source.set(this.dataScope+'-prepared-for-send',data);},getInitialValue:function(){var values=[this.normalizeData(this.source.get(this.dataScope)),this.normalizeData(this.default)],value;values.some(function(v){return _.isArray(v)&&(value=utils.copy(v))&&!_.isEmpty(v);});return value;},hasChanged:function(){var value=this.value(),initial=this.initialValue;return!utils.equalArrays(value,initial);},reset:function(){this.value(utils.copy(this.initialValue));this.error(false);return this;},clear:function(){this.value([]);this.error(false);return this;}});});","Magento_Ui/js/form/element/date.min.js":"define(['moment','mageUtils','./abstract','moment-timezone-with-data'],function(moment,utils,Abstract){'use strict';return Abstract.extend({defaults:{options:{},storeTimeZone:'UTC',validationParams:{dateFormat:'${ $.outputDateFormat }'},inputDateFormat:'y-MM-dd',outputDateFormat:'MM/dd/y',pickerDateTimeFormat:'',pickerDefaultDateFormat:'MM/dd/y',pickerDefaultTimeFormat:'h:mm a',elementTmpl:'ui/form/element/date',timezoneFormat:'YYYY-MM-DD HH:mm',listens:{'value':'onValueChange','shiftedValue':'onShiftedValueChange'},shiftedValue:''},initConfig:function(){this._super();if(!this.options.dateFormat){this.options.dateFormat=this.pickerDefaultDateFormat;}\nif(!this.options.timeFormat){this.options.timeFormat=this.pickerDefaultTimeFormat;}\nthis.prepareDateTimeFormats();return this;},initObservable:function(){return this._super().observe(['shiftedValue']);},getPreview:function(){return this.shiftedValue();},onValueChange:function(value){var shiftedValue;if(value){if(this.options.showsTime&&!this.options.timeOnly){shiftedValue=moment.tz(value,'UTC').tz(this.storeTimeZone);}else{shiftedValue=moment(value,this.outputDateFormat,true);}\nif(!shiftedValue.isValid()){shiftedValue=moment(value,this.inputDateFormat);}\nshiftedValue=shiftedValue.format(this.pickerDateTimeFormat);}else{shiftedValue='';}\nif(shiftedValue!==this.shiftedValue()){this.shiftedValue(shiftedValue);}},onShiftedValueChange:function(shiftedValue){var value,formattedValue,momentValue;if(shiftedValue){momentValue=moment(shiftedValue,this.pickerDateTimeFormat);if(this.options.showsTime&&!this.options.timeOnly){formattedValue=moment(momentValue).format(this.timezoneFormat);value=moment.tz(formattedValue,this.storeTimeZone).tz('UTC').toISOString();}else{value=momentValue.format(this.outputDateFormat);}}else{value='';}\nif(value!==this.value()){this.value(value);}},prepareDateTimeFormats:function(){if(this.options.timeOnly){this.pickerDateTimeFormat=this.options.timeFormat;}else{this.pickerDateTimeFormat=this.options.dateFormat;if(this.options.showsTime){this.pickerDateTimeFormat+=' '+this.options.timeFormat;}}\nthis.pickerDateTimeFormat=utils.convertToMomentFormat(this.pickerDateTimeFormat);if(this.options.dateFormat){this.outputDateFormat=this.options.dateFormat;}\nthis.inputDateFormat=this.options.timeOnly?utils.convertToMomentFormat(this.pickerDefaultTimeFormat):utils.convertToMomentFormat(this.inputDateFormat);this.outputDateFormat=this.options.timeOnly?utils.convertToMomentFormat(this.options.timeFormat):utils.convertToMomentFormat(this.outputDateFormat);this.validationParams.dateFormat=this.outputDateFormat;}});});","Magento_Ui/js/form/element/textarea.min.js":"define(['./abstract'],function(Abstract){'use strict';return Abstract.extend({defaults:{cols:15,rows:2,elementTmpl:'ui/form/element/textarea'}});});","Magento_Ui/js/form/element/url-input.min.js":"define(['underscore','uiLayout','mage/translate','Magento_Ui/js/form/element/abstract'],function(_,layout,$t,Abstract){'use strict';return Abstract.extend({defaults:{linkedElement:{},settingTemplate:'ui/form/element/urlInput/setting',typeSelectorTemplate:'ui/form/element/urlInput/typeSelector',options:[],linkedElementInstances:{},isDisplayAdditionalSettings:true,settingValue:false,settingLabel:$t('Open in new tab'),tracks:{linkedElement:true},baseLinkSetting:{namePrefix:'${$.name}.',dataScopePrefix:'${$.dataScope}.',provider:'${$.provider}'},urlTypes:{},listens:{settingValue:'checked',disabled:'hideLinkedElement',linkType:'createChildUrlInputComponent'},links:{linkType:'${$.provider}:${$.dataScope}.type',settingValue:'${$.provider}:${$.dataScope}.setting'}},initConfig:function(config){var processedLinkTypes={},baseLinkType=this.constructor.defaults.baseLinkSetting;_.each(config.urlTypes,function(linkSettingsArray,linkName){linkSettingsArray.name=baseLinkType.namePrefix+linkName;linkSettingsArray.dataScope=baseLinkType.dataScopePrefix+linkName;linkSettingsArray.type=linkName;linkSettingsArray.disabled=config.disabled;linkSettingsArray.visible=config.visible;processedLinkTypes[linkName]={};_.extend(processedLinkTypes[linkName],baseLinkType,linkSettingsArray);});_.extend(this.constructor.defaults.urlTypes,processedLinkTypes);this._super();},initObservable:function(){this._super().observe('componentTemplate options value linkType settingValue checked isDisplayAdditionalSettings').setOptions();return this;},setOptions:function(){var result=[];_.each(this.urlTypes,function(option,key){result.push({value:key,label:option.label,sortOrder:option.sortOrder||0});});result.sort(function(a,b){return a.sortOrder>b.sortOrder?1:-1;});this.options(result);return this;},setPreview:function(visible){this.linkedElement().visible(visible);},hideLinkedElement:function(disabled){this.linkedElement().disabled(disabled);},destroy:function(){_.each(this.linkedElementInstances,function(value){value().destroy();});this._super();},createChildUrlInputComponent:function(value){var elementConfig;if(!_.isEmpty(value)&&_.isUndefined(this.linkedElementInstances[value])){elementConfig=this.urlTypes[value];layout([elementConfig]);this.linkedElementInstances[value]=this.requestModule(elementConfig.name);}\nthis.linkedElement=this.linkedElementInstances[value];},getLinkedElementName:function(){return this.linkedElement;},checkboxClick:function(){if(!this.disabled()){this.settingValue(!this.settingValue());}}});});","Magento_Ui/js/form/element/country.min.js":"define(['underscore','uiRegistry','./select'],function(_,registry,Select){'use strict';return Select.extend({defaults:{imports:{update:'${ $.parentName }.website_id:value'}},filter:function(value,field){var result,defaultCountry,defaultValue;if(!field){field=this.filterBy.field;}\nthis._super(value,field);result=_.filter(this.initialOptions,function(item){if(item[field]){return~item[field].indexOf(value);}\nreturn false;});this.setOptions(result);this.reset();if(!this.value()){defaultCountry=_.filter(result,function(item){return item['is_default']&&_.contains(item['is_default'],value);});if(defaultCountry.length){defaultValue=defaultCountry.shift();this.value(defaultValue.value);}}}});});","Magento_Ui/js/form/element/single-checkbox.min.js":"define(['Magento_Ui/js/form/element/abstract','underscore','mage/translate'],function(AbstractField,_,$t){'use strict';return AbstractField.extend({defaults:{template:'ui/form/components/single/field',checked:false,initialChecked:false,multiple:false,prefer:'checkbox',valueMap:{},templates:{radio:'ui/form/components/single/radio',checkbox:'ui/form/components/single/checkbox',toggle:'ui/form/components/single/switcher'},listens:{'checked':'onCheckedChanged','value':'onExtendedValueChanged'}},initConfig:function(config){this._super();if(!config.elementTmpl){if(!this.prefer&&!this.multiple){this.elementTmpl=this.templates.radio;}else if(this.prefer==='radio'){this.elementTmpl=this.templates.radio;}else if(this.prefer==='checkbox'){this.elementTmpl=this.templates.checkbox;}else if(this.prefer==='toggle'){this.elementTmpl=this.templates.toggle;}else{this.elementTmpl=this.templates.checkbox;}}\nif(this.prefer==='toggle'&&_.isEmpty(this.toggleLabels)){this.toggleLabels={'on':$t('Yes'),'off':$t('No')};}\nif(typeof this.default==='undefined'||this.default===null){this.default='';}\nif(typeof this.value==='undefined'||this.value===null){this.value=_.isEmpty(this.valueMap)||this.default!==''?this.default:this.valueMap.false;this.initialValue=this.value;}else{this.initialValue=this.value;}\nif(this.multiple&&!_.isArray(this.value)){this.value=[];}\nthis.initialChecked=this.checked;return this;},initObservable:function(){return this._super().observe('checked');},getReverseValueMap:function getReverseValueMap(value){var bool=false;_.some(this.valueMap,function(iValue,iBool){if(iValue===value){bool=iBool==='true';return true;}});return bool;},setInitialValue:function(){if(_.isEmpty(this.valueMap)){this.on('value',this.onUpdate.bind(this));}else{this._super();this.checked(this.getReverseValueMap(this.value()));}\nreturn this;},onExtendedValueChanged:function(newExportedValue){var isMappedUsed=!_.isEmpty(this.valueMap),oldChecked=this.checked.peek(),oldValue=this.initialValue,newChecked;if(this.multiple){newChecked=newExportedValue.indexOf(oldValue)!==-1;}else if(isMappedUsed){newChecked=this.getReverseValueMap(newExportedValue);}else if(typeof newExportedValue==='boolean'){newChecked=newExportedValue;}else{newChecked=newExportedValue===oldValue;}\nif(newChecked!==oldChecked){this.checked(newChecked);}},onCheckedChanged:function(newChecked){var isMappedUsed=!_.isEmpty(this.valueMap),oldValue=this.initialValue,newValue;if(isMappedUsed){newValue=this.valueMap[newChecked];}else{newValue=oldValue;}\nif(!this.multiple&&newChecked){this.value(newValue);}else if(!this.multiple&&!newChecked){if(typeof newValue==='boolean'){this.value(newChecked);}else if(newValue===this.value.peek()){this.value('');}\nif(isMappedUsed){this.value(newValue);}}else if(this.multiple&&newChecked&&this.value.indexOf(newValue)===-1){this.value.push(newValue);}else if(this.multiple&&!newChecked&&this.value.indexOf(newValue)!==-1){this.value.splice(this.value.indexOf(newValue),1);}},onUpdate:function(){if(this.hasUnique){this.setUnique();}\nreturn this._super();},reset:function(){if(this.multiple&&this.initialChecked){this.value.push(this.initialValue);}else if(this.multiple&&!this.initialChecked){this.value.splice(this.value.indexOf(this.initialValue),1);}else{this.value(this.initialValue);}\nthis.error(false);return this;},clear:function(){if(this.multiple){this.value([]);}else{this.value('');}\nthis.error(false);return this;}});});","Magento_Ui/js/form/element/color-picker-palette.min.js":"define([],function(){'use strict';return[['rgb(0,0,0)','rgb(52,52,52)','rgb(83,83,83)','rgb(135,135,135)','rgb(193,193,193)','rgb(234,234,234)','rgb(240,240,240)','rgb(255,255,255)'],['rgb(252,0,9)','rgb(253,135,10)','rgb(255,255,13)','rgb(35,255,9)','rgb(33,255,255)','rgb(0,0,254)','rgb(132,0,254)','rgb(251,0,255)'],['rgb(240,192,194)','rgb(251,223,194)','rgb(255,241,193)','rgb(210,230,201)','rgb(199,217,220)','rgb(197,219,240)','rgb(208,200,227)','rgb(229,199,212)'],['rgb(228,133,135)','rgb(246,193,139)','rgb(254,225,136)','rgb(168,208,152)','rgb(146,184,190)','rgb(143,184,227)','rgb(165,148,204)','rgb(202,147,175)'],['rgb(214,78,83)','rgb(243,163,88)','rgb(254,211,83)','rgb(130,187,106)','rgb(99,149,159)','rgb(93,150,211)','rgb(123,100,182)','rgb(180,100,142)'],['rgb(190,0,5)','rgb(222,126,44)','rgb(236,183,39)','rgb(89,155,61)','rgb(55,110,123)','rgb(49,112,185)','rgb(83,55,150)','rgb(147,55,101)'],['rgb(133,0,3)','rgb(163,74,10)','rgb(177,127,7)','rgb(45,101,23)','rgb(18,62,74)','rgb(14,62,129)','rgb(40,15,97)','rgb(95,16,55)'],['rgb(81,0,1)','rgb(100,48,7)','rgb(107,78,3)','rgb(31,63,16)','rgb(13,39,46)','rgb(10,40,79)','rgb(24,12,59)','rgb(59,10,36)']];});","Magento_Ui/js/core/app.min.js":"define(['./renderer/types','./renderer/layout','../lib/knockout/bootstrap'],function(types,layout){'use strict';return function(data,merge){types.set(data.types);layout(data.components,undefined,true,merge);};});","Magento_Ui/js/core/renderer/types.min.js":"define(['underscore','mageUtils'],function(_,utils){'use strict';var store={};function flatten(data){var extender=data.extends||[],result={};extender=utils.stringToArray(extender);extender.push(data);extender.forEach(function(item){if(_.isString(item)){item=store[item]||{};}\nutils.extend(result,item);});delete result.extends;return result;}\nreturn{set:function(types){types=types||{};utils.extend(store,types);_.each(types,function(data,type){store[type]=flatten(data);});},get:function(type){return store[type]||{};}};});","Magento_Ui/js/core/renderer/layout.min.js":"define(['underscore','jquery','mageUtils','uiRegistry','./types','../../lib/logger/console-logger'],function(_,$,utils,registry,types,consoleLogger){'use strict';var templates=registry.create(),layout={},cachedConfig={};function getNodeName(parent,node,name){var parentName=parent&&parent.name;if(typeof name!=='string'){name=node.name||name;}\nreturn utils.fullPath(parentName,name);}\nfunction getNodeType(parent,node){return node.type||parent&&parent.childType;}\nfunction getDataScope(parent,node){var dataScope=node.dataScope,parentScope=parent&&parent.dataScope;return!utils.isEmpty(parentScope)?!utils.isEmpty(dataScope)?parentScope+'.'+dataScope:parentScope:dataScope||'';}\nfunction loadDeps(node){var loaded=$.Deferred(),loggerUtils=consoleLogger.utils;if(node.deps){consoleLogger.utils.asyncLog(loaded,{data:{component:node.name,deps:node.deps},messages:loggerUtils.createMessages('depsStartRequesting','depsFinishRequesting','depsLoadingFail')});}\nregistry.get(node.deps,function(deps){node.provider=node.extendProvider?deps&&deps.name:node.provider;loaded.resolve(node);});return loaded.promise();}\nfunction loadSource(node){var loaded=$.Deferred(),source=node.component;consoleLogger.info('componentStartLoading',{component:node.component});require([source],function(constr){consoleLogger.info('componentFinishLoading',{component:node.component});loaded.resolve(node,constr);},function(){consoleLogger.error('componentLoadingFail',{component:node.component});});return loaded.promise();}\nfunction initComponent(node,Constr){var component=new Constr(_.omit(node,'children'));consoleLogger.info('componentStartInitialization',{component:node.component,componentName:node.name});registry.set(node.name,component);}\nfunction run(nodes,parent,cached,merge){if(_.isBoolean(merge)&&merge){layout.merge(nodes);return false;}\nif(cached){cachedConfig[_.keys(nodes)[0]]=JSON.parse(JSON.stringify(nodes));}\n_.each(nodes||[],layout.iterator.bind(layout,parent));}\n_.extend(layout,{iterator:function(parent,node){var action=_.isString(node)?this.addChild:this.process;action.apply(this,arguments);},process:function(parent,node,name){if(!parent&&node.parent){return this.waitParent(node,name);}\nif(node.nodeTemplate){return this.waitTemplate.apply(this,arguments);}\nnode=this.build.apply(this,arguments);if(!registry.has(node.name)){this.addChild(parent,node).manipulate(node).initComponent(node);}\nif(node){run(node.children,node);}\nreturn this;},build:function(parent,node,name){var defaults=parent&&parent.childDefaults||{},children=this.filterDisabledChildren(node.children),type=getNodeType(parent,node),dataScope=getDataScope(parent,node),component,extendDeps=true,nodeName;node.children=false;node.extendProvider=true;if(node.config&&node.config.provider||node.provider){node.extendProvider=false;}\nif(node.config&&node.config.deps||node.deps){extendDeps=false;}\nnode=utils.extend({},types.get(type),defaults,node);nodeName=getNodeName(parent,node,name);if(registry.has(nodeName)){component=registry.get(nodeName);component.children=children;return component;}\nif(extendDeps&&parent&&parent.deps&&type){node.deps=parent.deps;}\n_.extend(node,node.config||{},{index:node.name||name,name:nodeName,dataScope:dataScope,parentName:utils.getPart(nodeName,-2),parentScope:utils.getPart(dataScope,-2)});node.children=children;node.componentType=node.type;delete node.type;delete node.config;if(children){node.initChildCount=_.size(children);}\nif(node.isTemplate){node.isTemplate=false;templates.set(node.name,node);registry.get(node.parentName,function(parentComp){parentComp.childTemplate=node;});return false;}\nif(node.componentDisabled===true){return false;}\nreturn node;},filterDisabledChildren:function(children){var cIds;if(children&&typeof children==='object'){cIds=Object.keys(children);if(cIds){_.each(cIds,function(cId){if(typeof children[cId]==='object'&&children[cId].hasOwnProperty('config')&&typeof children[cId].config==='object'&&children[cId].config.hasOwnProperty('componentDisabled')&&children[cId].config.componentDisabled===true){delete children[cId];}});}}\nreturn children;},initComponent:function(node){if(!node.component){return this;}\nloadDeps(node).then(loadSource).done(initComponent);return this;}});_.extend(layout,{waitTemplate:function(parent,node){var args=_.toArray(arguments);templates.get(node.nodeTemplate,function(){this.applyTemplate.apply(this,args);}.bind(this));return this;},waitParent:function(node,name){var process=this.process.bind(this);registry.get(node.parent,function(parent){process(parent,node,name);});return this;},applyTemplate:function(parent,node,name){var template=templates.get(node.nodeTemplate);node=utils.extend({},template,node);delete node.nodeTemplate;this.process(parent,node,name);}});_.extend(layout,{manipulate:function(node){var name=node.name;if(node.appendTo){this.insert(name,node.appendTo,-1);}\nif(node.prependTo){this.insert(name,node.prependTo,0);}\nif(node.insertTo){this.insertTo(name,node.insertTo);}\nreturn this;},insert:function(item,target,position){registry.get(target,function(container){container.insertChild(item,position);});return this;},insertTo:function(item,targets){_.each(targets,function(info,target){this.insert(item,target,info.position);},this);return this;},addChild:function(parent,child){var name;if(parent&&parent.component){name=child.name||child;this.insert(name,parent.name,child.sortOrder);}\nreturn this;},merge:function(components){var cachedKey=_.keys(components)[0],compared=utils.compare(cachedConfig[cachedKey],components),remove=this.filterComponents(this.getByProperty(compared.changes,'type','remove'),true),update=this.getByProperty(compared.changes,'type','update'),dataSources=this.getDataSources(components),names,index,name,component;_.each(dataSources,function(val,key){name=key.replace(/\\.children|\\.config/g,'');component=registry.get(name);component.cacheData();component.updateConfig(true,this.getFullConfig(key,components),this.getFullConfig(key,cachedConfig[cachedKey]));},this);_.each(remove,function(val){component=registry.get(val.path);if(component){component.destroy();}});update=_.compact(_.filter(update,function(val){return!_.isEqual(val.oldValue,val.value);}));_.each(update,function(val){names=val.path.split('.');index=Math.max(_.lastIndexOf(names,'config'),_.lastIndexOf(names,'children')+2);name=_.without(names.splice(0,index),'children','config').join('.');component=registry.get(name);if(val.name==='sortOrder'&&component){registry.get(component.parentName).insertChild(component,val.value);}else if(component){component.updateConfig(val.oldValue,val.value,val.path);}},this);run(components,undefined,true);},getDataSources:function(config,parentPath){var dataSources={},key,obj;for(key in config){if(config.hasOwnProperty(key)){if(key==='type'&&config[key]==='dataSource'&&config.hasOwnProperty('config')){dataSources[parentPath+'.config']=config.config;}else if(_.isObject(config[key])){obj=this.getDataSources(config[key],utils.fullPath(parentPath,key));_.each(obj,function(value,path){dataSources[path]=value;});}}}\nreturn dataSources;},getFullConfig:function(path,config){var index;path=path.split('.');index=_.lastIndexOf(path,'config');if(!~index){return false;}\npath=path.splice(0,index);_.each(path,function(val){config=config[val];});return config.config;},getByProperty:function(data,prop,propValue){return _.filter(data,function(value){return value[prop]===propValue;});},filterComponents:function(data,splitPath,index,separator,keyName){var result=[],names,length;index=-2;separator='.'||separator;keyName='children'||keyName;_.each(data,function(val){names=val.path.split(separator);length=names.length;if(names[length+index]===keyName){val.path=splitPath?_.without(names,keyName).join(separator):val.path;result.push(val);}});return result;}});return run;});","Magento_Ui/js/grid/tree-massactions.min.js":"define(['ko','underscore','Magento_Ui/js/grid/massactions'],function(ko,_,Massactions){'use strict';return Massactions.extend({defaults:{template:'ui/grid/tree-massactions',submenuTemplate:'ui/grid/submenu',listens:{opened:'hideSubmenus'}},initObservable:function(){this._super().recursiveObserveActions(this.actions());return this;},recursiveObserveActions:function(actions,prefix){_.each(actions,function(action){if(prefix){action.type=prefix+'.'+action.type;}\nif(action.actions){action.visible=ko.observable(false);action.parent=actions;this.recursiveObserveActions(action.actions,action.type);}},this);return this;},applyAction:function(actionIndex){var action=this.getAction(actionIndex),visibility;if(action.visible){visibility=action.visible();this.hideSubmenus(action.parent);action.visible(!visibility);return this;}\nreturn this._super(actionIndex);},getAction:function(actionIndex,actions){var currentActions=actions||this.actions(),result=false;_.find(currentActions,function(action){if(action.type===actionIndex){result=action;return true;}\nif(action.actions){result=this.getAction(actionIndex,action.actions);return result;}},this);return result;},hideSubmenus:function(actions){var currentActions=actions||this.actions();_.each(currentActions,function(action){if(action.visible&&action.visible()){action.visible(false);}\nif(action.actions){this.hideSubmenus(action.actions);}},this);return this;}});});","Magento_Ui/js/grid/export.min.js":"define(['jquery','underscore','uiElement'],function($,_,Element){'use strict';return Element.extend({defaults:{template:'ui/grid/exportButton',selectProvider:'ns = ${ $.ns }, index = ids',checked:'',additionalParams:[],modules:{selections:'${ $.selectProvider }'}},initialize:function(){this._super().initChecked();},initConfig:function(){this._super();_.each(this.additionalParams,function(value,key){key='additionalParams.'+key;this.imports[key]=value;},this);return this;},initObservable:function(){this._super().observe('checked');return this;},initChecked:function(){if(!this.checked()){this.checked(this.options[0].value);}\nreturn this;},getParams:function(){var selections=this.selections(),data=selections?selections.getSelections():null,itemsType,result={};if(data){itemsType=data.excludeMode?'excluded':'selected';result.filters=data.params.filters;result.search=data.params.search;result.namespace=data.params.namespace;result[itemsType]=data[itemsType];_.each(this.additionalParams,function(param,key){result[key]=param;});if(!result[itemsType].length){result[itemsType]=false;}}\nreturn result;},getActiveOption:function(){return _.findWhere(this.options,{value:this.checked()});},buildOptionUrl:function(option){var params=this.getParams();if(!params){return'javascript:void(0);';}\nreturn option.url+'?'+$.param(params);},applyOption:function(){var option=this.getActiveOption(),url=this.buildOptionUrl(option);location.href=url;}});});","Magento_Ui/js/grid/massactions.min.js":"define(['underscore','uiRegistry','mageUtils','Magento_Ui/js/lib/collapsible','Magento_Ui/js/modal/confirm','Magento_Ui/js/modal/alert','mage/translate'],function(_,registry,utils,Collapsible,confirm,alert,$t){'use strict';return Collapsible.extend({defaults:{template:'ui/grid/actions',stickyTmpl:'ui/grid/sticky/actions',selectProvider:'ns = ${ $.ns }, index = ids',actions:[],noItemsMsg:$t('You haven\\'t selected any items!'),modules:{selections:'${ $.selectProvider }'}},initObservable:function(){this._super().observe('actions');return this;},applyAction:function(actionIndex){var data=this.getSelections(),action,callback;if(!data.total){alert({content:this.noItemsMsg});return this;}\naction=this.getAction(actionIndex);callback=this._getCallback(action,data);action.confirm?this._confirm(action,callback):callback();return this;},getSelections:function(){var provider=this.selections(),selections=provider&&provider.getSelections();return selections;},getAction:function(actionIndex){return _.findWhere(this.actions(),{type:actionIndex});},addAction:function(action){var actions=this.actions(),index=_.findIndex(actions,{type:action.type});~index?actions[index]=action:actions.push(action);this.actions(actions);return this;},_getCallback:function(action,selections){var callback=action.callback,args=[action,selections];if(utils.isObject(callback)){args.unshift(callback.target);callback=registry.async(callback.provider);}else if(typeof callback!='function'){callback=this.defaultCallback.bind(this);}\nreturn function(){callback.apply(null,args);};},defaultCallback:function(action,data){var itemsType=data.excludeMode?'excluded':'selected',selections={};selections[itemsType]=data[itemsType];if(!selections[itemsType].length){selections[itemsType]=false;}\n_.extend(selections,data.params||{});utils.submit({url:action.url,data:selections});},_confirm:function(action,callback){var confirmData=action.confirm,data=this.getSelections(),total=data.total?data.total:0,confirmMessage=confirmData.message+(data.showTotalRecords||data.showTotalRecords===undefined?' ('+total+' record'+(total>1?'s':'')+')':'');confirm({title:confirmData.title,content:confirmMessage,actions:{confirm:callback}});}});});","Magento_Ui/js/grid/masonry.min.js":"define(['Magento_Ui/js/grid/listing','Magento_Ui/js/lib/view/utils/raf','jquery','ko','underscore'],function(Listing,raf,$,ko,_){'use strict';return Listing.extend({defaults:{template:'ui/grid/masonry',imports:{rows:'${ $.provider }:data.items',errorMessage:'${ $.provider }:data.errorMessage'},listens:{rows:'initComponent'},containerId:null,minRatio:null,containerWidth:window.innerWidth,imageMargin:20,maxImageHeight:240,containerWidthToMinRatio:{640:3,1280:5,1920:8},defaultMinRatio:10,refreshFPS:60},initObservable:function(){this._super().observe(['rows','errorMessage']);return this;},initComponent:function(rows){if(!rows.length){return;}\nthis.imageMargin=parseInt(this.imageMargin,10);this.container=$('[data-id=\"'+this.containerId+'\"]')[0];this.setLayoutStyles();this.setEventListener();return this;},setEventListener:function(){window.addEventListener('resize',function(){this.updateStyles();}.bind(this));},updateStyles:function(){raf(function(){this.containerWidth=window.innerWidth;this.setLayoutStyles();}.bind(this),this.refreshFPS);},setLayoutStyles:function(){var containerWidth=parseInt(this.container.clientWidth,10),rowImages=[],ratio=0,rowHeight=0,calcHeight=0,isLastRow=false,rowNumber=1;this.setMinRatio();this.rows().forEach(function(image,index){ratio+=parseFloat((image.width / image.height).toFixed(2));rowImages.push(image);if(ratio<this.minRatio&&index+1!==this.rows().length){return;}\nratio=Math.max(ratio,this.minRatio);calcHeight=(containerWidth-this.imageMargin*rowImages.length)/ ratio;rowHeight=calcHeight<this.maxImageHeight?calcHeight:this.maxImageHeight;isLastRow=index+1===this.rows().length;this.assignImagesToRow(rowImages,rowNumber,rowHeight,isLastRow);rowImages=[];ratio=0;rowNumber++;}.bind(this));},assignImagesToRow:function(images,rowNumber,rowHeight,isLastRow){var imageWidth;images.forEach(function(img){imageWidth=rowHeight*(img.width / img.height).toFixed(2);this.setImageStyles(img,imageWidth,rowHeight);this.setImageClass(img,{bottom:isLastRow});img.rowNumber=rowNumber;}.bind(this));images[0].firstInRow=true;images[images.length-1].lastInRow=true;},waitForContainer:function(callback){if(typeof this.container==='undefined'){setTimeout(function(){this.waitForContainer(callback);}.bind(this),500);}else{setTimeout(callback,0);}},setLayoutStylesWhenLoaded:function(){this.waitForContainer(function(){this.setLayoutStyles();}.bind(this));},setImageStyles:function(img,width,height){if(!img.styles){img.styles=ko.observable();}\nimg.styles({width:parseInt(width,10)+'px',height:parseInt(height,10)+'px'});},setImageClass:function(image,classes){if(!image.css){image.css=ko.observable(classes);}\nimage.css(classes);},setMinRatio:function(){var minRatio=_.find(this.containerWidthToMinRatio,function(ratio,width){return this.containerWidth<=width;},this);this.minRatio=minRatio?minRatio:this.defaultMinRatio;},hasData:function(){return!!this.rows()&&!!this.rows().length;},getErrorMessageUnsanitizedHtml:function(){return this.errorMessage();}});});","Magento_Ui/js/grid/toolbar.min.js":"define(['underscore','Magento_Ui/js/lib/view/utils/async','Magento_Ui/js/lib/view/utils/raf','rjsResolver','uiCollection'],function(_,$,raf,resolver,Collection){'use strict';var transformProp;transformProp=(function(){var style=document.documentElement.style,base='Transform',vendors=['webkit','moz','ms','o'],vi=vendors.length,property;if(typeof style.transform!='undefined'){return'transform';}\nwhile(vi--){property=vendors[vi]+base;if(typeof style[property]!='undefined'){return property;}}})();function locate(elem,x,y){var value='translate('+x+'px,'+y+'px)';elem.style[transformProp]=value;}\nreturn Collection.extend({defaults:{template:'ui/grid/toolbar',stickyTmpl:'ui/grid/sticky/sticky',tableSelector:'table',columnsProvider:'ns = ${ $.ns }, componentType = columns',refreshFPS:15,sticky:false,visible:false,_resized:true,_scrolled:true,_tableScrolled:true,_requiredNodes:{'$stickyToolbar':true,'$stickyTable':true,'$table':true,'$sticky':true},stickyClass:{'sticky-header':true}},initialize:function(){this._super();if(this.sticky){this.waitDOMElements().then(this.run.bind(this));}\nreturn this;},waitDOMElements:function(){var _domPromise=$.Deferred();_.bindAll(this,'setStickyTable','setTableNode');$.async({ctx:':not([data-role=\"sticky-el-root\"])',component:this.columnsProvider,selector:this.tableSelector},this.setTableNode);$.async({ctx:'[data-role=\"sticky-el-root\"]',component:this.columnsProvider,selector:this.tableSelector},this.setStickyTable);this._domPromise=_domPromise;return _domPromise.promise();},setLeftCap:function(node){this.$leftCap=node;},setRightCap:function(node){this.$rightCap=node;},setTableNode:function(node){this.$cols=node.tHead.children[0].cells;this.$tableContainer=node.parentNode;this.setNode('$table',node);},setStickyTable:function(node){this.$stickyCols=node.tHead.children[0].cells;this.setNode('$stickyTable',node);},setStickyToolbarNode:function(node){this.setNode('$stickyToolbar',node);},setStickyNode:function(node){this.setNode('$sticky',node);},setToolbarNode:function(node){this.$toolbar=node;},setNode:function(key,node){var nodes=this._requiredNodes,promise=this._domPromise,defined;this[key]=node;defined=_.every(nodes,function(enabled,name){return enabled?this[name]:true;},this);if(defined){resolver(promise.resolve,promise);}},run:function(){_.bindAll(this,'refresh','_onWindowResize','_onWindowScroll','_onTableScroll');$(window).on({scroll:this._onWindowScroll,resize:this._onWindowResize});$(this.$tableContainer).on('scroll',this._onTableScroll);this.refresh();this.checkTableWidth();},refresh:function(){if(!raf(this.refresh,this.refreshFPS)){return;}\nif(this._scrolled){this.onWindowScroll();}\nif(this._tableScrolled){this.onTableScroll();}\nif(this._resized){this.onWindowResize();}\nif(this.visible){this.checkTableWidth();}},show:function(){this.visible=true;if($('.page-main-actions').length===0){this.$sticky.style.top=0;}\nthis.$sticky.style.display='';this.$toolbar.style.visibility='hidden';return this;},hide:function(){this.visible=false;this.$sticky.style.display='none';this.$toolbar.style.visibility='';return this;},isCovered:function(){var stickyTop=this._stickyTableTop+this._wScrollTop;return stickyTop>this._tableTop;},updateStickyTableOffset:function(){var style,top;if(this.visible){top=this.$stickyTable.getBoundingClientRect().top;}else{style=this.$sticky.style;style.visibility='hidden';style.display='';top=this.$stickyTable.getBoundingClientRect().top;style.display='none';style.visibility='';}\nthis._stickyTableTop=top;return this;},updateTableOffset:function(){var box=this.$table.getBoundingClientRect(),top=box.top+this._wScrollTop;if(this._tableTop!==top){this._tableTop=top;this.onTableTopChange(top);}\nreturn this;},checkTableWidth:function(){var cols=this.$cols,total=cols.length,rightBorder=cols[total-2].offsetLeft,tableWidth=this.$table.offsetWidth;if(this._tableWidth!==tableWidth){this._tableWidth=tableWidth;this.onTableWidthChange(tableWidth);}\nif(this._rightBorder!==rightBorder){this._rightBorder=rightBorder;this.onColumnsWidthChange();}\nreturn this;},updateTableWidth:function(){this.$stickyTable.style.width=this._tableWidth+'px';if(this._tableWidth<this._toolbarWidth){this.checkToolbarSize();}\nreturn this;},updateColumnsWidth:function(){var cols=this.$cols,index=cols.length,stickyCols=this.$stickyCols;while(index--){stickyCols[index].width=cols[index].offsetWidth;}\nreturn this;},checkToolbarSize:function(){var width=this.$tableContainer.offsetWidth;if(this._toolbarWidth!==width){this._toolbarWidth=width;this.onToolbarWidthChange(width);}\nreturn this;},updateVisibility:function(){if(this.visible!==this.isCovered()){this.visible?this.hide():this.show();}\nreturn this;},updateLeftCap:function(){locate(this.$leftCap,-this._wScrollLeft,0);return this;},updateRightCap:function(){var left=this._toolbarWidth-this._wScrollLeft;locate(this.$rightCap,left,0);return this;},updateTableScroll:function(){var container=this.$tableContainer,left=container.scrollLeft+this._wScrollLeft;locate(this.$stickyTable,-left,0);return this;},updateToolbarWidth:function(){this.$stickyToolbar.style.width=this._toolbarWidth+'px';return this;},onToolbarWidthChange:function(){this.updateToolbarWidth().updateRightCap();},onTableTopChange:function(){this.updateStickyTableOffset();},onTableWidthChange:function(){this.updateTableWidth();},onColumnsWidthChange:function(){this.updateColumnsWidth();},onWindowResize:function(){this.checkToolbarSize();this._resized=false;},onTableScroll:function(){this.updateTableScroll();this._tableScrolled=false;},onWindowScroll:function(){var scrollTop=window.pageYOffset,scrollLeft=window.pageXOffset;if(this._wScrollTop!==scrollTop){this._wScrollTop=scrollTop;this.onWindowScrollTop(scrollTop);}\nif(this._wScrollLeft!==scrollLeft){this._wScrollLeft=scrollLeft;this.onWindowScrollLeft(scrollLeft);}\nthis._scrolled=false;},onWindowScrollTop:function(){this.updateTableOffset().updateVisibility();},onWindowScrollLeft:function(){this.updateRightCap().updateLeftCap().updateTableScroll();},_onWindowScroll:function(){this._scrolled=true;},_onWindowResize:function(){this._resized=true;},_onTableScroll:function(){this._tableScrolled=true;}});});","Magento_Ui/js/grid/listing.min.js":"define(['ko','underscore','Magento_Ui/js/lib/spinner','rjsResolver','uiLayout','uiCollection'],function(ko,_,loader,resolver,layout,Collection){'use strict';return Collection.extend({defaults:{template:'ui/grid/listing',listTemplate:'ui/list/listing',stickyTmpl:'ui/grid/sticky/listing',viewSwitcherTmpl:'ui/grid/view-switcher',positions:false,displayMode:'grid',displayModes:{grid:{value:'grid',label:'Grid',template:'${ $.template }'},list:{value:'list',label:'List',template:'${ $.listTemplate }'}},dndConfig:{name:'${ $.name }_dnd',component:'Magento_Ui/js/grid/dnd',columnsProvider:'${ $.name }',enabled:true},editorConfig:{name:'${ $.name }_editor',component:'Magento_Ui/js/grid/editing/editor',columnsProvider:'${ $.name }',dataProvider:'${ $.provider }',enabled:false},resizeConfig:{name:'${ $.name }_resize',columnsProvider:'${ $.name }',component:'Magento_Ui/js/grid/resize',enabled:false},imports:{rows:'${ $.provider }:data.items'},listens:{elems:'updatePositions updateVisible','${ $.provider }:reload':'onBeforeReload','${ $.provider }:reloaded':'onDataReloaded'},modules:{dnd:'${ $.dndConfig.name }',resize:'${ $.resizeConfig.name }'},tracks:{displayMode:true},statefull:{displayMode:true}},initialize:function(){_.bindAll(this,'updateVisible');this._super().initDnd().initEditor().initResize();return this;},initObservable:function(){this._super().track({rows:[],visibleColumns:[]});return this;},initDnd:function(){if(this.dndConfig.enabled){layout([this.dndConfig]);}\nreturn this;},initResize:function(){if(this.resizeConfig.enabled){layout([this.resizeConfig]);}\nreturn this;},initEditor:function(){if(this.editorConfig.enabled){layout([this.editorConfig]);}\nreturn this;},initElement:function(element){var currentCount=this.elems().length,totalCount=this.initChildCount;if(totalCount===currentCount){this.initPositions();}\nelement.on('visible',this.updateVisible);return this._super();},initPositions:function(){this.on('positions',this.applyPositions.bind(this));this.setStatefull('positions');return this;},updatePositions:function(){var positions={};this.elems.each(function(elem,index){positions[elem.index]=index;});this.set('positions',positions);return this;},applyPositions:function(positions){var sorting;sorting=this.elems.map(function(elem){return{elem:elem,position:positions[elem.index]};});this.insertChild(sorting);return this;},getVisible:function(){var observable=ko.getObservable(this,'visibleColumns');return observable||this.visibleColumns;},getTemplate:function(){var mode=this.displayModes[this.displayMode];return mode.template;},getDisplayModes:function(){var modes=this.displayModes;return _.values(modes);},setDisplayMode:function(index){this.displayMode=index;return this;},countVisible:function(){return this.visibleColumns.length;},updateVisible:function(){this.visibleColumns=this.elems.filter('visible');return this;},hasData:function(){return!!this.rows&&!!this.rows.length;},hideLoader:function(){loader.get(this.name).hide();},showLoader:function(){loader.get(this.name).show();},onBeforeReload:function(){this.showLoader();},onDataReloaded:function(){resolver(this.hideLoader,this);}});});","Magento_Ui/js/grid/dnd.min.js":"define(['ko','Magento_Ui/js/lib/view/utils/async','underscore','uiRegistry','uiClass'],function(ko,$,_,registry,Class){'use strict';var isTouchDevice=typeof document.ontouchstart!=='undefined',transformProp;transformProp=(function(){var style=document.body.style,base='Transform',vendors=['webkit','moz','ms','o'],vi=vendors.length,property;if(typeof style.transform!='undefined'){return'transform';}\nwhile(vi--){property=vendors[vi]+base;if(typeof style[property]!='undefined'){return property;}}})();function getTouch(e){return e.touches?e.touches[0]:e;}\nfunction locate(elem,x,y){var value='translate('+x+'px,'+y+'px)';elem.style[transformProp]=value;}\nfunction isInside(x,y,area){return(area&&x>=area.left&&x<=area.right&&y>=area.top&&y<=area.bottom);}\nfunction distance(x1,y1,x2,y2){var dx=x2-x1,dy=y2-y1;dx*=dx;dy*=dy;return Math.sqrt(dx+dy);}\nfunction getModel(elem){return ko.dataFor(elem);}\nfunction compareCols(c1,c2){return c1.cellIndex===c2.cellIndex;}\nreturn Class.extend({defaults:{rootSelector:'${ $.columnsProvider }:.admin__data-grid-wrap',tableSelector:'${ $.rootSelector } -> table.data-grid',mainTableSelector:'[data-role=\"grid\"]',columnSelector:'${ $.tableSelector } thead tr th',noSelectClass:'_no-select',hiddenClass:'_hidden',fixedX:false,fixedY:true,minDistance:2,columns:[]},initialize:function(){_.bindAll(this,'initTable','initColumn','removeColumn','onMouseMove','onMouseUp','onMouseDown');this.$body=$('body');this._super().initListeners();$.async(this.tableSelector,this.initTable);$.async(this.columnSelector,this.initColumn);return this;},initListeners:function(){if(isTouchDevice){$(document).on({touchmove:this.onMouseMove,touchend:this.onMouseUp,touchleave:this.onMouseUp});}else{$(document).on({mousemove:this.onMouseMove,mouseup:this.onMouseUp});}\nreturn this;},initTable:function(table){this.table=$(table).is(this.mainTableSelector)?table:this.table;$(table).addClass('data-grid-draggable');return this;},initColumn:function(column){var model=getModel(column),eventName;if(!model||!model.draggable){return this;}\nif(!ko.es5.isTracked(model,'dragover')){model.track('dragover');}\nthis.columns.push(column);$(column).bindings({css:{'_dragover-left':ko.computed(function(){return model.dragover==='right';}),'_dragover-right':ko.computed(function(){return model.dragover==='left';})}});eventName=isTouchDevice?'touchstart':'mousedown';$(column).on(eventName,this.onMouseDown);$.async.remove(column,this.removeColumn);return this;},removeColumn:function(column){var columns=this.columns,index=columns.indexOf(column);if(~index){columns.splice(index,1);}\nreturn this;},_getColumnIndex:function(elem){return _.toArray(elem.parentNode.cells).indexOf(elem);},_cacheCoords:function(){var container=this.table.getBoundingClientRect(),bodyRect=document.body.getBoundingClientRect(),grabbed=this.grabbed,dragElem=grabbed.elem,cells=_.toArray(dragElem.parentNode.cells),rect;this.coords=this.columns.map(function(column){var data,colIndex=_.findIndex(cells,function(cell){return compareCols(cell,column);});rect=column.getBoundingClientRect();data={index:colIndex,target:column,orig:rect,left:rect.left-bodyRect.left,right:rect.right-bodyRect.left,top:rect.top-bodyRect.top,bottom:container.bottom-bodyRect.top};if(column===dragElem){this.dragArea=data;grabbed.shiftX=rect.left-grabbed.x;grabbed.shiftY=rect.top-grabbed.y;}\nreturn data;},this);return this;},_cloneTable:function(elem){var clone=this.table.cloneNode(true),columnIndex=this._getColumnIndex(elem),headRow=clone.tHead.firstElementChild,headCells=_.toArray(headRow.cells),tableBody=clone.tBodies[0],bodyRows=_.toArray(tableBody.children),origTrs=this.table.tBodies[0].children;clone.style.width=elem.offsetWidth+'px';headCells.forEach(function(th,index){if(index!==columnIndex){headRow.removeChild(th);}});headRow.cells[0].style.height=elem.offsetHeight+'px';bodyRows.forEach(function(row,rowIndex){var cells=row.cells,cell;if(cells.length!==headCells.length){tableBody.removeChild(row);return;}\ncell=row.cells[columnIndex].cloneNode(true);while(row.firstElementChild){row.removeChild(row.firstElementChild);}\ncell.style.height=origTrs[rowIndex].cells[columnIndex].offsetHeight+'px';row.appendChild(cell);});this.dragTable=clone;$(clone).addClass('_dragging-copy').appendTo('body');return this;},_getDropArea:function(x,y){return _.find(this.coords,function(area){return isInside(x,y,area);});},_updateAreas:function(x,y){var leavedArea=this.dropArea,area=this.dropArea=this._getDropArea(x,y);if(leavedArea){this.dragleave(leavedArea);}\nif(area&&!compareCols(area.target,this.dragArea.target)){this.dragenter(area);}},grab:function(x,y,elem){this.initDrag=true;this.grabbed={x:x,y:y,elem:elem};this.$body.addClass(this.noSelectClass);},dragstart:function(elem){this.initDrag=false;this.dropArea=false;this.dragging=true;getModel(elem).dragging(true);this._cacheCoords()._cloneTable(elem);},drag:function(x,y){var grabbed=this.grabbed,dragArea=this.dragArea,posX=x+grabbed.shiftX,posY=y+grabbed.shiftY;if(this.fixedX){x=dragArea.left;posX=dragArea.orig.left;}\nif(this.fixedY){y=dragArea.top;posY=dragArea.orig.top;}\nlocate(this.dragTable,posX,posY);if(!isInside(x,y,this.dropArea)){this._updateAreas(x,y);}},dragenter:function(dropArea){var direction=this.dragArea.index<dropArea.index?'left':'right';getModel(dropArea.target).dragover=direction;},dragleave:function(dropArea){getModel(dropArea.target).dragover=false;},dragend:function(dragArea){var dropArea=this.dropArea,dragElem=dragArea.target;this.dragging=false;document.body.removeChild(this.dragTable);getModel(dragElem).dragging(false);if(dropArea&&!compareCols(dropArea.target,dragElem)){this.drop(dropArea,dragArea);}},drop:function(dropArea,dragArea){var dropModel=getModel(dropArea.target),dragModel=getModel(dragArea.target);getModel(this.table).insertChild(dragModel,dropModel);dropModel.dragover=false;},onMouseMove:function(e){var grab=this.grabbed,touch=getTouch(e),x=touch.pageX,y=touch.pageY;if(this.initDrag||this.dragging){e.preventDefault();}\nif(this.initDrag&&distance(x,y,grab.x,grab.y)>=this.minDistance){this.dragstart(grab.elem);}\nif(this.dragging){this.drag(x,y);}},onMouseUp:function(){if(this.initDrag||this.dragging){this.initDrag=false;this.$body.removeClass(this.noSelectClass);}\nif(this.dragging){this.dragend(this.dragArea);}},onMouseDown:function(e){var touch=getTouch(e);this.grab(touch.pageX,touch.pageY,e.currentTarget);}});});","Magento_Ui/js/grid/resize.min.js":"define(['Magento_Ui/js/lib/view/utils/async','ko','underscore','mageUtils','uiRegistry','Magento_Ui/js/lib/knockout/extender/bound-nodes','uiElement'],function($,ko,_,utils,registry,boundedNodes,Element){'use strict';return Element.extend({defaults:{rootSelector:'${ $.columnsProvider }:.admin__data-grid-wrap',tableSelector:'${ $.rootSelector } -> table.data-grid',mainTableSelector:'[data-role=\"grid\"]',columnSelector:'${ $.tableSelector } thead tr th',fieldSelector:'${ $.tableSelector } tbody tr td',imports:{storageColumnsData:'${ $.storageConfig.path }.storageColumnsData'},storageColumnsData:{},columnsElements:{},tableWidth:0,sumColumnsWidth:0,showLines:4,resizableElementClass:'shadow-div',resizingColumnClass:'_resizing',fixedLayoutClass:'_layout-fixed',inResizeClass:'_in-resize',visibleClass:'_resize-visible',cellContentElement:'div.data-grid-cell-content',minColumnWidth:40,layoutFixedPolyfillIterator:0,windowResize:false,resizable:false,resizeConfig:{maxRowsHeight:[],curResizeElem:{},depResizeElem:{},previousWidth:null}},initialize:function(){_.bindAll(this,'initTable','initColumn','mousedownHandler','mousemoveHandler','mouseupHandler','refreshLastColumn','refreshMaxRowHeight','preprocessingWidth','_eventProxy','checkAfterResize');this._super();this.observe(['maxRowsHeight']);this.maxRowsHeight([]);$.async(this.tableSelector,this.initTable);$.async(this.columnSelector,this.initColumn);return this;},initTable:function(table){if($(table).is(this.mainTableSelector)){this.table=table;this.tableWidth=$(table).outerWidth();$(window).on('resize',this.checkAfterResize);}\nif(navigator.userAgent.search(/Firefox/)>-1){this._layoutFixedPolyfill();}\n$(table).addClass(this.fixedLayoutClass);return this;},checkAfterResize:function(){var tableWidth,self=this;setTimeout(function(){tableWidth=$(self.table).outerWidth();if(self.tableWidth!==tableWidth){self.tableWidth=tableWidth;}else{self.preprocessingWidth();}},300);},checkSumColumnsWidth:function(){var table=$(this.table),elems=table.find('th:not([style*=\"width: auto\"]):visible'),elemsWidthMin=table.find('th[style*=\"width: '+(this.minColumnWidth-1)+'px\"]:visible'),elemsWidthAuto=table.find('th[style*=\"width: auto\"]:visible'),model;this.sumColumnsWidth=0;_.each(elems,function(elem){model=ko.dataFor(elem);model.width&&model.width!=='auto'?this.sumColumnsWidth+=model.width:false;},this);if(this.sumColumnsWidth+elemsWidthAuto.length*this.minColumnWidth+elemsWidthMin.length*this.minColumnWidth>this.tableWidth){return true;}\nreturn false;},setWidthToColumnsWidthAuto:function(){var elemsWidthAuto=$(this.table).find('th[style*=\"width: auto\"]:visible');_.each(elemsWidthAuto,function(elem){$(elem).outerWidth(this.minColumnWidth-1);},this);},hasMinimal:function(){var table=$(this.table),elemsWidthMin=table.find('th[style*=\"width: '+(this.minColumnWidth-1)+'px\"]:visible'),elemsWidthAuto=table.find('th[style*=\"width: auto\"]:visible');if(elemsWidthAuto&&this.sumColumnsWidth+elemsWidthAuto.length*this.minColumnWidth+elemsWidthMin.length*this.minColumnWidth+5<this.tableWidth){return true;}\nreturn false;},setAuto:function(){var elemsWidthAuto=$(this.table).find('th[style*=\"width: '+(this.minColumnWidth-1)+'px\"]:visible');_.each(elemsWidthAuto,function(elem){$(elem).outerWidth('auto');},this);},preprocessingWidth:function(){if(this.checkSumColumnsWidth()){this.setWidthToColumnsWidthAuto();}else if(this.hasMinimal()){this.setAuto();}},initColumn:function(column){var model=ko.dataFor(column),ctxIndex=this.getCtxIndex(ko.contextFor(column));model.width=this.getDefaultWidth(column);if(!this.hasColumn(model,ctxIndex,false)){this.columnsElements[model.index]=this.columnsElements[model.index]||{};this.columnsElements[model.index][ctxIndex]=column;this.initResizableElement(column);this.setStopPropagationHandler(column);$(column).outerWidth(model.width);}\nthis.refreshLastColumn(column);this.preprocessingWidth();model.on('visible',this.refreshLastColumn.bind(this,column));model.on('visible',this.preprocessingWidth.bind(this));},_layoutFixedPolyfill:function(){var self=this;setTimeout(function(){if(self.layoutFixedPolyfillIterator<20){$(window).trigger('resize');self.layoutFixedPolyfillIterator++;self._layoutFixedPolyfill();}else{return false;}},500);},initResizableElement:function(column){var model=ko.dataFor(column),templateDragElement='<div class=\"'+this.resizableElementClass+'\"></div>';if(_.isUndefined(model.resizeEnabled)||model.resizeEnabled){$(column).append(templateDragElement);return true;}\nreturn false;},setStopPropagationHandler:function(column){var events,click,mousedown;$(column).on('click',this._eventProxy);$(column).on('mousedown',this._eventProxy);events=$._data(column,'events');click=events.click;mousedown=events.mousedown;click.unshift(click.pop());mousedown.unshift(mousedown.pop());return this;},_eventProxy:function(event){if($(event.target).is('.'+this.resizableElementClass)){if(event.type==='click'){event.stopImmediatePropagation();}else if(event.type==='mousedown'){this.mousedownHandler(event);}}},refreshLastColumn:function(column){var i=0,columns=$(column).parent().children().not(':hidden'),length=columns.length;$('.'+this.visibleClass).removeClass(this.visibleClass);$(column).parent().children().not(':hidden').last().addClass(this.visibleClass);for(i;i<length;i++){if(!columns.eq(i).find('.'+this.resizableElementClass).length&&i){columns.eq(i-1).addClass(this.visibleClass);}}},refreshMaxRowHeight:function(elem){var rowsH=this.maxRowsHeight(),curEL=$(elem).find('div'),height,obj=this.hasRow($(elem).parent()[0],true);curEL.css('white-space','nowrap');height=curEL.height()*this.showLines;curEL.css('white-space','normal');if(obj){if(obj.maxHeight<height){rowsH[_.indexOf(rowsH,obj)].maxHeight=height;}else{return false;}}else{rowsH.push({elem:$(elem).parent()[0],maxHeight:height});}\n$(elem).parent().children().find(this.cellContentElement).css('max-height',height+'px');this.maxRowsHeight(rowsH);},_setResizeClass:function(){var rowElements=$(this.table).find('tr');rowElements.find('td:eq('+this.resizeConfig.curResizeElem.ctx.$index()+')').addClass(this.resizingColumnClass);rowElements.find('td:eq('+this.resizeConfig.depResizeElem.ctx.$index()+')').addClass(this.resizingColumnClass);},_removeResizeClass:function(){var rowElements=$(this.table).find('tr');rowElements.find('td:eq('+this.resizeConfig.curResizeElem.ctx.$index()+')').removeClass(this.resizingColumnClass);rowElements.find('td:eq('+this.resizeConfig.depResizeElem.ctx.$index()+')').removeClass(this.resizingColumnClass);},_canResize:function(column){if($(column).hasClass(this.visibleClass)||!$(this.resizeConfig.depResizeElem.elems[0]).find('.'+this.resizableElementClass).length){return false;}\nreturn true;},mousedownHandler:function(event){var target=event.target,column=$(target).parent()[0],cfg=this.resizeConfig,body=$('body');event.stopImmediatePropagation();cfg.curResizeElem.model=ko.dataFor(column);cfg.curResizeElem.ctx=ko.contextFor(column);cfg.curResizeElem.elems=this.hasColumn(cfg.curResizeElem.model,false,true);cfg.curResizeElem.position=event.pageX;cfg.depResizeElem.elems=this.getNextElements(cfg.curResizeElem.elems[0]);cfg.depResizeElem.model=ko.dataFor(cfg.depResizeElem.elems[0]);cfg.depResizeElem.ctx=ko.contextFor(cfg.depResizeElem.elems[0]);this._setResizeClass();if(!this._canResize(column)){return false;}\nevent.stopPropagation();this.resizable=true;cfg.curResizeElem.model.width=$(cfg.curResizeElem.elems[0]).outerWidth();cfg.depResizeElem.model.width=$(cfg.depResizeElem.elems[0]).outerWidth();body.addClass(this.inResizeClass);body.on('mousemove',this.mousemoveHandler);$(window).on('mouseup',this.mouseupHandler);},mousemoveHandler:function(event){var cfg=this.resizeConfig,width=event.pageX-cfg.curResizeElem.position,self=this;event.stopPropagation();event.preventDefault();if(this.resizable&&this.minColumnWidth<cfg.curResizeElem.model.width+width&&this.minColumnWidth<cfg.depResizeElem.model.width-width&&cfg.previousWidth!==width){cfg.curResizeElem.model.width+=width;cfg.depResizeElem.model.width-=width;cfg.curResizeElem.elems.forEach(function(el){$(el).outerWidth(cfg.curResizeElem.model.width);});cfg.depResizeElem.elems.forEach(function(el){$(el).outerWidth(cfg.depResizeElem.model.width);});cfg.previousWidth=width;cfg.curResizeElem.position=event.pageX;}else if(width<=-(cfg.curResizeElem.model.width-this.minColumnWidth)){cfg.curResizeElem.elems.forEach(function(el){$(el).outerWidth(self.minColumnWidth);});cfg.depResizeElem.elems.forEach(function(el){$(el).outerWidth(cfg.depResizeElem.model.width+\ncfg.curResizeElem.model.width-\nself.minColumnWidth);});}else if(width>=cfg.depResizeElem.model.width-this.minColumnWidth){cfg.depResizeElem.elems.forEach(function(el){$(el).outerWidth(self.minColumnWidth);});cfg.curResizeElem.elems.forEach(function(el){$(el).outerWidth(cfg.curResizeElem.model.width+\ncfg.depResizeElem.model.width-\nself.minColumnWidth);});}},mouseupHandler:function(event){var cfg=this.resizeConfig,body=$('body');event.stopPropagation();event.preventDefault();this._removeResizeClass();this.storageColumnsData[cfg.curResizeElem.model.index]=cfg.curResizeElem.model.width;this.storageColumnsData[cfg.depResizeElem.model.index]=cfg.depResizeElem.model.width;this.resizable=false;this.store('storageColumnsData');body.removeClass(this.inResizeClass);body.off('mousemove',this.mousemoveHandler);$(window).off('mouseup',this.mouseupHandler);},getNextElements:function(element){var nextElem=$(element).next()[0],nextElemModel=ko.dataFor(nextElem),nextElemData=this.hasColumn(nextElemModel,false,true);if(nextElemData){if(nextElemModel.visible){return nextElemData;}\nreturn this.getNextElements(nextElem);}},getDefaultWidth:function(column){var model=ko.dataFor(column);if(this.storageColumnsData[model.index]){return this.storageColumnsData[model.index];}\nif(model.resizeDefaultWidth){return parseInt(model.resizeDefaultWidth,10);}\nreturn'auto';},hasColumn:function(model,ctxIndex,returned){var colElem=this.columnsElements[model.index]||{},getFromAllCtx=ctxIndex===false;if(colElem&&(getFromAllCtx||colElem.hasOwnProperty(ctxIndex))){if(returned){return getFromAllCtx?_.values(colElem):colElem[ctxIndex];}\nreturn true;}\nreturn false;},hasRow:function(elem,returned){var i=0,el=this.maxRowsHeight(),length=el.length;for(i;i<length;i++){if(this.maxRowsHeight()[i].elem===elem){if(returned){return this.maxRowsHeight()[i];}\nreturn true;}}\nreturn false;},getCtxIndex:function(ctx){return ctx?ctx.$parents.reduce(function(pv,cv){return(pv.index||pv)+(cv||{}).index;}):ctx;}});});","Magento_Ui/js/grid/sortBy.min.js":"define(['uiElement'],function(Element){'use strict';return Element.extend({defaults:{template:'ui/grid/sortBy',options:[],applied:{},sorting:'asc',columnsProvider:'ns = ${ $.ns }, componentType = columns',selectedOption:'',isVisible:true,listens:{'selectedOption':'applyChanges'},statefull:{selectedOption:true,applied:true},exports:{applied:'${ $.provider }:params.sorting'},imports:{preparedOptions:'${ $.columnsProvider }:elems'},modules:{columns:'${ $.columnsProvider }'}},initObservable:function(){return this._super().observe(['applied','selectedOption','isVisible']);},preparedOptions:function(columns){if(columns&&columns.length>0){columns.map(function(column){if(column.sortable===true){this.options.push({value:column.index,label:column.label});this.isVisible(true);}else{this.isVisible(false);}}.bind(this));}},applyChanges:function(){this.applied({field:this.selectedOption(),direction:this.sorting});}});});","Magento_Ui/js/grid/provider.min.js":"define(['jquery','underscore','mageUtils','rjsResolver','uiLayout','Magento_Ui/js/modal/alert','mage/translate','uiElement','uiRegistry','Magento_Ui/js/grid/data-storage'],function($,_,utils,resolver,layout,alert,$t,Element,registry){'use strict';return Element.extend({defaults:{firstLoad:true,lastError:false,storageConfig:{component:'Magento_Ui/js/grid/data-storage',provider:'${ $.storageConfig.name }',name:'${ $.name }_storage',updateUrl:'${ $.update_url }'},listens:{params:'onParamsChange',requestConfig:'updateRequestConfig'},ignoreTmpls:{data:true},triggerDataReload:false},initialize:function(){utils.limit(this,'onParamsChange',5);_.bindAll(this,'onReload');this._super().initStorage().clearData();resolver(this.reload,this);return this;},initStorage:function(){layout([this.storageConfig]);return this;},clearData:function(){this.setData({items:[],totalRecords:0,showTotalRecords:true});return this;},setData:function(data){data=this.processData(data);this.set('data',data);return this;},processData:function(data){var items=data.items;_.each(items,function(record,index){record._rowIndex=index;});return data;},reload:function(options){var request=this.storage().getData(this.params,options);this.trigger('reload');request.done(this.onReload).fail(this.onError.bind(this));return request;},onParamsChange:function(){if(!this.firstLoad){this.reload();}else{this.triggerDataReload=true;}},onError:function(xhr){if(xhr.statusText==='abort'){return;}\nthis.set('lastError',true);this.firstLoad=false;this.triggerDataReload=false;alert({content:$t('Something went wrong.')});},onReload:function(data){this.firstLoad=false;this.set('lastError',false);this.setData(data).trigger('reloaded');if(this.triggerDataReload){this.triggerDataReload=false;this.reload();}},updateRequestConfig:function(requestConfig){registry.get(this.storageConfig.provider,function(storage){_.extend(storage.requestConfig,requestConfig);});}});});","Magento_Ui/js/grid/url-filter-applier.min.js":"define(['uiComponent','underscore','jquery'],function(Component,_,$){'use strict';return Component.extend({defaults:{listingNamespace:null,bookmarkProvider:'componentType = bookmark, ns = ${ $.listingNamespace }',filterProvider:'componentType = filters, ns = ${ $.listingNamespace }',filterKey:'filters',searchString:location.search,modules:{bookmarks:'${ $.bookmarkProvider }',filterComponent:'${ $.filterProvider }'}},initialize:function(){this._super();this.apply();return this;},apply:function(){var urlFilter=this.getFilterParam(this.searchString),applied,filters;if(_.isUndefined(this.filterComponent())){setTimeout(function(){this.apply();}.bind(this),100);return;}\nif(!_.isUndefined(this.bookmarks())){if(!_.size(this.bookmarks().getViewData(this.bookmarks().defaultIndex))){setTimeout(function(){this.apply();}.bind(this),500);return;}}\nif(Object.keys(urlFilter).length){applied=this.filterComponent().get('applied');filters=$.extend({},applied,urlFilter);this.filterComponent().set('applied',filters);}},getFilterParam:function(url){var searchString=decodeURI(url),itemArray;return _.chain(searchString.slice(1).split('&')).map(function(item){if(item&&item.search(this.filterKey)!==-1){itemArray=item.split('=');if(itemArray[1].search('\\\\[')===0){itemArray[1]=itemArray[1].replace(/[\\[\\]]/g,'').split(',');}\nitemArray[0]=itemArray[0].replace(this.filterKey,'').replace(/[\\[\\]]/g,'');return itemArray;}}.bind(this)).compact().object().value();}});});","Magento_Ui/js/grid/data-storage.min.js":"define(['jquery','underscore','mageUtils','uiClass'],function($,_,utils,Class){'use strict';return Class.extend({defaults:{cacheRequests:true,cachedRequestDelay:50,indexField:'entity_id',requestConfig:{url:'${ $.updateUrl }',method:'GET',dataType:'json'},dataScope:'',data:{}},initConfig:function(){var scope;this._super();scope=this.dataScope;if(typeof scope==='string'){this.dataScope=scope?[scope]:[];}\nthis._requests=[];return this;},getByIds:function(ids){var result=[],hasData;hasData=ids.every(function(id){var item=this.data[id];return item?result.push(item):false;},this);return hasData?result:false;},getIds:function(data){data=data||this.data;return _.pluck(data,this.indexField);},getData:function(params,options){var cachedRequest;if(this.hasScopeChanged(params)){this.clearRequests();}else{cachedRequest=this.getRequest(params);}\noptions=options||{};return!options.refresh&&cachedRequest?this.getRequestData(cachedRequest):this.requestData(params);},hasScopeChanged:function(params){var lastRequest=_.last(this._requests),keys,diff;if(!lastRequest){return false;}\ndiff=utils.compare(lastRequest.params,params);keys=_.pluck(diff.changes,'path');keys=keys.concat(Object.keys(diff.containers));return _.intersection(this.dataScope,keys).length>0;},updateData:function(data){var records=_.indexBy(data||[],this.indexField);_.extend(this.data,records);return this;},requestData:function(params){var query=utils.copy(params),handler=this.onRequestComplete.bind(this,query),request;this.requestConfig.data=query;request=$.ajax(this.requestConfig).done(handler);return request;},getRequest:function(params){return _.find(this._requests,function(request){return _.isEqual(params,request.params);},this);},getRequestData:function(request){var defer=$.Deferred(),resolve=defer.resolve.bind(defer),delay=this.cachedRequestDelay,result;if(request.showTotalRecords===undefined){request.showTotalRecords=true;}\nresult={items:this.getByIds(request.ids),totalRecords:request.totalRecords,showTotalRecords:request.showTotalRecords,errorMessage:request.errorMessage};delay?_.delay(resolve,delay,result):resolve(result);return defer.promise();},cacheRequest:function(data,params){var cached=this.getRequest(params);if(cached){this.removeRequest(cached);}\nif(data.showTotalRecords===undefined){data.showTotalRecords=true;}\nthis._requests.push({ids:this.getIds(data.items),params:params,totalRecords:data.totalRecords,showTotalRecords:data.showTotalRecords,errorMessage:data.errorMessage});return this;},clearRequests:function(){this._requests.splice(0);return this;},removeRequest:function(request){var requests=this._requests,index=requests.indexOf(request);if(~index){requests.splice(index,1);}\nreturn this;},wasRequested:function(params){return!!this.getRequest(params);},onRequestComplete:function(params,data){this.updateData(data.items);if(this.cacheRequests){this.cacheRequest(data,params);}}});});","Magento_Ui/js/grid/search/search.min.js":"define(['underscore','uiLayout','mage/translate','mageUtils','uiElement','jquery'],function(_,layout,$t,utils,Element,$){'use strict';return Element.extend({defaults:{template:'ui/grid/search/search',placeholder:$t('Search by keyword'),label:$t('Keyword'),value:'',keywordUpdated:false,previews:[],chipsProvider:'componentType = filtersChips, ns = ${ $.ns }',statefull:{value:true},tracks:{value:true,previews:true,inputValue:true,focused:true,keywordUpdated:true},imports:{inputValue:'value',updatePreview:'value',focused:false},exports:{value:'${ $.provider }:params.search',keywordUpdated:'${ $.provider }:params.keywordUpdated'},modules:{chips:'${ $.chipsProvider }'}},initialize:function(){var urlParams=window.location.href.slice(window.location.href.search('[\\&\\?](search=)')).split('&'),searchTerm=[];this._super().initChips();if(urlParams[0]){searchTerm=urlParams[0].split('=');if(searchTerm[1]){this.apply(decodeURIComponent(searchTerm[1]));}}\nreturn this;},initChips:function(){this.chips('insertChild',this,0);return this;},clear:function(){this.value='';return this;},scrollTo:function($data){$('html, body').animate({scrollTop:0},'slow',function(){$data.focused=false;$data.focused=true;});},cancel:function(){this.inputValue=this.value;return this;},apply:function(value){value=value||this.inputValue;this.keywordUpdated=this.value!==value;this.value=this.inputValue=value.trim();return this;},updatePreview:function(){var preview=[];if(this.value){preview.push({elem:this,label:this.label,preview:this.value});}\nthis.previews=preview;return this;}});});","Magento_Ui/js/grid/cells/sanitizedHtml.min.js":"define(['Magento_Ui/js/grid/columns/column','escaper'],function(Column,escaper){'use strict';return Column.extend({defaults:{allowedTags:['div','span','b','strong','i','em','u','a']},getSafeHtml:function(label){return escaper.escapeHtml(label,this.allowedTags);},getSafeUnsanitizedHtml:function(label){return this.getSafeHtml(label);}});});","Magento_Ui/js/grid/filters/range.min.js":"define(['underscore','uiLayout','mageUtils','Magento_Ui/js/form/components/group','mage/translate'],function(_,layout,utils,Group,$t){'use strict';return Group.extend({defaults:{template:'ui/grid/filters/elements/group',isRange:true,templates:{base:{parent:'${ $.$data.group.name }',provider:'${ $.$data.group.provider }',template:'ui/grid/filters/field'},date:{component:'Magento_Ui/js/form/element/date',dateFormat:'MM/dd/YYYY',shiftedValue:'filter'},datetime:{component:'Magento_Ui/js/form/element/date',dateFormat:'MM/dd/YYYY',shiftedValue:'filter',options:{showsTime:true}},text:{component:'Magento_Ui/js/form/element/abstract'},ranges:{from:{label:$t('from'),dataScope:'from'},to:{label:$t('to'),dataScope:'to'}}}},initialize:function(config){if(config.dateFormat){this.constructor.defaults.templates.date.pickerDefaultDateFormat=config.dateFormat;}\nthis._super().initChildren();return this;},initChildren:function(){var children=this.buildChildren();layout(children);return this;},buildChildren:function(){var templates=this.templates,typeTmpl=templates[this.rangeType],tmpl=utils.extend({},templates.base,typeTmpl),children={};_.each(templates.ranges,function(range,key){children[key]=utils.extend({},tmpl,range);});return utils.template(children,{group:this},true,true);},clear:function(){this.elems.each('clear');return this;},hasData:function(){return this.elems.some('hasData');}});});","Magento_Ui/js/grid/filters/chips.min.js":"define(['underscore','uiCollection'],function(_,Collection){'use strict';return Collection.extend({defaults:{template:'ui/grid/filters/chips',componentType:'filtersChips'},hasPreviews:function(){return this.elems().some(function(elem){return!!elem.previews.length;});},clear:function(){_.invoke(this.elems(),'clear');return this;}});});","Magento_Ui/js/grid/filters/filters.min.js":"define(['underscore','mageUtils','uiLayout','uiCollection','mage/translate','jquery'],function(_,utils,layout,Collection,$t,$){'use strict';function extractPreview(elem){return{label:elem.label,preview:elem.getPreview(),elem:elem};}\nfunction removeEmpty(data){var result=utils.mapRecursive(data,utils.removeEmptyValues.bind(utils));return utils.mapRecursive(result,function(value){return _.isString(value)?value.trim():value;});}\nreturn Collection.extend({defaults:{template:'ui/grid/filters/filters',stickyTmpl:'ui/grid/sticky/filters',_processed:[],columnsProvider:'ns = ${ $.ns }, componentType = columns',bookmarksProvider:'ns = ${ $.ns }, componentType = bookmark',applied:{placeholder:true},filters:{placeholder:true},templates:{filters:{base:{parent:'${ $.$data.filters.name }',name:'${ $.$data.column.index }',provider:'${ $.$data.filters.name }',dataScope:'${ $.$data.column.index }',label:'${ $.$data.column.label }',imports:{visible:'${ $.$data.column.name }:visible'}},text:{component:'Magento_Ui/js/form/element/abstract',template:'ui/grid/filters/field'},select:{component:'Magento_Ui/js/form/element/select',template:'ui/grid/filters/field',options:'${ JSON.stringify($.$data.column.options) }',caption:' '},dateRange:{component:'Magento_Ui/js/grid/filters/range',rangeType:'date'},datetimeRange:{component:'Magento_Ui/js/grid/filters/range',rangeType:'datetime'},textRange:{component:'Magento_Ui/js/grid/filters/range',rangeType:'text'}}},chipsConfig:{name:'${ $.name }_chips',provider:'${ $.chipsConfig.name }',component:'Magento_Ui/js/grid/filters/chips'},listens:{active:'updatePreviews',applied:'cancel updateActive'},statefull:{applied:true},exports:{applied:'${ $.provider }:params.filters'},imports:{onColumnsUpdate:'${ $.columnsProvider }:elems',onBackendError:'${ $.provider }:lastError',bookmarksActiveIndex:'${ $.bookmarksProvider }:activeIndex'},modules:{columns:'${ $.columnsProvider }',chips:'${ $.chipsConfig.provider }'}},initialize:function(config){if(typeof config.options!=='undefined'&&config.options.dateFormat){this.constructor.defaults.templates.filters.dateRange.dateFormat=config.options.dateFormat;}\n_.bindAll(this,'updateActive');this._super().initChips().cancel();return this;},initObservable:function(){this._super().track({active:[],previews:[]});return this;},initChips:function(){layout([this.chipsConfig]);this.chips('insertChild',this.name);return this;},initElement:function(elem){this._super();elem.on('elems',this.updateActive);this.updateActive();return this;},clear:function(filter){filter?filter.clear():_.invoke(this.active,'clear');this.apply();return this;},apply:function(){if(typeof $('body').notification==='function'){$('body').notification('clear');}\nthis.set('applied',removeEmpty(this.filters));return this;},cancel:function(){this.set('filters',utils.copy(this.applied));return this;},setData:function(data,partial){var filters=partial?this.filters:{};data=utils.extend({},filters,data);this.set('filters',data);return this;},addFilter:function(column){var index=column.index,processed=this._processed,filter;if(!column.filter||_.contains(processed,index)){return this;}\nfilter=this.buildFilter(column);processed.push(index);layout([filter]);return this;},buildFilter:function(column){var filters=this.templates.filters,filter=column.filter,type=filters[filter.filterType];if(_.isObject(filter)&&type){filter=utils.extend({},type,filter);}else if(_.isString(filter)){filter=filters[filter];}\nfilter=utils.extend({},filters.base,filter);filter.__disableTmpl={label:1,options:1};filter=utils.template(filter,{filters:this,column:column},true,true);filter.__disableTmpl={label:true};return filter;},getRanges:function(){return this.elems.filter(function(filter){return filter.isRange;});},getPlain:function(){return this.elems.filter(function(filter){return!filter.isRange;});},isFilterVisible:function(filter){return filter.visible()||this.isFilterActive(filter);},isFilterActive:function(filter){return _.contains(this.active,filter);},hasVisible:function(){return this.elems.some(this.isFilterVisible,this);},updateActive:function(){var applied=_.keys(this.applied);this.active=this.elems.filter(function(elem){return _.contains(applied,elem.index);});return this;},countActive:function(){return this.active.length;},updatePreviews:function(filters){var previews=filters.map(extractPreview);this.previews=_.compact(previews);return this;},onColumnsUpdate:function(columns){columns.forEach(this.addFilter,this);},onBackendError:function(isError){var defaultMessage='Something went wrong with processing the default view and we have restored the '+'filter to its original state.',customMessage='Something went wrong with processing current custom view and filters have been '+'reset to its original state. Please edit filters then click apply.';if(isError){this.clear();$('body').notification('clear').notification('add',{error:true,message:$.mage.__(this.bookmarksActiveIndex!=='default'?customMessage:defaultMessage),insertMethod:function(message){var $wrapper=$('<div></div>').html(message);$('.page-main-actions').after($wrapper);}});}}});});","Magento_Ui/js/grid/filters/elements/ui-select.min.js":"define(['Magento_Ui/js/form/element/ui-select','jquery','underscore'],function(Select,$,_){'use strict';return Select.extend({defaults:{bookmarkProvider:'ns = ${ $.ns }, index = bookmarks',filterChipsProvider:'componentType = filters, ns = ${ $.ns }',validationUrl:false,loadedOption:[],validationLoading:true,imports:{applied:'${ $.filterChipsProvider }:applied',activeIndex:'${ $.bookmarkProvider }:activeIndex'},modules:{filterChips:'${ $.filterChipsProvider }'},listens:{activeIndex:'validateInitialValue',applied:'validateInitialValue'}},initialize:function(){this._super();this.validateInitialValue();return this;},validateInitialValue:function(){if(_.isEmpty(this.value())){this.validationLoading(false);return;}\n$.ajax({url:this.validationUrl,type:'GET',dataType:'json',context:this,data:{ids:this.value()},success:function(response){if(!_.isEmpty(response)){this.options([]);this.success({options:response});}\nthis.filterChips().updateActive();},error:function(){this.options([]);},complete:function(){this.validationLoading(false);this.setCaption();}});}});});","Magento_Ui/js/grid/columns/column.min.js":"define(['underscore','uiRegistry','mageUtils','uiElement'],function(_,registry,utils,Element){'use strict';return Element.extend({defaults:{headerTmpl:'ui/grid/columns/text',bodyTmpl:'ui/grid/cells/text',disableAction:false,controlVisibility:true,sortable:true,sorting:false,visible:true,draggable:true,fieldClass:{},ignoreTmpls:{fieldAction:true},statefull:{visible:true,sorting:true},imports:{exportSorting:'sorting'},listens:{'${ $.provider }:params.sorting.field':'onSortChange'},modules:{source:'${ $.provider }'}},initialize:function(){this._super().initFieldClass();return this;},initObservable:function(){this._super().track(['visible','sorting','disableAction']).observe(['dragging']);return this;},initFieldClass:function(){_.extend(this.fieldClass,{_dragging:this.dragging});return this;},applyState:function(state,property){var namespace=this.storageConfig.root;if(property){namespace+='.'+property;}\nthis.storage('applyStateOf',state,namespace);return this;},sort:function(enable){if(!this.sortable){return this;}\nenable!==false?this.toggleSorting():this.sorting=false;return this;},sortDescending:function(){if(this.sortable){this.sorting='desc';}\nreturn this;},sortAscending:function(){if(this.sortable){this.sorting='asc';}\nreturn this;},toggleSorting:function(){this.sorting==='asc'?this.sortDescending():this.sortAscending();return this;},isSorted:function(){return!!this.sorting;},exportSorting:function(){if(!this.sorting){return;}\nthis.source('set','params.sorting',{field:this.index,direction:this.sorting});},hasFieldAction:function(){return!!this.fieldAction||!!this.fieldActions;},applyFieldAction:function(rowIndex){if(!this.hasFieldAction()||this.disableAction){return this;}\nif(this.fieldActions){this.fieldActions.forEach(this.applySingleAction.bind(this,rowIndex),this);}else{this.applySingleAction(rowIndex);}\nreturn this;},applySingleAction:function(rowIndex,action){var callback;action=action||this.fieldAction;action=utils.template(action,{column:this,rowIndex:rowIndex},true);callback=this._getFieldCallback(action);if(_.isFunction(callback)){callback();}},getFieldHandler:function(record){if(this.hasFieldAction()){return this.applyFieldAction.bind(this,record._rowIndex);}},_getFieldCallback:function(action){var args=action.params||[],callback=action.target;if(action.provider&&action.target){args.unshift(action.target);callback=registry.async(action.provider);}\nif(!_.isFunction(callback)){return false;}\nreturn function(){callback.apply(callback,args);};},getLabel:function(record){return record[this.index];},getLabelUnsanitizedHtml:function(record){return this.getLabel(record);},getFieldClass:function(){return this.fieldClass;},getHeader:function(){return this.headerTmpl;},getBody:function(){return this.bodyTmpl;},onSortChange:function(field){if(field!==this.index){this.sort(false);}}});});","Magento_Ui/js/grid/columns/link.min.js":"define(['./column','mageUtils'],function(Column,utils){'use strict';return Column.extend({defaults:{link:'link',bodyTmpl:'ui/grid/cells/link'},getLink:function(record){return utils.nested(record,this.link);},isLink:function(record){return!!utils.nested(record,this.link);}});});","Magento_Ui/js/grid/columns/image.min.js":"define(['Magento_Ui/js/grid/columns/column'],function(Column){'use strict';return Column.extend({defaults:{bodyTmpl:'ui/grid/columns/image',modules:{masonry:'${ $.parentName }',previewComponent:'${ $.parentName }.preview'},previewRowId:null,previewHeight:0,fields:{id:'id',url:'url'}},initObservable:function(){this._super().observe(['previewRowId','previewHeight']);return this;},updateStyles:function(record){!record.lastInRow||this.masonry().updateStyles();},getUrl:function(record){return record[this.fields.url];},getId:function(record){return record[this.fields.id];},getStyles:function(record){var styles=record.styles();styles['margin-bottom']=this.previewRowId()===record.rowNumber?this.previewHeight:0;record.styles(styles);return record.styles;},getClasses:function(record){return record.css||{};},getIsActive:function(record){return this.previewComponent().visibleRecord()===record._rowIndex||false;},expandPreview:function(record){this.previewComponent().show(record);}});});","Magento_Ui/js/grid/columns/onoff.min.js":"define(['underscore','mage/translate','./multiselect','uiRegistry'],function(_,$t,Column,registry){'use strict';return Column.extend({defaults:{headerTmpl:'ui/grid/columns/onoff',bodyTmpl:'ui/grid/cells/onoff',fieldClass:{'admin__scope-old':true,'data-grid-onoff-cell':true,'data-grid-checkbox-cell':false},imports:{selectedData:'${ $.provider }:data.selectedData'},listens:{'${ $.provider }:reloaded':'setDefaultSelections'}},getLabel:function(id){return this.selected.indexOf(id)!==-1?$t('On'):$t('Off');},setDefaultSelections:function(){var positionCacheValid=registry.get('position_cache_valid'),selectedFromCache=registry.get('selected_cache'),key,i;if(positionCacheValid&&this.selected().length===0){selectedFromCache=JSON.parse(selectedFromCache);for(i=0;i<selectedFromCache.length;i++){this.selected.push(selectedFromCache[i]);}\nregistry.set('position_cache_valid',true);registry.set('selected_cache',JSON.stringify(this.selected()));return;}\nif(positionCacheValid&&this.selected().length>0){registry.set('position_cache_valid',true);registry.set('selected_cache',JSON.stringify(this.selected()));return;}\nif(this.selectedData.length===0){registry.set('position_cache_valid',true);registry.set('selected_cache',JSON.stringify([]));return;}\nfor(key in this.selectedData){if(this.selectedData.hasOwnProperty(key)&&this.selected().indexOf(key)===-1){this.selected.push(key);}}\nfor(i=0;i<this.selected().length;i++){key=this.selected()[i];this.selectedData.hasOwnProperty(key)||this.selected.splice(this.selected().indexOf(key),1);this.selectedData.hasOwnProperty(key)||i--;}\nregistry.set('position_cache_valid',true);registry.set('selected_cache',JSON.stringify(this.selected()));},isActionRelevant:function(actionId){var relevant=true;switch(actionId){case'selectPage':relevant=!this.isPageSelected(true);break;case'deselectPage':relevant=this.isPageSelected();break;}\nreturn relevant;},updateState:function(){var positionCacheValid=registry.get('position_cache_valid'),totalRecords=this.totalRecords(),selected=this.selected().length,excluded=this.excluded().length,totalSelected=this.totalSelected(),allSelected;if(positionCacheValid&&this.selected().length>0){registry.set('position_cache_valid',true);registry.set('selected_cache',JSON.stringify(this.selected()));}\nif(this.getFiltering()){if(this.getFiltering().search!==''){totalRecords=-1;}}\nallSelected=totalRecords&&totalSelected===totalRecords;if(this.excludeMode()){if(excluded===totalRecords){this.deselectAll();}}else if(totalRecords&&selected===totalRecords){this.selectAll();}\nthis.allSelected(allSelected);this.indetermine(totalSelected&&!allSelected);return this;}});});","Magento_Ui/js/grid/columns/overlay.min.js":"define(['Magento_Ui/js/grid/columns/column'],function(Column){'use strict';return Column.extend({defaults:{bodyTmpl:'ui/grid/columns/overlay'},isVisible:function(row){return!!row[this.index];},getLabel:function(row){return row[this.index];}});});","Magento_Ui/js/grid/columns/select.min.js":"define(['underscore','./column'],function(_,Column){'use strict';return Column.extend({getLabel:function(){var options=this.options||[],values=this._super(),label=[];if(_.isString(values)){values=values.split(',');}\nif(!_.isArray(values)){values=[values];}\nvalues=values.map(function(value){return value+'';});options=this.flatOptions(options);options.forEach(function(item){if(_.contains(values,item.value+'')){label.push(item.label);}});return label.join(', ');},flatOptions:function(options){var self=this;if(!_.isArray(options)){options=_.values(options);}\nreturn options.reduce(function(opts,option){if(_.isArray(option.value)){opts=opts.concat(self.flatOptions(option.value));}else{opts.push(option);}\nreturn opts;},[]);}});});","Magento_Ui/js/grid/columns/multiselect.min.js":"define(['underscore','mage/translate','./column'],function(_,$t,Column){'use strict';return Column.extend({defaults:{headerTmpl:'ui/grid/columns/multiselect',bodyTmpl:'ui/grid/cells/multiselect',controlVisibility:false,sortable:false,draggable:false,menuVisible:false,excludeMode:false,allSelected:false,indetermine:false,preserveSelectionsOnFilter:false,disabled:[],selected:[],excluded:[],fieldClass:{'data-grid-checkbox-cell':true},actions:[{value:'selectAll',label:$t('Select All')},{value:'deselectAll',label:$t('Deselect All')},{value:'selectPage',label:$t('Select All on This Page')},{value:'deselectPage',label:$t('Deselect All on This Page')}],imports:{totalRecords:'${ $.provider }:data.totalRecords',showTotalRecords:'${ $.provider }:data.showTotalRecords',rows:'${ $.provider }:data.items'},listens:{'${ $.provider }:params.filters':'onFilter','${ $.provider }:params.search':'onSearch',selected:'onSelectedChange',rows:'onRowsChange'},modules:{source:'${ $.provider }'}},initObservable:function(){this._super().observe(['disabled','selected','excluded','excludeMode','totalSelected','allSelected','indetermine','totalRecords','showTotalRecords','rows']);return this;},select:function(id,isIndex){this._setSelection(id,isIndex,true);return this;},deselect:function(id,isIndex){this._setSelection(id,isIndex,false);return this;},toggleSelect:function(id,isIndex){this._setSelection(id,isIndex,!this.isSelected(id,isIndex));return this;},isSelected:function(id,isIndex){id=this.getId(id,isIndex);return this.selected.contains(id);},_setSelection:function(id,isIndex,select){var selected=this.selected;id=this.getId(id,isIndex);if(!select&&this.isSelected(id)){selected.remove(id);}else if(select){selected.push(id);}\nreturn this;},selectAll:function(){this.excludeMode(true);this.clearExcluded().selectPage();return this;},deselectAll:function(){this.excludeMode(false);this.clearExcluded();this.selected.removeAll();return this;},toggleSelectAll:function(){this.allSelected()?this.deselectAll():this.selectAll();return this;},selectPage:function(){var selected=_.union(this.selected(),this.getIds());selected=_.difference(selected,this.disabled());this.selected(selected);return this;},deselectPage:function(){var pageIds=this.getIds();this.selected.remove(function(value){return!!~pageIds.indexOf(value);});return this;},togglePage:function(){return this.isPageSelected()&&!this.excluded().length?this.deselectPage():this.selectPage();},clearExcluded:function(){this.excluded.removeAll();return this;},getIds:function(exclude){var items=this.rows(),ids=_.pluck(items,this.indexField);return exclude?_.difference(ids,this.excluded()):ids;},getId:function(id,isIndex){var record=this.rows()[id];if(isIndex&&record){id=record[this.indexField];}\nreturn id;},updateExcluded:function(selected){var excluded=this.excluded(),fromPage=_.difference(this.getIds(),selected);excluded=_.union(excluded,fromPage);excluded=_.difference(excluded,selected);this.excluded(excluded);return this;},countSelected:function(){var total=this.totalRecords(),excluded=this.excluded().length,selected=this.selected().length;if(this.excludeMode()){selected=total-excluded;}\nthis.totalSelected(selected);return this;},getPageSelections:function(){var ids=this.getIds();return this.selected.filter(function(id){return _.contains(ids,id);});},getSelections:function(){return{excluded:this.excluded(),selected:this.selected(),total:this.totalSelected(),showTotalRecords:this.showTotalRecords(),excludeMode:this.excludeMode(),params:this.getFiltering()};},getFiltering:function(){var source=this.source(),keys=['filters','search','namespace'];if(!source){return{};}\nreturn _.pick(source.get('params'),keys);},isActionRelevant:function(actionId){var pageIds=this.getIds().length,multiplePages=pageIds<this.totalRecords(),relevant=true;switch(actionId){case'selectPage':relevant=multiplePages&&!this.isPageSelected(true);break;case'deselectPage':relevant=multiplePages&&this.isPageSelected();break;case'selectAll':relevant=!this.allSelected();break;case'deselectAll':relevant=this.totalSelected()>0;}\nreturn relevant;},isPageSelected:function(all){var pageIds=this.getIds(),selected=this.selected(),excluded=this.excluded(),iterator=all?'every':'some';if(this.allSelected()){return true;}\nif(this.excludeMode()){return pageIds[iterator](function(id){return!~excluded.indexOf(id);});}\nreturn pageIds[iterator](function(id){return!!~selected.indexOf(id);});},updateState:function(){var selected=this.selected().length,excluded=this.excluded().length,totalSelected=this.totalSelected(),totalRecords=this.totalRecords(),allSelected=totalRecords&&totalSelected===totalRecords;if(this.excludeMode()){if(excluded===totalRecords&&!this.preserveSelectionsOnFilter){this.deselectAll();}}else if(totalRecords&&selected===totalRecords&&!this.preserveSelectionsOnFilter){this.selectAll();}\nthis.allSelected(allSelected);this.indetermine(totalSelected&&!allSelected);return this;},hasFieldAction:function(){return false;},onSelectedChange:function(selected){this.updateExcluded(selected).countSelected().updateState();},onRowsChange:function(){var newSelections;if(this.excludeMode()){newSelections=_.union(this.getIds(true),this.selected());this.selected(newSelections);}},onFilter:function(){if(!this.preserveSelectionsOnFilter){this.deselectAll();}},onSearch:function(){this.onFilter();}});});","Magento_Ui/js/grid/columns/date.min.js":"define(['mageUtils','moment','./column','underscore','moment-timezone-with-data'],function(utils,moment,Column,_){'use strict';return Column.extend({defaults:{dateFormat:'MMM d, YYYY h:mm:ss A',calendarConfig:[]},initConfig:function(){this._super();this.dateFormat=utils.normalizeDate(this.dateFormat?this.dateFormat:this.options.dateFormat);return this;},getLabel:function(value,format){var date;if(this.storeLocale!==undefined){moment.locale(this.storeLocale,utils.extend({},this.calendarConfig));}\ndate=moment.utc(this._super());if(!_.isUndefined(this.timezone)&&moment.tz.zone(this.timezone)!==null){date=date.tz(this.timezone);}\ndate=date.isValid()&&value[this.index]?date.format(format||this.dateFormat):'';return date;}});});","Magento_Ui/js/grid/columns/thumbnail.min.js":"define(['./column','jquery','mage/template','text!Magento_Ui/templates/grid/cells/thumbnail/preview.html','underscore','Magento_Ui/js/modal/modal','mage/translate'],function(Column,$,mageTemplate,thumbnailPreviewTemplate,_){'use strict';return Column.extend({defaults:{bodyTmpl:'ui/grid/cells/thumbnail',fieldClass:{'data-grid-thumbnail-cell':true}},getSrc:function(row){return row[this.index+'_src'];},getOrigSrc:function(row){return row[this.index+'_orig_src'];},getLink:function(row){return row[this.index+'_link'];},getAlt:function(row){return _.escape(row[this.index+'_alt']);},isPreviewAvailable:function(){return this['has_preview']||false;},preview:function(row){var modalHtml=mageTemplate(thumbnailPreviewTemplate,{src:this.getOrigSrc(row),alt:this.getAlt(row),link:this.getLink(row),linkText:$.mage.__('Go to Details Page')}),previewPopup=$('<div></div>').html(modalHtml);previewPopup.modal({title:this.getAlt(row),innerScroll:true,modalClass:'_image-box',buttons:[]}).trigger('openModal');},getFieldHandler:function(row){if(this.isPreviewAvailable()){return this.preview.bind(this,row);}}});});","Magento_Ui/js/grid/columns/actions.min.js":"define(['underscore','mageUtils','uiRegistry','./column','Magento_Ui/js/modal/confirm','mage/dataPost'],function(_,utils,registry,Column,confirm,dataPost){'use strict';return Column.extend({defaults:{bodyTmpl:'ui/grid/cells/actions',sortable:false,draggable:false,actions:[],rows:[],rowsProvider:'${ $.parentName }',fieldClass:{'data-grid-actions-cell':true},templates:{actions:{}},imports:{rows:'${ $.rowsProvider }:rows'},listens:{rows:'updateActions'}},initObservable:function(){this._super().track('actions');return this;},getAction:function(rowIndex,actionIndex){var rowActions=this.actions[rowIndex];return rowActions&&actionIndex?rowActions[actionIndex]:rowActions;},getVisibleActions:function(rowIndex){var rowActions=this.getAction(rowIndex);return _.filter(rowActions,this.isActionVisible,this);},addAction:function(index,action){var actionTmpls=this.templates.actions;actionTmpls[index]=action;this.updateActions();return this;},updateActions:function(){this.actions=this.rows.map(this._formatActions,this);return this;},_formatActions:function(row,rowIndex){var rowActions=row[this.index]||{},recordId=row[this.indexField],customActions=this.templates.actions;function iterate(action,index){action=utils.extend({index:index,rowIndex:rowIndex,recordId:recordId},action);return utils.template(action,row,true);}\nrowActions=_.mapObject(rowActions,iterate);customActions=_.map(customActions,iterate);customActions.forEach(function(action){rowActions[action.index]=action;});return rowActions;},applyAction:function(actionIndex,rowIndex){var action=this.getAction(rowIndex,actionIndex),callback=this._getCallback(action);action.confirm?this._confirm(action,callback):callback();return this;},getActionHandler:function(action){var index=action.index,rowIndex=action.rowIndex;if(this.isHandlerRequired(index,rowIndex)){return this.applyAction.bind(this,index,rowIndex);}},getTarget:function(action){if(action.target){return action.target;}\nreturn'_self';},isHandlerRequired:function(actionIndex,rowIndex){var action=this.getAction(rowIndex,actionIndex);return _.isObject(action.callback)||action.confirm||!action.href;},_getCallback:function(action){var args=[action.index,action.recordId,action],callback=action.callback;if(utils.isObject(callback)){args.unshift(callback.target);callback=registry.async(callback.provider);}else if(_.isArray(callback)){return this._getCallbacks(action);}else if(!_.isFunction(callback)){callback=this.defaultCallback.bind(this);}\nreturn function(){callback.apply(callback,args);};},_getCallbacks:function(action){var callback=action.callback,callbacks=[],tmpCallback;_.each(callback,function(cb){tmpCallback={action:registry.async(cb.provider),args:_.compact([cb.target,cb.params])};callbacks.push(tmpCallback);});return function(){_.each(callbacks,function(cb){cb.action.apply(cb.action,cb.args);});};},defaultCallback:function(actionIndex,recordId,action){if(action.post){dataPost().postData({action:action.href,data:{}});}else{window.location.href=action.href;}},_confirm:function(action,callback){var confirmData=action.confirm;confirm({title:confirmData.title,content:confirmData.message,actions:{confirm:callback}});},isSingle:function(rowIndex){return this.getVisibleActions(rowIndex).length===1;},isMultiple:function(rowIndex){return this.getVisibleActions(rowIndex).length>1;},isActionVisible:function(action){return action.hidden!==true;},hasFieldAction:function(){return false;}});});","Magento_Ui/js/grid/columns/expandable.min.js":"define(['./column','underscore'],function(Column,_){'use strict';return Column.extend({defaults:{bodyTmpl:'ui/grid/cells/expandable',tooltipTmpl:'ui/grid/cells/expandable/content',visibeItemsLimit:5,tooltipTitle:''},getFullLabel:function(record){return this.getLabelsArray(record).join(', ');},getShortLabel:function(record){return this.getLabelsArray(record).slice(0,this.visibeItemsLimit).join(', ');},getLabelsArray:function(record){var values=this.getLabel(record),options=this.options||[],labels=[];if(_.isString(values)){values=values.split(',');}\nif(!Array.isArray(values)){values=[values];}\nvalues=values.map(function(value){return value+'';});options=this.flatOptions(options);options.forEach(function(item){if(_.contains(values,item.value+'')){labels.push(item.label);}});return labels.sort(function(labelFirst,labelSecond){return labelFirst.toLowerCase().localeCompare(labelSecond.toLowerCase());});},flatOptions:function(options){var self=this;return options.reduce(function(opts,option){if(_.isArray(option.value)){opts=opts.concat(self.flatOptions(option.value));}else{opts.push(option);}\nreturn opts;},[]);},isExpandable:function(record){return this.getLabel(record).length>this.visibeItemsLimit;}});});"}
}});
;require.config({"config": {
        "jsbuild":{"Magento_Ui/js/grid/columns/image-preview.min.js":"define(['jquery','underscore','Magento_Ui/js/grid/columns/column','Magento_Ui/js/lib/key-codes'],function($,_,Column,keyCodes){'use strict';return Column.extend({defaults:{bodyTmpl:'ui/grid/columns/image-preview',previewImageSelector:'[data-image-preview]',visibleRecord:null,height:0,displayedRecord:{},lastOpenedImage:false,fields:{previewUrl:'preview_url',title:'title'},modules:{masonry:'${ $.parentName }',thumbnailComponent:'${ $.parentName }.thumbnail_url'},statefull:{sorting:true,lastOpenedImage:true},listens:{'${ $.provider }:params.filters':'hide','${ $.provider }:params.search':'hide','${ $.provider }:params.paging':'hide','${ $.provider }:data.items':'updateDisplayedRecord'},exports:{height:'${ $.parentName }.thumbnail_url:previewHeight'}},initialize:function(){this._super();$(document).on('keydown',this.handleKeyDown.bind(this));this.lastOpenedImage.subscribe(function(newValue){if(newValue===false&&_.isNull(this.visibleRecord())){return;}\nif(newValue===this.visibleRecord()){return;}\nif(newValue===false){this.hide();return;}\nthis.show(this.masonry().rows()[newValue]);}.bind(this));return this;},initObservable:function(){this._super().observe(['visibleRecord','height','displayedRecord','lastOpenedImage']);return this;},next:function(record){var recordToShow;if(record._rowIndex+1===this.masonry().rows().length){return;}\nrecordToShow=this.getRecord(record._rowIndex+1);recordToShow.rowNumber=record.lastInRow?record.rowNumber+1:record.rowNumber;this.show(recordToShow);},prev:function(record){var recordToShow;if(record._rowIndex===0){return;}\nrecordToShow=this.getRecord(record._rowIndex-1);recordToShow.rowNumber=record.firstInRow?record.rowNumber-1:record.rowNumber;this.show(recordToShow);},getRecord:function(recordIndex){return this.masonry().rows()[recordIndex];},_selectRow:function(rowId){this.thumbnailComponent().previewRowId(rowId);},show:function(record){if(record._rowIndex===this.visibleRecord()){this.hide();return;}\nthis.hide();this.displayedRecord(record);this._selectRow(record.rowNumber||null);this.visibleRecord(record._rowIndex);this.lastOpenedImage(record._rowIndex);this.updateImageData();},updateImageData:function(){var img=$(this.previewImageSelector+' img'),self;if(!img.get(0)){setTimeout(function(){this.updateImageData();}.bind(this),100);}else if(img.get(0).complete){this.updateHeight();this.scrollToPreview();}else{self=this;img.on('load',function(){self.updateHeight();self.scrollToPreview();});}},updateDisplayedRecord:function(items){if(!_.isNull(this.visibleRecord())){this.displayedRecord(items[this.visibleRecord()]);}},updateHeight:function(){this.height($(this.previewImageSelector).height()+'px');},hide:function(){this.lastOpenedImage(false);this.visibleRecord(null);this.height(0);this._selectRow(null);},isVisible:function(record){if(this.lastOpenedImage()===record._rowIndex&&this.visibleRecord()===null){this.show(record);}\nreturn this.visibleRecord()===record._rowIndex||false;},getUrl:function(record){return record[this.fields.previewUrl];},getTitle:function(record){return record[this.fields.title];},getStyles:function(){return{'margin-top':'-'+this.height()};},scrollToPreview:function(){$(this.previewImageSelector).get(0).scrollIntoView({behavior:'smooth',block:'center',inline:'nearest'});},handleKeyDown:function(e){var key=keyCodes[e.keyCode];if(this.visibleRecord()!==null&&document.activeElement.tagName!=='INPUT'){if(key==='pageLeftKey'){this.prev(this.displayedRecord());}else if(key==='pageRightKey'){this.next(this.displayedRecord());}}}});});","Magento_Ui/js/grid/controls/columns.min.js":"define(['underscore','mageUtils','mage/translate','uiCollection'],function(_,utils,$t,Collection){'use strict';return Collection.extend({defaults:{template:'ui/grid/controls/columns',minVisible:1,maxVisible:30,viewportSize:18,displayArea:'dataGridActions',columnsProvider:'ns = ${ $.ns }, componentType = columns',imports:{addColumns:'${ $.columnsProvider }:elems'},templates:{headerMsg:$t('${ $.visible } out of ${ $.total } visible')}},reset:function(){this.elems.each('applyState','default','visible');return this;},cancel:function(){this.elems.each('applyState','','visible');return this;},addColumns:function(columns){columns=_.where(columns,{controlVisibility:true});this.insertChild(columns);return this;},hasOverflow:function(){return this.elems().length>this.viewportSize;},isDisabled:function(elem){var visible=this.countVisible();return elem.visible?visible===this.minVisible:visible===this.maxVisible;},countVisible:function(){return this.elems.filter('visible').length;},getHeaderMessage:function(){return utils.template(this.templates.headerMsg,{visible:this.countVisible(),total:this.elems().length});}});});","Magento_Ui/js/grid/controls/button/split.min.js":"define(['jquery'],function($){'use strict';return function(data,element){$(element).on('click.splitDefault','.action-default',function(){$(this).siblings('.dropdown-menu').find('.item-default').trigger('click');});};});","Magento_Ui/js/grid/controls/bookmarks/storage.min.js":"define(['jquery','mageUtils','Magento_Ui/js/lib/core/storage/local','uiClass'],function($,utils,storage,Class){'use strict';function removeNs(ns,path){return path.replace(ns+'.','');}\nreturn Class.extend({defaults:{ajaxSettings:{method:'POST',data:{namespace:'${ $.namespace }'}}},get:function(){return{};},set:function(path,value){var property=removeNs(this.namespace,path),data={},config;utils.nested(data,property,value);config=utils.extend({url:this.saveUrl,data:{data:JSON.stringify(data)}},this.ajaxSettings);$.ajax(config);},remove:function(path){var property=removeNs(this.namespace,path),config;config=utils.extend({url:this.deleteUrl,data:{data:property}},this.ajaxSettings);$.ajax(config);}});});","Magento_Ui/js/grid/controls/bookmarks/bookmarks.min.js":"define(['underscore','mageUtils','mage/translate','rjsResolver','uiLayout','uiCollection'],function(_,utils,$t,resolver,layout,Collection){'use strict';function removeStateNs(path){path=typeof path=='string'?path.split('.'):[];if(path[0]==='current'){path.shift();}\nreturn path.join('.');}\nreturn Collection.extend({defaults:{template:'ui/grid/controls/bookmarks/bookmarks',viewTmpl:'ui/grid/controls/bookmarks/view',newViewLabel:$t('New View'),defaultIndex:'default',activeIndex:'default',viewsArray:[],storageConfig:{provider:'${ $.storageConfig.name }',name:'${ $.name }_storage',component:'Magento_Ui/js/grid/controls/bookmarks/storage'},views:{default:{label:$t('Default View'),index:'default',editable:false}},tracks:{editing:true,viewsArray:true,activeView:true,hasChanges:true,customLabel:true,customVisible:true},listens:{activeIndex:'onActiveIndexChange',activeView:'checkState',current:'onStateChange'}},initialize:function(){utils.limit(this,'checkState',5);utils.limit(this,'saveState',2000);this._super().restore().initStorage().initViews();return this;},initStorage:function(){layout([this.storageConfig]);return this;},initDefaultView:function(){var data=this.getViewData(this.defaultIndex);if(!_.size(data)&&(this.current.columns&&this.current.positions)){this.setViewData(this.defaultIndex,this.current).saveView(this.defaultIndex);this.defaultDefined=true;}\nreturn this;},initViews:function(){_.each(this.views,function(config){this.addView(config);},this);this.activeView=this.getActiveView();return this;},buildView:function(config){var view={label:this.newViewLabel,index:'_'+Date.now(),editable:true};utils.extend(view,config||{});view.data=view.data||utils.copy(this.current);view.value=view.label;this.observe.call(view,true,'label value');return view;},addView:function(config,saveView,applyView){var view=this.buildView(config),index=view.index;this.views[index]=view;if(saveView){this.saveView(index);}\nif(applyView){this.applyView(index);}\nthis.updateArray();return view;},removeView:function(index){var viewPath=this.getViewPath(index);if(this.isViewActive(index)){this.applyView(this.defaultIndex);}\nthis.endEdit(index).remove(viewPath).removeStored(viewPath).updateArray();return this;},saveView:function(index){var viewPath=this.getViewPath(index);this.updateViewLabel(index).endEdit(index).store(viewPath).checkState();return this;},applyView:function(index){this.applyStateOf(index).set('activeIndex',index);return this;},updateAndSave:function(index){if(this.isViewActive(index)){this.updateActiveView(index);}\nthis.saveView(index);return this;},getView:function(index){return this.views[index];},getActiveView:function(){return this.views[this.activeIndex];},isViewActive:function(index){return this.activeView===this.getView(index);},updateActiveView:function(){this.setViewData(this.activeIndex,this.current);return this;},updateViewLabel:function(index,label){var view=this.getView(index),current=view.label;label=(label||view.value).trim()||current;label=this.uniqueLabel(label,current);view.label=view.value=label;return this;},getViewData:function(index,property){var view=this.getView(index),data=view.data;if(property){data=utils.nested(data,property);}\nreturn utils.copy(data);},setViewData:function(index,data){var path=this.getViewPath(index)+'.data';this.set(path,utils.copy(data));return this;},editView:function(index){this.editing=index;return this;},endEdit:function(index){var view;if(!this.isEditing(index)){return this;}\nindex=index||this.editing;view=this.getView(index);view.value=view.label;this.editing=false;return this;},isEditing:function(index){return this.editing===index;},uniqueLabel:function(label,exclude){var labels=_.pluck(this.views,'label'),hasParenth=_.last(label)===')',index=2,result,suffix;labels=_.without(labels,exclude);result=label=label||this.newViewLabel;for(index=2;_.contains(labels,result);index++){suffix='('+index+')';if(!hasParenth){suffix=' '+suffix;}\nresult=label+suffix;}\nreturn result;},applyStateOf:function(state,property){var index=state||this.activeIndex,dataPath=removeStateNs(property),viewData=this.getViewData(index,dataPath);dataPath=dataPath?'current.'+dataPath:'current';this.set(dataPath,viewData);return this;},saveState:function(){this.store('current');return this;},resetState:function(){this.applyStateOf(this.activeIndex);return this;},checkState:function(){var viewData=this.getViewData(this.activeIndex),diff=utils.compare(viewData,this.current);this.hasChanges=!diff.equal;return this;},getViewPath:function(index){return'views.'+index;},updateArray:function(){this.viewsArray=_.values(this.views);return this;},showCustom:function(){this.customLabel=this.uniqueLabel();this.customVisible=true;return this;},hideCustom:function(){this.customVisible=false;return this;},isCustomVisible:function(){return this.customVisible;},applyCustom:function(){var label=this.customLabel.trim();this.hideCustom().addView({label:this.uniqueLabel(label)},true,true);return this;},onActiveIndexChange:function(){this.activeView=this.getActiveView();this.updateActiveView();this.store('activeIndex');},onStateChange:function(){this.checkState();this.saveState();if(!this.defaultDefined){resolver(this.initDefaultView,this);}}});});","Magento_Ui/js/grid/paging/sizes.min.js":"define(['ko','underscore','mageUtils','uiElement'],function(ko,_,utils,Element){'use strict';return Element.extend({defaults:{template:'ui/grid/paging/sizes',minSize:1,maxSize:999,statefull:{options:true,value:true},listens:{value:'onValueChange',options:'onSizesChange'}},initialize:function(){this._super().updateArray();return this;},initObservable:function(){this._super().track(['value','editing','customVisible','customValue']).track({optionsArray:[]});this._value=ko.pureComputed({read:ko.getObservable(this,'value'),write:function(value){value=this.normalize(value);this.value=value;this._value.notifySubscribers(value);},owner:this});return this;},edit:function(value){this.editing=value;return this;},discardEditing:function(){var value=this.editing;if(value){this.updateSize(value,value);}\nreturn this;},discardAll:function(){this.discardEditing().discardCustom();return this;},getFirst:function(){return this.optionsArray[0].value;},getSize:function(value){return this.options[value];},setSize:function(value){this.value=value;return this;},addSize:function(value){var size;if(!this.hasSize(value)){size=this.createSize(value);this.set('options.'+value,size);}\nreturn this;},removeSize:function(value){if(!this.hasSize(value)){return this;}\nthis.remove('options.'+value);if(this.isSelected(value)){this.setSize(this.getFirst());}\nreturn this;},updateSize:function(value,newValue){var size=this.getSize(value);if(!size){return this;}\nnewValue=newValue||size._value;if(isNaN(+newValue)){this.discardEditing();return this;}\nnewValue=this.normalize(newValue);this.remove('options.'+value).addSize(newValue);if(this.isSelected(value)){this.setSize(newValue);}\nreturn this;},createSize:function(value){return{value:value,label:value,_value:value,editable:true};},hasSize:function(value){return!!this.getSize(value);},discardCustom:function(){this.hideCustom().clearCustom();return this;},showCustom:function(){this.customVisible=true;return this;},hideCustom:function(){this.customVisible=false;return this;},clearCustom:function(){this.customValue='';return this;},applyCustom:function(){var value=this.customValue;value=this.normalize(value);this.addSize(value).setSize(value).discardCustom();return this;},isCustomVisible:function(){return this.customVisible;},normalize:function(value){value=+value;if(isNaN(value)){return this.getFirst();}\nreturn utils.inRange(Math.round(value),this.minSize,this.maxSize);},updateArray:function(){var array=_.values(this.options);this.optionsArray=_.sortBy(array,'value');return this;},isEditing:function(value){return this.editing===value;},isSelected:function(value){return this.value===value;},onValueChange:function(){this.discardAll().trigger('close');},onSizesChange:function(){this.editing=false;this.updateArray();}});});","Magento_Ui/js/grid/paging/paging.min.js":"define(['ko','underscore','mageUtils','uiLayout','uiElement'],function(ko,_,utils,layout,Element){'use strict';return Element.extend({defaults:{template:'ui/grid/paging/paging',totalTmpl:'ui/grid/paging-total',totalRecords:0,showTotalRecords:true,pages:1,current:1,selectProvider:'ns = ${ $.ns }, index = ids',sizesConfig:{component:'Magento_Ui/js/grid/paging/sizes',name:'${ $.name }_sizes',storageConfig:{provider:'${ $.storageConfig.provider }',namespace:'${ $.storageConfig.namespace }'}},imports:{totalSelected:'${ $.selectProvider }:totalSelected',totalRecords:'${ $.provider }:data.totalRecords',showTotalRecords:'${ $.provider }:data.showTotalRecords',filters:'${ $.provider }:params.filters',keywordUpdated:'${ $.provider }:params.keywordUpdated'},exports:{pageSize:'${ $.provider }:params.paging.pageSize',current:'${ $.provider }:params.paging.current'},links:{options:'${ $.sizesConfig.name }:options',pageSize:'${ $.sizesConfig.name }:value'},statefull:{pageSize:true,current:true},listens:{'pages':'onPagesChange','pageSize':'onPageSizeChange','totalRecords':'updateCounter','showTotalRecords':'updateShowTotalRecords','${ $.provider }:params.filters':'goFirst','${ $.provider }:params.search':'onSearchUpdate'},modules:{sizes:'${ $.sizesConfig.name }'}},initialize:function(){this._super().initSizes().updateCounter();return this;},initObservable:function(){this._super().track(['totalSelected','totalRecords','showTotalRecords','pageSize','pages','current']);this._current=ko.pureComputed({read:ko.getObservable(this,'current'),write:function(value){this.setPage(value)._current.notifySubscribers(this.current);},owner:this});return this;},initSizes:function(){layout([this.sizesConfig]);return this;},getFirstItemIndex:function(){return this.pageSize*(this.current-1)+1;},getLastItemIndex:function(){var lastItem=this.getFirstItemIndex()+this.pageSize-1;return this.totalRecords<lastItem?this.totalRecords:lastItem;},setPage:function(value){this.current=this.normalize(value);return this;},next:function(){this.setPage(this.current+1);return this;},prev:function(){this.setPage(this.current-1);return this;},goFirst:function(){if(!_.isUndefined(this.filters)){this.current=1;}\nreturn this;},goLast:function(){this.current=this.pages;return this;},isFirst:function(){return this.current===1;},isLast:function(){return this.current===this.pages;},updateCounter:function(){this.pages=Math.ceil(this.totalRecords / this.pageSize)||1;return this;},updateShowTotalRecords:function(){if(this.showTotalRecords===undefined){this.showTotalRecords=true;}\nreturn this;},updateCursor:function(){var cursor=this.current-1,size=this.pageSize,oldSize=_.isUndefined(this.previousSize)?this.pageSize:this.previousSize,delta=cursor*(oldSize-size)/ size;delta=size>oldSize?Math.ceil(delta):Math.floor(delta);cursor+=delta+1;this.previousSize=size;this.setPage(cursor);return this;},normalize:function(value){value=+value;if(isNaN(value)){return 1;}\nreturn utils.inRange(Math.round(value),1,this.pages);},onPageSizeChange:function(){this.updateCounter().updateCursor();},onPagesChange:function(){this.updateCursor();},onSearchUpdate:function(){if(!_.isUndefined(this.keywordUpdated)&&this.keywordUpdated){this.goFirst();}\nreturn this;}});});","Magento_Ui/js/grid/editing/record.min.js":"define(['underscore','mageUtils','uiLayout','uiCollection'],function(_,utils,layout,Collection){'use strict';return Collection.extend({defaults:{active:true,hasChanges:false,fields:[],errorsCount:0,fieldTmpl:'ui/grid/editing/field',rowTmpl:'ui/grid/editing/row',templates:{fields:{base:{parent:'${ $.$data.record.name }',name:'${ $.$data.column.index }',provider:'${ $.$data.record.name }',dataScope:'data.${ $.$data.column.index }',imports:{disabled:'${ $.$data.record.parentName }:fields.${ $.$data.column.index }.disabled'},isEditor:true},text:{component:'Magento_Ui/js/form/element/abstract',template:'ui/form/element/input'},date:{component:'Magento_Ui/js/form/element/date',template:'ui/form/element/date',dateFormat:'MMM d, y h:mm:ss a'},select:{component:'Magento_Ui/js/form/element/select',template:'ui/form/element/select',options:'${ JSON.stringify($.$data.column.options) }'}}},ignoreTmpls:{data:true},listens:{elems:'updateFields',data:'updateState'},imports:{onColumnsUpdate:'${ $.columnsProvider }:elems'},modules:{columns:'${ $.columnsProvider }',editor:'${ $.editorProvider }'}},initialize:function(){_.bindAll(this,'countErrors');utils.limit(this,'updateState',10);return this._super();},initObservable:function(){this._super().track('errorsCount hasChanges').observe('active fields');return this;},initElement:function(field){field.on('error',this.countErrors);return this._super();},initField:function(column){var field=this.buildField(column);layout([field]);return this;},buildField:function(column){var fields=this.templates.fields,field=column.editor;if(_.isObject(field)&&field.editorType){field=utils.extend({},fields[field.editorType],field);}else if(_.isString(field)){field=fields[field];}\nfield=utils.extend({},fields.base,field);return utils.template(field,{record:this,column:column},true,true);},createFields:function(columns){columns.forEach(function(column){if(column.editor&&!this.hasChild(column.index)){this.initField(column);}},this);return this;},getColumn:function(index){return this.columns().getChild(index);},getData:function(){return this.filterData(this.data);},getSavedData:function(){var editor=this.editor(),savedData=editor.getRowData(this.index);savedData=this.filterData(savedData);return this.normalizeData(savedData);},setData:function(data,partial){var currentData=partial?this.data:{};data=this.normalizeData(data);data=utils.extend({},currentData,data);this.set('data',data).updateState();return this;},filterData:function(data){var fields=_.pluck(this.elems(),'index');_.each(this.preserveFields,function(enabled,field){if(enabled&&!_.contains(fields,field)){fields.push(field);}});return _.pick(data,fields);},normalizeData:function(data){var index;this.elems.each(function(elem){index=elem.index;if(data.hasOwnProperty(index)){data[index]=elem.normalizeData(data[index]);}});return data;},clear:function(){this.elems.each('clear');return this;},validate:function(){return this.elems.map('validate');},isValid:function(){return _.every(this.validate(),'valid');},countErrors:function(){var errorsCount=this.elems.filter('error').length;this.errorsCount=errorsCount;return errorsCount;},checkChanges:function(){var savedData=this.getSavedData(),data=this.normalizeData(this.getData());return utils.compare(savedData,data);},updateFields:function(){var fields;fields=this.columns().elems.map(function(column){return this.getChild(column.index)||column;},this);this.fields(fields);return this;},updateState:function(){var diff=this.checkChanges(),changed={};this.hasChanges=!diff.equal;changed[this.index]=this.data;this.editor().set('changed',[changed]);return this;},isActionsColumn:function(column){return column.dataType==='actions';},onColumnsUpdate:function(columns){this.createFields(columns).updateFields();}});});","Magento_Ui/js/grid/editing/editor.min.js":"define(['underscore','mageUtils','uiLayout','mage/translate','uiCollection'],function(_,utils,layout,$t,Collection){'use strict';return Collection.extend({defaults:{rowButtonsTmpl:'ui/grid/editing/row-buttons',headerButtonsTmpl:'ui/grid/editing/header-buttons',successMsg:$t('You have successfully saved your edits.'),errorsCount:0,bulkEnabled:true,multiEditingButtons:true,singleEditingButtons:true,isMultiEditing:false,isSingleEditing:false,permanentlyActive:false,rowsData:[],fields:{},templates:{record:{parent:'${ $.$data.editor.name }',name:'${ $.$data.recordId }',component:'Magento_Ui/js/grid/editing/record',columnsProvider:'${ $.$data.editor.columnsProvider }',editorProvider:'${ $.$data.editor.name }',preserveFields:{'${ $.$data.editor.indexField }':true}}},bulkConfig:{component:'Magento_Ui/js/grid/editing/bulk',name:'${ $.name }_bulk',editorProvider:'${ $.name }',columnsProvider:'${ $.columnsProvider }'},clientConfig:{component:'Magento_Ui/js/grid/editing/client',name:'${ $.name }_client'},viewConfig:{component:'Magento_Ui/js/grid/editing/editor-view',name:'${ $.name }_view',model:'${ $.name }',columnsProvider:'${ $.columnsProvider }'},imports:{rowsData:'${ $.dataProvider }:data.items'},listens:{'${ $.dataProvider }:reloaded':'cancel','${ $.selectProvider }:selected':'onSelectionsChange'},modules:{source:'${ $.dataProvider }',client:'${ $.clientConfig.name }',columns:'${ $.columnsProvider }',bulk:'${ $.bulkConfig.name }',selections:'${ $.selectProvider }'}},initialize:function(){_.bindAll(this,'updateState','countErrors','onDataSaved','onSaveError');this._super().initBulk().initClient().initView();return this;},initObservable:function(){this._super().track(['errorsCount','isMultiEditing','isSingleEditing','isSingleColumnEditing','changed']).observe({canSave:true,activeRecords:[],messages:[]});return this;},initBulk:function(){if(this.bulkEnabled){layout([this.bulkConfig]);}\nreturn this;},initView:function(){layout([this.viewConfig]);return this;},initClient:function(){layout([this.clientConfig]);return this;},initRecord:function(id,isIndex){var record=this.buildRecord(id,isIndex);layout([record]);return this;},initElement:function(record){record.on({'active':this.updateState,'errorsCount':this.countErrors});this.updateState();return this._super();},buildRecord:function(id,isIndex){var recordId=this.getId(id,isIndex),recordTmpl=this.templates.record,record;if(this.getRecord(recordId)){return this;}\nrecord=utils.template(recordTmpl,{editor:this,recordId:id});record.recordId=id;record.data=this.getRowData(id);return record;},edit:function(id,isIndex){var recordId=this.getId(id,isIndex),record=this.getRecord(recordId);record?record.active(true):this.initRecord(recordId);return this;},startEdit:function(id,isIndex){var recordId=this.getId(id,isIndex);this.selections().deselectAll().select(recordId);return this.edit(recordId);},cancel:function(){this.reset().hide().clearMessages().bulk('clear');return this;},hide:function(){this.activeRecords.each('active',false);return this;},reset:function(){this.elems.each(function(record){this.resetRecord(record.recordId);},this);return this;},save:function(){var data;if(!this.isValid()){return this;}\ndata={items:this.getData()};this.clearMessages().columns('showLoader');this.client().save(data).done(this.onDataSaved).fail(this.onSaveError);return this;},validate:function(){return this.activeRecords.map(function(record){return{target:record,valid:record.isValid()};});},isValid:function(){return _.every(this.validate(),'valid');},getData:function(){var data=this.activeRecords.map(function(record){var elemKey,recordData=record.getData();for(elemKey in recordData){if(_.isUndefined(recordData[elemKey])){recordData[elemKey]=null;}}\nreturn recordData;});return _.indexBy(data,this.indexField);},setData:function(data,partial){this.activeRecords.each('setData',data,partial);return this;},resetRecord:function(id,isIndex){var record=this.getRecord(id,isIndex),data=this.getRowData(id,isIndex);if(record&&data){record.setData(data);}\nreturn this;},getRecord:function(id,isIndex){return this.elems.findWhere({recordId:this.getId(id,isIndex)});},formRecordName:function(id,isIndex){id=this.getId(id,isIndex);return this.name+'.'+id;},disableFields:function(fields){var columns=this.columns().elems(),data=utils.copy(this.fields);columns.forEach(function(column){var index=column.index,field=data[index]=data[index]||{};field.disabled=_.contains(fields,index);});this.set('fields',data);return this;},getId:function(id,isIndex){var rowsData=this.rowsData,record;if(isIndex===true){record=rowsData[id];id=record?record[this.indexField]:false;}\nreturn id;},getRowData:function(id,isIndex){id=this.getId(id,isIndex);return _.find(this.rowsData,function(row){return row[this.indexField]===id;},this);},isActive:function(id,isIndex){var record=this.getRecord(id,isIndex);return _.contains(this.activeRecords(),record);},hasActive:function(){return!!this.activeRecords().length||this.permanentlyActive;},countActive:function(){return this.activeRecords().length;},countErrors:function(){var errorsCount=0;this.activeRecords.each(function(record){errorsCount+=record.errorsCount;});this.errorsCount=errorsCount;return errorsCount;},countErrorsMessage:function(){return $t('There are {placeholder} messages requires your attention.').replace('{placeholder}',this.countErrors());},hasErrors:function(){return!!this.countErrors();},updateState:function(){var active=this.elems.filter('active'),activeCount=active.length,columns=this.columns().elems;columns.each('disableAction',!!activeCount);this.isMultiEditing=activeCount>1;this.isSingleEditing=activeCount===1;this.activeRecords(active);return this;},getSelections:function(){return this.selections().getPageSelections();},editSelected:function(){var selections=this.getSelections();this.elems.each(function(record){if(!_.contains(selections,record.recordId)){record.active(false);}});selections.forEach(function(id){this.edit(id);},this);return this;},hasMessages:function(){return this.messages().length;},addMessage:function(message){var messages=this.messages();Array.isArray(message)?messages.push.apply(messages,message):messages.push(message);this.messages(messages);return this;},clearMessages:function(){this.messages.removeAll();return this;},onSelectionsChange:function(){if(this.hasActive()){this.editSelected();}},onDataSaved:function(){var msg={type:'success',message:this.successMsg};this.addMessage(msg).source('reload',{refresh:true});},onSaveError:function(errors){this.addMessage(errors).columns('hideLoader');}});});","Magento_Ui/js/grid/editing/editor-view.min.js":"define(['ko','Magento_Ui/js/lib/view/utils/async','underscore','uiRegistry','uiClass'],function(ko,$,_,registry,Class){'use strict';return Class.extend({defaults:{rootSelector:'${ $.columnsProvider }:.admin__data-grid-wrap',tableSelector:'${ $.rootSelector } -> table',rowSelector:'${ $.tableSelector } tbody tr.data-row',headerButtonsTmpl:'<!-- ko template: headerButtonsTmpl --><!-- /ko -->',bulkTmpl:'<!-- ko scope: bulk -->'+'<!-- ko template: getTemplate() --><!-- /ko -->'+'<!-- /ko -->',rowTmpl:'<!-- ko with: _editor -->'+'<!-- ko if: isActive($row()._rowIndex, true) -->'+'<!-- ko with: getRecord($row()._rowIndex, true) -->'+'<!-- ko template: rowTmpl --><!-- /ko -->'+'<!-- /ko -->'+'<!-- ko if: isSingleEditing && singleEditingButtons -->'+'<!-- ko template: rowButtonsTmpl --><!-- /ko -->'+'<!-- /ko -->'+'<!-- /ko -->'+'<!-- /ko -->'},initialize:function(){_.bindAll(this,'initRoot','initTable','initRow','rowBindings','tableBindings');this._super();this.model=registry.get(this.model);$.async(this.rootSelector,this.initRoot);$.async(this.tableSelector,this.initTable);$.async(this.rowSelector,this.initRow);return this;},initRoot:function(node){$(this.headerButtonsTmpl).insertBefore(node).applyBindings(this.model);return this;},initTable:function(table){$(table).bindings(this.tableBindings);this.initBulk(table);return this;},initBulk:function(table){var tableBody=$('tbody',table)[0];$(this.bulkTmpl).prependTo(tableBody).applyBindings(this.model);return this;},initRow:function(row){var $editingRow;$(row).extendCtx({_editor:this.model}).bindings(this.rowBindings);$editingRow=$(this.rowTmpl).insertBefore(row).applyBindings(row);ko.utils.domNodeDisposal.addDisposeCallback(row,this.removeEditingRow.bind(this,$editingRow));return this;},rowBindings:function(ctx){var model=this.model;return{visible:ko.computed(function(){var record=ctx.$row(),index=record&&record._rowIndex;return!model.isActive(index,true);})};},tableBindings:function(){var model=this.model;return{css:{'_in-edit':ko.computed(function(){return model.hasActive()&&!model.permanentlyActive;})}};},removeEditingRow:function(row){_.toArray(row).forEach(ko.removeNode);}});});","Magento_Ui/js/grid/editing/bulk.min.js":"define(['underscore','mageUtils','./record'],function(_,utils,Record){'use strict';function removeEmpty(data){data=utils.flatten(data);data=_.omit(data,utils.isEmpty);return utils.unflatten(data);}\nreturn Record.extend({defaults:{template:'ui/grid/editing/bulk',active:false,templates:{fields:{select:{caption:' '}}},imports:{active:'${ $.editorProvider }:isMultiEditing'},listens:{data:'updateState',active:'updateState'}},initObservable:function(){this._super().track({hasData:false});return this;},buildField:function(){var field=this._super(),rules=field.validation;if(rules){delete rules['required-entry'];}\nreturn field;},apply:function(){if(this.isValid()){this.applyData().clear();}\nreturn this;},applyData:function(data){data=data||this.getData();this.editor('setData',data,true);return this;},getData:function(){return removeEmpty(this._super());},updateState:function(){var fields=_.keys(this.getData()),hasData=!!fields.length;this.hasData=hasData;if(!this.active()){fields=[];}\nthis.editor('disableFields',fields);this.editor('canSave',!fields.length);return this;}});});","Magento_Ui/js/grid/editing/client.min.js":"define(['jquery','underscore','mageUtils','uiClass'],function($,_,utils,Class){'use strict';return Class.extend({defaults:{validateBeforeSave:true,requestConfig:{dataType:'json',type:'POST'}},initialize:function(){_.bindAll(this,'onSuccess','onError');return this._super();},send:function(config){var deffer=$.Deferred();config=utils.extend({},this.requestConfig,config);$.ajax(config).done(_.partial(this.onSuccess,deffer)).fail(_.partial(this.onError,deffer));return deffer.promise();},save:function(data){var save=this._save.bind(this,data);return this.validateBeforeSave?this.validate(data).pipe(save):save();},validate:function(data){return this.send({url:this.validateUrl,data:data});},_save:function(data){return this.send({url:this.saveUrl,data:data});},createError:function(msg){return{type:'error',message:msg};},onError:function(promise,xhr,status,err){var msg;msg=xhr.status!==200?xhr.status+' ('+xhr.statusText+')':err;promise.reject(this.createError(msg));},onSuccess:function(promise,data){var errors;if(data.error){errors=_.map(data.messages,this.createError,this);promise.reject(errors);}else{promise.resolve(data);}}});});","Magento_Ui/js/grid/sticky/sticky.min.js":"define(['Magento_Ui/js/lib/view/utils/async','underscore','uiComponent','Magento_Ui/js/lib/view/utils/raf'],function($,_,Component,raf){'use strict';return Component.extend({defaults:{listingSelector:'${ $.listingProvider }::not([data-role = \"sticky-el-root\"])',toolbarSelector:'${ $.toolbarProvider }::not([data-role = \"sticky-el-root\"])',bulkRowSelector:'[data-role = \"data-grid-bulk-row\"]',bulkRowHeaderSelector:'.data-grid-info-panel:visible',tableSelector:'table',columnSelector:'thead tr th',rowSelector:'tbody tr',toolbarCollapsiblesSelector:'[data-role=\"toolbar-menu-item\"]',toolbarCollapsiblesActiveClass:'_active',template:'ui/grid/sticky/sticky',stickyContainerSelector:'.sticky-header',stickyElementSelector:'[data-role = \"sticky-el-root\"]',leftDataGridCapSelector:'.data-grid-cap-left',rightDataGridCapSelector:'.data-grid-cap-right',visible:false,enableToolbar:true,enableHeader:true,modules:{toolbar:'${ $.toolbarProvider }',listing:'${ $.listingProvider }'},otherStickyElsSize:77,containerNode:null,listingNode:null,toolbarNode:null,stickyListingNode:null,stickyToolbarNode:null,storedOriginalToolbarElements:[],cache:{},flags:{},dirtyFlag:'dirty'},initialize:function(){this._super();_.bindAll(this,'adjustStickyElems','initListingNode','initToolbarNode','initContainerNode','initColumns','initStickyListingNode','initStickyToolbarNode','initLeftDataGridCap','initRightDataGridCap');$.async(this.listingSelector,this.initListingNode);$.async(this.toolbarSelector,this.initToolbarNode);$.async(this.stickyContainerSelector,this,this.initContainerNode);return this;},initObservable:function(){this._super().track('visible');return this;},initListingNode:function(node){if($(node).is(this.stickyElementSelector)){return;}\nthis.listingNode=$(node);$.async(this.columnSelector,node,this.initColumns);},initToolbarNode:function(node){if($(node).is(this.stickyElementSelector)){return;}\nthis.toolbarNode=$(node);},initStickyListingNode:function(node){this.stickyListingNode=$(node);this.checkPos();this.initListeners();},initStickyToolbarNode:function(node){this.stickyToolbarNode=$(node);},initContainerNode:function(node){this.containerNode=$(node);$.async(this.leftDataGridCapSelector,node,this.initLeftDataGridCap);$.async(this.rightDataGridCapSelector,node,this.initRightDataGridCap);$.async(this.stickyElementSelector,this.listing(),this.initStickyListingNode);$.async(this.stickyElementSelector,this.toolbar(),this.initStickyToolbarNode);},initColumns:function(){this.columns=this.listingNode.find(this.columnSelector);},initLeftDataGridCap:function(node){this.leftDataGridCap=$(node);},initRightDataGridCap:function(node){this.rightDataGridCap=$(node);},initListeners:function(){this.adjustStickyElems();this.initOnResize().initOnScroll().initOnListingScroll();return this;},initOnScroll:function(){this.lastHorizontalScrollPos=$(window).scrollLeft();document.addEventListener('scroll',function(){this.flags.scrolled=true;}.bind(this));return this;},initOnListingScroll:function(){$(this.listingNode).on('scroll',function(e){this.flags.listingScrolled=true;this.flags.listingScrolledValue=$(e.target).scrollLeft();}.bind(this));return this;},initOnResize:function(){$(window).on('resize',function(){this.flags.resized=true;}.bind(this));return this;},adjustStickyElems:function(){if(this.flags.resized||this.flags.scrolled){this.checkPos();}\nif(this.visible){this.checkTableElemsWidth();if(this.flags.originalWidthChanged){this.adjustContainerElemsWidth();}\nif(this.flags.resized){this.onResize();}\nif(this.flags.scrolled){this.onWindowScroll();}\nif(this.flags.listingScrolled){this.onListingScroll(this.flags.listingScrolledValue);}}\n_.each(this.flags,function(val,key){if(val===this.dirtyFlag){this.flags[key]=false;}else if(val){this.flags[key]=this.dirtyFlag;}},this);raf(this.adjustStickyElems);},onWindowScroll:function(){var scrolled=$(window).scrollLeft(),horizontal=this.lastHorizontalScrollPos!==scrolled;if(horizontal){this.adjustOffset().adjustDataGridCapPositions();this.lastHorizontalScrollPos=scrolled;}else{this.checkPos();}},onListingScroll:function(scrolled){this.adjustOffset(scrolled);},onResize:function(){this.checkPos();this.adjustContainerElemsWidth().adjustDataGridCapPositions();},checkTableElemsWidth:function(){var newWidth=this.getTableWidth();if(this.cache.tableWidth!==newWidth){this.cache.tableWidth=newWidth;this.flags.originalWidthChanged=true;}else if(this.cache.colChecksum!==this.getColsChecksum()){this.cache.colChecksum=this.getColsChecksum();this.flags.originalWidthChanged=true;}},getColsChecksum:function(){return _.reduce(this.columns,function(pv,cv){return($(pv).width()||pv)+''+$(cv).width();});},getListingWidth:function(){return this.listingNode.width();},getTableWidth:function(){return this.listingNode.find(this.tableSelector).width();},getTopElement:function(){return this.toolbarNode||this.listingNode;},getOtherStickyElementsSize:function(){return this.otherStickyElsSize;},getBulkRowHeight:function(){return this.listingNode.find(this.bulkRowSelector).filter(':visible').height();},getListingTopYCoord:function(){var bulkRowHeight=this.getBulkRowHeight();return this.listingNode.find('tbody').offset().top-\nthis.containerNode.height()-\n$(window).scrollTop()+\nbulkRowHeight;},getMustBeSticky:function(){var stickyTopCondition=this.getListingTopYCoord()-this.getOtherStickyElementsSize(),stickyBottomCondition=this.listingNode.offset().top+\nthis.listingNode.height()-\n$(window).scrollTop()+\nthis.getBulkRowHeight()-\nthis.getOtherStickyElementsSize();return stickyTopCondition<0&&stickyBottomCondition>0;},adjustContainerElemsWidth:function(){this.resizeContainer().resizeCols().resizeBulk();return this;},resizeContainer:function(){var listingWidth=this.getListingWidth();this.stickyListingNode.innerWidth(listingWidth);this.stickyListingNode.find(this.tableSelector).innerWidth(this.getTableWidth());if(this.stickyToolbarNode){this.stickyToolbarNode.innerWidth(listingWidth);}\nreturn this;},resizeCols:function(){var cols=this.listingNode.find(this.columnSelector);this.stickyListingNode.find(this.columnSelector).each(function(ind){var originalColWidth=$(cols[ind]).width();$(this).width(originalColWidth);});return this;},resizeBulk:function(){var bulk=this.containerNode.find(this.bulkRowHeaderSelector)[0];if(bulk){$(bulk).innerWidth(this.getListingWidth());}\nreturn this;},resetToTop:function(){var posOfTopEl=this.getTopElement().offset().top-this.getOtherStickyElementsSize()||0;$(window).scrollTop(posOfTopEl);},adjustOffset:function(val){val=val||this.listingNode.scrollLeft();this.stickyListingNode.offset({left:this.listingNode.offset().left-val});return this;},adjustDataGridCapPositions:function(){this.adjustLeftDataGridCapPos().adjustRightDataGridCapPos();return this;},adjustLeftDataGridCapPos:function(){this.leftDataGridCap.offset({left:this.listingNode.offset().left-this.leftDataGridCap.width()});return this;},adjustRightDataGridCapPos:function(){this.rightDataGridCap.offset({left:this.listingNode.offset().left+this.listingNode.width()});return this;},collapseOriginalElements:function(){this.toolbarNode.find(this.toolbarCollapsiblesSelector).css('visibility','hidden');$(this.listingNode.find(this.bulkRowSelector)[0]).css('visibility','hidden');},restoreOriginalElements:function(){this.toolbarNode.find(this.toolbarCollapsiblesSelector).css('visibility','visible');$(this.listingNode.find(this.bulkRowSelector)[0]).css('visibility','visible');},toggleContainerVisibility:function(){this.visible=!this.visible;return this;},checkPos:function(){var isSticky=this.visible,mustBeSticky=this.getMustBeSticky(),needChange=isSticky!==mustBeSticky;if(needChange){if(mustBeSticky){this.collapseOriginalElements();this.toggleContainerVisibility();this.adjustContainerElemsWidth().adjustOffset().adjustDataGridCapPositions();}else{this.toggleContainerVisibility();this.restoreOriginalElements();}}\nreturn needChange;}});});","Magento_Ui/js/view/messages.min.js":"define(['ko','jquery','uiComponent','../model/messageList','jquery-ui-modules/effect-blind'],function(ko,$,Component,globalMessages){'use strict';return Component.extend({defaults:{template:'Magento_Ui/messages',selector:'[data-role=checkout-messages]',isHidden:false,hideTimeout:5000,hideSpeed:500,listens:{isHidden:'onHiddenChange'}},initialize:function(config,messageContainer){this._super().initObservable();this.messageContainer=messageContainer||config.messageContainer||globalMessages;return this;},initObservable:function(){this._super().observe('isHidden');return this;},isVisible:function(){return this.isHidden(this.messageContainer.hasMessages());},removeAll:function(){this.messageContainer.clear();},onHiddenChange:function(isHidden){if(isHidden){setTimeout(function(){$(this.selector).hide('slow');}.bind(this),this.hideTimeout);}}});});","Magento_Ui/js/dynamic-rows/record.min.js":"define(['underscore','uiCollection','uiRegistry'],function(_,uiCollection,registry){'use strict';return uiCollection.extend({defaults:{visible:true,disabled:true,headerLabel:'',label:'',positionProvider:'position',imports:{data:'${ $.provider }:${ $.dataScope }'},listens:{position:'initPosition',elems:'setColumnVisibleListener'},links:{position:'${ $.name }.${ $.positionProvider }:value'},exports:{recordId:'${ $.provider }:${ $.dataScope }.record_id'},modules:{parentComponent:'${ $.parentName }'}},initialize:function(){var self=this;this._super();registry.async(this.name+'.'+this.positionProvider)(function(component){component.hasChanged=function(){return this.value().toString()!=this.initialValue.toString();};if(!component.initialValue){component.initialValue=self.parentComponent().maxPosition;component.bubble('update',component.hasChanged());}});return this;},initConfig:function(){this._super();this.label=this.label||this.headerLabel;return this;},initObservable:function(){this._super().track('position').observe(['visible','disabled','data','label']);return this;},initPosition:function(position){var pos=parseInt(position,10);this.parentComponent().setMaxPosition(pos,this);if(!pos&&pos!==0){this.position=this.parentComponent().maxPosition;}},setColumnVisibleListener:function(){var elem=_.find(this.elems(),function(curElem){return!curElem.hasOwnProperty('visibleListener');});if(!elem){return;}\nthis.childVisibleListener(elem);if(!elem.visibleListener){elem.on('visible',this.childVisibleListener.bind(this,elem));}\nelem.visibleListener=true;},childVisibleListener:function(data){this.setVisibilityColumn(data.index,data.visible());},reset:function(){var elems=this.elems(),nameIsEqual,dataScopeIsEqual;_.each(elems,function(elem){nameIsEqual=this.name+'.'+this.positionProvider===elem.name;dataScopeIsEqual=this.dataScope===elem.dataScope;if(!(nameIsEqual||dataScopeIsEqual)&&_.isFunction(elem.reset)){elem.reset();}},this);return this;},clear:function(){var elems=this.elems(),nameIsEqual,dataScopeIsEqual;_.each(elems,function(elem){nameIsEqual=this.name+'.'+this.positionProvider===elem.name;dataScopeIsEqual=this.dataScope===elem.dataScope;if(!(nameIsEqual||dataScopeIsEqual)&&_.isFunction(elem.reset)){elem.clear();}},this);return this;},getLabel:function(label){if(_.isString(label)){this.label(label);}else if(label&&this.label()){return this.label();}else{this.label(this.headerLabel);}\nreturn this.label();},setVisible:function(state){this.elems.each(function(cell){cell.visible(state);});},setVisibilityColumn:function(index,state){var elems=this.elems(),curElem=parseInt(index,10),label;if(!this.parentComponent()){return false;}\nif(_.isNaN(curElem)){_.findWhere(elems,{index:index}).visible(state);label=_.findWhere(this.parentComponent().labels(),{name:index});label.defaultLabelVisible&&label.visible(state);}else{elems[curElem].visible(state);}},setDisabled:function(state){this.elems.each(function(cell){cell.disabled(state);});},setDisabledColumn:function(index,state){index=~~index;this.elems()[index].disabled(state);}});});","Magento_Ui/js/dynamic-rows/dnd.min.js":"define(['ko','jquery','underscore','uiElement','Magento_Ui/js/lib/view/utils/async'],function(ko,$,_,Element){'use strict';var transformProp;function getContext(elem){return ko.contextFor(elem);}\ntransformProp=(function(){var style=document.createElement('div').style,base='Transform',vendors=['webkit','moz','ms','o'],vi=vendors.length,property;if(typeof style.transform!=='undefined'){return'transform';}\nwhile(vi--){property=vendors[vi]+base;if(typeof style[property]!=='undefined'){return property;}}})();return Element.extend({defaults:{separatorsClass:{top:'_dragover-top',bottom:'_dragover-bottom'},step:'auto',tableClass:'table.admin__dynamic-rows',recordsCache:[],draggableElement:{},draggableElementClass:'_dragged',elemPositions:[],listens:{'${ $.recordsProvider }:elems':'setCacheRecords'},modules:{parentComponent:'${ $.recordsProvider }'}},initialize:function(){_.bindAll(this,'mousemoveHandler','mouseupHandler');this._super().body=$('body');return this;},initObservable:function(){this._super().observe(['recordsCache']);return this;},initListeners:function(elem,data){$(elem).on('mousedown touchstart',this.mousedownHandler.bind(this,data,elem));},mousedownHandler:function(data,elem,event){var recordNode=this.getRecordNode(elem),originRecord=$(elem).parents('tr').eq(0),drEl=this.draggableElement,$table=$(elem).parents('table').eq(0),$tableWrapper=$table.parent(),outerHight=$table.children('thead').outerHeight()===undefined?0:$table.children('thead').outerHeight();this.disableScroll();$(recordNode).addClass(this.draggableElementClass);$(originRecord).addClass(this.draggableElementClass);this.step=this.step==='auto'?originRecord.height()/ 2:this.step;drEl.originRow=originRecord;drEl.instance=recordNode=this.processingStyles(recordNode,elem);drEl.instanceCtx=this.getRecord(originRecord[0]);drEl.eventMousedownY=this.getPageY(event);drEl.minYpos=$table.offset().top-originRecord.offset().top+outerHight;drEl.maxYpos=drEl.minYpos+$table.children('tbody').outerHeight()-originRecord.outerHeight();$tableWrapper.append(recordNode);this.body.on('mousemove touchmove',this.mousemoveHandler);this.body.on('mouseup touchend',this.mouseupHandler);},mousemoveHandler:function(event){var depEl=this.draggableElement,pageY=this.getPageY(event),positionY=pageY-depEl.eventMousedownY,processingPositionY=positionY+'px',processingMaxYpos=depEl.maxYpos+'px',processingMinYpos=depEl.minYpos+'px',depElement=this.getDepElement(depEl.instance,positionY,depEl.originRow);if(depElement){depEl.depElement?depEl.depElement.elem.removeClass(depEl.depElement.className):false;depEl.depElement=depElement;depEl.depElement.insert!=='none'?depEl.depElement.elem.addClass(depElement.className):false;}else if(depEl.depElement&&depEl.depElement.insert!=='none'){depEl.depElement.elem.removeClass(depEl.depElement.className);depEl.depElement.insert='none';}\nif(positionY>depEl.minYpos&&positionY<depEl.maxYpos){$(depEl.instance)[0].style[transformProp]='translateY('+processingPositionY+')';}else if(positionY<depEl.minYpos){$(depEl.instance)[0].style[transformProp]='translateY('+processingMinYpos+')';}else if(positionY>=depEl.maxYpos){$(depEl.instance)[0].style[transformProp]='translateY('+processingMaxYpos+')';}},mouseupHandler:function(event){var depElementCtx,drEl=this.draggableElement,pageY=this.getPageY(event),positionY=pageY-drEl.eventMousedownY;this.enableScroll();drEl.depElement=this.getDepElement(drEl.instance,positionY,this.draggableElement.originRow);drEl.instance.remove();if(drEl.depElement){depElementCtx=this.getRecord(drEl.depElement.elem[0]);drEl.depElement.elem.removeClass(drEl.depElement.className);if(drEl.depElement.insert!=='none'){this.setPosition(drEl.depElement.elem,depElementCtx,drEl);}}\ndrEl.originRow.removeClass(this.draggableElementClass);this.body.off('mousemove touchmove',this.mousemoveHandler);this.body.off('mouseup touchend',this.mouseupHandler);this.draggableElement={};},setPosition:function(depElem,depElementCtx,dragData){var depElemPosition=~~depElementCtx.position;if(dragData.depElement.insert==='after'){dragData.instanceCtx.position=depElemPosition+1;}else if(dragData.depElement.insert==='before'){dragData.instanceCtx.position=depElemPosition;}},getDepElement:function(curInstance,position,row){var tableSelector=this.tableClass+' tr',$table=$(row).parents('table').eq(0),$curInstance=$(curInstance),recordsCollection=$table.find('table').length?$table.find('tbody > tr').filter(function(index,elem){return!$(elem).parents(tableSelector).length;}):$table.find('tbody > tr'),curInstancePositionTop=$curInstance.position().top,curInstancePositionBottom=curInstancePositionTop+$curInstance.height();if(position<0){return this._getDepElement(recordsCollection,'before',curInstancePositionTop);}else if(position>0){return this._getDepElement(recordsCollection,'after',curInstancePositionBottom);}},_getDepElement:function(collection,position,dragPosition){var rec,rangeEnd,rangeStart,result,className,i=0,length=collection.length;for(i;i<length;i++){rec=collection.eq(i);if(position==='before'){rangeStart=collection.eq(i).position().top-this.step;rangeEnd=rangeStart+this.step*2;className=this.separatorsClass.top;}else if(position==='after'){rangeEnd=rec.position().top+rec.height()+this.step;rangeStart=rangeEnd-this.step*2;className=this.separatorsClass.bottom;}\nif(dragPosition>rangeStart&&dragPosition<rangeEnd){result={elem:rec,insert:rec[0]===this.draggableElement.originRow[0]?'none':position,className:className};}}\nreturn result;},_setDefaultPosition:function(elem,data){var originRecord=$(elem).parents('tr').eq(0),position=originRecord.position();++position.top;$(data).css(position);},setCacheRecords:function(records){this.recordsCache(records);},processingStyles:function(data,elem){var table=$(elem).parents('table').eq(0),columns=table.find('th'),recordColumns=$(data).find('td');this._setDefaultPosition(elem,$(data));this._setColumnsWidth(columns,recordColumns);this._setTableWidth(table,$(data));return data;},_setTableWidth:function(originalTable,recordTable){recordTable.outerWidth(originalTable.outerWidth());},_setColumnsWidth:function(originColumns,recordColumns){var i=0,length=originColumns.length;for(i;i<length;i++){recordColumns.eq(i).outerWidth(originColumns.eq(i).outerWidth());}},getRecordNode:function(record){var $record=$(record),table=$record.parents('table')[0].cloneNode(true),$table=$(table);$table.find('tr').remove();$table.append($record.parents('tr')[0].cloneNode(true));return table;},getRecord:function(elem){var ctx=getContext(elem),index=_.isFunction(ctx.$index)?ctx.$index():ctx.$index;return this.recordsCache()[index];},getPageY:function(event){var pageY;if(event.type.indexOf('touch')>=0){if(event.originalEvent.touches[0]){pageY=event.originalEvent.touches[0].pageY;}else{pageY=event.originalEvent.changedTouches[0].pageY;}}else{pageY=event.pageY;}\nreturn pageY;},disableScroll:function(){document.body.addEventListener('touchmove',this.preventDefault,{passive:false});},enableScroll:function(){document.body.removeEventListener('touchmove',this.preventDefault,{passive:false});},preventDefault:function(event){event.preventDefault();}});});","Magento_Ui/js/dynamic-rows/dynamic-rows-grid.min.js":"define(['underscore','./dynamic-rows'],function(_,dynamicRows){'use strict';return dynamicRows.extend({defaults:{dataProvider:'',insertData:[],map:null,cacheGridData:[],deleteProperty:false,positionProvider:'position',dataLength:0,identificationProperty:'id',identificationDRProperty:'id',listens:{'insertData':'processingInsertData','recordData':'initElements setToInsertData'},mappingSettings:{enabled:true,distinct:true}},initialize:function(){this.setToInsertData=_.debounce(this.setToInsertData,200);return this._super();},initObservable:function(){this._super().observe(['insertData']);return this;},setToInsertData:function(){var insertData=[],obj;if(this.recordData().length&&!this.update){_.each(this.recordData(),function(recordData){obj={};obj[this.map[this.identificationProperty]]=recordData[this.identificationProperty];insertData.push(obj);},this);if(insertData.length){this.source.set(this.dataProvider,insertData);}}},initChildren:function(){this.getChildItems().forEach(function(data,index){this.processingAddChild(data,this.startIndex+index,data[this.identificationDRProperty]);},this);return this;},initElements:function(data){var newData=this.getNewData(data);this.parsePagesData(data);if(newData.length){if(this.insertData().length){this.processingAddChild(newData[0],data.length-1,newData[0][this.identificationProperty]);}}\nreturn this;},deleteRecord:function(index,recordId){this.updateInsertData(recordId);this._super();},updateInsertData:function(recordId){var data=this.getElementData(this.insertData(),recordId),prop=this.map[this.identificationDRProperty];this.insertData(_.reject(this.source.get(this.dataProvider),function(recordData){return recordData[prop].toString()===data[prop].toString();},this));},getElementData:function(array,index,property){var obj={},result;property?obj[property]=index:obj[this.map[this.identificationDRProperty]]=index;result=_.findWhere(array,obj);if(!result){property?obj[property]=index.toString():obj[this.map[this.identificationDRProperty]]=index.toString();}\nresult=_.findWhere(array,obj);return result;},processingAddChild:function(ctx,index,prop){if(this._elems.length>this.pageSize){return false;}\nthis.showSpinner(true);this.addChild(ctx,index,prop);},getNewData:function(data){var changes=[],tmpObj={};if(data.length!==this.relatedData.length){_.each(data,function(obj){tmpObj[this.identificationDRProperty]=obj[this.identificationDRProperty];if(!_.findWhere(this.relatedData,tmpObj)){changes.push(obj);}},this);}\nreturn changes;},processingInsertData:function(data){var changes,obj={};changes=this._checkGridData(data);this.cacheGridData=data;if(changes.length){obj[this.identificationDRProperty]=changes[0][this.map[this.identificationProperty]];if(_.findWhere(this.recordData(),obj)){return false;}\nchanges.forEach(function(changedObject){this.mappingValue(changedObject);},this);}},mappingValue:function(data){var obj={},tmpObj={};if(this.mappingSettings.enabled){_.each(this.map,function(prop,index){obj[index]=!_.isUndefined(data[prop])?data[prop]:'';},this);}else{obj=data;}\nif(this.mappingSettings.distinct){tmpObj[this.identificationDRProperty]=obj[this.identificationDRProperty];if(_.findWhere(this.recordData(),tmpObj)){return false;}}\nif(!obj.hasOwnProperty(this.positionProvider)){this.setMaxPosition();obj[this.positionProvider]=this.maxPosition;}\nthis.source.set(this.dataScope+'.'+this.index+'.'+this.recordData().length,obj);},_checkGridData:function(data){var cacheLength=this.cacheGridData.length,curData=data.length,max=cacheLength>curData?this.cacheGridData:data,changes=[],obj={};max.forEach(function(record,index){obj[this.map[this.identificationDRProperty]]=record[this.map[this.identificationDRProperty]];if(!_.where(this.cacheGridData,obj).length){changes.push(data[index]);}},this);return changes;}});});","Magento_Ui/js/dynamic-rows/action-delete.min.js":"define(['Magento_Ui/js/form/element/abstract'],function(Abstract){'use strict';return Abstract.extend({defaults:{links:{value:false}},deleteRecord:function(index,id){this.bubble('deleteRecord',index,id);}});});","Magento_Ui/js/dynamic-rows/dynamic-rows.min.js":"define(['ko','mageUtils','underscore','uiLayout','uiCollection','uiRegistry','mage/translate','jquery'],function(ko,utils,_,layout,uiCollection,registry,$t,$){'use strict';function castValue(value){if(_.isUndefined(value)||value===''||_.isNull(value)){return false;}\nreturn value;}\nfunction compareArrays(base,current){var index=0,length=base.length;if(base.length!==current.length){return false;}\nfor(index;index<length;index++){if(_.isArray(base[index])&&_.isArray(current[index])){if(!compareArrays(base[index],current[index])){return false;}}else if(typeof base[index]==='object'&&typeof current[index]==='object'){if(!compareObjects(base[index],current[index])){return false;}}else if(castValue(base[index])!=castValue(current[index])){return false;}}\nreturn true;}\nfunction compareObjects(base,current){var prop;for(prop in base){if(_.isArray(base[prop])&&_.isArray(current[prop])){if(!compareArrays(base[prop],current[prop])){return false;}}else if(typeof base[prop]==='object'&&typeof current[prop]==='object'){if(!compareObjects(base[prop],current[prop])){return false;}}else if(castValue(base[prop])!=castValue(current[prop])){return false;}}\nreturn true;}\nreturn uiCollection.extend({defaults:{defaultRecord:false,columnsHeader:true,columnsHeaderAfterRender:false,columnsHeaderClasses:'',labels:[],recordTemplate:'record',collapsibleHeader:false,additionalClasses:{},visible:true,disabled:false,fit:false,addButton:true,addButtonLabel:$t('Add'),recordData:[],maxPosition:0,deleteProperty:'delete',identificationProperty:'record_id',deleteValue:true,showSpinner:true,isDifferedFromDefault:false,defaultState:[],defaultPagesState:{},pagesChanged:{},hasInitialPagesState:{},changed:false,fallbackResetTpl:'ui/form/element/helper/fallback-reset-link',dndConfig:{name:'${ $.name }_dnd',component:'Magento_Ui/js/dynamic-rows/dnd',template:'ui/dynamic-rows/cells/dnd',recordsProvider:'${ $.name }',enabled:true},templates:{record:{parent:'${ $.$data.collection.name }',name:'${ $.$data.index }',dataScope:'${ $.$data.collection.index }.${ $.name }',nodeTemplate:'${ $.parent }.${ $.$data.collection.recordTemplate }'}},links:{recordData:'${ $.provider }:${ $.dataScope }.${ $.index }'},listens:{visible:'setVisible',disabled:'setDisabled',childTemplate:'initHeader',recordTemplate:'onUpdateRecordTemplate',recordData:'setDifferedFromDefault parsePagesData setRecordDataToCache',currentPage:'changePage',elems:'checkSpinner',changed:'updateTrigger'},modules:{dnd:'${ $.dndConfig.name }'},pages:1,pageSize:20,relatedData:[],currentPage:1,recordDataCache:[],startIndex:0},setRecordDataToCache:function(data){this.recordDataCache=data;},initialize:function(){_.bindAll(this,'processingDeleteRecord','onChildrenUpdate','checkDefaultState','renderColumnsHeader','deleteHandler','setDefaultState');this._super().initChildren().initDnd().initDefaultRecord().setInitialProperty().setColumnsHeaderListener().checkSpinner();this.on('recordData',this.checkDefaultState);return this;},bubble:function(event){if(event==='deleteRecord'||event==='update'){return false;}\nreturn this._super();},initDnd:function(){if(this.dndConfig.enabled){layout([this.dndConfig]);}\nreturn this;},destroy:function(){if(this.dnd()){this.dnd().destroy();}\nthis._super();},initObservable:function(){this._super().track('childTemplate').observe(['pages','currentPage','recordData','columnsHeader','visible','disabled','labels','showSpinner','isDifferedFromDefault','changed']);return this;},initElement:function(elem){this._super();elem.on({'deleteRecord':this.deleteHandler,'update':this.onChildrenUpdate,'addChild':this.setDefaultState});return this;},deleteHandler:function(index,id){var defaultState;this.setDefaultState();defaultState=this.defaultPagesState[this.currentPage()];this.processingDeleteRecord(index,id);this.pagesChanged[this.currentPage()]=!compareArrays(defaultState,this.arrayFilter(this.getChildItems()));this.changed(_.some(this.pagesChanged));},setInitialProperty:function(){if(_.isArray(this.recordData())){this.recordData.each(function(data,index){this.source.set(this.dataScope+'.'+this.index+'.'+index+'.initialize',true);},this);}\nreturn this;},onChildrenUpdate:function(state){var changed,dataScope,changedElemDataScope;if(state&&!this.hasInitialPagesState[this.currentPage()]){this.setDefaultState();changed=this.getChangedElems(this.elems());dataScope=this.elems()[0].dataScope.split('.');dataScope.splice(dataScope.length-1,1);changed.forEach(function(elem){changedElemDataScope=elem.dataScope.split('.');changedElemDataScope.splice(0,dataScope.length);changedElemDataScope[0]=(parseInt(changedElemDataScope[0],10)-this.pageSize*(this.currentPage()-1)).toString();this.setValueByPath(this.defaultPagesState[this.currentPage()],changedElemDataScope,elem.initialValue);},this);}\nif(this.defaultPagesState[this.currentPage()]){this.setChangedForCurrentPage();}},setDefaultState:function(data){var componentData,childItems;if(!this.hasInitialPagesState[this.currentPage()]){childItems=this.getChildItems();componentData=childItems.length?utils.copy(childItems):utils.copy(this.getChildItems(this.recordDataCache));componentData.forEach(function(dataObj){if(dataObj.hasOwnProperty('initialize')){delete dataObj.initialize;}});this.hasInitialPagesState[this.currentPage()]=true;this.defaultPagesState[this.currentPage()]=data?data:this.arrayFilter(componentData);}},setValueByPath:function(obj,path,value){var prop;if(_.isString(path)){path=path.split('.');}\nif(path.length-1){prop=obj[path[0]];path.splice(0,1);this.setValueByPath(prop,path,value);}else if(path.length&&obj){obj[path[0]]=value;}},getChangedElems:function(array,changed){changed=changed||[];array.forEach(function(elem){if(_.isFunction(elem.elems)){this.getChangedElems(elem.elems(),changed);}else if(_.isFunction(elem.hasChanged)&&elem.hasChanged()){changed.push(elem);}},this);return changed;},setColumnsHeaderListener:function(){if(this.columnsHeaderAfterRender){this.on('recordData',this.renderColumnsHeader);if(_.isArray(this.recordData())&&this.recordData().length){this.renderColumnsHeader();}}\nreturn this;},checkDefaultState:function(){var isRecordDataArray=_.isArray(this.recordData()),initialize,hasNotDefaultRecords=isRecordDataArray?!!this.recordData().filter(function(data){return!data.initialize;}).length:false;if(!this.hasInitialPagesState[this.currentPage()]&&isRecordDataArray&&hasNotDefaultRecords){this.hasInitialPagesState[this.currentPage()]=true;this.defaultPagesState[this.currentPage()]=utils.copy(this.getChildItems().filter(function(data){initialize=data.initialize;delete data.initialize;return initialize;}));this.setChangedForCurrentPage();}else if(this.hasInitialPagesState[this.currentPage()]){this.setChangedForCurrentPage();}},arrayFilter:function(data){var prop;data.forEach(function(elem){for(prop in elem){if(_.isArray(elem[prop])){elem[prop]=_.filter(elem[prop],function(elemProp){return elemProp[this.deleteProperty]!==this.deleteValue;},this);elem[prop].forEach(function(elemProp){if(_.isArray(elemProp)){elem[prop]=this.arrayFilter(elemProp);}},this);}}},this);return data;},updateTrigger:function(val){this.trigger('update',val);},hasChanged:function(){return this.changed();},renderColumnsHeader:function(){this.recordData().length?this.columnsHeader(true):this.columnsHeader(false);},initDefaultRecord:function(){if(this.defaultRecord&&!this.recordData().length){this.addChild();}\nreturn this;},createHeaderTemplate:function(prop){var visible=prop.visible!==false,disabled=_.isUndefined(prop.disabled)?this.disabled():prop.disabled;return{visible:ko.observable(visible),disabled:ko.observable(disabled)};},initHeader:function(){var labels=[],data;if(!this.labels().length){_.each(this.childTemplate.children,function(cell){data=this.createHeaderTemplate(cell.config);cell.config.labelVisible=false;_.extend(data,{defaultLabelVisible:data.visible(),label:cell.config.label,name:cell.name,required:!!cell.config.validation,columnsHeaderClasses:cell.config.columnsHeaderClasses,sortOrder:cell.config.sortOrder});labels.push(data);},this);this.labels(_.sortBy(labels,'sortOrder'));}},setMaxPosition:function(position,elem){if(position||position===0){this.checkMaxPosition(position);this.sort(position,elem);}else{this.maxPosition+=1;}},sort:function(position,elem){var that=this,sorted,updatedCollection;if(this.elems().filter(function(el){return el.position||el.position===0;}).length!==this.getChildItems().length){return false;}\nif(!elem.containers.length){registry.get(elem.name,function(){that.sort(position,elem);});return false;}\nsorted=this.elems().sort(function(propOne,propTwo){return~~propOne.position-~~propTwo.position;});updatedCollection=this.updatePosition(sorted,position,elem.name);this.elems(updatedCollection);},checkSpinner:function(elems){this.showSpinner(!(!this.recordData().length||elems&&elems.length===this.getChildItems().length));},parsePagesData:function(data){this.relatedData=this.deleteProperty?_.filter(data,function(elem){return elem&&elem[this.deleteProperty]!==this.deleteValue;},this):data;this._updatePagesQuantity();},reinitRecordData:function(){this.recordData(_.filter(this.recordData(),function(elem){return elem&&elem[this.deleteProperty]!==this.deleteValue;},this));},getChildItems:function(data,page){var dataRecord=data||this.relatedData,startIndex;this.startIndex=(~~this.currentPage()-1)*this.pageSize;startIndex=page||this.startIndex;return dataRecord.slice(startIndex,this.startIndex+parseInt(this.pageSize,10));},getRecordCount:function(){return _.filter(this.recordData(),function(record){return record&&record[this.deleteProperty]!==this.deleteValue;},this).length;},getColumnsCount:function(){return this.labels().length+(this.dndConfig.enabled?1:0);},processingAddChild:function(ctx,index,prop){this.bubble('addChild',false);if(this.relatedData.length&&this.relatedData.length%this.pageSize===0){this.pages(this.pages()+1);this.nextPage();}else if(~~this.currentPage()!==this.pages()){this.currentPage(this.pages());}\nthis.addChild(ctx,index,prop);},processingDeleteRecord:function(index,recordId){this.deleteRecord(index,recordId);},changePage:function(page){this.clear();if(page===1&&!this.recordData().length){return false;}\nif(~~page>this.pages()){this.currentPage(this.pages());return false;}else if(~~page<1){this.currentPage(1);return false;}\nthis.initChildren();return true;},isFirst:function(){return this.currentPage()===1;},isLast:function(){return this.currentPage()===this.pages();},nextPage:function(){this.currentPage(this.currentPage()+1);},previousPage:function(){this.currentPage(this.currentPage()-1);},updatePosition:function(collection,position,elemName){var curPos,parsePosition=~~position,result=_.filter(collection,function(record){return~~record.position===parsePosition;});if(result[1]){curPos=parsePosition+1;result[0].name===elemName?result[1].position=curPos:result[0].position=curPos;this.updatePosition(collection,curPos);}\nreturn collection;},checkMaxPosition:function(position){var max=0,pos;this.recordData.each(function(record){pos=~~record.position;pos>max?max=pos:false;});max<position?max=position:false;this.maxPosition=max;},removeMaxPosition:function(){this.maxPosition=0;this.elems.each(function(record){this.maxPosition<record.position?this.maxPosition=~~record.position:false;},this);},onUpdateRecordTemplate:function(recordName){if(recordName){this.recordTemplate=recordName;this.reload();}},deleteRecord:function(index,recordId){var recordInstance,lastRecord,recordsData,lastRecordIndex;if(this.deleteProperty){recordsData=this.recordData();recordInstance=_.find(this.elems(),function(elem){return elem.index===index;});recordInstance.destroy();this.elems([]);this._updateCollection();this.removeMaxPosition();recordsData[recordInstance.index][this.deleteProperty]=this.deleteValue;this.recordData(recordsData);this.reinitRecordData();this.reload();}else{this.update=true;if(~~this.currentPage()===this.pages()){lastRecordIndex=this.startIndex+this.getChildItems().length-1;lastRecord=_.findWhere(this.elems(),{index:lastRecordIndex})||_.findWhere(this.elems(),{index:lastRecordIndex.toString()});lastRecord.destroy();}\nthis.removeMaxPosition();recordsData=this._getDataByProp(recordId);this._updateData(recordsData);this.update=false;}\nthis._reducePages();this._sort();},_updatePagesQuantity:function(){var pages=Math.ceil(this.relatedData.length / this.pageSize)||1;this.pages(pages);},_reducePages:function(){if(this.pages()<~~this.currentPage()){this.currentPage(this.pages());}},_getDataByProp:function(id,prop){prop=prop||this.identificationProperty;return _.reject(this.getChildItems(),function(recordData){return recordData[prop].toString()===id.toString();},this);},_sort:function(){this.elems(this.elems().sort(function(propOne,propTwo){return~~propOne.position-~~propTwo.position;}));},_updateData:function(data){var elems=_.clone(this.elems()),path,dataArr;dataArr=this.recordData.splice(this.startIndex,this.recordData().length-this.startIndex);dataArr.splice(0,this.pageSize);elems=_.sortBy(this.elems(),function(elem){return~~elem.index;});data.concat(dataArr).forEach(function(rec,idx){if(elems[idx]){elems[idx].recordId=rec[this.identificationProperty];}\nif(!rec.position){rec.position=this.maxPosition;this.setMaxPosition();}\npath=this.dataScope+'.'+this.index+'.'+(this.startIndex+idx);this.source.set(path,rec);},this);this.elems(elems);},reload:function(){this.clear();this.initChildren(false,true);this._updatePagesQuantity();this._reducePages();},updatePageSize:function(component,event){this.pageSize=$(event.target).val();this.reload();},clear:function(){this.destroyChildren();return this;},reset:function(){var elems=this.elems();_.each(elems,function(elem){if(_.isFunction(elem.reset)){elem.reset();}});},setClasses:function(data){var additional;if(_.isString(data.additionalClasses)){additional=data.additionalClasses.split(' ');data.additionalClasses={};additional.forEach(function(name){data.additionalClasses[name]=true;});}\nif(!data.additionalClasses){data.additionalClasses={};}\n_.extend(data.additionalClasses,{'_fit':data.fit,'_required':data.required,'_error':data.error,'_empty':!this.elems().length,'_no-header':this.columnsHeaderAfterRender||this.collapsibleHeader});return data.additionalClasses;},initChildren:function(){this.showSpinner(true);this.getChildItems().forEach(function(data,index){this.addChild(data,this.startIndex+index);},this);return this;},setVisible:function(state){this.elems.each(function(record){record.setVisible(state);},this);},setDisabled:function(state){this.elems.each(function(record){record.setDisabled(state);},this);},setVisibilityColumn:function(index,state){this.elems.each(function(record){record.setVisibilityColumn(index,state);},this);},setDisabledColumn:function(index,state){this.elems.each(function(record){record.setDisabledColumn(index,state);},this);},addChild:function(data,index,prop){var template=this.templates.record,child;index=index||_.isNumber(index)?index:this.recordData().length;prop=prop||_.isNumber(prop)?prop:index;_.extend(this.templates.record,{recordId:prop});child=utils.template(template,{collection:this,index:index});layout([child]);return this;},restoreToDefault:function(){this.recordData(utils.copy(this.default));this.reload();},setDifferedFromDefault:function(){var recordData;if(this.default){recordData=utils.copy(this.recordData());Array.isArray(recordData)&&recordData.forEach(function(item){delete item['record_id'];});this.isDifferedFromDefault(!_.isEqual(recordData,this.default));}},setChangedForCurrentPage:function(){this.pagesChanged[this.currentPage()]=!compareArrays(this.defaultPagesState[this.currentPage()],this.arrayFilter(this.getChildItems()));this.changed(_.some(this.pagesChanged));}});});","Magento_Ui/js/modal/alert.min.js":"define(['jquery','underscore','jquery-ui-modules/widget','Magento_Ui/js/modal/confirm','mage/translate'],function($,_){'use strict';$.widget('mage.alert',$.mage.confirm,{options:{modalClass:'confirm',title:$.mage.__('Attention'),actions:{always:function(){}},buttons:[{text:$.mage.__('OK'),class:'action-primary action-accept',click:function(){this.closeModal(true);}}]},closeModal:function(){this.options.actions.always();this.element.on('alertclosed',_.bind(this._remove,this));return this._super();}});return function(config){return $('<div></div>').html(config.content).alert(config);};});","Magento_Ui/js/modal/modal-component.min.js":"define(['Magento_Ui/js/lib/view/utils/async','uiCollection','uiRegistry','underscore','./modal'],function($,Collection,registry,_){'use strict';return Collection.extend({defaults:{template:'ui/modal/modal-component',title:'',subTitle:'',options:{modalClass:'',title:'',subTitle:'',buttons:[],keyEventHandlers:{}},valid:true,links:{title:'options.title',subTitle:'options.subTitle'},listens:{state:'onState',title:'setTitle','options.subTitle':'setSubTitle'},modalClass:'modal-component',onCancel:'closeModal'},initialize:function(){this._super();_.bindAll(this,'initModal','openModal','closeModal','toggleModal','setPrevValues','validate');this.initializeContent();return this;},initConfig:function(){return this._super().initSelector().initModalEvents();},initSelector:function(){var modalClass=this.name.replace(/\\./g,'_');this.contentSelector='.'+this.modalClass;this.options.modalClass=this.options.modalClass+' '+modalClass;this.rootSelector='.'+modalClass;return this;},initModalEvents:function(){this.options.keyEventHandlers.escapeKey=this.options.outerClickHandler=this[this.onCancel].bind(this);return this;},initializeContent:function(){$.async({component:this.name},this.initModal);},initToolbarSection:function(){this.set('toolbarSection',this.modal.data('mage-modal').modal.find('header').get(0));},initObservable:function(){this._super();this.observe(['state','focused']);return this;},initModal:function(element){if(!this.modal){this.overrideModalButtonCallback();this.options.modalCloseBtnHandler=this[this.onCancel].bind(this);this.modal=$(element).modal(this.options);this.initToolbarSection();if(this.waitCbk){this.waitCbk();this.waitCbk=null;}}\nreturn this;},openModal:function(){if(this.modal){this.state(true);}else{this.waitCbk=this.openModal;}},closeModal:function(){if(this.modal){this.state(false);}else{this.waitCbk=this.closeModal;}},toggleModal:function(){if(this.modal){this.state(!this.state());}else{this.waitCbk=this.toggleModal;}},setTitle:function(title){if(this.title!==title){this.title=title;}\nif(this.modal){this.modal.modal('setTitle',title);}},setSubTitle:function(subTitle){if(this.subTitle!==subTitle){this.subTitle=subTitle;}\nif(this.modal){this.modal.modal('setSubTitle',subTitle);}},onState:function(state){if(state){this.modal.modal('openModal');this.applyData();}else{this.modal.modal('closeModal');}},validate:function(elem){if(typeof elem==='undefined'){return;}\nif(typeof elem.validate==='function'){this.valid&=elem.validate().valid;}else if(elem.elems){elem.elems().forEach(this.validate,this);}},resetData:function(){this.elems().forEach(this.resetValue,this);},applyData:function(){var applied={};this.elems().forEach(this.gatherValues.bind(this,applied),this);this.applied=applied;},gatherValues:function(applied,elem){if(typeof elem.value==='function'){applied[elem.name]=elem.value();}else if(elem.elems){elem.elems().forEach(this.gatherValues.bind(this,applied),this);}},setPrevValues:function(elem){if(typeof elem.value==='function'){this.modal.focus();elem.value(this.applied[elem.name]);}else if(elem.elems){elem.elems().forEach(this.setPrevValues,this);}},triggerAction:function(action){var targetName=action.targetName,params=action.params||[],actionName=action.actionName,target;target=registry.async(targetName);if(target&&typeof target==='function'&&actionName){params.unshift(actionName);target.apply(target,params);}},overrideModalButtonCallback:function(){var buttons=this.options.buttons;if(buttons&&buttons.length){buttons.forEach(function(button){button.click=this.getButtonClickHandler(button.actions);},this);}},getButtonClickHandler:function(actionsConfig){var actions=actionsConfig.map(function(actionConfig){if(_.isObject(actionConfig)){return this.triggerAction.bind(this,actionConfig);}\nreturn this[actionConfig]?this[actionConfig].bind(this):function(){};},this);return function(){actions.forEach(function(action){action();});};},actionCancel:function(){this.elems().forEach(this.setPrevValues,this);this.closeModal();},actionDone:function(){this.valid=true;this.elems().forEach(this.validate,this);if(this.valid){this.closeModal();}}});});","Magento_Ui/js/modal/confirm.min.js":"define(['jquery','underscore','mage/translate','jquery-ui-modules/widget','Magento_Ui/js/modal/modal'],function($,_,$t){'use strict';$.widget('mage.confirm',$.mage.modal,{options:{modalClass:'confirm',title:'',focus:'.action-accept',actions:{always:function(){},confirm:function(){},cancel:function(){}},buttons:[{text:$t('Cancel'),class:'action-secondary action-dismiss',click:function(event){this.closeModal(event);}},{text:$t('OK'),class:'action-primary action-accept',click:function(event){this.closeModal(event,true);}}]},_create:function(){this._super();this.modal.find(this.options.modalCloseBtn).off().on('click',_.bind(this.closeModal,this));this.openModal();},_remove:function(){this.modal.remove();},openModal:function(){return this._super();},closeModal:function(event,result){result=result||false;if(result){this.options.actions.confirm(event);}else{this.options.actions.cancel(event);}\nthis.options.actions.always(event);this.element.on('confirmclosed',_.bind(this._remove,this));return this._super();}});return function(config){return $('<div></div>').html(config.content).confirm(config);};});","Magento_Ui/js/modal/modal.min.js":"define(['jquery','underscore','mage/template','text!ui/template/modal/modal-popup.html','text!ui/template/modal/modal-slide.html','text!ui/template/modal/modal-custom.html','Magento_Ui/js/lib/key-codes','jquery-ui-modules/widget','jquery-ui-modules/core','mage/translate','jquery/z-index'],function($,_,template,popupTpl,slideTpl,customTpl,keyCodes){'use strict';var transitionEvent=(function(){var transition,elementStyle=document.createElement('div').style,transitions={'transition':'transitionend','OTransition':'oTransitionEnd','MozTransition':'transitionend','WebkitTransition':'webkitTransitionEnd'};for(transition in transitions){if(elementStyle[transition]!==undefined&&transitions.hasOwnProperty(transition)){return transitions[transition];}}})();$.widget('mage.modal',{options:{id:null,type:'popup',title:'',subTitle:'',modalClass:'',focus:'[data-role=\"closeBtn\"]',autoOpen:false,clickableOverlay:true,popupTpl:popupTpl,slideTpl:slideTpl,customTpl:customTpl,modalVisibleClass:'_show',parentModalClass:'_has-modal',innerScrollClass:'_inner-scroll',responsive:false,innerScroll:false,modalTitle:'[data-role=\"title\"]',modalSubTitle:'[data-role=\"subTitle\"]',modalBlock:'[data-role=\"modal\"]',modalCloseBtn:'[data-role=\"closeBtn\"]',modalContent:'[data-role=\"content\"]',modalAction:'[data-role=\"action\"]',focusableScope:'[data-role=\"focusable-scope\"]',focusableStart:'[data-role=\"focusable-start\"]',focusableEnd:'[data-role=\"focusable-end\"]',appendTo:'body',wrapperClass:'modals-wrapper',overlayClass:'modals-overlay',responsiveClass:'modal-slide',trigger:'',modalLeftMargin:45,closeText:$.mage.__('Close'),buttons:[{text:$.mage.__('Ok'),class:'',attr:{},click:function(event){this.closeModal(event);}}],keyEventHandlers:{tabKey:function(){if(document.activeElement===this.modal[0]){this._setFocus('start');}},escapeKey:function(event){if(this.options.isOpen&&this.modal.find(document.activeElement).length||this.options.isOpen&&this.modal[0]===document.activeElement){this.closeModal(event);}}}},_create:function(){_.bindAll(this,'keyEventSwitcher','_tabSwitcher','closeModal');this.options.id=this.uuid;this.options.transitionEvent=transitionEvent;this._createWrapper();this._renderModal();this._createButtons();if(this.options.trigger){$(document).on('click',this.options.trigger,_.bind(this.toggleModal,this));}\nthis._on(this.modal.find(this.options.modalCloseBtn),{'click':this.options.modalCloseBtnHandler?this.options.modalCloseBtnHandler:this.closeModal});this._on(this.element,{'openModal':this.openModal,'closeModal':this.closeModal});this.options.autoOpen?this.openModal():false;},_getElem:function(elem){return this.modal.find(elem);},_getVisibleCount:function(){var modals=this.modalWrapper.find(this.options.modalBlock);return modals.filter('.'+this.options.modalVisibleClass).length;},_getVisibleSlideCount:function(){var elems=this.modalWrapper.find('[data-type=\"slide\"]');return elems.filter('.'+this.options.modalVisibleClass).length;},keyEventSwitcher:function(event){var key=keyCodes[event.keyCode];if(this.options.keyEventHandlers.hasOwnProperty(key)){this.options.keyEventHandlers[key].apply(this,arguments);}},setTitle:function(title){var $title=this.modal.find(this.options.modalTitle),$subTitle=this.modal.find(this.options.modalSubTitle);$title.text(title);$title.append($subTitle);},setSubTitle:function(subTitle){this.options.subTitle=subTitle;this.modal.find(this.options.modalSubTitle).html(subTitle);},toggleModal:function(){if(this.options.isOpen===true){this.closeModal();}else{this.openModal();}},openModal:function(){this.options.isOpen=true;this.focussedElement=document.activeElement;this._createOverlay();this._setActive();this._setKeyListener();this.modal.one(this.options.transitionEvent,_.bind(this._setFocus,this,'end','opened'));this.modal.one(this.options.transitionEvent,_.bind(this._trigger,this,'opened'));this.modal.addClass(this.options.modalVisibleClass);if(!this.options.transitionEvent){this._trigger('opened');}\nreturn this.element;},_setFocus:function(position,type){var focusableElements,infelicity;if(type==='opened'&&this.options.focus){this.modal.find($(this.options.focus)).trigger('focus');}else if(type==='opened'&&!this.options.focus){this.modal.find(this.options.focusableScope).trigger('focus');}else if(position==='end'){this.modal.find(this.options.modalCloseBtn).trigger('focus');}else if(position==='start'){infelicity=2;focusableElements=this.modal.find(':focusable');focusableElements.eq(focusableElements.length-infelicity).trigger('focus');}},_setKeyListener:function(){this.modal.find(this.options.focusableStart).on('focusin',this._tabSwitcher);this.modal.find(this.options.focusableEnd).on('focusin',this._tabSwitcher);this.modal.on('keydown',this.keyEventSwitcher);},_removeKeyListener:function(){this.modal.find(this.options.focusableStart).off('focusin',this._tabSwitcher);this.modal.find(this.options.focusableEnd).off('focusin',this._tabSwitcher);this.modal.off('keydown',this.keyEventSwitcher);},_tabSwitcher:function(e){var target=$(e.target);if(target.is(this.options.focusableStart)){this._setFocus('start');}else if(target.is(this.options.focusableEnd)){this._setFocus('end');}},closeModal:function(){var that=this;this._removeKeyListener();this.options.isOpen=false;this.modal.one(this.options.transitionEvent,function(){that._close();});this.modal.removeClass(this.options.modalVisibleClass);if(!this.options.transitionEvent){that._close();}\nreturn this.element;},_close:function(){var trigger=_.bind(this._trigger,this,'closed',this.modal);$(this.focussedElement).trigger('focus');this._destroyOverlay();this._unsetActive();_.defer(trigger,this);},_setActive:function(){var zIndex=this.modal.zIndex(),baseIndex=zIndex+this._getVisibleCount();if(this.modal.data('active')){return;}\nthis.modal.data('active',true);this.overlay.zIndex(++baseIndex);this.prevOverlayIndex=this.overlay.zIndex();this.modal.zIndex(this.overlay.zIndex()+1);if(this._getVisibleSlideCount()){this.modal.css('marginLeft',this.options.modalLeftMargin*this._getVisibleSlideCount());}},_unsetActive:function(){this.modal.removeAttr('style');this.modal.data('active',false);if(this.overlay){this.overlay.zIndex(this.prevOverlayIndex-1);}},_createWrapper:function(){this.modalWrapper=$(this.options.appendTo).find('.'+this.options.wrapperClass);if(!this.modalWrapper.length){this.modalWrapper=$('<div></div>').addClass(this.options.wrapperClass).appendTo(this.options.appendTo);}},_renderModal:function(){$(template(this.options[this.options.type+'Tpl'],{data:this.options})).appendTo(this.modalWrapper);this.modal=this.modalWrapper.find(this.options.modalBlock).last();this.element.appendTo(this._getElem(this.options.modalContent));if(this.element.is(':hidden')){this.element.show();}},_createButtons:function(){this.buttons=this._getElem(this.options.modalAction);_.each(this.options.buttons,function(btn,key){var button=this.buttons[key];if(btn.attr){$(button).attr(btn.attr);}\nif(btn.class){$(button).addClass(btn.class);}\nif(!btn.click){btn.click=this.closeModal;}\n$(button).on('click',_.bind(btn.click,this));},this);},_createOverlay:function(){var events,outerClickHandler=this.options.outerClickHandler||this.closeModal;this.overlay=$('.'+this.options.overlayClass);if(!this.overlay.length){$(this.options.appendTo).addClass(this.options.parentModalClass);this.overlay=$('<div></div>').addClass(this.options.overlayClass).appendTo(this.modalWrapper);}\nevents=$._data(this.overlay.get(0),'events');events?this.prevOverlayHandler=events.click[0].handler:false;this.options.clickableOverlay?this.overlay.off().on('click',outerClickHandler):false;},_destroyOverlay:function(){if(this._getVisibleCount()){this.overlay.off().on('click',this.prevOverlayHandler);}else{$(this.options.appendTo).removeClass(this.options.parentModalClass);this.overlay.remove();this.overlay=null;}}});return $.mage.modal;});","Magento_Ui/js/modal/modalToggle.min.js":"define(['jquery','Magento_Ui/js/modal/modal'],function($){'use strict';return function(config,el){var widget,content;if(config.contentSelector){content=$(config.contentSelector);}else if(config.content){content=$('<div></div>').html(config.content);}else{content=$('<div></div>');}\nwidget=content.modal(config);$(el).on(config.toggleEvent,function(){var state=widget.data('mage-modal').options.isOpen;if(state){widget.modal('closeModal');}else{widget.modal('openModal');}\nreturn false;});return widget;};});","Magento_Ui/js/modal/prompt.min.js":"define(['jquery','underscore','mage/template','text!ui/template/modal/modal-prompt-content.html','jquery-ui-modules/widget','Magento_Ui/js/modal/modal','mage/translate'],function($,_,template,promptContentTmpl){'use strict';$.widget('mage.prompt',$.mage.modal,{options:{modalClass:'prompt',promptContentTmpl:promptContentTmpl,promptField:'[data-role=\"promptField\"]',attributesForm:{},attributesField:{},value:'',validation:false,validationRules:[],keyEventHandlers:{enterKey:function(event){if(this.options.isOpen&&this.modal.find(document.activeElement).length||this.options.isOpen&&this.modal[0]===document.activeElement){this.closeModal(true);event.preventDefault();}},tabKey:function(){if(document.activeElement===this.modal[0]){this._setFocus('start');}},escapeKey:function(event){if(this.options.isOpen&&this.modal.find(document.activeElement).length||this.options.isOpen&&this.modal[0]===document.activeElement){this.closeModal();event.preventDefault();}}},actions:{always:function(){},confirm:function(){},cancel:function(){}},buttons:[{text:$.mage.__('Cancel'),class:'action-secondary action-dismiss',click:function(){this.closeModal();}},{text:$.mage.__('OK'),class:'action-primary action-accept',click:function(){this.closeModal(true);}}]},_create:function(){this.options.focus=this.options.promptField;this.options.validation=this.options.validation&&this.options.validationRules.length;this.options.outerClickHandler=this.options.outerClickHandler||_.bind(this.closeModal,this,false);this._super();this.modal.find(this.options.modalContent).append(this.getFormTemplate());this.modal.find(this.options.modalCloseBtn).off().on('click',_.bind(this.closeModal,this,false));if(this.options.validation){this.setValidationClasses();}\nthis.openModal();},getFormTemplate:function(){var formTemplate,formAttr='',inputAttr='',attributeName;for(attributeName in this.options.attributesForm){if(this.options.attributesForm.hasOwnProperty(attributeName)){formAttr=formAttr+' '+attributeName+'=\"'+\nthis.options.attributesForm[attributeName]+'\"';}}\nfor(attributeName in this.options.attributesField){if(this.options.attributesField.hasOwnProperty(attributeName)){inputAttr=inputAttr+' '+attributeName+'=\"'+\nthis.options.attributesField[attributeName]+'\"';}}\nformTemplate=$(template(this.options.promptContentTmpl,{data:this.options,formAttr:formAttr,inputAttr:inputAttr}));return formTemplate;},_remove:function(){this.modal.remove();},validate:function(){return $.validator.validateSingleElement(this.options.promptField);},setValidationClasses:function(){this.modal.find(this.options.promptField).attr('class',$.proxy(function(i,val){return val+' '+this.options.validationRules.join(' ');},this));},openModal:function(){this._super();this.modal.find(this.options.promptField).val(this.options.value);},closeModal:function(result){var value;if(result){if(this.options.validation&&!this.validate()){return false;}\nvalue=this.modal.find(this.options.promptField).val();this.options.actions.confirm.call(this,value);}else{this.options.actions.cancel.call(this,result);}\nthis.options.actions.always();this.element.on('promptclosed',_.bind(this._remove,this));return this._super();}});return function(config){return $('<div class=\"prompt-message\"></div>').html(config.content).prompt(config);};});","Magento_Ui/js/model/messages.min.js":"define(['ko','uiClass'],function(ko,Class){'use strict';return Class.extend({initialize:function(){this._super().initObservable();return this;},initObservable:function(){this.errorMessages=ko.observableArray([]);this.successMessages=ko.observableArray([]);return this;},add:function(messageObj,type){var expr=/([%])\\w+/g,message;if(!messageObj.hasOwnProperty('parameters')){this.clear();type.push(messageObj.message);return true;}\nmessage=messageObj.message.replace(expr,function(varName){varName=varName.substr(1);if(!isNaN(varName)){varName--;}\nif(messageObj.parameters.hasOwnProperty(varName)){return messageObj.parameters[varName];}\nreturn messageObj.parameters.shift();});this.clear();type.push(message);return true;},addSuccessMessage:function(message){return this.add(message,this.successMessages);},addErrorMessage:function(message){return this.add(message,this.errorMessages);},getErrorMessages:function(){return this.errorMessages;},getSuccessMessages:function(){return this.successMessages;},hasMessages:function(){return this.errorMessages().length>0||this.successMessages().length>0;},clear:function(){this.errorMessages.removeAll();this.successMessages.removeAll();}});});","Magento_Ui/js/model/messageList.min.js":"define(['./messages'],function(Messages){'use strict';return new Messages();});","Magento_Ui/js/lib/key-codes.min.js":"define([],function(){'use strict';return{13:'enterKey',27:'escapeKey',40:'pageDownKey',38:'pageUpKey',32:'spaceKey',9:'tabKey',37:'pageLeftKey',39:'pageRightKey',17:'ctrlKey',18:'altKey',16:'shiftKey',191:'forwardSlashKey',66:'bKey',73:'iKey',85:'uKey'};});","Magento_Ui/js/lib/collapsible.min.js":"define(['uiComponent'],function(Component){'use strict';return Component.extend({defaults:{opened:false,collapsible:true},initObservable:function(){this._super().observe('opened');return this;},toggleOpened:function(){this.opened()?this.close():this.open();return this;},close:function(){if(this.collapsible){this.opened(false);}\nreturn this;},open:function(){if(this.collapsible){this.opened(true);}\nreturn this;}});});","Magento_Ui/js/lib/spinner.min.js":"define(['jquery'],function($){'use strict';var selector='[data-role=\"spinner\"]',spinner=$(selector);return{show:function(){spinner.show();},hide:function(){spinner.hide();},get:function(id){return $(selector+'[data-component=\"'+id+'\"]');}};});","Magento_Ui/js/lib/logger/logger-utils.min.js":"define([],function(){'use strict';function LogUtils(logger){this.logger=logger;}\nLogUtils.prototype.asyncLog=function(promise,config){var levels,messages,wait;config=config||{};levels=config.levels||this.createLevels();messages=config.messages||this.createMessages();wait=config.wait||5000;this.logger[levels.requested](messages.requested,config.data);setTimeout(function(){promise.state()==='pending'?this.logger[levels.failed](messages.failed,config.data):this.logger[levels.loaded](messages.loaded,config.data);}.bind(this),wait);};LogUtils.prototype.createMessages=function(requested,loaded,failed){return{requested:requested||'',loaded:loaded||'',failed:failed||''};};LogUtils.prototype.createLevels=function(requested,loaded,failed){return{requested:requested||'info',loaded:loaded||'info',failed:failed||'warn'};};return LogUtils;});","Magento_Ui/js/lib/logger/formatter.min.js":"define(['moment','mage/utils/template'],function(moment,mageTemplate){'use strict';function LogFormatter(dateFormat,template){this.dateFormat_='YYYY-MM-DD hh:mm:ss';this.template_='[${ $.date }] [${ $.entry.levelName }] ${ $.message }';if(dateFormat){this.dateFormat_=dateFormat;}\nif(template){this.template_=template;}}\nLogFormatter.prototype.process=function(entry){var message=mageTemplate.template(entry.message,entry.data),date=moment(entry.timestamp).format(this.dateFormat_);return mageTemplate.template(this.template_,{date:date,entry:entry,message:message});};return LogFormatter;});","Magento_Ui/js/lib/logger/levels-pool.min.js":"define(['underscore'],function(_){'use strict';var LEVELS,CODE_MAP;LEVELS={NONE:0,ERROR:1,WARN:2,INFO:3,DEBUG:4,ALL:5};CODE_MAP=_.invert(LEVELS);return{getLevels:function(){return LEVELS;},getNameByCode:function(code){return CODE_MAP[code];}};});","Magento_Ui/js/lib/logger/logger.min.js":"define(['./levels-pool'],function(logLevels){'use strict';var levels=logLevels.getLevels();function Logger(outputHandler,entryFactory){this.entries_=[];this.displayLevel_=levels.ERROR;this.displayCriteria_=[];this.entryFactory_=entryFactory;this.outputHandlers_=[outputHandler];this.addDisplayCriteria(this.matchesLevel_);}\nLogger.prototype.setDisplayLevel=function(level){var levelName=logLevels.getNameByCode(level);if(!levelName){throw new TypeError('The provided level is not defined in the levels list.');}\nthis.displayLevel_=level;};Logger.prototype.addDisplayCriteria=function(criteria){this.displayCriteria_.push(criteria);};Logger.prototype.removeDisplayCriteria=function(criteria){var index=this.displayCriteria_.indexOf(criteria);if(~index){this.displayCriteria_.splice(index,1);}};Logger.prototype.error=function(message,messageData){return this.log_(message,levels.ERROR,messageData);};Logger.prototype.warn=function(message,messageData){return this.log_(message,levels.WARN,messageData);};Logger.prototype.info=function(message,messageData){return this.log_(message,levels.INFO,messageData);};Logger.prototype.debug=function(message,messageData){return this.log_(message,levels.DEBUG,messageData);};Logger.prototype.log_=function(message,level,messageData){var entry=this.createEntry_(message,level,messageData);this.entries_.push(entry);if(this.matchesCriteria_(entry)){this.processOutput_(entry);}\nreturn entry;};Logger.prototype.createEntry_=function(message,level,messageData){return this.entryFactory_.createEntry(message,level,messageData);};Logger.prototype.getEntries=function(criteria){if(criteria){return this.entries_.filter(criteria);}\nreturn this.entries_;};Logger.prototype.dump=function(criteria){var entries;if(!criteria){criteria=this.matchesCriteria_;}\nentries=this.entries_.filter(criteria,this);this.outputHandlers_.forEach(function(handler){handler.dump(entries);});};Logger.prototype.processOutput_=function(entry){this.outputHandlers_.forEach(function(handler){handler.show(entry);});};Logger.prototype.matchesCriteria_=function(entry){return this.displayCriteria_.every(function(criteria){return criteria.call(this,entry);},this);};Logger.prototype.matchesLevel_=function(entry){return entry.level<=this.displayLevel_;};return Logger;});","Magento_Ui/js/lib/logger/message-pool.min.js":"define(function(){'use strict';var MESSAGES={templateStartLoading:'The \"${ $.template }\" template requested by  the \"${$.component}\" component started loading.',templateLoadedFromServer:'The \"${ $.template }\" template requested by the \"${$.component}\" component  was loaded from server.\"',templateLoadedFromCache:'The \"${ $.template }\" template  requested by the \"${$.component}\" component was loaded from cache.\"',templateLoadingFail:'Failed to load the \"${ $.template }\" template requested by \"${$.component}\".',componentStartInitialization:'Component \"${$.component}\" start initialization with instance name \"${$.componentName}\".',componentStartLoading:' Started loading the \"${$.component}\" component.',componentFinishLoading:'The \"${$.component}\" component was loaded.',componentLoadingFail:'Failed to load the \"${$.component}\" component.',depsLoadingFail:'Could not get the declared \"${$.deps}\" dependency for the \"${$.component}\" instance.',depsStartRequesting:'Requesting the \"${$.deps}\" dependency for the \"${$.component}\" instance.',depsFinishRequesting:'The \"${$.deps}\" dependency for the \"${$.component}\" instance was received.',requestingComponent:'Requesting the \"${$.component}\" component.',requestingComponentIsLoaded:'The requested \"${$.component}\" component was received.',requestingComponentIsFailed:'Could not get the requested \"${$.component}\" component.'};return{getMessage:function(code){return MESSAGES[code];},addMessage:function(code,message){MESSAGES[code]=message;},hasMessage:function(code){return MESSAGES.hasOwnProperty(code);}};});","Magento_Ui/js/lib/logger/console-output-handler.min.js":"define(['./levels-pool'],function(logLevels){'use strict';var levels=logLevels.getLevels();function ConsoleOutputHandler(formatter){this.formatter_=formatter;}\nConsoleOutputHandler.prototype.show=function(entry){var displayString=this.formatter_.process(entry);switch(entry.level){case levels.ERROR:console.error(displayString);break;case levels.WARN:console.warn(displayString);break;case levels.INFO:console.info(displayString);break;case levels.DEBUG:console.log(displayString);break;}};ConsoleOutputHandler.prototype.dump=function(entries){entries.forEach(this.show,this);};return ConsoleOutputHandler;});","Magento_Ui/js/lib/logger/entry-factory.min.js":"define(['./entry'],function(LogEntry){'use strict';return{createEntry:function(message,level,messageData){return new LogEntry(message,level,messageData);}};});","Magento_Ui/js/lib/logger/entry.min.js":"define(['./levels-pool'],function(logLevels){'use strict';function LogEntry(message,level,data){this.timestamp=Date.now();this.level=level;this.levelName=logLevels.getNameByCode(level);this.data=data;this.message=message;}\nreturn LogEntry;});","Magento_Ui/js/lib/logger/console-logger.min.js":"define(['./logger','./entry-factory','./console-output-handler','./formatter','./message-pool','./levels-pool','Magento_Ui/js/lib/core/storage/local','underscore','./logger-utils'],function(Logger,entryFactory,ConsoleHandler,Formatter,messagePoll,levelsPoll,storage,_,LoggerUtils){'use strict';var STORAGE_NAMESPACE='CONSOLE_LOGGER';function ConsoleLogger(){var formatter=new Formatter(),consoleHandler=new ConsoleHandler(formatter),savedLevel=storage.get(STORAGE_NAMESPACE),utils=new LoggerUtils(this);Logger.call(this,consoleHandler,entryFactory);if(savedLevel){this.displayLevel_=savedLevel;}\nthis.utils=utils;this.messages=messagePoll;this.levels=levelsPoll.getLevels();}\n_.extend(ConsoleLogger,Logger);ConsoleLogger.prototype=Object.create(Logger.prototype);ConsoleLogger.prototype.constructor=ConsoleLogger;ConsoleLogger.prototype.setDisplayLevel=function(level){Logger.prototype.setDisplayLevel.call(this,level);storage.set(STORAGE_NAMESPACE,level);};ConsoleLogger.prototype.createEntry_=function(message,level,data){var code;if(messagePoll.hasMessage(message)){data=data||{};code=message;message=messagePoll.getMessage(code);data.messageCode=code;}\nreturn Logger.prototype.createEntry_.call(this,message,level,data);};return new ConsoleLogger();});","Magento_Ui/js/lib/validation/validator.min.js":"define(['underscore','./rules'],function(_,rulesList){'use strict';function validate(id,value,params,additionalParams){var rule,message,valid,result={rule:id,passed:true,message:''};if(_.isObject(params)){message=params.message||'';}\nif(!rulesList[id]){return result;}\nrule=rulesList[id];message=message||rule.message;valid=rule.handler(value,params,additionalParams);if(!valid){params=Array.isArray(params)?params:[params];if(typeof message==='function'){message=message.call(rule);}\nmessage=params.reduce(function(msg,param,idx){return msg.replace(new RegExp('\\\\{'+idx+'\\\\}','g'),param);},message);result.passed=false;result.message=message;}\nreturn result;}\nfunction validator(rules,value,additionalParams){var result;if(typeof rules==='object'){result={passed:true};_.every(rules,function(ruleParams,id){if(ruleParams.validate||ruleParams!==false||additionalParams){result=validate(id,value,ruleParams,additionalParams);return result.passed;}\nreturn true;});return result;}\nreturn validate.apply(null,arguments);}\nvalidator.addRule=function(id,handler,message){rulesList[id]={handler:handler,message:message};};validator.getRule=function(id){return rulesList[id];};return validator;});","Magento_Ui/js/lib/validation/utils.min.js":"define(function(){'use strict';var utils={isEmpty:function(value){return value===''||value==null||value.length===0||/^\\s+$/.test(value);},isEmptyNoTrim:function(value){return value===''||value==null||value.length===0;},isBetween:function(value,from,to){return(from===null||from===''||value>=utils.parseNumber(from))&&(to===null||to===''||value<=utils.parseNumber(to));},parseNumber:function(value){var isDot,isComa;if(typeof value!=='string'){return parseFloat(value);}\nisDot=value.indexOf('.');isComa=value.indexOf(',');if(isDot!==-1&&isComa!==-1){if(isComa>isDot){value=value.replace('.','').replace(',','.');}else{value=value.replace(',','');}}else if(isComa!==-1){value=value.replace(',','.');}\nreturn parseFloat(value);},stripHtml:function(value){return value.replace(/<.[^<>]*?>/g,' ').replace(/&nbsp;|&#160;/gi,' ').replace(/[0-9.(),;:!?%#$'\"_+=\\/-]*/g,'');}};return utils;});","Magento_Ui/js/lib/validation/rules.min.js":"define(['jquery','underscore','./utils','moment','tinycolor','jquery/validate','mage/translate'],function($,_,utils,moment,tinycolor){'use strict';function validateCreditCard(s){var v='0123456789',w='',i,j,k,m,c,a,x;for(i=0;i<s.length;i++){x=s.charAt(i);if(v.indexOf(x,0)!==-1){w+=x;}}\nj=w.length / 2;k=Math.floor(j);m=Math.ceil(j)-k;c=0;for(i=0;i<k;i++){a=w.charAt(i*2+m)*2;c+=a>9?Math.floor(a / 10+a%10):a;}\nfor(i=0;i<k+m;i++){c+=w.charAt(i*2+1-m)*1;}\nreturn c%10===0;}\nreturn _.mapObject({'min_text_length':[function(value,params){return _.isUndefined(value)||value.length===0||value.length>=+params;},$.mage.__('Please enter more or equal than {0} symbols.')],'max_text_length':[function(value,params){return!_.isUndefined(value)&&value.length<=+params;},$.mage.__('Please enter less or equal than {0} symbols.')],'max-words':[function(value,params){return utils.isEmpty(value)||utils.stripHtml(value).match(/\\b\\w+\\b/g).length<params;},$.mage.__('Please enter {0} words or less.')],'min-words':[function(value,params){return utils.isEmpty(value)||utils.stripHtml(value).match(/\\b\\w+\\b/g).length>=params;},$.mage.__('Please enter at least {0} words.')],'range-words':[function(value,params){var match=utils.stripHtml(value).match(/\\b\\w+\\b/g)||[];return utils.isEmpty(value)||match.length>=params[0]&&match.length<=params[1];},$.mage.__('Please enter between {0} and {1} words.')],'letters-with-basic-punc':[function(value){return utils.isEmpty(value)||/^[a-z\\-.,()\\u0027\\u0022\\s]+$/i.test(value);},$.mage.__('Letters or punctuation only please')],'alphanumeric':[function(value){return utils.isEmpty(value)||/^\\w+$/i.test(value);},$.mage.__('Letters, numbers, spaces or underscores only please')],'letters-only':[function(value){return utils.isEmpty(value)||/^[a-z]+$/i.test(value);},$.mage.__('Letters only please')],'no-whitespace':[function(value){return utils.isEmpty(value)||/^\\S+$/i.test(value);},$.mage.__('No white space please')],'no-marginal-whitespace':[function(value){return!/^\\s+|\\s+$/i.test(value);},$.mage.__('No marginal white space please')],'zip-range':[function(value){return utils.isEmpty(value)||/^90[2-5]-\\d{2}-\\d{4}$/.test(value);},$.mage.__('Your ZIP-code must be in the range 902xx-xxxx to 905-xx-xxxx')],'integer':[function(value){return utils.isEmpty(value)||/^-?\\d+$/.test(value);},$.mage.__('A positive or negative non-decimal number please')],'vinUS':[function(value){if(utils.isEmpty(value)){return true;}\nif(value.length!==17){return false;}\nvar i,n,d,f,cd,cdv,LL=['A','B','C','D','E','F','G','H','J','K','L','M','N','P','R','S','T','U','V','W','X','Y','Z'],VL=[1,2,3,4,5,6,7,8,1,2,3,4,5,7,9,2,3,4,5,6,7,8,9],FL=[8,7,6,5,4,3,2,10,0,9,8,7,6,5,4,3,2],rs=0;for(i=0;i<17;i++){f=FL[i];d=value.slice(i,i+1);if(i===8){cdv=d;}\nif(!isNaN(d)){d*=f;}else{for(n=0;n<LL.length;n++){if(d.toUpperCase()===LL[n]){d=VL[n];d*=f;if(isNaN(cdv)&&n===8){cdv=LL[n];}\nbreak;}}}\nrs+=d;}\ncd=rs%11;if(cd===10){cd='X';}\nif(cd===cdv){return true;}\nreturn false;},$.mage.__('The specified vehicle identification number (VIN) is invalid.')],'dateITA':[function(value){var check=false,re=/^\\d{1,2}\\/\\d{1,2}\\/\\d{4}$/,adata,gg,mm,aaaa,xdata;if(re.test(value)){adata=value.split('/');gg=parseInt(adata[0],10);mm=parseInt(adata[1],10);aaaa=parseInt(adata[2],10);xdata=new Date(aaaa,mm-1,gg);if(xdata.getFullYear()===aaaa&&xdata.getMonth()===mm-1&&xdata.getDate()===gg){check=true;}else{check=false;}}else{check=false;}\nreturn check;},$.mage.__('Please enter a correct date')],'dateNL':[function(value){return/^\\d\\d?[\\.\\/-]\\d\\d?[\\.\\/-]\\d\\d\\d?\\d?$/.test(value);},$.mage.__('Vul hier een geldige datum in.')],'time':[function(value){return utils.isEmpty(value)||/^([01]\\d|2[0-3])(:[0-5]\\d){0,2}$/.test(value);},$.mage.__('Please enter a valid time, between 00:00 and 23:59')],'time12h':[function(value){return utils.isEmpty(value)||/^((0?[1-9]|1[012])(:[0-5]\\d){0,2}(\\s[AP]M))$/i.test(value);},$.mage.__('Please enter a valid time, between 00:00 am and 12:00 pm')],'phoneUS':[function(value){value=value.replace(/\\s+/g,'');return utils.isEmpty(value)||value.length>9&&value.match(/^(1-?)?(\\([2-9]\\d{2}\\)|[2-9]\\d{2})-?[2-9]\\d{2}-?\\d{4}$/);},$.mage.__('Please specify a valid phone number')],'phoneUK':[function(value){return utils.isEmpty(value)||value.length>9&&value.match(/^(\\(?(0|\\+44)[1-9]{1}\\d{1,4}?\\)?\\s?\\d{3,4}\\s?\\d{3,4})$/);},$.mage.__('Please specify a valid phone number')],'mobileUK':[function(value){return utils.isEmpty(value)||value.length>9&&value.match(/^((0|\\+44)7\\d{3}\\s?\\d{6})$/);},$.mage.__('Please specify a valid mobile number')],'stripped-min-length':[function(value,param){return _.isUndefined(value)||value.length===0||utils.stripHtml(value).length>=param;},$.mage.__('Please enter at least {0} characters')],'email2':[function(value){return utils.isEmpty(value)||/^((([a-z]|\\d|[!#\\$%&\\u0027\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+(\\.([a-z]|\\d|[!#\\$%&\\u0027\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+)*)|((\\u0022)((((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(([\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f]|\\x21|[\\x23-\\x5b]|[\\x5d-\\x7e]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(\\\\([\\x01-\\x09\\x0b\\x0c\\x0d-\\x7f]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]))))*(((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(\\u0022)))@((([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.)*(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.?$/i.test(value);},$.validator.messages.email],'url2':[function(value){return utils.isEmpty(value)||/^(https?|ftp):\\/\\/(((([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(%[\\da-f]{2})|[!\\$&\\u0027\\(\\)\\*\\+,;=]|:)*@)?(((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5]))|((([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.)*(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.?)(:\\d*)?)(\\/((([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(%[\\da-f]{2})|[!\\$&\\u0027\\(\\)\\*\\+,;=]|:|@)+(\\/(([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(%[\\da-f]{2})|[!\\$&\\u0027\\(\\)\\*\\+,;=]|:|@)*)*)?)?(\\?((([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(%[\\da-f]{2})|[!\\$&\\u0027\\(\\)\\*\\+,;=]|:|@)|[\\uE000-\\uF8FF]|\\/|\\?)*)?(\\#((([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(%[\\da-f]{2})|[!\\$&\\u0027\\(\\)\\*\\+,;=]|:|@)|\\/|\\?)*)?$/i.test(value);},$.validator.messages.url],'credit-card-types':[function(value,param){var validTypes;if(utils.isEmpty(value)){return true;}\nif(/[^0-9-]+/.test(value)){return false;}\nvalue=value.replace(/\\D/g,'');validTypes=0x0000;if(param.mastercard){validTypes|=0x0001;}\nif(param.visa){validTypes|=0x0002;}\nif(param.amex){validTypes|=0x0004;}\nif(param.dinersclub){validTypes|=0x0008;}\nif(param.enroute){validTypes|=0x0010;}\nif(param.discover){validTypes|=0x0020;}\nif(param.jcb){validTypes|=0x0040;}\nif(param.unknown){validTypes|=0x0080;}\nif(param.all){validTypes=0x0001|0x0002|0x0004|0x0008|0x0010|0x0020|0x0040|0x0080;}\nif(validTypes&0x0001&&/^(51|52|53|54|55)/.test(value)){return value.length===16;}\nif(validTypes&0x0002&&/^(4)/.test(value)){return value.length===16;}\nif(validTypes&0x0004&&/^(34|37)/.test(value)){return value.length===15;}\nif(validTypes&0x0008&&/^(300|301|302|303|304|305|36|38)/.test(value)){return value.length===14;}\nif(validTypes&0x0010&&/^(2014|2149)/.test(value)){return value.length===15;}\nif(validTypes&0x0020&&/^(6011)/.test(value)){return value.length===16;}\nif(validTypes&0x0040&&/^(3)/.test(value)){return value.length===16;}\nif(validTypes&0x0040&&/^(2131|1800)/.test(value)){return value.length===15;}\nif(validTypes&0x0080){return true;}\nreturn false;},$.mage.__('Please enter a valid credit card number.')],'ipv4':[function(value){return utils.isEmpty(value)||/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/i.test(value);},$.mage.__('Please enter a valid IP v4 address.')],'ipv6':[function(value){return utils.isEmpty(value)||/^((([0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}:[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){5}:([0-9A-Fa-f]{1,4}:)?[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){4}:([0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){3}:([0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){2}:([0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}((\\b((25[0-5])|(1\\d{2})|(2[0-4]\\d)|(\\d{1,2}))\\b)\\.){3}(\\b((25[0-5])|(1\\d{2})|(2[0-4]\\d)|(\\d{1,2}))\\b))|(([0-9A-Fa-f]{1,4}:){0,5}:((\\b((25[0-5])|(1\\d{2})|(2[0-4]\\d)|(\\d{1,2}))\\b)\\.){3}(\\b((25[0-5])|(1\\d{2})|(2[0-4]\\d)|(\\d{1,2}))\\b))|(::([0-9A-Fa-f]{1,4}:){0,5}((\\b((25[0-5])|(1\\d{2})|(2[0-4]\\d)|(\\d{1,2}))\\b)\\.){3}(\\b((25[0-5])|(1\\d{2})|(2[0-4]\\d)|(\\d{1,2}))\\b))|([0-9A-Fa-f]{1,4}::([0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})|(::([0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){1,7}:))$/i.test(value);},$.mage.__('Please enter a valid IP v6 address.')],'pattern':[function(value,param){return utils.isEmpty(value)||new RegExp(param).test(value);},$.mage.__('Invalid format.')],'validate-no-html-tags':[function(value){return!/<(\\/)?\\w+/.test(value);},$.mage.__('HTML tags are not allowed.')],'validate-select':[function(value){return value!=='none'&&value!=null&&value.length!==0;},$.mage.__('Please select an option.')],'validate-no-empty':[function(value){return!utils.isEmpty(value);},$.mage.__('Empty Value.')],'validate-alphanum-with-spaces':[function(value){return utils.isEmptyNoTrim(value)||/^[a-zA-Z0-9 ]+$/.test(value);},$.mage.__('Please use only letters (a-z or A-Z), numbers (0-9) or spaces only in this field.')],'validate-data':[function(value){return utils.isEmptyNoTrim(value)||/^[A-Za-z]+[A-Za-z0-9_]+$/.test(value);},$.mage.__('Please use only letters (a-z or A-Z), numbers (0-9) or underscore (_) in this field, and the first character should be a letter.')],'validate-street':[function(value){return utils.isEmptyNoTrim(value)||/^[ \\w]{3,}([A-Za-z]\\.)?([ \\w]*\\#\\d+)?(\\r\\n| )[ \\w]{3,}/.test(value);},$.mage.__('Please use only letters (a-z or A-Z), numbers (0-9), spaces and \"#\" in this field.')],'validate-phoneStrict':[function(value){return utils.isEmptyNoTrim(value)||/^(\\()?\\d{3}(\\))?(-|\\s)?\\d{3}(-|\\s)\\d{4}$/.test(value);},$.mage.__('Please enter a valid phone number. For example (123) 456-7890 or 123-456-7890.')],'validate-phoneLax':[function(value){return utils.isEmptyNoTrim(value)||/^((\\d[\\-. ]?)?((\\(\\d{3}\\))|\\d{3}))?[\\-. ]?\\d{3}[\\-. ]?\\d{4}$/.test(value);},$.mage.__('Please enter a valid phone number. For example (123) 456-7890 or 123-456-7890.')],'validate-fax':[function(value){return utils.isEmptyNoTrim(value)||/^(\\()?\\d{3}(\\))?(-|\\s)?\\d{3}(-|\\s)\\d{4}$/.test(value);},$.mage.__('Please enter a valid fax number (Ex: 123-456-7890).')],'validate-email':[function(value){return utils.isEmptyNoTrim(value)||/^([a-z0-9,!\\#\\$%&'\\*\\+\\/=\\?\\^_`\\{\\|\\}~-]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+(\\.([a-z0-9,!\\#\\$%&'\\*\\+\\/=\\?\\^_`\\{\\|\\}~-]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+)*@([a-z0-9-]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+(\\.([a-z0-9-]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+)*\\.(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]){2,})$/i.test(value);},$.mage.__('Please enter a valid email address (Ex: johndoe@domain.com).')],'validate-emailSender':[function(value){return utils.isEmptyNoTrim(value)||/^[\\S ]+$/.test(value);},$.mage.__('Please enter a valid email address (Ex: johndoe@domain.com).')],'validate-password':[function(value){var pass;if(value==null){return false;}\npass=value.trim();if(!pass.length){return true;}\nreturn!(pass.length>0&&pass.length<6);},$.mage.__('Please enter 6 or more characters. Leading and trailing spaces will be ignored.')],'validate-admin-password':[function(value){var pass;if(value==null){return false;}\npass=value.trim();if(pass.length===0){return true;}\nif(!/[a-z]/i.test(value)||!/[0-9]/.test(value)){return false;}\nif(pass.length<7){return false;}\nreturn true;},$.mage.__('Please enter 7 or more characters, using both numeric and alphabetic.')],'validate-customer-password':[function(v,elm){var validator=this,counter=0,passwordMinLength=$(elm).data('password-min-length'),passwordMinCharacterSets=$(elm).data('password-min-character-sets'),pass=v.trim(),result=pass.length>=passwordMinLength;if(result===false){validator.passwordErrorMessage=$.mage.__('Minimum length of this field must be equal or greater than %1 symbols. Leading and trailing spaces will be ignored.').replace('%1',passwordMinLength);return result;}\nif(pass.match(/\\d+/)){counter++;}\nif(pass.match(/[a-z]+/)){counter++;}\nif(pass.match(/[A-Z]+/)){counter++;}\nif(pass.match(/[^a-zA-Z0-9]+/)){counter++;}\nif(counter<passwordMinCharacterSets){result=false;validator.passwordErrorMessage=$.mage.__('Minimum of different classes of characters in password is %1. Classes of characters: Lower Case, Upper Case, Digits, Special Characters.').replace('%1',passwordMinCharacterSets);}\nreturn result;},function(){return this.passwordErrorMessage;}],'validate-url':[function(value){if(utils.isEmptyNoTrim(value)){return true;}\nvalue=(value||'').replace(/^\\s+/,'').replace(/\\s+$/,'');return(/^(http|https|ftp):\\/\\/(([A-Z0-9]([A-Z0-9_-]*[A-Z0-9]|))(\\.[A-Z0-9]([A-Z0-9_-]*[A-Z0-9]|))*)(:(\\d+))?(\\/[A-Z0-9~](([A-Z0-9_~-]|\\.)*[A-Z0-9~]|))*\\/?(.*)?$/i).test(value);},$.mage.__('Please enter a valid URL. Protocol is required (http://, https:// or ftp://).')],'validate-clean-url':[function(value){return utils.isEmptyNoTrim(value)||/^(http|https|ftp):\\/\\/(([A-Z0-9][A-Z0-9_-]*)(\\.[A-Z0-9][A-Z0-9_-]*)+.(com|org|net|dk|at|us|tv|info|uk|co.uk|biz|se)$)(:(\\d+))?\\/?/i.test(value)||/^(www)((\\.[A-Z0-9][A-Z0-9_-]*)+.(com|org|net|dk|at|us|tv|info|uk|co.uk|biz|se)$)(:(\\d+))?\\/?/i.test(value);},$.mage.__('Please enter a valid URL. For example http://www.example.com or www.example.com.')],'validate-xml-identifier':[function(value){return utils.isEmptyNoTrim(value)||/^[A-Z][A-Z0-9_\\/-]*$/i.test(value);},$.mage.__('Please enter a valid XML-identifier (Ex: something_1, block5, id-4).')],'validate-ssn':[function(value){return utils.isEmptyNoTrim(value)||/^\\d{3}-?\\d{2}-?\\d{4}$/.test(value);},$.mage.__('Please enter a valid social security number (Ex: 123-45-6789).')],'validate-zip-us':[function(value){return utils.isEmptyNoTrim(value)||/(^\\d{5}$)|(^\\d{5}-\\d{4}$)/.test(value);},$.mage.__('Please enter a valid zip code (Ex: 90602 or 90602-1234).')],'validate-date-au':[function(value){var regex=/^(\\d{2})\\/(\\d{2})\\/(\\d{4})$/,d;if(utils.isEmptyNoTrim(value)){return true;}\nif(utils.isEmpty(value)||!regex.test(value)){return false;}\nd=new Date(value.replace(regex,'$2/$1/$3'));return parseInt(RegExp.$2,10)===1+d.getMonth()&&parseInt(RegExp.$1,10)===d.getDate()&&parseInt(RegExp.$3,10)===d.getFullYear();},$.mage.__('Please use this date format: dd/mm/yyyy. For example 17/03/2006 for the 17th of March, 2006.')],'validate-currency-dollar':[function(value){return utils.isEmptyNoTrim(value)||/^\\$?\\-?([1-9]{1}[0-9]{0,2}(\\,[0-9]{3})*(\\.[0-9]{0,2})?|[1-9]{1}\\d*(\\.[0-9]{0,2})?|0(\\.[0-9]{0,2})?|(\\.[0-9]{1,2})?)$/.test(value);},$.mage.__('Please enter a valid $ amount. For example $100.00.')],'validate-not-negative-number':[function(value){return utils.isEmptyNoTrim(value)||!isNaN(utils.parseNumber(value))&&value>=0&&(/^\\s*-?\\d+([,.]\\d+)*\\s*%?\\s*$/).test(value);},$.mage.__('Please enter a number 0 or greater, without comma in this field.')],'validate-zero-or-greater':[function(value){return utils.isEmptyNoTrim(value)||!isNaN(utils.parseNumber(value))&&value>=0&&(/^\\s*-?\\d+([,.]\\d+)*\\s*%?\\s*$/).test(value);},$.mage.__('Please enter a number 0 or greater, without comma in this field.')],'validate-greater-than-zero':[function(value){return utils.isEmptyNoTrim(value)||!isNaN(utils.parseNumber(value))&&value>0&&(/^\\s*-?\\d+([,.]\\d+)*\\s*%?\\s*$/).test(value);},$.mage.__('Please enter a number greater than 0, without comma in this field.')],'validate-css-length':[function(value){if(value!==''){return(/^[0-9]*\\.*[0-9]+(px|pc|pt|ex|em|mm|cm|in|%)?$/).test(value);}\nreturn true;},$.mage.__('Please input a valid CSS-length (Ex: 100px, 77pt, 20em, .5ex or 50%).')],'validate-number':[function(value){return utils.isEmptyNoTrim(value)||!isNaN(utils.parseNumber(value))&&/^\\s*-?\\d*(?:[.,|'|\\s]\\d+)*(?:[.,|'|\\s]\\d{2})?-?\\s*$/.test(value);},$.mage.__('Please enter a valid number in this field.')],'validate-integer':[function(value){return utils.isEmptyNoTrim(value)||!isNaN(utils.parseNumber(value))&&/^\\s*-?\\d*\\s*$/.test(value);},$.mage.__('Please enter a valid integer in this field.')],'validate-number-range':[function(value,param){var numValue,dataAttrRange,result,range,m;if(utils.isEmptyNoTrim(value)){return true;}\nnumValue=utils.parseNumber(value);if(isNaN(numValue)){return false;}\ndataAttrRange=/^(-?[\\d.,]+)?-(-?[\\d.,]+)?$/;result=true;range=param;if(range){m=dataAttrRange.exec(range);if(m){result=result&&utils.isBetween(numValue,m[1],m[2]);}}\nreturn result;},$.mage.__('The value is not within the specified range.')],'validate-positive-percent-decimal':[function(value){var numValue;if(utils.isEmptyNoTrim(value)||!/^\\s*-?\\d*(\\.\\d*)?\\s*$/.test(value)){return false;}\nnumValue=utils.parseNumber(value);if(isNaN(numValue)){return false;}\nreturn utils.isBetween(numValue,0.01,100);},$.mage.__('Please enter a valid percentage discount value greater than 0.')],'validate-digits':[function(value){return utils.isEmptyNoTrim(value)||!/[^\\d]/.test(value);},$.mage.__('Please enter a valid number in this field.')],'validate-digits-range':[function(value,param){var numValue,dataAttrRange,result,range,m;if(utils.isEmptyNoTrim(value)){return true;}\nnumValue=utils.parseNumber(value);if(isNaN(numValue)){return false;}\ndataAttrRange=/^(-?\\d+)?-(-?\\d+)?$/;result=true;range=param;if(range){m=dataAttrRange.exec(range);if(m){result=result&&utils.isBetween(numValue,m[1],m[2]);}}\nreturn result;},$.mage.__('The value is not within the specified range.')],'validate-range':[function(value){var minValue,maxValue,ranges;if(utils.isEmptyNoTrim(value)){return true;}else if($.validator.methods['validate-digits']&&$.validator.methods['validate-digits'](value)){minValue=maxValue=utils.parseNumber(value);}else{ranges=/^(-?\\d+)?-(-?\\d+)?$/.exec(value);if(ranges){minValue=utils.parseNumber(ranges[1]);maxValue=utils.parseNumber(ranges[2]);if(minValue>maxValue){return false;}}else{return false;}}},$.mage.__('The value is not within the specified range.')],'validate-alpha':[function(value){return utils.isEmptyNoTrim(value)||/^[a-zA-Z]+$/.test(value);},$.mage.__('Please use letters only (a-z or A-Z) in this field.')],'validate-code':[function(value){return utils.isEmptyNoTrim(value)||/^[a-z]+[a-z0-9_]+$/.test(value);},$.mage.__('Please use only lowercase letters (a-z), numbers (0-9) or underscore (_) in this field, and the first character should be a letter.')],'validate-alphanum':[function(value){return utils.isEmptyNoTrim(value)||/^[a-zA-Z0-9]+$/.test(value);},$.mage.__('Please use only letters (a-z or A-Z) or numbers (0-9) in this field. No spaces or other characters are allowed.')],'validate-not-number-first':[function(value){return utils.isEmptyNoTrim(value)||/^[^0-9-\\.].*$/.test(value.trim());},$.mage.__('First character must be letter.')],'validate-date':[function(value,params,additionalParams){var test=moment(value,additionalParams.dateFormat);return utils.isEmptyNoTrim(value)||test.isValid();},$.mage.__('Please enter a valid date.')],'validate-date-range':[function(value,params){var fromDate=$('input[name*=\"'+params+'\"]').val();return moment.utc(value).unix()>=moment.utc(fromDate).unix()||isNaN(moment.utc(value).unix());},$.mage.__('Make sure the To Date is later than or the same as the From Date.')],'validate-identifier':[function(value){return utils.isEmptyNoTrim(value)||/^[a-z0-9][a-z0-9_\\/-]+(\\.[a-z0-9_-]+)?$/.test(value);},$.mage.__('Please enter a valid URL Key (Ex: \"example-page\", \"example-page.html\" or \"anotherlevel/example-page\").')],'validate-trailing-hyphen':[function(value){return utils.isEmptyNoTrim(value)||/^(?!-)(?!.*-$).+$/.test(value);},$.mage.__('Trailing hyphens are not allowed.')],'validate-zip-international':[function(){return true;},$.mage.__('Please enter a valid zip code.')],'validate-state':[function(value){return value!==0;},$.mage.__('Please select State/Province.')],'less-than-equals-to':[function(value,params){value=utils.parseNumber(value);if(isNaN(parseFloat(params))){params=$(params).val();}\nparams=utils.parseNumber(params);if(!isNaN(params)&&!isNaN(value)){this.lteToVal=params;return value<=params;}\nreturn true;},function(){return $.mage.__('Please enter a value less than or equal to %s.').replace('%s',this.lteToVal);}],'greater-than-equals-to':[function(value,params){value=utils.parseNumber(value);if(isNaN(parseFloat(params))){params=$(params).val();}\nparams=utils.parseNumber(params);if(!isNaN(params)&&!isNaN(value)){this.gteToVal=params;return value>=params;}\nreturn true;},function(){return $.mage.__('Please enter a value greater than or equal to %s.').replace('%s',this.gteToVal);}],'validate-emails':[function(value){var validRegexp,emails,i;if(utils.isEmpty(value)){return true;}\nvalidRegexp=/^[a-z0-9\\._-]{1,30}@([a-z0-9_-]{1,30}\\.){1,5}[a-z]{2,4}$/i;emails=value.split(/[\\s\\n\\,]+/g);for(i=0;i<emails.length;i++){if(!validRegexp.test(emails[i].strip())){return false;}}\nreturn true;},$.mage.__('Please enter valid email addresses, separated by commas. For example, johndoe@domain.com, johnsmith@domain.com.')],'validate-cc-number':[function(value){if(value){return validateCreditCard(value);}\nreturn true;},$.mage.__('Please enter a valid credit card number.')],'validate-cc-ukss':[function(value){return value;},$.mage.__('Please enter issue number or start date for switch/solo card type.')],'required-entry':[function(value){return!utils.isEmpty(value);},$.mage.__('This is a required field.')],'checked':[function(value){return value;},$.mage.__('This is a required field.')],'not-negative-amount':[function(value){if(value.length){return(/^\\s*\\d+([,.]\\d+)*\\s*%?\\s*$/).test(value);}\nreturn true;},$.mage.__('Please enter positive number in this field.')],'validate-per-page-value-list':[function(value){var isValid=true,values=value.split(','),i;if(utils.isEmpty(value)){return isValid;}\nfor(i=0;i<values.length;i++){if(!/^[0-9]+$/.test(values[i])){isValid=false;}}\nreturn isValid;},$.mage.__('Please enter a valid value, ex: 10,20,30')],'validate-new-password':[function(value){if($.validator.methods['validate-password']&&!$.validator.methods['validate-password'](value)){return false;}\nif(utils.isEmpty(value)&&value!==''){return false;}\nreturn true;},$.mage.__('Please enter 6 or more characters. Leading and trailing spaces will be ignored.')],'validate-item-quantity':[function(value,params){var validator=this,result=false,qty=utils.parseNumber(value),isMinAllowedValid=typeof params.minAllowed==='undefined'||qty>=utils.parseNumber(params.minAllowed),isMaxAllowedValid=typeof params.maxAllowed==='undefined'||qty<=utils.parseNumber(params.maxAllowed),isQtyIncrementsValid=typeof params.qtyIncrements==='undefined'||qty%utils.parseNumber(params.qtyIncrements)===0;result=qty>0;if(result===false){validator.itemQtyErrorMessage=$.mage.__('Please enter a quantity greater than 0.');return result;}\nresult=isMinAllowedValid;if(result===false){validator.itemQtyErrorMessage=$.mage.__('The fewest you may purchase is %1.').replace('%1',params.minAllowed);return result;}\nresult=isMaxAllowedValid;if(result===false){validator.itemQtyErrorMessage=$.mage.__('The maximum you may purchase is %1.').replace('%1',params.maxAllowed);return result;}\nresult=isQtyIncrementsValid;if(result===false){validator.itemQtyErrorMessage=$.mage.__('You can buy this product only in quantities of %1 at a time.').replace('%1',params.qtyIncrements);return result;}\nreturn result;},function(){return this.itemQtyErrorMessage;}],'equalTo':[function(value,param){return value===$(param).val();},$.validator.messages.equalTo],'validate-file-type':[function(name,types){var extension=name.split('.').pop().toLowerCase();if(types&&typeof types==='string'){types=types.split(' ');}\nreturn!types||!types.length||~types.indexOf(extension);},$.mage.__('We don\\'t recognize or support this file extension type.')],'validate-max-size':[function(size,maxSize){return maxSize===false||size<maxSize;},$.mage.__('File you are trying to upload exceeds maximum file size limit.')],'validate-if-tag-script-exist':[function(value){return!value||(/<script\\b[^>]*>([\\s\\S]*?)<\\/script>$/ig).test(value);},$.mage.__('Please use tag SCRIPT with SRC attribute or with proper content to include JavaScript to the document.')],'date_range_min':[function(value,minValue,params){return moment.utc(value,params.dateFormat).unix()>=minValue;},$.mage.__('The date is not within the specified range.')],'date_range_max':[function(value,maxValue,params){return moment.utc(value,params.dateFormat).unix()<=maxValue;},$.mage.__('The date is not within the specified range.')],'validate-color':[function(value){if(value===''){return true;}\nreturn tinycolor(value).isValid();},$.mage.__('Wrong color format. Please specify color in HEX, RGBa, HSVa, HSLa or use color name.')],'blacklist-url':[function(value,param){return new RegExp(param).test(value);},$.mage.__('This link is not allowed.')],'validate-dob':[function(value,param,params){if(value===''){return true;}\nreturn moment.utc(value,params.dateFormat).isSameOrBefore(moment.utc());},$.mage.__('The Date of Birth should not be greater than today.')],'validate-no-utf8mb4-characters':[function(value){var validator=this,message=$.mage.__('Please remove invalid characters: {0}.'),matches=value.match(/(?:[\\uD800-\\uDBFF][\\uDC00-\\uDFFF])/g),result=matches===null;if(!result){validator.charErrorMessage=message.replace('{0}',matches.join());}\nreturn result;},function(){return this.charErrorMessage;}]},function(data){return{handler:data[0],message:data[1]};});});","Magento_Ui/js/lib/core/events.min.js":"define(['ko','underscore'],function(ko,_){'use strict';var eventsMap=new WeakMap();function getEvents(obj,name){var events=eventsMap.get(obj);if(!events){return false;}\nreturn name?events.get(name):events;}\nfunction addHandler(obj,ns,callback,name){var events=getEvents(obj),observable,data;observable=!ko.isObservable(obj[name])?ko.getObservable(obj,name):obj[name];if(observable){observable.subscribe(callback);return;}\nif(!events){events=new Map();eventsMap.set(obj,events);}\ndata={callback:callback,ns:ns};events.has(name)?events.get(name).push(data):events.set(name,[data]);}\nfunction trigger(handlers,args){var bubble=true,callback;handlers.forEach(function(handler){callback=handler.callback;if(callback.apply(null,args)===false){bubble=false;}});return bubble;}\nreturn{on:function(events,callback,ns){var iterator;if(arguments.length<2){ns=callback;}\niterator=addHandler.bind(null,this,ns);_.isObject(events)?_.each(events,iterator):iterator(callback,events);return this;},off:function(ns){var storage=getEvents(this);if(!storage){return this;}\nstorage.forEach(function(handlers,name){handlers=handlers.filter(function(handler){return!ns?false:handler.ns!==ns;});handlers.length?storage.set(name,handlers):storage.delete(name);});return this;},trigger:function(name){var handlers,args;handlers=getEvents(this,name),args=_.toArray(arguments).slice(1);if(!handlers||!name){return true;}\nreturn trigger(handlers,args);}};});","Magento_Ui/js/lib/core/collection.min.js":"define(['underscore','mageUtils','uiRegistry','uiElement'],function(_,utils,registry,Element){'use strict';function compact(container){return _.values(container).filter(utils.isObject);}\nfunction _findIndex(item,container){var index=_.findKey(container,function(value){return value===item;});if(typeof index==='undefined'){index=_.findKey(container,function(value){return value&&value.name===item;});}\nreturn typeof index==='undefined'?-1:index;}\nfunction _insertAt(item,container,position){var currentIndex=_findIndex(item,container),newIndex,target;if(typeof position==='undefined'){position=-1;}else if(typeof position==='string'){position=isNaN(+position)?position:+position;}\nnewIndex=position;if(~currentIndex){target=container.splice(currentIndex,1)[0];if(typeof item==='string'){item=target;}}\nif(typeof position!=='number'){target=position.after||position.before||position;newIndex=_findIndex(target,container);if(~newIndex&&(position.after||newIndex>=currentIndex)){newIndex++;}}\nif(newIndex<0){newIndex+=container.length+1;}\ncontainer[newIndex]?container.splice(newIndex,0,item):container[newIndex]=item;return!~currentIndex?item:currentIndex!==newIndex;}\nreturn Element.extend({defaults:{template:'ui/collection',_elems:[],ignoreTmpls:{childDefaults:true}},initObservable:function(){this._super().observe({elems:[]});return this;},initElement:function(elem){elem.initContainer(this);return this;},getChild:function(index){return _.findWhere(this.elems(),{index:index});},insertChild:function(elems,position){var container=this._elems,insert=this._insert.bind(this),update;if(!Array.isArray(elems)){elems=[elems];}\nelems.map(function(item){return item.elem?_insertAt(item.elem,container,item.position):_insertAt(item,container,position);}).forEach(function(item){if(item===true){update=true;}else if(_.isString(item)){registry.get(item,insert);}else if(utils.isObject(item)){insert(item);}});if(update){this._updateCollection();}\nreturn this;},removeChild:function(elem,skipUpdate){if(_.isString(elem)){elem=this.getChild(elem);}\nif(elem){utils.remove(this._elems,elem);if(!skipUpdate){this._updateCollection();}}\nreturn this;},destroyChildren:function(){this.elems.each(function(elem){elem.destroy(true);});this._updateCollection();},clear:function(){var elems=this.elems();_.each(elems,function(elem){if(_.isFunction(elem.clear)){elem.clear();}},this);return this;},hasChild:function(index){return!!this.getChild(index);},requestChild:function(index){var name=this.formChildName(index);return this.requestModule(name);},formChildName:function(index){return this.name+'.'+index;},getRegion:function(name){var regions=this.regions=this.regions||{};if(!regions[name]){regions[name]=[];this.observe.call(regions,name);}\nreturn regions[name];},regionHasElements:function(name){var region=this.getRegion(name);return region().length>0;},updateRegion:function(items,name){this.getRegion(name)(items);return this;},destroy:function(){this._super();this.elems.each('destroy');},_insert:function(elem){var index=_.findKey(this._elems,function(value){return value===elem.name;});if(typeof index!=='undefined'){this._elems[index]=elem;}\nthis._updateCollection().initElement(elem);},_updateCollection:function(){var _elems=compact(this._elems),grouped;grouped=_elems.filter(function(elem){return elem.displayArea&&_.isString(elem.displayArea);});grouped=_.groupBy(grouped,'displayArea');_.each(grouped,this.updateRegion,this);_.each(this.regions,function(items){var hasObsoleteComponents=items().length&&!_.intersection(_elems,items()).length;if(hasObsoleteComponents){items.removeAll();}});this.elems(_elems);return this;},delegate:function(target){var args=_.toArray(arguments);target=this[target];if(_.isFunction(target)){return target.apply(this,args.slice(1));}\nreturn this._delegate(args);},_delegate:function(args){var result;result=this.elems.map(function(elem){var target;if(!_.isFunction(elem.delegate)){target=elem[args[0]];if(_.isFunction(target)){return target.apply(elem,args.slice(1));}}else{return elem.delegate.apply(elem,args);}});return _.flatten(result);}});});","Magento_Ui/js/lib/core/class.min.js":"define(['underscore','mageUtils','mage/utils/wrapper'],function(_,utils,wrapper){'use strict';var Class;function getOwn(obj,prop){return _.isObject(obj)&&obj.hasOwnProperty(prop)&&obj[prop];}\nfunction createConstructor(protoProps,constructor){var UiClass=constructor;if(!UiClass){UiClass=function(){var obj=this;if(!_.isObject(obj)||Object.getPrototypeOf(obj)!==UiClass.prototype){obj=Object.create(UiClass.prototype);}\nobj.initialize.apply(obj,arguments);return obj;};}\nUiClass.prototype=protoProps;UiClass.prototype.constructor=UiClass;return UiClass;}\nClass=createConstructor({initialize:function(options){this.initConfig(options);return this;},initConfig:function(options){var defaults=this.constructor.defaults,config=utils.extend({},defaults,options||{}),ignored=config.ignoreTmpls||{},cached=utils.omit(config,ignored);config=utils.template(config,this,false,true);_.each(cached,function(value,key){utils.nested(config,key,value);});return _.extend(this,config);}});_.extend(Class,{defaults:{ignoreTmpls:{templates:true}},extend:function(extender){var parent=this,parentProto=parent.prototype,childProto=Object.create(parentProto),child=createConstructor(childProto,getOwn(extender,'constructor')),defaults;extender=extender||{};defaults=extender.defaults;delete extender.defaults;_.each(extender,function(method,name){childProto[name]=wrapper.wrapSuper(parentProto[name],method);});child.defaults=utils.extend({},parent.defaults||{});if(defaults){utils.extend(child.defaults,defaults);extender.defaults=defaults;}\nreturn _.extend(child,{__super__:parentProto,extend:parent.extend});}});return Class;});","Magento_Ui/js/lib/core/storage/local.min.js":"define(['underscore','uiRegistry','mageUtils','uiEvents'],function(_,registry,utils,EventsBus){'use strict';var root='appData',localStorage,hasSupport,storage;hasSupport=(function(){var key='_storageSupported';try{localStorage=window.localStorage;localStorage.setItem(key,'true');if(localStorage.getItem(key)==='true'){localStorage.removeItem(key);return true;}\nreturn false;}catch(e){return false;}})();if(!hasSupport){localStorage={_data:{},setItem:function(key,value){this._data[key]=value+'';},getItem:function(key){return this._data[key];},removeItem:function(key){delete this._data[key];},clear:function(){this._data={};}};}\nfunction getRoot(){var data=localStorage.getItem(root),result={};if(!_.isNull(data)&&typeof data!='undefined'){result=JSON.parse(data);}\nreturn result;}\nfunction setRoot(data){localStorage.setItem(root,JSON.stringify(data));}\nstorage=_.extend({get:function(path){var data=getRoot();return utils.nested(data,path);},set:function(path,value){var data=getRoot();utils.nested(data,path,value);setRoot(data);},remove:function(path){var data=getRoot();utils.nestedRemove(data,path);setRoot(data);}},EventsBus);registry.set('localStorage',storage);return storage;});","Magento_Ui/js/lib/core/element/links.min.js":"define(['ko','underscore','mageUtils','uiRegistry'],function(ko,_,utils,registry){'use strict';function parseData(placeholder,data,direction){if(typeof data!=='string'){return false;}\ndata=data.split(':');if(!data[0]){return false;}\nif(!data[1]){data[1]=data[0];data[0]=placeholder;}\nreturn{target:data[0],property:data[1],direction:direction};}\nfunction notEmpty(value){return typeof value!=='undefined'&&value!=null;}\nfunction updateValue(data,owner,target,value){var component=target.component,property=target.property,linked=data.linked;if(data.mute){return;}\nif(linked){linked.mute=true;}\nif(owner.component!==target.component){value=data.inversionValue?!utils.copy(value):utils.copy(value);}\ncomponent.set(property,value,owner);if(property==='disabled'&&value){component.set('validate',value,owner);}\nif(linked){linked.mute=false;}}\nfunction getValue(owner){var component=owner.component,property=owner.property;return component.get(property);}\nfunction form(ownerComponent,targetComponent,ownerProp,targetProp,direction){var result,tmp;result={owner:{component:ownerComponent,property:ownerProp},target:{component:targetComponent,property:targetProp}};if(direction==='exports'){tmp=result.owner;result.owner=result.target;result.target=tmp;}\nreturn result;}\nfunction setLinked(map,data){var match;if(!map){return;}\nmatch=_.findWhere(map,{linked:false,target:data.target,property:data.property});if(match){match.linked=data;data.linked=match;}}\nfunction setData(maps,property,data){var direction=data.direction,map=maps[direction];data.linked=false;(map[property]=map[property]||[]).push(data);direction=direction==='imports'?'exports':'imports';setLinked(maps[direction][property],data);}\nfunction setLink(target,owner,data,property,immediate){var direction=data.direction,formated=form(target,owner,data.property,property,direction),callback,value;owner=formated.owner;target=formated.target;callback=updateValue.bind(null,data,owner,target);owner.component.on(owner.property,callback,target.component.name);if(immediate){value=getValue(owner);if(notEmpty(value)){updateValue(data,owner,target,value);}}}\nfunction transfer(owner,data){var args=_.toArray(arguments);if(data.target.substr(0,1)==='!'){data.target=data.target.substr(1);data.inversionValue=true;}\nif(owner.name===data.target){args.unshift(owner);setLink.apply(null,args);}else{registry.get(data.target,function(target){args.unshift(target);setLink.apply(null,args);});}}\nreturn{setListeners:function(listeners){var owner=this,data;_.each(listeners,function(callbacks,sources){sources=sources.split(' ');callbacks=callbacks.split(' ');sources.forEach(function(target){callbacks.forEach(function(callback){data=parseData(owner.name,target,'imports');if(data){setData(owner.maps,callback,data);transfer(owner,data,callback);}});});});return this;},setLinks:function(links,direction){var owner=this,property,data;for(property in links){if(links.hasOwnProperty(property)){data=parseData(owner.name,links[property],direction);if(data){setData(owner.maps,property,data);transfer(owner,data,property,true);}}}\nreturn this;}};});","Magento_Ui/js/lib/core/element/element.min.js":"define(['ko','underscore','mageUtils','uiRegistry','uiEvents','uiClass','./links','../storage/local'],function(ko,_,utils,registry,Events,Class,links){'use strict';var Element;function observable(obj,key,value){var method=Array.isArray(value)?'observableArray':'observable';if(_.isFunction(obj[key])&&!ko.isObservable(obj[key])){return;}\nif(ko.isObservable(value)){value=value();}\nko.isObservable(obj[key])?obj[key](value):obj[key]=ko[method](value);}\nfunction accessor(obj,key,value){if(_.isFunction(obj[key])||ko.isObservable(obj[key])){return;}\nobj[key]=value;if(!ko.es5.isTracked(obj,key)){ko.track(obj,[key]);}}\nElement=_.extend({defaults:{_requested:{},containers:[],exports:{},imports:{},links:{},listens:{},name:'',ns:'${ $.name.split(\".\")[0] }',provider:'',registerNodes:true,source:null,statefull:{},template:'',tracks:{},storageConfig:{provider:'localStorage',namespace:'${ $.name }',path:'${ $.storageConfig.provider }:${ $.storageConfig.namespace }'},maps:{imports:{},exports:{}},modules:{storage:'${ $.storageConfig.provider }'}},initialize:function(){this._super().initObservable().initModules().initStatefull().initLinks().initUnique();return this;},initObservable:function(){_.each(this.tracks,function(enabled,key){if(enabled){this.track(key);}},this);return this;},initModules:function(){_.each(this.modules,function(name,property){if(name){this[property]=this.requestModule(name);}},this);if(!_.isFunction(this.source)){this.source=registry.get(this.provider);}\nreturn this;},initContainer:function(parent){this.containers.push(parent);return this;},initStatefull:function(){_.each(this.statefull,function(path,key){if(path){this.setStatefull(key,path);}},this);return this;},initLinks:function(){return this.setListeners(this.listens).setLinks(this.links,'imports').setLinks(this.links,'exports').setLinks(this.exports,'exports').setLinks(this.imports,'imports');},initUnique:function(){var update=this.onUniqueUpdate.bind(this),uniqueNs=this.uniqueNs;this.hasUnique=this.uniqueProp&&uniqueNs;if(this.hasUnique){this.source.on(uniqueNs,update,this.name);}\nreturn this;},setStatefull:function(key,path){var link={};path=!_.isString(path)||!path?key:path;link[key]=this.storageConfig.path+'.'+path;this.setLinks(link,'imports').setLinks(link,'exports');return this;},setUnique:function(){var property=this.uniqueProp;if(this[property]()){this.source.set(this.uniqueNs,this.name);}\nreturn this;},requestModule:function(name){var requested=this._requested;if(!requested[name]){requested[name]=registry.async(name);}\nreturn requested[name];},getTemplate:function(){return this.template;},hasTemplate:function(){return!!this.template;},get:function(path){return utils.nested(this,path);},set:function(path,value){var data=this.get(path),diffs;diffs=!_.isFunction(data)&&!this.isTracked(path)?utils.compare(data,value,path):false;utils.nested(this,path,value);if(diffs){this._notifyChanges(diffs);}\nreturn this;},remove:function(path){var data=utils.nested(this,path),diffs;if(_.isUndefined(data)||_.isFunction(data)){return this;}\ndiffs=utils.compare(data,undefined,path);utils.nestedRemove(this,path);this._notifyChanges(diffs);return this;},observe:function(useAccessors,properties){var model=this,trackMethod;if(typeof useAccessors!=='boolean'){properties=useAccessors;useAccessors=false;}\ntrackMethod=useAccessors?accessor:observable;if(_.isString(properties)){properties=properties.split(' ');}\nif(Array.isArray(properties)){properties.forEach(function(key){trackMethod(model,key,model[key]);});}else if(typeof properties==='object'){_.each(properties,function(value,key){trackMethod(model,key,value);});}\nreturn this;},track:function(properties){this.observe(true,properties);return this;},isTracked:function(property){return ko.es5.isTracked(this,property);},_notifyChanges:function(diffs){diffs.changes.forEach(function(change){this.trigger(change.path,change.value,change);},this);_.each(diffs.containers,function(changes,name){var value=utils.nested(this,name);this.trigger(name,value,changes);},this);return this;},restore:function(){var ns=this.storageConfig.namespace,storage=this.storage();if(storage){utils.extend(this,storage.get(ns));}\nreturn this;},store:function(property,data){var ns=this.storageConfig.namespace,path=utils.fullPath(ns,property);if(arguments.length<2){data=this.get(property);}\nthis.storage('set',path,data);return this;},getStored:function(property){var ns=this.storageConfig.namespace,path=utils.fullPath(ns,property),storage=this.storage(),data;if(storage){data=storage.get(path);}\nreturn data;},removeStored:function(property){var ns=this.storageConfig.namespace,path=utils.fullPath(ns,property);this.storage('remove',path);return this;},destroy:function(skipUpdate){this._dropHandlers()._clearRefs(skipUpdate);},_dropHandlers:function(){this.off();if(_.isFunction(this.source)){this.source().off(this.name);}else if(this.source){this.source.off(this.name);}\nreturn this;},_clearRefs:function(skipUpdate){registry.remove(this.name);this.containers.forEach(function(parent){parent.removeChild(this,skipUpdate);},this);return this;},bubble:function(){var args=_.toArray(arguments),bubble=this.trigger.apply(this,args),result;if(!bubble){return false;}\nthis.containers.forEach(function(parent){result=parent.bubble.apply(parent,args);if(result===false){bubble=false;}});return!!bubble;},onUniqueUpdate:function(name){var active=name===this.name,property=this.uniqueProp;this[property](active);},cleanData:function(){if(this.source&&this.source.componentType==='dataSource'){if(this.elems){_.each(this.elems(),function(val){val.cleanData();});}else{this.source.remove(this.dataScope);}}\nreturn this;},cacheData:function(){this.cachedComponent=utils.copy(this);},updateConfig:function(oldValue,newValue,path){var names=path.split('.'),index=_.lastIndexOf(names,'config')+1;names=names.splice(index,names.length-index).join('.');this.set(names,newValue);return this;}},Events,links);return Class.extend(Element);});","Magento_Ui/js/lib/registry/registry.min.js":"define(['jquery','underscore'],function($,_){'use strict';var privateData=new WeakMap();function getItems(container){return privateData.get(container).items;}\nfunction getRequests(container){return privateData.get(container).requests;}\nfunction async(name,registry,method){var args=_.toArray(arguments).slice(3);if(_.isString(method)){registry.get(name,function(component){component[method].apply(component,args);});}else if(_.isFunction(method)){registry.get(name,method);}else if(!args.length){return registry.get(name);}}\nfunction compare(query,target){var matches=true,index,keys,key;if(!_.isObject(query)||!_.isObject(target)){return false;}\nkeys=Object.getOwnPropertyNames(query);index=keys.length;while(matches&&index--){key=keys[index];if(target[key]!=query[key]){matches=false;}}\nreturn matches;}\nfunction explode(query){var result={},index,data;if(typeof query!=='string'||!~query.indexOf('=')){return query;}\nquery=query.split(',');index=query.length;while(index--){data=query[index].split('=');result[data[0].trim()]=data[1].trim();}\nreturn result;}\nfunction find(data,query,findAll){var iterator,item;query=explode(query);if(typeof query==='string'){item=data[query];if(findAll){return item?[item]:[];}\nreturn item;}\niterator=!_.isFunction(query)?compare.bind(null,query):query;return findAll?_.filter(data,iterator):_.find(data,iterator);}\nfunction Registry(){var data={items:{},requests:[]};this._updateRequests=_.debounce(this._updateRequests.bind(this),10);privateData.set(this,data);}\nRegistry.prototype={constructor:Registry,get:function(query,callback){if(typeof callback!=='function'){return find(getItems(this),query);}\nthis._addRequest(query,callback);},set:function(id,item){getItems(this)[id]=item;this._updateRequests();return this;},remove:function(id){delete getItems(this)[id];return this;},filter:function(query){return find(getItems(this),query,true);},has:function(query){return!!this.get(query);},contains:function(item){return _.contains(getItems(this),item);},indexOf:function(item){return _.findKey(getItems(this),function(elem){return item===elem;});},promise:function(query){var defer=$.Deferred(),callback=defer.resolve.bind(defer);this.get(query,callback);return defer.promise();},async:function(query){return async.bind(null,query,this);},create:function(){return new Registry;},_addRequest:function(queries,callback){var request;if(!Array.isArray(queries)){queries=queries?[queries]:[];}\nrequest={queries:queries.map(explode),callback:callback};this._canResolve(request)?this._resolveRequest(request):getRequests(this).push(request);return this;},_updateRequests:function(){getRequests(this).filter(this._canResolve,this).forEach(this._resolveRequest,this);return this;},_resolveRequest:function(request){var requests=getRequests(this),items=request.queries.map(this.get,this),index=requests.indexOf(request);request.callback.apply(null,items);if(~index){requests.splice(index,1);}\nreturn this;},_canResolve:function(request){var queries=request.queries;return queries.every(this.has,this);}};return new Registry;});","Magento_Ui/js/lib/view/utils/bindings.min.js":"define(['ko','jquery','underscore'],function(ko,$,_){'use strict';function isDomElement(node){return typeof node==='object'&&node.tagName&&node.nodeType;}\nfunction normalize(nodes){var result;nodes=_.toArray(nodes);result=nodes.slice();nodes.forEach(function(node){if(node.nodeType===8){result=!ko.virtualElements.hasBindingValue(node)?_.without(result,node):_.difference(result,ko.virtualElements.childNodes(node));}});return result;}\n$.fn.extendCtx=function(){var nodes=normalize(this),extenders=_.toArray(arguments);nodes.forEach(function(node){var ctx=ko.contextFor(node),data=[ctx].concat(extenders);_.extend.apply(_,data);});return this;};$.fn.applyBindings=function(ctx){var nodes=normalize(this),nodeCtx;if(isDomElement(ctx)){ctx=ko.contextFor(ctx);}\nnodes.forEach(function(node){nodeCtx=ctx||ko.contextFor(node);ko.applyBindings(nodeCtx,node);});return this;};$.fn.bindings=function(data,ctx){var nodes=normalize(this),bindings=data,nodeCtx;if(isDomElement(ctx)){ctx=ko.contextFor(ctx);}\nnodes.forEach(function(node){nodeCtx=ctx||ko.contextFor(node);if(_.isFunction(data)){bindings=data(nodeCtx,node);}\nko.applyBindingsToNode(node,bindings,nodeCtx);});return this;};});","Magento_Ui/js/lib/view/utils/dom-observer.min.js":"define(['jquery','underscore','domReady!'],function($,_){'use strict';var counter=1,watchers,globalObserver,disabledNodes=[];watchers={selectors:{},nodes:{}};function isElementNode(node){return node.nodeType===1;}\nfunction extractChildren(node){var children=node.querySelectorAll('*');return _.toArray(children);}\nfunction getNodeId(node){var id=node._observeId;if(!id){id=node._observeId=counter++;}\nreturn id;}\nfunction trigger(node,data){var id=getNodeId(node),ids=data.invoked;if(_.contains(ids,id)){return;}\ndata.callback(node);data.invoked.push(id);}\nfunction createNodeData(node){var nodes=watchers.nodes,id=getNodeId(node);nodes[id]=nodes[id]||{};return nodes[id];}\nfunction getNodeData(node){var nodeId=node._observeId;return watchers.nodes[nodeId];}\nfunction removeNodeData(node){var nodeId=node._observeId;delete watchers.nodes[nodeId];}\nfunction addRemovalListener(node,data){var nodeData=createNodeData(node);(nodeData.remove=nodeData.remove||[]).push(data);}\nfunction addSelectorListener(selector,data){var storage=watchers.selectors;(storage[selector]=storage[selector]||[]).push(data);}\nfunction processAdded(node){_.each(watchers.selectors,function(listeners,selector){listeners.forEach(function(data){if(!data.ctx.contains(node)||!$(node,data.ctx).is(selector)){return;}\nif(data.type==='add'){trigger(node,data);}else if(data.type==='remove'){addRemovalListener(node,data);}});});}\nfunction processRemoved(node){var nodeData=getNodeData(node),listeners=nodeData&&nodeData.remove;if(!listeners){return;}\nlisteners.forEach(function(data){trigger(node,data);});removeNodeData(node);}\nfunction formNodesList(nodes){var result=[],children;nodes=_.toArray(nodes).filter(isElementNode);nodes.forEach(function(node){result.push(node);children=extractChildren(node);result=result.concat(children);});return result;}\nfunction formChangesLists(mutations){var removed=[],added=[];mutations.forEach(function(record){removed=removed.concat(_.toArray(record.removedNodes));added=added.concat(_.toArray(record.addedNodes));});removed=removed.filter(function(node){var addIndex=added.indexOf(node),wasAdded=!!~addIndex;if(wasAdded){added.splice(addIndex,1);}\nreturn!wasAdded;});return{removed:formNodesList(removed),added:formNodesList(added)};}\nfunction shouldObserveMutation(mutation){var isDisabled;if(disabledNodes.length>0){isDisabled=_.find(disabledNodes,function(node){return node===mutation.target||$.contains(node,mutation.target);});return!isDisabled;}\nreturn true;}\nfunction shouldObserveMutations(mutations){var firstMutation,lastMutation;if(mutations.length>0){firstMutation=mutations[0];lastMutation=mutations[mutations.length-1];return shouldObserveMutation(firstMutation)&&shouldObserveMutation(lastMutation);}\nreturn true;}\nglobalObserver=new MutationObserver(function(mutations){var changes;if(shouldObserveMutations(mutations)){changes=formChangesLists(mutations);changes.removed.forEach(processRemoved);changes.added.forEach(processAdded);}});globalObserver.observe(document.body,{subtree:true,childList:true});return{disableNode:function(node){disabledNodes.push(node);},get:function(selector,callback,ctx){var data,nodes;data={ctx:ctx||document.body,type:'add',callback:callback,invoked:[]};nodes=$(selector,data.ctx).toArray();nodes.forEach(function(node){trigger(node,data);});addSelectorListener(selector,data);},remove:function(selector,callback,ctx){var nodes=[],data;data={ctx:ctx||document.body,type:'remove',callback:callback,invoked:[]};if(typeof selector==='object'){nodes=!_.isUndefined(selector.length)?_.toArray(selector):[selector];}else if(_.isString(selector)){nodes=$(selector,ctx).toArray();addSelectorListener(selector,data);}\nnodes.forEach(function(node){addRemovalListener(node,data);});},off:function(selector,fn){var selectors=watchers.selectors,listeners=selectors[selector];if(selector&&!fn){delete selectors[selector];}else if(listeners&&fn){selectors[selector]=listeners.filter(function(data){return data.callback!==fn;});}}};});","Magento_Ui/js/lib/view/utils/async.min.js":"define(['ko','jquery','underscore','uiRegistry','./dom-observer','Magento_Ui/js/lib/knockout/extender/bound-nodes','./bindings'],function(ko,$,_,registry,domObserver,boundedNodes){'use strict';function isDomElement(node){return typeof node==='object'&&node.tagName&&node.nodeType;}\nfunction parseSelector(str){var data=str.trim().split('->'),result={},componentData;if(data.length===1){if(!~data[0].indexOf(':')){result.selector=data[0];}else{componentData=data[0];}}else{componentData=data[0];result.selector=data[1];}\nif(componentData){componentData=componentData.split(':');result.component=componentData[0];result.ctx=componentData[1];}\n_.each(result,function(value,key){result[key]=value.trim();});return result;}\nfunction parseData(selector,ctx){var data={};if(arguments.length===2){data.selector=selector;if(isDomElement(ctx)){data.ctx=ctx;}else{data.component=ctx;data.ctx='*';}}else{data=_.isString(selector)?parseSelector(selector):selector;}\nreturn data;}\nfunction waitComponent(name){var deffer=$.Deferred();if(_.isString(name)){registry.get(name,function(component){deffer.resolve(component);});}else{deffer.resolve(name);}\nreturn deffer.promise();}\nfunction setRootListener(data,component){boundedNodes.get(component,function(root){if(!$(root).is(data.ctx||'*')){return;}\ndata.selector?domObserver.get(data.selector,data.fn,root):data.fn(root);});}\n$.async=function(selector,ctx,fn){var args=_.toArray(arguments),data=parseData.apply(null,_.initial(args));data.fn=_.last(args);if(data.component){waitComponent(data.component).then(setRootListener.bind(null,data));}else{domObserver.get(data.selector,data.fn,data.ctx);}};_.extend($.async,{get:function(selector,ctx){var data=parseData.apply(null,arguments),component=data.component,nodes;if(!component){return $(data.selector,data.ctx).toArray();}else if(_.isString(component)){component=registry.get(component);}\nif(!component){return[];}\nnodes=boundedNodes.get(component);nodes=$(nodes).filter(data.ctx).toArray();return data.selector?$(data.selector,nodes).toArray():nodes;},remove:function(nodes,fn){domObserver.remove(nodes,fn);},parseSelector:parseSelector});return $;});","Magento_Ui/js/lib/view/utils/raf.min.js":"define([],function(){'use strict';var processMap=new WeakMap(),origRaf,raf;origRaf=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.onRequestAnimationFrame||window.msRequestAnimationFrame||function(callback){if(typeof callback!='function'){throw new Error('raf argument \"callback\" must be of type function');}\nwindow.setTimeout(callback,1000 / 60);};function getProcess(id,fps){var process=processMap.get(id);if(!process){process={};processMap.set(id,process);}\nif(process.fps!==fps){process.fps=fps;process.interval=1000 / fps;process.update=Date.now();}\nreturn process;}\nraf=function(callback,fps){var rafId=origRaf(callback);return fps?raf.tick(callback,fps):rafId;};raf.tick=function(id,fps){var process=getProcess(id,fps),now=Date.now(),delta=now-process.update,interval=process.interval;if(fps>=60||delta>=interval){process.update=now-delta%interval;return true;}\nreturn false;};return raf;});","Magento_Ui/js/lib/knockout/bootstrap.min.js":"define(['ko','./template/engine','knockoutjs/knockout-es5','./bindings/bootstrap','./extender/observable_array','./extender/bound-nodes','domReady!'],function(ko,templateEngine){'use strict';ko.uid=0;ko.setTemplateEngine(templateEngine);ko.applyBindings();});","Magento_Ui/js/lib/knockout/template/loader.min.js":"define(['jquery'],function($){'use strict';var licenseRegExp=/<!--[\\s\\S]*?-->/,defaultPlugin='text',defaultExt='html';function hasFileExtension(str){return!!~str.indexOf('.')&&!!str.split('.').pop();}\nfunction hasPlugin(str){return!!~str.indexOf('!');}\nfunction isFullPath(str){return!!~str.indexOf('://');}\nfunction removeLicense(content){return content.replace(licenseRegExp,function(match){return~match.indexOf('/**')?'':match;});}\nreturn{loadTemplate:function(path){var content=this.loadFromNode(path),defer;if(content){defer=$.Deferred();defer.resolve(content);return defer.promise();}\nreturn this.loadFromFile(path);},loadFromFile:function(path){var loading=$.Deferred();path=this.formatPath(path);require([path],function(template){template=removeLicense(template);loading.resolve(template);},function(err){loading.reject(err);});return loading.promise();},loadFromNode:function(selector){var node;try{node=document.getElementById(selector)||document.querySelector(selector);return node?node.innerHTML:false;}catch(e){return false;}},formatPath:function(path){var result=path;if(!hasPlugin(path)){result=defaultPlugin+'!'+result;}\nif(isFullPath(path)){return result;}\nif(!hasFileExtension(path)){result+='.'+defaultExt;}\nreturn result.replace(/^([^\\/]+)/g,'$1/template');}};});","Magento_Ui/js/lib/knockout/template/engine.min.js":"define(['jquery','ko','underscore','./observable_source','./renderer','../../logger/console-logger'],function($,ko,_,Source,renderer,consoleLogger){'use strict';var RemoteTemplateEngine,NativeTemplateEngine=ko.nativeTemplateEngine,sources={};RemoteTemplateEngine=function(){var engine=this,origUpdate=ko.bindingHandlers.template.update;this._rendersOutstanding=0;this._events=$(this);this._templatesRendered={};ko.bindingHandlers.template.update=function(element,valueAccessor,allBindings,viewModel,bindingContext){var options=ko.utils.peekObservable(valueAccessor()),templateName,isSync,updated;if(typeof options==='object'){if(options.templateEngine&&options.templateEngine!==engine){return origUpdate.apply(this,arguments);}\nif(!options.name){consoleLogger.error('Could not find template name',options);}\ntemplateName=options.name;}else if(typeof options==='string'){templateName=options;}else{consoleLogger.error('Could not build a template binding',options);}\nengine._trackRender(templateName);isSync=engine._hasTemplateLoaded(templateName);updated=origUpdate.apply(this,arguments);if(isSync){engine._releaseRender(templateName,'sync');}\nreturn updated;};};function createTemplateIdentifier(templateName){return templateName;}\nRemoteTemplateEngine.prototype=new NativeTemplateEngine;RemoteTemplateEngine.prototype.constructor=RemoteTemplateEngine;RemoteTemplateEngine.prototype._trackRender=function(templateName){var rendersForTemplate=this._templatesRendered[templateName]!==undefined?this._templatesRendered[templateName]:0;this._rendersOutstanding++;this._templatesRendered[templateName]=rendersForTemplate+1;this._resolveRenderWaits();};RemoteTemplateEngine.prototype._releaseRender=function(templateName){var rendersForTemplate=this._templatesRendered[templateName];this._rendersOutstanding--;this._templatesRendered[templateName]=rendersForTemplate-1;this._resolveRenderWaits();};RemoteTemplateEngine.prototype._resolveRenderWaits=function(){if(this._rendersOutstanding===0){this._events.triggerHandler('finishrender');}};RemoteTemplateEngine.prototype.waitForFinishRender=function(){var defer=$.Deferred();this._events.one('finishrender',defer.resolve);return defer.promise();};RemoteTemplateEngine.prototype._hasTemplateLoaded=function(templateName){return sources.hasOwnProperty(templateName);};RemoteTemplateEngine.prototype.makeTemplateSource=function(template,templateDocument,options,bindingContext){var engine=this,source,templateId;if(typeof template==='string'){templateId=createTemplateIdentifier(template);source=sources[templateId];if(!source){source=new Source(template);source.requestedBy=bindingContext.$data.name;sources[templateId]=source;consoleLogger.info('templateStartLoading',{template:templateId,component:bindingContext.$data.name});renderer.render(template).then(function(rendered){consoleLogger.info('templateLoadedFromServer',{template:templateId,component:bindingContext.$data.name});source.nodes(rendered);engine._releaseRender(templateId,'async');}).fail(function(){consoleLogger.error('templateLoadingFail',{template:templateId,component:bindingContext.$data.name});});}\nif(source.requestedBy!==bindingContext.$data.name){consoleLogger.info('templateLoadedFromCache',{template:templateId,component:bindingContext.$data.name});}\nreturn source;}else if(template.nodeType===1||template.nodeType===8){source=new ko.templateSources.anonymousTemplate(template);return source;}\nthrow new Error('Unknown template type: '+template);};RemoteTemplateEngine.prototype.renderTemplateSource=function(templateSource){var nodes=templateSource.nodes();return ko.utils.cloneNodes(nodes);};RemoteTemplateEngine.prototype.renderTemplate=function(template,bindingContext,options,templateDocument){var templateSource=this.makeTemplateSource(template,templateDocument,options,bindingContext);return this.renderTemplateSource(templateSource);};return new RemoteTemplateEngine;});","Magento_Ui/js/lib/knockout/template/observable_source.min.js":"define(['ko','uiClass'],function(ko,Class){'use strict';return Class.extend({initialize:function(template){this.templateName=template;this._data={};this.nodes=ko.observable([]);},data:function(key,value){if(arguments.length===1){return this._data[key];}\nthis._data[key]=value;}});});","Magento_Ui/js/lib/knockout/template/renderer.min.js":"define(['jquery','underscore','./loader'],function($,_,loader){'use strict';var colonReg=/\\\\:/g,renderedTemplatePromises={},attributes={},elements={},globals=[],renderer,preset;renderer={render:function(tmplPath){var cachedPromise=renderedTemplatePromises[tmplPath];if(!cachedPromise){cachedPromise=renderedTemplatePromises[tmplPath]=loader.loadTemplate(tmplPath).then(renderer.parseTemplate);}\nreturn cachedPromise;},getRendered:function(tmplPath){return renderer.render(tmplPath);},parseTemplate:function(html){var fragment=document.createDocumentFragment();$(fragment).append(html);return renderer.normalize(fragment);},normalize:function(content){globals.forEach(function(handler){handler(content);});return _.toArray(content.childNodes);},addGlobal:function(handler){if(!_.contains(globals,handler)){globals.push(handler);}\nreturn this;},removeGlobal:function(handler){var index=globals.indexOf(handler);if(~index){globals.splice(index,1);}\nreturn this;},addAttribute:function(id,config){var data={name:id,binding:id,handler:renderer.handlers.attribute};if(_.isFunction(config)){data.handler=config;}else if(_.isObject(config)){_.extend(data,config);}\ndata.id=id;attributes[id]=data;return this;},removeAttribute:function(id){delete attributes[id];return this;},addNode:function(id,config){var data={name:id,binding:id,handler:renderer.handlers.node};if(_.isFunction(config)){data.handler=config;}else if(_.isObject(config)){_.extend(data,config);}\ndata.id=id;elements[id]=data;return this;},removeNode:function(id){delete elements[id];return this;},isCustomNode:function(node){return _.some(elements,function(elem){return elem.name.toUpperCase()===node.tagName;});},processAttributes:function(content){var repeat;repeat=_.some(attributes,function(attr){var attrName=attr.name,nodes=content.querySelectorAll('['+attrName+']'),handler=attr.handler;return _.toArray(nodes).some(function(node){var data=node.getAttribute(attrName);return handler(node,data,attr)===true;});});if(repeat){renderer.processAttributes(content);}},processNodes:function(content){var repeat;repeat=_.some(elements,function(element){var nodes=content.querySelectorAll(element.name),handler=element.handler;return _.toArray(nodes).some(function(node){var data=node.getAttribute('args');return handler(node,data,element)===true;});});if(repeat){renderer.processNodes(content);}},wrapArgs:function(args){if(~args.indexOf('\\\\:')){args=args.replace(colonReg,':');}else if(~args.indexOf(':')&&!~args.indexOf('}')){args='{'+args+'}';}\nreturn args;},wrapChildren:function(node,binding,data){var tag=this.createComment(binding,data),$node=$(node);$node.prepend(tag.open);$node.append(tag.close);},wrapNode:function(node,binding,data){var tag=this.createComment(binding,data),$node=$(node);$node.before(tag.open);$node.after(tag.close);},createComment:function(binding,data){return{open:document.createComment(' ko '+binding+': '+data+' '),close:document.createComment(' /ko ')};}};renderer.handlers={node:function(node,data,element){data=renderer.wrapArgs(data);renderer.wrapNode(node,element.binding,data);$(node).replaceWith(node.childNodes);return true;},attribute:function(node,data,attr){data=renderer.wrapArgs(data);renderer.bindings.add(node,attr.binding,data);node.removeAttribute(attr.name);},wrapAttribute:function(node,data,attr){data=renderer.wrapArgs(data);renderer.wrapNode(node,attr.binding,data);node.removeAttribute(attr.name);}};renderer.bindings={add:function(node,name,data){var bindings=this.get(node);if(bindings){bindings+=', ';}\nbindings+=name;if(data){bindings+=': '+data;}\nthis.set(node,bindings);},get:function(node){return node.getAttribute('data-bind')||'';},set:function(node,bindings){node.setAttribute('data-bind',bindings);}};renderer.addGlobal(renderer.processAttributes).addGlobal(renderer.processNodes);preset={nodes:_.object(['if','text','with','scope','ifnot','foreach','component'],Array.prototype),attributes:_.object(['css','attr','html','with','text','click','event','submit','enable','disable','options','visible','template','hasFocus','textInput','component','uniqueName','optionsText','optionsValue','checkedValue','selectedOptions'],Array.prototype)};_.extend(preset.attributes,{if:renderer.handlers.wrapAttribute,ifnot:renderer.handlers.wrapAttribute,innerif:{binding:'if'},innerifnot:{binding:'ifnot'},outereach:{binding:'foreach',handler:renderer.handlers.wrapAttribute},foreach:{name:'each'},value:{name:'ko-value'},style:{name:'ko-style'},checked:{name:'ko-checked'},disabled:{name:'ko-disabled',binding:'disable'},focused:{name:'ko-focused',binding:'hasFocus'},render:function(node,data){data=data||'getTemplate()';data=renderer.wrapArgs(data);renderer.wrapChildren(node,'template',data);node.removeAttribute('render');}});_.extend(preset.nodes,{foreach:{name:'each'},render:function(node,data){data=data||'getTemplate()';data=renderer.wrapArgs(data);renderer.wrapNode(node,'template',data);$(node).replaceWith(node.childNodes);}});_.each(preset.attributes,function(data,id){renderer.addAttribute(id,data);});_.each(preset.nodes,function(data,id){renderer.addNode(id,data);});return renderer;});","Magento_Ui/js/lib/knockout/extender/observable_array.min.js":"define(['ko','underscore'],function(ko,_){'use strict';function iterator(callback,args,elem){callback=elem[callback];if(_.isFunction(callback)){return callback.apply(elem,args);}\nreturn callback;}\nfunction wrapper(method){return function(iteratee){var callback=iteratee,elems=this(),args=_.toArray(arguments);if(_.isString(iteratee)){callback=iterator.bind(null,iteratee,args.slice(1));args.unshift(callback);}\nargs.unshift(elems);return _[method].apply(_,args);};}\n_.extend(ko.observableArray.fn,{each:wrapper('each'),map:wrapper('map'),filter:wrapper('filter'),some:wrapper('some'),every:wrapper('every'),groupBy:wrapper('groupBy'),sortBy:wrapper('sortBy'),findWhere:function(properties){return _.findWhere(this(),properties);},contains:function(value){return _.contains(this(),value);},hasNo:function(){return!this.contains.apply(this,arguments);},getLength:function(){return this().length;},indexBy:function(key){return _.indexBy(this(),key);},without:function(){var args=Array.prototype.slice.call(arguments);args.unshift(this());return _.without.apply(_,args);},first:function(){return _.first(this());},last:function(){return _.last(this());},pluck:function(){var args=Array.prototype.slice.call(arguments);args.unshift(this());return _.pluck.apply(_,args);}});});","Magento_Ui/js/lib/knockout/extender/bound-nodes.min.js":"define(['ko','underscore','mage/utils/wrapper','uiEvents'],function(ko,_,wrapper,Events){'use strict';var nodesMap=new WeakMap();function getBounded(model){return nodesMap.get(model);}\nfunction addBounded(model,node){var nodes=getBounded(model),isRoot;if(!nodes){nodesMap.set(model,[node]);Events.trigger.call(model,'addNode',node);return;}\nisRoot=nodes.every(function(bounded){return!bounded.contains(node);});if(isRoot){nodes.push(node);Events.trigger.call(model,'addNode',node);}}\nfunction removeBounded(model,node){var nodes=getBounded(model),index;if(!nodes){return;}\nindex=nodes.indexOf(node);if(~index){nodes.splice(index,0);Events.trigger.call(model,'removeNode',node);}\nif(!nodes.length){nodesMap.delete(model);}}\nfunction getElement(node,data){var elem;while(node.nextElementSibling){node=node.nextElementSibling;if(node.nodeType===1&&ko.dataFor(node)===data){elem=node;break;}}\nreturn elem;}\nwrapper.extend(ko,{applyBindings:function(orig,ctx,node){var result=orig(),data=ctx&&(ctx.$data||ctx);if(node&&node.nodeType===8){node=getElement(node,data);}\nif(!node||node.nodeType!==1){return result;}\nif(data&&data.registerNodes){addBounded(data,node);}\nreturn result;},cleanNode:function(orig,node){var result=orig(),data;if(node.nodeType!==1){return result;}\ndata=ko.dataFor(node);if(data&&data.registerNodes){removeBounded(data,node);}\nreturn result;}});return{get:function(model,callback){var nodes=getBounded(model)||[];if(!_.isFunction(callback)){return nodes;}\nnodes.forEach(function(node){callback(node);});this.add.apply(this,arguments);},add:function(model){var args=_.toArray(arguments).slice(1);args.unshift('addNode');Events.on.apply(model,args);},remove:function(model){var args=_.toArray(arguments).slice(1);args.unshift('removeNode');Events.on.apply(model,args);},off:function(model){var args=_.toArray(arguments).slice(1);Events.off.apply(model,args);}};});","Magento_Ui/js/lib/knockout/bindings/color-picker.min.js":"define(['ko','jquery','../template/renderer','spectrum','tinycolor'],function(ko,$,renderer,spectrum,tinycolor){'use strict';function changeColorPickerStateBasedOnViewModel(element,viewModel){$(element).spectrum(viewModel.disabled()?'disable':'enable');}\nko.bindingHandlers.colorPicker={init:function(element,valueAccessor,allBindings,viewModel){var config=valueAccessor(),changeValue=function(value){if(value==null){value='';}\nconfig.value(value.toString());};config.change=changeValue;config.hide=changeValue;config.show=function(){if(!viewModel.focused()){viewModel.focused(true);}\nreturn true;};$(element).spectrum(config);changeColorPickerStateBasedOnViewModel(element,viewModel);},update:function(element,valueAccessor,allBindings,viewModel){var config=valueAccessor();if(config.value()===undefined){config.value('');}\nif(tinycolor(config.value()).isValid()||config.value()===''){$(element).spectrum('set',config.value());if(config.value()!==''){config.value($(element).spectrum('get').toString());}}\nchangeColorPickerStateBasedOnViewModel(element,viewModel);}};renderer.addAttribute('colorPicker');});","Magento_Ui/js/lib/knockout/bindings/optgroup.min.js":"define(['ko','mageUtils'],function(ko,utils){'use strict';var captionPlaceholder={},optgroupTmpl='<optgroup label=\"${ $.label }\"></optgroup>',nbspRe=/&nbsp;/g,optionsText,optionsValue,optionTitle;ko.bindingHandlers.optgroup={init:function(element){if(ko.utils.tagNameLower(element)!=='select'){throw new Error('options binding applies only to SELECT elements');}\nwhile(element.length>0){element.remove(0);}},update:function(element,valueAccessor,allBindings){var selectWasPreviouslyEmpty=element.length===0,previousScrollTop=!selectWasPreviouslyEmpty&&element.multiple?element.scrollTop:null,includeDestroyed=allBindings.get('optionsIncludeDestroyed'),arrayToDomNodeChildrenOptions={},captionValue,unwrappedArray=ko.utils.unwrapObservable(valueAccessor()),filteredArray,previousSelectedValues,itemUpdate=false,callback=setSelectionCallback,nestedOptionsLevel=-1;optionsText=ko.utils.unwrapObservable(allBindings.get('optionsText'))||'text';optionsValue=ko.utils.unwrapObservable(allBindings.get('optionsValue'))||'value';optionTitle=optionsText+'title';if(element.multiple){previousSelectedValues=ko.utils.arrayMap(selectedOptions(),ko.selectExtensions.readValue);}else{previousSelectedValues=element.selectedIndex>=0?[ko.selectExtensions.readValue(element.options[element.selectedIndex])]:[];}\nif(unwrappedArray){if(typeof unwrappedArray.length==='undefined'){unwrappedArray=[unwrappedArray];}\nfilteredArray=ko.utils.arrayFilter(unwrappedArray,function(item){if(item&&!item.label){return false;}\nreturn includeDestroyed||item===undefined||item===null||!ko.utils.unwrapObservable(item._destroy);});filteredArray.map(recursivePathBuilder,null);}\narrayToDomNodeChildrenOptions.beforeRemove=function(option){element.removeChild(option);};if(allBindings.has('optionsAfterRender')){callback=function(arrayEntry,newOptions){setSelectionCallback(arrayEntry,newOptions);ko.dependencyDetection.ignore(allBindings.get('optionsAfterRender'),null,[newOptions[0],arrayEntry!==captionPlaceholder?arrayEntry:undefined]);};}\nfilteredArray=formatOptions(filteredArray);ko.utils.setDomNodeChildrenFromArrayMapping(element,filteredArray,optionNodeFromArray,arrayToDomNodeChildrenOptions,callback);ko.dependencyDetection.ignore(function(){var selectionChanged;if(allBindings.get('valueAllowUnset')&&allBindings.has('value')){ko.selectExtensions.writeValue(element,ko.utils.unwrapObservable(allBindings.get('value')),true);}else{if(element.multiple){selectionChanged=previousSelectedValues.length&&selectedOptions().length<previousSelectedValues.length;}else{selectionChanged=previousSelectedValues.length&&element.selectedIndex>=0?ko.selectExtensions.readValue(element.options[element.selectedIndex])!==previousSelectedValues[0]:previousSelectedValues.length||element.selectedIndex>=0;}\nif(selectionChanged){ko.utils.triggerEvent(element,'change');}}});if(previousScrollTop&&Math.abs(previousScrollTop-element.scrollTop)>20){element.scrollTop=previousScrollTop;}\nfunction selectedOptions(){return ko.utils.arrayFilter(element.options,function(node){return node.selected;});}\nfunction applyToObject(object,predicate,defaultValue){var predicateType=typeof predicate;if(predicateType==='function'){return predicate(object);}else if(predicateType==='string'){return object[predicate];}\nreturn defaultValue;}\nfunction recursivePathBuilder(obj){obj[optionTitle]=(this&&this[optionTitle]?this[optionTitle]+'/':'')+obj[optionsText].trim();if(Array.isArray(obj[optionsValue])){obj[optionsValue].map(recursivePathBuilder,obj);}}\nfunction optionNodeFromArray(arrayEntry,oldOptions){var option;if(oldOptions.length){previousSelectedValues=oldOptions[0].selected?[ko.selectExtensions.readValue(oldOptions[0])]:[];itemUpdate=true;}\nif(arrayEntry===captionPlaceholder){option=element.ownerDocument.createElement('option');ko.utils.setTextContent(option,allBindings.get('optionsCaption'));ko.selectExtensions.writeValue(option,undefined);}else if(typeof arrayEntry[optionsValue]==='undefined'){if(arrayEntry.__disableTmpl){option='<optgroup label=\"'+arrayEntry[optionsText]+'\"></optgroup>';}else{option=utils.template(optgroupTmpl,{label:arrayEntry[optionsText],title:arrayEntry[optionsText+'title']});}\noption=ko.utils.parseHtmlFragment(option)[0];}else{option=element.ownerDocument.createElement('option');option.setAttribute('data-title',arrayEntry[optionsText+'title']);ko.selectExtensions.writeValue(option,arrayEntry[optionsValue]);ko.utils.setTextContent(option,arrayEntry[optionsText]);}\nreturn[option];}\nfunction setSelectionCallback(newOptions){var isSelected;if(previousSelectedValues.length&&newOptions.value){isSelected=ko.utils.arrayIndexOf(previousSelectedValues,ko.selectExtensions.readValue(newOptions.value))>=0;ko.utils.setOptionNodeSelectionState(newOptions.value,isSelected);if(itemUpdate&&!isSelected){ko.dependencyDetection.ignore(ko.utils.triggerEvent,null,[element,'change']);}}}\nfunction strPad(string,times){return new Array(times+1).join(string);}\nfunction formatOptions(options){var res=[];nestedOptionsLevel++;if(!nestedOptionsLevel){if(allBindings.has('optionsCaption')){captionValue=ko.utils.unwrapObservable(allBindings.get('optionsCaption'));if(captionValue!==null&&captionValue!==undefined&&captionValue!==false){res.push(captionPlaceholder);}}}\nko.utils.arrayForEach(options,function(option){var value=applyToObject(option,optionsValue,option),label=applyToObject(option,optionsText,value)||'',disabled=applyToObject(option,'disabled',false)||false,obj={},space='\\u2007\\u2007\\u2007';obj[optionTitle]=applyToObject(option,optionsText+'title',value);if(disabled){obj.disabled=disabled;}\nif(option.hasOwnProperty('__disableTmpl')){obj.__disableTmpl=option.__disableTmpl;}\nlabel=label.replace(nbspRe,'').trim();if(Array.isArray(value)){obj[optionsText]=strPad('&nbsp;',nestedOptionsLevel*4)+label;res.push(obj);res=res.concat(formatOptions(value));}else{obj[optionsText]=strPad(space,nestedOptionsLevel*2)+label;obj[optionsValue]=value;res.push(obj);}});nestedOptionsLevel--;return res;}}};});","Magento_Ui/js/lib/knockout/bindings/bind-html.min.js":"define(['ko','underscore','mage/apply/main','../template/renderer'],function(ko,_,mage,renderer){'use strict';function setHtml(el,html){ko.utils.emptyDomNode(el);html=ko.utils.unwrapObservable(html);if(!_.isNull(html)&&!_.isUndefined(html)){if(!_.isString(html)){html=html.toString();}\nel.innerHTML=html;}}\nfunction applyComponents(el,ctx){ko.utils.arrayForEach(el.childNodes,ko.cleanNode);ko.applyBindingsToDescendants(ctx,el);mage.apply();}\nko.bindingHandlers.bindHtml={init:function(){return{controlsDescendantBindings:true};},update:function(el,valueAccessor,allBindings,viewModel,bindingContext){setHtml(el,valueAccessor());applyComponents(el,bindingContext);}};renderer.addAttribute('bindHtml');});","Magento_Ui/js/lib/knockout/bindings/range.min.js":"define(['ko','jquery','underscore','../template/renderer'],function(ko,$,_,renderer){'use strict';var isTouchDevice=!_.isUndefined(document.ontouchstart),sliderFn='slider',sliderModule='jquery-ui-modules/slider';if(isTouchDevice){sliderFn='touchSlider';sliderModule='mage/touch-slider';}\nko.bindingHandlers.range={init:function(element,valueAccessor){var config=valueAccessor(),value=config.value;_.extend(config,{value:value(),slide:function(event,ui){value(ui.value);}});require([sliderModule],function(){$(element)[sliderFn](config);});},update:function(element,valueAccessor){var config=valueAccessor();config.value=ko.unwrap(config.value);require([sliderModule],function(){$(element)[sliderFn]('option',config);});}};renderer.addAttribute('range');});","Magento_Ui/js/lib/knockout/bindings/staticChecked.min.js":"define(['ko','../template/renderer'],function(ko,renderer){'use strict';ko.bindingHandlers.staticChecked={'after':['value','attr'],init:function(element,valueAccessor,allBindings){var isCheckbox=element.type==='checkbox',isRadio=element.type==='radio',isValueArray,oldElemValue,useCheckedValue,checkedValue,updateModel,updateView;if(!isCheckbox&&!isRadio){return;}\ncheckedValue=ko.pureComputed(function(){if(allBindings.has('checkedValue')){return ko.utils.unwrapObservable(allBindings.get('checkedValue'));}else if(allBindings.has('value')){return ko.utils.unwrapObservable(allBindings.get('value'));}\nreturn element.value;});isValueArray=isCheckbox&&ko.utils.unwrapObservable(valueAccessor())instanceof Array;oldElemValue=isValueArray?checkedValue():undefined;useCheckedValue=isRadio||isValueArray;updateModel=function(){var isChecked=element.checked,elemValue=useCheckedValue?checkedValue():isChecked,modelValue;if(ko.computedContext.isInitial()){return;}\nif(isRadio&&!isChecked){return;}\nmodelValue=ko.dependencyDetection.ignore(valueAccessor);if(isValueArray){if(oldElemValue!==elemValue){oldElemValue=elemValue;}else{ko.utils.addOrRemoveItem(modelValue,elemValue,isChecked);}}else{ko.expressionRewriting.writeValueToProperty(modelValue,allBindings,'checked',elemValue,true);}};updateView=function(){var modelValue=ko.utils.unwrapObservable(valueAccessor());if(isValueArray){element.checked=ko.utils.arrayIndexOf(modelValue,checkedValue())>=0;}else if(isCheckbox){element.checked=modelValue;}else{element.checked=checkedValue()===modelValue;}};ko.computed(updateModel,null,{disposeWhenNodeIsRemoved:element});ko.utils.registerEventHandler(element,'click',updateModel);ko.computed(updateView,null,{disposeWhenNodeIsRemoved:element});}};ko.expressionRewriting._twoWayBindings.staticChecked=true;renderer.addAttribute('staticChecked');});","Magento_Ui/js/lib/knockout/bindings/i18n.min.js":"define(['jquery','ko','module','../template/renderer','mage/translate'],function($,ko,module,renderer){'use strict';var locations={'legend':'Caption for the fieldset element','label':'Label for an input element.','button':'Push button','a':'Link label','b':'Bold text','strong':'Strong emphasized text','i':'Italic text','em':'Emphasized text','u':'Underlined text','sup':'Superscript text','sub':'Subscript text','span':'Span element','small':'Smaller text','big':'Bigger text','address':'Contact information','blockquote':'Long quotation','q':'Short quotation','cite':'Citation','caption':'Table caption','abbr':'Abbreviated phrase','acronym':'An acronym','var':'Variable part of a text','dfn':'Term','strike':'Strikethrough text','del':'Deleted text','ins':'Inserted text','h1':'Heading level 1','h2':'Heading level 2','h3':'Heading level 3','h4':'Heading level 4','h5':'Heading level 5','h6':'Heading level 6','center':'Centered text','select':'List options','img':'Image','input':'Form element'},composeTranslateAttr=function(translationData,location){var obj=[{'shown':translationData.shown,'translated':translationData.translated,'original':translationData.original,'location':locations[location]||'Text'}];return JSON.stringify(obj);},setText=function(el,text){$(el).text(text);},setTranslateProp=function(el,original){var location=$(el).prop('tagName').toLowerCase(),translated=$.mage.__(original),translationData={shown:translated,translated:translated,original:original},translateAttr=composeTranslateAttr(translationData,location);$(el).attr('data-translate',translateAttr);setText(el,translationData.shown);},isVirtualElement=function(node){return node.nodeType===8;},getRealElement=function(el,isUpdate){if(isVirtualElement(el)){if(isUpdate){return $(el).next('span');}\nreturn $('<span></span>').insertAfter(el);}\nreturn el;},execute=function(element,valueAccessor,isUpdate){var original=ko.unwrap(valueAccessor()||''),el=getRealElement(element,isUpdate),inlineTranslation=(module.config()||{}).inlineTranslation;if(inlineTranslation){setTranslateProp(el,original);}else{setText(el,$.mage.__(original));}};ko.bindingHandlers.i18n={init:function(element,valueAccessor){execute(element,valueAccessor);},update:function(element,valueAccessor){execute(element,valueAccessor,true);}};ko.virtualElements.allowedBindings.i18n=true;renderer.addNode('translate',{binding:'i18n'}).addAttribute('translate',{binding:'i18n'});});","Magento_Ui/js/lib/knockout/bindings/autoselect.min.js":"define(['ko','jquery','../template/renderer'],function(ko,$,renderer){'use strict';function onFocus(e){e.target.select();}\nko.bindingHandlers.autoselect={init:function(element,valueAccessor){var enabled=ko.unwrap(valueAccessor());if(enabled!==false){$(element).on('focus',onFocus);}}};renderer.addAttribute('autoselect');});","Magento_Ui/js/lib/knockout/bindings/collapsible.min.js":"define(['ko','jquery','underscore','../template/renderer'],function(ko,$,_,renderer){'use strict';var collapsible,defaults;defaults={closeOnOuter:true,onTarget:false,openClass:'_active',as:'$collapsible'};collapsible={open:function(){this.opened(true);},close:function(){this.opened(false);},toggle:function(){this.opened(!this.opened());}};function onOuterClick(container,model,e){var target=e.target;if(target!==container&&!container.contains(target)){model.close();}}\nfunction getClassBinding(model,name){var binding={};binding[name]=model.opened;return{css:binding};}\nfunction buildConfig(options){if(typeof options!=='object'){options={};}\nreturn _.extend({},defaults,options);}\nko.bindingHandlers.collapsible={init:function(element,valueAccessor,allBindings,viewModel,bindingCtx){var $collapsible=Object.create(collapsible),config=buildConfig(valueAccessor()),outerClick,bindings;_.bindAll($collapsible,'open','close','toggle');$collapsible.opened=ko.observable(!!config.opened);bindingCtx[config.as]=$collapsible;if(config.closeOnOuter){outerClick=onOuterClick.bind(null,element,$collapsible);$(document).on('click',outerClick);ko.utils.domNodeDisposal.addDisposeCallback(element,function(){$(document).off('click',outerClick);});}\nif(config.openClass){bindings=getClassBinding($collapsible,config.openClass);ko.applyBindingsToNode(element,bindings,bindingCtx);}\nif(config.onTarget){$(element).on('click',$collapsible.toggle);}\nif(viewModel&&_.isFunction(viewModel.on)){viewModel.on({close:$collapsible.close,open:$collapsible.open,toggleOpened:$collapsible.toggle});}}};ko.bindingHandlers.closeCollapsible={init:function(element,valueAccessor,allBindings,viewModel,bindingCtx){var name=valueAccessor()||defaults.as,$collapsible=bindingCtx[name];if($collapsible){$(element).on('click',$collapsible.close);}}};ko.bindingHandlers.openCollapsible={init:function(element,valueAccessor,allBindings,viewModel,bindingCtx){var name=valueAccessor()||defaults.as,$collapsible=bindingCtx[name];if($collapsible){$(element).on('click',$collapsible.open);}}};ko.bindingHandlers.toggleCollapsible={init:function(element,valueAccessor,allBindings,viewModel,bindingCtx){var name=valueAccessor()||defaults.as,$collapsible=bindingCtx[name];if($collapsible){$(element).on('click',$collapsible.toggle);}}};renderer.addAttribute('collapsible').addAttribute('openCollapsible').addAttribute('closeCollapsible').addAttribute('toggleCollapsible');});","Magento_Ui/js/lib/knockout/bindings/after-render.min.js":"define(['ko','../template/renderer'],function(ko,renderer){'use strict';ko.bindingHandlers.afterRender={init:function(element,valueAccessor,allBindings,viewModel){var callback=valueAccessor();if(typeof callback==='function'){callback.call(viewModel,element,viewModel);}}};renderer.addAttribute('afterRender');});","Magento_Ui/js/lib/knockout/bindings/bootstrap.min.js":"define(function(require){'use strict';var renderer=require('../template/renderer');renderer.addAttribute('repeat',renderer.handlers.wrapAttribute);renderer.addAttribute('outerfasteach',{binding:'fastForEach',handler:renderer.handlers.wrapAttribute});renderer.addNode('repeat').addNode('fastForEach');return{resizable:require('./resizable'),i18n:require('./i18n'),scope:require('./scope'),range:require('./range'),mageInit:require('./mage-init'),keyboard:require('./keyboard'),optgroup:require('./optgroup'),afterRender:require('./after-render'),autoselect:require('./autoselect'),datepicker:require('./datepicker'),outerClick:require('./outer_click'),fadeVisible:require('./fadeVisible'),collapsible:require('./collapsible'),staticChecked:require('./staticChecked'),simpleChecked:require('./simple-checked'),bindHtml:require('./bind-html'),tooltip:require('./tooltip'),repeat:require('knockoutjs/knockout-repeat'),fastForEach:require('knockoutjs/knockout-fast-foreach'),colorPicker:require('./color-picker')};});","Magento_Ui/js/lib/knockout/bindings/tooltip.min.js":"define(['jquery','ko','underscore','mage/template','text!ui/template/tooltip/tooltip.html','../template/renderer'],function($,ko,_,template,tooltipTmpl,renderer){'use strict';var tooltip,defaults,positions,transformProp,checkedPositions={},iterator=0,previousTooltip,tooltipData,positionData={},tooltipsCollection={},isTouchDevice=(function(){return'ontouchstart'in document.documentElement;})(),CLICK_EVENT=(function(){return isTouchDevice?'touchstart':'click';})();defaults={tooltipWrapper:'[data-tooltip=tooltip-wrapper]',tooltipContentBlock:'data-tooltip-content',closeButtonClass:'action-close',tailClass:'data-tooltip-tail',action:'hover',delay:300,track:false,step:20,position:'top',closeButton:false,showed:false,strict:true,center:false,closeOnScroll:true};tooltipData={tooltipClasses:'',trigger:false,timeout:0,element:false,event:false,targetElement:{},showed:false,currentID:0};transformProp=(function(){var style=document.createElement('div').style,base='Transform',vendors=['webkit','moz','ms','o'],vi=vendors.length,property;if(typeof style.transform!=='undefined'){return'transform';}\nwhile(vi--){property=vendors[vi]+base;if(typeof style[property]!=='undefined'){return property;}}})();positions={map:{horizontal:{s:'w',p:'left'},vertical:{s:'h',p:'top'}},top:function(s){return positions._topLeftChecker(s,positions.map,'vertical','_bottom','top','right');},left:function(s){return positions._topLeftChecker(s,positions.map,'horizontal','_right','left','top');},bottom:function(s){return positions._bottomRightChecker(s,positions.map,'vertical','_top','bottom','left');},right:function(s){return positions._bottomRightChecker(s,positions.map,'horizontal','_left','right','bottom');},_topLeftChecker:function(s,map,direction,className,side,delegate){var result={position:{}},config=tooltip.getTooltip(tooltipData.currentID),startPosition=!config.strict?s.eventPosition:s.elementPosition,changedDirection;checkedPositions[side]=true;if(startPosition[map[direction].p]-s.tooltipSize[map[direction].s]-config.step>s.scrollPosition[map[direction].p]){result.position[map[direction].p]=startPosition[map[direction].p]-s.tooltipSize[map[direction].s]-\nconfig.step;result.className=className;result.side=side;changedDirection=direction==='vertical'?'horizontal':'vertical';result=positions._normalize(s,result,config,delegate,map,changedDirection);}else if(!checkedPositions[delegate]){result=positions[delegate].apply(null,arguments);}else{result=positions.positionCenter(s,result);}\nreturn result;},_bottomRightChecker:function(s,map,direction,className,side,delegate){var result={position:{}},config=tooltip.getTooltip(tooltipData.currentID),startPosition=!config.strict?s.eventPosition:{top:s.elementPosition.top+s.elementSize.h,left:s.elementPosition.left+s.elementSize.w},changedDirection;checkedPositions[side]=true;if(startPosition[map[direction].p]+s.tooltipSize[map[direction].s]+config.step<s.scrollPosition[map[direction].p]+s.windowSize[map[direction].s]){result.position[map[direction].p]=startPosition[map[direction].p]+config.step;result.className=className;result.side=side;changedDirection=direction==='vertical'?'horizontal':'vertical';result=positions._normalize(s,result,config,delegate,map,changedDirection);}else if(!checkedPositions[delegate]){result=positions[delegate].apply(null,arguments);}else{result=positions.positionCenter(s,result);}\nreturn result;},positionCenter:function(s,data){data=positions._positionCenter(s,data,'horizontal',positions.map);data=positions._positionCenter(s,data,'vertical',positions.map);return data;},_positionCenter:function(s,data,direction,map){if(s.tooltipSize[map[direction].s]<s.windowSize[map[direction].s]){data.position[map[direction].p]=(s.windowSize[map[direction].s]-\ns.tooltipSize[map[direction].s])/ 2+s.scrollPosition[map[direction].p];}else{data.position[map[direction].p]=s.scrollPosition[map[direction].p];data.tooltipSize={};data.tooltipSize[map[direction].s]=s.windowSize[map[direction].s];}\nreturn data;},_normalize:function(s,data,config,delegate,map,direction){var startPosition=!config.center?s.eventPosition:{left:s.elementPosition.left+s.elementSize.w / 2,top:s.elementPosition.top+s.elementSize.h / 2},depResult;if(startPosition[map[direction].p]-s.tooltipSize[map[direction].s]/ 2>s.scrollPosition[map[direction].p]&&startPosition[map[direction].p]+\ns.tooltipSize[map[direction].s]/ 2<s.scrollPosition[map[direction].p]+s.windowSize[map[direction].s]){data.position[map[direction].p]=startPosition[map[direction].p]-s.tooltipSize[map[direction].s]/ 2;}else{if(!checkedPositions[delegate]){depResult=positions[delegate].apply(null,arguments);if(depResult.hasOwnProperty('className')){data=depResult;}else{data=positions._normalizeTail(s,data,config,delegate,map,direction,startPosition);}}else{data=positions._normalizeTail(s,data,config,delegate,map,direction,startPosition);}}\nreturn data;},_normalizeTail:function(s,data,config,delegate,map,direction,startPosition){data.tail={};if(s.tooltipSize[map[direction].s]<s.windowSize[map[direction].s]){if(startPosition[map[direction].p]>s.windowSize[map[direction].s]/ 2+s.scrollPosition[map[direction].p]){data.position[map[direction].p]=s.windowSize[map[direction].s]+\ns.scrollPosition[map[direction].p]-s.tooltipSize[map[direction].s];data.tail[map[direction].p]=startPosition[map[direction].p]-\ns.tooltipSize[map[direction].s]/ 2-data.position[map[direction].p];}else{data.position[map[direction].p]=s.scrollPosition[map[direction].p];data.tail[map[direction].p]=startPosition[map[direction].p]-\ns.tooltipSize[map[direction].s]/ 2-data.position[map[direction].p];}}else{data.position[map[direction].p]=s.scrollPosition[map[direction].p];data.tail[map[direction].p]=s.eventPosition[map[direction].p]-s.windowSize[map[direction].s]/ 2;data.tooltipSize={};data.tooltipSize[map[direction].s]=s.windowSize[map[direction].s];}\nreturn data;}};tooltip={setTooltip:function(config){var property='id-'+iterator;tooltipsCollection[property]=config;iterator++;return property;},getTooltip:function(id){return tooltipsCollection[id];},setContent:function(tooltipElement,viewModel,id,bindingCtx,event){var html=$(tooltipElement).html(),config=tooltip.getTooltip(id),body=$('body');tooltipData.currentID=id;tooltipData.trigger=$(event.currentTarget);tooltip.setTargetData(event);body.on('mousemove.setTargetData',tooltip.setTargetData);tooltip.clearTimeout(id);tooltipData.timeout=_.delay(function(){body.off('mousemove.setTargetData',tooltip.setTargetData);if(tooltipData.trigger[0]===tooltipData.targetElement){tooltip.destroy(id);event.stopPropagation();tooltipElement=tooltip.createTooltip(id);tooltipElement.find('.'+defaults.tooltipContentBlock).append(html);tooltipElement.applyBindings(bindingCtx);tooltip.setHandlers(id);tooltip.setPosition(tooltipElement,id);previousTooltip=id;}},config.delay);},setPosition:function(tooltipElement,id){var config=tooltip.getTooltip(id);tooltip.sizeData={windowSize:{h:$(window).outerHeight(),w:$(window).outerWidth()},scrollPosition:{top:$(window).scrollTop(),left:$(window).scrollLeft()},tooltipSize:{h:tooltipElement.outerHeight(),w:tooltipElement.outerWidth()},elementSize:{h:tooltipData.trigger.outerHeight(),w:tooltipData.trigger.outerWidth()},elementPosition:tooltipData.trigger.offset(),eventPosition:this.getEventPosition(tooltipData.event)};_.extend(positionData,positions[config.position](tooltip.sizeData));tooltipElement.css(positionData.position);tooltipElement.addClass(positionData.className);tooltip._setTooltipSize(positionData,tooltipElement);tooltip._setTailPosition(positionData,tooltipElement);checkedPositions={};},_setTooltipSize:function(data,tooltipElement){if(data.tooltipSize){data.tooltipSize.w?tooltipElement.css('width',data.tooltipSize.w):tooltipElement.css('height',data.tooltipSize.h);}},_setTailPosition:function(data,tooltipElement){var tail,tailMargin;if(data.tail){tail=tooltipElement.find('.'+defaults.tailClass);if(data.tail.left){tailMargin=parseInt(tail.css('margin-left'),10);tail.css('margin-left',tailMargin+data.tail.left);}else{tailMargin=parseInt(tail.css('margin-top'),10);tail.css('margin-top',tailMargin+data.tail.top);}}},getEventPosition:function(event){var position={left:event.originalEvent&&event.originalEvent.pageX||0,top:event.originalEvent&&event.originalEvent.pageY||0};if(position.left===0&&position.top===0){_.extend(position,event.target.getBoundingClientRect());}\nreturn position;},outerClick:function(id,event){var tooltipElement=$(event.target).parents(defaults.tooltipWrapper)[0],isTrigger=event.target===tooltipData.trigger[0]||$.contains(tooltipData.trigger[0],event.target);if(tooltipData.showed&&tooltipElement!==tooltipData.element[0]&&!isTrigger){tooltip.destroy(id);}},keydownHandler:function(event){if(tooltipData.showed&&event.keyCode===27){tooltip.destroy(tooltipData.currentID);}},track:function(event){var inequality={},map=positions.map,translate={left:'translateX',top:'translateY'},eventPosition={left:event.pageX,top:event.pageY},tooltipSize={w:tooltipData.element.outerWidth(),h:tooltipData.element.outerHeight()},direction=positionData.side==='bottom'||positionData.side==='top'?'horizontal':'vertical';inequality[map[direction].p]=eventPosition[map[direction].p]-(positionData.position[map[direction].p]+\ntooltipSize[map[direction].s]/ 2);if(positionData.position[map[direction].p]+inequality[map[direction].p]+\ntooltip.sizeData.tooltipSize[map[direction].s]>tooltip.sizeData.windowSize[map[direction].s]+tooltip.sizeData.scrollPosition[map[direction].p]||inequality[map[direction].p]+positionData.position[map[direction].p]<tooltip.sizeData.scrollPosition[map[direction].p]){return false;}\ntooltipData.element[0].style[transformProp]=translate[map[direction].p]+'('+inequality[map[direction].p]+'px)';},setHandlers:function(id){var config=tooltip.getTooltip(id);if(config.track){tooltipData.trigger.on('mousemove.track',tooltip.track);}\nif(config.action==='click'){$(window).on(CLICK_EVENT+'.outerClick',tooltip.outerClick.bind(null,id));}\nif(config.closeButton){$('.'+config.closeButtonClass).on('click.closeButton',tooltip.destroy.bind(null,id));}\nif(config.closeOnScroll){document.addEventListener('scroll',tooltip.destroy,true);$(window).on('scroll.tooltip',tooltip.outerClick.bind(null,id));}\n$(window).on('keydown.tooltip',tooltip.keydownHandler);$(window).on('resize.outerClick',tooltip.outerClick.bind(null,id));},toggleTooltip:function(tooltipElement,viewModel,id){if(previousTooltip===id&&tooltipData.showed){tooltip.destroy(id);return false;}\ntooltip.setContent.apply(null,arguments);return false;},createTooltip:function(id){var body=$('body'),config=tooltip.getTooltip(id);$(template(tooltipTmpl,{data:config})).appendTo(body);tooltipData.showed=true;tooltipData.element=$(config.tooltipWrapper);return tooltipData.element;},clearTimeout:function(id){var config=tooltip.getTooltip(id);if(config.action==='hover'){clearTimeout(tooltipData.timeout);}},checkPreviousTooltip:function(){if(!tooltipData.timeout){tooltip.destroy();}},destroy:function(){if(tooltipData.element){tooltipData.element.remove();tooltipData.showed=false;}\npositionData={};tooltipData.timeout=false;tooltip.removeHandlers();},removeHandlers:function(){$('.'+defaults.closeButtonClass).off('click.closeButton');tooltipData.trigger.off('mousemove.track');document.removeEventListener('scroll',tooltip.destroy,true);$(window).off('scroll.tooltip');$(window).off(CLICK_EVENT+'.outerClick');$(window).off('keydown.tooltip');$(window).off('resize.outerClick');},setTargetData:function(event){tooltipData.event=event;if(event.timeStamp-(tooltipData.timestamp||0)<1){return;}\nif(event.type==='mousemove'){tooltipData.targetElement=event.target;}else{tooltipData.targetElement=event.currentTarget;tooltipData.timestamp=event.timeStamp;}},processingConfig:function(config){return _.extend({},defaults,config);}};ko.bindingHandlers.tooltip={init:function(elem,valueAccessor,allBindings,viewModel,bindingCtx){var config=tooltip.processingConfig(valueAccessor()),$parentScope=config.parentScope?$(config.parentScope):$(elem).parent(),tooltipId;$(elem).addClass('hidden');if(isTouchDevice){config.action='click';}\ntooltipId=tooltip.setTooltip(config);if(config.action==='hover'){$parentScope.on('mouseenter',config.trigger,tooltip.setContent.bind(null,elem,viewModel,tooltipId,bindingCtx));$parentScope.on('mouseleave',config.trigger,tooltip.checkPreviousTooltip.bind(null,tooltipId));}else if(config.action==='click'){$parentScope.on('click',config.trigger,tooltip.toggleTooltip.bind(null,elem,viewModel,tooltipId,bindingCtx));}\nreturn{controlsDescendantBindings:true};}};renderer.addAttribute('tooltip');});","Magento_Ui/js/lib/knockout/bindings/keyboard.min.js":"define(['ko','../template/renderer'],function(ko,renderer){'use strict';ko.bindingHandlers.keyboard={init:function(el,valueAccessor,allBindings,viewModel){var map=valueAccessor();ko.utils.registerEventHandler(el,'keyup',function(e){var callback=map[e.keyCode];if(callback){return callback.call(viewModel,e);}});}};renderer.addAttribute('keyboard');});","Magento_Ui/js/lib/knockout/bindings/scope.min.js":"define(['ko','uiRegistry','mage/translate','../template/renderer','jquery','../../logger/console-logger'],function(ko,registry,$t,renderer,$,consoleLogger){'use strict';function applyComponents(el,bindingContext,promise,component){promise.resolve();component=bindingContext.createChildContext(component);ko.utils.extend(component,{$t:$t});ko.utils.arrayForEach(ko.virtualElements.childNodes(el),ko.cleanNode);ko.applyBindingsToDescendants(component,el);}\nko.bindingHandlers.scope={init:function(){return{controlsDescendantBindings:true};},update:function(el,valueAccessor,allBindings,viewModel,bindingContext){var component=valueAccessor(),promise=$.Deferred(),apply=applyComponents.bind(this,el,bindingContext,promise),loggerUtils=consoleLogger.utils;if(typeof component==='string'){loggerUtils.asyncLog(promise,{data:{component:component},messages:loggerUtils.createMessages('requestingComponent','requestingComponentIsLoaded','requestingComponentIsFailed')});registry.get(component,apply);}else if(typeof component==='function'){component(apply);}}};ko.virtualElements.allowedBindings.scope=true;renderer.addNode('scope').addAttribute('scope',{name:'ko-scope'});});","Magento_Ui/js/lib/knockout/bindings/datepicker.min.js":"define(['ko','underscore','jquery','mage/translate'],function(ko,_,$,$t){'use strict';var defaults={dateFormat:'mm\\/dd\\/yyyy',showsTime:false,timeFormat:null,buttonImage:null,buttonImageOnly:null,buttonText:$t('Select Date')};ko.bindingHandlers.datepicker={init:function(el,valueAccessor,allBindings,viewModel,bindingContext){var config=valueAccessor(),observable,options={};_.extend(options,defaults);if(typeof config==='object'){observable=config.storage;_.extend(options,config.options);}else{observable=config;}\nrequire(['mage/calendar'],function(){$(el).calendar(options);ko.utils.registerEventHandler(el,'change',function(){observable(this.value);});});if(bindingContext.$data){bindingContext.$data.value.subscribe(function(newVal){if(!newVal){$(el).val('');}},this);}},update:function(element,valueAccessor){var config=valueAccessor(),$element=$(element),observable,options={},newVal;_.extend(options,defaults);if(typeof config==='object'){observable=config.storage;_.extend(options,config.options);}else{observable=config;}\nrequire(['moment','mage/utils/misc','mage/calendar'],function(moment,utils){if(_.isEmpty(observable())){newVal=null;}else{newVal=moment(observable(),utils.convertToMomentFormat(options.dateFormat+(options.showsTime?' '+options.timeFormat:''))).toDate();}\nif(!options.timeOnly){$element.datepicker('setDate',newVal);$element.trigger('blur');}});}};});","Magento_Ui/js/lib/knockout/bindings/simple-checked.min.js":"define(['ko','../template/renderer'],function(ko,renderer){'use strict';ko.bindingHandlers.simpleChecked={'after':['attr'],init:function(element,valueAccessor){var isCheckbox=element.type==='checkbox',isRadio=element.type==='radio',updateView,updateModel;if(!isCheckbox&&!isRadio){return;}\nupdateModel=function(){var modelValue=ko.dependencyDetection.ignore(valueAccessor),isChecked=element.checked;if(ko.computedContext.isInitial()){return;}\nif(modelValue.peek()===isChecked){return;}\nif(isRadio&&!isChecked){return;}\nmodelValue(isChecked);};updateView=function(){var modelValue=ko.utils.unwrapObservable(valueAccessor());element.checked=!!modelValue;};ko.utils.registerEventHandler(element,'change',updateModel);ko.computed(updateModel,null,{disposeWhenNodeIsRemoved:element});ko.computed(updateView,null,{disposeWhenNodeIsRemoved:element});}};ko.expressionRewriting._twoWayBindings.simpleChecked=true;renderer.addAttribute('simpleChecked');renderer.addAttribute('simple-checked',{binding:'simpleChecked'});});","Magento_Ui/js/lib/knockout/bindings/outer_click.min.js":"define(['ko','jquery','underscore','../template/renderer'],function(ko,$,_,renderer){'use strict';var defaults={onlyIfVisible:true};function isVisible(el){var style=window.getComputedStyle(el),visibility={display:'none',visibility:'hidden',opacity:'0'},visible=true;_.each(visibility,function(val,key){if(style[key]===val){visible=false;}});return visible;}\nfunction onOuterClick(container,config,e){var target=e.target,callback=config.callback;if(container===target||container.contains(target)){return;}\nif(config.onlyIfVisible){if(!_.isNull(container.offsetParent)&&isVisible(container)){callback();}}else{callback();}}\nfunction buildConfig(options){var config={};if(_.isFunction(options)){options={callback:options};}else if(!_.isObject(options)){options={};}\nreturn _.extend(config,defaults,options);}\nko.bindingHandlers.outerClick={init:function(element,valueAccessor){var config=buildConfig(valueAccessor()),outerClick=onOuterClick.bind(null,element,config),isTouchDevice=typeof document.ontouchstart!=='undefined';if(isTouchDevice){$(document).on('touchstart',outerClick);ko.utils.domNodeDisposal.addDisposeCallback(element,function(){$(document).off('touchstart',outerClick);});}else{$(document).on('click',outerClick);ko.utils.domNodeDisposal.addDisposeCallback(element,function(){$(document).off('click',outerClick);});}}};renderer.addAttribute('outerClick');});","Magento_Ui/js/lib/knockout/bindings/mage-init.min.js":"define(['ko','underscore','mage/apply/main'],function(ko,_,mage){'use strict';ko.bindingHandlers.mageInit={init:function(el,valueAccessor){var data=valueAccessor();_.each(data,function(config,component){mage.applyFor(el,config,component);});}};});","Magento_Ui/js/lib/knockout/bindings/resizable.min.js":"define(['ko','jquery','Magento_Ui/js/lib/view/utils/async','uiRegistry','underscore','../template/renderer'],function(ko,$,async,registry,_,renderer){'use strict';var sizeOptions=['minHeight','maxHeight','minWidth','maxWidth'],handles={height:'.ui-resizable-s, .ui-resizable-n',width:'.ui-resizable-w, .ui-resizable-e'};function adjustSize(element){var maxHeight,maxWidth;element=$(element);maxHeight=element.resizable('option').maxHeight;maxWidth=element.resizable('option').maxWidth;if(maxHeight&&element.height()>maxHeight){element.height(maxHeight+1);$(handles.height).hide();}else{$(handles.height).show();}\nif(maxWidth&&element.width()>maxWidth){element.width(maxWidth+1);$(handles.width).hide();}else{$(handles.width).show();}}\nfunction recalcAllowedSize(sizeConstraints,componentName,element,hasWidthUpdate){var size;element=$(element);if(!element.data('resizable')){return;}\nif(!hasWidthUpdate){element.css('width','auto');}\n_.each(sizeConstraints,function(selector,key){async.async({component:componentName,selector:selector},function(elem){size=key.indexOf('Height')!==-1?$(elem).outerHeight(true):$(elem).outerWidth(true);if(element.data('resizable')){element.resizable('option',key,size+1);}});},this);adjustSize(element);}\nfunction processConfig(config,viewModel,element){var sizeConstraint,sizeConstraints={},recalc,hasWidthUpdate;if(_.isEmpty(config)){return{};}\n_.each(sizeOptions,function(key){sizeConstraint=config[key];if(sizeConstraint&&!_.isNumber(sizeConstraint)){sizeConstraints[key]=sizeConstraint;delete config[key];}});hasWidthUpdate=_.some(sizeConstraints,function(value,key){return key.indexOf('Width')!==-1;});recalc=recalcAllowedSize.bind(null,sizeConstraints,viewModel.name,element,hasWidthUpdate);config.start=recalc;$(window).on('resize.resizable',recalc);registry.get(viewModel.provider).on('reloaded',recalc);return config;}\nko.bindingHandlers.resizable={init:function(element,valueAccessor,allBindings,viewModel){var config=processConfig(valueAccessor(),viewModel,element);require(['jquery-ui-modules/resizable'],function(){if($.fn.resizable){$(element).resizable(config);}});}};renderer.addAttribute('resizable');});","Magento_Ui/js/lib/knockout/bindings/fadeVisible.min.js":"define(['jquery','ko'],function($,ko){'use strict';ko.bindingHandlers.fadeVisible={init:function(element,valueAccessor){var value=valueAccessor();$(element).toggle(ko.unwrap(value));},update:function(element,valueAccessor){var value=valueAccessor();ko.unwrap(value)?$(element).fadeIn():$(element).fadeOut();}};});","Magento_Ui/js/timeline/timeline.min.js":"define(['underscore','moment','uiLayout','Magento_Ui/js/grid/listing'],function(_,moment,layout,Listing){'use strict';var ONE_DAY=86400000;return Listing.extend({defaults:{recordTmpl:'ui/timeline/record',dateFormat:'YYYY-MM-DD HH:mm:ss',headerFormat:'ddd MM/DD',detailsFormat:'DD/MM/YYYY HH:mm:ss',scale:7,scaleStep:1,minScale:7,maxScale:28,minDays:28,displayMode:'timeline',displayModes:{timeline:{label:'Timeline',value:'timeline',template:'ui/timeline/timeline'}},viewConfig:{component:'Magento_Ui/js/timeline/timeline-view',name:'${ $.name }_view',model:'${ $.name }'},tracks:{scale:true},statefull:{scale:true},range:{}},initialize:function(){this._super().initView().updateRange();return this;},initConfig:function(){this._super();this.maxScale=Math.min(this.minDays,this.maxScale);this.minScale=Math.min(this.maxScale,this.minScale);return this;},initObservable:function(){this._super().observe.call(this.range,true,'hasToday');return this;},initView:function(){layout([this.viewConfig]);return this;},isActive:function(record){return Number(record.status)===1;},isUpcoming:function(record){return Number(record.status)===2;},isPermanent:function(record){return!this.getEndDate(record);},isToday:function(date){return moment().isSame(date,'day');},hasToday:function(){return this.range.hasToday;},getStartDate:function(record){return record['start_time'];},getEndDate:function(record){return record['end_time'];},getStartDelta:function(record){var start=this.createDate(this.getStartDate(record)),firstDay=this.range.firstDay;return start.diff(firstDay,'days',true);},getDaysLength:function(record){var start=this.createDate(this.getStartDate(record)),end=this.createDate(this.getEndDate(record));if(!end.isValid()){end=this.range.lastDay.endOf('day');}\nreturn end.diff(start,'days',true);},createDate:function(dateStr){return moment(dateStr,this.dateFormat);},daysToWeeks:function(days){var weeks=days / 7;if(weeks%1){weeks=weeks.toFixed(1);}\nreturn weeks;},updateRange:function(){var firstDay=this._getFirstDay(),lastDay=this._getLastDay(),totalDays=lastDay.diff(firstDay,'days'),days=[],i=-1;if(totalDays<this.minDays){totalDays+=this.minDays-totalDays-1;}\nwhile(++i<=totalDays){days.push(+firstDay+ONE_DAY*i);}\nreturn _.extend(this.range,{days:days,totalDays:totalDays,firstDay:firstDay,lastDay:moment(_.last(days)),hasToday:this.isToday(firstDay)});},_getDates:function(key){var dates=[];this.rows.forEach(function(record){if(record[key]){dates.push(this.createDate(record[key]));}},this);return dates;},_getFirstDay:function(){var dates=this._getDates('start_time'),first=moment.min(dates).subtract(1,'day'),today=moment();if(!first.isValid()||first<today){first=today;}\nreturn first.startOf('day');},_getLastDay:function(){var startDates=this._getDates('start_time'),endDates=this._getDates('end_time'),last=moment.max(startDates.concat(endDates));return last.add(1,'day').startOf('day');},formatHeader:function(timestamp){return moment(timestamp).format(this.headerFormat);},formatDetails:function(date){return moment(date).format(this.detailsFormat);}});});","Magento_Ui/js/timeline/timeline-view.min.js":"define(['ko','Magento_Ui/js/lib/view/utils/async','underscore','Magento_Ui/js/lib/view/utils/raf','uiRegistry','uiClass'],function(ko,$,_,raf,registry,Class){'use strict';var hasClassList=(function(){var list=document.createElement('_').classList;return!!list&&!list.toggle('_test',false);})();function toggleClass(elem){var classList=elem.classList,args=Array.prototype.slice.call(arguments,1),$elem;if(hasClassList){classList.toggle.apply(classList,args);}else{$elem=$(elem);$elem.toggleClass.apply($elem,args);}}\nreturn Class.extend({defaults:{selectors:{content:'.timeline-content',timeUnit:'.timeline-unit',item:'.timeline-item:not([data-role=no-data-msg])',event:'.timeline-event'}},initialize:function(){_.bindAll(this,'refresh','initContent','initItem','initTimeUnit','getItemBindings','updateItemsPosition','onScaleChange','onEventElementRender','onWindowResize','onContentScroll','onDataReloaded','onToStartClick','onToEndClick');this._super().initModel().waitContent();return this;},initModel:function(){var model=registry.get(this.model);model.on('scale',this.onScaleChange);model.source.on('reloaded',this.onDataReloaded);this.model=model;return this;},waitContent:function(){$.async({selector:this.selectors.content,component:this.model},this.initContent);return this;},initContent:function(content){this.$content=content;$(content).on('scroll',this.onContentScroll);$(window).on('resize',this.onWindowResize);$.async(this.selectors.item,content,this.initItem);$.async(this.selectors.event,content,this.onEventElementRender);$.async(this.selectors.timeUnit,content,this.initTimeUnit);this.refresh();return this;},initItem:function(elem){$(elem).bindings(this.getItemBindings).on('click','._toend',this.onToEndClick).on('click','._tostart',this.onToStartClick);return this;},initTimeUnit:function(elem){$(elem).bindings(this.getTimeUnitBindings());return this;},refresh:function(){raf(this.refresh);if(this._update){this._update=false;this.updateItemsPosition();}},getTimeUnitBindings:function(){return{style:{width:ko.computed(function(){return this.getTimeUnitWidth()+'%';}.bind(this))}};},getItemBindings:function(ctx){return{style:{width:ko.computed(function(){return this.getItemWidth(ctx.$row())+'%';}.bind(this)),'margin-left':ko.computed(function(){return this.getItemMargin(ctx.$row())+'%';}.bind(this))}};},getTimeUnitWidth:function(){return 100 / this.model.scale;},getItemWidth:function(record){var days=0;if(record){days=this.model.getDaysLength(record);}\nreturn this.getTimeUnitWidth()*days;},getItemMargin:function(record){var offset=0;if(record){offset=this.model.getStartDelta(record);}\nreturn this.getTimeUnitWidth()*offset;},getItems:function(){var items=this.$content.querySelectorAll(this.selectors.item);return _.toArray(items);},updateItemsPosition:function(){this.getItems().forEach(this.updatePositionFor,this);return this;},updatePositionFor:function($elem){var $event=$elem.querySelector(this.selectors.event),leftEdge=this.getLeftEdgeFor($elem),rightEdge=this.getRightEdgeFor($elem);if($event){$event.style.left=Math.max(-leftEdge,0)+'px';$event.style.right=Math.max(rightEdge,0)+'px';}\ntoggleClass($elem,'_scroll-start',leftEdge<0);toggleClass($elem,'_scroll-end',rightEdge>0);return this;},toStartOf:function(elem){var leftEdge=this.getLeftEdgeFor(elem);this.$content.scrollLeft+=leftEdge;return this;},toEndOf:function(elem){var rightEdge=this.getRightEdgeFor(elem);this.$content.scrollLeft+=rightEdge+1;return this;},getLeftEdgeFor:function(elem){var leftOffset=elem.getBoundingClientRect().left;return leftOffset-this.$content.getBoundingClientRect().left;},getRightEdgeFor:function(elem){var elemWidth=elem.offsetWidth,leftEdge=this.getLeftEdgeFor(elem);return leftEdge+elemWidth-this.$content.offsetWidth;},onToStartClick:function(event){var elem=event.originalEvent.currentTarget;event.stopPropagation();this.toStartOf(elem);},onToEndClick:function(event){var elem=event.originalEvent.currentTarget;event.stopPropagation();this.toEndOf(elem);},onScaleChange:function(){this._update=true;},onEventElementRender:function(){this._update=true;},onWindowResize:function(){this._update=true;},onContentScroll:function(){this._update=true;},onDataReloaded:function(){this._update=true;}});});","MGS_Fbuilder/js/lightbox.min.js":"/*!\n * Lightbox v2.10.0\n * by Lokesh Dhakar\n *\n * More info:\n * http://lokeshdhakar.com/projects/lightbox2/\n *\n * Copyright 2007, 2018 Lokesh Dhakar\n * Released under the MIT license\n * https://github.com/lokesh/lightbox2/blob/master/LICENSE\n *\n * @preserve\n */\n!function(a,b){\"function\"==typeof define&&define.amd?define([\"jquery\"],b):\"object\"==typeof exports?module.exports=b(require(\"jquery\")):a.lightbox=b(a.jQuery)}(this,function(a){function b(b){this.album=[],this.currentImageIndex=void 0,this.init(),this.options=a.extend({},this.constructor.defaults),this.option(b)}return b.defaults={albumLabel:\"Image %1 of %2\",alwaysShowNavOnTouchDevices:!1,fadeDuration:600,fitImagesInViewport:!0,imageFadeDuration:600,positionFromTop:50,resizeDuration:700,showImageNumberLabel:!0,wrapAround:!1,disableScrolling:!1,sanitizeTitle:!1},b.prototype.option=function(b){a.extend(this.options,b)},b.prototype.imageCountLabel=function(a,b){return this.options.albumLabel.replace(/%1/g,a).replace(/%2/g,b)},b.prototype.init=function(){var b=this;a(document).ready(function(){b.enable(),b.build()})},b.prototype.enable=function(){var b=this;a(\"body\").on(\"click\",\"a[rel^=lightbox], area[rel^=lightbox], a[data-lightbox], area[data-lightbox]\",function(c){return b.start(a(c.currentTarget)),!1})},b.prototype.build=function(){if(!(a(\"#lightbox\").length>0)){var b=this;a('<div id=\"lightboxOverlay\" class=\"lightboxOverlay\"></div><div id=\"lightbox\" class=\"lightbox\"><div class=\"lb-outerContainer\"><div class=\"lb-container\"><img class=\"lb-image\" src=\"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==\" /><div class=\"lb-nav\"><a class=\"lb-prev\" href=\"\" ></a><a class=\"lb-next\" href=\"\" ></a></div><div class=\"lb-loader\"><a class=\"lb-cancel\"></a></div></div></div><div class=\"lb-dataContainer\"><div class=\"lb-data\"><div class=\"lb-details\"><span class=\"lb-caption\"></span><span class=\"lb-number\"></span></div><div class=\"lb-closeContainer\"><a class=\"lb-close\"></a></div></div></div></div>').appendTo(a(\"body\")),this.$lightbox=a(\"#lightbox\"),this.$overlay=a(\"#lightboxOverlay\"),this.$outerContainer=this.$lightbox.find(\".lb-outerContainer\"),this.$container=this.$lightbox.find(\".lb-container\"),this.$image=this.$lightbox.find(\".lb-image\"),this.$nav=this.$lightbox.find(\".lb-nav\"),this.containerPadding={top:parseInt(this.$container.css(\"padding-top\"),10),right:parseInt(this.$container.css(\"padding-right\"),10),bottom:parseInt(this.$container.css(\"padding-bottom\"),10),left:parseInt(this.$container.css(\"padding-left\"),10)},this.imageBorderWidth={top:parseInt(this.$image.css(\"border-top-width\"),10),right:parseInt(this.$image.css(\"border-right-width\"),10),bottom:parseInt(this.$image.css(\"border-bottom-width\"),10),left:parseInt(this.$image.css(\"border-left-width\"),10)},this.$overlay.hide().on(\"click\",function(){return b.end(),!1}),this.$lightbox.hide().on(\"click\",function(c){return\"lightbox\"===a(c.target).attr(\"id\")&&b.end(),!1}),this.$outerContainer.on(\"click\",function(c){return\"lightbox\"===a(c.target).attr(\"id\")&&b.end(),!1}),this.$lightbox.find(\".lb-prev\").on(\"click\",function(){return 0===b.currentImageIndex?b.changeImage(b.album.length-1):b.changeImage(b.currentImageIndex-1),!1}),this.$lightbox.find(\".lb-next\").on(\"click\",function(){return b.currentImageIndex===b.album.length-1?b.changeImage(0):b.changeImage(b.currentImageIndex+1),!1}),this.$nav.on(\"mousedown\",function(a){3===a.which&&(b.$nav.css(\"pointer-events\",\"none\"),b.$lightbox.one(\"contextmenu\",function(){setTimeout(function(){this.$nav.css(\"pointer-events\",\"auto\")}.bind(b),0)}))}),this.$lightbox.find(\".lb-loader, .lb-close\").on(\"click\",function(){return b.end(),!1})}},b.prototype.start=function(b){function c(a){d.album.push({alt:a.attr(\"data-alt\"),link:a.attr(\"href\"),title:a.attr(\"data-title\")||a.attr(\"title\")})}var d=this,e=a(window);e.on(\"resize\",a.proxy(this.sizeOverlay,this)),a(\"select, object, embed\").css({visibility:\"hidden\"}),this.sizeOverlay(),this.album=[];var f,g=0,h=b.attr(\"data-lightbox\");if(h){f=a(b.prop(\"tagName\")+'[data-lightbox=\"'+h+'\"]');for(var i=0;i<f.length;i=++i)c(a(f[i])),f[i]===b[0]&&(g=i)}else if(\"lightbox\"===b.attr(\"rel\"))c(b);else{f=a(b.prop(\"tagName\")+'[rel=\"'+b.attr(\"rel\")+'\"]');for(var j=0;j<f.length;j=++j)c(a(f[j])),f[j]===b[0]&&(g=j)}var k=e.scrollTop()+this.options.positionFromTop,l=e.scrollLeft();this.$lightbox.css({top:k+\"px\",left:l+\"px\"}).fadeIn(this.options.fadeDuration),this.options.disableScrolling&&a(\"html\").addClass(\"lb-disable-scrolling\"),this.changeImage(g)},b.prototype.changeImage=function(b){var c=this;this.disableKeyboardNav();var d=this.$lightbox.find(\".lb-image\");this.$overlay.fadeIn(this.options.fadeDuration),a(\".lb-loader\").fadeIn(\"slow\"),this.$lightbox.find(\".lb-image, .lb-nav, .lb-prev, .lb-next, .lb-dataContainer, .lb-numbers, .lb-caption\").hide(),this.$outerContainer.addClass(\"animating\");var e=new Image;e.onload=function(){var f,g,h,i,j,k;d.attr({alt:c.album[b].alt,src:c.album[b].link}),a(e),d.width(e.width),d.height(e.height),c.options.fitImagesInViewport&&(k=a(window).width(),j=a(window).height(),i=k-c.containerPadding.left-c.containerPadding.right-c.imageBorderWidth.left-c.imageBorderWidth.right-20,h=j-c.containerPadding.top-c.containerPadding.bottom-c.imageBorderWidth.top-c.imageBorderWidth.bottom-120,c.options.maxWidth&&c.options.maxWidth<i&&(i=c.options.maxWidth),c.options.maxHeight&&c.options.maxHeight<i&&(h=c.options.maxHeight),(e.width>i||e.height>h)&&(e.width/i>e.height/h?(g=i,f=parseInt(e.height/(e.width/g),10),d.width(g),d.height(f)):(f=h,g=parseInt(e.width/(e.height/f),10),d.width(g),d.height(f)))),c.sizeContainer(d.width(),d.height())},e.src=this.album[b].link,this.currentImageIndex=b},b.prototype.sizeOverlay=function(){this.$overlay.width(a(document).width()).height(a(document).height())},b.prototype.sizeContainer=function(a,b){function c(){d.$lightbox.find(\".lb-dataContainer\").width(g),d.$lightbox.find(\".lb-prevLink\").height(h),d.$lightbox.find(\".lb-nextLink\").height(h),d.showImage()}var d=this,e=this.$outerContainer.outerWidth(),f=this.$outerContainer.outerHeight(),g=a+this.containerPadding.left+this.containerPadding.right+this.imageBorderWidth.left+this.imageBorderWidth.right,h=b+this.containerPadding.top+this.containerPadding.bottom+this.imageBorderWidth.top+this.imageBorderWidth.bottom;e!==g||f!==h?this.$outerContainer.animate({width:g,height:h},this.options.resizeDuration,\"swing\",function(){c()}):c()},b.prototype.showImage=function(){this.$lightbox.find(\".lb-loader\").stop(!0).hide(),this.$lightbox.find(\".lb-image\").fadeIn(this.options.imageFadeDuration),this.updateNav(),this.updateDetails(),this.preloadNeighboringImages(),this.enableKeyboardNav()},b.prototype.updateNav=function(){var a=!1;try{document.createEvent(\"TouchEvent\"),a=!!this.options.alwaysShowNavOnTouchDevices}catch(a){}this.$lightbox.find(\".lb-nav\").show(),this.album.length>1&&(this.options.wrapAround?(a&&this.$lightbox.find(\".lb-prev, .lb-next\").css(\"opacity\",\"1\"),this.$lightbox.find(\".lb-prev, .lb-next\").show()):(this.currentImageIndex>0&&(this.$lightbox.find(\".lb-prev\").show(),a&&this.$lightbox.find(\".lb-prev\").css(\"opacity\",\"1\")),this.currentImageIndex<this.album.length-1&&(this.$lightbox.find(\".lb-next\").show(),a&&this.$lightbox.find(\".lb-next\").css(\"opacity\",\"1\"))))},b.prototype.updateDetails=function(){var b=this;if(void 0!==this.album[this.currentImageIndex].title&&\"\"!==this.album[this.currentImageIndex].title){var c=this.$lightbox.find(\".lb-caption\");this.options.sanitizeTitle?c.text(this.album[this.currentImageIndex].title):c.html(this.album[this.currentImageIndex].title),c.fadeIn(\"fast\").find(\"a\").on(\"click\",function(b){void 0!==a(this).attr(\"target\")?window.open(a(this).attr(\"href\"),a(this).attr(\"target\")):location.href=a(this).attr(\"href\")})}if(this.album.length>1&&this.options.showImageNumberLabel){var d=this.imageCountLabel(this.currentImageIndex+1,this.album.length);this.$lightbox.find(\".lb-number\").text(d).fadeIn(\"fast\")}else this.$lightbox.find(\".lb-number\").hide();this.$outerContainer.removeClass(\"animating\"),this.$lightbox.find(\".lb-dataContainer\").fadeIn(this.options.resizeDuration,function(){return b.sizeOverlay()})},b.prototype.preloadNeighboringImages=function(){if(this.album.length>this.currentImageIndex+1){(new Image).src=this.album[this.currentImageIndex+1].link}if(this.currentImageIndex>0){(new Image).src=this.album[this.currentImageIndex-1].link}},b.prototype.enableKeyboardNav=function(){a(document).on(\"keyup.keyboard\",a.proxy(this.keyboardAction,this))},b.prototype.disableKeyboardNav=function(){a(document).off(\".keyboard\")},b.prototype.keyboardAction=function(a){var b=a.keyCode,c=String.fromCharCode(b).toLowerCase();27===b||c.match(/x|o|c/)?this.end():\"p\"===c||37===b?0!==this.currentImageIndex?this.changeImage(this.currentImageIndex-1):this.options.wrapAround&&this.album.length>1&&this.changeImage(this.album.length-1):\"n\"!==c&&39!==b||(this.currentImageIndex!==this.album.length-1?this.changeImage(this.currentImageIndex+1):this.options.wrapAround&&this.album.length>1&&this.changeImage(0))},b.prototype.end=function(){this.disableKeyboardNav(),a(window).off(\"resize\",this.sizeOverlay),this.$lightbox.fadeOut(this.options.fadeDuration),this.$overlay.fadeOut(this.options.fadeDuration),a(\"select, object, embed\").css({visibility:\"visible\"}),this.options.disableScrolling&&a(\"html\").removeClass(\"lb-disable-scrolling\")},new b});\n//# sourceMappingURL=lightbox.min.map","MGS_Fbuilder/js/popup.min.js":"function closeColorTable(el){require([\"jquery\"],function($){$(el).slideUp('normal');});}\nfunction openColorTable(el){require([\"jquery\"],function($){$(el).slideToggle('normal');});}\nfunction changeInputColor(name,input,el,wrapper){require([\"jquery\"],function($){$('#'+input).val(name);$('#'+wrapper+' ul li a').removeClass('active');$(el).addClass('active');divwrapper=wrapper.replace('colour-content','color');$('.'+divwrapper+' .remove-color').show();});}\nfunction removeColor(input,el){require([\"jquery\"],function($){$('#'+input).val('');$(el).hide();});}\nfunction setLocation(url){require(['jquery'],function(jQuery){(function(){window.location.href=url;})(jQuery);});}","MGS_Fbuilder/js/chart.min.js":"/*!\n * Chart.js\n * http://chartjs.org/\n * Version: 2.3.0\n *\n * Copyright 2016 Nick Downie\n * Released under the MIT license\n * https://github.com/chartjs/Chart.js/blob/master/LICENSE.md\n */\n!function(t){if(\"object\"==typeof exports&&\"undefined\"!=typeof module)module.exports=t();else if(\"function\"==typeof define&&define.amd)define([],t);else{var e;e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:this,e.Chart=t()}}(function(){return function t(e,a,i){function n(r,l){if(!a[r]){if(!e[r]){var s=\"function\"==typeof require&&require;if(!l&&s)return s(r,!0);if(o)return o(r,!0);var d=new Error(\"Cannot find module '\"+r+\"'\");throw d.code=\"MODULE_NOT_FOUND\",d}var u=a[r]={exports:{}};e[r][0].call(u.exports,function(t){var a=e[r][1][t];return n(a?a:t)},u,u.exports,t,e,a,i)}return a[r].exports}for(var o=\"function\"==typeof require&&require,r=0;r<i.length;r++)n(i[r]);return n}({1:[function(t,e,a){},{}],2:[function(t,e,a){function i(t){if(t){var e=/^#([a-fA-F0-9]{3})$/,a=/^#([a-fA-F0-9]{6})$/,i=/^rgba?\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)$/,n=/^rgba?\\(\\s*([+-]?[\\d\\.]+)\\%\\s*,\\s*([+-]?[\\d\\.]+)\\%\\s*,\\s*([+-]?[\\d\\.]+)\\%\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)$/,o=/(\\w+)/,r=[0,0,0],l=1,s=t.match(e);if(s){s=s[1];for(var d=0;d<r.length;d++)r[d]=parseInt(s[d]+s[d],16)}else if(s=t.match(a)){s=s[1];for(var d=0;d<r.length;d++)r[d]=parseInt(s.slice(2*d,2*d+2),16)}else if(s=t.match(i)){for(var d=0;d<r.length;d++)r[d]=parseInt(s[d+1]);l=parseFloat(s[4])}else if(s=t.match(n)){for(var d=0;d<r.length;d++)r[d]=Math.round(2.55*parseFloat(s[d+1]));l=parseFloat(s[4])}else if(s=t.match(o)){if(\"transparent\"==s[1])return[0,0,0,0];if(r=y[s[1]],!r)return}for(var d=0;d<r.length;d++)r[d]=v(r[d],0,255);return l=l||0==l?v(l,0,1):1,r[3]=l,r}}function n(t){if(t){var e=/^hsla?\\(\\s*([+-]?\\d+)(?:deg)?\\s*,\\s*([+-]?[\\d\\.]+)%\\s*,\\s*([+-]?[\\d\\.]+)%\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)/,a=t.match(e);if(a){var i=parseFloat(a[4]),n=v(parseInt(a[1]),0,360),o=v(parseFloat(a[2]),0,100),r=v(parseFloat(a[3]),0,100),l=v(isNaN(i)?1:i,0,1);return[n,o,r,l]}}}function o(t){if(t){var e=/^hwb\\(\\s*([+-]?\\d+)(?:deg)?\\s*,\\s*([+-]?[\\d\\.]+)%\\s*,\\s*([+-]?[\\d\\.]+)%\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)/,a=t.match(e);if(a){var i=parseFloat(a[4]),n=v(parseInt(a[1]),0,360),o=v(parseFloat(a[2]),0,100),r=v(parseFloat(a[3]),0,100),l=v(isNaN(i)?1:i,0,1);return[n,o,r,l]}}}function r(t){var e=i(t);return e&&e.slice(0,3)}function l(t){var e=n(t);return e&&e.slice(0,3)}function s(t){var e=i(t);return e?e[3]:(e=n(t))?e[3]:(e=o(t))?e[3]:void 0}function d(t){return\"#\"+x(t[0])+x(t[1])+x(t[2])}function u(t,e){return 1>e||t[3]&&t[3]<1?c(t,e):\"rgb(\"+t[0]+\", \"+t[1]+\", \"+t[2]+\")\"}function c(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),\"rgba(\"+t[0]+\", \"+t[1]+\", \"+t[2]+\", \"+e+\")\"}function h(t,e){if(1>e||t[3]&&t[3]<1)return f(t,e);var a=Math.round(t[0]/255*100),i=Math.round(t[1]/255*100),n=Math.round(t[2]/255*100);return\"rgb(\"+a+\"%, \"+i+\"%, \"+n+\"%)\"}function f(t,e){var a=Math.round(t[0]/255*100),i=Math.round(t[1]/255*100),n=Math.round(t[2]/255*100);return\"rgba(\"+a+\"%, \"+i+\"%, \"+n+\"%, \"+(e||t[3]||1)+\")\"}function g(t,e){return 1>e||t[3]&&t[3]<1?p(t,e):\"hsl(\"+t[0]+\", \"+t[1]+\"%, \"+t[2]+\"%)\"}function p(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),\"hsla(\"+t[0]+\", \"+t[1]+\"%, \"+t[2]+\"%, \"+e+\")\"}function m(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),\"hwb(\"+t[0]+\", \"+t[1]+\"%, \"+t[2]+\"%\"+(void 0!==e&&1!==e?\", \"+e:\"\")+\")\"}function b(t){return k[t.slice(0,3)]}function v(t,e,a){return Math.min(Math.max(e,t),a)}function x(t){var e=t.toString(16).toUpperCase();return e.length<2?\"0\"+e:e}var y=t(6);e.exports={getRgba:i,getHsla:n,getRgb:r,getHsl:l,getHwb:o,getAlpha:s,hexString:d,rgbString:u,rgbaString:c,percentString:h,percentaString:f,hslString:g,hslaString:p,hwbString:m,keyword:b};var k={};for(var S in y)k[y[S]]=S},{6:6}],3:[function(t,e,a){var i=t(5),n=t(2),o=function(t){if(t instanceof o)return t;if(!(this instanceof o))return new o(t);this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1};var e;if(\"string\"==typeof t)if(e=n.getRgba(t))this.setValues(\"rgb\",e);else if(e=n.getHsla(t))this.setValues(\"hsl\",e);else{if(!(e=n.getHwb(t)))throw new Error('Unable to parse color from string \"'+t+'\"');this.setValues(\"hwb\",e)}else if(\"object\"==typeof t)if(e=t,void 0!==e.r||void 0!==e.red)this.setValues(\"rgb\",e);else if(void 0!==e.l||void 0!==e.lightness)this.setValues(\"hsl\",e);else if(void 0!==e.v||void 0!==e.value)this.setValues(\"hsv\",e);else if(void 0!==e.w||void 0!==e.whiteness)this.setValues(\"hwb\",e);else{if(void 0===e.c&&void 0===e.cyan)throw new Error(\"Unable to parse color from object \"+JSON.stringify(t));this.setValues(\"cmyk\",e)}};o.prototype={rgb:function(){return this.setSpace(\"rgb\",arguments)},hsl:function(){return this.setSpace(\"hsl\",arguments)},hsv:function(){return this.setSpace(\"hsv\",arguments)},hwb:function(){return this.setSpace(\"hwb\",arguments)},cmyk:function(){return this.setSpace(\"cmyk\",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var t=this.values;return 1!==t.alpha?t.hwb.concat([t.alpha]):t.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var t=this.values;return t.rgb.concat([t.alpha])},hslaArray:function(){var t=this.values;return t.hsl.concat([t.alpha])},alpha:function(t){return void 0===t?this.values.alpha:(this.setValues(\"alpha\",t),this)},red:function(t){return this.setChannel(\"rgb\",0,t)},green:function(t){return this.setChannel(\"rgb\",1,t)},blue:function(t){return this.setChannel(\"rgb\",2,t)},hue:function(t){return t&&(t%=360,t=0>t?360+t:t),this.setChannel(\"hsl\",0,t)},saturation:function(t){return this.setChannel(\"hsl\",1,t)},lightness:function(t){return this.setChannel(\"hsl\",2,t)},saturationv:function(t){return this.setChannel(\"hsv\",1,t)},whiteness:function(t){return this.setChannel(\"hwb\",1,t)},blackness:function(t){return this.setChannel(\"hwb\",2,t)},value:function(t){return this.setChannel(\"hsv\",2,t)},cyan:function(t){return this.setChannel(\"cmyk\",0,t)},magenta:function(t){return this.setChannel(\"cmyk\",1,t)},yellow:function(t){return this.setChannel(\"cmyk\",2,t)},black:function(t){return this.setChannel(\"cmyk\",3,t)},hexString:function(){return n.hexString(this.values.rgb)},rgbString:function(){return n.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return n.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return n.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return n.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return n.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return n.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return n.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var t=this.values.rgb;return t[0]<<16|t[1]<<8|t[2]},luminosity:function(){for(var t=this.values.rgb,e=[],a=0;a<t.length;a++){var i=t[a]/255;e[a]=.03928>=i?i/12.92:Math.pow((i+.055)/1.055,2.4)}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),a=t.luminosity();return e>a?(e+.05)/(a+.05):(a+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?\"AAA\":e>=4.5?\"AA\":\"\"},dark:function(){var t=this.values.rgb,e=(299*t[0]+587*t[1]+114*t[2])/1e3;return 128>e},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;3>e;e++)t[e]=255-this.values.rgb[e];return this.setValues(\"rgb\",t),this},lighten:function(t){var e=this.values.hsl;return e[2]+=e[2]*t,this.setValues(\"hsl\",e),this},darken:function(t){var e=this.values.hsl;return e[2]-=e[2]*t,this.setValues(\"hsl\",e),this},saturate:function(t){var e=this.values.hsl;return e[1]+=e[1]*t,this.setValues(\"hsl\",e),this},desaturate:function(t){var e=this.values.hsl;return e[1]-=e[1]*t,this.setValues(\"hsl\",e),this},whiten:function(t){var e=this.values.hwb;return e[1]+=e[1]*t,this.setValues(\"hwb\",e),this},blacken:function(t){var e=this.values.hwb;return e[2]+=e[2]*t,this.setValues(\"hwb\",e),this},greyscale:function(){var t=this.values.rgb,e=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues(\"rgb\",[e,e,e]),this},clearer:function(t){var e=this.values.alpha;return this.setValues(\"alpha\",e-e*t),this},opaquer:function(t){var e=this.values.alpha;return this.setValues(\"alpha\",e+e*t),this},rotate:function(t){var e=this.values.hsl,a=(e[0]+t)%360;return e[0]=0>a?360+a:a,this.setValues(\"hsl\",e),this},mix:function(t,e){var a=this,i=t,n=void 0===e?.5:e,o=2*n-1,r=a.alpha()-i.alpha(),l=((o*r===-1?o:(o+r)/(1+o*r))+1)/2,s=1-l;return this.rgb(l*a.red()+s*i.red(),l*a.green()+s*i.green(),l*a.blue()+s*i.blue()).alpha(a.alpha()*n+i.alpha()*(1-n))},toJSON:function(){return this.rgb()},clone:function(){var t,e,a=new o,i=this.values,n=a.values;for(var r in i)i.hasOwnProperty(r)&&(t=i[r],e={}.toString.call(t),\"[object Array]\"===e?n[r]=t.slice(0):\"[object Number]\"===e?n[r]=t:console.error(\"unexpected color value:\",t));return a}},o.prototype.spaces={rgb:[\"red\",\"green\",\"blue\"],hsl:[\"hue\",\"saturation\",\"lightness\"],hsv:[\"hue\",\"saturation\",\"value\"],hwb:[\"hue\",\"whiteness\",\"blackness\"],cmyk:[\"cyan\",\"magenta\",\"yellow\",\"black\"]},o.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},o.prototype.getValues=function(t){for(var e=this.values,a={},i=0;i<t.length;i++)a[t.charAt(i)]=e[t][i];return 1!==e.alpha&&(a.a=e.alpha),a},o.prototype.setValues=function(t,e){var a,n=this.values,o=this.spaces,r=this.maxes,l=1;if(\"alpha\"===t)l=e;else if(e.length)n[t]=e.slice(0,t.length),l=e[t.length];else if(void 0!==e[t.charAt(0)]){for(a=0;a<t.length;a++)n[t][a]=e[t.charAt(a)];l=e.a}else if(void 0!==e[o[t][0]]){var s=o[t];for(a=0;a<t.length;a++)n[t][a]=e[s[a]];l=e.alpha}if(n.alpha=Math.max(0,Math.min(1,void 0===l?n.alpha:l)),\"alpha\"===t)return!1;var d;for(a=0;a<t.length;a++)d=Math.max(0,Math.min(r[t][a],n[t][a])),n[t][a]=Math.round(d);for(var u in o)u!==t&&(n[u]=i[t][u](n[t]));return!0},o.prototype.setSpace=function(t,e){var a=e[0];return void 0===a?this.getValues(t):(\"number\"==typeof a&&(a=Array.prototype.slice.call(e)),this.setValues(t,a),this)},o.prototype.setChannel=function(t,e,a){var i=this.values[t];return void 0===a?i[e]:a===i[e]?this:(i[e]=a,this.setValues(t,i),this)},\"undefined\"!=typeof window&&(window.Color=o),e.exports=o},{2:2,5:5}],4:[function(t,e,a){function i(t){var e,a,i,n=t[0]/255,o=t[1]/255,r=t[2]/255,l=Math.min(n,o,r),s=Math.max(n,o,r),d=s-l;return s==l?e=0:n==s?e=(o-r)/d:o==s?e=2+(r-n)/d:r==s&&(e=4+(n-o)/d),e=Math.min(60*e,360),0>e&&(e+=360),i=(l+s)/2,a=s==l?0:.5>=i?d/(s+l):d/(2-s-l),[e,100*a,100*i]}function n(t){var e,a,i,n=t[0],o=t[1],r=t[2],l=Math.min(n,o,r),s=Math.max(n,o,r),d=s-l;return a=0==s?0:d/s*1e3/10,s==l?e=0:n==s?e=(o-r)/d:o==s?e=2+(r-n)/d:r==s&&(e=4+(n-o)/d),e=Math.min(60*e,360),0>e&&(e+=360),i=s/255*1e3/10,[e,a,i]}function o(t){var e=t[0],a=t[1],n=t[2],o=i(t)[0],r=1/255*Math.min(e,Math.min(a,n)),n=1-1/255*Math.max(e,Math.max(a,n));return[o,100*r,100*n]}function l(t){var e,a,i,n,o=t[0]/255,r=t[1]/255,l=t[2]/255;return n=Math.min(1-o,1-r,1-l),e=(1-o-n)/(1-n)||0,a=(1-r-n)/(1-n)||0,i=(1-l-n)/(1-n)||0,[100*e,100*a,100*i,100*n]}function s(t){return G[JSON.stringify(t)]}function d(t){var e=t[0]/255,a=t[1]/255,i=t[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,a=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92,i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92;var n=.4124*e+.3576*a+.1805*i,o=.2126*e+.7152*a+.0722*i,r=.0193*e+.1192*a+.9505*i;return[100*n,100*o,100*r]}function u(t){var e,a,i,n=d(t),o=n[0],r=n[1],l=n[2];return o/=95.047,r/=100,l/=108.883,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,l=l>.008856?Math.pow(l,1/3):7.787*l+16/116,e=116*r-16,a=500*(o-r),i=200*(r-l),[e,a,i]}function c(t){return W(u(t))}function h(t){var e,a,i,n,o,r=t[0]/360,l=t[1]/100,s=t[2]/100;if(0==l)return o=255*s,[o,o,o];a=.5>s?s*(1+l):s+l-s*l,e=2*s-a,n=[0,0,0];for(var d=0;3>d;d++)i=r+1/3*-(d-1),0>i&&i++,i>1&&i--,o=1>6*i?e+6*(a-e)*i:1>2*i?a:2>3*i?e+(a-e)*(2/3-i)*6:e,n[d]=255*o;return n}function f(t){var e,a,i=t[0],n=t[1]/100,o=t[2]/100;return 0===o?[0,0,0]:(o*=2,n*=1>=o?o:2-o,a=(o+n)/2,e=2*n/(o+n),[i,100*e,100*a])}function p(t){return o(h(t))}function m(t){return l(h(t))}function v(t){return s(h(t))}function x(t){var e=t[0]/60,a=t[1]/100,i=t[2]/100,n=Math.floor(e)%6,o=e-Math.floor(e),r=255*i*(1-a),l=255*i*(1-a*o),s=255*i*(1-a*(1-o)),i=255*i;switch(n){case 0:return[i,s,r];case 1:return[l,i,r];case 2:return[r,i,s];case 3:return[r,l,i];case 4:return[s,r,i];case 5:return[i,r,l]}}function y(t){var e,a,i=t[0],n=t[1]/100,o=t[2]/100;return a=(2-n)*o,e=n*o,e/=1>=a?a:2-a,e=e||0,a/=2,[i,100*e,100*a]}function k(t){return o(x(t))}function S(t){return l(x(t))}function w(t){return s(x(t))}function C(t){var e,a,i,n,o=t[0]/360,l=t[1]/100,s=t[2]/100,d=l+s;switch(d>1&&(l/=d,s/=d),e=Math.floor(6*o),a=1-s,i=6*o-e,0!=(1&e)&&(i=1-i),n=l+i*(a-l),e){default:case 6:case 0:r=a,g=n,b=l;break;case 1:r=n,g=a,b=l;break;case 2:r=l,g=a,b=n;break;case 3:r=l,g=n,b=a;break;case 4:r=n,g=l,b=a;break;case 5:r=a,g=l,b=n}return[255*r,255*g,255*b]}function M(t){return i(C(t))}function D(t){return n(C(t))}function I(t){return l(C(t))}function A(t){return s(C(t))}function T(t){var e,a,i,n=t[0]/100,o=t[1]/100,r=t[2]/100,l=t[3]/100;return e=1-Math.min(1,n*(1-l)+l),a=1-Math.min(1,o*(1-l)+l),i=1-Math.min(1,r*(1-l)+l),[255*e,255*a,255*i]}function P(t){return i(T(t))}function F(t){return n(T(t))}function R(t){return o(T(t))}function _(t){return s(T(t))}function V(t){var e,a,i,n=t[0]/100,o=t[1]/100,r=t[2]/100;return e=3.2406*n+-1.5372*o+r*-.4986,a=n*-.9689+1.8758*o+.0415*r,i=.0557*n+o*-.204+1.057*r,e=e>.0031308?1.055*Math.pow(e,1/2.4)-.055:e=12.92*e,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a=12.92*a,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i=12.92*i,e=Math.min(Math.max(0,e),1),a=Math.min(Math.max(0,a),1),i=Math.min(Math.max(0,i),1),[255*e,255*a,255*i]}function L(t){var e,a,i,n=t[0],o=t[1],r=t[2];return n/=95.047,o/=100,r/=108.883,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,e=116*o-16,a=500*(n-o),i=200*(o-r),[e,a,i]}function O(t){return W(L(t))}function B(t){var e,a,i,n,o=t[0],r=t[1],l=t[2];return 8>=o?(a=100*o/903.3,n=7.787*(a/100)+16/116):(a=100*Math.pow((o+16)/116,3),n=Math.pow(a/100,1/3)),e=.008856>=e/95.047?e=95.047*(r/500+n-16/116)/7.787:95.047*Math.pow(r/500+n,3),i=.008859>=i/108.883?i=108.883*(n-l/200-16/116)/7.787:108.883*Math.pow(n-l/200,3),[e,a,i]}function W(t){var e,a,i,n=t[0],o=t[1],r=t[2];return e=Math.atan2(r,o),a=360*e/2/Math.PI,0>a&&(a+=360),i=Math.sqrt(o*o+r*r),[n,i,a]}function z(t){return V(B(t))}function N(t){var e,a,i,n=t[0],o=t[1],r=t[2];return i=r/360*2*Math.PI,e=o*Math.cos(i),a=o*Math.sin(i),[n,e,a]}function H(t){return B(N(t))}function E(t){return z(N(t))}function U(t){return Z[t]}function q(t){return i(U(t))}function j(t){return n(U(t))}function Y(t){return o(U(t))}function K(t){return l(U(t))}function X(t){return u(U(t))}function J(t){return d(U(t))}e.exports={rgb2hsl:i,rgb2hsv:n,rgb2hwb:o,rgb2cmyk:l,rgb2keyword:s,rgb2xyz:d,rgb2lab:u,rgb2lch:c,hsl2rgb:h,hsl2hsv:f,hsl2hwb:p,hsl2cmyk:m,hsl2keyword:v,hsv2rgb:x,hsv2hsl:y,hsv2hwb:k,hsv2cmyk:S,hsv2keyword:w,hwb2rgb:C,hwb2hsl:M,hwb2hsv:D,hwb2cmyk:I,hwb2keyword:A,cmyk2rgb:T,cmyk2hsl:P,cmyk2hsv:F,cmyk2hwb:R,cmyk2keyword:_,keyword2rgb:U,keyword2hsl:q,keyword2hsv:j,keyword2hwb:Y,keyword2cmyk:K,keyword2lab:X,keyword2xyz:J,xyz2rgb:V,xyz2lab:L,xyz2lch:O,lab2xyz:B,lab2rgb:z,lab2lch:W,lch2lab:N,lch2xyz:H,lch2rgb:E};var Z={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},G={};for(var Q in Z)G[JSON.stringify(Z[Q])]=Q},{}],5:[function(t,e,a){var i=t(4),n=function(){return new d};for(var o in i){n[o+\"Raw\"]=function(t){return function(e){return\"number\"==typeof e&&(e=Array.prototype.slice.call(arguments)),i[t](e)}}(o);var r=/(\\w+)2(\\w+)/.exec(o),l=r[1],s=r[2];n[l]=n[l]||{},n[l][s]=n[o]=function(t){return function(e){\"number\"==typeof e&&(e=Array.prototype.slice.call(arguments));var a=i[t](e);if(\"string\"==typeof a||void 0===a)return a;for(var n=0;n<a.length;n++)a[n]=Math.round(a[n]);return a}}(o)}var d=function(){this.convs={}};d.prototype.routeSpace=function(t,e){var a=e[0];return void 0===a?this.getValues(t):(\"number\"==typeof a&&(a=Array.prototype.slice.call(e)),this.setValues(t,a))},d.prototype.setValues=function(t,e){return this.space=t,this.convs={},this.convs[t]=e,this},d.prototype.getValues=function(t){var e=this.convs[t];if(!e){var a=this.space,i=this.convs[a];e=n[a][t](i),this.convs[t]=e}return e},[\"rgb\",\"hsl\",\"hsv\",\"cmyk\",\"keyword\"].forEach(function(t){d.prototype[t]=function(e){return this.routeSpace(t,arguments)}}),e.exports=n},{4:4}],6:[function(t,e,a){e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},{}],7:[function(t,e,a){var i=t(27)();t(26)(i),t(22)(i),t(25)(i),t(21)(i),t(23)(i),t(24)(i),t(28)(i),t(32)(i),t(30)(i),t(31)(i),t(33)(i),t(29)(i),t(34)(i),t(35)(i),t(36)(i),t(37)(i),t(38)(i),t(41)(i),t(39)(i),t(40)(i),t(42)(i),t(43)(i),t(44)(i),t(15)(i),t(16)(i),t(17)(i),t(18)(i),t(19)(i),t(20)(i),t(8)(i),t(9)(i),t(10)(i),t(11)(i),t(12)(i),t(13)(i),t(14)(i),window.Chart=e.exports=i},{10:10,11:11,12:12,13:13,14:14,15:15,16:16,17:17,18:18,19:19,20:20,21:21,22:22,23:23,24:24,25:25,26:26,27:27,28:28,29:29,30:30,31:31,32:32,33:33,34:34,35:35,36:36,37:37,38:38,39:39,40:40,41:41,42:42,43:43,44:44,8:8,9:9}],8:[function(t,e,a){\"use strict\";e.exports=function(t){t.Bar=function(e,a){return a.type=\"bar\",new t(e,a)}}},{}],9:[function(t,e,a){\"use strict\";e.exports=function(t){t.Bubble=function(e,a){return a.type=\"bubble\",new t(e,a)}}},{}],10:[function(t,e,a){\"use strict\";e.exports=function(t){t.Doughnut=function(e,a){return a.type=\"doughnut\",new t(e,a)}}},{}],11:[function(t,e,a){\"use strict\";e.exports=function(t){t.Line=function(e,a){return a.type=\"line\",new t(e,a)}}},{}],12:[function(t,e,a){\"use strict\";e.exports=function(t){t.PolarArea=function(e,a){return a.type=\"polarArea\",new t(e,a)}}},{}],13:[function(t,e,a){\"use strict\";e.exports=function(t){t.Radar=function(e,a){return a.options=t.helpers.configMerge({aspectRatio:1},a.options),a.type=\"radar\",new t(e,a)}}},{}],14:[function(t,e,a){\"use strict\";e.exports=function(t){var e={hover:{mode:\"single\"},scales:{xAxes:[{type:\"linear\",position:\"bottom\",id:\"x-axis-1\"}],yAxes:[{type:\"linear\",position:\"left\",id:\"y-axis-1\"}]},tooltips:{callbacks:{title:function(){return\"\"},label:function(t){return\"(\"+t.xLabel+\", \"+t.yLabel+\")\"}}}};t.defaults.scatter=e,t.controllers.scatter=t.controllers.line,t.Scatter=function(e,a){return a.type=\"scatter\",new t(e,a)}}},{}],15:[function(t,e,a){\"use strict\";e.exports=function(t){var e=t.helpers;t.defaults.bar={hover:{mode:\"label\"},scales:{xAxes:[{type:\"category\",categoryPercentage:.8,barPercentage:.9,gridLines:{offsetGridLines:!0}}],yAxes:[{type:\"linear\"}]}},t.controllers.bar=t.DatasetController.extend({dataElementType:t.elements.Rectangle,initialize:function(e,a){t.DatasetController.prototype.initialize.call(this,e,a),this.getMeta().bar=!0},getBarCount:function(){var t=this,a=0;return e.each(t.chart.data.datasets,function(e,i){var n=t.chart.getDatasetMeta(i);n.bar&&t.chart.isDatasetVisible(i)&&++a},t),a},update:function(t){var a=this;e.each(a.getMeta().data,function(e,i){a.updateElement(e,i,t)},a)},updateElement:function(t,a,i){var n=this,o=n.getMeta(),r=n.getScaleForId(o.xAxisID),l=n.getScaleForId(o.yAxisID),s=l.getBasePixel(),d=n.chart.options.elements.rectangle,u=t.custom||{},c=n.getDataset();e.extend(t,{_xScale:r,_yScale:l,_datasetIndex:n.index,_index:a,_model:{x:n.calculateBarX(a,n.index),y:i?s:n.calculateBarY(a,n.index),label:n.chart.data.labels[a],datasetLabel:c.label,base:i?s:n.calculateBarBase(n.index,a),width:n.calculateBarWidth(a),backgroundColor:u.backgroundColor?u.backgroundColor:e.getValueAtIndexOrDefault(c.backgroundColor,a,d.backgroundColor),borderSkipped:u.borderSkipped?u.borderSkipped:d.borderSkipped,borderColor:u.borderColor?u.borderColor:e.getValueAtIndexOrDefault(c.borderColor,a,d.borderColor),borderWidth:u.borderWidth?u.borderWidth:e.getValueAtIndexOrDefault(c.borderWidth,a,d.borderWidth)}}),t.pivot()},calculateBarBase:function(t,e){var a=this,i=a.getMeta(),n=a.getScaleForId(i.yAxisID),o=0;if(n.options.stacked){for(var r=a.chart,l=r.data.datasets,s=Number(l[t].data[e]),d=0;t>d;d++){var u=l[d],c=r.getDatasetMeta(d);if(c.bar&&c.yAxisID===n.id&&r.isDatasetVisible(d)){var h=Number(u.data[e]);o+=0>s?Math.min(h,0):Math.max(h,0)}}return n.getPixelForValue(o)}return n.getBasePixel()},getRuler:function(t){var e,a=this,i=a.getMeta(),n=a.getScaleForId(i.xAxisID),o=a.getBarCount();e=\"category\"===n.options.type?n.getPixelForTick(t+1)-n.getPixelForTick(t):n.width/n.ticks.length;var r=e*n.options.categoryPercentage,l=(e-e*n.options.categoryPercentage)/2,s=r/o;if(n.ticks.length!==a.chart.data.labels.length){var d=n.ticks.length/a.chart.data.labels.length;s*=d}var u=s*n.options.barPercentage,c=s-s*n.options.barPercentage;return{datasetCount:o,tickWidth:e,categoryWidth:r,categorySpacing:l,fullBarWidth:s,barWidth:u,barSpacing:c}},calculateBarWidth:function(t){var e=this.getScaleForId(this.getMeta().xAxisID);if(e.options.barThickness)return e.options.barThickness;var a=this.getRuler(t);return e.options.stacked?a.categoryWidth:a.barWidth},getBarIndex:function(t){var e,a,i=0;for(a=0;t>a;++a)e=this.chart.getDatasetMeta(a),e.bar&&this.chart.isDatasetVisible(a)&&++i;return i},calculateBarX:function(t,e){var a=this,i=a.getMeta(),n=a.getScaleForId(i.xAxisID),o=a.getBarIndex(e),r=a.getRuler(t),l=n.getPixelForValue(null,t,e,a.chart.isCombo);return l-=a.chart.isCombo?r.tickWidth/2:0,n.options.stacked?l+r.categoryWidth/2+r.categorySpacing:l+r.barWidth/2+r.categorySpacing+r.barWidth*o+r.barSpacing/2+r.barSpacing*o},calculateBarY:function(t,e){var a=this,i=a.getMeta(),n=a.getScaleForId(i.yAxisID),o=Number(a.getDataset().data[t]);if(n.options.stacked){for(var r=0,l=0,s=0;e>s;s++){var d=a.chart.data.datasets[s],u=a.chart.getDatasetMeta(s);if(u.bar&&u.yAxisID===n.id&&a.chart.isDatasetVisible(s)){var c=Number(d.data[t]);0>c?l+=c||0:r+=c||0}}return 0>o?n.getPixelForValue(l+o):n.getPixelForValue(r+o)}return n.getPixelForValue(o)},draw:function(t){var a=this,i=t||1;e.each(a.getMeta().data,function(t,e){var n=a.getDataset().data[e];null===n||void 0===n||isNaN(n)||t.transition(i).draw()},a)},setHoverStyle:function(t){var a=this.chart.data.datasets[t._datasetIndex],i=t._index,n=t.custom||{},o=t._model;o.backgroundColor=n.hoverBackgroundColor?n.hoverBackgroundColor:e.getValueAtIndexOrDefault(a.hoverBackgroundColor,i,e.getHoverColor(o.backgroundColor)),o.borderColor=n.hoverBorderColor?n.hoverBorderColor:e.getValueAtIndexOrDefault(a.hoverBorderColor,i,e.getHoverColor(o.borderColor)),o.borderWidth=n.hoverBorderWidth?n.hoverBorderWidth:e.getValueAtIndexOrDefault(a.hoverBorderWidth,i,o.borderWidth)},removeHoverStyle:function(t){var a=this.chart.data.datasets[t._datasetIndex],i=t._index,n=t.custom||{},o=t._model,r=this.chart.options.elements.rectangle;o.backgroundColor=n.backgroundColor?n.backgroundColor:e.getValueAtIndexOrDefault(a.backgroundColor,i,r.backgroundColor),o.borderColor=n.borderColor?n.borderColor:e.getValueAtIndexOrDefault(a.borderColor,i,r.borderColor),o.borderWidth=n.borderWidth?n.borderWidth:e.getValueAtIndexOrDefault(a.borderWidth,i,r.borderWidth)}}),t.defaults.horizontalBar={hover:{mode:\"label\"},scales:{xAxes:[{type:\"linear\",position:\"bottom\"}],yAxes:[{position:\"left\",type:\"category\",categoryPercentage:.8,barPercentage:.9,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:\"left\"}},tooltips:{callbacks:{title:function(t,e){var a=\"\";return t.length>0&&(t[0].yLabel?a=t[0].yLabel:e.labels.length>0&&t[0].index<e.labels.length&&(a=e.labels[t[0].index])),a},label:function(t,e){var a=e.datasets[t.datasetIndex].label||\"\";return a+\": \"+t.xLabel}}}},t.controllers.horizontalBar=t.controllers.bar.extend({updateElement:function(t,a,i){var n=this,o=n.getMeta(),r=n.getScaleForId(o.xAxisID),l=n.getScaleForId(o.yAxisID),s=r.getBasePixel(),d=t.custom||{},u=n.getDataset(),c=n.chart.options.elements.rectangle;e.extend(t,{_xScale:r,_yScale:l,_datasetIndex:n.index,_index:a,_model:{x:i?s:n.calculateBarX(a,n.index),y:n.calculateBarY(a,n.index),label:n.chart.data.labels[a],datasetLabel:u.label,base:i?s:n.calculateBarBase(n.index,a),height:n.calculateBarHeight(a),backgroundColor:d.backgroundColor?d.backgroundColor:e.getValueAtIndexOrDefault(u.backgroundColor,a,c.backgroundColor),borderSkipped:d.borderSkipped?d.borderSkipped:c.borderSkipped,borderColor:d.borderColor?d.borderColor:e.getValueAtIndexOrDefault(u.borderColor,a,c.borderColor),borderWidth:d.borderWidth?d.borderWidth:e.getValueAtIndexOrDefault(u.borderWidth,a,c.borderWidth)},draw:function(){function t(t){return s[(u+t)%4]}var e=this._chart.ctx,a=this._view,i=a.height/2,n=a.y-i,o=a.y+i,r=a.base-(a.base-a.x),l=a.borderWidth/2;a.borderWidth&&(n+=l,o-=l,r+=l),e.beginPath(),e.fillStyle=a.backgroundColor,e.strokeStyle=a.borderColor,e.lineWidth=a.borderWidth;var s=[[a.base,o],[a.base,n],[r,n],[r,o]],d=[\"bottom\",\"left\",\"top\",\"right\"],u=d.indexOf(a.borderSkipped,0);-1===u&&(u=0),e.moveTo.apply(e,t(0));for(var c=1;4>c;c++)e.lineTo.apply(e,t(c));e.fill(),a.borderWidth&&e.stroke()},inRange:function(t,e){var a=this._view,i=!1;return a&&(i=a.x<a.base?e>=a.y-a.height/2&&e<=a.y+a.height/2&&t>=a.x&&t<=a.base:e>=a.y-a.height/2&&e<=a.y+a.height/2&&t>=a.base&&t<=a.x),i}}),t.pivot()},calculateBarBase:function(t,e){var a=this,i=a.getMeta(),n=a.getScaleForId(i.xAxisID),o=0;\nif(n.options.stacked){for(var r=a.chart,l=r.data.datasets,s=Number(l[t].data[e]),d=0;t>d;d++){var u=l[d],c=r.getDatasetMeta(d);if(c.bar&&c.xAxisID===n.id&&r.isDatasetVisible(d)){var h=Number(u.data[e]);o+=0>s?Math.min(h,0):Math.max(h,0)}}return n.getPixelForValue(o)}return n.getBasePixel()},getRuler:function(t){var e,a=this,i=a.getMeta(),n=a.getScaleForId(i.yAxisID),o=a.getBarCount();e=\"category\"===n.options.type?n.getPixelForTick(t+1)-n.getPixelForTick(t):n.width/n.ticks.length;var r=e*n.options.categoryPercentage,l=(e-e*n.options.categoryPercentage)/2,s=r/o;if(n.ticks.length!==a.chart.data.labels.length){var d=n.ticks.length/a.chart.data.labels.length;s*=d}var u=s*n.options.barPercentage,c=s-s*n.options.barPercentage;return{datasetCount:o,tickHeight:e,categoryHeight:r,categorySpacing:l,fullBarHeight:s,barHeight:u,barSpacing:c}},calculateBarHeight:function(t){var e=this,a=e.getScaleForId(e.getMeta().yAxisID);if(a.options.barThickness)return a.options.barThickness;var i=e.getRuler(t);return a.options.stacked?i.categoryHeight:i.barHeight},calculateBarX:function(t,e){var a=this,i=a.getMeta(),n=a.getScaleForId(i.xAxisID),o=Number(a.getDataset().data[t]);if(n.options.stacked){for(var r=0,l=0,s=0;e>s;s++){var d=a.chart.data.datasets[s],u=a.chart.getDatasetMeta(s);if(u.bar&&u.xAxisID===n.id&&a.chart.isDatasetVisible(s)){var c=Number(d.data[t]);0>c?l+=c||0:r+=c||0}}return 0>o?n.getPixelForValue(l+o):n.getPixelForValue(r+o)}return n.getPixelForValue(o)},calculateBarY:function(t,e){var a=this,i=a.getMeta(),n=a.getScaleForId(i.yAxisID),o=a.getBarIndex(e),r=a.getRuler(t),l=n.getPixelForValue(null,t,e,a.chart.isCombo);return l-=a.chart.isCombo?r.tickHeight/2:0,n.options.stacked?l+r.categoryHeight/2+r.categorySpacing:l+r.barHeight/2+r.categorySpacing+r.barHeight*o+r.barSpacing/2+r.barSpacing*o}})}},{}],16:[function(t,e,a){\"use strict\";e.exports=function(t){var e=t.helpers;t.defaults.bubble={hover:{mode:\"single\"},scales:{xAxes:[{type:\"linear\",position:\"bottom\",id:\"x-axis-0\"}],yAxes:[{type:\"linear\",position:\"left\",id:\"y-axis-0\"}]},tooltips:{callbacks:{title:function(){return\"\"},label:function(t,e){var a=e.datasets[t.datasetIndex].label||\"\",i=e.datasets[t.datasetIndex].data[t.index];return a+\": (\"+i.x+\", \"+i.y+\", \"+i.r+\")\"}}}},t.controllers.bubble=t.DatasetController.extend({dataElementType:t.elements.Point,update:function(t){var a=this,i=a.getMeta(),n=i.data;e.each(n,function(e,i){a.updateElement(e,i,t)})},updateElement:function(a,i,n){var o=this,r=o.getMeta(),l=o.getScaleForId(r.xAxisID),s=o.getScaleForId(r.yAxisID),d=a.custom||{},u=o.getDataset(),c=u.data[i],h=o.chart.options.elements.point,f=o.index;e.extend(a,{_xScale:l,_yScale:s,_datasetIndex:f,_index:i,_model:{x:n?l.getPixelForDecimal(.5):l.getPixelForValue(\"object\"==typeof c?c:NaN,i,f,o.chart.isCombo),y:n?s.getBasePixel():s.getPixelForValue(c,i,f),radius:n?0:d.radius?d.radius:o.getRadius(c),hitRadius:d.hitRadius?d.hitRadius:e.getValueAtIndexOrDefault(u.hitRadius,i,h.hitRadius)}}),t.DatasetController.prototype.removeHoverStyle.call(o,a,h);var g=a._model;g.skip=d.skip?d.skip:isNaN(g.x)||isNaN(g.y),a.pivot()},getRadius:function(t){return t.r||this.chart.options.elements.point.radius},setHoverStyle:function(a){var i=this;t.DatasetController.prototype.setHoverStyle.call(i,a);var n=i.chart.data.datasets[a._datasetIndex],o=a._index,r=a.custom||{},l=a._model;l.radius=r.hoverRadius?r.hoverRadius:e.getValueAtIndexOrDefault(n.hoverRadius,o,i.chart.options.elements.point.hoverRadius)+i.getRadius(n.data[o])},removeHoverStyle:function(e){var a=this;t.DatasetController.prototype.removeHoverStyle.call(a,e,a.chart.options.elements.point);var i=a.chart.data.datasets[e._datasetIndex].data[e._index],n=e.custom||{},o=e._model;o.radius=n.radius?n.radius:a.getRadius(i)}})}},{}],17:[function(t,e,a){\"use strict\";e.exports=function(t){var e=t.helpers,a=t.defaults;a.doughnut={animation:{animateRotate:!0,animateScale:!1},aspectRatio:1,hover:{mode:\"single\"},legendCallback:function(t){var e=[];e.push('<ul class=\"'+t.id+'-legend\">');var a=t.data,i=a.datasets,n=a.labels;if(i.length)for(var o=0;o<i[0].data.length;++o)e.push('<li><span style=\"background-color:'+i[0].backgroundColor[o]+'\"></span>'),n[o]&&e.push(n[o]),e.push(\"</li>\");return e.push(\"</ul>\"),e.join(\"\")},legend:{labels:{generateLabels:function(t){var a=t.data;return a.labels.length&&a.datasets.length?a.labels.map(function(i,n){var o=t.getDatasetMeta(0),r=a.datasets[0],l=o.data[n],s=l&&l.custom||{},d=e.getValueAtIndexOrDefault,u=t.options.elements.arc,c=s.backgroundColor?s.backgroundColor:d(r.backgroundColor,n,u.backgroundColor),h=s.borderColor?s.borderColor:d(r.borderColor,n,u.borderColor),f=s.borderWidth?s.borderWidth:d(r.borderWidth,n,u.borderWidth);return{text:i,fillStyle:c,strokeStyle:h,lineWidth:f,hidden:isNaN(r.data[n])||o.data[n].hidden,index:n}}):[]}},onClick:function(t,e){var a,i,n,o=e.index,r=this.chart;for(a=0,i=(r.data.datasets||[]).length;i>a;++a)n=r.getDatasetMeta(a),n.data[o]&&(n.data[o].hidden=!n.data[o].hidden);r.update()}},cutoutPercentage:50,rotation:Math.PI*-.5,circumference:2*Math.PI,tooltips:{callbacks:{title:function(){return\"\"},label:function(t,e){return e.labels[t.index]+\": \"+e.datasets[t.datasetIndex].data[t.index]}}}},a.pie=e.clone(a.doughnut),e.extend(a.pie,{cutoutPercentage:0}),t.controllers.doughnut=t.controllers.pie=t.DatasetController.extend({dataElementType:t.elements.Arc,linkScales:e.noop,getRingIndex:function(t){for(var e=0,a=0;t>a;++a)this.chart.isDatasetVisible(a)&&++e;return e},update:function(t){var a=this,i=a.chart,n=i.chartArea,o=i.options,r=o.elements.arc,l=n.right-n.left-r.borderWidth,s=n.bottom-n.top-r.borderWidth,d=Math.min(l,s),u={x:0,y:0},c=a.getMeta(),h=o.cutoutPercentage,f=o.circumference;if(f<2*Math.PI){var g=o.rotation%(2*Math.PI);g+=2*Math.PI*(g>=Math.PI?-1:g<-Math.PI?1:0);var p=g+f,m={x:Math.cos(g),y:Math.sin(g)},b={x:Math.cos(p),y:Math.sin(p)},v=0>=g&&p>=0||g<=2*Math.PI&&2*Math.PI<=p,x=g<=.5*Math.PI&&.5*Math.PI<=p||g<=2.5*Math.PI&&2.5*Math.PI<=p,y=g<=-Math.PI&&-Math.PI<=p||g<=Math.PI&&Math.PI<=p,k=g<=.5*-Math.PI&&.5*-Math.PI<=p||g<=1.5*Math.PI&&1.5*Math.PI<=p,S=h/100,w={x:y?-1:Math.min(m.x*(m.x<0?1:S),b.x*(b.x<0?1:S)),y:k?-1:Math.min(m.y*(m.y<0?1:S),b.y*(b.y<0?1:S))},C={x:v?1:Math.max(m.x*(m.x>0?1:S),b.x*(b.x>0?1:S)),y:x?1:Math.max(m.y*(m.y>0?1:S),b.y*(b.y>0?1:S))},M={width:.5*(C.x-w.x),height:.5*(C.y-w.y)};d=Math.min(l/M.width,s/M.height),u={x:(C.x+w.x)*-.5,y:(C.y+w.y)*-.5}}i.borderWidth=a.getMaxBorderWidth(c.data),i.outerRadius=Math.max((d-i.borderWidth)/2,0),i.innerRadius=Math.max(h?i.outerRadius/100*h:1,0),i.radiusLength=(i.outerRadius-i.innerRadius)/i.getVisibleDatasetCount(),i.offsetX=u.x*i.outerRadius,i.offsetY=u.y*i.outerRadius,c.total=a.calculateTotal(),a.outerRadius=i.outerRadius-i.radiusLength*a.getRingIndex(a.index),a.innerRadius=a.outerRadius-i.radiusLength,e.each(c.data,function(e,i){a.updateElement(e,i,t)})},updateElement:function(t,a,i){var n=this,o=n.chart,r=o.chartArea,l=o.options,s=l.animation,d=(r.left+r.right)/2,u=(r.top+r.bottom)/2,c=l.rotation,h=l.rotation,f=n.getDataset(),g=i&&s.animateRotate?0:t.hidden?0:n.calculateCircumference(f.data[a])*(l.circumference/(2*Math.PI)),p=i&&s.animateScale?0:n.innerRadius,m=i&&s.animateScale?0:n.outerRadius,b=e.getValueAtIndexOrDefault;e.extend(t,{_datasetIndex:n.index,_index:a,_model:{x:d+o.offsetX,y:u+o.offsetY,startAngle:c,endAngle:h,circumference:g,outerRadius:m,innerRadius:p,label:b(f.label,a,o.data.labels[a])}});var v=t._model;this.removeHoverStyle(t),i&&s.animateRotate||(0===a?v.startAngle=l.rotation:v.startAngle=n.getMeta().data[a-1]._model.endAngle,v.endAngle=v.startAngle+v.circumference),t.pivot()},removeHoverStyle:function(e){t.DatasetController.prototype.removeHoverStyle.call(this,e,this.chart.options.elements.arc)},calculateTotal:function(){var t,a=this.getDataset(),i=this.getMeta(),n=0;return e.each(i.data,function(e,i){t=a.data[i],isNaN(t)||e.hidden||(n+=Math.abs(t))}),n},calculateCircumference:function(t){var e=this.getMeta().total;return e>0&&!isNaN(t)?2*Math.PI*(t/e):0},getMaxBorderWidth:function(t){for(var e,a,i=0,n=this.index,o=t.length,r=0;o>r;r++)e=t[r]._model?t[r]._model.borderWidth:0,a=t[r]._chart?t[r]._chart.config.data.datasets[n].hoverBorderWidth:0,i=e>i?e:i,i=a>i?a:i;return i}})}},{}],18:[function(t,e,a){\"use strict\";e.exports=function(t){function e(t,e){return a.getValueOrDefault(t.showLine,e.showLines)}var a=t.helpers;t.defaults.line={showLines:!0,spanGaps:!1,hover:{mode:\"label\"},scales:{xAxes:[{type:\"category\",id:\"x-axis-0\"}],yAxes:[{type:\"linear\",id:\"y-axis-0\"}]}},t.controllers.line=t.DatasetController.extend({datasetElementType:t.elements.Line,dataElementType:t.elements.Point,addElementAndReset:function(a){var i=this,n=i.chart.options,o=i.getMeta();t.DatasetController.prototype.addElementAndReset.call(i,a),e(i.getDataset(),n)&&0!==o.dataset._model.tension&&i.updateBezierControlPoints()},update:function(t){var i,n,o,r=this,l=r.getMeta(),s=l.dataset,d=l.data||[],u=r.chart.options,c=u.elements.line,h=r.getScaleForId(l.yAxisID),f=r.getDataset(),g=e(f,u);for(g&&(o=s.custom||{},void 0!==f.tension&&void 0===f.lineTension&&(f.lineTension=f.tension),s._scale=h,s._datasetIndex=r.index,s._children=d,s._model={spanGaps:f.spanGaps?f.spanGaps:u.spanGaps,tension:o.tension?o.tension:a.getValueOrDefault(f.lineTension,c.tension),backgroundColor:o.backgroundColor?o.backgroundColor:f.backgroundColor||c.backgroundColor,borderWidth:o.borderWidth?o.borderWidth:f.borderWidth||c.borderWidth,borderColor:o.borderColor?o.borderColor:f.borderColor||c.borderColor,borderCapStyle:o.borderCapStyle?o.borderCapStyle:f.borderCapStyle||c.borderCapStyle,borderDash:o.borderDash?o.borderDash:f.borderDash||c.borderDash,borderDashOffset:o.borderDashOffset?o.borderDashOffset:f.borderDashOffset||c.borderDashOffset,borderJoinStyle:o.borderJoinStyle?o.borderJoinStyle:f.borderJoinStyle||c.borderJoinStyle,fill:o.fill?o.fill:void 0!==f.fill?f.fill:c.fill,steppedLine:o.steppedLine?o.steppedLine:a.getValueOrDefault(f.steppedLine,c.stepped),cubicInterpolationMode:o.cubicInterpolationMode?o.cubicInterpolationMode:a.getValueOrDefault(f.cubicInterpolationMode,c.cubicInterpolationMode),scaleTop:h.top,scaleBottom:h.bottom,scaleZero:h.getBasePixel()},s.pivot()),i=0,n=d.length;n>i;++i)r.updateElement(d[i],i,t);for(g&&0!==s._model.tension&&r.updateBezierControlPoints(),i=0,n=d.length;n>i;++i)d[i].pivot()},getPointBackgroundColor:function(t,e){var i=this.chart.options.elements.point.backgroundColor,n=this.getDataset(),o=t.custom||{};return o.backgroundColor?i=o.backgroundColor:n.pointBackgroundColor?i=a.getValueAtIndexOrDefault(n.pointBackgroundColor,e,i):n.backgroundColor&&(i=n.backgroundColor),i},getPointBorderColor:function(t,e){var i=this.chart.options.elements.point.borderColor,n=this.getDataset(),o=t.custom||{};return o.borderColor?i=o.borderColor:n.pointBorderColor?i=a.getValueAtIndexOrDefault(n.pointBorderColor,e,i):n.borderColor&&(i=n.borderColor),i},getPointBorderWidth:function(t,e){var i=this.chart.options.elements.point.borderWidth,n=this.getDataset(),o=t.custom||{};return o.borderWidth?i=o.borderWidth:n.pointBorderWidth?i=a.getValueAtIndexOrDefault(n.pointBorderWidth,e,i):n.borderWidth&&(i=n.borderWidth),i},updateElement:function(t,e,i){var n,o,r=this,l=r.getMeta(),s=t.custom||{},d=r.getDataset(),u=r.index,c=d.data[e],h=r.getScaleForId(l.yAxisID),f=r.getScaleForId(l.xAxisID),g=r.chart.options.elements.point,p=r.chart.data.labels||[],m=1===p.length||1===d.data.length||r.chart.isCombo;void 0!==d.radius&&void 0===d.pointRadius&&(d.pointRadius=d.radius),void 0!==d.hitRadius&&void 0===d.pointHitRadius&&(d.pointHitRadius=d.hitRadius),n=f.getPixelForValue(\"object\"==typeof c?c:NaN,e,u,m),o=i?h.getBasePixel():r.calculatePointY(c,e,u),t._xScale=f,t._yScale=h,t._datasetIndex=u,t._index=e,t._model={x:n,y:o,skip:s.skip||isNaN(n)||isNaN(o),radius:s.radius||a.getValueAtIndexOrDefault(d.pointRadius,e,g.radius),pointStyle:s.pointStyle||a.getValueAtIndexOrDefault(d.pointStyle,e,g.pointStyle),backgroundColor:r.getPointBackgroundColor(t,e),borderColor:r.getPointBorderColor(t,e),borderWidth:r.getPointBorderWidth(t,e),tension:l.dataset._model?l.dataset._model.tension:0,steppedLine:l.dataset._model?l.dataset._model.steppedLine:!1,hitRadius:s.hitRadius||a.getValueAtIndexOrDefault(d.pointHitRadius,e,g.hitRadius)}},calculatePointY:function(t,e,a){var i,n,o,r=this,l=r.chart,s=r.getMeta(),d=r.getScaleForId(s.yAxisID),u=0,c=0;if(d.options.stacked){for(i=0;a>i;i++)if(n=l.data.datasets[i],o=l.getDatasetMeta(i),\"line\"===o.type&&o.yAxisID===d.id&&l.isDatasetVisible(i)){var h=Number(d.getRightValue(n.data[e]));0>h?c+=h||0:u+=h||0}var f=Number(d.getRightValue(t));return 0>f?d.getPixelForValue(c+f):d.getPixelForValue(u+f)}return d.getPixelForValue(t)},updateBezierControlPoints:function(){function t(t,e,a){return Math.max(Math.min(t,a),e)}var e,i,n,o,r,l=this,s=l.getMeta(),d=l.chart.chartArea,u=s.data||[];if(s.dataset._model.spanGaps&&(u=u.filter(function(t){return!t._model.skip})),\"monotone\"===s.dataset._model.cubicInterpolationMode)a.splineCurveMonotone(u);else for(e=0,i=u.length;i>e;++e)n=u[e],o=n._model,r=a.splineCurve(a.previousItem(u,e)._model,o,a.nextItem(u,e)._model,s.dataset._model.tension),o.controlPointPreviousX=r.previous.x,o.controlPointPreviousY=r.previous.y,o.controlPointNextX=r.next.x,o.controlPointNextY=r.next.y;if(l.chart.options.elements.line.capBezierPoints)for(e=0,i=u.length;i>e;++e)o=u[e]._model,o.controlPointPreviousX=t(o.controlPointPreviousX,d.left,d.right),o.controlPointPreviousY=t(o.controlPointPreviousY,d.top,d.bottom),o.controlPointNextX=t(o.controlPointNextX,d.left,d.right),o.controlPointNextY=t(o.controlPointNextY,d.top,d.bottom)},draw:function(t){var a,i,n=this,o=n.getMeta(),r=o.data||[],l=t||1;for(a=0,i=r.length;i>a;++a)r[a].transition(l);for(e(n.getDataset(),n.chart.options)&&o.dataset.transition(l).draw(),a=0,i=r.length;i>a;++a)r[a].draw()},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],i=t._index,n=t.custom||{},o=t._model;o.radius=n.hoverRadius||a.getValueAtIndexOrDefault(e.pointHoverRadius,i,this.chart.options.elements.point.hoverRadius),o.backgroundColor=n.hoverBackgroundColor||a.getValueAtIndexOrDefault(e.pointHoverBackgroundColor,i,a.getHoverColor(o.backgroundColor)),o.borderColor=n.hoverBorderColor||a.getValueAtIndexOrDefault(e.pointHoverBorderColor,i,a.getHoverColor(o.borderColor)),o.borderWidth=n.hoverBorderWidth||a.getValueAtIndexOrDefault(e.pointHoverBorderWidth,i,o.borderWidth)},removeHoverStyle:function(t){var e=this,i=e.chart.data.datasets[t._datasetIndex],n=t._index,o=t.custom||{},r=t._model;void 0!==i.radius&&void 0===i.pointRadius&&(i.pointRadius=i.radius),r.radius=o.radius||a.getValueAtIndexOrDefault(i.pointRadius,n,e.chart.options.elements.point.radius),r.backgroundColor=e.getPointBackgroundColor(t,n),r.borderColor=e.getPointBorderColor(t,n),r.borderWidth=e.getPointBorderWidth(t,n)}})}},{}],19:[function(t,e,a){\"use strict\";e.exports=function(t){var e=t.helpers;t.defaults.polarArea={scale:{type:\"radialLinear\",lineArc:!0,ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,aspectRatio:1,legendCallback:function(t){var e=[];e.push('<ul class=\"'+t.id+'-legend\">');var a=t.data,i=a.datasets,n=a.labels;if(i.length)for(var o=0;o<i[0].data.length;++o)e.push('<li><span style=\"background-color:'+i[0].backgroundColor[o]+'\">'),n[o]&&e.push(n[o]),e.push(\"</span></li>\");return e.push(\"</ul>\"),e.join(\"\")},legend:{labels:{generateLabels:function(t){var a=t.data;return a.labels.length&&a.datasets.length?a.labels.map(function(i,n){var o=t.getDatasetMeta(0),r=a.datasets[0],l=o.data[n],s=l.custom||{},d=e.getValueAtIndexOrDefault,u=t.options.elements.arc,c=s.backgroundColor?s.backgroundColor:d(r.backgroundColor,n,u.backgroundColor),h=s.borderColor?s.borderColor:d(r.borderColor,n,u.borderColor),f=s.borderWidth?s.borderWidth:d(r.borderWidth,n,u.borderWidth);return{text:i,fillStyle:c,strokeStyle:h,lineWidth:f,hidden:isNaN(r.data[n])||o.data[n].hidden,index:n}}):[]}},onClick:function(t,e){var a,i,n,o=e.index,r=this.chart;for(a=0,i=(r.data.datasets||[]).length;i>a;++a)n=r.getDatasetMeta(a),n.data[o].hidden=!n.data[o].hidden;r.update()}},tooltips:{callbacks:{title:function(){return\"\"},label:function(t,e){return e.labels[t.index]+\": \"+t.yLabel}}}},t.controllers.polarArea=t.DatasetController.extend({dataElementType:t.elements.Arc,linkScales:e.noop,update:function(t){var a=this,i=a.chart,n=i.chartArea,o=a.getMeta(),r=i.options,l=r.elements.arc,s=Math.min(n.right-n.left,n.bottom-n.top);i.outerRadius=Math.max((s-l.borderWidth/2)/2,0),i.innerRadius=Math.max(r.cutoutPercentage?i.outerRadius/100*r.cutoutPercentage:1,0),i.radiusLength=(i.outerRadius-i.innerRadius)/i.getVisibleDatasetCount(),a.outerRadius=i.outerRadius-i.radiusLength*a.index,a.innerRadius=a.outerRadius-i.radiusLength,o.count=a.countVisibleElements(),e.each(o.data,function(e,i){a.updateElement(e,i,t)})},updateElement:function(t,a,i){for(var n=this,o=n.chart,r=n.getDataset(),l=o.options,s=l.animation,d=o.scale,u=e.getValueAtIndexOrDefault,c=o.data.labels,h=n.calculateCircumference(r.data[a]),f=d.xCenter,g=d.yCenter,p=0,m=n.getMeta(),b=0;a>b;++b)isNaN(r.data[b])||m.data[b].hidden||++p;var v=l.startAngle,x=t.hidden?0:d.getDistanceFromCenterForValue(r.data[a]),y=v+h*p,k=y+(t.hidden?0:h),S=s.animateScale?0:d.getDistanceFromCenterForValue(r.data[a]);e.extend(t,{_datasetIndex:n.index,_index:a,_scale:d,_model:{x:f,y:g,innerRadius:0,outerRadius:i?S:x,startAngle:i&&s.animateRotate?v:y,endAngle:i&&s.animateRotate?v:k,label:u(c,a,c[a])}}),n.removeHoverStyle(t),t.pivot()},removeHoverStyle:function(e){t.DatasetController.prototype.removeHoverStyle.call(this,e,this.chart.options.elements.arc)},countVisibleElements:function(){var t=this.getDataset(),a=this.getMeta(),i=0;return e.each(a.data,function(e,a){isNaN(t.data[a])||e.hidden||i++}),i},calculateCircumference:function(t){var e=this.getMeta().count;return e>0&&!isNaN(t)?2*Math.PI/e:0}})}},{}],20:[function(t,e,a){\"use strict\";e.exports=function(t){var e=t.helpers;t.defaults.radar={scale:{type:\"radialLinear\"},elements:{line:{tension:0}}},t.controllers.radar=t.DatasetController.extend({datasetElementType:t.elements.Line,dataElementType:t.elements.Point,linkScales:e.noop,addElementAndReset:function(e){t.DatasetController.prototype.addElementAndReset.call(this,e),this.updateBezierControlPoints()},update:function(t){var a=this,i=a.getMeta(),n=i.dataset,o=i.data,r=n.custom||{},l=a.getDataset(),s=a.chart.options.elements.line,d=a.chart.scale;void 0!==l.tension&&void 0===l.lineTension&&(l.lineTension=l.tension),e.extend(i.dataset,{_datasetIndex:a.index,_children:o,_loop:!0,_model:{tension:r.tension?r.tension:e.getValueOrDefault(l.lineTension,s.tension),backgroundColor:r.backgroundColor?r.backgroundColor:l.backgroundColor||s.backgroundColor,borderWidth:r.borderWidth?r.borderWidth:l.borderWidth||s.borderWidth,borderColor:r.borderColor?r.borderColor:l.borderColor||s.borderColor,fill:r.fill?r.fill:void 0!==l.fill?l.fill:s.fill,borderCapStyle:r.borderCapStyle?r.borderCapStyle:l.borderCapStyle||s.borderCapStyle,borderDash:r.borderDash?r.borderDash:l.borderDash||s.borderDash,borderDashOffset:r.borderDashOffset?r.borderDashOffset:l.borderDashOffset||s.borderDashOffset,borderJoinStyle:r.borderJoinStyle?r.borderJoinStyle:l.borderJoinStyle||s.borderJoinStyle,scaleTop:d.top,scaleBottom:d.bottom,scaleZero:d.getBasePosition()}}),i.dataset.pivot(),e.each(o,function(e,i){a.updateElement(e,i,t)},a),a.updateBezierControlPoints()},updateElement:function(t,a,i){var n=this,o=t.custom||{},r=n.getDataset(),l=n.chart.scale,s=n.chart.options.elements.point,d=l.getPointPositionForValue(a,r.data[a]);e.extend(t,{_datasetIndex:n.index,_index:a,_scale:l,_model:{x:i?l.xCenter:d.x,y:i?l.yCenter:d.y,tension:o.tension?o.tension:e.getValueOrDefault(r.tension,n.chart.options.elements.line.tension),radius:o.radius?o.radius:e.getValueAtIndexOrDefault(r.pointRadius,a,s.radius),backgroundColor:o.backgroundColor?o.backgroundColor:e.getValueAtIndexOrDefault(r.pointBackgroundColor,a,s.backgroundColor),borderColor:o.borderColor?o.borderColor:e.getValueAtIndexOrDefault(r.pointBorderColor,a,s.borderColor),borderWidth:o.borderWidth?o.borderWidth:e.getValueAtIndexOrDefault(r.pointBorderWidth,a,s.borderWidth),pointStyle:o.pointStyle?o.pointStyle:e.getValueAtIndexOrDefault(r.pointStyle,a,s.pointStyle),hitRadius:o.hitRadius?o.hitRadius:e.getValueAtIndexOrDefault(r.hitRadius,a,s.hitRadius)}}),t._model.skip=o.skip?o.skip:isNaN(t._model.x)||isNaN(t._model.y)},updateBezierControlPoints:function(){var t=this.chart.chartArea,a=this.getMeta();e.each(a.data,function(i,n){var o=i._model,r=e.splineCurve(e.previousItem(a.data,n,!0)._model,o,e.nextItem(a.data,n,!0)._model,o.tension);o.controlPointPreviousX=Math.max(Math.min(r.previous.x,t.right),t.left),o.controlPointPreviousY=Math.max(Math.min(r.previous.y,t.bottom),t.top),o.controlPointNextX=Math.max(Math.min(r.next.x,t.right),t.left),o.controlPointNextY=Math.max(Math.min(r.next.y,t.bottom),t.top),i.pivot()})},draw:function(t){var a=this.getMeta(),i=t||1;e.each(a.data,function(t){t.transition(i)}),a.dataset.transition(i).draw(),e.each(a.data,function(t){t.draw()})},setHoverStyle:function(t){var a=this.chart.data.datasets[t._datasetIndex],i=t.custom||{},n=t._index,o=t._model;o.radius=i.hoverRadius?i.hoverRadius:e.getValueAtIndexOrDefault(a.pointHoverRadius,n,this.chart.options.elements.point.hoverRadius),o.backgroundColor=i.hoverBackgroundColor?i.hoverBackgroundColor:e.getValueAtIndexOrDefault(a.pointHoverBackgroundColor,n,e.getHoverColor(o.backgroundColor)),o.borderColor=i.hoverBorderColor?i.hoverBorderColor:e.getValueAtIndexOrDefault(a.pointHoverBorderColor,n,e.getHoverColor(o.borderColor)),o.borderWidth=i.hoverBorderWidth?i.hoverBorderWidth:e.getValueAtIndexOrDefault(a.pointHoverBorderWidth,n,o.borderWidth)},removeHoverStyle:function(t){var a=this.chart.data.datasets[t._datasetIndex],i=t.custom||{},n=t._index,o=t._model,r=this.chart.options.elements.point;o.radius=i.radius?i.radius:e.getValueAtIndexOrDefault(a.radius,n,r.radius),o.backgroundColor=i.backgroundColor?i.backgroundColor:e.getValueAtIndexOrDefault(a.pointBackgroundColor,n,r.backgroundColor),o.borderColor=i.borderColor?i.borderColor:e.getValueAtIndexOrDefault(a.pointBorderColor,n,r.borderColor),o.borderWidth=i.borderWidth?i.borderWidth:e.getValueAtIndexOrDefault(a.pointBorderWidth,n,r.borderWidth)}})}},{}],21:[function(t,e,a){\"use strict\";e.exports=function(t){var e=t.helpers;t.defaults.global.animation={duration:1e3,easing:\"easeOutQuart\",onProgress:e.noop,onComplete:e.noop},t.Animation=t.Element.extend({currentStep:null,numSteps:60,easing:\"\",render:null,onAnimationProgress:null,onAnimationComplete:null}),t.animationService={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(t,e,a,i){var n=this;i||(t.animating=!0);for(var o=0;o<n.animations.length;++o)if(n.animations[o].chartInstance===t)return void(n.animations[o].animationObject=e);n.animations.push({chartInstance:t,animationObject:e}),1===n.animations.length&&n.requestAnimationFrame()},cancelAnimation:function(t){var a=e.findIndex(this.animations,function(e){return e.chartInstance===t});-1!==a&&(this.animations.splice(a,1),t.animating=!1)},requestAnimationFrame:function(){var t=this;null===t.request&&(t.request=e.requestAnimFrame.call(window,function(){t.request=null,t.startDigest()}))},startDigest:function(){var t=this,e=Date.now(),a=0;t.dropFrames>1&&(a=Math.floor(t.dropFrames),t.dropFrames=t.dropFrames%1);for(var i=0;i<t.animations.length;)null===t.animations[i].animationObject.currentStep&&(t.animations[i].animationObject.currentStep=0),t.animations[i].animationObject.currentStep+=1+a,t.animations[i].animationObject.currentStep>t.animations[i].animationObject.numSteps&&(t.animations[i].animationObject.currentStep=t.animations[i].animationObject.numSteps),t.animations[i].animationObject.render(t.animations[i].chartInstance,t.animations[i].animationObject),t.animations[i].animationObject.onAnimationProgress&&t.animations[i].animationObject.onAnimationProgress.call&&t.animations[i].animationObject.onAnimationProgress.call(t.animations[i].chartInstance,t.animations[i]),t.animations[i].animationObject.currentStep===t.animations[i].animationObject.numSteps?(t.animations[i].animationObject.onAnimationComplete&&t.animations[i].animationObject.onAnimationComplete.call&&t.animations[i].animationObject.onAnimationComplete.call(t.animations[i].chartInstance,t.animations[i]),t.animations[i].chartInstance.animating=!1,t.animations.splice(i,1)):++i;var n=Date.now(),o=(n-e)/t.frameDuration;t.dropFrames+=o,t.animations.length>0&&t.requestAnimationFrame()}}}},{}],22:[function(t,e,a){\"use strict\";e.exports=function(t){var e=t.canvasHelpers={};e.drawPoint=function(t,e,a,i,n){var o,r,l,s,d,u;if(\"object\"==typeof e&&(o=e.toString(),\"[object HTMLImageElement]\"===o||\"[object HTMLCanvasElement]\"===o))return void t.drawImage(e,i-e.width/2,n-e.height/2);if(!(isNaN(a)||0>=a)){switch(e){default:t.beginPath(),t.arc(i,n,a,0,2*Math.PI),t.closePath(),t.fill();break;case\"triangle\":t.beginPath(),r=3*a/Math.sqrt(3),d=r*Math.sqrt(3)/2,t.moveTo(i-r/2,n+d/3),t.lineTo(i+r/2,n+d/3),t.lineTo(i,n-2*d/3),t.closePath(),t.fill();break;case\"rect\":u=1/Math.SQRT2*a,t.beginPath(),t.fillRect(i-u,n-u,2*u,2*u),t.strokeRect(i-u,n-u,2*u,2*u);break;case\"rectRot\":u=1/Math.SQRT2*a,t.beginPath(),t.moveTo(i-u,n),t.lineTo(i,n+u),t.lineTo(i+u,n),t.lineTo(i,n-u),t.closePath(),t.fill();break;case\"cross\":t.beginPath(),t.moveTo(i,n+a),t.lineTo(i,n-a),t.moveTo(i-a,n),t.lineTo(i+a,n),t.closePath();break;case\"crossRot\":t.beginPath(),l=Math.cos(Math.PI/4)*a,s=Math.sin(Math.PI/4)*a,t.moveTo(i-l,n-s),t.lineTo(i+l,n+s),t.moveTo(i-l,n+s),t.lineTo(i+l,n-s),t.closePath();break;case\"star\":t.beginPath(),t.moveTo(i,n+a),t.lineTo(i,n-a),t.moveTo(i-a,n),t.lineTo(i+a,n),l=Math.cos(Math.PI/4)*a,s=Math.sin(Math.PI/4)*a,t.moveTo(i-l,n-s),t.lineTo(i+l,n+s),t.moveTo(i-l,n+s),t.lineTo(i+l,n-s),t.closePath();break;case\"line\":t.beginPath(),t.moveTo(i-a,n),t.lineTo(i+a,n),t.closePath();break;case\"dash\":t.beginPath(),t.moveTo(i,n),t.lineTo(i+a,n),t.closePath()}t.stroke()}}}},{}],23:[function(t,e,a){\"use strict\";e.exports=function(t){var e=t.helpers;t.types={},t.instances={},t.controllers={},t.Controller=function(a){return this.chart=a,this.config=a.config,this.options=this.config.options=e.configMerge(t.defaults.global,t.defaults[this.config.type],this.config.options||{}),this.id=e.uid(),Object.defineProperty(this,\"data\",{get:function(){return this.config.data}}),t.instances[this.id]=this,this.options.responsive&&this.resize(!0),this.initialize(),this},e.extend(t.Controller.prototype,{initialize:function(){var e=this;return t.plugins.notify(\"beforeInit\",[e]),e.bindEvents(),e.ensureScalesHaveIDs(),e.buildOrUpdateControllers(),e.buildScales(),e.updateLayout(),e.resetElements(),e.initToolTip(),e.update(),t.plugins.notify(\"afterInit\",[e]),e},clear:function(){return e.clear(this.chart),this},stop:function(){return t.animationService.cancelAnimation(this),this},resize:function(a){var i=this,n=i.chart,o=n.canvas,r=e.getMaximumWidth(o),l=n.aspectRatio,s=i.options.maintainAspectRatio&&isNaN(l)===!1&&isFinite(l)&&0!==l?r/l:e.getMaximumHeight(o),d=n.width!==r||n.height!==s;if(!d)return i;o.width=n.width=r,o.height=n.height=s,e.retinaScale(n);var u={width:r,height:s};return t.plugins.notify(\"resize\",[i,u]),i.options.onResize&&i.options.onResize(i,u),a||(i.stop(),i.update(i.options.responsiveAnimationDuration)),i},ensureScalesHaveIDs:function(){var t=this.options,a=t.scales||{},i=t.scale;e.each(a.xAxes,function(t,e){t.id=t.id||\"x-axis-\"+e}),e.each(a.yAxes,function(t,e){t.id=t.id||\"y-axis-\"+e}),i&&(i.id=i.id||\"scale\")},buildScales:function(){var a=this,i=a.options,n=a.scales={},o=[];i.scales&&(o=o.concat((i.scales.xAxes||[]).map(function(t){return{options:t,dtype:\"category\"}}),(i.scales.yAxes||[]).map(function(t){return{options:t,dtype:\"linear\"}}))),i.scale&&o.push({options:i.scale,dtype:\"radialLinear\",isDefault:!0}),e.each(o,function(i){var o=i.options,r=e.getValueOrDefault(o.type,i.dtype),l=t.scaleService.getScaleConstructor(r);if(l){var s=new l({id:o.id,options:o,ctx:a.chart.ctx,chart:a});n[s.id]=s,i.isDefault&&(a.scale=s)}}),t.scaleService.addScalesToLayout(this)},updateLayout:function(){t.layoutService.update(this,this.chart.width,this.chart.height)},buildOrUpdateControllers:function(){var a=this,i=[],n=[];if(e.each(a.data.datasets,function(e,o){var r=a.getDatasetMeta(o);r.type||(r.type=e.type||a.config.type),i.push(r.type),r.controller?r.controller.updateIndex(o):(r.controller=new t.controllers[r.type](a,o),n.push(r.controller))},a),i.length>1)for(var o=1;o<i.length;o++)if(i[o]!==i[o-1]){a.isCombo=!0;break}return n},resetElements:function(){var t=this;e.each(t.data.datasets,function(e,a){t.getDatasetMeta(a).controller.reset()},t)},update:function(a,i){var n=this;t.plugins.notify(\"beforeUpdate\",[n]),n.tooltip._data=n.data;var o=n.buildOrUpdateControllers();e.each(n.data.datasets,function(t,e){n.getDatasetMeta(e).controller.buildOrUpdateElements()},n),t.layoutService.update(n,n.chart.width,n.chart.height),t.plugins.notify(\"afterScaleUpdate\",[n]),e.each(o,function(t){t.reset()}),n.updateDatasets(),t.plugins.notify(\"afterUpdate\",[n]),n.render(a,i)},updateDatasets:function(){var e,a,i=this;if(t.plugins.notify(\"beforeDatasetsUpdate\",[i])){for(e=0,a=i.data.datasets.length;a>e;++e)i.getDatasetMeta(e).controller.update();t.plugins.notify(\"afterDatasetsUpdate\",[i])}},render:function(a,i){var n=this;t.plugins.notify(\"beforeRender\",[n]);var o=n.options.animation;if(o&&(\"undefined\"!=typeof a&&0!==a||\"undefined\"==typeof a&&0!==o.duration)){var r=new t.Animation;r.numSteps=(a||o.duration)/16.66,r.easing=o.easing,r.render=function(t,a){var i=e.easingEffects[a.easing],n=a.currentStep/a.numSteps,o=i(n);t.draw(o,n,a.currentStep)},r.onAnimationProgress=o.onProgress,r.onAnimationComplete=o.onComplete,t.animationService.addAnimation(n,r,a,i)}else n.draw(),o&&o.onComplete&&o.onComplete.call&&o.onComplete.call(n);return n},draw:function(a){var i=this,n=a||1;i.clear(),t.plugins.notify(\"beforeDraw\",[i,n]),e.each(i.boxes,function(t){t.draw(i.chartArea)},i),i.scale&&i.scale.draw(),t.plugins.notify(\"beforeDatasetsDraw\",[i,n]),e.each(i.data.datasets,function(t,e){i.isDatasetVisible(e)&&i.getDatasetMeta(e).controller.draw(a)},i,!0),t.plugins.notify(\"afterDatasetsDraw\",[i,n]),i.tooltip.transition(n).draw(),t.plugins.notify(\"afterDraw\",[i,n])},getElementAtEvent:function(t){var a=this,i=e.getRelativePosition(t,a.chart),n=[];return e.each(a.data.datasets,function(t,o){if(a.isDatasetVisible(o)){var r=a.getDatasetMeta(o);e.each(r.data,function(t){return t.inRange(i.x,i.y)?(n.push(t),n):void 0})}}),n.slice(0,1)},getElementsAtEvent:function(t){var a=this,i=e.getRelativePosition(t,a.chart),n=[],o=function(){if(a.data.datasets)for(var t=0;t<a.data.datasets.length;t++){var e=a.getDatasetMeta(t);if(a.isDatasetVisible(t))for(var n=0;n<e.data.length;n++)if(e.data[n].inRange(i.x,i.y))return e.data[n]}}.call(a);return o?(e.each(a.data.datasets,function(t,e){if(a.isDatasetVisible(e)){var i=a.getDatasetMeta(e),r=i.data[o._index];r&&!r._view.skip&&n.push(r)}},a),n):n},getElementsAtXAxis:function(t){var a=this,i=e.getRelativePosition(t,a.chart),n=[],o=function(){if(a.data.datasets)for(var t=0;t<a.data.datasets.length;t++){var e=a.getDatasetMeta(t);if(a.isDatasetVisible(t))for(var n=0;n<e.data.length;n++)if(e.data[n].inLabelRange(i.x,i.y))return e.data[n]}}.call(a);return o?(e.each(a.data.datasets,function(t,i){if(a.isDatasetVisible(i)){var r=a.getDatasetMeta(i),l=e.findIndex(r.data,function(t){return o._model.x===t._model.x});-1===l||r.data[l]._view.skip||n.push(r.data[l])}},a),n):n},getElementsAtEventForMode:function(t,e){var a=this;switch(e){case\"single\":return a.getElementAtEvent(t);case\"label\":return a.getElementsAtEvent(t);case\"dataset\":return a.getDatasetAtEvent(t);case\"x-axis\":return a.getElementsAtXAxis(t);default:return t}},getDatasetAtEvent:function(t){var e=this.getElementAtEvent(t);\nreturn e.length>0&&(e=this.getDatasetMeta(e[0]._datasetIndex).data),e},getDatasetMeta:function(t){var e=this,a=e.data.datasets[t];a._meta||(a._meta={});var i=a._meta[e.id];return i||(i=a._meta[e.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),i},getVisibleDatasetCount:function(){for(var t=0,e=0,a=this.data.datasets.length;a>e;++e)this.isDatasetVisible(e)&&t++;return t},isDatasetVisible:function(t){var e=this.getDatasetMeta(t);return\"boolean\"==typeof e.hidden?!e.hidden:!this.data.datasets[t].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroy:function(){var a=this;a.stop(),a.clear(),e.unbindEvents(a,a.events),e.removeResizeListener(a.chart.canvas.parentNode);var i=a.chart.canvas;i.width=a.chart.width,i.height=a.chart.height,void 0!==a.chart.originalDevicePixelRatio&&a.chart.ctx.scale(1/a.chart.originalDevicePixelRatio,1/a.chart.originalDevicePixelRatio),i.style.width=a.chart.originalCanvasStyleWidth,i.style.height=a.chart.originalCanvasStyleHeight,t.plugins.notify(\"destroy\",[a]),delete t.instances[a.id]},toBase64Image:function(){return this.chart.canvas.toDataURL.apply(this.chart.canvas,arguments)},initToolTip:function(){var e=this;e.tooltip=new t.Tooltip({_chart:e.chart,_chartInstance:e,_data:e.data,_options:e.options.tooltips},e)},bindEvents:function(){var t=this;e.bindEvents(t,t.options.events,function(e){t.eventHandler(e)})},updateHoverStyle:function(t,e,a){var i,n,o,r=a?\"setHoverStyle\":\"removeHoverStyle\";switch(e){case\"single\":t=[t[0]];break;case\"label\":case\"dataset\":case\"x-axis\":break;default:return}for(n=0,o=t.length;o>n;++n)i=t[n],i&&this.getDatasetMeta(i._datasetIndex).controller[r](i)},eventHandler:function(t){var a=this,i=a.tooltip,n=a.options||{},o=n.hover,r=n.tooltips;return a.lastActive=a.lastActive||[],a.lastTooltipActive=a.lastTooltipActive||[],\"mouseout\"===t.type?(a.active=[],a.tooltipActive=[]):(a.active=a.getElementsAtEventForMode(t,o.mode),a.tooltipActive=a.getElementsAtEventForMode(t,r.mode)),o.onHover&&o.onHover.call(a,a.active),a.legend&&a.legend.handleEvent&&a.legend.handleEvent(t),(\"mouseup\"===t.type||\"click\"===t.type)&&n.onClick&&n.onClick.call(a,t,a.active),a.lastActive.length&&a.updateHoverStyle(a.lastActive,o.mode,!1),a.active.length&&o.mode&&a.updateHoverStyle(a.active,o.mode,!0),(r.enabled||r.custom)&&(i.initialize(),i._active=a.tooltipActive,i.update(!0)),i.pivot(),a.animating||e.arrayEquals(a.active,a.lastActive)&&e.arrayEquals(a.tooltipActive,a.lastTooltipActive)||(a.stop(),(r.enabled||r.custom)&&i.update(!0),a.render(o.animationDuration,!0)),a.lastActive=a.active,a.lastTooltipActive=a.tooltipActive,a}})}},{}],24:[function(t,e,a){\"use strict\";e.exports=function(t){var e=t.helpers,a=e.noop;t.DatasetController=function(t,e){this.initialize(t,e)},e.extend(t.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(t,e){var a=this;a.chart=t,a.index=e,a.linkScales(),a.addElements()},updateIndex:function(t){this.index=t},linkScales:function(){var t=this,e=t.getMeta(),a=t.getDataset();null===e.xAxisID&&(e.xAxisID=a.xAxisID||t.chart.options.scales.xAxes[0].id),null===e.yAxisID&&(e.yAxisID=a.yAxisID||t.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},reset:function(){this.update(!0)},createMetaDataset:function(){var t=this,e=t.datasetElementType;return e&&new e({_chart:t.chart.chart,_datasetIndex:t.index})},createMetaData:function(t){var e=this,a=e.dataElementType;return a&&new a({_chart:e.chart.chart,_datasetIndex:e.index,_index:t})},addElements:function(){var t,e,a=this,i=a.getMeta(),n=a.getDataset().data||[],o=i.data;for(t=0,e=n.length;e>t;++t)o[t]=o[t]||a.createMetaData(i,t);i.dataset=i.dataset||a.createMetaDataset()},addElementAndReset:function(t){var e=this,a=e.createMetaData(t);e.getMeta().data.splice(t,0,a),e.updateElement(a,t,!0)},buildOrUpdateElements:function(){var t=this.getMeta(),e=t.data,a=this.getDataset().data.length,i=e.length;if(i>a)e.splice(a,i-a);else if(a>i)for(var n=i;a>n;++n)this.addElementAndReset(n)},update:a,draw:function(t){var a=t||1;e.each(this.getMeta().data,function(t){t.transition(a).draw()})},removeHoverStyle:function(t,a){var i=this.chart.data.datasets[t._datasetIndex],n=t._index,o=t.custom||{},r=e.getValueAtIndexOrDefault,l=t._model;l.backgroundColor=o.backgroundColor?o.backgroundColor:r(i.backgroundColor,n,a.backgroundColor),l.borderColor=o.borderColor?o.borderColor:r(i.borderColor,n,a.borderColor),l.borderWidth=o.borderWidth?o.borderWidth:r(i.borderWidth,n,a.borderWidth)},setHoverStyle:function(t){var a=this.chart.data.datasets[t._datasetIndex],i=t._index,n=t.custom||{},o=e.getValueAtIndexOrDefault,r=e.getHoverColor,l=t._model;l.backgroundColor=n.hoverBackgroundColor?n.hoverBackgroundColor:o(a.hoverBackgroundColor,i,r(l.backgroundColor)),l.borderColor=n.hoverBorderColor?n.hoverBorderColor:o(a.hoverBorderColor,i,r(l.borderColor)),l.borderWidth=n.hoverBorderWidth?n.hoverBorderWidth:o(a.hoverBorderWidth,i,l.borderWidth)}}),t.DatasetController.extend=e.inherits}},{}],25:[function(t,e,a){\"use strict\";e.exports=function(t){var e=t.helpers;t.elements={},t.Element=function(t){e.extend(this,t),this.initialize.apply(this,arguments)},e.extend(t.Element.prototype,{initialize:function(){this.hidden=!1},pivot:function(){var t=this;return t._view||(t._view=e.clone(t._model)),t._start=e.clone(t._view),t},transition:function(t){var a=this;return a._view||(a._view=e.clone(a._model)),1===t?(a._view=a._model,a._start=null,a):(a._start||a.pivot(),e.each(a._model,function(i,n){if(\"_\"===n[0]);else if(a._view.hasOwnProperty(n))if(i===a._view[n]);else if(\"string\"==typeof i)try{var o=e.color(a._model[n]).mix(e.color(a._start[n]),t);a._view[n]=o.rgbString()}catch(r){a._view[n]=i}else if(\"number\"==typeof i){var l=void 0!==a._start[n]&&isNaN(a._start[n])===!1?a._start[n]:0;a._view[n]=(a._model[n]-l)*t+l}else a._view[n]=i;else\"number\"!=typeof i||isNaN(a._view[n])?a._view[n]=i:a._view[n]=i*t},a),a)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return e.isNumber(this._model.x)&&e.isNumber(this._model.y)}}),t.Element.extend=e.inherits}},{}],26:[function(t,e,a){\"use strict\";var i=t(3);e.exports=function(t){function e(t,e,a){var i;return\"string\"==typeof t?(i=parseInt(t,10),-1!==t.indexOf(\"%\")&&(i=i/100*e.parentNode[a])):i=t,i}function a(t){return void 0!==t&&null!==t&&\"none\"!==t}function n(t,i,n){var o=document.defaultView,r=t.parentNode,l=o.getComputedStyle(t)[i],s=o.getComputedStyle(r)[i],d=a(l),u=a(s),c=Number.POSITIVE_INFINITY;return d||u?Math.min(d?e(l,t,n):c,u?e(s,r,n):c):\"none\"}var o=t.helpers={};o.each=function(t,e,a,i){var n,r;if(o.isArray(t))if(r=t.length,i)for(n=r-1;n>=0;n--)e.call(a,t[n],n);else for(n=0;r>n;n++)e.call(a,t[n],n);else if(\"object\"==typeof t){var l=Object.keys(t);for(r=l.length,n=0;r>n;n++)e.call(a,t[l[n]],l[n])}},o.clone=function(t){var e={};return o.each(t,function(t,a){o.isArray(t)?e[a]=t.slice(0):\"object\"==typeof t&&null!==t?e[a]=o.clone(t):e[a]=t}),e},o.extend=function(t){for(var e=function(e,a){t[a]=e},a=1,i=arguments.length;i>a;a++)o.each(arguments[a],e);return t},o.configMerge=function(e){var a=o.clone(e);return o.each(Array.prototype.slice.call(arguments,1),function(e){o.each(e,function(e,i){if(\"scales\"===i)a[i]=o.scaleMerge(a.hasOwnProperty(i)?a[i]:{},e);else if(\"scale\"===i)a[i]=o.configMerge(a.hasOwnProperty(i)?a[i]:{},t.scaleService.getScaleDefaults(e.type),e);else if(a.hasOwnProperty(i)&&o.isArray(a[i])&&o.isArray(e)){var n=a[i];o.each(e,function(t,e){e<n.length?\"object\"==typeof n[e]&&null!==n[e]&&\"object\"==typeof t&&null!==t?n[e]=o.configMerge(n[e],t):n[e]=t:n.push(t)})}else a.hasOwnProperty(i)&&\"object\"==typeof a[i]&&null!==a[i]&&\"object\"==typeof e?a[i]=o.configMerge(a[i],e):a[i]=e})}),a},o.scaleMerge=function(e,a){var i=o.clone(e);return o.each(a,function(e,a){\"xAxes\"===a||\"yAxes\"===a?i.hasOwnProperty(a)?o.each(e,function(e,n){var r=o.getValueOrDefault(e.type,\"xAxes\"===a?\"category\":\"linear\"),l=t.scaleService.getScaleDefaults(r);n>=i[a].length||!i[a][n].type?i[a].push(o.configMerge(l,e)):e.type&&e.type!==i[a][n].type?i[a][n]=o.configMerge(i[a][n],l,e):i[a][n]=o.configMerge(i[a][n],e)}):(i[a]=[],o.each(e,function(e){var n=o.getValueOrDefault(e.type,\"xAxes\"===a?\"category\":\"linear\");i[a].push(o.configMerge(t.scaleService.getScaleDefaults(n),e))})):i.hasOwnProperty(a)&&\"object\"==typeof i[a]&&null!==i[a]&&\"object\"==typeof e?i[a]=o.configMerge(i[a],e):i[a]=e}),i},o.getValueAtIndexOrDefault=function(t,e,a){return void 0===t||null===t?a:o.isArray(t)?e<t.length?t[e]:a:t},o.getValueOrDefault=function(t,e){return void 0===t?e:t},o.indexOf=Array.prototype.indexOf?function(t,e){return t.indexOf(e)}:function(t,e){for(var a=0,i=t.length;i>a;++a)if(t[a]===e)return a;return-1},o.where=function(t,e){if(o.isArray(t)&&Array.prototype.filter)return t.filter(e);var a=[];return o.each(t,function(t){e(t)&&a.push(t)}),a},o.findIndex=Array.prototype.findIndex?function(t,e,a){return t.findIndex(e,a)}:function(t,e,a){a=void 0===a?t:a;for(var i=0,n=t.length;n>i;++i)if(e.call(a,t[i],i,t))return i;return-1},o.findNextWhere=function(t,e,a){(void 0===a||null===a)&&(a=-1);for(var i=a+1;i<t.length;i++){var n=t[i];if(e(n))return n}},o.findPreviousWhere=function(t,e,a){(void 0===a||null===a)&&(a=t.length);for(var i=a-1;i>=0;i--){var n=t[i];if(e(n))return n}},o.inherits=function(t){var e=this,a=t&&t.hasOwnProperty(\"constructor\")?t.constructor:function(){return e.apply(this,arguments)},i=function(){this.constructor=a};return i.prototype=e.prototype,a.prototype=new i,a.extend=o.inherits,t&&o.extend(a.prototype,t),a.__super__=e.prototype,a},o.noop=function(){},o.uid=function(){var t=0;return function(){return t++}}(),o.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},o.almostEquals=function(t,e,a){return Math.abs(t-e)<a},o.max=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.max(t,e)},Number.NEGATIVE_INFINITY)},o.min=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.min(t,e)},Number.POSITIVE_INFINITY)},o.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return t=+t,0===t||isNaN(t)?t:t>0?1:-1},o.log10=Math.log10?function(t){return Math.log10(t)}:function(t){return Math.log(t)/Math.LN10},o.toRadians=function(t){return t*(Math.PI/180)},o.toDegrees=function(t){return t*(180/Math.PI)},o.getAngleFromPoint=function(t,e){var a=e.x-t.x,i=e.y-t.y,n=Math.sqrt(a*a+i*i),o=Math.atan2(i,a);return o<-.5*Math.PI&&(o+=2*Math.PI),{angle:o,distance:n}},o.aliasPixel=function(t){return t%2===0?0:.5},o.splineCurve=function(t,e,a,i){var n=t.skip?e:t,o=e,r=a.skip?e:a,l=Math.sqrt(Math.pow(o.x-n.x,2)+Math.pow(o.y-n.y,2)),s=Math.sqrt(Math.pow(r.x-o.x,2)+Math.pow(r.y-o.y,2)),d=l/(l+s),u=s/(l+s);d=isNaN(d)?0:d,u=isNaN(u)?0:u;var c=i*d,h=i*u;return{previous:{x:o.x-c*(r.x-n.x),y:o.y-c*(r.y-n.y)},next:{x:o.x+h*(r.x-n.x),y:o.y+h*(r.y-n.y)}}},o.EPSILON=Number.EPSILON||1e-14,o.splineCurveMonotone=function(t){var e,a,i,n,r=(t||[]).map(function(t){return{model:t._model,deltaK:0,mK:0}}),l=r.length;for(e=0;l>e;++e)i=r[e],i.model.skip||(a=e>0?r[e-1]:null,n=l-1>e?r[e+1]:null,n&&!n.model.skip&&(i.deltaK=(n.model.y-i.model.y)/(n.model.x-i.model.x)),!a||a.model.skip?i.mK=i.deltaK:!n||n.model.skip?i.mK=a.deltaK:this.sign(a.deltaK)!==this.sign(i.deltaK)?i.mK=0:i.mK=(a.deltaK+i.deltaK)/2);var s,d,u,c;for(e=0;l-1>e;++e)i=r[e],n=r[e+1],i.model.skip||n.model.skip||(o.almostEquals(i.deltaK,0,this.EPSILON)?i.mK=n.mK=0:(s=i.mK/i.deltaK,d=n.mK/i.deltaK,c=Math.pow(s,2)+Math.pow(d,2),9>=c||(u=3/Math.sqrt(c),i.mK=s*u*i.deltaK,n.mK=d*u*i.deltaK)));var h;for(e=0;l>e;++e)i=r[e],i.model.skip||(a=e>0?r[e-1]:null,n=l-1>e?r[e+1]:null,a&&!a.model.skip&&(h=(i.model.x-a.model.x)/3,i.model.controlPointPreviousX=i.model.x-h,i.model.controlPointPreviousY=i.model.y-h*i.mK),n&&!n.model.skip&&(h=(n.model.x-i.model.x)/3,i.model.controlPointNextX=i.model.x+h,i.model.controlPointNextY=i.model.y+h*i.mK))},o.nextItem=function(t,e,a){return a?e>=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},o.previousItem=function(t,e,a){return a?0>=e?t[t.length-1]:t[e-1]:0>=e?t[0]:t[e-1]},o.niceNum=function(t,e){var a,i=Math.floor(o.log10(t)),n=t/Math.pow(10,i);return a=e?1.5>n?1:3>n?2:7>n?5:10:1>=n?1:2>=n?2:5>=n?5:10,a*Math.pow(10,i)};var r=o.easingEffects={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return-1*t*(t-2)},easeInOutQuad:function(t){return(t/=.5)<1?.5*t*t:-0.5*(--t*(t-2)-1)},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return 1*((t=t/1-1)*t*t+1)},easeInOutCubic:function(t){return(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return-1*((t=t/1-1)*t*t*t-1)},easeInOutQuart:function(t){return(t/=.5)<1?.5*t*t*t*t:-0.5*((t-=2)*t*t*t-2)},easeInQuint:function(t){return 1*(t/=1)*t*t*t*t},easeOutQuint:function(t){return 1*((t=t/1-1)*t*t*t*t+1)},easeInOutQuint:function(t){return(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},easeInSine:function(t){return-1*Math.cos(t/1*(Math.PI/2))+1},easeOutSine:function(t){return 1*Math.sin(t/1*(Math.PI/2))},easeInOutSine:function(t){return-0.5*(Math.cos(Math.PI*t/1)-1)},easeInExpo:function(t){return 0===t?1:1*Math.pow(2,10*(t/1-1))},easeOutExpo:function(t){return 1===t?1:1*(-Math.pow(2,-10*t/1)+1)},easeInOutExpo:function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(-Math.pow(2,-10*--t)+2)},easeInCirc:function(t){return t>=1?t:-1*(Math.sqrt(1-(t/=1)*t)-1)},easeOutCirc:function(t){return 1*Math.sqrt(1-(t=t/1-1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-0.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,a=0,i=1;return 0===t?0:1===(t/=1)?1:(a||(a=.3),i<Math.abs(1)?(i=1,e=a/4):e=a/(2*Math.PI)*Math.asin(1/i),-(i*Math.pow(2,10*(t-=1))*Math.sin((1*t-e)*(2*Math.PI)/a)))},easeOutElastic:function(t){var e=1.70158,a=0,i=1;return 0===t?0:1===(t/=1)?1:(a||(a=.3),i<Math.abs(1)?(i=1,e=a/4):e=a/(2*Math.PI)*Math.asin(1/i),i*Math.pow(2,-10*t)*Math.sin((1*t-e)*(2*Math.PI)/a)+1)},easeInOutElastic:function(t){var e=1.70158,a=0,i=1;return 0===t?0:2===(t/=.5)?1:(a||(a=1*(.3*1.5)),i<Math.abs(1)?(i=1,e=a/4):e=a/(2*Math.PI)*Math.asin(1/i),1>t?-.5*(i*Math.pow(2,10*(t-=1))*Math.sin((1*t-e)*(2*Math.PI)/a)):i*Math.pow(2,-10*(t-=1))*Math.sin((1*t-e)*(2*Math.PI)/a)*.5+1)},easeInBack:function(t){var e=1.70158;return 1*(t/=1)*t*((e+1)*t-e)},easeOutBack:function(t){var e=1.70158;return 1*((t=t/1-1)*t*((e+1)*t+e)+1)},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:function(t){return 1-r.easeOutBounce(1-t)},easeOutBounce:function(t){return(t/=1)<1/2.75?1*(7.5625*t*t):2/2.75>t?1*(7.5625*(t-=1.5/2.75)*t+.75):2.5/2.75>t?1*(7.5625*(t-=2.25/2.75)*t+.9375):1*(7.5625*(t-=2.625/2.75)*t+.984375)},easeInOutBounce:function(t){return.5>t?.5*r.easeInBounce(2*t):.5*r.easeOutBounce(2*t-1)+.5}};o.requestAnimFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)}}(),o.cancelAnimFrame=function(){return window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame||function(t){return window.clearTimeout(t,1e3/60)}}(),o.getRelativePosition=function(t,e){var a,i,n=t.originalEvent||t,r=t.currentTarget||t.srcElement,l=r.getBoundingClientRect(),s=n.touches;s&&s.length>0?(a=s[0].clientX,i=s[0].clientY):(a=n.clientX,i=n.clientY);var d=parseFloat(o.getStyle(r,\"padding-left\")),u=parseFloat(o.getStyle(r,\"padding-top\")),c=parseFloat(o.getStyle(r,\"padding-right\")),h=parseFloat(o.getStyle(r,\"padding-bottom\")),f=l.right-l.left-d-c,g=l.bottom-l.top-u-h;return a=Math.round((a-l.left-d)/f*r.width/e.currentDevicePixelRatio),i=Math.round((i-l.top-u)/g*r.height/e.currentDevicePixelRatio),{x:a,y:i}},o.addEvent=function(t,e,a){t.addEventListener?t.addEventListener(e,a):t.attachEvent?t.attachEvent(\"on\"+e,a):t[\"on\"+e]=a},o.removeEvent=function(t,e,a){t.removeEventListener?t.removeEventListener(e,a,!1):t.detachEvent?t.detachEvent(\"on\"+e,a):t[\"on\"+e]=o.noop},o.bindEvents=function(t,e,a){var i=t.events=t.events||{};o.each(e,function(e){i[e]=function(){a.apply(t,arguments)},o.addEvent(t.chart.canvas,e,i[e])})},o.unbindEvents=function(t,e){var a=t.chart.canvas;o.each(e,function(t,e){o.removeEvent(a,e,t)})},o.getConstraintWidth=function(t){return n(t,\"max-width\",\"clientWidth\")},o.getConstraintHeight=function(t){return n(t,\"max-height\",\"clientHeight\")},o.getMaximumWidth=function(t){var e=t.parentNode,a=parseInt(o.getStyle(e,\"padding-left\"),10),i=parseInt(o.getStyle(e,\"padding-right\"),10),n=e.clientWidth-a-i,r=o.getConstraintWidth(t);return isNaN(r)?n:Math.min(n,r)},o.getMaximumHeight=function(t){var e=t.parentNode,a=parseInt(o.getStyle(e,\"padding-top\"),10),i=parseInt(o.getStyle(e,\"padding-bottom\"),10),n=e.clientHeight-a-i,r=o.getConstraintHeight(t);return isNaN(r)?n:Math.min(n,r)},o.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},o.retinaScale=function(t){var e=t.ctx,a=t.canvas,i=a.width,n=a.height,o=t.currentDevicePixelRatio=window.devicePixelRatio||1;1!==o&&(a.height=n*o,a.width=i*o,e.scale(o,o),t.originalDevicePixelRatio=t.originalDevicePixelRatio||o),a.style.width=i+\"px\",a.style.height=n+\"px\"},o.clear=function(t){t.ctx.clearRect(0,0,t.width,t.height)},o.fontString=function(t,e,a){return e+\" \"+t+\"px \"+a},o.longestText=function(t,e,a,i){i=i||{};var n=i.data=i.data||{},r=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(n=i.data={},r=i.garbageCollect=[],i.font=e),t.font=e;var l=0;o.each(a,function(e){void 0!==e&&null!==e&&o.isArray(e)!==!0?l=o.measureText(t,n,r,l,e):o.isArray(e)&&o.each(e,function(e){void 0===e||null===e||o.isArray(e)||(l=o.measureText(t,n,r,l,e))})});var s=r.length/2;if(s>a.length){for(var d=0;s>d;d++)delete n[r[d]];r.splice(0,s)}return l},o.measureText=function(t,e,a,i,n){var o=e[n];return o||(o=e[n]=t.measureText(n).width,a.push(n)),o>i&&(i=o),i},o.numberOfLabelLines=function(t){var e=1;return o.each(t,function(t){o.isArray(t)&&t.length>e&&(e=t.length)}),e},o.drawRoundedRectangle=function(t,e,a,i,n,o){t.beginPath(),t.moveTo(e+o,a),t.lineTo(e+i-o,a),t.quadraticCurveTo(e+i,a,e+i,a+o),t.lineTo(e+i,a+n-o),t.quadraticCurveTo(e+i,a+n,e+i-o,a+n),t.lineTo(e+o,a+n),t.quadraticCurveTo(e,a+n,e,a+n-o),t.lineTo(e,a+o),t.quadraticCurveTo(e,a,e+o,a),t.closePath()},o.color=function(e){return i?i(e instanceof CanvasGradient?t.defaults.global.defaultColor:e):(console.error(\"Color.js not found!\"),e)},o.addResizeListener=function(t,e){var a=document.createElement(\"iframe\"),i=\"chartjs-hidden-iframe\";a.classlist?a.classlist.add(i):a.setAttribute(\"class\",i),a.tabIndex=-1;var n=a.style;n.width=\"100%\",n.display=\"block\",n.border=0,n.height=0,n.margin=0,n.position=\"absolute\",n.left=0,n.right=0,n.top=0,n.bottom=0,t.insertBefore(a,t.firstChild),(a.contentWindow||a).onresize=function(){return e?e():void 0}},o.removeResizeListener=function(t){var e=t.querySelector(\".chartjs-hidden-iframe\");e&&e.parentNode.removeChild(e)},o.isArray=Array.isArray?function(t){return Array.isArray(t)}:function(t){return\"[object Array]\"===Object.prototype.toString.call(t)},o.arrayEquals=function(t,e){var a,i,n,r;if(!t||!e||t.length!==e.length)return!1;for(a=0,i=t.length;i>a;++a)if(n=t[a],r=e[a],n instanceof Array&&r instanceof Array){if(!o.arrayEquals(n,r))return!1}else if(n!==r)return!1;return!0},o.callCallback=function(t,e,a){t&&\"function\"==typeof t.call&&t.apply(a,e)},o.getHoverColor=function(t){return t instanceof CanvasPattern?t:o.color(t).saturate(.5).darken(.1).rgbString()}}},{3:3}],27:[function(t,e,a){\"use strict\";e.exports=function(){var t=function(e,a){var i=this,n=t.helpers;return i.config=a||{data:{datasets:[]}},e.length&&e[0].getContext&&(e=e[0]),e.getContext&&(e=e.getContext(\"2d\")),i.ctx=e,i.canvas=e.canvas,e.canvas.style.display=e.canvas.style.display||\"block\",i.width=e.canvas.width||parseInt(n.getStyle(e.canvas,\"width\"),10)||n.getMaximumWidth(e.canvas),i.height=e.canvas.height||parseInt(n.getStyle(e.canvas,\"height\"),10)||n.getMaximumHeight(e.canvas),i.aspectRatio=i.width/i.height,(isNaN(i.aspectRatio)||isFinite(i.aspectRatio)===!1)&&(i.aspectRatio=void 0!==a.aspectRatio?a.aspectRatio:2),i.originalCanvasStyleWidth=e.canvas.style.width,i.originalCanvasStyleHeight=e.canvas.style.height,n.retinaScale(i),i.controller=new t.Controller(i),n.addResizeListener(e.canvas.parentNode,function(){i.controller&&i.controller.config.options.responsive&&i.controller.resize()}),i.controller?i.controller:i};return t.defaults={global:{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:[\"mousemove\",\"mouseout\",\"click\",\"touchstart\",\"touchmove\"],hover:{onHover:null,mode:\"single\",animationDuration:400},onClick:null,defaultColor:\"rgba(0,0,0,0.1)\",defaultFontColor:\"#666\",defaultFontFamily:\"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif\",defaultFontSize:12,defaultFontStyle:\"normal\",showLines:!0,elements:{},legendCallback:function(t){var e=[];e.push('<ul class=\"'+t.id+'-legend\">');for(var a=0;a<t.data.datasets.length;a++)e.push('<li><span style=\"background-color:'+t.data.datasets[a].backgroundColor+'\"></span>'),t.data.datasets[a].label&&e.push(t.data.datasets[a].label),e.push(\"</li>\");return e.push(\"</ul>\"),e.join(\"\")}}},t.Chart=t,t}},{}],28:[function(t,e,a){\"use strict\";e.exports=function(t){var e=t.helpers;t.layoutService={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),t.boxes.push(e)},removeBox:function(t,e){t.boxes&&t.boxes.splice(t.boxes.indexOf(e),1)},update:function(t,a,i){function n(t){var e,a=t.isHorizontal();a?(e=t.update(t.options.fullWidth?p:k,y),S-=e.height):(e=t.update(x,v),k-=e.width),w.push({horizontal:a,minSize:e,box:t})}function o(t){var a=e.findNextWhere(w,function(e){return e.box===t});if(a)if(t.isHorizontal()){var i={left:C,right:M,top:0,bottom:0};t.update(t.options.fullWidth?p:k,m/2,i)}else t.update(a.minSize.width,S)}function r(t){var a=e.findNextWhere(w,function(e){return e.box===t}),i={left:0,right:0,top:D,bottom:I};a&&t.update(a.minSize.width,S,i)}function l(t){t.isHorizontal()?(t.left=t.options.fullWidth?s:C,t.right=t.options.fullWidth?a-s:C+k,t.top=F,t.bottom=F+t.height,F=t.bottom):(t.left=P,t.right=P+t.width,t.top=D,t.bottom=D+S,P=t.right)}if(t){var s=0,d=0,u=e.where(t.boxes,function(t){return\"left\"===t.options.position}),c=e.where(t.boxes,function(t){return\"right\"===t.options.position}),h=e.where(t.boxes,function(t){return\"top\"===t.options.position}),f=e.where(t.boxes,function(t){return\"bottom\"===t.options.position}),g=e.where(t.boxes,function(t){return\"chartArea\"===t.options.position});h.sort(function(t,e){return(e.options.fullWidth?1:0)-(t.options.fullWidth?1:0)}),f.sort(function(t,e){return(t.options.fullWidth?1:0)-(e.options.fullWidth?1:0)});var p=a-2*s,m=i-2*d,b=p/2,v=m/2,x=(a-b)/(u.length+c.length),y=(i-v)/(h.length+f.length),k=p,S=m,w=[];e.each(u.concat(c,h,f),n);var C=s,M=s,D=d,I=d;e.each(u.concat(c),o),e.each(u,function(t){C+=t.width}),e.each(c,function(t){M+=t.width}),e.each(h.concat(f),o),e.each(h,function(t){D+=t.height}),e.each(f,function(t){I+=t.height}),e.each(u.concat(c),r),C=s,M=s,D=d,I=d,e.each(u,function(t){C+=t.width}),e.each(c,function(t){M+=t.width}),e.each(h,function(t){D+=t.height}),e.each(f,function(t){I+=t.height});var A=i-D-I,T=a-C-M;(T!==k||A!==S)&&(e.each(u,function(t){t.height=A}),e.each(c,function(t){t.height=A}),e.each(h,function(t){t.options.fullWidth||(t.width=T)}),e.each(f,function(t){t.options.fullWidth||(t.width=T)}),S=A,k=T);var P=s,F=d;e.each(u.concat(h),l),P+=k,F+=S,e.each(c,l),e.each(f,l),t.chartArea={left:C,top:D,right:C+k,bottom:D+S},e.each(g,function(e){e.left=t.chartArea.left,e.top=t.chartArea.top,e.right=t.chartArea.right,e.bottom=t.chartArea.bottom,e.update(k,S)})}}}}},{}],29:[function(t,e,a){\"use strict\";e.exports=function(t){var e=t.helpers,a=e.noop;t.defaults.global.legend={display:!0,position:\"top\",fullWidth:!0,reverse:!1,onClick:function(t,e){var a=e.datasetIndex,i=this.chart,n=i.getDatasetMeta(a);n.hidden=null===n.hidden?!i.data.datasets[a].hidden:null,i.update()},onHover:null,labels:{boxWidth:40,padding:10,generateLabels:function(t){var a=t.data;return e.isArray(a.datasets)?a.datasets.map(function(a,i){return{text:a.label,fillStyle:e.isArray(a.backgroundColor)?a.backgroundColor[0]:a.backgroundColor,hidden:!t.isDatasetVisible(i),lineCap:a.borderCapStyle,lineDash:a.borderDash,lineDashOffset:a.borderDashOffset,lineJoin:a.borderJoinStyle,lineWidth:a.borderWidth,strokeStyle:a.borderColor,pointStyle:a.pointStyle,datasetIndex:i}},this):[]}}},t.Legend=t.Element.extend({initialize:function(t){e.extend(this,t),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:a,update:function(t,e,a){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=a,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:a,beforeSetDimensions:a,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:a,beforeBuildLabels:a,buildLabels:function(){var t=this;t.legendItems=t.options.labels.generateLabels.call(t,t.chart),t.options.reverse&&t.legendItems.reverse()},afterBuildLabels:a,beforeFit:a,fit:function(){var a=this,i=a.options,n=i.labels,o=i.display,r=a.ctx,l=t.defaults.global,s=e.getValueOrDefault,d=s(n.fontSize,l.defaultFontSize),u=s(n.fontStyle,l.defaultFontStyle),c=s(n.fontFamily,l.defaultFontFamily),h=e.fontString(d,u,c),f=a.legendHitBoxes=[],g=a.minSize,p=a.isHorizontal();if(p?(g.width=a.maxWidth,g.height=o?10:0):(g.width=o?10:0,g.height=a.maxHeight),o)if(r.font=h,p){var m=a.lineWidths=[0],b=a.legendItems.length?d+n.padding:0;r.textAlign=\"left\",r.textBaseline=\"top\",e.each(a.legendItems,function(t,e){var i=n.usePointStyle?d*Math.sqrt(2):n.boxWidth,o=i+d/2+r.measureText(t.text).width;m[m.length-1]+o+n.padding>=a.width&&(b+=d+n.padding,m[m.length]=a.left),f[e]={left:0,top:0,width:o,height:d},m[m.length-1]+=o+n.padding}),g.height+=b}else{var v=n.padding,x=a.columnWidths=[],y=n.padding,k=0,S=0,w=d+v;e.each(a.legendItems,function(t,e){var a=n.usePointStyle?2*n.boxWidth:n.boxWidth,i=a+d/2+r.measureText(t.text).width;S+w>g.height&&(y+=k+n.padding,x.push(k),k=0,S=0),k=Math.max(k,i),S+=w,f[e]={left:0,top:0,width:i,height:d}}),y+=k,x.push(k),g.width+=y}a.width=g.width,a.height=g.height},afterFit:a,isHorizontal:function(){return\"top\"===this.options.position||\"bottom\"===this.options.position},draw:function(){var a=this,i=a.options,n=i.labels,o=t.defaults.global,r=o.elements.line,l=a.width,s=a.lineWidths;if(i.display){var d,u=a.ctx,c=e.getValueOrDefault,h=c(n.fontColor,o.defaultFontColor),f=c(n.fontSize,o.defaultFontSize),g=c(n.fontStyle,o.defaultFontStyle),p=c(n.fontFamily,o.defaultFontFamily),m=e.fontString(f,g,p);u.textAlign=\"left\",u.textBaseline=\"top\",u.lineWidth=.5,u.strokeStyle=h,u.fillStyle=h,u.font=m;var b=n.boxWidth,v=a.legendHitBoxes,x=function(e,a,n){if(!(isNaN(b)||0>=b)){u.save(),u.fillStyle=c(n.fillStyle,o.defaultColor),u.lineCap=c(n.lineCap,r.borderCapStyle),u.lineDashOffset=c(n.lineDashOffset,r.borderDashOffset),u.lineJoin=c(n.lineJoin,r.borderJoinStyle),u.lineWidth=c(n.lineWidth,r.borderWidth),u.strokeStyle=c(n.strokeStyle,o.defaultColor);var l=0===c(n.lineWidth,r.borderWidth);if(u.setLineDash&&u.setLineDash(c(n.lineDash,r.borderDash)),i.labels&&i.labels.usePointStyle){var s=f*Math.SQRT2/2,d=s/Math.SQRT2,h=e+d,g=a+d;t.canvasHelpers.drawPoint(u,n.pointStyle,s,h,g)}else l||u.strokeRect(e,a,b,f),u.fillRect(e,a,b,f);u.restore()}},y=function(t,e,a,i){u.fillText(a.text,b+f/2+t,e),a.hidden&&(u.beginPath(),u.lineWidth=2,u.moveTo(b+f/2+t,e+f/2),u.lineTo(b+f/2+t+i,e+f/2),u.stroke())},k=a.isHorizontal();d=k?{x:a.left+(l-s[0])/2,y:a.top+n.padding,line:0}:{x:a.left+n.padding,y:a.top+n.padding,line:0};var S=f+n.padding;e.each(a.legendItems,function(t,e){var i=u.measureText(t.text).width,o=n.usePointStyle?f+f/2+i:b+f/2+i,r=d.x,c=d.y;k?r+o>=l&&(c=d.y+=S,d.line++,r=d.x=a.left+(l-s[d.line])/2):c+S>a.bottom&&(r=d.x=r+a.columnWidths[d.line]+n.padding,c=d.y=a.top,d.line++),x(r,c,t),v[e].left=r,v[e].top=c,y(r,c,t,i),k?d.x+=o+n.padding:d.y+=S})}},handleEvent:function(t){var a=this,i=a.options,n=\"mouseup\"===t.type?\"click\":t.type;if(\"mousemove\"===n){if(!i.onHover)return}else{if(\"click\"!==n)return;if(!i.onClick)return}var o=e.getRelativePosition(t,a.chart.chart),r=o.x,l=o.y;if(r>=a.left&&r<=a.right&&l>=a.top&&l<=a.bottom)for(var s=a.legendHitBoxes,d=0;d<s.length;++d){var u=s[d];if(r>=u.left&&r<=u.left+u.width&&l>=u.top&&l<=u.top+u.height){if(\"click\"===n){i.onClick.call(a,t,a.legendItems[d]);break}if(\"mousemove\"===n){i.onHover.call(a,t,a.legendItems[d]);break}}}}}),t.plugins.register({beforeInit:function(e){var a=e.options,i=a.legend;i&&(e.legend=new t.Legend({ctx:e.chart.ctx,options:i,chart:e}),t.layoutService.addBox(e,e.legend))}})}},{}],30:[function(t,e,a){\"use strict\";e.exports=function(t){var e=t.helpers.noop;t.plugins={_plugins:[],register:function(t){var e=this._plugins;[].concat(t).forEach(function(t){-1===e.indexOf(t)&&e.push(t)})},unregister:function(t){var e=this._plugins;[].concat(t).forEach(function(t){var a=e.indexOf(t);-1!==a&&e.splice(a,1)})},clear:function(){this._plugins=[]},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(t,e){var a,i,n=this._plugins,o=n.length;for(a=0;o>a;++a)if(i=n[a],\"function\"==typeof i[t]&&i[t].apply(i,e||[])===!1)return!1;return!0}},t.PluginBase=t.Element.extend({beforeInit:e,afterInit:e,beforeUpdate:e,afterUpdate:e,beforeDraw:e,afterDraw:e,destroy:e}),t.pluginService=t.plugins}},{}],31:[function(t,e,a){\"use strict\";e.exports=function(t){var e=t.helpers;t.defaults.scale={display:!0,position:\"left\",gridLines:{display:!0,color:\"rgba(0, 0, 0, 0.1)\",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:\"rgba(0,0,0,0.25)\",offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{labelString:\"\",display:!1},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:10,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:function(t){return e.isArray(t)?t:\"\"+t}}},t.Scale=t.Element.extend({beforeUpdate:function(){e.callCallback(this.options.beforeUpdate,[this])},update:function(t,a,i){var n=this;return n.beforeUpdate(),n.maxWidth=t,n.maxHeight=a,n.margins=e.extend({left:0,right:0,top:0,bottom:0},i),n.beforeSetDimensions(),n.setDimensions(),n.afterSetDimensions(),n.beforeDataLimits(),n.determineDataLimits(),n.afterDataLimits(),n.beforeBuildTicks(),n.buildTicks(),n.afterBuildTicks(),n.beforeTickToLabelConversion(),n.convertTicksToLabels(),n.afterTickToLabelConversion(),n.beforeCalculateTickRotation(),n.calculateTickRotation(),n.afterCalculateTickRotation(),n.beforeFit(),n.fit(),n.afterFit(),n.afterUpdate(),n.minSize},afterUpdate:function(){e.callCallback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){e.callCallback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0},afterSetDimensions:function(){e.callCallback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){e.callCallback(this.options.beforeDataLimits,[this])},determineDataLimits:e.noop,afterDataLimits:function(){e.callCallback(this.options.afterDataLimits,[this]);\n},beforeBuildTicks:function(){e.callCallback(this.options.beforeBuildTicks,[this])},buildTicks:e.noop,afterBuildTicks:function(){e.callCallback(this.options.afterBuildTicks,[this])},beforeTickToLabelConversion:function(){e.callCallback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var t=this;t.ticks=t.ticks.map(function(e,a,i){return t.options.ticks.userCallback?t.options.ticks.userCallback(e,a,i):t.options.ticks.callback(e,a,i)},t)},afterTickToLabelConversion:function(){e.callCallback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){e.callCallback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var a=this,i=a.ctx,n=t.defaults.global,o=a.options.ticks,r=e.getValueOrDefault(o.fontSize,n.defaultFontSize),l=e.getValueOrDefault(o.fontStyle,n.defaultFontStyle),s=e.getValueOrDefault(o.fontFamily,n.defaultFontFamily),d=e.fontString(r,l,s);i.font=d;var u,c=i.measureText(a.ticks[0]).width,h=i.measureText(a.ticks[a.ticks.length-1]).width;if(a.labelRotation=o.minRotation||0,a.paddingRight=0,a.paddingLeft=0,a.options.display&&a.isHorizontal()){a.paddingRight=h/2+3,a.paddingLeft=c/2+3,a.longestTextCache||(a.longestTextCache={});for(var f,g,p=e.longestText(i,d,a.ticks,a.longestTextCache),m=p,b=a.getPixelForTick(1)-a.getPixelForTick(0)-6;m>b&&a.labelRotation<o.maxRotation;){if(f=Math.cos(e.toRadians(a.labelRotation)),g=Math.sin(e.toRadians(a.labelRotation)),u=f*c,u+r/2>a.yLabelWidth&&(a.paddingLeft=u+r/2),a.paddingRight=r/2,g*p>a.maxHeight){a.labelRotation--;break}a.labelRotation++,m=f*p}}a.margins&&(a.paddingLeft=Math.max(a.paddingLeft-a.margins.left,0),a.paddingRight=Math.max(a.paddingRight-a.margins.right,0))},afterCalculateTickRotation:function(){e.callCallback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){e.callCallback(this.options.beforeFit,[this])},fit:function(){var a=this,i=a.minSize={width:0,height:0},n=a.options,o=t.defaults.global,r=n.ticks,l=n.scaleLabel,s=n.gridLines,d=n.display,u=a.isHorizontal(),c=e.getValueOrDefault(r.fontSize,o.defaultFontSize),h=e.getValueOrDefault(r.fontStyle,o.defaultFontStyle),f=e.getValueOrDefault(r.fontFamily,o.defaultFontFamily),g=e.fontString(c,h,f),p=e.getValueOrDefault(l.fontSize,o.defaultFontSize),m=n.gridLines.tickMarkLength;if(u?i.width=a.isFullWidth()?a.maxWidth-a.margins.left-a.margins.right:a.maxWidth:i.width=d&&s.drawTicks?m:0,u?i.height=d&&s.drawTicks?m:0:i.height=a.maxHeight,l.display&&d&&(u?i.height+=1.5*p:i.width+=1.5*p),r.display&&d){a.longestTextCache||(a.longestTextCache={});var b=e.longestText(a.ctx,g,a.ticks,a.longestTextCache),v=e.numberOfLabelLines(a.ticks),x=.5*c;if(u){a.longestLabelWidth=b;var y=Math.sin(e.toRadians(a.labelRotation))*a.longestLabelWidth+c*v+x*v;i.height=Math.min(a.maxHeight,i.height+y),a.ctx.font=g;var k=a.ctx.measureText(a.ticks[0]).width,S=a.ctx.measureText(a.ticks[a.ticks.length-1]).width,w=Math.cos(e.toRadians(a.labelRotation)),C=Math.sin(e.toRadians(a.labelRotation));a.paddingLeft=0!==a.labelRotation?w*k+3:k/2+3,a.paddingRight=0!==a.labelRotation?C*(c/2)+3:S/2+3}else{var M=a.maxWidth-i.width,D=r.mirror;D?b=0:b+=a.options.ticks.padding,M>b?i.width+=b:i.width=a.maxWidth,a.paddingTop=c/2,a.paddingBottom=c/2}}a.margins&&(a.paddingLeft=Math.max(a.paddingLeft-a.margins.left,0),a.paddingTop=Math.max(a.paddingTop-a.margins.top,0),a.paddingRight=Math.max(a.paddingRight-a.margins.right,0),a.paddingBottom=Math.max(a.paddingBottom-a.margins.bottom,0)),a.width=i.width,a.height=i.height},afterFit:function(){e.callCallback(this.options.afterFit,[this])},isHorizontal:function(){return\"top\"===this.options.position||\"bottom\"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){return null===t||\"undefined\"==typeof t?NaN:\"number\"==typeof t&&isNaN(t)?NaN:\"object\"==typeof t?t instanceof Date||t.isValid?t:this.getRightValue(this.isHorizontal()?t.x:t.y):t},getLabelForIndex:e.noop,getPixelForValue:e.noop,getValueForPixel:e.noop,getPixelForTick:function(t,e){var a=this;if(a.isHorizontal()){var i=a.width-(a.paddingLeft+a.paddingRight),n=i/Math.max(a.ticks.length-(a.options.gridLines.offsetGridLines?0:1),1),o=n*t+a.paddingLeft;e&&(o+=n/2);var r=a.left+Math.round(o);return r+=a.isFullWidth()?a.margins.left:0}var l=a.height-(a.paddingTop+a.paddingBottom);return a.top+t*(l/(a.ticks.length-1))},getPixelForDecimal:function(t){var e=this;if(e.isHorizontal()){var a=e.width-(e.paddingLeft+e.paddingRight),i=a*t+e.paddingLeft,n=e.left+Math.round(i);return n+=e.isFullWidth()?e.margins.left:0}return e.top+t*e.height},getBasePixel:function(){var t=this,e=t.min,a=t.max;return t.getPixelForValue(t.beginAtZero?0:0>e&&0>a?a:e>0&&a>0?e:0)},draw:function(a){var i=this,n=i.options;if(n.display){var o,r,l=i.ctx,s=t.defaults.global,d=n.ticks,u=n.gridLines,c=n.scaleLabel,h=0!==i.labelRotation,f=d.autoSkip,g=i.isHorizontal();d.maxTicksLimit&&(r=d.maxTicksLimit);var p=e.getValueOrDefault(d.fontColor,s.defaultFontColor),m=e.getValueOrDefault(d.fontSize,s.defaultFontSize),b=e.getValueOrDefault(d.fontStyle,s.defaultFontStyle),v=e.getValueOrDefault(d.fontFamily,s.defaultFontFamily),x=e.fontString(m,b,v),y=u.tickMarkLength,k=e.getValueOrDefault(u.borderDash,s.borderDash),S=e.getValueOrDefault(u.borderDashOffset,s.borderDashOffset),w=e.getValueOrDefault(c.fontColor,s.defaultFontColor),C=e.getValueOrDefault(c.fontSize,s.defaultFontSize),M=e.getValueOrDefault(c.fontStyle,s.defaultFontStyle),D=e.getValueOrDefault(c.fontFamily,s.defaultFontFamily),I=e.fontString(C,M,D),A=e.toRadians(i.labelRotation),T=Math.cos(A),P=i.longestLabelWidth*T;l.fillStyle=p;var F=[];if(g){if(o=!1,h&&(P/=2),(P+d.autoSkipPadding)*i.ticks.length>i.width-(i.paddingLeft+i.paddingRight)&&(o=1+Math.floor((P+d.autoSkipPadding)*i.ticks.length/(i.width-(i.paddingLeft+i.paddingRight)))),r&&i.ticks.length>r)for(;!o||i.ticks.length/(o||1)>r;)o||(o=1),o+=1;f||(o=!1)}var R=\"right\"===n.position?i.left:i.right-y,_=\"right\"===n.position?i.left+y:i.right,V=\"bottom\"===n.position?i.top:i.bottom-y,L=\"bottom\"===n.position?i.top+y:i.bottom;if(e.each(i.ticks,function(t,r){if(void 0!==t&&null!==t){var l=i.ticks.length===r+1,s=o>1&&r%o>0||r%o===0&&r+o>=i.ticks.length;if((!s||l)&&void 0!==t&&null!==t){var c,f;r===(\"undefined\"!=typeof i.zeroLineIndex?i.zeroLineIndex:0)?(c=u.zeroLineWidth,f=u.zeroLineColor):(c=e.getValueAtIndexOrDefault(u.lineWidth,r),f=e.getValueAtIndexOrDefault(u.color,r));var p,m,b,v,x,w,C,M,D,I,T=\"middle\",P=\"middle\";if(g){h||(P=\"top\"===n.position?\"bottom\":\"top\"),T=h?\"right\":\"center\";var O=i.getPixelForTick(r)+e.aliasPixel(c);D=i.getPixelForTick(r,u.offsetGridLines)+d.labelOffset,I=h?i.top+12:\"top\"===n.position?i.bottom-y:i.top+y,p=b=x=C=O,m=V,v=L,w=a.top,M=a.bottom}else{\"left\"===n.position?d.mirror?(D=i.right+d.padding,T=\"left\"):(D=i.right-d.padding,T=\"right\"):d.mirror?(D=i.left-d.padding,T=\"right\"):(D=i.left+d.padding,T=\"left\");var B=i.getPixelForTick(r);B+=e.aliasPixel(c),I=i.getPixelForTick(r,u.offsetGridLines),p=R,b=_,x=a.left,C=a.right,m=v=w=M=B}F.push({tx1:p,ty1:m,tx2:b,ty2:v,x1:x,y1:w,x2:C,y2:M,labelX:D,labelY:I,glWidth:c,glColor:f,glBorderDash:k,glBorderDashOffset:S,rotation:-1*A,label:t,textBaseline:P,textAlign:T})}}}),e.each(F,function(t){if(u.display&&(l.save(),l.lineWidth=t.glWidth,l.strokeStyle=t.glColor,l.setLineDash&&(l.setLineDash(t.glBorderDash),l.lineDashOffset=t.glBorderDashOffset),l.beginPath(),u.drawTicks&&(l.moveTo(t.tx1,t.ty1),l.lineTo(t.tx2,t.ty2)),u.drawOnChartArea&&(l.moveTo(t.x1,t.y1),l.lineTo(t.x2,t.y2)),l.stroke(),l.restore()),d.display){l.save(),l.translate(t.labelX,t.labelY),l.rotate(t.rotation),l.font=x,l.textBaseline=t.textBaseline,l.textAlign=t.textAlign;var a=t.label;if(e.isArray(a))for(var i=0,n=-(a.length-1)*m*.75;i<a.length;++i)l.fillText(\"\"+a[i],0,n),n+=1.5*m;else l.fillText(a,0,0);l.restore()}}),c.display){var O,B,W=0;if(g)O=i.left+(i.right-i.left)/2,B=\"bottom\"===n.position?i.bottom-C/2:i.top+C/2;else{var z=\"left\"===n.position;O=z?i.left+C/2:i.right-C/2,B=i.top+(i.bottom-i.top)/2,W=z?-.5*Math.PI:.5*Math.PI}l.save(),l.translate(O,B),l.rotate(W),l.textAlign=\"center\",l.textBaseline=\"middle\",l.fillStyle=w,l.font=I,l.fillText(c.labelString,0,0),l.restore()}if(u.drawBorder){l.lineWidth=e.getValueAtIndexOrDefault(u.lineWidth,0),l.strokeStyle=e.getValueAtIndexOrDefault(u.color,0);var N=i.left,H=i.right,E=i.top,U=i.bottom,q=e.aliasPixel(l.lineWidth);g?(E=U=\"top\"===n.position?i.bottom:i.top,E+=q,U+=q):(N=H=\"left\"===n.position?i.right:i.left,N+=q,H+=q),l.beginPath(),l.moveTo(N,E),l.lineTo(H,U),l.stroke()}}}})}},{}],32:[function(t,e,a){\"use strict\";e.exports=function(t){var e=t.helpers;t.scaleService={constructors:{},defaults:{},registerScaleType:function(t,a,i){this.constructors[t]=a,this.defaults[t]=e.clone(i)},getScaleConstructor:function(t){return this.constructors.hasOwnProperty(t)?this.constructors[t]:void 0},getScaleDefaults:function(a){return this.defaults.hasOwnProperty(a)?e.scaleMerge(t.defaults.scale,this.defaults[a]):{}},updateScaleDefaults:function(t,a){var i=this.defaults;i.hasOwnProperty(t)&&(i[t]=e.extend(i[t],a))},addScalesToLayout:function(a){e.each(a.scales,function(e){t.layoutService.addBox(a,e)})}}}},{}],33:[function(t,e,a){\"use strict\";e.exports=function(t){var e=t.helpers;t.defaults.global.title={display:!1,position:\"top\",fullWidth:!0,fontStyle:\"bold\",padding:10,text:\"\"};var a=e.noop;t.Title=t.Element.extend({initialize:function(a){var i=this;e.extend(i,a),i.options=e.configMerge(t.defaults.global.title,a.options),i.legendHitBoxes=[]},beforeUpdate:function(){var a=this.chart.options;a&&a.title&&(this.options=e.configMerge(t.defaults.global.title,a.title))},update:function(t,e,a){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=a,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:a,beforeSetDimensions:a,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:a,beforeBuildLabels:a,buildLabels:a,afterBuildLabels:a,beforeFit:a,fit:function(){var a=this,i=e.getValueOrDefault,n=a.options,o=t.defaults.global,r=n.display,l=i(n.fontSize,o.defaultFontSize),s=a.minSize;a.isHorizontal()?(s.width=a.maxWidth,s.height=r?l+2*n.padding:0):(s.width=r?l+2*n.padding:0,s.height=a.maxHeight),a.width=s.width,a.height=s.height},afterFit:a,isHorizontal:function(){var t=this.options.position;return\"top\"===t||\"bottom\"===t},draw:function(){var a=this,i=a.ctx,n=e.getValueOrDefault,o=a.options,r=t.defaults.global;if(o.display){var l,s,d=n(o.fontSize,r.defaultFontSize),u=n(o.fontStyle,r.defaultFontStyle),c=n(o.fontFamily,r.defaultFontFamily),h=e.fontString(d,u,c),f=0,g=a.top,p=a.left,m=a.bottom,b=a.right;i.fillStyle=n(o.fontColor,r.defaultFontColor),i.font=h,a.isHorizontal()?(l=p+(b-p)/2,s=g+(m-g)/2):(l=\"left\"===o.position?p+d/2:b-d/2,s=g+(m-g)/2,f=Math.PI*(\"left\"===o.position?-.5:.5)),i.save(),i.translate(l,s),i.rotate(f),i.textAlign=\"center\",i.textBaseline=\"middle\",i.fillText(o.text,0,0),i.restore()}}}),t.plugins.register({beforeInit:function(e){var a=e.options,i=a.title;i&&(e.titleBlock=new t.Title({ctx:e.chart.ctx,options:i,chart:e}),t.layoutService.addBox(e,e.titleBlock))}})}},{}],34:[function(t,e,a){\"use strict\";e.exports=function(t){function e(t,e){return e&&(n.isArray(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function a(t){if(!t.length)return!1;var e,a,i=[],n=[];for(e=0,a=t.length;a>e;++e){var o=t[e];if(o&&o.hasValue()){var r=o.tooltipPosition();i.push(r.x),n.push(r.y)}}var l=0,s=0;for(e=0;e<i.length;++e)i[e]&&(l+=i[e],s+=n[e]);return{x:Math.round(l/i.length),y:Math.round(s/i.length)}}function i(t){var e=t._xScale,a=t._yScale||t._scale,i=t._index,n=t._datasetIndex;return{xLabel:e?e.getLabelForIndex(i,n):\"\",yLabel:a?a.getLabelForIndex(i,n):\"\",index:i,datasetIndex:n}}var n=t.helpers;t.defaults.global.tooltips={enabled:!0,custom:null,mode:\"single\",backgroundColor:\"rgba(0,0,0,0.8)\",titleFontStyle:\"bold\",titleSpacing:2,titleMarginBottom:6,titleFontColor:\"#fff\",titleAlign:\"left\",bodySpacing:2,bodyFontColor:\"#fff\",bodyAlign:\"left\",footerFontStyle:\"bold\",footerSpacing:2,footerMarginTop:6,footerFontColor:\"#fff\",footerAlign:\"left\",yPadding:6,xPadding:6,yAlign:\"center\",xAlign:\"center\",caretSize:5,cornerRadius:6,multiKeyBackground:\"#fff\",callbacks:{beforeTitle:n.noop,title:function(t,e){var a=\"\",i=e.labels,n=i?i.length:0;if(t.length>0){var o=t[0];o.xLabel?a=o.xLabel:n>0&&o.index<n&&(a=i[o.index])}return a},afterTitle:n.noop,beforeBody:n.noop,beforeLabel:n.noop,label:function(t,e){var a=e.datasets[t.datasetIndex].label||\"\";return a+\": \"+t.yLabel},labelColor:function(t,e){var a=e.getDatasetMeta(t.datasetIndex),i=a.data[t.index],n=i._view;return{borderColor:n.borderColor,backgroundColor:n.backgroundColor}},afterLabel:n.noop,afterBody:n.noop,beforeFooter:n.noop,footer:n.noop,afterFooter:n.noop}},t.Tooltip=t.Element.extend({initialize:function(){var e=this,a=t.defaults.global,i=e._options,o=n.getValueOrDefault;n.extend(e,{_model:{xPadding:i.xPadding,yPadding:i.yPadding,xAlign:i.xAlign,yAlign:i.yAlign,bodyFontColor:i.bodyFontColor,_bodyFontFamily:o(i.bodyFontFamily,a.defaultFontFamily),_bodyFontStyle:o(i.bodyFontStyle,a.defaultFontStyle),_bodyAlign:i.bodyAlign,bodyFontSize:o(i.bodyFontSize,a.defaultFontSize),bodySpacing:i.bodySpacing,titleFontColor:i.titleFontColor,_titleFontFamily:o(i.titleFontFamily,a.defaultFontFamily),_titleFontStyle:o(i.titleFontStyle,a.defaultFontStyle),titleFontSize:o(i.titleFontSize,a.defaultFontSize),_titleAlign:i.titleAlign,titleSpacing:i.titleSpacing,titleMarginBottom:i.titleMarginBottom,footerFontColor:i.footerFontColor,_footerFontFamily:o(i.footerFontFamily,a.defaultFontFamily),_footerFontStyle:o(i.footerFontStyle,a.defaultFontStyle),footerFontSize:o(i.footerFontSize,a.defaultFontSize),_footerAlign:i.footerAlign,footerSpacing:i.footerSpacing,footerMarginTop:i.footerMarginTop,caretSize:i.caretSize,cornerRadius:i.cornerRadius,backgroundColor:i.backgroundColor,opacity:0,legendColorBackground:i.multiKeyBackground}})},getTitle:function(){var t=this,a=t._options,i=a.callbacks,n=i.beforeTitle.apply(t,arguments),o=i.title.apply(t,arguments),r=i.afterTitle.apply(t,arguments),l=[];return l=e(l,n),l=e(l,o),l=e(l,r)},getBeforeBody:function(){var t=this._options.callbacks.beforeBody.apply(this,arguments);return n.isArray(t)?t:void 0!==t?[t]:[]},getBody:function(t,a){var i=this,o=i._options.callbacks,r=[];return n.each(t,function(t){var n={before:[],lines:[],after:[]};e(n.before,o.beforeLabel.call(i,t,a)),e(n.lines,o.label.call(i,t,a)),e(n.after,o.afterLabel.call(i,t,a)),r.push(n)}),r},getAfterBody:function(){var t=this._options.callbacks.afterBody.apply(this,arguments);return n.isArray(t)?t:void 0!==t?[t]:[]},getFooter:function(){var t=this,a=t._options.callbacks,i=a.beforeFooter.apply(t,arguments),n=a.footer.apply(t,arguments),o=a.afterFooter.apply(t,arguments),r=[];return r=e(r,i),r=e(r,n),r=e(r,o)},update:function(t){var e,o,r=this,l=r._options,s=r._model,d=r._active,u=r._data,c=r._chartInstance;if(d.length){s.opacity=1;var h=[],f=a(d),g=[];for(e=0,o=d.length;o>e;++e)g.push(i(d[e]));l.itemSort&&(g=g.sort(function(t,e){return l.itemSort(t,e,u)})),d.length>1&&n.each(g,function(t){h.push(l.callbacks.labelColor.call(r,t,c))}),n.extend(s,{title:r.getTitle(g,u),beforeBody:r.getBeforeBody(g,u),body:r.getBody(g,u),afterBody:r.getAfterBody(g,u),footer:r.getFooter(g,u),x:Math.round(f.x),y:Math.round(f.y),caretPadding:n.getValueOrDefault(f.padding,2),labelColors:h});var p=r.getTooltipSize(s);r.determineAlignment(p),n.extend(s,r.getBackgroundPoint(s,p))}else r._model.opacity=0;return t&&l.custom&&l.custom.call(r,s),r},getTooltipSize:function(t){var e=this._chart.ctx,a={height:2*t.yPadding,width:0},i=t.body,o=i.reduce(function(t,e){return t+e.before.length+e.lines.length+e.after.length},0);o+=t.beforeBody.length+t.afterBody.length;var r=t.title.length,l=t.footer.length,s=t.titleFontSize,d=t.bodyFontSize,u=t.footerFontSize;a.height+=r*s,a.height+=(r-1)*t.titleSpacing,a.height+=r?t.titleMarginBottom:0,a.height+=o*d,a.height+=o?(o-1)*t.bodySpacing:0,a.height+=l?t.footerMarginTop:0,a.height+=l*u,a.height+=l?(l-1)*t.footerSpacing:0;var c=0,h=function(t){a.width=Math.max(a.width,e.measureText(t).width+c)};return e.font=n.fontString(s,t._titleFontStyle,t._titleFontFamily),n.each(t.title,h),e.font=n.fontString(d,t._bodyFontStyle,t._bodyFontFamily),n.each(t.beforeBody.concat(t.afterBody),h),c=i.length>1?d+2:0,n.each(i,function(t){n.each(t.before,h),n.each(t.lines,h),n.each(t.after,h)}),c=0,e.font=n.fontString(u,t._footerFontStyle,t._footerFontFamily),n.each(t.footer,h),a.width+=2*t.xPadding,a},determineAlignment:function(t){var e=this,a=e._model,i=e._chart,n=e._chartInstance.chartArea;a.y<t.height?a.yAlign=\"top\":a.y>i.height-t.height&&(a.yAlign=\"bottom\");var o,r,l,s,d,u=(n.left+n.right)/2,c=(n.top+n.bottom)/2;\"center\"===a.yAlign?(o=function(t){return u>=t},r=function(t){return t>u}):(o=function(e){return e<=t.width/2},r=function(e){return e>=i.width-t.width/2}),l=function(e){return e+t.width>i.width},s=function(e){return e-t.width<0},d=function(t){return c>=t?\"top\":\"bottom\"},o(a.x)?(a.xAlign=\"left\",l(a.x)&&(a.xAlign=\"center\",a.yAlign=d(a.y))):r(a.x)&&(a.xAlign=\"right\",s(a.x)&&(a.xAlign=\"center\",a.yAlign=d(a.y)))},getBackgroundPoint:function(t,e){var a={x:t.x,y:t.y},i=t.caretSize,n=t.caretPadding,o=t.cornerRadius,r=t.xAlign,l=t.yAlign,s=i+n,d=o+n;return\"right\"===r?a.x-=e.width:\"center\"===r&&(a.x-=e.width/2),\"top\"===l?a.y+=s:\"bottom\"===l?a.y-=e.height+s:a.y-=e.height/2,\"center\"===l?\"left\"===r?a.x+=s:\"right\"===r&&(a.x-=s):\"left\"===r?a.x-=d:\"right\"===r&&(a.x+=d),a},drawCaret:function(t,e,a){var i,o,r,l,s,d,u=this._view,c=this._chart.ctx,h=u.caretSize,f=u.cornerRadius,g=u.xAlign,p=u.yAlign,m=t.x,b=t.y,v=e.width,x=e.height;\"center\"===p?(\"left\"===g?(i=m,o=i-h,r=i):(i=m+v,o=i+h,r=i),s=b+x/2,l=s-h,d=s+h):(\"left\"===g?(i=m+f,o=i+h,r=o+h):\"right\"===g?(i=m+v-f,o=i-h,r=o-h):(o=m+v/2,i=o-h,r=o+h),\"top\"===p?(l=b,s=l-h,d=l):(l=b+x,s=l+h,d=l));var y=n.color(u.backgroundColor);c.fillStyle=y.alpha(a*y.alpha()).rgbString(),c.beginPath(),c.moveTo(i,l),c.lineTo(o,s),c.lineTo(r,d),c.closePath(),c.fill()},drawTitle:function(t,e,a,i){var o=e.title;if(o.length){a.textAlign=e._titleAlign,a.textBaseline=\"top\";var r=e.titleFontSize,l=e.titleSpacing,s=n.color(e.titleFontColor);a.fillStyle=s.alpha(i*s.alpha()).rgbString(),a.font=n.fontString(r,e._titleFontStyle,e._titleFontFamily);var d,u;for(d=0,u=o.length;u>d;++d)a.fillText(o[d],t.x,t.y),t.y+=r+l,d+1===o.length&&(t.y+=e.titleMarginBottom-l)}},drawBody:function(t,e,a,i){var o=e.bodyFontSize,r=e.bodySpacing,l=e.body;a.textAlign=e._bodyAlign,a.textBaseline=\"top\";var s=n.color(e.bodyFontColor),d=s.alpha(i*s.alpha()).rgbString();a.fillStyle=d,a.font=n.fontString(o,e._bodyFontStyle,e._bodyFontFamily);var u=0,c=function(e){a.fillText(e,t.x+u,t.y),t.y+=o+r};n.each(e.beforeBody,c);var h=l.length>1;u=h?o+2:0,n.each(l,function(r,l){n.each(r.before,c),n.each(r.lines,function(r){h&&(a.fillStyle=n.color(e.legendColorBackground).alpha(i).rgbaString(),a.fillRect(t.x,t.y,o,o),a.strokeStyle=n.color(e.labelColors[l].borderColor).alpha(i).rgbaString(),a.strokeRect(t.x,t.y,o,o),a.fillStyle=n.color(e.labelColors[l].backgroundColor).alpha(i).rgbaString(),a.fillRect(t.x+1,t.y+1,o-2,o-2),a.fillStyle=d),c(r)}),n.each(r.after,c)}),u=0,n.each(e.afterBody,c),t.y-=r},drawFooter:function(t,e,a,i){var o=e.footer;if(o.length){t.y+=e.footerMarginTop,a.textAlign=e._footerAlign,a.textBaseline=\"top\";var r=n.color(e.footerFontColor);a.fillStyle=r.alpha(i*r.alpha()).rgbString(),a.font=n.fontString(e.footerFontSize,e._footerFontStyle,e._footerFontFamily),n.each(o,function(i){a.fillText(i,t.x,t.y),t.y+=e.footerFontSize+e.footerSpacing})}},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var a=this.getTooltipSize(e),i={x:e.x,y:e.y},o=Math.abs(e.opacity<.001)?0:e.opacity;if(this._options.enabled){var r=n.color(e.backgroundColor);t.fillStyle=r.alpha(o*r.alpha()).rgbString(),n.drawRoundedRectangle(t,i.x,i.y,a.width,a.height,e.cornerRadius),t.fill(),this.drawCaret(i,a,o),i.x+=e.xPadding,i.y+=e.yPadding,this.drawTitle(i,e,t,o),this.drawBody(i,e,t,o),this.drawFooter(i,e,t,o)}}}})}},{}],35:[function(t,e,a){\"use strict\";e.exports=function(t){var e=t.helpers,a=t.defaults.global;a.elements.arc={backgroundColor:a.defaultColor,borderColor:\"#fff\",borderWidth:2},t.elements.Arc=t.Element.extend({inLabelRange:function(t){var e=this._view;return e?Math.pow(t-e.x,2)<Math.pow(e.radius+e.hoverRadius,2):!1},inRange:function(t,a){var i=this._view;if(i){for(var n=e.getAngleFromPoint(i,{x:t,y:a}),o=n.angle,r=n.distance,l=i.startAngle,s=i.endAngle;l>s;)s+=2*Math.PI;for(;o>s;)o-=2*Math.PI;for(;l>o;)o+=2*Math.PI;var d=o>=l&&s>=o,u=r>=i.innerRadius&&r<=i.outerRadius;return d&&u}return!1},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,a=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*a,y:t.y+Math.sin(e)*a}},draw:function(){var t=this._chart.ctx,e=this._view,a=e.startAngle,i=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,a,i),t.arc(e.x,e.y,e.innerRadius,i,a,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin=\"bevel\",e.borderWidth&&t.stroke()}})}},{}],36:[function(t,e,a){\"use strict\";e.exports=function(t){var e=t.helpers,a=t.defaults.global;t.defaults.global.elements.line={tension:.4,backgroundColor:a.defaultColor,borderWidth:3,borderColor:a.defaultColor,borderCapStyle:\"butt\",borderDash:[],borderDashOffset:0,borderJoinStyle:\"miter\",capBezierPoints:!0,fill:!0},t.elements.Line=t.Element.extend({draw:function(){function t(t,e){var a=e._view;e._view.steppedLine===!0?(s.lineTo(a.x,t._view.y),s.lineTo(a.x,a.y)):0===e._view.tension?s.lineTo(a.x,a.y):s.bezierCurveTo(t._view.controlPointNextX,t._view.controlPointNextY,a.controlPointPreviousX,a.controlPointPreviousY,a.x,a.y)}var i=this,n=i._view,o=n.spanGaps,r=n.scaleZero,l=i._loop,s=i._chart.ctx;s.save();var d=i._children.slice(),u=-1;l&&d.length&&d.push(d[0]);var c,h,f,g;if(d.length&&n.fill){for(s.beginPath(),c=0;c<d.length;++c)h=d[c],f=e.previousItem(d,c),g=h._view,0===c?(l?s.moveTo(r.x,r.y):s.moveTo(g.x,r),g.skip||(u=c,s.lineTo(g.x,g.y))):(f=-1===u?f:d[u],g.skip?o||u!==c-1||(l?s.lineTo(r.x,r.y):s.lineTo(f._view.x,r)):(u!==c-1?o&&-1!==u?t(f,h):l?s.lineTo(g.x,g.y):(s.lineTo(g.x,r),s.lineTo(g.x,g.y)):t(f,h),u=c));l||-1===u||s.lineTo(d[u]._view.x,r),s.fillStyle=n.backgroundColor||a.defaultColor,s.closePath(),s.fill()}var p=a.elements.line;for(s.lineCap=n.borderCapStyle||p.borderCapStyle,s.setLineDash&&s.setLineDash(n.borderDash||p.borderDash),s.lineDashOffset=n.borderDashOffset||p.borderDashOffset,s.lineJoin=n.borderJoinStyle||p.borderJoinStyle,s.lineWidth=n.borderWidth||p.borderWidth,s.strokeStyle=n.borderColor||a.defaultColor,s.beginPath(),u=-1,c=0;c<d.length;++c)h=d[c],f=e.previousItem(d,c),g=h._view,0===c?g.skip||(s.moveTo(g.x,g.y),u=c):(f=-1===u?f:d[u],g.skip||(u!==c-1&&!o||-1===u?s.moveTo(g.x,g.y):t(f,h),u=c));s.stroke(),s.restore()}})}},{}],37:[function(t,e,a){\"use strict\";e.exports=function(t){var e=t.helpers,a=t.defaults.global,i=a.defaultColor;a.elements.point={radius:3,pointStyle:\"circle\",backgroundColor:i,borderWidth:1,borderColor:i,hitRadius:1,hoverRadius:4,hoverBorderWidth:1},t.elements.Point=t.Element.extend({inRange:function(t,e){var a=this._view;return a?Math.pow(t-a.x,2)+Math.pow(e-a.y,2)<Math.pow(a.hitRadius+a.radius,2):!1},inLabelRange:function(t){var e=this._view;return e?Math.pow(t-e.x,2)<Math.pow(e.radius+e.hitRadius,2):!1},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y,padding:t.radius+t.borderWidth}},draw:function(){var n=this._view,o=this._chart.ctx,r=n.pointStyle,l=n.radius,s=n.x,d=n.y;n.skip||(o.strokeStyle=n.borderColor||i,o.lineWidth=e.getValueOrDefault(n.borderWidth,a.elements.point.borderWidth),o.fillStyle=n.backgroundColor||i,t.canvasHelpers.drawPoint(o,r,l,s,d))}})}},{}],38:[function(t,e,a){\"use strict\";e.exports=function(t){var e=t.defaults.global;e.elements.rectangle={backgroundColor:e.defaultColor,borderWidth:0,borderColor:e.defaultColor,borderSkipped:\"bottom\"},t.elements.Rectangle=t.Element.extend({draw:function(){function t(t){return s[(u+t)%4]}var e=this._chart.ctx,a=this._view,i=a.width/2,n=a.x-i,o=a.x+i,r=a.base-(a.base-a.y),l=a.borderWidth/2;a.borderWidth&&(n+=l,o-=l,r+=l),e.beginPath(),e.fillStyle=a.backgroundColor,e.strokeStyle=a.borderColor,e.lineWidth=a.borderWidth;var s=[[n,a.base],[n,r],[o,r],[o,a.base]],d=[\"bottom\",\"left\",\"top\",\"right\"],u=d.indexOf(a.borderSkipped,0);-1===u&&(u=0),e.moveTo.apply(e,t(0));for(var c=1;4>c;c++)e.lineTo.apply(e,t(c));e.fill(),a.borderWidth&&e.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var a=this._view;return a?a.y<a.base?t>=a.x-a.width/2&&t<=a.x+a.width/2&&e>=a.y&&e<=a.base:t>=a.x-a.width/2&&t<=a.x+a.width/2&&e>=a.base&&e<=a.y:!1},inLabelRange:function(t){var e=this._view;return e?t>=e.x-e.width/2&&t<=e.x+e.width/2:!1},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})}},{}],39:[function(t,e,a){\"use strict\";e.exports=function(t){var e=t.helpers,a={position:\"bottom\"},i=t.Scale.extend({getLabels:function(){var t=this.chart.data;return(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t=this,a=t.getLabels();t.minIndex=0,t.maxIndex=a.length-1;var i;void 0!==t.options.ticks.min&&(i=e.indexOf(a,t.options.ticks.min),t.minIndex=-1!==i?i:t.minIndex),void 0!==t.options.ticks.max&&(i=e.indexOf(a,t.options.ticks.max),t.maxIndex=-1!==i?i:t.maxIndex),t.min=a[t.minIndex],t.max=a[t.maxIndex]},buildTicks:function(){var t=this,e=t.getLabels();t.ticks=0===t.minIndex&&t.maxIndex===e.length-1?e:e.slice(t.minIndex,t.maxIndex+1)},getLabelForIndex:function(t,e){var a=this,i=a.chart.data,n=a.isHorizontal();return i.xLabels&&n||i.yLabels&&!n?a.getRightValue(i.datasets[e].data[t]):a.ticks[t]},getPixelForValue:function(t,e,a,i){var n=this,o=Math.max(n.maxIndex+1-n.minIndex-(n.options.gridLines.offsetGridLines?0:1),1);if(void 0!==t&&isNaN(e)){var r=n.getLabels(),l=r.indexOf(t);e=-1!==l?l:e}if(n.isHorizontal()){var s=n.width-(n.paddingLeft+n.paddingRight),d=s/o,u=d*(e-n.minIndex)+n.paddingLeft;return(n.options.gridLines.offsetGridLines&&i||n.maxIndex===n.minIndex&&i)&&(u+=d/2),n.left+Math.round(u)}var c=n.height-(n.paddingTop+n.paddingBottom),h=c/o,f=h*(e-n.minIndex)+n.paddingTop;return n.options.gridLines.offsetGridLines&&i&&(f+=h/2),n.top+Math.round(f)},getPixelForTick:function(t,e){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null,e)},getValueForPixel:function(t){var e,a=this,i=Math.max(a.ticks.length-(a.options.gridLines.offsetGridLines?0:1),1),n=a.isHorizontal(),o=n?a.width-(a.paddingLeft+a.paddingRight):a.height-(a.paddingTop+a.paddingBottom),r=o/i;return t-=n?a.left:a.top,a.options.gridLines.offsetGridLines&&(t-=r/2),t-=n?a.paddingLeft:a.paddingTop,e=0>=t?0:Math.round(t/r)},getBasePixel:function(){return this.bottom}});t.scaleService.registerScaleType(\"category\",i,a)}},{}],40:[function(t,e,a){\"use strict\";e.exports=function(t){var e=t.helpers,a={position:\"left\",ticks:{callback:function(t,a,i){var n=i.length>3?i[2]-i[1]:i[1]-i[0];Math.abs(n)>1&&t!==Math.floor(t)&&(n=t-Math.floor(t));var o=e.log10(Math.abs(n)),r=\"\";if(0!==t){var l=-1*Math.floor(o);l=Math.max(Math.min(l,20),0),r=t.toFixed(l)}else r=\"0\";return r}}},i=t.LinearScaleBase.extend({determineDataLimits:function(){function t(t){return l?t.xAxisID===a.id:t.yAxisID===a.id}var a=this,i=a.options,n=a.chart,o=n.data,r=o.datasets,l=a.isHorizontal();if(a.min=null,a.max=null,i.stacked){var s={};e.each(r,function(o,r){var l=n.getDatasetMeta(r);void 0===s[l.type]&&(s[l.type]={positiveValues:[],negativeValues:[]});var d=s[l.type].positiveValues,u=s[l.type].negativeValues;n.isDatasetVisible(r)&&t(l)&&e.each(o.data,function(t,e){var n=+a.getRightValue(t);isNaN(n)||l.data[e].hidden||(d[e]=d[e]||0,u[e]=u[e]||0,i.relativePoints?d[e]=100:0>n?u[e]+=n:d[e]+=n)})}),e.each(s,function(t){var i=t.positiveValues.concat(t.negativeValues),n=e.min(i),o=e.max(i);a.min=null===a.min?n:Math.min(a.min,n),a.max=null===a.max?o:Math.max(a.max,o)})}else e.each(r,function(i,o){var r=n.getDatasetMeta(o);n.isDatasetVisible(o)&&t(r)&&e.each(i.data,function(t,e){var i=+a.getRightValue(t);isNaN(i)||r.data[e].hidden||(null===a.min?a.min=i:i<a.min&&(a.min=i),null===a.max?a.max=i:i>a.max&&(a.max=i))})});this.handleTickRangeOptions()},getTickLimit:function(){var a,i=this,n=i.options.ticks;if(i.isHorizontal())a=Math.min(n.maxTicksLimit?n.maxTicksLimit:11,Math.ceil(i.width/50));else{var o=e.getValueOrDefault(n.fontSize,t.defaults.global.defaultFontSize);a=Math.min(n.maxTicksLimit?n.maxTicksLimit:11,Math.ceil(i.height/(2*o)))}return a},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e,a,i=this,n=i.paddingLeft,o=i.paddingBottom,r=i.start,l=+i.getRightValue(t),s=i.end-r;return i.isHorizontal()?(a=i.width-(n+i.paddingRight),e=i.left+a/s*(l-r),Math.round(e+n)):(a=i.height-(i.paddingTop+o),e=i.bottom-o-a/s*(l-r),Math.round(e))},getValueForPixel:function(t){var e=this,a=e.isHorizontal(),i=e.paddingLeft,n=e.paddingBottom,o=a?e.width-(i+e.paddingRight):e.height-(e.paddingTop+n),r=(a?t-e.left-i:e.bottom-n-t)/o;return e.start+(e.end-e.start)*r},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType(\"linear\",i,a)}},{}],41:[function(t,e,a){\"use strict\";e.exports=function(t){var e=t.helpers,a=e.noop;t.LinearScaleBase=t.Scale.extend({handleTickRangeOptions:function(){var t=this,a=t.options,i=a.ticks;if(i.beginAtZero){var n=e.sign(t.min),o=e.sign(t.max);0>n&&0>o?t.max=0:n>0&&o>0&&(t.min=0)}void 0!==i.min?t.min=i.min:void 0!==i.suggestedMin&&(t.min=Math.min(t.min,i.suggestedMin)),void 0!==i.max?t.max=i.max:void 0!==i.suggestedMax&&(t.max=Math.max(t.max,i.suggestedMax)),t.min===t.max&&(t.max++,i.beginAtZero||t.min--)},getTickLimit:a,handleDirectionalChanges:a,buildTicks:function(){var t=this,a=t.options,i=t.ticks=[],n=a.ticks,o=e.getValueOrDefault,r=t.getTickLimit();r=Math.max(2,r);var l,s=n.fixedStepSize&&n.fixedStepSize>0||n.stepSize&&n.stepSize>0;if(s)l=o(n.fixedStepSize,n.stepSize);else{var d=e.niceNum(t.max-t.min,!1);l=e.niceNum(d/(r-1),!0)}var u=Math.floor(t.min/l)*l,c=Math.ceil(t.max/l)*l,h=(c-u)/l;h=e.almostEquals(h,Math.round(h),l/1e3)?Math.round(h):Math.ceil(h),i.push(void 0!==n.min?n.min:u);for(var f=1;h>f;++f)i.push(u+f*l);i.push(void 0!==n.max?n.max:c),t.handleDirectionalChanges(),t.max=e.max(i),t.min=e.min(i),n.reverse?(i.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),t.Scale.prototype.convertTicksToLabels.call(e)}})}},{}],42:[function(t,e,a){\"use strict\";e.exports=function(t){var e=t.helpers,a={position:\"left\",ticks:{callback:function(t,a,i){var n=t/Math.pow(10,Math.floor(e.log10(t)));return 0===t?\"0\":1===n||2===n||5===n||0===a||a===i.length-1?t.toExponential():\"\"}}},i=t.Scale.extend({determineDataLimits:function(){function t(t){return d?t.xAxisID===a.id:t.yAxisID===a.id}var a=this,i=a.options,n=i.ticks,o=a.chart,r=o.data,l=r.datasets,s=e.getValueOrDefault,d=a.isHorizontal();if(a.min=null,a.max=null,a.minNotZero=null,i.stacked){var u={};e.each(l,function(n,r){var l=o.getDatasetMeta(r);o.isDatasetVisible(r)&&t(l)&&(void 0===u[l.type]&&(u[l.type]=[]),e.each(n.data,function(t,e){var n=u[l.type],o=+a.getRightValue(t);isNaN(o)||l.data[e].hidden||(n[e]=n[e]||0,i.relativePoints?n[e]=100:n[e]+=o)}))}),e.each(u,function(t){var i=e.min(t),n=e.max(t);a.min=null===a.min?i:Math.min(a.min,i),\na.max=null===a.max?n:Math.max(a.max,n)})}else e.each(l,function(i,n){var r=o.getDatasetMeta(n);o.isDatasetVisible(n)&&t(r)&&e.each(i.data,function(t,e){var i=+a.getRightValue(t);isNaN(i)||r.data[e].hidden||(null===a.min?a.min=i:i<a.min&&(a.min=i),null===a.max?a.max=i:i>a.max&&(a.max=i),0!==i&&(null===a.minNotZero||i<a.minNotZero)&&(a.minNotZero=i))})});a.min=s(n.min,a.min),a.max=s(n.max,a.max),a.min===a.max&&(0!==a.min&&null!==a.min?(a.min=Math.pow(10,Math.floor(e.log10(a.min))-1),a.max=Math.pow(10,Math.floor(e.log10(a.max))+1)):(a.min=1,a.max=10))},buildTicks:function(){for(var t=this,a=t.options,i=a.ticks,n=e.getValueOrDefault,o=t.ticks=[],r=n(i.min,Math.pow(10,Math.floor(e.log10(t.min))));r<t.max;){o.push(r);var l,s;0===r?(l=Math.floor(e.log10(t.minNotZero)),s=Math.round(t.minNotZero/Math.pow(10,l))):(l=Math.floor(e.log10(r)),s=Math.floor(r/Math.pow(10,l))+1),10===s&&(s=1,++l),r=s*Math.pow(10,l)}var d=n(i.max,r);o.push(d),t.isHorizontal()||o.reverse(),t.max=e.max(o),t.min=e.min(o),i.reverse?(o.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),t.Scale.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForTick:function(t){return this.getPixelForValue(this.tickValues[t])},getPixelForValue:function(t){var a,i,n,o=this,r=o.start,l=+o.getRightValue(t),s=o.paddingTop,d=o.paddingBottom,u=o.paddingLeft,c=o.options,h=c.ticks;return o.isHorizontal()?(n=e.log10(o.end)-e.log10(r),0===l?i=o.left+u:(a=o.width-(u+o.paddingRight),i=o.left+a/n*(e.log10(l)-e.log10(r)),i+=u)):(a=o.height-(s+d),0!==r||h.reverse?0===o.end&&h.reverse?(n=e.log10(o.start)-e.log10(o.minNotZero),i=l===o.end?o.top+s:l===o.minNotZero?o.top+s+.02*a:o.top+s+.02*a+.98*a/n*(e.log10(l)-e.log10(o.minNotZero))):(n=e.log10(o.end)-e.log10(r),a=o.height-(s+d),i=o.bottom-d-a/n*(e.log10(l)-e.log10(r))):(n=e.log10(o.end)-e.log10(o.minNotZero),i=l===r?o.bottom-d:l===o.minNotZero?o.bottom-d-.02*a:o.bottom-d-.02*a-.98*a/n*(e.log10(l)-e.log10(o.minNotZero)))),i},getValueForPixel:function(t){var a,i,n=this,o=e.log10(n.end)-e.log10(n.start);return n.isHorizontal()?(i=n.width-(n.paddingLeft+n.paddingRight),a=n.start*Math.pow(10,(t-n.left-n.paddingLeft)*o/i)):(i=n.height-(n.paddingTop+n.paddingBottom),a=Math.pow(10,(n.bottom-n.paddingBottom-t)*o/i)/n.start),a}});t.scaleService.registerScaleType(\"logarithmic\",i,a)}},{}],43:[function(t,e,a){\"use strict\";e.exports=function(t){var e=t.helpers,a=t.defaults.global,i={display:!0,animate:!0,lineArc:!1,position:\"chartArea\",angleLines:{display:!0,color:\"rgba(0, 0, 0, 0.1)\",lineWidth:1},ticks:{showLabelBackdrop:!0,backdropColor:\"rgba(255,255,255,0.75)\",backdropPaddingY:2,backdropPaddingX:2},pointLabels:{fontSize:10,callback:function(t){return t}}},n=t.LinearScaleBase.extend({getValueCount:function(){return this.chart.data.labels.length},setDimensions:function(){var t=this,i=t.options,n=i.ticks;t.width=t.maxWidth,t.height=t.maxHeight,t.xCenter=Math.round(t.width/2),t.yCenter=Math.round(t.height/2);var o=e.min([t.height,t.width]),r=e.getValueOrDefault(n.fontSize,a.defaultFontSize);t.drawingArea=i.display?o/2-(r/2+n.backdropPaddingY):o/2},determineDataLimits:function(){var t=this,a=t.chart;t.min=null,t.max=null,e.each(a.data.datasets,function(i,n){if(a.isDatasetVisible(n)){var o=a.getDatasetMeta(n);e.each(i.data,function(e,a){var i=+t.getRightValue(e);isNaN(i)||o.data[a].hidden||(null===t.min?t.min=i:i<t.min&&(t.min=i),null===t.max?t.max=i:i>t.max&&(t.max=i))})}}),t.handleTickRangeOptions()},getTickLimit:function(){var t=this.options.ticks,i=e.getValueOrDefault(t.fontSize,a.defaultFontSize);return Math.min(t.maxTicksLimit?t.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*i)))},convertTicksToLabels:function(){var e=this;t.LinearScaleBase.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map(e.options.pointLabels.callback,e)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t,i,n,o,r,l,s,d,u,c,h,f,g=this.options.pointLabels,p=e.getValueOrDefault(g.fontSize,a.defaultFontSize),m=e.getValueOrDefault(g.fontStyle,a.defaultFontStyle),b=e.getValueOrDefault(g.fontFamily,a.defaultFontFamily),v=e.fontString(p,m,b),x=e.min([this.height/2-p-5,this.width/2]),y=this.width,k=0;for(this.ctx.font=v,i=0;i<this.getValueCount();i++){t=this.getPointPosition(i,x),n=this.ctx.measureText(this.pointLabels[i]?this.pointLabels[i]:\"\").width+5;var S=this.getIndexAngle(i)+Math.PI/2,w=360*S/(2*Math.PI)%360;0===w||180===w?(o=n/2,t.x+o>y&&(y=t.x+o,r=i),t.x-o<k&&(k=t.x-o,s=i)):180>w?t.x+n>y&&(y=t.x+n,r=i):t.x-n<k&&(k=t.x-n,s=i)}u=k,c=Math.ceil(y-this.width),l=this.getIndexAngle(r),d=this.getIndexAngle(s),h=c/Math.sin(l+Math.PI/2),f=u/Math.sin(d+Math.PI/2),h=e.isNumber(h)?h:0,f=e.isNumber(f)?f:0,this.drawingArea=Math.round(x-(f+h)/2),this.setCenterPoint(f,h)},setCenterPoint:function(t,e){var a=this,i=a.width-e-a.drawingArea,n=t+a.drawingArea;a.xCenter=Math.round((n+i)/2+a.left),a.yCenter=Math.round(a.height/2+a.top)},getIndexAngle:function(t){var e=2*Math.PI/this.getValueCount(),a=this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0,i=a*Math.PI*2/360;return t*e-Math.PI/2+i},getDistanceFromCenterForValue:function(t){var e=this;if(null===t)return 0;var a=e.drawingArea/(e.max-e.min);return e.options.reverse?(e.max-t)*a:(t-e.min)*a},getPointPosition:function(t,e){var a=this,i=a.getIndexAngle(t);return{x:Math.round(Math.cos(i)*e)+a.xCenter,y:Math.round(Math.sin(i)*e)+a.yCenter}},getPointPositionForValue:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))},getBasePosition:function(){var t=this,e=t.min,a=t.max;return t.getPointPositionForValue(0,t.beginAtZero?0:0>e&&0>a?a:e>0&&a>0?e:0)},draw:function(){var t=this,i=t.options,n=i.gridLines,o=i.ticks,r=i.angleLines,l=i.pointLabels,s=e.getValueOrDefault;if(i.display){var d=t.ctx,u=s(o.fontSize,a.defaultFontSize),c=s(o.fontStyle,a.defaultFontStyle),h=s(o.fontFamily,a.defaultFontFamily),f=e.fontString(u,c,h);if(e.each(t.ticks,function(r,l){if(l>0||i.reverse){var c=t.getDistanceFromCenterForValue(t.ticksAsNumbers[l]),h=t.yCenter-c;if(n.display&&0!==l)if(d.strokeStyle=e.getValueAtIndexOrDefault(n.color,l-1),d.lineWidth=e.getValueAtIndexOrDefault(n.lineWidth,l-1),i.lineArc)d.beginPath(),d.arc(t.xCenter,t.yCenter,c,0,2*Math.PI),d.closePath(),d.stroke();else{d.beginPath();for(var g=0;g<t.getValueCount();g++){var p=t.getPointPosition(g,c);0===g?d.moveTo(p.x,p.y):d.lineTo(p.x,p.y)}d.closePath(),d.stroke()}if(o.display){var m=s(o.fontColor,a.defaultFontColor);if(d.font=f,o.showLabelBackdrop){var b=d.measureText(r).width;d.fillStyle=o.backdropColor,d.fillRect(t.xCenter-b/2-o.backdropPaddingX,h-u/2-o.backdropPaddingY,b+2*o.backdropPaddingX,u+2*o.backdropPaddingY)}d.textAlign=\"center\",d.textBaseline=\"middle\",d.fillStyle=m,d.fillText(r,t.xCenter,h)}}}),!i.lineArc){d.lineWidth=r.lineWidth,d.strokeStyle=r.color;for(var g=t.getDistanceFromCenterForValue(i.reverse?t.min:t.max),p=s(l.fontSize,a.defaultFontSize),m=s(l.fontStyle,a.defaultFontStyle),b=s(l.fontFamily,a.defaultFontFamily),v=e.fontString(p,m,b),x=t.getValueCount()-1;x>=0;x--){if(r.display){var y=t.getPointPosition(x,g);d.beginPath(),d.moveTo(t.xCenter,t.yCenter),d.lineTo(y.x,y.y),d.stroke(),d.closePath()}var k=t.getPointPosition(x,g+5),S=s(l.fontColor,a.defaultFontColor);d.font=v,d.fillStyle=S;var w=t.pointLabels,C=this.getIndexAngle(x)+Math.PI/2,M=360*C/(2*Math.PI)%360;0===M||180===M?d.textAlign=\"center\":180>M?d.textAlign=\"left\":d.textAlign=\"right\",90===M||270===M?d.textBaseline=\"middle\":M>270||90>M?d.textBaseline=\"bottom\":d.textBaseline=\"top\",d.fillText(w[x]?w[x]:\"\",k.x,k.y)}}}}});t.scaleService.registerScaleType(\"radialLinear\",n,i)}},{}],44:[function(t,e,a){\"use strict\";var i=t(1);i=\"function\"==typeof i?i:window.moment,e.exports=function(t){var e=t.helpers,a={units:[{name:\"millisecond\",steps:[1,2,5,10,20,50,100,250,500]},{name:\"second\",steps:[1,2,5,10,30]},{name:\"minute\",steps:[1,2,5,10,30]},{name:\"hour\",steps:[1,2,3,6,12]},{name:\"day\",steps:[1,2,5]},{name:\"week\",maxStep:4},{name:\"month\",maxStep:3},{name:\"quarter\",maxStep:4},{name:\"year\",maxStep:!1}]},n={position:\"bottom\",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:\"millisecond\",displayFormats:{millisecond:\"h:mm:ss.SSS a\",second:\"h:mm:ss a\",minute:\"h:mm:ss a\",hour:\"MMM D, hA\",day:\"ll\",week:\"ll\",month:\"MMM YYYY\",quarter:\"[Q]Q - YYYY\",year:\"YYYY\"}},ticks:{autoSkip:!1}},o=t.Scale.extend({initialize:function(){if(!i)throw new Error(\"Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com\");t.Scale.prototype.initialize.call(this)},getLabelMoment:function(t,e){return null===t||null===e?null:\"undefined\"!=typeof this.labelMoments[t]?this.labelMoments[t][e]:null},getLabelDiff:function(t,e){var a=this;return null===t||null===e?null:(void 0===a.labelDiffs&&a.buildLabelDiffs(),\"undefined\"!=typeof a.labelDiffs[t]?a.labelDiffs[t][e]:null)},getMomentStartOf:function(t){var e=this;return\"week\"===e.options.time.unit&&e.options.time.isoWeekday!==!1?t.clone().startOf(\"isoWeek\").isoWeekday(e.options.time.isoWeekday):t.clone().startOf(e.tickUnit)},determineDataLimits:function(){var t=this;t.labelMoments=[];var a=[];t.chart.data.labels&&t.chart.data.labels.length>0?(e.each(t.chart.data.labels,function(e){var i=t.parseTime(e);i.isValid()&&(t.options.time.round&&i.startOf(t.options.time.round),a.push(i))},t),t.firstTick=i.min.call(t,a),t.lastTick=i.max.call(t,a)):(t.firstTick=null,t.lastTick=null),e.each(t.chart.data.datasets,function(n,o){var r=[],l=t.chart.isDatasetVisible(o);\"object\"==typeof n.data[0]&&null!==n.data[0]?e.each(n.data,function(e){var a=t.parseTime(t.getRightValue(e));a.isValid()&&(t.options.time.round&&a.startOf(t.options.time.round),r.push(a),l&&(t.firstTick=null!==t.firstTick?i.min(t.firstTick,a):a,t.lastTick=null!==t.lastTick?i.max(t.lastTick,a):a))},t):r=a,t.labelMoments.push(r)},t),t.options.time.min&&(t.firstTick=t.parseTime(t.options.time.min)),t.options.time.max&&(t.lastTick=t.parseTime(t.options.time.max)),t.firstTick=(t.firstTick||i()).clone(),t.lastTick=(t.lastTick||i()).clone()},buildLabelDiffs:function(){var t=this;t.labelDiffs=[];var a=[];t.chart.data.labels&&t.chart.data.labels.length>0&&e.each(t.chart.data.labels,function(e){var i=t.parseTime(e);i.isValid()&&(t.options.time.round&&i.startOf(t.options.time.round),a.push(i.diff(t.firstTick,t.tickUnit,!0)))},t),e.each(t.chart.data.datasets,function(i){var n=[];\"object\"==typeof i.data[0]&&null!==i.data[0]?e.each(i.data,function(e){var a=t.parseTime(t.getRightValue(e));a.isValid()&&(t.options.time.round&&a.startOf(t.options.time.round),n.push(a.diff(t.firstTick,t.tickUnit,!0)))},t):n=a,t.labelDiffs.push(n)},t)},buildTicks:function(){var i=this;i.ctx.save();var n=e.getValueOrDefault(i.options.ticks.fontSize,t.defaults.global.defaultFontSize),o=e.getValueOrDefault(i.options.ticks.fontStyle,t.defaults.global.defaultFontStyle),r=e.getValueOrDefault(i.options.ticks.fontFamily,t.defaults.global.defaultFontFamily),l=e.fontString(n,o,r);if(i.ctx.font=l,i.ticks=[],i.unitScale=1,i.scaleSizeInUnits=0,i.options.time.unit)i.tickUnit=i.options.time.unit||\"day\",i.displayFormat=i.options.time.displayFormats[i.tickUnit],i.scaleSizeInUnits=i.lastTick.diff(i.firstTick,i.tickUnit,!0),i.unitScale=e.getValueOrDefault(i.options.time.unitStepSize,1);else{var s=i.isHorizontal()?i.width-(i.paddingLeft+i.paddingRight):i.height-(i.paddingTop+i.paddingBottom),d=i.tickFormatFunction(i.firstTick,0,[]),u=i.ctx.measureText(d).width,c=Math.cos(e.toRadians(i.options.ticks.maxRotation)),h=Math.sin(e.toRadians(i.options.ticks.maxRotation));u=u*c+n*h;var f=s/u;i.tickUnit=i.options.time.minUnit,i.scaleSizeInUnits=i.lastTick.diff(i.firstTick,i.tickUnit,!0),i.displayFormat=i.options.time.displayFormats[i.tickUnit];for(var g=0,p=a.units[g];g<a.units.length;){if(i.unitScale=1,e.isArray(p.steps)&&Math.ceil(i.scaleSizeInUnits/f)<e.max(p.steps)){for(var m=0;m<p.steps.length;++m)if(p.steps[m]>=Math.ceil(i.scaleSizeInUnits/f)){i.unitScale=e.getValueOrDefault(i.options.time.unitStepSize,p.steps[m]);break}break}if(p.maxStep===!1||Math.ceil(i.scaleSizeInUnits/f)<p.maxStep){i.unitScale=e.getValueOrDefault(i.options.time.unitStepSize,Math.ceil(i.scaleSizeInUnits/f));break}++g,p=a.units[g],i.tickUnit=p.name;var b=i.firstTick.diff(i.getMomentStartOf(i.firstTick),i.tickUnit,!0),v=i.getMomentStartOf(i.lastTick.clone().add(1,i.tickUnit)).diff(i.lastTick,i.tickUnit,!0);i.scaleSizeInUnits=i.lastTick.diff(i.firstTick,i.tickUnit,!0)+b+v,i.displayFormat=i.options.time.displayFormats[p.name]}}var x;if(i.options.time.min?x=i.getMomentStartOf(i.firstTick):(i.firstTick=i.getMomentStartOf(i.firstTick),x=i.firstTick),!i.options.time.max){var y=i.getMomentStartOf(i.lastTick),k=y.diff(i.lastTick,i.tickUnit,!0);0>k?i.lastTick=i.getMomentStartOf(i.lastTick.add(1,i.tickUnit)):k>=0&&(i.lastTick=y),i.scaleSizeInUnits=i.lastTick.diff(i.firstTick,i.tickUnit,!0)}i.options.time.displayFormat&&(i.displayFormat=i.options.time.displayFormat),i.ticks.push(i.firstTick.clone());for(var S=1;S<=i.scaleSizeInUnits;++S){var w=x.clone().add(S,i.tickUnit);if(i.options.time.max&&w.diff(i.lastTick,i.tickUnit,!0)>=0)break;S%i.unitScale===0&&i.ticks.push(w)}var C=i.ticks[i.ticks.length-1].diff(i.lastTick,i.tickUnit);(0!==C||0===i.scaleSizeInUnits)&&(i.options.time.max?(i.ticks.push(i.lastTick.clone()),i.scaleSizeInUnits=i.lastTick.diff(i.ticks[0],i.tickUnit,!0)):(i.ticks.push(i.lastTick.clone()),i.scaleSizeInUnits=i.lastTick.diff(i.firstTick,i.tickUnit,!0))),i.ctx.restore(),i.labelDiffs=void 0},getLabelForIndex:function(t,e){var a=this,i=a.chart.data.labels&&t<a.chart.data.labels.length?a.chart.data.labels[t]:\"\";return\"object\"==typeof a.chart.data.datasets[e].data[0]&&(i=a.getRightValue(a.chart.data.datasets[e].data[t])),a.options.time.tooltipFormat&&(i=a.parseTime(i).format(a.options.time.tooltipFormat)),i},tickFormatFunction:function(t,a,i){var n=t.format(this.displayFormat),o=this.options.ticks,r=e.getValueOrDefault(o.callback,o.userCallback);return r?r(n,a,i):n},convertTicksToLabels:function(){var t=this;t.tickMoments=t.ticks,t.ticks=t.ticks.map(t.tickFormatFunction,t)},getPixelForValue:function(t,e,a){var i=this,n=null;if(void 0!==e&&void 0!==a&&(n=i.getLabelDiff(a,e)),null===n&&(t&&t.isValid||(t=i.parseTime(i.getRightValue(t))),t&&t.isValid&&t.isValid()&&(n=t.diff(i.firstTick,i.tickUnit,!0))),null!==n){var o=0!==n?n/i.scaleSizeInUnits:n;if(i.isHorizontal()){var r=i.width-(i.paddingLeft+i.paddingRight),l=r*o+i.paddingLeft;return i.left+Math.round(l)}var s=i.height-(i.paddingTop+i.paddingBottom),d=s*o+i.paddingTop;return i.top+Math.round(d)}},getPixelForTick:function(t){return this.getPixelForValue(this.tickMoments[t],null,null)},getValueForPixel:function(t){var e=this,a=e.isHorizontal()?e.width-(e.paddingLeft+e.paddingRight):e.height-(e.paddingTop+e.paddingBottom),n=(t-(e.isHorizontal()?e.left+e.paddingLeft:e.top+e.paddingTop))/a;return n*=e.scaleSizeInUnits,e.firstTick.clone().add(i.duration(n,e.tickUnit).asSeconds(),\"seconds\")},parseTime:function(t){var e=this;return\"string\"==typeof e.options.time.parser?i(t,e.options.time.parser):\"function\"==typeof e.options.time.parser?e.options.time.parser(t):\"function\"==typeof t.getMonth||\"number\"==typeof t?i(t):t.isValid&&t.isValid()?t:\"string\"!=typeof e.options.time.format&&e.options.time.format.call?(console.warn(\"options.time.format is deprecated and replaced by options.time.parser. See http://nnnick.github.io/Chart.js/docs-v2/#scales-time-scale\"),e.options.time.format(t)):i(t,e.options.time.format)}});t.scaleService.registerScaleType(\"time\",o,n)}},{1:1}]},{},[7])(7)});","MGS_Fbuilder/js/sack_js.min.js":"function sack(file){this.xmlhttp=null;this.resetData=function(){this.method=\"POST\";this.queryStringSeparator=\"?\";this.argumentSeparator=\"&\";this.URLString=\"\";this.encodeURIString=true;this.execute=false;this.element=null;this.elementObj=null;this.requestFile=file;this.vars=new Object();this.responseStatus=new Array(2);};this.resetFunctions=function(){this.onLoading=function(){};this.onLoaded=function(){};this.onInteractive=function(){};this.onCompletion=function(){};this.onError=function(){};this.onFail=function(){};};this.reset=function(){this.resetFunctions();this.resetData();};this.createAJAX=function(){try{this.xmlhttp=new ActiveXObject(\"Msxml2.XMLHTTP\");}catch(e1){try{this.xmlhttp=new ActiveXObject(\"Microsoft.XMLHTTP\");}catch(e2){this.xmlhttp=null;}}\nif(!this.xmlhttp){if(typeof XMLHttpRequest!=\"undefined\"){this.xmlhttp=new XMLHttpRequest();}else{this.failed=true;}}};this.setVar=function(name,value){this.vars[name]=Array(value,false);};this.encVar=function(name,value,returnvars){if(true==returnvars){return Array(encodeURIComponent(name),encodeURIComponent(value));}else{this.vars[encodeURIComponent(name)]=Array(encodeURIComponent(value),true);}}\nthis.processURLString=function(string,encode){encoded=encodeURIComponent(this.argumentSeparator);regexp=new RegExp(this.argumentSeparator+\"|\"+encoded);varArray=string.split(regexp);for(i=0;i<varArray.length;i++){urlVars=varArray[i].split(\"=\");if(true==encode){this.encVar(urlVars[0],urlVars[1]);}else{this.setVar(urlVars[0],urlVars[1]);}}}\nthis.createURLString=function(urlstring){if(this.encodeURIString&&this.URLString.length){this.processURLString(this.URLString,true);}\nif(urlstring){if(this.URLString.length){this.URLString+=this.argumentSeparator+urlstring;}else{this.URLString=urlstring;}}\nthis.setVar(\"rndval\",new Date().getTime());urlstringtemp=new Array();for(key in this.vars){if(false==this.vars[key][1]&&true==this.encodeURIString){encoded=this.encVar(key,this.vars[key][0],true);delete this.vars[key];this.vars[encoded[0]]=Array(encoded[1],true);key=encoded[0];}\nurlstringtemp[urlstringtemp.length]=key+\"=\"+this.vars[key][0];}\nif(urlstring){this.URLString+=this.argumentSeparator+urlstringtemp.join(this.argumentSeparator);}else{this.URLString+=urlstringtemp.join(this.argumentSeparator);}}\nthis.runResponse=function(){eval(this.response);}\nthis.runAJAX=function(urlstring){if(this.failed){this.onFail();}else{this.createURLString(urlstring);if(this.element){this.elementObj=document.getElementById(this.element);}\nif(this.xmlhttp){var self=this;if(this.method==\"GET\"){totalurlstring=this.requestFile+this.queryStringSeparator+this.URLString;this.xmlhttp.open(this.method,totalurlstring,true);}else{this.xmlhttp.open(this.method,this.requestFile,true);try{this.xmlhttp.setRequestHeader(\"Content-Type\",\"application/x-www-form-urlencoded\")}catch(e){}}\nthis.xmlhttp.onreadystatechange=function(){switch(self.xmlhttp.readyState){case 1:self.onLoading();break;case 2:self.onLoaded();break;case 3:self.onInteractive();break;case 4:self.response=self.xmlhttp.responseText;self.responseXML=self.xmlhttp.responseXML;self.responseStatus[0]=self.xmlhttp.status;self.responseStatus[1]=self.xmlhttp.statusText;if(self.execute){self.runResponse();}\nif(self.elementObj){elemNodeName=self.elementObj.nodeName;elemNodeName.toLowerCase();if(elemNodeName==\"input\"||elemNodeName==\"select\"||elemNodeName==\"option\"||elemNodeName==\"textarea\"){self.elementObj.value=self.response;}else{self.elementObj.innerHTML=self.response;}}\nif(self.responseStatus[0]==\"200\"){self.onCompletion();}else{self.onError();}\nself.URLString=\"\";break;}};this.xmlhttp.send(this.URLString);}}};this.reset();this.createAJAX();}\nvar dhtmlgoodies_tree;var folderImage='folder-open.gif';var plusImage='elbow-end-plus.gif';var minusImage='elbow-end-minus.gif';var initExpandedNodes='';var timeoutEdit=20;var ajax=new sack();function showHideNode(e,inputId){if(inputId){if(!document.getElementById('dhtmlgoodies_treeNode'+inputId))return;thisNode=document.getElementById('dhtmlgoodies_treeNode'+inputId).getElementsByTagName('IMG')[0];}else{thisNode=this;}\nif(thisNode.style.visibility=='hidden')return;var parentNode=thisNode.parentNode;inputId=parentNode.id.replace(/[^0-9]/g,'');if(thisNode.src.indexOf('plus')>=0){thisNode.src=thisNode.src.replace('plus','minus');parentNode.getElementsByTagName('UL')[0].style.display='block';if(!initExpandedNodes)initExpandedNodes=',';if(initExpandedNodes.indexOf(','+inputId+',')<0)initExpandedNodes=initExpandedNodes+inputId+',';}else{thisNode.src=thisNode.src.replace('minus','plus');parentNode.getElementsByTagName('UL')[0].style.display='none';initExpandedNodes=initExpandedNodes.replace(','+inputId,'');}}\nfunction showNode(e,inputId){if(inputId){if(!document.getElementById('dhtmlgoodies_treeNode'+inputId))return;thisNode=document.getElementById('dhtmlgoodies_treeNode'+inputId).getElementsByTagName('IMG')[0];}else{thisNode=this;}\nvar parentNode=thisNode.parentNode;inputId=parentNode.id.replace(/[^0-9]/g,'');thisNode.src=thisNode.src.replace('plus','minus');parentNode.getElementsByTagName('UL')[0].style.display='block';if(!initExpandedNodes)initExpandedNodes=',';if(initExpandedNodes.indexOf(','+inputId+',')<0)initExpandedNodes=initExpandedNodes+inputId+',';}\nfunction okToNavigate(){if(editCounter<10)return true;return false;}\nvar editCounter=-1;var editEl=false;function initEditLabel(){}\nfunction startEditLabel(){}\nfunction showUpdate(){document.getElementById('ajaxMessage').innerHTML=ajax.response;}\nfunction hideEdit(){var editObj=editEl.previousSibling;if(editObj.value.length>0){editEl.innerHTML=editObj.value;ajax.requestFile=fileName+'?updateNode='+editObj.id.replace(/[^0-9]/g,'')+'&newValue='+editObj.value;ajax.onCompletion=showUpdate;ajax.runAJAX();}\neditEl.style.display='inline';editObj.style.display='none';editEl=false;editCounter=-1;}\nfunction mouseUpEvent(){editCounter=-1;}\nrequire(['jquery',],function(jQuery){(function($){$('#expand-all').on('click',function(){var menuItems=dhtmlgoodies_tree.getElementsByTagName('LI');for(var no=0;no<menuItems.length;no++){var subItems=menuItems[no].getElementsByTagName('UL');if(subItems.length>0&&subItems[0].style.display!='block'){showHideNode(false,menuItems[no].id.replace(/[^0-9]/g,''));}}\nreturn false;});$('#collapse-all').on('click',function(){var menuItems=dhtmlgoodies_tree.getElementsByTagName('LI');for(var no=0;no<menuItems.length;no++){var subItems=menuItems[no].getElementsByTagName('UL');if(subItems.length>0&&subItems[0].style.display=='block'){showHideNode(false,menuItems[no].id.replace(/[^0-9]/g,''));}}\nreturn false;});})(jQuery);});function initTree(){dhtmlgoodies_tree=document.getElementById('dhtmlgoodies_tree');var menuItems=dhtmlgoodies_tree.getElementsByTagName('LI');for(var no=0;no<menuItems.length;no++){var subItems=menuItems[no].getElementsByTagName('UL');var img=document.createElement('IMG');img.src=imageFolder+plusImage;img.onclick=showHideNode;if(subItems.length==0)img.style.visibility='hidden';var aTag=menuItems[no].getElementsByTagName('A')[0];if(aTag.id)numericId=aTag.id.replace(/[^0-9]/g,'');else numericId=(no+1);aTag.id='dhtmlgoodies_treeNodeLink'+numericId;var input=document.createElement('INPUT');input.style.width='200px';input.style.display='none';menuItems[no].insertBefore(input,aTag);input.id='dhtmlgoodies_treeNodeInput'+numericId;input.onblur=hideEdit;menuItems[no].insertBefore(img,input);menuItems[no].id='dhtmlgoodies_treeNode'+numericId;aTag.onclick=okToNavigate;aTag.onmousedown=initEditLabel;var folderImg=document.createElement('IMG');if(menuItems[no].className){folderImg.src=imageFolder+menuItems[no].className;}else{folderImg.src=imageFolder+folderImage;}\nmenuItems[no].insertBefore(folderImg,input);}\ninitExpandedNodes=categoryIds;if(initExpandedNodes){var nodes=initExpandedNodes.split(',');for(var no=0;no<nodes.length;no++){if(nodes[no]){explainNote(nodes[no]);}}}\ndocument.documentElement.onmouseup=mouseUpEvent;}\nfunction explainNote(noteNumber){require(['jquery',],function(jQuery){(function($){while($('#dhtmlgoodies_treeNode'+noteNumber).parent().attr('id')!='dhtmlgoodies_tree'){noteNumber=$('#dhtmlgoodies_treeNode'+noteNumber).parent().parent().attr('lang');showNode(false,noteNumber);explainNote(noteNumber);}})(jQuery);});}\nwindow.onload=initTree;","MGS_Fbuilder/js/custom.min.js":"if(typeof(WEB_URL)=='undefined'){if(typeof(BASE_URL)!=='undefined'){var WEB_URL_AJAX=BASE_URL;}else{pubUrlAjax=require.s.contexts._.config.baseUrl;arrUrlAjax=pubUrlAjax.split('pub/');var WEB_URL_AJAX=arrUrlAjax[0];}}\nrequire(['jquery','waypoints','mgslightbox'],function(jQuery){(function($){$.fn.appear=function(fn,options){var settings=$.extend({data:undefined,one:true,accX:0,accY:0},options);return this.each(function(){var t=$(this);t.appeared=false;if(!fn){t.trigger('appear',settings.data);return;}\nvar w=$(window);var check=function(){if(!t.is(':visible')){t.appeared=false;return;}\nvar a=w.scrollLeft();var b=w.scrollTop();var o=t.offset();var x=o.left;var y=o.top;var ax=settings.accX;var ay=settings.accY;var th=t.height();var wh=w.height();var tw=t.width();var ww=w.width();if(y+th+ay>=b&&y<=b+wh+ay&&x+tw+ax>=a&&x<=a+ww+ax){if(!t.appeared)t.trigger('appear',settings.data);}else{t.appeared=false;}};var modifiedFn=function(){t.appeared=true;if(settings.one){w.unbind('scroll',check);var i=$.inArray(check,$.fn.appear.checks);if(i>=0)$.fn.appear.checks.splice(i,1);}\nfn.apply(this,arguments);};if(settings.one)t.one('appear',settings.data,modifiedFn);else t.bind('appear',settings.data,modifiedFn);w.scroll(check);$.fn.appear.checks.push(check);(check)();});};$.extend($.fn.appear,{checks:[],timeout:null,checkAll:function(){var length=$.fn.appear.checks.length;if(length>0)while(length--)($.fn.appear.checks[length])();},run:function(){if($.fn.appear.timeout)clearTimeout($.fn.appear.timeout);$.fn.appear.timeout=setTimeout($.fn.appear.checkAll,20);}});$.each(['append','prepend','after','before','attr','removeAttr','addClass','removeClass','toggleClass','remove','css','show','hide'],function(i,n){var old=$.fn[n];if(old){$.fn[n]=function(){var r=old.apply(this,arguments);$.fn.appear.run();return r;}}});$(document).ready(function(){$(\"[data-appear-animation]\").each(function(){$(this).addClass(\"appear-animation\");if($(window).width()>767){$(this).appear(function(){var delay=($(this).attr(\"data-appear-animation-delay\")?$(this).attr(\"data-appear-animation-delay\"):1);if(delay>1)$(this).css(\"animation-delay\",delay+\"ms\");$(this).addClass($(this).attr(\"data-appear-animation\"));$(this).addClass(\"animated\");setTimeout(function(){$(this).addClass(\"appear-animation-visible\");},delay);},{accX:0,accY:-150});}else{$(this).addClass(\"appear-animation-visible\");}});$('.mgs-progressbar .progress').css(\"width\",function(){return $(this).attr(\"aria-valuenow\")+\"%\";})\n$('.mgs-progress-circle').each(function(){var progressPercent=$(this).attr('progress-to');$(this).attr('data-progress',progressPercent);});$('.tab-title-ajax').each(function(){$(this).find('a').trigger('click');});});})(jQuery);});function setLocation(url){require(['jquery'],function(jQuery){(function(){window.location.href=url;})(jQuery);});}\nrequire(['jquery','Magento_Ui/js/modal/modal'],function($,modal){$(document).ready(function(){$('button.mgs-modal-popup-button').on('click',function(){id=$(this).attr('data-button-id');var popupContent=$('#mgs_modal_container_'+id).html();if($('#modal_popup_'+id).length){var options={type:'popup',responsive:true,innerScroll:true,title:'',modalClass:'mgs-modal modal-'+id,buttons:[]};var newsletterPopup=modal(options,$('#modal_popup_'+id));$('#modal_popup_'+id).trigger('openModal');$('.modal-'+id+' .pop-sletter-title').insertBefore('.modal-'+id+' .modal-header button');$('.modal-'+id+' .action-close').on('click',function(){$('.modal-'+id+' .modal-header .pop-sletter-title').remove();setTimeout(function(){$('.modals-wrapper .modal-'+id).remove();$('#mgs_modal_container_'+id).html(popupContent)},500);});}});});});function getAjaxProductCollection(catId,attribute,blockType,productNum,blockId,useSlider,perrowDefault,perrowTablet,perrowMobile,numberRow,slideBy,hideName,hideReview,hidePrice,hideAddcart,hideAddwishlist,hideAddcompare,autoPlay,stopAuto,nav,dot,isLoop,hideNav,navTop,navPos,pagPos,isRtl,slideMargin,activeCatLink,CatLink){require([\"jquery\",\"mLazysizes\",],function($){if(catId!=''){var $contentContainer=$('#'+catId.toString()+blockId.toString());}else{var $contentContainer=$('#'+attribute.toString()+blockId.toString());}\nvar tabContent=$contentContainer.html();if(tabContent.trim()==''){$contentContainer.addClass('div-loading');var requestUrl=WEB_URL_AJAX+'fbuilder/index/ajax';$.ajax({url:requestUrl,data:{category_id:catId,attribute_type:attribute,block_type:blockType,limit:productNum,block_id:blockId,use_slider:useSlider,perrow:perrowDefault,perrow_tablet:perrowTablet,perrow_mobile:perrowMobile,number_row:numberRow,slide_by:slideBy,hide_name:hideName,hide_review:hideReview,hide_price:hidePrice,hide_addcart:hideAddcart,hide_addwishlist:hideAddwishlist,hide_addcompare:hideAddcompare,autoplay:autoPlay,stop_auto:stopAuto,navigation:nav,pagination:dot,loop:isLoop,hide_nav:hideNav,nav_top:navTop,navigation_position:navPos,pagination_position:pagPos,rtl:isRtl,slide_margin:slideMargin,use_catlink:activeCatLink,cat_link:CatLink},success:function(data){if(data!=''){$contentContainer.append(data);$contentContainer.removeClass('div-loading');includeQuickviewAction($);$('button.tocart').on('click',function(event){event.preventDefault();var formEl=$(this).parents('form:first');var data=formEl.serializeArray();var formData=new FormData();for(var i=0;i<data.length;i++){formData.append(data[i].name,data[i].value);}\nformData.append('action_url',formEl.attr('action'));initAjaxAddToCart(formEl,'catalog-add-to-cart-'+$.now(),formEl.attr('action'),formData);});}}});}});}\nfunction initAjaxAddToCart(tag,actionId,url,formData){require(['jquery','MGS_AjaxCart/js/config','Magento_Ui/js/modal/modal'],function($,mgsConfig,modal){var self=this;if(tag.closest('.product-top').length){tag.find('.tocart > span').text('Adding...');}else{if(tag.find('.tocart').length){tag.find('.tocart > span').text('Adding...');}else{tag.find('.tocart > span').text('Adding...');}}\nformData.append(mgsConfig.requestParamName,1);formData.append('ajax',1);jQuery.ajax({url:url,data:formData,type:'post',dataType:'json',contentType:false,cache:false,processData:false,beforeSend:function(xhr,options){if(tag.find('.tocart').length){tag.find('.tocart').addClass('disabled');}else{tag.addClass('disabled');}},success:function(response,status){if(tag.closest('.product-top').length){tag.find('.tocart > span').text('Add to cart');}\nif(tag.find('.tocart').length){tag.find('.tocart > span').text('Add to cart');tag.find('.tocart').removeClass('disabled');}else{tag.find('.tocart > span').text('Add to cart');tag.removeClass('disabled');}\nif(status=='success'){if(response.backUrl){formData.append('action_url',response.backUrl);initAjaxAddToCart(tag,actionId,response.backUrl,formData);}else{if(response.ui){if(response.productView){$('#ajaxcart_loading_overlay').addClass('loading');if($('body.catalog-product-view').length>0){$('body').addClass('origin-catalog-product-view');}else{$('body').addClass('catalog-product-view');}\n$.ajax({url:response.ui,dataType:'json',success:function(result){$('#ajaxcart_loading_overlay').removeClass('loading');if(result.product_detail){$('body').append('<div id=\"ajaxcart_form_popup'+result.id_product+'\" class=\"product_quickview_content\"></div>');var options={type:'popup',modalClass:\"ajaxCartForm viewBox\",responsive:true,innerScroll:true,title:false,buttons:false};var popup=modal(options,$('#ajaxcart_form_popup'+result.id_product));$('#ajaxcart_form_popup'+result.id_product).html(result.product_detail);$('#ajaxcart_form_popup'+result.id_product).trigger('contentUpdated');$('#ajaxcart_form_popup'+result.id_product).modal('openModal').on('modalclosed',function(){$('#ajaxcart_form_popup'+result.id_product).parents('.ajaxCartForm').remove();$('body:not(.origin-catalog-product-view)').removeClass('catalog-product-view');});}}});}else{if(response.animationType=='popup'){$('body').append('<div id=\"popup_ajaxcart_success\" class=\"popup__main popup--result\"></div>');var options={type:'popup',modalClass:\"success-ajax--popup viewBox\",responsive:true,innerScroll:true,title:false,buttons:false};var popup=modal(options,$('#popup_ajaxcart_success'));$('#popup_ajaxcart_success').html(response.ui+response.related);$('#popup_ajaxcart_success').trigger('contentUpdated');$('#popup_ajaxcart_success').modal('openModal').on('modalclosed',function(){$('#popup_ajaxcart_success').parents('.success-ajax--popup').remove();});}else if(response.animationType=='flycart'){var $source='';if(tag.find('.tocart').length){if(tag.closest('.product-item-info').length){$source=tag.closest('.product-item-info');}else{$source=tag.find('.tocart');}}else{tag.removeClass('disabled');$source=tag.closest('.product-item-info');}\nvar $animatedObject=jQuery('<div class=\"flycart-animated-add\" style=\"position: absolute;z-index: 99999;\">'+response.image+'</div>');var $_left=$source.offset().left-1;var $_top=$source.offset().top-1;$animatedObject.css({top:$_top,left:$_left});jQuery('html').append($animatedObject);if(jQuery(window).width()>767){var gotoX=jQuery(\"#fixed-cart-footer\").offset().left+20;var gotoY=jQuery(\"#fixed-cart-footer\").offset().top;jQuery('#footer-cart-trigger').addClass('active');jQuery('#footer-mini-cart').slideDown(300);}else{var gotoX=jQuery(\"#cart-top-action\").offset().left;var gotoY=jQuery(\"#cart-top-action\").offset().top;}\n$animatedObject.animate({opacity:0.6,left:gotoX,top:gotoY},2000,function(){$animatedObject.remove();});}else{$(\"header.page-header\").addClass(\"show-sticky-menu\");$('[data-block=\"minicart\"]').find('[data-role=\"dropdownDialog\"]').dropdownDialog(\"open\");setTimeout(function(){$(\"header.page-header\").removeClass(\"show-sticky-menu\");$('[data-block=\"minicart\"]').find('[data-role=\"dropdownDialog\"]').dropdownDialog(\"close\");},5000);}}}}}},error:function(){window.location.href=mgsConfig.redirectCartUrl;}});});}","MGS_Fbuilder/js/waypoints.min.js":"// Generated by CoffeeScript 1.6.2\n/*\njQuery Waypoints - v2.0.3\nCopyright (c) 2011-2013 Caleb Troughton\nDual licensed under the MIT license and GPL license.\nhttps://github.com/imakewebthings/jquery-waypoints/blob/master/licenses.txt\n*/\n(function(){var t=[].indexOf||function(t){for(var e=0,n=this.length;e<n;e++){if(e in this&&this[e]===t)return e}return-1},e=[].slice;(function(t,e){if(typeof define===\"function\"&&define.amd){return define(\"waypoints\",[\"jquery\"],function(n){return e(n,t)})}else{return e(t.jQuery,t)}})(this,function(n,r){var i,o,l,s,f,u,a,c,h,d,p,y,v,w,g,m;i=n(r);c=t.call(r,\"ontouchstart\")>=0;s={horizontal:{},vertical:{}};f=1;a={};u=\"waypoints-context-id\";p=\"resize.waypoints\";y=\"scroll.waypoints\";v=1;w=\"waypoints-waypoint-ids\";g=\"waypoint\";m=\"waypoints\";o=function(){function t(t){var e=this;this.$element=t;this.element=t[0];this.didResize=false;this.didScroll=false;this.id=\"context\"+f++;this.oldScroll={x:t.scrollLeft(),y:t.scrollTop()};this.waypoints={horizontal:{},vertical:{}};t.data(u,this.id);a[this.id]=this;t.bind(y,function(){var t;if(!(e.didScroll||c)){e.didScroll=true;t=function(){e.doScroll();return e.didScroll=false};return r.setTimeout(t,n[m].settings.scrollThrottle)}});t.bind(p,function(){var t;if(!e.didResize){e.didResize=true;t=function(){n[m](\"refresh\");return e.didResize=false};return r.setTimeout(t,n[m].settings.resizeThrottle)}})}t.prototype.doScroll=function(){var t,e=this;t={horizontal:{newScroll:this.$element.scrollLeft(),oldScroll:this.oldScroll.x,forward:\"right\",backward:\"left\"},vertical:{newScroll:this.$element.scrollTop(),oldScroll:this.oldScroll.y,forward:\"down\",backward:\"up\"}};if(c&&(!t.vertical.oldScroll||!t.vertical.newScroll)){n[m](\"refresh\")}n.each(t,function(t,r){var i,o,l;l=[];o=r.newScroll>r.oldScroll;i=o?r.forward:r.backward;n.each(e.waypoints[t],function(t,e){var n,i;if(r.oldScroll<(n=e.offset)&&n<=r.newScroll){return l.push(e)}else if(r.newScroll<(i=e.offset)&&i<=r.oldScroll){return l.push(e)}});l.sort(function(t,e){return t.offset-e.offset});if(!o){l.reverse()}return n.each(l,function(t,e){if(e.options.continuous||t===l.length-1){return e.trigger([i])}})});return this.oldScroll={x:t.horizontal.newScroll,y:t.vertical.newScroll}};t.prototype.refresh=function(){var t,e,r,i=this;r=n.isWindow(this.element);e=this.$element.offset();this.doScroll();t={horizontal:{contextOffset:r?0:e.left,contextScroll:r?0:this.oldScroll.x,contextDimension:this.$element.width(),oldScroll:this.oldScroll.x,forward:\"right\",backward:\"left\",offsetProp:\"left\"},vertical:{contextOffset:r?0:e.top,contextScroll:r?0:this.oldScroll.y,contextDimension:r?n[m](\"viewportHeight\"):this.$element.height(),oldScroll:this.oldScroll.y,forward:\"down\",backward:\"up\",offsetProp:\"top\"}};return n.each(t,function(t,e){return n.each(i.waypoints[t],function(t,r){var i,o,l,s,f;i=r.options.offset;l=r.offset;o=n.isWindow(r.element)?0:r.$element.offset()[e.offsetProp];if(n.isFunction(i)){i=i.apply(r.element)}else if(typeof i===\"string\"){i=parseFloat(i);if(r.options.offset.indexOf(\"%\")>-1){i=Math.ceil(e.contextDimension*i/100)}}r.offset=o-e.contextOffset+e.contextScroll-i;if(r.options.onlyOnScroll&&l!=null||!r.enabled){return}if(l!==null&&l<(s=e.oldScroll)&&s<=r.offset){return r.trigger([e.backward])}else if(l!==null&&l>(f=e.oldScroll)&&f>=r.offset){return r.trigger([e.forward])}else if(l===null&&e.oldScroll>=r.offset){return r.trigger([e.forward])}})})};t.prototype.checkEmpty=function(){if(n.isEmptyObject(this.waypoints.horizontal)&&n.isEmptyObject(this.waypoints.vertical)){this.$element.unbind([p,y].join(\" \"));return delete a[this.id]}};return t}();l=function(){function t(t,e,r){var i,o;r=n.extend({},n.fn[g].defaults,r);if(r.offset===\"bottom-in-view\"){r.offset=function(){var t;t=n[m](\"viewportHeight\");if(!n.isWindow(e.element)){t=e.$element.height()}return t-n(this).outerHeight()}}this.$element=t;this.element=t[0];this.axis=r.horizontal?\"horizontal\":\"vertical\";this.callback=r.handler;this.context=e;this.enabled=r.enabled;this.id=\"waypoints\"+v++;this.offset=null;this.options=r;e.waypoints[this.axis][this.id]=this;s[this.axis][this.id]=this;i=(o=t.data(w))!=null?o:[];i.push(this.id);t.data(w,i)}t.prototype.trigger=function(t){if(!this.enabled){return}if(this.callback!=null){this.callback.apply(this.element,t)}if(this.options.triggerOnce){return this.destroy()}};t.prototype.disable=function(){return this.enabled=false};t.prototype.enable=function(){this.context.refresh();return this.enabled=true};t.prototype.destroy=function(){delete s[this.axis][this.id];delete this.context.waypoints[this.axis][this.id];return this.context.checkEmpty()};t.getWaypointsByElement=function(t){var e,r;r=n(t).data(w);if(!r){return[]}e=n.extend({},s.horizontal,s.vertical);return n.map(r,function(t){return e[t]})};return t}();d={init:function(t,e){var r;if(e==null){e={}}if((r=e.handler)==null){e.handler=t}this.each(function(){var t,r,i,s;t=n(this);i=(s=e.context)!=null?s:n.fn[g].defaults.context;if(!n.isWindow(i)){i=t.closest(i)}i=n(i);r=a[i.data(u)];if(!r){r=new o(i)}return new l(t,r,e)});n[m](\"refresh\");return this},disable:function(){return d._invoke(this,\"disable\")},enable:function(){return d._invoke(this,\"enable\")},destroy:function(){return d._invoke(this,\"destroy\")},prev:function(t,e){return d._traverse.call(this,t,e,function(t,e,n){if(e>0){return t.push(n[e-1])}})},next:function(t,e){return d._traverse.call(this,t,e,function(t,e,n){if(e<n.length-1){return t.push(n[e+1])}})},_traverse:function(t,e,i){var o,l;if(t==null){t=\"vertical\"}if(e==null){e=r}l=h.aggregate(e);o=[];this.each(function(){var e;e=n.inArray(this,l[t]);return i(o,e,l[t])});return this.pushStack(o)},_invoke:function(t,e){t.each(function(){var t;t=l.getWaypointsByElement(this);return n.each(t,function(t,n){n[e]();return true})});return this}};n.fn[g]=function(){var t,r;r=arguments[0],t=2<=arguments.length?e.call(arguments,1):[];if(d[r]){return d[r].apply(this,t)}else if(n.isFunction(r)){return d.init.apply(this,arguments)}else if(n.isPlainObject(r)){return d.init.apply(this,[null,r])}else if(!r){return n.error(\"jQuery Waypoints needs a callback function or handler option.\")}else{return n.error(\"The \"+r+\" method does not exist in jQuery Waypoints.\")}};n.fn[g].defaults={context:r,continuous:true,enabled:true,horizontal:false,offset:0,triggerOnce:false};h={refresh:function(){return n.each(a,function(t,e){return e.refresh()})},viewportHeight:function(){var t;return(t=r.innerHeight)!=null?t:i.height()},aggregate:function(t){var e,r,i;e=s;if(t){e=(i=a[n(t).data(u)])!=null?i.waypoints:void 0}if(!e){return[]}r={horizontal:[],vertical:[]};n.each(r,function(t,i){n.each(e[t],function(t,e){return i.push(e)});i.sort(function(t,e){return t.offset-e.offset});r[t]=n.map(i,function(t){return t.element});return r[t]=n.unique(r[t])});return r},above:function(t){if(t==null){t=r}return h._filter(t,\"vertical\",function(t,e){return e.offset<=t.oldScroll.y})},below:function(t){if(t==null){t=r}return h._filter(t,\"vertical\",function(t,e){return e.offset>t.oldScroll.y})},left:function(t){if(t==null){t=r}return h._filter(t,\"horizontal\",function(t,e){return e.offset<=t.oldScroll.x})},right:function(t){if(t==null){t=r}return h._filter(t,\"horizontal\",function(t,e){return e.offset>t.oldScroll.x})},enable:function(){return h._invoke(\"enable\")},disable:function(){return h._invoke(\"disable\")},destroy:function(){return h._invoke(\"destroy\")},extendFn:function(t,e){return d[t]=e},_invoke:function(t){var e;e=n.extend({},s.vertical,s.horizontal);return n.each(e,function(e,n){n[t]();return true})},_filter:function(t,e,r){var i,o;i=a[n(t).data(u)];if(!i){return[]}o=[];n.each(i.waypoints[e],function(t,e){if(r(i,e)){return o.push(e)}});o.sort(function(t,e){return t.offset-e.offset});return n.map(o,function(t){return t.element})}};n[m]=function(){var t,n;n=arguments[0],t=2<=arguments.length?e.call(arguments,1):[];if(h[n]){return h[n].apply(null,t)}else{return h.aggregate.call(null,n)}};n[m].settings={resizeThrottle:100,scrollThrottle:30};return i.load(function(){return n[m](\"refresh\")})})}).call(this);","MGS_Fbuilder/js/timer.min.js":"if(typeof(BackColor)==\"undefined\")\nBackColor=\"white\";if(typeof(ForeColor)==\"undefined\")\nForeColor=\"black\";if(typeof(DisplayFormat)==\"undefined\")\nDisplayFormat=\"<span class='days'>%%D%%</span><span class='hours'>%%H%%</span><span class='mins'>%%M%%</span><span class='secs'>%%S%%</span>\";if(typeof(CountActive)==\"undefined\")\nCountActive=true;if(typeof(FinishMessage)==\"undefined\")\nFinishMessage=\"\";if(typeof(CountStepper)!=\"number\")\nCountStepper=-1;if(typeof(LeadingZero)==\"undefined\")\nLeadingZero=true;CountStepper=Math.ceil(CountStepper);if(CountStepper==0)\nCountActive=false;var SetTimeOutPeriod=(Math.abs(CountStepper)-1)*1000+990;function calcage(secs,num1,num2){s=((Math.floor(secs/num1)%num2)).toString();if(LeadingZero&&s.length<2)\ns=\"0\"+s;return\"<b>\"+s+\"</b>\";}\nfunction CountBack(secs,iid,j){if(secs<0){document.getElementById(iid).innerHTML=FinishMessage;document.getElementById('caption'+j).style.display=\"none\";document.getElementById('heading'+j).style.display=\"none\";return;}\nDisplayStr=DisplayFormat.replace(/%%D%%/g,calcage(secs,86400,100000));DisplayStr=DisplayStr.replace(/%%H%%/g,calcage(secs,3600,24));DisplayStr=DisplayStr.replace(/%%M%%/g,calcage(secs,60,60));DisplayStr=DisplayStr.replace(/%%S%%/g,calcage(secs,1,60));document.getElementById(iid).innerHTML=DisplayStr;if(CountActive)\nsetTimeout(function(){CountBack((secs+CountStepper),iid,j)},SetTimeOutPeriod);}","MGS_Fbuilder/js/owl.carousel.min.js":"!function(h,i,s,o){function l(t,e){this.settings=null,this.options=h.extend({},l.Defaults,e),this.$element=h(t),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:[\"busy\"],animating:[\"busy\"],dragging:[\"interacting\"]}},h.each([\"onResize\",\"onThrottledResize\"],h.proxy(function(t,e){this._handlers[e]=h.proxy(this[e],this)},this)),h.each(l.Plugins,h.proxy(function(t,e){this._plugins[t.charAt(0).toLowerCase()+t.slice(1)]=new e(this)},this)),h.each(l.Workers,h.proxy(function(t,e){this._pipe.push({filter:e.filter,run:h.proxy(e.run,this)})},this)),this.setup(),this.initialize()}l.Defaults={items:3,loop:!1,center:!1,rewind:!1,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:i,fallbackEasing:\"swing\",info:!1,nestedItemSelector:!1,itemElement:\"div\",stageElement:\"div\",refreshClass:\"owl-refresh\",loadedClass:\"owl-loaded\",loadingClass:\"owl-loading\",rtlClass:\"owl-rtl\",responsiveClass:\"owl-responsive\",dragClass:\"owl-drag\",itemClass:\"owl-item\",stageClass:\"owl-stage\",stageOuterClass:\"owl-stage-outer\",grabClass:\"owl-grab\"},l.Width={Default:\"default\",Inner:\"inner\",Outer:\"outer\"},l.Type={Event:\"event\",State:\"state\"},l.Plugins={},l.Workers=[{filter:[\"width\",\"settings\"],run:function(){this._width=this.$element.width()}},{filter:[\"width\",\"items\",\"settings\"],run:function(t){t.current=this._items&&this._items[this.relative(this._current)]}},{filter:[\"items\",\"settings\"],run:function(){this.$stage.children(\".cloned\").remove()}},{filter:[\"width\",\"items\",\"settings\"],run:function(t){var e=this.settings.margin||\"\",i=!this.settings.autoWidth,s=this.settings.rtl,s={width:\"auto\",\"margin-left\":s?e:\"\",\"margin-right\":s?\"\":e};i||this.$stage.children().css(s),t.css=s}},{filter:[\"width\",\"items\",\"settings\"],run:function(t){var e=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,i=null,s=this._items.length,n=!this.settings.autoWidth,o=[];for(t.items={merge:!1,width:e};s--;)i=this._mergers[s],i=this.settings.mergeFit&&Math.min(i,this.settings.items)||i,t.items.merge=1<i||t.items.merge,o[s]=n?e*i:this._items[s].width();this._widths=o}},{filter:[\"items\",\"settings\"],run:function(){var t=[],e=this._items,i=this.settings,s=Math.max(2*i.items,4),n=2*Math.ceil(e.length/2),o=i.loop&&e.length?i.rewind?s:Math.max(s,n):0,r=\"\",a=\"\";for(o/=2;o--;)t.push(this.normalize(t.length/2,!0)),r+=e[t[t.length-1]][0].outerHTML,t.push(this.normalize(e.length-1-(t.length-1)/2,!0)),a=e[t[t.length-1]][0].outerHTML+a;this._clones=t,h(r).addClass(\"cloned\").appendTo(this.$stage),h(a).addClass(\"cloned\").prependTo(this.$stage)}},{filter:[\"width\",\"items\",\"settings\"],run:function(){for(var t,e,i=this.settings.rtl?1:-1,s=this._clones.length+this._items.length,n=-1,o=[];++n<s;)t=o[n-1]||0,e=this._widths[this.relative(n)]+this.settings.margin,o.push(t+e*i);this._coordinates=o}},{filter:[\"width\",\"items\",\"settings\"],run:function(){var t=this.settings.stagePadding,e=this._coordinates,e={width:Math.ceil(Math.abs(e[e.length-1]))+2*t,\"padding-left\":t||\"\",\"padding-right\":t||\"\"};this.$stage.css(e)}},{filter:[\"width\",\"items\",\"settings\"],run:function(t){var e=this._coordinates.length,i=!this.settings.autoWidth,s=this.$stage.children();if(i&&t.items.merge)for(;e--;)t.css.width=this._widths[this.relative(e)],s.eq(e).css(t.css);else i&&(t.css.width=t.items.width,s.css(t.css))}},{filter:[\"items\"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr(\"style\")}},{filter:[\"width\",\"items\",\"settings\"],run:function(t){t.current=t.current?this.$stage.children().index(t.current):0,t.current=Math.max(this.minimum(),Math.min(this.maximum(),t.current)),this.reset(t.current)}},{filter:[\"position\"],run:function(){this.animate(this.coordinates(this._current))}},{filter:[\"width\",\"position\",\"items\",\"settings\"],run:function(){for(var t,e,i=this.settings.rtl?1:-1,s=2*this.settings.stagePadding,n=this.coordinates(this.current())+s,o=n+this.width()*i,r=[],a=0,h=this._coordinates.length;a<h;a++)t=this._coordinates[a-1]||0,e=Math.abs(this._coordinates[a])+s*i,(this.op(t,\"<=\",n)&&this.op(t,\">\",o)||this.op(e,\"<\",n)&&this.op(e,\">\",o))&&r.push(a);this.$stage.children(\".active\").removeClass(\"active\"),this.$stage.children(\":eq(\"+r.join(\"), :eq(\")+\")\").addClass(\"active\"),this.settings.center&&(this.$stage.children(\".center\").removeClass(\"center\"),this.$stage.children().eq(this.current()).addClass(\"center\"))}}],l.prototype.initialize=function(){var t,e;this.enter(\"initializing\"),this.trigger(\"initialize\"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is(\"pre-loading\")&&(t=this.$element.find(\"img\"),e=this.settings.nestedItemSelector?\".\"+this.settings.nestedItemSelector:o,e=this.$element.children(e).width(),t.length&&e<=0&&this.preloadAutoWidthImages(t)),this.$element.addClass(this.options.loadingClass),this.$stage=h(\"<\"+this.settings.stageElement+' class=\"'+this.settings.stageClass+'\"/>').wrap('<div class=\"'+this.settings.stageOuterClass+'\"/>'),this.$element.append(this.$stage.parent()),this.replace(this.$element.children().not(this.$stage.parent())),this.$element.is(\":visible\")?this.refresh():this.invalidate(\"width\"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass),this.registerEventHandlers(),this.leave(\"initializing\"),this.trigger(\"initialized\")},l.prototype.setup=function(){var e=this.viewport(),t=this.options.responsive,i=-1,s=null;t?(h.each(t,function(t){t<=e&&i<t&&(i=Number(t))}),\"function\"==typeof(s=h.extend({},this.options,t[i])).stagePadding&&(s.stagePadding=s.stagePadding()),delete s.responsive,s.responsiveClass&&this.$element.attr(\"class\",this.$element.attr(\"class\").replace(new RegExp(\"(\"+this.options.responsiveClass+\"-)\\\\S+\\\\s\",\"g\"),\"$1\"+i))):s=h.extend({},this.options),this.trigger(\"change\",{property:{name:\"settings\",value:s}}),this._breakpoint=i,this.settings=s,this.invalidate(\"settings\"),this.trigger(\"changed\",{property:{name:\"settings\",value:this.settings}})},l.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},l.prototype.prepare=function(t){var e=this.trigger(\"prepare\",{content:t});return e.data||(e.data=h(\"<\"+this.settings.itemElement+\"/>\").addClass(this.options.itemClass).append(t)),this.trigger(\"prepared\",{content:e.data}),e.data},l.prototype.update=function(){for(var t=0,e=this._pipe.length,i=h.proxy(function(t){return this[t]},this._invalidated),s={};t<e;)(this._invalidated.all||0<h.grep(this._pipe[t].filter,i).length)&&this._pipe[t].run(s),t++;this._invalidated={},this.is(\"valid\")||this.enter(\"valid\")},l.prototype.width=function(t){switch(t=t||l.Width.Default){case l.Width.Inner:case l.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},l.prototype.refresh=function(){this.enter(\"refreshing\"),this.trigger(\"refresh\"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave(\"refreshing\"),this.trigger(\"refreshed\")},l.prototype.onThrottledResize=function(){i.clearTimeout(this.resizeTimer),this.resizeTimer=i.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},l.prototype.onResize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!!this.$element.is(\":visible\")&&(this.enter(\"resizing\"),this.trigger(\"resize\").isDefaultPrevented()?(this.leave(\"resizing\"),!1):(this.invalidate(\"width\"),this.refresh(),this.leave(\"resizing\"),void this.trigger(\"resized\")))))},l.prototype.registerEventHandlers=function(){h.support.transition&&this.$stage.on(h.support.transition.end+\".owl.core\",h.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(i,\"resize\",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on(\"mousedown.owl.core\",h.proxy(this.onDragStart,this)),this.$stage.on(\"dragstart.owl.core selectstart.owl.core\",function(){return!1})),this.settings.touchDrag&&(this.$stage.on(\"touchstart.owl.core\",h.proxy(this.onDragStart,this)),this.$stage.on(\"touchcancel.owl.core\",h.proxy(this.onDragEnd,this)))},l.prototype.onDragStart=function(t){var e=null;3!==t.which&&(e=h.support.transform?{x:(e=this.$stage.css(\"transform\").replace(/.*\\(|\\)| /g,\"\").split(\",\"))[16===e.length?12:4],y:e[16===e.length?13:5]}:(e=this.$stage.position(),{x:this.settings.rtl?e.left+this.$stage.width()-this.width()+this.settings.margin:e.left,y:e.top}),this.is(\"animating\")&&(h.support.transform?this.animate(e.x):this.$stage.stop(),this.invalidate(\"position\")),this.$element.toggleClass(this.options.grabClass,\"mousedown\"===t.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=h(t.target),this._drag.stage.start=e,this._drag.stage.current=e,this._drag.pointer=this.pointer(t),h(s).on(\"mouseup.owl.core touchend.owl.core\",h.proxy(this.onDragEnd,this)),h(s).one(\"mousemove.owl.core touchmove.owl.core\",h.proxy(function(t){var e=this.difference(this._drag.pointer,this.pointer(t));h(s).on(\"mousemove.owl.core touchmove.owl.core\",h.proxy(this.onDragMove,this)),Math.abs(e.x)<Math.abs(e.y)&&this.is(\"valid\")||(t.preventDefault(),this.enter(\"dragging\"),this.trigger(\"drag\"))},this)))},l.prototype.onDragMove=function(t){var e=null,i=null,s=this.difference(this._drag.pointer,this.pointer(t)),n=this.difference(this._drag.stage.start,s);this.is(\"dragging\")&&(t.preventDefault(),this.settings.loop?(e=this.coordinates(this.minimum()),i=this.coordinates(this.maximum()+1)-e,n.x=((n.x-e)%i+i)%i+e):(e=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),i=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),t=this.settings.pullDrag?-1*s.x/5:0,n.x=Math.max(Math.min(n.x,e+t),i+t)),this._drag.stage.current=n,this.animate(n.x))},l.prototype.onDragEnd=function(t){var t=this.difference(this._drag.pointer,this.pointer(t)),e=this._drag.stage.current,i=0<t.x^this.settings.rtl?\"left\":\"right\";h(s).off(\".owl.core\"),this.$element.removeClass(this.options.grabClass),(0!==t.x&&this.is(\"dragging\")||!this.is(\"valid\"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(e.x,0!==t.x?i:this._drag.direction)),this.invalidate(\"position\"),this.update(),this._drag.direction=i,(3<Math.abs(t.x)||300<(new Date).getTime()-this._drag.time)&&this._drag.target.one(\"click.owl.core\",function(){return!1})),this.is(\"dragging\")&&(this.leave(\"dragging\"),this.trigger(\"dragged\"))},l.prototype.closest=function(i,s){var n=-1,o=this.width(),r=this.coordinates();return this.settings.freeDrag||h.each(r,h.proxy(function(t,e){return\"left\"===s&&e-30<i&&i<e+30?n=t:\"right\"===s&&e-o-30<i&&i<e-o+30?n=t+1:this.op(i,\"<\",e)&&this.op(i,\">\",r[t+1]||e-o)&&(n=\"left\"===s?t+1:t),-1===n},this)),this.settings.loop||(this.op(i,\">=\",r[this.minimum()])?n=i=this.minimum():this.op(i,\"<\",r[this.maximum()])&&(n=i=this.maximum())),n},l.prototype.animate=function(t){var e=0<this.speed();this.is(\"animating\")&&this.onTransitionEnd(),e&&(this.enter(\"animating\"),this.trigger(\"translate\")),h.support.transform3d&&h.support.transition?this.$stage.css({transform:\"translate3d(\"+t+\"px,0px,0px)\",transition:this.speed()/1e3+\"s\"}):e?this.$stage.animate({left:t+\"px\"},this.speed(),this.settings.fallbackEasing,h.proxy(this.onTransitionEnd,this)):this.$stage.css({left:t+\"px\"})},l.prototype.is=function(t){return this._states.current[t]&&0<this._states.current[t]},l.prototype.current=function(t){return t===o?this._current:0===this._items.length?o:(t=this.normalize(t),this._current!==t&&((e=this.trigger(\"change\",{property:{name:\"position\",value:t}})).data!==o&&(t=this.normalize(e.data)),this._current=t,this.invalidate(\"position\"),this.trigger(\"changed\",{property:{name:\"position\",value:this._current}})),this._current);},l.prototype.invalidate=function(t){return\"string\"==typeof t&&(this._invalidated[t]=!0,this.is(\"valid\")&&this.leave(\"valid\")),h.map(this._invalidated,function(t,e){return e})},l.prototype.reset=function(t){(t=this.normalize(t))!==o&&(this._speed=0,this._current=t,this.suppress([\"translate\",\"translated\"]),this.animate(this.coordinates(t)),this.release([\"translate\",\"translated\"]))},l.prototype.normalize=function(t,e){var i=this._items.length,e=e?0:this._clones.length;return!this.isNumeric(t)||i<1?t=o:(t<0||i+e<=t)&&(t=((t-e/2)%i+i)%i+e/2),t},l.prototype.relative=function(t){return t-=this._clones.length/2,this.normalize(t,!0)},l.prototype.maximum=function(t){var e,i,s,n=this.settings,o=this._coordinates.length;if(n.loop)o=this._clones.length/2+this._items.length-1;else if(n.autoWidth||n.merge){for(e=this._items.length,i=this._items[--e].width(),s=this.$element.width();e--&&!(s<(i+=this._items[e].width()+this.settings.margin)););o=e+1}else o=n.center?this._items.length-1:this._items.length-n.items;return t&&(o-=this._clones.length/2),Math.max(o,0)},l.prototype.minimum=function(t){return t?0:this._clones.length/2},l.prototype.items=function(t){return t===o?this._items.slice():(t=this.normalize(t,!0),this._items[t])},l.prototype.mergers=function(t){return t===o?this._mergers.slice():(t=this.normalize(t,!0),this._mergers[t])},l.prototype.clones=function(i){function s(t){return t%2==0?n+t/2:e-(t+1)/2}var e=this._clones.length/2,n=e+this._items.length;return i===o?h.map(this._clones,function(t,e){return s(e)}):h.map(this._clones,function(t,e){return t===i?s(e):null})},l.prototype.speed=function(t){return t!==o&&(this._speed=t),this._speed},l.prototype.coordinates=function(t){var e,i=1,s=t-1;return t===o?h.map(this._coordinates,h.proxy(function(t,e){return this.coordinates(e)},this)):(this.settings.center?(this.settings.rtl&&(i=-1,s=t+1),e=this._coordinates[t],t=this.settings.rtl?this._coordinates[0]+this._coordinates[this._coordinates.length-1]:0,e+=(this.width()-e+(this._coordinates[s]||t))/2*i):e=this._coordinates[s]||0,Math.ceil(e))},l.prototype.duration=function(t,e,i){return 0===i?0:Math.min(Math.max(Math.abs(e-t),1),6)*Math.abs(i||this.settings.smartSpeed)},l.prototype.to=function(t,e){var i=this.current(),s=t-this.relative(i),n=(0<s)-(s<0),o=this._items.length,r=this.minimum(),a=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(s)>o/2&&(s+=-1*n*o),(n=(((t=i+s)-r)%o+o)%o+r)!==t&&n-s<=a&&0<n-s&&this.reset(i=(t=n)-s)):t=this.settings.rewind?(t%(a+=1)+a)%a:Math.max(r,Math.min(a,t)),this.speed(this.duration(i,t,e)),this.current(t),this.$element.is(\":visible\")&&this.update()},l.prototype.next=function(t){t=t||!1,this.to(this.relative(this.current())+1,t)},l.prototype.prev=function(t){t=t||!1,this.to(this.relative(this.current())-1,t)},l.prototype.onTransitionEnd=function(t){if(t!==o&&(t.stopPropagation(),(t.target||t.srcElement||t.originalTarget)!==this.$stage.get(0)))return!1;this.leave(\"animating\"),this.trigger(\"translated\")},l.prototype.viewport=function(){var t;if(this.options.responsiveBaseElement!==i)t=h(this.options.responsiveBaseElement).width();else if(i.innerWidth)t=i.innerWidth;else{if(!s.documentElement||!s.documentElement.clientWidth)throw\"Can not detect viewport width.\";t=s.documentElement.clientWidth}return t},l.prototype.replace=function(t){this.$stage.empty(),this._items=[],t=t&&(t instanceof jQuery?t:h(t)),(t=this.settings.nestedItemSelector?t.find(\".\"+this.settings.nestedItemSelector):t).filter(function(){return 1===this.nodeType}).each(h.proxy(function(t,e){e=this.prepare(e),this.$stage.append(e),this._items.push(e),this._mergers.push(+e.find(\"[data-merge]\").addBack(\"[data-merge]\").attr(\"data-merge\")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate(\"items\")},l.prototype.add=function(t,e){var i=this.relative(this._current);e=e===o?this._items.length:this.normalize(e,!0),t=t instanceof jQuery?t:h(t),this.trigger(\"add\",{content:t,position:e}),t=this.prepare(t),0===this._items.length||e===this._items.length?(0===this._items.length&&this.$stage.append(t),0!==this._items.length&&this._items[e-1].after(t),this._items.push(t),this._mergers.push(+t.find(\"[data-merge]\").addBack(\"[data-merge]\").attr(\"data-merge\")||1)):(this._items[e].before(t),this._items.splice(e,0,t),this._mergers.splice(e,0,+t.find(\"[data-merge]\").addBack(\"[data-merge]\").attr(\"data-merge\")||1)),this._items[i]&&this.reset(this._items[i].index()),this.invalidate(\"items\"),this.trigger(\"added\",{content:t,position:e})},l.prototype.remove=function(t){(t=this.normalize(t,!0))!==o&&(this.trigger(\"remove\",{content:this._items[t],position:t}),this._items[t].remove(),this._items.splice(t,1),this._mergers.splice(t,1),this.invalidate(\"items\"),this.trigger(\"removed\",{content:null,position:t}))},l.prototype.preloadAutoWidthImages=function(t){t.each(h.proxy(function(t,e){this.enter(\"pre-loading\"),e=h(e),h(new Image).one(\"load\",h.proxy(function(t){e.attr(\"src\",t.target.src),e.css(\"opacity\",1),this.leave(\"pre-loading\"),this.is(\"pre-loading\")||this.is(\"initializing\")||this.refresh()},this)).attr(\"src\",e.attr(\"src\")||e.attr(\"data-src\")||e.attr(\"data-src-retina\"))},this))},l.prototype.destroy=function(){for(var t in this.$element.off(\".owl.core\"),this.$stage.off(\".owl.core\"),h(s).off(\".owl.core\"),!1!==this.settings.responsive&&(i.clearTimeout(this.resizeTimer),this.off(i,\"resize\",this._handlers.onThrottledResize)),this._plugins)this._plugins[t].destroy();this.$stage.children(\".cloned\").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr(\"class\",this.$element.attr(\"class\").replace(new RegExp(this.options.responsiveClass+\"-\\\\S+\\\\s\",\"g\"),\"\")).removeData(\"owl.carousel\")},l.prototype.op=function(t,e,i){var s=this.settings.rtl;switch(e){case\"<\":return s?i<t:t<i;case\">\":return s?t<i:i<t;case\">=\":return s?t<=i:i<=t;case\"<=\":return s?i<=t:t<=i}},l.prototype.on=function(t,e,i,s){t.addEventListener?t.addEventListener(e,i,s):t.attachEvent&&t.attachEvent(\"on\"+e,i)},l.prototype.off=function(t,e,i,s){t.removeEventListener?t.removeEventListener(e,i,s):t.detachEvent&&t.detachEvent(\"on\"+e,i)},l.prototype.trigger=function(t,e,i,s,n){var o={item:{count:this._items.length,index:this.current()}},r=h.camelCase(h.grep([\"on\",t,i],function(t){return t}).join(\"-\").toLowerCase()),a=h.Event([t,\"owl\",i||\"carousel\"].join(\".\").toLowerCase(),h.extend({relatedTarget:this},o,e));return this._supress[t]||(h.each(this._plugins,function(t,e){e.onTrigger&&e.onTrigger(a)}),this.register({type:l.Type.Event,name:t}),this.$element.trigger(a),this.settings&&\"function\"==typeof this.settings[r]&&this.settings[r].call(this,a)),a},l.prototype.enter=function(t){h.each([t].concat(this._states.tags[t]||[]),h.proxy(function(t,e){this._states.current[e]===o&&(this._states.current[e]=0),this._states.current[e]++},this))},l.prototype.leave=function(t){h.each([t].concat(this._states.tags[t]||[]),h.proxy(function(t,e){this._states.current[e]--},this))},l.prototype.register=function(i){var e;i.type===l.Type.Event?(h.event.special[i.name]||(h.event.special[i.name]={}),h.event.special[i.name].owl||(e=h.event.special[i.name]._default,h.event.special[i.name]._default=function(t){return!e||!e.apply||t.namespace&&-1!==t.namespace.indexOf(\"owl\")?t.namespace&&-1<t.namespace.indexOf(\"owl\"):e.apply(this,arguments)},h.event.special[i.name].owl=!0)):i.type===l.Type.State&&(this._states.tags[i.name]?this._states.tags[i.name]=this._states.tags[i.name].concat(i.tags):this._states.tags[i.name]=i.tags,this._states.tags[i.name]=h.grep(this._states.tags[i.name],h.proxy(function(t,e){return h.inArray(t,this._states.tags[i.name])===e},this)))},l.prototype.suppress=function(t){h.each(t,h.proxy(function(t,e){this._supress[e]=!0},this))},l.prototype.release=function(t){h.each(t,h.proxy(function(t,e){delete this._supress[e]},this))},l.prototype.pointer=function(t){var e={x:null,y:null};return(t=(t=t.originalEvent||t||i.event).touches&&t.touches.length?t.touches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t).pageX?(e.x=t.pageX,e.y=t.pageY):(e.x=t.clientX,e.y=t.clientY),e},l.prototype.isNumeric=function(t){return!isNaN(parseFloat(t))},l.prototype.difference=function(t,e){return{x:t.x-e.x,y:t.y-e.y}},h.fn.owlCarousel=function(e){var s=Array.prototype.slice.call(arguments,1);return this.each(function(){var t=h(this),i=t.data(\"owl.carousel\");i||(i=new l(this,\"object\"==typeof e&&e),t.data(\"owl.carousel\",i),h.each([\"next\",\"prev\",\"to\",\"destroy\",\"refresh\",\"replace\",\"add\",\"remove\"],function(t,e){i.register({type:l.Type.Event,name:e}),i.$element.on(e+\".owl.carousel.core\",h.proxy(function(t){t.namespace&&t.relatedTarget!==this&&(this.suppress([e]),i[e].apply(this,[].slice.call(arguments,1)),this.release([e]))},i))})),\"string\"==typeof e&&\"_\"!==e.charAt(0)&&i[e].apply(i,s)})},h.fn.owlCarousel.Constructor=l}(window.Zepto||window.jQuery,window,document),function(e,i){function s(t){this._core=t,this._interval=null,this._visible=null,this._handlers={\"initialized.owl.carousel\":e.proxy(function(t){t.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=e.extend({},s.Defaults,this._core.options),this._core.$element.on(this._handlers)}s.Defaults={autoRefresh:!0,autoRefreshInterval:500},s.prototype.watch=function(){this._interval||(this._visible=this._core.$element.is(\":visible\"),this._interval=i.setInterval(e.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},s.prototype.refresh=function(){this._core.$element.is(\":visible\")!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass(\"owl-hidden\",!this._visible),this._visible&&this._core.invalidate(\"width\")&&this._core.refresh())},s.prototype.destroy=function(){var t,e;for(t in i.clearInterval(this._interval),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))\"function\"!=typeof this[e]&&(this[e]=null)},e.fn.owlCarousel.Constructor.Plugins.AutoRefresh=s}(window.Zepto||window.jQuery,window,document),function(a,n){function e(t){this._core=t,this._loaded=[],this._handlers={\"initialized.owl.carousel change.owl.carousel resized.owl.carousel\":a.proxy(function(t){if(t.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(t.property&&\"position\"==t.property.name||\"initialized\"==t.type))for(var e=this._core.settings,i=e.center&&Math.ceil(e.items/2)||e.items,s=e.center&&-1*i||0,n=(t.property&&void 0!==t.property.value?t.property.value:this._core.current())+s,o=this._core.clones().length,r=a.proxy(function(t,e){this.load(e)},this);s++<i;)this.load(o/2+this._core.relative(n)),o&&a.each(this._core.clones(this._core.relative(n)),r),n++},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)}e.Defaults={lazyLoad:!1},e.prototype.load=function(t){var t=this._core.$stage.children().eq(t),e=t&&t.find(\".owl-lazy\");!e||-1<a.inArray(t.get(0),this._loaded)||(e.each(a.proxy(function(t,e){var i=a(e),s=1<n.devicePixelRatio&&i.attr(\"data-src-retina\")||i.attr(\"data-src\");this._core.trigger(\"load\",{element:i,url:s},\"lazy\"),i.is(\"img\")?i.one(\"load.owl.lazy\",a.proxy(function(){i.css(\"opacity\",1),this._core.trigger(\"loaded\",{element:i,url:s},\"lazy\")},this)).attr(\"src\",s):((e=new Image).onload=a.proxy(function(){i.css({\"background-image\":\"url(\"+s+\")\",opacity:\"1\"}),this._core.trigger(\"loaded\",{element:i,url:s},\"lazy\")},this),e.src=s)},this)),this._loaded.push(t.get(0)))},e.prototype.destroy=function(){var t,e;for(t in this.handlers)this._core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))\"function\"!=typeof this[e]&&(this[e]=null)},a.fn.owlCarousel.Constructor.Plugins.Lazy=e}(window.Zepto||window.jQuery,window,document),function(s){function e(t){this._core=t,this._handlers={\"initialized.owl.carousel refreshed.owl.carousel\":s.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&this.update()},this),\"changed.owl.carousel\":s.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&\"position\"==t.property.name&&this.update()},this),\"loaded.owl.lazy\":s.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&t.element.closest(\".\"+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=s.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)}e.Defaults={autoHeight:!1,autoHeightClass:\"owl-height\"},e.prototype.update=function(){var t=this._core._current,e=t+this._core.settings.items,t=this._core.$stage.children().toArray().slice(t,e),i=[];s.each(t,function(t,e){i.push(s(e).height())}),e=Math.max.apply(null,i),this._core.$stage.parent().height(e).addClass(this._core.settings.autoHeightClass)},e.prototype.destroy=function(){var t,e;for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))\"function\"!=typeof this[e]&&(this[e]=null)},s.fn.owlCarousel.Constructor.Plugins.AutoHeight=e}(window.Zepto||window.jQuery,(window,document)),function(c,e){function i(t){this._core=t,this._videos={},this._playing=null,this._handlers={\"initialized.owl.carousel\":c.proxy(function(t){t.namespace&&this._core.register({type:\"state\",name:\"playing\",tags:[\"interacting\"]})},this),\"resize.owl.carousel\":c.proxy(function(t){t.namespace&&this._core.settings.video&&this.isInFullScreen()&&t.preventDefault()},this),\"refreshed.owl.carousel\":c.proxy(function(t){t.namespace&&this._core.is(\"resizing\")&&this._core.$stage.find(\".cloned .owl-video-frame\").remove()},this),\"changed.owl.carousel\":c.proxy(function(t){t.namespace&&\"position\"===t.property.name&&this._playing&&this.stop()},this),\"prepared.owl.carousel\":c.proxy(function(t){var e;!t.namespace||(e=c(t.content).find(\".owl-video\")).length&&(e.css(\"display\",\"none\"),this.fetch(e,c(t.content)))},this)},this._core.options=c.extend({},i.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on(\"click.owl.video\",\".owl-video-play-icon\",c.proxy(function(t){this.play(t)},this))}i.Defaults={video:!1,videoHeight:!1,videoWidth:!1},i.prototype.fetch=function(t,e){var i=t.attr(\"data-vimeo-id\")?\"vimeo\":t.attr(\"data-vzaar-id\")?\"vzaar\":\"youtube\",s=t.attr(\"data-vimeo-id\")||t.attr(\"data-youtube-id\")||t.attr(\"data-vzaar-id\"),n=t.attr(\"data-width\")||this._core.settings.videoWidth,o=t.attr(\"data-height\")||this._core.settings.videoHeight,r=t.attr(\"href\");if(!r)throw new Error(\"Missing video URL.\");if(-1<(s=r.match(/(http:|https:|)\\/\\/(player.|www.|app.)?(vimeo\\.com|youtu(be\\.com|\\.be|be\\.googleapis\\.com)|vzaar\\.com)\\/(video\\/|videos\\/|embed\\/|channels\\/.+\\/|groups\\/.+\\/|watch\\?v=|v\\/)?([A-Za-z0-9._%-]*)(\\&\\S+)?/))[3].indexOf(\"youtu\"))i=\"youtube\";else if(-1<s[3].indexOf(\"vimeo\"))i=\"vimeo\";else{if(!(-1<s[3].indexOf(\"vzaar\")))throw new Error(\"Video URL not supported.\");i=\"vzaar\"}s=s[6],this._videos[r]={type:i,id:s,width:n,height:o},e.attr(\"data-video\",r),this.thumbnail(t,this._videos[r])},i.prototype.thumbnail=function(e,t){function i(t){s=l.lazyLoad?'<div class=\"owl-video-tn '+h+'\" '+a+'=\"'+t+'\"></div>':'<div class=\"owl-video-tn\" style=\"opacity:1;background-image:url('+t+')\"></div>',e.after(s),e.after('<div class=\"owl-video-play-icon\"></div>')}var s,n,o=t.width&&t.height?'style=\"width:'+t.width+\"px;height:\"+t.height+'px;\"':\"\",r=e.find(\"img\"),a=\"src\",h=\"\",l=this._core.settings;if(e.wrap('<div class=\"owl-video-wrapper\"'+o+\"></div>\"),this._core.settings.lazyLoad&&(a=\"data-src\",h=\"owl-lazy\"),r.length)return i(r.attr(a)),r.remove(),!1;\"youtube\"===t.type?(n=\"//img.youtube.com/vi/\"+t.id+\"/hqdefault.jpg\",i(n)):\"vimeo\"===t.type?c.ajax({type:\"GET\",url:\"//vimeo.com/api/v2/video/\"+t.id+\".json\",jsonp:\"callback\",dataType:\"jsonp\",success:function(t){n=t[0].thumbnail_large,i(n)}}):\"vzaar\"===t.type&&c.ajax({type:\"GET\",url:\"//vzaar.com/api/videos/\"+t.id+\".json\",jsonp:\"callback\",dataType:\"jsonp\",success:function(t){n=t.framegrab_url,i(n)}})},i.prototype.stop=function(){this._core.trigger(\"stop\",null,\"video\"),this._playing.find(\".owl-video-frame\").remove(),this._playing.removeClass(\"owl-video-playing\"),this._playing=null,this._core.leave(\"playing\"),this._core.trigger(\"stopped\",null,\"video\")},i.prototype.play=function(t){var e,t=c(t.target).closest(\".\"+this._core.settings.itemClass),i=this._videos[t.attr(\"data-video\")],s=i.width||\"100%\",n=i.height||this._core.$stage.height();this._playing||(this._core.enter(\"playing\"),this._core.trigger(\"play\",null,\"video\"),t=this._core.items(this._core.relative(t.index())),this._core.reset(t.index()),\"youtube\"===i.type?e='<iframe width=\"'+s+'\" height=\"'+n+'\" src=\"//www.youtube.com/embed/'+i.id+\"?autoplay=1&v=\"+i.id+'\" frameborder=\"0\" allowfullscreen></iframe>':\"vimeo\"===i.type?e='<iframe src=\"//player.vimeo.com/video/'+i.id+'?autoplay=1\" width=\"'+s+'\" height=\"'+n+'\" frameborder=\"0\" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>':\"vzaar\"===i.type&&(e='<iframe frameborder=\"0\"height=\"'+n+'\"width=\"'+s+'\" allowfullscreen mozallowfullscreen webkitAllowFullScreen src=\"//view.vzaar.com/'+i.id+'/player?autoplay=true\"></iframe>'),c('<div class=\"owl-video-frame\">'+e+\"</div>\").insertAfter(t.find(\".owl-video\")),this._playing=t.addClass(\"owl-video-playing\"))},i.prototype.isInFullScreen=function(){var t=e.fullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement;return t&&c(t).parent().hasClass(\"owl-video-frame\")},i.prototype.destroy=function(){var t,e;for(t in this._core.$element.off(\"click.owl.video\"),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))\"function\"!=typeof this[e]&&(this[e]=null)},c.fn.owlCarousel.Constructor.Plugins.Video=i}(window.Zepto||window.jQuery,(window,document)),function(r){function e(t){this.core=t,this.core.options=r.extend({},e.Defaults,this.core.options),this.swapping=!0,this.previous=void 0,this.next=void 0,this.handlers={\"change.owl.carousel\":r.proxy(function(t){t.namespace&&\"position\"==t.property.name&&(this.previous=this.core.current(),this.next=t.property.value)},this),\"drag.owl.carousel dragged.owl.carousel translated.owl.carousel\":r.proxy(function(t){t.namespace&&(this.swapping=\"translated\"==t.type)},this),\"translate.owl.carousel\":r.proxy(function(t){t.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)}e.Defaults={animateOut:!1,animateIn:!1},e.prototype.swap=function(){var t,e,i,s,n,o;1===this.core.settings.items&&r.support.animation&&r.support.transition&&(this.core.speed(0),e=r.proxy(this.clear,this),i=this.core.$stage.children().eq(this.previous),s=this.core.$stage.children().eq(this.next),n=this.core.settings.animateIn,o=this.core.settings.animateOut,this.core.current()!==this.previous&&(o&&(t=this.core.coordinates(this.previous)-this.core.coordinates(this.next),i.one(r.support.animation.end,e).css({left:t+\"px\"}).addClass(\"animated owl-animated-out\").addClass(o)),n&&s.one(r.support.animation.end,e).addClass(\"animated owl-animated-in\").addClass(n)))},e.prototype.clear=function(t){r(t.target).css({left:\"\"}).removeClass(\"animated owl-animated-out owl-animated-in\").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},e.prototype.destroy=function(){var t,e;for(t in this.handlers)this.core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))\"function\"!=typeof this[e]&&(this[e]=null)},r.fn.owlCarousel.Constructor.Plugins.Animate=e}(window.Zepto||window.jQuery,(window,document)),function(i,s,n){function e(t){this._core=t,this._timeout=null,this._paused=!1,this._handlers={\"changed.owl.carousel\":i.proxy(function(t){t.namespace&&\"settings\"===t.property.name?this._core.settings.autoplay?this.play():this.stop():t.namespace&&\"position\"===t.property.name&&this._core.settings.autoplay&&this._setAutoPlayInterval()},this),\"initialized.owl.carousel\":i.proxy(function(t){t.namespace&&this._core.settings.autoplay&&this.play()},this),\"play.owl.autoplay\":i.proxy(function(t,e,i){t.namespace&&this.play(e,i)},this),\"stop.owl.autoplay\":i.proxy(function(t){t.namespace&&this.stop()},this),\"mouseover.owl.autoplay\":i.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is(\"rotating\")&&this.pause()},this),\"mouseleave.owl.autoplay\":i.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is(\"rotating\")&&this.play()},this),\"touchstart.owl.core\":i.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is(\"rotating\")&&this.pause()},this),\"touchend.owl.core\":i.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=i.extend({},e.Defaults,this._core.options)}e.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},e.prototype.play=function(t,e){this._paused=!1,this._core.is(\"rotating\")||(this._core.enter(\"rotating\"),this._setAutoPlayInterval())},e.prototype._getNextTimeout=function(t,e){return this._timeout&&s.clearTimeout(this._timeout),s.setTimeout(i.proxy(function(){this._paused||this._core.is(\"busy\")||this._core.is(\"interacting\")||n.hidden||this._core.next(e||this._core.settings.autoplaySpeed)},this),t||this._core.settings.autoplayTimeout)},e.prototype._setAutoPlayInterval=function(){this._timeout=this._getNextTimeout()},e.prototype.stop=function(){this._core.is(\"rotating\")&&(s.clearTimeout(this._timeout),this._core.leave(\"rotating\"))},e.prototype.pause=function(){this._core.is(\"rotating\")&&(this._paused=!0)},e.prototype.destroy=function(){var t,e;for(t in this.stop(),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))\"function\"!=typeof this[e]&&(this[e]=null)},i.fn.owlCarousel.Constructor.Plugins.autoplay=e}(window.Zepto||window.jQuery,window,document),function(n){\"use strict\";function e(t){this._core=t,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={\"prepared.owl.carousel\":n.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.push('<div class=\"'+this._core.settings.dotClass+'\">'+n(t.content).find(\"[data-dot]\").addBack(\"[data-dot]\").attr(\"data-dot\")+\"</div>\")},this),\"added.owl.carousel\":n.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,0,this._templates.pop())},this),\"remove.owl.carousel\":n.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,1)},this),\"changed.owl.carousel\":n.proxy(function(t){t.namespace&&\"position\"==t.property.name&&this.draw()},this),\"initialized.owl.carousel\":n.proxy(function(t){t.namespace&&!this._initialized&&(this._core.trigger(\"initialize\",null,\"navigation\"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger(\"initialized\",null,\"navigation\"))},this),\"refreshed.owl.carousel\":n.proxy(function(t){t.namespace&&this._initialized&&(this._core.trigger(\"refresh\",null,\"navigation\"),this.update(),this.draw(),this._core.trigger(\"refreshed\",null,\"navigation\"))},this)},this._core.options=n.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers)}e.Defaults={nav:!1,navText:[\"prev\",\"next\"],navSpeed:!1,navElement:\"div\",navContainer:!1,navContainerClass:\"owl-nav\",navClass:[\"owl-prev\",\"owl-next\"],slideBy:1,dotClass:\"owl-dot\",dotsClass:\"owl-dots\",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},e.prototype.initialize=function(){var t,i=this._core.settings;for(t in this._controls.$relative=(i.navContainer?n(i.navContainer):n(\"<div>\").addClass(i.navContainerClass).appendTo(this.$element)).addClass(\"disabled\"),this._controls.$previous=n(\"<\"+i.navElement+\">\").addClass(i.navClass[0]).html(i.navText[0]).prependTo(this._controls.$relative).on(\"click\",n.proxy(function(t){this.prev(i.navSpeed)},this)),this._controls.$next=n(\"<\"+i.navElement+\">\").addClass(i.navClass[1]).html(i.navText[1]).appendTo(this._controls.$relative).on(\"click\",n.proxy(function(t){this.next(i.navSpeed)},this)),i.dotsData||(this._templates=[n(\"<div>\").addClass(i.dotClass).append(n(\"<span>\")).prop(\"outerHTML\")]),this._controls.$absolute=(i.dotsContainer?n(i.dotsContainer):n(\"<div>\").addClass(i.dotsClass).appendTo(this.$element)).addClass(\"disabled\"),this._controls.$absolute.on(\"click\",\"div\",n.proxy(function(t){var e=(n(t.target).parent().is(this._controls.$absolute)?n(t.target):n(t.target).parent()).index();t.preventDefault(),this.to(e,i.dotsSpeed)},this)),this._overrides)this._core[t]=n.proxy(this[t],this)},e.prototype.destroy=function(){var t,e,i,s;for(t in this._handlers)this.$element.off(t,this._handlers[t]);for(e in this._controls)this._controls[e].remove();for(s in this.overides)this._core[s]=this._overrides[s];for(i in Object.getOwnPropertyNames(this))\"function\"!=typeof this[i]&&(this[i]=null)},e.prototype.update=function(){var t,e,i=this._core.clones().length/2,s=i+this._core.items().length,n=this._core.maximum(!0),o=this._core.settings,r=o.center||o.autoWidth||o.dotsData?1:o.dotsEach||o.items;if(\"page\"!==o.slideBy&&(o.slideBy=Math.min(o.slideBy,o.items)),o.dots||\"page\"==o.slideBy)for(this._pages=[],t=i,e=0;t<s;t++){if(r<=e||0===e){if(this._pages.push({start:Math.min(n,t-i),end:t-i+r-1}),Math.min(n,t-i)===n)break;e=0,0}e+=this._core.mergers(this._core.relative(t))}},e.prototype.draw=function(){var t=this._core.settings,e=this._core.items().length<=t.items,i=this._core.relative(this._core.current()),s=t.loop||t.rewind;this._controls.$relative.toggleClass(\"disabled\",!t.nav||e),t.nav&&(this._controls.$previous.toggleClass(\"disabled\",!s&&i<=this._core.minimum(!0)),this._controls.$next.toggleClass(\"disabled\",!s&&i>=this._core.maximum(!0))),this._controls.$absolute.toggleClass(\"disabled\",!t.dots||e),t.dots&&(s=this._pages.length-this._controls.$absolute.children().length,t.dotsData&&0!=s?this._controls.$absolute.html(this._templates.join(\"\")):0<s?this._controls.$absolute.append(new Array(1+s).join(this._templates[0])):s<0&&this._controls.$absolute.children().slice(s).remove(),this._controls.$absolute.find(\".active\").removeClass(\"active\"),this._controls.$absolute.children().eq(n.inArray(this.current(),this._pages)).addClass(\"active\"))},e.prototype.onTrigger=function(t){var e=this._core.settings;t.page={index:n.inArray(this.current(),this._pages),count:this._pages.length,size:e&&(e.center||e.autoWidth||e.dotsData?1:e.dotsEach||e.items)}},e.prototype.current=function(){var i=this._core.relative(this._core.current());return n.grep(this._pages,n.proxy(function(t,e){return t.start<=i&&t.end>=i},this)).pop()},e.prototype.getPosition=function(t){var e,i,s=this._core.settings;return\"page\"==s.slideBy?(e=n.inArray(this.current(),this._pages),i=this._pages.length,t?++e:--e,e=this._pages[(e%i+i)%i].start):(e=this._core.relative(this._core.current()),i=this._core.items().length,t?e+=s.slideBy:e-=s.slideBy),e},e.prototype.next=function(t){n.proxy(this._overrides.to,this._core)(this.getPosition(!0),t)},e.prototype.prev=function(t){n.proxy(this._overrides.to,this._core)(this.getPosition(!1),t)},e.prototype.to=function(t,e,i){!i&&this._pages.length?(i=this._pages.length,n.proxy(this._overrides.to,this._core)(this._pages[(t%i+i)%i].start,e)):n.proxy(this._overrides.to,this._core)(t,e)},n.fn.owlCarousel.Constructor.Plugins.Navigation=e}(window.Zepto||window.jQuery,(window,document)),function(s,n){\"use strict\";function e(t){this._core=t,this._hashes={},this.$element=this._core.$element,this._handlers={\"initialized.owl.carousel\":s.proxy(function(t){t.namespace&&\"URLHash\"===this._core.settings.startPosition&&s(n).trigger(\"hashchange.owl.navigation\")},this),\"prepared.owl.carousel\":s.proxy(function(t){var e;t.namespace&&(e=s(t.content).find(\"[data-hash]\").addBack(\"[data-hash]\").attr(\"data-hash\"))&&(this._hashes[e]=t.content)},this),\"changed.owl.carousel\":s.proxy(function(t){var i;t.namespace&&\"position\"===t.property.name&&(i=this._core.items(this._core.relative(this._core.current())),(t=s.map(this._hashes,function(t,e){return t===i?e:null}).join())&&n.location.hash.slice(1)!==t&&(n.location.hash=t))},this)},this._core.options=s.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers),s(n).on(\"hashchange.owl.navigation\",s.proxy(function(t){var e=n.location.hash.substring(1),i=this._core.$stage.children(),i=this._hashes[e]&&i.index(this._hashes[e]);void 0!==i&&i!==this._core.current()&&this._core.to(this._core.relative(i),!1,!0)},this))}e.Defaults={URLhashListener:!1},e.prototype.destroy=function(){var t,e;for(t in s(n).off(\"hashchange.owl.navigation\"),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))\"function\"!=typeof this[e]&&(this[e]=null)},s.fn.owlCarousel.Constructor.Plugins.Hash=e}(window.Zepto||window.jQuery,window,document),function(n){var o=n(\"<support>\").get(0).style,r=\"Webkit Moz O ms\".split(\" \"),t={transition:{end:{WebkitTransition:\"webkitTransitionEnd\",MozTransition:\"transitionend\",OTransition:\"oTransitionEnd\",transition:\"transitionend\"}},animation:{end:{WebkitAnimation:\"webkitAnimationEnd\",MozAnimation:\"animationend\",OAnimation:\"oAnimationEnd\",animation:\"animationend\"}}},e=function(){return!!a(\"transform\")},i=function(){return!!a(\"perspective\")},s=function(){return!!a(\"animation\")};function a(t,i){var s=!1,e=t.charAt(0).toUpperCase()+t.slice(1);return n.each((t+\" \"+r.join(e+\" \")+e).split(\" \"),function(t,e){if(void 0!==o[e])return s=!i||e,!1}),s}function h(t){return a(t,!0)}!function(){return!!a(\"transition\")}()||(n.support.transition=new String(h(\"transition\")),n.support.transition.end=t.transition.end[n.support.transition]),s()&&(n.support.animation=new String(h(\"animation\")),n.support.animation.end=t.animation.end[n.support.animation]),e()&&(n.support.transform=new String(h(\"transform\")),n.support.transform3d=i())}(window.Zepto||window.jQuery,(window,document));\n","MGS_Fbuilder/js/masonry.pkgd.min.js":"/*!\n * Masonry PACKAGED v4.2.2\n * Cascading grid layout library\n * https://masonry.desandro.com\n * MIT License\n * by David DeSandro\n */\n\n!function(t,e){\"function\"==typeof define&&define.amd?define(\"jquery-bridget/jquery-bridget\",[\"jquery\"],function(i){return e(t,i)}):\"object\"==typeof module&&module.exports?module.exports=e(t,require(\"jquery\")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){\"use strict\";function i(i,r,a){function h(t,e,n){var o,r=\"$().\"+i+'(\"'+e+'\")';return t.each(function(t,h){var u=a.data(h,i);if(!u)return void s(i+\" not initialized. Cannot call methods, i.e. \"+r);var d=u[e];if(!d||\"_\"==e.charAt(0))return void s(r+\" is not a valid method\");var l=d.apply(u,n);o=void 0===o?l:o}),void 0!==o?o:t}function u(t,e){t.each(function(t,n){var o=a.data(n,i);o?(o.option(e),o._init()):(o=new r(n,e),a.data(n,i,o))})}a=a||e||t.jQuery,a&&(r.prototype.option||(r.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if(\"string\"==typeof t){var e=o.call(arguments,1);return h(this,t,e)}return u(this,t),this},n(a))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var o=Array.prototype.slice,r=t.console,s=\"undefined\"==typeof r?function(){}:function(t){r.error(t)};return n(e||t.jQuery),i}),function(t,e){\"function\"==typeof define&&define.amd?define(\"ev-emitter/ev-emitter\",e):\"object\"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}(\"undefined\"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;o<i.length;o++){var r=i[o],s=n&&n[r];s&&(this.off(t,r),delete n[r]),r.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}),function(t,e){\"function\"==typeof define&&define.amd?define(\"get-size/get-size\",e):\"object\"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){\"use strict\";function t(t){var e=parseFloat(t),i=-1==t.indexOf(\"%\")&&!isNaN(e);return i&&e}function e(){}function i(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;u>e;e++){var i=h[e];t[i]=0}return t}function n(t){var e=getComputedStyle(t);return e||a(\"Style returned \"+e+\". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1\"),e}function o(){if(!d){d=!0;var e=document.createElement(\"div\");e.style.width=\"200px\",e.style.padding=\"1px 2px 3px 4px\",e.style.borderStyle=\"solid\",e.style.borderWidth=\"1px 2px 3px 4px\",e.style.boxSizing=\"border-box\";var i=document.body||document.documentElement;i.appendChild(e);var o=n(e);s=200==Math.round(t(o.width)),r.isBoxSizeOuter=s,i.removeChild(e)}}function r(e){if(o(),\"string\"==typeof e&&(e=document.querySelector(e)),e&&\"object\"==typeof e&&e.nodeType){var r=n(e);if(\"none\"==r.display)return i();var a={};a.width=e.offsetWidth,a.height=e.offsetHeight;for(var d=a.isBorderBox=\"border-box\"==r.boxSizing,l=0;u>l;l++){var c=h[l],f=r[c],m=parseFloat(f);a[c]=isNaN(m)?0:m}var p=a.paddingLeft+a.paddingRight,g=a.paddingTop+a.paddingBottom,y=a.marginLeft+a.marginRight,v=a.marginTop+a.marginBottom,_=a.borderLeftWidth+a.borderRightWidth,z=a.borderTopWidth+a.borderBottomWidth,E=d&&s,b=t(r.width);b!==!1&&(a.width=b+(E?0:p+_));var x=t(r.height);return x!==!1&&(a.height=x+(E?0:g+z)),a.innerWidth=a.width-(p+_),a.innerHeight=a.height-(g+z),a.outerWidth=a.width+y,a.outerHeight=a.height+v,a}}var s,a=\"undefined\"==typeof console?e:function(t){console.error(t)},h=[\"paddingLeft\",\"paddingRight\",\"paddingTop\",\"paddingBottom\",\"marginLeft\",\"marginRight\",\"marginTop\",\"marginBottom\",\"borderLeftWidth\",\"borderRightWidth\",\"borderTopWidth\",\"borderBottomWidth\"],u=h.length,d=!1;return r}),function(t,e){\"use strict\";\"function\"==typeof define&&define.amd?define(\"desandro-matches-selector/matches-selector\",e):\"object\"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){\"use strict\";var t=function(){var t=window.Element.prototype;if(t.matches)return\"matches\";if(t.matchesSelector)return\"matchesSelector\";for(var e=[\"webkit\",\"moz\",\"ms\",\"o\"],i=0;i<e.length;i++){var n=e[i],o=n+\"MatchesSelector\";if(t[o])return o}}();return function(e,i){return e[t](i)}}),function(t,e){\"function\"==typeof define&&define.amd?define(\"fizzy-ui-utils/utils\",[\"desandro-matches-selector/matches-selector\"],function(i){return e(t,i)}):\"object\"==typeof module&&module.exports?module.exports=e(t,require(\"desandro-matches-selector\")):t.fizzyUIUtils=e(t,t.matchesSelector)}(window,function(t,e){var i={};i.extend=function(t,e){for(var i in e)t[i]=e[i];return t},i.modulo=function(t,e){return(t%e+e)%e};var n=Array.prototype.slice;i.makeArray=function(t){if(Array.isArray(t))return t;if(null===t||void 0===t)return[];var e=\"object\"==typeof t&&\"number\"==typeof t.length;return e?n.call(t):[t]},i.removeFrom=function(t,e){var i=t.indexOf(e);-1!=i&&t.splice(i,1)},i.getParent=function(t,i){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return\"string\"==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e=\"on\"+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,n){t=i.makeArray(t);var o=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!n)return void o.push(t);e(t,n)&&o.push(t);for(var i=t.querySelectorAll(n),r=0;r<i.length;r++)o.push(i[r])}}),o},i.debounceMethod=function(t,e,i){i=i||100;var n=t.prototype[e],o=e+\"Timeout\";t.prototype[e]=function(){var t=this[o];clearTimeout(t);var e=arguments,r=this;this[o]=setTimeout(function(){n.apply(r,e),delete r[o]},i)}},i.docReady=function(t){var e=document.readyState;\"complete\"==e||\"interactive\"==e?setTimeout(t):document.addEventListener(\"DOMContentLoaded\",t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+\"-\"+i}).toLowerCase()};var o=t.console;return i.htmlInit=function(e,n){i.docReady(function(){var r=i.toDashed(n),s=\"data-\"+r,a=document.querySelectorAll(\"[\"+s+\"]\"),h=document.querySelectorAll(\".js-\"+r),u=i.makeArray(a).concat(i.makeArray(h)),d=s+\"-options\",l=t.jQuery;u.forEach(function(t){var i,r=t.getAttribute(s)||t.getAttribute(d);try{i=r&&JSON.parse(r)}catch(a){return void(o&&o.error(\"Error parsing \"+s+\" on \"+t.className+\": \"+a))}var h=new e(t,i);l&&l.data(t,n,h)})})},i}),function(t,e){\"function\"==typeof define&&define.amd?define(\"outlayer/item\",[\"ev-emitter/ev-emitter\",\"get-size/get-size\"],e):\"object\"==typeof module&&module.exports?module.exports=e(require(\"ev-emitter\"),require(\"get-size\")):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))}(window,function(t,e){\"use strict\";function i(t){for(var e in t)return!1;return e=null,!0}function n(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}function o(t){return t.replace(/([A-Z])/g,function(t){return\"-\"+t.toLowerCase()})}var r=document.documentElement.style,s=\"string\"==typeof r.transition?\"transition\":\"WebkitTransition\",a=\"string\"==typeof r.transform?\"transform\":\"WebkitTransform\",h={WebkitTransition:\"webkitTransitionEnd\",transition:\"transitionend\"}[s],u={transform:a,transition:s,transitionDuration:s+\"Duration\",transitionProperty:s+\"Property\",transitionDelay:s+\"Delay\"},d=n.prototype=Object.create(t.prototype);d.constructor=n,d._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:\"absolute\"})},d.handleEvent=function(t){var e=\"on\"+t.type;this[e]&&this[e](t)},d.getSize=function(){this.size=e(this.element)},d.css=function(t){var e=this.element.style;for(var i in t){var n=u[i]||i;e[n]=t[i]}},d.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption(\"originLeft\"),i=this.layout._getOption(\"originTop\"),n=t[e?\"left\":\"right\"],o=t[i?\"top\":\"bottom\"],r=parseFloat(n),s=parseFloat(o),a=this.layout.size;-1!=n.indexOf(\"%\")&&(r=r/100*a.width),-1!=o.indexOf(\"%\")&&(s=s/100*a.height),r=isNaN(r)?0:r,s=isNaN(s)?0:s,r-=e?a.paddingLeft:a.paddingRight,s-=i?a.paddingTop:a.paddingBottom,this.position.x=r,this.position.y=s},d.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption(\"originLeft\"),n=this.layout._getOption(\"originTop\"),o=i?\"paddingLeft\":\"paddingRight\",r=i?\"left\":\"right\",s=i?\"right\":\"left\",a=this.position.x+t[o];e[r]=this.getXValue(a),e[s]=\"\";var h=n?\"paddingTop\":\"paddingBottom\",u=n?\"top\":\"bottom\",d=n?\"bottom\":\"top\",l=this.position.y+t[h];e[u]=this.getYValue(l),e[d]=\"\",this.css(e),this.emitEvent(\"layout\",[this])},d.getXValue=function(t){var e=this.layout._getOption(\"horizontal\");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+\"%\":t+\"px\"},d.getYValue=function(t){var e=this.layout._getOption(\"horizontal\");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+\"%\":t+\"px\"},d._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,o=t==this.position.x&&e==this.position.y;if(this.setPosition(t,e),o&&!this.isTransitioning)return void this.layoutPosition();var r=t-i,s=e-n,a={};a.transform=this.getTranslate(r,s),this.transition({to:a,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},d.getTranslate=function(t,e){var i=this.layout._getOption(\"originLeft\"),n=this.layout._getOption(\"originTop\");return t=i?t:-t,e=n?e:-e,\"translate3d(\"+t+\"px, \"+e+\"px, 0)\"},d.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},d.moveTo=d._transitionTo,d.setPosition=function(t,e){this.position.x=parseFloat(t),this.position.y=parseFloat(e)},d._nonTransition=function(t){this.css(t.to),t.isCleaning&&this._removeStyles(t.to);for(var e in t.onTransitionEnd)t.onTransitionEnd[e].call(this)},d.transition=function(t){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(t);var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);var n=this.element.offsetHeight;n=null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0};var l=\"opacity,\"+o(a);d.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t=\"number\"==typeof t?t+\"ms\":t,this.css({transitionProperty:l,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(h,this,!1)}},d.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},d.onotransitionend=function(t){this.ontransitionend(t)};var c={\"-webkit-transform\":\"transform\"};d.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,n=c[t.propertyName]||t.propertyName;if(delete e.ingProperties[n],i(e.ingProperties)&&this.disableTransition(),n in e.clean&&(this.element.style[t.propertyName]=\"\",delete e.clean[n]),n in e.onEnd){var o=e.onEnd[n];o.call(this),delete e.onEnd[n]}this.emitEvent(\"transitionEnd\",[this])}},d.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(h,this,!1),this.isTransitioning=!1},d._removeStyles=function(t){var e={};for(var i in t)e[i]=\"\";this.css(e)};var f={transitionProperty:\"\",transitionDuration:\"\",transitionDelay:\"\"};return d.removeTransitionStyles=function(){this.css(f)},d.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+\"ms\"},d.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:\"\"}),this.emitEvent(\"remove\",[this])},d.remove=function(){return s&&parseFloat(this.layout.options.transitionDuration)?(this.once(\"transitionEnd\",function(){this.removeElem()}),void this.hide()):void this.removeElem()},d.reveal=function(){delete this.isHidden,this.css({display:\"\"});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty(\"visibleStyle\");e[i]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},d.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent(\"reveal\")},d.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return\"opacity\";for(var i in e)return i},d.hide=function(){this.isHidden=!0,this.css({display:\"\"});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty(\"hiddenStyle\");e[i]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},d.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:\"none\"}),this.emitEvent(\"hide\"))},d.destroy=function(){this.css({position:\"\",left:\"\",right:\"\",top:\"\",bottom:\"\",transition:\"\",transform:\"\"})},n}),function(t,e){\"use strict\";\"function\"==typeof define&&define.amd?define(\"outlayer/outlayer\",[\"ev-emitter/ev-emitter\",\"get-size/get-size\",\"fizzy-ui-utils/utils\",\"./item\"],function(i,n,o,r){return e(t,i,n,o,r)}):\"object\"==typeof module&&module.exports?module.exports=e(t,require(\"ev-emitter\"),require(\"get-size\"),require(\"fizzy-ui-utils\"),require(\"./item\")):t.Outlayer=e(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)}(window,function(t,e,i,n,o){\"use strict\";function r(t,e){var i=n.getQueryElement(t);if(!i)return void(h&&h.error(\"Bad element for \"+this.constructor.namespace+\": \"+(i||t)));this.element=i,u&&(this.$element=u(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e);var o=++l;this.element.outlayerGUID=o,c[o]=this,this._create();var r=this._getOption(\"initLayout\");r&&this.layout()}function s(t){function e(){t.apply(this,arguments)}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e}function a(t){if(\"number\"==typeof t)return t;var e=t.match(/(^\\d*\\.?\\d*)(\\w*)/),i=e&&e[1],n=e&&e[2];if(!i.length)return 0;i=parseFloat(i);var o=m[n]||1;return i*o}var h=t.console,u=t.jQuery,d=function(){},l=0,c={};r.namespace=\"outlayer\",r.Item=o,r.defaults={containerStyle:{position:\"relative\"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:\"0.4s\",hiddenStyle:{opacity:0,transform:\"scale(0.001)\"},visibleStyle:{opacity:1,transform:\"scale(1)\"}};var f=r.prototype;n.extend(f,e.prototype),f.option=function(t){n.extend(this.options,t)},f._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},r.compatOptions={initLayout:\"isInitLayout\",horizontal:\"isHorizontal\",layoutInstant:\"isLayoutInstant\",originLeft:\"isOriginLeft\",originTop:\"isOriginTop\",resize:\"isResizeBound\",resizeContainer:\"isResizingContainer\"},f._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle);var t=this._getOption(\"resize\");t&&this.bindResize()},f.reloadItems=function(){this.items=this._itemize(this.element.children)},f._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],o=0;o<e.length;o++){var r=e[o],s=new i(r,this);n.push(s)}return n},f._filterFindItemElements=function(t){return n.filterFindElements(t,this.options.itemSelector)},f.getItemElements=function(){return this.items.map(function(t){return t.element})},f.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption(\"layoutInstant\"),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},f._init=f.layout,f._resetLayout=function(){this.getSize()},f.getSize=function(){this.size=i(this.element)},f._getMeasurement=function(t,e){var n,o=this.options[t];o?(\"string\"==typeof o?n=this.element.querySelector(o):o instanceof HTMLElement&&(n=o),this[t]=n?i(n)[e]:o):this[t]=0},f.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},f._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},f._layoutItems=function(t,e){if(this._emitCompleteOnItems(\"layout\",t),t&&t.length){var i=[];t.forEach(function(t){var n=this._getItemLayoutPosition(t);n.item=t,n.isInstant=e||t.isLayoutInstant,i.push(n)},this),this._processLayoutQueue(i)}},f._getItemLayoutPosition=function(){return{x:0,y:0}},f._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},f.updateStagger=function(){var t=this.options.stagger;return null===t||void 0===t?void(this.stagger=0):(this.stagger=a(t),this.stagger)},f._positionItem=function(t,e,i,n,o){n?t.goTo(e,i):(t.stagger(o*this.stagger),t.moveTo(e,i))},f._postLayout=function(){this.resizeContainer()},f.resizeContainer=function(){var t=this._getOption(\"resizeContainer\");if(t){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},f._getContainerSize=d,f._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?\"width\":\"height\"]=t+\"px\"}},f._emitCompleteOnItems=function(t,e){function i(){o.dispatchEvent(t+\"Complete\",null,[e])}function n(){s++,s==r&&i()}var o=this,r=e.length;if(!e||!r)return void i();var s=0;e.forEach(function(e){e.once(t,n)})},f.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;if(this.emitEvent(t,n),u)if(this.$element=this.$element||u(this.element),e){var o=u.Event(e);o.type=t,this.$element.trigger(o,i)}else this.$element.trigger(t,i)},f.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},f.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},f.stamp=function(t){t=this._find(t),t&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},f.unstamp=function(t){t=this._find(t),t&&t.forEach(function(t){n.removeFrom(this.stamps,t),this.unignore(t)},this)},f._find=function(t){return t?(\"string\"==typeof t&&(t=this.element.querySelectorAll(t)),t=n.makeArray(t)):void 0},f._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},f._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},f._manageStamp=d,f._getElementOffset=function(t){var e=t.getBoundingClientRect(),n=this._boundingRect,o=i(t),r={left:e.left-n.left-o.marginLeft,top:e.top-n.top-o.marginTop,right:n.right-e.right-o.marginRight,bottom:n.bottom-e.bottom-o.marginBottom};return r},f.handleEvent=n.handleEvent,f.bindResize=function(){t.addEventListener(\"resize\",this),this.isResizeBound=!0},f.unbindResize=function(){t.removeEventListener(\"resize\",this),this.isResizeBound=!1},f.onresize=function(){this.resize()},n.debounceMethod(r,\"onresize\",100),f.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},f.needsResizeLayout=function(){var t=i(this.element),e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},f.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},f.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},f.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},f.reveal=function(t){if(this._emitCompleteOnItems(\"reveal\",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.reveal()})}},f.hide=function(t){if(this._emitCompleteOnItems(\"hide\",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.hide()})}},f.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},f.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},f.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},f.getItems=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){var i=this.getItem(t);i&&e.push(i)},this),e},f.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems(\"remove\",e),e&&e.length&&e.forEach(function(t){t.remove(),n.removeFrom(this.items,t)},this)},f.destroy=function(){var t=this.element.style;t.height=\"\",t.position=\"\",t.width=\"\",this.items.forEach(function(t){t.destroy()}),this.unbindResize();var e=this.element.outlayerGUID;delete c[e],delete this.element.outlayerGUID,u&&u.removeData(this.element,this.constructor.namespace)},r.data=function(t){t=n.getQueryElement(t);var e=t&&t.outlayerGUID;return e&&c[e]},r.create=function(t,e){var i=s(r);return i.defaults=n.extend({},r.defaults),n.extend(i.defaults,e),i.compatOptions=n.extend({},r.compatOptions),i.namespace=t,i.data=r.data,i.Item=s(o),n.htmlInit(i,t),u&&u.bridget&&u.bridget(t,i),i};var m={ms:1,s:1e3};return r.Item=o,r}),function(t,e){\"function\"==typeof define&&define.amd?define([\"outlayer/outlayer\",\"get-size/get-size\"],e):\"object\"==typeof module&&module.exports?module.exports=e(require(\"outlayer\"),require(\"get-size\")):t.Masonry=e(t.Outlayer,t.getSize)}(window,function(t,e){var i=t.create(\"masonry\");i.compatOptions.fitWidth=\"isFitWidth\";var n=i.prototype;return n._resetLayout=function(){this.getSize(),this._getMeasurement(\"columnWidth\",\"outerWidth\"),this._getMeasurement(\"gutter\",\"outerWidth\"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},n.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&e(i).outerWidth||this.containerWidth}var n=this.columnWidth+=this.gutter,o=this.containerWidth+this.gutter,r=o/n,s=n-o%n,a=s&&1>s?\"round\":\"floor\";r=Math[a](r),this.cols=Math.max(r,1)},n.getContainerWidth=function(){var t=this._getOption(\"fitWidth\"),i=t?this.element.parentNode:this.element,n=e(i);this.containerWidth=n&&n.innerWidth},n._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=e&&1>e?\"round\":\"ceil\",n=Math[i](t.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var o=this.options.horizontalOrder?\"_getHorizontalColPosition\":\"_getTopColPosition\",r=this[o](n,t),s={x:this.columnWidth*r.col,y:r.y},a=r.y+t.size.outerHeight,h=n+r.col,u=r.col;h>u;u++)this.colYs[u]=a;return s},n._getTopColPosition=function(t){var e=this._getTopColGroup(t),i=Math.min.apply(Math,e);return{col:e.indexOf(i),y:i}},n._getTopColGroup=function(t){if(2>t)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;i>n;n++)e[n]=this._getColGroupY(n,t);return e},n._getColGroupY=function(t,e){if(2>e)return this.colYs[t];var i=this.colYs.slice(t,t+e);return Math.max.apply(Math,i)},n._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,n=t>1&&i+t>this.cols;i=n?0:i;var o=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=o?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},n._manageStamp=function(t){var i=e(t),n=this._getElementOffset(t),o=this._getOption(\"originLeft\"),r=o?n.left:n.right,s=r+i.outerWidth,a=Math.floor(r/this.columnWidth);a=Math.max(0,a);var h=Math.floor(s/this.columnWidth);h-=s%this.columnWidth?0:1,h=Math.min(this.cols-1,h);for(var u=this._getOption(\"originTop\"),d=(u?n.top:n.bottom)+i.outerHeight,l=a;h>=l;l++)this.colYs[l]=Math.max(d,this.colYs[l])},n._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption(\"fitWidth\")&&(t.width=this._getContainerFitWidth()),t},n._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},n.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},i});","MGS_Fbuilder/js/mColorPicker.min.js":"var curentUrl=require.s.contexts._.config.baseUrl;var webBaseUrl=curentUrl.split('pub/static/');if(webBaseUrl.length==1){webBaseUrl=curentUrl.split('static/');}\nvar mediaImageFolder=webBaseUrl[0]+'media/mgs/fbuilder/images/';require(['jquery'],function(jQuery){(function(mgsjQuery){var $o,$i,i,$b,div='<div>',img='<img>',span='<span>',$document=mgsjQuery(document),$mColorPicker=mgsjQuery(div),$mColorPickerBg=mgsjQuery(div),$mColorPickerTest=mgsjQuery(div),$mColorPickerInput=mgsjQuery('<input>'),rRGB=/^rgb[a]?\\((\\d+),\\s*(\\d+),\\s*(\\d+)(,\\s*(\\d+\\.\\d+)*)?\\)/,rHEX=/([a-f0-9])([a-f0-9])([a-f0-9])/,rHEX3=/#[a-f0-9]{3}/,rHEX6=/#[a-f0-9]{6}/;mgsjQuery.fn.mColorPicker=function(options){var swatches=mgsjQuery.fn.mColorPicker.getCookie('swatches');$o=mgsjQuery.extend(mgsjQuery.fn.mColorPicker.defaults,options);mgsjQuery.fn.mColorPicker.defaults.swatches.concat($o.swatches).slice(-10);if($i.enhancedSwatches&&swatches)$o.swatches=swatches.split('||').concat($o.swatches).slice(0,10)||$o.swatches;if(!mgsjQuery(\"div#mColorPicker\").length)mgsjQuery.fn.mColorPicker.drawPicker();if(!mgsjQuery('#css_disabled_color_picker').length)mgsjQuery('head').prepend('<meta data-remove-me=\"true\"/><style id=\"css_disabled_color_picker\" type=\"text/css\">.mColorPicker[disabled] + span, .mColorPicker[disabled=\"disabled\"] + span, .mColorPicker[disabled=\"true\"] + span {filter:alpha(opacity=50);-moz-opacity:0.5;-webkit-opacity:0.5;-khtml-opacity: 0.5;opacity: 0.5;cursor:default;}</style>');mgsjQuery('meta[data-remove-me=true]').remove();this.each(mgsjQuery.fn.mColorPicker.drawPickerTriggers);return this;};mgsjQuery.fn.mColorPicker.init={replace:'input.color',index:0,enhancedSwatches:true,allowTransparency:true,slogan:'',showLogo:true};mgsjQuery.fn.mColorPicker.defaults={currentId:false,currentInput:false,currentColor:false,changeColor:false,color:false,imageFolder:mediaImageFolder,swatches:[\"#ffffff\",\"#ffff00\",\"#00ff00\",\"#00ffff\",\"#0000ff\",\"#ff00ff\",\"#ff0000\",\"#4c2b11\",\"#3b3b3b\",\"#000000\"]};mgsjQuery.fn.mColorPicker.start=function(){mgsjQuery('input[data-mcolorpicker!=\"true\"]').filter(function(){return($i.replace=='[type=color]')?this.getAttribute(\"type\")=='color':mgsjQuery(this).is($i.replace);}).mColorPicker();};mgsjQuery.fn.mColorPicker.events=function(){mgsjQuery(document).on(\"click\",\"#mColorPickerBg\",mgsjQuery.fn.mColorPicker.closePicker);mgsjQuery(document).on(\"keyup\",\"mColorPicker\",function(){try{mgsjQuery(this).css({'background-color':mgsjQuery(this).val()}).css({'color':mgsjQuery.fn.mColorPicker.textColor(mgsjQuery(this).css('background-color'))}).trigger('change');}catch(r){}});mgsjQuery(document).on(\"click\",\".mColorPickerTrigger\",mgsjQuery.fn.mColorPicker.colorShow);mgsjQuery(document).on(\"mousemove\",\".mColor, .mPastColor\",function(e){if(!$o.changeColor)return false;var $t=mgsjQuery(this),offset=$t.offset(),$e=$o.currentInput,hex=$e.attr('data-hex')||$e.attr('hex');$o.color=$t.css(\"background-color\");if($t.hasClass('mPastColor'))$o.color=mgsjQuery.fn.mColorPicker.setColor($o.color,hex);else if($t.hasClass('mColorTransparent'))$o.color='transparent';else if(!$t.hasClass('mPastColor'))$o.color=mgsjQuery.fn.mColorPicker.whichColor(e.pageX-offset.left,e.pageY-offset.top,hex);$o.currentInput.mSetInputColor($o.color);}).on(\"click\",\".mColor, .mPastColor\",mgsjQuery.fn.mColorPicker.colorPicked);mgsjQuery(document).on(\"keyup\",\"#mColorPickerInput\",function(e){try{$o.color=$(this).val();$o.currentInput.mSetInputColor($o.color);if(e.which==13)mgsjQuery.fn.mColorPicker.colorPicked();}catch(r){}}).on(\"blur\",\"#mColorPickerInput\",function(){$o.currentInput.mSetInputColor($o.color);});mgsjQuery(document).on(\"mouseleave\",\"#mColorPickerWrapper\",function(){if(!$o.changeColor)return false;var $e=$o.currentInput;$o.currentInput.mSetInputColor(mgsjQuery.fn.mColorPicker.setColor($o.currentColor,($e.attr('data-hex')||$e.attr('hex'))));});};mgsjQuery.fn.mColorPicker.drawPickerTriggers=function(){var $t=mgsjQuery(this),id=$t.attr('id')||'color_'+$i.index++,hidden=$t.attr('text')=='hidden'||$t.attr('data-text')=='hidden'?true:false,color=mgsjQuery.fn.mColorPicker.setColor($t.val(),($t.attr('data-hex')||$t.attr('hex'))),width=$t.width(),height=$t.height(),flt=$t.css('float'),$c=mgsjQuery(span),$trigger=mgsjQuery(span),colorPicker='',$e;$c.attr({'id':'color_work_area','class':'mColorPickerInput'}).appendTo($b)\n$trigger.attr({'id':'mcp_'+id,'class':'mColorPickerTrigger'}).css({'display':'inline-block','cursor':'pointer'}).insertAfter($t)\nmgsjQuery(img).attr({'src':mediaImageFolder+'color.png'}).css({'border':0,'margin':'0 0 0 3px','vertical-align':'text-bottom'}).appendTo($trigger);$c.append($t);colorPicker=$c.html().replace(/type=[^a-z ]*color[^a-z //>]*/gi,'type=\"'+(hidden?'hidden':'text')+'\"');$c.html('').remove();$e=mgsjQuery(colorPicker).attr('id',id).addClass('mColorPicker').val(color).insertBefore($trigger);if(hidden)$trigger.css({'border':'1px solid black','float':flt,'width':width,'height':height}).addClass($e.attr('class')).html('&nbsp;');$e.mSetInputColor(color);return $e;};mgsjQuery.fn.mColorPicker.drawPicker=function(){var $s=mgsjQuery(div),$l=mgsjQuery('<a>'),$f=mgsjQuery(div),$w=mgsjQuery(div);$mColorPickerBg.attr({'id':'mColorPickerBg'}).css({'display':'none','background':'black','opacity':.01,'position':'absolute','top':0,'right':0,'bottom':0,'left':0,'z-index':999999}).appendTo($b);$mColorPicker.attr({'id':'mColorPicker','data-mcolorpicker':true}).css({'position':'absolute','border':'1px solid #ccc','color':'#fff','width':'194px','height':'184px','font-size':'12px','font-family':'times','display':'none'}).appendTo($b);$mColorPickerTest.attr({'id':'mColorPickerTest'}).css({'display':'none'}).appendTo($b);$w.attr({'id':'mColorPickerWrapper'}).css({'position':'relative','border':'solid 1px gray'}).appendTo($mColorPicker);mgsjQuery(div).attr({'id':'mColorPickerImg','class':'mColor'}).css({'height':'136px','width':'192px','border':0,'cursor':'crosshair','background-image':'url('+mediaImageFolder+'picker.png)'}).appendTo($w);$s.attr({'id':'mColorPickerSwatches'}).css({'border-right':'1px solid #000'}).appendTo($w);mgsjQuery(div).addClass('mClear').css({'clear':'both'}).appendTo($s);for(i=9;i>-1;i--){mgsjQuery(div).attr({'id':'cell'+i,'class':\"mPastColor\"+((i>0)?' mNoLeftBorder':'')}).css({'background-color':$o.swatches[i].toLowerCase(),'height':'18px','width':'18px','border':'1px solid #000','float':'left'}).html('&nbsp;').prependTo($s);}\n$f.attr({'id':'mColorPickerFooter'}).css({'background-image':'url('+mediaImageFolder+'grid.gif)','position':'relative','height':'26px'}).appendTo($w);$mColorPickerInput.attr({'id':'mColorPickerInput','type':'text'}).css({'border':'solid 1px gray','font-size':'10pt','margin':'3px','width':'80px'}).appendTo($f);if($i.allowTransparency)mgsjQuery(span).attr({'id':'mColorPickerTransparent','class':'mColor mColorTransparent'}).css({'font-size':'16px','color':'#000','padding-right':'30px','padding-top':'3px','cursor':'pointer','overflow':'hidden','float':'right'}).text('transparent').appendTo($f);if($i.showLogo)$l.attr({'href':'http://meta100.com/','title':$i.slogan,'alt':$i.slogan,'target':'_blank'}).css({'float':'right'}).appendTo($f);mgsjQuery(img).attr({'title':$i.slogan,'alt':$i.slogan}).css({'border':0,'border-left':'1px solid #aaa','right':0,'position':'absolute'}).appendTo($l);mgsjQuery('.mNoLeftBorder').css({'border-left':0});};mgsjQuery.fn.mColorPicker.closePicker=function(){$mColorPickerBg.hide();$mColorPicker.fadeOut()};mgsjQuery.fn.mColorPicker.colorShow=function(){var $t=mgsjQuery(this),id=$t.attr('id').replace('mcp_',''),pos=$t.offset(),$i=mgsjQuery(\"#\"+id),pickerTop=pos.top+$t.outerHeight(),pickerLeft=pos.left;if($i.attr('disabled'))return false;$o.currentColor=$i.css('background-color')\n$o.changeColor=true;$o.currentInput=$i;$o.currentId=id;if(pickerTop+$mColorPicker.height()>$document.height())pickerTop=pos.top-$mColorPicker.height();if(pickerLeft+$mColorPicker.width()>$document.width())pickerLeft=pos.left-$mColorPicker.width()+$t.outerWidth();$mColorPicker.css({'top':(pickerTop)+\"px\",'left':(pickerLeft)+\"px\",'z-index':999999}).fadeIn(\"fast\");$mColorPickerBg.show();if(mgsjQuery('#'+id).attr('data-text'))$o.color=$t.css('background-color');else $o.color=$i.css('background-color');$o.color=mgsjQuery.fn.mColorPicker.setColor($o.color,$i.attr('data-hex')||$i.attr('hex'));$mColorPickerInput.val($o.color);};mgsjQuery.fn.mColorPicker.setInputColor=function(id,color){mgsjQuery('#'+id).mSetInputColor(color);};mgsjQuery.fn.mSetInputColor=function(color){var $t=mgsjQuery(this),css={'background-color':color,'background-image':(color=='transparent')?\"url('\"+mediaImageFolder+\"grid.gif')\":'','color':mgsjQuery.fn.mColorPicker.textColor(color)};if($t.attr('data-text')||$t.attr('text'))$t.next().css(css);$t.val(color).css(css).trigger('change');$mColorPickerInput.val(color);};mgsjQuery.fn.mColorPicker.textColor=function(val){val=mgsjQuery.fn.mColorPicker.RGBtoHex(val);if(typeof val=='undefined'||val=='transparent')return\"black\";return(parseInt(val.substr(1,2),16)+parseInt(val.substr(3,2),16)+parseInt(val.substr(5,2),16)<400)?'white':'black';};mgsjQuery.fn.mColorPicker.setCookie=function(name,value,days){var cookie_string=name+\"=\"+escape(value),expires=new Date();expires.setDate(expires.getDate()+days);cookie_string+=\"; expires=\"+expires.toGMTString();document.cookie=cookie_string;};mgsjQuery.fn.mColorPicker.getCookie=function(name){var results=document.cookie.match('(^|;) ?'+name+'=([^;]*)(;|$)');if(results)return(unescape(results[2]));else return null;};mgsjQuery.fn.mColorPicker.colorPicked=function(){$o.changeColor=false;mgsjQuery.fn.mColorPicker.closePicker();mgsjQuery.fn.mColorPicker.addToSwatch();$o.currentInput.trigger('colorpicked');};mgsjQuery.fn.mColorPicker.addToSwatch=function(color){if(!$i.enhancedSwatches)return false;var swatch=[]\ni=0;if(typeof color=='string')$o.color=color;if($o.color!='transparent')swatch[0]=mgsjQuery.fn.mColorPicker.hexToRGB($o.color);mgsjQuery('.mPastColor').each(function(){var $t=mgsjQuery(this);$o.color=mgsjQuery.fn.mColorPicker.hexToRGB($t.css('background-color'));if($o.color!=swatch[0]&&swatch.length<10)swatch[swatch.length]=$o.color;$t.css('background-color',swatch[i++])});if($i.enhancedSwatches)mgsjQuery.fn.mColorPicker.setCookie('swatches',swatch.join('||'),365);};mgsjQuery.fn.mColorPicker.whichColor=function(x,y,hex){var color=[255,255,255];if(x<32){color[1]=x*8;color[2]=0;}else if(x<64){color[0]=256-(x-32)*8;color[2]=0;}else if(x<96){color[0]=0;color[2]=(x-64)*8;}else if(x<128){color[0]=0;color[1]=256-(x-96)*8;}else if(x<160){color[0]=(x-128)*8;color[1]=0;}else{color[1]=0;color[2]=256-(x-160)*8;}\nfor(var n=0;n<3;n++){if(y<64)color[n]+=(256-color[n])*(64-y)/ 64;else if(y<=128)color[n]-=color[n]*(y-64)/ 64;else if(y>128)color[n]=256-(x / 192*256);color[n]=Math.round(Math.min(color[n],255));if(hex=='true')color[n]=mgsjQuery.fn.mColorPicker.decToHex(color[n]);}\nif(hex=='true')return\"#\"+color.join('');return\"rgb(\"+color.join(', ')+')';};mgsjQuery.fn.mColorPicker.setColor=function(color,hex){if(hex=='true')return mgsjQuery.fn.mColorPicker.RGBtoHex(color);return mgsjQuery.fn.mColorPicker.hexToRGB(color);}\nmgsjQuery.fn.mColorPicker.colorTest=function(color){$mColorPickerTest.css('background-color',color);return $mColorPickerTest.css('background-color');}\nmgsjQuery.fn.mColorPicker.decToHex=function(color){var hex_char=\"0123456789ABCDEF\";color=parseInt(color);return String(hex_char.charAt(Math.floor(color / 16)))+String(hex_char.charAt(color-(Math.floor(color / 16)*16)));}\nmgsjQuery.fn.mColorPicker.RGBtoHex=function(color){var decToHex=\"#\",rgb;color=color?color.toLowerCase():false;if(!color)return'';if(rHEX6.test(color))return color.substr(0,7);if(rHEX3.test(color))return color.replace(rHEX,\"$1$1$2$2$3$3\").substr(0,7);if(rgb=color.match(rRGB)){for(var n=1;n<4;n++)decToHex+=mgsjQuery.fn.mColorPicker.decToHex(rgb[n]);return decToHex;}\nreturn mgsjQuery.fn.mColorPicker.colorTest(color);};mgsjQuery.fn.mColorPicker.hexToRGB=function(color){color=color?color.toLowerCase():false;if(!color)return'';if(rRGB.test(color))return color;if(rHEX3.test(color)){if(!rHEX6.test(color))color=color.replace(rHEX,\"$1$1$2$2$3$3\");return'rgb('+parseInt(color.substr(1,2),16)+', '+parseInt(color.substr(3,2),16)+', '+parseInt(color.substr(5,2),16)+')';}\nreturn mgsjQuery.fn.mColorPicker.colorTest(color);};$i=mgsjQuery.fn.mColorPicker.init;$document.ready(function(){$b=mgsjQuery('body');mgsjQuery.fn.mColorPicker.events();if($i.replace){if(typeof mgsjQuery.fn.mDOMupdate==\"function\"){mgsjQuery('input').mDOMupdate(mgsjQuery.fn.mColorPicker.start);}else if(typeof mgsjQuery.fn.livequery==\"function\"){mgsjQuery('input').livequery(mgsjQuery.fn.mColorPicker.start);}else{mgsjQuery.fn.mColorPicker.start();mgsjQuery(document).on(\"ajaxSuccess.mColorPicker\",mgsjQuery(document),mgsjQuery.fn.mColorPicker.start);}}});})(jQuery);});","MGS_Fbuilder/js/jquery.magnific-popup.min.js":"/*! Magnific Popup - v1.1.0 - 2016-02-20\n* http://dimsemenov.com/plugins/magnific-popup/\n* Copyright (c) 2016 Dmitry Semenov; */\n!function(a){\"function\"==typeof define&&define.amd?define([\"jquery\"],a):a(\"object\"==typeof exports?require(\"jquery\"):window.jQuery||window.Zepto)}(function(a){var b,c,d,e,f,g,h=\"Close\",i=\"BeforeClose\",j=\"AfterClose\",k=\"BeforeAppend\",l=\"MarkupParse\",m=\"Open\",n=\"Change\",o=\"mfp\",p=\".\"+o,q=\"mfp-ready\",r=\"mfp-removing\",s=\"mfp-prevent-close\",t=function(){},u=!!window.jQuery,v=a(window),w=function(a,c){b.ev.on(o+a+p,c)},x=function(b,c,d,e){var f=document.createElement(\"div\");return f.className=\"mfp-\"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},y=function(c,d){b.ev.triggerHandler(o+c,d),b.st.callbacks&&(c=c.charAt(0).toLowerCase()+c.slice(1),b.st.callbacks[c]&&b.st.callbacks[c].apply(b,a.isArray(d)?d:[d]))},z=function(c){return c===g&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=a(b.st.closeMarkup.replace(\"%title%\",b.st.tClose)),g=c),b.currTemplate.closeBtn},A=function(){a.magnificPopup.instance||(b=new t,b.init(),a.magnificPopup.instance=b)},B=function(){var a=document.createElement(\"p\").style,b=[\"ms\",\"O\",\"Moz\",\"Webkit\"];if(void 0!==a.transition)return!0;for(;b.length;)if(b.pop()+\"Transition\"in a)return!0;return!1};t.prototype={constructor:t,init:function(){var c=navigator.appVersion;b.isLowIE=b.isIE8=document.all&&!document.addEventListener,b.isAndroid=/android/gi.test(c),b.isIOS=/iphone|ipad|ipod/gi.test(c),b.supportsTransition=B(),b.probablyMobile=b.isAndroid||b.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),d=a(document),b.popupsCache={}},open:function(c){var e;if(c.isObj===!1){b.items=c.items.toArray(),b.index=0;var g,h=c.items;for(e=0;e<h.length;e++)if(g=h[e],g.parsed&&(g=g.el[0]),g===c.el[0]){b.index=e;break}}else b.items=a.isArray(c.items)?c.items:[c.items],b.index=c.index||0;if(b.isOpen)return void b.updateItemHTML();b.types=[],f=\"\",c.mainEl&&c.mainEl.length?b.ev=c.mainEl.eq(0):b.ev=d,c.key?(b.popupsCache[c.key]||(b.popupsCache[c.key]={}),b.currTemplate=b.popupsCache[c.key]):b.currTemplate={},b.st=a.extend(!0,{},a.magnificPopup.defaults,c),b.fixedContentPos=\"auto\"===b.st.fixedContentPos?!b.probablyMobile:b.st.fixedContentPos,b.st.modal&&(b.st.closeOnContentClick=!1,b.st.closeOnBgClick=!1,b.st.showCloseBtn=!1,b.st.enableEscapeKey=!1),b.bgOverlay||(b.bgOverlay=x(\"bg\").on(\"click\"+p,function(){b.close()}),b.wrap=x(\"wrap\").attr(\"tabindex\",-1).on(\"click\"+p,function(a){b._checkIfClose(a.target)&&b.close()}),b.container=x(\"container\",b.wrap)),b.contentContainer=x(\"content\"),b.st.preloader&&(b.preloader=x(\"preloader\",b.container,b.st.tLoading));var i=a.magnificPopup.modules;for(e=0;e<i.length;e++){var j=i[e];j=j.charAt(0).toUpperCase()+j.slice(1),b[\"init\"+j].call(b)}y(\"BeforeOpen\"),b.st.showCloseBtn&&(b.st.closeBtnInside?(w(l,function(a,b,c,d){c.close_replaceWith=z(d.type)}),f+=\" mfp-close-btn-in\"):b.wrap.append(z())),b.st.alignTop&&(f+=\" mfp-align-top\"),b.fixedContentPos?b.wrap.css({overflow:b.st.overflowY,overflowX:\"hidden\",overflowY:b.st.overflowY}):b.wrap.css({top:v.scrollTop(),position:\"absolute\"}),(b.st.fixedBgPos===!1||\"auto\"===b.st.fixedBgPos&&!b.fixedContentPos)&&b.bgOverlay.css({height:d.height(),position:\"absolute\"}),b.st.enableEscapeKey&&d.on(\"keyup\"+p,function(a){27===a.keyCode&&b.close()}),v.on(\"resize\"+p,function(){b.updateSize()}),b.st.closeOnContentClick||(f+=\" mfp-auto-cursor\"),f&&b.wrap.addClass(f);var k=b.wH=v.height(),n={};if(b.fixedContentPos&&b._hasScrollBar(k)){var o=b._getScrollbarSize();o&&(n.marginRight=o)}b.fixedContentPos&&(b.isIE7?a(\"body, html\").css(\"overflow\",\"hidden\"):n.overflow=\"hidden\");var r=b.st.mainClass;return b.isIE7&&(r+=\" mfp-ie7\"),r&&b._addClassToMFP(r),b.updateItemHTML(),y(\"BuildControls\"),a(\"html\").css(n),b.bgOverlay.add(b.wrap).prependTo(b.st.prependTo||a(document.body)),b._lastFocusedEl=document.activeElement,setTimeout(function(){b.content?(b._addClassToMFP(q),b._setFocus()):b.bgOverlay.addClass(q),d.on(\"focusin\"+p,b._onFocusIn)},16),b.isOpen=!0,b.updateSize(k),y(m),c},close:function(){b.isOpen&&(y(i),b.isOpen=!1,b.st.removalDelay&&!b.isLowIE&&b.supportsTransition?(b._addClassToMFP(r),setTimeout(function(){b._close()},b.st.removalDelay)):b._close())},_close:function(){y(h);var c=r+\" \"+q+\" \";if(b.bgOverlay.detach(),b.wrap.detach(),b.container.empty(),b.st.mainClass&&(c+=b.st.mainClass+\" \"),b._removeClassFromMFP(c),b.fixedContentPos){var e={marginRight:\"\"};b.isIE7?a(\"body, html\").css(\"overflow\",\"\"):e.overflow=\"\",a(\"html\").css(e)}d.off(\"keyup\"+p+\" focusin\"+p),b.ev.off(p),b.wrap.attr(\"class\",\"mfp-wrap\").removeAttr(\"style\"),b.bgOverlay.attr(\"class\",\"mfp-bg\"),b.container.attr(\"class\",\"mfp-container\"),!b.st.showCloseBtn||b.st.closeBtnInside&&b.currTemplate[b.currItem.type]!==!0||b.currTemplate.closeBtn&&b.currTemplate.closeBtn.detach(),b.st.autoFocusLast&&b._lastFocusedEl&&a(b._lastFocusedEl).focus(),b.currItem=null,b.content=null,b.currTemplate=null,b.prevHeight=0,y(j)},updateSize:function(a){if(b.isIOS){var c=document.documentElement.clientWidth/window.innerWidth,d=window.innerHeight*c;b.wrap.css(\"height\",d),b.wH=d}else b.wH=a||v.height();b.fixedContentPos||b.wrap.css(\"height\",b.wH),y(\"Resize\")},updateItemHTML:function(){var c=b.items[b.index];b.contentContainer.detach(),b.content&&b.content.detach(),c.parsed||(c=b.parseEl(b.index));var d=c.type;if(y(\"BeforeChange\",[b.currItem?b.currItem.type:\"\",d]),b.currItem=c,!b.currTemplate[d]){var f=b.st[d]?b.st[d].markup:!1;y(\"FirstMarkupParse\",f),f?b.currTemplate[d]=a(f):b.currTemplate[d]=!0}e&&e!==c.type&&b.container.removeClass(\"mfp-\"+e+\"-holder\");var g=b[\"get\"+d.charAt(0).toUpperCase()+d.slice(1)](c,b.currTemplate[d]);b.appendContent(g,d),c.preloaded=!0,y(n,c),e=c.type,b.container.prepend(b.contentContainer),y(\"AfterChange\")},appendContent:function(a,c){b.content=a,a?b.st.showCloseBtn&&b.st.closeBtnInside&&b.currTemplate[c]===!0?b.content.find(\".mfp-close\").length||b.content.append(z()):b.content=a:b.content=\"\",y(k),b.container.addClass(\"mfp-\"+c+\"-holder\"),b.contentContainer.append(b.content)},parseEl:function(c){var d,e=b.items[c];if(e.tagName?e={el:a(e)}:(d=e.type,e={data:e,src:e.src}),e.el){for(var f=b.types,g=0;g<f.length;g++)if(e.el.hasClass(\"mfp-\"+f[g])){d=f[g];break}e.src=e.el.attr(\"data-mfp-src\"),e.src||(e.src=e.el.attr(\"href\"))}return e.type=d||b.st.type||\"inline\",e.index=c,e.parsed=!0,b.items[c]=e,y(\"ElementParse\",e),b.items[c]},addGroup:function(a,c){var d=function(d){d.mfpEl=this,b._openClick(d,a,c)};c||(c={});var e=\"click.magnificPopup\";c.mainEl=a,c.items?(c.isObj=!0,a.off(e).on(e,d)):(c.isObj=!1,c.delegate?a.off(e).on(e,c.delegate,d):(c.items=a,a.off(e).on(e,d)))},_openClick:function(c,d,e){var f=void 0!==e.midClick?e.midClick:a.magnificPopup.defaults.midClick;if(f||!(2===c.which||c.ctrlKey||c.metaKey||c.altKey||c.shiftKey)){var g=void 0!==e.disableOn?e.disableOn:a.magnificPopup.defaults.disableOn;if(g)if(a.isFunction(g)){if(!g.call(b))return!0}else if(v.width()<g)return!0;c.type&&(c.preventDefault(),b.isOpen&&c.stopPropagation()),e.el=a(c.mfpEl),e.delegate&&(e.items=d.find(e.delegate)),b.open(e)}},updateStatus:function(a,d){if(b.preloader){c!==a&&b.container.removeClass(\"mfp-s-\"+c),d||\"loading\"!==a||(d=b.st.tLoading);var e={status:a,text:d};y(\"UpdateStatus\",e),a=e.status,d=e.text,b.preloader.html(d),b.preloader.find(\"a\").on(\"click\",function(a){a.stopImmediatePropagation()}),b.container.addClass(\"mfp-s-\"+a),c=a}},_checkIfClose:function(c){if(!a(c).hasClass(s)){var d=b.st.closeOnContentClick,e=b.st.closeOnBgClick;if(d&&e)return!0;if(!b.content||a(c).hasClass(\"mfp-close\")||b.preloader&&c===b.preloader[0])return!0;if(c===b.content[0]||a.contains(b.content[0],c)){if(d)return!0}else if(e&&a.contains(document,c))return!0;return!1}},_addClassToMFP:function(a){b.bgOverlay.addClass(a),b.wrap.addClass(a)},_removeClassFromMFP:function(a){this.bgOverlay.removeClass(a),b.wrap.removeClass(a)},_hasScrollBar:function(a){return(b.isIE7?d.height():document.body.scrollHeight)>(a||v.height())},_setFocus:function(){(b.st.focus?b.content.find(b.st.focus).eq(0):b.wrap).focus()},_onFocusIn:function(c){return c.target===b.wrap[0]||a.contains(b.wrap[0],c.target)?void 0:(b._setFocus(),!1)},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),y(l,[b,c,d]),a.each(c,function(c,d){if(void 0===d||d===!1)return!0;if(e=c.split(\"_\"),e.length>1){var f=b.find(p+\"-\"+e[0]);if(f.length>0){var g=e[1];\"replaceWith\"===g?f[0]!==d[0]&&f.replaceWith(d):\"img\"===g?f.is(\"img\")?f.attr(\"src\",d):f.replaceWith(a(\"<img>\").attr(\"src\",d).attr(\"class\",f.attr(\"class\"))):f.attr(e[1],d)}}else b.find(p+\"-\"+c).html(d)})},_getScrollbarSize:function(){if(void 0===b.scrollbarSize){var a=document.createElement(\"div\");a.style.cssText=\"width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;\",document.body.appendChild(a),b.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return b.scrollbarSize}},a.magnificPopup={instance:null,proto:t.prototype,modules:[],open:function(b,c){return A(),b=b?a.extend(!0,{},b):{},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:\"\",preloader:!0,focus:\"\",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:\"auto\",fixedBgPos:\"auto\",overflowY:\"auto\",closeMarkup:'<button title=\"%title%\" type=\"button\" class=\"mfp-close\">&#215;</button>',tClose:\"Close (Esc)\",tLoading:\"Loading...\",autoFocusLast:!0}},a.fn.magnificPopup=function(c){A();var d=a(this);if(\"string\"==typeof c)if(\"open\"===c){var e,f=u?d.data(\"magnificPopup\"):d[0].magnificPopup,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),u?d.data(\"magnificPopup\",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var C,D,E,F=\"inline\",G=function(){E&&(D.after(E.addClass(C)).detach(),E=null)};a.magnificPopup.registerModule(F,{options:{hiddenClass:\"hide\",markup:\"\",tNotFound:\"Content not found\"},proto:{initInline:function(){b.types.push(F),w(h+\".\"+F,function(){G()})},getInline:function(c,d){if(G(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(D||(C=e.hiddenClass,D=x(C),C=\"mfp-\"+C),E=f.after(D).detach().removeClass(C)),b.updateStatus(\"ready\")}else b.updateStatus(\"error\",e.tNotFound),f=a(\"<div>\");return c.inlineElement=f,f}return b.updateStatus(\"ready\"),b._parseMarkup(d,{},c),d}}});var H,I=\"ajax\",J=function(){H&&a(document.body).removeClass(H)},K=function(){J(),b.req&&b.req.abort()};a.magnificPopup.registerModule(I,{options:{settings:null,cursor:\"mfp-ajax-cur\",tError:'<a href=\"%url%\">The content</a> could not be loaded.'},proto:{initAjax:function(){b.types.push(I),H=b.st.ajax.cursor,w(h+\".\"+I,K),w(\"BeforeChange.\"+I,K)},getAjax:function(c){H&&a(document.body).addClass(H),b.updateStatus(\"loading\");var d=a.extend({url:c.src,success:function(d,e,f){var g={data:d,xhr:f};y(\"ParseAjax\",g),b.appendContent(a(g.data),I),c.finished=!0,J(),b._setFocus(),setTimeout(function(){b.wrap.addClass(q)},16),b.updateStatus(\"ready\"),y(\"AjaxContentAdded\")},error:function(){J(),c.finished=c.loadError=!0,b.updateStatus(\"error\",b.st.ajax.tError.replace(\"%url%\",c.src))}},b.st.ajax.settings);return b.req=a.ajax(d),\"\"}}});var L,M=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||\"\"}return\"\"};a.magnificPopup.registerModule(\"image\",{options:{markup:'<div class=\"mfp-figure\"><div class=\"mfp-close\"></div><figure><div class=\"mfp-img\"></div><figcaption><div class=\"mfp-bottom-bar\"><div class=\"mfp-title\"></div><div class=\"mfp-counter\"></div></div></figcaption></figure></div>',cursor:\"mfp-zoom-out-cur\",titleSrc:\"title\",verticalFit:!0,tError:'<a href=\"%url%\">The image</a> could not be loaded.'},proto:{initImage:function(){var c=b.st.image,d=\".image\";b.types.push(\"image\"),w(m+d,function(){\"image\"===b.currItem.type&&c.cursor&&a(document.body).addClass(c.cursor)}),w(h+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),v.off(\"resize\"+p)}),w(\"Resize\"+d,b.resizeImage),b.isLowIE&&w(\"AfterChange\",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css(\"padding-top\"),10)+parseInt(a.img.css(\"padding-bottom\"),10)),a.img.css(\"max-height\",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,L&&clearInterval(L),a.isCheckingImgSize=!1,y(\"ImageHasSize\",a),a.imgHidden&&(b.content&&b.content.removeClass(\"mfp-loading\"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){L&&clearInterval(L),L=setInterval(function(){return d.naturalWidth>0?void b._onImageHasSize(a):(c>200&&clearInterval(L),c++,void(3===c?e(10):40===c?e(50):100===c&&e(500)))},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(\".mfploader\"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus(\"ready\")),c.hasSize=!0,c.loaded=!0,y(\"ImageLoadComplete\")):(e++,200>e?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(\".mfploader\"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus(\"error\",h.tError.replace(\"%url%\",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(\".mfp-img\");if(i.length){var j=document.createElement(\"img\");j.className=\"mfp-img\",c.el&&c.el.find(\"img\").length&&(j.alt=c.el.find(\"img\").attr(\"alt\")),c.img=a(j).on(\"load.mfploader\",f).on(\"error.mfploader\",g),j.src=c.src,i.is(\"img\")&&(c.img=c.img.clone()),j=c.img[0],j.naturalWidth>0?c.hasSize=!0:j.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:M(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(L&&clearInterval(L),c.loadError?(d.addClass(\"mfp-loading\"),b.updateStatus(\"error\",h.tError.replace(\"%url%\",c.src))):(d.removeClass(\"mfp-loading\"),b.updateStatus(\"ready\")),d):(b.updateStatus(\"loading\"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass(\"mfp-loading\"),b.findImageSize(c)),d)}}});var N,O=function(){return void 0===N&&(N=void 0!==document.createElement(\"p\").style.MozTransform),N};a.magnificPopup.registerModule(\"zoom\",{options:{enabled:!1,easing:\"ease-in-out\",duration:300,opener:function(a){return a.is(\"img\")?a:a.find(\"img\")}},proto:{initZoom:function(){var a,c=b.st.zoom,d=\".zoom\";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,j=function(a){var b=a.clone().removeAttr(\"style\").removeAttr(\"class\").addClass(\"mfp-animated-image\"),d=\"all \"+c.duration/1e3+\"s \"+c.easing,e={position:\"fixed\",zIndex:9999,left:0,top:0,\"-webkit-backface-visibility\":\"hidden\"},f=\"transition\";return e[\"-webkit-\"+f]=e[\"-moz-\"+f]=e[\"-o-\"+f]=e[f]=d,b.css(e),b},k=function(){b.content.css(\"visibility\",\"visible\")};w(\"BuildControls\"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css(\"visibility\",\"hidden\"),a=b._getItemToZoom(),!a)return void k();f=j(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){k(),setTimeout(function(){f.remove(),a=f=null,y(\"ZoomAnimationEnded\")},16)},g)},16)}}),w(i+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(a=b._getItemToZoom(),!a)return;f=j(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css(\"visibility\",\"hidden\"),setTimeout(function(){f.css(b._getOffset())},16)}}),w(h+d,function(){b._allowZoom()&&(k(),f&&f.remove(),a=null)})}},_allowZoom:function(){return\"image\"===b.currItem.type},_getItemToZoom:function(){return b.currItem.hasSize?b.currItem.img:!1},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css(\"padding-top\"),10),g=parseInt(d.css(\"padding-bottom\"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(u?d.innerHeight():d[0].offsetHeight)-g-f};return O()?h[\"-moz-transform\"]=h.transform=\"translate(\"+e.left+\"px,\"+e.top+\"px)\":(h.left=e.left,h.top=e.top),h}}});var P=\"iframe\",Q=\"//about:blank\",R=function(a){if(b.currTemplate[P]){var c=b.currTemplate[P].find(\"iframe\");c.length&&(a||(c[0].src=Q),b.isIE8&&c.css(\"display\",a?\"block\":\"none\"))}};a.magnificPopup.registerModule(P,{options:{markup:'<div class=\"mfp-iframe-scaler\"><div class=\"mfp-close\"></div><iframe class=\"mfp-iframe\" src=\"//about:blank\" frameborder=\"0\" allowfullscreen></iframe></div>',srcAction:\"iframe_src\",patterns:{youtube:{index:\"youtube.com\",id:\"v=\",src:\"//www.youtube.com/embed/%id%?autoplay=1\"},vimeo:{index:\"vimeo.com/\",id:\"/\",src:\"//player.vimeo.com/video/%id%?autoplay=1\"},gmaps:{index:\"//maps.google.\",src:\"%id%&output=embed\"}}},proto:{initIframe:function(){b.types.push(P),w(\"BeforeChange\",function(a,b,c){b!==c&&(b===P?R():c===P&&R(!0))}),w(h+\".\"+P,function(){R()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){return e.indexOf(this.index)>-1?(this.id&&(e=\"string\"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace(\"%id%\",e),!1):void 0});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus(\"ready\"),d}}});var S=function(a){var c=b.items.length;return a>c-1?a-c:0>a?c+a:a},T=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule(\"gallery\",{options:{enabled:!1,arrowMarkup:'<button title=\"%title%\" type=\"button\" class=\"mfp-arrow mfp-arrow-%dir%\"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:\"Previous (Left arrow key)\",tNext:\"Next (Right arrow key)\",tCounter:\"%curr% of %total%\"},proto:{initGallery:function(){var c=b.st.gallery,e=\".mfp-gallery\";return b.direction=!0,c&&c.enabled?(f+=\" mfp-gallery\",w(m+e,function(){c.navigateByImgClick&&b.wrap.on(\"click\"+e,\".mfp-img\",function(){return b.items.length>1?(b.next(),!1):void 0}),d.on(\"keydown\"+e,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),w(\"UpdateStatus\"+e,function(a,c){c.text&&(c.text=T(c.text,b.currItem.index,b.items.length))}),w(l+e,function(a,d,e,f){var g=b.items.length;e.counter=g>1?T(c.tCounter,f.index,g):\"\"}),w(\"BuildControls\"+e,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,\"left\")).addClass(s),f=b.arrowRight=a(d.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,\"right\")).addClass(s);e.click(function(){b.prev()}),f.click(function(){b.next()}),b.container.append(e.add(f))}}),w(n+e,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),void w(h+e,function(){d.off(e),b.wrap.off(\"click\"+e),b.arrowRight=b.arrowLeft=null})):!1},next:function(){b.direction=!0,b.index=S(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=S(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=S(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),y(\"LazyLoad\",d),\"image\"===d.type&&(d.img=a('<img class=\"mfp-img\" />').on(\"load.mfploader\",function(){d.hasSize=!0}).on(\"error.mfploader\",function(){d.hasSize=!0,d.loadError=!0,y(\"LazyLoadError\",d)}).attr(\"src\",d.src)),d.preloaded=!0}}}});var U=\"retina\";a.magnificPopup.registerModule(U,{options:{replaceSrc:function(a){return a.src.replace(/\\.\\w+$/,function(a){return\"@2x\"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(w(\"ImageHasSize.\"+U,function(a,b){b.img.css({\"max-width\":b.img[0].naturalWidth/c,width:\"100%\"})}),w(\"ElementParse.\"+U,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),A()});","MGS_Fbuilder/js/search-suggest.min.js":"define(['jquery','underscore','mage/template','jquery/ui','mage/translate'],function($,_,mageTemplate){'use strict';function isEmpty(value){return(value.length===0)||(value==null)||/^\\s+$/.test(value);}\n$.widget('mage.acmSearch',{options:{autocomplete:'off',minSearchLength:2,responseFieldElements:'ul li',selectClass:'selected',template:'<li class=\"<%- data.row_class %>\" id=\"qs-option-<%- data.index %>\" role=\"option\" data-name=\"<%- data.name %>\" data-id=\"<%- data.id %>\">'+'<span class=\"qs-option-name\" data-name=\"<%- data.name %>\" data-id=\"<%- data.id %>\">'+' <%- data.name %>'+'</span>'+'</li>'},_create:function(){this.responseList={indexList:null,selected:null};this.autoComplete=$(this.options.destinationSelector);this.searchForm=$(this.options.formSelector);this.searchInput=$(this.options.destinationText);this.resultHidden=$(this.options.destinationId);_.bindAll(this,'_onKeyDown','_onPropertyChange');this.element.attr('autocomplete',this.options.autocomplete);this.element.on('blur',$.proxy(function(){setTimeout($.proxy(function(){this.autoComplete.hide();this._updateAriaHasPopup(false);},this),250);},this));this.element.trigger('blur');this.element.on('keydown',this._onKeyDown);this.element.on('input propertychange',this._onPropertyChange);},_getFirstVisibleElement:function(){return this.responseList.indexList?this.responseList.indexList.first():false;},_getLastElement:function(){return this.responseList.indexList?this.responseList.indexList.last():false;},_updateAriaHasPopup:function(show){if(show){this.element.attr('aria-haspopup','true');}else{this.element.attr('aria-haspopup','false');}},_resetResponseList:function(all){this.responseList.selected=null;if(all===true){this.responseList.indexList=null;}\nthis.resultHidden.attr('value','');},_updateNameAndId:function(selectedItem){if((selectedItem.length)&&(selectedItem.attr('data-name')!='')&&(selectedItem.attr('data-id')!='')){this.searchInput.attr('value',selectedItem.attr('data-name'));this.resultHidden.attr('value',selectedItem.attr('data-id'));}},_onKeyDown:function(e){var keyCode=e.keyCode||e.which;switch(keyCode){case $.ui.keyCode.HOME:this._getFirstVisibleElement().addClass(this.options.selectClass);this.responseList.selected=this._getFirstVisibleElement();this._updateNameAndId(this.responseList.selected);break;case $.ui.keyCode.END:this._getLastElement().addClass(this.options.selectClass);this.responseList.selected=this._getLastElement();this._updateNameAndId(this.responseList.selected);break;case $.ui.keyCode.ESCAPE:this._resetResponseList(true);this.autoComplete.hide();break;case $.ui.keyCode.ENTER:if(this.responseList.indexList){if(this.responseList.selected){this._updateNameAndId(this.responseList.selected);}}\nbreak;case $.ui.keyCode.DOWN:if(this.responseList.indexList){if(!this.responseList.selected){this._getFirstVisibleElement().addClass(this.options.selectClass);this.responseList.selected=this._getFirstVisibleElement();}\nelse if(!this._getLastElement().hasClass(this.options.selectClass)){this.responseList.selected=this.responseList.selected.removeClass(this.options.selectClass).next().addClass(this.options.selectClass);}else{this.responseList.selected.removeClass(this.options.selectClass);this._getFirstVisibleElement().addClass(this.options.selectClass);this.responseList.selected=this._getFirstVisibleElement();}\nthis.element.val(this.responseList.selected.find('.qs-option-name').text());this.element.attr('aria-activedescendant',this.responseList.selected.attr('id'));this._updateNameAndId(this.responseList.selected);}\nbreak;case $.ui.keyCode.UP:if(this.responseList.indexList!==null){if(!this._getFirstVisibleElement().hasClass(this.options.selectClass)){this.responseList.selected=this.responseList.selected.removeClass(this.options.selectClass).prev().addClass(this.options.selectClass);}else{this.responseList.selected.removeClass(this.options.selectClass);this._getLastElement().addClass(this.options.selectClass);this.responseList.selected=this._getLastElement();}\nthis._updateNameAndId(this.responseList.selected);this.element.val(this.responseList.selected.find('.qs-option-name').text());this.element.attr('aria-activedescendant',this.responseList.selected.attr('id'));}\nbreak;default:return true;}},_onPropertyChange:function(){var searchField=this.element,clonePosition={position:'absolute',width:searchField.outerWidth()},source=this.options.template,template=mageTemplate(source),dropdown=$('<ul role=\"listbox\"></ul>'),value=this.element.val();if(value.length>=parseInt(this.options.minSearchLength,10)){var parentDiv=this.searchInput.parent();parentDiv.addClass('fbuilder-form-searching');$.get(this.options.url,{q:value},$.proxy(function(data){$.each(data,function(index,element){element.index=index;var html=template({data:element});dropdown.append(html);});this.responseList.indexList=this.autoComplete.html(dropdown).css(clonePosition).show().find(this.options.responseFieldElements+':visible');this._resetResponseList(false);this.element.removeAttr('aria-activedescendant');parentDiv.removeClass('fbuilder-form-searching');if(this.responseList.indexList.length){this._updateAriaHasPopup(true);}else{this._updateAriaHasPopup(false);}\nthis.responseList.indexList.on('click',function(e){this.responseList.selected=$(e.target);this._updateNameAndId(this.responseList.selected);}.bind(this)).on('mouseenter mouseleave',function(e){this.responseList.indexList.removeClass(this.options.selectClass);$(e.target).addClass(this.options.selectClass);this.responseList.selected=$(e.target);this.element.attr('aria-activedescendant',$(e.target).attr('id'));}.bind(this)).on('mouseout',function(e){if(!this._getLastElement()&&this._getLastElement().hasClass(this.options.selectClass)){$(e.target).removeClass(this.options.selectClass);this._resetResponseList(false);}}.bind(this));},this));}else{this._resetResponseList(true);this.autoComplete.hide();this._updateAriaHasPopup(false);this.element.removeAttr('aria-activedescendant');}}});return $.mage.acmSearch;});","MGS_Fbuilder/js/magnific_popup.min.js":"define(['jquery','magnificPopup'],function($,magnificPopup){\"use strict\";return{displayContent:function(prodUrl){if(!prodUrl.length){return false;}\nvar url=window.require.s.head.baseURI+'mgs_quickview/index/updatecart';$.magnificPopup.open({items:{src:prodUrl},type:'iframe',removalDelay:300,mainClass:'mfp-fade mfp-mgs-quickview-frame',closeOnBgClick:true,preloader:true,tLoading:'',callbacks:{open:function(){$('.mfp-preloader').css('display','block');},beforeClose:function(){$('[data-block=\"minicart\"]').trigger('contentLoading');$.ajax({url:url,method:\"POST\"});},close:function(){$('.mfp-preloader').css('display','none');}}});}};});","MGS_Fbuilder/js/panel.min.js":"if(typeof(WEB_URL)=='undefined'){if(document.getElementById(\"base_url_input\")){var WEB_URL=document.getElementById(\"base_url_input\").value;}else{if(typeof(BASE_URL)!=='undefined'){var WEB_URL=BASE_URL;}else{pubUrl=require.s.contexts._.config.baseUrl;arrUrl=pubUrl.split('pub/');arrUrl=arrUrl[0].split('media/');var WEB_URL=arrUrl[0];}}}\nrequire([\"jquery\",\"jquery/ui\"],function($){$(document).ready(function(){initPanelPopup();setSectionPanelPosition($);if($(\"#sortable_home\").length){$(\"#sortable_home\").sortable({handle:'.sort-handle'});}\nif($(\".edit-panel.parent-panel\").length){$('.edit-panel.parent-panel').mouseover(function(){$(this).parent().addClass('hover');}).mouseout(function(){$('.container-panel.hover').removeClass('hover');});}\nif($(\".static-can-edit .edit-panel\").length){$('.static-can-edit .edit-panel').mouseover(function(){$(this).parent().addClass('hover');}).mouseout(function(){$('.static-can-edit.hover').removeClass('hover');});}\nif($(\".child-panel\").length){$('.child-panel').mouseover(function(){$(this).parent().addClass('hover');}).mouseout(function(){$('.child-builder.hover').removeClass('hover');});}\nif($(\".moveuplink\").length){$(\".moveuplink\").on('click',function(){$(this).parents(\".sort-item\").insertBefore($(this).parents(\".sort-item\").prev());sendOrderToServer();});$(\".movedownlink\").on('click',function(){$(this).parents(\".sort-item\").insertAfter($(this).parents(\".sort-item\").next());sendOrderToServer();});}\nif($(\".sort-block-container\").length){$(\".sort-block-container\").sortable({handle:'.sort-handle',update:function(event,ui){var data=$(this).sortable('serialize');$.ajax({data:data,type:'POST',url:WEB_URL+'fbuilder/index/sortblock'});}});}});});function copyBlock(blockId){additionalData='/block_id/'+blockId;loadAjaxByAction('copyblock',additionalData);return;}\nfunction sendOrderToServer(){require(['jquery','jquery/ui'],function(jQuery){(function($){var order=$(\"#sortable_home\").sortable('serialize');$.ajax({type:\"POST\",dataType:\"json\",url:WEB_URL+'fbuilder/index/sortsection',data:order,success:function(response){}});})(jQuery);});}\nfunction initPanelPopup(){require([\"jquery\",\"magnificPopup\"],function($){var magnificPopup=$('.popup-link').magnificPopup({type:'iframe',iframe:{markup:'<div class=\"mfp-iframe-scaler builder-iframe\">'+'<div class=\"mfp-close\"></div>'+'<iframe class=\"mfp-iframe\" frameborder=\"0\" allowfullscreen></iframe>'+'</div>'},mainClass:'mfp-fade',removalDelay:160,preloader:false,fixedContentPos:false});});}\nfunction openPopup(href){require([\"jquery\",\"magnificPopup\"],function($){var magnificPopup=$.magnificPopup.open({items:{src:href,},type:'iframe',iframe:{markup:'<div class=\"mfp-iframe-scaler builder-iframe\">'+'<div class=\"mfp-close\"></div>'+'<iframe class=\"mfp-iframe\" frameborder=\"0\" allowfullscreen></iframe>'+'</div>'},mainClass:'mfp-fade',removalDelay:160,preloader:false,fixedContentPos:false});});}\nfunction loadAjaxByAction(action,additionalData){require([\"jquery\"],function($){var url=WEB_URL+'fbuilder/index/'+action;if(additionalData){url+=additionalData;}\n$.ajax(url,{success:function(data){if(data!=''){switch(action){case'newsection':$('#sortable_home').append(data);$('#new-section-load img').hide();$('#new-section-load .fa').show();initPanelPopup();$('.edit-panel.parent-panel').mouseover(function(){$(this).parent().addClass('hover');}).mouseout(function(){$('.container-panel.hover').removeClass('hover');});if($(\".moveuplink\").length){$(\".moveuplink\").on('click',function(){$(this).parents(\".sort-item\").insertBefore($(this).parents(\".sort-item\").prev());sendOrderToServer();});$(\".movedownlink\").on('click',function(){$(this).parents(\".sort-item\").insertAfter($(this).parents(\".sort-item\").next());sendOrderToServer();});}\nbreak;case'removesection':var result=JSON.parse(data);if(isNaN(result.result)){alert(data);}else{$('#panel-section-'+result.result).remove();if(result.block_copied){$('button.btn-dulicate').remove();}}\nbreak;case'copyblock':if($('.btn-dulicate').length==0){$('.btn-addnewblock').each(function(){pageId=$(this).attr('data-page-id');blockName=$(this).attr('data-block-name');pageType=$(this).attr('data-page-type');$(this).parent().append('<button class=\"action btn btn-default btn-dulicate\" type=\"button\" onclick=\"pasteBlock('+pageId+', \\''+blockName+'\\', \\''+pageType+'\\')\"><em class=\"fa fa-plus-circle\"></em>&nbsp;Paste Copied Block</button>');});}\nalert('You copied block.');break;}}}});});}\nfunction pasteBlock(pageId,blockName,pageType){var url=WEB_URL+'fbuilder/index/pasteblock/page_id/'+pageId+'/block_name/'+blockName+'/page_type/'+pageType;setLocation(url);}\nfunction addNewSection(page_id,type){additionalData='/page_id/'+page_id+'/page_type/'+type;loadAjaxByAction('newsection',additionalData);}\nfunction addNewCategorySection(category_id,override){additionalData='/page_id/'+category_id+'/page_type/category/override/'+override;loadAjaxByAction('newsection',additionalData);}\nfunction removeSection(sectionId){additionalData='/id/'+sectionId;loadAjaxByAction('removesection',additionalData);}\nfunction removeBlock(url,blockId){require([\"jquery\"],function($){$.ajax(url,{success:function(data){var result=JSON.parse(data);if(isNaN(result.result)){alert(data);}else{$('#block-'+result.result).remove();if(result.block_copied){$('button.btn-dulicate').remove();}}}});});}\nfunction changeBlockCol(url,oldCol,blockId){require([\"jquery\"],function($){$.ajax(url,{success:function(data){if(isNaN(data)){alert(data);}else{for(i=1;i<=12;i++){if($('#block-'+blockId).hasClass('col-des-'+i)){$('#block-'+blockId).removeClass('col-des-'+i);}}\nnewClass='col-des-'+data;$('#block-'+blockId).addClass(newClass);$('#block-'+blockId+' .edit-panel .change-col a').removeClass('active');$('#changecol-'+blockId+'-'+data).addClass('active');}}});});}\nfunction setSectionPanelPosition($){if($(\".section-builder\").length){$(\".section-builder\").each(function(){padding=$(this).css('padding-top');$(this).find($('.parent-panel')).css('top',padding);});}}\nfunction setLocation(url){require([\"jquery\",\"mage/mage\"],function($){$($.mage.redirect(url,\"assign\",0));});}","MGS_Fbuilder/js/jquery.twentytwenty.min.js":"(function(fn){if(typeof define==='function'&&define.amd){define([],fn);}else if((typeof module!==\"undefined\"&&module!==null)&&module.exports){module.exports=fn;}else{fn();}})(function(){var assign=Object.assign||window.jQuery&&jQuery.extend;var threshold=8;var requestFrame=(function(){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(fn,element){return window.setTimeout(function(){fn();},25);});})();(function(){if(typeof window.CustomEvent===\"function\")return false;function CustomEvent(event,params){params=params||{bubbles:false,cancelable:false,detail:undefined};var evt=document.createEvent('CustomEvent');evt.initCustomEvent(event,params.bubbles,params.cancelable,params.detail);return evt;}\nCustomEvent.prototype=window.Event.prototype;window.CustomEvent=CustomEvent;})();var ignoreTags={textarea:true,input:true,select:true,button:true};var mouseevents={move:'mousemove',cancel:'mouseup dragstart',end:'mouseup'};var touchevents={move:'touchmove',cancel:'touchend',end:'touchend'};var rspaces=/\\s+/;var eventOptions={bubbles:true,cancelable:true};var eventsSymbol=typeof Symbol===\"function\"?Symbol('events'):{};function createEvent(type){return new CustomEvent(type,eventOptions);}\nfunction getEvents(node){return node[eventsSymbol]||(node[eventsSymbol]={});}\nfunction on(node,types,fn,data,selector){types=types.split(rspaces);var events=getEvents(node);var i=types.length;var handlers,type;function handler(e){fn(e,data);}\nwhile(i--){type=types[i];handlers=events[type]||(events[type]=[]);handlers.push([fn,handler]);node.addEventListener(type,handler);}}\nfunction off(node,types,fn,selector){types=types.split(rspaces);var events=getEvents(node);var i=types.length;var type,handlers,k;if(!events){return;}\nwhile(i--){type=types[i];handlers=events[type];if(!handlers){continue;}\nk=handlers.length;while(k--){if(handlers[k][0]===fn){node.removeEventListener(type,handlers[k][1]);handlers.splice(k,1);}}}}\nfunction trigger(node,type,properties){var event=createEvent(type);if(properties){assign(event,properties);}\nnode.dispatchEvent(event);}\nfunction Timer(fn){var callback=fn,active=false,running=false;function trigger(time){if(active){callback();requestFrame(trigger);running=true;active=false;}\nelse{running=false;}}\nthis.kick=function(fn){active=true;if(!running){trigger();}};this.end=function(fn){var cb=callback;if(!fn){return;}\nif(!running){fn();}\nelse{callback=active?function(){cb();fn();}:fn;active=true;}};}\nfunction noop(){}\nfunction preventDefault(e){e.preventDefault();}\nfunction isIgnoreTag(e){return!!ignoreTags[e.target.tagName.toLowerCase()];}\nfunction isPrimaryButton(e){return(e.which===1&&!e.ctrlKey&&!e.altKey);}\nfunction identifiedTouch(touchList,id){var i,l;if(touchList.identifiedTouch){return touchList.identifiedTouch(id);}\ni=-1;l=touchList.length;while(++i<l){if(touchList[i].identifier===id){return touchList[i];}}}\nfunction changedTouch(e,data){var touch=identifiedTouch(e.changedTouches,data.identifier);if(!touch){return;}\nif(touch.pageX===data.pageX&&touch.pageY===data.pageY){return;}\nreturn touch;}\nfunction mousedown(e){if(!isPrimaryButton(e)){return;}\nif(isIgnoreTag(e)){return;}\non(document,mouseevents.move,mousemove,e);on(document,mouseevents.cancel,mouseend,e);}\nfunction mousemove(e,data){checkThreshold(e,data,e,removeMouse);}\nfunction mouseend(e,data){removeMouse();}\nfunction removeMouse(){off(document,mouseevents.move,mousemove);off(document,mouseevents.cancel,mouseend);}\nfunction touchstart(e){if(ignoreTags[e.target.tagName.toLowerCase()]){return;}\nvar touch=e.changedTouches[0];var data={target:touch.target,pageX:touch.pageX,pageY:touch.pageY,identifier:touch.identifier,touchmove:function(e,data){touchmove(e,data);},touchend:function(e,data){touchend(e,data);}};on(document,touchevents.move,data.touchmove,data);on(document,touchevents.cancel,data.touchend,data);}\nfunction touchmove(e,data){var touch=changedTouch(e,data);if(!touch){return;}\ncheckThreshold(e,data,touch,removeTouch);}\nfunction touchend(e,data){var touch=identifiedTouch(e.changedTouches,data.identifier);if(!touch){return;}\nremoveTouch(data);}\nfunction removeTouch(data){off(document,touchevents.move,data.touchmove);off(document,touchevents.cancel,data.touchend);}\nfunction checkThreshold(e,data,touch,fn){var distX=touch.pageX-data.pageX;var distY=touch.pageY-data.pageY;if((distX*distX)+(distY*distY)<(threshold*threshold)){return;}\ntriggerStart(e,data,touch,distX,distY,fn);}\nfunction triggerStart(e,data,touch,distX,distY,fn){var touches=e.targetTouches;var time=e.timeStamp-data.timeStamp;var template={altKey:e.altKey,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,startX:data.pageX,startY:data.pageY,distX:distX,distY:distY,deltaX:distX,deltaY:distY,pageX:touch.pageX,pageY:touch.pageY,velocityX:distX / time,velocityY:distY / time,identifier:data.identifier,targetTouches:touches,finger:touches?touches.length:1,enableMove:function(){this.moveEnabled=true;this.enableMove=noop;e.preventDefault();}};trigger(data.target,'movestart',template);fn(data);}\nfunction activeMousemove(e,data){var timer=data.timer;data.touch=e;data.timeStamp=e.timeStamp;timer.kick();}\nfunction activeMouseend(e,data){var target=data.target;var event=data.event;var timer=data.timer;removeActiveMouse();endEvent(target,event,timer,function(){setTimeout(function(){off(target,'click',preventDefault);},0);});}\nfunction removeActiveMouse(){off(document,mouseevents.move,activeMousemove);off(document,mouseevents.end,activeMouseend);}\nfunction activeTouchmove(e,data){var event=data.event;var timer=data.timer;var touch=changedTouch(e,event);if(!touch){return;}\ne.preventDefault();event.targetTouches=e.targetTouches;data.touch=touch;data.timeStamp=e.timeStamp;timer.kick();}\nfunction activeTouchend(e,data){var target=data.target;var event=data.event;var timer=data.timer;var touch=identifiedTouch(e.changedTouches,event.identifier);if(!touch){return;}\nremoveActiveTouch(data);endEvent(target,event,timer);}\nfunction removeActiveTouch(data){off(document,touchevents.move,data.activeTouchmove);off(document,touchevents.end,data.activeTouchend);}\nfunction updateEvent(event,touch,timeStamp){var time=timeStamp-event.timeStamp;event.distX=touch.pageX-event.startX;event.distY=touch.pageY-event.startY;event.deltaX=touch.pageX-event.pageX;event.deltaY=touch.pageY-event.pageY;event.velocityX=0.3*event.velocityX+0.7*event.deltaX / time;event.velocityY=0.3*event.velocityY+0.7*event.deltaY / time;event.pageX=touch.pageX;event.pageY=touch.pageY;}\nfunction endEvent(target,event,timer,fn){timer.end(function(){trigger(target,'moveend',event);return fn&&fn();});}\nfunction movestart(e){if(e.defaultPrevented){return;}\nif(!e.moveEnabled){return;}\nvar event={startX:e.startX,startY:e.startY,pageX:e.pageX,pageY:e.pageY,distX:e.distX,distY:e.distY,deltaX:e.deltaX,deltaY:e.deltaY,velocityX:e.velocityX,velocityY:e.velocityY,identifier:e.identifier,targetTouches:e.targetTouches,finger:e.finger};var data={target:e.target,event:event,timer:new Timer(update),touch:undefined,timeStamp:e.timeStamp};function update(time){updateEvent(event,data.touch,data.timeStamp);trigger(data.target,'move',event);}\nif(e.identifier===undefined){on(e.target,'click',preventDefault);on(document,mouseevents.move,activeMousemove,data);on(document,mouseevents.end,activeMouseend,data);}\nelse{data.activeTouchmove=function(e,data){activeTouchmove(e,data);};data.activeTouchend=function(e,data){activeTouchend(e,data);};on(document,touchevents.move,data.activeTouchmove,data);on(document,touchevents.end,data.activeTouchend,data);}}\non(document,'mousedown',mousedown);on(document,'touchstart',touchstart);on(document,'movestart',movestart);if(!window.jQuery){return;}\nvar properties=(\"startX startY pageX pageY distX distY deltaX deltaY velocityX velocityY\").split(' ');function enableMove1(e){e.enableMove();}\nfunction enableMove2(e){e.enableMove();}\nfunction enableMove3(e){e.enableMove();}\nfunction add(handleObj){var handler=handleObj.handler;handleObj.handler=function(e){var i=properties.length;var property;while(i--){property=properties[i];e[property]=e.originalEvent[property];}\nhandler.apply(this,arguments);};}\njQuery.event.special.movestart={setup:function(){on(this,'movestart',enableMove1);return false;},teardown:function(){off(this,'movestart',enableMove1);return false;},add:add};jQuery.event.special.move={setup:function(){on(this,'movestart',enableMove2);return false;},teardown:function(){off(this,'movestart',enableMove2);return false;},add:add};jQuery.event.special.moveend={setup:function(){on(this,'movestart',enableMove3);return false;},teardown:function(){off(this,'movestart',enableMove3);return false;},add:add};});(function($){$.fn.twentytwenty=function(options){var options=$.extend({default_offset_pct:0.5,orientation:'horizontal',before_label:'Before',after_label:'After',no_overlay:false,move_slider_on_hover:false,move_with_handle_only:true,click_to_move:false},options);return this.each(function(){var sliderPct=options.default_offset_pct;var container=$(this);var sliderOrientation=options.orientation;var beforeDirection=(sliderOrientation==='vertical')?'down':'left';var afterDirection=(sliderOrientation==='vertical')?'up':'right';container.wrap(\"<div class='twentytwenty-wrapper twentytwenty-\"+sliderOrientation+\"'></div>\");if(!options.no_overlay){container.append(\"<div class='twentytwenty-overlay'></div>\");var overlay=container.find(\".twentytwenty-overlay\");overlay.append(\"<div class='twentytwenty-before-label' data-content='\"+options.before_label+\"'></div>\");overlay.append(\"<div class='twentytwenty-after-label' data-content='\"+options.after_label+\"'></div>\");}\nvar beforeImg=container.find(\"img:first\");var afterImg=container.find(\"img:last\");container.append(\"<div class='twentytwenty-handle'></div>\");var slider=container.find(\".twentytwenty-handle\");slider.append(\"<span class='twentytwenty-\"+beforeDirection+\"-arrow'></span>\");slider.append(\"<span class='twentytwenty-\"+afterDirection+\"-arrow'></span>\");container.addClass(\"twentytwenty-container\");beforeImg.addClass(\"twentytwenty-before\");afterImg.addClass(\"twentytwenty-after\");var calcOffset=function(dimensionPct){var w=beforeImg.width();var h=beforeImg.height();return{w:w+\"px\",h:h+\"px\",cw:(dimensionPct*w)+\"px\",ch:(dimensionPct*h)+\"px\"};};var adjustContainer=function(offset){if(sliderOrientation==='vertical'){beforeImg.css(\"clip\",\"rect(0,\"+offset.w+\",\"+offset.ch+\",0)\");afterImg.css(\"clip\",\"rect(\"+offset.ch+\",\"+offset.w+\",\"+offset.h+\",0)\");}\nelse{beforeImg.css(\"clip\",\"rect(0,\"+offset.cw+\",\"+offset.h+\",0)\");afterImg.css(\"clip\",\"rect(0,\"+offset.w+\",\"+offset.h+\",\"+offset.cw+\")\");}\ncontainer.css(\"height\",offset.h);};var adjustSlider=function(pct){var offset=calcOffset(pct);slider.css((sliderOrientation===\"vertical\")?\"top\":\"left\",(sliderOrientation===\"vertical\")?offset.ch:offset.cw);adjustContainer(offset);};var minMaxNumber=function(num,min,max){return Math.max(min,Math.min(max,num));};var getSliderPercentage=function(positionX,positionY){var sliderPercentage=(sliderOrientation==='vertical')?(positionY-offsetY)/imgHeight:(positionX-offsetX)/imgWidth;return minMaxNumber(sliderPercentage,0,1);};$(window).on(\"resize.twentytwenty\",function(e){adjustSlider(sliderPct);});var offsetX=0;var offsetY=0;var imgWidth=0;var imgHeight=0;var onMoveStart=function(e){if(((e.distX>e.distY&&e.distX<-e.distY)||(e.distX<e.distY&&e.distX>-e.distY))&&sliderOrientation!=='vertical'){e.preventDefault();}\nelse if(((e.distX<e.distY&&e.distX<-e.distY)||(e.distX>e.distY&&e.distX>-e.distY))&&sliderOrientation==='vertical'){e.preventDefault();}\ncontainer.addClass(\"active\");offsetX=container.offset().left;offsetY=container.offset().top;imgWidth=beforeImg.width();imgHeight=beforeImg.height();};var onMove=function(e){if(container.hasClass(\"active\")){sliderPct=getSliderPercentage(e.pageX,e.pageY);adjustSlider(sliderPct);}};var onMoveEnd=function(){container.removeClass(\"active\");};var moveTarget=options.move_with_handle_only?slider:container;moveTarget.on(\"movestart\",onMoveStart);moveTarget.on(\"move\",onMove);moveTarget.on(\"moveend\",onMoveEnd);if(options.move_slider_on_hover){container.on(\"mouseenter\",onMoveStart);container.on(\"mousemove\",onMove);container.on(\"mouseleave\",onMoveEnd);}\nslider.on(\"touchmove\",function(e){e.preventDefault();});container.find(\"img\").on(\"mousedown\",function(event){event.preventDefault();});if(options.click_to_move){container.on('click',function(e){offsetX=container.offset().left;offsetY=container.offset().top;imgWidth=beforeImg.width();imgHeight=beforeImg.height();sliderPct=getSliderPercentage(e.pageX,e.pageY);adjustSlider(sliderPct);});}\n$(window).trigger(\"resize.twentytwenty\");});};})(jQuery);","MGS_Fbuilder/js/jquery.lazyload.min.js":";(function($){$.fn.unveil=function(threshold,callback){var $w=$(window),th=threshold||0,retina=window.devicePixelRatio>1,attrib=retina?\"data-src-retina\":\"data-src\",images=this,loaded;this.one(\"unveil\",function(){var source=this.getAttribute(attrib);source=source||this.getAttribute(\"data-src\");if(source){if(this.getAttribute(\"srcset\"))this.setAttribute(\"srcset\",source);this.setAttribute(\"src\",source);if(this.getAttribute(\"data-alt\"))this.setAttribute(\"alt\",this.getAttribute(\"data-alt\"));if(typeof callback===\"function\")callback.call(this);}});function unveil(){var inview=images.filter(function(){var $e=$(this);if($e.is(\":hidden\"))return;var wt=$w.scrollTop(),wb=wt+$w.height(),et=$e.offset().top,eb=et+$e.height();return eb>=wt-th&&et<=wb+th;});loaded=inview.trigger(\"unveil\");images=images.not(loaded);}\nfunction unveil2(){setInterval(function(){var inview=images.filter(function(){var $e=$(this);if($e.is(\":hidden\"))return;var wt=$w.scrollTop(),wb=wt+$w.height(),et=$e.offset().top,eb=et+$e.height();return eb>=wt-th&&et<=wb+th;});loaded=inview.trigger(\"unveil\");images=images.not(loaded);},2000);}\n$w.on(\"scroll.unveil resize.unveil lookup.unveil\",unveil2);$w.scroll();unveil();return this;};})(window.jQuery||window.Zepto);","MGS_Fbuilder/js/jquery-bridget.min.js":"(function(window,factory){if(typeof define=='function'&&define.amd){define(['jquery'],function(jQuery){return factory(window,jQuery);});}else if(typeof module=='object'&&module.exports){module.exports=factory(window,require('jquery'));}else{window.jQueryBridget=factory(window,window.jQuery);}}(window,function factory(window,jQuery){'use strict';var arraySlice=Array.prototype.slice;var console=window.console;var logError=typeof console=='undefined'?function(){}:function(message){console.error(message);};function jQueryBridget(namespace,PluginClass,$){$=$||jQuery||window.jQuery;if(!$){return;}\nif(!PluginClass.prototype.option){PluginClass.prototype.option=function(opts){if(!$.isPlainObject(opts)){return;}\nthis.options=$.extend(true,this.options,opts);};}\n$.fn[namespace]=function(arg0){if(typeof arg0=='string'){var args=arraySlice.call(arguments,1);return methodCall(this,arg0,args);}\nplainCall(this,arg0);return this;};function methodCall($elems,methodName,args){var returnValue;var pluginMethodStr='$().'+namespace+'(\"'+methodName+'\")';$elems.each(function(i,elem){var instance=$.data(elem,namespace);if(!instance){logError(namespace+' not initialized. Cannot call methods, i.e. '+\npluginMethodStr);return;}\nvar method=instance[methodName];if(!method||methodName.charAt(0)=='_'){logError(pluginMethodStr+' is not a valid method');return;}\nvar value=method.apply(instance,args);returnValue=returnValue===undefined?value:returnValue;});return returnValue!==undefined?returnValue:$elems;}\nfunction plainCall($elems,options){$elems.each(function(i,elem){var instance=$.data(elem,namespace);if(instance){instance.option(options);instance._init();}else{instance=new PluginClass(elem,options);$.data(elem,namespace,instance);}});}\nupdateJQuery($);}\nfunction updateJQuery($){if(!$||($&&$.bridget)){return;}\n$.bridget=jQueryBridget;}\nupdateJQuery(jQuery||window.jQuery);return jQueryBridget;}));","MGS_Fbuilder/js/bootstrap/editor.min.js":"require([\"mage/adminhtml/browser\"]);","MGS_Fbuilder/js/grid/tree-massactions.min.js":"define(['ko','underscore','MGS_Fbuilder/js/grid/massactions'],function(ko,_,Massactions){'use strict';return Massactions.extend({defaults:{template:'MGS_Fbuilder/grid/tree-massactions',submenuTemplate:'ui/grid/submenu',amastysubmenuTemplate:'MGS_Fbuilder/grid/submenu',selectProvider:'',modules:{selections:'${ $.selectProvider }'},listens:{opened:'hideSubmenus'}},initObservable:function(){this._super().recursiveObserveActions(this.actions());return this;},recursiveObserveActions:function(actions){_.each(actions,function(action){if(action.actions){action.visible=ko.observable(false);action.parent=actions;this.recursiveObserveActions(action.actions);}},this);return this;},applyAction:function(actionIndex){var action=this.getAction(actionIndex),visibility;if(action.visible){visibility=action.visible();this.hideSubmenus(action.parent);action.visible(!visibility);return this;}\nreturn this._super(actionIndex);},getAction:function(actionIndex,actions){var currentActions=actions||this.actions(),result=false;_.find(currentActions,function(action){if(action.type===actionIndex){result=action;return true;}\nif(action.actions){result=this.getAction(actionIndex,action.actions);return result;}},this);return result;},hideSubmenus:function(actions){var currentActions=actions||this.actions();_.each(currentActions,function(action){if(action.visible&&action.visible()){action.visible(false);}\nif(action.actions){this.hideSubmenus(action.actions);}},this);return this;},applyMassaction:function(action){return this._super(this,action);}});});","MGS_Fbuilder/js/grid/massactions.min.js":"define(['underscore','Magento_Ui/js/grid/massactions','uiRegistry','mageUtils','Magento_Ui/js/lib/collapsible','Magento_Ui/js/modal/confirm','Magento_Ui/js/modal/alert','mage/translate'],function(_,Massactions,registry,utils,Collapsible,confirm,alert,$t){'use strict';return Massactions.extend({defaultCallback:function(action,data){var itemsType=data.excludeMode?'excluded':'selected',selections={};selections[itemsType]=data[itemsType];if(!selections[itemsType].length){selections[itemsType]=false;}\n_.extend(selections,data.params||{});if(action.type&&action.type.indexOf('amasty')==0){selections['action']=action.type;}\nconsole.log(action.url);utils.submit({url:action.url,data:selections});},applyMassaction:function(parent,action){var data=this.getSelections(),action,callback;action=this.getAction(action.type);var fileElement=jQuery('.action-submenu._active .amasty-file-form input:visible, .action-submenu._active .amasty-file-form select:visible');var value=fileElement.length?fileElement[fileElement.length-1].value:null;if(!value){alert({content:'Required field is empty.'});return this;}\nif(!data.total||!value){alert({content:this.noItemsMsg});return this;}\nvar me=this;callback=function(){me.massactionCallback(action,data)};action.confirm?this._confirm(action,callback):callback();},massactionCallback:function(action,data){var itemsType=data.excludeMode?'excluded':'selected',selections={};selections[itemsType]=data[itemsType];var fileElement=jQuery('.action-submenu._active .amasty-file-form input:visible, .action-submenu._active .amasty-file-form select:visible');if(fileElement.length){selections['amasty_file_field']=fileElement[fileElement.length-1].value;}\nselections['action']=action.type;if(!selections[itemsType].length){selections[itemsType]=false;}\n_.extend(selections,data.params||{});console.log(action.url);utils.submit({url:action.url,data:selections});}});});","Magento_ReCaptchaStorePickup/js/reCaptchaStorePickup.min.js":"define(['Magento_ReCaptchaFrontendUi/js/reCaptcha'],function(reCaptcha){'use strict';return reCaptcha.extend({renderReCaptcha:function(){this.captchaInitialized=false;this._super();}});});","Magento_Cookie/js/notices.min.js":"define(['jquery','jquery-ui-modules/widget','mage/cookies'],function($){'use strict';$.widget('mage.cookieNotices',{_create:function(){if($.mage.cookies.get(this.options.cookieName)){this.element.hide();}else{this.element.show();}\n$(this.options.cookieAllowButtonSelector).on('click',$.proxy(function(){var cookieExpires=new Date(new Date().getTime()+this.options.cookieLifetime*1000);$.mage.cookies.set(this.options.cookieName,JSON.stringify(this.options.cookieValue),{expires:cookieExpires});if($.mage.cookies.get(this.options.cookieName)){this.element.hide();$(document).trigger('user:allowed:save:cookie');}else{window.location.href=this.options.noCookiesUrl;}},this));}});return $.mage.cookieNotices;});","Magento_Cookie/js/require-cookie.min.js":"define(['jquery','Magento_Ui/js/modal/alert','jquery-ui-modules/widget','mage/mage','mage/translate'],function($,alert){'use strict';$.widget('mage.requireCookie',{options:{event:'click',noCookieUrl:'enable-cookies',triggers:['.action.login','.action.submit'],isRedirectCmsPage:true},_create:function(){this._bind();},_bind:function(){var events={};$.each(this.options.triggers,function(index,value){events['click '+value]='_checkCookie';});this._on(events);},_checkCookie:function(event){if(navigator.cookieEnabled){return;}\nevent.preventDefault();if(this.options.isRedirectCmsPage){window.location=this.options.noCookieUrl;}else{alert({content:$.mage.__('Cookies are disabled in your browser.')});}}});return $.mage.requireCookie;});","Magento_Newsletter/js/newsletter-sign-up.min.js":"define(['jquery','uiElement','mage/url','subscriptionStatusResolver','mage/validation'],function($,Component,urlBuilder,subscriptionStatusResolver){'use strict';return Component.extend({defaults:{signUpElement:'',submitButton:'',element:null},initialize:function(config,element){this._super();this.element=element;$(element).on('change',$.proxy(this.updateSignUpStatus,this));this.updateSignUpStatus();},updateSignUpStatus:function(){var element=$(this.element),email=element.val(),self=this,newsletterSubscription;if($(self.signUpElement).is(':checked')){return;}\nif(!email||!$.validator.methods['validate-email'].call(this,email,element)){return;}\nnewsletterSubscription=$.Deferred();$(self.submitButton).prop('disabled',true);subscriptionStatusResolver(email,newsletterSubscription);$.when(newsletterSubscription).done(function(isSubscribed){if(isSubscribed){$(self.signUpElement).prop('checked',true);}}).always(function(){$(self.submitButton).prop('disabled',false);});}});});","Magento_Newsletter/js/subscription-status-resolver.min.js":"define(['jquery','mage/url'],function($,urlBuilder){'use strict';return function(email,deferred){return $.getJSON(urlBuilder.build('newsletter/ajax/status'),{email:email}).done(function(response){if(response.errors){deferred.reject();}else{deferred.resolve(response.subscribed);}}).fail(function(){deferred.reject();});};});","Accept_Payments/js/view/payment/online.min.js":"define(['uiComponent','Magento_Checkout/js/model/payment/renderer-list'],function(Component,rendererList){'use strict';rendererList.push({type:'online',component:'Accept_Payments/js/view/payment/method-renderer/online-method'});return Component.extend({});});","Accept_Payments/js/view/payment/installments.min.js":"define(['uiComponent','Magento_Checkout/js/model/payment/renderer-list'],function(Component,rendererList){'use strict';rendererList.push({type:'installments',component:'Accept_Payments/js/view/payment/method-renderer/installments-method'});return Component.extend({});});","Accept_Payments/js/view/payment/wallet.min.js":"define(['uiComponent','Magento_Checkout/js/model/payment/renderer-list'],function(Component,rendererList){'use strict';rendererList.push({type:'wallet',component:'Accept_Payments/js/view/payment/method-renderer/wallet-method'});return Component.extend({});});","Accept_Payments/js/view/payment/kiosk.min.js":"define(['uiComponent','Magento_Checkout/js/model/payment/renderer-list'],function(Component,rendererList){'use strict';rendererList.push({type:'kiosk',component:'Accept_Payments/js/view/payment/method-renderer/kiosk-method'});return Component.extend({});});","Accept_Payments/js/view/payment/sympl.min.js":"define(['uiComponent','Magento_Checkout/js/model/payment/renderer-list'],function(Component,rendererList){'use strict';rendererList.push({type:'sympl',component:'Accept_Payments/js/view/payment/method-renderer/sympl-method'});return Component.extend({});});","Accept_Payments/js/view/payment/contact.min.js":"define(['uiComponent','Magento_Checkout/js/model/payment/renderer-list'],function(Component,rendererList){'use strict';rendererList.push({type:'contact',component:'Accept_Payments/js/view/payment/method-renderer/contact-method'});return Component.extend({});});","Accept_Payments/js/view/payment/getgo.min.js":"define(['uiComponent','Magento_Checkout/js/model/payment/renderer-list'],function(Component,rendererList){'use strict';rendererList.push({type:'getgo',component:'Accept_Payments/js/view/payment/method-renderer/getgo-method'});return Component.extend({});});","Accept_Payments/js/view/payment/souhoola.min.js":"define(['uiComponent','Magento_Checkout/js/model/payment/renderer-list'],function(Component,rendererList){'use strict';rendererList.push({type:'souhoola',component:'Accept_Payments/js/view/payment/method-renderer/souhoola-method'});return Component.extend({});});","Accept_Payments/js/view/payment/forsa.min.js":"define(['uiComponent','Magento_Checkout/js/model/payment/renderer-list'],function(Component,rendererList){'use strict';rendererList.push({type:'forsa',component:'Accept_Payments/js/view/payment/method-renderer/forsa-method'});return Component.extend({});});","Accept_Payments/js/view/payment/ios.min.js":"define(['uiComponent','Magento_Checkout/js/model/payment/renderer-list'],function(Component,rendererList){'use strict';rendererList.push({type:'ios',component:'Accept_Payments/js/view/payment/method-renderer/ios-method'});return Component.extend({});});","Accept_Payments/js/view/payment/premium.min.js":"define(['uiComponent','Magento_Checkout/js/model/payment/renderer-list'],function(Component,rendererList){'use strict';rendererList.push({type:'premium',component:'Accept_Payments/js/view/payment/method-renderer/premium-method'});return Component.extend({});});","Accept_Payments/js/view/payment/aman.min.js":"define(['uiComponent','Magento_Checkout/js/model/payment/renderer-list'],function(Component,rendererList){'use strict';rendererList.push({type:'aman',component:'Accept_Payments/js/view/payment/method-renderer/aman-method'});return Component.extend({});});","Accept_Payments/js/view/payment/valuaccept.min.js":"define(['uiComponent','Magento_Checkout/js/model/payment/renderer-list'],function(Component,rendererList){'use strict';rendererList.push({type:'valuaccept',component:'Accept_Payments/js/view/payment/method-renderer/valuaccept-method'});return Component.extend({});});","Accept_Payments/js/view/payment/method-renderer/installments-method.min.js":"define(['Magento_Checkout/js/view/payment/default','jquery','Magento_Checkout/js/model/payment/additional-validators','mage/url','Magento_Checkout/js/action/place-order','Magento_Checkout/js/model/full-screen-loader'],function(Component,$,additionalValidators,url,placeOrderAction,fullScreenLoader){return Component.extend({defaults:{template:'Accept_Payments/payment/installments',success:false,iframe_url:null,owner:null,cards:null,detail:null},afterPlaceOrder:function(data,event){var self=this;fullScreenLoader.startLoader();$.ajax({type:'POST',url:url.build('accept/methods/installmentsmethod'),data:data,success:function(response){fullScreenLoader.stopLoader();if(response.success){console.log(\"afterPlaceOrder:success\");console.log(response)\nself.renderPayment(response);}else{console.log(\"afterPlaceOrder:error\");console.log(response)\nself.renderErrors(response);}},error:function(response){console.log(\"afterPlaceOrder:error\");console.log(response)\nfullScreenLoader.stopLoader();self.renderErrors(response);}});},placeOrder:function(data,event){if(event){event.preventDefault();}\nif(additionalValidators.validate()){placeOrder=placeOrderAction(this.getData(),false,this.messageContainer);$.when(placeOrder).done(this.afterPlaceOrder.bind(this));return true;}\nreturn false;},renderPayment:function(data){window.location.href=data.iframe_url;},renderErrors:function(data){fullScreenLoader.stopLoader();$('body').css({'overflow':'hidden'});$('#installments-container').show(250,function(){$('#installments-errors').show(250,function(){$('#installments-errors .errors').show().html(data.detail);});});},getData:function(){return{\"method\":this.item.method};},logo:function(){return window.checkoutConfig.payment[this.getCode()].logo;},getInstructions:function(){return window.checkoutConfig.payment[this.getCode()].instructions;}});});","Accept_Payments/js/view/payment/method-renderer/sympl-method.min.js":"define(['Magento_Checkout/js/view/payment/default','jquery','Magento_Checkout/js/model/payment/additional-validators','mage/url','Magento_Checkout/js/action/place-order','Magento_Checkout/js/model/full-screen-loader'],function(Component,$,additionalValidators,url,placeOrderAction,fullScreenLoader,){return Component.extend({defaults:{template:'Accept_Payments/payment/sympl',success:false,iframe_url:null,owner:null,cards:null,detail:null},afterPlaceOrder:function(data,event){var self=this;fullScreenLoader.startLoader();$.ajax({type:'POST',url:url.build('accept/methods/symplmethod'),data:data,success:function(response){fullScreenLoader.stopLoader();if(response.success){console.log(\"afterPlaceOrder:success\");console.log(response)\nself.renderPayment(response);}else{console.log(\"afterPlaceOrder:error\");console.log(response)\nself.renderErrors(response);}},error:function(response){console.log(\"afterPlaceOrder:error\");console.log(response)\nfullScreenLoader.stopLoader();self.renderErrors(response);}});},placeOrder:function(data,event){if(event){event.preventDefault();}\nif(additionalValidators.validate()){placeOrder=placeOrderAction(this.getData(),false,this.messageContainer);$.when(placeOrder).done(this.afterPlaceOrder.bind(this));return true;}\nreturn false;},renderPayment:function(data){window.location.href=data.iframe_url;},renderErrors:function(data){fullScreenLoader.stopLoader();$('body').css({'overflow':'hidden'});$('#sympl-container').show(250,function(){$('#sympl-errors').show(250,function(){$('#sympl-errors .errors').show().html(data.detail);});});},getData:function(){return{\"method\":this.item.method};},logo:function(){return window.checkoutConfig.payment[this.getCode()].logo;},getInstructions:function(){return window.checkoutConfig.payment[this.getCode()].instructions;}});});","Accept_Payments/js/view/payment/method-renderer/premium-method.min.js":"define(['Magento_Checkout/js/view/payment/default','jquery','Magento_Checkout/js/model/payment/additional-validators','mage/url','Magento_Checkout/js/action/place-order','Magento_Checkout/js/model/full-screen-loader'],function(Component,$,additionalValidators,url,placeOrderAction,fullScreenLoader){return Component.extend({defaults:{template:'Accept_Payments/payment/premium',success:false,iframe_url:null,owner:null,cards:null,detail:null},afterPlaceOrder:function(data,event){var self=this;fullScreenLoader.startLoader();$.ajax({type:'POST',url:url.build('accept/methods/premiummethod'),data:data,success:function(response){fullScreenLoader.stopLoader();if(response.success){console.log(\"afterPlaceOrder:success\");console.log(response)\nself.renderPayment(response);}else{console.log(\"afterPlaceOrder:error\");console.log(response)\nself.renderErrors(response);}},error:function(response){console.log(\"afterPlaceOrder:error\");console.log(response)\nfullScreenLoader.stopLoader();self.renderErrors(response);}});},placeOrder:function(data,event){if(event){event.preventDefault();}\nif(additionalValidators.validate()){placeOrder=placeOrderAction(this.getData(),false,this.messageContainer);$.when(placeOrder).done(this.afterPlaceOrder.bind(this));return true;}\nreturn false;},renderPayment:function(data){window.location.href=data.iframe_url;},renderErrors:function(data){fullScreenLoader.stopLoader();$('body').css({'overflow':'hidden'});$('#premium-container').show(250,function(){$('#premium-errors').show(250,function(){$('#premium-errors .errors').show().html(data.detail);});});},getData:function(){return{\"method\":this.item.method};},logo:function(){return window.checkoutConfig.payment[this.getCode()].logo;},getInstructions:function(){return window.checkoutConfig.payment[this.getCode()].instructions;}});});","Accept_Payments/js/view/payment/method-renderer/aman-method.min.js":"define(['Magento_Checkout/js/view/payment/default','jquery','Magento_Checkout/js/model/payment/additional-validators','mage/url','Magento_Checkout/js/action/place-order','Magento_Checkout/js/model/full-screen-loader'],function(Component,$,additionalValidators,url,placeOrderAction,fullScreenLoader){return Component.extend({defaults:{template:'Accept_Payments/payment/aman',success:false,iframe_url:null,owner:null,cards:null,detail:null},afterPlaceOrder:function(data,event){var self=this;fullScreenLoader.startLoader();$.ajax({type:'POST',url:url.build('accept/methods/amanmethod'),data:data,success:function(response){fullScreenLoader.stopLoader();if(response.success){console.log(\"afterPlaceOrder:success\");console.log(response)\nself.renderPayment(response);}else{console.log(\"afterPlaceOrder:error\");console.log(response)\nself.renderErrors(response);}},error:function(response){console.log(\"afterPlaceOrder:error\");console.log(response)\nfullScreenLoader.stopLoader();self.renderErrors(response);}});},placeOrder:function(data,event){if(event){event.preventDefault();}\nif(additionalValidators.validate()){placeOrder=placeOrderAction(this.getData(),false,this.messageContainer);$.when(placeOrder).done(this.afterPlaceOrder.bind(this));return true;}\nreturn false;},renderPayment:function(data){window.location.href=data.iframe_url;},renderErrors:function(data){fullScreenLoader.stopLoader();$('body').css({'overflow':'hidden'});$('#aman-container').show(250,function(){$('#aman-errors').show(250,function(){$('#aman-errors .errors').show().html(data.detail);});});},getData:function(){return{\"method\":this.item.method};},logo:function(){return window.checkoutConfig.payment[this.getCode()].logo;}});});","Accept_Payments/js/view/payment/method-renderer/contact-method.min.js":"define(['Magento_Checkout/js/view/payment/default','jquery','Magento_Checkout/js/model/payment/additional-validators','mage/url','Magento_Checkout/js/action/place-order','Magento_Checkout/js/model/full-screen-loader'],function(Component,$,additionalValidators,url,placeOrderAction,fullScreenLoader){return Component.extend({defaults:{template:'Accept_Payments/payment/contact',success:false,iframe_url:null,owner:null,cards:null,detail:null},afterPlaceOrder:function(data,event){var self=this;fullScreenLoader.startLoader();$.ajax({type:'POST',url:url.build('accept/methods/contactmethod'),data:data,success:function(response){fullScreenLoader.stopLoader();if(response.success){console.log(\"afterPlaceOrder:success\");console.log(response)\nself.renderPayment(response);}else{console.log(\"afterPlaceOrder:error\");console.log(response)\nself.renderErrors(response);}},error:function(response){console.log(\"afterPlaceOrder:error\");console.log(response)\nfullScreenLoader.stopLoader();self.renderErrors(response);}});},placeOrder:function(data,event){if(event){event.preventDefault();}\nif(additionalValidators.validate()){placeOrder=placeOrderAction(this.getData(),false,this.messageContainer);$.when(placeOrder).done(this.afterPlaceOrder.bind(this));return true;}\nreturn false;},renderPayment:function(data){window.location.href=data.iframe_url;},renderErrors:function(data){fullScreenLoader.stopLoader();$('body').css({'overflow':'hidden'});$('#contact-container').show(250,function(){$('#contact-errors').show(250,function(){$('#contact-errors .errors').show().html(data.detail);});});},getData:function(){return{\"method\":this.item.method};},logo:function(){return window.checkoutConfig.payment[this.getCode()].logo;}});});","Accept_Payments/js/view/payment/method-renderer/wallet-method.min.js":"define(['Magento_Checkout/js/view/payment/default','jquery','ko','Magento_Checkout/js/model/payment/additional-validators','mage/url','Magento_Checkout/js/action/place-order','Magento_Checkout/js/model/full-screen-loader','Magento_Ui/js/model/messageList'],function(Component,$,ko,additionalValidators,url,placeOrderAction,fullScreenLoader,messageList){return Component.extend({defaults:{template:'Accept_Payments/payment/wallet',success:false,wallet_url:null,detail:null,phoneNumber:ko.observable('')},afterPlaceOrder:function(data,event){var self=this;fullScreenLoader.startLoader();$.ajax({type:'POST',url:url.build('accept/methods/walletmethod')+\"?walletPhone=\"+this.phoneNumber(),data:data,success:function(response){fullScreenLoader.stopLoader();if(response.success){console.log(\"afterPlaceOrder:success\");console.log(response)\nself.renderPayment(response);}else{console.log(\"afterPlaceOrder:error\");console.log(response)\nself.renderErrors(response);}},error:function(response){console.log(\"afterPlaceOrder:error\");console.log(response)\nfullScreenLoader.stopLoader();self.renderErrors(response);}});},placeOrder:function(data,event){if(event){event.preventDefault();}\nif(this.phoneNumber()&&this.phoneNumber().length===11){if(additionalValidators.validate()){placeOrder=placeOrderAction(this.getData(),false,this.messageContainer);$.when(placeOrder).done(this.afterPlaceOrder.bind(this));return true;}}else{$('#wallet-phone-input').css('border-color','red');$('#wallet-phone-required').show();}\nreturn false;},renderPayment:function(data){window.location.href=data.wallet_url;},renderErrors:function(data){fullScreenLoader.stopLoader();document.body.scrollTop=0;document.documentElement.scrollTop=0;messageList.addErrorMessage({message:data.message.replace(/(<([^>]+)>)/ig,'')});setTimeout(function(){window.location.href=window.location.href.replace('#payment','cart');},5);},getData:function(){return{\"method\":this.item.method};},logo:function(){return window.checkoutConfig.payment[this.getCode()].logo;},getInstructions:function(){return window.checkoutConfig.payment[this.getCode()].instructions;}});});","Accept_Payments/js/view/payment/method-renderer/souhoola-method.min.js":"define(['Magento_Checkout/js/view/payment/default','jquery','Magento_Checkout/js/model/payment/additional-validators','mage/url','Magento_Checkout/js/action/place-order','Magento_Checkout/js/model/full-screen-loader'],function(Component,$,additionalValidators,url,placeOrderAction,fullScreenLoader){return Component.extend({defaults:{template:'Accept_Payments/payment/souhoola',success:false,iframe_url:null,owner:null,cards:null,detail:null},afterPlaceOrder:function(data,event){var self=this;fullScreenLoader.startLoader();$.ajax({type:'POST',url:url.build('accept/methods/souhoolamethod'),data:data,success:function(response){fullScreenLoader.stopLoader();if(response.success){console.log(\"afterPlaceOrder:success\");console.log(response)\nself.renderPayment(response);}else{console.log(\"afterPlaceOrder:error\");console.log(response)\nself.renderErrors(response);}},error:function(response){console.log(\"afterPlaceOrder:error\");console.log(response)\nfullScreenLoader.stopLoader();self.renderErrors(response);}});},placeOrder:function(data,event){if(event){event.preventDefault();}\nif(additionalValidators.validate()){placeOrder=placeOrderAction(this.getData(),false,this.messageContainer);$.when(placeOrder).done(this.afterPlaceOrder.bind(this));return true;}\nreturn false;},renderPayment:function(data){window.location.href=data.iframe_url;},renderErrors:function(data){fullScreenLoader.stopLoader();$('body').css({'overflow':'hidden'});$('#souhoola-container').show(250,function(){$('#souhoola-errors').show(250,function(){$('#souhoola-errors .errors').show().html(data.detail);});});},getData:function(){return{\"method\":this.item.method};},logo:function(){return window.checkoutConfig.payment[this.getCode()].logo;},getInstructions:function(){return window.checkoutConfig.payment[this.getCode()].instructions;}});});","Accept_Payments/js/view/payment/method-renderer/ios-method.min.js":"define(['Magento_Checkout/js/view/payment/default','jquery','Magento_Checkout/js/model/payment/additional-validators','mage/url','Magento_Checkout/js/action/place-order','Magento_Checkout/js/model/full-screen-loader'],function(Component,$,additionalValidators,url,placeOrderAction,fullScreenLoader){return Component.extend({defaults:{template:'Accept_Payments/payment/ios',success:false,iframe_url:null,owner:null,cards:null,detail:null},afterPlaceOrder:function(data,event){var self=this;fullScreenLoader.startLoader();$.ajax({type:'POST',url:url.build('accept/methods/iosmethod'),data:data,success:function(response){fullScreenLoader.stopLoader();if(response.success){console.log(\"afterPlaceOrder:success\");console.log(response)\nself.renderPayment(response);}else{console.log(\"afterPlaceOrder:error\");console.log(response)\nself.renderErrors(response);}},error:function(response){console.log(\"afterPlaceOrder:error\");console.log(response)\nfullScreenLoader.stopLoader();self.renderErrors(response);}});},placeOrder:function(data,event){if(event){event.preventDefault();}\nif(additionalValidators.validate()){placeOrder=placeOrderAction(this.getData(),false,this.messageContainer);$.when(placeOrder).done(this.afterPlaceOrder.bind(this));return true;}\nreturn false;},renderPayment:function(data){window.location.href=data.iframe_url;},renderErrors:function(data){fullScreenLoader.stopLoader();$('body').css({'overflow':'hidden'});$('#ios-container').show(250,function(){$('#ios-errors').show(250,function(){$('#ios-errors .errors').show().html(data.detail);});});},getData:function(){return{\"method\":this.item.method};},logo:function(){return window.checkoutConfig.payment[this.getCode()].logo;},getInstructions:function(){return window.checkoutConfig.payment[this.getCode()].instructions;}});});","Accept_Payments/js/view/payment/method-renderer/online-method.min.js":"define(['Magento_Checkout/js/view/payment/default','jquery','ko','Magento_Checkout/js/model/payment/additional-validators','mage/url','Magento_Checkout/js/action/place-order','Magento_Checkout/js/model/full-screen-loader'],function(Component,$,additionalValidators,url,placeOrderAction,fullScreenLoader){return Component.extend({defaults:{template:'Accept_Payments/payment/online',success:false,iframe_url:null,owner:null,cards:null,detail:null},afterPlaceOrder:function(data,event){var self=this;fullScreenLoader.startLoader();$.ajax({type:'POST',url:url.build('accept/methods/onlinemethod'),data:data,success:function(response){fullScreenLoader.stopLoader();if(response.success){console.log(\"afterPlaceOrder:success\");console.log(response)\nself.renderPayment(response);}else{console.log(\"afterPlaceOrder:error\");console.log(response)\nself.renderErrors(response);}},error:function(response){console.log(\"afterPlaceOrder:error\");console.log(response)\nfullScreenLoader.stopLoader();self.renderErrors(response);}});},placeOrder:function(data,event){if(event){event.preventDefault();}\nif(additionalValidators.validate()){placeOrder=placeOrderAction(this.getData(),false,this.messageContainer);$.when(placeOrder).done(this.afterPlaceOrder.bind(this));return true;}\nreturn false;},renderPayment:function(data){window.location.href=data.iframe_url;},renderErrors:function(data){fullScreenLoader.stopLoader();$('body').css({'overflow':'hidden'});$('#online-container').show(250,function(){$('#online-errors').show(250,function(){$('#online-errors .errors').show().html(data.detail);});});},getData:function(){return{\"method\":this.item.method};},logo:function(){return window.checkoutConfig.payment[this.getCode()].logo;},getInstructions:function(){return window.checkoutConfig.payment[this.getCode()].instructions;}});});","Accept_Payments/js/view/payment/method-renderer/forsa-method.min.js":"define(['Magento_Checkout/js/view/payment/default','jquery','Magento_Checkout/js/model/payment/additional-validators','mage/url','Magento_Checkout/js/action/place-order','Magento_Checkout/js/model/full-screen-loader'],function(Component,$,additionalValidators,url,placeOrderAction,fullScreenLoader){return Component.extend({defaults:{template:'Accept_Payments/payment/forsa',success:false,iframe_url:null,detail:null},afterPlaceOrder:function(data,event){var self=this;fullScreenLoader.startLoader();$.ajax({type:'POST',url:url.build('accept/methods/forsamethod'),data:data,success:function(response){fullScreenLoader.stopLoader();if(response.success){console.log(\"afterPlaceOrder:success\");console.log(response)\nself.renderPayment(response);}else{console.log(\"afterPlaceOrder:error\");console.log(response)\nself.renderErrors(response);}},error:function(response){console.log(\"afterPlaceOrder:error\");console.log(response)\nfullScreenLoader.stopLoader();self.renderErrors(response);}});},placeOrder:function(data,event){if(event){event.preventDefault();}\nif(additionalValidators.validate()){placeOrder=placeOrderAction(this.getData(),false,this.messageContainer);$.when(placeOrder).done(this.afterPlaceOrder.bind(this));return true;}\nreturn false;},renderPayment:function(data){window.location.href=data.iframe_url;},renderErrors:function(data){fullScreenLoader.stopLoader();$('body').css({'overflow':'hidden'});$('#forsa-container').show(250,function(){$('#forsa-errors').show(250,function(){$('#forsa-errors .errors').show().html(data.detail);});});},getData:function(){return{\"method\":this.item.method};},logo:function(){return window.checkoutConfig.payment[this.getCode()].logo;},getInstructions:function(){return window.checkoutConfig.payment[this.getCode()].instructions;}});});","Accept_Payments/js/view/payment/method-renderer/getgo-method.min.js":"define(['Magento_Checkout/js/view/payment/default','jquery','Magento_Checkout/js/model/payment/additional-validators','mage/url','Magento_Checkout/js/action/place-order','Magento_Checkout/js/model/full-screen-loader'],function(Component,$,additionalValidators,url,placeOrderAction,fullScreenLoader){return Component.extend({defaults:{template:'Accept_Payments/payment/getgo',success:false,iframe_url:null,owner:null,cards:null,detail:null},afterPlaceOrder:function(data,event){var self=this;fullScreenLoader.startLoader();$.ajax({type:'POST',url:url.build('accept/methods/getgomethod'),data:data,success:function(response){fullScreenLoader.stopLoader();if(response.success){console.log(\"afterPlaceOrder:success\");console.log(response)\nself.renderPayment(response);}else{console.log(\"afterPlaceOrder:error\");console.log(response)\nself.renderErrors(response);}},error:function(response){console.log(\"afterPlaceOrder:error\");console.log(response)\nfullScreenLoader.stopLoader();self.renderErrors(response);}});},placeOrder:function(data,event){if(event){event.preventDefault();}\nif(additionalValidators.validate()){placeOrder=placeOrderAction(this.getData(),false,this.messageContainer);$.when(placeOrder).done(this.afterPlaceOrder.bind(this));return true;}\nreturn false;},renderPayment:function(data){window.location.href=data.iframe_url;},renderErrors:function(data){fullScreenLoader.stopLoader();$('body').css({'overflow':'hidden'});$('#getgo-container').show(250,function(){$('#getgo-errors').show(250,function(){$('#getgo-errors .errors').show().html(data.detail);});});},getData:function(){return{\"method\":this.item.method};},logo:function(){return window.checkoutConfig.payment[this.getCode()].logo;},getInstructions:function(){return window.checkoutConfig.payment[this.getCode()].instructions;}});});","Accept_Payments/js/view/payment/method-renderer/kiosk-method.min.js":"define(['Magento_Checkout/js/view/payment/default','jquery','Magento_Checkout/js/model/payment/additional-validators','mage/url','Magento_Checkout/js/action/place-order','Magento_Checkout/js/model/full-screen-loader'],function(Component,$,additionalValidators,url,placeOrderAction,fullScreenLoader){return Component.extend({defaults:{template:'Accept_Payments/payment/kiosk',success:false,bill_reference:null,detail:null},afterPlaceOrder:function(data,event){var self=this;fullScreenLoader.startLoader();$.ajax({type:'POST',url:url.build('accept/methods/kioskmethod'),data:data,success:function(response){fullScreenLoader.stopLoader();if(response.success){console.log(\"afterPlaceOrder:success\");console.log(response)\nself.renderPayment(response);}else{console.log(\"afterPlaceOrder:error\");console.log(response)\nself.renderErrors(response);}},error:function(response){console.log(\"afterPlaceOrder:error\");console.log(response)\nfullScreenLoader.stopLoader();self.renderErrors(response);}});},placeOrder:function(data,event){if(event){event.preventDefault();}\nif(additionalValidators.validate()){placeOrder=placeOrderAction(this.getData(),false,this.messageContainer);$.when(placeOrder).done(this.afterPlaceOrder.bind(this));return true;}\nreturn false;},renderPayment:function(data){fullScreenLoader.stopLoader();$('body').css({'overflow':'hidden'});$('#kiosk-container').show(250,function(){$('#kiosk-id-container').show(250,function(){$('#kiosk-id-container #kiosk-id').show().html(data.bill_reference);});});},renderErrors:function(data){fullScreenLoader.stopLoader();$('body').css({'overflow':'hidden'});$('#kiosk-container').show(250,function(){$('#kiosk-errors').show(250,function(){$('#kiosk-errors .errors').show().html(data.detail);});});},getData:function(){return{\"method\":this.item.method};},logo:function(){return window.checkoutConfig.payment[this.getCode()].logo;},getInstructions:function(){return window.checkoutConfig.payment[this.getCode()].instructions;}});});","Accept_Payments/js/view/payment/method-renderer/valuaccept-method.min.js":"define(['Magento_Checkout/js/view/payment/default','jquery','Magento_Checkout/js/model/payment/additional-validators','mage/url','Magento_Checkout/js/action/place-order','Magento_Checkout/js/model/full-screen-loader'],function(Component,$,additionalValidators,url,placeOrderAction,fullScreenLoader){return Component.extend({defaults:{template:'Accept_Payments/payment/valuaccept',success:false,iframe_url:null,detail:null},afterPlaceOrder:function(data,event){var self=this;fullScreenLoader.startLoader();$.ajax({type:'POST',url:url.build('accept/methods/valuacceptmethod'),data:data,success:function(response){fullScreenLoader.stopLoader();if(response.success){console.log(\"afterPlaceOrder:success\");console.log(response)\nself.renderPayment(response);}else{console.log(\"afterPlaceOrder:error\");console.log(response)\nself.renderErrors(response);}},error:function(response){console.log(\"afterPlaceOrder:error\");console.log(response)\nfullScreenLoader.stopLoader();self.renderErrors(response);}});},placeOrder:function(data,event){if(event){event.preventDefault();}\nif(additionalValidators.validate()){placeOrder=placeOrderAction(this.getData(),false,this.messageContainer);$.when(placeOrder).done(this.afterPlaceOrder.bind(this));return true;}\nreturn false;},renderPayment:function(data){window.location.href=data.iframe_url;},renderErrors:function(data){fullScreenLoader.stopLoader();$('body').css({'overflow':'hidden'});$('#valuaccept-container').show(250,function(){$('#valuaccept-errors').show(250,function(){$('#valuaccept-errors .errors').show().html(data.detail);});});},getData:function(){return{\"method\":this.item.method};},logo:function(){return window.checkoutConfig.payment[this.getCode()].logo;},getInstructions:function(){return window.checkoutConfig.payment[this.getCode()].instructions;}});});","jquery/jquery.tabs.min.js":"define([\"jquery\",\"jquery/bootstrap/tab\",\"jquery/bootstrap/collapse\",],function(){});","jquery/jquery.validate.min.js":"/*!\n * jQuery Validation Plugin v1.19.5\n *\n * https://jqueryvalidation.org/\n *\n * Copyright (c) 2022 J\u00f6rn Zaefferer\n * Released under the MIT license\n */\n(function(factory){if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"jquery/jquery.metadata\"],factory);}else if(typeof module===\"object\"&&module.exports){module.exports=factory(require(\"jquery\"));}else{factory(jQuery);}}(function($){$.extend($.fn,{validate:function(options){if(!this.length){if(options&&options.debug&&window.console){console.warn(\"Nothing selected, can't validate, returning nothing.\");}\nreturn;}\nvar validator=$.data(this[0],\"validator\");if(validator){return validator;}\nthis.attr(\"novalidate\",\"novalidate\");validator=new $.validator(options,this[0]);$.data(this[0],\"validator\",validator);if(validator.settings.onsubmit){this.on(\"click.validate\",\":submit\",function(event){validator.submitButton=event.currentTarget;if($(this).hasClass(\"cancel\")){validator.cancelSubmit=true;}\nif($(this).attr(\"formnovalidate\")!==undefined){validator.cancelSubmit=true;}});this.on(\"submit.validate\",function(event){if(validator.settings.debug){event.preventDefault();}\nfunction handle(){var hidden,result;if(validator.submitButton&&(validator.settings.submitHandler||validator.formSubmitted)){hidden=$(\"<input type='hidden'/>\").attr(\"name\",validator.submitButton.name).val($(validator.submitButton).val()).appendTo(validator.currentForm);}\nif(validator.settings.submitHandler&&!validator.settings.debug){result=validator.settings.submitHandler.call(validator,validator.currentForm,event);if(hidden){hidden.remove();}\nif(result!==undefined){return result;}\nreturn false;}\nreturn true;}\nif(validator.cancelSubmit){validator.cancelSubmit=false;return handle();}\nif(validator.form()){if(validator.pendingRequest){validator.formSubmitted=true;return false;}\nreturn handle();}else{validator.focusInvalid();return false;}});}\nreturn validator;},valid:function(){var valid,validator,errorList;if($(this[0]).is(\"form\")){valid=this.validate().form();}else{errorList=[];valid=true;validator=$(this[0].form).validate();this.each(function(){valid=validator.element(this)&&valid;if(!valid){errorList=errorList.concat(validator.errorList);}});validator.errorList=errorList;}\nreturn valid;},rules:function(command,argument){var element=this[0],isContentEditable=typeof this.attr(\"contenteditable\")!==\"undefined\"&&this.attr(\"contenteditable\")!==\"false\",settings,staticRules,existingRules,data,param,filtered;if(element==null){return;}\nif(!element.form&&isContentEditable){element.form=this.closest(\"form\")[0];element.name=this.attr(\"name\");}\nif(element.form==null){return;}\nif(command){settings=$.data(element.form,\"validator\").settings;staticRules=settings.rules;existingRules=$.validator.staticRules(element);switch(command){case\"add\":$.extend(existingRules,$.validator.normalizeRule(argument));delete existingRules.messages;staticRules[element.name]=existingRules;if(argument.messages){settings.messages[element.name]=$.extend(settings.messages[element.name],argument.messages);}\nbreak;case\"remove\":if(!argument){delete staticRules[element.name];return existingRules;}\nfiltered={};$.each(argument.split(/\\s/),function(index,method){filtered[method]=existingRules[method];delete existingRules[method];});return filtered;}}\ndata=$.validator.normalizeRules($.extend({},$.validator.metadataRules(element),$.validator.classRules(element),$.validator.attributeRules(element),$.validator.dataRules(element),$.validator.staticRules(element)),element);if(data.required){param=data.required;delete data.required;data=$.extend({required:param},data);}\nif(data.remote){param=data.remote;delete data.remote;data=$.extend(data,{remote:param});}\nreturn data;}});var trim=function(str){return str.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g,\"\");};$.extend($.expr.pseudos||$.expr[\":\"],{blank:function(a){return!trim(\"\"+$(a).val());},filled:function(a){var val=$(a).val();return val!==null&&!!trim(\"\"+val);},unchecked:function(a){return!$(a).prop(\"checked\");}});$.validator=function(options,form){this.settings=$.extend(true,{},$.validator.defaults,options);this.currentForm=form;this.init();};$.validator.format=function(source,params){if(arguments.length===1){return function(){var args=$.makeArray(arguments);args.unshift(source);return $.validator.format.apply(this,args);};}\nif(params===undefined){return source;}\nif(arguments.length>2&&params.constructor!==Array){params=$.makeArray(arguments).slice(1);}\nif(params.constructor!==Array){params=[params];}\n$.each(params,function(i,n){source=source.replace(new RegExp(\"\\\\{\"+i+\"\\\\}\",\"g\"),function(){return n;});});return source;};$.extend($.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:\"error\",pendingClass:\"pending\",validClass:\"valid\",errorElement:\"label\",focusCleanup:false,focusInvalid:true,errorContainer:$([]),errorLabelContainer:$([]),onsubmit:true,ignore:\":hidden\",ignoreTitle:false,onfocusin:function(element){this.lastActive=element;if(this.settings.focusCleanup){if(this.settings.unhighlight){this.settings.unhighlight.call(this,element,this.settings.errorClass,this.settings.validClass);}\nthis.hideThese(this.errorsFor(element));}},onfocusout:function(element){if(!this.checkable(element)&&(element.name in this.submitted||!this.optional(element))){this.element(element);}},onkeyup:function(element,event){var excludedKeys=[16,17,18,20,35,36,37,38,39,40,45,144,225];if(event.which===9&&this.elementValue(element)===\"\"||$.inArray(event.keyCode,excludedKeys)!==-1){return;}else if(element.name in this.submitted||element.name in this.invalid){this.element(element);}},onclick:function(element){if(element.name in this.submitted){this.element(element);}else if(element.parentNode.name in this.submitted){this.element(element.parentNode);}},highlight:function(element,errorClass,validClass){if(element.type===\"radio\"){this.findByName(element.name).addClass(errorClass).removeClass(validClass);}else{$(element).addClass(errorClass).removeClass(validClass);}},unhighlight:function(element,errorClass,validClass){if(element.type===\"radio\"){this.findByName(element.name).removeClass(errorClass).addClass(validClass);}else{$(element).removeClass(errorClass).addClass(validClass);}}},setDefaults:function(settings){$.extend($.validator.defaults,settings);},messages:{required:\"This field is required.\",remote:\"Please fix this field.\",email:\"Please enter a valid email address.\",url:\"Please enter a valid URL.\",date:\"Please enter a valid date.\",dateISO:\"Please enter a valid date (ISO).\",number:\"Please enter a valid number.\",digits:\"Please enter only digits.\",equalTo:\"Please enter the same value again.\",maxlength:$.validator.format(\"Please enter no more than {0} characters.\"),minlength:$.validator.format(\"Please enter at least {0} characters.\"),rangelength:$.validator.format(\"Please enter a value between {0} and {1} characters long.\"),range:$.validator.format(\"Please enter a value between {0} and {1}.\"),max:$.validator.format(\"Please enter a value less than or equal to {0}.\"),min:$.validator.format(\"Please enter a value greater than or equal to {0}.\"),step:$.validator.format(\"Please enter a multiple of {0}.\")},autoCreateRanges:false,prototype:{init:function(){this.labelContainer=$(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||$(this.currentForm);this.containers=$(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();var currentForm=this.currentForm,groups=(this.groups={}),rules;$.each(this.settings.groups,function(key,value){if(typeof value===\"string\"){value=value.split(/\\s/);}\n$.each(value,function(index,name){groups[name]=key;});});rules=this.settings.rules;$.each(rules,function(key,value){rules[key]=$.validator.normalizeRule(value);});function delegate(event){var isContentEditable=typeof $(this).attr(\"contenteditable\")!==\"undefined\"&&$(this).attr(\"contenteditable\")!==\"false\";if(!this.form&&isContentEditable){this.form=$(this).closest(\"form\")[0];this.name=$(this).attr(\"name\");}\nif(currentForm!==this.form){return;}\nvar validator=$.data(this.form,\"validator\"),eventType=\"on\"+event.type.replace(/^validate/,\"\"),settings=validator.settings;if(settings[eventType]&&!$(this).is(settings.ignore)){settings[eventType].call(validator,this,event);}}\n$(this.currentForm).on(\"focusin.validate focusout.validate keyup.validate\",\":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'], \"+\"[type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], \"+\"[type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], \"+\"[type='radio'], [type='checkbox'], [contenteditable], [type='button']\",delegate).on(\"click.validate\",\"select, option, [type='radio'], [type='checkbox']\",delegate);if(this.settings.invalidHandler){$(this.currentForm).on(\"invalid-form.validate\",this.settings.invalidHandler);}},form:function(){this.checkForm();$.extend(this.submitted,this.errorMap);this.invalid=$.extend({},this.errorMap);if(!this.valid()){$(this.currentForm).triggerHandler(\"invalid-form\",[this]);}\nthis.showErrors();return this.valid();},checkForm:function(){this.prepareForm();for(var i=0,elements=(this.currentElements=this.elements());elements[i];i++){this.check(elements[i]);}\nreturn this.valid();},element:function(element){var cleanElement=this.clean(element),checkElement=this.validationTargetFor(cleanElement),v=this,result=true,rs,group;if(checkElement===undefined){delete this.invalid[cleanElement.name];}else{this.prepareElement(checkElement);this.currentElements=$(checkElement);group=this.groups[checkElement.name];if(group){$.each(this.groups,function(name,testgroup){if(testgroup===group&&name!==checkElement.name){cleanElement=v.validationTargetFor(v.clean(v.findByName(name)));if(cleanElement&&cleanElement.name in v.invalid){v.currentElements.push(cleanElement);result=v.check(cleanElement)&&result;}}});}\nrs=this.check(checkElement)!==false;result=result&&rs;if(rs){this.invalid[checkElement.name]=false;}else{this.invalid[checkElement.name]=true;}\nif(!this.numberOfInvalids()){this.toHide=this.toHide.add(this.containers);}\nthis.showErrors();$(element).attr(\"aria-invalid\",!rs);}\nreturn result;},showErrors:function(errors){if(errors){var validator=this;$.extend(this.errorMap,errors);this.errorList=$.map(this.errorMap,function(message,name){return{message:message,element:validator.findByName(name)[0]};});this.successList=$.grep(this.successList,function(element){return!(element.name in errors);});}\nif(this.settings.showErrors){this.settings.showErrors.call(this,this.errorMap,this.errorList);}else{this.defaultShowErrors();}},resetForm:function(){if($.fn.resetForm){$(this.currentForm).resetForm();}\nthis.invalid={};this.submitted={};this.prepareForm();this.hideErrors();var elements=this.elements().removeData(\"previousValue\").removeAttr(\"aria-invalid\");this.resetElements(elements);},resetElements:function(elements){var i;if(this.settings.unhighlight){for(i=0;elements[i];i++){this.settings.unhighlight.call(this,elements[i],this.settings.errorClass,\"\");this.findByName(elements[i].name).removeClass(this.settings.validClass);}}else{elements.removeClass(this.settings.errorClass).removeClass(this.settings.validClass);}},numberOfInvalids:function(){return this.objectLength(this.invalid);},objectLength:function(obj){var count=0,i;for(i in obj){if(obj[i]!==undefined&&obj[i]!==null&&obj[i]!==false){count++;}}\nreturn count;},hideErrors:function(){this.hideThese(this.toHide);},hideThese:function(errors){errors.not(this.containers).text(\"\");this.addWrapper(errors).hide();},valid:function(){return this.size()===0;},size:function(){return this.errorList.length;},focusInvalid:function(){if(this.settings.focusInvalid){try{$(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(\":visible\").trigger(\"focus\").trigger(\"focusin\");}catch(e){}}},findLastActive:function(){var lastActive=this.lastActive;return lastActive&&$.grep(this.errorList,function(n){return n.element.name===lastActive.name;}).length===1&&lastActive;},elements:function(){var validator=this,rulesCache={};return $(this.currentForm).find(\"input, select, textarea, [contenteditable]\").not(\":submit, :reset, :image, :disabled\").not(this.settings.ignore).filter(function(){var name=this.name||$(this).attr(\"name\");var isContentEditable=typeof $(this).attr(\"contenteditable\")!==\"undefined\"&&$(this).attr(\"contenteditable\")!==\"false\";if(!name&&validator.settings.debug&&window.console){console.error(\"%o has no name assigned\",this);}\nif(isContentEditable){this.form=$(this).closest(\"form\")[0];this.name=name;}\nif(this.form!==validator.currentForm){return false;}\nif(name in rulesCache||!validator.objectLength($(this).rules())){return false;}\nrulesCache[name]=true;return true;});},clean:function(selector){return $(selector)[0];},errors:function(){var errorClass=this.settings.errorClass.split(\" \").join(\".\");return $(this.settings.errorElement+\".\"+errorClass,this.errorContext);},resetInternals:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=$([]);this.toHide=$([]);},reset:function(){this.resetInternals();this.currentElements=$([]);},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers);},prepareElement:function(element){this.reset();this.toHide=this.errorsFor(element);},elementValue:function(element){var $element=$(element),type=element.type,isContentEditable=typeof $element.attr(\"contenteditable\")!==\"undefined\"&&$element.attr(\"contenteditable\")!==\"false\",val,idx;if(type===\"radio\"||type===\"checkbox\"){return this.findByName(element.name).filter(\":checked\").val();}else if(type===\"number\"&&typeof element.validity!==\"undefined\"){return element.validity.badInput?\"NaN\":$element.val();}\nif(isContentEditable){val=$element.text();}else{val=$element.val();}\nif(type===\"file\"){if(val.substr(0,12)===\"C:\\\\fakepath\\\\\"){return val.substr(12);}\nidx=val.lastIndexOf(\"/\");if(idx>=0){return val.substr(idx+1);}\nidx=val.lastIndexOf(\"\\\\\");if(idx>=0){return val.substr(idx+1);}\nreturn val;}\nif(typeof val===\"string\"){return val.replace(/\\r/g,\"\");}\nreturn val;},check:function(element){element=this.validationTargetFor(this.clean(element));var rules=$(element).rules(),rulesCount=$.map(rules,function(n,i){return i;}).length,dependencyMismatch=false,val=this.elementValue(element),result,method,rule,normalizer;if(typeof rules.normalizer===\"function\"){normalizer=rules.normalizer;}else if(typeof this.settings.normalizer===\"function\"){normalizer=this.settings.normalizer;}\nif(normalizer){val=normalizer.call(element,val);delete rules.normalizer;}\nfor(method in rules){rule={method:method,parameters:rules[method]};try{result=$.validator.methods[method].call(this,val,element,rule.parameters);if(result===\"dependency-mismatch\"&&rulesCount===1){dependencyMismatch=true;continue;}\ndependencyMismatch=false;if(result===\"pending\"){this.toHide=this.toHide.not(this.errorsFor(element));return;}\nif(!result){this.formatAndAdd(element,rule);return false;}}catch(e){if(this.settings.debug&&window.console){console.log(\"Exception occurred when checking element \"+element.id+\", check the '\"+rule.method+\"' method.\",e);}\nif(e instanceof TypeError){e.message+=\".  Exception occurred when checking element \"+element.id+\", check the '\"+rule.method+\"' method.\";}\nthrow e;}}\nif(dependencyMismatch){return;}\nif(this.objectLength(rules)){this.successList.push(element);}\nreturn true;},customDataMessage:function(element,method){return $(element).data(\"msg\"+method.charAt(0).toUpperCase()+\nmethod.substring(1).toLowerCase())||$(element).data(\"msg\");},customMessage:function(name,method){var m=this.settings.messages[name];return m&&(m.constructor===String?m:m[method]);},findDefined:function(){for(var i=0;i<arguments.length;i++){if(arguments[i]!==undefined){return arguments[i];}}\nreturn undefined;},defaultMessage:function(element,rule){if(typeof rule===\"string\"){rule={method:rule};}\nvar message=this.findDefined(this.customMessage(element.name,rule.method),this.customDataMessage(element,rule.method),!this.settings.ignoreTitle&&element.title||undefined,$.validator.messages[rule.method],\"<strong>Warning: No message defined for \"+element.name+\"</strong>\"),theregex=/\\$?\\{(\\d+)\\}/g;if(typeof message===\"function\"){message=message.call(this,rule.parameters,element);}else if(theregex.test(message)){message=$.validator.format(message.replace(theregex,\"{$1}\"),rule.parameters);}\nreturn message;},formatAndAdd:function(element,rule){var message=this.defaultMessage(element,rule);this.errorList.push({message:message,element:element,method:rule.method});this.errorMap[element.name]=message;this.submitted[element.name]=message;},addWrapper:function(toToggle){if(this.settings.wrapper){toToggle=toToggle.add(toToggle.parent(this.settings.wrapper));}\nreturn toToggle;},defaultShowErrors:function(){var i,elements,error;for(i=0;this.errorList[i];i++){error=this.errorList[i];if(this.settings.highlight){this.settings.highlight.call(this,error.element,this.settings.errorClass,this.settings.validClass);}\nthis.showLabel(error.element,error.message);}\nif(this.errorList.length){this.toShow=this.toShow.add(this.containers);}\nif(this.settings.success){for(i=0;this.successList[i];i++){this.showLabel(this.successList[i]);}}\nif(this.settings.unhighlight){for(i=0,elements=this.validElements();elements[i];i++){this.settings.unhighlight.call(this,elements[i],this.settings.errorClass,this.settings.validClass);}}\nthis.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show();},validElements:function(){return this.currentElements.not(this.invalidElements());},invalidElements:function(){return $(this.errorList).map(function(){return this.element;});},showLabel:function(element,message){var place,group,errorID,v,error=this.errorsFor(element),elementID=this.idOrName(element),describedBy=$(element).attr(\"aria-describedby\");if(error.length){error.removeClass(this.settings.validClass).addClass(this.settings.errorClass);error.html(message);}else{error=$(\"<\"+this.settings.errorElement+\">\").attr(\"id\",elementID+\"-error\").addClass(this.settings.errorClass).html(message||\"\");place=error;if(this.settings.wrapper){place=error.hide().show().wrap(\"<\"+this.settings.wrapper+\"/>\").parent();}\nif(this.labelContainer.length){this.labelContainer.append(place);}else if(this.settings.errorPlacement){this.settings.errorPlacement.call(this,place,$(element));}else{place.insertAfter(element);}\nif(error.is(\"label\")){error.attr(\"for\",elementID);}else if(error.parents(\"label[for='\"+this.escapeCssMeta(elementID)+\"']\").length===0){errorID=error.attr(\"id\");if(!describedBy){describedBy=errorID;}else if(!describedBy.match(new RegExp(\"\\\\b\"+this.escapeCssMeta(errorID)+\"\\\\b\"))){describedBy+=\" \"+errorID;}\n$(element).attr(\"aria-describedby\",describedBy);group=this.groups[element.name];if(group){v=this;$.each(v.groups,function(name,testgroup){if(testgroup===group){$(\"[name='\"+v.escapeCssMeta(name)+\"']\",v.currentForm).attr(\"aria-describedby\",error.attr(\"id\"));}});}}}\nif(!message&&this.settings.success){error.text(\"\");if(typeof this.settings.success===\"string\"){error.addClass(this.settings.success);}else{this.settings.success(error,element);}}\nthis.toShow=this.toShow.add(error);},errorsFor:function(element){var name=this.escapeCssMeta(this.idOrName(element)),describer=$(element).attr(\"aria-describedby\"),selector=\"label[for='\"+name+\"'], label[for='\"+name+\"'] *\";if(describer){selector=selector+\", #\"+this.escapeCssMeta(describer).replace(/\\s+/g,\", #\")+\":visible\";}\nreturn this.errors().filter(selector);},escapeCssMeta:function(string){if(string===undefined){return\"\";}\nreturn string.replace(/([\\\\!\"#$%&'()*+,./:;<=>?@\\[\\]^`{|}~])/g, \"\\\\$1\" );\n            },\n\n            idOrName: function( element ) {\n                return this.groups[ element.name ] || ( this.checkable( element ) ? element.name : element.id || element.name );\n            },\n\n            validationTargetFor: function( element ) {\n\n                // If radio/checkbox, validate first element in group instead\n                if ( this.checkable( element ) ) {\n                    element = this.findByName( element.name );\n                }\n\n                // Always apply ignore filter\n                return $( element ).not( this.settings.ignore )[ 0 ];\n            },\n\n            checkable: function( element ) {\n                return ( /radio|checkbox/i ).test( element.type );\n            },\n\n            findByName: function( name ) {\n                return $( this.currentForm ).find( \"[name='\" + this.escapeCssMeta( name ) + \"']\" );\n            },\n\n            getLength: function( value, element ) {\n                switch ( element.nodeName.toLowerCase() ) {\n                    case \"select\":\n                        return $( \"option:selected\", element ).length;\n                    case \"input\":\n                        if ( this.checkable( element ) ) {\n                            return this.findByName( element.name ).filter( \":checked\" ).length;\n                        }\n                }\n                return value.length;\n            },\n\n            depend: function( param, element ) {\n                return this.dependTypes[ typeof param ] ? this.dependTypes[ typeof param ]( param, element ) : true;\n            },\n\n            dependTypes: {\n                \"boolean\": function( param ) {\n                    return param;\n                },\n                \"string\": function( param, element ) {\n                    return !!$( param, element.form ).length;\n                },\n                \"function\": function( param, element ) {\n                    return param( element );\n                }\n            },\n\n            optional: function( element ) {\n                var val = this.elementValue( element );\n                return !$.validator.methods.required.call( this, val, element ) && \"dependency-mismatch\";\n            },\n\n            startRequest: function( element ) {\n                if ( !this.pending[ element.name ] ) {\n                    this.pendingRequest++;\n                    $( element ).addClass( this.settings.pendingClass );\n                    this.pending[ element.name ] = true;\n                }\n            },\n\n            stopRequest: function( element, valid ) {\n                this.pendingRequest--;\n\n                // Sometimes synchronization fails, make sure pendingRequest is never < 0\n                if ( this.pendingRequest < 0 ) {\n                    this.pendingRequest = 0;\n                }\n                delete this.pending[ element.name ];\n                $( element ).removeClass( this.settings.pendingClass );\n                if ( valid && this.pendingRequest === 0 && this.formSubmitted && this.form() && this.pendingRequest === 0 ) {\n                    $( this.currentForm ).trigger( \"submit\" );\n\n                    // Remove the hidden input that was used as a replacement for the\n                    // missing submit button. The hidden input is added by `handle()`\n                    // to ensure that the value of the used submit button is passed on\n                    // for scripted submits triggered by this method\n                    if ( this.submitButton ) {\n                        $( \"input:hidden[name='\" + this.submitButton.name + \"']\", this.currentForm ).remove();\n                    }\n\n                    this.formSubmitted = false;\n                } else if ( !valid && this.pendingRequest === 0 && this.formSubmitted ) {\n                    $( this.currentForm ).triggerHandler( \"invalid-form\", [ this ] );\n                    this.formSubmitted = false;\n                }\n            },\n\n            previousValue: function( element, method ) {\n                method = typeof method === \"string\" && method || \"remote\";\n\n                return $.data( element, \"previousValue\" ) || $.data( element, \"previousValue\", {\n                    old: null,\n                    valid: true,\n                    message: this.defaultMessage( element, { method: method } )\n                } );\n            },\n\n            // Cleans up all forms and elements, removes validator-specific events\n            destroy: function() {\n                this.resetForm();\n\n                $( this.currentForm )\n                    .off( \".validate\" )\n                    .removeData( \"validator\" )\n                    .find( \".validate-equalTo-blur\" )\n                    .off( \".validate-equalTo\" )\n                    .removeClass( \"validate-equalTo-blur\" )\n                    .find( \".validate-lessThan-blur\" )\n                    .off( \".validate-lessThan\" )\n                    .removeClass( \"validate-lessThan-blur\" )\n                    .find( \".validate-lessThanEqual-blur\" )\n                    .off( \".validate-lessThanEqual\" )\n                    .removeClass( \"validate-lessThanEqual-blur\" )\n                    .find( \".validate-greaterThanEqual-blur\" )\n                    .off( \".validate-greaterThanEqual\" )\n                    .removeClass( \"validate-greaterThanEqual-blur\" )\n                    .find( \".validate-greaterThan-blur\" )\n                    .off( \".validate-greaterThan\" )\n                    .removeClass( \"validate-greaterThan-blur\" );\n            }\n\n        },\n\n        classRuleSettings: {\n            required: { required: true },\n            email: { email: true },\n            url: { url: true },\n            date: { date: true },\n            dateISO: { dateISO: true },\n            number: { number: true },\n            digits: { digits: true },\n            creditcard: { creditcard: true }\n        },\n\n        addClassRules: function( className, rules ) {\n            if ( className.constructor === String ) {\n                this.classRuleSettings[ className ] = rules;\n            } else {\n                $.extend( this.classRuleSettings, className );\n            }\n        },\n\n        classRules: function( element ) {\n            var rules = {},\n                classes = $( element ).attr( \"class\" );\n\n            if ( classes ) {\n                $.each( classes.split( \" \" ), function() {\n                    if ( this in $.validator.classRuleSettings ) {\n                        $.extend( rules, $.validator.classRuleSettings[ this ] );\n                    }\n                } );\n            }\n            return rules;\n        },\n\n        normalizeAttributeRule: function( rules, type, method, value ) {\n\n            // Convert the value to a number for number inputs, and for text for backwards compability\n            // allows type=\"date\" and others to be compared as strings\n            if ( /min|max|step/.test( method ) && ( type === null || /number|range|text/.test( type ) ) ) {\n                value = Number( value );\n\n                // Support Opera Mini, which returns NaN for undefined minlength\n                if ( isNaN( value ) ) {\n                    value = undefined;\n                }\n            }\n\n            if ( value || value === 0 ) {\n                rules[ method ] = value;\n            } else if ( type === method && type !== \"range\" ) {\n\n                // Exception: the jquery validate 'range' method\n                // does not test for the html5 'range' type\n                rules[ type === \"date\" ? \"dateISO\" : method ] = true;\n            }\n        },\n\n        attributeRules: function( element ) {\n            var rules = {},\n                $element = $( element ),\n                type = element.getAttribute( \"type\" ),\n                method, value;\n\n            for ( method in $.validator.methods ) {\n\n                // Support for <input required> in both html5 and older browsers\n                if ( method === \"required\" ) {\n                    value = element.getAttribute( method );\n\n                    // Some browsers return an empty string for the required attribute\n                    // and non-HTML5 browsers might have required=\"\" markup\n                    if ( value === \"\" ) {\n                        value = true;\n                    }\n\n                    // Force non-HTML5 browsers to return bool\n                    value = !!value;\n                } else {\n                    value = $element.attr( method );\n                }\n\n                this.normalizeAttributeRule( rules, type, method, value );\n            }\n\n            // 'maxlength' may be returned as -1, 2147483647 ( IE ) and 524288 ( safari ) for text inputs\n            if ( rules.maxlength && /-1|2147483647|524288/.test( rules.maxlength ) ) {\n                delete rules.maxlength;\n            }\n\n            return rules;\n        },\n\n        metadataRules: function (element) {\n            if (!$.metadata) {\n                return {};\n            }\n\n            var meta = $.data(element.form, 'validator').settings.meta;\n            return meta ?\n                $(element).metadata()[meta] :\n                $(element).metadata();\n        },\n\n        dataRules: function( element ) {\n            var rules = {},\n                $element = $( element ),\n                type = element.getAttribute( \"type\" ),\n                method, value;\n\n            for ( method in $.validator.methods ) {\n                value = $element.data( \"rule\" + method.charAt( 0 ).toUpperCase() + method.substring( 1 ).toLowerCase() );\n\n                // Cast empty attributes like `data-rule-required` to `true`\n                if ( value === \"\" ) {\n                    value = true;\n                }\n\n                this.normalizeAttributeRule( rules, type, method, value );\n            }\n            return rules;\n        },\n\n        staticRules: function( element ) {\n            var rules = {},\n                validator = $.data( element.form, \"validator\" );\n\n            if ( validator.settings.rules ) {\n                rules = $.validator.normalizeRule( validator.settings.rules[ element.name ] ) || {};\n            }\n            return rules;\n        },\n\n        normalizeRules: function( rules, element ) {\n\n            // Handle dependency check\n            $.each( rules, function( prop, val ) {\n\n                // Ignore rule when param is explicitly false, eg. required:false\n                if ( val === false ) {\n                    delete rules[ prop ];\n                    return;\n                }\n                if ( val.param || val.depends ) {\n                    var keepRule = true;\n                    switch ( typeof val.depends ) {\n                        case \"string\":\n                            keepRule = !!$( val.depends, element.form ).length;\n                            break;\n                        case \"function\":\n                            keepRule = val.depends.call( element, element );\n                            break;\n                    }\n                    if ( keepRule ) {\n                        rules[ prop ] = val.param !== undefined ? val.param : true;\n                    } else {\n                        $.data( element.form, \"validator\" ).resetElements( $( element ) );\n                        delete rules[ prop ];\n                    }\n                }\n            } );\n\n            // Evaluate parameters\n            $.each( rules, function( rule, parameter ) {\n                rules[ rule ] = typeof parameter === \"function\" && rule !== \"normalizer\" ? parameter( element ) : parameter;\n            } );\n\n            // Clean number parameters\n            $.each( [ \"minlength\", \"maxlength\" ], function() {\n                if ( rules[ this ] ) {\n                    rules[ this ] = Number( rules[ this ] );\n                }\n            } );\n            $.each( [ \"rangelength\", \"range\" ], function() {\n                var parts;\n                if ( rules[ this ] ) {\n                    if ( Array.isArray( rules[ this ] ) ) {\n                        rules[ this ] = [ Number( rules[ this ][ 0 ] ), Number( rules[ this ][ 1 ] ) ];\n                    } else if ( typeof rules[ this ] === \"string\" ) {\n                        parts = rules[ this ].replace( /[\\[\\]]/g, \"\" ).split( /[\\s,]+/ );\n                        rules[ this ] = [ Number( parts[ 0 ] ), Number( parts[ 1 ] ) ];\n                    }\n                }\n            } );\n\n            if ( $.validator.autoCreateRanges ) {\n\n                // Auto-create ranges\n                if ( rules.min != null && rules.max != null ) {\n                    rules.range = [ rules.min, rules.max ];\n                    delete rules.min;\n                    delete rules.max;\n                }\n                if ( rules.minlength != null && rules.maxlength != null ) {\n                    rules.rangelength = [ rules.minlength, rules.maxlength ];\n                    delete rules.minlength;\n                    delete rules.maxlength;\n                }\n            }\n\n            return rules;\n        },\n\n        // Converts a simple string to a {string: true} rule, e.g., \"required\" to {required:true}\n        normalizeRule: function( data ) {\n            if ( typeof data === \"string\" ) {\n                var transformed = {};\n                $.each( data.split( /\\s/ ), function() {\n                    transformed[ this ] = true;\n                } );\n                data = transformed;\n            }\n            return data;\n        },\n\n        // https://jqueryvalidation.org/jQuery.validator.addMethod/\n        addMethod: function( name, method, message ) {\n            $.validator.methods[ name ] = method;\n            $.validator.messages[ name ] = message !== undefined ? message : $.validator.messages[ name ];\n            if ( method.length < 3 ) {\n                $.validator.addClassRules( name, $.validator.normalizeRule( name ) );\n            }\n        },\n\n        // https://jqueryvalidation.org/jQuery.validator.methods/\n        methods: {\n\n            // https://jqueryvalidation.org/required-method/\n            required: function( value, element, param ) {\n\n                // Check if dependency is met\n                if ( !this.depend( param, element ) ) {\n                    return \"dependency-mismatch\";\n                }\n                if ( element.nodeName.toLowerCase() === \"select\" ) {\n\n                    // Could be an array for select-multiple or a string, both are fine this way\n                    var val = $( element ).val();\n                    return val && val.length > 0;\n                }\n                if ( this.checkable( element ) ) {\n                    return this.getLength( value, element ) > 0;\n                }\n                return value !== undefined && value !== null && value.length > 0;\n            },\n\n            // https://jqueryvalidation.org/email-method/\n            email: function( value, element ) {\n\n                // From https://html.spec.whatwg.org/multipage/forms.html#valid-e-mail-address\n                // Retrieved 2014-01-14\n                // If you have a problem with this implementation, report a bug against the above spec\n                // Or use custom methods to implement your own email validation\n                return this.optional( element ) || /^[a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(value);},url:function(value,element){return this.optional(element)||/^(?:(?:(?:https?|ftp):)?\\/\\/)(?:(?:[^\\]\\[?\\/<~#`!@$^&*()+=}|:\";',>{ ]|%[0-9A-Fa-f]{2})+(?::(?:[^\\]\\[?\\/<~#`!@$^&*()+=}|:\";',>{ ]|%[0-9A-Fa-f]{2})*)?@)?(?:(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z0-9\\u00a1-\\uffff][a-z0-9\\u00a1-\\uffff_-]{0,62})?[a-z0-9\\u00a1-\\uffff]\\.)+(?:[a-z\\u00a1-\\uffff]{2,}\\.?))(?::\\d{2,5})?(?:[/?#]\\S*)?$/i.test(value);},date:(function(){var called=false;return function(value,element){if(!called){called=true;if(this.settings.debug&&window.console){console.warn(\"The `date` method is deprecated and will be removed in version '2.0.0'.\\n\"+\"Please don't use it, since it relies on the Date constructor, which\\n\"+\"behaves very differently across browsers and locales. Use `dateISO`\\n\"+\"instead or one of the locale specific methods in `localizations/`\\n\"+\"and `additional-methods.js`.\");}}\nreturn this.optional(element)||!/Invalid|NaN/.test(new Date(value).toString());};}()),dateISO:function(value,element){return this.optional(element)||/^\\d{4}[\\/\\-](0?[1-9]|1[012])[\\/\\-](0?[1-9]|[12][0-9]|3[01])$/.test(value);},number:function(value,element){return this.optional(element)||/^(?:-?\\d+|-?\\d{1,3}(?:,\\d{3})+)?(?:\\.\\d+)?$/.test(value);},digits:function(value,element){return this.optional(element)||/^\\d+$/.test(value);},minlength:function(value,element,param){var length=Array.isArray(value)?value.length:this.getLength(value,element);return this.optional(element)||length>=param;},maxlength:function(value,element,param){var length=Array.isArray(value)?value.length:this.getLength(value,element);return this.optional(element)||length<=param;},rangelength:function(value,element,param){var length=Array.isArray(value)?value.length:this.getLength(value,element);return this.optional(element)||(length>=param[0]&&length<=param[1]);},min:function(value,element,param){return this.optional(element)||value>=param;},max:function(value,element,param){return this.optional(element)||value<=param;},range:function(value,element,param){return this.optional(element)||(value>=param[0]&&value<=param[1]);},step:function(value,element,param){var type=$(element).attr(\"type\"),errorMessage=\"Step attribute on input type \"+type+\" is not supported.\",supportedTypes=[\"text\",\"number\",\"range\"],re=new RegExp(\"\\\\b\"+type+\"\\\\b\"),notSupported=type&&!re.test(supportedTypes.join()),decimalPlaces=function(num){var match=(\"\"+num).match(/(?:\\.(\\d+))?$/);if(!match){return 0;}\nreturn match[1]?match[1].length:0;},toInt=function(num){return Math.round(num*Math.pow(10,decimals));},valid=true,decimals;if(notSupported){throw new Error(errorMessage);}\ndecimals=decimalPlaces(param);if(decimalPlaces(value)>decimals||toInt(value)%toInt(param)!==0){valid=false;}\nreturn this.optional(element)||valid;},equalTo:function(value,element,param){var target=$(param);if(this.settings.onfocusout&&target.not(\".validate-equalTo-blur\").length){target.addClass(\"validate-equalTo-blur\").on(\"blur.validate-equalTo\",function(){$(element).valid();});}\nreturn value===target.val();},remote:function(value,element,param,method){if(this.optional(element)){return\"dependency-mismatch\";}\nmethod=typeof method===\"string\"&&method||\"remote\";var previous=this.previousValue(element,method),validator,data,optionDataString;if(!this.settings.messages[element.name]){this.settings.messages[element.name]={};}\nprevious.originalMessage=previous.originalMessage||this.settings.messages[element.name][method];this.settings.messages[element.name][method]=previous.message;param=typeof param===\"string\"&&{url:param}||param;optionDataString=$.param($.extend({data:value},param.data));if(previous.old===optionDataString){return previous.valid;}\nprevious.old=optionDataString;validator=this;this.startRequest(element);data={};data[element.name]=value;$.ajax($.extend(true,{mode:\"abort\",port:\"validate\"+element.name,dataType:\"json\",data:data,context:validator.currentForm,success:function(response){var valid=response===true||response===\"true\",errors,message,submitted;validator.settings.messages[element.name][method]=previous.originalMessage;if(valid){submitted=validator.formSubmitted;validator.resetInternals();validator.toHide=validator.errorsFor(element);validator.formSubmitted=submitted;validator.successList.push(element);validator.invalid[element.name]=false;validator.showErrors();}else{errors={};message=response||validator.defaultMessage(element,{method:method,parameters:value});errors[element.name]=previous.message=message;validator.invalid[element.name]=true;validator.showErrors(errors);}\nprevious.valid=valid;validator.stopRequest(element,valid);}},param));return\"pending\";}}});var pendingRequests={},ajax;if($.ajaxPrefilter){$.ajaxPrefilter(function(settings,_,xhr){var port=settings.port;if(settings.mode===\"abort\"){if(pendingRequests[port]){pendingRequests[port].abort();}\npendingRequests[port]=xhr;}});}else{ajax=$.ajax;$.ajax=function(settings){var mode=(\"mode\"in settings?settings:$.ajaxSettings).mode,port=(\"port\"in settings?settings:$.ajaxSettings).port;if(mode===\"abort\"){if(pendingRequests[port]){pendingRequests[port].abort();}\npendingRequests[port]=ajax.apply(this,arguments);return pendingRequests[port];}\nreturn ajax.apply(this,arguments);};}\nreturn $;}));","jquery/jquery-ui-timepicker-addon.min.js":"/*! jQuery Timepicker Addon - v1.6.3 - 2016-04-20\n* http://trentrichardson.com/examples/timepicker\n* Copyright (c) 2016 Trent Richardson; Licensed MIT */\n(function(factory){if(typeof define==='function'&&define.amd){define(['jquery','jquery/ui'],factory);}else{factory(jQuery);}}(function($){$.ui.timepicker=$.ui.timepicker||{};if($.ui.timepicker.version){return;}\n$.extend($.ui,{timepicker:{version:\"1.6.3\"}});var Timepicker=function(){this.regional=[];this.regional['']={currentText:'Now',closeText:'Done',amNames:['AM','A'],pmNames:['PM','P'],timeFormat:'HH:mm',timeSuffix:'',timeOnlyTitle:'Choose Time',timeText:'Time',hourText:'Hour',minuteText:'Minute',secondText:'Second',millisecText:'Millisecond',microsecText:'Microsecond',timezoneText:'Time Zone',isRTL:false};this._defaults={showButtonPanel:true,timeOnly:false,timeOnlyShowDate:false,showHour:null,showMinute:null,showSecond:null,showMillisec:null,showMicrosec:null,showTimezone:null,showTime:true,stepHour:1,stepMinute:1,stepSecond:1,stepMillisec:1,stepMicrosec:1,hour:0,minute:0,second:0,millisec:0,microsec:0,timezone:null,hourMin:0,minuteMin:0,secondMin:0,millisecMin:0,microsecMin:0,hourMax:23,minuteMax:59,secondMax:59,millisecMax:999,microsecMax:999,minDateTime:null,maxDateTime:null,maxTime:null,minTime:null,onSelect:null,hourGrid:0,minuteGrid:0,secondGrid:0,millisecGrid:0,microsecGrid:0,alwaysSetTime:true,separator:' ',altFieldTimeOnly:true,altTimeFormat:null,altSeparator:null,altTimeSuffix:null,altRedirectFocus:true,pickerTimeFormat:null,pickerTimeSuffix:null,showTimepicker:true,timezoneList:null,addSliderAccess:false,sliderAccessArgs:null,controlType:'slider',oneLine:false,defaultValue:null,parse:'strict',afterInject:null};$.extend(this._defaults,this.regional['']);};$.extend(Timepicker.prototype,{$input:null,$altInput:null,$timeObj:null,inst:null,hour_slider:null,minute_slider:null,second_slider:null,millisec_slider:null,microsec_slider:null,timezone_select:null,maxTime:null,minTime:null,hour:0,minute:0,second:0,millisec:0,microsec:0,timezone:null,hourMinOriginal:null,minuteMinOriginal:null,secondMinOriginal:null,millisecMinOriginal:null,microsecMinOriginal:null,hourMaxOriginal:null,minuteMaxOriginal:null,secondMaxOriginal:null,millisecMaxOriginal:null,microsecMaxOriginal:null,ampm:'',formattedDate:'',formattedTime:'',formattedDateTime:'',timezoneList:null,units:['hour','minute','second','millisec','microsec'],support:{},control:null,setDefaults:function(settings){extendRemove(this._defaults,settings||{});return this;},_newInst:function($input,opts){var tp_inst=new Timepicker(),inlineSettings={},fns={},overrides,i;for(var attrName in this._defaults){if(this._defaults.hasOwnProperty(attrName)){var attrValue=$input.attr('time:'+attrName);if(attrValue){try{inlineSettings[attrName]=eval(attrValue);}catch(err){inlineSettings[attrName]=attrValue;}}}}\noverrides={beforeShow:function(input,dp_inst){if($.isFunction(tp_inst._defaults.evnts.beforeShow)){return tp_inst._defaults.evnts.beforeShow.call($input[0],input,dp_inst,tp_inst);}},onChangeMonthYear:function(year,month,dp_inst){if($.isFunction(tp_inst._defaults.evnts.onChangeMonthYear)){tp_inst._defaults.evnts.onChangeMonthYear.call($input[0],year,month,dp_inst,tp_inst);}},onClose:function(dateText,dp_inst){if(tp_inst.timeDefined===true&&$input.val()!==''){tp_inst._updateDateTime(dp_inst);}\nif($.isFunction(tp_inst._defaults.evnts.onClose)){tp_inst._defaults.evnts.onClose.call($input[0],dateText,dp_inst,tp_inst);}}};for(i in overrides){if(overrides.hasOwnProperty(i)){fns[i]=opts[i]||this._defaults[i]||null;}}\ntp_inst._defaults=$.extend({},this._defaults,inlineSettings,opts,overrides,{evnts:fns,timepicker:tp_inst});tp_inst.amNames=$.map(tp_inst._defaults.amNames,function(val){return val.toUpperCase();});tp_inst.pmNames=$.map(tp_inst._defaults.pmNames,function(val){return val.toUpperCase();});tp_inst.support=detectSupport(tp_inst._defaults.timeFormat+\n(tp_inst._defaults.pickerTimeFormat?tp_inst._defaults.pickerTimeFormat:'')+\n(tp_inst._defaults.altTimeFormat?tp_inst._defaults.altTimeFormat:''));if(typeof(tp_inst._defaults.controlType)==='string'){if(tp_inst._defaults.controlType==='slider'&&typeof($.ui.slider)==='undefined'){tp_inst._defaults.controlType='select';}\ntp_inst.control=tp_inst._controls[tp_inst._defaults.controlType];}\nelse{tp_inst.control=tp_inst._defaults.controlType;}\nvar timezoneList=[-720,-660,-600,-570,-540,-480,-420,-360,-300,-270,-240,-210,-180,-120,-60,0,60,120,180,210,240,270,300,330,345,360,390,420,480,525,540,570,600,630,660,690,720,765,780,840];if(tp_inst._defaults.timezoneList!==null){timezoneList=tp_inst._defaults.timezoneList;}\nvar tzl=timezoneList.length,tzi=0,tzv=null;if(tzl>0&&typeof timezoneList[0]!=='object'){for(;tzi<tzl;tzi++){tzv=timezoneList[tzi];timezoneList[tzi]={value:tzv,label:$.timepicker.timezoneOffsetString(tzv,tp_inst.support.iso8601)};}}\ntp_inst._defaults.timezoneList=timezoneList;tp_inst.timezone=tp_inst._defaults.timezone!==null?$.timepicker.timezoneOffsetNumber(tp_inst._defaults.timezone):((new Date()).getTimezoneOffset()*-1);tp_inst.hour=tp_inst._defaults.hour<tp_inst._defaults.hourMin?tp_inst._defaults.hourMin:tp_inst._defaults.hour>tp_inst._defaults.hourMax?tp_inst._defaults.hourMax:tp_inst._defaults.hour;tp_inst.minute=tp_inst._defaults.minute<tp_inst._defaults.minuteMin?tp_inst._defaults.minuteMin:tp_inst._defaults.minute>tp_inst._defaults.minuteMax?tp_inst._defaults.minuteMax:tp_inst._defaults.minute;tp_inst.second=tp_inst._defaults.second<tp_inst._defaults.secondMin?tp_inst._defaults.secondMin:tp_inst._defaults.second>tp_inst._defaults.secondMax?tp_inst._defaults.secondMax:tp_inst._defaults.second;tp_inst.millisec=tp_inst._defaults.millisec<tp_inst._defaults.millisecMin?tp_inst._defaults.millisecMin:tp_inst._defaults.millisec>tp_inst._defaults.millisecMax?tp_inst._defaults.millisecMax:tp_inst._defaults.millisec;tp_inst.microsec=tp_inst._defaults.microsec<tp_inst._defaults.microsecMin?tp_inst._defaults.microsecMin:tp_inst._defaults.microsec>tp_inst._defaults.microsecMax?tp_inst._defaults.microsecMax:tp_inst._defaults.microsec;tp_inst.ampm='';tp_inst.$input=$input;if(tp_inst._defaults.altField){tp_inst.$altInput=$(tp_inst._defaults.altField);if(tp_inst._defaults.altRedirectFocus===true){tp_inst.$altInput.css({cursor:'pointer'}).focus(function(){$input.trigger(\"focus\");});}}\nif(tp_inst._defaults.minDate===0||tp_inst._defaults.minDateTime===0){tp_inst._defaults.minDate=new Date();}\nif(tp_inst._defaults.maxDate===0||tp_inst._defaults.maxDateTime===0){tp_inst._defaults.maxDate=new Date();}\nif(tp_inst._defaults.minDate!==undefined&&tp_inst._defaults.minDate instanceof Date){tp_inst._defaults.minDateTime=new Date(tp_inst._defaults.minDate.getTime());}\nif(tp_inst._defaults.minDateTime!==undefined&&tp_inst._defaults.minDateTime instanceof Date){tp_inst._defaults.minDate=new Date(tp_inst._defaults.minDateTime.getTime());}\nif(tp_inst._defaults.maxDate!==undefined&&tp_inst._defaults.maxDate instanceof Date){tp_inst._defaults.maxDateTime=new Date(tp_inst._defaults.maxDate.getTime());}\nif(tp_inst._defaults.maxDateTime!==undefined&&tp_inst._defaults.maxDateTime instanceof Date){tp_inst._defaults.maxDate=new Date(tp_inst._defaults.maxDateTime.getTime());}\ntp_inst.$input.bind('focus',function(){tp_inst._onFocus();});return tp_inst;},_addTimePicker:function(dp_inst){var currDT=$.trim((this.$altInput&&this._defaults.altFieldTimeOnly)?this.$input.val()+' '+this.$altInput.val():this.$input.val());this.timeDefined=this._parseTime(currDT);this._limitMinMaxDateTime(dp_inst,false);this._injectTimePicker();this._afterInject();},_parseTime:function(timeString,withDate){if(!this.inst){this.inst=$.datepicker._getInst(this.$input[0]);}\nif(withDate||!this._defaults.timeOnly){var dp_dateFormat=$.datepicker._get(this.inst,'dateFormat');try{var parseRes=parseDateTimeInternal(dp_dateFormat,this._defaults.timeFormat,timeString,$.datepicker._getFormatConfig(this.inst),this._defaults);if(!parseRes.timeObj){return false;}\n$.extend(this,parseRes.timeObj);}catch(err){$.timepicker.log(\"Error parsing the date/time string: \"+err+\"\\ndate/time string = \"+timeString+\"\\ntimeFormat = \"+this._defaults.timeFormat+\"\\ndateFormat = \"+dp_dateFormat);return false;}\nreturn true;}else{var timeObj=$.datepicker.parseTime(this._defaults.timeFormat,timeString,this._defaults);if(!timeObj){return false;}\n$.extend(this,timeObj);return true;}},_afterInject:function(){var o=this.inst.settings;if($.isFunction(o.afterInject)){o.afterInject.call(this);}},_injectTimePicker:function(){var $dp=this.inst.dpDiv,o=this.inst.settings,tp_inst=this,litem='',uitem='',show=null,max={},gridSize={},size=null,i=0,l=0;if($dp.find(\"div.ui-timepicker-div\").length===0&&o.showTimepicker){var noDisplay=' ui_tpicker_unit_hide',html='<div class=\"ui-timepicker-div'+(o.isRTL?' ui-timepicker-rtl':'')+(o.oneLine&&o.controlType==='select'?' ui-timepicker-oneLine':'')+'\"><dl>'+'<dt class=\"ui_tpicker_time_label'+((o.showTime)?'':noDisplay)+'\">'+o.timeText+'</dt>'+'<dd class=\"ui_tpicker_time '+((o.showTime)?'':noDisplay)+'\"><input class=\"ui_tpicker_time_input\" '+(o.timeInput?'':'disabled')+'/></dd>';for(i=0,l=this.units.length;i<l;i++){litem=this.units[i];uitem=litem.substr(0,1).toUpperCase()+litem.substr(1);show=o['show'+uitem]!==null?o['show'+uitem]:this.support[litem];max[litem]=parseInt((o[litem+'Max']-((o[litem+'Max']-o[litem+'Min'])%o['step'+uitem])),10);gridSize[litem]=0;html+='<dt class=\"ui_tpicker_'+litem+'_label'+(show?'':noDisplay)+'\">'+o[litem+'Text']+'</dt>'+'<dd class=\"ui_tpicker_'+litem+(show?'':noDisplay)+'\"><div class=\"ui_tpicker_'+litem+'_slider'+(show?'':noDisplay)+'\"></div>';if(show&&o[litem+'Grid']>0){html+='<div style=\"padding-left: 1px\"><table class=\"ui-tpicker-grid-label\"><tr>';if(litem==='hour'){for(var h=o[litem+'Min'];h<=max[litem];h+=parseInt(o[litem+'Grid'],10)){gridSize[litem]++;var tmph=$.datepicker.formatTime(this.support.ampm?'hht':'HH',{hour:h},o);html+='<td data-for=\"'+litem+'\">'+tmph+'</td>';}}\nelse{for(var m=o[litem+'Min'];m<=max[litem];m+=parseInt(o[litem+'Grid'],10)){gridSize[litem]++;html+='<td data-for=\"'+litem+'\">'+((m<10)?'0':'')+m+'</td>';}}\nhtml+='</tr></table></div>';}\nhtml+='</dd>';}\nvar showTz=o.showTimezone!==null?o.showTimezone:this.support.timezone;html+='<dt class=\"ui_tpicker_timezone_label'+(showTz?'':noDisplay)+'\">'+o.timezoneText+'</dt>';html+='<dd class=\"ui_tpicker_timezone'+(showTz?'':noDisplay)+'\"></dd>';html+='</dl></div>';var $tp=$(html);if(o.timeOnly===true){$tp.prepend('<div class=\"ui-widget-header ui-helper-clearfix ui-corner-all\">'+'<div class=\"ui-datepicker-title\">'+o.timeOnlyTitle+'</div>'+'</div>');$dp.find('.ui-datepicker-header, .ui-datepicker-calendar').hide();}\nfor(i=0,l=tp_inst.units.length;i<l;i++){litem=tp_inst.units[i];uitem=litem.substr(0,1).toUpperCase()+litem.substr(1);show=o['show'+uitem]!==null?o['show'+uitem]:this.support[litem];tp_inst[litem+'_slider']=tp_inst.control.create(tp_inst,$tp.find('.ui_tpicker_'+litem+'_slider'),litem,tp_inst[litem],o[litem+'Min'],max[litem],o['step'+uitem]);if(show&&o[litem+'Grid']>0){size=100*gridSize[litem]*o[litem+'Grid']/(max[litem]-o[litem+'Min']);$tp.find('.ui_tpicker_'+litem+' table').css({width:size+\"%\",marginLeft:o.isRTL?'0':((size /(-2*gridSize[litem]))+\"%\"),marginRight:o.isRTL?((size /(-2*gridSize[litem]))+\"%\"):'0',borderCollapse:'collapse'}).find(\"td\").click(function(e){var $t=$(this),h=$t.html(),n=parseInt(h.replace(/[^0-9]/g),10),ap=h.replace(/[^apm]/ig),f=$t.data('for');if(f==='hour'){if(ap.indexOf('p')!==-1&&n<12){n+=12;}\nelse{if(ap.indexOf('a')!==-1&&n===12){n=0;}}}\ntp_inst.control.value(tp_inst,tp_inst[f+'_slider'],litem,n);tp_inst._onTimeChange();tp_inst._onSelectHandler();}).css({cursor:'pointer',width:(100 / gridSize[litem])+'%',textAlign:'center',overflow:'hidden'});}}\nthis.timezone_select=$tp.find('.ui_tpicker_timezone').append('<select></select>').find(\"select\");$.fn.append.apply(this.timezone_select,$.map(o.timezoneList,function(val,idx){return $(\"<option />\").val(typeof val===\"object\"?val.value:val).text(typeof val===\"object\"?val.label:val);}));if(typeof(this.timezone)!==\"undefined\"&&this.timezone!==null&&this.timezone!==\"\"){var local_timezone=(new Date(this.inst.selectedYear,this.inst.selectedMonth,this.inst.selectedDay,12)).getTimezoneOffset()*-1;if(local_timezone===this.timezone){selectLocalTimezone(tp_inst);}else{this.timezone_select.val(this.timezone);}}else{if(typeof(this.hour)!==\"undefined\"&&this.hour!==null&&this.hour!==\"\"){this.timezone_select.val(o.timezone);}else{selectLocalTimezone(tp_inst);}}\nthis.timezone_select.change(function(){tp_inst._onTimeChange();tp_inst._onSelectHandler();tp_inst._afterInject();});var $buttonPanel=$dp.find('.ui-datepicker-buttonpane');if($buttonPanel.length){$buttonPanel.before($tp);}else{$dp.append($tp);}\nthis.$timeObj=$tp.find('.ui_tpicker_time_input');this.$timeObj.change(function(){var timeFormat=tp_inst.inst.settings.timeFormat;var parsedTime=$.datepicker.parseTime(timeFormat,this.value);var update=new Date();if(parsedTime){update.setHours(parsedTime.hour);update.setMinutes(parsedTime.minute);update.setSeconds(parsedTime.second);$.datepicker._setTime(tp_inst.inst,update);}else{this.value=tp_inst.formattedTime;this.blur();}});if(this.inst!==null){var timeDefined=this.timeDefined;this._onTimeChange();this.timeDefined=timeDefined;}\nif(this._defaults.addSliderAccess){var sliderAccessArgs=this._defaults.sliderAccessArgs,rtl=this._defaults.isRTL;sliderAccessArgs.isRTL=rtl;setTimeout(function(){if($tp.find('.ui-slider-access').length===0){$tp.find('.ui-slider:visible').sliderAccess(sliderAccessArgs);var sliderAccessWidth=$tp.find('.ui-slider-access:eq(0)').outerWidth(true);if(sliderAccessWidth){$tp.find('table:visible').each(function(){var $g=$(this),oldWidth=$g.outerWidth(),oldMarginLeft=$g.css(rtl?'marginRight':'marginLeft').toString().replace('%',''),newWidth=oldWidth-sliderAccessWidth,newMarginLeft=((oldMarginLeft*newWidth)/ oldWidth)+'%',css={width:newWidth,marginRight:0,marginLeft:0};css[rtl?'marginRight':'marginLeft']=newMarginLeft;$g.css(css);});}}},10);}\ntp_inst._limitMinMaxDateTime(this.inst,true);}},_limitMinMaxDateTime:function(dp_inst,adjustSliders){var o=this._defaults,dp_date=new Date(dp_inst.selectedYear,dp_inst.selectedMonth,dp_inst.selectedDay);if(!this._defaults.showTimepicker){return;}\nif($.datepicker._get(dp_inst,'minDateTime')!==null&&$.datepicker._get(dp_inst,'minDateTime')!==undefined&&dp_date){var minDateTime=$.datepicker._get(dp_inst,'minDateTime'),minDateTimeDate=new Date(minDateTime.getFullYear(),minDateTime.getMonth(),minDateTime.getDate(),0,0,0,0);if(this.hourMinOriginal===null||this.minuteMinOriginal===null||this.secondMinOriginal===null||this.millisecMinOriginal===null||this.microsecMinOriginal===null){this.hourMinOriginal=o.hourMin;this.minuteMinOriginal=o.minuteMin;this.secondMinOriginal=o.secondMin;this.millisecMinOriginal=o.millisecMin;this.microsecMinOriginal=o.microsecMin;}\nif(dp_inst.settings.timeOnly||minDateTimeDate.getTime()===dp_date.getTime()){this._defaults.hourMin=minDateTime.getHours();if(this.hour<=this._defaults.hourMin){this.hour=this._defaults.hourMin;this._defaults.minuteMin=minDateTime.getMinutes();if(this.minute<=this._defaults.minuteMin){this.minute=this._defaults.minuteMin;this._defaults.secondMin=minDateTime.getSeconds();if(this.second<=this._defaults.secondMin){this.second=this._defaults.secondMin;this._defaults.millisecMin=minDateTime.getMilliseconds();if(this.millisec<=this._defaults.millisecMin){this.millisec=this._defaults.millisecMin;this._defaults.microsecMin=minDateTime.getMicroseconds();}else{if(this.microsec<this._defaults.microsecMin){this.microsec=this._defaults.microsecMin;}\nthis._defaults.microsecMin=this.microsecMinOriginal;}}else{this._defaults.millisecMin=this.millisecMinOriginal;this._defaults.microsecMin=this.microsecMinOriginal;}}else{this._defaults.secondMin=this.secondMinOriginal;this._defaults.millisecMin=this.millisecMinOriginal;this._defaults.microsecMin=this.microsecMinOriginal;}}else{this._defaults.minuteMin=this.minuteMinOriginal;this._defaults.secondMin=this.secondMinOriginal;this._defaults.millisecMin=this.millisecMinOriginal;this._defaults.microsecMin=this.microsecMinOriginal;}}else{this._defaults.hourMin=this.hourMinOriginal;this._defaults.minuteMin=this.minuteMinOriginal;this._defaults.secondMin=this.secondMinOriginal;this._defaults.millisecMin=this.millisecMinOriginal;this._defaults.microsecMin=this.microsecMinOriginal;}}\nif($.datepicker._get(dp_inst,'maxDateTime')!==null&&$.datepicker._get(dp_inst,'maxDateTime')!==undefined&&dp_date){var maxDateTime=$.datepicker._get(dp_inst,'maxDateTime'),maxDateTimeDate=new Date(maxDateTime.getFullYear(),maxDateTime.getMonth(),maxDateTime.getDate(),0,0,0,0);if(this.hourMaxOriginal===null||this.minuteMaxOriginal===null||this.secondMaxOriginal===null||this.millisecMaxOriginal===null){this.hourMaxOriginal=o.hourMax;this.minuteMaxOriginal=o.minuteMax;this.secondMaxOriginal=o.secondMax;this.millisecMaxOriginal=o.millisecMax;this.microsecMaxOriginal=o.microsecMax;}\nif(dp_inst.settings.timeOnly||maxDateTimeDate.getTime()===dp_date.getTime()){this._defaults.hourMax=maxDateTime.getHours();if(this.hour>=this._defaults.hourMax){this.hour=this._defaults.hourMax;this._defaults.minuteMax=maxDateTime.getMinutes();if(this.minute>=this._defaults.minuteMax){this.minute=this._defaults.minuteMax;this._defaults.secondMax=maxDateTime.getSeconds();if(this.second>=this._defaults.secondMax){this.second=this._defaults.secondMax;this._defaults.millisecMax=maxDateTime.getMilliseconds();if(this.millisec>=this._defaults.millisecMax){this.millisec=this._defaults.millisecMax;this._defaults.microsecMax=maxDateTime.getMicroseconds();}else{if(this.microsec>this._defaults.microsecMax){this.microsec=this._defaults.microsecMax;}\nthis._defaults.microsecMax=this.microsecMaxOriginal;}}else{this._defaults.millisecMax=this.millisecMaxOriginal;this._defaults.microsecMax=this.microsecMaxOriginal;}}else{this._defaults.secondMax=this.secondMaxOriginal;this._defaults.millisecMax=this.millisecMaxOriginal;this._defaults.microsecMax=this.microsecMaxOriginal;}}else{this._defaults.minuteMax=this.minuteMaxOriginal;this._defaults.secondMax=this.secondMaxOriginal;this._defaults.millisecMax=this.millisecMaxOriginal;this._defaults.microsecMax=this.microsecMaxOriginal;}}else{this._defaults.hourMax=this.hourMaxOriginal;this._defaults.minuteMax=this.minuteMaxOriginal;this._defaults.secondMax=this.secondMaxOriginal;this._defaults.millisecMax=this.millisecMaxOriginal;this._defaults.microsecMax=this.microsecMaxOriginal;}}\nif(dp_inst.settings.minTime!==null){var tempMinTime=new Date(\"01/01/1970 \"+dp_inst.settings.minTime);if(this.hour<tempMinTime.getHours()){this.hour=this._defaults.hourMin=tempMinTime.getHours();this.minute=this._defaults.minuteMin=tempMinTime.getMinutes();}else if(this.hour===tempMinTime.getHours()&&this.minute<tempMinTime.getMinutes()){this.minute=this._defaults.minuteMin=tempMinTime.getMinutes();}else{if(this._defaults.hourMin<tempMinTime.getHours()){this._defaults.hourMin=tempMinTime.getHours();this._defaults.minuteMin=tempMinTime.getMinutes();}else if(this._defaults.hourMin===tempMinTime.getHours()===this.hour&&this._defaults.minuteMin<tempMinTime.getMinutes()){this._defaults.minuteMin=tempMinTime.getMinutes();}else{this._defaults.minuteMin=0;}}}\nif(dp_inst.settings.maxTime!==null){var tempMaxTime=new Date(\"01/01/1970 \"+dp_inst.settings.maxTime);if(this.hour>tempMaxTime.getHours()){this.hour=this._defaults.hourMax=tempMaxTime.getHours();this.minute=this._defaults.minuteMax=tempMaxTime.getMinutes();}else if(this.hour===tempMaxTime.getHours()&&this.minute>tempMaxTime.getMinutes()){this.minute=this._defaults.minuteMax=tempMaxTime.getMinutes();}else{if(this._defaults.hourMax>tempMaxTime.getHours()){this._defaults.hourMax=tempMaxTime.getHours();this._defaults.minuteMax=tempMaxTime.getMinutes();}else if(this._defaults.hourMax===tempMaxTime.getHours()===this.hour&&this._defaults.minuteMax>tempMaxTime.getMinutes()){this._defaults.minuteMax=tempMaxTime.getMinutes();}else{this._defaults.minuteMax=59;}}}\nif(adjustSliders!==undefined&&adjustSliders===true){var hourMax=parseInt((this._defaults.hourMax-((this._defaults.hourMax-this._defaults.hourMin)%this._defaults.stepHour)),10),minMax=parseInt((this._defaults.minuteMax-((this._defaults.minuteMax-this._defaults.minuteMin)%this._defaults.stepMinute)),10),secMax=parseInt((this._defaults.secondMax-((this._defaults.secondMax-this._defaults.secondMin)%this._defaults.stepSecond)),10),millisecMax=parseInt((this._defaults.millisecMax-((this._defaults.millisecMax-this._defaults.millisecMin)%this._defaults.stepMillisec)),10),microsecMax=parseInt((this._defaults.microsecMax-((this._defaults.microsecMax-this._defaults.microsecMin)%this._defaults.stepMicrosec)),10);if(this.hour_slider){this.control.options(this,this.hour_slider,'hour',{min:this._defaults.hourMin,max:hourMax,step:this._defaults.stepHour});this.control.value(this,this.hour_slider,'hour',this.hour-(this.hour%this._defaults.stepHour));}\nif(this.minute_slider){this.control.options(this,this.minute_slider,'minute',{min:this._defaults.minuteMin,max:minMax,step:this._defaults.stepMinute});this.control.value(this,this.minute_slider,'minute',this.minute-(this.minute%this._defaults.stepMinute));}\nif(this.second_slider){this.control.options(this,this.second_slider,'second',{min:this._defaults.secondMin,max:secMax,step:this._defaults.stepSecond});this.control.value(this,this.second_slider,'second',this.second-(this.second%this._defaults.stepSecond));}\nif(this.millisec_slider){this.control.options(this,this.millisec_slider,'millisec',{min:this._defaults.millisecMin,max:millisecMax,step:this._defaults.stepMillisec});this.control.value(this,this.millisec_slider,'millisec',this.millisec-(this.millisec%this._defaults.stepMillisec));}\nif(this.microsec_slider){this.control.options(this,this.microsec_slider,'microsec',{min:this._defaults.microsecMin,max:microsecMax,step:this._defaults.stepMicrosec});this.control.value(this,this.microsec_slider,'microsec',this.microsec-(this.microsec%this._defaults.stepMicrosec));}}},_onTimeChange:function(){if(!this._defaults.showTimepicker){return;}\nvar hour=(this.hour_slider)?this.control.value(this,this.hour_slider,'hour'):false,minute=(this.minute_slider)?this.control.value(this,this.minute_slider,'minute'):false,second=(this.second_slider)?this.control.value(this,this.second_slider,'second'):false,millisec=(this.millisec_slider)?this.control.value(this,this.millisec_slider,'millisec'):false,microsec=(this.microsec_slider)?this.control.value(this,this.microsec_slider,'microsec'):false,timezone=(this.timezone_select)?this.timezone_select.val():false,o=this._defaults,pickerTimeFormat=o.pickerTimeFormat||o.timeFormat,pickerTimeSuffix=o.pickerTimeSuffix||o.timeSuffix;if(typeof(hour)==='object'){hour=false;}\nif(typeof(minute)==='object'){minute=false;}\nif(typeof(second)==='object'){second=false;}\nif(typeof(millisec)==='object'){millisec=false;}\nif(typeof(microsec)==='object'){microsec=false;}\nif(typeof(timezone)==='object'){timezone=false;}\nif(hour!==false){hour=parseInt(hour,10);}\nif(minute!==false){minute=parseInt(minute,10);}\nif(second!==false){second=parseInt(second,10);}\nif(millisec!==false){millisec=parseInt(millisec,10);}\nif(microsec!==false){microsec=parseInt(microsec,10);}\nif(timezone!==false){timezone=timezone.toString();}\nvar ampm=o[hour<12?'amNames':'pmNames'][0];var hasChanged=(hour!==parseInt(this.hour,10)||minute!==parseInt(this.minute,10)||second!==parseInt(this.second,10)||millisec!==parseInt(this.millisec,10)||microsec!==parseInt(this.microsec,10)||(this.ampm.length>0&&(hour<12)!==($.inArray(this.ampm.toUpperCase(),this.amNames)!==-1))||(this.timezone!==null&&timezone!==this.timezone.toString()));if(hasChanged){if(hour!==false){this.hour=hour;}\nif(minute!==false){this.minute=minute;}\nif(second!==false){this.second=second;}\nif(millisec!==false){this.millisec=millisec;}\nif(microsec!==false){this.microsec=microsec;}\nif(timezone!==false){this.timezone=timezone;}\nif(!this.inst){this.inst=$.datepicker._getInst(this.$input[0]);}\nthis._limitMinMaxDateTime(this.inst,true);}\nif(this.support.ampm){this.ampm=ampm;}\nthis.formattedTime=$.datepicker.formatTime(o.timeFormat,this,o);if(this.$timeObj){if(pickerTimeFormat===o.timeFormat){this.$timeObj.val(this.formattedTime+pickerTimeSuffix);}\nelse{this.$timeObj.val($.datepicker.formatTime(pickerTimeFormat,this,o)+pickerTimeSuffix);}\nif(this.$timeObj[0].setSelectionRange){var sPos=this.$timeObj[0].selectionStart;var ePos=this.$timeObj[0].selectionEnd;this.$timeObj[0].setSelectionRange(sPos,ePos);}}\nthis.timeDefined=true;if(hasChanged){this._updateDateTime();}},_onSelectHandler:function(){var onSelect=this._defaults.onSelect||this.inst.settings.onSelect;var inputEl=this.$input?this.$input[0]:null;if(onSelect&&inputEl){onSelect.apply(inputEl,[this.formattedDateTime,this]);}},_updateDateTime:function(dp_inst){dp_inst=this.inst||dp_inst;var dtTmp=(dp_inst.currentYear>0?new Date(dp_inst.currentYear,dp_inst.currentMonth,dp_inst.currentDay):new Date(dp_inst.selectedYear,dp_inst.selectedMonth,dp_inst.selectedDay)),dt=$.datepicker._daylightSavingAdjust(dtTmp),dateFmt=$.datepicker._get(dp_inst,'dateFormat'),formatCfg=$.datepicker._getFormatConfig(dp_inst),timeAvailable=dt!==null&&this.timeDefined;this.formattedDate=$.datepicker.formatDate(dateFmt,(dt===null?new Date():dt),formatCfg);var formattedDateTime=this.formattedDate;if(dp_inst.lastVal===\"\"){dp_inst.currentYear=dp_inst.selectedYear;dp_inst.currentMonth=dp_inst.selectedMonth;dp_inst.currentDay=dp_inst.selectedDay;}\nif(this._defaults.timeOnly===true&&this._defaults.timeOnlyShowDate===false){formattedDateTime=this.formattedTime;}else if((this._defaults.timeOnly!==true&&(this._defaults.alwaysSetTime||timeAvailable))||(this._defaults.timeOnly===true&&this._defaults.timeOnlyShowDate===true)){formattedDateTime+=this._defaults.separator+this.formattedTime+this._defaults.timeSuffix;}\nthis.formattedDateTime=formattedDateTime;if(!this._defaults.showTimepicker){this.$input.val(this.formattedDate);}else if(this.$altInput&&this._defaults.timeOnly===false&&this._defaults.altFieldTimeOnly===true){this.$altInput.val(this.formattedTime);this.$input.val(this.formattedDate);}else if(this.$altInput){this.$input.val(formattedDateTime);var altFormattedDateTime='',altSeparator=this._defaults.altSeparator!==null?this._defaults.altSeparator:this._defaults.separator,altTimeSuffix=this._defaults.altTimeSuffix!==null?this._defaults.altTimeSuffix:this._defaults.timeSuffix;if(!this._defaults.timeOnly){if(this._defaults.altFormat){altFormattedDateTime=$.datepicker.formatDate(this._defaults.altFormat,(dt===null?new Date():dt),formatCfg);}\nelse{altFormattedDateTime=this.formattedDate;}\nif(altFormattedDateTime){altFormattedDateTime+=altSeparator;}}\nif(this._defaults.altTimeFormat!==null){altFormattedDateTime+=$.datepicker.formatTime(this._defaults.altTimeFormat,this,this._defaults)+altTimeSuffix;}\nelse{altFormattedDateTime+=this.formattedTime+altTimeSuffix;}\nthis.$altInput.val(altFormattedDateTime);}else{this.$input.val(formattedDateTime);}\nthis.$input.trigger(\"change\");},_onFocus:function(){if(!this.$input.val()&&this._defaults.defaultValue){this.$input.val(this._defaults.defaultValue);var inst=$.datepicker._getInst(this.$input.get(0)),tp_inst=$.datepicker._get(inst,'timepicker');if(tp_inst){if(tp_inst._defaults.timeOnly&&(inst.input.val()!==inst.lastVal)){try{$.datepicker._updateDatepicker(inst);}catch(err){$.timepicker.log(err);}}}}},_controls:{slider:{create:function(tp_inst,obj,unit,val,min,max,step){var rtl=tp_inst._defaults.isRTL;return obj.prop('slide',null).slider({orientation:\"horizontal\",value:rtl?val*-1:val,min:rtl?max*-1:min,max:rtl?min*-1:max,step:step,slide:function(event,ui){tp_inst.control.value(tp_inst,$(this),unit,rtl?ui.value*-1:ui.value);tp_inst._onTimeChange();},stop:function(event,ui){tp_inst._onSelectHandler();}});},options:function(tp_inst,obj,unit,opts,val){if(tp_inst._defaults.isRTL){if(typeof(opts)==='string'){if(opts==='min'||opts==='max'){if(val!==undefined){return obj.slider(opts,val*-1);}\nreturn Math.abs(obj.slider(opts));}\nreturn obj.slider(opts);}\nvar min=opts.min,max=opts.max;opts.min=opts.max=null;if(min!==undefined){opts.max=min*-1;}\nif(max!==undefined){opts.min=max*-1;}\nreturn obj.slider(opts);}\nif(typeof(opts)==='string'&&val!==undefined){return obj.slider(opts,val);}\nreturn obj.slider(opts);},value:function(tp_inst,obj,unit,val){if(tp_inst._defaults.isRTL){if(val!==undefined){return obj.slider('value',val*-1);}\nreturn Math.abs(obj.slider('value'));}\nif(val!==undefined){return obj.slider('value',val);}\nreturn obj.slider('value');}},select:{create:function(tp_inst,obj,unit,val,min,max,step){var sel='<select class=\"ui-timepicker-select ui-state-default ui-corner-all\" data-unit=\"'+unit+'\" data-min=\"'+min+'\" data-max=\"'+max+'\" data-step=\"'+step+'\">',format=tp_inst._defaults.pickerTimeFormat||tp_inst._defaults.timeFormat;for(var i=min;i<=max;i+=step){sel+='<option value=\"'+i+'\"'+(i===val?' selected':'')+'>';if(unit==='hour'){sel+=$.datepicker.formatTime($.trim(format.replace(/[^ht ]/ig,'')),{hour:i},tp_inst._defaults);}\nelse if(unit==='millisec'||unit==='microsec'||i>=10){sel+=i;}\nelse{sel+='0'+i.toString();}\nsel+='</option>';}\nsel+='</select>';obj.children('select').remove();$(sel).appendTo(obj).change(function(e){tp_inst._onTimeChange();tp_inst._onSelectHandler();tp_inst._afterInject();});return obj;},options:function(tp_inst,obj,unit,opts,val){var o={},$t=obj.children('select');if(typeof(opts)==='string'){if(val===undefined){return $t.data(opts);}\no[opts]=val;}\nelse{o=opts;}\nreturn tp_inst.control.create(tp_inst,obj,$t.data('unit'),$t.val(),o.min>=0?o.min:$t.data('min'),o.max||$t.data('max'),o.step||$t.data('step'));},value:function(tp_inst,obj,unit,val){var $t=obj.children('select');if(val!==undefined){return $t.val(val);}\nreturn $t.val();}}}});$.fn.extend({timepicker:function(o){o=o||{};var tmp_args=Array.prototype.slice.call(arguments);if(typeof o==='object'){tmp_args[0]=$.extend(o,{timeOnly:true});}\nreturn $(this).each(function(){$.fn.datetimepicker.apply($(this),tmp_args);});},datetimepicker:function(o){o=o||{};var tmp_args=arguments;if(typeof(o)==='string'){if(o==='getDate'||(o==='option'&&tmp_args.length===2&&typeof(tmp_args[1])==='string')){return $.fn.datepicker.apply($(this[0]),tmp_args);}else{return this.each(function(){var $t=$(this);$t.datepicker.apply($t,tmp_args);});}}else{return this.each(function(){var $t=$(this);$t.datepicker($.timepicker._newInst($t,o)._defaults);});}}});$.datepicker.parseDateTime=function(dateFormat,timeFormat,dateTimeString,dateSettings,timeSettings){var parseRes=parseDateTimeInternal(dateFormat,timeFormat,dateTimeString,dateSettings,timeSettings);if(parseRes.timeObj){var t=parseRes.timeObj;parseRes.date.setHours(t.hour,t.minute,t.second,t.millisec);parseRes.date.setMicroseconds(t.microsec);}\nreturn parseRes.date;};$.datepicker.parseTime=function(timeFormat,timeString,options){var o=extendRemove(extendRemove({},$.timepicker._defaults),options||{}),iso8601=(timeFormat.replace(/\\'.*?\\'/g,'').indexOf('Z')!==-1);var strictParse=function(f,s,o){var getPatternAmpm=function(amNames,pmNames){var markers=[];if(amNames){$.merge(markers,amNames);}\nif(pmNames){$.merge(markers,pmNames);}\nmarkers=$.map(markers,function(val){return val.replace(/[.*+?|()\\[\\]{}\\\\]/g,'\\\\$&');});return'('+markers.join('|')+')?';};var getFormatPositions=function(timeFormat){var finds=timeFormat.toLowerCase().match(/(h{1,2}|m{1,2}|s{1,2}|l{1}|c{1}|t{1,2}|z|'.*?')/g),orders={h:-1,m:-1,s:-1,l:-1,c:-1,t:-1,z:-1};if(finds){for(var i=0;i<finds.length;i++){if(orders[finds[i].toString().charAt(0)]===-1){orders[finds[i].toString().charAt(0)]=i+1;}}}\nreturn orders;};var regstr='^'+f.toString().replace(/([hH]{1,2}|mm?|ss?|[tT]{1,2}|[zZ]|[lc]|'.*?')/g,function(match){var ml=match.length;switch(match.charAt(0).toLowerCase()){case'h':return ml===1?'(\\\\d?\\\\d)':'(\\\\d{'+ml+'})';case'm':return ml===1?'(\\\\d?\\\\d)':'(\\\\d{'+ml+'})';case's':return ml===1?'(\\\\d?\\\\d)':'(\\\\d{'+ml+'})';case'l':return'(\\\\d?\\\\d?\\\\d)';case'c':return'(\\\\d?\\\\d?\\\\d)';case'z':return'(z|[-+]\\\\d\\\\d:?\\\\d\\\\d|\\\\S+)?';case't':return getPatternAmpm(o.amNames,o.pmNames);default:return'('+match.replace(/\\'/g,\"\").replace(/(\\.|\\$|\\^|\\\\|\\/|\\(|\\)|\\[|\\]|\\?|\\+|\\*)/g,function(m){return\"\\\\\"+m;})+')?';}}).replace(/\\s/g,'\\\\s?')+\no.timeSuffix+'$',order=getFormatPositions(f),ampm='',treg;treg=s.match(new RegExp(regstr,'i'));var resTime={hour:0,minute:0,second:0,millisec:0,microsec:0};if(treg){if(order.t!==-1){if(treg[order.t]===undefined||treg[order.t].length===0){ampm='';resTime.ampm='';}else{ampm=$.inArray(treg[order.t].toUpperCase(),$.map(o.amNames,function(x,i){return x.toUpperCase();}))!==-1?'AM':'PM';resTime.ampm=o[ampm==='AM'?'amNames':'pmNames'][0];}}\nif(order.h!==-1){if(ampm==='AM'&&treg[order.h]==='12'){resTime.hour=0;}else{if(ampm==='PM'&&treg[order.h]!=='12'){resTime.hour=parseInt(treg[order.h],10)+12;}else{resTime.hour=Number(treg[order.h]);}}}\nif(order.m!==-1){resTime.minute=Number(treg[order.m]);}\nif(order.s!==-1){resTime.second=Number(treg[order.s]);}\nif(order.l!==-1){resTime.millisec=Number(treg[order.l]);}\nif(order.c!==-1){resTime.microsec=Number(treg[order.c]);}\nif(order.z!==-1&&treg[order.z]!==undefined){resTime.timezone=$.timepicker.timezoneOffsetNumber(treg[order.z]);}\nreturn resTime;}\nreturn false;};var looseParse=function(f,s,o){try{var d=new Date('2012-01-01 '+s);if(isNaN(d.getTime())){d=new Date('2012-01-01T'+s);if(isNaN(d.getTime())){d=new Date('01/01/2012 '+s);if(isNaN(d.getTime())){throw\"Unable to parse time with native Date: \"+s;}}}\nreturn{hour:d.getHours(),minute:d.getMinutes(),second:d.getSeconds(),millisec:d.getMilliseconds(),microsec:d.getMicroseconds(),timezone:d.getTimezoneOffset()*-1};}\ncatch(err){try{return strictParse(f,s,o);}\ncatch(err2){$.timepicker.log(\"Unable to parse \\ntimeString: \"+s+\"\\ntimeFormat: \"+f);}}\nreturn false;};if(typeof o.parse===\"function\"){return o.parse(timeFormat,timeString,o);}\nif(o.parse==='loose'){return looseParse(timeFormat,timeString,o);}\nreturn strictParse(timeFormat,timeString,o);};$.datepicker.formatTime=function(format,time,options){options=options||{};options=$.extend({},$.timepicker._defaults,options);time=$.extend({hour:0,minute:0,second:0,millisec:0,microsec:0,timezone:null},time);var tmptime=format,ampmName=options.amNames[0],hour=parseInt(time.hour,10);if(hour>11){ampmName=options.pmNames[0];}\ntmptime=tmptime.replace(/(?:HH?|hh?|mm?|ss?|[tT]{1,2}|[zZ]|[lc]|'.*?')/g,function(match){switch(match){case'HH':return('0'+hour).slice(-2);case'H':return hour;case'hh':return('0'+convert24to12(hour)).slice(-2);case'h':return convert24to12(hour);case'mm':return('0'+time.minute).slice(-2);case'm':return time.minute;case'ss':return('0'+time.second).slice(-2);case's':return time.second;case'l':return('00'+time.millisec).slice(-3);case'c':return('00'+time.microsec).slice(-3);case'z':return $.timepicker.timezoneOffsetString(time.timezone===null?options.timezone:time.timezone,false);case'Z':return $.timepicker.timezoneOffsetString(time.timezone===null?options.timezone:time.timezone,true);case'T':return ampmName.charAt(0).toUpperCase();case'TT':return ampmName.toUpperCase();case't':return ampmName.charAt(0).toLowerCase();case'tt':return ampmName.toLowerCase();default:return match.replace(/'/g,\"\");}});return tmptime;};$.datepicker._base_selectDate=$.datepicker._selectDate;$.datepicker._selectDate=function(id,dateStr){var inst=this._getInst($(id)[0]),tp_inst=this._get(inst,'timepicker'),was_inline;if(tp_inst&&inst.settings.showTimepicker){tp_inst._limitMinMaxDateTime(inst,true);was_inline=inst.inline;inst.inline=inst.stay_open=true;this._base_selectDate(id,dateStr);inst.inline=was_inline;inst.stay_open=false;this._notifyChange(inst);this._updateDatepicker(inst);}else{this._base_selectDate(id,dateStr);}};$.datepicker._base_updateDatepicker=$.datepicker._updateDatepicker;$.datepicker._updateDatepicker=function(inst){var input=inst.input[0];if($.datepicker._curInst&&$.datepicker._curInst!==inst&&$.datepicker._datepickerShowing&&$.datepicker._lastInput!==input){return;}\nif(typeof(inst.stay_open)!=='boolean'||inst.stay_open===false){this._base_updateDatepicker(inst);var tp_inst=this._get(inst,'timepicker');if(tp_inst){tp_inst._addTimePicker(inst);}}};$.datepicker._base_doKeyPress=$.datepicker._doKeyPress;$.datepicker._doKeyPress=function(event){var inst=$.datepicker._getInst(event.target),tp_inst=$.datepicker._get(inst,'timepicker');if(tp_inst){if($.datepicker._get(inst,'constrainInput')){var ampm=tp_inst.support.ampm,tz=tp_inst._defaults.showTimezone!==null?tp_inst._defaults.showTimezone:tp_inst.support.timezone,dateChars=$.datepicker._possibleChars($.datepicker._get(inst,'dateFormat')),datetimeChars=tp_inst._defaults.timeFormat.toString().replace(/[hms]/g,'').replace(/TT/g,ampm?'APM':'').replace(/Tt/g,ampm?'AaPpMm':'').replace(/tT/g,ampm?'AaPpMm':'').replace(/T/g,ampm?'AP':'').replace(/tt/g,ampm?'apm':'').replace(/t/g,ampm?'ap':'')+\" \"+tp_inst._defaults.separator+\ntp_inst._defaults.timeSuffix+\n(tz?tp_inst._defaults.timezoneList.join(''):'')+\n(tp_inst._defaults.amNames.join(''))+(tp_inst._defaults.pmNames.join(''))+\ndateChars,chr=String.fromCharCode(event.charCode===undefined?event.keyCode:event.charCode);return event.ctrlKey||(chr<' '||!dateChars||datetimeChars.indexOf(chr)>-1);}}\nreturn $.datepicker._base_doKeyPress(event);};$.datepicker._base_updateAlternate=$.datepicker._updateAlternate;$.datepicker._updateAlternate=function(inst){var tp_inst=this._get(inst,'timepicker');if(tp_inst){var altField=tp_inst._defaults.altField;if(altField){var altFormat=tp_inst._defaults.altFormat||tp_inst._defaults.dateFormat,date=this._getDate(inst),formatCfg=$.datepicker._getFormatConfig(inst),altFormattedDateTime='',altSeparator=tp_inst._defaults.altSeparator?tp_inst._defaults.altSeparator:tp_inst._defaults.separator,altTimeSuffix=tp_inst._defaults.altTimeSuffix?tp_inst._defaults.altTimeSuffix:tp_inst._defaults.timeSuffix,altTimeFormat=tp_inst._defaults.altTimeFormat!==null?tp_inst._defaults.altTimeFormat:tp_inst._defaults.timeFormat;altFormattedDateTime+=$.datepicker.formatTime(altTimeFormat,tp_inst,tp_inst._defaults)+altTimeSuffix;if(!tp_inst._defaults.timeOnly&&!tp_inst._defaults.altFieldTimeOnly&&date!==null){if(tp_inst._defaults.altFormat){altFormattedDateTime=$.datepicker.formatDate(tp_inst._defaults.altFormat,date,formatCfg)+altSeparator+altFormattedDateTime;}\nelse{altFormattedDateTime=tp_inst.formattedDate+altSeparator+altFormattedDateTime;}}\n$(altField).val(inst.input.val()?altFormattedDateTime:\"\");}}\nelse{$.datepicker._base_updateAlternate(inst);}};$.datepicker._base_doKeyUp=$.datepicker._doKeyUp;$.datepicker._doKeyUp=function(event){var inst=$.datepicker._getInst(event.target),tp_inst=$.datepicker._get(inst,'timepicker');if(tp_inst){if(tp_inst._defaults.timeOnly&&(inst.input.val()!==inst.lastVal)){try{$.datepicker._updateDatepicker(inst);}catch(err){$.timepicker.log(err);}}}\nreturn $.datepicker._base_doKeyUp(event);};$.datepicker._base_gotoToday=$.datepicker._gotoToday;$.datepicker._gotoToday=function(id){var inst=this._getInst($(id)[0]);this._base_gotoToday(id);var tp_inst=this._get(inst,'timepicker');if(!tp_inst){return;}\nvar tzoffset=$.timepicker.timezoneOffsetNumber(tp_inst.timezone);var now=new Date();now.setMinutes(now.getMinutes()+now.getTimezoneOffset()+parseInt(tzoffset,10));this._setTime(inst,now);this._setDate(inst,now);tp_inst._onSelectHandler();};$.datepicker._disableTimepickerDatepicker=function(target){var inst=this._getInst(target);if(!inst){return;}\nvar tp_inst=this._get(inst,'timepicker');$(target).datepicker('getDate');if(tp_inst){inst.settings.showTimepicker=false;tp_inst._defaults.showTimepicker=false;tp_inst._updateDateTime(inst);}};$.datepicker._enableTimepickerDatepicker=function(target){var inst=this._getInst(target);if(!inst){return;}\nvar tp_inst=this._get(inst,'timepicker');$(target).datepicker('getDate');if(tp_inst){inst.settings.showTimepicker=true;tp_inst._defaults.showTimepicker=true;tp_inst._addTimePicker(inst);tp_inst._updateDateTime(inst);}};$.datepicker._setTime=function(inst,date){var tp_inst=this._get(inst,'timepicker');if(tp_inst){var defaults=tp_inst._defaults;tp_inst.hour=date?date.getHours():defaults.hour;tp_inst.minute=date?date.getMinutes():defaults.minute;tp_inst.second=date?date.getSeconds():defaults.second;tp_inst.millisec=date?date.getMilliseconds():defaults.millisec;tp_inst.microsec=date?date.getMicroseconds():defaults.microsec;tp_inst._limitMinMaxDateTime(inst,true);tp_inst._onTimeChange();tp_inst._updateDateTime(inst);}};$.datepicker._setTimeDatepicker=function(target,date,withDate){var inst=this._getInst(target);if(!inst){return;}\nvar tp_inst=this._get(inst,'timepicker');if(tp_inst){this._setDateFromField(inst);var tp_date;if(date){if(typeof date===\"string\"){tp_inst._parseTime(date,withDate);tp_date=new Date();tp_date.setHours(tp_inst.hour,tp_inst.minute,tp_inst.second,tp_inst.millisec);tp_date.setMicroseconds(tp_inst.microsec);}else{tp_date=new Date(date.getTime());tp_date.setMicroseconds(date.getMicroseconds());}\nif(tp_date.toString()==='Invalid Date'){tp_date=undefined;}\nthis._setTime(inst,tp_date);}}};$.datepicker._base_setDateDatepicker=$.datepicker._setDateDatepicker;$.datepicker._setDateDatepicker=function(target,_date){var inst=this._getInst(target);var date=_date;if(!inst){return;}\nif(typeof(_date)==='string'){date=new Date(_date);if(!date.getTime()){this._base_setDateDatepicker.apply(this,arguments);date=$(target).datepicker('getDate');}}\nvar tp_inst=this._get(inst,'timepicker');var tp_date;if(date instanceof Date){tp_date=new Date(date.getTime());tp_date.setMicroseconds(date.getMicroseconds());}else{tp_date=date;}\nif(tp_inst&&tp_date){if(!tp_inst.support.timezone&&tp_inst._defaults.timezone===null){tp_inst.timezone=tp_date.getTimezoneOffset()*-1;}\ndate=$.timepicker.timezoneAdjust(date,$.timepicker.timezoneOffsetString(-date.getTimezoneOffset()),tp_inst.timezone);tp_date=$.timepicker.timezoneAdjust(tp_date,$.timepicker.timezoneOffsetString(-tp_date.getTimezoneOffset()),tp_inst.timezone);}\nthis._updateDatepicker(inst);this._base_setDateDatepicker.apply(this,arguments);this._setTimeDatepicker(target,tp_date,true);};$.datepicker._base_getDateDatepicker=$.datepicker._getDateDatepicker;$.datepicker._getDateDatepicker=function(target,noDefault){var inst=this._getInst(target);if(!inst){return;}\nvar tp_inst=this._get(inst,'timepicker');if(tp_inst){if(inst.lastVal===undefined){this._setDateFromField(inst,noDefault);}\nvar date=this._getDate(inst);var currDT=null;if(tp_inst.$altInput&&tp_inst._defaults.altFieldTimeOnly){currDT=tp_inst.$input.val()+' '+tp_inst.$altInput.val();}\nelse if(tp_inst.$input.get(0).tagName!=='INPUT'&&tp_inst.$altInput){currDT=tp_inst.$altInput.val();}\nelse{currDT=tp_inst.$input.val();}\nif(date&&tp_inst._parseTime(currDT,!inst.settings.timeOnly)){date.setHours(tp_inst.hour,tp_inst.minute,tp_inst.second,tp_inst.millisec);date.setMicroseconds(tp_inst.microsec);if(tp_inst.timezone!=null){if(!tp_inst.support.timezone&&tp_inst._defaults.timezone===null){tp_inst.timezone=date.getTimezoneOffset()*-1;}\ndate=$.timepicker.timezoneAdjust(date,tp_inst.timezone,$.timepicker.timezoneOffsetString(-date.getTimezoneOffset()));}}\nreturn date;}\nreturn this._base_getDateDatepicker(target,noDefault);};$.datepicker._base_parseDate=$.datepicker.parseDate;$.datepicker.parseDate=function(format,value,settings){var date;try{date=this._base_parseDate(format,value,settings);}catch(err){if(err.indexOf(\":\")>=0){date=this._base_parseDate(format,value.substring(0,value.length-(err.length-err.indexOf(':')-2)),settings);$.timepicker.log(\"Error parsing the date string: \"+err+\"\\ndate string = \"+value+\"\\ndate format = \"+format);}else{throw err;}}\nreturn date;};$.datepicker._base_formatDate=$.datepicker._formatDate;$.datepicker._formatDate=function(inst,day,month,year){var tp_inst=this._get(inst,'timepicker');if(tp_inst){tp_inst._updateDateTime(inst);return tp_inst.$input.val();}\nreturn this._base_formatDate(inst);};$.datepicker._base_optionDatepicker=$.datepicker._optionDatepicker;$.datepicker._optionDatepicker=function(target,name,value){var inst=this._getInst(target),name_clone;if(!inst){return null;}\nvar tp_inst=this._get(inst,'timepicker');if(tp_inst){var min=null,max=null,onselect=null,overrides=tp_inst._defaults.evnts,fns={},prop,ret,oldVal,$target;if(typeof name==='string'){if(name==='minDate'||name==='minDateTime'){min=value;}else if(name==='maxDate'||name==='maxDateTime'){max=value;}else if(name==='onSelect'){onselect=value;}else if(overrides.hasOwnProperty(name)){if(typeof(value)==='undefined'){return overrides[name];}\nfns[name]=value;name_clone={};}}else if(typeof name==='object'){if(name.minDate){min=name.minDate;}else if(name.minDateTime){min=name.minDateTime;}else if(name.maxDate){max=name.maxDate;}else if(name.maxDateTime){max=name.maxDateTime;}\nfor(prop in overrides){if(overrides.hasOwnProperty(prop)&&name[prop]){fns[prop]=name[prop];}}}\nfor(prop in fns){if(fns.hasOwnProperty(prop)){overrides[prop]=fns[prop];if(!name_clone){name_clone=$.extend({},name);}\ndelete name_clone[prop];}}\nif(name_clone&&isEmptyObject(name_clone)){return;}\nif(min){if(min===0){min=new Date();}else{min=new Date(min);}\ntp_inst._defaults.minDate=min;tp_inst._defaults.minDateTime=min;}else if(max){if(max===0){max=new Date();}else{max=new Date(max);}\ntp_inst._defaults.maxDate=max;tp_inst._defaults.maxDateTime=max;}else if(onselect){tp_inst._defaults.onSelect=onselect;}\nif(min||max){$target=$(target);oldVal=$target.datetimepicker('getDate');ret=this._base_optionDatepicker.call($.datepicker,target,name_clone||name,value);$target.datetimepicker('setDate',oldVal);return ret;}}\nif(value===undefined){return this._base_optionDatepicker.call($.datepicker,target,name);}\nreturn this._base_optionDatepicker.call($.datepicker,target,name_clone||name,value);};var isEmptyObject=function(obj){var prop;for(prop in obj){if(obj.hasOwnProperty(prop)){return false;}}\nreturn true;};var extendRemove=function(target,props){$.extend(target,props);for(var name in props){if(props[name]===null||props[name]===undefined){target[name]=props[name];}}\nreturn target;};var detectSupport=function(timeFormat){var tf=timeFormat.replace(/'.*?'/g,'').toLowerCase(),isIn=function(f,t){return f.indexOf(t)!==-1?true:false;};return{hour:isIn(tf,'h'),minute:isIn(tf,'m'),second:isIn(tf,'s'),millisec:isIn(tf,'l'),microsec:isIn(tf,'c'),timezone:isIn(tf,'z'),ampm:isIn(tf,'t')&&isIn(timeFormat,'h'),iso8601:isIn(timeFormat,'Z')};};var convert24to12=function(hour){hour%=12;if(hour===0){hour=12;}\nreturn String(hour);};var computeEffectiveSetting=function(settings,property){return settings&&settings[property]?settings[property]:$.timepicker._defaults[property];};var splitDateTime=function(dateTimeString,timeSettings){var separator=computeEffectiveSetting(timeSettings,'separator'),format=computeEffectiveSetting(timeSettings,'timeFormat'),timeParts=format.split(separator),timePartsLen=timeParts.length,allParts=dateTimeString.split(separator),allPartsLen=allParts.length;if(allPartsLen>1){return{dateString:allParts.splice(0,allPartsLen-timePartsLen).join(separator),timeString:allParts.splice(0,timePartsLen).join(separator)};}\nreturn{dateString:dateTimeString,timeString:''};};var parseDateTimeInternal=function(dateFormat,timeFormat,dateTimeString,dateSettings,timeSettings){var date,parts,parsedTime;parts=splitDateTime(dateTimeString,timeSettings);date=$.datepicker._base_parseDate(dateFormat,parts.dateString,dateSettings);if(parts.timeString===''){return{date:date};}\nparsedTime=$.datepicker.parseTime(timeFormat,parts.timeString,timeSettings);if(!parsedTime){throw'Wrong time format';}\nreturn{date:date,timeObj:parsedTime};};var selectLocalTimezone=function(tp_inst,date){if(tp_inst&&tp_inst.timezone_select){var now=date||new Date();tp_inst.timezone_select.val(-now.getTimezoneOffset());}};$.timepicker=new Timepicker();$.timepicker.timezoneOffsetString=function(tzMinutes,iso8601){if(isNaN(tzMinutes)||tzMinutes>840||tzMinutes<-720){return tzMinutes;}\nvar off=tzMinutes,minutes=off%60,hours=(off-minutes)/ 60,iso=iso8601?':':'',tz=(off>=0?'+':'-')+('0'+Math.abs(hours)).slice(-2)+iso+('0'+Math.abs(minutes)).slice(-2);if(tz==='+00:00'){return'Z';}\nreturn tz;};$.timepicker.timezoneOffsetNumber=function(tzString){var normalized=tzString.toString().replace(':','');if(normalized.toUpperCase()==='Z'){return 0;}\nif(!/^(\\-|\\+)\\d{4}$/.test(normalized)){return parseInt(tzString,10);}\nreturn((normalized.substr(0,1)==='-'?-1:1)*((parseInt(normalized.substr(1,2),10)*60)+\nparseInt(normalized.substr(3,2),10)));};$.timepicker.timezoneAdjust=function(date,fromTimezone,toTimezone){var fromTz=$.timepicker.timezoneOffsetNumber(fromTimezone);var toTz=$.timepicker.timezoneOffsetNumber(toTimezone);if(!isNaN(toTz)){date.setMinutes(date.getMinutes()+(-fromTz)-(-toTz));}\nreturn date;};$.timepicker.timeRange=function(startTime,endTime,options){return $.timepicker.handleRange('timepicker',startTime,endTime,options);};$.timepicker.datetimeRange=function(startTime,endTime,options){$.timepicker.handleRange('datetimepicker',startTime,endTime,options);};$.timepicker.dateRange=function(startTime,endTime,options){$.timepicker.handleRange('datepicker',startTime,endTime,options);};$.timepicker.handleRange=function(method,startTime,endTime,options){options=$.extend({},{minInterval:0,maxInterval:0,start:{},end:{}},options);var timeOnly=false;if(method==='timepicker'){timeOnly=true;method='datetimepicker';}\nfunction checkDates(changed,other){var startdt=startTime[method]('getDate'),enddt=endTime[method]('getDate'),changeddt=changed[method]('getDate');if(startdt!==null){var minDate=new Date(startdt.getTime()),maxDate=new Date(startdt.getTime());minDate.setMilliseconds(minDate.getMilliseconds()+options.minInterval);maxDate.setMilliseconds(maxDate.getMilliseconds()+options.maxInterval);if(options.minInterval>0&&minDate>enddt){endTime[method]('setDate',minDate);}\nelse if(options.maxInterval>0&&maxDate<enddt){endTime[method]('setDate',maxDate);}\nelse if(startdt>enddt){other[method]('setDate',changeddt);}}}\nfunction selected(changed,other,option){if(!changed.val()){return;}\nvar date=changed[method].call(changed,'getDate');if(date!==null&&options.minInterval>0){if(option==='minDate'){date.setMilliseconds(date.getMilliseconds()+options.minInterval);}\nif(option==='maxDate'){date.setMilliseconds(date.getMilliseconds()-options.minInterval);}}\nif(date.getTime){other[method].call(other,'option',option,date);}}\n$.fn[method].call(startTime,$.extend({timeOnly:timeOnly,onClose:function(dateText,inst){checkDates($(this),endTime);},onSelect:function(selectedDateTime){selected($(this),endTime,'minDate');}},options,options.start));$.fn[method].call(endTime,$.extend({timeOnly:timeOnly,onClose:function(dateText,inst){checkDates($(this),startTime);},onSelect:function(selectedDateTime){selected($(this),startTime,'maxDate');}},options,options.end));checkDates(startTime,endTime);selected(startTime,endTime,'minDate');selected(endTime,startTime,'maxDate');return $([startTime.get(0),endTime.get(0)]);};$.timepicker.log=function(){if(window.console&&window.console.log&&window.console.log.apply){window.console.log.apply(window.console,Array.prototype.slice.call(arguments));}};$.timepicker._util={_extendRemove:extendRemove,_isEmptyObject:isEmptyObject,_convert24to12:convert24to12,_detectSupport:detectSupport,_selectLocalTimezone:selectLocalTimezone,_computeEffectiveSetting:computeEffectiveSetting,_splitDateTime:splitDateTime,_parseDateTimeInternal:parseDateTimeInternal};if(!Date.prototype.getMicroseconds){Date.prototype.microseconds=0;Date.prototype.getMicroseconds=function(){return this.microseconds;};Date.prototype.setMicroseconds=function(m){this.setMilliseconds(this.getMilliseconds()+Math.floor(m / 1000));this.microseconds=m%1000;return this;};}\n$.timepicker.version=\"1.6.3\";}));","jquery/timepicker.min.js":"/*! jQuery Timepicker Addon - v1.6.3 - 2016-04-20\n* http://trentrichardson.com/examples/timepicker\n* Copyright (c) 2016 Trent Richardson; Licensed MIT */\n(function(factory){if(typeof define==='function'&&define.amd){define(['jquery','jquery-ui-modules/datepicker','jquery-ui-modules/slider'],factory);}else{factory(jQuery);}}(function($){$.ui.timepicker=$.ui.timepicker||{};if($.ui.timepicker.version){return;}\n$.extend($.ui,{timepicker:{version:\"1.6.3\"}});var Timepicker=function(){this.regional=[];this.regional['']={currentText:'Now',closeText:'Done',amNames:['AM','A'],pmNames:['PM','P'],timeFormat:'HH:mm',timeSuffix:'',timeOnlyTitle:'Choose Time',timeText:'Time',hourText:'Hour',minuteText:'Minute',secondText:'Second',millisecText:'Millisecond',microsecText:'Microsecond',timezoneText:'Time Zone',isRTL:false};this._defaults={showButtonPanel:true,timeOnly:false,timeOnlyShowDate:false,showHour:null,showMinute:null,showSecond:null,showMillisec:null,showMicrosec:null,showTimezone:null,showTime:true,stepHour:1,stepMinute:1,stepSecond:1,stepMillisec:1,stepMicrosec:1,hour:0,minute:0,second:0,millisec:0,microsec:0,timezone:null,hourMin:0,minuteMin:0,secondMin:0,millisecMin:0,microsecMin:0,hourMax:23,minuteMax:59,secondMax:59,millisecMax:999,microsecMax:999,minDateTime:null,maxDateTime:null,maxTime:null,minTime:null,onSelect:null,hourGrid:0,minuteGrid:0,secondGrid:0,millisecGrid:0,microsecGrid:0,alwaysSetTime:true,separator:' ',altFieldTimeOnly:true,altTimeFormat:null,altSeparator:null,altTimeSuffix:null,altRedirectFocus:true,pickerTimeFormat:null,pickerTimeSuffix:null,showTimepicker:true,timezoneList:null,addSliderAccess:false,sliderAccessArgs:null,controlType:'slider',oneLine:false,defaultValue:null,parse:'strict',afterInject:null};$.extend(this._defaults,this.regional['']);};$.extend(Timepicker.prototype,{$input:null,$altInput:null,$timeObj:null,inst:null,hour_slider:null,minute_slider:null,second_slider:null,millisec_slider:null,microsec_slider:null,timezone_select:null,maxTime:null,minTime:null,hour:0,minute:0,second:0,millisec:0,microsec:0,timezone:null,hourMinOriginal:null,minuteMinOriginal:null,secondMinOriginal:null,millisecMinOriginal:null,microsecMinOriginal:null,hourMaxOriginal:null,minuteMaxOriginal:null,secondMaxOriginal:null,millisecMaxOriginal:null,microsecMaxOriginal:null,ampm:'',formattedDate:'',formattedTime:'',formattedDateTime:'',timezoneList:null,units:['hour','minute','second','millisec','microsec'],support:{},control:null,setDefaults:function(settings){extendRemove(this._defaults,settings||{});return this;},_newInst:function($input,opts){var tp_inst=new Timepicker(),inlineSettings={},fns={},overrides,i;for(var attrName in this._defaults){if(this._defaults.hasOwnProperty(attrName)){var attrValue=$input.attr('time:'+attrName);if(attrValue){try{inlineSettings[attrName]=eval(attrValue);}catch(err){inlineSettings[attrName]=attrValue;}}}}\noverrides={beforeShow:function(input,dp_inst){if($.isFunction(tp_inst._defaults.evnts.beforeShow)){return tp_inst._defaults.evnts.beforeShow.call($input[0],input,dp_inst,tp_inst);}},onChangeMonthYear:function(year,month,dp_inst){if($.isFunction(tp_inst._defaults.evnts.onChangeMonthYear)){tp_inst._defaults.evnts.onChangeMonthYear.call($input[0],year,month,dp_inst,tp_inst);}},onClose:function(dateText,dp_inst){if(tp_inst.timeDefined===true&&$input.val()!==''){tp_inst._updateDateTime(dp_inst);}\nif($.isFunction(tp_inst._defaults.evnts.onClose)){tp_inst._defaults.evnts.onClose.call($input[0],dateText,dp_inst,tp_inst);}}};for(i in overrides){if(overrides.hasOwnProperty(i)){fns[i]=opts[i]||this._defaults[i]||null;}}\ntp_inst._defaults=$.extend({},this._defaults,inlineSettings,opts,overrides,{evnts:fns,timepicker:tp_inst});tp_inst.amNames=$.map(tp_inst._defaults.amNames,function(val){return val.toUpperCase();});tp_inst.pmNames=$.map(tp_inst._defaults.pmNames,function(val){return val.toUpperCase();});tp_inst.support=detectSupport(tp_inst._defaults.timeFormat+\n(tp_inst._defaults.pickerTimeFormat?tp_inst._defaults.pickerTimeFormat:'')+\n(tp_inst._defaults.altTimeFormat?tp_inst._defaults.altTimeFormat:''));if(typeof(tp_inst._defaults.controlType)==='string'){if(tp_inst._defaults.controlType==='slider'&&typeof($.ui.slider)==='undefined'){tp_inst._defaults.controlType='select';}\ntp_inst.control=tp_inst._controls[tp_inst._defaults.controlType];}\nelse{tp_inst.control=tp_inst._defaults.controlType;}\nvar timezoneList=[-720,-660,-600,-570,-540,-480,-420,-360,-300,-270,-240,-210,-180,-120,-60,0,60,120,180,210,240,270,300,330,345,360,390,420,480,525,540,570,600,630,660,690,720,765,780,840];if(tp_inst._defaults.timezoneList!==null){timezoneList=tp_inst._defaults.timezoneList;}\nvar tzl=timezoneList.length,tzi=0,tzv=null;if(tzl>0&&typeof timezoneList[0]!=='object'){for(;tzi<tzl;tzi++){tzv=timezoneList[tzi];timezoneList[tzi]={value:tzv,label:$.timepicker.timezoneOffsetString(tzv,tp_inst.support.iso8601)};}}\ntp_inst._defaults.timezoneList=timezoneList;tp_inst.timezone=tp_inst._defaults.timezone!==null?$.timepicker.timezoneOffsetNumber(tp_inst._defaults.timezone):((new Date()).getTimezoneOffset()*-1);tp_inst.hour=tp_inst._defaults.hour<tp_inst._defaults.hourMin?tp_inst._defaults.hourMin:tp_inst._defaults.hour>tp_inst._defaults.hourMax?tp_inst._defaults.hourMax:tp_inst._defaults.hour;tp_inst.minute=tp_inst._defaults.minute<tp_inst._defaults.minuteMin?tp_inst._defaults.minuteMin:tp_inst._defaults.minute>tp_inst._defaults.minuteMax?tp_inst._defaults.minuteMax:tp_inst._defaults.minute;tp_inst.second=tp_inst._defaults.second<tp_inst._defaults.secondMin?tp_inst._defaults.secondMin:tp_inst._defaults.second>tp_inst._defaults.secondMax?tp_inst._defaults.secondMax:tp_inst._defaults.second;tp_inst.millisec=tp_inst._defaults.millisec<tp_inst._defaults.millisecMin?tp_inst._defaults.millisecMin:tp_inst._defaults.millisec>tp_inst._defaults.millisecMax?tp_inst._defaults.millisecMax:tp_inst._defaults.millisec;tp_inst.microsec=tp_inst._defaults.microsec<tp_inst._defaults.microsecMin?tp_inst._defaults.microsecMin:tp_inst._defaults.microsec>tp_inst._defaults.microsecMax?tp_inst._defaults.microsecMax:tp_inst._defaults.microsec;tp_inst.ampm='';tp_inst.$input=$input;if(tp_inst._defaults.altField){tp_inst.$altInput=$(tp_inst._defaults.altField);if(tp_inst._defaults.altRedirectFocus===true){tp_inst.$altInput.css({cursor:'pointer'}).focus(function(){$input.trigger(\"focus\");});}}\nif(tp_inst._defaults.minDate===0||tp_inst._defaults.minDateTime===0){tp_inst._defaults.minDate=new Date();}\nif(tp_inst._defaults.maxDate===0||tp_inst._defaults.maxDateTime===0){tp_inst._defaults.maxDate=new Date();}\nif(tp_inst._defaults.minDate!==undefined&&tp_inst._defaults.minDate instanceof Date){tp_inst._defaults.minDateTime=new Date(tp_inst._defaults.minDate.getTime());}\nif(tp_inst._defaults.minDateTime!==undefined&&tp_inst._defaults.minDateTime instanceof Date){tp_inst._defaults.minDate=new Date(tp_inst._defaults.minDateTime.getTime());}\nif(tp_inst._defaults.maxDate!==undefined&&tp_inst._defaults.maxDate instanceof Date){tp_inst._defaults.maxDateTime=new Date(tp_inst._defaults.maxDate.getTime());}\nif(tp_inst._defaults.maxDateTime!==undefined&&tp_inst._defaults.maxDateTime instanceof Date){tp_inst._defaults.maxDate=new Date(tp_inst._defaults.maxDateTime.getTime());}\ntp_inst.$input.bind('focus',function(){tp_inst._onFocus();});return tp_inst;},_addTimePicker:function(dp_inst){var currDT=$.trim((this.$altInput&&this._defaults.altFieldTimeOnly)?this.$input.val()+' '+this.$altInput.val():this.$input.val());this.timeDefined=this._parseTime(currDT);this._limitMinMaxDateTime(dp_inst,false);this._injectTimePicker();this._afterInject();},_parseTime:function(timeString,withDate){if(!this.inst){this.inst=$.datepicker._getInst(this.$input[0]);}\nif(withDate||!this._defaults.timeOnly){var dp_dateFormat=$.datepicker._get(this.inst,'dateFormat');try{var parseRes=parseDateTimeInternal(dp_dateFormat,this._defaults.timeFormat,timeString,$.datepicker._getFormatConfig(this.inst),this._defaults);if(!parseRes.timeObj){return false;}\n$.extend(this,parseRes.timeObj);}catch(err){$.timepicker.log(\"Error parsing the date/time string: \"+err+\"\\ndate/time string = \"+timeString+\"\\ntimeFormat = \"+this._defaults.timeFormat+\"\\ndateFormat = \"+dp_dateFormat);return false;}\nreturn true;}else{var timeObj=$.datepicker.parseTime(this._defaults.timeFormat,timeString,this._defaults);if(!timeObj){return false;}\n$.extend(this,timeObj);return true;}},_afterInject:function(){var o=this.inst.settings;if($.isFunction(o.afterInject)){o.afterInject.call(this);}},_injectTimePicker:function(){var $dp=this.inst.dpDiv,o=this.inst.settings,tp_inst=this,litem='',uitem='',show=null,max={},gridSize={},size=null,i=0,l=0;if($dp.find(\"div.ui-timepicker-div\").length===0&&o.showTimepicker){var noDisplay=' ui_tpicker_unit_hide',html='<div class=\"ui-timepicker-div'+(o.isRTL?' ui-timepicker-rtl':'')+(o.oneLine&&o.controlType==='select'?' ui-timepicker-oneLine':'')+'\"><dl>'+'<dt class=\"ui_tpicker_time_label'+((o.showTime)?'':noDisplay)+'\">'+o.timeText+'</dt>'+'<dd class=\"ui_tpicker_time '+((o.showTime)?'':noDisplay)+'\"><input class=\"ui_tpicker_time_input\" '+(o.timeInput?'':'disabled')+'/></dd>';for(i=0,l=this.units.length;i<l;i++){litem=this.units[i];uitem=litem.substr(0,1).toUpperCase()+litem.substr(1);show=o['show'+uitem]!==null?o['show'+uitem]:this.support[litem];max[litem]=parseInt((o[litem+'Max']-((o[litem+'Max']-o[litem+'Min'])%o['step'+uitem])),10);gridSize[litem]=0;html+='<dt class=\"ui_tpicker_'+litem+'_label'+(show?'':noDisplay)+'\">'+o[litem+'Text']+'</dt>'+'<dd class=\"ui_tpicker_'+litem+(show?'':noDisplay)+'\"><div class=\"ui_tpicker_'+litem+'_slider'+(show?'':noDisplay)+'\"></div>';if(show&&o[litem+'Grid']>0){html+='<div style=\"padding-left: 1px\"><table class=\"ui-tpicker-grid-label\"><tr>';if(litem==='hour'){for(var h=o[litem+'Min'];h<=max[litem];h+=parseInt(o[litem+'Grid'],10)){gridSize[litem]++;var tmph=$.datepicker.formatTime(this.support.ampm?'hht':'HH',{hour:h},o);html+='<td data-for=\"'+litem+'\">'+tmph+'</td>';}}\nelse{for(var m=o[litem+'Min'];m<=max[litem];m+=parseInt(o[litem+'Grid'],10)){gridSize[litem]++;html+='<td data-for=\"'+litem+'\">'+((m<10)?'0':'')+m+'</td>';}}\nhtml+='</tr></table></div>';}\nhtml+='</dd>';}\nvar showTz=o.showTimezone!==null?o.showTimezone:this.support.timezone;html+='<dt class=\"ui_tpicker_timezone_label'+(showTz?'':noDisplay)+'\">'+o.timezoneText+'</dt>';html+='<dd class=\"ui_tpicker_timezone'+(showTz?'':noDisplay)+'\"></dd>';html+='</dl></div>';var $tp=$(html);if(o.timeOnly===true){$tp.prepend('<div class=\"ui-widget-header ui-helper-clearfix ui-corner-all\">'+'<div class=\"ui-datepicker-title\">'+o.timeOnlyTitle+'</div>'+'</div>');$dp.find('.ui-datepicker-header, .ui-datepicker-calendar').hide();}\nfor(i=0,l=tp_inst.units.length;i<l;i++){litem=tp_inst.units[i];uitem=litem.substr(0,1).toUpperCase()+litem.substr(1);show=o['show'+uitem]!==null?o['show'+uitem]:this.support[litem];tp_inst[litem+'_slider']=tp_inst.control.create(tp_inst,$tp.find('.ui_tpicker_'+litem+'_slider'),litem,tp_inst[litem],o[litem+'Min'],max[litem],o['step'+uitem]);if(show&&o[litem+'Grid']>0){size=100*gridSize[litem]*o[litem+'Grid']/(max[litem]-o[litem+'Min']);$tp.find('.ui_tpicker_'+litem+' table').css({width:size+\"%\",marginLeft:o.isRTL?'0':((size /(-2*gridSize[litem]))+\"%\"),marginRight:o.isRTL?((size /(-2*gridSize[litem]))+\"%\"):'0',borderCollapse:'collapse'}).find(\"td\").click(function(e){var $t=$(this),h=$t.html(),n=parseInt(h.replace(/[^0-9]/g),10),ap=h.replace(/[^apm]/ig),f=$t.data('for');if(f==='hour'){if(ap.indexOf('p')!==-1&&n<12){n+=12;}\nelse{if(ap.indexOf('a')!==-1&&n===12){n=0;}}}\ntp_inst.control.value(tp_inst,tp_inst[f+'_slider'],litem,n);tp_inst._onTimeChange();tp_inst._onSelectHandler();}).css({cursor:'pointer',width:(100 / gridSize[litem])+'%',textAlign:'center',overflow:'hidden'});}}\nthis.timezone_select=$tp.find('.ui_tpicker_timezone').append('<select></select>').find(\"select\");$.fn.append.apply(this.timezone_select,$.map(o.timezoneList,function(val,idx){return $(\"<option />\").val(typeof val===\"object\"?val.value:val).text(typeof val===\"object\"?val.label:val);}));if(typeof(this.timezone)!==\"undefined\"&&this.timezone!==null&&this.timezone!==\"\"){var local_timezone=(new Date(this.inst.selectedYear,this.inst.selectedMonth,this.inst.selectedDay,12)).getTimezoneOffset()*-1;if(local_timezone===this.timezone){selectLocalTimezone(tp_inst);}else{this.timezone_select.val(this.timezone);}}else{if(typeof(this.hour)!==\"undefined\"&&this.hour!==null&&this.hour!==\"\"){this.timezone_select.val(o.timezone);}else{selectLocalTimezone(tp_inst);}}\nthis.timezone_select.change(function(){tp_inst._onTimeChange();tp_inst._onSelectHandler();tp_inst._afterInject();});var $buttonPanel=$dp.find('.ui-datepicker-buttonpane');if($buttonPanel.length){$buttonPanel.before($tp);}else{$dp.append($tp);}\nthis.$timeObj=$tp.find('.ui_tpicker_time_input');this.$timeObj.change(function(){var timeFormat=tp_inst.inst.settings.timeFormat;var parsedTime=$.datepicker.parseTime(timeFormat,this.value);var update=new Date();if(parsedTime){update.setHours(parsedTime.hour);update.setMinutes(parsedTime.minute);update.setSeconds(parsedTime.second);$.datepicker._setTime(tp_inst.inst,update);}else{this.value=tp_inst.formattedTime;this.blur();}});if(this.inst!==null){var timeDefined=this.timeDefined;this._onTimeChange();this.timeDefined=timeDefined;}\nif(this._defaults.addSliderAccess){var sliderAccessArgs=this._defaults.sliderAccessArgs,rtl=this._defaults.isRTL;sliderAccessArgs.isRTL=rtl;setTimeout(function(){if($tp.find('.ui-slider-access').length===0){$tp.find('.ui-slider:visible').sliderAccess(sliderAccessArgs);var sliderAccessWidth=$tp.find('.ui-slider-access:eq(0)').outerWidth(true);if(sliderAccessWidth){$tp.find('table:visible').each(function(){var $g=$(this),oldWidth=$g.outerWidth(),oldMarginLeft=$g.css(rtl?'marginRight':'marginLeft').toString().replace('%',''),newWidth=oldWidth-sliderAccessWidth,newMarginLeft=((oldMarginLeft*newWidth)/ oldWidth)+'%',css={width:newWidth,marginRight:0,marginLeft:0};css[rtl?'marginRight':'marginLeft']=newMarginLeft;$g.css(css);});}}},10);}\ntp_inst._limitMinMaxDateTime(this.inst,true);}},_limitMinMaxDateTime:function(dp_inst,adjustSliders){var o=this._defaults,dp_date=new Date(dp_inst.selectedYear,dp_inst.selectedMonth,dp_inst.selectedDay);if(!this._defaults.showTimepicker){return;}\nif($.datepicker._get(dp_inst,'minDateTime')!==null&&$.datepicker._get(dp_inst,'minDateTime')!==undefined&&dp_date){var minDateTime=$.datepicker._get(dp_inst,'minDateTime'),minDateTimeDate=new Date(minDateTime.getFullYear(),minDateTime.getMonth(),minDateTime.getDate(),0,0,0,0);if(this.hourMinOriginal===null||this.minuteMinOriginal===null||this.secondMinOriginal===null||this.millisecMinOriginal===null||this.microsecMinOriginal===null){this.hourMinOriginal=o.hourMin;this.minuteMinOriginal=o.minuteMin;this.secondMinOriginal=o.secondMin;this.millisecMinOriginal=o.millisecMin;this.microsecMinOriginal=o.microsecMin;}\nif(dp_inst.settings.timeOnly||minDateTimeDate.getTime()===dp_date.getTime()){this._defaults.hourMin=minDateTime.getHours();if(this.hour<=this._defaults.hourMin){this.hour=this._defaults.hourMin;this._defaults.minuteMin=minDateTime.getMinutes();if(this.minute<=this._defaults.minuteMin){this.minute=this._defaults.minuteMin;this._defaults.secondMin=minDateTime.getSeconds();if(this.second<=this._defaults.secondMin){this.second=this._defaults.secondMin;this._defaults.millisecMin=minDateTime.getMilliseconds();if(this.millisec<=this._defaults.millisecMin){this.millisec=this._defaults.millisecMin;this._defaults.microsecMin=minDateTime.getMicroseconds();}else{if(this.microsec<this._defaults.microsecMin){this.microsec=this._defaults.microsecMin;}\nthis._defaults.microsecMin=this.microsecMinOriginal;}}else{this._defaults.millisecMin=this.millisecMinOriginal;this._defaults.microsecMin=this.microsecMinOriginal;}}else{this._defaults.secondMin=this.secondMinOriginal;this._defaults.millisecMin=this.millisecMinOriginal;this._defaults.microsecMin=this.microsecMinOriginal;}}else{this._defaults.minuteMin=this.minuteMinOriginal;this._defaults.secondMin=this.secondMinOriginal;this._defaults.millisecMin=this.millisecMinOriginal;this._defaults.microsecMin=this.microsecMinOriginal;}}else{this._defaults.hourMin=this.hourMinOriginal;this._defaults.minuteMin=this.minuteMinOriginal;this._defaults.secondMin=this.secondMinOriginal;this._defaults.millisecMin=this.millisecMinOriginal;this._defaults.microsecMin=this.microsecMinOriginal;}}\nif($.datepicker._get(dp_inst,'maxDateTime')!==null&&$.datepicker._get(dp_inst,'maxDateTime')!==undefined&&dp_date){var maxDateTime=$.datepicker._get(dp_inst,'maxDateTime'),maxDateTimeDate=new Date(maxDateTime.getFullYear(),maxDateTime.getMonth(),maxDateTime.getDate(),0,0,0,0);if(this.hourMaxOriginal===null||this.minuteMaxOriginal===null||this.secondMaxOriginal===null||this.millisecMaxOriginal===null){this.hourMaxOriginal=o.hourMax;this.minuteMaxOriginal=o.minuteMax;this.secondMaxOriginal=o.secondMax;this.millisecMaxOriginal=o.millisecMax;this.microsecMaxOriginal=o.microsecMax;}\nif(dp_inst.settings.timeOnly||maxDateTimeDate.getTime()===dp_date.getTime()){this._defaults.hourMax=maxDateTime.getHours();if(this.hour>=this._defaults.hourMax){this.hour=this._defaults.hourMax;this._defaults.minuteMax=maxDateTime.getMinutes();if(this.minute>=this._defaults.minuteMax){this.minute=this._defaults.minuteMax;this._defaults.secondMax=maxDateTime.getSeconds();if(this.second>=this._defaults.secondMax){this.second=this._defaults.secondMax;this._defaults.millisecMax=maxDateTime.getMilliseconds();if(this.millisec>=this._defaults.millisecMax){this.millisec=this._defaults.millisecMax;this._defaults.microsecMax=maxDateTime.getMicroseconds();}else{if(this.microsec>this._defaults.microsecMax){this.microsec=this._defaults.microsecMax;}\nthis._defaults.microsecMax=this.microsecMaxOriginal;}}else{this._defaults.millisecMax=this.millisecMaxOriginal;this._defaults.microsecMax=this.microsecMaxOriginal;}}else{this._defaults.secondMax=this.secondMaxOriginal;this._defaults.millisecMax=this.millisecMaxOriginal;this._defaults.microsecMax=this.microsecMaxOriginal;}}else{this._defaults.minuteMax=this.minuteMaxOriginal;this._defaults.secondMax=this.secondMaxOriginal;this._defaults.millisecMax=this.millisecMaxOriginal;this._defaults.microsecMax=this.microsecMaxOriginal;}}else{this._defaults.hourMax=this.hourMaxOriginal;this._defaults.minuteMax=this.minuteMaxOriginal;this._defaults.secondMax=this.secondMaxOriginal;this._defaults.millisecMax=this.millisecMaxOriginal;this._defaults.microsecMax=this.microsecMaxOriginal;}}\nif(dp_inst.settings.minTime!==null){var tempMinTime=new Date(\"01/01/1970 \"+dp_inst.settings.minTime);if(this.hour<tempMinTime.getHours()){this.hour=this._defaults.hourMin=tempMinTime.getHours();this.minute=this._defaults.minuteMin=tempMinTime.getMinutes();}else if(this.hour===tempMinTime.getHours()&&this.minute<tempMinTime.getMinutes()){this.minute=this._defaults.minuteMin=tempMinTime.getMinutes();}else{if(this._defaults.hourMin<tempMinTime.getHours()){this._defaults.hourMin=tempMinTime.getHours();this._defaults.minuteMin=tempMinTime.getMinutes();}else if(this._defaults.hourMin===tempMinTime.getHours()===this.hour&&this._defaults.minuteMin<tempMinTime.getMinutes()){this._defaults.minuteMin=tempMinTime.getMinutes();}else{this._defaults.minuteMin=0;}}}\nif(dp_inst.settings.maxTime!==null){var tempMaxTime=new Date(\"01/01/1970 \"+dp_inst.settings.maxTime);if(this.hour>tempMaxTime.getHours()){this.hour=this._defaults.hourMax=tempMaxTime.getHours();this.minute=this._defaults.minuteMax=tempMaxTime.getMinutes();}else if(this.hour===tempMaxTime.getHours()&&this.minute>tempMaxTime.getMinutes()){this.minute=this._defaults.minuteMax=tempMaxTime.getMinutes();}else{if(this._defaults.hourMax>tempMaxTime.getHours()){this._defaults.hourMax=tempMaxTime.getHours();this._defaults.minuteMax=tempMaxTime.getMinutes();}else if(this._defaults.hourMax===tempMaxTime.getHours()===this.hour&&this._defaults.minuteMax>tempMaxTime.getMinutes()){this._defaults.minuteMax=tempMaxTime.getMinutes();}else{this._defaults.minuteMax=59;}}}\nif(adjustSliders!==undefined&&adjustSliders===true){var hourMax=parseInt((this._defaults.hourMax-((this._defaults.hourMax-this._defaults.hourMin)%this._defaults.stepHour)),10),minMax=parseInt((this._defaults.minuteMax-((this._defaults.minuteMax-this._defaults.minuteMin)%this._defaults.stepMinute)),10),secMax=parseInt((this._defaults.secondMax-((this._defaults.secondMax-this._defaults.secondMin)%this._defaults.stepSecond)),10),millisecMax=parseInt((this._defaults.millisecMax-((this._defaults.millisecMax-this._defaults.millisecMin)%this._defaults.stepMillisec)),10),microsecMax=parseInt((this._defaults.microsecMax-((this._defaults.microsecMax-this._defaults.microsecMin)%this._defaults.stepMicrosec)),10);if(this.hour_slider){this.control.options(this,this.hour_slider,'hour',{min:this._defaults.hourMin,max:hourMax,step:this._defaults.stepHour});this.control.value(this,this.hour_slider,'hour',this.hour-(this.hour%this._defaults.stepHour));}\nif(this.minute_slider){this.control.options(this,this.minute_slider,'minute',{min:this._defaults.minuteMin,max:minMax,step:this._defaults.stepMinute});this.control.value(this,this.minute_slider,'minute',this.minute-(this.minute%this._defaults.stepMinute));}\nif(this.second_slider){this.control.options(this,this.second_slider,'second',{min:this._defaults.secondMin,max:secMax,step:this._defaults.stepSecond});this.control.value(this,this.second_slider,'second',this.second-(this.second%this._defaults.stepSecond));}\nif(this.millisec_slider){this.control.options(this,this.millisec_slider,'millisec',{min:this._defaults.millisecMin,max:millisecMax,step:this._defaults.stepMillisec});this.control.value(this,this.millisec_slider,'millisec',this.millisec-(this.millisec%this._defaults.stepMillisec));}\nif(this.microsec_slider){this.control.options(this,this.microsec_slider,'microsec',{min:this._defaults.microsecMin,max:microsecMax,step:this._defaults.stepMicrosec});this.control.value(this,this.microsec_slider,'microsec',this.microsec-(this.microsec%this._defaults.stepMicrosec));}}},_onTimeChange:function(){if(!this._defaults.showTimepicker){return;}\nvar hour=(this.hour_slider)?this.control.value(this,this.hour_slider,'hour'):false,minute=(this.minute_slider)?this.control.value(this,this.minute_slider,'minute'):false,second=(this.second_slider)?this.control.value(this,this.second_slider,'second'):false,millisec=(this.millisec_slider)?this.control.value(this,this.millisec_slider,'millisec'):false,microsec=(this.microsec_slider)?this.control.value(this,this.microsec_slider,'microsec'):false,timezone=(this.timezone_select)?this.timezone_select.val():false,o=this._defaults,pickerTimeFormat=o.pickerTimeFormat||o.timeFormat,pickerTimeSuffix=o.pickerTimeSuffix||o.timeSuffix;if(typeof(hour)==='object'){hour=false;}\nif(typeof(minute)==='object'){minute=false;}\nif(typeof(second)==='object'){second=false;}\nif(typeof(millisec)==='object'){millisec=false;}\nif(typeof(microsec)==='object'){microsec=false;}\nif(typeof(timezone)==='object'){timezone=false;}\nif(hour!==false){hour=parseInt(hour,10);}\nif(minute!==false){minute=parseInt(minute,10);}\nif(second!==false){second=parseInt(second,10);}\nif(millisec!==false){millisec=parseInt(millisec,10);}\nif(microsec!==false){microsec=parseInt(microsec,10);}\nif(timezone!==false){timezone=timezone.toString();}\nvar ampm=o[hour<12?'amNames':'pmNames'][0];var hasChanged=(hour!==parseInt(this.hour,10)||minute!==parseInt(this.minute,10)||second!==parseInt(this.second,10)||millisec!==parseInt(this.millisec,10)||microsec!==parseInt(this.microsec,10)||(this.ampm.length>0&&(hour<12)!==($.inArray(this.ampm.toUpperCase(),this.amNames)!==-1))||(this.timezone!==null&&timezone!==this.timezone.toString()));if(hasChanged){if(hour!==false){this.hour=hour;}\nif(minute!==false){this.minute=minute;}\nif(second!==false){this.second=second;}\nif(millisec!==false){this.millisec=millisec;}\nif(microsec!==false){this.microsec=microsec;}\nif(timezone!==false){this.timezone=timezone;}\nif(!this.inst){this.inst=$.datepicker._getInst(this.$input[0]);}\nthis._limitMinMaxDateTime(this.inst,true);}\nif(this.support.ampm){this.ampm=ampm;}\nthis.formattedTime=$.datepicker.formatTime(o.timeFormat,this,o);if(this.$timeObj){if(pickerTimeFormat===o.timeFormat){this.$timeObj.val(this.formattedTime+pickerTimeSuffix);}\nelse{this.$timeObj.val($.datepicker.formatTime(pickerTimeFormat,this,o)+pickerTimeSuffix);}\nif(this.$timeObj[0].setSelectionRange){var sPos=this.$timeObj[0].selectionStart;var ePos=this.$timeObj[0].selectionEnd;this.$timeObj[0].setSelectionRange(sPos,ePos);}}\nthis.timeDefined=true;if(hasChanged){this._updateDateTime();}},_onSelectHandler:function(){var onSelect=this._defaults.onSelect||this.inst.settings.onSelect;var inputEl=this.$input?this.$input[0]:null;if(onSelect&&inputEl){onSelect.apply(inputEl,[this.formattedDateTime,this]);}},_updateDateTime:function(dp_inst){dp_inst=this.inst||dp_inst;var dtTmp=(dp_inst.currentYear>0?new Date(dp_inst.currentYear,dp_inst.currentMonth,dp_inst.currentDay):new Date(dp_inst.selectedYear,dp_inst.selectedMonth,dp_inst.selectedDay)),dt=$.datepicker._daylightSavingAdjust(dtTmp),dateFmt=$.datepicker._get(dp_inst,'dateFormat'),formatCfg=$.datepicker._getFormatConfig(dp_inst),timeAvailable=dt!==null&&this.timeDefined;this.formattedDate=$.datepicker.formatDate(dateFmt,(dt===null?new Date():dt),formatCfg);var formattedDateTime=this.formattedDate;if(dp_inst.lastVal===\"\"){dp_inst.currentYear=dp_inst.selectedYear;dp_inst.currentMonth=dp_inst.selectedMonth;dp_inst.currentDay=dp_inst.selectedDay;}\nif(this._defaults.timeOnly===true&&this._defaults.timeOnlyShowDate===false){formattedDateTime=this.formattedTime;}else if((this._defaults.timeOnly!==true&&(this._defaults.alwaysSetTime||timeAvailable))||(this._defaults.timeOnly===true&&this._defaults.timeOnlyShowDate===true)){formattedDateTime+=this._defaults.separator+this.formattedTime+this._defaults.timeSuffix;}\nthis.formattedDateTime=formattedDateTime;if(!this._defaults.showTimepicker){this.$input.val(this.formattedDate);}else if(this.$altInput&&this._defaults.timeOnly===false&&this._defaults.altFieldTimeOnly===true){this.$altInput.val(this.formattedTime);this.$input.val(this.formattedDate);}else if(this.$altInput){this.$input.val(formattedDateTime);var altFormattedDateTime='',altSeparator=this._defaults.altSeparator!==null?this._defaults.altSeparator:this._defaults.separator,altTimeSuffix=this._defaults.altTimeSuffix!==null?this._defaults.altTimeSuffix:this._defaults.timeSuffix;if(!this._defaults.timeOnly){if(this._defaults.altFormat){altFormattedDateTime=$.datepicker.formatDate(this._defaults.altFormat,(dt===null?new Date():dt),formatCfg);}\nelse{altFormattedDateTime=this.formattedDate;}\nif(altFormattedDateTime){altFormattedDateTime+=altSeparator;}}\nif(this._defaults.altTimeFormat!==null){altFormattedDateTime+=$.datepicker.formatTime(this._defaults.altTimeFormat,this,this._defaults)+altTimeSuffix;}\nelse{altFormattedDateTime+=this.formattedTime+altTimeSuffix;}\nthis.$altInput.val(altFormattedDateTime);}else{this.$input.val(formattedDateTime);}\nthis.$input.trigger(\"change\");},_onFocus:function(){if(!this.$input.val()&&this._defaults.defaultValue){this.$input.val(this._defaults.defaultValue);var inst=$.datepicker._getInst(this.$input.get(0)),tp_inst=$.datepicker._get(inst,'timepicker');if(tp_inst){if(tp_inst._defaults.timeOnly&&(inst.input.val()!==inst.lastVal)){try{$.datepicker._updateDatepicker(inst);}catch(err){$.timepicker.log(err);}}}}},_controls:{slider:{create:function(tp_inst,obj,unit,val,min,max,step){var rtl=tp_inst._defaults.isRTL;return obj.prop('slide',null).slider({orientation:\"horizontal\",value:rtl?val*-1:val,min:rtl?max*-1:min,max:rtl?min*-1:max,step:step,slide:function(event,ui){tp_inst.control.value(tp_inst,$(this),unit,rtl?ui.value*-1:ui.value);tp_inst._onTimeChange();},stop:function(event,ui){tp_inst._onSelectHandler();}});},options:function(tp_inst,obj,unit,opts,val){if(tp_inst._defaults.isRTL){if(typeof(opts)==='string'){if(opts==='min'||opts==='max'){if(val!==undefined){return obj.slider(opts,val*-1);}\nreturn Math.abs(obj.slider(opts));}\nreturn obj.slider(opts);}\nvar min=opts.min,max=opts.max;opts.min=opts.max=null;if(min!==undefined){opts.max=min*-1;}\nif(max!==undefined){opts.min=max*-1;}\nreturn obj.slider(opts);}\nif(typeof(opts)==='string'&&val!==undefined){return obj.slider(opts,val);}\nreturn obj.slider(opts);},value:function(tp_inst,obj,unit,val){if(tp_inst._defaults.isRTL){if(val!==undefined){return obj.slider('value',val*-1);}\nreturn Math.abs(obj.slider('value'));}\nif(val!==undefined){return obj.slider('value',val);}\nreturn obj.slider('value');}},select:{create:function(tp_inst,obj,unit,val,min,max,step){var sel='<select class=\"ui-timepicker-select ui-state-default ui-corner-all\" data-unit=\"'+unit+'\" data-min=\"'+min+'\" data-max=\"'+max+'\" data-step=\"'+step+'\">',format=tp_inst._defaults.pickerTimeFormat||tp_inst._defaults.timeFormat;for(var i=min;i<=max;i+=step){sel+='<option value=\"'+i+'\"'+(i===val?' selected':'')+'>';if(unit==='hour'){sel+=$.datepicker.formatTime($.trim(format.replace(/[^ht ]/ig,'')),{hour:i},tp_inst._defaults);}\nelse if(unit==='millisec'||unit==='microsec'||i>=10){sel+=i;}\nelse{sel+='0'+i.toString();}\nsel+='</option>';}\nsel+='</select>';obj.children('select').remove();$(sel).appendTo(obj).change(function(e){tp_inst._onTimeChange();tp_inst._onSelectHandler();tp_inst._afterInject();});return obj;},options:function(tp_inst,obj,unit,opts,val){var o={},$t=obj.children('select');if(typeof(opts)==='string'){if(val===undefined){return $t.data(opts);}\no[opts]=val;}\nelse{o=opts;}\nreturn tp_inst.control.create(tp_inst,obj,$t.data('unit'),$t.val(),o.min>=0?o.min:$t.data('min'),o.max||$t.data('max'),o.step||$t.data('step'));},value:function(tp_inst,obj,unit,val){var $t=obj.children('select');if(val!==undefined){return $t.val(val);}\nreturn $t.val();}}}});$.fn.extend({timepicker:function(o){o=o||{};var tmp_args=Array.prototype.slice.call(arguments);if(typeof o==='object'){tmp_args[0]=$.extend(o,{timeOnly:true});}\nreturn $(this).each(function(){$.fn.datetimepicker.apply($(this),tmp_args);});},datetimepicker:function(o){o=o||{};var tmp_args=arguments;if(typeof(o)==='string'){if(o==='getDate'||(o==='option'&&tmp_args.length===2&&typeof(tmp_args[1])==='string')){return $.fn.datepicker.apply($(this[0]),tmp_args);}else{return this.each(function(){var $t=$(this);$t.datepicker.apply($t,tmp_args);});}}else{return this.each(function(){var $t=$(this);$t.datepicker($.timepicker._newInst($t,o)._defaults);});}}});$.datepicker.parseDateTime=function(dateFormat,timeFormat,dateTimeString,dateSettings,timeSettings){var parseRes=parseDateTimeInternal(dateFormat,timeFormat,dateTimeString,dateSettings,timeSettings);if(parseRes.timeObj){var t=parseRes.timeObj;parseRes.date.setHours(t.hour,t.minute,t.second,t.millisec);parseRes.date.setMicroseconds(t.microsec);}\nreturn parseRes.date;};$.datepicker.parseTime=function(timeFormat,timeString,options){var o=extendRemove(extendRemove({},$.timepicker._defaults),options||{}),iso8601=(timeFormat.replace(/\\'.*?\\'/g,'').indexOf('Z')!==-1);var strictParse=function(f,s,o){var getPatternAmpm=function(amNames,pmNames){var markers=[];if(amNames){$.merge(markers,amNames);}\nif(pmNames){$.merge(markers,pmNames);}\nmarkers=$.map(markers,function(val){return val.replace(/[.*+?|()\\[\\]{}\\\\]/g,'\\\\$&');});return'('+markers.join('|')+')?';};var getFormatPositions=function(timeFormat){var finds=timeFormat.toLowerCase().match(/(h{1,2}|m{1,2}|s{1,2}|l{1}|c{1}|t{1,2}|z|'.*?')/g),orders={h:-1,m:-1,s:-1,l:-1,c:-1,t:-1,z:-1};if(finds){for(var i=0;i<finds.length;i++){if(orders[finds[i].toString().charAt(0)]===-1){orders[finds[i].toString().charAt(0)]=i+1;}}}\nreturn orders;};var regstr='^'+f.toString().replace(/([hH]{1,2}|mm?|ss?|[tT]{1,2}|[zZ]|[lc]|'.*?')/g,function(match){var ml=match.length;switch(match.charAt(0).toLowerCase()){case'h':return ml===1?'(\\\\d?\\\\d)':'(\\\\d{'+ml+'})';case'm':return ml===1?'(\\\\d?\\\\d)':'(\\\\d{'+ml+'})';case's':return ml===1?'(\\\\d?\\\\d)':'(\\\\d{'+ml+'})';case'l':return'(\\\\d?\\\\d?\\\\d)';case'c':return'(\\\\d?\\\\d?\\\\d)';case'z':return'(z|[-+]\\\\d\\\\d:?\\\\d\\\\d|\\\\S+)?';case't':return getPatternAmpm(o.amNames,o.pmNames);default:return'('+match.replace(/\\'/g,\"\").replace(/(\\.|\\$|\\^|\\\\|\\/|\\(|\\)|\\[|\\]|\\?|\\+|\\*)/g,function(m){return\"\\\\\"+m;})+')?';}}).replace(/\\s/g,'\\\\s?')+\no.timeSuffix+'$',order=getFormatPositions(f),ampm='',treg;treg=s.match(new RegExp(regstr,'i'));var resTime={hour:0,minute:0,second:0,millisec:0,microsec:0};if(treg){if(order.t!==-1){if(treg[order.t]===undefined||treg[order.t].length===0){ampm='';resTime.ampm='';}else{ampm=$.inArray(treg[order.t].toUpperCase(),$.map(o.amNames,function(x,i){return x.toUpperCase();}))!==-1?'AM':'PM';resTime.ampm=o[ampm==='AM'?'amNames':'pmNames'][0];}}\nif(order.h!==-1){if(ampm==='AM'&&treg[order.h]==='12'){resTime.hour=0;}else{if(ampm==='PM'&&treg[order.h]!=='12'){resTime.hour=parseInt(treg[order.h],10)+12;}else{resTime.hour=Number(treg[order.h]);}}}\nif(order.m!==-1){resTime.minute=Number(treg[order.m]);}\nif(order.s!==-1){resTime.second=Number(treg[order.s]);}\nif(order.l!==-1){resTime.millisec=Number(treg[order.l]);}\nif(order.c!==-1){resTime.microsec=Number(treg[order.c]);}\nif(order.z!==-1&&treg[order.z]!==undefined){resTime.timezone=$.timepicker.timezoneOffsetNumber(treg[order.z]);}\nreturn resTime;}\nreturn false;};var looseParse=function(f,s,o){try{var d=new Date('2012-01-01 '+s);if(isNaN(d.getTime())){d=new Date('2012-01-01T'+s);if(isNaN(d.getTime())){d=new Date('01/01/2012 '+s);if(isNaN(d.getTime())){throw\"Unable to parse time with native Date: \"+s;}}}\nreturn{hour:d.getHours(),minute:d.getMinutes(),second:d.getSeconds(),millisec:d.getMilliseconds(),microsec:d.getMicroseconds(),timezone:d.getTimezoneOffset()*-1};}\ncatch(err){try{return strictParse(f,s,o);}\ncatch(err2){$.timepicker.log(\"Unable to parse \\ntimeString: \"+s+\"\\ntimeFormat: \"+f);}}\nreturn false;};if(typeof o.parse===\"function\"){return o.parse(timeFormat,timeString,o);}\nif(o.parse==='loose'){return looseParse(timeFormat,timeString,o);}\nreturn strictParse(timeFormat,timeString,o);};$.datepicker.formatTime=function(format,time,options){options=options||{};options=$.extend({},$.timepicker._defaults,options);time=$.extend({hour:0,minute:0,second:0,millisec:0,microsec:0,timezone:null},time);var tmptime=format,ampmName=options.amNames[0],hour=parseInt(time.hour,10);if(hour>11){ampmName=options.pmNames[0];}\ntmptime=tmptime.replace(/(?:HH?|hh?|mm?|ss?|[tT]{1,2}|[zZ]|[lc]|'.*?')/g,function(match){switch(match){case'HH':return('0'+hour).slice(-2);case'H':return hour;case'hh':return('0'+convert24to12(hour)).slice(-2);case'h':return convert24to12(hour);case'mm':return('0'+time.minute).slice(-2);case'm':return time.minute;case'ss':return('0'+time.second).slice(-2);case's':return time.second;case'l':return('00'+time.millisec).slice(-3);case'c':return('00'+time.microsec).slice(-3);case'z':return $.timepicker.timezoneOffsetString(time.timezone===null?options.timezone:time.timezone,false);case'Z':return $.timepicker.timezoneOffsetString(time.timezone===null?options.timezone:time.timezone,true);case'T':return ampmName.charAt(0).toUpperCase();case'TT':return ampmName.toUpperCase();case't':return ampmName.charAt(0).toLowerCase();case'tt':return ampmName.toLowerCase();default:return match.replace(/'/g,\"\");}});return tmptime;};$.datepicker._base_selectDate=$.datepicker._selectDate;$.datepicker._selectDate=function(id,dateStr){var inst=this._getInst($(id)[0]),tp_inst=this._get(inst,'timepicker'),was_inline;if(tp_inst&&inst.settings.showTimepicker){tp_inst._limitMinMaxDateTime(inst,true);was_inline=inst.inline;inst.inline=inst.stay_open=true;this._base_selectDate(id,dateStr);inst.inline=was_inline;inst.stay_open=false;this._notifyChange(inst);this._updateDatepicker(inst);}else{this._base_selectDate(id,dateStr);}};$.datepicker._base_updateDatepicker=$.datepicker._updateDatepicker;$.datepicker._updateDatepicker=function(inst){var input=inst.input[0];if($.datepicker._curInst&&$.datepicker._curInst!==inst&&$.datepicker._datepickerShowing&&$.datepicker._lastInput!==input){return;}\nif(typeof(inst.stay_open)!=='boolean'||inst.stay_open===false){this._base_updateDatepicker(inst);var tp_inst=this._get(inst,'timepicker');if(tp_inst){tp_inst._addTimePicker(inst);}}};$.datepicker._base_doKeyPress=$.datepicker._doKeyPress;$.datepicker._doKeyPress=function(event){var inst=$.datepicker._getInst(event.target),tp_inst=$.datepicker._get(inst,'timepicker');if(tp_inst){if($.datepicker._get(inst,'constrainInput')){var ampm=tp_inst.support.ampm,tz=tp_inst._defaults.showTimezone!==null?tp_inst._defaults.showTimezone:tp_inst.support.timezone,dateChars=$.datepicker._possibleChars($.datepicker._get(inst,'dateFormat')),datetimeChars=tp_inst._defaults.timeFormat.toString().replace(/[hms]/g,'').replace(/TT/g,ampm?'APM':'').replace(/Tt/g,ampm?'AaPpMm':'').replace(/tT/g,ampm?'AaPpMm':'').replace(/T/g,ampm?'AP':'').replace(/tt/g,ampm?'apm':'').replace(/t/g,ampm?'ap':'')+\" \"+tp_inst._defaults.separator+\ntp_inst._defaults.timeSuffix+\n(tz?tp_inst._defaults.timezoneList.join(''):'')+\n(tp_inst._defaults.amNames.join(''))+(tp_inst._defaults.pmNames.join(''))+\ndateChars,chr=String.fromCharCode(event.charCode===undefined?event.keyCode:event.charCode);return event.ctrlKey||(chr<' '||!dateChars||datetimeChars.indexOf(chr)>-1);}}\nreturn $.datepicker._base_doKeyPress(event);};$.datepicker._base_updateAlternate=$.datepicker._updateAlternate;$.datepicker._updateAlternate=function(inst){var tp_inst=this._get(inst,'timepicker');if(tp_inst){var altField=tp_inst._defaults.altField;if(altField){var altFormat=tp_inst._defaults.altFormat||tp_inst._defaults.dateFormat,date=this._getDate(inst),formatCfg=$.datepicker._getFormatConfig(inst),altFormattedDateTime='',altSeparator=tp_inst._defaults.altSeparator?tp_inst._defaults.altSeparator:tp_inst._defaults.separator,altTimeSuffix=tp_inst._defaults.altTimeSuffix?tp_inst._defaults.altTimeSuffix:tp_inst._defaults.timeSuffix,altTimeFormat=tp_inst._defaults.altTimeFormat!==null?tp_inst._defaults.altTimeFormat:tp_inst._defaults.timeFormat;altFormattedDateTime+=$.datepicker.formatTime(altTimeFormat,tp_inst,tp_inst._defaults)+altTimeSuffix;if(!tp_inst._defaults.timeOnly&&!tp_inst._defaults.altFieldTimeOnly&&date!==null){if(tp_inst._defaults.altFormat){altFormattedDateTime=$.datepicker.formatDate(tp_inst._defaults.altFormat,date,formatCfg)+altSeparator+altFormattedDateTime;}\nelse{altFormattedDateTime=tp_inst.formattedDate+altSeparator+altFormattedDateTime;}}\n$(altField).val(inst.input.val()?altFormattedDateTime:\"\");}}\nelse{$.datepicker._base_updateAlternate(inst);}};$.datepicker._base_doKeyUp=$.datepicker._doKeyUp;$.datepicker._doKeyUp=function(event){var inst=$.datepicker._getInst(event.target),tp_inst=$.datepicker._get(inst,'timepicker');if(tp_inst){if(tp_inst._defaults.timeOnly&&(inst.input.val()!==inst.lastVal)){try{$.datepicker._updateDatepicker(inst);}catch(err){$.timepicker.log(err);}}}\nreturn $.datepicker._base_doKeyUp(event);};$.datepicker._base_gotoToday=$.datepicker._gotoToday;$.datepicker._gotoToday=function(id){var inst=this._getInst($(id)[0]);this._base_gotoToday(id);var tp_inst=this._get(inst,'timepicker');if(!tp_inst){return;}\nvar tzoffset=$.timepicker.timezoneOffsetNumber(tp_inst.timezone);var now=new Date();now.setMinutes(now.getMinutes()+now.getTimezoneOffset()+parseInt(tzoffset,10));this._setTime(inst,now);this._setDate(inst,now);tp_inst._onSelectHandler();};$.datepicker._disableTimepickerDatepicker=function(target){var inst=this._getInst(target);if(!inst){return;}\nvar tp_inst=this._get(inst,'timepicker');$(target).datepicker('getDate');if(tp_inst){inst.settings.showTimepicker=false;tp_inst._defaults.showTimepicker=false;tp_inst._updateDateTime(inst);}};$.datepicker._enableTimepickerDatepicker=function(target){var inst=this._getInst(target);if(!inst){return;}\nvar tp_inst=this._get(inst,'timepicker');$(target).datepicker('getDate');if(tp_inst){inst.settings.showTimepicker=true;tp_inst._defaults.showTimepicker=true;tp_inst._addTimePicker(inst);tp_inst._updateDateTime(inst);}};$.datepicker._setTime=function(inst,date){var tp_inst=this._get(inst,'timepicker');if(tp_inst){var defaults=tp_inst._defaults;tp_inst.hour=date?date.getHours():defaults.hour;tp_inst.minute=date?date.getMinutes():defaults.minute;tp_inst.second=date?date.getSeconds():defaults.second;tp_inst.millisec=date?date.getMilliseconds():defaults.millisec;tp_inst.microsec=date?date.getMicroseconds():defaults.microsec;tp_inst._limitMinMaxDateTime(inst,true);tp_inst._onTimeChange();tp_inst._updateDateTime(inst);}};$.datepicker._setTimeDatepicker=function(target,date,withDate){var inst=this._getInst(target);if(!inst){return;}\nvar tp_inst=this._get(inst,'timepicker');if(tp_inst){this._setDateFromField(inst);var tp_date;if(date){if(typeof date===\"string\"){tp_inst._parseTime(date,withDate);tp_date=new Date();tp_date.setHours(tp_inst.hour,tp_inst.minute,tp_inst.second,tp_inst.millisec);tp_date.setMicroseconds(tp_inst.microsec);}else{tp_date=new Date(date.getTime());tp_date.setMicroseconds(date.getMicroseconds());}\nif(tp_date.toString()==='Invalid Date'){tp_date=undefined;}\nthis._setTime(inst,tp_date);}}};$.datepicker._base_setDateDatepicker=$.datepicker._setDateDatepicker;$.datepicker._setDateDatepicker=function(target,_date){var inst=this._getInst(target);var date=_date;if(!inst){return;}\nif(typeof(_date)==='string'){date=new Date(_date);if(!date.getTime()){this._base_setDateDatepicker.apply(this,arguments);date=$(target).datepicker('getDate');}}\nvar tp_inst=this._get(inst,'timepicker');var tp_date;if(date instanceof Date){tp_date=new Date(date.getTime());tp_date.setMicroseconds(date.getMicroseconds());}else{tp_date=date;}\nif(tp_inst&&tp_date){if(!tp_inst.support.timezone&&tp_inst._defaults.timezone===null){tp_inst.timezone=tp_date.getTimezoneOffset()*-1;}\ndate=$.timepicker.timezoneAdjust(date,$.timepicker.timezoneOffsetString(-date.getTimezoneOffset()),tp_inst.timezone);tp_date=$.timepicker.timezoneAdjust(tp_date,$.timepicker.timezoneOffsetString(-tp_date.getTimezoneOffset()),tp_inst.timezone);}\nthis._updateDatepicker(inst);this._base_setDateDatepicker.apply(this,arguments);this._setTimeDatepicker(target,tp_date,true);};$.datepicker._base_getDateDatepicker=$.datepicker._getDateDatepicker;$.datepicker._getDateDatepicker=function(target,noDefault){var inst=this._getInst(target);if(!inst){return;}\nvar tp_inst=this._get(inst,'timepicker');if(tp_inst){if(inst.lastVal===undefined){this._setDateFromField(inst,noDefault);}\nvar date=this._getDate(inst);var currDT=null;if(tp_inst.$altInput&&tp_inst._defaults.altFieldTimeOnly){currDT=tp_inst.$input.val()+' '+tp_inst.$altInput.val();}\nelse if(tp_inst.$input.get(0).tagName!=='INPUT'&&tp_inst.$altInput){currDT=tp_inst.$altInput.val();}\nelse{currDT=tp_inst.$input.val();}\nif(date&&tp_inst._parseTime(currDT,!inst.settings.timeOnly)){date.setHours(tp_inst.hour,tp_inst.minute,tp_inst.second,tp_inst.millisec);date.setMicroseconds(tp_inst.microsec);if(tp_inst.timezone!=null){if(!tp_inst.support.timezone&&tp_inst._defaults.timezone===null){tp_inst.timezone=date.getTimezoneOffset()*-1;}\ndate=$.timepicker.timezoneAdjust(date,tp_inst.timezone,$.timepicker.timezoneOffsetString(-date.getTimezoneOffset()));}}\nreturn date;}\nreturn this._base_getDateDatepicker(target,noDefault);};$.datepicker._base_parseDate=$.datepicker.parseDate;$.datepicker.parseDate=function(format,value,settings){var date;try{date=this._base_parseDate(format,value,settings);}catch(err){if(err.indexOf(\":\")>=0){date=this._base_parseDate(format,value.substring(0,value.length-(err.length-err.indexOf(':')-2)),settings);$.timepicker.log(\"Error parsing the date string: \"+err+\"\\ndate string = \"+value+\"\\ndate format = \"+format);}else{throw err;}}\nreturn date;};$.datepicker._base_formatDate=$.datepicker._formatDate;$.datepicker._formatDate=function(inst,day,month,year){var tp_inst=this._get(inst,'timepicker');if(tp_inst){tp_inst._updateDateTime(inst);return tp_inst.$input.val();}\nreturn this._base_formatDate(inst);};$.datepicker._base_optionDatepicker=$.datepicker._optionDatepicker;$.datepicker._optionDatepicker=function(target,name,value){var inst=this._getInst(target),name_clone;if(!inst){return null;}\nvar tp_inst=this._get(inst,'timepicker');if(tp_inst){var min=null,max=null,onselect=null,overrides=tp_inst._defaults.evnts,fns={},prop,ret,oldVal,$target;if(typeof name==='string'){if(name==='minDate'||name==='minDateTime'){min=value;}else if(name==='maxDate'||name==='maxDateTime'){max=value;}else if(name==='onSelect'){onselect=value;}else if(overrides.hasOwnProperty(name)){if(typeof(value)==='undefined'){return overrides[name];}\nfns[name]=value;name_clone={};}}else if(typeof name==='object'){if(name.minDate){min=name.minDate;}else if(name.minDateTime){min=name.minDateTime;}else if(name.maxDate){max=name.maxDate;}else if(name.maxDateTime){max=name.maxDateTime;}\nfor(prop in overrides){if(overrides.hasOwnProperty(prop)&&name[prop]){fns[prop]=name[prop];}}}\nfor(prop in fns){if(fns.hasOwnProperty(prop)){overrides[prop]=fns[prop];if(!name_clone){name_clone=$.extend({},name);}\ndelete name_clone[prop];}}\nif(name_clone&&isEmptyObject(name_clone)){return;}\nif(min){if(min===0){min=new Date();}else{min=new Date(min);}\ntp_inst._defaults.minDate=min;tp_inst._defaults.minDateTime=min;}else if(max){if(max===0){max=new Date();}else{max=new Date(max);}\ntp_inst._defaults.maxDate=max;tp_inst._defaults.maxDateTime=max;}else if(onselect){tp_inst._defaults.onSelect=onselect;}\nif(min||max){$target=$(target);oldVal=$target.datetimepicker('getDate');ret=this._base_optionDatepicker.call($.datepicker,target,name_clone||name,value);$target.datetimepicker('setDate',oldVal);return ret;}}\nif(value===undefined){return this._base_optionDatepicker.call($.datepicker,target,name);}\nreturn this._base_optionDatepicker.call($.datepicker,target,name_clone||name,value);};var isEmptyObject=function(obj){var prop;for(prop in obj){if(obj.hasOwnProperty(prop)){return false;}}\nreturn true;};var extendRemove=function(target,props){$.extend(target,props);for(var name in props){if(props[name]===null||props[name]===undefined){target[name]=props[name];}}\nreturn target;};var detectSupport=function(timeFormat){var tf=timeFormat.replace(/'.*?'/g,'').toLowerCase(),isIn=function(f,t){return f.indexOf(t)!==-1?true:false;};return{hour:isIn(tf,'h'),minute:isIn(tf,'m'),second:isIn(tf,'s'),millisec:isIn(tf,'l'),microsec:isIn(tf,'c'),timezone:isIn(tf,'z'),ampm:isIn(tf,'t')&&isIn(timeFormat,'h'),iso8601:isIn(timeFormat,'Z')};};var convert24to12=function(hour){hour%=12;if(hour===0){hour=12;}\nreturn String(hour);};var computeEffectiveSetting=function(settings,property){return settings&&settings[property]?settings[property]:$.timepicker._defaults[property];};var splitDateTime=function(dateTimeString,timeSettings){var separator=computeEffectiveSetting(timeSettings,'separator'),format=computeEffectiveSetting(timeSettings,'timeFormat'),timeParts=format.split(separator),timePartsLen=timeParts.length,allParts=dateTimeString.split(separator),allPartsLen=allParts.length;if(allPartsLen>1){return{dateString:allParts.splice(0,allPartsLen-timePartsLen).join(separator),timeString:allParts.splice(0,timePartsLen).join(separator)};}\nreturn{dateString:dateTimeString,timeString:''};};var parseDateTimeInternal=function(dateFormat,timeFormat,dateTimeString,dateSettings,timeSettings){var date,parts,parsedTime;parts=splitDateTime(dateTimeString,timeSettings);date=$.datepicker._base_parseDate(dateFormat,parts.dateString,dateSettings);if(parts.timeString===''){return{date:date};}\nparsedTime=$.datepicker.parseTime(timeFormat,parts.timeString,timeSettings);if(!parsedTime){throw'Wrong time format';}\nreturn{date:date,timeObj:parsedTime};};var selectLocalTimezone=function(tp_inst,date){if(tp_inst&&tp_inst.timezone_select){var now=date||new Date();tp_inst.timezone_select.val(-now.getTimezoneOffset());}};$.timepicker=new Timepicker();$.timepicker.timezoneOffsetString=function(tzMinutes,iso8601){if(isNaN(tzMinutes)||tzMinutes>840||tzMinutes<-720){return tzMinutes;}\nvar off=tzMinutes,minutes=off%60,hours=(off-minutes)/ 60,iso=iso8601?':':'',tz=(off>=0?'+':'-')+('0'+Math.abs(hours)).slice(-2)+iso+('0'+Math.abs(minutes)).slice(-2);if(tz==='+00:00'){return'Z';}\nreturn tz;};$.timepicker.timezoneOffsetNumber=function(tzString){var normalized=tzString.toString().replace(':','');if(normalized.toUpperCase()==='Z'){return 0;}\nif(!/^(\\-|\\+)\\d{4}$/.test(normalized)){return parseInt(tzString,10);}\nreturn((normalized.substr(0,1)==='-'?-1:1)*((parseInt(normalized.substr(1,2),10)*60)+\nparseInt(normalized.substr(3,2),10)));};$.timepicker.timezoneAdjust=function(date,fromTimezone,toTimezone){var fromTz=$.timepicker.timezoneOffsetNumber(fromTimezone);var toTz=$.timepicker.timezoneOffsetNumber(toTimezone);if(!isNaN(toTz)){date.setMinutes(date.getMinutes()+(-fromTz)-(-toTz));}\nreturn date;};$.timepicker.timeRange=function(startTime,endTime,options){return $.timepicker.handleRange('timepicker',startTime,endTime,options);};$.timepicker.datetimeRange=function(startTime,endTime,options){$.timepicker.handleRange('datetimepicker',startTime,endTime,options);};$.timepicker.dateRange=function(startTime,endTime,options){$.timepicker.handleRange('datepicker',startTime,endTime,options);};$.timepicker.handleRange=function(method,startTime,endTime,options){options=$.extend({},{minInterval:0,maxInterval:0,start:{},end:{}},options);var timeOnly=false;if(method==='timepicker'){timeOnly=true;method='datetimepicker';}\nfunction checkDates(changed,other){var startdt=startTime[method]('getDate'),enddt=endTime[method]('getDate'),changeddt=changed[method]('getDate');if(startdt!==null){var minDate=new Date(startdt.getTime()),maxDate=new Date(startdt.getTime());minDate.setMilliseconds(minDate.getMilliseconds()+options.minInterval);maxDate.setMilliseconds(maxDate.getMilliseconds()+options.maxInterval);if(options.minInterval>0&&minDate>enddt){endTime[method]('setDate',minDate);}\nelse if(options.maxInterval>0&&maxDate<enddt){endTime[method]('setDate',maxDate);}\nelse if(startdt>enddt){other[method]('setDate',changeddt);}}}\nfunction selected(changed,other,option){if(!changed.val()){return;}\nvar date=changed[method].call(changed,'getDate');if(date!==null&&options.minInterval>0){if(option==='minDate'){date.setMilliseconds(date.getMilliseconds()+options.minInterval);}\nif(option==='maxDate'){date.setMilliseconds(date.getMilliseconds()-options.minInterval);}}\nif(date.getTime){other[method].call(other,'option',option,date);}}\n$.fn[method].call(startTime,$.extend({timeOnly:timeOnly,onClose:function(dateText,inst){checkDates($(this),endTime);},onSelect:function(selectedDateTime){selected($(this),endTime,'minDate');}},options,options.start));$.fn[method].call(endTime,$.extend({timeOnly:timeOnly,onClose:function(dateText,inst){checkDates($(this),startTime);},onSelect:function(selectedDateTime){selected($(this),startTime,'maxDate');}},options,options.end));checkDates(startTime,endTime);selected(startTime,endTime,'minDate');selected(endTime,startTime,'maxDate');return $([startTime.get(0),endTime.get(0)]);};$.timepicker.log=function(){if(window.console&&window.console.log&&window.console.log.apply){window.console.log.apply(window.console,Array.prototype.slice.call(arguments));}};$.timepicker._util={_extendRemove:extendRemove,_isEmptyObject:isEmptyObject,_convert24to12:convert24to12,_detectSupport:detectSupport,_selectLocalTimezone:selectLocalTimezone,_computeEffectiveSetting:computeEffectiveSetting,_splitDateTime:splitDateTime,_parseDateTimeInternal:parseDateTimeInternal};if(!Date.prototype.getMicroseconds){Date.prototype.microseconds=0;Date.prototype.getMicroseconds=function(){return this.microseconds;};Date.prototype.setMicroseconds=function(m){this.setMilliseconds(this.getMilliseconds()+Math.floor(m / 1000));this.microseconds=m%1000;return this;};}\n$.timepicker.version=\"1.6.3\";}));","jquery/jquery-ui.min.js":"/*! jQuery UI - v1.13.2 - 2022-07-14\n* http://jqueryui.com\n* Includes: widget.js, position.js, data.js, disable-selection.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js, focusable.js, form-reset-mixin.js, jquery-patch.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/draggable.js, widgets/droppable.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/resizable.js, widgets/selectable.js, widgets/selectmenu.js, widgets/slider.js, widgets/sortable.js, widgets/spinner.js, widgets/tabs.js, widgets/tooltip.js\n* Copyright jQuery Foundation and other contributors; Licensed MIT */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";$.ui=$.ui||{};var version=$.ui.version=\"1.13.2\";\n/*!\n * jQuery UI Widget 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\nvar widgetUuid=0;var widgetHasOwnProperty=Array.prototype.hasOwnProperty;var widgetSlice=Array.prototype.slice;$.cleanData=(function(orig){return function(elems){var events,elem,i;for(i=0;(elem=elems[i])!=null;i++){events=$._data(elem,\"events\");if(events&&events.remove){$(elem).triggerHandler(\"remove\");}}\norig(elems);};})($.cleanData);$.widget=function(name,base,prototype){var existingConstructor,constructor,basePrototype;var proxiedPrototype={};var namespace=name.split(\".\")[0];name=name.split(\".\")[1];var fullName=namespace+\"-\"+name;if(!prototype){prototype=base;base=$.Widget;}\nif(Array.isArray(prototype)){prototype=$.extend.apply(null,[{}].concat(prototype));}\n$.expr.pseudos[fullName.toLowerCase()]=function(elem){return!!$.data(elem,fullName);};$[namespace]=$[namespace]||{};existingConstructor=$[namespace][name];constructor=$[namespace][name]=function(options,element){if(!this||!this._createWidget){return new constructor(options,element);}\nif(arguments.length){this._createWidget(options,element);}};$.extend(constructor,existingConstructor,{version:prototype.version,_proto:$.extend({},prototype),_childConstructors:[]});basePrototype=new base();basePrototype.options=$.widget.extend({},basePrototype.options);$.each(prototype,function(prop,value){if(typeof value!==\"function\"){proxiedPrototype[prop]=value;return;}\nproxiedPrototype[prop]=(function(){function _super(){return base.prototype[prop].apply(this,arguments);}\nfunction _superApply(args){return base.prototype[prop].apply(this,args);}\nreturn function(){var __super=this._super;var __superApply=this._superApply;var returnValue;this._super=_super;this._superApply=_superApply;returnValue=value.apply(this,arguments);this._super=__super;this._superApply=__superApply;return returnValue;};})();});constructor.prototype=$.widget.extend(basePrototype,{widgetEventPrefix:existingConstructor?(basePrototype.widgetEventPrefix||name):name},proxiedPrototype,{constructor:constructor,namespace:namespace,widgetName:name,widgetFullName:fullName});if(existingConstructor){$.each(existingConstructor._childConstructors,function(i,child){var childPrototype=child.prototype;$.widget(childPrototype.namespace+\".\"+childPrototype.widgetName,constructor,child._proto);});delete existingConstructor._childConstructors;}else{base._childConstructors.push(constructor);}\n$.widget.bridge(name,constructor);return constructor;};$.widget.extend=function(target){var input=widgetSlice.call(arguments,1);var inputIndex=0;var inputLength=input.length;var key;var value;for(;inputIndex<inputLength;inputIndex++){for(key in input[inputIndex]){value=input[inputIndex][key];if(widgetHasOwnProperty.call(input[inputIndex],key)&&value!==undefined){if($.isPlainObject(value)){target[key]=$.isPlainObject(target[key])?$.widget.extend({},target[key],value):$.widget.extend({},value);}else{target[key]=value;}}}}\nreturn target;};$.widget.bridge=function(name,object){var fullName=object.prototype.widgetFullName||name;$.fn[name]=function(options){var isMethodCall=typeof options===\"string\";var args=widgetSlice.call(arguments,1);var returnValue=this;if(isMethodCall){if(!this.length&&options===\"instance\"){returnValue=undefined;}else{this.each(function(){var methodValue;var instance=$.data(this,fullName);if(options===\"instance\"){returnValue=instance;return false;}\nif(!instance){return $.error(\"cannot call methods on \"+name+\" prior to initialization; \"+\"attempted to call method '\"+options+\"'\");}\nif(typeof instance[options]!==\"function\"||options.charAt(0)===\"_\"){return $.error(\"no such method '\"+options+\"' for \"+name+\" widget instance\");}\nmethodValue=instance[options].apply(instance,args);if(methodValue!==instance&&methodValue!==undefined){returnValue=methodValue&&methodValue.jquery?returnValue.pushStack(methodValue.get()):methodValue;return false;}});}}else{if(args.length){options=$.widget.extend.apply(null,[options].concat(args));}\nthis.each(function(){var instance=$.data(this,fullName);if(instance){instance.option(options||{});if(instance._init){instance._init();}}else{$.data(this,fullName,new object(options,this));}});}\nreturn returnValue;};};$.Widget=function(){};$.Widget._childConstructors=[];$.Widget.prototype={widgetName:\"widget\",widgetEventPrefix:\"\",defaultElement:\"<div>\",options:{classes:{},disabled:false,create:null},_createWidget:function(options,element){element=$(element||this.defaultElement||this)[0];this.element=$(element);this.uuid=widgetUuid++;this.eventNamespace=\".\"+this.widgetName+this.uuid;this.bindings=$();this.hoverable=$();this.focusable=$();this.classesElementLookup={};if(element!==this){$.data(element,this.widgetFullName,this);this._on(true,this.element,{remove:function(event){if(event.target===element){this.destroy();}}});this.document=$(element.style?element.ownerDocument:element.document||element);this.window=$(this.document[0].defaultView||this.document[0].parentWindow);}\nthis.options=$.widget.extend({},this.options,this._getCreateOptions(),options);this._create();if(this.options.disabled){this._setOptionDisabled(this.options.disabled);}\nthis._trigger(\"create\",null,this._getCreateEventData());this._init();},_getCreateOptions:function(){return{};},_getCreateEventData:$.noop,_create:$.noop,_init:$.noop,destroy:function(){var that=this;this._destroy();$.each(this.classesElementLookup,function(key,value){that._removeClass(value,key);});this.element.off(this.eventNamespace).removeData(this.widgetFullName);this.widget().off(this.eventNamespace).removeAttr(\"aria-disabled\");this.bindings.off(this.eventNamespace);},_destroy:$.noop,widget:function(){return this.element;},option:function(key,value){var options=key;var parts;var curOption;var i;if(arguments.length===0){return $.widget.extend({},this.options);}\nif(typeof key===\"string\"){options={};parts=key.split(\".\");key=parts.shift();if(parts.length){curOption=options[key]=$.widget.extend({},this.options[key]);for(i=0;i<parts.length-1;i++){curOption[parts[i]]=curOption[parts[i]]||{};curOption=curOption[parts[i]];}\nkey=parts.pop();if(arguments.length===1){return curOption[key]===undefined?null:curOption[key];}\ncurOption[key]=value;}else{if(arguments.length===1){return this.options[key]===undefined?null:this.options[key];}\noptions[key]=value;}}\nthis._setOptions(options);return this;},_setOptions:function(options){var key;for(key in options){this._setOption(key,options[key]);}\nreturn this;},_setOption:function(key,value){if(key===\"classes\"){this._setOptionClasses(value);}\nthis.options[key]=value;if(key===\"disabled\"){this._setOptionDisabled(value);}\nreturn this;},_setOptionClasses:function(value){var classKey,elements,currentElements;for(classKey in value){currentElements=this.classesElementLookup[classKey];if(value[classKey]===this.options.classes[classKey]||!currentElements||!currentElements.length){continue;}\nelements=$(currentElements.get());this._removeClass(currentElements,classKey);elements.addClass(this._classes({element:elements,keys:classKey,classes:value,add:true}));}},_setOptionDisabled:function(value){this._toggleClass(this.widget(),this.widgetFullName+\"-disabled\",null,!!value);if(value){this._removeClass(this.hoverable,null,\"ui-state-hover\");this._removeClass(this.focusable,null,\"ui-state-focus\");}},enable:function(){return this._setOptions({disabled:false});},disable:function(){return this._setOptions({disabled:true});},_classes:function(options){var full=[];var that=this;options=$.extend({element:this.element,classes:this.options.classes||{}},options);function bindRemoveEvent(){var nodesToBind=[];options.element.each(function(_,element){var isTracked=$.map(that.classesElementLookup,function(elements){return elements;}).some(function(elements){return elements.is(element);});if(!isTracked){nodesToBind.push(element);}});that._on($(nodesToBind),{remove:\"_untrackClassesElement\"});}\nfunction processClassString(classes,checkOption){var current,i;for(i=0;i<classes.length;i++){current=that.classesElementLookup[classes[i]]||$();if(options.add){bindRemoveEvent();current=$($.uniqueSort(current.get().concat(options.element.get())));}else{current=$(current.not(options.element).get());}\nthat.classesElementLookup[classes[i]]=current;full.push(classes[i]);if(checkOption&&options.classes[classes[i]]){full.push(options.classes[classes[i]]);}}}\nif(options.keys){processClassString(options.keys.match(/\\S+/g)||[],true);}\nif(options.extra){processClassString(options.extra.match(/\\S+/g)||[]);}\nreturn full.join(\" \");},_untrackClassesElement:function(event){var that=this;$.each(that.classesElementLookup,function(key,value){if($.inArray(event.target,value)!==-1){that.classesElementLookup[key]=$(value.not(event.target).get());}});this._off($(event.target));},_removeClass:function(element,keys,extra){return this._toggleClass(element,keys,extra,false);},_addClass:function(element,keys,extra){return this._toggleClass(element,keys,extra,true);},_toggleClass:function(element,keys,extra,add){add=(typeof add===\"boolean\")?add:extra;var shift=(typeof element===\"string\"||element===null),options={extra:shift?keys:extra,keys:shift?element:keys,element:shift?this.element:element,add:add};options.element.toggleClass(this._classes(options),add);return this;},_on:function(suppressDisabledCheck,element,handlers){var delegateElement;var instance=this;if(typeof suppressDisabledCheck!==\"boolean\"){handlers=element;element=suppressDisabledCheck;suppressDisabledCheck=false;}\nif(!handlers){handlers=element;element=this.element;delegateElement=this.widget();}else{element=delegateElement=$(element);this.bindings=this.bindings.add(element);}\n$.each(handlers,function(event,handler){function handlerProxy(){if(!suppressDisabledCheck&&(instance.options.disabled===true||$(this).hasClass(\"ui-state-disabled\"))){return;}\nreturn(typeof handler===\"string\"?instance[handler]:handler).apply(instance,arguments);}\nif(typeof handler!==\"string\"){handlerProxy.guid=handler.guid=handler.guid||handlerProxy.guid||$.guid++;}\nvar match=event.match(/^([\\w:-]*)\\s*(.*)$/);var eventName=match[1]+instance.eventNamespace;var selector=match[2];if(selector){delegateElement.on(eventName,selector,handlerProxy);}else{element.on(eventName,handlerProxy);}});},_off:function(element,eventName){eventName=(eventName||\"\").split(\" \").join(this.eventNamespace+\" \")+\nthis.eventNamespace;element.off(eventName);this.bindings=$(this.bindings.not(element).get());this.focusable=$(this.focusable.not(element).get());this.hoverable=$(this.hoverable.not(element).get());},_delay:function(handler,delay){function handlerProxy(){return(typeof handler===\"string\"?instance[handler]:handler).apply(instance,arguments);}\nvar instance=this;return setTimeout(handlerProxy,delay||0);},_hoverable:function(element){this.hoverable=this.hoverable.add(element);this._on(element,{mouseenter:function(event){this._addClass($(event.currentTarget),null,\"ui-state-hover\");},mouseleave:function(event){this._removeClass($(event.currentTarget),null,\"ui-state-hover\");}});},_focusable:function(element){this.focusable=this.focusable.add(element);this._on(element,{focusin:function(event){this._addClass($(event.currentTarget),null,\"ui-state-focus\");},focusout:function(event){this._removeClass($(event.currentTarget),null,\"ui-state-focus\");}});},_trigger:function(type,event,data){var prop,orig;var callback=this.options[type];data=data||{};event=$.Event(event);event.type=(type===this.widgetEventPrefix?type:this.widgetEventPrefix+type).toLowerCase();event.target=this.element[0];orig=event.originalEvent;if(orig){for(prop in orig){if(!(prop in event)){event[prop]=orig[prop];}}}\nthis.element.trigger(event,data);return!(typeof callback===\"function\"&&callback.apply(this.element[0],[event].concat(data))===false||event.isDefaultPrevented());}};$.each({show:\"fadeIn\",hide:\"fadeOut\"},function(method,defaultEffect){$.Widget.prototype[\"_\"+method]=function(element,options,callback){if(typeof options===\"string\"){options={effect:options};}\nvar hasOptions;var effectName=!options?method:options===true||typeof options===\"number\"?defaultEffect:options.effect||defaultEffect;options=options||{};if(typeof options===\"number\"){options={duration:options};}else if(options===true){options={};}\nhasOptions=!$.isEmptyObject(options);options.complete=callback;if(options.delay){element.delay(options.delay);}\nif(hasOptions&&$.effects&&$.effects.effect[effectName]){element[method](options);}else if(effectName!==method&&element[effectName]){element[effectName](options.duration,options.easing,callback);}else{element.queue(function(next){$(this)[method]();if(callback){callback.call(element[0]);}\nnext();});}};});var widget=$.widget;\n/*!\n * jQuery UI Position 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/position/\n */\n(function(){var cachedScrollbarWidth,max=Math.max,abs=Math.abs,rhorizontal=/left|center|right/,rvertical=/top|center|bottom/,roffset=/[\\+\\-]\\d+(\\.[\\d]+)?%?/,rposition=/^\\w+/,rpercent=/%$/,_position=$.fn.position;function getOffsets(offsets,width,height){return[parseFloat(offsets[0])*(rpercent.test(offsets[0])?width / 100:1),parseFloat(offsets[1])*(rpercent.test(offsets[1])?height / 100:1)];}\nfunction parseCss(element,property){return parseInt($.css(element,property),10)||0;}\nfunction isWindow(obj){return obj!=null&&obj===obj.window;}\nfunction getDimensions(elem){var raw=elem[0];if(raw.nodeType===9){return{width:elem.width(),height:elem.height(),offset:{top:0,left:0}};}\nif(isWindow(raw)){return{width:elem.width(),height:elem.height(),offset:{top:elem.scrollTop(),left:elem.scrollLeft()}};}\nif(raw.preventDefault){return{width:0,height:0,offset:{top:raw.pageY,left:raw.pageX}};}\nreturn{width:elem.outerWidth(),height:elem.outerHeight(),offset:elem.offset()};}\n$.position={scrollbarWidth:function(){if(cachedScrollbarWidth!==undefined){return cachedScrollbarWidth;}\nvar w1,w2,div=$(\"<div style=\"+\"'display:block;position:absolute;width:200px;height:200px;overflow:hidden;'>\"+\"<div style='height:300px;width:auto;'></div></div>\"),innerDiv=div.children()[0];$(\"body\").append(div);w1=innerDiv.offsetWidth;div.css(\"overflow\",\"scroll\");w2=innerDiv.offsetWidth;if(w1===w2){w2=div[0].clientWidth;}\ndiv.remove();return(cachedScrollbarWidth=w1-w2);},getScrollInfo:function(within){var overflowX=within.isWindow||within.isDocument?\"\":within.element.css(\"overflow-x\"),overflowY=within.isWindow||within.isDocument?\"\":within.element.css(\"overflow-y\"),hasOverflowX=overflowX===\"scroll\"||(overflowX===\"auto\"&&within.width<within.element[0].scrollWidth),hasOverflowY=overflowY===\"scroll\"||(overflowY===\"auto\"&&within.height<within.element[0].scrollHeight);return{width:hasOverflowY?$.position.scrollbarWidth():0,height:hasOverflowX?$.position.scrollbarWidth():0};},getWithinInfo:function(element){var withinElement=$(element||window),isElemWindow=isWindow(withinElement[0]),isDocument=!!withinElement[0]&&withinElement[0].nodeType===9,hasOffset=!isElemWindow&&!isDocument;return{element:withinElement,isWindow:isElemWindow,isDocument:isDocument,offset:hasOffset?$(element).offset():{left:0,top:0},scrollLeft:withinElement.scrollLeft(),scrollTop:withinElement.scrollTop(),width:withinElement.outerWidth(),height:withinElement.outerHeight()};}};$.fn.position=function(options){if(!options||!options.of){return _position.apply(this,arguments);}\noptions=$.extend({},options);var atOffset,targetWidth,targetHeight,targetOffset,basePosition,dimensions,target=typeof options.of===\"string\"?$(document).find(options.of):$(options.of),within=$.position.getWithinInfo(options.within),scrollInfo=$.position.getScrollInfo(within),collision=(options.collision||\"flip\").split(\" \"),offsets={};dimensions=getDimensions(target);if(target[0].preventDefault){options.at=\"left top\";}\ntargetWidth=dimensions.width;targetHeight=dimensions.height;targetOffset=dimensions.offset;basePosition=$.extend({},targetOffset);$.each([\"my\",\"at\"],function(){var pos=(options[this]||\"\").split(\" \"),horizontalOffset,verticalOffset;if(pos.length===1){pos=rhorizontal.test(pos[0])?pos.concat([\"center\"]):rvertical.test(pos[0])?[\"center\"].concat(pos):[\"center\",\"center\"];}\npos[0]=rhorizontal.test(pos[0])?pos[0]:\"center\";pos[1]=rvertical.test(pos[1])?pos[1]:\"center\";horizontalOffset=roffset.exec(pos[0]);verticalOffset=roffset.exec(pos[1]);offsets[this]=[horizontalOffset?horizontalOffset[0]:0,verticalOffset?verticalOffset[0]:0];options[this]=[rposition.exec(pos[0])[0],rposition.exec(pos[1])[0]];});if(collision.length===1){collision[1]=collision[0];}\nif(options.at[0]===\"right\"){basePosition.left+=targetWidth;}else if(options.at[0]===\"center\"){basePosition.left+=targetWidth / 2;}\nif(options.at[1]===\"bottom\"){basePosition.top+=targetHeight;}else if(options.at[1]===\"center\"){basePosition.top+=targetHeight / 2;}\natOffset=getOffsets(offsets.at,targetWidth,targetHeight);basePosition.left+=atOffset[0];basePosition.top+=atOffset[1];return this.each(function(){var collisionPosition,using,elem=$(this),elemWidth=elem.outerWidth(),elemHeight=elem.outerHeight(),marginLeft=parseCss(this,\"marginLeft\"),marginTop=parseCss(this,\"marginTop\"),collisionWidth=elemWidth+marginLeft+parseCss(this,\"marginRight\")+\nscrollInfo.width,collisionHeight=elemHeight+marginTop+parseCss(this,\"marginBottom\")+\nscrollInfo.height,position=$.extend({},basePosition),myOffset=getOffsets(offsets.my,elem.outerWidth(),elem.outerHeight());if(options.my[0]===\"right\"){position.left-=elemWidth;}else if(options.my[0]===\"center\"){position.left-=elemWidth / 2;}\nif(options.my[1]===\"bottom\"){position.top-=elemHeight;}else if(options.my[1]===\"center\"){position.top-=elemHeight / 2;}\nposition.left+=myOffset[0];position.top+=myOffset[1];collisionPosition={marginLeft:marginLeft,marginTop:marginTop};$.each([\"left\",\"top\"],function(i,dir){if($.ui.position[collision[i]]){$.ui.position[collision[i]][dir](position,{targetWidth:targetWidth,targetHeight:targetHeight,elemWidth:elemWidth,elemHeight:elemHeight,collisionPosition:collisionPosition,collisionWidth:collisionWidth,collisionHeight:collisionHeight,offset:[atOffset[0]+myOffset[0],atOffset[1]+myOffset[1]],my:options.my,at:options.at,within:within,elem:elem});}});if(options.using){using=function(props){var left=targetOffset.left-position.left,right=left+targetWidth-elemWidth,top=targetOffset.top-position.top,bottom=top+targetHeight-elemHeight,feedback={target:{element:target,left:targetOffset.left,top:targetOffset.top,width:targetWidth,height:targetHeight},element:{element:elem,left:position.left,top:position.top,width:elemWidth,height:elemHeight},horizontal:right<0?\"left\":left>0?\"right\":\"center\",vertical:bottom<0?\"top\":top>0?\"bottom\":\"middle\"};if(targetWidth<elemWidth&&abs(left+right)<targetWidth){feedback.horizontal=\"center\";}\nif(targetHeight<elemHeight&&abs(top+bottom)<targetHeight){feedback.vertical=\"middle\";}\nif(max(abs(left),abs(right))>max(abs(top),abs(bottom))){feedback.important=\"horizontal\";}else{feedback.important=\"vertical\";}\noptions.using.call(this,props,feedback);};}\nelem.offset($.extend(position,{using:using}));});};$.ui.position={fit:{left:function(position,data){var within=data.within,withinOffset=within.isWindow?within.scrollLeft:within.offset.left,outerWidth=within.width,collisionPosLeft=position.left-data.collisionPosition.marginLeft,overLeft=withinOffset-collisionPosLeft,overRight=collisionPosLeft+data.collisionWidth-outerWidth-withinOffset,newOverRight;if(data.collisionWidth>outerWidth){if(overLeft>0&&overRight<=0){newOverRight=position.left+overLeft+data.collisionWidth-outerWidth-\nwithinOffset;position.left+=overLeft-newOverRight;}else if(overRight>0&&overLeft<=0){position.left=withinOffset;}else{if(overLeft>overRight){position.left=withinOffset+outerWidth-data.collisionWidth;}else{position.left=withinOffset;}}}else if(overLeft>0){position.left+=overLeft;}else if(overRight>0){position.left-=overRight;}else{position.left=max(position.left-collisionPosLeft,position.left);}},top:function(position,data){var within=data.within,withinOffset=within.isWindow?within.scrollTop:within.offset.top,outerHeight=data.within.height,collisionPosTop=position.top-data.collisionPosition.marginTop,overTop=withinOffset-collisionPosTop,overBottom=collisionPosTop+data.collisionHeight-outerHeight-withinOffset,newOverBottom;if(data.collisionHeight>outerHeight){if(overTop>0&&overBottom<=0){newOverBottom=position.top+overTop+data.collisionHeight-outerHeight-\nwithinOffset;position.top+=overTop-newOverBottom;}else if(overBottom>0&&overTop<=0){position.top=withinOffset;}else{if(overTop>overBottom){position.top=withinOffset+outerHeight-data.collisionHeight;}else{position.top=withinOffset;}}}else if(overTop>0){position.top+=overTop;}else if(overBottom>0){position.top-=overBottom;}else{position.top=max(position.top-collisionPosTop,position.top);}}},flip:{left:function(position,data){var within=data.within,withinOffset=within.offset.left+within.scrollLeft,outerWidth=within.width,offsetLeft=within.isWindow?within.scrollLeft:within.offset.left,collisionPosLeft=position.left-data.collisionPosition.marginLeft,overLeft=collisionPosLeft-offsetLeft,overRight=collisionPosLeft+data.collisionWidth-outerWidth-offsetLeft,myOffset=data.my[0]===\"left\"?-data.elemWidth:data.my[0]===\"right\"?data.elemWidth:0,atOffset=data.at[0]===\"left\"?data.targetWidth:data.at[0]===\"right\"?-data.targetWidth:0,offset=-2*data.offset[0],newOverRight,newOverLeft;if(overLeft<0){newOverRight=position.left+myOffset+atOffset+offset+data.collisionWidth-\nouterWidth-withinOffset;if(newOverRight<0||newOverRight<abs(overLeft)){position.left+=myOffset+atOffset+offset;}}else if(overRight>0){newOverLeft=position.left-data.collisionPosition.marginLeft+myOffset+\natOffset+offset-offsetLeft;if(newOverLeft>0||abs(newOverLeft)<overRight){position.left+=myOffset+atOffset+offset;}}},top:function(position,data){var within=data.within,withinOffset=within.offset.top+within.scrollTop,outerHeight=within.height,offsetTop=within.isWindow?within.scrollTop:within.offset.top,collisionPosTop=position.top-data.collisionPosition.marginTop,overTop=collisionPosTop-offsetTop,overBottom=collisionPosTop+data.collisionHeight-outerHeight-offsetTop,top=data.my[1]===\"top\",myOffset=top?-data.elemHeight:data.my[1]===\"bottom\"?data.elemHeight:0,atOffset=data.at[1]===\"top\"?data.targetHeight:data.at[1]===\"bottom\"?-data.targetHeight:0,offset=-2*data.offset[1],newOverTop,newOverBottom;if(overTop<0){newOverBottom=position.top+myOffset+atOffset+offset+data.collisionHeight-\nouterHeight-withinOffset;if(newOverBottom<0||newOverBottom<abs(overTop)){position.top+=myOffset+atOffset+offset;}}else if(overBottom>0){newOverTop=position.top-data.collisionPosition.marginTop+myOffset+atOffset+\noffset-offsetTop;if(newOverTop>0||abs(newOverTop)<overBottom){position.top+=myOffset+atOffset+offset;}}}},flipfit:{left:function(){$.ui.position.flip.left.apply(this,arguments);$.ui.position.fit.left.apply(this,arguments);},top:function(){$.ui.position.flip.top.apply(this,arguments);$.ui.position.fit.top.apply(this,arguments);}}};})();var position=$.ui.position;\n/*!\n * jQuery UI :data 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\nvar data=$.extend($.expr.pseudos,{data:$.expr.createPseudo?$.expr.createPseudo(function(dataName){return function(elem){return!!$.data(elem,dataName);};}):function(elem,i,match){return!!$.data(elem,match[3]);}});\n/*!\n * jQuery UI Disable Selection 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\nvar disableSelection=$.fn.extend({disableSelection:(function(){var eventType=\"onselectstart\"in document.createElement(\"div\")?\"selectstart\":\"mousedown\";return function(){return this.on(eventType+\".ui-disableSelection\",function(event){event.preventDefault();});};})(),enableSelection:function(){return this.off(\".ui-disableSelection\");}});var jQuery=$;\n/*!\n * jQuery Color Animations v2.2.0\n * https://github.com/jquery/jquery-color\n *\n * Copyright OpenJS Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * Date: Sun May 10 09:02:36 2020 +0200\n */\nvar stepHooks=\"backgroundColor borderBottomColor borderLeftColor borderRightColor \"+\"borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor\",class2type={},toString=class2type.toString,rplusequals=/^([\\-+])=\\s*(\\d+\\.?\\d*)/,stringParsers=[{re:/rgba?\\(\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*(?:,\\s*(\\d?(?:\\.\\d+)?)\\s*)?\\)/,parse:function(execResult){return[execResult[1],execResult[2],execResult[3],execResult[4]];}},{re:/rgba?\\(\\s*(\\d+(?:\\.\\d+)?)\\%\\s*,\\s*(\\d+(?:\\.\\d+)?)\\%\\s*,\\s*(\\d+(?:\\.\\d+)?)\\%\\s*(?:,\\s*(\\d?(?:\\.\\d+)?)\\s*)?\\)/,parse:function(execResult){return[execResult[1]*2.55,execResult[2]*2.55,execResult[3]*2.55,execResult[4]];}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?/,parse:function(execResult){return[parseInt(execResult[1],16),parseInt(execResult[2],16),parseInt(execResult[3],16),execResult[4]?(parseInt(execResult[4],16)/ 255).toFixed(2):1];}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?/,parse:function(execResult){return[parseInt(execResult[1]+execResult[1],16),parseInt(execResult[2]+execResult[2],16),parseInt(execResult[3]+execResult[3],16),execResult[4]?(parseInt(execResult[4]+execResult[4],16)/ 255).toFixed(2):1];}},{re:/hsla?\\(\\s*(\\d+(?:\\.\\d+)?)\\s*,\\s*(\\d+(?:\\.\\d+)?)\\%\\s*,\\s*(\\d+(?:\\.\\d+)?)\\%\\s*(?:,\\s*(\\d?(?:\\.\\d+)?)\\s*)?\\)/,space:\"hsla\",parse:function(execResult){return[execResult[1],execResult[2]/ 100,execResult[3]/ 100,execResult[4]];}}],color=jQuery.Color=function(color,green,blue,alpha){return new jQuery.Color.fn.parse(color,green,blue,alpha);},spaces={rgba:{props:{red:{idx:0,type:\"byte\"},green:{idx:1,type:\"byte\"},blue:{idx:2,type:\"byte\"}}},hsla:{props:{hue:{idx:0,type:\"degrees\"},saturation:{idx:1,type:\"percent\"},lightness:{idx:2,type:\"percent\"}}}},propTypes={\"byte\":{floor:true,max:255},\"percent\":{max:1},\"degrees\":{mod:360,floor:true}},support=color.support={},supportElem=jQuery(\"<p>\")[0],colors,each=jQuery.each;supportElem.style.cssText=\"background-color:rgba(1,1,1,.5)\";support.rgba=supportElem.style.backgroundColor.indexOf(\"rgba\")>-1;each(spaces,function(spaceName,space){space.cache=\"_\"+spaceName;space.props.alpha={idx:3,type:\"percent\",def:1};});jQuery.each(\"Boolean Number String Function Array Date RegExp Object Error Symbol\".split(\" \"),function(_i,name){class2type[\"[object \"+name+\"]\"]=name.toLowerCase();});function getType(obj){if(obj==null){return obj+\"\";}\nreturn typeof obj===\"object\"?class2type[toString.call(obj)]||\"object\":typeof obj;}\nfunction clamp(value,prop,allowEmpty){var type=propTypes[prop.type]||{};if(value==null){return(allowEmpty||!prop.def)?null:prop.def;}\nvalue=type.floor?~~value:parseFloat(value);if(isNaN(value)){return prop.def;}\nif(type.mod){return(value+type.mod)%type.mod;}\nreturn Math.min(type.max,Math.max(0,value));}\nfunction stringParse(string){var inst=color(),rgba=inst._rgba=[];string=string.toLowerCase();each(stringParsers,function(_i,parser){var parsed,match=parser.re.exec(string),values=match&&parser.parse(match),spaceName=parser.space||\"rgba\";if(values){parsed=inst[spaceName](values);inst[spaces[spaceName].cache]=parsed[spaces[spaceName].cache];rgba=inst._rgba=parsed._rgba;return false;}});if(rgba.length){if(rgba.join()===\"0,0,0,0\"){jQuery.extend(rgba,colors.transparent);}\nreturn inst;}\nreturn colors[string];}\ncolor.fn=jQuery.extend(color.prototype,{parse:function(red,green,blue,alpha){if(red===undefined){this._rgba=[null,null,null,null];return this;}\nif(red.jquery||red.nodeType){red=jQuery(red).css(green);green=undefined;}\nvar inst=this,type=getType(red),rgba=this._rgba=[];if(green!==undefined){red=[red,green,blue,alpha];type=\"array\";}\nif(type===\"string\"){return this.parse(stringParse(red)||colors._default);}\nif(type===\"array\"){each(spaces.rgba.props,function(_key,prop){rgba[prop.idx]=clamp(red[prop.idx],prop);});return this;}\nif(type===\"object\"){if(red instanceof color){each(spaces,function(_spaceName,space){if(red[space.cache]){inst[space.cache]=red[space.cache].slice();}});}else{each(spaces,function(_spaceName,space){var cache=space.cache;each(space.props,function(key,prop){if(!inst[cache]&&space.to){if(key===\"alpha\"||red[key]==null){return;}\ninst[cache]=space.to(inst._rgba);}\ninst[cache][prop.idx]=clamp(red[key],prop,true);});if(inst[cache]&&jQuery.inArray(null,inst[cache].slice(0,3))<0){if(inst[cache][3]==null){inst[cache][3]=1;}\nif(space.from){inst._rgba=space.from(inst[cache]);}}});}\nreturn this;}},is:function(compare){var is=color(compare),same=true,inst=this;each(spaces,function(_,space){var localCache,isCache=is[space.cache];if(isCache){localCache=inst[space.cache]||space.to&&space.to(inst._rgba)||[];each(space.props,function(_,prop){if(isCache[prop.idx]!=null){same=(isCache[prop.idx]===localCache[prop.idx]);return same;}});}\nreturn same;});return same;},_space:function(){var used=[],inst=this;each(spaces,function(spaceName,space){if(inst[space.cache]){used.push(spaceName);}});return used.pop();},transition:function(other,distance){var end=color(other),spaceName=end._space(),space=spaces[spaceName],startColor=this.alpha()===0?color(\"transparent\"):this,start=startColor[space.cache]||space.to(startColor._rgba),result=start.slice();end=end[space.cache];each(space.props,function(_key,prop){var index=prop.idx,startValue=start[index],endValue=end[index],type=propTypes[prop.type]||{};if(endValue===null){return;}\nif(startValue===null){result[index]=endValue;}else{if(type.mod){if(endValue-startValue>type.mod / 2){startValue+=type.mod;}else if(startValue-endValue>type.mod / 2){startValue-=type.mod;}}\nresult[index]=clamp((endValue-startValue)*distance+startValue,prop);}});return this[spaceName](result);},blend:function(opaque){if(this._rgba[3]===1){return this;}\nvar rgb=this._rgba.slice(),a=rgb.pop(),blend=color(opaque)._rgba;return color(jQuery.map(rgb,function(v,i){return(1-a)*blend[i]+a*v;}));},toRgbaString:function(){var prefix=\"rgba(\",rgba=jQuery.map(this._rgba,function(v,i){if(v!=null){return v;}\nreturn i>2?1:0;});if(rgba[3]===1){rgba.pop();prefix=\"rgb(\";}\nreturn prefix+rgba.join()+\")\";},toHslaString:function(){var prefix=\"hsla(\",hsla=jQuery.map(this.hsla(),function(v,i){if(v==null){v=i>2?1:0;}\nif(i&&i<3){v=Math.round(v*100)+\"%\";}\nreturn v;});if(hsla[3]===1){hsla.pop();prefix=\"hsl(\";}\nreturn prefix+hsla.join()+\")\";},toHexString:function(includeAlpha){var rgba=this._rgba.slice(),alpha=rgba.pop();if(includeAlpha){rgba.push(~~(alpha*255));}\nreturn\"#\"+jQuery.map(rgba,function(v){v=(v||0).toString(16);return v.length===1?\"0\"+v:v;}).join(\"\");},toString:function(){return this._rgba[3]===0?\"transparent\":this.toRgbaString();}});color.fn.parse.prototype=color.fn;function hue2rgb(p,q,h){h=(h+1)%1;if(h*6<1){return p+(q-p)*h*6;}\nif(h*2<1){return q;}\nif(h*3<2){return p+(q-p)*((2 / 3)-h)*6;}\nreturn p;}\nspaces.hsla.to=function(rgba){if(rgba[0]==null||rgba[1]==null||rgba[2]==null){return[null,null,null,rgba[3]];}\nvar r=rgba[0]/ 255,g=rgba[1]/ 255,b=rgba[2]/ 255,a=rgba[3],max=Math.max(r,g,b),min=Math.min(r,g,b),diff=max-min,add=max+min,l=add*0.5,h,s;if(min===max){h=0;}else if(r===max){h=(60*(g-b)/ diff)+360;}else if(g===max){h=(60*(b-r)/ diff)+120;}else{h=(60*(r-g)/ diff)+240;}\nif(diff===0){s=0;}else if(l<=0.5){s=diff / add;}else{s=diff /(2-add);}\nreturn[Math.round(h)%360,s,l,a==null?1:a];};spaces.hsla.from=function(hsla){if(hsla[0]==null||hsla[1]==null||hsla[2]==null){return[null,null,null,hsla[3]];}\nvar h=hsla[0]/ 360,s=hsla[1],l=hsla[2],a=hsla[3],q=l<=0.5?l*(1+s):l+s-l*s,p=2*l-q;return[Math.round(hue2rgb(p,q,h+(1 / 3))*255),Math.round(hue2rgb(p,q,h)*255),Math.round(hue2rgb(p,q,h-(1 / 3))*255),a];};each(spaces,function(spaceName,space){var props=space.props,cache=space.cache,to=space.to,from=space.from;color.fn[spaceName]=function(value){if(to&&!this[cache]){this[cache]=to(this._rgba);}\nif(value===undefined){return this[cache].slice();}\nvar ret,type=getType(value),arr=(type===\"array\"||type===\"object\")?value:arguments,local=this[cache].slice();each(props,function(key,prop){var val=arr[type===\"object\"?key:prop.idx];if(val==null){val=local[prop.idx];}\nlocal[prop.idx]=clamp(val,prop);});if(from){ret=color(from(local));ret[cache]=local;return ret;}else{return color(local);}};each(props,function(key,prop){if(color.fn[key]){return;}\ncolor.fn[key]=function(value){var local,cur,match,fn,vtype=getType(value);if(key===\"alpha\"){fn=this._hsla?\"hsla\":\"rgba\";}else{fn=spaceName;}\nlocal=this[fn]();cur=local[prop.idx];if(vtype===\"undefined\"){return cur;}\nif(vtype===\"function\"){value=value.call(this,cur);vtype=getType(value);}\nif(value==null&&prop.empty){return this;}\nif(vtype===\"string\"){match=rplusequals.exec(value);if(match){value=cur+parseFloat(match[2])*(match[1]===\"+\"?1:-1);}}\nlocal[prop.idx]=value;return this[fn](local);};});});color.hook=function(hook){var hooks=hook.split(\" \");each(hooks,function(_i,hook){jQuery.cssHooks[hook]={set:function(elem,value){var parsed,curElem,backgroundColor=\"\";if(value!==\"transparent\"&&(getType(value)!==\"string\"||(parsed=stringParse(value)))){value=color(parsed||value);if(!support.rgba&&value._rgba[3]!==1){curElem=hook===\"backgroundColor\"?elem.parentNode:elem;while((backgroundColor===\"\"||backgroundColor===\"transparent\")&&curElem&&curElem.style){try{backgroundColor=jQuery.css(curElem,\"backgroundColor\");curElem=curElem.parentNode;}catch(e){}}\nvalue=value.blend(backgroundColor&&backgroundColor!==\"transparent\"?backgroundColor:\"_default\");}\nvalue=value.toRgbaString();}\ntry{elem.style[hook]=value;}catch(e){}}};jQuery.fx.step[hook]=function(fx){if(!fx.colorInit){fx.start=color(fx.elem,hook);fx.end=color(fx.end);fx.colorInit=true;}\njQuery.cssHooks[hook].set(fx.elem,fx.start.transition(fx.end,fx.pos));};});};color.hook(stepHooks);jQuery.cssHooks.borderColor={expand:function(value){var expanded={};each([\"Top\",\"Right\",\"Bottom\",\"Left\"],function(_i,part){expanded[\"border\"+part+\"Color\"]=value;});return expanded;}};colors=jQuery.Color.names={aqua:\"#00ffff\",black:\"#000000\",blue:\"#0000ff\",fuchsia:\"#ff00ff\",gray:\"#808080\",green:\"#008000\",lime:\"#00ff00\",maroon:\"#800000\",navy:\"#000080\",olive:\"#808000\",purple:\"#800080\",red:\"#ff0000\",silver:\"#c0c0c0\",teal:\"#008080\",white:\"#ffffff\",yellow:\"#ffff00\",transparent:[null,null,null,0],_default:\"#ffffff\"};\n/*!\n * jQuery UI Effects 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\nvar dataSpace=\"ui-effects-\",dataSpaceStyle=\"ui-effects-style\",dataSpaceAnimated=\"ui-effects-animated\";$.effects={effect:{}};(function(){var classAnimationActions=[\"add\",\"remove\",\"toggle\"],shorthandStyles={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};$.each([\"borderLeftStyle\",\"borderRightStyle\",\"borderBottomStyle\",\"borderTopStyle\"],function(_,prop){$.fx.step[prop]=function(fx){if(fx.end!==\"none\"&&!fx.setAttr||fx.pos===1&&!fx.setAttr){jQuery.style(fx.elem,prop,fx.end);fx.setAttr=true;}};});function camelCase(string){return string.replace(/-([\\da-z])/gi,function(all,letter){return letter.toUpperCase();});}\nfunction getElementStyles(elem){var key,len,style=elem.ownerDocument.defaultView?elem.ownerDocument.defaultView.getComputedStyle(elem,null):elem.currentStyle,styles={};if(style&&style.length&&style[0]&&style[style[0]]){len=style.length;while(len--){key=style[len];if(typeof style[key]===\"string\"){styles[camelCase(key)]=style[key];}}}else{for(key in style){if(typeof style[key]===\"string\"){styles[key]=style[key];}}}\nreturn styles;}\nfunction styleDifference(oldStyle,newStyle){var diff={},name,value;for(name in newStyle){value=newStyle[name];if(oldStyle[name]!==value){if(!shorthandStyles[name]){if($.fx.step[name]||!isNaN(parseFloat(value))){diff[name]=value;}}}}\nreturn diff;}\nif(!$.fn.addBack){$.fn.addBack=function(selector){return this.add(selector==null?this.prevObject:this.prevObject.filter(selector));};}\n$.effects.animateClass=function(value,duration,easing,callback){var o=$.speed(duration,easing,callback);return this.queue(function(){var animated=$(this),baseClass=animated.attr(\"class\")||\"\",applyClassChange,allAnimations=o.children?animated.find(\"*\").addBack():animated;allAnimations=allAnimations.map(function(){var el=$(this);return{el:el,start:getElementStyles(this)};});applyClassChange=function(){$.each(classAnimationActions,function(i,action){if(value[action]){animated[action+\"Class\"](value[action]);}});};applyClassChange();allAnimations=allAnimations.map(function(){this.end=getElementStyles(this.el[0]);this.diff=styleDifference(this.start,this.end);return this;});animated.attr(\"class\",baseClass);allAnimations=allAnimations.map(function(){var styleInfo=this,dfd=$.Deferred(),opts=$.extend({},o,{queue:false,complete:function(){dfd.resolve(styleInfo);}});this.el.animate(this.diff,opts);return dfd.promise();});$.when.apply($,allAnimations.get()).done(function(){applyClassChange();$.each(arguments,function(){var el=this.el;$.each(this.diff,function(key){el.css(key,\"\");});});o.complete.call(animated[0]);});});};$.fn.extend({addClass:(function(orig){return function(classNames,speed,easing,callback){return speed?$.effects.animateClass.call(this,{add:classNames},speed,easing,callback):orig.apply(this,arguments);};})($.fn.addClass),removeClass:(function(orig){return function(classNames,speed,easing,callback){return arguments.length>1?$.effects.animateClass.call(this,{remove:classNames},speed,easing,callback):orig.apply(this,arguments);};})($.fn.removeClass),toggleClass:(function(orig){return function(classNames,force,speed,easing,callback){if(typeof force===\"boolean\"||force===undefined){if(!speed){return orig.apply(this,arguments);}else{return $.effects.animateClass.call(this,(force?{add:classNames}:{remove:classNames}),speed,easing,callback);}}else{return $.effects.animateClass.call(this,{toggle:classNames},force,speed,easing);}};})($.fn.toggleClass),switchClass:function(remove,add,speed,easing,callback){return $.effects.animateClass.call(this,{add:add,remove:remove},speed,easing,callback);}});})();(function(){if($.expr&&$.expr.pseudos&&$.expr.pseudos.animated){$.expr.pseudos.animated=(function(orig){return function(elem){return!!$(elem).data(dataSpaceAnimated)||orig(elem);};})($.expr.pseudos.animated);}\nif($.uiBackCompat!==false){$.extend($.effects,{save:function(element,set){var i=0,length=set.length;for(;i<length;i++){if(set[i]!==null){element.data(dataSpace+set[i],element[0].style[set[i]]);}}},restore:function(element,set){var val,i=0,length=set.length;for(;i<length;i++){if(set[i]!==null){val=element.data(dataSpace+set[i]);element.css(set[i],val);}}},setMode:function(el,mode){if(mode===\"toggle\"){mode=el.is(\":hidden\")?\"show\":\"hide\";}\nreturn mode;},createWrapper:function(element){if(element.parent().is(\".ui-effects-wrapper\")){return element.parent();}\nvar props={width:element.outerWidth(true),height:element.outerHeight(true),\"float\":element.css(\"float\")},wrapper=$(\"<div></div>\").addClass(\"ui-effects-wrapper\").css({fontSize:\"100%\",background:\"transparent\",border:\"none\",margin:0,padding:0}),size={width:element.width(),height:element.height()},active=document.activeElement;try{active.id;}catch(e){active=document.body;}\nelement.wrap(wrapper);if(element[0]===active||$.contains(element[0],active)){$(active).trigger(\"focus\");}\nwrapper=element.parent();if(element.css(\"position\")===\"static\"){wrapper.css({position:\"relative\"});element.css({position:\"relative\"});}else{$.extend(props,{position:element.css(\"position\"),zIndex:element.css(\"z-index\")});$.each([\"top\",\"left\",\"bottom\",\"right\"],function(i,pos){props[pos]=element.css(pos);if(isNaN(parseInt(props[pos],10))){props[pos]=\"auto\";}});element.css({position:\"relative\",top:0,left:0,right:\"auto\",bottom:\"auto\"});}\nelement.css(size);return wrapper.css(props).show();},removeWrapper:function(element){var active=document.activeElement;if(element.parent().is(\".ui-effects-wrapper\")){element.parent().replaceWith(element);if(element[0]===active||$.contains(element[0],active)){$(active).trigger(\"focus\");}}\nreturn element;}});}\n$.extend($.effects,{version:\"1.13.2\",define:function(name,mode,effect){if(!effect){effect=mode;mode=\"effect\";}\n$.effects.effect[name]=effect;$.effects.effect[name].mode=mode;return effect;},scaledDimensions:function(element,percent,direction){if(percent===0){return{height:0,width:0,outerHeight:0,outerWidth:0};}\nvar x=direction!==\"horizontal\"?((percent||100)/ 100):1,y=direction!==\"vertical\"?((percent||100)/ 100):1;return{height:element.height()*y,width:element.width()*x,outerHeight:element.outerHeight()*y,outerWidth:element.outerWidth()*x};},clipToBox:function(animation){return{width:animation.clip.right-animation.clip.left,height:animation.clip.bottom-animation.clip.top,left:animation.clip.left,top:animation.clip.top};},unshift:function(element,queueLength,count){var queue=element.queue();if(queueLength>1){queue.splice.apply(queue,[1,0].concat(queue.splice(queueLength,count)));}\nelement.dequeue();},saveStyle:function(element){element.data(dataSpaceStyle,element[0].style.cssText);},restoreStyle:function(element){element[0].style.cssText=element.data(dataSpaceStyle)||\"\";element.removeData(dataSpaceStyle);},mode:function(element,mode){var hidden=element.is(\":hidden\");if(mode===\"toggle\"){mode=hidden?\"show\":\"hide\";}\nif(hidden?mode===\"hide\":mode===\"show\"){mode=\"none\";}\nreturn mode;},getBaseline:function(origin,original){var y,x;switch(origin[0]){case\"top\":y=0;break;case\"middle\":y=0.5;break;case\"bottom\":y=1;break;default:y=origin[0]/ original.height;}\nswitch(origin[1]){case\"left\":x=0;break;case\"center\":x=0.5;break;case\"right\":x=1;break;default:x=origin[1]/ original.width;}\nreturn{x:x,y:y};},createPlaceholder:function(element){var placeholder,cssPosition=element.css(\"position\"),position=element.position();element.css({marginTop:element.css(\"marginTop\"),marginBottom:element.css(\"marginBottom\"),marginLeft:element.css(\"marginLeft\"),marginRight:element.css(\"marginRight\")}).outerWidth(element.outerWidth()).outerHeight(element.outerHeight());if(/^(static|relative)/.test(cssPosition)){cssPosition=\"absolute\";placeholder=$(\"<\"+element[0].nodeName+\">\").insertAfter(element).css({display:/^(inline|ruby)/.test(element.css(\"display\"))?\"inline-block\":\"block\",visibility:\"hidden\",marginTop:element.css(\"marginTop\"),marginBottom:element.css(\"marginBottom\"),marginLeft:element.css(\"marginLeft\"),marginRight:element.css(\"marginRight\"),\"float\":element.css(\"float\")}).outerWidth(element.outerWidth()).outerHeight(element.outerHeight()).addClass(\"ui-effects-placeholder\");element.data(dataSpace+\"placeholder\",placeholder);}\nelement.css({position:cssPosition,left:position.left,top:position.top});return placeholder;},removePlaceholder:function(element){var dataKey=dataSpace+\"placeholder\",placeholder=element.data(dataKey);if(placeholder){placeholder.remove();element.removeData(dataKey);}},cleanUp:function(element){$.effects.restoreStyle(element);$.effects.removePlaceholder(element);},setTransition:function(element,list,factor,value){value=value||{};$.each(list,function(i,x){var unit=element.cssUnit(x);if(unit[0]>0){value[x]=unit[0]*factor+unit[1];}});return value;}});function _normalizeArguments(effect,options,speed,callback){if($.isPlainObject(effect)){options=effect;effect=effect.effect;}\neffect={effect:effect};if(options==null){options={};}\nif(typeof options===\"function\"){callback=options;speed=null;options={};}\nif(typeof options===\"number\"||$.fx.speeds[options]){callback=speed;speed=options;options={};}\nif(typeof speed===\"function\"){callback=speed;speed=null;}\nif(options){$.extend(effect,options);}\nspeed=speed||options.duration;effect.duration=$.fx.off?0:typeof speed===\"number\"?speed:speed in $.fx.speeds?$.fx.speeds[speed]:$.fx.speeds._default;effect.complete=callback||options.complete;return effect;}\nfunction standardAnimationOption(option){if(!option||typeof option===\"number\"||$.fx.speeds[option]){return true;}\nif(typeof option===\"string\"&&!$.effects.effect[option]){return true;}\nif(typeof option===\"function\"){return true;}\nif(typeof option===\"object\"&&!option.effect){return true;}\nreturn false;}\n$.fn.extend({effect:function(){var args=_normalizeArguments.apply(this,arguments),effectMethod=$.effects.effect[args.effect],defaultMode=effectMethod.mode,queue=args.queue,queueName=queue||\"fx\",complete=args.complete,mode=args.mode,modes=[],prefilter=function(next){var el=$(this),normalizedMode=$.effects.mode(el,mode)||defaultMode;el.data(dataSpaceAnimated,true);modes.push(normalizedMode);if(defaultMode&&(normalizedMode===\"show\"||(normalizedMode===defaultMode&&normalizedMode===\"hide\"))){el.show();}\nif(!defaultMode||normalizedMode!==\"none\"){$.effects.saveStyle(el);}\nif(typeof next===\"function\"){next();}};if($.fx.off||!effectMethod){if(mode){return this[mode](args.duration,complete);}else{return this.each(function(){if(complete){complete.call(this);}});}}\nfunction run(next){var elem=$(this);function cleanup(){elem.removeData(dataSpaceAnimated);$.effects.cleanUp(elem);if(args.mode===\"hide\"){elem.hide();}\ndone();}\nfunction done(){if(typeof complete===\"function\"){complete.call(elem[0]);}\nif(typeof next===\"function\"){next();}}\nargs.mode=modes.shift();if($.uiBackCompat!==false&&!defaultMode){if(elem.is(\":hidden\")?mode===\"hide\":mode===\"show\"){elem[mode]();done();}else{effectMethod.call(elem[0],args,done);}}else{if(args.mode===\"none\"){elem[mode]();done();}else{effectMethod.call(elem[0],args,cleanup);}}}\nreturn queue===false?this.each(prefilter).each(run):this.queue(queueName,prefilter).queue(queueName,run);},show:(function(orig){return function(option){if(standardAnimationOption(option)){return orig.apply(this,arguments);}else{var args=_normalizeArguments.apply(this,arguments);args.mode=\"show\";return this.effect.call(this,args);}};})($.fn.show),hide:(function(orig){return function(option){if(standardAnimationOption(option)){return orig.apply(this,arguments);}else{var args=_normalizeArguments.apply(this,arguments);args.mode=\"hide\";return this.effect.call(this,args);}};})($.fn.hide),toggle:(function(orig){return function(option){if(standardAnimationOption(option)||typeof option===\"boolean\"){return orig.apply(this,arguments);}else{var args=_normalizeArguments.apply(this,arguments);args.mode=\"toggle\";return this.effect.call(this,args);}};})($.fn.toggle),cssUnit:function(key){var style=this.css(key),val=[];$.each([\"em\",\"px\",\"%\",\"pt\"],function(i,unit){if(style.indexOf(unit)>0){val=[parseFloat(style),unit];}});return val;},cssClip:function(clipObj){if(clipObj){return this.css(\"clip\",\"rect(\"+clipObj.top+\"px \"+clipObj.right+\"px \"+\nclipObj.bottom+\"px \"+clipObj.left+\"px)\");}\nreturn parseClip(this.css(\"clip\"),this);},transfer:function(options,done){var element=$(this),target=$(options.to),targetFixed=target.css(\"position\")===\"fixed\",body=$(\"body\"),fixTop=targetFixed?body.scrollTop():0,fixLeft=targetFixed?body.scrollLeft():0,endPosition=target.offset(),animation={top:endPosition.top-fixTop,left:endPosition.left-fixLeft,height:target.innerHeight(),width:target.innerWidth()},startPosition=element.offset(),transfer=$(\"<div class='ui-effects-transfer'></div>\");transfer.appendTo(\"body\").addClass(options.className).css({top:startPosition.top-fixTop,left:startPosition.left-fixLeft,height:element.innerHeight(),width:element.innerWidth(),position:targetFixed?\"fixed\":\"absolute\"}).animate(animation,options.duration,options.easing,function(){transfer.remove();if(typeof done===\"function\"){done();}});}});function parseClip(str,element){var outerWidth=element.outerWidth(),outerHeight=element.outerHeight(),clipRegex=/^rect\\((-?\\d*\\.?\\d*px|-?\\d+%|auto),?\\s*(-?\\d*\\.?\\d*px|-?\\d+%|auto),?\\s*(-?\\d*\\.?\\d*px|-?\\d+%|auto),?\\s*(-?\\d*\\.?\\d*px|-?\\d+%|auto)\\)$/,values=clipRegex.exec(str)||[\"\",0,outerWidth,outerHeight,0];return{top:parseFloat(values[1])||0,right:values[2]===\"auto\"?outerWidth:parseFloat(values[2]),bottom:values[3]===\"auto\"?outerHeight:parseFloat(values[3]),left:parseFloat(values[4])||0};}\n$.fx.step.clip=function(fx){if(!fx.clipInit){fx.start=$(fx.elem).cssClip();if(typeof fx.end===\"string\"){fx.end=parseClip(fx.end,fx.elem);}\nfx.clipInit=true;}\n$(fx.elem).cssClip({top:fx.pos*(fx.end.top-fx.start.top)+fx.start.top,right:fx.pos*(fx.end.right-fx.start.right)+fx.start.right,bottom:fx.pos*(fx.end.bottom-fx.start.bottom)+fx.start.bottom,left:fx.pos*(fx.end.left-fx.start.left)+fx.start.left});};})();(function(){var baseEasings={};$.each([\"Quad\",\"Cubic\",\"Quart\",\"Quint\",\"Expo\"],function(i,name){baseEasings[name]=function(p){return Math.pow(p,i+2);};});$.extend(baseEasings,{Sine:function(p){return 1-Math.cos(p*Math.PI / 2);},Circ:function(p){return 1-Math.sqrt(1-p*p);},Elastic:function(p){return p===0||p===1?p:-Math.pow(2,8*(p-1))*Math.sin(((p-1)*80-7.5)*Math.PI / 15);},Back:function(p){return p*p*(3*p-2);},Bounce:function(p){var pow2,bounce=4;while(p<((pow2=Math.pow(2,--bounce))-1)/ 11){}\nreturn 1 / Math.pow(4,3-bounce)-7.5625*Math.pow((pow2*3-2)/ 22-p,2);}});$.each(baseEasings,function(name,easeIn){$.easing[\"easeIn\"+name]=easeIn;$.easing[\"easeOut\"+name]=function(p){return 1-easeIn(1-p);};$.easing[\"easeInOut\"+name]=function(p){return p<0.5?easeIn(p*2)/ 2:1-easeIn(p*-2+2)/ 2;};});})();var effect=$.effects;\n/*!\n * jQuery UI Effects Blind 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\nvar effectsEffectBlind=$.effects.define(\"blind\",\"hide\",function(options,done){var map={up:[\"bottom\",\"top\"],vertical:[\"bottom\",\"top\"],down:[\"top\",\"bottom\"],left:[\"right\",\"left\"],horizontal:[\"right\",\"left\"],right:[\"left\",\"right\"]},element=$(this),direction=options.direction||\"up\",start=element.cssClip(),animate={clip:$.extend({},start)},placeholder=$.effects.createPlaceholder(element);animate.clip[map[direction][0]]=animate.clip[map[direction][1]];if(options.mode===\"show\"){element.cssClip(animate.clip);if(placeholder){placeholder.css($.effects.clipToBox(animate));}\nanimate.clip=start;}\nif(placeholder){placeholder.animate($.effects.clipToBox(animate),options.duration,options.easing);}\nelement.animate(animate,{queue:false,duration:options.duration,easing:options.easing,complete:done});});\n/*!\n * jQuery UI Effects Bounce 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\nvar effectsEffectBounce=$.effects.define(\"bounce\",function(options,done){var upAnim,downAnim,refValue,element=$(this),mode=options.mode,hide=mode===\"hide\",show=mode===\"show\",direction=options.direction||\"up\",distance=options.distance,times=options.times||5,anims=times*2+(show||hide?1:0),speed=options.duration / anims,easing=options.easing,ref=(direction===\"up\"||direction===\"down\")?\"top\":\"left\",motion=(direction===\"up\"||direction===\"left\"),i=0,queuelen=element.queue().length;$.effects.createPlaceholder(element);refValue=element.css(ref);if(!distance){distance=element[ref===\"top\"?\"outerHeight\":\"outerWidth\"]()/ 3;}\nif(show){downAnim={opacity:1};downAnim[ref]=refValue;element.css(\"opacity\",0).css(ref,motion?-distance*2:distance*2).animate(downAnim,speed,easing);}\nif(hide){distance=distance / Math.pow(2,times-1);}\ndownAnim={};downAnim[ref]=refValue;for(;i<times;i++){upAnim={};upAnim[ref]=(motion?\"-=\":\"+=\")+distance;element.animate(upAnim,speed,easing).animate(downAnim,speed,easing);distance=hide?distance*2:distance / 2;}\nif(hide){upAnim={opacity:0};upAnim[ref]=(motion?\"-=\":\"+=\")+distance;element.animate(upAnim,speed,easing);}\nelement.queue(done);$.effects.unshift(element,queuelen,anims+1);});\n/*!\n * jQuery UI Effects Clip 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\nvar effectsEffectClip=$.effects.define(\"clip\",\"hide\",function(options,done){var start,animate={},element=$(this),direction=options.direction||\"vertical\",both=direction===\"both\",horizontal=both||direction===\"horizontal\",vertical=both||direction===\"vertical\";start=element.cssClip();animate.clip={top:vertical?(start.bottom-start.top)/ 2:start.top,right:horizontal?(start.right-start.left)/ 2:start.right,bottom:vertical?(start.bottom-start.top)/ 2:start.bottom,left:horizontal?(start.right-start.left)/ 2:start.left};$.effects.createPlaceholder(element);if(options.mode===\"show\"){element.cssClip(animate.clip);animate.clip=start;}\nelement.animate(animate,{queue:false,duration:options.duration,easing:options.easing,complete:done});});\n/*!\n * jQuery UI Effects Drop 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\nvar effectsEffectDrop=$.effects.define(\"drop\",\"hide\",function(options,done){var distance,element=$(this),mode=options.mode,show=mode===\"show\",direction=options.direction||\"left\",ref=(direction===\"up\"||direction===\"down\")?\"top\":\"left\",motion=(direction===\"up\"||direction===\"left\")?\"-=\":\"+=\",oppositeMotion=(motion===\"+=\")?\"-=\":\"+=\",animation={opacity:0};$.effects.createPlaceholder(element);distance=options.distance||element[ref===\"top\"?\"outerHeight\":\"outerWidth\"](true)/ 2;animation[ref]=motion+distance;if(show){element.css(animation);animation[ref]=oppositeMotion+distance;animation.opacity=1;}\nelement.animate(animation,{queue:false,duration:options.duration,easing:options.easing,complete:done});});\n/*!\n * jQuery UI Effects Explode 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\nvar effectsEffectExplode=$.effects.define(\"explode\",\"hide\",function(options,done){var i,j,left,top,mx,my,rows=options.pieces?Math.round(Math.sqrt(options.pieces)):3,cells=rows,element=$(this),mode=options.mode,show=mode===\"show\",offset=element.show().css(\"visibility\",\"hidden\").offset(),width=Math.ceil(element.outerWidth()/ cells),height=Math.ceil(element.outerHeight()/ rows),pieces=[];function childComplete(){pieces.push(this);if(pieces.length===rows*cells){animComplete();}}\nfor(i=0;i<rows;i++){top=offset.top+i*height;my=i-(rows-1)/ 2;for(j=0;j<cells;j++){left=offset.left+j*width;mx=j-(cells-1)/ 2;element.clone().appendTo(\"body\").wrap(\"<div></div>\").css({position:\"absolute\",visibility:\"visible\",left:-j*width,top:-i*height}).parent().addClass(\"ui-effects-explode\").css({position:\"absolute\",overflow:\"hidden\",width:width,height:height,left:left+(show?mx*width:0),top:top+(show?my*height:0),opacity:show?0:1}).animate({left:left+(show?0:mx*width),top:top+(show?0:my*height),opacity:show?1:0},options.duration||500,options.easing,childComplete);}}\nfunction animComplete(){element.css({visibility:\"visible\"});$(pieces).remove();done();}});\n/*!\n * jQuery UI Effects Fade 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\nvar effectsEffectFade=$.effects.define(\"fade\",\"toggle\",function(options,done){var show=options.mode===\"show\";$(this).css(\"opacity\",show?0:1).animate({opacity:show?1:0},{queue:false,duration:options.duration,easing:options.easing,complete:done});});\n/*!\n * jQuery UI Effects Fold 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\nvar effectsEffectFold=$.effects.define(\"fold\",\"hide\",function(options,done){var element=$(this),mode=options.mode,show=mode===\"show\",hide=mode===\"hide\",size=options.size||15,percent=/([0-9]+)%/.exec(size),horizFirst=!!options.horizFirst,ref=horizFirst?[\"right\",\"bottom\"]:[\"bottom\",\"right\"],duration=options.duration / 2,placeholder=$.effects.createPlaceholder(element),start=element.cssClip(),animation1={clip:$.extend({},start)},animation2={clip:$.extend({},start)},distance=[start[ref[0]],start[ref[1]]],queuelen=element.queue().length;if(percent){size=parseInt(percent[1],10)/ 100*distance[hide?0:1];}\nanimation1.clip[ref[0]]=size;animation2.clip[ref[0]]=size;animation2.clip[ref[1]]=0;if(show){element.cssClip(animation2.clip);if(placeholder){placeholder.css($.effects.clipToBox(animation2));}\nanimation2.clip=start;}\nelement.queue(function(next){if(placeholder){placeholder.animate($.effects.clipToBox(animation1),duration,options.easing).animate($.effects.clipToBox(animation2),duration,options.easing);}\nnext();}).animate(animation1,duration,options.easing).animate(animation2,duration,options.easing).queue(done);$.effects.unshift(element,queuelen,4);});\n/*!\n * jQuery UI Effects Highlight 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\nvar effectsEffectHighlight=$.effects.define(\"highlight\",\"show\",function(options,done){var element=$(this),animation={backgroundColor:element.css(\"backgroundColor\")};if(options.mode===\"hide\"){animation.opacity=0;}\n$.effects.saveStyle(element);element.css({backgroundImage:\"none\",backgroundColor:options.color||\"#ffff99\"}).animate(animation,{queue:false,duration:options.duration,easing:options.easing,complete:done});});\n/*!\n * jQuery UI Effects Size 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\nvar effectsEffectSize=$.effects.define(\"size\",function(options,done){var baseline,factor,temp,element=$(this),cProps=[\"fontSize\"],vProps=[\"borderTopWidth\",\"borderBottomWidth\",\"paddingTop\",\"paddingBottom\"],hProps=[\"borderLeftWidth\",\"borderRightWidth\",\"paddingLeft\",\"paddingRight\"],mode=options.mode,restore=mode!==\"effect\",scale=options.scale||\"both\",origin=options.origin||[\"middle\",\"center\"],position=element.css(\"position\"),pos=element.position(),original=$.effects.scaledDimensions(element),from=options.from||original,to=options.to||$.effects.scaledDimensions(element,0);$.effects.createPlaceholder(element);if(mode===\"show\"){temp=from;from=to;to=temp;}\nfactor={from:{y:from.height / original.height,x:from.width / original.width},to:{y:to.height / original.height,x:to.width / original.width}};if(scale===\"box\"||scale===\"both\"){if(factor.from.y!==factor.to.y){from=$.effects.setTransition(element,vProps,factor.from.y,from);to=$.effects.setTransition(element,vProps,factor.to.y,to);}\nif(factor.from.x!==factor.to.x){from=$.effects.setTransition(element,hProps,factor.from.x,from);to=$.effects.setTransition(element,hProps,factor.to.x,to);}}\nif(scale===\"content\"||scale===\"both\"){if(factor.from.y!==factor.to.y){from=$.effects.setTransition(element,cProps,factor.from.y,from);to=$.effects.setTransition(element,cProps,factor.to.y,to);}}\nif(origin){baseline=$.effects.getBaseline(origin,original);from.top=(original.outerHeight-from.outerHeight)*baseline.y+pos.top;from.left=(original.outerWidth-from.outerWidth)*baseline.x+pos.left;to.top=(original.outerHeight-to.outerHeight)*baseline.y+pos.top;to.left=(original.outerWidth-to.outerWidth)*baseline.x+pos.left;}\ndelete from.outerHeight;delete from.outerWidth;element.css(from);if(scale===\"content\"||scale===\"both\"){vProps=vProps.concat([\"marginTop\",\"marginBottom\"]).concat(cProps);hProps=hProps.concat([\"marginLeft\",\"marginRight\"]);element.find(\"*[width]\").each(function(){var child=$(this),childOriginal=$.effects.scaledDimensions(child),childFrom={height:childOriginal.height*factor.from.y,width:childOriginal.width*factor.from.x,outerHeight:childOriginal.outerHeight*factor.from.y,outerWidth:childOriginal.outerWidth*factor.from.x},childTo={height:childOriginal.height*factor.to.y,width:childOriginal.width*factor.to.x,outerHeight:childOriginal.height*factor.to.y,outerWidth:childOriginal.width*factor.to.x};if(factor.from.y!==factor.to.y){childFrom=$.effects.setTransition(child,vProps,factor.from.y,childFrom);childTo=$.effects.setTransition(child,vProps,factor.to.y,childTo);}\nif(factor.from.x!==factor.to.x){childFrom=$.effects.setTransition(child,hProps,factor.from.x,childFrom);childTo=$.effects.setTransition(child,hProps,factor.to.x,childTo);}\nif(restore){$.effects.saveStyle(child);}\nchild.css(childFrom);child.animate(childTo,options.duration,options.easing,function(){if(restore){$.effects.restoreStyle(child);}});});}\nelement.animate(to,{queue:false,duration:options.duration,easing:options.easing,complete:function(){var offset=element.offset();if(to.opacity===0){element.css(\"opacity\",from.opacity);}\nif(!restore){element.css(\"position\",position===\"static\"?\"relative\":position).offset(offset);$.effects.saveStyle(element);}\ndone();}});});\n/*!\n * jQuery UI Effects Scale 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\nvar effectsEffectScale=$.effects.define(\"scale\",function(options,done){var el=$(this),mode=options.mode,percent=parseInt(options.percent,10)||(parseInt(options.percent,10)===0?0:(mode!==\"effect\"?0:100)),newOptions=$.extend(true,{from:$.effects.scaledDimensions(el),to:$.effects.scaledDimensions(el,percent,options.direction||\"both\"),origin:options.origin||[\"middle\",\"center\"]},options);if(options.fade){newOptions.from.opacity=1;newOptions.to.opacity=0;}\n$.effects.effect.size.call(this,newOptions,done);});\n/*!\n * jQuery UI Effects Puff 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\nvar effectsEffectPuff=$.effects.define(\"puff\",\"hide\",function(options,done){var newOptions=$.extend(true,{},options,{fade:true,percent:parseInt(options.percent,10)||150});$.effects.effect.scale.call(this,newOptions,done);});\n/*!\n * jQuery UI Effects Pulsate 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\nvar effectsEffectPulsate=$.effects.define(\"pulsate\",\"show\",function(options,done){var element=$(this),mode=options.mode,show=mode===\"show\",hide=mode===\"hide\",showhide=show||hide,anims=((options.times||5)*2)+(showhide?1:0),duration=options.duration / anims,animateTo=0,i=1,queuelen=element.queue().length;if(show||!element.is(\":visible\")){element.css(\"opacity\",0).show();animateTo=1;}\nfor(;i<anims;i++){element.animate({opacity:animateTo},duration,options.easing);animateTo=1-animateTo;}\nelement.animate({opacity:animateTo},duration,options.easing);element.queue(done);$.effects.unshift(element,queuelen,anims+1);});\n/*!\n * jQuery UI Effects Shake 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\nvar effectsEffectShake=$.effects.define(\"shake\",function(options,done){var i=1,element=$(this),direction=options.direction||\"left\",distance=options.distance||20,times=options.times||3,anims=times*2+1,speed=Math.round(options.duration / anims),ref=(direction===\"up\"||direction===\"down\")?\"top\":\"left\",positiveMotion=(direction===\"up\"||direction===\"left\"),animation={},animation1={},animation2={},queuelen=element.queue().length;$.effects.createPlaceholder(element);animation[ref]=(positiveMotion?\"-=\":\"+=\")+distance;animation1[ref]=(positiveMotion?\"+=\":\"-=\")+distance*2;animation2[ref]=(positiveMotion?\"-=\":\"+=\")+distance*2;element.animate(animation,speed,options.easing);for(;i<times;i++){element.animate(animation1,speed,options.easing).animate(animation2,speed,options.easing);}\nelement.animate(animation1,speed,options.easing).animate(animation,speed / 2,options.easing).queue(done);$.effects.unshift(element,queuelen,anims+1);});\n/*!\n * jQuery UI Effects Slide 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\nvar effectsEffectSlide=$.effects.define(\"slide\",\"show\",function(options,done){var startClip,startRef,element=$(this),map={up:[\"bottom\",\"top\"],down:[\"top\",\"bottom\"],left:[\"right\",\"left\"],right:[\"left\",\"right\"]},mode=options.mode,direction=options.direction||\"left\",ref=(direction===\"up\"||direction===\"down\")?\"top\":\"left\",positiveMotion=(direction===\"up\"||direction===\"left\"),distance=options.distance||element[ref===\"top\"?\"outerHeight\":\"outerWidth\"](true),animation={};$.effects.createPlaceholder(element);startClip=element.cssClip();startRef=element.position()[ref];animation[ref]=(positiveMotion?-1:1)*distance+startRef;animation.clip=element.cssClip();animation.clip[map[direction][1]]=animation.clip[map[direction][0]];if(mode===\"show\"){element.cssClip(animation.clip);element.css(ref,animation[ref]);animation.clip=startClip;animation[ref]=startRef;}\nelement.animate(animation,{queue:false,duration:options.duration,easing:options.easing,complete:done});});\n/*!\n * jQuery UI Effects Transfer 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\nvar effect;if($.uiBackCompat!==false){effect=$.effects.define(\"transfer\",function(options,done){$(this).transfer(options,done);});}\nvar effectsEffectTransfer=effect;\n/*!\n * jQuery UI Focusable 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n$.ui.focusable=function(element,hasTabindex){var map,mapName,img,focusableIfVisible,fieldset,nodeName=element.nodeName.toLowerCase();if(\"area\"===nodeName){map=element.parentNode;mapName=map.name;if(!element.href||!mapName||map.nodeName.toLowerCase()!==\"map\"){return false;}\nimg=$(\"img[usemap='#\"+mapName+\"']\");return img.length>0&&img.is(\":visible\");}\nif(/^(input|select|textarea|button|object)$/.test(nodeName)){focusableIfVisible=!element.disabled;if(focusableIfVisible){fieldset=$(element).closest(\"fieldset\")[0];if(fieldset){focusableIfVisible=!fieldset.disabled;}}}else if(\"a\"===nodeName){focusableIfVisible=element.href||hasTabindex;}else{focusableIfVisible=hasTabindex;}\nreturn focusableIfVisible&&$(element).is(\":visible\")&&visible($(element));};function visible(element){var visibility=element.css(\"visibility\");while(visibility===\"inherit\"){element=element.parent();visibility=element.css(\"visibility\");}\nreturn visibility===\"visible\";}\n$.extend($.expr.pseudos,{focusable:function(element){return $.ui.focusable(element,$.attr(element,\"tabindex\")!=null);}});var focusable=$.ui.focusable;var form=$.fn._form=function(){return typeof this[0].form===\"string\"?this.closest(\"form\"):$(this[0].form);};\n/*!\n * jQuery UI Form Reset Mixin 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\nvar formResetMixin=$.ui.formResetMixin={_formResetHandler:function(){var form=$(this);setTimeout(function(){var instances=form.data(\"ui-form-reset-instances\");$.each(instances,function(){this.refresh();});});},_bindFormResetHandler:function(){this.form=this.element._form();if(!this.form.length){return;}\nvar instances=this.form.data(\"ui-form-reset-instances\")||[];if(!instances.length){this.form.on(\"reset.ui-form-reset\",this._formResetHandler);}\ninstances.push(this);this.form.data(\"ui-form-reset-instances\",instances);},_unbindFormResetHandler:function(){if(!this.form.length){return;}\nvar instances=this.form.data(\"ui-form-reset-instances\");instances.splice($.inArray(this,instances),1);if(instances.length){this.form.data(\"ui-form-reset-instances\",instances);}else{this.form.removeData(\"ui-form-reset-instances\").off(\"reset.ui-form-reset\");}}};\n/*!\n * jQuery UI Support for jQuery core 1.8.x and newer 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n */\nif(!$.expr.pseudos){$.expr.pseudos=$.expr[\":\"];}\nif(!$.uniqueSort){$.uniqueSort=$.unique;}\nif(!$.escapeSelector){var rcssescape=/([\\0-\\x1f\\x7f]|^-?\\d)|^-$|[^\\x80-\\uFFFF\\w-]/g;var fcssescape=function(ch,asCodePoint){if(asCodePoint){if(ch===\"\\0\"){return\"\\uFFFD\";}\nreturn ch.slice(0,-1)+\"\\\\\"+ch.charCodeAt(ch.length-1).toString(16)+\" \";}\nreturn\"\\\\\"+ch;};$.escapeSelector=function(sel){return(sel+\"\").replace(rcssescape,fcssescape);};}\nif(!$.fn.even||!$.fn.odd){$.fn.extend({even:function(){return this.filter(function(i){return i%2===0;});},odd:function(){return this.filter(function(i){return i%2===1;});}});};\n/*!\n * jQuery UI Keycode 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\nvar keycode=$.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38};\n/*!\n * jQuery UI Labels 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\nvar labels=$.fn.labels=function(){var ancestor,selector,id,labels,ancestors;if(!this.length){return this.pushStack([]);}\nif(this[0].labels&&this[0].labels.length){return this.pushStack(this[0].labels);}\nlabels=this.eq(0).parents(\"label\");id=this.attr(\"id\");if(id){ancestor=this.eq(0).parents().last();ancestors=ancestor.add(ancestor.length?ancestor.siblings():this.siblings());selector=\"label[for='\"+$.escapeSelector(id)+\"']\";labels=labels.add(ancestors.find(selector).addBack(selector));}\nreturn this.pushStack(labels);};\n/*!\n * jQuery UI Scroll Parent 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\nvar scrollParent=$.fn.scrollParent=function(includeHidden){var position=this.css(\"position\"),excludeStaticParent=position===\"absolute\",overflowRegex=includeHidden?/(auto|scroll|hidden)/:/(auto|scroll)/,scrollParent=this.parents().filter(function(){var parent=$(this);if(excludeStaticParent&&parent.css(\"position\")===\"static\"){return false;}\nreturn overflowRegex.test(parent.css(\"overflow\")+parent.css(\"overflow-y\")+\nparent.css(\"overflow-x\"));}).eq(0);return position===\"fixed\"||!scrollParent.length?$(this[0].ownerDocument||document):scrollParent;};\n/*!\n * jQuery UI Tabbable 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\nvar tabbable=$.extend($.expr.pseudos,{tabbable:function(element){var tabIndex=$.attr(element,\"tabindex\"),hasTabindex=tabIndex!=null;return(!hasTabindex||tabIndex>=0)&&$.ui.focusable(element,hasTabindex);}});\n/*!\n * jQuery UI Unique ID 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\nvar uniqueId=$.fn.extend({uniqueId:(function(){var uuid=0;return function(){return this.each(function(){if(!this.id){this.id=\"ui-id-\"+(++uuid);}});};})(),removeUniqueId:function(){return this.each(function(){if(/^ui-id-\\d+$/.test(this.id)){$(this).removeAttr(\"id\");}});}});\n/*!\n * jQuery UI Accordion 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\nvar widgetsAccordion=$.widget(\"ui.accordion\",{version:\"1.13.2\",options:{active:0,animate:{},classes:{\"ui-accordion-header\":\"ui-corner-top\",\"ui-accordion-header-collapsed\":\"ui-corner-all\",\"ui-accordion-content\":\"ui-corner-bottom\"},collapsible:false,event:\"click\",header:function(elem){return elem.find(\"> li > :first-child\").add(elem.find(\"> :not(li)\").even());},heightStyle:\"auto\",icons:{activeHeader:\"ui-icon-triangle-1-s\",header:\"ui-icon-triangle-1-e\"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:\"hide\",borderBottomWidth:\"hide\",paddingTop:\"hide\",paddingBottom:\"hide\",height:\"hide\"},showProps:{borderTopWidth:\"show\",borderBottomWidth:\"show\",paddingTop:\"show\",paddingBottom:\"show\",height:\"show\"},_create:function(){var options=this.options;this.prevShow=this.prevHide=$();this._addClass(\"ui-accordion\",\"ui-widget ui-helper-reset\");this.element.attr(\"role\",\"tablist\");if(!options.collapsible&&(options.active===false||options.active==null)){options.active=0;}\nthis._processPanels();if(options.active<0){options.active+=this.headers.length;}\nthis._refresh();},_getCreateEventData:function(){return{header:this.active,panel:!this.active.length?$():this.active.next()};},_createIcons:function(){var icon,children,icons=this.options.icons;if(icons){icon=$(\"<span>\");this._addClass(icon,\"ui-accordion-header-icon\",\"ui-icon \"+icons.header);icon.prependTo(this.headers);children=this.active.children(\".ui-accordion-header-icon\");this._removeClass(children,icons.header)._addClass(children,null,icons.activeHeader)._addClass(this.headers,\"ui-accordion-icons\");}},_destroyIcons:function(){this._removeClass(this.headers,\"ui-accordion-icons\");this.headers.children(\".ui-accordion-header-icon\").remove();},_destroy:function(){var contents;this.element.removeAttr(\"role\");this.headers.removeAttr(\"role aria-expanded aria-selected aria-controls tabIndex\").removeUniqueId();this._destroyIcons();contents=this.headers.next().css(\"display\",\"\").removeAttr(\"role aria-hidden aria-labelledby\").removeUniqueId();if(this.options.heightStyle!==\"content\"){contents.css(\"height\",\"\");}},_setOption:function(key,value){if(key===\"active\"){this._activate(value);return;}\nif(key===\"event\"){if(this.options.event){this._off(this.headers,this.options.event);}\nthis._setupEvents(value);}\nthis._super(key,value);if(key===\"collapsible\"&&!value&&this.options.active===false){this._activate(0);}\nif(key===\"icons\"){this._destroyIcons();if(value){this._createIcons();}}},_setOptionDisabled:function(value){this._super(value);this.element.attr(\"aria-disabled\",value);this._toggleClass(null,\"ui-state-disabled\",!!value);this._toggleClass(this.headers.add(this.headers.next()),null,\"ui-state-disabled\",!!value);},_keydown:function(event){if(event.altKey||event.ctrlKey){return;}\nvar keyCode=$.ui.keyCode,length=this.headers.length,currentIndex=this.headers.index(event.target),toFocus=false;switch(event.keyCode){case keyCode.RIGHT:case keyCode.DOWN:toFocus=this.headers[(currentIndex+1)%length];break;case keyCode.LEFT:case keyCode.UP:toFocus=this.headers[(currentIndex-1+length)%length];break;case keyCode.SPACE:case keyCode.ENTER:this._eventHandler(event);break;case keyCode.HOME:toFocus=this.headers[0];break;case keyCode.END:toFocus=this.headers[length-1];break;}\nif(toFocus){$(event.target).attr(\"tabIndex\",-1);$(toFocus).attr(\"tabIndex\",0);$(toFocus).trigger(\"focus\");event.preventDefault();}},_panelKeyDown:function(event){if(event.keyCode===$.ui.keyCode.UP&&event.ctrlKey){$(event.currentTarget).prev().trigger(\"focus\");}},refresh:function(){var options=this.options;this._processPanels();if((options.active===false&&options.collapsible===true)||!this.headers.length){options.active=false;this.active=$();}else if(options.active===false){this._activate(0);}else if(this.active.length&&!$.contains(this.element[0],this.active[0])){if(this.headers.length===this.headers.find(\".ui-state-disabled\").length){options.active=false;this.active=$();}else{this._activate(Math.max(0,options.active-1));}}else{options.active=this.headers.index(this.active);}\nthis._destroyIcons();this._refresh();},_processPanels:function(){var prevHeaders=this.headers,prevPanels=this.panels;if(typeof this.options.header===\"function\"){this.headers=this.options.header(this.element);}else{this.headers=this.element.find(this.options.header);}\nthis._addClass(this.headers,\"ui-accordion-header ui-accordion-header-collapsed\",\"ui-state-default\");this.panels=this.headers.next().filter(\":not(.ui-accordion-content-active)\").hide();this._addClass(this.panels,\"ui-accordion-content\",\"ui-helper-reset ui-widget-content\");if(prevPanels){this._off(prevHeaders.not(this.headers));this._off(prevPanels.not(this.panels));}},_refresh:function(){var maxHeight,options=this.options,heightStyle=options.heightStyle,parent=this.element.parent();this.active=this._findActive(options.active);this._addClass(this.active,\"ui-accordion-header-active\",\"ui-state-active\")._removeClass(this.active,\"ui-accordion-header-collapsed\");this._addClass(this.active.next(),\"ui-accordion-content-active\");this.active.next().show();this.headers.attr(\"role\",\"tab\").each(function(){var header=$(this),headerId=header.uniqueId().attr(\"id\"),panel=header.next(),panelId=panel.uniqueId().attr(\"id\");header.attr(\"aria-controls\",panelId);panel.attr(\"aria-labelledby\",headerId);}).next().attr(\"role\",\"tabpanel\");this.headers.not(this.active).attr({\"aria-selected\":\"false\",\"aria-expanded\":\"false\",tabIndex:-1}).next().attr({\"aria-hidden\":\"true\"}).hide();if(!this.active.length){this.headers.eq(0).attr(\"tabIndex\",0);}else{this.active.attr({\"aria-selected\":\"true\",\"aria-expanded\":\"true\",tabIndex:0}).next().attr({\"aria-hidden\":\"false\"});}\nthis._createIcons();this._setupEvents(options.event);if(heightStyle===\"fill\"){maxHeight=parent.height();this.element.siblings(\":visible\").each(function(){var elem=$(this),position=elem.css(\"position\");if(position===\"absolute\"||position===\"fixed\"){return;}\nmaxHeight-=elem.outerHeight(true);});this.headers.each(function(){maxHeight-=$(this).outerHeight(true);});this.headers.next().each(function(){$(this).height(Math.max(0,maxHeight-\n$(this).innerHeight()+$(this).height()));}).css(\"overflow\",\"auto\");}else if(heightStyle===\"auto\"){maxHeight=0;this.headers.next().each(function(){var isVisible=$(this).is(\":visible\");if(!isVisible){$(this).show();}\nmaxHeight=Math.max(maxHeight,$(this).css(\"height\",\"\").height());if(!isVisible){$(this).hide();}}).height(maxHeight);}},_activate:function(index){var active=this._findActive(index)[0];if(active===this.active[0]){return;}\nactive=active||this.active[0];this._eventHandler({target:active,currentTarget:active,preventDefault:$.noop});},_findActive:function(selector){return typeof selector===\"number\"?this.headers.eq(selector):$();},_setupEvents:function(event){var events={keydown:\"_keydown\"};if(event){$.each(event.split(\" \"),function(index,eventName){events[eventName]=\"_eventHandler\";});}\nthis._off(this.headers.add(this.headers.next()));this._on(this.headers,events);this._on(this.headers.next(),{keydown:\"_panelKeyDown\"});this._hoverable(this.headers);this._focusable(this.headers);},_eventHandler:function(event){var activeChildren,clickedChildren,options=this.options,active=this.active,clicked=$(event.currentTarget),clickedIsActive=clicked[0]===active[0],collapsing=clickedIsActive&&options.collapsible,toShow=collapsing?$():clicked.next(),toHide=active.next(),eventData={oldHeader:active,oldPanel:toHide,newHeader:collapsing?$():clicked,newPanel:toShow};event.preventDefault();if((clickedIsActive&&!options.collapsible)||(this._trigger(\"beforeActivate\",event,eventData)===false)){return;}\noptions.active=collapsing?false:this.headers.index(clicked);this.active=clickedIsActive?$():clicked;this._toggle(eventData);this._removeClass(active,\"ui-accordion-header-active\",\"ui-state-active\");if(options.icons){activeChildren=active.children(\".ui-accordion-header-icon\");this._removeClass(activeChildren,null,options.icons.activeHeader)._addClass(activeChildren,null,options.icons.header);}\nif(!clickedIsActive){this._removeClass(clicked,\"ui-accordion-header-collapsed\")._addClass(clicked,\"ui-accordion-header-active\",\"ui-state-active\");if(options.icons){clickedChildren=clicked.children(\".ui-accordion-header-icon\");this._removeClass(clickedChildren,null,options.icons.header)._addClass(clickedChildren,null,options.icons.activeHeader);}\nthis._addClass(clicked.next(),\"ui-accordion-content-active\");}},_toggle:function(data){var toShow=data.newPanel,toHide=this.prevShow.length?this.prevShow:data.oldPanel;this.prevShow.add(this.prevHide).stop(true,true);this.prevShow=toShow;this.prevHide=toHide;if(this.options.animate){this._animate(toShow,toHide,data);}else{toHide.hide();toShow.show();this._toggleComplete(data);}\ntoHide.attr({\"aria-hidden\":\"true\"});toHide.prev().attr({\"aria-selected\":\"false\",\"aria-expanded\":\"false\"});if(toShow.length&&toHide.length){toHide.prev().attr({\"tabIndex\":-1,\"aria-expanded\":\"false\"});}else if(toShow.length){this.headers.filter(function(){return parseInt($(this).attr(\"tabIndex\"),10)===0;}).attr(\"tabIndex\",-1);}\ntoShow.attr(\"aria-hidden\",\"false\").prev().attr({\"aria-selected\":\"true\",\"aria-expanded\":\"true\",tabIndex:0});},_animate:function(toShow,toHide,data){var total,easing,duration,that=this,adjust=0,boxSizing=toShow.css(\"box-sizing\"),down=toShow.length&&(!toHide.length||(toShow.index()<toHide.index())),animate=this.options.animate||{},options=down&&animate.down||animate,complete=function(){that._toggleComplete(data);};if(typeof options===\"number\"){duration=options;}\nif(typeof options===\"string\"){easing=options;}\neasing=easing||options.easing||animate.easing;duration=duration||options.duration||animate.duration;if(!toHide.length){return toShow.animate(this.showProps,duration,easing,complete);}\nif(!toShow.length){return toHide.animate(this.hideProps,duration,easing,complete);}\ntotal=toShow.show().outerHeight();toHide.animate(this.hideProps,{duration:duration,easing:easing,step:function(now,fx){fx.now=Math.round(now);}});toShow.hide().animate(this.showProps,{duration:duration,easing:easing,complete:complete,step:function(now,fx){fx.now=Math.round(now);if(fx.prop!==\"height\"){if(boxSizing===\"content-box\"){adjust+=fx.now;}}else if(that.options.heightStyle!==\"content\"){fx.now=Math.round(total-toHide.outerHeight()-adjust);adjust=0;}}});},_toggleComplete:function(data){var toHide=data.oldPanel,prev=toHide.prev();this._removeClass(toHide,\"ui-accordion-content-active\");this._removeClass(prev,\"ui-accordion-header-active\")._addClass(prev,\"ui-accordion-header-collapsed\");if(toHide.length){toHide.parent()[0].className=toHide.parent()[0].className;}\nthis._trigger(\"activate\",null,data);}});var safeActiveElement=$.ui.safeActiveElement=function(document){var activeElement;try{activeElement=document.activeElement;}catch(error){activeElement=document.body;}\nif(!activeElement){activeElement=document.body;}\nif(!activeElement.nodeName){activeElement=document.body;}\nreturn activeElement;};\n/*!\n * jQuery UI Menu 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\nvar widgetsMenu=$.widget(\"ui.menu\",{version:\"1.13.2\",defaultElement:\"<ul>\",delay:300,options:{icons:{submenu:\"ui-icon-caret-1-e\"},items:\"> *\",menus:\"ul\",position:{my:\"left top\",at:\"right top\"},role:\"menu\",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element;this.mouseHandled=false;this.lastMousePosition={x:null,y:null};this.element.uniqueId().attr({role:this.options.role,tabIndex:0});this._addClass(\"ui-menu\",\"ui-widget ui-widget-content\");this._on({\"mousedown .ui-menu-item\":function(event){event.preventDefault();this._activateItem(event);},\"click .ui-menu-item\":function(event){var target=$(event.target);var active=$($.ui.safeActiveElement(this.document[0]));if(!this.mouseHandled&&target.not(\".ui-state-disabled\").length){this.select(event);if(!event.isPropagationStopped()){this.mouseHandled=true;}\nif(target.has(\".ui-menu\").length){this.expand(event);}else if(!this.element.is(\":focus\")&&active.closest(\".ui-menu\").length){this.element.trigger(\"focus\",[true]);if(this.active&&this.active.parents(\".ui-menu\").length===1){clearTimeout(this.timer);}}}},\"mouseenter .ui-menu-item\":\"_activateItem\",\"mousemove .ui-menu-item\":\"_activateItem\",mouseleave:\"collapseAll\",\"mouseleave .ui-menu\":\"collapseAll\",focus:function(event,keepActiveItem){var item=this.active||this._menuItems().first();if(!keepActiveItem){this.focus(event,item);}},blur:function(event){this._delay(function(){var notContained=!$.contains(this.element[0],$.ui.safeActiveElement(this.document[0]));if(notContained){this.collapseAll(event);}});},keydown:\"_keydown\"});this.refresh();this._on(this.document,{click:function(event){if(this._closeOnDocumentClick(event)){this.collapseAll(event,true);}\nthis.mouseHandled=false;}});},_activateItem:function(event){if(this.previousFilter){return;}\nif(event.clientX===this.lastMousePosition.x&&event.clientY===this.lastMousePosition.y){return;}\nthis.lastMousePosition={x:event.clientX,y:event.clientY};var actualTarget=$(event.target).closest(\".ui-menu-item\"),target=$(event.currentTarget);if(actualTarget[0]!==target[0]){return;}\nif(target.is(\".ui-state-active\")){return;}\nthis._removeClass(target.siblings().children(\".ui-state-active\"),null,\"ui-state-active\");this.focus(event,target);},_destroy:function(){var items=this.element.find(\".ui-menu-item\").removeAttr(\"role aria-disabled\"),submenus=items.children(\".ui-menu-item-wrapper\").removeUniqueId().removeAttr(\"tabIndex role aria-haspopup\");this.element.removeAttr(\"aria-activedescendant\").find(\".ui-menu\").addBack().removeAttr(\"role aria-labelledby aria-expanded aria-hidden aria-disabled \"+\"tabIndex\").removeUniqueId().show();submenus.children().each(function(){var elem=$(this);if(elem.data(\"ui-menu-submenu-caret\")){elem.remove();}});},_keydown:function(event){var match,prev,character,skip,preventDefault=true;switch(event.keyCode){case $.ui.keyCode.PAGE_UP:this.previousPage(event);break;case $.ui.keyCode.PAGE_DOWN:this.nextPage(event);break;case $.ui.keyCode.HOME:this._move(\"first\",\"first\",event);break;case $.ui.keyCode.END:this._move(\"last\",\"last\",event);break;case $.ui.keyCode.UP:this.previous(event);break;case $.ui.keyCode.DOWN:this.next(event);break;case $.ui.keyCode.LEFT:this.collapse(event);break;case $.ui.keyCode.RIGHT:if(this.active&&!this.active.is(\".ui-state-disabled\")){this.expand(event);}\nbreak;case $.ui.keyCode.ENTER:case $.ui.keyCode.SPACE:this._activate(event);break;case $.ui.keyCode.ESCAPE:this.collapse(event);break;default:preventDefault=false;prev=this.previousFilter||\"\";skip=false;character=event.keyCode>=96&&event.keyCode<=105?(event.keyCode-96).toString():String.fromCharCode(event.keyCode);clearTimeout(this.filterTimer);if(character===prev){skip=true;}else{character=prev+character;}\nmatch=this._filterMenuItems(character);match=skip&&match.index(this.active.next())!==-1?this.active.nextAll(\".ui-menu-item\"):match;if(!match.length){character=String.fromCharCode(event.keyCode);match=this._filterMenuItems(character);}\nif(match.length){this.focus(event,match);this.previousFilter=character;this.filterTimer=this._delay(function(){delete this.previousFilter;},1000);}else{delete this.previousFilter;}}\nif(preventDefault){event.preventDefault();}},_activate:function(event){if(this.active&&!this.active.is(\".ui-state-disabled\")){if(this.active.children(\"[aria-haspopup='true']\").length){this.expand(event);}else{this.select(event);}}},refresh:function(){var menus,items,newSubmenus,newItems,newWrappers,that=this,icon=this.options.icons.submenu,submenus=this.element.find(this.options.menus);this._toggleClass(\"ui-menu-icons\",null,!!this.element.find(\".ui-icon\").length);newSubmenus=submenus.filter(\":not(.ui-menu)\").hide().attr({role:this.options.role,\"aria-hidden\":\"true\",\"aria-expanded\":\"false\"}).each(function(){var menu=$(this),item=menu.prev(),submenuCaret=$(\"<span>\").data(\"ui-menu-submenu-caret\",true);that._addClass(submenuCaret,\"ui-menu-icon\",\"ui-icon \"+icon);item.attr(\"aria-haspopup\",\"true\").prepend(submenuCaret);menu.attr(\"aria-labelledby\",item.attr(\"id\"));});this._addClass(newSubmenus,\"ui-menu\",\"ui-widget ui-widget-content ui-front\");menus=submenus.add(this.element);items=menus.find(this.options.items);items.not(\".ui-menu-item\").each(function(){var item=$(this);if(that._isDivider(item)){that._addClass(item,\"ui-menu-divider\",\"ui-widget-content\");}});newItems=items.not(\".ui-menu-item, .ui-menu-divider\");newWrappers=newItems.children().not(\".ui-menu\").uniqueId().attr({tabIndex:-1,role:this._itemRole()});this._addClass(newItems,\"ui-menu-item\")._addClass(newWrappers,\"ui-menu-item-wrapper\");items.filter(\".ui-state-disabled\").attr(\"aria-disabled\",\"true\");if(this.active&&!$.contains(this.element[0],this.active[0])){this.blur();}},_itemRole:function(){return{menu:\"menuitem\",listbox:\"option\"}[this.options.role];},_setOption:function(key,value){if(key===\"icons\"){var icons=this.element.find(\".ui-menu-icon\");this._removeClass(icons,null,this.options.icons.submenu)._addClass(icons,null,value.submenu);}\nthis._super(key,value);},_setOptionDisabled:function(value){this._super(value);this.element.attr(\"aria-disabled\",String(value));this._toggleClass(null,\"ui-state-disabled\",!!value);},focus:function(event,item){var nested,focused,activeParent;this.blur(event,event&&event.type===\"focus\");this._scrollIntoView(item);this.active=item.first();focused=this.active.children(\".ui-menu-item-wrapper\");this._addClass(focused,null,\"ui-state-active\");if(this.options.role){this.element.attr(\"aria-activedescendant\",focused.attr(\"id\"));}\nactiveParent=this.active.parent().closest(\".ui-menu-item\").children(\".ui-menu-item-wrapper\");this._addClass(activeParent,null,\"ui-state-active\");if(event&&event.type===\"keydown\"){this._close();}else{this.timer=this._delay(function(){this._close();},this.delay);}\nnested=item.children(\".ui-menu\");if(nested.length&&event&&(/^mouse/.test(event.type))){this._startOpening(nested);}\nthis.activeMenu=item.parent();this._trigger(\"focus\",event,{item:item});},_scrollIntoView:function(item){var borderTop,paddingTop,offset,scroll,elementHeight,itemHeight;if(this._hasScroll()){borderTop=parseFloat($.css(this.activeMenu[0],\"borderTopWidth\"))||0;paddingTop=parseFloat($.css(this.activeMenu[0],\"paddingTop\"))||0;offset=item.offset().top-this.activeMenu.offset().top-borderTop-paddingTop;scroll=this.activeMenu.scrollTop();elementHeight=this.activeMenu.height();itemHeight=item.outerHeight();if(offset<0){this.activeMenu.scrollTop(scroll+offset);}else if(offset+itemHeight>elementHeight){this.activeMenu.scrollTop(scroll+offset-elementHeight+itemHeight);}}},blur:function(event,fromFocus){if(!fromFocus){clearTimeout(this.timer);}\nif(!this.active){return;}\nthis._removeClass(this.active.children(\".ui-menu-item-wrapper\"),null,\"ui-state-active\");this._trigger(\"blur\",event,{item:this.active});this.active=null;},_startOpening:function(submenu){clearTimeout(this.timer);if(submenu.attr(\"aria-hidden\")!==\"true\"){return;}\nthis.timer=this._delay(function(){this._close();this._open(submenu);},this.delay);},_open:function(submenu){var position=$.extend({of:this.active},this.options.position);clearTimeout(this.timer);this.element.find(\".ui-menu\").not(submenu.parents(\".ui-menu\")).hide().attr(\"aria-hidden\",\"true\");submenu.show().removeAttr(\"aria-hidden\").attr(\"aria-expanded\",\"true\").position(position);},collapseAll:function(event,all){clearTimeout(this.timer);this.timer=this._delay(function(){var currentMenu=all?this.element:$(event&&event.target).closest(this.element.find(\".ui-menu\"));if(!currentMenu.length){currentMenu=this.element;}\nthis._close(currentMenu);this.blur(event);this._removeClass(currentMenu.find(\".ui-state-active\"),null,\"ui-state-active\");this.activeMenu=currentMenu;},all?0:this.delay);},_close:function(startMenu){if(!startMenu){startMenu=this.active?this.active.parent():this.element;}\nstartMenu.find(\".ui-menu\").hide().attr(\"aria-hidden\",\"true\").attr(\"aria-expanded\",\"false\");},_closeOnDocumentClick:function(event){return!$(event.target).closest(\".ui-menu\").length;},_isDivider:function(item){return!/[^\\-\\u2014\\u2013\\s]/.test(item.text());},collapse:function(event){var newItem=this.active&&this.active.parent().closest(\".ui-menu-item\",this.element);if(newItem&&newItem.length){this._close();this.focus(event,newItem);}},expand:function(event){var newItem=this.active&&this._menuItems(this.active.children(\".ui-menu\")).first();if(newItem&&newItem.length){this._open(newItem.parent());this._delay(function(){this.focus(event,newItem);});}},next:function(event){this._move(\"next\",\"first\",event);},previous:function(event){this._move(\"prev\",\"last\",event);},isFirstItem:function(){return this.active&&!this.active.prevAll(\".ui-menu-item\").length;},isLastItem:function(){return this.active&&!this.active.nextAll(\".ui-menu-item\").length;},_menuItems:function(menu){return(menu||this.element).find(this.options.items).filter(\".ui-menu-item\");},_move:function(direction,filter,event){var next;if(this.active){if(direction===\"first\"||direction===\"last\"){next=this.active\n[direction===\"first\"?\"prevAll\":\"nextAll\"](\".ui-menu-item\").last();}else{next=this.active\n[direction+\"All\"](\".ui-menu-item\").first();}}\nif(!next||!next.length||!this.active){next=this._menuItems(this.activeMenu)[filter]();}\nthis.focus(event,next);},nextPage:function(event){var item,base,height;if(!this.active){this.next(event);return;}\nif(this.isLastItem()){return;}\nif(this._hasScroll()){base=this.active.offset().top;height=this.element.innerHeight();if($.fn.jquery.indexOf(\"3.2.\")===0){height+=this.element[0].offsetHeight-this.element.outerHeight();}\nthis.active.nextAll(\".ui-menu-item\").each(function(){item=$(this);return item.offset().top-base-height<0;});this.focus(event,item);}else{this.focus(event,this._menuItems(this.activeMenu)\n[!this.active?\"first\":\"last\"]());}},previousPage:function(event){var item,base,height;if(!this.active){this.next(event);return;}\nif(this.isFirstItem()){return;}\nif(this._hasScroll()){base=this.active.offset().top;height=this.element.innerHeight();if($.fn.jquery.indexOf(\"3.2.\")===0){height+=this.element[0].offsetHeight-this.element.outerHeight();}\nthis.active.prevAll(\".ui-menu-item\").each(function(){item=$(this);return item.offset().top-base+height>0;});this.focus(event,item);}else{this.focus(event,this._menuItems(this.activeMenu).first());}},_hasScroll:function(){return this.element.outerHeight()<this.element.prop(\"scrollHeight\");},select:function(event){this.active=this.active||$(event.target).closest(\".ui-menu-item\");var ui={item:this.active};if(!this.active.has(\".ui-menu\").length){this.collapseAll(event,true);}\nthis._trigger(\"select\",event,ui);},_filterMenuItems:function(character){var escapedCharacter=character.replace(/[\\-\\[\\]{}()*+?.,\\\\\\^$|#\\s]/g,\"\\\\$&\"),regex=new RegExp(\"^\"+escapedCharacter,\"i\");return this.activeMenu.find(this.options.items).filter(\".ui-menu-item\").filter(function(){return regex.test(String.prototype.trim.call($(this).children(\".ui-menu-item-wrapper\").text()));});}});\n/*!\n * jQuery UI Autocomplete 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n$.widget(\"ui.autocomplete\",{version:\"1.13.2\",defaultElement:\"<input>\",options:{appendTo:null,autoFocus:false,delay:300,minLength:1,position:{my:\"left top\",at:\"left bottom\",collision:\"none\"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,liveRegionTimer:null,_create:function(){var suppressKeyPress,suppressKeyPressRepeat,suppressInput,nodeName=this.element[0].nodeName.toLowerCase(),isTextarea=nodeName===\"textarea\",isInput=nodeName===\"input\";this.isMultiLine=isTextarea||!isInput&&this._isContentEditable(this.element);this.valueMethod=this.element[isTextarea||isInput?\"val\":\"text\"];this.isNewMenu=true;this._addClass(\"ui-autocomplete-input\");this.element.attr(\"autocomplete\",\"off\");this._on(this.element,{keydown:function(event){if(this.element.prop(\"readOnly\")){suppressKeyPress=true;suppressInput=true;suppressKeyPressRepeat=true;return;}\nsuppressKeyPress=false;suppressInput=false;suppressKeyPressRepeat=false;var keyCode=$.ui.keyCode;switch(event.keyCode){case keyCode.PAGE_UP:suppressKeyPress=true;this._move(\"previousPage\",event);break;case keyCode.PAGE_DOWN:suppressKeyPress=true;this._move(\"nextPage\",event);break;case keyCode.UP:suppressKeyPress=true;this._keyEvent(\"previous\",event);break;case keyCode.DOWN:suppressKeyPress=true;this._keyEvent(\"next\",event);break;case keyCode.ENTER:if(this.menu.active){suppressKeyPress=true;event.preventDefault();this.menu.select(event);}\nbreak;case keyCode.TAB:if(this.menu.active){this.menu.select(event);}\nbreak;case keyCode.ESCAPE:if(this.menu.element.is(\":visible\")){if(!this.isMultiLine){this._value(this.term);}\nthis.close(event);event.preventDefault();}\nbreak;default:suppressKeyPressRepeat=true;this._searchTimeout(event);break;}},keypress:function(event){if(suppressKeyPress){suppressKeyPress=false;if(!this.isMultiLine||this.menu.element.is(\":visible\")){event.preventDefault();}\nreturn;}\nif(suppressKeyPressRepeat){return;}\nvar keyCode=$.ui.keyCode;switch(event.keyCode){case keyCode.PAGE_UP:this._move(\"previousPage\",event);break;case keyCode.PAGE_DOWN:this._move(\"nextPage\",event);break;case keyCode.UP:this._keyEvent(\"previous\",event);break;case keyCode.DOWN:this._keyEvent(\"next\",event);break;}},input:function(event){if(suppressInput){suppressInput=false;event.preventDefault();return;}\nthis._searchTimeout(event);},focus:function(){this.selectedItem=null;this.previous=this._value();},blur:function(event){clearTimeout(this.searching);this.close(event);this._change(event);}});this._initSource();this.menu=$(\"<ul>\").appendTo(this._appendTo()).menu({role:null}).hide().attr({\"unselectable\":\"on\"}).menu(\"instance\");this._addClass(this.menu.element,\"ui-autocomplete\",\"ui-front\");this._on(this.menu.element,{mousedown:function(event){event.preventDefault();},menufocus:function(event,ui){var label,item;if(this.isNewMenu){this.isNewMenu=false;if(event.originalEvent&&/^mouse/.test(event.originalEvent.type)){this.menu.blur();this.document.one(\"mousemove\",function(){$(event.target).trigger(event.originalEvent);});return;}}\nitem=ui.item.data(\"ui-autocomplete-item\");if(false!==this._trigger(\"focus\",event,{item:item})){if(event.originalEvent&&/^key/.test(event.originalEvent.type)){this._value(item.value);}}\nlabel=ui.item.attr(\"aria-label\")||item.value;if(label&&String.prototype.trim.call(label).length){clearTimeout(this.liveRegionTimer);this.liveRegionTimer=this._delay(function(){this.liveRegion.html($(\"<div>\").text(label));},100);}},menuselect:function(event,ui){var item=ui.item.data(\"ui-autocomplete-item\"),previous=this.previous;if(this.element[0]!==$.ui.safeActiveElement(this.document[0])){this.element.trigger(\"focus\");this.previous=previous;this._delay(function(){this.previous=previous;this.selectedItem=item;});}\nif(false!==this._trigger(\"select\",event,{item:item})){this._value(item.value);}\nthis.term=this._value();this.close(event);this.selectedItem=item;}});this.liveRegion=$(\"<div>\",{role:\"status\",\"aria-live\":\"assertive\",\"aria-relevant\":\"additions\"}).appendTo(this.document[0].body);this._addClass(this.liveRegion,null,\"ui-helper-hidden-accessible\");this._on(this.window,{beforeunload:function(){this.element.removeAttr(\"autocomplete\");}});},_destroy:function(){clearTimeout(this.searching);this.element.removeAttr(\"autocomplete\");this.menu.element.remove();this.liveRegion.remove();},_setOption:function(key,value){this._super(key,value);if(key===\"source\"){this._initSource();}\nif(key===\"appendTo\"){this.menu.element.appendTo(this._appendTo());}\nif(key===\"disabled\"&&value&&this.xhr){this.xhr.abort();}},_isEventTargetInWidget:function(event){var menuElement=this.menu.element[0];return event.target===this.element[0]||event.target===menuElement||$.contains(menuElement,event.target);},_closeOnClickOutside:function(event){if(!this._isEventTargetInWidget(event)){this.close();}},_appendTo:function(){var element=this.options.appendTo;if(element){element=element.jquery||element.nodeType?$(element):this.document.find(element).eq(0);}\nif(!element||!element[0]){element=this.element.closest(\".ui-front, dialog\");}\nif(!element.length){element=this.document[0].body;}\nreturn element;},_initSource:function(){var array,url,that=this;if(Array.isArray(this.options.source)){array=this.options.source;this.source=function(request,response){response($.ui.autocomplete.filter(array,request.term));};}else if(typeof this.options.source===\"string\"){url=this.options.source;this.source=function(request,response){if(that.xhr){that.xhr.abort();}\nthat.xhr=$.ajax({url:url,data:request,dataType:\"json\",success:function(data){response(data);},error:function(){response([]);}});};}else{this.source=this.options.source;}},_searchTimeout:function(event){clearTimeout(this.searching);this.searching=this._delay(function(){var equalValues=this.term===this._value(),menuVisible=this.menu.element.is(\":visible\"),modifierKey=event.altKey||event.ctrlKey||event.metaKey||event.shiftKey;if(!equalValues||(equalValues&&!menuVisible&&!modifierKey)){this.selectedItem=null;this.search(null,event);}},this.options.delay);},search:function(value,event){value=value!=null?value:this._value();this.term=this._value();if(value.length<this.options.minLength){return this.close(event);}\nif(this._trigger(\"search\",event)===false){return;}\nreturn this._search(value);},_search:function(value){this.pending++;this._addClass(\"ui-autocomplete-loading\");this.cancelSearch=false;this.source({term:value},this._response());},_response:function(){var index=++this.requestIndex;return function(content){if(index===this.requestIndex){this.__response(content);}\nthis.pending--;if(!this.pending){this._removeClass(\"ui-autocomplete-loading\");}}.bind(this);},__response:function(content){if(content){content=this._normalize(content);}\nthis._trigger(\"response\",null,{content:content});if(!this.options.disabled&&content&&content.length&&!this.cancelSearch){this._suggest(content);this._trigger(\"open\");}else{this._close();}},close:function(event){this.cancelSearch=true;this._close(event);},_close:function(event){this._off(this.document,\"mousedown\");if(this.menu.element.is(\":visible\")){this.menu.element.hide();this.menu.blur();this.isNewMenu=true;this._trigger(\"close\",event);}},_change:function(event){if(this.previous!==this._value()){this._trigger(\"change\",event,{item:this.selectedItem});}},_normalize:function(items){if(items.length&&items[0].label&&items[0].value){return items;}\nreturn $.map(items,function(item){if(typeof item===\"string\"){return{label:item,value:item};}\nreturn $.extend({},item,{label:item.label||item.value,value:item.value||item.label});});},_suggest:function(items){var ul=this.menu.element.empty();this._renderMenu(ul,items);this.isNewMenu=true;this.menu.refresh();ul.show();this._resizeMenu();ul.position($.extend({of:this.element},this.options.position));if(this.options.autoFocus){this.menu.next();}\nthis._on(this.document,{mousedown:\"_closeOnClickOutside\"});},_resizeMenu:function(){var ul=this.menu.element;ul.outerWidth(Math.max(ul.width(\"\").outerWidth()+1,this.element.outerWidth()));},_renderMenu:function(ul,items){var that=this;$.each(items,function(index,item){that._renderItemData(ul,item);});},_renderItemData:function(ul,item){return this._renderItem(ul,item).data(\"ui-autocomplete-item\",item);},_renderItem:function(ul,item){return $(\"<li>\").append($(\"<div>\").text(item.label)).appendTo(ul);},_move:function(direction,event){if(!this.menu.element.is(\":visible\")){this.search(null,event);return;}\nif(this.menu.isFirstItem()&&/^previous/.test(direction)||this.menu.isLastItem()&&/^next/.test(direction)){if(!this.isMultiLine){this._value(this.term);}\nthis.menu.blur();return;}\nthis.menu[direction](event);},widget:function(){return this.menu.element;},_value:function(){return this.valueMethod.apply(this.element,arguments);},_keyEvent:function(keyEvent,event){if(!this.isMultiLine||this.menu.element.is(\":visible\")){this._move(keyEvent,event);event.preventDefault();}},_isContentEditable:function(element){if(!element.length){return false;}\nvar editable=element.prop(\"contentEditable\");if(editable===\"inherit\"){return this._isContentEditable(element.parent());}\nreturn editable===\"true\";}});$.extend($.ui.autocomplete,{escapeRegex:function(value){return value.replace(/[\\-\\[\\]{}()*+?.,\\\\\\^$|#\\s]/g,\"\\\\$&\");},filter:function(array,term){var matcher=new RegExp($.ui.autocomplete.escapeRegex(term),\"i\");return $.grep(array,function(value){return matcher.test(value.label||value.value||value);});}});$.widget(\"ui.autocomplete\",$.ui.autocomplete,{options:{messages:{noResults:\"No search results.\",results:function(amount){return amount+(amount>1?\" results are\":\" result is\")+\" available, use up and down arrow keys to navigate.\";}}},__response:function(content){var message;this._superApply(arguments);if(this.options.disabled||this.cancelSearch){return;}\nif(content&&content.length){message=this.options.messages.results(content.length);}else{message=this.options.messages.noResults;}\nclearTimeout(this.liveRegionTimer);this.liveRegionTimer=this._delay(function(){this.liveRegion.html($(\"<div>\").text(message));},100);}});var widgetsAutocomplete=$.ui.autocomplete;\n/*!\n * jQuery UI Controlgroup 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\nvar controlgroupCornerRegex=/ui-corner-([a-z]){2,6}/g;var widgetsControlgroup=$.widget(\"ui.controlgroup\",{version:\"1.13.2\",defaultElement:\"<div>\",options:{direction:\"horizontal\",disabled:null,onlyVisible:true,items:{\"button\":\"input[type=button], input[type=submit], input[type=reset], button, a\",\"controlgroupLabel\":\".ui-controlgroup-label\",\"checkboxradio\":\"input[type='checkbox'], input[type='radio']\",\"selectmenu\":\"select\",\"spinner\":\".ui-spinner-input\"}},_create:function(){this._enhance();},_enhance:function(){this.element.attr(\"role\",\"toolbar\");this.refresh();},_destroy:function(){this._callChildMethod(\"destroy\");this.childWidgets.removeData(\"ui-controlgroup-data\");this.element.removeAttr(\"role\");if(this.options.items.controlgroupLabel){this.element.find(this.options.items.controlgroupLabel).find(\".ui-controlgroup-label-contents\").contents().unwrap();}},_initWidgets:function(){var that=this,childWidgets=[];$.each(this.options.items,function(widget,selector){var labels;var options={};if(!selector){return;}\nif(widget===\"controlgroupLabel\"){labels=that.element.find(selector);labels.each(function(){var element=$(this);if(element.children(\".ui-controlgroup-label-contents\").length){return;}\nelement.contents().wrapAll(\"<span class='ui-controlgroup-label-contents'></span>\");});that._addClass(labels,null,\"ui-widget ui-widget-content ui-state-default\");childWidgets=childWidgets.concat(labels.get());return;}\nif(!$.fn[widget]){return;}\nif(that[\"_\"+widget+\"Options\"]){options=that[\"_\"+widget+\"Options\"](\"middle\");}else{options={classes:{}};}\nthat.element.find(selector).each(function(){var element=$(this);var instance=element[widget](\"instance\");var instanceOptions=$.widget.extend({},options);if(widget===\"button\"&&element.parent(\".ui-spinner\").length){return;}\nif(!instance){instance=element[widget]()[widget](\"instance\");}\nif(instance){instanceOptions.classes=that._resolveClassesValues(instanceOptions.classes,instance);}\nelement[widget](instanceOptions);var widgetElement=element[widget](\"widget\");$.data(widgetElement[0],\"ui-controlgroup-data\",instance?instance:element[widget](\"instance\"));childWidgets.push(widgetElement[0]);});});this.childWidgets=$($.uniqueSort(childWidgets));this._addClass(this.childWidgets,\"ui-controlgroup-item\");},_callChildMethod:function(method){this.childWidgets.each(function(){var element=$(this),data=element.data(\"ui-controlgroup-data\");if(data&&data[method]){data[method]();}});},_updateCornerClass:function(element,position){var remove=\"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all\";var add=this._buildSimpleOptions(position,\"label\").classes.label;this._removeClass(element,null,remove);this._addClass(element,null,add);},_buildSimpleOptions:function(position,key){var direction=this.options.direction===\"vertical\";var result={classes:{}};result.classes[key]={\"middle\":\"\",\"first\":\"ui-corner-\"+(direction?\"top\":\"left\"),\"last\":\"ui-corner-\"+(direction?\"bottom\":\"right\"),\"only\":\"ui-corner-all\"}[position];return result;},_spinnerOptions:function(position){var options=this._buildSimpleOptions(position,\"ui-spinner\");options.classes[\"ui-spinner-up\"]=\"\";options.classes[\"ui-spinner-down\"]=\"\";return options;},_buttonOptions:function(position){return this._buildSimpleOptions(position,\"ui-button\");},_checkboxradioOptions:function(position){return this._buildSimpleOptions(position,\"ui-checkboxradio-label\");},_selectmenuOptions:function(position){var direction=this.options.direction===\"vertical\";return{width:direction?\"auto\":false,classes:{middle:{\"ui-selectmenu-button-open\":\"\",\"ui-selectmenu-button-closed\":\"\"},first:{\"ui-selectmenu-button-open\":\"ui-corner-\"+(direction?\"top\":\"tl\"),\"ui-selectmenu-button-closed\":\"ui-corner-\"+(direction?\"top\":\"left\")},last:{\"ui-selectmenu-button-open\":direction?\"\":\"ui-corner-tr\",\"ui-selectmenu-button-closed\":\"ui-corner-\"+(direction?\"bottom\":\"right\")},only:{\"ui-selectmenu-button-open\":\"ui-corner-top\",\"ui-selectmenu-button-closed\":\"ui-corner-all\"}}[position]};},_resolveClassesValues:function(classes,instance){var result={};$.each(classes,function(key){var current=instance.options.classes[key]||\"\";current=String.prototype.trim.call(current.replace(controlgroupCornerRegex,\"\"));result[key]=(current+\" \"+classes[key]).replace(/\\s+/g,\" \");});return result;},_setOption:function(key,value){if(key===\"direction\"){this._removeClass(\"ui-controlgroup-\"+this.options.direction);}\nthis._super(key,value);if(key===\"disabled\"){this._callChildMethod(value?\"disable\":\"enable\");return;}\nthis.refresh();},refresh:function(){var children,that=this;this._addClass(\"ui-controlgroup ui-controlgroup-\"+this.options.direction);if(this.options.direction===\"horizontal\"){this._addClass(null,\"ui-helper-clearfix\");}\nthis._initWidgets();children=this.childWidgets;if(this.options.onlyVisible){children=children.filter(\":visible\");}\nif(children.length){$.each([\"first\",\"last\"],function(index,value){var instance=children[value]().data(\"ui-controlgroup-data\");if(instance&&that[\"_\"+instance.widgetName+\"Options\"]){var options=that[\"_\"+instance.widgetName+\"Options\"](children.length===1?\"only\":value);options.classes=that._resolveClassesValues(options.classes,instance);instance.element[instance.widgetName](options);}else{that._updateCornerClass(children[value](),value);}});this._callChildMethod(\"refresh\");}}});\n/*!\n * jQuery UI Checkboxradio 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n$.widget(\"ui.checkboxradio\",[$.ui.formResetMixin,{version:\"1.13.2\",options:{disabled:null,label:null,icon:true,classes:{\"ui-checkboxradio-label\":\"ui-corner-all\",\"ui-checkboxradio-icon\":\"ui-corner-all\"}},_getCreateOptions:function(){var disabled,labels,labelContents;var options=this._super()||{};this._readType();labels=this.element.labels();this.label=$(labels[labels.length-1]);if(!this.label.length){$.error(\"No label found for checkboxradio widget\");}\nthis.originalLabel=\"\";labelContents=this.label.contents().not(this.element[0]);if(labelContents.length){this.originalLabel+=labelContents.clone().wrapAll(\"<div></div>\").parent().html();}\nif(this.originalLabel){options.label=this.originalLabel;}\ndisabled=this.element[0].disabled;if(disabled!=null){options.disabled=disabled;}\nreturn options;},_create:function(){var checked=this.element[0].checked;this._bindFormResetHandler();if(this.options.disabled==null){this.options.disabled=this.element[0].disabled;}\nthis._setOption(\"disabled\",this.options.disabled);this._addClass(\"ui-checkboxradio\",\"ui-helper-hidden-accessible\");this._addClass(this.label,\"ui-checkboxradio-label\",\"ui-button ui-widget\");if(this.type===\"radio\"){this._addClass(this.label,\"ui-checkboxradio-radio-label\");}\nif(this.options.label&&this.options.label!==this.originalLabel){this._updateLabel();}else if(this.originalLabel){this.options.label=this.originalLabel;}\nthis._enhance();if(checked){this._addClass(this.label,\"ui-checkboxradio-checked\",\"ui-state-active\");}\nthis._on({change:\"_toggleClasses\",focus:function(){this._addClass(this.label,null,\"ui-state-focus ui-visual-focus\");},blur:function(){this._removeClass(this.label,null,\"ui-state-focus ui-visual-focus\");}});},_readType:function(){var nodeName=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type;if(nodeName!==\"input\"||!/radio|checkbox/.test(this.type)){$.error(\"Can't create checkboxradio on element.nodeName=\"+nodeName+\" and element.type=\"+this.type);}},_enhance:function(){this._updateIcon(this.element[0].checked);},widget:function(){return this.label;},_getRadioGroup:function(){var group;var name=this.element[0].name;var nameSelector=\"input[name='\"+$.escapeSelector(name)+\"']\";if(!name){return $([]);}\nif(this.form.length){group=$(this.form[0].elements).filter(nameSelector);}else{group=$(nameSelector).filter(function(){return $(this)._form().length===0;});}\nreturn group.not(this.element);},_toggleClasses:function(){var checked=this.element[0].checked;this._toggleClass(this.label,\"ui-checkboxradio-checked\",\"ui-state-active\",checked);if(this.options.icon&&this.type===\"checkbox\"){this._toggleClass(this.icon,null,\"ui-icon-check ui-state-checked\",checked)._toggleClass(this.icon,null,\"ui-icon-blank\",!checked);}\nif(this.type===\"radio\"){this._getRadioGroup().each(function(){var instance=$(this).checkboxradio(\"instance\");if(instance){instance._removeClass(instance.label,\"ui-checkboxradio-checked\",\"ui-state-active\");}});}},_destroy:function(){this._unbindFormResetHandler();if(this.icon){this.icon.remove();this.iconSpace.remove();}},_setOption:function(key,value){if(key===\"label\"&&!value){return;}\nthis._super(key,value);if(key===\"disabled\"){this._toggleClass(this.label,null,\"ui-state-disabled\",value);this.element[0].disabled=value;return;}\nthis.refresh();},_updateIcon:function(checked){var toAdd=\"ui-icon ui-icon-background \";if(this.options.icon){if(!this.icon){this.icon=$(\"<span>\");this.iconSpace=$(\"<span> </span>\");this._addClass(this.iconSpace,\"ui-checkboxradio-icon-space\");}\nif(this.type===\"checkbox\"){toAdd+=checked?\"ui-icon-check ui-state-checked\":\"ui-icon-blank\";this._removeClass(this.icon,null,checked?\"ui-icon-blank\":\"ui-icon-check\");}else{toAdd+=\"ui-icon-blank\";}\nthis._addClass(this.icon,\"ui-checkboxradio-icon\",toAdd);if(!checked){this._removeClass(this.icon,null,\"ui-icon-check ui-state-checked\");}\nthis.icon.prependTo(this.label).after(this.iconSpace);}else if(this.icon!==undefined){this.icon.remove();this.iconSpace.remove();delete this.icon;}},_updateLabel:function(){var contents=this.label.contents().not(this.element[0]);if(this.icon){contents=contents.not(this.icon[0]);}\nif(this.iconSpace){contents=contents.not(this.iconSpace[0]);}\ncontents.remove();this.label.append(this.options.label);},refresh:function(){var checked=this.element[0].checked,isDisabled=this.element[0].disabled;this._updateIcon(checked);this._toggleClass(this.label,\"ui-checkboxradio-checked\",\"ui-state-active\",checked);if(this.options.label!==null){this._updateLabel();}\nif(isDisabled!==this.options.disabled){this._setOptions({\"disabled\":isDisabled});}}}]);var widgetsCheckboxradio=$.ui.checkboxradio;\n/*!\n * jQuery UI Button 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n$.widget(\"ui.button\",{version:\"1.13.2\",defaultElement:\"<button>\",options:{classes:{\"ui-button\":\"ui-corner-all\"},disabled:null,icon:null,iconPosition:\"beginning\",label:null,showLabel:true},_getCreateOptions:function(){var disabled,options=this._super()||{};this.isInput=this.element.is(\"input\");disabled=this.element[0].disabled;if(disabled!=null){options.disabled=disabled;}\nthis.originalLabel=this.isInput?this.element.val():this.element.html();if(this.originalLabel){options.label=this.originalLabel;}\nreturn options;},_create:function(){if(!this.option.showLabel&!this.options.icon){this.options.showLabel=true;}\nif(this.options.disabled==null){this.options.disabled=this.element[0].disabled||false;}\nthis.hasTitle=!!this.element.attr(\"title\");if(this.options.label&&this.options.label!==this.originalLabel){if(this.isInput){this.element.val(this.options.label);}else{this.element.html(this.options.label);}}\nthis._addClass(\"ui-button\",\"ui-widget\");this._setOption(\"disabled\",this.options.disabled);this._enhance();if(this.element.is(\"a\")){this._on({\"keyup\":function(event){if(event.keyCode===$.ui.keyCode.SPACE){event.preventDefault();if(this.element[0].click){this.element[0].click();}else{this.element.trigger(\"click\");}}}});}},_enhance:function(){if(!this.element.is(\"button\")){this.element.attr(\"role\",\"button\");}\nif(this.options.icon){this._updateIcon(\"icon\",this.options.icon);this._updateTooltip();}},_updateTooltip:function(){this.title=this.element.attr(\"title\");if(!this.options.showLabel&&!this.title){this.element.attr(\"title\",this.options.label);}},_updateIcon:function(option,value){var icon=option!==\"iconPosition\",position=icon?this.options.iconPosition:value,displayBlock=position===\"top\"||position===\"bottom\";if(!this.icon){this.icon=$(\"<span>\");this._addClass(this.icon,\"ui-button-icon\",\"ui-icon\");if(!this.options.showLabel){this._addClass(\"ui-button-icon-only\");}}else if(icon){this._removeClass(this.icon,null,this.options.icon);}\nif(icon){this._addClass(this.icon,null,value);}\nthis._attachIcon(position);if(displayBlock){this._addClass(this.icon,null,\"ui-widget-icon-block\");if(this.iconSpace){this.iconSpace.remove();}}else{if(!this.iconSpace){this.iconSpace=$(\"<span> </span>\");this._addClass(this.iconSpace,\"ui-button-icon-space\");}\nthis._removeClass(this.icon,null,\"ui-wiget-icon-block\");this._attachIconSpace(position);}},_destroy:function(){this.element.removeAttr(\"role\");if(this.icon){this.icon.remove();}\nif(this.iconSpace){this.iconSpace.remove();}\nif(!this.hasTitle){this.element.removeAttr(\"title\");}},_attachIconSpace:function(iconPosition){this.icon[/^(?:end|bottom)/.test(iconPosition)?\"before\":\"after\"](this.iconSpace);},_attachIcon:function(iconPosition){this.element[/^(?:end|bottom)/.test(iconPosition)?\"append\":\"prepend\"](this.icon);},_setOptions:function(options){var newShowLabel=options.showLabel===undefined?this.options.showLabel:options.showLabel,newIcon=options.icon===undefined?this.options.icon:options.icon;if(!newShowLabel&&!newIcon){options.showLabel=true;}\nthis._super(options);},_setOption:function(key,value){if(key===\"icon\"){if(value){this._updateIcon(key,value);}else if(this.icon){this.icon.remove();if(this.iconSpace){this.iconSpace.remove();}}}\nif(key===\"iconPosition\"){this._updateIcon(key,value);}\nif(key===\"showLabel\"){this._toggleClass(\"ui-button-icon-only\",null,!value);this._updateTooltip();}\nif(key===\"label\"){if(this.isInput){this.element.val(value);}else{this.element.html(value);if(this.icon){this._attachIcon(this.options.iconPosition);this._attachIconSpace(this.options.iconPosition);}}}\nthis._super(key,value);if(key===\"disabled\"){this._toggleClass(null,\"ui-state-disabled\",value);this.element[0].disabled=value;if(value){this.element.trigger(\"blur\");}}},refresh:function(){var isDisabled=this.element.is(\"input, button\")?this.element[0].disabled:this.element.hasClass(\"ui-button-disabled\");if(isDisabled!==this.options.disabled){this._setOptions({disabled:isDisabled});}\nthis._updateTooltip();}});if($.uiBackCompat!==false){$.widget(\"ui.button\",$.ui.button,{options:{text:true,icons:{primary:null,secondary:null}},_create:function(){if(this.options.showLabel&&!this.options.text){this.options.showLabel=this.options.text;}\nif(!this.options.showLabel&&this.options.text){this.options.text=this.options.showLabel;}\nif(!this.options.icon&&(this.options.icons.primary||this.options.icons.secondary)){if(this.options.icons.primary){this.options.icon=this.options.icons.primary;}else{this.options.icon=this.options.icons.secondary;this.options.iconPosition=\"end\";}}else if(this.options.icon){this.options.icons.primary=this.options.icon;}\nthis._super();},_setOption:function(key,value){if(key===\"text\"){this._super(\"showLabel\",value);return;}\nif(key===\"showLabel\"){this.options.text=value;}\nif(key===\"icon\"){this.options.icons.primary=value;}\nif(key===\"icons\"){if(value.primary){this._super(\"icon\",value.primary);this._super(\"iconPosition\",\"beginning\");}else if(value.secondary){this._super(\"icon\",value.secondary);this._super(\"iconPosition\",\"end\");}}\nthis._superApply(arguments);}});$.fn.button=(function(orig){return function(options){var isMethodCall=typeof options===\"string\";var args=Array.prototype.slice.call(arguments,1);var returnValue=this;if(isMethodCall){if(!this.length&&options===\"instance\"){returnValue=undefined;}else{this.each(function(){var methodValue;var type=$(this).attr(\"type\");var name=type!==\"checkbox\"&&type!==\"radio\"?\"button\":\"checkboxradio\";var instance=$.data(this,\"ui-\"+name);if(options===\"instance\"){returnValue=instance;return false;}\nif(!instance){return $.error(\"cannot call methods on button\"+\" prior to initialization; \"+\"attempted to call method '\"+options+\"'\");}\nif(typeof instance[options]!==\"function\"||options.charAt(0)===\"_\"){return $.error(\"no such method '\"+options+\"' for button\"+\" widget instance\");}\nmethodValue=instance[options].apply(instance,args);if(methodValue!==instance&&methodValue!==undefined){returnValue=methodValue&&methodValue.jquery?returnValue.pushStack(methodValue.get()):methodValue;return false;}});}}else{if(args.length){options=$.widget.extend.apply(null,[options].concat(args));}\nthis.each(function(){var type=$(this).attr(\"type\");var name=type!==\"checkbox\"&&type!==\"radio\"?\"button\":\"checkboxradio\";var instance=$.data(this,\"ui-\"+name);if(instance){instance.option(options||{});if(instance._init){instance._init();}}else{if(name===\"button\"){orig.call($(this),options);return;}\n$(this).checkboxradio($.extend({icon:false},options));}});}\nreturn returnValue;};})($.fn.button);$.fn.buttonset=function(){if(!$.ui.controlgroup){$.error(\"Controlgroup widget missing\");}\nif(arguments[0]===\"option\"&&arguments[1]===\"items\"&&arguments[2]){return this.controlgroup.apply(this,[arguments[0],\"items.button\",arguments[2]]);}\nif(arguments[0]===\"option\"&&arguments[1]===\"items\"){return this.controlgroup.apply(this,[arguments[0],\"items.button\"]);}\nif(typeof arguments[0]===\"object\"&&arguments[0].items){arguments[0].items={button:arguments[0].items};}\nreturn this.controlgroup.apply(this,arguments);};}\nvar widgetsButton=$.ui.button;\n/*!\n * jQuery UI Datepicker 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n$.extend($.ui,{datepicker:{version:\"1.13.2\"}});var datepicker_instActive;function datepicker_getZindex(elem){var position,value;while(elem.length&&elem[0]!==document){position=elem.css(\"position\");if(position===\"absolute\"||position===\"relative\"||position===\"fixed\"){value=parseInt(elem.css(\"zIndex\"),10);if(!isNaN(value)&&value!==0){return value;}}\nelem=elem.parent();}\nreturn 0;}\nfunction Datepicker(){this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._datepickerShowing=false;this._inDialog=false;this._mainDivId=\"ui-datepicker-div\";this._inlineClass=\"ui-datepicker-inline\";this._appendClass=\"ui-datepicker-append\";this._triggerClass=\"ui-datepicker-trigger\";this._dialogClass=\"ui-datepicker-dialog\";this._disableClass=\"ui-datepicker-disabled\";this._unselectableClass=\"ui-datepicker-unselectable\";this._currentClass=\"ui-datepicker-current-day\";this._dayOverClass=\"ui-datepicker-days-cell-over\";this.regional=[];this.regional[\"\"]={closeText:\"Done\",prevText:\"Prev\",nextText:\"Next\",currentText:\"Today\",monthNames:[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"],monthNamesShort:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"],dayNames:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"],dayNamesShort:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],dayNamesMin:[\"Su\",\"Mo\",\"Tu\",\"We\",\"Th\",\"Fr\",\"Sa\"],weekHeader:\"Wk\",dateFormat:\"mm/dd/yy\",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\",selectMonthLabel:\"Select month\",selectYearLabel:\"Select year\"};this._defaults={showOn:\"focus\",showAnim:\"fadeIn\",showOptions:{},defaultDate:null,appendText:\"\",buttonText:\"...\",buttonImage:\"\",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,yearRange:\"c-10:c+10\",showOtherMonths:false,selectOtherMonths:false,showWeek:false,calculateWeek:this.iso8601Week,shortYearCutoff:\"+10\",minDate:null,maxDate:null,duration:\"fast\",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:\"\",altFormat:\"\",constrainInput:true,showButtonPanel:false,autoSize:false,disabled:false};$.extend(this._defaults,this.regional[\"\"]);this.regional.en=$.extend(true,{},this.regional[\"\"]);this.regional[\"en-US\"]=$.extend(true,{},this.regional.en);this.dpDiv=datepicker_bindHover($(\"<div id='\"+this._mainDivId+\"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>\"));}\n$.extend(Datepicker.prototype,{markerClassName:\"hasDatepicker\",maxRows:4,_widgetDatepicker:function(){return this.dpDiv;},setDefaults:function(settings){datepicker_extendRemove(this._defaults,settings||{});return this;},_attachDatepicker:function(target,settings){var nodeName,inline,inst;nodeName=target.nodeName.toLowerCase();inline=(nodeName===\"div\"||nodeName===\"span\");if(!target.id){this.uuid+=1;target.id=\"dp\"+this.uuid;}\ninst=this._newInst($(target),inline);inst.settings=$.extend({},settings||{});if(nodeName===\"input\"){this._connectDatepicker(target,inst);}else if(inline){this._inlineDatepicker(target,inst);}},_newInst:function(target,inline){var id=target[0].id.replace(/([^A-Za-z0-9_\\-])/g,\"\\\\\\\\$1\");return{id:id,input:target,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:inline,dpDiv:(!inline?this.dpDiv:datepicker_bindHover($(\"<div class='\"+this._inlineClass+\" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>\")))};},_connectDatepicker:function(target,inst){var input=$(target);inst.append=$([]);inst.trigger=$([]);if(input.hasClass(this.markerClassName)){return;}\nthis._attachments(input,inst);input.addClass(this.markerClassName).on(\"keydown\",this._doKeyDown).on(\"keypress\",this._doKeyPress).on(\"keyup\",this._doKeyUp);this._autoSize(inst);$.data(target,\"datepicker\",inst);if(inst.settings.disabled){this._disableDatepicker(target);}},_attachments:function(input,inst){var showOn,buttonText,buttonImage,appendText=this._get(inst,\"appendText\"),isRTL=this._get(inst,\"isRTL\");if(inst.append){inst.append.remove();}\nif(appendText){inst.append=$(\"<span>\").addClass(this._appendClass).text(appendText);input[isRTL?\"before\":\"after\"](inst.append);}\ninput.off(\"focus\",this._showDatepicker);if(inst.trigger){inst.trigger.remove();}\nshowOn=this._get(inst,\"showOn\");if(showOn===\"focus\"||showOn===\"both\"){input.on(\"focus\",this._showDatepicker);}\nif(showOn===\"button\"||showOn===\"both\"){buttonText=this._get(inst,\"buttonText\");buttonImage=this._get(inst,\"buttonImage\");if(this._get(inst,\"buttonImageOnly\")){inst.trigger=$(\"<img>\").addClass(this._triggerClass).attr({src:buttonImage,alt:buttonText,title:buttonText});}else{inst.trigger=$(\"<button type='button'>\").addClass(this._triggerClass);if(buttonImage){inst.trigger.html($(\"<img>\").attr({src:buttonImage,alt:buttonText,title:buttonText}));}else{inst.trigger.text(buttonText);}}\ninput[isRTL?\"before\":\"after\"](inst.trigger);inst.trigger.on(\"click\",function(){if($.datepicker._datepickerShowing&&$.datepicker._lastInput===input[0]){$.datepicker._hideDatepicker();}else if($.datepicker._datepickerShowing&&$.datepicker._lastInput!==input[0]){$.datepicker._hideDatepicker();$.datepicker._showDatepicker(input[0]);}else{$.datepicker._showDatepicker(input[0]);}\nreturn false;});}},_autoSize:function(inst){if(this._get(inst,\"autoSize\")&&!inst.inline){var findMax,max,maxI,i,date=new Date(2009,12-1,20),dateFormat=this._get(inst,\"dateFormat\");if(dateFormat.match(/[DM]/)){findMax=function(names){max=0;maxI=0;for(i=0;i<names.length;i++){if(names[i].length>max){max=names[i].length;maxI=i;}}\nreturn maxI;};date.setMonth(findMax(this._get(inst,(dateFormat.match(/MM/)?\"monthNames\":\"monthNamesShort\"))));date.setDate(findMax(this._get(inst,(dateFormat.match(/DD/)?\"dayNames\":\"dayNamesShort\")))+20-date.getDay());}\ninst.input.attr(\"size\",this._formatDate(inst,date).length);}},_inlineDatepicker:function(target,inst){var divSpan=$(target);if(divSpan.hasClass(this.markerClassName)){return;}\ndivSpan.addClass(this.markerClassName).append(inst.dpDiv);$.data(target,\"datepicker\",inst);this._setDate(inst,this._getDefaultDate(inst),true);this._updateDatepicker(inst);this._updateAlternate(inst);if(inst.settings.disabled){this._disableDatepicker(target);}\ninst.dpDiv.css(\"display\",\"block\");},_dialogDatepicker:function(input,date,onSelect,settings,pos){var id,browserWidth,browserHeight,scrollX,scrollY,inst=this._dialogInst;if(!inst){this.uuid+=1;id=\"dp\"+this.uuid;this._dialogInput=$(\"<input type='text' id='\"+id+\"' style='position: absolute; top: -100px; width: 0px;'/>\");this._dialogInput.on(\"keydown\",this._doKeyDown);$(\"body\").append(this._dialogInput);inst=this._dialogInst=this._newInst(this._dialogInput,false);inst.settings={};$.data(this._dialogInput[0],\"datepicker\",inst);}\ndatepicker_extendRemove(inst.settings,settings||{});date=(date&&date.constructor===Date?this._formatDate(inst,date):date);this._dialogInput.val(date);this._pos=(pos?(pos.length?pos:[pos.pageX,pos.pageY]):null);if(!this._pos){browserWidth=document.documentElement.clientWidth;browserHeight=document.documentElement.clientHeight;scrollX=document.documentElement.scrollLeft||document.body.scrollLeft;scrollY=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[(browserWidth / 2)-100+scrollX,(browserHeight / 2)-150+scrollY];}\nthis._dialogInput.css(\"left\",(this._pos[0]+20)+\"px\").css(\"top\",this._pos[1]+\"px\");inst.settings.onSelect=onSelect;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);if($.blockUI){$.blockUI(this.dpDiv);}\n$.data(this._dialogInput[0],\"datepicker\",inst);return this;},_destroyDatepicker:function(target){var nodeName,$target=$(target),inst=$.data(target,\"datepicker\");if(!$target.hasClass(this.markerClassName)){return;}\nnodeName=target.nodeName.toLowerCase();$.removeData(target,\"datepicker\");if(nodeName===\"input\"){inst.append.remove();inst.trigger.remove();$target.removeClass(this.markerClassName).off(\"focus\",this._showDatepicker).off(\"keydown\",this._doKeyDown).off(\"keypress\",this._doKeyPress).off(\"keyup\",this._doKeyUp);}else if(nodeName===\"div\"||nodeName===\"span\"){$target.removeClass(this.markerClassName).empty();}\nif(datepicker_instActive===inst){datepicker_instActive=null;this._curInst=null;}},_enableDatepicker:function(target){var nodeName,inline,$target=$(target),inst=$.data(target,\"datepicker\");if(!$target.hasClass(this.markerClassName)){return;}\nnodeName=target.nodeName.toLowerCase();if(nodeName===\"input\"){target.disabled=false;inst.trigger.filter(\"button\").each(function(){this.disabled=false;}).end().filter(\"img\").css({opacity:\"1.0\",cursor:\"\"});}else if(nodeName===\"div\"||nodeName===\"span\"){inline=$target.children(\".\"+this._inlineClass);inline.children().removeClass(\"ui-state-disabled\");inline.find(\"select.ui-datepicker-month, select.ui-datepicker-year\").prop(\"disabled\",false);}\nthis._disabledInputs=$.map(this._disabledInputs,function(value){return(value===target?null:value);});},_disableDatepicker:function(target){var nodeName,inline,$target=$(target),inst=$.data(target,\"datepicker\");if(!$target.hasClass(this.markerClassName)){return;}\nnodeName=target.nodeName.toLowerCase();if(nodeName===\"input\"){target.disabled=true;inst.trigger.filter(\"button\").each(function(){this.disabled=true;}).end().filter(\"img\").css({opacity:\"0.5\",cursor:\"default\"});}else if(nodeName===\"div\"||nodeName===\"span\"){inline=$target.children(\".\"+this._inlineClass);inline.children().addClass(\"ui-state-disabled\");inline.find(\"select.ui-datepicker-month, select.ui-datepicker-year\").prop(\"disabled\",true);}\nthis._disabledInputs=$.map(this._disabledInputs,function(value){return(value===target?null:value);});this._disabledInputs[this._disabledInputs.length]=target;},_isDisabledDatepicker:function(target){if(!target){return false;}\nfor(var i=0;i<this._disabledInputs.length;i++){if(this._disabledInputs[i]===target){return true;}}\nreturn false;},_getInst:function(target){try{return $.data(target,\"datepicker\");}catch(err){throw\"Missing instance data for this datepicker\";}},_optionDatepicker:function(target,name,value){var settings,date,minDate,maxDate,inst=this._getInst(target);if(arguments.length===2&&typeof name===\"string\"){return(name===\"defaults\"?$.extend({},$.datepicker._defaults):(inst?(name===\"all\"?$.extend({},inst.settings):this._get(inst,name)):null));}\nsettings=name||{};if(typeof name===\"string\"){settings={};settings[name]=value;}\nif(inst){if(this._curInst===inst){this._hideDatepicker();}\ndate=this._getDateDatepicker(target,true);minDate=this._getMinMaxDate(inst,\"min\");maxDate=this._getMinMaxDate(inst,\"max\");datepicker_extendRemove(inst.settings,settings);if(minDate!==null&&settings.dateFormat!==undefined&&settings.minDate===undefined){inst.settings.minDate=this._formatDate(inst,minDate);}\nif(maxDate!==null&&settings.dateFormat!==undefined&&settings.maxDate===undefined){inst.settings.maxDate=this._formatDate(inst,maxDate);}\nif(\"disabled\"in settings){if(settings.disabled){this._disableDatepicker(target);}else{this._enableDatepicker(target);}}\nthis._attachments($(target),inst);this._autoSize(inst);this._setDate(inst,date);this._updateAlternate(inst);this._updateDatepicker(inst);}},_changeDatepicker:function(target,name,value){this._optionDatepicker(target,name,value);},_refreshDatepicker:function(target){var inst=this._getInst(target);if(inst){this._updateDatepicker(inst);}},_setDateDatepicker:function(target,date){var inst=this._getInst(target);if(inst){this._setDate(inst,date);this._updateDatepicker(inst);this._updateAlternate(inst);}},_getDateDatepicker:function(target,noDefault){var inst=this._getInst(target);if(inst&&!inst.inline){this._setDateFromField(inst,noDefault);}\nreturn(inst?this._getDate(inst):null);},_doKeyDown:function(event){var onSelect,dateStr,sel,inst=$.datepicker._getInst(event.target),handled=true,isRTL=inst.dpDiv.is(\".ui-datepicker-rtl\");inst._keyEvent=true;if($.datepicker._datepickerShowing){switch(event.keyCode){case 9:$.datepicker._hideDatepicker();handled=false;break;case 13:sel=$(\"td.\"+$.datepicker._dayOverClass+\":not(.\"+\n$.datepicker._currentClass+\")\",inst.dpDiv);if(sel[0]){$.datepicker._selectDay(event.target,inst.selectedMonth,inst.selectedYear,sel[0]);}\nonSelect=$.datepicker._get(inst,\"onSelect\");if(onSelect){dateStr=$.datepicker._formatDate(inst);onSelect.apply((inst.input?inst.input[0]:null),[dateStr,inst]);}else{$.datepicker._hideDatepicker();}\nreturn false;case 27:$.datepicker._hideDatepicker();break;case 33:$.datepicker._adjustDate(event.target,(event.ctrlKey?-$.datepicker._get(inst,\"stepBigMonths\"):-$.datepicker._get(inst,\"stepMonths\")),\"M\");break;case 34:$.datepicker._adjustDate(event.target,(event.ctrlKey?+$.datepicker._get(inst,\"stepBigMonths\"):+$.datepicker._get(inst,\"stepMonths\")),\"M\");break;case 35:if(event.ctrlKey||event.metaKey){$.datepicker._clearDate(event.target);}\nhandled=event.ctrlKey||event.metaKey;break;case 36:if(event.ctrlKey||event.metaKey){$.datepicker._gotoToday(event.target);}\nhandled=event.ctrlKey||event.metaKey;break;case 37:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,(isRTL?+1:-1),\"D\");}\nhandled=event.ctrlKey||event.metaKey;if(event.originalEvent.altKey){$.datepicker._adjustDate(event.target,(event.ctrlKey?-$.datepicker._get(inst,\"stepBigMonths\"):-$.datepicker._get(inst,\"stepMonths\")),\"M\");}\nbreak;case 38:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,-7,\"D\");}\nhandled=event.ctrlKey||event.metaKey;break;case 39:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,(isRTL?-1:+1),\"D\");}\nhandled=event.ctrlKey||event.metaKey;if(event.originalEvent.altKey){$.datepicker._adjustDate(event.target,(event.ctrlKey?+$.datepicker._get(inst,\"stepBigMonths\"):+$.datepicker._get(inst,\"stepMonths\")),\"M\");}\nbreak;case 40:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,+7,\"D\");}\nhandled=event.ctrlKey||event.metaKey;break;default:handled=false;}}else if(event.keyCode===36&&event.ctrlKey){$.datepicker._showDatepicker(this);}else{handled=false;}\nif(handled){event.preventDefault();event.stopPropagation();}},_doKeyPress:function(event){var chars,chr,inst=$.datepicker._getInst(event.target);if($.datepicker._get(inst,\"constrainInput\")){chars=$.datepicker._possibleChars($.datepicker._get(inst,\"dateFormat\"));chr=String.fromCharCode(event.charCode==null?event.keyCode:event.charCode);return event.ctrlKey||event.metaKey||(chr<\" \"||!chars||chars.indexOf(chr)>-1);}},_doKeyUp:function(event){var date,inst=$.datepicker._getInst(event.target);if(inst.input.val()!==inst.lastVal){try{date=$.datepicker.parseDate($.datepicker._get(inst,\"dateFormat\"),(inst.input?inst.input.val():null),$.datepicker._getFormatConfig(inst));if(date){$.datepicker._setDateFromField(inst);$.datepicker._updateAlternate(inst);$.datepicker._updateDatepicker(inst);}}catch(err){}}\nreturn true;},_showDatepicker:function(input){input=input.target||input;if(input.nodeName.toLowerCase()!==\"input\"){input=$(\"input\",input.parentNode)[0];}\nif($.datepicker._isDisabledDatepicker(input)||$.datepicker._lastInput===input){return;}\nvar inst,beforeShow,beforeShowSettings,isFixed,offset,showAnim,duration;inst=$.datepicker._getInst(input);if($.datepicker._curInst&&$.datepicker._curInst!==inst){$.datepicker._curInst.dpDiv.stop(true,true);if(inst&&$.datepicker._datepickerShowing){$.datepicker._hideDatepicker($.datepicker._curInst.input[0]);}}\nbeforeShow=$.datepicker._get(inst,\"beforeShow\");beforeShowSettings=beforeShow?beforeShow.apply(input,[input,inst]):{};if(beforeShowSettings===false){return;}\ndatepicker_extendRemove(inst.settings,beforeShowSettings);inst.lastVal=null;$.datepicker._lastInput=input;$.datepicker._setDateFromField(inst);if($.datepicker._inDialog){input.value=\"\";}\nif(!$.datepicker._pos){$.datepicker._pos=$.datepicker._findPos(input);$.datepicker._pos[1]+=input.offsetHeight;}\nisFixed=false;$(input).parents().each(function(){isFixed|=$(this).css(\"position\")===\"fixed\";return!isFixed;});offset={left:$.datepicker._pos[0],top:$.datepicker._pos[1]};$.datepicker._pos=null;inst.dpDiv.empty();inst.dpDiv.css({position:\"absolute\",display:\"block\",top:\"-1000px\"});$.datepicker._updateDatepicker(inst);offset=$.datepicker._checkOffset(inst,offset,isFixed);inst.dpDiv.css({position:($.datepicker._inDialog&&$.blockUI?\"static\":(isFixed?\"fixed\":\"absolute\")),display:\"none\",left:offset.left+\"px\",top:offset.top+\"px\"});if(!inst.inline){showAnim=$.datepicker._get(inst,\"showAnim\");duration=$.datepicker._get(inst,\"duration\");inst.dpDiv.css(\"z-index\",datepicker_getZindex($(input))+1);$.datepicker._datepickerShowing=true;if($.effects&&$.effects.effect[showAnim]){inst.dpDiv.show(showAnim,$.datepicker._get(inst,\"showOptions\"),duration);}else{inst.dpDiv[showAnim||\"show\"](showAnim?duration:null);}\nif($.datepicker._shouldFocusInput(inst)){inst.input.trigger(\"focus\");}\n$.datepicker._curInst=inst;}},_updateDatepicker:function(inst){this.maxRows=4;datepicker_instActive=inst;inst.dpDiv.empty().append(this._generateHTML(inst));this._attachHandlers(inst);var origyearshtml,numMonths=this._getNumberOfMonths(inst),cols=numMonths[1],width=17,activeCell=inst.dpDiv.find(\".\"+this._dayOverClass+\" a\"),onUpdateDatepicker=$.datepicker._get(inst,\"onUpdateDatepicker\");if(activeCell.length>0){datepicker_handleMouseover.apply(activeCell.get(0));}\ninst.dpDiv.removeClass(\"ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4\").width(\"\");if(cols>1){inst.dpDiv.addClass(\"ui-datepicker-multi-\"+cols).css(\"width\",(width*cols)+\"em\");}\ninst.dpDiv[(numMonths[0]!==1||numMonths[1]!==1?\"add\":\"remove\")+\"Class\"](\"ui-datepicker-multi\");inst.dpDiv[(this._get(inst,\"isRTL\")?\"add\":\"remove\")+\"Class\"](\"ui-datepicker-rtl\");if(inst===$.datepicker._curInst&&$.datepicker._datepickerShowing&&$.datepicker._shouldFocusInput(inst)){inst.input.trigger(\"focus\");}\nif(inst.yearshtml){origyearshtml=inst.yearshtml;setTimeout(function(){if(origyearshtml===inst.yearshtml&&inst.yearshtml){inst.dpDiv.find(\"select.ui-datepicker-year\").first().replaceWith(inst.yearshtml);}\norigyearshtml=inst.yearshtml=null;},0);}\nif(onUpdateDatepicker){onUpdateDatepicker.apply((inst.input?inst.input[0]:null),[inst]);}},_shouldFocusInput:function(inst){return inst.input&&inst.input.is(\":visible\")&&!inst.input.is(\":disabled\")&&!inst.input.is(\":focus\");},_checkOffset:function(inst,offset,isFixed){var dpWidth=inst.dpDiv.outerWidth(),dpHeight=inst.dpDiv.outerHeight(),inputWidth=inst.input?inst.input.outerWidth():0,inputHeight=inst.input?inst.input.outerHeight():0,viewWidth=document.documentElement.clientWidth+(isFixed?0:$(document).scrollLeft()),viewHeight=document.documentElement.clientHeight+(isFixed?0:$(document).scrollTop());offset.left-=(this._get(inst,\"isRTL\")?(dpWidth-inputWidth):0);offset.left-=(isFixed&&offset.left===inst.input.offset().left)?$(document).scrollLeft():0;offset.top-=(isFixed&&offset.top===(inst.input.offset().top+inputHeight))?$(document).scrollTop():0;offset.left-=Math.min(offset.left,(offset.left+dpWidth>viewWidth&&viewWidth>dpWidth)?Math.abs(offset.left+dpWidth-viewWidth):0);offset.top-=Math.min(offset.top,(offset.top+dpHeight>viewHeight&&viewHeight>dpHeight)?Math.abs(dpHeight+inputHeight):0);return offset;},_findPos:function(obj){var position,inst=this._getInst(obj),isRTL=this._get(inst,\"isRTL\");while(obj&&(obj.type===\"hidden\"||obj.nodeType!==1||$.expr.pseudos.hidden(obj))){obj=obj[isRTL?\"previousSibling\":\"nextSibling\"];}\nposition=$(obj).offset();return[position.left,position.top];},_hideDatepicker:function(input){var showAnim,duration,postProcess,onClose,inst=this._curInst;if(!inst||(input&&inst!==$.data(input,\"datepicker\"))){return;}\nif(this._datepickerShowing){showAnim=this._get(inst,\"showAnim\");duration=this._get(inst,\"duration\");postProcess=function(){$.datepicker._tidyDialog(inst);};if($.effects&&($.effects.effect[showAnim]||$.effects[showAnim])){inst.dpDiv.hide(showAnim,$.datepicker._get(inst,\"showOptions\"),duration,postProcess);}else{inst.dpDiv[(showAnim===\"slideDown\"?\"slideUp\":(showAnim===\"fadeIn\"?\"fadeOut\":\"hide\"))]((showAnim?duration:null),postProcess);}\nif(!showAnim){postProcess();}\nthis._datepickerShowing=false;onClose=this._get(inst,\"onClose\");if(onClose){onClose.apply((inst.input?inst.input[0]:null),[(inst.input?inst.input.val():\"\"),inst]);}\nthis._lastInput=null;if(this._inDialog){this._dialogInput.css({position:\"absolute\",left:\"0\",top:\"-100px\"});if($.blockUI){$.unblockUI();$(\"body\").append(this.dpDiv);}}\nthis._inDialog=false;}},_tidyDialog:function(inst){inst.dpDiv.removeClass(this._dialogClass).off(\".ui-datepicker-calendar\");},_checkExternalClick:function(event){if(!$.datepicker._curInst){return;}\nvar $target=$(event.target),inst=$.datepicker._getInst($target[0]);if((($target[0].id!==$.datepicker._mainDivId&&$target.parents(\"#\"+$.datepicker._mainDivId).length===0&&!$target.hasClass($.datepicker.markerClassName)&&!$target.closest(\".\"+$.datepicker._triggerClass).length&&$.datepicker._datepickerShowing&&!($.datepicker._inDialog&&$.blockUI)))||($target.hasClass($.datepicker.markerClassName)&&$.datepicker._curInst!==inst)){$.datepicker._hideDatepicker();}},_adjustDate:function(id,offset,period){var target=$(id),inst=this._getInst(target[0]);if(this._isDisabledDatepicker(target[0])){return;}\nthis._adjustInstDate(inst,offset,period);this._updateDatepicker(inst);},_gotoToday:function(id){var date,target=$(id),inst=this._getInst(target[0]);if(this._get(inst,\"gotoCurrent\")&&inst.currentDay){inst.selectedDay=inst.currentDay;inst.drawMonth=inst.selectedMonth=inst.currentMonth;inst.drawYear=inst.selectedYear=inst.currentYear;}else{date=new Date();inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();}\nthis._notifyChange(inst);this._adjustDate(target);},_selectMonthYear:function(id,select,period){var target=$(id),inst=this._getInst(target[0]);inst[\"selected\"+(period===\"M\"?\"Month\":\"Year\")]=inst[\"draw\"+(period===\"M\"?\"Month\":\"Year\")]=parseInt(select.options[select.selectedIndex].value,10);this._notifyChange(inst);this._adjustDate(target);},_selectDay:function(id,month,year,td){var inst,target=$(id);if($(td).hasClass(this._unselectableClass)||this._isDisabledDatepicker(target[0])){return;}\ninst=this._getInst(target[0]);inst.selectedDay=inst.currentDay=parseInt($(\"a\",td).attr(\"data-date\"));inst.selectedMonth=inst.currentMonth=month;inst.selectedYear=inst.currentYear=year;this._selectDate(id,this._formatDate(inst,inst.currentDay,inst.currentMonth,inst.currentYear));},_clearDate:function(id){var target=$(id);this._selectDate(target,\"\");},_selectDate:function(id,dateStr){var onSelect,target=$(id),inst=this._getInst(target[0]);dateStr=(dateStr!=null?dateStr:this._formatDate(inst));if(inst.input){inst.input.val(dateStr);}\nthis._updateAlternate(inst);onSelect=this._get(inst,\"onSelect\");if(onSelect){onSelect.apply((inst.input?inst.input[0]:null),[dateStr,inst]);}else if(inst.input){inst.input.trigger(\"change\");}\nif(inst.inline){this._updateDatepicker(inst);}else{this._hideDatepicker();this._lastInput=inst.input[0];if(typeof(inst.input[0])!==\"object\"){inst.input.trigger(\"focus\");}\nthis._lastInput=null;}},_updateAlternate:function(inst){var altFormat,date,dateStr,altField=this._get(inst,\"altField\");if(altField){altFormat=this._get(inst,\"altFormat\")||this._get(inst,\"dateFormat\");date=this._getDate(inst);dateStr=this.formatDate(altFormat,date,this._getFormatConfig(inst));$(document).find(altField).val(dateStr);}},noWeekends:function(date){var day=date.getDay();return[(day>0&&day<6),\"\"];},iso8601Week:function(date){var time,checkDate=new Date(date.getTime());checkDate.setDate(checkDate.getDate()+4-(checkDate.getDay()||7));time=checkDate.getTime();checkDate.setMonth(0);checkDate.setDate(1);return Math.floor(Math.round((time-checkDate)/ 86400000)/ 7)+1;},parseDate:function(format,value,settings){if(format==null||value==null){throw\"Invalid arguments\";}\nvalue=(typeof value===\"object\"?value.toString():value+\"\");if(value===\"\"){return null;}\nvar iFormat,dim,extra,iValue=0,shortYearCutoffTemp=(settings?settings.shortYearCutoff:null)||this._defaults.shortYearCutoff,shortYearCutoff=(typeof shortYearCutoffTemp!==\"string\"?shortYearCutoffTemp:new Date().getFullYear()%100+parseInt(shortYearCutoffTemp,10)),dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort,dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames,monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort,monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames,year=-1,month=-1,day=-1,doy=-1,literal=false,date,lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)===match);if(matches){iFormat++;}\nreturn matches;},getNumber=function(match){var isDoubled=lookAhead(match),size=(match===\"@\"?14:(match===\"!\"?20:(match===\"y\"&&isDoubled?4:(match===\"o\"?3:2)))),minSize=(match===\"y\"?size:1),digits=new RegExp(\"^\\\\d{\"+minSize+\",\"+size+\"}\"),num=value.substring(iValue).match(digits);if(!num){throw\"Missing number at position \"+iValue;}\niValue+=num[0].length;return parseInt(num[0],10);},getName=function(match,shortNames,longNames){var index=-1,names=$.map(lookAhead(match)?longNames:shortNames,function(v,k){return[[k,v]];}).sort(function(a,b){return-(a[1].length-b[1].length);});$.each(names,function(i,pair){var name=pair[1];if(value.substr(iValue,name.length).toLowerCase()===name.toLowerCase()){index=pair[0];iValue+=name.length;return false;}});if(index!==-1){return index+1;}else{throw\"Unknown name at position \"+iValue;}},checkLiteral=function(){if(value.charAt(iValue)!==format.charAt(iFormat)){throw\"Unexpected literal at position \"+iValue;}\niValue++;};for(iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)===\"'\"&&!lookAhead(\"'\")){literal=false;}else{checkLiteral();}}else{switch(format.charAt(iFormat)){case\"d\":day=getNumber(\"d\");break;case\"D\":getName(\"D\",dayNamesShort,dayNames);break;case\"o\":doy=getNumber(\"o\");break;case\"m\":month=getNumber(\"m\");break;case\"M\":month=getName(\"M\",monthNamesShort,monthNames);break;case\"y\":year=getNumber(\"y\");break;case\"@\":date=new Date(getNumber(\"@\"));year=date.getFullYear();month=date.getMonth()+1;day=date.getDate();break;case\"!\":date=new Date((getNumber(\"!\")-this._ticksTo1970)/ 10000);year=date.getFullYear();month=date.getMonth()+1;day=date.getDate();break;case\"'\":if(lookAhead(\"'\")){checkLiteral();}else{literal=true;}\nbreak;default:checkLiteral();}}}\nif(iValue<value.length){extra=value.substr(iValue);if(!/^\\s+/.test(extra)){throw\"Extra/unparsed characters found in date: \"+extra;}}\nif(year===-1){year=new Date().getFullYear();}else if(year<100){year+=new Date().getFullYear()-new Date().getFullYear()%100+\n(year<=shortYearCutoff?0:-100);}\nif(doy>-1){month=1;day=doy;do{dim=this._getDaysInMonth(year,month-1);if(day<=dim){break;}\nmonth++;day-=dim;}while(true);}\ndate=this._daylightSavingAdjust(new Date(year,month-1,day));if(date.getFullYear()!==year||date.getMonth()+1!==month||date.getDate()!==day){throw\"Invalid date\";}\nreturn date;},ATOM:\"yy-mm-dd\",COOKIE:\"D, dd M yy\",ISO_8601:\"yy-mm-dd\",RFC_822:\"D, d M y\",RFC_850:\"DD, dd-M-y\",RFC_1036:\"D, d M y\",RFC_1123:\"D, d M yy\",RFC_2822:\"D, d M yy\",RSS:\"D, d M y\",TICKS:\"!\",TIMESTAMP:\"@\",W3C:\"yy-mm-dd\",_ticksTo1970:(((1970-1)*365+Math.floor(1970 / 4)-Math.floor(1970 / 100)+\nMath.floor(1970 / 400))*24*60*60*10000000),formatDate:function(format,date,settings){if(!date){return\"\";}\nvar iFormat,dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort,dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames,monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort,monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames,lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)===match);if(matches){iFormat++;}\nreturn matches;},formatNumber=function(match,value,len){var num=\"\"+value;if(lookAhead(match)){while(num.length<len){num=\"0\"+num;}}\nreturn num;},formatName=function(match,value,shortNames,longNames){return(lookAhead(match)?longNames[value]:shortNames[value]);},output=\"\",literal=false;if(date){for(iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)===\"'\"&&!lookAhead(\"'\")){literal=false;}else{output+=format.charAt(iFormat);}}else{switch(format.charAt(iFormat)){case\"d\":output+=formatNumber(\"d\",date.getDate(),2);break;case\"D\":output+=formatName(\"D\",date.getDay(),dayNamesShort,dayNames);break;case\"o\":output+=formatNumber(\"o\",Math.round((new Date(date.getFullYear(),date.getMonth(),date.getDate()).getTime()-new Date(date.getFullYear(),0,0).getTime())/ 86400000),3);break;case\"m\":output+=formatNumber(\"m\",date.getMonth()+1,2);break;case\"M\":output+=formatName(\"M\",date.getMonth(),monthNamesShort,monthNames);break;case\"y\":output+=(lookAhead(\"y\")?date.getFullYear():(date.getFullYear()%100<10?\"0\":\"\")+date.getFullYear()%100);break;case\"@\":output+=date.getTime();break;case\"!\":output+=date.getTime()*10000+this._ticksTo1970;break;case\"'\":if(lookAhead(\"'\")){output+=\"'\";}else{literal=true;}\nbreak;default:output+=format.charAt(iFormat);}}}}\nreturn output;},_possibleChars:function(format){var iFormat,chars=\"\",literal=false,lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)===match);if(matches){iFormat++;}\nreturn matches;};for(iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)===\"'\"&&!lookAhead(\"'\")){literal=false;}else{chars+=format.charAt(iFormat);}}else{switch(format.charAt(iFormat)){case\"d\":case\"m\":case\"y\":case\"@\":chars+=\"0123456789\";break;case\"D\":case\"M\":return null;case\"'\":if(lookAhead(\"'\")){chars+=\"'\";}else{literal=true;}\nbreak;default:chars+=format.charAt(iFormat);}}}\nreturn chars;},_get:function(inst,name){return inst.settings[name]!==undefined?inst.settings[name]:this._defaults[name];},_setDateFromField:function(inst,noDefault){if(inst.input.val()===inst.lastVal){return;}\nvar dateFormat=this._get(inst,\"dateFormat\"),dates=inst.lastVal=inst.input?inst.input.val():null,defaultDate=this._getDefaultDate(inst),date=defaultDate,settings=this._getFormatConfig(inst);try{date=this.parseDate(dateFormat,dates,settings)||defaultDate;}catch(event){dates=(noDefault?\"\":dates);}\ninst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();inst.currentDay=(dates?date.getDate():0);inst.currentMonth=(dates?date.getMonth():0);inst.currentYear=(dates?date.getFullYear():0);this._adjustInstDate(inst);},_getDefaultDate:function(inst){return this._restrictMinMax(inst,this._determineDate(inst,this._get(inst,\"defaultDate\"),new Date()));},_determineDate:function(inst,date,defaultDate){var offsetNumeric=function(offset){var date=new Date();date.setDate(date.getDate()+offset);return date;},offsetString=function(offset){try{return $.datepicker.parseDate($.datepicker._get(inst,\"dateFormat\"),offset,$.datepicker._getFormatConfig(inst));}catch(e){}\nvar date=(offset.toLowerCase().match(/^c/)?$.datepicker._getDate(inst):null)||new Date(),year=date.getFullYear(),month=date.getMonth(),day=date.getDate(),pattern=/([+\\-]?[0-9]+)\\s*(d|D|w|W|m|M|y|Y)?/g,matches=pattern.exec(offset);while(matches){switch(matches[2]||\"d\"){case\"d\":case\"D\":day+=parseInt(matches[1],10);break;case\"w\":case\"W\":day+=parseInt(matches[1],10)*7;break;case\"m\":case\"M\":month+=parseInt(matches[1],10);day=Math.min(day,$.datepicker._getDaysInMonth(year,month));break;case\"y\":case\"Y\":year+=parseInt(matches[1],10);day=Math.min(day,$.datepicker._getDaysInMonth(year,month));break;}\nmatches=pattern.exec(offset);}\nreturn new Date(year,month,day);},newDate=(date==null||date===\"\"?defaultDate:(typeof date===\"string\"?offsetString(date):(typeof date===\"number\"?(isNaN(date)?defaultDate:offsetNumeric(date)):new Date(date.getTime()))));newDate=(newDate&&newDate.toString()===\"Invalid Date\"?defaultDate:newDate);if(newDate){newDate.setHours(0);newDate.setMinutes(0);newDate.setSeconds(0);newDate.setMilliseconds(0);}\nreturn this._daylightSavingAdjust(newDate);},_daylightSavingAdjust:function(date){if(!date){return null;}\ndate.setHours(date.getHours()>12?date.getHours()+2:0);return date;},_setDate:function(inst,date,noChange){var clear=!date,origMonth=inst.selectedMonth,origYear=inst.selectedYear,newDate=this._restrictMinMax(inst,this._determineDate(inst,date,new Date()));inst.selectedDay=inst.currentDay=newDate.getDate();inst.drawMonth=inst.selectedMonth=inst.currentMonth=newDate.getMonth();inst.drawYear=inst.selectedYear=inst.currentYear=newDate.getFullYear();if((origMonth!==inst.selectedMonth||origYear!==inst.selectedYear)&&!noChange){this._notifyChange(inst);}\nthis._adjustInstDate(inst);if(inst.input){inst.input.val(clear?\"\":this._formatDate(inst));}},_getDate:function(inst){var startDate=(!inst.currentYear||(inst.input&&inst.input.val()===\"\")?null:this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return startDate;},_attachHandlers:function(inst){var stepMonths=this._get(inst,\"stepMonths\"),id=\"#\"+inst.id.replace(/\\\\\\\\/g,\"\\\\\");inst.dpDiv.find(\"[data-handler]\").map(function(){var handler={prev:function(){$.datepicker._adjustDate(id,-stepMonths,\"M\");},next:function(){$.datepicker._adjustDate(id,+stepMonths,\"M\");},hide:function(){$.datepicker._hideDatepicker();},today:function(){$.datepicker._gotoToday(id);},selectDay:function(){$.datepicker._selectDay(id,+this.getAttribute(\"data-month\"),+this.getAttribute(\"data-year\"),this);return false;},selectMonth:function(){$.datepicker._selectMonthYear(id,this,\"M\");return false;},selectYear:function(){$.datepicker._selectMonthYear(id,this,\"Y\");return false;}};$(this).on(this.getAttribute(\"data-event\"),handler[this.getAttribute(\"data-handler\")]);});},_generateHTML:function(inst){var maxDraw,prevText,prev,nextText,next,currentText,gotoDate,controls,buttonPanel,firstDay,showWeek,dayNames,dayNamesMin,monthNames,monthNamesShort,beforeShowDay,showOtherMonths,selectOtherMonths,defaultDate,html,dow,row,group,col,selectedDate,cornerClass,calender,thead,day,daysInMonth,leadDays,curRows,numRows,printDate,dRow,tbody,daySettings,otherMonth,unselectable,tempDate=new Date(),today=this._daylightSavingAdjust(new Date(tempDate.getFullYear(),tempDate.getMonth(),tempDate.getDate())),isRTL=this._get(inst,\"isRTL\"),showButtonPanel=this._get(inst,\"showButtonPanel\"),hideIfNoPrevNext=this._get(inst,\"hideIfNoPrevNext\"),navigationAsDateFormat=this._get(inst,\"navigationAsDateFormat\"),numMonths=this._getNumberOfMonths(inst),showCurrentAtPos=this._get(inst,\"showCurrentAtPos\"),stepMonths=this._get(inst,\"stepMonths\"),isMultiMonth=(numMonths[0]!==1||numMonths[1]!==1),currentDate=this._daylightSavingAdjust((!inst.currentDay?new Date(9999,9,9):new Date(inst.currentYear,inst.currentMonth,inst.currentDay))),minDate=this._getMinMaxDate(inst,\"min\"),maxDate=this._getMinMaxDate(inst,\"max\"),drawMonth=inst.drawMonth-showCurrentAtPos,drawYear=inst.drawYear;if(drawMonth<0){drawMonth+=12;drawYear--;}\nif(maxDate){maxDraw=this._daylightSavingAdjust(new Date(maxDate.getFullYear(),maxDate.getMonth()-(numMonths[0]*numMonths[1])+1,maxDate.getDate()));maxDraw=(minDate&&maxDraw<minDate?minDate:maxDraw);while(this._daylightSavingAdjust(new Date(drawYear,drawMonth,1))>maxDraw){drawMonth--;if(drawMonth<0){drawMonth=11;drawYear--;}}}\ninst.drawMonth=drawMonth;inst.drawYear=drawYear;prevText=this._get(inst,\"prevText\");prevText=(!navigationAsDateFormat?prevText:this.formatDate(prevText,this._daylightSavingAdjust(new Date(drawYear,drawMonth-stepMonths,1)),this._getFormatConfig(inst)));if(this._canAdjustMonth(inst,-1,drawYear,drawMonth)){prev=$(\"<a>\").attr({\"class\":\"ui-datepicker-prev ui-corner-all\",\"data-handler\":\"prev\",\"data-event\":\"click\",title:prevText}).append($(\"<span>\").addClass(\"ui-icon ui-icon-circle-triangle-\"+\n(isRTL?\"e\":\"w\")).text(prevText))[0].outerHTML;}else if(hideIfNoPrevNext){prev=\"\";}else{prev=$(\"<a>\").attr({\"class\":\"ui-datepicker-prev ui-corner-all ui-state-disabled\",title:prevText}).append($(\"<span>\").addClass(\"ui-icon ui-icon-circle-triangle-\"+\n(isRTL?\"e\":\"w\")).text(prevText))[0].outerHTML;}\nnextText=this._get(inst,\"nextText\");nextText=(!navigationAsDateFormat?nextText:this.formatDate(nextText,this._daylightSavingAdjust(new Date(drawYear,drawMonth+stepMonths,1)),this._getFormatConfig(inst)));if(this._canAdjustMonth(inst,+1,drawYear,drawMonth)){next=$(\"<a>\").attr({\"class\":\"ui-datepicker-next ui-corner-all\",\"data-handler\":\"next\",\"data-event\":\"click\",title:nextText}).append($(\"<span>\").addClass(\"ui-icon ui-icon-circle-triangle-\"+\n(isRTL?\"w\":\"e\")).text(nextText))[0].outerHTML;}else if(hideIfNoPrevNext){next=\"\";}else{next=$(\"<a>\").attr({\"class\":\"ui-datepicker-next ui-corner-all ui-state-disabled\",title:nextText}).append($(\"<span>\").attr(\"class\",\"ui-icon ui-icon-circle-triangle-\"+\n(isRTL?\"w\":\"e\")).text(nextText))[0].outerHTML;}\ncurrentText=this._get(inst,\"currentText\");gotoDate=(this._get(inst,\"gotoCurrent\")&&inst.currentDay?currentDate:today);currentText=(!navigationAsDateFormat?currentText:this.formatDate(currentText,gotoDate,this._getFormatConfig(inst)));controls=\"\";if(!inst.inline){controls=$(\"<button>\").attr({type:\"button\",\"class\":\"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all\",\"data-handler\":\"hide\",\"data-event\":\"click\"}).text(this._get(inst,\"closeText\"))[0].outerHTML;}\nbuttonPanel=\"\";if(showButtonPanel){buttonPanel=$(\"<div class='ui-datepicker-buttonpane ui-widget-content'>\").append(isRTL?controls:\"\").append(this._isInRange(inst,gotoDate)?$(\"<button>\").attr({type:\"button\",\"class\":\"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all\",\"data-handler\":\"today\",\"data-event\":\"click\"}).text(currentText):\"\").append(isRTL?\"\":controls)[0].outerHTML;}\nfirstDay=parseInt(this._get(inst,\"firstDay\"),10);firstDay=(isNaN(firstDay)?0:firstDay);showWeek=this._get(inst,\"showWeek\");dayNames=this._get(inst,\"dayNames\");dayNamesMin=this._get(inst,\"dayNamesMin\");monthNames=this._get(inst,\"monthNames\");monthNamesShort=this._get(inst,\"monthNamesShort\");beforeShowDay=this._get(inst,\"beforeShowDay\");showOtherMonths=this._get(inst,\"showOtherMonths\");selectOtherMonths=this._get(inst,\"selectOtherMonths\");defaultDate=this._getDefaultDate(inst);html=\"\";for(row=0;row<numMonths[0];row++){group=\"\";this.maxRows=4;for(col=0;col<numMonths[1];col++){selectedDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,inst.selectedDay));cornerClass=\" ui-corner-all\";calender=\"\";if(isMultiMonth){calender+=\"<div class='ui-datepicker-group\";if(numMonths[1]>1){switch(col){case 0:calender+=\" ui-datepicker-group-first\";cornerClass=\" ui-corner-\"+(isRTL?\"right\":\"left\");break;case numMonths[1]-1:calender+=\" ui-datepicker-group-last\";cornerClass=\" ui-corner-\"+(isRTL?\"left\":\"right\");break;default:calender+=\" ui-datepicker-group-middle\";cornerClass=\"\";break;}}\ncalender+=\"'>\";}\ncalender+=\"<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix\"+cornerClass+\"'>\"+\n(/all|left/.test(cornerClass)&&row===0?(isRTL?next:prev):\"\")+\n(/all|right/.test(cornerClass)&&row===0?(isRTL?prev:next):\"\")+\nthis._generateMonthYearHeader(inst,drawMonth,drawYear,minDate,maxDate,row>0||col>0,monthNames,monthNamesShort)+\"</div><table class='ui-datepicker-calendar'><thead>\"+\"<tr>\";thead=(showWeek?\"<th class='ui-datepicker-week-col'>\"+this._get(inst,\"weekHeader\")+\"</th>\":\"\");for(dow=0;dow<7;dow++){day=(dow+firstDay)%7;thead+=\"<th scope='col'\"+((dow+firstDay+6)%7>=5?\" class='ui-datepicker-week-end'\":\"\")+\">\"+\"<span title='\"+dayNames[day]+\"'>\"+dayNamesMin[day]+\"</span></th>\";}\ncalender+=thead+\"</tr></thead><tbody>\";daysInMonth=this._getDaysInMonth(drawYear,drawMonth);if(drawYear===inst.selectedYear&&drawMonth===inst.selectedMonth){inst.selectedDay=Math.min(inst.selectedDay,daysInMonth);}\nleadDays=(this._getFirstDayOfMonth(drawYear,drawMonth)-firstDay+7)%7;curRows=Math.ceil((leadDays+daysInMonth)/ 7);numRows=(isMultiMonth?this.maxRows>curRows?this.maxRows:curRows:curRows);this.maxRows=numRows;printDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,1-leadDays));for(dRow=0;dRow<numRows;dRow++){calender+=\"<tr>\";tbody=(!showWeek?\"\":\"<td class='ui-datepicker-week-col'>\"+\nthis._get(inst,\"calculateWeek\")(printDate)+\"</td>\");for(dow=0;dow<7;dow++){daySettings=(beforeShowDay?beforeShowDay.apply((inst.input?inst.input[0]:null),[printDate]):[true,\"\"]);otherMonth=(printDate.getMonth()!==drawMonth);unselectable=(otherMonth&&!selectOtherMonths)||!daySettings[0]||(minDate&&printDate<minDate)||(maxDate&&printDate>maxDate);tbody+=\"<td class='\"+\n((dow+firstDay+6)%7>=5?\" ui-datepicker-week-end\":\"\")+\n(otherMonth?\" ui-datepicker-other-month\":\"\")+\n((printDate.getTime()===selectedDate.getTime()&&drawMonth===inst.selectedMonth&&inst._keyEvent)||(defaultDate.getTime()===printDate.getTime()&&defaultDate.getTime()===selectedDate.getTime())?\" \"+this._dayOverClass:\"\")+\n(unselectable?\" \"+this._unselectableClass+\" ui-state-disabled\":\"\")+\n(otherMonth&&!showOtherMonths?\"\":\" \"+daySettings[1]+\n(printDate.getTime()===currentDate.getTime()?\" \"+this._currentClass:\"\")+\n(printDate.getTime()===today.getTime()?\" ui-datepicker-today\":\"\"))+\"'\"+\n((!otherMonth||showOtherMonths)&&daySettings[2]?\" title='\"+daySettings[2].replace(/'/g,\"&#39;\")+\"'\":\"\")+\n(unselectable?\"\":\" data-handler='selectDay' data-event='click' data-month='\"+printDate.getMonth()+\"' data-year='\"+printDate.getFullYear()+\"'\")+\">\"+\n(otherMonth&&!showOtherMonths?\"&#xa0;\":(unselectable?\"<span class='ui-state-default'>\"+printDate.getDate()+\"</span>\":\"<a class='ui-state-default\"+\n(printDate.getTime()===today.getTime()?\" ui-state-highlight\":\"\")+\n(printDate.getTime()===currentDate.getTime()?\" ui-state-active\":\"\")+\n(otherMonth?\" ui-priority-secondary\":\"\")+\"' href='#' aria-current='\"+(printDate.getTime()===currentDate.getTime()?\"true\":\"false\")+\"' data-date='\"+printDate.getDate()+\"'>\"+printDate.getDate()+\"</a>\"))+\"</td>\";printDate.setDate(printDate.getDate()+1);printDate=this._daylightSavingAdjust(printDate);}\ncalender+=tbody+\"</tr>\";}\ndrawMonth++;if(drawMonth>11){drawMonth=0;drawYear++;}\ncalender+=\"</tbody></table>\"+(isMultiMonth?\"</div>\"+\n((numMonths[0]>0&&col===numMonths[1]-1)?\"<div class='ui-datepicker-row-break'></div>\":\"\"):\"\");group+=calender;}\nhtml+=group;}\nhtml+=buttonPanel;inst._keyEvent=false;return html;},_generateMonthYearHeader:function(inst,drawMonth,drawYear,minDate,maxDate,secondary,monthNames,monthNamesShort){var inMinYear,inMaxYear,month,years,thisYear,determineYear,year,endYear,changeMonth=this._get(inst,\"changeMonth\"),changeYear=this._get(inst,\"changeYear\"),showMonthAfterYear=this._get(inst,\"showMonthAfterYear\"),selectMonthLabel=this._get(inst,\"selectMonthLabel\"),selectYearLabel=this._get(inst,\"selectYearLabel\"),html=\"<div class='ui-datepicker-title'>\",monthHtml=\"\";if(secondary||!changeMonth){monthHtml+=\"<span class='ui-datepicker-month'>\"+monthNames[drawMonth]+\"</span>\";}else{inMinYear=(minDate&&minDate.getFullYear()===drawYear);inMaxYear=(maxDate&&maxDate.getFullYear()===drawYear);monthHtml+=\"<select class='ui-datepicker-month' aria-label='\"+selectMonthLabel+\"' data-handler='selectMonth' data-event='change'>\";for(month=0;month<12;month++){if((!inMinYear||month>=minDate.getMonth())&&(!inMaxYear||month<=maxDate.getMonth())){monthHtml+=\"<option value='\"+month+\"'\"+\n(month===drawMonth?\" selected='selected'\":\"\")+\">\"+monthNamesShort[month]+\"</option>\";}}\nmonthHtml+=\"</select>\";}\nif(!showMonthAfterYear){html+=monthHtml+(secondary||!(changeMonth&&changeYear)?\"&#xa0;\":\"\");}\nif(!inst.yearshtml){inst.yearshtml=\"\";if(secondary||!changeYear){html+=\"<span class='ui-datepicker-year'>\"+drawYear+\"</span>\";}else{years=this._get(inst,\"yearRange\").split(\":\");thisYear=new Date().getFullYear();determineYear=function(value){var year=(value.match(/c[+\\-].*/)?drawYear+parseInt(value.substring(1),10):(value.match(/[+\\-].*/)?thisYear+parseInt(value,10):parseInt(value,10)));return(isNaN(year)?thisYear:year);};year=determineYear(years[0]);endYear=Math.max(year,determineYear(years[1]||\"\"));year=(minDate?Math.max(year,minDate.getFullYear()):year);endYear=(maxDate?Math.min(endYear,maxDate.getFullYear()):endYear);inst.yearshtml+=\"<select class='ui-datepicker-year' aria-label='\"+selectYearLabel+\"' data-handler='selectYear' data-event='change'>\";for(;year<=endYear;year++){inst.yearshtml+=\"<option value='\"+year+\"'\"+\n(year===drawYear?\" selected='selected'\":\"\")+\">\"+year+\"</option>\";}\ninst.yearshtml+=\"</select>\";html+=inst.yearshtml;inst.yearshtml=null;}}\nhtml+=this._get(inst,\"yearSuffix\");if(showMonthAfterYear){html+=(secondary||!(changeMonth&&changeYear)?\"&#xa0;\":\"\")+monthHtml;}\nhtml+=\"</div>\";return html;},_adjustInstDate:function(inst,offset,period){var year=inst.selectedYear+(period===\"Y\"?offset:0),month=inst.selectedMonth+(period===\"M\"?offset:0),day=Math.min(inst.selectedDay,this._getDaysInMonth(year,month))+(period===\"D\"?offset:0),date=this._restrictMinMax(inst,this._daylightSavingAdjust(new Date(year,month,day)));inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();if(period===\"M\"||period===\"Y\"){this._notifyChange(inst);}},_restrictMinMax:function(inst,date){var minDate=this._getMinMaxDate(inst,\"min\"),maxDate=this._getMinMaxDate(inst,\"max\"),newDate=(minDate&&date<minDate?minDate:date);return(maxDate&&newDate>maxDate?maxDate:newDate);},_notifyChange:function(inst){var onChange=this._get(inst,\"onChangeMonthYear\");if(onChange){onChange.apply((inst.input?inst.input[0]:null),[inst.selectedYear,inst.selectedMonth+1,inst]);}},_getNumberOfMonths:function(inst){var numMonths=this._get(inst,\"numberOfMonths\");return(numMonths==null?[1,1]:(typeof numMonths===\"number\"?[1,numMonths]:numMonths));},_getMinMaxDate:function(inst,minMax){return this._determineDate(inst,this._get(inst,minMax+\"Date\"),null);},_getDaysInMonth:function(year,month){return 32-this._daylightSavingAdjust(new Date(year,month,32)).getDate();},_getFirstDayOfMonth:function(year,month){return new Date(year,month,1).getDay();},_canAdjustMonth:function(inst,offset,curYear,curMonth){var numMonths=this._getNumberOfMonths(inst),date=this._daylightSavingAdjust(new Date(curYear,curMonth+(offset<0?offset:numMonths[0]*numMonths[1]),1));if(offset<0){date.setDate(this._getDaysInMonth(date.getFullYear(),date.getMonth()));}\nreturn this._isInRange(inst,date);},_isInRange:function(inst,date){var yearSplit,currentYear,minDate=this._getMinMaxDate(inst,\"min\"),maxDate=this._getMinMaxDate(inst,\"max\"),minYear=null,maxYear=null,years=this._get(inst,\"yearRange\");if(years){yearSplit=years.split(\":\");currentYear=new Date().getFullYear();minYear=parseInt(yearSplit[0],10);maxYear=parseInt(yearSplit[1],10);if(yearSplit[0].match(/[+\\-].*/)){minYear+=currentYear;}\nif(yearSplit[1].match(/[+\\-].*/)){maxYear+=currentYear;}}\nreturn((!minDate||date.getTime()>=minDate.getTime())&&(!maxDate||date.getTime()<=maxDate.getTime())&&(!minYear||date.getFullYear()>=minYear)&&(!maxYear||date.getFullYear()<=maxYear));},_getFormatConfig:function(inst){var shortYearCutoff=this._get(inst,\"shortYearCutoff\");shortYearCutoff=(typeof shortYearCutoff!==\"string\"?shortYearCutoff:new Date().getFullYear()%100+parseInt(shortYearCutoff,10));return{shortYearCutoff:shortYearCutoff,dayNamesShort:this._get(inst,\"dayNamesShort\"),dayNames:this._get(inst,\"dayNames\"),monthNamesShort:this._get(inst,\"monthNamesShort\"),monthNames:this._get(inst,\"monthNames\")};},_formatDate:function(inst,day,month,year){if(!day){inst.currentDay=inst.selectedDay;inst.currentMonth=inst.selectedMonth;inst.currentYear=inst.selectedYear;}\nvar date=(day?(typeof day===\"object\"?day:this._daylightSavingAdjust(new Date(year,month,day))):this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return this.formatDate(this._get(inst,\"dateFormat\"),date,this._getFormatConfig(inst));}});function datepicker_bindHover(dpDiv){var selector=\"button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a\";return dpDiv.on(\"mouseout\",selector,function(){$(this).removeClass(\"ui-state-hover\");if(this.className.indexOf(\"ui-datepicker-prev\")!==-1){$(this).removeClass(\"ui-datepicker-prev-hover\");}\nif(this.className.indexOf(\"ui-datepicker-next\")!==-1){$(this).removeClass(\"ui-datepicker-next-hover\");}}).on(\"mouseover\",selector,datepicker_handleMouseover);}\nfunction datepicker_handleMouseover(){if(!$.datepicker._isDisabledDatepicker(datepicker_instActive.inline?datepicker_instActive.dpDiv.parent()[0]:datepicker_instActive.input[0])){$(this).parents(\".ui-datepicker-calendar\").find(\"a\").removeClass(\"ui-state-hover\");$(this).addClass(\"ui-state-hover\");if(this.className.indexOf(\"ui-datepicker-prev\")!==-1){$(this).addClass(\"ui-datepicker-prev-hover\");}\nif(this.className.indexOf(\"ui-datepicker-next\")!==-1){$(this).addClass(\"ui-datepicker-next-hover\");}}}\nfunction datepicker_extendRemove(target,props){$.extend(target,props);for(var name in props){if(props[name]==null){target[name]=props[name];}}\nreturn target;}\n$.fn.datepicker=function(options){if(!this.length){return this;}\nif(!$.datepicker.initialized){$(document).on(\"mousedown\",$.datepicker._checkExternalClick);$.datepicker.initialized=true;}\nif($(\"#\"+$.datepicker._mainDivId).length===0){$(\"body\").append($.datepicker.dpDiv);}\nvar otherArgs=Array.prototype.slice.call(arguments,1);if(typeof options===\"string\"&&(options===\"isDisabled\"||options===\"getDate\"||options===\"widget\")){return $.datepicker[\"_\"+options+\"Datepicker\"].apply($.datepicker,[this[0]].concat(otherArgs));}\nif(options===\"option\"&&arguments.length===2&&typeof arguments[1]===\"string\"){return $.datepicker[\"_\"+options+\"Datepicker\"].apply($.datepicker,[this[0]].concat(otherArgs));}\nreturn this.each(function(){if(typeof options===\"string\"){$.datepicker[\"_\"+options+\"Datepicker\"].apply($.datepicker,[this].concat(otherArgs));}else{$.datepicker._attachDatepicker(this,options);}});};$.datepicker=new Datepicker();$.datepicker.initialized=false;$.datepicker.uuid=new Date().getTime();$.datepicker.version=\"1.13.2\";var widgetsDatepicker=$.datepicker;var ie=$.ui.ie=!!/msie [\\w.]+/.exec(navigator.userAgent.toLowerCase());\n/*!\n * jQuery UI Mouse 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\nvar mouseHandled=false;$(document).on(\"mouseup\",function(){mouseHandled=false;});var widgetsMouse=$.widget(\"ui.mouse\",{version:\"1.13.2\",options:{cancel:\"input, textarea, button, select, option\",distance:1,delay:0},_mouseInit:function(){var that=this;this.element.on(\"mousedown.\"+this.widgetName,function(event){return that._mouseDown(event);}).on(\"click.\"+this.widgetName,function(event){if(true===$.data(event.target,that.widgetName+\".preventClickEvent\")){$.removeData(event.target,that.widgetName+\".preventClickEvent\");event.stopImmediatePropagation();return false;}});this.started=false;},_mouseDestroy:function(){this.element.off(\".\"+this.widgetName);if(this._mouseMoveDelegate){this.document.off(\"mousemove.\"+this.widgetName,this._mouseMoveDelegate).off(\"mouseup.\"+this.widgetName,this._mouseUpDelegate);}},_mouseDown:function(event){if(mouseHandled){return;}\nthis._mouseMoved=false;if(this._mouseStarted){this._mouseUp(event);}\nthis._mouseDownEvent=event;var that=this,btnIsLeft=(event.which===1),elIsCancel=(typeof this.options.cancel===\"string\"&&event.target.nodeName?$(event.target).closest(this.options.cancel).length:false);if(!btnIsLeft||elIsCancel||!this._mouseCapture(event)){return true;}\nthis.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){that.mouseDelayMet=true;},this.options.delay);}\nif(this._mouseDistanceMet(event)&&this._mouseDelayMet(event)){this._mouseStarted=(this._mouseStart(event)!==false);if(!this._mouseStarted){event.preventDefault();return true;}}\nif(true===$.data(event.target,this.widgetName+\".preventClickEvent\")){$.removeData(event.target,this.widgetName+\".preventClickEvent\");}\nthis._mouseMoveDelegate=function(event){return that._mouseMove(event);};this._mouseUpDelegate=function(event){return that._mouseUp(event);};this.document.on(\"mousemove.\"+this.widgetName,this._mouseMoveDelegate).on(\"mouseup.\"+this.widgetName,this._mouseUpDelegate);event.preventDefault();mouseHandled=true;return true;},_mouseMove:function(event){if(this._mouseMoved){if($.ui.ie&&(!document.documentMode||document.documentMode<9)&&!event.button){return this._mouseUp(event);}else if(!event.which){if(event.originalEvent.altKey||event.originalEvent.ctrlKey||event.originalEvent.metaKey||event.originalEvent.shiftKey){this.ignoreMissingWhich=true;}else if(!this.ignoreMissingWhich){return this._mouseUp(event);}}}\nif(event.which||event.button){this._mouseMoved=true;}\nif(this._mouseStarted){this._mouseDrag(event);return event.preventDefault();}\nif(this._mouseDistanceMet(event)&&this._mouseDelayMet(event)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,event)!==false);if(this._mouseStarted){this._mouseDrag(event);}else{this._mouseUp(event);}}\nreturn!this._mouseStarted;},_mouseUp:function(event){this.document.off(\"mousemove.\"+this.widgetName,this._mouseMoveDelegate).off(\"mouseup.\"+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;if(event.target===this._mouseDownEvent.target){$.data(event.target,this.widgetName+\".preventClickEvent\",true);}\nthis._mouseStop(event);}\nif(this._mouseDelayTimer){clearTimeout(this._mouseDelayTimer);delete this._mouseDelayTimer;}\nthis.ignoreMissingWhich=false;mouseHandled=false;event.preventDefault();},_mouseDistanceMet:function(event){return(Math.max(Math.abs(this._mouseDownEvent.pageX-event.pageX),Math.abs(this._mouseDownEvent.pageY-event.pageY))>=this.options.distance);},_mouseDelayMet:function(){return this.mouseDelayMet;},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true;}});var plugin=$.ui.plugin={add:function(module,option,set){var i,proto=$.ui[module].prototype;for(i in set){proto.plugins[i]=proto.plugins[i]||[];proto.plugins[i].push([option,set[i]]);}},call:function(instance,name,args,allowDisconnected){var i,set=instance.plugins[name];if(!set){return;}\nif(!allowDisconnected&&(!instance.element[0].parentNode||instance.element[0].parentNode.nodeType===11)){return;}\nfor(i=0;i<set.length;i++){if(instance.options[set[i][0]]){set[i][1].apply(instance.element,args);}}}};var safeBlur=$.ui.safeBlur=function(element){if(element&&element.nodeName.toLowerCase()!==\"body\"){$(element).trigger(\"blur\");}};\n/*!\n * jQuery UI Draggable 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n$.widget(\"ui.draggable\",$.ui.mouse,{version:\"1.13.2\",widgetEventPrefix:\"drag\",options:{addClasses:true,appendTo:\"parent\",axis:false,connectToSortable:false,containment:false,cursor:\"auto\",cursorAt:false,grid:false,handle:false,helper:\"original\",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:\"default\",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:\"both\",snapTolerance:20,stack:false,zIndex:false,drag:null,start:null,stop:null},_create:function(){if(this.options.helper===\"original\"){this._setPositionRelative();}\nif(this.options.addClasses){this._addClass(\"ui-draggable\");}\nthis._setHandleClassName();this._mouseInit();},_setOption:function(key,value){this._super(key,value);if(key===\"handle\"){this._removeHandleClassName();this._setHandleClassName();}},_destroy:function(){if((this.helper||this.element).is(\".ui-draggable-dragging\")){this.destroyOnClear=true;return;}\nthis._removeHandleClassName();this._mouseDestroy();},_mouseCapture:function(event){var o=this.options;if(this.helper||o.disabled||$(event.target).closest(\".ui-resizable-handle\").length>0){return false;}\nthis.handle=this._getHandle(event);if(!this.handle){return false;}\nthis._blurActiveElement(event);this._blockFrames(o.iframeFix===true?\"iframe\":o.iframeFix);return true;},_blockFrames:function(selector){this.iframeBlocks=this.document.find(selector).map(function(){var iframe=$(this);return $(\"<div>\").css(\"position\",\"absolute\").appendTo(iframe.parent()).outerWidth(iframe.outerWidth()).outerHeight(iframe.outerHeight()).offset(iframe.offset())[0];});},_unblockFrames:function(){if(this.iframeBlocks){this.iframeBlocks.remove();delete this.iframeBlocks;}},_blurActiveElement:function(event){var activeElement=$.ui.safeActiveElement(this.document[0]),target=$(event.target);if(target.closest(activeElement).length){return;}\n$.ui.safeBlur(activeElement);},_mouseStart:function(event){var o=this.options;this.helper=this._createHelper(event);this._addClass(this.helper,\"ui-draggable-dragging\");this._cacheHelperProportions();if($.ui.ddmanager){$.ui.ddmanager.current=this;}\nthis._cacheMargins();this.cssPosition=this.helper.css(\"position\");this.scrollParent=this.helper.scrollParent(true);this.offsetParent=this.helper.offsetParent();this.hasFixedAncestor=this.helper.parents().filter(function(){return $(this).css(\"position\")===\"fixed\";}).length>0;this.positionAbs=this.element.offset();this._refreshOffsets(event);this.originalPosition=this.position=this._generatePosition(event,false);this.originalPageX=event.pageX;this.originalPageY=event.pageY;if(o.cursorAt){this._adjustOffsetFromHelper(o.cursorAt);}\nthis._setContainment();if(this._trigger(\"start\",event)===false){this._clear();return false;}\nthis._cacheHelperProportions();if($.ui.ddmanager&&!o.dropBehaviour){$.ui.ddmanager.prepareOffsets(this,event);}\nthis._mouseDrag(event,true);if($.ui.ddmanager){$.ui.ddmanager.dragStart(this,event);}\nreturn true;},_refreshOffsets:function(event){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:false,parent:this._getParentOffset(),relative:this._getRelativeOffset()};this.offset.click={left:event.pageX-this.offset.left,top:event.pageY-this.offset.top};},_mouseDrag:function(event,noPropagation){if(this.hasFixedAncestor){this.offset.parent=this._getParentOffset();}\nthis.position=this._generatePosition(event,true);this.positionAbs=this._convertPositionTo(\"absolute\");if(!noPropagation){var ui=this._uiHash();if(this._trigger(\"drag\",event,ui)===false){this._mouseUp(new $.Event(\"mouseup\",event));return false;}\nthis.position=ui.position;}\nthis.helper[0].style.left=this.position.left+\"px\";this.helper[0].style.top=this.position.top+\"px\";if($.ui.ddmanager){$.ui.ddmanager.drag(this,event);}\nreturn false;},_mouseStop:function(event){var that=this,dropped=false;if($.ui.ddmanager&&!this.options.dropBehaviour){dropped=$.ui.ddmanager.drop(this,event);}\nif(this.dropped){dropped=this.dropped;this.dropped=false;}\nif((this.options.revert===\"invalid\"&&!dropped)||(this.options.revert===\"valid\"&&dropped)||this.options.revert===true||(typeof this.options.revert===\"function\"&&this.options.revert.call(this.element,dropped))){$(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){if(that._trigger(\"stop\",event)!==false){that._clear();}});}else{if(this._trigger(\"stop\",event)!==false){this._clear();}}\nreturn false;},_mouseUp:function(event){this._unblockFrames();if($.ui.ddmanager){$.ui.ddmanager.dragStop(this,event);}\nif(this.handleElement.is(event.target)){this.element.trigger(\"focus\");}\nreturn $.ui.mouse.prototype._mouseUp.call(this,event);},cancel:function(){if(this.helper.is(\".ui-draggable-dragging\")){this._mouseUp(new $.Event(\"mouseup\",{target:this.element[0]}));}else{this._clear();}\nreturn this;},_getHandle:function(event){return this.options.handle?!!$(event.target).closest(this.element.find(this.options.handle)).length:true;},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element;this._addClass(this.handleElement,\"ui-draggable-handle\");},_removeHandleClassName:function(){this._removeClass(this.handleElement,\"ui-draggable-handle\");},_createHelper:function(event){var o=this.options,helperIsFunction=typeof o.helper===\"function\",helper=helperIsFunction?$(o.helper.apply(this.element[0],[event])):(o.helper===\"clone\"?this.element.clone().removeAttr(\"id\"):this.element);if(!helper.parents(\"body\").length){helper.appendTo((o.appendTo===\"parent\"?this.element[0].parentNode:o.appendTo));}\nif(helperIsFunction&&helper[0]===this.element[0]){this._setPositionRelative();}\nif(helper[0]!==this.element[0]&&!(/(fixed|absolute)/).test(helper.css(\"position\"))){helper.css(\"position\",\"absolute\");}\nreturn helper;},_setPositionRelative:function(){if(!(/^(?:r|a|f)/).test(this.element.css(\"position\"))){this.element[0].style.position=\"relative\";}},_adjustOffsetFromHelper:function(obj){if(typeof obj===\"string\"){obj=obj.split(\" \");}\nif(Array.isArray(obj)){obj={left:+obj[0],top:+obj[1]||0};}\nif(\"left\"in obj){this.offset.click.left=obj.left+this.margins.left;}\nif(\"right\"in obj){this.offset.click.left=this.helperProportions.width-obj.right+this.margins.left;}\nif(\"top\"in obj){this.offset.click.top=obj.top+this.margins.top;}\nif(\"bottom\"in obj){this.offset.click.top=this.helperProportions.height-obj.bottom+this.margins.top;}},_isRootNode:function(element){return(/(html|body)/i).test(element.tagName)||element===this.document[0];},_getParentOffset:function(){var po=this.offsetParent.offset(),document=this.document[0];if(this.cssPosition===\"absolute\"&&this.scrollParent[0]!==document&&$.contains(this.scrollParent[0],this.offsetParent[0])){po.left+=this.scrollParent.scrollLeft();po.top+=this.scrollParent.scrollTop();}\nif(this._isRootNode(this.offsetParent[0])){po={top:0,left:0};}\nreturn{top:po.top+(parseInt(this.offsetParent.css(\"borderTopWidth\"),10)||0),left:po.left+(parseInt(this.offsetParent.css(\"borderLeftWidth\"),10)||0)};},_getRelativeOffset:function(){if(this.cssPosition!==\"relative\"){return{top:0,left:0};}\nvar p=this.element.position(),scrollIsRootNode=this._isRootNode(this.scrollParent[0]);return{top:p.top-(parseInt(this.helper.css(\"top\"),10)||0)+\n(!scrollIsRootNode?this.scrollParent.scrollTop():0),left:p.left-(parseInt(this.helper.css(\"left\"),10)||0)+\n(!scrollIsRootNode?this.scrollParent.scrollLeft():0)};},_cacheMargins:function(){this.margins={left:(parseInt(this.element.css(\"marginLeft\"),10)||0),top:(parseInt(this.element.css(\"marginTop\"),10)||0),right:(parseInt(this.element.css(\"marginRight\"),10)||0),bottom:(parseInt(this.element.css(\"marginBottom\"),10)||0)};},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()};},_setContainment:function(){var isUserScrollable,c,ce,o=this.options,document=this.document[0];this.relativeContainer=null;if(!o.containment){this.containment=null;return;}\nif(o.containment===\"window\"){this.containment=[$(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,$(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,$(window).scrollLeft()+$(window).width()-\nthis.helperProportions.width-this.margins.left,$(window).scrollTop()+\n($(window).height()||document.body.parentNode.scrollHeight)-\nthis.helperProportions.height-this.margins.top];return;}\nif(o.containment===\"document\"){this.containment=[0,0,$(document).width()-this.helperProportions.width-this.margins.left,($(document).height()||document.body.parentNode.scrollHeight)-\nthis.helperProportions.height-this.margins.top];return;}\nif(o.containment.constructor===Array){this.containment=o.containment;return;}\nif(o.containment===\"parent\"){o.containment=this.helper[0].parentNode;}\nc=$(o.containment);ce=c[0];if(!ce){return;}\nisUserScrollable=/(scroll|auto)/.test(c.css(\"overflow\"));this.containment=[(parseInt(c.css(\"borderLeftWidth\"),10)||0)+\n(parseInt(c.css(\"paddingLeft\"),10)||0),(parseInt(c.css(\"borderTopWidth\"),10)||0)+\n(parseInt(c.css(\"paddingTop\"),10)||0),(isUserScrollable?Math.max(ce.scrollWidth,ce.offsetWidth):ce.offsetWidth)-\n(parseInt(c.css(\"borderRightWidth\"),10)||0)-\n(parseInt(c.css(\"paddingRight\"),10)||0)-\nthis.helperProportions.width-\nthis.margins.left-\nthis.margins.right,(isUserScrollable?Math.max(ce.scrollHeight,ce.offsetHeight):ce.offsetHeight)-\n(parseInt(c.css(\"borderBottomWidth\"),10)||0)-\n(parseInt(c.css(\"paddingBottom\"),10)||0)-\nthis.helperProportions.height-\nthis.margins.top-\nthis.margins.bottom];this.relativeContainer=c;},_convertPositionTo:function(d,pos){if(!pos){pos=this.position;}\nvar mod=d===\"absolute\"?1:-1,scrollIsRootNode=this._isRootNode(this.scrollParent[0]);return{top:(pos.top+\nthis.offset.relative.top*mod+\nthis.offset.parent.top*mod-\n((this.cssPosition===\"fixed\"?-this.offset.scroll.top:(scrollIsRootNode?0:this.offset.scroll.top))*mod)),left:(pos.left+\nthis.offset.relative.left*mod+\nthis.offset.parent.left*mod-\n((this.cssPosition===\"fixed\"?-this.offset.scroll.left:(scrollIsRootNode?0:this.offset.scroll.left))*mod))};},_generatePosition:function(event,constrainPosition){var containment,co,top,left,o=this.options,scrollIsRootNode=this._isRootNode(this.scrollParent[0]),pageX=event.pageX,pageY=event.pageY;if(!scrollIsRootNode||!this.offset.scroll){this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()};}\nif(constrainPosition){if(this.containment){if(this.relativeContainer){co=this.relativeContainer.offset();containment=[this.containment[0]+co.left,this.containment[1]+co.top,this.containment[2]+co.left,this.containment[3]+co.top];}else{containment=this.containment;}\nif(event.pageX-this.offset.click.left<containment[0]){pageX=containment[0]+this.offset.click.left;}\nif(event.pageY-this.offset.click.top<containment[1]){pageY=containment[1]+this.offset.click.top;}\nif(event.pageX-this.offset.click.left>containment[2]){pageX=containment[2]+this.offset.click.left;}\nif(event.pageY-this.offset.click.top>containment[3]){pageY=containment[3]+this.offset.click.top;}}\nif(o.grid){top=o.grid[1]?this.originalPageY+Math.round((pageY-\nthis.originalPageY)/ o.grid[1])*o.grid[1]:this.originalPageY;pageY=containment?((top-this.offset.click.top>=containment[1]||top-this.offset.click.top>containment[3])?top:((top-this.offset.click.top>=containment[1])?top-o.grid[1]:top+o.grid[1])):top;left=o.grid[0]?this.originalPageX+\nMath.round((pageX-this.originalPageX)/ o.grid[0])*o.grid[0]:this.originalPageX;pageX=containment?((left-this.offset.click.left>=containment[0]||left-this.offset.click.left>containment[2])?left:((left-this.offset.click.left>=containment[0])?left-o.grid[0]:left+o.grid[0])):left;}\nif(o.axis===\"y\"){pageX=this.originalPageX;}\nif(o.axis===\"x\"){pageY=this.originalPageY;}}\nreturn{top:(pageY-\nthis.offset.click.top-\nthis.offset.relative.top-\nthis.offset.parent.top+\n(this.cssPosition===\"fixed\"?-this.offset.scroll.top:(scrollIsRootNode?0:this.offset.scroll.top))),left:(pageX-\nthis.offset.click.left-\nthis.offset.relative.left-\nthis.offset.parent.left+\n(this.cssPosition===\"fixed\"?-this.offset.scroll.left:(scrollIsRootNode?0:this.offset.scroll.left)))};},_clear:function(){this._removeClass(this.helper,\"ui-draggable-dragging\");if(this.helper[0]!==this.element[0]&&!this.cancelHelperRemoval){this.helper.remove();}\nthis.helper=null;this.cancelHelperRemoval=false;if(this.destroyOnClear){this.destroy();}},_trigger:function(type,event,ui){ui=ui||this._uiHash();$.ui.plugin.call(this,type,[event,ui,this],true);if(/^(drag|start|stop)/.test(type)){this.positionAbs=this._convertPositionTo(\"absolute\");ui.offset=this.positionAbs;}\nreturn $.Widget.prototype._trigger.call(this,type,event,ui);},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs};}});$.ui.plugin.add(\"draggable\",\"connectToSortable\",{start:function(event,ui,draggable){var uiSortable=$.extend({},ui,{item:draggable.element});draggable.sortables=[];$(draggable.options.connectToSortable).each(function(){var sortable=$(this).sortable(\"instance\");if(sortable&&!sortable.options.disabled){draggable.sortables.push(sortable);sortable.refreshPositions();sortable._trigger(\"activate\",event,uiSortable);}});},stop:function(event,ui,draggable){var uiSortable=$.extend({},ui,{item:draggable.element});draggable.cancelHelperRemoval=false;$.each(draggable.sortables,function(){var sortable=this;if(sortable.isOver){sortable.isOver=0;draggable.cancelHelperRemoval=true;sortable.cancelHelperRemoval=false;sortable._storedCSS={position:sortable.placeholder.css(\"position\"),top:sortable.placeholder.css(\"top\"),left:sortable.placeholder.css(\"left\")};sortable._mouseStop(event);sortable.options.helper=sortable.options._helper;}else{sortable.cancelHelperRemoval=true;sortable._trigger(\"deactivate\",event,uiSortable);}});},drag:function(event,ui,draggable){$.each(draggable.sortables,function(){var innermostIntersecting=false,sortable=this;sortable.positionAbs=draggable.positionAbs;sortable.helperProportions=draggable.helperProportions;sortable.offset.click=draggable.offset.click;if(sortable._intersectsWith(sortable.containerCache)){innermostIntersecting=true;$.each(draggable.sortables,function(){this.positionAbs=draggable.positionAbs;this.helperProportions=draggable.helperProportions;this.offset.click=draggable.offset.click;if(this!==sortable&&this._intersectsWith(this.containerCache)&&$.contains(sortable.element[0],this.element[0])){innermostIntersecting=false;}\nreturn innermostIntersecting;});}\nif(innermostIntersecting){if(!sortable.isOver){sortable.isOver=1;draggable._parent=ui.helper.parent();sortable.currentItem=ui.helper.appendTo(sortable.element).data(\"ui-sortable-item\",true);sortable.options._helper=sortable.options.helper;sortable.options.helper=function(){return ui.helper[0];};event.target=sortable.currentItem[0];sortable._mouseCapture(event,true);sortable._mouseStart(event,true,true);sortable.offset.click.top=draggable.offset.click.top;sortable.offset.click.left=draggable.offset.click.left;sortable.offset.parent.left-=draggable.offset.parent.left-\nsortable.offset.parent.left;sortable.offset.parent.top-=draggable.offset.parent.top-\nsortable.offset.parent.top;draggable._trigger(\"toSortable\",event);draggable.dropped=sortable.element;$.each(draggable.sortables,function(){this.refreshPositions();});draggable.currentItem=draggable.element;sortable.fromOutside=draggable;}\nif(sortable.currentItem){sortable._mouseDrag(event);ui.position=sortable.position;}}else{if(sortable.isOver){sortable.isOver=0;sortable.cancelHelperRemoval=true;sortable.options._revert=sortable.options.revert;sortable.options.revert=false;sortable._trigger(\"out\",event,sortable._uiHash(sortable));sortable._mouseStop(event,true);sortable.options.revert=sortable.options._revert;sortable.options.helper=sortable.options._helper;if(sortable.placeholder){sortable.placeholder.remove();}\nui.helper.appendTo(draggable._parent);draggable._refreshOffsets(event);ui.position=draggable._generatePosition(event,true);draggable._trigger(\"fromSortable\",event);draggable.dropped=false;$.each(draggable.sortables,function(){this.refreshPositions();});}}});}});$.ui.plugin.add(\"draggable\",\"cursor\",{start:function(event,ui,instance){var t=$(\"body\"),o=instance.options;if(t.css(\"cursor\")){o._cursor=t.css(\"cursor\");}\nt.css(\"cursor\",o.cursor);},stop:function(event,ui,instance){var o=instance.options;if(o._cursor){$(\"body\").css(\"cursor\",o._cursor);}}});$.ui.plugin.add(\"draggable\",\"opacity\",{start:function(event,ui,instance){var t=$(ui.helper),o=instance.options;if(t.css(\"opacity\")){o._opacity=t.css(\"opacity\");}\nt.css(\"opacity\",o.opacity);},stop:function(event,ui,instance){var o=instance.options;if(o._opacity){$(ui.helper).css(\"opacity\",o._opacity);}}});$.ui.plugin.add(\"draggable\",\"scroll\",{start:function(event,ui,i){if(!i.scrollParentNotHidden){i.scrollParentNotHidden=i.helper.scrollParent(false);}\nif(i.scrollParentNotHidden[0]!==i.document[0]&&i.scrollParentNotHidden[0].tagName!==\"HTML\"){i.overflowOffset=i.scrollParentNotHidden.offset();}},drag:function(event,ui,i){var o=i.options,scrolled=false,scrollParent=i.scrollParentNotHidden[0],document=i.document[0];if(scrollParent!==document&&scrollParent.tagName!==\"HTML\"){if(!o.axis||o.axis!==\"x\"){if((i.overflowOffset.top+scrollParent.offsetHeight)-event.pageY<o.scrollSensitivity){scrollParent.scrollTop=scrolled=scrollParent.scrollTop+o.scrollSpeed;}else if(event.pageY-i.overflowOffset.top<o.scrollSensitivity){scrollParent.scrollTop=scrolled=scrollParent.scrollTop-o.scrollSpeed;}}\nif(!o.axis||o.axis!==\"y\"){if((i.overflowOffset.left+scrollParent.offsetWidth)-event.pageX<o.scrollSensitivity){scrollParent.scrollLeft=scrolled=scrollParent.scrollLeft+o.scrollSpeed;}else if(event.pageX-i.overflowOffset.left<o.scrollSensitivity){scrollParent.scrollLeft=scrolled=scrollParent.scrollLeft-o.scrollSpeed;}}}else{if(!o.axis||o.axis!==\"x\"){if(event.pageY-$(document).scrollTop()<o.scrollSensitivity){scrolled=$(document).scrollTop($(document).scrollTop()-o.scrollSpeed);}else if($(window).height()-(event.pageY-$(document).scrollTop())<o.scrollSensitivity){scrolled=$(document).scrollTop($(document).scrollTop()+o.scrollSpeed);}}\nif(!o.axis||o.axis!==\"y\"){if(event.pageX-$(document).scrollLeft()<o.scrollSensitivity){scrolled=$(document).scrollLeft($(document).scrollLeft()-o.scrollSpeed);}else if($(window).width()-(event.pageX-$(document).scrollLeft())<o.scrollSensitivity){scrolled=$(document).scrollLeft($(document).scrollLeft()+o.scrollSpeed);}}}\nif(scrolled!==false&&$.ui.ddmanager&&!o.dropBehaviour){$.ui.ddmanager.prepareOffsets(i,event);}}});$.ui.plugin.add(\"draggable\",\"snap\",{start:function(event,ui,i){var o=i.options;i.snapElements=[];$(o.snap.constructor!==String?(o.snap.items||\":data(ui-draggable)\"):o.snap).each(function(){var $t=$(this),$o=$t.offset();if(this!==i.element[0]){i.snapElements.push({item:this,width:$t.outerWidth(),height:$t.outerHeight(),top:$o.top,left:$o.left});}});},drag:function(event,ui,inst){var ts,bs,ls,rs,l,r,t,b,i,first,o=inst.options,d=o.snapTolerance,x1=ui.offset.left,x2=x1+inst.helperProportions.width,y1=ui.offset.top,y2=y1+inst.helperProportions.height;for(i=inst.snapElements.length-1;i>=0;i--){l=inst.snapElements[i].left-inst.margins.left;r=l+inst.snapElements[i].width;t=inst.snapElements[i].top-inst.margins.top;b=t+inst.snapElements[i].height;if(x2<l-d||x1>r+d||y2<t-d||y1>b+d||!$.contains(inst.snapElements[i].item.ownerDocument,inst.snapElements[i].item)){if(inst.snapElements[i].snapping){if(inst.options.snap.release){inst.options.snap.release.call(inst.element,event,$.extend(inst._uiHash(),{snapItem:inst.snapElements[i].item}));}}\ninst.snapElements[i].snapping=false;continue;}\nif(o.snapMode!==\"inner\"){ts=Math.abs(t-y2)<=d;bs=Math.abs(b-y1)<=d;ls=Math.abs(l-x2)<=d;rs=Math.abs(r-x1)<=d;if(ts){ui.position.top=inst._convertPositionTo(\"relative\",{top:t-inst.helperProportions.height,left:0}).top;}\nif(bs){ui.position.top=inst._convertPositionTo(\"relative\",{top:b,left:0}).top;}\nif(ls){ui.position.left=inst._convertPositionTo(\"relative\",{top:0,left:l-inst.helperProportions.width}).left;}\nif(rs){ui.position.left=inst._convertPositionTo(\"relative\",{top:0,left:r}).left;}}\nfirst=(ts||bs||ls||rs);if(o.snapMode!==\"outer\"){ts=Math.abs(t-y1)<=d;bs=Math.abs(b-y2)<=d;ls=Math.abs(l-x1)<=d;rs=Math.abs(r-x2)<=d;if(ts){ui.position.top=inst._convertPositionTo(\"relative\",{top:t,left:0}).top;}\nif(bs){ui.position.top=inst._convertPositionTo(\"relative\",{top:b-inst.helperProportions.height,left:0}).top;}\nif(ls){ui.position.left=inst._convertPositionTo(\"relative\",{top:0,left:l}).left;}\nif(rs){ui.position.left=inst._convertPositionTo(\"relative\",{top:0,left:r-inst.helperProportions.width}).left;}}\nif(!inst.snapElements[i].snapping&&(ts||bs||ls||rs||first)){if(inst.options.snap.snap){inst.options.snap.snap.call(inst.element,event,$.extend(inst._uiHash(),{snapItem:inst.snapElements[i].item}));}}\ninst.snapElements[i].snapping=(ts||bs||ls||rs||first);}}});$.ui.plugin.add(\"draggable\",\"stack\",{start:function(event,ui,instance){var min,o=instance.options,group=$.makeArray($(o.stack)).sort(function(a,b){return(parseInt($(a).css(\"zIndex\"),10)||0)-\n(parseInt($(b).css(\"zIndex\"),10)||0);});if(!group.length){return;}\nmin=parseInt($(group[0]).css(\"zIndex\"),10)||0;$(group).each(function(i){$(this).css(\"zIndex\",min+i);});this.css(\"zIndex\",(min+group.length));}});$.ui.plugin.add(\"draggable\",\"zIndex\",{start:function(event,ui,instance){var t=$(ui.helper),o=instance.options;if(t.css(\"zIndex\")){o._zIndex=t.css(\"zIndex\");}\nt.css(\"zIndex\",o.zIndex);},stop:function(event,ui,instance){var o=instance.options;if(o._zIndex){$(ui.helper).css(\"zIndex\",o._zIndex);}}});var widgetsDraggable=$.ui.draggable;\n/*!\n * jQuery UI Resizable 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n$.widget(\"ui.resizable\",$.ui.mouse,{version:\"1.13.2\",widgetEventPrefix:\"resize\",options:{alsoResize:false,animate:false,animateDuration:\"slow\",animateEasing:\"swing\",aspectRatio:false,autoHide:false,classes:{\"ui-resizable-se\":\"ui-icon ui-icon-gripsmall-diagonal-se\"},containment:false,ghost:false,grid:false,handles:\"e,s,se\",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(value){return parseFloat(value)||0;},_isNumber:function(value){return!isNaN(parseFloat(value));},_hasScroll:function(el,a){if($(el).css(\"overflow\")===\"hidden\"){return false;}\nvar scroll=(a&&a===\"left\")?\"scrollLeft\":\"scrollTop\",has=false;if(el[scroll]>0){return true;}\ntry{el[scroll]=1;has=(el[scroll]>0);el[scroll]=0;}catch(e){}\nreturn has;},_create:function(){var margins,o=this.options,that=this;this._addClass(\"ui-resizable\");$.extend(this,{_aspectRatio:!!(o.aspectRatio),aspectRatio:o.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:o.helper||o.ghost||o.animate?o.helper||\"ui-resizable-helper\":null});if(this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)){this.element.wrap($(\"<div class='ui-wrapper'></div>\").css({overflow:\"hidden\",position:this.element.css(\"position\"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css(\"top\"),left:this.element.css(\"left\")}));this.element=this.element.parent().data(\"ui-resizable\",this.element.resizable(\"instance\"));this.elementIsWrapper=true;margins={marginTop:this.originalElement.css(\"marginTop\"),marginRight:this.originalElement.css(\"marginRight\"),marginBottom:this.originalElement.css(\"marginBottom\"),marginLeft:this.originalElement.css(\"marginLeft\")};this.element.css(margins);this.originalElement.css(\"margin\",0);this.originalResizeStyle=this.originalElement.css(\"resize\");this.originalElement.css(\"resize\",\"none\");this._proportionallyResizeElements.push(this.originalElement.css({position:\"static\",zoom:1,display:\"block\"}));this.originalElement.css(margins);this._proportionallyResize();}\nthis._setupHandles();if(o.autoHide){$(this.element).on(\"mouseenter\",function(){if(o.disabled){return;}\nthat._removeClass(\"ui-resizable-autohide\");that._handles.show();}).on(\"mouseleave\",function(){if(o.disabled){return;}\nif(!that.resizing){that._addClass(\"ui-resizable-autohide\");that._handles.hide();}});}\nthis._mouseInit();},_destroy:function(){this._mouseDestroy();this._addedHandles.remove();var wrapper,_destroy=function(exp){$(exp).removeData(\"resizable\").removeData(\"ui-resizable\").off(\".resizable\");};if(this.elementIsWrapper){_destroy(this.element);wrapper=this.element;this.originalElement.css({position:wrapper.css(\"position\"),width:wrapper.outerWidth(),height:wrapper.outerHeight(),top:wrapper.css(\"top\"),left:wrapper.css(\"left\")}).insertAfter(wrapper);wrapper.remove();}\nthis.originalElement.css(\"resize\",this.originalResizeStyle);_destroy(this.originalElement);return this;},_setOption:function(key,value){this._super(key,value);switch(key){case\"handles\":this._removeHandles();this._setupHandles();break;case\"aspectRatio\":this._aspectRatio=!!value;break;default:break;}},_setupHandles:function(){var o=this.options,handle,i,n,hname,axis,that=this;this.handles=o.handles||(!$(\".ui-resizable-handle\",this.element).length?\"e,s,se\":{n:\".ui-resizable-n\",e:\".ui-resizable-e\",s:\".ui-resizable-s\",w:\".ui-resizable-w\",se:\".ui-resizable-se\",sw:\".ui-resizable-sw\",ne:\".ui-resizable-ne\",nw:\".ui-resizable-nw\"});this._handles=$();this._addedHandles=$();if(this.handles.constructor===String){if(this.handles===\"all\"){this.handles=\"n,e,s,w,se,sw,ne,nw\";}\nn=this.handles.split(\",\");this.handles={};for(i=0;i<n.length;i++){handle=String.prototype.trim.call(n[i]);hname=\"ui-resizable-\"+handle;axis=$(\"<div>\");this._addClass(axis,\"ui-resizable-handle \"+hname);axis.css({zIndex:o.zIndex});this.handles[handle]=\".ui-resizable-\"+handle;if(!this.element.children(this.handles[handle]).length){this.element.append(axis);this._addedHandles=this._addedHandles.add(axis);}}}\nthis._renderAxis=function(target){var i,axis,padPos,padWrapper;target=target||this.element;for(i in this.handles){if(this.handles[i].constructor===String){this.handles[i]=this.element.children(this.handles[i]).first().show();}else if(this.handles[i].jquery||this.handles[i].nodeType){this.handles[i]=$(this.handles[i]);this._on(this.handles[i],{\"mousedown\":that._mouseDown});}\nif(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)){axis=$(this.handles[i],this.element);padWrapper=/sw|ne|nw|se|n|s/.test(i)?axis.outerHeight():axis.outerWidth();padPos=[\"padding\",/ne|nw|n/.test(i)?\"Top\":/se|sw|s/.test(i)?\"Bottom\":/^e$/.test(i)?\"Right\":\"Left\"].join(\"\");target.css(padPos,padWrapper);this._proportionallyResize();}\nthis._handles=this._handles.add(this.handles[i]);}};this._renderAxis(this.element);this._handles=this._handles.add(this.element.find(\".ui-resizable-handle\"));this._handles.disableSelection();this._handles.on(\"mouseover\",function(){if(!that.resizing){if(this.className){axis=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);}\nthat.axis=axis&&axis[1]?axis[1]:\"se\";}});if(o.autoHide){this._handles.hide();this._addClass(\"ui-resizable-autohide\");}},_removeHandles:function(){this._addedHandles.remove();},_mouseCapture:function(event){var i,handle,capture=false;for(i in this.handles){handle=$(this.handles[i])[0];if(handle===event.target||$.contains(handle,event.target)){capture=true;}}\nreturn!this.options.disabled&&capture;},_mouseStart:function(event){var curleft,curtop,cursor,o=this.options,el=this.element;this.resizing=true;this._renderProxy();curleft=this._num(this.helper.css(\"left\"));curtop=this._num(this.helper.css(\"top\"));if(o.containment){curleft+=$(o.containment).scrollLeft()||0;curtop+=$(o.containment).scrollTop()||0;}\nthis.offset=this.helper.offset();this.position={left:curleft,top:curtop};this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:el.width(),height:el.height()};this.originalSize=this._helper?{width:el.outerWidth(),height:el.outerHeight()}:{width:el.width(),height:el.height()};this.sizeDiff={width:el.outerWidth()-el.width(),height:el.outerHeight()-el.height()};this.originalPosition={left:curleft,top:curtop};this.originalMousePosition={left:event.pageX,top:event.pageY};this.aspectRatio=(typeof o.aspectRatio===\"number\")?o.aspectRatio:((this.originalSize.width / this.originalSize.height)||1);cursor=$(\".ui-resizable-\"+this.axis).css(\"cursor\");$(\"body\").css(\"cursor\",cursor===\"auto\"?this.axis+\"-resize\":cursor);this._addClass(\"ui-resizable-resizing\");this._propagate(\"start\",event);return true;},_mouseDrag:function(event){var data,props,smp=this.originalMousePosition,a=this.axis,dx=(event.pageX-smp.left)||0,dy=(event.pageY-smp.top)||0,trigger=this._change[a];this._updatePrevProperties();if(!trigger){return false;}\ndata=trigger.apply(this,[event,dx,dy]);this._updateVirtualBoundaries(event.shiftKey);if(this._aspectRatio||event.shiftKey){data=this._updateRatio(data,event);}\ndata=this._respectSize(data,event);this._updateCache(data);this._propagate(\"resize\",event);props=this._applyChanges();if(!this._helper&&this._proportionallyResizeElements.length){this._proportionallyResize();}\nif(!$.isEmptyObject(props)){this._updatePrevProperties();this._trigger(\"resize\",event,this.ui());this._applyChanges();}\nreturn false;},_mouseStop:function(event){this.resizing=false;var pr,ista,soffseth,soffsetw,s,left,top,o=this.options,that=this;if(this._helper){pr=this._proportionallyResizeElements;ista=pr.length&&(/textarea/i).test(pr[0].nodeName);soffseth=ista&&this._hasScroll(pr[0],\"left\")?0:that.sizeDiff.height;soffsetw=ista?0:that.sizeDiff.width;s={width:(that.helper.width()-soffsetw),height:(that.helper.height()-soffseth)};left=(parseFloat(that.element.css(\"left\"))+\n(that.position.left-that.originalPosition.left))||null;top=(parseFloat(that.element.css(\"top\"))+\n(that.position.top-that.originalPosition.top))||null;if(!o.animate){this.element.css($.extend(s,{top:top,left:left}));}\nthat.helper.height(that.size.height);that.helper.width(that.size.width);if(this._helper&&!o.animate){this._proportionallyResize();}}\n$(\"body\").css(\"cursor\",\"auto\");this._removeClass(\"ui-resizable-resizing\");this._propagate(\"stop\",event);if(this._helper){this.helper.remove();}\nreturn false;},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left};this.prevSize={width:this.size.width,height:this.size.height};},_applyChanges:function(){var props={};if(this.position.top!==this.prevPosition.top){props.top=this.position.top+\"px\";}\nif(this.position.left!==this.prevPosition.left){props.left=this.position.left+\"px\";}\nif(this.size.width!==this.prevSize.width){props.width=this.size.width+\"px\";}\nif(this.size.height!==this.prevSize.height){props.height=this.size.height+\"px\";}\nthis.helper.css(props);return props;},_updateVirtualBoundaries:function(forceAspectRatio){var pMinWidth,pMaxWidth,pMinHeight,pMaxHeight,b,o=this.options;b={minWidth:this._isNumber(o.minWidth)?o.minWidth:0,maxWidth:this._isNumber(o.maxWidth)?o.maxWidth:Infinity,minHeight:this._isNumber(o.minHeight)?o.minHeight:0,maxHeight:this._isNumber(o.maxHeight)?o.maxHeight:Infinity};if(this._aspectRatio||forceAspectRatio){pMinWidth=b.minHeight*this.aspectRatio;pMinHeight=b.minWidth / this.aspectRatio;pMaxWidth=b.maxHeight*this.aspectRatio;pMaxHeight=b.maxWidth / this.aspectRatio;if(pMinWidth>b.minWidth){b.minWidth=pMinWidth;}\nif(pMinHeight>b.minHeight){b.minHeight=pMinHeight;}\nif(pMaxWidth<b.maxWidth){b.maxWidth=pMaxWidth;}\nif(pMaxHeight<b.maxHeight){b.maxHeight=pMaxHeight;}}\nthis._vBoundaries=b;},_updateCache:function(data){this.offset=this.helper.offset();if(this._isNumber(data.left)){this.position.left=data.left;}\nif(this._isNumber(data.top)){this.position.top=data.top;}\nif(this._isNumber(data.height)){this.size.height=data.height;}\nif(this._isNumber(data.width)){this.size.width=data.width;}},_updateRatio:function(data){var cpos=this.position,csize=this.size,a=this.axis;if(this._isNumber(data.height)){data.width=(data.height*this.aspectRatio);}else if(this._isNumber(data.width)){data.height=(data.width / this.aspectRatio);}\nif(a===\"sw\"){data.left=cpos.left+(csize.width-data.width);data.top=null;}\nif(a===\"nw\"){data.top=cpos.top+(csize.height-data.height);data.left=cpos.left+(csize.width-data.width);}\nreturn data;},_respectSize:function(data){var o=this._vBoundaries,a=this.axis,ismaxw=this._isNumber(data.width)&&o.maxWidth&&(o.maxWidth<data.width),ismaxh=this._isNumber(data.height)&&o.maxHeight&&(o.maxHeight<data.height),isminw=this._isNumber(data.width)&&o.minWidth&&(o.minWidth>data.width),isminh=this._isNumber(data.height)&&o.minHeight&&(o.minHeight>data.height),dw=this.originalPosition.left+this.originalSize.width,dh=this.originalPosition.top+this.originalSize.height,cw=/sw|nw|w/.test(a),ch=/nw|ne|n/.test(a);if(isminw){data.width=o.minWidth;}\nif(isminh){data.height=o.minHeight;}\nif(ismaxw){data.width=o.maxWidth;}\nif(ismaxh){data.height=o.maxHeight;}\nif(isminw&&cw){data.left=dw-o.minWidth;}\nif(ismaxw&&cw){data.left=dw-o.maxWidth;}\nif(isminh&&ch){data.top=dh-o.minHeight;}\nif(ismaxh&&ch){data.top=dh-o.maxHeight;}\nif(!data.width&&!data.height&&!data.left&&data.top){data.top=null;}else if(!data.width&&!data.height&&!data.top&&data.left){data.left=null;}\nreturn data;},_getPaddingPlusBorderDimensions:function(element){var i=0,widths=[],borders=[element.css(\"borderTopWidth\"),element.css(\"borderRightWidth\"),element.css(\"borderBottomWidth\"),element.css(\"borderLeftWidth\")],paddings=[element.css(\"paddingTop\"),element.css(\"paddingRight\"),element.css(\"paddingBottom\"),element.css(\"paddingLeft\")];for(;i<4;i++){widths[i]=(parseFloat(borders[i])||0);widths[i]+=(parseFloat(paddings[i])||0);}\nreturn{height:widths[0]+widths[2],width:widths[1]+widths[3]};},_proportionallyResize:function(){if(!this._proportionallyResizeElements.length){return;}\nvar prel,i=0,element=this.helper||this.element;for(;i<this._proportionallyResizeElements.length;i++){prel=this._proportionallyResizeElements[i];if(!this.outerDimensions){this.outerDimensions=this._getPaddingPlusBorderDimensions(prel);}\nprel.css({height:(element.height()-this.outerDimensions.height)||0,width:(element.width()-this.outerDimensions.width)||0});}},_renderProxy:function(){var el=this.element,o=this.options;this.elementOffset=el.offset();if(this._helper){this.helper=this.helper||$(\"<div></div>\").css({overflow:\"hidden\"});this._addClass(this.helper,this._helper);this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:\"absolute\",left:this.elementOffset.left+\"px\",top:this.elementOffset.top+\"px\",zIndex:++o.zIndex});this.helper.appendTo(\"body\").disableSelection();}else{this.helper=this.element;}},_change:{e:function(event,dx){return{width:this.originalSize.width+dx};},w:function(event,dx){var cs=this.originalSize,sp=this.originalPosition;return{left:sp.left+dx,width:cs.width-dx};},n:function(event,dx,dy){var cs=this.originalSize,sp=this.originalPosition;return{top:sp.top+dy,height:cs.height-dy};},s:function(event,dx,dy){return{height:this.originalSize.height+dy};},se:function(event,dx,dy){return $.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[event,dx,dy]));},sw:function(event,dx,dy){return $.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[event,dx,dy]));},ne:function(event,dx,dy){return $.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[event,dx,dy]));},nw:function(event,dx,dy){return $.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[event,dx,dy]));}},_propagate:function(n,event){$.ui.plugin.call(this,n,[event,this.ui()]);if(n!==\"resize\"){this._trigger(n,event,this.ui());}},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition};}});$.ui.plugin.add(\"resizable\",\"animate\",{stop:function(event){var that=$(this).resizable(\"instance\"),o=that.options,pr=that._proportionallyResizeElements,ista=pr.length&&(/textarea/i).test(pr[0].nodeName),soffseth=ista&&that._hasScroll(pr[0],\"left\")?0:that.sizeDiff.height,soffsetw=ista?0:that.sizeDiff.width,style={width:(that.size.width-soffsetw),height:(that.size.height-soffseth)},left=(parseFloat(that.element.css(\"left\"))+\n(that.position.left-that.originalPosition.left))||null,top=(parseFloat(that.element.css(\"top\"))+\n(that.position.top-that.originalPosition.top))||null;that.element.animate($.extend(style,top&&left?{top:top,left:left}:{}),{duration:o.animateDuration,easing:o.animateEasing,step:function(){var data={width:parseFloat(that.element.css(\"width\")),height:parseFloat(that.element.css(\"height\")),top:parseFloat(that.element.css(\"top\")),left:parseFloat(that.element.css(\"left\"))};if(pr&&pr.length){$(pr[0]).css({width:data.width,height:data.height});}\nthat._updateCache(data);that._propagate(\"resize\",event);}});}});$.ui.plugin.add(\"resizable\",\"containment\",{start:function(){var element,p,co,ch,cw,width,height,that=$(this).resizable(\"instance\"),o=that.options,el=that.element,oc=o.containment,ce=(oc instanceof $)?oc.get(0):(/parent/.test(oc))?el.parent().get(0):oc;if(!ce){return;}\nthat.containerElement=$(ce);if(/document/.test(oc)||oc===document){that.containerOffset={left:0,top:0};that.containerPosition={left:0,top:0};that.parentData={element:$(document),left:0,top:0,width:$(document).width(),height:$(document).height()||document.body.parentNode.scrollHeight};}else{element=$(ce);p=[];$([\"Top\",\"Right\",\"Left\",\"Bottom\"]).each(function(i,name){p[i]=that._num(element.css(\"padding\"+name));});that.containerOffset=element.offset();that.containerPosition=element.position();that.containerSize={height:(element.innerHeight()-p[3]),width:(element.innerWidth()-p[1])};co=that.containerOffset;ch=that.containerSize.height;cw=that.containerSize.width;width=(that._hasScroll(ce,\"left\")?ce.scrollWidth:cw);height=(that._hasScroll(ce)?ce.scrollHeight:ch);that.parentData={element:ce,left:co.left,top:co.top,width:width,height:height};}},resize:function(event){var woset,hoset,isParent,isOffsetRelative,that=$(this).resizable(\"instance\"),o=that.options,co=that.containerOffset,cp=that.position,pRatio=that._aspectRatio||event.shiftKey,cop={top:0,left:0},ce=that.containerElement,continueResize=true;if(ce[0]!==document&&(/static/).test(ce.css(\"position\"))){cop=co;}\nif(cp.left<(that._helper?co.left:0)){that.size.width=that.size.width+\n(that._helper?(that.position.left-co.left):(that.position.left-cop.left));if(pRatio){that.size.height=that.size.width / that.aspectRatio;continueResize=false;}\nthat.position.left=o.helper?co.left:0;}\nif(cp.top<(that._helper?co.top:0)){that.size.height=that.size.height+\n(that._helper?(that.position.top-co.top):that.position.top);if(pRatio){that.size.width=that.size.height*that.aspectRatio;continueResize=false;}\nthat.position.top=that._helper?co.top:0;}\nisParent=that.containerElement.get(0)===that.element.parent().get(0);isOffsetRelative=/relative|absolute/.test(that.containerElement.css(\"position\"));if(isParent&&isOffsetRelative){that.offset.left=that.parentData.left+that.position.left;that.offset.top=that.parentData.top+that.position.top;}else{that.offset.left=that.element.offset().left;that.offset.top=that.element.offset().top;}\nwoset=Math.abs(that.sizeDiff.width+\n(that._helper?that.offset.left-cop.left:(that.offset.left-co.left)));hoset=Math.abs(that.sizeDiff.height+\n(that._helper?that.offset.top-cop.top:(that.offset.top-co.top)));if(woset+that.size.width>=that.parentData.width){that.size.width=that.parentData.width-woset;if(pRatio){that.size.height=that.size.width / that.aspectRatio;continueResize=false;}}\nif(hoset+that.size.height>=that.parentData.height){that.size.height=that.parentData.height-hoset;if(pRatio){that.size.width=that.size.height*that.aspectRatio;continueResize=false;}}\nif(!continueResize){that.position.left=that.prevPosition.left;that.position.top=that.prevPosition.top;that.size.width=that.prevSize.width;that.size.height=that.prevSize.height;}},stop:function(){var that=$(this).resizable(\"instance\"),o=that.options,co=that.containerOffset,cop=that.containerPosition,ce=that.containerElement,helper=$(that.helper),ho=helper.offset(),w=helper.outerWidth()-that.sizeDiff.width,h=helper.outerHeight()-that.sizeDiff.height;if(that._helper&&!o.animate&&(/relative/).test(ce.css(\"position\"))){$(this).css({left:ho.left-cop.left-co.left,width:w,height:h});}\nif(that._helper&&!o.animate&&(/static/).test(ce.css(\"position\"))){$(this).css({left:ho.left-cop.left-co.left,width:w,height:h});}}});$.ui.plugin.add(\"resizable\",\"alsoResize\",{start:function(){var that=$(this).resizable(\"instance\"),o=that.options;$(o.alsoResize).each(function(){var el=$(this);el.data(\"ui-resizable-alsoresize\",{width:parseFloat(el.width()),height:parseFloat(el.height()),left:parseFloat(el.css(\"left\")),top:parseFloat(el.css(\"top\"))});});},resize:function(event,ui){var that=$(this).resizable(\"instance\"),o=that.options,os=that.originalSize,op=that.originalPosition,delta={height:(that.size.height-os.height)||0,width:(that.size.width-os.width)||0,top:(that.position.top-op.top)||0,left:(that.position.left-op.left)||0};$(o.alsoResize).each(function(){var el=$(this),start=$(this).data(\"ui-resizable-alsoresize\"),style={},css=el.parents(ui.originalElement[0]).length?[\"width\",\"height\"]:[\"width\",\"height\",\"top\",\"left\"];$.each(css,function(i,prop){var sum=(start[prop]||0)+(delta[prop]||0);if(sum&&sum>=0){style[prop]=sum||null;}});el.css(style);});},stop:function(){$(this).removeData(\"ui-resizable-alsoresize\");}});$.ui.plugin.add(\"resizable\",\"ghost\",{start:function(){var that=$(this).resizable(\"instance\"),cs=that.size;that.ghost=that.originalElement.clone();that.ghost.css({opacity:0.25,display:\"block\",position:\"relative\",height:cs.height,width:cs.width,margin:0,left:0,top:0});that._addClass(that.ghost,\"ui-resizable-ghost\");if($.uiBackCompat!==false&&typeof that.options.ghost===\"string\"){that.ghost.addClass(this.options.ghost);}\nthat.ghost.appendTo(that.helper);},resize:function(){var that=$(this).resizable(\"instance\");if(that.ghost){that.ghost.css({position:\"relative\",height:that.size.height,width:that.size.width});}},stop:function(){var that=$(this).resizable(\"instance\");if(that.ghost&&that.helper){that.helper.get(0).removeChild(that.ghost.get(0));}}});$.ui.plugin.add(\"resizable\",\"grid\",{resize:function(){var outerDimensions,that=$(this).resizable(\"instance\"),o=that.options,cs=that.size,os=that.originalSize,op=that.originalPosition,a=that.axis,grid=typeof o.grid===\"number\"?[o.grid,o.grid]:o.grid,gridX=(grid[0]||1),gridY=(grid[1]||1),ox=Math.round((cs.width-os.width)/ gridX)*gridX,oy=Math.round((cs.height-os.height)/ gridY)*gridY,newWidth=os.width+ox,newHeight=os.height+oy,isMaxWidth=o.maxWidth&&(o.maxWidth<newWidth),isMaxHeight=o.maxHeight&&(o.maxHeight<newHeight),isMinWidth=o.minWidth&&(o.minWidth>newWidth),isMinHeight=o.minHeight&&(o.minHeight>newHeight);o.grid=grid;if(isMinWidth){newWidth+=gridX;}\nif(isMinHeight){newHeight+=gridY;}\nif(isMaxWidth){newWidth-=gridX;}\nif(isMaxHeight){newHeight-=gridY;}\nif(/^(se|s|e)$/.test(a)){that.size.width=newWidth;that.size.height=newHeight;}else if(/^(ne)$/.test(a)){that.size.width=newWidth;that.size.height=newHeight;that.position.top=op.top-oy;}else if(/^(sw)$/.test(a)){that.size.width=newWidth;that.size.height=newHeight;that.position.left=op.left-ox;}else{if(newHeight-gridY<=0||newWidth-gridX<=0){outerDimensions=that._getPaddingPlusBorderDimensions(this);}\nif(newHeight-gridY>0){that.size.height=newHeight;that.position.top=op.top-oy;}else{newHeight=gridY-outerDimensions.height;that.size.height=newHeight;that.position.top=op.top+os.height-newHeight;}\nif(newWidth-gridX>0){that.size.width=newWidth;that.position.left=op.left-ox;}else{newWidth=gridX-outerDimensions.width;that.size.width=newWidth;that.position.left=op.left+os.width-newWidth;}}}});var widgetsResizable=$.ui.resizable;\n/*!\n * jQuery UI Dialog 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n$.widget(\"ui.dialog\",{version:\"1.13.2\",options:{appendTo:\"body\",autoOpen:true,buttons:[],classes:{\"ui-dialog\":\"ui-corner-all\",\"ui-dialog-titlebar\":\"ui-corner-all\"},closeOnEscape:true,closeText:\"Close\",draggable:true,hide:null,height:\"auto\",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:false,position:{my:\"center\",at:\"center\",of:window,collision:\"fit\",using:function(pos){var topOffset=$(this).css(pos).offset().top;if(topOffset<0){$(this).css(\"top\",pos.top-topOffset);}}},resizable:true,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:true,height:true,maxHeight:true,maxWidth:true,minHeight:true,minWidth:true,width:true},resizableRelatedOptions:{maxHeight:true,maxWidth:true,minHeight:true,minWidth:true},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height};this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)};this.originalTitle=this.element.attr(\"title\");if(this.options.title==null&&this.originalTitle!=null){this.options.title=this.originalTitle;}\nif(this.options.disabled){this.options.disabled=false;}\nthis._createWrapper();this.element.show().removeAttr(\"title\").appendTo(this.uiDialog);this._addClass(\"ui-dialog-content\",\"ui-widget-content\");this._createTitlebar();this._createButtonPane();if(this.options.draggable&&$.fn.draggable){this._makeDraggable();}\nif(this.options.resizable&&$.fn.resizable){this._makeResizable();}\nthis._isOpen=false;this._trackFocus();},_init:function(){if(this.options.autoOpen){this.open();}},_appendTo:function(){var element=this.options.appendTo;if(element&&(element.jquery||element.nodeType)){return $(element);}\nreturn this.document.find(element||\"body\").eq(0);},_destroy:function(){var next,originalPosition=this.originalPosition;this._untrackInstance();this._destroyOverlay();this.element.removeUniqueId().css(this.originalCss).detach();this.uiDialog.remove();if(this.originalTitle){this.element.attr(\"title\",this.originalTitle);}\nnext=originalPosition.parent.children().eq(originalPosition.index);if(next.length&&next[0]!==this.element[0]){next.before(this.element);}else{originalPosition.parent.append(this.element);}},widget:function(){return this.uiDialog;},disable:$.noop,enable:$.noop,close:function(event){var that=this;if(!this._isOpen||this._trigger(\"beforeClose\",event)===false){return;}\nthis._isOpen=false;this._focusedElement=null;this._destroyOverlay();this._untrackInstance();if(!this.opener.filter(\":focusable\").trigger(\"focus\").length){$.ui.safeBlur($.ui.safeActiveElement(this.document[0]));}\nthis._hide(this.uiDialog,this.options.hide,function(){that._trigger(\"close\",event);});},isOpen:function(){return this._isOpen;},moveToTop:function(){this._moveToTop();},_moveToTop:function(event,silent){var moved=false,zIndices=this.uiDialog.siblings(\".ui-front:visible\").map(function(){return+$(this).css(\"z-index\");}).get(),zIndexMax=Math.max.apply(null,zIndices);if(zIndexMax>=+this.uiDialog.css(\"z-index\")){this.uiDialog.css(\"z-index\",zIndexMax+1);moved=true;}\nif(moved&&!silent){this._trigger(\"focus\",event);}\nreturn moved;},open:function(){var that=this;if(this._isOpen){if(this._moveToTop()){this._focusTabbable();}\nreturn;}\nthis._isOpen=true;this.opener=$($.ui.safeActiveElement(this.document[0]));this._size();this._position();this._createOverlay();this._moveToTop(null,true);if(this.overlay){this.overlay.css(\"z-index\",this.uiDialog.css(\"z-index\")-1);}\nthis._show(this.uiDialog,this.options.show,function(){that._focusTabbable();that._trigger(\"focus\");});this._makeFocusTarget();this._trigger(\"open\");},_focusTabbable:function(){var hasFocus=this._focusedElement;if(!hasFocus){hasFocus=this.element.find(\"[autofocus]\");}\nif(!hasFocus.length){hasFocus=this.element.find(\":tabbable\");}\nif(!hasFocus.length){hasFocus=this.uiDialogButtonPane.find(\":tabbable\");}\nif(!hasFocus.length){hasFocus=this.uiDialogTitlebarClose.filter(\":tabbable\");}\nif(!hasFocus.length){hasFocus=this.uiDialog;}\nhasFocus.eq(0).trigger(\"focus\");},_restoreTabbableFocus:function(){var activeElement=$.ui.safeActiveElement(this.document[0]),isActive=this.uiDialog[0]===activeElement||$.contains(this.uiDialog[0],activeElement);if(!isActive){this._focusTabbable();}},_keepFocus:function(event){event.preventDefault();this._restoreTabbableFocus();this._delay(this._restoreTabbableFocus);},_createWrapper:function(){this.uiDialog=$(\"<div>\").hide().attr({tabIndex:-1,role:\"dialog\"}).appendTo(this._appendTo());this._addClass(this.uiDialog,\"ui-dialog\",\"ui-widget ui-widget-content ui-front\");this._on(this.uiDialog,{keydown:function(event){if(this.options.closeOnEscape&&!event.isDefaultPrevented()&&event.keyCode&&event.keyCode===$.ui.keyCode.ESCAPE){event.preventDefault();this.close(event);return;}\nif(event.keyCode!==$.ui.keyCode.TAB||event.isDefaultPrevented()){return;}\nvar tabbables=this.uiDialog.find(\":tabbable\"),first=tabbables.first(),last=tabbables.last();if((event.target===last[0]||event.target===this.uiDialog[0])&&!event.shiftKey){this._delay(function(){first.trigger(\"focus\");});event.preventDefault();}else if((event.target===first[0]||event.target===this.uiDialog[0])&&event.shiftKey){this._delay(function(){last.trigger(\"focus\");});event.preventDefault();}},mousedown:function(event){if(this._moveToTop(event)){this._focusTabbable();}}});if(!this.element.find(\"[aria-describedby]\").length){this.uiDialog.attr({\"aria-describedby\":this.element.uniqueId().attr(\"id\")});}},_createTitlebar:function(){var uiDialogTitle;this.uiDialogTitlebar=$(\"<div>\");this._addClass(this.uiDialogTitlebar,\"ui-dialog-titlebar\",\"ui-widget-header ui-helper-clearfix\");this._on(this.uiDialogTitlebar,{mousedown:function(event){if(!$(event.target).closest(\".ui-dialog-titlebar-close\")){this.uiDialog.trigger(\"focus\");}}});this.uiDialogTitlebarClose=$(\"<button type='button'></button>\").button({label:$(\"<a>\").text(this.options.closeText).html(),icon:\"ui-icon-closethick\",showLabel:false}).appendTo(this.uiDialogTitlebar);this._addClass(this.uiDialogTitlebarClose,\"ui-dialog-titlebar-close\");this._on(this.uiDialogTitlebarClose,{click:function(event){event.preventDefault();this.close(event);}});uiDialogTitle=$(\"<span>\").uniqueId().prependTo(this.uiDialogTitlebar);this._addClass(uiDialogTitle,\"ui-dialog-title\");this._title(uiDialogTitle);this.uiDialogTitlebar.prependTo(this.uiDialog);this.uiDialog.attr({\"aria-labelledby\":uiDialogTitle.attr(\"id\")});},_title:function(title){if(this.options.title){title.text(this.options.title);}else{title.html(\"&#160;\");}},_createButtonPane:function(){this.uiDialogButtonPane=$(\"<div>\");this._addClass(this.uiDialogButtonPane,\"ui-dialog-buttonpane\",\"ui-widget-content ui-helper-clearfix\");this.uiButtonSet=$(\"<div>\").appendTo(this.uiDialogButtonPane);this._addClass(this.uiButtonSet,\"ui-dialog-buttonset\");this._createButtons();},_createButtons:function(){var that=this,buttons=this.options.buttons;this.uiDialogButtonPane.remove();this.uiButtonSet.empty();if($.isEmptyObject(buttons)||(Array.isArray(buttons)&&!buttons.length)){this._removeClass(this.uiDialog,\"ui-dialog-buttons\");return;}\n$.each(buttons,function(name,props){var click,buttonOptions;props=typeof props===\"function\"?{click:props,text:name}:props;props=$.extend({type:\"button\"},props);click=props.click;buttonOptions={icon:props.icon,iconPosition:props.iconPosition,showLabel:props.showLabel,icons:props.icons,text:props.text};delete props.click;delete props.icon;delete props.iconPosition;delete props.showLabel;delete props.icons;if(typeof props.text===\"boolean\"){delete props.text;}\n$(\"<button></button>\",props).button(buttonOptions).appendTo(that.uiButtonSet).on(\"click\",function(){click.apply(that.element[0],arguments);});});this._addClass(this.uiDialog,\"ui-dialog-buttons\");this.uiDialogButtonPane.appendTo(this.uiDialog);},_makeDraggable:function(){var that=this,options=this.options;function filteredUi(ui){return{position:ui.position,offset:ui.offset};}\nthis.uiDialog.draggable({cancel:\".ui-dialog-content, .ui-dialog-titlebar-close\",handle:\".ui-dialog-titlebar\",containment:\"document\",start:function(event,ui){that._addClass($(this),\"ui-dialog-dragging\");that._blockFrames();that._trigger(\"dragStart\",event,filteredUi(ui));},drag:function(event,ui){that._trigger(\"drag\",event,filteredUi(ui));},stop:function(event,ui){var left=ui.offset.left-that.document.scrollLeft(),top=ui.offset.top-that.document.scrollTop();options.position={my:\"left top\",at:\"left\"+(left>=0?\"+\":\"\")+left+\" \"+\"top\"+(top>=0?\"+\":\"\")+top,of:that.window};that._removeClass($(this),\"ui-dialog-dragging\");that._unblockFrames();that._trigger(\"dragStop\",event,filteredUi(ui));}});},_makeResizable:function(){var that=this,options=this.options,handles=options.resizable,position=this.uiDialog.css(\"position\"),resizeHandles=typeof handles===\"string\"?handles:\"n,e,s,w,se,sw,ne,nw\";function filteredUi(ui){return{originalPosition:ui.originalPosition,originalSize:ui.originalSize,position:ui.position,size:ui.size};}\nthis.uiDialog.resizable({cancel:\".ui-dialog-content\",containment:\"document\",alsoResize:this.element,maxWidth:options.maxWidth,maxHeight:options.maxHeight,minWidth:options.minWidth,minHeight:this._minHeight(),handles:resizeHandles,start:function(event,ui){that._addClass($(this),\"ui-dialog-resizing\");that._blockFrames();that._trigger(\"resizeStart\",event,filteredUi(ui));},resize:function(event,ui){that._trigger(\"resize\",event,filteredUi(ui));},stop:function(event,ui){var offset=that.uiDialog.offset(),left=offset.left-that.document.scrollLeft(),top=offset.top-that.document.scrollTop();options.height=that.uiDialog.height();options.width=that.uiDialog.width();options.position={my:\"left top\",at:\"left\"+(left>=0?\"+\":\"\")+left+\" \"+\"top\"+(top>=0?\"+\":\"\")+top,of:that.window};that._removeClass($(this),\"ui-dialog-resizing\");that._unblockFrames();that._trigger(\"resizeStop\",event,filteredUi(ui));}}).css(\"position\",position);},_trackFocus:function(){this._on(this.widget(),{focusin:function(event){this._makeFocusTarget();this._focusedElement=$(event.target);}});},_makeFocusTarget:function(){this._untrackInstance();this._trackingInstances().unshift(this);},_untrackInstance:function(){var instances=this._trackingInstances(),exists=$.inArray(this,instances);if(exists!==-1){instances.splice(exists,1);}},_trackingInstances:function(){var instances=this.document.data(\"ui-dialog-instances\");if(!instances){instances=[];this.document.data(\"ui-dialog-instances\",instances);}\nreturn instances;},_minHeight:function(){var options=this.options;return options.height===\"auto\"?options.minHeight:Math.min(options.minHeight,options.height);},_position:function(){var isVisible=this.uiDialog.is(\":visible\");if(!isVisible){this.uiDialog.show();}\nthis.uiDialog.position(this.options.position);if(!isVisible){this.uiDialog.hide();}},_setOptions:function(options){var that=this,resize=false,resizableOptions={};$.each(options,function(key,value){that._setOption(key,value);if(key in that.sizeRelatedOptions){resize=true;}\nif(key in that.resizableRelatedOptions){resizableOptions[key]=value;}});if(resize){this._size();this._position();}\nif(this.uiDialog.is(\":data(ui-resizable)\")){this.uiDialog.resizable(\"option\",resizableOptions);}},_setOption:function(key,value){var isDraggable,isResizable,uiDialog=this.uiDialog;if(key===\"disabled\"){return;}\nthis._super(key,value);if(key===\"appendTo\"){this.uiDialog.appendTo(this._appendTo());}\nif(key===\"buttons\"){this._createButtons();}\nif(key===\"closeText\"){this.uiDialogTitlebarClose.button({label:$(\"<a>\").text(\"\"+this.options.closeText).html()});}\nif(key===\"draggable\"){isDraggable=uiDialog.is(\":data(ui-draggable)\");if(isDraggable&&!value){uiDialog.draggable(\"destroy\");}\nif(!isDraggable&&value){this._makeDraggable();}}\nif(key===\"position\"){this._position();}\nif(key===\"resizable\"){isResizable=uiDialog.is(\":data(ui-resizable)\");if(isResizable&&!value){uiDialog.resizable(\"destroy\");}\nif(isResizable&&typeof value===\"string\"){uiDialog.resizable(\"option\",\"handles\",value);}\nif(!isResizable&&value!==false){this._makeResizable();}}\nif(key===\"title\"){this._title(this.uiDialogTitlebar.find(\".ui-dialog-title\"));}},_size:function(){var nonContentHeight,minContentHeight,maxContentHeight,options=this.options;this.element.show().css({width:\"auto\",minHeight:0,maxHeight:\"none\",height:0});if(options.minWidth>options.width){options.width=options.minWidth;}\nnonContentHeight=this.uiDialog.css({height:\"auto\",width:options.width}).outerHeight();minContentHeight=Math.max(0,options.minHeight-nonContentHeight);maxContentHeight=typeof options.maxHeight===\"number\"?Math.max(0,options.maxHeight-nonContentHeight):\"none\";if(options.height===\"auto\"){this.element.css({minHeight:minContentHeight,maxHeight:maxContentHeight,height:\"auto\"});}else{this.element.height(Math.max(0,options.height-nonContentHeight));}\nif(this.uiDialog.is(\":data(ui-resizable)\")){this.uiDialog.resizable(\"option\",\"minHeight\",this._minHeight());}},_blockFrames:function(){this.iframeBlocks=this.document.find(\"iframe\").map(function(){var iframe=$(this);return $(\"<div>\").css({position:\"absolute\",width:iframe.outerWidth(),height:iframe.outerHeight()}).appendTo(iframe.parent()).offset(iframe.offset())[0];});},_unblockFrames:function(){if(this.iframeBlocks){this.iframeBlocks.remove();delete this.iframeBlocks;}},_allowInteraction:function(event){if($(event.target).closest(\".ui-dialog\").length){return true;}\nreturn!!$(event.target).closest(\".ui-datepicker\").length;},_createOverlay:function(){if(!this.options.modal){return;}\nvar jqMinor=$.fn.jquery.substring(0,4);var isOpening=true;this._delay(function(){isOpening=false;});if(!this.document.data(\"ui-dialog-overlays\")){this.document.on(\"focusin.ui-dialog\",function(event){if(isOpening){return;}\nvar instance=this._trackingInstances()[0];if(!instance._allowInteraction(event)){event.preventDefault();instance._focusTabbable();if(jqMinor===\"3.4.\"||jqMinor===\"3.5.\"){instance._delay(instance._restoreTabbableFocus);}}}.bind(this));}\nthis.overlay=$(\"<div>\").appendTo(this._appendTo());this._addClass(this.overlay,null,\"ui-widget-overlay ui-front\");this._on(this.overlay,{mousedown:\"_keepFocus\"});this.document.data(\"ui-dialog-overlays\",(this.document.data(\"ui-dialog-overlays\")||0)+1);},_destroyOverlay:function(){if(!this.options.modal){return;}\nif(this.overlay){var overlays=this.document.data(\"ui-dialog-overlays\")-1;if(!overlays){this.document.off(\"focusin.ui-dialog\");this.document.removeData(\"ui-dialog-overlays\");}else{this.document.data(\"ui-dialog-overlays\",overlays);}\nthis.overlay.remove();this.overlay=null;}}});if($.uiBackCompat!==false){$.widget(\"ui.dialog\",$.ui.dialog,{options:{dialogClass:\"\"},_createWrapper:function(){this._super();this.uiDialog.addClass(this.options.dialogClass);},_setOption:function(key,value){if(key===\"dialogClass\"){this.uiDialog.removeClass(this.options.dialogClass).addClass(value);}\nthis._superApply(arguments);}});}\nvar widgetsDialog=$.ui.dialog;\n/*!\n * jQuery UI Droppable 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n$.widget(\"ui.droppable\",{version:\"1.13.2\",widgetEventPrefix:\"drop\",options:{accept:\"*\",addClasses:true,greedy:false,scope:\"default\",tolerance:\"intersect\",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var proportions,o=this.options,accept=o.accept;this.isover=false;this.isout=true;this.accept=typeof accept===\"function\"?accept:function(d){return d.is(accept);};this.proportions=function(){if(arguments.length){proportions=arguments[0];}else{return proportions?proportions:proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};}};this._addToManager(o.scope);if(o.addClasses){this._addClass(\"ui-droppable\");}},_addToManager:function(scope){$.ui.ddmanager.droppables[scope]=$.ui.ddmanager.droppables[scope]||[];$.ui.ddmanager.droppables[scope].push(this);},_splice:function(drop){var i=0;for(;i<drop.length;i++){if(drop[i]===this){drop.splice(i,1);}}},_destroy:function(){var drop=$.ui.ddmanager.droppables[this.options.scope];this._splice(drop);},_setOption:function(key,value){if(key===\"accept\"){this.accept=typeof value===\"function\"?value:function(d){return d.is(value);};}else if(key===\"scope\"){var drop=$.ui.ddmanager.droppables[this.options.scope];this._splice(drop);this._addToManager(value);}\nthis._super(key,value);},_activate:function(event){var draggable=$.ui.ddmanager.current;this._addActiveClass();if(draggable){this._trigger(\"activate\",event,this.ui(draggable));}},_deactivate:function(event){var draggable=$.ui.ddmanager.current;this._removeActiveClass();if(draggable){this._trigger(\"deactivate\",event,this.ui(draggable));}},_over:function(event){var draggable=$.ui.ddmanager.current;if(!draggable||(draggable.currentItem||draggable.element)[0]===this.element[0]){return;}\nif(this.accept.call(this.element[0],(draggable.currentItem||draggable.element))){this._addHoverClass();this._trigger(\"over\",event,this.ui(draggable));}},_out:function(event){var draggable=$.ui.ddmanager.current;if(!draggable||(draggable.currentItem||draggable.element)[0]===this.element[0]){return;}\nif(this.accept.call(this.element[0],(draggable.currentItem||draggable.element))){this._removeHoverClass();this._trigger(\"out\",event,this.ui(draggable));}},_drop:function(event,custom){var draggable=custom||$.ui.ddmanager.current,childrenIntersection=false;if(!draggable||(draggable.currentItem||draggable.element)[0]===this.element[0]){return false;}\nthis.element.find(\":data(ui-droppable)\").not(\".ui-draggable-dragging\").each(function(){var inst=$(this).droppable(\"instance\");if(inst.options.greedy&&!inst.options.disabled&&inst.options.scope===draggable.options.scope&&inst.accept.call(inst.element[0],(draggable.currentItem||draggable.element))&&$.ui.intersect(draggable,$.extend(inst,{offset:inst.element.offset()}),inst.options.tolerance,event)){childrenIntersection=true;return false;}});if(childrenIntersection){return false;}\nif(this.accept.call(this.element[0],(draggable.currentItem||draggable.element))){this._removeActiveClass();this._removeHoverClass();this._trigger(\"drop\",event,this.ui(draggable));return this.element;}\nreturn false;},ui:function(c){return{draggable:(c.currentItem||c.element),helper:c.helper,position:c.position,offset:c.positionAbs};},_addHoverClass:function(){this._addClass(\"ui-droppable-hover\");},_removeHoverClass:function(){this._removeClass(\"ui-droppable-hover\");},_addActiveClass:function(){this._addClass(\"ui-droppable-active\");},_removeActiveClass:function(){this._removeClass(\"ui-droppable-active\");}});$.ui.intersect=(function(){function isOverAxis(x,reference,size){return(x>=reference)&&(x<(reference+size));}\nreturn function(draggable,droppable,toleranceMode,event){if(!droppable.offset){return false;}\nvar x1=(draggable.positionAbs||draggable.position.absolute).left+draggable.margins.left,y1=(draggable.positionAbs||draggable.position.absolute).top+draggable.margins.top,x2=x1+draggable.helperProportions.width,y2=y1+draggable.helperProportions.height,l=droppable.offset.left,t=droppable.offset.top,r=l+droppable.proportions().width,b=t+droppable.proportions().height;switch(toleranceMode){case\"fit\":return(l<=x1&&x2<=r&&t<=y1&&y2<=b);case\"intersect\":return(l<x1+(draggable.helperProportions.width / 2)&&x2-(draggable.helperProportions.width / 2)<r&&t<y1+(draggable.helperProportions.height / 2)&&y2-(draggable.helperProportions.height / 2)<b);case\"pointer\":return isOverAxis(event.pageY,t,droppable.proportions().height)&&isOverAxis(event.pageX,l,droppable.proportions().width);case\"touch\":return((y1>=t&&y1<=b)||(y2>=t&&y2<=b)||(y1<t&&y2>b))&&((x1>=l&&x1<=r)||(x2>=l&&x2<=r)||(x1<l&&x2>r));default:return false;}};})();$.ui.ddmanager={current:null,droppables:{\"default\":[]},prepareOffsets:function(t,event){var i,j,m=$.ui.ddmanager.droppables[t.options.scope]||[],type=event?event.type:null,list=(t.currentItem||t.element).find(\":data(ui-droppable)\").addBack();droppablesLoop:for(i=0;i<m.length;i++){if(m[i].options.disabled||(t&&!m[i].accept.call(m[i].element[0],(t.currentItem||t.element)))){continue;}\nfor(j=0;j<list.length;j++){if(list[j]===m[i].element[0]){m[i].proportions().height=0;continue droppablesLoop;}}\nm[i].visible=m[i].element.css(\"display\")!==\"none\";if(!m[i].visible){continue;}\nif(type===\"mousedown\"){m[i]._activate.call(m[i],event);}\nm[i].offset=m[i].element.offset();m[i].proportions({width:m[i].element[0].offsetWidth,height:m[i].element[0].offsetHeight});}},drop:function(draggable,event){var dropped=false;$.each(($.ui.ddmanager.droppables[draggable.options.scope]||[]).slice(),function(){if(!this.options){return;}\nif(!this.options.disabled&&this.visible&&$.ui.intersect(draggable,this,this.options.tolerance,event)){dropped=this._drop.call(this,event)||dropped;}\nif(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],(draggable.currentItem||draggable.element))){this.isout=true;this.isover=false;this._deactivate.call(this,event);}});return dropped;},dragStart:function(draggable,event){draggable.element.parentsUntil(\"body\").on(\"scroll.droppable\",function(){if(!draggable.options.refreshPositions){$.ui.ddmanager.prepareOffsets(draggable,event);}});},drag:function(draggable,event){if(draggable.options.refreshPositions){$.ui.ddmanager.prepareOffsets(draggable,event);}\n$.each($.ui.ddmanager.droppables[draggable.options.scope]||[],function(){if(this.options.disabled||this.greedyChild||!this.visible){return;}\nvar parentInstance,scope,parent,intersects=$.ui.intersect(draggable,this,this.options.tolerance,event),c=!intersects&&this.isover?\"isout\":(intersects&&!this.isover?\"isover\":null);if(!c){return;}\nif(this.options.greedy){scope=this.options.scope;parent=this.element.parents(\":data(ui-droppable)\").filter(function(){return $(this).droppable(\"instance\").options.scope===scope;});if(parent.length){parentInstance=$(parent[0]).droppable(\"instance\");parentInstance.greedyChild=(c===\"isover\");}}\nif(parentInstance&&c===\"isover\"){parentInstance.isover=false;parentInstance.isout=true;parentInstance._out.call(parentInstance,event);}\nthis[c]=true;this[c===\"isout\"?\"isover\":\"isout\"]=false;this[c===\"isover\"?\"_over\":\"_out\"].call(this,event);if(parentInstance&&c===\"isout\"){parentInstance.isout=false;parentInstance.isover=true;parentInstance._over.call(parentInstance,event);}});},dragStop:function(draggable,event){draggable.element.parentsUntil(\"body\").off(\"scroll.droppable\");if(!draggable.options.refreshPositions){$.ui.ddmanager.prepareOffsets(draggable,event);}}};if($.uiBackCompat!==false){$.widget(\"ui.droppable\",$.ui.droppable,{options:{hoverClass:false,activeClass:false},_addActiveClass:function(){this._super();if(this.options.activeClass){this.element.addClass(this.options.activeClass);}},_removeActiveClass:function(){this._super();if(this.options.activeClass){this.element.removeClass(this.options.activeClass);}},_addHoverClass:function(){this._super();if(this.options.hoverClass){this.element.addClass(this.options.hoverClass);}},_removeHoverClass:function(){this._super();if(this.options.hoverClass){this.element.removeClass(this.options.hoverClass);}}});}\nvar widgetsDroppable=$.ui.droppable;\n/*!\n * jQuery UI Progressbar 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\nvar widgetsProgressbar=$.widget(\"ui.progressbar\",{version:\"1.13.2\",options:{classes:{\"ui-progressbar\":\"ui-corner-all\",\"ui-progressbar-value\":\"ui-corner-left\",\"ui-progressbar-complete\":\"ui-corner-right\"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue();this.element.attr({role:\"progressbar\",\"aria-valuemin\":this.min});this._addClass(\"ui-progressbar\",\"ui-widget ui-widget-content\");this.valueDiv=$(\"<div>\").appendTo(this.element);this._addClass(this.valueDiv,\"ui-progressbar-value\",\"ui-widget-header\");this._refreshValue();},_destroy:function(){this.element.removeAttr(\"role aria-valuemin aria-valuemax aria-valuenow\");this.valueDiv.remove();},value:function(newValue){if(newValue===undefined){return this.options.value;}\nthis.options.value=this._constrainedValue(newValue);this._refreshValue();},_constrainedValue:function(newValue){if(newValue===undefined){newValue=this.options.value;}\nthis.indeterminate=newValue===false;if(typeof newValue!==\"number\"){newValue=0;}\nreturn this.indeterminate?false:Math.min(this.options.max,Math.max(this.min,newValue));},_setOptions:function(options){var value=options.value;delete options.value;this._super(options);this.options.value=this._constrainedValue(value);this._refreshValue();},_setOption:function(key,value){if(key===\"max\"){value=Math.max(this.min,value);}\nthis._super(key,value);},_setOptionDisabled:function(value){this._super(value);this.element.attr(\"aria-disabled\",value);this._toggleClass(null,\"ui-state-disabled\",!!value);},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min);},_refreshValue:function(){var value=this.options.value,percentage=this._percentage();this.valueDiv.toggle(this.indeterminate||value>this.min).width(percentage.toFixed(0)+\"%\");this._toggleClass(this.valueDiv,\"ui-progressbar-complete\",null,value===this.options.max)._toggleClass(\"ui-progressbar-indeterminate\",null,this.indeterminate);if(this.indeterminate){this.element.removeAttr(\"aria-valuenow\");if(!this.overlayDiv){this.overlayDiv=$(\"<div>\").appendTo(this.valueDiv);this._addClass(this.overlayDiv,\"ui-progressbar-overlay\");}}else{this.element.attr({\"aria-valuemax\":this.options.max,\"aria-valuenow\":value});if(this.overlayDiv){this.overlayDiv.remove();this.overlayDiv=null;}}\nif(this.oldValue!==value){this.oldValue=value;this._trigger(\"change\");}\nif(value===this.options.max){this._trigger(\"complete\");}}});\n/*!\n * jQuery UI Selectable 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\nvar widgetsSelectable=$.widget(\"ui.selectable\",$.ui.mouse,{version:\"1.13.2\",options:{appendTo:\"body\",autoRefresh:true,distance:0,filter:\"*\",tolerance:\"touch\",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var that=this;this._addClass(\"ui-selectable\");this.dragged=false;this.refresh=function(){that.elementPos=$(that.element[0]).offset();that.selectees=$(that.options.filter,that.element[0]);that._addClass(that.selectees,\"ui-selectee\");that.selectees.each(function(){var $this=$(this),selecteeOffset=$this.offset(),pos={left:selecteeOffset.left-that.elementPos.left,top:selecteeOffset.top-that.elementPos.top};$.data(this,\"selectable-item\",{element:this,$element:$this,left:pos.left,top:pos.top,right:pos.left+$this.outerWidth(),bottom:pos.top+$this.outerHeight(),startselected:false,selected:$this.hasClass(\"ui-selected\"),selecting:$this.hasClass(\"ui-selecting\"),unselecting:$this.hasClass(\"ui-unselecting\")});});};this.refresh();this._mouseInit();this.helper=$(\"<div>\");this._addClass(this.helper,\"ui-selectable-helper\");},_destroy:function(){this.selectees.removeData(\"selectable-item\");this._mouseDestroy();},_mouseStart:function(event){var that=this,options=this.options;this.opos=[event.pageX,event.pageY];this.elementPos=$(this.element[0]).offset();if(this.options.disabled){return;}\nthis.selectees=$(options.filter,this.element[0]);this._trigger(\"start\",event);$(options.appendTo).append(this.helper);this.helper.css({\"left\":event.pageX,\"top\":event.pageY,\"width\":0,\"height\":0});if(options.autoRefresh){this.refresh();}\nthis.selectees.filter(\".ui-selected\").each(function(){var selectee=$.data(this,\"selectable-item\");selectee.startselected=true;if(!event.metaKey&&!event.ctrlKey){that._removeClass(selectee.$element,\"ui-selected\");selectee.selected=false;that._addClass(selectee.$element,\"ui-unselecting\");selectee.unselecting=true;that._trigger(\"unselecting\",event,{unselecting:selectee.element});}});$(event.target).parents().addBack().each(function(){var doSelect,selectee=$.data(this,\"selectable-item\");if(selectee){doSelect=(!event.metaKey&&!event.ctrlKey)||!selectee.$element.hasClass(\"ui-selected\");that._removeClass(selectee.$element,doSelect?\"ui-unselecting\":\"ui-selected\")._addClass(selectee.$element,doSelect?\"ui-selecting\":\"ui-unselecting\");selectee.unselecting=!doSelect;selectee.selecting=doSelect;selectee.selected=doSelect;if(doSelect){that._trigger(\"selecting\",event,{selecting:selectee.element});}else{that._trigger(\"unselecting\",event,{unselecting:selectee.element});}\nreturn false;}});},_mouseDrag:function(event){this.dragged=true;if(this.options.disabled){return;}\nvar tmp,that=this,options=this.options,x1=this.opos[0],y1=this.opos[1],x2=event.pageX,y2=event.pageY;if(x1>x2){tmp=x2;x2=x1;x1=tmp;}\nif(y1>y2){tmp=y2;y2=y1;y1=tmp;}\nthis.helper.css({left:x1,top:y1,width:x2-x1,height:y2-y1});this.selectees.each(function(){var selectee=$.data(this,\"selectable-item\"),hit=false,offset={};if(!selectee||selectee.element===that.element[0]){return;}\noffset.left=selectee.left+that.elementPos.left;offset.right=selectee.right+that.elementPos.left;offset.top=selectee.top+that.elementPos.top;offset.bottom=selectee.bottom+that.elementPos.top;if(options.tolerance===\"touch\"){hit=(!(offset.left>x2||offset.right<x1||offset.top>y2||offset.bottom<y1));}else if(options.tolerance===\"fit\"){hit=(offset.left>x1&&offset.right<x2&&offset.top>y1&&offset.bottom<y2);}\nif(hit){if(selectee.selected){that._removeClass(selectee.$element,\"ui-selected\");selectee.selected=false;}\nif(selectee.unselecting){that._removeClass(selectee.$element,\"ui-unselecting\");selectee.unselecting=false;}\nif(!selectee.selecting){that._addClass(selectee.$element,\"ui-selecting\");selectee.selecting=true;that._trigger(\"selecting\",event,{selecting:selectee.element});}}else{if(selectee.selecting){if((event.metaKey||event.ctrlKey)&&selectee.startselected){that._removeClass(selectee.$element,\"ui-selecting\");selectee.selecting=false;that._addClass(selectee.$element,\"ui-selected\");selectee.selected=true;}else{that._removeClass(selectee.$element,\"ui-selecting\");selectee.selecting=false;if(selectee.startselected){that._addClass(selectee.$element,\"ui-unselecting\");selectee.unselecting=true;}\nthat._trigger(\"unselecting\",event,{unselecting:selectee.element});}}\nif(selectee.selected){if(!event.metaKey&&!event.ctrlKey&&!selectee.startselected){that._removeClass(selectee.$element,\"ui-selected\");selectee.selected=false;that._addClass(selectee.$element,\"ui-unselecting\");selectee.unselecting=true;that._trigger(\"unselecting\",event,{unselecting:selectee.element});}}}});return false;},_mouseStop:function(event){var that=this;this.dragged=false;$(\".ui-unselecting\",this.element[0]).each(function(){var selectee=$.data(this,\"selectable-item\");that._removeClass(selectee.$element,\"ui-unselecting\");selectee.unselecting=false;selectee.startselected=false;that._trigger(\"unselected\",event,{unselected:selectee.element});});$(\".ui-selecting\",this.element[0]).each(function(){var selectee=$.data(this,\"selectable-item\");that._removeClass(selectee.$element,\"ui-selecting\")._addClass(selectee.$element,\"ui-selected\");selectee.selecting=false;selectee.selected=true;selectee.startselected=true;that._trigger(\"selected\",event,{selected:selectee.element});});this._trigger(\"stop\",event);this.helper.remove();return false;}});\n/*!\n * jQuery UI Selectmenu 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\nvar widgetsSelectmenu=$.widget(\"ui.selectmenu\",[$.ui.formResetMixin,{version:\"1.13.2\",defaultElement:\"<select>\",options:{appendTo:null,classes:{\"ui-selectmenu-button-open\":\"ui-corner-top\",\"ui-selectmenu-button-closed\":\"ui-corner-all\"},disabled:null,icons:{button:\"ui-icon-triangle-1-s\"},position:{my:\"left top\",at:\"left bottom\",collision:\"none\"},width:false,change:null,close:null,focus:null,open:null,select:null},_create:function(){var selectmenuId=this.element.uniqueId().attr(\"id\");this.ids={element:selectmenuId,button:selectmenuId+\"-button\",menu:selectmenuId+\"-menu\"};this._drawButton();this._drawMenu();this._bindFormResetHandler();this._rendered=false;this.menuItems=$();},_drawButton:function(){var icon,that=this,item=this._parseOption(this.element.find(\"option:selected\"),this.element[0].selectedIndex);this.labels=this.element.labels().attr(\"for\",this.ids.button);this._on(this.labels,{click:function(event){this.button.trigger(\"focus\");event.preventDefault();}});this.element.hide();this.button=$(\"<span>\",{tabindex:this.options.disabled?-1:0,id:this.ids.button,role:\"combobox\",\"aria-expanded\":\"false\",\"aria-autocomplete\":\"list\",\"aria-owns\":this.ids.menu,\"aria-haspopup\":\"true\",title:this.element.attr(\"title\")}).insertAfter(this.element);this._addClass(this.button,\"ui-selectmenu-button ui-selectmenu-button-closed\",\"ui-button ui-widget\");icon=$(\"<span>\").appendTo(this.button);this._addClass(icon,\"ui-selectmenu-icon\",\"ui-icon \"+this.options.icons.button);this.buttonItem=this._renderButtonItem(item).appendTo(this.button);if(this.options.width!==false){this._resizeButton();}\nthis._on(this.button,this._buttonEvents);this.button.one(\"focusin\",function(){if(!that._rendered){that._refreshMenu();}});},_drawMenu:function(){var that=this;this.menu=$(\"<ul>\",{\"aria-hidden\":\"true\",\"aria-labelledby\":this.ids.button,id:this.ids.menu});this.menuWrap=$(\"<div>\").append(this.menu);this._addClass(this.menuWrap,\"ui-selectmenu-menu\",\"ui-front\");this.menuWrap.appendTo(this._appendTo());this.menuInstance=this.menu.menu({classes:{\"ui-menu\":\"ui-corner-bottom\"},role:\"listbox\",select:function(event,ui){event.preventDefault();that._setSelection();that._select(ui.item.data(\"ui-selectmenu-item\"),event);},focus:function(event,ui){var item=ui.item.data(\"ui-selectmenu-item\");if(that.focusIndex!=null&&item.index!==that.focusIndex){that._trigger(\"focus\",event,{item:item});if(!that.isOpen){that._select(item,event);}}\nthat.focusIndex=item.index;that.button.attr(\"aria-activedescendant\",that.menuItems.eq(item.index).attr(\"id\"));}}).menu(\"instance\");this.menuInstance._off(this.menu,\"mouseleave\");this.menuInstance._closeOnDocumentClick=function(){return false;};this.menuInstance._isDivider=function(){return false;};},refresh:function(){this._refreshMenu();this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(this._getSelectedItem().data(\"ui-selectmenu-item\")||{}));if(this.options.width===null){this._resizeButton();}},_refreshMenu:function(){var item,options=this.element.find(\"option\");this.menu.empty();this._parseOptions(options);this._renderMenu(this.menu,this.items);this.menuInstance.refresh();this.menuItems=this.menu.find(\"li\").not(\".ui-selectmenu-optgroup\").find(\".ui-menu-item-wrapper\");this._rendered=true;if(!options.length){return;}\nitem=this._getSelectedItem();this.menuInstance.focus(null,item);this._setAria(item.data(\"ui-selectmenu-item\"));this._setOption(\"disabled\",this.element.prop(\"disabled\"));},open:function(event){if(this.options.disabled){return;}\nif(!this._rendered){this._refreshMenu();}else{this._removeClass(this.menu.find(\".ui-state-active\"),null,\"ui-state-active\");this.menuInstance.focus(null,this._getSelectedItem());}\nif(!this.menuItems.length){return;}\nthis.isOpen=true;this._toggleAttr();this._resizeMenu();this._position();this._on(this.document,this._documentClick);this._trigger(\"open\",event);},_position:function(){this.menuWrap.position($.extend({of:this.button},this.options.position));},close:function(event){if(!this.isOpen){return;}\nthis.isOpen=false;this._toggleAttr();this.range=null;this._off(this.document);this._trigger(\"close\",event);},widget:function(){return this.button;},menuWidget:function(){return this.menu;},_renderButtonItem:function(item){var buttonItem=$(\"<span>\");this._setText(buttonItem,item.label);this._addClass(buttonItem,\"ui-selectmenu-text\");return buttonItem;},_renderMenu:function(ul,items){var that=this,currentOptgroup=\"\";$.each(items,function(index,item){var li;if(item.optgroup!==currentOptgroup){li=$(\"<li>\",{text:item.optgroup});that._addClass(li,\"ui-selectmenu-optgroup\",\"ui-menu-divider\"+\n(item.element.parent(\"optgroup\").prop(\"disabled\")?\" ui-state-disabled\":\"\"));li.appendTo(ul);currentOptgroup=item.optgroup;}\nthat._renderItemData(ul,item);});},_renderItemData:function(ul,item){return this._renderItem(ul,item).data(\"ui-selectmenu-item\",item);},_renderItem:function(ul,item){var li=$(\"<li>\"),wrapper=$(\"<div>\",{title:item.element.attr(\"title\")});if(item.disabled){this._addClass(li,null,\"ui-state-disabled\");}\nthis._setText(wrapper,item.label);return li.append(wrapper).appendTo(ul);},_setText:function(element,value){if(value){element.text(value);}else{element.html(\"&#160;\");}},_move:function(direction,event){var item,next,filter=\".ui-menu-item\";if(this.isOpen){item=this.menuItems.eq(this.focusIndex).parent(\"li\");}else{item=this.menuItems.eq(this.element[0].selectedIndex).parent(\"li\");filter+=\":not(.ui-state-disabled)\";}\nif(direction===\"first\"||direction===\"last\"){next=item[direction===\"first\"?\"prevAll\":\"nextAll\"](filter).eq(-1);}else{next=item[direction+\"All\"](filter).eq(0);}\nif(next.length){this.menuInstance.focus(event,next);}},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent(\"li\");},_toggle:function(event){this[this.isOpen?\"close\":\"open\"](event);},_setSelection:function(){var selection;if(!this.range){return;}\nif(window.getSelection){selection=window.getSelection();selection.removeAllRanges();selection.addRange(this.range);}else{this.range.select();}\nthis.button.trigger(\"focus\");},_documentClick:{mousedown:function(event){if(!this.isOpen){return;}\nif(!$(event.target).closest(\".ui-selectmenu-menu, #\"+\n$.escapeSelector(this.ids.button)).length){this.close(event);}}},_buttonEvents:{mousedown:function(){var selection;if(window.getSelection){selection=window.getSelection();if(selection.rangeCount){this.range=selection.getRangeAt(0);}}else{this.range=document.selection.createRange();}},click:function(event){this._setSelection();this._toggle(event);},keydown:function(event){var preventDefault=true;switch(event.keyCode){case $.ui.keyCode.TAB:case $.ui.keyCode.ESCAPE:this.close(event);preventDefault=false;break;case $.ui.keyCode.ENTER:if(this.isOpen){this._selectFocusedItem(event);}\nbreak;case $.ui.keyCode.UP:if(event.altKey){this._toggle(event);}else{this._move(\"prev\",event);}\nbreak;case $.ui.keyCode.DOWN:if(event.altKey){this._toggle(event);}else{this._move(\"next\",event);}\nbreak;case $.ui.keyCode.SPACE:if(this.isOpen){this._selectFocusedItem(event);}else{this._toggle(event);}\nbreak;case $.ui.keyCode.LEFT:this._move(\"prev\",event);break;case $.ui.keyCode.RIGHT:this._move(\"next\",event);break;case $.ui.keyCode.HOME:case $.ui.keyCode.PAGE_UP:this._move(\"first\",event);break;case $.ui.keyCode.END:case $.ui.keyCode.PAGE_DOWN:this._move(\"last\",event);break;default:this.menu.trigger(event);preventDefault=false;}\nif(preventDefault){event.preventDefault();}}},_selectFocusedItem:function(event){var item=this.menuItems.eq(this.focusIndex).parent(\"li\");if(!item.hasClass(\"ui-state-disabled\")){this._select(item.data(\"ui-selectmenu-item\"),event);}},_select:function(item,event){var oldIndex=this.element[0].selectedIndex;this.element[0].selectedIndex=item.index;this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(item));this._setAria(item);this._trigger(\"select\",event,{item:item});if(item.index!==oldIndex){this._trigger(\"change\",event,{item:item});}\nthis.close(event);},_setAria:function(item){var id=this.menuItems.eq(item.index).attr(\"id\");this.button.attr({\"aria-labelledby\":id,\"aria-activedescendant\":id});this.menu.attr(\"aria-activedescendant\",id);},_setOption:function(key,value){if(key===\"icons\"){var icon=this.button.find(\"span.ui-icon\");this._removeClass(icon,null,this.options.icons.button)._addClass(icon,null,value.button);}\nthis._super(key,value);if(key===\"appendTo\"){this.menuWrap.appendTo(this._appendTo());}\nif(key===\"width\"){this._resizeButton();}},_setOptionDisabled:function(value){this._super(value);this.menuInstance.option(\"disabled\",value);this.button.attr(\"aria-disabled\",value);this._toggleClass(this.button,null,\"ui-state-disabled\",value);this.element.prop(\"disabled\",value);if(value){this.button.attr(\"tabindex\",-1);this.close();}else{this.button.attr(\"tabindex\",0);}},_appendTo:function(){var element=this.options.appendTo;if(element){element=element.jquery||element.nodeType?$(element):this.document.find(element).eq(0);}\nif(!element||!element[0]){element=this.element.closest(\".ui-front, dialog\");}\nif(!element.length){element=this.document[0].body;}\nreturn element;},_toggleAttr:function(){this.button.attr(\"aria-expanded\",this.isOpen);this._removeClass(this.button,\"ui-selectmenu-button-\"+\n(this.isOpen?\"closed\":\"open\"))._addClass(this.button,\"ui-selectmenu-button-\"+\n(this.isOpen?\"open\":\"closed\"))._toggleClass(this.menuWrap,\"ui-selectmenu-open\",null,this.isOpen);this.menu.attr(\"aria-hidden\",!this.isOpen);},_resizeButton:function(){var width=this.options.width;if(width===false){this.button.css(\"width\",\"\");return;}\nif(width===null){width=this.element.show().outerWidth();this.element.hide();}\nthis.button.outerWidth(width);},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width(\"\").outerWidth()+1));},_getCreateOptions:function(){var options=this._super();options.disabled=this.element.prop(\"disabled\");return options;},_parseOptions:function(options){var that=this,data=[];options.each(function(index,item){if(item.hidden){return;}\ndata.push(that._parseOption($(item),index));});this.items=data;},_parseOption:function(option,index){var optgroup=option.parent(\"optgroup\");return{element:option,index:index,value:option.val(),label:option.text(),optgroup:optgroup.attr(\"label\")||\"\",disabled:optgroup.prop(\"disabled\")||option.prop(\"disabled\")};},_destroy:function(){this._unbindFormResetHandler();this.menuWrap.remove();this.button.remove();this.element.show();this.element.removeUniqueId();this.labels.attr(\"for\",this.ids.element);}}]);\n/*!\n * jQuery UI Slider 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\nvar widgetsSlider=$.widget(\"ui.slider\",$.ui.mouse,{version:\"1.13.2\",widgetEventPrefix:\"slide\",options:{animate:false,classes:{\"ui-slider\":\"ui-corner-all\",\"ui-slider-handle\":\"ui-corner-all\",\"ui-slider-range\":\"ui-corner-all ui-widget-header\"},distance:0,max:100,min:0,orientation:\"horizontal\",range:false,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=false;this._mouseSliding=false;this._animateOff=true;this._handleIndex=null;this._detectOrientation();this._mouseInit();this._calculateNewMax();this._addClass(\"ui-slider ui-slider-\"+this.orientation,\"ui-widget ui-widget-content\");this._refresh();this._animateOff=false;},_refresh:function(){this._createRange();this._createHandles();this._setupEvents();this._refreshValue();},_createHandles:function(){var i,handleCount,options=this.options,existingHandles=this.element.find(\".ui-slider-handle\"),handle=\"<span tabindex='0'></span>\",handles=[];handleCount=(options.values&&options.values.length)||1;if(existingHandles.length>handleCount){existingHandles.slice(handleCount).remove();existingHandles=existingHandles.slice(0,handleCount);}\nfor(i=existingHandles.length;i<handleCount;i++){handles.push(handle);}\nthis.handles=existingHandles.add($(handles.join(\"\")).appendTo(this.element));this._addClass(this.handles,\"ui-slider-handle\",\"ui-state-default\");this.handle=this.handles.eq(0);this.handles.each(function(i){$(this).data(\"ui-slider-handle-index\",i).attr(\"tabIndex\",0);});},_createRange:function(){var options=this.options;if(options.range){if(options.range===true){if(!options.values){options.values=[this._valueMin(),this._valueMin()];}else if(options.values.length&&options.values.length!==2){options.values=[options.values[0],options.values[0]];}else if(Array.isArray(options.values)){options.values=options.values.slice(0);}}\nif(!this.range||!this.range.length){this.range=$(\"<div>\").appendTo(this.element);this._addClass(this.range,\"ui-slider-range\");}else{this._removeClass(this.range,\"ui-slider-range-min ui-slider-range-max\");this.range.css({\"left\":\"\",\"bottom\":\"\"});}\nif(options.range===\"min\"||options.range===\"max\"){this._addClass(this.range,\"ui-slider-range-\"+options.range);}}else{if(this.range){this.range.remove();}\nthis.range=null;}},_setupEvents:function(){this._off(this.handles);this._on(this.handles,this._handleEvents);this._hoverable(this.handles);this._focusable(this.handles);},_destroy:function(){this.handles.remove();if(this.range){this.range.remove();}\nthis._mouseDestroy();},_mouseCapture:function(event){var position,normValue,distance,closestHandle,index,allowed,offset,mouseOverHandle,that=this,o=this.options;if(o.disabled){return false;}\nthis.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();position={x:event.pageX,y:event.pageY};normValue=this._normValueFromMouse(position);distance=this._valueMax()-this._valueMin()+1;this.handles.each(function(i){var thisDistance=Math.abs(normValue-that.values(i));if((distance>thisDistance)||(distance===thisDistance&&(i===that._lastChangedValue||that.values(i)===o.min))){distance=thisDistance;closestHandle=$(this);index=i;}});allowed=this._start(event,index);if(allowed===false){return false;}\nthis._mouseSliding=true;this._handleIndex=index;this._addClass(closestHandle,null,\"ui-state-active\");closestHandle.trigger(\"focus\");offset=closestHandle.offset();mouseOverHandle=!$(event.target).parents().addBack().is(\".ui-slider-handle\");this._clickOffset=mouseOverHandle?{left:0,top:0}:{left:event.pageX-offset.left-(closestHandle.width()/ 2),top:event.pageY-offset.top-\n(closestHandle.height()/ 2)-\n(parseInt(closestHandle.css(\"borderTopWidth\"),10)||0)-\n(parseInt(closestHandle.css(\"borderBottomWidth\"),10)||0)+\n(parseInt(closestHandle.css(\"marginTop\"),10)||0)};if(!this.handles.hasClass(\"ui-state-hover\")){this._slide(event,index,normValue);}\nthis._animateOff=true;return true;},_mouseStart:function(){return true;},_mouseDrag:function(event){var position={x:event.pageX,y:event.pageY},normValue=this._normValueFromMouse(position);this._slide(event,this._handleIndex,normValue);return false;},_mouseStop:function(event){this._removeClass(this.handles,null,\"ui-state-active\");this._mouseSliding=false;this._stop(event,this._handleIndex);this._change(event,this._handleIndex);this._handleIndex=null;this._clickOffset=null;this._animateOff=false;return false;},_detectOrientation:function(){this.orientation=(this.options.orientation===\"vertical\")?\"vertical\":\"horizontal\";},_normValueFromMouse:function(position){var pixelTotal,pixelMouse,percentMouse,valueTotal,valueMouse;if(this.orientation===\"horizontal\"){pixelTotal=this.elementSize.width;pixelMouse=position.x-this.elementOffset.left-\n(this._clickOffset?this._clickOffset.left:0);}else{pixelTotal=this.elementSize.height;pixelMouse=position.y-this.elementOffset.top-\n(this._clickOffset?this._clickOffset.top:0);}\npercentMouse=(pixelMouse / pixelTotal);if(percentMouse>1){percentMouse=1;}\nif(percentMouse<0){percentMouse=0;}\nif(this.orientation===\"vertical\"){percentMouse=1-percentMouse;}\nvalueTotal=this._valueMax()-this._valueMin();valueMouse=this._valueMin()+percentMouse*valueTotal;return this._trimAlignValue(valueMouse);},_uiHash:function(index,value,values){var uiHash={handle:this.handles[index],handleIndex:index,value:value!==undefined?value:this.value()};if(this._hasMultipleValues()){uiHash.value=value!==undefined?value:this.values(index);uiHash.values=values||this.values();}\nreturn uiHash;},_hasMultipleValues:function(){return this.options.values&&this.options.values.length;},_start:function(event,index){return this._trigger(\"start\",event,this._uiHash(index));},_slide:function(event,index,newVal){var allowed,otherVal,currentValue=this.value(),newValues=this.values();if(this._hasMultipleValues()){otherVal=this.values(index?0:1);currentValue=this.values(index);if(this.options.values.length===2&&this.options.range===true){newVal=index===0?Math.min(otherVal,newVal):Math.max(otherVal,newVal);}\nnewValues[index]=newVal;}\nif(newVal===currentValue){return;}\nallowed=this._trigger(\"slide\",event,this._uiHash(index,newVal,newValues));if(allowed===false){return;}\nif(this._hasMultipleValues()){this.values(index,newVal);}else{this.value(newVal);}},_stop:function(event,index){this._trigger(\"stop\",event,this._uiHash(index));},_change:function(event,index){if(!this._keySliding&&!this._mouseSliding){this._lastChangedValue=index;this._trigger(\"change\",event,this._uiHash(index));}},value:function(newValue){if(arguments.length){this.options.value=this._trimAlignValue(newValue);this._refreshValue();this._change(null,0);return;}\nreturn this._value();},values:function(index,newValue){var vals,newValues,i;if(arguments.length>1){this.options.values[index]=this._trimAlignValue(newValue);this._refreshValue();this._change(null,index);return;}\nif(arguments.length){if(Array.isArray(arguments[0])){vals=this.options.values;newValues=arguments[0];for(i=0;i<vals.length;i+=1){vals[i]=this._trimAlignValue(newValues[i]);this._change(null,i);}\nthis._refreshValue();}else{if(this._hasMultipleValues()){return this._values(index);}else{return this.value();}}}else{return this._values();}},_setOption:function(key,value){var i,valsLength=0;if(key===\"range\"&&this.options.range===true){if(value===\"min\"){this.options.value=this._values(0);this.options.values=null;}else if(value===\"max\"){this.options.value=this._values(this.options.values.length-1);this.options.values=null;}}\nif(Array.isArray(this.options.values)){valsLength=this.options.values.length;}\nthis._super(key,value);switch(key){case\"orientation\":this._detectOrientation();this._removeClass(\"ui-slider-horizontal ui-slider-vertical\")._addClass(\"ui-slider-\"+this.orientation);this._refreshValue();if(this.options.range){this._refreshRange(value);}\nthis.handles.css(value===\"horizontal\"?\"bottom\":\"left\",\"\");break;case\"value\":this._animateOff=true;this._refreshValue();this._change(null,0);this._animateOff=false;break;case\"values\":this._animateOff=true;this._refreshValue();for(i=valsLength-1;i>=0;i--){this._change(null,i);}\nthis._animateOff=false;break;case\"step\":case\"min\":case\"max\":this._animateOff=true;this._calculateNewMax();this._refreshValue();this._animateOff=false;break;case\"range\":this._animateOff=true;this._refresh();this._animateOff=false;break;}},_setOptionDisabled:function(value){this._super(value);this._toggleClass(null,\"ui-state-disabled\",!!value);},_value:function(){var val=this.options.value;val=this._trimAlignValue(val);return val;},_values:function(index){var val,vals,i;if(arguments.length){val=this.options.values[index];val=this._trimAlignValue(val);return val;}else if(this._hasMultipleValues()){vals=this.options.values.slice();for(i=0;i<vals.length;i+=1){vals[i]=this._trimAlignValue(vals[i]);}\nreturn vals;}else{return[];}},_trimAlignValue:function(val){if(val<=this._valueMin()){return this._valueMin();}\nif(val>=this._valueMax()){return this._valueMax();}\nvar step=(this.options.step>0)?this.options.step:1,valModStep=(val-this._valueMin())%step,alignValue=val-valModStep;if(Math.abs(valModStep)*2>=step){alignValue+=(valModStep>0)?step:(-step);}\nreturn parseFloat(alignValue.toFixed(5));},_calculateNewMax:function(){var max=this.options.max,min=this._valueMin(),step=this.options.step,aboveMin=Math.round((max-min)/ step)*step;max=aboveMin+min;if(max>this.options.max){max-=step;}\nthis.max=parseFloat(max.toFixed(this._precision()));},_precision:function(){var precision=this._precisionOf(this.options.step);if(this.options.min!==null){precision=Math.max(precision,this._precisionOf(this.options.min));}\nreturn precision;},_precisionOf:function(num){var str=num.toString(),decimal=str.indexOf(\".\");return decimal===-1?0:str.length-decimal-1;},_valueMin:function(){return this.options.min;},_valueMax:function(){return this.max;},_refreshRange:function(orientation){if(orientation===\"vertical\"){this.range.css({\"width\":\"\",\"left\":\"\"});}\nif(orientation===\"horizontal\"){this.range.css({\"height\":\"\",\"bottom\":\"\"});}},_refreshValue:function(){var lastValPercent,valPercent,value,valueMin,valueMax,oRange=this.options.range,o=this.options,that=this,animate=(!this._animateOff)?o.animate:false,_set={};if(this._hasMultipleValues()){this.handles.each(function(i){valPercent=(that.values(i)-that._valueMin())/(that._valueMax()-\nthat._valueMin())*100;_set[that.orientation===\"horizontal\"?\"left\":\"bottom\"]=valPercent+\"%\";$(this).stop(1,1)[animate?\"animate\":\"css\"](_set,o.animate);if(that.options.range===true){if(that.orientation===\"horizontal\"){if(i===0){that.range.stop(1,1)[animate?\"animate\":\"css\"]({left:valPercent+\"%\"},o.animate);}\nif(i===1){that.range[animate?\"animate\":\"css\"]({width:(valPercent-lastValPercent)+\"%\"},{queue:false,duration:o.animate});}}else{if(i===0){that.range.stop(1,1)[animate?\"animate\":\"css\"]({bottom:(valPercent)+\"%\"},o.animate);}\nif(i===1){that.range[animate?\"animate\":\"css\"]({height:(valPercent-lastValPercent)+\"%\"},{queue:false,duration:o.animate});}}}\nlastValPercent=valPercent;});}else{value=this.value();valueMin=this._valueMin();valueMax=this._valueMax();valPercent=(valueMax!==valueMin)?(value-valueMin)/(valueMax-valueMin)*100:0;_set[this.orientation===\"horizontal\"?\"left\":\"bottom\"]=valPercent+\"%\";this.handle.stop(1,1)[animate?\"animate\":\"css\"](_set,o.animate);if(oRange===\"min\"&&this.orientation===\"horizontal\"){this.range.stop(1,1)[animate?\"animate\":\"css\"]({width:valPercent+\"%\"},o.animate);}\nif(oRange===\"max\"&&this.orientation===\"horizontal\"){this.range.stop(1,1)[animate?\"animate\":\"css\"]({width:(100-valPercent)+\"%\"},o.animate);}\nif(oRange===\"min\"&&this.orientation===\"vertical\"){this.range.stop(1,1)[animate?\"animate\":\"css\"]({height:valPercent+\"%\"},o.animate);}\nif(oRange===\"max\"&&this.orientation===\"vertical\"){this.range.stop(1,1)[animate?\"animate\":\"css\"]({height:(100-valPercent)+\"%\"},o.animate);}}},_handleEvents:{keydown:function(event){var allowed,curVal,newVal,step,index=$(event.target).data(\"ui-slider-handle-index\");switch(event.keyCode){case $.ui.keyCode.HOME:case $.ui.keyCode.END:case $.ui.keyCode.PAGE_UP:case $.ui.keyCode.PAGE_DOWN:case $.ui.keyCode.UP:case $.ui.keyCode.RIGHT:case $.ui.keyCode.DOWN:case $.ui.keyCode.LEFT:event.preventDefault();if(!this._keySliding){this._keySliding=true;this._addClass($(event.target),null,\"ui-state-active\");allowed=this._start(event,index);if(allowed===false){return;}}\nbreak;}\nstep=this.options.step;if(this._hasMultipleValues()){curVal=newVal=this.values(index);}else{curVal=newVal=this.value();}\nswitch(event.keyCode){case $.ui.keyCode.HOME:newVal=this._valueMin();break;case $.ui.keyCode.END:newVal=this._valueMax();break;case $.ui.keyCode.PAGE_UP:newVal=this._trimAlignValue(curVal+((this._valueMax()-this._valueMin())/ this.numPages));break;case $.ui.keyCode.PAGE_DOWN:newVal=this._trimAlignValue(curVal-((this._valueMax()-this._valueMin())/ this.numPages));break;case $.ui.keyCode.UP:case $.ui.keyCode.RIGHT:if(curVal===this._valueMax()){return;}\nnewVal=this._trimAlignValue(curVal+step);break;case $.ui.keyCode.DOWN:case $.ui.keyCode.LEFT:if(curVal===this._valueMin()){return;}\nnewVal=this._trimAlignValue(curVal-step);break;}\nthis._slide(event,index,newVal);},keyup:function(event){var index=$(event.target).data(\"ui-slider-handle-index\");if(this._keySliding){this._keySliding=false;this._stop(event,index);this._change(event,index);this._removeClass($(event.target),null,\"ui-state-active\");}}}});\n/*!\n * jQuery UI Sortable 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\nvar widgetsSortable=$.widget(\"ui.sortable\",$.ui.mouse,{version:\"1.13.2\",widgetEventPrefix:\"sort\",ready:false,options:{appendTo:\"parent\",axis:false,connectWith:false,containment:false,cursor:\"auto\",cursorAt:false,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:\"original\",items:\"> *\",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:\"default\",tolerance:\"intersect\",zIndex:1000,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(x,reference,size){return(x>=reference)&&(x<(reference+size));},_isFloating:function(item){return(/left|right/).test(item.css(\"float\"))||(/inline|table-cell/).test(item.css(\"display\"));},_create:function(){this.containerCache={};this._addClass(\"ui-sortable\");this.refresh();this.offset=this.element.offset();this._mouseInit();this._setHandleClassName();this.ready=true;},_setOption:function(key,value){this._super(key,value);if(key===\"handle\"){this._setHandleClassName();}},_setHandleClassName:function(){var that=this;this._removeClass(this.element.find(\".ui-sortable-handle\"),\"ui-sortable-handle\");$.each(this.items,function(){that._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,\"ui-sortable-handle\");});},_destroy:function(){this._mouseDestroy();for(var i=this.items.length-1;i>=0;i--){this.items[i].item.removeData(this.widgetName+\"-item\");}\nreturn this;},_mouseCapture:function(event,overrideHandle){var currentItem=null,validHandle=false,that=this;if(this.reverting){return false;}\nif(this.options.disabled||this.options.type===\"static\"){return false;}\nthis._refreshItems(event);$(event.target).parents().each(function(){if($.data(this,that.widgetName+\"-item\")===that){currentItem=$(this);return false;}});if($.data(event.target,that.widgetName+\"-item\")===that){currentItem=$(event.target);}\nif(!currentItem){return false;}\nif(this.options.handle&&!overrideHandle){$(this.options.handle,currentItem).find(\"*\").addBack().each(function(){if(this===event.target){validHandle=true;}});if(!validHandle){return false;}}\nthis.currentItem=currentItem;this._removeCurrentsFromItems();return true;},_mouseStart:function(event,overrideHandle,noActivation){var i,body,o=this.options;this.currentContainer=this;this.refreshPositions();this.appendTo=$(o.appendTo!==\"parent\"?o.appendTo:this.currentItem.parent());this.helper=this._createHelper(event);this._cacheHelperProportions();this._cacheMargins();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};$.extend(this.offset,{click:{left:event.pageX-this.offset.left,top:event.pageY-this.offset.top},relative:this._getRelativeOffset()});this.helper.css(\"position\",\"absolute\");this.cssPosition=this.helper.css(\"position\");if(o.cursorAt){this._adjustOffsetFromHelper(o.cursorAt);}\nthis.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};if(this.helper[0]!==this.currentItem[0]){this.currentItem.hide();}\nthis._createPlaceholder();this.scrollParent=this.placeholder.scrollParent();$.extend(this.offset,{parent:this._getParentOffset()});if(o.containment){this._setContainment();}\nif(o.cursor&&o.cursor!==\"auto\"){body=this.document.find(\"body\");this.storedCursor=body.css(\"cursor\");body.css(\"cursor\",o.cursor);this.storedStylesheet=$(\"<style>*{ cursor: \"+o.cursor+\" !important; }</style>\").appendTo(body);}\nif(o.zIndex){if(this.helper.css(\"zIndex\")){this._storedZIndex=this.helper.css(\"zIndex\");}\nthis.helper.css(\"zIndex\",o.zIndex);}\nif(o.opacity){if(this.helper.css(\"opacity\")){this._storedOpacity=this.helper.css(\"opacity\");}\nthis.helper.css(\"opacity\",o.opacity);}\nif(this.scrollParent[0]!==this.document[0]&&this.scrollParent[0].tagName!==\"HTML\"){this.overflowOffset=this.scrollParent.offset();}\nthis._trigger(\"start\",event,this._uiHash());if(!this._preserveHelperProportions){this._cacheHelperProportions();}\nif(!noActivation){for(i=this.containers.length-1;i>=0;i--){this.containers[i]._trigger(\"activate\",event,this._uiHash(this));}}\nif($.ui.ddmanager){$.ui.ddmanager.current=this;}\nif($.ui.ddmanager&&!o.dropBehaviour){$.ui.ddmanager.prepareOffsets(this,event);}\nthis.dragging=true;this._addClass(this.helper,\"ui-sortable-helper\");if(!this.helper.parent().is(this.appendTo)){this.helper.detach().appendTo(this.appendTo);this.offset.parent=this._getParentOffset();}\nthis.position=this.originalPosition=this._generatePosition(event);this.originalPageX=event.pageX;this.originalPageY=event.pageY;this.lastPositionAbs=this.positionAbs=this._convertPositionTo(\"absolute\");this._mouseDrag(event);return true;},_scroll:function(event){var o=this.options,scrolled=false;if(this.scrollParent[0]!==this.document[0]&&this.scrollParent[0].tagName!==\"HTML\"){if((this.overflowOffset.top+this.scrollParent[0].offsetHeight)-\nevent.pageY<o.scrollSensitivity){this.scrollParent[0].scrollTop=scrolled=this.scrollParent[0].scrollTop+o.scrollSpeed;}else if(event.pageY-this.overflowOffset.top<o.scrollSensitivity){this.scrollParent[0].scrollTop=scrolled=this.scrollParent[0].scrollTop-o.scrollSpeed;}\nif((this.overflowOffset.left+this.scrollParent[0].offsetWidth)-\nevent.pageX<o.scrollSensitivity){this.scrollParent[0].scrollLeft=scrolled=this.scrollParent[0].scrollLeft+o.scrollSpeed;}else if(event.pageX-this.overflowOffset.left<o.scrollSensitivity){this.scrollParent[0].scrollLeft=scrolled=this.scrollParent[0].scrollLeft-o.scrollSpeed;}}else{if(event.pageY-this.document.scrollTop()<o.scrollSensitivity){scrolled=this.document.scrollTop(this.document.scrollTop()-o.scrollSpeed);}else if(this.window.height()-(event.pageY-this.document.scrollTop())<o.scrollSensitivity){scrolled=this.document.scrollTop(this.document.scrollTop()+o.scrollSpeed);}\nif(event.pageX-this.document.scrollLeft()<o.scrollSensitivity){scrolled=this.document.scrollLeft(this.document.scrollLeft()-o.scrollSpeed);}else if(this.window.width()-(event.pageX-this.document.scrollLeft())<o.scrollSensitivity){scrolled=this.document.scrollLeft(this.document.scrollLeft()+o.scrollSpeed);}}\nreturn scrolled;},_mouseDrag:function(event){var i,item,itemElement,intersection,o=this.options;this.position=this._generatePosition(event);this.positionAbs=this._convertPositionTo(\"absolute\");if(!this.options.axis||this.options.axis!==\"y\"){this.helper[0].style.left=this.position.left+\"px\";}\nif(!this.options.axis||this.options.axis!==\"x\"){this.helper[0].style.top=this.position.top+\"px\";}\nif(o.scroll){if(this._scroll(event)!==false){this._refreshItemPositions(true);if($.ui.ddmanager&&!o.dropBehaviour){$.ui.ddmanager.prepareOffsets(this,event);}}}\nthis.dragDirection={vertical:this._getDragVerticalDirection(),horizontal:this._getDragHorizontalDirection()};for(i=this.items.length-1;i>=0;i--){item=this.items[i];itemElement=item.item[0];intersection=this._intersectsWithPointer(item);if(!intersection){continue;}\nif(item.instance!==this.currentContainer){continue;}\nif(itemElement!==this.currentItem[0]&&this.placeholder[intersection===1?\"next\":\"prev\"]()[0]!==itemElement&&!$.contains(this.placeholder[0],itemElement)&&(this.options.type===\"semi-dynamic\"?!$.contains(this.element[0],itemElement):true)){this.direction=intersection===1?\"down\":\"up\";if(this.options.tolerance===\"pointer\"||this._intersectsWithSides(item)){this._rearrange(event,item);}else{break;}\nthis._trigger(\"change\",event,this._uiHash());break;}}\nthis._contactContainers(event);if($.ui.ddmanager){$.ui.ddmanager.drag(this,event);}\nthis._trigger(\"sort\",event,this._uiHash());this.lastPositionAbs=this.positionAbs;return false;},_mouseStop:function(event,noPropagation){if(!event){return;}\nif($.ui.ddmanager&&!this.options.dropBehaviour){$.ui.ddmanager.drop(this,event);}\nif(this.options.revert){var that=this,cur=this.placeholder.offset(),axis=this.options.axis,animation={};if(!axis||axis===\"x\"){animation.left=cur.left-this.offset.parent.left-this.margins.left+\n(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft);}\nif(!axis||axis===\"y\"){animation.top=cur.top-this.offset.parent.top-this.margins.top+\n(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop);}\nthis.reverting=true;$(this.helper).animate(animation,parseInt(this.options.revert,10)||500,function(){that._clear(event);});}else{this._clear(event,noPropagation);}\nreturn false;},cancel:function(){if(this.dragging){this._mouseUp(new $.Event(\"mouseup\",{target:null}));if(this.options.helper===\"original\"){this.currentItem.css(this._storedCSS);this._removeClass(this.currentItem,\"ui-sortable-helper\");}else{this.currentItem.show();}\nfor(var i=this.containers.length-1;i>=0;i--){this.containers[i]._trigger(\"deactivate\",null,this._uiHash(this));if(this.containers[i].containerCache.over){this.containers[i]._trigger(\"out\",null,this._uiHash(this));this.containers[i].containerCache.over=0;}}}\nif(this.placeholder){if(this.placeholder[0].parentNode){this.placeholder[0].parentNode.removeChild(this.placeholder[0]);}\nif(this.options.helper!==\"original\"&&this.helper&&this.helper[0].parentNode){this.helper.remove();}\n$.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});if(this.domPosition.prev){$(this.domPosition.prev).after(this.currentItem);}else{$(this.domPosition.parent).prepend(this.currentItem);}}\nreturn this;},serialize:function(o){var items=this._getItemsAsjQuery(o&&o.connected),str=[];o=o||{};$(items).each(function(){var res=($(o.item||this).attr(o.attribute||\"id\")||\"\").match(o.expression||(/(.+)[\\-=_](.+)/));if(res){str.push((o.key||res[1]+\"[]\")+\"=\"+(o.key&&o.expression?res[1]:res[2]));}});if(!str.length&&o.key){str.push(o.key+\"=\");}\nreturn str.join(\"&\");},toArray:function(o){var items=this._getItemsAsjQuery(o&&o.connected),ret=[];o=o||{};items.each(function(){ret.push($(o.item||this).attr(o.attribute||\"id\")||\"\");});return ret;},_intersectsWith:function(item){var x1=this.positionAbs.left,x2=x1+this.helperProportions.width,y1=this.positionAbs.top,y2=y1+this.helperProportions.height,l=item.left,r=l+item.width,t=item.top,b=t+item.height,dyClick=this.offset.click.top,dxClick=this.offset.click.left,isOverElementHeight=(this.options.axis===\"x\")||((y1+dyClick)>t&&(y1+dyClick)<b),isOverElementWidth=(this.options.axis===\"y\")||((x1+dxClick)>l&&(x1+dxClick)<r),isOverElement=isOverElementHeight&&isOverElementWidth;if(this.options.tolerance===\"pointer\"||this.options.forcePointerForContainers||(this.options.tolerance!==\"pointer\"&&this.helperProportions[this.floating?\"width\":\"height\"]>item[this.floating?\"width\":\"height\"])){return isOverElement;}else{return(l<x1+(this.helperProportions.width / 2)&&x2-(this.helperProportions.width / 2)<r&&t<y1+(this.helperProportions.height / 2)&&y2-(this.helperProportions.height / 2)<b);}},_intersectsWithPointer:function(item){var verticalDirection,horizontalDirection,isOverElementHeight=(this.options.axis===\"x\")||this._isOverAxis(this.positionAbs.top+this.offset.click.top,item.top,item.height),isOverElementWidth=(this.options.axis===\"y\")||this._isOverAxis(this.positionAbs.left+this.offset.click.left,item.left,item.width),isOverElement=isOverElementHeight&&isOverElementWidth;if(!isOverElement){return false;}\nverticalDirection=this.dragDirection.vertical;horizontalDirection=this.dragDirection.horizontal;return this.floating?((horizontalDirection===\"right\"||verticalDirection===\"down\")?2:1):(verticalDirection&&(verticalDirection===\"down\"?2:1));},_intersectsWithSides:function(item){var isOverBottomHalf=this._isOverAxis(this.positionAbs.top+\nthis.offset.click.top,item.top+(item.height / 2),item.height),isOverRightHalf=this._isOverAxis(this.positionAbs.left+\nthis.offset.click.left,item.left+(item.width / 2),item.width),verticalDirection=this.dragDirection.vertical,horizontalDirection=this.dragDirection.horizontal;if(this.floating&&horizontalDirection){return((horizontalDirection===\"right\"&&isOverRightHalf)||(horizontalDirection===\"left\"&&!isOverRightHalf));}else{return verticalDirection&&((verticalDirection===\"down\"&&isOverBottomHalf)||(verticalDirection===\"up\"&&!isOverBottomHalf));}},_getDragVerticalDirection:function(){var delta=this.positionAbs.top-this.lastPositionAbs.top;return delta!==0&&(delta>0?\"down\":\"up\");},_getDragHorizontalDirection:function(){var delta=this.positionAbs.left-this.lastPositionAbs.left;return delta!==0&&(delta>0?\"right\":\"left\");},refresh:function(event){this._refreshItems(event);this._setHandleClassName();this.refreshPositions();return this;},_connectWith:function(){var options=this.options;return options.connectWith.constructor===String?[options.connectWith]:options.connectWith;},_getItemsAsjQuery:function(connected){var i,j,cur,inst,items=[],queries=[],connectWith=this._connectWith();if(connectWith&&connected){for(i=connectWith.length-1;i>=0;i--){cur=$(connectWith[i],this.document[0]);for(j=cur.length-1;j>=0;j--){inst=$.data(cur[j],this.widgetFullName);if(inst&&inst!==this&&!inst.options.disabled){queries.push([typeof inst.options.items===\"function\"?inst.options.items.call(inst.element):$(inst.options.items,inst.element).not(\".ui-sortable-helper\").not(\".ui-sortable-placeholder\"),inst]);}}}}\nqueries.push([typeof this.options.items===\"function\"?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):$(this.options.items,this.element).not(\".ui-sortable-helper\").not(\".ui-sortable-placeholder\"),this]);function addItems(){items.push(this);}\nfor(i=queries.length-1;i>=0;i--){queries[i][0].each(addItems);}\nreturn $(items);},_removeCurrentsFromItems:function(){var list=this.currentItem.find(\":data(\"+this.widgetName+\"-item)\");this.items=$.grep(this.items,function(item){for(var j=0;j<list.length;j++){if(list[j]===item.item[0]){return false;}}\nreturn true;});},_refreshItems:function(event){this.items=[];this.containers=[this];var i,j,cur,inst,targetData,_queries,item,queriesLength,items=this.items,queries=[[typeof this.options.items===\"function\"?this.options.items.call(this.element[0],event,{item:this.currentItem}):$(this.options.items,this.element),this]],connectWith=this._connectWith();if(connectWith&&this.ready){for(i=connectWith.length-1;i>=0;i--){cur=$(connectWith[i],this.document[0]);for(j=cur.length-1;j>=0;j--){inst=$.data(cur[j],this.widgetFullName);if(inst&&inst!==this&&!inst.options.disabled){queries.push([typeof inst.options.items===\"function\"?inst.options.items.call(inst.element[0],event,{item:this.currentItem}):$(inst.options.items,inst.element),inst]);this.containers.push(inst);}}}}\nfor(i=queries.length-1;i>=0;i--){targetData=queries[i][1];_queries=queries[i][0];for(j=0,queriesLength=_queries.length;j<queriesLength;j++){item=$(_queries[j]);item.data(this.widgetName+\"-item\",targetData);items.push({item:item,instance:targetData,width:0,height:0,left:0,top:0});}}},_refreshItemPositions:function(fast){var i,item,t,p;for(i=this.items.length-1;i>=0;i--){item=this.items[i];if(this.currentContainer&&item.instance!==this.currentContainer&&item.item[0]!==this.currentItem[0]){continue;}\nt=this.options.toleranceElement?$(this.options.toleranceElement,item.item):item.item;if(!fast){item.width=t.outerWidth();item.height=t.outerHeight();}\np=t.offset();item.left=p.left;item.top=p.top;}},refreshPositions:function(fast){this.floating=this.items.length?this.options.axis===\"x\"||this._isFloating(this.items[0].item):false;if(this.offsetParent&&this.helper){this.offset.parent=this._getParentOffset();}\nthis._refreshItemPositions(fast);var i,p;if(this.options.custom&&this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this);}else{for(i=this.containers.length-1;i>=0;i--){p=this.containers[i].element.offset();this.containers[i].containerCache.left=p.left;this.containers[i].containerCache.top=p.top;this.containers[i].containerCache.width=this.containers[i].element.outerWidth();this.containers[i].containerCache.height=this.containers[i].element.outerHeight();}}\nreturn this;},_createPlaceholder:function(that){that=that||this;var className,nodeName,o=that.options;if(!o.placeholder||o.placeholder.constructor===String){className=o.placeholder;nodeName=that.currentItem[0].nodeName.toLowerCase();o.placeholder={element:function(){var element=$(\"<\"+nodeName+\">\",that.document[0]);that._addClass(element,\"ui-sortable-placeholder\",className||that.currentItem[0].className)._removeClass(element,\"ui-sortable-helper\");if(nodeName===\"tbody\"){that._createTrPlaceholder(that.currentItem.find(\"tr\").eq(0),$(\"<tr>\",that.document[0]).appendTo(element));}else if(nodeName===\"tr\"){that._createTrPlaceholder(that.currentItem,element);}else if(nodeName===\"img\"){element.attr(\"src\",that.currentItem.attr(\"src\"));}\nif(!className){element.css(\"visibility\",\"hidden\");}\nreturn element;},update:function(container,p){if(className&&!o.forcePlaceholderSize){return;}\nif(!p.height()||(o.forcePlaceholderSize&&(nodeName===\"tbody\"||nodeName===\"tr\"))){p.height(that.currentItem.innerHeight()-\nparseInt(that.currentItem.css(\"paddingTop\")||0,10)-\nparseInt(that.currentItem.css(\"paddingBottom\")||0,10));}\nif(!p.width()){p.width(that.currentItem.innerWidth()-\nparseInt(that.currentItem.css(\"paddingLeft\")||0,10)-\nparseInt(that.currentItem.css(\"paddingRight\")||0,10));}}};}\nthat.placeholder=$(o.placeholder.element.call(that.element,that.currentItem));that.currentItem.after(that.placeholder);o.placeholder.update(that,that.placeholder);},_createTrPlaceholder:function(sourceTr,targetTr){var that=this;sourceTr.children().each(function(){$(\"<td>&#160;</td>\",that.document[0]).attr(\"colspan\",$(this).attr(\"colspan\")||1).appendTo(targetTr);});},_contactContainers:function(event){var i,j,dist,itemWithLeastDistance,posProperty,sizeProperty,cur,nearBottom,floating,axis,innermostContainer=null,innermostIndex=null;for(i=this.containers.length-1;i>=0;i--){if($.contains(this.currentItem[0],this.containers[i].element[0])){continue;}\nif(this._intersectsWith(this.containers[i].containerCache)){if(innermostContainer&&$.contains(this.containers[i].element[0],innermostContainer.element[0])){continue;}\ninnermostContainer=this.containers[i];innermostIndex=i;}else{if(this.containers[i].containerCache.over){this.containers[i]._trigger(\"out\",event,this._uiHash(this));this.containers[i].containerCache.over=0;}}}\nif(!innermostContainer){return;}\nif(this.containers.length===1){if(!this.containers[innermostIndex].containerCache.over){this.containers[innermostIndex]._trigger(\"over\",event,this._uiHash(this));this.containers[innermostIndex].containerCache.over=1;}}else{dist=10000;itemWithLeastDistance=null;floating=innermostContainer.floating||this._isFloating(this.currentItem);posProperty=floating?\"left\":\"top\";sizeProperty=floating?\"width\":\"height\";axis=floating?\"pageX\":\"pageY\";for(j=this.items.length-1;j>=0;j--){if(!$.contains(this.containers[innermostIndex].element[0],this.items[j].item[0])){continue;}\nif(this.items[j].item[0]===this.currentItem[0]){continue;}\ncur=this.items[j].item.offset()[posProperty];nearBottom=false;if(event[axis]-cur>this.items[j][sizeProperty]/ 2){nearBottom=true;}\nif(Math.abs(event[axis]-cur)<dist){dist=Math.abs(event[axis]-cur);itemWithLeastDistance=this.items[j];this.direction=nearBottom?\"up\":\"down\";}}\nif(!itemWithLeastDistance&&!this.options.dropOnEmpty){return;}\nif(this.currentContainer===this.containers[innermostIndex]){if(!this.currentContainer.containerCache.over){this.containers[innermostIndex]._trigger(\"over\",event,this._uiHash());this.currentContainer.containerCache.over=1;}\nreturn;}\nif(itemWithLeastDistance){this._rearrange(event,itemWithLeastDistance,null,true);}else{this._rearrange(event,null,this.containers[innermostIndex].element,true);}\nthis._trigger(\"change\",event,this._uiHash());this.containers[innermostIndex]._trigger(\"change\",event,this._uiHash(this));this.currentContainer=this.containers[innermostIndex];this.options.placeholder.update(this.currentContainer,this.placeholder);this.scrollParent=this.placeholder.scrollParent();if(this.scrollParent[0]!==this.document[0]&&this.scrollParent[0].tagName!==\"HTML\"){this.overflowOffset=this.scrollParent.offset();}\nthis.containers[innermostIndex]._trigger(\"over\",event,this._uiHash(this));this.containers[innermostIndex].containerCache.over=1;}},_createHelper:function(event){var o=this.options,helper=typeof o.helper===\"function\"?$(o.helper.apply(this.element[0],[event,this.currentItem])):(o.helper===\"clone\"?this.currentItem.clone():this.currentItem);if(!helper.parents(\"body\").length){this.appendTo[0].appendChild(helper[0]);}\nif(helper[0]===this.currentItem[0]){this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css(\"position\"),top:this.currentItem.css(\"top\"),left:this.currentItem.css(\"left\")};}\nif(!helper[0].style.width||o.forceHelperSize){helper.width(this.currentItem.width());}\nif(!helper[0].style.height||o.forceHelperSize){helper.height(this.currentItem.height());}\nreturn helper;},_adjustOffsetFromHelper:function(obj){if(typeof obj===\"string\"){obj=obj.split(\" \");}\nif(Array.isArray(obj)){obj={left:+obj[0],top:+obj[1]||0};}\nif(\"left\"in obj){this.offset.click.left=obj.left+this.margins.left;}\nif(\"right\"in obj){this.offset.click.left=this.helperProportions.width-obj.right+this.margins.left;}\nif(\"top\"in obj){this.offset.click.top=obj.top+this.margins.top;}\nif(\"bottom\"in obj){this.offset.click.top=this.helperProportions.height-obj.bottom+this.margins.top;}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var po=this.offsetParent.offset();if(this.cssPosition===\"absolute\"&&this.scrollParent[0]!==this.document[0]&&$.contains(this.scrollParent[0],this.offsetParent[0])){po.left+=this.scrollParent.scrollLeft();po.top+=this.scrollParent.scrollTop();}\nif(this.offsetParent[0]===this.document[0].body||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()===\"html\"&&$.ui.ie)){po={top:0,left:0};}\nreturn{top:po.top+(parseInt(this.offsetParent.css(\"borderTopWidth\"),10)||0),left:po.left+(parseInt(this.offsetParent.css(\"borderLeftWidth\"),10)||0)};},_getRelativeOffset:function(){if(this.cssPosition===\"relative\"){var p=this.currentItem.position();return{top:p.top-(parseInt(this.helper.css(\"top\"),10)||0)+\nthis.scrollParent.scrollTop(),left:p.left-(parseInt(this.helper.css(\"left\"),10)||0)+\nthis.scrollParent.scrollLeft()};}else{return{top:0,left:0};}},_cacheMargins:function(){this.margins={left:(parseInt(this.currentItem.css(\"marginLeft\"),10)||0),top:(parseInt(this.currentItem.css(\"marginTop\"),10)||0)};},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()};},_setContainment:function(){var ce,co,over,o=this.options;if(o.containment===\"parent\"){o.containment=this.helper[0].parentNode;}\nif(o.containment===\"document\"||o.containment===\"window\"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,o.containment===\"document\"?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,(o.containment===\"document\"?(this.document.height()||document.body.parentNode.scrollHeight):this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];}\nif(!(/^(document|window|parent)$/).test(o.containment)){ce=$(o.containment)[0];co=$(o.containment).offset();over=($(ce).css(\"overflow\")!==\"hidden\");this.containment=[co.left+(parseInt($(ce).css(\"borderLeftWidth\"),10)||0)+\n(parseInt($(ce).css(\"paddingLeft\"),10)||0)-this.margins.left,co.top+(parseInt($(ce).css(\"borderTopWidth\"),10)||0)+\n(parseInt($(ce).css(\"paddingTop\"),10)||0)-this.margins.top,co.left+(over?Math.max(ce.scrollWidth,ce.offsetWidth):ce.offsetWidth)-\n(parseInt($(ce).css(\"borderLeftWidth\"),10)||0)-\n(parseInt($(ce).css(\"paddingRight\"),10)||0)-\nthis.helperProportions.width-this.margins.left,co.top+(over?Math.max(ce.scrollHeight,ce.offsetHeight):ce.offsetHeight)-\n(parseInt($(ce).css(\"borderTopWidth\"),10)||0)-\n(parseInt($(ce).css(\"paddingBottom\"),10)||0)-\nthis.helperProportions.height-this.margins.top];}},_convertPositionTo:function(d,pos){if(!pos){pos=this.position;}\nvar mod=d===\"absolute\"?1:-1,scroll=this.cssPosition===\"absolute\"&&!(this.scrollParent[0]!==this.document[0]&&$.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,scrollIsRootNode=(/(html|body)/i).test(scroll[0].tagName);return{top:(pos.top+\nthis.offset.relative.top*mod+\nthis.offset.parent.top*mod-\n((this.cssPosition===\"fixed\"?-this.scrollParent.scrollTop():(scrollIsRootNode?0:scroll.scrollTop()))*mod)),left:(pos.left+\nthis.offset.relative.left*mod+\nthis.offset.parent.left*mod-\n((this.cssPosition===\"fixed\"?-this.scrollParent.scrollLeft():scrollIsRootNode?0:scroll.scrollLeft())*mod))};},_generatePosition:function(event){var top,left,o=this.options,pageX=event.pageX,pageY=event.pageY,scroll=this.cssPosition===\"absolute\"&&!(this.scrollParent[0]!==this.document[0]&&$.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,scrollIsRootNode=(/(html|body)/i).test(scroll[0].tagName);if(this.cssPosition===\"relative\"&&!(this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0])){this.offset.relative=this._getRelativeOffset();}\nif(this.originalPosition){if(this.containment){if(event.pageX-this.offset.click.left<this.containment[0]){pageX=this.containment[0]+this.offset.click.left;}\nif(event.pageY-this.offset.click.top<this.containment[1]){pageY=this.containment[1]+this.offset.click.top;}\nif(event.pageX-this.offset.click.left>this.containment[2]){pageX=this.containment[2]+this.offset.click.left;}\nif(event.pageY-this.offset.click.top>this.containment[3]){pageY=this.containment[3]+this.offset.click.top;}}\nif(o.grid){top=this.originalPageY+Math.round((pageY-this.originalPageY)/\no.grid[1])*o.grid[1];pageY=this.containment?((top-this.offset.click.top>=this.containment[1]&&top-this.offset.click.top<=this.containment[3])?top:((top-this.offset.click.top>=this.containment[1])?top-o.grid[1]:top+o.grid[1])):top;left=this.originalPageX+Math.round((pageX-this.originalPageX)/\no.grid[0])*o.grid[0];pageX=this.containment?((left-this.offset.click.left>=this.containment[0]&&left-this.offset.click.left<=this.containment[2])?left:((left-this.offset.click.left>=this.containment[0])?left-o.grid[0]:left+o.grid[0])):left;}}\nreturn{top:(pageY-\nthis.offset.click.top-\nthis.offset.relative.top-\nthis.offset.parent.top+\n((this.cssPosition===\"fixed\"?-this.scrollParent.scrollTop():(scrollIsRootNode?0:scroll.scrollTop())))),left:(pageX-\nthis.offset.click.left-\nthis.offset.relative.left-\nthis.offset.parent.left+\n((this.cssPosition===\"fixed\"?-this.scrollParent.scrollLeft():scrollIsRootNode?0:scroll.scrollLeft())))};},_rearrange:function(event,i,a,hardRefresh){if(a){a[0].appendChild(this.placeholder[0]);}else{i.item[0].parentNode.insertBefore(this.placeholder[0],(this.direction===\"down\"?i.item[0]:i.item[0].nextSibling));}\nthis.counter=this.counter?++this.counter:1;var counter=this.counter;this._delay(function(){if(counter===this.counter){this.refreshPositions(!hardRefresh);}});},_clear:function(event,noPropagation){this.reverting=false;var i,delayedTriggers=[];if(!this._noFinalSort&&this.currentItem.parent().length){this.placeholder.before(this.currentItem);}\nthis._noFinalSort=null;if(this.helper[0]===this.currentItem[0]){for(i in this._storedCSS){if(this._storedCSS[i]===\"auto\"||this._storedCSS[i]===\"static\"){this._storedCSS[i]=\"\";}}\nthis.currentItem.css(this._storedCSS);this._removeClass(this.currentItem,\"ui-sortable-helper\");}else{this.currentItem.show();}\nif(this.fromOutside&&!noPropagation){delayedTriggers.push(function(event){this._trigger(\"receive\",event,this._uiHash(this.fromOutside));});}\nif((this.fromOutside||this.domPosition.prev!==this.currentItem.prev().not(\".ui-sortable-helper\")[0]||this.domPosition.parent!==this.currentItem.parent()[0])&&!noPropagation){delayedTriggers.push(function(event){this._trigger(\"update\",event,this._uiHash());});}\nif(this!==this.currentContainer){if(!noPropagation){delayedTriggers.push(function(event){this._trigger(\"remove\",event,this._uiHash());});delayedTriggers.push((function(c){return function(event){c._trigger(\"receive\",event,this._uiHash(this));};}).call(this,this.currentContainer));delayedTriggers.push((function(c){return function(event){c._trigger(\"update\",event,this._uiHash(this));};}).call(this,this.currentContainer));}}\nfunction delayEvent(type,instance,container){return function(event){container._trigger(type,event,instance._uiHash(instance));};}\nfor(i=this.containers.length-1;i>=0;i--){if(!noPropagation){delayedTriggers.push(delayEvent(\"deactivate\",this,this.containers[i]));}\nif(this.containers[i].containerCache.over){delayedTriggers.push(delayEvent(\"out\",this,this.containers[i]));this.containers[i].containerCache.over=0;}}\nif(this.storedCursor){this.document.find(\"body\").css(\"cursor\",this.storedCursor);this.storedStylesheet.remove();}\nif(this._storedOpacity){this.helper.css(\"opacity\",this._storedOpacity);}\nif(this._storedZIndex){this.helper.css(\"zIndex\",this._storedZIndex===\"auto\"?\"\":this._storedZIndex);}\nthis.dragging=false;if(!noPropagation){this._trigger(\"beforeStop\",event,this._uiHash());}\nthis.placeholder[0].parentNode.removeChild(this.placeholder[0]);if(!this.cancelHelperRemoval){if(this.helper[0]!==this.currentItem[0]){this.helper.remove();}\nthis.helper=null;}\nif(!noPropagation){for(i=0;i<delayedTriggers.length;i++){delayedTriggers[i].call(this,event);}\nthis._trigger(\"stop\",event,this._uiHash());}\nthis.fromOutside=false;return!this.cancelHelperRemoval;},_trigger:function(){if($.Widget.prototype._trigger.apply(this,arguments)===false){this.cancel();}},_uiHash:function(_inst){var inst=_inst||this;return{helper:inst.helper,placeholder:inst.placeholder||$([]),position:inst.position,originalPosition:inst.originalPosition,offset:inst.positionAbs,item:inst.currentItem,sender:_inst?_inst.element:null};}});\n/*!\n * jQuery UI Spinner 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\nfunction spinnerModifier(fn){return function(){var previous=this.element.val();fn.apply(this,arguments);this._refresh();if(previous!==this.element.val()){this._trigger(\"change\");}};}\n$.widget(\"ui.spinner\",{version:\"1.13.2\",defaultElement:\"<input>\",widgetEventPrefix:\"spin\",options:{classes:{\"ui-spinner\":\"ui-corner-all\",\"ui-spinner-down\":\"ui-corner-br\",\"ui-spinner-up\":\"ui-corner-tr\"},culture:null,icons:{down:\"ui-icon-triangle-1-s\",up:\"ui-icon-triangle-1-n\"},incremental:true,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption(\"max\",this.options.max);this._setOption(\"min\",this.options.min);this._setOption(\"step\",this.options.step);if(this.value()!==\"\"){this._value(this.element.val(),true);}\nthis._draw();this._on(this._events);this._refresh();this._on(this.window,{beforeunload:function(){this.element.removeAttr(\"autocomplete\");}});},_getCreateOptions:function(){var options=this._super();var element=this.element;$.each([\"min\",\"max\",\"step\"],function(i,option){var value=element.attr(option);if(value!=null&&value.length){options[option]=value;}});return options;},_events:{keydown:function(event){if(this._start(event)&&this._keydown(event)){event.preventDefault();}},keyup:\"_stop\",focus:function(){this.previous=this.element.val();},blur:function(event){if(this.cancelBlur){delete this.cancelBlur;return;}\nthis._stop();this._refresh();if(this.previous!==this.element.val()){this._trigger(\"change\",event);}},mousewheel:function(event,delta){var activeElement=$.ui.safeActiveElement(this.document[0]);var isActive=this.element[0]===activeElement;if(!isActive||!delta){return;}\nif(!this.spinning&&!this._start(event)){return false;}\nthis._spin((delta>0?1:-1)*this.options.step,event);clearTimeout(this.mousewheelTimer);this.mousewheelTimer=this._delay(function(){if(this.spinning){this._stop(event);}},100);event.preventDefault();},\"mousedown .ui-spinner-button\":function(event){var previous;previous=this.element[0]===$.ui.safeActiveElement(this.document[0])?this.previous:this.element.val();function checkFocus(){var isActive=this.element[0]===$.ui.safeActiveElement(this.document[0]);if(!isActive){this.element.trigger(\"focus\");this.previous=previous;this._delay(function(){this.previous=previous;});}}\nevent.preventDefault();checkFocus.call(this);this.cancelBlur=true;this._delay(function(){delete this.cancelBlur;checkFocus.call(this);});if(this._start(event)===false){return;}\nthis._repeat(null,$(event.currentTarget).hasClass(\"ui-spinner-up\")?1:-1,event);},\"mouseup .ui-spinner-button\":\"_stop\",\"mouseenter .ui-spinner-button\":function(event){if(!$(event.currentTarget).hasClass(\"ui-state-active\")){return;}\nif(this._start(event)===false){return false;}\nthis._repeat(null,$(event.currentTarget).hasClass(\"ui-spinner-up\")?1:-1,event);},\"mouseleave .ui-spinner-button\":\"_stop\"},_enhance:function(){this.uiSpinner=this.element.attr(\"autocomplete\",\"off\").wrap(\"<span>\").parent().append(\"<a></a><a></a>\");},_draw:function(){this._enhance();this._addClass(this.uiSpinner,\"ui-spinner\",\"ui-widget ui-widget-content\");this._addClass(\"ui-spinner-input\");this.element.attr(\"role\",\"spinbutton\");this.buttons=this.uiSpinner.children(\"a\").attr(\"tabIndex\",-1).attr(\"aria-hidden\",true).button({classes:{\"ui-button\":\"\"}});this._removeClass(this.buttons,\"ui-corner-all\");this._addClass(this.buttons.first(),\"ui-spinner-button ui-spinner-up\");this._addClass(this.buttons.last(),\"ui-spinner-button ui-spinner-down\");this.buttons.first().button({\"icon\":this.options.icons.up,\"showLabel\":false});this.buttons.last().button({\"icon\":this.options.icons.down,\"showLabel\":false});if(this.buttons.height()>Math.ceil(this.uiSpinner.height()*0.5)&&this.uiSpinner.height()>0){this.uiSpinner.height(this.uiSpinner.height());}},_keydown:function(event){var options=this.options,keyCode=$.ui.keyCode;switch(event.keyCode){case keyCode.UP:this._repeat(null,1,event);return true;case keyCode.DOWN:this._repeat(null,-1,event);return true;case keyCode.PAGE_UP:this._repeat(null,options.page,event);return true;case keyCode.PAGE_DOWN:this._repeat(null,-options.page,event);return true;}\nreturn false;},_start:function(event){if(!this.spinning&&this._trigger(\"start\",event)===false){return false;}\nif(!this.counter){this.counter=1;}\nthis.spinning=true;return true;},_repeat:function(i,steps,event){i=i||500;clearTimeout(this.timer);this.timer=this._delay(function(){this._repeat(40,steps,event);},i);this._spin(steps*this.options.step,event);},_spin:function(step,event){var value=this.value()||0;if(!this.counter){this.counter=1;}\nvalue=this._adjustValue(value+step*this._increment(this.counter));if(!this.spinning||this._trigger(\"spin\",event,{value:value})!==false){this._value(value);this.counter++;}},_increment:function(i){var incremental=this.options.incremental;if(incremental){return typeof incremental===\"function\"?incremental(i):Math.floor(i*i*i / 50000-i*i / 500+17*i / 200+1);}\nreturn 1;},_precision:function(){var precision=this._precisionOf(this.options.step);if(this.options.min!==null){precision=Math.max(precision,this._precisionOf(this.options.min));}\nreturn precision;},_precisionOf:function(num){var str=num.toString(),decimal=str.indexOf(\".\");return decimal===-1?0:str.length-decimal-1;},_adjustValue:function(value){var base,aboveMin,options=this.options;base=options.min!==null?options.min:0;aboveMin=value-base;aboveMin=Math.round(aboveMin / options.step)*options.step;value=base+aboveMin;value=parseFloat(value.toFixed(this._precision()));if(options.max!==null&&value>options.max){return options.max;}\nif(options.min!==null&&value<options.min){return options.min;}\nreturn value;},_stop:function(event){if(!this.spinning){return;}\nclearTimeout(this.timer);clearTimeout(this.mousewheelTimer);this.counter=0;this.spinning=false;this._trigger(\"stop\",event);},_setOption:function(key,value){var prevValue,first,last;if(key===\"culture\"||key===\"numberFormat\"){prevValue=this._parse(this.element.val());this.options[key]=value;this.element.val(this._format(prevValue));return;}\nif(key===\"max\"||key===\"min\"||key===\"step\"){if(typeof value===\"string\"){value=this._parse(value);}}\nif(key===\"icons\"){first=this.buttons.first().find(\".ui-icon\");this._removeClass(first,null,this.options.icons.up);this._addClass(first,null,value.up);last=this.buttons.last().find(\".ui-icon\");this._removeClass(last,null,this.options.icons.down);this._addClass(last,null,value.down);}\nthis._super(key,value);},_setOptionDisabled:function(value){this._super(value);this._toggleClass(this.uiSpinner,null,\"ui-state-disabled\",!!value);this.element.prop(\"disabled\",!!value);this.buttons.button(value?\"disable\":\"enable\");},_setOptions:spinnerModifier(function(options){this._super(options);}),_parse:function(val){if(typeof val===\"string\"&&val!==\"\"){val=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(val,10,this.options.culture):+val;}\nreturn val===\"\"||isNaN(val)?null:val;},_format:function(value){if(value===\"\"){return\"\";}\nreturn window.Globalize&&this.options.numberFormat?Globalize.format(value,this.options.numberFormat,this.options.culture):value;},_refresh:function(){this.element.attr({\"aria-valuemin\":this.options.min,\"aria-valuemax\":this.options.max,\"aria-valuenow\":this._parse(this.element.val())});},isValid:function(){var value=this.value();if(value===null){return false;}\nreturn value===this._adjustValue(value);},_value:function(value,allowAny){var parsed;if(value!==\"\"){parsed=this._parse(value);if(parsed!==null){if(!allowAny){parsed=this._adjustValue(parsed);}\nvalue=this._format(parsed);}}\nthis.element.val(value);this._refresh();},_destroy:function(){this.element.prop(\"disabled\",false).removeAttr(\"autocomplete role aria-valuemin aria-valuemax aria-valuenow\");this.uiSpinner.replaceWith(this.element);},stepUp:spinnerModifier(function(steps){this._stepUp(steps);}),_stepUp:function(steps){if(this._start()){this._spin((steps||1)*this.options.step);this._stop();}},stepDown:spinnerModifier(function(steps){this._stepDown(steps);}),_stepDown:function(steps){if(this._start()){this._spin((steps||1)*-this.options.step);this._stop();}},pageUp:spinnerModifier(function(pages){this._stepUp((pages||1)*this.options.page);}),pageDown:spinnerModifier(function(pages){this._stepDown((pages||1)*this.options.page);}),value:function(newVal){if(!arguments.length){return this._parse(this.element.val());}\nspinnerModifier(this._value).call(this,newVal);},widget:function(){return this.uiSpinner;}});if($.uiBackCompat!==false){$.widget(\"ui.spinner\",$.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr(\"autocomplete\",\"off\").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());},_uiSpinnerHtml:function(){return\"<span>\";},_buttonHtml:function(){return\"<a></a><a></a>\";}});}\nvar widgetsSpinner=$.ui.spinner;\n/*!\n * jQuery UI Tabs 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n$.widget(\"ui.tabs\",{version:\"1.13.2\",delay:300,options:{active:null,classes:{\"ui-tabs\":\"ui-corner-all\",\"ui-tabs-nav\":\"ui-corner-all\",\"ui-tabs-panel\":\"ui-corner-bottom\",\"ui-tabs-tab\":\"ui-corner-top\"},collapsible:false,event:\"click\",heightStyle:\"content\",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:(function(){var rhash=/#.*$/;return function(anchor){var anchorUrl,locationUrl;anchorUrl=anchor.href.replace(rhash,\"\");locationUrl=location.href.replace(rhash,\"\");try{anchorUrl=decodeURIComponent(anchorUrl);}catch(error){}\ntry{locationUrl=decodeURIComponent(locationUrl);}catch(error){}\nreturn anchor.hash.length>1&&anchorUrl===locationUrl;};})(),_create:function(){var that=this,options=this.options;this.running=false;this._addClass(\"ui-tabs\",\"ui-widget ui-widget-content\");this._toggleClass(\"ui-tabs-collapsible\",null,options.collapsible);this._processTabs();options.active=this._initialActive();if(Array.isArray(options.disabled)){options.disabled=$.uniqueSort(options.disabled.concat($.map(this.tabs.filter(\".ui-state-disabled\"),function(li){return that.tabs.index(li);}))).sort();}\nif(this.options.active!==false&&this.anchors.length){this.active=this._findActive(options.active);}else{this.active=$();}\nthis._refresh();if(this.active.length){this.load(options.active);}},_initialActive:function(){var active=this.options.active,collapsible=this.options.collapsible,locationHash=location.hash.substring(1);if(active===null){if(locationHash){this.tabs.each(function(i,tab){if($(tab).attr(\"aria-controls\")===locationHash){active=i;return false;}});}\nif(active===null){active=this.tabs.index(this.tabs.filter(\".ui-tabs-active\"));}\nif(active===null||active===-1){active=this.tabs.length?0:false;}}\nif(active!==false){active=this.tabs.index(this.tabs.eq(active));if(active===-1){active=collapsible?false:0;}}\nif(!collapsible&&active===false&&this.anchors.length){active=0;}\nreturn active;},_getCreateEventData:function(){return{tab:this.active,panel:!this.active.length?$():this._getPanelForTab(this.active)};},_tabKeydown:function(event){var focusedTab=$($.ui.safeActiveElement(this.document[0])).closest(\"li\"),selectedIndex=this.tabs.index(focusedTab),goingForward=true;if(this._handlePageNav(event)){return;}\nswitch(event.keyCode){case $.ui.keyCode.RIGHT:case $.ui.keyCode.DOWN:selectedIndex++;break;case $.ui.keyCode.UP:case $.ui.keyCode.LEFT:goingForward=false;selectedIndex--;break;case $.ui.keyCode.END:selectedIndex=this.anchors.length-1;break;case $.ui.keyCode.HOME:selectedIndex=0;break;case $.ui.keyCode.SPACE:event.preventDefault();clearTimeout(this.activating);this._activate(selectedIndex);return;case $.ui.keyCode.ENTER:event.preventDefault();clearTimeout(this.activating);this._activate(selectedIndex===this.options.active?false:selectedIndex);return;default:return;}\nevent.preventDefault();clearTimeout(this.activating);selectedIndex=this._focusNextTab(selectedIndex,goingForward);if(!event.ctrlKey&&!event.metaKey){focusedTab.attr(\"aria-selected\",\"false\");this.tabs.eq(selectedIndex).attr(\"aria-selected\",\"true\");this.activating=this._delay(function(){this.option(\"active\",selectedIndex);},this.delay);}},_panelKeydown:function(event){if(this._handlePageNav(event)){return;}\nif(event.ctrlKey&&event.keyCode===$.ui.keyCode.UP){event.preventDefault();this.active.trigger(\"focus\");}},_handlePageNav:function(event){if(event.altKey&&event.keyCode===$.ui.keyCode.PAGE_UP){this._activate(this._focusNextTab(this.options.active-1,false));return true;}\nif(event.altKey&&event.keyCode===$.ui.keyCode.PAGE_DOWN){this._activate(this._focusNextTab(this.options.active+1,true));return true;}},_findNextTab:function(index,goingForward){var lastTabIndex=this.tabs.length-1;function constrain(){if(index>lastTabIndex){index=0;}\nif(index<0){index=lastTabIndex;}\nreturn index;}\nwhile($.inArray(constrain(),this.options.disabled)!==-1){index=goingForward?index+1:index-1;}\nreturn index;},_focusNextTab:function(index,goingForward){index=this._findNextTab(index,goingForward);this.tabs.eq(index).trigger(\"focus\");return index;},_setOption:function(key,value){if(key===\"active\"){this._activate(value);return;}\nthis._super(key,value);if(key===\"collapsible\"){this._toggleClass(\"ui-tabs-collapsible\",null,value);if(!value&&this.options.active===false){this._activate(0);}}\nif(key===\"event\"){this._setupEvents(value);}\nif(key===\"heightStyle\"){this._setupHeightStyle(value);}},_sanitizeSelector:function(hash){return hash?hash.replace(/[!\"$%&'()*+,.\\/:;<=>?@\\[\\]\\^`{|}~]/g,\"\\\\$&\"):\"\";},refresh:function(){var options=this.options,lis=this.tablist.children(\":has(a[href])\");options.disabled=$.map(lis.filter(\".ui-state-disabled\"),function(tab){return lis.index(tab);});this._processTabs();if(options.active===false||!this.anchors.length){options.active=false;this.active=$();}else if(this.active.length&&!$.contains(this.tablist[0],this.active[0])){if(this.tabs.length===options.disabled.length){options.active=false;this.active=$();}else{this._activate(this._findNextTab(Math.max(0,options.active-1),false));}}else{options.active=this.tabs.index(this.active);}\nthis._refresh();},_refresh:function(){this._setOptionDisabled(this.options.disabled);this._setupEvents(this.options.event);this._setupHeightStyle(this.options.heightStyle);this.tabs.not(this.active).attr({\"aria-selected\":\"false\",\"aria-expanded\":\"false\",tabIndex:-1});this.panels.not(this._getPanelForTab(this.active)).hide().attr({\"aria-hidden\":\"true\"});if(!this.active.length){this.tabs.eq(0).attr(\"tabIndex\",0);}else{this.active.attr({\"aria-selected\":\"true\",\"aria-expanded\":\"true\",tabIndex:0});this._addClass(this.active,\"ui-tabs-active\",\"ui-state-active\");this._getPanelForTab(this.active).show().attr({\"aria-hidden\":\"false\"});}},_processTabs:function(){var that=this,prevTabs=this.tabs,prevAnchors=this.anchors,prevPanels=this.panels;this.tablist=this._getList().attr(\"role\",\"tablist\");this._addClass(this.tablist,\"ui-tabs-nav\",\"ui-helper-reset ui-helper-clearfix ui-widget-header\");this.tablist.on(\"mousedown\"+this.eventNamespace,\"> li\",function(event){if($(this).is(\".ui-state-disabled\")){event.preventDefault();}}).on(\"focus\"+this.eventNamespace,\".ui-tabs-anchor\",function(){if($(this).closest(\"li\").is(\".ui-state-disabled\")){this.blur();}});this.tabs=this.tablist.find(\"> li:has(a[href])\").attr({role:\"tab\",tabIndex:-1});this._addClass(this.tabs,\"ui-tabs-tab\",\"ui-state-default\");this.anchors=this.tabs.map(function(){return $(\"a\",this)[0];}).attr({tabIndex:-1});this._addClass(this.anchors,\"ui-tabs-anchor\");this.panels=$();this.anchors.each(function(i,anchor){var selector,panel,panelId,anchorId=$(anchor).uniqueId().attr(\"id\"),tab=$(anchor).closest(\"li\"),originalAriaControls=tab.attr(\"aria-controls\");if(that._isLocal(anchor)){selector=anchor.hash;panelId=selector.substring(1);panel=that.element.find(that._sanitizeSelector(selector));}else{panelId=tab.attr(\"aria-controls\")||$({}).uniqueId()[0].id;selector=\"#\"+panelId;panel=that.element.find(selector);if(!panel.length){panel=that._createPanel(panelId);panel.insertAfter(that.panels[i-1]||that.tablist);}\npanel.attr(\"aria-live\",\"polite\");}\nif(panel.length){that.panels=that.panels.add(panel);}\nif(originalAriaControls){tab.data(\"ui-tabs-aria-controls\",originalAriaControls);}\ntab.attr({\"aria-controls\":panelId,\"aria-labelledby\":anchorId});panel.attr(\"aria-labelledby\",anchorId);});this.panels.attr(\"role\",\"tabpanel\");this._addClass(this.panels,\"ui-tabs-panel\",\"ui-widget-content\");if(prevTabs){this._off(prevTabs.not(this.tabs));this._off(prevAnchors.not(this.anchors));this._off(prevPanels.not(this.panels));}},_getList:function(){return this.tablist||this.element.find(\"ol, ul\").eq(0);},_createPanel:function(id){return $(\"<div>\").attr(\"id\",id).data(\"ui-tabs-destroy\",true);},_setOptionDisabled:function(disabled){var currentItem,li,i;if(Array.isArray(disabled)){if(!disabled.length){disabled=false;}else if(disabled.length===this.anchors.length){disabled=true;}}\nfor(i=0;(li=this.tabs[i]);i++){currentItem=$(li);if(disabled===true||$.inArray(i,disabled)!==-1){currentItem.attr(\"aria-disabled\",\"true\");this._addClass(currentItem,null,\"ui-state-disabled\");}else{currentItem.removeAttr(\"aria-disabled\");this._removeClass(currentItem,null,\"ui-state-disabled\");}}\nthis.options.disabled=disabled;this._toggleClass(this.widget(),this.widgetFullName+\"-disabled\",null,disabled===true);},_setupEvents:function(event){var events={};if(event){$.each(event.split(\" \"),function(index,eventName){events[eventName]=\"_eventHandler\";});}\nthis._off(this.anchors.add(this.tabs).add(this.panels));this._on(true,this.anchors,{click:function(event){event.preventDefault();}});this._on(this.anchors,events);this._on(this.tabs,{keydown:\"_tabKeydown\"});this._on(this.panels,{keydown:\"_panelKeydown\"});this._focusable(this.tabs);this._hoverable(this.tabs);},_setupHeightStyle:function(heightStyle){var maxHeight,parent=this.element.parent();if(heightStyle===\"fill\"){maxHeight=parent.height();maxHeight-=this.element.outerHeight()-this.element.height();this.element.siblings(\":visible\").each(function(){var elem=$(this),position=elem.css(\"position\");if(position===\"absolute\"||position===\"fixed\"){return;}\nmaxHeight-=elem.outerHeight(true);});this.element.children().not(this.panels).each(function(){maxHeight-=$(this).outerHeight(true);});this.panels.each(function(){$(this).height(Math.max(0,maxHeight-\n$(this).innerHeight()+$(this).height()));}).css(\"overflow\",\"auto\");}else if(heightStyle===\"auto\"){maxHeight=0;this.panels.each(function(){maxHeight=Math.max(maxHeight,$(this).height(\"\").height());}).height(maxHeight);}},_eventHandler:function(event){var options=this.options,active=this.active,anchor=$(event.currentTarget),tab=anchor.closest(\"li\"),clickedIsActive=tab[0]===active[0],collapsing=clickedIsActive&&options.collapsible,toShow=collapsing?$():this._getPanelForTab(tab),toHide=!active.length?$():this._getPanelForTab(active),eventData={oldTab:active,oldPanel:toHide,newTab:collapsing?$():tab,newPanel:toShow};event.preventDefault();if(tab.hasClass(\"ui-state-disabled\")||tab.hasClass(\"ui-tabs-loading\")||this.running||(clickedIsActive&&!options.collapsible)||(this._trigger(\"beforeActivate\",event,eventData)===false)){return;}\noptions.active=collapsing?false:this.tabs.index(tab);this.active=clickedIsActive?$():tab;if(this.xhr){this.xhr.abort();}\nif(!toHide.length&&!toShow.length){$.error(\"jQuery UI Tabs: Mismatching fragment identifier.\");}\nif(toShow.length){this.load(this.tabs.index(tab),event);}\nthis._toggle(event,eventData);},_toggle:function(event,eventData){var that=this,toShow=eventData.newPanel,toHide=eventData.oldPanel;this.running=true;function complete(){that.running=false;that._trigger(\"activate\",event,eventData);}\nfunction show(){that._addClass(eventData.newTab.closest(\"li\"),\"ui-tabs-active\",\"ui-state-active\");if(toShow.length&&that.options.show){that._show(toShow,that.options.show,complete);}else{toShow.show();complete();}}\nif(toHide.length&&this.options.hide){this._hide(toHide,this.options.hide,function(){that._removeClass(eventData.oldTab.closest(\"li\"),\"ui-tabs-active\",\"ui-state-active\");show();});}else{this._removeClass(eventData.oldTab.closest(\"li\"),\"ui-tabs-active\",\"ui-state-active\");toHide.hide();show();}\ntoHide.attr(\"aria-hidden\",\"true\");eventData.oldTab.attr({\"aria-selected\":\"false\",\"aria-expanded\":\"false\"});if(toShow.length&&toHide.length){eventData.oldTab.attr(\"tabIndex\",-1);}else if(toShow.length){this.tabs.filter(function(){return $(this).attr(\"tabIndex\")===0;}).attr(\"tabIndex\",-1);}\ntoShow.attr(\"aria-hidden\",\"false\");eventData.newTab.attr({\"aria-selected\":\"true\",\"aria-expanded\":\"true\",tabIndex:0});},_activate:function(index){var anchor,active=this._findActive(index);if(active[0]===this.active[0]){return;}\nif(!active.length){active=this.active;}\nanchor=active.find(\".ui-tabs-anchor\")[0];this._eventHandler({target:anchor,currentTarget:anchor,preventDefault:$.noop});},_findActive:function(index){return index===false?$():this.tabs.eq(index);},_getIndex:function(index){if(typeof index===\"string\"){index=this.anchors.index(this.anchors.filter(\"[href$='\"+\n$.escapeSelector(index)+\"']\"));}\nreturn index;},_destroy:function(){if(this.xhr){this.xhr.abort();}\nthis.tablist.removeAttr(\"role\").off(this.eventNamespace);this.anchors.removeAttr(\"role tabIndex\").removeUniqueId();this.tabs.add(this.panels).each(function(){if($.data(this,\"ui-tabs-destroy\")){$(this).remove();}else{$(this).removeAttr(\"role tabIndex \"+\"aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded\");}});this.tabs.each(function(){var li=$(this),prev=li.data(\"ui-tabs-aria-controls\");if(prev){li.attr(\"aria-controls\",prev).removeData(\"ui-tabs-aria-controls\");}else{li.removeAttr(\"aria-controls\");}});this.panels.show();if(this.options.heightStyle!==\"content\"){this.panels.css(\"height\",\"\");}},enable:function(index){var disabled=this.options.disabled;if(disabled===false){return;}\nif(index===undefined){disabled=false;}else{index=this._getIndex(index);if(Array.isArray(disabled)){disabled=$.map(disabled,function(num){return num!==index?num:null;});}else{disabled=$.map(this.tabs,function(li,num){return num!==index?num:null;});}}\nthis._setOptionDisabled(disabled);},disable:function(index){var disabled=this.options.disabled;if(disabled===true){return;}\nif(index===undefined){disabled=true;}else{index=this._getIndex(index);if($.inArray(index,disabled)!==-1){return;}\nif(Array.isArray(disabled)){disabled=$.merge([index],disabled).sort();}else{disabled=[index];}}\nthis._setOptionDisabled(disabled);},load:function(index,event){index=this._getIndex(index);var that=this,tab=this.tabs.eq(index),anchor=tab.find(\".ui-tabs-anchor\"),panel=this._getPanelForTab(tab),eventData={tab:tab,panel:panel},complete=function(jqXHR,status){if(status===\"abort\"){that.panels.stop(false,true);}\nthat._removeClass(tab,\"ui-tabs-loading\");panel.removeAttr(\"aria-busy\");if(jqXHR===that.xhr){delete that.xhr;}};if(this._isLocal(anchor[0])){return;}\nthis.xhr=$.ajax(this._ajaxSettings(anchor,event,eventData));if(this.xhr&&this.xhr.statusText!==\"canceled\"){this._addClass(tab,\"ui-tabs-loading\");panel.attr(\"aria-busy\",\"true\");this.xhr.done(function(response,status,jqXHR){setTimeout(function(){panel.html(response);that._trigger(\"load\",event,eventData);complete(jqXHR,status);},1);}).fail(function(jqXHR,status){setTimeout(function(){complete(jqXHR,status);},1);});}},_ajaxSettings:function(anchor,event,eventData){var that=this;return{url:anchor.attr(\"href\").replace(/#.*$/,\"\"),beforeSend:function(jqXHR,settings){return that._trigger(\"beforeLoad\",event,$.extend({jqXHR:jqXHR,ajaxSettings:settings},eventData));}};},_getPanelForTab:function(tab){var id=$(tab).attr(\"aria-controls\");return this.element.find(this._sanitizeSelector(\"#\"+id));}});if($.uiBackCompat!==false){$.widget(\"ui.tabs\",$.ui.tabs,{_processTabs:function(){this._superApply(arguments);this._addClass(this.tabs,\"ui-tab\");}});}\nvar widgetsTabs=$.ui.tabs;\n/*!\n * jQuery UI Tooltip 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n$.widget(\"ui.tooltip\",{version:\"1.13.2\",options:{classes:{\"ui-tooltip\":\"ui-corner-all ui-widget-shadow\"},content:function(){var title=$(this).attr(\"title\");return $(\"<a>\").text(title).html();},hide:true,items:\"[title]:not([disabled])\",position:{my:\"left top+15\",at:\"left bottom\",collision:\"flipfit flip\"},show:true,track:false,close:null,open:null},_addDescribedBy:function(elem,id){var describedby=(elem.attr(\"aria-describedby\")||\"\").split(/\\s+/);describedby.push(id);elem.data(\"ui-tooltip-id\",id).attr(\"aria-describedby\",String.prototype.trim.call(describedby.join(\" \")));},_removeDescribedBy:function(elem){var id=elem.data(\"ui-tooltip-id\"),describedby=(elem.attr(\"aria-describedby\")||\"\").split(/\\s+/),index=$.inArray(id,describedby);if(index!==-1){describedby.splice(index,1);}\nelem.removeData(\"ui-tooltip-id\");describedby=String.prototype.trim.call(describedby.join(\" \"));if(describedby){elem.attr(\"aria-describedby\",describedby);}else{elem.removeAttr(\"aria-describedby\");}},_create:function(){this._on({mouseover:\"open\",focusin:\"open\"});this.tooltips={};this.parents={};this.liveRegion=$(\"<div>\").attr({role:\"log\",\"aria-live\":\"assertive\",\"aria-relevant\":\"additions\"}).appendTo(this.document[0].body);this._addClass(this.liveRegion,null,\"ui-helper-hidden-accessible\");this.disabledTitles=$([]);},_setOption:function(key,value){var that=this;this._super(key,value);if(key===\"content\"){$.each(this.tooltips,function(id,tooltipData){that._updateContent(tooltipData.element);});}},_setOptionDisabled:function(value){this[value?\"_disable\":\"_enable\"]();},_disable:function(){var that=this;$.each(this.tooltips,function(id,tooltipData){var event=$.Event(\"blur\");event.target=event.currentTarget=tooltipData.element[0];that.close(event,true);});this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function(){var element=$(this);if(element.is(\"[title]\")){return element.data(\"ui-tooltip-title\",element.attr(\"title\")).removeAttr(\"title\");}}));},_enable:function(){this.disabledTitles.each(function(){var element=$(this);if(element.data(\"ui-tooltip-title\")){element.attr(\"title\",element.data(\"ui-tooltip-title\"));}});this.disabledTitles=$([]);},open:function(event){var that=this,target=$(event?event.target:this.element).closest(this.options.items);if(!target.length||target.data(\"ui-tooltip-id\")){return;}\nif(target.attr(\"title\")){target.data(\"ui-tooltip-title\",target.attr(\"title\"));}\ntarget.data(\"ui-tooltip-open\",true);if(event&&event.type===\"mouseover\"){target.parents().each(function(){var parent=$(this),blurEvent;if(parent.data(\"ui-tooltip-open\")){blurEvent=$.Event(\"blur\");blurEvent.target=blurEvent.currentTarget=this;that.close(blurEvent,true);}\nif(parent.attr(\"title\")){parent.uniqueId();that.parents[this.id]={element:this,title:parent.attr(\"title\")};parent.attr(\"title\",\"\");}});}\nthis._registerCloseHandlers(event,target);this._updateContent(target,event);},_updateContent:function(target,event){var content,contentOption=this.options.content,that=this,eventType=event?event.type:null;if(typeof contentOption===\"string\"||contentOption.nodeType||contentOption.jquery){return this._open(event,target,contentOption);}\ncontent=contentOption.call(target[0],function(response){that._delay(function(){if(!target.data(\"ui-tooltip-open\")){return;}\nif(event){event.type=eventType;}\nthis._open(event,target,response);});});if(content){this._open(event,target,content);}},_open:function(event,target,content){var tooltipData,tooltip,delayedShow,a11yContent,positionOption=$.extend({},this.options.position);if(!content){return;}\ntooltipData=this._find(target);if(tooltipData){tooltipData.tooltip.find(\".ui-tooltip-content\").html(content);return;}\nif(target.is(\"[title]\")){if(event&&event.type===\"mouseover\"){target.attr(\"title\",\"\");}else{target.removeAttr(\"title\");}}\ntooltipData=this._tooltip(target);tooltip=tooltipData.tooltip;this._addDescribedBy(target,tooltip.attr(\"id\"));tooltip.find(\".ui-tooltip-content\").html(content);this.liveRegion.children().hide();a11yContent=$(\"<div>\").html(tooltip.find(\".ui-tooltip-content\").html());a11yContent.removeAttr(\"name\").find(\"[name]\").removeAttr(\"name\");a11yContent.removeAttr(\"id\").find(\"[id]\").removeAttr(\"id\");a11yContent.appendTo(this.liveRegion);function position(event){positionOption.of=event;if(tooltip.is(\":hidden\")){return;}\ntooltip.position(positionOption);}\nif(this.options.track&&event&&/^mouse/.test(event.type)){this._on(this.document,{mousemove:position});position(event);}else{tooltip.position($.extend({of:target},this.options.position));}\ntooltip.hide();this._show(tooltip,this.options.show);if(this.options.track&&this.options.show&&this.options.show.delay){delayedShow=this.delayedShow=setInterval(function(){if(tooltip.is(\":visible\")){position(positionOption.of);clearInterval(delayedShow);}},13);}\nthis._trigger(\"open\",event,{tooltip:tooltip});},_registerCloseHandlers:function(event,target){var events={keyup:function(event){if(event.keyCode===$.ui.keyCode.ESCAPE){var fakeEvent=$.Event(event);fakeEvent.currentTarget=target[0];this.close(fakeEvent,true);}}};if(target[0]!==this.element[0]){events.remove=function(){var targetElement=this._find(target);if(targetElement){this._removeTooltip(targetElement.tooltip);}};}\nif(!event||event.type===\"mouseover\"){events.mouseleave=\"close\";}\nif(!event||event.type===\"focusin\"){events.focusout=\"close\";}\nthis._on(true,target,events);},close:function(event){var tooltip,that=this,target=$(event?event.currentTarget:this.element),tooltipData=this._find(target);if(!tooltipData){target.removeData(\"ui-tooltip-open\");return;}\ntooltip=tooltipData.tooltip;if(tooltipData.closing){return;}\nclearInterval(this.delayedShow);if(target.data(\"ui-tooltip-title\")&&!target.attr(\"title\")){target.attr(\"title\",target.data(\"ui-tooltip-title\"));}\nthis._removeDescribedBy(target);tooltipData.hiding=true;tooltip.stop(true);this._hide(tooltip,this.options.hide,function(){that._removeTooltip($(this));});target.removeData(\"ui-tooltip-open\");this._off(target,\"mouseleave focusout keyup\");if(target[0]!==this.element[0]){this._off(target,\"remove\");}\nthis._off(this.document,\"mousemove\");if(event&&event.type===\"mouseleave\"){$.each(this.parents,function(id,parent){$(parent.element).attr(\"title\",parent.title);delete that.parents[id];});}\ntooltipData.closing=true;this._trigger(\"close\",event,{tooltip:tooltip});if(!tooltipData.hiding){tooltipData.closing=false;}},_tooltip:function(element){var tooltip=$(\"<div>\").attr(\"role\",\"tooltip\"),content=$(\"<div>\").appendTo(tooltip),id=tooltip.uniqueId().attr(\"id\");this._addClass(content,\"ui-tooltip-content\");this._addClass(tooltip,\"ui-tooltip\",\"ui-widget ui-widget-content\");tooltip.appendTo(this._appendTo(element));return this.tooltips[id]={element:element,tooltip:tooltip};},_find:function(target){var id=target.data(\"ui-tooltip-id\");return id?this.tooltips[id]:null;},_removeTooltip:function(tooltip){clearInterval(this.delayedShow);tooltip.remove();delete this.tooltips[tooltip.attr(\"id\")];},_appendTo:function(target){var element=target.closest(\".ui-front, dialog\");if(!element.length){element=this.document[0].body;}\nreturn element;},_destroy:function(){var that=this;$.each(this.tooltips,function(id,tooltipData){var event=$.Event(\"blur\"),element=tooltipData.element;event.target=event.currentTarget=element[0];that.close(event,true);$(\"#\"+id).remove();if(element.data(\"ui-tooltip-title\")){if(!element.attr(\"title\")){element.attr(\"title\",element.data(\"ui-tooltip-title\"));}\nelement.removeData(\"ui-tooltip-title\");}});this.liveRegion.remove();}});if($.uiBackCompat!==false){$.widget(\"ui.tooltip\",$.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var tooltipData=this._superApply(arguments);if(this.options.tooltipClass){tooltipData.tooltip.addClass(this.options.tooltipClass);}\nreturn tooltipData;}});}\nvar widgetsTooltip=$.ui.tooltip;});","jquery/z-index.min.js":"/*!\n * zIndex plugin from jQuery UI Core - v1.10.4\n * http://jqueryui.com\n *\n * Copyright 2014 jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/category/ui-core/\n */\ndefine(['jquery'],function($,undefined){$.fn.extend({zIndex:function(zIndex){if(zIndex!==undefined){return this.css(\"zIndex\",zIndex);}\nif(this.length){var elem=$(this[0]),position,value;while(elem.length&&elem[0]!==document){position=elem.css(\"position\");if(position===\"absolute\"||position===\"relative\"||position===\"fixed\"){value=parseInt(elem.css(\"zIndex\"),10);if(!isNaN(value)&&value!==0){return value;}}\nelem=elem.parent();}}\nreturn 0;}});});","jquery/jquery.metadata.min.js":"(function(factory){if(typeof define==='function'&&define.amd){define([\"jquery\"],factory);}else{factory(jQuery);}}(function($){$.extend({metadata:{defaults:{type:'class',name:'metadata',cre:/({.*})/,single:'metadata',meta:'validate'},setType:function(type,name){this.defaults.type=type;this.defaults.name=name;},get:function(elem,opts){var settings=$.extend({},this.defaults,opts);if(!settings.single.length){settings.single='metadata';}\nif(!settings.meta.length){settings.meta='validate';}\nvar data=$.data(elem,settings.single);if(data)return data;data=\"{}\";var getData=function(data){if(typeof data!=\"string\")return data;if(data.indexOf('{')<0){data=eval(\"(\"+data+\")\");}}\nvar getObject=function(data){if(typeof data!=\"string\")return data;data=eval(\"(\"+data+\")\");return data;}\nif(settings.type==\"html5\"){var object={};$(elem.attributes).each(function(){var name=this.nodeName;if(name.indexOf('data-'+settings.meta)===0){name=name.replace(/^data-/,'');}\nelse{return true;}\nobject[name]=getObject(this.value);});}else{if(settings.type==\"class\"){var m=settings.cre.exec(elem.className);if(m)\ndata=m[1];}else if(settings.type==\"elem\"){if(!elem.getElementsByTagName)return;var e=elem.getElementsByTagName(settings.name);if(e.length)\ndata=$.trim(e[0].innerHTML);}else if(elem.getAttribute!=undefined){var attr=elem.getAttribute(settings.name);if(attr)\ndata=attr;}\nobject=getObject(data.indexOf(\"{\")<0?\"{\"+data+\"}\":data);}\n$.data(elem,settings.single,object);return object;}}});$.fn.metadata=function(opts){return $.metadata.get(this[0],opts);};}));","jquery/compat.min.js":"define(['jquery-ui-modules/core','jquery-ui-modules/accordion','jquery-ui-modules/autocomplete','jquery-ui-modules/button','jquery-ui-modules/datepicker','jquery-ui-modules/dialog','jquery-ui-modules/draggable','jquery-ui-modules/droppable','jquery-ui-modules/effect-blind','jquery-ui-modules/effect-bounce','jquery-ui-modules/effect-clip','jquery-ui-modules/effect-drop','jquery-ui-modules/effect-explode','jquery-ui-modules/effect-fade','jquery-ui-modules/effect-fold','jquery-ui-modules/effect-highlight','jquery-ui-modules/effect-scale','jquery-ui-modules/effect-pulsate','jquery-ui-modules/effect-shake','jquery-ui-modules/effect-slide','jquery-ui-modules/effect-transfer','jquery-ui-modules/effect','jquery-ui-modules/menu','jquery-ui-modules/mouse','jquery-ui-modules/position','jquery-ui-modules/progressbar','jquery-ui-modules/resizable','jquery-ui-modules/selectable','jquery-ui-modules/slider','jquery-ui-modules/sortable','jquery-ui-modules/spinner','jquery-ui-modules/tabs','jquery-ui-modules/timepicker','jquery-ui-modules/tooltip','jquery-ui-modules/widget'],function(){console.warn('Fallback to JQueryUI Compat activated. '+'Your store is missing a dependency for a '+'jQueryUI widget. Identifying and addressing the dependency '+'will drastically improve the performance of your site.');});","jquery/jquery.cookie.min.js":"define(['jquery','js-cookie/cookie-wrapper'],function(){});","jquery/jquery.parsequery.min.js":"define([\"jquery\"],function($){$.parseQuery=function(options){var config={query:window.location.search||\"\"},params={};if(typeof options==='string'){options={query:options};}\n$.extend(config,$.parseQuery,options);config.query=config.query.replace(/^\\?/,'');if(config.query.length>0){$.each(config.query.split(config.separator),function(i,param){var pair=param.split('='),key=config.decode(pair.shift(),null).toString(),value=config.decode(pair.length?pair.join('='):null,key);if(config.array_keys.test?config.array_keys.test(key):config.array_keys(key)){params[key]=params[key]||[];params[key].push(value);}else{params[key]=value;}});}\nreturn params;};$.parseQuery.decode=$.parseQuery.default_decode=function(string){return decodeURIComponent((string||\"\").replace(/\\+/g,' '));};$.parseQuery.array_keys=function(){return false;};$.parseQuery.separator=\"&\";});"}
}});
;require.config({"config": {
        "jsbuild":{"jquery/bootstrap/collapse.min.js":"define([\"jquery\",\"./util/index\",\"./dom/data\",\"./dom/event-handler\",\"./dom/manipulator\",\"./dom/selector-engine\"],function($,Util,Data,EventHandler,Manipulator,SelectorEngine){'use strict';const defineJQueryPlugin=Util.defineJQueryPlugin;const executeAfterTransition=Util.executeAfterTransition;const getElement=Util.getElement;const getSelectorFromElement=Util.getSelectorFromElement;const getElementFromSelector=Util.getElementFromSelector;const reflow=Util.reflow;const typeCheckConfig=Util.typeCheckConfig;const VERSION='5.1.3';const NAME='collapse';const DATA_KEY='bs.collapse';const EVENT_KEY=`.${DATA_KEY}`;const DATA_API_KEY='.data-api';const Default={toggle:true,parent:null};const DefaultType={toggle:'boolean',parent:'(null|element)'};const EVENT_SHOW=`show${EVENT_KEY}`;const EVENT_SHOWN=`shown${EVENT_KEY}`;const EVENT_HIDE=`hide${EVENT_KEY}`;const EVENT_HIDDEN=`hidden${EVENT_KEY}`;const EVENT_CLICK_DATA_API=`click${EVENT_KEY}${DATA_API_KEY}`;const CLASS_NAME_SHOW='show';const CLASS_NAME_COLLAPSE='collapse';const CLASS_NAME_COLLAPSING='collapsing';const CLASS_NAME_COLLAPSED='collapsed';const CLASS_NAME_DEEPER_CHILDREN=`:scope .${CLASS_NAME_COLLAPSE} .${CLASS_NAME_COLLAPSE}`;const CLASS_NAME_HORIZONTAL='collapse-horizontal';const WIDTH='width';const HEIGHT='height';const SELECTOR_ACTIVES='.collapse.show, .collapse.collapsing';const SELECTOR_DATA_TOGGLE='[data-bs-toggle=\"collapse\"]';var Collapse=function(element,config){element=getElement(element);if(!element){return;}\nthis._element=element;Data.set(this._element,DATA_KEY,this);this._isTransitioning=false;this._config=this._getConfig(config);this._triggerArray=[];const toggleList=SelectorEngine.find(SELECTOR_DATA_TOGGLE);for(let i=0,len=toggleList.length;i<len;i++){const elem=toggleList[i];const selector=getSelectorFromElement(elem);const filterElement=SelectorEngine.find(selector).filter(foundElem=>foundElem===this._element);if(selector!==null&&filterElement.length){this._selector=selector;this._triggerArray.push(elem);}}\nthis._initializeChildren();if(!this._config.parent){this._addAriaAndCollapsedClass(this._triggerArray,this._isShown());}\nif(this._config.toggle){this.toggle();}}\nCollapse.VERSION=VERSION;Collapse.Default=Default;Collapse.NAME=NAME;Collapse.DATA_KEY='bs.'+Collapse.NAME;Collapse.EVENT_KEY='.'+Collapse.DATA_KEY;Collapse.prototype.dispose=function(){Data.remove(this._element,this.constructor.DATA_KEY);EventHandler.off(this._element,this.constructor.EVENT_KEY);Object.getOwnPropertyNames(this).forEach(propertyName=>{this[propertyName]=null;})}\nCollapse.prototype._queueCallback=function(callback,element,isAnimated=true){executeAfterTransition(callback,element,isAnimated);}\nCollapse.prototype.toggle=function(){if(this._isShown()){this.hide();}else{this.show();}}\nCollapse.prototype.show=function(){if(this._isTransitioning||this._isShown()){return;}\nlet actives=[];let activesData;if(this._config.parent){const children=SelectorEngine.find(CLASS_NAME_DEEPER_CHILDREN,this._config.parent);actives=SelectorEngine.find(SELECTOR_ACTIVES,this._config.parent).filter(elem=>!children.includes(elem));}\nconst container=SelectorEngine.findOne(this._selector);if(actives.length){const tempActiveData=actives.find(elem=>container!==elem);activesData=tempActiveData?Collapse.getInstance(tempActiveData):null;if(activesData&&activesData._isTransitioning){return;}}\nconst startEvent=EventHandler.trigger(this._element,EVENT_SHOW);if(startEvent.defaultPrevented){return;}\nactives.forEach(elemActive=>{if(container!==elemActive){Collapse.getOrCreateInstance(elemActive,{toggle:false}).hide();}\nif(!activesData){Data.set(elemActive,DATA_KEY,null);}})\nconst dimension=this._getDimension();this._element.classList.remove(CLASS_NAME_COLLAPSE);this._element.classList.add(CLASS_NAME_COLLAPSING);this._element.style[dimension]=0;this._addAriaAndCollapsedClass(this._triggerArray,true);this._isTransitioning=true;const complete=()=>{this._isTransitioning=false;this._element.classList.remove(CLASS_NAME_COLLAPSING);this._element.classList.add(CLASS_NAME_COLLAPSE,CLASS_NAME_SHOW);this._element.style[dimension]='';EventHandler.trigger(this._element,EVENT_SHOWN);};const capitalizedDimension=dimension[0].toUpperCase()+dimension.slice(1);const scrollSize=`scroll${capitalizedDimension}`;this._queueCallback(complete,this._element,true);this._element.style[dimension]=`${this._element[scrollSize]}px`;}\nCollapse.prototype.hide=function(){if(this._isTransitioning||!this._isShown()){return;}\nconst startEvent=EventHandler.trigger(this._element,EVENT_HIDE);if(startEvent.defaultPrevented){return;}\nconst dimension=this._getDimension();this._element.style[dimension]=`${this._element.getBoundingClientRect()[dimension]}px`;reflow(this._element);this._element.classList.add(CLASS_NAME_COLLAPSING);this._element.classList.remove(CLASS_NAME_COLLAPSE,CLASS_NAME_SHOW);const triggerArrayLength=this._triggerArray.length;for(let i=0;i<triggerArrayLength;i++){const trigger=this._triggerArray[i];const elem=getElementFromSelector(trigger);if(elem&&!this._isShown(elem)){this._addAriaAndCollapsedClass([trigger],false);}}\nthis._isTransitioning=true;const complete=()=>{this._isTransitioning=false;this._element.classList.remove(CLASS_NAME_COLLAPSING);this._element.classList.add(CLASS_NAME_COLLAPSE);EventHandler.trigger(this._element,EVENT_HIDDEN);};this._element.style[dimension]='';this._queueCallback(complete,this._element,true);}\nCollapse.prototype._isShown=function(element=this._element){return element.classList.contains(CLASS_NAME_SHOW);}\nCollapse.prototype._getConfig=function(config){config={...Default,...Manipulator.getDataAttributes(this._element),...config};config.toggle=Boolean(config.toggle);config.parent=getElement(config.parent);typeCheckConfig(NAME,config,DefaultType);return config;}\nCollapse.prototype._getDimension=function(){return this._element.classList.contains(CLASS_NAME_HORIZONTAL)?WIDTH:HEIGHT;}\nCollapse.prototype._initializeChildren=function(){if(!this._config.parent){return;}\nconst children=SelectorEngine.find(CLASS_NAME_DEEPER_CHILDREN,this._config.parent);SelectorEngine.find(SELECTOR_DATA_TOGGLE,this._config.parent).filter(elem=>!children.includes(elem)).forEach(element=>{const selected=getElementFromSelector(element);if(selected){this._addAriaAndCollapsedClass([element],this._isShown(selected));}})}\nCollapse.prototype._addAriaAndCollapsedClass=function(triggerArray,isOpen){if(!triggerArray.length){return;}\ntriggerArray.forEach(elem=>{if(isOpen){elem.classList.remove(CLASS_NAME_COLLAPSED);}else{elem.classList.add(CLASS_NAME_COLLAPSED);}\nelem.setAttribute('aria-expanded',isOpen);})}\nCollapse.getInstance=function(element){return Data.get(getElement(element),this.DATA_KEY);}\nCollapse.getOrCreateInstance=function(element,config={}){return this.getInstance(element)||new this(element,typeof config==='object'?config:null);}\nCollapse.jQueryInterface=function(config){return this.each(function(){const _config={};if(typeof config==='string'&&/show|hide/.test(config)){_config.toggle=false;}\nconst data=Collapse.getOrCreateInstance(this,_config);if(typeof config==='string'){if(typeof data[config]==='undefined'){throw new TypeError(`No method named \"${config}\"`);}\ndata[config]();}})}\nEventHandler.on(document,EVENT_CLICK_DATA_API,SELECTOR_DATA_TOGGLE,function(event){if(event.target.tagName==='A'||(event.delegateTarget&&event.delegateTarget.tagName==='A')){event.preventDefault();}\nconst selector=getSelectorFromElement(this);const selectorElements=SelectorEngine.find(selector);selectorElements.forEach(element=>{Collapse.getOrCreateInstance(element,{toggle:false}).toggle();})})\ndefineJQueryPlugin(Collapse);return Collapse;});","jquery/bootstrap/tab.min.js":"define([\"./util/index\",\"./dom/event-handler\",\"./dom/selector-engine\"],function(Util,EventHandler,SelectorEngine){'use strict';const defineJQueryPlugin=Util.defineJQueryPlugin;const executeAfterTransition=Util.executeAfterTransition;const getElement=Util.getElement;const getElementFromSelector=Util.getElementFromSelector;const isDisabled=Util.isDisabled;const reflow=Util.reflow;const VERSION='5.1.3';const NAME='tab';const DATA_KEY='bs.tab';const EVENT_KEY=`.${DATA_KEY}`;const DATA_API_KEY='.data-api';const EVENT_HIDE=`hide${EVENT_KEY}`;const EVENT_HIDDEN=`hidden${EVENT_KEY}`;const EVENT_SHOW=`show${EVENT_KEY}`;const EVENT_SHOWN=`shown${EVENT_KEY}`;const EVENT_CLICK_DATA_API=`click${EVENT_KEY}${DATA_API_KEY}`;const CLASS_NAME_DROPDOWN_MENU='dropdown-menu';const CLASS_NAME_ACTIVE='active';const CLASS_NAME_FADE='fade';const CLASS_NAME_SHOW='show';const SELECTOR_DROPDOWN='.dropdown';const SELECTOR_NAV_LIST_GROUP='.nav, .list-group';const SELECTOR_ACTIVE='.active';const SELECTOR_ACTIVE_UL=':scope > li > .active';const SELECTOR_DATA_TOGGLE='[data-bs-toggle=\"tab\"], [data-bs-toggle=\"pill\"], [data-bs-toggle=\"list\"]';const SELECTOR_DROPDOWN_TOGGLE='.dropdown-toggle';const SELECTOR_DROPDOWN_ACTIVE_CHILD=':scope > .dropdown-menu .active';function Tab(element){element=getElement(element);if(!element){return;}\nthis._element=element;Data.set(this._element,DATA_KEY,this);}\nTab.VERSION=VERSION;Tab.NAME=NAME;Tab.DATA_KEY='bs.'+Tab.NAME;Tab.EVENT_KEY='.'+Tab.DATA_KEY;Tab.prototype.dispose=function(){Data.remove(this._element,this.constructor.DATA_KEY);EventHandler.off(this._element,this.constructor.EVENT_KEY);Object.getOwnPropertyNames(this).forEach(propertyName=>{this[propertyName]=null;})}\nTab.prototype._queueCallback=function(callback,element,isAnimated=true){executeAfterTransition(callback,element,isAnimated);}\nTab.prototype.show=function(){if((this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains(CLASS_NAME_ACTIVE))){return;}\nlet previous;const target=getElementFromSelector(this._element);const listElement=this._element.closest(SELECTOR_NAV_LIST_GROUP);if(listElement){const itemSelector=listElement.nodeName==='UL'||listElement.nodeName==='OL'?SELECTOR_ACTIVE_UL:SELECTOR_ACTIVE;previous=SelectorEngine.find(itemSelector,listElement);previous=previous[previous.length-1];}\nconst hideEvent=previous?EventHandler.trigger(previous,EVENT_HIDE,{relatedTarget:this._element}):null;const showEvent=EventHandler.trigger(this._element,EVENT_SHOW,{relatedTarget:previous});if(showEvent.defaultPrevented||(hideEvent!==null&&hideEvent.defaultPrevented)){return;}\nthis._activate(this._element,listElement);const complete=()=>{EventHandler.trigger(previous,EVENT_HIDDEN,{relatedTarget:this._element});EventHandler.trigger(this._element,EVENT_SHOWN,{relatedTarget:previous});};if(target){this._activate(target,target.parentNode,complete);}else{complete();}}\nTab.prototype._activate=function(element,container,callback){const activeElements=container&&(container.nodeName==='UL'||container.nodeName==='OL')?SelectorEngine.find(SELECTOR_ACTIVE_UL,container):SelectorEngine.children(container,SELECTOR_ACTIVE);const active=activeElements[0];const isTransitioning=callback&&(active&&active.classList.contains(CLASS_NAME_FADE));const complete=()=>this._transitionComplete(element,active,callback);if(active&&isTransitioning){active.classList.remove(CLASS_NAME_SHOW);this._queueCallback(complete,element,true);}else{complete();}}\nTab.prototype._transitionComplete=function(element,active,callback){if(active){active.classList.remove(CLASS_NAME_ACTIVE);const dropdownChild=SelectorEngine.findOne(SELECTOR_DROPDOWN_ACTIVE_CHILD,active.parentNode);if(dropdownChild){dropdownChild.classList.remove(CLASS_NAME_ACTIVE);}\nif(active.getAttribute('role')==='tab'){active.setAttribute('aria-selected',false);}}\nelement.classList.add(CLASS_NAME_ACTIVE);if(element.getAttribute('role')==='tab'){element.setAttribute('aria-selected',true);}\nreflow(element);if(element.classList.contains(CLASS_NAME_FADE)){element.classList.add(CLASS_NAME_SHOW);}\nlet parent=element.parentNode;if(parent&&parent.nodeName==='LI'){parent=parent.parentNode;}\nif(parent&&parent.classList.contains(CLASS_NAME_DROPDOWN_MENU)){const dropdownElement=element.closest(SELECTOR_DROPDOWN);if(dropdownElement){SelectorEngine.find(SELECTOR_DROPDOWN_TOGGLE,dropdownElement).forEach(dropdown=>dropdown.classList.add(CLASS_NAME_ACTIVE));}\nelement.setAttribute('aria-expanded',true);}\nif(callback){callback();}}\nTab.getInstance=function(element){return Data.get(getElement(element),this.DATA_KEY);}\nTab.getOrCreateInstance=function(element,config={}){return this.getInstance(element)||new this(element,typeof config==='object'?config:null);}\nTab.jQueryInterface=function(config){return this.each(function(){const data=Tab.getOrCreateInstance(this);if(typeof config==='string'){if(typeof data[config]==='undefined'){throw new TypeError(`No method named \"${config}\"`);}\ndata[config]();}})}\nEventHandler.on(document,EVENT_CLICK_DATA_API,SELECTOR_DATA_TOGGLE,function(event){if(['A','AREA'].includes(this.tagName)){event.preventDefault();}\nif(isDisabled(this)){return;}\nconst data=Tab.getOrCreateInstance(this);data.show();})\ndefineJQueryPlugin(Tab);return Tab;});","jquery/bootstrap/util/index.min.js":"define([\"jquery\",'domReady!'],function(){'use strict';const MAX_UID=1000000;const MILLISECONDS_MULTIPLIER=1000;const TRANSITION_END='transitionend';const toType=obj=>{if(obj===null||obj===undefined){return`${obj}`}\nreturn{}.toString.call(obj).match(/\\s([a-z]+)/i)[1].toLowerCase()};const getUID=prefix=>{do{prefix+=Math.floor(Math.random()*MAX_UID)}while(document.getElementById(prefix))\nreturn prefix};const getSelector=element=>{let selector=element.getAttribute('data-bs-target');if(!selector||selector==='#'){let hrefAttr=element.getAttribute('href');if(!hrefAttr||(!hrefAttr.includes('#')&&!hrefAttr.startsWith('.'))){return null}\nif(hrefAttr.includes('#')&&!hrefAttr.startsWith('#')){hrefAttr=`#${hrefAttr.split('#')[1]}`}\nselector=hrefAttr&&hrefAttr!=='#'?hrefAttr.trim():null}\nreturn selector};const getSelectorFromElement=element=>{const selector=getSelector(element);if(selector){return document.querySelector(selector)?selector:null}\nreturn null};const getElementFromSelector=element=>{const selector=getSelector(element);return selector?document.querySelector(selector):null};const getTransitionDurationFromElement=element=>{if(!element){return 0}\nlet{transitionDuration,transitionDelay}=window.getComputedStyle(element);const floatTransitionDuration=Number.parseFloat(transitionDuration);const floatTransitionDelay=Number.parseFloat(transitionDelay);if(!floatTransitionDuration&&!floatTransitionDelay){return 0}\ntransitionDuration=transitionDuration.split(',')[0]\ntransitionDelay=transitionDelay.split(',')[0]\nreturn(Number.parseFloat(transitionDuration)+Number.parseFloat(transitionDelay))*MILLISECONDS_MULTIPLIER};const triggerTransitionEnd=element=>{element.dispatchEvent(new Event(TRANSITION_END))};const isElement=obj=>{if(!obj||typeof obj!=='object'){return false}\nif(typeof obj.jquery!=='undefined'){obj=obj[0]}\nreturn typeof obj.nodeType!=='undefined'};const getElement=obj=>{if(isElement(obj)){return obj.jquery?obj[0]:obj}\nif(typeof obj==='string'&&obj.length>0){return document.querySelector(obj)}\nreturn null};const typeCheckConfig=(componentName,config,configTypes)=>{Object.keys(configTypes).forEach(property=>{const expectedTypes=configTypes[property];const value=config[property];const valueType=value&&isElement(value)?'element':toType(value);if(!new RegExp(expectedTypes).test(valueType)){throw new TypeError(`${componentName.toUpperCase()}: Option \"${property}\" provided type \"${valueType}\" but expected type \"${expectedTypes}\".`)}})};const isVisible=element=>{if(!isElement(element)||element.getClientRects().length===0){return false}\nreturn getComputedStyle(element).getPropertyValue('visibility')==='visible'};const isDisabled=element=>{if(!element||element.nodeType!==Node.ELEMENT_NODE){return true}\nif(element.classList.contains('disabled')){return true}\nif(typeof element.disabled!=='undefined'){return element.disabled}\nreturn element.hasAttribute('disabled')&&element.getAttribute('disabled')!=='false'};const findShadowRoot=element=>{if(!document.documentElement.attachShadow){return null}\nif(typeof element.getRootNode==='function'){const root=element.getRootNode();return root instanceof ShadowRoot?root:null}\nif(element instanceof ShadowRoot){return element}\nif(!element.parentNode){return null}\nreturn findShadowRoot(element.parentNode)};const noop=()=>{};const reflow=element=>{element.offsetHeight};const getjQuery=()=>{const{jQuery}=window;if(jQuery&&!document.body.hasAttribute('data-bs-no-jquery')){return jQuery}\nreturn null};const DOMContentLoadedCallbacks=[];const onDOMContentLoaded=callback=>{if(document.readyState==='loading'){if(!DOMContentLoadedCallbacks.length){document.addEventListener('DOMContentLoaded',()=>{DOMContentLoadedCallbacks.forEach(callback=>callback())})}\nDOMContentLoadedCallbacks.push(callback)}else{callback()}};const isRTL=()=>document.documentElement.dir==='rtl';const defineJQueryPlugin=plugin=>{onDOMContentLoaded(()=>{const $=getjQuery();if($){const name=plugin.NAME;const JQUERY_NO_CONFLICT=$.fn[name];$.fn[name]=plugin.jQueryInterface\n$.fn[name].Constructor=plugin\n$.fn[name].noConflict=()=>{$.fn[name]=JQUERY_NO_CONFLICT\nreturn plugin.jQueryInterface}}})};const execute=callback=>{if(typeof callback==='function'){callback()}};const executeAfterTransition=(callback,transitionElement,waitForTransition=true)=>{if(!waitForTransition){execute(callback)\nreturn}\nconst durationPadding=5;const emulatedDuration=getTransitionDurationFromElement(transitionElement)+durationPadding;let called=false;const handler=({target})=>{if(target!==transitionElement){return}\ncalled=true\ntransitionElement.removeEventListener(TRANSITION_END,handler)\nexecute(callback)};transitionElement.addEventListener(TRANSITION_END,handler)\nsetTimeout(()=>{if(!called){triggerTransitionEnd(transitionElement)}},emulatedDuration)};const getNextActiveElement=(list,activeElement,shouldGetNext,isCycleAllowed)=>{let index=list.indexOf(activeElement);if(index===-1){return list[!shouldGetNext&&isCycleAllowed?list.length-1:0]}\nconst listLength=list.length;index+=shouldGetNext?1:-1\nif(isCycleAllowed){index=(index+listLength)%listLength}\nreturn list[Math.max(0,Math.min(index,listLength-1))]};return{getElement,getUID,getSelectorFromElement,getElementFromSelector,getTransitionDurationFromElement,triggerTransitionEnd,isElement,typeCheckConfig,isVisible,isDisabled,findShadowRoot,noop,getNextActiveElement,reflow,getjQuery,onDOMContentLoaded,isRTL,defineJQueryPlugin,execute,executeAfterTransition};});","jquery/bootstrap/dom/event-handler.min.js":"define([\"../util/index\"],function(Util){'use strict';const getjQuery=Util.getjQuery;const namespaceRegex=/[^.]*(?=\\..*)\\.|.*/;const stripNameRegex=/\\..*/;const stripUidRegex=/::\\d+$/;const eventRegistry={};let uidEvent=1;const customEvents={mouseenter:'mouseover',mouseleave:'mouseout'};const customEventsRegex=/^(mouseenter|mouseleave)/i;const nativeEvents=new Set(['click','dblclick','mouseup','mousedown','contextmenu','mousewheel','DOMMouseScroll','mouseover','mouseout','mousemove','selectstart','selectend','keydown','keypress','keyup','orientationchange','touchstart','touchmove','touchend','touchcancel','pointerdown','pointermove','pointerup','pointerleave','pointercancel','gesturestart','gesturechange','gestureend','focus','blur','change','reset','select','submit','focusin','focusout','load','unload','beforeunload','resize','move','DOMContentLoaded','readystatechange','error','abort','scroll']);function getUidEvent(element,uid){return(uid&&`${uid}::${uidEvent++}`)||element.uidEvent||uidEvent++}\nfunction getEvent(element){const uid=getUidEvent(element);element.uidEvent=uid\neventRegistry[uid]=eventRegistry[uid]||{}\nreturn eventRegistry[uid]}\nfunction bootstrapHandler(element,fn){return function handler(event){event.delegateTarget=element\nif(handler.oneOff){EventHandler.off(element,event.type,fn)}\nreturn fn.apply(element,[event])}}\nfunction bootstrapDelegationHandler(element,selector,fn){return function handler(event){const domElements=element.querySelectorAll(selector);for(let{target}=event;target&&target!==this;target=target.parentNode){for(let i=domElements.length;i--;){if(domElements[i]===target){event.delegateTarget=target\nif(handler.oneOff){EventHandler.off(element,event.type,selector,fn)}\nreturn fn.apply(target,[event])}}}\nreturn null}}\nfunction findHandler(events,handler,delegationSelector=null){const uidEventList=Object.keys(events);for(let i=0,len=uidEventList.length;i<len;i++){const event=events[uidEventList[i]];if(event.originalHandler===handler&&event.delegationSelector===delegationSelector){return event}}\nreturn null}\nfunction normalizeParams(originalTypeEvent,handler,delegationFn){const delegation=typeof handler==='string';const originalHandler=delegation?delegationFn:handler;let typeEvent=getTypeEvent(originalTypeEvent);const isNative=nativeEvents.has(typeEvent);if(!isNative){typeEvent=originalTypeEvent}\nreturn[delegation,originalHandler,typeEvent]}\nfunction addHandler(element,originalTypeEvent,handler,delegationFn,oneOff){if(typeof originalTypeEvent!=='string'||!element){return}\nif(!handler){handler=delegationFn\ndelegationFn=null}\nif(customEventsRegex.test(originalTypeEvent)){const wrapFn=fn=>{return function(event){if(!event.relatedTarget||(event.relatedTarget!==event.delegateTarget&&!event.delegateTarget.contains(event.relatedTarget))){return fn.call(this,event)}}};if(delegationFn){delegationFn=wrapFn(delegationFn)}else{handler=wrapFn(handler)}}\nconst[delegation,originalHandler,typeEvent]=normalizeParams(originalTypeEvent,handler,delegationFn);const events=getEvent(element);const handlers=events[typeEvent]||(events[typeEvent]={});const previousFn=findHandler(handlers,originalHandler,delegation?handler:null);if(previousFn){previousFn.oneOff=previousFn.oneOff&&oneOff\nreturn}\nconst uid=getUidEvent(originalHandler,originalTypeEvent.replace(namespaceRegex,''));const fn=delegation?bootstrapDelegationHandler(element,handler,delegationFn):bootstrapHandler(element,handler);fn.delegationSelector=delegation?handler:null\nfn.originalHandler=originalHandler\nfn.oneOff=oneOff\nfn.uidEvent=uid\nhandlers[uid]=fn\nelement.addEventListener(typeEvent,fn,delegation)}\nfunction removeHandler(element,events,typeEvent,handler,delegationSelector){const fn=findHandler(events[typeEvent],handler,delegationSelector);if(!fn){return}\nelement.removeEventListener(typeEvent,fn,Boolean(delegationSelector))\ndelete events[typeEvent][fn.uidEvent]}\nfunction removeNamespacedHandlers(element,events,typeEvent,namespace){const storeElementEvent=events[typeEvent]||{};Object.keys(storeElementEvent).forEach(handlerKey=>{if(handlerKey.includes(namespace)){const event=storeElementEvent[handlerKey];removeHandler(element,events,typeEvent,event.originalHandler,event.delegationSelector)}})}\nfunction getTypeEvent(event){event=event.replace(stripNameRegex,'')\nreturn customEvents[event]||event}\nreturn{on:function(element,event,handler,delegationFn){addHandler(element,event,handler,delegationFn,false)},one:function(element,event,handler,delegationFn){addHandler(element,event,handler,delegationFn,true)},off:function(element,originalTypeEvent,handler,delegationFn){if(typeof originalTypeEvent!=='string'||!element){return}\nconst[delegation,originalHandler,typeEvent]=normalizeParams(originalTypeEvent,handler,delegationFn);const inNamespace=typeEvent!==originalTypeEvent;const events=getEvent(element);const isNamespace=originalTypeEvent.startsWith('.');if(typeof originalHandler!=='undefined'){if(!events||!events[typeEvent]){return}\nremoveHandler(element,events,typeEvent,originalHandler,delegation?handler:null)\nreturn}\nif(isNamespace){Object.keys(events).forEach(elementEvent=>{removeNamespacedHandlers(element,events,elementEvent,originalTypeEvent.slice(1))})}\nconst storeElementEvent=events[typeEvent]||{};Object.keys(storeElementEvent).forEach(keyHandlers=>{const handlerKey=keyHandlers.replace(stripUidRegex,'');if(!inNamespace||originalTypeEvent.includes(handlerKey)){const event=storeElementEvent[keyHandlers];removeHandler(element,events,typeEvent,event.originalHandler,event.delegationSelector)}})},trigger:function(element,event,args){if(typeof event!=='string'||!element){return null}\nconst $=getjQuery();const typeEvent=getTypeEvent(event);const inNamespace=event!==typeEvent;const isNative=nativeEvents.has(typeEvent);let jQueryEvent;let bubbles=true;let nativeDispatch=true;let defaultPrevented=false;let evt=null;if(inNamespace&&$){jQueryEvent=$.Event(event,args)\n$(element).trigger(jQueryEvent)\nbubbles=!jQueryEvent.isPropagationStopped()\nnativeDispatch=!jQueryEvent.isImmediatePropagationStopped()\ndefaultPrevented=jQueryEvent.isDefaultPrevented()}\nif(isNative){evt=document.createEvent('HTMLEvents')\nevt.initEvent(typeEvent,bubbles,true)}else{evt=new CustomEvent(event,{bubbles,cancelable:true})}\nif(typeof args!=='undefined'){Object.keys(args).forEach(key=>{Object.defineProperty(evt,key,{get(){return args[key]}})})}\nif(defaultPrevented){evt.preventDefault()}\nif(nativeDispatch){element.dispatchEvent(evt)}\nif(evt.defaultPrevented&&typeof jQueryEvent!=='undefined'){jQueryEvent.preventDefault()}\nreturn evt}}});","jquery/bootstrap/dom/selector-engine.min.js":"define([\"../util/index\"],function(Util){'use strict';const isDisabled=Util.isDisabled;const isVisible=Util.isVisible;const NODE_TEXT=3;return{find:function(selector,element=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(element,selector))},findOne:function(selector,element=document.documentElement){return Element.prototype.querySelector.call(element,selector)},children:function(element,selector){return[].concat(...element.children).filter(child=>child.matches(selector))},parents:function(element,selector){const parents=[];let ancestor=element.parentNode;while(ancestor&&ancestor.nodeType===Node.ELEMENT_NODE&&ancestor.nodeType!==NODE_TEXT){if(ancestor.matches(selector)){parents.push(ancestor)}\nancestor=ancestor.parentNode}\nreturn parents},prev:function(element,selector){let previous=element.previousElementSibling;while(previous){if(previous.matches(selector)){return[previous]}\nprevious=previous.previousElementSibling}\nreturn[]},next:function(element,selector){let next=element.nextElementSibling;while(next){if(next.matches(selector)){return[next]}\nnext=next.nextElementSibling}\nreturn[]},focusableChildren:function(element){const focusables=['a','button','input','textarea','select','details','[tabindex]','[contenteditable=\"true\"]'].map(selector=>`${selector}:not([tabindex^=\"-\"])`).join(', ');return this.find(focusables,element).filter(el=>!isDisabled(el)&&isVisible(el))}}});","jquery/bootstrap/dom/data.min.js":"define([],function(){'use strict';const elementMap=new Map();return{set:function(element,key,instance){if(!elementMap.has(element)){elementMap.set(element,new Map())}\nconst instanceMap=elementMap.get(element);if(!instanceMap.has(key)&&instanceMap.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(instanceMap.keys())[0]}.`)\nreturn}\ninstanceMap.set(key,instance)},get:function(element,key){if(elementMap.has(element)){return elementMap.get(element).get(key)||null}\nreturn null},remove:function(element,key){if(!elementMap.has(element)){return}\nconst instanceMap=elementMap.get(element);instanceMap.delete(key)\nif(instanceMap.size===0){elementMap.delete(element)}}}});","jquery/bootstrap/dom/manipulator.min.js":"define([],function(){'use strict';function normalizeData(val){if(val==='true'){return true}\nif(val==='false'){return false}\nif(val===Number(val).toString()){return Number(val)}\nif(val===''||val==='null'){return null}\nreturn val}\nfunction normalizeDataKey(key){return key.replace(/[A-Z]/g,chr=>`-${chr.toLowerCase()}`)}\nreturn{setDataAttribute:function(element,key,value){element.setAttribute(`data-bs-${normalizeDataKey(key)}`,value)},removeDataAttribute:function(element,key){element.removeAttribute(`data-bs-${normalizeDataKey(key)}`)},getDataAttributes:function(element){if(!element){return{}}\nconst attributes={};Object.keys(element.dataset).filter(key=>key.startsWith('bs')).forEach(key=>{let pureKey=key.replace(/^bs/,'');pureKey=pureKey.charAt(0).toLowerCase()+pureKey.slice(1,pureKey.length)\nattributes[pureKey]=normalizeData(element.dataset[key])})\nreturn attributes},getDataAttribute:function(element,key){return normalizeData(element.getAttribute(`data-bs-${normalizeDataKey(key)}`))},offset:function(element){const rect=element.getBoundingClientRect();return{top:rect.top+window.pageYOffset,left:rect.left+window.pageXOffset}},position:function(element){return{top:element.offsetTop,left:element.offsetLeft}}}});","jquery/colorpicker/js/colorpicker.min.js":"define([\"jquery\",],function($){var ColorPicker=function(){var\nids={},inAction,charMin=65,visible,tpl='<div class=\"colorpicker\"><div class=\"colorpicker_color\"><div><div></div></div></div><div class=\"colorpicker_hue\"><div></div></div><div class=\"colorpicker_new_color\"></div><div class=\"colorpicker_current_color\"></div><div class=\"colorpicker_hex\"><input type=\"text\" maxlength=\"6\" size=\"6\" /></div><div class=\"colorpicker_rgb_r colorpicker_field\"><input type=\"text\" maxlength=\"3\" size=\"3\" /><span></span></div><div class=\"colorpicker_rgb_g colorpicker_field\"><input type=\"text\" maxlength=\"3\" size=\"3\" /><span></span></div><div class=\"colorpicker_rgb_b colorpicker_field\"><input type=\"text\" maxlength=\"3\" size=\"3\" /><span></span></div><div class=\"colorpicker_hsb_h colorpicker_field\"><input type=\"text\" maxlength=\"3\" size=\"3\" /><span></span></div><div class=\"colorpicker_hsb_s colorpicker_field\"><input type=\"text\" maxlength=\"3\" size=\"3\" /><span></span></div><div class=\"colorpicker_hsb_b colorpicker_field\"><input type=\"text\" maxlength=\"3\" size=\"3\" /><span></span></div><div class=\"colorpicker_submit\"></div></div>',defaults={eventName:'click',onShow:function(){},onBeforeShow:function(){},onHide:function(){},onChange:function(){},onSubmit:function(){},color:'ff0000',livePreview:true,flat:false},fillRGBFields=function(hsb,cal){var rgb=HSBToRGB(hsb);$(cal).data('colorpicker').fields.eq(1).val(rgb.r).end().eq(2).val(rgb.g).end().eq(3).val(rgb.b).end();},fillHSBFields=function(hsb,cal){$(cal).data('colorpicker').fields.eq(4).val(hsb.h).end().eq(5).val(hsb.s).end().eq(6).val(hsb.b).end();},fillHexFields=function(hsb,cal){$(cal).data('colorpicker').fields.eq(0).val(HSBToHex(hsb)).end();},setSelector=function(hsb,cal){$(cal).data('colorpicker').selector.css('backgroundColor','#'+HSBToHex({h:hsb.h,s:100,b:100}));$(cal).data('colorpicker').selectorIndic.css({left:parseInt(150*hsb.s/100,10),top:parseInt(150*(100-hsb.b)/100,10)});},setHue=function(hsb,cal){$(cal).data('colorpicker').hue.css('top',parseInt(150-150*hsb.h/360,10));},setCurrentColor=function(hsb,cal){$(cal).data('colorpicker').currentColor.css('backgroundColor','#'+HSBToHex(hsb));},setNewColor=function(hsb,cal){$(cal).data('colorpicker').newColor.css('backgroundColor','#'+HSBToHex(hsb));},keyDown=function(ev){var pressedKey=ev.charCode||ev.keyCode||-1;if((pressedKey>charMin&&pressedKey<=90)||pressedKey==32){return false;}\nvar cal=$(this).parent().parent();if(cal.data('colorpicker').livePreview===true){change.apply(this);}},change=function(ev){var cal=$(this).parent().parent(),col;if(this.parentNode.className.indexOf('_hex')>0){cal.data('colorpicker').color=col=HexToHSB(fixHex(this.value));}else if(this.parentNode.className.indexOf('_hsb')>0){cal.data('colorpicker').color=col=fixHSB({h:parseInt(cal.data('colorpicker').fields.eq(4).val(),10),s:parseInt(cal.data('colorpicker').fields.eq(5).val(),10),b:parseInt(cal.data('colorpicker').fields.eq(6).val(),10)});}else{cal.data('colorpicker').color=col=RGBToHSB(fixRGB({r:parseInt(cal.data('colorpicker').fields.eq(1).val(),10),g:parseInt(cal.data('colorpicker').fields.eq(2).val(),10),b:parseInt(cal.data('colorpicker').fields.eq(3).val(),10)}));}\nif(ev){fillRGBFields(col,cal.get(0));fillHexFields(col,cal.get(0));fillHSBFields(col,cal.get(0));}\nsetSelector(col,cal.get(0));setHue(col,cal.get(0));setNewColor(col,cal.get(0));cal.data('colorpicker').onChange.apply(cal,[col,HSBToHex(col),HSBToRGB(col)]);},blur=function(ev){var cal=$(this).parent().parent();cal.data('colorpicker').fields.parent().removeClass('colorpicker_focus');},focus=function(){charMin=this.parentNode.className.indexOf('_hex')>0?70:65;$(this).parent().parent().data('colorpicker').fields.parent().removeClass('colorpicker_focus');$(this).parent().addClass('colorpicker_focus');},downIncrement=function(ev){var field=$(this).parent().find('input').focus();var current={el:$(this).parent().addClass('colorpicker_slider'),max:this.parentNode.className.indexOf('_hsb_h')>0?360:(this.parentNode.className.indexOf('_hsb')>0?100:255),y:ev.pageY,field:field,val:parseInt(field.val(),10),preview:$(this).parent().parent().data('colorpicker').livePreview};$(document).bind('mouseup',current,upIncrement);$(document).bind('mousemove',current,moveIncrement);},moveIncrement=function(ev){ev.data.field.val(Math.max(0,Math.min(ev.data.max,parseInt(ev.data.val+ev.pageY-ev.data.y,10))));if(ev.data.preview){change.apply(ev.data.field.get(0),[true]);}\nreturn false;},upIncrement=function(ev){change.apply(ev.data.field.get(0),[true]);ev.data.el.removeClass('colorpicker_slider').find('input').focus();$(document).unbind('mouseup',upIncrement);$(document).unbind('mousemove',moveIncrement);return false;},downHue=function(ev){var current={cal:$(this).parent(),y:$(this).offset().top};current.preview=current.cal.data('colorpicker').livePreview;$(document).bind('mouseup',current,upHue);$(document).bind('mousemove',current,moveHue);},moveHue=function(ev){change.apply(ev.data.cal.data('colorpicker').fields.eq(4).val(parseInt(360*(150-Math.max(0,Math.min(150,(ev.pageY-ev.data.y))))/150,10)).get(0),[ev.data.preview]);return false;},upHue=function(ev){fillRGBFields(ev.data.cal.data('colorpicker').color,ev.data.cal.get(0));fillHexFields(ev.data.cal.data('colorpicker').color,ev.data.cal.get(0));$(document).unbind('mouseup',upHue);$(document).unbind('mousemove',moveHue);return false;},downSelector=function(ev){var current={cal:$(this).parent(),pos:$(this).offset()};current.preview=current.cal.data('colorpicker').livePreview;$(document).bind('mouseup',current,upSelector);$(document).bind('mousemove',current,moveSelector);},moveSelector=function(ev){change.apply(ev.data.cal.data('colorpicker').fields.eq(6).val(parseInt(100*(150-Math.max(0,Math.min(150,(ev.pageY-ev.data.pos.top))))/150,10)).end().eq(5).val(parseInt(100*(Math.max(0,Math.min(150,(ev.pageX-ev.data.pos.left))))/150,10)).get(0),[ev.data.preview]);return false;},upSelector=function(ev){fillRGBFields(ev.data.cal.data('colorpicker').color,ev.data.cal.get(0));fillHexFields(ev.data.cal.data('colorpicker').color,ev.data.cal.get(0));$(document).unbind('mouseup',upSelector);$(document).unbind('mousemove',moveSelector);return false;},enterSubmit=function(ev){$(this).addClass('colorpicker_focus');},leaveSubmit=function(ev){$(this).removeClass('colorpicker_focus');},clickSubmit=function(ev){var cal=$(this).parent();var col=cal.data('colorpicker').color;cal.data('colorpicker').origColor=col;setCurrentColor(col,cal.get(0));cal.data('colorpicker').onSubmit(col,HSBToHex(col),HSBToRGB(col),cal.data('colorpicker').el);},show=function(ev){var cal=$('#'+$(this).data('colorpickerId'));cal.data('colorpicker').onBeforeShow.apply(this,[cal.get(0)]);var pos=$(this).offset();var viewPort=getViewport();var top=pos.top+this.offsetHeight;var left=pos.left;if(top+176>viewPort.t+viewPort.h){top-=this.offsetHeight+176;}\nif(left+356>viewPort.l+viewPort.w){left-=356;}\ncal.css({left:left+'px',top:top+'px'});if(cal.data('colorpicker').onShow.apply(this,[cal.get(0)])!=false){cal.show();}\n$(document).bind('mousedown',{cal:cal},hide);return false;},hide=function(ev){if(!isChildOf(ev.data.cal.get(0),ev.target,ev.data.cal.get(0))){if(ev.data.cal.data('colorpicker').onHide.apply(this,[ev.data.cal.get(0)])!=false){ev.data.cal.hide();}\n$(document).unbind('mousedown',hide);}},isChildOf=function(parentEl,el,container){if(parentEl==el){return true;}\nif(parentEl.contains){return parentEl.contains(el);}\nif(parentEl.compareDocumentPosition){return!!(parentEl.compareDocumentPosition(el)&16);}\nvar prEl=el.parentNode;while(prEl&&prEl!=container){if(prEl==parentEl)\nreturn true;prEl=prEl.parentNode;}\nreturn false;},getViewport=function(){var m=document.compatMode=='CSS1Compat';return{l:window.pageXOffset||(m?document.documentElement.scrollLeft:document.body.scrollLeft),t:window.pageYOffset||(m?document.documentElement.scrollTop:document.body.scrollTop),w:window.innerWidth||(m?document.documentElement.clientWidth:document.body.clientWidth),h:window.innerHeight||(m?document.documentElement.clientHeight:document.body.clientHeight)};},fixHSB=function(hsb){return{h:Math.min(360,Math.max(0,hsb.h)),s:Math.min(100,Math.max(0,hsb.s)),b:Math.min(100,Math.max(0,hsb.b))};},fixRGB=function(rgb){return{r:Math.min(255,Math.max(0,rgb.r)),g:Math.min(255,Math.max(0,rgb.g)),b:Math.min(255,Math.max(0,rgb.b))};},fixHex=function(hex){var len=6-hex.length;if(len>0){var o=[];for(var i=0;i<len;i++){o.push('0');}\no.push(hex);hex=o.join('');}\nreturn hex;},HexToRGB=function(hex){var hex=parseInt(((hex.indexOf('#')>-1)?hex.substring(1):hex),16);return{r:hex>>16,g:(hex&0x00FF00)>>8,b:(hex&0x0000FF)};},HexToHSB=function(hex){return RGBToHSB(HexToRGB(hex));},RGBToHSB=function(rgb){var hsb={h:0,s:0,b:0};var min=Math.min(rgb.r,rgb.g,rgb.b);var max=Math.max(rgb.r,rgb.g,rgb.b);var delta=max-min;hsb.b=max;if(max!=0){}\nhsb.s=max!=0?255*delta / max:0;if(hsb.s!=0){if(rgb.r==max){hsb.h=(rgb.g-rgb.b)/ delta;}else if(rgb.g==max){hsb.h=2+(rgb.b-rgb.r)/ delta;}else{hsb.h=4+(rgb.r-rgb.g)/ delta;}}else{hsb.h=-1;}\nhsb.h*=60;if(hsb.h<0){hsb.h+=360;}\nhsb.s*=100/255;hsb.b*=100/255;return hsb;},HSBToRGB=function(hsb){var rgb={};var h=Math.round(hsb.h);var s=Math.round(hsb.s*255/100);var v=Math.round(hsb.b*255/100);if(s==0){rgb.r=rgb.g=rgb.b=v;}else{var t1=v;var t2=(255-s)*v/255;var t3=(t1-t2)*(h%60)/60;if(h==360)h=0;if(h<60){rgb.r=t1;rgb.b=t2;rgb.g=t2+t3}\nelse if(h<120){rgb.g=t1;rgb.b=t2;rgb.r=t1-t3}\nelse if(h<180){rgb.g=t1;rgb.r=t2;rgb.b=t2+t3}\nelse if(h<240){rgb.b=t1;rgb.r=t2;rgb.g=t1-t3}\nelse if(h<300){rgb.b=t1;rgb.g=t2;rgb.r=t2+t3}\nelse if(h<360){rgb.r=t1;rgb.g=t2;rgb.b=t1-t3}\nelse{rgb.r=0;rgb.g=0;rgb.b=0}}\nreturn{r:Math.round(rgb.r),g:Math.round(rgb.g),b:Math.round(rgb.b)};},RGBToHex=function(rgb){var hex=[rgb.r.toString(16),rgb.g.toString(16),rgb.b.toString(16)];$.each(hex,function(nr,val){if(val.length==1){hex[nr]='0'+val;}});return hex.join('');},HSBToHex=function(hsb){return RGBToHex(HSBToRGB(hsb));},restoreOriginal=function(){var cal=$(this).parent();var col=cal.data('colorpicker').origColor;cal.data('colorpicker').color=col;fillRGBFields(col,cal.get(0));fillHexFields(col,cal.get(0));fillHSBFields(col,cal.get(0));setSelector(col,cal.get(0));setHue(col,cal.get(0));setNewColor(col,cal.get(0));};return{init:function(opt){opt=$.extend({},defaults,opt||{});if(typeof opt.color=='string'){opt.color=HexToHSB(opt.color);}else if(opt.color.r!=undefined&&opt.color.g!=undefined&&opt.color.b!=undefined){opt.color=RGBToHSB(opt.color);}else if(opt.color.h!=undefined&&opt.color.s!=undefined&&opt.color.b!=undefined){opt.color=fixHSB(opt.color);}else{return this;}\nreturn this.each(function(){if(!$(this).data('colorpickerId')){var options=$.extend({},opt);options.origColor=opt.color;var id='collorpicker_'+parseInt(Math.random()*1000);$(this).data('colorpickerId',id);var cal=$(tpl).attr('id',id);if(options.flat){cal.appendTo(this).show();}else{cal.appendTo(document.body);}\noptions.fields=cal.find('input').bind('keyup',keyDown).bind('change',change).bind('blur',blur).bind('focus',focus);cal.find('span').bind('mousedown',downIncrement).end().find('>div.colorpicker_current_color').bind('click',restoreOriginal);options.selector=cal.find('div.colorpicker_color').bind('mousedown',downSelector);options.selectorIndic=options.selector.find('div div');options.el=this;options.hue=cal.find('div.colorpicker_hue div');cal.find('div.colorpicker_hue').bind('mousedown',downHue);options.newColor=cal.find('div.colorpicker_new_color');options.currentColor=cal.find('div.colorpicker_current_color');cal.data('colorpicker',options);cal.find('div.colorpicker_submit').bind('mouseenter',enterSubmit).bind('mouseleave',leaveSubmit).bind('click',clickSubmit);fillRGBFields(options.color,cal.get(0));fillHSBFields(options.color,cal.get(0));fillHexFields(options.color,cal.get(0));setHue(options.color,cal.get(0));setSelector(options.color,cal.get(0));setCurrentColor(options.color,cal.get(0));setNewColor(options.color,cal.get(0));if(options.flat){cal.css({position:'relative',display:'block'});}else{$(this).bind(options.eventName,show);}}});},showPicker:function(){return this.each(function(){if($(this).data('colorpickerId')){show.apply(this);}});},hidePicker:function(){return this.each(function(){if($(this).data('colorpickerId')){$('#'+$(this).data('colorpickerId')).hide();}});},setColor:function(col){if(typeof col=='string'){col=HexToHSB(col);}else if(col.r!=undefined&&col.g!=undefined&&col.b!=undefined){col=RGBToHSB(col);}else if(col.h!=undefined&&col.s!=undefined&&col.b!=undefined){col=fixHSB(col);}else{return this;}\nreturn this.each(function(){if($(this).data('colorpickerId')){var cal=$('#'+$(this).data('colorpickerId'));cal.data('colorpicker').color=col;cal.data('colorpicker').origColor=col;fillRGBFields(col,cal.get(0));fillHSBFields(col,cal.get(0));fillHexFields(col,cal.get(0));setHue(col,cal.get(0));setSelector(col,cal.get(0));setCurrentColor(col,cal.get(0));setNewColor(col,cal.get(0));}});}};}();$.fn.extend({ColorPicker:ColorPicker.init,ColorPickerHide:ColorPicker.hidePicker,ColorPickerShow:ColorPicker.showPicker,ColorPickerSetColor:ColorPicker.setColor});});","jquery/spectrum/tinycolor.min.js":"(function(Math){var trimLeft=/^\\s+/,trimRight=/\\s+$/,tinyCounter=0,mathRound=Math.round,mathMin=Math.min,mathMax=Math.max,mathRandom=Math.random;function tinycolor(color,opts){color=(color)?color:'';opts=opts||{};if(color instanceof tinycolor){return color;}\nif(!(this instanceof tinycolor)){return new tinycolor(color,opts);}\nvar rgb=inputToRGB(color);this._originalInput=color,this._r=rgb.r,this._g=rgb.g,this._b=rgb.b,this._a=rgb.a,this._roundA=mathRound(100*this._a)/ 100,this._format=opts.format||rgb.format;this._gradientType=opts.gradientType;if(this._r<1){this._r=mathRound(this._r);}\nif(this._g<1){this._g=mathRound(this._g);}\nif(this._b<1){this._b=mathRound(this._b);}\nthis._ok=rgb.ok;this._tc_id=tinyCounter++;}\ntinycolor.prototype={isDark:function(){return this.getBrightness()<128;},isLight:function(){return!this.isDark();},isValid:function(){return this._ok;},getOriginalInput:function(){return this._originalInput;},getFormat:function(){return this._format;},getAlpha:function(){return this._a;},getBrightness:function(){var rgb=this.toRgb();return(rgb.r*299+rgb.g*587+rgb.b*114)/ 1000;},getLuminance:function(){var rgb=this.toRgb();var RsRGB,GsRGB,BsRGB,R,G,B;RsRGB=rgb.r/255;GsRGB=rgb.g/255;BsRGB=rgb.b/255;if(RsRGB<=0.03928){R=RsRGB / 12.92;}else{R=Math.pow(((RsRGB+0.055)/ 1.055),2.4);}\nif(GsRGB<=0.03928){G=GsRGB / 12.92;}else{G=Math.pow(((GsRGB+0.055)/ 1.055),2.4);}\nif(BsRGB<=0.03928){B=BsRGB / 12.92;}else{B=Math.pow(((BsRGB+0.055)/ 1.055),2.4);}\nreturn(0.2126*R)+(0.7152*G)+(0.0722*B);},setAlpha:function(value){this._a=boundAlpha(value);this._roundA=mathRound(100*this._a)/ 100;return this;},toHsv:function(){var hsv=rgbToHsv(this._r,this._g,this._b);return{h:hsv.h*360,s:hsv.s,v:hsv.v,a:this._a};},toHsvString:function(){var hsv=rgbToHsv(this._r,this._g,this._b);var h=mathRound(hsv.h*360),s=mathRound(hsv.s*100),v=mathRound(hsv.v*100);return(this._a==1)?\"hsv(\"+h+\", \"+s+\"%, \"+v+\"%)\":\"hsva(\"+h+\", \"+s+\"%, \"+v+\"%, \"+this._roundA+\")\";},toHsl:function(){var hsl=rgbToHsl(this._r,this._g,this._b);return{h:hsl.h*360,s:hsl.s,l:hsl.l,a:this._a};},toHslString:function(){var hsl=rgbToHsl(this._r,this._g,this._b);var h=mathRound(hsl.h*360),s=mathRound(hsl.s*100),l=mathRound(hsl.l*100);return(this._a==1)?\"hsl(\"+h+\", \"+s+\"%, \"+l+\"%)\":\"hsla(\"+h+\", \"+s+\"%, \"+l+\"%, \"+this._roundA+\")\";},toHex:function(allow3Char){return rgbToHex(this._r,this._g,this._b,allow3Char);},toHexString:function(allow3Char){return'#'+this.toHex(allow3Char);},toHex8:function(allow4Char){return rgbaToHex(this._r,this._g,this._b,this._a,allow4Char);},toHex8String:function(allow4Char){return'#'+this.toHex8(allow4Char);},toRgb:function(){return{r:mathRound(this._r),g:mathRound(this._g),b:mathRound(this._b),a:this._a};},toRgbString:function(){return(this._a==1)?\"rgb(\"+mathRound(this._r)+\", \"+mathRound(this._g)+\", \"+mathRound(this._b)+\")\":\"rgba(\"+mathRound(this._r)+\", \"+mathRound(this._g)+\", \"+mathRound(this._b)+\", \"+this._roundA+\")\";},toPercentageRgb:function(){return{r:mathRound(bound01(this._r,255)*100)+\"%\",g:mathRound(bound01(this._g,255)*100)+\"%\",b:mathRound(bound01(this._b,255)*100)+\"%\",a:this._a};},toPercentageRgbString:function(){return(this._a==1)?\"rgb(\"+mathRound(bound01(this._r,255)*100)+\"%, \"+mathRound(bound01(this._g,255)*100)+\"%, \"+mathRound(bound01(this._b,255)*100)+\"%)\":\"rgba(\"+mathRound(bound01(this._r,255)*100)+\"%, \"+mathRound(bound01(this._g,255)*100)+\"%, \"+mathRound(bound01(this._b,255)*100)+\"%, \"+this._roundA+\")\";},toName:function(){if(this._a===0){return\"transparent\";}\nif(this._a<1){return false;}\nreturn hexNames[rgbToHex(this._r,this._g,this._b,true)]||false;},toFilter:function(secondColor){var hex8String='#'+rgbaToArgbHex(this._r,this._g,this._b,this._a);var secondHex8String=hex8String;var gradientType=this._gradientType?\"GradientType = 1, \":\"\";if(secondColor){var s=tinycolor(secondColor);secondHex8String='#'+rgbaToArgbHex(s._r,s._g,s._b,s._a);}\nreturn\"progid:DXImageTransform.Microsoft.gradient(\"+gradientType+\"startColorstr=\"+hex8String+\",endColorstr=\"+secondHex8String+\")\";},toString:function(format){var formatSet=!!format;format=format||this._format;var formattedString=false;var hasAlpha=this._a<1&&this._a>=0;var needsAlphaFormat=!formatSet&&hasAlpha&&(format===\"hex\"||format===\"hex6\"||format===\"hex3\"||format===\"hex4\"||format===\"hex8\"||format===\"name\");if(needsAlphaFormat){if(format===\"name\"&&this._a===0){return this.toName();}\nreturn this.toRgbString();}\nif(format===\"rgb\"){formattedString=this.toRgbString();}\nif(format===\"prgb\"){formattedString=this.toPercentageRgbString();}\nif(format===\"hex\"||format===\"hex6\"){formattedString=this.toHexString();}\nif(format===\"hex3\"){formattedString=this.toHexString(true);}\nif(format===\"hex4\"){formattedString=this.toHex8String(true);}\nif(format===\"hex8\"){formattedString=this.toHex8String();}\nif(format===\"name\"){formattedString=this.toName();}\nif(format===\"hsl\"){formattedString=this.toHslString();}\nif(format===\"hsv\"){formattedString=this.toHsvString();}\nreturn formattedString||this.toHexString();},clone:function(){return tinycolor(this.toString());},_applyModification:function(fn,args){var color=fn.apply(null,[this].concat([].slice.call(args)));this._r=color._r;this._g=color._g;this._b=color._b;this.setAlpha(color._a);return this;},lighten:function(){return this._applyModification(lighten,arguments);},brighten:function(){return this._applyModification(brighten,arguments);},darken:function(){return this._applyModification(darken,arguments);},desaturate:function(){return this._applyModification(desaturate,arguments);},saturate:function(){return this._applyModification(saturate,arguments);},greyscale:function(){return this._applyModification(greyscale,arguments);},spin:function(){return this._applyModification(spin,arguments);},_applyCombination:function(fn,args){return fn.apply(null,[this].concat([].slice.call(args)));},analogous:function(){return this._applyCombination(analogous,arguments);},complement:function(){return this._applyCombination(complement,arguments);},monochromatic:function(){return this._applyCombination(monochromatic,arguments);},splitcomplement:function(){return this._applyCombination(splitcomplement,arguments);},triad:function(){return this._applyCombination(triad,arguments);},tetrad:function(){return this._applyCombination(tetrad,arguments);}};tinycolor.fromRatio=function(color,opts){if(typeof color==\"object\"){var newColor={};for(var i in color){if(color.hasOwnProperty(i)){if(i===\"a\"){newColor[i]=color[i];}\nelse{newColor[i]=convertToPercentage(color[i]);}}}\ncolor=newColor;}\nreturn tinycolor(color,opts);};function inputToRGB(color){var rgb={r:0,g:0,b:0};var a=1;var s=null;var v=null;var l=null;var ok=false;var format=false;if(typeof color==\"string\"){color=stringInputToObject(color);}\nif(typeof color==\"object\"){if(isValidCSSUnit(color.r)&&isValidCSSUnit(color.g)&&isValidCSSUnit(color.b)){rgb=rgbToRgb(color.r,color.g,color.b);ok=true;format=String(color.r).substr(-1)===\"%\"?\"prgb\":\"rgb\";}\nelse if(isValidCSSUnit(color.h)&&isValidCSSUnit(color.s)&&isValidCSSUnit(color.v)){s=convertToPercentage(color.s);v=convertToPercentage(color.v);rgb=hsvToRgb(color.h,s,v);ok=true;format=\"hsv\";}\nelse if(isValidCSSUnit(color.h)&&isValidCSSUnit(color.s)&&isValidCSSUnit(color.l)){s=convertToPercentage(color.s);l=convertToPercentage(color.l);rgb=hslToRgb(color.h,s,l);ok=true;format=\"hsl\";}\nif(color.hasOwnProperty(\"a\")){a=color.a;}}\na=boundAlpha(a);return{ok:ok,format:color.format||format,r:mathMin(255,mathMax(rgb.r,0)),g:mathMin(255,mathMax(rgb.g,0)),b:mathMin(255,mathMax(rgb.b,0)),a:a};}\nfunction rgbToRgb(r,g,b){return{r:bound01(r,255)*255,g:bound01(g,255)*255,b:bound01(b,255)*255};}\nfunction rgbToHsl(r,g,b){r=bound01(r,255);g=bound01(g,255);b=bound01(b,255);var max=mathMax(r,g,b),min=mathMin(r,g,b);var h,s,l=(max+min)/ 2;if(max==min){h=s=0;}\nelse{var d=max-min;s=l>0.5?d /(2-max-min):d /(max+min);switch(max){case r:h=(g-b)/ d+(g<b?6:0);break;case g:h=(b-r)/ d+2;break;case b:h=(r-g)/ d+4;break;}\nh /=6;}\nreturn{h:h,s:s,l:l};}\nfunction hslToRgb(h,s,l){var r,g,b;h=bound01(h,360);s=bound01(s,100);l=bound01(l,100);function hue2rgb(p,q,t){if(t<0)t+=1;if(t>1)t-=1;if(t<1/6)return p+(q-p)*6*t;if(t<1/2)return q;if(t<2/3)return p+(q-p)*(2/3-t)*6;return p;}\nif(s===0){r=g=b=l;}\nelse{var q=l<0.5?l*(1+s):l+s-l*s;var p=2*l-q;r=hue2rgb(p,q,h+1/3);g=hue2rgb(p,q,h);b=hue2rgb(p,q,h-1/3);}\nreturn{r:r*255,g:g*255,b:b*255};}\nfunction rgbToHsv(r,g,b){r=bound01(r,255);g=bound01(g,255);b=bound01(b,255);var max=mathMax(r,g,b),min=mathMin(r,g,b);var h,s,v=max;var d=max-min;s=max===0?0:d / max;if(max==min){h=0;}\nelse{switch(max){case r:h=(g-b)/ d+(g<b?6:0);break;case g:h=(b-r)/ d+2;break;case b:h=(r-g)/ d+4;break;}\nh /=6;}\nreturn{h:h,s:s,v:v};}\nfunction hsvToRgb(h,s,v){h=bound01(h,360)*6;s=bound01(s,100);v=bound01(v,100);var i=Math.floor(h),f=h-i,p=v*(1-s),q=v*(1-f*s),t=v*(1-(1-f)*s),mod=i%6,r=[v,q,p,p,t,v][mod],g=[t,v,v,q,p,p][mod],b=[p,p,t,v,v,q][mod];return{r:r*255,g:g*255,b:b*255};}\nfunction rgbToHex(r,g,b,allow3Char){var hex=[pad2(mathRound(r).toString(16)),pad2(mathRound(g).toString(16)),pad2(mathRound(b).toString(16))];if(allow3Char&&hex[0].charAt(0)==hex[0].charAt(1)&&hex[1].charAt(0)==hex[1].charAt(1)&&hex[2].charAt(0)==hex[2].charAt(1)){return hex[0].charAt(0)+hex[1].charAt(0)+hex[2].charAt(0);}\nreturn hex.join(\"\");}\nfunction rgbaToHex(r,g,b,a,allow4Char){var hex=[pad2(mathRound(r).toString(16)),pad2(mathRound(g).toString(16)),pad2(mathRound(b).toString(16)),pad2(convertDecimalToHex(a))];if(allow4Char&&hex[0].charAt(0)==hex[0].charAt(1)&&hex[1].charAt(0)==hex[1].charAt(1)&&hex[2].charAt(0)==hex[2].charAt(1)&&hex[3].charAt(0)==hex[3].charAt(1)){return hex[0].charAt(0)+hex[1].charAt(0)+hex[2].charAt(0)+hex[3].charAt(0);}\nreturn hex.join(\"\");}\nfunction rgbaToArgbHex(r,g,b,a){var hex=[pad2(convertDecimalToHex(a)),pad2(mathRound(r).toString(16)),pad2(mathRound(g).toString(16)),pad2(mathRound(b).toString(16))];return hex.join(\"\");}\ntinycolor.equals=function(color1,color2){if(!color1||!color2){return false;}\nreturn tinycolor(color1).toRgbString()==tinycolor(color2).toRgbString();};tinycolor.random=function(){return tinycolor.fromRatio({r:mathRandom(),g:mathRandom(),b:mathRandom()});};function desaturate(color,amount){amount=(amount===0)?0:(amount||10);var hsl=tinycolor(color).toHsl();hsl.s-=amount / 100;hsl.s=clamp01(hsl.s);return tinycolor(hsl);}\nfunction saturate(color,amount){amount=(amount===0)?0:(amount||10);var hsl=tinycolor(color).toHsl();hsl.s+=amount / 100;hsl.s=clamp01(hsl.s);return tinycolor(hsl);}\nfunction greyscale(color){return tinycolor(color).desaturate(100);}\nfunction lighten(color,amount){amount=(amount===0)?0:(amount||10);var hsl=tinycolor(color).toHsl();hsl.l+=amount / 100;hsl.l=clamp01(hsl.l);return tinycolor(hsl);}\nfunction brighten(color,amount){amount=(amount===0)?0:(amount||10);var rgb=tinycolor(color).toRgb();rgb.r=mathMax(0,mathMin(255,rgb.r-mathRound(255*-(amount / 100))));rgb.g=mathMax(0,mathMin(255,rgb.g-mathRound(255*-(amount / 100))));rgb.b=mathMax(0,mathMin(255,rgb.b-mathRound(255*-(amount / 100))));return tinycolor(rgb);}\nfunction darken(color,amount){amount=(amount===0)?0:(amount||10);var hsl=tinycolor(color).toHsl();hsl.l-=amount / 100;hsl.l=clamp01(hsl.l);return tinycolor(hsl);}\nfunction spin(color,amount){var hsl=tinycolor(color).toHsl();var hue=(hsl.h+amount)%360;hsl.h=hue<0?360+hue:hue;return tinycolor(hsl);}\nfunction complement(color){var hsl=tinycolor(color).toHsl();hsl.h=(hsl.h+180)%360;return tinycolor(hsl);}\nfunction triad(color){var hsl=tinycolor(color).toHsl();var h=hsl.h;return[tinycolor(color),tinycolor({h:(h+120)%360,s:hsl.s,l:hsl.l}),tinycolor({h:(h+240)%360,s:hsl.s,l:hsl.l})];}\nfunction tetrad(color){var hsl=tinycolor(color).toHsl();var h=hsl.h;return[tinycolor(color),tinycolor({h:(h+90)%360,s:hsl.s,l:hsl.l}),tinycolor({h:(h+180)%360,s:hsl.s,l:hsl.l}),tinycolor({h:(h+270)%360,s:hsl.s,l:hsl.l})];}\nfunction splitcomplement(color){var hsl=tinycolor(color).toHsl();var h=hsl.h;return[tinycolor(color),tinycolor({h:(h+72)%360,s:hsl.s,l:hsl.l}),tinycolor({h:(h+216)%360,s:hsl.s,l:hsl.l})];}\nfunction analogous(color,results,slices){results=results||6;slices=slices||30;var hsl=tinycolor(color).toHsl();var part=360 / slices;var ret=[tinycolor(color)];for(hsl.h=((hsl.h-(part*results>>1))+720)%360;--results;){hsl.h=(hsl.h+part)%360;ret.push(tinycolor(hsl));}\nreturn ret;}\nfunction monochromatic(color,results){results=results||6;var hsv=tinycolor(color).toHsv();var h=hsv.h,s=hsv.s,v=hsv.v;var ret=[];var modification=1 / results;while(results--){ret.push(tinycolor({h:h,s:s,v:v}));v=(v+modification)%1;}\nreturn ret;}\ntinycolor.mix=function(color1,color2,amount){amount=(amount===0)?0:(amount||50);var rgb1=tinycolor(color1).toRgb();var rgb2=tinycolor(color2).toRgb();var p=amount / 100;var rgba={r:((rgb2.r-rgb1.r)*p)+rgb1.r,g:((rgb2.g-rgb1.g)*p)+rgb1.g,b:((rgb2.b-rgb1.b)*p)+rgb1.b,a:((rgb2.a-rgb1.a)*p)+rgb1.a};return tinycolor(rgba);};tinycolor.readability=function(color1,color2){var c1=tinycolor(color1);var c2=tinycolor(color2);return(Math.max(c1.getLuminance(),c2.getLuminance())+0.05)/(Math.min(c1.getLuminance(),c2.getLuminance())+0.05);};tinycolor.isReadable=function(color1,color2,wcag2){var readability=tinycolor.readability(color1,color2);var wcag2Parms,out;out=false;wcag2Parms=validateWCAG2Parms(wcag2);switch(wcag2Parms.level+wcag2Parms.size){case\"AAsmall\":case\"AAAlarge\":out=readability>=4.5;break;case\"AAlarge\":out=readability>=3;break;case\"AAAsmall\":out=readability>=7;break;}\nreturn out;};tinycolor.mostReadable=function(baseColor,colorList,args){var bestColor=null;var bestScore=0;var readability;var includeFallbackColors,level,size;args=args||{};includeFallbackColors=args.includeFallbackColors;level=args.level;size=args.size;for(var i=0;i<colorList.length;i++){readability=tinycolor.readability(baseColor,colorList[i]);if(readability>bestScore){bestScore=readability;bestColor=tinycolor(colorList[i]);}}\nif(tinycolor.isReadable(baseColor,bestColor,{\"level\":level,\"size\":size})||!includeFallbackColors){return bestColor;}\nelse{args.includeFallbackColors=false;return tinycolor.mostReadable(baseColor,[\"#fff\",\"#000\"],args);}};var names=tinycolor.names={aliceblue:\"f0f8ff\",antiquewhite:\"faebd7\",aqua:\"0ff\",aquamarine:\"7fffd4\",azure:\"f0ffff\",beige:\"f5f5dc\",bisque:\"ffe4c4\",black:\"000\",blanchedalmond:\"ffebcd\",blue:\"00f\",blueviolet:\"8a2be2\",brown:\"a52a2a\",burlywood:\"deb887\",burntsienna:\"ea7e5d\",cadetblue:\"5f9ea0\",chartreuse:\"7fff00\",chocolate:\"d2691e\",coral:\"ff7f50\",cornflowerblue:\"6495ed\",cornsilk:\"fff8dc\",crimson:\"dc143c\",cyan:\"0ff\",darkblue:\"00008b\",darkcyan:\"008b8b\",darkgoldenrod:\"b8860b\",darkgray:\"a9a9a9\",darkgreen:\"006400\",darkgrey:\"a9a9a9\",darkkhaki:\"bdb76b\",darkmagenta:\"8b008b\",darkolivegreen:\"556b2f\",darkorange:\"ff8c00\",darkorchid:\"9932cc\",darkred:\"8b0000\",darksalmon:\"e9967a\",darkseagreen:\"8fbc8f\",darkslateblue:\"483d8b\",darkslategray:\"2f4f4f\",darkslategrey:\"2f4f4f\",darkturquoise:\"00ced1\",darkviolet:\"9400d3\",deeppink:\"ff1493\",deepskyblue:\"00bfff\",dimgray:\"696969\",dimgrey:\"696969\",dodgerblue:\"1e90ff\",firebrick:\"b22222\",floralwhite:\"fffaf0\",forestgreen:\"228b22\",fuchsia:\"f0f\",gainsboro:\"dcdcdc\",ghostwhite:\"f8f8ff\",gold:\"ffd700\",goldenrod:\"daa520\",gray:\"808080\",green:\"008000\",greenyellow:\"adff2f\",grey:\"808080\",honeydew:\"f0fff0\",hotpink:\"ff69b4\",indianred:\"cd5c5c\",indigo:\"4b0082\",ivory:\"fffff0\",khaki:\"f0e68c\",lavender:\"e6e6fa\",lavenderblush:\"fff0f5\",lawngreen:\"7cfc00\",lemonchiffon:\"fffacd\",lightblue:\"add8e6\",lightcoral:\"f08080\",lightcyan:\"e0ffff\",lightgoldenrodyellow:\"fafad2\",lightgray:\"d3d3d3\",lightgreen:\"90ee90\",lightgrey:\"d3d3d3\",lightpink:\"ffb6c1\",lightsalmon:\"ffa07a\",lightseagreen:\"20b2aa\",lightskyblue:\"87cefa\",lightslategray:\"789\",lightslategrey:\"789\",lightsteelblue:\"b0c4de\",lightyellow:\"ffffe0\",lime:\"0f0\",limegreen:\"32cd32\",linen:\"faf0e6\",magenta:\"f0f\",maroon:\"800000\",mediumaquamarine:\"66cdaa\",mediumblue:\"0000cd\",mediumorchid:\"ba55d3\",mediumpurple:\"9370db\",mediumseagreen:\"3cb371\",mediumslateblue:\"7b68ee\",mediumspringgreen:\"00fa9a\",mediumturquoise:\"48d1cc\",mediumvioletred:\"c71585\",midnightblue:\"191970\",mintcream:\"f5fffa\",mistyrose:\"ffe4e1\",moccasin:\"ffe4b5\",navajowhite:\"ffdead\",navy:\"000080\",oldlace:\"fdf5e6\",olive:\"808000\",olivedrab:\"6b8e23\",orange:\"ffa500\",orangered:\"ff4500\",orchid:\"da70d6\",palegoldenrod:\"eee8aa\",palegreen:\"98fb98\",paleturquoise:\"afeeee\",palevioletred:\"db7093\",papayawhip:\"ffefd5\",peachpuff:\"ffdab9\",peru:\"cd853f\",pink:\"ffc0cb\",plum:\"dda0dd\",powderblue:\"b0e0e6\",purple:\"800080\",rebeccapurple:\"663399\",red:\"f00\",rosybrown:\"bc8f8f\",royalblue:\"4169e1\",saddlebrown:\"8b4513\",salmon:\"fa8072\",sandybrown:\"f4a460\",seagreen:\"2e8b57\",seashell:\"fff5ee\",sienna:\"a0522d\",silver:\"c0c0c0\",skyblue:\"87ceeb\",slateblue:\"6a5acd\",slategray:\"708090\",slategrey:\"708090\",snow:\"fffafa\",springgreen:\"00ff7f\",steelblue:\"4682b4\",tan:\"d2b48c\",teal:\"008080\",thistle:\"d8bfd8\",tomato:\"ff6347\",turquoise:\"40e0d0\",violet:\"ee82ee\",wheat:\"f5deb3\",white:\"fff\",whitesmoke:\"f5f5f5\",yellow:\"ff0\",yellowgreen:\"9acd32\"};var hexNames=tinycolor.hexNames=flip(names);function flip(o){var flipped={};for(var i in o){if(o.hasOwnProperty(i)){flipped[o[i]]=i;}}\nreturn flipped;}\nfunction boundAlpha(a){a=parseFloat(a);if(isNaN(a)||a<0||a>1){a=1;}\nreturn a;}\nfunction bound01(n,max){if(isOnePointZero(n)){n=\"100%\";}\nvar processPercent=isPercentage(n);n=mathMin(max,mathMax(0,parseFloat(n)));if(processPercent){n=parseInt(n*max,10)/ 100;}\nif((Math.abs(n-max)<0.000001)){return 1;}\nreturn(n%max)/ parseFloat(max);}\nfunction clamp01(val){return mathMin(1,mathMax(0,val));}\nfunction parseIntFromHex(val){return parseInt(val,16);}\nfunction isOnePointZero(n){return typeof n==\"string\"&&n.indexOf('.')!=-1&&parseFloat(n)===1;}\nfunction isPercentage(n){return typeof n===\"string\"&&n.indexOf('%')!=-1;}\nfunction pad2(c){return c.length==1?'0'+c:''+c;}\nfunction convertToPercentage(n){if(n<=1){n=(n*100)+\"%\";}\nreturn n;}\nfunction convertDecimalToHex(d){return Math.round(parseFloat(d)*255).toString(16);}\nfunction convertHexToDecimal(h){return(parseIntFromHex(h)/ 255);}\nvar matchers=(function(){var CSS_INTEGER=\"[-\\\\+]?\\\\d+%?\";var CSS_NUMBER=\"[-\\\\+]?\\\\d*\\\\.\\\\d+%?\";var CSS_UNIT=\"(?:\"+CSS_NUMBER+\")|(?:\"+CSS_INTEGER+\")\";var PERMISSIVE_MATCH3=\"[\\\\s|\\\\(]+(\"+CSS_UNIT+\")[,|\\\\s]+(\"+CSS_UNIT+\")[,|\\\\s]+(\"+CSS_UNIT+\")\\\\s*\\\\)?\";var PERMISSIVE_MATCH4=\"[\\\\s|\\\\(]+(\"+CSS_UNIT+\")[,|\\\\s]+(\"+CSS_UNIT+\")[,|\\\\s]+(\"+CSS_UNIT+\")[,|\\\\s]+(\"+CSS_UNIT+\")\\\\s*\\\\)?\";return{CSS_UNIT:new RegExp(CSS_UNIT),rgb:new RegExp(\"rgb\"+PERMISSIVE_MATCH3),rgba:new RegExp(\"rgba\"+PERMISSIVE_MATCH4),hsl:new RegExp(\"hsl\"+PERMISSIVE_MATCH3),hsla:new RegExp(\"hsla\"+PERMISSIVE_MATCH4),hsv:new RegExp(\"hsv\"+PERMISSIVE_MATCH3),hsva:new RegExp(\"hsva\"+PERMISSIVE_MATCH4),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};})();function isValidCSSUnit(color){return!!matchers.CSS_UNIT.exec(color);}\nfunction stringInputToObject(color){color=color.replace(trimLeft,'').replace(trimRight,'').toLowerCase();var named=false;if(names[color]){color=names[color];named=true;}\nelse if(color=='transparent'){return{r:0,g:0,b:0,a:0,format:\"name\"};}\nvar match;if((match=matchers.rgb.exec(color))){return{r:match[1],g:match[2],b:match[3]};}\nif((match=matchers.rgba.exec(color))){return{r:match[1],g:match[2],b:match[3],a:match[4]};}\nif((match=matchers.hsl.exec(color))){return{h:match[1],s:match[2],l:match[3]};}\nif((match=matchers.hsla.exec(color))){return{h:match[1],s:match[2],l:match[3],a:match[4]};}\nif((match=matchers.hsv.exec(color))){return{h:match[1],s:match[2],v:match[3]};}\nif((match=matchers.hsva.exec(color))){return{h:match[1],s:match[2],v:match[3],a:match[4]};}\nif((match=matchers.hex8.exec(color))){return{r:parseIntFromHex(match[1]),g:parseIntFromHex(match[2]),b:parseIntFromHex(match[3]),a:convertHexToDecimal(match[4]),format:named?\"name\":\"hex8\"};}\nif((match=matchers.hex6.exec(color))){return{r:parseIntFromHex(match[1]),g:parseIntFromHex(match[2]),b:parseIntFromHex(match[3]),format:named?\"name\":\"hex\"};}\nif((match=matchers.hex4.exec(color))){return{r:parseIntFromHex(match[1]+''+match[1]),g:parseIntFromHex(match[2]+''+match[2]),b:parseIntFromHex(match[3]+''+match[3]),a:convertHexToDecimal(match[4]+''+match[4]),format:named?\"name\":\"hex8\"};}\nif((match=matchers.hex3.exec(color))){return{r:parseIntFromHex(match[1]+''+match[1]),g:parseIntFromHex(match[2]+''+match[2]),b:parseIntFromHex(match[3]+''+match[3]),format:named?\"name\":\"hex\"};}\nreturn false;}\nfunction validateWCAG2Parms(parms){var level,size;parms=parms||{\"level\":\"AA\",\"size\":\"small\"};level=(parms.level||\"AA\").toUpperCase();size=(parms.size||\"small\").toLowerCase();if(level!==\"AA\"&&level!==\"AAA\"){level=\"AA\";}\nif(size!==\"small\"&&size!==\"large\"){size=\"small\";}\nreturn{\"level\":level,\"size\":size};}\nif(typeof module!==\"undefined\"&&module.exports){module.exports=tinycolor;}\nelse if(typeof define==='function'&&define.amd){define(function(){return tinycolor;});}\nelse{window.tinycolor=tinycolor;}})(Math);","jquery/spectrum/spectrum.min.js":"(function(factory){\"use strict\";if(typeof define==='function'&&define.amd){define(['jquery'],factory);}\nelse if(typeof exports==\"object\"&&typeof module==\"object\"){module.exports=factory(require('jquery'));}\nelse{factory(jQuery);}})(function($,undefined){\"use strict\";var defaultOpts={beforeShow:noop,move:noop,change:noop,show:noop,hide:noop,color:false,flat:false,showInput:false,allowEmpty:false,showButtons:true,clickoutFiresChange:true,showInitial:false,showPalette:false,showPaletteOnly:false,hideAfterPaletteSelect:false,togglePaletteOnly:false,showSelectionPalette:true,localStorageKey:false,appendTo:\"body\",maxSelectionSize:7,cancelText:\"cancel\",chooseText:\"choose\",togglePaletteMoreText:\"more\",togglePaletteLessText:\"less\",clearText:\"Clear Color Selection\",noColorSelectedText:\"No Color Selected\",preferredFormat:false,className:\"\",containerClassName:\"\",replacerClassName:\"\",showAlpha:false,theme:\"sp-light\",palette:[[\"#ffffff\",\"#000000\",\"#ff0000\",\"#ff8000\",\"#ffff00\",\"#008000\",\"#0000ff\",\"#4b0082\",\"#9400d3\"]],selectionPalette:[],disabled:false,offset:null},spectrums=[],IE=!!/msie/i.exec(window.navigator.userAgent),rgbaSupport=(function(){function contains(str,substr){return!!~(''+str).indexOf(substr);}\nvar elem=document.createElement('div');var style=elem.style;style.cssText='background-color:rgba(0,0,0,.5)';return contains(style.backgroundColor,'rgba')||contains(style.backgroundColor,'hsla');})(),replaceInput=[\"<div class='sp-replacer'>\",\"<div class='sp-preview'><div class='sp-preview-inner'></div></div>\",\"<div class='sp-dd'>&#9660;</div>\",\"</div>\"].join(''),markup=(function(){var gradientFix=\"\";if(IE){for(var i=1;i<=6;i++){gradientFix+=\"<div class='sp-\"+i+\"'></div>\";}}\nreturn[\"<div class='sp-container sp-hidden'>\",\"<div class='sp-palette-container'>\",\"<div class='sp-palette sp-thumb sp-cf'></div>\",\"<div class='sp-palette-button-container sp-cf'>\",\"<button type='button' class='sp-palette-toggle'></button>\",\"</div>\",\"</div>\",\"<div class='sp-picker-container'>\",\"<div class='sp-top sp-cf'>\",\"<div class='sp-fill'></div>\",\"<div class='sp-top-inner'>\",\"<div class='sp-color'>\",\"<div class='sp-sat'>\",\"<div class='sp-val'>\",\"<div class='sp-dragger'></div>\",\"</div>\",\"</div>\",\"</div>\",\"<div class='sp-clear sp-clear-display'>\",\"</div>\",\"<div class='sp-hue'>\",\"<div class='sp-slider'></div>\",gradientFix,\"</div>\",\"</div>\",\"<div class='sp-alpha'><div class='sp-alpha-inner'><div class='sp-alpha-handle'></div></div></div>\",\"</div>\",\"<div class='sp-input-container sp-cf'>\",\"<input class='sp-input' type='text' spellcheck='false'  />\",\"</div>\",\"<div class='sp-initial sp-thumb sp-cf'></div>\",\"<div class='sp-button-container sp-cf'>\",\"<a class='sp-cancel' href='#'></a>\",\"<button type='button' class='sp-choose'></button>\",\"</div>\",\"</div>\",\"</div>\"].join(\"\");})();function paletteTemplate(p,color,className,opts){var html=[];for(var i=0;i<p.length;i++){var current=p[i];if(current){var tiny=tinycolor(current);var c=tiny.toHsl().l<0.5?\"sp-thumb-el sp-thumb-dark\":\"sp-thumb-el sp-thumb-light\";c+=(tinycolor.equals(color,current))?\" sp-thumb-active\":\"\";var formattedString=tiny.toString(opts.preferredFormat||\"rgb\");var swatchStyle=rgbaSupport?(\"background-color:\"+tiny.toRgbString()):\"filter:\"+tiny.toFilter();html.push('<span title=\"'+formattedString+'\" data-color=\"'+tiny.toRgbString()+'\" class=\"'+c+'\"><span class=\"sp-thumb-inner\" style=\"'+swatchStyle+';\"></span></span>');}else{var cls='sp-clear-display';html.push($('<div />').append($('<span data-color=\"\" style=\"background-color:transparent;\" class=\"'+cls+'\"></span>').attr('title',opts.noColorSelectedText)).html());}}\nreturn\"<div class='sp-cf \"+className+\"'>\"+html.join('')+\"</div>\";}\nfunction hideAll(){for(var i=0;i<spectrums.length;i++){if(spectrums[i]){spectrums[i].hide();}}}\nfunction instanceOptions(o,callbackContext){var opts=$.extend({},defaultOpts,o);opts.callbacks={'move':bind(opts.move,callbackContext),'change':bind(opts.change,callbackContext),'show':bind(opts.show,callbackContext),'hide':bind(opts.hide,callbackContext),'beforeShow':bind(opts.beforeShow,callbackContext)};return opts;}\nfunction spectrum(element,o){var opts=instanceOptions(o,element),flat=opts.flat,showSelectionPalette=opts.showSelectionPalette,localStorageKey=opts.localStorageKey,theme=opts.theme,callbacks=opts.callbacks,resize=throttle(reflow,10),visible=false,isDragging=false,dragWidth=0,dragHeight=0,dragHelperHeight=0,slideHeight=0,slideWidth=0,alphaWidth=0,alphaSlideHelperWidth=0,slideHelperHeight=0,currentHue=0,currentSaturation=0,currentValue=0,currentAlpha=1,palette=[],paletteArray=[],paletteLookup={},selectionPalette=opts.selectionPalette.slice(0),maxSelectionSize=opts.maxSelectionSize,draggingClass=\"sp-dragging\",shiftMovementDirection=null;var doc=element.ownerDocument,body=doc.body,boundElement=$(element),disabled=false,container=$(markup,doc).addClass(theme),pickerContainer=container.find(\".sp-picker-container\"),dragger=container.find(\".sp-color\"),dragHelper=container.find(\".sp-dragger\"),slider=container.find(\".sp-hue\"),slideHelper=container.find(\".sp-slider\"),alphaSliderInner=container.find(\".sp-alpha-inner\"),alphaSlider=container.find(\".sp-alpha\"),alphaSlideHelper=container.find(\".sp-alpha-handle\"),textInput=container.find(\".sp-input\"),paletteContainer=container.find(\".sp-palette\"),initialColorContainer=container.find(\".sp-initial\"),cancelButton=container.find(\".sp-cancel\"),clearButton=container.find(\".sp-clear\"),chooseButton=container.find(\".sp-choose\"),toggleButton=container.find(\".sp-palette-toggle\"),isInput=boundElement.is(\"input\"),isInputTypeColor=isInput&&boundElement.attr(\"type\")===\"color\"&&inputTypeColorSupport(),shouldReplace=isInput&&!flat,replacer=(shouldReplace)?$(replaceInput).addClass(theme).addClass(opts.className).addClass(opts.replacerClassName):$([]),offsetElement=(shouldReplace)?replacer:boundElement,previewElement=replacer.find(\".sp-preview-inner\"),initialColor=opts.color||(isInput&&boundElement.val()),colorOnShow=false,currentPreferredFormat=opts.preferredFormat,clickoutFiresChange=!opts.showButtons||opts.clickoutFiresChange,isEmpty=!initialColor,allowEmpty=opts.allowEmpty&&!isInputTypeColor;function applyOptions(){if(opts.showPaletteOnly){opts.showPalette=true;}\ntoggleButton.text(opts.showPaletteOnly?opts.togglePaletteMoreText:opts.togglePaletteLessText);if(opts.palette){palette=opts.palette.slice(0);paletteArray=$.isArray(palette[0])?palette:[palette];paletteLookup={};for(var i=0;i<paletteArray.length;i++){for(var j=0;j<paletteArray[i].length;j++){var rgb=tinycolor(paletteArray[i][j]).toRgbString();paletteLookup[rgb]=true;}}}\ncontainer.toggleClass(\"sp-flat\",flat);container.toggleClass(\"sp-input-disabled\",!opts.showInput);container.toggleClass(\"sp-alpha-enabled\",opts.showAlpha);container.toggleClass(\"sp-clear-enabled\",allowEmpty);container.toggleClass(\"sp-buttons-disabled\",!opts.showButtons);container.toggleClass(\"sp-palette-buttons-disabled\",!opts.togglePaletteOnly);container.toggleClass(\"sp-palette-disabled\",!opts.showPalette);container.toggleClass(\"sp-palette-only\",opts.showPaletteOnly);container.toggleClass(\"sp-initial-disabled\",!opts.showInitial);container.addClass(opts.className).addClass(opts.containerClassName);reflow();}\nfunction initialize(){if(IE){container.find(\"*:not(input)\").attr(\"unselectable\",\"on\");}\napplyOptions();if(shouldReplace){boundElement.after(replacer).hide();}\nif(!allowEmpty){clearButton.hide();}\nif(flat){boundElement.after(container).hide();}\nelse{var appendTo=opts.appendTo===\"parent\"?boundElement.parent():$(opts.appendTo);if(appendTo.length!==1){appendTo=$(\"body\");}\nappendTo.append(container);}\nupdateSelectionPaletteFromStorage();offsetElement.on(\"click.spectrum touchstart.spectrum\",function(e){if(!disabled){toggle();}\ne.stopPropagation();if(!$(e.target).is(\"input\")){e.preventDefault();}});if(boundElement.is(\":disabled\")||(opts.disabled===true)){disable();}\ncontainer.click(stopPropagation);textInput.change(setFromTextInput);textInput.on(\"paste\",function(){setTimeout(setFromTextInput,1);});textInput.keydown(function(e){if(e.keyCode==13){setFromTextInput();}});cancelButton.text(opts.cancelText);cancelButton.on(\"click.spectrum\",function(e){e.stopPropagation();e.preventDefault();revert();hide();});clearButton.attr(\"title\",opts.clearText);clearButton.on(\"click.spectrum\",function(e){e.stopPropagation();e.preventDefault();isEmpty=true;move();if(flat){updateOriginalInput(true);}});chooseButton.text(opts.chooseText);chooseButton.on(\"click.spectrum\",function(e){e.stopPropagation();e.preventDefault();if(IE&&textInput.is(\":focus\")){textInput.trigger('change');}\nif(isValid()){updateOriginalInput(true);hide();}});toggleButton.text(opts.showPaletteOnly?opts.togglePaletteMoreText:opts.togglePaletteLessText);toggleButton.on(\"click.spectrum\",function(e){e.stopPropagation();e.preventDefault();opts.showPaletteOnly=!opts.showPaletteOnly;if(!opts.showPaletteOnly&&!flat){container.css('left','-='+(pickerContainer.outerWidth(true)+5));}\napplyOptions();});draggable(alphaSlider,function(dragX,dragY,e){currentAlpha=(dragX / alphaWidth);isEmpty=false;if(e.shiftKey){currentAlpha=Math.round(currentAlpha*10)/ 10;}\nmove();},dragStart,dragStop);draggable(slider,function(dragX,dragY){currentHue=parseFloat(dragY / slideHeight);isEmpty=false;if(!opts.showAlpha){currentAlpha=1;}\nmove();},dragStart,dragStop);draggable(dragger,function(dragX,dragY,e){if(!e.shiftKey){shiftMovementDirection=null;}\nelse if(!shiftMovementDirection){var oldDragX=currentSaturation*dragWidth;var oldDragY=dragHeight-(currentValue*dragHeight);var furtherFromX=Math.abs(dragX-oldDragX)>Math.abs(dragY-oldDragY);shiftMovementDirection=furtherFromX?\"x\":\"y\";}\nvar setSaturation=!shiftMovementDirection||shiftMovementDirection===\"x\";var setValue=!shiftMovementDirection||shiftMovementDirection===\"y\";if(setSaturation){currentSaturation=parseFloat(dragX / dragWidth);}\nif(setValue){currentValue=parseFloat((dragHeight-dragY)/ dragHeight);}\nisEmpty=false;if(!opts.showAlpha){currentAlpha=1;}\nmove();},dragStart,dragStop);if(!!initialColor){set(initialColor);updateUI();currentPreferredFormat=opts.preferredFormat||tinycolor(initialColor).format;addColorToSelectionPalette(initialColor);}\nelse{updateUI();}\nif(flat){show();}\nfunction paletteElementClick(e){if(e.data&&e.data.ignore){set($(e.target).closest(\".sp-thumb-el\").data(\"color\"));move();}\nelse{set($(e.target).closest(\".sp-thumb-el\").data(\"color\"));move();updateOriginalInput(true);if(opts.hideAfterPaletteSelect){hide();}}\nreturn false;}\nvar paletteEvent=IE?\"mousedown.spectrum\":\"click.spectrum touchstart.spectrum\";paletteContainer.on(paletteEvent,\".sp-thumb-el\",paletteElementClick);initialColorContainer.on(paletteEvent,\".sp-thumb-el:nth-child(1)\",{ignore:true},paletteElementClick);}\nfunction updateSelectionPaletteFromStorage(){if(localStorageKey&&window.localStorage){try{var oldPalette=window.localStorage[localStorageKey].split(\",#\");if(oldPalette.length>1){delete window.localStorage[localStorageKey];$.each(oldPalette,function(i,c){addColorToSelectionPalette(c);});}}\ncatch(e){}\ntry{selectionPalette=window.localStorage[localStorageKey].split(\";\");}\ncatch(e){}}}\nfunction addColorToSelectionPalette(color){if(showSelectionPalette){var rgb=tinycolor(color).toRgbString();if(!paletteLookup[rgb]&&$.inArray(rgb,selectionPalette)===-1){selectionPalette.push(rgb);while(selectionPalette.length>maxSelectionSize){selectionPalette.shift();}}\nif(localStorageKey&&window.localStorage){try{window.localStorage[localStorageKey]=selectionPalette.join(\";\");}\ncatch(e){}}}}\nfunction getUniqueSelectionPalette(){var unique=[];if(opts.showPalette){for(var i=0;i<selectionPalette.length;i++){var rgb=tinycolor(selectionPalette[i]).toRgbString();if(!paletteLookup[rgb]){unique.push(selectionPalette[i]);}}}\nreturn unique.reverse().slice(0,opts.maxSelectionSize);}\nfunction drawPalette(){var currentColor=get();var html=$.map(paletteArray,function(palette,i){return paletteTemplate(palette,currentColor,\"sp-palette-row sp-palette-row-\"+i,opts);});updateSelectionPaletteFromStorage();if(selectionPalette){html.push(paletteTemplate(getUniqueSelectionPalette(),currentColor,\"sp-palette-row sp-palette-row-selection\",opts));}\npaletteContainer.html(html.join(\"\"));}\nfunction drawInitial(){if(opts.showInitial){var initial=colorOnShow;var current=get();initialColorContainer.html(paletteTemplate([initial,current],current,\"sp-palette-row-initial\",opts));}}\nfunction dragStart(){if(dragHeight<=0||dragWidth<=0||slideHeight<=0){reflow();}\nisDragging=true;container.addClass(draggingClass);shiftMovementDirection=null;boundElement.trigger('dragstart.spectrum',[get()]);}\nfunction dragStop(){isDragging=false;container.removeClass(draggingClass);boundElement.trigger('dragstop.spectrum',[get()]);}\nfunction setFromTextInput(){var value=textInput.val();if((value===null||value===\"\")&&allowEmpty){set(null);move();updateOriginalInput();}\nelse{var tiny=tinycolor(value);if(tiny.isValid()){set(tiny);move();updateOriginalInput(true);}\nelse{textInput.addClass(\"sp-validation-error\");}}}\nfunction toggle(){if(visible){hide();}\nelse{show();}}\nfunction show(){var event=$.Event('beforeShow.spectrum');if(visible){reflow();return;}\nboundElement.trigger(event,[get()]);if(callbacks.beforeShow(get())===false||event.isDefaultPrevented()){return;}\nhideAll();visible=true;$(doc).on(\"keydown.spectrum\",onkeydown);$(doc).on(\"click.spectrum\",clickout);$(window).on(\"resize.spectrum\",resize);replacer.addClass(\"sp-active\");container.removeClass(\"sp-hidden\");reflow();updateUI();colorOnShow=get();drawInitial();callbacks.show(colorOnShow);boundElement.trigger('show.spectrum',[colorOnShow]);}\nfunction onkeydown(e){if(e.keyCode===27){hide();}}\nfunction clickout(e){if(e.button==2){return;}\nif(isDragging){return;}\nif(clickoutFiresChange){updateOriginalInput(true);}\nelse{revert();}\nhide();}\nfunction hide(){if(!visible||flat){return;}\nvisible=false;$(doc).off(\"keydown.spectrum\",onkeydown);$(doc).off(\"click.spectrum\",clickout);$(window).off(\"resize.spectrum\",resize);replacer.removeClass(\"sp-active\");container.addClass(\"sp-hidden\");callbacks.hide(get());boundElement.trigger('hide.spectrum',[get()]);}\nfunction revert(){set(colorOnShow,true);updateOriginalInput(true);}\nfunction set(color,ignoreFormatChange){if(tinycolor.equals(color,get())){updateUI();return;}\nvar newColor,newHsv;if(!color&&allowEmpty){isEmpty=true;}else{isEmpty=false;newColor=tinycolor(color);newHsv=newColor.toHsv();currentHue=(newHsv.h%360)/ 360;currentSaturation=newHsv.s;currentValue=newHsv.v;currentAlpha=newHsv.a;}\nupdateUI();if(newColor&&newColor.isValid()&&!ignoreFormatChange){currentPreferredFormat=opts.preferredFormat||newColor.getFormat();}}\nfunction get(opts){opts=opts||{};if(allowEmpty&&isEmpty){return null;}\nreturn tinycolor.fromRatio({h:currentHue,s:currentSaturation,v:currentValue,a:Math.round(currentAlpha*1000)/ 1000},{format:opts.format||currentPreferredFormat});}\nfunction isValid(){return!textInput.hasClass(\"sp-validation-error\");}\nfunction move(){updateUI();callbacks.move(get());boundElement.trigger('move.spectrum',[get()]);}\nfunction updateUI(){textInput.removeClass(\"sp-validation-error\");updateHelperLocations();var flatColor=tinycolor.fromRatio({h:currentHue,s:1,v:1});dragger.css(\"background-color\",flatColor.toHexString());var format=currentPreferredFormat;if(currentAlpha<1&&!(currentAlpha===0&&format===\"name\")){if(format===\"hex\"||format===\"hex3\"||format===\"hex6\"||format===\"name\"){format=\"rgb\";}}\nvar realColor=get({format:format}),displayColor='';previewElement.removeClass(\"sp-clear-display\");previewElement.css('background-color','transparent');if(!realColor&&allowEmpty){previewElement.addClass(\"sp-clear-display\");}\nelse{var realHex=realColor.toHexString(),realRgb=realColor.toRgbString();if(rgbaSupport||realColor.alpha===1){previewElement.css(\"background-color\",realRgb);}\nelse{previewElement.css(\"background-color\",\"transparent\");previewElement.css(\"filter\",realColor.toFilter());}\nif(opts.showAlpha){var rgb=realColor.toRgb();rgb.a=0;var realAlpha=tinycolor(rgb).toRgbString();var gradient=\"linear-gradient(left, \"+realAlpha+\", \"+realHex+\")\";if(IE){alphaSliderInner.css(\"filter\",tinycolor(realAlpha).toFilter({gradientType:1},realHex));}\nelse{alphaSliderInner.css(\"background\",\"-webkit-\"+gradient);alphaSliderInner.css(\"background\",\"-moz-\"+gradient);alphaSliderInner.css(\"background\",\"-ms-\"+gradient);alphaSliderInner.css(\"background\",\"linear-gradient(to right, \"+realAlpha+\", \"+realHex+\")\");}}\ndisplayColor=realColor.toString(format);}\nif(opts.showInput){textInput.val(displayColor);}\nif(opts.showPalette){drawPalette();}\ndrawInitial();}\nfunction updateHelperLocations(){var s=currentSaturation;var v=currentValue;if(allowEmpty&&isEmpty){alphaSlideHelper.hide();slideHelper.hide();dragHelper.hide();}\nelse{alphaSlideHelper.show();slideHelper.show();dragHelper.show();var dragX=s*dragWidth;var dragY=dragHeight-(v*dragHeight);dragX=Math.max(-dragHelperHeight,Math.min(dragWidth-dragHelperHeight,dragX-dragHelperHeight));dragY=Math.max(-dragHelperHeight,Math.min(dragHeight-dragHelperHeight,dragY-dragHelperHeight));dragHelper.css({\"top\":dragY+\"px\",\"left\":dragX+\"px\"});var alphaX=currentAlpha*alphaWidth;alphaSlideHelper.css({\"left\":(alphaX-(alphaSlideHelperWidth / 2))+\"px\"});var slideY=(currentHue)*slideHeight;slideHelper.css({\"top\":(slideY-slideHelperHeight)+\"px\"});}}\nfunction updateOriginalInput(fireCallback){var color=get(),displayColor='',hasChanged=!tinycolor.equals(color,colorOnShow);if(color){displayColor=color.toString(currentPreferredFormat);addColorToSelectionPalette(color);}\nif(isInput){boundElement.val(displayColor);}\nif(fireCallback&&hasChanged){callbacks.change(color);boundElement.trigger('change',[color]);}}\nfunction reflow(){if(!visible){return;}\ndragWidth=dragger.width();dragHeight=dragger.height();dragHelperHeight=dragHelper.height();slideWidth=slider.width();slideHeight=slider.height();slideHelperHeight=slideHelper.height();alphaWidth=alphaSlider.width();alphaSlideHelperWidth=alphaSlideHelper.width();if(!flat){container.css(\"position\",\"absolute\");if(opts.offset){container.offset(opts.offset);}else{container.offset(getOffset(container,offsetElement));}}\nupdateHelperLocations();if(opts.showPalette){drawPalette();}\nboundElement.trigger('reflow.spectrum');}\nfunction destroy(){boundElement.show();offsetElement.off(\"click.spectrum touchstart.spectrum\");container.remove();replacer.remove();spectrums[spect.id]=null;}\nfunction option(optionName,optionValue){if(optionName===undefined){return $.extend({},opts);}\nif(optionValue===undefined){return opts[optionName];}\nopts[optionName]=optionValue;if(optionName===\"preferredFormat\"){currentPreferredFormat=opts.preferredFormat;}\napplyOptions();}\nfunction enable(){disabled=false;boundElement.attr(\"disabled\",false);offsetElement.removeClass(\"sp-disabled\");}\nfunction disable(){hide();disabled=true;boundElement.attr(\"disabled\",true);offsetElement.addClass(\"sp-disabled\");}\nfunction setOffset(coord){opts.offset=coord;reflow();}\ninitialize();var spect={show:show,hide:hide,toggle:toggle,reflow:reflow,option:option,enable:enable,disable:disable,offset:setOffset,set:function(c){set(c);updateOriginalInput();},get:get,destroy:destroy,container:container};spect.id=spectrums.push(spect)-1;return spect;}\nfunction getOffset(picker,input){var extraY=0;var dpWidth=picker.outerWidth();var dpHeight=picker.outerHeight();var inputHeight=input.outerHeight();var doc=picker[0].ownerDocument;var docElem=doc.documentElement;var viewWidth=docElem.clientWidth+$(doc).scrollLeft();var viewHeight=docElem.clientHeight+$(doc).scrollTop();var offset=input.offset();var offsetLeft=offset.left;var offsetTop=offset.top;offsetTop+=inputHeight;offsetLeft-=Math.min(offsetLeft,(offsetLeft+dpWidth>viewWidth&&viewWidth>dpWidth)?Math.abs(offsetLeft+dpWidth-viewWidth):0);offsetTop-=Math.min(offsetTop,((offsetTop+dpHeight>viewHeight&&viewHeight>dpHeight)?Math.abs(dpHeight+inputHeight-extraY):extraY));return{top:offsetTop,bottom:offset.bottom,left:offsetLeft,right:offset.right,width:offset.width,height:offset.height};}\nfunction noop(){}\nfunction stopPropagation(e){e.stopPropagation();}\nfunction bind(func,obj){var slice=Array.prototype.slice;var args=slice.call(arguments,2);return function(){return func.apply(obj,args.concat(slice.call(arguments)));};}\nfunction draggable(element,onmove,onstart,onstop){onmove=onmove||function(){};onstart=onstart||function(){};onstop=onstop||function(){};var doc=document;var dragging=false;var offset={};var maxHeight=0;var maxWidth=0;var hasTouch=('ontouchstart'in window);var duringDragEvents={};duringDragEvents[\"selectstart\"]=prevent;duringDragEvents[\"dragstart\"]=prevent;duringDragEvents[\"touchmove mousemove\"]=move;duringDragEvents[\"touchend mouseup\"]=stop;function prevent(e){if(e.stopPropagation){e.stopPropagation();}\nif(e.preventDefault){e.preventDefault();}\ne.returnValue=false;}\nfunction move(e){if(dragging){if(IE&&doc.documentMode<9&&!e.button){return stop();}\nvar t0=e.originalEvent&&e.originalEvent.touches&&e.originalEvent.touches[0];var pageX=t0&&t0.pageX||e.pageX;var pageY=t0&&t0.pageY||e.pageY;var dragX=Math.max(0,Math.min(pageX-offset.left,maxWidth));var dragY=Math.max(0,Math.min(pageY-offset.top,maxHeight));if(hasTouch){prevent(e);}\nonmove.apply(element,[dragX,dragY,e]);}}\nfunction start(e){var rightclick=(e.which)?(e.which==3):(e.button==2);if(!rightclick&&!dragging){if(onstart.apply(element,arguments)!==false){dragging=true;maxHeight=$(element).height();maxWidth=$(element).width();offset=$(element).offset();$(doc).on(duringDragEvents);$(doc.body).addClass(\"sp-dragging\");move(e);prevent(e);}}}\nfunction stop(){if(dragging){$(doc).off(duringDragEvents);$(doc.body).removeClass(\"sp-dragging\");setTimeout(function(){onstop.apply(element,arguments);},0);}\ndragging=false;}\n$(element).on(\"touchstart mousedown\",start);}\nfunction throttle(func,wait,debounce){var timeout;return function(){var context=this,args=arguments;var throttler=function(){timeout=null;func.apply(context,args);};if(debounce)clearTimeout(timeout);if(debounce||!timeout)timeout=setTimeout(throttler,wait);};}\nfunction inputTypeColorSupport(){return $.fn.spectrum.inputTypeColorSupport();}\nvar dataID=\"spectrum.id\";$.fn.spectrum=function(opts,extra){if(typeof opts==\"string\"){var returnValue=this;var args=Array.prototype.slice.call(arguments,1);this.each(function(){var spect=spectrums[$(this).data(dataID)];if(spect){var method=spect[opts];if(!method){throw new Error(\"Spectrum: no such method: '\"+opts+\"'\");}\nif(opts==\"get\"){returnValue=spect.get();}\nelse if(opts==\"container\"){returnValue=spect.container;}\nelse if(opts==\"option\"){returnValue=spect.option.apply(spect,args);}\nelse if(opts==\"destroy\"){spect.destroy();$(this).removeData(dataID);}\nelse{method.apply(spect,args);}}});return returnValue;}\nreturn this.spectrum(\"destroy\").each(function(){var options=$.extend({},$(this).data(),opts);var spect=spectrum(this,options);$(this).data(dataID,spect.id);});};$.fn.spectrum.load=true;$.fn.spectrum.loadOpts={};$.fn.spectrum.draggable=draggable;$.fn.spectrum.defaults=defaultOpts;$.fn.spectrum.inputTypeColorSupport=function inputTypeColorSupport(){if(typeof inputTypeColorSupport._cachedResult===\"undefined\"){var colorInput=$(\"<input type='color'/>\")[0];inputTypeColorSupport._cachedResult=colorInput.type===\"color\"&&colorInput.value!==\"\";}\nreturn inputTypeColorSupport._cachedResult;};$.spectrum={};$.spectrum.localization={};$.spectrum.palettes={};$.fn.spectrum.processNativeColorInputs=function(){var colorInputs=$(\"input[type=color]\");if(colorInputs.length&&!inputTypeColorSupport()){colorInputs.spectrum({preferredFormat:\"hex6\"});}};(function(){var trimLeft=/^[\\s,#]+/,trimRight=/\\s+$/,tinyCounter=0,math=Math,mathRound=math.round,mathMin=math.min,mathMax=math.max,mathRandom=math.random;var tinycolor=function(color,opts){color=(color)?color:'';opts=opts||{};if(color instanceof tinycolor){return color;}\nif(!(this instanceof tinycolor)){return new tinycolor(color,opts);}\nvar rgb=inputToRGB(color);this._originalInput=color;this._r=rgb.r;this._g=rgb.g;this._b=rgb.b;this._a=rgb.a;this._roundA=mathRound(1000*this._a)/ 1000;this._format=opts.format||rgb.format;this._gradientType=opts.gradientType;if(this._r<1){this._r=mathRound(this._r);}\nif(this._g<1){this._g=mathRound(this._g);}\nif(this._b<1){this._b=mathRound(this._b);}\nthis._ok=rgb.ok;this._tc_id=tinyCounter++;};tinycolor.prototype={isDark:function(){return this.getBrightness()<128;},isLight:function(){return!this.isDark();},isValid:function(){return this._ok;},getOriginalInput:function(){return this._originalInput;},getFormat:function(){return this._format;},getAlpha:function(){return this._a;},getBrightness:function(){var rgb=this.toRgb();return(rgb.r*299+rgb.g*587+rgb.b*114)/ 1000;},setAlpha:function(value){this._a=boundAlpha(value);this._roundA=mathRound(1000*this._a)/ 1000;return this;},toHsv:function(){var hsv=rgbToHsv(this._r,this._g,this._b);return{h:hsv.h*360,s:hsv.s,v:hsv.v,a:this._a};},toHsvString:function(){var hsv=rgbToHsv(this._r,this._g,this._b);var h=mathRound(hsv.h*360),s=mathRound(hsv.s*100),v=mathRound(hsv.v*100);return(this._a==1)?\"hsv(\"+h+\", \"+s+\"%, \"+v+\"%)\":\"hsva(\"+h+\", \"+s+\"%, \"+v+\"%, \"+this._roundA+\")\";},toHsl:function(){var hsl=rgbToHsl(this._r,this._g,this._b);return{h:hsl.h*360,s:hsl.s,l:hsl.l,a:this._a};},toHslString:function(){var hsl=rgbToHsl(this._r,this._g,this._b);var h=mathRound(hsl.h*360),s=mathRound(hsl.s*100),l=mathRound(hsl.l*100);return(this._a==1)?\"hsl(\"+h+\", \"+s+\"%, \"+l+\"%)\":\"hsla(\"+h+\", \"+s+\"%, \"+l+\"%, \"+this._roundA+\")\";},toHex:function(allow3Char){return rgbToHex(this._r,this._g,this._b,allow3Char);},toHexString:function(allow3Char){return'#'+this.toHex(allow3Char);},toHex8:function(){return rgbaToHex(this._r,this._g,this._b,this._a);},toHex8String:function(){return'#'+this.toHex8();},toRgb:function(){return{r:mathRound(this._r),g:mathRound(this._g),b:mathRound(this._b),a:this._a};},toRgbString:function(){return(this._a==1)?\"rgb(\"+mathRound(this._r)+\", \"+mathRound(this._g)+\", \"+mathRound(this._b)+\")\":\"rgba(\"+mathRound(this._r)+\", \"+mathRound(this._g)+\", \"+mathRound(this._b)+\", \"+this._roundA+\")\";},toPercentageRgb:function(){return{r:mathRound(bound01(this._r,255)*100)+\"%\",g:mathRound(bound01(this._g,255)*100)+\"%\",b:mathRound(bound01(this._b,255)*100)+\"%\",a:this._a};},toPercentageRgbString:function(){return(this._a==1)?\"rgb(\"+mathRound(bound01(this._r,255)*100)+\"%, \"+mathRound(bound01(this._g,255)*100)+\"%, \"+mathRound(bound01(this._b,255)*100)+\"%)\":\"rgba(\"+mathRound(bound01(this._r,255)*100)+\"%, \"+mathRound(bound01(this._g,255)*100)+\"%, \"+mathRound(bound01(this._b,255)*100)+\"%, \"+this._roundA+\")\";},toName:function(){if(this._a===0){return\"transparent\";}\nif(this._a<1){return false;}\nreturn hexNames[rgbToHex(this._r,this._g,this._b,true)]||false;},toFilter:function(secondColor){var hex8String='#'+rgbaToHex(this._r,this._g,this._b,this._a);var secondHex8String=hex8String;var gradientType=this._gradientType?\"GradientType = 1, \":\"\";if(secondColor){var s=tinycolor(secondColor);secondHex8String=s.toHex8String();}\nreturn\"progid:DXImageTransform.Microsoft.gradient(\"+gradientType+\"startColorstr=\"+hex8String+\",endColorstr=\"+secondHex8String+\")\";},toString:function(format){var formatSet=!!format;format=format||this._format;var formattedString=false;var hasAlpha=this._a<1&&this._a>=0;var needsAlphaFormat=!formatSet&&hasAlpha&&(format===\"hex\"||format===\"hex6\"||format===\"hex3\"||format===\"name\");if(needsAlphaFormat){if(format===\"name\"&&this._a===0){return this.toName();}\nreturn this.toRgbString();}\nif(format===\"rgb\"){formattedString=this.toRgbString();}\nif(format===\"prgb\"){formattedString=this.toPercentageRgbString();}\nif(format===\"hex\"||format===\"hex6\"){formattedString=this.toHexString();}\nif(format===\"hex3\"){formattedString=this.toHexString(true);}\nif(format===\"hex8\"){formattedString=this.toHex8String();}\nif(format===\"name\"){formattedString=this.toName();}\nif(format===\"hsl\"){formattedString=this.toHslString();}\nif(format===\"hsv\"){formattedString=this.toHsvString();}\nreturn formattedString||this.toHexString();},_applyModification:function(fn,args){var color=fn.apply(null,[this].concat([].slice.call(args)));this._r=color._r;this._g=color._g;this._b=color._b;this.setAlpha(color._a);return this;},lighten:function(){return this._applyModification(lighten,arguments);},brighten:function(){return this._applyModification(brighten,arguments);},darken:function(){return this._applyModification(darken,arguments);},desaturate:function(){return this._applyModification(desaturate,arguments);},saturate:function(){return this._applyModification(saturate,arguments);},greyscale:function(){return this._applyModification(greyscale,arguments);},spin:function(){return this._applyModification(spin,arguments);},_applyCombination:function(fn,args){return fn.apply(null,[this].concat([].slice.call(args)));},analogous:function(){return this._applyCombination(analogous,arguments);},complement:function(){return this._applyCombination(complement,arguments);},monochromatic:function(){return this._applyCombination(monochromatic,arguments);},splitcomplement:function(){return this._applyCombination(splitcomplement,arguments);},triad:function(){return this._applyCombination(triad,arguments);},tetrad:function(){return this._applyCombination(tetrad,arguments);}};tinycolor.fromRatio=function(color,opts){if(typeof color==\"object\"){var newColor={};for(var i in color){if(color.hasOwnProperty(i)){if(i===\"a\"){newColor[i]=color[i];}\nelse{newColor[i]=convertToPercentage(color[i]);}}}\ncolor=newColor;}\nreturn tinycolor(color,opts);};function inputToRGB(color){var rgb={r:0,g:0,b:0};var a=1;var ok=false;var format=false;if(typeof color==\"string\"){color=stringInputToObject(color);}\nif(typeof color==\"object\"){if(color.hasOwnProperty(\"r\")&&color.hasOwnProperty(\"g\")&&color.hasOwnProperty(\"b\")){rgb=rgbToRgb(color.r,color.g,color.b);ok=true;format=String(color.r).substr(-1)===\"%\"?\"prgb\":\"rgb\";}\nelse if(color.hasOwnProperty(\"h\")&&color.hasOwnProperty(\"s\")&&color.hasOwnProperty(\"v\")){color.s=convertToPercentage(color.s);color.v=convertToPercentage(color.v);rgb=hsvToRgb(color.h,color.s,color.v);ok=true;format=\"hsv\";}\nelse if(color.hasOwnProperty(\"h\")&&color.hasOwnProperty(\"s\")&&color.hasOwnProperty(\"l\")){color.s=convertToPercentage(color.s);color.l=convertToPercentage(color.l);rgb=hslToRgb(color.h,color.s,color.l);ok=true;format=\"hsl\";}\nif(color.hasOwnProperty(\"a\")){a=color.a;}}\na=boundAlpha(a);return{ok:ok,format:color.format||format,r:mathMin(255,mathMax(rgb.r,0)),g:mathMin(255,mathMax(rgb.g,0)),b:mathMin(255,mathMax(rgb.b,0)),a:a};}\nfunction rgbToRgb(r,g,b){return{r:bound01(r,255)*255,g:bound01(g,255)*255,b:bound01(b,255)*255};}\nfunction rgbToHsl(r,g,b){r=bound01(r,255);g=bound01(g,255);b=bound01(b,255);var max=mathMax(r,g,b),min=mathMin(r,g,b);var h,s,l=(max+min)/ 2;if(max==min){h=s=0;}\nelse{var d=max-min;s=l>0.5?d /(2-max-min):d /(max+min);switch(max){case r:h=(g-b)/ d+(g<b?6:0);break;case g:h=(b-r)/ d+2;break;case b:h=(r-g)/ d+4;break;}\nh /=6;}\nreturn{h:h,s:s,l:l};}\nfunction hslToRgb(h,s,l){var r,g,b;h=bound01(h,360);s=bound01(s,100);l=bound01(l,100);function hue2rgb(p,q,t){if(t<0)t+=1;if(t>1)t-=1;if(t<1/6)return p+(q-p)*6*t;if(t<1/2)return q;if(t<2/3)return p+(q-p)*(2/3-t)*6;return p;}\nif(s===0){r=g=b=l;}\nelse{var q=l<0.5?l*(1+s):l+s-l*s;var p=2*l-q;r=hue2rgb(p,q,h+1/3);g=hue2rgb(p,q,h);b=hue2rgb(p,q,h-1/3);}\nreturn{r:r*255,g:g*255,b:b*255};}\nfunction rgbToHsv(r,g,b){r=bound01(r,255);g=bound01(g,255);b=bound01(b,255);var max=mathMax(r,g,b),min=mathMin(r,g,b);var h,s,v=max;var d=max-min;s=max===0?0:d / max;if(max==min){h=0;}\nelse{switch(max){case r:h=(g-b)/ d+(g<b?6:0);break;case g:h=(b-r)/ d+2;break;case b:h=(r-g)/ d+4;break;}\nh /=6;}\nreturn{h:h,s:s,v:v};}\nfunction hsvToRgb(h,s,v){h=bound01(h,360)*6;s=bound01(s,100);v=bound01(v,100);var i=math.floor(h),f=h-i,p=v*(1-s),q=v*(1-f*s),t=v*(1-(1-f)*s),mod=i%6,r=[v,q,p,p,t,v][mod],g=[t,v,v,q,p,p][mod],b=[p,p,t,v,v,q][mod];return{r:r*255,g:g*255,b:b*255};}\nfunction rgbToHex(r,g,b,allow3Char){var hex=[pad2(mathRound(r).toString(16)),pad2(mathRound(g).toString(16)),pad2(mathRound(b).toString(16))];if(allow3Char&&hex[0].charAt(0)==hex[0].charAt(1)&&hex[1].charAt(0)==hex[1].charAt(1)&&hex[2].charAt(0)==hex[2].charAt(1)){return hex[0].charAt(0)+hex[1].charAt(0)+hex[2].charAt(0);}\nreturn hex.join(\"\");}\nfunction rgbaToHex(r,g,b,a){var hex=[pad2(convertDecimalToHex(a)),pad2(mathRound(r).toString(16)),pad2(mathRound(g).toString(16)),pad2(mathRound(b).toString(16))];return hex.join(\"\");}\ntinycolor.equals=function(color1,color2){if(!color1||!color2){return false;}\nreturn tinycolor(color1).toRgbString()==tinycolor(color2).toRgbString();};tinycolor.random=function(){return tinycolor.fromRatio({r:mathRandom(),g:mathRandom(),b:mathRandom()});};function desaturate(color,amount){amount=(amount===0)?0:(amount||10);var hsl=tinycolor(color).toHsl();hsl.s-=amount / 100;hsl.s=clamp01(hsl.s);return tinycolor(hsl);}\nfunction saturate(color,amount){amount=(amount===0)?0:(amount||10);var hsl=tinycolor(color).toHsl();hsl.s+=amount / 100;hsl.s=clamp01(hsl.s);return tinycolor(hsl);}\nfunction greyscale(color){return tinycolor(color).desaturate(100);}\nfunction lighten(color,amount){amount=(amount===0)?0:(amount||10);var hsl=tinycolor(color).toHsl();hsl.l+=amount / 100;hsl.l=clamp01(hsl.l);return tinycolor(hsl);}\nfunction brighten(color,amount){amount=(amount===0)?0:(amount||10);var rgb=tinycolor(color).toRgb();rgb.r=mathMax(0,mathMin(255,rgb.r-mathRound(255*-(amount / 100))));rgb.g=mathMax(0,mathMin(255,rgb.g-mathRound(255*-(amount / 100))));rgb.b=mathMax(0,mathMin(255,rgb.b-mathRound(255*-(amount / 100))));return tinycolor(rgb);}\nfunction darken(color,amount){amount=(amount===0)?0:(amount||10);var hsl=tinycolor(color).toHsl();hsl.l-=amount / 100;hsl.l=clamp01(hsl.l);return tinycolor(hsl);}\nfunction spin(color,amount){var hsl=tinycolor(color).toHsl();var hue=(mathRound(hsl.h)+amount)%360;hsl.h=hue<0?360+hue:hue;return tinycolor(hsl);}\nfunction complement(color){var hsl=tinycolor(color).toHsl();hsl.h=(hsl.h+180)%360;return tinycolor(hsl);}\nfunction triad(color){var hsl=tinycolor(color).toHsl();var h=hsl.h;return[tinycolor(color),tinycolor({h:(h+120)%360,s:hsl.s,l:hsl.l}),tinycolor({h:(h+240)%360,s:hsl.s,l:hsl.l})];}\nfunction tetrad(color){var hsl=tinycolor(color).toHsl();var h=hsl.h;return[tinycolor(color),tinycolor({h:(h+90)%360,s:hsl.s,l:hsl.l}),tinycolor({h:(h+180)%360,s:hsl.s,l:hsl.l}),tinycolor({h:(h+270)%360,s:hsl.s,l:hsl.l})];}\nfunction splitcomplement(color){var hsl=tinycolor(color).toHsl();var h=hsl.h;return[tinycolor(color),tinycolor({h:(h+72)%360,s:hsl.s,l:hsl.l}),tinycolor({h:(h+216)%360,s:hsl.s,l:hsl.l})];}\nfunction analogous(color,results,slices){results=results||6;slices=slices||30;var hsl=tinycolor(color).toHsl();var part=360 / slices;var ret=[tinycolor(color)];for(hsl.h=((hsl.h-(part*results>>1))+720)%360;--results;){hsl.h=(hsl.h+part)%360;ret.push(tinycolor(hsl));}\nreturn ret;}\nfunction monochromatic(color,results){results=results||6;var hsv=tinycolor(color).toHsv();var h=hsv.h,s=hsv.s,v=hsv.v;var ret=[];var modification=1 / results;while(results--){ret.push(tinycolor({h:h,s:s,v:v}));v=(v+modification)%1;}\nreturn ret;}\ntinycolor.mix=function(color1,color2,amount){amount=(amount===0)?0:(amount||50);var rgb1=tinycolor(color1).toRgb();var rgb2=tinycolor(color2).toRgb();var p=amount / 100;var w=p*2-1;var a=rgb2.a-rgb1.a;var w1;if(w*a==-1){w1=w;}else{w1=(w+a)/(1+w*a);}\nw1=(w1+1)/ 2;var w2=1-w1;var rgba={r:rgb2.r*w1+rgb1.r*w2,g:rgb2.g*w1+rgb1.g*w2,b:rgb2.b*w1+rgb1.b*w2,a:rgb2.a*p+rgb1.a*(1-p)};return tinycolor(rgba);};tinycolor.readability=function(color1,color2){var c1=tinycolor(color1);var c2=tinycolor(color2);var rgb1=c1.toRgb();var rgb2=c2.toRgb();var brightnessA=c1.getBrightness();var brightnessB=c2.getBrightness();var colorDiff=(Math.max(rgb1.r,rgb2.r)-Math.min(rgb1.r,rgb2.r)+\nMath.max(rgb1.g,rgb2.g)-Math.min(rgb1.g,rgb2.g)+\nMath.max(rgb1.b,rgb2.b)-Math.min(rgb1.b,rgb2.b));return{brightness:Math.abs(brightnessA-brightnessB),color:colorDiff};};tinycolor.isReadable=function(color1,color2){var readability=tinycolor.readability(color1,color2);return readability.brightness>125&&readability.color>500;};tinycolor.mostReadable=function(baseColor,colorList){var bestColor=null;var bestScore=0;var bestIsReadable=false;for(var i=0;i<colorList.length;i++){var readability=tinycolor.readability(baseColor,colorList[i]);var readable=readability.brightness>125&&readability.color>500;var score=3*(readability.brightness / 125)+(readability.color / 500);if((readable&&!bestIsReadable)||(readable&&bestIsReadable&&score>bestScore)||((!readable)&&(!bestIsReadable)&&score>bestScore)){bestIsReadable=readable;bestScore=score;bestColor=tinycolor(colorList[i]);}}\nreturn bestColor;};var names=tinycolor.names={aliceblue:\"f0f8ff\",antiquewhite:\"faebd7\",aqua:\"0ff\",aquamarine:\"7fffd4\",azure:\"f0ffff\",beige:\"f5f5dc\",bisque:\"ffe4c4\",black:\"000\",blanchedalmond:\"ffebcd\",blue:\"00f\",blueviolet:\"8a2be2\",brown:\"a52a2a\",burlywood:\"deb887\",burntsienna:\"ea7e5d\",cadetblue:\"5f9ea0\",chartreuse:\"7fff00\",chocolate:\"d2691e\",coral:\"ff7f50\",cornflowerblue:\"6495ed\",cornsilk:\"fff8dc\",crimson:\"dc143c\",cyan:\"0ff\",darkblue:\"00008b\",darkcyan:\"008b8b\",darkgoldenrod:\"b8860b\",darkgray:\"a9a9a9\",darkgreen:\"006400\",darkgrey:\"a9a9a9\",darkkhaki:\"bdb76b\",darkmagenta:\"8b008b\",darkolivegreen:\"556b2f\",darkorange:\"ff8c00\",darkorchid:\"9932cc\",darkred:\"8b0000\",darksalmon:\"e9967a\",darkseagreen:\"8fbc8f\",darkslateblue:\"483d8b\",darkslategray:\"2f4f4f\",darkslategrey:\"2f4f4f\",darkturquoise:\"00ced1\",darkviolet:\"9400d3\",deeppink:\"ff1493\",deepskyblue:\"00bfff\",dimgray:\"696969\",dimgrey:\"696969\",dodgerblue:\"1e90ff\",firebrick:\"b22222\",floralwhite:\"fffaf0\",forestgreen:\"228b22\",fuchsia:\"f0f\",gainsboro:\"dcdcdc\",ghostwhite:\"f8f8ff\",gold:\"ffd700\",goldenrod:\"daa520\",gray:\"808080\",green:\"008000\",greenyellow:\"adff2f\",grey:\"808080\",honeydew:\"f0fff0\",hotpink:\"ff69b4\",indianred:\"cd5c5c\",indigo:\"4b0082\",ivory:\"fffff0\",khaki:\"f0e68c\",lavender:\"e6e6fa\",lavenderblush:\"fff0f5\",lawngreen:\"7cfc00\",lemonchiffon:\"fffacd\",lightblue:\"add8e6\",lightcoral:\"f08080\",lightcyan:\"e0ffff\",lightgoldenrodyellow:\"fafad2\",lightgray:\"d3d3d3\",lightgreen:\"90ee90\",lightgrey:\"d3d3d3\",lightpink:\"ffb6c1\",lightsalmon:\"ffa07a\",lightseagreen:\"20b2aa\",lightskyblue:\"87cefa\",lightslategray:\"789\",lightslategrey:\"789\",lightsteelblue:\"b0c4de\",lightyellow:\"ffffe0\",lime:\"0f0\",limegreen:\"32cd32\",linen:\"faf0e6\",magenta:\"f0f\",maroon:\"800000\",mediumaquamarine:\"66cdaa\",mediumblue:\"0000cd\",mediumorchid:\"ba55d3\",mediumpurple:\"9370db\",mediumseagreen:\"3cb371\",mediumslateblue:\"7b68ee\",mediumspringgreen:\"00fa9a\",mediumturquoise:\"48d1cc\",mediumvioletred:\"c71585\",midnightblue:\"191970\",mintcream:\"f5fffa\",mistyrose:\"ffe4e1\",moccasin:\"ffe4b5\",navajowhite:\"ffdead\",navy:\"000080\",oldlace:\"fdf5e6\",olive:\"808000\",olivedrab:\"6b8e23\",orange:\"ffa500\",orangered:\"ff4500\",orchid:\"da70d6\",palegoldenrod:\"eee8aa\",palegreen:\"98fb98\",paleturquoise:\"afeeee\",palevioletred:\"db7093\",papayawhip:\"ffefd5\",peachpuff:\"ffdab9\",peru:\"cd853f\",pink:\"ffc0cb\",plum:\"dda0dd\",powderblue:\"b0e0e6\",purple:\"800080\",rebeccapurple:\"663399\",red:\"f00\",rosybrown:\"bc8f8f\",royalblue:\"4169e1\",saddlebrown:\"8b4513\",salmon:\"fa8072\",sandybrown:\"f4a460\",seagreen:\"2e8b57\",seashell:\"fff5ee\",sienna:\"a0522d\",silver:\"c0c0c0\",skyblue:\"87ceeb\",slateblue:\"6a5acd\",slategray:\"708090\",slategrey:\"708090\",snow:\"fffafa\",springgreen:\"00ff7f\",steelblue:\"4682b4\",tan:\"d2b48c\",teal:\"008080\",thistle:\"d8bfd8\",tomato:\"ff6347\",turquoise:\"40e0d0\",violet:\"ee82ee\",wheat:\"f5deb3\",white:\"fff\",whitesmoke:\"f5f5f5\",yellow:\"ff0\",yellowgreen:\"9acd32\"};var hexNames=tinycolor.hexNames=flip(names);function flip(o){var flipped={};for(var i in o){if(o.hasOwnProperty(i)){flipped[o[i]]=i;}}\nreturn flipped;}\nfunction boundAlpha(a){a=parseFloat(a);if(isNaN(a)||a<0||a>1){a=1;}\nreturn a;}\nfunction bound01(n,max){if(isOnePointZero(n)){n=\"100%\";}\nvar processPercent=isPercentage(n);n=mathMin(max,mathMax(0,parseFloat(n)));if(processPercent){n=parseInt(n*max,10)/ 100;}\nif((math.abs(n-max)<0.000001)){return 1;}\nreturn(n%max)/ parseFloat(max);}\nfunction clamp01(val){return mathMin(1,mathMax(0,val));}\nfunction parseIntFromHex(val){return parseInt(val,16);}\nfunction isOnePointZero(n){return typeof n==\"string\"&&n.indexOf('.')!=-1&&parseFloat(n)===1;}\nfunction isPercentage(n){return typeof n===\"string\"&&n.indexOf('%')!=-1;}\nfunction pad2(c){return c.length==1?'0'+c:''+c;}\nfunction convertToPercentage(n){if(n<=1){n=(n*100)+\"%\";}\nreturn n;}\nfunction convertDecimalToHex(d){return Math.round(parseFloat(d)*255).toString(16);}\nfunction convertHexToDecimal(h){return(parseIntFromHex(h)/ 255);}\nvar matchers=(function(){var CSS_INTEGER=\"[-\\\\+]?\\\\d+%?\";var CSS_NUMBER=\"[-\\\\+]?\\\\d*\\\\.\\\\d+%?\";var CSS_UNIT=\"(?:\"+CSS_NUMBER+\")|(?:\"+CSS_INTEGER+\")\";var PERMISSIVE_MATCH3=\"[\\\\s|\\\\(]+(\"+CSS_UNIT+\")[,|\\\\s]+(\"+CSS_UNIT+\")[,|\\\\s]+(\"+CSS_UNIT+\")\\\\s*\\\\)?\";var PERMISSIVE_MATCH4=\"[\\\\s|\\\\(]+(\"+CSS_UNIT+\")[,|\\\\s]+(\"+CSS_UNIT+\")[,|\\\\s]+(\"+CSS_UNIT+\")[,|\\\\s]+(\"+CSS_UNIT+\")\\\\s*\\\\)?\";return{rgb:new RegExp(\"rgb\"+PERMISSIVE_MATCH3),rgba:new RegExp(\"rgba\"+PERMISSIVE_MATCH4),hsl:new RegExp(\"hsl\"+PERMISSIVE_MATCH3),hsla:new RegExp(\"hsla\"+PERMISSIVE_MATCH4),hsv:new RegExp(\"hsv\"+PERMISSIVE_MATCH3),hsva:new RegExp(\"hsva\"+PERMISSIVE_MATCH4),hex3:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex8:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};})();function stringInputToObject(color){color=color.replace(trimLeft,'').replace(trimRight,'').toLowerCase();var named=false;if(names[color]){color=names[color];named=true;}\nelse if(color=='transparent'){return{r:0,g:0,b:0,a:0,format:\"name\"};}\nvar match;if((match=matchers.rgb.exec(color))){return{r:match[1],g:match[2],b:match[3]};}\nif((match=matchers.rgba.exec(color))){return{r:match[1],g:match[2],b:match[3],a:match[4]};}\nif((match=matchers.hsl.exec(color))){return{h:match[1],s:match[2],l:match[3]};}\nif((match=matchers.hsla.exec(color))){return{h:match[1],s:match[2],l:match[3],a:match[4]};}\nif((match=matchers.hsv.exec(color))){return{h:match[1],s:match[2],v:match[3]};}\nif((match=matchers.hsva.exec(color))){return{h:match[1],s:match[2],v:match[3],a:match[4]};}\nif((match=matchers.hex8.exec(color))){return{a:convertHexToDecimal(match[1]),r:parseIntFromHex(match[2]),g:parseIntFromHex(match[3]),b:parseIntFromHex(match[4]),format:named?\"name\":\"hex8\"};}\nif((match=matchers.hex6.exec(color))){return{r:parseIntFromHex(match[1]),g:parseIntFromHex(match[2]),b:parseIntFromHex(match[3]),format:named?\"name\":\"hex\"};}\nif((match=matchers.hex3.exec(color))){return{r:parseIntFromHex(match[1]+''+match[1]),g:parseIntFromHex(match[2]+''+match[2]),b:parseIntFromHex(match[3]+''+match[3]),format:named?\"name\":\"hex\"};}\nreturn false;}\nwindow.tinycolor=tinycolor;})();$(function(){if($.fn.spectrum.load){$.fn.spectrum.processNativeColorInputs();}});});","jquery/ui-modules/form-reset-mixin.min.js":"/*!\n * jQuery UI Form Reset Mixin 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"./form\",\"./version\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";return $.ui.formResetMixin={_formResetHandler:function(){var form=$(this);setTimeout(function(){var instances=form.data(\"ui-form-reset-instances\");$.each(instances,function(){this.refresh();});});},_bindFormResetHandler:function(){this.form=this.element._form();if(!this.form.length){return;}\nvar instances=this.form.data(\"ui-form-reset-instances\")||[];if(!instances.length){this.form.on(\"reset.ui-form-reset\",this._formResetHandler);}\ninstances.push(this);this.form.data(\"ui-form-reset-instances\",instances);},_unbindFormResetHandler:function(){if(!this.form.length){return;}\nvar instances=this.form.data(\"ui-form-reset-instances\");instances.splice($.inArray(this,instances),1);if(instances.length){this.form.data(\"ui-form-reset-instances\",instances);}else{this.form.removeData(\"ui-form-reset-instances\").off(\"reset.ui-form-reset\");}}};});","jquery/ui-modules/scroll-parent.min.js":"/*!\n * jQuery UI Scroll Parent 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"./version\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";return $.fn.scrollParent=function(includeHidden){var position=this.css(\"position\"),excludeStaticParent=position===\"absolute\",overflowRegex=includeHidden?/(auto|scroll|hidden)/:/(auto|scroll)/,scrollParent=this.parents().filter(function(){var parent=$(this);if(excludeStaticParent&&parent.css(\"position\")===\"static\"){return false;}\nreturn overflowRegex.test(parent.css(\"overflow\")+parent.css(\"overflow-y\")+\nparent.css(\"overflow-x\"));}).eq(0);return position===\"fixed\"||!scrollParent.length?$(this[0].ownerDocument||document):scrollParent;};});","jquery/ui-modules/disable-selection.min.js":"/*!\n * jQuery UI Disable Selection 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"./version\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";return $.fn.extend({disableSelection:(function(){var eventType=\"onselectstart\"in document.createElement(\"div\")?\"selectstart\":\"mousedown\";return function(){return this.on(eventType+\".ui-disableSelection\",function(event){event.preventDefault();});};})(),enableSelection:function(){return this.off(\".ui-disableSelection\");}});});","jquery/ui-modules/form.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"./version\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";return $.fn._form=function(){return typeof this[0].form===\"string\"?this.closest(\"form\"):$(this[0].form);};});","jquery/ui-modules/focusable.min.js":"/*!\n * jQuery UI Focusable 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"./version\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";$.ui.focusable=function(element,hasTabindex){var map,mapName,img,focusableIfVisible,fieldset,nodeName=element.nodeName.toLowerCase();if(\"area\"===nodeName){map=element.parentNode;mapName=map.name;if(!element.href||!mapName||map.nodeName.toLowerCase()!==\"map\"){return false;}\nimg=$(\"img[usemap='#\"+mapName+\"']\");return img.length>0&&img.is(\":visible\");}\nif(/^(input|select|textarea|button|object)$/.test(nodeName)){focusableIfVisible=!element.disabled;if(focusableIfVisible){fieldset=$(element).closest(\"fieldset\")[0];if(fieldset){focusableIfVisible=!fieldset.disabled;}}}else if(\"a\"===nodeName){focusableIfVisible=element.href||hasTabindex;}else{focusableIfVisible=hasTabindex;}\nreturn focusableIfVisible&&$(element).is(\":visible\")&&visible($(element));};function visible(element){var visibility=element.css(\"visibility\");while(visibility===\"inherit\"){element=element.parent();visibility=element.css(\"visibility\");}\nreturn visibility===\"visible\";}\n$.extend($.expr.pseudos,{focusable:function(element){return $.ui.focusable(element,$.attr(element,\"tabindex\")!=null);}});return $.ui.focusable;});","jquery/ui-modules/version.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";$.ui=$.ui||{};return $.ui.version=\"1.13.2\";});","jquery/ui-modules/widget.min.js":"/*!\n * jQuery UI Widget 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"./version\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";var widgetUuid=0;var widgetHasOwnProperty=Array.prototype.hasOwnProperty;var widgetSlice=Array.prototype.slice;$.cleanData=(function(orig){return function(elems){var events,elem,i;for(i=0;(elem=elems[i])!=null;i++){events=$._data(elem,\"events\");if(events&&events.remove){$(elem).triggerHandler(\"remove\");}}\norig(elems);};})($.cleanData);$.widget=function(name,base,prototype){var existingConstructor,constructor,basePrototype;var proxiedPrototype={};var namespace=name.split(\".\")[0];name=name.split(\".\")[1];var fullName=namespace+\"-\"+name;if(!prototype){prototype=base;base=$.Widget;}\nif(Array.isArray(prototype)){prototype=$.extend.apply(null,[{}].concat(prototype));}\n$.expr.pseudos[fullName.toLowerCase()]=function(elem){return!!$.data(elem,fullName);};$[namespace]=$[namespace]||{};existingConstructor=$[namespace][name];constructor=$[namespace][name]=function(options,element){if(!this||!this._createWidget){return new constructor(options,element);}\nif(arguments.length){this._createWidget(options,element);}};$.extend(constructor,existingConstructor,{version:prototype.version,_proto:$.extend({},prototype),_childConstructors:[]});basePrototype=new base();basePrototype.options=$.widget.extend({},basePrototype.options);$.each(prototype,function(prop,value){if(typeof value!==\"function\"){proxiedPrototype[prop]=value;return;}\nproxiedPrototype[prop]=(function(){function _super(){return base.prototype[prop].apply(this,arguments);}\nfunction _superApply(args){return base.prototype[prop].apply(this,args);}\nreturn function(){var __super=this._super;var __superApply=this._superApply;var returnValue;this._super=_super;this._superApply=_superApply;returnValue=value.apply(this,arguments);this._super=__super;this._superApply=__superApply;return returnValue;};})();});constructor.prototype=$.widget.extend(basePrototype,{widgetEventPrefix:existingConstructor?(basePrototype.widgetEventPrefix||name):name},proxiedPrototype,{constructor:constructor,namespace:namespace,widgetName:name,widgetFullName:fullName});if(existingConstructor){$.each(existingConstructor._childConstructors,function(i,child){var childPrototype=child.prototype;$.widget(childPrototype.namespace+\".\"+childPrototype.widgetName,constructor,child._proto);});delete existingConstructor._childConstructors;}else{base._childConstructors.push(constructor);}\n$.widget.bridge(name,constructor);return constructor;};$.widget.extend=function(target){var input=widgetSlice.call(arguments,1);var inputIndex=0;var inputLength=input.length;var key;var value;for(;inputIndex<inputLength;inputIndex++){for(key in input[inputIndex]){value=input[inputIndex][key];if(widgetHasOwnProperty.call(input[inputIndex],key)&&value!==undefined){if($.isPlainObject(value)){target[key]=$.isPlainObject(target[key])?$.widget.extend({},target[key],value):$.widget.extend({},value);}else{target[key]=value;}}}}\nreturn target;};$.widget.bridge=function(name,object){var fullName=object.prototype.widgetFullName||name;$.fn[name]=function(options){var isMethodCall=typeof options===\"string\";var args=widgetSlice.call(arguments,1);var returnValue=this;if(isMethodCall){if(!this.length&&options===\"instance\"){returnValue=undefined;}else{this.each(function(){var methodValue;var instance=$.data(this,fullName);if(options===\"instance\"){returnValue=instance;return false;}\nif(!instance){return $.error(\"cannot call methods on \"+name+\" prior to initialization; \"+\"attempted to call method '\"+options+\"'\");}\nif(typeof instance[options]!==\"function\"||options.charAt(0)===\"_\"){return $.error(\"no such method '\"+options+\"' for \"+name+\" widget instance\");}\nmethodValue=instance[options].apply(instance,args);if(methodValue!==instance&&methodValue!==undefined){returnValue=methodValue&&methodValue.jquery?returnValue.pushStack(methodValue.get()):methodValue;return false;}});}}else{if(args.length){options=$.widget.extend.apply(null,[options].concat(args));}\nthis.each(function(){var instance=$.data(this,fullName);if(instance){instance.option(options||{});if(instance._init){instance._init();}}else{$.data(this,fullName,new object(options,this));}});}\nreturn returnValue;};};$.Widget=function(){};$.Widget._childConstructors=[];$.Widget.prototype={widgetName:\"widget\",widgetEventPrefix:\"\",defaultElement:\"<div>\",options:{classes:{},disabled:false,create:null},_createWidget:function(options,element){element=$(element||this.defaultElement||this)[0];this.element=$(element);this.uuid=widgetUuid++;this.eventNamespace=\".\"+this.widgetName+this.uuid;this.bindings=$();this.hoverable=$();this.focusable=$();this.classesElementLookup={};if(element!==this){$.data(element,this.widgetFullName,this);this._on(true,this.element,{remove:function(event){if(event.target===element){this.destroy();}}});this.document=$(element.style?element.ownerDocument:element.document||element);this.window=$(this.document[0].defaultView||this.document[0].parentWindow);}\nthis.options=$.widget.extend({},this.options,this._getCreateOptions(),options);this._create();if(this.options.disabled){this._setOptionDisabled(this.options.disabled);}\nthis._trigger(\"create\",null,this._getCreateEventData());this._init();},_getCreateOptions:function(){return{};},_getCreateEventData:$.noop,_create:$.noop,_init:$.noop,destroy:function(){var that=this;this._destroy();$.each(this.classesElementLookup,function(key,value){that._removeClass(value,key);});this.element.off(this.eventNamespace).removeData(this.widgetFullName);this.widget().off(this.eventNamespace).removeAttr(\"aria-disabled\");this.bindings.off(this.eventNamespace);},_destroy:$.noop,widget:function(){return this.element;},option:function(key,value){var options=key;var parts;var curOption;var i;if(arguments.length===0){return $.widget.extend({},this.options);}\nif(typeof key===\"string\"){options={};parts=key.split(\".\");key=parts.shift();if(parts.length){curOption=options[key]=$.widget.extend({},this.options[key]);for(i=0;i<parts.length-1;i++){curOption[parts[i]]=curOption[parts[i]]||{};curOption=curOption[parts[i]];}\nkey=parts.pop();if(arguments.length===1){return curOption[key]===undefined?null:curOption[key];}\ncurOption[key]=value;}else{if(arguments.length===1){return this.options[key]===undefined?null:this.options[key];}\noptions[key]=value;}}\nthis._setOptions(options);return this;},_setOptions:function(options){var key;for(key in options){this._setOption(key,options[key]);}\nreturn this;},_setOption:function(key,value){if(key===\"classes\"){this._setOptionClasses(value);}\nthis.options[key]=value;if(key===\"disabled\"){this._setOptionDisabled(value);}\nreturn this;},_setOptionClasses:function(value){var classKey,elements,currentElements;for(classKey in value){currentElements=this.classesElementLookup[classKey];if(value[classKey]===this.options.classes[classKey]||!currentElements||!currentElements.length){continue;}\nelements=$(currentElements.get());this._removeClass(currentElements,classKey);elements.addClass(this._classes({element:elements,keys:classKey,classes:value,add:true}));}},_setOptionDisabled:function(value){this._toggleClass(this.widget(),this.widgetFullName+\"-disabled\",null,!!value);if(value){this._removeClass(this.hoverable,null,\"ui-state-hover\");this._removeClass(this.focusable,null,\"ui-state-focus\");}},enable:function(){return this._setOptions({disabled:false});},disable:function(){return this._setOptions({disabled:true});},_classes:function(options){var full=[];var that=this;options=$.extend({element:this.element,classes:this.options.classes||{}},options);function bindRemoveEvent(){var nodesToBind=[];options.element.each(function(_,element){var isTracked=$.map(that.classesElementLookup,function(elements){return elements;}).some(function(elements){return elements.is(element);});if(!isTracked){nodesToBind.push(element);}});that._on($(nodesToBind),{remove:\"_untrackClassesElement\"});}\nfunction processClassString(classes,checkOption){var current,i;for(i=0;i<classes.length;i++){current=that.classesElementLookup[classes[i]]||$();if(options.add){bindRemoveEvent();current=$($.uniqueSort(current.get().concat(options.element.get())));}else{current=$(current.not(options.element).get());}\nthat.classesElementLookup[classes[i]]=current;full.push(classes[i]);if(checkOption&&options.classes[classes[i]]){full.push(options.classes[classes[i]]);}}}\nif(options.keys){processClassString(options.keys.match(/\\S+/g)||[],true);}\nif(options.extra){processClassString(options.extra.match(/\\S+/g)||[]);}\nreturn full.join(\" \");},_untrackClassesElement:function(event){var that=this;$.each(that.classesElementLookup,function(key,value){if($.inArray(event.target,value)!==-1){that.classesElementLookup[key]=$(value.not(event.target).get());}});this._off($(event.target));},_removeClass:function(element,keys,extra){return this._toggleClass(element,keys,extra,false);},_addClass:function(element,keys,extra){return this._toggleClass(element,keys,extra,true);},_toggleClass:function(element,keys,extra,add){add=(typeof add===\"boolean\")?add:extra;var shift=(typeof element===\"string\"||element===null),options={extra:shift?keys:extra,keys:shift?element:keys,element:shift?this.element:element,add:add};options.element.toggleClass(this._classes(options),add);return this;},_on:function(suppressDisabledCheck,element,handlers){var delegateElement;var instance=this;if(typeof suppressDisabledCheck!==\"boolean\"){handlers=element;element=suppressDisabledCheck;suppressDisabledCheck=false;}\nif(!handlers){handlers=element;element=this.element;delegateElement=this.widget();}else{element=delegateElement=$(element);this.bindings=this.bindings.add(element);}\n$.each(handlers,function(event,handler){function handlerProxy(){if(!suppressDisabledCheck&&(instance.options.disabled===true||$(this).hasClass(\"ui-state-disabled\"))){return;}\nreturn(typeof handler===\"string\"?instance[handler]:handler).apply(instance,arguments);}\nif(typeof handler!==\"string\"){handlerProxy.guid=handler.guid=handler.guid||handlerProxy.guid||$.guid++;}\nvar match=event.match(/^([\\w:-]*)\\s*(.*)$/);var eventName=match[1]+instance.eventNamespace;var selector=match[2];if(selector){delegateElement.on(eventName,selector,handlerProxy);}else{element.on(eventName,handlerProxy);}});},_off:function(element,eventName){eventName=(eventName||\"\").split(\" \").join(this.eventNamespace+\" \")+\nthis.eventNamespace;element.off(eventName);this.bindings=$(this.bindings.not(element).get());this.focusable=$(this.focusable.not(element).get());this.hoverable=$(this.hoverable.not(element).get());},_delay:function(handler,delay){function handlerProxy(){return(typeof handler===\"string\"?instance[handler]:handler).apply(instance,arguments);}\nvar instance=this;return setTimeout(handlerProxy,delay||0);},_hoverable:function(element){this.hoverable=this.hoverable.add(element);this._on(element,{mouseenter:function(event){this._addClass($(event.currentTarget),null,\"ui-state-hover\");},mouseleave:function(event){this._removeClass($(event.currentTarget),null,\"ui-state-hover\");}});},_focusable:function(element){this.focusable=this.focusable.add(element);this._on(element,{focusin:function(event){this._addClass($(event.currentTarget),null,\"ui-state-focus\");},focusout:function(event){this._removeClass($(event.currentTarget),null,\"ui-state-focus\");}});},_trigger:function(type,event,data){var prop,orig;var callback=this.options[type];data=data||{};event=$.Event(event);event.type=(type===this.widgetEventPrefix?type:this.widgetEventPrefix+type).toLowerCase();event.target=this.element[0];orig=event.originalEvent;if(orig){for(prop in orig){if(!(prop in event)){event[prop]=orig[prop];}}}\nthis.element.trigger(event,data);return!(typeof callback===\"function\"&&callback.apply(this.element[0],[event].concat(data))===false||event.isDefaultPrevented());}};$.each({show:\"fadeIn\",hide:\"fadeOut\"},function(method,defaultEffect){$.Widget.prototype[\"_\"+method]=function(element,options,callback){if(typeof options===\"string\"){options={effect:options};}\nvar hasOptions;var effectName=!options?method:options===true||typeof options===\"number\"?defaultEffect:options.effect||defaultEffect;options=options||{};if(typeof options===\"number\"){options={duration:options};}else if(options===true){options={};}\nhasOptions=!$.isEmptyObject(options);options.complete=callback;if(options.delay){element.delay(options.delay);}\nif(hasOptions&&$.effects&&$.effects.effect[effectName]){element[method](options);}else if(effectName!==method&&element[effectName]){element[effectName](options.duration,options.easing,callback);}else{element.queue(function(next){$(this)[method]();if(callback){callback.call(element[0]);}\nnext();});}};});return $.widget;});","jquery/ui-modules/unique-id.min.js":"/*!\n * jQuery UI Unique ID 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"./version\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";return $.fn.extend({uniqueId:(function(){var uuid=0;return function(){return this.each(function(){if(!this.id){this.id=\"ui-id-\"+(++uuid);}});};})(),removeUniqueId:function(){return this.each(function(){if(/^ui-id-\\d+$/.test(this.id)){$(this).removeAttr(\"id\");}});}});});","jquery/ui-modules/jquery-var-for-color.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"./version\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";var jQuery=$;});","jquery/ui-modules/ie.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"./version\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";return $.ui.ie=!!/msie [\\w.]+/.exec(navigator.userAgent.toLowerCase());});","jquery/ui-modules/keycode.min.js":"/*!\n * jQuery UI Keycode 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"./version\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";return $.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38};});","jquery/ui-modules/effect.min.js":"/*!\n * jQuery UI Effects 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"./jquery-var-for-color\",\"./vendor/jquery-color/jquery.color\",\"./version\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";var dataSpace=\"ui-effects-\",dataSpaceStyle=\"ui-effects-style\",dataSpaceAnimated=\"ui-effects-animated\";$.effects={effect:{}};(function(){var classAnimationActions=[\"add\",\"remove\",\"toggle\"],shorthandStyles={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};$.each([\"borderLeftStyle\",\"borderRightStyle\",\"borderBottomStyle\",\"borderTopStyle\"],function(_,prop){$.fx.step[prop]=function(fx){if(fx.end!==\"none\"&&!fx.setAttr||fx.pos===1&&!fx.setAttr){jQuery.style(fx.elem,prop,fx.end);fx.setAttr=true;}};});function camelCase(string){return string.replace(/-([\\da-z])/gi,function(all,letter){return letter.toUpperCase();});}\nfunction getElementStyles(elem){var key,len,style=elem.ownerDocument.defaultView?elem.ownerDocument.defaultView.getComputedStyle(elem,null):elem.currentStyle,styles={};if(style&&style.length&&style[0]&&style[style[0]]){len=style.length;while(len--){key=style[len];if(typeof style[key]===\"string\"){styles[camelCase(key)]=style[key];}}}else{for(key in style){if(typeof style[key]===\"string\"){styles[key]=style[key];}}}\nreturn styles;}\nfunction styleDifference(oldStyle,newStyle){var diff={},name,value;for(name in newStyle){value=newStyle[name];if(oldStyle[name]!==value){if(!shorthandStyles[name]){if($.fx.step[name]||!isNaN(parseFloat(value))){diff[name]=value;}}}}\nreturn diff;}\nif(!$.fn.addBack){$.fn.addBack=function(selector){return this.add(selector==null?this.prevObject:this.prevObject.filter(selector));};}\n$.effects.animateClass=function(value,duration,easing,callback){var o=$.speed(duration,easing,callback);return this.queue(function(){var animated=$(this),baseClass=animated.attr(\"class\")||\"\",applyClassChange,allAnimations=o.children?animated.find(\"*\").addBack():animated;allAnimations=allAnimations.map(function(){var el=$(this);return{el:el,start:getElementStyles(this)};});applyClassChange=function(){$.each(classAnimationActions,function(i,action){if(value[action]){animated[action+\"Class\"](value[action]);}});};applyClassChange();allAnimations=allAnimations.map(function(){this.end=getElementStyles(this.el[0]);this.diff=styleDifference(this.start,this.end);return this;});animated.attr(\"class\",baseClass);allAnimations=allAnimations.map(function(){var styleInfo=this,dfd=$.Deferred(),opts=$.extend({},o,{queue:false,complete:function(){dfd.resolve(styleInfo);}});this.el.animate(this.diff,opts);return dfd.promise();});$.when.apply($,allAnimations.get()).done(function(){applyClassChange();$.each(arguments,function(){var el=this.el;$.each(this.diff,function(key){el.css(key,\"\");});});o.complete.call(animated[0]);});});};$.fn.extend({addClass:(function(orig){return function(classNames,speed,easing,callback){return speed?$.effects.animateClass.call(this,{add:classNames},speed,easing,callback):orig.apply(this,arguments);};})($.fn.addClass),removeClass:(function(orig){return function(classNames,speed,easing,callback){return arguments.length>1?$.effects.animateClass.call(this,{remove:classNames},speed,easing,callback):orig.apply(this,arguments);};})($.fn.removeClass),toggleClass:(function(orig){return function(classNames,force,speed,easing,callback){if(typeof force===\"boolean\"||force===undefined){if(!speed){return orig.apply(this,arguments);}else{return $.effects.animateClass.call(this,(force?{add:classNames}:{remove:classNames}),speed,easing,callback);}}else{return $.effects.animateClass.call(this,{toggle:classNames},force,speed,easing);}};})($.fn.toggleClass),switchClass:function(remove,add,speed,easing,callback){return $.effects.animateClass.call(this,{add:add,remove:remove},speed,easing,callback);}});})();(function(){if($.expr&&$.expr.pseudos&&$.expr.pseudos.animated){$.expr.pseudos.animated=(function(orig){return function(elem){return!!$(elem).data(dataSpaceAnimated)||orig(elem);};})($.expr.pseudos.animated);}\nif($.uiBackCompat!==false){$.extend($.effects,{save:function(element,set){var i=0,length=set.length;for(;i<length;i++){if(set[i]!==null){element.data(dataSpace+set[i],element[0].style[set[i]]);}}},restore:function(element,set){var val,i=0,length=set.length;for(;i<length;i++){if(set[i]!==null){val=element.data(dataSpace+set[i]);element.css(set[i],val);}}},setMode:function(el,mode){if(mode===\"toggle\"){mode=el.is(\":hidden\")?\"show\":\"hide\";}\nreturn mode;},createWrapper:function(element){if(element.parent().is(\".ui-effects-wrapper\")){return element.parent();}\nvar props={width:element.outerWidth(true),height:element.outerHeight(true),\"float\":element.css(\"float\")},wrapper=$(\"<div></div>\").addClass(\"ui-effects-wrapper\").css({fontSize:\"100%\",background:\"transparent\",border:\"none\",margin:0,padding:0}),size={width:element.width(),height:element.height()},active=document.activeElement;try{active.id;}catch(e){active=document.body;}\nelement.wrap(wrapper);if(element[0]===active||$.contains(element[0],active)){$(active).trigger(\"focus\");}\nwrapper=element.parent();if(element.css(\"position\")===\"static\"){wrapper.css({position:\"relative\"});element.css({position:\"relative\"});}else{$.extend(props,{position:element.css(\"position\"),zIndex:element.css(\"z-index\")});$.each([\"top\",\"left\",\"bottom\",\"right\"],function(i,pos){props[pos]=element.css(pos);if(isNaN(parseInt(props[pos],10))){props[pos]=\"auto\";}});element.css({position:\"relative\",top:0,left:0,right:\"auto\",bottom:\"auto\"});}\nelement.css(size);return wrapper.css(props).show();},removeWrapper:function(element){var active=document.activeElement;if(element.parent().is(\".ui-effects-wrapper\")){element.parent().replaceWith(element);if(element[0]===active||$.contains(element[0],active)){$(active).trigger(\"focus\");}}\nreturn element;}});}\n$.extend($.effects,{version:\"1.13.2\",define:function(name,mode,effect){if(!effect){effect=mode;mode=\"effect\";}\n$.effects.effect[name]=effect;$.effects.effect[name].mode=mode;return effect;},scaledDimensions:function(element,percent,direction){if(percent===0){return{height:0,width:0,outerHeight:0,outerWidth:0};}\nvar x=direction!==\"horizontal\"?((percent||100)/ 100):1,y=direction!==\"vertical\"?((percent||100)/ 100):1;return{height:element.height()*y,width:element.width()*x,outerHeight:element.outerHeight()*y,outerWidth:element.outerWidth()*x};},clipToBox:function(animation){return{width:animation.clip.right-animation.clip.left,height:animation.clip.bottom-animation.clip.top,left:animation.clip.left,top:animation.clip.top};},unshift:function(element,queueLength,count){var queue=element.queue();if(queueLength>1){queue.splice.apply(queue,[1,0].concat(queue.splice(queueLength,count)));}\nelement.dequeue();},saveStyle:function(element){element.data(dataSpaceStyle,element[0].style.cssText);},restoreStyle:function(element){element[0].style.cssText=element.data(dataSpaceStyle)||\"\";element.removeData(dataSpaceStyle);},mode:function(element,mode){var hidden=element.is(\":hidden\");if(mode===\"toggle\"){mode=hidden?\"show\":\"hide\";}\nif(hidden?mode===\"hide\":mode===\"show\"){mode=\"none\";}\nreturn mode;},getBaseline:function(origin,original){var y,x;switch(origin[0]){case\"top\":y=0;break;case\"middle\":y=0.5;break;case\"bottom\":y=1;break;default:y=origin[0]/ original.height;}\nswitch(origin[1]){case\"left\":x=0;break;case\"center\":x=0.5;break;case\"right\":x=1;break;default:x=origin[1]/ original.width;}\nreturn{x:x,y:y};},createPlaceholder:function(element){var placeholder,cssPosition=element.css(\"position\"),position=element.position();element.css({marginTop:element.css(\"marginTop\"),marginBottom:element.css(\"marginBottom\"),marginLeft:element.css(\"marginLeft\"),marginRight:element.css(\"marginRight\")}).outerWidth(element.outerWidth()).outerHeight(element.outerHeight());if(/^(static|relative)/.test(cssPosition)){cssPosition=\"absolute\";placeholder=$(\"<\"+element[0].nodeName+\">\").insertAfter(element).css({display:/^(inline|ruby)/.test(element.css(\"display\"))?\"inline-block\":\"block\",visibility:\"hidden\",marginTop:element.css(\"marginTop\"),marginBottom:element.css(\"marginBottom\"),marginLeft:element.css(\"marginLeft\"),marginRight:element.css(\"marginRight\"),\"float\":element.css(\"float\")}).outerWidth(element.outerWidth()).outerHeight(element.outerHeight()).addClass(\"ui-effects-placeholder\");element.data(dataSpace+\"placeholder\",placeholder);}\nelement.css({position:cssPosition,left:position.left,top:position.top});return placeholder;},removePlaceholder:function(element){var dataKey=dataSpace+\"placeholder\",placeholder=element.data(dataKey);if(placeholder){placeholder.remove();element.removeData(dataKey);}},cleanUp:function(element){$.effects.restoreStyle(element);$.effects.removePlaceholder(element);},setTransition:function(element,list,factor,value){value=value||{};$.each(list,function(i,x){var unit=element.cssUnit(x);if(unit[0]>0){value[x]=unit[0]*factor+unit[1];}});return value;}});function _normalizeArguments(effect,options,speed,callback){if($.isPlainObject(effect)){options=effect;effect=effect.effect;}\neffect={effect:effect};if(options==null){options={};}\nif(typeof options===\"function\"){callback=options;speed=null;options={};}\nif(typeof options===\"number\"||$.fx.speeds[options]){callback=speed;speed=options;options={};}\nif(typeof speed===\"function\"){callback=speed;speed=null;}\nif(options){$.extend(effect,options);}\nspeed=speed||options.duration;effect.duration=$.fx.off?0:typeof speed===\"number\"?speed:speed in $.fx.speeds?$.fx.speeds[speed]:$.fx.speeds._default;effect.complete=callback||options.complete;return effect;}\nfunction standardAnimationOption(option){if(!option||typeof option===\"number\"||$.fx.speeds[option]){return true;}\nif(typeof option===\"string\"&&!$.effects.effect[option]){return true;}\nif(typeof option===\"function\"){return true;}\nif(typeof option===\"object\"&&!option.effect){return true;}\nreturn false;}\n$.fn.extend({effect:function(){var args=_normalizeArguments.apply(this,arguments),effectMethod=$.effects.effect[args.effect],defaultMode=effectMethod.mode,queue=args.queue,queueName=queue||\"fx\",complete=args.complete,mode=args.mode,modes=[],prefilter=function(next){var el=$(this),normalizedMode=$.effects.mode(el,mode)||defaultMode;el.data(dataSpaceAnimated,true);modes.push(normalizedMode);if(defaultMode&&(normalizedMode===\"show\"||(normalizedMode===defaultMode&&normalizedMode===\"hide\"))){el.show();}\nif(!defaultMode||normalizedMode!==\"none\"){$.effects.saveStyle(el);}\nif(typeof next===\"function\"){next();}};if($.fx.off||!effectMethod){if(mode){return this[mode](args.duration,complete);}else{return this.each(function(){if(complete){complete.call(this);}});}}\nfunction run(next){var elem=$(this);function cleanup(){elem.removeData(dataSpaceAnimated);$.effects.cleanUp(elem);if(args.mode===\"hide\"){elem.hide();}\ndone();}\nfunction done(){if(typeof complete===\"function\"){complete.call(elem[0]);}\nif(typeof next===\"function\"){next();}}\nargs.mode=modes.shift();if($.uiBackCompat!==false&&!defaultMode){if(elem.is(\":hidden\")?mode===\"hide\":mode===\"show\"){elem[mode]();done();}else{effectMethod.call(elem[0],args,done);}}else{if(args.mode===\"none\"){elem[mode]();done();}else{effectMethod.call(elem[0],args,cleanup);}}}\nreturn queue===false?this.each(prefilter).each(run):this.queue(queueName,prefilter).queue(queueName,run);},show:(function(orig){return function(option){if(standardAnimationOption(option)){return orig.apply(this,arguments);}else{var args=_normalizeArguments.apply(this,arguments);args.mode=\"show\";return this.effect.call(this,args);}};})($.fn.show),hide:(function(orig){return function(option){if(standardAnimationOption(option)){return orig.apply(this,arguments);}else{var args=_normalizeArguments.apply(this,arguments);args.mode=\"hide\";return this.effect.call(this,args);}};})($.fn.hide),toggle:(function(orig){return function(option){if(standardAnimationOption(option)||typeof option===\"boolean\"){return orig.apply(this,arguments);}else{var args=_normalizeArguments.apply(this,arguments);args.mode=\"toggle\";return this.effect.call(this,args);}};})($.fn.toggle),cssUnit:function(key){var style=this.css(key),val=[];$.each([\"em\",\"px\",\"%\",\"pt\"],function(i,unit){if(style.indexOf(unit)>0){val=[parseFloat(style),unit];}});return val;},cssClip:function(clipObj){if(clipObj){return this.css(\"clip\",\"rect(\"+clipObj.top+\"px \"+clipObj.right+\"px \"+\nclipObj.bottom+\"px \"+clipObj.left+\"px)\");}\nreturn parseClip(this.css(\"clip\"),this);},transfer:function(options,done){var element=$(this),target=$(options.to),targetFixed=target.css(\"position\")===\"fixed\",body=$(\"body\"),fixTop=targetFixed?body.scrollTop():0,fixLeft=targetFixed?body.scrollLeft():0,endPosition=target.offset(),animation={top:endPosition.top-fixTop,left:endPosition.left-fixLeft,height:target.innerHeight(),width:target.innerWidth()},startPosition=element.offset(),transfer=$(\"<div class='ui-effects-transfer'></div>\");transfer.appendTo(\"body\").addClass(options.className).css({top:startPosition.top-fixTop,left:startPosition.left-fixLeft,height:element.innerHeight(),width:element.innerWidth(),position:targetFixed?\"fixed\":\"absolute\"}).animate(animation,options.duration,options.easing,function(){transfer.remove();if(typeof done===\"function\"){done();}});}});function parseClip(str,element){var outerWidth=element.outerWidth(),outerHeight=element.outerHeight(),clipRegex=/^rect\\((-?\\d*\\.?\\d*px|-?\\d+%|auto),?\\s*(-?\\d*\\.?\\d*px|-?\\d+%|auto),?\\s*(-?\\d*\\.?\\d*px|-?\\d+%|auto),?\\s*(-?\\d*\\.?\\d*px|-?\\d+%|auto)\\)$/,values=clipRegex.exec(str)||[\"\",0,outerWidth,outerHeight,0];return{top:parseFloat(values[1])||0,right:values[2]===\"auto\"?outerWidth:parseFloat(values[2]),bottom:values[3]===\"auto\"?outerHeight:parseFloat(values[3]),left:parseFloat(values[4])||0};}\n$.fx.step.clip=function(fx){if(!fx.clipInit){fx.start=$(fx.elem).cssClip();if(typeof fx.end===\"string\"){fx.end=parseClip(fx.end,fx.elem);}\nfx.clipInit=true;}\n$(fx.elem).cssClip({top:fx.pos*(fx.end.top-fx.start.top)+fx.start.top,right:fx.pos*(fx.end.right-fx.start.right)+fx.start.right,bottom:fx.pos*(fx.end.bottom-fx.start.bottom)+fx.start.bottom,left:fx.pos*(fx.end.left-fx.start.left)+fx.start.left});};})();(function(){var baseEasings={};$.each([\"Quad\",\"Cubic\",\"Quart\",\"Quint\",\"Expo\"],function(i,name){baseEasings[name]=function(p){return Math.pow(p,i+2);};});$.extend(baseEasings,{Sine:function(p){return 1-Math.cos(p*Math.PI / 2);},Circ:function(p){return 1-Math.sqrt(1-p*p);},Elastic:function(p){return p===0||p===1?p:-Math.pow(2,8*(p-1))*Math.sin(((p-1)*80-7.5)*Math.PI / 15);},Back:function(p){return p*p*(3*p-2);},Bounce:function(p){var pow2,bounce=4;while(p<((pow2=Math.pow(2,--bounce))-1)/ 11){}\nreturn 1 / Math.pow(4,3-bounce)-7.5625*Math.pow((pow2*3-2)/ 22-p,2);}});$.each(baseEasings,function(name,easeIn){$.easing[\"easeIn\"+name]=easeIn;$.easing[\"easeOut\"+name]=function(p){return 1-easeIn(1-p);};$.easing[\"easeInOut\"+name]=function(p){return p<0.5?easeIn(p*2)/ 2:1-easeIn(p*-2+2)/ 2;};});})();return $.effects;});","jquery/ui-modules/jquery-patch.min.js":"/*!\n * jQuery UI Support for jQuery core 1.8.x and newer 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"./version\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";if(!$.expr.pseudos){$.expr.pseudos=$.expr[\":\"];}\nif(!$.uniqueSort){$.uniqueSort=$.unique;}\nif(!$.escapeSelector){var rcssescape=/([\\0-\\x1f\\x7f]|^-?\\d)|^-$|[^\\x80-\\uFFFF\\w-]/g;var fcssescape=function(ch,asCodePoint){if(asCodePoint){if(ch===\"\\0\"){return\"\\uFFFD\";}\nreturn ch.slice(0,-1)+\"\\\\\"+ch.charCodeAt(ch.length-1).toString(16)+\" \";}\nreturn\"\\\\\"+ch;};$.escapeSelector=function(sel){return(sel+\"\").replace(rcssescape,fcssescape);};}\nif(!$.fn.even||!$.fn.odd){$.fn.extend({even:function(){return this.filter(function(i){return i%2===0;});},odd:function(){return this.filter(function(i){return i%2===1;});}});}});","jquery/ui-modules/data.min.js":"/*!\n * jQuery UI :data 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"./version\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";return $.extend($.expr.pseudos,{data:$.expr.createPseudo?$.expr.createPseudo(function(dataName){return function(elem){return!!$.data(elem,dataName);};}):function(elem,i,match){return!!$.data(elem,match[3]);}});});","jquery/ui-modules/position.min.js":"/*!\n * jQuery UI Position 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/position/\n */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"./version\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";(function(){var cachedScrollbarWidth,max=Math.max,abs=Math.abs,rhorizontal=/left|center|right/,rvertical=/top|center|bottom/,roffset=/[\\+\\-]\\d+(\\.[\\d]+)?%?/,rposition=/^\\w+/,rpercent=/%$/,_position=$.fn.position;function getOffsets(offsets,width,height){return[parseFloat(offsets[0])*(rpercent.test(offsets[0])?width / 100:1),parseFloat(offsets[1])*(rpercent.test(offsets[1])?height / 100:1)];}\nfunction parseCss(element,property){return parseInt($.css(element,property),10)||0;}\nfunction isWindow(obj){return obj!=null&&obj===obj.window;}\nfunction getDimensions(elem){var raw=elem[0];if(raw.nodeType===9){return{width:elem.width(),height:elem.height(),offset:{top:0,left:0}};}\nif(isWindow(raw)){return{width:elem.width(),height:elem.height(),offset:{top:elem.scrollTop(),left:elem.scrollLeft()}};}\nif(raw.preventDefault){return{width:0,height:0,offset:{top:raw.pageY,left:raw.pageX}};}\nreturn{width:elem.outerWidth(),height:elem.outerHeight(),offset:elem.offset()};}\n$.position={scrollbarWidth:function(){if(cachedScrollbarWidth!==undefined){return cachedScrollbarWidth;}\nvar w1,w2,div=$(\"<div style=\"+\"'display:block;position:absolute;width:200px;height:200px;overflow:hidden;'>\"+\"<div style='height:300px;width:auto;'></div></div>\"),innerDiv=div.children()[0];$(\"body\").append(div);w1=innerDiv.offsetWidth;div.css(\"overflow\",\"scroll\");w2=innerDiv.offsetWidth;if(w1===w2){w2=div[0].clientWidth;}\ndiv.remove();return(cachedScrollbarWidth=w1-w2);},getScrollInfo:function(within){var overflowX=within.isWindow||within.isDocument?\"\":within.element.css(\"overflow-x\"),overflowY=within.isWindow||within.isDocument?\"\":within.element.css(\"overflow-y\"),hasOverflowX=overflowX===\"scroll\"||(overflowX===\"auto\"&&within.width<within.element[0].scrollWidth),hasOverflowY=overflowY===\"scroll\"||(overflowY===\"auto\"&&within.height<within.element[0].scrollHeight);return{width:hasOverflowY?$.position.scrollbarWidth():0,height:hasOverflowX?$.position.scrollbarWidth():0};},getWithinInfo:function(element){var withinElement=$(element||window),isElemWindow=isWindow(withinElement[0]),isDocument=!!withinElement[0]&&withinElement[0].nodeType===9,hasOffset=!isElemWindow&&!isDocument;return{element:withinElement,isWindow:isElemWindow,isDocument:isDocument,offset:hasOffset?$(element).offset():{left:0,top:0},scrollLeft:withinElement.scrollLeft(),scrollTop:withinElement.scrollTop(),width:withinElement.outerWidth(),height:withinElement.outerHeight()};}};$.fn.position=function(options){if(!options||!options.of){return _position.apply(this,arguments);}\noptions=$.extend({},options);var atOffset,targetWidth,targetHeight,targetOffset,basePosition,dimensions,target=typeof options.of===\"string\"?$(document).find(options.of):$(options.of),within=$.position.getWithinInfo(options.within),scrollInfo=$.position.getScrollInfo(within),collision=(options.collision||\"flip\").split(\" \"),offsets={};dimensions=getDimensions(target);if(target[0].preventDefault){options.at=\"left top\";}\ntargetWidth=dimensions.width;targetHeight=dimensions.height;targetOffset=dimensions.offset;basePosition=$.extend({},targetOffset);$.each([\"my\",\"at\"],function(){var pos=(options[this]||\"\").split(\" \"),horizontalOffset,verticalOffset;if(pos.length===1){pos=rhorizontal.test(pos[0])?pos.concat([\"center\"]):rvertical.test(pos[0])?[\"center\"].concat(pos):[\"center\",\"center\"];}\npos[0]=rhorizontal.test(pos[0])?pos[0]:\"center\";pos[1]=rvertical.test(pos[1])?pos[1]:\"center\";horizontalOffset=roffset.exec(pos[0]);verticalOffset=roffset.exec(pos[1]);offsets[this]=[horizontalOffset?horizontalOffset[0]:0,verticalOffset?verticalOffset[0]:0];options[this]=[rposition.exec(pos[0])[0],rposition.exec(pos[1])[0]];});if(collision.length===1){collision[1]=collision[0];}\nif(options.at[0]===\"right\"){basePosition.left+=targetWidth;}else if(options.at[0]===\"center\"){basePosition.left+=targetWidth / 2;}\nif(options.at[1]===\"bottom\"){basePosition.top+=targetHeight;}else if(options.at[1]===\"center\"){basePosition.top+=targetHeight / 2;}\natOffset=getOffsets(offsets.at,targetWidth,targetHeight);basePosition.left+=atOffset[0];basePosition.top+=atOffset[1];return this.each(function(){var collisionPosition,using,elem=$(this),elemWidth=elem.outerWidth(),elemHeight=elem.outerHeight(),marginLeft=parseCss(this,\"marginLeft\"),marginTop=parseCss(this,\"marginTop\"),collisionWidth=elemWidth+marginLeft+parseCss(this,\"marginRight\")+\nscrollInfo.width,collisionHeight=elemHeight+marginTop+parseCss(this,\"marginBottom\")+\nscrollInfo.height,position=$.extend({},basePosition),myOffset=getOffsets(offsets.my,elem.outerWidth(),elem.outerHeight());if(options.my[0]===\"right\"){position.left-=elemWidth;}else if(options.my[0]===\"center\"){position.left-=elemWidth / 2;}\nif(options.my[1]===\"bottom\"){position.top-=elemHeight;}else if(options.my[1]===\"center\"){position.top-=elemHeight / 2;}\nposition.left+=myOffset[0];position.top+=myOffset[1];collisionPosition={marginLeft:marginLeft,marginTop:marginTop};$.each([\"left\",\"top\"],function(i,dir){if($.ui.position[collision[i]]){$.ui.position[collision[i]][dir](position,{targetWidth:targetWidth,targetHeight:targetHeight,elemWidth:elemWidth,elemHeight:elemHeight,collisionPosition:collisionPosition,collisionWidth:collisionWidth,collisionHeight:collisionHeight,offset:[atOffset[0]+myOffset[0],atOffset[1]+myOffset[1]],my:options.my,at:options.at,within:within,elem:elem});}});if(options.using){using=function(props){var left=targetOffset.left-position.left,right=left+targetWidth-elemWidth,top=targetOffset.top-position.top,bottom=top+targetHeight-elemHeight,feedback={target:{element:target,left:targetOffset.left,top:targetOffset.top,width:targetWidth,height:targetHeight},element:{element:elem,left:position.left,top:position.top,width:elemWidth,height:elemHeight},horizontal:right<0?\"left\":left>0?\"right\":\"center\",vertical:bottom<0?\"top\":top>0?\"bottom\":\"middle\"};if(targetWidth<elemWidth&&abs(left+right)<targetWidth){feedback.horizontal=\"center\";}\nif(targetHeight<elemHeight&&abs(top+bottom)<targetHeight){feedback.vertical=\"middle\";}\nif(max(abs(left),abs(right))>max(abs(top),abs(bottom))){feedback.important=\"horizontal\";}else{feedback.important=\"vertical\";}\noptions.using.call(this,props,feedback);};}\nelem.offset($.extend(position,{using:using}));});};$.ui.position={fit:{left:function(position,data){var within=data.within,withinOffset=within.isWindow?within.scrollLeft:within.offset.left,outerWidth=within.width,collisionPosLeft=position.left-data.collisionPosition.marginLeft,overLeft=withinOffset-collisionPosLeft,overRight=collisionPosLeft+data.collisionWidth-outerWidth-withinOffset,newOverRight;if(data.collisionWidth>outerWidth){if(overLeft>0&&overRight<=0){newOverRight=position.left+overLeft+data.collisionWidth-outerWidth-\nwithinOffset;position.left+=overLeft-newOverRight;}else if(overRight>0&&overLeft<=0){position.left=withinOffset;}else{if(overLeft>overRight){position.left=withinOffset+outerWidth-data.collisionWidth;}else{position.left=withinOffset;}}}else if(overLeft>0){position.left+=overLeft;}else if(overRight>0){position.left-=overRight;}else{position.left=max(position.left-collisionPosLeft,position.left);}},top:function(position,data){var within=data.within,withinOffset=within.isWindow?within.scrollTop:within.offset.top,outerHeight=data.within.height,collisionPosTop=position.top-data.collisionPosition.marginTop,overTop=withinOffset-collisionPosTop,overBottom=collisionPosTop+data.collisionHeight-outerHeight-withinOffset,newOverBottom;if(data.collisionHeight>outerHeight){if(overTop>0&&overBottom<=0){newOverBottom=position.top+overTop+data.collisionHeight-outerHeight-\nwithinOffset;position.top+=overTop-newOverBottom;}else if(overBottom>0&&overTop<=0){position.top=withinOffset;}else{if(overTop>overBottom){position.top=withinOffset+outerHeight-data.collisionHeight;}else{position.top=withinOffset;}}}else if(overTop>0){position.top+=overTop;}else if(overBottom>0){position.top-=overBottom;}else{position.top=max(position.top-collisionPosTop,position.top);}}},flip:{left:function(position,data){var within=data.within,withinOffset=within.offset.left+within.scrollLeft,outerWidth=within.width,offsetLeft=within.isWindow?within.scrollLeft:within.offset.left,collisionPosLeft=position.left-data.collisionPosition.marginLeft,overLeft=collisionPosLeft-offsetLeft,overRight=collisionPosLeft+data.collisionWidth-outerWidth-offsetLeft,myOffset=data.my[0]===\"left\"?-data.elemWidth:data.my[0]===\"right\"?data.elemWidth:0,atOffset=data.at[0]===\"left\"?data.targetWidth:data.at[0]===\"right\"?-data.targetWidth:0,offset=-2*data.offset[0],newOverRight,newOverLeft;if(overLeft<0){newOverRight=position.left+myOffset+atOffset+offset+data.collisionWidth-\nouterWidth-withinOffset;if(newOverRight<0||newOverRight<abs(overLeft)){position.left+=myOffset+atOffset+offset;}}else if(overRight>0){newOverLeft=position.left-data.collisionPosition.marginLeft+myOffset+\natOffset+offset-offsetLeft;if(newOverLeft>0||abs(newOverLeft)<overRight){position.left+=myOffset+atOffset+offset;}}},top:function(position,data){var within=data.within,withinOffset=within.offset.top+within.scrollTop,outerHeight=within.height,offsetTop=within.isWindow?within.scrollTop:within.offset.top,collisionPosTop=position.top-data.collisionPosition.marginTop,overTop=collisionPosTop-offsetTop,overBottom=collisionPosTop+data.collisionHeight-outerHeight-offsetTop,top=data.my[1]===\"top\",myOffset=top?-data.elemHeight:data.my[1]===\"bottom\"?data.elemHeight:0,atOffset=data.at[1]===\"top\"?data.targetHeight:data.at[1]===\"bottom\"?-data.targetHeight:0,offset=-2*data.offset[1],newOverTop,newOverBottom;if(overTop<0){newOverBottom=position.top+myOffset+atOffset+offset+data.collisionHeight-\nouterHeight-withinOffset;if(newOverBottom<0||newOverBottom<abs(overTop)){position.top+=myOffset+atOffset+offset;}}else if(overBottom>0){newOverTop=position.top-data.collisionPosition.marginTop+myOffset+atOffset+\noffset-offsetTop;if(newOverTop>0||abs(newOverTop)<overBottom){position.top+=myOffset+atOffset+offset;}}}},flipfit:{left:function(){$.ui.position.flip.left.apply(this,arguments);$.ui.position.fit.left.apply(this,arguments);},top:function(){$.ui.position.flip.top.apply(this,arguments);$.ui.position.fit.top.apply(this,arguments);}}};})();return $.ui.position;});","jquery/ui-modules/safe-active-element.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"./version\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";return $.ui.safeActiveElement=function(document){var activeElement;try{activeElement=document.activeElement;}catch(error){activeElement=document.body;}\nif(!activeElement){activeElement=document.body;}\nif(!activeElement.nodeName){activeElement=document.body;}\nreturn activeElement;};});","jquery/ui-modules/tabbable.min.js":"/*!\n * jQuery UI Tabbable 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"./version\",\"./focusable\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";return $.extend($.expr.pseudos,{tabbable:function(element){var tabIndex=$.attr(element,\"tabindex\"),hasTabindex=tabIndex!=null;return(!hasTabindex||tabIndex>=0)&&$.ui.focusable(element,hasTabindex);}});});","jquery/ui-modules/labels.min.js":"/*!\n * jQuery UI Labels 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"./version\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";return $.fn.labels=function(){var ancestor,selector,id,labels,ancestors;if(!this.length){return this.pushStack([]);}\nif(this[0].labels&&this[0].labels.length){return this.pushStack(this[0].labels);}\nlabels=this.eq(0).parents(\"label\");id=this.attr(\"id\");if(id){ancestor=this.eq(0).parents().last();ancestors=ancestor.add(ancestor.length?ancestor.siblings():this.siblings());selector=\"label[for='\"+$.escapeSelector(id)+\"']\";labels=labels.add(ancestors.find(selector).addBack(selector));}\nreturn this.pushStack(labels);};});","jquery/ui-modules/core.min.js":"(function(){\"use strict\";define([\"jquery\",\"./data\",\"./disable-selection\",\"./focusable\",\"./form\",\"./ie\",\"./keycode\",\"./labels\",\"./jquery-patch\",\"./plugin\",\"./safe-active-element\",\"./safe-blur\",\"./scroll-parent\",\"./tabbable\",\"./unique-id\",\"./version\"]);})();","jquery/ui-modules/safe-blur.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"./version\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";return $.ui.safeBlur=function(element){if(element&&element.nodeName.toLowerCase()!==\"body\"){$(element).trigger(\"blur\");}};});","jquery/ui-modules/plugin.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"./version\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";return $.ui.plugin={add:function(module,option,set){var i,proto=$.ui[module].prototype;for(i in set){proto.plugins[i]=proto.plugins[i]||[];proto.plugins[i].push([option,set[i]]);}},call:function(instance,name,args,allowDisconnected){var i,set=instance.plugins[name];if(!set){return;}\nif(!allowDisconnected&&(!instance.element[0].parentNode||instance.element[0].parentNode.nodeType===11)){return;}\nfor(i=0;i<set.length;i++){if(instance.options[set[i][0]]){set[i][1].apply(instance.element,args);}}}};});","jquery/ui-modules/widgets/draggable.min.js":"/*!\n * jQuery UI Draggable 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"./mouse\",\"../data\",\"../plugin\",\"../safe-active-element\",\"../safe-blur\",\"../scroll-parent\",\"../version\",\"../widget\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";$.widget(\"ui.draggable\",$.ui.mouse,{version:\"1.13.2\",widgetEventPrefix:\"drag\",options:{addClasses:true,appendTo:\"parent\",axis:false,connectToSortable:false,containment:false,cursor:\"auto\",cursorAt:false,grid:false,handle:false,helper:\"original\",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:\"default\",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:\"both\",snapTolerance:20,stack:false,zIndex:false,drag:null,start:null,stop:null},_create:function(){if(this.options.helper===\"original\"){this._setPositionRelative();}\nif(this.options.addClasses){this._addClass(\"ui-draggable\");}\nthis._setHandleClassName();this._mouseInit();},_setOption:function(key,value){this._super(key,value);if(key===\"handle\"){this._removeHandleClassName();this._setHandleClassName();}},_destroy:function(){if((this.helper||this.element).is(\".ui-draggable-dragging\")){this.destroyOnClear=true;return;}\nthis._removeHandleClassName();this._mouseDestroy();},_mouseCapture:function(event){var o=this.options;if(this.helper||o.disabled||$(event.target).closest(\".ui-resizable-handle\").length>0){return false;}\nthis.handle=this._getHandle(event);if(!this.handle){return false;}\nthis._blurActiveElement(event);this._blockFrames(o.iframeFix===true?\"iframe\":o.iframeFix);return true;},_blockFrames:function(selector){this.iframeBlocks=this.document.find(selector).map(function(){var iframe=$(this);return $(\"<div>\").css(\"position\",\"absolute\").appendTo(iframe.parent()).outerWidth(iframe.outerWidth()).outerHeight(iframe.outerHeight()).offset(iframe.offset())[0];});},_unblockFrames:function(){if(this.iframeBlocks){this.iframeBlocks.remove();delete this.iframeBlocks;}},_blurActiveElement:function(event){var activeElement=$.ui.safeActiveElement(this.document[0]),target=$(event.target);if(target.closest(activeElement).length){return;}\n$.ui.safeBlur(activeElement);},_mouseStart:function(event){var o=this.options;this.helper=this._createHelper(event);this._addClass(this.helper,\"ui-draggable-dragging\");this._cacheHelperProportions();if($.ui.ddmanager){$.ui.ddmanager.current=this;}\nthis._cacheMargins();this.cssPosition=this.helper.css(\"position\");this.scrollParent=this.helper.scrollParent(true);this.offsetParent=this.helper.offsetParent();this.hasFixedAncestor=this.helper.parents().filter(function(){return $(this).css(\"position\")===\"fixed\";}).length>0;this.positionAbs=this.element.offset();this._refreshOffsets(event);this.originalPosition=this.position=this._generatePosition(event,false);this.originalPageX=event.pageX;this.originalPageY=event.pageY;if(o.cursorAt){this._adjustOffsetFromHelper(o.cursorAt);}\nthis._setContainment();if(this._trigger(\"start\",event)===false){this._clear();return false;}\nthis._cacheHelperProportions();if($.ui.ddmanager&&!o.dropBehaviour){$.ui.ddmanager.prepareOffsets(this,event);}\nthis._mouseDrag(event,true);if($.ui.ddmanager){$.ui.ddmanager.dragStart(this,event);}\nreturn true;},_refreshOffsets:function(event){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:false,parent:this._getParentOffset(),relative:this._getRelativeOffset()};this.offset.click={left:event.pageX-this.offset.left,top:event.pageY-this.offset.top};},_mouseDrag:function(event,noPropagation){if(this.hasFixedAncestor){this.offset.parent=this._getParentOffset();}\nthis.position=this._generatePosition(event,true);this.positionAbs=this._convertPositionTo(\"absolute\");if(!noPropagation){var ui=this._uiHash();if(this._trigger(\"drag\",event,ui)===false){this._mouseUp(new $.Event(\"mouseup\",event));return false;}\nthis.position=ui.position;}\nthis.helper[0].style.left=this.position.left+\"px\";this.helper[0].style.top=this.position.top+\"px\";if($.ui.ddmanager){$.ui.ddmanager.drag(this,event);}\nreturn false;},_mouseStop:function(event){var that=this,dropped=false;if($.ui.ddmanager&&!this.options.dropBehaviour){dropped=$.ui.ddmanager.drop(this,event);}\nif(this.dropped){dropped=this.dropped;this.dropped=false;}\nif((this.options.revert===\"invalid\"&&!dropped)||(this.options.revert===\"valid\"&&dropped)||this.options.revert===true||(typeof this.options.revert===\"function\"&&this.options.revert.call(this.element,dropped))){$(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){if(that._trigger(\"stop\",event)!==false){that._clear();}});}else{if(this._trigger(\"stop\",event)!==false){this._clear();}}\nreturn false;},_mouseUp:function(event){this._unblockFrames();if($.ui.ddmanager){$.ui.ddmanager.dragStop(this,event);}\nif(this.handleElement.is(event.target)){this.element.trigger(\"focus\");}\nreturn $.ui.mouse.prototype._mouseUp.call(this,event);},cancel:function(){if(this.helper.is(\".ui-draggable-dragging\")){this._mouseUp(new $.Event(\"mouseup\",{target:this.element[0]}));}else{this._clear();}\nreturn this;},_getHandle:function(event){return this.options.handle?!!$(event.target).closest(this.element.find(this.options.handle)).length:true;},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element;this._addClass(this.handleElement,\"ui-draggable-handle\");},_removeHandleClassName:function(){this._removeClass(this.handleElement,\"ui-draggable-handle\");},_createHelper:function(event){var o=this.options,helperIsFunction=typeof o.helper===\"function\",helper=helperIsFunction?$(o.helper.apply(this.element[0],[event])):(o.helper===\"clone\"?this.element.clone().removeAttr(\"id\"):this.element);if(!helper.parents(\"body\").length){helper.appendTo((o.appendTo===\"parent\"?this.element[0].parentNode:o.appendTo));}\nif(helperIsFunction&&helper[0]===this.element[0]){this._setPositionRelative();}\nif(helper[0]!==this.element[0]&&!(/(fixed|absolute)/).test(helper.css(\"position\"))){helper.css(\"position\",\"absolute\");}\nreturn helper;},_setPositionRelative:function(){if(!(/^(?:r|a|f)/).test(this.element.css(\"position\"))){this.element[0].style.position=\"relative\";}},_adjustOffsetFromHelper:function(obj){if(typeof obj===\"string\"){obj=obj.split(\" \");}\nif(Array.isArray(obj)){obj={left:+obj[0],top:+obj[1]||0};}\nif(\"left\"in obj){this.offset.click.left=obj.left+this.margins.left;}\nif(\"right\"in obj){this.offset.click.left=this.helperProportions.width-obj.right+this.margins.left;}\nif(\"top\"in obj){this.offset.click.top=obj.top+this.margins.top;}\nif(\"bottom\"in obj){this.offset.click.top=this.helperProportions.height-obj.bottom+this.margins.top;}},_isRootNode:function(element){return(/(html|body)/i).test(element.tagName)||element===this.document[0];},_getParentOffset:function(){var po=this.offsetParent.offset(),document=this.document[0];if(this.cssPosition===\"absolute\"&&this.scrollParent[0]!==document&&$.contains(this.scrollParent[0],this.offsetParent[0])){po.left+=this.scrollParent.scrollLeft();po.top+=this.scrollParent.scrollTop();}\nif(this._isRootNode(this.offsetParent[0])){po={top:0,left:0};}\nreturn{top:po.top+(parseInt(this.offsetParent.css(\"borderTopWidth\"),10)||0),left:po.left+(parseInt(this.offsetParent.css(\"borderLeftWidth\"),10)||0)};},_getRelativeOffset:function(){if(this.cssPosition!==\"relative\"){return{top:0,left:0};}\nvar p=this.element.position(),scrollIsRootNode=this._isRootNode(this.scrollParent[0]);return{top:p.top-(parseInt(this.helper.css(\"top\"),10)||0)+\n(!scrollIsRootNode?this.scrollParent.scrollTop():0),left:p.left-(parseInt(this.helper.css(\"left\"),10)||0)+\n(!scrollIsRootNode?this.scrollParent.scrollLeft():0)};},_cacheMargins:function(){this.margins={left:(parseInt(this.element.css(\"marginLeft\"),10)||0),top:(parseInt(this.element.css(\"marginTop\"),10)||0),right:(parseInt(this.element.css(\"marginRight\"),10)||0),bottom:(parseInt(this.element.css(\"marginBottom\"),10)||0)};},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()};},_setContainment:function(){var isUserScrollable,c,ce,o=this.options,document=this.document[0];this.relativeContainer=null;if(!o.containment){this.containment=null;return;}\nif(o.containment===\"window\"){this.containment=[$(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,$(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,$(window).scrollLeft()+$(window).width()-\nthis.helperProportions.width-this.margins.left,$(window).scrollTop()+\n($(window).height()||document.body.parentNode.scrollHeight)-\nthis.helperProportions.height-this.margins.top];return;}\nif(o.containment===\"document\"){this.containment=[0,0,$(document).width()-this.helperProportions.width-this.margins.left,($(document).height()||document.body.parentNode.scrollHeight)-\nthis.helperProportions.height-this.margins.top];return;}\nif(o.containment.constructor===Array){this.containment=o.containment;return;}\nif(o.containment===\"parent\"){o.containment=this.helper[0].parentNode;}\nc=$(o.containment);ce=c[0];if(!ce){return;}\nisUserScrollable=/(scroll|auto)/.test(c.css(\"overflow\"));this.containment=[(parseInt(c.css(\"borderLeftWidth\"),10)||0)+\n(parseInt(c.css(\"paddingLeft\"),10)||0),(parseInt(c.css(\"borderTopWidth\"),10)||0)+\n(parseInt(c.css(\"paddingTop\"),10)||0),(isUserScrollable?Math.max(ce.scrollWidth,ce.offsetWidth):ce.offsetWidth)-\n(parseInt(c.css(\"borderRightWidth\"),10)||0)-\n(parseInt(c.css(\"paddingRight\"),10)||0)-\nthis.helperProportions.width-\nthis.margins.left-\nthis.margins.right,(isUserScrollable?Math.max(ce.scrollHeight,ce.offsetHeight):ce.offsetHeight)-\n(parseInt(c.css(\"borderBottomWidth\"),10)||0)-\n(parseInt(c.css(\"paddingBottom\"),10)||0)-\nthis.helperProportions.height-\nthis.margins.top-\nthis.margins.bottom];this.relativeContainer=c;},_convertPositionTo:function(d,pos){if(!pos){pos=this.position;}\nvar mod=d===\"absolute\"?1:-1,scrollIsRootNode=this._isRootNode(this.scrollParent[0]);return{top:(pos.top+\nthis.offset.relative.top*mod+\nthis.offset.parent.top*mod-\n((this.cssPosition===\"fixed\"?-this.offset.scroll.top:(scrollIsRootNode?0:this.offset.scroll.top))*mod)),left:(pos.left+\nthis.offset.relative.left*mod+\nthis.offset.parent.left*mod-\n((this.cssPosition===\"fixed\"?-this.offset.scroll.left:(scrollIsRootNode?0:this.offset.scroll.left))*mod))};},_generatePosition:function(event,constrainPosition){var containment,co,top,left,o=this.options,scrollIsRootNode=this._isRootNode(this.scrollParent[0]),pageX=event.pageX,pageY=event.pageY;if(!scrollIsRootNode||!this.offset.scroll){this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()};}\nif(constrainPosition){if(this.containment){if(this.relativeContainer){co=this.relativeContainer.offset();containment=[this.containment[0]+co.left,this.containment[1]+co.top,this.containment[2]+co.left,this.containment[3]+co.top];}else{containment=this.containment;}\nif(event.pageX-this.offset.click.left<containment[0]){pageX=containment[0]+this.offset.click.left;}\nif(event.pageY-this.offset.click.top<containment[1]){pageY=containment[1]+this.offset.click.top;}\nif(event.pageX-this.offset.click.left>containment[2]){pageX=containment[2]+this.offset.click.left;}\nif(event.pageY-this.offset.click.top>containment[3]){pageY=containment[3]+this.offset.click.top;}}\nif(o.grid){top=o.grid[1]?this.originalPageY+Math.round((pageY-\nthis.originalPageY)/ o.grid[1])*o.grid[1]:this.originalPageY;pageY=containment?((top-this.offset.click.top>=containment[1]||top-this.offset.click.top>containment[3])?top:((top-this.offset.click.top>=containment[1])?top-o.grid[1]:top+o.grid[1])):top;left=o.grid[0]?this.originalPageX+\nMath.round((pageX-this.originalPageX)/ o.grid[0])*o.grid[0]:this.originalPageX;pageX=containment?((left-this.offset.click.left>=containment[0]||left-this.offset.click.left>containment[2])?left:((left-this.offset.click.left>=containment[0])?left-o.grid[0]:left+o.grid[0])):left;}\nif(o.axis===\"y\"){pageX=this.originalPageX;}\nif(o.axis===\"x\"){pageY=this.originalPageY;}}\nreturn{top:(pageY-\nthis.offset.click.top-\nthis.offset.relative.top-\nthis.offset.parent.top+\n(this.cssPosition===\"fixed\"?-this.offset.scroll.top:(scrollIsRootNode?0:this.offset.scroll.top))),left:(pageX-\nthis.offset.click.left-\nthis.offset.relative.left-\nthis.offset.parent.left+\n(this.cssPosition===\"fixed\"?-this.offset.scroll.left:(scrollIsRootNode?0:this.offset.scroll.left)))};},_clear:function(){this._removeClass(this.helper,\"ui-draggable-dragging\");if(this.helper[0]!==this.element[0]&&!this.cancelHelperRemoval){this.helper.remove();}\nthis.helper=null;this.cancelHelperRemoval=false;if(this.destroyOnClear){this.destroy();}},_trigger:function(type,event,ui){ui=ui||this._uiHash();$.ui.plugin.call(this,type,[event,ui,this],true);if(/^(drag|start|stop)/.test(type)){this.positionAbs=this._convertPositionTo(\"absolute\");ui.offset=this.positionAbs;}\nreturn $.Widget.prototype._trigger.call(this,type,event,ui);},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs};}});$.ui.plugin.add(\"draggable\",\"connectToSortable\",{start:function(event,ui,draggable){var uiSortable=$.extend({},ui,{item:draggable.element});draggable.sortables=[];$(draggable.options.connectToSortable).each(function(){var sortable=$(this).sortable(\"instance\");if(sortable&&!sortable.options.disabled){draggable.sortables.push(sortable);sortable.refreshPositions();sortable._trigger(\"activate\",event,uiSortable);}});},stop:function(event,ui,draggable){var uiSortable=$.extend({},ui,{item:draggable.element});draggable.cancelHelperRemoval=false;$.each(draggable.sortables,function(){var sortable=this;if(sortable.isOver){sortable.isOver=0;draggable.cancelHelperRemoval=true;sortable.cancelHelperRemoval=false;sortable._storedCSS={position:sortable.placeholder.css(\"position\"),top:sortable.placeholder.css(\"top\"),left:sortable.placeholder.css(\"left\")};sortable._mouseStop(event);sortable.options.helper=sortable.options._helper;}else{sortable.cancelHelperRemoval=true;sortable._trigger(\"deactivate\",event,uiSortable);}});},drag:function(event,ui,draggable){$.each(draggable.sortables,function(){var innermostIntersecting=false,sortable=this;sortable.positionAbs=draggable.positionAbs;sortable.helperProportions=draggable.helperProportions;sortable.offset.click=draggable.offset.click;if(sortable._intersectsWith(sortable.containerCache)){innermostIntersecting=true;$.each(draggable.sortables,function(){this.positionAbs=draggable.positionAbs;this.helperProportions=draggable.helperProportions;this.offset.click=draggable.offset.click;if(this!==sortable&&this._intersectsWith(this.containerCache)&&$.contains(sortable.element[0],this.element[0])){innermostIntersecting=false;}\nreturn innermostIntersecting;});}\nif(innermostIntersecting){if(!sortable.isOver){sortable.isOver=1;draggable._parent=ui.helper.parent();sortable.currentItem=ui.helper.appendTo(sortable.element).data(\"ui-sortable-item\",true);sortable.options._helper=sortable.options.helper;sortable.options.helper=function(){return ui.helper[0];};event.target=sortable.currentItem[0];sortable._mouseCapture(event,true);sortable._mouseStart(event,true,true);sortable.offset.click.top=draggable.offset.click.top;sortable.offset.click.left=draggable.offset.click.left;sortable.offset.parent.left-=draggable.offset.parent.left-\nsortable.offset.parent.left;sortable.offset.parent.top-=draggable.offset.parent.top-\nsortable.offset.parent.top;draggable._trigger(\"toSortable\",event);draggable.dropped=sortable.element;$.each(draggable.sortables,function(){this.refreshPositions();});draggable.currentItem=draggable.element;sortable.fromOutside=draggable;}\nif(sortable.currentItem){sortable._mouseDrag(event);ui.position=sortable.position;}}else{if(sortable.isOver){sortable.isOver=0;sortable.cancelHelperRemoval=true;sortable.options._revert=sortable.options.revert;sortable.options.revert=false;sortable._trigger(\"out\",event,sortable._uiHash(sortable));sortable._mouseStop(event,true);sortable.options.revert=sortable.options._revert;sortable.options.helper=sortable.options._helper;if(sortable.placeholder){sortable.placeholder.remove();}\nui.helper.appendTo(draggable._parent);draggable._refreshOffsets(event);ui.position=draggable._generatePosition(event,true);draggable._trigger(\"fromSortable\",event);draggable.dropped=false;$.each(draggable.sortables,function(){this.refreshPositions();});}}});}});$.ui.plugin.add(\"draggable\",\"cursor\",{start:function(event,ui,instance){var t=$(\"body\"),o=instance.options;if(t.css(\"cursor\")){o._cursor=t.css(\"cursor\");}\nt.css(\"cursor\",o.cursor);},stop:function(event,ui,instance){var o=instance.options;if(o._cursor){$(\"body\").css(\"cursor\",o._cursor);}}});$.ui.plugin.add(\"draggable\",\"opacity\",{start:function(event,ui,instance){var t=$(ui.helper),o=instance.options;if(t.css(\"opacity\")){o._opacity=t.css(\"opacity\");}\nt.css(\"opacity\",o.opacity);},stop:function(event,ui,instance){var o=instance.options;if(o._opacity){$(ui.helper).css(\"opacity\",o._opacity);}}});$.ui.plugin.add(\"draggable\",\"scroll\",{start:function(event,ui,i){if(!i.scrollParentNotHidden){i.scrollParentNotHidden=i.helper.scrollParent(false);}\nif(i.scrollParentNotHidden[0]!==i.document[0]&&i.scrollParentNotHidden[0].tagName!==\"HTML\"){i.overflowOffset=i.scrollParentNotHidden.offset();}},drag:function(event,ui,i){var o=i.options,scrolled=false,scrollParent=i.scrollParentNotHidden[0],document=i.document[0];if(scrollParent!==document&&scrollParent.tagName!==\"HTML\"){if(!o.axis||o.axis!==\"x\"){if((i.overflowOffset.top+scrollParent.offsetHeight)-event.pageY<o.scrollSensitivity){scrollParent.scrollTop=scrolled=scrollParent.scrollTop+o.scrollSpeed;}else if(event.pageY-i.overflowOffset.top<o.scrollSensitivity){scrollParent.scrollTop=scrolled=scrollParent.scrollTop-o.scrollSpeed;}}\nif(!o.axis||o.axis!==\"y\"){if((i.overflowOffset.left+scrollParent.offsetWidth)-event.pageX<o.scrollSensitivity){scrollParent.scrollLeft=scrolled=scrollParent.scrollLeft+o.scrollSpeed;}else if(event.pageX-i.overflowOffset.left<o.scrollSensitivity){scrollParent.scrollLeft=scrolled=scrollParent.scrollLeft-o.scrollSpeed;}}}else{if(!o.axis||o.axis!==\"x\"){if(event.pageY-$(document).scrollTop()<o.scrollSensitivity){scrolled=$(document).scrollTop($(document).scrollTop()-o.scrollSpeed);}else if($(window).height()-(event.pageY-$(document).scrollTop())<o.scrollSensitivity){scrolled=$(document).scrollTop($(document).scrollTop()+o.scrollSpeed);}}\nif(!o.axis||o.axis!==\"y\"){if(event.pageX-$(document).scrollLeft()<o.scrollSensitivity){scrolled=$(document).scrollLeft($(document).scrollLeft()-o.scrollSpeed);}else if($(window).width()-(event.pageX-$(document).scrollLeft())<o.scrollSensitivity){scrolled=$(document).scrollLeft($(document).scrollLeft()+o.scrollSpeed);}}}\nif(scrolled!==false&&$.ui.ddmanager&&!o.dropBehaviour){$.ui.ddmanager.prepareOffsets(i,event);}}});$.ui.plugin.add(\"draggable\",\"snap\",{start:function(event,ui,i){var o=i.options;i.snapElements=[];$(o.snap.constructor!==String?(o.snap.items||\":data(ui-draggable)\"):o.snap).each(function(){var $t=$(this),$o=$t.offset();if(this!==i.element[0]){i.snapElements.push({item:this,width:$t.outerWidth(),height:$t.outerHeight(),top:$o.top,left:$o.left});}});},drag:function(event,ui,inst){var ts,bs,ls,rs,l,r,t,b,i,first,o=inst.options,d=o.snapTolerance,x1=ui.offset.left,x2=x1+inst.helperProportions.width,y1=ui.offset.top,y2=y1+inst.helperProportions.height;for(i=inst.snapElements.length-1;i>=0;i--){l=inst.snapElements[i].left-inst.margins.left;r=l+inst.snapElements[i].width;t=inst.snapElements[i].top-inst.margins.top;b=t+inst.snapElements[i].height;if(x2<l-d||x1>r+d||y2<t-d||y1>b+d||!$.contains(inst.snapElements[i].item.ownerDocument,inst.snapElements[i].item)){if(inst.snapElements[i].snapping){if(inst.options.snap.release){inst.options.snap.release.call(inst.element,event,$.extend(inst._uiHash(),{snapItem:inst.snapElements[i].item}));}}\ninst.snapElements[i].snapping=false;continue;}\nif(o.snapMode!==\"inner\"){ts=Math.abs(t-y2)<=d;bs=Math.abs(b-y1)<=d;ls=Math.abs(l-x2)<=d;rs=Math.abs(r-x1)<=d;if(ts){ui.position.top=inst._convertPositionTo(\"relative\",{top:t-inst.helperProportions.height,left:0}).top;}\nif(bs){ui.position.top=inst._convertPositionTo(\"relative\",{top:b,left:0}).top;}\nif(ls){ui.position.left=inst._convertPositionTo(\"relative\",{top:0,left:l-inst.helperProportions.width}).left;}\nif(rs){ui.position.left=inst._convertPositionTo(\"relative\",{top:0,left:r}).left;}}\nfirst=(ts||bs||ls||rs);if(o.snapMode!==\"outer\"){ts=Math.abs(t-y1)<=d;bs=Math.abs(b-y2)<=d;ls=Math.abs(l-x1)<=d;rs=Math.abs(r-x2)<=d;if(ts){ui.position.top=inst._convertPositionTo(\"relative\",{top:t,left:0}).top;}\nif(bs){ui.position.top=inst._convertPositionTo(\"relative\",{top:b-inst.helperProportions.height,left:0}).top;}\nif(ls){ui.position.left=inst._convertPositionTo(\"relative\",{top:0,left:l}).left;}\nif(rs){ui.position.left=inst._convertPositionTo(\"relative\",{top:0,left:r-inst.helperProportions.width}).left;}}\nif(!inst.snapElements[i].snapping&&(ts||bs||ls||rs||first)){if(inst.options.snap.snap){inst.options.snap.snap.call(inst.element,event,$.extend(inst._uiHash(),{snapItem:inst.snapElements[i].item}));}}\ninst.snapElements[i].snapping=(ts||bs||ls||rs||first);}}});$.ui.plugin.add(\"draggable\",\"stack\",{start:function(event,ui,instance){var min,o=instance.options,group=$.makeArray($(o.stack)).sort(function(a,b){return(parseInt($(a).css(\"zIndex\"),10)||0)-\n(parseInt($(b).css(\"zIndex\"),10)||0);});if(!group.length){return;}\nmin=parseInt($(group[0]).css(\"zIndex\"),10)||0;$(group).each(function(i){$(this).css(\"zIndex\",min+i);});this.css(\"zIndex\",(min+group.length));}});$.ui.plugin.add(\"draggable\",\"zIndex\",{start:function(event,ui,instance){var t=$(ui.helper),o=instance.options;if(t.css(\"zIndex\")){o._zIndex=t.css(\"zIndex\");}\nt.css(\"zIndex\",o.zIndex);},stop:function(event,ui,instance){var o=instance.options;if(o._zIndex){$(ui.helper).css(\"zIndex\",o._zIndex);}}});return $.ui.draggable;});","jquery/ui-modules/widgets/mouse.min.js":"/*!\n * jQuery UI Mouse 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"../ie\",\"../version\",\"../widget\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";var mouseHandled=false;$(document).on(\"mouseup\",function(){mouseHandled=false;});return $.widget(\"ui.mouse\",{version:\"1.13.2\",options:{cancel:\"input, textarea, button, select, option\",distance:1,delay:0},_mouseInit:function(){var that=this;this.element.on(\"mousedown.\"+this.widgetName,function(event){return that._mouseDown(event);}).on(\"click.\"+this.widgetName,function(event){if(true===$.data(event.target,that.widgetName+\".preventClickEvent\")){$.removeData(event.target,that.widgetName+\".preventClickEvent\");event.stopImmediatePropagation();return false;}});this.started=false;},_mouseDestroy:function(){this.element.off(\".\"+this.widgetName);if(this._mouseMoveDelegate){this.document.off(\"mousemove.\"+this.widgetName,this._mouseMoveDelegate).off(\"mouseup.\"+this.widgetName,this._mouseUpDelegate);}},_mouseDown:function(event){if(mouseHandled){return;}\nthis._mouseMoved=false;if(this._mouseStarted){this._mouseUp(event);}\nthis._mouseDownEvent=event;var that=this,btnIsLeft=(event.which===1),elIsCancel=(typeof this.options.cancel===\"string\"&&event.target.nodeName?$(event.target).closest(this.options.cancel).length:false);if(!btnIsLeft||elIsCancel||!this._mouseCapture(event)){return true;}\nthis.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){that.mouseDelayMet=true;},this.options.delay);}\nif(this._mouseDistanceMet(event)&&this._mouseDelayMet(event)){this._mouseStarted=(this._mouseStart(event)!==false);if(!this._mouseStarted){event.preventDefault();return true;}}\nif(true===$.data(event.target,this.widgetName+\".preventClickEvent\")){$.removeData(event.target,this.widgetName+\".preventClickEvent\");}\nthis._mouseMoveDelegate=function(event){return that._mouseMove(event);};this._mouseUpDelegate=function(event){return that._mouseUp(event);};this.document.on(\"mousemove.\"+this.widgetName,this._mouseMoveDelegate).on(\"mouseup.\"+this.widgetName,this._mouseUpDelegate);event.preventDefault();mouseHandled=true;return true;},_mouseMove:function(event){if(this._mouseMoved){if($.ui.ie&&(!document.documentMode||document.documentMode<9)&&!event.button){return this._mouseUp(event);}else if(!event.which){if(event.originalEvent.altKey||event.originalEvent.ctrlKey||event.originalEvent.metaKey||event.originalEvent.shiftKey){this.ignoreMissingWhich=true;}else if(!this.ignoreMissingWhich){return this._mouseUp(event);}}}\nif(event.which||event.button){this._mouseMoved=true;}\nif(this._mouseStarted){this._mouseDrag(event);return event.preventDefault();}\nif(this._mouseDistanceMet(event)&&this._mouseDelayMet(event)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,event)!==false);if(this._mouseStarted){this._mouseDrag(event);}else{this._mouseUp(event);}}\nreturn!this._mouseStarted;},_mouseUp:function(event){this.document.off(\"mousemove.\"+this.widgetName,this._mouseMoveDelegate).off(\"mouseup.\"+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;if(event.target===this._mouseDownEvent.target){$.data(event.target,this.widgetName+\".preventClickEvent\",true);}\nthis._mouseStop(event);}\nif(this._mouseDelayTimer){clearTimeout(this._mouseDelayTimer);delete this._mouseDelayTimer;}\nthis.ignoreMissingWhich=false;mouseHandled=false;event.preventDefault();},_mouseDistanceMet:function(event){return(Math.max(Math.abs(this._mouseDownEvent.pageX-event.pageX),Math.abs(this._mouseDownEvent.pageY-event.pageY))>=this.options.distance);},_mouseDelayMet:function(){return this.mouseDelayMet;},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true;}});});","jquery/ui-modules/widgets/checkboxradio.min.js":"/*!\n * jQuery UI Checkboxradio 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"../form-reset-mixin\",\"../labels\",\"../widget\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";$.widget(\"ui.checkboxradio\",[$.ui.formResetMixin,{version:\"1.13.2\",options:{disabled:null,label:null,icon:true,classes:{\"ui-checkboxradio-label\":\"ui-corner-all\",\"ui-checkboxradio-icon\":\"ui-corner-all\"}},_getCreateOptions:function(){var disabled,labels,labelContents;var options=this._super()||{};this._readType();labels=this.element.labels();this.label=$(labels[labels.length-1]);if(!this.label.length){$.error(\"No label found for checkboxradio widget\");}\nthis.originalLabel=\"\";labelContents=this.label.contents().not(this.element[0]);if(labelContents.length){this.originalLabel+=labelContents.clone().wrapAll(\"<div></div>\").parent().html();}\nif(this.originalLabel){options.label=this.originalLabel;}\ndisabled=this.element[0].disabled;if(disabled!=null){options.disabled=disabled;}\nreturn options;},_create:function(){var checked=this.element[0].checked;this._bindFormResetHandler();if(this.options.disabled==null){this.options.disabled=this.element[0].disabled;}\nthis._setOption(\"disabled\",this.options.disabled);this._addClass(\"ui-checkboxradio\",\"ui-helper-hidden-accessible\");this._addClass(this.label,\"ui-checkboxradio-label\",\"ui-button ui-widget\");if(this.type===\"radio\"){this._addClass(this.label,\"ui-checkboxradio-radio-label\");}\nif(this.options.label&&this.options.label!==this.originalLabel){this._updateLabel();}else if(this.originalLabel){this.options.label=this.originalLabel;}\nthis._enhance();if(checked){this._addClass(this.label,\"ui-checkboxradio-checked\",\"ui-state-active\");}\nthis._on({change:\"_toggleClasses\",focus:function(){this._addClass(this.label,null,\"ui-state-focus ui-visual-focus\");},blur:function(){this._removeClass(this.label,null,\"ui-state-focus ui-visual-focus\");}});},_readType:function(){var nodeName=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type;if(nodeName!==\"input\"||!/radio|checkbox/.test(this.type)){$.error(\"Can't create checkboxradio on element.nodeName=\"+nodeName+\" and element.type=\"+this.type);}},_enhance:function(){this._updateIcon(this.element[0].checked);},widget:function(){return this.label;},_getRadioGroup:function(){var group;var name=this.element[0].name;var nameSelector=\"input[name='\"+$.escapeSelector(name)+\"']\";if(!name){return $([]);}\nif(this.form.length){group=$(this.form[0].elements).filter(nameSelector);}else{group=$(nameSelector).filter(function(){return $(this)._form().length===0;});}\nreturn group.not(this.element);},_toggleClasses:function(){var checked=this.element[0].checked;this._toggleClass(this.label,\"ui-checkboxradio-checked\",\"ui-state-active\",checked);if(this.options.icon&&this.type===\"checkbox\"){this._toggleClass(this.icon,null,\"ui-icon-check ui-state-checked\",checked)._toggleClass(this.icon,null,\"ui-icon-blank\",!checked);}\nif(this.type===\"radio\"){this._getRadioGroup().each(function(){var instance=$(this).checkboxradio(\"instance\");if(instance){instance._removeClass(instance.label,\"ui-checkboxradio-checked\",\"ui-state-active\");}});}},_destroy:function(){this._unbindFormResetHandler();if(this.icon){this.icon.remove();this.iconSpace.remove();}},_setOption:function(key,value){if(key===\"label\"&&!value){return;}\nthis._super(key,value);if(key===\"disabled\"){this._toggleClass(this.label,null,\"ui-state-disabled\",value);this.element[0].disabled=value;return;}\nthis.refresh();},_updateIcon:function(checked){var toAdd=\"ui-icon ui-icon-background \";if(this.options.icon){if(!this.icon){this.icon=$(\"<span>\");this.iconSpace=$(\"<span> </span>\");this._addClass(this.iconSpace,\"ui-checkboxradio-icon-space\");}\nif(this.type===\"checkbox\"){toAdd+=checked?\"ui-icon-check ui-state-checked\":\"ui-icon-blank\";this._removeClass(this.icon,null,checked?\"ui-icon-blank\":\"ui-icon-check\");}else{toAdd+=\"ui-icon-blank\";}\nthis._addClass(this.icon,\"ui-checkboxradio-icon\",toAdd);if(!checked){this._removeClass(this.icon,null,\"ui-icon-check ui-state-checked\");}\nthis.icon.prependTo(this.label).after(this.iconSpace);}else if(this.icon!==undefined){this.icon.remove();this.iconSpace.remove();delete this.icon;}},_updateLabel:function(){var contents=this.label.contents().not(this.element[0]);if(this.icon){contents=contents.not(this.icon[0]);}\nif(this.iconSpace){contents=contents.not(this.iconSpace[0]);}\ncontents.remove();this.label.append(this.options.label);},refresh:function(){var checked=this.element[0].checked,isDisabled=this.element[0].disabled;this._updateIcon(checked);this._toggleClass(this.label,\"ui-checkboxradio-checked\",\"ui-state-active\",checked);if(this.options.label!==null){this._updateLabel();}\nif(isDisabled!==this.options.disabled){this._setOptions({\"disabled\":isDisabled});}}}]);return $.ui.checkboxradio;});","jquery/ui-modules/widgets/selectmenu.min.js":"/*!\n * jQuery UI Selectmenu 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"./menu\",\"../form-reset-mixin\",\"../keycode\",\"../labels\",\"../position\",\"../unique-id\",\"../version\",\"../widget\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";return $.widget(\"ui.selectmenu\",[$.ui.formResetMixin,{version:\"1.13.2\",defaultElement:\"<select>\",options:{appendTo:null,classes:{\"ui-selectmenu-button-open\":\"ui-corner-top\",\"ui-selectmenu-button-closed\":\"ui-corner-all\"},disabled:null,icons:{button:\"ui-icon-triangle-1-s\"},position:{my:\"left top\",at:\"left bottom\",collision:\"none\"},width:false,change:null,close:null,focus:null,open:null,select:null},_create:function(){var selectmenuId=this.element.uniqueId().attr(\"id\");this.ids={element:selectmenuId,button:selectmenuId+\"-button\",menu:selectmenuId+\"-menu\"};this._drawButton();this._drawMenu();this._bindFormResetHandler();this._rendered=false;this.menuItems=$();},_drawButton:function(){var icon,that=this,item=this._parseOption(this.element.find(\"option:selected\"),this.element[0].selectedIndex);this.labels=this.element.labels().attr(\"for\",this.ids.button);this._on(this.labels,{click:function(event){this.button.trigger(\"focus\");event.preventDefault();}});this.element.hide();this.button=$(\"<span>\",{tabindex:this.options.disabled?-1:0,id:this.ids.button,role:\"combobox\",\"aria-expanded\":\"false\",\"aria-autocomplete\":\"list\",\"aria-owns\":this.ids.menu,\"aria-haspopup\":\"true\",title:this.element.attr(\"title\")}).insertAfter(this.element);this._addClass(this.button,\"ui-selectmenu-button ui-selectmenu-button-closed\",\"ui-button ui-widget\");icon=$(\"<span>\").appendTo(this.button);this._addClass(icon,\"ui-selectmenu-icon\",\"ui-icon \"+this.options.icons.button);this.buttonItem=this._renderButtonItem(item).appendTo(this.button);if(this.options.width!==false){this._resizeButton();}\nthis._on(this.button,this._buttonEvents);this.button.one(\"focusin\",function(){if(!that._rendered){that._refreshMenu();}});},_drawMenu:function(){var that=this;this.menu=$(\"<ul>\",{\"aria-hidden\":\"true\",\"aria-labelledby\":this.ids.button,id:this.ids.menu});this.menuWrap=$(\"<div>\").append(this.menu);this._addClass(this.menuWrap,\"ui-selectmenu-menu\",\"ui-front\");this.menuWrap.appendTo(this._appendTo());this.menuInstance=this.menu.menu({classes:{\"ui-menu\":\"ui-corner-bottom\"},role:\"listbox\",select:function(event,ui){event.preventDefault();that._setSelection();that._select(ui.item.data(\"ui-selectmenu-item\"),event);},focus:function(event,ui){var item=ui.item.data(\"ui-selectmenu-item\");if(that.focusIndex!=null&&item.index!==that.focusIndex){that._trigger(\"focus\",event,{item:item});if(!that.isOpen){that._select(item,event);}}\nthat.focusIndex=item.index;that.button.attr(\"aria-activedescendant\",that.menuItems.eq(item.index).attr(\"id\"));}}).menu(\"instance\");this.menuInstance._off(this.menu,\"mouseleave\");this.menuInstance._closeOnDocumentClick=function(){return false;};this.menuInstance._isDivider=function(){return false;};},refresh:function(){this._refreshMenu();this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(this._getSelectedItem().data(\"ui-selectmenu-item\")||{}));if(this.options.width===null){this._resizeButton();}},_refreshMenu:function(){var item,options=this.element.find(\"option\");this.menu.empty();this._parseOptions(options);this._renderMenu(this.menu,this.items);this.menuInstance.refresh();this.menuItems=this.menu.find(\"li\").not(\".ui-selectmenu-optgroup\").find(\".ui-menu-item-wrapper\");this._rendered=true;if(!options.length){return;}\nitem=this._getSelectedItem();this.menuInstance.focus(null,item);this._setAria(item.data(\"ui-selectmenu-item\"));this._setOption(\"disabled\",this.element.prop(\"disabled\"));},open:function(event){if(this.options.disabled){return;}\nif(!this._rendered){this._refreshMenu();}else{this._removeClass(this.menu.find(\".ui-state-active\"),null,\"ui-state-active\");this.menuInstance.focus(null,this._getSelectedItem());}\nif(!this.menuItems.length){return;}\nthis.isOpen=true;this._toggleAttr();this._resizeMenu();this._position();this._on(this.document,this._documentClick);this._trigger(\"open\",event);},_position:function(){this.menuWrap.position($.extend({of:this.button},this.options.position));},close:function(event){if(!this.isOpen){return;}\nthis.isOpen=false;this._toggleAttr();this.range=null;this._off(this.document);this._trigger(\"close\",event);},widget:function(){return this.button;},menuWidget:function(){return this.menu;},_renderButtonItem:function(item){var buttonItem=$(\"<span>\");this._setText(buttonItem,item.label);this._addClass(buttonItem,\"ui-selectmenu-text\");return buttonItem;},_renderMenu:function(ul,items){var that=this,currentOptgroup=\"\";$.each(items,function(index,item){var li;if(item.optgroup!==currentOptgroup){li=$(\"<li>\",{text:item.optgroup});that._addClass(li,\"ui-selectmenu-optgroup\",\"ui-menu-divider\"+\n(item.element.parent(\"optgroup\").prop(\"disabled\")?\" ui-state-disabled\":\"\"));li.appendTo(ul);currentOptgroup=item.optgroup;}\nthat._renderItemData(ul,item);});},_renderItemData:function(ul,item){return this._renderItem(ul,item).data(\"ui-selectmenu-item\",item);},_renderItem:function(ul,item){var li=$(\"<li>\"),wrapper=$(\"<div>\",{title:item.element.attr(\"title\")});if(item.disabled){this._addClass(li,null,\"ui-state-disabled\");}\nthis._setText(wrapper,item.label);return li.append(wrapper).appendTo(ul);},_setText:function(element,value){if(value){element.text(value);}else{element.html(\"&#160;\");}},_move:function(direction,event){var item,next,filter=\".ui-menu-item\";if(this.isOpen){item=this.menuItems.eq(this.focusIndex).parent(\"li\");}else{item=this.menuItems.eq(this.element[0].selectedIndex).parent(\"li\");filter+=\":not(.ui-state-disabled)\";}\nif(direction===\"first\"||direction===\"last\"){next=item[direction===\"first\"?\"prevAll\":\"nextAll\"](filter).eq(-1);}else{next=item[direction+\"All\"](filter).eq(0);}\nif(next.length){this.menuInstance.focus(event,next);}},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent(\"li\");},_toggle:function(event){this[this.isOpen?\"close\":\"open\"](event);},_setSelection:function(){var selection;if(!this.range){return;}\nif(window.getSelection){selection=window.getSelection();selection.removeAllRanges();selection.addRange(this.range);}else{this.range.select();}\nthis.button.trigger(\"focus\");},_documentClick:{mousedown:function(event){if(!this.isOpen){return;}\nif(!$(event.target).closest(\".ui-selectmenu-menu, #\"+\n$.escapeSelector(this.ids.button)).length){this.close(event);}}},_buttonEvents:{mousedown:function(){var selection;if(window.getSelection){selection=window.getSelection();if(selection.rangeCount){this.range=selection.getRangeAt(0);}}else{this.range=document.selection.createRange();}},click:function(event){this._setSelection();this._toggle(event);},keydown:function(event){var preventDefault=true;switch(event.keyCode){case $.ui.keyCode.TAB:case $.ui.keyCode.ESCAPE:this.close(event);preventDefault=false;break;case $.ui.keyCode.ENTER:if(this.isOpen){this._selectFocusedItem(event);}\nbreak;case $.ui.keyCode.UP:if(event.altKey){this._toggle(event);}else{this._move(\"prev\",event);}\nbreak;case $.ui.keyCode.DOWN:if(event.altKey){this._toggle(event);}else{this._move(\"next\",event);}\nbreak;case $.ui.keyCode.SPACE:if(this.isOpen){this._selectFocusedItem(event);}else{this._toggle(event);}\nbreak;case $.ui.keyCode.LEFT:this._move(\"prev\",event);break;case $.ui.keyCode.RIGHT:this._move(\"next\",event);break;case $.ui.keyCode.HOME:case $.ui.keyCode.PAGE_UP:this._move(\"first\",event);break;case $.ui.keyCode.END:case $.ui.keyCode.PAGE_DOWN:this._move(\"last\",event);break;default:this.menu.trigger(event);preventDefault=false;}\nif(preventDefault){event.preventDefault();}}},_selectFocusedItem:function(event){var item=this.menuItems.eq(this.focusIndex).parent(\"li\");if(!item.hasClass(\"ui-state-disabled\")){this._select(item.data(\"ui-selectmenu-item\"),event);}},_select:function(item,event){var oldIndex=this.element[0].selectedIndex;this.element[0].selectedIndex=item.index;this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(item));this._setAria(item);this._trigger(\"select\",event,{item:item});if(item.index!==oldIndex){this._trigger(\"change\",event,{item:item});}\nthis.close(event);},_setAria:function(item){var id=this.menuItems.eq(item.index).attr(\"id\");this.button.attr({\"aria-labelledby\":id,\"aria-activedescendant\":id});this.menu.attr(\"aria-activedescendant\",id);},_setOption:function(key,value){if(key===\"icons\"){var icon=this.button.find(\"span.ui-icon\");this._removeClass(icon,null,this.options.icons.button)._addClass(icon,null,value.button);}\nthis._super(key,value);if(key===\"appendTo\"){this.menuWrap.appendTo(this._appendTo());}\nif(key===\"width\"){this._resizeButton();}},_setOptionDisabled:function(value){this._super(value);this.menuInstance.option(\"disabled\",value);this.button.attr(\"aria-disabled\",value);this._toggleClass(this.button,null,\"ui-state-disabled\",value);this.element.prop(\"disabled\",value);if(value){this.button.attr(\"tabindex\",-1);this.close();}else{this.button.attr(\"tabindex\",0);}},_appendTo:function(){var element=this.options.appendTo;if(element){element=element.jquery||element.nodeType?$(element):this.document.find(element).eq(0);}\nif(!element||!element[0]){element=this.element.closest(\".ui-front, dialog\");}\nif(!element.length){element=this.document[0].body;}\nreturn element;},_toggleAttr:function(){this.button.attr(\"aria-expanded\",this.isOpen);this._removeClass(this.button,\"ui-selectmenu-button-\"+\n(this.isOpen?\"closed\":\"open\"))._addClass(this.button,\"ui-selectmenu-button-\"+\n(this.isOpen?\"open\":\"closed\"))._toggleClass(this.menuWrap,\"ui-selectmenu-open\",null,this.isOpen);this.menu.attr(\"aria-hidden\",!this.isOpen);},_resizeButton:function(){var width=this.options.width;if(width===false){this.button.css(\"width\",\"\");return;}\nif(width===null){width=this.element.show().outerWidth();this.element.hide();}\nthis.button.outerWidth(width);},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width(\"\").outerWidth()+1));},_getCreateOptions:function(){var options=this._super();options.disabled=this.element.prop(\"disabled\");return options;},_parseOptions:function(options){var that=this,data=[];options.each(function(index,item){if(item.hidden){return;}\ndata.push(that._parseOption($(item),index));});this.items=data;},_parseOption:function(option,index){var optgroup=option.parent(\"optgroup\");return{element:option,index:index,value:option.val(),label:option.text(),optgroup:optgroup.attr(\"label\")||\"\",disabled:optgroup.prop(\"disabled\")||option.prop(\"disabled\")};},_destroy:function(){this._unbindFormResetHandler();this.menuWrap.remove();this.button.remove();this.element.show();this.element.removeUniqueId();this.labels.attr(\"for\",this.ids.element);}}]);});","jquery/ui-modules/widgets/tabs.min.js":"/*!\n * jQuery UI Tabs 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"../keycode\",\"../safe-active-element\",\"../unique-id\",\"../version\",\"../widget\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";$.widget(\"ui.tabs\",{version:\"1.13.2\",delay:300,options:{active:null,classes:{\"ui-tabs\":\"ui-corner-all\",\"ui-tabs-nav\":\"ui-corner-all\",\"ui-tabs-panel\":\"ui-corner-bottom\",\"ui-tabs-tab\":\"ui-corner-top\"},collapsible:false,event:\"click\",heightStyle:\"content\",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:(function(){var rhash=/#.*$/;return function(anchor){var anchorUrl,locationUrl;anchorUrl=anchor.href.replace(rhash,\"\");locationUrl=location.href.replace(rhash,\"\");try{anchorUrl=decodeURIComponent(anchorUrl);}catch(error){}\ntry{locationUrl=decodeURIComponent(locationUrl);}catch(error){}\nreturn anchor.hash.length>1&&anchorUrl===locationUrl;};})(),_create:function(){var that=this,options=this.options;this.running=false;this._addClass(\"ui-tabs\",\"ui-widget ui-widget-content\");this._toggleClass(\"ui-tabs-collapsible\",null,options.collapsible);this._processTabs();options.active=this._initialActive();if(Array.isArray(options.disabled)){options.disabled=$.uniqueSort(options.disabled.concat($.map(this.tabs.filter(\".ui-state-disabled\"),function(li){return that.tabs.index(li);}))).sort();}\nif(this.options.active!==false&&this.anchors.length){this.active=this._findActive(options.active);}else{this.active=$();}\nthis._refresh();if(this.active.length){this.load(options.active);}},_initialActive:function(){var active=this.options.active,collapsible=this.options.collapsible,locationHash=location.hash.substring(1);if(active===null){if(locationHash){this.tabs.each(function(i,tab){if($(tab).attr(\"aria-controls\")===locationHash){active=i;return false;}});}\nif(active===null){active=this.tabs.index(this.tabs.filter(\".ui-tabs-active\"));}\nif(active===null||active===-1){active=this.tabs.length?0:false;}}\nif(active!==false){active=this.tabs.index(this.tabs.eq(active));if(active===-1){active=collapsible?false:0;}}\nif(!collapsible&&active===false&&this.anchors.length){active=0;}\nreturn active;},_getCreateEventData:function(){return{tab:this.active,panel:!this.active.length?$():this._getPanelForTab(this.active)};},_tabKeydown:function(event){var focusedTab=$($.ui.safeActiveElement(this.document[0])).closest(\"li\"),selectedIndex=this.tabs.index(focusedTab),goingForward=true;if(this._handlePageNav(event)){return;}\nswitch(event.keyCode){case $.ui.keyCode.RIGHT:case $.ui.keyCode.DOWN:selectedIndex++;break;case $.ui.keyCode.UP:case $.ui.keyCode.LEFT:goingForward=false;selectedIndex--;break;case $.ui.keyCode.END:selectedIndex=this.anchors.length-1;break;case $.ui.keyCode.HOME:selectedIndex=0;break;case $.ui.keyCode.SPACE:event.preventDefault();clearTimeout(this.activating);this._activate(selectedIndex);return;case $.ui.keyCode.ENTER:event.preventDefault();clearTimeout(this.activating);this._activate(selectedIndex===this.options.active?false:selectedIndex);return;default:return;}\nevent.preventDefault();clearTimeout(this.activating);selectedIndex=this._focusNextTab(selectedIndex,goingForward);if(!event.ctrlKey&&!event.metaKey){focusedTab.attr(\"aria-selected\",\"false\");this.tabs.eq(selectedIndex).attr(\"aria-selected\",\"true\");this.activating=this._delay(function(){this.option(\"active\",selectedIndex);},this.delay);}},_panelKeydown:function(event){if(this._handlePageNav(event)){return;}\nif(event.ctrlKey&&event.keyCode===$.ui.keyCode.UP){event.preventDefault();this.active.trigger(\"focus\");}},_handlePageNav:function(event){if(event.altKey&&event.keyCode===$.ui.keyCode.PAGE_UP){this._activate(this._focusNextTab(this.options.active-1,false));return true;}\nif(event.altKey&&event.keyCode===$.ui.keyCode.PAGE_DOWN){this._activate(this._focusNextTab(this.options.active+1,true));return true;}},_findNextTab:function(index,goingForward){var lastTabIndex=this.tabs.length-1;function constrain(){if(index>lastTabIndex){index=0;}\nif(index<0){index=lastTabIndex;}\nreturn index;}\nwhile($.inArray(constrain(),this.options.disabled)!==-1){index=goingForward?index+1:index-1;}\nreturn index;},_focusNextTab:function(index,goingForward){index=this._findNextTab(index,goingForward);this.tabs.eq(index).trigger(\"focus\");return index;},_setOption:function(key,value){if(key===\"active\"){this._activate(value);return;}\nthis._super(key,value);if(key===\"collapsible\"){this._toggleClass(\"ui-tabs-collapsible\",null,value);if(!value&&this.options.active===false){this._activate(0);}}\nif(key===\"event\"){this._setupEvents(value);}\nif(key===\"heightStyle\"){this._setupHeightStyle(value);}},_sanitizeSelector:function(hash){return hash?hash.replace(/[!\"$%&'()*+,.\\/:;<=>?@\\[\\]\\^`{|}~]/g,\"\\\\$&\"):\"\";},refresh:function(){var options=this.options,lis=this.tablist.children(\":has(a[href])\");options.disabled=$.map(lis.filter(\".ui-state-disabled\"),function(tab){return lis.index(tab);});this._processTabs();if(options.active===false||!this.anchors.length){options.active=false;this.active=$();}else if(this.active.length&&!$.contains(this.tablist[0],this.active[0])){if(this.tabs.length===options.disabled.length){options.active=false;this.active=$();}else{this._activate(this._findNextTab(Math.max(0,options.active-1),false));}}else{options.active=this.tabs.index(this.active);}\nthis._refresh();},_refresh:function(){this._setOptionDisabled(this.options.disabled);this._setupEvents(this.options.event);this._setupHeightStyle(this.options.heightStyle);this.tabs.not(this.active).attr({\"aria-selected\":\"false\",\"aria-expanded\":\"false\",tabIndex:-1});this.panels.not(this._getPanelForTab(this.active)).hide().attr({\"aria-hidden\":\"true\"});if(!this.active.length){this.tabs.eq(0).attr(\"tabIndex\",0);}else{this.active.attr({\"aria-selected\":\"true\",\"aria-expanded\":\"true\",tabIndex:0});this._addClass(this.active,\"ui-tabs-active\",\"ui-state-active\");this._getPanelForTab(this.active).show().attr({\"aria-hidden\":\"false\"});}},_processTabs:function(){var that=this,prevTabs=this.tabs,prevAnchors=this.anchors,prevPanels=this.panels;this.tablist=this._getList().attr(\"role\",\"tablist\");this._addClass(this.tablist,\"ui-tabs-nav\",\"ui-helper-reset ui-helper-clearfix ui-widget-header\");this.tablist.on(\"mousedown\"+this.eventNamespace,\"> li\",function(event){if($(this).is(\".ui-state-disabled\")){event.preventDefault();}}).on(\"focus\"+this.eventNamespace,\".ui-tabs-anchor\",function(){if($(this).closest(\"li\").is(\".ui-state-disabled\")){this.blur();}});this.tabs=this.tablist.find(\"> li:has(a[href])\").attr({role:\"tab\",tabIndex:-1});this._addClass(this.tabs,\"ui-tabs-tab\",\"ui-state-default\");this.anchors=this.tabs.map(function(){return $(\"a\",this)[0];}).attr({tabIndex:-1});this._addClass(this.anchors,\"ui-tabs-anchor\");this.panels=$();this.anchors.each(function(i,anchor){var selector,panel,panelId,anchorId=$(anchor).uniqueId().attr(\"id\"),tab=$(anchor).closest(\"li\"),originalAriaControls=tab.attr(\"aria-controls\");if(that._isLocal(anchor)){selector=anchor.hash;panelId=selector.substring(1);panel=that.element.find(that._sanitizeSelector(selector));}else{panelId=tab.attr(\"aria-controls\")||$({}).uniqueId()[0].id;selector=\"#\"+panelId;panel=that.element.find(selector);if(!panel.length){panel=that._createPanel(panelId);panel.insertAfter(that.panels[i-1]||that.tablist);}\npanel.attr(\"aria-live\",\"polite\");}\nif(panel.length){that.panels=that.panels.add(panel);}\nif(originalAriaControls){tab.data(\"ui-tabs-aria-controls\",originalAriaControls);}\ntab.attr({\"aria-controls\":panelId,\"aria-labelledby\":anchorId});panel.attr(\"aria-labelledby\",anchorId);});this.panels.attr(\"role\",\"tabpanel\");this._addClass(this.panels,\"ui-tabs-panel\",\"ui-widget-content\");if(prevTabs){this._off(prevTabs.not(this.tabs));this._off(prevAnchors.not(this.anchors));this._off(prevPanels.not(this.panels));}},_getList:function(){return this.tablist||this.element.find(\"ol, ul\").eq(0);},_createPanel:function(id){return $(\"<div>\").attr(\"id\",id).data(\"ui-tabs-destroy\",true);},_setOptionDisabled:function(disabled){var currentItem,li,i;if(Array.isArray(disabled)){if(!disabled.length){disabled=false;}else if(disabled.length===this.anchors.length){disabled=true;}}\nfor(i=0;(li=this.tabs[i]);i++){currentItem=$(li);if(disabled===true||$.inArray(i,disabled)!==-1){currentItem.attr(\"aria-disabled\",\"true\");this._addClass(currentItem,null,\"ui-state-disabled\");}else{currentItem.removeAttr(\"aria-disabled\");this._removeClass(currentItem,null,\"ui-state-disabled\");}}\nthis.options.disabled=disabled;this._toggleClass(this.widget(),this.widgetFullName+\"-disabled\",null,disabled===true);},_setupEvents:function(event){var events={};if(event){$.each(event.split(\" \"),function(index,eventName){events[eventName]=\"_eventHandler\";});}\nthis._off(this.anchors.add(this.tabs).add(this.panels));this._on(true,this.anchors,{click:function(event){event.preventDefault();}});this._on(this.anchors,events);this._on(this.tabs,{keydown:\"_tabKeydown\"});this._on(this.panels,{keydown:\"_panelKeydown\"});this._focusable(this.tabs);this._hoverable(this.tabs);},_setupHeightStyle:function(heightStyle){var maxHeight,parent=this.element.parent();if(heightStyle===\"fill\"){maxHeight=parent.height();maxHeight-=this.element.outerHeight()-this.element.height();this.element.siblings(\":visible\").each(function(){var elem=$(this),position=elem.css(\"position\");if(position===\"absolute\"||position===\"fixed\"){return;}\nmaxHeight-=elem.outerHeight(true);});this.element.children().not(this.panels).each(function(){maxHeight-=$(this).outerHeight(true);});this.panels.each(function(){$(this).height(Math.max(0,maxHeight-\n$(this).innerHeight()+$(this).height()));}).css(\"overflow\",\"auto\");}else if(heightStyle===\"auto\"){maxHeight=0;this.panels.each(function(){maxHeight=Math.max(maxHeight,$(this).height(\"\").height());}).height(maxHeight);}},_eventHandler:function(event){var options=this.options,active=this.active,anchor=$(event.currentTarget),tab=anchor.closest(\"li\"),clickedIsActive=tab[0]===active[0],collapsing=clickedIsActive&&options.collapsible,toShow=collapsing?$():this._getPanelForTab(tab),toHide=!active.length?$():this._getPanelForTab(active),eventData={oldTab:active,oldPanel:toHide,newTab:collapsing?$():tab,newPanel:toShow};event.preventDefault();if(tab.hasClass(\"ui-state-disabled\")||tab.hasClass(\"ui-tabs-loading\")||this.running||(clickedIsActive&&!options.collapsible)||(this._trigger(\"beforeActivate\",event,eventData)===false)){return;}\noptions.active=collapsing?false:this.tabs.index(tab);this.active=clickedIsActive?$():tab;if(this.xhr){this.xhr.abort();}\nif(!toHide.length&&!toShow.length){$.error(\"jQuery UI Tabs: Mismatching fragment identifier.\");}\nif(toShow.length){this.load(this.tabs.index(tab),event);}\nthis._toggle(event,eventData);},_toggle:function(event,eventData){var that=this,toShow=eventData.newPanel,toHide=eventData.oldPanel;this.running=true;function complete(){that.running=false;that._trigger(\"activate\",event,eventData);}\nfunction show(){that._addClass(eventData.newTab.closest(\"li\"),\"ui-tabs-active\",\"ui-state-active\");if(toShow.length&&that.options.show){that._show(toShow,that.options.show,complete);}else{toShow.show();complete();}}\nif(toHide.length&&this.options.hide){this._hide(toHide,this.options.hide,function(){that._removeClass(eventData.oldTab.closest(\"li\"),\"ui-tabs-active\",\"ui-state-active\");show();});}else{this._removeClass(eventData.oldTab.closest(\"li\"),\"ui-tabs-active\",\"ui-state-active\");toHide.hide();show();}\ntoHide.attr(\"aria-hidden\",\"true\");eventData.oldTab.attr({\"aria-selected\":\"false\",\"aria-expanded\":\"false\"});if(toShow.length&&toHide.length){eventData.oldTab.attr(\"tabIndex\",-1);}else if(toShow.length){this.tabs.filter(function(){return $(this).attr(\"tabIndex\")===0;}).attr(\"tabIndex\",-1);}\ntoShow.attr(\"aria-hidden\",\"false\");eventData.newTab.attr({\"aria-selected\":\"true\",\"aria-expanded\":\"true\",tabIndex:0});},_activate:function(index){var anchor,active=this._findActive(index);if(active[0]===this.active[0]){return;}\nif(!active.length){active=this.active;}\nanchor=active.find(\".ui-tabs-anchor\")[0];this._eventHandler({target:anchor,currentTarget:anchor,preventDefault:$.noop});},_findActive:function(index){return index===false?$():this.tabs.eq(index);},_getIndex:function(index){if(typeof index===\"string\"){index=this.anchors.index(this.anchors.filter(\"[href$='\"+\n$.escapeSelector(index)+\"']\"));}\nreturn index;},_destroy:function(){if(this.xhr){this.xhr.abort();}\nthis.tablist.removeAttr(\"role\").off(this.eventNamespace);this.anchors.removeAttr(\"role tabIndex\").removeUniqueId();this.tabs.add(this.panels).each(function(){if($.data(this,\"ui-tabs-destroy\")){$(this).remove();}else{$(this).removeAttr(\"role tabIndex \"+\"aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded\");}});this.tabs.each(function(){var li=$(this),prev=li.data(\"ui-tabs-aria-controls\");if(prev){li.attr(\"aria-controls\",prev).removeData(\"ui-tabs-aria-controls\");}else{li.removeAttr(\"aria-controls\");}});this.panels.show();if(this.options.heightStyle!==\"content\"){this.panels.css(\"height\",\"\");}},enable:function(index){var disabled=this.options.disabled;if(disabled===false){return;}\nif(index===undefined){disabled=false;}else{index=this._getIndex(index);if(Array.isArray(disabled)){disabled=$.map(disabled,function(num){return num!==index?num:null;});}else{disabled=$.map(this.tabs,function(li,num){return num!==index?num:null;});}}\nthis._setOptionDisabled(disabled);},disable:function(index){var disabled=this.options.disabled;if(disabled===true){return;}\nif(index===undefined){disabled=true;}else{index=this._getIndex(index);if($.inArray(index,disabled)!==-1){return;}\nif(Array.isArray(disabled)){disabled=$.merge([index],disabled).sort();}else{disabled=[index];}}\nthis._setOptionDisabled(disabled);},load:function(index,event){index=this._getIndex(index);var that=this,tab=this.tabs.eq(index),anchor=tab.find(\".ui-tabs-anchor\"),panel=this._getPanelForTab(tab),eventData={tab:tab,panel:panel},complete=function(jqXHR,status){if(status===\"abort\"){that.panels.stop(false,true);}\nthat._removeClass(tab,\"ui-tabs-loading\");panel.removeAttr(\"aria-busy\");if(jqXHR===that.xhr){delete that.xhr;}};if(this._isLocal(anchor[0])){return;}\nthis.xhr=$.ajax(this._ajaxSettings(anchor,event,eventData));if(this.xhr&&this.xhr.statusText!==\"canceled\"){this._addClass(tab,\"ui-tabs-loading\");panel.attr(\"aria-busy\",\"true\");this.xhr.done(function(response,status,jqXHR){setTimeout(function(){panel.html(response);that._trigger(\"load\",event,eventData);complete(jqXHR,status);},1);}).fail(function(jqXHR,status){setTimeout(function(){complete(jqXHR,status);},1);});}},_ajaxSettings:function(anchor,event,eventData){var that=this;return{url:anchor.attr(\"href\").replace(/#.*$/,\"\"),beforeSend:function(jqXHR,settings){return that._trigger(\"beforeLoad\",event,$.extend({jqXHR:jqXHR,ajaxSettings:settings},eventData));}};},_getPanelForTab:function(tab){var id=$(tab).attr(\"aria-controls\");return this.element.find(this._sanitizeSelector(\"#\"+id));}});if($.uiBackCompat!==false){$.widget(\"ui.tabs\",$.ui.tabs,{_processTabs:function(){this._superApply(arguments);this._addClass(this.tabs,\"ui-tab\");}});}\nreturn $.ui.tabs;});","jquery/ui-modules/widgets/droppable.min.js":"/*!\n * jQuery UI Droppable 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"./draggable\",\"./mouse\",\"../version\",\"../widget\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";$.widget(\"ui.droppable\",{version:\"1.13.2\",widgetEventPrefix:\"drop\",options:{accept:\"*\",addClasses:true,greedy:false,scope:\"default\",tolerance:\"intersect\",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var proportions,o=this.options,accept=o.accept;this.isover=false;this.isout=true;this.accept=typeof accept===\"function\"?accept:function(d){return d.is(accept);};this.proportions=function(){if(arguments.length){proportions=arguments[0];}else{return proportions?proportions:proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};}};this._addToManager(o.scope);if(o.addClasses){this._addClass(\"ui-droppable\");}},_addToManager:function(scope){$.ui.ddmanager.droppables[scope]=$.ui.ddmanager.droppables[scope]||[];$.ui.ddmanager.droppables[scope].push(this);},_splice:function(drop){var i=0;for(;i<drop.length;i++){if(drop[i]===this){drop.splice(i,1);}}},_destroy:function(){var drop=$.ui.ddmanager.droppables[this.options.scope];this._splice(drop);},_setOption:function(key,value){if(key===\"accept\"){this.accept=typeof value===\"function\"?value:function(d){return d.is(value);};}else if(key===\"scope\"){var drop=$.ui.ddmanager.droppables[this.options.scope];this._splice(drop);this._addToManager(value);}\nthis._super(key,value);},_activate:function(event){var draggable=$.ui.ddmanager.current;this._addActiveClass();if(draggable){this._trigger(\"activate\",event,this.ui(draggable));}},_deactivate:function(event){var draggable=$.ui.ddmanager.current;this._removeActiveClass();if(draggable){this._trigger(\"deactivate\",event,this.ui(draggable));}},_over:function(event){var draggable=$.ui.ddmanager.current;if(!draggable||(draggable.currentItem||draggable.element)[0]===this.element[0]){return;}\nif(this.accept.call(this.element[0],(draggable.currentItem||draggable.element))){this._addHoverClass();this._trigger(\"over\",event,this.ui(draggable));}},_out:function(event){var draggable=$.ui.ddmanager.current;if(!draggable||(draggable.currentItem||draggable.element)[0]===this.element[0]){return;}\nif(this.accept.call(this.element[0],(draggable.currentItem||draggable.element))){this._removeHoverClass();this._trigger(\"out\",event,this.ui(draggable));}},_drop:function(event,custom){var draggable=custom||$.ui.ddmanager.current,childrenIntersection=false;if(!draggable||(draggable.currentItem||draggable.element)[0]===this.element[0]){return false;}\nthis.element.find(\":data(ui-droppable)\").not(\".ui-draggable-dragging\").each(function(){var inst=$(this).droppable(\"instance\");if(inst.options.greedy&&!inst.options.disabled&&inst.options.scope===draggable.options.scope&&inst.accept.call(inst.element[0],(draggable.currentItem||draggable.element))&&$.ui.intersect(draggable,$.extend(inst,{offset:inst.element.offset()}),inst.options.tolerance,event)){childrenIntersection=true;return false;}});if(childrenIntersection){return false;}\nif(this.accept.call(this.element[0],(draggable.currentItem||draggable.element))){this._removeActiveClass();this._removeHoverClass();this._trigger(\"drop\",event,this.ui(draggable));return this.element;}\nreturn false;},ui:function(c){return{draggable:(c.currentItem||c.element),helper:c.helper,position:c.position,offset:c.positionAbs};},_addHoverClass:function(){this._addClass(\"ui-droppable-hover\");},_removeHoverClass:function(){this._removeClass(\"ui-droppable-hover\");},_addActiveClass:function(){this._addClass(\"ui-droppable-active\");},_removeActiveClass:function(){this._removeClass(\"ui-droppable-active\");}});$.ui.intersect=(function(){function isOverAxis(x,reference,size){return(x>=reference)&&(x<(reference+size));}\nreturn function(draggable,droppable,toleranceMode,event){if(!droppable.offset){return false;}\nvar x1=(draggable.positionAbs||draggable.position.absolute).left+draggable.margins.left,y1=(draggable.positionAbs||draggable.position.absolute).top+draggable.margins.top,x2=x1+draggable.helperProportions.width,y2=y1+draggable.helperProportions.height,l=droppable.offset.left,t=droppable.offset.top,r=l+droppable.proportions().width,b=t+droppable.proportions().height;switch(toleranceMode){case\"fit\":return(l<=x1&&x2<=r&&t<=y1&&y2<=b);case\"intersect\":return(l<x1+(draggable.helperProportions.width / 2)&&x2-(draggable.helperProportions.width / 2)<r&&t<y1+(draggable.helperProportions.height / 2)&&y2-(draggable.helperProportions.height / 2)<b);case\"pointer\":return isOverAxis(event.pageY,t,droppable.proportions().height)&&isOverAxis(event.pageX,l,droppable.proportions().width);case\"touch\":return((y1>=t&&y1<=b)||(y2>=t&&y2<=b)||(y1<t&&y2>b))&&((x1>=l&&x1<=r)||(x2>=l&&x2<=r)||(x1<l&&x2>r));default:return false;}};})();$.ui.ddmanager={current:null,droppables:{\"default\":[]},prepareOffsets:function(t,event){var i,j,m=$.ui.ddmanager.droppables[t.options.scope]||[],type=event?event.type:null,list=(t.currentItem||t.element).find(\":data(ui-droppable)\").addBack();droppablesLoop:for(i=0;i<m.length;i++){if(m[i].options.disabled||(t&&!m[i].accept.call(m[i].element[0],(t.currentItem||t.element)))){continue;}\nfor(j=0;j<list.length;j++){if(list[j]===m[i].element[0]){m[i].proportions().height=0;continue droppablesLoop;}}\nm[i].visible=m[i].element.css(\"display\")!==\"none\";if(!m[i].visible){continue;}\nif(type===\"mousedown\"){m[i]._activate.call(m[i],event);}\nm[i].offset=m[i].element.offset();m[i].proportions({width:m[i].element[0].offsetWidth,height:m[i].element[0].offsetHeight});}},drop:function(draggable,event){var dropped=false;$.each(($.ui.ddmanager.droppables[draggable.options.scope]||[]).slice(),function(){if(!this.options){return;}\nif(!this.options.disabled&&this.visible&&$.ui.intersect(draggable,this,this.options.tolerance,event)){dropped=this._drop.call(this,event)||dropped;}\nif(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],(draggable.currentItem||draggable.element))){this.isout=true;this.isover=false;this._deactivate.call(this,event);}});return dropped;},dragStart:function(draggable,event){draggable.element.parentsUntil(\"body\").on(\"scroll.droppable\",function(){if(!draggable.options.refreshPositions){$.ui.ddmanager.prepareOffsets(draggable,event);}});},drag:function(draggable,event){if(draggable.options.refreshPositions){$.ui.ddmanager.prepareOffsets(draggable,event);}\n$.each($.ui.ddmanager.droppables[draggable.options.scope]||[],function(){if(this.options.disabled||this.greedyChild||!this.visible){return;}\nvar parentInstance,scope,parent,intersects=$.ui.intersect(draggable,this,this.options.tolerance,event),c=!intersects&&this.isover?\"isout\":(intersects&&!this.isover?\"isover\":null);if(!c){return;}\nif(this.options.greedy){scope=this.options.scope;parent=this.element.parents(\":data(ui-droppable)\").filter(function(){return $(this).droppable(\"instance\").options.scope===scope;});if(parent.length){parentInstance=$(parent[0]).droppable(\"instance\");parentInstance.greedyChild=(c===\"isover\");}}\nif(parentInstance&&c===\"isover\"){parentInstance.isover=false;parentInstance.isout=true;parentInstance._out.call(parentInstance,event);}\nthis[c]=true;this[c===\"isout\"?\"isover\":\"isout\"]=false;this[c===\"isover\"?\"_over\":\"_out\"].call(this,event);if(parentInstance&&c===\"isout\"){parentInstance.isout=false;parentInstance.isover=true;parentInstance._over.call(parentInstance,event);}});},dragStop:function(draggable,event){draggable.element.parentsUntil(\"body\").off(\"scroll.droppable\");if(!draggable.options.refreshPositions){$.ui.ddmanager.prepareOffsets(draggable,event);}}};if($.uiBackCompat!==false){$.widget(\"ui.droppable\",$.ui.droppable,{options:{hoverClass:false,activeClass:false},_addActiveClass:function(){this._super();if(this.options.activeClass){this.element.addClass(this.options.activeClass);}},_removeActiveClass:function(){this._super();if(this.options.activeClass){this.element.removeClass(this.options.activeClass);}},_addHoverClass:function(){this._super();if(this.options.hoverClass){this.element.addClass(this.options.hoverClass);}},_removeHoverClass:function(){this._super();if(this.options.hoverClass){this.element.removeClass(this.options.hoverClass);}}});}\nreturn $.ui.droppable;});","jquery/ui-modules/widgets/slider.min.js":"/*!\n * jQuery UI Slider 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"./mouse\",\"../keycode\",\"../version\",\"../widget\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";return $.widget(\"ui.slider\",$.ui.mouse,{version:\"1.13.2\",widgetEventPrefix:\"slide\",options:{animate:false,classes:{\"ui-slider\":\"ui-corner-all\",\"ui-slider-handle\":\"ui-corner-all\",\"ui-slider-range\":\"ui-corner-all ui-widget-header\"},distance:0,max:100,min:0,orientation:\"horizontal\",range:false,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=false;this._mouseSliding=false;this._animateOff=true;this._handleIndex=null;this._detectOrientation();this._mouseInit();this._calculateNewMax();this._addClass(\"ui-slider ui-slider-\"+this.orientation,\"ui-widget ui-widget-content\");this._refresh();this._animateOff=false;},_refresh:function(){this._createRange();this._createHandles();this._setupEvents();this._refreshValue();},_createHandles:function(){var i,handleCount,options=this.options,existingHandles=this.element.find(\".ui-slider-handle\"),handle=\"<span tabindex='0'></span>\",handles=[];handleCount=(options.values&&options.values.length)||1;if(existingHandles.length>handleCount){existingHandles.slice(handleCount).remove();existingHandles=existingHandles.slice(0,handleCount);}\nfor(i=existingHandles.length;i<handleCount;i++){handles.push(handle);}\nthis.handles=existingHandles.add($(handles.join(\"\")).appendTo(this.element));this._addClass(this.handles,\"ui-slider-handle\",\"ui-state-default\");this.handle=this.handles.eq(0);this.handles.each(function(i){$(this).data(\"ui-slider-handle-index\",i).attr(\"tabIndex\",0);});},_createRange:function(){var options=this.options;if(options.range){if(options.range===true){if(!options.values){options.values=[this._valueMin(),this._valueMin()];}else if(options.values.length&&options.values.length!==2){options.values=[options.values[0],options.values[0]];}else if(Array.isArray(options.values)){options.values=options.values.slice(0);}}\nif(!this.range||!this.range.length){this.range=$(\"<div>\").appendTo(this.element);this._addClass(this.range,\"ui-slider-range\");}else{this._removeClass(this.range,\"ui-slider-range-min ui-slider-range-max\");this.range.css({\"left\":\"\",\"bottom\":\"\"});}\nif(options.range===\"min\"||options.range===\"max\"){this._addClass(this.range,\"ui-slider-range-\"+options.range);}}else{if(this.range){this.range.remove();}\nthis.range=null;}},_setupEvents:function(){this._off(this.handles);this._on(this.handles,this._handleEvents);this._hoverable(this.handles);this._focusable(this.handles);},_destroy:function(){this.handles.remove();if(this.range){this.range.remove();}\nthis._mouseDestroy();},_mouseCapture:function(event){var position,normValue,distance,closestHandle,index,allowed,offset,mouseOverHandle,that=this,o=this.options;if(o.disabled){return false;}\nthis.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();position={x:event.pageX,y:event.pageY};normValue=this._normValueFromMouse(position);distance=this._valueMax()-this._valueMin()+1;this.handles.each(function(i){var thisDistance=Math.abs(normValue-that.values(i));if((distance>thisDistance)||(distance===thisDistance&&(i===that._lastChangedValue||that.values(i)===o.min))){distance=thisDistance;closestHandle=$(this);index=i;}});allowed=this._start(event,index);if(allowed===false){return false;}\nthis._mouseSliding=true;this._handleIndex=index;this._addClass(closestHandle,null,\"ui-state-active\");closestHandle.trigger(\"focus\");offset=closestHandle.offset();mouseOverHandle=!$(event.target).parents().addBack().is(\".ui-slider-handle\");this._clickOffset=mouseOverHandle?{left:0,top:0}:{left:event.pageX-offset.left-(closestHandle.width()/ 2),top:event.pageY-offset.top-\n(closestHandle.height()/ 2)-\n(parseInt(closestHandle.css(\"borderTopWidth\"),10)||0)-\n(parseInt(closestHandle.css(\"borderBottomWidth\"),10)||0)+\n(parseInt(closestHandle.css(\"marginTop\"),10)||0)};if(!this.handles.hasClass(\"ui-state-hover\")){this._slide(event,index,normValue);}\nthis._animateOff=true;return true;},_mouseStart:function(){return true;},_mouseDrag:function(event){var position={x:event.pageX,y:event.pageY},normValue=this._normValueFromMouse(position);this._slide(event,this._handleIndex,normValue);return false;},_mouseStop:function(event){this._removeClass(this.handles,null,\"ui-state-active\");this._mouseSliding=false;this._stop(event,this._handleIndex);this._change(event,this._handleIndex);this._handleIndex=null;this._clickOffset=null;this._animateOff=false;return false;},_detectOrientation:function(){this.orientation=(this.options.orientation===\"vertical\")?\"vertical\":\"horizontal\";},_normValueFromMouse:function(position){var pixelTotal,pixelMouse,percentMouse,valueTotal,valueMouse;if(this.orientation===\"horizontal\"){pixelTotal=this.elementSize.width;pixelMouse=position.x-this.elementOffset.left-\n(this._clickOffset?this._clickOffset.left:0);}else{pixelTotal=this.elementSize.height;pixelMouse=position.y-this.elementOffset.top-\n(this._clickOffset?this._clickOffset.top:0);}\npercentMouse=(pixelMouse / pixelTotal);if(percentMouse>1){percentMouse=1;}\nif(percentMouse<0){percentMouse=0;}\nif(this.orientation===\"vertical\"){percentMouse=1-percentMouse;}\nvalueTotal=this._valueMax()-this._valueMin();valueMouse=this._valueMin()+percentMouse*valueTotal;return this._trimAlignValue(valueMouse);},_uiHash:function(index,value,values){var uiHash={handle:this.handles[index],handleIndex:index,value:value!==undefined?value:this.value()};if(this._hasMultipleValues()){uiHash.value=value!==undefined?value:this.values(index);uiHash.values=values||this.values();}\nreturn uiHash;},_hasMultipleValues:function(){return this.options.values&&this.options.values.length;},_start:function(event,index){return this._trigger(\"start\",event,this._uiHash(index));},_slide:function(event,index,newVal){var allowed,otherVal,currentValue=this.value(),newValues=this.values();if(this._hasMultipleValues()){otherVal=this.values(index?0:1);currentValue=this.values(index);if(this.options.values.length===2&&this.options.range===true){newVal=index===0?Math.min(otherVal,newVal):Math.max(otherVal,newVal);}\nnewValues[index]=newVal;}\nif(newVal===currentValue){return;}\nallowed=this._trigger(\"slide\",event,this._uiHash(index,newVal,newValues));if(allowed===false){return;}\nif(this._hasMultipleValues()){this.values(index,newVal);}else{this.value(newVal);}},_stop:function(event,index){this._trigger(\"stop\",event,this._uiHash(index));},_change:function(event,index){if(!this._keySliding&&!this._mouseSliding){this._lastChangedValue=index;this._trigger(\"change\",event,this._uiHash(index));}},value:function(newValue){if(arguments.length){this.options.value=this._trimAlignValue(newValue);this._refreshValue();this._change(null,0);return;}\nreturn this._value();},values:function(index,newValue){var vals,newValues,i;if(arguments.length>1){this.options.values[index]=this._trimAlignValue(newValue);this._refreshValue();this._change(null,index);return;}\nif(arguments.length){if(Array.isArray(arguments[0])){vals=this.options.values;newValues=arguments[0];for(i=0;i<vals.length;i+=1){vals[i]=this._trimAlignValue(newValues[i]);this._change(null,i);}\nthis._refreshValue();}else{if(this._hasMultipleValues()){return this._values(index);}else{return this.value();}}}else{return this._values();}},_setOption:function(key,value){var i,valsLength=0;if(key===\"range\"&&this.options.range===true){if(value===\"min\"){this.options.value=this._values(0);this.options.values=null;}else if(value===\"max\"){this.options.value=this._values(this.options.values.length-1);this.options.values=null;}}\nif(Array.isArray(this.options.values)){valsLength=this.options.values.length;}\nthis._super(key,value);switch(key){case\"orientation\":this._detectOrientation();this._removeClass(\"ui-slider-horizontal ui-slider-vertical\")._addClass(\"ui-slider-\"+this.orientation);this._refreshValue();if(this.options.range){this._refreshRange(value);}\nthis.handles.css(value===\"horizontal\"?\"bottom\":\"left\",\"\");break;case\"value\":this._animateOff=true;this._refreshValue();this._change(null,0);this._animateOff=false;break;case\"values\":this._animateOff=true;this._refreshValue();for(i=valsLength-1;i>=0;i--){this._change(null,i);}\nthis._animateOff=false;break;case\"step\":case\"min\":case\"max\":this._animateOff=true;this._calculateNewMax();this._refreshValue();this._animateOff=false;break;case\"range\":this._animateOff=true;this._refresh();this._animateOff=false;break;}},_setOptionDisabled:function(value){this._super(value);this._toggleClass(null,\"ui-state-disabled\",!!value);},_value:function(){var val=this.options.value;val=this._trimAlignValue(val);return val;},_values:function(index){var val,vals,i;if(arguments.length){val=this.options.values[index];val=this._trimAlignValue(val);return val;}else if(this._hasMultipleValues()){vals=this.options.values.slice();for(i=0;i<vals.length;i+=1){vals[i]=this._trimAlignValue(vals[i]);}\nreturn vals;}else{return[];}},_trimAlignValue:function(val){if(val<=this._valueMin()){return this._valueMin();}\nif(val>=this._valueMax()){return this._valueMax();}\nvar step=(this.options.step>0)?this.options.step:1,valModStep=(val-this._valueMin())%step,alignValue=val-valModStep;if(Math.abs(valModStep)*2>=step){alignValue+=(valModStep>0)?step:(-step);}\nreturn parseFloat(alignValue.toFixed(5));},_calculateNewMax:function(){var max=this.options.max,min=this._valueMin(),step=this.options.step,aboveMin=Math.round((max-min)/ step)*step;max=aboveMin+min;if(max>this.options.max){max-=step;}\nthis.max=parseFloat(max.toFixed(this._precision()));},_precision:function(){var precision=this._precisionOf(this.options.step);if(this.options.min!==null){precision=Math.max(precision,this._precisionOf(this.options.min));}\nreturn precision;},_precisionOf:function(num){var str=num.toString(),decimal=str.indexOf(\".\");return decimal===-1?0:str.length-decimal-1;},_valueMin:function(){return this.options.min;},_valueMax:function(){return this.max;},_refreshRange:function(orientation){if(orientation===\"vertical\"){this.range.css({\"width\":\"\",\"left\":\"\"});}\nif(orientation===\"horizontal\"){this.range.css({\"height\":\"\",\"bottom\":\"\"});}},_refreshValue:function(){var lastValPercent,valPercent,value,valueMin,valueMax,oRange=this.options.range,o=this.options,that=this,animate=(!this._animateOff)?o.animate:false,_set={};if(this._hasMultipleValues()){this.handles.each(function(i){valPercent=(that.values(i)-that._valueMin())/(that._valueMax()-\nthat._valueMin())*100;_set[that.orientation===\"horizontal\"?\"left\":\"bottom\"]=valPercent+\"%\";$(this).stop(1,1)[animate?\"animate\":\"css\"](_set,o.animate);if(that.options.range===true){if(that.orientation===\"horizontal\"){if(i===0){that.range.stop(1,1)[animate?\"animate\":\"css\"]({left:valPercent+\"%\"},o.animate);}\nif(i===1){that.range[animate?\"animate\":\"css\"]({width:(valPercent-lastValPercent)+\"%\"},{queue:false,duration:o.animate});}}else{if(i===0){that.range.stop(1,1)[animate?\"animate\":\"css\"]({bottom:(valPercent)+\"%\"},o.animate);}\nif(i===1){that.range[animate?\"animate\":\"css\"]({height:(valPercent-lastValPercent)+\"%\"},{queue:false,duration:o.animate});}}}\nlastValPercent=valPercent;});}else{value=this.value();valueMin=this._valueMin();valueMax=this._valueMax();valPercent=(valueMax!==valueMin)?(value-valueMin)/(valueMax-valueMin)*100:0;_set[this.orientation===\"horizontal\"?\"left\":\"bottom\"]=valPercent+\"%\";this.handle.stop(1,1)[animate?\"animate\":\"css\"](_set,o.animate);if(oRange===\"min\"&&this.orientation===\"horizontal\"){this.range.stop(1,1)[animate?\"animate\":\"css\"]({width:valPercent+\"%\"},o.animate);}\nif(oRange===\"max\"&&this.orientation===\"horizontal\"){this.range.stop(1,1)[animate?\"animate\":\"css\"]({width:(100-valPercent)+\"%\"},o.animate);}\nif(oRange===\"min\"&&this.orientation===\"vertical\"){this.range.stop(1,1)[animate?\"animate\":\"css\"]({height:valPercent+\"%\"},o.animate);}\nif(oRange===\"max\"&&this.orientation===\"vertical\"){this.range.stop(1,1)[animate?\"animate\":\"css\"]({height:(100-valPercent)+\"%\"},o.animate);}}},_handleEvents:{keydown:function(event){var allowed,curVal,newVal,step,index=$(event.target).data(\"ui-slider-handle-index\");switch(event.keyCode){case $.ui.keyCode.HOME:case $.ui.keyCode.END:case $.ui.keyCode.PAGE_UP:case $.ui.keyCode.PAGE_DOWN:case $.ui.keyCode.UP:case $.ui.keyCode.RIGHT:case $.ui.keyCode.DOWN:case $.ui.keyCode.LEFT:event.preventDefault();if(!this._keySliding){this._keySliding=true;this._addClass($(event.target),null,\"ui-state-active\");allowed=this._start(event,index);if(allowed===false){return;}}\nbreak;}\nstep=this.options.step;if(this._hasMultipleValues()){curVal=newVal=this.values(index);}else{curVal=newVal=this.value();}\nswitch(event.keyCode){case $.ui.keyCode.HOME:newVal=this._valueMin();break;case $.ui.keyCode.END:newVal=this._valueMax();break;case $.ui.keyCode.PAGE_UP:newVal=this._trimAlignValue(curVal+((this._valueMax()-this._valueMin())/ this.numPages));break;case $.ui.keyCode.PAGE_DOWN:newVal=this._trimAlignValue(curVal-((this._valueMax()-this._valueMin())/ this.numPages));break;case $.ui.keyCode.UP:case $.ui.keyCode.RIGHT:if(curVal===this._valueMax()){return;}\nnewVal=this._trimAlignValue(curVal+step);break;case $.ui.keyCode.DOWN:case $.ui.keyCode.LEFT:if(curVal===this._valueMin()){return;}\nnewVal=this._trimAlignValue(curVal-step);break;}\nthis._slide(event,index,newVal);},keyup:function(event){var index=$(event.target).data(\"ui-slider-handle-index\");if(this._keySliding){this._keySliding=false;this._stop(event,index);this._change(event,index);this._removeClass($(event.target),null,\"ui-state-active\");}}}});});","jquery/ui-modules/widgets/progressbar.min.js":"/*!\n * jQuery UI Progressbar 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"../version\",\"../widget\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";return $.widget(\"ui.progressbar\",{version:\"1.13.2\",options:{classes:{\"ui-progressbar\":\"ui-corner-all\",\"ui-progressbar-value\":\"ui-corner-left\",\"ui-progressbar-complete\":\"ui-corner-right\"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue();this.element.attr({role:\"progressbar\",\"aria-valuemin\":this.min});this._addClass(\"ui-progressbar\",\"ui-widget ui-widget-content\");this.valueDiv=$(\"<div>\").appendTo(this.element);this._addClass(this.valueDiv,\"ui-progressbar-value\",\"ui-widget-header\");this._refreshValue();},_destroy:function(){this.element.removeAttr(\"role aria-valuemin aria-valuemax aria-valuenow\");this.valueDiv.remove();},value:function(newValue){if(newValue===undefined){return this.options.value;}\nthis.options.value=this._constrainedValue(newValue);this._refreshValue();},_constrainedValue:function(newValue){if(newValue===undefined){newValue=this.options.value;}\nthis.indeterminate=newValue===false;if(typeof newValue!==\"number\"){newValue=0;}\nreturn this.indeterminate?false:Math.min(this.options.max,Math.max(this.min,newValue));},_setOptions:function(options){var value=options.value;delete options.value;this._super(options);this.options.value=this._constrainedValue(value);this._refreshValue();},_setOption:function(key,value){if(key===\"max\"){value=Math.max(this.min,value);}\nthis._super(key,value);},_setOptionDisabled:function(value){this._super(value);this.element.attr(\"aria-disabled\",value);this._toggleClass(null,\"ui-state-disabled\",!!value);},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min);},_refreshValue:function(){var value=this.options.value,percentage=this._percentage();this.valueDiv.toggle(this.indeterminate||value>this.min).width(percentage.toFixed(0)+\"%\");this._toggleClass(this.valueDiv,\"ui-progressbar-complete\",null,value===this.options.max)._toggleClass(\"ui-progressbar-indeterminate\",null,this.indeterminate);if(this.indeterminate){this.element.removeAttr(\"aria-valuenow\");if(!this.overlayDiv){this.overlayDiv=$(\"<div>\").appendTo(this.valueDiv);this._addClass(this.overlayDiv,\"ui-progressbar-overlay\");}}else{this.element.attr({\"aria-valuemax\":this.options.max,\"aria-valuenow\":value});if(this.overlayDiv){this.overlayDiv.remove();this.overlayDiv=null;}}\nif(this.oldValue!==value){this.oldValue=value;this._trigger(\"change\");}\nif(value===this.options.max){this._trigger(\"complete\");}}});});","jquery/ui-modules/widgets/tooltip.min.js":"/*!\n * jQuery UI Tooltip 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"../keycode\",\"../position\",\"../unique-id\",\"../version\",\"../widget\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";$.widget(\"ui.tooltip\",{version:\"1.13.2\",options:{classes:{\"ui-tooltip\":\"ui-corner-all ui-widget-shadow\"},content:function(){var title=$(this).attr(\"title\");return $(\"<a>\").text(title).html();},hide:true,items:\"[title]:not([disabled])\",position:{my:\"left top+15\",at:\"left bottom\",collision:\"flipfit flip\"},show:true,track:false,close:null,open:null},_addDescribedBy:function(elem,id){var describedby=(elem.attr(\"aria-describedby\")||\"\").split(/\\s+/);describedby.push(id);elem.data(\"ui-tooltip-id\",id).attr(\"aria-describedby\",String.prototype.trim.call(describedby.join(\" \")));},_removeDescribedBy:function(elem){var id=elem.data(\"ui-tooltip-id\"),describedby=(elem.attr(\"aria-describedby\")||\"\").split(/\\s+/),index=$.inArray(id,describedby);if(index!==-1){describedby.splice(index,1);}\nelem.removeData(\"ui-tooltip-id\");describedby=String.prototype.trim.call(describedby.join(\" \"));if(describedby){elem.attr(\"aria-describedby\",describedby);}else{elem.removeAttr(\"aria-describedby\");}},_create:function(){this._on({mouseover:\"open\",focusin:\"open\"});this.tooltips={};this.parents={};this.liveRegion=$(\"<div>\").attr({role:\"log\",\"aria-live\":\"assertive\",\"aria-relevant\":\"additions\"}).appendTo(this.document[0].body);this._addClass(this.liveRegion,null,\"ui-helper-hidden-accessible\");this.disabledTitles=$([]);},_setOption:function(key,value){var that=this;this._super(key,value);if(key===\"content\"){$.each(this.tooltips,function(id,tooltipData){that._updateContent(tooltipData.element);});}},_setOptionDisabled:function(value){this[value?\"_disable\":\"_enable\"]();},_disable:function(){var that=this;$.each(this.tooltips,function(id,tooltipData){var event=$.Event(\"blur\");event.target=event.currentTarget=tooltipData.element[0];that.close(event,true);});this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function(){var element=$(this);if(element.is(\"[title]\")){return element.data(\"ui-tooltip-title\",element.attr(\"title\")).removeAttr(\"title\");}}));},_enable:function(){this.disabledTitles.each(function(){var element=$(this);if(element.data(\"ui-tooltip-title\")){element.attr(\"title\",element.data(\"ui-tooltip-title\"));}});this.disabledTitles=$([]);},open:function(event){var that=this,target=$(event?event.target:this.element).closest(this.options.items);if(!target.length||target.data(\"ui-tooltip-id\")){return;}\nif(target.attr(\"title\")){target.data(\"ui-tooltip-title\",target.attr(\"title\"));}\ntarget.data(\"ui-tooltip-open\",true);if(event&&event.type===\"mouseover\"){target.parents().each(function(){var parent=$(this),blurEvent;if(parent.data(\"ui-tooltip-open\")){blurEvent=$.Event(\"blur\");blurEvent.target=blurEvent.currentTarget=this;that.close(blurEvent,true);}\nif(parent.attr(\"title\")){parent.uniqueId();that.parents[this.id]={element:this,title:parent.attr(\"title\")};parent.attr(\"title\",\"\");}});}\nthis._registerCloseHandlers(event,target);this._updateContent(target,event);},_updateContent:function(target,event){var content,contentOption=this.options.content,that=this,eventType=event?event.type:null;if(typeof contentOption===\"string\"||contentOption.nodeType||contentOption.jquery){return this._open(event,target,contentOption);}\ncontent=contentOption.call(target[0],function(response){that._delay(function(){if(!target.data(\"ui-tooltip-open\")){return;}\nif(event){event.type=eventType;}\nthis._open(event,target,response);});});if(content){this._open(event,target,content);}},_open:function(event,target,content){var tooltipData,tooltip,delayedShow,a11yContent,positionOption=$.extend({},this.options.position);if(!content){return;}\ntooltipData=this._find(target);if(tooltipData){tooltipData.tooltip.find(\".ui-tooltip-content\").html(content);return;}\nif(target.is(\"[title]\")){if(event&&event.type===\"mouseover\"){target.attr(\"title\",\"\");}else{target.removeAttr(\"title\");}}\ntooltipData=this._tooltip(target);tooltip=tooltipData.tooltip;this._addDescribedBy(target,tooltip.attr(\"id\"));tooltip.find(\".ui-tooltip-content\").html(content);this.liveRegion.children().hide();a11yContent=$(\"<div>\").html(tooltip.find(\".ui-tooltip-content\").html());a11yContent.removeAttr(\"name\").find(\"[name]\").removeAttr(\"name\");a11yContent.removeAttr(\"id\").find(\"[id]\").removeAttr(\"id\");a11yContent.appendTo(this.liveRegion);function position(event){positionOption.of=event;if(tooltip.is(\":hidden\")){return;}\ntooltip.position(positionOption);}\nif(this.options.track&&event&&/^mouse/.test(event.type)){this._on(this.document,{mousemove:position});position(event);}else{tooltip.position($.extend({of:target},this.options.position));}\ntooltip.hide();this._show(tooltip,this.options.show);if(this.options.track&&this.options.show&&this.options.show.delay){delayedShow=this.delayedShow=setInterval(function(){if(tooltip.is(\":visible\")){position(positionOption.of);clearInterval(delayedShow);}},13);}\nthis._trigger(\"open\",event,{tooltip:tooltip});},_registerCloseHandlers:function(event,target){var events={keyup:function(event){if(event.keyCode===$.ui.keyCode.ESCAPE){var fakeEvent=$.Event(event);fakeEvent.currentTarget=target[0];this.close(fakeEvent,true);}}};if(target[0]!==this.element[0]){events.remove=function(){var targetElement=this._find(target);if(targetElement){this._removeTooltip(targetElement.tooltip);}};}\nif(!event||event.type===\"mouseover\"){events.mouseleave=\"close\";}\nif(!event||event.type===\"focusin\"){events.focusout=\"close\";}\nthis._on(true,target,events);},close:function(event){var tooltip,that=this,target=$(event?event.currentTarget:this.element),tooltipData=this._find(target);if(!tooltipData){target.removeData(\"ui-tooltip-open\");return;}\ntooltip=tooltipData.tooltip;if(tooltipData.closing){return;}\nclearInterval(this.delayedShow);if(target.data(\"ui-tooltip-title\")&&!target.attr(\"title\")){target.attr(\"title\",target.data(\"ui-tooltip-title\"));}\nthis._removeDescribedBy(target);tooltipData.hiding=true;tooltip.stop(true);this._hide(tooltip,this.options.hide,function(){that._removeTooltip($(this));});target.removeData(\"ui-tooltip-open\");this._off(target,\"mouseleave focusout keyup\");if(target[0]!==this.element[0]){this._off(target,\"remove\");}\nthis._off(this.document,\"mousemove\");if(event&&event.type===\"mouseleave\"){$.each(this.parents,function(id,parent){$(parent.element).attr(\"title\",parent.title);delete that.parents[id];});}\ntooltipData.closing=true;this._trigger(\"close\",event,{tooltip:tooltip});if(!tooltipData.hiding){tooltipData.closing=false;}},_tooltip:function(element){var tooltip=$(\"<div>\").attr(\"role\",\"tooltip\"),content=$(\"<div>\").appendTo(tooltip),id=tooltip.uniqueId().attr(\"id\");this._addClass(content,\"ui-tooltip-content\");this._addClass(tooltip,\"ui-tooltip\",\"ui-widget ui-widget-content\");tooltip.appendTo(this._appendTo(element));return this.tooltips[id]={element:element,tooltip:tooltip};},_find:function(target){var id=target.data(\"ui-tooltip-id\");return id?this.tooltips[id]:null;},_removeTooltip:function(tooltip){clearInterval(this.delayedShow);tooltip.remove();delete this.tooltips[tooltip.attr(\"id\")];},_appendTo:function(target){var element=target.closest(\".ui-front, dialog\");if(!element.length){element=this.document[0].body;}\nreturn element;},_destroy:function(){var that=this;$.each(this.tooltips,function(id,tooltipData){var event=$.Event(\"blur\"),element=tooltipData.element;event.target=event.currentTarget=element[0];that.close(event,true);$(\"#\"+id).remove();if(element.data(\"ui-tooltip-title\")){if(!element.attr(\"title\")){element.attr(\"title\",element.data(\"ui-tooltip-title\"));}\nelement.removeData(\"ui-tooltip-title\");}});this.liveRegion.remove();}});if($.uiBackCompat!==false){$.widget(\"ui.tooltip\",$.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var tooltipData=this._superApply(arguments);if(this.options.tooltipClass){tooltipData.tooltip.addClass(this.options.tooltipClass);}\nreturn tooltipData;}});}\nreturn $.ui.tooltip;});","jquery/ui-modules/widgets/accordion.min.js":"/*!\n * jQuery UI Accordion 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"../version\",\"../keycode\",\"../unique-id\",\"../widget\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";return $.widget(\"ui.accordion\",{version:\"1.13.2\",options:{active:0,animate:{},classes:{\"ui-accordion-header\":\"ui-corner-top\",\"ui-accordion-header-collapsed\":\"ui-corner-all\",\"ui-accordion-content\":\"ui-corner-bottom\"},collapsible:false,event:\"click\",header:function(elem){return elem.find(\"> li > :first-child\").add(elem.find(\"> :not(li)\").even());},heightStyle:\"auto\",icons:{activeHeader:\"ui-icon-triangle-1-s\",header:\"ui-icon-triangle-1-e\"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:\"hide\",borderBottomWidth:\"hide\",paddingTop:\"hide\",paddingBottom:\"hide\",height:\"hide\"},showProps:{borderTopWidth:\"show\",borderBottomWidth:\"show\",paddingTop:\"show\",paddingBottom:\"show\",height:\"show\"},_create:function(){var options=this.options;this.prevShow=this.prevHide=$();this._addClass(\"ui-accordion\",\"ui-widget ui-helper-reset\");this.element.attr(\"role\",\"tablist\");if(!options.collapsible&&(options.active===false||options.active==null)){options.active=0;}\nthis._processPanels();if(options.active<0){options.active+=this.headers.length;}\nthis._refresh();},_getCreateEventData:function(){return{header:this.active,panel:!this.active.length?$():this.active.next()};},_createIcons:function(){var icon,children,icons=this.options.icons;if(icons){icon=$(\"<span>\");this._addClass(icon,\"ui-accordion-header-icon\",\"ui-icon \"+icons.header);icon.prependTo(this.headers);children=this.active.children(\".ui-accordion-header-icon\");this._removeClass(children,icons.header)._addClass(children,null,icons.activeHeader)._addClass(this.headers,\"ui-accordion-icons\");}},_destroyIcons:function(){this._removeClass(this.headers,\"ui-accordion-icons\");this.headers.children(\".ui-accordion-header-icon\").remove();},_destroy:function(){var contents;this.element.removeAttr(\"role\");this.headers.removeAttr(\"role aria-expanded aria-selected aria-controls tabIndex\").removeUniqueId();this._destroyIcons();contents=this.headers.next().css(\"display\",\"\").removeAttr(\"role aria-hidden aria-labelledby\").removeUniqueId();if(this.options.heightStyle!==\"content\"){contents.css(\"height\",\"\");}},_setOption:function(key,value){if(key===\"active\"){this._activate(value);return;}\nif(key===\"event\"){if(this.options.event){this._off(this.headers,this.options.event);}\nthis._setupEvents(value);}\nthis._super(key,value);if(key===\"collapsible\"&&!value&&this.options.active===false){this._activate(0);}\nif(key===\"icons\"){this._destroyIcons();if(value){this._createIcons();}}},_setOptionDisabled:function(value){this._super(value);this.element.attr(\"aria-disabled\",value);this._toggleClass(null,\"ui-state-disabled\",!!value);this._toggleClass(this.headers.add(this.headers.next()),null,\"ui-state-disabled\",!!value);},_keydown:function(event){if(event.altKey||event.ctrlKey){return;}\nvar keyCode=$.ui.keyCode,length=this.headers.length,currentIndex=this.headers.index(event.target),toFocus=false;switch(event.keyCode){case keyCode.RIGHT:case keyCode.DOWN:toFocus=this.headers[(currentIndex+1)%length];break;case keyCode.LEFT:case keyCode.UP:toFocus=this.headers[(currentIndex-1+length)%length];break;case keyCode.SPACE:case keyCode.ENTER:this._eventHandler(event);break;case keyCode.HOME:toFocus=this.headers[0];break;case keyCode.END:toFocus=this.headers[length-1];break;}\nif(toFocus){$(event.target).attr(\"tabIndex\",-1);$(toFocus).attr(\"tabIndex\",0);$(toFocus).trigger(\"focus\");event.preventDefault();}},_panelKeyDown:function(event){if(event.keyCode===$.ui.keyCode.UP&&event.ctrlKey){$(event.currentTarget).prev().trigger(\"focus\");}},refresh:function(){var options=this.options;this._processPanels();if((options.active===false&&options.collapsible===true)||!this.headers.length){options.active=false;this.active=$();}else if(options.active===false){this._activate(0);}else if(this.active.length&&!$.contains(this.element[0],this.active[0])){if(this.headers.length===this.headers.find(\".ui-state-disabled\").length){options.active=false;this.active=$();}else{this._activate(Math.max(0,options.active-1));}}else{options.active=this.headers.index(this.active);}\nthis._destroyIcons();this._refresh();},_processPanels:function(){var prevHeaders=this.headers,prevPanels=this.panels;if(typeof this.options.header===\"function\"){this.headers=this.options.header(this.element);}else{this.headers=this.element.find(this.options.header);}\nthis._addClass(this.headers,\"ui-accordion-header ui-accordion-header-collapsed\",\"ui-state-default\");this.panels=this.headers.next().filter(\":not(.ui-accordion-content-active)\").hide();this._addClass(this.panels,\"ui-accordion-content\",\"ui-helper-reset ui-widget-content\");if(prevPanels){this._off(prevHeaders.not(this.headers));this._off(prevPanels.not(this.panels));}},_refresh:function(){var maxHeight,options=this.options,heightStyle=options.heightStyle,parent=this.element.parent();this.active=this._findActive(options.active);this._addClass(this.active,\"ui-accordion-header-active\",\"ui-state-active\")._removeClass(this.active,\"ui-accordion-header-collapsed\");this._addClass(this.active.next(),\"ui-accordion-content-active\");this.active.next().show();this.headers.attr(\"role\",\"tab\").each(function(){var header=$(this),headerId=header.uniqueId().attr(\"id\"),panel=header.next(),panelId=panel.uniqueId().attr(\"id\");header.attr(\"aria-controls\",panelId);panel.attr(\"aria-labelledby\",headerId);}).next().attr(\"role\",\"tabpanel\");this.headers.not(this.active).attr({\"aria-selected\":\"false\",\"aria-expanded\":\"false\",tabIndex:-1}).next().attr({\"aria-hidden\":\"true\"}).hide();if(!this.active.length){this.headers.eq(0).attr(\"tabIndex\",0);}else{this.active.attr({\"aria-selected\":\"true\",\"aria-expanded\":\"true\",tabIndex:0}).next().attr({\"aria-hidden\":\"false\"});}\nthis._createIcons();this._setupEvents(options.event);if(heightStyle===\"fill\"){maxHeight=parent.height();this.element.siblings(\":visible\").each(function(){var elem=$(this),position=elem.css(\"position\");if(position===\"absolute\"||position===\"fixed\"){return;}\nmaxHeight-=elem.outerHeight(true);});this.headers.each(function(){maxHeight-=$(this).outerHeight(true);});this.headers.next().each(function(){$(this).height(Math.max(0,maxHeight-\n$(this).innerHeight()+$(this).height()));}).css(\"overflow\",\"auto\");}else if(heightStyle===\"auto\"){maxHeight=0;this.headers.next().each(function(){var isVisible=$(this).is(\":visible\");if(!isVisible){$(this).show();}\nmaxHeight=Math.max(maxHeight,$(this).css(\"height\",\"\").height());if(!isVisible){$(this).hide();}}).height(maxHeight);}},_activate:function(index){var active=this._findActive(index)[0];if(active===this.active[0]){return;}\nactive=active||this.active[0];this._eventHandler({target:active,currentTarget:active,preventDefault:$.noop});},_findActive:function(selector){return typeof selector===\"number\"?this.headers.eq(selector):$();},_setupEvents:function(event){var events={keydown:\"_keydown\"};if(event){$.each(event.split(\" \"),function(index,eventName){events[eventName]=\"_eventHandler\";});}\nthis._off(this.headers.add(this.headers.next()));this._on(this.headers,events);this._on(this.headers.next(),{keydown:\"_panelKeyDown\"});this._hoverable(this.headers);this._focusable(this.headers);},_eventHandler:function(event){var activeChildren,clickedChildren,options=this.options,active=this.active,clicked=$(event.currentTarget),clickedIsActive=clicked[0]===active[0],collapsing=clickedIsActive&&options.collapsible,toShow=collapsing?$():clicked.next(),toHide=active.next(),eventData={oldHeader:active,oldPanel:toHide,newHeader:collapsing?$():clicked,newPanel:toShow};event.preventDefault();if((clickedIsActive&&!options.collapsible)||(this._trigger(\"beforeActivate\",event,eventData)===false)){return;}\noptions.active=collapsing?false:this.headers.index(clicked);this.active=clickedIsActive?$():clicked;this._toggle(eventData);this._removeClass(active,\"ui-accordion-header-active\",\"ui-state-active\");if(options.icons){activeChildren=active.children(\".ui-accordion-header-icon\");this._removeClass(activeChildren,null,options.icons.activeHeader)._addClass(activeChildren,null,options.icons.header);}\nif(!clickedIsActive){this._removeClass(clicked,\"ui-accordion-header-collapsed\")._addClass(clicked,\"ui-accordion-header-active\",\"ui-state-active\");if(options.icons){clickedChildren=clicked.children(\".ui-accordion-header-icon\");this._removeClass(clickedChildren,null,options.icons.header)._addClass(clickedChildren,null,options.icons.activeHeader);}\nthis._addClass(clicked.next(),\"ui-accordion-content-active\");}},_toggle:function(data){var toShow=data.newPanel,toHide=this.prevShow.length?this.prevShow:data.oldPanel;this.prevShow.add(this.prevHide).stop(true,true);this.prevShow=toShow;this.prevHide=toHide;if(this.options.animate){this._animate(toShow,toHide,data);}else{toHide.hide();toShow.show();this._toggleComplete(data);}\ntoHide.attr({\"aria-hidden\":\"true\"});toHide.prev().attr({\"aria-selected\":\"false\",\"aria-expanded\":\"false\"});if(toShow.length&&toHide.length){toHide.prev().attr({\"tabIndex\":-1,\"aria-expanded\":\"false\"});}else if(toShow.length){this.headers.filter(function(){return parseInt($(this).attr(\"tabIndex\"),10)===0;}).attr(\"tabIndex\",-1);}\ntoShow.attr(\"aria-hidden\",\"false\").prev().attr({\"aria-selected\":\"true\",\"aria-expanded\":\"true\",tabIndex:0});},_animate:function(toShow,toHide,data){var total,easing,duration,that=this,adjust=0,boxSizing=toShow.css(\"box-sizing\"),down=toShow.length&&(!toHide.length||(toShow.index()<toHide.index())),animate=this.options.animate||{},options=down&&animate.down||animate,complete=function(){that._toggleComplete(data);};if(typeof options===\"number\"){duration=options;}\nif(typeof options===\"string\"){easing=options;}\neasing=easing||options.easing||animate.easing;duration=duration||options.duration||animate.duration;if(!toHide.length){return toShow.animate(this.showProps,duration,easing,complete);}\nif(!toShow.length){return toHide.animate(this.hideProps,duration,easing,complete);}\ntotal=toShow.show().outerHeight();toHide.animate(this.hideProps,{duration:duration,easing:easing,step:function(now,fx){fx.now=Math.round(now);}});toShow.hide().animate(this.showProps,{duration:duration,easing:easing,complete:complete,step:function(now,fx){fx.now=Math.round(now);if(fx.prop!==\"height\"){if(boxSizing===\"content-box\"){adjust+=fx.now;}}else if(that.options.heightStyle!==\"content\"){fx.now=Math.round(total-toHide.outerHeight()-adjust);adjust=0;}}});},_toggleComplete:function(data){var toHide=data.oldPanel,prev=toHide.prev();this._removeClass(toHide,\"ui-accordion-content-active\");this._removeClass(prev,\"ui-accordion-header-active\")._addClass(prev,\"ui-accordion-header-collapsed\");if(toHide.length){toHide.parent()[0].className=toHide.parent()[0].className;}\nthis._trigger(\"activate\",null,data);}});});","jquery/ui-modules/widgets/menu.min.js":"/*!\n * jQuery UI Menu 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"../keycode\",\"../position\",\"../safe-active-element\",\"../unique-id\",\"../version\",\"../widget\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";return $.widget(\"ui.menu\",{version:\"1.13.2\",defaultElement:\"<ul>\",delay:300,options:{icons:{submenu:\"ui-icon-caret-1-e\"},items:\"> *\",menus:\"ul\",position:{my:\"left top\",at:\"right top\"},role:\"menu\",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element;this.mouseHandled=false;this.lastMousePosition={x:null,y:null};this.element.uniqueId().attr({role:this.options.role,tabIndex:0});this._addClass(\"ui-menu\",\"ui-widget ui-widget-content\");this._on({\"mousedown .ui-menu-item\":function(event){event.preventDefault();this._activateItem(event);},\"click .ui-menu-item\":function(event){var target=$(event.target);var active=$($.ui.safeActiveElement(this.document[0]));if(!this.mouseHandled&&target.not(\".ui-state-disabled\").length){this.select(event);if(!event.isPropagationStopped()){this.mouseHandled=true;}\nif(target.has(\".ui-menu\").length){this.expand(event);}else if(!this.element.is(\":focus\")&&active.closest(\".ui-menu\").length){this.element.trigger(\"focus\",[true]);if(this.active&&this.active.parents(\".ui-menu\").length===1){clearTimeout(this.timer);}}}},\"mouseenter .ui-menu-item\":\"_activateItem\",\"mousemove .ui-menu-item\":\"_activateItem\",mouseleave:\"collapseAll\",\"mouseleave .ui-menu\":\"collapseAll\",focus:function(event,keepActiveItem){var item=this.active||this._menuItems().first();if(!keepActiveItem){this.focus(event,item);}},blur:function(event){this._delay(function(){var notContained=!$.contains(this.element[0],$.ui.safeActiveElement(this.document[0]));if(notContained){this.collapseAll(event);}});},keydown:\"_keydown\"});this.refresh();this._on(this.document,{click:function(event){if(this._closeOnDocumentClick(event)){this.collapseAll(event,true);}\nthis.mouseHandled=false;}});},_activateItem:function(event){if(this.previousFilter){return;}\nif(event.clientX===this.lastMousePosition.x&&event.clientY===this.lastMousePosition.y){return;}\nthis.lastMousePosition={x:event.clientX,y:event.clientY};var actualTarget=$(event.target).closest(\".ui-menu-item\"),target=$(event.currentTarget);if(actualTarget[0]!==target[0]){return;}\nif(target.is(\".ui-state-active\")){return;}\nthis._removeClass(target.siblings().children(\".ui-state-active\"),null,\"ui-state-active\");this.focus(event,target);},_destroy:function(){var items=this.element.find(\".ui-menu-item\").removeAttr(\"role aria-disabled\"),submenus=items.children(\".ui-menu-item-wrapper\").removeUniqueId().removeAttr(\"tabIndex role aria-haspopup\");this.element.removeAttr(\"aria-activedescendant\").find(\".ui-menu\").addBack().removeAttr(\"role aria-labelledby aria-expanded aria-hidden aria-disabled \"+\"tabIndex\").removeUniqueId().show();submenus.children().each(function(){var elem=$(this);if(elem.data(\"ui-menu-submenu-caret\")){elem.remove();}});},_keydown:function(event){var match,prev,character,skip,preventDefault=true;switch(event.keyCode){case $.ui.keyCode.PAGE_UP:this.previousPage(event);break;case $.ui.keyCode.PAGE_DOWN:this.nextPage(event);break;case $.ui.keyCode.HOME:this._move(\"first\",\"first\",event);break;case $.ui.keyCode.END:this._move(\"last\",\"last\",event);break;case $.ui.keyCode.UP:this.previous(event);break;case $.ui.keyCode.DOWN:this.next(event);break;case $.ui.keyCode.LEFT:this.collapse(event);break;case $.ui.keyCode.RIGHT:if(this.active&&!this.active.is(\".ui-state-disabled\")){this.expand(event);}\nbreak;case $.ui.keyCode.ENTER:case $.ui.keyCode.SPACE:this._activate(event);break;case $.ui.keyCode.ESCAPE:this.collapse(event);break;default:preventDefault=false;prev=this.previousFilter||\"\";skip=false;character=event.keyCode>=96&&event.keyCode<=105?(event.keyCode-96).toString():String.fromCharCode(event.keyCode);clearTimeout(this.filterTimer);if(character===prev){skip=true;}else{character=prev+character;}\nmatch=this._filterMenuItems(character);match=skip&&match.index(this.active.next())!==-1?this.active.nextAll(\".ui-menu-item\"):match;if(!match.length){character=String.fromCharCode(event.keyCode);match=this._filterMenuItems(character);}\nif(match.length){this.focus(event,match);this.previousFilter=character;this.filterTimer=this._delay(function(){delete this.previousFilter;},1000);}else{delete this.previousFilter;}}\nif(preventDefault){event.preventDefault();}},_activate:function(event){if(this.active&&!this.active.is(\".ui-state-disabled\")){if(this.active.children(\"[aria-haspopup='true']\").length){this.expand(event);}else{this.select(event);}}},refresh:function(){var menus,items,newSubmenus,newItems,newWrappers,that=this,icon=this.options.icons.submenu,submenus=this.element.find(this.options.menus);this._toggleClass(\"ui-menu-icons\",null,!!this.element.find(\".ui-icon\").length);newSubmenus=submenus.filter(\":not(.ui-menu)\").hide().attr({role:this.options.role,\"aria-hidden\":\"true\",\"aria-expanded\":\"false\"}).each(function(){var menu=$(this),item=menu.prev(),submenuCaret=$(\"<span>\").data(\"ui-menu-submenu-caret\",true);that._addClass(submenuCaret,\"ui-menu-icon\",\"ui-icon \"+icon);item.attr(\"aria-haspopup\",\"true\").prepend(submenuCaret);menu.attr(\"aria-labelledby\",item.attr(\"id\"));});this._addClass(newSubmenus,\"ui-menu\",\"ui-widget ui-widget-content ui-front\");menus=submenus.add(this.element);items=menus.find(this.options.items);items.not(\".ui-menu-item\").each(function(){var item=$(this);if(that._isDivider(item)){that._addClass(item,\"ui-menu-divider\",\"ui-widget-content\");}});newItems=items.not(\".ui-menu-item, .ui-menu-divider\");newWrappers=newItems.children().not(\".ui-menu\").uniqueId().attr({tabIndex:-1,role:this._itemRole()});this._addClass(newItems,\"ui-menu-item\")._addClass(newWrappers,\"ui-menu-item-wrapper\");items.filter(\".ui-state-disabled\").attr(\"aria-disabled\",\"true\");if(this.active&&!$.contains(this.element[0],this.active[0])){this.blur();}},_itemRole:function(){return{menu:\"menuitem\",listbox:\"option\"}[this.options.role];},_setOption:function(key,value){if(key===\"icons\"){var icons=this.element.find(\".ui-menu-icon\");this._removeClass(icons,null,this.options.icons.submenu)._addClass(icons,null,value.submenu);}\nthis._super(key,value);},_setOptionDisabled:function(value){this._super(value);this.element.attr(\"aria-disabled\",String(value));this._toggleClass(null,\"ui-state-disabled\",!!value);},focus:function(event,item){var nested,focused,activeParent;this.blur(event,event&&event.type===\"focus\");this._scrollIntoView(item);this.active=item.first();focused=this.active.children(\".ui-menu-item-wrapper\");this._addClass(focused,null,\"ui-state-active\");if(this.options.role){this.element.attr(\"aria-activedescendant\",focused.attr(\"id\"));}\nactiveParent=this.active.parent().closest(\".ui-menu-item\").children(\".ui-menu-item-wrapper\");this._addClass(activeParent,null,\"ui-state-active\");if(event&&event.type===\"keydown\"){this._close();}else{this.timer=this._delay(function(){this._close();},this.delay);}\nnested=item.children(\".ui-menu\");if(nested.length&&event&&(/^mouse/.test(event.type))){this._startOpening(nested);}\nthis.activeMenu=item.parent();this._trigger(\"focus\",event,{item:item});},_scrollIntoView:function(item){var borderTop,paddingTop,offset,scroll,elementHeight,itemHeight;if(this._hasScroll()){borderTop=parseFloat($.css(this.activeMenu[0],\"borderTopWidth\"))||0;paddingTop=parseFloat($.css(this.activeMenu[0],\"paddingTop\"))||0;offset=item.offset().top-this.activeMenu.offset().top-borderTop-paddingTop;scroll=this.activeMenu.scrollTop();elementHeight=this.activeMenu.height();itemHeight=item.outerHeight();if(offset<0){this.activeMenu.scrollTop(scroll+offset);}else if(offset+itemHeight>elementHeight){this.activeMenu.scrollTop(scroll+offset-elementHeight+itemHeight);}}},blur:function(event,fromFocus){if(!fromFocus){clearTimeout(this.timer);}\nif(!this.active){return;}\nthis._removeClass(this.active.children(\".ui-menu-item-wrapper\"),null,\"ui-state-active\");this._trigger(\"blur\",event,{item:this.active});this.active=null;},_startOpening:function(submenu){clearTimeout(this.timer);if(submenu.attr(\"aria-hidden\")!==\"true\"){return;}\nthis.timer=this._delay(function(){this._close();this._open(submenu);},this.delay);},_open:function(submenu){var position=$.extend({of:this.active},this.options.position);clearTimeout(this.timer);this.element.find(\".ui-menu\").not(submenu.parents(\".ui-menu\")).hide().attr(\"aria-hidden\",\"true\");submenu.show().removeAttr(\"aria-hidden\").attr(\"aria-expanded\",\"true\").position(position);},collapseAll:function(event,all){clearTimeout(this.timer);this.timer=this._delay(function(){var currentMenu=all?this.element:$(event&&event.target).closest(this.element.find(\".ui-menu\"));if(!currentMenu.length){currentMenu=this.element;}\nthis._close(currentMenu);this.blur(event);this._removeClass(currentMenu.find(\".ui-state-active\"),null,\"ui-state-active\");this.activeMenu=currentMenu;},all?0:this.delay);},_close:function(startMenu){if(!startMenu){startMenu=this.active?this.active.parent():this.element;}\nstartMenu.find(\".ui-menu\").hide().attr(\"aria-hidden\",\"true\").attr(\"aria-expanded\",\"false\");},_closeOnDocumentClick:function(event){return!$(event.target).closest(\".ui-menu\").length;},_isDivider:function(item){return!/[^\\-\\u2014\\u2013\\s]/.test(item.text());},collapse:function(event){var newItem=this.active&&this.active.parent().closest(\".ui-menu-item\",this.element);if(newItem&&newItem.length){this._close();this.focus(event,newItem);}},expand:function(event){var newItem=this.active&&this._menuItems(this.active.children(\".ui-menu\")).first();if(newItem&&newItem.length){this._open(newItem.parent());this._delay(function(){this.focus(event,newItem);});}},next:function(event){this._move(\"next\",\"first\",event);},previous:function(event){this._move(\"prev\",\"last\",event);},isFirstItem:function(){return this.active&&!this.active.prevAll(\".ui-menu-item\").length;},isLastItem:function(){return this.active&&!this.active.nextAll(\".ui-menu-item\").length;},_menuItems:function(menu){return(menu||this.element).find(this.options.items).filter(\".ui-menu-item\");},_move:function(direction,filter,event){var next;if(this.active){if(direction===\"first\"||direction===\"last\"){next=this.active\n[direction===\"first\"?\"prevAll\":\"nextAll\"](\".ui-menu-item\").last();}else{next=this.active\n[direction+\"All\"](\".ui-menu-item\").first();}}\nif(!next||!next.length||!this.active){next=this._menuItems(this.activeMenu)[filter]();}\nthis.focus(event,next);},nextPage:function(event){var item,base,height;if(!this.active){this.next(event);return;}\nif(this.isLastItem()){return;}\nif(this._hasScroll()){base=this.active.offset().top;height=this.element.innerHeight();if($.fn.jquery.indexOf(\"3.2.\")===0){height+=this.element[0].offsetHeight-this.element.outerHeight();}\nthis.active.nextAll(\".ui-menu-item\").each(function(){item=$(this);return item.offset().top-base-height<0;});this.focus(event,item);}else{this.focus(event,this._menuItems(this.activeMenu)\n[!this.active?\"first\":\"last\"]());}},previousPage:function(event){var item,base,height;if(!this.active){this.next(event);return;}\nif(this.isFirstItem()){return;}\nif(this._hasScroll()){base=this.active.offset().top;height=this.element.innerHeight();if($.fn.jquery.indexOf(\"3.2.\")===0){height+=this.element[0].offsetHeight-this.element.outerHeight();}\nthis.active.prevAll(\".ui-menu-item\").each(function(){item=$(this);return item.offset().top-base+height>0;});this.focus(event,item);}else{this.focus(event,this._menuItems(this.activeMenu).first());}},_hasScroll:function(){return this.element.outerHeight()<this.element.prop(\"scrollHeight\");},select:function(event){this.active=this.active||$(event.target).closest(\".ui-menu-item\");var ui={item:this.active};if(!this.active.has(\".ui-menu\").length){this.collapseAll(event,true);}\nthis._trigger(\"select\",event,ui);},_filterMenuItems:function(character){var escapedCharacter=character.replace(/[\\-\\[\\]{}()*+?.,\\\\\\^$|#\\s]/g,\"\\\\$&\"),regex=new RegExp(\"^\"+escapedCharacter,\"i\");return this.activeMenu.find(this.options.items).filter(\".ui-menu-item\").filter(function(){return regex.test(String.prototype.trim.call($(this).children(\".ui-menu-item-wrapper\").text()));});}});});","jquery/ui-modules/widgets/sortable.min.js":"/*!\n * jQuery UI Sortable 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"./mouse\",\"../data\",\"../ie\",\"../scroll-parent\",\"../version\",\"../widget\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";return $.widget(\"ui.sortable\",$.ui.mouse,{version:\"1.13.2\",widgetEventPrefix:\"sort\",ready:false,options:{appendTo:\"parent\",axis:false,connectWith:false,containment:false,cursor:\"auto\",cursorAt:false,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:\"original\",items:\"> *\",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:\"default\",tolerance:\"intersect\",zIndex:1000,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(x,reference,size){return(x>=reference)&&(x<(reference+size));},_isFloating:function(item){return(/left|right/).test(item.css(\"float\"))||(/inline|table-cell/).test(item.css(\"display\"));},_create:function(){this.containerCache={};this._addClass(\"ui-sortable\");this.refresh();this.offset=this.element.offset();this._mouseInit();this._setHandleClassName();this.ready=true;},_setOption:function(key,value){this._super(key,value);if(key===\"handle\"){this._setHandleClassName();}},_setHandleClassName:function(){var that=this;this._removeClass(this.element.find(\".ui-sortable-handle\"),\"ui-sortable-handle\");$.each(this.items,function(){that._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,\"ui-sortable-handle\");});},_destroy:function(){this._mouseDestroy();for(var i=this.items.length-1;i>=0;i--){this.items[i].item.removeData(this.widgetName+\"-item\");}\nreturn this;},_mouseCapture:function(event,overrideHandle){var currentItem=null,validHandle=false,that=this;if(this.reverting){return false;}\nif(this.options.disabled||this.options.type===\"static\"){return false;}\nthis._refreshItems(event);$(event.target).parents().each(function(){if($.data(this,that.widgetName+\"-item\")===that){currentItem=$(this);return false;}});if($.data(event.target,that.widgetName+\"-item\")===that){currentItem=$(event.target);}\nif(!currentItem){return false;}\nif(this.options.handle&&!overrideHandle){$(this.options.handle,currentItem).find(\"*\").addBack().each(function(){if(this===event.target){validHandle=true;}});if(!validHandle){return false;}}\nthis.currentItem=currentItem;this._removeCurrentsFromItems();return true;},_mouseStart:function(event,overrideHandle,noActivation){var i,body,o=this.options;this.currentContainer=this;this.refreshPositions();this.appendTo=$(o.appendTo!==\"parent\"?o.appendTo:this.currentItem.parent());this.helper=this._createHelper(event);this._cacheHelperProportions();this._cacheMargins();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};$.extend(this.offset,{click:{left:event.pageX-this.offset.left,top:event.pageY-this.offset.top},relative:this._getRelativeOffset()});this.helper.css(\"position\",\"absolute\");this.cssPosition=this.helper.css(\"position\");if(o.cursorAt){this._adjustOffsetFromHelper(o.cursorAt);}\nthis.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};if(this.helper[0]!==this.currentItem[0]){this.currentItem.hide();}\nthis._createPlaceholder();this.scrollParent=this.placeholder.scrollParent();$.extend(this.offset,{parent:this._getParentOffset()});if(o.containment){this._setContainment();}\nif(o.cursor&&o.cursor!==\"auto\"){body=this.document.find(\"body\");this.storedCursor=body.css(\"cursor\");body.css(\"cursor\",o.cursor);this.storedStylesheet=$(\"<style>*{ cursor: \"+o.cursor+\" !important; }</style>\").appendTo(body);}\nif(o.zIndex){if(this.helper.css(\"zIndex\")){this._storedZIndex=this.helper.css(\"zIndex\");}\nthis.helper.css(\"zIndex\",o.zIndex);}\nif(o.opacity){if(this.helper.css(\"opacity\")){this._storedOpacity=this.helper.css(\"opacity\");}\nthis.helper.css(\"opacity\",o.opacity);}\nif(this.scrollParent[0]!==this.document[0]&&this.scrollParent[0].tagName!==\"HTML\"){this.overflowOffset=this.scrollParent.offset();}\nthis._trigger(\"start\",event,this._uiHash());if(!this._preserveHelperProportions){this._cacheHelperProportions();}\nif(!noActivation){for(i=this.containers.length-1;i>=0;i--){this.containers[i]._trigger(\"activate\",event,this._uiHash(this));}}\nif($.ui.ddmanager){$.ui.ddmanager.current=this;}\nif($.ui.ddmanager&&!o.dropBehaviour){$.ui.ddmanager.prepareOffsets(this,event);}\nthis.dragging=true;this._addClass(this.helper,\"ui-sortable-helper\");if(!this.helper.parent().is(this.appendTo)){this.helper.detach().appendTo(this.appendTo);this.offset.parent=this._getParentOffset();}\nthis.position=this.originalPosition=this._generatePosition(event);this.originalPageX=event.pageX;this.originalPageY=event.pageY;this.lastPositionAbs=this.positionAbs=this._convertPositionTo(\"absolute\");this._mouseDrag(event);return true;},_scroll:function(event){var o=this.options,scrolled=false;if(this.scrollParent[0]!==this.document[0]&&this.scrollParent[0].tagName!==\"HTML\"){if((this.overflowOffset.top+this.scrollParent[0].offsetHeight)-\nevent.pageY<o.scrollSensitivity){this.scrollParent[0].scrollTop=scrolled=this.scrollParent[0].scrollTop+o.scrollSpeed;}else if(event.pageY-this.overflowOffset.top<o.scrollSensitivity){this.scrollParent[0].scrollTop=scrolled=this.scrollParent[0].scrollTop-o.scrollSpeed;}\nif((this.overflowOffset.left+this.scrollParent[0].offsetWidth)-\nevent.pageX<o.scrollSensitivity){this.scrollParent[0].scrollLeft=scrolled=this.scrollParent[0].scrollLeft+o.scrollSpeed;}else if(event.pageX-this.overflowOffset.left<o.scrollSensitivity){this.scrollParent[0].scrollLeft=scrolled=this.scrollParent[0].scrollLeft-o.scrollSpeed;}}else{if(event.pageY-this.document.scrollTop()<o.scrollSensitivity){scrolled=this.document.scrollTop(this.document.scrollTop()-o.scrollSpeed);}else if(this.window.height()-(event.pageY-this.document.scrollTop())<o.scrollSensitivity){scrolled=this.document.scrollTop(this.document.scrollTop()+o.scrollSpeed);}\nif(event.pageX-this.document.scrollLeft()<o.scrollSensitivity){scrolled=this.document.scrollLeft(this.document.scrollLeft()-o.scrollSpeed);}else if(this.window.width()-(event.pageX-this.document.scrollLeft())<o.scrollSensitivity){scrolled=this.document.scrollLeft(this.document.scrollLeft()+o.scrollSpeed);}}\nreturn scrolled;},_mouseDrag:function(event){var i,item,itemElement,intersection,o=this.options;this.position=this._generatePosition(event);this.positionAbs=this._convertPositionTo(\"absolute\");if(!this.options.axis||this.options.axis!==\"y\"){this.helper[0].style.left=this.position.left+\"px\";}\nif(!this.options.axis||this.options.axis!==\"x\"){this.helper[0].style.top=this.position.top+\"px\";}\nif(o.scroll){if(this._scroll(event)!==false){this._refreshItemPositions(true);if($.ui.ddmanager&&!o.dropBehaviour){$.ui.ddmanager.prepareOffsets(this,event);}}}\nthis.dragDirection={vertical:this._getDragVerticalDirection(),horizontal:this._getDragHorizontalDirection()};for(i=this.items.length-1;i>=0;i--){item=this.items[i];itemElement=item.item[0];intersection=this._intersectsWithPointer(item);if(!intersection){continue;}\nif(item.instance!==this.currentContainer){continue;}\nif(itemElement!==this.currentItem[0]&&this.placeholder[intersection===1?\"next\":\"prev\"]()[0]!==itemElement&&!$.contains(this.placeholder[0],itemElement)&&(this.options.type===\"semi-dynamic\"?!$.contains(this.element[0],itemElement):true)){this.direction=intersection===1?\"down\":\"up\";if(this.options.tolerance===\"pointer\"||this._intersectsWithSides(item)){this._rearrange(event,item);}else{break;}\nthis._trigger(\"change\",event,this._uiHash());break;}}\nthis._contactContainers(event);if($.ui.ddmanager){$.ui.ddmanager.drag(this,event);}\nthis._trigger(\"sort\",event,this._uiHash());this.lastPositionAbs=this.positionAbs;return false;},_mouseStop:function(event,noPropagation){if(!event){return;}\nif($.ui.ddmanager&&!this.options.dropBehaviour){$.ui.ddmanager.drop(this,event);}\nif(this.options.revert){var that=this,cur=this.placeholder.offset(),axis=this.options.axis,animation={};if(!axis||axis===\"x\"){animation.left=cur.left-this.offset.parent.left-this.margins.left+\n(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft);}\nif(!axis||axis===\"y\"){animation.top=cur.top-this.offset.parent.top-this.margins.top+\n(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop);}\nthis.reverting=true;$(this.helper).animate(animation,parseInt(this.options.revert,10)||500,function(){that._clear(event);});}else{this._clear(event,noPropagation);}\nreturn false;},cancel:function(){if(this.dragging){this._mouseUp(new $.Event(\"mouseup\",{target:null}));if(this.options.helper===\"original\"){this.currentItem.css(this._storedCSS);this._removeClass(this.currentItem,\"ui-sortable-helper\");}else{this.currentItem.show();}\nfor(var i=this.containers.length-1;i>=0;i--){this.containers[i]._trigger(\"deactivate\",null,this._uiHash(this));if(this.containers[i].containerCache.over){this.containers[i]._trigger(\"out\",null,this._uiHash(this));this.containers[i].containerCache.over=0;}}}\nif(this.placeholder){if(this.placeholder[0].parentNode){this.placeholder[0].parentNode.removeChild(this.placeholder[0]);}\nif(this.options.helper!==\"original\"&&this.helper&&this.helper[0].parentNode){this.helper.remove();}\n$.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});if(this.domPosition.prev){$(this.domPosition.prev).after(this.currentItem);}else{$(this.domPosition.parent).prepend(this.currentItem);}}\nreturn this;},serialize:function(o){var items=this._getItemsAsjQuery(o&&o.connected),str=[];o=o||{};$(items).each(function(){var res=($(o.item||this).attr(o.attribute||\"id\")||\"\").match(o.expression||(/(.+)[\\-=_](.+)/));if(res){str.push((o.key||res[1]+\"[]\")+\"=\"+(o.key&&o.expression?res[1]:res[2]));}});if(!str.length&&o.key){str.push(o.key+\"=\");}\nreturn str.join(\"&\");},toArray:function(o){var items=this._getItemsAsjQuery(o&&o.connected),ret=[];o=o||{};items.each(function(){ret.push($(o.item||this).attr(o.attribute||\"id\")||\"\");});return ret;},_intersectsWith:function(item){var x1=this.positionAbs.left,x2=x1+this.helperProportions.width,y1=this.positionAbs.top,y2=y1+this.helperProportions.height,l=item.left,r=l+item.width,t=item.top,b=t+item.height,dyClick=this.offset.click.top,dxClick=this.offset.click.left,isOverElementHeight=(this.options.axis===\"x\")||((y1+dyClick)>t&&(y1+dyClick)<b),isOverElementWidth=(this.options.axis===\"y\")||((x1+dxClick)>l&&(x1+dxClick)<r),isOverElement=isOverElementHeight&&isOverElementWidth;if(this.options.tolerance===\"pointer\"||this.options.forcePointerForContainers||(this.options.tolerance!==\"pointer\"&&this.helperProportions[this.floating?\"width\":\"height\"]>item[this.floating?\"width\":\"height\"])){return isOverElement;}else{return(l<x1+(this.helperProportions.width / 2)&&x2-(this.helperProportions.width / 2)<r&&t<y1+(this.helperProportions.height / 2)&&y2-(this.helperProportions.height / 2)<b);}},_intersectsWithPointer:function(item){var verticalDirection,horizontalDirection,isOverElementHeight=(this.options.axis===\"x\")||this._isOverAxis(this.positionAbs.top+this.offset.click.top,item.top,item.height),isOverElementWidth=(this.options.axis===\"y\")||this._isOverAxis(this.positionAbs.left+this.offset.click.left,item.left,item.width),isOverElement=isOverElementHeight&&isOverElementWidth;if(!isOverElement){return false;}\nverticalDirection=this.dragDirection.vertical;horizontalDirection=this.dragDirection.horizontal;return this.floating?((horizontalDirection===\"right\"||verticalDirection===\"down\")?2:1):(verticalDirection&&(verticalDirection===\"down\"?2:1));},_intersectsWithSides:function(item){var isOverBottomHalf=this._isOverAxis(this.positionAbs.top+\nthis.offset.click.top,item.top+(item.height / 2),item.height),isOverRightHalf=this._isOverAxis(this.positionAbs.left+\nthis.offset.click.left,item.left+(item.width / 2),item.width),verticalDirection=this.dragDirection.vertical,horizontalDirection=this.dragDirection.horizontal;if(this.floating&&horizontalDirection){return((horizontalDirection===\"right\"&&isOverRightHalf)||(horizontalDirection===\"left\"&&!isOverRightHalf));}else{return verticalDirection&&((verticalDirection===\"down\"&&isOverBottomHalf)||(verticalDirection===\"up\"&&!isOverBottomHalf));}},_getDragVerticalDirection:function(){var delta=this.positionAbs.top-this.lastPositionAbs.top;return delta!==0&&(delta>0?\"down\":\"up\");},_getDragHorizontalDirection:function(){var delta=this.positionAbs.left-this.lastPositionAbs.left;return delta!==0&&(delta>0?\"right\":\"left\");},refresh:function(event){this._refreshItems(event);this._setHandleClassName();this.refreshPositions();return this;},_connectWith:function(){var options=this.options;return options.connectWith.constructor===String?[options.connectWith]:options.connectWith;},_getItemsAsjQuery:function(connected){var i,j,cur,inst,items=[],queries=[],connectWith=this._connectWith();if(connectWith&&connected){for(i=connectWith.length-1;i>=0;i--){cur=$(connectWith[i],this.document[0]);for(j=cur.length-1;j>=0;j--){inst=$.data(cur[j],this.widgetFullName);if(inst&&inst!==this&&!inst.options.disabled){queries.push([typeof inst.options.items===\"function\"?inst.options.items.call(inst.element):$(inst.options.items,inst.element).not(\".ui-sortable-helper\").not(\".ui-sortable-placeholder\"),inst]);}}}}\nqueries.push([typeof this.options.items===\"function\"?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):$(this.options.items,this.element).not(\".ui-sortable-helper\").not(\".ui-sortable-placeholder\"),this]);function addItems(){items.push(this);}\nfor(i=queries.length-1;i>=0;i--){queries[i][0].each(addItems);}\nreturn $(items);},_removeCurrentsFromItems:function(){var list=this.currentItem.find(\":data(\"+this.widgetName+\"-item)\");this.items=$.grep(this.items,function(item){for(var j=0;j<list.length;j++){if(list[j]===item.item[0]){return false;}}\nreturn true;});},_refreshItems:function(event){this.items=[];this.containers=[this];var i,j,cur,inst,targetData,_queries,item,queriesLength,items=this.items,queries=[[typeof this.options.items===\"function\"?this.options.items.call(this.element[0],event,{item:this.currentItem}):$(this.options.items,this.element),this]],connectWith=this._connectWith();if(connectWith&&this.ready){for(i=connectWith.length-1;i>=0;i--){cur=$(connectWith[i],this.document[0]);for(j=cur.length-1;j>=0;j--){inst=$.data(cur[j],this.widgetFullName);if(inst&&inst!==this&&!inst.options.disabled){queries.push([typeof inst.options.items===\"function\"?inst.options.items.call(inst.element[0],event,{item:this.currentItem}):$(inst.options.items,inst.element),inst]);this.containers.push(inst);}}}}\nfor(i=queries.length-1;i>=0;i--){targetData=queries[i][1];_queries=queries[i][0];for(j=0,queriesLength=_queries.length;j<queriesLength;j++){item=$(_queries[j]);item.data(this.widgetName+\"-item\",targetData);items.push({item:item,instance:targetData,width:0,height:0,left:0,top:0});}}},_refreshItemPositions:function(fast){var i,item,t,p;for(i=this.items.length-1;i>=0;i--){item=this.items[i];if(this.currentContainer&&item.instance!==this.currentContainer&&item.item[0]!==this.currentItem[0]){continue;}\nt=this.options.toleranceElement?$(this.options.toleranceElement,item.item):item.item;if(!fast){item.width=t.outerWidth();item.height=t.outerHeight();}\np=t.offset();item.left=p.left;item.top=p.top;}},refreshPositions:function(fast){this.floating=this.items.length?this.options.axis===\"x\"||this._isFloating(this.items[0].item):false;if(this.offsetParent&&this.helper){this.offset.parent=this._getParentOffset();}\nthis._refreshItemPositions(fast);var i,p;if(this.options.custom&&this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this);}else{for(i=this.containers.length-1;i>=0;i--){p=this.containers[i].element.offset();this.containers[i].containerCache.left=p.left;this.containers[i].containerCache.top=p.top;this.containers[i].containerCache.width=this.containers[i].element.outerWidth();this.containers[i].containerCache.height=this.containers[i].element.outerHeight();}}\nreturn this;},_createPlaceholder:function(that){that=that||this;var className,nodeName,o=that.options;if(!o.placeholder||o.placeholder.constructor===String){className=o.placeholder;nodeName=that.currentItem[0].nodeName.toLowerCase();o.placeholder={element:function(){var element=$(\"<\"+nodeName+\">\",that.document[0]);that._addClass(element,\"ui-sortable-placeholder\",className||that.currentItem[0].className)._removeClass(element,\"ui-sortable-helper\");if(nodeName===\"tbody\"){that._createTrPlaceholder(that.currentItem.find(\"tr\").eq(0),$(\"<tr>\",that.document[0]).appendTo(element));}else if(nodeName===\"tr\"){that._createTrPlaceholder(that.currentItem,element);}else if(nodeName===\"img\"){element.attr(\"src\",that.currentItem.attr(\"src\"));}\nif(!className){element.css(\"visibility\",\"hidden\");}\nreturn element;},update:function(container,p){if(className&&!o.forcePlaceholderSize){return;}\nif(!p.height()||(o.forcePlaceholderSize&&(nodeName===\"tbody\"||nodeName===\"tr\"))){p.height(that.currentItem.innerHeight()-\nparseInt(that.currentItem.css(\"paddingTop\")||0,10)-\nparseInt(that.currentItem.css(\"paddingBottom\")||0,10));}\nif(!p.width()){p.width(that.currentItem.innerWidth()-\nparseInt(that.currentItem.css(\"paddingLeft\")||0,10)-\nparseInt(that.currentItem.css(\"paddingRight\")||0,10));}}};}\nthat.placeholder=$(o.placeholder.element.call(that.element,that.currentItem));that.currentItem.after(that.placeholder);o.placeholder.update(that,that.placeholder);},_createTrPlaceholder:function(sourceTr,targetTr){var that=this;sourceTr.children().each(function(){$(\"<td>&#160;</td>\",that.document[0]).attr(\"colspan\",$(this).attr(\"colspan\")||1).appendTo(targetTr);});},_contactContainers:function(event){var i,j,dist,itemWithLeastDistance,posProperty,sizeProperty,cur,nearBottom,floating,axis,innermostContainer=null,innermostIndex=null;for(i=this.containers.length-1;i>=0;i--){if($.contains(this.currentItem[0],this.containers[i].element[0])){continue;}\nif(this._intersectsWith(this.containers[i].containerCache)){if(innermostContainer&&$.contains(this.containers[i].element[0],innermostContainer.element[0])){continue;}\ninnermostContainer=this.containers[i];innermostIndex=i;}else{if(this.containers[i].containerCache.over){this.containers[i]._trigger(\"out\",event,this._uiHash(this));this.containers[i].containerCache.over=0;}}}\nif(!innermostContainer){return;}\nif(this.containers.length===1){if(!this.containers[innermostIndex].containerCache.over){this.containers[innermostIndex]._trigger(\"over\",event,this._uiHash(this));this.containers[innermostIndex].containerCache.over=1;}}else{dist=10000;itemWithLeastDistance=null;floating=innermostContainer.floating||this._isFloating(this.currentItem);posProperty=floating?\"left\":\"top\";sizeProperty=floating?\"width\":\"height\";axis=floating?\"pageX\":\"pageY\";for(j=this.items.length-1;j>=0;j--){if(!$.contains(this.containers[innermostIndex].element[0],this.items[j].item[0])){continue;}\nif(this.items[j].item[0]===this.currentItem[0]){continue;}\ncur=this.items[j].item.offset()[posProperty];nearBottom=false;if(event[axis]-cur>this.items[j][sizeProperty]/ 2){nearBottom=true;}\nif(Math.abs(event[axis]-cur)<dist){dist=Math.abs(event[axis]-cur);itemWithLeastDistance=this.items[j];this.direction=nearBottom?\"up\":\"down\";}}\nif(!itemWithLeastDistance&&!this.options.dropOnEmpty){return;}\nif(this.currentContainer===this.containers[innermostIndex]){if(!this.currentContainer.containerCache.over){this.containers[innermostIndex]._trigger(\"over\",event,this._uiHash());this.currentContainer.containerCache.over=1;}\nreturn;}\nif(itemWithLeastDistance){this._rearrange(event,itemWithLeastDistance,null,true);}else{this._rearrange(event,null,this.containers[innermostIndex].element,true);}\nthis._trigger(\"change\",event,this._uiHash());this.containers[innermostIndex]._trigger(\"change\",event,this._uiHash(this));this.currentContainer=this.containers[innermostIndex];this.options.placeholder.update(this.currentContainer,this.placeholder);this.scrollParent=this.placeholder.scrollParent();if(this.scrollParent[0]!==this.document[0]&&this.scrollParent[0].tagName!==\"HTML\"){this.overflowOffset=this.scrollParent.offset();}\nthis.containers[innermostIndex]._trigger(\"over\",event,this._uiHash(this));this.containers[innermostIndex].containerCache.over=1;}},_createHelper:function(event){var o=this.options,helper=typeof o.helper===\"function\"?$(o.helper.apply(this.element[0],[event,this.currentItem])):(o.helper===\"clone\"?this.currentItem.clone():this.currentItem);if(!helper.parents(\"body\").length){this.appendTo[0].appendChild(helper[0]);}\nif(helper[0]===this.currentItem[0]){this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css(\"position\"),top:this.currentItem.css(\"top\"),left:this.currentItem.css(\"left\")};}\nif(!helper[0].style.width||o.forceHelperSize){helper.width(this.currentItem.width());}\nif(!helper[0].style.height||o.forceHelperSize){helper.height(this.currentItem.height());}\nreturn helper;},_adjustOffsetFromHelper:function(obj){if(typeof obj===\"string\"){obj=obj.split(\" \");}\nif(Array.isArray(obj)){obj={left:+obj[0],top:+obj[1]||0};}\nif(\"left\"in obj){this.offset.click.left=obj.left+this.margins.left;}\nif(\"right\"in obj){this.offset.click.left=this.helperProportions.width-obj.right+this.margins.left;}\nif(\"top\"in obj){this.offset.click.top=obj.top+this.margins.top;}\nif(\"bottom\"in obj){this.offset.click.top=this.helperProportions.height-obj.bottom+this.margins.top;}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var po=this.offsetParent.offset();if(this.cssPosition===\"absolute\"&&this.scrollParent[0]!==this.document[0]&&$.contains(this.scrollParent[0],this.offsetParent[0])){po.left+=this.scrollParent.scrollLeft();po.top+=this.scrollParent.scrollTop();}\nif(this.offsetParent[0]===this.document[0].body||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()===\"html\"&&$.ui.ie)){po={top:0,left:0};}\nreturn{top:po.top+(parseInt(this.offsetParent.css(\"borderTopWidth\"),10)||0),left:po.left+(parseInt(this.offsetParent.css(\"borderLeftWidth\"),10)||0)};},_getRelativeOffset:function(){if(this.cssPosition===\"relative\"){var p=this.currentItem.position();return{top:p.top-(parseInt(this.helper.css(\"top\"),10)||0)+\nthis.scrollParent.scrollTop(),left:p.left-(parseInt(this.helper.css(\"left\"),10)||0)+\nthis.scrollParent.scrollLeft()};}else{return{top:0,left:0};}},_cacheMargins:function(){this.margins={left:(parseInt(this.currentItem.css(\"marginLeft\"),10)||0),top:(parseInt(this.currentItem.css(\"marginTop\"),10)||0)};},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()};},_setContainment:function(){var ce,co,over,o=this.options;if(o.containment===\"parent\"){o.containment=this.helper[0].parentNode;}\nif(o.containment===\"document\"||o.containment===\"window\"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,o.containment===\"document\"?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,(o.containment===\"document\"?(this.document.height()||document.body.parentNode.scrollHeight):this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];}\nif(!(/^(document|window|parent)$/).test(o.containment)){ce=$(o.containment)[0];co=$(o.containment).offset();over=($(ce).css(\"overflow\")!==\"hidden\");this.containment=[co.left+(parseInt($(ce).css(\"borderLeftWidth\"),10)||0)+\n(parseInt($(ce).css(\"paddingLeft\"),10)||0)-this.margins.left,co.top+(parseInt($(ce).css(\"borderTopWidth\"),10)||0)+\n(parseInt($(ce).css(\"paddingTop\"),10)||0)-this.margins.top,co.left+(over?Math.max(ce.scrollWidth,ce.offsetWidth):ce.offsetWidth)-\n(parseInt($(ce).css(\"borderLeftWidth\"),10)||0)-\n(parseInt($(ce).css(\"paddingRight\"),10)||0)-\nthis.helperProportions.width-this.margins.left,co.top+(over?Math.max(ce.scrollHeight,ce.offsetHeight):ce.offsetHeight)-\n(parseInt($(ce).css(\"borderTopWidth\"),10)||0)-\n(parseInt($(ce).css(\"paddingBottom\"),10)||0)-\nthis.helperProportions.height-this.margins.top];}},_convertPositionTo:function(d,pos){if(!pos){pos=this.position;}\nvar mod=d===\"absolute\"?1:-1,scroll=this.cssPosition===\"absolute\"&&!(this.scrollParent[0]!==this.document[0]&&$.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,scrollIsRootNode=(/(html|body)/i).test(scroll[0].tagName);return{top:(pos.top+\nthis.offset.relative.top*mod+\nthis.offset.parent.top*mod-\n((this.cssPosition===\"fixed\"?-this.scrollParent.scrollTop():(scrollIsRootNode?0:scroll.scrollTop()))*mod)),left:(pos.left+\nthis.offset.relative.left*mod+\nthis.offset.parent.left*mod-\n((this.cssPosition===\"fixed\"?-this.scrollParent.scrollLeft():scrollIsRootNode?0:scroll.scrollLeft())*mod))};},_generatePosition:function(event){var top,left,o=this.options,pageX=event.pageX,pageY=event.pageY,scroll=this.cssPosition===\"absolute\"&&!(this.scrollParent[0]!==this.document[0]&&$.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,scrollIsRootNode=(/(html|body)/i).test(scroll[0].tagName);if(this.cssPosition===\"relative\"&&!(this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0])){this.offset.relative=this._getRelativeOffset();}\nif(this.originalPosition){if(this.containment){if(event.pageX-this.offset.click.left<this.containment[0]){pageX=this.containment[0]+this.offset.click.left;}\nif(event.pageY-this.offset.click.top<this.containment[1]){pageY=this.containment[1]+this.offset.click.top;}\nif(event.pageX-this.offset.click.left>this.containment[2]){pageX=this.containment[2]+this.offset.click.left;}\nif(event.pageY-this.offset.click.top>this.containment[3]){pageY=this.containment[3]+this.offset.click.top;}}\nif(o.grid){top=this.originalPageY+Math.round((pageY-this.originalPageY)/\no.grid[1])*o.grid[1];pageY=this.containment?((top-this.offset.click.top>=this.containment[1]&&top-this.offset.click.top<=this.containment[3])?top:((top-this.offset.click.top>=this.containment[1])?top-o.grid[1]:top+o.grid[1])):top;left=this.originalPageX+Math.round((pageX-this.originalPageX)/\no.grid[0])*o.grid[0];pageX=this.containment?((left-this.offset.click.left>=this.containment[0]&&left-this.offset.click.left<=this.containment[2])?left:((left-this.offset.click.left>=this.containment[0])?left-o.grid[0]:left+o.grid[0])):left;}}\nreturn{top:(pageY-\nthis.offset.click.top-\nthis.offset.relative.top-\nthis.offset.parent.top+\n((this.cssPosition===\"fixed\"?-this.scrollParent.scrollTop():(scrollIsRootNode?0:scroll.scrollTop())))),left:(pageX-\nthis.offset.click.left-\nthis.offset.relative.left-\nthis.offset.parent.left+\n((this.cssPosition===\"fixed\"?-this.scrollParent.scrollLeft():scrollIsRootNode?0:scroll.scrollLeft())))};},_rearrange:function(event,i,a,hardRefresh){if(a){a[0].appendChild(this.placeholder[0]);}else{i.item[0].parentNode.insertBefore(this.placeholder[0],(this.direction===\"down\"?i.item[0]:i.item[0].nextSibling));}\nthis.counter=this.counter?++this.counter:1;var counter=this.counter;this._delay(function(){if(counter===this.counter){this.refreshPositions(!hardRefresh);}});},_clear:function(event,noPropagation){this.reverting=false;var i,delayedTriggers=[];if(!this._noFinalSort&&this.currentItem.parent().length){this.placeholder.before(this.currentItem);}\nthis._noFinalSort=null;if(this.helper[0]===this.currentItem[0]){for(i in this._storedCSS){if(this._storedCSS[i]===\"auto\"||this._storedCSS[i]===\"static\"){this._storedCSS[i]=\"\";}}\nthis.currentItem.css(this._storedCSS);this._removeClass(this.currentItem,\"ui-sortable-helper\");}else{this.currentItem.show();}\nif(this.fromOutside&&!noPropagation){delayedTriggers.push(function(event){this._trigger(\"receive\",event,this._uiHash(this.fromOutside));});}\nif((this.fromOutside||this.domPosition.prev!==this.currentItem.prev().not(\".ui-sortable-helper\")[0]||this.domPosition.parent!==this.currentItem.parent()[0])&&!noPropagation){delayedTriggers.push(function(event){this._trigger(\"update\",event,this._uiHash());});}\nif(this!==this.currentContainer){if(!noPropagation){delayedTriggers.push(function(event){this._trigger(\"remove\",event,this._uiHash());});delayedTriggers.push((function(c){return function(event){c._trigger(\"receive\",event,this._uiHash(this));};}).call(this,this.currentContainer));delayedTriggers.push((function(c){return function(event){c._trigger(\"update\",event,this._uiHash(this));};}).call(this,this.currentContainer));}}\nfunction delayEvent(type,instance,container){return function(event){container._trigger(type,event,instance._uiHash(instance));};}\nfor(i=this.containers.length-1;i>=0;i--){if(!noPropagation){delayedTriggers.push(delayEvent(\"deactivate\",this,this.containers[i]));}\nif(this.containers[i].containerCache.over){delayedTriggers.push(delayEvent(\"out\",this,this.containers[i]));this.containers[i].containerCache.over=0;}}\nif(this.storedCursor){this.document.find(\"body\").css(\"cursor\",this.storedCursor);this.storedStylesheet.remove();}\nif(this._storedOpacity){this.helper.css(\"opacity\",this._storedOpacity);}\nif(this._storedZIndex){this.helper.css(\"zIndex\",this._storedZIndex===\"auto\"?\"\":this._storedZIndex);}\nthis.dragging=false;if(!noPropagation){this._trigger(\"beforeStop\",event,this._uiHash());}\nthis.placeholder[0].parentNode.removeChild(this.placeholder[0]);if(!this.cancelHelperRemoval){if(this.helper[0]!==this.currentItem[0]){this.helper.remove();}\nthis.helper=null;}\nif(!noPropagation){for(i=0;i<delayedTriggers.length;i++){delayedTriggers[i].call(this,event);}\nthis._trigger(\"stop\",event,this._uiHash());}\nthis.fromOutside=false;return!this.cancelHelperRemoval;},_trigger:function(){if($.Widget.prototype._trigger.apply(this,arguments)===false){this.cancel();}},_uiHash:function(_inst){var inst=_inst||this;return{helper:inst.helper,placeholder:inst.placeholder||$([]),position:inst.position,originalPosition:inst.originalPosition,offset:inst.positionAbs,item:inst.currentItem,sender:_inst?_inst.element:null};}});});","jquery/ui-modules/widgets/button.min.js":"/*!\n * jQuery UI Button 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"./controlgroup\",\"./checkboxradio\",\"../keycode\",\"../widget\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";$.widget(\"ui.button\",{version:\"1.13.2\",defaultElement:\"<button>\",options:{classes:{\"ui-button\":\"ui-corner-all\"},disabled:null,icon:null,iconPosition:\"beginning\",label:null,showLabel:true},_getCreateOptions:function(){var disabled,options=this._super()||{};this.isInput=this.element.is(\"input\");disabled=this.element[0].disabled;if(disabled!=null){options.disabled=disabled;}\nthis.originalLabel=this.isInput?this.element.val():this.element.html();if(this.originalLabel){options.label=this.originalLabel;}\nreturn options;},_create:function(){if(!this.option.showLabel&!this.options.icon){this.options.showLabel=true;}\nif(this.options.disabled==null){this.options.disabled=this.element[0].disabled||false;}\nthis.hasTitle=!!this.element.attr(\"title\");if(this.options.label&&this.options.label!==this.originalLabel){if(this.isInput){this.element.val(this.options.label);}else{this.element.html(this.options.label);}}\nthis._addClass(\"ui-button\",\"ui-widget\");this._setOption(\"disabled\",this.options.disabled);this._enhance();if(this.element.is(\"a\")){this._on({\"keyup\":function(event){if(event.keyCode===$.ui.keyCode.SPACE){event.preventDefault();if(this.element[0].click){this.element[0].click();}else{this.element.trigger(\"click\");}}}});}},_enhance:function(){if(!this.element.is(\"button\")){this.element.attr(\"role\",\"button\");}\nif(this.options.icon){this._updateIcon(\"icon\",this.options.icon);this._updateTooltip();}},_updateTooltip:function(){this.title=this.element.attr(\"title\");if(!this.options.showLabel&&!this.title){this.element.attr(\"title\",this.options.label);}},_updateIcon:function(option,value){var icon=option!==\"iconPosition\",position=icon?this.options.iconPosition:value,displayBlock=position===\"top\"||position===\"bottom\";if(!this.icon){this.icon=$(\"<span>\");this._addClass(this.icon,\"ui-button-icon\",\"ui-icon\");if(!this.options.showLabel){this._addClass(\"ui-button-icon-only\");}}else if(icon){this._removeClass(this.icon,null,this.options.icon);}\nif(icon){this._addClass(this.icon,null,value);}\nthis._attachIcon(position);if(displayBlock){this._addClass(this.icon,null,\"ui-widget-icon-block\");if(this.iconSpace){this.iconSpace.remove();}}else{if(!this.iconSpace){this.iconSpace=$(\"<span> </span>\");this._addClass(this.iconSpace,\"ui-button-icon-space\");}\nthis._removeClass(this.icon,null,\"ui-wiget-icon-block\");this._attachIconSpace(position);}},_destroy:function(){this.element.removeAttr(\"role\");if(this.icon){this.icon.remove();}\nif(this.iconSpace){this.iconSpace.remove();}\nif(!this.hasTitle){this.element.removeAttr(\"title\");}},_attachIconSpace:function(iconPosition){this.icon[/^(?:end|bottom)/.test(iconPosition)?\"before\":\"after\"](this.iconSpace);},_attachIcon:function(iconPosition){this.element[/^(?:end|bottom)/.test(iconPosition)?\"append\":\"prepend\"](this.icon);},_setOptions:function(options){var newShowLabel=options.showLabel===undefined?this.options.showLabel:options.showLabel,newIcon=options.icon===undefined?this.options.icon:options.icon;if(!newShowLabel&&!newIcon){options.showLabel=true;}\nthis._super(options);},_setOption:function(key,value){if(key===\"icon\"){if(value){this._updateIcon(key,value);}else if(this.icon){this.icon.remove();if(this.iconSpace){this.iconSpace.remove();}}}\nif(key===\"iconPosition\"){this._updateIcon(key,value);}\nif(key===\"showLabel\"){this._toggleClass(\"ui-button-icon-only\",null,!value);this._updateTooltip();}\nif(key===\"label\"){if(this.isInput){this.element.val(value);}else{this.element.html(value);if(this.icon){this._attachIcon(this.options.iconPosition);this._attachIconSpace(this.options.iconPosition);}}}\nthis._super(key,value);if(key===\"disabled\"){this._toggleClass(null,\"ui-state-disabled\",value);this.element[0].disabled=value;if(value){this.element.trigger(\"blur\");}}},refresh:function(){var isDisabled=this.element.is(\"input, button\")?this.element[0].disabled:this.element.hasClass(\"ui-button-disabled\");if(isDisabled!==this.options.disabled){this._setOptions({disabled:isDisabled});}\nthis._updateTooltip();}});if($.uiBackCompat!==false){$.widget(\"ui.button\",$.ui.button,{options:{text:true,icons:{primary:null,secondary:null}},_create:function(){if(this.options.showLabel&&!this.options.text){this.options.showLabel=this.options.text;}\nif(!this.options.showLabel&&this.options.text){this.options.text=this.options.showLabel;}\nif(!this.options.icon&&(this.options.icons.primary||this.options.icons.secondary)){if(this.options.icons.primary){this.options.icon=this.options.icons.primary;}else{this.options.icon=this.options.icons.secondary;this.options.iconPosition=\"end\";}}else if(this.options.icon){this.options.icons.primary=this.options.icon;}\nthis._super();},_setOption:function(key,value){if(key===\"text\"){this._super(\"showLabel\",value);return;}\nif(key===\"showLabel\"){this.options.text=value;}\nif(key===\"icon\"){this.options.icons.primary=value;}\nif(key===\"icons\"){if(value.primary){this._super(\"icon\",value.primary);this._super(\"iconPosition\",\"beginning\");}else if(value.secondary){this._super(\"icon\",value.secondary);this._super(\"iconPosition\",\"end\");}}\nthis._superApply(arguments);}});$.fn.button=(function(orig){return function(options){var isMethodCall=typeof options===\"string\";var args=Array.prototype.slice.call(arguments,1);var returnValue=this;if(isMethodCall){if(!this.length&&options===\"instance\"){returnValue=undefined;}else{this.each(function(){var methodValue;var type=$(this).attr(\"type\");var name=type!==\"checkbox\"&&type!==\"radio\"?\"button\":\"checkboxradio\";var instance=$.data(this,\"ui-\"+name);if(options===\"instance\"){returnValue=instance;return false;}\nif(!instance){return $.error(\"cannot call methods on button\"+\" prior to initialization; \"+\"attempted to call method '\"+options+\"'\");}\nif(typeof instance[options]!==\"function\"||options.charAt(0)===\"_\"){return $.error(\"no such method '\"+options+\"' for button\"+\" widget instance\");}\nmethodValue=instance[options].apply(instance,args);if(methodValue!==instance&&methodValue!==undefined){returnValue=methodValue&&methodValue.jquery?returnValue.pushStack(methodValue.get()):methodValue;return false;}});}}else{if(args.length){options=$.widget.extend.apply(null,[options].concat(args));}\nthis.each(function(){var type=$(this).attr(\"type\");var name=type!==\"checkbox\"&&type!==\"radio\"?\"button\":\"checkboxradio\";var instance=$.data(this,\"ui-\"+name);if(instance){instance.option(options||{});if(instance._init){instance._init();}}else{if(name===\"button\"){orig.call($(this),options);return;}\n$(this).checkboxradio($.extend({icon:false},options));}});}\nreturn returnValue;};})($.fn.button);$.fn.buttonset=function(){if(!$.ui.controlgroup){$.error(\"Controlgroup widget missing\");}\nif(arguments[0]===\"option\"&&arguments[1]===\"items\"&&arguments[2]){return this.controlgroup.apply(this,[arguments[0],\"items.button\",arguments[2]]);}\nif(arguments[0]===\"option\"&&arguments[1]===\"items\"){return this.controlgroup.apply(this,[arguments[0],\"items.button\"]);}\nif(typeof arguments[0]===\"object\"&&arguments[0].items){arguments[0].items={button:arguments[0].items};}\nreturn this.controlgroup.apply(this,arguments);};}\nreturn $.ui.button;});","jquery/ui-modules/widgets/datepicker.min.js":"/*!\n * jQuery UI Datepicker 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"../version\",\"../keycode\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";$.extend($.ui,{datepicker:{version:\"1.13.2\"}});var datepicker_instActive;function datepicker_getZindex(elem){var position,value;while(elem.length&&elem[0]!==document){position=elem.css(\"position\");if(position===\"absolute\"||position===\"relative\"||position===\"fixed\"){value=parseInt(elem.css(\"zIndex\"),10);if(!isNaN(value)&&value!==0){return value;}}\nelem=elem.parent();}\nreturn 0;}\nfunction Datepicker(){this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._datepickerShowing=false;this._inDialog=false;this._mainDivId=\"ui-datepicker-div\";this._inlineClass=\"ui-datepicker-inline\";this._appendClass=\"ui-datepicker-append\";this._triggerClass=\"ui-datepicker-trigger\";this._dialogClass=\"ui-datepicker-dialog\";this._disableClass=\"ui-datepicker-disabled\";this._unselectableClass=\"ui-datepicker-unselectable\";this._currentClass=\"ui-datepicker-current-day\";this._dayOverClass=\"ui-datepicker-days-cell-over\";this.regional=[];this.regional[\"\"]={closeText:\"Done\",prevText:\"Prev\",nextText:\"Next\",currentText:\"Today\",monthNames:[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"],monthNamesShort:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"],dayNames:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"],dayNamesShort:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],dayNamesMin:[\"Su\",\"Mo\",\"Tu\",\"We\",\"Th\",\"Fr\",\"Sa\"],weekHeader:\"Wk\",dateFormat:\"mm/dd/yy\",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\",selectMonthLabel:\"Select month\",selectYearLabel:\"Select year\"};this._defaults={showOn:\"focus\",showAnim:\"fadeIn\",showOptions:{},defaultDate:null,appendText:\"\",buttonText:\"...\",buttonImage:\"\",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,yearRange:\"c-10:c+10\",showOtherMonths:false,selectOtherMonths:false,showWeek:false,calculateWeek:this.iso8601Week,shortYearCutoff:\"+10\",minDate:null,maxDate:null,duration:\"fast\",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:\"\",altFormat:\"\",constrainInput:true,showButtonPanel:false,autoSize:false,disabled:false};$.extend(this._defaults,this.regional[\"\"]);this.regional.en=$.extend(true,{},this.regional[\"\"]);this.regional[\"en-US\"]=$.extend(true,{},this.regional.en);this.dpDiv=datepicker_bindHover($(\"<div id='\"+this._mainDivId+\"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>\"));}\n$.extend(Datepicker.prototype,{markerClassName:\"hasDatepicker\",maxRows:4,_widgetDatepicker:function(){return this.dpDiv;},setDefaults:function(settings){datepicker_extendRemove(this._defaults,settings||{});return this;},_attachDatepicker:function(target,settings){var nodeName,inline,inst;nodeName=target.nodeName.toLowerCase();inline=(nodeName===\"div\"||nodeName===\"span\");if(!target.id){this.uuid+=1;target.id=\"dp\"+this.uuid;}\ninst=this._newInst($(target),inline);inst.settings=$.extend({},settings||{});if(nodeName===\"input\"){this._connectDatepicker(target,inst);}else if(inline){this._inlineDatepicker(target,inst);}},_newInst:function(target,inline){var id=target[0].id.replace(/([^A-Za-z0-9_\\-])/g,\"\\\\\\\\$1\");return{id:id,input:target,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:inline,dpDiv:(!inline?this.dpDiv:datepicker_bindHover($(\"<div class='\"+this._inlineClass+\" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>\")))};},_connectDatepicker:function(target,inst){var input=$(target);inst.append=$([]);inst.trigger=$([]);if(input.hasClass(this.markerClassName)){return;}\nthis._attachments(input,inst);input.addClass(this.markerClassName).on(\"keydown\",this._doKeyDown).on(\"keypress\",this._doKeyPress).on(\"keyup\",this._doKeyUp);this._autoSize(inst);$.data(target,\"datepicker\",inst);if(inst.settings.disabled){this._disableDatepicker(target);}},_attachments:function(input,inst){var showOn,buttonText,buttonImage,appendText=this._get(inst,\"appendText\"),isRTL=this._get(inst,\"isRTL\");if(inst.append){inst.append.remove();}\nif(appendText){inst.append=$(\"<span>\").addClass(this._appendClass).text(appendText);input[isRTL?\"before\":\"after\"](inst.append);}\ninput.off(\"focus\",this._showDatepicker);if(inst.trigger){inst.trigger.remove();}\nshowOn=this._get(inst,\"showOn\");if(showOn===\"focus\"||showOn===\"both\"){input.on(\"focus\",this._showDatepicker);}\nif(showOn===\"button\"||showOn===\"both\"){buttonText=this._get(inst,\"buttonText\");buttonImage=this._get(inst,\"buttonImage\");if(this._get(inst,\"buttonImageOnly\")){inst.trigger=$(\"<img>\").addClass(this._triggerClass).attr({src:buttonImage,alt:buttonText,title:buttonText});}else{inst.trigger=$(\"<button type='button'>\").addClass(this._triggerClass);if(buttonImage){inst.trigger.html($(\"<img>\").attr({src:buttonImage,alt:buttonText,title:buttonText}));}else{inst.trigger.text(buttonText);}}\ninput[isRTL?\"before\":\"after\"](inst.trigger);inst.trigger.on(\"click\",function(){if($.datepicker._datepickerShowing&&$.datepicker._lastInput===input[0]){$.datepicker._hideDatepicker();}else if($.datepicker._datepickerShowing&&$.datepicker._lastInput!==input[0]){$.datepicker._hideDatepicker();$.datepicker._showDatepicker(input[0]);}else{$.datepicker._showDatepicker(input[0]);}\nreturn false;});}},_autoSize:function(inst){if(this._get(inst,\"autoSize\")&&!inst.inline){var findMax,max,maxI,i,date=new Date(2009,12-1,20),dateFormat=this._get(inst,\"dateFormat\");if(dateFormat.match(/[DM]/)){findMax=function(names){max=0;maxI=0;for(i=0;i<names.length;i++){if(names[i].length>max){max=names[i].length;maxI=i;}}\nreturn maxI;};date.setMonth(findMax(this._get(inst,(dateFormat.match(/MM/)?\"monthNames\":\"monthNamesShort\"))));date.setDate(findMax(this._get(inst,(dateFormat.match(/DD/)?\"dayNames\":\"dayNamesShort\")))+20-date.getDay());}\ninst.input.attr(\"size\",this._formatDate(inst,date).length);}},_inlineDatepicker:function(target,inst){var divSpan=$(target);if(divSpan.hasClass(this.markerClassName)){return;}\ndivSpan.addClass(this.markerClassName).append(inst.dpDiv);$.data(target,\"datepicker\",inst);this._setDate(inst,this._getDefaultDate(inst),true);this._updateDatepicker(inst);this._updateAlternate(inst);if(inst.settings.disabled){this._disableDatepicker(target);}\ninst.dpDiv.css(\"display\",\"block\");},_dialogDatepicker:function(input,date,onSelect,settings,pos){var id,browserWidth,browserHeight,scrollX,scrollY,inst=this._dialogInst;if(!inst){this.uuid+=1;id=\"dp\"+this.uuid;this._dialogInput=$(\"<input type='text' id='\"+id+\"' style='position: absolute; top: -100px; width: 0px;'/>\");this._dialogInput.on(\"keydown\",this._doKeyDown);$(\"body\").append(this._dialogInput);inst=this._dialogInst=this._newInst(this._dialogInput,false);inst.settings={};$.data(this._dialogInput[0],\"datepicker\",inst);}\ndatepicker_extendRemove(inst.settings,settings||{});date=(date&&date.constructor===Date?this._formatDate(inst,date):date);this._dialogInput.val(date);this._pos=(pos?(pos.length?pos:[pos.pageX,pos.pageY]):null);if(!this._pos){browserWidth=document.documentElement.clientWidth;browserHeight=document.documentElement.clientHeight;scrollX=document.documentElement.scrollLeft||document.body.scrollLeft;scrollY=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[(browserWidth / 2)-100+scrollX,(browserHeight / 2)-150+scrollY];}\nthis._dialogInput.css(\"left\",(this._pos[0]+20)+\"px\").css(\"top\",this._pos[1]+\"px\");inst.settings.onSelect=onSelect;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);if($.blockUI){$.blockUI(this.dpDiv);}\n$.data(this._dialogInput[0],\"datepicker\",inst);return this;},_destroyDatepicker:function(target){var nodeName,$target=$(target),inst=$.data(target,\"datepicker\");if(!$target.hasClass(this.markerClassName)){return;}\nnodeName=target.nodeName.toLowerCase();$.removeData(target,\"datepicker\");if(nodeName===\"input\"){inst.append.remove();inst.trigger.remove();$target.removeClass(this.markerClassName).off(\"focus\",this._showDatepicker).off(\"keydown\",this._doKeyDown).off(\"keypress\",this._doKeyPress).off(\"keyup\",this._doKeyUp);}else if(nodeName===\"div\"||nodeName===\"span\"){$target.removeClass(this.markerClassName).empty();}\nif(datepicker_instActive===inst){datepicker_instActive=null;this._curInst=null;}},_enableDatepicker:function(target){var nodeName,inline,$target=$(target),inst=$.data(target,\"datepicker\");if(!$target.hasClass(this.markerClassName)){return;}\nnodeName=target.nodeName.toLowerCase();if(nodeName===\"input\"){target.disabled=false;inst.trigger.filter(\"button\").each(function(){this.disabled=false;}).end().filter(\"img\").css({opacity:\"1.0\",cursor:\"\"});}else if(nodeName===\"div\"||nodeName===\"span\"){inline=$target.children(\".\"+this._inlineClass);inline.children().removeClass(\"ui-state-disabled\");inline.find(\"select.ui-datepicker-month, select.ui-datepicker-year\").prop(\"disabled\",false);}\nthis._disabledInputs=$.map(this._disabledInputs,function(value){return(value===target?null:value);});},_disableDatepicker:function(target){var nodeName,inline,$target=$(target),inst=$.data(target,\"datepicker\");if(!$target.hasClass(this.markerClassName)){return;}\nnodeName=target.nodeName.toLowerCase();if(nodeName===\"input\"){target.disabled=true;inst.trigger.filter(\"button\").each(function(){this.disabled=true;}).end().filter(\"img\").css({opacity:\"0.5\",cursor:\"default\"});}else if(nodeName===\"div\"||nodeName===\"span\"){inline=$target.children(\".\"+this._inlineClass);inline.children().addClass(\"ui-state-disabled\");inline.find(\"select.ui-datepicker-month, select.ui-datepicker-year\").prop(\"disabled\",true);}\nthis._disabledInputs=$.map(this._disabledInputs,function(value){return(value===target?null:value);});this._disabledInputs[this._disabledInputs.length]=target;},_isDisabledDatepicker:function(target){if(!target){return false;}\nfor(var i=0;i<this._disabledInputs.length;i++){if(this._disabledInputs[i]===target){return true;}}\nreturn false;},_getInst:function(target){try{return $.data(target,\"datepicker\");}catch(err){throw\"Missing instance data for this datepicker\";}},_optionDatepicker:function(target,name,value){var settings,date,minDate,maxDate,inst=this._getInst(target);if(arguments.length===2&&typeof name===\"string\"){return(name===\"defaults\"?$.extend({},$.datepicker._defaults):(inst?(name===\"all\"?$.extend({},inst.settings):this._get(inst,name)):null));}\nsettings=name||{};if(typeof name===\"string\"){settings={};settings[name]=value;}\nif(inst){if(this._curInst===inst){this._hideDatepicker();}\ndate=this._getDateDatepicker(target,true);minDate=this._getMinMaxDate(inst,\"min\");maxDate=this._getMinMaxDate(inst,\"max\");datepicker_extendRemove(inst.settings,settings);if(minDate!==null&&settings.dateFormat!==undefined&&settings.minDate===undefined){inst.settings.minDate=this._formatDate(inst,minDate);}\nif(maxDate!==null&&settings.dateFormat!==undefined&&settings.maxDate===undefined){inst.settings.maxDate=this._formatDate(inst,maxDate);}\nif(\"disabled\"in settings){if(settings.disabled){this._disableDatepicker(target);}else{this._enableDatepicker(target);}}\nthis._attachments($(target),inst);this._autoSize(inst);this._setDate(inst,date);this._updateAlternate(inst);this._updateDatepicker(inst);}},_changeDatepicker:function(target,name,value){this._optionDatepicker(target,name,value);},_refreshDatepicker:function(target){var inst=this._getInst(target);if(inst){this._updateDatepicker(inst);}},_setDateDatepicker:function(target,date){var inst=this._getInst(target);if(inst){this._setDate(inst,date);this._updateDatepicker(inst);this._updateAlternate(inst);}},_getDateDatepicker:function(target,noDefault){var inst=this._getInst(target);if(inst&&!inst.inline){this._setDateFromField(inst,noDefault);}\nreturn(inst?this._getDate(inst):null);},_doKeyDown:function(event){var onSelect,dateStr,sel,inst=$.datepicker._getInst(event.target),handled=true,isRTL=inst.dpDiv.is(\".ui-datepicker-rtl\");inst._keyEvent=true;if($.datepicker._datepickerShowing){switch(event.keyCode){case 9:$.datepicker._hideDatepicker();handled=false;break;case 13:sel=$(\"td.\"+$.datepicker._dayOverClass+\":not(.\"+\n$.datepicker._currentClass+\")\",inst.dpDiv);if(sel[0]){$.datepicker._selectDay(event.target,inst.selectedMonth,inst.selectedYear,sel[0]);}\nonSelect=$.datepicker._get(inst,\"onSelect\");if(onSelect){dateStr=$.datepicker._formatDate(inst);onSelect.apply((inst.input?inst.input[0]:null),[dateStr,inst]);}else{$.datepicker._hideDatepicker();}\nreturn false;case 27:$.datepicker._hideDatepicker();break;case 33:$.datepicker._adjustDate(event.target,(event.ctrlKey?-$.datepicker._get(inst,\"stepBigMonths\"):-$.datepicker._get(inst,\"stepMonths\")),\"M\");break;case 34:$.datepicker._adjustDate(event.target,(event.ctrlKey?+$.datepicker._get(inst,\"stepBigMonths\"):+$.datepicker._get(inst,\"stepMonths\")),\"M\");break;case 35:if(event.ctrlKey||event.metaKey){$.datepicker._clearDate(event.target);}\nhandled=event.ctrlKey||event.metaKey;break;case 36:if(event.ctrlKey||event.metaKey){$.datepicker._gotoToday(event.target);}\nhandled=event.ctrlKey||event.metaKey;break;case 37:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,(isRTL?+1:-1),\"D\");}\nhandled=event.ctrlKey||event.metaKey;if(event.originalEvent.altKey){$.datepicker._adjustDate(event.target,(event.ctrlKey?-$.datepicker._get(inst,\"stepBigMonths\"):-$.datepicker._get(inst,\"stepMonths\")),\"M\");}\nbreak;case 38:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,-7,\"D\");}\nhandled=event.ctrlKey||event.metaKey;break;case 39:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,(isRTL?-1:+1),\"D\");}\nhandled=event.ctrlKey||event.metaKey;if(event.originalEvent.altKey){$.datepicker._adjustDate(event.target,(event.ctrlKey?+$.datepicker._get(inst,\"stepBigMonths\"):+$.datepicker._get(inst,\"stepMonths\")),\"M\");}\nbreak;case 40:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,+7,\"D\");}\nhandled=event.ctrlKey||event.metaKey;break;default:handled=false;}}else if(event.keyCode===36&&event.ctrlKey){$.datepicker._showDatepicker(this);}else{handled=false;}\nif(handled){event.preventDefault();event.stopPropagation();}},_doKeyPress:function(event){var chars,chr,inst=$.datepicker._getInst(event.target);if($.datepicker._get(inst,\"constrainInput\")){chars=$.datepicker._possibleChars($.datepicker._get(inst,\"dateFormat\"));chr=String.fromCharCode(event.charCode==null?event.keyCode:event.charCode);return event.ctrlKey||event.metaKey||(chr<\" \"||!chars||chars.indexOf(chr)>-1);}},_doKeyUp:function(event){var date,inst=$.datepicker._getInst(event.target);if(inst.input.val()!==inst.lastVal){try{date=$.datepicker.parseDate($.datepicker._get(inst,\"dateFormat\"),(inst.input?inst.input.val():null),$.datepicker._getFormatConfig(inst));if(date){$.datepicker._setDateFromField(inst);$.datepicker._updateAlternate(inst);$.datepicker._updateDatepicker(inst);}}catch(err){}}\nreturn true;},_showDatepicker:function(input){input=input.target||input;if(input.nodeName.toLowerCase()!==\"input\"){input=$(\"input\",input.parentNode)[0];}\nif($.datepicker._isDisabledDatepicker(input)||$.datepicker._lastInput===input){return;}\nvar inst,beforeShow,beforeShowSettings,isFixed,offset,showAnim,duration;inst=$.datepicker._getInst(input);if($.datepicker._curInst&&$.datepicker._curInst!==inst){$.datepicker._curInst.dpDiv.stop(true,true);if(inst&&$.datepicker._datepickerShowing){$.datepicker._hideDatepicker($.datepicker._curInst.input[0]);}}\nbeforeShow=$.datepicker._get(inst,\"beforeShow\");beforeShowSettings=beforeShow?beforeShow.apply(input,[input,inst]):{};if(beforeShowSettings===false){return;}\ndatepicker_extendRemove(inst.settings,beforeShowSettings);inst.lastVal=null;$.datepicker._lastInput=input;$.datepicker._setDateFromField(inst);if($.datepicker._inDialog){input.value=\"\";}\nif(!$.datepicker._pos){$.datepicker._pos=$.datepicker._findPos(input);$.datepicker._pos[1]+=input.offsetHeight;}\nisFixed=false;$(input).parents().each(function(){isFixed|=$(this).css(\"position\")===\"fixed\";return!isFixed;});offset={left:$.datepicker._pos[0],top:$.datepicker._pos[1]};$.datepicker._pos=null;inst.dpDiv.empty();inst.dpDiv.css({position:\"absolute\",display:\"block\",top:\"-1000px\"});$.datepicker._updateDatepicker(inst);offset=$.datepicker._checkOffset(inst,offset,isFixed);inst.dpDiv.css({position:($.datepicker._inDialog&&$.blockUI?\"static\":(isFixed?\"fixed\":\"absolute\")),display:\"none\",left:offset.left+\"px\",top:offset.top+\"px\"});if(!inst.inline){showAnim=$.datepicker._get(inst,\"showAnim\");duration=$.datepicker._get(inst,\"duration\");inst.dpDiv.css(\"z-index\",datepicker_getZindex($(input))+1);$.datepicker._datepickerShowing=true;if($.effects&&$.effects.effect[showAnim]){inst.dpDiv.show(showAnim,$.datepicker._get(inst,\"showOptions\"),duration);}else{inst.dpDiv[showAnim||\"show\"](showAnim?duration:null);}\nif($.datepicker._shouldFocusInput(inst)){inst.input.trigger(\"focus\");}\n$.datepicker._curInst=inst;}},_updateDatepicker:function(inst){this.maxRows=4;datepicker_instActive=inst;inst.dpDiv.empty().append(this._generateHTML(inst));this._attachHandlers(inst);var origyearshtml,numMonths=this._getNumberOfMonths(inst),cols=numMonths[1],width=17,activeCell=inst.dpDiv.find(\".\"+this._dayOverClass+\" a\"),onUpdateDatepicker=$.datepicker._get(inst,\"onUpdateDatepicker\");if(activeCell.length>0){datepicker_handleMouseover.apply(activeCell.get(0));}\ninst.dpDiv.removeClass(\"ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4\").width(\"\");if(cols>1){inst.dpDiv.addClass(\"ui-datepicker-multi-\"+cols).css(\"width\",(width*cols)+\"em\");}\ninst.dpDiv[(numMonths[0]!==1||numMonths[1]!==1?\"add\":\"remove\")+\"Class\"](\"ui-datepicker-multi\");inst.dpDiv[(this._get(inst,\"isRTL\")?\"add\":\"remove\")+\"Class\"](\"ui-datepicker-rtl\");if(inst===$.datepicker._curInst&&$.datepicker._datepickerShowing&&$.datepicker._shouldFocusInput(inst)){inst.input.trigger(\"focus\");}\nif(inst.yearshtml){origyearshtml=inst.yearshtml;setTimeout(function(){if(origyearshtml===inst.yearshtml&&inst.yearshtml){inst.dpDiv.find(\"select.ui-datepicker-year\").first().replaceWith(inst.yearshtml);}\norigyearshtml=inst.yearshtml=null;},0);}\nif(onUpdateDatepicker){onUpdateDatepicker.apply((inst.input?inst.input[0]:null),[inst]);}},_shouldFocusInput:function(inst){return inst.input&&inst.input.is(\":visible\")&&!inst.input.is(\":disabled\")&&!inst.input.is(\":focus\");},_checkOffset:function(inst,offset,isFixed){var dpWidth=inst.dpDiv.outerWidth(),dpHeight=inst.dpDiv.outerHeight(),inputWidth=inst.input?inst.input.outerWidth():0,inputHeight=inst.input?inst.input.outerHeight():0,viewWidth=document.documentElement.clientWidth+(isFixed?0:$(document).scrollLeft()),viewHeight=document.documentElement.clientHeight+(isFixed?0:$(document).scrollTop());offset.left-=(this._get(inst,\"isRTL\")?(dpWidth-inputWidth):0);offset.left-=(isFixed&&offset.left===inst.input.offset().left)?$(document).scrollLeft():0;offset.top-=(isFixed&&offset.top===(inst.input.offset().top+inputHeight))?$(document).scrollTop():0;offset.left-=Math.min(offset.left,(offset.left+dpWidth>viewWidth&&viewWidth>dpWidth)?Math.abs(offset.left+dpWidth-viewWidth):0);offset.top-=Math.min(offset.top,(offset.top+dpHeight>viewHeight&&viewHeight>dpHeight)?Math.abs(dpHeight+inputHeight):0);return offset;},_findPos:function(obj){var position,inst=this._getInst(obj),isRTL=this._get(inst,\"isRTL\");while(obj&&(obj.type===\"hidden\"||obj.nodeType!==1||$.expr.pseudos.hidden(obj))){obj=obj[isRTL?\"previousSibling\":\"nextSibling\"];}\nposition=$(obj).offset();return[position.left,position.top];},_hideDatepicker:function(input){var showAnim,duration,postProcess,onClose,inst=this._curInst;if(!inst||(input&&inst!==$.data(input,\"datepicker\"))){return;}\nif(this._datepickerShowing){showAnim=this._get(inst,\"showAnim\");duration=this._get(inst,\"duration\");postProcess=function(){$.datepicker._tidyDialog(inst);};if($.effects&&($.effects.effect[showAnim]||$.effects[showAnim])){inst.dpDiv.hide(showAnim,$.datepicker._get(inst,\"showOptions\"),duration,postProcess);}else{inst.dpDiv[(showAnim===\"slideDown\"?\"slideUp\":(showAnim===\"fadeIn\"?\"fadeOut\":\"hide\"))]((showAnim?duration:null),postProcess);}\nif(!showAnim){postProcess();}\nthis._datepickerShowing=false;onClose=this._get(inst,\"onClose\");if(onClose){onClose.apply((inst.input?inst.input[0]:null),[(inst.input?inst.input.val():\"\"),inst]);}\nthis._lastInput=null;if(this._inDialog){this._dialogInput.css({position:\"absolute\",left:\"0\",top:\"-100px\"});if($.blockUI){$.unblockUI();$(\"body\").append(this.dpDiv);}}\nthis._inDialog=false;}},_tidyDialog:function(inst){inst.dpDiv.removeClass(this._dialogClass).off(\".ui-datepicker-calendar\");},_checkExternalClick:function(event){if(!$.datepicker._curInst){return;}\nvar $target=$(event.target),inst=$.datepicker._getInst($target[0]);if((($target[0].id!==$.datepicker._mainDivId&&$target.parents(\"#\"+$.datepicker._mainDivId).length===0&&!$target.hasClass($.datepicker.markerClassName)&&!$target.closest(\".\"+$.datepicker._triggerClass).length&&$.datepicker._datepickerShowing&&!($.datepicker._inDialog&&$.blockUI)))||($target.hasClass($.datepicker.markerClassName)&&$.datepicker._curInst!==inst)){$.datepicker._hideDatepicker();}},_adjustDate:function(id,offset,period){var target=$(id),inst=this._getInst(target[0]);if(this._isDisabledDatepicker(target[0])){return;}\nthis._adjustInstDate(inst,offset,period);this._updateDatepicker(inst);},_gotoToday:function(id){var date,target=$(id),inst=this._getInst(target[0]);if(this._get(inst,\"gotoCurrent\")&&inst.currentDay){inst.selectedDay=inst.currentDay;inst.drawMonth=inst.selectedMonth=inst.currentMonth;inst.drawYear=inst.selectedYear=inst.currentYear;}else{date=new Date();inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();}\nthis._notifyChange(inst);this._adjustDate(target);},_selectMonthYear:function(id,select,period){var target=$(id),inst=this._getInst(target[0]);inst[\"selected\"+(period===\"M\"?\"Month\":\"Year\")]=inst[\"draw\"+(period===\"M\"?\"Month\":\"Year\")]=parseInt(select.options[select.selectedIndex].value,10);this._notifyChange(inst);this._adjustDate(target);},_selectDay:function(id,month,year,td){var inst,target=$(id);if($(td).hasClass(this._unselectableClass)||this._isDisabledDatepicker(target[0])){return;}\ninst=this._getInst(target[0]);inst.selectedDay=inst.currentDay=parseInt($(\"a\",td).attr(\"data-date\"));inst.selectedMonth=inst.currentMonth=month;inst.selectedYear=inst.currentYear=year;this._selectDate(id,this._formatDate(inst,inst.currentDay,inst.currentMonth,inst.currentYear));},_clearDate:function(id){var target=$(id);this._selectDate(target,\"\");},_selectDate:function(id,dateStr){var onSelect,target=$(id),inst=this._getInst(target[0]);dateStr=(dateStr!=null?dateStr:this._formatDate(inst));if(inst.input){inst.input.val(dateStr);}\nthis._updateAlternate(inst);onSelect=this._get(inst,\"onSelect\");if(onSelect){onSelect.apply((inst.input?inst.input[0]:null),[dateStr,inst]);}else if(inst.input){inst.input.trigger(\"change\");}\nif(inst.inline){this._updateDatepicker(inst);}else{this._hideDatepicker();this._lastInput=inst.input[0];if(typeof(inst.input[0])!==\"object\"){inst.input.trigger(\"focus\");}\nthis._lastInput=null;}},_updateAlternate:function(inst){var altFormat,date,dateStr,altField=this._get(inst,\"altField\");if(altField){altFormat=this._get(inst,\"altFormat\")||this._get(inst,\"dateFormat\");date=this._getDate(inst);dateStr=this.formatDate(altFormat,date,this._getFormatConfig(inst));$(document).find(altField).val(dateStr);}},noWeekends:function(date){var day=date.getDay();return[(day>0&&day<6),\"\"];},iso8601Week:function(date){var time,checkDate=new Date(date.getTime());checkDate.setDate(checkDate.getDate()+4-(checkDate.getDay()||7));time=checkDate.getTime();checkDate.setMonth(0);checkDate.setDate(1);return Math.floor(Math.round((time-checkDate)/ 86400000)/ 7)+1;},parseDate:function(format,value,settings){if(format==null||value==null){throw\"Invalid arguments\";}\nvalue=(typeof value===\"object\"?value.toString():value+\"\");if(value===\"\"){return null;}\nvar iFormat,dim,extra,iValue=0,shortYearCutoffTemp=(settings?settings.shortYearCutoff:null)||this._defaults.shortYearCutoff,shortYearCutoff=(typeof shortYearCutoffTemp!==\"string\"?shortYearCutoffTemp:new Date().getFullYear()%100+parseInt(shortYearCutoffTemp,10)),dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort,dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames,monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort,monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames,year=-1,month=-1,day=-1,doy=-1,literal=false,date,lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)===match);if(matches){iFormat++;}\nreturn matches;},getNumber=function(match){var isDoubled=lookAhead(match),size=(match===\"@\"?14:(match===\"!\"?20:(match===\"y\"&&isDoubled?4:(match===\"o\"?3:2)))),minSize=(match===\"y\"?size:1),digits=new RegExp(\"^\\\\d{\"+minSize+\",\"+size+\"}\"),num=value.substring(iValue).match(digits);if(!num){throw\"Missing number at position \"+iValue;}\niValue+=num[0].length;return parseInt(num[0],10);},getName=function(match,shortNames,longNames){var index=-1,names=$.map(lookAhead(match)?longNames:shortNames,function(v,k){return[[k,v]];}).sort(function(a,b){return-(a[1].length-b[1].length);});$.each(names,function(i,pair){var name=pair[1];if(value.substr(iValue,name.length).toLowerCase()===name.toLowerCase()){index=pair[0];iValue+=name.length;return false;}});if(index!==-1){return index+1;}else{throw\"Unknown name at position \"+iValue;}},checkLiteral=function(){if(value.charAt(iValue)!==format.charAt(iFormat)){throw\"Unexpected literal at position \"+iValue;}\niValue++;};for(iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)===\"'\"&&!lookAhead(\"'\")){literal=false;}else{checkLiteral();}}else{switch(format.charAt(iFormat)){case\"d\":day=getNumber(\"d\");break;case\"D\":getName(\"D\",dayNamesShort,dayNames);break;case\"o\":doy=getNumber(\"o\");break;case\"m\":month=getNumber(\"m\");break;case\"M\":month=getName(\"M\",monthNamesShort,monthNames);break;case\"y\":year=getNumber(\"y\");break;case\"@\":date=new Date(getNumber(\"@\"));year=date.getFullYear();month=date.getMonth()+1;day=date.getDate();break;case\"!\":date=new Date((getNumber(\"!\")-this._ticksTo1970)/ 10000);year=date.getFullYear();month=date.getMonth()+1;day=date.getDate();break;case\"'\":if(lookAhead(\"'\")){checkLiteral();}else{literal=true;}\nbreak;default:checkLiteral();}}}\nif(iValue<value.length){extra=value.substr(iValue);if(!/^\\s+/.test(extra)){throw\"Extra/unparsed characters found in date: \"+extra;}}\nif(year===-1){year=new Date().getFullYear();}else if(year<100){year+=new Date().getFullYear()-new Date().getFullYear()%100+\n(year<=shortYearCutoff?0:-100);}\nif(doy>-1){month=1;day=doy;do{dim=this._getDaysInMonth(year,month-1);if(day<=dim){break;}\nmonth++;day-=dim;}while(true);}\ndate=this._daylightSavingAdjust(new Date(year,month-1,day));if(date.getFullYear()!==year||date.getMonth()+1!==month||date.getDate()!==day){throw\"Invalid date\";}\nreturn date;},ATOM:\"yy-mm-dd\",COOKIE:\"D, dd M yy\",ISO_8601:\"yy-mm-dd\",RFC_822:\"D, d M y\",RFC_850:\"DD, dd-M-y\",RFC_1036:\"D, d M y\",RFC_1123:\"D, d M yy\",RFC_2822:\"D, d M yy\",RSS:\"D, d M y\",TICKS:\"!\",TIMESTAMP:\"@\",W3C:\"yy-mm-dd\",_ticksTo1970:(((1970-1)*365+Math.floor(1970 / 4)-Math.floor(1970 / 100)+\nMath.floor(1970 / 400))*24*60*60*10000000),formatDate:function(format,date,settings){if(!date){return\"\";}\nvar iFormat,dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort,dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames,monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort,monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames,lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)===match);if(matches){iFormat++;}\nreturn matches;},formatNumber=function(match,value,len){var num=\"\"+value;if(lookAhead(match)){while(num.length<len){num=\"0\"+num;}}\nreturn num;},formatName=function(match,value,shortNames,longNames){return(lookAhead(match)?longNames[value]:shortNames[value]);},output=\"\",literal=false;if(date){for(iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)===\"'\"&&!lookAhead(\"'\")){literal=false;}else{output+=format.charAt(iFormat);}}else{switch(format.charAt(iFormat)){case\"d\":output+=formatNumber(\"d\",date.getDate(),2);break;case\"D\":output+=formatName(\"D\",date.getDay(),dayNamesShort,dayNames);break;case\"o\":output+=formatNumber(\"o\",Math.round((new Date(date.getFullYear(),date.getMonth(),date.getDate()).getTime()-new Date(date.getFullYear(),0,0).getTime())/ 86400000),3);break;case\"m\":output+=formatNumber(\"m\",date.getMonth()+1,2);break;case\"M\":output+=formatName(\"M\",date.getMonth(),monthNamesShort,monthNames);break;case\"y\":output+=(lookAhead(\"y\")?date.getFullYear():(date.getFullYear()%100<10?\"0\":\"\")+date.getFullYear()%100);break;case\"@\":output+=date.getTime();break;case\"!\":output+=date.getTime()*10000+this._ticksTo1970;break;case\"'\":if(lookAhead(\"'\")){output+=\"'\";}else{literal=true;}\nbreak;default:output+=format.charAt(iFormat);}}}}\nreturn output;},_possibleChars:function(format){var iFormat,chars=\"\",literal=false,lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)===match);if(matches){iFormat++;}\nreturn matches;};for(iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)===\"'\"&&!lookAhead(\"'\")){literal=false;}else{chars+=format.charAt(iFormat);}}else{switch(format.charAt(iFormat)){case\"d\":case\"m\":case\"y\":case\"@\":chars+=\"0123456789\";break;case\"D\":case\"M\":return null;case\"'\":if(lookAhead(\"'\")){chars+=\"'\";}else{literal=true;}\nbreak;default:chars+=format.charAt(iFormat);}}}\nreturn chars;},_get:function(inst,name){return inst.settings[name]!==undefined?inst.settings[name]:this._defaults[name];},_setDateFromField:function(inst,noDefault){if(inst.input.val()===inst.lastVal){return;}\nvar dateFormat=this._get(inst,\"dateFormat\"),dates=inst.lastVal=inst.input?inst.input.val():null,defaultDate=this._getDefaultDate(inst),date=defaultDate,settings=this._getFormatConfig(inst);try{date=this.parseDate(dateFormat,dates,settings)||defaultDate;}catch(event){dates=(noDefault?\"\":dates);}\ninst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();inst.currentDay=(dates?date.getDate():0);inst.currentMonth=(dates?date.getMonth():0);inst.currentYear=(dates?date.getFullYear():0);this._adjustInstDate(inst);},_getDefaultDate:function(inst){return this._restrictMinMax(inst,this._determineDate(inst,this._get(inst,\"defaultDate\"),new Date()));},_determineDate:function(inst,date,defaultDate){var offsetNumeric=function(offset){var date=new Date();date.setDate(date.getDate()+offset);return date;},offsetString=function(offset){try{return $.datepicker.parseDate($.datepicker._get(inst,\"dateFormat\"),offset,$.datepicker._getFormatConfig(inst));}catch(e){}\nvar date=(offset.toLowerCase().match(/^c/)?$.datepicker._getDate(inst):null)||new Date(),year=date.getFullYear(),month=date.getMonth(),day=date.getDate(),pattern=/([+\\-]?[0-9]+)\\s*(d|D|w|W|m|M|y|Y)?/g,matches=pattern.exec(offset);while(matches){switch(matches[2]||\"d\"){case\"d\":case\"D\":day+=parseInt(matches[1],10);break;case\"w\":case\"W\":day+=parseInt(matches[1],10)*7;break;case\"m\":case\"M\":month+=parseInt(matches[1],10);day=Math.min(day,$.datepicker._getDaysInMonth(year,month));break;case\"y\":case\"Y\":year+=parseInt(matches[1],10);day=Math.min(day,$.datepicker._getDaysInMonth(year,month));break;}\nmatches=pattern.exec(offset);}\nreturn new Date(year,month,day);},newDate=(date==null||date===\"\"?defaultDate:(typeof date===\"string\"?offsetString(date):(typeof date===\"number\"?(isNaN(date)?defaultDate:offsetNumeric(date)):new Date(date.getTime()))));newDate=(newDate&&newDate.toString()===\"Invalid Date\"?defaultDate:newDate);if(newDate){newDate.setHours(0);newDate.setMinutes(0);newDate.setSeconds(0);newDate.setMilliseconds(0);}\nreturn this._daylightSavingAdjust(newDate);},_daylightSavingAdjust:function(date){if(!date){return null;}\ndate.setHours(date.getHours()>12?date.getHours()+2:0);return date;},_setDate:function(inst,date,noChange){var clear=!date,origMonth=inst.selectedMonth,origYear=inst.selectedYear,newDate=this._restrictMinMax(inst,this._determineDate(inst,date,new Date()));inst.selectedDay=inst.currentDay=newDate.getDate();inst.drawMonth=inst.selectedMonth=inst.currentMonth=newDate.getMonth();inst.drawYear=inst.selectedYear=inst.currentYear=newDate.getFullYear();if((origMonth!==inst.selectedMonth||origYear!==inst.selectedYear)&&!noChange){this._notifyChange(inst);}\nthis._adjustInstDate(inst);if(inst.input){inst.input.val(clear?\"\":this._formatDate(inst));}},_getDate:function(inst){var startDate=(!inst.currentYear||(inst.input&&inst.input.val()===\"\")?null:this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return startDate;},_attachHandlers:function(inst){var stepMonths=this._get(inst,\"stepMonths\"),id=\"#\"+inst.id.replace(/\\\\\\\\/g,\"\\\\\");inst.dpDiv.find(\"[data-handler]\").map(function(){var handler={prev:function(){$.datepicker._adjustDate(id,-stepMonths,\"M\");},next:function(){$.datepicker._adjustDate(id,+stepMonths,\"M\");},hide:function(){$.datepicker._hideDatepicker();},today:function(){$.datepicker._gotoToday(id);},selectDay:function(){$.datepicker._selectDay(id,+this.getAttribute(\"data-month\"),+this.getAttribute(\"data-year\"),this);return false;},selectMonth:function(){$.datepicker._selectMonthYear(id,this,\"M\");return false;},selectYear:function(){$.datepicker._selectMonthYear(id,this,\"Y\");return false;}};$(this).on(this.getAttribute(\"data-event\"),handler[this.getAttribute(\"data-handler\")]);});},_generateHTML:function(inst){var maxDraw,prevText,prev,nextText,next,currentText,gotoDate,controls,buttonPanel,firstDay,showWeek,dayNames,dayNamesMin,monthNames,monthNamesShort,beforeShowDay,showOtherMonths,selectOtherMonths,defaultDate,html,dow,row,group,col,selectedDate,cornerClass,calender,thead,day,daysInMonth,leadDays,curRows,numRows,printDate,dRow,tbody,daySettings,otherMonth,unselectable,tempDate=new Date(),today=this._daylightSavingAdjust(new Date(tempDate.getFullYear(),tempDate.getMonth(),tempDate.getDate())),isRTL=this._get(inst,\"isRTL\"),showButtonPanel=this._get(inst,\"showButtonPanel\"),hideIfNoPrevNext=this._get(inst,\"hideIfNoPrevNext\"),navigationAsDateFormat=this._get(inst,\"navigationAsDateFormat\"),numMonths=this._getNumberOfMonths(inst),showCurrentAtPos=this._get(inst,\"showCurrentAtPos\"),stepMonths=this._get(inst,\"stepMonths\"),isMultiMonth=(numMonths[0]!==1||numMonths[1]!==1),currentDate=this._daylightSavingAdjust((!inst.currentDay?new Date(9999,9,9):new Date(inst.currentYear,inst.currentMonth,inst.currentDay))),minDate=this._getMinMaxDate(inst,\"min\"),maxDate=this._getMinMaxDate(inst,\"max\"),drawMonth=inst.drawMonth-showCurrentAtPos,drawYear=inst.drawYear;if(drawMonth<0){drawMonth+=12;drawYear--;}\nif(maxDate){maxDraw=this._daylightSavingAdjust(new Date(maxDate.getFullYear(),maxDate.getMonth()-(numMonths[0]*numMonths[1])+1,maxDate.getDate()));maxDraw=(minDate&&maxDraw<minDate?minDate:maxDraw);while(this._daylightSavingAdjust(new Date(drawYear,drawMonth,1))>maxDraw){drawMonth--;if(drawMonth<0){drawMonth=11;drawYear--;}}}\ninst.drawMonth=drawMonth;inst.drawYear=drawYear;prevText=this._get(inst,\"prevText\");prevText=(!navigationAsDateFormat?prevText:this.formatDate(prevText,this._daylightSavingAdjust(new Date(drawYear,drawMonth-stepMonths,1)),this._getFormatConfig(inst)));if(this._canAdjustMonth(inst,-1,drawYear,drawMonth)){prev=$(\"<a>\").attr({\"class\":\"ui-datepicker-prev ui-corner-all\",\"data-handler\":\"prev\",\"data-event\":\"click\",title:prevText}).append($(\"<span>\").addClass(\"ui-icon ui-icon-circle-triangle-\"+\n(isRTL?\"e\":\"w\")).text(prevText))[0].outerHTML;}else if(hideIfNoPrevNext){prev=\"\";}else{prev=$(\"<a>\").attr({\"class\":\"ui-datepicker-prev ui-corner-all ui-state-disabled\",title:prevText}).append($(\"<span>\").addClass(\"ui-icon ui-icon-circle-triangle-\"+\n(isRTL?\"e\":\"w\")).text(prevText))[0].outerHTML;}\nnextText=this._get(inst,\"nextText\");nextText=(!navigationAsDateFormat?nextText:this.formatDate(nextText,this._daylightSavingAdjust(new Date(drawYear,drawMonth+stepMonths,1)),this._getFormatConfig(inst)));if(this._canAdjustMonth(inst,+1,drawYear,drawMonth)){next=$(\"<a>\").attr({\"class\":\"ui-datepicker-next ui-corner-all\",\"data-handler\":\"next\",\"data-event\":\"click\",title:nextText}).append($(\"<span>\").addClass(\"ui-icon ui-icon-circle-triangle-\"+\n(isRTL?\"w\":\"e\")).text(nextText))[0].outerHTML;}else if(hideIfNoPrevNext){next=\"\";}else{next=$(\"<a>\").attr({\"class\":\"ui-datepicker-next ui-corner-all ui-state-disabled\",title:nextText}).append($(\"<span>\").attr(\"class\",\"ui-icon ui-icon-circle-triangle-\"+\n(isRTL?\"w\":\"e\")).text(nextText))[0].outerHTML;}\ncurrentText=this._get(inst,\"currentText\");gotoDate=(this._get(inst,\"gotoCurrent\")&&inst.currentDay?currentDate:today);currentText=(!navigationAsDateFormat?currentText:this.formatDate(currentText,gotoDate,this._getFormatConfig(inst)));controls=\"\";if(!inst.inline){controls=$(\"<button>\").attr({type:\"button\",\"class\":\"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all\",\"data-handler\":\"hide\",\"data-event\":\"click\"}).text(this._get(inst,\"closeText\"))[0].outerHTML;}\nbuttonPanel=\"\";if(showButtonPanel){buttonPanel=$(\"<div class='ui-datepicker-buttonpane ui-widget-content'>\").append(isRTL?controls:\"\").append(this._isInRange(inst,gotoDate)?$(\"<button>\").attr({type:\"button\",\"class\":\"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all\",\"data-handler\":\"today\",\"data-event\":\"click\"}).text(currentText):\"\").append(isRTL?\"\":controls)[0].outerHTML;}\nfirstDay=parseInt(this._get(inst,\"firstDay\"),10);firstDay=(isNaN(firstDay)?0:firstDay);showWeek=this._get(inst,\"showWeek\");dayNames=this._get(inst,\"dayNames\");dayNamesMin=this._get(inst,\"dayNamesMin\");monthNames=this._get(inst,\"monthNames\");monthNamesShort=this._get(inst,\"monthNamesShort\");beforeShowDay=this._get(inst,\"beforeShowDay\");showOtherMonths=this._get(inst,\"showOtherMonths\");selectOtherMonths=this._get(inst,\"selectOtherMonths\");defaultDate=this._getDefaultDate(inst);html=\"\";for(row=0;row<numMonths[0];row++){group=\"\";this.maxRows=4;for(col=0;col<numMonths[1];col++){selectedDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,inst.selectedDay));cornerClass=\" ui-corner-all\";calender=\"\";if(isMultiMonth){calender+=\"<div class='ui-datepicker-group\";if(numMonths[1]>1){switch(col){case 0:calender+=\" ui-datepicker-group-first\";cornerClass=\" ui-corner-\"+(isRTL?\"right\":\"left\");break;case numMonths[1]-1:calender+=\" ui-datepicker-group-last\";cornerClass=\" ui-corner-\"+(isRTL?\"left\":\"right\");break;default:calender+=\" ui-datepicker-group-middle\";cornerClass=\"\";break;}}\ncalender+=\"'>\";}\ncalender+=\"<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix\"+cornerClass+\"'>\"+\n(/all|left/.test(cornerClass)&&row===0?(isRTL?next:prev):\"\")+\n(/all|right/.test(cornerClass)&&row===0?(isRTL?prev:next):\"\")+\nthis._generateMonthYearHeader(inst,drawMonth,drawYear,minDate,maxDate,row>0||col>0,monthNames,monthNamesShort)+\"</div><table class='ui-datepicker-calendar'><thead>\"+\"<tr>\";thead=(showWeek?\"<th class='ui-datepicker-week-col'>\"+this._get(inst,\"weekHeader\")+\"</th>\":\"\");for(dow=0;dow<7;dow++){day=(dow+firstDay)%7;thead+=\"<th scope='col'\"+((dow+firstDay+6)%7>=5?\" class='ui-datepicker-week-end'\":\"\")+\">\"+\"<span title='\"+dayNames[day]+\"'>\"+dayNamesMin[day]+\"</span></th>\";}\ncalender+=thead+\"</tr></thead><tbody>\";daysInMonth=this._getDaysInMonth(drawYear,drawMonth);if(drawYear===inst.selectedYear&&drawMonth===inst.selectedMonth){inst.selectedDay=Math.min(inst.selectedDay,daysInMonth);}\nleadDays=(this._getFirstDayOfMonth(drawYear,drawMonth)-firstDay+7)%7;curRows=Math.ceil((leadDays+daysInMonth)/ 7);numRows=(isMultiMonth?this.maxRows>curRows?this.maxRows:curRows:curRows);this.maxRows=numRows;printDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,1-leadDays));for(dRow=0;dRow<numRows;dRow++){calender+=\"<tr>\";tbody=(!showWeek?\"\":\"<td class='ui-datepicker-week-col'>\"+\nthis._get(inst,\"calculateWeek\")(printDate)+\"</td>\");for(dow=0;dow<7;dow++){daySettings=(beforeShowDay?beforeShowDay.apply((inst.input?inst.input[0]:null),[printDate]):[true,\"\"]);otherMonth=(printDate.getMonth()!==drawMonth);unselectable=(otherMonth&&!selectOtherMonths)||!daySettings[0]||(minDate&&printDate<minDate)||(maxDate&&printDate>maxDate);tbody+=\"<td class='\"+\n((dow+firstDay+6)%7>=5?\" ui-datepicker-week-end\":\"\")+\n(otherMonth?\" ui-datepicker-other-month\":\"\")+\n((printDate.getTime()===selectedDate.getTime()&&drawMonth===inst.selectedMonth&&inst._keyEvent)||(defaultDate.getTime()===printDate.getTime()&&defaultDate.getTime()===selectedDate.getTime())?\" \"+this._dayOverClass:\"\")+\n(unselectable?\" \"+this._unselectableClass+\" ui-state-disabled\":\"\")+\n(otherMonth&&!showOtherMonths?\"\":\" \"+daySettings[1]+\n(printDate.getTime()===currentDate.getTime()?\" \"+this._currentClass:\"\")+\n(printDate.getTime()===today.getTime()?\" ui-datepicker-today\":\"\"))+\"'\"+\n((!otherMonth||showOtherMonths)&&daySettings[2]?\" title='\"+daySettings[2].replace(/'/g,\"&#39;\")+\"'\":\"\")+\n(unselectable?\"\":\" data-handler='selectDay' data-event='click' data-month='\"+printDate.getMonth()+\"' data-year='\"+printDate.getFullYear()+\"'\")+\">\"+\n(otherMonth&&!showOtherMonths?\"&#xa0;\":(unselectable?\"<span class='ui-state-default'>\"+printDate.getDate()+\"</span>\":\"<a class='ui-state-default\"+\n(printDate.getTime()===today.getTime()?\" ui-state-highlight\":\"\")+\n(printDate.getTime()===currentDate.getTime()?\" ui-state-active\":\"\")+\n(otherMonth?\" ui-priority-secondary\":\"\")+\"' href='#' aria-current='\"+(printDate.getTime()===currentDate.getTime()?\"true\":\"false\")+\"' data-date='\"+printDate.getDate()+\"'>\"+printDate.getDate()+\"</a>\"))+\"</td>\";printDate.setDate(printDate.getDate()+1);printDate=this._daylightSavingAdjust(printDate);}\ncalender+=tbody+\"</tr>\";}\ndrawMonth++;if(drawMonth>11){drawMonth=0;drawYear++;}\ncalender+=\"</tbody></table>\"+(isMultiMonth?\"</div>\"+\n((numMonths[0]>0&&col===numMonths[1]-1)?\"<div class='ui-datepicker-row-break'></div>\":\"\"):\"\");group+=calender;}\nhtml+=group;}\nhtml+=buttonPanel;inst._keyEvent=false;return html;},_generateMonthYearHeader:function(inst,drawMonth,drawYear,minDate,maxDate,secondary,monthNames,monthNamesShort){var inMinYear,inMaxYear,month,years,thisYear,determineYear,year,endYear,changeMonth=this._get(inst,\"changeMonth\"),changeYear=this._get(inst,\"changeYear\"),showMonthAfterYear=this._get(inst,\"showMonthAfterYear\"),selectMonthLabel=this._get(inst,\"selectMonthLabel\"),selectYearLabel=this._get(inst,\"selectYearLabel\"),html=\"<div class='ui-datepicker-title'>\",monthHtml=\"\";if(secondary||!changeMonth){monthHtml+=\"<span class='ui-datepicker-month'>\"+monthNames[drawMonth]+\"</span>\";}else{inMinYear=(minDate&&minDate.getFullYear()===drawYear);inMaxYear=(maxDate&&maxDate.getFullYear()===drawYear);monthHtml+=\"<select class='ui-datepicker-month' aria-label='\"+selectMonthLabel+\"' data-handler='selectMonth' data-event='change'>\";for(month=0;month<12;month++){if((!inMinYear||month>=minDate.getMonth())&&(!inMaxYear||month<=maxDate.getMonth())){monthHtml+=\"<option value='\"+month+\"'\"+\n(month===drawMonth?\" selected='selected'\":\"\")+\">\"+monthNamesShort[month]+\"</option>\";}}\nmonthHtml+=\"</select>\";}\nif(!showMonthAfterYear){html+=monthHtml+(secondary||!(changeMonth&&changeYear)?\"&#xa0;\":\"\");}\nif(!inst.yearshtml){inst.yearshtml=\"\";if(secondary||!changeYear){html+=\"<span class='ui-datepicker-year'>\"+drawYear+\"</span>\";}else{years=this._get(inst,\"yearRange\").split(\":\");thisYear=new Date().getFullYear();determineYear=function(value){var year=(value.match(/c[+\\-].*/)?drawYear+parseInt(value.substring(1),10):(value.match(/[+\\-].*/)?thisYear+parseInt(value,10):parseInt(value,10)));return(isNaN(year)?thisYear:year);};year=determineYear(years[0]);endYear=Math.max(year,determineYear(years[1]||\"\"));year=(minDate?Math.max(year,minDate.getFullYear()):year);endYear=(maxDate?Math.min(endYear,maxDate.getFullYear()):endYear);inst.yearshtml+=\"<select class='ui-datepicker-year' aria-label='\"+selectYearLabel+\"' data-handler='selectYear' data-event='change'>\";for(;year<=endYear;year++){inst.yearshtml+=\"<option value='\"+year+\"'\"+\n(year===drawYear?\" selected='selected'\":\"\")+\">\"+year+\"</option>\";}\ninst.yearshtml+=\"</select>\";html+=inst.yearshtml;inst.yearshtml=null;}}\nhtml+=this._get(inst,\"yearSuffix\");if(showMonthAfterYear){html+=(secondary||!(changeMonth&&changeYear)?\"&#xa0;\":\"\")+monthHtml;}\nhtml+=\"</div>\";return html;},_adjustInstDate:function(inst,offset,period){var year=inst.selectedYear+(period===\"Y\"?offset:0),month=inst.selectedMonth+(period===\"M\"?offset:0),day=Math.min(inst.selectedDay,this._getDaysInMonth(year,month))+(period===\"D\"?offset:0),date=this._restrictMinMax(inst,this._daylightSavingAdjust(new Date(year,month,day)));inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();if(period===\"M\"||period===\"Y\"){this._notifyChange(inst);}},_restrictMinMax:function(inst,date){var minDate=this._getMinMaxDate(inst,\"min\"),maxDate=this._getMinMaxDate(inst,\"max\"),newDate=(minDate&&date<minDate?minDate:date);return(maxDate&&newDate>maxDate?maxDate:newDate);},_notifyChange:function(inst){var onChange=this._get(inst,\"onChangeMonthYear\");if(onChange){onChange.apply((inst.input?inst.input[0]:null),[inst.selectedYear,inst.selectedMonth+1,inst]);}},_getNumberOfMonths:function(inst){var numMonths=this._get(inst,\"numberOfMonths\");return(numMonths==null?[1,1]:(typeof numMonths===\"number\"?[1,numMonths]:numMonths));},_getMinMaxDate:function(inst,minMax){return this._determineDate(inst,this._get(inst,minMax+\"Date\"),null);},_getDaysInMonth:function(year,month){return 32-this._daylightSavingAdjust(new Date(year,month,32)).getDate();},_getFirstDayOfMonth:function(year,month){return new Date(year,month,1).getDay();},_canAdjustMonth:function(inst,offset,curYear,curMonth){var numMonths=this._getNumberOfMonths(inst),date=this._daylightSavingAdjust(new Date(curYear,curMonth+(offset<0?offset:numMonths[0]*numMonths[1]),1));if(offset<0){date.setDate(this._getDaysInMonth(date.getFullYear(),date.getMonth()));}\nreturn this._isInRange(inst,date);},_isInRange:function(inst,date){var yearSplit,currentYear,minDate=this._getMinMaxDate(inst,\"min\"),maxDate=this._getMinMaxDate(inst,\"max\"),minYear=null,maxYear=null,years=this._get(inst,\"yearRange\");if(years){yearSplit=years.split(\":\");currentYear=new Date().getFullYear();minYear=parseInt(yearSplit[0],10);maxYear=parseInt(yearSplit[1],10);if(yearSplit[0].match(/[+\\-].*/)){minYear+=currentYear;}\nif(yearSplit[1].match(/[+\\-].*/)){maxYear+=currentYear;}}\nreturn((!minDate||date.getTime()>=minDate.getTime())&&(!maxDate||date.getTime()<=maxDate.getTime())&&(!minYear||date.getFullYear()>=minYear)&&(!maxYear||date.getFullYear()<=maxYear));},_getFormatConfig:function(inst){var shortYearCutoff=this._get(inst,\"shortYearCutoff\");shortYearCutoff=(typeof shortYearCutoff!==\"string\"?shortYearCutoff:new Date().getFullYear()%100+parseInt(shortYearCutoff,10));return{shortYearCutoff:shortYearCutoff,dayNamesShort:this._get(inst,\"dayNamesShort\"),dayNames:this._get(inst,\"dayNames\"),monthNamesShort:this._get(inst,\"monthNamesShort\"),monthNames:this._get(inst,\"monthNames\")};},_formatDate:function(inst,day,month,year){if(!day){inst.currentDay=inst.selectedDay;inst.currentMonth=inst.selectedMonth;inst.currentYear=inst.selectedYear;}\nvar date=(day?(typeof day===\"object\"?day:this._daylightSavingAdjust(new Date(year,month,day))):this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return this.formatDate(this._get(inst,\"dateFormat\"),date,this._getFormatConfig(inst));}});function datepicker_bindHover(dpDiv){var selector=\"button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a\";return dpDiv.on(\"mouseout\",selector,function(){$(this).removeClass(\"ui-state-hover\");if(this.className.indexOf(\"ui-datepicker-prev\")!==-1){$(this).removeClass(\"ui-datepicker-prev-hover\");}\nif(this.className.indexOf(\"ui-datepicker-next\")!==-1){$(this).removeClass(\"ui-datepicker-next-hover\");}}).on(\"mouseover\",selector,datepicker_handleMouseover);}\nfunction datepicker_handleMouseover(){if(!$.datepicker._isDisabledDatepicker(datepicker_instActive.inline?datepicker_instActive.dpDiv.parent()[0]:datepicker_instActive.input[0])){$(this).parents(\".ui-datepicker-calendar\").find(\"a\").removeClass(\"ui-state-hover\");$(this).addClass(\"ui-state-hover\");if(this.className.indexOf(\"ui-datepicker-prev\")!==-1){$(this).addClass(\"ui-datepicker-prev-hover\");}\nif(this.className.indexOf(\"ui-datepicker-next\")!==-1){$(this).addClass(\"ui-datepicker-next-hover\");}}}\nfunction datepicker_extendRemove(target,props){$.extend(target,props);for(var name in props){if(props[name]==null){target[name]=props[name];}}\nreturn target;}\n$.fn.datepicker=function(options){if(!this.length){return this;}\nif(!$.datepicker.initialized){$(document).on(\"mousedown\",$.datepicker._checkExternalClick);$.datepicker.initialized=true;}\nif($(\"#\"+$.datepicker._mainDivId).length===0){$(\"body\").append($.datepicker.dpDiv);}\nvar otherArgs=Array.prototype.slice.call(arguments,1);if(typeof options===\"string\"&&(options===\"isDisabled\"||options===\"getDate\"||options===\"widget\")){return $.datepicker[\"_\"+options+\"Datepicker\"].apply($.datepicker,[this[0]].concat(otherArgs));}\nif(options===\"option\"&&arguments.length===2&&typeof arguments[1]===\"string\"){return $.datepicker[\"_\"+options+\"Datepicker\"].apply($.datepicker,[this[0]].concat(otherArgs));}\nreturn this.each(function(){if(typeof options===\"string\"){$.datepicker[\"_\"+options+\"Datepicker\"].apply($.datepicker,[this].concat(otherArgs));}else{$.datepicker._attachDatepicker(this,options);}});};$.datepicker=new Datepicker();$.datepicker.initialized=false;$.datepicker.uuid=new Date().getTime();$.datepicker.version=\"1.13.2\";return $.datepicker;});","jquery/ui-modules/widgets/dialog.min.js":"/*!\n * jQuery UI Dialog 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"./button\",\"./draggable\",\"./mouse\",\"./resizable\",\"../focusable\",\"../keycode\",\"../position\",\"../safe-active-element\",\"../safe-blur\",\"../tabbable\",\"../unique-id\",\"../version\",\"../widget\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";$.widget(\"ui.dialog\",{version:\"1.13.2\",options:{appendTo:\"body\",autoOpen:true,buttons:[],classes:{\"ui-dialog\":\"ui-corner-all\",\"ui-dialog-titlebar\":\"ui-corner-all\"},closeOnEscape:true,closeText:\"Close\",draggable:true,hide:null,height:\"auto\",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:false,position:{my:\"center\",at:\"center\",of:window,collision:\"fit\",using:function(pos){var topOffset=$(this).css(pos).offset().top;if(topOffset<0){$(this).css(\"top\",pos.top-topOffset);}}},resizable:true,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:true,height:true,maxHeight:true,maxWidth:true,minHeight:true,minWidth:true,width:true},resizableRelatedOptions:{maxHeight:true,maxWidth:true,minHeight:true,minWidth:true},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height};this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)};this.originalTitle=this.element.attr(\"title\");if(this.options.title==null&&this.originalTitle!=null){this.options.title=this.originalTitle;}\nif(this.options.disabled){this.options.disabled=false;}\nthis._createWrapper();this.element.show().removeAttr(\"title\").appendTo(this.uiDialog);this._addClass(\"ui-dialog-content\",\"ui-widget-content\");this._createTitlebar();this._createButtonPane();if(this.options.draggable&&$.fn.draggable){this._makeDraggable();}\nif(this.options.resizable&&$.fn.resizable){this._makeResizable();}\nthis._isOpen=false;this._trackFocus();},_init:function(){if(this.options.autoOpen){this.open();}},_appendTo:function(){var element=this.options.appendTo;if(element&&(element.jquery||element.nodeType)){return $(element);}\nreturn this.document.find(element||\"body\").eq(0);},_destroy:function(){var next,originalPosition=this.originalPosition;this._untrackInstance();this._destroyOverlay();this.element.removeUniqueId().css(this.originalCss).detach();this.uiDialog.remove();if(this.originalTitle){this.element.attr(\"title\",this.originalTitle);}\nnext=originalPosition.parent.children().eq(originalPosition.index);if(next.length&&next[0]!==this.element[0]){next.before(this.element);}else{originalPosition.parent.append(this.element);}},widget:function(){return this.uiDialog;},disable:$.noop,enable:$.noop,close:function(event){var that=this;if(!this._isOpen||this._trigger(\"beforeClose\",event)===false){return;}\nthis._isOpen=false;this._focusedElement=null;this._destroyOverlay();this._untrackInstance();if(!this.opener.filter(\":focusable\").trigger(\"focus\").length){$.ui.safeBlur($.ui.safeActiveElement(this.document[0]));}\nthis._hide(this.uiDialog,this.options.hide,function(){that._trigger(\"close\",event);});},isOpen:function(){return this._isOpen;},moveToTop:function(){this._moveToTop();},_moveToTop:function(event,silent){var moved=false,zIndices=this.uiDialog.siblings(\".ui-front:visible\").map(function(){return+$(this).css(\"z-index\");}).get(),zIndexMax=Math.max.apply(null,zIndices);if(zIndexMax>=+this.uiDialog.css(\"z-index\")){this.uiDialog.css(\"z-index\",zIndexMax+1);moved=true;}\nif(moved&&!silent){this._trigger(\"focus\",event);}\nreturn moved;},open:function(){var that=this;if(this._isOpen){if(this._moveToTop()){this._focusTabbable();}\nreturn;}\nthis._isOpen=true;this.opener=$($.ui.safeActiveElement(this.document[0]));this._size();this._position();this._createOverlay();this._moveToTop(null,true);if(this.overlay){this.overlay.css(\"z-index\",this.uiDialog.css(\"z-index\")-1);}\nthis._show(this.uiDialog,this.options.show,function(){that._focusTabbable();that._trigger(\"focus\");});this._makeFocusTarget();this._trigger(\"open\");},_focusTabbable:function(){var hasFocus=this._focusedElement;if(!hasFocus){hasFocus=this.element.find(\"[autofocus]\");}\nif(!hasFocus.length){hasFocus=this.element.find(\":tabbable\");}\nif(!hasFocus.length){hasFocus=this.uiDialogButtonPane.find(\":tabbable\");}\nif(!hasFocus.length){hasFocus=this.uiDialogTitlebarClose.filter(\":tabbable\");}\nif(!hasFocus.length){hasFocus=this.uiDialog;}\nhasFocus.eq(0).trigger(\"focus\");},_restoreTabbableFocus:function(){var activeElement=$.ui.safeActiveElement(this.document[0]),isActive=this.uiDialog[0]===activeElement||$.contains(this.uiDialog[0],activeElement);if(!isActive){this._focusTabbable();}},_keepFocus:function(event){event.preventDefault();this._restoreTabbableFocus();this._delay(this._restoreTabbableFocus);},_createWrapper:function(){this.uiDialog=$(\"<div>\").hide().attr({tabIndex:-1,role:\"dialog\"}).appendTo(this._appendTo());this._addClass(this.uiDialog,\"ui-dialog\",\"ui-widget ui-widget-content ui-front\");this._on(this.uiDialog,{keydown:function(event){if(this.options.closeOnEscape&&!event.isDefaultPrevented()&&event.keyCode&&event.keyCode===$.ui.keyCode.ESCAPE){event.preventDefault();this.close(event);return;}\nif(event.keyCode!==$.ui.keyCode.TAB||event.isDefaultPrevented()){return;}\nvar tabbables=this.uiDialog.find(\":tabbable\"),first=tabbables.first(),last=tabbables.last();if((event.target===last[0]||event.target===this.uiDialog[0])&&!event.shiftKey){this._delay(function(){first.trigger(\"focus\");});event.preventDefault();}else if((event.target===first[0]||event.target===this.uiDialog[0])&&event.shiftKey){this._delay(function(){last.trigger(\"focus\");});event.preventDefault();}},mousedown:function(event){if(this._moveToTop(event)){this._focusTabbable();}}});if(!this.element.find(\"[aria-describedby]\").length){this.uiDialog.attr({\"aria-describedby\":this.element.uniqueId().attr(\"id\")});}},_createTitlebar:function(){var uiDialogTitle;this.uiDialogTitlebar=$(\"<div>\");this._addClass(this.uiDialogTitlebar,\"ui-dialog-titlebar\",\"ui-widget-header ui-helper-clearfix\");this._on(this.uiDialogTitlebar,{mousedown:function(event){if(!$(event.target).closest(\".ui-dialog-titlebar-close\")){this.uiDialog.trigger(\"focus\");}}});this.uiDialogTitlebarClose=$(\"<button type='button'></button>\").button({label:$(\"<a>\").text(this.options.closeText).html(),icon:\"ui-icon-closethick\",showLabel:false}).appendTo(this.uiDialogTitlebar);this._addClass(this.uiDialogTitlebarClose,\"ui-dialog-titlebar-close\");this._on(this.uiDialogTitlebarClose,{click:function(event){event.preventDefault();this.close(event);}});uiDialogTitle=$(\"<span>\").uniqueId().prependTo(this.uiDialogTitlebar);this._addClass(uiDialogTitle,\"ui-dialog-title\");this._title(uiDialogTitle);this.uiDialogTitlebar.prependTo(this.uiDialog);this.uiDialog.attr({\"aria-labelledby\":uiDialogTitle.attr(\"id\")});},_title:function(title){if(this.options.title){title.text(this.options.title);}else{title.html(\"&#160;\");}},_createButtonPane:function(){this.uiDialogButtonPane=$(\"<div>\");this._addClass(this.uiDialogButtonPane,\"ui-dialog-buttonpane\",\"ui-widget-content ui-helper-clearfix\");this.uiButtonSet=$(\"<div>\").appendTo(this.uiDialogButtonPane);this._addClass(this.uiButtonSet,\"ui-dialog-buttonset\");this._createButtons();},_createButtons:function(){var that=this,buttons=this.options.buttons;this.uiDialogButtonPane.remove();this.uiButtonSet.empty();if($.isEmptyObject(buttons)||(Array.isArray(buttons)&&!buttons.length)){this._removeClass(this.uiDialog,\"ui-dialog-buttons\");return;}\n$.each(buttons,function(name,props){var click,buttonOptions;props=typeof props===\"function\"?{click:props,text:name}:props;props=$.extend({type:\"button\"},props);click=props.click;buttonOptions={icon:props.icon,iconPosition:props.iconPosition,showLabel:props.showLabel,icons:props.icons,text:props.text};delete props.click;delete props.icon;delete props.iconPosition;delete props.showLabel;delete props.icons;if(typeof props.text===\"boolean\"){delete props.text;}\n$(\"<button></button>\",props).button(buttonOptions).appendTo(that.uiButtonSet).on(\"click\",function(){click.apply(that.element[0],arguments);});});this._addClass(this.uiDialog,\"ui-dialog-buttons\");this.uiDialogButtonPane.appendTo(this.uiDialog);},_makeDraggable:function(){var that=this,options=this.options;function filteredUi(ui){return{position:ui.position,offset:ui.offset};}\nthis.uiDialog.draggable({cancel:\".ui-dialog-content, .ui-dialog-titlebar-close\",handle:\".ui-dialog-titlebar\",containment:\"document\",start:function(event,ui){that._addClass($(this),\"ui-dialog-dragging\");that._blockFrames();that._trigger(\"dragStart\",event,filteredUi(ui));},drag:function(event,ui){that._trigger(\"drag\",event,filteredUi(ui));},stop:function(event,ui){var left=ui.offset.left-that.document.scrollLeft(),top=ui.offset.top-that.document.scrollTop();options.position={my:\"left top\",at:\"left\"+(left>=0?\"+\":\"\")+left+\" \"+\"top\"+(top>=0?\"+\":\"\")+top,of:that.window};that._removeClass($(this),\"ui-dialog-dragging\");that._unblockFrames();that._trigger(\"dragStop\",event,filteredUi(ui));}});},_makeResizable:function(){var that=this,options=this.options,handles=options.resizable,position=this.uiDialog.css(\"position\"),resizeHandles=typeof handles===\"string\"?handles:\"n,e,s,w,se,sw,ne,nw\";function filteredUi(ui){return{originalPosition:ui.originalPosition,originalSize:ui.originalSize,position:ui.position,size:ui.size};}\nthis.uiDialog.resizable({cancel:\".ui-dialog-content\",containment:\"document\",alsoResize:this.element,maxWidth:options.maxWidth,maxHeight:options.maxHeight,minWidth:options.minWidth,minHeight:this._minHeight(),handles:resizeHandles,start:function(event,ui){that._addClass($(this),\"ui-dialog-resizing\");that._blockFrames();that._trigger(\"resizeStart\",event,filteredUi(ui));},resize:function(event,ui){that._trigger(\"resize\",event,filteredUi(ui));},stop:function(event,ui){var offset=that.uiDialog.offset(),left=offset.left-that.document.scrollLeft(),top=offset.top-that.document.scrollTop();options.height=that.uiDialog.height();options.width=that.uiDialog.width();options.position={my:\"left top\",at:\"left\"+(left>=0?\"+\":\"\")+left+\" \"+\"top\"+(top>=0?\"+\":\"\")+top,of:that.window};that._removeClass($(this),\"ui-dialog-resizing\");that._unblockFrames();that._trigger(\"resizeStop\",event,filteredUi(ui));}}).css(\"position\",position);},_trackFocus:function(){this._on(this.widget(),{focusin:function(event){this._makeFocusTarget();this._focusedElement=$(event.target);}});},_makeFocusTarget:function(){this._untrackInstance();this._trackingInstances().unshift(this);},_untrackInstance:function(){var instances=this._trackingInstances(),exists=$.inArray(this,instances);if(exists!==-1){instances.splice(exists,1);}},_trackingInstances:function(){var instances=this.document.data(\"ui-dialog-instances\");if(!instances){instances=[];this.document.data(\"ui-dialog-instances\",instances);}\nreturn instances;},_minHeight:function(){var options=this.options;return options.height===\"auto\"?options.minHeight:Math.min(options.minHeight,options.height);},_position:function(){var isVisible=this.uiDialog.is(\":visible\");if(!isVisible){this.uiDialog.show();}\nthis.uiDialog.position(this.options.position);if(!isVisible){this.uiDialog.hide();}},_setOptions:function(options){var that=this,resize=false,resizableOptions={};$.each(options,function(key,value){that._setOption(key,value);if(key in that.sizeRelatedOptions){resize=true;}\nif(key in that.resizableRelatedOptions){resizableOptions[key]=value;}});if(resize){this._size();this._position();}\nif(this.uiDialog.is(\":data(ui-resizable)\")){this.uiDialog.resizable(\"option\",resizableOptions);}},_setOption:function(key,value){var isDraggable,isResizable,uiDialog=this.uiDialog;if(key===\"disabled\"){return;}\nthis._super(key,value);if(key===\"appendTo\"){this.uiDialog.appendTo(this._appendTo());}\nif(key===\"buttons\"){this._createButtons();}\nif(key===\"closeText\"){this.uiDialogTitlebarClose.button({label:$(\"<a>\").text(\"\"+this.options.closeText).html()});}\nif(key===\"draggable\"){isDraggable=uiDialog.is(\":data(ui-draggable)\");if(isDraggable&&!value){uiDialog.draggable(\"destroy\");}\nif(!isDraggable&&value){this._makeDraggable();}}\nif(key===\"position\"){this._position();}\nif(key===\"resizable\"){isResizable=uiDialog.is(\":data(ui-resizable)\");if(isResizable&&!value){uiDialog.resizable(\"destroy\");}\nif(isResizable&&typeof value===\"string\"){uiDialog.resizable(\"option\",\"handles\",value);}\nif(!isResizable&&value!==false){this._makeResizable();}}\nif(key===\"title\"){this._title(this.uiDialogTitlebar.find(\".ui-dialog-title\"));}},_size:function(){var nonContentHeight,minContentHeight,maxContentHeight,options=this.options;this.element.show().css({width:\"auto\",minHeight:0,maxHeight:\"none\",height:0});if(options.minWidth>options.width){options.width=options.minWidth;}\nnonContentHeight=this.uiDialog.css({height:\"auto\",width:options.width}).outerHeight();minContentHeight=Math.max(0,options.minHeight-nonContentHeight);maxContentHeight=typeof options.maxHeight===\"number\"?Math.max(0,options.maxHeight-nonContentHeight):\"none\";if(options.height===\"auto\"){this.element.css({minHeight:minContentHeight,maxHeight:maxContentHeight,height:\"auto\"});}else{this.element.height(Math.max(0,options.height-nonContentHeight));}\nif(this.uiDialog.is(\":data(ui-resizable)\")){this.uiDialog.resizable(\"option\",\"minHeight\",this._minHeight());}},_blockFrames:function(){this.iframeBlocks=this.document.find(\"iframe\").map(function(){var iframe=$(this);return $(\"<div>\").css({position:\"absolute\",width:iframe.outerWidth(),height:iframe.outerHeight()}).appendTo(iframe.parent()).offset(iframe.offset())[0];});},_unblockFrames:function(){if(this.iframeBlocks){this.iframeBlocks.remove();delete this.iframeBlocks;}},_allowInteraction:function(event){if($(event.target).closest(\".ui-dialog\").length){return true;}\nreturn!!$(event.target).closest(\".ui-datepicker\").length;},_createOverlay:function(){if(!this.options.modal){return;}\nvar jqMinor=$.fn.jquery.substring(0,4);var isOpening=true;this._delay(function(){isOpening=false;});if(!this.document.data(\"ui-dialog-overlays\")){this.document.on(\"focusin.ui-dialog\",function(event){if(isOpening){return;}\nvar instance=this._trackingInstances()[0];if(!instance._allowInteraction(event)){event.preventDefault();instance._focusTabbable();if(jqMinor===\"3.4.\"||jqMinor===\"3.5.\"){instance._delay(instance._restoreTabbableFocus);}}}.bind(this));}\nthis.overlay=$(\"<div>\").appendTo(this._appendTo());this._addClass(this.overlay,null,\"ui-widget-overlay ui-front\");this._on(this.overlay,{mousedown:\"_keepFocus\"});this.document.data(\"ui-dialog-overlays\",(this.document.data(\"ui-dialog-overlays\")||0)+1);},_destroyOverlay:function(){if(!this.options.modal){return;}\nif(this.overlay){var overlays=this.document.data(\"ui-dialog-overlays\")-1;if(!overlays){this.document.off(\"focusin.ui-dialog\");this.document.removeData(\"ui-dialog-overlays\");}else{this.document.data(\"ui-dialog-overlays\",overlays);}\nthis.overlay.remove();this.overlay=null;}}});if($.uiBackCompat!==false){$.widget(\"ui.dialog\",$.ui.dialog,{options:{dialogClass:\"\"},_createWrapper:function(){this._super();this.uiDialog.addClass(this.options.dialogClass);},_setOption:function(key,value){if(key===\"dialogClass\"){this.uiDialog.removeClass(this.options.dialogClass).addClass(value);}\nthis._superApply(arguments);}});}\nreturn $.ui.dialog;});","jquery/ui-modules/widgets/autocomplete.min.js":"/*!\n * jQuery UI Autocomplete 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"./menu\",\"../keycode\",\"../position\",\"../safe-active-element\",\"../version\",\"../widget\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";$.widget(\"ui.autocomplete\",{version:\"1.13.2\",defaultElement:\"<input>\",options:{appendTo:null,autoFocus:false,delay:300,minLength:1,position:{my:\"left top\",at:\"left bottom\",collision:\"none\"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,liveRegionTimer:null,_create:function(){var suppressKeyPress,suppressKeyPressRepeat,suppressInput,nodeName=this.element[0].nodeName.toLowerCase(),isTextarea=nodeName===\"textarea\",isInput=nodeName===\"input\";this.isMultiLine=isTextarea||!isInput&&this._isContentEditable(this.element);this.valueMethod=this.element[isTextarea||isInput?\"val\":\"text\"];this.isNewMenu=true;this._addClass(\"ui-autocomplete-input\");this.element.attr(\"autocomplete\",\"off\");this._on(this.element,{keydown:function(event){if(this.element.prop(\"readOnly\")){suppressKeyPress=true;suppressInput=true;suppressKeyPressRepeat=true;return;}\nsuppressKeyPress=false;suppressInput=false;suppressKeyPressRepeat=false;var keyCode=$.ui.keyCode;switch(event.keyCode){case keyCode.PAGE_UP:suppressKeyPress=true;this._move(\"previousPage\",event);break;case keyCode.PAGE_DOWN:suppressKeyPress=true;this._move(\"nextPage\",event);break;case keyCode.UP:suppressKeyPress=true;this._keyEvent(\"previous\",event);break;case keyCode.DOWN:suppressKeyPress=true;this._keyEvent(\"next\",event);break;case keyCode.ENTER:if(this.menu.active){suppressKeyPress=true;event.preventDefault();this.menu.select(event);}\nbreak;case keyCode.TAB:if(this.menu.active){this.menu.select(event);}\nbreak;case keyCode.ESCAPE:if(this.menu.element.is(\":visible\")){if(!this.isMultiLine){this._value(this.term);}\nthis.close(event);event.preventDefault();}\nbreak;default:suppressKeyPressRepeat=true;this._searchTimeout(event);break;}},keypress:function(event){if(suppressKeyPress){suppressKeyPress=false;if(!this.isMultiLine||this.menu.element.is(\":visible\")){event.preventDefault();}\nreturn;}\nif(suppressKeyPressRepeat){return;}\nvar keyCode=$.ui.keyCode;switch(event.keyCode){case keyCode.PAGE_UP:this._move(\"previousPage\",event);break;case keyCode.PAGE_DOWN:this._move(\"nextPage\",event);break;case keyCode.UP:this._keyEvent(\"previous\",event);break;case keyCode.DOWN:this._keyEvent(\"next\",event);break;}},input:function(event){if(suppressInput){suppressInput=false;event.preventDefault();return;}\nthis._searchTimeout(event);},focus:function(){this.selectedItem=null;this.previous=this._value();},blur:function(event){clearTimeout(this.searching);this.close(event);this._change(event);}});this._initSource();this.menu=$(\"<ul>\").appendTo(this._appendTo()).menu({role:null}).hide().attr({\"unselectable\":\"on\"}).menu(\"instance\");this._addClass(this.menu.element,\"ui-autocomplete\",\"ui-front\");this._on(this.menu.element,{mousedown:function(event){event.preventDefault();},menufocus:function(event,ui){var label,item;if(this.isNewMenu){this.isNewMenu=false;if(event.originalEvent&&/^mouse/.test(event.originalEvent.type)){this.menu.blur();this.document.one(\"mousemove\",function(){$(event.target).trigger(event.originalEvent);});return;}}\nitem=ui.item.data(\"ui-autocomplete-item\");if(false!==this._trigger(\"focus\",event,{item:item})){if(event.originalEvent&&/^key/.test(event.originalEvent.type)){this._value(item.value);}}\nlabel=ui.item.attr(\"aria-label\")||item.value;if(label&&String.prototype.trim.call(label).length){clearTimeout(this.liveRegionTimer);this.liveRegionTimer=this._delay(function(){this.liveRegion.html($(\"<div>\").text(label));},100);}},menuselect:function(event,ui){var item=ui.item.data(\"ui-autocomplete-item\"),previous=this.previous;if(this.element[0]!==$.ui.safeActiveElement(this.document[0])){this.element.trigger(\"focus\");this.previous=previous;this._delay(function(){this.previous=previous;this.selectedItem=item;});}\nif(false!==this._trigger(\"select\",event,{item:item})){this._value(item.value);}\nthis.term=this._value();this.close(event);this.selectedItem=item;}});this.liveRegion=$(\"<div>\",{role:\"status\",\"aria-live\":\"assertive\",\"aria-relevant\":\"additions\"}).appendTo(this.document[0].body);this._addClass(this.liveRegion,null,\"ui-helper-hidden-accessible\");this._on(this.window,{beforeunload:function(){this.element.removeAttr(\"autocomplete\");}});},_destroy:function(){clearTimeout(this.searching);this.element.removeAttr(\"autocomplete\");this.menu.element.remove();this.liveRegion.remove();},_setOption:function(key,value){this._super(key,value);if(key===\"source\"){this._initSource();}\nif(key===\"appendTo\"){this.menu.element.appendTo(this._appendTo());}\nif(key===\"disabled\"&&value&&this.xhr){this.xhr.abort();}},_isEventTargetInWidget:function(event){var menuElement=this.menu.element[0];return event.target===this.element[0]||event.target===menuElement||$.contains(menuElement,event.target);},_closeOnClickOutside:function(event){if(!this._isEventTargetInWidget(event)){this.close();}},_appendTo:function(){var element=this.options.appendTo;if(element){element=element.jquery||element.nodeType?$(element):this.document.find(element).eq(0);}\nif(!element||!element[0]){element=this.element.closest(\".ui-front, dialog\");}\nif(!element.length){element=this.document[0].body;}\nreturn element;},_initSource:function(){var array,url,that=this;if(Array.isArray(this.options.source)){array=this.options.source;this.source=function(request,response){response($.ui.autocomplete.filter(array,request.term));};}else if(typeof this.options.source===\"string\"){url=this.options.source;this.source=function(request,response){if(that.xhr){that.xhr.abort();}\nthat.xhr=$.ajax({url:url,data:request,dataType:\"json\",success:function(data){response(data);},error:function(){response([]);}});};}else{this.source=this.options.source;}},_searchTimeout:function(event){clearTimeout(this.searching);this.searching=this._delay(function(){var equalValues=this.term===this._value(),menuVisible=this.menu.element.is(\":visible\"),modifierKey=event.altKey||event.ctrlKey||event.metaKey||event.shiftKey;if(!equalValues||(equalValues&&!menuVisible&&!modifierKey)){this.selectedItem=null;this.search(null,event);}},this.options.delay);},search:function(value,event){value=value!=null?value:this._value();this.term=this._value();if(value.length<this.options.minLength){return this.close(event);}\nif(this._trigger(\"search\",event)===false){return;}\nreturn this._search(value);},_search:function(value){this.pending++;this._addClass(\"ui-autocomplete-loading\");this.cancelSearch=false;this.source({term:value},this._response());},_response:function(){var index=++this.requestIndex;return function(content){if(index===this.requestIndex){this.__response(content);}\nthis.pending--;if(!this.pending){this._removeClass(\"ui-autocomplete-loading\");}}.bind(this);},__response:function(content){if(content){content=this._normalize(content);}\nthis._trigger(\"response\",null,{content:content});if(!this.options.disabled&&content&&content.length&&!this.cancelSearch){this._suggest(content);this._trigger(\"open\");}else{this._close();}},close:function(event){this.cancelSearch=true;this._close(event);},_close:function(event){this._off(this.document,\"mousedown\");if(this.menu.element.is(\":visible\")){this.menu.element.hide();this.menu.blur();this.isNewMenu=true;this._trigger(\"close\",event);}},_change:function(event){if(this.previous!==this._value()){this._trigger(\"change\",event,{item:this.selectedItem});}},_normalize:function(items){if(items.length&&items[0].label&&items[0].value){return items;}\nreturn $.map(items,function(item){if(typeof item===\"string\"){return{label:item,value:item};}\nreturn $.extend({},item,{label:item.label||item.value,value:item.value||item.label});});},_suggest:function(items){var ul=this.menu.element.empty();this._renderMenu(ul,items);this.isNewMenu=true;this.menu.refresh();ul.show();this._resizeMenu();ul.position($.extend({of:this.element},this.options.position));if(this.options.autoFocus){this.menu.next();}\nthis._on(this.document,{mousedown:\"_closeOnClickOutside\"});},_resizeMenu:function(){var ul=this.menu.element;ul.outerWidth(Math.max(ul.width(\"\").outerWidth()+1,this.element.outerWidth()));},_renderMenu:function(ul,items){var that=this;$.each(items,function(index,item){that._renderItemData(ul,item);});},_renderItemData:function(ul,item){return this._renderItem(ul,item).data(\"ui-autocomplete-item\",item);},_renderItem:function(ul,item){return $(\"<li>\").append($(\"<div>\").text(item.label)).appendTo(ul);},_move:function(direction,event){if(!this.menu.element.is(\":visible\")){this.search(null,event);return;}\nif(this.menu.isFirstItem()&&/^previous/.test(direction)||this.menu.isLastItem()&&/^next/.test(direction)){if(!this.isMultiLine){this._value(this.term);}\nthis.menu.blur();return;}\nthis.menu[direction](event);},widget:function(){return this.menu.element;},_value:function(){return this.valueMethod.apply(this.element,arguments);},_keyEvent:function(keyEvent,event){if(!this.isMultiLine||this.menu.element.is(\":visible\")){this._move(keyEvent,event);event.preventDefault();}},_isContentEditable:function(element){if(!element.length){return false;}\nvar editable=element.prop(\"contentEditable\");if(editable===\"inherit\"){return this._isContentEditable(element.parent());}\nreturn editable===\"true\";}});$.extend($.ui.autocomplete,{escapeRegex:function(value){return value.replace(/[\\-\\[\\]{}()*+?.,\\\\\\^$|#\\s]/g,\"\\\\$&\");},filter:function(array,term){var matcher=new RegExp($.ui.autocomplete.escapeRegex(term),\"i\");return $.grep(array,function(value){return matcher.test(value.label||value.value||value);});}});$.widget(\"ui.autocomplete\",$.ui.autocomplete,{options:{messages:{noResults:\"No search results.\",results:function(amount){return amount+(amount>1?\" results are\":\" result is\")+\" available, use up and down arrow keys to navigate.\";}}},__response:function(content){var message;this._superApply(arguments);if(this.options.disabled||this.cancelSearch){return;}\nif(content&&content.length){message=this.options.messages.results(content.length);}else{message=this.options.messages.noResults;}\nclearTimeout(this.liveRegionTimer);this.liveRegionTimer=this._delay(function(){this.liveRegion.html($(\"<div>\").text(message));},100);}});return $.ui.autocomplete;});","jquery/ui-modules/widgets/selectable.min.js":"/*!\n * jQuery UI Selectable 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"./mouse\",\"../version\",\"../widget\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";return $.widget(\"ui.selectable\",$.ui.mouse,{version:\"1.13.2\",options:{appendTo:\"body\",autoRefresh:true,distance:0,filter:\"*\",tolerance:\"touch\",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var that=this;this._addClass(\"ui-selectable\");this.dragged=false;this.refresh=function(){that.elementPos=$(that.element[0]).offset();that.selectees=$(that.options.filter,that.element[0]);that._addClass(that.selectees,\"ui-selectee\");that.selectees.each(function(){var $this=$(this),selecteeOffset=$this.offset(),pos={left:selecteeOffset.left-that.elementPos.left,top:selecteeOffset.top-that.elementPos.top};$.data(this,\"selectable-item\",{element:this,$element:$this,left:pos.left,top:pos.top,right:pos.left+$this.outerWidth(),bottom:pos.top+$this.outerHeight(),startselected:false,selected:$this.hasClass(\"ui-selected\"),selecting:$this.hasClass(\"ui-selecting\"),unselecting:$this.hasClass(\"ui-unselecting\")});});};this.refresh();this._mouseInit();this.helper=$(\"<div>\");this._addClass(this.helper,\"ui-selectable-helper\");},_destroy:function(){this.selectees.removeData(\"selectable-item\");this._mouseDestroy();},_mouseStart:function(event){var that=this,options=this.options;this.opos=[event.pageX,event.pageY];this.elementPos=$(this.element[0]).offset();if(this.options.disabled){return;}\nthis.selectees=$(options.filter,this.element[0]);this._trigger(\"start\",event);$(options.appendTo).append(this.helper);this.helper.css({\"left\":event.pageX,\"top\":event.pageY,\"width\":0,\"height\":0});if(options.autoRefresh){this.refresh();}\nthis.selectees.filter(\".ui-selected\").each(function(){var selectee=$.data(this,\"selectable-item\");selectee.startselected=true;if(!event.metaKey&&!event.ctrlKey){that._removeClass(selectee.$element,\"ui-selected\");selectee.selected=false;that._addClass(selectee.$element,\"ui-unselecting\");selectee.unselecting=true;that._trigger(\"unselecting\",event,{unselecting:selectee.element});}});$(event.target).parents().addBack().each(function(){var doSelect,selectee=$.data(this,\"selectable-item\");if(selectee){doSelect=(!event.metaKey&&!event.ctrlKey)||!selectee.$element.hasClass(\"ui-selected\");that._removeClass(selectee.$element,doSelect?\"ui-unselecting\":\"ui-selected\")._addClass(selectee.$element,doSelect?\"ui-selecting\":\"ui-unselecting\");selectee.unselecting=!doSelect;selectee.selecting=doSelect;selectee.selected=doSelect;if(doSelect){that._trigger(\"selecting\",event,{selecting:selectee.element});}else{that._trigger(\"unselecting\",event,{unselecting:selectee.element});}\nreturn false;}});},_mouseDrag:function(event){this.dragged=true;if(this.options.disabled){return;}\nvar tmp,that=this,options=this.options,x1=this.opos[0],y1=this.opos[1],x2=event.pageX,y2=event.pageY;if(x1>x2){tmp=x2;x2=x1;x1=tmp;}\nif(y1>y2){tmp=y2;y2=y1;y1=tmp;}\nthis.helper.css({left:x1,top:y1,width:x2-x1,height:y2-y1});this.selectees.each(function(){var selectee=$.data(this,\"selectable-item\"),hit=false,offset={};if(!selectee||selectee.element===that.element[0]){return;}\noffset.left=selectee.left+that.elementPos.left;offset.right=selectee.right+that.elementPos.left;offset.top=selectee.top+that.elementPos.top;offset.bottom=selectee.bottom+that.elementPos.top;if(options.tolerance===\"touch\"){hit=(!(offset.left>x2||offset.right<x1||offset.top>y2||offset.bottom<y1));}else if(options.tolerance===\"fit\"){hit=(offset.left>x1&&offset.right<x2&&offset.top>y1&&offset.bottom<y2);}\nif(hit){if(selectee.selected){that._removeClass(selectee.$element,\"ui-selected\");selectee.selected=false;}\nif(selectee.unselecting){that._removeClass(selectee.$element,\"ui-unselecting\");selectee.unselecting=false;}\nif(!selectee.selecting){that._addClass(selectee.$element,\"ui-selecting\");selectee.selecting=true;that._trigger(\"selecting\",event,{selecting:selectee.element});}}else{if(selectee.selecting){if((event.metaKey||event.ctrlKey)&&selectee.startselected){that._removeClass(selectee.$element,\"ui-selecting\");selectee.selecting=false;that._addClass(selectee.$element,\"ui-selected\");selectee.selected=true;}else{that._removeClass(selectee.$element,\"ui-selecting\");selectee.selecting=false;if(selectee.startselected){that._addClass(selectee.$element,\"ui-unselecting\");selectee.unselecting=true;}\nthat._trigger(\"unselecting\",event,{unselecting:selectee.element});}}\nif(selectee.selected){if(!event.metaKey&&!event.ctrlKey&&!selectee.startselected){that._removeClass(selectee.$element,\"ui-selected\");selectee.selected=false;that._addClass(selectee.$element,\"ui-unselecting\");selectee.unselecting=true;that._trigger(\"unselecting\",event,{unselecting:selectee.element});}}}});return false;},_mouseStop:function(event){var that=this;this.dragged=false;$(\".ui-unselecting\",this.element[0]).each(function(){var selectee=$.data(this,\"selectable-item\");that._removeClass(selectee.$element,\"ui-unselecting\");selectee.unselecting=false;selectee.startselected=false;that._trigger(\"unselected\",event,{unselected:selectee.element});});$(\".ui-selecting\",this.element[0]).each(function(){var selectee=$.data(this,\"selectable-item\");that._removeClass(selectee.$element,\"ui-selecting\")._addClass(selectee.$element,\"ui-selected\");selectee.selecting=false;selectee.selected=true;selectee.startselected=true;that._trigger(\"selected\",event,{selected:selectee.element});});this._trigger(\"stop\",event);this.helper.remove();return false;}});});","jquery/ui-modules/widgets/resizable.min.js":"/*!\n * jQuery UI Resizable 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"./mouse\",\"../disable-selection\",\"../plugin\",\"../version\",\"../widget\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";$.widget(\"ui.resizable\",$.ui.mouse,{version:\"1.13.2\",widgetEventPrefix:\"resize\",options:{alsoResize:false,animate:false,animateDuration:\"slow\",animateEasing:\"swing\",aspectRatio:false,autoHide:false,classes:{\"ui-resizable-se\":\"ui-icon ui-icon-gripsmall-diagonal-se\"},containment:false,ghost:false,grid:false,handles:\"e,s,se\",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(value){return parseFloat(value)||0;},_isNumber:function(value){return!isNaN(parseFloat(value));},_hasScroll:function(el,a){if($(el).css(\"overflow\")===\"hidden\"){return false;}\nvar scroll=(a&&a===\"left\")?\"scrollLeft\":\"scrollTop\",has=false;if(el[scroll]>0){return true;}\ntry{el[scroll]=1;has=(el[scroll]>0);el[scroll]=0;}catch(e){}\nreturn has;},_create:function(){var margins,o=this.options,that=this;this._addClass(\"ui-resizable\");$.extend(this,{_aspectRatio:!!(o.aspectRatio),aspectRatio:o.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:o.helper||o.ghost||o.animate?o.helper||\"ui-resizable-helper\":null});if(this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)){this.element.wrap($(\"<div class='ui-wrapper'></div>\").css({overflow:\"hidden\",position:this.element.css(\"position\"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css(\"top\"),left:this.element.css(\"left\")}));this.element=this.element.parent().data(\"ui-resizable\",this.element.resizable(\"instance\"));this.elementIsWrapper=true;margins={marginTop:this.originalElement.css(\"marginTop\"),marginRight:this.originalElement.css(\"marginRight\"),marginBottom:this.originalElement.css(\"marginBottom\"),marginLeft:this.originalElement.css(\"marginLeft\")};this.element.css(margins);this.originalElement.css(\"margin\",0);this.originalResizeStyle=this.originalElement.css(\"resize\");this.originalElement.css(\"resize\",\"none\");this._proportionallyResizeElements.push(this.originalElement.css({position:\"static\",zoom:1,display:\"block\"}));this.originalElement.css(margins);this._proportionallyResize();}\nthis._setupHandles();if(o.autoHide){$(this.element).on(\"mouseenter\",function(){if(o.disabled){return;}\nthat._removeClass(\"ui-resizable-autohide\");that._handles.show();}).on(\"mouseleave\",function(){if(o.disabled){return;}\nif(!that.resizing){that._addClass(\"ui-resizable-autohide\");that._handles.hide();}});}\nthis._mouseInit();},_destroy:function(){this._mouseDestroy();this._addedHandles.remove();var wrapper,_destroy=function(exp){$(exp).removeData(\"resizable\").removeData(\"ui-resizable\").off(\".resizable\");};if(this.elementIsWrapper){_destroy(this.element);wrapper=this.element;this.originalElement.css({position:wrapper.css(\"position\"),width:wrapper.outerWidth(),height:wrapper.outerHeight(),top:wrapper.css(\"top\"),left:wrapper.css(\"left\")}).insertAfter(wrapper);wrapper.remove();}\nthis.originalElement.css(\"resize\",this.originalResizeStyle);_destroy(this.originalElement);return this;},_setOption:function(key,value){this._super(key,value);switch(key){case\"handles\":this._removeHandles();this._setupHandles();break;case\"aspectRatio\":this._aspectRatio=!!value;break;default:break;}},_setupHandles:function(){var o=this.options,handle,i,n,hname,axis,that=this;this.handles=o.handles||(!$(\".ui-resizable-handle\",this.element).length?\"e,s,se\":{n:\".ui-resizable-n\",e:\".ui-resizable-e\",s:\".ui-resizable-s\",w:\".ui-resizable-w\",se:\".ui-resizable-se\",sw:\".ui-resizable-sw\",ne:\".ui-resizable-ne\",nw:\".ui-resizable-nw\"});this._handles=$();this._addedHandles=$();if(this.handles.constructor===String){if(this.handles===\"all\"){this.handles=\"n,e,s,w,se,sw,ne,nw\";}\nn=this.handles.split(\",\");this.handles={};for(i=0;i<n.length;i++){handle=String.prototype.trim.call(n[i]);hname=\"ui-resizable-\"+handle;axis=$(\"<div>\");this._addClass(axis,\"ui-resizable-handle \"+hname);axis.css({zIndex:o.zIndex});this.handles[handle]=\".ui-resizable-\"+handle;if(!this.element.children(this.handles[handle]).length){this.element.append(axis);this._addedHandles=this._addedHandles.add(axis);}}}\nthis._renderAxis=function(target){var i,axis,padPos,padWrapper;target=target||this.element;for(i in this.handles){if(this.handles[i].constructor===String){this.handles[i]=this.element.children(this.handles[i]).first().show();}else if(this.handles[i].jquery||this.handles[i].nodeType){this.handles[i]=$(this.handles[i]);this._on(this.handles[i],{\"mousedown\":that._mouseDown});}\nif(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)){axis=$(this.handles[i],this.element);padWrapper=/sw|ne|nw|se|n|s/.test(i)?axis.outerHeight():axis.outerWidth();padPos=[\"padding\",/ne|nw|n/.test(i)?\"Top\":/se|sw|s/.test(i)?\"Bottom\":/^e$/.test(i)?\"Right\":\"Left\"].join(\"\");target.css(padPos,padWrapper);this._proportionallyResize();}\nthis._handles=this._handles.add(this.handles[i]);}};this._renderAxis(this.element);this._handles=this._handles.add(this.element.find(\".ui-resizable-handle\"));this._handles.disableSelection();this._handles.on(\"mouseover\",function(){if(!that.resizing){if(this.className){axis=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);}\nthat.axis=axis&&axis[1]?axis[1]:\"se\";}});if(o.autoHide){this._handles.hide();this._addClass(\"ui-resizable-autohide\");}},_removeHandles:function(){this._addedHandles.remove();},_mouseCapture:function(event){var i,handle,capture=false;for(i in this.handles){handle=$(this.handles[i])[0];if(handle===event.target||$.contains(handle,event.target)){capture=true;}}\nreturn!this.options.disabled&&capture;},_mouseStart:function(event){var curleft,curtop,cursor,o=this.options,el=this.element;this.resizing=true;this._renderProxy();curleft=this._num(this.helper.css(\"left\"));curtop=this._num(this.helper.css(\"top\"));if(o.containment){curleft+=$(o.containment).scrollLeft()||0;curtop+=$(o.containment).scrollTop()||0;}\nthis.offset=this.helper.offset();this.position={left:curleft,top:curtop};this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:el.width(),height:el.height()};this.originalSize=this._helper?{width:el.outerWidth(),height:el.outerHeight()}:{width:el.width(),height:el.height()};this.sizeDiff={width:el.outerWidth()-el.width(),height:el.outerHeight()-el.height()};this.originalPosition={left:curleft,top:curtop};this.originalMousePosition={left:event.pageX,top:event.pageY};this.aspectRatio=(typeof o.aspectRatio===\"number\")?o.aspectRatio:((this.originalSize.width / this.originalSize.height)||1);cursor=$(\".ui-resizable-\"+this.axis).css(\"cursor\");$(\"body\").css(\"cursor\",cursor===\"auto\"?this.axis+\"-resize\":cursor);this._addClass(\"ui-resizable-resizing\");this._propagate(\"start\",event);return true;},_mouseDrag:function(event){var data,props,smp=this.originalMousePosition,a=this.axis,dx=(event.pageX-smp.left)||0,dy=(event.pageY-smp.top)||0,trigger=this._change[a];this._updatePrevProperties();if(!trigger){return false;}\ndata=trigger.apply(this,[event,dx,dy]);this._updateVirtualBoundaries(event.shiftKey);if(this._aspectRatio||event.shiftKey){data=this._updateRatio(data,event);}\ndata=this._respectSize(data,event);this._updateCache(data);this._propagate(\"resize\",event);props=this._applyChanges();if(!this._helper&&this._proportionallyResizeElements.length){this._proportionallyResize();}\nif(!$.isEmptyObject(props)){this._updatePrevProperties();this._trigger(\"resize\",event,this.ui());this._applyChanges();}\nreturn false;},_mouseStop:function(event){this.resizing=false;var pr,ista,soffseth,soffsetw,s,left,top,o=this.options,that=this;if(this._helper){pr=this._proportionallyResizeElements;ista=pr.length&&(/textarea/i).test(pr[0].nodeName);soffseth=ista&&this._hasScroll(pr[0],\"left\")?0:that.sizeDiff.height;soffsetw=ista?0:that.sizeDiff.width;s={width:(that.helper.width()-soffsetw),height:(that.helper.height()-soffseth)};left=(parseFloat(that.element.css(\"left\"))+\n(that.position.left-that.originalPosition.left))||null;top=(parseFloat(that.element.css(\"top\"))+\n(that.position.top-that.originalPosition.top))||null;if(!o.animate){this.element.css($.extend(s,{top:top,left:left}));}\nthat.helper.height(that.size.height);that.helper.width(that.size.width);if(this._helper&&!o.animate){this._proportionallyResize();}}\n$(\"body\").css(\"cursor\",\"auto\");this._removeClass(\"ui-resizable-resizing\");this._propagate(\"stop\",event);if(this._helper){this.helper.remove();}\nreturn false;},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left};this.prevSize={width:this.size.width,height:this.size.height};},_applyChanges:function(){var props={};if(this.position.top!==this.prevPosition.top){props.top=this.position.top+\"px\";}\nif(this.position.left!==this.prevPosition.left){props.left=this.position.left+\"px\";}\nif(this.size.width!==this.prevSize.width){props.width=this.size.width+\"px\";}\nif(this.size.height!==this.prevSize.height){props.height=this.size.height+\"px\";}\nthis.helper.css(props);return props;},_updateVirtualBoundaries:function(forceAspectRatio){var pMinWidth,pMaxWidth,pMinHeight,pMaxHeight,b,o=this.options;b={minWidth:this._isNumber(o.minWidth)?o.minWidth:0,maxWidth:this._isNumber(o.maxWidth)?o.maxWidth:Infinity,minHeight:this._isNumber(o.minHeight)?o.minHeight:0,maxHeight:this._isNumber(o.maxHeight)?o.maxHeight:Infinity};if(this._aspectRatio||forceAspectRatio){pMinWidth=b.minHeight*this.aspectRatio;pMinHeight=b.minWidth / this.aspectRatio;pMaxWidth=b.maxHeight*this.aspectRatio;pMaxHeight=b.maxWidth / this.aspectRatio;if(pMinWidth>b.minWidth){b.minWidth=pMinWidth;}\nif(pMinHeight>b.minHeight){b.minHeight=pMinHeight;}\nif(pMaxWidth<b.maxWidth){b.maxWidth=pMaxWidth;}\nif(pMaxHeight<b.maxHeight){b.maxHeight=pMaxHeight;}}\nthis._vBoundaries=b;},_updateCache:function(data){this.offset=this.helper.offset();if(this._isNumber(data.left)){this.position.left=data.left;}\nif(this._isNumber(data.top)){this.position.top=data.top;}\nif(this._isNumber(data.height)){this.size.height=data.height;}\nif(this._isNumber(data.width)){this.size.width=data.width;}},_updateRatio:function(data){var cpos=this.position,csize=this.size,a=this.axis;if(this._isNumber(data.height)){data.width=(data.height*this.aspectRatio);}else if(this._isNumber(data.width)){data.height=(data.width / this.aspectRatio);}\nif(a===\"sw\"){data.left=cpos.left+(csize.width-data.width);data.top=null;}\nif(a===\"nw\"){data.top=cpos.top+(csize.height-data.height);data.left=cpos.left+(csize.width-data.width);}\nreturn data;},_respectSize:function(data){var o=this._vBoundaries,a=this.axis,ismaxw=this._isNumber(data.width)&&o.maxWidth&&(o.maxWidth<data.width),ismaxh=this._isNumber(data.height)&&o.maxHeight&&(o.maxHeight<data.height),isminw=this._isNumber(data.width)&&o.minWidth&&(o.minWidth>data.width),isminh=this._isNumber(data.height)&&o.minHeight&&(o.minHeight>data.height),dw=this.originalPosition.left+this.originalSize.width,dh=this.originalPosition.top+this.originalSize.height,cw=/sw|nw|w/.test(a),ch=/nw|ne|n/.test(a);if(isminw){data.width=o.minWidth;}\nif(isminh){data.height=o.minHeight;}\nif(ismaxw){data.width=o.maxWidth;}\nif(ismaxh){data.height=o.maxHeight;}\nif(isminw&&cw){data.left=dw-o.minWidth;}\nif(ismaxw&&cw){data.left=dw-o.maxWidth;}\nif(isminh&&ch){data.top=dh-o.minHeight;}\nif(ismaxh&&ch){data.top=dh-o.maxHeight;}\nif(!data.width&&!data.height&&!data.left&&data.top){data.top=null;}else if(!data.width&&!data.height&&!data.top&&data.left){data.left=null;}\nreturn data;},_getPaddingPlusBorderDimensions:function(element){var i=0,widths=[],borders=[element.css(\"borderTopWidth\"),element.css(\"borderRightWidth\"),element.css(\"borderBottomWidth\"),element.css(\"borderLeftWidth\")],paddings=[element.css(\"paddingTop\"),element.css(\"paddingRight\"),element.css(\"paddingBottom\"),element.css(\"paddingLeft\")];for(;i<4;i++){widths[i]=(parseFloat(borders[i])||0);widths[i]+=(parseFloat(paddings[i])||0);}\nreturn{height:widths[0]+widths[2],width:widths[1]+widths[3]};},_proportionallyResize:function(){if(!this._proportionallyResizeElements.length){return;}\nvar prel,i=0,element=this.helper||this.element;for(;i<this._proportionallyResizeElements.length;i++){prel=this._proportionallyResizeElements[i];if(!this.outerDimensions){this.outerDimensions=this._getPaddingPlusBorderDimensions(prel);}\nprel.css({height:(element.height()-this.outerDimensions.height)||0,width:(element.width()-this.outerDimensions.width)||0});}},_renderProxy:function(){var el=this.element,o=this.options;this.elementOffset=el.offset();if(this._helper){this.helper=this.helper||$(\"<div></div>\").css({overflow:\"hidden\"});this._addClass(this.helper,this._helper);this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:\"absolute\",left:this.elementOffset.left+\"px\",top:this.elementOffset.top+\"px\",zIndex:++o.zIndex});this.helper.appendTo(\"body\").disableSelection();}else{this.helper=this.element;}},_change:{e:function(event,dx){return{width:this.originalSize.width+dx};},w:function(event,dx){var cs=this.originalSize,sp=this.originalPosition;return{left:sp.left+dx,width:cs.width-dx};},n:function(event,dx,dy){var cs=this.originalSize,sp=this.originalPosition;return{top:sp.top+dy,height:cs.height-dy};},s:function(event,dx,dy){return{height:this.originalSize.height+dy};},se:function(event,dx,dy){return $.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[event,dx,dy]));},sw:function(event,dx,dy){return $.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[event,dx,dy]));},ne:function(event,dx,dy){return $.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[event,dx,dy]));},nw:function(event,dx,dy){return $.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[event,dx,dy]));}},_propagate:function(n,event){$.ui.plugin.call(this,n,[event,this.ui()]);if(n!==\"resize\"){this._trigger(n,event,this.ui());}},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition};}});$.ui.plugin.add(\"resizable\",\"animate\",{stop:function(event){var that=$(this).resizable(\"instance\"),o=that.options,pr=that._proportionallyResizeElements,ista=pr.length&&(/textarea/i).test(pr[0].nodeName),soffseth=ista&&that._hasScroll(pr[0],\"left\")?0:that.sizeDiff.height,soffsetw=ista?0:that.sizeDiff.width,style={width:(that.size.width-soffsetw),height:(that.size.height-soffseth)},left=(parseFloat(that.element.css(\"left\"))+\n(that.position.left-that.originalPosition.left))||null,top=(parseFloat(that.element.css(\"top\"))+\n(that.position.top-that.originalPosition.top))||null;that.element.animate($.extend(style,top&&left?{top:top,left:left}:{}),{duration:o.animateDuration,easing:o.animateEasing,step:function(){var data={width:parseFloat(that.element.css(\"width\")),height:parseFloat(that.element.css(\"height\")),top:parseFloat(that.element.css(\"top\")),left:parseFloat(that.element.css(\"left\"))};if(pr&&pr.length){$(pr[0]).css({width:data.width,height:data.height});}\nthat._updateCache(data);that._propagate(\"resize\",event);}});}});$.ui.plugin.add(\"resizable\",\"containment\",{start:function(){var element,p,co,ch,cw,width,height,that=$(this).resizable(\"instance\"),o=that.options,el=that.element,oc=o.containment,ce=(oc instanceof $)?oc.get(0):(/parent/.test(oc))?el.parent().get(0):oc;if(!ce){return;}\nthat.containerElement=$(ce);if(/document/.test(oc)||oc===document){that.containerOffset={left:0,top:0};that.containerPosition={left:0,top:0};that.parentData={element:$(document),left:0,top:0,width:$(document).width(),height:$(document).height()||document.body.parentNode.scrollHeight};}else{element=$(ce);p=[];$([\"Top\",\"Right\",\"Left\",\"Bottom\"]).each(function(i,name){p[i]=that._num(element.css(\"padding\"+name));});that.containerOffset=element.offset();that.containerPosition=element.position();that.containerSize={height:(element.innerHeight()-p[3]),width:(element.innerWidth()-p[1])};co=that.containerOffset;ch=that.containerSize.height;cw=that.containerSize.width;width=(that._hasScroll(ce,\"left\")?ce.scrollWidth:cw);height=(that._hasScroll(ce)?ce.scrollHeight:ch);that.parentData={element:ce,left:co.left,top:co.top,width:width,height:height};}},resize:function(event){var woset,hoset,isParent,isOffsetRelative,that=$(this).resizable(\"instance\"),o=that.options,co=that.containerOffset,cp=that.position,pRatio=that._aspectRatio||event.shiftKey,cop={top:0,left:0},ce=that.containerElement,continueResize=true;if(ce[0]!==document&&(/static/).test(ce.css(\"position\"))){cop=co;}\nif(cp.left<(that._helper?co.left:0)){that.size.width=that.size.width+\n(that._helper?(that.position.left-co.left):(that.position.left-cop.left));if(pRatio){that.size.height=that.size.width / that.aspectRatio;continueResize=false;}\nthat.position.left=o.helper?co.left:0;}\nif(cp.top<(that._helper?co.top:0)){that.size.height=that.size.height+\n(that._helper?(that.position.top-co.top):that.position.top);if(pRatio){that.size.width=that.size.height*that.aspectRatio;continueResize=false;}\nthat.position.top=that._helper?co.top:0;}\nisParent=that.containerElement.get(0)===that.element.parent().get(0);isOffsetRelative=/relative|absolute/.test(that.containerElement.css(\"position\"));if(isParent&&isOffsetRelative){that.offset.left=that.parentData.left+that.position.left;that.offset.top=that.parentData.top+that.position.top;}else{that.offset.left=that.element.offset().left;that.offset.top=that.element.offset().top;}\nwoset=Math.abs(that.sizeDiff.width+\n(that._helper?that.offset.left-cop.left:(that.offset.left-co.left)));hoset=Math.abs(that.sizeDiff.height+\n(that._helper?that.offset.top-cop.top:(that.offset.top-co.top)));if(woset+that.size.width>=that.parentData.width){that.size.width=that.parentData.width-woset;if(pRatio){that.size.height=that.size.width / that.aspectRatio;continueResize=false;}}\nif(hoset+that.size.height>=that.parentData.height){that.size.height=that.parentData.height-hoset;if(pRatio){that.size.width=that.size.height*that.aspectRatio;continueResize=false;}}\nif(!continueResize){that.position.left=that.prevPosition.left;that.position.top=that.prevPosition.top;that.size.width=that.prevSize.width;that.size.height=that.prevSize.height;}},stop:function(){var that=$(this).resizable(\"instance\"),o=that.options,co=that.containerOffset,cop=that.containerPosition,ce=that.containerElement,helper=$(that.helper),ho=helper.offset(),w=helper.outerWidth()-that.sizeDiff.width,h=helper.outerHeight()-that.sizeDiff.height;if(that._helper&&!o.animate&&(/relative/).test(ce.css(\"position\"))){$(this).css({left:ho.left-cop.left-co.left,width:w,height:h});}\nif(that._helper&&!o.animate&&(/static/).test(ce.css(\"position\"))){$(this).css({left:ho.left-cop.left-co.left,width:w,height:h});}}});$.ui.plugin.add(\"resizable\",\"alsoResize\",{start:function(){var that=$(this).resizable(\"instance\"),o=that.options;$(o.alsoResize).each(function(){var el=$(this);el.data(\"ui-resizable-alsoresize\",{width:parseFloat(el.width()),height:parseFloat(el.height()),left:parseFloat(el.css(\"left\")),top:parseFloat(el.css(\"top\"))});});},resize:function(event,ui){var that=$(this).resizable(\"instance\"),o=that.options,os=that.originalSize,op=that.originalPosition,delta={height:(that.size.height-os.height)||0,width:(that.size.width-os.width)||0,top:(that.position.top-op.top)||0,left:(that.position.left-op.left)||0};$(o.alsoResize).each(function(){var el=$(this),start=$(this).data(\"ui-resizable-alsoresize\"),style={},css=el.parents(ui.originalElement[0]).length?[\"width\",\"height\"]:[\"width\",\"height\",\"top\",\"left\"];$.each(css,function(i,prop){var sum=(start[prop]||0)+(delta[prop]||0);if(sum&&sum>=0){style[prop]=sum||null;}});el.css(style);});},stop:function(){$(this).removeData(\"ui-resizable-alsoresize\");}});$.ui.plugin.add(\"resizable\",\"ghost\",{start:function(){var that=$(this).resizable(\"instance\"),cs=that.size;that.ghost=that.originalElement.clone();that.ghost.css({opacity:0.25,display:\"block\",position:\"relative\",height:cs.height,width:cs.width,margin:0,left:0,top:0});that._addClass(that.ghost,\"ui-resizable-ghost\");if($.uiBackCompat!==false&&typeof that.options.ghost===\"string\"){that.ghost.addClass(this.options.ghost);}\nthat.ghost.appendTo(that.helper);},resize:function(){var that=$(this).resizable(\"instance\");if(that.ghost){that.ghost.css({position:\"relative\",height:that.size.height,width:that.size.width});}},stop:function(){var that=$(this).resizable(\"instance\");if(that.ghost&&that.helper){that.helper.get(0).removeChild(that.ghost.get(0));}}});$.ui.plugin.add(\"resizable\",\"grid\",{resize:function(){var outerDimensions,that=$(this).resizable(\"instance\"),o=that.options,cs=that.size,os=that.originalSize,op=that.originalPosition,a=that.axis,grid=typeof o.grid===\"number\"?[o.grid,o.grid]:o.grid,gridX=(grid[0]||1),gridY=(grid[1]||1),ox=Math.round((cs.width-os.width)/ gridX)*gridX,oy=Math.round((cs.height-os.height)/ gridY)*gridY,newWidth=os.width+ox,newHeight=os.height+oy,isMaxWidth=o.maxWidth&&(o.maxWidth<newWidth),isMaxHeight=o.maxHeight&&(o.maxHeight<newHeight),isMinWidth=o.minWidth&&(o.minWidth>newWidth),isMinHeight=o.minHeight&&(o.minHeight>newHeight);o.grid=grid;if(isMinWidth){newWidth+=gridX;}\nif(isMinHeight){newHeight+=gridY;}\nif(isMaxWidth){newWidth-=gridX;}\nif(isMaxHeight){newHeight-=gridY;}\nif(/^(se|s|e)$/.test(a)){that.size.width=newWidth;that.size.height=newHeight;}else if(/^(ne)$/.test(a)){that.size.width=newWidth;that.size.height=newHeight;that.position.top=op.top-oy;}else if(/^(sw)$/.test(a)){that.size.width=newWidth;that.size.height=newHeight;that.position.left=op.left-ox;}else{if(newHeight-gridY<=0||newWidth-gridX<=0){outerDimensions=that._getPaddingPlusBorderDimensions(this);}\nif(newHeight-gridY>0){that.size.height=newHeight;that.position.top=op.top-oy;}else{newHeight=gridY-outerDimensions.height;that.size.height=newHeight;that.position.top=op.top+os.height-newHeight;}\nif(newWidth-gridX>0){that.size.width=newWidth;that.position.left=op.left-ox;}else{newWidth=gridX-outerDimensions.width;that.size.width=newWidth;that.position.left=op.left+os.width-newWidth;}}}});return $.ui.resizable;});","jquery/ui-modules/widgets/spinner.min.js":"/*!\n * jQuery UI Spinner 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"./button\",\"../version\",\"../keycode\",\"../safe-active-element\",\"../widget\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";function spinnerModifier(fn){return function(){var previous=this.element.val();fn.apply(this,arguments);this._refresh();if(previous!==this.element.val()){this._trigger(\"change\");}};}\n$.widget(\"ui.spinner\",{version:\"1.13.2\",defaultElement:\"<input>\",widgetEventPrefix:\"spin\",options:{classes:{\"ui-spinner\":\"ui-corner-all\",\"ui-spinner-down\":\"ui-corner-br\",\"ui-spinner-up\":\"ui-corner-tr\"},culture:null,icons:{down:\"ui-icon-triangle-1-s\",up:\"ui-icon-triangle-1-n\"},incremental:true,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption(\"max\",this.options.max);this._setOption(\"min\",this.options.min);this._setOption(\"step\",this.options.step);if(this.value()!==\"\"){this._value(this.element.val(),true);}\nthis._draw();this._on(this._events);this._refresh();this._on(this.window,{beforeunload:function(){this.element.removeAttr(\"autocomplete\");}});},_getCreateOptions:function(){var options=this._super();var element=this.element;$.each([\"min\",\"max\",\"step\"],function(i,option){var value=element.attr(option);if(value!=null&&value.length){options[option]=value;}});return options;},_events:{keydown:function(event){if(this._start(event)&&this._keydown(event)){event.preventDefault();}},keyup:\"_stop\",focus:function(){this.previous=this.element.val();},blur:function(event){if(this.cancelBlur){delete this.cancelBlur;return;}\nthis._stop();this._refresh();if(this.previous!==this.element.val()){this._trigger(\"change\",event);}},mousewheel:function(event,delta){var activeElement=$.ui.safeActiveElement(this.document[0]);var isActive=this.element[0]===activeElement;if(!isActive||!delta){return;}\nif(!this.spinning&&!this._start(event)){return false;}\nthis._spin((delta>0?1:-1)*this.options.step,event);clearTimeout(this.mousewheelTimer);this.mousewheelTimer=this._delay(function(){if(this.spinning){this._stop(event);}},100);event.preventDefault();},\"mousedown .ui-spinner-button\":function(event){var previous;previous=this.element[0]===$.ui.safeActiveElement(this.document[0])?this.previous:this.element.val();function checkFocus(){var isActive=this.element[0]===$.ui.safeActiveElement(this.document[0]);if(!isActive){this.element.trigger(\"focus\");this.previous=previous;this._delay(function(){this.previous=previous;});}}\nevent.preventDefault();checkFocus.call(this);this.cancelBlur=true;this._delay(function(){delete this.cancelBlur;checkFocus.call(this);});if(this._start(event)===false){return;}\nthis._repeat(null,$(event.currentTarget).hasClass(\"ui-spinner-up\")?1:-1,event);},\"mouseup .ui-spinner-button\":\"_stop\",\"mouseenter .ui-spinner-button\":function(event){if(!$(event.currentTarget).hasClass(\"ui-state-active\")){return;}\nif(this._start(event)===false){return false;}\nthis._repeat(null,$(event.currentTarget).hasClass(\"ui-spinner-up\")?1:-1,event);},\"mouseleave .ui-spinner-button\":\"_stop\"},_enhance:function(){this.uiSpinner=this.element.attr(\"autocomplete\",\"off\").wrap(\"<span>\").parent().append(\"<a></a><a></a>\");},_draw:function(){this._enhance();this._addClass(this.uiSpinner,\"ui-spinner\",\"ui-widget ui-widget-content\");this._addClass(\"ui-spinner-input\");this.element.attr(\"role\",\"spinbutton\");this.buttons=this.uiSpinner.children(\"a\").attr(\"tabIndex\",-1).attr(\"aria-hidden\",true).button({classes:{\"ui-button\":\"\"}});this._removeClass(this.buttons,\"ui-corner-all\");this._addClass(this.buttons.first(),\"ui-spinner-button ui-spinner-up\");this._addClass(this.buttons.last(),\"ui-spinner-button ui-spinner-down\");this.buttons.first().button({\"icon\":this.options.icons.up,\"showLabel\":false});this.buttons.last().button({\"icon\":this.options.icons.down,\"showLabel\":false});if(this.buttons.height()>Math.ceil(this.uiSpinner.height()*0.5)&&this.uiSpinner.height()>0){this.uiSpinner.height(this.uiSpinner.height());}},_keydown:function(event){var options=this.options,keyCode=$.ui.keyCode;switch(event.keyCode){case keyCode.UP:this._repeat(null,1,event);return true;case keyCode.DOWN:this._repeat(null,-1,event);return true;case keyCode.PAGE_UP:this._repeat(null,options.page,event);return true;case keyCode.PAGE_DOWN:this._repeat(null,-options.page,event);return true;}\nreturn false;},_start:function(event){if(!this.spinning&&this._trigger(\"start\",event)===false){return false;}\nif(!this.counter){this.counter=1;}\nthis.spinning=true;return true;},_repeat:function(i,steps,event){i=i||500;clearTimeout(this.timer);this.timer=this._delay(function(){this._repeat(40,steps,event);},i);this._spin(steps*this.options.step,event);},_spin:function(step,event){var value=this.value()||0;if(!this.counter){this.counter=1;}\nvalue=this._adjustValue(value+step*this._increment(this.counter));if(!this.spinning||this._trigger(\"spin\",event,{value:value})!==false){this._value(value);this.counter++;}},_increment:function(i){var incremental=this.options.incremental;if(incremental){return typeof incremental===\"function\"?incremental(i):Math.floor(i*i*i / 50000-i*i / 500+17*i / 200+1);}\nreturn 1;},_precision:function(){var precision=this._precisionOf(this.options.step);if(this.options.min!==null){precision=Math.max(precision,this._precisionOf(this.options.min));}\nreturn precision;},_precisionOf:function(num){var str=num.toString(),decimal=str.indexOf(\".\");return decimal===-1?0:str.length-decimal-1;},_adjustValue:function(value){var base,aboveMin,options=this.options;base=options.min!==null?options.min:0;aboveMin=value-base;aboveMin=Math.round(aboveMin / options.step)*options.step;value=base+aboveMin;value=parseFloat(value.toFixed(this._precision()));if(options.max!==null&&value>options.max){return options.max;}\nif(options.min!==null&&value<options.min){return options.min;}\nreturn value;},_stop:function(event){if(!this.spinning){return;}\nclearTimeout(this.timer);clearTimeout(this.mousewheelTimer);this.counter=0;this.spinning=false;this._trigger(\"stop\",event);},_setOption:function(key,value){var prevValue,first,last;if(key===\"culture\"||key===\"numberFormat\"){prevValue=this._parse(this.element.val());this.options[key]=value;this.element.val(this._format(prevValue));return;}\nif(key===\"max\"||key===\"min\"||key===\"step\"){if(typeof value===\"string\"){value=this._parse(value);}}\nif(key===\"icons\"){first=this.buttons.first().find(\".ui-icon\");this._removeClass(first,null,this.options.icons.up);this._addClass(first,null,value.up);last=this.buttons.last().find(\".ui-icon\");this._removeClass(last,null,this.options.icons.down);this._addClass(last,null,value.down);}\nthis._super(key,value);},_setOptionDisabled:function(value){this._super(value);this._toggleClass(this.uiSpinner,null,\"ui-state-disabled\",!!value);this.element.prop(\"disabled\",!!value);this.buttons.button(value?\"disable\":\"enable\");},_setOptions:spinnerModifier(function(options){this._super(options);}),_parse:function(val){if(typeof val===\"string\"&&val!==\"\"){val=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(val,10,this.options.culture):+val;}\nreturn val===\"\"||isNaN(val)?null:val;},_format:function(value){if(value===\"\"){return\"\";}\nreturn window.Globalize&&this.options.numberFormat?Globalize.format(value,this.options.numberFormat,this.options.culture):value;},_refresh:function(){this.element.attr({\"aria-valuemin\":this.options.min,\"aria-valuemax\":this.options.max,\"aria-valuenow\":this._parse(this.element.val())});},isValid:function(){var value=this.value();if(value===null){return false;}\nreturn value===this._adjustValue(value);},_value:function(value,allowAny){var parsed;if(value!==\"\"){parsed=this._parse(value);if(parsed!==null){if(!allowAny){parsed=this._adjustValue(parsed);}\nvalue=this._format(parsed);}}\nthis.element.val(value);this._refresh();},_destroy:function(){this.element.prop(\"disabled\",false).removeAttr(\"autocomplete role aria-valuemin aria-valuemax aria-valuenow\");this.uiSpinner.replaceWith(this.element);},stepUp:spinnerModifier(function(steps){this._stepUp(steps);}),_stepUp:function(steps){if(this._start()){this._spin((steps||1)*this.options.step);this._stop();}},stepDown:spinnerModifier(function(steps){this._stepDown(steps);}),_stepDown:function(steps){if(this._start()){this._spin((steps||1)*-this.options.step);this._stop();}},pageUp:spinnerModifier(function(pages){this._stepUp((pages||1)*this.options.page);}),pageDown:spinnerModifier(function(pages){this._stepDown((pages||1)*this.options.page);}),value:function(newVal){if(!arguments.length){return this._parse(this.element.val());}\nspinnerModifier(this._value).call(this,newVal);},widget:function(){return this.uiSpinner;}});if($.uiBackCompat!==false){$.widget(\"ui.spinner\",$.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr(\"autocomplete\",\"off\").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());},_uiSpinnerHtml:function(){return\"<span>\";},_buttonHtml:function(){return\"<a></a><a></a>\";}});}\nreturn $.ui.spinner;});","jquery/ui-modules/widgets/controlgroup.min.js":"/*!\n * jQuery UI Controlgroup 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"../widget\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";var controlgroupCornerRegex=/ui-corner-([a-z]){2,6}/g;return $.widget(\"ui.controlgroup\",{version:\"1.13.2\",defaultElement:\"<div>\",options:{direction:\"horizontal\",disabled:null,onlyVisible:true,items:{\"button\":\"input[type=button], input[type=submit], input[type=reset], button, a\",\"controlgroupLabel\":\".ui-controlgroup-label\",\"checkboxradio\":\"input[type='checkbox'], input[type='radio']\",\"selectmenu\":\"select\",\"spinner\":\".ui-spinner-input\"}},_create:function(){this._enhance();},_enhance:function(){this.element.attr(\"role\",\"toolbar\");this.refresh();},_destroy:function(){this._callChildMethod(\"destroy\");this.childWidgets.removeData(\"ui-controlgroup-data\");this.element.removeAttr(\"role\");if(this.options.items.controlgroupLabel){this.element.find(this.options.items.controlgroupLabel).find(\".ui-controlgroup-label-contents\").contents().unwrap();}},_initWidgets:function(){var that=this,childWidgets=[];$.each(this.options.items,function(widget,selector){var labels;var options={};if(!selector){return;}\nif(widget===\"controlgroupLabel\"){labels=that.element.find(selector);labels.each(function(){var element=$(this);if(element.children(\".ui-controlgroup-label-contents\").length){return;}\nelement.contents().wrapAll(\"<span class='ui-controlgroup-label-contents'></span>\");});that._addClass(labels,null,\"ui-widget ui-widget-content ui-state-default\");childWidgets=childWidgets.concat(labels.get());return;}\nif(!$.fn[widget]){return;}\nif(that[\"_\"+widget+\"Options\"]){options=that[\"_\"+widget+\"Options\"](\"middle\");}else{options={classes:{}};}\nthat.element.find(selector).each(function(){var element=$(this);var instance=element[widget](\"instance\");var instanceOptions=$.widget.extend({},options);if(widget===\"button\"&&element.parent(\".ui-spinner\").length){return;}\nif(!instance){instance=element[widget]()[widget](\"instance\");}\nif(instance){instanceOptions.classes=that._resolveClassesValues(instanceOptions.classes,instance);}\nelement[widget](instanceOptions);var widgetElement=element[widget](\"widget\");$.data(widgetElement[0],\"ui-controlgroup-data\",instance?instance:element[widget](\"instance\"));childWidgets.push(widgetElement[0]);});});this.childWidgets=$($.uniqueSort(childWidgets));this._addClass(this.childWidgets,\"ui-controlgroup-item\");},_callChildMethod:function(method){this.childWidgets.each(function(){var element=$(this),data=element.data(\"ui-controlgroup-data\");if(data&&data[method]){data[method]();}});},_updateCornerClass:function(element,position){var remove=\"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all\";var add=this._buildSimpleOptions(position,\"label\").classes.label;this._removeClass(element,null,remove);this._addClass(element,null,add);},_buildSimpleOptions:function(position,key){var direction=this.options.direction===\"vertical\";var result={classes:{}};result.classes[key]={\"middle\":\"\",\"first\":\"ui-corner-\"+(direction?\"top\":\"left\"),\"last\":\"ui-corner-\"+(direction?\"bottom\":\"right\"),\"only\":\"ui-corner-all\"}[position];return result;},_spinnerOptions:function(position){var options=this._buildSimpleOptions(position,\"ui-spinner\");options.classes[\"ui-spinner-up\"]=\"\";options.classes[\"ui-spinner-down\"]=\"\";return options;},_buttonOptions:function(position){return this._buildSimpleOptions(position,\"ui-button\");},_checkboxradioOptions:function(position){return this._buildSimpleOptions(position,\"ui-checkboxradio-label\");},_selectmenuOptions:function(position){var direction=this.options.direction===\"vertical\";return{width:direction?\"auto\":false,classes:{middle:{\"ui-selectmenu-button-open\":\"\",\"ui-selectmenu-button-closed\":\"\"},first:{\"ui-selectmenu-button-open\":\"ui-corner-\"+(direction?\"top\":\"tl\"),\"ui-selectmenu-button-closed\":\"ui-corner-\"+(direction?\"top\":\"left\")},last:{\"ui-selectmenu-button-open\":direction?\"\":\"ui-corner-tr\",\"ui-selectmenu-button-closed\":\"ui-corner-\"+(direction?\"bottom\":\"right\")},only:{\"ui-selectmenu-button-open\":\"ui-corner-top\",\"ui-selectmenu-button-closed\":\"ui-corner-all\"}}[position]};},_resolveClassesValues:function(classes,instance){var result={};$.each(classes,function(key){var current=instance.options.classes[key]||\"\";current=String.prototype.trim.call(current.replace(controlgroupCornerRegex,\"\"));result[key]=(current+\" \"+classes[key]).replace(/\\s+/g,\" \");});return result;},_setOption:function(key,value){if(key===\"direction\"){this._removeClass(\"ui-controlgroup-\"+this.options.direction);}\nthis._super(key,value);if(key===\"disabled\"){this._callChildMethod(value?\"disable\":\"enable\");return;}\nthis.refresh();},refresh:function(){var children,that=this;this._addClass(\"ui-controlgroup ui-controlgroup-\"+this.options.direction);if(this.options.direction===\"horizontal\"){this._addClass(null,\"ui-helper-clearfix\");}\nthis._initWidgets();children=this.childWidgets;if(this.options.onlyVisible){children=children.filter(\":visible\");}\nif(children.length){$.each([\"first\",\"last\"],function(index,value){var instance=children[value]().data(\"ui-controlgroup-data\");if(instance&&that[\"_\"+instance.widgetName+\"Options\"]){var options=that[\"_\"+instance.widgetName+\"Options\"](children.length===1?\"only\":value);options.classes=that._resolveClassesValues(options.classes,instance);instance.element[instance.widgetName](options);}else{that._updateCornerClass(children[value](),value);}});this._callChildMethod(\"refresh\");}}});});","jquery/ui-modules/effects/effect-puff.min.js":"/*!\n * jQuery UI Effects Puff 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"../version\",\"../effect\",\"./effect-scale\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";return $.effects.define(\"puff\",\"hide\",function(options,done){var newOptions=$.extend(true,{},options,{fade:true,percent:parseInt(options.percent,10)||150});$.effects.effect.scale.call(this,newOptions,done);});});","jquery/ui-modules/effects/effect-fold.min.js":"/*!\n * jQuery UI Effects Fold 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"../version\",\"../effect\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";return $.effects.define(\"fold\",\"hide\",function(options,done){var element=$(this),mode=options.mode,show=mode===\"show\",hide=mode===\"hide\",size=options.size||15,percent=/([0-9]+)%/.exec(size),horizFirst=!!options.horizFirst,ref=horizFirst?[\"right\",\"bottom\"]:[\"bottom\",\"right\"],duration=options.duration / 2,placeholder=$.effects.createPlaceholder(element),start=element.cssClip(),animation1={clip:$.extend({},start)},animation2={clip:$.extend({},start)},distance=[start[ref[0]],start[ref[1]]],queuelen=element.queue().length;if(percent){size=parseInt(percent[1],10)/ 100*distance[hide?0:1];}\nanimation1.clip[ref[0]]=size;animation2.clip[ref[0]]=size;animation2.clip[ref[1]]=0;if(show){element.cssClip(animation2.clip);if(placeholder){placeholder.css($.effects.clipToBox(animation2));}\nanimation2.clip=start;}\nelement.queue(function(next){if(placeholder){placeholder.animate($.effects.clipToBox(animation1),duration,options.easing).animate($.effects.clipToBox(animation2),duration,options.easing);}\nnext();}).animate(animation1,duration,options.easing).animate(animation2,duration,options.easing).queue(done);$.effects.unshift(element,queuelen,4);});});","jquery/ui-modules/effects/effect-slide.min.js":"/*!\n * jQuery UI Effects Slide 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"../version\",\"../effect\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";return $.effects.define(\"slide\",\"show\",function(options,done){var startClip,startRef,element=$(this),map={up:[\"bottom\",\"top\"],down:[\"top\",\"bottom\"],left:[\"right\",\"left\"],right:[\"left\",\"right\"]},mode=options.mode,direction=options.direction||\"left\",ref=(direction===\"up\"||direction===\"down\")?\"top\":\"left\",positiveMotion=(direction===\"up\"||direction===\"left\"),distance=options.distance||element[ref===\"top\"?\"outerHeight\":\"outerWidth\"](true),animation={};$.effects.createPlaceholder(element);startClip=element.cssClip();startRef=element.position()[ref];animation[ref]=(positiveMotion?-1:1)*distance+startRef;animation.clip=element.cssClip();animation.clip[map[direction][1]]=animation.clip[map[direction][0]];if(mode===\"show\"){element.cssClip(animation.clip);element.css(ref,animation[ref]);animation.clip=startClip;animation[ref]=startRef;}\nelement.animate(animation,{queue:false,duration:options.duration,easing:options.easing,complete:done});});});","jquery/ui-modules/effects/effect-clip.min.js":"/*!\n * jQuery UI Effects Clip 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"../version\",\"../effect\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";return $.effects.define(\"clip\",\"hide\",function(options,done){var start,animate={},element=$(this),direction=options.direction||\"vertical\",both=direction===\"both\",horizontal=both||direction===\"horizontal\",vertical=both||direction===\"vertical\";start=element.cssClip();animate.clip={top:vertical?(start.bottom-start.top)/ 2:start.top,right:horizontal?(start.right-start.left)/ 2:start.right,bottom:vertical?(start.bottom-start.top)/ 2:start.bottom,left:horizontal?(start.right-start.left)/ 2:start.left};$.effects.createPlaceholder(element);if(options.mode===\"show\"){element.cssClip(animate.clip);animate.clip=start;}\nelement.animate(animate,{queue:false,duration:options.duration,easing:options.easing,complete:done});});});","jquery/ui-modules/effects/effect-transfer.min.js":"/*!\n * jQuery UI Effects Transfer 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"../version\",\"../effect\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";var effect;if($.uiBackCompat!==false){effect=$.effects.define(\"transfer\",function(options,done){$(this).transfer(options,done);});}\nreturn effect;});","jquery/ui-modules/effects/effect-explode.min.js":"/*!\n * jQuery UI Effects Explode 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"../version\",\"../effect\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";return $.effects.define(\"explode\",\"hide\",function(options,done){var i,j,left,top,mx,my,rows=options.pieces?Math.round(Math.sqrt(options.pieces)):3,cells=rows,element=$(this),mode=options.mode,show=mode===\"show\",offset=element.show().css(\"visibility\",\"hidden\").offset(),width=Math.ceil(element.outerWidth()/ cells),height=Math.ceil(element.outerHeight()/ rows),pieces=[];function childComplete(){pieces.push(this);if(pieces.length===rows*cells){animComplete();}}\nfor(i=0;i<rows;i++){top=offset.top+i*height;my=i-(rows-1)/ 2;for(j=0;j<cells;j++){left=offset.left+j*width;mx=j-(cells-1)/ 2;element.clone().appendTo(\"body\").wrap(\"<div></div>\").css({position:\"absolute\",visibility:\"visible\",left:-j*width,top:-i*height}).parent().addClass(\"ui-effects-explode\").css({position:\"absolute\",overflow:\"hidden\",width:width,height:height,left:left+(show?mx*width:0),top:top+(show?my*height:0),opacity:show?0:1}).animate({left:left+(show?0:mx*width),top:top+(show?0:my*height),opacity:show?1:0},options.duration||500,options.easing,childComplete);}}\nfunction animComplete(){element.css({visibility:\"visible\"});$(pieces).remove();done();}});});","jquery/ui-modules/effects/effect-bounce.min.js":"/*!\n * jQuery UI Effects Bounce 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"../version\",\"../effect\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";return $.effects.define(\"bounce\",function(options,done){var upAnim,downAnim,refValue,element=$(this),mode=options.mode,hide=mode===\"hide\",show=mode===\"show\",direction=options.direction||\"up\",distance=options.distance,times=options.times||5,anims=times*2+(show||hide?1:0),speed=options.duration / anims,easing=options.easing,ref=(direction===\"up\"||direction===\"down\")?\"top\":\"left\",motion=(direction===\"up\"||direction===\"left\"),i=0,queuelen=element.queue().length;$.effects.createPlaceholder(element);refValue=element.css(ref);if(!distance){distance=element[ref===\"top\"?\"outerHeight\":\"outerWidth\"]()/ 3;}\nif(show){downAnim={opacity:1};downAnim[ref]=refValue;element.css(\"opacity\",0).css(ref,motion?-distance*2:distance*2).animate(downAnim,speed,easing);}\nif(hide){distance=distance / Math.pow(2,times-1);}\ndownAnim={};downAnim[ref]=refValue;for(;i<times;i++){upAnim={};upAnim[ref]=(motion?\"-=\":\"+=\")+distance;element.animate(upAnim,speed,easing).animate(downAnim,speed,easing);distance=hide?distance*2:distance / 2;}\nif(hide){upAnim={opacity:0};upAnim[ref]=(motion?\"-=\":\"+=\")+distance;element.animate(upAnim,speed,easing);}\nelement.queue(done);$.effects.unshift(element,queuelen,anims+1);});});","jquery/ui-modules/effects/effect-blind.min.js":"/*!\n * jQuery UI Effects Blind 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"../version\",\"../effect\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";return $.effects.define(\"blind\",\"hide\",function(options,done){var map={up:[\"bottom\",\"top\"],vertical:[\"bottom\",\"top\"],down:[\"top\",\"bottom\"],left:[\"right\",\"left\"],horizontal:[\"right\",\"left\"],right:[\"left\",\"right\"]},element=$(this),direction=options.direction||\"up\",start=element.cssClip(),animate={clip:$.extend({},start)},placeholder=$.effects.createPlaceholder(element);animate.clip[map[direction][0]]=animate.clip[map[direction][1]];if(options.mode===\"show\"){element.cssClip(animate.clip);if(placeholder){placeholder.css($.effects.clipToBox(animate));}\nanimate.clip=start;}\nif(placeholder){placeholder.animate($.effects.clipToBox(animate),options.duration,options.easing);}\nelement.animate(animate,{queue:false,duration:options.duration,easing:options.easing,complete:done});});});","jquery/ui-modules/effects/effect-fade.min.js":"/*!\n * jQuery UI Effects Fade 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"../version\",\"../effect\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";return $.effects.define(\"fade\",\"toggle\",function(options,done){var show=options.mode===\"show\";$(this).css(\"opacity\",show?0:1).animate({opacity:show?1:0},{queue:false,duration:options.duration,easing:options.easing,complete:done});});});","jquery/ui-modules/effects/effect-drop.min.js":"/*!\n * jQuery UI Effects Clip 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"../version\",\"../effect\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";return $.effects.define(\"clip\",\"hide\",function(options,done){var start,animate={},element=$(this),direction=options.direction||\"vertical\",both=direction===\"both\",horizontal=both||direction===\"horizontal\",vertical=both||direction===\"vertical\";start=element.cssClip();animate.clip={top:vertical?(start.bottom-start.top)/ 2:start.top,right:horizontal?(start.right-start.left)/ 2:start.right,bottom:vertical?(start.bottom-start.top)/ 2:start.bottom,left:horizontal?(start.right-start.left)/ 2:start.left};$.effects.createPlaceholder(element);if(options.mode===\"show\"){element.cssClip(animate.clip);animate.clip=start;}\nelement.animate(animate,{queue:false,duration:options.duration,easing:options.easing,complete:done});});});","jquery/ui-modules/effects/effect-highlight.min.js":"/*!\n * jQuery UI Effects Highlight 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"../version\",\"../effect\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";return $.effects.define(\"highlight\",\"show\",function(options,done){var element=$(this),animation={backgroundColor:element.css(\"backgroundColor\")};if(options.mode===\"hide\"){animation.opacity=0;}\n$.effects.saveStyle(element);element.css({backgroundImage:\"none\",backgroundColor:options.color||\"#ffff99\"}).animate(animation,{queue:false,duration:options.duration,easing:options.easing,complete:done});});});","jquery/ui-modules/effects/effect-pulsate.min.js":"/*!\n * jQuery UI Effects Pulsate 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"../version\",\"../effect\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";return $.effects.define(\"pulsate\",\"show\",function(options,done){var element=$(this),mode=options.mode,show=mode===\"show\",hide=mode===\"hide\",showhide=show||hide,anims=((options.times||5)*2)+(showhide?1:0),duration=options.duration / anims,animateTo=0,i=1,queuelen=element.queue().length;if(show||!element.is(\":visible\")){element.css(\"opacity\",0).show();animateTo=1;}\nfor(;i<anims;i++){element.animate({opacity:animateTo},duration,options.easing);animateTo=1-animateTo;}\nelement.animate({opacity:animateTo},duration,options.easing);element.queue(done);$.effects.unshift(element,queuelen,anims+1);});});","jquery/ui-modules/effects/effect-shake.min.js":"/*!\n * jQuery UI Effects Shake 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"../version\",\"../effect\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";return $.effects.define(\"shake\",function(options,done){var i=1,element=$(this),direction=options.direction||\"left\",distance=options.distance||20,times=options.times||3,anims=times*2+1,speed=Math.round(options.duration / anims),ref=(direction===\"up\"||direction===\"down\")?\"top\":\"left\",positiveMotion=(direction===\"up\"||direction===\"left\"),animation={},animation1={},animation2={},queuelen=element.queue().length;$.effects.createPlaceholder(element);animation[ref]=(positiveMotion?\"-=\":\"+=\")+distance;animation1[ref]=(positiveMotion?\"+=\":\"-=\")+distance*2;animation2[ref]=(positiveMotion?\"-=\":\"+=\")+distance*2;element.animate(animation,speed,options.easing);for(;i<times;i++){element.animate(animation1,speed,options.easing).animate(animation2,speed,options.easing);}\nelement.animate(animation1,speed,options.easing).animate(animation,speed / 2,options.easing).queue(done);$.effects.unshift(element,queuelen,anims+1);});});","jquery/ui-modules/effects/effect-scale.min.js":"/*!\n * jQuery UI Effects Scale 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"../version\",\"../effect\",\"./effect-size\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";return $.effects.define(\"scale\",function(options,done){var el=$(this),mode=options.mode,percent=parseInt(options.percent,10)||(parseInt(options.percent,10)===0?0:(mode!==\"effect\"?0:100)),newOptions=$.extend(true,{from:$.effects.scaledDimensions(el),to:$.effects.scaledDimensions(el,percent,options.direction||\"both\"),origin:options.origin||[\"middle\",\"center\"]},options);if(options.fade){newOptions.from.opacity=1;newOptions.to.opacity=0;}\n$.effects.effect.size.call(this,newOptions,done);});});","jquery/ui-modules/effects/effect-size.min.js":"/*!\n * jQuery UI Effects Size 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"jquery\",\"../version\",\"../effect\"],factory);}else{factory(jQuery);}})(function($){\"use strict\";return $.effects.define(\"size\",function(options,done){var baseline,factor,temp,element=$(this),cProps=[\"fontSize\"],vProps=[\"borderTopWidth\",\"borderBottomWidth\",\"paddingTop\",\"paddingBottom\"],hProps=[\"borderLeftWidth\",\"borderRightWidth\",\"paddingLeft\",\"paddingRight\"],mode=options.mode,restore=mode!==\"effect\",scale=options.scale||\"both\",origin=options.origin||[\"middle\",\"center\"],position=element.css(\"position\"),pos=element.position(),original=$.effects.scaledDimensions(element),from=options.from||original,to=options.to||$.effects.scaledDimensions(element,0);$.effects.createPlaceholder(element);if(mode===\"show\"){temp=from;from=to;to=temp;}\nfactor={from:{y:from.height / original.height,x:from.width / original.width},to:{y:to.height / original.height,x:to.width / original.width}};if(scale===\"box\"||scale===\"both\"){if(factor.from.y!==factor.to.y){from=$.effects.setTransition(element,vProps,factor.from.y,from);to=$.effects.setTransition(element,vProps,factor.to.y,to);}\nif(factor.from.x!==factor.to.x){from=$.effects.setTransition(element,hProps,factor.from.x,from);to=$.effects.setTransition(element,hProps,factor.to.x,to);}}\nif(scale===\"content\"||scale===\"both\"){if(factor.from.y!==factor.to.y){from=$.effects.setTransition(element,cProps,factor.from.y,from);to=$.effects.setTransition(element,cProps,factor.to.y,to);}}\nif(origin){baseline=$.effects.getBaseline(origin,original);from.top=(original.outerHeight-from.outerHeight)*baseline.y+pos.top;from.left=(original.outerWidth-from.outerWidth)*baseline.x+pos.left;to.top=(original.outerHeight-to.outerHeight)*baseline.y+pos.top;to.left=(original.outerWidth-to.outerWidth)*baseline.x+pos.left;}\ndelete from.outerHeight;delete from.outerWidth;element.css(from);if(scale===\"content\"||scale===\"both\"){vProps=vProps.concat([\"marginTop\",\"marginBottom\"]).concat(cProps);hProps=hProps.concat([\"marginLeft\",\"marginRight\"]);element.find(\"*[width]\").each(function(){var child=$(this),childOriginal=$.effects.scaledDimensions(child),childFrom={height:childOriginal.height*factor.from.y,width:childOriginal.width*factor.from.x,outerHeight:childOriginal.outerHeight*factor.from.y,outerWidth:childOriginal.outerWidth*factor.from.x},childTo={height:childOriginal.height*factor.to.y,width:childOriginal.width*factor.to.x,outerHeight:childOriginal.height*factor.to.y,outerWidth:childOriginal.width*factor.to.x};if(factor.from.y!==factor.to.y){childFrom=$.effects.setTransition(child,vProps,factor.from.y,childFrom);childTo=$.effects.setTransition(child,vProps,factor.to.y,childTo);}\nif(factor.from.x!==factor.to.x){childFrom=$.effects.setTransition(child,hProps,factor.from.x,childFrom);childTo=$.effects.setTransition(child,hProps,factor.to.x,childTo);}\nif(restore){$.effects.saveStyle(child);}\nchild.css(childFrom);child.animate(childTo,options.duration,options.easing,function(){if(restore){$.effects.restoreStyle(child);}});});}\nelement.animate(to,{queue:false,duration:options.duration,easing:options.easing,complete:function(){var offset=element.offset();if(to.opacity===0){element.css(\"opacity\",from.opacity);}\nif(!restore){element.css(\"position\",position===\"static\"?\"relative\":position).offset(offset);$.effects.saveStyle(element);}\ndone();}});});});","jquery/ui-modules/i18n/datepicker-th.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.th={closeText:\"\u0e1b\u0e34\u0e14\",prevText:\"&#xAB;&#xA0;\u0e22\u0e49\u0e2d\u0e19\",nextText:\"\u0e16\u0e31\u0e14\u0e44\u0e1b&#xA0;&#xBB;\",currentText:\"\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49\",monthNames:[\"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21\",\"\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c\",\"\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21\",\"\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19\",\"\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21\",\"\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19\",\"\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21\",\"\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21\",\"\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19\",\"\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21\",\"\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19\",\"\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21\"],monthNamesShort:[\"\u0e21.\u0e04.\",\"\u0e01.\u0e1e.\",\"\u0e21\u0e35.\u0e04.\",\"\u0e40\u0e21.\u0e22.\",\"\u0e1e.\u0e04.\",\"\u0e21\u0e34.\u0e22.\",\"\u0e01.\u0e04.\",\"\u0e2a.\u0e04.\",\"\u0e01.\u0e22.\",\"\u0e15.\u0e04.\",\"\u0e1e.\u0e22.\",\"\u0e18.\u0e04.\"],dayNames:[\"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c\",\"\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c\",\"\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23\",\"\u0e1e\u0e38\u0e18\",\"\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35\",\"\u0e28\u0e38\u0e01\u0e23\u0e4c\",\"\u0e40\u0e2a\u0e32\u0e23\u0e4c\"],dayNamesShort:[\"\u0e2d\u0e32.\",\"\u0e08.\",\"\u0e2d.\",\"\u0e1e.\",\"\u0e1e\u0e24.\",\"\u0e28.\",\"\u0e2a.\"],dayNamesMin:[\"\u0e2d\u0e32.\",\"\u0e08.\",\"\u0e2d.\",\"\u0e1e.\",\"\u0e1e\u0e24.\",\"\u0e28.\",\"\u0e2a.\"],weekHeader:\"Wk\",dateFormat:\"dd/mm/yy\",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.th);return datepicker.regional.th;});","jquery/ui-modules/i18n/datepicker-fr-CH.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional[\"fr-CH\"]={closeText:\"Fermer\",prevText:\"&#x3C;Pr\u00e9c\",nextText:\"Suiv&#x3E;\",currentText:\"Courant\",monthNames:[\"janvier\",\"f\u00e9vrier\",\"mars\",\"avril\",\"mai\",\"juin\",\"juillet\",\"ao\u00fbt\",\"septembre\",\"octobre\",\"novembre\",\"d\u00e9cembre\"],monthNamesShort:[\"janv.\",\"f\u00e9vr.\",\"mars\",\"avril\",\"mai\",\"juin\",\"juil.\",\"ao\u00fbt\",\"sept.\",\"oct.\",\"nov.\",\"d\u00e9c.\"],dayNames:[\"dimanche\",\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\"],dayNamesShort:[\"dim.\",\"lun.\",\"mar.\",\"mer.\",\"jeu.\",\"ven.\",\"sam.\"],dayNamesMin:[\"D\",\"L\",\"M\",\"M\",\"J\",\"V\",\"S\"],weekHeader:\"Sm\",dateFormat:\"dd.mm.yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional[\"fr-CH\"]);return datepicker.regional[\"fr-CH\"];});","jquery/ui-modules/i18n/datepicker-ka.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.ka={closeText:\"\u10d3\u10d0\u10ee\u10e3\u10e0\u10d5\u10d0\",prevText:\"&#x3c; \u10ec\u10d8\u10dc\u10d0\",nextText:\"\u10e8\u10d4\u10db\u10d3\u10d4\u10d2\u10d8 &#x3e;\",currentText:\"\u10d3\u10e6\u10d4\u10e1\",monthNames:[\"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8\",\"\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8\",\"\u10db\u10d0\u10e0\u10e2\u10d8\",\"\u10d0\u10de\u10e0\u10d8\u10da\u10d8\",\"\u10db\u10d0\u10d8\u10e1\u10d8\",\"\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8\",\"\u10d8\u10d5\u10da\u10d8\u10e1\u10d8\",\"\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd\",\"\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8\",\"\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8\",\"\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8\",\"\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8\"],monthNamesShort:[\"\u10d8\u10d0\u10dc\",\"\u10d7\u10d4\u10d1\",\"\u10db\u10d0\u10e0\",\"\u10d0\u10de\u10e0\",\"\u10db\u10d0\u10d8\",\"\u10d8\u10d5\u10dc\",\"\u10d8\u10d5\u10da\",\"\u10d0\u10d2\u10d5\",\"\u10e1\u10d4\u10e5\",\"\u10dd\u10e5\u10e2\",\"\u10dc\u10dd\u10d4\",\"\u10d3\u10d4\u10d9\"],dayNames:[\"\u10d9\u10d5\u10d8\u10e0\u10d0\",\"\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8\",\"\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8\",\"\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8\",\"\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8\",\"\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8\",\"\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8\"],dayNamesShort:[\"\u10d9\u10d5\",\"\u10dd\u10e0\u10e8\",\"\u10e1\u10d0\u10db\",\"\u10dd\u10d7\u10ee\",\"\u10ee\u10e3\u10d7\",\"\u10de\u10d0\u10e0\",\"\u10e8\u10d0\u10d1\"],dayNamesMin:[\"\u10d9\u10d5\",\"\u10dd\u10e0\u10e8\",\"\u10e1\u10d0\u10db\",\"\u10dd\u10d7\u10ee\",\"\u10ee\u10e3\u10d7\",\"\u10de\u10d0\u10e0\",\"\u10e8\u10d0\u10d1\"],weekHeader:\"\u10d9\u10d5\u10d8\u10e0\u10d0\",dateFormat:\"dd-mm-yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.ka);return datepicker.regional.ka;});","jquery/ui-modules/i18n/datepicker-ar-DZ.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional[\"ar-DZ\"]={closeText:\"\u0625\u063a\u0644\u0627\u0642\",prevText:\"&#x3C;\u0627\u0644\u0633\u0627\u0628\u0642\",nextText:\"\u0627\u0644\u062a\u0627\u0644\u064a&#x3E;\",currentText:\"\u0627\u0644\u064a\u0648\u0645\",monthNames:[\"\u062c\u0627\u0646\u0641\u064a\",\"\u0641\u064a\u0641\u0631\u064a\",\"\u0645\u0627\u0631\u0633\",\"\u0623\u0641\u0631\u064a\u0644\",\"\u0645\u0627\u064a\",\"\u062c\u0648\u0627\u0646\",\"\u062c\u0648\u064a\u0644\u064a\u0629\",\"\u0623\u0648\u062a\",\"\u0633\u0628\u062a\u0645\u0628\u0631\",\"\u0623\u0643\u062a\u0648\u0628\u0631\",\"\u0646\u0648\u0641\u0645\u0628\u0631\",\"\u062f\u064a\u0633\u0645\u0628\u0631\"],monthNamesShort:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\"],dayNames:[\"\u0627\u0644\u0623\u062d\u062f\",\"\u0627\u0644\u0627\u062b\u0646\u064a\u0646\",\"\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621\",\"\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621\",\"\u0627\u0644\u062e\u0645\u064a\u0633\",\"\u0627\u0644\u062c\u0645\u0639\u0629\",\"\u0627\u0644\u0633\u0628\u062a\"],dayNamesShort:[\"\u0627\u0644\u0623\u062d\u062f\",\"\u0627\u0644\u0627\u062b\u0646\u064a\u0646\",\"\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621\",\"\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621\",\"\u0627\u0644\u062e\u0645\u064a\u0633\",\"\u0627\u0644\u062c\u0645\u0639\u0629\",\"\u0627\u0644\u0633\u0628\u062a\"],dayNamesMin:[\"\u062d\",\"\u0646\",\"\u062b\",\"\u0631\",\"\u062e\",\"\u062c\",\"\u0633\"],weekHeader:\"\u0623\u0633\u0628\u0648\u0639\",dateFormat:\"dd/mm/yy\",firstDay:6,isRTL:true,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional[\"ar-DZ\"]);return datepicker.regional[\"ar-DZ\"];});","jquery/ui-modules/i18n/datepicker-de.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.de={closeText:\"Schlie\u00dfen\",prevText:\"&#x3C;Zur\u00fcck\",nextText:\"Vor&#x3E;\",currentText:\"Heute\",monthNames:[\"Januar\",\"Februar\",\"M\u00e4rz\",\"April\",\"Mai\",\"Juni\",\"Juli\",\"August\",\"September\",\"Oktober\",\"November\",\"Dezember\"],monthNamesShort:[\"Jan\",\"Feb\",\"M\u00e4r\",\"Apr\",\"Mai\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Okt\",\"Nov\",\"Dez\"],dayNames:[\"Sonntag\",\"Montag\",\"Dienstag\",\"Mittwoch\",\"Donnerstag\",\"Freitag\",\"Samstag\"],dayNamesShort:[\"So\",\"Mo\",\"Di\",\"Mi\",\"Do\",\"Fr\",\"Sa\"],dayNamesMin:[\"So\",\"Mo\",\"Di\",\"Mi\",\"Do\",\"Fr\",\"Sa\"],weekHeader:\"KW\",dateFormat:\"dd.mm.yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.de);return datepicker.regional.de;});","jquery/ui-modules/i18n/datepicker-ar.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.ar={closeText:\"\u0625\u063a\u0644\u0627\u0642\",prevText:\"&#x3C;\u0627\u0644\u0633\u0627\u0628\u0642\",nextText:\"\u0627\u0644\u062a\u0627\u0644\u064a&#x3E;\",currentText:\"\u0627\u0644\u064a\u0648\u0645\",monthNames:[\"\u064a\u0646\u0627\u064a\u0631\",\"\u0641\u0628\u0631\u0627\u064a\u0631\",\"\u0645\u0627\u0631\u0633\",\"\u0623\u0628\u0631\u064a\u0644\",\"\u0645\u0627\u064a\u0648\",\"\u064a\u0648\u0646\u064a\u0648\",\"\u064a\u0648\u0644\u064a\u0648\",\"\u0623\u063a\u0633\u0637\u0633\",\"\u0633\u0628\u062a\u0645\u0628\u0631\",\"\u0623\u0643\u062a\u0648\u0628\u0631\",\"\u0646\u0648\u0641\u0645\u0628\u0631\",\"\u062f\u064a\u0633\u0645\u0628\u0631\"],monthNamesShort:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\"],dayNames:[\"\u0627\u0644\u0623\u062d\u062f\",\"\u0627\u0644\u0627\u062b\u0646\u064a\u0646\",\"\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621\",\"\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621\",\"\u0627\u0644\u062e\u0645\u064a\u0633\",\"\u0627\u0644\u062c\u0645\u0639\u0629\",\"\u0627\u0644\u0633\u0628\u062a\"],dayNamesShort:[\"\u0623\u062d\u062f\",\"\u0627\u062b\u0646\u064a\u0646\",\"\u062b\u0644\u0627\u062b\u0627\u0621\",\"\u0623\u0631\u0628\u0639\u0627\u0621\",\"\u062e\u0645\u064a\u0633\",\"\u062c\u0645\u0639\u0629\",\"\u0633\u0628\u062a\"],dayNamesMin:[\"\u062d\",\"\u0646\",\"\u062b\",\"\u0631\",\"\u062e\",\"\u062c\",\"\u0633\"],weekHeader:\"\u0623\u0633\u0628\u0648\u0639\",dateFormat:\"dd/mm/yy\",firstDay:0,isRTL:true,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.ar);return datepicker.regional.ar;});","jquery/ui-modules/i18n/datepicker-pt.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.pt={closeText:\"Fechar\",prevText:\"Anterior\",nextText:\"Seguinte\",currentText:\"Hoje\",monthNames:[\"Janeiro\",\"Fevereiro\",\"Mar\u00e7o\",\"Abril\",\"Maio\",\"Junho\",\"Julho\",\"Agosto\",\"Setembro\",\"Outubro\",\"Novembro\",\"Dezembro\"],monthNamesShort:[\"Jan\",\"Fev\",\"Mar\",\"Abr\",\"Mai\",\"Jun\",\"Jul\",\"Ago\",\"Set\",\"Out\",\"Nov\",\"Dez\"],dayNames:[\"Domingo\",\"Segunda-feira\",\"Ter\u00e7a-feira\",\"Quarta-feira\",\"Quinta-feira\",\"Sexta-feira\",\"S\u00e1bado\"],dayNamesShort:[\"Dom\",\"Seg\",\"Ter\",\"Qua\",\"Qui\",\"Sex\",\"S\u00e1b\"],dayNamesMin:[\"Dom\",\"Seg\",\"Ter\",\"Qua\",\"Qui\",\"Sex\",\"S\u00e1b\"],weekHeader:\"Sem\",dateFormat:\"dd/mm/yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.pt);return datepicker.regional.pt;});","jquery/ui-modules/i18n/datepicker-az.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.az={closeText:\"Ba\u011fla\",prevText:\"&#x3C;Geri\",nextText:\"\u0130r\u0259li&#x3E;\",currentText:\"Bug\u00fcn\",monthNames:[\"Yanvar\",\"Fevral\",\"Mart\",\"Aprel\",\"May\",\"\u0130yun\",\"\u0130yul\",\"Avqust\",\"Sentyabr\",\"Oktyabr\",\"Noyabr\",\"Dekabr\"],monthNamesShort:[\"Yan\",\"Fev\",\"Mar\",\"Apr\",\"May\",\"\u0130yun\",\"\u0130yul\",\"Avq\",\"Sen\",\"Okt\",\"Noy\",\"Dek\"],dayNames:[\"Bazar\",\"Bazar ert\u0259si\",\"\u00c7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131\",\"\u00c7\u0259r\u015f\u0259nb\u0259\",\"C\u00fcm\u0259 ax\u015fam\u0131\",\"C\u00fcm\u0259\",\"\u015e\u0259nb\u0259\"],dayNamesShort:[\"B\",\"Be\",\"\u00c7a\",\"\u00c7\",\"Ca\",\"C\",\"\u015e\"],dayNamesMin:[\"B\",\"B\",\"\u00c7\",\"\u0421\",\"\u00c7\",\"C\",\"\u015e\"],weekHeader:\"Hf\",dateFormat:\"dd.mm.yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.az);return datepicker.regional.az;});","jquery/ui-modules/i18n/datepicker-el.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.el={closeText:\"\u039a\u03bb\u03b5\u03af\u03c3\u03b9\u03bc\u03bf\",prevText:\"\u03a0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf\u03c2\",nextText:\"\u0395\u03c0\u03cc\u03bc\u03b5\u03bd\u03bf\u03c2\",currentText:\"\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1\",monthNames:[\"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2\",\"\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2\",\"\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2\",\"\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2\",\"\u039c\u03ac\u03b9\u03bf\u03c2\",\"\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2\",\"\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2\",\"\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2\",\"\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2\",\"\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2\",\"\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2\",\"\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2\"],monthNamesShort:[\"\u0399\u03b1\u03bd\",\"\u03a6\u03b5\u03b2\",\"\u039c\u03b1\u03c1\",\"\u0391\u03c0\u03c1\",\"\u039c\u03b1\u03b9\",\"\u0399\u03bf\u03c5\u03bd\",\"\u0399\u03bf\u03c5\u03bb\",\"\u0391\u03c5\u03b3\",\"\u03a3\u03b5\u03c0\",\"\u039f\u03ba\u03c4\",\"\u039d\u03bf\u03b5\",\"\u0394\u03b5\u03ba\"],dayNames:[\"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae\",\"\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1\",\"\u03a4\u03c1\u03af\u03c4\u03b7\",\"\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7\",\"\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7\",\"\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae\",\"\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf\"],dayNamesShort:[\"\u039a\u03c5\u03c1\",\"\u0394\u03b5\u03c5\",\"\u03a4\u03c1\u03b9\",\"\u03a4\u03b5\u03c4\",\"\u03a0\u03b5\u03bc\",\"\u03a0\u03b1\u03c1\",\"\u03a3\u03b1\u03b2\"],dayNamesMin:[\"\u039a\u03c5\",\"\u0394\u03b5\",\"\u03a4\u03c1\",\"\u03a4\u03b5\",\"\u03a0\u03b5\",\"\u03a0\u03b1\",\"\u03a3\u03b1\"],weekHeader:\"\u0395\u03b2\u03b4\",dateFormat:\"dd/mm/yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.el);return datepicker.regional.el;});","jquery/ui-modules/i18n/datepicker-be.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.be={closeText:\"\u0417\u0430\u0447\u044b\u043d\u0456\u0446\u044c\",prevText:\"&larr;\u041f\u0430\u043f\u044f\u0440.\",nextText:\"\u041d\u0430\u0441\u0442.&rarr;\",currentText:\"\u0421\u0451\u043d\u044c\u043d\u044f\",monthNames:[\"\u0421\u0442\u0443\u0434\u0437\u0435\u043d\u044c\",\"\u041b\u044e\u0442\u044b\",\"\u0421\u0430\u043a\u0430\u0432\u0456\u043a\",\"\u041a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\",\"\u0422\u0440\u0430\u0432\u0435\u043d\u044c\",\"\u0427\u044d\u0440\u0432\u0435\u043d\u044c\",\"\u041b\u0456\u043f\u0435\u043d\u044c\",\"\u0416\u043d\u0456\u0432\u0435\u043d\u044c\",\"\u0412\u0435\u0440\u0430\u0441\u0435\u043d\u044c\",\"\u041a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\",\"\u041b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\",\"\u0421\u044c\u043d\u0435\u0436\u0430\u043d\u044c\"],monthNamesShort:[\"\u0421\u0442\u0443\",\"\u041b\u044e\u0442\",\"\u0421\u0430\u043a\",\"\u041a\u0440\u0430\",\"\u0422\u0440\u0430\",\"\u0427\u044d\u0440\",\"\u041b\u0456\u043f\",\"\u0416\u043d\u0456\",\"\u0412\u0435\u0440\",\"\u041a\u0430\u0441\",\"\u041b\u0456\u0441\",\"\u0421\u044c\u043d\"],dayNames:[\"\u043d\u044f\u0434\u0437\u0435\u043b\u044f\",\"\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a\",\"\u0430\u045e\u0442\u043e\u0440\u0430\u043a\",\"\u0441\u0435\u0440\u0430\u0434\u0430\",\"\u0447\u0430\u0446\u044c\u0432\u0435\u0440\",\"\u043f\u044f\u0442\u043d\u0456\u0446\u0430\",\"\u0441\u0443\u0431\u043e\u0442\u0430\"],dayNamesShort:[\"\u043d\u0434\u0437\",\"\u043f\u043d\u0434\",\"\u0430\u045e\u0442\",\"\u0441\u0440\u0434\",\"\u0447\u0446\u0432\",\"\u043f\u0442\u043d\",\"\u0441\u0431\u0442\"],dayNamesMin:[\"\u041d\u0434\",\"\u041f\u043d\",\"\u0410\u045e\",\"\u0421\u0440\",\"\u0427\u0446\",\"\u041f\u0442\",\"\u0421\u0431\"],weekHeader:\"\u0422\u0434\",dateFormat:\"dd.mm.yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.be);return datepicker.regional.be;});","jquery/ui-modules/i18n/datepicker-no.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.no={closeText:\"Lukk\",prevText:\"&#xAB;Forrige\",nextText:\"Neste&#xBB;\",currentText:\"I dag\",monthNames:[\"januar\",\"februar\",\"mars\",\"april\",\"mai\",\"juni\",\"juli\",\"august\",\"september\",\"oktober\",\"november\",\"desember\"],monthNamesShort:[\"jan\",\"feb\",\"mar\",\"apr\",\"mai\",\"jun\",\"jul\",\"aug\",\"sep\",\"okt\",\"nov\",\"des\"],dayNamesShort:[\"s\u00f8n\",\"man\",\"tir\",\"ons\",\"tor\",\"fre\",\"l\u00f8r\"],dayNames:[\"s\u00f8ndag\",\"mandag\",\"tirsdag\",\"onsdag\",\"torsdag\",\"fredag\",\"l\u00f8rdag\"],dayNamesMin:[\"s\u00f8\",\"ma\",\"ti\",\"on\",\"to\",\"fr\",\"l\u00f8\"],weekHeader:\"Uke\",dateFormat:\"dd.mm.yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.no);return datepicker.regional.no;});","jquery/ui-modules/i18n/datepicker-fr.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.fr={closeText:\"Fermer\",prevText:\"Pr\u00e9c\u00e9dent\",nextText:\"Suivant\",currentText:\"Aujourd'hui\",monthNames:[\"janvier\",\"f\u00e9vrier\",\"mars\",\"avril\",\"mai\",\"juin\",\"juillet\",\"ao\u00fbt\",\"septembre\",\"octobre\",\"novembre\",\"d\u00e9cembre\"],monthNamesShort:[\"janv.\",\"f\u00e9vr.\",\"mars\",\"avr.\",\"mai\",\"juin\",\"juil.\",\"ao\u00fbt\",\"sept.\",\"oct.\",\"nov.\",\"d\u00e9c.\"],dayNames:[\"dimanche\",\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\"],dayNamesShort:[\"dim.\",\"lun.\",\"mar.\",\"mer.\",\"jeu.\",\"ven.\",\"sam.\"],dayNamesMin:[\"D\",\"L\",\"M\",\"M\",\"J\",\"V\",\"S\"],weekHeader:\"Sem.\",dateFormat:\"dd/mm/yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.fr);return datepicker.regional.fr;});","jquery/ui-modules/i18n/datepicker-ms.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.ms={closeText:\"Tutup\",prevText:\"&#x3C;Sebelum\",nextText:\"Selepas&#x3E;\",currentText:\"hari ini\",monthNames:[\"Januari\",\"Februari\",\"Mac\",\"April\",\"Mei\",\"Jun\",\"Julai\",\"Ogos\",\"September\",\"Oktober\",\"November\",\"Disember\"],monthNamesShort:[\"Jan\",\"Feb\",\"Mac\",\"Apr\",\"Mei\",\"Jun\",\"Jul\",\"Ogo\",\"Sep\",\"Okt\",\"Nov\",\"Dis\"],dayNames:[\"Ahad\",\"Isnin\",\"Selasa\",\"Rabu\",\"Khamis\",\"Jumaat\",\"Sabtu\"],dayNamesShort:[\"Aha\",\"Isn\",\"Sel\",\"Rab\",\"kha\",\"Jum\",\"Sab\"],dayNamesMin:[\"Ah\",\"Is\",\"Se\",\"Ra\",\"Kh\",\"Ju\",\"Sa\"],weekHeader:\"Mg\",dateFormat:\"dd/mm/yy\",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.ms);return datepicker.regional.ms;});","jquery/ui-modules/i18n/datepicker-is.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.is={closeText:\"Loka\",prevText:\"&#x3C; Fyrri\",nextText:\"N\u00e6sti &#x3E;\",currentText:\"\u00cd dag\",monthNames:[\"Jan\u00faar\",\"Febr\u00faar\",\"Mars\",\"Apr\u00edl\",\"Ma\u00ed\",\"J\u00fan\u00ed\",\"J\u00fal\u00ed\",\"\u00c1g\u00fast\",\"September\",\"Okt\u00f3ber\",\"N\u00f3vember\",\"Desember\"],monthNamesShort:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"Ma\u00ed\",\"J\u00fan\",\"J\u00fal\",\"\u00c1g\u00fa\",\"Sep\",\"Okt\",\"N\u00f3v\",\"Des\"],dayNames:[\"Sunnudagur\",\"M\u00e1nudagur\",\"\u00deri\u00f0judagur\",\"Mi\u00f0vikudagur\",\"Fimmtudagur\",\"F\u00f6studagur\",\"Laugardagur\"],dayNamesShort:[\"Sun\",\"M\u00e1n\",\"\u00deri\",\"Mi\u00f0\",\"Fim\",\"F\u00f6s\",\"Lau\"],dayNamesMin:[\"Su\",\"M\u00e1\",\"\u00der\",\"Mi\",\"Fi\",\"F\u00f6\",\"La\"],weekHeader:\"Vika\",dateFormat:\"dd.mm.yy\",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.is);return datepicker.regional.is;});","jquery/ui-modules/i18n/datepicker-ca.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.ca={closeText:\"Tanca\",prevText:\"Anterior\",nextText:\"Seg\u00fcent\",currentText:\"Avui\",monthNames:[\"gener\",\"febrer\",\"mar\u00e7\",\"abril\",\"maig\",\"juny\",\"juliol\",\"agost\",\"setembre\",\"octubre\",\"novembre\",\"desembre\"],monthNamesShort:[\"gen\",\"feb\",\"mar\u00e7\",\"abr\",\"maig\",\"juny\",\"jul\",\"ag\",\"set\",\"oct\",\"nov\",\"des\"],dayNames:[\"diumenge\",\"dilluns\",\"dimarts\",\"dimecres\",\"dijous\",\"divendres\",\"dissabte\"],dayNamesShort:[\"dg\",\"dl\",\"dt\",\"dc\",\"dj\",\"dv\",\"ds\"],dayNamesMin:[\"dg\",\"dl\",\"dt\",\"dc\",\"dj\",\"dv\",\"ds\"],weekHeader:\"Set\",dateFormat:\"dd/mm/yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.ca);return datepicker.regional.ca;});","jquery/ui-modules/i18n/datepicker-ko.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.ko={closeText:\"\ub2eb\uae30\",prevText:\"\uc774\uc804\ub2ec\",nextText:\"\ub2e4\uc74c\ub2ec\",currentText:\"\uc624\ub298\",monthNames:[\"1\uc6d4\",\"2\uc6d4\",\"3\uc6d4\",\"4\uc6d4\",\"5\uc6d4\",\"6\uc6d4\",\"7\uc6d4\",\"8\uc6d4\",\"9\uc6d4\",\"10\uc6d4\",\"11\uc6d4\",\"12\uc6d4\"],monthNamesShort:[\"1\uc6d4\",\"2\uc6d4\",\"3\uc6d4\",\"4\uc6d4\",\"5\uc6d4\",\"6\uc6d4\",\"7\uc6d4\",\"8\uc6d4\",\"9\uc6d4\",\"10\uc6d4\",\"11\uc6d4\",\"12\uc6d4\"],dayNames:[\"\uc77c\uc694\uc77c\",\"\uc6d4\uc694\uc77c\",\"\ud654\uc694\uc77c\",\"\uc218\uc694\uc77c\",\"\ubaa9\uc694\uc77c\",\"\uae08\uc694\uc77c\",\"\ud1a0\uc694\uc77c\"],dayNamesShort:[\"\uc77c\",\"\uc6d4\",\"\ud654\",\"\uc218\",\"\ubaa9\",\"\uae08\",\"\ud1a0\"],dayNamesMin:[\"\uc77c\",\"\uc6d4\",\"\ud654\",\"\uc218\",\"\ubaa9\",\"\uae08\",\"\ud1a0\"],weekHeader:\"\uc8fc\",dateFormat:\"yy. m. d.\",firstDay:0,isRTL:false,showMonthAfterYear:true,yearSuffix:\"\ub144\"};datepicker.setDefaults(datepicker.regional.ko);return datepicker.regional.ko;});","jquery/ui-modules/i18n/datepicker-es.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.es={closeText:\"Cerrar\",prevText:\"&#x3C;Ant\",nextText:\"Sig&#x3E;\",currentText:\"Hoy\",monthNames:[\"enero\",\"febrero\",\"marzo\",\"abril\",\"mayo\",\"junio\",\"julio\",\"agosto\",\"septiembre\",\"octubre\",\"noviembre\",\"diciembre\"],monthNamesShort:[\"ene\",\"feb\",\"mar\",\"abr\",\"may\",\"jun\",\"jul\",\"ago\",\"sep\",\"oct\",\"nov\",\"dic\"],dayNames:[\"domingo\",\"lunes\",\"martes\",\"mi\u00e9rcoles\",\"jueves\",\"viernes\",\"s\u00e1bado\"],dayNamesShort:[\"dom\",\"lun\",\"mar\",\"mi\u00e9\",\"jue\",\"vie\",\"s\u00e1b\"],dayNamesMin:[\"D\",\"L\",\"M\",\"X\",\"J\",\"V\",\"S\"],weekHeader:\"Sm\",dateFormat:\"dd/mm/yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.es);return datepicker.regional.es;});","jquery/ui-modules/i18n/datepicker-zh-HK.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional[\"zh-HK\"]={closeText:\"\u95dc\u9589\",prevText:\"&#x3C;\u4e0a\u6708\",nextText:\"\u4e0b\u6708&#x3E;\",currentText:\"\u4eca\u5929\",monthNames:[\"\u4e00\u6708\",\"\u4e8c\u6708\",\"\u4e09\u6708\",\"\u56db\u6708\",\"\u4e94\u6708\",\"\u516d\u6708\",\"\u4e03\u6708\",\"\u516b\u6708\",\"\u4e5d\u6708\",\"\u5341\u6708\",\"\u5341\u4e00\u6708\",\"\u5341\u4e8c\u6708\"],monthNamesShort:[\"\u4e00\u6708\",\"\u4e8c\u6708\",\"\u4e09\u6708\",\"\u56db\u6708\",\"\u4e94\u6708\",\"\u516d\u6708\",\"\u4e03\u6708\",\"\u516b\u6708\",\"\u4e5d\u6708\",\"\u5341\u6708\",\"\u5341\u4e00\u6708\",\"\u5341\u4e8c\u6708\"],dayNames:[\"\u661f\u671f\u65e5\",\"\u661f\u671f\u4e00\",\"\u661f\u671f\u4e8c\",\"\u661f\u671f\u4e09\",\"\u661f\u671f\u56db\",\"\u661f\u671f\u4e94\",\"\u661f\u671f\u516d\"],dayNamesShort:[\"\u5468\u65e5\",\"\u5468\u4e00\",\"\u5468\u4e8c\",\"\u5468\u4e09\",\"\u5468\u56db\",\"\u5468\u4e94\",\"\u5468\u516d\"],dayNamesMin:[\"\u65e5\",\"\u4e00\",\"\u4e8c\",\"\u4e09\",\"\u56db\",\"\u4e94\",\"\u516d\"],weekHeader:\"\u5468\",dateFormat:\"dd-mm-yy\",firstDay:0,isRTL:false,showMonthAfterYear:true,yearSuffix:\"\u5e74\"};datepicker.setDefaults(datepicker.regional[\"zh-HK\"]);return datepicker.regional[\"zh-HK\"];});","jquery/ui-modules/i18n/datepicker-en-AU.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional[\"en-AU\"]={closeText:\"Done\",prevText:\"Prev\",nextText:\"Next\",currentText:\"Today\",monthNames:[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"],monthNamesShort:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"],dayNames:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"],dayNamesShort:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],dayNamesMin:[\"Su\",\"Mo\",\"Tu\",\"We\",\"Th\",\"Fr\",\"Sa\"],weekHeader:\"Wk\",dateFormat:\"dd/mm/yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional[\"en-AU\"]);return datepicker.regional[\"en-AU\"];});","jquery/ui-modules/i18n/datepicker-hr.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.hr={closeText:\"Zatvori\",prevText:\"&#x3C;\",nextText:\"&#x3E;\",currentText:\"Danas\",monthNames:[\"Sije\u010danj\",\"Velja\u010da\",\"O\u017eujak\",\"Travanj\",\"Svibanj\",\"Lipanj\",\"Srpanj\",\"Kolovoz\",\"Rujan\",\"Listopad\",\"Studeni\",\"Prosinac\"],monthNamesShort:[\"Sij\",\"Velj\",\"O\u017eu\",\"Tra\",\"Svi\",\"Lip\",\"Srp\",\"Kol\",\"Ruj\",\"Lis\",\"Stu\",\"Pro\"],dayNames:[\"Nedjelja\",\"Ponedjeljak\",\"Utorak\",\"Srijeda\",\"\u010cetvrtak\",\"Petak\",\"Subota\"],dayNamesShort:[\"Ned\",\"Pon\",\"Uto\",\"Sri\",\"\u010cet\",\"Pet\",\"Sub\"],dayNamesMin:[\"Ne\",\"Po\",\"Ut\",\"Sr\",\"\u010ce\",\"Pe\",\"Su\"],weekHeader:\"Tje\",dateFormat:\"dd.mm.yy.\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.hr);return datepicker.regional.hr;});","jquery/ui-modules/i18n/datepicker-km.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.km={closeText:\"\u1792\u17d2\u179c\u17be\u200b\u179a\u17bd\u1785\",prevText:\"\u1798\u17bb\u1793\",nextText:\"\u1794\u1793\u17d2\u1791\u17b6\u1794\u17cb\",currentText:\"\u1790\u17d2\u1784\u17c3\u200b\u1793\u17c1\u17c7\",monthNames:[\"\u1798\u1780\u179a\u17b6\",\"\u1780\u17bb\u1798\u17d2\u1797\u17c8\",\"\u1798\u17b8\u1793\u17b6\",\"\u1798\u17c1\u179f\u17b6\",\"\u17a7\u179f\u1797\u17b6\",\"\u1798\u17b7\u1790\u17bb\u1793\u17b6\",\"\u1780\u1780\u17d2\u1780\u178a\u17b6\",\"\u179f\u17b8\u17a0\u17b6\",\"\u1780\u1789\u17d2\u1789\u17b6\",\"\u178f\u17bb\u179b\u17b6\",\"\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6\",\"\u1792\u17d2\u1793\u17bc\"],monthNamesShort:[\"\u1798\u1780\u179a\u17b6\",\"\u1780\u17bb\u1798\u17d2\u1797\u17c8\",\"\u1798\u17b8\u1793\u17b6\",\"\u1798\u17c1\u179f\u17b6\",\"\u17a7\u179f\u1797\u17b6\",\"\u1798\u17b7\u1790\u17bb\u1793\u17b6\",\"\u1780\u1780\u17d2\u1780\u178a\u17b6\",\"\u179f\u17b8\u17a0\u17b6\",\"\u1780\u1789\u17d2\u1789\u17b6\",\"\u178f\u17bb\u179b\u17b6\",\"\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6\",\"\u1792\u17d2\u1793\u17bc\"],dayNames:[\"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799\",\"\u1785\u1793\u17d2\u1791\",\"\u17a2\u1784\u17d2\u1782\u17b6\u179a\",\"\u1796\u17bb\u1792\",\"\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd\",\"\u179f\u17bb\u1780\u17d2\u179a\",\"\u179f\u17c5\u179a\u17cd\"],dayNamesShort:[\"\u17a2\u17b6\",\"\u1785\",\"\u17a2\",\"\u1796\u17bb\",\"\u1796\u17d2\u179a\u17a0\",\"\u179f\u17bb\",\"\u179f\u17c5\"],dayNamesMin:[\"\u17a2\u17b6\",\"\u1785\",\"\u17a2\",\"\u1796\u17bb\",\"\u1796\u17d2\u179a\u17a0\",\"\u179f\u17bb\",\"\u179f\u17c5\"],weekHeader:\"\u179f\u1794\u17d2\u178a\u17b6\u17a0\u17cd\",dateFormat:\"dd-mm-yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.km);return datepicker.regional.km;});","jquery/ui-modules/i18n/datepicker-tj.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.tj={closeText:\"\u0418\u0434\u043e\u043c\u0430\",prevText:\"&#x3c;\u049a\u0430\u0444\u043e\",nextText:\"\u041f\u0435\u0448&#x3e;\",currentText:\"\u0418\u043c\u0440\u04ef\u0437\",monthNames:[\"\u042f\u043d\u0432\u0430\u0440\",\"\u0424\u0435\u0432\u0440\u0430\u043b\",\"\u041c\u0430\u0440\u0442\",\"\u0410\u043f\u0440\u0435\u043b\",\"\u041c\u0430\u0439\",\"\u0418\u044e\u043d\",\"\u0418\u044e\u043b\",\"\u0410\u0432\u0433\u0443\u0441\u0442\",\"\u0421\u0435\u043d\u0442\u044f\u0431\u0440\",\"\u041e\u043a\u0442\u044f\u0431\u0440\",\"\u041d\u043e\u044f\u0431\u0440\",\"\u0414\u0435\u043a\u0430\u0431\u0440\"],monthNamesShort:[\"\u042f\u043d\u0432\",\"\u0424\u0435\u0432\",\"\u041c\u0430\u0440\",\"\u0410\u043f\u0440\",\"\u041c\u0430\u0439\",\"\u0418\u044e\u043d\",\"\u0418\u044e\u043b\",\"\u0410\u0432\u0433\",\"\u0421\u0435\u043d\",\"\u041e\u043a\u0442\",\"\u041d\u043e\u044f\",\"\u0414\u0435\u043a\"],dayNames:[\"\u044f\u043a\u0448\u0430\u043d\u0431\u0435\",\"\u0434\u0443\u0448\u0430\u043d\u0431\u0435\",\"\u0441\u0435\u0448\u0430\u043d\u0431\u0435\",\"\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435\",\"\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435\",\"\u04b7\u0443\u043c\u044a\u0430\",\"\u0448\u0430\u043d\u0431\u0435\"],dayNamesShort:[\"\u044f\u043a\u0448\",\"\u0434\u0443\u0448\",\"\u0441\u0435\u0448\",\"\u0447\u043e\u0440\",\"\u043f\u0430\u043d\",\"\u04b7\u0443\u043c\",\"\u0448\u0430\u043d\"],dayNamesMin:[\"\u042f\u043a\",\"\u0414\u0448\",\"\u0421\u0448\",\"\u0427\u0448\",\"\u041f\u0448\",\"\u04b6\u043c\",\"\u0428\u043d\"],weekHeader:\"\u0425\u0444\",dateFormat:\"dd.mm.yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.tj);return datepicker.regional.tj;});","jquery/ui-modules/i18n/datepicker-ru.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.ru={closeText:\"\u0417\u0430\u043a\u0440\u044b\u0442\u044c\",prevText:\"&#x3C;\u041f\u0440\u0435\u0434\",nextText:\"\u0421\u043b\u0435\u0434&#x3E;\",currentText:\"\u0421\u0435\u0433\u043e\u0434\u043d\u044f\",monthNames:[\"\u042f\u043d\u0432\u0430\u0440\u044c\",\"\u0424\u0435\u0432\u0440\u0430\u043b\u044c\",\"\u041c\u0430\u0440\u0442\",\"\u0410\u043f\u0440\u0435\u043b\u044c\",\"\u041c\u0430\u0439\",\"\u0418\u044e\u043d\u044c\",\"\u0418\u044e\u043b\u044c\",\"\u0410\u0432\u0433\u0443\u0441\u0442\",\"\u0421\u0435\u043d\u0442\u044f\u0431\u0440\u044c\",\"\u041e\u043a\u0442\u044f\u0431\u0440\u044c\",\"\u041d\u043e\u044f\u0431\u0440\u044c\",\"\u0414\u0435\u043a\u0430\u0431\u0440\u044c\"],monthNamesShort:[\"\u042f\u043d\u0432\",\"\u0424\u0435\u0432\",\"\u041c\u0430\u0440\",\"\u0410\u043f\u0440\",\"\u041c\u0430\u0439\",\"\u0418\u044e\u043d\",\"\u0418\u044e\u043b\",\"\u0410\u0432\u0433\",\"\u0421\u0435\u043d\",\"\u041e\u043a\u0442\",\"\u041d\u043e\u044f\",\"\u0414\u0435\u043a\"],dayNames:[\"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435\",\"\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a\",\"\u0432\u0442\u043e\u0440\u043d\u0438\u043a\",\"\u0441\u0440\u0435\u0434\u0430\",\"\u0447\u0435\u0442\u0432\u0435\u0440\u0433\",\"\u043f\u044f\u0442\u043d\u0438\u0446\u0430\",\"\u0441\u0443\u0431\u0431\u043e\u0442\u0430\"],dayNamesShort:[\"\u0432\u0441\u043a\",\"\u043f\u043d\u0434\",\"\u0432\u0442\u0440\",\"\u0441\u0440\u0434\",\"\u0447\u0442\u0432\",\"\u043f\u0442\u043d\",\"\u0441\u0431\u0442\"],dayNamesMin:[\"\u0412\u0441\",\"\u041f\u043d\",\"\u0412\u0442\",\"\u0421\u0440\",\"\u0427\u0442\",\"\u041f\u0442\",\"\u0421\u0431\"],weekHeader:\"\u041d\u0435\u0434\",dateFormat:\"dd.mm.yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.ru);return datepicker.regional.ru;});","jquery/ui-modules/i18n/datepicker-ta.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.ta={closeText:\"\u0bae\u0bc2\u0b9f\u0bc1\",prevText:\"\u0bae\u0bc1\u0ba9\u0bcd\u0ba9\u0bc8\u0baf\u0ba4\u0bc1\",nextText:\"\u0b85\u0b9f\u0bc1\u0ba4\u0bcd\u0ba4\u0ba4\u0bc1\",currentText:\"\u0b87\u0ba9\u0bcd\u0bb1\u0bc1\",monthNames:[\"\u0ba4\u0bc8\",\"\u0bae\u0bbe\u0b9a\u0bbf\",\"\u0baa\u0b99\u0bcd\u0b95\u0bc1\u0ba9\u0bbf\",\"\u0b9a\u0bbf\u0ba4\u0bcd\u0ba4\u0bbf\u0bb0\u0bc8\",\"\u0bb5\u0bc8\u0b95\u0bbe\u0b9a\u0bbf\",\"\u0b86\u0ba9\u0bbf\",\"\u0b86\u0b9f\u0bbf\",\"\u0b86\u0bb5\u0ba3\u0bbf\",\"\u0baa\u0bc1\u0bb0\u0b9f\u0bcd\u0b9f\u0bbe\u0b9a\u0bbf\",\"\u0b90\u0baa\u0bcd\u0baa\u0b9a\u0bbf\",\"\u0b95\u0bbe\u0bb0\u0bcd\u0ba4\u0bcd\u0ba4\u0bbf\u0b95\u0bc8\",\"\u0bae\u0bbe\u0bb0\u0bcd\u0b95\u0bb4\u0bbf\"],monthNamesShort:[\"\u0ba4\u0bc8\",\"\u0bae\u0bbe\u0b9a\u0bbf\",\"\u0baa\u0b99\u0bcd\",\"\u0b9a\u0bbf\u0ba4\u0bcd\",\"\u0bb5\u0bc8\u0b95\u0bbe\",\"\u0b86\u0ba9\u0bbf\",\"\u0b86\u0b9f\u0bbf\",\"\u0b86\u0bb5\",\"\u0baa\u0bc1\u0bb0\",\"\u0b90\u0baa\u0bcd\",\"\u0b95\u0bbe\u0bb0\u0bcd\",\"\u0bae\u0bbe\u0bb0\u0bcd\"],dayNames:[\"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8\",\"\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8\",\"\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8\",\"\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8\",\"\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8\",\"\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8\",\"\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8\"],dayNamesShort:[\"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1\",\"\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd\",\"\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\",\"\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\",\"\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd\",\"\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\",\"\u0b9a\u0ba9\u0bbf\"],dayNamesMin:[\"\u0b9e\u0bbe\",\"\u0ba4\u0bbf\",\"\u0b9a\u0bc6\",\"\u0baa\u0bc1\",\"\u0bb5\u0bbf\",\"\u0bb5\u0bc6\",\"\u0b9a\"],weekHeader:\"\u041d\u0435\",dateFormat:\"dd/mm/yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.ta);return datepicker.regional.ta;});","jquery/ui-modules/i18n/datepicker-nn.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.nn={closeText:\"Lukk\",prevText:\"&#xAB;F\u00f8rre\",nextText:\"Neste&#xBB;\",currentText:\"I dag\",monthNames:[\"januar\",\"februar\",\"mars\",\"april\",\"mai\",\"juni\",\"juli\",\"august\",\"september\",\"oktober\",\"november\",\"desember\"],monthNamesShort:[\"jan\",\"feb\",\"mar\",\"apr\",\"mai\",\"jun\",\"jul\",\"aug\",\"sep\",\"okt\",\"nov\",\"des\"],dayNamesShort:[\"sun\",\"m\u00e5n\",\"tys\",\"ons\",\"tor\",\"fre\",\"lau\"],dayNames:[\"sundag\",\"m\u00e5ndag\",\"tysdag\",\"onsdag\",\"torsdag\",\"fredag\",\"laurdag\"],dayNamesMin:[\"su\",\"m\u00e5\",\"ty\",\"on\",\"to\",\"fr\",\"la\"],weekHeader:\"Veke\",dateFormat:\"dd.mm.yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.nn);return datepicker.regional.nn;});","jquery/ui-modules/i18n/datepicker-id.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.id={closeText:\"Tutup\",prevText:\"&#x3C;mundur\",nextText:\"maju&#x3E;\",currentText:\"hari ini\",monthNames:[\"Januari\",\"Februari\",\"Maret\",\"April\",\"Mei\",\"Juni\",\"Juli\",\"Agustus\",\"September\",\"Oktober\",\"Nopember\",\"Desember\"],monthNamesShort:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"Mei\",\"Jun\",\"Jul\",\"Agus\",\"Sep\",\"Okt\",\"Nop\",\"Des\"],dayNames:[\"Minggu\",\"Senin\",\"Selasa\",\"Rabu\",\"Kamis\",\"Jumat\",\"Sabtu\"],dayNamesShort:[\"Min\",\"Sen\",\"Sel\",\"Rab\",\"kam\",\"Jum\",\"Sab\"],dayNamesMin:[\"Mg\",\"Sn\",\"Sl\",\"Rb\",\"Km\",\"jm\",\"Sb\"],weekHeader:\"Mg\",dateFormat:\"dd/mm/yy\",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.id);return datepicker.regional.id;});","jquery/ui-modules/i18n/datepicker-hu.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.hu={closeText:\"Bez\u00e1r\",prevText:\"Vissza\",nextText:\"El\u0151re\",currentText:\"Ma\",monthNames:[\"Janu\u00e1r\",\"Febru\u00e1r\",\"M\u00e1rcius\",\"\u00c1prilis\",\"M\u00e1jus\",\"J\u00fanius\",\"J\u00falius\",\"Augusztus\",\"Szeptember\",\"Okt\u00f3ber\",\"November\",\"December\"],monthNamesShort:[\"Jan\",\"Feb\",\"M\u00e1r\",\"\u00c1pr\",\"M\u00e1j\",\"J\u00fan\",\"J\u00fal\",\"Aug\",\"Szep\",\"Okt\",\"Nov\",\"Dec\"],dayNames:[\"Vas\u00e1rnap\",\"H\u00e9tf\u0151\",\"Kedd\",\"Szerda\",\"Cs\u00fct\u00f6rt\u00f6k\",\"P\u00e9ntek\",\"Szombat\"],dayNamesShort:[\"Vas\",\"H\u00e9t\",\"Ked\",\"Sze\",\"Cs\u00fc\",\"P\u00e9n\",\"Szo\"],dayNamesMin:[\"V\",\"H\",\"K\",\"Sze\",\"Cs\",\"P\",\"Szo\"],weekHeader:\"H\u00e9t\",dateFormat:\"yy.mm.dd.\",firstDay:1,isRTL:false,showMonthAfterYear:true,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.hu);return datepicker.regional.hu;});","jquery/ui-modules/i18n/datepicker-eo.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.eo={closeText:\"Fermi\",prevText:\"&#x3C;Anta\",nextText:\"Sekv&#x3E;\",currentText:\"Nuna\",monthNames:[\"Januaro\",\"Februaro\",\"Marto\",\"Aprilo\",\"Majo\",\"Junio\",\"Julio\",\"A\u016dgusto\",\"Septembro\",\"Oktobro\",\"Novembro\",\"Decembro\"],monthNamesShort:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"Maj\",\"Jun\",\"Jul\",\"A\u016dg\",\"Sep\",\"Okt\",\"Nov\",\"Dec\"],dayNames:[\"Diman\u0109o\",\"Lundo\",\"Mardo\",\"Merkredo\",\"\u0134a\u016ddo\",\"Vendredo\",\"Sabato\"],dayNamesShort:[\"Dim\",\"Lun\",\"Mar\",\"Mer\",\"\u0134a\u016d\",\"Ven\",\"Sab\"],dayNamesMin:[\"Di\",\"Lu\",\"Ma\",\"Me\",\"\u0134a\",\"Ve\",\"Sa\"],weekHeader:\"Sb\",dateFormat:\"dd/mm/yy\",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.eo);return datepicker.regional.eo;});","jquery/ui-modules/i18n/datepicker-da.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.da={closeText:\"Luk\",prevText:\"&#x3C;Forrige\",nextText:\"N\u00e6ste&#x3E;\",currentText:\"I dag\",monthNames:[\"Januar\",\"Februar\",\"Marts\",\"April\",\"Maj\",\"Juni\",\"Juli\",\"August\",\"September\",\"Oktober\",\"November\",\"December\"],monthNamesShort:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"Maj\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Okt\",\"Nov\",\"Dec\"],dayNames:[\"S\u00f8ndag\",\"Mandag\",\"Tirsdag\",\"Onsdag\",\"Torsdag\",\"Fredag\",\"L\u00f8rdag\"],dayNamesShort:[\"S\u00f8n\",\"Man\",\"Tir\",\"Ons\",\"Tor\",\"Fre\",\"L\u00f8r\"],dayNamesMin:[\"S\u00f8\",\"Ma\",\"Ti\",\"On\",\"To\",\"Fr\",\"L\u00f8\"],weekHeader:\"Uge\",dateFormat:\"dd-mm-yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.da);return datepicker.regional.da;});","jquery/ui-modules/i18n/datepicker-hy.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.hy={closeText:\"\u0553\u0561\u056f\u0565\u056c\",prevText:\"&#x3C;\u0546\u0561\u056d.\",nextText:\"\u0540\u0561\u057b.&#x3E;\",currentText:\"\u0531\u0575\u057d\u0585\u0580\",monthNames:[\"\u0540\u0578\u0582\u0576\u057e\u0561\u0580\",\"\u0553\u0565\u057f\u0580\u057e\u0561\u0580\",\"\u0544\u0561\u0580\u057f\",\"\u0531\u057a\u0580\u056b\u056c\",\"\u0544\u0561\u0575\u056b\u057d\",\"\u0540\u0578\u0582\u0576\u056b\u057d\",\"\u0540\u0578\u0582\u056c\u056b\u057d\",\"\u0555\u0563\u0578\u057d\u057f\u0578\u057d\",\"\u054d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\",\"\u0540\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\",\"\u0546\u0578\u0575\u0565\u0574\u0562\u0565\u0580\",\"\u0534\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\"],monthNamesShort:[\"\u0540\u0578\u0582\u0576\u057e\",\"\u0553\u0565\u057f\u0580\",\"\u0544\u0561\u0580\u057f\",\"\u0531\u057a\u0580\",\"\u0544\u0561\u0575\u056b\u057d\",\"\u0540\u0578\u0582\u0576\u056b\u057d\",\"\u0540\u0578\u0582\u056c\",\"\u0555\u0563\u057d\",\"\u054d\u0565\u057a\",\"\u0540\u0578\u056f\",\"\u0546\u0578\u0575\",\"\u0534\u0565\u056f\"],dayNames:[\"\u056f\u056b\u0580\u0561\u056f\u056b\",\"\u0565\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b\",\"\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b\",\"\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b\",\"\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b\",\"\u0578\u0582\u0580\u0562\u0561\u0569\",\"\u0577\u0561\u0562\u0561\u0569\"],dayNamesShort:[\"\u056f\u056b\u0580\",\"\u0565\u0580\u056f\",\"\u0565\u0580\u0584\",\"\u0579\u0580\u0584\",\"\u0570\u0576\u0563\",\"\u0578\u0582\u0580\u0562\",\"\u0577\u0562\u0569\"],dayNamesMin:[\"\u056f\u056b\u0580\",\"\u0565\u0580\u056f\",\"\u0565\u0580\u0584\",\"\u0579\u0580\u0584\",\"\u0570\u0576\u0563\",\"\u0578\u0582\u0580\u0562\",\"\u0577\u0562\u0569\"],weekHeader:\"\u0547\u0532\u054f\",dateFormat:\"dd.mm.yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.hy);return datepicker.regional.hy;});","jquery/ui-modules/i18n/datepicker-ky.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.ky={closeText:\"\u0416\u0430\u0431\u0443\u0443\",prevText:\"&#x3c;\u041c\u0443\u0440\",nextText:\"\u041a\u0438\u0439&#x3e;\",currentText:\"\u0411\u04af\u0433\u04af\u043d\",monthNames:[\"\u042f\u043d\u0432\u0430\u0440\u044c\",\"\u0424\u0435\u0432\u0440\u0430\u043b\u044c\",\"\u041c\u0430\u0440\u0442\",\"\u0410\u043f\u0440\u0435\u043b\u044c\",\"\u041c\u0430\u0439\",\"\u0418\u044e\u043d\u044c\",\"\u0418\u044e\u043b\u044c\",\"\u0410\u0432\u0433\u0443\u0441\u0442\",\"\u0421\u0435\u043d\u0442\u044f\u0431\u0440\u044c\",\"\u041e\u043a\u0442\u044f\u0431\u0440\u044c\",\"\u041d\u043e\u044f\u0431\u0440\u044c\",\"\u0414\u0435\u043a\u0430\u0431\u0440\u044c\"],monthNamesShort:[\"\u042f\u043d\u0432\",\"\u0424\u0435\u0432\",\"\u041c\u0430\u0440\",\"\u0410\u043f\u0440\",\"\u041c\u0430\u0439\",\"\u0418\u044e\u043d\",\"\u0418\u044e\u043b\",\"\u0410\u0432\u0433\",\"\u0421\u0435\u043d\",\"\u041e\u043a\u0442\",\"\u041d\u043e\u044f\",\"\u0414\u0435\u043a\"],dayNames:[\"\u0436\u0435\u043a\u0448\u0435\u043c\u0431\u0438\",\"\u0434\u04af\u0439\u0448\u04e9\u043c\u0431\u04af\",\"\u0448\u0435\u0439\u0448\u0435\u043c\u0431\u0438\",\"\u0448\u0430\u0440\u0448\u0435\u043c\u0431\u0438\",\"\u0431\u0435\u0439\u0448\u0435\u043c\u0431\u0438\",\"\u0436\u0443\u043c\u0430\",\"\u0438\u0448\u0435\u043c\u0431\u0438\"],dayNamesShort:[\"\u0436\u0435\u043a\",\"\u0434\u04af\u0439\",\"\u0448\u0435\u0439\",\"\u0448\u0430\u0440\",\"\u0431\u0435\u0439\",\"\u0436\u0443\u043c\",\"\u0438\u0448\u0435\"],dayNamesMin:[\"\u0416\u043a\",\"\u0414\u0448\",\"\u0428\u0448\",\"\u0428\u0440\",\"\u0411\u0448\",\"\u0416\u043c\",\"\u0418\u0448\"],weekHeader:\"\u0416\u0443\u043c\",dateFormat:\"dd.mm.yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.ky);return datepicker.regional.ky;});","jquery/ui-modules/i18n/datepicker-nb.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.nb={closeText:\"Lukk\",prevText:\"&#xAB;Forrige\",nextText:\"Neste&#xBB;\",currentText:\"I dag\",monthNames:[\"januar\",\"februar\",\"mars\",\"april\",\"mai\",\"juni\",\"juli\",\"august\",\"september\",\"oktober\",\"november\",\"desember\"],monthNamesShort:[\"jan\",\"feb\",\"mar\",\"apr\",\"mai\",\"jun\",\"jul\",\"aug\",\"sep\",\"okt\",\"nov\",\"des\"],dayNamesShort:[\"s\u00f8n\",\"man\",\"tir\",\"ons\",\"tor\",\"fre\",\"l\u00f8r\"],dayNames:[\"s\u00f8ndag\",\"mandag\",\"tirsdag\",\"onsdag\",\"torsdag\",\"fredag\",\"l\u00f8rdag\"],dayNamesMin:[\"s\u00f8\",\"ma\",\"ti\",\"on\",\"to\",\"fr\",\"l\u00f8\"],weekHeader:\"Uke\",dateFormat:\"dd.mm.yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.nb);return datepicker.regional.nb;});","jquery/ui-modules/i18n/datepicker-ml.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.ml={closeText:\"\u0d36\u0d30\u0d3f\",prevText:\"\u0d2e\u0d41\u0d28\u0d4d\u0d28\u0d24\u0d4d\u0d24\u0d46\",nextText:\"\u0d05\u0d1f\u0d41\u0d24\u0d4d\u0d24\u0d24\u0d4d \",currentText:\"\u0d07\u0d28\u0d4d\u0d28\u0d4d\",monthNames:[\"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f\",\"\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f\",\"\u0d2e\u0d3e\u0d30\u0d4d\u200d\u0d1a\u0d4d\u0d1a\u0d4d\",\"\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d32\u0d4d\u200d\",\"\u0d2e\u0d47\u0d2f\u0d4d\",\"\u0d1c\u0d42\u0d23\u0d4d\u200d\",\"\u0d1c\u0d42\u0d32\u0d48\",\"\u0d06\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d\",\"\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d30\u0d4d\u200d\",\"\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d30\u0d4d\u200d\",\"\u0d28\u0d35\u0d02\u0d2c\u0d30\u0d4d\u200d\",\"\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d30\u0d4d\u200d\"],monthNamesShort:[\"\u0d1c\u0d28\u0d41\",\"\u0d2b\u0d46\u0d2c\u0d4d\",\"\u0d2e\u0d3e\u0d30\u0d4d\u200d\",\"\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\",\"\u0d2e\u0d47\u0d2f\u0d4d\",\"\u0d1c\u0d42\u0d23\u0d4d\u200d\",\"\u0d1c\u0d42\u0d32\u0d3e\",\"\u0d06\u0d17\",\"\u0d38\u0d46\u0d2a\u0d4d\",\"\u0d12\u0d15\u0d4d\u0d1f\u0d4b\",\"\u0d28\u0d35\u0d02\",\"\u0d21\u0d3f\u0d38\"],dayNames:[\"\u0d1e\u0d3e\u0d2f\u0d30\u0d4d\u200d\",\"\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d4d\u200d\",\"\u0d1a\u0d4a\u0d35\u0d4d\u0d35\",\"\u0d2c\u0d41\u0d27\u0d28\u0d4d\u200d\",\"\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02\",\"\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\",\"\u0d36\u0d28\u0d3f\"],dayNamesShort:[\"\u0d1e\u0d3e\u0d2f\",\"\u0d24\u0d3f\u0d19\u0d4d\u0d15\",\"\u0d1a\u0d4a\u0d35\u0d4d\u0d35\",\"\u0d2c\u0d41\u0d27\",\"\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02\",\"\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\",\"\u0d36\u0d28\u0d3f\"],dayNamesMin:[\"\u0d1e\u0d3e\",\"\u0d24\u0d3f\",\"\u0d1a\u0d4a\",\"\u0d2c\u0d41\",\"\u0d35\u0d4d\u0d2f\u0d3e\",\"\u0d35\u0d46\",\"\u0d36\"],weekHeader:\"\u0d06\",dateFormat:\"dd/mm/yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.ml);return datepicker.regional.ml;});","jquery/ui-modules/i18n/datepicker-lt.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.lt={closeText:\"U\u017edaryti\",prevText:\"&#x3C;Atgal\",nextText:\"Pirmyn&#x3E;\",currentText:\"\u0160iandien\",monthNames:[\"Sausis\",\"Vasaris\",\"Kovas\",\"Balandis\",\"Gegu\u017e\u0117\",\"Bir\u017eelis\",\"Liepa\",\"Rugpj\u016btis\",\"Rugs\u0117jis\",\"Spalis\",\"Lapkritis\",\"Gruodis\"],monthNamesShort:[\"Sau\",\"Vas\",\"Kov\",\"Bal\",\"Geg\",\"Bir\",\"Lie\",\"Rugp\",\"Rugs\",\"Spa\",\"Lap\",\"Gru\"],dayNames:[\"sekmadienis\",\"pirmadienis\",\"antradienis\",\"tre\u010diadienis\",\"ketvirtadienis\",\"penktadienis\",\"\u0161e\u0161tadienis\"],dayNamesShort:[\"sek\",\"pir\",\"ant\",\"tre\",\"ket\",\"pen\",\"\u0161e\u0161\"],dayNamesMin:[\"Se\",\"Pr\",\"An\",\"Tr\",\"Ke\",\"Pe\",\"\u0160e\"],weekHeader:\"SAV\",dateFormat:\"yy-mm-dd\",firstDay:1,isRTL:false,showMonthAfterYear:true,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.lt);return datepicker.regional.lt;});","jquery/ui-modules/i18n/datepicker-fr-CA.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional[\"fr-CA\"]={closeText:\"Fermer\",prevText:\"Pr\u00e9c\u00e9dent\",nextText:\"Suivant\",currentText:\"Aujourd'hui\",monthNames:[\"janvier\",\"f\u00e9vrier\",\"mars\",\"avril\",\"mai\",\"juin\",\"juillet\",\"ao\u00fbt\",\"septembre\",\"octobre\",\"novembre\",\"d\u00e9cembre\"],monthNamesShort:[\"janv.\",\"f\u00e9vr.\",\"mars\",\"avril\",\"mai\",\"juin\",\"juil.\",\"ao\u00fbt\",\"sept.\",\"oct.\",\"nov.\",\"d\u00e9c.\"],dayNames:[\"dimanche\",\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\"],dayNamesShort:[\"dim.\",\"lun.\",\"mar.\",\"mer.\",\"jeu.\",\"ven.\",\"sam.\"],dayNamesMin:[\"D\",\"L\",\"M\",\"M\",\"J\",\"V\",\"S\"],weekHeader:\"Sem.\",dateFormat:\"yy-mm-dd\",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional[\"fr-CA\"]);return datepicker.regional[\"fr-CA\"];});","jquery/ui-modules/i18n/datepicker-eu.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.eu={closeText:\"Egina\",prevText:\"&#x3C;Aur\",nextText:\"Hur&#x3E;\",currentText:\"Gaur\",monthNames:[\"urtarrila\",\"otsaila\",\"martxoa\",\"apirila\",\"maiatza\",\"ekaina\",\"uztaila\",\"abuztua\",\"iraila\",\"urria\",\"azaroa\",\"abendua\"],monthNamesShort:[\"urt.\",\"ots.\",\"mar.\",\"api.\",\"mai.\",\"eka.\",\"uzt.\",\"abu.\",\"ira.\",\"urr.\",\"aza.\",\"abe.\"],dayNames:[\"igandea\",\"astelehena\",\"asteartea\",\"asteazkena\",\"osteguna\",\"ostirala\",\"larunbata\"],dayNamesShort:[\"ig.\",\"al.\",\"ar.\",\"az.\",\"og.\",\"ol.\",\"lr.\"],dayNamesMin:[\"ig\",\"al\",\"ar\",\"az\",\"og\",\"ol\",\"lr\"],weekHeader:\"As\",dateFormat:\"yy-mm-dd\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.eu);return datepicker.regional.eu;});","jquery/ui-modules/i18n/datepicker-zh-TW.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional[\"zh-TW\"]={closeText:\"\u95dc\u9589\",prevText:\"&#x3C;\u4e0a\u500b\u6708\",nextText:\"\u4e0b\u500b\u6708&#x3E;\",currentText:\"\u4eca\u5929\",monthNames:[\"\u4e00\u6708\",\"\u4e8c\u6708\",\"\u4e09\u6708\",\"\u56db\u6708\",\"\u4e94\u6708\",\"\u516d\u6708\",\"\u4e03\u6708\",\"\u516b\u6708\",\"\u4e5d\u6708\",\"\u5341\u6708\",\"\u5341\u4e00\u6708\",\"\u5341\u4e8c\u6708\"],monthNamesShort:[\"\u4e00\u6708\",\"\u4e8c\u6708\",\"\u4e09\u6708\",\"\u56db\u6708\",\"\u4e94\u6708\",\"\u516d\u6708\",\"\u4e03\u6708\",\"\u516b\u6708\",\"\u4e5d\u6708\",\"\u5341\u6708\",\"\u5341\u4e00\u6708\",\"\u5341\u4e8c\u6708\"],dayNames:[\"\u661f\u671f\u65e5\",\"\u661f\u671f\u4e00\",\"\u661f\u671f\u4e8c\",\"\u661f\u671f\u4e09\",\"\u661f\u671f\u56db\",\"\u661f\u671f\u4e94\",\"\u661f\u671f\u516d\"],dayNamesShort:[\"\u9031\u65e5\",\"\u9031\u4e00\",\"\u9031\u4e8c\",\"\u9031\u4e09\",\"\u9031\u56db\",\"\u9031\u4e94\",\"\u9031\u516d\"],dayNamesMin:[\"\u65e5\",\"\u4e00\",\"\u4e8c\",\"\u4e09\",\"\u56db\",\"\u4e94\",\"\u516d\"],weekHeader:\"\u9031\",dateFormat:\"yy/mm/dd\",firstDay:1,isRTL:false,showMonthAfterYear:true,yearSuffix:\"\u5e74\"};datepicker.setDefaults(datepicker.regional[\"zh-TW\"]);return datepicker.regional[\"zh-TW\"];});","jquery/ui-modules/i18n/datepicker-nl-BE.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional[\"nl-BE\"]={closeText:\"Sluiten\",prevText:\"\u2190\",nextText:\"\u2192\",currentText:\"Vandaag\",monthNames:[\"januari\",\"februari\",\"maart\",\"april\",\"mei\",\"juni\",\"juli\",\"augustus\",\"september\",\"oktober\",\"november\",\"december\"],monthNamesShort:[\"jan\",\"feb\",\"mrt\",\"apr\",\"mei\",\"jun\",\"jul\",\"aug\",\"sep\",\"okt\",\"nov\",\"dec\"],dayNames:[\"zondag\",\"maandag\",\"dinsdag\",\"woensdag\",\"donderdag\",\"vrijdag\",\"zaterdag\"],dayNamesShort:[\"zon\",\"maa\",\"din\",\"woe\",\"don\",\"vri\",\"zat\"],dayNamesMin:[\"zo\",\"ma\",\"di\",\"wo\",\"do\",\"vr\",\"za\"],weekHeader:\"Wk\",dateFormat:\"dd/mm/yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional[\"nl-BE\"]);return datepicker.regional[\"nl-BE\"];});","jquery/ui-modules/i18n/datepicker-et.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.et={closeText:\"Sulge\",prevText:\"Eelnev\",nextText:\"J\u00e4rgnev\",currentText:\"T\u00e4na\",monthNames:[\"Jaanuar\",\"Veebruar\",\"M\u00e4rts\",\"Aprill\",\"Mai\",\"Juuni\",\"Juuli\",\"August\",\"September\",\"Oktoober\",\"November\",\"Detsember\"],monthNamesShort:[\"Jaan\",\"Veebr\",\"M\u00e4rts\",\"Apr\",\"Mai\",\"Juuni\",\"Juuli\",\"Aug\",\"Sept\",\"Okt\",\"Nov\",\"Dets\"],dayNames:[\"P\u00fchap\u00e4ev\",\"Esmasp\u00e4ev\",\"Teisip\u00e4ev\",\"Kolmap\u00e4ev\",\"Neljap\u00e4ev\",\"Reede\",\"Laup\u00e4ev\"],dayNamesShort:[\"P\u00fchap\",\"Esmasp\",\"Teisip\",\"Kolmap\",\"Neljap\",\"Reede\",\"Laup\"],dayNamesMin:[\"P\",\"E\",\"T\",\"K\",\"N\",\"R\",\"L\"],weekHeader:\"n\u00e4d\",dateFormat:\"dd.mm.yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.et);return datepicker.regional.et;});","jquery/ui-modules/i18n/datepicker-sq.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.sq={closeText:\"mbylle\",prevText:\"&#x3C;mbrapa\",nextText:\"P\u00ebrpara&#x3E;\",currentText:\"sot\",monthNames:[\"Janar\",\"Shkurt\",\"Mars\",\"Prill\",\"Maj\",\"Qershor\",\"Korrik\",\"Gusht\",\"Shtator\",\"Tetor\",\"N\u00ebntor\",\"Dhjetor\"],monthNamesShort:[\"Jan\",\"Shk\",\"Mar\",\"Pri\",\"Maj\",\"Qer\",\"Kor\",\"Gus\",\"Sht\",\"Tet\",\"N\u00ebn\",\"Dhj\"],dayNames:[\"E Diel\",\"E H\u00ebn\u00eb\",\"E Mart\u00eb\",\"E M\u00ebrkur\u00eb\",\"E Enjte\",\"E Premte\",\"E Shtune\"],dayNamesShort:[\"Di\",\"H\u00eb\",\"Ma\",\"M\u00eb\",\"En\",\"Pr\",\"Sh\"],dayNamesMin:[\"Di\",\"H\u00eb\",\"Ma\",\"M\u00eb\",\"En\",\"Pr\",\"Sh\"],weekHeader:\"Ja\",dateFormat:\"dd.mm.yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.sq);return datepicker.regional.sq;});","jquery/ui-modules/i18n/datepicker-lv.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.lv={closeText:\"Aizv\u0113rt\",prevText:\"Iepr.\",nextText:\"N\u0101k.\",currentText:\"\u0160odien\",monthNames:[\"Janv\u0101ris\",\"Febru\u0101ris\",\"Marts\",\"Apr\u012blis\",\"Maijs\",\"J\u016bnijs\",\"J\u016blijs\",\"Augusts\",\"Septembris\",\"Oktobris\",\"Novembris\",\"Decembris\"],monthNamesShort:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"Mai\",\"J\u016bn\",\"J\u016bl\",\"Aug\",\"Sep\",\"Okt\",\"Nov\",\"Dec\"],dayNames:[\"sv\u0113tdiena\",\"pirmdiena\",\"otrdiena\",\"tre\u0161diena\",\"ceturtdiena\",\"piektdiena\",\"sestdiena\"],dayNamesShort:[\"svt\",\"prm\",\"otr\",\"tre\",\"ctr\",\"pkt\",\"sst\"],dayNamesMin:[\"Sv\",\"Pr\",\"Ot\",\"Tr\",\"Ct\",\"Pk\",\"Ss\"],weekHeader:\"Ned.\",dateFormat:\"dd.mm.yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.lv);return datepicker.regional.lv;});","jquery/ui-modules/i18n/datepicker-cy-GB.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional[\"cy-GB\"]={closeText:\"Done\",prevText:\"Prev\",nextText:\"Next\",currentText:\"Today\",monthNames:[\"Ionawr\",\"Chwefror\",\"Mawrth\",\"Ebrill\",\"Mai\",\"Mehefin\",\"Gorffennaf\",\"Awst\",\"Medi\",\"Hydref\",\"Tachwedd\",\"Rhagfyr\"],monthNamesShort:[\"Ion\",\"Chw\",\"Maw\",\"Ebr\",\"Mai\",\"Meh\",\"Gor\",\"Aws\",\"Med\",\"Hyd\",\"Tac\",\"Rha\"],dayNames:[\"Dydd Sul\",\"Dydd Llun\",\"Dydd Mawrth\",\"Dydd Mercher\",\"Dydd Iau\",\"Dydd Gwener\",\"Dydd Sadwrn\"],dayNamesShort:[\"Sul\",\"Llu\",\"Maw\",\"Mer\",\"Iau\",\"Gwe\",\"Sad\"],dayNamesMin:[\"Su\",\"Ll\",\"Ma\",\"Me\",\"Ia\",\"Gw\",\"Sa\"],weekHeader:\"Wy\",dateFormat:\"dd/mm/yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional[\"cy-GB\"]);return datepicker.regional[\"cy-GB\"];});","jquery/ui-modules/i18n/datepicker-kk.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.kk={closeText:\"\u0416\u0430\u0431\u0443\",prevText:\"&#x3C;\u0410\u043b\u0434\u044b\u04a3\u0493\u044b\",nextText:\"\u041a\u0435\u043b\u0435\u0441\u0456&#x3E;\",currentText:\"\u0411\u04af\u0433\u0456\u043d\",monthNames:[\"\u049a\u0430\u04a3\u0442\u0430\u0440\",\"\u0410\u049b\u043f\u0430\u043d\",\"\u041d\u0430\u0443\u0440\u044b\u0437\",\"\u0421\u04d9\u0443\u0456\u0440\",\"\u041c\u0430\u043c\u044b\u0440\",\"\u041c\u0430\u0443\u0441\u044b\u043c\",\"\u0428\u0456\u043b\u0434\u0435\",\"\u0422\u0430\u043c\u044b\u0437\",\"\u049a\u044b\u0440\u043a\u04af\u0439\u0435\u043a\",\"\u049a\u0430\u0437\u0430\u043d\",\"\u049a\u0430\u0440\u0430\u0448\u0430\",\"\u0416\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d\"],monthNamesShort:[\"\u049a\u0430\u04a3\",\"\u0410\u049b\u043f\",\"\u041d\u0430\u0443\",\"\u0421\u04d9\u0443\",\"\u041c\u0430\u043c\",\"\u041c\u0430\u0443\",\"\u0428\u0456\u043b\",\"\u0422\u0430\u043c\",\"\u049a\u044b\u0440\",\"\u049a\u0430\u0437\",\"\u049a\u0430\u0440\",\"\u0416\u0435\u043b\"],dayNames:[\"\u0416\u0435\u043a\u0441\u0435\u043d\u0431\u0456\",\"\u0414\u04af\u0439\u0441\u0435\u043d\u0431\u0456\",\"\u0421\u0435\u0439\u0441\u0435\u043d\u0431\u0456\",\"\u0421\u04d9\u0440\u0441\u0435\u043d\u0431\u0456\",\"\u0411\u0435\u0439\u0441\u0435\u043d\u0431\u0456\",\"\u0416\u04b1\u043c\u0430\",\"\u0421\u0435\u043d\u0431\u0456\"],dayNamesShort:[\"\u0436\u043a\u0441\",\"\u0434\u0441\u043d\",\"\u0441\u0441\u043d\",\"\u0441\u0440\u0441\",\"\u0431\u0441\u043d\",\"\u0436\u043c\u0430\",\"\u0441\u043d\u0431\"],dayNamesMin:[\"\u0416\u043a\",\"\u0414\u0441\",\"\u0421\u0441\",\"\u0421\u0440\",\"\u0411\u0441\",\"\u0416\u043c\",\"\u0421\u043d\"],weekHeader:\"\u041d\u0435\",dateFormat:\"dd.mm.yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.kk);return datepicker.regional.kk;});","jquery/ui-modules/i18n/datepicker-cs.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.cs={closeText:\"Zav\u0159\u00edt\",prevText:\"&#x3C;D\u0159\u00edve\",nextText:\"Pozd\u011bji&#x3E;\",currentText:\"Nyn\u00ed\",monthNames:[\"leden\",\"\u00fanor\",\"b\u0159ezen\",\"duben\",\"kv\u011bten\",\"\u010derven\",\"\u010dervenec\",\"srpen\",\"z\u00e1\u0159\u00ed\",\"\u0159\u00edjen\",\"listopad\",\"prosinec\"],monthNamesShort:[\"led\",\"\u00fano\",\"b\u0159e\",\"dub\",\"kv\u011b\",\"\u010der\",\"\u010dvc\",\"srp\",\"z\u00e1\u0159\",\"\u0159\u00edj\",\"lis\",\"pro\"],dayNames:[\"ned\u011ble\",\"pond\u011bl\u00ed\",\"\u00fater\u00fd\",\"st\u0159eda\",\"\u010dtvrtek\",\"p\u00e1tek\",\"sobota\"],dayNamesShort:[\"ne\",\"po\",\"\u00fat\",\"st\",\"\u010dt\",\"p\u00e1\",\"so\"],dayNamesMin:[\"ne\",\"po\",\"\u00fat\",\"st\",\"\u010dt\",\"p\u00e1\",\"so\"],weekHeader:\"T\u00fdd\",dateFormat:\"dd.mm.yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.cs);return datepicker.regional.cs;});","jquery/ui-modules/i18n/datepicker-fi.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.fi={closeText:\"Sulje\",prevText:\"&#xAB;Edellinen\",nextText:\"Seuraava&#xBB;\",currentText:\"T\u00e4n\u00e4\u00e4n\",monthNames:[\"Tammikuu\",\"Helmikuu\",\"Maaliskuu\",\"Huhtikuu\",\"Toukokuu\",\"Kes\u00e4kuu\",\"Hein\u00e4kuu\",\"Elokuu\",\"Syyskuu\",\"Lokakuu\",\"Marraskuu\",\"Joulukuu\"],monthNamesShort:[\"Tammi\",\"Helmi\",\"Maalis\",\"Huhti\",\"Touko\",\"Kes\u00e4\",\"Hein\u00e4\",\"Elo\",\"Syys\",\"Loka\",\"Marras\",\"Joulu\"],dayNamesShort:[\"Su\",\"Ma\",\"Ti\",\"Ke\",\"To\",\"Pe\",\"La\"],dayNames:[\"Sunnuntai\",\"Maanantai\",\"Tiistai\",\"Keskiviikko\",\"Torstai\",\"Perjantai\",\"Lauantai\"],dayNamesMin:[\"Su\",\"Ma\",\"Ti\",\"Ke\",\"To\",\"Pe\",\"La\"],weekHeader:\"Vk\",dateFormat:\"d.m.yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.fi);return datepicker.regional.fi;});","jquery/ui-modules/i18n/datepicker-zh-CN.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional[\"zh-CN\"]={closeText:\"\u5173\u95ed\",prevText:\"&#x3C;\u4e0a\u6708\",nextText:\"\u4e0b\u6708&#x3E;\",currentText:\"\u4eca\u5929\",monthNames:[\"\u4e00\u6708\",\"\u4e8c\u6708\",\"\u4e09\u6708\",\"\u56db\u6708\",\"\u4e94\u6708\",\"\u516d\u6708\",\"\u4e03\u6708\",\"\u516b\u6708\",\"\u4e5d\u6708\",\"\u5341\u6708\",\"\u5341\u4e00\u6708\",\"\u5341\u4e8c\u6708\"],monthNamesShort:[\"\u4e00\u6708\",\"\u4e8c\u6708\",\"\u4e09\u6708\",\"\u56db\u6708\",\"\u4e94\u6708\",\"\u516d\u6708\",\"\u4e03\u6708\",\"\u516b\u6708\",\"\u4e5d\u6708\",\"\u5341\u6708\",\"\u5341\u4e00\u6708\",\"\u5341\u4e8c\u6708\"],dayNames:[\"\u661f\u671f\u65e5\",\"\u661f\u671f\u4e00\",\"\u661f\u671f\u4e8c\",\"\u661f\u671f\u4e09\",\"\u661f\u671f\u56db\",\"\u661f\u671f\u4e94\",\"\u661f\u671f\u516d\"],dayNamesShort:[\"\u5468\u65e5\",\"\u5468\u4e00\",\"\u5468\u4e8c\",\"\u5468\u4e09\",\"\u5468\u56db\",\"\u5468\u4e94\",\"\u5468\u516d\"],dayNamesMin:[\"\u65e5\",\"\u4e00\",\"\u4e8c\",\"\u4e09\",\"\u56db\",\"\u4e94\",\"\u516d\"],weekHeader:\"\u5468\",dateFormat:\"yy-mm-dd\",firstDay:1,isRTL:false,showMonthAfterYear:true,yearSuffix:\"\u5e74\"};datepicker.setDefaults(datepicker.regional[\"zh-CN\"]);return datepicker.regional[\"zh-CN\"];});","jquery/ui-modules/i18n/datepicker-pt-BR.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional[\"pt-BR\"]={closeText:\"Fechar\",prevText:\"&#x3C;Anterior\",nextText:\"Pr\u00f3ximo&#x3E;\",currentText:\"Hoje\",monthNames:[\"Janeiro\",\"Fevereiro\",\"Mar\u00e7o\",\"Abril\",\"Maio\",\"Junho\",\"Julho\",\"Agosto\",\"Setembro\",\"Outubro\",\"Novembro\",\"Dezembro\"],monthNamesShort:[\"Jan\",\"Fev\",\"Mar\",\"Abr\",\"Mai\",\"Jun\",\"Jul\",\"Ago\",\"Set\",\"Out\",\"Nov\",\"Dez\"],dayNames:[\"Domingo\",\"Segunda-feira\",\"Ter\u00e7a-feira\",\"Quarta-feira\",\"Quinta-feira\",\"Sexta-feira\",\"S\u00e1bado\"],dayNamesShort:[\"Dom\",\"Seg\",\"Ter\",\"Qua\",\"Qui\",\"Sex\",\"S\u00e1b\"],dayNamesMin:[\"Dom\",\"Seg\",\"Ter\",\"Qua\",\"Qui\",\"Sex\",\"S\u00e1b\"],weekHeader:\"Sm\",dateFormat:\"dd/mm/yy\",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional[\"pt-BR\"]);return datepicker.regional[\"pt-BR\"];});","jquery/ui-modules/i18n/datepicker-sl.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.sl={closeText:\"Zapri\",prevText:\"&#x3C;Prej\u0161nji\",nextText:\"Naslednji&#x3E;\",currentText:\"Trenutni\",monthNames:[\"Januar\",\"Februar\",\"Marec\",\"April\",\"Maj\",\"Junij\",\"Julij\",\"Avgust\",\"September\",\"Oktober\",\"November\",\"December\"],monthNamesShort:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"Maj\",\"Jun\",\"Jul\",\"Avg\",\"Sep\",\"Okt\",\"Nov\",\"Dec\"],dayNames:[\"Nedelja\",\"Ponedeljek\",\"Torek\",\"Sreda\",\"\u010cetrtek\",\"Petek\",\"Sobota\"],dayNamesShort:[\"Ned\",\"Pon\",\"Tor\",\"Sre\",\"\u010cet\",\"Pet\",\"Sob\"],dayNamesMin:[\"Ne\",\"Po\",\"To\",\"Sr\",\"\u010ce\",\"Pe\",\"So\"],weekHeader:\"Teden\",dateFormat:\"dd.mm.yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.sl);return datepicker.regional.sl;});","jquery/ui-modules/i18n/datepicker-fa.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.fa={closeText:\"\u0628\u0633\u062a\u0646\",prevText:\"&#x3C;\u0642\u0628\u0644\u06cc\",nextText:\"\u0628\u0639\u062f\u06cc&#x3E;\",currentText:\"\u0627\u0645\u0631\u0648\u0632\",monthNames:[\"\u0698\u0627\u0646\u0648\u06cc\u0647\",\"\u0641\u0648\u0631\u06cc\u0647\",\"\u0645\u0627\u0631\u0633\",\"\u0622\u0648\u0631\u06cc\u0644\",\"\u0645\u0647\",\"\u0698\u0648\u0626\u0646\",\"\u0698\u0648\u0626\u06cc\u0647\",\"\u0627\u0648\u062a\",\"\u0633\u067e\u062a\u0627\u0645\u0628\u0631\",\"\u0627\u06a9\u062a\u0628\u0631\",\"\u0646\u0648\u0627\u0645\u0628\u0631\",\"\u062f\u0633\u0627\u0645\u0628\u0631\"],monthNamesShort:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\"],dayNames:[\"\u064a\u06a9\u0634\u0646\u0628\u0647\",\"\u062f\u0648\u0634\u0646\u0628\u0647\",\"\u0633\u0647\u200c\u0634\u0646\u0628\u0647\",\"\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647\",\"\u067e\u0646\u062c\u0634\u0646\u0628\u0647\",\"\u062c\u0645\u0639\u0647\",\"\u0634\u0646\u0628\u0647\"],dayNamesShort:[\"\u06cc\",\"\u062f\",\"\u0633\",\"\u0686\",\"\u067e\",\"\u062c\",\"\u0634\"],dayNamesMin:[\"\u06cc\",\"\u062f\",\"\u0633\",\"\u0686\",\"\u067e\",\"\u062c\",\"\u0634\"],weekHeader:\"\u0647\u0641\",dateFormat:\"yy/mm/dd\",firstDay:6,isRTL:true,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.fa);return datepicker.regional.fa;});","jquery/ui-modules/i18n/datepicker-rm.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.rm={closeText:\"Serrar\",prevText:\"&#x3C;Suandant\",nextText:\"Precedent&#x3E;\",currentText:\"Actual\",monthNames:[\"Schaner\",\"Favrer\",\"Mars\",\"Avrigl\",\"Matg\",\"Zercladur\",\"Fanadur\",\"Avust\",\"Settember\",\"October\",\"November\",\"December\"],monthNamesShort:[\"Scha\",\"Fev\",\"Mar\",\"Avr\",\"Matg\",\"Zer\",\"Fan\",\"Avu\",\"Sett\",\"Oct\",\"Nov\",\"Dec\"],dayNames:[\"Dumengia\",\"Glindesdi\",\"Mardi\",\"Mesemna\",\"Gievgia\",\"Venderdi\",\"Sonda\"],dayNamesShort:[\"Dum\",\"Gli\",\"Mar\",\"Mes\",\"Gie\",\"Ven\",\"Som\"],dayNamesMin:[\"Du\",\"Gl\",\"Ma\",\"Me\",\"Gi\",\"Ve\",\"So\"],weekHeader:\"emna\",dateFormat:\"dd/mm/yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.rm);return datepicker.regional.rm;});","jquery/ui-modules/i18n/datepicker-en-GB.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional[\"en-GB\"]={closeText:\"Done\",prevText:\"Prev\",nextText:\"Next\",currentText:\"Today\",monthNames:[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"],monthNamesShort:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"],dayNames:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"],dayNamesShort:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],dayNamesMin:[\"Su\",\"Mo\",\"Tu\",\"We\",\"Th\",\"Fr\",\"Sa\"],weekHeader:\"Wk\",dateFormat:\"dd/mm/yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional[\"en-GB\"]);return datepicker.regional[\"en-GB\"];});","jquery/ui-modules/i18n/datepicker-he.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.he={closeText:\"\u05e1\u05d2\u05d5\u05e8\",prevText:\"&#x3C;\u05d4\u05e7\u05d5\u05d3\u05dd\",nextText:\"\u05d4\u05d1\u05d0&#x3E;\",currentText:\"\u05d4\u05d9\u05d5\u05dd\",monthNames:[\"\u05d9\u05e0\u05d5\u05d0\u05e8\",\"\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8\",\"\u05de\u05e8\u05e5\",\"\u05d0\u05e4\u05e8\u05d9\u05dc\",\"\u05de\u05d0\u05d9\",\"\u05d9\u05d5\u05e0\u05d9\",\"\u05d9\u05d5\u05dc\u05d9\",\"\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8\",\"\u05e1\u05e4\u05d8\u05de\u05d1\u05e8\",\"\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8\",\"\u05e0\u05d5\u05d1\u05de\u05d1\u05e8\",\"\u05d3\u05e6\u05de\u05d1\u05e8\"],monthNamesShort:[\"\u05d9\u05e0\u05d5\",\"\u05e4\u05d1\u05e8\",\"\u05de\u05e8\u05e5\",\"\u05d0\u05e4\u05e8\",\"\u05de\u05d0\u05d9\",\"\u05d9\u05d5\u05e0\u05d9\",\"\u05d9\u05d5\u05dc\u05d9\",\"\u05d0\u05d5\u05d2\",\"\u05e1\u05e4\u05d8\",\"\u05d0\u05d5\u05e7\",\"\u05e0\u05d5\u05d1\",\"\u05d3\u05e6\u05de\"],dayNames:[\"\u05e8\u05d0\u05e9\u05d5\u05df\",\"\u05e9\u05e0\u05d9\",\"\u05e9\u05dc\u05d9\u05e9\u05d9\",\"\u05e8\u05d1\u05d9\u05e2\u05d9\",\"\u05d7\u05de\u05d9\u05e9\u05d9\",\"\u05e9\u05d9\u05e9\u05d9\",\"\u05e9\u05d1\u05ea\"],dayNamesShort:[\"\u05d0'\",\"\u05d1'\",\"\u05d2'\",\"\u05d3'\",\"\u05d4'\",\"\u05d5'\",\"\u05e9\u05d1\u05ea\"],dayNamesMin:[\"\u05d0'\",\"\u05d1'\",\"\u05d2'\",\"\u05d3'\",\"\u05d4'\",\"\u05d5'\",\"\u05e9\u05d1\u05ea\"],weekHeader:\"Wk\",dateFormat:\"dd/mm/yy\",firstDay:0,isRTL:true,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.he);return datepicker.regional.he;});","jquery/ui-modules/i18n/datepicker-ro.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.ro={closeText:\"\u00cenchide\",prevText:\"&#xAB; Luna precedent\u0103\",nextText:\"Luna urm\u0103toare &#xBB;\",currentText:\"Azi\",monthNames:[\"Ianuarie\",\"Februarie\",\"Martie\",\"Aprilie\",\"Mai\",\"Iunie\",\"Iulie\",\"August\",\"Septembrie\",\"Octombrie\",\"Noiembrie\",\"Decembrie\"],monthNamesShort:[\"Ian\",\"Feb\",\"Mar\",\"Apr\",\"Mai\",\"Iun\",\"Iul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"],dayNames:[\"Duminic\u0103\",\"Luni\",\"Mar\u0163i\",\"Miercuri\",\"Joi\",\"Vineri\",\"S\u00e2mb\u0103t\u0103\"],dayNamesShort:[\"Dum\",\"Lun\",\"Mar\",\"Mie\",\"Joi\",\"Vin\",\"S\u00e2m\"],dayNamesMin:[\"Du\",\"Lu\",\"Ma\",\"Mi\",\"Jo\",\"Vi\",\"S\u00e2\"],weekHeader:\"S\u0103pt\",dateFormat:\"dd.mm.yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.ro);return datepicker.regional.ro;});","jquery/ui-modules/i18n/datepicker-sk.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.sk={closeText:\"Zavrie\u0165\",prevText:\"&#x3C;Predch\u00e1dzaj\u00faci\",nextText:\"Nasleduj\u00faci&#x3E;\",currentText:\"Dnes\",monthNames:[\"janu\u00e1r\",\"febru\u00e1r\",\"marec\",\"apr\u00edl\",\"m\u00e1j\",\"j\u00fan\",\"j\u00fal\",\"august\",\"september\",\"okt\u00f3ber\",\"november\",\"december\"],monthNamesShort:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"M\u00e1j\",\"J\u00fan\",\"J\u00fal\",\"Aug\",\"Sep\",\"Okt\",\"Nov\",\"Dec\"],dayNames:[\"nede\u013ea\",\"pondelok\",\"utorok\",\"streda\",\"\u0161tvrtok\",\"piatok\",\"sobota\"],dayNamesShort:[\"Ned\",\"Pon\",\"Uto\",\"Str\",\"\u0160tv\",\"Pia\",\"Sob\"],dayNamesMin:[\"Ne\",\"Po\",\"Ut\",\"St\",\"\u0160t\",\"Pia\",\"So\"],weekHeader:\"Ty\",dateFormat:\"dd.mm.yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.sk);return datepicker.regional.sk;});","jquery/ui-modules/i18n/datepicker-bs.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.bs={closeText:\"Zatvori\",prevText:\"&#x3C;\",nextText:\"&#x3E;\",currentText:\"Danas\",monthNames:[\"Januar\",\"Februar\",\"Mart\",\"April\",\"Maj\",\"Juni\",\"Juli\",\"August\",\"Septembar\",\"Oktobar\",\"Novembar\",\"Decembar\"],monthNamesShort:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"Maj\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Okt\",\"Nov\",\"Dec\"],dayNames:[\"Nedelja\",\"Ponedeljak\",\"Utorak\",\"Srijeda\",\"\u010cetvrtak\",\"Petak\",\"Subota\"],dayNamesShort:[\"Ned\",\"Pon\",\"Uto\",\"Sri\",\"\u010cet\",\"Pet\",\"Sub\"],dayNamesMin:[\"Ne\",\"Po\",\"Ut\",\"Sr\",\"\u010ce\",\"Pe\",\"Su\"],weekHeader:\"Wk\",dateFormat:\"dd.mm.yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.bs);return datepicker.regional.bs;});","jquery/ui-modules/i18n/datepicker-lb.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.lb={closeText:\"F\u00e4erdeg\",prevText:\"Zr\u00e9ck\",nextText:\"Weider\",currentText:\"Haut\",monthNames:[\"Januar\",\"Februar\",\"M\u00e4erz\",\"Abr\u00ebll\",\"Mee\",\"Juni\",\"Juli\",\"August\",\"September\",\"Oktober\",\"November\",\"Dezember\"],monthNamesShort:[\"Jan\",\"Feb\",\"M\u00e4e\",\"Abr\",\"Mee\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Okt\",\"Nov\",\"Dez\"],dayNames:[\"Sonndeg\",\"M\u00e9indeg\",\"D\u00ebnschdeg\",\"M\u00ebttwoch\",\"Donneschdeg\",\"Freideg\",\"Samschdeg\"],dayNamesShort:[\"Son\",\"M\u00e9i\",\"D\u00ebn\",\"M\u00ebt\",\"Don\",\"Fre\",\"Sam\"],dayNamesMin:[\"So\",\"M\u00e9\",\"D\u00eb\",\"M\u00eb\",\"Do\",\"Fr\",\"Sa\"],weekHeader:\"W\",dateFormat:\"dd.mm.yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.lb);return datepicker.regional.lb;});","jquery/ui-modules/i18n/datepicker-de-AT.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional[\"de-AT\"]={closeText:\"Schlie\u00dfen\",prevText:\"&#x3C;Zur\u00fcck\",nextText:\"Vor&#x3E;\",currentText:\"Heute\",monthNames:[\"J\u00e4nner\",\"Februar\",\"M\u00e4rz\",\"April\",\"Mai\",\"Juni\",\"Juli\",\"August\",\"September\",\"Oktober\",\"November\",\"Dezember\"],monthNamesShort:[\"J\u00e4n\",\"Feb\",\"M\u00e4r\",\"Apr\",\"Mai\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Okt\",\"Nov\",\"Dez\"],dayNames:[\"Sonntag\",\"Montag\",\"Dienstag\",\"Mittwoch\",\"Donnerstag\",\"Freitag\",\"Samstag\"],dayNamesShort:[\"So\",\"Mo\",\"Di\",\"Mi\",\"Do\",\"Fr\",\"Sa\"],dayNamesMin:[\"So\",\"Mo\",\"Di\",\"Mi\",\"Do\",\"Fr\",\"Sa\"],weekHeader:\"KW\",dateFormat:\"dd.mm.yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional[\"de-AT\"]);return datepicker.regional[\"de-AT\"];});","jquery/ui-modules/i18n/datepicker-af.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.af={closeText:\"Selekteer\",prevText:\"Vorige\",nextText:\"Volgende\",currentText:\"Vandag\",monthNames:[\"Januarie\",\"Februarie\",\"Maart\",\"April\",\"Mei\",\"Junie\",\"Julie\",\"Augustus\",\"September\",\"Oktober\",\"November\",\"Desember\"],monthNamesShort:[\"Jan\",\"Feb\",\"Mrt\",\"Apr\",\"Mei\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Okt\",\"Nov\",\"Des\"],dayNames:[\"Sondag\",\"Maandag\",\"Dinsdag\",\"Woensdag\",\"Donderdag\",\"Vrydag\",\"Saterdag\"],dayNamesShort:[\"Son\",\"Maa\",\"Din\",\"Woe\",\"Don\",\"Vry\",\"Sat\"],dayNamesMin:[\"So\",\"Ma\",\"Di\",\"Wo\",\"Do\",\"Vr\",\"Sa\"],weekHeader:\"Wk\",dateFormat:\"dd/mm/yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.af);return datepicker.regional.af;});","jquery/ui-modules/i18n/datepicker-uk.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.uk={closeText:\"\u0417\u0430\u043a\u0440\u0438\u0442\u0438\",prevText:\"&#x3C;\",nextText:\"&#x3E;\",currentText:\"\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456\",monthNames:[\"\u0421\u0456\u0447\u0435\u043d\u044c\",\"\u041b\u044e\u0442\u0438\u0439\",\"\u0411\u0435\u0440\u0435\u0437\u0435\u043d\u044c\",\"\u041a\u0432\u0456\u0442\u0435\u043d\u044c\",\"\u0422\u0440\u0430\u0432\u0435\u043d\u044c\",\"\u0427\u0435\u0440\u0432\u0435\u043d\u044c\",\"\u041b\u0438\u043f\u0435\u043d\u044c\",\"\u0421\u0435\u0440\u043f\u0435\u043d\u044c\",\"\u0412\u0435\u0440\u0435\u0441\u0435\u043d\u044c\",\"\u0416\u043e\u0432\u0442\u0435\u043d\u044c\",\"\u041b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\",\"\u0413\u0440\u0443\u0434\u0435\u043d\u044c\"],monthNamesShort:[\"\u0421\u0456\u0447\",\"\u041b\u044e\u0442\",\"\u0411\u0435\u0440\",\"\u041a\u0432\u0456\",\"\u0422\u0440\u0430\",\"\u0427\u0435\u0440\",\"\u041b\u0438\u043f\",\"\u0421\u0435\u0440\",\"\u0412\u0435\u0440\",\"\u0416\u043e\u0432\",\"\u041b\u0438\u0441\",\"\u0413\u0440\u0443\"],dayNames:[\"\u043d\u0435\u0434\u0456\u043b\u044f\",\"\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a\",\"\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a\",\"\u0441\u0435\u0440\u0435\u0434\u0430\",\"\u0447\u0435\u0442\u0432\u0435\u0440\",\"\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f\",\"\u0441\u0443\u0431\u043e\u0442\u0430\"],dayNamesShort:[\"\u043d\u0435\u0434\",\"\u043f\u043d\u0434\",\"\u0432\u0456\u0432\",\"\u0441\u0440\u0434\",\"\u0447\u0442\u0432\",\"\u043f\u0442\u043d\",\"\u0441\u0431\u0442\"],dayNamesMin:[\"\u041d\u0434\",\"\u041f\u043d\",\"\u0412\u0442\",\"\u0421\u0440\",\"\u0427\u0442\",\"\u041f\u0442\",\"\u0421\u0431\"],weekHeader:\"\u0422\u0438\u0436\",dateFormat:\"dd.mm.yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.uk);return datepicker.regional.uk;});","jquery/ui-modules/i18n/datepicker-sr-SR.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional[\"sr-SR\"]={closeText:\"Zatvori\",prevText:\"&#x3C;\",nextText:\"&#x3E;\",currentText:\"Danas\",monthNames:[\"Januar\",\"Februar\",\"Mart\",\"April\",\"Maj\",\"Jun\",\"Jul\",\"Avgust\",\"Septembar\",\"Oktobar\",\"Novembar\",\"Decembar\"],monthNamesShort:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"Maj\",\"Jun\",\"Jul\",\"Avg\",\"Sep\",\"Okt\",\"Nov\",\"Dec\"],dayNames:[\"Nedelja\",\"Ponedeljak\",\"Utorak\",\"Sreda\",\"\u010cetvrtak\",\"Petak\",\"Subota\"],dayNamesShort:[\"Ned\",\"Pon\",\"Uto\",\"Sre\",\"\u010cet\",\"Pet\",\"Sub\"],dayNamesMin:[\"Ne\",\"Po\",\"Ut\",\"Sr\",\"\u010ce\",\"Pe\",\"Su\"],weekHeader:\"Sed\",dateFormat:\"dd.mm.yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional[\"sr-SR\"]);return datepicker.regional[\"sr-SR\"];});","jquery/ui-modules/i18n/datepicker-ja.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.ja={closeText:\"\u9589\u3058\u308b\",prevText:\"&#x3C;\u524d\",nextText:\"\u6b21&#x3E;\",currentText:\"\u4eca\u65e5\",monthNames:[\"1\u6708\",\"2\u6708\",\"3\u6708\",\"4\u6708\",\"5\u6708\",\"6\u6708\",\"7\u6708\",\"8\u6708\",\"9\u6708\",\"10\u6708\",\"11\u6708\",\"12\u6708\"],monthNamesShort:[\"1\u6708\",\"2\u6708\",\"3\u6708\",\"4\u6708\",\"5\u6708\",\"6\u6708\",\"7\u6708\",\"8\u6708\",\"9\u6708\",\"10\u6708\",\"11\u6708\",\"12\u6708\"],dayNames:[\"\u65e5\u66dc\u65e5\",\"\u6708\u66dc\u65e5\",\"\u706b\u66dc\u65e5\",\"\u6c34\u66dc\u65e5\",\"\u6728\u66dc\u65e5\",\"\u91d1\u66dc\u65e5\",\"\u571f\u66dc\u65e5\"],dayNamesShort:[\"\u65e5\",\"\u6708\",\"\u706b\",\"\u6c34\",\"\u6728\",\"\u91d1\",\"\u571f\"],dayNamesMin:[\"\u65e5\",\"\u6708\",\"\u706b\",\"\u6c34\",\"\u6728\",\"\u91d1\",\"\u571f\"],weekHeader:\"\u9031\",dateFormat:\"yy/mm/dd\",firstDay:0,isRTL:false,showMonthAfterYear:true,yearSuffix:\"\u5e74\"};datepicker.setDefaults(datepicker.regional.ja);return datepicker.regional.ja;});","jquery/ui-modules/i18n/datepicker-sv.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.sv={closeText:\"St\u00e4ng\",prevText:\"&#xAB;F\u00f6rra\",nextText:\"N\u00e4sta&#xBB;\",currentText:\"Idag\",monthNames:[\"januari\",\"februari\",\"mars\",\"april\",\"maj\",\"juni\",\"juli\",\"augusti\",\"september\",\"oktober\",\"november\",\"december\"],monthNamesShort:[\"jan.\",\"feb.\",\"mars\",\"apr.\",\"maj\",\"juni\",\"juli\",\"aug.\",\"sep.\",\"okt.\",\"nov.\",\"dec.\"],dayNamesShort:[\"s\u00f6n\",\"m\u00e5n\",\"tis\",\"ons\",\"tor\",\"fre\",\"l\u00f6r\"],dayNames:[\"s\u00f6ndag\",\"m\u00e5ndag\",\"tisdag\",\"onsdag\",\"torsdag\",\"fredag\",\"l\u00f6rdag\"],dayNamesMin:[\"s\u00f6\",\"m\u00e5\",\"ti\",\"on\",\"to\",\"fr\",\"l\u00f6\"],weekHeader:\"Ve\",dateFormat:\"yy-mm-dd\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.sv);return datepicker.regional.sv;});","jquery/ui-modules/i18n/datepicker-tr.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.tr={closeText:\"kapat\",prevText:\"&#x3C;geri\",nextText:\"ileri&#x3e\",currentText:\"bug\u00fcn\",monthNames:[\"Ocak\",\"\u015eubat\",\"Mart\",\"Nisan\",\"May\u0131s\",\"Haziran\",\"Temmuz\",\"A\u011fustos\",\"Eyl\u00fcl\",\"Ekim\",\"Kas\u0131m\",\"Aral\u0131k\"],monthNamesShort:[\"Oca\",\"\u015eub\",\"Mar\",\"Nis\",\"May\",\"Haz\",\"Tem\",\"A\u011fu\",\"Eyl\",\"Eki\",\"Kas\",\"Ara\"],dayNames:[\"Pazar\",\"Pazartesi\",\"Sal\u0131\",\"\u00c7ar\u015famba\",\"Per\u015fembe\",\"Cuma\",\"Cumartesi\"],dayNamesShort:[\"Pz\",\"Pt\",\"Sa\",\"\u00c7a\",\"Pe\",\"Cu\",\"Ct\"],dayNamesMin:[\"Pz\",\"Pt\",\"Sa\",\"\u00c7a\",\"Pe\",\"Cu\",\"Ct\"],weekHeader:\"Hf\",dateFormat:\"dd.mm.yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.tr);return datepicker.regional.tr;});","jquery/ui-modules/i18n/datepicker-mk.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.mk={closeText:\"\u0417\u0430\u0442\u0432\u043e\u0440\u0438\",prevText:\"&#x3C;\",nextText:\"&#x3E;\",currentText:\"\u0414\u0435\u043d\u0435\u0441\",monthNames:[\"\u0408\u0430\u043d\u0443\u0430\u0440\u0438\",\"\u0424\u0435\u0432\u0440\u0443\u0430\u0440\u0438\",\"\u041c\u0430\u0440\u0442\",\"\u0410\u043f\u0440\u0438\u043b\",\"\u041c\u0430\u0458\",\"\u0408\u0443\u043d\u0438\",\"\u0408\u0443\u043b\u0438\",\"\u0410\u0432\u0433\u0443\u0441\u0442\",\"\u0421\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438\",\"\u041e\u043a\u0442\u043e\u043c\u0432\u0440\u0438\",\"\u041d\u043e\u0435\u043c\u0432\u0440\u0438\",\"\u0414\u0435\u043a\u0435\u043c\u0432\u0440\u0438\"],monthNamesShort:[\"\u0408\u0430\u043d\",\"\u0424\u0435\u0432\",\"\u041c\u0430\u0440\",\"\u0410\u043f\u0440\",\"\u041c\u0430\u0458\",\"\u0408\u0443\u043d\",\"\u0408\u0443\u043b\",\"\u0410\u0432\u0433\",\"\u0421\u0435\u043f\",\"\u041e\u043a\u0442\",\"\u041d\u043e\u0435\",\"\u0414\u0435\u043a\"],dayNames:[\"\u041d\u0435\u0434\u0435\u043b\u0430\",\"\u041f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a\",\"\u0412\u0442\u043e\u0440\u043d\u0438\u043a\",\"\u0421\u0440\u0435\u0434\u0430\",\"\u0427\u0435\u0442\u0432\u0440\u0442\u043e\u043a\",\"\u041f\u0435\u0442\u043e\u043a\",\"\u0421\u0430\u0431\u043e\u0442\u0430\"],dayNamesShort:[\"\u041d\u0435\u0434\",\"\u041f\u043e\u043d\",\"\u0412\u0442\u043e\",\"\u0421\u0440\u0435\",\"\u0427\u0435\u0442\",\"\u041f\u0435\u0442\",\"\u0421\u0430\u0431\"],dayNamesMin:[\"\u041d\u0435\",\"\u041f\u043e\",\"\u0412\u0442\",\"\u0421\u0440\",\"\u0427\u0435\",\"\u041f\u0435\",\"\u0421\u0430\"],weekHeader:\"\u0421\u0435\u0434\",dateFormat:\"dd.mm.yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.mk);return datepicker.regional.mk;});","jquery/ui-modules/i18n/datepicker-gl.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.gl={closeText:\"Pechar\",prevText:\"&#x3C;Ant\",nextText:\"Seg&#x3E;\",currentText:\"Hoxe\",monthNames:[\"Xaneiro\",\"Febreiro\",\"Marzo\",\"Abril\",\"Maio\",\"Xu\u00f1o\",\"Xullo\",\"Agosto\",\"Setembro\",\"Outubro\",\"Novembro\",\"Decembro\"],monthNamesShort:[\"Xan\",\"Feb\",\"Mar\",\"Abr\",\"Mai\",\"Xu\u00f1\",\"Xul\",\"Ago\",\"Set\",\"Out\",\"Nov\",\"Dec\"],dayNames:[\"Domingo\",\"Luns\",\"Martes\",\"M\u00e9rcores\",\"Xoves\",\"Venres\",\"S\u00e1bado\"],dayNamesShort:[\"Dom\",\"Lun\",\"Mar\",\"M\u00e9r\",\"Xov\",\"Ven\",\"S\u00e1b\"],dayNamesMin:[\"Do\",\"Lu\",\"Ma\",\"M\u00e9\",\"Xo\",\"Ve\",\"S\u00e1\"],weekHeader:\"Sm\",dateFormat:\"dd/mm/yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.gl);return datepicker.regional.gl;});","jquery/ui-modules/i18n/datepicker-nl.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.nl={closeText:\"Sluiten\",prevText:\"\u2190\",nextText:\"\u2192\",currentText:\"Vandaag\",monthNames:[\"januari\",\"februari\",\"maart\",\"april\",\"mei\",\"juni\",\"juli\",\"augustus\",\"september\",\"oktober\",\"november\",\"december\"],monthNamesShort:[\"jan\",\"feb\",\"mrt\",\"apr\",\"mei\",\"jun\",\"jul\",\"aug\",\"sep\",\"okt\",\"nov\",\"dec\"],dayNames:[\"zondag\",\"maandag\",\"dinsdag\",\"woensdag\",\"donderdag\",\"vrijdag\",\"zaterdag\"],dayNamesShort:[\"zon\",\"maa\",\"din\",\"woe\",\"don\",\"vri\",\"zat\"],dayNamesMin:[\"zo\",\"ma\",\"di\",\"wo\",\"do\",\"vr\",\"za\"],weekHeader:\"Wk\",dateFormat:\"dd-mm-yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.nl);return datepicker.regional.nl;});","jquery/ui-modules/i18n/datepicker-vi.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.vi={closeText:\"\u0110\u00f3ng\",prevText:\"&#x3C;Tr\u01b0\u1edbc\",nextText:\"Ti\u1ebfp&#x3E;\",currentText:\"H\u00f4m nay\",monthNames:[\"Th\u00e1ng M\u1ed9t\",\"Th\u00e1ng Hai\",\"Th\u00e1ng Ba\",\"Th\u00e1ng T\u01b0\",\"Th\u00e1ng N\u0103m\",\"Th\u00e1ng S\u00e1u\",\"Th\u00e1ng B\u1ea3y\",\"Th\u00e1ng T\u00e1m\",\"Th\u00e1ng Ch\u00edn\",\"Th\u00e1ng M\u01b0\u1eddi\",\"Th\u00e1ng M\u01b0\u1eddi M\u1ed9t\",\"Th\u00e1ng M\u01b0\u1eddi Hai\"],monthNamesShort:[\"Th\u00e1ng 1\",\"Th\u00e1ng 2\",\"Th\u00e1ng 3\",\"Th\u00e1ng 4\",\"Th\u00e1ng 5\",\"Th\u00e1ng 6\",\"Th\u00e1ng 7\",\"Th\u00e1ng 8\",\"Th\u00e1ng 9\",\"Th\u00e1ng 10\",\"Th\u00e1ng 11\",\"Th\u00e1ng 12\"],dayNames:[\"Ch\u1ee7 Nh\u1eadt\",\"Th\u1ee9 Hai\",\"Th\u1ee9 Ba\",\"Th\u1ee9 T\u01b0\",\"Th\u1ee9 N\u0103m\",\"Th\u1ee9 S\u00e1u\",\"Th\u1ee9 B\u1ea3y\"],dayNamesShort:[\"CN\",\"T2\",\"T3\",\"T4\",\"T5\",\"T6\",\"T7\"],dayNamesMin:[\"CN\",\"T2\",\"T3\",\"T4\",\"T5\",\"T6\",\"T7\"],weekHeader:\"Tu\",dateFormat:\"dd/mm/yy\",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.vi);return datepicker.regional.vi;});","jquery/ui-modules/i18n/datepicker-hi.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.hi={closeText:\"\u092c\u0902\u0926\",prevText:\"\u092a\u093f\u091b\u0932\u093e\",nextText:\"\u0905\u0917\u0932\u093e\",currentText:\"\u0906\u091c\",monthNames:[\"\u091c\u0928\u0935\u0930\u0940 \",\"\u092b\u0930\u0935\u0930\u0940\",\"\u092e\u093e\u0930\u094d\u091a\",\"\u0905\u092a\u094d\u0930\u0947\u0932\",\"\u092e\u0908\",\"\u091c\u0942\u0928\",\"\u091c\u0942\u0932\u093e\u0908\",\"\u0905\u0917\u0938\u094d\u0924 \",\"\u0938\u093f\u0924\u092e\u094d\u092c\u0930\",\"\u0905\u0915\u094d\u091f\u0942\u092c\u0930\",\"\u0928\u0935\u092e\u094d\u092c\u0930\",\"\u0926\u093f\u0938\u092e\u094d\u092c\u0930\"],monthNamesShort:[\"\u091c\u0928\",\"\u092b\u0930\",\"\u092e\u093e\u0930\u094d\u091a\",\"\u0905\u092a\u094d\u0930\u0947\u0932\",\"\u092e\u0908\",\"\u091c\u0942\u0928\",\"\u091c\u0942\u0932\u093e\u0908\",\"\u0905\u0917\",\"\u0938\u093f\u0924\",\"\u0905\u0915\u094d\u091f\",\"\u0928\u0935\",\"\u0926\u093f\"],dayNames:[\"\u0930\u0935\u093f\u0935\u093e\u0930\",\"\u0938\u094b\u092e\u0935\u093e\u0930\",\"\u092e\u0902\u0917\u0932\u0935\u093e\u0930\",\"\u092c\u0941\u0927\u0935\u093e\u0930\",\"\u0917\u0941\u0930\u0941\u0935\u093e\u0930\",\"\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930\",\"\u0936\u0928\u093f\u0935\u093e\u0930\"],dayNamesShort:[\"\u0930\u0935\u093f\",\"\u0938\u094b\u092e\",\"\u092e\u0902\u0917\u0932\",\"\u092c\u0941\u0927\",\"\u0917\u0941\u0930\u0941\",\"\u0936\u0941\u0915\u094d\u0930\",\"\u0936\u0928\u093f\"],dayNamesMin:[\"\u0930\u0935\u093f\",\"\u0938\u094b\u092e\",\"\u092e\u0902\u0917\u0932\",\"\u092c\u0941\u0927\",\"\u0917\u0941\u0930\u0941\",\"\u0936\u0941\u0915\u094d\u0930\",\"\u0936\u0928\u093f\"],weekHeader:\"\u0939\u092b\u094d\u0924\u093e\",dateFormat:\"dd/mm/yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.hi);return datepicker.regional.hi;});","jquery/ui-modules/i18n/datepicker-it-CH.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional[\"it-CH\"]={closeText:\"Chiudi\",prevText:\"&#x3C;Prec\",nextText:\"Succ&#x3E;\",currentText:\"Oggi\",monthNames:[\"Gennaio\",\"Febbraio\",\"Marzo\",\"Aprile\",\"Maggio\",\"Giugno\",\"Luglio\",\"Agosto\",\"Settembre\",\"Ottobre\",\"Novembre\",\"Dicembre\"],monthNamesShort:[\"Gen\",\"Feb\",\"Mar\",\"Apr\",\"Mag\",\"Giu\",\"Lug\",\"Ago\",\"Set\",\"Ott\",\"Nov\",\"Dic\"],dayNames:[\"Domenica\",\"Luned\u00ec\",\"Marted\u00ec\",\"Mercoled\u00ec\",\"Gioved\u00ec\",\"Venerd\u00ec\",\"Sabato\"],dayNamesShort:[\"Dom\",\"Lun\",\"Mar\",\"Mer\",\"Gio\",\"Ven\",\"Sab\"],dayNamesMin:[\"Do\",\"Lu\",\"Ma\",\"Me\",\"Gi\",\"Ve\",\"Sa\"],weekHeader:\"Sm\",dateFormat:\"dd.mm.yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional[\"it-CH\"]);return datepicker.regional[\"it-CH\"];});","jquery/ui-modules/i18n/datepicker-it.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.it={closeText:\"Chiudi\",prevText:\"&#x3C;Prec\",nextText:\"Succ&#x3E;\",currentText:\"Oggi\",monthNames:[\"Gennaio\",\"Febbraio\",\"Marzo\",\"Aprile\",\"Maggio\",\"Giugno\",\"Luglio\",\"Agosto\",\"Settembre\",\"Ottobre\",\"Novembre\",\"Dicembre\"],monthNamesShort:[\"Gen\",\"Feb\",\"Mar\",\"Apr\",\"Mag\",\"Giu\",\"Lug\",\"Ago\",\"Set\",\"Ott\",\"Nov\",\"Dic\"],dayNames:[\"Domenica\",\"Luned\u00ec\",\"Marted\u00ec\",\"Mercoled\u00ec\",\"Gioved\u00ec\",\"Venerd\u00ec\",\"Sabato\"],dayNamesShort:[\"Dom\",\"Lun\",\"Mar\",\"Mer\",\"Gio\",\"Ven\",\"Sab\"],dayNamesMin:[\"Do\",\"Lu\",\"Ma\",\"Me\",\"Gi\",\"Ve\",\"Sa\"],weekHeader:\"Sm\",dateFormat:\"dd/mm/yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.it);return datepicker.regional.it;});","jquery/ui-modules/i18n/datepicker-fo.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.fo={closeText:\"Lat aftur\",prevText:\"&#x3C;Fyrra\",nextText:\"N\u00e6sta&#x3E;\",currentText:\"\u00cd dag\",monthNames:[\"Januar\",\"Februar\",\"Mars\",\"Apr\u00edl\",\"Mei\",\"Juni\",\"Juli\",\"August\",\"September\",\"Oktober\",\"November\",\"Desember\"],monthNamesShort:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"Mei\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Okt\",\"Nov\",\"Des\"],dayNames:[\"Sunnudagur\",\"M\u00e1nadagur\",\"T\u00fdsdagur\",\"Mikudagur\",\"H\u00f3sdagur\",\"Fr\u00edggjadagur\",\"Leyardagur\"],dayNamesShort:[\"Sun\",\"M\u00e1n\",\"T\u00fds\",\"Mik\",\"H\u00f3s\",\"Fr\u00ed\",\"Ley\"],dayNamesMin:[\"Su\",\"M\u00e1\",\"T\u00fd\",\"Mi\",\"H\u00f3\",\"Fr\",\"Le\"],weekHeader:\"Vk\",dateFormat:\"dd-mm-yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.fo);return datepicker.regional.fo;});","jquery/ui-modules/i18n/datepicker-bg.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.bg={closeText:\"\u0437\u0430\u0442\u0432\u043e\u0440\u0438\",prevText:\"&#x3C;\u043d\u0430\u0437\u0430\u0434\",nextText:\"\u043d\u0430\u043f\u0440\u0435\u0434&#x3E;\",nextBigText:\"&#x3E;&#x3E;\",currentText:\"\u0434\u043d\u0435\u0441\",monthNames:[\"\u042f\u043d\u0443\u0430\u0440\u0438\",\"\u0424\u0435\u0432\u0440\u0443\u0430\u0440\u0438\",\"\u041c\u0430\u0440\u0442\",\"\u0410\u043f\u0440\u0438\u043b\",\"\u041c\u0430\u0439\",\"\u042e\u043d\u0438\",\"\u042e\u043b\u0438\",\"\u0410\u0432\u0433\u0443\u0441\u0442\",\"\u0421\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438\",\"\u041e\u043a\u0442\u043e\u043c\u0432\u0440\u0438\",\"\u041d\u043e\u0435\u043c\u0432\u0440\u0438\",\"\u0414\u0435\u043a\u0435\u043c\u0432\u0440\u0438\"],monthNamesShort:[\"\u042f\u043d\u0443\",\"\u0424\u0435\u0432\",\"\u041c\u0430\u0440\",\"\u0410\u043f\u0440\",\"\u041c\u0430\u0439\",\"\u042e\u043d\u0438\",\"\u042e\u043b\u0438\",\"\u0410\u0432\u0433\",\"\u0421\u0435\u043f\",\"\u041e\u043a\u0442\",\"\u041d\u043e\u0432\",\"\u0414\u0435\u043a\"],dayNames:[\"\u041d\u0435\u0434\u0435\u043b\u044f\",\"\u041f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a\",\"\u0412\u0442\u043e\u0440\u043d\u0438\u043a\",\"\u0421\u0440\u044f\u0434\u0430\",\"\u0427\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a\",\"\u041f\u0435\u0442\u044a\u043a\",\"\u0421\u044a\u0431\u043e\u0442\u0430\"],dayNamesShort:[\"\u041d\u0435\u0434\",\"\u041f\u043e\u043d\",\"\u0412\u0442\u043e\",\"\u0421\u0440\u044f\",\"\u0427\u0435\u0442\",\"\u041f\u0435\u0442\",\"\u0421\u044a\u0431\"],dayNamesMin:[\"\u041d\u0435\",\"\u041f\u043e\",\"\u0412\u0442\",\"\u0421\u0440\",\"\u0427\u0435\",\"\u041f\u0435\",\"\u0421\u044a\"],weekHeader:\"Wk\",dateFormat:\"dd.mm.yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.bg);return datepicker.regional.bg;});","jquery/ui-modules/i18n/datepicker-sr.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.sr={closeText:\"\u0417\u0430\u0442\u0432\u043e\u0440\u0438\",prevText:\"&#x3C;\",nextText:\"&#x3E;\",currentText:\"\u0414\u0430\u043d\u0430\u0441\",monthNames:[\"\u0408\u0430\u043d\u0443\u0430\u0440\",\"\u0424\u0435\u0431\u0440\u0443\u0430\u0440\",\"\u041c\u0430\u0440\u0442\",\"\u0410\u043f\u0440\u0438\u043b\",\"\u041c\u0430\u0458\",\"\u0408\u0443\u043d\",\"\u0408\u0443\u043b\",\"\u0410\u0432\u0433\u0443\u0441\u0442\",\"\u0421\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440\",\"\u041e\u043a\u0442\u043e\u0431\u0430\u0440\",\"\u041d\u043e\u0432\u0435\u043c\u0431\u0430\u0440\",\"\u0414\u0435\u0446\u0435\u043c\u0431\u0430\u0440\"],monthNamesShort:[\"\u0408\u0430\u043d\",\"\u0424\u0435\u0431\",\"\u041c\u0430\u0440\",\"\u0410\u043f\u0440\",\"\u041c\u0430\u0458\",\"\u0408\u0443\u043d\",\"\u0408\u0443\u043b\",\"\u0410\u0432\u0433\",\"\u0421\u0435\u043f\",\"\u041e\u043a\u0442\",\"\u041d\u043e\u0432\",\"\u0414\u0435\u0446\"],dayNames:[\"\u041d\u0435\u0434\u0435\u0459\u0430\",\"\u041f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a\",\"\u0423\u0442\u043e\u0440\u0430\u043a\",\"\u0421\u0440\u0435\u0434\u0430\",\"\u0427\u0435\u0442\u0432\u0440\u0442\u0430\u043a\",\"\u041f\u0435\u0442\u0430\u043a\",\"\u0421\u0443\u0431\u043e\u0442\u0430\"],dayNamesShort:[\"\u041d\u0435\u0434\",\"\u041f\u043e\u043d\",\"\u0423\u0442\u043e\",\"\u0421\u0440\u0435\",\"\u0427\u0435\u0442\",\"\u041f\u0435\u0442\",\"\u0421\u0443\u0431\"],dayNamesMin:[\"\u041d\u0435\",\"\u041f\u043e\",\"\u0423\u0442\",\"\u0421\u0440\",\"\u0427\u0435\",\"\u041f\u0435\",\"\u0421\u0443\"],weekHeader:\"\u0421\u0435\u0434\",dateFormat:\"dd.mm.yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.sr);return datepicker.regional.sr;});","jquery/ui-modules/i18n/datepicker-en-NZ.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional[\"en-NZ\"]={closeText:\"Done\",prevText:\"Prev\",nextText:\"Next\",currentText:\"Today\",monthNames:[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"],monthNamesShort:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"],dayNames:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"],dayNamesShort:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],dayNamesMin:[\"Su\",\"Mo\",\"Tu\",\"We\",\"Th\",\"Fr\",\"Sa\"],weekHeader:\"Wk\",dateFormat:\"dd/mm/yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional[\"en-NZ\"]);return datepicker.regional[\"en-NZ\"];});","jquery/ui-modules/i18n/datepicker-pl.min.js":"(function(factory){\"use strict\";if(typeof define===\"function\"&&define.amd){define([\"../widgets/datepicker\"],factory);}else{factory(jQuery.datepicker);}})(function(datepicker){\"use strict\";datepicker.regional.pl={closeText:\"Zamknij\",prevText:\"&#x3C;Poprzedni\",nextText:\"Nast\u0119pny&#x3E;\",currentText:\"Dzi\u015b\",monthNames:[\"Stycze\u0144\",\"Luty\",\"Marzec\",\"Kwiecie\u0144\",\"Maj\",\"Czerwiec\",\"Lipiec\",\"Sierpie\u0144\",\"Wrzesie\u0144\",\"Pa\u017adziernik\",\"Listopad\",\"Grudzie\u0144\"],monthNamesShort:[\"Sty\",\"Lu\",\"Mar\",\"Kw\",\"Maj\",\"Cze\",\"Lip\",\"Sie\",\"Wrz\",\"Pa\",\"Lis\",\"Gru\"],dayNames:[\"Niedziela\",\"Poniedzia\u0142ek\",\"Wtorek\",\"\u015aroda\",\"Czwartek\",\"Pi\u0105tek\",\"Sobota\"],dayNamesShort:[\"Nie\",\"Pn\",\"Wt\",\"\u015ar\",\"Czw\",\"Pt\",\"So\"],dayNamesMin:[\"N\",\"Pn\",\"Wt\",\"\u015ar\",\"Cz\",\"Pt\",\"So\"],weekHeader:\"Tydz\",dateFormat:\"dd.mm.yy\",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};datepicker.setDefaults(datepicker.regional.pl);return datepicker.regional.pl;});","jquery/ui-modules/vendor/jquery-color/jquery.color.min.js":"/*!\n * jQuery Color Animations v2.2.0\n * https://github.com/jquery/jquery-color\n *\n * Copyright OpenJS Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * Date: Sun May 10 09:02:36 2020 +0200\n */\n(function(root,factory){if(typeof define===\"function\"&&define.amd){define([\"jquery\"],factory);}else if(typeof exports===\"object\"){module.exports=factory(require(\"jquery\"));}else{factory(root.jQuery);}})(this,function(jQuery,undefined){var stepHooks=\"backgroundColor borderBottomColor borderLeftColor borderRightColor \"+\"borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor\",class2type={},toString=class2type.toString,rplusequals=/^([\\-+])=\\s*(\\d+\\.?\\d*)/,stringParsers=[{re:/rgba?\\(\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*(?:,\\s*(\\d?(?:\\.\\d+)?)\\s*)?\\)/,parse:function(execResult){return[execResult[1],execResult[2],execResult[3],execResult[4]];}},{re:/rgba?\\(\\s*(\\d+(?:\\.\\d+)?)\\%\\s*,\\s*(\\d+(?:\\.\\d+)?)\\%\\s*,\\s*(\\d+(?:\\.\\d+)?)\\%\\s*(?:,\\s*(\\d?(?:\\.\\d+)?)\\s*)?\\)/,parse:function(execResult){return[execResult[1]*2.55,execResult[2]*2.55,execResult[3]*2.55,execResult[4]];}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?/,parse:function(execResult){return[parseInt(execResult[1],16),parseInt(execResult[2],16),parseInt(execResult[3],16),execResult[4]?(parseInt(execResult[4],16)/ 255).toFixed(2):1];}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?/,parse:function(execResult){return[parseInt(execResult[1]+execResult[1],16),parseInt(execResult[2]+execResult[2],16),parseInt(execResult[3]+execResult[3],16),execResult[4]?(parseInt(execResult[4]+execResult[4],16)/ 255).toFixed(2):1];}},{re:/hsla?\\(\\s*(\\d+(?:\\.\\d+)?)\\s*,\\s*(\\d+(?:\\.\\d+)?)\\%\\s*,\\s*(\\d+(?:\\.\\d+)?)\\%\\s*(?:,\\s*(\\d?(?:\\.\\d+)?)\\s*)?\\)/,space:\"hsla\",parse:function(execResult){return[execResult[1],execResult[2]/ 100,execResult[3]/ 100,execResult[4]];}}],color=jQuery.Color=function(color,green,blue,alpha){return new jQuery.Color.fn.parse(color,green,blue,alpha);},spaces={rgba:{props:{red:{idx:0,type:\"byte\"},green:{idx:1,type:\"byte\"},blue:{idx:2,type:\"byte\"}}},hsla:{props:{hue:{idx:0,type:\"degrees\"},saturation:{idx:1,type:\"percent\"},lightness:{idx:2,type:\"percent\"}}}},propTypes={\"byte\":{floor:true,max:255},\"percent\":{max:1},\"degrees\":{mod:360,floor:true}},support=color.support={},supportElem=jQuery(\"<p>\")[0],colors,each=jQuery.each;supportElem.style.cssText=\"background-color:rgba(1,1,1,.5)\";support.rgba=supportElem.style.backgroundColor.indexOf(\"rgba\")>-1;each(spaces,function(spaceName,space){space.cache=\"_\"+spaceName;space.props.alpha={idx:3,type:\"percent\",def:1};});jQuery.each(\"Boolean Number String Function Array Date RegExp Object Error Symbol\".split(\" \"),function(_i,name){class2type[\"[object \"+name+\"]\"]=name.toLowerCase();});function getType(obj){if(obj==null){return obj+\"\";}\nreturn typeof obj===\"object\"?class2type[toString.call(obj)]||\"object\":typeof obj;}\nfunction clamp(value,prop,allowEmpty){var type=propTypes[prop.type]||{};if(value==null){return(allowEmpty||!prop.def)?null:prop.def;}\nvalue=type.floor?~~value:parseFloat(value);if(isNaN(value)){return prop.def;}\nif(type.mod){return(value+type.mod)%type.mod;}\nreturn Math.min(type.max,Math.max(0,value));}\nfunction stringParse(string){var inst=color(),rgba=inst._rgba=[];string=string.toLowerCase();each(stringParsers,function(_i,parser){var parsed,match=parser.re.exec(string),values=match&&parser.parse(match),spaceName=parser.space||\"rgba\";if(values){parsed=inst[spaceName](values);inst[spaces[spaceName].cache]=parsed[spaces[spaceName].cache];rgba=inst._rgba=parsed._rgba;return false;}});if(rgba.length){if(rgba.join()===\"0,0,0,0\"){jQuery.extend(rgba,colors.transparent);}\nreturn inst;}\nreturn colors[string];}\ncolor.fn=jQuery.extend(color.prototype,{parse:function(red,green,blue,alpha){if(red===undefined){this._rgba=[null,null,null,null];return this;}\nif(red.jquery||red.nodeType){red=jQuery(red).css(green);green=undefined;}\nvar inst=this,type=getType(red),rgba=this._rgba=[];if(green!==undefined){red=[red,green,blue,alpha];type=\"array\";}\nif(type===\"string\"){return this.parse(stringParse(red)||colors._default);}\nif(type===\"array\"){each(spaces.rgba.props,function(_key,prop){rgba[prop.idx]=clamp(red[prop.idx],prop);});return this;}\nif(type===\"object\"){if(red instanceof color){each(spaces,function(_spaceName,space){if(red[space.cache]){inst[space.cache]=red[space.cache].slice();}});}else{each(spaces,function(_spaceName,space){var cache=space.cache;each(space.props,function(key,prop){if(!inst[cache]&&space.to){if(key===\"alpha\"||red[key]==null){return;}\ninst[cache]=space.to(inst._rgba);}\ninst[cache][prop.idx]=clamp(red[key],prop,true);});if(inst[cache]&&jQuery.inArray(null,inst[cache].slice(0,3))<0){if(inst[cache][3]==null){inst[cache][3]=1;}\nif(space.from){inst._rgba=space.from(inst[cache]);}}});}\nreturn this;}},is:function(compare){var is=color(compare),same=true,inst=this;each(spaces,function(_,space){var localCache,isCache=is[space.cache];if(isCache){localCache=inst[space.cache]||space.to&&space.to(inst._rgba)||[];each(space.props,function(_,prop){if(isCache[prop.idx]!=null){same=(isCache[prop.idx]===localCache[prop.idx]);return same;}});}\nreturn same;});return same;},_space:function(){var used=[],inst=this;each(spaces,function(spaceName,space){if(inst[space.cache]){used.push(spaceName);}});return used.pop();},transition:function(other,distance){var end=color(other),spaceName=end._space(),space=spaces[spaceName],startColor=this.alpha()===0?color(\"transparent\"):this,start=startColor[space.cache]||space.to(startColor._rgba),result=start.slice();end=end[space.cache];each(space.props,function(_key,prop){var index=prop.idx,startValue=start[index],endValue=end[index],type=propTypes[prop.type]||{};if(endValue===null){return;}\nif(startValue===null){result[index]=endValue;}else{if(type.mod){if(endValue-startValue>type.mod / 2){startValue+=type.mod;}else if(startValue-endValue>type.mod / 2){startValue-=type.mod;}}\nresult[index]=clamp((endValue-startValue)*distance+startValue,prop);}});return this[spaceName](result);},blend:function(opaque){if(this._rgba[3]===1){return this;}\nvar rgb=this._rgba.slice(),a=rgb.pop(),blend=color(opaque)._rgba;return color(jQuery.map(rgb,function(v,i){return(1-a)*blend[i]+a*v;}));},toRgbaString:function(){var prefix=\"rgba(\",rgba=jQuery.map(this._rgba,function(v,i){if(v!=null){return v;}\nreturn i>2?1:0;});if(rgba[3]===1){rgba.pop();prefix=\"rgb(\";}\nreturn prefix+rgba.join()+\")\";},toHslaString:function(){var prefix=\"hsla(\",hsla=jQuery.map(this.hsla(),function(v,i){if(v==null){v=i>2?1:0;}\nif(i&&i<3){v=Math.round(v*100)+\"%\";}\nreturn v;});if(hsla[3]===1){hsla.pop();prefix=\"hsl(\";}\nreturn prefix+hsla.join()+\")\";},toHexString:function(includeAlpha){var rgba=this._rgba.slice(),alpha=rgba.pop();if(includeAlpha){rgba.push(~~(alpha*255));}\nreturn\"#\"+jQuery.map(rgba,function(v){v=(v||0).toString(16);return v.length===1?\"0\"+v:v;}).join(\"\");},toString:function(){return this._rgba[3]===0?\"transparent\":this.toRgbaString();}});color.fn.parse.prototype=color.fn;function hue2rgb(p,q,h){h=(h+1)%1;if(h*6<1){return p+(q-p)*h*6;}\nif(h*2<1){return q;}\nif(h*3<2){return p+(q-p)*((2 / 3)-h)*6;}\nreturn p;}\nspaces.hsla.to=function(rgba){if(rgba[0]==null||rgba[1]==null||rgba[2]==null){return[null,null,null,rgba[3]];}\nvar r=rgba[0]/ 255,g=rgba[1]/ 255,b=rgba[2]/ 255,a=rgba[3],max=Math.max(r,g,b),min=Math.min(r,g,b),diff=max-min,add=max+min,l=add*0.5,h,s;if(min===max){h=0;}else if(r===max){h=(60*(g-b)/ diff)+360;}else if(g===max){h=(60*(b-r)/ diff)+120;}else{h=(60*(r-g)/ diff)+240;}\nif(diff===0){s=0;}else if(l<=0.5){s=diff / add;}else{s=diff /(2-add);}\nreturn[Math.round(h)%360,s,l,a==null?1:a];};spaces.hsla.from=function(hsla){if(hsla[0]==null||hsla[1]==null||hsla[2]==null){return[null,null,null,hsla[3]];}\nvar h=hsla[0]/ 360,s=hsla[1],l=hsla[2],a=hsla[3],q=l<=0.5?l*(1+s):l+s-l*s,p=2*l-q;return[Math.round(hue2rgb(p,q,h+(1 / 3))*255),Math.round(hue2rgb(p,q,h)*255),Math.round(hue2rgb(p,q,h-(1 / 3))*255),a];};each(spaces,function(spaceName,space){var props=space.props,cache=space.cache,to=space.to,from=space.from;color.fn[spaceName]=function(value){if(to&&!this[cache]){this[cache]=to(this._rgba);}\nif(value===undefined){return this[cache].slice();}\nvar ret,type=getType(value),arr=(type===\"array\"||type===\"object\")?value:arguments,local=this[cache].slice();each(props,function(key,prop){var val=arr[type===\"object\"?key:prop.idx];if(val==null){val=local[prop.idx];}\nlocal[prop.idx]=clamp(val,prop);});if(from){ret=color(from(local));ret[cache]=local;return ret;}else{return color(local);}};each(props,function(key,prop){if(color.fn[key]){return;}\ncolor.fn[key]=function(value){var local,cur,match,fn,vtype=getType(value);if(key===\"alpha\"){fn=this._hsla?\"hsla\":\"rgba\";}else{fn=spaceName;}\nlocal=this[fn]();cur=local[prop.idx];if(vtype===\"undefined\"){return cur;}\nif(vtype===\"function\"){value=value.call(this,cur);vtype=getType(value);}\nif(value==null&&prop.empty){return this;}\nif(vtype===\"string\"){match=rplusequals.exec(value);if(match){value=cur+parseFloat(match[2])*(match[1]===\"+\"?1:-1);}}\nlocal[prop.idx]=value;return this[fn](local);};});});color.hook=function(hook){var hooks=hook.split(\" \");each(hooks,function(_i,hook){jQuery.cssHooks[hook]={set:function(elem,value){var parsed,curElem,backgroundColor=\"\";if(value!==\"transparent\"&&(getType(value)!==\"string\"||(parsed=stringParse(value)))){value=color(parsed||value);if(!support.rgba&&value._rgba[3]!==1){curElem=hook===\"backgroundColor\"?elem.parentNode:elem;while((backgroundColor===\"\"||backgroundColor===\"transparent\")&&curElem&&curElem.style){try{backgroundColor=jQuery.css(curElem,\"backgroundColor\");curElem=curElem.parentNode;}catch(e){}}\nvalue=value.blend(backgroundColor&&backgroundColor!==\"transparent\"?backgroundColor:\"_default\");}\nvalue=value.toRgbaString();}\ntry{elem.style[hook]=value;}catch(e){}}};jQuery.fx.step[hook]=function(fx){if(!fx.colorInit){fx.start=color(fx.elem,hook);fx.end=color(fx.end);fx.colorInit=true;}\njQuery.cssHooks[hook].set(fx.elem,fx.start.transition(fx.end,fx.pos));};});};color.hook(stepHooks);jQuery.cssHooks.borderColor={expand:function(value){var expanded={};each([\"Top\",\"Right\",\"Bottom\",\"Left\"],function(_i,part){expanded[\"border\"+part+\"Color\"]=value;});return expanded;}};colors=jQuery.Color.names={aqua:\"#00ffff\",black:\"#000000\",blue:\"#0000ff\",fuchsia:\"#ff00ff\",gray:\"#808080\",green:\"#008000\",lime:\"#00ff00\",maroon:\"#800000\",navy:\"#000080\",olive:\"#808000\",purple:\"#800080\",red:\"#ff0000\",silver:\"#c0c0c0\",teal:\"#008080\",white:\"#ffffff\",yellow:\"#ffff00\",transparent:[null,null,null,0],_default:\"#ffffff\"};});","MGS_ThemeSettings/js/j360.min.js":"(function($){$.fn.j360=function(options){var defaults={clicked:false,currImg:1}\nvar options=jQuery.extend(defaults,options);return this.each(function(){var $obj=jQuery(this);var aImages={};$obj.css({'margin-left':'auto','margin-right':'auto','text-align':'center','overflow':'hidden'});$overlay=$obj.clone(true);$overlay.attr('id','view_overlay');$overlay.css({'position':'absolute','z-index':'5','top':$obj.offset().top,'left':$obj.offset().left,'background':'#fff'});$obj.after($overlay);$obj.after('<div id=\"colors_ctrls\"></div>');jQuery('#colors_ctrls').css({'width':$obj.width(),'position':'absolute','z-index':'5','top':$obj.offset().top+$obj.height-50,'left':$obj.offset().left});var imageTotal=0;jQuery('img',$obj).each(function(){aImages[++imageTotal]=jQuery(this).attr('src');preload(jQuery(this).attr('src'));})\nvar imageCount=0;jQuery('.preload_img').on('load',function(){if(++imageCount==imageTotal){$overlay.animate({'filter':'alpha(Opacity=0)','opacity':0},500);$obj.html('<img src=\"'+aImages[1]+'\" />');$overlay.on('mousedown touchstart',function(e){if(e.type==\"touchstart\"){options.currPos=window.event.touches[0].pageX;}else{options.currPos=e.pageX;}\noptions.clicked=true;return false;});jQuery(document).on('mouseup touchend',function(){options.clicked=false;});jQuery(document).on('mousemove touchmove',function(e){if(options.clicked){var pageX;if(e.type==\"touchmove\"){pageX=window.event.targetTouches[0].pageX;}else{pageX=e.pageX;}\nvar width_step=4;if(Math.abs(options.currPos-pageX)>=width_step){if(options.currPos-pageX>=width_step){options.currImg++;if(options.currImg>imageTotal){options.currImg=1;}}else{options.currImg--;if(options.currImg<1){options.currImg=imageTotal;}}\noptions.currPos=pageX;$obj.html('<img src=\"'+aImages[options.currImg]+'\" />');}}});}});const userAgent=window.navigator.userAgent;const isIE=userAgent.indexOf('MSIE ')>0||userAgent.indexOf('Trident/')>0;const isFirefox=userAgent.indexOf('Firefox')>0;const isSafari=userAgent.indexOf('Safari')>0&&userAgent.indexOf('Chrome')==-1;const isOpera=userAgent.indexOf('Presto')>0;if(isIE||isFirefox||isSafari||isOpera){jQuery(window).on('resize',function(){onresizeFunc($obj,$overlay);});}else{var supportsOrientationChange=\"onorientationchange\"in window,orientationEvent=supportsOrientationChange?\"orientationchange\":\"resize\";window.addEventListener(orientationEvent,function(){onresizeFunc($obj,$overlay);},false);}\nonresizeFunc($obj,$overlay)});};})(jQuery)\nfunction onresizeFunc($obj,$overlay){$overlay.css({'margin-top':0,'top':$obj.offset().top,'left':$obj.offset().left});jQuery('#colors_ctrls').css({'top':$obj.offset().top+$obj.height-50,'left':$obj.offset().left});}\nfunction preload(image){if(typeof document.body==\"undefined\")return;try{var div=document.createElement(\"div\");var s=div.style;s.position=\"absolute\";s.top=s.left=0;s.visibility=\"hidden\";document.body.appendChild(div);div.innerHTML=\"<img class=\\\"preload_img\\\" src=\\\"\"+image+\"\\\" />\";}catch(e){}}","MGS_ThemeSettings/js/jquery.mb.YTPlayer.src.min.js":"if(typeof Object.create!==\"function\"){Object.create=function(obj){function F(){}\nF.prototype=obj;return new F();};}\n(function($,window,document){var\nloadAPI=function loadAPI(callback){var tag=document.createElement('script'),head=document.getElementsByTagName('head')[0];if(window.location.origin=='file://'){tag.src='http://www.youtube.com/iframe_api';}else{tag.src='//www.youtube.com/iframe_api';}\nhead.appendChild(tag);head=null;tag=null;iframeIsReady(callback);},iframeIsReady=function iframeIsReady(callback){if(typeof YT==='undefined'&&typeof window.loadingPlayer==='undefined'){window.loadingPlayer=true;window.dfd=$.Deferred();window.onYouTubeIframeAPIReady=function(){window.onYouTubeIframeAPIReady=null;window.dfd.resolve(\"done\");callback();};}else if(typeof YT==='object'){callback();}else{window.dfd.done(function(name){callback();});}};YTPlayer={player:null,defaults:{ratio:16 / 9,videoId:'LSmgKRx5pBo',mute:true,repeat:true,width:$(window).width(),playButtonClass:'YTPlayer-play',pauseButtonClass:'YTPlayer-pause',muteButtonClass:'YTPlayer-mute',volumeUpClass:'YTPlayer-volume-up',volumeDownClass:'YTPlayer-volume-down',start:0,pauseOnScroll:false,fitToBackground:true,playerVars:{iv_load_policy:3,modestbranding:1,autoplay:1,controls:0,showinfo:0,wmode:'opaque',branding:0,autohide:0},events:null},init:function init(node,userOptions){var self=this;self.userOptions=userOptions;self.$body=$('body'),self.$node=$(node),self.$window=$(window);self.defaults.events={'onReady':function(e){self.onPlayerReady(e);if(self.options.pauseOnScroll){self.pauseOnScroll();}\nif(typeof self.options.callback=='function'){self.options.callback.call(this);}},'onStateChange':function(e){if(e.data===1){self.$node.find('img').fadeOut(400);self.$node.addClass('loaded');}else if(e.data===0&&self.options.repeat){self.player.seekTo(self.options.start);}}}\nself.options=$.extend(true,{},self.defaults,self.userOptions);self.options.height=Math.ceil(self.options.width / self.options.ratio);self.ID=(new Date()).getTime();self.holderID='YTPlayer-ID-'+self.ID;if(self.options.fitToBackground){self.createBackgroundVideo();}else{self.createContainerVideo();}\nself.$window.on('resize.YTplayer'+self.ID,function(){self.resize(self);});loadAPI(self.onYouTubeIframeAPIReady.bind(self));self.resize(self);return self;},pauseOnScroll:function pauseOnScroll(){var self=this;self.$window.on('scroll.YTplayer'+self.ID,function(){var state=self.player.getPlayerState();if(state===1){self.player.pauseVideo();}});self.$window.scrollStopped(function(){var state=self.player.getPlayerState();if(state===2){self.player.playVideo();}});},createContainerVideo:function createContainerVideo(){var self=this;var $YTPlayerString=$('<div id=\"ytplayer-container'+self.ID+'\" >                                    <div id=\"'+self.holderID+'\" class=\"ytplayer-player-inline\"></div>                                     </div>                                     <div id=\"ytplayer-shield\" class=\"ytplayer-shield\"></div>');self.$node.append($YTPlayerString);self.$YTPlayerString=$YTPlayerString;$YTPlayerString=null;},createBackgroundVideo:function createBackgroundVideo(){var self=this,$YTPlayerString=$('<div id=\"ytplayer-container'+self.ID+'\" class=\"ytplayer-container background\">                                    <div id=\"'+self.holderID+'\" class=\"ytplayer-player\"></div>                                    </div>                                    <div id=\"ytplayer-shield\" class=\"ytplayer-shield\"></div>');self.$node.append($YTPlayerString);self.$YTPlayerString=$YTPlayerString;$YTPlayerString=null;},resize:function resize(self){var container=$(window);if(!self.options.fitToBackground){container=self.$node;}\nvar width=container.width(),pWidth,height=container.height(),pHeight,$YTPlayerPlayer=$('#'+self.holderID);if(width / self.options.ratio<height){pWidth=Math.ceil(height*self.options.ratio);$YTPlayerPlayer.width(pWidth).height(height).css({left:(width-pWidth)/ 2,top:0});}else{pHeight=Math.ceil(width / self.options.ratio);$YTPlayerPlayer.width(width).height(pHeight).css({left:0,top:(height-pHeight)/ 2});}\n$YTPlayerPlayer=null;container=null;},onYouTubeIframeAPIReady:function onYouTubeIframeAPIReady(){var self=this;self.player=new window.YT.Player(self.holderID,self.options);},onPlayerReady:function onPlayerReady(e){if(this.options.mute){e.target.mute();}\ne.target.playVideo();},getPlayer:function getPlayer(){return this.player;},destroy:function destroy(){var self=this;self.$node.removeData('yt-init').removeData('ytPlayer').removeClass('loaded');self.$YTPlayerString.remove();$(window).off('resize.YTplayer'+self.ID);$(window).off('scroll.YTplayer'+self.ID);self.$body=null;self.$node=null;self.$YTPlayerString=null;self.player.destroy();self.player=null;}};$.fn.scrollStopped=function(callback){var $this=$(this),self=this;$this.scroll(function(){if($this.data('scrollTimeout')){clearTimeout($this.data('scrollTimeout'));}\n$this.data('scrollTimeout',setTimeout(callback,250,self));});};$.fn.YTPlayer=function(options){return this.each(function(){var el=this;$(el).data(\"yt-init\",true);var player=Object.create(YTPlayer);player.init(el,options);$.data(el,\"ytPlayer\",player);});};})(jQuery,window,document);","MGS_ThemeSettings/js/lazysizes.min.js":"/*! lazysizes - v5.3.2 */\n\n!function(e){var t=function(u,D,f){\"use strict\";var k,H;if(function(){var e;var t={lazyClass:\"lazyload\",loadedClass:\"lazyloaded\",loadingClass:\"lazyloading\",preloadClass:\"lazypreload\",errorClass:\"lazyerror\",autosizesClass:\"lazyautosizes\",fastLoadedClass:\"ls-is-cached\",iframeLoadMode:0,srcAttr:\"data-src\",srcsetAttr:\"data-srcset\",sizesAttr:\"data-sizes\",minSize:40,customMedia:{},init:true,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:true,ricTimeout:0,throttleDelay:125};H=u.lazySizesConfig||u.lazysizesConfig||{};for(e in t){if(!(e in H)){H[e]=t[e]}}}(),!D||!D.getElementsByClassName){return{init:function(){},cfg:H,noSupport:true}}var O=D.documentElement,i=u.HTMLPictureElement,P=\"addEventListener\",$=\"getAttribute\",q=u[P].bind(u),I=u.setTimeout,U=u.requestAnimationFrame||I,o=u.requestIdleCallback,j=/^picture$/i,r=[\"load\",\"error\",\"lazyincluded\",\"_lazyloaded\"],a={},G=Array.prototype.forEach,J=function(e,t){if(!a[t]){a[t]=new RegExp(\"(\\\\s|^)\"+t+\"(\\\\s|$)\")}return a[t].test(e[$](\"class\")||\"\")&&a[t]},K=function(e,t){if(!J(e,t)){e.setAttribute(\"class\",(e[$](\"class\")||\"\").trim()+\" \"+t)}},Q=function(e,t){var a;if(a=J(e,t)){e.setAttribute(\"class\",(e[$](\"class\")||\"\").replace(a,\" \"))}},V=function(t,a,e){var i=e?P:\"removeEventListener\";if(e){V(t,a)}r.forEach(function(e){t[i](e,a)})},X=function(e,t,a,i,r){var n=D.createEvent(\"Event\");if(!a){a={}}a.instance=k;n.initEvent(t,!i,!r);n.detail=a;e.dispatchEvent(n);return n},Y=function(e,t){var a;if(!i&&(a=u.picturefill||H.pf)){if(t&&t.src&&!e[$](\"srcset\")){e.setAttribute(\"srcset\",t.src)}a({reevaluate:true,elements:[e]})}else if(t&&t.src){e.src=t.src}},Z=function(e,t){return(getComputedStyle(e,null)||{})[t]},s=function(e,t,a){a=a||e.offsetWidth;while(a<H.minSize&&t&&!e._lazysizesWidth){a=t.offsetWidth;t=t.parentNode}return a},ee=function(){var a,i;var t=[];var r=[];var n=t;var s=function(){var e=n;n=t.length?r:t;a=true;i=false;while(e.length){e.shift()()}a=false};var e=function(e,t){if(a&&!t){e.apply(this,arguments)}else{n.push(e);if(!i){i=true;(D.hidden?I:U)(s)}}};e._lsFlush=s;return e}(),te=function(a,e){return e?function(){ee(a)}:function(){var e=this;var t=arguments;ee(function(){a.apply(e,t)})}},ae=function(e){var a;var i=0;var r=H.throttleDelay;var n=H.ricTimeout;var t=function(){a=false;i=f.now();e()};var s=o&&n>49?function(){o(t,{timeout:n});if(n!==H.ricTimeout){n=H.ricTimeout}}:te(function(){I(t)},true);return function(e){var t;if(e=e===true){n=33}if(a){return}a=true;t=r-(f.now()-i);if(t<0){t=0}if(e||t<9){s()}else{I(s,t)}}},ie=function(e){var t,a;var i=99;var r=function(){t=null;e()};var n=function(){var e=f.now()-a;if(e<i){I(n,i-e)}else{(o||r)(r)}};return function(){a=f.now();if(!t){t=I(n,i)}}},e=function(){var v,m,c,h,e;var y,z,g,p,C,b,A;var n=/^img$/i;var d=/^iframe$/i;var E=\"onscroll\"in u&&!/(gle|ing)bot/.test(navigator.userAgent);var _=0;var w=0;var M=0;var N=-1;var L=function(e){M--;if(!e||M<0||!e.target){M=0}};var x=function(e){if(A==null){A=Z(D.body,\"visibility\")==\"hidden\"}return A||!(Z(e.parentNode,\"visibility\")==\"hidden\"&&Z(e,\"visibility\")==\"hidden\")};var W=function(e,t){var a;var i=e;var r=x(e);g-=t;b+=t;p-=t;C+=t;while(r&&(i=i.offsetParent)&&i!=D.body&&i!=O){r=(Z(i,\"opacity\")||1)>0;if(r&&Z(i,\"overflow\")!=\"visible\"){a=i.getBoundingClientRect();r=C>a.left&&p<a.right&&b>a.top-1&&g<a.bottom+1}}return r};var t=function(){var e,t,a,i,r,n,s,o,l,u,f,c;var d=k.elements;if((h=H.loadMode)&&M<8&&(e=d.length)){t=0;N++;for(;t<e;t++){if(!d[t]||d[t]._lazyRace){continue}if(!E||k.prematureUnveil&&k.prematureUnveil(d[t])){R(d[t]);continue}if(!(o=d[t][$](\"data-expand\"))||!(n=o*1)){n=w}if(!u){u=!H.expand||H.expand<1?O.clientHeight>500&&O.clientWidth>500?500:370:H.expand;k._defEx=u;f=u*H.expFactor;c=H.hFac;A=null;if(w<f&&M<1&&N>2&&h>2&&!D.hidden){w=f;N=0}else if(h>1&&N>1&&M<6){w=u}else{w=_}}if(l!==n){y=innerWidth+n*c;z=innerHeight+n;s=n*-1;l=n}a=d[t].getBoundingClientRect();if((b=a.bottom)>=s&&(g=a.top)<=z&&(C=a.right)>=s*c&&(p=a.left)<=y&&(b||C||p||g)&&(H.loadHidden||x(d[t]))&&(m&&M<3&&!o&&(h<3||N<4)||W(d[t],n))){R(d[t]);r=true;if(M>9){break}}else if(!r&&m&&!i&&M<4&&N<4&&h>2&&(v[0]||H.preloadAfterLoad)&&(v[0]||!o&&(b||C||p||g||d[t][$](H.sizesAttr)!=\"auto\"))){i=v[0]||d[t]}}if(i&&!r){R(i)}}};var a=ae(t);var S=function(e){var t=e.target;if(t._lazyCache){delete t._lazyCache;return}L(e);K(t,H.loadedClass);Q(t,H.loadingClass);V(t,B);X(t,\"lazyloaded\")};var i=te(S);var B=function(e){i({target:e.target})};var T=function(e,t){var a=e.getAttribute(\"data-load-mode\")||H.iframeLoadMode;if(a==0){e.contentWindow.location.replace(t)}else if(a==1){e.src=t}};var F=function(e){var t;var a=e[$](H.srcsetAttr);if(t=H.customMedia[e[$](\"data-media\")||e[$](\"media\")]){e.setAttribute(\"media\",t)}if(a){e.setAttribute(\"srcset\",a)}};var s=te(function(t,e,a,i,r){var n,s,o,l,u,f;if(!(u=X(t,\"lazybeforeunveil\",e)).defaultPrevented){if(i){if(a){K(t,H.autosizesClass)}else{t.setAttribute(\"sizes\",i)}}s=t[$](H.srcsetAttr);n=t[$](H.srcAttr);if(r){o=t.parentNode;l=o&&j.test(o.nodeName||\"\")}f=e.firesLoad||\"src\"in t&&(s||n||l);u={target:t};K(t,H.loadingClass);if(f){clearTimeout(c);c=I(L,2500);V(t,B,true)}if(l){G.call(o.getElementsByTagName(\"source\"),F)}if(s){t.setAttribute(\"srcset\",s)}else if(n&&!l){if(d.test(t.nodeName)){T(t,n)}else{t.src=n}}if(r&&(s||l)){Y(t,{src:n})}}if(t._lazyRace){delete t._lazyRace}Q(t,H.lazyClass);ee(function(){var e=t.complete&&t.naturalWidth>1;if(!f||e){if(e){K(t,H.fastLoadedClass)}S(u);t._lazyCache=true;I(function(){if(\"_lazyCache\"in t){delete t._lazyCache}},9)}if(t.loading==\"lazy\"){M--}},true)});var R=function(e){if(e._lazyRace){return}var t;var a=n.test(e.nodeName);var i=a&&(e[$](H.sizesAttr)||e[$](\"sizes\"));var r=i==\"auto\";if((r||!m)&&a&&(e[$](\"src\")||e.srcset)&&!e.complete&&!J(e,H.errorClass)&&J(e,H.lazyClass)){return}t=X(e,\"lazyunveilread\").detail;if(r){re.updateElem(e,true,e.offsetWidth)}e._lazyRace=true;M++;s(e,t,r,i,a)};var r=ie(function(){H.loadMode=3;a()});var o=function(){if(H.loadMode==3){H.loadMode=2}r()};var l=function(){if(m){return}if(f.now()-e<999){I(l,999);return}m=true;H.loadMode=3;a();q(\"scroll\",o,true)};return{_:function(){e=f.now();k.elements=D.getElementsByClassName(H.lazyClass);v=D.getElementsByClassName(H.lazyClass+\" \"+H.preloadClass);q(\"scroll\",a,true);q(\"resize\",a,true);q(\"pageshow\",function(e){if(e.persisted){var t=D.querySelectorAll(\".\"+H.loadingClass);if(t.length&&t.forEach){U(function(){t.forEach(function(e){if(e.complete){R(e)}})})}}});if(u.MutationObserver){new MutationObserver(a).observe(O,{childList:true,subtree:true,attributes:true})}else{O[P](\"DOMNodeInserted\",a,true);O[P](\"DOMAttrModified\",a,true);setInterval(a,999)}q(\"hashchange\",a,true);[\"focus\",\"mouseover\",\"click\",\"load\",\"transitionend\",\"animationend\"].forEach(function(e){D[P](e,a,true)});if(/d$|^c/.test(D.readyState)){l()}else{q(\"load\",l);D[P](\"DOMContentLoaded\",a);I(l,2e4)}if(k.elements.length){t();ee._lsFlush()}else{a()}},checkElems:a,unveil:R,_aLSL:o}}(),re=function(){var a;var n=te(function(e,t,a,i){var r,n,s;e._lazysizesWidth=i;i+=\"px\";e.setAttribute(\"sizes\",i);if(j.test(t.nodeName||\"\")){r=t.getElementsByTagName(\"source\");for(n=0,s=r.length;n<s;n++){r[n].setAttribute(\"sizes\",i)}}if(!a.detail.dataAttr){Y(e,a.detail)}});var i=function(e,t,a){var i;var r=e.parentNode;if(r){a=s(e,r,a);i=X(e,\"lazybeforesizes\",{width:a,dataAttr:!!t});if(!i.defaultPrevented){a=i.detail.width;if(a&&a!==e._lazysizesWidth){n(e,r,i,a)}}}};var e=function(){var e;var t=a.length;if(t){e=0;for(;e<t;e++){i(a[e])}}};var t=ie(e);return{_:function(){a=D.getElementsByClassName(H.autosizesClass);q(\"resize\",t)},checkElems:t,updateElem:i}}(),t=function(){if(!t.i&&D.getElementsByClassName){t.i=true;re._();e._()}};return I(function(){H.init&&t()}),k={cfg:H,autoSizer:re,loader:e,init:t,uP:Y,aC:K,rC:Q,hC:J,fire:X,gW:s,rAF:ee}}(e,e.document,Date);e.lazySizes=t,\"object\"==typeof module&&module.exports&&(module.exports=t)}(\"undefined\"!=typeof window?window:{});\n","MGS_ThemeSettings/js/masonryChangeRow.pkgd.min.js":"/*!\n * Masonry PACKAGED v4.2.2\n * Cascading grid layout library\n * https://masonry.desandro.com\n * MIT License\n * by David DeSandro\n */\n(function(window,factory){if(typeof define=='function'&&define.amd){define('jquery-bridget/jquery-bridget',['jquery'],function(jQuery){return factory(window,jQuery);});}else if(typeof module=='object'&&module.exports){module.exports=factory(window,require('jquery'));}else{window.jQueryBridget=factory(window,window.jQuery);}}(window,function factory(window,jQuery){'use strict';var arraySlice=Array.prototype.slice;var console=window.console;var logError=typeof console=='undefined'?function(){}:function(message){console.error(message);};function jQueryBridget(namespace,PluginClass,$){$=$||jQuery||window.jQuery;if(!$){return;}\nif(!PluginClass.prototype.option){PluginClass.prototype.option=function(opts){if(!$.isPlainObject(opts)){return;}\nthis.options=$.extend(true,this.options,opts);};}\n$.fn[namespace]=function(arg0){if(typeof arg0=='string'){var args=arraySlice.call(arguments,1);return methodCall(this,arg0,args);}\nplainCall(this,arg0);return this;};function methodCall($elems,methodName,args){var returnValue;var pluginMethodStr='$().'+namespace+'(\"'+methodName+'\")';$elems.each(function(i,elem){var instance=$.data(elem,namespace);if(!instance){logError(namespace+' not initialized. Cannot call methods, i.e. '+\npluginMethodStr);return;}\nvar method=instance[methodName];if(!method||methodName.charAt(0)=='_'){logError(pluginMethodStr+' is not a valid method');return;}\nvar value=method.apply(instance,args);returnValue=returnValue===undefined?value:returnValue;});return returnValue!==undefined?returnValue:$elems;}\nfunction plainCall($elems,options){$elems.each(function(i,elem){var instance=$.data(elem,namespace);if(instance){instance.option(options);instance._init();}else{instance=new PluginClass(elem,options);$.data(elem,namespace,instance);}});}\nupdateJQuery($);}\nfunction updateJQuery($){if(!$||($&&$.bridget)){return;}\n$.bridget=jQueryBridget;}\nupdateJQuery(jQuery||window.jQuery);return jQueryBridget;}));(function(global,factory){if(typeof define=='function'&&define.amd){define('ev-emitter/ev-emitter',factory);}else if(typeof module=='object'&&module.exports){module.exports=factory();}else{global.EvEmitter=factory();}}(typeof window!='undefined'?window:this,function(){function EvEmitter(){}\nvar proto=EvEmitter.prototype;proto.on=function(eventName,listener){if(!eventName||!listener){return;}\nvar events=this._events=this._events||{};var listeners=events[eventName]=events[eventName]||[];if(listeners.indexOf(listener)==-1){listeners.push(listener);}\nreturn this;};proto.once=function(eventName,listener){if(!eventName||!listener){return;}\nthis.on(eventName,listener);var onceEvents=this._onceEvents=this._onceEvents||{};var onceListeners=onceEvents[eventName]=onceEvents[eventName]||{};onceListeners[listener]=true;return this;};proto.off=function(eventName,listener){var listeners=this._events&&this._events[eventName];if(!listeners||!listeners.length){return;}\nvar index=listeners.indexOf(listener);if(index!=-1){listeners.splice(index,1);}\nreturn this;};proto.emitEvent=function(eventName,args){var listeners=this._events&&this._events[eventName];if(!listeners||!listeners.length){return;}\nlisteners=listeners.slice(0);args=args||[];var onceListeners=this._onceEvents&&this._onceEvents[eventName];for(var i=0;i<listeners.length;i++){var listener=listeners[i]\nvar isOnce=onceListeners&&onceListeners[listener];if(isOnce){this.off(eventName,listener);delete onceListeners[listener];}\nlistener.apply(this,args);}\nreturn this;};proto.allOff=function(){delete this._events;delete this._onceEvents;};return EvEmitter;}));\n/*!\n * getSize v2.0.3\n * measure size of elements\n * MIT license\n */\n(function(window,factory){if(typeof define=='function'&&define.amd){define('get-size/get-size',factory);}else if(typeof module=='object'&&module.exports){module.exports=factory();}else{window.getSize=factory();}})(window,function factory(){'use strict';function getStyleSize(value){var num=parseFloat(value);var isValid=value.indexOf('%')==-1&&!isNaN(num);return isValid&&num;}\nfunction noop(){}\nvar logError=typeof console=='undefined'?noop:function(message){console.error(message);};var measurements=['paddingLeft','paddingRight','paddingTop','paddingBottom','marginLeft','marginRight','marginTop','marginBottom','borderLeftWidth','borderRightWidth','borderTopWidth','borderBottomWidth'];var measurementsLength=measurements.length;function getZeroSize(){var size={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0};for(var i=0;i<measurementsLength;i++){var measurement=measurements[i];size[measurement]=0;}\nreturn size;}\nfunction getStyle(elem){var style=getComputedStyle(elem);if(!style){logError('Style returned '+style+'. Are you running this code in a hidden iframe on Firefox? '+'See https://bit.ly/getsizebug1');}\nreturn style;}\nvar isSetup=false;var isBoxSizeOuter;function setup(){if(isSetup){return;}\nisSetup=true;var div=document.createElement('div');div.style.width='200px';div.style.padding='1px 2px 3px 4px';div.style.borderStyle='solid';div.style.borderWidth='1px 2px 3px 4px';div.style.boxSizing='border-box';var body=document.body||document.documentElement;body.appendChild(div);var style=getStyle(div);isBoxSizeOuter=Math.round(getStyleSize(style.width))==200;getSize.isBoxSizeOuter=isBoxSizeOuter;body.removeChild(div);}\nfunction getSize(elem){setup();if(typeof elem=='string'){elem=document.querySelector(elem);}\nif(!elem||typeof elem!='object'||!elem.nodeType){return;}\nvar style=getStyle(elem);if(style.display=='none'){return getZeroSize();}\nvar size={};size.width=elem.offsetWidth;size.height=elem.offsetHeight;var isBorderBox=size.isBorderBox=style.boxSizing=='border-box';for(var i=0;i<measurementsLength;i++){var measurement=measurements[i];var value=style[measurement];var num=parseFloat(value);size[measurement]=!isNaN(num)?num:0;}\nvar paddingWidth=size.paddingLeft+size.paddingRight;var paddingHeight=size.paddingTop+size.paddingBottom;var marginWidth=size.marginLeft+size.marginRight;var marginHeight=size.marginTop+size.marginBottom;var borderWidth=size.borderLeftWidth+size.borderRightWidth;var borderHeight=size.borderTopWidth+size.borderBottomWidth;var isBorderBoxSizeOuter=isBorderBox&&isBoxSizeOuter;var styleWidth=getStyleSize(style.width);if(styleWidth!==false){size.width=styleWidth+\n(isBorderBoxSizeOuter?0:paddingWidth+borderWidth);}\nvar styleHeight=getStyleSize(style.height);if(styleHeight!==false){size.height=styleHeight+\n(isBorderBoxSizeOuter?0:paddingHeight+borderHeight);}\nsize.innerWidth=size.width-(paddingWidth+borderWidth);size.innerHeight=size.height-(paddingHeight+borderHeight);size.outerWidth=size.width+marginWidth;size.outerHeight=size.height+marginHeight;return size;}\nreturn getSize;});(function(window,factory){'use strict';if(typeof define=='function'&&define.amd){define('desandro-matches-selector/matches-selector',factory);}else if(typeof module=='object'&&module.exports){module.exports=factory();}else{window.matchesSelector=factory();}}(window,function factory(){'use strict';var matchesMethod=(function(){var ElemProto=window.Element.prototype;if(ElemProto.matches){return'matches';}\nif(ElemProto.matchesSelector){return'matchesSelector';}\nvar prefixes=['webkit','moz','ms','o'];for(var i=0;i<prefixes.length;i++){var prefix=prefixes[i];var method=prefix+'MatchesSelector';if(ElemProto[method]){return method;}}})();return function matchesSelector(elem,selector){return elem[matchesMethod](selector);};}));(function(window,factory){if(typeof define=='function'&&define.amd){define('fizzy-ui-utils/utils',['desandro-matches-selector/matches-selector'],function(matchesSelector){return factory(window,matchesSelector);});}else if(typeof module=='object'&&module.exports){module.exports=factory(window,require('desandro-matches-selector'));}else{window.fizzyUIUtils=factory(window,window.matchesSelector);}}(window,function factory(window,matchesSelector){var utils={};utils.extend=function(a,b){for(var prop in b){a[prop]=b[prop];}\nreturn a;};utils.modulo=function(num,div){return((num%div)+div)%div;};var arraySlice=Array.prototype.slice;utils.makeArray=function(obj){if(Array.isArray(obj)){return obj;}\nif(obj===null||obj===undefined){return[];}\nvar isArrayLike=typeof obj=='object'&&typeof obj.length=='number';if(isArrayLike){return arraySlice.call(obj);}\nreturn[obj];};utils.removeFrom=function(ary,obj){var index=ary.indexOf(obj);if(index!=-1){ary.splice(index,1);}};utils.getParent=function(elem,selector){while(elem.parentNode&&elem!=document.body){elem=elem.parentNode;if(matchesSelector(elem,selector)){return elem;}}};utils.getQueryElement=function(elem){if(typeof elem=='string'){return document.querySelector(elem);}\nreturn elem;};utils.handleEvent=function(event){var method='on'+event.type;if(this[method]){this[method](event);}};utils.filterFindElements=function(elems,selector){elems=utils.makeArray(elems);var ffElems=[];elems.forEach(function(elem){if(!(elem instanceof HTMLElement)){return;}\nif(!selector){ffElems.push(elem);return;}\nif(matchesSelector(elem,selector)){ffElems.push(elem);}\nvar childElems=elem.querySelectorAll(selector);for(var i=0;i<childElems.length;i++){ffElems.push(childElems[i]);}});return ffElems;};utils.debounceMethod=function(_class,methodName,threshold){threshold=threshold||100;var method=_class.prototype[methodName];var timeoutName=methodName+'Timeout';_class.prototype[methodName]=function(){var timeout=this[timeoutName];clearTimeout(timeout);var args=arguments;var _this=this;this[timeoutName]=setTimeout(function(){method.apply(_this,args);delete _this[timeoutName];},threshold);};};utils.docReady=function(callback){var readyState=document.readyState;if(readyState=='complete'||readyState=='interactive'){setTimeout(callback);}else{document.addEventListener('DOMContentLoaded',callback);}};utils.toDashed=function(str){return str.replace(/(.)([A-Z])/g,function(match,$1,$2){return $1+'-'+$2;}).toLowerCase();};var console=window.console;utils.htmlInit=function(WidgetClass,namespace){utils.docReady(function(){var dashedNamespace=utils.toDashed(namespace);var dataAttr='data-'+dashedNamespace;var dataAttrElems=document.querySelectorAll('['+dataAttr+']');var jsDashElems=document.querySelectorAll('.js-'+dashedNamespace);var elems=utils.makeArray(dataAttrElems).concat(utils.makeArray(jsDashElems));var dataOptionsAttr=dataAttr+'-options';var jQuery=window.jQuery;elems.forEach(function(elem){var attr=elem.getAttribute(dataAttr)||elem.getAttribute(dataOptionsAttr);var options;try{options=attr&&JSON.parse(attr);}catch(error){if(console){console.error('Error parsing '+dataAttr+' on '+elem.className+': '+error);}\nreturn;}\nvar instance=new WidgetClass(elem,options);if(jQuery){jQuery.data(elem,namespace,instance);}});});};return utils;}));(function(window,factory){if(typeof define=='function'&&define.amd){define('outlayer/item',['ev-emitter/ev-emitter','get-size/get-size'],factory);}else if(typeof module=='object'&&module.exports){module.exports=factory(require('ev-emitter'),require('get-size'));}else{window.Outlayer={};window.Outlayer.Item=factory(window.EvEmitter,window.getSize);}}(window,function factory(EvEmitter,getSize){'use strict';function isEmptyObj(obj){for(var prop in obj){return false;}\nprop=null;return true;}\nvar docElemStyle=document.documentElement.style;var transitionProperty=typeof docElemStyle.transition=='string'?'transition':'WebkitTransition';var transformProperty=typeof docElemStyle.transform=='string'?'transform':'WebkitTransform';var transitionEndEvent={WebkitTransition:'webkitTransitionEnd',transition:'transitionend'}[transitionProperty];var vendorProperties={transform:transformProperty,transition:transitionProperty,transitionDuration:transitionProperty+'Duration',transitionProperty:transitionProperty+'Property',transitionDelay:transitionProperty+'Delay'};function Item(element,layout){if(!element){return;}\nthis.element=element;this.layout=layout;this.position={x:0,y:0};this._create();}\nvar proto=Item.prototype=Object.create(EvEmitter.prototype);proto.constructor=Item;proto._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}};this.css({position:'absolute'});};proto.handleEvent=function(event){var method='on'+event.type;if(this[method]){this[method](event);}};proto.getSize=function(){this.size=getSize(this.element);};proto.css=function(style){var elemStyle=this.element.style;for(var prop in style){var supportedProp=vendorProperties[prop]||prop;elemStyle[supportedProp]=style[prop];}};proto.getPosition=function(){var style=getComputedStyle(this.element);var isOriginLeft=this.layout._getOption('originLeft');var isOriginTop=this.layout._getOption('originTop');var xValue=style[isOriginLeft?'left':'right'];var yValue=style[isOriginTop?'top':'bottom'];var x=parseFloat(xValue);var y=parseFloat(yValue);var layoutSize=this.layout.size;if(xValue.indexOf('%')!=-1){x=(x / 100)*layoutSize.width;}\nif(yValue.indexOf('%')!=-1){y=(y / 100)*layoutSize.height;}\nx=isNaN(x)?0:x;y=isNaN(y)?0:y;x-=isOriginLeft?layoutSize.paddingLeft:layoutSize.paddingRight;y-=isOriginTop?layoutSize.paddingTop:layoutSize.paddingBottom;this.position.x=x;this.position.y=y;};proto.layoutPosition=function(){var layoutSize=this.layout.size;var style={};var isOriginLeft=this.layout._getOption('originLeft');var isOriginTop=this.layout._getOption('originTop');var xPadding=isOriginLeft?'paddingLeft':'paddingRight';var xProperty=isOriginLeft?'left':'right';var xResetProperty=isOriginLeft?'right':'left';var x=this.position.x+layoutSize[xPadding];style[xProperty]=this.getXValue(x);style[xResetProperty]='';var yPadding=isOriginTop?'paddingTop':'paddingBottom';var yProperty=isOriginTop?'top':'bottom';var yResetProperty=isOriginTop?'bottom':'top';var y=this.position.y+layoutSize[yPadding];style[yProperty]=this.getYValue(y);style[yResetProperty]='';this.css(style);this.emitEvent('layout',[this]);};proto.getXValue=function(x){var isHorizontal=this.layout._getOption('horizontal');return this.layout.options.percentPosition&&!isHorizontal?((x / this.layout.size.width)*100)+'%':x+'px';};proto.getYValue=function(y){var isHorizontal=this.layout._getOption('horizontal');return this.layout.options.percentPosition&&isHorizontal?((y / this.layout.size.height)*100)+'%':y+'px';};proto._transitionTo=function(x,y){this.getPosition();var curX=this.position.x;var curY=this.position.y;var didNotMove=x==this.position.x&&y==this.position.y;this.setPosition(x,y);if(didNotMove&&!this.isTransitioning){this.layoutPosition();return;}\nvar transX=x-curX;var transY=y-curY;var transitionStyle={};transitionStyle.transform=this.getTranslate(transX,transY);this.transition({to:transitionStyle,onTransitionEnd:{transform:this.layoutPosition},isCleaning:true});};proto.getTranslate=function(x,y){var isOriginLeft=this.layout._getOption('originLeft');var isOriginTop=this.layout._getOption('originTop');x=isOriginLeft?x:-x;y=isOriginTop?y:-y;return'translate3d('+x+'px, '+y+'px, 0)';};proto.goTo=function(x,y){this.setPosition(x,y);this.layoutPosition();};proto.moveTo=proto._transitionTo;proto.setPosition=function(x,y){this.position.x=parseFloat(x);this.position.y=parseFloat(y);};proto._nonTransition=function(args){this.css(args.to);if(args.isCleaning){this._removeStyles(args.to);}\nfor(var prop in args.onTransitionEnd){args.onTransitionEnd[prop].call(this);}};proto.transition=function(args){if(!parseFloat(this.layout.options.transitionDuration)){this._nonTransition(args);return;}\nvar _transition=this._transn;for(var prop in args.onTransitionEnd){_transition.onEnd[prop]=args.onTransitionEnd[prop];}\nfor(prop in args.to){_transition.ingProperties[prop]=true;if(args.isCleaning){_transition.clean[prop]=true;}}\nif(args.from){this.css(args.from);var h=this.element.offsetHeight;h=null;}\nthis.enableTransition(args.to);this.css(args.to);this.isTransitioning=true;};function toDashedAll(str){return str.replace(/([A-Z])/g,function($1){return'-'+$1.toLowerCase();});}\nvar transitionProps='opacity,'+toDashedAll(transformProperty);proto.enableTransition=function(){if(this.isTransitioning){return;}\nvar duration=this.layout.options.transitionDuration;duration=typeof duration=='number'?duration+'ms':duration;this.css({transitionProperty:transitionProps,transitionDuration:duration,transitionDelay:this.staggerDelay||0});this.element.addEventListener(transitionEndEvent,this,false);};proto.onwebkitTransitionEnd=function(event){this.ontransitionend(event);};proto.onotransitionend=function(event){this.ontransitionend(event);};var dashedVendorProperties={'-webkit-transform':'transform'};proto.ontransitionend=function(event){if(event.target!==this.element){return;}\nvar _transition=this._transn;var propertyName=dashedVendorProperties[event.propertyName]||event.propertyName;delete _transition.ingProperties[propertyName];if(isEmptyObj(_transition.ingProperties)){this.disableTransition();}\nif(propertyName in _transition.clean){this.element.style[event.propertyName]='';delete _transition.clean[propertyName];}\nif(propertyName in _transition.onEnd){var onTransitionEnd=_transition.onEnd[propertyName];onTransitionEnd.call(this);delete _transition.onEnd[propertyName];}\nthis.emitEvent('transitionEnd',[this]);};proto.disableTransition=function(){this.removeTransitionStyles();this.element.removeEventListener(transitionEndEvent,this,false);this.isTransitioning=false;};proto._removeStyles=function(style){var cleanStyle={};for(var prop in style){cleanStyle[prop]='';}\nthis.css(cleanStyle);};var cleanTransitionStyle={transitionProperty:'',transitionDuration:'',transitionDelay:''};proto.removeTransitionStyles=function(){this.css(cleanTransitionStyle);};proto.stagger=function(delay){delay=isNaN(delay)?0:delay;this.staggerDelay=delay+'ms';};proto.removeElem=function(){this.element.parentNode.removeChild(this.element);this.css({display:''});this.emitEvent('remove',[this]);};proto.remove=function(){if(!transitionProperty||!parseFloat(this.layout.options.transitionDuration)){this.removeElem();return;}\nthis.once('transitionEnd',function(){this.removeElem();});this.hide();};proto.reveal=function(){delete this.isHidden;this.css({display:''});var options=this.layout.options;var onTransitionEnd={};var transitionEndProperty=this.getHideRevealTransitionEndProperty('visibleStyle');onTransitionEnd[transitionEndProperty]=this.onRevealTransitionEnd;this.transition({from:options.hiddenStyle,to:options.visibleStyle,isCleaning:true,onTransitionEnd:onTransitionEnd});};proto.onRevealTransitionEnd=function(){if(!this.isHidden){this.emitEvent('reveal');}};proto.getHideRevealTransitionEndProperty=function(styleProperty){var optionStyle=this.layout.options[styleProperty];if(optionStyle.opacity){return'opacity';}\nfor(var prop in optionStyle){return prop;}};proto.hide=function(){this.isHidden=true;this.css({display:''});var options=this.layout.options;var onTransitionEnd={};var transitionEndProperty=this.getHideRevealTransitionEndProperty('hiddenStyle');onTransitionEnd[transitionEndProperty]=this.onHideTransitionEnd;this.transition({from:options.visibleStyle,to:options.hiddenStyle,isCleaning:true,onTransitionEnd:onTransitionEnd});};proto.onHideTransitionEnd=function(){if(this.isHidden){this.css({display:'none'});this.emitEvent('hide');}};proto.destroy=function(){this.css({position:'',left:'',right:'',top:'',bottom:'',transition:'',transform:''});};return Item;}));\n/*!\n * Outlayer v2.1.1\n * the brains and guts of a layout library\n * MIT license\n */\n(function(window,factory){'use strict';if(typeof define=='function'&&define.amd){define('outlayer/outlayer',['ev-emitter/ev-emitter','get-size/get-size','fizzy-ui-utils/utils','./item'],function(EvEmitter,getSize,utils,Item){return factory(window,EvEmitter,getSize,utils,Item);});}else if(typeof module=='object'&&module.exports){module.exports=factory(window,require('ev-emitter'),require('get-size'),require('fizzy-ui-utils'),require('./item'));}else{window.Outlayer=factory(window,window.EvEmitter,window.getSize,window.fizzyUIUtils,window.Outlayer.Item);}}(window,function factory(window,EvEmitter,getSize,utils,Item){'use strict';var console=window.console;var jQuery=window.jQuery;var noop=function(){};var GUID=0;var instances={};function Outlayer(element,options){var queryElement=utils.getQueryElement(element);if(!queryElement){if(console){console.error('Bad element for '+this.constructor.namespace+': '+(queryElement||element));}\nreturn;}\nthis.element=queryElement;if(jQuery){this.$element=jQuery(this.element);}\nthis.options=utils.extend({},this.constructor.defaults);this.option(options);var id=++GUID;this.element.outlayerGUID=id;instances[id]=this;this._create();var isInitLayout=this._getOption('initLayout');if(isInitLayout){this.layout();}}\nOutlayer.namespace='outlayer';Outlayer.Item=Item;Outlayer.defaults={containerStyle:{position:'relative'},initLayout:true,originLeft:true,originTop:true,resize:true,resizeContainer:true,transitionDuration:'0.4s',hiddenStyle:{opacity:0,transform:'scale(0.001)'},visibleStyle:{opacity:1,transform:'scale(1)'}};var proto=Outlayer.prototype;utils.extend(proto,EvEmitter.prototype);proto.option=function(opts){utils.extend(this.options,opts);};proto._getOption=function(option){var oldOption=this.constructor.compatOptions[option];return oldOption&&this.options[oldOption]!==undefined?this.options[oldOption]:this.options[option];};Outlayer.compatOptions={initLayout:'isInitLayout',horizontal:'isHorizontal',layoutInstant:'isLayoutInstant',originLeft:'isOriginLeft',originTop:'isOriginTop',resize:'isResizeBound',resizeContainer:'isResizingContainer'};proto._create=function(){this.reloadItems();this.stamps=[];this.stamp(this.options.stamp);utils.extend(this.element.style,this.options.containerStyle);var canBindResize=this._getOption('resize');if(canBindResize){this.bindResize();}};proto.reloadItems=function(){this.items=this._itemize(this.element.children);};proto._itemize=function(elems){var itemElems=this._filterFindItemElements(elems);var Item=this.constructor.Item;var items=[];for(var i=0;i<itemElems.length;i++){var elem=itemElems[i];var item=new Item(elem,this);items.push(item);}\nreturn items;};proto._filterFindItemElements=function(elems){return utils.filterFindElements(elems,this.options.itemSelector);};proto.getItemElements=function(){return this.items.map(function(item){return item.element;});};proto.layout=function(){this._resetLayout();this._manageStamps();var layoutInstant=this._getOption('layoutInstant');var isInstant=layoutInstant!==undefined?layoutInstant:!this._isLayoutInited;this.layoutItems(this.items,isInstant);this._isLayoutInited=true;};proto._init=proto.layout;proto._resetLayout=function(){this.getSize();};proto.getSize=function(){this.size=getSize(this.element);};proto._getMeasurement=function(measurement,size){var option=this.options[measurement];var elem;if(!option){this[measurement]=0;}else{if(typeof option=='string'){elem=this.element.querySelector(option);}else if(option instanceof HTMLElement){elem=option;}\nthis[measurement]=elem?getSize(elem)[size]:option;}};proto.layoutItems=function(items,isInstant){items=this._getItemsForLayout(items);this._layoutItems(items,isInstant);this._postLayout();};proto._getItemsForLayout=function(items){return items.filter(function(item){return!item.isIgnored;});};proto._layoutItems=function(items,isInstant){this._emitCompleteOnItems('layout',items);if(!items||!items.length){return;}\nvar queue=[];var maxHeight=0;items.forEach(function(item){var positionResult=this._getItemLayoutPosition(item,maxHeight);var position=positionResult.position;maxHeight=positionResult.maxHeight;position.item=item;position.isInstant=isInstant||item.isLayoutInstant;queue.push(position);},this);this._processLayoutQueue(queue);};proto._getItemLayoutPosition=function(){return{x:0,y:0};};proto._processLayoutQueue=function(queue){this.updateStagger();queue.forEach(function(obj,i){this._positionItem(obj.item,obj.x,obj.y,obj.isInstant,i);},this);};proto.updateStagger=function(){var stagger=this.options.stagger;if(stagger===null||stagger===undefined){this.stagger=0;return;}\nthis.stagger=getMilliseconds(stagger);return this.stagger;};proto._positionItem=function(item,x,y,isInstant,i){if(isInstant){item.goTo(x,y);}else{item.stagger(i*this.stagger);item.moveTo(x,y);}};proto._postLayout=function(){this.resizeContainer();};proto.resizeContainer=function(){var isResizingContainer=this._getOption('resizeContainer');if(!isResizingContainer){return;}\nvar size=this._getContainerSize();if(size){this._setContainerMeasure(size.width,true);this._setContainerMeasure(size.height,false);}};proto._getContainerSize=noop;proto._setContainerMeasure=function(measure,isWidth){if(measure===undefined){return;}\nvar elemSize=this.size;if(elemSize.isBorderBox){measure+=isWidth?elemSize.paddingLeft+elemSize.paddingRight+\nelemSize.borderLeftWidth+elemSize.borderRightWidth:elemSize.paddingBottom+elemSize.paddingTop+\nelemSize.borderTopWidth+elemSize.borderBottomWidth;}\nmeasure=Math.max(measure,0);this.element.style[isWidth?'width':'height']=measure+'px';};proto._emitCompleteOnItems=function(eventName,items){var _this=this;function onComplete(){_this.dispatchEvent(eventName+'Complete',null,[items]);}\nvar count=items.length;if(!items||!count){onComplete();return;}\nvar doneCount=0;function tick(){doneCount++;if(doneCount==count){onComplete();}}\nitems.forEach(function(item){item.once(eventName,tick);});};proto.dispatchEvent=function(type,event,args){var emitArgs=event?[event].concat(args):args;this.emitEvent(type,emitArgs);if(jQuery){this.$element=this.$element||jQuery(this.element);if(event){var $event=jQuery.Event(event);$event.type=type;this.$element.trigger($event,args);}else{this.$element.trigger(type,args);}}};proto.ignore=function(elem){var item=this.getItem(elem);if(item){item.isIgnored=true;}};proto.unignore=function(elem){var item=this.getItem(elem);if(item){delete item.isIgnored;}};proto.stamp=function(elems){elems=this._find(elems);if(!elems){return;}\nthis.stamps=this.stamps.concat(elems);elems.forEach(this.ignore,this);};proto.unstamp=function(elems){elems=this._find(elems);if(!elems){return;}\nelems.forEach(function(elem){utils.removeFrom(this.stamps,elem);this.unignore(elem);},this);};proto._find=function(elems){if(!elems){return;}\nif(typeof elems=='string'){elems=this.element.querySelectorAll(elems);}\nelems=utils.makeArray(elems);return elems;};proto._manageStamps=function(){if(!this.stamps||!this.stamps.length){return;}\nthis._getBoundingRect();this.stamps.forEach(this._manageStamp,this);};proto._getBoundingRect=function(){var boundingRect=this.element.getBoundingClientRect();var size=this.size;this._boundingRect={left:boundingRect.left+size.paddingLeft+size.borderLeftWidth,top:boundingRect.top+size.paddingTop+size.borderTopWidth,right:boundingRect.right-(size.paddingRight+size.borderRightWidth),bottom:boundingRect.bottom-(size.paddingBottom+size.borderBottomWidth)};};proto._manageStamp=noop;proto._getElementOffset=function(elem){var boundingRect=elem.getBoundingClientRect();var thisRect=this._boundingRect;var size=getSize(elem);var offset={left:boundingRect.left-thisRect.left-size.marginLeft,top:boundingRect.top-thisRect.top-size.marginTop,right:thisRect.right-boundingRect.right-size.marginRight,bottom:thisRect.bottom-boundingRect.bottom-size.marginBottom};return offset;};proto.handleEvent=utils.handleEvent;proto.bindResize=function(){window.addEventListener('resize',this);this.isResizeBound=true;};proto.unbindResize=function(){window.removeEventListener('resize',this);this.isResizeBound=false;};proto.onresize=function(){this.resize();};utils.debounceMethod(Outlayer,'onresize',100);proto.resize=function(){if(!this.isResizeBound||!this.needsResizeLayout()){return;}\nthis.layout();};proto.needsResizeLayout=function(){var size=getSize(this.element);var hasSizes=this.size&&size;return hasSizes&&size.innerWidth!==this.size.innerWidth;};proto.addItems=function(elems){var items=this._itemize(elems);if(items.length){this.items=this.items.concat(items);}\nreturn items;};proto.appended=function(elems){var items=this.addItems(elems);if(!items.length){return;}\nthis.layoutItems(items,true);this.reveal(items);};proto.prepended=function(elems){var items=this._itemize(elems);if(!items.length){return;}\nvar previousItems=this.items.slice(0);this.items=items.concat(previousItems);this._resetLayout();this._manageStamps();this.layoutItems(items,true);this.reveal(items);this.layoutItems(previousItems);};proto.reveal=function(items){this._emitCompleteOnItems('reveal',items);if(!items||!items.length){return;}\nvar stagger=this.updateStagger();items.forEach(function(item,i){item.stagger(i*stagger);item.reveal();});};proto.hide=function(items){this._emitCompleteOnItems('hide',items);if(!items||!items.length){return;}\nvar stagger=this.updateStagger();items.forEach(function(item,i){item.stagger(i*stagger);item.hide();});};proto.revealItemElements=function(elems){var items=this.getItems(elems);this.reveal(items);};proto.hideItemElements=function(elems){var items=this.getItems(elems);this.hide(items);};proto.getItem=function(elem){for(var i=0;i<this.items.length;i++){var item=this.items[i];if(item.element==elem){return item;}}};proto.getItems=function(elems){elems=utils.makeArray(elems);var items=[];elems.forEach(function(elem){var item=this.getItem(elem);if(item){items.push(item);}},this);return items;};proto.remove=function(elems){var removeItems=this.getItems(elems);this._emitCompleteOnItems('remove',removeItems);if(!removeItems||!removeItems.length){return;}\nremoveItems.forEach(function(item){item.remove();utils.removeFrom(this.items,item);},this);};proto.destroy=function(){var style=this.element.style;style.height='';style.position='';style.width='';this.items.forEach(function(item){item.destroy();});this.unbindResize();var id=this.element.outlayerGUID;delete instances[id];delete this.element.outlayerGUID;if(jQuery){jQuery.removeData(this.element,this.constructor.namespace);}};Outlayer.data=function(elem){elem=utils.getQueryElement(elem);var id=elem&&elem.outlayerGUID;return id&&instances[id];};Outlayer.create=function(namespace,options){var Layout=subclass(Outlayer);Layout.defaults=utils.extend({},Outlayer.defaults);utils.extend(Layout.defaults,options);Layout.compatOptions=utils.extend({},Outlayer.compatOptions);Layout.namespace=namespace;Layout.data=Outlayer.data;Layout.Item=subclass(Item);utils.htmlInit(Layout,namespace);if(jQuery&&jQuery.bridget){jQuery.bridget(namespace,Layout);}\nreturn Layout;};function subclass(Parent){function SubClass(){Parent.apply(this,arguments);}\nSubClass.prototype=Object.create(Parent.prototype);SubClass.prototype.constructor=SubClass;return SubClass;}\nvar msUnits={ms:1,s:1000};function getMilliseconds(time){if(typeof time=='number'){return time;}\nvar matches=time.match(/(^\\d*\\.?\\d*)(\\w*)/);var num=matches&&matches[1];var unit=matches&&matches[2];if(!num.length){return 0;}\nnum=parseFloat(num);var mult=msUnits[unit]||1;return num*mult;}\nOutlayer.Item=Item;return Outlayer;}));\n/*!\n * Masonry v4.2.2\n * Cascading grid layout library\n * https://masonry.desandro.com\n * MIT License\n * by David DeSandro\n */\n(function(window,factory){if(typeof define=='function'&&define.amd){define(['outlayer/outlayer','get-size/get-size'],factory);}else if(typeof module=='object'&&module.exports){module.exports=factory(require('outlayer'),require('get-size'));}else{window.Masonry=factory(window.Outlayer,window.getSize);}}(window,function factory(Outlayer,getSize){var Masonry=Outlayer.create('masonry');Masonry.compatOptions.fitWidth='isFitWidth';var proto=Masonry.prototype;proto._resetLayout=function(){this.getSize();this._getMeasurement('columnWidth','outerWidth');this._getMeasurement('gutter','outerWidth');this.measureColumns();this.colYs=[];for(var i=0;i<this.cols;i++){this.colYs.push(0);}\nthis.maxY=0;this.horizontalColIndex=0;};proto.measureColumns=function(){this.getContainerWidth();if(!this.columnWidth){var firstItem=this.items[0];var firstItemElem=firstItem&&firstItem.element;this.columnWidth=firstItemElem&&getSize(firstItemElem).outerWidth||this.containerWidth;}\nvar columnWidth=this.columnWidth+=this.gutter;var containerWidth=this.containerWidth+this.gutter;var cols=containerWidth / columnWidth;var excess=columnWidth-containerWidth%columnWidth;var mathMethod=excess&&excess<1?'round':'floor';cols=Math[mathMethod](cols);this.cols=Math.max(cols,1);};proto.getContainerWidth=function(){var isFitWidth=this._getOption('fitWidth');var container=isFitWidth?this.element.parentNode:this.element;var size=getSize(container);this.containerWidth=size&&size.innerWidth;};proto._getItemLayoutPosition=function(item,maxHeight){item.getSize();var remainder=item.size.outerWidth%this.columnWidth;var mathMethod=remainder&&remainder<1?'round':'ceil';var colSpan=Math[mathMethod](item.size.outerWidth / this.columnWidth);colSpan=Math.min(colSpan,this.cols);var colPosMethod=this.options.horizontalOrder?'_getHorizontalColPosition':'_getTopColPosition';var colPosition=this[colPosMethod](colSpan,item);var position={x:this.columnWidth*colPosition.col,y:colPosition.y};var setHeight=colPosition.y+item.size.outerHeight;if(maxHeight<setHeight){maxHeight=setHeight;for(var i=0;i<colPosition.col;i++){this.colYs[i]=setHeight;}}else{setHeight=maxHeight;}\nvar setMax=colSpan+colPosition.col;for(var i=colPosition.col;i<setMax;i++){this.colYs[i]=setHeight;}\nreturn{position:position,maxHeight:maxHeight,};};proto._getTopColPosition=function(colSpan){var colGroup=this._getTopColGroup(colSpan);var minimumY=Math.min.apply(Math,colGroup);return{col:colGroup.indexOf(minimumY),y:minimumY,};};proto._getTopColGroup=function(colSpan){if(colSpan<2){return this.colYs;}\nvar colGroup=[];var groupCount=this.cols+1-colSpan;for(var i=0;i<groupCount;i++){colGroup[i]=this._getColGroupY(i,colSpan);}\nreturn colGroup;};proto._getColGroupY=function(col,colSpan){if(colSpan<2){return this.colYs[col];}\nvar groupColYs=this.colYs.slice(col,col+colSpan);return Math.max.apply(Math,groupColYs);};proto._getHorizontalColPosition=function(colSpan,item){var col=this.horizontalColIndex%this.cols;var isOver=colSpan>1&&col+colSpan>this.cols;col=isOver?0:col;var hasSize=item.size.outerWidth&&item.size.outerHeight;this.horizontalColIndex=hasSize?col+colSpan:this.horizontalColIndex;return{col:col,y:this._getColGroupY(col,colSpan),};};proto._manageStamp=function(stamp){var stampSize=getSize(stamp);var offset=this._getElementOffset(stamp);var isOriginLeft=this._getOption('originLeft');var firstX=isOriginLeft?offset.left:offset.right;var lastX=firstX+stampSize.outerWidth;var firstCol=Math.floor(firstX / this.columnWidth);firstCol=Math.max(0,firstCol);var lastCol=Math.floor(lastX / this.columnWidth);lastCol-=lastX%this.columnWidth?0:1;lastCol=Math.min(this.cols-1,lastCol);var isOriginTop=this._getOption('originTop');var stampMaxY=(isOriginTop?offset.top:offset.bottom)+\nstampSize.outerHeight;for(var i=firstCol;i<=lastCol;i++){this.colYs[i]=Math.max(stampMaxY,this.colYs[i]);}};proto._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var size={height:this.maxY};if(this._getOption('fitWidth')){size.width=this._getContainerFitWidth();}\nreturn size;};proto._getContainerFitWidth=function(){var unusedCols=0;var i=this.cols;while(--i){if(this.colYs[i]!==0){break;}\nunusedCols++;}\nreturn(this.cols-unusedCols)*this.columnWidth-this.gutter;};proto.needsResizeLayout=function(){var previousWidth=this.containerWidth;this.getContainerWidth();return previousWidth!=this.containerWidth;};return Masonry;}));","MGS_ThemeSettings/js/customize.min.js":"if(typeof(WEB_URL_AJAX)=='undefined'){if(typeof(BASE_URL)!=='undefined'){var WEB_URL_AJAX=BASE_URL;}else{pubUrlAjax=require.s.contexts._.config.baseUrl;arrUrlAjax=pubUrlAjax.split('pub/');var WEB_URL_AJAX=arrUrlAjax[0];}}\nrequire(['jquery'],function($){var frameEl=$(\"#theme-customize\");var progress=$('#frame-progress');var activePanel=0;function panelAction(){$(\"button.panel-title-btn\").on('click',function(){activePanel=dataNumber=$(this).attr('data-number');$('#panel'+dataNumber).show();$('#panel-form').addClass('active-panel');});$(\"button.btn-close-panel\").on('click',function(){activePanel=0;$('.panel-form-group').hide();$('#panel-form').removeClass('active-panel');});$(\"button.responsive\").on('click',function(){$(\"button.responsive\").removeClass('active');$(this).addClass('active');var responsiveType=$(this).attr('data-responsive');if(responsiveType!='full'){$(\".left-panel-collapsible\").show();$(\".preview .theme\").removeClass('desktop').removeClass('phone');$(\".preview .theme\").addClass(responsiveType);}else{$(\".preview .theme\").removeClass('desktop').removeClass('phone');$(\".left-panel-collapsible\").hide();}});if($('.panel-input-color').length){$('.panel-input-color').attr('data-hex',true).mColorPicker();$('.panel-input-color').change(function(){var backgroundColor=$(this).css(\"background-color\");$(this).css(\"color\",backgroundColor);});$('.panel-input-color').each(function(){var inputColor=$(this);var backgroundColor=inputColor.css(\"background-color\");inputColor.css(\"color\",backgroundColor);inputColor.bind('colorpicked',function(){progress.show();var loadStyle=0;if(inputColor[0].hasAttribute('data-load-style')&&(inputColor.attr('data-load-style')==1)){loadStyle=1;}\n$.ajax({url:WEB_URL_AJAX+'mgsthemesetting/theme/save',data:{id:inputColor.attr('id'),value:inputColor.val(),style:loadStyle},success:function(data){if(loadStyle&&(data!='')){frameEl.contents().find(\"#themesetting_customize_temp\").html(data);}\nif(inputColor[0].hasAttribute('data-reload')&&(inputColor.attr('data-reload')==1)){document.getElementById('theme-customize').contentDocument.location.reload(true);}else{progress.hide();}}});});});$('.input-image').change(function(){progress.show();var imageField=$(this);fileName=imageField.val();allowExtensions=imageField.attr('accept');uploadType=imageField.attr('data-type');allowExtensions=allowExtensions.split(',');arrName=fileName.split('.');extensionName=arrName[arrName.length-1];extensionName='.'+extensionName.toLowerCase();if(allowExtensions.includes(extensionName)){var loadStyle=0;if(imageField[0].hasAttribute('data-load-style')&&(imageField.attr('data-load-style')==1)){loadStyle=1;}\nvar formData=new FormData();formData.append('file',imageField[0].files[0]);formData.append('id',imageField.attr('data-id'));formData.append('style',loadStyle);formData.append('save_path',imageField.attr('data-save-path'));if(imageField[0].hasAttribute('data-store-path')){formData.append('store_path',imageField.attr('data-store-path'));}\n$.ajax({url:WEB_URL_AJAX+'mgsthemesetting/theme/upload',type:\"POST\",data:formData,contentType:false,cache:false,processData:false,success:function(data){var result=JSON.parse(data);if(result.result=='success'){if(uploadType=='image'){$('#'+imageField.attr('data-id')+'_field .img-preview img').remove();$('#'+imageField.attr('data-id')+'_field .img-preview').append('<img src=\"'+result.data+'\"/>');}else{$('#'+imageField.attr('data-id')+'_field .img-preview .icon-container').remove();url=result.data;arrUrl=url.split('/');resultFileName=arrUrl[arrUrl.length-1];extensionName=resultFileName.split('.');$('#'+imageField.attr('data-id')+'_field .img-preview').append('<div class=\"icon-container\"><span class=\"file-icon\"><span>'+extensionName[extensionName.length-1]+'</span></span><span class=\"text\">'+resultFileName+'</span></div>');}\n$('#'+imageField.attr('data-id')+'_field .select-img').hide();$('#'+imageField.attr('data-id')+'_field .img-action').show();if(loadStyle&&(result.style!='')){frameEl.contents().find(\"#themesetting_customize_temp\").html(result.style);}\nif(imageField[0].hasAttribute('data-reload')&&(imageField.attr('data-reload')==1)){document.getElementById('theme-customize').contentDocument.location.reload(true);}else{progress.hide();}}}});}});$('.btn-button-remove').on('click',function(){progress.show();var btn=$(this);fileType=btn.attr('data-type');var loadStyle=0;if(btn[0].hasAttribute('data-load-style')&&(btn.attr('data-load-style')==1)){loadStyle=1;}\nvar imgEl=btn.attr('data-element');var imgSrc=$('#'+imgEl+'_field .img-preview img').attr('src');$.ajax({url:WEB_URL_AJAX+'mgsthemesetting/theme/remove',data:{id:imgEl,src:imgSrc,style:loadStyle},success:function(data){if(fileType=='image'){$('#'+imgEl+'_field .img-preview img').remove();}else{$('#'+imgEl+'_field .img-preview .icon-container').remove();}\n$('#'+imgEl+'_field .img-action').hide();$('#'+imgEl+'_field .select-img').css('display','flex');if(loadStyle&&(data!='')){frameEl.contents().find(\"#themesetting_customize_temp\").html(data);}\nif(btn[0].hasAttribute('data-reload')&&(btn.attr('data-reload')==1)){document.getElementById('theme-customize').contentDocument.location.reload(true);}else{progress.hide();}}});});$('.checkbox-temp').on('click',function(){if($(this).prop(\"checked\")==true){var elementValue=1;}else{var elementValue=0;}\nvar realElId=$(this).attr('id').replace('_temp','');$('#'+realElId).val(elementValue).change();});$('.multiple-checkbox').on('click',function(){var checkEl=$(this);var checkValue=checkEl.val();var inputElId=checkEl.attr('data-parent');var inputEl=$('#'+inputElId);var inputValue=inputEl.val();inputValue=inputValue.split(\",\");if(checkEl.prop(\"checked\")==true){inputValue.push(checkValue);}else{inputValue.splice(inputValue.indexOf(checkValue),1);}\ninputValue.toString();inputEl.val(inputValue).change();});$('.slider-input .slider').change(function(){var sliderEl=$(this);var dataInput=sliderEl.attr('data-input');$('#'+dataInput).val(sliderEl.val()).change();});$('.slider-input .slider').on('input',function(){var sliderEl=$(this);var dataInput=sliderEl.attr('data-input');$('#'+dataInput+'_field .value span').html(sliderEl.val());});}\nvar arDependField=[];$(\"div.field\").each(function(order){if($(this)[0].hasAttribute('data-depend')){hiddenEl=$(this);hiddenEl.hide();var dataDepend=hiddenEl.attr('data-depend').toString();dataDependReplace=dataDepend.replace(/==/g,':').replace(/!=/g,':').replace(/_and_/g,'-').replace(/_or_/g,'-');var arrCondition=dataDependReplace.split('-');$.each(arrCondition,function(i,val){var arrEl=val.split(':');elId=arrEl[0];dataDepend=dataDepend.replace(new RegExp(elId,'g'),\"$('#\"+elId+\"').val()\");dataDepend=dataDepend.replace(/_and_/g,'&&').replace(/_or_/g,'||');arDependField[order]=[elId,hiddenEl.attr('id'),dataDepend];});}});if(arDependField.length){$.each(arDependField,function(i,val){if(typeof val!=='undefined'){if(eval(val[2])){$('#'+val[1]).show();}else{$('#'+val[1]).hide();}\n$('#'+val[0]).change(function(){if(eval(val[2])){$('#'+val[1]).show();}else{$('#'+val[1]).hide();}});}});}\n$(\".panel-input\").change(function(){if(!$(this).hasClass(\"panel-input-color\")){progress.show();var el=$(this);var elementId=el.attr('id');if(el.hasClass(\"checkbox\")){if(el.prop(\"checked\")==true){var elementValue=1;}else{var elementValue=0;}}else{var elementValue=el.val();}\nvar loadStyle=0;if(el[0].hasAttribute('data-load-style')&&(el.attr('data-load-style')==1)){loadStyle=1;}\n$.ajax({url:WEB_URL_AJAX+'mgsthemesetting/theme/save',data:{id:elementId,value:elementValue,style:loadStyle},success:function(data){if(loadStyle&&(data!='')){frameEl.contents().find(\"#themesetting_customize_temp\").html(data);}\nif(el[0].hasAttribute('data-reload')&&(el.attr('data-reload')==1)){document.getElementById('theme-customize').contentDocument.location.reload(true);}else{progress.hide();}}});}});};$(document).ready(function(){panelAction();});frameEl.on('load',function(){$('#left-panel-container').css('opacity','0.5');progress.hide();$.ajax({url:WEB_URL_AJAX+'mgsthemesetting/theme/navigation',data:{activepanel:activePanel},success:function(data){$('#left-panel-container').html(data);$('#left-panel-container').css('opacity','1');panelAction();}});$(this).contents().find(\"a\").on('click',function(){aEl=$(this);if(aEl[0].hasAttribute('href')&&btoa(aEl.attr('href'))!=''&&btoa(aEl.attr('href'))!='#'){progress.show();aHref=btoa(aEl.attr('href'));url=WEB_URL_AJAX+'mgsthemesetting/theme/customize/referrer/'+aHref;top.window.location.href=url;return false;}});});});","MGS_ThemeSettings/js/swatch-renderer.min.js":"define(['jquery'],function($){'use strict';return function(widget){$.widget('mage.SwatchRenderer',widget,{_sortAttributes:function(){var $productContainer=$(this.options.selectorProduct).parent();if(typeof $productContainer.attr('data-container')!==typeof undefined&&$productContainer.attr('data-container')!==false){var $dataContainer=$productContainer.attr('data-container');var $arrDataContainer=$dataContainer.split('product-');this.options.mediaCallback+='view_mode/'+$arrDataContainer[1]+'/';if($('#product-container').length){var $dataDimention='data-dimension-'+$arrDataContainer[1];if(typeof $('#product-container').attr($dataDimention)!==typeof undefined&&$('#product-container').attr($dataDimention)!==false){this.options.mediaCallback+='dimention/'+$('#product-container').attr($dataDimention)+'/';}}}\nthis.options.jsonConfig.attributes=_.sortBy(this.options.jsonConfig.attributes,function(attribute){return parseInt(attribute.position,10);});}});return $.mage.SwatchRenderer;}});"}
}});
;require.config({"config": {
        "jsbuild":{"MGS_ThemeSettings/js/model-ar-legacy.min.js":"!function(a){\"use strict\";function b(a,b,c,e){var f=b&&b.prototype instanceof d?b:d,g=Object.create(f.prototype),h=new m(e||[]);return g._invoke=i(a,c,h),g}\nfunction c(a,b,c){try{return{type:\"normal\",arg:a.call(b,c)}}catch(a){return{type:\"throw\",arg:a}}}\nfunction d(){}function e(){}function f(){}\nfunction g(a){[\"next\",\"throw\",\"return\"].forEach(function(b){a[b]=function(a){return this._invoke(b,a)}})}function h(a){function b(d,e,f,g){var h=c(a[d],a,e);if(\"throw\"===h.type)g(h.arg);else{var i=h.arg,j=i.value;return j&&\"object\"===typeof j&&q.call(j,\"__await\")?Promise.resolve(j.__await).then(function(a){b(\"next\",a,f,g)},function(a){b(\"throw\",a,f,g)}):Promise.resolve(j).then(function(a){i.value=a,f(i)},g)}}function d(a,c){function d(){return new Promise(function(d,e){b(a,c,d,e)})}return e=e?e.then(d,d):d()}\nvar e;this._invoke=d}function i(a,b,d){var e=\"suspendedStart\";return function(f,g){if(e===\"executing\")throw new Error(\"Generator is already running\");if(\"completed\"===e){if(\"throw\"===f)throw g;return o()}for(d.method=f,d.arg=g;;){var h=d.delegate;if(h){var i=j(h,d);if(i){if(i===x)continue;return i}}if(\"next\"===d.method)\nd.sent=d._sent=d.arg;else if(\"throw\"===d.method){if(\"suspendedStart\"===e)throw e=\"completed\",d.arg;d.dispatchException(d.arg)}else\"return\"===d.method&&d.abrupt(\"return\",d.arg);e=\"executing\";var k=c(a,b,d);if(\"normal\"===k.type){if(e=d.done?\"completed\":\"suspendedYield\",k.arg===x)continue;return{value:k.arg,done:d.done}}\"throw\"===k.type&&(e=\"completed\",d.method=\"throw\",d.arg=k.arg)}}}\nfunction j(a,b){var d=a.iterator[b.method];if(void 0===d){if(b.delegate=null,\"throw\"===b.method){if(a.iterator.return&&(b.method=\"return\",b.arg=void 0,j(a,b),\"throw\"===b.method))\nreturn x;b.method=\"throw\",b.arg=new TypeError(\"The iterator does not provide a 'throw' method\")}return x}var e=c(d,a.iterator,b.arg);if(\"throw\"===e.type)return b.method=\"throw\",b.arg=e.arg,b.delegate=null,x;var f=e.arg;if(!f)return b.method=\"throw\",b.arg=new TypeError(\"iterator result is not an object\"),b.delegate=null,x;if(f.done)b[a.resultName]=f.value,b.next=a.nextLoc,\"return\"!==b.method&&(b.method=\"next\",b.arg=void 0);else\nreturn f;return b.delegate=null,x}\nfunction k(a){var b={tryLoc:a[0]};1 in a&&(b.catchLoc=a[1]),2 in a&&(b.finallyLoc=a[2],b.afterLoc=a[3]),this.tryEntries.push(b)}function l(a){var b=a.completion||{};b.type=\"normal\",delete b.arg,a.completion=b}function m(a){this.tryEntries=[{tryLoc:\"root\"}],a.forEach(k,this),this.reset(!0)}function n(a){if(a){var b=a[s];if(b)return b.call(a);if(\"function\"===typeof a.next)return a;if(!isNaN(a.length)){var c=-1,d=function b(){for(;++c<a.length;)if(q.call(a,c))return b.value=a[c],b.done=!1,b;return b.value=void 0,b.done=!0,b};return d.next=d}}\nreturn{next:o}}function o(){return{value:void 0,done:!0}}var p=Object.prototype,q=p.hasOwnProperty,r=\"function\"===typeof Symbol?Symbol:{},s=r.iterator||\"@@iterator\",t=r.asyncIterator||\"@@asyncIterator\",u=r.toStringTag||\"@@toStringTag\",v=\"object\"===typeof module,w=a.regeneratorRuntime;if(w)\nreturn void(v&&(module.exports=w));w=a.regeneratorRuntime=v?module.exports:{},w.wrap=b;var x={},y={};y[s]=function(){return this};var z=Object.getPrototypeOf,A=z&&z(z(n([])));A&&A!==p&&q.call(A,s)&&(y=A);var B=f.prototype=d.prototype=Object.create(y);e.prototype=B.constructor=f,f.constructor=e,f[u]=e.displayName=\"GeneratorFunction\",w.isGeneratorFunction=function(a){var b=\"function\"===typeof a&&a.constructor;return!!b&&(b===e||\"GeneratorFunction\"===(b.displayName||b.name))},w.mark=function(a){return Object.setPrototypeOf?Object.setPrototypeOf(a,f):(a.__proto__=f,!(u in a)&&(a[u]=\"GeneratorFunction\")),a.prototype=Object.create(B),a},w.awrap=function(a){return{__await:a}},g(h.prototype),h.prototype[t]=function(){return this},w.AsyncIterator=h,w.async=function(a,c,d,e){var f=new h(b(a,c,d,e));return w.isGeneratorFunction(c)?f:f.next().then(function(a){return a.done?a.value:f.next()})},g(B),B[u]=\"Generator\",B[s]=function(){return this},B.toString=function(){return\"[object Generator]\"},w.keys=function(a){var b=[];for(var c in a)b.push(c);return b.reverse(),function c(){for(;b.length;){var d=b.pop();if(d in a)return c.value=d,c.done=!1,c}\nreturn c.done=!0,c}},w.values=n,m.prototype={constructor:m,reset:function(a){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=void 0,this.tryEntries.forEach(l),!a)for(var b in this)\"t\"===b.charAt(0)&&q.call(this,b)&&!isNaN(+b.slice(1))&&(this[b]=void 0)},stop:function(){this.done=!0;var a=this.tryEntries[0],b=a.completion;if(\"throw\"===b.type)throw b.arg;return this.rval},dispatchException:function(a){function b(b,d){return f.type=\"throw\",f.arg=a,c.next=b,d&&(c.method=\"next\",c.arg=void 0),!!d}if(this.done)throw a;for(var c=this,d=this.tryEntries.length-1;0<=d;--d){var e=this.tryEntries[d],f=e.completion;if(\"root\"===e.tryLoc)\nreturn b(\"end\");if(e.tryLoc<=this.prev){var g=q.call(e,\"catchLoc\"),h=q.call(e,\"finallyLoc\");if(g&&h){if(this.prev<e.catchLoc)return b(e.catchLoc,!0);if(this.prev<e.finallyLoc)return b(e.finallyLoc)}else if(g){if(this.prev<e.catchLoc)return b(e.catchLoc,!0);}else if(!h)throw new Error(\"try statement without catch or finally\");else if(this.prev<e.finallyLoc)return b(e.finallyLoc)}}},abrupt:function(a,b){for(var c,d=this.tryEntries.length-1;0<=d;--d)if(c=this.tryEntries[d],c.tryLoc<=this.prev&&q.call(c,\"finallyLoc\")&&this.prev<c.finallyLoc){var e=c;break}e&&(\"break\"===a||\"continue\"===a)&&e.tryLoc<=b&&b<=e.finallyLoc&&(e=null);var f=e?e.completion:{};return f.type=a,f.arg=b,e?(this.method=\"next\",this.next=e.finallyLoc,x):this.complete(f)},complete:function(a,b){if(\"throw\"===a.type)throw a.arg;return\"break\"===a.type||\"continue\"===a.type?this.next=a.arg:\"return\"===a.type?(this.rval=this.arg=a.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===a.type&&b&&(this.next=b),x},finish:function(a){for(var b,c=this.tryEntries.length-1;0<=c;--c)if(b=this.tryEntries[c],b.finallyLoc===a)return this.complete(b.completion,b.afterLoc),l(b),x},catch:function(a){for(var b,c=this.tryEntries.length-1;0<=c;--c)if(b=this.tryEntries[c],b.tryLoc===a){var d=b.completion;if(\"throw\"===d.type){var e=d.arg;l(b)}return e}\nthrow new Error(\"illegal catch attempt\")},delegateYield:function(a,b,c){return this.delegate={iterator:n(a),resultName:b,nextLoc:c},\"next\"===this.method&&(this.arg=void 0),x}}}(function(){return this}()||Function(\"return this\")());function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");}function _iterableToArrayLimit(arr,i){if(typeof Symbol===\"undefined\"||!(Symbol.iterator in Object(arr)))return;var _arr=[];var _n=true;var _d=false;var _e=undefined;try{for(var _i=arr[Symbol.iterator](),_s;!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break;}}catch(err){_d=true;_e=err;}finally{try{if(!_n&&_i[\"return\"]!=null)_i[\"return\"]();}finally{if(_d)throw _e;}}return _arr;}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}function _get(target,property,receiver){if(typeof Reflect!==\"undefined\"&&Reflect.get){_get=Reflect.get;}else{_get=function _get(target,property,receiver){var base=_superPropBase(target,property);if(!base)return;var desc=Object.getOwnPropertyDescriptor(base,property);if(desc.get){return desc.get.call(receiver);}return desc.value;};}return _get(target,property,receiver||target);}function _superPropBase(object,property){while(!Object.prototype.hasOwnProperty.call(object,property)){object=_getPrototypeOf(object);if(object===null)break;}return object;}function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function _createForOfIteratorHelper(o,allowArrayLike){var it;if(typeof Symbol===\"undefined\"||o[Symbol.iterator]==null){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length===\"number\"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]};},e:function e(_e2){throw _e2;},f:F};}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");}var normalCompletion=true,didErr=false,err;return{s:function s(){it=o[Symbol.iterator]();},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function e(_e3){didErr=true;err=_e3;},f:function f(){try{if(!normalCompletion&&it.return!=null)it.return();}finally{if(didErr)throw err;}}};}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o===\"string\")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n===\"Object\"&&o.constructor)n=o.constructor.name;if(n===\"Map\"||n===\"Set\")return Array.from(o);if(n===\"Arguments\"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _iterableToArray(iter){if(typeof Symbol!==\"undefined\"&&Symbol.iterator in Object(iter))return Array.from(iter);}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++){arr2[i]=arr[i];}return arr2;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,\"next\",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,\"throw\",err);}_next(undefined);});};}function _classCallCheck(instance,Constructor){if(!_instanceof(instance,Constructor)){throw new TypeError(\"Cannot call a class as a function\");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if(\"value\"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);return Constructor;}function _inherits(subClass,superClass){if(typeof superClass!==\"function\"&&superClass!==null){throw new TypeError(\"Super expression must either be null or a function\");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});if(superClass)_setPrototypeOf(subClass,superClass);}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else{result=Super.apply(this,arguments);}return _possibleConstructorReturn(this,result);};}function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)===\"object\"||typeof call===\"function\")){return call;}return _assertThisInitialized(self);}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");}return self;}function _wrapNativeSuper(Class){var _cache=typeof Map===\"function\"?new Map():undefined;_wrapNativeSuper=function _wrapNativeSuper(Class){if(Class===null||!_isNativeFunction(Class))return Class;if(typeof Class!==\"function\"){throw new TypeError(\"Super expression must either be null or a function\");}if(typeof _cache!==\"undefined\"){if(_cache.has(Class))return _cache.get(Class);_cache.set(Class,Wrapper);}function Wrapper(){return _construct(Class,arguments,_getPrototypeOf(this).constructor);}Wrapper.prototype=Object.create(Class.prototype,{constructor:{value:Wrapper,enumerable:false,writable:true,configurable:true}});return _setPrototypeOf(Wrapper,Class);};return _wrapNativeSuper(Class);}function _construct(Parent,args,Class){if(_isNativeReflectConstruct()){_construct=Reflect.construct;}else{_construct=function _construct(Parent,args,Class){var a=[null];a.push.apply(a,args);var Constructor=Function.bind.apply(Parent,a);var instance=new Constructor();if(Class)_setPrototypeOf(instance,Class.prototype);return instance;};}return _construct.apply(null,arguments);}function _isNativeReflectConstruct(){if(typeof Reflect===\"undefined\"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy===\"function\")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true;}catch(e){return false;}}function _isNativeFunction(fn){return Function.toString.call(fn).indexOf(\"[native code]\")!==-1;}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}function _instanceof(left,right){if(right!=null&&typeof Symbol!==\"undefined\"&&right[Symbol.hasInstance]){return!!right[Symbol.hasInstance](left);}else{return left instanceof right;}}function _typeof(obj){\"@babel/helpers - typeof\";if(typeof Symbol===\"function\"&&typeof Symbol.iterator===\"symbol\"){_typeof=function _typeof(obj){return typeof obj;};}else{_typeof=function _typeof(obj){return obj&&typeof Symbol===\"function\"&&obj.constructor===Symbol&&obj!==Symbol.prototype?\"symbol\":typeof obj;};}return _typeof(obj);}(function(global,factory){(typeof exports===\"undefined\"?\"undefined\":_typeof(exports))==='object'&&typeof module!=='undefined'?factory(exports):typeof define==='function'&&define.amd?define(['exports'],factory):(global=typeof globalThis!=='undefined'?globalThis:global||self,factory(global.ModelViewerElement={}));})(this,function(exports){'use strict';var _ENCODINGS;var ERROR_MESSAGE='Function.prototype.bind called on incompatible ';var slice=Array.prototype.slice;var toStr=Object.prototype.toString;var funcType='[object Function]';var implementation=function bind(that){var target=this;if(typeof target!=='function'||toStr.call(target)!==funcType){throw new TypeError(ERROR_MESSAGE+target);}var args=slice.call(arguments,1);var bound;var binder=function binder(){if(_instanceof(this,bound)){var result=target.apply(this,args.concat(slice.call(arguments)));if(Object(result)===result){return result;}return this;}else{return target.apply(that,args.concat(slice.call(arguments)));}};var boundLength=Math.max(0,target.length-args.length);var boundArgs=[];for(var i=0;i<boundLength;i++){boundArgs.push('$'+i);}bound=Function('binder','return function ('+boundArgs.join(',')+'){ return binder.apply(this,arguments); }')(binder);if(target.prototype){var Empty=function Empty(){};Empty.prototype=target.prototype;bound.prototype=new Empty();Empty.prototype=null;}return bound;};var functionBind=Function.prototype.bind||implementation;var src=functionBind.call(Function.call,Object.prototype.hasOwnProperty);var commonjsGlobal=typeof globalThis!=='undefined'?globalThis:typeof window!=='undefined'?window:typeof global!=='undefined'?global:typeof self!=='undefined'?self:{};var shams=function hasSymbols(){if(typeof Symbol!=='function'||typeof Object.getOwnPropertySymbols!=='function'){return false;}if(_typeof(Symbol.iterator)==='symbol'){return true;}var obj={};var sym=Symbol('test');var symObj=Object(sym);if(typeof sym==='string'){return false;}if(Object.prototype.toString.call(sym)!=='[object Symbol]'){return false;}if(Object.prototype.toString.call(symObj)!=='[object Symbol]'){return false;}\nvar symVal=42;obj[sym]=symVal;for(sym in obj){return false;}\nif(typeof Object.keys==='function'&&Object.keys(obj).length!==0){return false;}if(typeof Object.getOwnPropertyNames==='function'&&Object.getOwnPropertyNames(obj).length!==0){return false;}var syms=Object.getOwnPropertySymbols(obj);if(syms.length!==1||syms[0]!==sym){return false;}if(!Object.prototype.propertyIsEnumerable.call(obj,sym)){return false;}if(typeof Object.getOwnPropertyDescriptor==='function'){var descriptor=Object.getOwnPropertyDescriptor(obj,sym);if(descriptor.value!==symVal||descriptor.enumerable!==true){return false;}}return true;};var origSymbol=commonjsGlobal.Symbol;var hasSymbols=function hasNativeSymbols(){if(typeof origSymbol!=='function'){return false;}if(typeof Symbol!=='function'){return false;}if(_typeof(origSymbol('foo'))!=='symbol'){return false;}if(_typeof(Symbol('bar'))!=='symbol'){return false;}return shams();};var undefined$1;var $TypeError=TypeError;var $gOPD=Object.getOwnPropertyDescriptor;if($gOPD){try{$gOPD({},'');}catch(e){$gOPD=null;}}var throwTypeError=function throwTypeError(){throw new $TypeError();};var ThrowTypeError=$gOPD?function(){try{arguments.callee;return throwTypeError;}catch(calleeThrows){try{return $gOPD(arguments,'callee').get;}catch(gOPDthrows){return throwTypeError;}}}():throwTypeError;var hasSymbols$1=hasSymbols();var getProto=Object.getPrototypeOf||function(x){return x.__proto__;};var generatorFunction=undefined$1;var asyncFunction=undefined$1;var asyncGenFunction=undefined$1;var TypedArray=typeof Uint8Array==='undefined'?undefined$1:getProto(Uint8Array);var INTRINSICS={'%Array%':Array,'%ArrayBuffer%':typeof ArrayBuffer==='undefined'?undefined$1:ArrayBuffer,'%ArrayBufferPrototype%':typeof ArrayBuffer==='undefined'?undefined$1:ArrayBuffer.prototype,'%ArrayIteratorPrototype%':hasSymbols$1?getProto([][Symbol.iterator]()):undefined$1,'%ArrayPrototype%':Array.prototype,'%ArrayProto_entries%':Array.prototype.entries,'%ArrayProto_forEach%':Array.prototype.forEach,'%ArrayProto_keys%':Array.prototype.keys,'%ArrayProto_values%':Array.prototype.values,'%AsyncFromSyncIteratorPrototype%':undefined$1,'%AsyncFunction%':asyncFunction,'%AsyncFunctionPrototype%':undefined$1,'%AsyncGenerator%':undefined$1,'%AsyncGeneratorFunction%':asyncGenFunction,'%AsyncGeneratorPrototype%':undefined$1,'%AsyncIteratorPrototype%':undefined$1,'%Atomics%':typeof Atomics==='undefined'?undefined$1:Atomics,'%Boolean%':Boolean,'%BooleanPrototype%':Boolean.prototype,'%DataView%':typeof DataView==='undefined'?undefined$1:DataView,'%DataViewPrototype%':typeof DataView==='undefined'?undefined$1:DataView.prototype,'%Date%':Date,'%DatePrototype%':Date.prototype,'%decodeURI%':decodeURI,'%decodeURIComponent%':decodeURIComponent,'%encodeURI%':encodeURI,'%encodeURIComponent%':encodeURIComponent,'%Error%':Error,'%ErrorPrototype%':Error.prototype,'%eval%':eval,'%EvalError%':EvalError,'%EvalErrorPrototype%':EvalError.prototype,'%Float32Array%':typeof Float32Array==='undefined'?undefined$1:Float32Array,'%Float32ArrayPrototype%':typeof Float32Array==='undefined'?undefined$1:Float32Array.prototype,'%Float64Array%':typeof Float64Array==='undefined'?undefined$1:Float64Array,'%Float64ArrayPrototype%':typeof Float64Array==='undefined'?undefined$1:Float64Array.prototype,'%Function%':Function,'%FunctionPrototype%':Function.prototype,'%Generator%':undefined$1,'%GeneratorFunction%':generatorFunction,'%GeneratorPrototype%':undefined$1,'%Int8Array%':typeof Int8Array==='undefined'?undefined$1:Int8Array,'%Int8ArrayPrototype%':typeof Int8Array==='undefined'?undefined$1:Int8Array.prototype,'%Int16Array%':typeof Int16Array==='undefined'?undefined$1:Int16Array,'%Int16ArrayPrototype%':typeof Int16Array==='undefined'?undefined$1:Int8Array.prototype,'%Int32Array%':typeof Int32Array==='undefined'?undefined$1:Int32Array,'%Int32ArrayPrototype%':typeof Int32Array==='undefined'?undefined$1:Int32Array.prototype,'%isFinite%':isFinite,'%isNaN%':isNaN,'%IteratorPrototype%':hasSymbols$1?getProto(getProto([][Symbol.iterator]())):undefined$1,'%JSON%':(typeof JSON===\"undefined\"?\"undefined\":_typeof(JSON))==='object'?JSON:undefined$1,'%JSONParse%':(typeof JSON===\"undefined\"?\"undefined\":_typeof(JSON))==='object'?JSON.parse:undefined$1,'%Map%':typeof Map==='undefined'?undefined$1:Map,'%MapIteratorPrototype%':typeof Map==='undefined'||!hasSymbols$1?undefined$1:getProto(new Map()[Symbol.iterator]()),'%MapPrototype%':typeof Map==='undefined'?undefined$1:Map.prototype,'%Math%':Math,'%Number%':Number,'%NumberPrototype%':Number.prototype,'%Object%':Object,'%ObjectPrototype%':Object.prototype,'%ObjProto_toString%':Object.prototype.toString,'%ObjProto_valueOf%':Object.prototype.valueOf,'%parseFloat%':parseFloat,'%parseInt%':parseInt,'%Promise%':typeof Promise==='undefined'?undefined$1:Promise,'%PromisePrototype%':typeof Promise==='undefined'?undefined$1:Promise.prototype,'%PromiseProto_then%':typeof Promise==='undefined'?undefined$1:Promise.prototype.then,'%Promise_all%':typeof Promise==='undefined'?undefined$1:Promise.all,'%Promise_reject%':typeof Promise==='undefined'?undefined$1:Promise.reject,'%Promise_resolve%':typeof Promise==='undefined'?undefined$1:Promise.resolve,'%Proxy%':typeof Proxy==='undefined'?undefined$1:Proxy,'%RangeError%':RangeError,'%RangeErrorPrototype%':RangeError.prototype,'%ReferenceError%':ReferenceError,'%ReferenceErrorPrototype%':ReferenceError.prototype,'%Reflect%':typeof Reflect==='undefined'?undefined$1:Reflect,'%RegExp%':RegExp,'%RegExpPrototype%':RegExp.prototype,'%Set%':typeof Set==='undefined'?undefined$1:Set,'%SetIteratorPrototype%':typeof Set==='undefined'||!hasSymbols$1?undefined$1:getProto(new Set()[Symbol.iterator]()),'%SetPrototype%':typeof Set==='undefined'?undefined$1:Set.prototype,'%SharedArrayBuffer%':typeof SharedArrayBuffer==='undefined'?undefined$1:SharedArrayBuffer,'%SharedArrayBufferPrototype%':typeof SharedArrayBuffer==='undefined'?undefined$1:SharedArrayBuffer.prototype,'%String%':String,'%StringIteratorPrototype%':hasSymbols$1?getProto(''[Symbol.iterator]()):undefined$1,'%StringPrototype%':String.prototype,'%Symbol%':hasSymbols$1?Symbol:undefined$1,'%SymbolPrototype%':hasSymbols$1?Symbol.prototype:undefined$1,'%SyntaxError%':SyntaxError,'%SyntaxErrorPrototype%':SyntaxError.prototype,'%ThrowTypeError%':ThrowTypeError,'%TypedArray%':TypedArray,'%TypedArrayPrototype%':TypedArray?TypedArray.prototype:undefined$1,'%TypeError%':$TypeError,'%TypeErrorPrototype%':$TypeError.prototype,'%Uint8Array%':typeof Uint8Array==='undefined'?undefined$1:Uint8Array,'%Uint8ArrayPrototype%':typeof Uint8Array==='undefined'?undefined$1:Uint8Array.prototype,'%Uint8ClampedArray%':typeof Uint8ClampedArray==='undefined'?undefined$1:Uint8ClampedArray,'%Uint8ClampedArrayPrototype%':typeof Uint8ClampedArray==='undefined'?undefined$1:Uint8ClampedArray.prototype,'%Uint16Array%':typeof Uint16Array==='undefined'?undefined$1:Uint16Array,'%Uint16ArrayPrototype%':typeof Uint16Array==='undefined'?undefined$1:Uint16Array.prototype,'%Uint32Array%':typeof Uint32Array==='undefined'?undefined$1:Uint32Array,'%Uint32ArrayPrototype%':typeof Uint32Array==='undefined'?undefined$1:Uint32Array.prototype,'%URIError%':URIError,'%URIErrorPrototype%':URIError.prototype,'%WeakMap%':typeof WeakMap==='undefined'?undefined$1:WeakMap,'%WeakMapPrototype%':typeof WeakMap==='undefined'?undefined$1:WeakMap.prototype,'%WeakSet%':typeof WeakSet==='undefined'?undefined$1:WeakSet,'%WeakSetPrototype%':typeof WeakSet==='undefined'?undefined$1:WeakSet.prototype};var $replace=functionBind.call(Function.call,String.prototype.replace);var rePropName=/[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g;var reEscapeChar=/\\\\(\\\\)?/g;var stringToPath=function stringToPath(string){var result=[];$replace(string,rePropName,function(match,number,quote,subString){result[result.length]=quote?$replace(subString,reEscapeChar,'$1'):number||match;});return result;};var getBaseIntrinsic=function getBaseIntrinsic(name,allowMissing){if(!(name in INTRINSICS)){throw new SyntaxError('intrinsic '+name+' does not exist!');}\nif(typeof INTRINSICS[name]==='undefined'&&!allowMissing){throw new $TypeError('intrinsic '+name+' exists, but is not available. Please file an issue!');}return INTRINSICS[name];};var GetIntrinsic=function GetIntrinsic(name,allowMissing){if(typeof name!=='string'||name.length===0){throw new TypeError('intrinsic name must be a non-empty string');}if(arguments.length>1&&typeof allowMissing!=='boolean'){throw new TypeError('\"allowMissing\" argument must be a boolean');}var parts=stringToPath(name);var value=getBaseIntrinsic('%'+(parts.length>0?parts[0]:'')+'%',allowMissing);for(var i=1;i<parts.length;i+=1){if(value!=null){if($gOPD&&i+1>=parts.length){var desc=$gOPD(value,parts[i]);if(!allowMissing&&!(parts[i]in value)){throw new $TypeError('base intrinsic for '+name+' exists, but the property is not available.');}value=desc?desc.get||desc.value:value[parts[i]];}else{value=value[parts[i]];}}}return value;};var $TypeError$1=GetIntrinsic('%TypeError%');var CheckObjectCoercible=function CheckObjectCoercible(value,optMessage){if(value==null){throw new $TypeError$1(optMessage||'Cannot call method on '+value);}return value;};var RequireObjectCoercible=CheckObjectCoercible;var $apply=GetIntrinsic('%Function.prototype.apply%');var $call=GetIntrinsic('%Function.prototype.call%');var $reflectApply=GetIntrinsic('%Reflect.apply%',true)||functionBind.call($call,$apply);var callBind=function callBind(){return $reflectApply(functionBind,$call,arguments);};var apply=function applyBind(){return $reflectApply(functionBind,$apply,arguments);};callBind.apply=apply;var $indexOf=callBind(GetIntrinsic('String.prototype.indexOf'));var callBound=function callBoundIntrinsic(name,allowMissing){var intrinsic=GetIntrinsic(name,!!allowMissing);if(typeof intrinsic==='function'&&$indexOf(name,'.prototype.')){return callBind(intrinsic);}return intrinsic;};var $isEnumerable=callBound('Object.prototype.propertyIsEnumerable');var implementation$1=function values(O){var obj=RequireObjectCoercible(O);var vals=[];for(var key in obj){if(src(obj,key)&&$isEnumerable(obj,key)){vals.push(obj[key]);}}return vals;};var polyfill=function getPolyfill(){return typeof Object.values==='function'?Object.values:implementation$1;};var toStr$1=Object.prototype.toString;var isArguments=function isArguments(value){var str=toStr$1.call(value);var isArgs=str==='[object Arguments]';if(!isArgs){isArgs=str!=='[object Array]'&&value!==null&&_typeof(value)==='object'&&typeof value.length==='number'&&value.length>=0&&toStr$1.call(value.callee)==='[object Function]';}return isArgs;};var keysShim;if(!Object.keys){var has=Object.prototype.hasOwnProperty;var toStr$2=Object.prototype.toString;var isArgs=isArguments;var isEnumerable=Object.prototype.propertyIsEnumerable;var hasDontEnumBug=!isEnumerable.call({toString:null},'toString');var hasProtoEnumBug=isEnumerable.call(function(){},'prototype');var dontEnums=['toString','toLocaleString','valueOf','hasOwnProperty','isPrototypeOf','propertyIsEnumerable','constructor'];var equalsConstructorPrototype=function equalsConstructorPrototype(o){var ctor=o.constructor;return ctor&&ctor.prototype===o;};var excludedKeys={$applicationCache:true,$console:true,$external:true,$frame:true,$frameElement:true,$frames:true,$innerHeight:true,$innerWidth:true,$onmozfullscreenchange:true,$onmozfullscreenerror:true,$outerHeight:true,$outerWidth:true,$pageXOffset:true,$pageYOffset:true,$parent:true,$scrollLeft:true,$scrollTop:true,$scrollX:true,$scrollY:true,$self:true,$webkitIndexedDB:true,$webkitStorageInfo:true,$window:true};var hasAutomationEqualityBug=function(){if(typeof window==='undefined'){return false;}for(var k in window){try{if(!excludedKeys['$'+k]&&has.call(window,k)&&window[k]!==null&&_typeof(window[k])==='object'){try{equalsConstructorPrototype(window[k]);}catch(e){return true;}}}catch(e){return true;}}return false;}();var equalsConstructorPrototypeIfNotBuggy=function equalsConstructorPrototypeIfNotBuggy(o){if(typeof window==='undefined'||!hasAutomationEqualityBug){return equalsConstructorPrototype(o);}try{return equalsConstructorPrototype(o);}catch(e){return false;}};keysShim=function keys(object){var isObject=object!==null&&_typeof(object)==='object';var isFunction=toStr$2.call(object)==='[object Function]';var isArguments=isArgs(object);var isString=isObject&&toStr$2.call(object)==='[object String]';var theKeys=[];if(!isObject&&!isFunction&&!isArguments){throw new TypeError('Object.keys called on a non-object');}var skipProto=hasProtoEnumBug&&isFunction;if(isString&&object.length>0&&!has.call(object,0)){for(var i=0;i<object.length;++i){theKeys.push(String(i));}}if(isArguments&&object.length>0){for(var j=0;j<object.length;++j){theKeys.push(String(j));}}else{for(var name in object){if(!(skipProto&&name==='prototype')&&has.call(object,name)){theKeys.push(String(name));}}}if(hasDontEnumBug){var skipConstructor=equalsConstructorPrototypeIfNotBuggy(object);for(var k=0;k<dontEnums.length;++k){if(!(skipConstructor&&dontEnums[k]==='constructor')&&has.call(object,dontEnums[k])){theKeys.push(dontEnums[k]);}}}return theKeys;};}var implementation$2=keysShim;var slice$1=Array.prototype.slice;var origKeys=Object.keys;var keysShim$1=origKeys?function keys(o){return origKeys(o);}:implementation$2;var originalKeys=Object.keys;keysShim$1.shim=function shimObjectKeys(){if(Object.keys){var keysWorksWithArguments=function(){var args=Object.keys(arguments);return args&&args.length===arguments.length;}(1,2);if(!keysWorksWithArguments){Object.keys=function keys(object){if(isArguments(object)){return originalKeys(slice$1.call(object));}return originalKeys(object);};}}else{Object.keys=keysShim$1;}return Object.keys||keysShim$1;};var objectKeys=keysShim$1;var hasSymbols$2=typeof Symbol==='function'&&_typeof(Symbol('foo'))==='symbol';var toStr$3=Object.prototype.toString;var concat=Array.prototype.concat;var origDefineProperty=Object.defineProperty;var isFunction=function isFunction(fn){return typeof fn==='function'&&toStr$3.call(fn)==='[object Function]';};var arePropertyDescriptorsSupported=function arePropertyDescriptorsSupported(){var obj={};try{origDefineProperty(obj,'x',{enumerable:false,value:obj});for(var _ in obj){return false;}return obj.x===obj;}catch(e){return false;}};var supportsDescriptors=origDefineProperty&&arePropertyDescriptorsSupported();var defineProperty=function defineProperty(object,name,value,predicate){if(name in object&&(!isFunction(predicate)||!predicate())){return;}if(supportsDescriptors){origDefineProperty(object,name,{configurable:true,enumerable:false,value:value,writable:true});}else{object[name]=value;}};var defineProperties=function defineProperties(object,map){var predicates=arguments.length>2?arguments[2]:{};var props=objectKeys(map);if(hasSymbols$2){props=concat.call(props,Object.getOwnPropertySymbols(map));}for(var i=0;i<props.length;i+=1){defineProperty(object,props[i],map[props[i]],predicates[props[i]]);}};defineProperties.supportsDescriptors=!!supportsDescriptors;var defineProperties_1=defineProperties;var shim=function shimValues(){var polyfill$1=polyfill();defineProperties_1(Object,{values:polyfill$1},{values:function testValues(){return Object.values!==polyfill$1;}});return polyfill$1;};shim();var marker=\"{{lit-\".concat(String(Math.random()).slice(2),\"}}\");var policy=window.trustedTypes&&trustedTypes.createPolicy('lit-html',{createHTML:function createHTML(s){return s;}});var eventOptionsSupported=false;(function(){try{var options={get capture(){eventOptionsSupported=true;return false;}};window.addEventListener('test',options,options);window.removeEventListener('test',options,options);}catch(_e){}})();if(typeof window!=='undefined'){(window['litHtmlVersions']||(window['litHtmlVersions']=[])).push('1.3.0');}if(typeof window.ShadyCSS==='undefined');else if(typeof window.ShadyCSS.prepareTemplateDom==='undefined'){console.warn(\"Incompatible ShadyCSS version detected. \"+\"Please update to at least @webcomponents/webcomponentsjs@2.0.2 and \"+\"@webcomponents/shadycss@1.3.1.\");}var _a;window.JSCompiler_renameProperty=function(prop,_obj){return prop;};var defaultConverter={toAttribute:function toAttribute(value,type){switch(type){case Boolean:return value?'':null;case Object:case Array:return value==null?value:JSON.stringify(value);}return value;},fromAttribute:function fromAttribute(value,type){switch(type){case Boolean:return value!==null;case Number:return value===null?null:Number(value);case Object:case Array:return JSON.parse(value);}return value;}};var notEqual=function notEqual(value,old){return old!==value&&(old===old||value===value);};var defaultPropertyDeclaration={attribute:true,type:String,converter:defaultConverter,reflect:false,hasChanged:notEqual};var STATE_HAS_UPDATED=1;var STATE_UPDATE_REQUESTED=1<<2;var STATE_IS_REFLECTING_TO_ATTRIBUTE=1<<3;var STATE_IS_REFLECTING_TO_PROPERTY=1<<4;var finalized='finalized';var UpdatingElement=function(_HTMLElement){_inherits(UpdatingElement,_HTMLElement);var _super=_createSuper(UpdatingElement);function UpdatingElement(){var _this2;_classCallCheck(this,UpdatingElement);_this2=_super.call(this);_this2.initialize();return _this2;}_createClass(UpdatingElement,[{key:\"initialize\",value:function initialize(){var _this3=this;this._updateState=0;this._updatePromise=new Promise(function(res){return _this3._enableUpdatingResolver=res;});this._changedProperties=new Map();this._saveInstanceProperties();this.requestUpdateInternal();}},{key:\"_saveInstanceProperties\",value:function _saveInstanceProperties(){var _this4=this;this.constructor._classProperties.forEach(function(_v,p){if(_this4.hasOwnProperty(p)){var value=_this4[p];delete _this4[p];if(!_this4._instanceProperties){_this4._instanceProperties=new Map();}_this4._instanceProperties.set(p,value);}});}},{key:\"_applyInstanceProperties\",value:function _applyInstanceProperties(){var _this5=this;this._instanceProperties.forEach(function(v,p){return _this5[p]=v;});this._instanceProperties=undefined;}},{key:\"connectedCallback\",value:function connectedCallback(){this.enableUpdating();}},{key:\"enableUpdating\",value:function enableUpdating(){if(this._enableUpdatingResolver!==undefined){this._enableUpdatingResolver();this._enableUpdatingResolver=undefined;}}},{key:\"disconnectedCallback\",value:function disconnectedCallback(){}},{key:\"attributeChangedCallback\",value:function attributeChangedCallback(name,old,value){if(old!==value){this._attributeToProperty(name,value);}}},{key:\"_propertyToAttribute\",value:function _propertyToAttribute(name,value){var options=arguments.length>2&&arguments[2]!==undefined?arguments[2]:defaultPropertyDeclaration;var ctor=this.constructor;var attr=ctor._attributeNameForProperty(name,options);if(attr!==undefined){var attrValue=ctor._propertyValueToAttribute(value,options);if(attrValue===undefined){return;}\nthis._updateState=this._updateState|STATE_IS_REFLECTING_TO_ATTRIBUTE;if(attrValue==null){this.removeAttribute(attr);}else{this.setAttribute(attr,attrValue);}\nthis._updateState=this._updateState&~STATE_IS_REFLECTING_TO_ATTRIBUTE;}}},{key:\"_attributeToProperty\",value:function _attributeToProperty(name,value){if(this._updateState&STATE_IS_REFLECTING_TO_ATTRIBUTE){return;}var ctor=this.constructor;var propName=ctor._attributeToPropertyMap.get(name);if(propName!==undefined){var options=ctor.getPropertyOptions(propName);this._updateState=this._updateState|STATE_IS_REFLECTING_TO_PROPERTY;this[propName]=ctor._propertyValueFromAttribute(value,options);this._updateState=this._updateState&~STATE_IS_REFLECTING_TO_PROPERTY;}}},{key:\"requestUpdateInternal\",value:function requestUpdateInternal(name,oldValue,options){var shouldRequestUpdate=true;if(name!==undefined){var ctor=this.constructor;options=options||ctor.getPropertyOptions(name);if(ctor._valueHasChanged(this[name],oldValue,options.hasChanged)){if(!this._changedProperties.has(name)){this._changedProperties.set(name,oldValue);}\nif(options.reflect===true&&!(this._updateState&STATE_IS_REFLECTING_TO_PROPERTY)){if(this._reflectingProperties===undefined){this._reflectingProperties=new Map();}this._reflectingProperties.set(name,options);}}else{shouldRequestUpdate=false;}}if(!this._hasRequestedUpdate&&shouldRequestUpdate){this._updatePromise=this._enqueueUpdate();}}},{key:\"requestUpdate\",value:function requestUpdate(name,oldValue){this.requestUpdateInternal(name,oldValue);return this.updateComplete;}},{key:\"_enqueueUpdate\",value:function(){var _enqueueUpdate2=_asyncToGenerator(regeneratorRuntime.mark(function _callee(){var result;return regeneratorRuntime.wrap(function _callee$(_context2){while(1){switch(_context2.prev=_context2.next){case 0:this._updateState=this._updateState|STATE_UPDATE_REQUESTED;_context2.prev=1;_context2.next=4;return this._updatePromise;case 4:_context2.next=8;break;case 6:_context2.prev=6;_context2.t0=_context2[\"catch\"](1);case 8:result=this.performUpdate();if(!(result!=null)){_context2.next=12;break;}_context2.next=12;return result;case 12:return _context2.abrupt(\"return\",!this._hasRequestedUpdate);case 13:case\"end\":return _context2.stop();}}},_callee,this,[[1,6]]);}));function _enqueueUpdate(){return _enqueueUpdate2.apply(this,arguments);}return _enqueueUpdate;}()},{key:\"performUpdate\",value:function performUpdate(){if(!this._hasRequestedUpdate){return;}\nif(this._instanceProperties){this._applyInstanceProperties();}var shouldUpdate=false;var changedProperties=this._changedProperties;try{shouldUpdate=this.shouldUpdate(changedProperties);if(shouldUpdate){this.update(changedProperties);}else{this._markUpdated();}}catch(e){shouldUpdate=false;this._markUpdated();throw e;}if(shouldUpdate){if(!(this._updateState&STATE_HAS_UPDATED)){this._updateState=this._updateState|STATE_HAS_UPDATED;this.firstUpdated(changedProperties);}this.updated(changedProperties);}}},{key:\"_markUpdated\",value:function _markUpdated(){this._changedProperties=new Map();this._updateState=this._updateState&~STATE_UPDATE_REQUESTED;}},{key:\"_getUpdateComplete\",value:function _getUpdateComplete(){return this._updatePromise;}},{key:\"shouldUpdate\",value:function shouldUpdate(_changedProperties){return true;}},{key:\"update\",value:function update(_changedProperties){var _this6=this;if(this._reflectingProperties!==undefined&&this._reflectingProperties.size>0){this._reflectingProperties.forEach(function(v,k){return _this6._propertyToAttribute(k,_this6[k],v);});this._reflectingProperties=undefined;}this._markUpdated();}},{key:\"updated\",value:function updated(_changedProperties){}},{key:\"firstUpdated\",value:function firstUpdated(_changedProperties){}},{key:\"_hasRequestedUpdate\",get:function get(){return this._updateState&STATE_UPDATE_REQUESTED;}},{key:\"hasUpdated\",get:function get(){return this._updateState&STATE_HAS_UPDATED;}},{key:\"updateComplete\",get:function get(){return this._getUpdateComplete();}}],[{key:\"_ensureClassProperties\",value:function _ensureClassProperties(){var _this7=this;if(!this.hasOwnProperty(JSCompiler_renameProperty('_classProperties',this))){this._classProperties=new Map();var superProperties=Object.getPrototypeOf(this)._classProperties;if(superProperties!==undefined){superProperties.forEach(function(v,k){return _this7._classProperties.set(k,v);});}}}},{key:\"createProperty\",value:function createProperty(name){var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:defaultPropertyDeclaration;this._ensureClassProperties();this._classProperties.set(name,options);if(options.noAccessor||this.prototype.hasOwnProperty(name)){return;}var key=_typeof(name)==='symbol'?Symbol():\"__\".concat(name);var descriptor=this.getPropertyDescriptor(name,key,options);if(descriptor!==undefined){Object.defineProperty(this.prototype,name,descriptor);}}},{key:\"getPropertyDescriptor\",value:function getPropertyDescriptor(name,key,options){return{get:function get(){return this[key];},set:function set(value){var oldValue=this[name];this[key]=value;this.requestUpdateInternal(name,oldValue,options);},configurable:true,enumerable:true};}},{key:\"getPropertyOptions\",value:function getPropertyOptions(name){return this._classProperties&&this._classProperties.get(name)||defaultPropertyDeclaration;}},{key:\"finalize\",value:function finalize(){var superCtor=Object.getPrototypeOf(this);if(!superCtor.hasOwnProperty(finalized)){superCtor.finalize();}this[finalized]=true;this._ensureClassProperties();this._attributeToPropertyMap=new Map();if(this.hasOwnProperty(JSCompiler_renameProperty('properties',this))){var props=this.properties;var propKeys=[].concat(_toConsumableArray(Object.getOwnPropertyNames(props)),_toConsumableArray(typeof Object.getOwnPropertySymbols==='function'?Object.getOwnPropertySymbols(props):[]));var _iterator=_createForOfIteratorHelper(propKeys),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var p=_step.value;this.createProperty(p,props[p]);}}catch(err){_iterator.e(err);}finally{_iterator.f();}}}},{key:\"_attributeNameForProperty\",value:function _attributeNameForProperty(name,options){var attribute=options.attribute;return attribute===false?undefined:typeof attribute==='string'?attribute:typeof name==='string'?name.toLowerCase():undefined;}},{key:\"_valueHasChanged\",value:function _valueHasChanged(value,old){var hasChanged=arguments.length>2&&arguments[2]!==undefined?arguments[2]:notEqual;return hasChanged(value,old);}},{key:\"_propertyValueFromAttribute\",value:function _propertyValueFromAttribute(value,options){var type=options.type;var converter=options.converter||defaultConverter;var fromAttribute=typeof converter==='function'?converter:converter.fromAttribute;return fromAttribute?fromAttribute(value,type):value;}},{key:\"_propertyValueToAttribute\",value:function _propertyValueToAttribute(value,options){if(options.reflect===undefined){return;}var type=options.type;var converter=options.converter;var toAttribute=converter&&converter.toAttribute||defaultConverter.toAttribute;return toAttribute(value,type);}},{key:\"observedAttributes\",get:function get(){var _this8=this;this.finalize();var attributes=[];this._classProperties.forEach(function(v,p){var attr=_this8._attributeNameForProperty(p,v);if(attr!==undefined){_this8._attributeToPropertyMap.set(attr,p);attributes.push(attr);}});return attributes;}}]);return UpdatingElement;}(_wrapNativeSuper(HTMLElement));_a=finalized;UpdatingElement[_a]=true;var standardProperty=function standardProperty(options,element){if(element.kind==='method'&&element.descriptor&&!('value'in element.descriptor)){return Object.assign(Object.assign({},element),{finisher:function finisher(clazz){clazz.createProperty(element.key,options);}});}else{return{kind:'field',key:Symbol(),placement:'own',descriptor:{},initializer:function initializer(){if(typeof element.initializer==='function'){this[element.key]=element.initializer.call(this);}},finisher:function finisher(clazz){clazz.createProperty(element.key,options);}};}};var legacyProperty=function legacyProperty(options,proto,name){proto.constructor.createProperty(name,options);};function property(options){return function(protoOrDescriptor,name){return name!==undefined?legacyProperty(options,protoOrDescriptor,name):standardProperty(options,protoOrDescriptor);};}var supportsAdoptingStyleSheets=window.ShadowRoot&&(window.ShadyCSS===undefined||window.ShadyCSS.nativeShadow)&&'adoptedStyleSheets'in Document.prototype&&'replace'in CSSStyleSheet.prototype;(window['litElementVersions']||(window['litElementVersions']=[])).push('2.4.0');var HAS_WEBXR_DEVICE_API=navigator.xr!=null&&self.XRSession!=null&&navigator.xr.isSessionSupported!=null;var HAS_WEBXR_HIT_TEST_API=HAS_WEBXR_DEVICE_API&&self.XRSession.prototype.requestHitTestSource;var HAS_RESIZE_OBSERVER=self.ResizeObserver!=null;var HAS_INTERSECTION_OBSERVER=self.IntersectionObserver!=null;var IS_WEBXR_AR_CANDIDATE=HAS_WEBXR_HIT_TEST_API;var IS_MOBILE=function(){var userAgent=navigator.userAgent||navigator.vendor||self.opera;var check=false;if(/(android|bb\\d+|meego).+mobile|avantgo|bada\\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(userAgent)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\\-(n|u)|c55\\/|capi|ccwa|cdm\\-|cell|chtm|cldc|cmd\\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\\-s|devi|dica|dmob|do(c|p)o|ds(12|\\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\\-|_)|g1 u|g560|gene|gf\\-5|g\\-mo|go(\\.w|od)|gr(ad|un)|haie|hcit|hd\\-(m|p|t)|hei\\-|hi(pt|ta)|hp( i|ip)|hs\\-c|ht(c(\\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\\-(20|go|ma)|i230|iac( |\\-|\\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\\/)|klon|kpt |kwc\\-|kyo(c|k)|le(no|xi)|lg( g|\\/(k|l|u)|50|54|\\-[a-w])|libw|lynx|m1\\-w|m3ga|m50\\/|ma(te|ui|xo)|mc(01|21|ca)|m\\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\\-2|po(ck|rt|se)|prox|psio|pt\\-g|qa\\-a|qc(07|12|21|32|60|\\-[2-7]|i\\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\\-|oo|p\\-)|sdk\\/|se(c(\\-|0|1)|47|mc|nd|ri)|sgh\\-|shar|sie(\\-|m)|sk\\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\\-|v\\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\\-|tdg\\-|tel(i|m)|tim\\-|t\\-mo|to(pl|sh)|ts(70|m\\-|m3|m5)|tx\\-9|up(\\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\\-|your|zeto|zte\\-/i.test(userAgent.substr(0,4))){check=true;}return check;}();var IS_CHROMEOS=/\\bCrOS\\b/.test(navigator.userAgent);var USE_OFFSCREEN_CANVAS=false;var IS_ANDROID=/android/i.test(navigator.userAgent);var IS_IOS=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!self.MSStream||navigator.platform==='MacIntel'&&navigator.maxTouchPoints>1;var IS_AR_QUICKLOOK_CANDIDATE=function(){var tempAnchor=document.createElement('a');return Boolean(tempAnchor.relList&&tempAnchor.relList.supports&&tempAnchor.relList.supports('ar'));}();var IS_SAFARI=/Safari\\//.test(navigator.userAgent);var IS_FIREFOX=/firefox/i.test(navigator.userAgent);var IS_OCULUS=/OculusBrowser/.test(navigator.userAgent);var IS_IOS_CHROME=IS_IOS&&/CriOS\\//.test(navigator.userAgent);var IS_IOS_SAFARI=IS_IOS&&IS_SAFARI;var IS_SCENEVIEWER_CANDIDATE=IS_ANDROID&&!IS_FIREFOX&&!IS_OCULUS;var CloseIcon=\"\\n<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" width=\\\"24px\\\" height=\\\"24px\\\" viewBox=\\\"0 0 24 24\\\" fill=\\\"#000000\\\">\\n    <!-- NOTE(cdata): This SVG filter is a stop-gap until we can implement\\n         support for dynamic re-coloring of UI components -->\\n    <defs>\\n      <filter id=\\\"drop-shadow\\\" x=\\\"-100%\\\" y=\\\"-100%\\\" width=\\\"300%\\\" height=\\\"300%\\\">\\n        <feGaussianBlur in=\\\"SourceAlpha\\\" stdDeviation=\\\"1\\\"/>\\n        <feOffset dx=\\\"0\\\" dy=\\\"0\\\" result=\\\"offsetblur\\\"/>\\n        <feFlood flood-color=\\\"#000000\\\"/>\\n        <feComposite in2=\\\"offsetblur\\\" operator=\\\"in\\\"/>\\n        <feMerge>\\n          <feMergeNode/>\\n          <feMergeNode in=\\\"SourceGraphic\\\"/>\\n        </feMerge>\\n      </filter>\\n    </defs>\\n    <path filter=\\\"url(#drop-shadow)\\\" d=\\\"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\\\"/>\\n    <path d=\\\"M0 0h24v24H0z\\\" fill=\\\"none\\\"/>\\n</svg>\";var ControlsPrompt=\"\\n<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" xmlns:xlink=\\\"http://www.w3.org/1999/xlink\\\" width=\\\"25\\\" height=\\\"36\\\">\\n    <defs>\\n        <path id=\\\"A\\\" d=\\\"M.001.232h24.997V36H.001z\\\" />\\n    </defs>\\n    <g transform=\\\"translate(-11 -4)\\\" fill=\\\"none\\\" fill-rule=\\\"evenodd\\\">\\n        <path fill-opacity=\\\"0\\\" fill=\\\"#fff\\\" d=\\\"M0 0h44v44H0z\\\" />\\n        <g transform=\\\"translate(11 3)\\\">\\n            <path d=\\\"M8.733 11.165c.04-1.108.766-2.027 1.743-2.307a2.54 2.54 0 0 1 .628-.089c.16 0 .314.017.463.044 1.088.2 1.9 1.092 1.9 2.16v8.88h1.26c2.943-1.39 5-4.45 5-8.025a9.01 9.01 0 0 0-1.9-5.56l-.43-.5c-.765-.838-1.683-1.522-2.712-2-1.057-.49-2.226-.77-3.46-.77s-2.4.278-3.46.77c-1.03.478-1.947 1.162-2.71 2l-.43.5a9.01 9.01 0 0 0-1.9 5.56 9.04 9.04 0 0 0 .094 1.305c.03.21.088.41.13.617l.136.624c.083.286.196.56.305.832l.124.333a8.78 8.78 0 0 0 .509.953l.065.122a8.69 8.69 0 0 0 3.521 3.191l1.11.537v-9.178z\\\" fill-opacity=\\\".5\\\" fill=\\\"#e4e4e4\\\" />\\n            <path d=\\\"M22.94 26.218l-2.76 7.74c-.172.485-.676.8-1.253.8H12.24c-1.606 0-3.092-.68-3.98-1.82-1.592-2.048-3.647-3.822-6.11-5.27-.095-.055-.15-.137-.152-.23-.004-.1.046-.196.193-.297.56-.393 1.234-.6 1.926-.6a3.43 3.43 0 0 1 .691.069l4.922.994V10.972c0-.663.615-1.203 1.37-1.203s1.373.54 1.373 1.203v9.882h2.953c.273 0 .533.073.757.21l6.257 3.874c.027.017.045.042.07.06.41.296.586.77.426 1.22M4.1 16.614c-.024-.04-.042-.083-.065-.122a8.69 8.69 0 0 1-.509-.953c-.048-.107-.08-.223-.124-.333l-.305-.832c-.058-.202-.09-.416-.136-.624l-.13-.617a9.03 9.03 0 0 1-.094-1.305c0-2.107.714-4.04 1.9-5.56l.43-.5c.764-.84 1.682-1.523 2.71-2 1.058-.49 2.226-.77 3.46-.77s2.402.28 3.46.77c1.03.477 1.947 1.16 2.712 2l.428.5a9 9 0 0 1 1.901 5.559c0 3.577-2.056 6.636-5 8.026h-1.26v-8.882c0-1.067-.822-1.96-1.9-2.16-.15-.028-.304-.044-.463-.044-.22 0-.427.037-.628.09-.977.28-1.703 1.198-1.743 2.306v9.178l-1.11-.537C6.18 19.098 4.96 18 4.1 16.614M22.97 24.09l-6.256-3.874c-.102-.063-.218-.098-.33-.144 2.683-1.8 4.354-4.855 4.354-8.243 0-.486-.037-.964-.104-1.43a9.97 9.97 0 0 0-1.57-4.128l-.295-.408-.066-.092a10.05 10.05 0 0 0-.949-1.078c-.342-.334-.708-.643-1.094-.922-1.155-.834-2.492-1.412-3.94-1.65l-.732-.088-.748-.03a9.29 9.29 0 0 0-1.482.119c-1.447.238-2.786.816-3.94 1.65a9.33 9.33 0 0 0-.813.686 9.59 9.59 0 0 0-.845.877l-.385.437-.36.5-.288.468-.418.778-.04.09c-.593 1.28-.93 2.71-.93 4.222 0 3.832 2.182 7.342 5.56 8.938l1.437.68v4.946L5 25.64a4.44 4.44 0 0 0-.888-.086c-.017 0-.034.003-.05.003-.252.004-.503.033-.75.08a5.08 5.08 0 0 0-.237.056c-.193.046-.382.107-.568.18-.075.03-.15.057-.225.1-.25.114-.494.244-.723.405a1.31 1.31 0 0 0-.566 1.122 1.28 1.28 0 0 0 .645 1.051C4 29.925 5.96 31.614 7.473 33.563a5.06 5.06 0 0 0 .434.491c1.086 1.082 2.656 1.713 4.326 1.715h6.697c.748-.001 1.43-.333 1.858-.872.142-.18.256-.38.336-.602l2.757-7.74c.094-.26.13-.53.112-.794s-.088-.52-.203-.76a2.19 2.19 0 0 0-.821-.91\\\" fill-opacity=\\\".6\\\" fill=\\\"#000\\\" />\\n            <path d=\\\"M22.444 24.94l-6.257-3.874a1.45 1.45 0 0 0-.757-.211h-2.953v-9.88c0-.663-.616-1.203-1.373-1.203s-1.37.54-1.37 1.203v16.643l-4.922-.994a3.44 3.44 0 0 0-.692-.069 3.35 3.35 0 0 0-1.925.598c-.147.102-.198.198-.194.298.004.094.058.176.153.23 2.462 1.448 4.517 3.22 6.11 5.27.887 1.14 2.373 1.82 3.98 1.82h6.686c.577 0 1.08-.326 1.253-.8l2.76-7.74c.16-.448-.017-.923-.426-1.22-.025-.02-.043-.043-.07-.06z\\\" fill=\\\"#fff\\\" />\\n            <g transform=\\\"translate(0 .769)\\\">\\n                <mask id=\\\"B\\\" fill=\\\"#fff\\\">\\n                    <use xlink:href=\\\"#A\\\" />\\n                </mask>\\n                <path d=\\\"M23.993 24.992a1.96 1.96 0 0 1-.111.794l-2.758 7.74c-.08.22-.194.423-.336.602-.427.54-1.11.87-1.857.872h-6.698c-1.67-.002-3.24-.633-4.326-1.715-.154-.154-.3-.318-.434-.49C5.96 30.846 4 29.157 1.646 27.773c-.385-.225-.626-.618-.645-1.05a1.31 1.31 0 0 1 .566-1.122 4.56 4.56 0 0 1 .723-.405l.225-.1a4.3 4.3 0 0 1 .568-.18l.237-.056c.248-.046.5-.075.75-.08.018 0 .034-.003.05-.003.303-.001.597.027.89.086l3.722.752V20.68l-1.436-.68c-3.377-1.596-5.56-5.106-5.56-8.938 0-1.51.336-2.94.93-4.222.015-.03.025-.06.04-.09.127-.267.268-.525.418-.778.093-.16.186-.316.288-.468.063-.095.133-.186.2-.277L3.773 5c.118-.155.26-.29.385-.437.266-.3.544-.604.845-.877a9.33 9.33 0 0 1 .813-.686C6.97 2.167 8.31 1.59 9.757 1.35a9.27 9.27 0 0 1 1.481-.119 8.82 8.82 0 0 1 .748.031c.247.02.49.05.733.088 1.448.238 2.786.816 3.94 1.65.387.28.752.588 1.094.922a9.94 9.94 0 0 1 .949 1.078l.066.092c.102.133.203.268.295.408a9.97 9.97 0 0 1 1.571 4.128c.066.467.103.945.103 1.43 0 3.388-1.67 6.453-4.353 8.243.11.046.227.08.33.144l6.256 3.874c.37.23.645.55.82.9.115.24.185.498.203.76m.697-1.195c-.265-.55-.677-1.007-1.194-1.326l-5.323-3.297c2.255-2.037 3.564-4.97 3.564-8.114 0-2.19-.637-4.304-1.84-6.114-.126-.188-.26-.37-.4-.552-.645-.848-1.402-1.6-2.252-2.204C15.472.91 13.393.232 11.238.232A10.21 10.21 0 0 0 5.23 2.19c-.848.614-1.606 1.356-2.253 2.205-.136.18-.272.363-.398.55C1.374 6.756.737 8.87.737 11.06c0 4.218 2.407 8.08 6.133 9.842l.863.41v3.092l-2.525-.51c-.356-.07-.717-.106-1.076-.106a5.45 5.45 0 0 0-3.14.996c-.653.46-1.022 1.202-.99 1.983a2.28 2.28 0 0 0 1.138 1.872c2.24 1.318 4.106 2.923 5.543 4.772 1.26 1.62 3.333 2.59 5.55 2.592h6.698c1.42-.001 2.68-.86 3.134-2.138l2.76-7.74c.272-.757.224-1.584-.134-2.325\\\" fill-opacity=\\\".05\\\" fill=\\\"#000\\\" mask=\\\"url(#B)\\\" />\\n            </g>\\n        </g>\\n    </g>\\n</svg>\";var ARGlyph=\"\\n<svg version=\\\"1.1\\\" id=\\\"view_x5F_in_x5F_AR_x5F_icon\\\"\\n\\t xmlns=\\\"http://www.w3.org/2000/svg\\\" xmlns:xlink=\\\"http://www.w3.org/1999/xlink\\\" x=\\\"0px\\\" y=\\\"0px\\\" width=\\\"24px\\\" height=\\\"24px\\\"\\n\\t viewBox=\\\"0 0 24 24\\\" enable-background=\\\"new 0 0 24 24\\\" xml:space=\\\"preserve\\\">\\n<rect id=\\\"Bounding_Box\\\" x=\\\"0\\\" y=\\\"0\\\" fill=\\\"none\\\" width=\\\"24\\\" height=\\\"24\\\"/>\\n<g id=\\\"Art_layer\\\">\\n\\t<path d=\\\"M3,4c0-0.55,0.45-1,1-1h2V1H4C2.35,1,1,2.35,1,4v2h2V4z\\\"/>\\n\\t<path d=\\\"M20,3c0.55,0,1,0.45,1,1v2h2V4c0-1.65-1.35-3-3-3h-2v2H20z\\\"/>\\n\\t<path d=\\\"M4,21c-0.55,0-1-0.45-1-1v-2H1v2c0,1.65,1.35,3,3,3h2v-2H4z\\\"/>\\n\\t<path d=\\\"M20,21c0.55,0,1-0.45,1-1v-2h2v2c0,1.65-1.35,3-3,3h-2v-2H20z\\\"/>\\n\\t<g>\\n\\t\\t<path d=\\\"M18.25,7.6l-5.5-3.18c-0.46-0.27-1.04-0.27-1.5,0L5.75,7.6C5.29,7.87,5,8.36,5,8.9v6.35c0,0.54,0.29,1.03,0.75,1.3\\n\\t\\t\\tl5.5,3.18c0.46,0.27,1.04,0.27,1.5,0l5.5-3.18c0.46-0.27,0.75-0.76,0.75-1.3V8.9C19,8.36,18.71,7.87,18.25,7.6z M7,14.96v-4.62\\n\\t\\t\\tl4,2.32v4.61L7,14.96z M12,10.93L8,8.61l4-2.31l4,2.31L12,10.93z M13,17.27v-4.61l4-2.32v4.62L13,17.27z\\\"/>\\n\\t</g>\\n</g>\\n</svg>\";var template=document.createElement('template');template.innerHTML=\"\\n<style>\\n:host {\\n  display: block;\\n  position: relative;\\n  contain: strict;\\n  width: 300px;\\n  height: 150px;\\n}\\n\\n/* NOTE: This ruleset is our integration surface area with the\\n * :focus-visible polyfill.\\n *\\n * @see https://github.com/WICG/focus-visible/pull/196 */\\n:host([data-js-focus-visible]:focus:not(.focus-visible)),\\n:host([data-js-focus-visible]) :focus:not(.focus-visible) {\\n  outline: none;\\n}\\n\\n.container {\\n  position: relative;\\n}\\n\\n.userInput {\\n  width: 100%;\\n  height: 100%;\\n  display: block;\\n  position: relative;\\n  overflow: hidden;\\n}\\n\\ncanvas {\\n  position: absolute;\\n  display: none;\\n  pointer-events: none;\\n  /* NOTE(cdata): Chrome 76 and below apparently have a bug\\n   * that causes our canvas not to display pixels unless it is\\n   * on its own render layer\\n   * @see https://github.com/google/model-viewer/pull/755#issuecomment-536597893\\n   */\\n  transform: translateZ(0);\\n}\\n\\ncanvas.show {\\n  display: block;\\n}\\n\\n/* Adapted from HTML5 Boilerplate\\n *\\n * @see https://github.com/h5bp/html5-boilerplate/blob/ceb4620c78fc82e13534fc44202a3f168754873f/dist/css/main.css#L122-L133 */\\n.screen-reader-only {\\n  border: 0;\\n  clip: rect(0, 0, 0, 0);\\n  height: 1px;\\n  margin: -1px;\\n  overflow: hidden;\\n  padding: 0;\\n  position: absolute;\\n  white-space: nowrap;\\n  width: 1px;\\n}\\n\\n.slot {\\n  position: absolute;\\n  pointer-events: none;\\n  top: 0;\\n  left: 0;\\n  width: 100%;\\n  height: 100%;\\n}\\n\\n.slot > * {\\n  pointer-events: initial;\\n}\\n\\n.annotation-wrapper ::slotted(*) {\\n  opacity: var(--max-hotspot-opacity, 1);\\n  transition: opacity 0.3s;\\n}\\n\\n.pointer-tumbling .annotation-wrapper ::slotted(*) {\\n  pointer-events: none;\\n}\\n\\n.annotation-wrapper ::slotted(*) {\\n  pointer-events: initial;\\n}\\n\\n.annotation-wrapper.hide ::slotted(*) {\\n  opacity: var(--min-hotspot-opacity, 0.25);\\n}\\n\\n.slot.poster {\\n  opacity: 0;\\n  transition: opacity 0.3s 0.3s;\\n  background-color: inherit;\\n}\\n\\n.slot.poster.show {\\n  opacity: 1;\\n  transition: none;\\n}\\n\\n.slot.poster > * {\\n  pointer-events: initial;\\n}\\n\\n.slot.poster:not(.show) > * {\\n  pointer-events: none;\\n}\\n\\n#default-poster {\\n  width: 100%;\\n  height: 100%;\\n  /* The default poster is a <button> so we need to set display\\n   * to prevent it from being affected by text-align: */\\n  display: block;\\n  position: absolute;\\n  border: none;\\n  padding: 0;\\n  background-size: contain;\\n  background-repeat: no-repeat;\\n  background-position: center;\\n  background-color: var(--poster-color, #fff);\\n  background-image: var(--poster-image, none);\\n}\\n\\n#default-progress-bar {\\n  display: block;\\n  position: relative;\\n  width: 100%;\\n  height: 100%;\\n  pointer-events: none;\\n  overflow: hidden;\\n}\\n\\n#default-progress-bar > .mask {\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  width: 100%;\\n  height: 100%;\\n  background: var(--progress-mask, #fff);\\n  transition: opacity 0.3s;\\n  opacity: 0.2;\\n}\\n\\n#default-progress-bar > .bar {\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  width: 100%;\\n  height: var(--progress-bar-height, 5px);\\n  transition: transform 0.09s;\\n  transform-origin: top left;\\n  transform: scaleX(0);\\n  overflow: hidden;\\n}\\n\\n#default-progress-bar > .bar:before {\\n  content: '';\\n  display: block;\\n  top: 0;\\n  left: 0;\\n  width: 100%;\\n  height: 100%;\\n\\n  background-color: var(--progress-bar-color, rgba(0, 0, 0, 0.4));\\n\\n  transition: none;\\n  transform-origin: top left;\\n  transform: translateY(0);\\n}\\n\\n#default-progress-bar > .bar.hide:before {\\n  transition: transform 0.3s 1s;\\n  transform: translateY(-100%);\\n}\\n\\n.slot.interaction-prompt {\\n  display: var(--interaction-prompt-display, flex);\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  width: 100%;\\n  height: 100%;\\n  pointer-events: none;\\n  align-items: center;\\n  justify-content: center;\\n\\n  opacity: 0;\\n  will-change: opacity;\\n  overflow: hidden;\\n  transition: opacity 0.3s;\\n}\\n\\n.slot.interaction-prompt.visible {\\n  opacity: 1;\\n}\\n\\n.slot.interaction-prompt > .animated-container {\\n  will-change: transform, opacity;\\n}\\n\\n.slot.interaction-prompt > * {\\n  pointer-events: none;\\n}\\n\\n.slot.ar-button {\\n  -moz-user-select: none;\\n  -webkit-tap-highlight-color: transparent;\\n  user-select: none;\\n\\n  display: var(--ar-button-display, block);\\n}\\n\\n.slot.ar-button:not(.enabled) {\\n  display: none;\\n}\\n\\n.fab {\\n  display: flex;\\n  align-items: center;\\n  justify-content: center;\\n  box-sizing: border-box;\\n  width: 40px;\\n  height: 40px;\\n  cursor: pointer;\\n  background-color: #fff;\\n  box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.15);\\n  border-radius: 100px;\\n}\\n\\n.fab > * {\\n  opacity: 0.87;\\n}\\n\\n#default-ar-button {\\n  position: absolute;\\n  bottom: 16px;\\n  right: 16px;\\n  transform: scale(var(--ar-button-scale, 1));\\n  transform-origin: bottom right;\\n}\\n\\n.slot.default {\\n  pointer-events: none;\\n}\\n\\n.slot.progress-bar {\\n  pointer-events: none;\\n}\\n\\n.slot.exit-webxr-ar-button {\\n  pointer-events: none;\\n}\\n\\n.slot.exit-webxr-ar-button:not(.enabled) {\\n  display: none;\\n}\\n\\n#default-exit-webxr-ar-button {\\n  display: flex;\\n  align-items: center;\\n  justify-content: center;\\n  position: absolute;\\n  top: 16px;\\n  left: 16px;\\n  width: 40px;\\n  height: 40px;\\n  box-sizing: border-box;\\n}\\n\\n#default-exit-webxr-ar-button > svg {\\n  fill: #fff;\\n}\\n</style>\\n<div class=\\\"container\\\">\\n  <div class=\\\"userInput\\\" tabindex=\\\"0\\\" role=\\\"img\\\"\\n      aria-label=\\\"A depiction of a 3D model\\\"\\n      aria-live=\\\"polite\\\">\\n    <canvas></canvas>\\n  </div>\\n\\n  <!-- NOTE(cdata): We need to wrap slots because browsers without ShadowDOM\\n        will have their <slot> elements removed by ShadyCSS -->\\n  <div class=\\\"slot poster\\\">\\n    <slot name=\\\"poster\\\">\\n      <button type=\\\"button\\\" id=\\\"default-poster\\\" aria-hidden=\\\"true\\\" aria-label=\\\"Activate to view in 3D!\\\"></button>\\n    </slot>\\n  </div>\\n\\n  <div class=\\\"slot ar-button\\\">\\n    <slot name=\\\"ar-button\\\">\\n      <a id=\\\"default-ar-button\\\" class=\\\"fab\\\"\\n          tabindex=\\\"2\\\"\\n          aria-label=\\\"View this 3D model up close\\\">\\n        \".concat(ARGlyph,\"\\n      </a>\\n    </slot>\\n  </div>\\n\\n  <div class=\\\"slot interaction-prompt\\\">\\n    <div class=\\\"animated-container\\\" part=\\\"interaction-prompt\\\">\\n      <slot name=\\\"interaction-prompt\\\" aria-hidden=\\\"true\\\">\\n        \").concat(ControlsPrompt,\"\\n      </slot>\\n    </div>\\n  </div>\\n\\n  <div class=\\\"slot default\\\">\\n    <slot></slot>\\n\\n    <div class=\\\"slot progress-bar\\\">\\n      <slot name=\\\"progress-bar\\\">\\n        <div id=\\\"default-progress-bar\\\" aria-hidden=\\\"true\\\">\\n          <div class=\\\"mask\\\"></div>\\n          <div class=\\\"bar\\\"></div>\\n        </div>\\n      </slot>\\n    </div>\\n    \\n    <div class=\\\"slot exit-webxr-ar-button\\\">\\n      <slot name=\\\"exit-webxr-ar-button\\\">\\n        <a id=\\\"default-exit-webxr-ar-button\\\"\\n            tabindex=\\\"3\\\"\\n            aria-label=\\\"Exit AR\\\"\\n            aria-hidden=\\\"true\\\">\\n          \").concat(CloseIcon,\"\\n        </a>\\n      </slot>\\n    </div>\\n  </div>\\n</div>\");var makeTemplate=function makeTemplate(tagName){var clone=document.createElement('template');clone.innerHTML=template.innerHTML;if(window.ShadyCSS){window.ShadyCSS.prepareTemplate(clone,tagName);}return clone;};var REVISION='121';var CullFaceNone=0;var CullFaceBack=1;var CullFaceFront=2;var PCFShadowMap=1;var PCFSoftShadowMap=2;var VSMShadowMap=3;var FrontSide=0;var BackSide=1;var DoubleSide=2;var FlatShading=1;var NoBlending=0;var NormalBlending=1;var AdditiveBlending=2;var SubtractiveBlending=3;var MultiplyBlending=4;var CustomBlending=5;var AddEquation=100;var SubtractEquation=101;var ReverseSubtractEquation=102;var MinEquation=103;var MaxEquation=104;var ZeroFactor=200;var OneFactor=201;var SrcColorFactor=202;var OneMinusSrcColorFactor=203;var SrcAlphaFactor=204;var OneMinusSrcAlphaFactor=205;var DstAlphaFactor=206;var OneMinusDstAlphaFactor=207;var DstColorFactor=208;var OneMinusDstColorFactor=209;var SrcAlphaSaturateFactor=210;var NeverDepth=0;var AlwaysDepth=1;var LessDepth=2;var LessEqualDepth=3;var EqualDepth=4;var GreaterEqualDepth=5;var GreaterDepth=6;var NotEqualDepth=7;var MultiplyOperation=0;var MixOperation=1;var AddOperation=2;var NoToneMapping=0;var LinearToneMapping=1;var ReinhardToneMapping=2;var CineonToneMapping=3;var ACESFilmicToneMapping=4;var CustomToneMapping=5;var UVMapping=300;var CubeReflectionMapping=301;var CubeRefractionMapping=302;var EquirectangularReflectionMapping=303;var EquirectangularRefractionMapping=304;var CubeUVReflectionMapping=306;var CubeUVRefractionMapping=307;var RepeatWrapping=1000;var ClampToEdgeWrapping=1001;var MirroredRepeatWrapping=1002;var NearestFilter=1003;var NearestMipmapNearestFilter=1004;var NearestMipmapLinearFilter=1005;var LinearFilter=1006;var LinearMipmapNearestFilter=1007;var LinearMipmapLinearFilter=1008;var UnsignedByteType=1009;var ByteType=1010;var ShortType=1011;var UnsignedShortType=1012;var IntType=1013;var UnsignedIntType=1014;var FloatType=1015;var HalfFloatType=1016;var UnsignedShort4444Type=1017;var UnsignedShort5551Type=1018;var UnsignedShort565Type=1019;var UnsignedInt248Type=1020;var AlphaFormat=1021;var RGBFormat=1022;var RGBAFormat=1023;var LuminanceFormat=1024;var LuminanceAlphaFormat=1025;var RGBEFormat=RGBAFormat;var DepthFormat=1026;var DepthStencilFormat=1027;var RedFormat=1028;var RedIntegerFormat=1029;var RGFormat=1030;var RGIntegerFormat=1031;var RGBIntegerFormat=1032;var RGBAIntegerFormat=1033;var RGB_S3TC_DXT1_Format=33776;var RGBA_S3TC_DXT1_Format=33777;var RGBA_S3TC_DXT3_Format=33778;var RGBA_S3TC_DXT5_Format=33779;var RGB_PVRTC_4BPPV1_Format=35840;var RGB_PVRTC_2BPPV1_Format=35841;var RGBA_PVRTC_4BPPV1_Format=35842;var RGBA_PVRTC_2BPPV1_Format=35843;var RGB_ETC1_Format=36196;var RGB_ETC2_Format=37492;var RGBA_ETC2_EAC_Format=37496;var RGBA_ASTC_4x4_Format=37808;var RGBA_ASTC_5x4_Format=37809;var RGBA_ASTC_5x5_Format=37810;var RGBA_ASTC_6x5_Format=37811;var RGBA_ASTC_6x6_Format=37812;var RGBA_ASTC_8x5_Format=37813;var RGBA_ASTC_8x6_Format=37814;var RGBA_ASTC_8x8_Format=37815;var RGBA_ASTC_10x5_Format=37816;var RGBA_ASTC_10x6_Format=37817;var RGBA_ASTC_10x8_Format=37818;var RGBA_ASTC_10x10_Format=37819;var RGBA_ASTC_12x10_Format=37820;var RGBA_ASTC_12x12_Format=37821;var RGBA_BPTC_Format=36492;var SRGB8_ALPHA8_ASTC_4x4_Format=37840;var SRGB8_ALPHA8_ASTC_5x4_Format=37841;var SRGB8_ALPHA8_ASTC_5x5_Format=37842;var SRGB8_ALPHA8_ASTC_6x5_Format=37843;var SRGB8_ALPHA8_ASTC_6x6_Format=37844;var SRGB8_ALPHA8_ASTC_8x5_Format=37845;var SRGB8_ALPHA8_ASTC_8x6_Format=37846;var SRGB8_ALPHA8_ASTC_8x8_Format=37847;var SRGB8_ALPHA8_ASTC_10x5_Format=37848;var SRGB8_ALPHA8_ASTC_10x6_Format=37849;var SRGB8_ALPHA8_ASTC_10x8_Format=37850;var SRGB8_ALPHA8_ASTC_10x10_Format=37851;var SRGB8_ALPHA8_ASTC_12x10_Format=37852;var SRGB8_ALPHA8_ASTC_12x12_Format=37853;var LoopOnce=2200;var LoopRepeat=2201;var LoopPingPong=2202;var InterpolateDiscrete=2300;var InterpolateLinear=2301;var InterpolateSmooth=2302;var ZeroCurvatureEnding=2400;var ZeroSlopeEnding=2401;var WrapAroundEnding=2402;var NormalAnimationBlendMode=2500;var AdditiveAnimationBlendMode=2501;var TrianglesDrawMode=0;var TriangleStripDrawMode=1;var TriangleFanDrawMode=2;var LinearEncoding=3000;var sRGBEncoding=3001;var GammaEncoding=3007;var RGBEEncoding=3002;var LogLuvEncoding=3003;var RGBM7Encoding=3004;var RGBM16Encoding=3005;var RGBDEncoding=3006;var BasicDepthPacking=3200;var RGBADepthPacking=3201;var TangentSpaceNormalMap=0;var ObjectSpaceNormalMap=1;var KeepStencilOp=7680;var AlwaysStencilFunc=519;var StaticDrawUsage=35044;var DynamicDrawUsage=35048;var GLSL3=\"300 es\";function EventDispatcher(){}Object.assign(EventDispatcher.prototype,{addEventListener:function addEventListener(type,listener){if(this._listeners===undefined)this._listeners={};var listeners=this._listeners;if(listeners[type]===undefined){listeners[type]=[];}if(listeners[type].indexOf(listener)===-1){listeners[type].push(listener);}},hasEventListener:function hasEventListener(type,listener){if(this._listeners===undefined)return false;var listeners=this._listeners;return listeners[type]!==undefined&&listeners[type].indexOf(listener)!==-1;},removeEventListener:function removeEventListener(type,listener){if(this._listeners===undefined)return;var listeners=this._listeners;var listenerArray=listeners[type];if(listenerArray!==undefined){var index=listenerArray.indexOf(listener);if(index!==-1){listenerArray.splice(index,1);}}},dispatchEvent:function dispatchEvent(event){if(this._listeners===undefined)return;var listeners=this._listeners;var listenerArray=listeners[event.type];if(listenerArray!==undefined){event.target=this;var array=listenerArray.slice(0);for(var i=0,l=array.length;i<l;i++){array[i].call(this,event);}}}});var _lut=[];for(var i=0;i<256;i++){_lut[i]=(i<16?'0':'')+i.toString(16);}var _seed=1234567;var MathUtils={DEG2RAD:Math.PI/180,RAD2DEG:180/Math.PI,generateUUID:function generateUUID(){var d0=Math.random()*0xffffffff|0;var d1=Math.random()*0xffffffff|0;var d2=Math.random()*0xffffffff|0;var d3=Math.random()*0xffffffff|0;var uuid=_lut[d0&0xff]+_lut[d0>>8&0xff]+_lut[d0>>16&0xff]+_lut[d0>>24&0xff]+'-'+_lut[d1&0xff]+_lut[d1>>8&0xff]+'-'+_lut[d1>>16&0x0f|0x40]+_lut[d1>>24&0xff]+'-'+_lut[d2&0x3f|0x80]+_lut[d2>>8&0xff]+'-'+_lut[d2>>16&0xff]+_lut[d2>>24&0xff]+_lut[d3&0xff]+_lut[d3>>8&0xff]+_lut[d3>>16&0xff]+_lut[d3>>24&0xff];return uuid.toUpperCase();},clamp:function clamp(value,min,max){return Math.max(min,Math.min(max,value));},euclideanModulo:function euclideanModulo(n,m){return(n%m+m)%m;},mapLinear:function mapLinear(x,a1,a2,b1,b2){return b1+(x-a1)*(b2-b1)/(a2-a1);},lerp:function lerp(x,y,t){return(1-t)*x+t*y;},smoothstep:function smoothstep(x,min,max){if(x<=min)return 0;if(x>=max)return 1;x=(x-min)/(max-min);return x*x*(3-2*x);},smootherstep:function smootherstep(x,min,max){if(x<=min)return 0;if(x>=max)return 1;x=(x-min)/(max-min);return x*x*x*(x*(x*6-15)+10);},randInt:function randInt(low,high){return low+Math.floor(Math.random()*(high-low+1));},randFloat:function randFloat(low,high){return low+Math.random()*(high-low);},randFloatSpread:function randFloatSpread(range){return range*(0.5-Math.random());},seededRandom:function seededRandom(s){if(s!==undefined)_seed=s%2147483647;_seed=_seed*16807%2147483647;return(_seed-1)/2147483646;},degToRad:function degToRad(degrees){return degrees*MathUtils.DEG2RAD;},radToDeg:function radToDeg(radians){return radians*MathUtils.RAD2DEG;},isPowerOfTwo:function isPowerOfTwo(value){return(value&value-1)===0&&value!==0;},ceilPowerOfTwo:function ceilPowerOfTwo(value){return Math.pow(2,Math.ceil(Math.log(value)/Math.LN2));},floorPowerOfTwo:function floorPowerOfTwo(value){return Math.pow(2,Math.floor(Math.log(value)/Math.LN2));},setQuaternionFromProperEuler:function setQuaternionFromProperEuler(q,a,b,c,order){var cos=Math.cos;var sin=Math.sin;var c2=cos(b/2);var s2=sin(b/2);var c13=cos((a+c)/2);var s13=sin((a+c)/2);var c1_3=cos((a-c)/2);var s1_3=sin((a-c)/2);var c3_1=cos((c-a)/2);var s3_1=sin((c-a)/2);switch(order){case'XYX':q.set(c2*s13,s2*c1_3,s2*s1_3,c2*c13);break;case'YZY':q.set(s2*s1_3,c2*s13,s2*c1_3,c2*c13);break;case'ZXZ':q.set(s2*c1_3,s2*s1_3,c2*s13,c2*c13);break;case'XZX':q.set(c2*s13,s2*s3_1,s2*c3_1,c2*c13);break;case'YXY':q.set(s2*c3_1,c2*s13,s2*s3_1,c2*c13);break;case'ZYZ':q.set(s2*s3_1,s2*c3_1,c2*s13,c2*c13);break;default:console.warn('THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: '+order);}}};var Vector2=function(){function Vector2(){var x=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var y=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;_classCallCheck(this,Vector2);Object.defineProperty(this,'isVector2',{value:true});this.x=x;this.y=y;}_createClass(Vector2,[{key:\"set\",value:function set(x,y){this.x=x;this.y=y;return this;}},{key:\"setScalar\",value:function setScalar(scalar){this.x=scalar;this.y=scalar;return this;}},{key:\"setX\",value:function setX(x){this.x=x;return this;}},{key:\"setY\",value:function setY(y){this.y=y;return this;}},{key:\"setComponent\",value:function setComponent(index,value){switch(index){case 0:this.x=value;break;case 1:this.y=value;break;default:throw new Error('index is out of range: '+index);}return this;}},{key:\"getComponent\",value:function getComponent(index){switch(index){case 0:return this.x;case 1:return this.y;default:throw new Error('index is out of range: '+index);}}},{key:\"clone\",value:function clone(){return new this.constructor(this.x,this.y);}},{key:\"copy\",value:function copy(v){this.x=v.x;this.y=v.y;return this;}},{key:\"add\",value:function add(v,w){if(w!==undefined){console.warn('THREE.Vector2: .add() now only accepts one argument. Use .addVectors( a, b ) instead.');return this.addVectors(v,w);}this.x+=v.x;this.y+=v.y;return this;}},{key:\"addScalar\",value:function addScalar(s){this.x+=s;this.y+=s;return this;}},{key:\"addVectors\",value:function addVectors(a,b){this.x=a.x+b.x;this.y=a.y+b.y;return this;}},{key:\"addScaledVector\",value:function addScaledVector(v,s){this.x+=v.x*s;this.y+=v.y*s;return this;}},{key:\"sub\",value:function sub(v,w){if(w!==undefined){console.warn('THREE.Vector2: .sub() now only accepts one argument. Use .subVectors( a, b ) instead.');return this.subVectors(v,w);}this.x-=v.x;this.y-=v.y;return this;}},{key:\"subScalar\",value:function subScalar(s){this.x-=s;this.y-=s;return this;}},{key:\"subVectors\",value:function subVectors(a,b){this.x=a.x-b.x;this.y=a.y-b.y;return this;}},{key:\"multiply\",value:function multiply(v){this.x*=v.x;this.y*=v.y;return this;}},{key:\"multiplyScalar\",value:function multiplyScalar(scalar){this.x*=scalar;this.y*=scalar;return this;}},{key:\"divide\",value:function divide(v){this.x/=v.x;this.y/=v.y;return this;}},{key:\"divideScalar\",value:function divideScalar(scalar){return this.multiplyScalar(1/scalar);}},{key:\"applyMatrix3\",value:function applyMatrix3(m){var x=this.x,y=this.y;var e=m.elements;this.x=e[0]*x+e[3]*y+e[6];this.y=e[1]*x+e[4]*y+e[7];return this;}},{key:\"min\",value:function min(v){this.x=Math.min(this.x,v.x);this.y=Math.min(this.y,v.y);return this;}},{key:\"max\",value:function max(v){this.x=Math.max(this.x,v.x);this.y=Math.max(this.y,v.y);return this;}},{key:\"clamp\",value:function clamp(min,max){this.x=Math.max(min.x,Math.min(max.x,this.x));this.y=Math.max(min.y,Math.min(max.y,this.y));return this;}},{key:\"clampScalar\",value:function clampScalar(minVal,maxVal){this.x=Math.max(minVal,Math.min(maxVal,this.x));this.y=Math.max(minVal,Math.min(maxVal,this.y));return this;}},{key:\"clampLength\",value:function clampLength(min,max){var length=this.length();return this.divideScalar(length||1).multiplyScalar(Math.max(min,Math.min(max,length)));}},{key:\"floor\",value:function floor(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this;}},{key:\"ceil\",value:function ceil(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this;}},{key:\"round\",value:function round(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this;}},{key:\"roundToZero\",value:function roundToZero(){this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x);this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y);return this;}},{key:\"negate\",value:function negate(){this.x=-this.x;this.y=-this.y;return this;}},{key:\"dot\",value:function dot(v){return this.x*v.x+this.y*v.y;}},{key:\"cross\",value:function cross(v){return this.x*v.y-this.y*v.x;}},{key:\"lengthSq\",value:function lengthSq(){return this.x*this.x+this.y*this.y;}},{key:\"length\",value:function length(){return Math.sqrt(this.x*this.x+this.y*this.y);}},{key:\"manhattanLength\",value:function manhattanLength(){return Math.abs(this.x)+Math.abs(this.y);}},{key:\"normalize\",value:function normalize(){return this.divideScalar(this.length()||1);}},{key:\"angle\",value:function angle(){var angle=Math.atan2(-this.y,-this.x)+Math.PI;return angle;}},{key:\"distanceTo\",value:function distanceTo(v){return Math.sqrt(this.distanceToSquared(v));}},{key:\"distanceToSquared\",value:function distanceToSquared(v){var dx=this.x-v.x,dy=this.y-v.y;return dx*dx+dy*dy;}},{key:\"manhattanDistanceTo\",value:function manhattanDistanceTo(v){return Math.abs(this.x-v.x)+Math.abs(this.y-v.y);}},{key:\"setLength\",value:function setLength(length){return this.normalize().multiplyScalar(length);}},{key:\"lerp\",value:function lerp(v,alpha){this.x+=(v.x-this.x)*alpha;this.y+=(v.y-this.y)*alpha;return this;}},{key:\"lerpVectors\",value:function lerpVectors(v1,v2,alpha){this.x=v1.x+(v2.x-v1.x)*alpha;this.y=v1.y+(v2.y-v1.y)*alpha;return this;}},{key:\"equals\",value:function equals(v){return v.x===this.x&&v.y===this.y;}},{key:\"fromArray\",value:function fromArray(array,offset){if(offset===undefined)offset=0;this.x=array[offset];this.y=array[offset+1];return this;}},{key:\"toArray\",value:function toArray(array,offset){if(array===undefined)array=[];if(offset===undefined)offset=0;array[offset]=this.x;array[offset+1]=this.y;return array;}},{key:\"fromBufferAttribute\",value:function fromBufferAttribute(attribute,index,offset){if(offset!==undefined){console.warn('THREE.Vector2: offset has been removed from .fromBufferAttribute().');}this.x=attribute.getX(index);this.y=attribute.getY(index);return this;}},{key:\"rotateAround\",value:function rotateAround(center,angle){var c=Math.cos(angle),s=Math.sin(angle);var x=this.x-center.x;var y=this.y-center.y;this.x=x*c-y*s+center.x;this.y=x*s+y*c+center.y;return this;}},{key:\"random\",value:function random(){this.x=Math.random();this.y=Math.random();return this;}},{key:\"width\",get:function get(){return this.x;},set:function set(value){this.x=value;}},{key:\"height\",get:function get(){return this.y;},set:function set(value){this.y=value;}}]);return Vector2;}();var Matrix3=function(){function Matrix3(){_classCallCheck(this,Matrix3);Object.defineProperty(this,'isMatrix3',{value:true});this.elements=[1,0,0,0,1,0,0,0,1];if(arguments.length>0){console.error('THREE.Matrix3: the constructor no longer reads arguments. use .set() instead.');}}_createClass(Matrix3,[{key:\"set\",value:function set(n11,n12,n13,n21,n22,n23,n31,n32,n33){var te=this.elements;te[0]=n11;te[1]=n21;te[2]=n31;te[3]=n12;te[4]=n22;te[5]=n32;te[6]=n13;te[7]=n23;te[8]=n33;return this;}},{key:\"identity\",value:function identity(){this.set(1,0,0,0,1,0,0,0,1);return this;}},{key:\"clone\",value:function clone(){return new this.constructor().fromArray(this.elements);}},{key:\"copy\",value:function copy(m){var te=this.elements;var me=m.elements;te[0]=me[0];te[1]=me[1];te[2]=me[2];te[3]=me[3];te[4]=me[4];te[5]=me[5];te[6]=me[6];te[7]=me[7];te[8]=me[8];return this;}},{key:\"extractBasis\",value:function extractBasis(xAxis,yAxis,zAxis){xAxis.setFromMatrix3Column(this,0);yAxis.setFromMatrix3Column(this,1);zAxis.setFromMatrix3Column(this,2);return this;}},{key:\"setFromMatrix4\",value:function setFromMatrix4(m){var me=m.elements;this.set(me[0],me[4],me[8],me[1],me[5],me[9],me[2],me[6],me[10]);return this;}},{key:\"multiply\",value:function multiply(m){return this.multiplyMatrices(this,m);}},{key:\"premultiply\",value:function premultiply(m){return this.multiplyMatrices(m,this);}},{key:\"multiplyMatrices\",value:function multiplyMatrices(a,b){var ae=a.elements;var be=b.elements;var te=this.elements;var a11=ae[0],a12=ae[3],a13=ae[6];var a21=ae[1],a22=ae[4],a23=ae[7];var a31=ae[2],a32=ae[5],a33=ae[8];var b11=be[0],b12=be[3],b13=be[6];var b21=be[1],b22=be[4],b23=be[7];var b31=be[2],b32=be[5],b33=be[8];te[0]=a11*b11+a12*b21+a13*b31;te[3]=a11*b12+a12*b22+a13*b32;te[6]=a11*b13+a12*b23+a13*b33;te[1]=a21*b11+a22*b21+a23*b31;te[4]=a21*b12+a22*b22+a23*b32;te[7]=a21*b13+a22*b23+a23*b33;te[2]=a31*b11+a32*b21+a33*b31;te[5]=a31*b12+a32*b22+a33*b32;te[8]=a31*b13+a32*b23+a33*b33;return this;}},{key:\"multiplyScalar\",value:function multiplyScalar(s){var te=this.elements;te[0]*=s;te[3]*=s;te[6]*=s;te[1]*=s;te[4]*=s;te[7]*=s;te[2]*=s;te[5]*=s;te[8]*=s;return this;}},{key:\"determinant\",value:function determinant(){var te=this.elements;var a=te[0],b=te[1],c=te[2],d=te[3],e=te[4],f=te[5],g=te[6],h=te[7],i=te[8];return a*e*i-a*f*h-b*d*i+b*f*g+c*d*h-c*e*g;}},{key:\"getInverse\",value:function getInverse(matrix,throwOnDegenerate){if(throwOnDegenerate!==undefined){console.warn(\"THREE.Matrix3: .getInverse() can no longer be configured to throw on degenerate.\");}var me=matrix.elements,te=this.elements,n11=me[0],n21=me[1],n31=me[2],n12=me[3],n22=me[4],n32=me[5],n13=me[6],n23=me[7],n33=me[8],t11=n33*n22-n32*n23,t12=n32*n13-n33*n12,t13=n23*n12-n22*n13,det=n11*t11+n21*t12+n31*t13;if(det===0)return this.set(0,0,0,0,0,0,0,0,0);var detInv=1/det;te[0]=t11*detInv;te[1]=(n31*n23-n33*n21)*detInv;te[2]=(n32*n21-n31*n22)*detInv;te[3]=t12*detInv;te[4]=(n33*n11-n31*n13)*detInv;te[5]=(n31*n12-n32*n11)*detInv;te[6]=t13*detInv;te[7]=(n21*n13-n23*n11)*detInv;te[8]=(n22*n11-n21*n12)*detInv;return this;}},{key:\"transpose\",value:function transpose(){var tmp;var m=this.elements;tmp=m[1];m[1]=m[3];m[3]=tmp;tmp=m[2];m[2]=m[6];m[6]=tmp;tmp=m[5];m[5]=m[7];m[7]=tmp;return this;}},{key:\"getNormalMatrix\",value:function getNormalMatrix(matrix4){return this.setFromMatrix4(matrix4).getInverse(this).transpose();}},{key:\"transposeIntoArray\",value:function transposeIntoArray(r){var m=this.elements;r[0]=m[0];r[1]=m[3];r[2]=m[6];r[3]=m[1];r[4]=m[4];r[5]=m[7];r[6]=m[2];r[7]=m[5];r[8]=m[8];return this;}},{key:\"setUvTransform\",value:function setUvTransform(tx,ty,sx,sy,rotation,cx,cy){var c=Math.cos(rotation);var s=Math.sin(rotation);this.set(sx*c,sx*s,-sx*(c*cx+s*cy)+cx+tx,-sy*s,sy*c,-sy*(-s*cx+c*cy)+cy+ty,0,0,1);}},{key:\"scale\",value:function scale(sx,sy){var te=this.elements;te[0]*=sx;te[3]*=sx;te[6]*=sx;te[1]*=sy;te[4]*=sy;te[7]*=sy;return this;}},{key:\"rotate\",value:function rotate(theta){var c=Math.cos(theta);var s=Math.sin(theta);var te=this.elements;var a11=te[0],a12=te[3],a13=te[6];var a21=te[1],a22=te[4],a23=te[7];te[0]=c*a11+s*a21;te[3]=c*a12+s*a22;te[6]=c*a13+s*a23;te[1]=-s*a11+c*a21;te[4]=-s*a12+c*a22;te[7]=-s*a13+c*a23;return this;}},{key:\"translate\",value:function translate(tx,ty){var te=this.elements;te[0]+=tx*te[2];te[3]+=tx*te[5];te[6]+=tx*te[8];te[1]+=ty*te[2];te[4]+=ty*te[5];te[7]+=ty*te[8];return this;}},{key:\"equals\",value:function equals(matrix){var te=this.elements;var me=matrix.elements;for(var _i=0;_i<9;_i++){if(te[_i]!==me[_i])return false;}return true;}},{key:\"fromArray\",value:function fromArray(array,offset){if(offset===undefined)offset=0;for(var _i2=0;_i2<9;_i2++){this.elements[_i2]=array[_i2+offset];}return this;}},{key:\"toArray\",value:function toArray(array,offset){if(array===undefined)array=[];if(offset===undefined)offset=0;var te=this.elements;array[offset]=te[0];array[offset+1]=te[1];array[offset+2]=te[2];array[offset+3]=te[3];array[offset+4]=te[4];array[offset+5]=te[5];array[offset+6]=te[6];array[offset+7]=te[7];array[offset+8]=te[8];return array;}}]);return Matrix3;}();var _canvas;var ImageUtils={getDataURL:function getDataURL(image){if(/^data:/i.test(image.src)){return image.src;}if(typeof HTMLCanvasElement=='undefined'){return image.src;}var canvas;if(_instanceof(image,HTMLCanvasElement)){canvas=image;}else{if(_canvas===undefined)_canvas=document.createElementNS('http://www.w3.org/1999/xhtml','canvas');_canvas.width=image.width;_canvas.height=image.height;var context=_canvas.getContext('2d');if(_instanceof(image,ImageData)){context.putImageData(image,0,0);}else{context.drawImage(image,0,0,image.width,image.height);}canvas=_canvas;}if(canvas.width>2048||canvas.height>2048){return canvas.toDataURL('image/jpeg',0.6);}else{return canvas.toDataURL('image/png');}}};var textureId=0;function Texture(image,mapping,wrapS,wrapT,magFilter,minFilter,format,type,anisotropy,encoding){Object.defineProperty(this,'id',{value:textureId++});this.uuid=MathUtils.generateUUID();this.name='';this.image=image!==undefined?image:Texture.DEFAULT_IMAGE;this.mipmaps=[];this.mapping=mapping!==undefined?mapping:Texture.DEFAULT_MAPPING;this.wrapS=wrapS!==undefined?wrapS:ClampToEdgeWrapping;this.wrapT=wrapT!==undefined?wrapT:ClampToEdgeWrapping;this.magFilter=magFilter!==undefined?magFilter:LinearFilter;this.minFilter=minFilter!==undefined?minFilter:LinearMipmapLinearFilter;this.anisotropy=anisotropy!==undefined?anisotropy:1;this.format=format!==undefined?format:RGBAFormat;this.internalFormat=null;this.type=type!==undefined?type:UnsignedByteType;this.offset=new Vector2(0,0);this.repeat=new Vector2(1,1);this.center=new Vector2(0,0);this.rotation=0;this.matrixAutoUpdate=true;this.matrix=new Matrix3();this.generateMipmaps=true;this.premultiplyAlpha=false;this.flipY=true;this.unpackAlignment=4;this.encoding=encoding!==undefined?encoding:LinearEncoding;this.version=0;this.onUpdate=null;}Texture.DEFAULT_IMAGE=undefined;Texture.DEFAULT_MAPPING=UVMapping;Texture.prototype=Object.assign(Object.create(EventDispatcher.prototype),{constructor:Texture,isTexture:true,updateMatrix:function updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y);},clone:function clone(){return new this.constructor().copy(this);},copy:function copy(source){this.name=source.name;this.image=source.image;this.mipmaps=source.mipmaps.slice(0);this.mapping=source.mapping;this.wrapS=source.wrapS;this.wrapT=source.wrapT;this.magFilter=source.magFilter;this.minFilter=source.minFilter;this.anisotropy=source.anisotropy;this.format=source.format;this.internalFormat=source.internalFormat;this.type=source.type;this.offset.copy(source.offset);this.repeat.copy(source.repeat);this.center.copy(source.center);this.rotation=source.rotation;this.matrixAutoUpdate=source.matrixAutoUpdate;this.matrix.copy(source.matrix);this.generateMipmaps=source.generateMipmaps;this.premultiplyAlpha=source.premultiplyAlpha;this.flipY=source.flipY;this.unpackAlignment=source.unpackAlignment;this.encoding=source.encoding;return this;},toJSON:function toJSON(meta){var isRootObject=meta===undefined||typeof meta==='string';if(!isRootObject&&meta.textures[this.uuid]!==undefined){return meta.textures[this.uuid];}var output={metadata:{version:4.5,type:'Texture',generator:'Texture.toJSON'},uuid:this.uuid,name:this.name,mapping:this.mapping,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,type:this.type,encoding:this.encoding,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};if(this.image!==undefined){var image=this.image;if(image.uuid===undefined){image.uuid=MathUtils.generateUUID();}if(!isRootObject&&meta.images[image.uuid]===undefined){var url;if(Array.isArray(image)){url=[];for(var _i3=0,l=image.length;_i3<l;_i3++){url.push(ImageUtils.getDataURL(image[_i3]));}}else{url=ImageUtils.getDataURL(image);}meta.images[image.uuid]={uuid:image.uuid,url:url};}output.image=image.uuid;}if(!isRootObject){meta.textures[this.uuid]=output;}return output;},dispose:function dispose(){this.dispatchEvent({type:'dispose'});},transformUv:function transformUv(uv){if(this.mapping!==UVMapping)return uv;uv.applyMatrix3(this.matrix);if(uv.x<0||uv.x>1){switch(this.wrapS){case RepeatWrapping:uv.x=uv.x-Math.floor(uv.x);break;case ClampToEdgeWrapping:uv.x=uv.x<0?0:1;break;case MirroredRepeatWrapping:if(Math.abs(Math.floor(uv.x)%2)===1){uv.x=Math.ceil(uv.x)-uv.x;}else{uv.x=uv.x-Math.floor(uv.x);}break;}}if(uv.y<0||uv.y>1){switch(this.wrapT){case RepeatWrapping:uv.y=uv.y-Math.floor(uv.y);break;case ClampToEdgeWrapping:uv.y=uv.y<0?0:1;break;case MirroredRepeatWrapping:if(Math.abs(Math.floor(uv.y)%2)===1){uv.y=Math.ceil(uv.y)-uv.y;}else{uv.y=uv.y-Math.floor(uv.y);}break;}}if(this.flipY){uv.y=1-uv.y;}return uv;}});Object.defineProperty(Texture.prototype,\"needsUpdate\",{set:function set(value){if(value===true)this.version++;}});var Vector4=function(){function Vector4(){var x=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var y=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var z=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var w=arguments.length>3&&arguments[3]!==undefined?arguments[3]:1;_classCallCheck(this,Vector4);Object.defineProperty(this,'isVector4',{value:true});this.x=x;this.y=y;this.z=z;this.w=w;}_createClass(Vector4,[{key:\"set\",value:function set(x,y,z,w){this.x=x;this.y=y;this.z=z;this.w=w;return this;}},{key:\"setScalar\",value:function setScalar(scalar){this.x=scalar;this.y=scalar;this.z=scalar;this.w=scalar;return this;}},{key:\"setX\",value:function setX(x){this.x=x;return this;}},{key:\"setY\",value:function setY(y){this.y=y;return this;}},{key:\"setZ\",value:function setZ(z){this.z=z;return this;}},{key:\"setW\",value:function setW(w){this.w=w;return this;}},{key:\"setComponent\",value:function setComponent(index,value){switch(index){case 0:this.x=value;break;case 1:this.y=value;break;case 2:this.z=value;break;case 3:this.w=value;break;default:throw new Error('index is out of range: '+index);}return this;}},{key:\"getComponent\",value:function getComponent(index){switch(index){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error('index is out of range: '+index);}}},{key:\"clone\",value:function clone(){return new this.constructor(this.x,this.y,this.z,this.w);}},{key:\"copy\",value:function copy(v){this.x=v.x;this.y=v.y;this.z=v.z;this.w=v.w!==undefined?v.w:1;return this;}},{key:\"add\",value:function add(v,w){if(w!==undefined){console.warn('THREE.Vector4: .add() now only accepts one argument. Use .addVectors( a, b ) instead.');return this.addVectors(v,w);}this.x+=v.x;this.y+=v.y;this.z+=v.z;this.w+=v.w;return this;}},{key:\"addScalar\",value:function addScalar(s){this.x+=s;this.y+=s;this.z+=s;this.w+=s;return this;}},{key:\"addVectors\",value:function addVectors(a,b){this.x=a.x+b.x;this.y=a.y+b.y;this.z=a.z+b.z;this.w=a.w+b.w;return this;}},{key:\"addScaledVector\",value:function addScaledVector(v,s){this.x+=v.x*s;this.y+=v.y*s;this.z+=v.z*s;this.w+=v.w*s;return this;}},{key:\"sub\",value:function sub(v,w){if(w!==undefined){console.warn('THREE.Vector4: .sub() now only accepts one argument. Use .subVectors( a, b ) instead.');return this.subVectors(v,w);}this.x-=v.x;this.y-=v.y;this.z-=v.z;this.w-=v.w;return this;}},{key:\"subScalar\",value:function subScalar(s){this.x-=s;this.y-=s;this.z-=s;this.w-=s;return this;}},{key:\"subVectors\",value:function subVectors(a,b){this.x=a.x-b.x;this.y=a.y-b.y;this.z=a.z-b.z;this.w=a.w-b.w;return this;}},{key:\"multiplyScalar\",value:function multiplyScalar(scalar){this.x*=scalar;this.y*=scalar;this.z*=scalar;this.w*=scalar;return this;}},{key:\"applyMatrix4\",value:function applyMatrix4(m){var x=this.x,y=this.y,z=this.z,w=this.w;var e=m.elements;this.x=e[0]*x+e[4]*y+e[8]*z+e[12]*w;this.y=e[1]*x+e[5]*y+e[9]*z+e[13]*w;this.z=e[2]*x+e[6]*y+e[10]*z+e[14]*w;this.w=e[3]*x+e[7]*y+e[11]*z+e[15]*w;return this;}},{key:\"divideScalar\",value:function divideScalar(scalar){return this.multiplyScalar(1/scalar);}},{key:\"setAxisAngleFromQuaternion\",value:function setAxisAngleFromQuaternion(q){this.w=2*Math.acos(q.w);var s=Math.sqrt(1-q.w*q.w);if(s<0.0001){this.x=1;this.y=0;this.z=0;}else{this.x=q.x/s;this.y=q.y/s;this.z=q.z/s;}return this;}},{key:\"setAxisAngleFromRotationMatrix\",value:function setAxisAngleFromRotationMatrix(m){var angle,x,y,z;var epsilon=0.01,epsilon2=0.1,te=m.elements,m11=te[0],m12=te[4],m13=te[8],m21=te[1],m22=te[5],m23=te[9],m31=te[2],m32=te[6],m33=te[10];if(Math.abs(m12-m21)<epsilon&&Math.abs(m13-m31)<epsilon&&Math.abs(m23-m32)<epsilon){if(Math.abs(m12+m21)<epsilon2&&Math.abs(m13+m31)<epsilon2&&Math.abs(m23+m32)<epsilon2&&Math.abs(m11+m22+m33-3)<epsilon2){this.set(1,0,0,0);return this;}\nangle=Math.PI;var xx=(m11+1)/2;var yy=(m22+1)/2;var zz=(m33+1)/2;var xy=(m12+m21)/4;var xz=(m13+m31)/4;var yz=(m23+m32)/4;if(xx>yy&&xx>zz){if(xx<epsilon){x=0;y=0.707106781;z=0.707106781;}else{x=Math.sqrt(xx);y=xy/x;z=xz/x;}}else if(yy>zz){if(yy<epsilon){x=0.707106781;y=0;z=0.707106781;}else{y=Math.sqrt(yy);x=xy/y;z=yz/y;}}else{if(zz<epsilon){x=0.707106781;y=0.707106781;z=0;}else{z=Math.sqrt(zz);x=xz/z;y=yz/z;}}this.set(x,y,z,angle);return this;}\nvar s=Math.sqrt((m32-m23)*(m32-m23)+(m13-m31)*(m13-m31)+(m21-m12)*(m21-m12));if(Math.abs(s)<0.001)s=1;this.x=(m32-m23)/s;this.y=(m13-m31)/s;this.z=(m21-m12)/s;this.w=Math.acos((m11+m22+m33-1)/2);return this;}},{key:\"min\",value:function min(v){this.x=Math.min(this.x,v.x);this.y=Math.min(this.y,v.y);this.z=Math.min(this.z,v.z);this.w=Math.min(this.w,v.w);return this;}},{key:\"max\",value:function max(v){this.x=Math.max(this.x,v.x);this.y=Math.max(this.y,v.y);this.z=Math.max(this.z,v.z);this.w=Math.max(this.w,v.w);return this;}},{key:\"clamp\",value:function clamp(min,max){this.x=Math.max(min.x,Math.min(max.x,this.x));this.y=Math.max(min.y,Math.min(max.y,this.y));this.z=Math.max(min.z,Math.min(max.z,this.z));this.w=Math.max(min.w,Math.min(max.w,this.w));return this;}},{key:\"clampScalar\",value:function clampScalar(minVal,maxVal){this.x=Math.max(minVal,Math.min(maxVal,this.x));this.y=Math.max(minVal,Math.min(maxVal,this.y));this.z=Math.max(minVal,Math.min(maxVal,this.z));this.w=Math.max(minVal,Math.min(maxVal,this.w));return this;}},{key:\"clampLength\",value:function clampLength(min,max){var length=this.length();return this.divideScalar(length||1).multiplyScalar(Math.max(min,Math.min(max,length)));}},{key:\"floor\",value:function floor(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);this.z=Math.floor(this.z);this.w=Math.floor(this.w);return this;}},{key:\"ceil\",value:function ceil(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);this.z=Math.ceil(this.z);this.w=Math.ceil(this.w);return this;}},{key:\"round\",value:function round(){this.x=Math.round(this.x);this.y=Math.round(this.y);this.z=Math.round(this.z);this.w=Math.round(this.w);return this;}},{key:\"roundToZero\",value:function roundToZero(){this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x);this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y);this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z);this.w=this.w<0?Math.ceil(this.w):Math.floor(this.w);return this;}},{key:\"negate\",value:function negate(){this.x=-this.x;this.y=-this.y;this.z=-this.z;this.w=-this.w;return this;}},{key:\"dot\",value:function dot(v){return this.x*v.x+this.y*v.y+this.z*v.z+this.w*v.w;}},{key:\"lengthSq\",value:function lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w;}},{key:\"length\",value:function length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w);}},{key:\"manhattanLength\",value:function manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w);}},{key:\"normalize\",value:function normalize(){return this.divideScalar(this.length()||1);}},{key:\"setLength\",value:function setLength(length){return this.normalize().multiplyScalar(length);}},{key:\"lerp\",value:function lerp(v,alpha){this.x+=(v.x-this.x)*alpha;this.y+=(v.y-this.y)*alpha;this.z+=(v.z-this.z)*alpha;this.w+=(v.w-this.w)*alpha;return this;}},{key:\"lerpVectors\",value:function lerpVectors(v1,v2,alpha){this.x=v1.x+(v2.x-v1.x)*alpha;this.y=v1.y+(v2.y-v1.y)*alpha;this.z=v1.z+(v2.z-v1.z)*alpha;this.w=v1.w+(v2.w-v1.w)*alpha;return this;}},{key:\"equals\",value:function equals(v){return v.x===this.x&&v.y===this.y&&v.z===this.z&&v.w===this.w;}},{key:\"fromArray\",value:function fromArray(array,offset){if(offset===undefined)offset=0;this.x=array[offset];this.y=array[offset+1];this.z=array[offset+2];this.w=array[offset+3];return this;}},{key:\"toArray\",value:function toArray(array,offset){if(array===undefined)array=[];if(offset===undefined)offset=0;array[offset]=this.x;array[offset+1]=this.y;array[offset+2]=this.z;array[offset+3]=this.w;return array;}},{key:\"fromBufferAttribute\",value:function fromBufferAttribute(attribute,index,offset){if(offset!==undefined){console.warn('THREE.Vector4: offset has been removed from .fromBufferAttribute().');}this.x=attribute.getX(index);this.y=attribute.getY(index);this.z=attribute.getZ(index);this.w=attribute.getW(index);return this;}},{key:\"random\",value:function random(){this.x=Math.random();this.y=Math.random();this.z=Math.random();this.w=Math.random();return this;}},{key:\"width\",get:function get(){return this.z;},set:function set(value){this.z=value;}},{key:\"height\",get:function get(){return this.w;},set:function set(value){this.w=value;}}]);return Vector4;}();function WebGLRenderTarget(width,height,options){this.width=width;this.height=height;this.scissor=new Vector4(0,0,width,height);this.scissorTest=false;this.viewport=new Vector4(0,0,width,height);options=options||{};this.texture=new Texture(undefined,options.mapping,options.wrapS,options.wrapT,options.magFilter,options.minFilter,options.format,options.type,options.anisotropy,options.encoding);this.texture.image={};this.texture.image.width=width;this.texture.image.height=height;this.texture.generateMipmaps=options.generateMipmaps!==undefined?options.generateMipmaps:false;this.texture.minFilter=options.minFilter!==undefined?options.minFilter:LinearFilter;this.depthBuffer=options.depthBuffer!==undefined?options.depthBuffer:true;this.stencilBuffer=options.stencilBuffer!==undefined?options.stencilBuffer:false;this.depthTexture=options.depthTexture!==undefined?options.depthTexture:null;}WebGLRenderTarget.prototype=Object.assign(Object.create(EventDispatcher.prototype),{constructor:WebGLRenderTarget,isWebGLRenderTarget:true,setSize:function setSize(width,height){if(this.width!==width||this.height!==height){this.width=width;this.height=height;this.texture.image.width=width;this.texture.image.height=height;this.dispose();}this.viewport.set(0,0,width,height);this.scissor.set(0,0,width,height);},clone:function clone(){return new this.constructor().copy(this);},copy:function copy(source){this.width=source.width;this.height=source.height;this.viewport.copy(source.viewport);this.texture=source.texture.clone();this.depthBuffer=source.depthBuffer;this.stencilBuffer=source.stencilBuffer;this.depthTexture=source.depthTexture;return this;},dispose:function dispose(){this.dispatchEvent({type:'dispose'});}});function WebGLMultisampleRenderTarget(width,height,options){WebGLRenderTarget.call(this,width,height,options);this.samples=4;}WebGLMultisampleRenderTarget.prototype=Object.assign(Object.create(WebGLRenderTarget.prototype),{constructor:WebGLMultisampleRenderTarget,isWebGLMultisampleRenderTarget:true,copy:function copy(source){WebGLRenderTarget.prototype.copy.call(this,source);this.samples=source.samples;return this;}});var Quaternion=function(){function Quaternion(){var x=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var y=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var z=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var w=arguments.length>3&&arguments[3]!==undefined?arguments[3]:1;_classCallCheck(this,Quaternion);Object.defineProperty(this,'isQuaternion',{value:true});this._x=x;this._y=y;this._z=z;this._w=w;}_createClass(Quaternion,[{key:\"set\",value:function set(x,y,z,w){this._x=x;this._y=y;this._z=z;this._w=w;this._onChangeCallback();return this;}},{key:\"clone\",value:function clone(){return new this.constructor(this._x,this._y,this._z,this._w);}},{key:\"copy\",value:function copy(quaternion){this._x=quaternion.x;this._y=quaternion.y;this._z=quaternion.z;this._w=quaternion.w;this._onChangeCallback();return this;}},{key:\"setFromEuler\",value:function setFromEuler(euler,update){if(!(euler&&euler.isEuler)){throw new Error('THREE.Quaternion: .setFromEuler() now expects an Euler rotation rather than a Vector3 and order.');}var x=euler._x,y=euler._y,z=euler._z,order=euler._order;var cos=Math.cos;var sin=Math.sin;var c1=cos(x/2);var c2=cos(y/2);var c3=cos(z/2);var s1=sin(x/2);var s2=sin(y/2);var s3=sin(z/2);switch(order){case'XYZ':this._x=s1*c2*c3+c1*s2*s3;this._y=c1*s2*c3-s1*c2*s3;this._z=c1*c2*s3+s1*s2*c3;this._w=c1*c2*c3-s1*s2*s3;break;case'YXZ':this._x=s1*c2*c3+c1*s2*s3;this._y=c1*s2*c3-s1*c2*s3;this._z=c1*c2*s3-s1*s2*c3;this._w=c1*c2*c3+s1*s2*s3;break;case'ZXY':this._x=s1*c2*c3-c1*s2*s3;this._y=c1*s2*c3+s1*c2*s3;this._z=c1*c2*s3+s1*s2*c3;this._w=c1*c2*c3-s1*s2*s3;break;case'ZYX':this._x=s1*c2*c3-c1*s2*s3;this._y=c1*s2*c3+s1*c2*s3;this._z=c1*c2*s3-s1*s2*c3;this._w=c1*c2*c3+s1*s2*s3;break;case'YZX':this._x=s1*c2*c3+c1*s2*s3;this._y=c1*s2*c3+s1*c2*s3;this._z=c1*c2*s3-s1*s2*c3;this._w=c1*c2*c3-s1*s2*s3;break;case'XZY':this._x=s1*c2*c3-c1*s2*s3;this._y=c1*s2*c3-s1*c2*s3;this._z=c1*c2*s3+s1*s2*c3;this._w=c1*c2*c3+s1*s2*s3;break;default:console.warn('THREE.Quaternion: .setFromEuler() encountered an unknown order: '+order);}if(update!==false)this._onChangeCallback();return this;}},{key:\"setFromAxisAngle\",value:function setFromAxisAngle(axis,angle){var halfAngle=angle/2,s=Math.sin(halfAngle);this._x=axis.x*s;this._y=axis.y*s;this._z=axis.z*s;this._w=Math.cos(halfAngle);this._onChangeCallback();return this;}},{key:\"setFromRotationMatrix\",value:function setFromRotationMatrix(m){var te=m.elements,m11=te[0],m12=te[4],m13=te[8],m21=te[1],m22=te[5],m23=te[9],m31=te[2],m32=te[6],m33=te[10],trace=m11+m22+m33;if(trace>0){var s=0.5/Math.sqrt(trace+1.0);this._w=0.25/s;this._x=(m32-m23)*s;this._y=(m13-m31)*s;this._z=(m21-m12)*s;}else if(m11>m22&&m11>m33){var _s2=2.0*Math.sqrt(1.0+m11-m22-m33);this._w=(m32-m23)/_s2;this._x=0.25*_s2;this._y=(m12+m21)/_s2;this._z=(m13+m31)/_s2;}else if(m22>m33){var _s3=2.0*Math.sqrt(1.0+m22-m11-m33);this._w=(m13-m31)/_s3;this._x=(m12+m21)/_s3;this._y=0.25*_s3;this._z=(m23+m32)/_s3;}else{var _s4=2.0*Math.sqrt(1.0+m33-m11-m22);this._w=(m21-m12)/_s4;this._x=(m13+m31)/_s4;this._y=(m23+m32)/_s4;this._z=0.25*_s4;}this._onChangeCallback();return this;}},{key:\"setFromUnitVectors\",value:function setFromUnitVectors(vFrom,vTo){var EPS=0.000001;var r=vFrom.dot(vTo)+1;if(r<EPS){r=0;if(Math.abs(vFrom.x)>Math.abs(vFrom.z)){this._x=-vFrom.y;this._y=vFrom.x;this._z=0;this._w=r;}else{this._x=0;this._y=-vFrom.z;this._z=vFrom.y;this._w=r;}}else{this._x=vFrom.y*vTo.z-vFrom.z*vTo.y;this._y=vFrom.z*vTo.x-vFrom.x*vTo.z;this._z=vFrom.x*vTo.y-vFrom.y*vTo.x;this._w=r;}return this.normalize();}},{key:\"angleTo\",value:function angleTo(q){return 2*Math.acos(Math.abs(MathUtils.clamp(this.dot(q),-1,1)));}},{key:\"rotateTowards\",value:function rotateTowards(q,step){var angle=this.angleTo(q);if(angle===0)return this;var t=Math.min(1,step/angle);this.slerp(q,t);return this;}},{key:\"identity\",value:function identity(){return this.set(0,0,0,1);}},{key:\"inverse\",value:function inverse(){return this.conjugate();}},{key:\"conjugate\",value:function conjugate(){this._x*=-1;this._y*=-1;this._z*=-1;this._onChangeCallback();return this;}},{key:\"dot\",value:function dot(v){return this._x*v._x+this._y*v._y+this._z*v._z+this._w*v._w;}},{key:\"lengthSq\",value:function lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w;}},{key:\"length\",value:function length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w);}},{key:\"normalize\",value:function normalize(){var l=this.length();if(l===0){this._x=0;this._y=0;this._z=0;this._w=1;}else{l=1/l;this._x=this._x*l;this._y=this._y*l;this._z=this._z*l;this._w=this._w*l;}this._onChangeCallback();return this;}},{key:\"multiply\",value:function multiply(q,p){if(p!==undefined){console.warn('THREE.Quaternion: .multiply() now only accepts one argument. Use .multiplyQuaternions( a, b ) instead.');return this.multiplyQuaternions(q,p);}return this.multiplyQuaternions(this,q);}},{key:\"premultiply\",value:function premultiply(q){return this.multiplyQuaternions(q,this);}},{key:\"multiplyQuaternions\",value:function multiplyQuaternions(a,b){var qax=a._x,qay=a._y,qaz=a._z,qaw=a._w;var qbx=b._x,qby=b._y,qbz=b._z,qbw=b._w;this._x=qax*qbw+qaw*qbx+qay*qbz-qaz*qby;this._y=qay*qbw+qaw*qby+qaz*qbx-qax*qbz;this._z=qaz*qbw+qaw*qbz+qax*qby-qay*qbx;this._w=qaw*qbw-qax*qbx-qay*qby-qaz*qbz;this._onChangeCallback();return this;}},{key:\"slerp\",value:function slerp(qb,t){if(t===0)return this;if(t===1)return this.copy(qb);var x=this._x,y=this._y,z=this._z,w=this._w;var cosHalfTheta=w*qb._w+x*qb._x+y*qb._y+z*qb._z;if(cosHalfTheta<0){this._w=-qb._w;this._x=-qb._x;this._y=-qb._y;this._z=-qb._z;cosHalfTheta=-cosHalfTheta;}else{this.copy(qb);}if(cosHalfTheta>=1.0){this._w=w;this._x=x;this._y=y;this._z=z;return this;}var sqrSinHalfTheta=1.0-cosHalfTheta*cosHalfTheta;if(sqrSinHalfTheta<=Number.EPSILON){var s=1-t;this._w=s*w+t*this._w;this._x=s*x+t*this._x;this._y=s*y+t*this._y;this._z=s*z+t*this._z;this.normalize();this._onChangeCallback();return this;}var sinHalfTheta=Math.sqrt(sqrSinHalfTheta);var halfTheta=Math.atan2(sinHalfTheta,cosHalfTheta);var ratioA=Math.sin((1-t)*halfTheta)/sinHalfTheta,ratioB=Math.sin(t*halfTheta)/sinHalfTheta;this._w=w*ratioA+this._w*ratioB;this._x=x*ratioA+this._x*ratioB;this._y=y*ratioA+this._y*ratioB;this._z=z*ratioA+this._z*ratioB;this._onChangeCallback();return this;}},{key:\"equals\",value:function equals(quaternion){return quaternion._x===this._x&&quaternion._y===this._y&&quaternion._z===this._z&&quaternion._w===this._w;}},{key:\"fromArray\",value:function fromArray(array,offset){if(offset===undefined)offset=0;this._x=array[offset];this._y=array[offset+1];this._z=array[offset+2];this._w=array[offset+3];this._onChangeCallback();return this;}},{key:\"toArray\",value:function toArray(array,offset){if(array===undefined)array=[];if(offset===undefined)offset=0;array[offset]=this._x;array[offset+1]=this._y;array[offset+2]=this._z;array[offset+3]=this._w;return array;}},{key:\"fromBufferAttribute\",value:function fromBufferAttribute(attribute,index){this._x=attribute.getX(index);this._y=attribute.getY(index);this._z=attribute.getZ(index);this._w=attribute.getW(index);return this;}},{key:\"_onChange\",value:function _onChange(callback){this._onChangeCallback=callback;return this;}},{key:\"_onChangeCallback\",value:function _onChangeCallback(){}},{key:\"x\",get:function get(){return this._x;},set:function set(value){this._x=value;this._onChangeCallback();}},{key:\"y\",get:function get(){return this._y;},set:function set(value){this._y=value;this._onChangeCallback();}},{key:\"z\",get:function get(){return this._z;},set:function set(value){this._z=value;this._onChangeCallback();}},{key:\"w\",get:function get(){return this._w;},set:function set(value){this._w=value;this._onChangeCallback();}}],[{key:\"slerp\",value:function slerp(qa,qb,qm,t){return qm.copy(qa).slerp(qb,t);}},{key:\"slerpFlat\",value:function slerpFlat(dst,dstOffset,src0,srcOffset0,src1,srcOffset1,t){var x0=src0[srcOffset0+0],y0=src0[srcOffset0+1],z0=src0[srcOffset0+2],w0=src0[srcOffset0+3];var x1=src1[srcOffset1+0],y1=src1[srcOffset1+1],z1=src1[srcOffset1+2],w1=src1[srcOffset1+3];if(w0!==w1||x0!==x1||y0!==y1||z0!==z1){var s=1-t;var cos=x0*x1+y0*y1+z0*z1+w0*w1,dir=cos>=0?1:-1,sqrSin=1-cos*cos;if(sqrSin>Number.EPSILON){var sin=Math.sqrt(sqrSin),len=Math.atan2(sin,cos*dir);s=Math.sin(s*len)/sin;t=Math.sin(t*len)/sin;}var tDir=t*dir;x0=x0*s+x1*tDir;y0=y0*s+y1*tDir;z0=z0*s+z1*tDir;w0=w0*s+w1*tDir;if(s===1-t){var f=1/Math.sqrt(x0*x0+y0*y0+z0*z0+w0*w0);x0*=f;y0*=f;z0*=f;w0*=f;}}dst[dstOffset]=x0;dst[dstOffset+1]=y0;dst[dstOffset+2]=z0;dst[dstOffset+3]=w0;}},{key:\"multiplyQuaternionsFlat\",value:function multiplyQuaternionsFlat(dst,dstOffset,src0,srcOffset0,src1,srcOffset1){var x0=src0[srcOffset0];var y0=src0[srcOffset0+1];var z0=src0[srcOffset0+2];var w0=src0[srcOffset0+3];var x1=src1[srcOffset1];var y1=src1[srcOffset1+1];var z1=src1[srcOffset1+2];var w1=src1[srcOffset1+3];dst[dstOffset]=x0*w1+w0*x1+y0*z1-z0*y1;dst[dstOffset+1]=y0*w1+w0*y1+z0*x1-x0*z1;dst[dstOffset+2]=z0*w1+w0*z1+x0*y1-y0*x1;dst[dstOffset+3]=w0*w1-x0*x1-y0*y1-z0*z1;return dst;}}]);return Quaternion;}();var Vector3=function(){function Vector3(){var x=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var y=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var z=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;_classCallCheck(this,Vector3);Object.defineProperty(this,'isVector3',{value:true});this.x=x;this.y=y;this.z=z;}_createClass(Vector3,[{key:\"set\",value:function set(x,y,z){if(z===undefined)z=this.z;this.x=x;this.y=y;this.z=z;return this;}},{key:\"setScalar\",value:function setScalar(scalar){this.x=scalar;this.y=scalar;this.z=scalar;return this;}},{key:\"setX\",value:function setX(x){this.x=x;return this;}},{key:\"setY\",value:function setY(y){this.y=y;return this;}},{key:\"setZ\",value:function setZ(z){this.z=z;return this;}},{key:\"setComponent\",value:function setComponent(index,value){switch(index){case 0:this.x=value;break;case 1:this.y=value;break;case 2:this.z=value;break;default:throw new Error('index is out of range: '+index);}return this;}},{key:\"getComponent\",value:function getComponent(index){switch(index){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error('index is out of range: '+index);}}},{key:\"clone\",value:function clone(){return new this.constructor(this.x,this.y,this.z);}},{key:\"copy\",value:function copy(v){this.x=v.x;this.y=v.y;this.z=v.z;return this;}},{key:\"add\",value:function add(v,w){if(w!==undefined){console.warn('THREE.Vector3: .add() now only accepts one argument. Use .addVectors( a, b ) instead.');return this.addVectors(v,w);}this.x+=v.x;this.y+=v.y;this.z+=v.z;return this;}},{key:\"addScalar\",value:function addScalar(s){this.x+=s;this.y+=s;this.z+=s;return this;}},{key:\"addVectors\",value:function addVectors(a,b){this.x=a.x+b.x;this.y=a.y+b.y;this.z=a.z+b.z;return this;}},{key:\"addScaledVector\",value:function addScaledVector(v,s){this.x+=v.x*s;this.y+=v.y*s;this.z+=v.z*s;return this;}},{key:\"sub\",value:function sub(v,w){if(w!==undefined){console.warn('THREE.Vector3: .sub() now only accepts one argument. Use .subVectors( a, b ) instead.');return this.subVectors(v,w);}this.x-=v.x;this.y-=v.y;this.z-=v.z;return this;}},{key:\"subScalar\",value:function subScalar(s){this.x-=s;this.y-=s;this.z-=s;return this;}},{key:\"subVectors\",value:function subVectors(a,b){this.x=a.x-b.x;this.y=a.y-b.y;this.z=a.z-b.z;return this;}},{key:\"multiply\",value:function multiply(v,w){if(w!==undefined){console.warn('THREE.Vector3: .multiply() now only accepts one argument. Use .multiplyVectors( a, b ) instead.');return this.multiplyVectors(v,w);}this.x*=v.x;this.y*=v.y;this.z*=v.z;return this;}},{key:\"multiplyScalar\",value:function multiplyScalar(scalar){this.x*=scalar;this.y*=scalar;this.z*=scalar;return this;}},{key:\"multiplyVectors\",value:function multiplyVectors(a,b){this.x=a.x*b.x;this.y=a.y*b.y;this.z=a.z*b.z;return this;}},{key:\"applyEuler\",value:function applyEuler(euler){if(!(euler&&euler.isEuler)){console.error('THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order.');}return this.applyQuaternion(_quaternion.setFromEuler(euler));}},{key:\"applyAxisAngle\",value:function applyAxisAngle(axis,angle){return this.applyQuaternion(_quaternion.setFromAxisAngle(axis,angle));}},{key:\"applyMatrix3\",value:function applyMatrix3(m){var x=this.x,y=this.y,z=this.z;var e=m.elements;this.x=e[0]*x+e[3]*y+e[6]*z;this.y=e[1]*x+e[4]*y+e[7]*z;this.z=e[2]*x+e[5]*y+e[8]*z;return this;}},{key:\"applyNormalMatrix\",value:function applyNormalMatrix(m){return this.applyMatrix3(m).normalize();}},{key:\"applyMatrix4\",value:function applyMatrix4(m){var x=this.x,y=this.y,z=this.z;var e=m.elements;var w=1/(e[3]*x+e[7]*y+e[11]*z+e[15]);this.x=(e[0]*x+e[4]*y+e[8]*z+e[12])*w;this.y=(e[1]*x+e[5]*y+e[9]*z+e[13])*w;this.z=(e[2]*x+e[6]*y+e[10]*z+e[14])*w;return this;}},{key:\"applyQuaternion\",value:function applyQuaternion(q){var x=this.x,y=this.y,z=this.z;var qx=q.x,qy=q.y,qz=q.z,qw=q.w;var ix=qw*x+qy*z-qz*y;var iy=qw*y+qz*x-qx*z;var iz=qw*z+qx*y-qy*x;var iw=-qx*x-qy*y-qz*z;this.x=ix*qw+iw*-qx+iy*-qz-iz*-qy;this.y=iy*qw+iw*-qy+iz*-qx-ix*-qz;this.z=iz*qw+iw*-qz+ix*-qy-iy*-qx;return this;}},{key:\"project\",value:function project(camera){return this.applyMatrix4(camera.matrixWorldInverse).applyMatrix4(camera.projectionMatrix);}},{key:\"unproject\",value:function unproject(camera){return this.applyMatrix4(camera.projectionMatrixInverse).applyMatrix4(camera.matrixWorld);}},{key:\"transformDirection\",value:function transformDirection(m){var x=this.x,y=this.y,z=this.z;var e=m.elements;this.x=e[0]*x+e[4]*y+e[8]*z;this.y=e[1]*x+e[5]*y+e[9]*z;this.z=e[2]*x+e[6]*y+e[10]*z;return this.normalize();}},{key:\"divide\",value:function divide(v){this.x/=v.x;this.y/=v.y;this.z/=v.z;return this;}},{key:\"divideScalar\",value:function divideScalar(scalar){return this.multiplyScalar(1/scalar);}},{key:\"min\",value:function min(v){this.x=Math.min(this.x,v.x);this.y=Math.min(this.y,v.y);this.z=Math.min(this.z,v.z);return this;}},{key:\"max\",value:function max(v){this.x=Math.max(this.x,v.x);this.y=Math.max(this.y,v.y);this.z=Math.max(this.z,v.z);return this;}},{key:\"clamp\",value:function clamp(min,max){this.x=Math.max(min.x,Math.min(max.x,this.x));this.y=Math.max(min.y,Math.min(max.y,this.y));this.z=Math.max(min.z,Math.min(max.z,this.z));return this;}},{key:\"clampScalar\",value:function clampScalar(minVal,maxVal){this.x=Math.max(minVal,Math.min(maxVal,this.x));this.y=Math.max(minVal,Math.min(maxVal,this.y));this.z=Math.max(minVal,Math.min(maxVal,this.z));return this;}},{key:\"clampLength\",value:function clampLength(min,max){var length=this.length();return this.divideScalar(length||1).multiplyScalar(Math.max(min,Math.min(max,length)));}},{key:\"floor\",value:function floor(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);this.z=Math.floor(this.z);return this;}},{key:\"ceil\",value:function ceil(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);this.z=Math.ceil(this.z);return this;}},{key:\"round\",value:function round(){this.x=Math.round(this.x);this.y=Math.round(this.y);this.z=Math.round(this.z);return this;}},{key:\"roundToZero\",value:function roundToZero(){this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x);this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y);this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z);return this;}},{key:\"negate\",value:function negate(){this.x=-this.x;this.y=-this.y;this.z=-this.z;return this;}},{key:\"dot\",value:function dot(v){return this.x*v.x+this.y*v.y+this.z*v.z;}},{key:\"lengthSq\",value:function lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z;}},{key:\"length\",value:function length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z);}},{key:\"manhattanLength\",value:function manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z);}},{key:\"normalize\",value:function normalize(){return this.divideScalar(this.length()||1);}},{key:\"setLength\",value:function setLength(length){return this.normalize().multiplyScalar(length);}},{key:\"lerp\",value:function lerp(v,alpha){this.x+=(v.x-this.x)*alpha;this.y+=(v.y-this.y)*alpha;this.z+=(v.z-this.z)*alpha;return this;}},{key:\"lerpVectors\",value:function lerpVectors(v1,v2,alpha){this.x=v1.x+(v2.x-v1.x)*alpha;this.y=v1.y+(v2.y-v1.y)*alpha;this.z=v1.z+(v2.z-v1.z)*alpha;return this;}},{key:\"cross\",value:function cross(v,w){if(w!==undefined){console.warn('THREE.Vector3: .cross() now only accepts one argument. Use .crossVectors( a, b ) instead.');return this.crossVectors(v,w);}return this.crossVectors(this,v);}},{key:\"crossVectors\",value:function crossVectors(a,b){var ax=a.x,ay=a.y,az=a.z;var bx=b.x,by=b.y,bz=b.z;this.x=ay*bz-az*by;this.y=az*bx-ax*bz;this.z=ax*by-ay*bx;return this;}},{key:\"projectOnVector\",value:function projectOnVector(v){var denominator=v.lengthSq();if(denominator===0)return this.set(0,0,0);var scalar=v.dot(this)/denominator;return this.copy(v).multiplyScalar(scalar);}},{key:\"projectOnPlane\",value:function projectOnPlane(planeNormal){_vector.copy(this).projectOnVector(planeNormal);return this.sub(_vector);}},{key:\"reflect\",value:function reflect(normal){return this.sub(_vector.copy(normal).multiplyScalar(2*this.dot(normal)));}},{key:\"angleTo\",value:function angleTo(v){var denominator=Math.sqrt(this.lengthSq()*v.lengthSq());if(denominator===0)return Math.PI/2;var theta=this.dot(v)/denominator;return Math.acos(MathUtils.clamp(theta,-1,1));}},{key:\"distanceTo\",value:function distanceTo(v){return Math.sqrt(this.distanceToSquared(v));}},{key:\"distanceToSquared\",value:function distanceToSquared(v){var dx=this.x-v.x,dy=this.y-v.y,dz=this.z-v.z;return dx*dx+dy*dy+dz*dz;}},{key:\"manhattanDistanceTo\",value:function manhattanDistanceTo(v){return Math.abs(this.x-v.x)+Math.abs(this.y-v.y)+Math.abs(this.z-v.z);}},{key:\"setFromSpherical\",value:function setFromSpherical(s){return this.setFromSphericalCoords(s.radius,s.phi,s.theta);}},{key:\"setFromSphericalCoords\",value:function setFromSphericalCoords(radius,phi,theta){var sinPhiRadius=Math.sin(phi)*radius;this.x=sinPhiRadius*Math.sin(theta);this.y=Math.cos(phi)*radius;this.z=sinPhiRadius*Math.cos(theta);return this;}},{key:\"setFromCylindrical\",value:function setFromCylindrical(c){return this.setFromCylindricalCoords(c.radius,c.theta,c.y);}},{key:\"setFromCylindricalCoords\",value:function setFromCylindricalCoords(radius,theta,y){this.x=radius*Math.sin(theta);this.y=y;this.z=radius*Math.cos(theta);return this;}},{key:\"setFromMatrixPosition\",value:function setFromMatrixPosition(m){var e=m.elements;this.x=e[12];this.y=e[13];this.z=e[14];return this;}},{key:\"setFromMatrixScale\",value:function setFromMatrixScale(m){var sx=this.setFromMatrixColumn(m,0).length();var sy=this.setFromMatrixColumn(m,1).length();var sz=this.setFromMatrixColumn(m,2).length();this.x=sx;this.y=sy;this.z=sz;return this;}},{key:\"setFromMatrixColumn\",value:function setFromMatrixColumn(m,index){return this.fromArray(m.elements,index*4);}},{key:\"setFromMatrix3Column\",value:function setFromMatrix3Column(m,index){return this.fromArray(m.elements,index*3);}},{key:\"equals\",value:function equals(v){return v.x===this.x&&v.y===this.y&&v.z===this.z;}},{key:\"fromArray\",value:function fromArray(array,offset){if(offset===undefined)offset=0;this.x=array[offset];this.y=array[offset+1];this.z=array[offset+2];return this;}},{key:\"toArray\",value:function toArray(array,offset){if(array===undefined)array=[];if(offset===undefined)offset=0;array[offset]=this.x;array[offset+1]=this.y;array[offset+2]=this.z;return array;}},{key:\"fromBufferAttribute\",value:function fromBufferAttribute(attribute,index,offset){if(offset!==undefined){console.warn('THREE.Vector3: offset has been removed from .fromBufferAttribute().');}this.x=attribute.getX(index);this.y=attribute.getY(index);this.z=attribute.getZ(index);return this;}},{key:\"random\",value:function random(){this.x=Math.random();this.y=Math.random();this.z=Math.random();return this;}}]);return Vector3;}();var _vector=/*@__PURE__*/ new Vector3();var _quaternion=/*@__PURE__*/ new Quaternion();var Box3=function(){function Box3(min,max){_classCallCheck(this,Box3);Object.defineProperty(this,'isBox3',{value:true});this.min=min!==undefined?min:new Vector3(+Infinity,+Infinity,+Infinity);this.max=max!==undefined?max:new Vector3(-Infinity,-Infinity,-Infinity);}_createClass(Box3,[{key:\"set\",value:function set(min,max){this.min.copy(min);this.max.copy(max);return this;}},{key:\"setFromArray\",value:function setFromArray(array){var minX=+Infinity;var minY=+Infinity;var minZ=+Infinity;var maxX=-Infinity;var maxY=-Infinity;var maxZ=-Infinity;for(var _i4=0,l=array.length;_i4<l;_i4+=3){var x=array[_i4];var y=array[_i4+1];var z=array[_i4+2];if(x<minX)minX=x;if(y<minY)minY=y;if(z<minZ)minZ=z;if(x>maxX)maxX=x;if(y>maxY)maxY=y;if(z>maxZ)maxZ=z;}this.min.set(minX,minY,minZ);this.max.set(maxX,maxY,maxZ);return this;}},{key:\"setFromBufferAttribute\",value:function setFromBufferAttribute(attribute){var minX=+Infinity;var minY=+Infinity;var minZ=+Infinity;var maxX=-Infinity;var maxY=-Infinity;var maxZ=-Infinity;for(var _i5=0,l=attribute.count;_i5<l;_i5++){var x=attribute.getX(_i5);var y=attribute.getY(_i5);var z=attribute.getZ(_i5);if(x<minX)minX=x;if(y<minY)minY=y;if(z<minZ)minZ=z;if(x>maxX)maxX=x;if(y>maxY)maxY=y;if(z>maxZ)maxZ=z;}this.min.set(minX,minY,minZ);this.max.set(maxX,maxY,maxZ);return this;}},{key:\"setFromPoints\",value:function setFromPoints(points){this.makeEmpty();for(var _i6=0,il=points.length;_i6<il;_i6++){this.expandByPoint(points[_i6]);}return this;}},{key:\"setFromCenterAndSize\",value:function setFromCenterAndSize(center,size){var halfSize=_vector$1.copy(size).multiplyScalar(0.5);this.min.copy(center).sub(halfSize);this.max.copy(center).add(halfSize);return this;}},{key:\"setFromObject\",value:function setFromObject(object){this.makeEmpty();return this.expandByObject(object);}},{key:\"clone\",value:function clone(){return new this.constructor().copy(this);}},{key:\"copy\",value:function copy(box){this.min.copy(box.min);this.max.copy(box.max);return this;}},{key:\"makeEmpty\",value:function makeEmpty(){this.min.x=this.min.y=this.min.z=+Infinity;this.max.x=this.max.y=this.max.z=-Infinity;return this;}},{key:\"isEmpty\",value:function isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z;}},{key:\"getCenter\",value:function getCenter(target){if(target===undefined){console.warn('THREE.Box3: .getCenter() target is now required');target=new Vector3();}return this.isEmpty()?target.set(0,0,0):target.addVectors(this.min,this.max).multiplyScalar(0.5);}},{key:\"getSize\",value:function getSize(target){if(target===undefined){console.warn('THREE.Box3: .getSize() target is now required');target=new Vector3();}return this.isEmpty()?target.set(0,0,0):target.subVectors(this.max,this.min);}},{key:\"expandByPoint\",value:function expandByPoint(point){this.min.min(point);this.max.max(point);return this;}},{key:\"expandByVector\",value:function expandByVector(vector){this.min.sub(vector);this.max.add(vector);return this;}},{key:\"expandByScalar\",value:function expandByScalar(scalar){this.min.addScalar(-scalar);this.max.addScalar(scalar);return this;}},{key:\"expandByObject\",value:function expandByObject(object){object.updateWorldMatrix(false,false);var geometry=object.geometry;if(geometry!==undefined){if(geometry.boundingBox===null){geometry.computeBoundingBox();}_box.copy(geometry.boundingBox);_box.applyMatrix4(object.matrixWorld);this.union(_box);}var children=object.children;for(var _i7=0,l=children.length;_i7<l;_i7++){this.expandByObject(children[_i7]);}return this;}},{key:\"containsPoint\",value:function containsPoint(point){return point.x<this.min.x||point.x>this.max.x||point.y<this.min.y||point.y>this.max.y||point.z<this.min.z||point.z>this.max.z?false:true;}},{key:\"containsBox\",value:function containsBox(box){return this.min.x<=box.min.x&&box.max.x<=this.max.x&&this.min.y<=box.min.y&&box.max.y<=this.max.y&&this.min.z<=box.min.z&&box.max.z<=this.max.z;}},{key:\"getParameter\",value:function getParameter(point,target){if(target===undefined){console.warn('THREE.Box3: .getParameter() target is now required');target=new Vector3();}return target.set((point.x-this.min.x)/(this.max.x-this.min.x),(point.y-this.min.y)/(this.max.y-this.min.y),(point.z-this.min.z)/(this.max.z-this.min.z));}},{key:\"intersectsBox\",value:function intersectsBox(box){return box.max.x<this.min.x||box.min.x>this.max.x||box.max.y<this.min.y||box.min.y>this.max.y||box.max.z<this.min.z||box.min.z>this.max.z?false:true;}},{key:\"intersectsSphere\",value:function intersectsSphere(sphere){this.clampPoint(sphere.center,_vector$1);return _vector$1.distanceToSquared(sphere.center)<=sphere.radius*sphere.radius;}},{key:\"intersectsPlane\",value:function intersectsPlane(plane){var min,max;if(plane.normal.x>0){min=plane.normal.x*this.min.x;max=plane.normal.x*this.max.x;}else{min=plane.normal.x*this.max.x;max=plane.normal.x*this.min.x;}if(plane.normal.y>0){min+=plane.normal.y*this.min.y;max+=plane.normal.y*this.max.y;}else{min+=plane.normal.y*this.max.y;max+=plane.normal.y*this.min.y;}if(plane.normal.z>0){min+=plane.normal.z*this.min.z;max+=plane.normal.z*this.max.z;}else{min+=plane.normal.z*this.max.z;max+=plane.normal.z*this.min.z;}return min<=-plane.constant&&max>=-plane.constant;}},{key:\"intersectsTriangle\",value:function intersectsTriangle(triangle){if(this.isEmpty()){return false;}\nthis.getCenter(_center);_extents.subVectors(this.max,_center);_v0.subVectors(triangle.a,_center);_v1.subVectors(triangle.b,_center);_v2.subVectors(triangle.c,_center);_f0.subVectors(_v1,_v0);_f1.subVectors(_v2,_v1);_f2.subVectors(_v0,_v2);var axes=[0,-_f0.z,_f0.y,0,-_f1.z,_f1.y,0,-_f2.z,_f2.y,_f0.z,0,-_f0.x,_f1.z,0,-_f1.x,_f2.z,0,-_f2.x,-_f0.y,_f0.x,0,-_f1.y,_f1.x,0,-_f2.y,_f2.x,0];if(!satForAxes(axes,_v0,_v1,_v2,_extents)){return false;}\naxes=[1,0,0,0,1,0,0,0,1];if(!satForAxes(axes,_v0,_v1,_v2,_extents)){return false;}\n_triangleNormal.crossVectors(_f0,_f1);axes=[_triangleNormal.x,_triangleNormal.y,_triangleNormal.z];return satForAxes(axes,_v0,_v1,_v2,_extents);}},{key:\"clampPoint\",value:function clampPoint(point,target){if(target===undefined){console.warn('THREE.Box3: .clampPoint() target is now required');target=new Vector3();}return target.copy(point).clamp(this.min,this.max);}},{key:\"distanceToPoint\",value:function distanceToPoint(point){var clampedPoint=_vector$1.copy(point).clamp(this.min,this.max);return clampedPoint.sub(point).length();}},{key:\"getBoundingSphere\",value:function getBoundingSphere(target){if(target===undefined){console.error('THREE.Box3: .getBoundingSphere() target is now required');}this.getCenter(target.center);target.radius=this.getSize(_vector$1).length()*0.5;return target;}},{key:\"intersect\",value:function intersect(box){this.min.max(box.min);this.max.min(box.max);if(this.isEmpty())this.makeEmpty();return this;}},{key:\"union\",value:function union(box){this.min.min(box.min);this.max.max(box.max);return this;}},{key:\"applyMatrix4\",value:function applyMatrix4(matrix){if(this.isEmpty())return this;_points[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(matrix);_points[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(matrix);_points[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(matrix);_points[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(matrix);_points[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(matrix);_points[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(matrix);_points[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(matrix);_points[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(matrix);this.setFromPoints(_points);return this;}},{key:\"translate\",value:function translate(offset){this.min.add(offset);this.max.add(offset);return this;}},{key:\"equals\",value:function equals(box){return box.min.equals(this.min)&&box.max.equals(this.max);}}]);return Box3;}();function satForAxes(axes,v0,v1,v2,extents){for(var _i8=0,j=axes.length-3;_i8<=j;_i8+=3){_testAxis.fromArray(axes,_i8);var r=extents.x*Math.abs(_testAxis.x)+extents.y*Math.abs(_testAxis.y)+extents.z*Math.abs(_testAxis.z);var p0=v0.dot(_testAxis);var p1=v1.dot(_testAxis);var p2=v2.dot(_testAxis);if(Math.max(-Math.max(p0,p1,p2),Math.min(p0,p1,p2))>r){return false;}}return true;}var _points=[/*@__PURE__*/ new Vector3(),/*@__PURE__*/ new Vector3(),/*@__PURE__*/ new Vector3(),/*@__PURE__*/ new Vector3(),/*@__PURE__*/ new Vector3(),/*@__PURE__*/ new Vector3(),/*@__PURE__*/ new Vector3(),/*@__PURE__*/ new Vector3()];var _vector$1=/*@__PURE__*/ new Vector3();var _box=/*@__PURE__*/ new Box3();var _v0=/*@__PURE__*/ new Vector3();var _v1=/*@__PURE__*/ new Vector3();var _v2=/*@__PURE__*/ new Vector3();var _f0=/*@__PURE__*/ new Vector3();var _f1=/*@__PURE__*/ new Vector3();var _f2=/*@__PURE__*/ new Vector3();var _center=/*@__PURE__*/ new Vector3();var _extents=/*@__PURE__*/ new Vector3();var _triangleNormal=/*@__PURE__*/ new Vector3();var _testAxis=/*@__PURE__*/ new Vector3();var _box$1=/*@__PURE__*/ new Box3();var Sphere=function(){function Sphere(center,radius){_classCallCheck(this,Sphere);this.center=center!==undefined?center:new Vector3();this.radius=radius!==undefined?radius:-1;}_createClass(Sphere,[{key:\"set\",value:function set(center,radius){this.center.copy(center);this.radius=radius;return this;}},{key:\"setFromPoints\",value:function setFromPoints(points,optionalCenter){var center=this.center;if(optionalCenter!==undefined){center.copy(optionalCenter);}else{_box$1.setFromPoints(points).getCenter(center);}var maxRadiusSq=0;for(var _i9=0,il=points.length;_i9<il;_i9++){maxRadiusSq=Math.max(maxRadiusSq,center.distanceToSquared(points[_i9]));}this.radius=Math.sqrt(maxRadiusSq);return this;}},{key:\"clone\",value:function clone(){return new this.constructor().copy(this);}},{key:\"copy\",value:function copy(sphere){this.center.copy(sphere.center);this.radius=sphere.radius;return this;}},{key:\"isEmpty\",value:function isEmpty(){return this.radius<0;}},{key:\"makeEmpty\",value:function makeEmpty(){this.center.set(0,0,0);this.radius=-1;return this;}},{key:\"containsPoint\",value:function containsPoint(point){return point.distanceToSquared(this.center)<=this.radius*this.radius;}},{key:\"distanceToPoint\",value:function distanceToPoint(point){return point.distanceTo(this.center)-this.radius;}},{key:\"intersectsSphere\",value:function intersectsSphere(sphere){var radiusSum=this.radius+sphere.radius;return sphere.center.distanceToSquared(this.center)<=radiusSum*radiusSum;}},{key:\"intersectsBox\",value:function intersectsBox(box){return box.intersectsSphere(this);}},{key:\"intersectsPlane\",value:function intersectsPlane(plane){return Math.abs(plane.distanceToPoint(this.center))<=this.radius;}},{key:\"clampPoint\",value:function clampPoint(point,target){var deltaLengthSq=this.center.distanceToSquared(point);if(target===undefined){console.warn('THREE.Sphere: .clampPoint() target is now required');target=new Vector3();}target.copy(point);if(deltaLengthSq>this.radius*this.radius){target.sub(this.center).normalize();target.multiplyScalar(this.radius).add(this.center);}return target;}},{key:\"getBoundingBox\",value:function getBoundingBox(target){if(target===undefined){console.warn('THREE.Sphere: .getBoundingBox() target is now required');target=new Box3();}if(this.isEmpty()){target.makeEmpty();return target;}target.set(this.center,this.center);target.expandByScalar(this.radius);return target;}},{key:\"applyMatrix4\",value:function applyMatrix4(matrix){this.center.applyMatrix4(matrix);this.radius=this.radius*matrix.getMaxScaleOnAxis();return this;}},{key:\"translate\",value:function translate(offset){this.center.add(offset);return this;}},{key:\"equals\",value:function equals(sphere){return sphere.center.equals(this.center)&&sphere.radius===this.radius;}}]);return Sphere;}();var _vector$2=/*@__PURE__*/ new Vector3();var _segCenter=/*@__PURE__*/ new Vector3();var _segDir=/*@__PURE__*/ new Vector3();var _diff=/*@__PURE__*/ new Vector3();var _edge1=/*@__PURE__*/ new Vector3();var _edge2=/*@__PURE__*/ new Vector3();var _normal=/*@__PURE__*/ new Vector3();var Ray=function(){function Ray(origin,direction){_classCallCheck(this,Ray);this.origin=origin!==undefined?origin:new Vector3();this.direction=direction!==undefined?direction:new Vector3(0,0,-1);}_createClass(Ray,[{key:\"set\",value:function set(origin,direction){this.origin.copy(origin);this.direction.copy(direction);return this;}},{key:\"clone\",value:function clone(){return new this.constructor().copy(this);}},{key:\"copy\",value:function copy(ray){this.origin.copy(ray.origin);this.direction.copy(ray.direction);return this;}},{key:\"at\",value:function at(t,target){if(target===undefined){console.warn('THREE.Ray: .at() target is now required');target=new Vector3();}return target.copy(this.direction).multiplyScalar(t).add(this.origin);}},{key:\"lookAt\",value:function lookAt(v){this.direction.copy(v).sub(this.origin).normalize();return this;}},{key:\"recast\",value:function recast(t){this.origin.copy(this.at(t,_vector$2));return this;}},{key:\"closestPointToPoint\",value:function closestPointToPoint(point,target){if(target===undefined){console.warn('THREE.Ray: .closestPointToPoint() target is now required');target=new Vector3();}target.subVectors(point,this.origin);var directionDistance=target.dot(this.direction);if(directionDistance<0){return target.copy(this.origin);}return target.copy(this.direction).multiplyScalar(directionDistance).add(this.origin);}},{key:\"distanceToPoint\",value:function distanceToPoint(point){return Math.sqrt(this.distanceSqToPoint(point));}},{key:\"distanceSqToPoint\",value:function distanceSqToPoint(point){var directionDistance=_vector$2.subVectors(point,this.origin).dot(this.direction);if(directionDistance<0){return this.origin.distanceToSquared(point);}_vector$2.copy(this.direction).multiplyScalar(directionDistance).add(this.origin);return _vector$2.distanceToSquared(point);}},{key:\"distanceSqToSegment\",value:function distanceSqToSegment(v0,v1,optionalPointOnRay,optionalPointOnSegment){_segCenter.copy(v0).add(v1).multiplyScalar(0.5);_segDir.copy(v1).sub(v0).normalize();_diff.copy(this.origin).sub(_segCenter);var segExtent=v0.distanceTo(v1)*0.5;var a01=-this.direction.dot(_segDir);var b0=_diff.dot(this.direction);var b1=-_diff.dot(_segDir);var c=_diff.lengthSq();var det=Math.abs(1-a01*a01);var s0,s1,sqrDist,extDet;if(det>0){s0=a01*b1-b0;s1=a01*b0-b1;extDet=segExtent*det;if(s0>=0){if(s1>=-extDet){if(s1<=extDet){var invDet=1/det;s0*=invDet;s1*=invDet;sqrDist=s0*(s0+a01*s1+2*b0)+s1*(a01*s0+s1+2*b1)+c;}else{s1=segExtent;s0=Math.max(0,-(a01*s1+b0));sqrDist=-s0*s0+s1*(s1+2*b1)+c;}}else{s1=-segExtent;s0=Math.max(0,-(a01*s1+b0));sqrDist=-s0*s0+s1*(s1+2*b1)+c;}}else{if(s1<=-extDet){s0=Math.max(0,-(-a01*segExtent+b0));s1=s0>0?-segExtent:Math.min(Math.max(-segExtent,-b1),segExtent);sqrDist=-s0*s0+s1*(s1+2*b1)+c;}else if(s1<=extDet){s0=0;s1=Math.min(Math.max(-segExtent,-b1),segExtent);sqrDist=s1*(s1+2*b1)+c;}else{s0=Math.max(0,-(a01*segExtent+b0));s1=s0>0?segExtent:Math.min(Math.max(-segExtent,-b1),segExtent);sqrDist=-s0*s0+s1*(s1+2*b1)+c;}}}else{s1=a01>0?-segExtent:segExtent;s0=Math.max(0,-(a01*s1+b0));sqrDist=-s0*s0+s1*(s1+2*b1)+c;}if(optionalPointOnRay){optionalPointOnRay.copy(this.direction).multiplyScalar(s0).add(this.origin);}if(optionalPointOnSegment){optionalPointOnSegment.copy(_segDir).multiplyScalar(s1).add(_segCenter);}return sqrDist;}},{key:\"intersectSphere\",value:function intersectSphere(sphere,target){_vector$2.subVectors(sphere.center,this.origin);var tca=_vector$2.dot(this.direction);var d2=_vector$2.dot(_vector$2)-tca*tca;var radius2=sphere.radius*sphere.radius;if(d2>radius2)return null;var thc=Math.sqrt(radius2-d2);var t0=tca-thc;var t1=tca+thc;if(t0<0&&t1<0)return null;if(t0<0)return this.at(t1,target);return this.at(t0,target);}},{key:\"intersectsSphere\",value:function intersectsSphere(sphere){return this.distanceSqToPoint(sphere.center)<=sphere.radius*sphere.radius;}},{key:\"distanceToPlane\",value:function distanceToPlane(plane){var denominator=plane.normal.dot(this.direction);if(denominator===0){if(plane.distanceToPoint(this.origin)===0){return 0;}\nreturn null;}var t=-(this.origin.dot(plane.normal)+plane.constant)/denominator;return t>=0?t:null;}},{key:\"intersectPlane\",value:function intersectPlane(plane,target){var t=this.distanceToPlane(plane);if(t===null){return null;}return this.at(t,target);}},{key:\"intersectsPlane\",value:function intersectsPlane(plane){var distToPoint=plane.distanceToPoint(this.origin);if(distToPoint===0){return true;}var denominator=plane.normal.dot(this.direction);if(denominator*distToPoint<0){return true;}\nreturn false;}},{key:\"intersectBox\",value:function intersectBox(box,target){var tmin,tmax,tymin,tymax,tzmin,tzmax;var invdirx=1/this.direction.x,invdiry=1/this.direction.y,invdirz=1/this.direction.z;var origin=this.origin;if(invdirx>=0){tmin=(box.min.x-origin.x)*invdirx;tmax=(box.max.x-origin.x)*invdirx;}else{tmin=(box.max.x-origin.x)*invdirx;tmax=(box.min.x-origin.x)*invdirx;}if(invdiry>=0){tymin=(box.min.y-origin.y)*invdiry;tymax=(box.max.y-origin.y)*invdiry;}else{tymin=(box.max.y-origin.y)*invdiry;tymax=(box.min.y-origin.y)*invdiry;}if(tmin>tymax||tymin>tmax)return null;if(tymin>tmin||tmin!==tmin)tmin=tymin;if(tymax<tmax||tmax!==tmax)tmax=tymax;if(invdirz>=0){tzmin=(box.min.z-origin.z)*invdirz;tzmax=(box.max.z-origin.z)*invdirz;}else{tzmin=(box.max.z-origin.z)*invdirz;tzmax=(box.min.z-origin.z)*invdirz;}if(tmin>tzmax||tzmin>tmax)return null;if(tzmin>tmin||tmin!==tmin)tmin=tzmin;if(tzmax<tmax||tmax!==tmax)tmax=tzmax;if(tmax<0)return null;return this.at(tmin>=0?tmin:tmax,target);}},{key:\"intersectsBox\",value:function intersectsBox(box){return this.intersectBox(box,_vector$2)!==null;}},{key:\"intersectTriangle\",value:function intersectTriangle(a,b,c,backfaceCulling,target){_edge1.subVectors(b,a);_edge2.subVectors(c,a);_normal.crossVectors(_edge1,_edge2);var DdN=this.direction.dot(_normal);var sign;if(DdN>0){if(backfaceCulling)return null;sign=1;}else if(DdN<0){sign=-1;DdN=-DdN;}else{return null;}_diff.subVectors(this.origin,a);var DdQxE2=sign*this.direction.dot(_edge2.crossVectors(_diff,_edge2));if(DdQxE2<0){return null;}var DdE1xQ=sign*this.direction.dot(_edge1.cross(_diff));if(DdE1xQ<0){return null;}\nif(DdQxE2+DdE1xQ>DdN){return null;}\nvar QdN=-sign*_diff.dot(_normal);if(QdN<0){return null;}\nreturn this.at(QdN/DdN,target);}},{key:\"applyMatrix4\",value:function applyMatrix4(matrix4){this.origin.applyMatrix4(matrix4);this.direction.transformDirection(matrix4);return this;}},{key:\"equals\",value:function equals(ray){return ray.origin.equals(this.origin)&&ray.direction.equals(this.direction);}}]);return Ray;}();var Matrix4=function(){function Matrix4(){_classCallCheck(this,Matrix4);Object.defineProperty(this,'isMatrix4',{value:true});this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];if(arguments.length>0){console.error('THREE.Matrix4: the constructor no longer reads arguments. use .set() instead.');}}_createClass(Matrix4,[{key:\"set\",value:function set(n11,n12,n13,n14,n21,n22,n23,n24,n31,n32,n33,n34,n41,n42,n43,n44){var te=this.elements;te[0]=n11;te[4]=n12;te[8]=n13;te[12]=n14;te[1]=n21;te[5]=n22;te[9]=n23;te[13]=n24;te[2]=n31;te[6]=n32;te[10]=n33;te[14]=n34;te[3]=n41;te[7]=n42;te[11]=n43;te[15]=n44;return this;}},{key:\"identity\",value:function identity(){this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);return this;}},{key:\"clone\",value:function clone(){return new Matrix4().fromArray(this.elements);}},{key:\"copy\",value:function copy(m){var te=this.elements;var me=m.elements;te[0]=me[0];te[1]=me[1];te[2]=me[2];te[3]=me[3];te[4]=me[4];te[5]=me[5];te[6]=me[6];te[7]=me[7];te[8]=me[8];te[9]=me[9];te[10]=me[10];te[11]=me[11];te[12]=me[12];te[13]=me[13];te[14]=me[14];te[15]=me[15];return this;}},{key:\"copyPosition\",value:function copyPosition(m){var te=this.elements,me=m.elements;te[12]=me[12];te[13]=me[13];te[14]=me[14];return this;}},{key:\"extractBasis\",value:function extractBasis(xAxis,yAxis,zAxis){xAxis.setFromMatrixColumn(this,0);yAxis.setFromMatrixColumn(this,1);zAxis.setFromMatrixColumn(this,2);return this;}},{key:\"makeBasis\",value:function makeBasis(xAxis,yAxis,zAxis){this.set(xAxis.x,yAxis.x,zAxis.x,0,xAxis.y,yAxis.y,zAxis.y,0,xAxis.z,yAxis.z,zAxis.z,0,0,0,0,1);return this;}},{key:\"extractRotation\",value:function extractRotation(m){var te=this.elements;var me=m.elements;var scaleX=1/_v1$1.setFromMatrixColumn(m,0).length();var scaleY=1/_v1$1.setFromMatrixColumn(m,1).length();var scaleZ=1/_v1$1.setFromMatrixColumn(m,2).length();te[0]=me[0]*scaleX;te[1]=me[1]*scaleX;te[2]=me[2]*scaleX;te[3]=0;te[4]=me[4]*scaleY;te[5]=me[5]*scaleY;te[6]=me[6]*scaleY;te[7]=0;te[8]=me[8]*scaleZ;te[9]=me[9]*scaleZ;te[10]=me[10]*scaleZ;te[11]=0;te[12]=0;te[13]=0;te[14]=0;te[15]=1;return this;}},{key:\"makeRotationFromEuler\",value:function makeRotationFromEuler(euler){if(!(euler&&euler.isEuler)){console.error('THREE.Matrix4: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.');}var te=this.elements;var x=euler.x,y=euler.y,z=euler.z;var a=Math.cos(x),b=Math.sin(x);var c=Math.cos(y),d=Math.sin(y);var e=Math.cos(z),f=Math.sin(z);if(euler.order==='XYZ'){var ae=a*e,af=a*f,be=b*e,bf=b*f;te[0]=c*e;te[4]=-c*f;te[8]=d;te[1]=af+be*d;te[5]=ae-bf*d;te[9]=-b*c;te[2]=bf-ae*d;te[6]=be+af*d;te[10]=a*c;}else if(euler.order==='YXZ'){var ce=c*e,cf=c*f,de=d*e,df=d*f;te[0]=ce+df*b;te[4]=de*b-cf;te[8]=a*d;te[1]=a*f;te[5]=a*e;te[9]=-b;te[2]=cf*b-de;te[6]=df+ce*b;te[10]=a*c;}else if(euler.order==='ZXY'){var _ce=c*e,_cf=c*f,_de=d*e,_df=d*f;te[0]=_ce-_df*b;te[4]=-a*f;te[8]=_de+_cf*b;te[1]=_cf+_de*b;te[5]=a*e;te[9]=_df-_ce*b;te[2]=-a*d;te[6]=b;te[10]=a*c;}else if(euler.order==='ZYX'){var _ae=a*e,_af=a*f,_be=b*e,_bf=b*f;te[0]=c*e;te[4]=_be*d-_af;te[8]=_ae*d+_bf;te[1]=c*f;te[5]=_bf*d+_ae;te[9]=_af*d-_be;te[2]=-d;te[6]=b*c;te[10]=a*c;}else if(euler.order==='YZX'){var ac=a*c,ad=a*d,bc=b*c,bd=b*d;te[0]=c*e;te[4]=bd-ac*f;te[8]=bc*f+ad;te[1]=f;te[5]=a*e;te[9]=-b*e;te[2]=-d*e;te[6]=ad*f+bc;te[10]=ac-bd*f;}else if(euler.order==='XZY'){var _ac=a*c,_ad=a*d,_bc=b*c,_bd=b*d;te[0]=c*e;te[4]=-f;te[8]=d*e;te[1]=_ac*f+_bd;te[5]=a*e;te[9]=_ad*f-_bc;te[2]=_bc*f-_ad;te[6]=b*e;te[10]=_bd*f+_ac;}\nte[3]=0;te[7]=0;te[11]=0;te[12]=0;te[13]=0;te[14]=0;te[15]=1;return this;}},{key:\"makeRotationFromQuaternion\",value:function makeRotationFromQuaternion(q){return this.compose(_zero,q,_one);}},{key:\"lookAt\",value:function lookAt(eye,target,up){var te=this.elements;_z.subVectors(eye,target);if(_z.lengthSq()===0){_z.z=1;}_z.normalize();_x.crossVectors(up,_z);if(_x.lengthSq()===0){if(Math.abs(up.z)===1){_z.x+=0.0001;}else{_z.z+=0.0001;}_z.normalize();_x.crossVectors(up,_z);}_x.normalize();_y.crossVectors(_z,_x);te[0]=_x.x;te[4]=_y.x;te[8]=_z.x;te[1]=_x.y;te[5]=_y.y;te[9]=_z.y;te[2]=_x.z;te[6]=_y.z;te[10]=_z.z;return this;}},{key:\"multiply\",value:function multiply(m,n){if(n!==undefined){console.warn('THREE.Matrix4: .multiply() now only accepts one argument. Use .multiplyMatrices( a, b ) instead.');return this.multiplyMatrices(m,n);}return this.multiplyMatrices(this,m);}},{key:\"premultiply\",value:function premultiply(m){return this.multiplyMatrices(m,this);}},{key:\"multiplyMatrices\",value:function multiplyMatrices(a,b){var ae=a.elements;var be=b.elements;var te=this.elements;var a11=ae[0],a12=ae[4],a13=ae[8],a14=ae[12];var a21=ae[1],a22=ae[5],a23=ae[9],a24=ae[13];var a31=ae[2],a32=ae[6],a33=ae[10],a34=ae[14];var a41=ae[3],a42=ae[7],a43=ae[11],a44=ae[15];var b11=be[0],b12=be[4],b13=be[8],b14=be[12];var b21=be[1],b22=be[5],b23=be[9],b24=be[13];var b31=be[2],b32=be[6],b33=be[10],b34=be[14];var b41=be[3],b42=be[7],b43=be[11],b44=be[15];te[0]=a11*b11+a12*b21+a13*b31+a14*b41;te[4]=a11*b12+a12*b22+a13*b32+a14*b42;te[8]=a11*b13+a12*b23+a13*b33+a14*b43;te[12]=a11*b14+a12*b24+a13*b34+a14*b44;te[1]=a21*b11+a22*b21+a23*b31+a24*b41;te[5]=a21*b12+a22*b22+a23*b32+a24*b42;te[9]=a21*b13+a22*b23+a23*b33+a24*b43;te[13]=a21*b14+a22*b24+a23*b34+a24*b44;te[2]=a31*b11+a32*b21+a33*b31+a34*b41;te[6]=a31*b12+a32*b22+a33*b32+a34*b42;te[10]=a31*b13+a32*b23+a33*b33+a34*b43;te[14]=a31*b14+a32*b24+a33*b34+a34*b44;te[3]=a41*b11+a42*b21+a43*b31+a44*b41;te[7]=a41*b12+a42*b22+a43*b32+a44*b42;te[11]=a41*b13+a42*b23+a43*b33+a44*b43;te[15]=a41*b14+a42*b24+a43*b34+a44*b44;return this;}},{key:\"multiplyScalar\",value:function multiplyScalar(s){var te=this.elements;te[0]*=s;te[4]*=s;te[8]*=s;te[12]*=s;te[1]*=s;te[5]*=s;te[9]*=s;te[13]*=s;te[2]*=s;te[6]*=s;te[10]*=s;te[14]*=s;te[3]*=s;te[7]*=s;te[11]*=s;te[15]*=s;return this;}},{key:\"determinant\",value:function determinant(){var te=this.elements;var n11=te[0],n12=te[4],n13=te[8],n14=te[12];var n21=te[1],n22=te[5],n23=te[9],n24=te[13];var n31=te[2],n32=te[6],n33=te[10],n34=te[14];var n41=te[3],n42=te[7],n43=te[11],n44=te[15];return n41*(+n14*n23*n32-n13*n24*n32-n14*n22*n33+n12*n24*n33+n13*n22*n34-n12*n23*n34)+n42*(+n11*n23*n34-n11*n24*n33+n14*n21*n33-n13*n21*n34+n13*n24*n31-n14*n23*n31)+n43*(+n11*n24*n32-n11*n22*n34-n14*n21*n32+n12*n21*n34+n14*n22*n31-n12*n24*n31)+n44*(-n13*n22*n31-n11*n23*n32+n11*n22*n33+n13*n21*n32-n12*n21*n33+n12*n23*n31);}},{key:\"transpose\",value:function transpose(){var te=this.elements;var tmp;tmp=te[1];te[1]=te[4];te[4]=tmp;tmp=te[2];te[2]=te[8];te[8]=tmp;tmp=te[6];te[6]=te[9];te[9]=tmp;tmp=te[3];te[3]=te[12];te[12]=tmp;tmp=te[7];te[7]=te[13];te[13]=tmp;tmp=te[11];te[11]=te[14];te[14]=tmp;return this;}},{key:\"setPosition\",value:function setPosition(x,y,z){var te=this.elements;if(x.isVector3){te[12]=x.x;te[13]=x.y;te[14]=x.z;}else{te[12]=x;te[13]=y;te[14]=z;}return this;}},{key:\"getInverse\",value:function getInverse(m,throwOnDegenerate){if(throwOnDegenerate!==undefined){console.warn(\"THREE.Matrix4: .getInverse() can no longer be configured to throw on degenerate.\");}\nvar te=this.elements,me=m.elements,n11=me[0],n21=me[1],n31=me[2],n41=me[3],n12=me[4],n22=me[5],n32=me[6],n42=me[7],n13=me[8],n23=me[9],n33=me[10],n43=me[11],n14=me[12],n24=me[13],n34=me[14],n44=me[15],t11=n23*n34*n42-n24*n33*n42+n24*n32*n43-n22*n34*n43-n23*n32*n44+n22*n33*n44,t12=n14*n33*n42-n13*n34*n42-n14*n32*n43+n12*n34*n43+n13*n32*n44-n12*n33*n44,t13=n13*n24*n42-n14*n23*n42+n14*n22*n43-n12*n24*n43-n13*n22*n44+n12*n23*n44,t14=n14*n23*n32-n13*n24*n32-n14*n22*n33+n12*n24*n33+n13*n22*n34-n12*n23*n34;var det=n11*t11+n21*t12+n31*t13+n41*t14;if(det===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);var detInv=1/det;te[0]=t11*detInv;te[1]=(n24*n33*n41-n23*n34*n41-n24*n31*n43+n21*n34*n43+n23*n31*n44-n21*n33*n44)*detInv;te[2]=(n22*n34*n41-n24*n32*n41+n24*n31*n42-n21*n34*n42-n22*n31*n44+n21*n32*n44)*detInv;te[3]=(n23*n32*n41-n22*n33*n41-n23*n31*n42+n21*n33*n42+n22*n31*n43-n21*n32*n43)*detInv;te[4]=t12*detInv;te[5]=(n13*n34*n41-n14*n33*n41+n14*n31*n43-n11*n34*n43-n13*n31*n44+n11*n33*n44)*detInv;te[6]=(n14*n32*n41-n12*n34*n41-n14*n31*n42+n11*n34*n42+n12*n31*n44-n11*n32*n44)*detInv;te[7]=(n12*n33*n41-n13*n32*n41+n13*n31*n42-n11*n33*n42-n12*n31*n43+n11*n32*n43)*detInv;te[8]=t13*detInv;te[9]=(n14*n23*n41-n13*n24*n41-n14*n21*n43+n11*n24*n43+n13*n21*n44-n11*n23*n44)*detInv;te[10]=(n12*n24*n41-n14*n22*n41+n14*n21*n42-n11*n24*n42-n12*n21*n44+n11*n22*n44)*detInv;te[11]=(n13*n22*n41-n12*n23*n41-n13*n21*n42+n11*n23*n42+n12*n21*n43-n11*n22*n43)*detInv;te[12]=t14*detInv;te[13]=(n13*n24*n31-n14*n23*n31+n14*n21*n33-n11*n24*n33-n13*n21*n34+n11*n23*n34)*detInv;te[14]=(n14*n22*n31-n12*n24*n31-n14*n21*n32+n11*n24*n32+n12*n21*n34-n11*n22*n34)*detInv;te[15]=(n12*n23*n31-n13*n22*n31+n13*n21*n32-n11*n23*n32-n12*n21*n33+n11*n22*n33)*detInv;return this;}},{key:\"scale\",value:function scale(v){var te=this.elements;var x=v.x,y=v.y,z=v.z;te[0]*=x;te[4]*=y;te[8]*=z;te[1]*=x;te[5]*=y;te[9]*=z;te[2]*=x;te[6]*=y;te[10]*=z;te[3]*=x;te[7]*=y;te[11]*=z;return this;}},{key:\"getMaxScaleOnAxis\",value:function getMaxScaleOnAxis(){var te=this.elements;var scaleXSq=te[0]*te[0]+te[1]*te[1]+te[2]*te[2];var scaleYSq=te[4]*te[4]+te[5]*te[5]+te[6]*te[6];var scaleZSq=te[8]*te[8]+te[9]*te[9]+te[10]*te[10];return Math.sqrt(Math.max(scaleXSq,scaleYSq,scaleZSq));}},{key:\"makeTranslation\",value:function makeTranslation(x,y,z){this.set(1,0,0,x,0,1,0,y,0,0,1,z,0,0,0,1);return this;}},{key:\"makeRotationX\",value:function makeRotationX(theta){var c=Math.cos(theta),s=Math.sin(theta);this.set(1,0,0,0,0,c,-s,0,0,s,c,0,0,0,0,1);return this;}},{key:\"makeRotationY\",value:function makeRotationY(theta){var c=Math.cos(theta),s=Math.sin(theta);this.set(c,0,s,0,0,1,0,0,-s,0,c,0,0,0,0,1);return this;}},{key:\"makeRotationZ\",value:function makeRotationZ(theta){var c=Math.cos(theta),s=Math.sin(theta);this.set(c,-s,0,0,s,c,0,0,0,0,1,0,0,0,0,1);return this;}},{key:\"makeRotationAxis\",value:function makeRotationAxis(axis,angle){var c=Math.cos(angle);var s=Math.sin(angle);var t=1-c;var x=axis.x,y=axis.y,z=axis.z;var tx=t*x,ty=t*y;this.set(tx*x+c,tx*y-s*z,tx*z+s*y,0,tx*y+s*z,ty*y+c,ty*z-s*x,0,tx*z-s*y,ty*z+s*x,t*z*z+c,0,0,0,0,1);return this;}},{key:\"makeScale\",value:function makeScale(x,y,z){this.set(x,0,0,0,0,y,0,0,0,0,z,0,0,0,0,1);return this;}},{key:\"makeShear\",value:function makeShear(x,y,z){this.set(1,y,z,0,x,1,z,0,x,y,1,0,0,0,0,1);return this;}},{key:\"compose\",value:function compose(position,quaternion,scale){var te=this.elements;var x=quaternion._x,y=quaternion._y,z=quaternion._z,w=quaternion._w;var x2=x+x,y2=y+y,z2=z+z;var xx=x*x2,xy=x*y2,xz=x*z2;var yy=y*y2,yz=y*z2,zz=z*z2;var wx=w*x2,wy=w*y2,wz=w*z2;var sx=scale.x,sy=scale.y,sz=scale.z;te[0]=(1-(yy+zz))*sx;te[1]=(xy+wz)*sx;te[2]=(xz-wy)*sx;te[3]=0;te[4]=(xy-wz)*sy;te[5]=(1-(xx+zz))*sy;te[6]=(yz+wx)*sy;te[7]=0;te[8]=(xz+wy)*sz;te[9]=(yz-wx)*sz;te[10]=(1-(xx+yy))*sz;te[11]=0;te[12]=position.x;te[13]=position.y;te[14]=position.z;te[15]=1;return this;}},{key:\"decompose\",value:function decompose(position,quaternion,scale){var te=this.elements;var sx=_v1$1.set(te[0],te[1],te[2]).length();var sy=_v1$1.set(te[4],te[5],te[6]).length();var sz=_v1$1.set(te[8],te[9],te[10]).length();var det=this.determinant();if(det<0)sx=-sx;position.x=te[12];position.y=te[13];position.z=te[14];_m1.copy(this);var invSX=1/sx;var invSY=1/sy;var invSZ=1/sz;_m1.elements[0]*=invSX;_m1.elements[1]*=invSX;_m1.elements[2]*=invSX;_m1.elements[4]*=invSY;_m1.elements[5]*=invSY;_m1.elements[6]*=invSY;_m1.elements[8]*=invSZ;_m1.elements[9]*=invSZ;_m1.elements[10]*=invSZ;quaternion.setFromRotationMatrix(_m1);scale.x=sx;scale.y=sy;scale.z=sz;return this;}},{key:\"makePerspective\",value:function makePerspective(left,right,top,bottom,near,far){if(far===undefined){console.warn('THREE.Matrix4: .makePerspective() has been redefined and has a new signature. Please check the docs.');}var te=this.elements;var x=2*near/(right-left);var y=2*near/(top-bottom);var a=(right+left)/(right-left);var b=(top+bottom)/(top-bottom);var c=-(far+near)/(far-near);var d=-2*far*near/(far-near);te[0]=x;te[4]=0;te[8]=a;te[12]=0;te[1]=0;te[5]=y;te[9]=b;te[13]=0;te[2]=0;te[6]=0;te[10]=c;te[14]=d;te[3]=0;te[7]=0;te[11]=-1;te[15]=0;return this;}},{key:\"makeOrthographic\",value:function makeOrthographic(left,right,top,bottom,near,far){var te=this.elements;var w=1.0/(right-left);var h=1.0/(top-bottom);var p=1.0/(far-near);var x=(right+left)*w;var y=(top+bottom)*h;var z=(far+near)*p;te[0]=2*w;te[4]=0;te[8]=0;te[12]=-x;te[1]=0;te[5]=2*h;te[9]=0;te[13]=-y;te[2]=0;te[6]=0;te[10]=-2*p;te[14]=-z;te[3]=0;te[7]=0;te[11]=0;te[15]=1;return this;}},{key:\"equals\",value:function equals(matrix){var te=this.elements;var me=matrix.elements;for(var _i10=0;_i10<16;_i10++){if(te[_i10]!==me[_i10])return false;}return true;}},{key:\"fromArray\",value:function fromArray(array,offset){if(offset===undefined)offset=0;for(var _i11=0;_i11<16;_i11++){this.elements[_i11]=array[_i11+offset];}return this;}},{key:\"toArray\",value:function toArray(array,offset){if(array===undefined)array=[];if(offset===undefined)offset=0;var te=this.elements;array[offset]=te[0];array[offset+1]=te[1];array[offset+2]=te[2];array[offset+3]=te[3];array[offset+4]=te[4];array[offset+5]=te[5];array[offset+6]=te[6];array[offset+7]=te[7];array[offset+8]=te[8];array[offset+9]=te[9];array[offset+10]=te[10];array[offset+11]=te[11];array[offset+12]=te[12];array[offset+13]=te[13];array[offset+14]=te[14];array[offset+15]=te[15];return array;}}]);return Matrix4;}();var _v1$1=/*@__PURE__*/ new Vector3();var _m1=/*@__PURE__*/ new Matrix4();var _zero=/*@__PURE__*/ new Vector3(0,0,0);var _one=/*@__PURE__*/ new Vector3(1,1,1);var _x=/*@__PURE__*/ new Vector3();var _y=/*@__PURE__*/ new Vector3();var _z=/*@__PURE__*/ new Vector3();var Euler=function(){function Euler(){var x=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var y=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var z=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var order=arguments.length>3&&arguments[3]!==undefined?arguments[3]:Euler.DefaultOrder;_classCallCheck(this,Euler);Object.defineProperty(this,'isEuler',{value:true});this._x=x;this._y=y;this._z=z;this._order=order;}_createClass(Euler,[{key:\"set\",value:function set(x,y,z,order){this._x=x;this._y=y;this._z=z;this._order=order||this._order;this._onChangeCallback();return this;}},{key:\"clone\",value:function clone(){return new this.constructor(this._x,this._y,this._z,this._order);}},{key:\"copy\",value:function copy(euler){this._x=euler._x;this._y=euler._y;this._z=euler._z;this._order=euler._order;this._onChangeCallback();return this;}},{key:\"setFromRotationMatrix\",value:function setFromRotationMatrix(m,order,update){var clamp=MathUtils.clamp;var te=m.elements;var m11=te[0],m12=te[4],m13=te[8];var m21=te[1],m22=te[5],m23=te[9];var m31=te[2],m32=te[6],m33=te[10];order=order||this._order;switch(order){case'XYZ':this._y=Math.asin(clamp(m13,-1,1));if(Math.abs(m13)<0.9999999){this._x=Math.atan2(-m23,m33);this._z=Math.atan2(-m12,m11);}else{this._x=Math.atan2(m32,m22);this._z=0;}break;case'YXZ':this._x=Math.asin(-clamp(m23,-1,1));if(Math.abs(m23)<0.9999999){this._y=Math.atan2(m13,m33);this._z=Math.atan2(m21,m22);}else{this._y=Math.atan2(-m31,m11);this._z=0;}break;case'ZXY':this._x=Math.asin(clamp(m32,-1,1));if(Math.abs(m32)<0.9999999){this._y=Math.atan2(-m31,m33);this._z=Math.atan2(-m12,m22);}else{this._y=0;this._z=Math.atan2(m21,m11);}break;case'ZYX':this._y=Math.asin(-clamp(m31,-1,1));if(Math.abs(m31)<0.9999999){this._x=Math.atan2(m32,m33);this._z=Math.atan2(m21,m11);}else{this._x=0;this._z=Math.atan2(-m12,m22);}break;case'YZX':this._z=Math.asin(clamp(m21,-1,1));if(Math.abs(m21)<0.9999999){this._x=Math.atan2(-m23,m22);this._y=Math.atan2(-m31,m11);}else{this._x=0;this._y=Math.atan2(m13,m33);}break;case'XZY':this._z=Math.asin(-clamp(m12,-1,1));if(Math.abs(m12)<0.9999999){this._x=Math.atan2(m32,m22);this._y=Math.atan2(m13,m11);}else{this._x=Math.atan2(-m23,m33);this._y=0;}break;default:console.warn('THREE.Euler: .setFromRotationMatrix() encountered an unknown order: '+order);}this._order=order;if(update!==false)this._onChangeCallback();return this;}},{key:\"setFromQuaternion\",value:function setFromQuaternion(q,order,update){_matrix.makeRotationFromQuaternion(q);return this.setFromRotationMatrix(_matrix,order,update);}},{key:\"setFromVector3\",value:function setFromVector3(v,order){return this.set(v.x,v.y,v.z,order||this._order);}},{key:\"reorder\",value:function reorder(newOrder){_quaternion$1.setFromEuler(this);return this.setFromQuaternion(_quaternion$1,newOrder);}},{key:\"equals\",value:function equals(euler){return euler._x===this._x&&euler._y===this._y&&euler._z===this._z&&euler._order===this._order;}},{key:\"fromArray\",value:function fromArray(array){this._x=array[0];this._y=array[1];this._z=array[2];if(array[3]!==undefined)this._order=array[3];this._onChangeCallback();return this;}},{key:\"toArray\",value:function toArray(array,offset){if(array===undefined)array=[];if(offset===undefined)offset=0;array[offset]=this._x;array[offset+1]=this._y;array[offset+2]=this._z;array[offset+3]=this._order;return array;}},{key:\"toVector3\",value:function toVector3(optionalResult){if(optionalResult){return optionalResult.set(this._x,this._y,this._z);}else{return new Vector3(this._x,this._y,this._z);}}},{key:\"_onChange\",value:function _onChange(callback){this._onChangeCallback=callback;return this;}},{key:\"_onChangeCallback\",value:function _onChangeCallback(){}},{key:\"x\",get:function get(){return this._x;},set:function set(value){this._x=value;this._onChangeCallback();}},{key:\"y\",get:function get(){return this._y;},set:function set(value){this._y=value;this._onChangeCallback();}},{key:\"z\",get:function get(){return this._z;},set:function set(value){this._z=value;this._onChangeCallback();}},{key:\"order\",get:function get(){return this._order;},set:function set(value){this._order=value;this._onChangeCallback();}}]);return Euler;}();Euler.DefaultOrder='XYZ';Euler.RotationOrders=['XYZ','YZX','ZXY','XZY','YXZ','ZYX'];var _matrix=/*@__PURE__*/ new Matrix4();var _quaternion$1=/*@__PURE__*/ new Quaternion();var Layers=function(){function Layers(){_classCallCheck(this,Layers);this.mask=1|0;}_createClass(Layers,[{key:\"set\",value:function set(channel){this.mask=1<<channel|0;}},{key:\"enable\",value:function enable(channel){this.mask|=1<<channel|0;}},{key:\"enableAll\",value:function enableAll(){this.mask=0xffffffff|0;}},{key:\"toggle\",value:function toggle(channel){this.mask^=1<<channel|0;}},{key:\"disable\",value:function disable(channel){this.mask&=~(1<<channel|0);}},{key:\"disableAll\",value:function disableAll(){this.mask=0;}},{key:\"test\",value:function test(layers){return(this.mask&layers.mask)!==0;}}]);return Layers;}();var _object3DId=0;var _v1$2=new Vector3();var _q1=new Quaternion();var _m1$1=new Matrix4();var _target=new Vector3();var _position=new Vector3();var _scale=new Vector3();var _quaternion$2=new Quaternion();var _xAxis=new Vector3(1,0,0);var _yAxis=new Vector3(0,1,0);var _zAxis=new Vector3(0,0,1);var _addedEvent={type:'added'};var _removedEvent={type:'removed'};function Object3D(){Object.defineProperty(this,'id',{value:_object3DId++});this.uuid=MathUtils.generateUUID();this.name='';this.type='Object3D';this.parent=null;this.children=[];this.up=Object3D.DefaultUp.clone();var position=new Vector3();var rotation=new Euler();var quaternion=new Quaternion();var scale=new Vector3(1,1,1);function onRotationChange(){quaternion.setFromEuler(rotation,false);}function onQuaternionChange(){rotation.setFromQuaternion(quaternion,undefined,false);}rotation._onChange(onRotationChange);quaternion._onChange(onQuaternionChange);Object.defineProperties(this,{position:{configurable:true,enumerable:true,value:position},rotation:{configurable:true,enumerable:true,value:rotation},quaternion:{configurable:true,enumerable:true,value:quaternion},scale:{configurable:true,enumerable:true,value:scale},modelViewMatrix:{value:new Matrix4()},normalMatrix:{value:new Matrix3()}});this.matrix=new Matrix4();this.matrixWorld=new Matrix4();this.matrixAutoUpdate=Object3D.DefaultMatrixAutoUpdate;this.matrixWorldNeedsUpdate=false;this.layers=new Layers();this.visible=true;this.castShadow=false;this.receiveShadow=false;this.frustumCulled=true;this.renderOrder=0;this.userData={};}Object3D.DefaultUp=new Vector3(0,1,0);Object3D.DefaultMatrixAutoUpdate=true;Object3D.prototype=Object.assign(Object.create(EventDispatcher.prototype),{constructor:Object3D,isObject3D:true,onBeforeRender:function onBeforeRender(){},onAfterRender:function onAfterRender(){},applyMatrix4:function applyMatrix4(matrix){if(this.matrixAutoUpdate)this.updateMatrix();this.matrix.premultiply(matrix);this.matrix.decompose(this.position,this.quaternion,this.scale);},applyQuaternion:function applyQuaternion(q){this.quaternion.premultiply(q);return this;},setRotationFromAxisAngle:function setRotationFromAxisAngle(axis,angle){this.quaternion.setFromAxisAngle(axis,angle);},setRotationFromEuler:function setRotationFromEuler(euler){this.quaternion.setFromEuler(euler,true);},setRotationFromMatrix:function setRotationFromMatrix(m){this.quaternion.setFromRotationMatrix(m);},setRotationFromQuaternion:function setRotationFromQuaternion(q){this.quaternion.copy(q);},rotateOnAxis:function rotateOnAxis(axis,angle){_q1.setFromAxisAngle(axis,angle);this.quaternion.multiply(_q1);return this;},rotateOnWorldAxis:function rotateOnWorldAxis(axis,angle){_q1.setFromAxisAngle(axis,angle);this.quaternion.premultiply(_q1);return this;},rotateX:function rotateX(angle){return this.rotateOnAxis(_xAxis,angle);},rotateY:function rotateY(angle){return this.rotateOnAxis(_yAxis,angle);},rotateZ:function rotateZ(angle){return this.rotateOnAxis(_zAxis,angle);},translateOnAxis:function translateOnAxis(axis,distance){_v1$2.copy(axis).applyQuaternion(this.quaternion);this.position.add(_v1$2.multiplyScalar(distance));return this;},translateX:function translateX(distance){return this.translateOnAxis(_xAxis,distance);},translateY:function translateY(distance){return this.translateOnAxis(_yAxis,distance);},translateZ:function translateZ(distance){return this.translateOnAxis(_zAxis,distance);},localToWorld:function localToWorld(vector){return vector.applyMatrix4(this.matrixWorld);},worldToLocal:function worldToLocal(vector){return vector.applyMatrix4(_m1$1.getInverse(this.matrixWorld));},lookAt:function lookAt(x,y,z){if(x.isVector3){_target.copy(x);}else{_target.set(x,y,z);}var parent=this.parent;this.updateWorldMatrix(true,false);_position.setFromMatrixPosition(this.matrixWorld);if(this.isCamera||this.isLight){_m1$1.lookAt(_position,_target,this.up);}else{_m1$1.lookAt(_target,_position,this.up);}this.quaternion.setFromRotationMatrix(_m1$1);if(parent){_m1$1.extractRotation(parent.matrixWorld);_q1.setFromRotationMatrix(_m1$1);this.quaternion.premultiply(_q1.inverse());}},add:function add(object){if(arguments.length>1){for(var _i12=0;_i12<arguments.length;_i12++){this.add(arguments[_i12]);}return this;}if(object===this){console.error(\"THREE.Object3D.add: object can't be added as a child of itself.\",object);return this;}if(object&&object.isObject3D){if(object.parent!==null){object.parent.remove(object);}object.parent=this;this.children.push(object);object.dispatchEvent(_addedEvent);}else{console.error(\"THREE.Object3D.add: object not an instance of THREE.Object3D.\",object);}return this;},remove:function remove(object){if(arguments.length>1){for(var _i13=0;_i13<arguments.length;_i13++){this.remove(arguments[_i13]);}return this;}var index=this.children.indexOf(object);if(index!==-1){object.parent=null;this.children.splice(index,1);object.dispatchEvent(_removedEvent);}return this;},attach:function attach(object){this.updateWorldMatrix(true,false);_m1$1.getInverse(this.matrixWorld);if(object.parent!==null){object.parent.updateWorldMatrix(true,false);_m1$1.multiply(object.parent.matrixWorld);}object.applyMatrix4(_m1$1);object.updateWorldMatrix(false,false);this.add(object);return this;},getObjectById:function getObjectById(id){return this.getObjectByProperty('id',id);},getObjectByName:function getObjectByName(name){return this.getObjectByProperty('name',name);},getObjectByProperty:function getObjectByProperty(name,value){if(this[name]===value)return this;for(var _i14=0,l=this.children.length;_i14<l;_i14++){var child=this.children[_i14];var object=child.getObjectByProperty(name,value);if(object!==undefined){return object;}}return undefined;},getWorldPosition:function getWorldPosition(target){if(target===undefined){console.warn('THREE.Object3D: .getWorldPosition() target is now required');target=new Vector3();}this.updateWorldMatrix(true,false);return target.setFromMatrixPosition(this.matrixWorld);},getWorldQuaternion:function getWorldQuaternion(target){if(target===undefined){console.warn('THREE.Object3D: .getWorldQuaternion() target is now required');target=new Quaternion();}this.updateWorldMatrix(true,false);this.matrixWorld.decompose(_position,target,_scale);return target;},getWorldScale:function getWorldScale(target){if(target===undefined){console.warn('THREE.Object3D: .getWorldScale() target is now required');target=new Vector3();}this.updateWorldMatrix(true,false);this.matrixWorld.decompose(_position,_quaternion$2,target);return target;},getWorldDirection:function getWorldDirection(target){if(target===undefined){console.warn('THREE.Object3D: .getWorldDirection() target is now required');target=new Vector3();}this.updateWorldMatrix(true,false);var e=this.matrixWorld.elements;return target.set(e[8],e[9],e[10]).normalize();},raycast:function raycast(){},traverse:function traverse(callback){callback(this);var children=this.children;for(var _i15=0,l=children.length;_i15<l;_i15++){children[_i15].traverse(callback);}},traverseVisible:function traverseVisible(callback){if(this.visible===false)return;callback(this);var children=this.children;for(var _i16=0,l=children.length;_i16<l;_i16++){children[_i16].traverseVisible(callback);}},traverseAncestors:function traverseAncestors(callback){var parent=this.parent;if(parent!==null){callback(parent);parent.traverseAncestors(callback);}},updateMatrix:function updateMatrix(){this.matrix.compose(this.position,this.quaternion,this.scale);this.matrixWorldNeedsUpdate=true;},updateMatrixWorld:function updateMatrixWorld(force){if(this.matrixAutoUpdate)this.updateMatrix();if(this.matrixWorldNeedsUpdate||force){if(this.parent===null){this.matrixWorld.copy(this.matrix);}else{this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix);}this.matrixWorldNeedsUpdate=false;force=true;}\nvar children=this.children;for(var _i17=0,l=children.length;_i17<l;_i17++){children[_i17].updateMatrixWorld(force);}},updateWorldMatrix:function updateWorldMatrix(updateParents,updateChildren){var parent=this.parent;if(updateParents===true&&parent!==null){parent.updateWorldMatrix(true,false);}if(this.matrixAutoUpdate)this.updateMatrix();if(this.parent===null){this.matrixWorld.copy(this.matrix);}else{this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix);}\nif(updateChildren===true){var children=this.children;for(var _i18=0,l=children.length;_i18<l;_i18++){children[_i18].updateWorldMatrix(false,true);}}},toJSON:function toJSON(meta){var isRootObject=meta===undefined||typeof meta==='string';var output={};if(isRootObject){meta={geometries:{},materials:{},textures:{},images:{},shapes:{}};output.metadata={version:4.5,type:'Object',generator:'Object3D.toJSON'};}\nvar object={};object.uuid=this.uuid;object.type=this.type;if(this.name!=='')object.name=this.name;if(this.castShadow===true)object.castShadow=true;if(this.receiveShadow===true)object.receiveShadow=true;if(this.visible===false)object.visible=false;if(this.frustumCulled===false)object.frustumCulled=false;if(this.renderOrder!==0)object.renderOrder=this.renderOrder;if(JSON.stringify(this.userData)!=='{}')object.userData=this.userData;object.layers=this.layers.mask;object.matrix=this.matrix.toArray();if(this.matrixAutoUpdate===false)object.matrixAutoUpdate=false;if(this.isInstancedMesh){object.type='InstancedMesh';object.count=this.count;object.instanceMatrix=this.instanceMatrix.toJSON();}\nfunction serialize(library,element){if(library[element.uuid]===undefined){library[element.uuid]=element.toJSON(meta);}return element.uuid;}if(this.isMesh||this.isLine||this.isPoints){object.geometry=serialize(meta.geometries,this.geometry);var parameters=this.geometry.parameters;if(parameters!==undefined&&parameters.shapes!==undefined){var shapes=parameters.shapes;if(Array.isArray(shapes)){for(var _i19=0,l=shapes.length;_i19<l;_i19++){var shape=shapes[_i19];serialize(meta.shapes,shape);}}else{serialize(meta.shapes,shapes);}}}if(this.material!==undefined){if(Array.isArray(this.material)){var uuids=[];for(var _i20=0,_l2=this.material.length;_i20<_l2;_i20++){uuids.push(serialize(meta.materials,this.material[_i20]));}object.material=uuids;}else{object.material=serialize(meta.materials,this.material);}}\nif(this.children.length>0){object.children=[];for(var _i21=0;_i21<this.children.length;_i21++){object.children.push(this.children[_i21].toJSON(meta).object);}}if(isRootObject){var geometries=extractFromCache(meta.geometries);var materials=extractFromCache(meta.materials);var textures=extractFromCache(meta.textures);var images=extractFromCache(meta.images);var _shapes=extractFromCache(meta.shapes);if(geometries.length>0)output.geometries=geometries;if(materials.length>0)output.materials=materials;if(textures.length>0)output.textures=textures;if(images.length>0)output.images=images;if(_shapes.length>0)output.shapes=_shapes;}output.object=object;return output;function extractFromCache(cache){var values=[];for(var key in cache){var data=cache[key];delete data.metadata;values.push(data);}return values;}},clone:function clone(recursive){return new this.constructor().copy(this,recursive);},copy:function copy(source,recursive){if(recursive===undefined)recursive=true;this.name=source.name;this.up.copy(source.up);this.position.copy(source.position);this.rotation.order=source.rotation.order;this.quaternion.copy(source.quaternion);this.scale.copy(source.scale);this.matrix.copy(source.matrix);this.matrixWorld.copy(source.matrixWorld);this.matrixAutoUpdate=source.matrixAutoUpdate;this.matrixWorldNeedsUpdate=source.matrixWorldNeedsUpdate;this.layers.mask=source.layers.mask;this.visible=source.visible;this.castShadow=source.castShadow;this.receiveShadow=source.receiveShadow;this.frustumCulled=source.frustumCulled;this.renderOrder=source.renderOrder;this.userData=JSON.parse(JSON.stringify(source.userData));if(recursive===true){for(var _i22=0;_i22<source.children.length;_i22++){var child=source.children[_i22];this.add(child.clone());}}return this;}});var _vector1=/*@__PURE__*/ new Vector3();var _vector2=/*@__PURE__*/ new Vector3();var _normalMatrix=/*@__PURE__*/ new Matrix3();var Plane=function(){function Plane(normal,constant){_classCallCheck(this,Plane);Object.defineProperty(this,'isPlane',{value:true});this.normal=normal!==undefined?normal:new Vector3(1,0,0);this.constant=constant!==undefined?constant:0;}_createClass(Plane,[{key:\"set\",value:function set(normal,constant){this.normal.copy(normal);this.constant=constant;return this;}},{key:\"setComponents\",value:function setComponents(x,y,z,w){this.normal.set(x,y,z);this.constant=w;return this;}},{key:\"setFromNormalAndCoplanarPoint\",value:function setFromNormalAndCoplanarPoint(normal,point){this.normal.copy(normal);this.constant=-point.dot(this.normal);return this;}},{key:\"setFromCoplanarPoints\",value:function setFromCoplanarPoints(a,b,c){var normal=_vector1.subVectors(c,b).cross(_vector2.subVectors(a,b)).normalize();this.setFromNormalAndCoplanarPoint(normal,a);return this;}},{key:\"clone\",value:function clone(){return new this.constructor().copy(this);}},{key:\"copy\",value:function copy(plane){this.normal.copy(plane.normal);this.constant=plane.constant;return this;}},{key:\"normalize\",value:function normalize(){var inverseNormalLength=1.0/this.normal.length();this.normal.multiplyScalar(inverseNormalLength);this.constant*=inverseNormalLength;return this;}},{key:\"negate\",value:function negate(){this.constant*=-1;this.normal.negate();return this;}},{key:\"distanceToPoint\",value:function distanceToPoint(point){return this.normal.dot(point)+this.constant;}},{key:\"distanceToSphere\",value:function distanceToSphere(sphere){return this.distanceToPoint(sphere.center)-sphere.radius;}},{key:\"projectPoint\",value:function projectPoint(point,target){if(target===undefined){console.warn('THREE.Plane: .projectPoint() target is now required');target=new Vector3();}return target.copy(this.normal).multiplyScalar(-this.distanceToPoint(point)).add(point);}},{key:\"intersectLine\",value:function intersectLine(line,target){if(target===undefined){console.warn('THREE.Plane: .intersectLine() target is now required');target=new Vector3();}var direction=line.delta(_vector1);var denominator=this.normal.dot(direction);if(denominator===0){if(this.distanceToPoint(line.start)===0){return target.copy(line.start);}\nreturn undefined;}var t=-(line.start.dot(this.normal)+this.constant)/denominator;if(t<0||t>1){return undefined;}return target.copy(direction).multiplyScalar(t).add(line.start);}},{key:\"intersectsLine\",value:function intersectsLine(line){var startSign=this.distanceToPoint(line.start);var endSign=this.distanceToPoint(line.end);return startSign<0&&endSign>0||endSign<0&&startSign>0;}},{key:\"intersectsBox\",value:function intersectsBox(box){return box.intersectsPlane(this);}},{key:\"intersectsSphere\",value:function intersectsSphere(sphere){return sphere.intersectsPlane(this);}},{key:\"coplanarPoint\",value:function coplanarPoint(target){if(target===undefined){console.warn('THREE.Plane: .coplanarPoint() target is now required');target=new Vector3();}return target.copy(this.normal).multiplyScalar(-this.constant);}},{key:\"applyMatrix4\",value:function applyMatrix4(matrix,optionalNormalMatrix){var normalMatrix=optionalNormalMatrix||_normalMatrix.getNormalMatrix(matrix);var referencePoint=this.coplanarPoint(_vector1).applyMatrix4(matrix);var normal=this.normal.applyMatrix3(normalMatrix).normalize();this.constant=-referencePoint.dot(normal);return this;}},{key:\"translate\",value:function translate(offset){this.constant-=offset.dot(this.normal);return this;}},{key:\"equals\",value:function equals(plane){return plane.normal.equals(this.normal)&&plane.constant===this.constant;}}]);return Plane;}();var _v0$1=/*@__PURE__*/ new Vector3();var _v1$3=/*@__PURE__*/ new Vector3();var _v2$1=/*@__PURE__*/ new Vector3();var _v3=/*@__PURE__*/ new Vector3();var _vab=/*@__PURE__*/ new Vector3();var _vac=/*@__PURE__*/ new Vector3();var _vbc=/*@__PURE__*/ new Vector3();var _vap=/*@__PURE__*/ new Vector3();var _vbp=/*@__PURE__*/ new Vector3();var _vcp=/*@__PURE__*/ new Vector3();var Triangle=function(){function Triangle(a,b,c){_classCallCheck(this,Triangle);this.a=a!==undefined?a:new Vector3();this.b=b!==undefined?b:new Vector3();this.c=c!==undefined?c:new Vector3();}_createClass(Triangle,[{key:\"set\",value:function set(a,b,c){this.a.copy(a);this.b.copy(b);this.c.copy(c);return this;}},{key:\"setFromPointsAndIndices\",value:function setFromPointsAndIndices(points,i0,i1,i2){this.a.copy(points[i0]);this.b.copy(points[i1]);this.c.copy(points[i2]);return this;}},{key:\"clone\",value:function clone(){return new this.constructor().copy(this);}},{key:\"copy\",value:function copy(triangle){this.a.copy(triangle.a);this.b.copy(triangle.b);this.c.copy(triangle.c);return this;}},{key:\"getArea\",value:function getArea(){_v0$1.subVectors(this.c,this.b);_v1$3.subVectors(this.a,this.b);return _v0$1.cross(_v1$3).length()*0.5;}},{key:\"getMidpoint\",value:function getMidpoint(target){if(target===undefined){console.warn('THREE.Triangle: .getMidpoint() target is now required');target=new Vector3();}return target.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3);}},{key:\"getNormal\",value:function getNormal(target){return Triangle.getNormal(this.a,this.b,this.c,target);}},{key:\"getPlane\",value:function getPlane(target){if(target===undefined){console.warn('THREE.Triangle: .getPlane() target is now required');target=new Plane();}return target.setFromCoplanarPoints(this.a,this.b,this.c);}},{key:\"getBarycoord\",value:function getBarycoord(point,target){return Triangle.getBarycoord(point,this.a,this.b,this.c,target);}},{key:\"getUV\",value:function getUV(point,uv1,uv2,uv3,target){return Triangle.getUV(point,this.a,this.b,this.c,uv1,uv2,uv3,target);}},{key:\"containsPoint\",value:function containsPoint(point){return Triangle.containsPoint(point,this.a,this.b,this.c);}},{key:\"isFrontFacing\",value:function isFrontFacing(direction){return Triangle.isFrontFacing(this.a,this.b,this.c,direction);}},{key:\"intersectsBox\",value:function intersectsBox(box){return box.intersectsTriangle(this);}},{key:\"closestPointToPoint\",value:function closestPointToPoint(p,target){if(target===undefined){console.warn('THREE.Triangle: .closestPointToPoint() target is now required');target=new Vector3();}var a=this.a,b=this.b,c=this.c;var v,w;_vab.subVectors(b,a);_vac.subVectors(c,a);_vap.subVectors(p,a);var d1=_vab.dot(_vap);var d2=_vac.dot(_vap);if(d1<=0&&d2<=0){return target.copy(a);}_vbp.subVectors(p,b);var d3=_vab.dot(_vbp);var d4=_vac.dot(_vbp);if(d3>=0&&d4<=d3){return target.copy(b);}var vc=d1*d4-d3*d2;if(vc<=0&&d1>=0&&d3<=0){v=d1/(d1-d3);return target.copy(a).addScaledVector(_vab,v);}_vcp.subVectors(p,c);var d5=_vab.dot(_vcp);var d6=_vac.dot(_vcp);if(d6>=0&&d5<=d6){return target.copy(c);}var vb=d5*d2-d1*d6;if(vb<=0&&d2>=0&&d6<=0){w=d2/(d2-d6);return target.copy(a).addScaledVector(_vac,w);}var va=d3*d6-d5*d4;if(va<=0&&d4-d3>=0&&d5-d6>=0){_vbc.subVectors(c,b);w=(d4-d3)/(d4-d3+(d5-d6));return target.copy(b).addScaledVector(_vbc,w);}\nvar denom=1/(va+vb+vc);v=vb*denom;w=vc*denom;return target.copy(a).addScaledVector(_vab,v).addScaledVector(_vac,w);}},{key:\"equals\",value:function equals(triangle){return triangle.a.equals(this.a)&&triangle.b.equals(this.b)&&triangle.c.equals(this.c);}}],[{key:\"getNormal\",value:function getNormal(a,b,c,target){if(target===undefined){console.warn('THREE.Triangle: .getNormal() target is now required');target=new Vector3();}target.subVectors(c,b);_v0$1.subVectors(a,b);target.cross(_v0$1);var targetLengthSq=target.lengthSq();if(targetLengthSq>0){return target.multiplyScalar(1/Math.sqrt(targetLengthSq));}return target.set(0,0,0);}},{key:\"getBarycoord\",value:function getBarycoord(point,a,b,c,target){_v0$1.subVectors(c,a);_v1$3.subVectors(b,a);_v2$1.subVectors(point,a);var dot00=_v0$1.dot(_v0$1);var dot01=_v0$1.dot(_v1$3);var dot02=_v0$1.dot(_v2$1);var dot11=_v1$3.dot(_v1$3);var dot12=_v1$3.dot(_v2$1);var denom=dot00*dot11-dot01*dot01;if(target===undefined){console.warn('THREE.Triangle: .getBarycoord() target is now required');target=new Vector3();}\nif(denom===0){return target.set(-2,-1,-1);}var invDenom=1/denom;var u=(dot11*dot02-dot01*dot12)*invDenom;var v=(dot00*dot12-dot01*dot02)*invDenom;return target.set(1-u-v,v,u);}},{key:\"containsPoint\",value:function containsPoint(point,a,b,c){this.getBarycoord(point,a,b,c,_v3);return _v3.x>=0&&_v3.y>=0&&_v3.x+_v3.y<=1;}},{key:\"getUV\",value:function getUV(point,p1,p2,p3,uv1,uv2,uv3,target){this.getBarycoord(point,p1,p2,p3,_v3);target.set(0,0);target.addScaledVector(uv1,_v3.x);target.addScaledVector(uv2,_v3.y);target.addScaledVector(uv3,_v3.z);return target;}},{key:\"isFrontFacing\",value:function isFrontFacing(a,b,c,direction){_v0$1.subVectors(c,b);_v1$3.subVectors(a,b);return _v0$1.cross(_v1$3).dot(direction)<0?true:false;}}]);return Triangle;}();var _colorKeywords={'aliceblue':0xF0F8FF,'antiquewhite':0xFAEBD7,'aqua':0x00FFFF,'aquamarine':0x7FFFD4,'azure':0xF0FFFF,'beige':0xF5F5DC,'bisque':0xFFE4C4,'black':0x000000,'blanchedalmond':0xFFEBCD,'blue':0x0000FF,'blueviolet':0x8A2BE2,'brown':0xA52A2A,'burlywood':0xDEB887,'cadetblue':0x5F9EA0,'chartreuse':0x7FFF00,'chocolate':0xD2691E,'coral':0xFF7F50,'cornflowerblue':0x6495ED,'cornsilk':0xFFF8DC,'crimson':0xDC143C,'cyan':0x00FFFF,'darkblue':0x00008B,'darkcyan':0x008B8B,'darkgoldenrod':0xB8860B,'darkgray':0xA9A9A9,'darkgreen':0x006400,'darkgrey':0xA9A9A9,'darkkhaki':0xBDB76B,'darkmagenta':0x8B008B,'darkolivegreen':0x556B2F,'darkorange':0xFF8C00,'darkorchid':0x9932CC,'darkred':0x8B0000,'darksalmon':0xE9967A,'darkseagreen':0x8FBC8F,'darkslateblue':0x483D8B,'darkslategray':0x2F4F4F,'darkslategrey':0x2F4F4F,'darkturquoise':0x00CED1,'darkviolet':0x9400D3,'deeppink':0xFF1493,'deepskyblue':0x00BFFF,'dimgray':0x696969,'dimgrey':0x696969,'dodgerblue':0x1E90FF,'firebrick':0xB22222,'floralwhite':0xFFFAF0,'forestgreen':0x228B22,'fuchsia':0xFF00FF,'gainsboro':0xDCDCDC,'ghostwhite':0xF8F8FF,'gold':0xFFD700,'goldenrod':0xDAA520,'gray':0x808080,'green':0x008000,'greenyellow':0xADFF2F,'grey':0x808080,'honeydew':0xF0FFF0,'hotpink':0xFF69B4,'indianred':0xCD5C5C,'indigo':0x4B0082,'ivory':0xFFFFF0,'khaki':0xF0E68C,'lavender':0xE6E6FA,'lavenderblush':0xFFF0F5,'lawngreen':0x7CFC00,'lemonchiffon':0xFFFACD,'lightblue':0xADD8E6,'lightcoral':0xF08080,'lightcyan':0xE0FFFF,'lightgoldenrodyellow':0xFAFAD2,'lightgray':0xD3D3D3,'lightgreen':0x90EE90,'lightgrey':0xD3D3D3,'lightpink':0xFFB6C1,'lightsalmon':0xFFA07A,'lightseagreen':0x20B2AA,'lightskyblue':0x87CEFA,'lightslategray':0x778899,'lightslategrey':0x778899,'lightsteelblue':0xB0C4DE,'lightyellow':0xFFFFE0,'lime':0x00FF00,'limegreen':0x32CD32,'linen':0xFAF0E6,'magenta':0xFF00FF,'maroon':0x800000,'mediumaquamarine':0x66CDAA,'mediumblue':0x0000CD,'mediumorchid':0xBA55D3,'mediumpurple':0x9370DB,'mediumseagreen':0x3CB371,'mediumslateblue':0x7B68EE,'mediumspringgreen':0x00FA9A,'mediumturquoise':0x48D1CC,'mediumvioletred':0xC71585,'midnightblue':0x191970,'mintcream':0xF5FFFA,'mistyrose':0xFFE4E1,'moccasin':0xFFE4B5,'navajowhite':0xFFDEAD,'navy':0x000080,'oldlace':0xFDF5E6,'olive':0x808000,'olivedrab':0x6B8E23,'orange':0xFFA500,'orangered':0xFF4500,'orchid':0xDA70D6,'palegoldenrod':0xEEE8AA,'palegreen':0x98FB98,'paleturquoise':0xAFEEEE,'palevioletred':0xDB7093,'papayawhip':0xFFEFD5,'peachpuff':0xFFDAB9,'peru':0xCD853F,'pink':0xFFC0CB,'plum':0xDDA0DD,'powderblue':0xB0E0E6,'purple':0x800080,'rebeccapurple':0x663399,'red':0xFF0000,'rosybrown':0xBC8F8F,'royalblue':0x4169E1,'saddlebrown':0x8B4513,'salmon':0xFA8072,'sandybrown':0xF4A460,'seagreen':0x2E8B57,'seashell':0xFFF5EE,'sienna':0xA0522D,'silver':0xC0C0C0,'skyblue':0x87CEEB,'slateblue':0x6A5ACD,'slategray':0x708090,'slategrey':0x708090,'snow':0xFFFAFA,'springgreen':0x00FF7F,'steelblue':0x4682B4,'tan':0xD2B48C,'teal':0x008080,'thistle':0xD8BFD8,'tomato':0xFF6347,'turquoise':0x40E0D0,'violet':0xEE82EE,'wheat':0xF5DEB3,'white':0xFFFFFF,'whitesmoke':0xF5F5F5,'yellow':0xFFFF00,'yellowgreen':0x9ACD32};var _hslA={h:0,s:0,l:0};var _hslB={h:0,s:0,l:0};function hue2rgb(p,q,t){if(t<0)t+=1;if(t>1)t-=1;if(t<1/6)return p+(q-p)*6*t;if(t<1/2)return q;if(t<2/3)return p+(q-p)*6*(2/3-t);return p;}function SRGBToLinear(c){return c<0.04045?c*0.0773993808:Math.pow(c*0.9478672986+0.0521327014,2.4);}function LinearToSRGB(c){return c<0.0031308?c*12.92:1.055*Math.pow(c,0.41666)-0.055;}var Color=function(){function Color(r,g,b){_classCallCheck(this,Color);Object.defineProperty(this,'isColor',{value:true});if(g===undefined&&b===undefined){return this.set(r);}return this.setRGB(r,g,b);}_createClass(Color,[{key:\"set\",value:function set(value){if(value&&value.isColor){this.copy(value);}else if(typeof value==='number'){this.setHex(value);}else if(typeof value==='string'){this.setStyle(value);}return this;}},{key:\"setScalar\",value:function setScalar(scalar){this.r=scalar;this.g=scalar;this.b=scalar;return this;}},{key:\"setHex\",value:function setHex(hex){hex=Math.floor(hex);this.r=(hex>>16&255)/255;this.g=(hex>>8&255)/255;this.b=(hex&255)/255;return this;}},{key:\"setRGB\",value:function setRGB(r,g,b){this.r=r;this.g=g;this.b=b;return this;}},{key:\"setHSL\",value:function setHSL(h,s,l){h=MathUtils.euclideanModulo(h,1);s=MathUtils.clamp(s,0,1);l=MathUtils.clamp(l,0,1);if(s===0){this.r=this.g=this.b=l;}else{var p=l<=0.5?l*(1+s):l+s-l*s;var q=2*l-p;this.r=hue2rgb(q,p,h+1/3);this.g=hue2rgb(q,p,h);this.b=hue2rgb(q,p,h-1/3);}return this;}},{key:\"setStyle\",value:function setStyle(style){function handleAlpha(string){if(string===undefined)return;if(parseFloat(string)<1){console.warn('THREE.Color: Alpha component of '+style+' will be ignored.');}}var m;if(m=/^((?:rgb|hsl)a?)\\(\\s*([^\\)]*)\\)/.exec(style)){var color;var name=m[1];var components=m[2];switch(name){case'rgb':case'rgba':if(color=/^(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*(\\d+)\\s*(,\\s*([0-9]*\\.?[0-9]+)\\s*)?$/.exec(components)){this.r=Math.min(255,parseInt(color[1],10))/255;this.g=Math.min(255,parseInt(color[2],10))/255;this.b=Math.min(255,parseInt(color[3],10))/255;handleAlpha(color[5]);return this;}if(color=/^(\\d+)\\%\\s*,\\s*(\\d+)\\%\\s*,\\s*(\\d+)\\%\\s*(,\\s*([0-9]*\\.?[0-9]+)\\s*)?$/.exec(components)){this.r=Math.min(100,parseInt(color[1],10))/100;this.g=Math.min(100,parseInt(color[2],10))/100;this.b=Math.min(100,parseInt(color[3],10))/100;handleAlpha(color[5]);return this;}break;case'hsl':case'hsla':if(color=/^([0-9]*\\.?[0-9]+)\\s*,\\s*(\\d+)\\%\\s*,\\s*(\\d+)\\%\\s*(,\\s*([0-9]*\\.?[0-9]+)\\s*)?$/.exec(components)){var h=parseFloat(color[1])/360;var s=parseInt(color[2],10)/100;var l=parseInt(color[3],10)/100;handleAlpha(color[5]);return this.setHSL(h,s,l);}break;}}else if(m=/^\\#([A-Fa-f0-9]+)$/.exec(style)){var hex=m[1];var size=hex.length;if(size===3){this.r=parseInt(hex.charAt(0)+hex.charAt(0),16)/255;this.g=parseInt(hex.charAt(1)+hex.charAt(1),16)/255;this.b=parseInt(hex.charAt(2)+hex.charAt(2),16)/255;return this;}else if(size===6){this.r=parseInt(hex.charAt(0)+hex.charAt(1),16)/255;this.g=parseInt(hex.charAt(2)+hex.charAt(3),16)/255;this.b=parseInt(hex.charAt(4)+hex.charAt(5),16)/255;return this;}}if(style&&style.length>0){return this.setColorName(style);}return this;}},{key:\"setColorName\",value:function setColorName(style){var hex=_colorKeywords[style];if(hex!==undefined){this.setHex(hex);}else{console.warn('THREE.Color: Unknown color '+style);}return this;}},{key:\"clone\",value:function clone(){return new this.constructor(this.r,this.g,this.b);}},{key:\"copy\",value:function copy(color){this.r=color.r;this.g=color.g;this.b=color.b;return this;}},{key:\"copyGammaToLinear\",value:function copyGammaToLinear(color,gammaFactor){if(gammaFactor===undefined)gammaFactor=2.0;this.r=Math.pow(color.r,gammaFactor);this.g=Math.pow(color.g,gammaFactor);this.b=Math.pow(color.b,gammaFactor);return this;}},{key:\"copyLinearToGamma\",value:function copyLinearToGamma(color,gammaFactor){if(gammaFactor===undefined)gammaFactor=2.0;var safeInverse=gammaFactor>0?1.0/gammaFactor:1.0;this.r=Math.pow(color.r,safeInverse);this.g=Math.pow(color.g,safeInverse);this.b=Math.pow(color.b,safeInverse);return this;}},{key:\"convertGammaToLinear\",value:function convertGammaToLinear(gammaFactor){this.copyGammaToLinear(this,gammaFactor);return this;}},{key:\"convertLinearToGamma\",value:function convertLinearToGamma(gammaFactor){this.copyLinearToGamma(this,gammaFactor);return this;}},{key:\"copySRGBToLinear\",value:function copySRGBToLinear(color){this.r=SRGBToLinear(color.r);this.g=SRGBToLinear(color.g);this.b=SRGBToLinear(color.b);return this;}},{key:\"copyLinearToSRGB\",value:function copyLinearToSRGB(color){this.r=LinearToSRGB(color.r);this.g=LinearToSRGB(color.g);this.b=LinearToSRGB(color.b);return this;}},{key:\"convertSRGBToLinear\",value:function convertSRGBToLinear(){this.copySRGBToLinear(this);return this;}},{key:\"convertLinearToSRGB\",value:function convertLinearToSRGB(){this.copyLinearToSRGB(this);return this;}},{key:\"getHex\",value:function getHex(){return this.r*255<<16^this.g*255<<8^this.b*255<<0;}},{key:\"getHexString\",value:function getHexString(){return('000000'+this.getHex().toString(16)).slice(-6);}},{key:\"getHSL\",value:function getHSL(target){if(target===undefined){console.warn('THREE.Color: .getHSL() target is now required');target={h:0,s:0,l:0};}var r=this.r,g=this.g,b=this.b;var max=Math.max(r,g,b);var min=Math.min(r,g,b);var hue,saturation;var lightness=(min+max)/2.0;if(min===max){hue=0;saturation=0;}else{var delta=max-min;saturation=lightness<=0.5?delta/(max+min):delta/(2-max-min);switch(max){case r:hue=(g-b)/delta+(g<b?6:0);break;case g:hue=(b-r)/delta+2;break;case b:hue=(r-g)/delta+4;break;}hue/=6;}target.h=hue;target.s=saturation;target.l=lightness;return target;}},{key:\"getStyle\",value:function getStyle(){return'rgb('+(this.r*255|0)+','+(this.g*255|0)+','+(this.b*255|0)+')';}},{key:\"offsetHSL\",value:function offsetHSL(h,s,l){this.getHSL(_hslA);_hslA.h+=h;_hslA.s+=s;_hslA.l+=l;this.setHSL(_hslA.h,_hslA.s,_hslA.l);return this;}},{key:\"add\",value:function add(color){this.r+=color.r;this.g+=color.g;this.b+=color.b;return this;}},{key:\"addColors\",value:function addColors(color1,color2){this.r=color1.r+color2.r;this.g=color1.g+color2.g;this.b=color1.b+color2.b;return this;}},{key:\"addScalar\",value:function addScalar(s){this.r+=s;this.g+=s;this.b+=s;return this;}},{key:\"sub\",value:function sub(color){this.r=Math.max(0,this.r-color.r);this.g=Math.max(0,this.g-color.g);this.b=Math.max(0,this.b-color.b);return this;}},{key:\"multiply\",value:function multiply(color){this.r*=color.r;this.g*=color.g;this.b*=color.b;return this;}},{key:\"multiplyScalar\",value:function multiplyScalar(s){this.r*=s;this.g*=s;this.b*=s;return this;}},{key:\"lerp\",value:function lerp(color,alpha){this.r+=(color.r-this.r)*alpha;this.g+=(color.g-this.g)*alpha;this.b+=(color.b-this.b)*alpha;return this;}},{key:\"lerpHSL\",value:function lerpHSL(color,alpha){this.getHSL(_hslA);color.getHSL(_hslB);var h=MathUtils.lerp(_hslA.h,_hslB.h,alpha);var s=MathUtils.lerp(_hslA.s,_hslB.s,alpha);var l=MathUtils.lerp(_hslA.l,_hslB.l,alpha);this.setHSL(h,s,l);return this;}},{key:\"equals\",value:function equals(c){return c.r===this.r&&c.g===this.g&&c.b===this.b;}},{key:\"fromArray\",value:function fromArray(array,offset){if(offset===undefined)offset=0;this.r=array[offset];this.g=array[offset+1];this.b=array[offset+2];return this;}},{key:\"toArray\",value:function toArray(array,offset){if(array===undefined)array=[];if(offset===undefined)offset=0;array[offset]=this.r;array[offset+1]=this.g;array[offset+2]=this.b;return array;}},{key:\"fromBufferAttribute\",value:function fromBufferAttribute(attribute,index){this.r=attribute.getX(index);this.g=attribute.getY(index);this.b=attribute.getZ(index);if(attribute.normalized===true){this.r/=255;this.g/=255;this.b/=255;}return this;}},{key:\"toJSON\",value:function toJSON(){return this.getHex();}}]);return Color;}();Color.NAMES=_colorKeywords;Color.prototype.r=1;Color.prototype.g=1;Color.prototype.b=1;var Face3=function(){function Face3(a,b,c,normal,color,materialIndex){_classCallCheck(this,Face3);this.a=a;this.b=b;this.c=c;this.normal=normal&&normal.isVector3?normal:new Vector3();this.vertexNormals=Array.isArray(normal)?normal:[];this.color=color&&color.isColor?color:new Color();this.vertexColors=Array.isArray(color)?color:[];this.materialIndex=materialIndex!==undefined?materialIndex:0;}_createClass(Face3,[{key:\"clone\",value:function clone(){return new this.constructor().copy(this);}},{key:\"copy\",value:function copy(source){this.a=source.a;this.b=source.b;this.c=source.c;this.normal.copy(source.normal);this.color.copy(source.color);this.materialIndex=source.materialIndex;for(var _i23=0,il=source.vertexNormals.length;_i23<il;_i23++){this.vertexNormals[_i23]=source.vertexNormals[_i23].clone();}for(var _i24=0,_il=source.vertexColors.length;_i24<_il;_i24++){this.vertexColors[_i24]=source.vertexColors[_i24].clone();}return this;}}]);return Face3;}();var materialId=0;function Material(){Object.defineProperty(this,'id',{value:materialId++});this.uuid=MathUtils.generateUUID();this.name='';this.type='Material';this.fog=true;this.blending=NormalBlending;this.side=FrontSide;this.flatShading=false;this.vertexColors=false;this.opacity=1;this.transparent=false;this.blendSrc=SrcAlphaFactor;this.blendDst=OneMinusSrcAlphaFactor;this.blendEquation=AddEquation;this.blendSrcAlpha=null;this.blendDstAlpha=null;this.blendEquationAlpha=null;this.depthFunc=LessEqualDepth;this.depthTest=true;this.depthWrite=true;this.stencilWriteMask=0xff;this.stencilFunc=AlwaysStencilFunc;this.stencilRef=0;this.stencilFuncMask=0xff;this.stencilFail=KeepStencilOp;this.stencilZFail=KeepStencilOp;this.stencilZPass=KeepStencilOp;this.stencilWrite=false;this.clippingPlanes=null;this.clipIntersection=false;this.clipShadows=false;this.shadowSide=null;this.colorWrite=true;this.precision=null;this.polygonOffset=false;this.polygonOffsetFactor=0;this.polygonOffsetUnits=0;this.dithering=false;this.alphaTest=0;this.premultipliedAlpha=false;this.visible=true;this.toneMapped=true;this.userData={};this.version=0;}Material.prototype=Object.assign(Object.create(EventDispatcher.prototype),{constructor:Material,isMaterial:true,onBeforeCompile:function onBeforeCompile(){},customProgramCacheKey:function customProgramCacheKey(){return this.onBeforeCompile.toString();},setValues:function setValues(values){if(values===undefined)return;for(var key in values){var newValue=values[key];if(newValue===undefined){console.warn(\"THREE.Material: '\"+key+\"' parameter is undefined.\");continue;}\nif(key==='shading'){console.warn('THREE.'+this.type+': .shading has been removed. Use the boolean .flatShading instead.');this.flatShading=newValue===FlatShading?true:false;continue;}var currentValue=this[key];if(currentValue===undefined){console.warn(\"THREE.\"+this.type+\": '\"+key+\"' is not a property of this material.\");continue;}if(currentValue&&currentValue.isColor){currentValue.set(newValue);}else if(currentValue&&currentValue.isVector3&&newValue&&newValue.isVector3){currentValue.copy(newValue);}else{this[key]=newValue;}}},toJSON:function toJSON(meta){var isRoot=meta===undefined||typeof meta==='string';if(isRoot){meta={textures:{},images:{}};}var data={metadata:{version:4.5,type:'Material',generator:'Material.toJSON'}};data.uuid=this.uuid;data.type=this.type;if(this.name!=='')data.name=this.name;if(this.color&&this.color.isColor)data.color=this.color.getHex();if(this.roughness!==undefined)data.roughness=this.roughness;if(this.metalness!==undefined)data.metalness=this.metalness;if(this.sheen&&this.sheen.isColor)data.sheen=this.sheen.getHex();if(this.emissive&&this.emissive.isColor)data.emissive=this.emissive.getHex();if(this.emissiveIntensity&&this.emissiveIntensity!==1)data.emissiveIntensity=this.emissiveIntensity;if(this.specular&&this.specular.isColor)data.specular=this.specular.getHex();if(this.shininess!==undefined)data.shininess=this.shininess;if(this.clearcoat!==undefined)data.clearcoat=this.clearcoat;if(this.clearcoatRoughness!==undefined)data.clearcoatRoughness=this.clearcoatRoughness;if(this.clearcoatMap&&this.clearcoatMap.isTexture){data.clearcoatMap=this.clearcoatMap.toJSON(meta).uuid;}if(this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture){data.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(meta).uuid;}if(this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture){data.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(meta).uuid;data.clearcoatNormalScale=this.clearcoatNormalScale.toArray();}if(this.map&&this.map.isTexture)data.map=this.map.toJSON(meta).uuid;if(this.matcap&&this.matcap.isTexture)data.matcap=this.matcap.toJSON(meta).uuid;if(this.alphaMap&&this.alphaMap.isTexture)data.alphaMap=this.alphaMap.toJSON(meta).uuid;if(this.lightMap&&this.lightMap.isTexture)data.lightMap=this.lightMap.toJSON(meta).uuid;if(this.aoMap&&this.aoMap.isTexture){data.aoMap=this.aoMap.toJSON(meta).uuid;data.aoMapIntensity=this.aoMapIntensity;}if(this.bumpMap&&this.bumpMap.isTexture){data.bumpMap=this.bumpMap.toJSON(meta).uuid;data.bumpScale=this.bumpScale;}if(this.normalMap&&this.normalMap.isTexture){data.normalMap=this.normalMap.toJSON(meta).uuid;data.normalMapType=this.normalMapType;data.normalScale=this.normalScale.toArray();}if(this.displacementMap&&this.displacementMap.isTexture){data.displacementMap=this.displacementMap.toJSON(meta).uuid;data.displacementScale=this.displacementScale;data.displacementBias=this.displacementBias;}if(this.roughnessMap&&this.roughnessMap.isTexture)data.roughnessMap=this.roughnessMap.toJSON(meta).uuid;if(this.metalnessMap&&this.metalnessMap.isTexture)data.metalnessMap=this.metalnessMap.toJSON(meta).uuid;if(this.emissiveMap&&this.emissiveMap.isTexture)data.emissiveMap=this.emissiveMap.toJSON(meta).uuid;if(this.specularMap&&this.specularMap.isTexture)data.specularMap=this.specularMap.toJSON(meta).uuid;if(this.envMap&&this.envMap.isTexture){data.envMap=this.envMap.toJSON(meta).uuid;data.reflectivity=this.reflectivity;data.refractionRatio=this.refractionRatio;if(this.combine!==undefined)data.combine=this.combine;if(this.envMapIntensity!==undefined)data.envMapIntensity=this.envMapIntensity;}if(this.gradientMap&&this.gradientMap.isTexture){data.gradientMap=this.gradientMap.toJSON(meta).uuid;}if(this.size!==undefined)data.size=this.size;if(this.sizeAttenuation!==undefined)data.sizeAttenuation=this.sizeAttenuation;if(this.blending!==NormalBlending)data.blending=this.blending;if(this.flatShading===true)data.flatShading=this.flatShading;if(this.side!==FrontSide)data.side=this.side;if(this.vertexColors)data.vertexColors=true;if(this.opacity<1)data.opacity=this.opacity;if(this.transparent===true)data.transparent=this.transparent;data.depthFunc=this.depthFunc;data.depthTest=this.depthTest;data.depthWrite=this.depthWrite;data.stencilWrite=this.stencilWrite;data.stencilWriteMask=this.stencilWriteMask;data.stencilFunc=this.stencilFunc;data.stencilRef=this.stencilRef;data.stencilFuncMask=this.stencilFuncMask;data.stencilFail=this.stencilFail;data.stencilZFail=this.stencilZFail;data.stencilZPass=this.stencilZPass;if(this.rotation&&this.rotation!==0)data.rotation=this.rotation;if(this.polygonOffset===true)data.polygonOffset=true;if(this.polygonOffsetFactor!==0)data.polygonOffsetFactor=this.polygonOffsetFactor;if(this.polygonOffsetUnits!==0)data.polygonOffsetUnits=this.polygonOffsetUnits;if(this.linewidth&&this.linewidth!==1)data.linewidth=this.linewidth;if(this.dashSize!==undefined)data.dashSize=this.dashSize;if(this.gapSize!==undefined)data.gapSize=this.gapSize;if(this.scale!==undefined)data.scale=this.scale;if(this.dithering===true)data.dithering=true;if(this.alphaTest>0)data.alphaTest=this.alphaTest;if(this.premultipliedAlpha===true)data.premultipliedAlpha=this.premultipliedAlpha;if(this.wireframe===true)data.wireframe=this.wireframe;if(this.wireframeLinewidth>1)data.wireframeLinewidth=this.wireframeLinewidth;if(this.wireframeLinecap!=='round')data.wireframeLinecap=this.wireframeLinecap;if(this.wireframeLinejoin!=='round')data.wireframeLinejoin=this.wireframeLinejoin;if(this.morphTargets===true)data.morphTargets=true;if(this.morphNormals===true)data.morphNormals=true;if(this.skinning===true)data.skinning=true;if(this.visible===false)data.visible=false;if(this.toneMapped===false)data.toneMapped=false;if(JSON.stringify(this.userData)!=='{}')data.userData=this.userData;function extractFromCache(cache){var values=[];for(var key in cache){var _data=cache[key];delete _data.metadata;values.push(_data);}return values;}if(isRoot){var textures=extractFromCache(meta.textures);var images=extractFromCache(meta.images);if(textures.length>0)data.textures=textures;if(images.length>0)data.images=images;}return data;},clone:function clone(){return new this.constructor().copy(this);},copy:function copy(source){this.name=source.name;this.fog=source.fog;this.blending=source.blending;this.side=source.side;this.flatShading=source.flatShading;this.vertexColors=source.vertexColors;this.opacity=source.opacity;this.transparent=source.transparent;this.blendSrc=source.blendSrc;this.blendDst=source.blendDst;this.blendEquation=source.blendEquation;this.blendSrcAlpha=source.blendSrcAlpha;this.blendDstAlpha=source.blendDstAlpha;this.blendEquationAlpha=source.blendEquationAlpha;this.depthFunc=source.depthFunc;this.depthTest=source.depthTest;this.depthWrite=source.depthWrite;this.stencilWriteMask=source.stencilWriteMask;this.stencilFunc=source.stencilFunc;this.stencilRef=source.stencilRef;this.stencilFuncMask=source.stencilFuncMask;this.stencilFail=source.stencilFail;this.stencilZFail=source.stencilZFail;this.stencilZPass=source.stencilZPass;this.stencilWrite=source.stencilWrite;var srcPlanes=source.clippingPlanes;var dstPlanes=null;if(srcPlanes!==null){var n=srcPlanes.length;dstPlanes=new Array(n);for(var _i25=0;_i25!==n;++_i25){dstPlanes[_i25]=srcPlanes[_i25].clone();}}this.clippingPlanes=dstPlanes;this.clipIntersection=source.clipIntersection;this.clipShadows=source.clipShadows;this.shadowSide=source.shadowSide;this.colorWrite=source.colorWrite;this.precision=source.precision;this.polygonOffset=source.polygonOffset;this.polygonOffsetFactor=source.polygonOffsetFactor;this.polygonOffsetUnits=source.polygonOffsetUnits;this.dithering=source.dithering;this.alphaTest=source.alphaTest;this.premultipliedAlpha=source.premultipliedAlpha;this.visible=source.visible;this.toneMapped=source.toneMapped;this.userData=JSON.parse(JSON.stringify(source.userData));return this;},dispose:function dispose(){this.dispatchEvent({type:'dispose'});}});Object.defineProperty(Material.prototype,'needsUpdate',{set:function set(value){if(value===true)this.version++;}});function MeshBasicMaterial(parameters){Material.call(this);this.type='MeshBasicMaterial';this.color=new Color(0xffffff);this.map=null;this.lightMap=null;this.lightMapIntensity=1.0;this.aoMap=null;this.aoMapIntensity=1.0;this.specularMap=null;this.alphaMap=null;this.envMap=null;this.combine=MultiplyOperation;this.reflectivity=1;this.refractionRatio=0.98;this.wireframe=false;this.wireframeLinewidth=1;this.wireframeLinecap='round';this.wireframeLinejoin='round';this.skinning=false;this.morphTargets=false;this.setValues(parameters);}MeshBasicMaterial.prototype=Object.create(Material.prototype);MeshBasicMaterial.prototype.constructor=MeshBasicMaterial;MeshBasicMaterial.prototype.isMeshBasicMaterial=true;MeshBasicMaterial.prototype.copy=function(source){Material.prototype.copy.call(this,source);this.color.copy(source.color);this.map=source.map;this.lightMap=source.lightMap;this.lightMapIntensity=source.lightMapIntensity;this.aoMap=source.aoMap;this.aoMapIntensity=source.aoMapIntensity;this.specularMap=source.specularMap;this.alphaMap=source.alphaMap;this.envMap=source.envMap;this.combine=source.combine;this.reflectivity=source.reflectivity;this.refractionRatio=source.refractionRatio;this.wireframe=source.wireframe;this.wireframeLinewidth=source.wireframeLinewidth;this.wireframeLinecap=source.wireframeLinecap;this.wireframeLinejoin=source.wireframeLinejoin;this.skinning=source.skinning;this.morphTargets=source.morphTargets;return this;};var _vector$3=new Vector3();var _vector2$1=new Vector2();function BufferAttribute(array,itemSize,normalized){if(Array.isArray(array)){throw new TypeError('THREE.BufferAttribute: array should be a Typed Array.');}this.name='';this.array=array;this.itemSize=itemSize;this.count=array!==undefined?array.length/itemSize:0;this.normalized=normalized===true;this.usage=StaticDrawUsage;this.updateRange={offset:0,count:-1};this.version=0;}Object.defineProperty(BufferAttribute.prototype,'needsUpdate',{set:function set(value){if(value===true)this.version++;}});Object.assign(BufferAttribute.prototype,{isBufferAttribute:true,onUploadCallback:function onUploadCallback(){},setUsage:function setUsage(value){this.usage=value;return this;},copy:function copy(source){this.name=source.name;this.array=new source.array.constructor(source.array);this.itemSize=source.itemSize;this.count=source.count;this.normalized=source.normalized;this.usage=source.usage;return this;},copyAt:function copyAt(index1,attribute,index2){index1*=this.itemSize;index2*=attribute.itemSize;for(var _i26=0,l=this.itemSize;_i26<l;_i26++){this.array[index1+_i26]=attribute.array[index2+_i26];}return this;},copyArray:function copyArray(array){this.array.set(array);return this;},copyColorsArray:function copyColorsArray(colors){var array=this.array;var offset=0;for(var _i27=0,l=colors.length;_i27<l;_i27++){var color=colors[_i27];if(color===undefined){console.warn('THREE.BufferAttribute.copyColorsArray(): color is undefined',_i27);color=new Color();}array[offset++]=color.r;array[offset++]=color.g;array[offset++]=color.b;}return this;},copyVector2sArray:function copyVector2sArray(vectors){var array=this.array;var offset=0;for(var _i28=0,l=vectors.length;_i28<l;_i28++){var vector=vectors[_i28];if(vector===undefined){console.warn('THREE.BufferAttribute.copyVector2sArray(): vector is undefined',_i28);vector=new Vector2();}array[offset++]=vector.x;array[offset++]=vector.y;}return this;},copyVector3sArray:function copyVector3sArray(vectors){var array=this.array;var offset=0;for(var _i29=0,l=vectors.length;_i29<l;_i29++){var vector=vectors[_i29];if(vector===undefined){console.warn('THREE.BufferAttribute.copyVector3sArray(): vector is undefined',_i29);vector=new Vector3();}array[offset++]=vector.x;array[offset++]=vector.y;array[offset++]=vector.z;}return this;},copyVector4sArray:function copyVector4sArray(vectors){var array=this.array;var offset=0;for(var _i30=0,l=vectors.length;_i30<l;_i30++){var vector=vectors[_i30];if(vector===undefined){console.warn('THREE.BufferAttribute.copyVector4sArray(): vector is undefined',_i30);vector=new Vector4();}array[offset++]=vector.x;array[offset++]=vector.y;array[offset++]=vector.z;array[offset++]=vector.w;}return this;},applyMatrix3:function applyMatrix3(m){if(this.itemSize===2){for(var _i31=0,l=this.count;_i31<l;_i31++){_vector2$1.fromBufferAttribute(this,_i31);_vector2$1.applyMatrix3(m);this.setXY(_i31,_vector2$1.x,_vector2$1.y);}}else if(this.itemSize===3){for(var _i32=0,_l3=this.count;_i32<_l3;_i32++){_vector$3.fromBufferAttribute(this,_i32);_vector$3.applyMatrix3(m);this.setXYZ(_i32,_vector$3.x,_vector$3.y,_vector$3.z);}}return this;},applyMatrix4:function applyMatrix4(m){for(var _i33=0,l=this.count;_i33<l;_i33++){_vector$3.x=this.getX(_i33);_vector$3.y=this.getY(_i33);_vector$3.z=this.getZ(_i33);_vector$3.applyMatrix4(m);this.setXYZ(_i33,_vector$3.x,_vector$3.y,_vector$3.z);}return this;},applyNormalMatrix:function applyNormalMatrix(m){for(var _i34=0,l=this.count;_i34<l;_i34++){_vector$3.x=this.getX(_i34);_vector$3.y=this.getY(_i34);_vector$3.z=this.getZ(_i34);_vector$3.applyNormalMatrix(m);this.setXYZ(_i34,_vector$3.x,_vector$3.y,_vector$3.z);}return this;},transformDirection:function transformDirection(m){for(var _i35=0,l=this.count;_i35<l;_i35++){_vector$3.x=this.getX(_i35);_vector$3.y=this.getY(_i35);_vector$3.z=this.getZ(_i35);_vector$3.transformDirection(m);this.setXYZ(_i35,_vector$3.x,_vector$3.y,_vector$3.z);}return this;},set:function set(value,offset){if(offset===undefined)offset=0;this.array.set(value,offset);return this;},getX:function getX(index){return this.array[index*this.itemSize];},setX:function setX(index,x){this.array[index*this.itemSize]=x;return this;},getY:function getY(index){return this.array[index*this.itemSize+1];},setY:function setY(index,y){this.array[index*this.itemSize+1]=y;return this;},getZ:function getZ(index){return this.array[index*this.itemSize+2];},setZ:function setZ(index,z){this.array[index*this.itemSize+2]=z;return this;},getW:function getW(index){return this.array[index*this.itemSize+3];},setW:function setW(index,w){this.array[index*this.itemSize+3]=w;return this;},setXY:function setXY(index,x,y){index*=this.itemSize;this.array[index+0]=x;this.array[index+1]=y;return this;},setXYZ:function setXYZ(index,x,y,z){index*=this.itemSize;this.array[index+0]=x;this.array[index+1]=y;this.array[index+2]=z;return this;},setXYZW:function setXYZW(index,x,y,z,w){index*=this.itemSize;this.array[index+0]=x;this.array[index+1]=y;this.array[index+2]=z;this.array[index+3]=w;return this;},onUpload:function onUpload(callback){this.onUploadCallback=callback;return this;},clone:function clone(){return new this.constructor(this.array,this.itemSize).copy(this);},toJSON:function toJSON(){return{itemSize:this.itemSize,type:this.array.constructor.name,array:Array.prototype.slice.call(this.array),normalized:this.normalized};}});function Int8BufferAttribute(array,itemSize,normalized){BufferAttribute.call(this,new Int8Array(array),itemSize,normalized);}Int8BufferAttribute.prototype=Object.create(BufferAttribute.prototype);Int8BufferAttribute.prototype.constructor=Int8BufferAttribute;function Uint8BufferAttribute(array,itemSize,normalized){BufferAttribute.call(this,new Uint8Array(array),itemSize,normalized);}Uint8BufferAttribute.prototype=Object.create(BufferAttribute.prototype);Uint8BufferAttribute.prototype.constructor=Uint8BufferAttribute;function Uint8ClampedBufferAttribute(array,itemSize,normalized){BufferAttribute.call(this,new Uint8ClampedArray(array),itemSize,normalized);}Uint8ClampedBufferAttribute.prototype=Object.create(BufferAttribute.prototype);Uint8ClampedBufferAttribute.prototype.constructor=Uint8ClampedBufferAttribute;function Int16BufferAttribute(array,itemSize,normalized){BufferAttribute.call(this,new Int16Array(array),itemSize,normalized);}Int16BufferAttribute.prototype=Object.create(BufferAttribute.prototype);Int16BufferAttribute.prototype.constructor=Int16BufferAttribute;function Uint16BufferAttribute(array,itemSize,normalized){BufferAttribute.call(this,new Uint16Array(array),itemSize,normalized);}Uint16BufferAttribute.prototype=Object.create(BufferAttribute.prototype);Uint16BufferAttribute.prototype.constructor=Uint16BufferAttribute;function Int32BufferAttribute(array,itemSize,normalized){BufferAttribute.call(this,new Int32Array(array),itemSize,normalized);}Int32BufferAttribute.prototype=Object.create(BufferAttribute.prototype);Int32BufferAttribute.prototype.constructor=Int32BufferAttribute;function Uint32BufferAttribute(array,itemSize,normalized){BufferAttribute.call(this,new Uint32Array(array),itemSize,normalized);}Uint32BufferAttribute.prototype=Object.create(BufferAttribute.prototype);Uint32BufferAttribute.prototype.constructor=Uint32BufferAttribute;function Float32BufferAttribute(array,itemSize,normalized){BufferAttribute.call(this,new Float32Array(array),itemSize,normalized);}Float32BufferAttribute.prototype=Object.create(BufferAttribute.prototype);Float32BufferAttribute.prototype.constructor=Float32BufferAttribute;function Float64BufferAttribute(array,itemSize,normalized){BufferAttribute.call(this,new Float64Array(array),itemSize,normalized);}Float64BufferAttribute.prototype=Object.create(BufferAttribute.prototype);Float64BufferAttribute.prototype.constructor=Float64BufferAttribute;var DirectGeometry=function(){function DirectGeometry(){_classCallCheck(this,DirectGeometry);this.vertices=[];this.normals=[];this.colors=[];this.uvs=[];this.uvs2=[];this.groups=[];this.morphTargets={};this.skinWeights=[];this.skinIndices=[];this.boundingBox=null;this.boundingSphere=null;this.verticesNeedUpdate=false;this.normalsNeedUpdate=false;this.colorsNeedUpdate=false;this.uvsNeedUpdate=false;this.groupsNeedUpdate=false;}_createClass(DirectGeometry,[{key:\"computeGroups\",value:function computeGroups(geometry){var groups=[];var group,i;var materialIndex=undefined;var faces=geometry.faces;for(i=0;i<faces.length;i++){var face=faces[i];if(face.materialIndex!==materialIndex){materialIndex=face.materialIndex;if(group!==undefined){group.count=i*3-group.start;groups.push(group);}group={start:i*3,materialIndex:materialIndex};}}if(group!==undefined){group.count=i*3-group.start;groups.push(group);}this.groups=groups;}},{key:\"fromGeometry\",value:function fromGeometry(geometry){var faces=geometry.faces;var vertices=geometry.vertices;var faceVertexUvs=geometry.faceVertexUvs;var hasFaceVertexUv=faceVertexUvs[0]&&faceVertexUvs[0].length>0;var hasFaceVertexUv2=faceVertexUvs[1]&&faceVertexUvs[1].length>0;var morphTargets=geometry.morphTargets;var morphTargetsLength=morphTargets.length;var morphTargetsPosition;if(morphTargetsLength>0){morphTargetsPosition=[];for(var _i36=0;_i36<morphTargetsLength;_i36++){morphTargetsPosition[_i36]={name:morphTargets[_i36].name,data:[]};}this.morphTargets.position=morphTargetsPosition;}var morphNormals=geometry.morphNormals;var morphNormalsLength=morphNormals.length;var morphTargetsNormal;if(morphNormalsLength>0){morphTargetsNormal=[];for(var _i37=0;_i37<morphNormalsLength;_i37++){morphTargetsNormal[_i37]={name:morphNormals[_i37].name,data:[]};}this.morphTargets.normal=morphTargetsNormal;}\nvar skinIndices=geometry.skinIndices;var skinWeights=geometry.skinWeights;var hasSkinIndices=skinIndices.length===vertices.length;var hasSkinWeights=skinWeights.length===vertices.length;if(vertices.length>0&&faces.length===0){console.error('THREE.DirectGeometry: Faceless geometries are not supported.');}for(var _i38=0;_i38<faces.length;_i38++){var face=faces[_i38];this.vertices.push(vertices[face.a],vertices[face.b],vertices[face.c]);var vertexNormals=face.vertexNormals;if(vertexNormals.length===3){this.normals.push(vertexNormals[0],vertexNormals[1],vertexNormals[2]);}else{var normal=face.normal;this.normals.push(normal,normal,normal);}var vertexColors=face.vertexColors;if(vertexColors.length===3){this.colors.push(vertexColors[0],vertexColors[1],vertexColors[2]);}else{var color=face.color;this.colors.push(color,color,color);}if(hasFaceVertexUv===true){var vertexUvs=faceVertexUvs[0][_i38];if(vertexUvs!==undefined){this.uvs.push(vertexUvs[0],vertexUvs[1],vertexUvs[2]);}else{console.warn('THREE.DirectGeometry.fromGeometry(): Undefined vertexUv ',_i38);this.uvs.push(new Vector2(),new Vector2(),new Vector2());}}if(hasFaceVertexUv2===true){var _vertexUvs=faceVertexUvs[1][_i38];if(_vertexUvs!==undefined){this.uvs2.push(_vertexUvs[0],_vertexUvs[1],_vertexUvs[2]);}else{console.warn('THREE.DirectGeometry.fromGeometry(): Undefined vertexUv2 ',_i38);this.uvs2.push(new Vector2(),new Vector2(),new Vector2());}}\nfor(var j=0;j<morphTargetsLength;j++){var morphTarget=morphTargets[j].vertices;morphTargetsPosition[j].data.push(morphTarget[face.a],morphTarget[face.b],morphTarget[face.c]);}for(var _j2=0;_j2<morphNormalsLength;_j2++){var morphNormal=morphNormals[_j2].vertexNormals[_i38];morphTargetsNormal[_j2].data.push(morphNormal.a,morphNormal.b,morphNormal.c);}\nif(hasSkinIndices){this.skinIndices.push(skinIndices[face.a],skinIndices[face.b],skinIndices[face.c]);}if(hasSkinWeights){this.skinWeights.push(skinWeights[face.a],skinWeights[face.b],skinWeights[face.c]);}}this.computeGroups(geometry);this.verticesNeedUpdate=geometry.verticesNeedUpdate;this.normalsNeedUpdate=geometry.normalsNeedUpdate;this.colorsNeedUpdate=geometry.colorsNeedUpdate;this.uvsNeedUpdate=geometry.uvsNeedUpdate;this.groupsNeedUpdate=geometry.groupsNeedUpdate;if(geometry.boundingSphere!==null){this.boundingSphere=geometry.boundingSphere.clone();}if(geometry.boundingBox!==null){this.boundingBox=geometry.boundingBox.clone();}return this;}}]);return DirectGeometry;}();function arrayMax(array){if(array.length===0)return-Infinity;var max=array[0];for(var _i39=1,l=array.length;_i39<l;++_i39){if(array[_i39]>max)max=array[_i39];}return max;}var _bufferGeometryId=1;var _m1$2=new Matrix4();var _obj=new Object3D();var _offset=new Vector3();var _box$2=new Box3();var _boxMorphTargets=new Box3();var _vector$4=new Vector3();function BufferGeometry(){Object.defineProperty(this,'id',{value:_bufferGeometryId+=2});this.uuid=MathUtils.generateUUID();this.name='';this.type='BufferGeometry';this.index=null;this.attributes={};this.morphAttributes={};this.morphTargetsRelative=false;this.groups=[];this.boundingBox=null;this.boundingSphere=null;this.drawRange={start:0,count:Infinity};this.userData={};}BufferGeometry.prototype=Object.assign(Object.create(EventDispatcher.prototype),{constructor:BufferGeometry,isBufferGeometry:true,getIndex:function getIndex(){return this.index;},setIndex:function setIndex(index){if(Array.isArray(index)){this.index=new(arrayMax(index)>65535?Uint32BufferAttribute:Uint16BufferAttribute)(index,1);}else{this.index=index;}return this;},getAttribute:function getAttribute(name){return this.attributes[name];},setAttribute:function setAttribute(name,attribute){this.attributes[name]=attribute;return this;},deleteAttribute:function deleteAttribute(name){delete this.attributes[name];return this;},addGroup:function addGroup(start,count,materialIndex){this.groups.push({start:start,count:count,materialIndex:materialIndex!==undefined?materialIndex:0});},clearGroups:function clearGroups(){this.groups=[];},setDrawRange:function setDrawRange(start,count){this.drawRange.start=start;this.drawRange.count=count;},applyMatrix4:function applyMatrix4(matrix){var position=this.attributes.position;if(position!==undefined){position.applyMatrix4(matrix);position.needsUpdate=true;}var normal=this.attributes.normal;if(normal!==undefined){var normalMatrix=new Matrix3().getNormalMatrix(matrix);normal.applyNormalMatrix(normalMatrix);normal.needsUpdate=true;}var tangent=this.attributes.tangent;if(tangent!==undefined){tangent.transformDirection(matrix);tangent.needsUpdate=true;}if(this.boundingBox!==null){this.computeBoundingBox();}if(this.boundingSphere!==null){this.computeBoundingSphere();}return this;},rotateX:function rotateX(angle){_m1$2.makeRotationX(angle);this.applyMatrix4(_m1$2);return this;},rotateY:function rotateY(angle){_m1$2.makeRotationY(angle);this.applyMatrix4(_m1$2);return this;},rotateZ:function rotateZ(angle){_m1$2.makeRotationZ(angle);this.applyMatrix4(_m1$2);return this;},translate:function translate(x,y,z){_m1$2.makeTranslation(x,y,z);this.applyMatrix4(_m1$2);return this;},scale:function scale(x,y,z){_m1$2.makeScale(x,y,z);this.applyMatrix4(_m1$2);return this;},lookAt:function lookAt(vector){_obj.lookAt(vector);_obj.updateMatrix();this.applyMatrix4(_obj.matrix);return this;},center:function center(){this.computeBoundingBox();this.boundingBox.getCenter(_offset).negate();this.translate(_offset.x,_offset.y,_offset.z);return this;},setFromObject:function setFromObject(object){var geometry=object.geometry;if(object.isPoints||object.isLine){var positions=new Float32BufferAttribute(geometry.vertices.length*3,3);var colors=new Float32BufferAttribute(geometry.colors.length*3,3);this.setAttribute('position',positions.copyVector3sArray(geometry.vertices));this.setAttribute('color',colors.copyColorsArray(geometry.colors));if(geometry.lineDistances&&geometry.lineDistances.length===geometry.vertices.length){var lineDistances=new Float32BufferAttribute(geometry.lineDistances.length,1);this.setAttribute('lineDistance',lineDistances.copyArray(geometry.lineDistances));}if(geometry.boundingSphere!==null){this.boundingSphere=geometry.boundingSphere.clone();}if(geometry.boundingBox!==null){this.boundingBox=geometry.boundingBox.clone();}}else if(object.isMesh){if(geometry&&geometry.isGeometry){this.fromGeometry(geometry);}}return this;},setFromPoints:function setFromPoints(points){var position=[];for(var _i40=0,l=points.length;_i40<l;_i40++){var point=points[_i40];position.push(point.x,point.y,point.z||0);}this.setAttribute('position',new Float32BufferAttribute(position,3));return this;},updateFromObject:function updateFromObject(object){var geometry=object.geometry;if(object.isMesh){var direct=geometry.__directGeometry;if(geometry.elementsNeedUpdate===true){direct=undefined;geometry.elementsNeedUpdate=false;}if(direct===undefined){return this.fromGeometry(geometry);}direct.verticesNeedUpdate=geometry.verticesNeedUpdate;direct.normalsNeedUpdate=geometry.normalsNeedUpdate;direct.colorsNeedUpdate=geometry.colorsNeedUpdate;direct.uvsNeedUpdate=geometry.uvsNeedUpdate;direct.groupsNeedUpdate=geometry.groupsNeedUpdate;geometry.verticesNeedUpdate=false;geometry.normalsNeedUpdate=false;geometry.colorsNeedUpdate=false;geometry.uvsNeedUpdate=false;geometry.groupsNeedUpdate=false;geometry=direct;}if(geometry.verticesNeedUpdate===true){var attribute=this.attributes.position;if(attribute!==undefined){attribute.copyVector3sArray(geometry.vertices);attribute.needsUpdate=true;}geometry.verticesNeedUpdate=false;}if(geometry.normalsNeedUpdate===true){var _attribute=this.attributes.normal;if(_attribute!==undefined){_attribute.copyVector3sArray(geometry.normals);_attribute.needsUpdate=true;}geometry.normalsNeedUpdate=false;}if(geometry.colorsNeedUpdate===true){var _attribute2=this.attributes.color;if(_attribute2!==undefined){_attribute2.copyColorsArray(geometry.colors);_attribute2.needsUpdate=true;}geometry.colorsNeedUpdate=false;}if(geometry.uvsNeedUpdate){var _attribute3=this.attributes.uv;if(_attribute3!==undefined){_attribute3.copyVector2sArray(geometry.uvs);_attribute3.needsUpdate=true;}geometry.uvsNeedUpdate=false;}if(geometry.lineDistancesNeedUpdate){var _attribute4=this.attributes.lineDistance;if(_attribute4!==undefined){_attribute4.copyArray(geometry.lineDistances);_attribute4.needsUpdate=true;}geometry.lineDistancesNeedUpdate=false;}if(geometry.groupsNeedUpdate){geometry.computeGroups(object.geometry);this.groups=geometry.groups;geometry.groupsNeedUpdate=false;}return this;},fromGeometry:function fromGeometry(geometry){geometry.__directGeometry=new DirectGeometry().fromGeometry(geometry);return this.fromDirectGeometry(geometry.__directGeometry);},fromDirectGeometry:function fromDirectGeometry(geometry){var positions=new Float32Array(geometry.vertices.length*3);this.setAttribute('position',new BufferAttribute(positions,3).copyVector3sArray(geometry.vertices));if(geometry.normals.length>0){var normals=new Float32Array(geometry.normals.length*3);this.setAttribute('normal',new BufferAttribute(normals,3).copyVector3sArray(geometry.normals));}if(geometry.colors.length>0){var colors=new Float32Array(geometry.colors.length*3);this.setAttribute('color',new BufferAttribute(colors,3).copyColorsArray(geometry.colors));}if(geometry.uvs.length>0){var uvs=new Float32Array(geometry.uvs.length*2);this.setAttribute('uv',new BufferAttribute(uvs,2).copyVector2sArray(geometry.uvs));}if(geometry.uvs2.length>0){var uvs2=new Float32Array(geometry.uvs2.length*2);this.setAttribute('uv2',new BufferAttribute(uvs2,2).copyVector2sArray(geometry.uvs2));}\nthis.groups=geometry.groups;for(var name in geometry.morphTargets){var array=[];var morphTargets=geometry.morphTargets[name];for(var _i41=0,l=morphTargets.length;_i41<l;_i41++){var morphTarget=morphTargets[_i41];var attribute=new Float32BufferAttribute(morphTarget.data.length*3,3);attribute.name=morphTarget.name;array.push(attribute.copyVector3sArray(morphTarget.data));}this.morphAttributes[name]=array;}\nif(geometry.skinIndices.length>0){var skinIndices=new Float32BufferAttribute(geometry.skinIndices.length*4,4);this.setAttribute('skinIndex',skinIndices.copyVector4sArray(geometry.skinIndices));}if(geometry.skinWeights.length>0){var skinWeights=new Float32BufferAttribute(geometry.skinWeights.length*4,4);this.setAttribute('skinWeight',skinWeights.copyVector4sArray(geometry.skinWeights));}\nif(geometry.boundingSphere!==null){this.boundingSphere=geometry.boundingSphere.clone();}if(geometry.boundingBox!==null){this.boundingBox=geometry.boundingBox.clone();}return this;},computeBoundingBox:function computeBoundingBox(){if(this.boundingBox===null){this.boundingBox=new Box3();}var position=this.attributes.position;var morphAttributesPosition=this.morphAttributes.position;if(position&&position.isGLBufferAttribute){console.error('THREE.BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box. Alternatively set \"mesh.frustumCulled\" to \"false\".',this);this.boundingBox.set(new Vector3(-Infinity,-Infinity,-Infinity),new Vector3(+Infinity,+Infinity,+Infinity));return;}if(position!==undefined){this.boundingBox.setFromBufferAttribute(position);if(morphAttributesPosition){for(var _i42=0,il=morphAttributesPosition.length;_i42<il;_i42++){var morphAttribute=morphAttributesPosition[_i42];_box$2.setFromBufferAttribute(morphAttribute);if(this.morphTargetsRelative){_vector$4.addVectors(this.boundingBox.min,_box$2.min);this.boundingBox.expandByPoint(_vector$4);_vector$4.addVectors(this.boundingBox.max,_box$2.max);this.boundingBox.expandByPoint(_vector$4);}else{this.boundingBox.expandByPoint(_box$2.min);this.boundingBox.expandByPoint(_box$2.max);}}}}else{this.boundingBox.makeEmpty();}if(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z)){console.error('THREE.BufferGeometry.computeBoundingBox(): Computed min/max have NaN values. The \"position\" attribute is likely to have NaN values.',this);}},computeBoundingSphere:function computeBoundingSphere(){if(this.boundingSphere===null){this.boundingSphere=new Sphere();}var position=this.attributes.position;var morphAttributesPosition=this.morphAttributes.position;if(position&&position.isGLBufferAttribute){console.error('THREE.BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere. Alternatively set \"mesh.frustumCulled\" to \"false\".',this);this.boundingSphere.set(new Vector3(),Infinity);return;}if(position){var center=this.boundingSphere.center;_box$2.setFromBufferAttribute(position);if(morphAttributesPosition){for(var _i43=0,il=morphAttributesPosition.length;_i43<il;_i43++){var morphAttribute=morphAttributesPosition[_i43];_boxMorphTargets.setFromBufferAttribute(morphAttribute);if(this.morphTargetsRelative){_vector$4.addVectors(_box$2.min,_boxMorphTargets.min);_box$2.expandByPoint(_vector$4);_vector$4.addVectors(_box$2.max,_boxMorphTargets.max);_box$2.expandByPoint(_vector$4);}else{_box$2.expandByPoint(_boxMorphTargets.min);_box$2.expandByPoint(_boxMorphTargets.max);}}}_box$2.getCenter(center);var maxRadiusSq=0;for(var _i44=0,_il2=position.count;_i44<_il2;_i44++){_vector$4.fromBufferAttribute(position,_i44);maxRadiusSq=Math.max(maxRadiusSq,center.distanceToSquared(_vector$4));}\nif(morphAttributesPosition){for(var _i45=0,_il3=morphAttributesPosition.length;_i45<_il3;_i45++){var _morphAttribute=morphAttributesPosition[_i45];var morphTargetsRelative=this.morphTargetsRelative;for(var j=0,jl=_morphAttribute.count;j<jl;j++){_vector$4.fromBufferAttribute(_morphAttribute,j);if(morphTargetsRelative){_offset.fromBufferAttribute(position,j);_vector$4.add(_offset);}maxRadiusSq=Math.max(maxRadiusSq,center.distanceToSquared(_vector$4));}}}this.boundingSphere.radius=Math.sqrt(maxRadiusSq);if(isNaN(this.boundingSphere.radius)){console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The \"position\" attribute is likely to have NaN values.',this);}}},computeFaceNormals:function computeFaceNormals(){},computeVertexNormals:function computeVertexNormals(){var index=this.index;var positionAttribute=this.getAttribute('position');if(positionAttribute!==undefined){var normalAttribute=this.getAttribute('normal');if(normalAttribute===undefined){normalAttribute=new BufferAttribute(new Float32Array(positionAttribute.count*3),3);this.setAttribute('normal',normalAttribute);}else{for(var _i46=0,il=normalAttribute.count;_i46<il;_i46++){normalAttribute.setXYZ(_i46,0,0,0);}}var pA=new Vector3(),pB=new Vector3(),pC=new Vector3();var nA=new Vector3(),nB=new Vector3(),nC=new Vector3();var cb=new Vector3(),ab=new Vector3();if(index){for(var _i47=0,_il4=index.count;_i47<_il4;_i47+=3){var vA=index.getX(_i47+0);var vB=index.getX(_i47+1);var vC=index.getX(_i47+2);pA.fromBufferAttribute(positionAttribute,vA);pB.fromBufferAttribute(positionAttribute,vB);pC.fromBufferAttribute(positionAttribute,vC);cb.subVectors(pC,pB);ab.subVectors(pA,pB);cb.cross(ab);nA.fromBufferAttribute(normalAttribute,vA);nB.fromBufferAttribute(normalAttribute,vB);nC.fromBufferAttribute(normalAttribute,vC);nA.add(cb);nB.add(cb);nC.add(cb);normalAttribute.setXYZ(vA,nA.x,nA.y,nA.z);normalAttribute.setXYZ(vB,nB.x,nB.y,nB.z);normalAttribute.setXYZ(vC,nC.x,nC.y,nC.z);}}else{for(var _i48=0,_il5=positionAttribute.count;_i48<_il5;_i48+=3){pA.fromBufferAttribute(positionAttribute,_i48+0);pB.fromBufferAttribute(positionAttribute,_i48+1);pC.fromBufferAttribute(positionAttribute,_i48+2);cb.subVectors(pC,pB);ab.subVectors(pA,pB);cb.cross(ab);normalAttribute.setXYZ(_i48+0,cb.x,cb.y,cb.z);normalAttribute.setXYZ(_i48+1,cb.x,cb.y,cb.z);normalAttribute.setXYZ(_i48+2,cb.x,cb.y,cb.z);}}this.normalizeNormals();normalAttribute.needsUpdate=true;}},merge:function merge(geometry,offset){if(!(geometry&&geometry.isBufferGeometry)){console.error('THREE.BufferGeometry.merge(): geometry not an instance of THREE.BufferGeometry.',geometry);return;}if(offset===undefined){offset=0;console.warn('THREE.BufferGeometry.merge(): Overwriting original geometry, starting at offset=0. '+'Use BufferGeometryUtils.mergeBufferGeometries() for lossless merge.');}var attributes=this.attributes;for(var key in attributes){if(geometry.attributes[key]===undefined)continue;var attribute1=attributes[key];var attributeArray1=attribute1.array;var attribute2=geometry.attributes[key];var attributeArray2=attribute2.array;var attributeOffset=attribute2.itemSize*offset;var length=Math.min(attributeArray2.length,attributeArray1.length-attributeOffset);for(var _i49=0,j=attributeOffset;_i49<length;_i49++,j++){attributeArray1[j]=attributeArray2[_i49];}}return this;},normalizeNormals:function normalizeNormals(){var normals=this.attributes.normal;for(var _i50=0,il=normals.count;_i50<il;_i50++){_vector$4.fromBufferAttribute(normals,_i50);_vector$4.normalize();normals.setXYZ(_i50,_vector$4.x,_vector$4.y,_vector$4.z);}},toNonIndexed:function toNonIndexed(){function convertBufferAttribute(attribute,indices){var array=attribute.array;var itemSize=attribute.itemSize;var normalized=attribute.normalized;var array2=new array.constructor(indices.length*itemSize);var index=0,index2=0;for(var _i51=0,l=indices.length;_i51<l;_i51++){index=indices[_i51]*itemSize;for(var j=0;j<itemSize;j++){array2[index2++]=array[index++];}}return new BufferAttribute(array2,itemSize,normalized);}\nif(this.index===null){console.warn('THREE.BufferGeometry.toNonIndexed(): Geometry is already non-indexed.');return this;}var geometry2=new BufferGeometry();var indices=this.index.array;var attributes=this.attributes;for(var name in attributes){var attribute=attributes[name];var newAttribute=convertBufferAttribute(attribute,indices);geometry2.setAttribute(name,newAttribute);}\nvar morphAttributes=this.morphAttributes;for(var _name in morphAttributes){var morphArray=[];var morphAttribute=morphAttributes[_name];for(var _i52=0,il=morphAttribute.length;_i52<il;_i52++){var _attribute5=morphAttribute[_i52];var _newAttribute=convertBufferAttribute(_attribute5,indices);morphArray.push(_newAttribute);}geometry2.morphAttributes[_name]=morphArray;}geometry2.morphTargetsRelative=this.morphTargetsRelative;var groups=this.groups;for(var _i53=0,l=groups.length;_i53<l;_i53++){var group=groups[_i53];geometry2.addGroup(group.start,group.count,group.materialIndex);}return geometry2;},toJSON:function toJSON(){var data={metadata:{version:4.5,type:'BufferGeometry',generator:'BufferGeometry.toJSON'}};data.uuid=this.uuid;data.type=this.type;if(this.name!=='')data.name=this.name;if(Object.keys(this.userData).length>0)data.userData=this.userData;if(this.parameters!==undefined){var parameters=this.parameters;for(var key in parameters){if(parameters[key]!==undefined)data[key]=parameters[key];}return data;}data.data={attributes:{}};var index=this.index;if(index!==null){data.data.index={type:index.array.constructor.name,array:Array.prototype.slice.call(index.array)};}var attributes=this.attributes;for(var _key in attributes){var attribute=attributes[_key];var attributeData=attribute.toJSON(data.data);if(attribute.name!=='')attributeData.name=attribute.name;data.data.attributes[_key]=attributeData;}var morphAttributes={};var hasMorphAttributes=false;for(var _key2 in this.morphAttributes){var attributeArray=this.morphAttributes[_key2];var array=[];for(var _i54=0,il=attributeArray.length;_i54<il;_i54++){var _attribute6=attributeArray[_i54];var _attributeData=_attribute6.toJSON(data.data);if(_attribute6.name!=='')_attributeData.name=_attribute6.name;array.push(_attributeData);}if(array.length>0){morphAttributes[_key2]=array;hasMorphAttributes=true;}}if(hasMorphAttributes){data.data.morphAttributes=morphAttributes;data.data.morphTargetsRelative=this.morphTargetsRelative;}var groups=this.groups;if(groups.length>0){data.data.groups=JSON.parse(JSON.stringify(groups));}var boundingSphere=this.boundingSphere;if(boundingSphere!==null){data.data.boundingSphere={center:boundingSphere.center.toArray(),radius:boundingSphere.radius};}return data;},clone:function clone(){return new BufferGeometry().copy(this);},copy:function copy(source){this.index=null;this.attributes={};this.morphAttributes={};this.groups=[];this.boundingBox=null;this.boundingSphere=null;var data={};this.name=source.name;var index=source.index;if(index!==null){this.setIndex(index.clone(data));}\nvar attributes=source.attributes;for(var name in attributes){var attribute=attributes[name];this.setAttribute(name,attribute.clone(data));}\nvar morphAttributes=source.morphAttributes;for(var _name2 in morphAttributes){var array=[];var morphAttribute=morphAttributes[_name2];for(var _i55=0,l=morphAttribute.length;_i55<l;_i55++){array.push(morphAttribute[_i55].clone(data));}this.morphAttributes[_name2]=array;}this.morphTargetsRelative=source.morphTargetsRelative;var groups=source.groups;for(var _i56=0,_l4=groups.length;_i56<_l4;_i56++){var group=groups[_i56];this.addGroup(group.start,group.count,group.materialIndex);}\nvar boundingBox=source.boundingBox;if(boundingBox!==null){this.boundingBox=boundingBox.clone();}\nvar boundingSphere=source.boundingSphere;if(boundingSphere!==null){this.boundingSphere=boundingSphere.clone();}\nthis.drawRange.start=source.drawRange.start;this.drawRange.count=source.drawRange.count;this.userData=source.userData;return this;},dispose:function dispose(){this.dispatchEvent({type:'dispose'});}});var _inverseMatrix=new Matrix4();var _ray=new Ray();var _sphere=new Sphere();var _vA=new Vector3();var _vB=new Vector3();var _vC=new Vector3();var _tempA=new Vector3();var _tempB=new Vector3();var _tempC=new Vector3();var _morphA=new Vector3();var _morphB=new Vector3();var _morphC=new Vector3();var _uvA=new Vector2();var _uvB=new Vector2();var _uvC=new Vector2();var _intersectionPoint=new Vector3();var _intersectionPointWorld=new Vector3();function Mesh(geometry,material){Object3D.call(this);this.type='Mesh';this.geometry=geometry!==undefined?geometry:new BufferGeometry();this.material=material!==undefined?material:new MeshBasicMaterial();this.updateMorphTargets();}Mesh.prototype=Object.assign(Object.create(Object3D.prototype),{constructor:Mesh,isMesh:true,copy:function copy(source){Object3D.prototype.copy.call(this,source);if(source.morphTargetInfluences!==undefined){this.morphTargetInfluences=source.morphTargetInfluences.slice();}if(source.morphTargetDictionary!==undefined){this.morphTargetDictionary=Object.assign({},source.morphTargetDictionary);}this.material=source.material;this.geometry=source.geometry;return this;},updateMorphTargets:function updateMorphTargets(){var geometry=this.geometry;if(geometry.isBufferGeometry){var morphAttributes=geometry.morphAttributes;var keys=Object.keys(morphAttributes);if(keys.length>0){var morphAttribute=morphAttributes[keys[0]];if(morphAttribute!==undefined){this.morphTargetInfluences=[];this.morphTargetDictionary={};for(var m=0,ml=morphAttribute.length;m<ml;m++){var name=morphAttribute[m].name||String(m);this.morphTargetInfluences.push(0);this.morphTargetDictionary[name]=m;}}}}else{var morphTargets=geometry.morphTargets;if(morphTargets!==undefined&&morphTargets.length>0){console.error('THREE.Mesh.updateMorphTargets() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.');}}},raycast:function raycast(raycaster,intersects){var geometry=this.geometry;var material=this.material;var matrixWorld=this.matrixWorld;if(material===undefined)return;if(geometry.boundingSphere===null)geometry.computeBoundingSphere();_sphere.copy(geometry.boundingSphere);_sphere.applyMatrix4(matrixWorld);if(raycaster.ray.intersectsSphere(_sphere)===false)return;_inverseMatrix.getInverse(matrixWorld);_ray.copy(raycaster.ray).applyMatrix4(_inverseMatrix);if(geometry.boundingBox!==null){if(_ray.intersectsBox(geometry.boundingBox)===false)return;}var intersection;if(geometry.isBufferGeometry){var index=geometry.index;var position=geometry.attributes.position;var morphPosition=geometry.morphAttributes.position;var morphTargetsRelative=geometry.morphTargetsRelative;var uv=geometry.attributes.uv;var uv2=geometry.attributes.uv2;var groups=geometry.groups;var drawRange=geometry.drawRange;if(index!==null){if(Array.isArray(material)){for(var _i57=0,il=groups.length;_i57<il;_i57++){var group=groups[_i57];var groupMaterial=material[group.materialIndex];var start=Math.max(group.start,drawRange.start);var end=Math.min(group.start+group.count,drawRange.start+drawRange.count);for(var j=start,jl=end;j<jl;j+=3){var a=index.getX(j);var b=index.getX(j+1);var c=index.getX(j+2);intersection=checkBufferGeometryIntersection(this,groupMaterial,raycaster,_ray,position,morphPosition,morphTargetsRelative,uv,uv2,a,b,c);if(intersection){intersection.faceIndex=Math.floor(j/3);intersection.face.materialIndex=group.materialIndex;intersects.push(intersection);}}}}else{var _start2=Math.max(0,drawRange.start);var _end2=Math.min(index.count,drawRange.start+drawRange.count);for(var _i58=_start2,_il6=_end2;_i58<_il6;_i58+=3){var _a2=index.getX(_i58);var _b2=index.getX(_i58+1);var _c2=index.getX(_i58+2);intersection=checkBufferGeometryIntersection(this,material,raycaster,_ray,position,morphPosition,morphTargetsRelative,uv,uv2,_a2,_b2,_c2);if(intersection){intersection.faceIndex=Math.floor(_i58/3);intersects.push(intersection);}}}}else if(position!==undefined){if(Array.isArray(material)){for(var _i59=0,_il7=groups.length;_i59<_il7;_i59++){var _group=groups[_i59];var _groupMaterial=material[_group.materialIndex];var _start3=Math.max(_group.start,drawRange.start);var _end3=Math.min(_group.start+_group.count,drawRange.start+drawRange.count);for(var _j3=_start3,_jl=_end3;_j3<_jl;_j3+=3){var _a3=_j3;var _b3=_j3+1;var _c3=_j3+2;intersection=checkBufferGeometryIntersection(this,_groupMaterial,raycaster,_ray,position,morphPosition,morphTargetsRelative,uv,uv2,_a3,_b3,_c3);if(intersection){intersection.faceIndex=Math.floor(_j3/3);intersection.face.materialIndex=_group.materialIndex;intersects.push(intersection);}}}}else{var _start4=Math.max(0,drawRange.start);var _end4=Math.min(position.count,drawRange.start+drawRange.count);for(var _i60=_start4,_il8=_end4;_i60<_il8;_i60+=3){var _a4=_i60;var _b4=_i60+1;var _c4=_i60+2;intersection=checkBufferGeometryIntersection(this,material,raycaster,_ray,position,morphPosition,morphTargetsRelative,uv,uv2,_a4,_b4,_c4);if(intersection){intersection.faceIndex=Math.floor(_i60/3);intersects.push(intersection);}}}}}else if(geometry.isGeometry){var isMultiMaterial=Array.isArray(material);var vertices=geometry.vertices;var faces=geometry.faces;var uvs;var faceVertexUvs=geometry.faceVertexUvs[0];if(faceVertexUvs.length>0)uvs=faceVertexUvs;for(var f=0,fl=faces.length;f<fl;f++){var face=faces[f];var faceMaterial=isMultiMaterial?material[face.materialIndex]:material;if(faceMaterial===undefined)continue;var fvA=vertices[face.a];var fvB=vertices[face.b];var fvC=vertices[face.c];intersection=checkIntersection(this,faceMaterial,raycaster,_ray,fvA,fvB,fvC,_intersectionPoint);if(intersection){if(uvs&&uvs[f]){var uvs_f=uvs[f];_uvA.copy(uvs_f[0]);_uvB.copy(uvs_f[1]);_uvC.copy(uvs_f[2]);intersection.uv=Triangle.getUV(_intersectionPoint,fvA,fvB,fvC,_uvA,_uvB,_uvC,new Vector2());}intersection.face=face;intersection.faceIndex=f;intersects.push(intersection);}}}}});function checkIntersection(object,material,raycaster,ray,pA,pB,pC,point){var intersect;if(material.side===BackSide){intersect=ray.intersectTriangle(pC,pB,pA,true,point);}else{intersect=ray.intersectTriangle(pA,pB,pC,material.side!==DoubleSide,point);}if(intersect===null)return null;_intersectionPointWorld.copy(point);_intersectionPointWorld.applyMatrix4(object.matrixWorld);var distance=raycaster.ray.origin.distanceTo(_intersectionPointWorld);if(distance<raycaster.near||distance>raycaster.far)return null;return{distance:distance,point:_intersectionPointWorld.clone(),object:object};}function checkBufferGeometryIntersection(object,material,raycaster,ray,position,morphPosition,morphTargetsRelative,uv,uv2,a,b,c){_vA.fromBufferAttribute(position,a);_vB.fromBufferAttribute(position,b);_vC.fromBufferAttribute(position,c);var morphInfluences=object.morphTargetInfluences;if(material.morphTargets&&morphPosition&&morphInfluences){_morphA.set(0,0,0);_morphB.set(0,0,0);_morphC.set(0,0,0);for(var _i61=0,il=morphPosition.length;_i61<il;_i61++){var influence=morphInfluences[_i61];var morphAttribute=morphPosition[_i61];if(influence===0)continue;_tempA.fromBufferAttribute(morphAttribute,a);_tempB.fromBufferAttribute(morphAttribute,b);_tempC.fromBufferAttribute(morphAttribute,c);if(morphTargetsRelative){_morphA.addScaledVector(_tempA,influence);_morphB.addScaledVector(_tempB,influence);_morphC.addScaledVector(_tempC,influence);}else{_morphA.addScaledVector(_tempA.sub(_vA),influence);_morphB.addScaledVector(_tempB.sub(_vB),influence);_morphC.addScaledVector(_tempC.sub(_vC),influence);}}_vA.add(_morphA);_vB.add(_morphB);_vC.add(_morphC);}if(object.isSkinnedMesh){object.boneTransform(a,_vA);object.boneTransform(b,_vB);object.boneTransform(c,_vC);}var intersection=checkIntersection(object,material,raycaster,ray,_vA,_vB,_vC,_intersectionPoint);if(intersection){if(uv){_uvA.fromBufferAttribute(uv,a);_uvB.fromBufferAttribute(uv,b);_uvC.fromBufferAttribute(uv,c);intersection.uv=Triangle.getUV(_intersectionPoint,_vA,_vB,_vC,_uvA,_uvB,_uvC,new Vector2());}if(uv2){_uvA.fromBufferAttribute(uv2,a);_uvB.fromBufferAttribute(uv2,b);_uvC.fromBufferAttribute(uv2,c);intersection.uv2=Triangle.getUV(_intersectionPoint,_vA,_vB,_vC,_uvA,_uvB,_uvC,new Vector2());}var face=new Face3(a,b,c);Triangle.getNormal(_vA,_vB,_vC,face.normal);intersection.face=face;}return intersection;}var BoxBufferGeometry=function(_BufferGeometry){_inherits(BoxBufferGeometry,_BufferGeometry);var _super2=_createSuper(BoxBufferGeometry);function BoxBufferGeometry(){var _this9;var width=arguments.length>0&&arguments[0]!==undefined?arguments[0]:1;var height=arguments.length>1&&arguments[1]!==undefined?arguments[1]:1;var depth=arguments.length>2&&arguments[2]!==undefined?arguments[2]:1;var widthSegments=arguments.length>3&&arguments[3]!==undefined?arguments[3]:1;var heightSegments=arguments.length>4&&arguments[4]!==undefined?arguments[4]:1;var depthSegments=arguments.length>5&&arguments[5]!==undefined?arguments[5]:1;_classCallCheck(this,BoxBufferGeometry);_this9=_super2.call(this);_this9.type='BoxBufferGeometry';_this9.parameters={width:width,height:height,depth:depth,widthSegments:widthSegments,heightSegments:heightSegments,depthSegments:depthSegments};var scope=_assertThisInitialized(_this9);widthSegments=Math.floor(widthSegments);heightSegments=Math.floor(heightSegments);depthSegments=Math.floor(depthSegments);var indices=[];var vertices=[];var normals=[];var uvs=[];var numberOfVertices=0;var groupStart=0;buildPlane('z','y','x',-1,-1,depth,height,width,depthSegments,heightSegments,0);buildPlane('z','y','x',1,-1,depth,height,-width,depthSegments,heightSegments,1);buildPlane('x','z','y',1,1,width,depth,height,widthSegments,depthSegments,2);buildPlane('x','z','y',1,-1,width,depth,-height,widthSegments,depthSegments,3);buildPlane('x','y','z',1,-1,width,height,depth,widthSegments,heightSegments,4);buildPlane('x','y','z',-1,-1,width,height,-depth,widthSegments,heightSegments,5);_this9.setIndex(indices);_this9.setAttribute('position',new Float32BufferAttribute(vertices,3));_this9.setAttribute('normal',new Float32BufferAttribute(normals,3));_this9.setAttribute('uv',new Float32BufferAttribute(uvs,2));function buildPlane(u,v,w,udir,vdir,width,height,depth,gridX,gridY,materialIndex){var segmentWidth=width/gridX;var segmentHeight=height/gridY;var widthHalf=width/2;var heightHalf=height/2;var depthHalf=depth/2;var gridX1=gridX+1;var gridY1=gridY+1;var vertexCounter=0;var groupCount=0;var vector=new Vector3();for(var iy=0;iy<gridY1;iy++){var y=iy*segmentHeight-heightHalf;for(var ix=0;ix<gridX1;ix++){var x=ix*segmentWidth-widthHalf;vector[u]=x*udir;vector[v]=y*vdir;vector[w]=depthHalf;vertices.push(vector.x,vector.y,vector.z);vector[u]=0;vector[v]=0;vector[w]=depth>0?1:-1;normals.push(vector.x,vector.y,vector.z);uvs.push(ix/gridX);uvs.push(1-iy/gridY);vertexCounter+=1;}}\nfor(var _iy=0;_iy<gridY;_iy++){for(var _ix=0;_ix<gridX;_ix++){var a=numberOfVertices+_ix+gridX1*_iy;var b=numberOfVertices+_ix+gridX1*(_iy+1);var c=numberOfVertices+(_ix+1)+gridX1*(_iy+1);var d=numberOfVertices+(_ix+1)+gridX1*_iy;indices.push(a,b,d);indices.push(b,c,d);groupCount+=6;}}\nscope.addGroup(groupStart,groupCount,materialIndex);groupStart+=groupCount;numberOfVertices+=vertexCounter;}return _this9;}return BoxBufferGeometry;}(BufferGeometry);function cloneUniforms(src){var dst={};for(var u in src){dst[u]={};for(var p in src[u]){var _property2=src[u][p];if(_property2&&(_property2.isColor||_property2.isMatrix3||_property2.isMatrix4||_property2.isVector2||_property2.isVector3||_property2.isVector4||_property2.isTexture)){dst[u][p]=_property2.clone();}else if(Array.isArray(_property2)){dst[u][p]=_property2.slice();}else{dst[u][p]=_property2;}}}return dst;}function mergeUniforms(uniforms){var merged={};for(var u=0;u<uniforms.length;u++){var _tmp=cloneUniforms(uniforms[u]);for(var p in _tmp){merged[p]=_tmp[p];}}return merged;}\nvar UniformsUtils={clone:cloneUniforms,merge:mergeUniforms};var default_vertex=\"void main() {\\n\\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\\n}\";var default_fragment=\"void main() {\\n\\tgl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );\\n}\";function ShaderMaterial(parameters){Material.call(this);this.type='ShaderMaterial';this.defines={};this.uniforms={};this.vertexShader=default_vertex;this.fragmentShader=default_fragment;this.linewidth=1;this.wireframe=false;this.wireframeLinewidth=1;this.fog=false;this.lights=false;this.clipping=false;this.skinning=false;this.morphTargets=false;this.morphNormals=false;this.extensions={derivatives:false,fragDepth:false,drawBuffers:false,shaderTextureLOD:false};this.defaultAttributeValues={'color':[1,1,1],'uv':[0,0],'uv2':[0,0]};this.index0AttributeName=undefined;this.uniformsNeedUpdate=false;this.glslVersion=null;if(parameters!==undefined){if(parameters.attributes!==undefined){console.error('THREE.ShaderMaterial: attributes should now be defined in THREE.BufferGeometry instead.');}this.setValues(parameters);}}ShaderMaterial.prototype=Object.create(Material.prototype);ShaderMaterial.prototype.constructor=ShaderMaterial;ShaderMaterial.prototype.isShaderMaterial=true;ShaderMaterial.prototype.copy=function(source){Material.prototype.copy.call(this,source);this.fragmentShader=source.fragmentShader;this.vertexShader=source.vertexShader;this.uniforms=cloneUniforms(source.uniforms);this.defines=Object.assign({},source.defines);this.wireframe=source.wireframe;this.wireframeLinewidth=source.wireframeLinewidth;this.lights=source.lights;this.clipping=source.clipping;this.skinning=source.skinning;this.morphTargets=source.morphTargets;this.morphNormals=source.morphNormals;this.extensions=Object.assign({},source.extensions);this.glslVersion=source.glslVersion;return this;};ShaderMaterial.prototype.toJSON=function(meta){var data=Material.prototype.toJSON.call(this,meta);data.glslVersion=this.glslVersion;data.uniforms={};for(var name in this.uniforms){var uniform=this.uniforms[name];var value=uniform.value;if(value&&value.isTexture){data.uniforms[name]={type:'t',value:value.toJSON(meta).uuid};}else if(value&&value.isColor){data.uniforms[name]={type:'c',value:value.getHex()};}else if(value&&value.isVector2){data.uniforms[name]={type:'v2',value:value.toArray()};}else if(value&&value.isVector3){data.uniforms[name]={type:'v3',value:value.toArray()};}else if(value&&value.isVector4){data.uniforms[name]={type:'v4',value:value.toArray()};}else if(value&&value.isMatrix3){data.uniforms[name]={type:'m3',value:value.toArray()};}else if(value&&value.isMatrix4){data.uniforms[name]={type:'m4',value:value.toArray()};}else{data.uniforms[name]={value:value};}}if(Object.keys(this.defines).length>0)data.defines=this.defines;data.vertexShader=this.vertexShader;data.fragmentShader=this.fragmentShader;var extensions={};for(var key in this.extensions){if(this.extensions[key]===true)extensions[key]=true;}if(Object.keys(extensions).length>0)data.extensions=extensions;return data;};function Camera(){Object3D.call(this);this.type='Camera';this.matrixWorldInverse=new Matrix4();this.projectionMatrix=new Matrix4();this.projectionMatrixInverse=new Matrix4();}Camera.prototype=Object.assign(Object.create(Object3D.prototype),{constructor:Camera,isCamera:true,copy:function copy(source,recursive){Object3D.prototype.copy.call(this,source,recursive);this.matrixWorldInverse.copy(source.matrixWorldInverse);this.projectionMatrix.copy(source.projectionMatrix);this.projectionMatrixInverse.copy(source.projectionMatrixInverse);return this;},getWorldDirection:function getWorldDirection(target){if(target===undefined){console.warn('THREE.Camera: .getWorldDirection() target is now required');target=new Vector3();}this.updateMatrixWorld(true);var e=this.matrixWorld.elements;return target.set(-e[8],-e[9],-e[10]).normalize();},updateMatrixWorld:function updateMatrixWorld(force){Object3D.prototype.updateMatrixWorld.call(this,force);this.matrixWorldInverse.getInverse(this.matrixWorld);},updateWorldMatrix:function updateWorldMatrix(updateParents,updateChildren){Object3D.prototype.updateWorldMatrix.call(this,updateParents,updateChildren);this.matrixWorldInverse.getInverse(this.matrixWorld);},clone:function clone(){return new this.constructor().copy(this);}});function PerspectiveCamera(fov,aspect,near,far){Camera.call(this);this.type='PerspectiveCamera';this.fov=fov!==undefined?fov:50;this.zoom=1;this.near=near!==undefined?near:0.1;this.far=far!==undefined?far:2000;this.focus=10;this.aspect=aspect!==undefined?aspect:1;this.view=null;this.filmGauge=35;this.filmOffset=0;this.updateProjectionMatrix();}PerspectiveCamera.prototype=Object.assign(Object.create(Camera.prototype),{constructor:PerspectiveCamera,isPerspectiveCamera:true,copy:function copy(source,recursive){Camera.prototype.copy.call(this,source,recursive);this.fov=source.fov;this.zoom=source.zoom;this.near=source.near;this.far=source.far;this.focus=source.focus;this.aspect=source.aspect;this.view=source.view===null?null:Object.assign({},source.view);this.filmGauge=source.filmGauge;this.filmOffset=source.filmOffset;return this;},setFocalLength:function setFocalLength(focalLength){var vExtentSlope=0.5*this.getFilmHeight()/focalLength;this.fov=MathUtils.RAD2DEG*2*Math.atan(vExtentSlope);this.updateProjectionMatrix();},getFocalLength:function getFocalLength(){var vExtentSlope=Math.tan(MathUtils.DEG2RAD*0.5*this.fov);return 0.5*this.getFilmHeight()/vExtentSlope;},getEffectiveFOV:function getEffectiveFOV(){return MathUtils.RAD2DEG*2*Math.atan(Math.tan(MathUtils.DEG2RAD*0.5*this.fov)/this.zoom);},getFilmWidth:function getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1);},getFilmHeight:function getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1);},setViewOffset:function setViewOffset(fullWidth,fullHeight,x,y,width,height){this.aspect=fullWidth/fullHeight;if(this.view===null){this.view={enabled:true,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1};}this.view.enabled=true;this.view.fullWidth=fullWidth;this.view.fullHeight=fullHeight;this.view.offsetX=x;this.view.offsetY=y;this.view.width=width;this.view.height=height;this.updateProjectionMatrix();},clearViewOffset:function clearViewOffset(){if(this.view!==null){this.view.enabled=false;}this.updateProjectionMatrix();},updateProjectionMatrix:function updateProjectionMatrix(){var near=this.near;var top=near*Math.tan(MathUtils.DEG2RAD*0.5*this.fov)/this.zoom;var height=2*top;var width=this.aspect*height;var left=-0.5*width;var view=this.view;if(this.view!==null&&this.view.enabled){var fullWidth=view.fullWidth,fullHeight=view.fullHeight;left+=view.offsetX*width/fullWidth;top-=view.offsetY*height/fullHeight;width*=view.width/fullWidth;height*=view.height/fullHeight;}var skew=this.filmOffset;if(skew!==0)left+=near*skew/this.getFilmWidth();this.projectionMatrix.makePerspective(left,left+width,top,top-height,near,this.far);this.projectionMatrixInverse.getInverse(this.projectionMatrix);},toJSON:function toJSON(meta){var data=Object3D.prototype.toJSON.call(this,meta);data.object.fov=this.fov;data.object.zoom=this.zoom;data.object.near=this.near;data.object.far=this.far;data.object.focus=this.focus;data.object.aspect=this.aspect;if(this.view!==null)data.object.view=Object.assign({},this.view);data.object.filmGauge=this.filmGauge;data.object.filmOffset=this.filmOffset;return data;}});var fov=90,aspect=1;function CubeCamera(near,far,renderTarget){Object3D.call(this);this.type='CubeCamera';if(renderTarget.isWebGLCubeRenderTarget!==true){console.error('THREE.CubeCamera: The constructor now expects an instance of WebGLCubeRenderTarget as third parameter.');return;}this.renderTarget=renderTarget;var cameraPX=new PerspectiveCamera(fov,aspect,near,far);cameraPX.layers=this.layers;cameraPX.up.set(0,-1,0);cameraPX.lookAt(new Vector3(1,0,0));this.add(cameraPX);var cameraNX=new PerspectiveCamera(fov,aspect,near,far);cameraNX.layers=this.layers;cameraNX.up.set(0,-1,0);cameraNX.lookAt(new Vector3(-1,0,0));this.add(cameraNX);var cameraPY=new PerspectiveCamera(fov,aspect,near,far);cameraPY.layers=this.layers;cameraPY.up.set(0,0,1);cameraPY.lookAt(new Vector3(0,1,0));this.add(cameraPY);var cameraNY=new PerspectiveCamera(fov,aspect,near,far);cameraNY.layers=this.layers;cameraNY.up.set(0,0,-1);cameraNY.lookAt(new Vector3(0,-1,0));this.add(cameraNY);var cameraPZ=new PerspectiveCamera(fov,aspect,near,far);cameraPZ.layers=this.layers;cameraPZ.up.set(0,-1,0);cameraPZ.lookAt(new Vector3(0,0,1));this.add(cameraPZ);var cameraNZ=new PerspectiveCamera(fov,aspect,near,far);cameraNZ.layers=this.layers;cameraNZ.up.set(0,-1,0);cameraNZ.lookAt(new Vector3(0,0,-1));this.add(cameraNZ);this.update=function(renderer,scene){if(this.parent===null)this.updateMatrixWorld();var currentXrEnabled=renderer.xr.enabled;var currentRenderTarget=renderer.getRenderTarget();renderer.xr.enabled=false;var generateMipmaps=renderTarget.texture.generateMipmaps;renderTarget.texture.generateMipmaps=false;renderer.setRenderTarget(renderTarget,0);renderer.render(scene,cameraPX);renderer.setRenderTarget(renderTarget,1);renderer.render(scene,cameraNX);renderer.setRenderTarget(renderTarget,2);renderer.render(scene,cameraPY);renderer.setRenderTarget(renderTarget,3);renderer.render(scene,cameraNY);renderer.setRenderTarget(renderTarget,4);renderer.render(scene,cameraPZ);renderTarget.texture.generateMipmaps=generateMipmaps;renderer.setRenderTarget(renderTarget,5);renderer.render(scene,cameraNZ);renderer.setRenderTarget(currentRenderTarget);renderer.xr.enabled=currentXrEnabled;};this.clear=function(renderer,color,depth,stencil){var currentRenderTarget=renderer.getRenderTarget();for(var _i62=0;_i62<6;_i62++){renderer.setRenderTarget(renderTarget,_i62);renderer.clear(color,depth,stencil);}renderer.setRenderTarget(currentRenderTarget);};}CubeCamera.prototype=Object.create(Object3D.prototype);CubeCamera.prototype.constructor=CubeCamera;function CubeTexture(images,mapping,wrapS,wrapT,magFilter,minFilter,format,type,anisotropy,encoding){images=images!==undefined?images:[];mapping=mapping!==undefined?mapping:CubeReflectionMapping;format=format!==undefined?format:RGBFormat;Texture.call(this,images,mapping,wrapS,wrapT,magFilter,minFilter,format,type,anisotropy,encoding);this.flipY=false;this._needsFlipEnvMap=true;}CubeTexture.prototype=Object.create(Texture.prototype);CubeTexture.prototype.constructor=CubeTexture;CubeTexture.prototype.isCubeTexture=true;Object.defineProperty(CubeTexture.prototype,'images',{get:function get(){return this.image;},set:function set(value){this.image=value;}});function WebGLCubeRenderTarget(size,options,dummy){if(Number.isInteger(options)){console.warn('THREE.WebGLCubeRenderTarget: constructor signature is now WebGLCubeRenderTarget( size, options )');options=dummy;}WebGLRenderTarget.call(this,size,size,options);options=options||{};this.texture=new CubeTexture(undefined,options.mapping,options.wrapS,options.wrapT,options.magFilter,options.minFilter,options.format,options.type,options.anisotropy,options.encoding);this.texture._needsFlipEnvMap=false;}WebGLCubeRenderTarget.prototype=Object.create(WebGLRenderTarget.prototype);WebGLCubeRenderTarget.prototype.constructor=WebGLCubeRenderTarget;WebGLCubeRenderTarget.prototype.isWebGLCubeRenderTarget=true;WebGLCubeRenderTarget.prototype.fromEquirectangularTexture=function(renderer,texture){this.texture.type=texture.type;this.texture.format=RGBAFormat;this.texture.encoding=texture.encoding;this.texture.generateMipmaps=texture.generateMipmaps;this.texture.minFilter=texture.minFilter;this.texture.magFilter=texture.magFilter;var shader={uniforms:{tEquirect:{value:null}},vertexShader:\"\\n\\n\\t\\t\\tvarying vec3 vWorldDirection;\\n\\n\\t\\t\\tvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\\n\\n\\t\\t\\t\\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\\n\\n\\t\\t\\t}\\n\\n\\t\\t\\tvoid main() {\\n\\n\\t\\t\\t\\tvWorldDirection = transformDirection( position, modelMatrix );\\n\\n\\t\\t\\t\\t#include <begin_vertex>\\n\\t\\t\\t\\t#include <project_vertex>\\n\\n\\t\\t\\t}\\n\\t\\t\",fragmentShader:\"\\n\\n\\t\\t\\tuniform sampler2D tEquirect;\\n\\n\\t\\t\\tvarying vec3 vWorldDirection;\\n\\n\\t\\t\\t#include <common>\\n\\n\\t\\t\\tvoid main() {\\n\\n\\t\\t\\t\\tvec3 direction = normalize( vWorldDirection );\\n\\n\\t\\t\\t\\tvec2 sampleUV = equirectUv( direction );\\n\\n\\t\\t\\t\\tgl_FragColor = texture2D( tEquirect, sampleUV );\\n\\n\\t\\t\\t}\\n\\t\\t\"};var geometry=new BoxBufferGeometry(5,5,5);var material=new ShaderMaterial({name:'CubemapFromEquirect',uniforms:cloneUniforms(shader.uniforms),vertexShader:shader.vertexShader,fragmentShader:shader.fragmentShader,side:BackSide,blending:NoBlending});material.uniforms.tEquirect.value=texture;var mesh=new Mesh(geometry,material);var currentMinFilter=texture.minFilter;if(texture.minFilter===LinearMipmapLinearFilter)texture.minFilter=LinearFilter;var camera=new CubeCamera(1,10,this);camera.update(renderer,mesh);texture.minFilter=currentMinFilter;mesh.geometry.dispose();mesh.material.dispose();return this;};function DataTexture(data,width,height,format,type,mapping,wrapS,wrapT,magFilter,minFilter,anisotropy,encoding){Texture.call(this,null,mapping,wrapS,wrapT,magFilter,minFilter,format,type,anisotropy,encoding);this.image={data:data||null,width:width||1,height:height||1};this.magFilter=magFilter!==undefined?magFilter:NearestFilter;this.minFilter=minFilter!==undefined?minFilter:NearestFilter;this.generateMipmaps=false;this.flipY=false;this.unpackAlignment=1;this.needsUpdate=true;}DataTexture.prototype=Object.create(Texture.prototype);DataTexture.prototype.constructor=DataTexture;DataTexture.prototype.isDataTexture=true;var _sphere$1=/*@__PURE__*/ new Sphere();var _vector$5=/*@__PURE__*/ new Vector3();var Frustum=function(){function Frustum(p0,p1,p2,p3,p4,p5){_classCallCheck(this,Frustum);this.planes=[p0!==undefined?p0:new Plane(),p1!==undefined?p1:new Plane(),p2!==undefined?p2:new Plane(),p3!==undefined?p3:new Plane(),p4!==undefined?p4:new Plane(),p5!==undefined?p5:new Plane()];}_createClass(Frustum,[{key:\"set\",value:function set(p0,p1,p2,p3,p4,p5){var planes=this.planes;planes[0].copy(p0);planes[1].copy(p1);planes[2].copy(p2);planes[3].copy(p3);planes[4].copy(p4);planes[5].copy(p5);return this;}},{key:\"clone\",value:function clone(){return new this.constructor().copy(this);}},{key:\"copy\",value:function copy(frustum){var planes=this.planes;for(var _i63=0;_i63<6;_i63++){planes[_i63].copy(frustum.planes[_i63]);}return this;}},{key:\"setFromProjectionMatrix\",value:function setFromProjectionMatrix(m){var planes=this.planes;var me=m.elements;var me0=me[0],me1=me[1],me2=me[2],me3=me[3];var me4=me[4],me5=me[5],me6=me[6],me7=me[7];var me8=me[8],me9=me[9],me10=me[10],me11=me[11];var me12=me[12],me13=me[13],me14=me[14],me15=me[15];planes[0].setComponents(me3-me0,me7-me4,me11-me8,me15-me12).normalize();planes[1].setComponents(me3+me0,me7+me4,me11+me8,me15+me12).normalize();planes[2].setComponents(me3+me1,me7+me5,me11+me9,me15+me13).normalize();planes[3].setComponents(me3-me1,me7-me5,me11-me9,me15-me13).normalize();planes[4].setComponents(me3-me2,me7-me6,me11-me10,me15-me14).normalize();planes[5].setComponents(me3+me2,me7+me6,me11+me10,me15+me14).normalize();return this;}},{key:\"intersectsObject\",value:function intersectsObject(object){var geometry=object.geometry;if(geometry.boundingSphere===null)geometry.computeBoundingSphere();_sphere$1.copy(geometry.boundingSphere).applyMatrix4(object.matrixWorld);return this.intersectsSphere(_sphere$1);}},{key:\"intersectsSprite\",value:function intersectsSprite(sprite){_sphere$1.center.set(0,0,0);_sphere$1.radius=0.7071067811865476;_sphere$1.applyMatrix4(sprite.matrixWorld);return this.intersectsSphere(_sphere$1);}},{key:\"intersectsSphere\",value:function intersectsSphere(sphere){var planes=this.planes;var center=sphere.center;var negRadius=-sphere.radius;for(var _i64=0;_i64<6;_i64++){var distance=planes[_i64].distanceToPoint(center);if(distance<negRadius){return false;}}return true;}},{key:\"intersectsBox\",value:function intersectsBox(box){var planes=this.planes;for(var _i65=0;_i65<6;_i65++){var plane=planes[_i65];_vector$5.x=plane.normal.x>0?box.max.x:box.min.x;_vector$5.y=plane.normal.y>0?box.max.y:box.min.y;_vector$5.z=plane.normal.z>0?box.max.z:box.min.z;if(plane.distanceToPoint(_vector$5)<0){return false;}}return true;}},{key:\"containsPoint\",value:function containsPoint(point){var planes=this.planes;for(var _i66=0;_i66<6;_i66++){if(planes[_i66].distanceToPoint(point)<0){return false;}}return true;}}]);return Frustum;}();function WebGLAnimation(){var context=null;var isAnimating=false;var animationLoop=null;var requestId=null;function onAnimationFrame(time,frame){animationLoop(time,frame);requestId=context.requestAnimationFrame(onAnimationFrame);}return{start:function start(){if(isAnimating===true)return;if(animationLoop===null)return;requestId=context.requestAnimationFrame(onAnimationFrame);isAnimating=true;},stop:function stop(){context.cancelAnimationFrame(requestId);isAnimating=false;},setAnimationLoop:function setAnimationLoop(callback){animationLoop=callback;},setContext:function setContext(value){context=value;}};}function WebGLAttributes(gl,capabilities){var isWebGL2=capabilities.isWebGL2;var buffers=new WeakMap();function createBuffer(attribute,bufferType){var array=attribute.array;var usage=attribute.usage;var buffer=gl.createBuffer();gl.bindBuffer(bufferType,buffer);gl.bufferData(bufferType,array,usage);attribute.onUploadCallback();var type=5126;if(_instanceof(array,Float32Array)){type=5126;}else if(_instanceof(array,Float64Array)){console.warn('THREE.WebGLAttributes: Unsupported data buffer format: Float64Array.');}else if(_instanceof(array,Uint16Array)){type=5123;}else if(_instanceof(array,Int16Array)){type=5122;}else if(_instanceof(array,Uint32Array)){type=5125;}else if(_instanceof(array,Int32Array)){type=5124;}else if(_instanceof(array,Int8Array)){type=5120;}else if(_instanceof(array,Uint8Array)){type=5121;}return{buffer:buffer,type:type,bytesPerElement:array.BYTES_PER_ELEMENT,version:attribute.version};}function updateBuffer(buffer,attribute,bufferType){var array=attribute.array;var updateRange=attribute.updateRange;gl.bindBuffer(bufferType,buffer);if(updateRange.count===-1){gl.bufferSubData(bufferType,0,array);}else{if(isWebGL2){gl.bufferSubData(bufferType,updateRange.offset*array.BYTES_PER_ELEMENT,array,updateRange.offset,updateRange.count);}else{gl.bufferSubData(bufferType,updateRange.offset*array.BYTES_PER_ELEMENT,array.subarray(updateRange.offset,updateRange.offset+updateRange.count));}updateRange.count=-1;}}\nfunction get(attribute){if(attribute.isInterleavedBufferAttribute)attribute=attribute.data;return buffers.get(attribute);}function remove(attribute){if(attribute.isInterleavedBufferAttribute)attribute=attribute.data;var data=buffers.get(attribute);if(data){gl.deleteBuffer(data.buffer);buffers.delete(attribute);}}function update(attribute,bufferType){if(attribute.isGLBufferAttribute){var cached=buffers.get(attribute);if(!cached||cached.version<attribute.version){buffers.set(attribute,{buffer:attribute.buffer,type:attribute.type,bytesPerElement:attribute.elementSize,version:attribute.version});}return;}if(attribute.isInterleavedBufferAttribute)attribute=attribute.data;var data=buffers.get(attribute);if(data===undefined){buffers.set(attribute,createBuffer(attribute,bufferType));}else if(data.version<attribute.version){updateBuffer(data.buffer,attribute,bufferType);data.version=attribute.version;}}return{get:get,remove:remove,update:update};}var PlaneBufferGeometry=function(_BufferGeometry2){_inherits(PlaneBufferGeometry,_BufferGeometry2);var _super3=_createSuper(PlaneBufferGeometry);function PlaneBufferGeometry(width,height,widthSegments,heightSegments){var _this10;_classCallCheck(this,PlaneBufferGeometry);_this10=_super3.call(this);_this10.type='PlaneBufferGeometry';_this10.parameters={width:width,height:height,widthSegments:widthSegments,heightSegments:heightSegments};width=width||1;height=height||1;var width_half=width/2;var height_half=height/2;var gridX=Math.floor(widthSegments)||1;var gridY=Math.floor(heightSegments)||1;var gridX1=gridX+1;var gridY1=gridY+1;var segment_width=width/gridX;var segment_height=height/gridY;var indices=[];var vertices=[];var normals=[];var uvs=[];for(var iy=0;iy<gridY1;iy++){var y=iy*segment_height-height_half;for(var ix=0;ix<gridX1;ix++){var x=ix*segment_width-width_half;vertices.push(x,-y,0);normals.push(0,0,1);uvs.push(ix/gridX);uvs.push(1-iy/gridY);}}\nfor(var _iy2=0;_iy2<gridY;_iy2++){for(var _ix2=0;_ix2<gridX;_ix2++){var a=_ix2+gridX1*_iy2;var b=_ix2+gridX1*(_iy2+1);var c=_ix2+1+gridX1*(_iy2+1);var d=_ix2+1+gridX1*_iy2;indices.push(a,b,d);indices.push(b,c,d);}}\n_this10.setIndex(indices);_this10.setAttribute('position',new Float32BufferAttribute(vertices,3));_this10.setAttribute('normal',new Float32BufferAttribute(normals,3));_this10.setAttribute('uv',new Float32BufferAttribute(uvs,2));return _this10;}return PlaneBufferGeometry;}(BufferGeometry);var alphamap_fragment=\"#ifdef USE_ALPHAMAP\\n\\tdiffuseColor.a *= texture2D( alphaMap, vUv ).g;\\n#endif\";var alphamap_pars_fragment=\"#ifdef USE_ALPHAMAP\\n\\tuniform sampler2D alphaMap;\\n#endif\";var alphatest_fragment=\"#ifdef ALPHATEST\\n\\tif ( diffuseColor.a < ALPHATEST ) discard;\\n#endif\";var aomap_fragment=\"#ifdef USE_AOMAP\\n\\tfloat ambientOcclusion = ( texture2D( aoMap, vUv2 ).r - 1.0 ) * aoMapIntensity + 1.0;\\n\\treflectedLight.indirectDiffuse *= ambientOcclusion;\\n\\t#if defined( USE_ENVMAP ) && defined( STANDARD )\\n\\t\\tfloat dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );\\n\\t\\treflectedLight.indirectSpecular *= computeSpecularOcclusion( dotNV, ambientOcclusion, material.specularRoughness );\\n\\t#endif\\n#endif\";var aomap_pars_fragment=\"#ifdef USE_AOMAP\\n\\tuniform sampler2D aoMap;\\n\\tuniform float aoMapIntensity;\\n#endif\";var begin_vertex=\"vec3 transformed = vec3( position );\";var beginnormal_vertex=\"vec3 objectNormal = vec3( normal );\\n#ifdef USE_TANGENT\\n\\tvec3 objectTangent = vec3( tangent.xyz );\\n#endif\";var bsdfs=\"vec2 integrateSpecularBRDF( const in float dotNV, const in float roughness ) {\\n\\tconst vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );\\n\\tconst vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );\\n\\tvec4 r = roughness * c0 + c1;\\n\\tfloat a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;\\n\\treturn vec2( -1.04, 1.04 ) * a004 + r.zw;\\n}\\nfloat punctualLightIntensityToIrradianceFactor( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {\\n#if defined ( PHYSICALLY_CORRECT_LIGHTS )\\n\\tfloat distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\\n\\tif( cutoffDistance > 0.0 ) {\\n\\t\\tdistanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\\n\\t}\\n\\treturn distanceFalloff;\\n#else\\n\\tif( cutoffDistance > 0.0 && decayExponent > 0.0 ) {\\n\\t\\treturn pow( saturate( -lightDistance / cutoffDistance + 1.0 ), decayExponent );\\n\\t}\\n\\treturn 1.0;\\n#endif\\n}\\nvec3 BRDF_Diffuse_Lambert( const in vec3 diffuseColor ) {\\n\\treturn RECIPROCAL_PI * diffuseColor;\\n}\\nvec3 F_Schlick( const in vec3 specularColor, const in float dotLH ) {\\n\\tfloat fresnel = exp2( ( -5.55473 * dotLH - 6.98316 ) * dotLH );\\n\\treturn ( 1.0 - specularColor ) * fresnel + specularColor;\\n}\\nvec3 F_Schlick_RoughnessDependent( const in vec3 F0, const in float dotNV, const in float roughness ) {\\n\\tfloat fresnel = exp2( ( -5.55473 * dotNV - 6.98316 ) * dotNV );\\n\\tvec3 Fr = max( vec3( 1.0 - roughness ), F0 ) - F0;\\n\\treturn Fr * fresnel + F0;\\n}\\nfloat G_GGX_Smith( const in float alpha, const in float dotNL, const in float dotNV ) {\\n\\tfloat a2 = pow2( alpha );\\n\\tfloat gl = dotNL + sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\\n\\tfloat gv = dotNV + sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\\n\\treturn 1.0 / ( gl * gv );\\n}\\nfloat G_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {\\n\\tfloat a2 = pow2( alpha );\\n\\tfloat gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\\n\\tfloat gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\\n\\treturn 0.5 / max( gv + gl, EPSILON );\\n}\\nfloat D_GGX( const in float alpha, const in float dotNH ) {\\n\\tfloat a2 = pow2( alpha );\\n\\tfloat denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;\\n\\treturn RECIPROCAL_PI * a2 / pow2( denom );\\n}\\nvec3 BRDF_Specular_GGX( const in IncidentLight incidentLight, const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float roughness ) {\\n\\tfloat alpha = pow2( roughness );\\n\\tvec3 halfDir = normalize( incidentLight.direction + viewDir );\\n\\tfloat dotNL = saturate( dot( normal, incidentLight.direction ) );\\n\\tfloat dotNV = saturate( dot( normal, viewDir ) );\\n\\tfloat dotNH = saturate( dot( normal, halfDir ) );\\n\\tfloat dotLH = saturate( dot( incidentLight.direction, halfDir ) );\\n\\tvec3 F = F_Schlick( specularColor, dotLH );\\n\\tfloat G = G_GGX_SmithCorrelated( alpha, dotNL, dotNV );\\n\\tfloat D = D_GGX( alpha, dotNH );\\n\\treturn F * ( G * D );\\n}\\nvec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {\\n\\tconst float LUT_SIZE = 64.0;\\n\\tconst float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;\\n\\tconst float LUT_BIAS = 0.5 / LUT_SIZE;\\n\\tfloat dotNV = saturate( dot( N, V ) );\\n\\tvec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );\\n\\tuv = uv * LUT_SCALE + LUT_BIAS;\\n\\treturn uv;\\n}\\nfloat LTC_ClippedSphereFormFactor( const in vec3 f ) {\\n\\tfloat l = length( f );\\n\\treturn max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );\\n}\\nvec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {\\n\\tfloat x = dot( v1, v2 );\\n\\tfloat y = abs( x );\\n\\tfloat a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;\\n\\tfloat b = 3.4175940 + ( 4.1616724 + y ) * y;\\n\\tfloat v = a / b;\\n\\tfloat theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;\\n\\treturn cross( v1, v2 ) * theta_sintheta;\\n}\\nvec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {\\n\\tvec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];\\n\\tvec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];\\n\\tvec3 lightNormal = cross( v1, v2 );\\n\\tif( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );\\n\\tvec3 T1, T2;\\n\\tT1 = normalize( V - N * dot( V, N ) );\\n\\tT2 = - cross( N, T1 );\\n\\tmat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) );\\n\\tvec3 coords[ 4 ];\\n\\tcoords[ 0 ] = mat * ( rectCoords[ 0 ] - P );\\n\\tcoords[ 1 ] = mat * ( rectCoords[ 1 ] - P );\\n\\tcoords[ 2 ] = mat * ( rectCoords[ 2 ] - P );\\n\\tcoords[ 3 ] = mat * ( rectCoords[ 3 ] - P );\\n\\tcoords[ 0 ] = normalize( coords[ 0 ] );\\n\\tcoords[ 1 ] = normalize( coords[ 1 ] );\\n\\tcoords[ 2 ] = normalize( coords[ 2 ] );\\n\\tcoords[ 3 ] = normalize( coords[ 3 ] );\\n\\tvec3 vectorFormFactor = vec3( 0.0 );\\n\\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );\\n\\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );\\n\\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );\\n\\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );\\n\\tfloat result = LTC_ClippedSphereFormFactor( vectorFormFactor );\\n\\treturn vec3( result );\\n}\\nvec3 BRDF_Specular_GGX_Environment( const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float roughness ) {\\n\\tfloat dotNV = saturate( dot( normal, viewDir ) );\\n\\tvec2 brdf = integrateSpecularBRDF( dotNV, roughness );\\n\\treturn specularColor * brdf.x + brdf.y;\\n}\\nvoid BRDF_Specular_Multiscattering_Environment( const in GeometricContext geometry, const in vec3 specularColor, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\\n\\tfloat dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );\\n\\tvec3 F = F_Schlick_RoughnessDependent( specularColor, dotNV, roughness );\\n\\tvec2 brdf = integrateSpecularBRDF( dotNV, roughness );\\n\\tvec3 FssEss = F * brdf.x + brdf.y;\\n\\tfloat Ess = brdf.x + brdf.y;\\n\\tfloat Ems = 1.0 - Ess;\\n\\tvec3 Favg = specularColor + ( 1.0 - specularColor ) * 0.047619;\\tvec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );\\n\\tsingleScatter += FssEss;\\n\\tmultiScatter += Fms * Ems;\\n}\\nfloat G_BlinnPhong_Implicit( ) {\\n\\treturn 0.25;\\n}\\nfloat D_BlinnPhong( const in float shininess, const in float dotNH ) {\\n\\treturn RECIPROCAL_PI * ( shininess * 0.5 + 1.0 ) * pow( dotNH, shininess );\\n}\\nvec3 BRDF_Specular_BlinnPhong( const in IncidentLight incidentLight, const in GeometricContext geometry, const in vec3 specularColor, const in float shininess ) {\\n\\tvec3 halfDir = normalize( incidentLight.direction + geometry.viewDir );\\n\\tfloat dotNH = saturate( dot( geometry.normal, halfDir ) );\\n\\tfloat dotLH = saturate( dot( incidentLight.direction, halfDir ) );\\n\\tvec3 F = F_Schlick( specularColor, dotLH );\\n\\tfloat G = G_BlinnPhong_Implicit( );\\n\\tfloat D = D_BlinnPhong( shininess, dotNH );\\n\\treturn F * ( G * D );\\n}\\nfloat GGXRoughnessToBlinnExponent( const in float ggxRoughness ) {\\n\\treturn ( 2.0 / pow2( ggxRoughness + 0.0001 ) - 2.0 );\\n}\\nfloat BlinnExponentToGGXRoughness( const in float blinnExponent ) {\\n\\treturn sqrt( 2.0 / ( blinnExponent + 2.0 ) );\\n}\\n#if defined( USE_SHEEN )\\nfloat D_Charlie(float roughness, float NoH) {\\n\\tfloat invAlpha = 1.0 / roughness;\\n\\tfloat cos2h = NoH * NoH;\\n\\tfloat sin2h = max(1.0 - cos2h, 0.0078125);\\treturn (2.0 + invAlpha) * pow(sin2h, invAlpha * 0.5) / (2.0 * PI);\\n}\\nfloat V_Neubelt(float NoV, float NoL) {\\n\\treturn saturate(1.0 / (4.0 * (NoL + NoV - NoL * NoV)));\\n}\\nvec3 BRDF_Specular_Sheen( const in float roughness, const in vec3 L, const in GeometricContext geometry, vec3 specularColor ) {\\n\\tvec3 N = geometry.normal;\\n\\tvec3 V = geometry.viewDir;\\n\\tvec3 H = normalize( V + L );\\n\\tfloat dotNH = saturate( dot( N, H ) );\\n\\treturn specularColor * D_Charlie( roughness, dotNH ) * V_Neubelt( dot(N, V), dot(N, L) );\\n}\\n#endif\";var bumpmap_pars_fragment=\"#ifdef USE_BUMPMAP\\n\\tuniform sampler2D bumpMap;\\n\\tuniform float bumpScale;\\n\\tvec2 dHdxy_fwd() {\\n\\t\\tvec2 dSTdx = dFdx( vUv );\\n\\t\\tvec2 dSTdy = dFdy( vUv );\\n\\t\\tfloat Hll = bumpScale * texture2D( bumpMap, vUv ).x;\\n\\t\\tfloat dBx = bumpScale * texture2D( bumpMap, vUv + dSTdx ).x - Hll;\\n\\t\\tfloat dBy = bumpScale * texture2D( bumpMap, vUv + dSTdy ).x - Hll;\\n\\t\\treturn vec2( dBx, dBy );\\n\\t}\\n\\tvec3 perturbNormalArb( vec3 surf_pos, vec3 surf_norm, vec2 dHdxy ) {\\n\\t\\tvec3 vSigmaX = vec3( dFdx( surf_pos.x ), dFdx( surf_pos.y ), dFdx( surf_pos.z ) );\\n\\t\\tvec3 vSigmaY = vec3( dFdy( surf_pos.x ), dFdy( surf_pos.y ), dFdy( surf_pos.z ) );\\n\\t\\tvec3 vN = surf_norm;\\n\\t\\tvec3 R1 = cross( vSigmaY, vN );\\n\\t\\tvec3 R2 = cross( vN, vSigmaX );\\n\\t\\tfloat fDet = dot( vSigmaX, R1 );\\n\\t\\tfDet *= ( float( gl_FrontFacing ) * 2.0 - 1.0 );\\n\\t\\tvec3 vGrad = sign( fDet ) * ( dHdxy.x * R1 + dHdxy.y * R2 );\\n\\t\\treturn normalize( abs( fDet ) * surf_norm - vGrad );\\n\\t}\\n#endif\";var clipping_planes_fragment=\"#if NUM_CLIPPING_PLANES > 0\\n\\tvec4 plane;\\n\\t#pragma unroll_loop_start\\n\\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\\n\\t\\tplane = clippingPlanes[ i ];\\n\\t\\tif ( dot( vClipPosition, plane.xyz ) > plane.w ) discard;\\n\\t}\\n\\t#pragma unroll_loop_end\\n\\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\\n\\t\\tbool clipped = true;\\n\\t\\t#pragma unroll_loop_start\\n\\t\\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\\n\\t\\t\\tplane = clippingPlanes[ i ];\\n\\t\\t\\tclipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped;\\n\\t\\t}\\n\\t\\t#pragma unroll_loop_end\\n\\t\\tif ( clipped ) discard;\\n\\t#endif\\n#endif\";var clipping_planes_pars_fragment=\"#if NUM_CLIPPING_PLANES > 0\\n\\tvarying vec3 vClipPosition;\\n\\tuniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];\\n#endif\";var clipping_planes_pars_vertex=\"#if NUM_CLIPPING_PLANES > 0\\n\\tvarying vec3 vClipPosition;\\n#endif\";var clipping_planes_vertex=\"#if NUM_CLIPPING_PLANES > 0\\n\\tvClipPosition = - mvPosition.xyz;\\n#endif\";var color_fragment=\"#ifdef USE_COLOR\\n\\tdiffuseColor.rgb *= vColor;\\n#endif\";var color_pars_fragment=\"#ifdef USE_COLOR\\n\\tvarying vec3 vColor;\\n#endif\";var color_pars_vertex=\"#if defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\\n\\tvarying vec3 vColor;\\n#endif\";var color_vertex=\"#if defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\\n\\tvColor = vec3( 1.0 );\\n#endif\\n#ifdef USE_COLOR\\n\\tvColor.xyz *= color.xyz;\\n#endif\\n#ifdef USE_INSTANCING_COLOR\\n\\tvColor.xyz *= instanceColor.xyz;\\n#endif\";var common=\"#define PI 3.141592653589793\\n#define PI2 6.283185307179586\\n#define PI_HALF 1.5707963267948966\\n#define RECIPROCAL_PI 0.3183098861837907\\n#define RECIPROCAL_PI2 0.15915494309189535\\n#define EPSILON 1e-6\\n#ifndef saturate\\n#define saturate(a) clamp( a, 0.0, 1.0 )\\n#endif\\n#define whiteComplement(a) ( 1.0 - saturate( a ) )\\nfloat pow2( const in float x ) { return x*x; }\\nfloat pow3( const in float x ) { return x*x*x; }\\nfloat pow4( const in float x ) { float x2 = x*x; return x2*x2; }\\nfloat average( const in vec3 color ) { return dot( color, vec3( 0.3333 ) ); }\\nhighp float rand( const in vec2 uv ) {\\n\\tconst highp float a = 12.9898, b = 78.233, c = 43758.5453;\\n\\thighp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );\\n\\treturn fract(sin(sn) * c);\\n}\\n#ifdef HIGH_PRECISION\\n\\tfloat precisionSafeLength( vec3 v ) { return length( v ); }\\n#else\\n\\tfloat max3( vec3 v ) { return max( max( v.x, v.y ), v.z ); }\\n\\tfloat precisionSafeLength( vec3 v ) {\\n\\t\\tfloat maxComponent = max3( abs( v ) );\\n\\t\\treturn length( v / maxComponent ) * maxComponent;\\n\\t}\\n#endif\\nstruct IncidentLight {\\n\\tvec3 color;\\n\\tvec3 direction;\\n\\tbool visible;\\n};\\nstruct ReflectedLight {\\n\\tvec3 directDiffuse;\\n\\tvec3 directSpecular;\\n\\tvec3 indirectDiffuse;\\n\\tvec3 indirectSpecular;\\n};\\nstruct GeometricContext {\\n\\tvec3 position;\\n\\tvec3 normal;\\n\\tvec3 viewDir;\\n#ifdef CLEARCOAT\\n\\tvec3 clearcoatNormal;\\n#endif\\n};\\nvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\\n\\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\\n}\\nvec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {\\n\\treturn normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );\\n}\\nvec3 projectOnPlane(in vec3 point, in vec3 pointOnPlane, in vec3 planeNormal ) {\\n\\tfloat distance = dot( planeNormal, point - pointOnPlane );\\n\\treturn - distance * planeNormal + point;\\n}\\nfloat sideOfPlane( in vec3 point, in vec3 pointOnPlane, in vec3 planeNormal ) {\\n\\treturn sign( dot( point - pointOnPlane, planeNormal ) );\\n}\\nvec3 linePlaneIntersect( in vec3 pointOnLine, in vec3 lineDirection, in vec3 pointOnPlane, in vec3 planeNormal ) {\\n\\treturn lineDirection * ( dot( planeNormal, pointOnPlane - pointOnLine ) / dot( planeNormal, lineDirection ) ) + pointOnLine;\\n}\\nmat3 transposeMat3( const in mat3 m ) {\\n\\tmat3 tmp;\\n\\ttmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );\\n\\ttmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );\\n\\ttmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );\\n\\treturn tmp;\\n}\\nfloat linearToRelativeLuminance( const in vec3 color ) {\\n\\tvec3 weights = vec3( 0.2126, 0.7152, 0.0722 );\\n\\treturn dot( weights, color.rgb );\\n}\\nbool isPerspectiveMatrix( mat4 m ) {\\n\\treturn m[ 2 ][ 3 ] == - 1.0;\\n}\\nvec2 equirectUv( in vec3 dir ) {\\n\\tfloat u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5;\\n\\tfloat v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\\n\\treturn vec2( u, v );\\n}\";var cube_uv_reflection_fragment=\"#ifdef ENVMAP_TYPE_CUBE_UV\\n\\t#define cubeUV_maxMipLevel 8.0\\n\\t#define cubeUV_minMipLevel 4.0\\n\\t#define cubeUV_maxTileSize 256.0\\n\\t#define cubeUV_minTileSize 16.0\\n\\tfloat getFace( vec3 direction ) {\\n\\t\\tvec3 absDirection = abs( direction );\\n\\t\\tfloat face = - 1.0;\\n\\t\\tif ( absDirection.x > absDirection.z ) {\\n\\t\\t\\tif ( absDirection.x > absDirection.y )\\n\\t\\t\\t\\tface = direction.x > 0.0 ? 0.0 : 3.0;\\n\\t\\t\\telse\\n\\t\\t\\t\\tface = direction.y > 0.0 ? 1.0 : 4.0;\\n\\t\\t} else {\\n\\t\\t\\tif ( absDirection.z > absDirection.y )\\n\\t\\t\\t\\tface = direction.z > 0.0 ? 2.0 : 5.0;\\n\\t\\t\\telse\\n\\t\\t\\t\\tface = direction.y > 0.0 ? 1.0 : 4.0;\\n\\t\\t}\\n\\t\\treturn face;\\n\\t}\\n\\tvec2 getUV( vec3 direction, float face ) {\\n\\t\\tvec2 uv;\\n\\t\\tif ( face == 0.0 ) {\\n\\t\\t\\tuv = vec2( direction.z, direction.y ) / abs( direction.x );\\n\\t\\t} else if ( face == 1.0 ) {\\n\\t\\t\\tuv = vec2( - direction.x, - direction.z ) / abs( direction.y );\\n\\t\\t} else if ( face == 2.0 ) {\\n\\t\\t\\tuv = vec2( - direction.x, direction.y ) / abs( direction.z );\\n\\t\\t} else if ( face == 3.0 ) {\\n\\t\\t\\tuv = vec2( - direction.z, direction.y ) / abs( direction.x );\\n\\t\\t} else if ( face == 4.0 ) {\\n\\t\\t\\tuv = vec2( - direction.x, direction.z ) / abs( direction.y );\\n\\t\\t} else {\\n\\t\\t\\tuv = vec2( direction.x, direction.y ) / abs( direction.z );\\n\\t\\t}\\n\\t\\treturn 0.5 * ( uv + 1.0 );\\n\\t}\\n\\tvec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) {\\n\\t\\tfloat face = getFace( direction );\\n\\t\\tfloat filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 );\\n\\t\\tmipInt = max( mipInt, cubeUV_minMipLevel );\\n\\t\\tfloat faceSize = exp2( mipInt );\\n\\t\\tfloat texelSize = 1.0 / ( 3.0 * cubeUV_maxTileSize );\\n\\t\\tvec2 uv = getUV( direction, face ) * ( faceSize - 1.0 );\\n\\t\\tvec2 f = fract( uv );\\n\\t\\tuv += 0.5 - f;\\n\\t\\tif ( face > 2.0 ) {\\n\\t\\t\\tuv.y += faceSize;\\n\\t\\t\\tface -= 3.0;\\n\\t\\t}\\n\\t\\tuv.x += face * faceSize;\\n\\t\\tif ( mipInt < cubeUV_maxMipLevel ) {\\n\\t\\t\\tuv.y += 2.0 * cubeUV_maxTileSize;\\n\\t\\t}\\n\\t\\tuv.y += filterInt * 2.0 * cubeUV_minTileSize;\\n\\t\\tuv.x += 3.0 * max( 0.0, cubeUV_maxTileSize - 2.0 * faceSize );\\n\\t\\tuv *= texelSize;\\n\\t\\tvec3 tl = envMapTexelToLinear( texture2D( envMap, uv ) ).rgb;\\n\\t\\tuv.x += texelSize;\\n\\t\\tvec3 tr = envMapTexelToLinear( texture2D( envMap, uv ) ).rgb;\\n\\t\\tuv.y += texelSize;\\n\\t\\tvec3 br = envMapTexelToLinear( texture2D( envMap, uv ) ).rgb;\\n\\t\\tuv.x -= texelSize;\\n\\t\\tvec3 bl = envMapTexelToLinear( texture2D( envMap, uv ) ).rgb;\\n\\t\\tvec3 tm = mix( tl, tr, f.x );\\n\\t\\tvec3 bm = mix( bl, br, f.x );\\n\\t\\treturn mix( tm, bm, f.y );\\n\\t}\\n\\t#define r0 1.0\\n\\t#define v0 0.339\\n\\t#define m0 - 2.0\\n\\t#define r1 0.8\\n\\t#define v1 0.276\\n\\t#define m1 - 1.0\\n\\t#define r4 0.4\\n\\t#define v4 0.046\\n\\t#define m4 2.0\\n\\t#define r5 0.305\\n\\t#define v5 0.016\\n\\t#define m5 3.0\\n\\t#define r6 0.21\\n\\t#define v6 0.0038\\n\\t#define m6 4.0\\n\\tfloat roughnessToMip( float roughness ) {\\n\\t\\tfloat mip = 0.0;\\n\\t\\tif ( roughness >= r1 ) {\\n\\t\\t\\tmip = ( r0 - roughness ) * ( m1 - m0 ) / ( r0 - r1 ) + m0;\\n\\t\\t} else if ( roughness >= r4 ) {\\n\\t\\t\\tmip = ( r1 - roughness ) * ( m4 - m1 ) / ( r1 - r4 ) + m1;\\n\\t\\t} else if ( roughness >= r5 ) {\\n\\t\\t\\tmip = ( r4 - roughness ) * ( m5 - m4 ) / ( r4 - r5 ) + m4;\\n\\t\\t} else if ( roughness >= r6 ) {\\n\\t\\t\\tmip = ( r5 - roughness ) * ( m6 - m5 ) / ( r5 - r6 ) + m5;\\n\\t\\t} else {\\n\\t\\t\\tmip = - 2.0 * log2( 1.16 * roughness );\\t\\t}\\n\\t\\treturn mip;\\n\\t}\\n\\tvec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) {\\n\\t\\tfloat mip = clamp( roughnessToMip( roughness ), m0, cubeUV_maxMipLevel );\\n\\t\\tfloat mipF = fract( mip );\\n\\t\\tfloat mipInt = floor( mip );\\n\\t\\tvec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt );\\n\\t\\tif ( mipF == 0.0 ) {\\n\\t\\t\\treturn vec4( color0, 1.0 );\\n\\t\\t} else {\\n\\t\\t\\tvec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 );\\n\\t\\t\\treturn vec4( mix( color0, color1, mipF ), 1.0 );\\n\\t\\t}\\n\\t}\\n#endif\";var defaultnormal_vertex=\"vec3 transformedNormal = objectNormal;\\n#ifdef USE_INSTANCING\\n\\tmat3 m = mat3( instanceMatrix );\\n\\ttransformedNormal /= vec3( dot( m[ 0 ], m[ 0 ] ), dot( m[ 1 ], m[ 1 ] ), dot( m[ 2 ], m[ 2 ] ) );\\n\\ttransformedNormal = m * transformedNormal;\\n#endif\\ntransformedNormal = normalMatrix * transformedNormal;\\n#ifdef FLIP_SIDED\\n\\ttransformedNormal = - transformedNormal;\\n#endif\\n#ifdef USE_TANGENT\\n\\tvec3 transformedTangent = ( modelViewMatrix * vec4( objectTangent, 0.0 ) ).xyz;\\n\\t#ifdef FLIP_SIDED\\n\\t\\ttransformedTangent = - transformedTangent;\\n\\t#endif\\n#endif\";var displacementmap_pars_vertex=\"#ifdef USE_DISPLACEMENTMAP\\n\\tuniform sampler2D displacementMap;\\n\\tuniform float displacementScale;\\n\\tuniform float displacementBias;\\n#endif\";var displacementmap_vertex=\"#ifdef USE_DISPLACEMENTMAP\\n\\ttransformed += normalize( objectNormal ) * ( texture2D( displacementMap, vUv ).x * displacementScale + displacementBias );\\n#endif\";var emissivemap_fragment=\"#ifdef USE_EMISSIVEMAP\\n\\tvec4 emissiveColor = texture2D( emissiveMap, vUv );\\n\\temissiveColor.rgb = emissiveMapTexelToLinear( emissiveColor ).rgb;\\n\\ttotalEmissiveRadiance *= emissiveColor.rgb;\\n#endif\";var emissivemap_pars_fragment=\"#ifdef USE_EMISSIVEMAP\\n\\tuniform sampler2D emissiveMap;\\n#endif\";var encodings_fragment=\"gl_FragColor = linearToOutputTexel( gl_FragColor );\";var encodings_pars_fragment=\"\\nvec4 LinearToLinear( in vec4 value ) {\\n\\treturn value;\\n}\\nvec4 GammaToLinear( in vec4 value, in float gammaFactor ) {\\n\\treturn vec4( pow( value.rgb, vec3( gammaFactor ) ), value.a );\\n}\\nvec4 LinearToGamma( in vec4 value, in float gammaFactor ) {\\n\\treturn vec4( pow( value.rgb, vec3( 1.0 / gammaFactor ) ), value.a );\\n}\\nvec4 sRGBToLinear( in vec4 value ) {\\n\\treturn vec4( mix( pow( value.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), value.rgb * 0.0773993808, vec3( lessThanEqual( value.rgb, vec3( 0.04045 ) ) ) ), value.a );\\n}\\nvec4 LinearTosRGB( in vec4 value ) {\\n\\treturn vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a );\\n}\\nvec4 RGBEToLinear( in vec4 value ) {\\n\\treturn vec4( value.rgb * exp2( value.a * 255.0 - 128.0 ), 1.0 );\\n}\\nvec4 LinearToRGBE( in vec4 value ) {\\n\\tfloat maxComponent = max( max( value.r, value.g ), value.b );\\n\\tfloat fExp = clamp( ceil( log2( maxComponent ) ), -128.0, 127.0 );\\n\\treturn vec4( value.rgb / exp2( fExp ), ( fExp + 128.0 ) / 255.0 );\\n}\\nvec4 RGBMToLinear( in vec4 value, in float maxRange ) {\\n\\treturn vec4( value.rgb * value.a * maxRange, 1.0 );\\n}\\nvec4 LinearToRGBM( in vec4 value, in float maxRange ) {\\n\\tfloat maxRGB = max( value.r, max( value.g, value.b ) );\\n\\tfloat M = clamp( maxRGB / maxRange, 0.0, 1.0 );\\n\\tM = ceil( M * 255.0 ) / 255.0;\\n\\treturn vec4( value.rgb / ( M * maxRange ), M );\\n}\\nvec4 RGBDToLinear( in vec4 value, in float maxRange ) {\\n\\treturn vec4( value.rgb * ( ( maxRange / 255.0 ) / value.a ), 1.0 );\\n}\\nvec4 LinearToRGBD( in vec4 value, in float maxRange ) {\\n\\tfloat maxRGB = max( value.r, max( value.g, value.b ) );\\n\\tfloat D = max( maxRange / maxRGB, 1.0 );\\n\\tD = clamp( floor( D ) / 255.0, 0.0, 1.0 );\\n\\treturn vec4( value.rgb * ( D * ( 255.0 / maxRange ) ), D );\\n}\\nconst mat3 cLogLuvM = mat3( 0.2209, 0.3390, 0.4184, 0.1138, 0.6780, 0.7319, 0.0102, 0.1130, 0.2969 );\\nvec4 LinearToLogLuv( in vec4 value ) {\\n\\tvec3 Xp_Y_XYZp = cLogLuvM * value.rgb;\\n\\tXp_Y_XYZp = max( Xp_Y_XYZp, vec3( 1e-6, 1e-6, 1e-6 ) );\\n\\tvec4 vResult;\\n\\tvResult.xy = Xp_Y_XYZp.xy / Xp_Y_XYZp.z;\\n\\tfloat Le = 2.0 * log2(Xp_Y_XYZp.y) + 127.0;\\n\\tvResult.w = fract( Le );\\n\\tvResult.z = ( Le - ( floor( vResult.w * 255.0 ) ) / 255.0 ) / 255.0;\\n\\treturn vResult;\\n}\\nconst mat3 cLogLuvInverseM = mat3( 6.0014, -2.7008, -1.7996, -1.3320, 3.1029, -5.7721, 0.3008, -1.0882, 5.6268 );\\nvec4 LogLuvToLinear( in vec4 value ) {\\n\\tfloat Le = value.z * 255.0 + value.w;\\n\\tvec3 Xp_Y_XYZp;\\n\\tXp_Y_XYZp.y = exp2( ( Le - 127.0 ) / 2.0 );\\n\\tXp_Y_XYZp.z = Xp_Y_XYZp.y / value.y;\\n\\tXp_Y_XYZp.x = value.x * Xp_Y_XYZp.z;\\n\\tvec3 vRGB = cLogLuvInverseM * Xp_Y_XYZp.rgb;\\n\\treturn vec4( max( vRGB, 0.0 ), 1.0 );\\n}\";var envmap_fragment=\"#ifdef USE_ENVMAP\\n\\t#ifdef ENV_WORLDPOS\\n\\t\\tvec3 cameraToFrag;\\n\\t\\tif ( isOrthographic ) {\\n\\t\\t\\tcameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\\n\\t\\t} else {\\n\\t\\t\\tcameraToFrag = normalize( vWorldPosition - cameraPosition );\\n\\t\\t}\\n\\t\\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\\n\\t\\t#ifdef ENVMAP_MODE_REFLECTION\\n\\t\\t\\tvec3 reflectVec = reflect( cameraToFrag, worldNormal );\\n\\t\\t#else\\n\\t\\t\\tvec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio );\\n\\t\\t#endif\\n\\t#else\\n\\t\\tvec3 reflectVec = vReflect;\\n\\t#endif\\n\\t#ifdef ENVMAP_TYPE_CUBE\\n\\t\\tvec4 envColor = textureCube( envMap, vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\\n\\t#elif defined( ENVMAP_TYPE_CUBE_UV )\\n\\t\\tvec4 envColor = textureCubeUV( envMap, reflectVec, 0.0 );\\n\\t#else\\n\\t\\tvec4 envColor = vec4( 0.0 );\\n\\t#endif\\n\\t#ifndef ENVMAP_TYPE_CUBE_UV\\n\\t\\tenvColor = envMapTexelToLinear( envColor );\\n\\t#endif\\n\\t#ifdef ENVMAP_BLENDING_MULTIPLY\\n\\t\\toutgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );\\n\\t#elif defined( ENVMAP_BLENDING_MIX )\\n\\t\\toutgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );\\n\\t#elif defined( ENVMAP_BLENDING_ADD )\\n\\t\\toutgoingLight += envColor.xyz * specularStrength * reflectivity;\\n\\t#endif\\n#endif\";var envmap_common_pars_fragment=\"#ifdef USE_ENVMAP\\n\\tuniform float envMapIntensity;\\n\\tuniform float flipEnvMap;\\n\\tuniform int maxMipLevel;\\n\\t#ifdef ENVMAP_TYPE_CUBE\\n\\t\\tuniform samplerCube envMap;\\n\\t#else\\n\\t\\tuniform sampler2D envMap;\\n\\t#endif\\n\\t\\n#endif\";var envmap_pars_fragment=\"#ifdef USE_ENVMAP\\n\\tuniform float reflectivity;\\n\\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG )\\n\\t\\t#define ENV_WORLDPOS\\n\\t#endif\\n\\t#ifdef ENV_WORLDPOS\\n\\t\\tvarying vec3 vWorldPosition;\\n\\t\\tuniform float refractionRatio;\\n\\t#else\\n\\t\\tvarying vec3 vReflect;\\n\\t#endif\\n#endif\";var envmap_pars_vertex=\"#ifdef USE_ENVMAP\\n\\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) ||defined( PHONG )\\n\\t\\t#define ENV_WORLDPOS\\n\\t#endif\\n\\t#ifdef ENV_WORLDPOS\\n\\t\\t\\n\\t\\tvarying vec3 vWorldPosition;\\n\\t#else\\n\\t\\tvarying vec3 vReflect;\\n\\t\\tuniform float refractionRatio;\\n\\t#endif\\n#endif\";var envmap_vertex=\"#ifdef USE_ENVMAP\\n\\t#ifdef ENV_WORLDPOS\\n\\t\\tvWorldPosition = worldPosition.xyz;\\n\\t#else\\n\\t\\tvec3 cameraToVertex;\\n\\t\\tif ( isOrthographic ) {\\n\\t\\t\\tcameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\\n\\t\\t} else {\\n\\t\\t\\tcameraToVertex = normalize( worldPosition.xyz - cameraPosition );\\n\\t\\t}\\n\\t\\tvec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\\n\\t\\t#ifdef ENVMAP_MODE_REFLECTION\\n\\t\\t\\tvReflect = reflect( cameraToVertex, worldNormal );\\n\\t\\t#else\\n\\t\\t\\tvReflect = refract( cameraToVertex, worldNormal, refractionRatio );\\n\\t\\t#endif\\n\\t#endif\\n#endif\";var fog_vertex=\"#ifdef USE_FOG\\n\\tfogDepth = - mvPosition.z;\\n#endif\";var fog_pars_vertex=\"#ifdef USE_FOG\\n\\tvarying float fogDepth;\\n#endif\";var fog_fragment=\"#ifdef USE_FOG\\n\\t#ifdef FOG_EXP2\\n\\t\\tfloat fogFactor = 1.0 - exp( - fogDensity * fogDensity * fogDepth * fogDepth );\\n\\t#else\\n\\t\\tfloat fogFactor = smoothstep( fogNear, fogFar, fogDepth );\\n\\t#endif\\n\\tgl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );\\n#endif\";var fog_pars_fragment=\"#ifdef USE_FOG\\n\\tuniform vec3 fogColor;\\n\\tvarying float fogDepth;\\n\\t#ifdef FOG_EXP2\\n\\t\\tuniform float fogDensity;\\n\\t#else\\n\\t\\tuniform float fogNear;\\n\\t\\tuniform float fogFar;\\n\\t#endif\\n#endif\";var gradientmap_pars_fragment=\"#ifdef USE_GRADIENTMAP\\n\\tuniform sampler2D gradientMap;\\n#endif\\nvec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {\\n\\tfloat dotNL = dot( normal, lightDirection );\\n\\tvec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );\\n\\t#ifdef USE_GRADIENTMAP\\n\\t\\treturn texture2D( gradientMap, coord ).rgb;\\n\\t#else\\n\\t\\treturn ( coord.x < 0.7 ) ? vec3( 0.7 ) : vec3( 1.0 );\\n\\t#endif\\n}\";var lightmap_fragment=\"#ifdef USE_LIGHTMAP\\n\\tvec4 lightMapTexel= texture2D( lightMap, vUv2 );\\n\\treflectedLight.indirectDiffuse += PI * lightMapTexelToLinear( lightMapTexel ).rgb * lightMapIntensity;\\n#endif\";var lightmap_pars_fragment=\"#ifdef USE_LIGHTMAP\\n\\tuniform sampler2D lightMap;\\n\\tuniform float lightMapIntensity;\\n#endif\";var lights_lambert_vertex=\"vec3 diffuse = vec3( 1.0 );\\nGeometricContext geometry;\\ngeometry.position = mvPosition.xyz;\\ngeometry.normal = normalize( transformedNormal );\\ngeometry.viewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( -mvPosition.xyz );\\nGeometricContext backGeometry;\\nbackGeometry.position = geometry.position;\\nbackGeometry.normal = -geometry.normal;\\nbackGeometry.viewDir = geometry.viewDir;\\nvLightFront = vec3( 0.0 );\\nvIndirectFront = vec3( 0.0 );\\n#ifdef DOUBLE_SIDED\\n\\tvLightBack = vec3( 0.0 );\\n\\tvIndirectBack = vec3( 0.0 );\\n#endif\\nIncidentLight directLight;\\nfloat dotNL;\\nvec3 directLightColor_Diffuse;\\nvIndirectFront += getAmbientLightIrradiance( ambientLightColor );\\nvIndirectFront += getLightProbeIrradiance( lightProbe, geometry );\\n#ifdef DOUBLE_SIDED\\n\\tvIndirectBack += getAmbientLightIrradiance( ambientLightColor );\\n\\tvIndirectBack += getLightProbeIrradiance( lightProbe, backGeometry );\\n#endif\\n#if NUM_POINT_LIGHTS > 0\\n\\t#pragma unroll_loop_start\\n\\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\\n\\t\\tgetPointDirectLightIrradiance( pointLights[ i ], geometry, directLight );\\n\\t\\tdotNL = dot( geometry.normal, directLight.direction );\\n\\t\\tdirectLightColor_Diffuse = PI * directLight.color;\\n\\t\\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\\n\\t\\t#ifdef DOUBLE_SIDED\\n\\t\\t\\tvLightBack += saturate( -dotNL ) * directLightColor_Diffuse;\\n\\t\\t#endif\\n\\t}\\n\\t#pragma unroll_loop_end\\n#endif\\n#if NUM_SPOT_LIGHTS > 0\\n\\t#pragma unroll_loop_start\\n\\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\\n\\t\\tgetSpotDirectLightIrradiance( spotLights[ i ], geometry, directLight );\\n\\t\\tdotNL = dot( geometry.normal, directLight.direction );\\n\\t\\tdirectLightColor_Diffuse = PI * directLight.color;\\n\\t\\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\\n\\t\\t#ifdef DOUBLE_SIDED\\n\\t\\t\\tvLightBack += saturate( -dotNL ) * directLightColor_Diffuse;\\n\\t\\t#endif\\n\\t}\\n\\t#pragma unroll_loop_end\\n#endif\\n#if NUM_DIR_LIGHTS > 0\\n\\t#pragma unroll_loop_start\\n\\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\\n\\t\\tgetDirectionalDirectLightIrradiance( directionalLights[ i ], geometry, directLight );\\n\\t\\tdotNL = dot( geometry.normal, directLight.direction );\\n\\t\\tdirectLightColor_Diffuse = PI * directLight.color;\\n\\t\\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\\n\\t\\t#ifdef DOUBLE_SIDED\\n\\t\\t\\tvLightBack += saturate( -dotNL ) * directLightColor_Diffuse;\\n\\t\\t#endif\\n\\t}\\n\\t#pragma unroll_loop_end\\n#endif\\n#if NUM_HEMI_LIGHTS > 0\\n\\t#pragma unroll_loop_start\\n\\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\\n\\t\\tvIndirectFront += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry );\\n\\t\\t#ifdef DOUBLE_SIDED\\n\\t\\t\\tvIndirectBack += getHemisphereLightIrradiance( hemisphereLights[ i ], backGeometry );\\n\\t\\t#endif\\n\\t}\\n\\t#pragma unroll_loop_end\\n#endif\";var lights_pars_begin=\"uniform bool receiveShadow;\\nuniform vec3 ambientLightColor;\\nuniform vec3 lightProbe[ 9 ];\\nvec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) {\\n\\tfloat x = normal.x, y = normal.y, z = normal.z;\\n\\tvec3 result = shCoefficients[ 0 ] * 0.886227;\\n\\tresult += shCoefficients[ 1 ] * 2.0 * 0.511664 * y;\\n\\tresult += shCoefficients[ 2 ] * 2.0 * 0.511664 * z;\\n\\tresult += shCoefficients[ 3 ] * 2.0 * 0.511664 * x;\\n\\tresult += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y;\\n\\tresult += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z;\\n\\tresult += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 );\\n\\tresult += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z;\\n\\tresult += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y );\\n\\treturn result;\\n}\\nvec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in GeometricContext geometry ) {\\n\\tvec3 worldNormal = inverseTransformDirection( geometry.normal, viewMatrix );\\n\\tvec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );\\n\\treturn irradiance;\\n}\\nvec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {\\n\\tvec3 irradiance = ambientLightColor;\\n\\t#ifndef PHYSICALLY_CORRECT_LIGHTS\\n\\t\\tirradiance *= PI;\\n\\t#endif\\n\\treturn irradiance;\\n}\\n#if NUM_DIR_LIGHTS > 0\\n\\tstruct DirectionalLight {\\n\\t\\tvec3 direction;\\n\\t\\tvec3 color;\\n\\t};\\n\\tuniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];\\n\\tvoid getDirectionalDirectLightIrradiance( const in DirectionalLight directionalLight, const in GeometricContext geometry, out IncidentLight directLight ) {\\n\\t\\tdirectLight.color = directionalLight.color;\\n\\t\\tdirectLight.direction = directionalLight.direction;\\n\\t\\tdirectLight.visible = true;\\n\\t}\\n#endif\\n#if NUM_POINT_LIGHTS > 0\\n\\tstruct PointLight {\\n\\t\\tvec3 position;\\n\\t\\tvec3 color;\\n\\t\\tfloat distance;\\n\\t\\tfloat decay;\\n\\t};\\n\\tuniform PointLight pointLights[ NUM_POINT_LIGHTS ];\\n\\tvoid getPointDirectLightIrradiance( const in PointLight pointLight, const in GeometricContext geometry, out IncidentLight directLight ) {\\n\\t\\tvec3 lVector = pointLight.position - geometry.position;\\n\\t\\tdirectLight.direction = normalize( lVector );\\n\\t\\tfloat lightDistance = length( lVector );\\n\\t\\tdirectLight.color = pointLight.color;\\n\\t\\tdirectLight.color *= punctualLightIntensityToIrradianceFactor( lightDistance, pointLight.distance, pointLight.decay );\\n\\t\\tdirectLight.visible = ( directLight.color != vec3( 0.0 ) );\\n\\t}\\n#endif\\n#if NUM_SPOT_LIGHTS > 0\\n\\tstruct SpotLight {\\n\\t\\tvec3 position;\\n\\t\\tvec3 direction;\\n\\t\\tvec3 color;\\n\\t\\tfloat distance;\\n\\t\\tfloat decay;\\n\\t\\tfloat coneCos;\\n\\t\\tfloat penumbraCos;\\n\\t};\\n\\tuniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];\\n\\tvoid getSpotDirectLightIrradiance( const in SpotLight spotLight, const in GeometricContext geometry, out IncidentLight directLight ) {\\n\\t\\tvec3 lVector = spotLight.position - geometry.position;\\n\\t\\tdirectLight.direction = normalize( lVector );\\n\\t\\tfloat lightDistance = length( lVector );\\n\\t\\tfloat angleCos = dot( directLight.direction, spotLight.direction );\\n\\t\\tif ( angleCos > spotLight.coneCos ) {\\n\\t\\t\\tfloat spotEffect = smoothstep( spotLight.coneCos, spotLight.penumbraCos, angleCos );\\n\\t\\t\\tdirectLight.color = spotLight.color;\\n\\t\\t\\tdirectLight.color *= spotEffect * punctualLightIntensityToIrradianceFactor( lightDistance, spotLight.distance, spotLight.decay );\\n\\t\\t\\tdirectLight.visible = true;\\n\\t\\t} else {\\n\\t\\t\\tdirectLight.color = vec3( 0.0 );\\n\\t\\t\\tdirectLight.visible = false;\\n\\t\\t}\\n\\t}\\n#endif\\n#if NUM_RECT_AREA_LIGHTS > 0\\n\\tstruct RectAreaLight {\\n\\t\\tvec3 color;\\n\\t\\tvec3 position;\\n\\t\\tvec3 halfWidth;\\n\\t\\tvec3 halfHeight;\\n\\t};\\n\\tuniform sampler2D ltc_1;\\tuniform sampler2D ltc_2;\\n\\tuniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];\\n#endif\\n#if NUM_HEMI_LIGHTS > 0\\n\\tstruct HemisphereLight {\\n\\t\\tvec3 direction;\\n\\t\\tvec3 skyColor;\\n\\t\\tvec3 groundColor;\\n\\t};\\n\\tuniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];\\n\\tvec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in GeometricContext geometry ) {\\n\\t\\tfloat dotNL = dot( geometry.normal, hemiLight.direction );\\n\\t\\tfloat hemiDiffuseWeight = 0.5 * dotNL + 0.5;\\n\\t\\tvec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );\\n\\t\\t#ifndef PHYSICALLY_CORRECT_LIGHTS\\n\\t\\t\\tirradiance *= PI;\\n\\t\\t#endif\\n\\t\\treturn irradiance;\\n\\t}\\n#endif\";var envmap_physical_pars_fragment=\"#if defined( USE_ENVMAP )\\n\\t#ifdef ENVMAP_MODE_REFRACTION\\n\\t\\tuniform float refractionRatio;\\n\\t#endif\\n\\tvec3 getLightProbeIndirectIrradiance( const in GeometricContext geometry, const in int maxMIPLevel ) {\\n\\t\\tvec3 worldNormal = inverseTransformDirection( geometry.normal, viewMatrix );\\n\\t\\t#ifdef ENVMAP_TYPE_CUBE\\n\\t\\t\\tvec3 queryVec = vec3( flipEnvMap * worldNormal.x, worldNormal.yz );\\n\\t\\t\\t#ifdef TEXTURE_LOD_EXT\\n\\t\\t\\t\\tvec4 envMapColor = textureCubeLodEXT( envMap, queryVec, float( maxMIPLevel ) );\\n\\t\\t\\t#else\\n\\t\\t\\t\\tvec4 envMapColor = textureCube( envMap, queryVec, float( maxMIPLevel ) );\\n\\t\\t\\t#endif\\n\\t\\t\\tenvMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;\\n\\t\\t#elif defined( ENVMAP_TYPE_CUBE_UV )\\n\\t\\t\\tvec4 envMapColor = textureCubeUV( envMap, worldNormal, 1.0 );\\n\\t\\t#else\\n\\t\\t\\tvec4 envMapColor = vec4( 0.0 );\\n\\t\\t#endif\\n\\t\\treturn PI * envMapColor.rgb * envMapIntensity;\\n\\t}\\n\\tfloat getSpecularMIPLevel( const in float roughness, const in int maxMIPLevel ) {\\n\\t\\tfloat maxMIPLevelScalar = float( maxMIPLevel );\\n\\t\\tfloat sigma = PI * roughness * roughness / ( 1.0 + roughness );\\n\\t\\tfloat desiredMIPLevel = maxMIPLevelScalar + log2( sigma );\\n\\t\\treturn clamp( desiredMIPLevel, 0.0, maxMIPLevelScalar );\\n\\t}\\n\\tvec3 getLightProbeIndirectRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in int maxMIPLevel ) {\\n\\t\\t#ifdef ENVMAP_MODE_REFLECTION\\n\\t\\t\\tvec3 reflectVec = reflect( -viewDir, normal );\\n\\t\\t\\treflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );\\n\\t\\t#else\\n\\t\\t\\tvec3 reflectVec = refract( -viewDir, normal, refractionRatio );\\n\\t\\t#endif\\n\\t\\treflectVec = inverseTransformDirection( reflectVec, viewMatrix );\\n\\t\\tfloat specularMIPLevel = getSpecularMIPLevel( roughness, maxMIPLevel );\\n\\t\\t#ifdef ENVMAP_TYPE_CUBE\\n\\t\\t\\tvec3 queryReflectVec = vec3( flipEnvMap * reflectVec.x, reflectVec.yz );\\n\\t\\t\\t#ifdef TEXTURE_LOD_EXT\\n\\t\\t\\t\\tvec4 envMapColor = textureCubeLodEXT( envMap, queryReflectVec, specularMIPLevel );\\n\\t\\t\\t#else\\n\\t\\t\\t\\tvec4 envMapColor = textureCube( envMap, queryReflectVec, specularMIPLevel );\\n\\t\\t\\t#endif\\n\\t\\t\\tenvMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;\\n\\t\\t#elif defined( ENVMAP_TYPE_CUBE_UV )\\n\\t\\t\\tvec4 envMapColor = textureCubeUV( envMap, reflectVec, roughness );\\n\\t\\t#endif\\n\\t\\treturn envMapColor.rgb * envMapIntensity;\\n\\t}\\n#endif\";var lights_toon_fragment=\"ToonMaterial material;\\nmaterial.diffuseColor = diffuseColor.rgb;\";var lights_toon_pars_fragment=\"varying vec3 vViewPosition;\\n#ifndef FLAT_SHADED\\n\\tvarying vec3 vNormal;\\n#endif\\nstruct ToonMaterial {\\n\\tvec3 diffuseColor;\\n};\\nvoid RE_Direct_Toon( const in IncidentLight directLight, const in GeometricContext geometry, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\\n\\tvec3 irradiance = getGradientIrradiance( geometry.normal, directLight.direction ) * directLight.color;\\n\\t#ifndef PHYSICALLY_CORRECT_LIGHTS\\n\\t\\tirradiance *= PI;\\n\\t#endif\\n\\treflectedLight.directDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\\n}\\nvoid RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in GeometricContext geometry, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\\n\\treflectedLight.indirectDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\\n}\\n#define RE_Direct\\t\\t\\t\\tRE_Direct_Toon\\n#define RE_IndirectDiffuse\\t\\tRE_IndirectDiffuse_Toon\\n#define Material_LightProbeLOD( material )\\t(0)\";var lights_phong_fragment=\"BlinnPhongMaterial material;\\nmaterial.diffuseColor = diffuseColor.rgb;\\nmaterial.specularColor = specular;\\nmaterial.specularShininess = shininess;\\nmaterial.specularStrength = specularStrength;\";var lights_phong_pars_fragment=\"varying vec3 vViewPosition;\\n#ifndef FLAT_SHADED\\n\\tvarying vec3 vNormal;\\n#endif\\nstruct BlinnPhongMaterial {\\n\\tvec3 diffuseColor;\\n\\tvec3 specularColor;\\n\\tfloat specularShininess;\\n\\tfloat specularStrength;\\n};\\nvoid RE_Direct_BlinnPhong( const in IncidentLight directLight, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\\n\\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\\n\\tvec3 irradiance = dotNL * directLight.color;\\n\\t#ifndef PHYSICALLY_CORRECT_LIGHTS\\n\\t\\tirradiance *= PI;\\n\\t#endif\\n\\treflectedLight.directDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\\n\\treflectedLight.directSpecular += irradiance * BRDF_Specular_BlinnPhong( directLight, geometry, material.specularColor, material.specularShininess ) * material.specularStrength;\\n}\\nvoid RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\\n\\treflectedLight.indirectDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\\n}\\n#define RE_Direct\\t\\t\\t\\tRE_Direct_BlinnPhong\\n#define RE_IndirectDiffuse\\t\\tRE_IndirectDiffuse_BlinnPhong\\n#define Material_LightProbeLOD( material )\\t(0)\";var lights_physical_fragment=\"PhysicalMaterial material;\\nmaterial.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );\\nvec3 dxy = max( abs( dFdx( geometryNormal ) ), abs( dFdy( geometryNormal ) ) );\\nfloat geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );\\nmaterial.specularRoughness = max( roughnessFactor, 0.0525 );material.specularRoughness += geometryRoughness;\\nmaterial.specularRoughness = min( material.specularRoughness, 1.0 );\\n#ifdef REFLECTIVITY\\n\\tmaterial.specularColor = mix( vec3( MAXIMUM_SPECULAR_COEFFICIENT * pow2( reflectivity ) ), diffuseColor.rgb, metalnessFactor );\\n#else\\n\\tmaterial.specularColor = mix( vec3( DEFAULT_SPECULAR_COEFFICIENT ), diffuseColor.rgb, metalnessFactor );\\n#endif\\n#ifdef CLEARCOAT\\n\\tmaterial.clearcoat = clearcoat;\\n\\tmaterial.clearcoatRoughness = clearcoatRoughness;\\n\\t#ifdef USE_CLEARCOATMAP\\n\\t\\tmaterial.clearcoat *= texture2D( clearcoatMap, vUv ).x;\\n\\t#endif\\n\\t#ifdef USE_CLEARCOAT_ROUGHNESSMAP\\n\\t\\tmaterial.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vUv ).y;\\n\\t#endif\\n\\tmaterial.clearcoat = saturate( material.clearcoat );\\tmaterial.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 );\\n\\tmaterial.clearcoatRoughness += geometryRoughness;\\n\\tmaterial.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );\\n#endif\\n#ifdef USE_SHEEN\\n\\tmaterial.sheenColor = sheen;\\n#endif\";var lights_physical_pars_fragment=\"struct PhysicalMaterial {\\n\\tvec3 diffuseColor;\\n\\tfloat specularRoughness;\\n\\tvec3 specularColor;\\n#ifdef CLEARCOAT\\n\\tfloat clearcoat;\\n\\tfloat clearcoatRoughness;\\n#endif\\n#ifdef USE_SHEEN\\n\\tvec3 sheenColor;\\n#endif\\n};\\n#define MAXIMUM_SPECULAR_COEFFICIENT 0.16\\n#define DEFAULT_SPECULAR_COEFFICIENT 0.04\\nfloat clearcoatDHRApprox( const in float roughness, const in float dotNL ) {\\n\\treturn DEFAULT_SPECULAR_COEFFICIENT + ( 1.0 - DEFAULT_SPECULAR_COEFFICIENT ) * ( pow( 1.0 - dotNL, 5.0 ) * pow( 1.0 - roughness, 2.0 ) );\\n}\\n#if NUM_RECT_AREA_LIGHTS > 0\\n\\tvoid RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\\n\\t\\tvec3 normal = geometry.normal;\\n\\t\\tvec3 viewDir = geometry.viewDir;\\n\\t\\tvec3 position = geometry.position;\\n\\t\\tvec3 lightPos = rectAreaLight.position;\\n\\t\\tvec3 halfWidth = rectAreaLight.halfWidth;\\n\\t\\tvec3 halfHeight = rectAreaLight.halfHeight;\\n\\t\\tvec3 lightColor = rectAreaLight.color;\\n\\t\\tfloat roughness = material.specularRoughness;\\n\\t\\tvec3 rectCoords[ 4 ];\\n\\t\\trectCoords[ 0 ] = lightPos + halfWidth - halfHeight;\\t\\trectCoords[ 1 ] = lightPos - halfWidth - halfHeight;\\n\\t\\trectCoords[ 2 ] = lightPos - halfWidth + halfHeight;\\n\\t\\trectCoords[ 3 ] = lightPos + halfWidth + halfHeight;\\n\\t\\tvec2 uv = LTC_Uv( normal, viewDir, roughness );\\n\\t\\tvec4 t1 = texture2D( ltc_1, uv );\\n\\t\\tvec4 t2 = texture2D( ltc_2, uv );\\n\\t\\tmat3 mInv = mat3(\\n\\t\\t\\tvec3( t1.x, 0, t1.y ),\\n\\t\\t\\tvec3(    0, 1,    0 ),\\n\\t\\t\\tvec3( t1.z, 0, t1.w )\\n\\t\\t);\\n\\t\\tvec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );\\n\\t\\treflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );\\n\\t\\treflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );\\n\\t}\\n#endif\\nvoid RE_Direct_Physical( const in IncidentLight directLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\\n\\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\\n\\tvec3 irradiance = dotNL * directLight.color;\\n\\t#ifndef PHYSICALLY_CORRECT_LIGHTS\\n\\t\\tirradiance *= PI;\\n\\t#endif\\n\\t#ifdef CLEARCOAT\\n\\t\\tfloat ccDotNL = saturate( dot( geometry.clearcoatNormal, directLight.direction ) );\\n\\t\\tvec3 ccIrradiance = ccDotNL * directLight.color;\\n\\t\\t#ifndef PHYSICALLY_CORRECT_LIGHTS\\n\\t\\t\\tccIrradiance *= PI;\\n\\t\\t#endif\\n\\t\\tfloat clearcoatDHR = material.clearcoat * clearcoatDHRApprox( material.clearcoatRoughness, ccDotNL );\\n\\t\\treflectedLight.directSpecular += ccIrradiance * material.clearcoat * BRDF_Specular_GGX( directLight, geometry.viewDir, geometry.clearcoatNormal, vec3( DEFAULT_SPECULAR_COEFFICIENT ), material.clearcoatRoughness );\\n\\t#else\\n\\t\\tfloat clearcoatDHR = 0.0;\\n\\t#endif\\n\\t#ifdef USE_SHEEN\\n\\t\\treflectedLight.directSpecular += ( 1.0 - clearcoatDHR ) * irradiance * BRDF_Specular_Sheen(\\n\\t\\t\\tmaterial.specularRoughness,\\n\\t\\t\\tdirectLight.direction,\\n\\t\\t\\tgeometry,\\n\\t\\t\\tmaterial.sheenColor\\n\\t\\t);\\n\\t#else\\n\\t\\treflectedLight.directSpecular += ( 1.0 - clearcoatDHR ) * irradiance * BRDF_Specular_GGX( directLight, geometry.viewDir, geometry.normal, material.specularColor, material.specularRoughness);\\n\\t#endif\\n\\treflectedLight.directDiffuse += ( 1.0 - clearcoatDHR ) * irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\\n}\\nvoid RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\\n\\treflectedLight.indirectDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\\n}\\nvoid RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) {\\n\\t#ifdef CLEARCOAT\\n\\t\\tfloat ccDotNV = saturate( dot( geometry.clearcoatNormal, geometry.viewDir ) );\\n\\t\\treflectedLight.indirectSpecular += clearcoatRadiance * material.clearcoat * BRDF_Specular_GGX_Environment( geometry.viewDir, geometry.clearcoatNormal, vec3( DEFAULT_SPECULAR_COEFFICIENT ), material.clearcoatRoughness );\\n\\t\\tfloat ccDotNL = ccDotNV;\\n\\t\\tfloat clearcoatDHR = material.clearcoat * clearcoatDHRApprox( material.clearcoatRoughness, ccDotNL );\\n\\t#else\\n\\t\\tfloat clearcoatDHR = 0.0;\\n\\t#endif\\n\\tfloat clearcoatInv = 1.0 - clearcoatDHR;\\n\\tvec3 singleScattering = vec3( 0.0 );\\n\\tvec3 multiScattering = vec3( 0.0 );\\n\\tvec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;\\n\\tBRDF_Specular_Multiscattering_Environment( geometry, material.specularColor, material.specularRoughness, singleScattering, multiScattering );\\n\\tvec3 diffuse = material.diffuseColor * ( 1.0 - ( singleScattering + multiScattering ) );\\n\\treflectedLight.indirectSpecular += clearcoatInv * radiance * singleScattering;\\n\\treflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance;\\n\\treflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance;\\n}\\n#define RE_Direct\\t\\t\\t\\tRE_Direct_Physical\\n#define RE_Direct_RectArea\\t\\tRE_Direct_RectArea_Physical\\n#define RE_IndirectDiffuse\\t\\tRE_IndirectDiffuse_Physical\\n#define RE_IndirectSpecular\\t\\tRE_IndirectSpecular_Physical\\nfloat computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {\\n\\treturn saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );\\n}\";var lights_fragment_begin=\"\\nGeometricContext geometry;\\ngeometry.position = - vViewPosition;\\ngeometry.normal = normal;\\ngeometry.viewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );\\n#ifdef CLEARCOAT\\n\\tgeometry.clearcoatNormal = clearcoatNormal;\\n#endif\\nIncidentLight directLight;\\n#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )\\n\\tPointLight pointLight;\\n\\t#if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0\\n\\tPointLightShadow pointLightShadow;\\n\\t#endif\\n\\t#pragma unroll_loop_start\\n\\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\\n\\t\\tpointLight = pointLights[ i ];\\n\\t\\tgetPointDirectLightIrradiance( pointLight, geometry, directLight );\\n\\t\\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS )\\n\\t\\tpointLightShadow = pointLightShadows[ i ];\\n\\t\\tdirectLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;\\n\\t\\t#endif\\n\\t\\tRE_Direct( directLight, geometry, material, reflectedLight );\\n\\t}\\n\\t#pragma unroll_loop_end\\n#endif\\n#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )\\n\\tSpotLight spotLight;\\n\\t#if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0\\n\\tSpotLightShadow spotLightShadow;\\n\\t#endif\\n\\t#pragma unroll_loop_start\\n\\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\\n\\t\\tspotLight = spotLights[ i ];\\n\\t\\tgetSpotDirectLightIrradiance( spotLight, geometry, directLight );\\n\\t\\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\\n\\t\\tspotLightShadow = spotLightShadows[ i ];\\n\\t\\tdirectLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0;\\n\\t\\t#endif\\n\\t\\tRE_Direct( directLight, geometry, material, reflectedLight );\\n\\t}\\n\\t#pragma unroll_loop_end\\n#endif\\n#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )\\n\\tDirectionalLight directionalLight;\\n\\t#if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0\\n\\tDirectionalLightShadow directionalLightShadow;\\n\\t#endif\\n\\t#pragma unroll_loop_start\\n\\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\\n\\t\\tdirectionalLight = directionalLights[ i ];\\n\\t\\tgetDirectionalDirectLightIrradiance( directionalLight, geometry, directLight );\\n\\t\\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )\\n\\t\\tdirectionalLightShadow = directionalLightShadows[ i ];\\n\\t\\tdirectLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\\n\\t\\t#endif\\n\\t\\tRE_Direct( directLight, geometry, material, reflectedLight );\\n\\t}\\n\\t#pragma unroll_loop_end\\n#endif\\n#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )\\n\\tRectAreaLight rectAreaLight;\\n\\t#pragma unroll_loop_start\\n\\tfor ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {\\n\\t\\trectAreaLight = rectAreaLights[ i ];\\n\\t\\tRE_Direct_RectArea( rectAreaLight, geometry, material, reflectedLight );\\n\\t}\\n\\t#pragma unroll_loop_end\\n#endif\\n#if defined( RE_IndirectDiffuse )\\n\\tvec3 iblIrradiance = vec3( 0.0 );\\n\\tvec3 irradiance = getAmbientLightIrradiance( ambientLightColor );\\n\\tirradiance += getLightProbeIrradiance( lightProbe, geometry );\\n\\t#if ( NUM_HEMI_LIGHTS > 0 )\\n\\t\\t#pragma unroll_loop_start\\n\\t\\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\\n\\t\\t\\tirradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry );\\n\\t\\t}\\n\\t\\t#pragma unroll_loop_end\\n\\t#endif\\n#endif\\n#if defined( RE_IndirectSpecular )\\n\\tvec3 radiance = vec3( 0.0 );\\n\\tvec3 clearcoatRadiance = vec3( 0.0 );\\n#endif\";var lights_fragment_maps=\"#if defined( RE_IndirectDiffuse )\\n\\t#ifdef USE_LIGHTMAP\\n\\t\\tvec4 lightMapTexel= texture2D( lightMap, vUv2 );\\n\\t\\tvec3 lightMapIrradiance = lightMapTexelToLinear( lightMapTexel ).rgb * lightMapIntensity;\\n\\t\\t#ifndef PHYSICALLY_CORRECT_LIGHTS\\n\\t\\t\\tlightMapIrradiance *= PI;\\n\\t\\t#endif\\n\\t\\tirradiance += lightMapIrradiance;\\n\\t#endif\\n\\t#if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )\\n\\t\\tiblIrradiance += getLightProbeIndirectIrradiance( geometry, maxMipLevel );\\n\\t#endif\\n#endif\\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\\n\\tradiance += getLightProbeIndirectRadiance( geometry.viewDir, geometry.normal, material.specularRoughness, maxMipLevel );\\n\\t#ifdef CLEARCOAT\\n\\t\\tclearcoatRadiance += getLightProbeIndirectRadiance( geometry.viewDir, geometry.clearcoatNormal, material.clearcoatRoughness, maxMipLevel );\\n\\t#endif\\n#endif\";var lights_fragment_end=\"#if defined( RE_IndirectDiffuse )\\n\\tRE_IndirectDiffuse( irradiance, geometry, material, reflectedLight );\\n#endif\\n#if defined( RE_IndirectSpecular )\\n\\tRE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometry, material, reflectedLight );\\n#endif\";var logdepthbuf_fragment=\"#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\\n\\tgl_FragDepthEXT = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;\\n#endif\";var logdepthbuf_pars_fragment=\"#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\\n\\tuniform float logDepthBufFC;\\n\\tvarying float vFragDepth;\\n\\tvarying float vIsPerspective;\\n#endif\";var logdepthbuf_pars_vertex=\"#ifdef USE_LOGDEPTHBUF\\n\\t#ifdef USE_LOGDEPTHBUF_EXT\\n\\t\\tvarying float vFragDepth;\\n\\t\\tvarying float vIsPerspective;\\n\\t#else\\n\\t\\tuniform float logDepthBufFC;\\n\\t#endif\\n#endif\";var logdepthbuf_vertex=\"#ifdef USE_LOGDEPTHBUF\\n\\t#ifdef USE_LOGDEPTHBUF_EXT\\n\\t\\tvFragDepth = 1.0 + gl_Position.w;\\n\\t\\tvIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );\\n\\t#else\\n\\t\\tif ( isPerspectiveMatrix( projectionMatrix ) ) {\\n\\t\\t\\tgl_Position.z = log2( max( EPSILON, gl_Position.w + 1.0 ) ) * logDepthBufFC - 1.0;\\n\\t\\t\\tgl_Position.z *= gl_Position.w;\\n\\t\\t}\\n\\t#endif\\n#endif\";var map_fragment=\"#ifdef USE_MAP\\n\\tvec4 texelColor = texture2D( map, vUv );\\n\\ttexelColor = mapTexelToLinear( texelColor );\\n\\tdiffuseColor *= texelColor;\\n#endif\";var map_pars_fragment=\"#ifdef USE_MAP\\n\\tuniform sampler2D map;\\n#endif\";var map_particle_fragment=\"#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\\n\\tvec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;\\n#endif\\n#ifdef USE_MAP\\n\\tvec4 mapTexel = texture2D( map, uv );\\n\\tdiffuseColor *= mapTexelToLinear( mapTexel );\\n#endif\\n#ifdef USE_ALPHAMAP\\n\\tdiffuseColor.a *= texture2D( alphaMap, uv ).g;\\n#endif\";var map_particle_pars_fragment=\"#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\\n\\tuniform mat3 uvTransform;\\n#endif\\n#ifdef USE_MAP\\n\\tuniform sampler2D map;\\n#endif\\n#ifdef USE_ALPHAMAP\\n\\tuniform sampler2D alphaMap;\\n#endif\";var metalnessmap_fragment=\"float metalnessFactor = metalness;\\n#ifdef USE_METALNESSMAP\\n\\tvec4 texelMetalness = texture2D( metalnessMap, vUv );\\n\\tmetalnessFactor *= texelMetalness.b;\\n#endif\";var metalnessmap_pars_fragment=\"#ifdef USE_METALNESSMAP\\n\\tuniform sampler2D metalnessMap;\\n#endif\";var morphnormal_vertex=\"#ifdef USE_MORPHNORMALS\\n\\tobjectNormal *= morphTargetBaseInfluence;\\n\\tobjectNormal += morphNormal0 * morphTargetInfluences[ 0 ];\\n\\tobjectNormal += morphNormal1 * morphTargetInfluences[ 1 ];\\n\\tobjectNormal += morphNormal2 * morphTargetInfluences[ 2 ];\\n\\tobjectNormal += morphNormal3 * morphTargetInfluences[ 3 ];\\n#endif\";var morphtarget_pars_vertex=\"#ifdef USE_MORPHTARGETS\\n\\tuniform float morphTargetBaseInfluence;\\n\\t#ifndef USE_MORPHNORMALS\\n\\t\\tuniform float morphTargetInfluences[ 8 ];\\n\\t#else\\n\\t\\tuniform float morphTargetInfluences[ 4 ];\\n\\t#endif\\n#endif\";var morphtarget_vertex=\"#ifdef USE_MORPHTARGETS\\n\\ttransformed *= morphTargetBaseInfluence;\\n\\ttransformed += morphTarget0 * morphTargetInfluences[ 0 ];\\n\\ttransformed += morphTarget1 * morphTargetInfluences[ 1 ];\\n\\ttransformed += morphTarget2 * morphTargetInfluences[ 2 ];\\n\\ttransformed += morphTarget3 * morphTargetInfluences[ 3 ];\\n\\t#ifndef USE_MORPHNORMALS\\n\\t\\ttransformed += morphTarget4 * morphTargetInfluences[ 4 ];\\n\\t\\ttransformed += morphTarget5 * morphTargetInfluences[ 5 ];\\n\\t\\ttransformed += morphTarget6 * morphTargetInfluences[ 6 ];\\n\\t\\ttransformed += morphTarget7 * morphTargetInfluences[ 7 ];\\n\\t#endif\\n#endif\";var normal_fragment_begin=\"#ifdef FLAT_SHADED\\n\\tvec3 fdx = vec3( dFdx( vViewPosition.x ), dFdx( vViewPosition.y ), dFdx( vViewPosition.z ) );\\n\\tvec3 fdy = vec3( dFdy( vViewPosition.x ), dFdy( vViewPosition.y ), dFdy( vViewPosition.z ) );\\n\\tvec3 normal = normalize( cross( fdx, fdy ) );\\n#else\\n\\tvec3 normal = normalize( vNormal );\\n\\t#ifdef DOUBLE_SIDED\\n\\t\\tnormal = normal * ( float( gl_FrontFacing ) * 2.0 - 1.0 );\\n\\t#endif\\n\\t#ifdef USE_TANGENT\\n\\t\\tvec3 tangent = normalize( vTangent );\\n\\t\\tvec3 bitangent = normalize( vBitangent );\\n\\t\\t#ifdef DOUBLE_SIDED\\n\\t\\t\\ttangent = tangent * ( float( gl_FrontFacing ) * 2.0 - 1.0 );\\n\\t\\t\\tbitangent = bitangent * ( float( gl_FrontFacing ) * 2.0 - 1.0 );\\n\\t\\t#endif\\n\\t\\t#if defined( TANGENTSPACE_NORMALMAP ) || defined( USE_CLEARCOAT_NORMALMAP )\\n\\t\\t\\tmat3 vTBN = mat3( tangent, bitangent, normal );\\n\\t\\t#endif\\n\\t#endif\\n#endif\\nvec3 geometryNormal = normal;\";var normal_fragment_maps=\"#ifdef OBJECTSPACE_NORMALMAP\\n\\tnormal = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;\\n\\t#ifdef FLIP_SIDED\\n\\t\\tnormal = - normal;\\n\\t#endif\\n\\t#ifdef DOUBLE_SIDED\\n\\t\\tnormal = normal * ( float( gl_FrontFacing ) * 2.0 - 1.0 );\\n\\t#endif\\n\\tnormal = normalize( normalMatrix * normal );\\n#elif defined( TANGENTSPACE_NORMALMAP )\\n\\tvec3 mapN = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;\\n\\tmapN.xy *= normalScale;\\n\\t#ifdef USE_TANGENT\\n\\t\\tnormal = normalize( vTBN * mapN );\\n\\t#else\\n\\t\\tnormal = perturbNormal2Arb( -vViewPosition, normal, mapN );\\n\\t#endif\\n#elif defined( USE_BUMPMAP )\\n\\tnormal = perturbNormalArb( -vViewPosition, normal, dHdxy_fwd() );\\n#endif\";var normalmap_pars_fragment=\"#ifdef USE_NORMALMAP\\n\\tuniform sampler2D normalMap;\\n\\tuniform vec2 normalScale;\\n#endif\\n#ifdef OBJECTSPACE_NORMALMAP\\n\\tuniform mat3 normalMatrix;\\n#endif\\n#if ! defined ( USE_TANGENT ) && ( defined ( TANGENTSPACE_NORMALMAP ) || defined ( USE_CLEARCOAT_NORMALMAP ) )\\n\\tvec3 perturbNormal2Arb( vec3 eye_pos, vec3 surf_norm, vec3 mapN ) {\\n\\t\\tvec3 q0 = vec3( dFdx( eye_pos.x ), dFdx( eye_pos.y ), dFdx( eye_pos.z ) );\\n\\t\\tvec3 q1 = vec3( dFdy( eye_pos.x ), dFdy( eye_pos.y ), dFdy( eye_pos.z ) );\\n\\t\\tvec2 st0 = dFdx( vUv.st );\\n\\t\\tvec2 st1 = dFdy( vUv.st );\\n\\t\\tfloat scale = sign( st1.t * st0.s - st0.t * st1.s );\\n\\t\\tvec3 S = normalize( ( q0 * st1.t - q1 * st0.t ) * scale );\\n\\t\\tvec3 T = normalize( ( - q0 * st1.s + q1 * st0.s ) * scale );\\n\\t\\tvec3 N = normalize( surf_norm );\\n\\t\\tmat3 tsn = mat3( S, T, N );\\n\\t\\tmapN.xy *= ( float( gl_FrontFacing ) * 2.0 - 1.0 );\\n\\t\\treturn normalize( tsn * mapN );\\n\\t}\\n#endif\";var clearcoat_normal_fragment_begin=\"#ifdef CLEARCOAT\\n\\tvec3 clearcoatNormal = geometryNormal;\\n#endif\";var clearcoat_normal_fragment_maps=\"#ifdef USE_CLEARCOAT_NORMALMAP\\n\\tvec3 clearcoatMapN = texture2D( clearcoatNormalMap, vUv ).xyz * 2.0 - 1.0;\\n\\tclearcoatMapN.xy *= clearcoatNormalScale;\\n\\t#ifdef USE_TANGENT\\n\\t\\tclearcoatNormal = normalize( vTBN * clearcoatMapN );\\n\\t#else\\n\\t\\tclearcoatNormal = perturbNormal2Arb( - vViewPosition, clearcoatNormal, clearcoatMapN );\\n\\t#endif\\n#endif\";var clearcoat_pars_fragment=\"#ifdef USE_CLEARCOATMAP\\n\\tuniform sampler2D clearcoatMap;\\n#endif\\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\\n\\tuniform sampler2D clearcoatRoughnessMap;\\n#endif\\n#ifdef USE_CLEARCOAT_NORMALMAP\\n\\tuniform sampler2D clearcoatNormalMap;\\n\\tuniform vec2 clearcoatNormalScale;\\n#endif\";var packing=\"vec3 packNormalToRGB( const in vec3 normal ) {\\n\\treturn normalize( normal ) * 0.5 + 0.5;\\n}\\nvec3 unpackRGBToNormal( const in vec3 rgb ) {\\n\\treturn 2.0 * rgb.xyz - 1.0;\\n}\\nconst float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;\\nconst vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256., 256. );\\nconst vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. );\\nconst float ShiftRight8 = 1. / 256.;\\nvec4 packDepthToRGBA( const in float v ) {\\n\\tvec4 r = vec4( fract( v * PackFactors ), v );\\n\\tr.yzw -= r.xyz * ShiftRight8;\\treturn r * PackUpscale;\\n}\\nfloat unpackRGBAToDepth( const in vec4 v ) {\\n\\treturn dot( v, UnpackFactors );\\n}\\nvec4 pack2HalfToRGBA( vec2 v ) {\\n\\tvec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ));\\n\\treturn vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w);\\n}\\nvec2 unpackRGBATo2Half( vec4 v ) {\\n\\treturn vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );\\n}\\nfloat viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {\\n\\treturn ( viewZ + near ) / ( near - far );\\n}\\nfloat orthographicDepthToViewZ( const in float linearClipZ, const in float near, const in float far ) {\\n\\treturn linearClipZ * ( near - far ) - near;\\n}\\nfloat viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {\\n\\treturn (( near + viewZ ) * far ) / (( far - near ) * viewZ );\\n}\\nfloat perspectiveDepthToViewZ( const in float invClipZ, const in float near, const in float far ) {\\n\\treturn ( near * far ) / ( ( far - near ) * invClipZ - far );\\n}\";var premultiplied_alpha_fragment=\"#ifdef PREMULTIPLIED_ALPHA\\n\\tgl_FragColor.rgb *= gl_FragColor.a;\\n#endif\";var project_vertex=\"vec4 mvPosition = vec4( transformed, 1.0 );\\n#ifdef USE_INSTANCING\\n\\tmvPosition = instanceMatrix * mvPosition;\\n#endif\\nmvPosition = modelViewMatrix * mvPosition;\\ngl_Position = projectionMatrix * mvPosition;\";var dithering_fragment=\"#ifdef DITHERING\\n\\tgl_FragColor.rgb = dithering( gl_FragColor.rgb );\\n#endif\";var dithering_pars_fragment=\"#ifdef DITHERING\\n\\tvec3 dithering( vec3 color ) {\\n\\t\\tfloat grid_position = rand( gl_FragCoord.xy );\\n\\t\\tvec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );\\n\\t\\tdither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );\\n\\t\\treturn color + dither_shift_RGB;\\n\\t}\\n#endif\";var roughnessmap_fragment=\"float roughnessFactor = roughness;\\n#ifdef USE_ROUGHNESSMAP\\n\\tvec4 texelRoughness = texture2D( roughnessMap, vUv );\\n\\troughnessFactor *= texelRoughness.g;\\n#endif\";var roughnessmap_pars_fragment=\"#ifdef USE_ROUGHNESSMAP\\n\\tuniform sampler2D roughnessMap;\\n#endif\";var shadowmap_pars_fragment=\"#ifdef USE_SHADOWMAP\\n\\t#if NUM_DIR_LIGHT_SHADOWS > 0\\n\\t\\tuniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];\\n\\t\\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\\n\\t\\tstruct DirectionalLightShadow {\\n\\t\\t\\tfloat shadowBias;\\n\\t\\t\\tfloat shadowNormalBias;\\n\\t\\t\\tfloat shadowRadius;\\n\\t\\t\\tvec2 shadowMapSize;\\n\\t\\t};\\n\\t\\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\\n\\t#endif\\n\\t#if NUM_SPOT_LIGHT_SHADOWS > 0\\n\\t\\tuniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];\\n\\t\\tvarying vec4 vSpotShadowCoord[ NUM_SPOT_LIGHT_SHADOWS ];\\n\\t\\tstruct SpotLightShadow {\\n\\t\\t\\tfloat shadowBias;\\n\\t\\t\\tfloat shadowNormalBias;\\n\\t\\t\\tfloat shadowRadius;\\n\\t\\t\\tvec2 shadowMapSize;\\n\\t\\t};\\n\\t\\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\\n\\t#endif\\n\\t#if NUM_POINT_LIGHT_SHADOWS > 0\\n\\t\\tuniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];\\n\\t\\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\\n\\t\\tstruct PointLightShadow {\\n\\t\\t\\tfloat shadowBias;\\n\\t\\t\\tfloat shadowNormalBias;\\n\\t\\t\\tfloat shadowRadius;\\n\\t\\t\\tvec2 shadowMapSize;\\n\\t\\t\\tfloat shadowCameraNear;\\n\\t\\t\\tfloat shadowCameraFar;\\n\\t\\t};\\n\\t\\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\\n\\t#endif\\n\\tfloat texture2DCompare( sampler2D depths, vec2 uv, float compare ) {\\n\\t\\treturn step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );\\n\\t}\\n\\tvec2 texture2DDistribution( sampler2D shadow, vec2 uv ) {\\n\\t\\treturn unpackRGBATo2Half( texture2D( shadow, uv ) );\\n\\t}\\n\\tfloat VSMShadow (sampler2D shadow, vec2 uv, float compare ){\\n\\t\\tfloat occlusion = 1.0;\\n\\t\\tvec2 distribution = texture2DDistribution( shadow, uv );\\n\\t\\tfloat hard_shadow = step( compare , distribution.x );\\n\\t\\tif (hard_shadow != 1.0 ) {\\n\\t\\t\\tfloat distance = compare - distribution.x ;\\n\\t\\t\\tfloat variance = max( 0.00000, distribution.y * distribution.y );\\n\\t\\t\\tfloat softness_probability = variance / (variance + distance * distance );\\t\\t\\tsoftness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 );\\t\\t\\tocclusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 );\\n\\t\\t}\\n\\t\\treturn occlusion;\\n\\t}\\n\\tfloat getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) {\\n\\t\\tfloat shadow = 1.0;\\n\\t\\tshadowCoord.xyz /= shadowCoord.w;\\n\\t\\tshadowCoord.z += shadowBias;\\n\\t\\tbvec4 inFrustumVec = bvec4 ( shadowCoord.x >= 0.0, shadowCoord.x <= 1.0, shadowCoord.y >= 0.0, shadowCoord.y <= 1.0 );\\n\\t\\tbool inFrustum = all( inFrustumVec );\\n\\t\\tbvec2 frustumTestVec = bvec2( inFrustum, shadowCoord.z <= 1.0 );\\n\\t\\tbool frustumTest = all( frustumTestVec );\\n\\t\\tif ( frustumTest ) {\\n\\t\\t#if defined( SHADOWMAP_TYPE_PCF )\\n\\t\\t\\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\\n\\t\\t\\tfloat dx0 = - texelSize.x * shadowRadius;\\n\\t\\t\\tfloat dy0 = - texelSize.y * shadowRadius;\\n\\t\\t\\tfloat dx1 = + texelSize.x * shadowRadius;\\n\\t\\t\\tfloat dy1 = + texelSize.y * shadowRadius;\\n\\t\\t\\tfloat dx2 = dx0 / 2.0;\\n\\t\\t\\tfloat dy2 = dy0 / 2.0;\\n\\t\\t\\tfloat dx3 = dx1 / 2.0;\\n\\t\\t\\tfloat dy3 = dy1 / 2.0;\\n\\t\\t\\tshadow = (\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) +\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) +\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) +\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) +\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) +\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) +\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) +\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) +\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\\n\\t\\t\\t) * ( 1.0 / 17.0 );\\n\\t\\t#elif defined( SHADOWMAP_TYPE_PCF_SOFT )\\n\\t\\t\\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\\n\\t\\t\\tfloat dx = texelSize.x;\\n\\t\\t\\tfloat dy = texelSize.y;\\n\\t\\t\\tvec2 uv = shadowCoord.xy;\\n\\t\\t\\tvec2 f = fract( uv * shadowMapSize + 0.5 );\\n\\t\\t\\tuv -= f * texelSize;\\n\\t\\t\\tshadow = (\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, uv, shadowCoord.z ) +\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) +\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) +\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) +\\n\\t\\t\\t\\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ), \\n\\t\\t\\t\\t\\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ),\\n\\t\\t\\t\\t\\t f.x ) +\\n\\t\\t\\t\\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ), \\n\\t\\t\\t\\t\\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ),\\n\\t\\t\\t\\t\\t f.x ) +\\n\\t\\t\\t\\tmix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ), \\n\\t\\t\\t\\t\\t texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ),\\n\\t\\t\\t\\t\\t f.y ) +\\n\\t\\t\\t\\tmix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ), \\n\\t\\t\\t\\t\\t texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ),\\n\\t\\t\\t\\t\\t f.y ) +\\n\\t\\t\\t\\tmix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ), \\n\\t\\t\\t\\t\\t\\t  texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ),\\n\\t\\t\\t\\t\\t\\t  f.x ),\\n\\t\\t\\t\\t\\t mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ), \\n\\t\\t\\t\\t\\t\\t  texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ),\\n\\t\\t\\t\\t\\t\\t  f.x ),\\n\\t\\t\\t\\t\\t f.y )\\n\\t\\t\\t) * ( 1.0 / 9.0 );\\n\\t\\t#elif defined( SHADOWMAP_TYPE_VSM )\\n\\t\\t\\tshadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z );\\n\\t\\t#else\\n\\t\\t\\tshadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\\n\\t\\t#endif\\n\\t\\t}\\n\\t\\treturn shadow;\\n\\t}\\n\\tvec2 cubeToUV( vec3 v, float texelSizeY ) {\\n\\t\\tvec3 absV = abs( v );\\n\\t\\tfloat scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );\\n\\t\\tabsV *= scaleToCube;\\n\\t\\tv *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );\\n\\t\\tvec2 planar = v.xy;\\n\\t\\tfloat almostATexel = 1.5 * texelSizeY;\\n\\t\\tfloat almostOne = 1.0 - almostATexel;\\n\\t\\tif ( absV.z >= almostOne ) {\\n\\t\\t\\tif ( v.z > 0.0 )\\n\\t\\t\\t\\tplanar.x = 4.0 - v.x;\\n\\t\\t} else if ( absV.x >= almostOne ) {\\n\\t\\t\\tfloat signX = sign( v.x );\\n\\t\\t\\tplanar.x = v.z * signX + 2.0 * signX;\\n\\t\\t} else if ( absV.y >= almostOne ) {\\n\\t\\t\\tfloat signY = sign( v.y );\\n\\t\\t\\tplanar.x = v.x + 2.0 * signY + 2.0;\\n\\t\\t\\tplanar.y = v.z * signY - 2.0;\\n\\t\\t}\\n\\t\\treturn vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );\\n\\t}\\n\\tfloat getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {\\n\\t\\tvec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\\n\\t\\tvec3 lightToPosition = shadowCoord.xyz;\\n\\t\\tfloat dp = ( length( lightToPosition ) - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear );\\t\\tdp += shadowBias;\\n\\t\\tvec3 bd3D = normalize( lightToPosition );\\n\\t\\t#if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM )\\n\\t\\t\\tvec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;\\n\\t\\t\\treturn (\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )\\n\\t\\t\\t) * ( 1.0 / 9.0 );\\n\\t\\t#else\\n\\t\\t\\treturn texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );\\n\\t\\t#endif\\n\\t}\\n#endif\";var shadowmap_pars_vertex=\"#ifdef USE_SHADOWMAP\\n\\t#if NUM_DIR_LIGHT_SHADOWS > 0\\n\\t\\tuniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];\\n\\t\\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\\n\\t\\tstruct DirectionalLightShadow {\\n\\t\\t\\tfloat shadowBias;\\n\\t\\t\\tfloat shadowNormalBias;\\n\\t\\t\\tfloat shadowRadius;\\n\\t\\t\\tvec2 shadowMapSize;\\n\\t\\t};\\n\\t\\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\\n\\t#endif\\n\\t#if NUM_SPOT_LIGHT_SHADOWS > 0\\n\\t\\tuniform mat4 spotShadowMatrix[ NUM_SPOT_LIGHT_SHADOWS ];\\n\\t\\tvarying vec4 vSpotShadowCoord[ NUM_SPOT_LIGHT_SHADOWS ];\\n\\t\\tstruct SpotLightShadow {\\n\\t\\t\\tfloat shadowBias;\\n\\t\\t\\tfloat shadowNormalBias;\\n\\t\\t\\tfloat shadowRadius;\\n\\t\\t\\tvec2 shadowMapSize;\\n\\t\\t};\\n\\t\\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\\n\\t#endif\\n\\t#if NUM_POINT_LIGHT_SHADOWS > 0\\n\\t\\tuniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];\\n\\t\\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\\n\\t\\tstruct PointLightShadow {\\n\\t\\t\\tfloat shadowBias;\\n\\t\\t\\tfloat shadowNormalBias;\\n\\t\\t\\tfloat shadowRadius;\\n\\t\\t\\tvec2 shadowMapSize;\\n\\t\\t\\tfloat shadowCameraNear;\\n\\t\\t\\tfloat shadowCameraFar;\\n\\t\\t};\\n\\t\\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\\n\\t#endif\\n#endif\";var shadowmap_vertex=\"#ifdef USE_SHADOWMAP\\n\\t#if NUM_DIR_LIGHT_SHADOWS > 0 || NUM_SPOT_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0\\n\\t\\tvec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\\n\\t\\tvec4 shadowWorldPosition;\\n\\t#endif\\n\\t#if NUM_DIR_LIGHT_SHADOWS > 0\\n\\t#pragma unroll_loop_start\\n\\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\\n\\t\\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 );\\n\\t\\tvDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;\\n\\t}\\n\\t#pragma unroll_loop_end\\n\\t#endif\\n\\t#if NUM_SPOT_LIGHT_SHADOWS > 0\\n\\t#pragma unroll_loop_start\\n\\tfor ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\\n\\t\\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias, 0 );\\n\\t\\tvSpotShadowCoord[ i ] = spotShadowMatrix[ i ] * shadowWorldPosition;\\n\\t}\\n\\t#pragma unroll_loop_end\\n\\t#endif\\n\\t#if NUM_POINT_LIGHT_SHADOWS > 0\\n\\t#pragma unroll_loop_start\\n\\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\\n\\t\\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 );\\n\\t\\tvPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;\\n\\t}\\n\\t#pragma unroll_loop_end\\n\\t#endif\\n#endif\";var shadowmask_pars_fragment=\"float getShadowMask() {\\n\\tfloat shadow = 1.0;\\n\\t#ifdef USE_SHADOWMAP\\n\\t#if NUM_DIR_LIGHT_SHADOWS > 0\\n\\tDirectionalLightShadow directionalLight;\\n\\t#pragma unroll_loop_start\\n\\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\\n\\t\\tdirectionalLight = directionalLightShadows[ i ];\\n\\t\\tshadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\\n\\t}\\n\\t#pragma unroll_loop_end\\n\\t#endif\\n\\t#if NUM_SPOT_LIGHT_SHADOWS > 0\\n\\tSpotLightShadow spotLight;\\n\\t#pragma unroll_loop_start\\n\\tfor ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\\n\\t\\tspotLight = spotLightShadows[ i ];\\n\\t\\tshadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0;\\n\\t}\\n\\t#pragma unroll_loop_end\\n\\t#endif\\n\\t#if NUM_POINT_LIGHT_SHADOWS > 0\\n\\tPointLightShadow pointLight;\\n\\t#pragma unroll_loop_start\\n\\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\\n\\t\\tpointLight = pointLightShadows[ i ];\\n\\t\\tshadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;\\n\\t}\\n\\t#pragma unroll_loop_end\\n\\t#endif\\n\\t#endif\\n\\treturn shadow;\\n}\";var skinbase_vertex=\"#ifdef USE_SKINNING\\n\\tmat4 boneMatX = getBoneMatrix( skinIndex.x );\\n\\tmat4 boneMatY = getBoneMatrix( skinIndex.y );\\n\\tmat4 boneMatZ = getBoneMatrix( skinIndex.z );\\n\\tmat4 boneMatW = getBoneMatrix( skinIndex.w );\\n#endif\";var skinning_pars_vertex=\"#ifdef USE_SKINNING\\n\\tuniform mat4 bindMatrix;\\n\\tuniform mat4 bindMatrixInverse;\\n\\t#ifdef BONE_TEXTURE\\n\\t\\tuniform highp sampler2D boneTexture;\\n\\t\\tuniform int boneTextureSize;\\n\\t\\tmat4 getBoneMatrix( const in float i ) {\\n\\t\\t\\tfloat j = i * 4.0;\\n\\t\\t\\tfloat x = mod( j, float( boneTextureSize ) );\\n\\t\\t\\tfloat y = floor( j / float( boneTextureSize ) );\\n\\t\\t\\tfloat dx = 1.0 / float( boneTextureSize );\\n\\t\\t\\tfloat dy = 1.0 / float( boneTextureSize );\\n\\t\\t\\ty = dy * ( y + 0.5 );\\n\\t\\t\\tvec4 v1 = texture2D( boneTexture, vec2( dx * ( x + 0.5 ), y ) );\\n\\t\\t\\tvec4 v2 = texture2D( boneTexture, vec2( dx * ( x + 1.5 ), y ) );\\n\\t\\t\\tvec4 v3 = texture2D( boneTexture, vec2( dx * ( x + 2.5 ), y ) );\\n\\t\\t\\tvec4 v4 = texture2D( boneTexture, vec2( dx * ( x + 3.5 ), y ) );\\n\\t\\t\\tmat4 bone = mat4( v1, v2, v3, v4 );\\n\\t\\t\\treturn bone;\\n\\t\\t}\\n\\t#else\\n\\t\\tuniform mat4 boneMatrices[ MAX_BONES ];\\n\\t\\tmat4 getBoneMatrix( const in float i ) {\\n\\t\\t\\tmat4 bone = boneMatrices[ int(i) ];\\n\\t\\t\\treturn bone;\\n\\t\\t}\\n\\t#endif\\n#endif\";var skinning_vertex=\"#ifdef USE_SKINNING\\n\\tvec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );\\n\\tvec4 skinned = vec4( 0.0 );\\n\\tskinned += boneMatX * skinVertex * skinWeight.x;\\n\\tskinned += boneMatY * skinVertex * skinWeight.y;\\n\\tskinned += boneMatZ * skinVertex * skinWeight.z;\\n\\tskinned += boneMatW * skinVertex * skinWeight.w;\\n\\ttransformed = ( bindMatrixInverse * skinned ).xyz;\\n#endif\";var skinnormal_vertex=\"#ifdef USE_SKINNING\\n\\tmat4 skinMatrix = mat4( 0.0 );\\n\\tskinMatrix += skinWeight.x * boneMatX;\\n\\tskinMatrix += skinWeight.y * boneMatY;\\n\\tskinMatrix += skinWeight.z * boneMatZ;\\n\\tskinMatrix += skinWeight.w * boneMatW;\\n\\tskinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;\\n\\tobjectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;\\n\\t#ifdef USE_TANGENT\\n\\t\\tobjectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;\\n\\t#endif\\n#endif\";var specularmap_fragment=\"float specularStrength;\\n#ifdef USE_SPECULARMAP\\n\\tvec4 texelSpecular = texture2D( specularMap, vUv );\\n\\tspecularStrength = texelSpecular.r;\\n#else\\n\\tspecularStrength = 1.0;\\n#endif\";var specularmap_pars_fragment=\"#ifdef USE_SPECULARMAP\\n\\tuniform sampler2D specularMap;\\n#endif\";var tonemapping_fragment=\"#if defined( TONE_MAPPING )\\n\\tgl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\\n#endif\";var tonemapping_pars_fragment=\"#ifndef saturate\\n#define saturate(a) clamp( a, 0.0, 1.0 )\\n#endif\\nuniform float toneMappingExposure;\\nvec3 LinearToneMapping( vec3 color ) {\\n\\treturn toneMappingExposure * color;\\n}\\nvec3 ReinhardToneMapping( vec3 color ) {\\n\\tcolor *= toneMappingExposure;\\n\\treturn saturate( color / ( vec3( 1.0 ) + color ) );\\n}\\nvec3 OptimizedCineonToneMapping( vec3 color ) {\\n\\tcolor *= toneMappingExposure;\\n\\tcolor = max( vec3( 0.0 ), color - 0.004 );\\n\\treturn pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );\\n}\\nvec3 RRTAndODTFit( vec3 v ) {\\n\\tvec3 a = v * ( v + 0.0245786 ) - 0.000090537;\\n\\tvec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;\\n\\treturn a / b;\\n}\\nvec3 ACESFilmicToneMapping( vec3 color ) {\\n\\tconst mat3 ACESInputMat = mat3(\\n\\t\\tvec3( 0.59719, 0.07600, 0.02840 ),\\t\\tvec3( 0.35458, 0.90834, 0.13383 ),\\n\\t\\tvec3( 0.04823, 0.01566, 0.83777 )\\n\\t);\\n\\tconst mat3 ACESOutputMat = mat3(\\n\\t\\tvec3(  1.60475, -0.10208, -0.00327 ),\\t\\tvec3( -0.53108,  1.10813, -0.07276 ),\\n\\t\\tvec3( -0.07367, -0.00605,  1.07602 )\\n\\t);\\n\\tcolor *= toneMappingExposure / 0.6;\\n\\tcolor = ACESInputMat * color;\\n\\tcolor = RRTAndODTFit( color );\\n\\tcolor = ACESOutputMat * color;\\n\\treturn saturate( color );\\n}\\nvec3 CustomToneMapping( vec3 color ) { return color; }\";var transmissionmap_fragment=\"#ifdef USE_TRANSMISSIONMAP\\n\\ttotalTransmission *= texture2D( transmissionMap, vUv ).r;\\n#endif\";var transmissionmap_pars_fragment=\"#ifdef USE_TRANSMISSIONMAP\\n\\tuniform sampler2D transmissionMap;\\n#endif\";var uv_pars_fragment=\"#if ( defined( USE_UV ) && ! defined( UVS_VERTEX_ONLY ) )\\n\\tvarying vec2 vUv;\\n#endif\";var uv_pars_vertex=\"#ifdef USE_UV\\n\\t#ifdef UVS_VERTEX_ONLY\\n\\t\\tvec2 vUv;\\n\\t#else\\n\\t\\tvarying vec2 vUv;\\n\\t#endif\\n\\tuniform mat3 uvTransform;\\n#endif\";var uv_vertex=\"#ifdef USE_UV\\n\\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\\n#endif\";var uv2_pars_fragment=\"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\\n\\tvarying vec2 vUv2;\\n#endif\";var uv2_pars_vertex=\"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\\n\\tattribute vec2 uv2;\\n\\tvarying vec2 vUv2;\\n\\tuniform mat3 uv2Transform;\\n#endif\";var uv2_vertex=\"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\\n\\tvUv2 = ( uv2Transform * vec3( uv2, 1 ) ).xy;\\n#endif\";var worldpos_vertex=\"#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP )\\n\\tvec4 worldPosition = vec4( transformed, 1.0 );\\n\\t#ifdef USE_INSTANCING\\n\\t\\tworldPosition = instanceMatrix * worldPosition;\\n\\t#endif\\n\\tworldPosition = modelMatrix * worldPosition;\\n#endif\";var background_frag=\"uniform sampler2D t2D;\\nvarying vec2 vUv;\\nvoid main() {\\n\\tvec4 texColor = texture2D( t2D, vUv );\\n\\tgl_FragColor = mapTexelToLinear( texColor );\\n\\t#include <tonemapping_fragment>\\n\\t#include <encodings_fragment>\\n}\";var background_vert=\"varying vec2 vUv;\\nuniform mat3 uvTransform;\\nvoid main() {\\n\\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\\n\\tgl_Position = vec4( position.xy, 1.0, 1.0 );\\n}\";var cube_frag=\"#include <envmap_common_pars_fragment>\\nuniform float opacity;\\nvarying vec3 vWorldDirection;\\n#include <cube_uv_reflection_fragment>\\nvoid main() {\\n\\tvec3 vReflect = vWorldDirection;\\n\\t#include <envmap_fragment>\\n\\tgl_FragColor = envColor;\\n\\tgl_FragColor.a *= opacity;\\n\\t#include <tonemapping_fragment>\\n\\t#include <encodings_fragment>\\n}\";var cube_vert=\"varying vec3 vWorldDirection;\\n#include <common>\\nvoid main() {\\n\\tvWorldDirection = transformDirection( position, modelMatrix );\\n\\t#include <begin_vertex>\\n\\t#include <project_vertex>\\n\\tgl_Position.z = gl_Position.w;\\n}\";var depth_frag=\"#if DEPTH_PACKING == 3200\\n\\tuniform float opacity;\\n#endif\\n#include <common>\\n#include <packing>\\n#include <uv_pars_fragment>\\n#include <map_pars_fragment>\\n#include <alphamap_pars_fragment>\\n#include <logdepthbuf_pars_fragment>\\n#include <clipping_planes_pars_fragment>\\nvarying vec2 vHighPrecisionZW;\\nvoid main() {\\n\\t#include <clipping_planes_fragment>\\n\\tvec4 diffuseColor = vec4( 1.0 );\\n\\t#if DEPTH_PACKING == 3200\\n\\t\\tdiffuseColor.a = opacity;\\n\\t#endif\\n\\t#include <map_fragment>\\n\\t#include <alphamap_fragment>\\n\\t#include <alphatest_fragment>\\n\\t#include <logdepthbuf_fragment>\\n\\tfloat fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5;\\n\\t#if DEPTH_PACKING == 3200\\n\\t\\tgl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );\\n\\t#elif DEPTH_PACKING == 3201\\n\\t\\tgl_FragColor = packDepthToRGBA( fragCoordZ );\\n\\t#endif\\n}\";var depth_vert=\"#include <common>\\n#include <uv_pars_vertex>\\n#include <displacementmap_pars_vertex>\\n#include <morphtarget_pars_vertex>\\n#include <skinning_pars_vertex>\\n#include <logdepthbuf_pars_vertex>\\n#include <clipping_planes_pars_vertex>\\nvarying vec2 vHighPrecisionZW;\\nvoid main() {\\n\\t#include <uv_vertex>\\n\\t#include <skinbase_vertex>\\n\\t#ifdef USE_DISPLACEMENTMAP\\n\\t\\t#include <beginnormal_vertex>\\n\\t\\t#include <morphnormal_vertex>\\n\\t\\t#include <skinnormal_vertex>\\n\\t#endif\\n\\t#include <begin_vertex>\\n\\t#include <morphtarget_vertex>\\n\\t#include <skinning_vertex>\\n\\t#include <displacementmap_vertex>\\n\\t#include <project_vertex>\\n\\t#include <logdepthbuf_vertex>\\n\\t#include <clipping_planes_vertex>\\n\\tvHighPrecisionZW = gl_Position.zw;\\n}\";var distanceRGBA_frag=\"#define DISTANCE\\nuniform vec3 referencePosition;\\nuniform float nearDistance;\\nuniform float farDistance;\\nvarying vec3 vWorldPosition;\\n#include <common>\\n#include <packing>\\n#include <uv_pars_fragment>\\n#include <map_pars_fragment>\\n#include <alphamap_pars_fragment>\\n#include <clipping_planes_pars_fragment>\\nvoid main () {\\n\\t#include <clipping_planes_fragment>\\n\\tvec4 diffuseColor = vec4( 1.0 );\\n\\t#include <map_fragment>\\n\\t#include <alphamap_fragment>\\n\\t#include <alphatest_fragment>\\n\\tfloat dist = length( vWorldPosition - referencePosition );\\n\\tdist = ( dist - nearDistance ) / ( farDistance - nearDistance );\\n\\tdist = saturate( dist );\\n\\tgl_FragColor = packDepthToRGBA( dist );\\n}\";var distanceRGBA_vert=\"#define DISTANCE\\nvarying vec3 vWorldPosition;\\n#include <common>\\n#include <uv_pars_vertex>\\n#include <displacementmap_pars_vertex>\\n#include <morphtarget_pars_vertex>\\n#include <skinning_pars_vertex>\\n#include <clipping_planes_pars_vertex>\\nvoid main() {\\n\\t#include <uv_vertex>\\n\\t#include <skinbase_vertex>\\n\\t#ifdef USE_DISPLACEMENTMAP\\n\\t\\t#include <beginnormal_vertex>\\n\\t\\t#include <morphnormal_vertex>\\n\\t\\t#include <skinnormal_vertex>\\n\\t#endif\\n\\t#include <begin_vertex>\\n\\t#include <morphtarget_vertex>\\n\\t#include <skinning_vertex>\\n\\t#include <displacementmap_vertex>\\n\\t#include <project_vertex>\\n\\t#include <worldpos_vertex>\\n\\t#include <clipping_planes_vertex>\\n\\tvWorldPosition = worldPosition.xyz;\\n}\";var equirect_frag=\"uniform sampler2D tEquirect;\\nvarying vec3 vWorldDirection;\\n#include <common>\\nvoid main() {\\n\\tvec3 direction = normalize( vWorldDirection );\\n\\tvec2 sampleUV = equirectUv( direction );\\n\\tvec4 texColor = texture2D( tEquirect, sampleUV );\\n\\tgl_FragColor = mapTexelToLinear( texColor );\\n\\t#include <tonemapping_fragment>\\n\\t#include <encodings_fragment>\\n}\";var equirect_vert=\"varying vec3 vWorldDirection;\\n#include <common>\\nvoid main() {\\n\\tvWorldDirection = transformDirection( position, modelMatrix );\\n\\t#include <begin_vertex>\\n\\t#include <project_vertex>\\n}\";var linedashed_frag=\"uniform vec3 diffuse;\\nuniform float opacity;\\nuniform float dashSize;\\nuniform float totalSize;\\nvarying float vLineDistance;\\n#include <common>\\n#include <color_pars_fragment>\\n#include <fog_pars_fragment>\\n#include <logdepthbuf_pars_fragment>\\n#include <clipping_planes_pars_fragment>\\nvoid main() {\\n\\t#include <clipping_planes_fragment>\\n\\tif ( mod( vLineDistance, totalSize ) > dashSize ) {\\n\\t\\tdiscard;\\n\\t}\\n\\tvec3 outgoingLight = vec3( 0.0 );\\n\\tvec4 diffuseColor = vec4( diffuse, opacity );\\n\\t#include <logdepthbuf_fragment>\\n\\t#include <color_fragment>\\n\\toutgoingLight = diffuseColor.rgb;\\n\\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\\n\\t#include <tonemapping_fragment>\\n\\t#include <encodings_fragment>\\n\\t#include <fog_fragment>\\n\\t#include <premultiplied_alpha_fragment>\\n}\";var linedashed_vert=\"uniform float scale;\\nattribute float lineDistance;\\nvarying float vLineDistance;\\n#include <common>\\n#include <color_pars_vertex>\\n#include <fog_pars_vertex>\\n#include <morphtarget_pars_vertex>\\n#include <logdepthbuf_pars_vertex>\\n#include <clipping_planes_pars_vertex>\\nvoid main() {\\n\\tvLineDistance = scale * lineDistance;\\n\\t#include <color_vertex>\\n\\t#include <begin_vertex>\\n\\t#include <morphtarget_vertex>\\n\\t#include <project_vertex>\\n\\t#include <logdepthbuf_vertex>\\n\\t#include <clipping_planes_vertex>\\n\\t#include <fog_vertex>\\n}\";var meshbasic_frag=\"uniform vec3 diffuse;\\nuniform float opacity;\\n#ifndef FLAT_SHADED\\n\\tvarying vec3 vNormal;\\n#endif\\n#include <common>\\n#include <dithering_pars_fragment>\\n#include <color_pars_fragment>\\n#include <uv_pars_fragment>\\n#include <uv2_pars_fragment>\\n#include <map_pars_fragment>\\n#include <alphamap_pars_fragment>\\n#include <aomap_pars_fragment>\\n#include <lightmap_pars_fragment>\\n#include <envmap_common_pars_fragment>\\n#include <envmap_pars_fragment>\\n#include <cube_uv_reflection_fragment>\\n#include <fog_pars_fragment>\\n#include <specularmap_pars_fragment>\\n#include <logdepthbuf_pars_fragment>\\n#include <clipping_planes_pars_fragment>\\nvoid main() {\\n\\t#include <clipping_planes_fragment>\\n\\tvec4 diffuseColor = vec4( diffuse, opacity );\\n\\t#include <logdepthbuf_fragment>\\n\\t#include <map_fragment>\\n\\t#include <color_fragment>\\n\\t#include <alphamap_fragment>\\n\\t#include <alphatest_fragment>\\n\\t#include <specularmap_fragment>\\n\\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\\n\\t#ifdef USE_LIGHTMAP\\n\\t\\n\\t\\tvec4 lightMapTexel= texture2D( lightMap, vUv2 );\\n\\t\\treflectedLight.indirectDiffuse += lightMapTexelToLinear( lightMapTexel ).rgb * lightMapIntensity;\\n\\t#else\\n\\t\\treflectedLight.indirectDiffuse += vec3( 1.0 );\\n\\t#endif\\n\\t#include <aomap_fragment>\\n\\treflectedLight.indirectDiffuse *= diffuseColor.rgb;\\n\\tvec3 outgoingLight = reflectedLight.indirectDiffuse;\\n\\t#include <envmap_fragment>\\n\\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\\n\\t#include <tonemapping_fragment>\\n\\t#include <encodings_fragment>\\n\\t#include <fog_fragment>\\n\\t#include <premultiplied_alpha_fragment>\\n\\t#include <dithering_fragment>\\n}\";var meshbasic_vert=\"#include <common>\\n#include <uv_pars_vertex>\\n#include <uv2_pars_vertex>\\n#include <envmap_pars_vertex>\\n#include <color_pars_vertex>\\n#include <fog_pars_vertex>\\n#include <morphtarget_pars_vertex>\\n#include <skinning_pars_vertex>\\n#include <logdepthbuf_pars_vertex>\\n#include <clipping_planes_pars_vertex>\\nvoid main() {\\n\\t#include <uv_vertex>\\n\\t#include <uv2_vertex>\\n\\t#include <color_vertex>\\n\\t#include <skinbase_vertex>\\n\\t#ifdef USE_ENVMAP\\n\\t#include <beginnormal_vertex>\\n\\t#include <morphnormal_vertex>\\n\\t#include <skinnormal_vertex>\\n\\t#include <defaultnormal_vertex>\\n\\t#endif\\n\\t#include <begin_vertex>\\n\\t#include <morphtarget_vertex>\\n\\t#include <skinning_vertex>\\n\\t#include <project_vertex>\\n\\t#include <logdepthbuf_vertex>\\n\\t#include <worldpos_vertex>\\n\\t#include <clipping_planes_vertex>\\n\\t#include <envmap_vertex>\\n\\t#include <fog_vertex>\\n}\";var meshlambert_frag=\"uniform vec3 diffuse;\\nuniform vec3 emissive;\\nuniform float opacity;\\nvarying vec3 vLightFront;\\nvarying vec3 vIndirectFront;\\n#ifdef DOUBLE_SIDED\\n\\tvarying vec3 vLightBack;\\n\\tvarying vec3 vIndirectBack;\\n#endif\\n#include <common>\\n#include <packing>\\n#include <dithering_pars_fragment>\\n#include <color_pars_fragment>\\n#include <uv_pars_fragment>\\n#include <uv2_pars_fragment>\\n#include <map_pars_fragment>\\n#include <alphamap_pars_fragment>\\n#include <aomap_pars_fragment>\\n#include <lightmap_pars_fragment>\\n#include <emissivemap_pars_fragment>\\n#include <envmap_common_pars_fragment>\\n#include <envmap_pars_fragment>\\n#include <cube_uv_reflection_fragment>\\n#include <bsdfs>\\n#include <lights_pars_begin>\\n#include <fog_pars_fragment>\\n#include <shadowmap_pars_fragment>\\n#include <shadowmask_pars_fragment>\\n#include <specularmap_pars_fragment>\\n#include <logdepthbuf_pars_fragment>\\n#include <clipping_planes_pars_fragment>\\nvoid main() {\\n\\t#include <clipping_planes_fragment>\\n\\tvec4 diffuseColor = vec4( diffuse, opacity );\\n\\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\\n\\tvec3 totalEmissiveRadiance = emissive;\\n\\t#include <logdepthbuf_fragment>\\n\\t#include <map_fragment>\\n\\t#include <color_fragment>\\n\\t#include <alphamap_fragment>\\n\\t#include <alphatest_fragment>\\n\\t#include <specularmap_fragment>\\n\\t#include <emissivemap_fragment>\\n\\t#ifdef DOUBLE_SIDED\\n\\t\\treflectedLight.indirectDiffuse += ( gl_FrontFacing ) ? vIndirectFront : vIndirectBack;\\n\\t#else\\n\\t\\treflectedLight.indirectDiffuse += vIndirectFront;\\n\\t#endif\\n\\t#include <lightmap_fragment>\\n\\treflectedLight.indirectDiffuse *= BRDF_Diffuse_Lambert( diffuseColor.rgb );\\n\\t#ifdef DOUBLE_SIDED\\n\\t\\treflectedLight.directDiffuse = ( gl_FrontFacing ) ? vLightFront : vLightBack;\\n\\t#else\\n\\t\\treflectedLight.directDiffuse = vLightFront;\\n\\t#endif\\n\\treflectedLight.directDiffuse *= BRDF_Diffuse_Lambert( diffuseColor.rgb ) * getShadowMask();\\n\\t#include <aomap_fragment>\\n\\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\\n\\t#include <envmap_fragment>\\n\\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\\n\\t#include <tonemapping_fragment>\\n\\t#include <encodings_fragment>\\n\\t#include <fog_fragment>\\n\\t#include <premultiplied_alpha_fragment>\\n\\t#include <dithering_fragment>\\n}\";var meshlambert_vert=\"#define LAMBERT\\nvarying vec3 vLightFront;\\nvarying vec3 vIndirectFront;\\n#ifdef DOUBLE_SIDED\\n\\tvarying vec3 vLightBack;\\n\\tvarying vec3 vIndirectBack;\\n#endif\\n#include <common>\\n#include <uv_pars_vertex>\\n#include <uv2_pars_vertex>\\n#include <envmap_pars_vertex>\\n#include <bsdfs>\\n#include <lights_pars_begin>\\n#include <color_pars_vertex>\\n#include <fog_pars_vertex>\\n#include <morphtarget_pars_vertex>\\n#include <skinning_pars_vertex>\\n#include <shadowmap_pars_vertex>\\n#include <logdepthbuf_pars_vertex>\\n#include <clipping_planes_pars_vertex>\\nvoid main() {\\n\\t#include <uv_vertex>\\n\\t#include <uv2_vertex>\\n\\t#include <color_vertex>\\n\\t#include <beginnormal_vertex>\\n\\t#include <morphnormal_vertex>\\n\\t#include <skinbase_vertex>\\n\\t#include <skinnormal_vertex>\\n\\t#include <defaultnormal_vertex>\\n\\t#include <begin_vertex>\\n\\t#include <morphtarget_vertex>\\n\\t#include <skinning_vertex>\\n\\t#include <project_vertex>\\n\\t#include <logdepthbuf_vertex>\\n\\t#include <clipping_planes_vertex>\\n\\t#include <worldpos_vertex>\\n\\t#include <envmap_vertex>\\n\\t#include <lights_lambert_vertex>\\n\\t#include <shadowmap_vertex>\\n\\t#include <fog_vertex>\\n}\";var meshmatcap_frag=\"#define MATCAP\\nuniform vec3 diffuse;\\nuniform float opacity;\\nuniform sampler2D matcap;\\nvarying vec3 vViewPosition;\\n#ifndef FLAT_SHADED\\n\\tvarying vec3 vNormal;\\n#endif\\n#include <common>\\n#include <dithering_pars_fragment>\\n#include <color_pars_fragment>\\n#include <uv_pars_fragment>\\n#include <map_pars_fragment>\\n#include <alphamap_pars_fragment>\\n#include <fog_pars_fragment>\\n#include <bumpmap_pars_fragment>\\n#include <normalmap_pars_fragment>\\n#include <logdepthbuf_pars_fragment>\\n#include <clipping_planes_pars_fragment>\\nvoid main() {\\n\\t#include <clipping_planes_fragment>\\n\\tvec4 diffuseColor = vec4( diffuse, opacity );\\n\\t#include <logdepthbuf_fragment>\\n\\t#include <map_fragment>\\n\\t#include <color_fragment>\\n\\t#include <alphamap_fragment>\\n\\t#include <alphatest_fragment>\\n\\t#include <normal_fragment_begin>\\n\\t#include <normal_fragment_maps>\\n\\tvec3 viewDir = normalize( vViewPosition );\\n\\tvec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) );\\n\\tvec3 y = cross( viewDir, x );\\n\\tvec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5;\\n\\t#ifdef USE_MATCAP\\n\\t\\tvec4 matcapColor = texture2D( matcap, uv );\\n\\t\\tmatcapColor = matcapTexelToLinear( matcapColor );\\n\\t#else\\n\\t\\tvec4 matcapColor = vec4( 1.0 );\\n\\t#endif\\n\\tvec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;\\n\\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\\n\\t#include <tonemapping_fragment>\\n\\t#include <encodings_fragment>\\n\\t#include <fog_fragment>\\n\\t#include <premultiplied_alpha_fragment>\\n\\t#include <dithering_fragment>\\n}\";var meshmatcap_vert=\"#define MATCAP\\nvarying vec3 vViewPosition;\\n#ifndef FLAT_SHADED\\n\\tvarying vec3 vNormal;\\n#endif\\n#include <common>\\n#include <uv_pars_vertex>\\n#include <color_pars_vertex>\\n#include <displacementmap_pars_vertex>\\n#include <fog_pars_vertex>\\n#include <morphtarget_pars_vertex>\\n#include <skinning_pars_vertex>\\n#include <logdepthbuf_pars_vertex>\\n#include <clipping_planes_pars_vertex>\\nvoid main() {\\n\\t#include <uv_vertex>\\n\\t#include <color_vertex>\\n\\t#include <beginnormal_vertex>\\n\\t#include <morphnormal_vertex>\\n\\t#include <skinbase_vertex>\\n\\t#include <skinnormal_vertex>\\n\\t#include <defaultnormal_vertex>\\n\\t#ifndef FLAT_SHADED\\n\\t\\tvNormal = normalize( transformedNormal );\\n\\t#endif\\n\\t#include <begin_vertex>\\n\\t#include <morphtarget_vertex>\\n\\t#include <skinning_vertex>\\n\\t#include <displacementmap_vertex>\\n\\t#include <project_vertex>\\n\\t#include <logdepthbuf_vertex>\\n\\t#include <clipping_planes_vertex>\\n\\t#include <fog_vertex>\\n\\tvViewPosition = - mvPosition.xyz;\\n}\";var meshtoon_frag=\"#define TOON\\nuniform vec3 diffuse;\\nuniform vec3 emissive;\\nuniform float opacity;\\n#include <common>\\n#include <packing>\\n#include <dithering_pars_fragment>\\n#include <color_pars_fragment>\\n#include <uv_pars_fragment>\\n#include <uv2_pars_fragment>\\n#include <map_pars_fragment>\\n#include <alphamap_pars_fragment>\\n#include <aomap_pars_fragment>\\n#include <lightmap_pars_fragment>\\n#include <emissivemap_pars_fragment>\\n#include <gradientmap_pars_fragment>\\n#include <fog_pars_fragment>\\n#include <bsdfs>\\n#include <lights_pars_begin>\\n#include <lights_toon_pars_fragment>\\n#include <shadowmap_pars_fragment>\\n#include <bumpmap_pars_fragment>\\n#include <normalmap_pars_fragment>\\n#include <logdepthbuf_pars_fragment>\\n#include <clipping_planes_pars_fragment>\\nvoid main() {\\n\\t#include <clipping_planes_fragment>\\n\\tvec4 diffuseColor = vec4( diffuse, opacity );\\n\\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\\n\\tvec3 totalEmissiveRadiance = emissive;\\n\\t#include <logdepthbuf_fragment>\\n\\t#include <map_fragment>\\n\\t#include <color_fragment>\\n\\t#include <alphamap_fragment>\\n\\t#include <alphatest_fragment>\\n\\t#include <normal_fragment_begin>\\n\\t#include <normal_fragment_maps>\\n\\t#include <emissivemap_fragment>\\n\\t#include <lights_toon_fragment>\\n\\t#include <lights_fragment_begin>\\n\\t#include <lights_fragment_maps>\\n\\t#include <lights_fragment_end>\\n\\t#include <aomap_fragment>\\n\\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\\n\\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\\n\\t#include <tonemapping_fragment>\\n\\t#include <encodings_fragment>\\n\\t#include <fog_fragment>\\n\\t#include <premultiplied_alpha_fragment>\\n\\t#include <dithering_fragment>\\n}\";var meshtoon_vert=\"#define TOON\\nvarying vec3 vViewPosition;\\n#ifndef FLAT_SHADED\\n\\tvarying vec3 vNormal;\\n#endif\\n#include <common>\\n#include <uv_pars_vertex>\\n#include <uv2_pars_vertex>\\n#include <displacementmap_pars_vertex>\\n#include <color_pars_vertex>\\n#include <fog_pars_vertex>\\n#include <morphtarget_pars_vertex>\\n#include <skinning_pars_vertex>\\n#include <shadowmap_pars_vertex>\\n#include <logdepthbuf_pars_vertex>\\n#include <clipping_planes_pars_vertex>\\nvoid main() {\\n\\t#include <uv_vertex>\\n\\t#include <uv2_vertex>\\n\\t#include <color_vertex>\\n\\t#include <beginnormal_vertex>\\n\\t#include <morphnormal_vertex>\\n\\t#include <skinbase_vertex>\\n\\t#include <skinnormal_vertex>\\n\\t#include <defaultnormal_vertex>\\n#ifndef FLAT_SHADED\\n\\tvNormal = normalize( transformedNormal );\\n#endif\\n\\t#include <begin_vertex>\\n\\t#include <morphtarget_vertex>\\n\\t#include <skinning_vertex>\\n\\t#include <displacementmap_vertex>\\n\\t#include <project_vertex>\\n\\t#include <logdepthbuf_vertex>\\n\\t#include <clipping_planes_vertex>\\n\\tvViewPosition = - mvPosition.xyz;\\n\\t#include <worldpos_vertex>\\n\\t#include <shadowmap_vertex>\\n\\t#include <fog_vertex>\\n}\";var meshphong_frag=\"#define PHONG\\nuniform vec3 diffuse;\\nuniform vec3 emissive;\\nuniform vec3 specular;\\nuniform float shininess;\\nuniform float opacity;\\n#include <common>\\n#include <packing>\\n#include <dithering_pars_fragment>\\n#include <color_pars_fragment>\\n#include <uv_pars_fragment>\\n#include <uv2_pars_fragment>\\n#include <map_pars_fragment>\\n#include <alphamap_pars_fragment>\\n#include <aomap_pars_fragment>\\n#include <lightmap_pars_fragment>\\n#include <emissivemap_pars_fragment>\\n#include <envmap_common_pars_fragment>\\n#include <envmap_pars_fragment>\\n#include <cube_uv_reflection_fragment>\\n#include <fog_pars_fragment>\\n#include <bsdfs>\\n#include <lights_pars_begin>\\n#include <lights_phong_pars_fragment>\\n#include <shadowmap_pars_fragment>\\n#include <bumpmap_pars_fragment>\\n#include <normalmap_pars_fragment>\\n#include <specularmap_pars_fragment>\\n#include <logdepthbuf_pars_fragment>\\n#include <clipping_planes_pars_fragment>\\nvoid main() {\\n\\t#include <clipping_planes_fragment>\\n\\tvec4 diffuseColor = vec4( diffuse, opacity );\\n\\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\\n\\tvec3 totalEmissiveRadiance = emissive;\\n\\t#include <logdepthbuf_fragment>\\n\\t#include <map_fragment>\\n\\t#include <color_fragment>\\n\\t#include <alphamap_fragment>\\n\\t#include <alphatest_fragment>\\n\\t#include <specularmap_fragment>\\n\\t#include <normal_fragment_begin>\\n\\t#include <normal_fragment_maps>\\n\\t#include <emissivemap_fragment>\\n\\t#include <lights_phong_fragment>\\n\\t#include <lights_fragment_begin>\\n\\t#include <lights_fragment_maps>\\n\\t#include <lights_fragment_end>\\n\\t#include <aomap_fragment>\\n\\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\\n\\t#include <envmap_fragment>\\n\\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\\n\\t#include <tonemapping_fragment>\\n\\t#include <encodings_fragment>\\n\\t#include <fog_fragment>\\n\\t#include <premultiplied_alpha_fragment>\\n\\t#include <dithering_fragment>\\n}\";var meshphong_vert=\"#define PHONG\\nvarying vec3 vViewPosition;\\n#ifndef FLAT_SHADED\\n\\tvarying vec3 vNormal;\\n#endif\\n#include <common>\\n#include <uv_pars_vertex>\\n#include <uv2_pars_vertex>\\n#include <displacementmap_pars_vertex>\\n#include <envmap_pars_vertex>\\n#include <color_pars_vertex>\\n#include <fog_pars_vertex>\\n#include <morphtarget_pars_vertex>\\n#include <skinning_pars_vertex>\\n#include <shadowmap_pars_vertex>\\n#include <logdepthbuf_pars_vertex>\\n#include <clipping_planes_pars_vertex>\\nvoid main() {\\n\\t#include <uv_vertex>\\n\\t#include <uv2_vertex>\\n\\t#include <color_vertex>\\n\\t#include <beginnormal_vertex>\\n\\t#include <morphnormal_vertex>\\n\\t#include <skinbase_vertex>\\n\\t#include <skinnormal_vertex>\\n\\t#include <defaultnormal_vertex>\\n#ifndef FLAT_SHADED\\n\\tvNormal = normalize( transformedNormal );\\n#endif\\n\\t#include <begin_vertex>\\n\\t#include <morphtarget_vertex>\\n\\t#include <skinning_vertex>\\n\\t#include <displacementmap_vertex>\\n\\t#include <project_vertex>\\n\\t#include <logdepthbuf_vertex>\\n\\t#include <clipping_planes_vertex>\\n\\tvViewPosition = - mvPosition.xyz;\\n\\t#include <worldpos_vertex>\\n\\t#include <envmap_vertex>\\n\\t#include <shadowmap_vertex>\\n\\t#include <fog_vertex>\\n}\";var meshphysical_frag=\"#define STANDARD\\n#ifdef PHYSICAL\\n\\t#define REFLECTIVITY\\n\\t#define CLEARCOAT\\n\\t#define TRANSMISSION\\n#endif\\nuniform vec3 diffuse;\\nuniform vec3 emissive;\\nuniform float roughness;\\nuniform float metalness;\\nuniform float opacity;\\n#ifdef TRANSMISSION\\n\\tuniform float transmission;\\n#endif\\n#ifdef REFLECTIVITY\\n\\tuniform float reflectivity;\\n#endif\\n#ifdef CLEARCOAT\\n\\tuniform float clearcoat;\\n\\tuniform float clearcoatRoughness;\\n#endif\\n#ifdef USE_SHEEN\\n\\tuniform vec3 sheen;\\n#endif\\nvarying vec3 vViewPosition;\\n#ifndef FLAT_SHADED\\n\\tvarying vec3 vNormal;\\n\\t#ifdef USE_TANGENT\\n\\t\\tvarying vec3 vTangent;\\n\\t\\tvarying vec3 vBitangent;\\n\\t#endif\\n#endif\\n#include <common>\\n#include <packing>\\n#include <dithering_pars_fragment>\\n#include <color_pars_fragment>\\n#include <uv_pars_fragment>\\n#include <uv2_pars_fragment>\\n#include <map_pars_fragment>\\n#include <alphamap_pars_fragment>\\n#include <aomap_pars_fragment>\\n#include <lightmap_pars_fragment>\\n#include <emissivemap_pars_fragment>\\n#include <transmissionmap_pars_fragment>\\n#include <bsdfs>\\n#include <cube_uv_reflection_fragment>\\n#include <envmap_common_pars_fragment>\\n#include <envmap_physical_pars_fragment>\\n#include <fog_pars_fragment>\\n#include <lights_pars_begin>\\n#include <lights_physical_pars_fragment>\\n#include <shadowmap_pars_fragment>\\n#include <bumpmap_pars_fragment>\\n#include <normalmap_pars_fragment>\\n#include <clearcoat_pars_fragment>\\n#include <roughnessmap_pars_fragment>\\n#include <metalnessmap_pars_fragment>\\n#include <logdepthbuf_pars_fragment>\\n#include <clipping_planes_pars_fragment>\\nvoid main() {\\n\\t#include <clipping_planes_fragment>\\n\\tvec4 diffuseColor = vec4( diffuse, opacity );\\n\\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\\n\\tvec3 totalEmissiveRadiance = emissive;\\n\\t#ifdef TRANSMISSION\\n\\t\\tfloat totalTransmission = transmission;\\n\\t#endif\\n\\t#include <logdepthbuf_fragment>\\n\\t#include <map_fragment>\\n\\t#include <color_fragment>\\n\\t#include <alphamap_fragment>\\n\\t#include <alphatest_fragment>\\n\\t#include <roughnessmap_fragment>\\n\\t#include <metalnessmap_fragment>\\n\\t#include <normal_fragment_begin>\\n\\t#include <normal_fragment_maps>\\n\\t#include <clearcoat_normal_fragment_begin>\\n\\t#include <clearcoat_normal_fragment_maps>\\n\\t#include <emissivemap_fragment>\\n\\t#include <transmissionmap_fragment>\\n\\t#include <lights_physical_fragment>\\n\\t#include <lights_fragment_begin>\\n\\t#include <lights_fragment_maps>\\n\\t#include <lights_fragment_end>\\n\\t#include <aomap_fragment>\\n\\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\\n\\t#ifdef TRANSMISSION\\n\\t\\tdiffuseColor.a *= mix( saturate( 1. - totalTransmission + linearToRelativeLuminance( reflectedLight.directSpecular + reflectedLight.indirectSpecular ) ), 1.0, metalness );\\n\\t#endif\\n\\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\\n\\t#include <tonemapping_fragment>\\n\\t#include <encodings_fragment>\\n\\t#include <fog_fragment>\\n\\t#include <premultiplied_alpha_fragment>\\n\\t#include <dithering_fragment>\\n}\";var meshphysical_vert=\"#define STANDARD\\nvarying vec3 vViewPosition;\\n#ifndef FLAT_SHADED\\n\\tvarying vec3 vNormal;\\n\\t#ifdef USE_TANGENT\\n\\t\\tvarying vec3 vTangent;\\n\\t\\tvarying vec3 vBitangent;\\n\\t#endif\\n#endif\\n#include <common>\\n#include <uv_pars_vertex>\\n#include <uv2_pars_vertex>\\n#include <displacementmap_pars_vertex>\\n#include <color_pars_vertex>\\n#include <fog_pars_vertex>\\n#include <morphtarget_pars_vertex>\\n#include <skinning_pars_vertex>\\n#include <shadowmap_pars_vertex>\\n#include <logdepthbuf_pars_vertex>\\n#include <clipping_planes_pars_vertex>\\nvoid main() {\\n\\t#include <uv_vertex>\\n\\t#include <uv2_vertex>\\n\\t#include <color_vertex>\\n\\t#include <beginnormal_vertex>\\n\\t#include <morphnormal_vertex>\\n\\t#include <skinbase_vertex>\\n\\t#include <skinnormal_vertex>\\n\\t#include <defaultnormal_vertex>\\n#ifndef FLAT_SHADED\\n\\tvNormal = normalize( transformedNormal );\\n\\t#ifdef USE_TANGENT\\n\\t\\tvTangent = normalize( transformedTangent );\\n\\t\\tvBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );\\n\\t#endif\\n#endif\\n\\t#include <begin_vertex>\\n\\t#include <morphtarget_vertex>\\n\\t#include <skinning_vertex>\\n\\t#include <displacementmap_vertex>\\n\\t#include <project_vertex>\\n\\t#include <logdepthbuf_vertex>\\n\\t#include <clipping_planes_vertex>\\n\\tvViewPosition = - mvPosition.xyz;\\n\\t#include <worldpos_vertex>\\n\\t#include <shadowmap_vertex>\\n\\t#include <fog_vertex>\\n}\";var normal_frag=\"#define NORMAL\\nuniform float opacity;\\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )\\n\\tvarying vec3 vViewPosition;\\n#endif\\n#ifndef FLAT_SHADED\\n\\tvarying vec3 vNormal;\\n\\t#ifdef USE_TANGENT\\n\\t\\tvarying vec3 vTangent;\\n\\t\\tvarying vec3 vBitangent;\\n\\t#endif\\n#endif\\n#include <packing>\\n#include <uv_pars_fragment>\\n#include <bumpmap_pars_fragment>\\n#include <normalmap_pars_fragment>\\n#include <logdepthbuf_pars_fragment>\\n#include <clipping_planes_pars_fragment>\\nvoid main() {\\n\\t#include <clipping_planes_fragment>\\n\\t#include <logdepthbuf_fragment>\\n\\t#include <normal_fragment_begin>\\n\\t#include <normal_fragment_maps>\\n\\tgl_FragColor = vec4( packNormalToRGB( normal ), opacity );\\n}\";var normal_vert=\"#define NORMAL\\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )\\n\\tvarying vec3 vViewPosition;\\n#endif\\n#ifndef FLAT_SHADED\\n\\tvarying vec3 vNormal;\\n\\t#ifdef USE_TANGENT\\n\\t\\tvarying vec3 vTangent;\\n\\t\\tvarying vec3 vBitangent;\\n\\t#endif\\n#endif\\n#include <common>\\n#include <uv_pars_vertex>\\n#include <displacementmap_pars_vertex>\\n#include <morphtarget_pars_vertex>\\n#include <skinning_pars_vertex>\\n#include <logdepthbuf_pars_vertex>\\n#include <clipping_planes_pars_vertex>\\nvoid main() {\\n\\t#include <uv_vertex>\\n\\t#include <beginnormal_vertex>\\n\\t#include <morphnormal_vertex>\\n\\t#include <skinbase_vertex>\\n\\t#include <skinnormal_vertex>\\n\\t#include <defaultnormal_vertex>\\n#ifndef FLAT_SHADED\\n\\tvNormal = normalize( transformedNormal );\\n\\t#ifdef USE_TANGENT\\n\\t\\tvTangent = normalize( transformedTangent );\\n\\t\\tvBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );\\n\\t#endif\\n#endif\\n\\t#include <begin_vertex>\\n\\t#include <morphtarget_vertex>\\n\\t#include <skinning_vertex>\\n\\t#include <displacementmap_vertex>\\n\\t#include <project_vertex>\\n\\t#include <logdepthbuf_vertex>\\n\\t#include <clipping_planes_vertex>\\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )\\n\\tvViewPosition = - mvPosition.xyz;\\n#endif\\n}\";var points_frag=\"uniform vec3 diffuse;\\nuniform float opacity;\\n#include <common>\\n#include <color_pars_fragment>\\n#include <map_particle_pars_fragment>\\n#include <fog_pars_fragment>\\n#include <logdepthbuf_pars_fragment>\\n#include <clipping_planes_pars_fragment>\\nvoid main() {\\n\\t#include <clipping_planes_fragment>\\n\\tvec3 outgoingLight = vec3( 0.0 );\\n\\tvec4 diffuseColor = vec4( diffuse, opacity );\\n\\t#include <logdepthbuf_fragment>\\n\\t#include <map_particle_fragment>\\n\\t#include <color_fragment>\\n\\t#include <alphatest_fragment>\\n\\toutgoingLight = diffuseColor.rgb;\\n\\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\\n\\t#include <tonemapping_fragment>\\n\\t#include <encodings_fragment>\\n\\t#include <fog_fragment>\\n\\t#include <premultiplied_alpha_fragment>\\n}\";var points_vert=\"uniform float size;\\nuniform float scale;\\n#include <common>\\n#include <color_pars_vertex>\\n#include <fog_pars_vertex>\\n#include <morphtarget_pars_vertex>\\n#include <logdepthbuf_pars_vertex>\\n#include <clipping_planes_pars_vertex>\\nvoid main() {\\n\\t#include <color_vertex>\\n\\t#include <begin_vertex>\\n\\t#include <morphtarget_vertex>\\n\\t#include <project_vertex>\\n\\tgl_PointSize = size;\\n\\t#ifdef USE_SIZEATTENUATION\\n\\t\\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\\n\\t\\tif ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z );\\n\\t#endif\\n\\t#include <logdepthbuf_vertex>\\n\\t#include <clipping_planes_vertex>\\n\\t#include <worldpos_vertex>\\n\\t#include <fog_vertex>\\n}\";var shadow_frag=\"uniform vec3 color;\\nuniform float opacity;\\n#include <common>\\n#include <packing>\\n#include <fog_pars_fragment>\\n#include <bsdfs>\\n#include <lights_pars_begin>\\n#include <shadowmap_pars_fragment>\\n#include <shadowmask_pars_fragment>\\nvoid main() {\\n\\tgl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );\\n\\t#include <tonemapping_fragment>\\n\\t#include <encodings_fragment>\\n\\t#include <fog_fragment>\\n}\";var shadow_vert=\"#include <common>\\n#include <fog_pars_vertex>\\n#include <shadowmap_pars_vertex>\\nvoid main() {\\n\\t#include <begin_vertex>\\n\\t#include <project_vertex>\\n\\t#include <worldpos_vertex>\\n\\t#include <beginnormal_vertex>\\n\\t#include <morphnormal_vertex>\\n\\t#include <skinbase_vertex>\\n\\t#include <skinnormal_vertex>\\n\\t#include <defaultnormal_vertex>\\n\\t#include <shadowmap_vertex>\\n\\t#include <fog_vertex>\\n}\";var sprite_frag=\"uniform vec3 diffuse;\\nuniform float opacity;\\n#include <common>\\n#include <uv_pars_fragment>\\n#include <map_pars_fragment>\\n#include <alphamap_pars_fragment>\\n#include <fog_pars_fragment>\\n#include <logdepthbuf_pars_fragment>\\n#include <clipping_planes_pars_fragment>\\nvoid main() {\\n\\t#include <clipping_planes_fragment>\\n\\tvec3 outgoingLight = vec3( 0.0 );\\n\\tvec4 diffuseColor = vec4( diffuse, opacity );\\n\\t#include <logdepthbuf_fragment>\\n\\t#include <map_fragment>\\n\\t#include <alphamap_fragment>\\n\\t#include <alphatest_fragment>\\n\\toutgoingLight = diffuseColor.rgb;\\n\\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\\n\\t#include <tonemapping_fragment>\\n\\t#include <encodings_fragment>\\n\\t#include <fog_fragment>\\n}\";var sprite_vert=\"uniform float rotation;\\nuniform vec2 center;\\n#include <common>\\n#include <uv_pars_vertex>\\n#include <fog_pars_vertex>\\n#include <logdepthbuf_pars_vertex>\\n#include <clipping_planes_pars_vertex>\\nvoid main() {\\n\\t#include <uv_vertex>\\n\\tvec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );\\n\\tvec2 scale;\\n\\tscale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) );\\n\\tscale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) );\\n\\t#ifndef USE_SIZEATTENUATION\\n\\t\\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\\n\\t\\tif ( isPerspective ) scale *= - mvPosition.z;\\n\\t#endif\\n\\tvec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale;\\n\\tvec2 rotatedPosition;\\n\\trotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;\\n\\trotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;\\n\\tmvPosition.xy += rotatedPosition;\\n\\tgl_Position = projectionMatrix * mvPosition;\\n\\t#include <logdepthbuf_vertex>\\n\\t#include <clipping_planes_vertex>\\n\\t#include <fog_vertex>\\n}\";var ShaderChunk={alphamap_fragment:alphamap_fragment,alphamap_pars_fragment:alphamap_pars_fragment,alphatest_fragment:alphatest_fragment,aomap_fragment:aomap_fragment,aomap_pars_fragment:aomap_pars_fragment,begin_vertex:begin_vertex,beginnormal_vertex:beginnormal_vertex,bsdfs:bsdfs,bumpmap_pars_fragment:bumpmap_pars_fragment,clipping_planes_fragment:clipping_planes_fragment,clipping_planes_pars_fragment:clipping_planes_pars_fragment,clipping_planes_pars_vertex:clipping_planes_pars_vertex,clipping_planes_vertex:clipping_planes_vertex,color_fragment:color_fragment,color_pars_fragment:color_pars_fragment,color_pars_vertex:color_pars_vertex,color_vertex:color_vertex,common:common,cube_uv_reflection_fragment:cube_uv_reflection_fragment,defaultnormal_vertex:defaultnormal_vertex,displacementmap_pars_vertex:displacementmap_pars_vertex,displacementmap_vertex:displacementmap_vertex,emissivemap_fragment:emissivemap_fragment,emissivemap_pars_fragment:emissivemap_pars_fragment,encodings_fragment:encodings_fragment,encodings_pars_fragment:encodings_pars_fragment,envmap_fragment:envmap_fragment,envmap_common_pars_fragment:envmap_common_pars_fragment,envmap_pars_fragment:envmap_pars_fragment,envmap_pars_vertex:envmap_pars_vertex,envmap_physical_pars_fragment:envmap_physical_pars_fragment,envmap_vertex:envmap_vertex,fog_vertex:fog_vertex,fog_pars_vertex:fog_pars_vertex,fog_fragment:fog_fragment,fog_pars_fragment:fog_pars_fragment,gradientmap_pars_fragment:gradientmap_pars_fragment,lightmap_fragment:lightmap_fragment,lightmap_pars_fragment:lightmap_pars_fragment,lights_lambert_vertex:lights_lambert_vertex,lights_pars_begin:lights_pars_begin,lights_toon_fragment:lights_toon_fragment,lights_toon_pars_fragment:lights_toon_pars_fragment,lights_phong_fragment:lights_phong_fragment,lights_phong_pars_fragment:lights_phong_pars_fragment,lights_physical_fragment:lights_physical_fragment,lights_physical_pars_fragment:lights_physical_pars_fragment,lights_fragment_begin:lights_fragment_begin,lights_fragment_maps:lights_fragment_maps,lights_fragment_end:lights_fragment_end,logdepthbuf_fragment:logdepthbuf_fragment,logdepthbuf_pars_fragment:logdepthbuf_pars_fragment,logdepthbuf_pars_vertex:logdepthbuf_pars_vertex,logdepthbuf_vertex:logdepthbuf_vertex,map_fragment:map_fragment,map_pars_fragment:map_pars_fragment,map_particle_fragment:map_particle_fragment,map_particle_pars_fragment:map_particle_pars_fragment,metalnessmap_fragment:metalnessmap_fragment,metalnessmap_pars_fragment:metalnessmap_pars_fragment,morphnormal_vertex:morphnormal_vertex,morphtarget_pars_vertex:morphtarget_pars_vertex,morphtarget_vertex:morphtarget_vertex,normal_fragment_begin:normal_fragment_begin,normal_fragment_maps:normal_fragment_maps,normalmap_pars_fragment:normalmap_pars_fragment,clearcoat_normal_fragment_begin:clearcoat_normal_fragment_begin,clearcoat_normal_fragment_maps:clearcoat_normal_fragment_maps,clearcoat_pars_fragment:clearcoat_pars_fragment,packing:packing,premultiplied_alpha_fragment:premultiplied_alpha_fragment,project_vertex:project_vertex,dithering_fragment:dithering_fragment,dithering_pars_fragment:dithering_pars_fragment,roughnessmap_fragment:roughnessmap_fragment,roughnessmap_pars_fragment:roughnessmap_pars_fragment,shadowmap_pars_fragment:shadowmap_pars_fragment,shadowmap_pars_vertex:shadowmap_pars_vertex,shadowmap_vertex:shadowmap_vertex,shadowmask_pars_fragment:shadowmask_pars_fragment,skinbase_vertex:skinbase_vertex,skinning_pars_vertex:skinning_pars_vertex,skinning_vertex:skinning_vertex,skinnormal_vertex:skinnormal_vertex,specularmap_fragment:specularmap_fragment,specularmap_pars_fragment:specularmap_pars_fragment,tonemapping_fragment:tonemapping_fragment,tonemapping_pars_fragment:tonemapping_pars_fragment,transmissionmap_fragment:transmissionmap_fragment,transmissionmap_pars_fragment:transmissionmap_pars_fragment,uv_pars_fragment:uv_pars_fragment,uv_pars_vertex:uv_pars_vertex,uv_vertex:uv_vertex,uv2_pars_fragment:uv2_pars_fragment,uv2_pars_vertex:uv2_pars_vertex,uv2_vertex:uv2_vertex,worldpos_vertex:worldpos_vertex,background_frag:background_frag,background_vert:background_vert,cube_frag:cube_frag,cube_vert:cube_vert,depth_frag:depth_frag,depth_vert:depth_vert,distanceRGBA_frag:distanceRGBA_frag,distanceRGBA_vert:distanceRGBA_vert,equirect_frag:equirect_frag,equirect_vert:equirect_vert,linedashed_frag:linedashed_frag,linedashed_vert:linedashed_vert,meshbasic_frag:meshbasic_frag,meshbasic_vert:meshbasic_vert,meshlambert_frag:meshlambert_frag,meshlambert_vert:meshlambert_vert,meshmatcap_frag:meshmatcap_frag,meshmatcap_vert:meshmatcap_vert,meshtoon_frag:meshtoon_frag,meshtoon_vert:meshtoon_vert,meshphong_frag:meshphong_frag,meshphong_vert:meshphong_vert,meshphysical_frag:meshphysical_frag,meshphysical_vert:meshphysical_vert,normal_frag:normal_frag,normal_vert:normal_vert,points_frag:points_frag,points_vert:points_vert,shadow_frag:shadow_frag,shadow_vert:shadow_vert,sprite_frag:sprite_frag,sprite_vert:sprite_vert};var UniformsLib={common:{diffuse:{value:new Color(0xeeeeee)},opacity:{value:1.0},map:{value:null},uvTransform:{value:new Matrix3()},uv2Transform:{value:new Matrix3()},alphaMap:{value:null}},specularmap:{specularMap:{value:null}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1.0},refractionRatio:{value:0.98},maxMipLevel:{value:0}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1}},emissivemap:{emissiveMap:{value:null}},bumpmap:{bumpMap:{value:null},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalScale:{value:new Vector2(1,1)}},displacementmap:{displacementMap:{value:null},displacementScale:{value:1},displacementBias:{value:0}},roughnessmap:{roughnessMap:{value:null}},metalnessmap:{metalnessMap:{value:null}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:0.00025},fogNear:{value:1},fogFar:{value:2000},fogColor:{value:new Color(0xffffff)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotShadowMap:{value:[]},spotShadowMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new Color(0xeeeeee)},opacity:{value:1.0},size:{value:1.0},scale:{value:1.0},map:{value:null},alphaMap:{value:null},uvTransform:{value:new Matrix3()}},sprite:{diffuse:{value:new Color(0xeeeeee)},opacity:{value:1.0},center:{value:new Vector2(0.5,0.5)},rotation:{value:0.0},map:{value:null},alphaMap:{value:null},uvTransform:{value:new Matrix3()}}};var ShaderLib={basic:{uniforms:mergeUniforms([UniformsLib.common,UniformsLib.specularmap,UniformsLib.envmap,UniformsLib.aomap,UniformsLib.lightmap,UniformsLib.fog]),vertexShader:ShaderChunk.meshbasic_vert,fragmentShader:ShaderChunk.meshbasic_frag},lambert:{uniforms:mergeUniforms([UniformsLib.common,UniformsLib.specularmap,UniformsLib.envmap,UniformsLib.aomap,UniformsLib.lightmap,UniformsLib.emissivemap,UniformsLib.fog,UniformsLib.lights,{emissive:{value:new Color(0x000000)}}]),vertexShader:ShaderChunk.meshlambert_vert,fragmentShader:ShaderChunk.meshlambert_frag},phong:{uniforms:mergeUniforms([UniformsLib.common,UniformsLib.specularmap,UniformsLib.envmap,UniformsLib.aomap,UniformsLib.lightmap,UniformsLib.emissivemap,UniformsLib.bumpmap,UniformsLib.normalmap,UniformsLib.displacementmap,UniformsLib.fog,UniformsLib.lights,{emissive:{value:new Color(0x000000)},specular:{value:new Color(0x111111)},shininess:{value:30}}]),vertexShader:ShaderChunk.meshphong_vert,fragmentShader:ShaderChunk.meshphong_frag},standard:{uniforms:mergeUniforms([UniformsLib.common,UniformsLib.envmap,UniformsLib.aomap,UniformsLib.lightmap,UniformsLib.emissivemap,UniformsLib.bumpmap,UniformsLib.normalmap,UniformsLib.displacementmap,UniformsLib.roughnessmap,UniformsLib.metalnessmap,UniformsLib.fog,UniformsLib.lights,{emissive:{value:new Color(0x000000)},roughness:{value:1.0},metalness:{value:0.0},envMapIntensity:{value:1}}]),vertexShader:ShaderChunk.meshphysical_vert,fragmentShader:ShaderChunk.meshphysical_frag},toon:{uniforms:mergeUniforms([UniformsLib.common,UniformsLib.aomap,UniformsLib.lightmap,UniformsLib.emissivemap,UniformsLib.bumpmap,UniformsLib.normalmap,UniformsLib.displacementmap,UniformsLib.gradientmap,UniformsLib.fog,UniformsLib.lights,{emissive:{value:new Color(0x000000)}}]),vertexShader:ShaderChunk.meshtoon_vert,fragmentShader:ShaderChunk.meshtoon_frag},matcap:{uniforms:mergeUniforms([UniformsLib.common,UniformsLib.bumpmap,UniformsLib.normalmap,UniformsLib.displacementmap,UniformsLib.fog,{matcap:{value:null}}]),vertexShader:ShaderChunk.meshmatcap_vert,fragmentShader:ShaderChunk.meshmatcap_frag},points:{uniforms:mergeUniforms([UniformsLib.points,UniformsLib.fog]),vertexShader:ShaderChunk.points_vert,fragmentShader:ShaderChunk.points_frag},dashed:{uniforms:mergeUniforms([UniformsLib.common,UniformsLib.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:ShaderChunk.linedashed_vert,fragmentShader:ShaderChunk.linedashed_frag},depth:{uniforms:mergeUniforms([UniformsLib.common,UniformsLib.displacementmap]),vertexShader:ShaderChunk.depth_vert,fragmentShader:ShaderChunk.depth_frag},normal:{uniforms:mergeUniforms([UniformsLib.common,UniformsLib.bumpmap,UniformsLib.normalmap,UniformsLib.displacementmap,{opacity:{value:1.0}}]),vertexShader:ShaderChunk.normal_vert,fragmentShader:ShaderChunk.normal_frag},sprite:{uniforms:mergeUniforms([UniformsLib.sprite,UniformsLib.fog]),vertexShader:ShaderChunk.sprite_vert,fragmentShader:ShaderChunk.sprite_frag},background:{uniforms:{uvTransform:{value:new Matrix3()},t2D:{value:null}},vertexShader:ShaderChunk.background_vert,fragmentShader:ShaderChunk.background_frag},cube:{uniforms:mergeUniforms([UniformsLib.envmap,{opacity:{value:1.0}}]),vertexShader:ShaderChunk.cube_vert,fragmentShader:ShaderChunk.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:ShaderChunk.equirect_vert,fragmentShader:ShaderChunk.equirect_frag},distanceRGBA:{uniforms:mergeUniforms([UniformsLib.common,UniformsLib.displacementmap,{referencePosition:{value:new Vector3()},nearDistance:{value:1},farDistance:{value:1000}}]),vertexShader:ShaderChunk.distanceRGBA_vert,fragmentShader:ShaderChunk.distanceRGBA_frag},shadow:{uniforms:mergeUniforms([UniformsLib.lights,UniformsLib.fog,{color:{value:new Color(0x00000)},opacity:{value:1.0}}]),vertexShader:ShaderChunk.shadow_vert,fragmentShader:ShaderChunk.shadow_frag}};ShaderLib.physical={uniforms:mergeUniforms([ShaderLib.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatNormalScale:{value:new Vector2(1,1)},clearcoatNormalMap:{value:null},sheen:{value:new Color(0x000000)},transmission:{value:0},transmissionMap:{value:null}}]),vertexShader:ShaderChunk.meshphysical_vert,fragmentShader:ShaderChunk.meshphysical_frag};function WebGLBackground(renderer,cubemaps,state,objects,premultipliedAlpha){var clearColor=new Color(0x000000);var clearAlpha=0;var planeMesh;var boxMesh;var currentBackground=null;var currentBackgroundVersion=0;var currentTonemapping=null;function render(renderList,scene,camera,forceClear){var background=scene.isScene===true?scene.background:null;if(background&&background.isTexture){background=cubemaps.get(background);}\nvar xr=renderer.xr;var session=xr.getSession&&xr.getSession();if(session&&session.environmentBlendMode==='additive'){background=null;}if(background===null){setClear(clearColor,clearAlpha);}else if(background&&background.isColor){setClear(background,1);forceClear=true;}if(renderer.autoClear||forceClear){renderer.clear(renderer.autoClearColor,renderer.autoClearDepth,renderer.autoClearStencil);}if(background&&(background.isCubeTexture||background.isWebGLCubeRenderTarget||background.mapping===CubeUVReflectionMapping)){if(boxMesh===undefined){boxMesh=new Mesh(new BoxBufferGeometry(1,1,1),new ShaderMaterial({name:'BackgroundCubeMaterial',uniforms:cloneUniforms(ShaderLib.cube.uniforms),vertexShader:ShaderLib.cube.vertexShader,fragmentShader:ShaderLib.cube.fragmentShader,side:BackSide,depthTest:false,depthWrite:false,fog:false}));boxMesh.geometry.deleteAttribute('normal');boxMesh.geometry.deleteAttribute('uv');boxMesh.onBeforeRender=function(renderer,scene,camera){this.matrixWorld.copyPosition(camera.matrixWorld);};Object.defineProperty(boxMesh.material,'envMap',{get:function get(){return this.uniforms.envMap.value;}});objects.update(boxMesh);}if(background.isWebGLCubeRenderTarget){background=background.texture;}boxMesh.material.uniforms.envMap.value=background;boxMesh.material.uniforms.flipEnvMap.value=background.isCubeTexture&&background._needsFlipEnvMap?-1:1;if(currentBackground!==background||currentBackgroundVersion!==background.version||currentTonemapping!==renderer.toneMapping){boxMesh.material.needsUpdate=true;currentBackground=background;currentBackgroundVersion=background.version;currentTonemapping=renderer.toneMapping;}\nrenderList.unshift(boxMesh,boxMesh.geometry,boxMesh.material,0,0,null);}else if(background&&background.isTexture){if(planeMesh===undefined){planeMesh=new Mesh(new PlaneBufferGeometry(2,2),new ShaderMaterial({name:'BackgroundMaterial',uniforms:cloneUniforms(ShaderLib.background.uniforms),vertexShader:ShaderLib.background.vertexShader,fragmentShader:ShaderLib.background.fragmentShader,side:FrontSide,depthTest:false,depthWrite:false,fog:false}));planeMesh.geometry.deleteAttribute('normal');Object.defineProperty(planeMesh.material,'map',{get:function get(){return this.uniforms.t2D.value;}});objects.update(planeMesh);}planeMesh.material.uniforms.t2D.value=background;if(background.matrixAutoUpdate===true){background.updateMatrix();}planeMesh.material.uniforms.uvTransform.value.copy(background.matrix);if(currentBackground!==background||currentBackgroundVersion!==background.version||currentTonemapping!==renderer.toneMapping){planeMesh.material.needsUpdate=true;currentBackground=background;currentBackgroundVersion=background.version;currentTonemapping=renderer.toneMapping;}\nrenderList.unshift(planeMesh,planeMesh.geometry,planeMesh.material,0,0,null);}}function setClear(color,alpha){state.buffers.color.setClear(color.r,color.g,color.b,alpha,premultipliedAlpha);}return{getClearColor:function getClearColor(){return clearColor;},setClearColor:function setClearColor(color,alpha){clearColor.set(color);clearAlpha=alpha!==undefined?alpha:1;setClear(clearColor,clearAlpha);},getClearAlpha:function getClearAlpha(){return clearAlpha;},setClearAlpha:function setClearAlpha(alpha){clearAlpha=alpha;setClear(clearColor,clearAlpha);},render:render};}function WebGLBindingStates(gl,extensions,attributes,capabilities){var maxVertexAttributes=gl.getParameter(34921);var extension=capabilities.isWebGL2?null:extensions.get('OES_vertex_array_object');var vaoAvailable=capabilities.isWebGL2||extension!==null;var bindingStates={};var defaultState=createBindingState(null);var currentState=defaultState;function setup(object,material,program,geometry,index){var updateBuffers=false;if(vaoAvailable){var state=getBindingState(geometry,program,material);if(currentState!==state){currentState=state;bindVertexArrayObject(currentState.object);}updateBuffers=needsUpdate(geometry,index);if(updateBuffers)saveCache(geometry,index);}else{var wireframe=material.wireframe===true;if(currentState.geometry!==geometry.id||currentState.program!==program.id||currentState.wireframe!==wireframe){currentState.geometry=geometry.id;currentState.program=program.id;currentState.wireframe=wireframe;updateBuffers=true;}}if(object.isInstancedMesh===true){updateBuffers=true;}if(index!==null){attributes.update(index,34963);}if(updateBuffers){setupVertexAttributes(object,material,program,geometry);if(index!==null){gl.bindBuffer(34963,attributes.get(index).buffer);}}}function createVertexArrayObject(){if(capabilities.isWebGL2)return gl.createVertexArray();return extension.createVertexArrayOES();}function bindVertexArrayObject(vao){if(capabilities.isWebGL2)return gl.bindVertexArray(vao);return extension.bindVertexArrayOES(vao);}function deleteVertexArrayObject(vao){if(capabilities.isWebGL2)return gl.deleteVertexArray(vao);return extension.deleteVertexArrayOES(vao);}function getBindingState(geometry,program,material){var wireframe=material.wireframe===true;var programMap=bindingStates[geometry.id];if(programMap===undefined){programMap={};bindingStates[geometry.id]=programMap;}var stateMap=programMap[program.id];if(stateMap===undefined){stateMap={};programMap[program.id]=stateMap;}var state=stateMap[wireframe];if(state===undefined){state=createBindingState(createVertexArrayObject());stateMap[wireframe]=state;}return state;}function createBindingState(vao){var newAttributes=[];var enabledAttributes=[];var attributeDivisors=[];for(var _i67=0;_i67<maxVertexAttributes;_i67++){newAttributes[_i67]=0;enabledAttributes[_i67]=0;attributeDivisors[_i67]=0;}return{geometry:null,program:null,wireframe:false,newAttributes:newAttributes,enabledAttributes:enabledAttributes,attributeDivisors:attributeDivisors,object:vao,attributes:{},index:null};}function needsUpdate(geometry,index){var cachedAttributes=currentState.attributes;var geometryAttributes=geometry.attributes;if(Object.keys(cachedAttributes).length!==Object.keys(geometryAttributes).length)return true;for(var key in geometryAttributes){var cachedAttribute=cachedAttributes[key];var geometryAttribute=geometryAttributes[key];if(cachedAttribute===undefined)return true;if(cachedAttribute.attribute!==geometryAttribute)return true;if(cachedAttribute.data!==geometryAttribute.data)return true;}if(currentState.index!==index)return true;return false;}function saveCache(geometry,index){var cache={};var attributes=geometry.attributes;for(var key in attributes){var attribute=attributes[key];var data={};data.attribute=attribute;if(attribute.data){data.data=attribute.data;}cache[key]=data;}currentState.attributes=cache;currentState.index=index;}function initAttributes(){var newAttributes=currentState.newAttributes;for(var _i68=0,il=newAttributes.length;_i68<il;_i68++){newAttributes[_i68]=0;}}function enableAttribute(attribute){enableAttributeAndDivisor(attribute,0);}function enableAttributeAndDivisor(attribute,meshPerAttribute){var newAttributes=currentState.newAttributes;var enabledAttributes=currentState.enabledAttributes;var attributeDivisors=currentState.attributeDivisors;newAttributes[attribute]=1;if(enabledAttributes[attribute]===0){gl.enableVertexAttribArray(attribute);enabledAttributes[attribute]=1;}if(attributeDivisors[attribute]!==meshPerAttribute){var _extension=capabilities.isWebGL2?gl:extensions.get('ANGLE_instanced_arrays');_extension[capabilities.isWebGL2?'vertexAttribDivisor':'vertexAttribDivisorANGLE'](attribute,meshPerAttribute);attributeDivisors[attribute]=meshPerAttribute;}}function disableUnusedAttributes(){var newAttributes=currentState.newAttributes;var enabledAttributes=currentState.enabledAttributes;for(var _i69=0,il=enabledAttributes.length;_i69<il;_i69++){if(enabledAttributes[_i69]!==newAttributes[_i69]){gl.disableVertexAttribArray(_i69);enabledAttributes[_i69]=0;}}}function vertexAttribPointer(index,size,type,normalized,stride,offset){if(capabilities.isWebGL2===true&&(type===5124||type===5125)){gl.vertexAttribIPointer(index,size,type,stride,offset);}else{gl.vertexAttribPointer(index,size,type,normalized,stride,offset);}}function setupVertexAttributes(object,material,program,geometry){if(capabilities.isWebGL2===false&&(object.isInstancedMesh||geometry.isInstancedBufferGeometry)){if(extensions.get('ANGLE_instanced_arrays')===null)return;}initAttributes();var geometryAttributes=geometry.attributes;var programAttributes=program.getAttributes();var materialDefaultAttributeValues=material.defaultAttributeValues;for(var name in programAttributes){var programAttribute=programAttributes[name];if(programAttribute>=0){var geometryAttribute=geometryAttributes[name];if(geometryAttribute!==undefined){var normalized=geometryAttribute.normalized;var size=geometryAttribute.itemSize;var attribute=attributes.get(geometryAttribute);if(attribute===undefined)continue;var buffer=attribute.buffer;var type=attribute.type;var bytesPerElement=attribute.bytesPerElement;if(geometryAttribute.isInterleavedBufferAttribute){var data=geometryAttribute.data;var stride=data.stride;var offset=geometryAttribute.offset;if(data&&data.isInstancedInterleavedBuffer){enableAttributeAndDivisor(programAttribute,data.meshPerAttribute);if(geometry._maxInstanceCount===undefined){geometry._maxInstanceCount=data.meshPerAttribute*data.count;}}else{enableAttribute(programAttribute);}gl.bindBuffer(34962,buffer);vertexAttribPointer(programAttribute,size,type,normalized,stride*bytesPerElement,offset*bytesPerElement);}else{if(geometryAttribute.isInstancedBufferAttribute){enableAttributeAndDivisor(programAttribute,geometryAttribute.meshPerAttribute);if(geometry._maxInstanceCount===undefined){geometry._maxInstanceCount=geometryAttribute.meshPerAttribute*geometryAttribute.count;}}else{enableAttribute(programAttribute);}gl.bindBuffer(34962,buffer);vertexAttribPointer(programAttribute,size,type,normalized,0,0);}}else if(name==='instanceMatrix'){var _attribute7=attributes.get(object.instanceMatrix);if(_attribute7===undefined)continue;var _buffer=_attribute7.buffer;var _type=_attribute7.type;enableAttributeAndDivisor(programAttribute+0,1);enableAttributeAndDivisor(programAttribute+1,1);enableAttributeAndDivisor(programAttribute+2,1);enableAttributeAndDivisor(programAttribute+3,1);gl.bindBuffer(34962,_buffer);gl.vertexAttribPointer(programAttribute+0,4,_type,false,64,0);gl.vertexAttribPointer(programAttribute+1,4,_type,false,64,16);gl.vertexAttribPointer(programAttribute+2,4,_type,false,64,32);gl.vertexAttribPointer(programAttribute+3,4,_type,false,64,48);}else if(name==='instanceColor'){var _attribute8=attributes.get(object.instanceColor);if(_attribute8===undefined)continue;var _buffer2=_attribute8.buffer;var _type2=_attribute8.type;enableAttributeAndDivisor(programAttribute,1);gl.bindBuffer(34962,_buffer2);gl.vertexAttribPointer(programAttribute,3,_type2,false,12,0);}else if(materialDefaultAttributeValues!==undefined){var value=materialDefaultAttributeValues[name];if(value!==undefined){switch(value.length){case 2:gl.vertexAttrib2fv(programAttribute,value);break;case 3:gl.vertexAttrib3fv(programAttribute,value);break;case 4:gl.vertexAttrib4fv(programAttribute,value);break;default:gl.vertexAttrib1fv(programAttribute,value);}}}}}disableUnusedAttributes();}function dispose(){reset();for(var geometryId in bindingStates){var programMap=bindingStates[geometryId];for(var programId in programMap){var stateMap=programMap[programId];for(var wireframe in stateMap){deleteVertexArrayObject(stateMap[wireframe].object);delete stateMap[wireframe];}delete programMap[programId];}delete bindingStates[geometryId];}}function releaseStatesOfGeometry(geometry){if(bindingStates[geometry.id]===undefined)return;var programMap=bindingStates[geometry.id];for(var programId in programMap){var stateMap=programMap[programId];for(var wireframe in stateMap){deleteVertexArrayObject(stateMap[wireframe].object);delete stateMap[wireframe];}delete programMap[programId];}delete bindingStates[geometry.id];}function releaseStatesOfProgram(program){for(var geometryId in bindingStates){var programMap=bindingStates[geometryId];if(programMap[program.id]===undefined)continue;var stateMap=programMap[program.id];for(var wireframe in stateMap){deleteVertexArrayObject(stateMap[wireframe].object);delete stateMap[wireframe];}delete programMap[program.id];}}function reset(){resetDefaultState();if(currentState===defaultState)return;currentState=defaultState;bindVertexArrayObject(currentState.object);}\nfunction resetDefaultState(){defaultState.geometry=null;defaultState.program=null;defaultState.wireframe=false;}return{setup:setup,reset:reset,resetDefaultState:resetDefaultState,dispose:dispose,releaseStatesOfGeometry:releaseStatesOfGeometry,releaseStatesOfProgram:releaseStatesOfProgram,initAttributes:initAttributes,enableAttribute:enableAttribute,disableUnusedAttributes:disableUnusedAttributes};}function WebGLBufferRenderer(gl,extensions,info,capabilities){var isWebGL2=capabilities.isWebGL2;var mode;function setMode(value){mode=value;}function render(start,count){gl.drawArrays(mode,start,count);info.update(count,mode,1);}function renderInstances(start,count,primcount){if(primcount===0)return;var extension,methodName;if(isWebGL2){extension=gl;methodName='drawArraysInstanced';}else{extension=extensions.get('ANGLE_instanced_arrays');methodName='drawArraysInstancedANGLE';if(extension===null){console.error('THREE.WebGLBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.');return;}}extension[methodName](mode,start,count,primcount);info.update(count,mode,primcount);}\nthis.setMode=setMode;this.render=render;this.renderInstances=renderInstances;}function WebGLCapabilities(gl,extensions,parameters){var maxAnisotropy;function getMaxAnisotropy(){if(maxAnisotropy!==undefined)return maxAnisotropy;var extension=extensions.get('EXT_texture_filter_anisotropic');if(extension!==null){maxAnisotropy=gl.getParameter(extension.MAX_TEXTURE_MAX_ANISOTROPY_EXT);}else{maxAnisotropy=0;}return maxAnisotropy;}function getMaxPrecision(precision){if(precision==='highp'){if(gl.getShaderPrecisionFormat(35633,36338).precision>0&&gl.getShaderPrecisionFormat(35632,36338).precision>0){return'highp';}precision='mediump';}if(precision==='mediump'){if(gl.getShaderPrecisionFormat(35633,36337).precision>0&&gl.getShaderPrecisionFormat(35632,36337).precision>0){return'mediump';}}return'lowp';}var isWebGL2=typeof WebGL2RenderingContext!=='undefined'&&_instanceof(gl,WebGL2RenderingContext)||typeof WebGL2ComputeRenderingContext!=='undefined'&&_instanceof(gl,WebGL2ComputeRenderingContext);var precision=parameters.precision!==undefined?parameters.precision:'highp';var maxPrecision=getMaxPrecision(precision);if(maxPrecision!==precision){console.warn('THREE.WebGLRenderer:',precision,'not supported, using',maxPrecision,'instead.');precision=maxPrecision;}var logarithmicDepthBuffer=parameters.logarithmicDepthBuffer===true;var maxTextures=gl.getParameter(34930);var maxVertexTextures=gl.getParameter(35660);var maxTextureSize=gl.getParameter(3379);var maxCubemapSize=gl.getParameter(34076);var maxAttributes=gl.getParameter(34921);var maxVertexUniforms=gl.getParameter(36347);var maxVaryings=gl.getParameter(36348);var maxFragmentUniforms=gl.getParameter(36349);var vertexTextures=maxVertexTextures>0;var floatFragmentTextures=isWebGL2||!!extensions.get('OES_texture_float');var floatVertexTextures=vertexTextures&&floatFragmentTextures;var maxSamples=isWebGL2?gl.getParameter(36183):0;return{isWebGL2:isWebGL2,getMaxAnisotropy:getMaxAnisotropy,getMaxPrecision:getMaxPrecision,precision:precision,logarithmicDepthBuffer:logarithmicDepthBuffer,maxTextures:maxTextures,maxVertexTextures:maxVertexTextures,maxTextureSize:maxTextureSize,maxCubemapSize:maxCubemapSize,maxAttributes:maxAttributes,maxVertexUniforms:maxVertexUniforms,maxVaryings:maxVaryings,maxFragmentUniforms:maxFragmentUniforms,vertexTextures:vertexTextures,floatFragmentTextures:floatFragmentTextures,floatVertexTextures:floatVertexTextures,maxSamples:maxSamples};}function WebGLClipping(properties){var scope=this;var globalState=null,numGlobalPlanes=0,localClippingEnabled=false,renderingShadows=false;var plane=new Plane(),viewNormalMatrix=new Matrix3(),uniform={value:null,needsUpdate:false};this.uniform=uniform;this.numPlanes=0;this.numIntersection=0;this.init=function(planes,enableLocalClipping,camera){var enabled=planes.length!==0||enableLocalClipping||numGlobalPlanes!==0||localClippingEnabled;localClippingEnabled=enableLocalClipping;globalState=projectPlanes(planes,camera,0);numGlobalPlanes=planes.length;return enabled;};this.beginShadows=function(){renderingShadows=true;projectPlanes(null);};this.endShadows=function(){renderingShadows=false;resetGlobalState();};this.setState=function(material,camera,useCache){var planes=material.clippingPlanes,clipIntersection=material.clipIntersection,clipShadows=material.clipShadows;var materialProperties=properties.get(material);if(!localClippingEnabled||planes===null||planes.length===0||renderingShadows&&!clipShadows){if(renderingShadows){projectPlanes(null);}else{resetGlobalState();}}else{var nGlobal=renderingShadows?0:numGlobalPlanes,lGlobal=nGlobal*4;var dstArray=materialProperties.clippingState||null;uniform.value=dstArray;dstArray=projectPlanes(planes,camera,lGlobal,useCache);for(var _i70=0;_i70!==lGlobal;++_i70){dstArray[_i70]=globalState[_i70];}materialProperties.clippingState=dstArray;this.numIntersection=clipIntersection?this.numPlanes:0;this.numPlanes+=nGlobal;}};function resetGlobalState(){if(uniform.value!==globalState){uniform.value=globalState;uniform.needsUpdate=numGlobalPlanes>0;}scope.numPlanes=numGlobalPlanes;scope.numIntersection=0;}function projectPlanes(planes,camera,dstOffset,skipTransform){var nPlanes=planes!==null?planes.length:0;var dstArray=null;if(nPlanes!==0){dstArray=uniform.value;if(skipTransform!==true||dstArray===null){var flatSize=dstOffset+nPlanes*4,viewMatrix=camera.matrixWorldInverse;viewNormalMatrix.getNormalMatrix(viewMatrix);if(dstArray===null||dstArray.length<flatSize){dstArray=new Float32Array(flatSize);}for(var _i71=0,i4=dstOffset;_i71!==nPlanes;++_i71,i4+=4){plane.copy(planes[_i71]).applyMatrix4(viewMatrix,viewNormalMatrix);plane.normal.toArray(dstArray,i4);dstArray[i4+3]=plane.constant;}}uniform.value=dstArray;uniform.needsUpdate=true;}scope.numPlanes=nPlanes;scope.numIntersection=0;return dstArray;}}function WebGLCubeMaps(renderer){var cubemaps=new WeakMap();function mapTextureMapping(texture,mapping){if(mapping===EquirectangularReflectionMapping){texture.mapping=CubeReflectionMapping;}else if(mapping===EquirectangularRefractionMapping){texture.mapping=CubeRefractionMapping;}return texture;}function get(texture){if(texture&&texture.isTexture){var mapping=texture.mapping;if(mapping===EquirectangularReflectionMapping||mapping===EquirectangularRefractionMapping){if(cubemaps.has(texture)){var cubemap=cubemaps.get(texture).texture;return mapTextureMapping(cubemap,texture.mapping);}else{var image=texture.image;if(image&&image.height>0){var currentRenderList=renderer.getRenderList();var currentRenderTarget=renderer.getRenderTarget();var currentRenderState=renderer.getRenderState();var renderTarget=new WebGLCubeRenderTarget(image.height/2);renderTarget.fromEquirectangularTexture(renderer,texture);cubemaps.set(texture,renderTarget);renderer.setRenderTarget(currentRenderTarget);renderer.setRenderList(currentRenderList);renderer.setRenderState(currentRenderState);return mapTextureMapping(renderTarget.texture,texture.mapping);}else{return null;}}}}return texture;}function dispose(){cubemaps=new WeakMap();}return{get:get,dispose:dispose};}function WebGLExtensions(gl){var extensions={};return{has:function has(name){if(extensions[name]!==undefined){return extensions[name]!==null;}var extension;switch(name){case'WEBGL_depth_texture':extension=gl.getExtension('WEBGL_depth_texture')||gl.getExtension('MOZ_WEBGL_depth_texture')||gl.getExtension('WEBKIT_WEBGL_depth_texture');break;case'EXT_texture_filter_anisotropic':extension=gl.getExtension('EXT_texture_filter_anisotropic')||gl.getExtension('MOZ_EXT_texture_filter_anisotropic')||gl.getExtension('WEBKIT_EXT_texture_filter_anisotropic');break;case'WEBGL_compressed_texture_s3tc':extension=gl.getExtension('WEBGL_compressed_texture_s3tc')||gl.getExtension('MOZ_WEBGL_compressed_texture_s3tc')||gl.getExtension('WEBKIT_WEBGL_compressed_texture_s3tc');break;case'WEBGL_compressed_texture_pvrtc':extension=gl.getExtension('WEBGL_compressed_texture_pvrtc')||gl.getExtension('WEBKIT_WEBGL_compressed_texture_pvrtc');break;default:extension=gl.getExtension(name);}extensions[name]=extension;return extension!==null;},get:function get(name){if(!this.has(name)){console.warn('THREE.WebGLRenderer: '+name+' extension not supported.');}return extensions[name];}};}function WebGLGeometries(gl,attributes,info,bindingStates){var geometries=new WeakMap();var wireframeAttributes=new WeakMap();function onGeometryDispose(event){var geometry=event.target;var buffergeometry=geometries.get(geometry);if(buffergeometry.index!==null){attributes.remove(buffergeometry.index);}for(var name in buffergeometry.attributes){attributes.remove(buffergeometry.attributes[name]);}geometry.removeEventListener('dispose',onGeometryDispose);geometries.delete(geometry);var attribute=wireframeAttributes.get(buffergeometry);if(attribute){attributes.remove(attribute);wireframeAttributes.delete(buffergeometry);}bindingStates.releaseStatesOfGeometry(geometry);if(geometry.isInstancedBufferGeometry===true){delete geometry._maxInstanceCount;}\ninfo.memory.geometries--;}function get(object,geometry){var buffergeometry=geometries.get(geometry);if(buffergeometry)return buffergeometry;geometry.addEventListener('dispose',onGeometryDispose);if(geometry.isBufferGeometry){buffergeometry=geometry;}else if(geometry.isGeometry){if(geometry._bufferGeometry===undefined){geometry._bufferGeometry=new BufferGeometry().setFromObject(object);}buffergeometry=geometry._bufferGeometry;}geometries.set(geometry,buffergeometry);info.memory.geometries++;return buffergeometry;}function update(geometry){var geometryAttributes=geometry.attributes;for(var name in geometryAttributes){attributes.update(geometryAttributes[name],34962);}\nvar morphAttributes=geometry.morphAttributes;for(var _name3 in morphAttributes){var array=morphAttributes[_name3];for(var _i72=0,l=array.length;_i72<l;_i72++){attributes.update(array[_i72],34962);}}}function updateWireframeAttribute(geometry){var indices=[];var geometryIndex=geometry.index;var geometryPosition=geometry.attributes.position;var version=0;if(geometryIndex!==null){var array=geometryIndex.array;version=geometryIndex.version;for(var _i73=0,l=array.length;_i73<l;_i73+=3){var a=array[_i73+0];var b=array[_i73+1];var c=array[_i73+2];indices.push(a,b,b,c,c,a);}}else{var _array=geometryPosition.array;version=geometryPosition.version;for(var _i74=0,_l5=_array.length/3-1;_i74<_l5;_i74+=3){var _a5=_i74+0;var _b5=_i74+1;var _c5=_i74+2;indices.push(_a5,_b5,_b5,_c5,_c5,_a5);}}var attribute=new(arrayMax(indices)>65535?Uint32BufferAttribute:Uint16BufferAttribute)(indices,1);attribute.version=version;var previousAttribute=wireframeAttributes.get(geometry);if(previousAttribute)attributes.remove(previousAttribute);wireframeAttributes.set(geometry,attribute);}function getWireframeAttribute(geometry){var currentAttribute=wireframeAttributes.get(geometry);if(currentAttribute){var geometryIndex=geometry.index;if(geometryIndex!==null){if(currentAttribute.version<geometryIndex.version){updateWireframeAttribute(geometry);}}}else{updateWireframeAttribute(geometry);}return wireframeAttributes.get(geometry);}return{get:get,update:update,getWireframeAttribute:getWireframeAttribute};}function WebGLIndexedBufferRenderer(gl,extensions,info,capabilities){var isWebGL2=capabilities.isWebGL2;var mode;function setMode(value){mode=value;}var type,bytesPerElement;function setIndex(value){type=value.type;bytesPerElement=value.bytesPerElement;}function render(start,count){gl.drawElements(mode,count,type,start*bytesPerElement);info.update(count,mode,1);}function renderInstances(start,count,primcount){if(primcount===0)return;var extension,methodName;if(isWebGL2){extension=gl;methodName='drawElementsInstanced';}else{extension=extensions.get('ANGLE_instanced_arrays');methodName='drawElementsInstancedANGLE';if(extension===null){console.error('THREE.WebGLIndexedBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.');return;}}extension[methodName](mode,count,type,start*bytesPerElement,primcount);info.update(count,mode,primcount);}\nthis.setMode=setMode;this.setIndex=setIndex;this.render=render;this.renderInstances=renderInstances;}function WebGLInfo(gl){var memory={geometries:0,textures:0};var render={frame:0,calls:0,triangles:0,points:0,lines:0};function update(count,mode,instanceCount){render.calls++;switch(mode){case 4:render.triangles+=instanceCount*(count/3);break;case 1:render.lines+=instanceCount*(count/2);break;case 3:render.lines+=instanceCount*(count-1);break;case 2:render.lines+=instanceCount*count;break;case 0:render.points+=instanceCount*count;break;default:console.error('THREE.WebGLInfo: Unknown draw mode:',mode);break;}}function reset(){render.frame++;render.calls=0;render.triangles=0;render.points=0;render.lines=0;}return{memory:memory,render:render,programs:null,autoReset:true,reset:reset,update:update};}function numericalSort(a,b){return a[0]-b[0];}function absNumericalSort(a,b){return Math.abs(b[1])-Math.abs(a[1]);}function WebGLMorphtargets(gl){var influencesList={};var morphInfluences=new Float32Array(8);var workInfluences=[];for(var _i75=0;_i75<8;_i75++){workInfluences[_i75]=[_i75,0];}function update(object,geometry,material,program){var objectInfluences=object.morphTargetInfluences;var length=objectInfluences===undefined?0:objectInfluences.length;var influences=influencesList[geometry.id];if(influences===undefined){influences=[];for(var _i76=0;_i76<length;_i76++){influences[_i76]=[_i76,0];}influencesList[geometry.id]=influences;}\nfor(var _i77=0;_i77<length;_i77++){var influence=influences[_i77];influence[0]=_i77;influence[1]=objectInfluences[_i77];}influences.sort(absNumericalSort);for(var _i78=0;_i78<8;_i78++){if(_i78<length&&influences[_i78][1]){workInfluences[_i78][0]=influences[_i78][0];workInfluences[_i78][1]=influences[_i78][1];}else{workInfluences[_i78][0]=Number.MAX_SAFE_INTEGER;workInfluences[_i78][1]=0;}}workInfluences.sort(numericalSort);var morphTargets=material.morphTargets&&geometry.morphAttributes.position;var morphNormals=material.morphNormals&&geometry.morphAttributes.normal;var morphInfluencesSum=0;for(var _i79=0;_i79<8;_i79++){var _influence=workInfluences[_i79];var index=_influence[0];var value=_influence[1];if(index!==Number.MAX_SAFE_INTEGER&&value){if(morphTargets&&geometry.getAttribute('morphTarget'+_i79)!==morphTargets[index]){geometry.setAttribute('morphTarget'+_i79,morphTargets[index]);}if(morphNormals&&geometry.getAttribute('morphNormal'+_i79)!==morphNormals[index]){geometry.setAttribute('morphNormal'+_i79,morphNormals[index]);}morphInfluences[_i79]=value;morphInfluencesSum+=value;}else{if(morphTargets&&geometry.getAttribute('morphTarget'+_i79)!==undefined){geometry.deleteAttribute('morphTarget'+_i79);}if(morphNormals&&geometry.getAttribute('morphNormal'+_i79)!==undefined){geometry.deleteAttribute('morphNormal'+_i79);}morphInfluences[_i79]=0;}}\nvar morphBaseInfluence=geometry.morphTargetsRelative?1:1-morphInfluencesSum;program.getUniforms().setValue(gl,'morphTargetBaseInfluence',morphBaseInfluence);program.getUniforms().setValue(gl,'morphTargetInfluences',morphInfluences);}return{update:update};}function WebGLObjects(gl,geometries,attributes,info){var updateMap=new WeakMap();function update(object){var frame=info.render.frame;var geometry=object.geometry;var buffergeometry=geometries.get(object,geometry);if(updateMap.get(buffergeometry)!==frame){if(geometry.isGeometry){buffergeometry.updateFromObject(object);}geometries.update(buffergeometry);updateMap.set(buffergeometry,frame);}if(object.isInstancedMesh){attributes.update(object.instanceMatrix,34962);if(object.instanceColor!==null){attributes.update(object.instanceColor,34962);}}return buffergeometry;}function dispose(){updateMap=new WeakMap();}return{update:update,dispose:dispose};}function DataTexture2DArray(data,width,height,depth){Texture.call(this,null);this.image={data:data||null,width:width||1,height:height||1,depth:depth||1};this.magFilter=NearestFilter;this.minFilter=NearestFilter;this.wrapR=ClampToEdgeWrapping;this.generateMipmaps=false;this.flipY=false;this.needsUpdate=true;}DataTexture2DArray.prototype=Object.create(Texture.prototype);DataTexture2DArray.prototype.constructor=DataTexture2DArray;DataTexture2DArray.prototype.isDataTexture2DArray=true;function DataTexture3D(data,width,height,depth){Texture.call(this,null);this.image={data:data||null,width:width||1,height:height||1,depth:depth||1};this.magFilter=NearestFilter;this.minFilter=NearestFilter;this.wrapR=ClampToEdgeWrapping;this.generateMipmaps=false;this.flipY=false;this.needsUpdate=true;}DataTexture3D.prototype=Object.create(Texture.prototype);DataTexture3D.prototype.constructor=DataTexture3D;DataTexture3D.prototype.isDataTexture3D=true;var emptyTexture=new Texture();var emptyTexture2dArray=new DataTexture2DArray();var emptyTexture3d=new DataTexture3D();var emptyCubeTexture=new CubeTexture();var arrayCacheF32=[];var arrayCacheI32=[];var mat4array=new Float32Array(16);var mat3array=new Float32Array(9);var mat2array=new Float32Array(4);function flatten(array,nBlocks,blockSize){var firstElem=array[0];if(firstElem<=0||firstElem>0)return array;var n=nBlocks*blockSize;var r=arrayCacheF32[n];if(r===undefined){r=new Float32Array(n);arrayCacheF32[n]=r;}if(nBlocks!==0){firstElem.toArray(r,0);for(var _i80=1,offset=0;_i80!==nBlocks;++_i80){offset+=blockSize;array[_i80].toArray(r,offset);}}return r;}function arraysEqual(a,b){if(a.length!==b.length)return false;for(var _i81=0,l=a.length;_i81<l;_i81++){if(a[_i81]!==b[_i81])return false;}return true;}function copyArray(a,b){for(var _i82=0,l=b.length;_i82<l;_i82++){a[_i82]=b[_i82];}}\nfunction allocTexUnits(textures,n){var r=arrayCacheI32[n];if(r===undefined){r=new Int32Array(n);arrayCacheI32[n]=r;}for(var _i83=0;_i83!==n;++_i83){r[_i83]=textures.allocateTextureUnit();}return r;}\nfunction setValueV1f(gl,v){var cache=this.cache;if(cache[0]===v)return;gl.uniform1f(this.addr,v);cache[0]=v;}\nfunction setValueV2f(gl,v){var cache=this.cache;if(v.x!==undefined){if(cache[0]!==v.x||cache[1]!==v.y){gl.uniform2f(this.addr,v.x,v.y);cache[0]=v.x;cache[1]=v.y;}}else{if(arraysEqual(cache,v))return;gl.uniform2fv(this.addr,v);copyArray(cache,v);}}function setValueV3f(gl,v){var cache=this.cache;if(v.x!==undefined){if(cache[0]!==v.x||cache[1]!==v.y||cache[2]!==v.z){gl.uniform3f(this.addr,v.x,v.y,v.z);cache[0]=v.x;cache[1]=v.y;cache[2]=v.z;}}else if(v.r!==undefined){if(cache[0]!==v.r||cache[1]!==v.g||cache[2]!==v.b){gl.uniform3f(this.addr,v.r,v.g,v.b);cache[0]=v.r;cache[1]=v.g;cache[2]=v.b;}}else{if(arraysEqual(cache,v))return;gl.uniform3fv(this.addr,v);copyArray(cache,v);}}function setValueV4f(gl,v){var cache=this.cache;if(v.x!==undefined){if(cache[0]!==v.x||cache[1]!==v.y||cache[2]!==v.z||cache[3]!==v.w){gl.uniform4f(this.addr,v.x,v.y,v.z,v.w);cache[0]=v.x;cache[1]=v.y;cache[2]=v.z;cache[3]=v.w;}}else{if(arraysEqual(cache,v))return;gl.uniform4fv(this.addr,v);copyArray(cache,v);}}\nfunction setValueM2(gl,v){var cache=this.cache;var elements=v.elements;if(elements===undefined){if(arraysEqual(cache,v))return;gl.uniformMatrix2fv(this.addr,false,v);copyArray(cache,v);}else{if(arraysEqual(cache,elements))return;mat2array.set(elements);gl.uniformMatrix2fv(this.addr,false,mat2array);copyArray(cache,elements);}}function setValueM3(gl,v){var cache=this.cache;var elements=v.elements;if(elements===undefined){if(arraysEqual(cache,v))return;gl.uniformMatrix3fv(this.addr,false,v);copyArray(cache,v);}else{if(arraysEqual(cache,elements))return;mat3array.set(elements);gl.uniformMatrix3fv(this.addr,false,mat3array);copyArray(cache,elements);}}function setValueM4(gl,v){var cache=this.cache;var elements=v.elements;if(elements===undefined){if(arraysEqual(cache,v))return;gl.uniformMatrix4fv(this.addr,false,v);copyArray(cache,v);}else{if(arraysEqual(cache,elements))return;mat4array.set(elements);gl.uniformMatrix4fv(this.addr,false,mat4array);copyArray(cache,elements);}}\nfunction setValueT1(gl,v,textures){var cache=this.cache;var unit=textures.allocateTextureUnit();if(cache[0]!==unit){gl.uniform1i(this.addr,unit);cache[0]=unit;}textures.safeSetTexture2D(v||emptyTexture,unit);}function setValueT2DArray1(gl,v,textures){var cache=this.cache;var unit=textures.allocateTextureUnit();if(cache[0]!==unit){gl.uniform1i(this.addr,unit);cache[0]=unit;}textures.setTexture2DArray(v||emptyTexture2dArray,unit);}function setValueT3D1(gl,v,textures){var cache=this.cache;var unit=textures.allocateTextureUnit();if(cache[0]!==unit){gl.uniform1i(this.addr,unit);cache[0]=unit;}textures.setTexture3D(v||emptyTexture3d,unit);}function setValueT6(gl,v,textures){var cache=this.cache;var unit=textures.allocateTextureUnit();if(cache[0]!==unit){gl.uniform1i(this.addr,unit);cache[0]=unit;}textures.safeSetTextureCube(v||emptyCubeTexture,unit);}\nfunction setValueV1i(gl,v){var cache=this.cache;if(cache[0]===v)return;gl.uniform1i(this.addr,v);cache[0]=v;}function setValueV2i(gl,v){var cache=this.cache;if(arraysEqual(cache,v))return;gl.uniform2iv(this.addr,v);copyArray(cache,v);}function setValueV3i(gl,v){var cache=this.cache;if(arraysEqual(cache,v))return;gl.uniform3iv(this.addr,v);copyArray(cache,v);}function setValueV4i(gl,v){var cache=this.cache;if(arraysEqual(cache,v))return;gl.uniform4iv(this.addr,v);copyArray(cache,v);}\nfunction setValueV1ui(gl,v){var cache=this.cache;if(cache[0]===v)return;gl.uniform1ui(this.addr,v);cache[0]=v;}\nfunction getSingularSetter(type){switch(type){case 0x1406:return setValueV1f;case 0x8b50:return setValueV2f;case 0x8b51:return setValueV3f;case 0x8b52:return setValueV4f;case 0x8b5a:return setValueM2;case 0x8b5b:return setValueM3;case 0x8b5c:return setValueM4;case 0x1404:case 0x8b56:return setValueV1i;case 0x8b53:case 0x8b57:return setValueV2i;case 0x8b54:case 0x8b58:return setValueV3i;case 0x8b55:case 0x8b59:return setValueV4i;case 0x1405:return setValueV1ui;case 0x8b5e:case 0x8d66:case 0x8dca:case 0x8dd2:case 0x8b62:return setValueT1;case 0x8b5f:case 0x8dcb:case 0x8dd3:return setValueT3D1;case 0x8b60:case 0x8dcc:case 0x8dd4:case 0x8dc5:return setValueT6;case 0x8dc1:case 0x8dcf:case 0x8dd7:case 0x8dc4:return setValueT2DArray1;}}\nfunction setValueV1fArray(gl,v){gl.uniform1fv(this.addr,v);}\nfunction setValueV1iArray(gl,v){gl.uniform1iv(this.addr,v);}function setValueV2iArray(gl,v){gl.uniform2iv(this.addr,v);}function setValueV3iArray(gl,v){gl.uniform3iv(this.addr,v);}function setValueV4iArray(gl,v){gl.uniform4iv(this.addr,v);}\nfunction setValueV2fArray(gl,v){var data=flatten(v,this.size,2);gl.uniform2fv(this.addr,data);}function setValueV3fArray(gl,v){var data=flatten(v,this.size,3);gl.uniform3fv(this.addr,data);}function setValueV4fArray(gl,v){var data=flatten(v,this.size,4);gl.uniform4fv(this.addr,data);}\nfunction setValueM2Array(gl,v){var data=flatten(v,this.size,4);gl.uniformMatrix2fv(this.addr,false,data);}function setValueM3Array(gl,v){var data=flatten(v,this.size,9);gl.uniformMatrix3fv(this.addr,false,data);}function setValueM4Array(gl,v){var data=flatten(v,this.size,16);gl.uniformMatrix4fv(this.addr,false,data);}\nfunction setValueT1Array(gl,v,textures){var n=v.length;var units=allocTexUnits(textures,n);gl.uniform1iv(this.addr,units);for(var _i84=0;_i84!==n;++_i84){textures.safeSetTexture2D(v[_i84]||emptyTexture,units[_i84]);}}function setValueT6Array(gl,v,textures){var n=v.length;var units=allocTexUnits(textures,n);gl.uniform1iv(this.addr,units);for(var _i85=0;_i85!==n;++_i85){textures.safeSetTextureCube(v[_i85]||emptyCubeTexture,units[_i85]);}}\nfunction getPureArraySetter(type){switch(type){case 0x1406:return setValueV1fArray;case 0x8b50:return setValueV2fArray;case 0x8b51:return setValueV3fArray;case 0x8b52:return setValueV4fArray;case 0x8b5a:return setValueM2Array;case 0x8b5b:return setValueM3Array;case 0x8b5c:return setValueM4Array;case 0x1404:case 0x8b56:return setValueV1iArray;case 0x8b53:case 0x8b57:return setValueV2iArray;case 0x8b54:case 0x8b58:return setValueV3iArray;case 0x8b55:case 0x8b59:return setValueV4iArray;case 0x8b5e:case 0x8d66:case 0x8dca:case 0x8dd2:case 0x8b62:return setValueT1Array;case 0x8b60:case 0x8dcc:case 0x8dd4:case 0x8dc5:return setValueT6Array;}}\nfunction SingleUniform(id,activeInfo,addr){this.id=id;this.addr=addr;this.cache=[];this.setValue=getSingularSetter(activeInfo.type);}function PureArrayUniform(id,activeInfo,addr){this.id=id;this.addr=addr;this.cache=[];this.size=activeInfo.size;this.setValue=getPureArraySetter(activeInfo.type);}PureArrayUniform.prototype.updateCache=function(data){var cache=this.cache;if(_instanceof(data,Float32Array)&&cache.length!==data.length){this.cache=new Float32Array(data.length);}copyArray(cache,data);};function StructuredUniform(id){this.id=id;this.seq=[];this.map={};}StructuredUniform.prototype.setValue=function(gl,value,textures){var seq=this.seq;for(var _i86=0,n=seq.length;_i86!==n;++_i86){var u=seq[_i86];u.setValue(gl,value[u.id],textures);}};var RePathPart=/([\\w\\d_]+)(\\])?(\\[|\\.)?/g;function addUniform(container,uniformObject){container.seq.push(uniformObject);container.map[uniformObject.id]=uniformObject;}function parseUniform(activeInfo,addr,container){var path=activeInfo.name,pathLength=path.length;RePathPart.lastIndex=0;while(true){var match=RePathPart.exec(path),matchEnd=RePathPart.lastIndex;var id=match[1];var idIsIndex=match[2]===']',subscript=match[3];if(idIsIndex)id=id|0;if(subscript===undefined||subscript==='['&&matchEnd+2===pathLength){addUniform(container,subscript===undefined?new SingleUniform(id,activeInfo,addr):new PureArrayUniform(id,activeInfo,addr));break;}else{var map=container.map;var next=map[id];if(next===undefined){next=new StructuredUniform(id);addUniform(container,next);}container=next;}}}\nfunction WebGLUniforms(gl,program){this.seq=[];this.map={};var n=gl.getProgramParameter(program,35718);for(var _i87=0;_i87<n;++_i87){var info=gl.getActiveUniform(program,_i87),addr=gl.getUniformLocation(program,info.name);parseUniform(info,addr,this);}}WebGLUniforms.prototype.setValue=function(gl,name,value,textures){var u=this.map[name];if(u!==undefined)u.setValue(gl,value,textures);};WebGLUniforms.prototype.setOptional=function(gl,object,name){var v=object[name];if(v!==undefined)this.setValue(gl,name,v);};WebGLUniforms.upload=function(gl,seq,values,textures){for(var _i88=0,n=seq.length;_i88!==n;++_i88){var u=seq[_i88],v=values[u.id];if(v.needsUpdate!==false){u.setValue(gl,v.value,textures);}}};WebGLUniforms.seqWithValue=function(seq,values){var r=[];for(var _i89=0,n=seq.length;_i89!==n;++_i89){var u=seq[_i89];if(u.id in values)r.push(u);}return r;};function WebGLShader(gl,type,string){var shader=gl.createShader(type);gl.shaderSource(shader,string);gl.compileShader(shader);return shader;}var programIdCount=0;function addLineNumbers(string){var lines=string.split('\\n');for(var _i90=0;_i90<lines.length;_i90++){lines[_i90]=_i90+1+': '+lines[_i90];}return lines.join('\\n');}function getEncodingComponents(encoding){switch(encoding){case LinearEncoding:return['Linear','( value )'];case sRGBEncoding:return['sRGB','( value )'];case RGBEEncoding:return['RGBE','( value )'];case RGBM7Encoding:return['RGBM','( value, 7.0 )'];case RGBM16Encoding:return['RGBM','( value, 16.0 )'];case RGBDEncoding:return['RGBD','( value, 256.0 )'];case GammaEncoding:return['Gamma','( value, float( GAMMA_FACTOR ) )'];case LogLuvEncoding:return['LogLuv','( value )'];default:console.warn('THREE.WebGLProgram: Unsupported encoding:',encoding);return['Linear','( value )'];}}function getShaderErrors(gl,shader,type){var status=gl.getShaderParameter(shader,35713);var log=gl.getShaderInfoLog(shader).trim();if(status&&log==='')return'';var source=gl.getShaderSource(shader);return'THREE.WebGLShader: gl.getShaderInfoLog() '+type+'\\n'+log+addLineNumbers(source);}function getTexelDecodingFunction(functionName,encoding){var components=getEncodingComponents(encoding);return'vec4 '+functionName+'( vec4 value ) { return '+components[0]+'ToLinear'+components[1]+'; }';}function getTexelEncodingFunction(functionName,encoding){var components=getEncodingComponents(encoding);return'vec4 '+functionName+'( vec4 value ) { return LinearTo'+components[0]+components[1]+'; }';}function getToneMappingFunction(functionName,toneMapping){var toneMappingName;switch(toneMapping){case LinearToneMapping:toneMappingName='Linear';break;case ReinhardToneMapping:toneMappingName='Reinhard';break;case CineonToneMapping:toneMappingName='OptimizedCineon';break;case ACESFilmicToneMapping:toneMappingName='ACESFilmic';break;case CustomToneMapping:toneMappingName='Custom';break;default:console.warn('THREE.WebGLProgram: Unsupported toneMapping:',toneMapping);toneMappingName='Linear';}return'vec3 '+functionName+'( vec3 color ) { return '+toneMappingName+'ToneMapping( color ); }';}function generateExtensions(parameters){var chunks=[parameters.extensionDerivatives||parameters.envMapCubeUV||parameters.bumpMap||parameters.tangentSpaceNormalMap||parameters.clearcoatNormalMap||parameters.flatShading||parameters.shaderID==='physical'?'#extension GL_OES_standard_derivatives : enable':'',(parameters.extensionFragDepth||parameters.logarithmicDepthBuffer)&&parameters.rendererExtensionFragDepth?'#extension GL_EXT_frag_depth : enable':'',parameters.extensionDrawBuffers&&parameters.rendererExtensionDrawBuffers?'#extension GL_EXT_draw_buffers : require':'',(parameters.extensionShaderTextureLOD||parameters.envMap)&&parameters.rendererExtensionShaderTextureLod?'#extension GL_EXT_shader_texture_lod : enable':''];return chunks.filter(filterEmptyLine).join('\\n');}function generateDefines(defines){var chunks=[];for(var name in defines){var value=defines[name];if(value===false)continue;chunks.push('#define '+name+' '+value);}return chunks.join('\\n');}function fetchAttributeLocations(gl,program){var attributes={};var n=gl.getProgramParameter(program,35721);for(var _i91=0;_i91<n;_i91++){var info=gl.getActiveAttrib(program,_i91);var name=info.name;attributes[name]=gl.getAttribLocation(program,name);}return attributes;}function filterEmptyLine(string){return string!=='';}function replaceLightNums(string,parameters){return string.replace(/NUM_DIR_LIGHTS/g,parameters.numDirLights).replace(/NUM_SPOT_LIGHTS/g,parameters.numSpotLights).replace(/NUM_RECT_AREA_LIGHTS/g,parameters.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g,parameters.numPointLights).replace(/NUM_HEMI_LIGHTS/g,parameters.numHemiLights).replace(/NUM_DIR_LIGHT_SHADOWS/g,parameters.numDirLightShadows).replace(/NUM_SPOT_LIGHT_SHADOWS/g,parameters.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g,parameters.numPointLightShadows);}function replaceClippingPlaneNums(string,parameters){return string.replace(/NUM_CLIPPING_PLANES/g,parameters.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,parameters.numClippingPlanes-parameters.numClipIntersection);}\nvar includePattern=/^[ \\t]*#include +<([\\w\\d./]+)>/gm;function resolveIncludes(string){return string.replace(includePattern,includeReplacer);}function includeReplacer(match,include){var string=ShaderChunk[include];if(string===undefined){throw new Error('Can not resolve #include <'+include+'>');}return resolveIncludes(string);}\nvar deprecatedUnrollLoopPattern=/#pragma unroll_loop[\\s]+?for \\( int i \\= (\\d+)\\; i < (\\d+)\\; i \\+\\+ \\) \\{([\\s\\S]+?)(?=\\})\\}/g;var unrollLoopPattern=/#pragma unroll_loop_start\\s+for\\s*\\(\\s*int\\s+i\\s*=\\s*(\\d+)\\s*;\\s*i\\s*<\\s*(\\d+)\\s*;\\s*i\\s*\\+\\+\\s*\\)\\s*{([\\s\\S]+?)}\\s+#pragma unroll_loop_end/g;function unrollLoops(string){return string.replace(unrollLoopPattern,loopReplacer).replace(deprecatedUnrollLoopPattern,deprecatedLoopReplacer);}function deprecatedLoopReplacer(match,start,end,snippet){console.warn('WebGLProgram: #pragma unroll_loop shader syntax is deprecated. Please use #pragma unroll_loop_start syntax instead.');return loopReplacer(match,start,end,snippet);}function loopReplacer(match,start,end,snippet){var string='';for(var _i92=parseInt(start);_i92<parseInt(end);_i92++){string+=snippet.replace(/\\[\\s*i\\s*\\]/g,'[ '+_i92+' ]').replace(/UNROLLED_LOOP_INDEX/g,_i92);}return string;}\nfunction generatePrecision(parameters){var precisionstring=\"precision \"+parameters.precision+\" float;\\nprecision \"+parameters.precision+\" int;\";if(parameters.precision===\"highp\"){precisionstring+=\"\\n#define HIGH_PRECISION\";}else if(parameters.precision===\"mediump\"){precisionstring+=\"\\n#define MEDIUM_PRECISION\";}else if(parameters.precision===\"lowp\"){precisionstring+=\"\\n#define LOW_PRECISION\";}return precisionstring;}function generateShadowMapTypeDefine(parameters){var shadowMapTypeDefine='SHADOWMAP_TYPE_BASIC';if(parameters.shadowMapType===PCFShadowMap){shadowMapTypeDefine='SHADOWMAP_TYPE_PCF';}else if(parameters.shadowMapType===PCFSoftShadowMap){shadowMapTypeDefine='SHADOWMAP_TYPE_PCF_SOFT';}else if(parameters.shadowMapType===VSMShadowMap){shadowMapTypeDefine='SHADOWMAP_TYPE_VSM';}return shadowMapTypeDefine;}function generateEnvMapTypeDefine(parameters){var envMapTypeDefine='ENVMAP_TYPE_CUBE';if(parameters.envMap){switch(parameters.envMapMode){case CubeReflectionMapping:case CubeRefractionMapping:envMapTypeDefine='ENVMAP_TYPE_CUBE';break;case CubeUVReflectionMapping:case CubeUVRefractionMapping:envMapTypeDefine='ENVMAP_TYPE_CUBE_UV';break;}}return envMapTypeDefine;}function generateEnvMapModeDefine(parameters){var envMapModeDefine='ENVMAP_MODE_REFLECTION';if(parameters.envMap){switch(parameters.envMapMode){case CubeRefractionMapping:case CubeUVRefractionMapping:envMapModeDefine='ENVMAP_MODE_REFRACTION';break;}}return envMapModeDefine;}function generateEnvMapBlendingDefine(parameters){var envMapBlendingDefine='ENVMAP_BLENDING_NONE';if(parameters.envMap){switch(parameters.combine){case MultiplyOperation:envMapBlendingDefine='ENVMAP_BLENDING_MULTIPLY';break;case MixOperation:envMapBlendingDefine='ENVMAP_BLENDING_MIX';break;case AddOperation:envMapBlendingDefine='ENVMAP_BLENDING_ADD';break;}}return envMapBlendingDefine;}function WebGLProgram(renderer,cacheKey,parameters,bindingStates){var gl=renderer.getContext();var defines=parameters.defines;var vertexShader=parameters.vertexShader;var fragmentShader=parameters.fragmentShader;var shadowMapTypeDefine=generateShadowMapTypeDefine(parameters);var envMapTypeDefine=generateEnvMapTypeDefine(parameters);var envMapModeDefine=generateEnvMapModeDefine(parameters);var envMapBlendingDefine=generateEnvMapBlendingDefine(parameters);var gammaFactorDefine=renderer.gammaFactor>0?renderer.gammaFactor:1.0;var customExtensions=parameters.isWebGL2?'':generateExtensions(parameters);var customDefines=generateDefines(defines);var program=gl.createProgram();var prefixVertex,prefixFragment;var versionString=parameters.glslVersion?'#version '+parameters.glslVersion+\"\\n\":'';if(parameters.isRawShaderMaterial){prefixVertex=[customDefines].filter(filterEmptyLine).join('\\n');if(prefixVertex.length>0){prefixVertex+='\\n';}prefixFragment=[customExtensions,customDefines].filter(filterEmptyLine).join('\\n');if(prefixFragment.length>0){prefixFragment+='\\n';}}else{prefixVertex=[generatePrecision(parameters),'#define SHADER_NAME '+parameters.shaderName,customDefines,parameters.instancing?'#define USE_INSTANCING':'',parameters.instancingColor?'#define USE_INSTANCING_COLOR':'',parameters.supportsVertexTextures?'#define VERTEX_TEXTURES':'','#define GAMMA_FACTOR '+gammaFactorDefine,'#define MAX_BONES '+parameters.maxBones,parameters.useFog&&parameters.fog?'#define USE_FOG':'',parameters.useFog&&parameters.fogExp2?'#define FOG_EXP2':'',parameters.map?'#define USE_MAP':'',parameters.envMap?'#define USE_ENVMAP':'',parameters.envMap?'#define '+envMapModeDefine:'',parameters.lightMap?'#define USE_LIGHTMAP':'',parameters.aoMap?'#define USE_AOMAP':'',parameters.emissiveMap?'#define USE_EMISSIVEMAP':'',parameters.bumpMap?'#define USE_BUMPMAP':'',parameters.normalMap?'#define USE_NORMALMAP':'',parameters.normalMap&&parameters.objectSpaceNormalMap?'#define OBJECTSPACE_NORMALMAP':'',parameters.normalMap&&parameters.tangentSpaceNormalMap?'#define TANGENTSPACE_NORMALMAP':'',parameters.clearcoatMap?'#define USE_CLEARCOATMAP':'',parameters.clearcoatRoughnessMap?'#define USE_CLEARCOAT_ROUGHNESSMAP':'',parameters.clearcoatNormalMap?'#define USE_CLEARCOAT_NORMALMAP':'',parameters.displacementMap&&parameters.supportsVertexTextures?'#define USE_DISPLACEMENTMAP':'',parameters.specularMap?'#define USE_SPECULARMAP':'',parameters.roughnessMap?'#define USE_ROUGHNESSMAP':'',parameters.metalnessMap?'#define USE_METALNESSMAP':'',parameters.alphaMap?'#define USE_ALPHAMAP':'',parameters.transmissionMap?'#define USE_TRANSMISSIONMAP':'',parameters.vertexTangents?'#define USE_TANGENT':'',parameters.vertexColors?'#define USE_COLOR':'',parameters.vertexUvs?'#define USE_UV':'',parameters.uvsVertexOnly?'#define UVS_VERTEX_ONLY':'',parameters.flatShading?'#define FLAT_SHADED':'',parameters.skinning?'#define USE_SKINNING':'',parameters.useVertexTexture?'#define BONE_TEXTURE':'',parameters.morphTargets?'#define USE_MORPHTARGETS':'',parameters.morphNormals&&parameters.flatShading===false?'#define USE_MORPHNORMALS':'',parameters.doubleSided?'#define DOUBLE_SIDED':'',parameters.flipSided?'#define FLIP_SIDED':'',parameters.shadowMapEnabled?'#define USE_SHADOWMAP':'',parameters.shadowMapEnabled?'#define '+shadowMapTypeDefine:'',parameters.sizeAttenuation?'#define USE_SIZEATTENUATION':'',parameters.logarithmicDepthBuffer?'#define USE_LOGDEPTHBUF':'',parameters.logarithmicDepthBuffer&&parameters.rendererExtensionFragDepth?'#define USE_LOGDEPTHBUF_EXT':'','uniform mat4 modelMatrix;','uniform mat4 modelViewMatrix;','uniform mat4 projectionMatrix;','uniform mat4 viewMatrix;','uniform mat3 normalMatrix;','uniform vec3 cameraPosition;','uniform bool isOrthographic;','#ifdef USE_INSTANCING',' attribute mat4 instanceMatrix;','#endif','#ifdef USE_INSTANCING_COLOR',' attribute vec3 instanceColor;','#endif','attribute vec3 position;','attribute vec3 normal;','attribute vec2 uv;','#ifdef USE_TANGENT',' attribute vec4 tangent;','#endif','#ifdef USE_COLOR',' attribute vec3 color;','#endif','#ifdef USE_MORPHTARGETS',' attribute vec3 morphTarget0;',' attribute vec3 morphTarget1;',' attribute vec3 morphTarget2;',' attribute vec3 morphTarget3;',' #ifdef USE_MORPHNORMALS','  attribute vec3 morphNormal0;','  attribute vec3 morphNormal1;','  attribute vec3 morphNormal2;','  attribute vec3 morphNormal3;',' #else','  attribute vec3 morphTarget4;','  attribute vec3 morphTarget5;','  attribute vec3 morphTarget6;','  attribute vec3 morphTarget7;',' #endif','#endif','#ifdef USE_SKINNING',' attribute vec4 skinIndex;',' attribute vec4 skinWeight;','#endif','\\n'].filter(filterEmptyLine).join('\\n');prefixFragment=[customExtensions,generatePrecision(parameters),'#define SHADER_NAME '+parameters.shaderName,customDefines,parameters.alphaTest?'#define ALPHATEST '+parameters.alphaTest+(parameters.alphaTest%1?'':'.0'):'','#define GAMMA_FACTOR '+gammaFactorDefine,parameters.useFog&&parameters.fog?'#define USE_FOG':'',parameters.useFog&&parameters.fogExp2?'#define FOG_EXP2':'',parameters.map?'#define USE_MAP':'',parameters.matcap?'#define USE_MATCAP':'',parameters.envMap?'#define USE_ENVMAP':'',parameters.envMap?'#define '+envMapTypeDefine:'',parameters.envMap?'#define '+envMapModeDefine:'',parameters.envMap?'#define '+envMapBlendingDefine:'',parameters.lightMap?'#define USE_LIGHTMAP':'',parameters.aoMap?'#define USE_AOMAP':'',parameters.emissiveMap?'#define USE_EMISSIVEMAP':'',parameters.bumpMap?'#define USE_BUMPMAP':'',parameters.normalMap?'#define USE_NORMALMAP':'',parameters.normalMap&&parameters.objectSpaceNormalMap?'#define OBJECTSPACE_NORMALMAP':'',parameters.normalMap&&parameters.tangentSpaceNormalMap?'#define TANGENTSPACE_NORMALMAP':'',parameters.clearcoatMap?'#define USE_CLEARCOATMAP':'',parameters.clearcoatRoughnessMap?'#define USE_CLEARCOAT_ROUGHNESSMAP':'',parameters.clearcoatNormalMap?'#define USE_CLEARCOAT_NORMALMAP':'',parameters.specularMap?'#define USE_SPECULARMAP':'',parameters.roughnessMap?'#define USE_ROUGHNESSMAP':'',parameters.metalnessMap?'#define USE_METALNESSMAP':'',parameters.alphaMap?'#define USE_ALPHAMAP':'',parameters.sheen?'#define USE_SHEEN':'',parameters.transmissionMap?'#define USE_TRANSMISSIONMAP':'',parameters.vertexTangents?'#define USE_TANGENT':'',parameters.vertexColors||parameters.instancingColor?'#define USE_COLOR':'',parameters.vertexUvs?'#define USE_UV':'',parameters.uvsVertexOnly?'#define UVS_VERTEX_ONLY':'',parameters.gradientMap?'#define USE_GRADIENTMAP':'',parameters.flatShading?'#define FLAT_SHADED':'',parameters.doubleSided?'#define DOUBLE_SIDED':'',parameters.flipSided?'#define FLIP_SIDED':'',parameters.shadowMapEnabled?'#define USE_SHADOWMAP':'',parameters.shadowMapEnabled?'#define '+shadowMapTypeDefine:'',parameters.premultipliedAlpha?'#define PREMULTIPLIED_ALPHA':'',parameters.physicallyCorrectLights?'#define PHYSICALLY_CORRECT_LIGHTS':'',parameters.logarithmicDepthBuffer?'#define USE_LOGDEPTHBUF':'',parameters.logarithmicDepthBuffer&&parameters.rendererExtensionFragDepth?'#define USE_LOGDEPTHBUF_EXT':'',(parameters.extensionShaderTextureLOD||parameters.envMap)&&parameters.rendererExtensionShaderTextureLod?'#define TEXTURE_LOD_EXT':'','uniform mat4 viewMatrix;','uniform vec3 cameraPosition;','uniform bool isOrthographic;',parameters.toneMapping!==NoToneMapping?'#define TONE_MAPPING':'',parameters.toneMapping!==NoToneMapping?ShaderChunk['tonemapping_pars_fragment']:'',parameters.toneMapping!==NoToneMapping?getToneMappingFunction('toneMapping',parameters.toneMapping):'',parameters.dithering?'#define DITHERING':'',ShaderChunk['encodings_pars_fragment'],parameters.map?getTexelDecodingFunction('mapTexelToLinear',parameters.mapEncoding):'',parameters.matcap?getTexelDecodingFunction('matcapTexelToLinear',parameters.matcapEncoding):'',parameters.envMap?getTexelDecodingFunction('envMapTexelToLinear',parameters.envMapEncoding):'',parameters.emissiveMap?getTexelDecodingFunction('emissiveMapTexelToLinear',parameters.emissiveMapEncoding):'',parameters.lightMap?getTexelDecodingFunction('lightMapTexelToLinear',parameters.lightMapEncoding):'',getTexelEncodingFunction('linearToOutputTexel',parameters.outputEncoding),parameters.depthPacking?'#define DEPTH_PACKING '+parameters.depthPacking:'','\\n'].filter(filterEmptyLine).join('\\n');}vertexShader=resolveIncludes(vertexShader);vertexShader=replaceLightNums(vertexShader,parameters);vertexShader=replaceClippingPlaneNums(vertexShader,parameters);fragmentShader=resolveIncludes(fragmentShader);fragmentShader=replaceLightNums(fragmentShader,parameters);fragmentShader=replaceClippingPlaneNums(fragmentShader,parameters);vertexShader=unrollLoops(vertexShader);fragmentShader=unrollLoops(fragmentShader);if(parameters.isWebGL2&&parameters.isRawShaderMaterial!==true){versionString='#version 300 es\\n';prefixVertex=['#define attribute in','#define varying out','#define texture2D texture'].join('\\n')+'\\n'+prefixVertex;prefixFragment=['#define varying in',parameters.glslVersion===GLSL3?'':'out highp vec4 pc_fragColor;',parameters.glslVersion===GLSL3?'':'#define gl_FragColor pc_fragColor','#define gl_FragDepthEXT gl_FragDepth','#define texture2D texture','#define textureCube texture','#define texture2DProj textureProj','#define texture2DLodEXT textureLod','#define texture2DProjLodEXT textureProjLod','#define textureCubeLodEXT textureLod','#define texture2DGradEXT textureGrad','#define texture2DProjGradEXT textureProjGrad','#define textureCubeGradEXT textureGrad'].join('\\n')+'\\n'+prefixFragment;}var vertexGlsl=versionString+prefixVertex+vertexShader;var fragmentGlsl=versionString+prefixFragment+fragmentShader;var glVertexShader=WebGLShader(gl,35633,vertexGlsl);var glFragmentShader=WebGLShader(gl,35632,fragmentGlsl);gl.attachShader(program,glVertexShader);gl.attachShader(program,glFragmentShader);if(parameters.index0AttributeName!==undefined){gl.bindAttribLocation(program,0,parameters.index0AttributeName);}else if(parameters.morphTargets===true){gl.bindAttribLocation(program,0,'position');}gl.linkProgram(program);if(renderer.debug.checkShaderErrors){var programLog=gl.getProgramInfoLog(program).trim();var vertexLog=gl.getShaderInfoLog(glVertexShader).trim();var fragmentLog=gl.getShaderInfoLog(glFragmentShader).trim();var runnable=true;var haveDiagnostics=true;if(gl.getProgramParameter(program,35714)===false){runnable=false;var vertexErrors=getShaderErrors(gl,glVertexShader,'vertex');var fragmentErrors=getShaderErrors(gl,glFragmentShader,'fragment');console.error('THREE.WebGLProgram: shader error: ',gl.getError(),'35715',gl.getProgramParameter(program,35715),'gl.getProgramInfoLog',programLog,vertexErrors,fragmentErrors);}else if(programLog!==''){console.warn('THREE.WebGLProgram: gl.getProgramInfoLog()',programLog);}else if(vertexLog===''||fragmentLog===''){haveDiagnostics=false;}if(haveDiagnostics){this.diagnostics={runnable:runnable,programLog:programLog,vertexShader:{log:vertexLog,prefix:prefixVertex},fragmentShader:{log:fragmentLog,prefix:prefixFragment}};}}\ngl.deleteShader(glVertexShader);gl.deleteShader(glFragmentShader);var cachedUniforms;this.getUniforms=function(){if(cachedUniforms===undefined){cachedUniforms=new WebGLUniforms(gl,program);}return cachedUniforms;};var cachedAttributes;this.getAttributes=function(){if(cachedAttributes===undefined){cachedAttributes=fetchAttributeLocations(gl,program);}return cachedAttributes;};this.destroy=function(){bindingStates.releaseStatesOfProgram(this);gl.deleteProgram(program);this.program=undefined;};this.name=parameters.shaderName;this.id=programIdCount++;this.cacheKey=cacheKey;this.usedTimes=1;this.program=program;this.vertexShader=glVertexShader;this.fragmentShader=glFragmentShader;return this;}function WebGLPrograms(renderer,cubemaps,extensions,capabilities,bindingStates,clipping){var programs=[];var isWebGL2=capabilities.isWebGL2;var logarithmicDepthBuffer=capabilities.logarithmicDepthBuffer;var floatVertexTextures=capabilities.floatVertexTextures;var maxVertexUniforms=capabilities.maxVertexUniforms;var vertexTextures=capabilities.vertexTextures;var precision=capabilities.precision;var shaderIDs={MeshDepthMaterial:'depth',MeshDistanceMaterial:'distanceRGBA',MeshNormalMaterial:'normal',MeshBasicMaterial:'basic',MeshLambertMaterial:'lambert',MeshPhongMaterial:'phong',MeshToonMaterial:'toon',MeshStandardMaterial:'physical',MeshPhysicalMaterial:'physical',MeshMatcapMaterial:'matcap',LineBasicMaterial:'basic',LineDashedMaterial:'dashed',PointsMaterial:'points',ShadowMaterial:'shadow',SpriteMaterial:'sprite'};var parameterNames=[\"precision\",\"isWebGL2\",\"supportsVertexTextures\",\"outputEncoding\",\"instancing\",\"instancingColor\",\"map\",\"mapEncoding\",\"matcap\",\"matcapEncoding\",\"envMap\",\"envMapMode\",\"envMapEncoding\",\"envMapCubeUV\",\"lightMap\",\"lightMapEncoding\",\"aoMap\",\"emissiveMap\",\"emissiveMapEncoding\",\"bumpMap\",\"normalMap\",\"objectSpaceNormalMap\",\"tangentSpaceNormalMap\",\"clearcoatMap\",\"clearcoatRoughnessMap\",\"clearcoatNormalMap\",\"displacementMap\",\"specularMap\",\"roughnessMap\",\"metalnessMap\",\"gradientMap\",\"alphaMap\",\"combine\",\"vertexColors\",\"vertexTangents\",\"vertexUvs\",\"uvsVertexOnly\",\"fog\",\"useFog\",\"fogExp2\",\"flatShading\",\"sizeAttenuation\",\"logarithmicDepthBuffer\",\"skinning\",\"maxBones\",\"useVertexTexture\",\"morphTargets\",\"morphNormals\",\"maxMorphTargets\",\"maxMorphNormals\",\"premultipliedAlpha\",\"numDirLights\",\"numPointLights\",\"numSpotLights\",\"numHemiLights\",\"numRectAreaLights\",\"numDirLightShadows\",\"numPointLightShadows\",\"numSpotLightShadows\",\"shadowMapEnabled\",\"shadowMapType\",\"toneMapping\",'physicallyCorrectLights',\"alphaTest\",\"doubleSided\",\"flipSided\",\"numClippingPlanes\",\"numClipIntersection\",\"depthPacking\",\"dithering\",\"sheen\",\"transmissionMap\"];function getMaxBones(object){var skeleton=object.skeleton;var bones=skeleton.bones;if(floatVertexTextures){return 1024;}else{var nVertexUniforms=maxVertexUniforms;var nVertexMatrices=Math.floor((nVertexUniforms-20)/4);var maxBones=Math.min(nVertexMatrices,bones.length);if(maxBones<bones.length){console.warn('THREE.WebGLRenderer: Skeleton has '+bones.length+' bones. This GPU supports '+maxBones+'.');return 0;}return maxBones;}}function getTextureEncodingFromMap(map){var encoding;if(!map){encoding=LinearEncoding;}else if(map.isTexture){encoding=map.encoding;}else if(map.isWebGLRenderTarget){console.warn(\"THREE.WebGLPrograms.getTextureEncodingFromMap: don't use render targets as textures. Use their .texture property instead.\");encoding=map.texture.encoding;}return encoding;}function getParameters(material,lights,shadows,scene,object){var fog=scene.fog;var environment=material.isMeshStandardMaterial?scene.environment:null;var envMap=cubemaps.get(material.envMap||environment);var shaderID=shaderIDs[material.type];var maxBones=object.isSkinnedMesh?getMaxBones(object):0;if(material.precision!==null){precision=capabilities.getMaxPrecision(material.precision);if(precision!==material.precision){console.warn('THREE.WebGLProgram.getParameters:',material.precision,'not supported, using',precision,'instead.');}}var vertexShader,fragmentShader;if(shaderID){var shader=ShaderLib[shaderID];vertexShader=shader.vertexShader;fragmentShader=shader.fragmentShader;}else{vertexShader=material.vertexShader;fragmentShader=material.fragmentShader;}var currentRenderTarget=renderer.getRenderTarget();var parameters={isWebGL2:isWebGL2,shaderID:shaderID,shaderName:material.type,vertexShader:vertexShader,fragmentShader:fragmentShader,defines:material.defines,isRawShaderMaterial:material.isRawShaderMaterial===true,glslVersion:material.glslVersion,precision:precision,instancing:object.isInstancedMesh===true,instancingColor:object.isInstancedMesh===true&&object.instanceColor!==null,supportsVertexTextures:vertexTextures,outputEncoding:currentRenderTarget!==null?getTextureEncodingFromMap(currentRenderTarget.texture):renderer.outputEncoding,map:!!material.map,mapEncoding:getTextureEncodingFromMap(material.map),matcap:!!material.matcap,matcapEncoding:getTextureEncodingFromMap(material.matcap),envMap:!!envMap,envMapMode:envMap&&envMap.mapping,envMapEncoding:getTextureEncodingFromMap(envMap),envMapCubeUV:!!envMap&&(envMap.mapping===CubeUVReflectionMapping||envMap.mapping===CubeUVRefractionMapping),lightMap:!!material.lightMap,lightMapEncoding:getTextureEncodingFromMap(material.lightMap),aoMap:!!material.aoMap,emissiveMap:!!material.emissiveMap,emissiveMapEncoding:getTextureEncodingFromMap(material.emissiveMap),bumpMap:!!material.bumpMap,normalMap:!!material.normalMap,objectSpaceNormalMap:material.normalMapType===ObjectSpaceNormalMap,tangentSpaceNormalMap:material.normalMapType===TangentSpaceNormalMap,clearcoatMap:!!material.clearcoatMap,clearcoatRoughnessMap:!!material.clearcoatRoughnessMap,clearcoatNormalMap:!!material.clearcoatNormalMap,displacementMap:!!material.displacementMap,roughnessMap:!!material.roughnessMap,metalnessMap:!!material.metalnessMap,specularMap:!!material.specularMap,alphaMap:!!material.alphaMap,gradientMap:!!material.gradientMap,sheen:!!material.sheen,transmissionMap:!!material.transmissionMap,combine:material.combine,vertexTangents:material.normalMap&&material.vertexTangents,vertexColors:material.vertexColors,vertexUvs:!!material.map||!!material.bumpMap||!!material.normalMap||!!material.specularMap||!!material.alphaMap||!!material.emissiveMap||!!material.roughnessMap||!!material.metalnessMap||!!material.clearcoatMap||!!material.clearcoatRoughnessMap||!!material.clearcoatNormalMap||!!material.displacementMap||!!material.transmissionMap,uvsVertexOnly:!(!!material.map||!!material.bumpMap||!!material.normalMap||!!material.specularMap||!!material.alphaMap||!!material.emissiveMap||!!material.roughnessMap||!!material.metalnessMap||!!material.clearcoatNormalMap||!!material.transmissionMap)&&!!material.displacementMap,fog:!!fog,useFog:material.fog,fogExp2:fog&&fog.isFogExp2,flatShading:material.flatShading,sizeAttenuation:material.sizeAttenuation,logarithmicDepthBuffer:logarithmicDepthBuffer,skinning:material.skinning&&maxBones>0,maxBones:maxBones,useVertexTexture:floatVertexTextures,morphTargets:material.morphTargets,morphNormals:material.morphNormals,maxMorphTargets:renderer.maxMorphTargets,maxMorphNormals:renderer.maxMorphNormals,numDirLights:lights.directional.length,numPointLights:lights.point.length,numSpotLights:lights.spot.length,numRectAreaLights:lights.rectArea.length,numHemiLights:lights.hemi.length,numDirLightShadows:lights.directionalShadowMap.length,numPointLightShadows:lights.pointShadowMap.length,numSpotLightShadows:lights.spotShadowMap.length,numClippingPlanes:clipping.numPlanes,numClipIntersection:clipping.numIntersection,dithering:material.dithering,shadowMapEnabled:renderer.shadowMap.enabled&&shadows.length>0,shadowMapType:renderer.shadowMap.type,toneMapping:material.toneMapped?renderer.toneMapping:NoToneMapping,physicallyCorrectLights:renderer.physicallyCorrectLights,premultipliedAlpha:material.premultipliedAlpha,alphaTest:material.alphaTest,doubleSided:material.side===DoubleSide,flipSided:material.side===BackSide,depthPacking:material.depthPacking!==undefined?material.depthPacking:false,index0AttributeName:material.index0AttributeName,extensionDerivatives:material.extensions&&material.extensions.derivatives,extensionFragDepth:material.extensions&&material.extensions.fragDepth,extensionDrawBuffers:material.extensions&&material.extensions.drawBuffers,extensionShaderTextureLOD:material.extensions&&material.extensions.shaderTextureLOD,rendererExtensionFragDepth:isWebGL2||extensions.has('EXT_frag_depth'),rendererExtensionDrawBuffers:isWebGL2||extensions.has('WEBGL_draw_buffers'),rendererExtensionShaderTextureLod:isWebGL2||extensions.has('EXT_shader_texture_lod'),customProgramCacheKey:material.customProgramCacheKey()};return parameters;}function getProgramCacheKey(parameters){var array=[];if(parameters.shaderID){array.push(parameters.shaderID);}else{array.push(parameters.fragmentShader);array.push(parameters.vertexShader);}if(parameters.defines!==undefined){for(var name in parameters.defines){array.push(name);array.push(parameters.defines[name]);}}if(parameters.isRawShaderMaterial===false){for(var _i93=0;_i93<parameterNames.length;_i93++){array.push(parameters[parameterNames[_i93]]);}array.push(renderer.outputEncoding);array.push(renderer.gammaFactor);}array.push(parameters.customProgramCacheKey);return array.join();}function getUniforms(material){var shaderID=shaderIDs[material.type];var uniforms;if(shaderID){var shader=ShaderLib[shaderID];uniforms=UniformsUtils.clone(shader.uniforms);}else{uniforms=material.uniforms;}return uniforms;}function acquireProgram(parameters,cacheKey){var program;for(var p=0,pl=programs.length;p<pl;p++){var preexistingProgram=programs[p];if(preexistingProgram.cacheKey===cacheKey){program=preexistingProgram;++program.usedTimes;break;}}if(program===undefined){program=new WebGLProgram(renderer,cacheKey,parameters,bindingStates);programs.push(program);}return program;}function releaseProgram(program){if(--program.usedTimes===0){var _i94=programs.indexOf(program);programs[_i94]=programs[programs.length-1];programs.pop();program.destroy();}}return{getParameters:getParameters,getProgramCacheKey:getProgramCacheKey,getUniforms:getUniforms,acquireProgram:acquireProgram,releaseProgram:releaseProgram,programs:programs};}function WebGLProperties(){var properties=new WeakMap();function get(object){var map=properties.get(object);if(map===undefined){map={};properties.set(object,map);}return map;}function remove(object){properties.delete(object);}function update(object,key,value){properties.get(object)[key]=value;}function dispose(){properties=new WeakMap();}return{get:get,remove:remove,update:update,dispose:dispose};}function painterSortStable(a,b){if(a.groupOrder!==b.groupOrder){return a.groupOrder-b.groupOrder;}else if(a.renderOrder!==b.renderOrder){return a.renderOrder-b.renderOrder;}else if(a.program!==b.program){return a.program.id-b.program.id;}else if(a.material.id!==b.material.id){return a.material.id-b.material.id;}else if(a.z!==b.z){return a.z-b.z;}else{return a.id-b.id;}}function reversePainterSortStable(a,b){if(a.groupOrder!==b.groupOrder){return a.groupOrder-b.groupOrder;}else if(a.renderOrder!==b.renderOrder){return a.renderOrder-b.renderOrder;}else if(a.z!==b.z){return b.z-a.z;}else{return a.id-b.id;}}function WebGLRenderList(properties){var renderItems=[];var renderItemsIndex=0;var opaque=[];var transparent=[];var defaultProgram={id:-1};function init(){renderItemsIndex=0;opaque.length=0;transparent.length=0;}function getNextRenderItem(object,geometry,material,groupOrder,z,group){var renderItem=renderItems[renderItemsIndex];var materialProperties=properties.get(material);if(renderItem===undefined){renderItem={id:object.id,object:object,geometry:geometry,material:material,program:materialProperties.program||defaultProgram,groupOrder:groupOrder,renderOrder:object.renderOrder,z:z,group:group};renderItems[renderItemsIndex]=renderItem;}else{renderItem.id=object.id;renderItem.object=object;renderItem.geometry=geometry;renderItem.material=material;renderItem.program=materialProperties.program||defaultProgram;renderItem.groupOrder=groupOrder;renderItem.renderOrder=object.renderOrder;renderItem.z=z;renderItem.group=group;}renderItemsIndex++;return renderItem;}function push(object,geometry,material,groupOrder,z,group){var renderItem=getNextRenderItem(object,geometry,material,groupOrder,z,group);(material.transparent===true?transparent:opaque).push(renderItem);}function unshift(object,geometry,material,groupOrder,z,group){var renderItem=getNextRenderItem(object,geometry,material,groupOrder,z,group);(material.transparent===true?transparent:opaque).unshift(renderItem);}function sort(customOpaqueSort,customTransparentSort){if(opaque.length>1)opaque.sort(customOpaqueSort||painterSortStable);if(transparent.length>1)transparent.sort(customTransparentSort||reversePainterSortStable);}function finish(){for(var _i95=renderItemsIndex,il=renderItems.length;_i95<il;_i95++){var renderItem=renderItems[_i95];if(renderItem.id===null)break;renderItem.id=null;renderItem.object=null;renderItem.geometry=null;renderItem.material=null;renderItem.program=null;renderItem.group=null;}}return{opaque:opaque,transparent:transparent,init:init,push:push,unshift:unshift,finish:finish,sort:sort};}function WebGLRenderLists(properties){var lists=new WeakMap();function get(scene,camera){var cameras=lists.get(scene);var list;if(cameras===undefined){list=new WebGLRenderList(properties);lists.set(scene,new WeakMap());lists.get(scene).set(camera,list);}else{list=cameras.get(camera);if(list===undefined){list=new WebGLRenderList(properties);cameras.set(camera,list);}}return list;}function dispose(){lists=new WeakMap();}return{get:get,dispose:dispose};}function UniformsCache(){var lights={};return{get:function get(light){if(lights[light.id]!==undefined){return lights[light.id];}var uniforms;switch(light.type){case'DirectionalLight':uniforms={direction:new Vector3(),color:new Color()};break;case'SpotLight':uniforms={position:new Vector3(),direction:new Vector3(),color:new Color(),distance:0,coneCos:0,penumbraCos:0,decay:0};break;case'PointLight':uniforms={position:new Vector3(),color:new Color(),distance:0,decay:0};break;case'HemisphereLight':uniforms={direction:new Vector3(),skyColor:new Color(),groundColor:new Color()};break;case'RectAreaLight':uniforms={color:new Color(),position:new Vector3(),halfWidth:new Vector3(),halfHeight:new Vector3()};break;}lights[light.id]=uniforms;return uniforms;}};}function ShadowUniformsCache(){var lights={};return{get:function get(light){if(lights[light.id]!==undefined){return lights[light.id];}var uniforms;switch(light.type){case'DirectionalLight':uniforms={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Vector2()};break;case'SpotLight':uniforms={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Vector2()};break;case'PointLight':uniforms={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Vector2(),shadowCameraNear:1,shadowCameraFar:1000};break;}lights[light.id]=uniforms;return uniforms;}};}var nextVersion=0;function shadowCastingLightsFirst(lightA,lightB){return(lightB.castShadow?1:0)-(lightA.castShadow?1:0);}function WebGLLights(){var cache=new UniformsCache();var shadowCache=ShadowUniformsCache();var state={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotShadow:[],spotShadowMap:[],spotShadowMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[]};for(var _i96=0;_i96<9;_i96++){state.probe.push(new Vector3());}var vector3=new Vector3();var matrix4=new Matrix4();var matrix42=new Matrix4();function setup(lights,shadows,camera){var r=0,g=0,b=0;for(var _i97=0;_i97<9;_i97++){state.probe[_i97].set(0,0,0);}var directionalLength=0;var pointLength=0;var spotLength=0;var rectAreaLength=0;var hemiLength=0;var numDirectionalShadows=0;var numPointShadows=0;var numSpotShadows=0;var viewMatrix=camera.matrixWorldInverse;lights.sort(shadowCastingLightsFirst);for(var _i98=0,l=lights.length;_i98<l;_i98++){var light=lights[_i98];var color=light.color;var intensity=light.intensity;var distance=light.distance;var shadowMap=light.shadow&&light.shadow.map?light.shadow.map.texture:null;if(light.isAmbientLight){r+=color.r*intensity;g+=color.g*intensity;b+=color.b*intensity;}else if(light.isLightProbe){for(var j=0;j<9;j++){state.probe[j].addScaledVector(light.sh.coefficients[j],intensity);}}else if(light.isDirectionalLight){var uniforms=cache.get(light);uniforms.color.copy(light.color).multiplyScalar(light.intensity);uniforms.direction.setFromMatrixPosition(light.matrixWorld);vector3.setFromMatrixPosition(light.target.matrixWorld);uniforms.direction.sub(vector3);uniforms.direction.transformDirection(viewMatrix);if(light.castShadow){var shadow=light.shadow;var shadowUniforms=shadowCache.get(light);shadowUniforms.shadowBias=shadow.bias;shadowUniforms.shadowNormalBias=shadow.normalBias;shadowUniforms.shadowRadius=shadow.radius;shadowUniforms.shadowMapSize=shadow.mapSize;state.directionalShadow[directionalLength]=shadowUniforms;state.directionalShadowMap[directionalLength]=shadowMap;state.directionalShadowMatrix[directionalLength]=light.shadow.matrix;numDirectionalShadows++;}state.directional[directionalLength]=uniforms;directionalLength++;}else if(light.isSpotLight){var _uniforms=cache.get(light);_uniforms.position.setFromMatrixPosition(light.matrixWorld);_uniforms.position.applyMatrix4(viewMatrix);_uniforms.color.copy(color).multiplyScalar(intensity);_uniforms.distance=distance;_uniforms.direction.setFromMatrixPosition(light.matrixWorld);vector3.setFromMatrixPosition(light.target.matrixWorld);_uniforms.direction.sub(vector3);_uniforms.direction.transformDirection(viewMatrix);_uniforms.coneCos=Math.cos(light.angle);_uniforms.penumbraCos=Math.cos(light.angle*(1-light.penumbra));_uniforms.decay=light.decay;if(light.castShadow){var _shadow=light.shadow;var _shadowUniforms=shadowCache.get(light);_shadowUniforms.shadowBias=_shadow.bias;_shadowUniforms.shadowNormalBias=_shadow.normalBias;_shadowUniforms.shadowRadius=_shadow.radius;_shadowUniforms.shadowMapSize=_shadow.mapSize;state.spotShadow[spotLength]=_shadowUniforms;state.spotShadowMap[spotLength]=shadowMap;state.spotShadowMatrix[spotLength]=light.shadow.matrix;numSpotShadows++;}state.spot[spotLength]=_uniforms;spotLength++;}else if(light.isRectAreaLight){var _uniforms2=cache.get(light);_uniforms2.color.copy(color).multiplyScalar(intensity);_uniforms2.position.setFromMatrixPosition(light.matrixWorld);_uniforms2.position.applyMatrix4(viewMatrix);matrix42.identity();matrix4.copy(light.matrixWorld);matrix4.premultiply(viewMatrix);matrix42.extractRotation(matrix4);_uniforms2.halfWidth.set(light.width*0.5,0.0,0.0);_uniforms2.halfHeight.set(0.0,light.height*0.5,0.0);_uniforms2.halfWidth.applyMatrix4(matrix42);_uniforms2.halfHeight.applyMatrix4(matrix42);state.rectArea[rectAreaLength]=_uniforms2;rectAreaLength++;}else if(light.isPointLight){var _uniforms3=cache.get(light);_uniforms3.position.setFromMatrixPosition(light.matrixWorld);_uniforms3.position.applyMatrix4(viewMatrix);_uniforms3.color.copy(light.color).multiplyScalar(light.intensity);_uniforms3.distance=light.distance;_uniforms3.decay=light.decay;if(light.castShadow){var _shadow2=light.shadow;var _shadowUniforms2=shadowCache.get(light);_shadowUniforms2.shadowBias=_shadow2.bias;_shadowUniforms2.shadowNormalBias=_shadow2.normalBias;_shadowUniforms2.shadowRadius=_shadow2.radius;_shadowUniforms2.shadowMapSize=_shadow2.mapSize;_shadowUniforms2.shadowCameraNear=_shadow2.camera.near;_shadowUniforms2.shadowCameraFar=_shadow2.camera.far;state.pointShadow[pointLength]=_shadowUniforms2;state.pointShadowMap[pointLength]=shadowMap;state.pointShadowMatrix[pointLength]=light.shadow.matrix;numPointShadows++;}state.point[pointLength]=_uniforms3;pointLength++;}else if(light.isHemisphereLight){var _uniforms4=cache.get(light);_uniforms4.direction.setFromMatrixPosition(light.matrixWorld);_uniforms4.direction.transformDirection(viewMatrix);_uniforms4.direction.normalize();_uniforms4.skyColor.copy(light.color).multiplyScalar(intensity);_uniforms4.groundColor.copy(light.groundColor).multiplyScalar(intensity);state.hemi[hemiLength]=_uniforms4;hemiLength++;}}if(rectAreaLength>0){state.rectAreaLTC1=UniformsLib.LTC_1;state.rectAreaLTC2=UniformsLib.LTC_2;}state.ambient[0]=r;state.ambient[1]=g;state.ambient[2]=b;var hash=state.hash;if(hash.directionalLength!==directionalLength||hash.pointLength!==pointLength||hash.spotLength!==spotLength||hash.rectAreaLength!==rectAreaLength||hash.hemiLength!==hemiLength||hash.numDirectionalShadows!==numDirectionalShadows||hash.numPointShadows!==numPointShadows||hash.numSpotShadows!==numSpotShadows){state.directional.length=directionalLength;state.spot.length=spotLength;state.rectArea.length=rectAreaLength;state.point.length=pointLength;state.hemi.length=hemiLength;state.directionalShadow.length=numDirectionalShadows;state.directionalShadowMap.length=numDirectionalShadows;state.pointShadow.length=numPointShadows;state.pointShadowMap.length=numPointShadows;state.spotShadow.length=numSpotShadows;state.spotShadowMap.length=numSpotShadows;state.directionalShadowMatrix.length=numDirectionalShadows;state.pointShadowMatrix.length=numPointShadows;state.spotShadowMatrix.length=numSpotShadows;hash.directionalLength=directionalLength;hash.pointLength=pointLength;hash.spotLength=spotLength;hash.rectAreaLength=rectAreaLength;hash.hemiLength=hemiLength;hash.numDirectionalShadows=numDirectionalShadows;hash.numPointShadows=numPointShadows;hash.numSpotShadows=numSpotShadows;state.version=nextVersion++;}}return{setup:setup,state:state};}function WebGLRenderState(){var lights=new WebGLLights();var lightsArray=[];var shadowsArray=[];function init(){lightsArray.length=0;shadowsArray.length=0;}function pushLight(light){lightsArray.push(light);}function pushShadow(shadowLight){shadowsArray.push(shadowLight);}function setupLights(camera){lights.setup(lightsArray,shadowsArray,camera);}var state={lightsArray:lightsArray,shadowsArray:shadowsArray,lights:lights};return{init:init,state:state,setupLights:setupLights,pushLight:pushLight,pushShadow:pushShadow};}function WebGLRenderStates(){var renderStates=new WeakMap();function get(scene,camera){var renderState;if(renderStates.has(scene)===false){renderState=new WebGLRenderState();renderStates.set(scene,new WeakMap());renderStates.get(scene).set(camera,renderState);}else{if(renderStates.get(scene).has(camera)===false){renderState=new WebGLRenderState();renderStates.get(scene).set(camera,renderState);}else{renderState=renderStates.get(scene).get(camera);}}return renderState;}function dispose(){renderStates=new WeakMap();}return{get:get,dispose:dispose};}function MeshDepthMaterial(parameters){Material.call(this);this.type='MeshDepthMaterial';this.depthPacking=BasicDepthPacking;this.skinning=false;this.morphTargets=false;this.map=null;this.alphaMap=null;this.displacementMap=null;this.displacementScale=1;this.displacementBias=0;this.wireframe=false;this.wireframeLinewidth=1;this.fog=false;this.setValues(parameters);}MeshDepthMaterial.prototype=Object.create(Material.prototype);MeshDepthMaterial.prototype.constructor=MeshDepthMaterial;MeshDepthMaterial.prototype.isMeshDepthMaterial=true;MeshDepthMaterial.prototype.copy=function(source){Material.prototype.copy.call(this,source);this.depthPacking=source.depthPacking;this.skinning=source.skinning;this.morphTargets=source.morphTargets;this.map=source.map;this.alphaMap=source.alphaMap;this.displacementMap=source.displacementMap;this.displacementScale=source.displacementScale;this.displacementBias=source.displacementBias;this.wireframe=source.wireframe;this.wireframeLinewidth=source.wireframeLinewidth;return this;};function MeshDistanceMaterial(parameters){Material.call(this);this.type='MeshDistanceMaterial';this.referencePosition=new Vector3();this.nearDistance=1;this.farDistance=1000;this.skinning=false;this.morphTargets=false;this.map=null;this.alphaMap=null;this.displacementMap=null;this.displacementScale=1;this.displacementBias=0;this.fog=false;this.setValues(parameters);}MeshDistanceMaterial.prototype=Object.create(Material.prototype);MeshDistanceMaterial.prototype.constructor=MeshDistanceMaterial;MeshDistanceMaterial.prototype.isMeshDistanceMaterial=true;MeshDistanceMaterial.prototype.copy=function(source){Material.prototype.copy.call(this,source);this.referencePosition.copy(source.referencePosition);this.nearDistance=source.nearDistance;this.farDistance=source.farDistance;this.skinning=source.skinning;this.morphTargets=source.morphTargets;this.map=source.map;this.alphaMap=source.alphaMap;this.displacementMap=source.displacementMap;this.displacementScale=source.displacementScale;this.displacementBias=source.displacementBias;return this;};var vsm_frag=\"uniform sampler2D shadow_pass;\\nuniform vec2 resolution;\\nuniform float radius;\\n#include <packing>\\nvoid main() {\\n\\tfloat mean = 0.0;\\n\\tfloat squared_mean = 0.0;\\n\\tfloat depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy ) / resolution ) );\\n\\tfor ( float i = -1.0; i < 1.0 ; i += SAMPLE_RATE) {\\n\\t\\t#ifdef HORIZONAL_PASS\\n\\t\\t\\tvec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( i, 0.0 ) * radius ) / resolution ) );\\n\\t\\t\\tmean += distribution.x;\\n\\t\\t\\tsquared_mean += distribution.y * distribution.y + distribution.x * distribution.x;\\n\\t\\t#else\\n\\t\\t\\tfloat depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, i ) * radius ) / resolution ) );\\n\\t\\t\\tmean += depth;\\n\\t\\t\\tsquared_mean += depth * depth;\\n\\t\\t#endif\\n\\t}\\n\\tmean = mean * HALF_SAMPLE_RATE;\\n\\tsquared_mean = squared_mean * HALF_SAMPLE_RATE;\\n\\tfloat std_dev = sqrt( squared_mean - mean * mean );\\n\\tgl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );\\n}\";var vsm_vert=\"void main() {\\n\\tgl_Position = vec4( position, 1.0 );\\n}\";function WebGLShadowMap(_renderer,_objects,maxTextureSize){var _frustum=new Frustum();var _shadowMapSize=new Vector2(),_viewportSize=new Vector2(),_viewport=new Vector4(),_depthMaterials=[],_distanceMaterials=[],_materialCache={};var shadowSide={0:BackSide,1:FrontSide,2:DoubleSide};var shadowMaterialVertical=new ShaderMaterial({defines:{SAMPLE_RATE:2.0/8.0,HALF_SAMPLE_RATE:1.0/8.0},uniforms:{shadow_pass:{value:null},resolution:{value:new Vector2()},radius:{value:4.0}},vertexShader:vsm_vert,fragmentShader:vsm_frag});var shadowMaterialHorizonal=shadowMaterialVertical.clone();shadowMaterialHorizonal.defines.HORIZONAL_PASS=1;var fullScreenTri=new BufferGeometry();fullScreenTri.setAttribute(\"position\",new BufferAttribute(new Float32Array([-1,-1,0.5,3,-1,0.5,-1,3,0.5]),3));var fullScreenMesh=new Mesh(fullScreenTri,shadowMaterialVertical);var scope=this;this.enabled=false;this.autoUpdate=true;this.needsUpdate=false;this.type=PCFShadowMap;this.render=function(lights,scene,camera){if(scope.enabled===false)return;if(scope.autoUpdate===false&&scope.needsUpdate===false)return;if(lights.length===0)return;var currentRenderTarget=_renderer.getRenderTarget();var activeCubeFace=_renderer.getActiveCubeFace();var activeMipmapLevel=_renderer.getActiveMipmapLevel();var _state=_renderer.state;_state.setBlending(NoBlending);_state.buffers.color.setClear(1,1,1,1);_state.buffers.depth.setTest(true);_state.setScissorTest(false);for(var _i99=0,il=lights.length;_i99<il;_i99++){var light=lights[_i99];var shadow=light.shadow;if(shadow===undefined){console.warn('THREE.WebGLShadowMap:',light,'has no shadow.');continue;}if(shadow.autoUpdate===false&&shadow.needsUpdate===false)continue;_shadowMapSize.copy(shadow.mapSize);var shadowFrameExtents=shadow.getFrameExtents();_shadowMapSize.multiply(shadowFrameExtents);_viewportSize.copy(shadow.mapSize);if(_shadowMapSize.x>maxTextureSize||_shadowMapSize.y>maxTextureSize){if(_shadowMapSize.x>maxTextureSize){_viewportSize.x=Math.floor(maxTextureSize/shadowFrameExtents.x);_shadowMapSize.x=_viewportSize.x*shadowFrameExtents.x;shadow.mapSize.x=_viewportSize.x;}if(_shadowMapSize.y>maxTextureSize){_viewportSize.y=Math.floor(maxTextureSize/shadowFrameExtents.y);_shadowMapSize.y=_viewportSize.y*shadowFrameExtents.y;shadow.mapSize.y=_viewportSize.y;}}if(shadow.map===null&&!shadow.isPointLightShadow&&this.type===VSMShadowMap){var pars={minFilter:LinearFilter,magFilter:LinearFilter,format:RGBAFormat};shadow.map=new WebGLRenderTarget(_shadowMapSize.x,_shadowMapSize.y,pars);shadow.map.texture.name=light.name+\".shadowMap\";shadow.mapPass=new WebGLRenderTarget(_shadowMapSize.x,_shadowMapSize.y,pars);shadow.camera.updateProjectionMatrix();}if(shadow.map===null){var _pars={minFilter:NearestFilter,magFilter:NearestFilter,format:RGBAFormat};shadow.map=new WebGLRenderTarget(_shadowMapSize.x,_shadowMapSize.y,_pars);shadow.map.texture.name=light.name+\".shadowMap\";shadow.camera.updateProjectionMatrix();}_renderer.setRenderTarget(shadow.map);_renderer.clear();var viewportCount=shadow.getViewportCount();for(var vp=0;vp<viewportCount;vp++){var viewport=shadow.getViewport(vp);_viewport.set(_viewportSize.x*viewport.x,_viewportSize.y*viewport.y,_viewportSize.x*viewport.z,_viewportSize.y*viewport.w);_state.viewport(_viewport);shadow.updateMatrices(light,vp);_frustum=shadow.getFrustum();renderObject(scene,camera,shadow.camera,light,this.type);}\nif(!shadow.isPointLightShadow&&this.type===VSMShadowMap){VSMPass(shadow,camera);}shadow.needsUpdate=false;}scope.needsUpdate=false;_renderer.setRenderTarget(currentRenderTarget,activeCubeFace,activeMipmapLevel);};function VSMPass(shadow,camera){var geometry=_objects.update(fullScreenMesh);shadowMaterialVertical.uniforms.shadow_pass.value=shadow.map.texture;shadowMaterialVertical.uniforms.resolution.value=shadow.mapSize;shadowMaterialVertical.uniforms.radius.value=shadow.radius;_renderer.setRenderTarget(shadow.mapPass);_renderer.clear();_renderer.renderBufferDirect(camera,null,geometry,shadowMaterialVertical,fullScreenMesh,null);shadowMaterialHorizonal.uniforms.shadow_pass.value=shadow.mapPass.texture;shadowMaterialHorizonal.uniforms.resolution.value=shadow.mapSize;shadowMaterialHorizonal.uniforms.radius.value=shadow.radius;_renderer.setRenderTarget(shadow.map);_renderer.clear();_renderer.renderBufferDirect(camera,null,geometry,shadowMaterialHorizonal,fullScreenMesh,null);}function getDepthMaterialVariant(useMorphing,useSkinning,useInstancing){var index=useMorphing<<0|useSkinning<<1|useInstancing<<2;var material=_depthMaterials[index];if(material===undefined){material=new MeshDepthMaterial({depthPacking:RGBADepthPacking,morphTargets:useMorphing,skinning:useSkinning});_depthMaterials[index]=material;}return material;}function getDistanceMaterialVariant(useMorphing,useSkinning,useInstancing){var index=useMorphing<<0|useSkinning<<1|useInstancing<<2;var material=_distanceMaterials[index];if(material===undefined){material=new MeshDistanceMaterial({morphTargets:useMorphing,skinning:useSkinning});_distanceMaterials[index]=material;}return material;}function getDepthMaterial(object,geometry,material,light,shadowCameraNear,shadowCameraFar,type){var result=null;var getMaterialVariant=getDepthMaterialVariant;var customMaterial=object.customDepthMaterial;if(light.isPointLight===true){getMaterialVariant=getDistanceMaterialVariant;customMaterial=object.customDistanceMaterial;}if(customMaterial===undefined){var useMorphing=false;if(material.morphTargets===true){useMorphing=geometry.morphAttributes&&geometry.morphAttributes.position&&geometry.morphAttributes.position.length>0;}var useSkinning=false;if(object.isSkinnedMesh===true){if(material.skinning===true){useSkinning=true;}else{console.warn('THREE.WebGLShadowMap: THREE.SkinnedMesh with material.skinning set to false:',object);}}var useInstancing=object.isInstancedMesh===true;result=getMaterialVariant(useMorphing,useSkinning,useInstancing);}else{result=customMaterial;}if(_renderer.localClippingEnabled&&material.clipShadows===true&&material.clippingPlanes.length!==0){var keyA=result.uuid,keyB=material.uuid;var materialsForVariant=_materialCache[keyA];if(materialsForVariant===undefined){materialsForVariant={};_materialCache[keyA]=materialsForVariant;}var cachedMaterial=materialsForVariant[keyB];if(cachedMaterial===undefined){cachedMaterial=result.clone();materialsForVariant[keyB]=cachedMaterial;}result=cachedMaterial;}result.visible=material.visible;result.wireframe=material.wireframe;if(type===VSMShadowMap){result.side=material.shadowSide!==null?material.shadowSide:material.side;}else{result.side=material.shadowSide!==null?material.shadowSide:shadowSide[material.side];}result.clipShadows=material.clipShadows;result.clippingPlanes=material.clippingPlanes;result.clipIntersection=material.clipIntersection;result.wireframeLinewidth=material.wireframeLinewidth;result.linewidth=material.linewidth;if(light.isPointLight===true&&result.isMeshDistanceMaterial===true){result.referencePosition.setFromMatrixPosition(light.matrixWorld);result.nearDistance=shadowCameraNear;result.farDistance=shadowCameraFar;}return result;}function renderObject(object,camera,shadowCamera,light,type){if(object.visible===false)return;var visible=object.layers.test(camera.layers);if(visible&&(object.isMesh||object.isLine||object.isPoints)){if((object.castShadow||object.receiveShadow&&type===VSMShadowMap)&&(!object.frustumCulled||_frustum.intersectsObject(object))){object.modelViewMatrix.multiplyMatrices(shadowCamera.matrixWorldInverse,object.matrixWorld);var geometry=_objects.update(object);var material=object.material;if(Array.isArray(material)){var groups=geometry.groups;for(var k=0,kl=groups.length;k<kl;k++){var group=groups[k];var groupMaterial=material[group.materialIndex];if(groupMaterial&&groupMaterial.visible){var depthMaterial=getDepthMaterial(object,geometry,groupMaterial,light,shadowCamera.near,shadowCamera.far,type);_renderer.renderBufferDirect(shadowCamera,null,geometry,depthMaterial,object,group);}}}else if(material.visible){var _depthMaterial=getDepthMaterial(object,geometry,material,light,shadowCamera.near,shadowCamera.far,type);_renderer.renderBufferDirect(shadowCamera,null,geometry,_depthMaterial,object,null);}}}var children=object.children;for(var _i100=0,l=children.length;_i100<l;_i100++){renderObject(children[_i100],camera,shadowCamera,light,type);}}}function WebGLState(gl,extensions,capabilities){var _equationToGL,_factorToGL;var isWebGL2=capabilities.isWebGL2;function ColorBuffer(){var locked=false;var color=new Vector4();var currentColorMask=null;var currentColorClear=new Vector4(0,0,0,0);return{setMask:function setMask(colorMask){if(currentColorMask!==colorMask&&!locked){gl.colorMask(colorMask,colorMask,colorMask,colorMask);currentColorMask=colorMask;}},setLocked:function setLocked(lock){locked=lock;},setClear:function setClear(r,g,b,a,premultipliedAlpha){if(premultipliedAlpha===true){r*=a;g*=a;b*=a;}color.set(r,g,b,a);if(currentColorClear.equals(color)===false){gl.clearColor(r,g,b,a);currentColorClear.copy(color);}},reset:function reset(){locked=false;currentColorMask=null;currentColorClear.set(-1,0,0,0);}};}function DepthBuffer(){var locked=false;var currentDepthMask=null;var currentDepthFunc=null;var currentDepthClear=null;return{setTest:function setTest(depthTest){if(depthTest){enable(2929);}else{disable(2929);}},setMask:function setMask(depthMask){if(currentDepthMask!==depthMask&&!locked){gl.depthMask(depthMask);currentDepthMask=depthMask;}},setFunc:function setFunc(depthFunc){if(currentDepthFunc!==depthFunc){if(depthFunc){switch(depthFunc){case NeverDepth:gl.depthFunc(512);break;case AlwaysDepth:gl.depthFunc(519);break;case LessDepth:gl.depthFunc(513);break;case LessEqualDepth:gl.depthFunc(515);break;case EqualDepth:gl.depthFunc(514);break;case GreaterEqualDepth:gl.depthFunc(518);break;case GreaterDepth:gl.depthFunc(516);break;case NotEqualDepth:gl.depthFunc(517);break;default:gl.depthFunc(515);}}else{gl.depthFunc(515);}currentDepthFunc=depthFunc;}},setLocked:function setLocked(lock){locked=lock;},setClear:function setClear(depth){if(currentDepthClear!==depth){gl.clearDepth(depth);currentDepthClear=depth;}},reset:function reset(){locked=false;currentDepthMask=null;currentDepthFunc=null;currentDepthClear=null;}};}function StencilBuffer(){var locked=false;var currentStencilMask=null;var currentStencilFunc=null;var currentStencilRef=null;var currentStencilFuncMask=null;var currentStencilFail=null;var currentStencilZFail=null;var currentStencilZPass=null;var currentStencilClear=null;return{setTest:function setTest(stencilTest){if(!locked){if(stencilTest){enable(2960);}else{disable(2960);}}},setMask:function setMask(stencilMask){if(currentStencilMask!==stencilMask&&!locked){gl.stencilMask(stencilMask);currentStencilMask=stencilMask;}},setFunc:function setFunc(stencilFunc,stencilRef,stencilMask){if(currentStencilFunc!==stencilFunc||currentStencilRef!==stencilRef||currentStencilFuncMask!==stencilMask){gl.stencilFunc(stencilFunc,stencilRef,stencilMask);currentStencilFunc=stencilFunc;currentStencilRef=stencilRef;currentStencilFuncMask=stencilMask;}},setOp:function setOp(stencilFail,stencilZFail,stencilZPass){if(currentStencilFail!==stencilFail||currentStencilZFail!==stencilZFail||currentStencilZPass!==stencilZPass){gl.stencilOp(stencilFail,stencilZFail,stencilZPass);currentStencilFail=stencilFail;currentStencilZFail=stencilZFail;currentStencilZPass=stencilZPass;}},setLocked:function setLocked(lock){locked=lock;},setClear:function setClear(stencil){if(currentStencilClear!==stencil){gl.clearStencil(stencil);currentStencilClear=stencil;}},reset:function reset(){locked=false;currentStencilMask=null;currentStencilFunc=null;currentStencilRef=null;currentStencilFuncMask=null;currentStencilFail=null;currentStencilZFail=null;currentStencilZPass=null;currentStencilClear=null;}};}\nvar colorBuffer=new ColorBuffer();var depthBuffer=new DepthBuffer();var stencilBuffer=new StencilBuffer();var enabledCapabilities={};var currentProgram=null;var currentBlendingEnabled=null;var currentBlending=null;var currentBlendEquation=null;var currentBlendSrc=null;var currentBlendDst=null;var currentBlendEquationAlpha=null;var currentBlendSrcAlpha=null;var currentBlendDstAlpha=null;var currentPremultipledAlpha=false;var currentFlipSided=null;var currentCullFace=null;var currentLineWidth=null;var currentPolygonOffsetFactor=null;var currentPolygonOffsetUnits=null;var maxTextures=gl.getParameter(35661);var lineWidthAvailable=false;var version=0;var glVersion=gl.getParameter(7938);if(glVersion.indexOf('WebGL')!==-1){version=parseFloat(/^WebGL\\ ([0-9])/.exec(glVersion)[1]);lineWidthAvailable=version>=1.0;}else if(glVersion.indexOf('OpenGL ES')!==-1){version=parseFloat(/^OpenGL\\ ES\\ ([0-9])/.exec(glVersion)[1]);lineWidthAvailable=version>=2.0;}var currentTextureSlot=null;var currentBoundTextures={};var currentScissor=new Vector4();var currentViewport=new Vector4();function createTexture(type,target,count){var data=new Uint8Array(4);var texture=gl.createTexture();gl.bindTexture(type,texture);gl.texParameteri(type,10241,9728);gl.texParameteri(type,10240,9728);for(var _i101=0;_i101<count;_i101++){gl.texImage2D(target+_i101,0,6408,1,1,0,6408,5121,data);}return texture;}var emptyTextures={};emptyTextures[3553]=createTexture(3553,3553,1);emptyTextures[34067]=createTexture(34067,34069,6);colorBuffer.setClear(0,0,0,1);depthBuffer.setClear(1);stencilBuffer.setClear(0);enable(2929);depthBuffer.setFunc(LessEqualDepth);setFlipSided(false);setCullFace(CullFaceBack);enable(2884);setBlending(NoBlending);function enable(id){if(enabledCapabilities[id]!==true){gl.enable(id);enabledCapabilities[id]=true;}}function disable(id){if(enabledCapabilities[id]!==false){gl.disable(id);enabledCapabilities[id]=false;}}function useProgram(program){if(currentProgram!==program){gl.useProgram(program);currentProgram=program;return true;}return false;}var equationToGL=(_equationToGL={},_defineProperty(_equationToGL,AddEquation,32774),_defineProperty(_equationToGL,SubtractEquation,32778),_defineProperty(_equationToGL,ReverseSubtractEquation,32779),_equationToGL);if(isWebGL2){equationToGL[MinEquation]=32775;equationToGL[MaxEquation]=32776;}else{var extension=extensions.get('EXT_blend_minmax');if(extension!==null){equationToGL[MinEquation]=extension.MIN_EXT;equationToGL[MaxEquation]=extension.MAX_EXT;}}var factorToGL=(_factorToGL={},_defineProperty(_factorToGL,ZeroFactor,0),_defineProperty(_factorToGL,OneFactor,1),_defineProperty(_factorToGL,SrcColorFactor,768),_defineProperty(_factorToGL,SrcAlphaFactor,770),_defineProperty(_factorToGL,SrcAlphaSaturateFactor,776),_defineProperty(_factorToGL,DstColorFactor,774),_defineProperty(_factorToGL,DstAlphaFactor,772),_defineProperty(_factorToGL,OneMinusSrcColorFactor,769),_defineProperty(_factorToGL,OneMinusSrcAlphaFactor,771),_defineProperty(_factorToGL,OneMinusDstColorFactor,775),_defineProperty(_factorToGL,OneMinusDstAlphaFactor,773),_factorToGL);function setBlending(blending,blendEquation,blendSrc,blendDst,blendEquationAlpha,blendSrcAlpha,blendDstAlpha,premultipliedAlpha){if(blending===NoBlending){if(currentBlendingEnabled){disable(3042);currentBlendingEnabled=false;}return;}if(!currentBlendingEnabled){enable(3042);currentBlendingEnabled=true;}if(blending!==CustomBlending){if(blending!==currentBlending||premultipliedAlpha!==currentPremultipledAlpha){if(currentBlendEquation!==AddEquation||currentBlendEquationAlpha!==AddEquation){gl.blendEquation(32774);currentBlendEquation=AddEquation;currentBlendEquationAlpha=AddEquation;}if(premultipliedAlpha){switch(blending){case NormalBlending:gl.blendFuncSeparate(1,771,1,771);break;case AdditiveBlending:gl.blendFunc(1,1);break;case SubtractiveBlending:gl.blendFuncSeparate(0,0,769,771);break;case MultiplyBlending:gl.blendFuncSeparate(0,768,0,770);break;default:console.error('THREE.WebGLState: Invalid blending: ',blending);break;}}else{switch(blending){case NormalBlending:gl.blendFuncSeparate(770,771,1,771);break;case AdditiveBlending:gl.blendFunc(770,1);break;case SubtractiveBlending:gl.blendFunc(0,769);break;case MultiplyBlending:gl.blendFunc(0,768);break;default:console.error('THREE.WebGLState: Invalid blending: ',blending);break;}}currentBlendSrc=null;currentBlendDst=null;currentBlendSrcAlpha=null;currentBlendDstAlpha=null;currentBlending=blending;currentPremultipledAlpha=premultipliedAlpha;}return;}\nblendEquationAlpha=blendEquationAlpha||blendEquation;blendSrcAlpha=blendSrcAlpha||blendSrc;blendDstAlpha=blendDstAlpha||blendDst;if(blendEquation!==currentBlendEquation||blendEquationAlpha!==currentBlendEquationAlpha){gl.blendEquationSeparate(equationToGL[blendEquation],equationToGL[blendEquationAlpha]);currentBlendEquation=blendEquation;currentBlendEquationAlpha=blendEquationAlpha;}if(blendSrc!==currentBlendSrc||blendDst!==currentBlendDst||blendSrcAlpha!==currentBlendSrcAlpha||blendDstAlpha!==currentBlendDstAlpha){gl.blendFuncSeparate(factorToGL[blendSrc],factorToGL[blendDst],factorToGL[blendSrcAlpha],factorToGL[blendDstAlpha]);currentBlendSrc=blendSrc;currentBlendDst=blendDst;currentBlendSrcAlpha=blendSrcAlpha;currentBlendDstAlpha=blendDstAlpha;}currentBlending=blending;currentPremultipledAlpha=null;}function setMaterial(material,frontFaceCW){material.side===DoubleSide?disable(2884):enable(2884);var flipSided=material.side===BackSide;if(frontFaceCW)flipSided=!flipSided;setFlipSided(flipSided);material.blending===NormalBlending&&material.transparent===false?setBlending(NoBlending):setBlending(material.blending,material.blendEquation,material.blendSrc,material.blendDst,material.blendEquationAlpha,material.blendSrcAlpha,material.blendDstAlpha,material.premultipliedAlpha);depthBuffer.setFunc(material.depthFunc);depthBuffer.setTest(material.depthTest);depthBuffer.setMask(material.depthWrite);colorBuffer.setMask(material.colorWrite);var stencilWrite=material.stencilWrite;stencilBuffer.setTest(stencilWrite);if(stencilWrite){stencilBuffer.setMask(material.stencilWriteMask);stencilBuffer.setFunc(material.stencilFunc,material.stencilRef,material.stencilFuncMask);stencilBuffer.setOp(material.stencilFail,material.stencilZFail,material.stencilZPass);}setPolygonOffset(material.polygonOffset,material.polygonOffsetFactor,material.polygonOffsetUnits);}\nfunction setFlipSided(flipSided){if(currentFlipSided!==flipSided){if(flipSided){gl.frontFace(2304);}else{gl.frontFace(2305);}currentFlipSided=flipSided;}}function setCullFace(cullFace){if(cullFace!==CullFaceNone){enable(2884);if(cullFace!==currentCullFace){if(cullFace===CullFaceBack){gl.cullFace(1029);}else if(cullFace===CullFaceFront){gl.cullFace(1028);}else{gl.cullFace(1032);}}}else{disable(2884);}currentCullFace=cullFace;}function setLineWidth(width){if(width!==currentLineWidth){if(lineWidthAvailable)gl.lineWidth(width);currentLineWidth=width;}}function setPolygonOffset(polygonOffset,factor,units){if(polygonOffset){enable(32823);if(currentPolygonOffsetFactor!==factor||currentPolygonOffsetUnits!==units){gl.polygonOffset(factor,units);currentPolygonOffsetFactor=factor;currentPolygonOffsetUnits=units;}}else{disable(32823);}}function setScissorTest(scissorTest){if(scissorTest){enable(3089);}else{disable(3089);}}\nfunction activeTexture(webglSlot){if(webglSlot===undefined)webglSlot=33984+maxTextures-1;if(currentTextureSlot!==webglSlot){gl.activeTexture(webglSlot);currentTextureSlot=webglSlot;}}function bindTexture(webglType,webglTexture){if(currentTextureSlot===null){activeTexture();}var boundTexture=currentBoundTextures[currentTextureSlot];if(boundTexture===undefined){boundTexture={type:undefined,texture:undefined};currentBoundTextures[currentTextureSlot]=boundTexture;}if(boundTexture.type!==webglType||boundTexture.texture!==webglTexture){gl.bindTexture(webglType,webglTexture||emptyTextures[webglType]);boundTexture.type=webglType;boundTexture.texture=webglTexture;}}function unbindTexture(){var boundTexture=currentBoundTextures[currentTextureSlot];if(boundTexture!==undefined&&boundTexture.type!==undefined){gl.bindTexture(boundTexture.type,null);boundTexture.type=undefined;boundTexture.texture=undefined;}}function compressedTexImage2D(){try{gl.compressedTexImage2D.apply(gl,arguments);}catch(error){console.error('THREE.WebGLState:',error);}}function texImage2D(){try{gl.texImage2D.apply(gl,arguments);}catch(error){console.error('THREE.WebGLState:',error);}}function texImage3D(){try{gl.texImage3D.apply(gl,arguments);}catch(error){console.error('THREE.WebGLState:',error);}}\nfunction scissor(scissor){if(currentScissor.equals(scissor)===false){gl.scissor(scissor.x,scissor.y,scissor.z,scissor.w);currentScissor.copy(scissor);}}function viewport(viewport){if(currentViewport.equals(viewport)===false){gl.viewport(viewport.x,viewport.y,viewport.z,viewport.w);currentViewport.copy(viewport);}}\nfunction reset(){enabledCapabilities={};currentTextureSlot=null;currentBoundTextures={};currentProgram=null;currentBlending=null;currentFlipSided=null;currentCullFace=null;colorBuffer.reset();depthBuffer.reset();stencilBuffer.reset();}return{buffers:{color:colorBuffer,depth:depthBuffer,stencil:stencilBuffer},enable:enable,disable:disable,useProgram:useProgram,setBlending:setBlending,setMaterial:setMaterial,setFlipSided:setFlipSided,setCullFace:setCullFace,setLineWidth:setLineWidth,setPolygonOffset:setPolygonOffset,setScissorTest:setScissorTest,activeTexture:activeTexture,bindTexture:bindTexture,unbindTexture:unbindTexture,compressedTexImage2D:compressedTexImage2D,texImage2D:texImage2D,texImage3D:texImage3D,scissor:scissor,viewport:viewport,reset:reset};}function WebGLTextures(_gl,extensions,state,properties,capabilities,utils,info){var _wrappingToGL,_filterToGL;var isWebGL2=capabilities.isWebGL2;var maxTextures=capabilities.maxTextures;var maxCubemapSize=capabilities.maxCubemapSize;var maxTextureSize=capabilities.maxTextureSize;var maxSamples=capabilities.maxSamples;var _videoTextures=new WeakMap();var _canvas;var useOffscreenCanvas=false;try{useOffscreenCanvas=typeof OffscreenCanvas!=='undefined'&&new OffscreenCanvas(1,1).getContext(\"2d\")!==null;}catch(err){}function createCanvas(width,height){return useOffscreenCanvas?new OffscreenCanvas(width,height):document.createElementNS('http://www.w3.org/1999/xhtml','canvas');}function resizeImage(image,needsPowerOfTwo,needsNewCanvas,maxSize){var scale=1;if(image.width>maxSize||image.height>maxSize){scale=maxSize/Math.max(image.width,image.height);}\nif(scale<1||needsPowerOfTwo===true){if(typeof HTMLImageElement!=='undefined'&&_instanceof(image,HTMLImageElement)||typeof HTMLCanvasElement!=='undefined'&&_instanceof(image,HTMLCanvasElement)||typeof ImageBitmap!=='undefined'&&_instanceof(image,ImageBitmap)){var floor=needsPowerOfTwo?MathUtils.floorPowerOfTwo:Math.floor;var width=floor(scale*image.width);var height=floor(scale*image.height);if(_canvas===undefined)_canvas=createCanvas(width,height);var canvas=needsNewCanvas?createCanvas(width,height):_canvas;canvas.width=width;canvas.height=height;var context=canvas.getContext('2d');context.drawImage(image,0,0,width,height);console.warn('THREE.WebGLRenderer: Texture has been resized from ('+image.width+'x'+image.height+') to ('+width+'x'+height+').');return canvas;}else{if('data'in image){console.warn('THREE.WebGLRenderer: Image in DataTexture is too big ('+image.width+'x'+image.height+').');}return image;}}return image;}function isPowerOfTwo(image){return MathUtils.isPowerOfTwo(image.width)&&MathUtils.isPowerOfTwo(image.height);}function textureNeedsPowerOfTwo(texture){if(isWebGL2)return false;return texture.wrapS!==ClampToEdgeWrapping||texture.wrapT!==ClampToEdgeWrapping||texture.minFilter!==NearestFilter&&texture.minFilter!==LinearFilter;}function textureNeedsGenerateMipmaps(texture,supportsMips){return texture.generateMipmaps&&supportsMips&&texture.minFilter!==NearestFilter&&texture.minFilter!==LinearFilter;}function generateMipmap(target,texture,width,height){_gl.generateMipmap(target);var textureProperties=properties.get(texture);textureProperties.__maxMipLevel=Math.log(Math.max(width,height))*Math.LOG2E;}function getInternalFormat(internalFormatName,glFormat,glType){if(isWebGL2===false)return glFormat;if(internalFormatName!==null){if(_gl[internalFormatName]!==undefined)return _gl[internalFormatName];console.warn('THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format \\''+internalFormatName+'\\'');}var internalFormat=glFormat;if(glFormat===6403){if(glType===5126)internalFormat=33326;if(glType===5131)internalFormat=33325;if(glType===5121)internalFormat=33321;}if(glFormat===6407){if(glType===5126)internalFormat=34837;if(glType===5131)internalFormat=34843;if(glType===5121)internalFormat=32849;}if(glFormat===6408){if(glType===5126)internalFormat=34836;if(glType===5131)internalFormat=34842;if(glType===5121)internalFormat=32856;}if(internalFormat===33325||internalFormat===33326||internalFormat===34842||internalFormat===34836){extensions.get('EXT_color_buffer_float');}return internalFormat;}\nfunction filterFallback(f){if(f===NearestFilter||f===NearestMipmapNearestFilter||f===NearestMipmapLinearFilter){return 9728;}return 9729;}\nfunction onTextureDispose(event){var texture=event.target;texture.removeEventListener('dispose',onTextureDispose);deallocateTexture(texture);if(texture.isVideoTexture){_videoTextures.delete(texture);}info.memory.textures--;}function onRenderTargetDispose(event){var renderTarget=event.target;renderTarget.removeEventListener('dispose',onRenderTargetDispose);deallocateRenderTarget(renderTarget);info.memory.textures--;}\nfunction deallocateTexture(texture){var textureProperties=properties.get(texture);if(textureProperties.__webglInit===undefined)return;_gl.deleteTexture(textureProperties.__webglTexture);properties.remove(texture);}function deallocateRenderTarget(renderTarget){var renderTargetProperties=properties.get(renderTarget);var textureProperties=properties.get(renderTarget.texture);if(!renderTarget)return;if(textureProperties.__webglTexture!==undefined){_gl.deleteTexture(textureProperties.__webglTexture);}if(renderTarget.depthTexture){renderTarget.depthTexture.dispose();}if(renderTarget.isWebGLCubeRenderTarget){for(var _i102=0;_i102<6;_i102++){_gl.deleteFramebuffer(renderTargetProperties.__webglFramebuffer[_i102]);if(renderTargetProperties.__webglDepthbuffer)_gl.deleteRenderbuffer(renderTargetProperties.__webglDepthbuffer[_i102]);}}else{_gl.deleteFramebuffer(renderTargetProperties.__webglFramebuffer);if(renderTargetProperties.__webglDepthbuffer)_gl.deleteRenderbuffer(renderTargetProperties.__webglDepthbuffer);if(renderTargetProperties.__webglMultisampledFramebuffer)_gl.deleteFramebuffer(renderTargetProperties.__webglMultisampledFramebuffer);if(renderTargetProperties.__webglColorRenderbuffer)_gl.deleteRenderbuffer(renderTargetProperties.__webglColorRenderbuffer);if(renderTargetProperties.__webglDepthRenderbuffer)_gl.deleteRenderbuffer(renderTargetProperties.__webglDepthRenderbuffer);}properties.remove(renderTarget.texture);properties.remove(renderTarget);}\nvar textureUnits=0;function resetTextureUnits(){textureUnits=0;}function allocateTextureUnit(){var textureUnit=textureUnits;if(textureUnit>=maxTextures){console.warn('THREE.WebGLTextures: Trying to use '+textureUnit+' texture units while this GPU supports only '+maxTextures);}textureUnits+=1;return textureUnit;}\nfunction setTexture2D(texture,slot){var textureProperties=properties.get(texture);if(texture.isVideoTexture)updateVideoTexture(texture);if(texture.version>0&&textureProperties.__version!==texture.version){var image=texture.image;if(image===undefined){console.warn('THREE.WebGLRenderer: Texture marked for update but image is undefined');}else if(image.complete===false){console.warn('THREE.WebGLRenderer: Texture marked for update but image is incomplete');}else{uploadTexture(textureProperties,texture,slot);return;}}state.activeTexture(33984+slot);state.bindTexture(3553,textureProperties.__webglTexture);}function setTexture2DArray(texture,slot){var textureProperties=properties.get(texture);if(texture.version>0&&textureProperties.__version!==texture.version){uploadTexture(textureProperties,texture,slot);return;}state.activeTexture(33984+slot);state.bindTexture(35866,textureProperties.__webglTexture);}function setTexture3D(texture,slot){var textureProperties=properties.get(texture);if(texture.version>0&&textureProperties.__version!==texture.version){uploadTexture(textureProperties,texture,slot);return;}state.activeTexture(33984+slot);state.bindTexture(32879,textureProperties.__webglTexture);}function setTextureCube(texture,slot){var textureProperties=properties.get(texture);if(texture.version>0&&textureProperties.__version!==texture.version){uploadCubeTexture(textureProperties,texture,slot);return;}state.activeTexture(33984+slot);state.bindTexture(34067,textureProperties.__webglTexture);}var wrappingToGL=(_wrappingToGL={},_defineProperty(_wrappingToGL,RepeatWrapping,10497),_defineProperty(_wrappingToGL,ClampToEdgeWrapping,33071),_defineProperty(_wrappingToGL,MirroredRepeatWrapping,33648),_wrappingToGL);var filterToGL=(_filterToGL={},_defineProperty(_filterToGL,NearestFilter,9728),_defineProperty(_filterToGL,NearestMipmapNearestFilter,9984),_defineProperty(_filterToGL,NearestMipmapLinearFilter,9986),_defineProperty(_filterToGL,LinearFilter,9729),_defineProperty(_filterToGL,LinearMipmapNearestFilter,9985),_defineProperty(_filterToGL,LinearMipmapLinearFilter,9987),_filterToGL);function setTextureParameters(textureType,texture,supportsMips){if(supportsMips){_gl.texParameteri(textureType,10242,wrappingToGL[texture.wrapS]);_gl.texParameteri(textureType,10243,wrappingToGL[texture.wrapT]);if(textureType===32879||textureType===35866){_gl.texParameteri(textureType,32882,wrappingToGL[texture.wrapR]);}_gl.texParameteri(textureType,10240,filterToGL[texture.magFilter]);_gl.texParameteri(textureType,10241,filterToGL[texture.minFilter]);}else{_gl.texParameteri(textureType,10242,33071);_gl.texParameteri(textureType,10243,33071);if(textureType===32879||textureType===35866){_gl.texParameteri(textureType,32882,33071);}if(texture.wrapS!==ClampToEdgeWrapping||texture.wrapT!==ClampToEdgeWrapping){console.warn('THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping.');}_gl.texParameteri(textureType,10240,filterFallback(texture.magFilter));_gl.texParameteri(textureType,10241,filterFallback(texture.minFilter));if(texture.minFilter!==NearestFilter&&texture.minFilter!==LinearFilter){console.warn('THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.');}}var extension=extensions.get('EXT_texture_filter_anisotropic');if(extension){if(texture.type===FloatType&&extensions.get('OES_texture_float_linear')===null)return;if(texture.type===HalfFloatType&&(isWebGL2||extensions.get('OES_texture_half_float_linear'))===null)return;if(texture.anisotropy>1||properties.get(texture).__currentAnisotropy){_gl.texParameterf(textureType,extension.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(texture.anisotropy,capabilities.getMaxAnisotropy()));properties.get(texture).__currentAnisotropy=texture.anisotropy;}}}function initTexture(textureProperties,texture){if(textureProperties.__webglInit===undefined){textureProperties.__webglInit=true;texture.addEventListener('dispose',onTextureDispose);textureProperties.__webglTexture=_gl.createTexture();info.memory.textures++;}}function uploadTexture(textureProperties,texture,slot){var textureType=3553;if(texture.isDataTexture2DArray)textureType=35866;if(texture.isDataTexture3D)textureType=32879;initTexture(textureProperties,texture);state.activeTexture(33984+slot);state.bindTexture(textureType,textureProperties.__webglTexture);_gl.pixelStorei(37440,texture.flipY);_gl.pixelStorei(37441,texture.premultiplyAlpha);_gl.pixelStorei(3317,texture.unpackAlignment);var needsPowerOfTwo=textureNeedsPowerOfTwo(texture)&&isPowerOfTwo(texture.image)===false;var image=resizeImage(texture.image,needsPowerOfTwo,false,maxTextureSize);var supportsMips=isPowerOfTwo(image)||isWebGL2,glFormat=utils.convert(texture.format);var glType=utils.convert(texture.type),glInternalFormat=getInternalFormat(texture.internalFormat,glFormat,glType);setTextureParameters(textureType,texture,supportsMips);var mipmap;var mipmaps=texture.mipmaps;if(texture.isDepthTexture){glInternalFormat=6402;if(isWebGL2){if(texture.type===FloatType){glInternalFormat=36012;}else if(texture.type===UnsignedIntType){glInternalFormat=33190;}else if(texture.type===UnsignedInt248Type){glInternalFormat=35056;}else{glInternalFormat=33189;}}else{if(texture.type===FloatType){console.error('WebGLRenderer: Floating point depth texture requires WebGL2.');}}\nif(texture.format===DepthFormat&&glInternalFormat===6402){if(texture.type!==UnsignedShortType&&texture.type!==UnsignedIntType){console.warn('THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture.');texture.type=UnsignedShortType;glType=utils.convert(texture.type);}}if(texture.format===DepthStencilFormat&&glInternalFormat===6402){glInternalFormat=34041;if(texture.type!==UnsignedInt248Type){console.warn('THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture.');texture.type=UnsignedInt248Type;glType=utils.convert(texture.type);}}\nstate.texImage2D(3553,0,glInternalFormat,image.width,image.height,0,glFormat,glType,null);}else if(texture.isDataTexture){if(mipmaps.length>0&&supportsMips){for(var _i103=0,il=mipmaps.length;_i103<il;_i103++){mipmap=mipmaps[_i103];state.texImage2D(3553,_i103,glInternalFormat,mipmap.width,mipmap.height,0,glFormat,glType,mipmap.data);}texture.generateMipmaps=false;textureProperties.__maxMipLevel=mipmaps.length-1;}else{state.texImage2D(3553,0,glInternalFormat,image.width,image.height,0,glFormat,glType,image.data);textureProperties.__maxMipLevel=0;}}else if(texture.isCompressedTexture){for(var _i104=0,_il9=mipmaps.length;_i104<_il9;_i104++){mipmap=mipmaps[_i104];if(texture.format!==RGBAFormat&&texture.format!==RGBFormat){if(glFormat!==null){state.compressedTexImage2D(3553,_i104,glInternalFormat,mipmap.width,mipmap.height,0,mipmap.data);}else{console.warn('THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()');}}else{state.texImage2D(3553,_i104,glInternalFormat,mipmap.width,mipmap.height,0,glFormat,glType,mipmap.data);}}textureProperties.__maxMipLevel=mipmaps.length-1;}else if(texture.isDataTexture2DArray){state.texImage3D(35866,0,glInternalFormat,image.width,image.height,image.depth,0,glFormat,glType,image.data);textureProperties.__maxMipLevel=0;}else if(texture.isDataTexture3D){state.texImage3D(32879,0,glInternalFormat,image.width,image.height,image.depth,0,glFormat,glType,image.data);textureProperties.__maxMipLevel=0;}else{if(mipmaps.length>0&&supportsMips){for(var _i105=0,_il10=mipmaps.length;_i105<_il10;_i105++){mipmap=mipmaps[_i105];state.texImage2D(3553,_i105,glInternalFormat,glFormat,glType,mipmap);}texture.generateMipmaps=false;textureProperties.__maxMipLevel=mipmaps.length-1;}else{state.texImage2D(3553,0,glInternalFormat,glFormat,glType,image);textureProperties.__maxMipLevel=0;}}if(textureNeedsGenerateMipmaps(texture,supportsMips)){generateMipmap(textureType,texture,image.width,image.height);}textureProperties.__version=texture.version;if(texture.onUpdate)texture.onUpdate(texture);}function uploadCubeTexture(textureProperties,texture,slot){if(texture.image.length!==6)return;initTexture(textureProperties,texture);state.activeTexture(33984+slot);state.bindTexture(34067,textureProperties.__webglTexture);_gl.pixelStorei(37440,texture.flipY);var isCompressed=texture&&(texture.isCompressedTexture||texture.image[0].isCompressedTexture);var isDataTexture=texture.image[0]&&texture.image[0].isDataTexture;var cubeImage=[];for(var _i106=0;_i106<6;_i106++){if(!isCompressed&&!isDataTexture){cubeImage[_i106]=resizeImage(texture.image[_i106],false,true,maxCubemapSize);}else{cubeImage[_i106]=isDataTexture?texture.image[_i106].image:texture.image[_i106];}}var image=cubeImage[0],supportsMips=isPowerOfTwo(image)||isWebGL2,glFormat=utils.convert(texture.format),glType=utils.convert(texture.type),glInternalFormat=getInternalFormat(texture.internalFormat,glFormat,glType);setTextureParameters(34067,texture,supportsMips);var mipmaps;if(isCompressed){for(var _i107=0;_i107<6;_i107++){mipmaps=cubeImage[_i107].mipmaps;for(var j=0;j<mipmaps.length;j++){var mipmap=mipmaps[j];if(texture.format!==RGBAFormat&&texture.format!==RGBFormat){if(glFormat!==null){state.compressedTexImage2D(34069+_i107,j,glInternalFormat,mipmap.width,mipmap.height,0,mipmap.data);}else{console.warn('THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()');}}else{state.texImage2D(34069+_i107,j,glInternalFormat,mipmap.width,mipmap.height,0,glFormat,glType,mipmap.data);}}}textureProperties.__maxMipLevel=mipmaps.length-1;}else{mipmaps=texture.mipmaps;for(var _i108=0;_i108<6;_i108++){if(isDataTexture){state.texImage2D(34069+_i108,0,glInternalFormat,cubeImage[_i108].width,cubeImage[_i108].height,0,glFormat,glType,cubeImage[_i108].data);for(var _j4=0;_j4<mipmaps.length;_j4++){var _mipmap=mipmaps[_j4];var mipmapImage=_mipmap.image[_i108].image;state.texImage2D(34069+_i108,_j4+1,glInternalFormat,mipmapImage.width,mipmapImage.height,0,glFormat,glType,mipmapImage.data);}}else{state.texImage2D(34069+_i108,0,glInternalFormat,glFormat,glType,cubeImage[_i108]);for(var _j5=0;_j5<mipmaps.length;_j5++){var _mipmap2=mipmaps[_j5];state.texImage2D(34069+_i108,_j5+1,glInternalFormat,glFormat,glType,_mipmap2.image[_i108]);}}}textureProperties.__maxMipLevel=mipmaps.length;}if(textureNeedsGenerateMipmaps(texture,supportsMips)){generateMipmap(34067,texture,image.width,image.height);}textureProperties.__version=texture.version;if(texture.onUpdate)texture.onUpdate(texture);}\nfunction setupFrameBufferTexture(framebuffer,renderTarget,attachment,textureTarget){var glFormat=utils.convert(renderTarget.texture.format);var glType=utils.convert(renderTarget.texture.type);var glInternalFormat=getInternalFormat(renderTarget.texture.internalFormat,glFormat,glType);state.texImage2D(textureTarget,0,glInternalFormat,renderTarget.width,renderTarget.height,0,glFormat,glType,null);_gl.bindFramebuffer(36160,framebuffer);_gl.framebufferTexture2D(36160,attachment,textureTarget,properties.get(renderTarget.texture).__webglTexture,0);_gl.bindFramebuffer(36160,null);}\nfunction setupRenderBufferStorage(renderbuffer,renderTarget,isMultisample){_gl.bindRenderbuffer(36161,renderbuffer);if(renderTarget.depthBuffer&&!renderTarget.stencilBuffer){var glInternalFormat=33189;if(isMultisample){var depthTexture=renderTarget.depthTexture;if(depthTexture&&depthTexture.isDepthTexture){if(depthTexture.type===FloatType){glInternalFormat=36012;}else if(depthTexture.type===UnsignedIntType){glInternalFormat=33190;}}var samples=getRenderTargetSamples(renderTarget);_gl.renderbufferStorageMultisample(36161,samples,glInternalFormat,renderTarget.width,renderTarget.height);}else{_gl.renderbufferStorage(36161,glInternalFormat,renderTarget.width,renderTarget.height);}_gl.framebufferRenderbuffer(36160,36096,36161,renderbuffer);}else if(renderTarget.depthBuffer&&renderTarget.stencilBuffer){if(isMultisample){var _samples=getRenderTargetSamples(renderTarget);_gl.renderbufferStorageMultisample(36161,_samples,35056,renderTarget.width,renderTarget.height);}else{_gl.renderbufferStorage(36161,34041,renderTarget.width,renderTarget.height);}_gl.framebufferRenderbuffer(36160,33306,36161,renderbuffer);}else{var glFormat=utils.convert(renderTarget.texture.format);var glType=utils.convert(renderTarget.texture.type);var _glInternalFormat=getInternalFormat(renderTarget.texture.internalFormat,glFormat,glType);if(isMultisample){var _samples2=getRenderTargetSamples(renderTarget);_gl.renderbufferStorageMultisample(36161,_samples2,_glInternalFormat,renderTarget.width,renderTarget.height);}else{_gl.renderbufferStorage(36161,_glInternalFormat,renderTarget.width,renderTarget.height);}}_gl.bindRenderbuffer(36161,null);}\nfunction setupDepthTexture(framebuffer,renderTarget){var isCube=renderTarget&&renderTarget.isWebGLCubeRenderTarget;if(isCube)throw new Error('Depth Texture with cube render targets is not supported');_gl.bindFramebuffer(36160,framebuffer);if(!(renderTarget.depthTexture&&renderTarget.depthTexture.isDepthTexture)){throw new Error('renderTarget.depthTexture must be an instance of THREE.DepthTexture');}\nif(!properties.get(renderTarget.depthTexture).__webglTexture||renderTarget.depthTexture.image.width!==renderTarget.width||renderTarget.depthTexture.image.height!==renderTarget.height){renderTarget.depthTexture.image.width=renderTarget.width;renderTarget.depthTexture.image.height=renderTarget.height;renderTarget.depthTexture.needsUpdate=true;}setTexture2D(renderTarget.depthTexture,0);var webglDepthTexture=properties.get(renderTarget.depthTexture).__webglTexture;if(renderTarget.depthTexture.format===DepthFormat){_gl.framebufferTexture2D(36160,36096,3553,webglDepthTexture,0);}else if(renderTarget.depthTexture.format===DepthStencilFormat){_gl.framebufferTexture2D(36160,33306,3553,webglDepthTexture,0);}else{throw new Error('Unknown depthTexture format');}}\nfunction setupDepthRenderbuffer(renderTarget){var renderTargetProperties=properties.get(renderTarget);var isCube=renderTarget.isWebGLCubeRenderTarget===true;if(renderTarget.depthTexture){if(isCube)throw new Error('target.depthTexture not supported in Cube render targets');setupDepthTexture(renderTargetProperties.__webglFramebuffer,renderTarget);}else{if(isCube){renderTargetProperties.__webglDepthbuffer=[];for(var _i109=0;_i109<6;_i109++){_gl.bindFramebuffer(36160,renderTargetProperties.__webglFramebuffer[_i109]);renderTargetProperties.__webglDepthbuffer[_i109]=_gl.createRenderbuffer();setupRenderBufferStorage(renderTargetProperties.__webglDepthbuffer[_i109],renderTarget,false);}}else{_gl.bindFramebuffer(36160,renderTargetProperties.__webglFramebuffer);renderTargetProperties.__webglDepthbuffer=_gl.createRenderbuffer();setupRenderBufferStorage(renderTargetProperties.__webglDepthbuffer,renderTarget,false);}}_gl.bindFramebuffer(36160,null);}\nfunction setupRenderTarget(renderTarget){var renderTargetProperties=properties.get(renderTarget);var textureProperties=properties.get(renderTarget.texture);renderTarget.addEventListener('dispose',onRenderTargetDispose);textureProperties.__webglTexture=_gl.createTexture();info.memory.textures++;var isCube=renderTarget.isWebGLCubeRenderTarget===true;var isMultisample=renderTarget.isWebGLMultisampleRenderTarget===true;var supportsMips=isPowerOfTwo(renderTarget)||isWebGL2;if(isWebGL2&&renderTarget.texture.format===RGBFormat&&(renderTarget.texture.type===FloatType||renderTarget.texture.type===HalfFloatType)){renderTarget.texture.format=RGBAFormat;console.warn('THREE.WebGLRenderer: Rendering to textures with RGB format is not supported. Using RGBA format instead.');}\nif(isCube){renderTargetProperties.__webglFramebuffer=[];for(var _i110=0;_i110<6;_i110++){renderTargetProperties.__webglFramebuffer[_i110]=_gl.createFramebuffer();}}else{renderTargetProperties.__webglFramebuffer=_gl.createFramebuffer();if(isMultisample){if(isWebGL2){renderTargetProperties.__webglMultisampledFramebuffer=_gl.createFramebuffer();renderTargetProperties.__webglColorRenderbuffer=_gl.createRenderbuffer();_gl.bindRenderbuffer(36161,renderTargetProperties.__webglColorRenderbuffer);var glFormat=utils.convert(renderTarget.texture.format);var glType=utils.convert(renderTarget.texture.type);var glInternalFormat=getInternalFormat(renderTarget.texture.internalFormat,glFormat,glType);var samples=getRenderTargetSamples(renderTarget);_gl.renderbufferStorageMultisample(36161,samples,glInternalFormat,renderTarget.width,renderTarget.height);_gl.bindFramebuffer(36160,renderTargetProperties.__webglMultisampledFramebuffer);_gl.framebufferRenderbuffer(36160,36064,36161,renderTargetProperties.__webglColorRenderbuffer);_gl.bindRenderbuffer(36161,null);if(renderTarget.depthBuffer){renderTargetProperties.__webglDepthRenderbuffer=_gl.createRenderbuffer();setupRenderBufferStorage(renderTargetProperties.__webglDepthRenderbuffer,renderTarget,true);}_gl.bindFramebuffer(36160,null);}else{console.warn('THREE.WebGLRenderer: WebGLMultisampleRenderTarget can only be used with WebGL2.');}}}\nif(isCube){state.bindTexture(34067,textureProperties.__webglTexture);setTextureParameters(34067,renderTarget.texture,supportsMips);for(var _i111=0;_i111<6;_i111++){setupFrameBufferTexture(renderTargetProperties.__webglFramebuffer[_i111],renderTarget,36064,34069+_i111);}if(textureNeedsGenerateMipmaps(renderTarget.texture,supportsMips)){generateMipmap(34067,renderTarget.texture,renderTarget.width,renderTarget.height);}state.bindTexture(34067,null);}else{state.bindTexture(3553,textureProperties.__webglTexture);setTextureParameters(3553,renderTarget.texture,supportsMips);setupFrameBufferTexture(renderTargetProperties.__webglFramebuffer,renderTarget,36064,3553);if(textureNeedsGenerateMipmaps(renderTarget.texture,supportsMips)){generateMipmap(3553,renderTarget.texture,renderTarget.width,renderTarget.height);}state.bindTexture(3553,null);}\nif(renderTarget.depthBuffer){setupDepthRenderbuffer(renderTarget);}}function updateRenderTargetMipmap(renderTarget){var texture=renderTarget.texture;var supportsMips=isPowerOfTwo(renderTarget)||isWebGL2;if(textureNeedsGenerateMipmaps(texture,supportsMips)){var _target2=renderTarget.isWebGLCubeRenderTarget?34067:3553;var webglTexture=properties.get(texture).__webglTexture;state.bindTexture(_target2,webglTexture);generateMipmap(_target2,texture,renderTarget.width,renderTarget.height);state.bindTexture(_target2,null);}}function updateMultisampleRenderTarget(renderTarget){if(renderTarget.isWebGLMultisampleRenderTarget){if(isWebGL2){var renderTargetProperties=properties.get(renderTarget);_gl.bindFramebuffer(36008,renderTargetProperties.__webglMultisampledFramebuffer);_gl.bindFramebuffer(36009,renderTargetProperties.__webglFramebuffer);var width=renderTarget.width;var height=renderTarget.height;var mask=16384;if(renderTarget.depthBuffer)mask|=256;if(renderTarget.stencilBuffer)mask|=1024;_gl.blitFramebuffer(0,0,width,height,0,0,width,height,mask,9728);_gl.bindFramebuffer(36160,renderTargetProperties.__webglMultisampledFramebuffer);}else{console.warn('THREE.WebGLRenderer: WebGLMultisampleRenderTarget can only be used with WebGL2.');}}}function getRenderTargetSamples(renderTarget){return isWebGL2&&renderTarget.isWebGLMultisampleRenderTarget?Math.min(maxSamples,renderTarget.samples):0;}function updateVideoTexture(texture){var frame=info.render.frame;if(_videoTextures.get(texture)!==frame){_videoTextures.set(texture,frame);texture.update();}}\nvar warnedTexture2D=false;var warnedTextureCube=false;function safeSetTexture2D(texture,slot){if(texture&&texture.isWebGLRenderTarget){if(warnedTexture2D===false){console.warn(\"THREE.WebGLTextures.safeSetTexture2D: don't use render targets as textures. Use their .texture property instead.\");warnedTexture2D=true;}texture=texture.texture;}setTexture2D(texture,slot);}function safeSetTextureCube(texture,slot){if(texture&&texture.isWebGLCubeRenderTarget){if(warnedTextureCube===false){console.warn(\"THREE.WebGLTextures.safeSetTextureCube: don't use cube render targets as textures. Use their .texture property instead.\");warnedTextureCube=true;}texture=texture.texture;}setTextureCube(texture,slot);}\nthis.allocateTextureUnit=allocateTextureUnit;this.resetTextureUnits=resetTextureUnits;this.setTexture2D=setTexture2D;this.setTexture2DArray=setTexture2DArray;this.setTexture3D=setTexture3D;this.setTextureCube=setTextureCube;this.setupRenderTarget=setupRenderTarget;this.updateRenderTargetMipmap=updateRenderTargetMipmap;this.updateMultisampleRenderTarget=updateMultisampleRenderTarget;this.safeSetTexture2D=safeSetTexture2D;this.safeSetTextureCube=safeSetTextureCube;}function WebGLUtils(gl,extensions,capabilities){var isWebGL2=capabilities.isWebGL2;function convert(p){var extension;if(p===UnsignedByteType)return 5121;if(p===UnsignedShort4444Type)return 32819;if(p===UnsignedShort5551Type)return 32820;if(p===UnsignedShort565Type)return 33635;if(p===ByteType)return 5120;if(p===ShortType)return 5122;if(p===UnsignedShortType)return 5123;if(p===IntType)return 5124;if(p===UnsignedIntType)return 5125;if(p===FloatType)return 5126;if(p===HalfFloatType){if(isWebGL2)return 5131;extension=extensions.get('OES_texture_half_float');if(extension!==null){return extension.HALF_FLOAT_OES;}else{return null;}}if(p===AlphaFormat)return 6406;if(p===RGBFormat)return 6407;if(p===RGBAFormat)return 6408;if(p===LuminanceFormat)return 6409;if(p===LuminanceAlphaFormat)return 6410;if(p===DepthFormat)return 6402;if(p===DepthStencilFormat)return 34041;if(p===RedFormat)return 6403;if(p===RedIntegerFormat)return 36244;if(p===RGFormat)return 33319;if(p===RGIntegerFormat)return 33320;if(p===RGBIntegerFormat)return 36248;if(p===RGBAIntegerFormat)return 36249;if(p===RGB_S3TC_DXT1_Format||p===RGBA_S3TC_DXT1_Format||p===RGBA_S3TC_DXT3_Format||p===RGBA_S3TC_DXT5_Format){extension=extensions.get('WEBGL_compressed_texture_s3tc');if(extension!==null){if(p===RGB_S3TC_DXT1_Format)return extension.COMPRESSED_RGB_S3TC_DXT1_EXT;if(p===RGBA_S3TC_DXT1_Format)return extension.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(p===RGBA_S3TC_DXT3_Format)return extension.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(p===RGBA_S3TC_DXT5_Format)return extension.COMPRESSED_RGBA_S3TC_DXT5_EXT;}else{return null;}}if(p===RGB_PVRTC_4BPPV1_Format||p===RGB_PVRTC_2BPPV1_Format||p===RGBA_PVRTC_4BPPV1_Format||p===RGBA_PVRTC_2BPPV1_Format){extension=extensions.get('WEBGL_compressed_texture_pvrtc');if(extension!==null){if(p===RGB_PVRTC_4BPPV1_Format)return extension.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(p===RGB_PVRTC_2BPPV1_Format)return extension.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(p===RGBA_PVRTC_4BPPV1_Format)return extension.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(p===RGBA_PVRTC_2BPPV1_Format)return extension.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG;}else{return null;}}if(p===RGB_ETC1_Format){extension=extensions.get('WEBGL_compressed_texture_etc1');if(extension!==null){return extension.COMPRESSED_RGB_ETC1_WEBGL;}else{return null;}}if(p===RGB_ETC2_Format||p===RGBA_ETC2_EAC_Format){extension=extensions.get('WEBGL_compressed_texture_etc');if(extension!==null){if(p===RGB_ETC2_Format)return extension.COMPRESSED_RGB8_ETC2;if(p===RGBA_ETC2_EAC_Format)return extension.COMPRESSED_RGBA8_ETC2_EAC;}}if(p===RGBA_ASTC_4x4_Format||p===RGBA_ASTC_5x4_Format||p===RGBA_ASTC_5x5_Format||p===RGBA_ASTC_6x5_Format||p===RGBA_ASTC_6x6_Format||p===RGBA_ASTC_8x5_Format||p===RGBA_ASTC_8x6_Format||p===RGBA_ASTC_8x8_Format||p===RGBA_ASTC_10x5_Format||p===RGBA_ASTC_10x6_Format||p===RGBA_ASTC_10x8_Format||p===RGBA_ASTC_10x10_Format||p===RGBA_ASTC_12x10_Format||p===RGBA_ASTC_12x12_Format||p===SRGB8_ALPHA8_ASTC_4x4_Format||p===SRGB8_ALPHA8_ASTC_5x4_Format||p===SRGB8_ALPHA8_ASTC_5x5_Format||p===SRGB8_ALPHA8_ASTC_6x5_Format||p===SRGB8_ALPHA8_ASTC_6x6_Format||p===SRGB8_ALPHA8_ASTC_8x5_Format||p===SRGB8_ALPHA8_ASTC_8x6_Format||p===SRGB8_ALPHA8_ASTC_8x8_Format||p===SRGB8_ALPHA8_ASTC_10x5_Format||p===SRGB8_ALPHA8_ASTC_10x6_Format||p===SRGB8_ALPHA8_ASTC_10x8_Format||p===SRGB8_ALPHA8_ASTC_10x10_Format||p===SRGB8_ALPHA8_ASTC_12x10_Format||p===SRGB8_ALPHA8_ASTC_12x12_Format){extension=extensions.get('WEBGL_compressed_texture_astc');if(extension!==null){return p;}else{return null;}}if(p===RGBA_BPTC_Format){extension=extensions.get('EXT_texture_compression_bptc');if(extension!==null){return p;}else{return null;}}if(p===UnsignedInt248Type){if(isWebGL2)return 34042;extension=extensions.get('WEBGL_depth_texture');if(extension!==null){return extension.UNSIGNED_INT_24_8_WEBGL;}else{return null;}}}return{convert:convert};}function ArrayCamera(array){PerspectiveCamera.call(this);this.cameras=array||[];}ArrayCamera.prototype=Object.assign(Object.create(PerspectiveCamera.prototype),{constructor:ArrayCamera,isArrayCamera:true});function Group(){Object3D.call(this);this.type='Group';}Group.prototype=Object.assign(Object.create(Object3D.prototype),{constructor:Group,isGroup:true});function WebXRController(){this._targetRay=null;this._grip=null;this._hand=null;}Object.assign(WebXRController.prototype,{constructor:WebXRController,getHandSpace:function getHandSpace(){if(this._hand===null){this._hand=new Group();this._hand.matrixAutoUpdate=false;this._hand.visible=false;this._hand.joints=[];this._hand.inputState={pinching:false};if(window.XRHand){for(var _i112=0;_i112<=window.XRHand.LITTLE_PHALANX_TIP;_i112++){var joint=new Group();joint.matrixAutoUpdate=false;joint.visible=false;this._hand.joints.push(joint);this._hand.add(joint);}}}return this._hand;},getTargetRaySpace:function getTargetRaySpace(){if(this._targetRay===null){this._targetRay=new Group();this._targetRay.matrixAutoUpdate=false;this._targetRay.visible=false;}return this._targetRay;},getGripSpace:function getGripSpace(){if(this._grip===null){this._grip=new Group();this._grip.matrixAutoUpdate=false;this._grip.visible=false;}return this._grip;},dispatchEvent:function dispatchEvent(event){if(this._targetRay!==null){this._targetRay.dispatchEvent(event);}if(this._grip!==null){this._grip.dispatchEvent(event);}if(this._hand!==null){this._hand.dispatchEvent(event);}return this;},disconnect:function disconnect(inputSource){this.dispatchEvent({type:'disconnected',data:inputSource});if(this._targetRay!==null){this._targetRay.visible=false;}if(this._grip!==null){this._grip.visible=false;}if(this._hand!==null){this._hand.visible=false;}return this;},update:function update(inputSource,frame,referenceSpace){var inputPose=null;var gripPose=null;var handPose=null;var targetRay=this._targetRay;var grip=this._grip;var hand=this._hand;if(inputSource){if(hand&&inputSource.hand){handPose=true;for(var _i113=0;_i113<=window.XRHand.LITTLE_PHALANX_TIP;_i113++){if(inputSource.hand[_i113]){var jointPose=frame.getJointPose(inputSource.hand[_i113],referenceSpace);var joint=hand.joints[_i113];if(jointPose!==null){joint.matrix.fromArray(jointPose.transform.matrix);joint.matrix.decompose(joint.position,joint.rotation,joint.scale);joint.jointRadius=jointPose.radius;}joint.visible=jointPose!==null;var indexTip=hand.joints[window.XRHand.INDEX_PHALANX_TIP];var thumbTip=hand.joints[window.XRHand.THUMB_PHALANX_TIP];var distance=indexTip.position.distanceTo(thumbTip.position);var distanceToPinch=0.02;var threshold=0.005;if(hand.inputState.pinching&&distance>distanceToPinch+threshold){hand.inputState.pinching=false;this.dispatchEvent({type:\"pinchend\",handedness:inputSource.handedness,target:this});}else if(!hand.inputState.pinching&&distance<=distanceToPinch-threshold){hand.inputState.pinching=true;this.dispatchEvent({type:\"pinchstart\",handedness:inputSource.handedness,target:this});}}}}else{if(targetRay!==null){inputPose=frame.getPose(inputSource.targetRaySpace,referenceSpace);if(inputPose!==null){targetRay.matrix.fromArray(inputPose.transform.matrix);targetRay.matrix.decompose(targetRay.position,targetRay.rotation,targetRay.scale);}}if(grip!==null&&inputSource.gripSpace){gripPose=frame.getPose(inputSource.gripSpace,referenceSpace);if(gripPose!==null){grip.matrix.fromArray(gripPose.transform.matrix);grip.matrix.decompose(grip.position,grip.rotation,grip.scale);}}}}if(targetRay!==null){targetRay.visible=inputPose!==null;}if(grip!==null){grip.visible=gripPose!==null;}if(hand!==null){hand.visible=handPose!==null;}return this;}});function WebXRManager(renderer,gl){var scope=this;var session=null;var framebufferScaleFactor=1.0;var referenceSpace=null;var referenceSpaceType='local-floor';var pose=null;var controllers=[];var inputSourcesMap=new Map();var cameraL=new PerspectiveCamera();cameraL.layers.enable(1);cameraL.viewport=new Vector4();var cameraR=new PerspectiveCamera();cameraR.layers.enable(2);cameraR.viewport=new Vector4();var cameras=[cameraL,cameraR];var cameraVR=new ArrayCamera();cameraVR.layers.enable(1);cameraVR.layers.enable(2);var _currentDepthNear=null;var _currentDepthFar=null;this.enabled=false;this.isPresenting=false;this.getController=function(index){var controller=controllers[index];if(controller===undefined){controller=new WebXRController();controllers[index]=controller;}return controller.getTargetRaySpace();};this.getControllerGrip=function(index){var controller=controllers[index];if(controller===undefined){controller=new WebXRController();controllers[index]=controller;}return controller.getGripSpace();};this.getHand=function(index){var controller=controllers[index];if(controller===undefined){controller=new WebXRController();controllers[index]=controller;}return controller.getHandSpace();};function onSessionEvent(event){var controller=inputSourcesMap.get(event.inputSource);if(controller){controller.dispatchEvent({type:event.type,data:event.inputSource});}}function onSessionEnd(){inputSourcesMap.forEach(function(controller,inputSource){controller.disconnect(inputSource);});inputSourcesMap.clear();renderer.setFramebuffer(null);renderer.setRenderTarget(renderer.getRenderTarget());animation.stop();scope.isPresenting=false;scope.dispatchEvent({type:'sessionend'});}function onRequestReferenceSpace(value){referenceSpace=value;animation.setContext(session);animation.start();scope.isPresenting=true;scope.dispatchEvent({type:'sessionstart'});}this.setFramebufferScaleFactor=function(value){framebufferScaleFactor=value;if(scope.isPresenting===true){console.warn('THREE.WebXRManager: Cannot change framebuffer scale while presenting.');}};this.setReferenceSpaceType=function(value){referenceSpaceType=value;if(scope.isPresenting===true){console.warn('THREE.WebXRManager: Cannot change reference space type while presenting.');}};this.getReferenceSpace=function(){return referenceSpace;};this.getSession=function(){return session;};this.setSession=function(value){session=value;if(session!==null){session.addEventListener('select',onSessionEvent);session.addEventListener('selectstart',onSessionEvent);session.addEventListener('selectend',onSessionEvent);session.addEventListener('squeeze',onSessionEvent);session.addEventListener('squeezestart',onSessionEvent);session.addEventListener('squeezeend',onSessionEvent);session.addEventListener('end',onSessionEnd);var attributes=gl.getContextAttributes();if(attributes.xrCompatible!==true){gl.makeXRCompatible();}var layerInit={antialias:attributes.antialias,alpha:attributes.alpha,depth:attributes.depth,stencil:attributes.stencil,framebufferScaleFactor:framebufferScaleFactor};var baseLayer=new XRWebGLLayer(session,gl,layerInit);session.updateRenderState({baseLayer:baseLayer});session.requestReferenceSpace(referenceSpaceType).then(onRequestReferenceSpace);session.addEventListener('inputsourceschange',updateInputSources);}};function updateInputSources(event){var inputSources=session.inputSources;for(var _i114=0;_i114<controllers.length;_i114++){inputSourcesMap.set(inputSources[_i114],controllers[_i114]);}\nfor(var _i115=0;_i115<event.removed.length;_i115++){var inputSource=event.removed[_i115];var controller=inputSourcesMap.get(inputSource);if(controller){controller.dispatchEvent({type:'disconnected',data:inputSource});inputSourcesMap.delete(inputSource);}}\nfor(var _i116=0;_i116<event.added.length;_i116++){var _inputSource=event.added[_i116];var _controller=inputSourcesMap.get(_inputSource);if(_controller){_controller.dispatchEvent({type:'connected',data:_inputSource});}}}\nvar cameraLPos=new Vector3();var cameraRPos=new Vector3();function setProjectionFromUnion(camera,cameraL,cameraR){cameraLPos.setFromMatrixPosition(cameraL.matrixWorld);cameraRPos.setFromMatrixPosition(cameraR.matrixWorld);var ipd=cameraLPos.distanceTo(cameraRPos);var projL=cameraL.projectionMatrix.elements;var projR=cameraR.projectionMatrix.elements;var near=projL[14]/(projL[10]-1);var far=projL[14]/(projL[10]+1);var topFov=(projL[9]+1)/projL[5];var bottomFov=(projL[9]-1)/projL[5];var leftFov=(projL[8]-1)/projL[0];var rightFov=(projR[8]+1)/projR[0];var left=near*leftFov;var right=near*rightFov;var zOffset=ipd/(-leftFov+rightFov);var xOffset=zOffset*-leftFov;cameraL.matrixWorld.decompose(camera.position,camera.quaternion,camera.scale);camera.translateX(xOffset);camera.translateZ(zOffset);camera.matrixWorld.compose(camera.position,camera.quaternion,camera.scale);camera.matrixWorldInverse.getInverse(camera.matrixWorld);var near2=near+zOffset;var far2=far+zOffset;var left2=left-xOffset;var right2=right+(ipd-xOffset);var top2=topFov*far/far2*near2;var bottom2=bottomFov*far/far2*near2;camera.projectionMatrix.makePerspective(left2,right2,top2,bottom2,near2,far2);}function updateCamera(camera,parent){if(parent===null){camera.matrixWorld.copy(camera.matrix);}else{camera.matrixWorld.multiplyMatrices(parent.matrixWorld,camera.matrix);}camera.matrixWorldInverse.getInverse(camera.matrixWorld);}this.getCamera=function(camera){cameraVR.near=cameraR.near=cameraL.near=camera.near;cameraVR.far=cameraR.far=cameraL.far=camera.far;if(_currentDepthNear!==cameraVR.near||_currentDepthFar!==cameraVR.far){session.updateRenderState({depthNear:cameraVR.near,depthFar:cameraVR.far});_currentDepthNear=cameraVR.near;_currentDepthFar=cameraVR.far;}var parent=camera.parent;var cameras=cameraVR.cameras;updateCamera(cameraVR,parent);for(var _i117=0;_i117<cameras.length;_i117++){updateCamera(cameras[_i117],parent);}\ncamera.matrixWorld.copy(cameraVR.matrixWorld);var children=camera.children;for(var _i118=0,l=children.length;_i118<l;_i118++){children[_i118].updateMatrixWorld(true);}\nif(cameras.length===2){setProjectionFromUnion(cameraVR,cameraL,cameraR);}else{cameraVR.projectionMatrix.copy(cameraL.projectionMatrix);}return cameraVR;};var onAnimationFrameCallback=null;function onAnimationFrame(time,frame){pose=frame.getViewerPose(referenceSpace);if(pose!==null){var views=pose.views;var baseLayer=session.renderState.baseLayer;renderer.setFramebuffer(baseLayer.framebuffer);var cameraVRNeedsUpdate=false;if(views.length!==cameraVR.cameras.length){cameraVR.cameras.length=0;cameraVRNeedsUpdate=true;}for(var _i119=0;_i119<views.length;_i119++){var _view=views[_i119];var viewport=baseLayer.getViewport(_view);var camera=cameras[_i119];camera.matrix.fromArray(_view.transform.matrix);camera.projectionMatrix.fromArray(_view.projectionMatrix);camera.viewport.set(viewport.x,viewport.y,viewport.width,viewport.height);if(_i119===0){cameraVR.matrix.copy(camera.matrix);}if(cameraVRNeedsUpdate===true){cameraVR.cameras.push(camera);}}}\nvar inputSources=session.inputSources;for(var _i120=0;_i120<controllers.length;_i120++){var controller=controllers[_i120];var inputSource=inputSources[_i120];controller.update(inputSource,frame,referenceSpace);}if(onAnimationFrameCallback)onAnimationFrameCallback(time,frame);}var animation=new WebGLAnimation();animation.setAnimationLoop(onAnimationFrame);this.setAnimationLoop=function(callback){onAnimationFrameCallback=callback;};this.dispose=function(){};}Object.assign(WebXRManager.prototype,EventDispatcher.prototype);function WebGLMaterials(properties){function refreshFogUniforms(uniforms,fog){uniforms.fogColor.value.copy(fog.color);if(fog.isFog){uniforms.fogNear.value=fog.near;uniforms.fogFar.value=fog.far;}else if(fog.isFogExp2){uniforms.fogDensity.value=fog.density;}}function refreshMaterialUniforms(uniforms,material,pixelRatio,height){if(material.isMeshBasicMaterial){refreshUniformsCommon(uniforms,material);}else if(material.isMeshLambertMaterial){refreshUniformsCommon(uniforms,material);refreshUniformsLambert(uniforms,material);}else if(material.isMeshToonMaterial){refreshUniformsCommon(uniforms,material);refreshUniformsToon(uniforms,material);}else if(material.isMeshPhongMaterial){refreshUniformsCommon(uniforms,material);refreshUniformsPhong(uniforms,material);}else if(material.isMeshStandardMaterial){refreshUniformsCommon(uniforms,material);if(material.isMeshPhysicalMaterial){refreshUniformsPhysical(uniforms,material);}else{refreshUniformsStandard(uniforms,material);}}else if(material.isMeshMatcapMaterial){refreshUniformsCommon(uniforms,material);refreshUniformsMatcap(uniforms,material);}else if(material.isMeshDepthMaterial){refreshUniformsCommon(uniforms,material);refreshUniformsDepth(uniforms,material);}else if(material.isMeshDistanceMaterial){refreshUniformsCommon(uniforms,material);refreshUniformsDistance(uniforms,material);}else if(material.isMeshNormalMaterial){refreshUniformsCommon(uniforms,material);refreshUniformsNormal(uniforms,material);}else if(material.isLineBasicMaterial){refreshUniformsLine(uniforms,material);if(material.isLineDashedMaterial){refreshUniformsDash(uniforms,material);}}else if(material.isPointsMaterial){refreshUniformsPoints(uniforms,material,pixelRatio,height);}else if(material.isSpriteMaterial){refreshUniformsSprites(uniforms,material);}else if(material.isShadowMaterial){uniforms.color.value.copy(material.color);uniforms.opacity.value=material.opacity;}else if(material.isShaderMaterial){material.uniformsNeedUpdate=false;}}function refreshUniformsCommon(uniforms,material){uniforms.opacity.value=material.opacity;if(material.color){uniforms.diffuse.value.copy(material.color);}if(material.emissive){uniforms.emissive.value.copy(material.emissive).multiplyScalar(material.emissiveIntensity);}if(material.map){uniforms.map.value=material.map;}if(material.alphaMap){uniforms.alphaMap.value=material.alphaMap;}if(material.specularMap){uniforms.specularMap.value=material.specularMap;}var envMap=properties.get(material).envMap;if(envMap){uniforms.envMap.value=envMap;uniforms.flipEnvMap.value=envMap.isCubeTexture&&envMap._needsFlipEnvMap?-1:1;uniforms.reflectivity.value=material.reflectivity;uniforms.refractionRatio.value=material.refractionRatio;var maxMipLevel=properties.get(envMap).__maxMipLevel;if(maxMipLevel!==undefined){uniforms.maxMipLevel.value=maxMipLevel;}}if(material.lightMap){uniforms.lightMap.value=material.lightMap;uniforms.lightMapIntensity.value=material.lightMapIntensity;}if(material.aoMap){uniforms.aoMap.value=material.aoMap;uniforms.aoMapIntensity.value=material.aoMapIntensity;}\nvar uvScaleMap;if(material.map){uvScaleMap=material.map;}else if(material.specularMap){uvScaleMap=material.specularMap;}else if(material.displacementMap){uvScaleMap=material.displacementMap;}else if(material.normalMap){uvScaleMap=material.normalMap;}else if(material.bumpMap){uvScaleMap=material.bumpMap;}else if(material.roughnessMap){uvScaleMap=material.roughnessMap;}else if(material.metalnessMap){uvScaleMap=material.metalnessMap;}else if(material.alphaMap){uvScaleMap=material.alphaMap;}else if(material.emissiveMap){uvScaleMap=material.emissiveMap;}else if(material.clearcoatMap){uvScaleMap=material.clearcoatMap;}else if(material.clearcoatNormalMap){uvScaleMap=material.clearcoatNormalMap;}else if(material.clearcoatRoughnessMap){uvScaleMap=material.clearcoatRoughnessMap;}if(uvScaleMap!==undefined){if(uvScaleMap.isWebGLRenderTarget){uvScaleMap=uvScaleMap.texture;}if(uvScaleMap.matrixAutoUpdate===true){uvScaleMap.updateMatrix();}uniforms.uvTransform.value.copy(uvScaleMap.matrix);}\nvar uv2ScaleMap;if(material.aoMap){uv2ScaleMap=material.aoMap;}else if(material.lightMap){uv2ScaleMap=material.lightMap;}if(uv2ScaleMap!==undefined){if(uv2ScaleMap.isWebGLRenderTarget){uv2ScaleMap=uv2ScaleMap.texture;}if(uv2ScaleMap.matrixAutoUpdate===true){uv2ScaleMap.updateMatrix();}uniforms.uv2Transform.value.copy(uv2ScaleMap.matrix);}}function refreshUniformsLine(uniforms,material){uniforms.diffuse.value.copy(material.color);uniforms.opacity.value=material.opacity;}function refreshUniformsDash(uniforms,material){uniforms.dashSize.value=material.dashSize;uniforms.totalSize.value=material.dashSize+material.gapSize;uniforms.scale.value=material.scale;}function refreshUniformsPoints(uniforms,material,pixelRatio,height){uniforms.diffuse.value.copy(material.color);uniforms.opacity.value=material.opacity;uniforms.size.value=material.size*pixelRatio;uniforms.scale.value=height*0.5;if(material.map){uniforms.map.value=material.map;}if(material.alphaMap){uniforms.alphaMap.value=material.alphaMap;}\nvar uvScaleMap;if(material.map){uvScaleMap=material.map;}else if(material.alphaMap){uvScaleMap=material.alphaMap;}if(uvScaleMap!==undefined){if(uvScaleMap.matrixAutoUpdate===true){uvScaleMap.updateMatrix();}uniforms.uvTransform.value.copy(uvScaleMap.matrix);}}function refreshUniformsSprites(uniforms,material){uniforms.diffuse.value.copy(material.color);uniforms.opacity.value=material.opacity;uniforms.rotation.value=material.rotation;if(material.map){uniforms.map.value=material.map;}if(material.alphaMap){uniforms.alphaMap.value=material.alphaMap;}\nvar uvScaleMap;if(material.map){uvScaleMap=material.map;}else if(material.alphaMap){uvScaleMap=material.alphaMap;}if(uvScaleMap!==undefined){if(uvScaleMap.matrixAutoUpdate===true){uvScaleMap.updateMatrix();}uniforms.uvTransform.value.copy(uvScaleMap.matrix);}}function refreshUniformsLambert(uniforms,material){if(material.emissiveMap){uniforms.emissiveMap.value=material.emissiveMap;}}function refreshUniformsPhong(uniforms,material){uniforms.specular.value.copy(material.specular);uniforms.shininess.value=Math.max(material.shininess,1e-4);if(material.emissiveMap){uniforms.emissiveMap.value=material.emissiveMap;}if(material.bumpMap){uniforms.bumpMap.value=material.bumpMap;uniforms.bumpScale.value=material.bumpScale;if(material.side===BackSide)uniforms.bumpScale.value*=-1;}if(material.normalMap){uniforms.normalMap.value=material.normalMap;uniforms.normalScale.value.copy(material.normalScale);if(material.side===BackSide)uniforms.normalScale.value.negate();}if(material.displacementMap){uniforms.displacementMap.value=material.displacementMap;uniforms.displacementScale.value=material.displacementScale;uniforms.displacementBias.value=material.displacementBias;}}function refreshUniformsToon(uniforms,material){if(material.gradientMap){uniforms.gradientMap.value=material.gradientMap;}if(material.emissiveMap){uniforms.emissiveMap.value=material.emissiveMap;}if(material.bumpMap){uniforms.bumpMap.value=material.bumpMap;uniforms.bumpScale.value=material.bumpScale;if(material.side===BackSide)uniforms.bumpScale.value*=-1;}if(material.normalMap){uniforms.normalMap.value=material.normalMap;uniforms.normalScale.value.copy(material.normalScale);if(material.side===BackSide)uniforms.normalScale.value.negate();}if(material.displacementMap){uniforms.displacementMap.value=material.displacementMap;uniforms.displacementScale.value=material.displacementScale;uniforms.displacementBias.value=material.displacementBias;}}function refreshUniformsStandard(uniforms,material){uniforms.roughness.value=material.roughness;uniforms.metalness.value=material.metalness;if(material.roughnessMap){uniforms.roughnessMap.value=material.roughnessMap;}if(material.metalnessMap){uniforms.metalnessMap.value=material.metalnessMap;}if(material.emissiveMap){uniforms.emissiveMap.value=material.emissiveMap;}if(material.bumpMap){uniforms.bumpMap.value=material.bumpMap;uniforms.bumpScale.value=material.bumpScale;if(material.side===BackSide)uniforms.bumpScale.value*=-1;}if(material.normalMap){uniforms.normalMap.value=material.normalMap;uniforms.normalScale.value.copy(material.normalScale);if(material.side===BackSide)uniforms.normalScale.value.negate();}if(material.displacementMap){uniforms.displacementMap.value=material.displacementMap;uniforms.displacementScale.value=material.displacementScale;uniforms.displacementBias.value=material.displacementBias;}var envMap=properties.get(material).envMap;if(envMap){uniforms.envMapIntensity.value=material.envMapIntensity;}}function refreshUniformsPhysical(uniforms,material){refreshUniformsStandard(uniforms,material);uniforms.reflectivity.value=material.reflectivity;uniforms.clearcoat.value=material.clearcoat;uniforms.clearcoatRoughness.value=material.clearcoatRoughness;if(material.sheen)uniforms.sheen.value.copy(material.sheen);if(material.clearcoatMap){uniforms.clearcoatMap.value=material.clearcoatMap;}if(material.clearcoatRoughnessMap){uniforms.clearcoatRoughnessMap.value=material.clearcoatRoughnessMap;}if(material.clearcoatNormalMap){uniforms.clearcoatNormalScale.value.copy(material.clearcoatNormalScale);uniforms.clearcoatNormalMap.value=material.clearcoatNormalMap;if(material.side===BackSide){uniforms.clearcoatNormalScale.value.negate();}}uniforms.transmission.value=material.transmission;if(material.transmissionMap){uniforms.transmissionMap.value=material.transmissionMap;}}function refreshUniformsMatcap(uniforms,material){if(material.matcap){uniforms.matcap.value=material.matcap;}if(material.bumpMap){uniforms.bumpMap.value=material.bumpMap;uniforms.bumpScale.value=material.bumpScale;if(material.side===BackSide)uniforms.bumpScale.value*=-1;}if(material.normalMap){uniforms.normalMap.value=material.normalMap;uniforms.normalScale.value.copy(material.normalScale);if(material.side===BackSide)uniforms.normalScale.value.negate();}if(material.displacementMap){uniforms.displacementMap.value=material.displacementMap;uniforms.displacementScale.value=material.displacementScale;uniforms.displacementBias.value=material.displacementBias;}}function refreshUniformsDepth(uniforms,material){if(material.displacementMap){uniforms.displacementMap.value=material.displacementMap;uniforms.displacementScale.value=material.displacementScale;uniforms.displacementBias.value=material.displacementBias;}}function refreshUniformsDistance(uniforms,material){if(material.displacementMap){uniforms.displacementMap.value=material.displacementMap;uniforms.displacementScale.value=material.displacementScale;uniforms.displacementBias.value=material.displacementBias;}uniforms.referencePosition.value.copy(material.referencePosition);uniforms.nearDistance.value=material.nearDistance;uniforms.farDistance.value=material.farDistance;}function refreshUniformsNormal(uniforms,material){if(material.bumpMap){uniforms.bumpMap.value=material.bumpMap;uniforms.bumpScale.value=material.bumpScale;if(material.side===BackSide)uniforms.bumpScale.value*=-1;}if(material.normalMap){uniforms.normalMap.value=material.normalMap;uniforms.normalScale.value.copy(material.normalScale);if(material.side===BackSide)uniforms.normalScale.value.negate();}if(material.displacementMap){uniforms.displacementMap.value=material.displacementMap;uniforms.displacementScale.value=material.displacementScale;uniforms.displacementBias.value=material.displacementBias;}}return{refreshFogUniforms:refreshFogUniforms,refreshMaterialUniforms:refreshMaterialUniforms};}function WebGLRenderer(parameters){parameters=parameters||{};var _canvas=parameters.canvas!==undefined?parameters.canvas:document.createElementNS('http://www.w3.org/1999/xhtml','canvas'),_context=parameters.context!==undefined?parameters.context:null,_alpha=parameters.alpha!==undefined?parameters.alpha:false,_depth=parameters.depth!==undefined?parameters.depth:true,_stencil=parameters.stencil!==undefined?parameters.stencil:true,_antialias=parameters.antialias!==undefined?parameters.antialias:false,_premultipliedAlpha=parameters.premultipliedAlpha!==undefined?parameters.premultipliedAlpha:true,_preserveDrawingBuffer=parameters.preserveDrawingBuffer!==undefined?parameters.preserveDrawingBuffer:false,_powerPreference=parameters.powerPreference!==undefined?parameters.powerPreference:'default',_failIfMajorPerformanceCaveat=parameters.failIfMajorPerformanceCaveat!==undefined?parameters.failIfMajorPerformanceCaveat:false;var currentRenderList=null;var currentRenderState=null;this.domElement=_canvas;this.debug={checkShaderErrors:true};this.autoClear=true;this.autoClearColor=true;this.autoClearDepth=true;this.autoClearStencil=true;this.sortObjects=true;this.clippingPlanes=[];this.localClippingEnabled=false;this.gammaFactor=2.0;this.outputEncoding=LinearEncoding;this.physicallyCorrectLights=false;this.toneMapping=NoToneMapping;this.toneMappingExposure=1.0;this.maxMorphTargets=8;this.maxMorphNormals=4;var _this=this;var _isContextLost=false;var _framebuffer=null;var _currentActiveCubeFace=0;var _currentActiveMipmapLevel=0;var _currentRenderTarget=null;var _currentFramebuffer=null;var _currentMaterialId=-1;var _currentCamera=null;var _currentArrayCamera=null;var _currentViewport=new Vector4();var _currentScissor=new Vector4();var _currentScissorTest=null;var _width=_canvas.width;var _height=_canvas.height;var _pixelRatio=1;var _opaqueSort=null;var _transparentSort=null;var _viewport=new Vector4(0,0,_width,_height);var _scissor=new Vector4(0,0,_width,_height);var _scissorTest=false;var _frustum=new Frustum();var _clippingEnabled=false;var _localClippingEnabled=false;var _projScreenMatrix=new Matrix4();var _vector3=new Vector3();var _emptyScene={background:null,fog:null,environment:null,overrideMaterial:null,isScene:true};function getTargetPixelRatio(){return _currentRenderTarget===null?_pixelRatio:1;}\nvar _gl=_context;function getContext(contextNames,contextAttributes){for(var _i121=0;_i121<contextNames.length;_i121++){var contextName=contextNames[_i121];var context=_canvas.getContext(contextName,contextAttributes);if(context!==null)return context;}return null;}try{var contextAttributes={alpha:_alpha,depth:_depth,stencil:_stencil,antialias:_antialias,premultipliedAlpha:_premultipliedAlpha,preserveDrawingBuffer:_preserveDrawingBuffer,powerPreference:_powerPreference,failIfMajorPerformanceCaveat:_failIfMajorPerformanceCaveat};_canvas.addEventListener('webglcontextlost',onContextLost,false);_canvas.addEventListener('webglcontextrestored',onContextRestore,false);if(_gl===null){var contextNames=['webgl2','webgl','experimental-webgl'];if(_this.isWebGL1Renderer===true){contextNames.shift();}_gl=getContext(contextNames,contextAttributes);if(_gl===null){if(getContext(contextNames)){throw new Error('Error creating WebGL context with your selected attributes.');}else{throw new Error('Error creating WebGL context.');}}}\nif(_gl.getShaderPrecisionFormat===undefined){_gl.getShaderPrecisionFormat=function(){return{'rangeMin':1,'rangeMax':1,'precision':1};};}}catch(error){console.error('THREE.WebGLRenderer: '+error.message);throw error;}var extensions,capabilities,state,info;var properties,textures,cubemaps,attributes,geometries,objects;var programCache,materials,renderLists,renderStates,clipping;var background,morphtargets,bufferRenderer,indexedBufferRenderer;var utils,bindingStates;function initGLContext(){extensions=new WebGLExtensions(_gl);capabilities=new WebGLCapabilities(_gl,extensions,parameters);if(capabilities.isWebGL2===false){extensions.get('WEBGL_depth_texture');extensions.get('OES_texture_float');extensions.get('OES_texture_half_float');extensions.get('OES_texture_half_float_linear');extensions.get('OES_standard_derivatives');extensions.get('OES_element_index_uint');extensions.get('OES_vertex_array_object');extensions.get('ANGLE_instanced_arrays');}extensions.get('OES_texture_float_linear');utils=new WebGLUtils(_gl,extensions,capabilities);state=new WebGLState(_gl,extensions,capabilities);state.scissor(_currentScissor.copy(_scissor).multiplyScalar(_pixelRatio).floor());state.viewport(_currentViewport.copy(_viewport).multiplyScalar(_pixelRatio).floor());info=new WebGLInfo(_gl);properties=new WebGLProperties();textures=new WebGLTextures(_gl,extensions,state,properties,capabilities,utils,info);cubemaps=new WebGLCubeMaps(_this);attributes=new WebGLAttributes(_gl,capabilities);bindingStates=new WebGLBindingStates(_gl,extensions,attributes,capabilities);geometries=new WebGLGeometries(_gl,attributes,info,bindingStates);objects=new WebGLObjects(_gl,geometries,attributes,info);morphtargets=new WebGLMorphtargets(_gl);clipping=new WebGLClipping(properties);programCache=new WebGLPrograms(_this,cubemaps,extensions,capabilities,bindingStates,clipping);materials=new WebGLMaterials(properties);renderLists=new WebGLRenderLists(properties);renderStates=new WebGLRenderStates();background=new WebGLBackground(_this,cubemaps,state,objects,_premultipliedAlpha);bufferRenderer=new WebGLBufferRenderer(_gl,extensions,info,capabilities);indexedBufferRenderer=new WebGLIndexedBufferRenderer(_gl,extensions,info,capabilities);info.programs=programCache.programs;_this.capabilities=capabilities;_this.extensions=extensions;_this.properties=properties;_this.renderLists=renderLists;_this.state=state;_this.info=info;}initGLContext();var xr=new WebXRManager(_this,_gl);this.xr=xr;var shadowMap=new WebGLShadowMap(_this,objects,capabilities.maxTextureSize);this.shadowMap=shadowMap;this.getContext=function(){return _gl;};this.getContextAttributes=function(){return _gl.getContextAttributes();};this.forceContextLoss=function(){var extension=extensions.get('WEBGL_lose_context');if(extension)extension.loseContext();};this.forceContextRestore=function(){var extension=extensions.get('WEBGL_lose_context');if(extension)extension.restoreContext();};this.getPixelRatio=function(){return _pixelRatio;};this.setPixelRatio=function(value){if(value===undefined)return;_pixelRatio=value;this.setSize(_width,_height,false);};this.getSize=function(target){if(target===undefined){console.warn('WebGLRenderer: .getsize() now requires a Vector2 as an argument');target=new Vector2();}return target.set(_width,_height);};this.setSize=function(width,height,updateStyle){if(xr.isPresenting){console.warn('THREE.WebGLRenderer: Can\\'t change size while VR device is presenting.');return;}_width=width;_height=height;_canvas.width=Math.floor(width*_pixelRatio);_canvas.height=Math.floor(height*_pixelRatio);if(updateStyle!==false){_canvas.style.width=width+'px';_canvas.style.height=height+'px';}this.setViewport(0,0,width,height);};this.getDrawingBufferSize=function(target){if(target===undefined){console.warn('WebGLRenderer: .getdrawingBufferSize() now requires a Vector2 as an argument');target=new Vector2();}return target.set(_width*_pixelRatio,_height*_pixelRatio).floor();};this.setDrawingBufferSize=function(width,height,pixelRatio){_width=width;_height=height;_pixelRatio=pixelRatio;_canvas.width=Math.floor(width*pixelRatio);_canvas.height=Math.floor(height*pixelRatio);this.setViewport(0,0,width,height);};this.getCurrentViewport=function(target){if(target===undefined){console.warn('WebGLRenderer: .getCurrentViewport() now requires a Vector4 as an argument');target=new Vector4();}return target.copy(_currentViewport);};this.getViewport=function(target){return target.copy(_viewport);};this.setViewport=function(x,y,width,height){if(x.isVector4){_viewport.set(x.x,x.y,x.z,x.w);}else{_viewport.set(x,y,width,height);}state.viewport(_currentViewport.copy(_viewport).multiplyScalar(_pixelRatio).floor());};this.getScissor=function(target){return target.copy(_scissor);};this.setScissor=function(x,y,width,height){if(x.isVector4){_scissor.set(x.x,x.y,x.z,x.w);}else{_scissor.set(x,y,width,height);}state.scissor(_currentScissor.copy(_scissor).multiplyScalar(_pixelRatio).floor());};this.getScissorTest=function(){return _scissorTest;};this.setScissorTest=function(boolean){state.setScissorTest(_scissorTest=boolean);};this.setOpaqueSort=function(method){_opaqueSort=method;};this.setTransparentSort=function(method){_transparentSort=method;};this.getClearColor=function(){return background.getClearColor();};this.setClearColor=function(){background.setClearColor.apply(background,arguments);};this.getClearAlpha=function(){return background.getClearAlpha();};this.setClearAlpha=function(){background.setClearAlpha.apply(background,arguments);};this.clear=function(color,depth,stencil){var bits=0;if(color===undefined||color)bits|=16384;if(depth===undefined||depth)bits|=256;if(stencil===undefined||stencil)bits|=1024;_gl.clear(bits);};this.clearColor=function(){this.clear(true,false,false);};this.clearDepth=function(){this.clear(false,true,false);};this.clearStencil=function(){this.clear(false,false,true);};this.dispose=function(){_canvas.removeEventListener('webglcontextlost',onContextLost,false);_canvas.removeEventListener('webglcontextrestored',onContextRestore,false);renderLists.dispose();renderStates.dispose();properties.dispose();cubemaps.dispose();objects.dispose();bindingStates.dispose();xr.dispose();animation.stop();};function onContextLost(event){event.preventDefault();console.log('THREE.WebGLRenderer: Context Lost.');_isContextLost=true;}function onContextRestore(){console.log('THREE.WebGLRenderer: Context Restored.');_isContextLost=false;initGLContext();}function onMaterialDispose(event){var material=event.target;material.removeEventListener('dispose',onMaterialDispose);deallocateMaterial(material);}\nfunction deallocateMaterial(material){releaseMaterialProgramReference(material);properties.remove(material);}function releaseMaterialProgramReference(material){var programInfo=properties.get(material).program;if(programInfo!==undefined){programCache.releaseProgram(programInfo);}}\nfunction renderObjectImmediate(object,program){object.render(function(object){_this.renderBufferImmediate(object,program);});}this.renderBufferImmediate=function(object,program){bindingStates.initAttributes();var buffers=properties.get(object);if(object.hasPositions&&!buffers.position)buffers.position=_gl.createBuffer();if(object.hasNormals&&!buffers.normal)buffers.normal=_gl.createBuffer();if(object.hasUvs&&!buffers.uv)buffers.uv=_gl.createBuffer();if(object.hasColors&&!buffers.color)buffers.color=_gl.createBuffer();var programAttributes=program.getAttributes();if(object.hasPositions){_gl.bindBuffer(34962,buffers.position);_gl.bufferData(34962,object.positionArray,35048);bindingStates.enableAttribute(programAttributes.position);_gl.vertexAttribPointer(programAttributes.position,3,5126,false,0,0);}if(object.hasNormals){_gl.bindBuffer(34962,buffers.normal);_gl.bufferData(34962,object.normalArray,35048);bindingStates.enableAttribute(programAttributes.normal);_gl.vertexAttribPointer(programAttributes.normal,3,5126,false,0,0);}if(object.hasUvs){_gl.bindBuffer(34962,buffers.uv);_gl.bufferData(34962,object.uvArray,35048);bindingStates.enableAttribute(programAttributes.uv);_gl.vertexAttribPointer(programAttributes.uv,2,5126,false,0,0);}if(object.hasColors){_gl.bindBuffer(34962,buffers.color);_gl.bufferData(34962,object.colorArray,35048);bindingStates.enableAttribute(programAttributes.color);_gl.vertexAttribPointer(programAttributes.color,3,5126,false,0,0);}bindingStates.disableUnusedAttributes();_gl.drawArrays(4,0,object.count);object.count=0;};this.renderBufferDirect=function(camera,scene,geometry,material,object,group){if(scene===null)scene=_emptyScene;var frontFaceCW=object.isMesh&&object.matrixWorld.determinant()<0;var program=setProgram(camera,scene,material,object);state.setMaterial(material,frontFaceCW);var index=geometry.index;var position=geometry.attributes.position;if(index===null){if(position===undefined||position.count===0)return;}else if(index.count===0){return;}\nvar rangeFactor=1;if(material.wireframe===true){index=geometries.getWireframeAttribute(geometry);rangeFactor=2;}if(material.morphTargets||material.morphNormals){morphtargets.update(object,geometry,material,program);}bindingStates.setup(object,material,program,geometry,index);var attribute;var renderer=bufferRenderer;if(index!==null){attribute=attributes.get(index);renderer=indexedBufferRenderer;renderer.setIndex(attribute);}\nvar dataCount=index!==null?index.count:position.count;var rangeStart=geometry.drawRange.start*rangeFactor;var rangeCount=geometry.drawRange.count*rangeFactor;var groupStart=group!==null?group.start*rangeFactor:0;var groupCount=group!==null?group.count*rangeFactor:Infinity;var drawStart=Math.max(rangeStart,groupStart);var drawEnd=Math.min(dataCount,rangeStart+rangeCount,groupStart+groupCount)-1;var drawCount=Math.max(0,drawEnd-drawStart+1);if(drawCount===0)return;if(object.isMesh){if(material.wireframe===true){state.setLineWidth(material.wireframeLinewidth*getTargetPixelRatio());renderer.setMode(1);}else{renderer.setMode(4);}}else if(object.isLine){var lineWidth=material.linewidth;if(lineWidth===undefined)lineWidth=1;state.setLineWidth(lineWidth*getTargetPixelRatio());if(object.isLineSegments){renderer.setMode(1);}else if(object.isLineLoop){renderer.setMode(2);}else{renderer.setMode(3);}}else if(object.isPoints){renderer.setMode(0);}else if(object.isSprite){renderer.setMode(4);}if(object.isInstancedMesh){renderer.renderInstances(drawStart,drawCount,object.count);}else if(geometry.isInstancedBufferGeometry){var instanceCount=Math.min(geometry.instanceCount,geometry._maxInstanceCount);renderer.renderInstances(drawStart,drawCount,instanceCount);}else{renderer.render(drawStart,drawCount);}};this.compile=function(scene,camera){currentRenderState=renderStates.get(scene,camera);currentRenderState.init();scene.traverse(function(object){if(object.isLight){currentRenderState.pushLight(object);if(object.castShadow){currentRenderState.pushShadow(object);}}});currentRenderState.setupLights(camera);var compiled=new WeakMap();scene.traverse(function(object){var material=object.material;if(material){if(Array.isArray(material)){for(var _i122=0;_i122<material.length;_i122++){var material2=material[_i122];if(compiled.has(material2)===false){initMaterial(material2,scene,object);compiled.set(material2);}}}else if(compiled.has(material)===false){initMaterial(material,scene,object);compiled.set(material);}}});};var onAnimationFrameCallback=null;function onAnimationFrame(time){if(xr.isPresenting)return;if(onAnimationFrameCallback)onAnimationFrameCallback(time);}var animation=new WebGLAnimation();animation.setAnimationLoop(onAnimationFrame);if(typeof window!=='undefined')animation.setContext(window);this.setAnimationLoop=function(callback){onAnimationFrameCallback=callback;xr.setAnimationLoop(callback);callback===null?animation.stop():animation.start();};this.render=function(scene,camera){var renderTarget,forceClear;if(arguments[2]!==undefined){console.warn('THREE.WebGLRenderer.render(): the renderTarget argument has been removed. Use .setRenderTarget() instead.');renderTarget=arguments[2];}if(arguments[3]!==undefined){console.warn('THREE.WebGLRenderer.render(): the forceClear argument has been removed. Use .clear() instead.');forceClear=arguments[3];}if(camera!==undefined&&camera.isCamera!==true){console.error('THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.');return;}if(_isContextLost===true)return;bindingStates.resetDefaultState();_currentMaterialId=-1;_currentCamera=null;if(scene.autoUpdate===true)scene.updateMatrixWorld();if(camera.parent===null)camera.updateMatrixWorld();if(xr.enabled===true&&xr.isPresenting===true){camera=xr.getCamera(camera);}\nif(scene.isScene===true)scene.onBeforeRender(_this,scene,camera,renderTarget||_currentRenderTarget);currentRenderState=renderStates.get(scene,camera);currentRenderState.init();_projScreenMatrix.multiplyMatrices(camera.projectionMatrix,camera.matrixWorldInverse);_frustum.setFromProjectionMatrix(_projScreenMatrix);_localClippingEnabled=this.localClippingEnabled;_clippingEnabled=clipping.init(this.clippingPlanes,_localClippingEnabled,camera);currentRenderList=renderLists.get(scene,camera);currentRenderList.init();projectObject(scene,camera,0,_this.sortObjects);currentRenderList.finish();if(_this.sortObjects===true){currentRenderList.sort(_opaqueSort,_transparentSort);}\nif(_clippingEnabled===true)clipping.beginShadows();var shadowsArray=currentRenderState.state.shadowsArray;shadowMap.render(shadowsArray,scene,camera);currentRenderState.setupLights(camera);if(_clippingEnabled===true)clipping.endShadows();if(this.info.autoReset===true)this.info.reset();if(renderTarget!==undefined){this.setRenderTarget(renderTarget);}\nbackground.render(currentRenderList,scene,camera,forceClear);var opaqueObjects=currentRenderList.opaque;var transparentObjects=currentRenderList.transparent;if(opaqueObjects.length>0)renderObjects(opaqueObjects,scene,camera);if(transparentObjects.length>0)renderObjects(transparentObjects,scene,camera);if(scene.isScene===true)scene.onAfterRender(_this,scene,camera);if(_currentRenderTarget!==null){textures.updateRenderTargetMipmap(_currentRenderTarget);textures.updateMultisampleRenderTarget(_currentRenderTarget);}\nstate.buffers.depth.setTest(true);state.buffers.depth.setMask(true);state.buffers.color.setMask(true);state.setPolygonOffset(false);currentRenderList=null;currentRenderState=null;};function projectObject(object,camera,groupOrder,sortObjects){if(object.visible===false)return;var visible=object.layers.test(camera.layers);if(visible){if(object.isGroup){groupOrder=object.renderOrder;}else if(object.isLOD){if(object.autoUpdate===true)object.update(camera);}else if(object.isLight){currentRenderState.pushLight(object);if(object.castShadow){currentRenderState.pushShadow(object);}}else if(object.isSprite){if(!object.frustumCulled||_frustum.intersectsSprite(object)){if(sortObjects){_vector3.setFromMatrixPosition(object.matrixWorld).applyMatrix4(_projScreenMatrix);}var geometry=objects.update(object);var material=object.material;if(material.visible){currentRenderList.push(object,geometry,material,groupOrder,_vector3.z,null);}}}else if(object.isImmediateRenderObject){if(sortObjects){_vector3.setFromMatrixPosition(object.matrixWorld).applyMatrix4(_projScreenMatrix);}currentRenderList.push(object,null,object.material,groupOrder,_vector3.z,null);}else if(object.isMesh||object.isLine||object.isPoints){if(object.isSkinnedMesh){if(object.skeleton.frame!==info.render.frame){object.skeleton.update();object.skeleton.frame=info.render.frame;}}if(!object.frustumCulled||_frustum.intersectsObject(object)){if(sortObjects){_vector3.setFromMatrixPosition(object.matrixWorld).applyMatrix4(_projScreenMatrix);}var _geometry2=objects.update(object);var _material=object.material;if(Array.isArray(_material)){var groups=_geometry2.groups;for(var _i123=0,l=groups.length;_i123<l;_i123++){var group=groups[_i123];var groupMaterial=_material[group.materialIndex];if(groupMaterial&&groupMaterial.visible){currentRenderList.push(object,_geometry2,groupMaterial,groupOrder,_vector3.z,group);}}}else if(_material.visible){currentRenderList.push(object,_geometry2,_material,groupOrder,_vector3.z,null);}}}}var children=object.children;for(var _i124=0,_l6=children.length;_i124<_l6;_i124++){projectObject(children[_i124],camera,groupOrder,sortObjects);}}function renderObjects(renderList,scene,camera){var overrideMaterial=scene.isScene===true?scene.overrideMaterial:null;for(var _i125=0,l=renderList.length;_i125<l;_i125++){var renderItem=renderList[_i125];var object=renderItem.object;var geometry=renderItem.geometry;var material=overrideMaterial===null?renderItem.material:overrideMaterial;var group=renderItem.group;if(camera.isArrayCamera){_currentArrayCamera=camera;var cameras=camera.cameras;for(var j=0,jl=cameras.length;j<jl;j++){var camera2=cameras[j];if(object.layers.test(camera2.layers)){state.viewport(_currentViewport.copy(camera2.viewport));currentRenderState.setupLights(camera2);renderObject(object,scene,camera2,geometry,material,group);}}}else{_currentArrayCamera=null;renderObject(object,scene,camera,geometry,material,group);}}}function renderObject(object,scene,camera,geometry,material,group){object.onBeforeRender(_this,scene,camera,geometry,material,group);currentRenderState=renderStates.get(scene,_currentArrayCamera||camera);object.modelViewMatrix.multiplyMatrices(camera.matrixWorldInverse,object.matrixWorld);object.normalMatrix.getNormalMatrix(object.modelViewMatrix);if(object.isImmediateRenderObject){var program=setProgram(camera,scene,material,object);state.setMaterial(material);bindingStates.reset();renderObjectImmediate(object,program);}else{_this.renderBufferDirect(camera,scene,geometry,material,object,group);}object.onAfterRender(_this,scene,camera,geometry,material,group);currentRenderState=renderStates.get(scene,_currentArrayCamera||camera);}function initMaterial(material,scene,object){if(scene.isScene!==true)scene=_emptyScene;var materialProperties=properties.get(material);var lights=currentRenderState.state.lights;var shadowsArray=currentRenderState.state.shadowsArray;var lightsStateVersion=lights.state.version;var parameters=programCache.getParameters(material,lights.state,shadowsArray,scene,object);var programCacheKey=programCache.getProgramCacheKey(parameters);var program=materialProperties.program;var programChange=true;if(program===undefined){material.addEventListener('dispose',onMaterialDispose);}else if(program.cacheKey!==programCacheKey){releaseMaterialProgramReference(material);}else if(materialProperties.lightsStateVersion!==lightsStateVersion){programChange=false;}else if(parameters.shaderID!==undefined){var environment=material.isMeshStandardMaterial?scene.environment:null;materialProperties.envMap=cubemaps.get(material.envMap||environment);return;}else{programChange=false;}if(programChange){parameters.uniforms=programCache.getUniforms(material);material.onBeforeCompile(parameters,_this);program=programCache.acquireProgram(parameters,programCacheKey);materialProperties.program=program;materialProperties.uniforms=parameters.uniforms;materialProperties.outputEncoding=parameters.outputEncoding;}var uniforms=materialProperties.uniforms;if(!material.isShaderMaterial&&!material.isRawShaderMaterial||material.clipping===true){materialProperties.numClippingPlanes=clipping.numPlanes;materialProperties.numIntersection=clipping.numIntersection;uniforms.clippingPlanes=clipping.uniform;}materialProperties.environment=material.isMeshStandardMaterial?scene.environment:null;materialProperties.fog=scene.fog;materialProperties.envMap=cubemaps.get(material.envMap||materialProperties.environment);materialProperties.needsLights=materialNeedsLights(material);materialProperties.lightsStateVersion=lightsStateVersion;if(materialProperties.needsLights){uniforms.ambientLightColor.value=lights.state.ambient;uniforms.lightProbe.value=lights.state.probe;uniforms.directionalLights.value=lights.state.directional;uniforms.directionalLightShadows.value=lights.state.directionalShadow;uniforms.spotLights.value=lights.state.spot;uniforms.spotLightShadows.value=lights.state.spotShadow;uniforms.rectAreaLights.value=lights.state.rectArea;uniforms.ltc_1.value=lights.state.rectAreaLTC1;uniforms.ltc_2.value=lights.state.rectAreaLTC2;uniforms.pointLights.value=lights.state.point;uniforms.pointLightShadows.value=lights.state.pointShadow;uniforms.hemisphereLights.value=lights.state.hemi;uniforms.directionalShadowMap.value=lights.state.directionalShadowMap;uniforms.directionalShadowMatrix.value=lights.state.directionalShadowMatrix;uniforms.spotShadowMap.value=lights.state.spotShadowMap;uniforms.spotShadowMatrix.value=lights.state.spotShadowMatrix;uniforms.pointShadowMap.value=lights.state.pointShadowMap;uniforms.pointShadowMatrix.value=lights.state.pointShadowMatrix;}var progUniforms=materialProperties.program.getUniforms();var uniformsList=WebGLUniforms.seqWithValue(progUniforms.seq,uniforms);materialProperties.uniformsList=uniformsList;}function setProgram(camera,scene,material,object){if(scene.isScene!==true)scene=_emptyScene;textures.resetTextureUnits();var fog=scene.fog;var environment=material.isMeshStandardMaterial?scene.environment:null;var encoding=_currentRenderTarget===null?_this.outputEncoding:_currentRenderTarget.texture.encoding;var envMap=cubemaps.get(material.envMap||environment);var materialProperties=properties.get(material);var lights=currentRenderState.state.lights;if(_clippingEnabled===true){if(_localClippingEnabled===true||camera!==_currentCamera){var useCache=camera===_currentCamera&&material.id===_currentMaterialId;clipping.setState(material,camera,useCache);}}if(material.version===materialProperties.__version){if(material.fog&&materialProperties.fog!==fog){initMaterial(material,scene,object);}else if(materialProperties.environment!==environment){initMaterial(material,scene,object);}else if(materialProperties.needsLights&&materialProperties.lightsStateVersion!==lights.state.version){initMaterial(material,scene,object);}else if(materialProperties.numClippingPlanes!==undefined&&(materialProperties.numClippingPlanes!==clipping.numPlanes||materialProperties.numIntersection!==clipping.numIntersection)){initMaterial(material,scene,object);}else if(materialProperties.outputEncoding!==encoding){initMaterial(material,scene,object);}else if(materialProperties.envMap!==envMap){initMaterial(material,scene,object);}}else{initMaterial(material,scene,object);materialProperties.__version=material.version;}var refreshProgram=false;var refreshMaterial=false;var refreshLights=false;var program=materialProperties.program,p_uniforms=program.getUniforms(),m_uniforms=materialProperties.uniforms;if(state.useProgram(program.program)){refreshProgram=true;refreshMaterial=true;refreshLights=true;}if(material.id!==_currentMaterialId){_currentMaterialId=material.id;refreshMaterial=true;}if(refreshProgram||_currentCamera!==camera){p_uniforms.setValue(_gl,'projectionMatrix',camera.projectionMatrix);if(capabilities.logarithmicDepthBuffer){p_uniforms.setValue(_gl,'logDepthBufFC',2.0/(Math.log(camera.far+1.0)/Math.LN2));}if(_currentCamera!==camera){_currentCamera=camera;refreshMaterial=true;refreshLights=true;}\nif(material.isShaderMaterial||material.isMeshPhongMaterial||material.isMeshToonMaterial||material.isMeshStandardMaterial||material.envMap){var uCamPos=p_uniforms.map.cameraPosition;if(uCamPos!==undefined){uCamPos.setValue(_gl,_vector3.setFromMatrixPosition(camera.matrixWorld));}}if(material.isMeshPhongMaterial||material.isMeshToonMaterial||material.isMeshLambertMaterial||material.isMeshBasicMaterial||material.isMeshStandardMaterial||material.isShaderMaterial){p_uniforms.setValue(_gl,'isOrthographic',camera.isOrthographicCamera===true);}if(material.isMeshPhongMaterial||material.isMeshToonMaterial||material.isMeshLambertMaterial||material.isMeshBasicMaterial||material.isMeshStandardMaterial||material.isShaderMaterial||material.isShadowMaterial||material.skinning){p_uniforms.setValue(_gl,'viewMatrix',camera.matrixWorldInverse);}}\nif(material.skinning){p_uniforms.setOptional(_gl,object,'bindMatrix');p_uniforms.setOptional(_gl,object,'bindMatrixInverse');var skeleton=object.skeleton;if(skeleton){var bones=skeleton.bones;if(capabilities.floatVertexTextures){if(skeleton.boneTexture===undefined){var size=Math.sqrt(bones.length*4);size=MathUtils.ceilPowerOfTwo(size);size=Math.max(size,4);var boneMatrices=new Float32Array(size*size*4);boneMatrices.set(skeleton.boneMatrices);var boneTexture=new DataTexture(boneMatrices,size,size,RGBAFormat,FloatType);skeleton.boneMatrices=boneMatrices;skeleton.boneTexture=boneTexture;skeleton.boneTextureSize=size;}p_uniforms.setValue(_gl,'boneTexture',skeleton.boneTexture,textures);p_uniforms.setValue(_gl,'boneTextureSize',skeleton.boneTextureSize);}else{p_uniforms.setOptional(_gl,skeleton,'boneMatrices');}}}if(refreshMaterial||materialProperties.receiveShadow!==object.receiveShadow){materialProperties.receiveShadow=object.receiveShadow;p_uniforms.setValue(_gl,'receiveShadow',object.receiveShadow);}if(refreshMaterial){p_uniforms.setValue(_gl,'toneMappingExposure',_this.toneMappingExposure);if(materialProperties.needsLights){markUniformsLightsNeedsUpdate(m_uniforms,refreshLights);}\nif(fog&&material.fog){materials.refreshFogUniforms(m_uniforms,fog);}materials.refreshMaterialUniforms(m_uniforms,material,_pixelRatio,_height);WebGLUniforms.upload(_gl,materialProperties.uniformsList,m_uniforms,textures);}if(material.isShaderMaterial&&material.uniformsNeedUpdate===true){WebGLUniforms.upload(_gl,materialProperties.uniformsList,m_uniforms,textures);material.uniformsNeedUpdate=false;}if(material.isSpriteMaterial){p_uniforms.setValue(_gl,'center',object.center);}\np_uniforms.setValue(_gl,'modelViewMatrix',object.modelViewMatrix);p_uniforms.setValue(_gl,'normalMatrix',object.normalMatrix);p_uniforms.setValue(_gl,'modelMatrix',object.matrixWorld);return program;}\nfunction markUniformsLightsNeedsUpdate(uniforms,value){uniforms.ambientLightColor.needsUpdate=value;uniforms.lightProbe.needsUpdate=value;uniforms.directionalLights.needsUpdate=value;uniforms.directionalLightShadows.needsUpdate=value;uniforms.pointLights.needsUpdate=value;uniforms.pointLightShadows.needsUpdate=value;uniforms.spotLights.needsUpdate=value;uniforms.spotLightShadows.needsUpdate=value;uniforms.rectAreaLights.needsUpdate=value;uniforms.hemisphereLights.needsUpdate=value;}function materialNeedsLights(material){return material.isMeshLambertMaterial||material.isMeshToonMaterial||material.isMeshPhongMaterial||material.isMeshStandardMaterial||material.isShadowMaterial||material.isShaderMaterial&&material.lights===true;}\nthis.setFramebuffer=function(value){if(_framebuffer!==value&&_currentRenderTarget===null)_gl.bindFramebuffer(36160,value);_framebuffer=value;};this.getActiveCubeFace=function(){return _currentActiveCubeFace;};this.getActiveMipmapLevel=function(){return _currentActiveMipmapLevel;};this.getRenderList=function(){return currentRenderList;};this.setRenderList=function(renderList){currentRenderList=renderList;};this.getRenderState=function(){return currentRenderState;};this.setRenderState=function(renderState){currentRenderState=renderState;};this.getRenderTarget=function(){return _currentRenderTarget;};this.setRenderTarget=function(renderTarget){var activeCubeFace=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var activeMipmapLevel=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;_currentRenderTarget=renderTarget;_currentActiveCubeFace=activeCubeFace;_currentActiveMipmapLevel=activeMipmapLevel;if(renderTarget&&properties.get(renderTarget).__webglFramebuffer===undefined){textures.setupRenderTarget(renderTarget);}var framebuffer=_framebuffer;var isCube=false;if(renderTarget){var __webglFramebuffer=properties.get(renderTarget).__webglFramebuffer;if(renderTarget.isWebGLCubeRenderTarget){framebuffer=__webglFramebuffer[activeCubeFace];isCube=true;}else if(renderTarget.isWebGLMultisampleRenderTarget){framebuffer=properties.get(renderTarget).__webglMultisampledFramebuffer;}else{framebuffer=__webglFramebuffer;}_currentViewport.copy(renderTarget.viewport);_currentScissor.copy(renderTarget.scissor);_currentScissorTest=renderTarget.scissorTest;}else{_currentViewport.copy(_viewport).multiplyScalar(_pixelRatio).floor();_currentScissor.copy(_scissor).multiplyScalar(_pixelRatio).floor();_currentScissorTest=_scissorTest;}if(_currentFramebuffer!==framebuffer){_gl.bindFramebuffer(36160,framebuffer);_currentFramebuffer=framebuffer;}state.viewport(_currentViewport);state.scissor(_currentScissor);state.setScissorTest(_currentScissorTest);if(isCube){var textureProperties=properties.get(renderTarget.texture);_gl.framebufferTexture2D(36160,36064,34069+activeCubeFace,textureProperties.__webglTexture,activeMipmapLevel);}};this.readRenderTargetPixels=function(renderTarget,x,y,width,height,buffer,activeCubeFaceIndex){if(!(renderTarget&&renderTarget.isWebGLRenderTarget)){console.error('THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.');return;}var framebuffer=properties.get(renderTarget).__webglFramebuffer;if(renderTarget.isWebGLCubeRenderTarget&&activeCubeFaceIndex!==undefined){framebuffer=framebuffer[activeCubeFaceIndex];}if(framebuffer){var restore=false;if(framebuffer!==_currentFramebuffer){_gl.bindFramebuffer(36160,framebuffer);restore=true;}try{var texture=renderTarget.texture;var textureFormat=texture.format;var textureType=texture.type;if(textureFormat!==RGBAFormat&&utils.convert(textureFormat)!==_gl.getParameter(35739)){console.error('THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.');return;}if(textureType!==UnsignedByteType&&utils.convert(textureType)!==_gl.getParameter(35738)&&!(textureType===FloatType&&(capabilities.isWebGL2||extensions.get('OES_texture_float')||extensions.get('WEBGL_color_buffer_float')))&&!(textureType===HalfFloatType&&(capabilities.isWebGL2?extensions.get('EXT_color_buffer_float'):extensions.get('EXT_color_buffer_half_float')))){console.error('THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.');return;}if(_gl.checkFramebufferStatus(36160)===36053){if(x>=0&&x<=renderTarget.width-width&&y>=0&&y<=renderTarget.height-height){_gl.readPixels(x,y,width,height,utils.convert(textureFormat),utils.convert(textureType),buffer);}}else{console.error('THREE.WebGLRenderer.readRenderTargetPixels: readPixels from renderTarget failed. Framebuffer not complete.');}}finally{if(restore){_gl.bindFramebuffer(36160,_currentFramebuffer);}}}};this.copyFramebufferToTexture=function(position,texture,level){if(level===undefined)level=0;var levelScale=Math.pow(2,-level);var width=Math.floor(texture.image.width*levelScale);var height=Math.floor(texture.image.height*levelScale);var glFormat=utils.convert(texture.format);textures.setTexture2D(texture,0);_gl.copyTexImage2D(3553,level,glFormat,position.x,position.y,width,height,0);state.unbindTexture();};this.copyTextureToTexture=function(position,srcTexture,dstTexture,level){if(level===undefined)level=0;var width=srcTexture.image.width;var height=srcTexture.image.height;var glFormat=utils.convert(dstTexture.format);var glType=utils.convert(dstTexture.type);textures.setTexture2D(dstTexture,0);_gl.pixelStorei(37440,dstTexture.flipY);_gl.pixelStorei(37441,dstTexture.premultiplyAlpha);_gl.pixelStorei(3317,dstTexture.unpackAlignment);if(srcTexture.isDataTexture){_gl.texSubImage2D(3553,level,position.x,position.y,width,height,glFormat,glType,srcTexture.image.data);}else{if(srcTexture.isCompressedTexture){_gl.compressedTexSubImage2D(3553,level,position.x,position.y,srcTexture.mipmaps[0].width,srcTexture.mipmaps[0].height,glFormat,srcTexture.mipmaps[0].data);}else{_gl.texSubImage2D(3553,level,position.x,position.y,glFormat,glType,srcTexture.image);}}\nif(level===0&&dstTexture.generateMipmaps)_gl.generateMipmap(3553);state.unbindTexture();};this.initTexture=function(texture){textures.setTexture2D(texture,0);state.unbindTexture();};if(typeof __THREE_DEVTOOLS__!=='undefined'){__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent('observe',{detail:this}));}}function WebGL1Renderer(parameters){WebGLRenderer.call(this,parameters);}WebGL1Renderer.prototype=Object.assign(Object.create(WebGLRenderer.prototype),{constructor:WebGL1Renderer,isWebGL1Renderer:true});var Scene=function(_Object3D){_inherits(Scene,_Object3D);var _super4=_createSuper(Scene);function Scene(){var _this11;_classCallCheck(this,Scene);_this11=_super4.call(this);Object.defineProperty(_assertThisInitialized(_this11),'isScene',{value:true});_this11.type='Scene';_this11.background=null;_this11.environment=null;_this11.fog=null;_this11.overrideMaterial=null;_this11.autoUpdate=true;if(typeof __THREE_DEVTOOLS__!=='undefined'){__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent('observe',{detail:_assertThisInitialized(_this11)}));}return _this11;}_createClass(Scene,[{key:\"copy\",value:function copy(source,recursive){_get(_getPrototypeOf(Scene.prototype),\"copy\",this).call(this,source,recursive);if(source.background!==null)this.background=source.background.clone();if(source.environment!==null)this.environment=source.environment.clone();if(source.fog!==null)this.fog=source.fog.clone();if(source.overrideMaterial!==null)this.overrideMaterial=source.overrideMaterial.clone();this.autoUpdate=source.autoUpdate;this.matrixAutoUpdate=source.matrixAutoUpdate;return this;}},{key:\"toJSON\",value:function toJSON(meta){var data=_get(_getPrototypeOf(Scene.prototype),\"toJSON\",this).call(this,meta);if(this.background!==null)data.object.background=this.background.toJSON(meta);if(this.environment!==null)data.object.environment=this.environment.toJSON(meta);if(this.fog!==null)data.object.fog=this.fog.toJSON();return data;}}]);return Scene;}(Object3D);function InterleavedBuffer(array,stride){this.array=array;this.stride=stride;this.count=array!==undefined?array.length/stride:0;this.usage=StaticDrawUsage;this.updateRange={offset:0,count:-1};this.version=0;this.uuid=MathUtils.generateUUID();}Object.defineProperty(InterleavedBuffer.prototype,'needsUpdate',{set:function set(value){if(value===true)this.version++;}});Object.assign(InterleavedBuffer.prototype,{isInterleavedBuffer:true,onUploadCallback:function onUploadCallback(){},setUsage:function setUsage(value){this.usage=value;return this;},copy:function copy(source){this.array=new source.array.constructor(source.array);this.count=source.count;this.stride=source.stride;this.usage=source.usage;return this;},copyAt:function copyAt(index1,attribute,index2){index1*=this.stride;index2*=attribute.stride;for(var _i126=0,l=this.stride;_i126<l;_i126++){this.array[index1+_i126]=attribute.array[index2+_i126];}return this;},set:function set(value,offset){if(offset===undefined)offset=0;this.array.set(value,offset);return this;},clone:function clone(data){if(data.arrayBuffers===undefined){data.arrayBuffers={};}if(this.array.buffer._uuid===undefined){this.array.buffer._uuid=MathUtils.generateUUID();}if(data.arrayBuffers[this.array.buffer._uuid]===undefined){data.arrayBuffers[this.array.buffer._uuid]=this.array.slice(0).buffer;}var array=new this.array.constructor(data.arrayBuffers[this.array.buffer._uuid]);var ib=new InterleavedBuffer(array,this.stride);ib.setUsage(this.usage);return ib;},onUpload:function onUpload(callback){this.onUploadCallback=callback;return this;},toJSON:function toJSON(data){if(data.arrayBuffers===undefined){data.arrayBuffers={};}\nif(this.array.buffer._uuid===undefined){this.array.buffer._uuid=MathUtils.generateUUID();}if(data.arrayBuffers[this.array.buffer._uuid]===undefined){data.arrayBuffers[this.array.buffer._uuid]=Array.prototype.slice.call(new Uint32Array(this.array.buffer));}\nreturn{uuid:this.uuid,buffer:this.array.buffer._uuid,type:this.array.constructor.name,stride:this.stride};}});var _vector$6=new Vector3();function InterleavedBufferAttribute(interleavedBuffer,itemSize,offset,normalized){this.name='';this.data=interleavedBuffer;this.itemSize=itemSize;this.offset=offset;this.normalized=normalized===true;}Object.defineProperties(InterleavedBufferAttribute.prototype,{count:{get:function get(){return this.data.count;}},array:{get:function get(){return this.data.array;}},needsUpdate:{set:function set(value){this.data.needsUpdate=value;}}});Object.assign(InterleavedBufferAttribute.prototype,{isInterleavedBufferAttribute:true,applyMatrix4:function applyMatrix4(m){for(var _i127=0,l=this.data.count;_i127<l;_i127++){_vector$6.x=this.getX(_i127);_vector$6.y=this.getY(_i127);_vector$6.z=this.getZ(_i127);_vector$6.applyMatrix4(m);this.setXYZ(_i127,_vector$6.x,_vector$6.y,_vector$6.z);}return this;},setX:function setX(index,x){this.data.array[index*this.data.stride+this.offset]=x;return this;},setY:function setY(index,y){this.data.array[index*this.data.stride+this.offset+1]=y;return this;},setZ:function setZ(index,z){this.data.array[index*this.data.stride+this.offset+2]=z;return this;},setW:function setW(index,w){this.data.array[index*this.data.stride+this.offset+3]=w;return this;},getX:function getX(index){return this.data.array[index*this.data.stride+this.offset];},getY:function getY(index){return this.data.array[index*this.data.stride+this.offset+1];},getZ:function getZ(index){return this.data.array[index*this.data.stride+this.offset+2];},getW:function getW(index){return this.data.array[index*this.data.stride+this.offset+3];},setXY:function setXY(index,x,y){index=index*this.data.stride+this.offset;this.data.array[index+0]=x;this.data.array[index+1]=y;return this;},setXYZ:function setXYZ(index,x,y,z){index=index*this.data.stride+this.offset;this.data.array[index+0]=x;this.data.array[index+1]=y;this.data.array[index+2]=z;return this;},setXYZW:function setXYZW(index,x,y,z,w){index=index*this.data.stride+this.offset;this.data.array[index+0]=x;this.data.array[index+1]=y;this.data.array[index+2]=z;this.data.array[index+3]=w;return this;},clone:function clone(data){if(data===undefined){console.log('THREE.InterleavedBufferAttribute.clone(): Cloning an interlaved buffer attribute will deinterleave buffer data.');var array=[];for(var _i128=0;_i128<this.count;_i128++){var index=_i128*this.data.stride+this.offset;for(var j=0;j<this.itemSize;j++){array.push(this.data.array[index+j]);}}return new BufferAttribute(new this.array.constructor(array),this.itemSize,this.normalized);}else{if(data.interleavedBuffers===undefined){data.interleavedBuffers={};}if(data.interleavedBuffers[this.data.uuid]===undefined){data.interleavedBuffers[this.data.uuid]=this.data.clone(data);}return new InterleavedBufferAttribute(data.interleavedBuffers[this.data.uuid],this.itemSize,this.offset,this.normalized);}},toJSON:function toJSON(data){if(data===undefined){console.log('THREE.InterleavedBufferAttribute.toJSON(): Serializing an interlaved buffer attribute will deinterleave buffer data.');var array=[];for(var _i129=0;_i129<this.count;_i129++){var index=_i129*this.data.stride+this.offset;for(var j=0;j<this.itemSize;j++){array.push(this.data.array[index+j]);}}\nreturn{itemSize:this.itemSize,type:this.array.constructor.name,array:array,normalized:this.normalized};}else{if(data.interleavedBuffers===undefined){data.interleavedBuffers={};}if(data.interleavedBuffers[this.data.uuid]===undefined){data.interleavedBuffers[this.data.uuid]=this.data.toJSON(data);}return{isInterleavedBufferAttribute:true,itemSize:this.itemSize,data:this.data.uuid,offset:this.offset,normalized:this.normalized};}}});function SpriteMaterial(parameters){Material.call(this);this.type='SpriteMaterial';this.color=new Color(0xffffff);this.map=null;this.alphaMap=null;this.rotation=0;this.sizeAttenuation=true;this.transparent=true;this.setValues(parameters);}SpriteMaterial.prototype=Object.create(Material.prototype);SpriteMaterial.prototype.constructor=SpriteMaterial;SpriteMaterial.prototype.isSpriteMaterial=true;SpriteMaterial.prototype.copy=function(source){Material.prototype.copy.call(this,source);this.color.copy(source.color);this.map=source.map;this.alphaMap=source.alphaMap;this.rotation=source.rotation;this.sizeAttenuation=source.sizeAttenuation;return this;};var _geometry;var _intersectPoint=new Vector3();var _worldScale=new Vector3();var _mvPosition=new Vector3();var _alignedPosition=new Vector2();var _rotatedPosition=new Vector2();var _viewWorldMatrix=new Matrix4();var _vA$1=new Vector3();var _vB$1=new Vector3();var _vC$1=new Vector3();var _uvA$1=new Vector2();var _uvB$1=new Vector2();var _uvC$1=new Vector2();function Sprite(material){Object3D.call(this);this.type='Sprite';if(_geometry===undefined){_geometry=new BufferGeometry();var float32Array=new Float32Array([-0.5,-0.5,0,0,0,0.5,-0.5,0,1,0,0.5,0.5,0,1,1,-0.5,0.5,0,0,1]);var interleavedBuffer=new InterleavedBuffer(float32Array,5);_geometry.setIndex([0,1,2,0,2,3]);_geometry.setAttribute('position',new InterleavedBufferAttribute(interleavedBuffer,3,0,false));_geometry.setAttribute('uv',new InterleavedBufferAttribute(interleavedBuffer,2,3,false));}this.geometry=_geometry;this.material=material!==undefined?material:new SpriteMaterial();this.center=new Vector2(0.5,0.5);}Sprite.prototype=Object.assign(Object.create(Object3D.prototype),{constructor:Sprite,isSprite:true,raycast:function raycast(raycaster,intersects){if(raycaster.camera===null){console.error('THREE.Sprite: \"Raycaster.camera\" needs to be set in order to raycast against sprites.');}_worldScale.setFromMatrixScale(this.matrixWorld);_viewWorldMatrix.copy(raycaster.camera.matrixWorld);this.modelViewMatrix.multiplyMatrices(raycaster.camera.matrixWorldInverse,this.matrixWorld);_mvPosition.setFromMatrixPosition(this.modelViewMatrix);if(raycaster.camera.isPerspectiveCamera&&this.material.sizeAttenuation===false){_worldScale.multiplyScalar(-_mvPosition.z);}var rotation=this.material.rotation;var sin,cos;if(rotation!==0){cos=Math.cos(rotation);sin=Math.sin(rotation);}var center=this.center;transformVertex(_vA$1.set(-0.5,-0.5,0),_mvPosition,center,_worldScale,sin,cos);transformVertex(_vB$1.set(0.5,-0.5,0),_mvPosition,center,_worldScale,sin,cos);transformVertex(_vC$1.set(0.5,0.5,0),_mvPosition,center,_worldScale,sin,cos);_uvA$1.set(0,0);_uvB$1.set(1,0);_uvC$1.set(1,1);var intersect=raycaster.ray.intersectTriangle(_vA$1,_vB$1,_vC$1,false,_intersectPoint);if(intersect===null){transformVertex(_vB$1.set(-0.5,0.5,0),_mvPosition,center,_worldScale,sin,cos);_uvB$1.set(0,1);intersect=raycaster.ray.intersectTriangle(_vA$1,_vC$1,_vB$1,false,_intersectPoint);if(intersect===null){return;}}var distance=raycaster.ray.origin.distanceTo(_intersectPoint);if(distance<raycaster.near||distance>raycaster.far)return;intersects.push({distance:distance,point:_intersectPoint.clone(),uv:Triangle.getUV(_intersectPoint,_vA$1,_vB$1,_vC$1,_uvA$1,_uvB$1,_uvC$1,new Vector2()),face:null,object:this});},copy:function copy(source){Object3D.prototype.copy.call(this,source);if(source.center!==undefined)this.center.copy(source.center);this.material=source.material;return this;}});function transformVertex(vertexPosition,mvPosition,center,scale,sin,cos){_alignedPosition.subVectors(vertexPosition,center).addScalar(0.5).multiply(scale);if(sin!==undefined){_rotatedPosition.x=cos*_alignedPosition.x-sin*_alignedPosition.y;_rotatedPosition.y=sin*_alignedPosition.x+cos*_alignedPosition.y;}else{_rotatedPosition.copy(_alignedPosition);}vertexPosition.copy(mvPosition);vertexPosition.x+=_rotatedPosition.x;vertexPosition.y+=_rotatedPosition.y;vertexPosition.applyMatrix4(_viewWorldMatrix);}var _v1$4=new Vector3();var _v2$2=new Vector3();function LOD(){Object3D.call(this);this._currentLevel=0;this.type='LOD';Object.defineProperties(this,{levels:{enumerable:true,value:[]}});this.autoUpdate=true;}LOD.prototype=Object.assign(Object.create(Object3D.prototype),{constructor:LOD,isLOD:true,copy:function copy(source){Object3D.prototype.copy.call(this,source,false);var levels=source.levels;for(var _i130=0,l=levels.length;_i130<l;_i130++){var level=levels[_i130];this.addLevel(level.object.clone(),level.distance);}this.autoUpdate=source.autoUpdate;return this;},addLevel:function addLevel(object,distance){if(distance===undefined)distance=0;distance=Math.abs(distance);var levels=this.levels;var l;for(l=0;l<levels.length;l++){if(distance<levels[l].distance){break;}}levels.splice(l,0,{distance:distance,object:object});this.add(object);return this;},getCurrentLevel:function getCurrentLevel(){return this._currentLevel;},getObjectForDistance:function getObjectForDistance(distance){var levels=this.levels;if(levels.length>0){var _i131,l;for(_i131=1,l=levels.length;_i131<l;_i131++){if(distance<levels[_i131].distance){break;}}return levels[_i131-1].object;}return null;},raycast:function raycast(raycaster,intersects){var levels=this.levels;if(levels.length>0){_v1$4.setFromMatrixPosition(this.matrixWorld);var distance=raycaster.ray.origin.distanceTo(_v1$4);this.getObjectForDistance(distance).raycast(raycaster,intersects);}},update:function update(camera){var levels=this.levels;if(levels.length>1){_v1$4.setFromMatrixPosition(camera.matrixWorld);_v2$2.setFromMatrixPosition(this.matrixWorld);var distance=_v1$4.distanceTo(_v2$2)/camera.zoom;levels[0].object.visible=true;var _i132,l;for(_i132=1,l=levels.length;_i132<l;_i132++){if(distance>=levels[_i132].distance){levels[_i132-1].object.visible=false;levels[_i132].object.visible=true;}else{break;}}this._currentLevel=_i132-1;for(;_i132<l;_i132++){levels[_i132].object.visible=false;}}},toJSON:function toJSON(meta){var data=Object3D.prototype.toJSON.call(this,meta);if(this.autoUpdate===false)data.object.autoUpdate=false;data.object.levels=[];var levels=this.levels;for(var _i133=0,l=levels.length;_i133<l;_i133++){var level=levels[_i133];data.object.levels.push({object:level.object.uuid,distance:level.distance});}return data;}});function SkinnedMesh(geometry,material){if(geometry&&geometry.isGeometry){console.error('THREE.SkinnedMesh no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.');}Mesh.call(this,geometry,material);this.type='SkinnedMesh';this.bindMode='attached';this.bindMatrix=new Matrix4();this.bindMatrixInverse=new Matrix4();}SkinnedMesh.prototype=Object.assign(Object.create(Mesh.prototype),{constructor:SkinnedMesh,isSkinnedMesh:true,copy:function copy(source){Mesh.prototype.copy.call(this,source);this.bindMode=source.bindMode;this.bindMatrix.copy(source.bindMatrix);this.bindMatrixInverse.copy(source.bindMatrixInverse);this.skeleton=source.skeleton;return this;},bind:function bind(skeleton,bindMatrix){this.skeleton=skeleton;if(bindMatrix===undefined){this.updateMatrixWorld(true);this.skeleton.calculateInverses();bindMatrix=this.matrixWorld;}this.bindMatrix.copy(bindMatrix);this.bindMatrixInverse.getInverse(bindMatrix);},pose:function pose(){this.skeleton.pose();},normalizeSkinWeights:function normalizeSkinWeights(){var vector=new Vector4();var skinWeight=this.geometry.attributes.skinWeight;for(var _i134=0,l=skinWeight.count;_i134<l;_i134++){vector.x=skinWeight.getX(_i134);vector.y=skinWeight.getY(_i134);vector.z=skinWeight.getZ(_i134);vector.w=skinWeight.getW(_i134);var scale=1.0/vector.manhattanLength();if(scale!==Infinity){vector.multiplyScalar(scale);}else{vector.set(1,0,0,0);}skinWeight.setXYZW(_i134,vector.x,vector.y,vector.z,vector.w);}},updateMatrixWorld:function updateMatrixWorld(force){Mesh.prototype.updateMatrixWorld.call(this,force);if(this.bindMode==='attached'){this.bindMatrixInverse.getInverse(this.matrixWorld);}else if(this.bindMode==='detached'){this.bindMatrixInverse.getInverse(this.bindMatrix);}else{console.warn('THREE.SkinnedMesh: Unrecognized bindMode: '+this.bindMode);}},boneTransform:function(){var basePosition=new Vector3();var skinIndex=new Vector4();var skinWeight=new Vector4();var vector=new Vector3();var matrix=new Matrix4();return function(index,target){var skeleton=this.skeleton;var geometry=this.geometry;skinIndex.fromBufferAttribute(geometry.attributes.skinIndex,index);skinWeight.fromBufferAttribute(geometry.attributes.skinWeight,index);basePosition.fromBufferAttribute(geometry.attributes.position,index).applyMatrix4(this.bindMatrix);target.set(0,0,0);for(var _i135=0;_i135<4;_i135++){var weight=skinWeight.getComponent(_i135);if(weight!==0){var boneIndex=skinIndex.getComponent(_i135);matrix.multiplyMatrices(skeleton.bones[boneIndex].matrixWorld,skeleton.boneInverses[boneIndex]);target.addScaledVector(vector.copy(basePosition).applyMatrix4(matrix),weight);}}return target.applyMatrix4(this.bindMatrixInverse);};}()});var _offsetMatrix=new Matrix4();var _identityMatrix=new Matrix4();function Skeleton(bones,boneInverses){bones=bones||[];this.bones=bones.slice(0);this.boneMatrices=new Float32Array(this.bones.length*16);this.frame=-1;if(boneInverses===undefined){this.calculateInverses();}else{if(this.bones.length===boneInverses.length){this.boneInverses=boneInverses.slice(0);}else{console.warn('THREE.Skeleton boneInverses is the wrong length.');this.boneInverses=[];for(var _i136=0,il=this.bones.length;_i136<il;_i136++){this.boneInverses.push(new Matrix4());}}}}Object.assign(Skeleton.prototype,{calculateInverses:function calculateInverses(){this.boneInverses=[];for(var _i137=0,il=this.bones.length;_i137<il;_i137++){var inverse=new Matrix4();if(this.bones[_i137]){inverse.getInverse(this.bones[_i137].matrixWorld);}this.boneInverses.push(inverse);}},pose:function pose(){for(var _i138=0,il=this.bones.length;_i138<il;_i138++){var bone=this.bones[_i138];if(bone){bone.matrixWorld.getInverse(this.boneInverses[_i138]);}}\nfor(var _i139=0,_il11=this.bones.length;_i139<_il11;_i139++){var _bone=this.bones[_i139];if(_bone){if(_bone.parent&&_bone.parent.isBone){_bone.matrix.getInverse(_bone.parent.matrixWorld);_bone.matrix.multiply(_bone.matrixWorld);}else{_bone.matrix.copy(_bone.matrixWorld);}_bone.matrix.decompose(_bone.position,_bone.quaternion,_bone.scale);}}},update:function update(){var bones=this.bones;var boneInverses=this.boneInverses;var boneMatrices=this.boneMatrices;var boneTexture=this.boneTexture;for(var _i140=0,il=bones.length;_i140<il;_i140++){var matrix=bones[_i140]?bones[_i140].matrixWorld:_identityMatrix;_offsetMatrix.multiplyMatrices(matrix,boneInverses[_i140]);_offsetMatrix.toArray(boneMatrices,_i140*16);}if(boneTexture!==undefined){boneTexture.needsUpdate=true;}},clone:function clone(){return new Skeleton(this.bones,this.boneInverses);},getBoneByName:function getBoneByName(name){for(var _i141=0,il=this.bones.length;_i141<il;_i141++){var bone=this.bones[_i141];if(bone.name===name){return bone;}}return undefined;},dispose:function dispose(){if(this.boneTexture){this.boneTexture.dispose();this.boneTexture=undefined;}}});function Bone(){Object3D.call(this);this.type='Bone';}Bone.prototype=Object.assign(Object.create(Object3D.prototype),{constructor:Bone,isBone:true});var _instanceLocalMatrix=new Matrix4();var _instanceWorldMatrix=new Matrix4();var _instanceIntersects=[];var _mesh=new Mesh();function InstancedMesh(geometry,material,count){Mesh.call(this,geometry,material);this.instanceMatrix=new BufferAttribute(new Float32Array(count*16),16);this.instanceColor=null;this.count=count;this.frustumCulled=false;}InstancedMesh.prototype=Object.assign(Object.create(Mesh.prototype),{constructor:InstancedMesh,isInstancedMesh:true,copy:function copy(source){Mesh.prototype.copy.call(this,source);this.instanceMatrix.copy(source.instanceMatrix);this.count=source.count;return this;},setColorAt:function setColorAt(index,color){if(this.instanceColor===null){this.instanceColor=new BufferAttribute(new Float32Array(this.count*3),3);}color.toArray(this.instanceColor.array,index*3);},getMatrixAt:function getMatrixAt(index,matrix){matrix.fromArray(this.instanceMatrix.array,index*16);},raycast:function raycast(raycaster,intersects){var matrixWorld=this.matrixWorld;var raycastTimes=this.count;_mesh.geometry=this.geometry;_mesh.material=this.material;if(_mesh.material===undefined)return;for(var instanceId=0;instanceId<raycastTimes;instanceId++){this.getMatrixAt(instanceId,_instanceLocalMatrix);_instanceWorldMatrix.multiplyMatrices(matrixWorld,_instanceLocalMatrix);_mesh.matrixWorld=_instanceWorldMatrix;_mesh.raycast(raycaster,_instanceIntersects);for(var _i142=0,l=_instanceIntersects.length;_i142<l;_i142++){var intersect=_instanceIntersects[_i142];intersect.instanceId=instanceId;intersect.object=this;intersects.push(intersect);}_instanceIntersects.length=0;}},setMatrixAt:function setMatrixAt(index,matrix){matrix.toArray(this.instanceMatrix.array,index*16);},updateMorphTargets:function updateMorphTargets(){}});function LineBasicMaterial(parameters){Material.call(this);this.type='LineBasicMaterial';this.color=new Color(0xffffff);this.linewidth=1;this.linecap='round';this.linejoin='round';this.morphTargets=false;this.setValues(parameters);}LineBasicMaterial.prototype=Object.create(Material.prototype);LineBasicMaterial.prototype.constructor=LineBasicMaterial;LineBasicMaterial.prototype.isLineBasicMaterial=true;LineBasicMaterial.prototype.copy=function(source){Material.prototype.copy.call(this,source);this.color.copy(source.color);this.linewidth=source.linewidth;this.linecap=source.linecap;this.linejoin=source.linejoin;this.morphTargets=source.morphTargets;return this;};var _start=new Vector3();var _end=new Vector3();var _inverseMatrix$1=new Matrix4();var _ray$1=new Ray();var _sphere$2=new Sphere();function Line(geometry,material,mode){if(mode===1){console.error('THREE.Line: parameter THREE.LinePieces no longer supported. Use THREE.LineSegments instead.');}Object3D.call(this);this.type='Line';this.geometry=geometry!==undefined?geometry:new BufferGeometry();this.material=material!==undefined?material:new LineBasicMaterial();this.updateMorphTargets();}Line.prototype=Object.assign(Object.create(Object3D.prototype),{constructor:Line,isLine:true,copy:function copy(source){Object3D.prototype.copy.call(this,source);this.material=source.material;this.geometry=source.geometry;return this;},computeLineDistances:function computeLineDistances(){var geometry=this.geometry;if(geometry.isBufferGeometry){if(geometry.index===null){var positionAttribute=geometry.attributes.position;var lineDistances=[0];for(var _i143=1,l=positionAttribute.count;_i143<l;_i143++){_start.fromBufferAttribute(positionAttribute,_i143-1);_end.fromBufferAttribute(positionAttribute,_i143);lineDistances[_i143]=lineDistances[_i143-1];lineDistances[_i143]+=_start.distanceTo(_end);}geometry.setAttribute('lineDistance',new Float32BufferAttribute(lineDistances,1));}else{console.warn('THREE.Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.');}}else if(geometry.isGeometry){var _vertices=geometry.vertices;var _lineDistances=geometry.lineDistances;_lineDistances[0]=0;for(var _i144=1,_l7=_vertices.length;_i144<_l7;_i144++){_lineDistances[_i144]=_lineDistances[_i144-1];_lineDistances[_i144]+=_vertices[_i144-1].distanceTo(_vertices[_i144]);}}return this;},raycast:function raycast(raycaster,intersects){var geometry=this.geometry;var matrixWorld=this.matrixWorld;var threshold=raycaster.params.Line.threshold;if(geometry.boundingSphere===null)geometry.computeBoundingSphere();_sphere$2.copy(geometry.boundingSphere);_sphere$2.applyMatrix4(matrixWorld);_sphere$2.radius+=threshold;if(raycaster.ray.intersectsSphere(_sphere$2)===false)return;_inverseMatrix$1.getInverse(matrixWorld);_ray$1.copy(raycaster.ray).applyMatrix4(_inverseMatrix$1);var localThreshold=threshold/((this.scale.x+this.scale.y+this.scale.z)/3);var localThresholdSq=localThreshold*localThreshold;var vStart=new Vector3();var vEnd=new Vector3();var interSegment=new Vector3();var interRay=new Vector3();var step=this.isLineSegments?2:1;if(geometry.isBufferGeometry){var index=geometry.index;var attributes=geometry.attributes;var positionAttribute=attributes.position;if(index!==null){var _indices=index.array;for(var _i145=0,l=_indices.length-1;_i145<l;_i145+=step){var a=_indices[_i145];var b=_indices[_i145+1];vStart.fromBufferAttribute(positionAttribute,a);vEnd.fromBufferAttribute(positionAttribute,b);var distSq=_ray$1.distanceSqToSegment(vStart,vEnd,interRay,interSegment);if(distSq>localThresholdSq)continue;interRay.applyMatrix4(this.matrixWorld);var distance=raycaster.ray.origin.distanceTo(interRay);if(distance<raycaster.near||distance>raycaster.far)continue;intersects.push({distance:distance,point:interSegment.clone().applyMatrix4(this.matrixWorld),index:_i145,face:null,faceIndex:null,object:this});}}else{for(var _i146=0,_l8=positionAttribute.count-1;_i146<_l8;_i146+=step){vStart.fromBufferAttribute(positionAttribute,_i146);vEnd.fromBufferAttribute(positionAttribute,_i146+1);var _distSq=_ray$1.distanceSqToSegment(vStart,vEnd,interRay,interSegment);if(_distSq>localThresholdSq)continue;interRay.applyMatrix4(this.matrixWorld);var _distance=raycaster.ray.origin.distanceTo(interRay);if(_distance<raycaster.near||_distance>raycaster.far)continue;intersects.push({distance:_distance,point:interSegment.clone().applyMatrix4(this.matrixWorld),index:_i146,face:null,faceIndex:null,object:this});}}}else if(geometry.isGeometry){var _vertices2=geometry.vertices;var nbVertices=_vertices2.length;for(var _i147=0;_i147<nbVertices-1;_i147+=step){var _distSq2=_ray$1.distanceSqToSegment(_vertices2[_i147],_vertices2[_i147+1],interRay,interSegment);if(_distSq2>localThresholdSq)continue;interRay.applyMatrix4(this.matrixWorld);var _distance2=raycaster.ray.origin.distanceTo(interRay);if(_distance2<raycaster.near||_distance2>raycaster.far)continue;intersects.push({distance:_distance2,point:interSegment.clone().applyMatrix4(this.matrixWorld),index:_i147,face:null,faceIndex:null,object:this});}}},updateMorphTargets:function updateMorphTargets(){var geometry=this.geometry;if(geometry.isBufferGeometry){var morphAttributes=geometry.morphAttributes;var keys=Object.keys(morphAttributes);if(keys.length>0){var morphAttribute=morphAttributes[keys[0]];if(morphAttribute!==undefined){this.morphTargetInfluences=[];this.morphTargetDictionary={};for(var m=0,ml=morphAttribute.length;m<ml;m++){var name=morphAttribute[m].name||String(m);this.morphTargetInfluences.push(0);this.morphTargetDictionary[name]=m;}}}}else{var morphTargets=geometry.morphTargets;if(morphTargets!==undefined&&morphTargets.length>0){console.error('THREE.Line.updateMorphTargets() does not support THREE.Geometry. Use THREE.BufferGeometry instead.');}}}});var _start$1=new Vector3();var _end$1=new Vector3();function LineSegments(geometry,material){Line.call(this,geometry,material);this.type='LineSegments';}LineSegments.prototype=Object.assign(Object.create(Line.prototype),{constructor:LineSegments,isLineSegments:true,computeLineDistances:function computeLineDistances(){var geometry=this.geometry;if(geometry.isBufferGeometry){if(geometry.index===null){var positionAttribute=geometry.attributes.position;var lineDistances=[];for(var _i148=0,l=positionAttribute.count;_i148<l;_i148+=2){_start$1.fromBufferAttribute(positionAttribute,_i148);_end$1.fromBufferAttribute(positionAttribute,_i148+1);lineDistances[_i148]=_i148===0?0:lineDistances[_i148-1];lineDistances[_i148+1]=lineDistances[_i148]+_start$1.distanceTo(_end$1);}geometry.setAttribute('lineDistance',new Float32BufferAttribute(lineDistances,1));}else{console.warn('THREE.LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.');}}else if(geometry.isGeometry){var _vertices3=geometry.vertices;var _lineDistances2=geometry.lineDistances;for(var _i149=0,_l9=_vertices3.length;_i149<_l9;_i149+=2){_start$1.copy(_vertices3[_i149]);_end$1.copy(_vertices3[_i149+1]);_lineDistances2[_i149]=_i149===0?0:_lineDistances2[_i149-1];_lineDistances2[_i149+1]=_lineDistances2[_i149]+_start$1.distanceTo(_end$1);}}return this;}});function LineLoop(geometry,material){Line.call(this,geometry,material);this.type='LineLoop';}LineLoop.prototype=Object.assign(Object.create(Line.prototype),{constructor:LineLoop,isLineLoop:true});function PointsMaterial(parameters){Material.call(this);this.type='PointsMaterial';this.color=new Color(0xffffff);this.map=null;this.alphaMap=null;this.size=1;this.sizeAttenuation=true;this.morphTargets=false;this.setValues(parameters);}PointsMaterial.prototype=Object.create(Material.prototype);PointsMaterial.prototype.constructor=PointsMaterial;PointsMaterial.prototype.isPointsMaterial=true;PointsMaterial.prototype.copy=function(source){Material.prototype.copy.call(this,source);this.color.copy(source.color);this.map=source.map;this.alphaMap=source.alphaMap;this.size=source.size;this.sizeAttenuation=source.sizeAttenuation;this.morphTargets=source.morphTargets;return this;};var _inverseMatrix$2=new Matrix4();var _ray$2=new Ray();var _sphere$3=new Sphere();var _position$1=new Vector3();function Points(geometry,material){Object3D.call(this);this.type='Points';this.geometry=geometry!==undefined?geometry:new BufferGeometry();this.material=material!==undefined?material:new PointsMaterial();this.updateMorphTargets();}Points.prototype=Object.assign(Object.create(Object3D.prototype),{constructor:Points,isPoints:true,copy:function copy(source){Object3D.prototype.copy.call(this,source);this.material=source.material;this.geometry=source.geometry;return this;},raycast:function raycast(raycaster,intersects){var geometry=this.geometry;var matrixWorld=this.matrixWorld;var threshold=raycaster.params.Points.threshold;if(geometry.boundingSphere===null)geometry.computeBoundingSphere();_sphere$3.copy(geometry.boundingSphere);_sphere$3.applyMatrix4(matrixWorld);_sphere$3.radius+=threshold;if(raycaster.ray.intersectsSphere(_sphere$3)===false)return;_inverseMatrix$2.getInverse(matrixWorld);_ray$2.copy(raycaster.ray).applyMatrix4(_inverseMatrix$2);var localThreshold=threshold/((this.scale.x+this.scale.y+this.scale.z)/3);var localThresholdSq=localThreshold*localThreshold;if(geometry.isBufferGeometry){var index=geometry.index;var attributes=geometry.attributes;var positionAttribute=attributes.position;if(index!==null){var _indices2=index.array;for(var _i150=0,il=_indices2.length;_i150<il;_i150++){var a=_indices2[_i150];_position$1.fromBufferAttribute(positionAttribute,a);testPoint(_position$1,a,localThresholdSq,matrixWorld,raycaster,intersects,this);}}else{for(var _i151=0,l=positionAttribute.count;_i151<l;_i151++){_position$1.fromBufferAttribute(positionAttribute,_i151);testPoint(_position$1,_i151,localThresholdSq,matrixWorld,raycaster,intersects,this);}}}else{var _vertices4=geometry.vertices;for(var _i152=0,_l10=_vertices4.length;_i152<_l10;_i152++){testPoint(_vertices4[_i152],_i152,localThresholdSq,matrixWorld,raycaster,intersects,this);}}},updateMorphTargets:function updateMorphTargets(){var geometry=this.geometry;if(geometry.isBufferGeometry){var morphAttributes=geometry.morphAttributes;var keys=Object.keys(morphAttributes);if(keys.length>0){var morphAttribute=morphAttributes[keys[0]];if(morphAttribute!==undefined){this.morphTargetInfluences=[];this.morphTargetDictionary={};for(var m=0,ml=morphAttribute.length;m<ml;m++){var name=morphAttribute[m].name||String(m);this.morphTargetInfluences.push(0);this.morphTargetDictionary[name]=m;}}}}else{var morphTargets=geometry.morphTargets;if(morphTargets!==undefined&&morphTargets.length>0){console.error('THREE.Points.updateMorphTargets() does not support THREE.Geometry. Use THREE.BufferGeometry instead.');}}}});function testPoint(point,index,localThresholdSq,matrixWorld,raycaster,intersects,object){var rayPointDistanceSq=_ray$2.distanceSqToPoint(point);if(rayPointDistanceSq<localThresholdSq){var intersectPoint=new Vector3();_ray$2.closestPointToPoint(point,intersectPoint);intersectPoint.applyMatrix4(matrixWorld);var distance=raycaster.ray.origin.distanceTo(intersectPoint);if(distance<raycaster.near||distance>raycaster.far)return;intersects.push({distance:distance,distanceToRay:Math.sqrt(rayPointDistanceSq),point:intersectPoint,index:index,face:null,object:object});}}function VideoTexture(video,mapping,wrapS,wrapT,magFilter,minFilter,format,type,anisotropy){Texture.call(this,video,mapping,wrapS,wrapT,magFilter,minFilter,format,type,anisotropy);this.format=format!==undefined?format:RGBFormat;this.minFilter=minFilter!==undefined?minFilter:LinearFilter;this.magFilter=magFilter!==undefined?magFilter:LinearFilter;this.generateMipmaps=false;var scope=this;function updateVideo(){scope.needsUpdate=true;video.requestVideoFrameCallback(updateVideo);}if('requestVideoFrameCallback'in video){video.requestVideoFrameCallback(updateVideo);}}VideoTexture.prototype=Object.assign(Object.create(Texture.prototype),{constructor:VideoTexture,isVideoTexture:true,update:function update(){var video=this.image;var hasVideoFrameCallback=('requestVideoFrameCallback'in video);if(hasVideoFrameCallback===false&&video.readyState>=video.HAVE_CURRENT_DATA){this.needsUpdate=true;}}});function CompressedTexture(mipmaps,width,height,format,type,mapping,wrapS,wrapT,magFilter,minFilter,anisotropy,encoding){Texture.call(this,null,mapping,wrapS,wrapT,magFilter,minFilter,format,type,anisotropy,encoding);this.image={width:width,height:height};this.mipmaps=mipmaps;this.flipY=false;this.generateMipmaps=false;}CompressedTexture.prototype=Object.create(Texture.prototype);CompressedTexture.prototype.constructor=CompressedTexture;CompressedTexture.prototype.isCompressedTexture=true;function CanvasTexture(canvas,mapping,wrapS,wrapT,magFilter,minFilter,format,type,anisotropy){Texture.call(this,canvas,mapping,wrapS,wrapT,magFilter,minFilter,format,type,anisotropy);this.needsUpdate=true;}CanvasTexture.prototype=Object.create(Texture.prototype);CanvasTexture.prototype.constructor=CanvasTexture;CanvasTexture.prototype.isCanvasTexture=true;function DepthTexture(width,height,type,mapping,wrapS,wrapT,magFilter,minFilter,anisotropy,format){format=format!==undefined?format:DepthFormat;if(format!==DepthFormat&&format!==DepthStencilFormat){throw new Error('DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat');}if(type===undefined&&format===DepthFormat)type=UnsignedShortType;if(type===undefined&&format===DepthStencilFormat)type=UnsignedInt248Type;Texture.call(this,null,mapping,wrapS,wrapT,magFilter,minFilter,format,type,anisotropy);this.image={width:width,height:height};this.magFilter=magFilter!==undefined?magFilter:NearestFilter;this.minFilter=minFilter!==undefined?minFilter:NearestFilter;this.flipY=false;this.generateMipmaps=false;}DepthTexture.prototype=Object.create(Texture.prototype);DepthTexture.prototype.constructor=DepthTexture;DepthTexture.prototype.isDepthTexture=true;var _geometryId=0;var _m1$3=new Matrix4();var _obj$1=new Object3D();var _offset$1=new Vector3();function Geometry(){Object.defineProperty(this,'id',{value:_geometryId+=2});this.uuid=MathUtils.generateUUID();this.name='';this.type='Geometry';this.vertices=[];this.colors=[];this.faces=[];this.faceVertexUvs=[[]];this.morphTargets=[];this.morphNormals=[];this.skinWeights=[];this.skinIndices=[];this.lineDistances=[];this.boundingBox=null;this.boundingSphere=null;this.elementsNeedUpdate=false;this.verticesNeedUpdate=false;this.uvsNeedUpdate=false;this.normalsNeedUpdate=false;this.colorsNeedUpdate=false;this.lineDistancesNeedUpdate=false;this.groupsNeedUpdate=false;}Geometry.prototype=Object.assign(Object.create(EventDispatcher.prototype),{constructor:Geometry,isGeometry:true,applyMatrix4:function applyMatrix4(matrix){var normalMatrix=new Matrix3().getNormalMatrix(matrix);for(var _i153=0,il=this.vertices.length;_i153<il;_i153++){var vertex=this.vertices[_i153];vertex.applyMatrix4(matrix);}for(var _i154=0,_il12=this.faces.length;_i154<_il12;_i154++){var face=this.faces[_i154];face.normal.applyMatrix3(normalMatrix).normalize();for(var j=0,jl=face.vertexNormals.length;j<jl;j++){face.vertexNormals[j].applyMatrix3(normalMatrix).normalize();}}if(this.boundingBox!==null){this.computeBoundingBox();}if(this.boundingSphere!==null){this.computeBoundingSphere();}this.verticesNeedUpdate=true;this.normalsNeedUpdate=true;return this;},rotateX:function rotateX(angle){_m1$3.makeRotationX(angle);this.applyMatrix4(_m1$3);return this;},rotateY:function rotateY(angle){_m1$3.makeRotationY(angle);this.applyMatrix4(_m1$3);return this;},rotateZ:function rotateZ(angle){_m1$3.makeRotationZ(angle);this.applyMatrix4(_m1$3);return this;},translate:function translate(x,y,z){_m1$3.makeTranslation(x,y,z);this.applyMatrix4(_m1$3);return this;},scale:function scale(x,y,z){_m1$3.makeScale(x,y,z);this.applyMatrix4(_m1$3);return this;},lookAt:function lookAt(vector){_obj$1.lookAt(vector);_obj$1.updateMatrix();this.applyMatrix4(_obj$1.matrix);return this;},fromBufferGeometry:function fromBufferGeometry(geometry){var scope=this;var index=geometry.index!==null?geometry.index:undefined;var attributes=geometry.attributes;if(attributes.position===undefined){console.error('THREE.Geometry.fromBufferGeometry(): Position attribute required for conversion.');return this;}var position=attributes.position;var normal=attributes.normal;var color=attributes.color;var uv=attributes.uv;var uv2=attributes.uv2;if(uv2!==undefined)this.faceVertexUvs[1]=[];for(var _i155=0;_i155<position.count;_i155++){scope.vertices.push(new Vector3().fromBufferAttribute(position,_i155));if(color!==undefined){scope.colors.push(new Color().fromBufferAttribute(color,_i155));}}function addFace(a,b,c,materialIndex){var vertexColors=color===undefined?[]:[scope.colors[a].clone(),scope.colors[b].clone(),scope.colors[c].clone()];var vertexNormals=normal===undefined?[]:[new Vector3().fromBufferAttribute(normal,a),new Vector3().fromBufferAttribute(normal,b),new Vector3().fromBufferAttribute(normal,c)];var face=new Face3(a,b,c,vertexNormals,vertexColors,materialIndex);scope.faces.push(face);if(uv!==undefined){scope.faceVertexUvs[0].push([new Vector2().fromBufferAttribute(uv,a),new Vector2().fromBufferAttribute(uv,b),new Vector2().fromBufferAttribute(uv,c)]);}if(uv2!==undefined){scope.faceVertexUvs[1].push([new Vector2().fromBufferAttribute(uv2,a),new Vector2().fromBufferAttribute(uv2,b),new Vector2().fromBufferAttribute(uv2,c)]);}}var groups=geometry.groups;if(groups.length>0){for(var _i156=0;_i156<groups.length;_i156++){var group=groups[_i156];var start=group.start;var count=group.count;for(var j=start,jl=start+count;j<jl;j+=3){if(index!==undefined){addFace(index.getX(j),index.getX(j+1),index.getX(j+2),group.materialIndex);}else{addFace(j,j+1,j+2,group.materialIndex);}}}}else{if(index!==undefined){for(var _i157=0;_i157<index.count;_i157+=3){addFace(index.getX(_i157),index.getX(_i157+1),index.getX(_i157+2));}}else{for(var _i158=0;_i158<position.count;_i158+=3){addFace(_i158,_i158+1,_i158+2);}}}this.computeFaceNormals();if(geometry.boundingBox!==null){this.boundingBox=geometry.boundingBox.clone();}if(geometry.boundingSphere!==null){this.boundingSphere=geometry.boundingSphere.clone();}return this;},center:function center(){this.computeBoundingBox();this.boundingBox.getCenter(_offset$1).negate();this.translate(_offset$1.x,_offset$1.y,_offset$1.z);return this;},normalize:function normalize(){this.computeBoundingSphere();var center=this.boundingSphere.center;var radius=this.boundingSphere.radius;var s=radius===0?1:1.0/radius;var matrix=new Matrix4();matrix.set(s,0,0,-s*center.x,0,s,0,-s*center.y,0,0,s,-s*center.z,0,0,0,1);this.applyMatrix4(matrix);return this;},computeFaceNormals:function computeFaceNormals(){var cb=new Vector3(),ab=new Vector3();for(var f=0,fl=this.faces.length;f<fl;f++){var face=this.faces[f];var vA=this.vertices[face.a];var vB=this.vertices[face.b];var vC=this.vertices[face.c];cb.subVectors(vC,vB);ab.subVectors(vA,vB);cb.cross(ab);cb.normalize();face.normal.copy(cb);}},computeVertexNormals:function computeVertexNormals(areaWeighted){if(areaWeighted===undefined)areaWeighted=true;var vertices=new Array(this.vertices.length);for(var v=0,vl=this.vertices.length;v<vl;v++){vertices[v]=new Vector3();}if(areaWeighted){var cb=new Vector3(),ab=new Vector3();for(var f=0,fl=this.faces.length;f<fl;f++){var face=this.faces[f];var vA=this.vertices[face.a];var vB=this.vertices[face.b];var vC=this.vertices[face.c];cb.subVectors(vC,vB);ab.subVectors(vA,vB);cb.cross(ab);vertices[face.a].add(cb);vertices[face.b].add(cb);vertices[face.c].add(cb);}}else{this.computeFaceNormals();for(var _f3=0,_fl=this.faces.length;_f3<_fl;_f3++){var _face=this.faces[_f3];vertices[_face.a].add(_face.normal);vertices[_face.b].add(_face.normal);vertices[_face.c].add(_face.normal);}}for(var _v4=0,_vl=this.vertices.length;_v4<_vl;_v4++){vertices[_v4].normalize();}for(var _f4=0,_fl2=this.faces.length;_f4<_fl2;_f4++){var _face2=this.faces[_f4];var vertexNormals=_face2.vertexNormals;if(vertexNormals.length===3){vertexNormals[0].copy(vertices[_face2.a]);vertexNormals[1].copy(vertices[_face2.b]);vertexNormals[2].copy(vertices[_face2.c]);}else{vertexNormals[0]=vertices[_face2.a].clone();vertexNormals[1]=vertices[_face2.b].clone();vertexNormals[2]=vertices[_face2.c].clone();}}if(this.faces.length>0){this.normalsNeedUpdate=true;}},computeFlatVertexNormals:function computeFlatVertexNormals(){this.computeFaceNormals();for(var f=0,fl=this.faces.length;f<fl;f++){var face=this.faces[f];var vertexNormals=face.vertexNormals;if(vertexNormals.length===3){vertexNormals[0].copy(face.normal);vertexNormals[1].copy(face.normal);vertexNormals[2].copy(face.normal);}else{vertexNormals[0]=face.normal.clone();vertexNormals[1]=face.normal.clone();vertexNormals[2]=face.normal.clone();}}if(this.faces.length>0){this.normalsNeedUpdate=true;}},computeMorphNormals:function computeMorphNormals(){for(var f=0,fl=this.faces.length;f<fl;f++){var face=this.faces[f];if(!face.__originalFaceNormal){face.__originalFaceNormal=face.normal.clone();}else{face.__originalFaceNormal.copy(face.normal);}if(!face.__originalVertexNormals)face.__originalVertexNormals=[];for(var _i159=0,il=face.vertexNormals.length;_i159<il;_i159++){if(!face.__originalVertexNormals[_i159]){face.__originalVertexNormals[_i159]=face.vertexNormals[_i159].clone();}else{face.__originalVertexNormals[_i159].copy(face.vertexNormals[_i159]);}}}\nvar tmpGeo=new Geometry();tmpGeo.faces=this.faces;for(var _i160=0,_il13=this.morphTargets.length;_i160<_il13;_i160++){if(!this.morphNormals[_i160]){this.morphNormals[_i160]={};this.morphNormals[_i160].faceNormals=[];this.morphNormals[_i160].vertexNormals=[];var dstNormalsFace=this.morphNormals[_i160].faceNormals;var dstNormalsVertex=this.morphNormals[_i160].vertexNormals;for(var _f5=0,_fl3=this.faces.length;_f5<_fl3;_f5++){var faceNormal=new Vector3();var vertexNormals={a:new Vector3(),b:new Vector3(),c:new Vector3()};dstNormalsFace.push(faceNormal);dstNormalsVertex.push(vertexNormals);}}var morphNormals=this.morphNormals[_i160];tmpGeo.vertices=this.morphTargets[_i160].vertices;tmpGeo.computeFaceNormals();tmpGeo.computeVertexNormals();for(var _f6=0,_fl4=this.faces.length;_f6<_fl4;_f6++){var _face3=this.faces[_f6];var _faceNormal=morphNormals.faceNormals[_f6];var _vertexNormals=morphNormals.vertexNormals[_f6];_faceNormal.copy(_face3.normal);_vertexNormals.a.copy(_face3.vertexNormals[0]);_vertexNormals.b.copy(_face3.vertexNormals[1]);_vertexNormals.c.copy(_face3.vertexNormals[2]);}}\nfor(var _f7=0,_fl5=this.faces.length;_f7<_fl5;_f7++){var _face4=this.faces[_f7];_face4.normal=_face4.__originalFaceNormal;_face4.vertexNormals=_face4.__originalVertexNormals;}},computeBoundingBox:function computeBoundingBox(){if(this.boundingBox===null){this.boundingBox=new Box3();}this.boundingBox.setFromPoints(this.vertices);},computeBoundingSphere:function computeBoundingSphere(){if(this.boundingSphere===null){this.boundingSphere=new Sphere();}this.boundingSphere.setFromPoints(this.vertices);},merge:function merge(geometry,matrix,materialIndexOffset){if(!(geometry&&geometry.isGeometry)){console.error('THREE.Geometry.merge(): geometry not an instance of THREE.Geometry.',geometry);return;}var normalMatrix;var vertexOffset=this.vertices.length,vertices1=this.vertices,vertices2=geometry.vertices,faces1=this.faces,faces2=geometry.faces,colors1=this.colors,colors2=geometry.colors;if(materialIndexOffset===undefined)materialIndexOffset=0;if(matrix!==undefined){normalMatrix=new Matrix3().getNormalMatrix(matrix);}\nfor(var _i161=0,il=vertices2.length;_i161<il;_i161++){var vertex=vertices2[_i161];var vertexCopy=vertex.clone();if(matrix!==undefined)vertexCopy.applyMatrix4(matrix);vertices1.push(vertexCopy);}\nfor(var _i162=0,_il14=colors2.length;_i162<_il14;_i162++){colors1.push(colors2[_i162].clone());}\nfor(var _i163=0,_il15=faces2.length;_i163<_il15;_i163++){var face=faces2[_i163];var normal=void 0,color=void 0;var faceVertexNormals=face.vertexNormals,faceVertexColors=face.vertexColors;var faceCopy=new Face3(face.a+vertexOffset,face.b+vertexOffset,face.c+vertexOffset);faceCopy.normal.copy(face.normal);if(normalMatrix!==undefined){faceCopy.normal.applyMatrix3(normalMatrix).normalize();}for(var j=0,jl=faceVertexNormals.length;j<jl;j++){normal=faceVertexNormals[j].clone();if(normalMatrix!==undefined){normal.applyMatrix3(normalMatrix).normalize();}faceCopy.vertexNormals.push(normal);}faceCopy.color.copy(face.color);for(var _j6=0,_jl2=faceVertexColors.length;_j6<_jl2;_j6++){color=faceVertexColors[_j6];faceCopy.vertexColors.push(color.clone());}faceCopy.materialIndex=face.materialIndex+materialIndexOffset;faces1.push(faceCopy);}\nfor(var _i164=0,_il16=geometry.faceVertexUvs.length;_i164<_il16;_i164++){var faceVertexUvs2=geometry.faceVertexUvs[_i164];if(this.faceVertexUvs[_i164]===undefined)this.faceVertexUvs[_i164]=[];for(var _j7=0,_jl3=faceVertexUvs2.length;_j7<_jl3;_j7++){var uvs2=faceVertexUvs2[_j7],uvsCopy=[];for(var k=0,kl=uvs2.length;k<kl;k++){uvsCopy.push(uvs2[k].clone());}this.faceVertexUvs[_i164].push(uvsCopy);}}},mergeMesh:function mergeMesh(mesh){if(!(mesh&&mesh.isMesh)){console.error('THREE.Geometry.mergeMesh(): mesh not an instance of THREE.Mesh.',mesh);return;}if(mesh.matrixAutoUpdate)mesh.updateMatrix();this.merge(mesh.geometry,mesh.matrix);},mergeVertices:function mergeVertices(){var verticesMap={};var unique=[],changes=[];var precisionPoints=4;var precision=Math.pow(10,precisionPoints);for(var _i165=0,il=this.vertices.length;_i165<il;_i165++){var v=this.vertices[_i165];var key=Math.round(v.x*precision)+'_'+Math.round(v.y*precision)+'_'+Math.round(v.z*precision);if(verticesMap[key]===undefined){verticesMap[key]=_i165;unique.push(this.vertices[_i165]);changes[_i165]=unique.length-1;}else{changes[_i165]=changes[verticesMap[key]];}}\nvar faceIndicesToRemove=[];for(var _i166=0,_il17=this.faces.length;_i166<_il17;_i166++){var face=this.faces[_i166];face.a=changes[face.a];face.b=changes[face.b];face.c=changes[face.c];var _indices3=[face.a,face.b,face.c];for(var n=0;n<3;n++){if(_indices3[n]===_indices3[(n+1)%3]){faceIndicesToRemove.push(_i166);break;}}}for(var _i167=faceIndicesToRemove.length-1;_i167>=0;_i167--){var idx=faceIndicesToRemove[_i167];this.faces.splice(idx,1);for(var j=0,jl=this.faceVertexUvs.length;j<jl;j++){this.faceVertexUvs[j].splice(idx,1);}}\nvar diff=this.vertices.length-unique.length;this.vertices=unique;return diff;},setFromPoints:function setFromPoints(points){this.vertices=[];for(var _i168=0,l=points.length;_i168<l;_i168++){var point=points[_i168];this.vertices.push(new Vector3(point.x,point.y,point.z||0));}return this;},sortFacesByMaterialIndex:function sortFacesByMaterialIndex(){var faces=this.faces;var length=faces.length;for(var _i169=0;_i169<length;_i169++){faces[_i169]._id=_i169;}\nfunction materialIndexSort(a,b){return a.materialIndex-b.materialIndex;}faces.sort(materialIndexSort);var uvs1=this.faceVertexUvs[0];var uvs2=this.faceVertexUvs[1];var newUvs1,newUvs2;if(uvs1&&uvs1.length===length)newUvs1=[];if(uvs2&&uvs2.length===length)newUvs2=[];for(var _i170=0;_i170<length;_i170++){var id=faces[_i170]._id;if(newUvs1)newUvs1.push(uvs1[id]);if(newUvs2)newUvs2.push(uvs2[id]);}if(newUvs1)this.faceVertexUvs[0]=newUvs1;if(newUvs2)this.faceVertexUvs[1]=newUvs2;},toJSON:function toJSON(){var data={metadata:{version:4.5,type:'Geometry',generator:'Geometry.toJSON'}};data.uuid=this.uuid;data.type=this.type;if(this.name!=='')data.name=this.name;if(this.parameters!==undefined){var parameters=this.parameters;for(var key in parameters){if(parameters[key]!==undefined)data[key]=parameters[key];}return data;}var vertices=[];for(var _i171=0;_i171<this.vertices.length;_i171++){var vertex=this.vertices[_i171];vertices.push(vertex.x,vertex.y,vertex.z);}var faces=[];var normals=[];var normalsHash={};var colors=[];var colorsHash={};var uvs=[];var uvsHash={};for(var _i172=0;_i172<this.faces.length;_i172++){var face=this.faces[_i172];var hasMaterial=true;var hasFaceUv=false;var hasFaceVertexUv=this.faceVertexUvs[0][_i172]!==undefined;var hasFaceNormal=face.normal.length()>0;var hasFaceVertexNormal=face.vertexNormals.length>0;var hasFaceColor=face.color.r!==1||face.color.g!==1||face.color.b!==1;var hasFaceVertexColor=face.vertexColors.length>0;var faceType=0;faceType=setBit(faceType,0,0);faceType=setBit(faceType,1,hasMaterial);faceType=setBit(faceType,2,hasFaceUv);faceType=setBit(faceType,3,hasFaceVertexUv);faceType=setBit(faceType,4,hasFaceNormal);faceType=setBit(faceType,5,hasFaceVertexNormal);faceType=setBit(faceType,6,hasFaceColor);faceType=setBit(faceType,7,hasFaceVertexColor);faces.push(faceType);faces.push(face.a,face.b,face.c);faces.push(face.materialIndex);if(hasFaceVertexUv){var faceVertexUvs=this.faceVertexUvs[0][_i172];faces.push(getUvIndex(faceVertexUvs[0]),getUvIndex(faceVertexUvs[1]),getUvIndex(faceVertexUvs[2]));}if(hasFaceNormal){faces.push(getNormalIndex(face.normal));}if(hasFaceVertexNormal){var vertexNormals=face.vertexNormals;faces.push(getNormalIndex(vertexNormals[0]),getNormalIndex(vertexNormals[1]),getNormalIndex(vertexNormals[2]));}if(hasFaceColor){faces.push(getColorIndex(face.color));}if(hasFaceVertexColor){var vertexColors=face.vertexColors;faces.push(getColorIndex(vertexColors[0]),getColorIndex(vertexColors[1]),getColorIndex(vertexColors[2]));}}function setBit(value,position,enabled){return enabled?value|1<<position:value&~(1<<position);}function getNormalIndex(normal){var hash=normal.x.toString()+normal.y.toString()+normal.z.toString();if(normalsHash[hash]!==undefined){return normalsHash[hash];}normalsHash[hash]=normals.length/3;normals.push(normal.x,normal.y,normal.z);return normalsHash[hash];}function getColorIndex(color){var hash=color.r.toString()+color.g.toString()+color.b.toString();if(colorsHash[hash]!==undefined){return colorsHash[hash];}colorsHash[hash]=colors.length;colors.push(color.getHex());return colorsHash[hash];}function getUvIndex(uv){var hash=uv.x.toString()+uv.y.toString();if(uvsHash[hash]!==undefined){return uvsHash[hash];}uvsHash[hash]=uvs.length/2;uvs.push(uv.x,uv.y);return uvsHash[hash];}data.data={};data.data.vertices=vertices;data.data.normals=normals;if(colors.length>0)data.data.colors=colors;if(uvs.length>0)data.data.uvs=[uvs];data.data.faces=faces;return data;},clone:function clone(){return new Geometry().copy(this);},copy:function copy(source){this.vertices=[];this.colors=[];this.faces=[];this.faceVertexUvs=[[]];this.morphTargets=[];this.morphNormals=[];this.skinWeights=[];this.skinIndices=[];this.lineDistances=[];this.boundingBox=null;this.boundingSphere=null;this.name=source.name;var vertices=source.vertices;for(var _i173=0,il=vertices.length;_i173<il;_i173++){this.vertices.push(vertices[_i173].clone());}\nvar colors=source.colors;for(var _i174=0,_il18=colors.length;_i174<_il18;_i174++){this.colors.push(colors[_i174].clone());}\nvar faces=source.faces;for(var _i175=0,_il19=faces.length;_i175<_il19;_i175++){this.faces.push(faces[_i175].clone());}\nfor(var _i176=0,_il20=source.faceVertexUvs.length;_i176<_il20;_i176++){var faceVertexUvs=source.faceVertexUvs[_i176];if(this.faceVertexUvs[_i176]===undefined){this.faceVertexUvs[_i176]=[];}for(var j=0,jl=faceVertexUvs.length;j<jl;j++){var _uvs=faceVertexUvs[j],uvsCopy=[];for(var k=0,kl=_uvs.length;k<kl;k++){var uv=_uvs[k];uvsCopy.push(uv.clone());}this.faceVertexUvs[_i176].push(uvsCopy);}}\nvar morphTargets=source.morphTargets;for(var _i177=0,_il21=morphTargets.length;_i177<_il21;_i177++){var morphTarget={};morphTarget.name=morphTargets[_i177].name;if(morphTargets[_i177].vertices!==undefined){morphTarget.vertices=[];for(var _j8=0,_jl4=morphTargets[_i177].vertices.length;_j8<_jl4;_j8++){morphTarget.vertices.push(morphTargets[_i177].vertices[_j8].clone());}}\nif(morphTargets[_i177].normals!==undefined){morphTarget.normals=[];for(var _j9=0,_jl5=morphTargets[_i177].normals.length;_j9<_jl5;_j9++){morphTarget.normals.push(morphTargets[_i177].normals[_j9].clone());}}this.morphTargets.push(morphTarget);}\nvar morphNormals=source.morphNormals;for(var _i178=0,_il22=morphNormals.length;_i178<_il22;_i178++){var morphNormal={};if(morphNormals[_i178].vertexNormals!==undefined){morphNormal.vertexNormals=[];for(var _j10=0,_jl6=morphNormals[_i178].vertexNormals.length;_j10<_jl6;_j10++){var srcVertexNormal=morphNormals[_i178].vertexNormals[_j10];var destVertexNormal={};destVertexNormal.a=srcVertexNormal.a.clone();destVertexNormal.b=srcVertexNormal.b.clone();destVertexNormal.c=srcVertexNormal.c.clone();morphNormal.vertexNormals.push(destVertexNormal);}}\nif(morphNormals[_i178].faceNormals!==undefined){morphNormal.faceNormals=[];for(var _j11=0,_jl7=morphNormals[_i178].faceNormals.length;_j11<_jl7;_j11++){morphNormal.faceNormals.push(morphNormals[_i178].faceNormals[_j11].clone());}}this.morphNormals.push(morphNormal);}\nvar skinWeights=source.skinWeights;for(var _i179=0,_il23=skinWeights.length;_i179<_il23;_i179++){this.skinWeights.push(skinWeights[_i179].clone());}\nvar skinIndices=source.skinIndices;for(var _i180=0,_il24=skinIndices.length;_i180<_il24;_i180++){this.skinIndices.push(skinIndices[_i180].clone());}\nvar lineDistances=source.lineDistances;for(var _i181=0,_il25=lineDistances.length;_i181<_il25;_i181++){this.lineDistances.push(lineDistances[_i181]);}\nvar boundingBox=source.boundingBox;if(boundingBox!==null){this.boundingBox=boundingBox.clone();}\nvar boundingSphere=source.boundingSphere;if(boundingSphere!==null){this.boundingSphere=boundingSphere.clone();}\nthis.elementsNeedUpdate=source.elementsNeedUpdate;this.verticesNeedUpdate=source.verticesNeedUpdate;this.uvsNeedUpdate=source.uvsNeedUpdate;this.normalsNeedUpdate=source.normalsNeedUpdate;this.colorsNeedUpdate=source.colorsNeedUpdate;this.lineDistancesNeedUpdate=source.lineDistancesNeedUpdate;this.groupsNeedUpdate=source.groupsNeedUpdate;return this;},dispose:function dispose(){this.dispatchEvent({type:'dispose'});}});var _v0$2=new Vector3();var _v1$5=new Vector3();var _normal$1=new Vector3();var _triangle=new Triangle();var Earcut={triangulate:function triangulate(data,holeIndices,dim){dim=dim||2;var hasHoles=holeIndices&&holeIndices.length;var outerLen=hasHoles?holeIndices[0]*dim:data.length;var outerNode=linkedList(data,0,outerLen,dim,true);var triangles=[];if(!outerNode||outerNode.next===outerNode.prev)return triangles;var minX,minY,maxX,maxY,x,y,invSize;if(hasHoles)outerNode=eliminateHoles(data,holeIndices,outerNode,dim);if(data.length>80*dim){minX=maxX=data[0];minY=maxY=data[1];for(var _i182=dim;_i182<outerLen;_i182+=dim){x=data[_i182];y=data[_i182+1];if(x<minX)minX=x;if(y<minY)minY=y;if(x>maxX)maxX=x;if(y>maxY)maxY=y;}\ninvSize=Math.max(maxX-minX,maxY-minY);invSize=invSize!==0?1/invSize:0;}earcutLinked(outerNode,triangles,dim,minX,minY,invSize);return triangles;}};function linkedList(data,start,end,dim,clockwise){var i,last;if(clockwise===signedArea(data,start,end,dim)>0){for(i=start;i<end;i+=dim){last=insertNode(i,data[i],data[i+1],last);}}else{for(i=end-dim;i>=start;i-=dim){last=insertNode(i,data[i],data[i+1],last);}}if(last&&equals(last,last.next)){removeNode(last);last=last.next;}return last;}\nfunction filterPoints(start,end){if(!start)return start;if(!end)end=start;var p=start,again;do{again=false;if(!p.steiner&&(equals(p,p.next)||area(p.prev,p,p.next)===0)){removeNode(p);p=end=p.prev;if(p===p.next)break;again=true;}else{p=p.next;}}while(again||p!==end);return end;}\nfunction earcutLinked(ear,triangles,dim,minX,minY,invSize,pass){if(!ear)return;if(!pass&&invSize)indexCurve(ear,minX,minY,invSize);var stop=ear,prev,next;while(ear.prev!==ear.next){prev=ear.prev;next=ear.next;if(invSize?isEarHashed(ear,minX,minY,invSize):isEar(ear)){triangles.push(prev.i/dim);triangles.push(ear.i/dim);triangles.push(next.i/dim);removeNode(ear);ear=next.next;stop=next.next;continue;}ear=next;if(ear===stop){if(!pass){earcutLinked(filterPoints(ear),triangles,dim,minX,minY,invSize,1);}else if(pass===1){ear=cureLocalIntersections(filterPoints(ear),triangles,dim);earcutLinked(ear,triangles,dim,minX,minY,invSize,2);}else if(pass===2){splitEarcut(ear,triangles,dim,minX,minY,invSize);}break;}}}\nfunction isEar(ear){var a=ear.prev,b=ear,c=ear.next;if(area(a,b,c)>=0)return false;var p=ear.next.next;while(p!==ear.prev){if(pointInTriangle(a.x,a.y,b.x,b.y,c.x,c.y,p.x,p.y)&&area(p.prev,p,p.next)>=0)return false;p=p.next;}return true;}function isEarHashed(ear,minX,minY,invSize){var a=ear.prev,b=ear,c=ear.next;if(area(a,b,c)>=0)return false;var minTX=a.x<b.x?a.x<c.x?a.x:c.x:b.x<c.x?b.x:c.x,minTY=a.y<b.y?a.y<c.y?a.y:c.y:b.y<c.y?b.y:c.y,maxTX=a.x>b.x?a.x>c.x?a.x:c.x:b.x>c.x?b.x:c.x,maxTY=a.y>b.y?a.y>c.y?a.y:c.y:b.y>c.y?b.y:c.y;var minZ=zOrder(minTX,minTY,minX,minY,invSize),maxZ=zOrder(maxTX,maxTY,minX,minY,invSize);var p=ear.prevZ,n=ear.nextZ;while(p&&p.z>=minZ&&n&&n.z<=maxZ){if(p!==ear.prev&&p!==ear.next&&pointInTriangle(a.x,a.y,b.x,b.y,c.x,c.y,p.x,p.y)&&area(p.prev,p,p.next)>=0)return false;p=p.prevZ;if(n!==ear.prev&&n!==ear.next&&pointInTriangle(a.x,a.y,b.x,b.y,c.x,c.y,n.x,n.y)&&area(n.prev,n,n.next)>=0)return false;n=n.nextZ;}\nwhile(p&&p.z>=minZ){if(p!==ear.prev&&p!==ear.next&&pointInTriangle(a.x,a.y,b.x,b.y,c.x,c.y,p.x,p.y)&&area(p.prev,p,p.next)>=0)return false;p=p.prevZ;}\nwhile(n&&n.z<=maxZ){if(n!==ear.prev&&n!==ear.next&&pointInTriangle(a.x,a.y,b.x,b.y,c.x,c.y,n.x,n.y)&&area(n.prev,n,n.next)>=0)return false;n=n.nextZ;}return true;}\nfunction cureLocalIntersections(start,triangles,dim){var p=start;do{var a=p.prev,b=p.next.next;if(!equals(a,b)&&intersects(a,p,p.next,b)&&locallyInside(a,b)&&locallyInside(b,a)){triangles.push(a.i/dim);triangles.push(p.i/dim);triangles.push(b.i/dim);removeNode(p);removeNode(p.next);p=start=b;}p=p.next;}while(p!==start);return filterPoints(p);}\nfunction splitEarcut(start,triangles,dim,minX,minY,invSize){var a=start;do{var b=a.next.next;while(b!==a.prev){if(a.i!==b.i&&isValidDiagonal(a,b)){var c=splitPolygon(a,b);a=filterPoints(a,a.next);c=filterPoints(c,c.next);earcutLinked(a,triangles,dim,minX,minY,invSize);earcutLinked(c,triangles,dim,minX,minY,invSize);return;}b=b.next;}a=a.next;}while(a!==start);}\nfunction eliminateHoles(data,holeIndices,outerNode,dim){var queue=[];var i,len,start,end,list;for(i=0,len=holeIndices.length;i<len;i++){start=holeIndices[i]*dim;end=i<len-1?holeIndices[i+1]*dim:data.length;list=linkedList(data,start,end,dim,false);if(list===list.next)list.steiner=true;queue.push(getLeftmost(list));}queue.sort(compareX);for(i=0;i<queue.length;i++){eliminateHole(queue[i],outerNode);outerNode=filterPoints(outerNode,outerNode.next);}return outerNode;}function compareX(a,b){return a.x-b.x;}\nfunction eliminateHole(hole,outerNode){outerNode=findHoleBridge(hole,outerNode);if(outerNode){var b=splitPolygon(outerNode,hole);filterPoints(outerNode,outerNode.next);filterPoints(b,b.next);}}\nfunction findHoleBridge(hole,outerNode){var p=outerNode;var hx=hole.x;var hy=hole.y;var qx=-Infinity,m;do{if(hy<=p.y&&hy>=p.next.y&&p.next.y!==p.y){var x=p.x+(hy-p.y)*(p.next.x-p.x)/(p.next.y-p.y);if(x<=hx&&x>qx){qx=x;if(x===hx){if(hy===p.y)return p;if(hy===p.next.y)return p.next;}m=p.x<p.next.x?p:p.next;}}p=p.next;}while(p!==outerNode);if(!m)return null;if(hx===qx)return m;var stop=m,mx=m.x,my=m.y;var tanMin=Infinity,tan;p=m;do{if(hx>=p.x&&p.x>=mx&&hx!==p.x&&pointInTriangle(hy<my?hx:qx,hy,mx,my,hy<my?qx:hx,hy,p.x,p.y)){tan=Math.abs(hy-p.y)/(hx-p.x);if(locallyInside(p,hole)&&(tan<tanMin||tan===tanMin&&(p.x>m.x||p.x===m.x&&sectorContainsSector(m,p)))){m=p;tanMin=tan;}}p=p.next;}while(p!==stop);return m;}\nfunction sectorContainsSector(m,p){return area(m.prev,m,p.prev)<0&&area(p.next,m,m.next)<0;}\nfunction indexCurve(start,minX,minY,invSize){var p=start;do{if(p.z===null)p.z=zOrder(p.x,p.y,minX,minY,invSize);p.prevZ=p.prev;p.nextZ=p.next;p=p.next;}while(p!==start);p.prevZ.nextZ=null;p.prevZ=null;sortLinked(p);}\nfunction sortLinked(list){var i,p,q,e,tail,numMerges,pSize,qSize,inSize=1;do{p=list;list=null;tail=null;numMerges=0;while(p){numMerges++;q=p;pSize=0;for(i=0;i<inSize;i++){pSize++;q=q.nextZ;if(!q)break;}qSize=inSize;while(pSize>0||qSize>0&&q){if(pSize!==0&&(qSize===0||!q||p.z<=q.z)){e=p;p=p.nextZ;pSize--;}else{e=q;q=q.nextZ;qSize--;}if(tail)tail.nextZ=e;else list=e;e.prevZ=tail;tail=e;}p=q;}tail.nextZ=null;inSize*=2;}while(numMerges>1);return list;}\nfunction zOrder(x,y,minX,minY,invSize){x=32767*(x-minX)*invSize;y=32767*(y-minY)*invSize;x=(x|x<<8)&0x00FF00FF;x=(x|x<<4)&0x0F0F0F0F;x=(x|x<<2)&0x33333333;x=(x|x<<1)&0x55555555;y=(y|y<<8)&0x00FF00FF;y=(y|y<<4)&0x0F0F0F0F;y=(y|y<<2)&0x33333333;y=(y|y<<1)&0x55555555;return x|y<<1;}\nfunction getLeftmost(start){var p=start,leftmost=start;do{if(p.x<leftmost.x||p.x===leftmost.x&&p.y<leftmost.y)leftmost=p;p=p.next;}while(p!==start);return leftmost;}\nfunction pointInTriangle(ax,ay,bx,by,cx,cy,px,py){return(cx-px)*(ay-py)-(ax-px)*(cy-py)>=0&&(ax-px)*(by-py)-(bx-px)*(ay-py)>=0&&(bx-px)*(cy-py)-(cx-px)*(by-py)>=0;}\nfunction isValidDiagonal(a,b){return a.next.i!==b.i&&a.prev.i!==b.i&&!intersectsPolygon(a,b)&&(locallyInside(a,b)&&locallyInside(b,a)&&middleInside(a,b)&&(area(a.prev,a,b.prev)||area(a,b.prev,b))||equals(a,b)&&area(a.prev,a,a.next)>0&&area(b.prev,b,b.next)>0);}\nfunction area(p,q,r){return(q.y-p.y)*(r.x-q.x)-(q.x-p.x)*(r.y-q.y);}\nfunction equals(p1,p2){return p1.x===p2.x&&p1.y===p2.y;}\nfunction intersects(p1,q1,p2,q2){var o1=sign(area(p1,q1,p2));var o2=sign(area(p1,q1,q2));var o3=sign(area(p2,q2,p1));var o4=sign(area(p2,q2,q1));if(o1!==o2&&o3!==o4)return true;if(o1===0&&onSegment(p1,p2,q1))return true;if(o2===0&&onSegment(p1,q2,q1))return true;if(o3===0&&onSegment(p2,p1,q2))return true;if(o4===0&&onSegment(p2,q1,q2))return true;return false;}\nfunction onSegment(p,q,r){return q.x<=Math.max(p.x,r.x)&&q.x>=Math.min(p.x,r.x)&&q.y<=Math.max(p.y,r.y)&&q.y>=Math.min(p.y,r.y);}function sign(num){return num>0?1:num<0?-1:0;}\nfunction intersectsPolygon(a,b){var p=a;do{if(p.i!==a.i&&p.next.i!==a.i&&p.i!==b.i&&p.next.i!==b.i&&intersects(p,p.next,a,b))return true;p=p.next;}while(p!==a);return false;}\nfunction locallyInside(a,b){return area(a.prev,a,a.next)<0?area(a,b,a.next)>=0&&area(a,a.prev,b)>=0:area(a,b,a.prev)<0||area(a,a.next,b)<0;}\nfunction middleInside(a,b){var p=a,inside=false;var px=(a.x+b.x)/2,py=(a.y+b.y)/2;do{if(p.y>py!==p.next.y>py&&p.next.y!==p.y&&px<(p.next.x-p.x)*(py-p.y)/(p.next.y-p.y)+p.x)inside=!inside;p=p.next;}while(p!==a);return inside;}\nfunction splitPolygon(a,b){var a2=new Node$1(a.i,a.x,a.y),b2=new Node$1(b.i,b.x,b.y),an=a.next,bp=b.prev;a.next=b;b.prev=a;a2.next=an;an.prev=a2;b2.next=a2;a2.prev=b2;bp.next=b2;b2.prev=bp;return b2;}\nfunction insertNode(i,x,y,last){var p=new Node$1(i,x,y);if(!last){p.prev=p;p.next=p;}else{p.next=last.next;p.prev=last;last.next.prev=p;last.next=p;}return p;}function removeNode(p){p.next.prev=p.prev;p.prev.next=p.next;if(p.prevZ)p.prevZ.nextZ=p.nextZ;if(p.nextZ)p.nextZ.prevZ=p.prevZ;}function Node$1(i,x,y){this.i=i;this.x=x;this.y=y;this.prev=null;this.next=null;this.z=null;this.prevZ=null;this.nextZ=null;this.steiner=false;}function signedArea(data,start,end,dim){var sum=0;for(var _i183=start,j=end-dim;_i183<end;_i183+=dim){sum+=(data[j]-data[_i183])*(data[_i183+1]+data[j+1]);j=_i183;}return sum;}var ShapeUtils={area:function area(contour){var n=contour.length;var a=0.0;for(var p=n-1,q=0;q<n;p=q++){a+=contour[p].x*contour[q].y-contour[q].x*contour[p].y;}return a*0.5;},isClockWise:function isClockWise(pts){return ShapeUtils.area(pts)<0;},triangulateShape:function triangulateShape(contour,holes){var vertices=[];var holeIndices=[];var faces=[];removeDupEndPts(contour);addContour(vertices,contour);var holeIndex=contour.length;holes.forEach(removeDupEndPts);for(var _i184=0;_i184<holes.length;_i184++){holeIndices.push(holeIndex);holeIndex+=holes[_i184].length;addContour(vertices,holes[_i184]);}\nvar triangles=Earcut.triangulate(vertices,holeIndices);for(var _i185=0;_i185<triangles.length;_i185+=3){faces.push(triangles.slice(_i185,_i185+3));}return faces;}};function removeDupEndPts(points){var l=points.length;if(l>2&&points[l-1].equals(points[0])){points.pop();}}function addContour(vertices,contour){for(var _i186=0;_i186<contour.length;_i186++){vertices.push(contour[_i186].x);vertices.push(contour[_i186].y);}}var ExtrudeBufferGeometry=function(_BufferGeometry3){_inherits(ExtrudeBufferGeometry,_BufferGeometry3);var _super5=_createSuper(ExtrudeBufferGeometry);function ExtrudeBufferGeometry(shapes,options){var _this12;_classCallCheck(this,ExtrudeBufferGeometry);_this12=_super5.call(this);_this12.type='ExtrudeBufferGeometry';_this12.parameters={shapes:shapes,options:options};shapes=Array.isArray(shapes)?shapes:[shapes];var scope=_assertThisInitialized(_this12);var verticesArray=[];var uvArray=[];for(var _i187=0,l=shapes.length;_i187<l;_i187++){var shape=shapes[_i187];addShape(shape);}\n_this12.setAttribute('position',new Float32BufferAttribute(verticesArray,3));_this12.setAttribute('uv',new Float32BufferAttribute(uvArray,2));_this12.computeVertexNormals();function addShape(shape){var placeholder=[];var curveSegments=options.curveSegments!==undefined?options.curveSegments:12;var steps=options.steps!==undefined?options.steps:1;var depth=options.depth!==undefined?options.depth:100;var bevelEnabled=options.bevelEnabled!==undefined?options.bevelEnabled:true;var bevelThickness=options.bevelThickness!==undefined?options.bevelThickness:6;var bevelSize=options.bevelSize!==undefined?options.bevelSize:bevelThickness-2;var bevelOffset=options.bevelOffset!==undefined?options.bevelOffset:0;var bevelSegments=options.bevelSegments!==undefined?options.bevelSegments:3;var extrudePath=options.extrudePath;var uvgen=options.UVGenerator!==undefined?options.UVGenerator:WorldUVGenerator;if(options.amount!==undefined){console.warn('THREE.ExtrudeBufferGeometry: amount has been renamed to depth.');depth=options.amount;}\nvar extrudePts,extrudeByPath=false;var splineTube,binormal,normal,position2;if(extrudePath){extrudePts=extrudePath.getSpacedPoints(steps);extrudeByPath=true;bevelEnabled=false;splineTube=extrudePath.computeFrenetFrames(steps,false);binormal=new Vector3();normal=new Vector3();position2=new Vector3();}\nif(!bevelEnabled){bevelSegments=0;bevelThickness=0;bevelSize=0;bevelOffset=0;}\nvar shapePoints=shape.extractPoints(curveSegments);var vertices=shapePoints.shape;var holes=shapePoints.holes;var reverse=!ShapeUtils.isClockWise(vertices);if(reverse){vertices=vertices.reverse();for(var h=0,hl=holes.length;h<hl;h++){var ahole=holes[h];if(ShapeUtils.isClockWise(ahole)){holes[h]=ahole.reverse();}}}var faces=ShapeUtils.triangulateShape(vertices,holes);var contour=vertices;for(var _h2=0,_hl=holes.length;_h2<_hl;_h2++){var _ahole=holes[_h2];vertices=vertices.concat(_ahole);}function scalePt2(pt,vec,size){if(!vec)console.error(\"THREE.ExtrudeGeometry: vec does not exist\");return vec.clone().multiplyScalar(size).add(pt);}var vlen=vertices.length,flen=faces.length;function getBevelVec(inPt,inPrev,inNext){var v_trans_x,v_trans_y,shrink_by;var v_prev_x=inPt.x-inPrev.x,v_prev_y=inPt.y-inPrev.y;var v_next_x=inNext.x-inPt.x,v_next_y=inNext.y-inPt.y;var v_prev_lensq=v_prev_x*v_prev_x+v_prev_y*v_prev_y;var collinear0=v_prev_x*v_next_y-v_prev_y*v_next_x;if(Math.abs(collinear0)>Number.EPSILON){var v_prev_len=Math.sqrt(v_prev_lensq);var v_next_len=Math.sqrt(v_next_x*v_next_x+v_next_y*v_next_y);var ptPrevShift_x=inPrev.x-v_prev_y/v_prev_len;var ptPrevShift_y=inPrev.y+v_prev_x/v_prev_len;var ptNextShift_x=inNext.x-v_next_y/v_next_len;var ptNextShift_y=inNext.y+v_next_x/v_next_len;var sf=((ptNextShift_x-ptPrevShift_x)*v_next_y-(ptNextShift_y-ptPrevShift_y)*v_next_x)/(v_prev_x*v_next_y-v_prev_y*v_next_x);v_trans_x=ptPrevShift_x+v_prev_x*sf-inPt.x;v_trans_y=ptPrevShift_y+v_prev_y*sf-inPt.y;var v_trans_lensq=v_trans_x*v_trans_x+v_trans_y*v_trans_y;if(v_trans_lensq<=2){return new Vector2(v_trans_x,v_trans_y);}else{shrink_by=Math.sqrt(v_trans_lensq/2);}}else{var direction_eq=false;if(v_prev_x>Number.EPSILON){if(v_next_x>Number.EPSILON){direction_eq=true;}}else{if(v_prev_x<-Number.EPSILON){if(v_next_x<-Number.EPSILON){direction_eq=true;}}else{if(Math.sign(v_prev_y)===Math.sign(v_next_y)){direction_eq=true;}}}if(direction_eq){v_trans_x=-v_prev_y;v_trans_y=v_prev_x;shrink_by=Math.sqrt(v_prev_lensq);}else{v_trans_x=v_prev_x;v_trans_y=v_prev_y;shrink_by=Math.sqrt(v_prev_lensq/2);}}return new Vector2(v_trans_x/shrink_by,v_trans_y/shrink_by);}var contourMovements=[];for(var _i188=0,il=contour.length,j=il-1,k=_i188+1;_i188<il;_i188++,j++,k++){if(j===il)j=0;if(k===il)k=0;contourMovements[_i188]=getBevelVec(contour[_i188],contour[j],contour[k]);}var holesMovements=[];var oneHoleMovements,verticesMovements=contourMovements.concat();for(var _h3=0,_hl2=holes.length;_h3<_hl2;_h3++){var _ahole2=holes[_h3];oneHoleMovements=[];for(var _i189=0,_il26=_ahole2.length,_j12=_il26-1,_k2=_i189+1;_i189<_il26;_i189++,_j12++,_k2++){if(_j12===_il26)_j12=0;if(_k2===_il26)_k2=0;oneHoleMovements[_i189]=getBevelVec(_ahole2[_i189],_ahole2[_j12],_ahole2[_k2]);}holesMovements.push(oneHoleMovements);verticesMovements=verticesMovements.concat(oneHoleMovements);}\nfor(var b=0;b<bevelSegments;b++){var t=b/bevelSegments;var z=bevelThickness*Math.cos(t*Math.PI/2);var _bs=bevelSize*Math.sin(t*Math.PI/2)+bevelOffset;for(var _i190=0,_il27=contour.length;_i190<_il27;_i190++){var vert=scalePt2(contour[_i190],contourMovements[_i190],_bs);v(vert.x,vert.y,-z);}\nfor(var _h4=0,_hl3=holes.length;_h4<_hl3;_h4++){var _ahole3=holes[_h4];oneHoleMovements=holesMovements[_h4];for(var _i191=0,_il28=_ahole3.length;_i191<_il28;_i191++){var _vert=scalePt2(_ahole3[_i191],oneHoleMovements[_i191],_bs);v(_vert.x,_vert.y,-z);}}}var bs=bevelSize+bevelOffset;for(var _i192=0;_i192<vlen;_i192++){var _vert2=bevelEnabled?scalePt2(vertices[_i192],verticesMovements[_i192],bs):vertices[_i192];if(!extrudeByPath){v(_vert2.x,_vert2.y,0);}else{normal.copy(splineTube.normals[0]).multiplyScalar(_vert2.x);binormal.copy(splineTube.binormals[0]).multiplyScalar(_vert2.y);position2.copy(extrudePts[0]).add(normal).add(binormal);v(position2.x,position2.y,position2.z);}}\nfor(var s=1;s<=steps;s++){for(var _i193=0;_i193<vlen;_i193++){var _vert3=bevelEnabled?scalePt2(vertices[_i193],verticesMovements[_i193],bs):vertices[_i193];if(!extrudeByPath){v(_vert3.x,_vert3.y,depth/steps*s);}else{normal.copy(splineTube.normals[s]).multiplyScalar(_vert3.x);binormal.copy(splineTube.binormals[s]).multiplyScalar(_vert3.y);position2.copy(extrudePts[s]).add(normal).add(binormal);v(position2.x,position2.y,position2.z);}}}\nfor(var _b6=bevelSegments-1;_b6>=0;_b6--){var _t2=_b6/bevelSegments;var _z2=bevelThickness*Math.cos(_t2*Math.PI/2);var _bs2=bevelSize*Math.sin(_t2*Math.PI/2)+bevelOffset;for(var _i194=0,_il29=contour.length;_i194<_il29;_i194++){var _vert4=scalePt2(contour[_i194],contourMovements[_i194],_bs2);v(_vert4.x,_vert4.y,depth+_z2);}\nfor(var _h5=0,_hl4=holes.length;_h5<_hl4;_h5++){var _ahole4=holes[_h5];oneHoleMovements=holesMovements[_h5];for(var _i195=0,_il30=_ahole4.length;_i195<_il30;_i195++){var _vert5=scalePt2(_ahole4[_i195],oneHoleMovements[_i195],_bs2);if(!extrudeByPath){v(_vert5.x,_vert5.y,depth+_z2);}else{v(_vert5.x,_vert5.y+extrudePts[steps-1].y,extrudePts[steps-1].x+_z2);}}}}\nbuildLidFaces();buildSideFaces();function buildLidFaces(){var start=verticesArray.length/3;if(bevelEnabled){var layer=0;var offset=vlen*layer;for(var _i196=0;_i196<flen;_i196++){var face=faces[_i196];f3(face[2]+offset,face[1]+offset,face[0]+offset);}layer=steps+bevelSegments*2;offset=vlen*layer;for(var _i197=0;_i197<flen;_i197++){var _face5=faces[_i197];f3(_face5[0]+offset,_face5[1]+offset,_face5[2]+offset);}}else{for(var _i198=0;_i198<flen;_i198++){var _face6=faces[_i198];f3(_face6[2],_face6[1],_face6[0]);}\nfor(var _i199=0;_i199<flen;_i199++){var _face7=faces[_i199];f3(_face7[0]+vlen*steps,_face7[1]+vlen*steps,_face7[2]+vlen*steps);}}scope.addGroup(start,verticesArray.length/3-start,0);}\nfunction buildSideFaces(){var start=verticesArray.length/3;var layeroffset=0;sidewalls(contour,layeroffset);layeroffset+=contour.length;for(var _h6=0,_hl5=holes.length;_h6<_hl5;_h6++){var _ahole5=holes[_h6];sidewalls(_ahole5,layeroffset);layeroffset+=_ahole5.length;}scope.addGroup(start,verticesArray.length/3-start,1);}function sidewalls(contour,layeroffset){var i=contour.length;while(--i>=0){var _j13=i;var _k3=i-1;if(_k3<0)_k3=contour.length-1;for(var _s5=0,sl=steps+bevelSegments*2;_s5<sl;_s5++){var slen1=vlen*_s5;var slen2=vlen*(_s5+1);var a=layeroffset+_j13+slen1,_b7=layeroffset+_k3+slen1,c=layeroffset+_k3+slen2,d=layeroffset+_j13+slen2;f4(a,_b7,c,d);}}}function v(x,y,z){placeholder.push(x);placeholder.push(y);placeholder.push(z);}function f3(a,b,c){addVertex(a);addVertex(b);addVertex(c);var nextIndex=verticesArray.length/3;var uvs=uvgen.generateTopUV(scope,verticesArray,nextIndex-3,nextIndex-2,nextIndex-1);addUV(uvs[0]);addUV(uvs[1]);addUV(uvs[2]);}function f4(a,b,c,d){addVertex(a);addVertex(b);addVertex(d);addVertex(b);addVertex(c);addVertex(d);var nextIndex=verticesArray.length/3;var uvs=uvgen.generateSideWallUV(scope,verticesArray,nextIndex-6,nextIndex-3,nextIndex-2,nextIndex-1);addUV(uvs[0]);addUV(uvs[1]);addUV(uvs[3]);addUV(uvs[1]);addUV(uvs[2]);addUV(uvs[3]);}function addVertex(index){verticesArray.push(placeholder[index*3+0]);verticesArray.push(placeholder[index*3+1]);verticesArray.push(placeholder[index*3+2]);}function addUV(vector2){uvArray.push(vector2.x);uvArray.push(vector2.y);}}return _this12;}_createClass(ExtrudeBufferGeometry,[{key:\"toJSON\",value:function toJSON(){var data=BufferGeometry.prototype.toJSON.call(this);var shapes=this.parameters.shapes;var options=this.parameters.options;return _toJSON(shapes,options,data);}}]);return ExtrudeBufferGeometry;}(BufferGeometry);var WorldUVGenerator={generateTopUV:function generateTopUV(geometry,vertices,indexA,indexB,indexC){var a_x=vertices[indexA*3];var a_y=vertices[indexA*3+1];var b_x=vertices[indexB*3];var b_y=vertices[indexB*3+1];var c_x=vertices[indexC*3];var c_y=vertices[indexC*3+1];return[new Vector2(a_x,a_y),new Vector2(b_x,b_y),new Vector2(c_x,c_y)];},generateSideWallUV:function generateSideWallUV(geometry,vertices,indexA,indexB,indexC,indexD){var a_x=vertices[indexA*3];var a_y=vertices[indexA*3+1];var a_z=vertices[indexA*3+2];var b_x=vertices[indexB*3];var b_y=vertices[indexB*3+1];var b_z=vertices[indexB*3+2];var c_x=vertices[indexC*3];var c_y=vertices[indexC*3+1];var c_z=vertices[indexC*3+2];var d_x=vertices[indexD*3];var d_y=vertices[indexD*3+1];var d_z=vertices[indexD*3+2];if(Math.abs(a_y-b_y)<0.01){return[new Vector2(a_x,1-a_z),new Vector2(b_x,1-b_z),new Vector2(c_x,1-c_z),new Vector2(d_x,1-d_z)];}else{return[new Vector2(a_y,1-a_z),new Vector2(b_y,1-b_z),new Vector2(c_y,1-c_z),new Vector2(d_y,1-d_z)];}}};function _toJSON(shapes,options,data){data.shapes=[];if(Array.isArray(shapes)){for(var _i200=0,l=shapes.length;_i200<l;_i200++){var shape=shapes[_i200];data.shapes.push(shape.uuid);}}else{data.shapes.push(shapes.uuid);}if(options.extrudePath!==undefined)data.options.extrudePath=options.extrudePath.toJSON();return data;}var ExtrudeGeometry=function(_Geometry){_inherits(ExtrudeGeometry,_Geometry);var _super6=_createSuper(ExtrudeGeometry);function ExtrudeGeometry(shapes,options){var _this13;_classCallCheck(this,ExtrudeGeometry);_this13=_super6.call(this);_this13.type='ExtrudeGeometry';_this13.parameters={shapes:shapes,options:options};_this13.fromBufferGeometry(new ExtrudeBufferGeometry(shapes,options));_this13.mergeVertices();return _this13;}_createClass(ExtrudeGeometry,[{key:\"toJSON\",value:function toJSON(){var data=_get(_getPrototypeOf(ExtrudeGeometry.prototype),\"toJSON\",this).call(this);var shapes=this.parameters.shapes;var options=this.parameters.options;return toJSON$1(shapes,options,data);}}]);return ExtrudeGeometry;}(Geometry);function toJSON$1(shapes,options,data){data.shapes=[];if(Array.isArray(shapes)){for(var _i201=0,l=shapes.length;_i201<l;_i201++){var shape=shapes[_i201];data.shapes.push(shape.uuid);}}else{data.shapes.push(shapes.uuid);}if(options.extrudePath!==undefined)data.options.extrudePath=options.extrudePath.toJSON();return data;}function ParametricBufferGeometry(func,slices,stacks){BufferGeometry.call(this);this.type='ParametricBufferGeometry';this.parameters={func:func,slices:slices,stacks:stacks};var indices=[];var vertices=[];var normals=[];var uvs=[];var EPS=0.00001;var normal=new Vector3();var p0=new Vector3(),p1=new Vector3();var pu=new Vector3(),pv=new Vector3();if(func.length<3){console.error('THREE.ParametricGeometry: Function must now modify a Vector3 as third parameter.');}\nvar sliceCount=slices+1;for(var _i202=0;_i202<=stacks;_i202++){var v=_i202/stacks;for(var j=0;j<=slices;j++){var u=j/slices;func(u,v,p0);vertices.push(p0.x,p0.y,p0.z);if(u-EPS>=0){func(u-EPS,v,p1);pu.subVectors(p0,p1);}else{func(u+EPS,v,p1);pu.subVectors(p1,p0);}if(v-EPS>=0){func(u,v-EPS,p1);pv.subVectors(p0,p1);}else{func(u,v+EPS,p1);pv.subVectors(p1,p0);}\nnormal.crossVectors(pu,pv).normalize();normals.push(normal.x,normal.y,normal.z);uvs.push(u,v);}}\nfor(var _i203=0;_i203<stacks;_i203++){for(var _j14=0;_j14<slices;_j14++){var a=_i203*sliceCount+_j14;var b=_i203*sliceCount+_j14+1;var c=(_i203+1)*sliceCount+_j14+1;var d=(_i203+1)*sliceCount+_j14;indices.push(a,b,d);indices.push(b,c,d);}}\nthis.setIndex(indices);this.setAttribute('position',new Float32BufferAttribute(vertices,3));this.setAttribute('normal',new Float32BufferAttribute(normals,3));this.setAttribute('uv',new Float32BufferAttribute(uvs,2));}ParametricBufferGeometry.prototype=Object.create(BufferGeometry.prototype);ParametricBufferGeometry.prototype.constructor=ParametricBufferGeometry;function ParametricGeometry(func,slices,stacks){Geometry.call(this);this.type='ParametricGeometry';this.parameters={func:func,slices:slices,stacks:stacks};this.fromBufferGeometry(new ParametricBufferGeometry(func,slices,stacks));this.mergeVertices();}ParametricGeometry.prototype=Object.create(Geometry.prototype);ParametricGeometry.prototype.constructor=ParametricGeometry;var ShapeBufferGeometry=function(_BufferGeometry4){_inherits(ShapeBufferGeometry,_BufferGeometry4);var _super7=_createSuper(ShapeBufferGeometry);function ShapeBufferGeometry(shapes,curveSegments){var _this14;_classCallCheck(this,ShapeBufferGeometry);_this14=_super7.call(this);_this14.type='ShapeBufferGeometry';_this14.parameters={shapes:shapes,curveSegments:curveSegments};curveSegments=curveSegments||12;var indices=[];var vertices=[];var normals=[];var uvs=[];var groupStart=0;var groupCount=0;if(Array.isArray(shapes)===false){addShape(shapes);}else{for(var _i204=0;_i204<shapes.length;_i204++){addShape(shapes[_i204]);_this14.addGroup(groupStart,groupCount,_i204);groupStart+=groupCount;groupCount=0;}}\n_this14.setIndex(indices);_this14.setAttribute('position',new Float32BufferAttribute(vertices,3));_this14.setAttribute('normal',new Float32BufferAttribute(normals,3));_this14.setAttribute('uv',new Float32BufferAttribute(uvs,2));function addShape(shape){var indexOffset=vertices.length/3;var points=shape.extractPoints(curveSegments);var shapeVertices=points.shape;var shapeHoles=points.holes;if(ShapeUtils.isClockWise(shapeVertices)===false){shapeVertices=shapeVertices.reverse();}for(var _i205=0,l=shapeHoles.length;_i205<l;_i205++){var shapeHole=shapeHoles[_i205];if(ShapeUtils.isClockWise(shapeHole)===true){shapeHoles[_i205]=shapeHole.reverse();}}var faces=ShapeUtils.triangulateShape(shapeVertices,shapeHoles);for(var _i206=0,_l11=shapeHoles.length;_i206<_l11;_i206++){var _shapeHole=shapeHoles[_i206];shapeVertices=shapeVertices.concat(_shapeHole);}\nfor(var _i207=0,_l12=shapeVertices.length;_i207<_l12;_i207++){var vertex=shapeVertices[_i207];vertices.push(vertex.x,vertex.y,0);normals.push(0,0,1);uvs.push(vertex.x,vertex.y);}\nfor(var _i208=0,_l13=faces.length;_i208<_l13;_i208++){var face=faces[_i208];var a=face[0]+indexOffset;var b=face[1]+indexOffset;var c=face[2]+indexOffset;indices.push(a,b,c);groupCount+=3;}}return _this14;}_createClass(ShapeBufferGeometry,[{key:\"toJSON\",value:function toJSON(){var data=BufferGeometry.prototype.toJSON.call(this);var shapes=this.parameters.shapes;return toJSON$2(shapes,data);}}]);return ShapeBufferGeometry;}(BufferGeometry);function toJSON$2(shapes,data){data.shapes=[];if(Array.isArray(shapes)){for(var _i209=0,l=shapes.length;_i209<l;_i209++){var shape=shapes[_i209];data.shapes.push(shape.uuid);}}else{data.shapes.push(shapes.uuid);}return data;}var ShapeGeometry=function(_Geometry2){_inherits(ShapeGeometry,_Geometry2);var _super8=_createSuper(ShapeGeometry);function ShapeGeometry(shapes,curveSegments){var _this15;_classCallCheck(this,ShapeGeometry);_this15=_super8.call(this);_this15.type='ShapeGeometry';if(_typeof(curveSegments)==='object'){console.warn('THREE.ShapeGeometry: Options parameter has been removed.');curveSegments=curveSegments.curveSegments;}_this15.parameters={shapes:shapes,curveSegments:curveSegments};_this15.fromBufferGeometry(new ShapeBufferGeometry(shapes,curveSegments));_this15.mergeVertices();return _this15;}_createClass(ShapeGeometry,[{key:\"toJSON\",value:function toJSON(){var data=Geometry.prototype.toJSON.call(this);var shapes=this.parameters.shapes;return toJSON$3(shapes,data);}}]);return ShapeGeometry;}(Geometry);function toJSON$3(shapes,data){data.shapes=[];if(Array.isArray(shapes)){for(var _i210=0,l=shapes.length;_i210<l;_i210++){var shape=shapes[_i210];data.shapes.push(shape.uuid);}}else{data.shapes.push(shapes.uuid);}return data;}function ShadowMaterial(parameters){Material.call(this);this.type='ShadowMaterial';this.color=new Color(0x000000);this.transparent=true;this.setValues(parameters);}ShadowMaterial.prototype=Object.create(Material.prototype);ShadowMaterial.prototype.constructor=ShadowMaterial;ShadowMaterial.prototype.isShadowMaterial=true;ShadowMaterial.prototype.copy=function(source){Material.prototype.copy.call(this,source);this.color.copy(source.color);return this;};function RawShaderMaterial(parameters){ShaderMaterial.call(this,parameters);this.type='RawShaderMaterial';}RawShaderMaterial.prototype=Object.create(ShaderMaterial.prototype);RawShaderMaterial.prototype.constructor=RawShaderMaterial;RawShaderMaterial.prototype.isRawShaderMaterial=true;function MeshStandardMaterial(parameters){Material.call(this);this.defines={'STANDARD':''};this.type='MeshStandardMaterial';this.color=new Color(0xffffff);this.roughness=1.0;this.metalness=0.0;this.map=null;this.lightMap=null;this.lightMapIntensity=1.0;this.aoMap=null;this.aoMapIntensity=1.0;this.emissive=new Color(0x000000);this.emissiveIntensity=1.0;this.emissiveMap=null;this.bumpMap=null;this.bumpScale=1;this.normalMap=null;this.normalMapType=TangentSpaceNormalMap;this.normalScale=new Vector2(1,1);this.displacementMap=null;this.displacementScale=1;this.displacementBias=0;this.roughnessMap=null;this.metalnessMap=null;this.alphaMap=null;this.envMap=null;this.envMapIntensity=1.0;this.refractionRatio=0.98;this.wireframe=false;this.wireframeLinewidth=1;this.wireframeLinecap='round';this.wireframeLinejoin='round';this.skinning=false;this.morphTargets=false;this.morphNormals=false;this.vertexTangents=false;this.setValues(parameters);}MeshStandardMaterial.prototype=Object.create(Material.prototype);MeshStandardMaterial.prototype.constructor=MeshStandardMaterial;MeshStandardMaterial.prototype.isMeshStandardMaterial=true;MeshStandardMaterial.prototype.copy=function(source){Material.prototype.copy.call(this,source);this.defines={'STANDARD':''};this.color.copy(source.color);this.roughness=source.roughness;this.metalness=source.metalness;this.map=source.map;this.lightMap=source.lightMap;this.lightMapIntensity=source.lightMapIntensity;this.aoMap=source.aoMap;this.aoMapIntensity=source.aoMapIntensity;this.emissive.copy(source.emissive);this.emissiveMap=source.emissiveMap;this.emissiveIntensity=source.emissiveIntensity;this.bumpMap=source.bumpMap;this.bumpScale=source.bumpScale;this.normalMap=source.normalMap;this.normalMapType=source.normalMapType;this.normalScale.copy(source.normalScale);this.displacementMap=source.displacementMap;this.displacementScale=source.displacementScale;this.displacementBias=source.displacementBias;this.roughnessMap=source.roughnessMap;this.metalnessMap=source.metalnessMap;this.alphaMap=source.alphaMap;this.envMap=source.envMap;this.envMapIntensity=source.envMapIntensity;this.refractionRatio=source.refractionRatio;this.wireframe=source.wireframe;this.wireframeLinewidth=source.wireframeLinewidth;this.wireframeLinecap=source.wireframeLinecap;this.wireframeLinejoin=source.wireframeLinejoin;this.skinning=source.skinning;this.morphTargets=source.morphTargets;this.morphNormals=source.morphNormals;this.vertexTangents=source.vertexTangents;return this;};function MeshPhysicalMaterial(parameters){MeshStandardMaterial.call(this);this.defines={'STANDARD':'','PHYSICAL':''};this.type='MeshPhysicalMaterial';this.clearcoat=0.0;this.clearcoatMap=null;this.clearcoatRoughness=0.0;this.clearcoatRoughnessMap=null;this.clearcoatNormalScale=new Vector2(1,1);this.clearcoatNormalMap=null;this.reflectivity=0.5;Object.defineProperty(this,'ior',{get:function get(){return(1+0.4*this.reflectivity)/(1-0.4*this.reflectivity);},set:function set(ior){this.reflectivity=MathUtils.clamp(2.5*(ior-1)/(ior+1),0,1);}});this.sheen=null;this.transmission=0.0;this.transmissionMap=null;this.setValues(parameters);}MeshPhysicalMaterial.prototype=Object.create(MeshStandardMaterial.prototype);MeshPhysicalMaterial.prototype.constructor=MeshPhysicalMaterial;MeshPhysicalMaterial.prototype.isMeshPhysicalMaterial=true;MeshPhysicalMaterial.prototype.copy=function(source){MeshStandardMaterial.prototype.copy.call(this,source);this.defines={'STANDARD':'','PHYSICAL':''};this.clearcoat=source.clearcoat;this.clearcoatMap=source.clearcoatMap;this.clearcoatRoughness=source.clearcoatRoughness;this.clearcoatRoughnessMap=source.clearcoatRoughnessMap;this.clearcoatNormalMap=source.clearcoatNormalMap;this.clearcoatNormalScale.copy(source.clearcoatNormalScale);this.reflectivity=source.reflectivity;if(source.sheen){this.sheen=(this.sheen||new Color()).copy(source.sheen);}else{this.sheen=null;}this.transmission=source.transmission;this.transmissionMap=source.transmissionMap;return this;};function MeshPhongMaterial(parameters){Material.call(this);this.type='MeshPhongMaterial';this.color=new Color(0xffffff);this.specular=new Color(0x111111);this.shininess=30;this.map=null;this.lightMap=null;this.lightMapIntensity=1.0;this.aoMap=null;this.aoMapIntensity=1.0;this.emissive=new Color(0x000000);this.emissiveIntensity=1.0;this.emissiveMap=null;this.bumpMap=null;this.bumpScale=1;this.normalMap=null;this.normalMapType=TangentSpaceNormalMap;this.normalScale=new Vector2(1,1);this.displacementMap=null;this.displacementScale=1;this.displacementBias=0;this.specularMap=null;this.alphaMap=null;this.envMap=null;this.combine=MultiplyOperation;this.reflectivity=1;this.refractionRatio=0.98;this.wireframe=false;this.wireframeLinewidth=1;this.wireframeLinecap='round';this.wireframeLinejoin='round';this.skinning=false;this.morphTargets=false;this.morphNormals=false;this.setValues(parameters);}MeshPhongMaterial.prototype=Object.create(Material.prototype);MeshPhongMaterial.prototype.constructor=MeshPhongMaterial;MeshPhongMaterial.prototype.isMeshPhongMaterial=true;MeshPhongMaterial.prototype.copy=function(source){Material.prototype.copy.call(this,source);this.color.copy(source.color);this.specular.copy(source.specular);this.shininess=source.shininess;this.map=source.map;this.lightMap=source.lightMap;this.lightMapIntensity=source.lightMapIntensity;this.aoMap=source.aoMap;this.aoMapIntensity=source.aoMapIntensity;this.emissive.copy(source.emissive);this.emissiveMap=source.emissiveMap;this.emissiveIntensity=source.emissiveIntensity;this.bumpMap=source.bumpMap;this.bumpScale=source.bumpScale;this.normalMap=source.normalMap;this.normalMapType=source.normalMapType;this.normalScale.copy(source.normalScale);this.displacementMap=source.displacementMap;this.displacementScale=source.displacementScale;this.displacementBias=source.displacementBias;this.specularMap=source.specularMap;this.alphaMap=source.alphaMap;this.envMap=source.envMap;this.combine=source.combine;this.reflectivity=source.reflectivity;this.refractionRatio=source.refractionRatio;this.wireframe=source.wireframe;this.wireframeLinewidth=source.wireframeLinewidth;this.wireframeLinecap=source.wireframeLinecap;this.wireframeLinejoin=source.wireframeLinejoin;this.skinning=source.skinning;this.morphTargets=source.morphTargets;this.morphNormals=source.morphNormals;return this;};function MeshToonMaterial(parameters){Material.call(this);this.defines={'TOON':''};this.type='MeshToonMaterial';this.color=new Color(0xffffff);this.map=null;this.gradientMap=null;this.lightMap=null;this.lightMapIntensity=1.0;this.aoMap=null;this.aoMapIntensity=1.0;this.emissive=new Color(0x000000);this.emissiveIntensity=1.0;this.emissiveMap=null;this.bumpMap=null;this.bumpScale=1;this.normalMap=null;this.normalMapType=TangentSpaceNormalMap;this.normalScale=new Vector2(1,1);this.displacementMap=null;this.displacementScale=1;this.displacementBias=0;this.alphaMap=null;this.wireframe=false;this.wireframeLinewidth=1;this.wireframeLinecap='round';this.wireframeLinejoin='round';this.skinning=false;this.morphTargets=false;this.morphNormals=false;this.setValues(parameters);}MeshToonMaterial.prototype=Object.create(Material.prototype);MeshToonMaterial.prototype.constructor=MeshToonMaterial;MeshToonMaterial.prototype.isMeshToonMaterial=true;MeshToonMaterial.prototype.copy=function(source){Material.prototype.copy.call(this,source);this.color.copy(source.color);this.map=source.map;this.gradientMap=source.gradientMap;this.lightMap=source.lightMap;this.lightMapIntensity=source.lightMapIntensity;this.aoMap=source.aoMap;this.aoMapIntensity=source.aoMapIntensity;this.emissive.copy(source.emissive);this.emissiveMap=source.emissiveMap;this.emissiveIntensity=source.emissiveIntensity;this.bumpMap=source.bumpMap;this.bumpScale=source.bumpScale;this.normalMap=source.normalMap;this.normalMapType=source.normalMapType;this.normalScale.copy(source.normalScale);this.displacementMap=source.displacementMap;this.displacementScale=source.displacementScale;this.displacementBias=source.displacementBias;this.alphaMap=source.alphaMap;this.wireframe=source.wireframe;this.wireframeLinewidth=source.wireframeLinewidth;this.wireframeLinecap=source.wireframeLinecap;this.wireframeLinejoin=source.wireframeLinejoin;this.skinning=source.skinning;this.morphTargets=source.morphTargets;this.morphNormals=source.morphNormals;return this;};function MeshNormalMaterial(parameters){Material.call(this);this.type='MeshNormalMaterial';this.bumpMap=null;this.bumpScale=1;this.normalMap=null;this.normalMapType=TangentSpaceNormalMap;this.normalScale=new Vector2(1,1);this.displacementMap=null;this.displacementScale=1;this.displacementBias=0;this.wireframe=false;this.wireframeLinewidth=1;this.fog=false;this.skinning=false;this.morphTargets=false;this.morphNormals=false;this.setValues(parameters);}MeshNormalMaterial.prototype=Object.create(Material.prototype);MeshNormalMaterial.prototype.constructor=MeshNormalMaterial;MeshNormalMaterial.prototype.isMeshNormalMaterial=true;MeshNormalMaterial.prototype.copy=function(source){Material.prototype.copy.call(this,source);this.bumpMap=source.bumpMap;this.bumpScale=source.bumpScale;this.normalMap=source.normalMap;this.normalMapType=source.normalMapType;this.normalScale.copy(source.normalScale);this.displacementMap=source.displacementMap;this.displacementScale=source.displacementScale;this.displacementBias=source.displacementBias;this.wireframe=source.wireframe;this.wireframeLinewidth=source.wireframeLinewidth;this.skinning=source.skinning;this.morphTargets=source.morphTargets;this.morphNormals=source.morphNormals;return this;};function MeshLambertMaterial(parameters){Material.call(this);this.type='MeshLambertMaterial';this.color=new Color(0xffffff);this.map=null;this.lightMap=null;this.lightMapIntensity=1.0;this.aoMap=null;this.aoMapIntensity=1.0;this.emissive=new Color(0x000000);this.emissiveIntensity=1.0;this.emissiveMap=null;this.specularMap=null;this.alphaMap=null;this.envMap=null;this.combine=MultiplyOperation;this.reflectivity=1;this.refractionRatio=0.98;this.wireframe=false;this.wireframeLinewidth=1;this.wireframeLinecap='round';this.wireframeLinejoin='round';this.skinning=false;this.morphTargets=false;this.morphNormals=false;this.setValues(parameters);}MeshLambertMaterial.prototype=Object.create(Material.prototype);MeshLambertMaterial.prototype.constructor=MeshLambertMaterial;MeshLambertMaterial.prototype.isMeshLambertMaterial=true;MeshLambertMaterial.prototype.copy=function(source){Material.prototype.copy.call(this,source);this.color.copy(source.color);this.map=source.map;this.lightMap=source.lightMap;this.lightMapIntensity=source.lightMapIntensity;this.aoMap=source.aoMap;this.aoMapIntensity=source.aoMapIntensity;this.emissive.copy(source.emissive);this.emissiveMap=source.emissiveMap;this.emissiveIntensity=source.emissiveIntensity;this.specularMap=source.specularMap;this.alphaMap=source.alphaMap;this.envMap=source.envMap;this.combine=source.combine;this.reflectivity=source.reflectivity;this.refractionRatio=source.refractionRatio;this.wireframe=source.wireframe;this.wireframeLinewidth=source.wireframeLinewidth;this.wireframeLinecap=source.wireframeLinecap;this.wireframeLinejoin=source.wireframeLinejoin;this.skinning=source.skinning;this.morphTargets=source.morphTargets;this.morphNormals=source.morphNormals;return this;};function MeshMatcapMaterial(parameters){Material.call(this);this.defines={'MATCAP':''};this.type='MeshMatcapMaterial';this.color=new Color(0xffffff);this.matcap=null;this.map=null;this.bumpMap=null;this.bumpScale=1;this.normalMap=null;this.normalMapType=TangentSpaceNormalMap;this.normalScale=new Vector2(1,1);this.displacementMap=null;this.displacementScale=1;this.displacementBias=0;this.alphaMap=null;this.skinning=false;this.morphTargets=false;this.morphNormals=false;this.setValues(parameters);}MeshMatcapMaterial.prototype=Object.create(Material.prototype);MeshMatcapMaterial.prototype.constructor=MeshMatcapMaterial;MeshMatcapMaterial.prototype.isMeshMatcapMaterial=true;MeshMatcapMaterial.prototype.copy=function(source){Material.prototype.copy.call(this,source);this.defines={'MATCAP':''};this.color.copy(source.color);this.matcap=source.matcap;this.map=source.map;this.bumpMap=source.bumpMap;this.bumpScale=source.bumpScale;this.normalMap=source.normalMap;this.normalMapType=source.normalMapType;this.normalScale.copy(source.normalScale);this.displacementMap=source.displacementMap;this.displacementScale=source.displacementScale;this.displacementBias=source.displacementBias;this.alphaMap=source.alphaMap;this.skinning=source.skinning;this.morphTargets=source.morphTargets;this.morphNormals=source.morphNormals;return this;};function LineDashedMaterial(parameters){LineBasicMaterial.call(this);this.type='LineDashedMaterial';this.scale=1;this.dashSize=3;this.gapSize=1;this.setValues(parameters);}LineDashedMaterial.prototype=Object.create(LineBasicMaterial.prototype);LineDashedMaterial.prototype.constructor=LineDashedMaterial;LineDashedMaterial.prototype.isLineDashedMaterial=true;LineDashedMaterial.prototype.copy=function(source){LineBasicMaterial.prototype.copy.call(this,source);this.scale=source.scale;this.dashSize=source.dashSize;this.gapSize=source.gapSize;return this;};var Materials=Object.freeze({__proto__:null,ShadowMaterial:ShadowMaterial,SpriteMaterial:SpriteMaterial,RawShaderMaterial:RawShaderMaterial,ShaderMaterial:ShaderMaterial,PointsMaterial:PointsMaterial,MeshPhysicalMaterial:MeshPhysicalMaterial,MeshStandardMaterial:MeshStandardMaterial,MeshPhongMaterial:MeshPhongMaterial,MeshToonMaterial:MeshToonMaterial,MeshNormalMaterial:MeshNormalMaterial,MeshLambertMaterial:MeshLambertMaterial,MeshDepthMaterial:MeshDepthMaterial,MeshDistanceMaterial:MeshDistanceMaterial,MeshBasicMaterial:MeshBasicMaterial,MeshMatcapMaterial:MeshMatcapMaterial,LineDashedMaterial:LineDashedMaterial,LineBasicMaterial:LineBasicMaterial,Material:Material});var AnimationUtils={arraySlice:function arraySlice(array,from,to){if(AnimationUtils.isTypedArray(array)){return new array.constructor(array.subarray(from,to!==undefined?to:array.length));}return array.slice(from,to);},convertArray:function convertArray(array,type,forceClone){if(!array||!forceClone&&array.constructor===type)return array;if(typeof type.BYTES_PER_ELEMENT==='number'){return new type(array);}return Array.prototype.slice.call(array);},isTypedArray:function isTypedArray(object){return ArrayBuffer.isView(object)&&!_instanceof(object,DataView);},getKeyframeOrder:function getKeyframeOrder(times){function compareTime(i,j){return times[i]-times[j];}var n=times.length;var result=new Array(n);for(var _i211=0;_i211!==n;++_i211){result[_i211]=_i211;}result.sort(compareTime);return result;},sortedArray:function sortedArray(values,stride,order){var nValues=values.length;var result=new values.constructor(nValues);for(var _i212=0,dstOffset=0;dstOffset!==nValues;++_i212){var srcOffset=order[_i212]*stride;for(var j=0;j!==stride;++j){result[dstOffset++]=values[srcOffset+j];}}return result;},flattenJSON:function flattenJSON(jsonKeys,times,values,valuePropertyName){var i=1,key=jsonKeys[0];while(key!==undefined&&key[valuePropertyName]===undefined){key=jsonKeys[i++];}if(key===undefined)return;var value=key[valuePropertyName];if(value===undefined)return;if(Array.isArray(value)){do{value=key[valuePropertyName];if(value!==undefined){times.push(key.time);values.push.apply(values,value);}key=jsonKeys[i++];}while(key!==undefined);}else if(value.toArray!==undefined){do{value=key[valuePropertyName];if(value!==undefined){times.push(key.time);value.toArray(values,values.length);}key=jsonKeys[i++];}while(key!==undefined);}else{do{value=key[valuePropertyName];if(value!==undefined){times.push(key.time);values.push(value);}key=jsonKeys[i++];}while(key!==undefined);}},subclip:function subclip(sourceClip,name,startFrame,endFrame,fps){fps=fps||30;var clip=sourceClip.clone();clip.name=name;var tracks=[];for(var _i213=0;_i213<clip.tracks.length;++_i213){var track=clip.tracks[_i213];var valueSize=track.getValueSize();var times=[];var values=[];for(var j=0;j<track.times.length;++j){var frame=track.times[j]*fps;if(frame<startFrame||frame>=endFrame)continue;times.push(track.times[j]);for(var k=0;k<valueSize;++k){values.push(track.values[j*valueSize+k]);}}if(times.length===0)continue;track.times=AnimationUtils.convertArray(times,track.times.constructor);track.values=AnimationUtils.convertArray(values,track.values.constructor);tracks.push(track);}clip.tracks=tracks;var minStartTime=Infinity;for(var _i214=0;_i214<clip.tracks.length;++_i214){if(minStartTime>clip.tracks[_i214].times[0]){minStartTime=clip.tracks[_i214].times[0];}}\nfor(var _i215=0;_i215<clip.tracks.length;++_i215){clip.tracks[_i215].shift(-1*minStartTime);}clip.resetDuration();return clip;},makeClipAdditive:function makeClipAdditive(targetClip,referenceFrame,referenceClip,fps){if(referenceFrame===undefined)referenceFrame=0;if(referenceClip===undefined)referenceClip=targetClip;if(fps===undefined||fps<=0)fps=30;var numTracks=referenceClip.tracks.length;var referenceTime=referenceFrame/fps;var _loop=function _loop(_i216){var referenceTrack=referenceClip.tracks[_i216];var referenceTrackType=referenceTrack.ValueTypeName;if(referenceTrackType==='bool'||referenceTrackType==='string')return\"continue\";var targetTrack=targetClip.tracks.find(function(track){return track.name===referenceTrack.name&&track.ValueTypeName===referenceTrackType;});if(targetTrack===undefined)return\"continue\";var referenceOffset=0;var referenceValueSize=referenceTrack.getValueSize();if(referenceTrack.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline){referenceOffset=referenceValueSize/3;}var targetOffset=0;var targetValueSize=targetTrack.getValueSize();if(targetTrack.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline){targetOffset=targetValueSize/3;}var lastIndex=referenceTrack.times.length-1;var referenceValue=void 0;if(referenceTime<=referenceTrack.times[0]){var startIndex=referenceOffset;var endIndex=referenceValueSize-referenceOffset;referenceValue=AnimationUtils.arraySlice(referenceTrack.values,startIndex,endIndex);}else if(referenceTime>=referenceTrack.times[lastIndex]){var _startIndex=lastIndex*referenceValueSize+referenceOffset;var _endIndex=_startIndex+referenceValueSize-referenceOffset;referenceValue=AnimationUtils.arraySlice(referenceTrack.values,_startIndex,_endIndex);}else{var interpolant=referenceTrack.createInterpolant();var _startIndex2=referenceOffset;var _endIndex2=referenceValueSize-referenceOffset;interpolant.evaluate(referenceTime);referenceValue=AnimationUtils.arraySlice(interpolant.resultBuffer,_startIndex2,_endIndex2);}\nif(referenceTrackType==='quaternion'){var referenceQuat=new Quaternion().fromArray(referenceValue).normalize().conjugate();referenceQuat.toArray(referenceValue);}\nvar numTimes=targetTrack.times.length;for(var j=0;j<numTimes;++j){var valueStart=j*targetValueSize+targetOffset;if(referenceTrackType==='quaternion'){Quaternion.multiplyQuaternionsFlat(targetTrack.values,valueStart,referenceValue,0,targetTrack.values,valueStart);}else{var valueEnd=targetValueSize-targetOffset*2;for(var k=0;k<valueEnd;++k){targetTrack.values[valueStart+k]-=referenceValue[k];}}}};for(var _i216=0;_i216<numTracks;++_i216){var _ret=_loop(_i216);if(_ret===\"continue\")continue;}targetClip.blendMode=AdditiveAnimationBlendMode;return targetClip;}};function Interpolant(parameterPositions,sampleValues,sampleSize,resultBuffer){this.parameterPositions=parameterPositions;this._cachedIndex=0;this.resultBuffer=resultBuffer!==undefined?resultBuffer:new sampleValues.constructor(sampleSize);this.sampleValues=sampleValues;this.valueSize=sampleSize;}Object.assign(Interpolant.prototype,{evaluate:function evaluate(t){var pp=this.parameterPositions;var i1=this._cachedIndex,t1=pp[i1],t0=pp[i1-1];validate_interval:{seek:{var right;linear_scan:{forward_scan:if(!(t<t1)){for(var giveUpAt=i1+2;;){if(t1===undefined){if(t<t0)break forward_scan;i1=pp.length;this._cachedIndex=i1;return this.afterEnd_(i1-1,t,t0);}if(i1===giveUpAt)break;t0=t1;t1=pp[++i1];if(t<t1){break seek;}}\nright=pp.length;break linear_scan;}\nif(!(t>=t0)){var t1global=pp[1];if(t<t1global){i1=2;t0=t1global;}\nfor(var _giveUpAt=i1-2;;){if(t0===undefined){this._cachedIndex=0;return this.beforeStart_(0,t,t1);}if(i1===_giveUpAt)break;t1=t0;t0=pp[--i1-1];if(t>=t0){break seek;}}\nright=i1;i1=0;break linear_scan;}\nbreak validate_interval;}\nwhile(i1<right){var mid=i1+right>>>1;if(t<pp[mid]){right=mid;}else{i1=mid+1;}}t1=pp[i1];t0=pp[i1-1];if(t0===undefined){this._cachedIndex=0;return this.beforeStart_(0,t,t1);}if(t1===undefined){i1=pp.length;this._cachedIndex=i1;return this.afterEnd_(i1-1,t0,t);}}\nthis._cachedIndex=i1;this.intervalChanged_(i1,t0,t1);}\nreturn this.interpolate_(i1,t0,t,t1);},settings:null,DefaultSettings_:{},getSettings_:function getSettings_(){return this.settings||this.DefaultSettings_;},copySampleValue_:function copySampleValue_(index){var result=this.resultBuffer,values=this.sampleValues,stride=this.valueSize,offset=index*stride;for(var _i217=0;_i217!==stride;++_i217){result[_i217]=values[offset+_i217];}return result;},interpolate_:function interpolate_(){throw new Error('call to abstract method');},intervalChanged_:function intervalChanged_(){}});Object.assign(Interpolant.prototype,{beforeStart_:Interpolant.prototype.copySampleValue_,afterEnd_:Interpolant.prototype.copySampleValue_});function CubicInterpolant(parameterPositions,sampleValues,sampleSize,resultBuffer){Interpolant.call(this,parameterPositions,sampleValues,sampleSize,resultBuffer);this._weightPrev=-0;this._offsetPrev=-0;this._weightNext=-0;this._offsetNext=-0;}CubicInterpolant.prototype=Object.assign(Object.create(Interpolant.prototype),{constructor:CubicInterpolant,DefaultSettings_:{endingStart:ZeroCurvatureEnding,endingEnd:ZeroCurvatureEnding},intervalChanged_:function intervalChanged_(i1,t0,t1){var pp=this.parameterPositions;var iPrev=i1-2,iNext=i1+1,tPrev=pp[iPrev],tNext=pp[iNext];if(tPrev===undefined){switch(this.getSettings_().endingStart){case ZeroSlopeEnding:iPrev=i1;tPrev=2*t0-t1;break;case WrapAroundEnding:iPrev=pp.length-2;tPrev=t0+pp[iPrev]-pp[iPrev+1];break;default:iPrev=i1;tPrev=t1;}}if(tNext===undefined){switch(this.getSettings_().endingEnd){case ZeroSlopeEnding:iNext=i1;tNext=2*t1-t0;break;case WrapAroundEnding:iNext=1;tNext=t1+pp[1]-pp[0];break;default:iNext=i1-1;tNext=t0;}}var halfDt=(t1-t0)*0.5,stride=this.valueSize;this._weightPrev=halfDt/(t0-tPrev);this._weightNext=halfDt/(tNext-t1);this._offsetPrev=iPrev*stride;this._offsetNext=iNext*stride;},interpolate_:function interpolate_(i1,t0,t,t1){var result=this.resultBuffer,values=this.sampleValues,stride=this.valueSize,o1=i1*stride,o0=o1-stride,oP=this._offsetPrev,oN=this._offsetNext,wP=this._weightPrev,wN=this._weightNext,p=(t-t0)/(t1-t0),pp=p*p,ppp=pp*p;var sP=-wP*ppp+2*wP*pp-wP*p;var s0=(1+wP)*ppp+(-1.5-2*wP)*pp+(-0.5+wP)*p+1;var s1=(-1-wN)*ppp+(1.5+wN)*pp+0.5*p;var sN=wN*ppp-wN*pp;for(var _i218=0;_i218!==stride;++_i218){result[_i218]=sP*values[oP+_i218]+s0*values[o0+_i218]+s1*values[o1+_i218]+sN*values[oN+_i218];}return result;}});function LinearInterpolant(parameterPositions,sampleValues,sampleSize,resultBuffer){Interpolant.call(this,parameterPositions,sampleValues,sampleSize,resultBuffer);}LinearInterpolant.prototype=Object.assign(Object.create(Interpolant.prototype),{constructor:LinearInterpolant,interpolate_:function interpolate_(i1,t0,t,t1){var result=this.resultBuffer,values=this.sampleValues,stride=this.valueSize,offset1=i1*stride,offset0=offset1-stride,weight1=(t-t0)/(t1-t0),weight0=1-weight1;for(var _i219=0;_i219!==stride;++_i219){result[_i219]=values[offset0+_i219]*weight0+values[offset1+_i219]*weight1;}return result;}});function DiscreteInterpolant(parameterPositions,sampleValues,sampleSize,resultBuffer){Interpolant.call(this,parameterPositions,sampleValues,sampleSize,resultBuffer);}DiscreteInterpolant.prototype=Object.assign(Object.create(Interpolant.prototype),{constructor:DiscreteInterpolant,interpolate_:function interpolate_(i1){return this.copySampleValue_(i1-1);}});function KeyframeTrack(name,times,values,interpolation){if(name===undefined)throw new Error('THREE.KeyframeTrack: track name is undefined');if(times===undefined||times.length===0)throw new Error('THREE.KeyframeTrack: no keyframes in track named '+name);this.name=name;this.times=AnimationUtils.convertArray(times,this.TimeBufferType);this.values=AnimationUtils.convertArray(values,this.ValueBufferType);this.setInterpolation(interpolation||this.DefaultInterpolation);}\nObject.assign(KeyframeTrack,{toJSON:function toJSON(track){var trackType=track.constructor;var json;if(trackType.toJSON!==undefined){json=trackType.toJSON(track);}else{json={'name':track.name,'times':AnimationUtils.convertArray(track.times,Array),'values':AnimationUtils.convertArray(track.values,Array)};var interpolation=track.getInterpolation();if(interpolation!==track.DefaultInterpolation){json.interpolation=interpolation;}}json.type=track.ValueTypeName;return json;}});Object.assign(KeyframeTrack.prototype,{constructor:KeyframeTrack,TimeBufferType:Float32Array,ValueBufferType:Float32Array,DefaultInterpolation:InterpolateLinear,InterpolantFactoryMethodDiscrete:function InterpolantFactoryMethodDiscrete(result){return new DiscreteInterpolant(this.times,this.values,this.getValueSize(),result);},InterpolantFactoryMethodLinear:function InterpolantFactoryMethodLinear(result){return new LinearInterpolant(this.times,this.values,this.getValueSize(),result);},InterpolantFactoryMethodSmooth:function InterpolantFactoryMethodSmooth(result){return new CubicInterpolant(this.times,this.values,this.getValueSize(),result);},setInterpolation:function setInterpolation(interpolation){var factoryMethod;switch(interpolation){case InterpolateDiscrete:factoryMethod=this.InterpolantFactoryMethodDiscrete;break;case InterpolateLinear:factoryMethod=this.InterpolantFactoryMethodLinear;break;case InterpolateSmooth:factoryMethod=this.InterpolantFactoryMethodSmooth;break;}if(factoryMethod===undefined){var message=\"unsupported interpolation for \"+this.ValueTypeName+\" keyframe track named \"+this.name;if(this.createInterpolant===undefined){if(interpolation!==this.DefaultInterpolation){this.setInterpolation(this.DefaultInterpolation);}else{throw new Error(message);}}console.warn('THREE.KeyframeTrack:',message);return this;}this.createInterpolant=factoryMethod;return this;},getInterpolation:function getInterpolation(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return InterpolateDiscrete;case this.InterpolantFactoryMethodLinear:return InterpolateLinear;case this.InterpolantFactoryMethodSmooth:return InterpolateSmooth;}},getValueSize:function getValueSize(){return this.values.length/this.times.length;},shift:function shift(timeOffset){if(timeOffset!==0.0){var times=this.times;for(var _i220=0,n=times.length;_i220!==n;++_i220){times[_i220]+=timeOffset;}}return this;},scale:function scale(timeScale){if(timeScale!==1.0){var times=this.times;for(var _i221=0,n=times.length;_i221!==n;++_i221){times[_i221]*=timeScale;}}return this;},trim:function trim(startTime,endTime){var times=this.times,nKeys=times.length;var from=0,to=nKeys-1;while(from!==nKeys&&times[from]<startTime){++from;}while(to!==-1&&times[to]>endTime){--to;}++to;if(from!==0||to!==nKeys){if(from>=to){to=Math.max(to,1);from=to-1;}var stride=this.getValueSize();this.times=AnimationUtils.arraySlice(times,from,to);this.values=AnimationUtils.arraySlice(this.values,from*stride,to*stride);}return this;},validate:function validate(){var valid=true;var valueSize=this.getValueSize();if(valueSize-Math.floor(valueSize)!==0){console.error('THREE.KeyframeTrack: Invalid value size in track.',this);valid=false;}var times=this.times,values=this.values,nKeys=times.length;if(nKeys===0){console.error('THREE.KeyframeTrack: Track is empty.',this);valid=false;}var prevTime=null;for(var _i222=0;_i222!==nKeys;_i222++){var currTime=times[_i222];if(typeof currTime==='number'&&isNaN(currTime)){console.error('THREE.KeyframeTrack: Time is not a valid number.',this,_i222,currTime);valid=false;break;}if(prevTime!==null&&prevTime>currTime){console.error('THREE.KeyframeTrack: Out of order keys.',this,_i222,currTime,prevTime);valid=false;break;}prevTime=currTime;}if(values!==undefined){if(AnimationUtils.isTypedArray(values)){for(var _i223=0,n=values.length;_i223!==n;++_i223){var value=values[_i223];if(isNaN(value)){console.error('THREE.KeyframeTrack: Value is not a valid number.',this,_i223,value);valid=false;break;}}}}return valid;},optimize:function optimize(){var times=AnimationUtils.arraySlice(this.times),values=AnimationUtils.arraySlice(this.values),stride=this.getValueSize(),smoothInterpolation=this.getInterpolation()===InterpolateSmooth,lastIndex=times.length-1;var writeIndex=1;for(var _i224=1;_i224<lastIndex;++_i224){var keep=false;var time=times[_i224];var timeNext=times[_i224+1];if(time!==timeNext&&(_i224!==1||time!==time[0])){if(!smoothInterpolation){var offset=_i224*stride,offsetP=offset-stride,offsetN=offset+stride;for(var j=0;j!==stride;++j){var value=values[offset+j];if(value!==values[offsetP+j]||value!==values[offsetN+j]){keep=true;break;}}}else{keep=true;}}\nif(keep){if(_i224!==writeIndex){times[writeIndex]=times[_i224];var readOffset=_i224*stride,writeOffset=writeIndex*stride;for(var _j15=0;_j15!==stride;++_j15){values[writeOffset+_j15]=values[readOffset+_j15];}}++writeIndex;}}\nif(lastIndex>0){times[writeIndex]=times[lastIndex];for(var _readOffset=lastIndex*stride,_writeOffset=writeIndex*stride,_j16=0;_j16!==stride;++_j16){values[_writeOffset+_j16]=values[_readOffset+_j16];}++writeIndex;}if(writeIndex!==times.length){this.times=AnimationUtils.arraySlice(times,0,writeIndex);this.values=AnimationUtils.arraySlice(values,0,writeIndex*stride);}else{this.times=times;this.values=values;}return this;},clone:function clone(){var times=AnimationUtils.arraySlice(this.times,0);var values=AnimationUtils.arraySlice(this.values,0);var TypedKeyframeTrack=this.constructor;var track=new TypedKeyframeTrack(this.name,times,values);track.createInterpolant=this.createInterpolant;return track;}});function BooleanKeyframeTrack(name,times,values){KeyframeTrack.call(this,name,times,values);}BooleanKeyframeTrack.prototype=Object.assign(Object.create(KeyframeTrack.prototype),{constructor:BooleanKeyframeTrack,ValueTypeName:'bool',ValueBufferType:Array,DefaultInterpolation:InterpolateDiscrete,InterpolantFactoryMethodLinear:undefined,InterpolantFactoryMethodSmooth:undefined});function ColorKeyframeTrack(name,times,values,interpolation){KeyframeTrack.call(this,name,times,values,interpolation);}ColorKeyframeTrack.prototype=Object.assign(Object.create(KeyframeTrack.prototype),{constructor:ColorKeyframeTrack,ValueTypeName:'color'});function NumberKeyframeTrack(name,times,values,interpolation){KeyframeTrack.call(this,name,times,values,interpolation);}NumberKeyframeTrack.prototype=Object.assign(Object.create(KeyframeTrack.prototype),{constructor:NumberKeyframeTrack,ValueTypeName:'number'});function QuaternionLinearInterpolant(parameterPositions,sampleValues,sampleSize,resultBuffer){Interpolant.call(this,parameterPositions,sampleValues,sampleSize,resultBuffer);}QuaternionLinearInterpolant.prototype=Object.assign(Object.create(Interpolant.prototype),{constructor:QuaternionLinearInterpolant,interpolate_:function interpolate_(i1,t0,t,t1){var result=this.resultBuffer,values=this.sampleValues,stride=this.valueSize,alpha=(t-t0)/(t1-t0);var offset=i1*stride;for(var end=offset+stride;offset!==end;offset+=4){Quaternion.slerpFlat(result,0,values,offset-stride,values,offset,alpha);}return result;}});function QuaternionKeyframeTrack(name,times,values,interpolation){KeyframeTrack.call(this,name,times,values,interpolation);}QuaternionKeyframeTrack.prototype=Object.assign(Object.create(KeyframeTrack.prototype),{constructor:QuaternionKeyframeTrack,ValueTypeName:'quaternion',DefaultInterpolation:InterpolateLinear,InterpolantFactoryMethodLinear:function InterpolantFactoryMethodLinear(result){return new QuaternionLinearInterpolant(this.times,this.values,this.getValueSize(),result);},InterpolantFactoryMethodSmooth:undefined});function StringKeyframeTrack(name,times,values,interpolation){KeyframeTrack.call(this,name,times,values,interpolation);}StringKeyframeTrack.prototype=Object.assign(Object.create(KeyframeTrack.prototype),{constructor:StringKeyframeTrack,ValueTypeName:'string',ValueBufferType:Array,DefaultInterpolation:InterpolateDiscrete,InterpolantFactoryMethodLinear:undefined,InterpolantFactoryMethodSmooth:undefined});function VectorKeyframeTrack(name,times,values,interpolation){KeyframeTrack.call(this,name,times,values,interpolation);}VectorKeyframeTrack.prototype=Object.assign(Object.create(KeyframeTrack.prototype),{constructor:VectorKeyframeTrack,ValueTypeName:'vector'});function AnimationClip(name,duration,tracks,blendMode){this.name=name;this.tracks=tracks;this.duration=duration!==undefined?duration:-1;this.blendMode=blendMode!==undefined?blendMode:NormalAnimationBlendMode;this.uuid=MathUtils.generateUUID();if(this.duration<0){this.resetDuration();}}function getTrackTypeForValueTypeName(typeName){switch(typeName.toLowerCase()){case'scalar':case'double':case'float':case'number':case'integer':return NumberKeyframeTrack;case'vector':case'vector2':case'vector3':case'vector4':return VectorKeyframeTrack;case'color':return ColorKeyframeTrack;case'quaternion':return QuaternionKeyframeTrack;case'bool':case'boolean':return BooleanKeyframeTrack;case'string':return StringKeyframeTrack;}throw new Error('THREE.KeyframeTrack: Unsupported typeName: '+typeName);}function parseKeyframeTrack(json){if(json.type===undefined){throw new Error('THREE.KeyframeTrack: track type undefined, can not parse');}var trackType=getTrackTypeForValueTypeName(json.type);if(json.times===undefined){var times=[],values=[];AnimationUtils.flattenJSON(json.keys,times,values,'value');json.times=times;json.values=values;}\nif(trackType.parse!==undefined){return trackType.parse(json);}else{return new trackType(json.name,json.times,json.values,json.interpolation);}}Object.assign(AnimationClip,{parse:function parse(json){var tracks=[],jsonTracks=json.tracks,frameTime=1.0/(json.fps||1.0);for(var _i225=0,n=jsonTracks.length;_i225!==n;++_i225){tracks.push(parseKeyframeTrack(jsonTracks[_i225]).scale(frameTime));}return new AnimationClip(json.name,json.duration,tracks,json.blendMode);},toJSON:function toJSON(clip){var tracks=[],clipTracks=clip.tracks;var json={'name':clip.name,'duration':clip.duration,'tracks':tracks,'uuid':clip.uuid,'blendMode':clip.blendMode};for(var _i226=0,n=clipTracks.length;_i226!==n;++_i226){tracks.push(KeyframeTrack.toJSON(clipTracks[_i226]));}return json;},CreateFromMorphTargetSequence:function CreateFromMorphTargetSequence(name,morphTargetSequence,fps,noLoop){var numMorphTargets=morphTargetSequence.length;var tracks=[];for(var _i227=0;_i227<numMorphTargets;_i227++){var times=[];var values=[];times.push((_i227+numMorphTargets-1)%numMorphTargets,_i227,(_i227+1)%numMorphTargets);values.push(0,1,0);var order=AnimationUtils.getKeyframeOrder(times);times=AnimationUtils.sortedArray(times,1,order);values=AnimationUtils.sortedArray(values,1,order);if(!noLoop&&times[0]===0){times.push(numMorphTargets);values.push(values[0]);}tracks.push(new NumberKeyframeTrack('.morphTargetInfluences['+morphTargetSequence[_i227].name+']',times,values).scale(1.0/fps));}return new AnimationClip(name,-1,tracks);},findByName:function findByName(objectOrClipArray,name){var clipArray=objectOrClipArray;if(!Array.isArray(objectOrClipArray)){var o=objectOrClipArray;clipArray=o.geometry&&o.geometry.animations||o.animations;}for(var _i228=0;_i228<clipArray.length;_i228++){if(clipArray[_i228].name===name){return clipArray[_i228];}}return null;},CreateClipsFromMorphTargetSequences:function CreateClipsFromMorphTargetSequences(morphTargets,fps,noLoop){var animationToMorphTargets={};var pattern=/^([\\w-]*?)([\\d]+)$/;for(var _i229=0,il=morphTargets.length;_i229<il;_i229++){var morphTarget=morphTargets[_i229];var parts=morphTarget.name.match(pattern);if(parts&&parts.length>1){var name=parts[1];var animationMorphTargets=animationToMorphTargets[name];if(!animationMorphTargets){animationToMorphTargets[name]=animationMorphTargets=[];}animationMorphTargets.push(morphTarget);}}var clips=[];for(var _name4 in animationToMorphTargets){clips.push(AnimationClip.CreateFromMorphTargetSequence(_name4,animationToMorphTargets[_name4],fps,noLoop));}return clips;},parseAnimation:function parseAnimation(animation,bones){if(!animation){console.error('THREE.AnimationClip: No animation in JSONLoader data.');return null;}var addNonemptyTrack=function addNonemptyTrack(trackType,trackName,animationKeys,propertyName,destTracks){if(animationKeys.length!==0){var times=[];var values=[];AnimationUtils.flattenJSON(animationKeys,times,values,propertyName);if(times.length!==0){destTracks.push(new trackType(trackName,times,values));}}};var tracks=[];var clipName=animation.name||'default';var fps=animation.fps||30;var blendMode=animation.blendMode;var duration=animation.length||-1;var hierarchyTracks=animation.hierarchy||[];for(var h=0;h<hierarchyTracks.length;h++){var animationKeys=hierarchyTracks[h].keys;if(!animationKeys||animationKeys.length===0)continue;if(animationKeys[0].morphTargets){var morphTargetNames={};var k=void 0;for(k=0;k<animationKeys.length;k++){if(animationKeys[k].morphTargets){for(var m=0;m<animationKeys[k].morphTargets.length;m++){morphTargetNames[animationKeys[k].morphTargets[m]]=-1;}}}\nfor(var morphTargetName in morphTargetNames){var times=[];var values=[];for(var _m2=0;_m2!==animationKeys[k].morphTargets.length;++_m2){var animationKey=animationKeys[k];times.push(animationKey.time);values.push(animationKey.morphTarget===morphTargetName?1:0);}tracks.push(new NumberKeyframeTrack('.morphTargetInfluence['+morphTargetName+']',times,values));}duration=morphTargetNames.length*(fps||1.0);}else{var boneName='.bones['+bones[h].name+']';addNonemptyTrack(VectorKeyframeTrack,boneName+'.position',animationKeys,'pos',tracks);addNonemptyTrack(QuaternionKeyframeTrack,boneName+'.quaternion',animationKeys,'rot',tracks);addNonemptyTrack(VectorKeyframeTrack,boneName+'.scale',animationKeys,'scl',tracks);}}if(tracks.length===0){return null;}var clip=new AnimationClip(clipName,duration,tracks,blendMode);return clip;}});Object.assign(AnimationClip.prototype,{resetDuration:function resetDuration(){var tracks=this.tracks;var duration=0;for(var _i230=0,n=tracks.length;_i230!==n;++_i230){var track=this.tracks[_i230];duration=Math.max(duration,track.times[track.times.length-1]);}this.duration=duration;return this;},trim:function trim(){for(var _i231=0;_i231<this.tracks.length;_i231++){this.tracks[_i231].trim(0,this.duration);}return this;},validate:function validate(){var valid=true;for(var _i232=0;_i232<this.tracks.length;_i232++){valid=valid&&this.tracks[_i232].validate();}return valid;},optimize:function optimize(){for(var _i233=0;_i233<this.tracks.length;_i233++){this.tracks[_i233].optimize();}return this;},clone:function clone(){var tracks=[];for(var _i234=0;_i234<this.tracks.length;_i234++){tracks.push(this.tracks[_i234].clone());}return new AnimationClip(this.name,this.duration,tracks,this.blendMode);}});var Cache={enabled:false,files:{},add:function add(key,file){if(this.enabled===false)return;this.files[key]=file;},get:function get(key){if(this.enabled===false)return;return this.files[key];},remove:function remove(key){delete this.files[key];},clear:function clear(){this.files={};}};function LoadingManager(onLoad,onProgress,onError){var scope=this;var isLoading=false;var itemsLoaded=0;var itemsTotal=0;var urlModifier=undefined;var handlers=[];this.onStart=undefined;this.onLoad=onLoad;this.onProgress=onProgress;this.onError=onError;this.itemStart=function(url){itemsTotal++;if(isLoading===false){if(scope.onStart!==undefined){scope.onStart(url,itemsLoaded,itemsTotal);}}isLoading=true;};this.itemEnd=function(url){itemsLoaded++;if(scope.onProgress!==undefined){scope.onProgress(url,itemsLoaded,itemsTotal);}if(itemsLoaded===itemsTotal){isLoading=false;if(scope.onLoad!==undefined){scope.onLoad();}}};this.itemError=function(url){if(scope.onError!==undefined){scope.onError(url);}};this.resolveURL=function(url){if(urlModifier){return urlModifier(url);}return url;};this.setURLModifier=function(transform){urlModifier=transform;return this;};this.addHandler=function(regex,loader){handlers.push(regex,loader);return this;};this.removeHandler=function(regex){var index=handlers.indexOf(regex);if(index!==-1){handlers.splice(index,2);}return this;};this.getHandler=function(file){for(var _i235=0,l=handlers.length;_i235<l;_i235+=2){var regex=handlers[_i235];var _loader=handlers[_i235+1];if(regex.global)regex.lastIndex=0;if(regex.test(file)){return _loader;}}return null;};}var DefaultLoadingManager=new LoadingManager();function Loader(manager){this.manager=manager!==undefined?manager:DefaultLoadingManager;this.crossOrigin='anonymous';this.withCredentials=false;this.path='';this.resourcePath='';this.requestHeader={};}Object.assign(Loader.prototype,{load:function load(){},loadAsync:function loadAsync(url,onProgress){var scope=this;return new Promise(function(resolve,reject){scope.load(url,resolve,onProgress,reject);});},parse:function parse(){},setCrossOrigin:function setCrossOrigin(crossOrigin){this.crossOrigin=crossOrigin;return this;},setWithCredentials:function setWithCredentials(value){this.withCredentials=value;return this;},setPath:function setPath(path){this.path=path;return this;},setResourcePath:function setResourcePath(resourcePath){this.resourcePath=resourcePath;return this;},setRequestHeader:function setRequestHeader(requestHeader){this.requestHeader=requestHeader;return this;}});var loading={};function FileLoader(manager){Loader.call(this,manager);}FileLoader.prototype=Object.assign(Object.create(Loader.prototype),{constructor:FileLoader,load:function load(url,onLoad,onProgress,onError){if(url===undefined)url='';if(this.path!==undefined)url=this.path+url;url=this.manager.resolveURL(url);var scope=this;var cached=Cache.get(url);if(cached!==undefined){scope.manager.itemStart(url);setTimeout(function(){if(onLoad)onLoad(cached);scope.manager.itemEnd(url);},0);return cached;}\nif(loading[url]!==undefined){loading[url].push({onLoad:onLoad,onProgress:onProgress,onError:onError});return;}\nvar dataUriRegex=/^data:(.*?)(;base64)?,(.*)$/;var dataUriRegexResult=url.match(dataUriRegex);var request;if(dataUriRegexResult){var mimeType=dataUriRegexResult[1];var isBase64=!!dataUriRegexResult[2];var data=dataUriRegexResult[3];data=decodeURIComponent(data);if(isBase64)data=atob(data);try{var response;var responseType=(this.responseType||'').toLowerCase();switch(responseType){case'arraybuffer':case'blob':var _view2=new Uint8Array(data.length);for(var _i236=0;_i236<data.length;_i236++){_view2[_i236]=data.charCodeAt(_i236);}if(responseType==='blob'){response=new Blob([_view2.buffer],{type:mimeType});}else{response=_view2.buffer;}break;case'document':var parser=new DOMParser();response=parser.parseFromString(data,mimeType);break;case'json':response=JSON.parse(data);break;default:response=data;break;}\nsetTimeout(function(){if(onLoad)onLoad(response);scope.manager.itemEnd(url);},0);}catch(error){setTimeout(function(){if(onError)onError(error);scope.manager.itemError(url);scope.manager.itemEnd(url);},0);}}else{loading[url]=[];loading[url].push({onLoad:onLoad,onProgress:onProgress,onError:onError});request=new XMLHttpRequest();request.open('GET',url,true);request.addEventListener('load',function(event){var response=this.response;var callbacks=loading[url];delete loading[url];if(this.status===200||this.status===0){if(this.status===0)console.warn('THREE.FileLoader: HTTP Status 0 received.');Cache.add(url,response);for(var _i237=0,il=callbacks.length;_i237<il;_i237++){var callback=callbacks[_i237];if(callback.onLoad)callback.onLoad(response);}scope.manager.itemEnd(url);}else{for(var _i238=0,_il31=callbacks.length;_i238<_il31;_i238++){var _callback=callbacks[_i238];if(_callback.onError)_callback.onError(event);}scope.manager.itemError(url);scope.manager.itemEnd(url);}},false);request.addEventListener('progress',function(event){var callbacks=loading[url];for(var _i239=0,il=callbacks.length;_i239<il;_i239++){var callback=callbacks[_i239];if(callback.onProgress)callback.onProgress(event);}},false);request.addEventListener('error',function(event){var callbacks=loading[url];delete loading[url];for(var _i240=0,il=callbacks.length;_i240<il;_i240++){var callback=callbacks[_i240];if(callback.onError)callback.onError(event);}scope.manager.itemError(url);scope.manager.itemEnd(url);},false);request.addEventListener('abort',function(event){var callbacks=loading[url];delete loading[url];for(var _i241=0,il=callbacks.length;_i241<il;_i241++){var callback=callbacks[_i241];if(callback.onError)callback.onError(event);}scope.manager.itemError(url);scope.manager.itemEnd(url);},false);if(this.responseType!==undefined)request.responseType=this.responseType;if(this.withCredentials!==undefined)request.withCredentials=this.withCredentials;if(request.overrideMimeType)request.overrideMimeType(this.mimeType!==undefined?this.mimeType:'text/plain');for(var header in this.requestHeader){request.setRequestHeader(header,this.requestHeader[header]);}request.send(null);}scope.manager.itemStart(url);return request;},setResponseType:function setResponseType(value){this.responseType=value;return this;},setMimeType:function setMimeType(value){this.mimeType=value;return this;}});function AnimationLoader(manager){Loader.call(this,manager);}AnimationLoader.prototype=Object.assign(Object.create(Loader.prototype),{constructor:AnimationLoader,load:function load(url,onLoad,onProgress,onError){var scope=this;var loader=new FileLoader(scope.manager);loader.setPath(scope.path);loader.setRequestHeader(scope.requestHeader);loader.setWithCredentials(scope.withCredentials);loader.load(url,function(text){try{onLoad(scope.parse(JSON.parse(text)));}catch(e){if(onError){onError(e);}else{console.error(e);}scope.manager.itemError(url);}},onProgress,onError);},parse:function parse(json){var animations=[];for(var _i242=0;_i242<json.length;_i242++){var clip=AnimationClip.parse(json[_i242]);animations.push(clip);}return animations;}});function CompressedTextureLoader(manager){Loader.call(this,manager);}CompressedTextureLoader.prototype=Object.assign(Object.create(Loader.prototype),{constructor:CompressedTextureLoader,load:function load(url,onLoad,onProgress,onError){var scope=this;var images=[];var texture=new CompressedTexture();texture.image=images;var loader=new FileLoader(this.manager);loader.setPath(this.path);loader.setResponseType('arraybuffer');loader.setRequestHeader(this.requestHeader);loader.setWithCredentials(scope.withCredentials);var loaded=0;function loadTexture(i){loader.load(url[i],function(buffer){var texDatas=scope.parse(buffer,true);images[i]={width:texDatas.width,height:texDatas.height,format:texDatas.format,mipmaps:texDatas.mipmaps};loaded+=1;if(loaded===6){if(texDatas.mipmapCount===1)texture.minFilter=LinearFilter;texture.format=texDatas.format;texture.needsUpdate=true;if(onLoad)onLoad(texture);}},onProgress,onError);}if(Array.isArray(url)){for(var _i243=0,il=url.length;_i243<il;++_i243){loadTexture(_i243);}}else{loader.load(url,function(buffer){var texDatas=scope.parse(buffer,true);if(texDatas.isCubemap){var faces=texDatas.mipmaps.length/texDatas.mipmapCount;for(var f=0;f<faces;f++){images[f]={mipmaps:[]};for(var _i244=0;_i244<texDatas.mipmapCount;_i244++){images[f].mipmaps.push(texDatas.mipmaps[f*texDatas.mipmapCount+_i244]);images[f].format=texDatas.format;images[f].width=texDatas.width;images[f].height=texDatas.height;}}}else{texture.image.width=texDatas.width;texture.image.height=texDatas.height;texture.mipmaps=texDatas.mipmaps;}if(texDatas.mipmapCount===1){texture.minFilter=LinearFilter;}texture.format=texDatas.format;texture.needsUpdate=true;if(onLoad)onLoad(texture);},onProgress,onError);}return texture;}});function ImageLoader(manager){Loader.call(this,manager);}ImageLoader.prototype=Object.assign(Object.create(Loader.prototype),{constructor:ImageLoader,load:function load(url,onLoad,onProgress,onError){if(this.path!==undefined)url=this.path+url;url=this.manager.resolveURL(url);var scope=this;var cached=Cache.get(url);if(cached!==undefined){scope.manager.itemStart(url);setTimeout(function(){if(onLoad)onLoad(cached);scope.manager.itemEnd(url);},0);return cached;}var image=document.createElementNS('http://www.w3.org/1999/xhtml','img');function onImageLoad(){image.removeEventListener('load',onImageLoad,false);image.removeEventListener('error',onImageError,false);Cache.add(url,this);if(onLoad)onLoad(this);scope.manager.itemEnd(url);}function onImageError(event){image.removeEventListener('load',onImageLoad,false);image.removeEventListener('error',onImageError,false);if(onError)onError(event);scope.manager.itemError(url);scope.manager.itemEnd(url);}image.addEventListener('load',onImageLoad,false);image.addEventListener('error',onImageError,false);if(url.substr(0,5)!=='data:'){if(this.crossOrigin!==undefined)image.crossOrigin=this.crossOrigin;}scope.manager.itemStart(url);image.src=url;return image;}});function CubeTextureLoader(manager){Loader.call(this,manager);}CubeTextureLoader.prototype=Object.assign(Object.create(Loader.prototype),{constructor:CubeTextureLoader,load:function load(urls,onLoad,onProgress,onError){var texture=new CubeTexture();var loader=new ImageLoader(this.manager);loader.setCrossOrigin(this.crossOrigin);loader.setPath(this.path);var loaded=0;function loadTexture(i){loader.load(urls[i],function(image){texture.images[i]=image;loaded++;if(loaded===6){texture.needsUpdate=true;if(onLoad)onLoad(texture);}},undefined,onError);}for(var _i245=0;_i245<urls.length;++_i245){loadTexture(_i245);}return texture;}});function DataTextureLoader(manager){Loader.call(this,manager);}DataTextureLoader.prototype=Object.assign(Object.create(Loader.prototype),{constructor:DataTextureLoader,load:function load(url,onLoad,onProgress,onError){var scope=this;var texture=new DataTexture();var loader=new FileLoader(this.manager);loader.setResponseType('arraybuffer');loader.setRequestHeader(this.requestHeader);loader.setPath(this.path);loader.setWithCredentials(scope.withCredentials);loader.load(url,function(buffer){var texData=scope.parse(buffer);if(!texData)return;if(texData.image!==undefined){texture.image=texData.image;}else if(texData.data!==undefined){texture.image.width=texData.width;texture.image.height=texData.height;texture.image.data=texData.data;}texture.wrapS=texData.wrapS!==undefined?texData.wrapS:ClampToEdgeWrapping;texture.wrapT=texData.wrapT!==undefined?texData.wrapT:ClampToEdgeWrapping;texture.magFilter=texData.magFilter!==undefined?texData.magFilter:LinearFilter;texture.minFilter=texData.minFilter!==undefined?texData.minFilter:LinearFilter;texture.anisotropy=texData.anisotropy!==undefined?texData.anisotropy:1;if(texData.format!==undefined){texture.format=texData.format;}if(texData.type!==undefined){texture.type=texData.type;}if(texData.mipmaps!==undefined){texture.mipmaps=texData.mipmaps;texture.minFilter=LinearMipmapLinearFilter;}if(texData.mipmapCount===1){texture.minFilter=LinearFilter;}texture.needsUpdate=true;if(onLoad)onLoad(texture,texData);},onProgress,onError);return texture;}});function TextureLoader(manager){Loader.call(this,manager);}TextureLoader.prototype=Object.assign(Object.create(Loader.prototype),{constructor:TextureLoader,load:function load(url,onLoad,onProgress,onError){var texture=new Texture();var loader=new ImageLoader(this.manager);loader.setCrossOrigin(this.crossOrigin);loader.setPath(this.path);loader.load(url,function(image){texture.image=image;var isJPEG=url.search(/\\.jpe?g($|\\?)/i)>0||url.search(/^data\\:image\\/jpeg/)===0;texture.format=isJPEG?RGBFormat:RGBAFormat;texture.needsUpdate=true;if(onLoad!==undefined){onLoad(texture);}},onProgress,onError);return texture;}});function Curve(){this.type='Curve';this.arcLengthDivisions=200;}Object.assign(Curve.prototype,{getPoint:function getPoint(){console.warn('THREE.Curve: .getPoint() not implemented.');return null;},getPointAt:function getPointAt(u,optionalTarget){var t=this.getUtoTmapping(u);return this.getPoint(t,optionalTarget);},getPoints:function getPoints(divisions){if(divisions===undefined)divisions=5;var points=[];for(var d=0;d<=divisions;d++){points.push(this.getPoint(d/divisions));}return points;},getSpacedPoints:function getSpacedPoints(divisions){if(divisions===undefined)divisions=5;var points=[];for(var d=0;d<=divisions;d++){points.push(this.getPointAt(d/divisions));}return points;},getLength:function getLength(){var lengths=this.getLengths();return lengths[lengths.length-1];},getLengths:function getLengths(divisions){if(divisions===undefined)divisions=this.arcLengthDivisions;if(this.cacheArcLengths&&this.cacheArcLengths.length===divisions+1&&!this.needsUpdate){return this.cacheArcLengths;}this.needsUpdate=false;var cache=[];var current,last=this.getPoint(0);var sum=0;cache.push(0);for(var p=1;p<=divisions;p++){current=this.getPoint(p/divisions);sum+=current.distanceTo(last);cache.push(sum);last=current;}this.cacheArcLengths=cache;return cache;},updateArcLengths:function updateArcLengths(){this.needsUpdate=true;this.getLengths();},getUtoTmapping:function getUtoTmapping(u,distance){var arcLengths=this.getLengths();var i=0;var il=arcLengths.length;var targetArcLength;if(distance){targetArcLength=distance;}else{targetArcLength=u*arcLengths[il-1];}\nvar low=0,high=il-1,comparison;while(low<=high){i=Math.floor(low+(high-low)/2);comparison=arcLengths[i]-targetArcLength;if(comparison<0){low=i+1;}else if(comparison>0){high=i-1;}else{high=i;break;}}i=high;if(arcLengths[i]===targetArcLength){return i/(il-1);}\nvar lengthBefore=arcLengths[i];var lengthAfter=arcLengths[i+1];var segmentLength=lengthAfter-lengthBefore;var segmentFraction=(targetArcLength-lengthBefore)/segmentLength;var t=(i+segmentFraction)/(il-1);return t;},getTangent:function getTangent(t,optionalTarget){var delta=0.0001;var t1=t-delta;var t2=t+delta;if(t1<0)t1=0;if(t2>1)t2=1;var pt1=this.getPoint(t1);var pt2=this.getPoint(t2);var tangent=optionalTarget||(pt1.isVector2?new Vector2():new Vector3());tangent.copy(pt2).sub(pt1).normalize();return tangent;},getTangentAt:function getTangentAt(u,optionalTarget){var t=this.getUtoTmapping(u);return this.getTangent(t,optionalTarget);},computeFrenetFrames:function computeFrenetFrames(segments,closed){var normal=new Vector3();var tangents=[];var normals=[];var binormals=[];var vec=new Vector3();var mat=new Matrix4();for(var _i246=0;_i246<=segments;_i246++){var u=_i246/segments;tangents[_i246]=this.getTangentAt(u,new Vector3());tangents[_i246].normalize();}\nnormals[0]=new Vector3();binormals[0]=new Vector3();var min=Number.MAX_VALUE;var tx=Math.abs(tangents[0].x);var ty=Math.abs(tangents[0].y);var tz=Math.abs(tangents[0].z);if(tx<=min){min=tx;normal.set(1,0,0);}if(ty<=min){min=ty;normal.set(0,1,0);}if(tz<=min){normal.set(0,0,1);}vec.crossVectors(tangents[0],normal).normalize();normals[0].crossVectors(tangents[0],vec);binormals[0].crossVectors(tangents[0],normals[0]);for(var _i247=1;_i247<=segments;_i247++){normals[_i247]=normals[_i247-1].clone();binormals[_i247]=binormals[_i247-1].clone();vec.crossVectors(tangents[_i247-1],tangents[_i247]);if(vec.length()>Number.EPSILON){vec.normalize();var theta=Math.acos(MathUtils.clamp(tangents[_i247-1].dot(tangents[_i247]),-1,1));normals[_i247].applyMatrix4(mat.makeRotationAxis(vec,theta));}binormals[_i247].crossVectors(tangents[_i247],normals[_i247]);}\nif(closed===true){var _theta=Math.acos(MathUtils.clamp(normals[0].dot(normals[segments]),-1,1));_theta/=segments;if(tangents[0].dot(vec.crossVectors(normals[0],normals[segments]))>0){_theta=-_theta;}for(var _i248=1;_i248<=segments;_i248++){normals[_i248].applyMatrix4(mat.makeRotationAxis(tangents[_i248],_theta*_i248));binormals[_i248].crossVectors(tangents[_i248],normals[_i248]);}}return{tangents:tangents,normals:normals,binormals:binormals};},clone:function clone(){return new this.constructor().copy(this);},copy:function copy(source){this.arcLengthDivisions=source.arcLengthDivisions;return this;},toJSON:function toJSON(){var data={metadata:{version:4.5,type:'Curve',generator:'Curve.toJSON'}};data.arcLengthDivisions=this.arcLengthDivisions;data.type=this.type;return data;},fromJSON:function fromJSON(json){this.arcLengthDivisions=json.arcLengthDivisions;return this;}});function EllipseCurve(aX,aY,xRadius,yRadius,aStartAngle,aEndAngle,aClockwise,aRotation){Curve.call(this);this.type='EllipseCurve';this.aX=aX||0;this.aY=aY||0;this.xRadius=xRadius||1;this.yRadius=yRadius||1;this.aStartAngle=aStartAngle||0;this.aEndAngle=aEndAngle||2*Math.PI;this.aClockwise=aClockwise||false;this.aRotation=aRotation||0;}EllipseCurve.prototype=Object.create(Curve.prototype);EllipseCurve.prototype.constructor=EllipseCurve;EllipseCurve.prototype.isEllipseCurve=true;EllipseCurve.prototype.getPoint=function(t,optionalTarget){var point=optionalTarget||new Vector2();var twoPi=Math.PI*2;var deltaAngle=this.aEndAngle-this.aStartAngle;var samePoints=Math.abs(deltaAngle)<Number.EPSILON;while(deltaAngle<0){deltaAngle+=twoPi;}while(deltaAngle>twoPi){deltaAngle-=twoPi;}if(deltaAngle<Number.EPSILON){if(samePoints){deltaAngle=0;}else{deltaAngle=twoPi;}}if(this.aClockwise===true&&!samePoints){if(deltaAngle===twoPi){deltaAngle=-twoPi;}else{deltaAngle=deltaAngle-twoPi;}}var angle=this.aStartAngle+t*deltaAngle;var x=this.aX+this.xRadius*Math.cos(angle);var y=this.aY+this.yRadius*Math.sin(angle);if(this.aRotation!==0){var cos=Math.cos(this.aRotation);var sin=Math.sin(this.aRotation);var tx=x-this.aX;var ty=y-this.aY;x=tx*cos-ty*sin+this.aX;y=tx*sin+ty*cos+this.aY;}return point.set(x,y);};EllipseCurve.prototype.copy=function(source){Curve.prototype.copy.call(this,source);this.aX=source.aX;this.aY=source.aY;this.xRadius=source.xRadius;this.yRadius=source.yRadius;this.aStartAngle=source.aStartAngle;this.aEndAngle=source.aEndAngle;this.aClockwise=source.aClockwise;this.aRotation=source.aRotation;return this;};EllipseCurve.prototype.toJSON=function(){var data=Curve.prototype.toJSON.call(this);data.aX=this.aX;data.aY=this.aY;data.xRadius=this.xRadius;data.yRadius=this.yRadius;data.aStartAngle=this.aStartAngle;data.aEndAngle=this.aEndAngle;data.aClockwise=this.aClockwise;data.aRotation=this.aRotation;return data;};EllipseCurve.prototype.fromJSON=function(json){Curve.prototype.fromJSON.call(this,json);this.aX=json.aX;this.aY=json.aY;this.xRadius=json.xRadius;this.yRadius=json.yRadius;this.aStartAngle=json.aStartAngle;this.aEndAngle=json.aEndAngle;this.aClockwise=json.aClockwise;this.aRotation=json.aRotation;return this;};function ArcCurve(aX,aY,aRadius,aStartAngle,aEndAngle,aClockwise){EllipseCurve.call(this,aX,aY,aRadius,aRadius,aStartAngle,aEndAngle,aClockwise);this.type='ArcCurve';}ArcCurve.prototype=Object.create(EllipseCurve.prototype);ArcCurve.prototype.constructor=ArcCurve;ArcCurve.prototype.isArcCurve=true;function CubicPoly(){var c0=0,c1=0,c2=0,c3=0;function init(x0,x1,t0,t1){c0=x0;c1=t0;c2=-3*x0+3*x1-2*t0-t1;c3=2*x0-2*x1+t0+t1;}return{initCatmullRom:function initCatmullRom(x0,x1,x2,x3,tension){init(x1,x2,tension*(x2-x0),tension*(x3-x1));},initNonuniformCatmullRom:function initNonuniformCatmullRom(x0,x1,x2,x3,dt0,dt1,dt2){var t1=(x1-x0)/dt0-(x2-x0)/(dt0+dt1)+(x2-x1)/dt1;var t2=(x2-x1)/dt1-(x3-x1)/(dt1+dt2)+(x3-x2)/dt2;t1*=dt1;t2*=dt1;init(x1,x2,t1,t2);},calc:function calc(t){var t2=t*t;var t3=t2*t;return c0+c1*t+c2*t2+c3*t3;}};}\nvar tmp=new Vector3();var px=new CubicPoly(),py=new CubicPoly(),pz=new CubicPoly();function CatmullRomCurve3(points,closed,curveType,tension){Curve.call(this);this.type='CatmullRomCurve3';this.points=points||[];this.closed=closed||false;this.curveType=curveType||'centripetal';this.tension=tension!==undefined?tension:0.5;}CatmullRomCurve3.prototype=Object.create(Curve.prototype);CatmullRomCurve3.prototype.constructor=CatmullRomCurve3;CatmullRomCurve3.prototype.isCatmullRomCurve3=true;CatmullRomCurve3.prototype.getPoint=function(t,optionalTarget){var point=optionalTarget||new Vector3();var points=this.points;var l=points.length;var p=(l-(this.closed?0:1))*t;var intPoint=Math.floor(p);var weight=p-intPoint;if(this.closed){intPoint+=intPoint>0?0:(Math.floor(Math.abs(intPoint)/l)+1)*l;}else if(weight===0&&intPoint===l-1){intPoint=l-2;weight=1;}var p0,p3;if(this.closed||intPoint>0){p0=points[(intPoint-1)%l];}else{tmp.subVectors(points[0],points[1]).add(points[0]);p0=tmp;}var p1=points[intPoint%l];var p2=points[(intPoint+1)%l];if(this.closed||intPoint+2<l){p3=points[(intPoint+2)%l];}else{tmp.subVectors(points[l-1],points[l-2]).add(points[l-1]);p3=tmp;}if(this.curveType==='centripetal'||this.curveType==='chordal'){var pow=this.curveType==='chordal'?0.5:0.25;var dt0=Math.pow(p0.distanceToSquared(p1),pow);var dt1=Math.pow(p1.distanceToSquared(p2),pow);var dt2=Math.pow(p2.distanceToSquared(p3),pow);if(dt1<1e-4)dt1=1.0;if(dt0<1e-4)dt0=dt1;if(dt2<1e-4)dt2=dt1;px.initNonuniformCatmullRom(p0.x,p1.x,p2.x,p3.x,dt0,dt1,dt2);py.initNonuniformCatmullRom(p0.y,p1.y,p2.y,p3.y,dt0,dt1,dt2);pz.initNonuniformCatmullRom(p0.z,p1.z,p2.z,p3.z,dt0,dt1,dt2);}else if(this.curveType==='catmullrom'){px.initCatmullRom(p0.x,p1.x,p2.x,p3.x,this.tension);py.initCatmullRom(p0.y,p1.y,p2.y,p3.y,this.tension);pz.initCatmullRom(p0.z,p1.z,p2.z,p3.z,this.tension);}point.set(px.calc(weight),py.calc(weight),pz.calc(weight));return point;};CatmullRomCurve3.prototype.copy=function(source){Curve.prototype.copy.call(this,source);this.points=[];for(var _i249=0,l=source.points.length;_i249<l;_i249++){var point=source.points[_i249];this.points.push(point.clone());}this.closed=source.closed;this.curveType=source.curveType;this.tension=source.tension;return this;};CatmullRomCurve3.prototype.toJSON=function(){var data=Curve.prototype.toJSON.call(this);data.points=[];for(var _i250=0,l=this.points.length;_i250<l;_i250++){var point=this.points[_i250];data.points.push(point.toArray());}data.closed=this.closed;data.curveType=this.curveType;data.tension=this.tension;return data;};CatmullRomCurve3.prototype.fromJSON=function(json){Curve.prototype.fromJSON.call(this,json);this.points=[];for(var _i251=0,l=json.points.length;_i251<l;_i251++){var point=json.points[_i251];this.points.push(new Vector3().fromArray(point));}this.closed=json.closed;this.curveType=json.curveType;this.tension=json.tension;return this;};function CatmullRom(t,p0,p1,p2,p3){var v0=(p2-p0)*0.5;var v1=(p3-p1)*0.5;var t2=t*t;var t3=t*t2;return(2*p1-2*p2+v0+v1)*t3+(-3*p1+3*p2-2*v0-v1)*t2+v0*t+p1;}\nfunction QuadraticBezierP0(t,p){var k=1-t;return k*k*p;}function QuadraticBezierP1(t,p){return 2*(1-t)*t*p;}function QuadraticBezierP2(t,p){return t*t*p;}function QuadraticBezier(t,p0,p1,p2){return QuadraticBezierP0(t,p0)+QuadraticBezierP1(t,p1)+QuadraticBezierP2(t,p2);}\nfunction CubicBezierP0(t,p){var k=1-t;return k*k*k*p;}function CubicBezierP1(t,p){var k=1-t;return 3*k*k*t*p;}function CubicBezierP2(t,p){return 3*(1-t)*t*t*p;}function CubicBezierP3(t,p){return t*t*t*p;}function CubicBezier(t,p0,p1,p2,p3){return CubicBezierP0(t,p0)+CubicBezierP1(t,p1)+CubicBezierP2(t,p2)+CubicBezierP3(t,p3);}function CubicBezierCurve(v0,v1,v2,v3){Curve.call(this);this.type='CubicBezierCurve';this.v0=v0||new Vector2();this.v1=v1||new Vector2();this.v2=v2||new Vector2();this.v3=v3||new Vector2();}CubicBezierCurve.prototype=Object.create(Curve.prototype);CubicBezierCurve.prototype.constructor=CubicBezierCurve;CubicBezierCurve.prototype.isCubicBezierCurve=true;CubicBezierCurve.prototype.getPoint=function(t,optionalTarget){var point=optionalTarget||new Vector2();var v0=this.v0,v1=this.v1,v2=this.v2,v3=this.v3;point.set(CubicBezier(t,v0.x,v1.x,v2.x,v3.x),CubicBezier(t,v0.y,v1.y,v2.y,v3.y));return point;};CubicBezierCurve.prototype.copy=function(source){Curve.prototype.copy.call(this,source);this.v0.copy(source.v0);this.v1.copy(source.v1);this.v2.copy(source.v2);this.v3.copy(source.v3);return this;};CubicBezierCurve.prototype.toJSON=function(){var data=Curve.prototype.toJSON.call(this);data.v0=this.v0.toArray();data.v1=this.v1.toArray();data.v2=this.v2.toArray();data.v3=this.v3.toArray();return data;};CubicBezierCurve.prototype.fromJSON=function(json){Curve.prototype.fromJSON.call(this,json);this.v0.fromArray(json.v0);this.v1.fromArray(json.v1);this.v2.fromArray(json.v2);this.v3.fromArray(json.v3);return this;};function CubicBezierCurve3(v0,v1,v2,v3){Curve.call(this);this.type='CubicBezierCurve3';this.v0=v0||new Vector3();this.v1=v1||new Vector3();this.v2=v2||new Vector3();this.v3=v3||new Vector3();}CubicBezierCurve3.prototype=Object.create(Curve.prototype);CubicBezierCurve3.prototype.constructor=CubicBezierCurve3;CubicBezierCurve3.prototype.isCubicBezierCurve3=true;CubicBezierCurve3.prototype.getPoint=function(t,optionalTarget){var point=optionalTarget||new Vector3();var v0=this.v0,v1=this.v1,v2=this.v2,v3=this.v3;point.set(CubicBezier(t,v0.x,v1.x,v2.x,v3.x),CubicBezier(t,v0.y,v1.y,v2.y,v3.y),CubicBezier(t,v0.z,v1.z,v2.z,v3.z));return point;};CubicBezierCurve3.prototype.copy=function(source){Curve.prototype.copy.call(this,source);this.v0.copy(source.v0);this.v1.copy(source.v1);this.v2.copy(source.v2);this.v3.copy(source.v3);return this;};CubicBezierCurve3.prototype.toJSON=function(){var data=Curve.prototype.toJSON.call(this);data.v0=this.v0.toArray();data.v1=this.v1.toArray();data.v2=this.v2.toArray();data.v3=this.v3.toArray();return data;};CubicBezierCurve3.prototype.fromJSON=function(json){Curve.prototype.fromJSON.call(this,json);this.v0.fromArray(json.v0);this.v1.fromArray(json.v1);this.v2.fromArray(json.v2);this.v3.fromArray(json.v3);return this;};function LineCurve(v1,v2){Curve.call(this);this.type='LineCurve';this.v1=v1||new Vector2();this.v2=v2||new Vector2();}LineCurve.prototype=Object.create(Curve.prototype);LineCurve.prototype.constructor=LineCurve;LineCurve.prototype.isLineCurve=true;LineCurve.prototype.getPoint=function(t,optionalTarget){var point=optionalTarget||new Vector2();if(t===1){point.copy(this.v2);}else{point.copy(this.v2).sub(this.v1);point.multiplyScalar(t).add(this.v1);}return point;};LineCurve.prototype.getPointAt=function(u,optionalTarget){return this.getPoint(u,optionalTarget);};LineCurve.prototype.getTangent=function(t,optionalTarget){var tangent=optionalTarget||new Vector2();tangent.copy(this.v2).sub(this.v1).normalize();return tangent;};LineCurve.prototype.copy=function(source){Curve.prototype.copy.call(this,source);this.v1.copy(source.v1);this.v2.copy(source.v2);return this;};LineCurve.prototype.toJSON=function(){var data=Curve.prototype.toJSON.call(this);data.v1=this.v1.toArray();data.v2=this.v2.toArray();return data;};LineCurve.prototype.fromJSON=function(json){Curve.prototype.fromJSON.call(this,json);this.v1.fromArray(json.v1);this.v2.fromArray(json.v2);return this;};function LineCurve3(v1,v2){Curve.call(this);this.type='LineCurve3';this.v1=v1||new Vector3();this.v2=v2||new Vector3();}LineCurve3.prototype=Object.create(Curve.prototype);LineCurve3.prototype.constructor=LineCurve3;LineCurve3.prototype.isLineCurve3=true;LineCurve3.prototype.getPoint=function(t,optionalTarget){var point=optionalTarget||new Vector3();if(t===1){point.copy(this.v2);}else{point.copy(this.v2).sub(this.v1);point.multiplyScalar(t).add(this.v1);}return point;};LineCurve3.prototype.getPointAt=function(u,optionalTarget){return this.getPoint(u,optionalTarget);};LineCurve3.prototype.copy=function(source){Curve.prototype.copy.call(this,source);this.v1.copy(source.v1);this.v2.copy(source.v2);return this;};LineCurve3.prototype.toJSON=function(){var data=Curve.prototype.toJSON.call(this);data.v1=this.v1.toArray();data.v2=this.v2.toArray();return data;};LineCurve3.prototype.fromJSON=function(json){Curve.prototype.fromJSON.call(this,json);this.v1.fromArray(json.v1);this.v2.fromArray(json.v2);return this;};function QuadraticBezierCurve(v0,v1,v2){Curve.call(this);this.type='QuadraticBezierCurve';this.v0=v0||new Vector2();this.v1=v1||new Vector2();this.v2=v2||new Vector2();}QuadraticBezierCurve.prototype=Object.create(Curve.prototype);QuadraticBezierCurve.prototype.constructor=QuadraticBezierCurve;QuadraticBezierCurve.prototype.isQuadraticBezierCurve=true;QuadraticBezierCurve.prototype.getPoint=function(t,optionalTarget){var point=optionalTarget||new Vector2();var v0=this.v0,v1=this.v1,v2=this.v2;point.set(QuadraticBezier(t,v0.x,v1.x,v2.x),QuadraticBezier(t,v0.y,v1.y,v2.y));return point;};QuadraticBezierCurve.prototype.copy=function(source){Curve.prototype.copy.call(this,source);this.v0.copy(source.v0);this.v1.copy(source.v1);this.v2.copy(source.v2);return this;};QuadraticBezierCurve.prototype.toJSON=function(){var data=Curve.prototype.toJSON.call(this);data.v0=this.v0.toArray();data.v1=this.v1.toArray();data.v2=this.v2.toArray();return data;};QuadraticBezierCurve.prototype.fromJSON=function(json){Curve.prototype.fromJSON.call(this,json);this.v0.fromArray(json.v0);this.v1.fromArray(json.v1);this.v2.fromArray(json.v2);return this;};function QuadraticBezierCurve3(v0,v1,v2){Curve.call(this);this.type='QuadraticBezierCurve3';this.v0=v0||new Vector3();this.v1=v1||new Vector3();this.v2=v2||new Vector3();}QuadraticBezierCurve3.prototype=Object.create(Curve.prototype);QuadraticBezierCurve3.prototype.constructor=QuadraticBezierCurve3;QuadraticBezierCurve3.prototype.isQuadraticBezierCurve3=true;QuadraticBezierCurve3.prototype.getPoint=function(t,optionalTarget){var point=optionalTarget||new Vector3();var v0=this.v0,v1=this.v1,v2=this.v2;point.set(QuadraticBezier(t,v0.x,v1.x,v2.x),QuadraticBezier(t,v0.y,v1.y,v2.y),QuadraticBezier(t,v0.z,v1.z,v2.z));return point;};QuadraticBezierCurve3.prototype.copy=function(source){Curve.prototype.copy.call(this,source);this.v0.copy(source.v0);this.v1.copy(source.v1);this.v2.copy(source.v2);return this;};QuadraticBezierCurve3.prototype.toJSON=function(){var data=Curve.prototype.toJSON.call(this);data.v0=this.v0.toArray();data.v1=this.v1.toArray();data.v2=this.v2.toArray();return data;};QuadraticBezierCurve3.prototype.fromJSON=function(json){Curve.prototype.fromJSON.call(this,json);this.v0.fromArray(json.v0);this.v1.fromArray(json.v1);this.v2.fromArray(json.v2);return this;};function SplineCurve(points){Curve.call(this);this.type='SplineCurve';this.points=points||[];}SplineCurve.prototype=Object.create(Curve.prototype);SplineCurve.prototype.constructor=SplineCurve;SplineCurve.prototype.isSplineCurve=true;SplineCurve.prototype.getPoint=function(t,optionalTarget){var point=optionalTarget||new Vector2();var points=this.points;var p=(points.length-1)*t;var intPoint=Math.floor(p);var weight=p-intPoint;var p0=points[intPoint===0?intPoint:intPoint-1];var p1=points[intPoint];var p2=points[intPoint>points.length-2?points.length-1:intPoint+1];var p3=points[intPoint>points.length-3?points.length-1:intPoint+2];point.set(CatmullRom(weight,p0.x,p1.x,p2.x,p3.x),CatmullRom(weight,p0.y,p1.y,p2.y,p3.y));return point;};SplineCurve.prototype.copy=function(source){Curve.prototype.copy.call(this,source);this.points=[];for(var _i252=0,l=source.points.length;_i252<l;_i252++){var point=source.points[_i252];this.points.push(point.clone());}return this;};SplineCurve.prototype.toJSON=function(){var data=Curve.prototype.toJSON.call(this);data.points=[];for(var _i253=0,l=this.points.length;_i253<l;_i253++){var point=this.points[_i253];data.points.push(point.toArray());}return data;};SplineCurve.prototype.fromJSON=function(json){Curve.prototype.fromJSON.call(this,json);this.points=[];for(var _i254=0,l=json.points.length;_i254<l;_i254++){var point=json.points[_i254];this.points.push(new Vector2().fromArray(point));}return this;};var Curves=Object.freeze({__proto__:null,ArcCurve:ArcCurve,CatmullRomCurve3:CatmullRomCurve3,CubicBezierCurve:CubicBezierCurve,CubicBezierCurve3:CubicBezierCurve3,EllipseCurve:EllipseCurve,LineCurve:LineCurve,LineCurve3:LineCurve3,QuadraticBezierCurve:QuadraticBezierCurve,QuadraticBezierCurve3:QuadraticBezierCurve3,SplineCurve:SplineCurve});function CurvePath(){Curve.call(this);this.type='CurvePath';this.curves=[];this.autoClose=false;}CurvePath.prototype=Object.assign(Object.create(Curve.prototype),{constructor:CurvePath,add:function add(curve){this.curves.push(curve);},closePath:function closePath(){var startPoint=this.curves[0].getPoint(0);var endPoint=this.curves[this.curves.length-1].getPoint(1);if(!startPoint.equals(endPoint)){this.curves.push(new LineCurve(endPoint,startPoint));}},getPoint:function getPoint(t){var d=t*this.getLength();var curveLengths=this.getCurveLengths();var i=0;while(i<curveLengths.length){if(curveLengths[i]>=d){var diff=curveLengths[i]-d;var curve=this.curves[i];var segmentLength=curve.getLength();var u=segmentLength===0?0:1-diff/segmentLength;return curve.getPointAt(u);}i++;}return null;},getLength:function getLength(){var lens=this.getCurveLengths();return lens[lens.length-1];},updateArcLengths:function updateArcLengths(){this.needsUpdate=true;this.cacheLengths=null;this.getCurveLengths();},getCurveLengths:function getCurveLengths(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length){return this.cacheLengths;}\nvar lengths=[];var sums=0;for(var _i255=0,l=this.curves.length;_i255<l;_i255++){sums+=this.curves[_i255].getLength();lengths.push(sums);}this.cacheLengths=lengths;return lengths;},getSpacedPoints:function getSpacedPoints(divisions){if(divisions===undefined)divisions=40;var points=[];for(var _i256=0;_i256<=divisions;_i256++){points.push(this.getPoint(_i256/divisions));}if(this.autoClose){points.push(points[0]);}return points;},getPoints:function getPoints(divisions){divisions=divisions||12;var points=[];var last;for(var _i257=0,curves=this.curves;_i257<curves.length;_i257++){var curve=curves[_i257];var resolution=curve&&curve.isEllipseCurve?divisions*2:curve&&(curve.isLineCurve||curve.isLineCurve3)?1:curve&&curve.isSplineCurve?divisions*curve.points.length:divisions;var pts=curve.getPoints(resolution);for(var j=0;j<pts.length;j++){var point=pts[j];if(last&&last.equals(point))continue;points.push(point);last=point;}}if(this.autoClose&&points.length>1&&!points[points.length-1].equals(points[0])){points.push(points[0]);}return points;},copy:function copy(source){Curve.prototype.copy.call(this,source);this.curves=[];for(var _i258=0,l=source.curves.length;_i258<l;_i258++){var curve=source.curves[_i258];this.curves.push(curve.clone());}this.autoClose=source.autoClose;return this;},toJSON:function toJSON(){var data=Curve.prototype.toJSON.call(this);data.autoClose=this.autoClose;data.curves=[];for(var _i259=0,l=this.curves.length;_i259<l;_i259++){var curve=this.curves[_i259];data.curves.push(curve.toJSON());}return data;},fromJSON:function fromJSON(json){Curve.prototype.fromJSON.call(this,json);this.autoClose=json.autoClose;this.curves=[];for(var _i260=0,l=json.curves.length;_i260<l;_i260++){var curve=json.curves[_i260];this.curves.push(new Curves[curve.type]().fromJSON(curve));}return this;}});function Path(points){CurvePath.call(this);this.type='Path';this.currentPoint=new Vector2();if(points){this.setFromPoints(points);}}Path.prototype=Object.assign(Object.create(CurvePath.prototype),{constructor:Path,setFromPoints:function setFromPoints(points){this.moveTo(points[0].x,points[0].y);for(var _i261=1,l=points.length;_i261<l;_i261++){this.lineTo(points[_i261].x,points[_i261].y);}return this;},moveTo:function moveTo(x,y){this.currentPoint.set(x,y);return this;},lineTo:function lineTo(x,y){var curve=new LineCurve(this.currentPoint.clone(),new Vector2(x,y));this.curves.push(curve);this.currentPoint.set(x,y);return this;},quadraticCurveTo:function quadraticCurveTo(aCPx,aCPy,aX,aY){var curve=new QuadraticBezierCurve(this.currentPoint.clone(),new Vector2(aCPx,aCPy),new Vector2(aX,aY));this.curves.push(curve);this.currentPoint.set(aX,aY);return this;},bezierCurveTo:function bezierCurveTo(aCP1x,aCP1y,aCP2x,aCP2y,aX,aY){var curve=new CubicBezierCurve(this.currentPoint.clone(),new Vector2(aCP1x,aCP1y),new Vector2(aCP2x,aCP2y),new Vector2(aX,aY));this.curves.push(curve);this.currentPoint.set(aX,aY);return this;},splineThru:function splineThru(pts){var npts=[this.currentPoint.clone()].concat(pts);var curve=new SplineCurve(npts);this.curves.push(curve);this.currentPoint.copy(pts[pts.length-1]);return this;},arc:function arc(aX,aY,aRadius,aStartAngle,aEndAngle,aClockwise){var x0=this.currentPoint.x;var y0=this.currentPoint.y;this.absarc(aX+x0,aY+y0,aRadius,aStartAngle,aEndAngle,aClockwise);return this;},absarc:function absarc(aX,aY,aRadius,aStartAngle,aEndAngle,aClockwise){this.absellipse(aX,aY,aRadius,aRadius,aStartAngle,aEndAngle,aClockwise);return this;},ellipse:function ellipse(aX,aY,xRadius,yRadius,aStartAngle,aEndAngle,aClockwise,aRotation){var x0=this.currentPoint.x;var y0=this.currentPoint.y;this.absellipse(aX+x0,aY+y0,xRadius,yRadius,aStartAngle,aEndAngle,aClockwise,aRotation);return this;},absellipse:function absellipse(aX,aY,xRadius,yRadius,aStartAngle,aEndAngle,aClockwise,aRotation){var curve=new EllipseCurve(aX,aY,xRadius,yRadius,aStartAngle,aEndAngle,aClockwise,aRotation);if(this.curves.length>0){var firstPoint=curve.getPoint(0);if(!firstPoint.equals(this.currentPoint)){this.lineTo(firstPoint.x,firstPoint.y);}}this.curves.push(curve);var lastPoint=curve.getPoint(1);this.currentPoint.copy(lastPoint);return this;},copy:function copy(source){CurvePath.prototype.copy.call(this,source);this.currentPoint.copy(source.currentPoint);return this;},toJSON:function toJSON(){var data=CurvePath.prototype.toJSON.call(this);data.currentPoint=this.currentPoint.toArray();return data;},fromJSON:function fromJSON(json){CurvePath.prototype.fromJSON.call(this,json);this.currentPoint.fromArray(json.currentPoint);return this;}});function Shape(points){Path.call(this,points);this.uuid=MathUtils.generateUUID();this.type='Shape';this.holes=[];}Shape.prototype=Object.assign(Object.create(Path.prototype),{constructor:Shape,getPointsHoles:function getPointsHoles(divisions){var holesPts=[];for(var _i262=0,l=this.holes.length;_i262<l;_i262++){holesPts[_i262]=this.holes[_i262].getPoints(divisions);}return holesPts;},extractPoints:function extractPoints(divisions){return{shape:this.getPoints(divisions),holes:this.getPointsHoles(divisions)};},copy:function copy(source){Path.prototype.copy.call(this,source);this.holes=[];for(var _i263=0,l=source.holes.length;_i263<l;_i263++){var hole=source.holes[_i263];this.holes.push(hole.clone());}return this;},toJSON:function toJSON(){var data=Path.prototype.toJSON.call(this);data.uuid=this.uuid;data.holes=[];for(var _i264=0,l=this.holes.length;_i264<l;_i264++){var hole=this.holes[_i264];data.holes.push(hole.toJSON());}return data;},fromJSON:function fromJSON(json){Path.prototype.fromJSON.call(this,json);this.uuid=json.uuid;this.holes=[];for(var _i265=0,l=json.holes.length;_i265<l;_i265++){var hole=json.holes[_i265];this.holes.push(new Path().fromJSON(hole));}return this;}});function Light(color,intensity){Object3D.call(this);this.type='Light';this.color=new Color(color);this.intensity=intensity!==undefined?intensity:1;}Light.prototype=Object.assign(Object.create(Object3D.prototype),{constructor:Light,isLight:true,copy:function copy(source){Object3D.prototype.copy.call(this,source);this.color.copy(source.color);this.intensity=source.intensity;return this;},toJSON:function toJSON(meta){var data=Object3D.prototype.toJSON.call(this,meta);data.object.color=this.color.getHex();data.object.intensity=this.intensity;if(this.groundColor!==undefined)data.object.groundColor=this.groundColor.getHex();if(this.distance!==undefined)data.object.distance=this.distance;if(this.angle!==undefined)data.object.angle=this.angle;if(this.decay!==undefined)data.object.decay=this.decay;if(this.penumbra!==undefined)data.object.penumbra=this.penumbra;if(this.shadow!==undefined)data.object.shadow=this.shadow.toJSON();return data;}});function HemisphereLight(skyColor,groundColor,intensity){Light.call(this,skyColor,intensity);this.type='HemisphereLight';this.position.copy(Object3D.DefaultUp);this.updateMatrix();this.groundColor=new Color(groundColor);}HemisphereLight.prototype=Object.assign(Object.create(Light.prototype),{constructor:HemisphereLight,isHemisphereLight:true,copy:function copy(source){Light.prototype.copy.call(this,source);this.groundColor.copy(source.groundColor);return this;}});function LightShadow(camera){this.camera=camera;this.bias=0;this.normalBias=0;this.radius=1;this.mapSize=new Vector2(512,512);this.map=null;this.mapPass=null;this.matrix=new Matrix4();this.autoUpdate=true;this.needsUpdate=false;this._frustum=new Frustum();this._frameExtents=new Vector2(1,1);this._viewportCount=1;this._viewports=[new Vector4(0,0,1,1)];}Object.assign(LightShadow.prototype,{_projScreenMatrix:new Matrix4(),_lightPositionWorld:new Vector3(),_lookTarget:new Vector3(),getViewportCount:function getViewportCount(){return this._viewportCount;},getFrustum:function getFrustum(){return this._frustum;},updateMatrices:function updateMatrices(light){var shadowCamera=this.camera,shadowMatrix=this.matrix,projScreenMatrix=this._projScreenMatrix,lookTarget=this._lookTarget,lightPositionWorld=this._lightPositionWorld;lightPositionWorld.setFromMatrixPosition(light.matrixWorld);shadowCamera.position.copy(lightPositionWorld);lookTarget.setFromMatrixPosition(light.target.matrixWorld);shadowCamera.lookAt(lookTarget);shadowCamera.updateMatrixWorld();projScreenMatrix.multiplyMatrices(shadowCamera.projectionMatrix,shadowCamera.matrixWorldInverse);this._frustum.setFromProjectionMatrix(projScreenMatrix);shadowMatrix.set(0.5,0.0,0.0,0.5,0.0,0.5,0.0,0.5,0.0,0.0,0.5,0.5,0.0,0.0,0.0,1.0);shadowMatrix.multiply(shadowCamera.projectionMatrix);shadowMatrix.multiply(shadowCamera.matrixWorldInverse);},getViewport:function getViewport(viewportIndex){return this._viewports[viewportIndex];},getFrameExtents:function getFrameExtents(){return this._frameExtents;},copy:function copy(source){this.camera=source.camera.clone();this.bias=source.bias;this.radius=source.radius;this.mapSize.copy(source.mapSize);return this;},clone:function clone(){return new this.constructor().copy(this);},toJSON:function toJSON(){var object={};if(this.bias!==0)object.bias=this.bias;if(this.normalBias!==0)object.normalBias=this.normalBias;if(this.radius!==1)object.radius=this.radius;if(this.mapSize.x!==512||this.mapSize.y!==512)object.mapSize=this.mapSize.toArray();object.camera=this.camera.toJSON(false).object;delete object.camera.matrix;return object;}});function SpotLightShadow(){LightShadow.call(this,new PerspectiveCamera(50,1,0.5,500));this.focus=1;}SpotLightShadow.prototype=Object.assign(Object.create(LightShadow.prototype),{constructor:SpotLightShadow,isSpotLightShadow:true,updateMatrices:function updateMatrices(light){var camera=this.camera;var fov=MathUtils.RAD2DEG*2*light.angle*this.focus;var aspect=this.mapSize.width/this.mapSize.height;var far=light.distance||camera.far;if(fov!==camera.fov||aspect!==camera.aspect||far!==camera.far){camera.fov=fov;camera.aspect=aspect;camera.far=far;camera.updateProjectionMatrix();}LightShadow.prototype.updateMatrices.call(this,light);}});function SpotLight(color,intensity,distance,angle,penumbra,decay){Light.call(this,color,intensity);this.type='SpotLight';this.position.copy(Object3D.DefaultUp);this.updateMatrix();this.target=new Object3D();Object.defineProperty(this,'power',{get:function get(){return this.intensity*Math.PI;},set:function set(power){this.intensity=power/Math.PI;}});this.distance=distance!==undefined?distance:0;this.angle=angle!==undefined?angle:Math.PI/3;this.penumbra=penumbra!==undefined?penumbra:0;this.decay=decay!==undefined?decay:1;this.shadow=new SpotLightShadow();}SpotLight.prototype=Object.assign(Object.create(Light.prototype),{constructor:SpotLight,isSpotLight:true,copy:function copy(source){Light.prototype.copy.call(this,source);this.distance=source.distance;this.angle=source.angle;this.penumbra=source.penumbra;this.decay=source.decay;this.target=source.target.clone();this.shadow=source.shadow.clone();return this;}});function PointLightShadow(){LightShadow.call(this,new PerspectiveCamera(90,1,0.5,500));this._frameExtents=new Vector2(4,2);this._viewportCount=6;this._viewports=[new Vector4(2,1,1,1),new Vector4(0,1,1,1),new Vector4(3,1,1,1),new Vector4(1,1,1,1),new Vector4(3,0,1,1),new Vector4(1,0,1,1)];this._cubeDirections=[new Vector3(1,0,0),new Vector3(-1,0,0),new Vector3(0,0,1),new Vector3(0,0,-1),new Vector3(0,1,0),new Vector3(0,-1,0)];this._cubeUps=[new Vector3(0,1,0),new Vector3(0,1,0),new Vector3(0,1,0),new Vector3(0,1,0),new Vector3(0,0,1),new Vector3(0,0,-1)];}PointLightShadow.prototype=Object.assign(Object.create(LightShadow.prototype),{constructor:PointLightShadow,isPointLightShadow:true,updateMatrices:function updateMatrices(light,viewportIndex){if(viewportIndex===undefined)viewportIndex=0;var camera=this.camera,shadowMatrix=this.matrix,lightPositionWorld=this._lightPositionWorld,lookTarget=this._lookTarget,projScreenMatrix=this._projScreenMatrix;lightPositionWorld.setFromMatrixPosition(light.matrixWorld);camera.position.copy(lightPositionWorld);lookTarget.copy(camera.position);lookTarget.add(this._cubeDirections[viewportIndex]);camera.up.copy(this._cubeUps[viewportIndex]);camera.lookAt(lookTarget);camera.updateMatrixWorld();shadowMatrix.makeTranslation(-lightPositionWorld.x,-lightPositionWorld.y,-lightPositionWorld.z);projScreenMatrix.multiplyMatrices(camera.projectionMatrix,camera.matrixWorldInverse);this._frustum.setFromProjectionMatrix(projScreenMatrix);}});function PointLight(color,intensity,distance,decay){Light.call(this,color,intensity);this.type='PointLight';Object.defineProperty(this,'power',{get:function get(){return this.intensity*4*Math.PI;},set:function set(power){this.intensity=power/(4*Math.PI);}});this.distance=distance!==undefined?distance:0;this.decay=decay!==undefined?decay:1;this.shadow=new PointLightShadow();}PointLight.prototype=Object.assign(Object.create(Light.prototype),{constructor:PointLight,isPointLight:true,copy:function copy(source){Light.prototype.copy.call(this,source);this.distance=source.distance;this.decay=source.decay;this.shadow=source.shadow.clone();return this;}});function OrthographicCamera(left,right,top,bottom,near,far){Camera.call(this);this.type='OrthographicCamera';this.zoom=1;this.view=null;this.left=left!==undefined?left:-1;this.right=right!==undefined?right:1;this.top=top!==undefined?top:1;this.bottom=bottom!==undefined?bottom:-1;this.near=near!==undefined?near:0.1;this.far=far!==undefined?far:2000;this.updateProjectionMatrix();}OrthographicCamera.prototype=Object.assign(Object.create(Camera.prototype),{constructor:OrthographicCamera,isOrthographicCamera:true,copy:function copy(source,recursive){Camera.prototype.copy.call(this,source,recursive);this.left=source.left;this.right=source.right;this.top=source.top;this.bottom=source.bottom;this.near=source.near;this.far=source.far;this.zoom=source.zoom;this.view=source.view===null?null:Object.assign({},source.view);return this;},setViewOffset:function setViewOffset(fullWidth,fullHeight,x,y,width,height){if(this.view===null){this.view={enabled:true,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1};}this.view.enabled=true;this.view.fullWidth=fullWidth;this.view.fullHeight=fullHeight;this.view.offsetX=x;this.view.offsetY=y;this.view.width=width;this.view.height=height;this.updateProjectionMatrix();},clearViewOffset:function clearViewOffset(){if(this.view!==null){this.view.enabled=false;}this.updateProjectionMatrix();},updateProjectionMatrix:function updateProjectionMatrix(){var dx=(this.right-this.left)/(2*this.zoom);var dy=(this.top-this.bottom)/(2*this.zoom);var cx=(this.right+this.left)/2;var cy=(this.top+this.bottom)/2;var left=cx-dx;var right=cx+dx;var top=cy+dy;var bottom=cy-dy;if(this.view!==null&&this.view.enabled){var scaleW=(this.right-this.left)/this.view.fullWidth/this.zoom;var scaleH=(this.top-this.bottom)/this.view.fullHeight/this.zoom;left+=scaleW*this.view.offsetX;right=left+scaleW*this.view.width;top-=scaleH*this.view.offsetY;bottom=top-scaleH*this.view.height;}this.projectionMatrix.makeOrthographic(left,right,top,bottom,this.near,this.far);this.projectionMatrixInverse.getInverse(this.projectionMatrix);},toJSON:function toJSON(meta){var data=Object3D.prototype.toJSON.call(this,meta);data.object.zoom=this.zoom;data.object.left=this.left;data.object.right=this.right;data.object.top=this.top;data.object.bottom=this.bottom;data.object.near=this.near;data.object.far=this.far;if(this.view!==null)data.object.view=Object.assign({},this.view);return data;}});function DirectionalLightShadow(){LightShadow.call(this,new OrthographicCamera(-5,5,5,-5,0.5,500));}DirectionalLightShadow.prototype=Object.assign(Object.create(LightShadow.prototype),{constructor:DirectionalLightShadow,isDirectionalLightShadow:true,updateMatrices:function updateMatrices(light){LightShadow.prototype.updateMatrices.call(this,light);}});function DirectionalLight(color,intensity){Light.call(this,color,intensity);this.type='DirectionalLight';this.position.copy(Object3D.DefaultUp);this.updateMatrix();this.target=new Object3D();this.shadow=new DirectionalLightShadow();}DirectionalLight.prototype=Object.assign(Object.create(Light.prototype),{constructor:DirectionalLight,isDirectionalLight:true,copy:function copy(source){Light.prototype.copy.call(this,source);this.target=source.target.clone();this.shadow=source.shadow.clone();return this;}});function AmbientLight(color,intensity){Light.call(this,color,intensity);this.type='AmbientLight';}AmbientLight.prototype=Object.assign(Object.create(Light.prototype),{constructor:AmbientLight,isAmbientLight:true});function RectAreaLight(color,intensity,width,height){Light.call(this,color,intensity);this.type='RectAreaLight';this.width=width!==undefined?width:10;this.height=height!==undefined?height:10;}RectAreaLight.prototype=Object.assign(Object.create(Light.prototype),{constructor:RectAreaLight,isRectAreaLight:true,copy:function copy(source){Light.prototype.copy.call(this,source);this.width=source.width;this.height=source.height;return this;},toJSON:function toJSON(meta){var data=Light.prototype.toJSON.call(this,meta);data.object.width=this.width;data.object.height=this.height;return data;}});var SphericalHarmonics3=function(){function SphericalHarmonics3(){_classCallCheck(this,SphericalHarmonics3);Object.defineProperty(this,'isSphericalHarmonics3',{value:true});this.coefficients=[];for(var _i266=0;_i266<9;_i266++){this.coefficients.push(new Vector3());}}_createClass(SphericalHarmonics3,[{key:\"set\",value:function set(coefficients){for(var _i267=0;_i267<9;_i267++){this.coefficients[_i267].copy(coefficients[_i267]);}return this;}},{key:\"zero\",value:function zero(){for(var _i268=0;_i268<9;_i268++){this.coefficients[_i268].set(0,0,0);}return this;}},{key:\"getAt\",value:function getAt(normal,target){var x=normal.x,y=normal.y,z=normal.z;var coeff=this.coefficients;target.copy(coeff[0]).multiplyScalar(0.282095);target.addScaledVector(coeff[1],0.488603*y);target.addScaledVector(coeff[2],0.488603*z);target.addScaledVector(coeff[3],0.488603*x);target.addScaledVector(coeff[4],1.092548*(x*y));target.addScaledVector(coeff[5],1.092548*(y*z));target.addScaledVector(coeff[6],0.315392*(3.0*z*z-1.0));target.addScaledVector(coeff[7],1.092548*(x*z));target.addScaledVector(coeff[8],0.546274*(x*x-y*y));return target;}},{key:\"getIrradianceAt\",value:function getIrradianceAt(normal,target){var x=normal.x,y=normal.y,z=normal.z;var coeff=this.coefficients;target.copy(coeff[0]).multiplyScalar(0.886227);target.addScaledVector(coeff[1],2.0*0.511664*y);target.addScaledVector(coeff[2],2.0*0.511664*z);target.addScaledVector(coeff[3],2.0*0.511664*x);target.addScaledVector(coeff[4],2.0*0.429043*x*y);target.addScaledVector(coeff[5],2.0*0.429043*y*z);target.addScaledVector(coeff[6],0.743125*z*z-0.247708);target.addScaledVector(coeff[7],2.0*0.429043*x*z);target.addScaledVector(coeff[8],0.429043*(x*x-y*y));return target;}},{key:\"add\",value:function add(sh){for(var _i269=0;_i269<9;_i269++){this.coefficients[_i269].add(sh.coefficients[_i269]);}return this;}},{key:\"addScaledSH\",value:function addScaledSH(sh,s){for(var _i270=0;_i270<9;_i270++){this.coefficients[_i270].addScaledVector(sh.coefficients[_i270],s);}return this;}},{key:\"scale\",value:function scale(s){for(var _i271=0;_i271<9;_i271++){this.coefficients[_i271].multiplyScalar(s);}return this;}},{key:\"lerp\",value:function lerp(sh,alpha){for(var _i272=0;_i272<9;_i272++){this.coefficients[_i272].lerp(sh.coefficients[_i272],alpha);}return this;}},{key:\"equals\",value:function equals(sh){for(var _i273=0;_i273<9;_i273++){if(!this.coefficients[_i273].equals(sh.coefficients[_i273])){return false;}}return true;}},{key:\"copy\",value:function copy(sh){return this.set(sh.coefficients);}},{key:\"clone\",value:function clone(){return new this.constructor().copy(this);}},{key:\"fromArray\",value:function fromArray(array,offset){if(offset===undefined)offset=0;var coefficients=this.coefficients;for(var _i274=0;_i274<9;_i274++){coefficients[_i274].fromArray(array,offset+_i274*3);}return this;}},{key:\"toArray\",value:function toArray(array,offset){if(array===undefined)array=[];if(offset===undefined)offset=0;var coefficients=this.coefficients;for(var _i275=0;_i275<9;_i275++){coefficients[_i275].toArray(array,offset+_i275*3);}return array;}}],[{key:\"getBasisAt\",value:function getBasisAt(normal,shBasis){var x=normal.x,y=normal.y,z=normal.z;shBasis[0]=0.282095;shBasis[1]=0.488603*y;shBasis[2]=0.488603*z;shBasis[3]=0.488603*x;shBasis[4]=1.092548*x*y;shBasis[5]=1.092548*y*z;shBasis[6]=0.315392*(3*z*z-1);shBasis[7]=1.092548*x*z;shBasis[8]=0.546274*(x*x-y*y);}}]);return SphericalHarmonics3;}();function LightProbe(sh,intensity){Light.call(this,undefined,intensity);this.type='LightProbe';this.sh=sh!==undefined?sh:new SphericalHarmonics3();}LightProbe.prototype=Object.assign(Object.create(Light.prototype),{constructor:LightProbe,isLightProbe:true,copy:function copy(source){Light.prototype.copy.call(this,source);this.sh.copy(source.sh);return this;},fromJSON:function fromJSON(json){this.intensity=json.intensity;this.sh.fromArray(json.sh);return this;},toJSON:function toJSON(meta){var data=Light.prototype.toJSON.call(this,meta);data.object.sh=this.sh.toArray();return data;}});function MaterialLoader(manager){Loader.call(this,manager);this.textures={};}MaterialLoader.prototype=Object.assign(Object.create(Loader.prototype),{constructor:MaterialLoader,load:function load(url,onLoad,onProgress,onError){var scope=this;var loader=new FileLoader(scope.manager);loader.setPath(scope.path);loader.setRequestHeader(scope.requestHeader);loader.setWithCredentials(scope.withCredentials);loader.load(url,function(text){try{onLoad(scope.parse(JSON.parse(text)));}catch(e){if(onError){onError(e);}else{console.error(e);}scope.manager.itemError(url);}},onProgress,onError);},parse:function parse(json){var textures=this.textures;function getTexture(name){if(textures[name]===undefined){console.warn('THREE.MaterialLoader: Undefined texture',name);}return textures[name];}var material=new Materials[json.type]();if(json.uuid!==undefined)material.uuid=json.uuid;if(json.name!==undefined)material.name=json.name;if(json.color!==undefined)material.color.setHex(json.color);if(json.roughness!==undefined)material.roughness=json.roughness;if(json.metalness!==undefined)material.metalness=json.metalness;if(json.sheen!==undefined)material.sheen=new Color().setHex(json.sheen);if(json.emissive!==undefined)material.emissive.setHex(json.emissive);if(json.specular!==undefined)material.specular.setHex(json.specular);if(json.shininess!==undefined)material.shininess=json.shininess;if(json.clearcoat!==undefined)material.clearcoat=json.clearcoat;if(json.clearcoatRoughness!==undefined)material.clearcoatRoughness=json.clearcoatRoughness;if(json.fog!==undefined)material.fog=json.fog;if(json.flatShading!==undefined)material.flatShading=json.flatShading;if(json.blending!==undefined)material.blending=json.blending;if(json.combine!==undefined)material.combine=json.combine;if(json.side!==undefined)material.side=json.side;if(json.opacity!==undefined)material.opacity=json.opacity;if(json.transparent!==undefined)material.transparent=json.transparent;if(json.alphaTest!==undefined)material.alphaTest=json.alphaTest;if(json.depthTest!==undefined)material.depthTest=json.depthTest;if(json.depthWrite!==undefined)material.depthWrite=json.depthWrite;if(json.colorWrite!==undefined)material.colorWrite=json.colorWrite;if(json.stencilWrite!==undefined)material.stencilWrite=json.stencilWrite;if(json.stencilWriteMask!==undefined)material.stencilWriteMask=json.stencilWriteMask;if(json.stencilFunc!==undefined)material.stencilFunc=json.stencilFunc;if(json.stencilRef!==undefined)material.stencilRef=json.stencilRef;if(json.stencilFuncMask!==undefined)material.stencilFuncMask=json.stencilFuncMask;if(json.stencilFail!==undefined)material.stencilFail=json.stencilFail;if(json.stencilZFail!==undefined)material.stencilZFail=json.stencilZFail;if(json.stencilZPass!==undefined)material.stencilZPass=json.stencilZPass;if(json.wireframe!==undefined)material.wireframe=json.wireframe;if(json.wireframeLinewidth!==undefined)material.wireframeLinewidth=json.wireframeLinewidth;if(json.wireframeLinecap!==undefined)material.wireframeLinecap=json.wireframeLinecap;if(json.wireframeLinejoin!==undefined)material.wireframeLinejoin=json.wireframeLinejoin;if(json.rotation!==undefined)material.rotation=json.rotation;if(json.linewidth!==1)material.linewidth=json.linewidth;if(json.dashSize!==undefined)material.dashSize=json.dashSize;if(json.gapSize!==undefined)material.gapSize=json.gapSize;if(json.scale!==undefined)material.scale=json.scale;if(json.polygonOffset!==undefined)material.polygonOffset=json.polygonOffset;if(json.polygonOffsetFactor!==undefined)material.polygonOffsetFactor=json.polygonOffsetFactor;if(json.polygonOffsetUnits!==undefined)material.polygonOffsetUnits=json.polygonOffsetUnits;if(json.skinning!==undefined)material.skinning=json.skinning;if(json.morphTargets!==undefined)material.morphTargets=json.morphTargets;if(json.morphNormals!==undefined)material.morphNormals=json.morphNormals;if(json.dithering!==undefined)material.dithering=json.dithering;if(json.vertexTangents!==undefined)material.vertexTangents=json.vertexTangents;if(json.visible!==undefined)material.visible=json.visible;if(json.toneMapped!==undefined)material.toneMapped=json.toneMapped;if(json.userData!==undefined)material.userData=json.userData;if(json.vertexColors!==undefined){if(typeof json.vertexColors==='number'){material.vertexColors=json.vertexColors>0?true:false;}else{material.vertexColors=json.vertexColors;}}\nif(json.uniforms!==undefined){for(var name in json.uniforms){var uniform=json.uniforms[name];material.uniforms[name]={};switch(uniform.type){case't':material.uniforms[name].value=getTexture(uniform.value);break;case'c':material.uniforms[name].value=new Color().setHex(uniform.value);break;case'v2':material.uniforms[name].value=new Vector2().fromArray(uniform.value);break;case'v3':material.uniforms[name].value=new Vector3().fromArray(uniform.value);break;case'v4':material.uniforms[name].value=new Vector4().fromArray(uniform.value);break;case'm3':material.uniforms[name].value=new Matrix3().fromArray(uniform.value);break;case'm4':material.uniforms[name].value=new Matrix4().fromArray(uniform.value);break;default:material.uniforms[name].value=uniform.value;}}}if(json.defines!==undefined)material.defines=json.defines;if(json.vertexShader!==undefined)material.vertexShader=json.vertexShader;if(json.fragmentShader!==undefined)material.fragmentShader=json.fragmentShader;if(json.extensions!==undefined){for(var key in json.extensions){material.extensions[key]=json.extensions[key];}}\nif(json.shading!==undefined)material.flatShading=json.shading===1;if(json.size!==undefined)material.size=json.size;if(json.sizeAttenuation!==undefined)material.sizeAttenuation=json.sizeAttenuation;if(json.map!==undefined)material.map=getTexture(json.map);if(json.matcap!==undefined)material.matcap=getTexture(json.matcap);if(json.alphaMap!==undefined)material.alphaMap=getTexture(json.alphaMap);if(json.bumpMap!==undefined)material.bumpMap=getTexture(json.bumpMap);if(json.bumpScale!==undefined)material.bumpScale=json.bumpScale;if(json.normalMap!==undefined)material.normalMap=getTexture(json.normalMap);if(json.normalMapType!==undefined)material.normalMapType=json.normalMapType;if(json.normalScale!==undefined){var normalScale=json.normalScale;if(Array.isArray(normalScale)===false){normalScale=[normalScale,normalScale];}material.normalScale=new Vector2().fromArray(normalScale);}if(json.displacementMap!==undefined)material.displacementMap=getTexture(json.displacementMap);if(json.displacementScale!==undefined)material.displacementScale=json.displacementScale;if(json.displacementBias!==undefined)material.displacementBias=json.displacementBias;if(json.roughnessMap!==undefined)material.roughnessMap=getTexture(json.roughnessMap);if(json.metalnessMap!==undefined)material.metalnessMap=getTexture(json.metalnessMap);if(json.emissiveMap!==undefined)material.emissiveMap=getTexture(json.emissiveMap);if(json.emissiveIntensity!==undefined)material.emissiveIntensity=json.emissiveIntensity;if(json.specularMap!==undefined)material.specularMap=getTexture(json.specularMap);if(json.envMap!==undefined)material.envMap=getTexture(json.envMap);if(json.envMapIntensity!==undefined)material.envMapIntensity=json.envMapIntensity;if(json.reflectivity!==undefined)material.reflectivity=json.reflectivity;if(json.refractionRatio!==undefined)material.refractionRatio=json.refractionRatio;if(json.lightMap!==undefined)material.lightMap=getTexture(json.lightMap);if(json.lightMapIntensity!==undefined)material.lightMapIntensity=json.lightMapIntensity;if(json.aoMap!==undefined)material.aoMap=getTexture(json.aoMap);if(json.aoMapIntensity!==undefined)material.aoMapIntensity=json.aoMapIntensity;if(json.gradientMap!==undefined)material.gradientMap=getTexture(json.gradientMap);if(json.clearcoatMap!==undefined)material.clearcoatMap=getTexture(json.clearcoatMap);if(json.clearcoatRoughnessMap!==undefined)material.clearcoatRoughnessMap=getTexture(json.clearcoatRoughnessMap);if(json.clearcoatNormalMap!==undefined)material.clearcoatNormalMap=getTexture(json.clearcoatNormalMap);if(json.clearcoatNormalScale!==undefined)material.clearcoatNormalScale=new Vector2().fromArray(json.clearcoatNormalScale);if(json.transmission!==undefined)material.transmission=json.transmission;if(json.transmissionMap!==undefined)material.transmissionMap=getTexture(json.transmissionMap);return material;},setTextures:function setTextures(value){this.textures=value;return this;}});var LoaderUtils={decodeText:function decodeText(array){if(typeof TextDecoder!=='undefined'){return new TextDecoder().decode(array);}\nvar s='';for(var _i276=0,il=array.length;_i276<il;_i276++){s+=String.fromCharCode(array[_i276]);}try{return decodeURIComponent(escape(s));}catch(e){return s;}},extractUrlBase:function extractUrlBase(url){var index=url.lastIndexOf('/');if(index===-1)return'./';return url.substr(0,index+1);}};function InstancedBufferGeometry(){BufferGeometry.call(this);this.type='InstancedBufferGeometry';this.instanceCount=Infinity;}InstancedBufferGeometry.prototype=Object.assign(Object.create(BufferGeometry.prototype),{constructor:InstancedBufferGeometry,isInstancedBufferGeometry:true,copy:function copy(source){BufferGeometry.prototype.copy.call(this,source);this.instanceCount=source.instanceCount;return this;},clone:function clone(){return new this.constructor().copy(this);},toJSON:function toJSON(){var data=BufferGeometry.prototype.toJSON.call(this);data.instanceCount=this.instanceCount;data.isInstancedBufferGeometry=true;return data;}});function InstancedBufferAttribute(array,itemSize,normalized,meshPerAttribute){if(typeof normalized==='number'){meshPerAttribute=normalized;normalized=false;console.error('THREE.InstancedBufferAttribute: The constructor now expects normalized as the third argument.');}BufferAttribute.call(this,array,itemSize,normalized);this.meshPerAttribute=meshPerAttribute||1;}InstancedBufferAttribute.prototype=Object.assign(Object.create(BufferAttribute.prototype),{constructor:InstancedBufferAttribute,isInstancedBufferAttribute:true,copy:function copy(source){BufferAttribute.prototype.copy.call(this,source);this.meshPerAttribute=source.meshPerAttribute;return this;},toJSON:function toJSON(){var data=BufferAttribute.prototype.toJSON.call(this);data.meshPerAttribute=this.meshPerAttribute;data.isInstancedBufferAttribute=true;return data;}});function BufferGeometryLoader(manager){Loader.call(this,manager);}BufferGeometryLoader.prototype=Object.assign(Object.create(Loader.prototype),{constructor:BufferGeometryLoader,load:function load(url,onLoad,onProgress,onError){var scope=this;var loader=new FileLoader(scope.manager);loader.setPath(scope.path);loader.setRequestHeader(scope.requestHeader);loader.setWithCredentials(scope.withCredentials);loader.load(url,function(text){try{onLoad(scope.parse(JSON.parse(text)));}catch(e){if(onError){onError(e);}else{console.error(e);}scope.manager.itemError(url);}},onProgress,onError);},parse:function parse(json){var interleavedBufferMap={};var arrayBufferMap={};function getInterleavedBuffer(json,uuid){if(interleavedBufferMap[uuid]!==undefined)return interleavedBufferMap[uuid];var interleavedBuffers=json.interleavedBuffers;var interleavedBuffer=interleavedBuffers[uuid];var buffer=getArrayBuffer(json,interleavedBuffer.buffer);var array=new TYPED_ARRAYS[interleavedBuffer.type](buffer);var ib=new InterleavedBuffer(array,interleavedBuffer.stride);ib.uuid=interleavedBuffer.uuid;interleavedBufferMap[uuid]=ib;return ib;}function getArrayBuffer(json,uuid){if(arrayBufferMap[uuid]!==undefined)return arrayBufferMap[uuid];var arrayBuffers=json.arrayBuffers;var arrayBuffer=arrayBuffers[uuid];var ab=new Uint32Array(arrayBuffer).buffer;arrayBufferMap[uuid]=ab;return ab;}var geometry=json.isInstancedBufferGeometry?new InstancedBufferGeometry():new BufferGeometry();var index=json.data.index;if(index!==undefined){var typedArray=new TYPED_ARRAYS[index.type](index.array);geometry.setIndex(new BufferAttribute(typedArray,1));}var attributes=json.data.attributes;for(var key in attributes){var attribute=attributes[key];var bufferAttribute=void 0;if(attribute.isInterleavedBufferAttribute){var interleavedBuffer=getInterleavedBuffer(json.data,attribute.data);bufferAttribute=new InterleavedBufferAttribute(interleavedBuffer,attribute.itemSize,attribute.offset,attribute.normalized);}else{var _typedArray=new TYPED_ARRAYS[attribute.type](attribute.array);var bufferAttributeConstr=attribute.isInstancedBufferAttribute?InstancedBufferAttribute:BufferAttribute;bufferAttribute=new bufferAttributeConstr(_typedArray,attribute.itemSize,attribute.normalized);}if(attribute.name!==undefined)bufferAttribute.name=attribute.name;geometry.setAttribute(key,bufferAttribute);}var morphAttributes=json.data.morphAttributes;if(morphAttributes){for(var _key3 in morphAttributes){var attributeArray=morphAttributes[_key3];var array=[];for(var _i277=0,il=attributeArray.length;_i277<il;_i277++){var _attribute9=attributeArray[_i277];var _bufferAttribute=void 0;if(_attribute9.isInterleavedBufferAttribute){var _interleavedBuffer=getInterleavedBuffer(json.data,_attribute9.data);_bufferAttribute=new InterleavedBufferAttribute(_interleavedBuffer,_attribute9.itemSize,_attribute9.offset,_attribute9.normalized);}else{var _typedArray2=new TYPED_ARRAYS[_attribute9.type](_attribute9.array);_bufferAttribute=new BufferAttribute(_typedArray2,_attribute9.itemSize,_attribute9.normalized);}if(_attribute9.name!==undefined)_bufferAttribute.name=_attribute9.name;array.push(_bufferAttribute);}geometry.morphAttributes[_key3]=array;}}var morphTargetsRelative=json.data.morphTargetsRelative;if(morphTargetsRelative){geometry.morphTargetsRelative=true;}var groups=json.data.groups||json.data.drawcalls||json.data.offsets;if(groups!==undefined){for(var _i278=0,n=groups.length;_i278!==n;++_i278){var group=groups[_i278];geometry.addGroup(group.start,group.count,group.materialIndex);}}var boundingSphere=json.data.boundingSphere;if(boundingSphere!==undefined){var center=new Vector3();if(boundingSphere.center!==undefined){center.fromArray(boundingSphere.center);}geometry.boundingSphere=new Sphere(center,boundingSphere.radius);}if(json.name)geometry.name=json.name;if(json.userData)geometry.userData=json.userData;return geometry;}});var TYPED_ARRAYS={Int8Array:Int8Array,Uint8Array:Uint8Array,Uint8ClampedArray:typeof Uint8ClampedArray!=='undefined'?Uint8ClampedArray:Uint8Array,Int16Array:Int16Array,Uint16Array:Uint16Array,Int32Array:Int32Array,Uint32Array:Uint32Array,Float32Array:Float32Array,Float64Array:Float64Array};function ImageBitmapLoader(manager){if(typeof createImageBitmap==='undefined'){console.warn('THREE.ImageBitmapLoader: createImageBitmap() not supported.');}if(typeof fetch==='undefined'){console.warn('THREE.ImageBitmapLoader: fetch() not supported.');}Loader.call(this,manager);this.options={premultiplyAlpha:'none'};}ImageBitmapLoader.prototype=Object.assign(Object.create(Loader.prototype),{constructor:ImageBitmapLoader,isImageBitmapLoader:true,setOptions:function setOptions(options){this.options=options;return this;},load:function load(url,onLoad,onProgress,onError){if(url===undefined)url='';if(this.path!==undefined)url=this.path+url;url=this.manager.resolveURL(url);var scope=this;var cached=Cache.get(url);if(cached!==undefined){scope.manager.itemStart(url);setTimeout(function(){if(onLoad)onLoad(cached);scope.manager.itemEnd(url);},0);return cached;}var fetchOptions={};fetchOptions.credentials=this.crossOrigin==='anonymous'?'same-origin':'include';fetch(url,fetchOptions).then(function(res){return res.blob();}).then(function(blob){return createImageBitmap(blob,scope.options);}).then(function(imageBitmap){Cache.add(url,imageBitmap);if(onLoad)onLoad(imageBitmap);scope.manager.itemEnd(url);}).catch(function(e){if(onError)onError(e);scope.manager.itemError(url);scope.manager.itemEnd(url);});scope.manager.itemStart(url);}});function ShapePath(){this.type='ShapePath';this.color=new Color();this.subPaths=[];this.currentPath=null;}Object.assign(ShapePath.prototype,{moveTo:function moveTo(x,y){this.currentPath=new Path();this.subPaths.push(this.currentPath);this.currentPath.moveTo(x,y);return this;},lineTo:function lineTo(x,y){this.currentPath.lineTo(x,y);return this;},quadraticCurveTo:function quadraticCurveTo(aCPx,aCPy,aX,aY){this.currentPath.quadraticCurveTo(aCPx,aCPy,aX,aY);return this;},bezierCurveTo:function bezierCurveTo(aCP1x,aCP1y,aCP2x,aCP2y,aX,aY){this.currentPath.bezierCurveTo(aCP1x,aCP1y,aCP2x,aCP2y,aX,aY);return this;},splineThru:function splineThru(pts){this.currentPath.splineThru(pts);return this;},toShapes:function toShapes(isCCW,noHoles){function toShapesNoHoles(inSubpaths){var shapes=[];for(var _i279=0,l=inSubpaths.length;_i279<l;_i279++){var _tmpPath=inSubpaths[_i279];var _tmpShape=new Shape();_tmpShape.curves=_tmpPath.curves;shapes.push(_tmpShape);}return shapes;}function isPointInsidePolygon(inPt,inPolygon){var polyLen=inPolygon.length;var inside=false;for(var p=polyLen-1,q=0;q<polyLen;p=q++){var edgeLowPt=inPolygon[p];var edgeHighPt=inPolygon[q];var edgeDx=edgeHighPt.x-edgeLowPt.x;var edgeDy=edgeHighPt.y-edgeLowPt.y;if(Math.abs(edgeDy)>Number.EPSILON){if(edgeDy<0){edgeLowPt=inPolygon[q];edgeDx=-edgeDx;edgeHighPt=inPolygon[p];edgeDy=-edgeDy;}if(inPt.y<edgeLowPt.y||inPt.y>edgeHighPt.y)continue;if(inPt.y===edgeLowPt.y){if(inPt.x===edgeLowPt.x)return true;}else{var perpEdge=edgeDy*(inPt.x-edgeLowPt.x)-edgeDx*(inPt.y-edgeLowPt.y);if(perpEdge===0)return true;if(perpEdge<0)continue;inside=!inside;}}else{if(inPt.y!==edgeLowPt.y)continue;if(edgeHighPt.x<=inPt.x&&inPt.x<=edgeLowPt.x||edgeLowPt.x<=inPt.x&&inPt.x<=edgeHighPt.x)return true;}}return inside;}var isClockWise=ShapeUtils.isClockWise;var subPaths=this.subPaths;if(subPaths.length===0)return[];if(noHoles===true)return toShapesNoHoles(subPaths);var solid,tmpPath,tmpShape;var shapes=[];if(subPaths.length===1){tmpPath=subPaths[0];tmpShape=new Shape();tmpShape.curves=tmpPath.curves;shapes.push(tmpShape);return shapes;}var holesFirst=!isClockWise(subPaths[0].getPoints());holesFirst=isCCW?!holesFirst:holesFirst;var betterShapeHoles=[];var newShapes=[];var newShapeHoles=[];var mainIdx=0;var tmpPoints;newShapes[mainIdx]=undefined;newShapeHoles[mainIdx]=[];for(var _i280=0,l=subPaths.length;_i280<l;_i280++){tmpPath=subPaths[_i280];tmpPoints=tmpPath.getPoints();solid=isClockWise(tmpPoints);solid=isCCW?!solid:solid;if(solid){if(!holesFirst&&newShapes[mainIdx])mainIdx++;newShapes[mainIdx]={s:new Shape(),p:tmpPoints};newShapes[mainIdx].s.curves=tmpPath.curves;if(holesFirst)mainIdx++;newShapeHoles[mainIdx]=[];}else{newShapeHoles[mainIdx].push({h:tmpPath,p:tmpPoints[0]});}}\nif(!newShapes[0])return toShapesNoHoles(subPaths);if(newShapes.length>1){var ambiguous=false;var toChange=[];for(var sIdx=0,sLen=newShapes.length;sIdx<sLen;sIdx++){betterShapeHoles[sIdx]=[];}for(var _sIdx=0,_sLen=newShapes.length;_sIdx<_sLen;_sIdx++){var sho=newShapeHoles[_sIdx];for(var hIdx=0;hIdx<sho.length;hIdx++){var ho=sho[hIdx];var hole_unassigned=true;for(var s2Idx=0;s2Idx<newShapes.length;s2Idx++){if(isPointInsidePolygon(ho.p,newShapes[s2Idx].p)){if(_sIdx!==s2Idx)toChange.push({froms:_sIdx,tos:s2Idx,hole:hIdx});if(hole_unassigned){hole_unassigned=false;betterShapeHoles[s2Idx].push(ho);}else{ambiguous=true;}}}if(hole_unassigned){betterShapeHoles[_sIdx].push(ho);}}}\nif(toChange.length>0){if(!ambiguous)newShapeHoles=betterShapeHoles;}}var tmpHoles;for(var _i281=0,il=newShapes.length;_i281<il;_i281++){tmpShape=newShapes[_i281].s;shapes.push(tmpShape);tmpHoles=newShapeHoles[_i281];for(var j=0,jl=tmpHoles.length;j<jl;j++){tmpShape.holes.push(tmpHoles[j].h);}}\nreturn shapes;}});function Font(data){this.type='Font';this.data=data;}Object.assign(Font.prototype,{isFont:true,generateShapes:function generateShapes(text,size){if(size===undefined)size=100;var shapes=[];var paths=createPaths(text,size,this.data);for(var p=0,pl=paths.length;p<pl;p++){Array.prototype.push.apply(shapes,paths[p].toShapes());}return shapes;}});function createPaths(text,size,data){var chars=Array.from?Array.from(text):String(text).split('');var scale=size/data.resolution;var line_height=(data.boundingBox.yMax-data.boundingBox.yMin+data.underlineThickness)*scale;var paths=[];var offsetX=0,offsetY=0;for(var _i282=0;_i282<chars.length;_i282++){var char=chars[_i282];if(char==='\\n'){offsetX=0;offsetY-=line_height;}else{var ret=createPath(char,scale,offsetX,offsetY,data);offsetX+=ret.offsetX;paths.push(ret.path);}}return paths;}function createPath(char,scale,offsetX,offsetY,data){var glyph=data.glyphs[char]||data.glyphs['?'];if(!glyph){console.error('THREE.Font: character \"'+char+'\" does not exists in font family '+data.familyName+'.');return;}var path=new ShapePath();var x,y,cpx,cpy,cpx1,cpy1,cpx2,cpy2;if(glyph.o){var outline=glyph._cachedOutline||(glyph._cachedOutline=glyph.o.split(' '));for(var _i283=0,l=outline.length;_i283<l;){var action=outline[_i283++];switch(action){case'm':x=outline[_i283++]*scale+offsetX;y=outline[_i283++]*scale+offsetY;path.moveTo(x,y);break;case'l':x=outline[_i283++]*scale+offsetX;y=outline[_i283++]*scale+offsetY;path.lineTo(x,y);break;case'q':cpx=outline[_i283++]*scale+offsetX;cpy=outline[_i283++]*scale+offsetY;cpx1=outline[_i283++]*scale+offsetX;cpy1=outline[_i283++]*scale+offsetY;path.quadraticCurveTo(cpx1,cpy1,cpx,cpy);break;case'b':cpx=outline[_i283++]*scale+offsetX;cpy=outline[_i283++]*scale+offsetY;cpx1=outline[_i283++]*scale+offsetX;cpy1=outline[_i283++]*scale+offsetY;cpx2=outline[_i283++]*scale+offsetX;cpy2=outline[_i283++]*scale+offsetY;path.bezierCurveTo(cpx1,cpy1,cpx2,cpy2,cpx,cpy);break;}}}return{offsetX:glyph.ha*scale,path:path};}function FontLoader(manager){Loader.call(this,manager);}FontLoader.prototype=Object.assign(Object.create(Loader.prototype),{constructor:FontLoader,load:function load(url,onLoad,onProgress,onError){var scope=this;var loader=new FileLoader(this.manager);loader.setPath(this.path);loader.setRequestHeader(this.requestHeader);loader.setWithCredentials(scope.withCredentials);loader.load(url,function(text){var json;try{json=JSON.parse(text);}catch(e){console.warn('THREE.FontLoader: typeface.js support is being deprecated. Use typeface.json instead.');json=JSON.parse(text.substring(65,text.length-2));}var font=scope.parse(json);if(onLoad)onLoad(font);},onProgress,onError);},parse:function parse(json){return new Font(json);}});var _context;var AudioContext={getContext:function getContext(){if(_context===undefined){_context=new(window.AudioContext||window.webkitAudioContext)();}return _context;},setContext:function setContext(value){_context=value;}};function AudioLoader(manager){Loader.call(this,manager);}AudioLoader.prototype=Object.assign(Object.create(Loader.prototype),{constructor:AudioLoader,load:function load(url,onLoad,onProgress,onError){var scope=this;var loader=new FileLoader(scope.manager);loader.setResponseType('arraybuffer');loader.setPath(scope.path);loader.setRequestHeader(scope.requestHeader);loader.setWithCredentials(scope.withCredentials);loader.load(url,function(buffer){try{var bufferCopy=buffer.slice(0);var context=AudioContext.getContext();context.decodeAudioData(bufferCopy,function(audioBuffer){onLoad(audioBuffer);});}catch(e){if(onError){onError(e);}else{console.error(e);}scope.manager.itemError(url);}},onProgress,onError);}});function HemisphereLightProbe(skyColor,groundColor,intensity){LightProbe.call(this,undefined,intensity);var color1=new Color().set(skyColor);var color2=new Color().set(groundColor);var sky=new Vector3(color1.r,color1.g,color1.b);var ground=new Vector3(color2.r,color2.g,color2.b);var c0=Math.sqrt(Math.PI);var c1=c0*Math.sqrt(0.75);this.sh.coefficients[0].copy(sky).add(ground).multiplyScalar(c0);this.sh.coefficients[1].copy(sky).sub(ground).multiplyScalar(c1);}HemisphereLightProbe.prototype=Object.assign(Object.create(LightProbe.prototype),{constructor:HemisphereLightProbe,isHemisphereLightProbe:true,copy:function copy(source){LightProbe.prototype.copy.call(this,source);return this;},toJSON:function toJSON(meta){var data=LightProbe.prototype.toJSON.call(this,meta);return data;}});function AmbientLightProbe(color,intensity){LightProbe.call(this,undefined,intensity);var color1=new Color().set(color);this.sh.coefficients[0].set(color1.r,color1.g,color1.b).multiplyScalar(2*Math.sqrt(Math.PI));}AmbientLightProbe.prototype=Object.assign(Object.create(LightProbe.prototype),{constructor:AmbientLightProbe,isAmbientLightProbe:true,copy:function copy(source){LightProbe.prototype.copy.call(this,source);return this;},toJSON:function toJSON(meta){var data=LightProbe.prototype.toJSON.call(this,meta);return data;}});var _eyeRight=new Matrix4();var _eyeLeft=new Matrix4();function StereoCamera(){this.type='StereoCamera';this.aspect=1;this.eyeSep=0.064;this.cameraL=new PerspectiveCamera();this.cameraL.layers.enable(1);this.cameraL.matrixAutoUpdate=false;this.cameraR=new PerspectiveCamera();this.cameraR.layers.enable(2);this.cameraR.matrixAutoUpdate=false;this._cache={focus:null,fov:null,aspect:null,near:null,far:null,zoom:null,eyeSep:null};}Object.assign(StereoCamera.prototype,{update:function update(camera){var cache=this._cache;var needsUpdate=cache.focus!==camera.focus||cache.fov!==camera.fov||cache.aspect!==camera.aspect*this.aspect||cache.near!==camera.near||cache.far!==camera.far||cache.zoom!==camera.zoom||cache.eyeSep!==this.eyeSep;if(needsUpdate){cache.focus=camera.focus;cache.fov=camera.fov;cache.aspect=camera.aspect*this.aspect;cache.near=camera.near;cache.far=camera.far;cache.zoom=camera.zoom;cache.eyeSep=this.eyeSep;var projectionMatrix=camera.projectionMatrix.clone();var eyeSepHalf=cache.eyeSep/2;var eyeSepOnProjection=eyeSepHalf*cache.near/cache.focus;var ymax=cache.near*Math.tan(MathUtils.DEG2RAD*cache.fov*0.5)/cache.zoom;var xmin,xmax;_eyeLeft.elements[12]=-eyeSepHalf;_eyeRight.elements[12]=eyeSepHalf;xmin=-ymax*cache.aspect+eyeSepOnProjection;xmax=ymax*cache.aspect+eyeSepOnProjection;projectionMatrix.elements[0]=2*cache.near/(xmax-xmin);projectionMatrix.elements[8]=(xmax+xmin)/(xmax-xmin);this.cameraL.projectionMatrix.copy(projectionMatrix);xmin=-ymax*cache.aspect-eyeSepOnProjection;xmax=ymax*cache.aspect-eyeSepOnProjection;projectionMatrix.elements[0]=2*cache.near/(xmax-xmin);projectionMatrix.elements[8]=(xmax+xmin)/(xmax-xmin);this.cameraR.projectionMatrix.copy(projectionMatrix);}this.cameraL.matrixWorld.copy(camera.matrixWorld).multiply(_eyeLeft);this.cameraR.matrixWorld.copy(camera.matrixWorld).multiply(_eyeRight);}});var Audio=function(_Object3D2){_inherits(Audio,_Object3D2);var _super9=_createSuper(Audio);function Audio(listener){var _this16;_classCallCheck(this,Audio);_this16=_super9.call(this);_this16.type='Audio';_this16.listener=listener;_this16.context=listener.context;_this16.gain=_this16.context.createGain();_this16.gain.connect(listener.getInput());_this16.autoplay=false;_this16.buffer=null;_this16.detune=0;_this16.loop=false;_this16.loopStart=0;_this16.loopEnd=0;_this16.offset=0;_this16.duration=undefined;_this16.playbackRate=1;_this16.isPlaying=false;_this16.hasPlaybackControl=true;_this16.source=null;_this16.sourceType='empty';_this16._startedAt=0;_this16._progress=0;_this16._connected=false;_this16.filters=[];return _this16;}_createClass(Audio,[{key:\"getOutput\",value:function getOutput(){return this.gain;}},{key:\"setNodeSource\",value:function setNodeSource(audioNode){this.hasPlaybackControl=false;this.sourceType='audioNode';this.source=audioNode;this.connect();return this;}},{key:\"setMediaElementSource\",value:function setMediaElementSource(mediaElement){this.hasPlaybackControl=false;this.sourceType='mediaNode';this.source=this.context.createMediaElementSource(mediaElement);this.connect();return this;}},{key:\"setMediaStreamSource\",value:function setMediaStreamSource(mediaStream){this.hasPlaybackControl=false;this.sourceType='mediaStreamNode';this.source=this.context.createMediaStreamSource(mediaStream);this.connect();return this;}},{key:\"setBuffer\",value:function setBuffer(audioBuffer){this.buffer=audioBuffer;this.sourceType='buffer';if(this.autoplay)this.play();return this;}},{key:\"play\",value:function play(delay){if(delay===undefined)delay=0;if(this.isPlaying===true){console.warn('THREE.Audio: Audio is already playing.');return;}if(this.hasPlaybackControl===false){console.warn('THREE.Audio: this Audio has no playback control.');return;}this._startedAt=this.context.currentTime+delay;var source=this.context.createBufferSource();source.buffer=this.buffer;source.loop=this.loop;source.loopStart=this.loopStart;source.loopEnd=this.loopEnd;source.onended=this.onEnded.bind(this);source.start(this._startedAt,this._progress+this.offset,this.duration);this.isPlaying=true;this.source=source;this.setDetune(this.detune);this.setPlaybackRate(this.playbackRate);return this.connect();}},{key:\"pause\",value:function pause(){if(this.hasPlaybackControl===false){console.warn('THREE.Audio: this Audio has no playback control.');return;}if(this.isPlaying===true){this._progress+=Math.max(this.context.currentTime-this._startedAt,0)*this.playbackRate;if(this.loop===true){this._progress=this._progress%(this.duration||this.buffer.duration);}this.source.stop();this.source.onended=null;this.isPlaying=false;}return this;}},{key:\"stop\",value:function stop(){if(this.hasPlaybackControl===false){console.warn('THREE.Audio: this Audio has no playback control.');return;}this._progress=0;this.source.stop();this.source.onended=null;this.isPlaying=false;return this;}},{key:\"connect\",value:function connect(){if(this.filters.length>0){this.source.connect(this.filters[0]);for(var _i284=1,l=this.filters.length;_i284<l;_i284++){this.filters[_i284-1].connect(this.filters[_i284]);}this.filters[this.filters.length-1].connect(this.getOutput());}else{this.source.connect(this.getOutput());}this._connected=true;return this;}},{key:\"disconnect\",value:function disconnect(){if(this.filters.length>0){this.source.disconnect(this.filters[0]);for(var _i285=1,l=this.filters.length;_i285<l;_i285++){this.filters[_i285-1].disconnect(this.filters[_i285]);}this.filters[this.filters.length-1].disconnect(this.getOutput());}else{this.source.disconnect(this.getOutput());}this._connected=false;return this;}},{key:\"getFilters\",value:function getFilters(){return this.filters;}},{key:\"setFilters\",value:function setFilters(value){if(!value)value=[];if(this._connected===true){this.disconnect();this.filters=value;this.connect();}else{this.filters=value;}return this;}},{key:\"setDetune\",value:function setDetune(value){this.detune=value;if(this.source.detune===undefined)return;if(this.isPlaying===true){this.source.detune.setTargetAtTime(this.detune,this.context.currentTime,0.01);}return this;}},{key:\"getDetune\",value:function getDetune(){return this.detune;}},{key:\"getFilter\",value:function getFilter(){return this.getFilters()[0];}},{key:\"setFilter\",value:function setFilter(filter){return this.setFilters(filter?[filter]:[]);}},{key:\"setPlaybackRate\",value:function setPlaybackRate(value){if(this.hasPlaybackControl===false){console.warn('THREE.Audio: this Audio has no playback control.');return;}this.playbackRate=value;if(this.isPlaying===true){this.source.playbackRate.setTargetAtTime(this.playbackRate,this.context.currentTime,0.01);}return this;}},{key:\"getPlaybackRate\",value:function getPlaybackRate(){return this.playbackRate;}},{key:\"onEnded\",value:function onEnded(){this.isPlaying=false;}},{key:\"getLoop\",value:function getLoop(){if(this.hasPlaybackControl===false){console.warn('THREE.Audio: this Audio has no playback control.');return false;}return this.loop;}},{key:\"setLoop\",value:function setLoop(value){if(this.hasPlaybackControl===false){console.warn('THREE.Audio: this Audio has no playback control.');return;}this.loop=value;if(this.isPlaying===true){this.source.loop=this.loop;}return this;}},{key:\"setLoopStart\",value:function setLoopStart(value){this.loopStart=value;return this;}},{key:\"setLoopEnd\",value:function setLoopEnd(value){this.loopEnd=value;return this;}},{key:\"getVolume\",value:function getVolume(){return this.gain.gain.value;}},{key:\"setVolume\",value:function setVolume(value){this.gain.gain.setTargetAtTime(value,this.context.currentTime,0.01);return this;}}]);return Audio;}(Object3D);function PropertyMixer(binding,typeName,valueSize){this.binding=binding;this.valueSize=valueSize;var mixFunction,mixFunctionAdditive,setIdentity;switch(typeName){case'quaternion':mixFunction=this._slerp;mixFunctionAdditive=this._slerpAdditive;setIdentity=this._setAdditiveIdentityQuaternion;this.buffer=new Float64Array(valueSize*6);this._workIndex=5;break;case'string':case'bool':mixFunction=this._select;mixFunctionAdditive=this._select;setIdentity=this._setAdditiveIdentityOther;this.buffer=new Array(valueSize*5);break;default:mixFunction=this._lerp;mixFunctionAdditive=this._lerpAdditive;setIdentity=this._setAdditiveIdentityNumeric;this.buffer=new Float64Array(valueSize*5);}this._mixBufferRegion=mixFunction;this._mixBufferRegionAdditive=mixFunctionAdditive;this._setIdentity=setIdentity;this._origIndex=3;this._addIndex=4;this.cumulativeWeight=0;this.cumulativeWeightAdditive=0;this.useCount=0;this.referenceCount=0;}Object.assign(PropertyMixer.prototype,{accumulate:function accumulate(accuIndex,weight){var buffer=this.buffer,stride=this.valueSize,offset=accuIndex*stride+stride;var currentWeight=this.cumulativeWeight;if(currentWeight===0){for(var _i286=0;_i286!==stride;++_i286){buffer[offset+_i286]=buffer[_i286];}currentWeight=weight;}else{currentWeight+=weight;var mix=weight/currentWeight;this._mixBufferRegion(buffer,offset,0,mix,stride);}this.cumulativeWeight=currentWeight;},accumulateAdditive:function accumulateAdditive(weight){var buffer=this.buffer,stride=this.valueSize,offset=stride*this._addIndex;if(this.cumulativeWeightAdditive===0){this._setIdentity();}\nthis._mixBufferRegionAdditive(buffer,offset,0,weight,stride);this.cumulativeWeightAdditive+=weight;},apply:function apply(accuIndex){var stride=this.valueSize,buffer=this.buffer,offset=accuIndex*stride+stride,weight=this.cumulativeWeight,weightAdditive=this.cumulativeWeightAdditive,binding=this.binding;this.cumulativeWeight=0;this.cumulativeWeightAdditive=0;if(weight<1){var originalValueOffset=stride*this._origIndex;this._mixBufferRegion(buffer,offset,originalValueOffset,1-weight,stride);}if(weightAdditive>0){this._mixBufferRegionAdditive(buffer,offset,this._addIndex*stride,1,stride);}for(var _i287=stride,e=stride+stride;_i287!==e;++_i287){if(buffer[_i287]!==buffer[_i287+stride]){binding.setValue(buffer,offset);break;}}},saveOriginalState:function saveOriginalState(){var binding=this.binding;var buffer=this.buffer,stride=this.valueSize,originalValueOffset=stride*this._origIndex;binding.getValue(buffer,originalValueOffset);for(var _i288=stride,e=originalValueOffset;_i288!==e;++_i288){buffer[_i288]=buffer[originalValueOffset+_i288%stride];}\nthis._setIdentity();this.cumulativeWeight=0;this.cumulativeWeightAdditive=0;},restoreOriginalState:function restoreOriginalState(){var originalValueOffset=this.valueSize*3;this.binding.setValue(this.buffer,originalValueOffset);},_setAdditiveIdentityNumeric:function _setAdditiveIdentityNumeric(){var startIndex=this._addIndex*this.valueSize;var endIndex=startIndex+this.valueSize;for(var _i289=startIndex;_i289<endIndex;_i289++){this.buffer[_i289]=0;}},_setAdditiveIdentityQuaternion:function _setAdditiveIdentityQuaternion(){this._setAdditiveIdentityNumeric();this.buffer[this._addIndex*this.valueSize+3]=1;},_setAdditiveIdentityOther:function _setAdditiveIdentityOther(){var startIndex=this._origIndex*this.valueSize;var targetIndex=this._addIndex*this.valueSize;for(var _i290=0;_i290<this.valueSize;_i290++){this.buffer[targetIndex+_i290]=this.buffer[startIndex+_i290];}},_select:function _select(buffer,dstOffset,srcOffset,t,stride){if(t>=0.5){for(var _i291=0;_i291!==stride;++_i291){buffer[dstOffset+_i291]=buffer[srcOffset+_i291];}}},_slerp:function _slerp(buffer,dstOffset,srcOffset,t){Quaternion.slerpFlat(buffer,dstOffset,buffer,dstOffset,buffer,srcOffset,t);},_slerpAdditive:function _slerpAdditive(buffer,dstOffset,srcOffset,t,stride){var workOffset=this._workIndex*stride;Quaternion.multiplyQuaternionsFlat(buffer,workOffset,buffer,dstOffset,buffer,srcOffset);Quaternion.slerpFlat(buffer,dstOffset,buffer,dstOffset,buffer,workOffset,t);},_lerp:function _lerp(buffer,dstOffset,srcOffset,t,stride){var s=1-t;for(var _i292=0;_i292!==stride;++_i292){var j=dstOffset+_i292;buffer[j]=buffer[j]*s+buffer[srcOffset+_i292]*t;}},_lerpAdditive:function _lerpAdditive(buffer,dstOffset,srcOffset,t,stride){for(var _i293=0;_i293!==stride;++_i293){var j=dstOffset+_i293;buffer[j]=buffer[j]+buffer[srcOffset+_i293]*t;}}});var _RESERVED_CHARS_RE='\\\\[\\\\]\\\\.:\\\\/';var _reservedRe=new RegExp('['+_RESERVED_CHARS_RE+']','g');var _wordChar='[^'+_RESERVED_CHARS_RE+']';var _wordCharOrDot='[^'+_RESERVED_CHARS_RE.replace('\\\\.','')+']';var _directoryRe=/((?:WC+[\\/:])*)/.source.replace('WC',_wordChar);var _nodeRe=/(WCOD+)?/.source.replace('WCOD',_wordCharOrDot);var _objectRe=/(?:\\.(WC+)(?:\\[(.+)\\])?)?/.source.replace('WC',_wordChar);var _propertyRe=/\\.(WC+)(?:\\[(.+)\\])?/.source.replace('WC',_wordChar);var _trackRe=new RegExp(''+'^'+_directoryRe+_nodeRe+_objectRe+_propertyRe+'$');var _supportedObjectNames=['material','materials','bones'];function Composite(targetGroup,path,optionalParsedPath){var parsedPath=optionalParsedPath||PropertyBinding.parseTrackName(path);this._targetGroup=targetGroup;this._bindings=targetGroup.subscribe_(path,parsedPath);}Object.assign(Composite.prototype,{getValue:function getValue(array,offset){this.bind();var firstValidIndex=this._targetGroup.nCachedObjects_,binding=this._bindings[firstValidIndex];if(binding!==undefined)binding.getValue(array,offset);},setValue:function setValue(array,offset){var bindings=this._bindings;for(var _i294=this._targetGroup.nCachedObjects_,n=bindings.length;_i294!==n;++_i294){bindings[_i294].setValue(array,offset);}},bind:function bind(){var bindings=this._bindings;for(var _i295=this._targetGroup.nCachedObjects_,n=bindings.length;_i295!==n;++_i295){bindings[_i295].bind();}},unbind:function unbind(){var bindings=this._bindings;for(var _i296=this._targetGroup.nCachedObjects_,n=bindings.length;_i296!==n;++_i296){bindings[_i296].unbind();}}});function PropertyBinding(rootNode,path,parsedPath){this.path=path;this.parsedPath=parsedPath||PropertyBinding.parseTrackName(path);this.node=PropertyBinding.findNode(rootNode,this.parsedPath.nodeName)||rootNode;this.rootNode=rootNode;}Object.assign(PropertyBinding,{Composite:Composite,create:function create(root,path,parsedPath){if(!(root&&root.isAnimationObjectGroup)){return new PropertyBinding(root,path,parsedPath);}else{return new PropertyBinding.Composite(root,path,parsedPath);}},sanitizeNodeName:function sanitizeNodeName(name){return name.replace(/\\s/g,'_').replace(_reservedRe,'');},parseTrackName:function parseTrackName(trackName){var matches=_trackRe.exec(trackName);if(!matches){throw new Error('PropertyBinding: Cannot parse trackName: '+trackName);}var results={nodeName:matches[2],objectName:matches[3],objectIndex:matches[4],propertyName:matches[5],propertyIndex:matches[6]};var lastDot=results.nodeName&&results.nodeName.lastIndexOf('.');if(lastDot!==undefined&&lastDot!==-1){var objectName=results.nodeName.substring(lastDot+1);if(_supportedObjectNames.indexOf(objectName)!==-1){results.nodeName=results.nodeName.substring(0,lastDot);results.objectName=objectName;}}if(results.propertyName===null||results.propertyName.length===0){throw new Error('PropertyBinding: can not parse propertyName from trackName: '+trackName);}return results;},findNode:function findNode(root,nodeName){if(!nodeName||nodeName===\"\"||nodeName===\".\"||nodeName===-1||nodeName===root.name||nodeName===root.uuid){return root;}\nif(root.skeleton){var bone=root.skeleton.getBoneByName(nodeName);if(bone!==undefined){return bone;}}\nif(root.children){var searchNodeSubtree=function searchNodeSubtree(children){for(var _i297=0;_i297<children.length;_i297++){var childNode=children[_i297];if(childNode.name===nodeName||childNode.uuid===nodeName){return childNode;}var result=searchNodeSubtree(childNode.children);if(result)return result;}return null;};var subTreeNode=searchNodeSubtree(root.children);if(subTreeNode){return subTreeNode;}}return null;}});Object.assign(PropertyBinding.prototype,{_getValue_unavailable:function _getValue_unavailable(){},_setValue_unavailable:function _setValue_unavailable(){},BindingType:{Direct:0,EntireArray:1,ArrayElement:2,HasFromToArray:3},Versioning:{None:0,NeedsUpdate:1,MatrixWorldNeedsUpdate:2},GetterByBindingType:[function getValue_direct(buffer,offset){buffer[offset]=this.node[this.propertyName];},function getValue_array(buffer,offset){var source=this.resolvedProperty;for(var _i298=0,n=source.length;_i298!==n;++_i298){buffer[offset++]=source[_i298];}},function getValue_arrayElement(buffer,offset){buffer[offset]=this.resolvedProperty[this.propertyIndex];},function getValue_toArray(buffer,offset){this.resolvedProperty.toArray(buffer,offset);}],SetterByBindingTypeAndVersioning:[[function setValue_direct(buffer,offset){this.targetObject[this.propertyName]=buffer[offset];},function setValue_direct_setNeedsUpdate(buffer,offset){this.targetObject[this.propertyName]=buffer[offset];this.targetObject.needsUpdate=true;},function setValue_direct_setMatrixWorldNeedsUpdate(buffer,offset){this.targetObject[this.propertyName]=buffer[offset];this.targetObject.matrixWorldNeedsUpdate=true;}],[function setValue_array(buffer,offset){var dest=this.resolvedProperty;for(var _i299=0,n=dest.length;_i299!==n;++_i299){dest[_i299]=buffer[offset++];}},function setValue_array_setNeedsUpdate(buffer,offset){var dest=this.resolvedProperty;for(var _i300=0,n=dest.length;_i300!==n;++_i300){dest[_i300]=buffer[offset++];}this.targetObject.needsUpdate=true;},function setValue_array_setMatrixWorldNeedsUpdate(buffer,offset){var dest=this.resolvedProperty;for(var _i301=0,n=dest.length;_i301!==n;++_i301){dest[_i301]=buffer[offset++];}this.targetObject.matrixWorldNeedsUpdate=true;}],[function setValue_arrayElement(buffer,offset){this.resolvedProperty[this.propertyIndex]=buffer[offset];},function setValue_arrayElement_setNeedsUpdate(buffer,offset){this.resolvedProperty[this.propertyIndex]=buffer[offset];this.targetObject.needsUpdate=true;},function setValue_arrayElement_setMatrixWorldNeedsUpdate(buffer,offset){this.resolvedProperty[this.propertyIndex]=buffer[offset];this.targetObject.matrixWorldNeedsUpdate=true;}],[function setValue_fromArray(buffer,offset){this.resolvedProperty.fromArray(buffer,offset);},function setValue_fromArray_setNeedsUpdate(buffer,offset){this.resolvedProperty.fromArray(buffer,offset);this.targetObject.needsUpdate=true;},function setValue_fromArray_setMatrixWorldNeedsUpdate(buffer,offset){this.resolvedProperty.fromArray(buffer,offset);this.targetObject.matrixWorldNeedsUpdate=true;}]],getValue:function getValue_unbound(targetArray,offset){this.bind();this.getValue(targetArray,offset);},setValue:function getValue_unbound(sourceArray,offset){this.bind();this.setValue(sourceArray,offset);},bind:function bind(){var targetObject=this.node;var parsedPath=this.parsedPath;var objectName=parsedPath.objectName;var propertyName=parsedPath.propertyName;var propertyIndex=parsedPath.propertyIndex;if(!targetObject){targetObject=PropertyBinding.findNode(this.rootNode,parsedPath.nodeName)||this.rootNode;this.node=targetObject;}\nthis.getValue=this._getValue_unavailable;this.setValue=this._setValue_unavailable;if(!targetObject){console.error('THREE.PropertyBinding: Trying to update node for track: '+this.path+' but it wasn\\'t found.');return;}if(objectName){var objectIndex=parsedPath.objectIndex;switch(objectName){case'materials':if(!targetObject.material){console.error('THREE.PropertyBinding: Can not bind to material as node does not have a material.',this);return;}if(!targetObject.material.materials){console.error('THREE.PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.',this);return;}targetObject=targetObject.material.materials;break;case'bones':if(!targetObject.skeleton){console.error('THREE.PropertyBinding: Can not bind to bones as node does not have a skeleton.',this);return;}\ntargetObject=targetObject.skeleton.bones;for(var _i302=0;_i302<targetObject.length;_i302++){if(targetObject[_i302].name===objectIndex){objectIndex=_i302;break;}}break;default:if(targetObject[objectName]===undefined){console.error('THREE.PropertyBinding: Can not bind to objectName of node undefined.',this);return;}targetObject=targetObject[objectName];}if(objectIndex!==undefined){if(targetObject[objectIndex]===undefined){console.error('THREE.PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.',this,targetObject);return;}targetObject=targetObject[objectIndex];}}\nvar nodeProperty=targetObject[propertyName];if(nodeProperty===undefined){var nodeName=parsedPath.nodeName;console.error('THREE.PropertyBinding: Trying to update property for track: '+nodeName+'.'+propertyName+' but it wasn\\'t found.',targetObject);return;}\nvar versioning=this.Versioning.None;this.targetObject=targetObject;if(targetObject.needsUpdate!==undefined){versioning=this.Versioning.NeedsUpdate;}else if(targetObject.matrixWorldNeedsUpdate!==undefined){versioning=this.Versioning.MatrixWorldNeedsUpdate;}\nvar bindingType=this.BindingType.Direct;if(propertyIndex!==undefined){if(propertyName===\"morphTargetInfluences\"){if(!targetObject.geometry){console.error('THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.',this);return;}if(targetObject.geometry.isBufferGeometry){if(!targetObject.geometry.morphAttributes){console.error('THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphAttributes.',this);return;}if(targetObject.morphTargetDictionary[propertyIndex]!==undefined){propertyIndex=targetObject.morphTargetDictionary[propertyIndex];}}else{console.error('THREE.PropertyBinding: Can not bind to morphTargetInfluences on THREE.Geometry. Use THREE.BufferGeometry instead.',this);return;}}bindingType=this.BindingType.ArrayElement;this.resolvedProperty=nodeProperty;this.propertyIndex=propertyIndex;}else if(nodeProperty.fromArray!==undefined&&nodeProperty.toArray!==undefined){bindingType=this.BindingType.HasFromToArray;this.resolvedProperty=nodeProperty;}else if(Array.isArray(nodeProperty)){bindingType=this.BindingType.EntireArray;this.resolvedProperty=nodeProperty;}else{this.propertyName=propertyName;}\nthis.getValue=this.GetterByBindingType[bindingType];this.setValue=this.SetterByBindingTypeAndVersioning[bindingType][versioning];},unbind:function unbind(){this.node=null;this.getValue=this._getValue_unbound;this.setValue=this._setValue_unbound;}});Object.assign(PropertyBinding.prototype,{_getValue_unbound:PropertyBinding.prototype.getValue,_setValue_unbound:PropertyBinding.prototype.setValue});function AnimationObjectGroup(){this.uuid=MathUtils.generateUUID();this._objects=Array.prototype.slice.call(arguments);this.nCachedObjects_=0;var indices={};this._indicesByUUID=indices;for(var _i303=0,n=arguments.length;_i303!==n;++_i303){indices[arguments[_i303].uuid]=_i303;}this._paths=[];this._parsedPaths=[];this._bindings=[];this._bindingsIndicesByPath={};var scope=this;this.stats={objects:{get total(){return scope._objects.length;},get inUse(){return this.total-scope.nCachedObjects_;}},get bindingsPerObject(){return scope._bindings.length;}};}Object.assign(AnimationObjectGroup.prototype,{isAnimationObjectGroup:true,add:function add(){var objects=this._objects,indicesByUUID=this._indicesByUUID,paths=this._paths,parsedPaths=this._parsedPaths,bindings=this._bindings,nBindings=bindings.length;var knownObject=undefined,nObjects=objects.length,nCachedObjects=this.nCachedObjects_;for(var _i304=0,n=arguments.length;_i304!==n;++_i304){var object=arguments[_i304],uuid=object.uuid;var index=indicesByUUID[uuid];if(index===undefined){index=nObjects++;indicesByUUID[uuid]=index;objects.push(object);for(var j=0,m=nBindings;j!==m;++j){bindings[j].push(new PropertyBinding(object,paths[j],parsedPaths[j]));}}else if(index<nCachedObjects){knownObject=objects[index];var firstActiveIndex=--nCachedObjects,lastCachedObject=objects[firstActiveIndex];indicesByUUID[lastCachedObject.uuid]=index;objects[index]=lastCachedObject;indicesByUUID[uuid]=firstActiveIndex;objects[firstActiveIndex]=object;for(var _j17=0,_m3=nBindings;_j17!==_m3;++_j17){var bindingsForPath=bindings[_j17],lastCached=bindingsForPath[firstActiveIndex];var binding=bindingsForPath[index];bindingsForPath[index]=lastCached;if(binding===undefined){binding=new PropertyBinding(object,paths[_j17],parsedPaths[_j17]);}bindingsForPath[firstActiveIndex]=binding;}}else if(objects[index]!==knownObject){console.error('THREE.AnimationObjectGroup: Different objects with the same UUID '+'detected. Clean the caches or recreate your infrastructure when reloading scenes.');}}\nthis.nCachedObjects_=nCachedObjects;},remove:function remove(){var objects=this._objects,indicesByUUID=this._indicesByUUID,bindings=this._bindings,nBindings=bindings.length;var nCachedObjects=this.nCachedObjects_;for(var _i305=0,n=arguments.length;_i305!==n;++_i305){var object=arguments[_i305],uuid=object.uuid,index=indicesByUUID[uuid];if(index!==undefined&&index>=nCachedObjects){var lastCachedIndex=nCachedObjects++,firstActiveObject=objects[lastCachedIndex];indicesByUUID[firstActiveObject.uuid]=index;objects[index]=firstActiveObject;indicesByUUID[uuid]=lastCachedIndex;objects[lastCachedIndex]=object;for(var j=0,m=nBindings;j!==m;++j){var bindingsForPath=bindings[j],firstActive=bindingsForPath[lastCachedIndex],binding=bindingsForPath[index];bindingsForPath[index]=firstActive;bindingsForPath[lastCachedIndex]=binding;}}}\nthis.nCachedObjects_=nCachedObjects;},uncache:function uncache(){var objects=this._objects,indicesByUUID=this._indicesByUUID,bindings=this._bindings,nBindings=bindings.length;var nCachedObjects=this.nCachedObjects_,nObjects=objects.length;for(var _i306=0,n=arguments.length;_i306!==n;++_i306){var object=arguments[_i306],uuid=object.uuid,index=indicesByUUID[uuid];if(index!==undefined){delete indicesByUUID[uuid];if(index<nCachedObjects){var firstActiveIndex=--nCachedObjects,lastCachedObject=objects[firstActiveIndex],lastIndex=--nObjects,lastObject=objects[lastIndex];indicesByUUID[lastCachedObject.uuid]=index;objects[index]=lastCachedObject;indicesByUUID[lastObject.uuid]=firstActiveIndex;objects[firstActiveIndex]=lastObject;objects.pop();for(var j=0,m=nBindings;j!==m;++j){var bindingsForPath=bindings[j],lastCached=bindingsForPath[firstActiveIndex],last=bindingsForPath[lastIndex];bindingsForPath[index]=lastCached;bindingsForPath[firstActiveIndex]=last;bindingsForPath.pop();}}else{var _lastIndex=--nObjects,_lastObject=objects[_lastIndex];indicesByUUID[_lastObject.uuid]=index;objects[index]=_lastObject;objects.pop();for(var _j18=0,_m4=nBindings;_j18!==_m4;++_j18){var _bindingsForPath=bindings[_j18];_bindingsForPath[index]=_bindingsForPath[_lastIndex];_bindingsForPath.pop();}}}}\nthis.nCachedObjects_=nCachedObjects;},subscribe_:function subscribe_(path,parsedPath){var indicesByPath=this._bindingsIndicesByPath;var index=indicesByPath[path];var bindings=this._bindings;if(index!==undefined)return bindings[index];var paths=this._paths,parsedPaths=this._parsedPaths,objects=this._objects,nObjects=objects.length,nCachedObjects=this.nCachedObjects_,bindingsForPath=new Array(nObjects);index=bindings.length;indicesByPath[path]=index;paths.push(path);parsedPaths.push(parsedPath);bindings.push(bindingsForPath);for(var _i307=nCachedObjects,n=objects.length;_i307!==n;++_i307){var object=objects[_i307];bindingsForPath[_i307]=new PropertyBinding(object,path,parsedPath);}return bindingsForPath;},unsubscribe_:function unsubscribe_(path){var indicesByPath=this._bindingsIndicesByPath,index=indicesByPath[path];if(index!==undefined){var paths=this._paths,parsedPaths=this._parsedPaths,bindings=this._bindings,lastBindingsIndex=bindings.length-1,lastBindings=bindings[lastBindingsIndex],lastBindingsPath=path[lastBindingsIndex];indicesByPath[lastBindingsPath]=index;bindings[index]=lastBindings;bindings.pop();parsedPaths[index]=parsedPaths[lastBindingsIndex];parsedPaths.pop();paths[index]=paths[lastBindingsIndex];paths.pop();}}});var AnimationAction=function(){function AnimationAction(mixer,clip,localRoot,blendMode){_classCallCheck(this,AnimationAction);this._mixer=mixer;this._clip=clip;this._localRoot=localRoot||null;this.blendMode=blendMode||clip.blendMode;var tracks=clip.tracks,nTracks=tracks.length,interpolants=new Array(nTracks);var interpolantSettings={endingStart:ZeroCurvatureEnding,endingEnd:ZeroCurvatureEnding};for(var _i308=0;_i308!==nTracks;++_i308){var interpolant=tracks[_i308].createInterpolant(null);interpolants[_i308]=interpolant;interpolant.settings=interpolantSettings;}this._interpolantSettings=interpolantSettings;this._interpolants=interpolants;this._propertyBindings=new Array(nTracks);this._cacheIndex=null;this._byClipCacheIndex=null;this._timeScaleInterpolant=null;this._weightInterpolant=null;this.loop=LoopRepeat;this._loopCount=-1;this._startTime=null;this.time=0;this.timeScale=1;this._effectiveTimeScale=1;this.weight=1;this._effectiveWeight=1;this.repetitions=Infinity;this.paused=false;this.enabled=true;this.clampWhenFinished=false;this.zeroSlopeAtStart=true;this.zeroSlopeAtEnd=true;}\n_createClass(AnimationAction,[{key:\"play\",value:function play(){this._mixer._activateAction(this);return this;}},{key:\"stop\",value:function stop(){this._mixer._deactivateAction(this);return this.reset();}},{key:\"reset\",value:function reset(){this.paused=false;this.enabled=true;this.time=0;this._loopCount=-1;this._startTime=null;return this.stopFading().stopWarping();}},{key:\"isRunning\",value:function isRunning(){return this.enabled&&!this.paused&&this.timeScale!==0&&this._startTime===null&&this._mixer._isActiveAction(this);}},{key:\"isScheduled\",value:function isScheduled(){return this._mixer._isActiveAction(this);}},{key:\"startAt\",value:function startAt(time){this._startTime=time;return this;}},{key:\"setLoop\",value:function setLoop(mode,repetitions){this.loop=mode;this.repetitions=repetitions;return this;}},{key:\"setEffectiveWeight\",value:function setEffectiveWeight(weight){this.weight=weight;this._effectiveWeight=this.enabled?weight:0;return this.stopFading();}},{key:\"getEffectiveWeight\",value:function getEffectiveWeight(){return this._effectiveWeight;}},{key:\"fadeIn\",value:function fadeIn(duration){return this._scheduleFading(duration,0,1);}},{key:\"fadeOut\",value:function fadeOut(duration){return this._scheduleFading(duration,1,0);}},{key:\"crossFadeFrom\",value:function crossFadeFrom(fadeOutAction,duration,warp){fadeOutAction.fadeOut(duration);this.fadeIn(duration);if(warp){var fadeInDuration=this._clip.duration,fadeOutDuration=fadeOutAction._clip.duration,startEndRatio=fadeOutDuration/fadeInDuration,endStartRatio=fadeInDuration/fadeOutDuration;fadeOutAction.warp(1.0,startEndRatio,duration);this.warp(endStartRatio,1.0,duration);}return this;}},{key:\"crossFadeTo\",value:function crossFadeTo(fadeInAction,duration,warp){return fadeInAction.crossFadeFrom(this,duration,warp);}},{key:\"stopFading\",value:function stopFading(){var weightInterpolant=this._weightInterpolant;if(weightInterpolant!==null){this._weightInterpolant=null;this._mixer._takeBackControlInterpolant(weightInterpolant);}return this;}},{key:\"setEffectiveTimeScale\",value:function setEffectiveTimeScale(timeScale){this.timeScale=timeScale;this._effectiveTimeScale=this.paused?0:timeScale;return this.stopWarping();}},{key:\"getEffectiveTimeScale\",value:function getEffectiveTimeScale(){return this._effectiveTimeScale;}},{key:\"setDuration\",value:function setDuration(duration){this.timeScale=this._clip.duration/duration;return this.stopWarping();}},{key:\"syncWith\",value:function syncWith(action){this.time=action.time;this.timeScale=action.timeScale;return this.stopWarping();}},{key:\"halt\",value:function halt(duration){return this.warp(this._effectiveTimeScale,0,duration);}},{key:\"warp\",value:function warp(startTimeScale,endTimeScale,duration){var mixer=this._mixer,now=mixer.time,timeScale=this.timeScale;var interpolant=this._timeScaleInterpolant;if(interpolant===null){interpolant=mixer._lendControlInterpolant();this._timeScaleInterpolant=interpolant;}var times=interpolant.parameterPositions,values=interpolant.sampleValues;times[0]=now;times[1]=now+duration;values[0]=startTimeScale/timeScale;values[1]=endTimeScale/timeScale;return this;}},{key:\"stopWarping\",value:function stopWarping(){var timeScaleInterpolant=this._timeScaleInterpolant;if(timeScaleInterpolant!==null){this._timeScaleInterpolant=null;this._mixer._takeBackControlInterpolant(timeScaleInterpolant);}return this;}},{key:\"getMixer\",value:function getMixer(){return this._mixer;}},{key:\"getClip\",value:function getClip(){return this._clip;}},{key:\"getRoot\",value:function getRoot(){return this._localRoot||this._mixer._root;}},{key:\"_update\",value:function _update(time,deltaTime,timeDirection,accuIndex){if(!this.enabled){this._updateWeight(time);return;}var startTime=this._startTime;if(startTime!==null){var timeRunning=(time-startTime)*timeDirection;if(timeRunning<0||timeDirection===0){return;}\nthis._startTime=null;deltaTime=timeDirection*timeRunning;}\ndeltaTime*=this._updateTimeScale(time);var clipTime=this._updateTime(deltaTime);var weight=this._updateWeight(time);if(weight>0){var _interpolants=this._interpolants;var propertyMixers=this._propertyBindings;switch(this.blendMode){case AdditiveAnimationBlendMode:for(var j=0,m=_interpolants.length;j!==m;++j){_interpolants[j].evaluate(clipTime);propertyMixers[j].accumulateAdditive(weight);}break;case NormalAnimationBlendMode:default:for(var _j19=0,_m5=_interpolants.length;_j19!==_m5;++_j19){_interpolants[_j19].evaluate(clipTime);propertyMixers[_j19].accumulate(accuIndex,weight);}}}}},{key:\"_updateWeight\",value:function _updateWeight(time){var weight=0;if(this.enabled){weight=this.weight;var interpolant=this._weightInterpolant;if(interpolant!==null){var interpolantValue=interpolant.evaluate(time)[0];weight*=interpolantValue;if(time>interpolant.parameterPositions[1]){this.stopFading();if(interpolantValue===0){this.enabled=false;}}}}this._effectiveWeight=weight;return weight;}},{key:\"_updateTimeScale\",value:function _updateTimeScale(time){var timeScale=0;if(!this.paused){timeScale=this.timeScale;var interpolant=this._timeScaleInterpolant;if(interpolant!==null){var interpolantValue=interpolant.evaluate(time)[0];timeScale*=interpolantValue;if(time>interpolant.parameterPositions[1]){this.stopWarping();if(timeScale===0){this.paused=true;}else{this.timeScale=timeScale;}}}}this._effectiveTimeScale=timeScale;return timeScale;}},{key:\"_updateTime\",value:function _updateTime(deltaTime){var duration=this._clip.duration;var loop=this.loop;var time=this.time+deltaTime;var loopCount=this._loopCount;var pingPong=loop===LoopPingPong;if(deltaTime===0){if(loopCount===-1)return time;return pingPong&&(loopCount&1)===1?duration-time:time;}if(loop===LoopOnce){if(loopCount===-1){this._loopCount=0;this._setEndings(true,true,false);}handle_stop:{if(time>=duration){time=duration;}else if(time<0){time=0;}else{this.time=time;break handle_stop;}if(this.clampWhenFinished)this.paused=true;else this.enabled=false;this.time=time;this._mixer.dispatchEvent({type:'finished',action:this,direction:deltaTime<0?-1:1});}}else{if(loopCount===-1){if(deltaTime>=0){loopCount=0;this._setEndings(true,this.repetitions===0,pingPong);}else{this._setEndings(this.repetitions===0,true,pingPong);}}if(time>=duration||time<0){var loopDelta=Math.floor(time/duration);time-=duration*loopDelta;loopCount+=Math.abs(loopDelta);var pending=this.repetitions-loopCount;if(pending<=0){if(this.clampWhenFinished)this.paused=true;else this.enabled=false;time=deltaTime>0?duration:0;this.time=time;this._mixer.dispatchEvent({type:'finished',action:this,direction:deltaTime>0?1:-1});}else{if(pending===1){var atStart=deltaTime<0;this._setEndings(atStart,!atStart,pingPong);}else{this._setEndings(false,false,pingPong);}this._loopCount=loopCount;this.time=time;this._mixer.dispatchEvent({type:'loop',action:this,loopDelta:loopDelta});}}else{this.time=time;}if(pingPong&&(loopCount&1)===1){return duration-time;}}return time;}},{key:\"_setEndings\",value:function _setEndings(atStart,atEnd,pingPong){var settings=this._interpolantSettings;if(pingPong){settings.endingStart=ZeroSlopeEnding;settings.endingEnd=ZeroSlopeEnding;}else{if(atStart){settings.endingStart=this.zeroSlopeAtStart?ZeroSlopeEnding:ZeroCurvatureEnding;}else{settings.endingStart=WrapAroundEnding;}if(atEnd){settings.endingEnd=this.zeroSlopeAtEnd?ZeroSlopeEnding:ZeroCurvatureEnding;}else{settings.endingEnd=WrapAroundEnding;}}}},{key:\"_scheduleFading\",value:function _scheduleFading(duration,weightNow,weightThen){var mixer=this._mixer,now=mixer.time;var interpolant=this._weightInterpolant;if(interpolant===null){interpolant=mixer._lendControlInterpolant();this._weightInterpolant=interpolant;}var times=interpolant.parameterPositions,values=interpolant.sampleValues;times[0]=now;values[0]=weightNow;times[1]=now+duration;values[1]=weightThen;return this;}}]);return AnimationAction;}();function AnimationMixer(root){this._root=root;this._initMemoryManager();this._accuIndex=0;this.time=0;this.timeScale=1.0;}AnimationMixer.prototype=Object.assign(Object.create(EventDispatcher.prototype),{constructor:AnimationMixer,_bindAction:function _bindAction(action,prototypeAction){var root=action._localRoot||this._root,tracks=action._clip.tracks,nTracks=tracks.length,bindings=action._propertyBindings,interpolants=action._interpolants,rootUuid=root.uuid,bindingsByRoot=this._bindingsByRootAndName;var bindingsByName=bindingsByRoot[rootUuid];if(bindingsByName===undefined){bindingsByName={};bindingsByRoot[rootUuid]=bindingsByName;}for(var _i309=0;_i309!==nTracks;++_i309){var track=tracks[_i309],trackName=track.name;var binding=bindingsByName[trackName];if(binding!==undefined){bindings[_i309]=binding;}else{binding=bindings[_i309];if(binding!==undefined){if(binding._cacheIndex===null){++binding.referenceCount;this._addInactiveBinding(binding,rootUuid,trackName);}continue;}var path=prototypeAction&&prototypeAction._propertyBindings[_i309].binding.parsedPath;binding=new PropertyMixer(PropertyBinding.create(root,trackName,path),track.ValueTypeName,track.getValueSize());++binding.referenceCount;this._addInactiveBinding(binding,rootUuid,trackName);bindings[_i309]=binding;}interpolants[_i309].resultBuffer=binding.buffer;}},_activateAction:function _activateAction(action){if(!this._isActiveAction(action)){if(action._cacheIndex===null){var rootUuid=(action._localRoot||this._root).uuid,clipUuid=action._clip.uuid,actionsForClip=this._actionsByClip[clipUuid];this._bindAction(action,actionsForClip&&actionsForClip.knownActions[0]);this._addInactiveAction(action,clipUuid,rootUuid);}var bindings=action._propertyBindings;for(var _i310=0,n=bindings.length;_i310!==n;++_i310){var binding=bindings[_i310];if(binding.useCount++===0){this._lendBinding(binding);binding.saveOriginalState();}}this._lendAction(action);}},_deactivateAction:function _deactivateAction(action){if(this._isActiveAction(action)){var bindings=action._propertyBindings;for(var _i311=0,n=bindings.length;_i311!==n;++_i311){var binding=bindings[_i311];if(--binding.useCount===0){binding.restoreOriginalState();this._takeBackBinding(binding);}}this._takeBackAction(action);}},_initMemoryManager:function _initMemoryManager(){this._actions=[];this._nActiveActions=0;this._actionsByClip={};this._bindings=[];this._nActiveBindings=0;this._bindingsByRootAndName={};this._controlInterpolants=[];this._nActiveControlInterpolants=0;var scope=this;this.stats={actions:{get total(){return scope._actions.length;},get inUse(){return scope._nActiveActions;}},bindings:{get total(){return scope._bindings.length;},get inUse(){return scope._nActiveBindings;}},controlInterpolants:{get total(){return scope._controlInterpolants.length;},get inUse(){return scope._nActiveControlInterpolants;}}};},_isActiveAction:function _isActiveAction(action){var index=action._cacheIndex;return index!==null&&index<this._nActiveActions;},_addInactiveAction:function _addInactiveAction(action,clipUuid,rootUuid){var actions=this._actions,actionsByClip=this._actionsByClip;var actionsForClip=actionsByClip[clipUuid];if(actionsForClip===undefined){actionsForClip={knownActions:[action],actionByRoot:{}};action._byClipCacheIndex=0;actionsByClip[clipUuid]=actionsForClip;}else{var knownActions=actionsForClip.knownActions;action._byClipCacheIndex=knownActions.length;knownActions.push(action);}action._cacheIndex=actions.length;actions.push(action);actionsForClip.actionByRoot[rootUuid]=action;},_removeInactiveAction:function _removeInactiveAction(action){var actions=this._actions,lastInactiveAction=actions[actions.length-1],cacheIndex=action._cacheIndex;lastInactiveAction._cacheIndex=cacheIndex;actions[cacheIndex]=lastInactiveAction;actions.pop();action._cacheIndex=null;var clipUuid=action._clip.uuid,actionsByClip=this._actionsByClip,actionsForClip=actionsByClip[clipUuid],knownActionsForClip=actionsForClip.knownActions,lastKnownAction=knownActionsForClip[knownActionsForClip.length-1],byClipCacheIndex=action._byClipCacheIndex;lastKnownAction._byClipCacheIndex=byClipCacheIndex;knownActionsForClip[byClipCacheIndex]=lastKnownAction;knownActionsForClip.pop();action._byClipCacheIndex=null;var actionByRoot=actionsForClip.actionByRoot,rootUuid=(action._localRoot||this._root).uuid;delete actionByRoot[rootUuid];if(knownActionsForClip.length===0){delete actionsByClip[clipUuid];}this._removeInactiveBindingsForAction(action);},_removeInactiveBindingsForAction:function _removeInactiveBindingsForAction(action){var bindings=action._propertyBindings;for(var _i312=0,n=bindings.length;_i312!==n;++_i312){var binding=bindings[_i312];if(--binding.referenceCount===0){this._removeInactiveBinding(binding);}}},_lendAction:function _lendAction(action){var actions=this._actions,prevIndex=action._cacheIndex,lastActiveIndex=this._nActiveActions++,firstInactiveAction=actions[lastActiveIndex];action._cacheIndex=lastActiveIndex;actions[lastActiveIndex]=action;firstInactiveAction._cacheIndex=prevIndex;actions[prevIndex]=firstInactiveAction;},_takeBackAction:function _takeBackAction(action){var actions=this._actions,prevIndex=action._cacheIndex,firstInactiveIndex=--this._nActiveActions,lastActiveAction=actions[firstInactiveIndex];action._cacheIndex=firstInactiveIndex;actions[firstInactiveIndex]=action;lastActiveAction._cacheIndex=prevIndex;actions[prevIndex]=lastActiveAction;},_addInactiveBinding:function _addInactiveBinding(binding,rootUuid,trackName){var bindingsByRoot=this._bindingsByRootAndName,bindings=this._bindings;var bindingByName=bindingsByRoot[rootUuid];if(bindingByName===undefined){bindingByName={};bindingsByRoot[rootUuid]=bindingByName;}bindingByName[trackName]=binding;binding._cacheIndex=bindings.length;bindings.push(binding);},_removeInactiveBinding:function _removeInactiveBinding(binding){var bindings=this._bindings,propBinding=binding.binding,rootUuid=propBinding.rootNode.uuid,trackName=propBinding.path,bindingsByRoot=this._bindingsByRootAndName,bindingByName=bindingsByRoot[rootUuid],lastInactiveBinding=bindings[bindings.length-1],cacheIndex=binding._cacheIndex;lastInactiveBinding._cacheIndex=cacheIndex;bindings[cacheIndex]=lastInactiveBinding;bindings.pop();delete bindingByName[trackName];if(Object.keys(bindingByName).length===0){delete bindingsByRoot[rootUuid];}},_lendBinding:function _lendBinding(binding){var bindings=this._bindings,prevIndex=binding._cacheIndex,lastActiveIndex=this._nActiveBindings++,firstInactiveBinding=bindings[lastActiveIndex];binding._cacheIndex=lastActiveIndex;bindings[lastActiveIndex]=binding;firstInactiveBinding._cacheIndex=prevIndex;bindings[prevIndex]=firstInactiveBinding;},_takeBackBinding:function _takeBackBinding(binding){var bindings=this._bindings,prevIndex=binding._cacheIndex,firstInactiveIndex=--this._nActiveBindings,lastActiveBinding=bindings[firstInactiveIndex];binding._cacheIndex=firstInactiveIndex;bindings[firstInactiveIndex]=binding;lastActiveBinding._cacheIndex=prevIndex;bindings[prevIndex]=lastActiveBinding;},_lendControlInterpolant:function _lendControlInterpolant(){var interpolants=this._controlInterpolants,lastActiveIndex=this._nActiveControlInterpolants++;var interpolant=interpolants[lastActiveIndex];if(interpolant===undefined){interpolant=new LinearInterpolant(new Float32Array(2),new Float32Array(2),1,this._controlInterpolantsResultBuffer);interpolant.__cacheIndex=lastActiveIndex;interpolants[lastActiveIndex]=interpolant;}return interpolant;},_takeBackControlInterpolant:function _takeBackControlInterpolant(interpolant){var interpolants=this._controlInterpolants,prevIndex=interpolant.__cacheIndex,firstInactiveIndex=--this._nActiveControlInterpolants,lastActiveInterpolant=interpolants[firstInactiveIndex];interpolant.__cacheIndex=firstInactiveIndex;interpolants[firstInactiveIndex]=interpolant;lastActiveInterpolant.__cacheIndex=prevIndex;interpolants[prevIndex]=lastActiveInterpolant;},_controlInterpolantsResultBuffer:new Float32Array(1),clipAction:function clipAction(clip,optionalRoot,blendMode){var root=optionalRoot||this._root,rootUuid=root.uuid;var clipObject=typeof clip==='string'?AnimationClip.findByName(root,clip):clip;var clipUuid=clipObject!==null?clipObject.uuid:clip;var actionsForClip=this._actionsByClip[clipUuid];var prototypeAction=null;if(blendMode===undefined){if(clipObject!==null){blendMode=clipObject.blendMode;}else{blendMode=NormalAnimationBlendMode;}}if(actionsForClip!==undefined){var existingAction=actionsForClip.actionByRoot[rootUuid];if(existingAction!==undefined&&existingAction.blendMode===blendMode){return existingAction;}\nprototypeAction=actionsForClip.knownActions[0];if(clipObject===null)clipObject=prototypeAction._clip;}\nif(clipObject===null)return null;var newAction=new AnimationAction(this,clipObject,optionalRoot,blendMode);this._bindAction(newAction,prototypeAction);this._addInactiveAction(newAction,clipUuid,rootUuid);return newAction;},existingAction:function existingAction(clip,optionalRoot){var root=optionalRoot||this._root,rootUuid=root.uuid,clipObject=typeof clip==='string'?AnimationClip.findByName(root,clip):clip,clipUuid=clipObject?clipObject.uuid:clip,actionsForClip=this._actionsByClip[clipUuid];if(actionsForClip!==undefined){return actionsForClip.actionByRoot[rootUuid]||null;}return null;},stopAllAction:function stopAllAction(){var actions=this._actions,nActions=this._nActiveActions;for(var _i313=nActions-1;_i313>=0;--_i313){actions[_i313].stop();}return this;},update:function update(deltaTime){deltaTime*=this.timeScale;var actions=this._actions,nActions=this._nActiveActions,time=this.time+=deltaTime,timeDirection=Math.sign(deltaTime),accuIndex=this._accuIndex^=1;for(var _i314=0;_i314!==nActions;++_i314){var action=actions[_i314];action._update(time,deltaTime,timeDirection,accuIndex);}\nvar bindings=this._bindings,nBindings=this._nActiveBindings;for(var _i315=0;_i315!==nBindings;++_i315){bindings[_i315].apply(accuIndex);}return this;},setTime:function setTime(timeInSeconds){this.time=0;for(var _i316=0;_i316<this._actions.length;_i316++){this._actions[_i316].time=0;}return this.update(timeInSeconds);},getRoot:function getRoot(){return this._root;},uncacheClip:function uncacheClip(clip){var actions=this._actions,clipUuid=clip.uuid,actionsByClip=this._actionsByClip,actionsForClip=actionsByClip[clipUuid];if(actionsForClip!==undefined){var actionsToRemove=actionsForClip.knownActions;for(var _i317=0,n=actionsToRemove.length;_i317!==n;++_i317){var action=actionsToRemove[_i317];this._deactivateAction(action);var cacheIndex=action._cacheIndex,lastInactiveAction=actions[actions.length-1];action._cacheIndex=null;action._byClipCacheIndex=null;lastInactiveAction._cacheIndex=cacheIndex;actions[cacheIndex]=lastInactiveAction;actions.pop();this._removeInactiveBindingsForAction(action);}delete actionsByClip[clipUuid];}},uncacheRoot:function uncacheRoot(root){var rootUuid=root.uuid,actionsByClip=this._actionsByClip;for(var clipUuid in actionsByClip){var actionByRoot=actionsByClip[clipUuid].actionByRoot,action=actionByRoot[rootUuid];if(action!==undefined){this._deactivateAction(action);this._removeInactiveAction(action);}}var bindingsByRoot=this._bindingsByRootAndName,bindingByName=bindingsByRoot[rootUuid];if(bindingByName!==undefined){for(var trackName in bindingByName){var binding=bindingByName[trackName];binding.restoreOriginalState();this._removeInactiveBinding(binding);}}},uncacheAction:function uncacheAction(clip,optionalRoot){var action=this.existingAction(clip,optionalRoot);if(action!==null){this._deactivateAction(action);this._removeInactiveAction(action);}}});var Uniform=function(){function Uniform(value){_classCallCheck(this,Uniform);if(typeof value==='string'){console.warn('THREE.Uniform: Type parameter is no longer needed.');value=arguments[1];}this.value=value;}_createClass(Uniform,[{key:\"clone\",value:function clone(){return new Uniform(this.value.clone===undefined?this.value:this.value.clone());}}]);return Uniform;}();function InstancedInterleavedBuffer(array,stride,meshPerAttribute){InterleavedBuffer.call(this,array,stride);this.meshPerAttribute=meshPerAttribute||1;}InstancedInterleavedBuffer.prototype=Object.assign(Object.create(InterleavedBuffer.prototype),{constructor:InstancedInterleavedBuffer,isInstancedInterleavedBuffer:true,copy:function copy(source){InterleavedBuffer.prototype.copy.call(this,source);this.meshPerAttribute=source.meshPerAttribute;return this;},clone:function clone(data){var ib=InterleavedBuffer.prototype.clone.call(this,data);ib.meshPerAttribute=this.meshPerAttribute;return ib;},toJSON:function toJSON(data){var json=InterleavedBuffer.prototype.toJSON.call(this,data);json.isInstancedInterleavedBuffer=true;json.meshPerAttribute=this.meshPerAttribute;return json;}});function GLBufferAttribute(buffer,type,itemSize,elementSize,count){this.buffer=buffer;this.type=type;this.itemSize=itemSize;this.elementSize=elementSize;this.count=count;this.version=0;}Object.defineProperty(GLBufferAttribute.prototype,'needsUpdate',{set:function set(value){if(value===true)this.version++;}});Object.assign(GLBufferAttribute.prototype,{isGLBufferAttribute:true,setBuffer:function setBuffer(buffer){this.buffer=buffer;return this;},setType:function setType(type,elementSize){this.type=type;this.elementSize=elementSize;return this;},setItemSize:function setItemSize(itemSize){this.itemSize=itemSize;return this;},setCount:function setCount(count){this.count=count;return this;}});function Raycaster(origin,direction,near,far){this.ray=new Ray(origin,direction);this.near=near||0;this.far=far||Infinity;this.camera=null;this.layers=new Layers();this.params={Mesh:{},Line:{threshold:1},LOD:{},Points:{threshold:1},Sprite:{}};Object.defineProperties(this.params,{PointCloud:{get:function get(){console.warn('THREE.Raycaster: params.PointCloud has been renamed to params.Points.');return this.Points;}}});}function ascSort(a,b){return a.distance-b.distance;}function _intersectObject(object,raycaster,intersects,recursive){if(object.layers.test(raycaster.layers)){object.raycast(raycaster,intersects);}if(recursive===true){var children=object.children;for(var _i318=0,l=children.length;_i318<l;_i318++){_intersectObject(children[_i318],raycaster,intersects,true);}}}Object.assign(Raycaster.prototype,{set:function set(origin,direction){this.ray.set(origin,direction);},setFromCamera:function setFromCamera(coords,camera){if(camera&&camera.isPerspectiveCamera){this.ray.origin.setFromMatrixPosition(camera.matrixWorld);this.ray.direction.set(coords.x,coords.y,0.5).unproject(camera).sub(this.ray.origin).normalize();this.camera=camera;}else if(camera&&camera.isOrthographicCamera){this.ray.origin.set(coords.x,coords.y,(camera.near+camera.far)/(camera.near-camera.far)).unproject(camera);this.ray.direction.set(0,0,-1).transformDirection(camera.matrixWorld);this.camera=camera;}else{console.error('THREE.Raycaster: Unsupported camera type.');}},intersectObject:function intersectObject(object,recursive,optionalTarget){var intersects=optionalTarget||[];_intersectObject(object,this,intersects,recursive);intersects.sort(ascSort);return intersects;},intersectObjects:function intersectObjects(objects,recursive,optionalTarget){var intersects=optionalTarget||[];if(Array.isArray(objects)===false){console.warn('THREE.Raycaster.intersectObjects: objects is not an Array.');return intersects;}for(var _i319=0,l=objects.length;_i319<l;_i319++){_intersectObject(objects[_i319],this,intersects,recursive);}intersects.sort(ascSort);return intersects;}});var Spherical=function(){function Spherical(){var radius=arguments.length>0&&arguments[0]!==undefined?arguments[0]:1;var phi=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var theta=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;_classCallCheck(this,Spherical);this.radius=radius;this.phi=phi;this.theta=theta;return this;}_createClass(Spherical,[{key:\"set\",value:function set(radius,phi,theta){this.radius=radius;this.phi=phi;this.theta=theta;return this;}},{key:\"clone\",value:function clone(){return new this.constructor().copy(this);}},{key:\"copy\",value:function copy(other){this.radius=other.radius;this.phi=other.phi;this.theta=other.theta;return this;}},{key:\"makeSafe\",value:function makeSafe(){var EPS=0.000001;this.phi=Math.max(EPS,Math.min(Math.PI-EPS,this.phi));return this;}},{key:\"setFromVector3\",value:function setFromVector3(v){return this.setFromCartesianCoords(v.x,v.y,v.z);}},{key:\"setFromCartesianCoords\",value:function setFromCartesianCoords(x,y,z){this.radius=Math.sqrt(x*x+y*y+z*z);if(this.radius===0){this.theta=0;this.phi=0;}else{this.theta=Math.atan2(x,z);this.phi=Math.acos(MathUtils.clamp(y/this.radius,-1,1));}return this;}}]);return Spherical;}();var _vector$7=/*@__PURE__*/ new Vector2();var Box2=function(){function Box2(min,max){_classCallCheck(this,Box2);Object.defineProperty(this,'isBox2',{value:true});this.min=min!==undefined?min:new Vector2(+Infinity,+Infinity);this.max=max!==undefined?max:new Vector2(-Infinity,-Infinity);}_createClass(Box2,[{key:\"set\",value:function set(min,max){this.min.copy(min);this.max.copy(max);return this;}},{key:\"setFromPoints\",value:function setFromPoints(points){this.makeEmpty();for(var _i320=0,il=points.length;_i320<il;_i320++){this.expandByPoint(points[_i320]);}return this;}},{key:\"setFromCenterAndSize\",value:function setFromCenterAndSize(center,size){var halfSize=_vector$7.copy(size).multiplyScalar(0.5);this.min.copy(center).sub(halfSize);this.max.copy(center).add(halfSize);return this;}},{key:\"clone\",value:function clone(){return new this.constructor().copy(this);}},{key:\"copy\",value:function copy(box){this.min.copy(box.min);this.max.copy(box.max);return this;}},{key:\"makeEmpty\",value:function makeEmpty(){this.min.x=this.min.y=+Infinity;this.max.x=this.max.y=-Infinity;return this;}},{key:\"isEmpty\",value:function isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y;}},{key:\"getCenter\",value:function getCenter(target){if(target===undefined){console.warn('THREE.Box2: .getCenter() target is now required');target=new Vector2();}return this.isEmpty()?target.set(0,0):target.addVectors(this.min,this.max).multiplyScalar(0.5);}},{key:\"getSize\",value:function getSize(target){if(target===undefined){console.warn('THREE.Box2: .getSize() target is now required');target=new Vector2();}return this.isEmpty()?target.set(0,0):target.subVectors(this.max,this.min);}},{key:\"expandByPoint\",value:function expandByPoint(point){this.min.min(point);this.max.max(point);return this;}},{key:\"expandByVector\",value:function expandByVector(vector){this.min.sub(vector);this.max.add(vector);return this;}},{key:\"expandByScalar\",value:function expandByScalar(scalar){this.min.addScalar(-scalar);this.max.addScalar(scalar);return this;}},{key:\"containsPoint\",value:function containsPoint(point){return point.x<this.min.x||point.x>this.max.x||point.y<this.min.y||point.y>this.max.y?false:true;}},{key:\"containsBox\",value:function containsBox(box){return this.min.x<=box.min.x&&box.max.x<=this.max.x&&this.min.y<=box.min.y&&box.max.y<=this.max.y;}},{key:\"getParameter\",value:function getParameter(point,target){if(target===undefined){console.warn('THREE.Box2: .getParameter() target is now required');target=new Vector2();}return target.set((point.x-this.min.x)/(this.max.x-this.min.x),(point.y-this.min.y)/(this.max.y-this.min.y));}},{key:\"intersectsBox\",value:function intersectsBox(box){return box.max.x<this.min.x||box.min.x>this.max.x||box.max.y<this.min.y||box.min.y>this.max.y?false:true;}},{key:\"clampPoint\",value:function clampPoint(point,target){if(target===undefined){console.warn('THREE.Box2: .clampPoint() target is now required');target=new Vector2();}return target.copy(point).clamp(this.min,this.max);}},{key:\"distanceToPoint\",value:function distanceToPoint(point){var clampedPoint=_vector$7.copy(point).clamp(this.min,this.max);return clampedPoint.sub(point).length();}},{key:\"intersect\",value:function intersect(box){this.min.max(box.min);this.max.min(box.max);return this;}},{key:\"union\",value:function union(box){this.min.min(box.min);this.max.max(box.max);return this;}},{key:\"translate\",value:function translate(offset){this.min.add(offset);this.max.add(offset);return this;}},{key:\"equals\",value:function equals(box){return box.min.equals(this.min)&&box.max.equals(this.max);}}]);return Box2;}();function ImmediateRenderObject(material){Object3D.call(this);this.material=material;this.render=function(){};this.hasPositions=false;this.hasNormals=false;this.hasColors=false;this.hasUvs=false;this.positionArray=null;this.normalArray=null;this.colorArray=null;this.uvArray=null;this.count=0;}ImmediateRenderObject.prototype=Object.create(Object3D.prototype);ImmediateRenderObject.prototype.constructor=ImmediateRenderObject;ImmediateRenderObject.prototype.isImmediateRenderObject=true;var _vector$9=/*@__PURE__*/ new Vector3();var _boneMatrix=/*@__PURE__*/ new Matrix4();var _matrixWorldInv=/*@__PURE__*/ new Matrix4();var SkeletonHelper=function(_LineSegments){_inherits(SkeletonHelper,_LineSegments);var _super10=_createSuper(SkeletonHelper);function SkeletonHelper(object){var _this17;_classCallCheck(this,SkeletonHelper);var bones=getBoneList(object);var geometry=new BufferGeometry();var vertices=[];var colors=[];var color1=new Color(0,0,1);var color2=new Color(0,1,0);for(var _i321=0;_i321<bones.length;_i321++){var bone=bones[_i321];if(bone.parent&&bone.parent.isBone){vertices.push(0,0,0);vertices.push(0,0,0);colors.push(color1.r,color1.g,color1.b);colors.push(color2.r,color2.g,color2.b);}}geometry.setAttribute('position',new Float32BufferAttribute(vertices,3));geometry.setAttribute('color',new Float32BufferAttribute(colors,3));var material=new LineBasicMaterial({vertexColors:true,depthTest:false,depthWrite:false,toneMapped:false,transparent:true});_this17=_super10.call(this,geometry,material);_this17.type='SkeletonHelper';_this17.isSkeletonHelper=true;_this17.root=object;_this17.bones=bones;_this17.matrix=object.matrixWorld;_this17.matrixAutoUpdate=false;return _this17;}_createClass(SkeletonHelper,[{key:\"updateMatrixWorld\",value:function updateMatrixWorld(force){var bones=this.bones;var geometry=this.geometry;var position=geometry.getAttribute('position');_matrixWorldInv.getInverse(this.root.matrixWorld);for(var _i322=0,j=0;_i322<bones.length;_i322++){var bone=bones[_i322];if(bone.parent&&bone.parent.isBone){_boneMatrix.multiplyMatrices(_matrixWorldInv,bone.matrixWorld);_vector$9.setFromMatrixPosition(_boneMatrix);position.setXYZ(j,_vector$9.x,_vector$9.y,_vector$9.z);_boneMatrix.multiplyMatrices(_matrixWorldInv,bone.parent.matrixWorld);_vector$9.setFromMatrixPosition(_boneMatrix);position.setXYZ(j+1,_vector$9.x,_vector$9.y,_vector$9.z);j+=2;}}geometry.getAttribute('position').needsUpdate=true;_get(_getPrototypeOf(SkeletonHelper.prototype),\"updateMatrixWorld\",this).call(this,force);}}]);return SkeletonHelper;}(LineSegments);function getBoneList(object){var boneList=[];if(object&&object.isBone){boneList.push(object);}for(var _i323=0;_i323<object.children.length;_i323++){boneList.push.apply(boneList,getBoneList(object.children[_i323]));}return boneList;}var LOD_MIN=4;var LOD_MAX=8;var SIZE_MAX=Math.pow(2,LOD_MAX);var EXTRA_LOD_SIGMA=[0.125,0.215,0.35,0.446,0.526,0.582];var TOTAL_LODS=LOD_MAX-LOD_MIN+1+EXTRA_LOD_SIGMA.length;var MAX_SAMPLES=20;var ENCODINGS=(_ENCODINGS={},_defineProperty(_ENCODINGS,LinearEncoding,0),_defineProperty(_ENCODINGS,sRGBEncoding,1),_defineProperty(_ENCODINGS,RGBEEncoding,2),_defineProperty(_ENCODINGS,RGBM7Encoding,3),_defineProperty(_ENCODINGS,RGBM16Encoding,4),_defineProperty(_ENCODINGS,RGBDEncoding,5),_defineProperty(_ENCODINGS,GammaEncoding,6),_ENCODINGS);var _flatCamera=/*@__PURE__*/ new OrthographicCamera();var _createPlanes2=/*@__PURE__*/ _createPlanes(),_lodPlanes=_createPlanes2._lodPlanes,_sizeLods=_createPlanes2._sizeLods,_sigmas=_createPlanes2._sigmas;var _oldTarget=null;var PHI=(1+Math.sqrt(5))/2;var INV_PHI=1/PHI;var _axisDirections=[/*@__PURE__*/ new Vector3(1,1,1),/*@__PURE__*/ new Vector3(-1,1,1),/*@__PURE__*/ new Vector3(1,1,-1),/*@__PURE__*/ new Vector3(-1,1,-1),/*@__PURE__*/ new Vector3(0,PHI,INV_PHI),/*@__PURE__*/ new Vector3(0,PHI,-INV_PHI),/*@__PURE__*/ new Vector3(INV_PHI,0,PHI),/*@__PURE__*/ new Vector3(-INV_PHI,0,PHI),/*@__PURE__*/ new Vector3(PHI,INV_PHI,0),/*@__PURE__*/ new Vector3(-PHI,INV_PHI,0)];var PMREMGenerator=function(){function PMREMGenerator(renderer){_classCallCheck(this,PMREMGenerator);this._renderer=renderer;this._pingPongRenderTarget=null;this._blurMaterial=_getBlurShader(MAX_SAMPLES);this._equirectShader=null;this._cubemapShader=null;this._compileMaterial(this._blurMaterial);}_createClass(PMREMGenerator,[{key:\"fromScene\",value:function fromScene(scene){var sigma=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var near=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0.1;var far=arguments.length>3&&arguments[3]!==undefined?arguments[3]:100;_oldTarget=this._renderer.getRenderTarget();var cubeUVRenderTarget=this._allocateTargets();this._sceneToCubeUV(scene,near,far,cubeUVRenderTarget);if(sigma>0){this._blur(cubeUVRenderTarget,0,0,sigma);}this._applyPMREM(cubeUVRenderTarget);this._cleanup(cubeUVRenderTarget);return cubeUVRenderTarget;}},{key:\"fromEquirectangular\",value:function fromEquirectangular(equirectangular){return this._fromTexture(equirectangular);}},{key:\"fromCubemap\",value:function fromCubemap(cubemap){return this._fromTexture(cubemap);}},{key:\"compileCubemapShader\",value:function compileCubemapShader(){if(this._cubemapShader===null){this._cubemapShader=_getCubemapShader();this._compileMaterial(this._cubemapShader);}}},{key:\"compileEquirectangularShader\",value:function compileEquirectangularShader(){if(this._equirectShader===null){this._equirectShader=_getEquirectShader();this._compileMaterial(this._equirectShader);}}},{key:\"dispose\",value:function dispose(){this._blurMaterial.dispose();if(this._cubemapShader!==null)this._cubemapShader.dispose();if(this._equirectShader!==null)this._equirectShader.dispose();for(var _i324=0;_i324<_lodPlanes.length;_i324++){_lodPlanes[_i324].dispose();}}},{key:\"_cleanup\",value:function _cleanup(outputTarget){this._pingPongRenderTarget.dispose();this._renderer.setRenderTarget(_oldTarget);outputTarget.scissorTest=false;_setViewport(outputTarget,0,0,outputTarget.width,outputTarget.height);}},{key:\"_fromTexture\",value:function _fromTexture(texture){_oldTarget=this._renderer.getRenderTarget();var cubeUVRenderTarget=this._allocateTargets(texture);this._textureToCubeUV(texture,cubeUVRenderTarget);this._applyPMREM(cubeUVRenderTarget);this._cleanup(cubeUVRenderTarget);return cubeUVRenderTarget;}},{key:\"_allocateTargets\",value:function _allocateTargets(texture){var params={magFilter:NearestFilter,minFilter:NearestFilter,generateMipmaps:false,type:UnsignedByteType,format:RGBEFormat,encoding:_isLDR(texture)?texture.encoding:RGBEEncoding,depthBuffer:false};var cubeUVRenderTarget=_createRenderTarget(params);cubeUVRenderTarget.depthBuffer=texture?false:true;this._pingPongRenderTarget=_createRenderTarget(params);return cubeUVRenderTarget;}},{key:\"_compileMaterial\",value:function _compileMaterial(material){var tmpMesh=new Mesh(_lodPlanes[0],material);this._renderer.compile(tmpMesh,_flatCamera);}},{key:\"_sceneToCubeUV\",value:function _sceneToCubeUV(scene,near,far,cubeUVRenderTarget){var fov=90;var aspect=1;var cubeCamera=new PerspectiveCamera(fov,aspect,near,far);var upSign=[1,-1,1,1,1,1];var forwardSign=[1,1,1,-1,-1,-1];var renderer=this._renderer;var outputEncoding=renderer.outputEncoding;var toneMapping=renderer.toneMapping;var clearColor=renderer.getClearColor();var clearAlpha=renderer.getClearAlpha();renderer.toneMapping=NoToneMapping;renderer.outputEncoding=LinearEncoding;var background=scene.background;if(background&&background.isColor){background.convertSRGBToLinear();var maxComponent=Math.max(background.r,background.g,background.b);var fExp=Math.min(Math.max(Math.ceil(Math.log2(maxComponent)),-128.0),127.0);background=background.multiplyScalar(Math.pow(2.0,-fExp));var alpha=(fExp+128.0)/255.0;renderer.setClearColor(background,alpha);scene.background=null;}for(var _i325=0;_i325<6;_i325++){var col=_i325%3;if(col==0){cubeCamera.up.set(0,upSign[_i325],0);cubeCamera.lookAt(forwardSign[_i325],0,0);}else if(col==1){cubeCamera.up.set(0,0,upSign[_i325]);cubeCamera.lookAt(0,forwardSign[_i325],0);}else{cubeCamera.up.set(0,upSign[_i325],0);cubeCamera.lookAt(0,0,forwardSign[_i325]);}_setViewport(cubeUVRenderTarget,col*SIZE_MAX,_i325>2?SIZE_MAX:0,SIZE_MAX,SIZE_MAX);renderer.setRenderTarget(cubeUVRenderTarget);renderer.render(scene,cubeCamera);}renderer.toneMapping=toneMapping;renderer.outputEncoding=outputEncoding;renderer.setClearColor(clearColor,clearAlpha);}},{key:\"_textureToCubeUV\",value:function _textureToCubeUV(texture,cubeUVRenderTarget){var renderer=this._renderer;if(texture.isCubeTexture){if(this._cubemapShader==null){this._cubemapShader=_getCubemapShader();}}else{if(this._equirectShader==null){this._equirectShader=_getEquirectShader();}}var material=texture.isCubeTexture?this._cubemapShader:this._equirectShader;var mesh=new Mesh(_lodPlanes[0],material);var uniforms=material.uniforms;uniforms['envMap'].value=texture;if(!texture.isCubeTexture){uniforms['texelSize'].value.set(1.0/texture.image.width,1.0/texture.image.height);}uniforms['inputEncoding'].value=ENCODINGS[texture.encoding];uniforms['outputEncoding'].value=ENCODINGS[cubeUVRenderTarget.texture.encoding];_setViewport(cubeUVRenderTarget,0,0,3*SIZE_MAX,2*SIZE_MAX);renderer.setRenderTarget(cubeUVRenderTarget);renderer.render(mesh,_flatCamera);}},{key:\"_applyPMREM\",value:function _applyPMREM(cubeUVRenderTarget){var renderer=this._renderer;var autoClear=renderer.autoClear;renderer.autoClear=false;for(var _i326=1;_i326<TOTAL_LODS;_i326++){var sigma=Math.sqrt(_sigmas[_i326]*_sigmas[_i326]-_sigmas[_i326-1]*_sigmas[_i326-1]);var poleAxis=_axisDirections[(_i326-1)%_axisDirections.length];this._blur(cubeUVRenderTarget,_i326-1,_i326,sigma,poleAxis);}renderer.autoClear=autoClear;}},{key:\"_blur\",value:function _blur(cubeUVRenderTarget,lodIn,lodOut,sigma,poleAxis){var pingPongRenderTarget=this._pingPongRenderTarget;this._halfBlur(cubeUVRenderTarget,pingPongRenderTarget,lodIn,lodOut,sigma,'latitudinal',poleAxis);this._halfBlur(pingPongRenderTarget,cubeUVRenderTarget,lodOut,lodOut,sigma,'longitudinal',poleAxis);}},{key:\"_halfBlur\",value:function _halfBlur(targetIn,targetOut,lodIn,lodOut,sigmaRadians,direction,poleAxis){var renderer=this._renderer;var blurMaterial=this._blurMaterial;if(direction!=='latitudinal'&&direction!=='longitudinal'){console.error('blur direction must be either latitudinal or longitudinal!');}\nvar STANDARD_DEVIATIONS=3;var blurMesh=new Mesh(_lodPlanes[lodOut],blurMaterial);var blurUniforms=blurMaterial.uniforms;var pixels=_sizeLods[lodIn]-1;var radiansPerPixel=isFinite(sigmaRadians)?Math.PI/(2*pixels):2*Math.PI/(2*MAX_SAMPLES-1);var sigmaPixels=sigmaRadians/radiansPerPixel;var samples=isFinite(sigmaRadians)?1+Math.floor(STANDARD_DEVIATIONS*sigmaPixels):MAX_SAMPLES;if(samples>MAX_SAMPLES){console.warn(\"sigmaRadians, \".concat(sigmaRadians,\", is too large and will clip, as it requested \").concat(samples,\" samples when the maximum is set to \").concat(MAX_SAMPLES));}var weights=[];var sum=0;for(var _i327=0;_i327<MAX_SAMPLES;++_i327){var _x2=_i327/sigmaPixels;var weight=Math.exp(-_x2*_x2/2);weights.push(weight);if(_i327==0){sum+=weight;}else if(_i327<samples){sum+=2*weight;}}for(var _i328=0;_i328<weights.length;_i328++){weights[_i328]=weights[_i328]/sum;}blurUniforms['envMap'].value=targetIn.texture;blurUniforms['samples'].value=samples;blurUniforms['weights'].value=weights;blurUniforms['latitudinal'].value=direction==='latitudinal';if(poleAxis){blurUniforms['poleAxis'].value=poleAxis;}blurUniforms['dTheta'].value=radiansPerPixel;blurUniforms['mipInt'].value=LOD_MAX-lodIn;blurUniforms['inputEncoding'].value=ENCODINGS[targetIn.texture.encoding];blurUniforms['outputEncoding'].value=ENCODINGS[targetIn.texture.encoding];var outputSize=_sizeLods[lodOut];var x=3*Math.max(0,SIZE_MAX-2*outputSize);var y=(lodOut===0?0:2*SIZE_MAX)+2*outputSize*(lodOut>LOD_MAX-LOD_MIN?lodOut-LOD_MAX+LOD_MIN:0);_setViewport(targetOut,x,y,3*outputSize,2*outputSize);renderer.setRenderTarget(targetOut);renderer.render(blurMesh,_flatCamera);}}]);return PMREMGenerator;}();function _isLDR(texture){if(texture===undefined||texture.type!==UnsignedByteType)return false;return texture.encoding===LinearEncoding||texture.encoding===sRGBEncoding||texture.encoding===GammaEncoding;}function _createPlanes(){var _lodPlanes=[];var _sizeLods=[];var _sigmas=[];var lod=LOD_MAX;for(var _i329=0;_i329<TOTAL_LODS;_i329++){var sizeLod=Math.pow(2,lod);_sizeLods.push(sizeLod);var sigma=1.0/sizeLod;if(_i329>LOD_MAX-LOD_MIN){sigma=EXTRA_LOD_SIGMA[_i329-LOD_MAX+LOD_MIN-1];}else if(_i329==0){sigma=0;}_sigmas.push(sigma);var texelSize=1.0/(sizeLod-1);var min=-texelSize/2;var max=1+texelSize/2;var uv1=[min,min,max,min,max,max,min,min,max,max,min,max];var cubeFaces=6;var _vertices5=6;var positionSize=3;var uvSize=2;var faceIndexSize=1;var position=new Float32Array(positionSize*_vertices5*cubeFaces);var uv=new Float32Array(uvSize*_vertices5*cubeFaces);var faceIndex=new Float32Array(faceIndexSize*_vertices5*cubeFaces);for(var face=0;face<cubeFaces;face++){var x=face%3*2/3-1;var y=face>2?0:-1;var coordinates=[x,y,0,x+2/3,y,0,x+2/3,y+1,0,x,y,0,x+2/3,y+1,0,x,y+1,0];position.set(coordinates,positionSize*_vertices5*face);uv.set(uv1,uvSize*_vertices5*face);var fill=[face,face,face,face,face,face];faceIndex.set(fill,faceIndexSize*_vertices5*face);}var planes=new BufferGeometry();planes.setAttribute('position',new BufferAttribute(position,positionSize));planes.setAttribute('uv',new BufferAttribute(uv,uvSize));planes.setAttribute('faceIndex',new BufferAttribute(faceIndex,faceIndexSize));_lodPlanes.push(planes);if(lod>LOD_MIN){lod--;}}return{_lodPlanes:_lodPlanes,_sizeLods:_sizeLods,_sigmas:_sigmas};}function _createRenderTarget(params){var cubeUVRenderTarget=new WebGLRenderTarget(3*SIZE_MAX,3*SIZE_MAX,params);cubeUVRenderTarget.texture.mapping=CubeUVReflectionMapping;cubeUVRenderTarget.texture.name='PMREM.cubeUv';cubeUVRenderTarget.scissorTest=true;return cubeUVRenderTarget;}function _setViewport(target,x,y,width,height){target.viewport.set(x,y,width,height);target.scissor.set(x,y,width,height);}function _getBlurShader(maxSamples){var weights=new Float32Array(maxSamples);var poleAxis=new Vector3(0,1,0);var shaderMaterial=new RawShaderMaterial({name:'SphericalGaussianBlur',defines:{'n':maxSamples},uniforms:{'envMap':{value:null},'samples':{value:1},'weights':{value:weights},'latitudinal':{value:false},'dTheta':{value:0},'mipInt':{value:0},'poleAxis':{value:poleAxis},'inputEncoding':{value:ENCODINGS[LinearEncoding]},'outputEncoding':{value:ENCODINGS[LinearEncoding]}},vertexShader:_getCommonVertexShader(),fragmentShader:\"\\n\\n\\t\\t\\tprecision mediump float;\\n\\t\\t\\tprecision mediump int;\\n\\n\\t\\t\\tvarying vec3 vOutputDirection;\\n\\n\\t\\t\\tuniform sampler2D envMap;\\n\\t\\t\\tuniform int samples;\\n\\t\\t\\tuniform float weights[ n ];\\n\\t\\t\\tuniform bool latitudinal;\\n\\t\\t\\tuniform float dTheta;\\n\\t\\t\\tuniform float mipInt;\\n\\t\\t\\tuniform vec3 poleAxis;\\n\\n\\t\\t\\t\".concat(_getEncodings(),\"\\n\\n\\t\\t\\t#define ENVMAP_TYPE_CUBE_UV\\n\\t\\t\\t#include <cube_uv_reflection_fragment>\\n\\n\\t\\t\\tvec3 getSample( float theta, vec3 axis ) {\\n\\n\\t\\t\\t\\tfloat cosTheta = cos( theta );\\n\\t\\t\\t\\t// Rodrigues' axis-angle rotation\\n\\t\\t\\t\\tvec3 sampleDirection = vOutputDirection * cosTheta\\n\\t\\t\\t\\t\\t+ cross( axis, vOutputDirection ) * sin( theta )\\n\\t\\t\\t\\t\\t+ axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta );\\n\\n\\t\\t\\t\\treturn bilinearCubeUV( envMap, sampleDirection, mipInt );\\n\\n\\t\\t\\t}\\n\\n\\t\\t\\tvoid main() {\\n\\n\\t\\t\\t\\tvec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection );\\n\\n\\t\\t\\t\\tif ( all( equal( axis, vec3( 0.0 ) ) ) ) {\\n\\n\\t\\t\\t\\t\\taxis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x );\\n\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\taxis = normalize( axis );\\n\\n\\t\\t\\t\\tgl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );\\n\\t\\t\\t\\tgl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis );\\n\\n\\t\\t\\t\\tfor ( int i = 1; i < n; i++ ) {\\n\\n\\t\\t\\t\\t\\tif ( i >= samples ) {\\n\\n\\t\\t\\t\\t\\t\\tbreak;\\n\\n\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\tfloat theta = dTheta * float( i );\\n\\t\\t\\t\\t\\tgl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis );\\n\\t\\t\\t\\t\\tgl_FragColor.rgb += weights[ i ] * getSample( theta, axis );\\n\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\tgl_FragColor = linearToOutputTexel( gl_FragColor );\\n\\n\\t\\t\\t}\\n\\t\\t\"),blending:NoBlending,depthTest:false,depthWrite:false});return shaderMaterial;}function _getEquirectShader(){var texelSize=new Vector2(1,1);var shaderMaterial=new RawShaderMaterial({name:'EquirectangularToCubeUV',uniforms:{'envMap':{value:null},'texelSize':{value:texelSize},'inputEncoding':{value:ENCODINGS[LinearEncoding]},'outputEncoding':{value:ENCODINGS[LinearEncoding]}},vertexShader:_getCommonVertexShader(),fragmentShader:\"\\n\\n\\t\\t\\tprecision mediump float;\\n\\t\\t\\tprecision mediump int;\\n\\n\\t\\t\\tvarying vec3 vOutputDirection;\\n\\n\\t\\t\\tuniform sampler2D envMap;\\n\\t\\t\\tuniform vec2 texelSize;\\n\\n\\t\\t\\t\".concat(_getEncodings(),\"\\n\\n\\t\\t\\t#include <common>\\n\\n\\t\\t\\tvoid main() {\\n\\n\\t\\t\\t\\tgl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );\\n\\n\\t\\t\\t\\tvec3 outputDirection = normalize( vOutputDirection );\\n\\t\\t\\t\\tvec2 uv = equirectUv( outputDirection );\\n\\n\\t\\t\\t\\tvec2 f = fract( uv / texelSize - 0.5 );\\n\\t\\t\\t\\tuv -= f * texelSize;\\n\\t\\t\\t\\tvec3 tl = envMapTexelToLinear( texture2D ( envMap, uv ) ).rgb;\\n\\t\\t\\t\\tuv.x += texelSize.x;\\n\\t\\t\\t\\tvec3 tr = envMapTexelToLinear( texture2D ( envMap, uv ) ).rgb;\\n\\t\\t\\t\\tuv.y += texelSize.y;\\n\\t\\t\\t\\tvec3 br = envMapTexelToLinear( texture2D ( envMap, uv ) ).rgb;\\n\\t\\t\\t\\tuv.x -= texelSize.x;\\n\\t\\t\\t\\tvec3 bl = envMapTexelToLinear( texture2D ( envMap, uv ) ).rgb;\\n\\n\\t\\t\\t\\tvec3 tm = mix( tl, tr, f.x );\\n\\t\\t\\t\\tvec3 bm = mix( bl, br, f.x );\\n\\t\\t\\t\\tgl_FragColor.rgb = mix( tm, bm, f.y );\\n\\n\\t\\t\\t\\tgl_FragColor = linearToOutputTexel( gl_FragColor );\\n\\n\\t\\t\\t}\\n\\t\\t\"),blending:NoBlending,depthTest:false,depthWrite:false});return shaderMaterial;}function _getCubemapShader(){var shaderMaterial=new RawShaderMaterial({name:'CubemapToCubeUV',uniforms:{'envMap':{value:null},'inputEncoding':{value:ENCODINGS[LinearEncoding]},'outputEncoding':{value:ENCODINGS[LinearEncoding]}},vertexShader:_getCommonVertexShader(),fragmentShader:\"\\n\\n\\t\\t\\tprecision mediump float;\\n\\t\\t\\tprecision mediump int;\\n\\n\\t\\t\\tvarying vec3 vOutputDirection;\\n\\n\\t\\t\\tuniform samplerCube envMap;\\n\\n\\t\\t\\t\".concat(_getEncodings(),\"\\n\\n\\t\\t\\tvoid main() {\\n\\n\\t\\t\\t\\tgl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );\\n\\t\\t\\t\\tgl_FragColor.rgb = envMapTexelToLinear( textureCube( envMap, vec3( - vOutputDirection.x, vOutputDirection.yz ) ) ).rgb;\\n\\t\\t\\t\\tgl_FragColor = linearToOutputTexel( gl_FragColor );\\n\\n\\t\\t\\t}\\n\\t\\t\"),blending:NoBlending,depthTest:false,depthWrite:false});return shaderMaterial;}function _getCommonVertexShader(){return(\"\\n\\n\\t\\tprecision mediump float;\\n\\t\\tprecision mediump int;\\n\\n\\t\\tattribute vec3 position;\\n\\t\\tattribute vec2 uv;\\n\\t\\tattribute float faceIndex;\\n\\n\\t\\tvarying vec3 vOutputDirection;\\n\\n\\t\\t// RH coordinate system; PMREM face-indexing convention\\n\\t\\tvec3 getDirection( vec2 uv, float face ) {\\n\\n\\t\\t\\tuv = 2.0 * uv - 1.0;\\n\\n\\t\\t\\tvec3 direction = vec3( uv, 1.0 );\\n\\n\\t\\t\\tif ( face == 0.0 ) {\\n\\n\\t\\t\\t\\tdirection = direction.zyx; // ( 1, v, u ) pos x\\n\\n\\t\\t\\t} else if ( face == 1.0 ) {\\n\\n\\t\\t\\t\\tdirection = direction.xzy;\\n\\t\\t\\t\\tdirection.xz *= -1.0; // ( -u, 1, -v ) pos y\\n\\n\\t\\t\\t} else if ( face == 2.0 ) {\\n\\n\\t\\t\\t\\tdirection.x *= -1.0; // ( -u, v, 1 ) pos z\\n\\n\\t\\t\\t} else if ( face == 3.0 ) {\\n\\n\\t\\t\\t\\tdirection = direction.zyx;\\n\\t\\t\\t\\tdirection.xz *= -1.0; // ( -1, v, -u ) neg x\\n\\n\\t\\t\\t} else if ( face == 4.0 ) {\\n\\n\\t\\t\\t\\tdirection = direction.xzy;\\n\\t\\t\\t\\tdirection.xy *= -1.0; // ( -u, -1, v ) neg y\\n\\n\\t\\t\\t} else if ( face == 5.0 ) {\\n\\n\\t\\t\\t\\tdirection.z *= -1.0; // ( u, v, -1 ) neg z\\n\\n\\t\\t\\t}\\n\\n\\t\\t\\treturn direction;\\n\\n\\t\\t}\\n\\n\\t\\tvoid main() {\\n\\n\\t\\t\\tvOutputDirection = getDirection( uv, faceIndex );\\n\\t\\t\\tgl_Position = vec4( position, 1.0 );\\n\\n\\t\\t}\\n\\t\");}function _getEncodings(){return(\"\\n\\n\\t\\tuniform int inputEncoding;\\n\\t\\tuniform int outputEncoding;\\n\\n\\t\\t#include <encodings_pars_fragment>\\n\\n\\t\\tvec4 inputTexelToLinear( vec4 value ) {\\n\\n\\t\\t\\tif ( inputEncoding == 0 ) {\\n\\n\\t\\t\\t\\treturn value;\\n\\n\\t\\t\\t} else if ( inputEncoding == 1 ) {\\n\\n\\t\\t\\t\\treturn sRGBToLinear( value );\\n\\n\\t\\t\\t} else if ( inputEncoding == 2 ) {\\n\\n\\t\\t\\t\\treturn RGBEToLinear( value );\\n\\n\\t\\t\\t} else if ( inputEncoding == 3 ) {\\n\\n\\t\\t\\t\\treturn RGBMToLinear( value, 7.0 );\\n\\n\\t\\t\\t} else if ( inputEncoding == 4 ) {\\n\\n\\t\\t\\t\\treturn RGBMToLinear( value, 16.0 );\\n\\n\\t\\t\\t} else if ( inputEncoding == 5 ) {\\n\\n\\t\\t\\t\\treturn RGBDToLinear( value, 256.0 );\\n\\n\\t\\t\\t} else {\\n\\n\\t\\t\\t\\treturn GammaToLinear( value, 2.2 );\\n\\n\\t\\t\\t}\\n\\n\\t\\t}\\n\\n\\t\\tvec4 linearToOutputTexel( vec4 value ) {\\n\\n\\t\\t\\tif ( outputEncoding == 0 ) {\\n\\n\\t\\t\\t\\treturn value;\\n\\n\\t\\t\\t} else if ( outputEncoding == 1 ) {\\n\\n\\t\\t\\t\\treturn LinearTosRGB( value );\\n\\n\\t\\t\\t} else if ( outputEncoding == 2 ) {\\n\\n\\t\\t\\t\\treturn LinearToRGBE( value );\\n\\n\\t\\t\\t} else if ( outputEncoding == 3 ) {\\n\\n\\t\\t\\t\\treturn LinearToRGBM( value, 7.0 );\\n\\n\\t\\t\\t} else if ( outputEncoding == 4 ) {\\n\\n\\t\\t\\t\\treturn LinearToRGBM( value, 16.0 );\\n\\n\\t\\t\\t} else if ( outputEncoding == 5 ) {\\n\\n\\t\\t\\t\\treturn LinearToRGBD( value, 256.0 );\\n\\n\\t\\t\\t} else {\\n\\n\\t\\t\\t\\treturn LinearToGamma( value, 2.2 );\\n\\n\\t\\t\\t}\\n\\n\\t\\t}\\n\\n\\t\\tvec4 envMapTexelToLinear( vec4 color ) {\\n\\n\\t\\t\\treturn inputTexelToLinear( color );\\n\\n\\t\\t}\\n\\t\");}\nCurve.create=function(construct,getPoint){console.log('THREE.Curve.create() has been deprecated');construct.prototype=Object.create(Curve.prototype);construct.prototype.constructor=construct;construct.prototype.getPoint=getPoint;return construct;};Object.assign(CurvePath.prototype,{createPointsGeometry:function createPointsGeometry(divisions){console.warn('THREE.CurvePath: .createPointsGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead.');var pts=this.getPoints(divisions);return this.createGeometry(pts);},createSpacedPointsGeometry:function createSpacedPointsGeometry(divisions){console.warn('THREE.CurvePath: .createSpacedPointsGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead.');var pts=this.getSpacedPoints(divisions);return this.createGeometry(pts);},createGeometry:function createGeometry(points){console.warn('THREE.CurvePath: .createGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead.');var geometry=new Geometry();for(var _i330=0,l=points.length;_i330<l;_i330++){var point=points[_i330];geometry.vertices.push(new Vector3(point.x,point.y,point.z||0));}return geometry;}});Object.assign(Path.prototype,{fromPoints:function fromPoints(points){console.warn('THREE.Path: .fromPoints() has been renamed to .setFromPoints().');return this.setFromPoints(points);}});function Spline(points){console.warn('THREE.Spline has been removed. Use THREE.CatmullRomCurve3 instead.');CatmullRomCurve3.call(this,points);this.type='catmullrom';}Spline.prototype=Object.create(CatmullRomCurve3.prototype);Object.assign(Spline.prototype,{initFromArray:function initFromArray(){console.error('THREE.Spline: .initFromArray() has been removed.');},getControlPointsArray:function getControlPointsArray(){console.error('THREE.Spline: .getControlPointsArray() has been removed.');},reparametrizeByArcLength:function reparametrizeByArcLength(){console.error('THREE.Spline: .reparametrizeByArcLength() has been removed.');}});SkeletonHelper.prototype.update=function(){console.error('THREE.SkeletonHelper: update() no longer needs to be called.');};Object.assign(Loader.prototype,{extractUrlBase:function extractUrlBase(url){console.warn('THREE.Loader: .extractUrlBase() has been deprecated. Use THREE.LoaderUtils.extractUrlBase() instead.');return LoaderUtils.extractUrlBase(url);}});Loader.Handlers={add:function add(){console.error('THREE.Loader: Handlers.add() has been removed. Use LoadingManager.addHandler() instead.');},get:function get(){console.error('THREE.Loader: Handlers.get() has been removed. Use LoadingManager.getHandler() instead.');}};Object.assign(Box2.prototype,{center:function center(optionalTarget){console.warn('THREE.Box2: .center() has been renamed to .getCenter().');return this.getCenter(optionalTarget);},empty:function empty(){console.warn('THREE.Box2: .empty() has been renamed to .isEmpty().');return this.isEmpty();},isIntersectionBox:function isIntersectionBox(box){console.warn('THREE.Box2: .isIntersectionBox() has been renamed to .intersectsBox().');return this.intersectsBox(box);},size:function size(optionalTarget){console.warn('THREE.Box2: .size() has been renamed to .getSize().');return this.getSize(optionalTarget);}});Object.assign(Box3.prototype,{center:function center(optionalTarget){console.warn('THREE.Box3: .center() has been renamed to .getCenter().');return this.getCenter(optionalTarget);},empty:function empty(){console.warn('THREE.Box3: .empty() has been renamed to .isEmpty().');return this.isEmpty();},isIntersectionBox:function isIntersectionBox(box){console.warn('THREE.Box3: .isIntersectionBox() has been renamed to .intersectsBox().');return this.intersectsBox(box);},isIntersectionSphere:function isIntersectionSphere(sphere){console.warn('THREE.Box3: .isIntersectionSphere() has been renamed to .intersectsSphere().');return this.intersectsSphere(sphere);},size:function size(optionalTarget){console.warn('THREE.Box3: .size() has been renamed to .getSize().');return this.getSize(optionalTarget);}});Object.assign(Sphere.prototype,{empty:function empty(){console.warn('THREE.Sphere: .empty() has been renamed to .isEmpty().');return this.isEmpty();}});Frustum.prototype.setFromMatrix=function(m){console.warn('THREE.Frustum: .setFromMatrix() has been renamed to .setFromProjectionMatrix().');return this.setFromProjectionMatrix(m);};Object.assign(MathUtils,{random16:function random16(){console.warn('THREE.Math: .random16() has been deprecated. Use Math.random() instead.');return Math.random();},nearestPowerOfTwo:function nearestPowerOfTwo(value){console.warn('THREE.Math: .nearestPowerOfTwo() has been renamed to .floorPowerOfTwo().');return MathUtils.floorPowerOfTwo(value);},nextPowerOfTwo:function nextPowerOfTwo(value){console.warn('THREE.Math: .nextPowerOfTwo() has been renamed to .ceilPowerOfTwo().');return MathUtils.ceilPowerOfTwo(value);}});Object.assign(Matrix3.prototype,{flattenToArrayOffset:function flattenToArrayOffset(array,offset){console.warn(\"THREE.Matrix3: .flattenToArrayOffset() has been deprecated. Use .toArray() instead.\");return this.toArray(array,offset);},multiplyVector3:function multiplyVector3(vector){console.warn('THREE.Matrix3: .multiplyVector3() has been removed. Use vector.applyMatrix3( matrix ) instead.');return vector.applyMatrix3(this);},multiplyVector3Array:function multiplyVector3Array(){console.error('THREE.Matrix3: .multiplyVector3Array() has been removed.');},applyToBufferAttribute:function applyToBufferAttribute(attribute){console.warn('THREE.Matrix3: .applyToBufferAttribute() has been removed. Use attribute.applyMatrix3( matrix ) instead.');return attribute.applyMatrix3(this);},applyToVector3Array:function applyToVector3Array(){console.error('THREE.Matrix3: .applyToVector3Array() has been removed.');}});Object.assign(Matrix4.prototype,{extractPosition:function extractPosition(m){console.warn('THREE.Matrix4: .extractPosition() has been renamed to .copyPosition().');return this.copyPosition(m);},flattenToArrayOffset:function flattenToArrayOffset(array,offset){console.warn(\"THREE.Matrix4: .flattenToArrayOffset() has been deprecated. Use .toArray() instead.\");return this.toArray(array,offset);},getPosition:function getPosition(){console.warn('THREE.Matrix4: .getPosition() has been removed. Use Vector3.setFromMatrixPosition( matrix ) instead.');return new Vector3().setFromMatrixColumn(this,3);},setRotationFromQuaternion:function setRotationFromQuaternion(q){console.warn('THREE.Matrix4: .setRotationFromQuaternion() has been renamed to .makeRotationFromQuaternion().');return this.makeRotationFromQuaternion(q);},multiplyToArray:function multiplyToArray(){console.warn('THREE.Matrix4: .multiplyToArray() has been removed.');},multiplyVector3:function multiplyVector3(vector){console.warn('THREE.Matrix4: .multiplyVector3() has been removed. Use vector.applyMatrix4( matrix ) instead.');return vector.applyMatrix4(this);},multiplyVector4:function multiplyVector4(vector){console.warn('THREE.Matrix4: .multiplyVector4() has been removed. Use vector.applyMatrix4( matrix ) instead.');return vector.applyMatrix4(this);},multiplyVector3Array:function multiplyVector3Array(){console.error('THREE.Matrix4: .multiplyVector3Array() has been removed.');},rotateAxis:function rotateAxis(v){console.warn('THREE.Matrix4: .rotateAxis() has been removed. Use Vector3.transformDirection( matrix ) instead.');v.transformDirection(this);},crossVector:function crossVector(vector){console.warn('THREE.Matrix4: .crossVector() has been removed. Use vector.applyMatrix4( matrix ) instead.');return vector.applyMatrix4(this);},translate:function translate(){console.error('THREE.Matrix4: .translate() has been removed.');},rotateX:function rotateX(){console.error('THREE.Matrix4: .rotateX() has been removed.');},rotateY:function rotateY(){console.error('THREE.Matrix4: .rotateY() has been removed.');},rotateZ:function rotateZ(){console.error('THREE.Matrix4: .rotateZ() has been removed.');},rotateByAxis:function rotateByAxis(){console.error('THREE.Matrix4: .rotateByAxis() has been removed.');},applyToBufferAttribute:function applyToBufferAttribute(attribute){console.warn('THREE.Matrix4: .applyToBufferAttribute() has been removed. Use attribute.applyMatrix4( matrix ) instead.');return attribute.applyMatrix4(this);},applyToVector3Array:function applyToVector3Array(){console.error('THREE.Matrix4: .applyToVector3Array() has been removed.');},makeFrustum:function makeFrustum(left,right,bottom,top,near,far){console.warn('THREE.Matrix4: .makeFrustum() has been removed. Use .makePerspective( left, right, top, bottom, near, far ) instead.');return this.makePerspective(left,right,top,bottom,near,far);}});Plane.prototype.isIntersectionLine=function(line){console.warn('THREE.Plane: .isIntersectionLine() has been renamed to .intersectsLine().');return this.intersectsLine(line);};Quaternion.prototype.multiplyVector3=function(vector){console.warn('THREE.Quaternion: .multiplyVector3() has been removed. Use is now vector.applyQuaternion( quaternion ) instead.');return vector.applyQuaternion(this);};Object.assign(Ray.prototype,{isIntersectionBox:function isIntersectionBox(box){console.warn('THREE.Ray: .isIntersectionBox() has been renamed to .intersectsBox().');return this.intersectsBox(box);},isIntersectionPlane:function isIntersectionPlane(plane){console.warn('THREE.Ray: .isIntersectionPlane() has been renamed to .intersectsPlane().');return this.intersectsPlane(plane);},isIntersectionSphere:function isIntersectionSphere(sphere){console.warn('THREE.Ray: .isIntersectionSphere() has been renamed to .intersectsSphere().');return this.intersectsSphere(sphere);}});Object.assign(Triangle.prototype,{area:function area(){console.warn('THREE.Triangle: .area() has been renamed to .getArea().');return this.getArea();},barycoordFromPoint:function barycoordFromPoint(point,target){console.warn('THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord().');return this.getBarycoord(point,target);},midpoint:function midpoint(target){console.warn('THREE.Triangle: .midpoint() has been renamed to .getMidpoint().');return this.getMidpoint(target);},normal:function normal(target){console.warn('THREE.Triangle: .normal() has been renamed to .getNormal().');return this.getNormal(target);},plane:function plane(target){console.warn('THREE.Triangle: .plane() has been renamed to .getPlane().');return this.getPlane(target);}});Object.assign(Triangle,{barycoordFromPoint:function barycoordFromPoint(point,a,b,c,target){console.warn('THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord().');return Triangle.getBarycoord(point,a,b,c,target);},normal:function normal(a,b,c,target){console.warn('THREE.Triangle: .normal() has been renamed to .getNormal().');return Triangle.getNormal(a,b,c,target);}});Object.assign(Shape.prototype,{extractAllPoints:function extractAllPoints(divisions){console.warn('THREE.Shape: .extractAllPoints() has been removed. Use .extractPoints() instead.');return this.extractPoints(divisions);},extrude:function extrude(options){console.warn('THREE.Shape: .extrude() has been removed. Use ExtrudeGeometry() instead.');return new ExtrudeGeometry(this,options);},makeGeometry:function makeGeometry(options){console.warn('THREE.Shape: .makeGeometry() has been removed. Use ShapeGeometry() instead.');return new ShapeGeometry(this,options);}});Object.assign(Vector2.prototype,{fromAttribute:function fromAttribute(attribute,index,offset){console.warn('THREE.Vector2: .fromAttribute() has been renamed to .fromBufferAttribute().');return this.fromBufferAttribute(attribute,index,offset);},distanceToManhattan:function distanceToManhattan(v){console.warn('THREE.Vector2: .distanceToManhattan() has been renamed to .manhattanDistanceTo().');return this.manhattanDistanceTo(v);},lengthManhattan:function lengthManhattan(){console.warn('THREE.Vector2: .lengthManhattan() has been renamed to .manhattanLength().');return this.manhattanLength();}});Object.assign(Vector3.prototype,{setEulerFromRotationMatrix:function setEulerFromRotationMatrix(){console.error('THREE.Vector3: .setEulerFromRotationMatrix() has been removed. Use Euler.setFromRotationMatrix() instead.');},setEulerFromQuaternion:function setEulerFromQuaternion(){console.error('THREE.Vector3: .setEulerFromQuaternion() has been removed. Use Euler.setFromQuaternion() instead.');},getPositionFromMatrix:function getPositionFromMatrix(m){console.warn('THREE.Vector3: .getPositionFromMatrix() has been renamed to .setFromMatrixPosition().');return this.setFromMatrixPosition(m);},getScaleFromMatrix:function getScaleFromMatrix(m){console.warn('THREE.Vector3: .getScaleFromMatrix() has been renamed to .setFromMatrixScale().');return this.setFromMatrixScale(m);},getColumnFromMatrix:function getColumnFromMatrix(index,matrix){console.warn('THREE.Vector3: .getColumnFromMatrix() has been renamed to .setFromMatrixColumn().');return this.setFromMatrixColumn(matrix,index);},applyProjection:function applyProjection(m){console.warn('THREE.Vector3: .applyProjection() has been removed. Use .applyMatrix4( m ) instead.');return this.applyMatrix4(m);},fromAttribute:function fromAttribute(attribute,index,offset){console.warn('THREE.Vector3: .fromAttribute() has been renamed to .fromBufferAttribute().');return this.fromBufferAttribute(attribute,index,offset);},distanceToManhattan:function distanceToManhattan(v){console.warn('THREE.Vector3: .distanceToManhattan() has been renamed to .manhattanDistanceTo().');return this.manhattanDistanceTo(v);},lengthManhattan:function lengthManhattan(){console.warn('THREE.Vector3: .lengthManhattan() has been renamed to .manhattanLength().');return this.manhattanLength();}});Object.assign(Vector4.prototype,{fromAttribute:function fromAttribute(attribute,index,offset){console.warn('THREE.Vector4: .fromAttribute() has been renamed to .fromBufferAttribute().');return this.fromBufferAttribute(attribute,index,offset);},lengthManhattan:function lengthManhattan(){console.warn('THREE.Vector4: .lengthManhattan() has been renamed to .manhattanLength().');return this.manhattanLength();}});Object.assign(Geometry.prototype,{computeTangents:function computeTangents(){console.error('THREE.Geometry: .computeTangents() has been removed.');},computeLineDistances:function computeLineDistances(){console.error('THREE.Geometry: .computeLineDistances() has been removed. Use THREE.Line.computeLineDistances() instead.');},applyMatrix:function applyMatrix(matrix){console.warn('THREE.Geometry: .applyMatrix() has been renamed to .applyMatrix4().');return this.applyMatrix4(matrix);}});Object.assign(Object3D.prototype,{getChildByName:function getChildByName(name){console.warn('THREE.Object3D: .getChildByName() has been renamed to .getObjectByName().');return this.getObjectByName(name);},renderDepth:function renderDepth(){console.warn('THREE.Object3D: .renderDepth has been removed. Use .renderOrder, instead.');},translate:function translate(distance,axis){console.warn('THREE.Object3D: .translate() has been removed. Use .translateOnAxis( axis, distance ) instead.');return this.translateOnAxis(axis,distance);},getWorldRotation:function getWorldRotation(){console.error('THREE.Object3D: .getWorldRotation() has been removed. Use THREE.Object3D.getWorldQuaternion( target ) instead.');},applyMatrix:function applyMatrix(matrix){console.warn('THREE.Object3D: .applyMatrix() has been renamed to .applyMatrix4().');return this.applyMatrix4(matrix);}});Object.defineProperties(Object3D.prototype,{eulerOrder:{get:function get(){console.warn('THREE.Object3D: .eulerOrder is now .rotation.order.');return this.rotation.order;},set:function set(value){console.warn('THREE.Object3D: .eulerOrder is now .rotation.order.');this.rotation.order=value;}},useQuaternion:{get:function get(){console.warn('THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.');},set:function set(){console.warn('THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.');}}});Object.assign(Mesh.prototype,{setDrawMode:function setDrawMode(){console.error('THREE.Mesh: .setDrawMode() has been removed. The renderer now always assumes THREE.TrianglesDrawMode. Transform your geometry via BufferGeometryUtils.toTrianglesDrawMode() if necessary.');}});Object.defineProperties(Mesh.prototype,{drawMode:{get:function get(){console.error('THREE.Mesh: .drawMode has been removed. The renderer now always assumes THREE.TrianglesDrawMode.');return TrianglesDrawMode;},set:function set(){console.error('THREE.Mesh: .drawMode has been removed. The renderer now always assumes THREE.TrianglesDrawMode. Transform your geometry via BufferGeometryUtils.toTrianglesDrawMode() if necessary.');}}});Object.defineProperties(LOD.prototype,{objects:{get:function get(){console.warn('THREE.LOD: .objects has been renamed to .levels.');return this.levels;}}});Object.defineProperty(Skeleton.prototype,'useVertexTexture',{get:function get(){console.warn('THREE.Skeleton: useVertexTexture has been removed.');},set:function set(){console.warn('THREE.Skeleton: useVertexTexture has been removed.');}});SkinnedMesh.prototype.initBones=function(){console.error('THREE.SkinnedMesh: initBones() has been removed.');};Object.defineProperty(Curve.prototype,'__arcLengthDivisions',{get:function get(){console.warn('THREE.Curve: .__arcLengthDivisions is now .arcLengthDivisions.');return this.arcLengthDivisions;},set:function set(value){console.warn('THREE.Curve: .__arcLengthDivisions is now .arcLengthDivisions.');this.arcLengthDivisions=value;}});PerspectiveCamera.prototype.setLens=function(focalLength,filmGauge){console.warn(\"THREE.PerspectiveCamera.setLens is deprecated. \"+\"Use .setFocalLength and .filmGauge for a photographic setup.\");if(filmGauge!==undefined)this.filmGauge=filmGauge;this.setFocalLength(focalLength);};Object.defineProperties(Light.prototype,{onlyShadow:{set:function set(){console.warn('THREE.Light: .onlyShadow has been removed.');}},shadowCameraFov:{set:function set(value){console.warn('THREE.Light: .shadowCameraFov is now .shadow.camera.fov.');this.shadow.camera.fov=value;}},shadowCameraLeft:{set:function set(value){console.warn('THREE.Light: .shadowCameraLeft is now .shadow.camera.left.');this.shadow.camera.left=value;}},shadowCameraRight:{set:function set(value){console.warn('THREE.Light: .shadowCameraRight is now .shadow.camera.right.');this.shadow.camera.right=value;}},shadowCameraTop:{set:function set(value){console.warn('THREE.Light: .shadowCameraTop is now .shadow.camera.top.');this.shadow.camera.top=value;}},shadowCameraBottom:{set:function set(value){console.warn('THREE.Light: .shadowCameraBottom is now .shadow.camera.bottom.');this.shadow.camera.bottom=value;}},shadowCameraNear:{set:function set(value){console.warn('THREE.Light: .shadowCameraNear is now .shadow.camera.near.');this.shadow.camera.near=value;}},shadowCameraFar:{set:function set(value){console.warn('THREE.Light: .shadowCameraFar is now .shadow.camera.far.');this.shadow.camera.far=value;}},shadowCameraVisible:{set:function set(){console.warn('THREE.Light: .shadowCameraVisible has been removed. Use new THREE.CameraHelper( light.shadow.camera ) instead.');}},shadowBias:{set:function set(value){console.warn('THREE.Light: .shadowBias is now .shadow.bias.');this.shadow.bias=value;}},shadowDarkness:{set:function set(){console.warn('THREE.Light: .shadowDarkness has been removed.');}},shadowMapWidth:{set:function set(value){console.warn('THREE.Light: .shadowMapWidth is now .shadow.mapSize.width.');this.shadow.mapSize.width=value;}},shadowMapHeight:{set:function set(value){console.warn('THREE.Light: .shadowMapHeight is now .shadow.mapSize.height.');this.shadow.mapSize.height=value;}}});Object.defineProperties(BufferAttribute.prototype,{length:{get:function get(){console.warn('THREE.BufferAttribute: .length has been deprecated. Use .count instead.');return this.array.length;}},dynamic:{get:function get(){console.warn('THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead.');return this.usage===DynamicDrawUsage;},set:function set(){console.warn('THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead.');this.setUsage(DynamicDrawUsage);}}});Object.assign(BufferAttribute.prototype,{setDynamic:function setDynamic(value){console.warn('THREE.BufferAttribute: .setDynamic() has been deprecated. Use .setUsage() instead.');this.setUsage(value===true?DynamicDrawUsage:StaticDrawUsage);return this;},copyIndicesArray:function copyIndicesArray(){console.error('THREE.BufferAttribute: .copyIndicesArray() has been removed.');},setArray:function setArray(){console.error('THREE.BufferAttribute: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers');}});Object.assign(BufferGeometry.prototype,{addIndex:function addIndex(index){console.warn('THREE.BufferGeometry: .addIndex() has been renamed to .setIndex().');this.setIndex(index);},addAttribute:function addAttribute(name,attribute){console.warn('THREE.BufferGeometry: .addAttribute() has been renamed to .setAttribute().');if(!(attribute&&attribute.isBufferAttribute)&&!(attribute&&attribute.isInterleavedBufferAttribute)){console.warn('THREE.BufferGeometry: .addAttribute() now expects ( name, attribute ).');return this.setAttribute(name,new BufferAttribute(arguments[1],arguments[2]));}if(name==='index'){console.warn('THREE.BufferGeometry.addAttribute: Use .setIndex() for index attribute.');this.setIndex(attribute);return this;}return this.setAttribute(name,attribute);},addDrawCall:function addDrawCall(start,count,indexOffset){if(indexOffset!==undefined){console.warn('THREE.BufferGeometry: .addDrawCall() no longer supports indexOffset.');}console.warn('THREE.BufferGeometry: .addDrawCall() is now .addGroup().');this.addGroup(start,count);},clearDrawCalls:function clearDrawCalls(){console.warn('THREE.BufferGeometry: .clearDrawCalls() is now .clearGroups().');this.clearGroups();},computeTangents:function computeTangents(){console.warn('THREE.BufferGeometry: .computeTangents() has been removed.');},computeOffsets:function computeOffsets(){console.warn('THREE.BufferGeometry: .computeOffsets() has been removed.');},removeAttribute:function removeAttribute(name){console.warn('THREE.BufferGeometry: .removeAttribute() has been renamed to .deleteAttribute().');return this.deleteAttribute(name);},applyMatrix:function applyMatrix(matrix){console.warn('THREE.BufferGeometry: .applyMatrix() has been renamed to .applyMatrix4().');return this.applyMatrix4(matrix);}});Object.defineProperties(BufferGeometry.prototype,{drawcalls:{get:function get(){console.error('THREE.BufferGeometry: .drawcalls has been renamed to .groups.');return this.groups;}},offsets:{get:function get(){console.warn('THREE.BufferGeometry: .offsets has been renamed to .groups.');return this.groups;}}});Object.defineProperties(InstancedBufferGeometry.prototype,{maxInstancedCount:{get:function get(){console.warn('THREE.InstancedBufferGeometry: .maxInstancedCount has been renamed to .instanceCount.');return this.instanceCount;},set:function set(value){console.warn('THREE.InstancedBufferGeometry: .maxInstancedCount has been renamed to .instanceCount.');this.instanceCount=value;}}});Object.defineProperties(Raycaster.prototype,{linePrecision:{get:function get(){console.warn('THREE.Raycaster: .linePrecision has been deprecated. Use .params.Line.threshold instead.');return this.params.Line.threshold;},set:function set(value){console.warn('THREE.Raycaster: .linePrecision has been deprecated. Use .params.Line.threshold instead.');this.params.Line.threshold=value;}}});Object.defineProperties(InterleavedBuffer.prototype,{dynamic:{get:function get(){console.warn('THREE.InterleavedBuffer: .length has been deprecated. Use .usage instead.');return this.usage===DynamicDrawUsage;},set:function set(value){console.warn('THREE.InterleavedBuffer: .length has been deprecated. Use .usage instead.');this.setUsage(value);}}});Object.assign(InterleavedBuffer.prototype,{setDynamic:function setDynamic(value){console.warn('THREE.InterleavedBuffer: .setDynamic() has been deprecated. Use .setUsage() instead.');this.setUsage(value===true?DynamicDrawUsage:StaticDrawUsage);return this;},setArray:function setArray(){console.error('THREE.InterleavedBuffer: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers');}});Object.assign(ExtrudeBufferGeometry.prototype,{getArrays:function getArrays(){console.error('THREE.ExtrudeBufferGeometry: .getArrays() has been removed.');},addShapeList:function addShapeList(){console.error('THREE.ExtrudeBufferGeometry: .addShapeList() has been removed.');},addShape:function addShape(){console.error('THREE.ExtrudeBufferGeometry: .addShape() has been removed.');}});Object.assign(Scene.prototype,{dispose:function dispose(){console.error('THREE.Scene: .dispose() has been removed.');}});Object.defineProperties(Uniform.prototype,{dynamic:{set:function set(){console.warn('THREE.Uniform: .dynamic has been removed. Use object.onBeforeRender() instead.');}},onUpdate:{value:function value(){console.warn('THREE.Uniform: .onUpdate() has been removed. Use object.onBeforeRender() instead.');return this;}}});Object.defineProperties(Material.prototype,{wrapAround:{get:function get(){console.warn('THREE.Material: .wrapAround has been removed.');},set:function set(){console.warn('THREE.Material: .wrapAround has been removed.');}},overdraw:{get:function get(){console.warn('THREE.Material: .overdraw has been removed.');},set:function set(){console.warn('THREE.Material: .overdraw has been removed.');}},wrapRGB:{get:function get(){console.warn('THREE.Material: .wrapRGB has been removed.');return new Color();}},shading:{get:function get(){console.error('THREE.'+this.type+': .shading has been removed. Use the boolean .flatShading instead.');},set:function set(value){console.warn('THREE.'+this.type+': .shading has been removed. Use the boolean .flatShading instead.');this.flatShading=value===FlatShading;}},stencilMask:{get:function get(){console.warn('THREE.'+this.type+': .stencilMask has been removed. Use .stencilFuncMask instead.');return this.stencilFuncMask;},set:function set(value){console.warn('THREE.'+this.type+': .stencilMask has been removed. Use .stencilFuncMask instead.');this.stencilFuncMask=value;}}});Object.defineProperties(MeshPhongMaterial.prototype,{metal:{get:function get(){console.warn('THREE.MeshPhongMaterial: .metal has been removed. Use THREE.MeshStandardMaterial instead.');return false;},set:function set(){console.warn('THREE.MeshPhongMaterial: .metal has been removed. Use THREE.MeshStandardMaterial instead');}}});Object.defineProperties(MeshPhysicalMaterial.prototype,{transparency:{get:function get(){console.warn('THREE.MeshPhysicalMaterial: .transparency has been renamed to .transmission.');return this.transmission;},set:function set(value){console.warn('THREE.MeshPhysicalMaterial: .transparency has been renamed to .transmission.');this.transmission=value;}}});Object.defineProperties(ShaderMaterial.prototype,{derivatives:{get:function get(){console.warn('THREE.ShaderMaterial: .derivatives has been moved to .extensions.derivatives.');return this.extensions.derivatives;},set:function set(value){console.warn('THREE. ShaderMaterial: .derivatives has been moved to .extensions.derivatives.');this.extensions.derivatives=value;}}});Object.assign(WebGLRenderer.prototype,{clearTarget:function clearTarget(renderTarget,color,depth,stencil){console.warn('THREE.WebGLRenderer: .clearTarget() has been deprecated. Use .setRenderTarget() and .clear() instead.');this.setRenderTarget(renderTarget);this.clear(color,depth,stencil);},animate:function animate(callback){console.warn('THREE.WebGLRenderer: .animate() is now .setAnimationLoop().');this.setAnimationLoop(callback);},getCurrentRenderTarget:function getCurrentRenderTarget(){console.warn('THREE.WebGLRenderer: .getCurrentRenderTarget() is now .getRenderTarget().');return this.getRenderTarget();},getMaxAnisotropy:function getMaxAnisotropy(){console.warn('THREE.WebGLRenderer: .getMaxAnisotropy() is now .capabilities.getMaxAnisotropy().');return this.capabilities.getMaxAnisotropy();},getPrecision:function getPrecision(){console.warn('THREE.WebGLRenderer: .getPrecision() is now .capabilities.precision.');return this.capabilities.precision;},resetGLState:function resetGLState(){console.warn('THREE.WebGLRenderer: .resetGLState() is now .state.reset().');return this.state.reset();},supportsFloatTextures:function supportsFloatTextures(){console.warn('THREE.WebGLRenderer: .supportsFloatTextures() is now .extensions.get( \\'OES_texture_float\\' ).');return this.extensions.get('OES_texture_float');},supportsHalfFloatTextures:function supportsHalfFloatTextures(){console.warn('THREE.WebGLRenderer: .supportsHalfFloatTextures() is now .extensions.get( \\'OES_texture_half_float\\' ).');return this.extensions.get('OES_texture_half_float');},supportsStandardDerivatives:function supportsStandardDerivatives(){console.warn('THREE.WebGLRenderer: .supportsStandardDerivatives() is now .extensions.get( \\'OES_standard_derivatives\\' ).');return this.extensions.get('OES_standard_derivatives');},supportsCompressedTextureS3TC:function supportsCompressedTextureS3TC(){console.warn('THREE.WebGLRenderer: .supportsCompressedTextureS3TC() is now .extensions.get( \\'WEBGL_compressed_texture_s3tc\\' ).');return this.extensions.get('WEBGL_compressed_texture_s3tc');},supportsCompressedTexturePVRTC:function supportsCompressedTexturePVRTC(){console.warn('THREE.WebGLRenderer: .supportsCompressedTexturePVRTC() is now .extensions.get( \\'WEBGL_compressed_texture_pvrtc\\' ).');return this.extensions.get('WEBGL_compressed_texture_pvrtc');},supportsBlendMinMax:function supportsBlendMinMax(){console.warn('THREE.WebGLRenderer: .supportsBlendMinMax() is now .extensions.get( \\'EXT_blend_minmax\\' ).');return this.extensions.get('EXT_blend_minmax');},supportsVertexTextures:function supportsVertexTextures(){console.warn('THREE.WebGLRenderer: .supportsVertexTextures() is now .capabilities.vertexTextures.');return this.capabilities.vertexTextures;},supportsInstancedArrays:function supportsInstancedArrays(){console.warn('THREE.WebGLRenderer: .supportsInstancedArrays() is now .extensions.get( \\'ANGLE_instanced_arrays\\' ).');return this.extensions.get('ANGLE_instanced_arrays');},enableScissorTest:function enableScissorTest(boolean){console.warn('THREE.WebGLRenderer: .enableScissorTest() is now .setScissorTest().');this.setScissorTest(boolean);},initMaterial:function initMaterial(){console.warn('THREE.WebGLRenderer: .initMaterial() has been removed.');},addPrePlugin:function addPrePlugin(){console.warn('THREE.WebGLRenderer: .addPrePlugin() has been removed.');},addPostPlugin:function addPostPlugin(){console.warn('THREE.WebGLRenderer: .addPostPlugin() has been removed.');},updateShadowMap:function updateShadowMap(){console.warn('THREE.WebGLRenderer: .updateShadowMap() has been removed.');},setFaceCulling:function setFaceCulling(){console.warn('THREE.WebGLRenderer: .setFaceCulling() has been removed.');},allocTextureUnit:function allocTextureUnit(){console.warn('THREE.WebGLRenderer: .allocTextureUnit() has been removed.');},setTexture:function setTexture(){console.warn('THREE.WebGLRenderer: .setTexture() has been removed.');},setTexture2D:function setTexture2D(){console.warn('THREE.WebGLRenderer: .setTexture2D() has been removed.');},setTextureCube:function setTextureCube(){console.warn('THREE.WebGLRenderer: .setTextureCube() has been removed.');},getActiveMipMapLevel:function getActiveMipMapLevel(){console.warn('THREE.WebGLRenderer: .getActiveMipMapLevel() is now .getActiveMipmapLevel().');return this.getActiveMipmapLevel();}});Object.defineProperties(WebGLRenderer.prototype,{shadowMapEnabled:{get:function get(){return this.shadowMap.enabled;},set:function set(value){console.warn('THREE.WebGLRenderer: .shadowMapEnabled is now .shadowMap.enabled.');this.shadowMap.enabled=value;}},shadowMapType:{get:function get(){return this.shadowMap.type;},set:function set(value){console.warn('THREE.WebGLRenderer: .shadowMapType is now .shadowMap.type.');this.shadowMap.type=value;}},shadowMapCullFace:{get:function get(){console.warn('THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.');return undefined;},set:function set(){console.warn('THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.');}},context:{get:function get(){console.warn('THREE.WebGLRenderer: .context has been removed. Use .getContext() instead.');return this.getContext();}},vr:{get:function get(){console.warn('THREE.WebGLRenderer: .vr has been renamed to .xr');return this.xr;}},gammaInput:{get:function get(){console.warn('THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead.');return false;},set:function set(){console.warn('THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead.');}},gammaOutput:{get:function get(){console.warn('THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead.');return false;},set:function set(value){console.warn('THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead.');this.outputEncoding=value===true?sRGBEncoding:LinearEncoding;}},toneMappingWhitePoint:{get:function get(){console.warn('THREE.WebGLRenderer: .toneMappingWhitePoint has been removed.');return 1.0;},set:function set(){console.warn('THREE.WebGLRenderer: .toneMappingWhitePoint has been removed.');}}});Object.defineProperties(WebGLShadowMap.prototype,{cullFace:{get:function get(){console.warn('THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.');return undefined;},set:function set(){console.warn('THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.');}},renderReverseSided:{get:function get(){console.warn('THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.');return undefined;},set:function set(){console.warn('THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.');}},renderSingleSided:{get:function get(){console.warn('THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.');return undefined;},set:function set(){console.warn('THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.');}}});Object.defineProperties(WebGLRenderTarget.prototype,{wrapS:{get:function get(){console.warn('THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS.');return this.texture.wrapS;},set:function set(value){console.warn('THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS.');this.texture.wrapS=value;}},wrapT:{get:function get(){console.warn('THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT.');return this.texture.wrapT;},set:function set(value){console.warn('THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT.');this.texture.wrapT=value;}},magFilter:{get:function get(){console.warn('THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter.');return this.texture.magFilter;},set:function set(value){console.warn('THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter.');this.texture.magFilter=value;}},minFilter:{get:function get(){console.warn('THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter.');return this.texture.minFilter;},set:function set(value){console.warn('THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter.');this.texture.minFilter=value;}},anisotropy:{get:function get(){console.warn('THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy.');return this.texture.anisotropy;},set:function set(value){console.warn('THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy.');this.texture.anisotropy=value;}},offset:{get:function get(){console.warn('THREE.WebGLRenderTarget: .offset is now .texture.offset.');return this.texture.offset;},set:function set(value){console.warn('THREE.WebGLRenderTarget: .offset is now .texture.offset.');this.texture.offset=value;}},repeat:{get:function get(){console.warn('THREE.WebGLRenderTarget: .repeat is now .texture.repeat.');return this.texture.repeat;},set:function set(value){console.warn('THREE.WebGLRenderTarget: .repeat is now .texture.repeat.');this.texture.repeat=value;}},format:{get:function get(){console.warn('THREE.WebGLRenderTarget: .format is now .texture.format.');return this.texture.format;},set:function set(value){console.warn('THREE.WebGLRenderTarget: .format is now .texture.format.');this.texture.format=value;}},type:{get:function get(){console.warn('THREE.WebGLRenderTarget: .type is now .texture.type.');return this.texture.type;},set:function set(value){console.warn('THREE.WebGLRenderTarget: .type is now .texture.type.');this.texture.type=value;}},generateMipmaps:{get:function get(){console.warn('THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps.');return this.texture.generateMipmaps;},set:function set(value){console.warn('THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps.');this.texture.generateMipmaps=value;}}});Object.defineProperties(Audio.prototype,{load:{value:function value(file){console.warn('THREE.Audio: .load has been deprecated. Use THREE.AudioLoader instead.');var scope=this;var audioLoader=new AudioLoader();audioLoader.load(file,function(buffer){scope.setBuffer(buffer);});return this;}},startTime:{set:function set(){console.warn('THREE.Audio: .startTime is now .play( delay ).');}}});CubeCamera.prototype.updateCubeMap=function(renderer,scene){console.warn('THREE.CubeCamera: .updateCubeMap() is now .update().');return this.update(renderer,scene);};ImageUtils.crossOrigin=undefined;ImageUtils.loadTexture=function(url,mapping,onLoad,onError){console.warn('THREE.ImageUtils.loadTexture has been deprecated. Use THREE.TextureLoader() instead.');var loader=new TextureLoader();loader.setCrossOrigin(this.crossOrigin);var texture=loader.load(url,onLoad,undefined,onError);if(mapping)texture.mapping=mapping;return texture;};ImageUtils.loadTextureCube=function(urls,mapping,onLoad,onError){console.warn('THREE.ImageUtils.loadTextureCube has been deprecated. Use THREE.CubeTextureLoader() instead.');var loader=new CubeTextureLoader();loader.setCrossOrigin(this.crossOrigin);var texture=loader.load(urls,onLoad,undefined,onError);if(mapping)texture.mapping=mapping;return texture;};ImageUtils.loadCompressedTexture=function(){console.error('THREE.ImageUtils.loadCompressedTexture has been removed. Use THREE.DDSLoader instead.');};ImageUtils.loadCompressedTextureCube=function(){console.error('THREE.ImageUtils.loadCompressedTextureCube has been removed. Use THREE.DDSLoader instead.');};if(typeof __THREE_DEVTOOLS__!=='undefined'){__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent('register',{detail:{revision:REVISION}}));}var DRACOLoader=function DRACOLoader(manager){Loader.call(this,manager);this.decoderPath='';this.decoderConfig={};this.decoderBinary=null;this.decoderPending=null;this.workerLimit=4;this.workerPool=[];this.workerNextTaskID=1;this.workerSourceURL='';this.defaultAttributeIDs={position:'POSITION',normal:'NORMAL',color:'COLOR',uv:'TEX_COORD'};this.defaultAttributeTypes={position:'Float32Array',normal:'Float32Array',color:'Float32Array',uv:'Float32Array'};};DRACOLoader.prototype=Object.assign(Object.create(Loader.prototype),{constructor:DRACOLoader,setDecoderPath:function setDecoderPath(path){this.decoderPath=path;return this;},setDecoderConfig:function setDecoderConfig(config){this.decoderConfig=config;return this;},setWorkerLimit:function setWorkerLimit(workerLimit){this.workerLimit=workerLimit;return this;},setVerbosity:function setVerbosity(){console.warn('THREE.DRACOLoader: The .setVerbosity() method has been removed.');},setDrawMode:function setDrawMode(){console.warn('THREE.DRACOLoader: The .setDrawMode() method has been removed.');},setSkipDequantization:function setSkipDequantization(){console.warn('THREE.DRACOLoader: The .setSkipDequantization() method has been removed.');},load:function load(url,onLoad,onProgress,onError){var _this18=this;var loader=new FileLoader(this.manager);loader.setPath(this.path);loader.setResponseType('arraybuffer');loader.setRequestHeader(this.requestHeader);loader.setWithCredentials(this.withCredentials);loader.load(url,function(buffer){var taskConfig={attributeIDs:_this18.defaultAttributeIDs,attributeTypes:_this18.defaultAttributeTypes,useUniqueIDs:false};_this18.decodeGeometry(buffer,taskConfig).then(onLoad).catch(onError);},onProgress,onError);},decodeDracoFile:function decodeDracoFile(buffer,callback,attributeIDs,attributeTypes){var taskConfig={attributeIDs:attributeIDs||this.defaultAttributeIDs,attributeTypes:attributeTypes||this.defaultAttributeTypes,useUniqueIDs:!!attributeIDs};this.decodeGeometry(buffer,taskConfig).then(callback);},decodeGeometry:function decodeGeometry(buffer,taskConfig){var _this19=this;for(var attribute in taskConfig.attributeTypes){var type=taskConfig.attributeTypes[attribute];if(type.BYTES_PER_ELEMENT!==undefined){taskConfig.attributeTypes[attribute]=type.name;}}\nvar taskKey=JSON.stringify(taskConfig);if(DRACOLoader.taskCache.has(buffer)){var cachedTask=DRACOLoader.taskCache.get(buffer);if(cachedTask.key===taskKey){return cachedTask.promise;}else if(buffer.byteLength===0){throw new Error('THREE.DRACOLoader: Unable to re-decode a buffer with different '+'settings. Buffer has already been transferred.');}}\nvar worker;var taskID=this.workerNextTaskID++;var taskCost=buffer.byteLength;var geometryPending=this._getWorker(taskID,taskCost).then(function(_worker){worker=_worker;return new Promise(function(resolve,reject){worker._callbacks[taskID]={resolve:resolve,reject:reject};worker.postMessage({type:'decode',id:taskID,taskConfig:taskConfig,buffer:buffer},[buffer]);});}).then(function(message){return _this19._createGeometry(message.geometry);});geometryPending.catch(function(){return true;}).then(function(){if(worker&&taskID){_this19._releaseTask(worker,taskID);}});DRACOLoader.taskCache.set(buffer,{key:taskKey,promise:geometryPending});return geometryPending;},_createGeometry:function _createGeometry(geometryData){var geometry=new BufferGeometry();if(geometryData.index){geometry.setIndex(new BufferAttribute(geometryData.index.array,1));}for(var i=0;i<geometryData.attributes.length;i++){var attribute=geometryData.attributes[i];var name=attribute.name;var array=attribute.array;var itemSize=attribute.itemSize;geometry.setAttribute(name,new BufferAttribute(array,itemSize));}return geometry;},_loadLibrary:function _loadLibrary(url,responseType){var loader=new FileLoader(this.manager);loader.setPath(this.decoderPath);loader.setResponseType(responseType);loader.setWithCredentials(this.withCredentials);return new Promise(function(resolve,reject){loader.load(url,resolve,undefined,reject);});},preload:function preload(){this._initDecoder();return this;},_initDecoder:function _initDecoder(){var _this20=this;if(this.decoderPending)return this.decoderPending;var useJS=(typeof WebAssembly===\"undefined\"?\"undefined\":_typeof(WebAssembly))!=='object'||this.decoderConfig.type==='js';var librariesPending=[];if(useJS){librariesPending.push(this._loadLibrary('draco_decoder.js','text'));}else{librariesPending.push(this._loadLibrary('draco_wasm_wrapper.js','text'));librariesPending.push(this._loadLibrary('draco_decoder.wasm','arraybuffer'));}this.decoderPending=Promise.all(librariesPending).then(function(libraries){var jsContent=libraries[0];if(!useJS){_this20.decoderConfig.wasmBinary=libraries[1];}var fn=DRACOLoader.DRACOWorker.toString();var body=['/* draco decoder */',jsContent,'','/* worker */',fn.substring(fn.indexOf('{')+1,fn.lastIndexOf('}'))].join('\\n');_this20.workerSourceURL=URL.createObjectURL(new Blob([body]));});return this.decoderPending;},_getWorker:function _getWorker(taskID,taskCost){var _this21=this;return this._initDecoder().then(function(){if(_this21.workerPool.length<_this21.workerLimit){var worker=new Worker(_this21.workerSourceURL);worker._callbacks={};worker._taskCosts={};worker._taskLoad=0;worker.postMessage({type:'init',decoderConfig:_this21.decoderConfig});worker.onmessage=function(e){var message=e.data;switch(message.type){case'decode':worker._callbacks[message.id].resolve(message);break;case'error':worker._callbacks[message.id].reject(message);break;default:console.error('THREE.DRACOLoader: Unexpected message, \"'+message.type+'\"');}};_this21.workerPool.push(worker);}else{_this21.workerPool.sort(function(a,b){return a._taskLoad>b._taskLoad?-1:1;});}var worker=_this21.workerPool[_this21.workerPool.length-1];worker._taskCosts[taskID]=taskCost;worker._taskLoad+=taskCost;return worker;});},_releaseTask:function _releaseTask(worker,taskID){worker._taskLoad-=worker._taskCosts[taskID];delete worker._callbacks[taskID];delete worker._taskCosts[taskID];},debug:function debug(){console.log('Task load: ',this.workerPool.map(function(worker){return worker._taskLoad;}));},dispose:function dispose(){for(var i=0;i<this.workerPool.length;++i){this.workerPool[i].terminate();}this.workerPool.length=0;return this;}});DRACOLoader.DRACOWorker=function(){var decoderConfig;var decoderPending;onmessage=function onmessage(e){var message=e.data;switch(message.type){case'init':decoderConfig=message.decoderConfig;decoderPending=new Promise(function(resolve){decoderConfig.onModuleLoaded=function(draco){resolve({draco:draco});};DracoDecoderModule(decoderConfig);});break;case'decode':var buffer=message.buffer;var taskConfig=message.taskConfig;decoderPending.then(function(module){var draco=module.draco;var decoder=new draco.Decoder();var decoderBuffer=new draco.DecoderBuffer();decoderBuffer.Init(new Int8Array(buffer),buffer.byteLength);try{var geometry=decodeGeometry(draco,decoder,decoderBuffer,taskConfig);var buffers=geometry.attributes.map(function(attr){return attr.array.buffer;});if(geometry.index)buffers.push(geometry.index.array.buffer);self.postMessage({type:'decode',id:message.id,geometry:geometry},buffers);}catch(error){console.error(error);self.postMessage({type:'error',id:message.id,error:error.message});}finally{draco.destroy(decoderBuffer);draco.destroy(decoder);}});break;}};function decodeGeometry(draco,decoder,decoderBuffer,taskConfig){var attributeIDs=taskConfig.attributeIDs;var attributeTypes=taskConfig.attributeTypes;var dracoGeometry;var decodingStatus;var geometryType=decoder.GetEncodedGeometryType(decoderBuffer);if(geometryType===draco.TRIANGULAR_MESH){dracoGeometry=new draco.Mesh();decodingStatus=decoder.DecodeBufferToMesh(decoderBuffer,dracoGeometry);}else if(geometryType===draco.POINT_CLOUD){dracoGeometry=new draco.PointCloud();decodingStatus=decoder.DecodeBufferToPointCloud(decoderBuffer,dracoGeometry);}else{throw new Error('THREE.DRACOLoader: Unexpected geometry type.');}if(!decodingStatus.ok()||dracoGeometry.ptr===0){throw new Error('THREE.DRACOLoader: Decoding failed: '+decodingStatus.error_msg());}var geometry={index:null,attributes:[]};for(var attributeName in attributeIDs){var attributeType=self[attributeTypes[attributeName]];var attribute;var attributeID;if(taskConfig.useUniqueIDs){attributeID=attributeIDs[attributeName];attribute=decoder.GetAttributeByUniqueId(dracoGeometry,attributeID);}else{attributeID=decoder.GetAttributeId(dracoGeometry,draco[attributeIDs[attributeName]]);if(attributeID===-1)continue;attribute=decoder.GetAttribute(dracoGeometry,attributeID);}geometry.attributes.push(decodeAttribute(draco,decoder,dracoGeometry,attributeName,attributeType,attribute));}\nif(geometryType===draco.TRIANGULAR_MESH){geometry.index=decodeIndex(draco,decoder,dracoGeometry);}draco.destroy(dracoGeometry);return geometry;}function decodeIndex(draco,decoder,dracoGeometry){var numFaces=dracoGeometry.num_faces();var numIndices=numFaces*3;var byteLength=numIndices*4;var ptr=draco._malloc(byteLength);decoder.GetTrianglesUInt32Array(dracoGeometry,byteLength,ptr);var index=new Uint32Array(draco.HEAPF32.buffer,ptr,numIndices).slice();draco._free(ptr);return{array:index,itemSize:1};}function decodeAttribute(draco,decoder,dracoGeometry,attributeName,attributeType,attribute){var numComponents=attribute.num_components();var numPoints=dracoGeometry.num_points();var numValues=numPoints*numComponents;var byteLength=numValues*attributeType.BYTES_PER_ELEMENT;var dataType=getDracoDataType(draco,attributeType);var ptr=draco._malloc(byteLength);decoder.GetAttributeDataArrayForAllPoints(dracoGeometry,attribute,dataType,byteLength,ptr);var array=new attributeType(draco.HEAPF32.buffer,ptr,numValues).slice();draco._free(ptr);return{name:attributeName,array:array,itemSize:numComponents};}function getDracoDataType(draco,attributeType){switch(attributeType){case Float32Array:return draco.DT_FLOAT32;case Int8Array:return draco.DT_INT8;case Int16Array:return draco.DT_INT16;case Int32Array:return draco.DT_INT32;case Uint8Array:return draco.DT_UINT8;case Uint16Array:return draco.DT_UINT16;case Uint32Array:return draco.DT_UINT32;}}};DRACOLoader.taskCache=new WeakMap();DRACOLoader.setDecoderPath=function(){console.warn('THREE.DRACOLoader: The .setDecoderPath() method has been removed. Use instance methods.');};DRACOLoader.setDecoderConfig=function(){console.warn('THREE.DRACOLoader: The .setDecoderConfig() method has been removed. Use instance methods.');};DRACOLoader.releaseDecoderModule=function(){console.warn('THREE.DRACOLoader: The .releaseDecoderModule() method has been removed. Use instance methods.');};DRACOLoader.getDecoderModule=function(){console.warn('THREE.DRACOLoader: The .getDecoderModule() method has been removed. Use instance methods.');};var GLTFLoader=function(){function GLTFLoader(manager){Loader.call(this,manager);this.dracoLoader=null;this.ddsLoader=null;this.ktx2Loader=null;this.pluginCallbacks=[];this.register(function(parser){return new GLTFMaterialsClearcoatExtension(parser);});this.register(function(parser){return new GLTFTextureBasisUExtension(parser);});this.register(function(parser){return new GLTFMaterialsTransmissionExtension(parser);});this.register(function(parser){return new GLTFLightsExtension(parser);});}GLTFLoader.prototype=Object.assign(Object.create(Loader.prototype),{constructor:GLTFLoader,load:function load(url,onLoad,onProgress,onError){var scope=this;var resourcePath;if(this.resourcePath!==''){resourcePath=this.resourcePath;}else if(this.path!==''){resourcePath=this.path;}else{resourcePath=LoaderUtils.extractUrlBase(url);}\nthis.manager.itemStart(url);var _onError=function _onError(e){if(onError){onError(e);}else{console.error(e);}scope.manager.itemError(url);scope.manager.itemEnd(url);};var loader=new FileLoader(this.manager);loader.setPath(this.path);loader.setResponseType('arraybuffer');loader.setRequestHeader(this.requestHeader);loader.setWithCredentials(this.withCredentials);loader.load(url,function(data){try{scope.parse(data,resourcePath,function(gltf){onLoad(gltf);scope.manager.itemEnd(url);},_onError);}catch(e){_onError(e);}},onProgress,_onError);},setDRACOLoader:function setDRACOLoader(dracoLoader){this.dracoLoader=dracoLoader;return this;},setDDSLoader:function setDDSLoader(ddsLoader){this.ddsLoader=ddsLoader;return this;},setKTX2Loader:function setKTX2Loader(ktx2Loader){this.ktx2Loader=ktx2Loader;return this;},register:function register(callback){if(this.pluginCallbacks.indexOf(callback)===-1){this.pluginCallbacks.push(callback);}return this;},unregister:function unregister(callback){if(this.pluginCallbacks.indexOf(callback)!==-1){this.pluginCallbacks.splice(this.pluginCallbacks.indexOf(callback),1);}return this;},parse:function parse(data,path,onLoad,onError){var content;var extensions={};var plugins={};if(typeof data==='string'){content=data;}else{var magic=LoaderUtils.decodeText(new Uint8Array(data,0,4));if(magic===BINARY_EXTENSION_HEADER_MAGIC){try{extensions[EXTENSIONS.KHR_BINARY_GLTF]=new GLTFBinaryExtension(data);}catch(error){if(onError)onError(error);return;}content=extensions[EXTENSIONS.KHR_BINARY_GLTF].content;}else{content=LoaderUtils.decodeText(new Uint8Array(data));}}var json=JSON.parse(content);if(json.asset===undefined||json.asset.version[0]<2){if(onError)onError(new Error('THREE.GLTFLoader: Unsupported asset. glTF versions >=2.0 are supported.'));return;}var parser=new GLTFParser(json,{path:path||this.resourcePath||'',crossOrigin:this.crossOrigin,manager:this.manager,ktx2Loader:this.ktx2Loader});parser.fileLoader.setRequestHeader(this.requestHeader);for(var i=0;i<this.pluginCallbacks.length;i++){var plugin=this.pluginCallbacks[i](parser);plugins[plugin.name]=plugin;extensions[plugin.name]=true;}if(json.extensionsUsed){for(var i=0;i<json.extensionsUsed.length;++i){var extensionName=json.extensionsUsed[i];var extensionsRequired=json.extensionsRequired||[];switch(extensionName){case EXTENSIONS.KHR_MATERIALS_UNLIT:extensions[extensionName]=new GLTFMaterialsUnlitExtension();break;case EXTENSIONS.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS:extensions[extensionName]=new GLTFMaterialsPbrSpecularGlossinessExtension();break;case EXTENSIONS.KHR_DRACO_MESH_COMPRESSION:extensions[extensionName]=new GLTFDracoMeshCompressionExtension(json,this.dracoLoader);break;case EXTENSIONS.MSFT_TEXTURE_DDS:extensions[extensionName]=new GLTFTextureDDSExtension(this.ddsLoader);break;case EXTENSIONS.KHR_TEXTURE_TRANSFORM:extensions[extensionName]=new GLTFTextureTransformExtension();break;case EXTENSIONS.KHR_MESH_QUANTIZATION:extensions[extensionName]=new GLTFMeshQuantizationExtension();break;default:if(extensionsRequired.indexOf(extensionName)>=0&&plugins[extensionName]===undefined){console.warn('THREE.GLTFLoader: Unknown extension \"'+extensionName+'\".');}}}}parser.setExtensions(extensions);parser.setPlugins(plugins);parser.parse(onLoad,onError);}});function GLTFRegistry(){var objects={};return{get:function get(key){return objects[key];},add:function add(key,object){objects[key]=object;},remove:function remove(key){delete objects[key];},removeAll:function removeAll(){objects={};}};}var EXTENSIONS={KHR_BINARY_GLTF:'KHR_binary_glTF',KHR_DRACO_MESH_COMPRESSION:'KHR_draco_mesh_compression',KHR_LIGHTS_PUNCTUAL:'KHR_lights_punctual',KHR_MATERIALS_CLEARCOAT:'KHR_materials_clearcoat',KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS:'KHR_materials_pbrSpecularGlossiness',KHR_MATERIALS_TRANSMISSION:'KHR_materials_transmission',KHR_MATERIALS_UNLIT:'KHR_materials_unlit',KHR_TEXTURE_BASISU:'KHR_texture_basisu',KHR_TEXTURE_TRANSFORM:'KHR_texture_transform',KHR_MESH_QUANTIZATION:'KHR_mesh_quantization',MSFT_TEXTURE_DDS:'MSFT_texture_dds'};function GLTFTextureDDSExtension(ddsLoader){if(!ddsLoader){throw new Error('THREE.GLTFLoader: Attempting to load .dds texture without importing DDSLoader');}this.name=EXTENSIONS.MSFT_TEXTURE_DDS;this.ddsLoader=ddsLoader;}function GLTFLightsExtension(parser){this.parser=parser;this.name=EXTENSIONS.KHR_LIGHTS_PUNCTUAL;this.cache={refs:{},uses:{}};}GLTFLightsExtension.prototype._markDefs=function(){var parser=this.parser;var nodeDefs=this.parser.json.nodes||[];for(var nodeIndex=0,nodeLength=nodeDefs.length;nodeIndex<nodeLength;nodeIndex++){var nodeDef=nodeDefs[nodeIndex];if(nodeDef.extensions&&nodeDef.extensions[this.name]&&nodeDef.extensions[this.name].light!==undefined){parser._addNodeRef(this.cache,nodeDef.extensions[this.name].light);}}};GLTFLightsExtension.prototype._loadLight=function(lightIndex){var parser=this.parser;var cacheKey='light:'+lightIndex;var dependency=parser.cache.get(cacheKey);if(dependency)return dependency;var json=parser.json;var extensions=json.extensions&&json.extensions[this.name]||{};var lightDefs=extensions.lights||[];var lightDef=lightDefs[lightIndex];var lightNode;var color=new Color(0xffffff);if(lightDef.color!==undefined)color.fromArray(lightDef.color);var range=lightDef.range!==undefined?lightDef.range:0;switch(lightDef.type){case'directional':lightNode=new DirectionalLight(color);lightNode.target.position.set(0,0,-1);lightNode.add(lightNode.target);break;case'point':lightNode=new PointLight(color);lightNode.distance=range;break;case'spot':lightNode=new SpotLight(color);lightNode.distance=range;lightDef.spot=lightDef.spot||{};lightDef.spot.innerConeAngle=lightDef.spot.innerConeAngle!==undefined?lightDef.spot.innerConeAngle:0;lightDef.spot.outerConeAngle=lightDef.spot.outerConeAngle!==undefined?lightDef.spot.outerConeAngle:Math.PI/4.0;lightNode.angle=lightDef.spot.outerConeAngle;lightNode.penumbra=1.0-lightDef.spot.innerConeAngle/lightDef.spot.outerConeAngle;lightNode.target.position.set(0,0,-1);lightNode.add(lightNode.target);break;default:throw new Error('THREE.GLTFLoader: Unexpected light type, \"'+lightDef.type+'\".');}\nlightNode.position.set(0,0,0);lightNode.decay=2;if(lightDef.intensity!==undefined)lightNode.intensity=lightDef.intensity;lightNode.name=parser.createUniqueName(lightDef.name||'light_'+lightIndex);dependency=Promise.resolve(lightNode);parser.cache.add(cacheKey,dependency);return dependency;};GLTFLightsExtension.prototype.createNodeAttachment=function(nodeIndex){var self=this;var parser=this.parser;var json=parser.json;var nodeDef=json.nodes[nodeIndex];var lightDef=nodeDef.extensions&&nodeDef.extensions[this.name]||{};var lightIndex=lightDef.light;if(lightIndex===undefined)return null;return this._loadLight(lightIndex).then(function(light){return parser._getNodeRef(self.cache,lightIndex,light);});};function GLTFMaterialsUnlitExtension(){this.name=EXTENSIONS.KHR_MATERIALS_UNLIT;}GLTFMaterialsUnlitExtension.prototype.getMaterialType=function(){return MeshBasicMaterial;};GLTFMaterialsUnlitExtension.prototype.extendParams=function(materialParams,materialDef,parser){var pending=[];materialParams.color=new Color(1.0,1.0,1.0);materialParams.opacity=1.0;var metallicRoughness=materialDef.pbrMetallicRoughness;if(metallicRoughness){if(Array.isArray(metallicRoughness.baseColorFactor)){var array=metallicRoughness.baseColorFactor;materialParams.color.fromArray(array);materialParams.opacity=array[3];}if(metallicRoughness.baseColorTexture!==undefined){pending.push(parser.assignTexture(materialParams,'map',metallicRoughness.baseColorTexture));}}return Promise.all(pending);};function GLTFMaterialsClearcoatExtension(parser){this.parser=parser;this.name=EXTENSIONS.KHR_MATERIALS_CLEARCOAT;}GLTFMaterialsClearcoatExtension.prototype.getMaterialType=function(materialIndex){var parser=this.parser;var materialDef=parser.json.materials[materialIndex];if(!materialDef.extensions||!materialDef.extensions[this.name])return null;return MeshPhysicalMaterial;};GLTFMaterialsClearcoatExtension.prototype.extendMaterialParams=function(materialIndex,materialParams){var parser=this.parser;var materialDef=parser.json.materials[materialIndex];if(!materialDef.extensions||!materialDef.extensions[this.name]){return Promise.resolve();}var pending=[];var extension=materialDef.extensions[this.name];if(extension.clearcoatFactor!==undefined){materialParams.clearcoat=extension.clearcoatFactor;}if(extension.clearcoatTexture!==undefined){pending.push(parser.assignTexture(materialParams,'clearcoatMap',extension.clearcoatTexture));}if(extension.clearcoatRoughnessFactor!==undefined){materialParams.clearcoatRoughness=extension.clearcoatRoughnessFactor;}if(extension.clearcoatRoughnessTexture!==undefined){pending.push(parser.assignTexture(materialParams,'clearcoatRoughnessMap',extension.clearcoatRoughnessTexture));}if(extension.clearcoatNormalTexture!==undefined){pending.push(parser.assignTexture(materialParams,'clearcoatNormalMap',extension.clearcoatNormalTexture));if(extension.clearcoatNormalTexture.scale!==undefined){var scale=extension.clearcoatNormalTexture.scale;materialParams.clearcoatNormalScale=new Vector2(scale,scale);}}return Promise.all(pending);};function GLTFMaterialsTransmissionExtension(parser){this.parser=parser;this.name=EXTENSIONS.KHR_MATERIALS_TRANSMISSION;}GLTFMaterialsTransmissionExtension.prototype.getMaterialType=function(materialIndex){var parser=this.parser;var materialDef=parser.json.materials[materialIndex];if(!materialDef.extensions||!materialDef.extensions[this.name])return null;return MeshPhysicalMaterial;};GLTFMaterialsTransmissionExtension.prototype.extendMaterialParams=function(materialIndex,materialParams){var parser=this.parser;var materialDef=parser.json.materials[materialIndex];if(!materialDef.extensions||!materialDef.extensions[this.name]){return Promise.resolve();}var pending=[];var extension=materialDef.extensions[this.name];if(extension.transmissionFactor!==undefined){materialParams.transmission=extension.transmissionFactor;}if(extension.transmissionTexture!==undefined){pending.push(parser.assignTexture(materialParams,'transmissionMap',extension.transmissionTexture));}return Promise.all(pending);};function GLTFTextureBasisUExtension(parser){this.parser=parser;this.name=EXTENSIONS.KHR_TEXTURE_BASISU;}GLTFTextureBasisUExtension.prototype.loadTexture=function(textureIndex){var parser=this.parser;var json=parser.json;var textureDef=json.textures[textureIndex];if(!textureDef.extensions||!textureDef.extensions[this.name]){return null;}var extension=textureDef.extensions[this.name];var source=json.images[extension.source];var loader=parser.options.ktx2Loader;if(!loader){throw new Error('THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures');}return parser.loadTextureImage(textureIndex,source,loader);};var BINARY_EXTENSION_HEADER_MAGIC='glTF';var BINARY_EXTENSION_HEADER_LENGTH=12;var BINARY_EXTENSION_CHUNK_TYPES={JSON:0x4E4F534A,BIN:0x004E4942};function GLTFBinaryExtension(data){this.name=EXTENSIONS.KHR_BINARY_GLTF;this.content=null;this.body=null;var headerView=new DataView(data,0,BINARY_EXTENSION_HEADER_LENGTH);this.header={magic:LoaderUtils.decodeText(new Uint8Array(data.slice(0,4))),version:headerView.getUint32(4,true),length:headerView.getUint32(8,true)};if(this.header.magic!==BINARY_EXTENSION_HEADER_MAGIC){throw new Error('THREE.GLTFLoader: Unsupported glTF-Binary header.');}else if(this.header.version<2.0){throw new Error('THREE.GLTFLoader: Legacy binary file detected.');}var chunkView=new DataView(data,BINARY_EXTENSION_HEADER_LENGTH);var chunkIndex=0;while(chunkIndex<chunkView.byteLength){var chunkLength=chunkView.getUint32(chunkIndex,true);chunkIndex+=4;var chunkType=chunkView.getUint32(chunkIndex,true);chunkIndex+=4;if(chunkType===BINARY_EXTENSION_CHUNK_TYPES.JSON){var contentArray=new Uint8Array(data,BINARY_EXTENSION_HEADER_LENGTH+chunkIndex,chunkLength);this.content=LoaderUtils.decodeText(contentArray);}else if(chunkType===BINARY_EXTENSION_CHUNK_TYPES.BIN){var byteOffset=BINARY_EXTENSION_HEADER_LENGTH+chunkIndex;this.body=data.slice(byteOffset,byteOffset+chunkLength);}\nchunkIndex+=chunkLength;}if(this.content===null){throw new Error('THREE.GLTFLoader: JSON content not found.');}}function GLTFDracoMeshCompressionExtension(json,dracoLoader){if(!dracoLoader){throw new Error('THREE.GLTFLoader: No DRACOLoader instance provided.');}this.name=EXTENSIONS.KHR_DRACO_MESH_COMPRESSION;this.json=json;this.dracoLoader=dracoLoader;this.dracoLoader.preload();}GLTFDracoMeshCompressionExtension.prototype.decodePrimitive=function(primitive,parser){var json=this.json;var dracoLoader=this.dracoLoader;var bufferViewIndex=primitive.extensions[this.name].bufferView;var gltfAttributeMap=primitive.extensions[this.name].attributes;var threeAttributeMap={};var attributeNormalizedMap={};var attributeTypeMap={};for(var attributeName in gltfAttributeMap){var threeAttributeName=ATTRIBUTES[attributeName]||attributeName.toLowerCase();threeAttributeMap[threeAttributeName]=gltfAttributeMap[attributeName];}for(attributeName in primitive.attributes){var threeAttributeName=ATTRIBUTES[attributeName]||attributeName.toLowerCase();if(gltfAttributeMap[attributeName]!==undefined){var accessorDef=json.accessors[primitive.attributes[attributeName]];var componentType=WEBGL_COMPONENT_TYPES[accessorDef.componentType];attributeTypeMap[threeAttributeName]=componentType;attributeNormalizedMap[threeAttributeName]=accessorDef.normalized===true;}}return parser.getDependency('bufferView',bufferViewIndex).then(function(bufferView){return new Promise(function(resolve){dracoLoader.decodeDracoFile(bufferView,function(geometry){for(var attributeName in geometry.attributes){var attribute=geometry.attributes[attributeName];var normalized=attributeNormalizedMap[attributeName];if(normalized!==undefined)attribute.normalized=normalized;}resolve(geometry);},threeAttributeMap,attributeTypeMap);});});};function GLTFTextureTransformExtension(){this.name=EXTENSIONS.KHR_TEXTURE_TRANSFORM;}GLTFTextureTransformExtension.prototype.extendTexture=function(texture,transform){texture=texture.clone();if(transform.offset!==undefined){texture.offset.fromArray(transform.offset);}if(transform.rotation!==undefined){texture.rotation=transform.rotation;}if(transform.scale!==undefined){texture.repeat.fromArray(transform.scale);}if(transform.texCoord!==undefined){console.warn('THREE.GLTFLoader: Custom UV sets in \"'+this.name+'\" extension not yet supported.');}texture.needsUpdate=true;return texture;};function GLTFMeshStandardSGMaterial(params){MeshStandardMaterial.call(this);this.isGLTFSpecularGlossinessMaterial=true;var specularMapParsFragmentChunk=['#ifdef USE_SPECULARMAP',' uniform sampler2D specularMap;','#endif'].join('\\n');var glossinessMapParsFragmentChunk=['#ifdef USE_GLOSSINESSMAP',' uniform sampler2D glossinessMap;','#endif'].join('\\n');var specularMapFragmentChunk=['vec3 specularFactor = specular;','#ifdef USE_SPECULARMAP',' vec4 texelSpecular = texture2D( specularMap, vUv );',' texelSpecular = sRGBToLinear( texelSpecular );',' // reads channel RGB, compatible with a glTF Specular-Glossiness (RGBA) texture',' specularFactor *= texelSpecular.rgb;','#endif'].join('\\n');var glossinessMapFragmentChunk=['float glossinessFactor = glossiness;','#ifdef USE_GLOSSINESSMAP',' vec4 texelGlossiness = texture2D( glossinessMap, vUv );',' // reads channel A, compatible with a glTF Specular-Glossiness (RGBA) texture',' glossinessFactor *= texelGlossiness.a;','#endif'].join('\\n');var lightPhysicalFragmentChunk=['PhysicalMaterial material;','material.diffuseColor = diffuseColor.rgb * ( 1. - max( specularFactor.r, max( specularFactor.g, specularFactor.b ) ) );','vec3 dxy = max( abs( dFdx( geometryNormal ) ), abs( dFdy( geometryNormal ) ) );','float geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );','material.specularRoughness = max( 1.0 - glossinessFactor, 0.0525 ); // 0.0525 corresponds to the base mip of a 256 cubemap.','material.specularRoughness += geometryRoughness;','material.specularRoughness = min( material.specularRoughness, 1.0 );','material.specularColor = specularFactor;'].join('\\n');var uniforms={specular:{value:new Color().setHex(0xffffff)},glossiness:{value:1},specularMap:{value:null},glossinessMap:{value:null}};this._extraUniforms=uniforms;this.onBeforeCompile=function(shader){for(var uniformName in uniforms){shader.uniforms[uniformName]=uniforms[uniformName];}shader.fragmentShader=shader.fragmentShader.replace('uniform float roughness;','uniform vec3 specular;').replace('uniform float metalness;','uniform float glossiness;').replace('#include <roughnessmap_pars_fragment>',specularMapParsFragmentChunk).replace('#include <metalnessmap_pars_fragment>',glossinessMapParsFragmentChunk).replace('#include <roughnessmap_fragment>',specularMapFragmentChunk).replace('#include <metalnessmap_fragment>',glossinessMapFragmentChunk).replace('#include <lights_physical_fragment>',lightPhysicalFragmentChunk);};Object.defineProperties(this,{specular:{get:function get(){return uniforms.specular.value;},set:function set(v){uniforms.specular.value=v;}},specularMap:{get:function get(){return uniforms.specularMap.value;},set:function set(v){uniforms.specularMap.value=v;if(v){this.defines.USE_SPECULARMAP='';}else{delete this.defines.USE_SPECULARMAP;}}},glossiness:{get:function get(){return uniforms.glossiness.value;},set:function set(v){uniforms.glossiness.value=v;}},glossinessMap:{get:function get(){return uniforms.glossinessMap.value;},set:function set(v){uniforms.glossinessMap.value=v;if(v){this.defines.USE_GLOSSINESSMAP='';this.defines.USE_UV='';}else{delete this.defines.USE_GLOSSINESSMAP;delete this.defines.USE_UV;}}}});delete this.metalness;delete this.roughness;delete this.metalnessMap;delete this.roughnessMap;this.setValues(params);}GLTFMeshStandardSGMaterial.prototype=Object.create(MeshStandardMaterial.prototype);GLTFMeshStandardSGMaterial.prototype.constructor=GLTFMeshStandardSGMaterial;GLTFMeshStandardSGMaterial.prototype.copy=function(source){MeshStandardMaterial.prototype.copy.call(this,source);this.specularMap=source.specularMap;this.specular.copy(source.specular);this.glossinessMap=source.glossinessMap;this.glossiness=source.glossiness;delete this.metalness;delete this.roughness;delete this.metalnessMap;delete this.roughnessMap;return this;};function GLTFMaterialsPbrSpecularGlossinessExtension(){return{name:EXTENSIONS.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS,specularGlossinessParams:['color','map','lightMap','lightMapIntensity','aoMap','aoMapIntensity','emissive','emissiveIntensity','emissiveMap','bumpMap','bumpScale','normalMap','normalMapType','displacementMap','displacementScale','displacementBias','specularMap','specular','glossinessMap','glossiness','alphaMap','envMap','envMapIntensity','refractionRatio'],getMaterialType:function getMaterialType(){return GLTFMeshStandardSGMaterial;},extendParams:function extendParams(materialParams,materialDef,parser){var pbrSpecularGlossiness=materialDef.extensions[this.name];materialParams.color=new Color(1.0,1.0,1.0);materialParams.opacity=1.0;var pending=[];if(Array.isArray(pbrSpecularGlossiness.diffuseFactor)){var array=pbrSpecularGlossiness.diffuseFactor;materialParams.color.fromArray(array);materialParams.opacity=array[3];}if(pbrSpecularGlossiness.diffuseTexture!==undefined){pending.push(parser.assignTexture(materialParams,'map',pbrSpecularGlossiness.diffuseTexture));}materialParams.emissive=new Color(0.0,0.0,0.0);materialParams.glossiness=pbrSpecularGlossiness.glossinessFactor!==undefined?pbrSpecularGlossiness.glossinessFactor:1.0;materialParams.specular=new Color(1.0,1.0,1.0);if(Array.isArray(pbrSpecularGlossiness.specularFactor)){materialParams.specular.fromArray(pbrSpecularGlossiness.specularFactor);}if(pbrSpecularGlossiness.specularGlossinessTexture!==undefined){var specGlossMapDef=pbrSpecularGlossiness.specularGlossinessTexture;pending.push(parser.assignTexture(materialParams,'glossinessMap',specGlossMapDef));pending.push(parser.assignTexture(materialParams,'specularMap',specGlossMapDef));}return Promise.all(pending);},createMaterial:function createMaterial(materialParams){var material=new GLTFMeshStandardSGMaterial(materialParams);material.fog=true;material.color=materialParams.color;material.map=materialParams.map===undefined?null:materialParams.map;material.lightMap=null;material.lightMapIntensity=1.0;material.aoMap=materialParams.aoMap===undefined?null:materialParams.aoMap;material.aoMapIntensity=1.0;material.emissive=materialParams.emissive;material.emissiveIntensity=1.0;material.emissiveMap=materialParams.emissiveMap===undefined?null:materialParams.emissiveMap;material.bumpMap=materialParams.bumpMap===undefined?null:materialParams.bumpMap;material.bumpScale=1;material.normalMap=materialParams.normalMap===undefined?null:materialParams.normalMap;material.normalMapType=TangentSpaceNormalMap;if(materialParams.normalScale)material.normalScale=materialParams.normalScale;material.displacementMap=null;material.displacementScale=1;material.displacementBias=0;material.specularMap=materialParams.specularMap===undefined?null:materialParams.specularMap;material.specular=materialParams.specular;material.glossinessMap=materialParams.glossinessMap===undefined?null:materialParams.glossinessMap;material.glossiness=materialParams.glossiness;material.alphaMap=null;material.envMap=materialParams.envMap===undefined?null:materialParams.envMap;material.envMapIntensity=1.0;material.refractionRatio=0.98;return material;}};}function GLTFMeshQuantizationExtension(){this.name=EXTENSIONS.KHR_MESH_QUANTIZATION;}\nfunction GLTFCubicSplineInterpolant(parameterPositions,sampleValues,sampleSize,resultBuffer){Interpolant.call(this,parameterPositions,sampleValues,sampleSize,resultBuffer);}GLTFCubicSplineInterpolant.prototype=Object.create(Interpolant.prototype);GLTFCubicSplineInterpolant.prototype.constructor=GLTFCubicSplineInterpolant;GLTFCubicSplineInterpolant.prototype.copySampleValue_=function(index){var result=this.resultBuffer,values=this.sampleValues,valueSize=this.valueSize,offset=index*valueSize*3+valueSize;for(var i=0;i!==valueSize;i++){result[i]=values[offset+i];}return result;};GLTFCubicSplineInterpolant.prototype.beforeStart_=GLTFCubicSplineInterpolant.prototype.copySampleValue_;GLTFCubicSplineInterpolant.prototype.afterEnd_=GLTFCubicSplineInterpolant.prototype.copySampleValue_;GLTFCubicSplineInterpolant.prototype.interpolate_=function(i1,t0,t,t1){var result=this.resultBuffer;var values=this.sampleValues;var stride=this.valueSize;var stride2=stride*2;var stride3=stride*3;var td=t1-t0;var p=(t-t0)/td;var pp=p*p;var ppp=pp*p;var offset1=i1*stride3;var offset0=offset1-stride3;var s2=-2*ppp+3*pp;var s3=ppp-pp;var s0=1-s2;var s1=s3-pp+p;for(var i=0;i!==stride;i++){var p0=values[offset0+i+stride];var m0=values[offset0+i+stride2]*td;var p1=values[offset1+i+stride];var m1=values[offset1+i]*td;result[i]=s0*p0+s1*m0+s2*p1+s3*m1;}return result;};var WEBGL_CONSTANTS={FLOAT:5126,FLOAT_MAT3:35675,FLOAT_MAT4:35676,FLOAT_VEC2:35664,FLOAT_VEC3:35665,FLOAT_VEC4:35666,LINEAR:9729,REPEAT:10497,SAMPLER_2D:35678,POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6,UNSIGNED_BYTE:5121,UNSIGNED_SHORT:5123};var WEBGL_COMPONENT_TYPES={5120:Int8Array,5121:Uint8Array,5122:Int16Array,5123:Uint16Array,5125:Uint32Array,5126:Float32Array};var WEBGL_FILTERS={9728:NearestFilter,9729:LinearFilter,9984:NearestMipmapNearestFilter,9985:LinearMipmapNearestFilter,9986:NearestMipmapLinearFilter,9987:LinearMipmapLinearFilter};var WEBGL_WRAPPINGS={33071:ClampToEdgeWrapping,33648:MirroredRepeatWrapping,10497:RepeatWrapping};var WEBGL_TYPE_SIZES={'SCALAR':1,'VEC2':2,'VEC3':3,'VEC4':4,'MAT2':4,'MAT3':9,'MAT4':16};var ATTRIBUTES={POSITION:'position',NORMAL:'normal',TANGENT:'tangent',TEXCOORD_0:'uv',TEXCOORD_1:'uv2',COLOR_0:'color',WEIGHTS_0:'skinWeight',JOINTS_0:'skinIndex'};var PATH_PROPERTIES={scale:'scale',translation:'position',rotation:'quaternion',weights:'morphTargetInfluences'};var INTERPOLATION={CUBICSPLINE:undefined,LINEAR:InterpolateLinear,STEP:InterpolateDiscrete};var ALPHA_MODES={OPAQUE:'OPAQUE',MASK:'MASK',BLEND:'BLEND'};function resolveURL(url,path){if(typeof url!=='string'||url==='')return'';if(/^https?:\\/\\//i.test(path)&&/^\\//.test(url)){path=path.replace(/(^https?:\\/\\/[^\\/]+).*/i,'$1');}\nif(/^(https?:)?\\/\\//i.test(url))return url;if(/^data:.*,.*$/i.test(url))return url;if(/^blob:.*$/i.test(url))return url;return path+url;}function createDefaultMaterial(cache){if(cache['DefaultMaterial']===undefined){cache['DefaultMaterial']=new MeshStandardMaterial({color:0xFFFFFF,emissive:0x000000,metalness:1,roughness:1,transparent:false,depthTest:true,side:FrontSide});}return cache['DefaultMaterial'];}function addUnknownExtensionsToUserData(knownExtensions,object,objectDef){for(var name in objectDef.extensions){if(knownExtensions[name]===undefined){object.userData.gltfExtensions=object.userData.gltfExtensions||{};object.userData.gltfExtensions[name]=objectDef.extensions[name];}}}function assignExtrasToUserData(object,gltfDef){if(gltfDef.extras!==undefined){if(_typeof(gltfDef.extras)==='object'){Object.assign(object.userData,gltfDef.extras);}else{console.warn('THREE.GLTFLoader: Ignoring primitive type .extras, '+gltfDef.extras);}}}function addMorphTargets(geometry,targets,parser){var hasMorphPosition=false;var hasMorphNormal=false;for(var i=0,il=targets.length;i<il;i++){var target=targets[i];if(target.POSITION!==undefined)hasMorphPosition=true;if(target.NORMAL!==undefined)hasMorphNormal=true;if(hasMorphPosition&&hasMorphNormal)break;}if(!hasMorphPosition&&!hasMorphNormal)return Promise.resolve(geometry);var pendingPositionAccessors=[];var pendingNormalAccessors=[];for(var i=0,il=targets.length;i<il;i++){var target=targets[i];if(hasMorphPosition){var pendingAccessor=target.POSITION!==undefined?parser.getDependency('accessor',target.POSITION):geometry.attributes.position;pendingPositionAccessors.push(pendingAccessor);}if(hasMorphNormal){var pendingAccessor=target.NORMAL!==undefined?parser.getDependency('accessor',target.NORMAL):geometry.attributes.normal;pendingNormalAccessors.push(pendingAccessor);}}return Promise.all([Promise.all(pendingPositionAccessors),Promise.all(pendingNormalAccessors)]).then(function(accessors){var morphPositions=accessors[0];var morphNormals=accessors[1];if(hasMorphPosition)geometry.morphAttributes.position=morphPositions;if(hasMorphNormal)geometry.morphAttributes.normal=morphNormals;geometry.morphTargetsRelative=true;return geometry;});}function updateMorphTargets(mesh,meshDef){mesh.updateMorphTargets();if(meshDef.weights!==undefined){for(var i=0,il=meshDef.weights.length;i<il;i++){mesh.morphTargetInfluences[i]=meshDef.weights[i];}}\nif(meshDef.extras&&Array.isArray(meshDef.extras.targetNames)){var targetNames=meshDef.extras.targetNames;if(mesh.morphTargetInfluences.length===targetNames.length){mesh.morphTargetDictionary={};for(var i=0,il=targetNames.length;i<il;i++){mesh.morphTargetDictionary[targetNames[i]]=i;}}else{console.warn('THREE.GLTFLoader: Invalid extras.targetNames length. Ignoring names.');}}}function createPrimitiveKey(primitiveDef){var dracoExtension=primitiveDef.extensions&&primitiveDef.extensions[EXTENSIONS.KHR_DRACO_MESH_COMPRESSION];var geometryKey;if(dracoExtension){geometryKey='draco:'+dracoExtension.bufferView+':'+dracoExtension.indices+':'+createAttributesKey(dracoExtension.attributes);}else{geometryKey=primitiveDef.indices+':'+createAttributesKey(primitiveDef.attributes)+':'+primitiveDef.mode;}return geometryKey;}function createAttributesKey(attributes){var attributesKey='';var keys=Object.keys(attributes).sort();for(var i=0,il=keys.length;i<il;i++){attributesKey+=keys[i]+':'+attributes[keys[i]]+';';}return attributesKey;}function GLTFParser(json,options){this.json=json||{};this.extensions={};this.plugins={};this.options=options||{};this.cache=new GLTFRegistry();this.associations=new Map();this.primitiveCache={};this.meshCache={refs:{},uses:{}};this.cameraCache={refs:{},uses:{}};this.lightCache={refs:{},uses:{}};this.nodeNamesUsed={};if(typeof createImageBitmap!=='undefined'&&/Firefox/.test(navigator.userAgent)===false){this.textureLoader=new ImageBitmapLoader(this.options.manager);}else{this.textureLoader=new TextureLoader(this.options.manager);}this.textureLoader.setCrossOrigin(this.options.crossOrigin);this.fileLoader=new FileLoader(this.options.manager);this.fileLoader.setResponseType('arraybuffer');if(this.options.crossOrigin==='use-credentials'){this.fileLoader.setWithCredentials(true);}}GLTFParser.prototype.setExtensions=function(extensions){this.extensions=extensions;};GLTFParser.prototype.setPlugins=function(plugins){this.plugins=plugins;};GLTFParser.prototype.parse=function(onLoad,onError){var parser=this;var json=this.json;var extensions=this.extensions;this.cache.removeAll();this._invokeAll(function(ext){return ext._markDefs&&ext._markDefs();});Promise.all([this.getDependencies('scene'),this.getDependencies('animation'),this.getDependencies('camera')]).then(function(dependencies){var result={scene:dependencies[0][json.scene||0],scenes:dependencies[0],animations:dependencies[1],cameras:dependencies[2],asset:json.asset,parser:parser,userData:{}};addUnknownExtensionsToUserData(extensions,result,json);assignExtrasToUserData(result,json);onLoad(result);}).catch(onError);};GLTFParser.prototype._markDefs=function(){var nodeDefs=this.json.nodes||[];var skinDefs=this.json.skins||[];var meshDefs=this.json.meshes||[];for(var skinIndex=0,skinLength=skinDefs.length;skinIndex<skinLength;skinIndex++){var joints=skinDefs[skinIndex].joints;for(var i=0,il=joints.length;i<il;i++){nodeDefs[joints[i]].isBone=true;}}\nfor(var nodeIndex=0,nodeLength=nodeDefs.length;nodeIndex<nodeLength;nodeIndex++){var nodeDef=nodeDefs[nodeIndex];if(nodeDef.mesh!==undefined){this._addNodeRef(this.meshCache,nodeDef.mesh);if(nodeDef.skin!==undefined){meshDefs[nodeDef.mesh].isSkinnedMesh=true;}}if(nodeDef.camera!==undefined){this._addNodeRef(this.cameraCache,nodeDef.camera);}}};GLTFParser.prototype._addNodeRef=function(cache,index){if(index===undefined)return;if(cache.refs[index]===undefined){cache.refs[index]=cache.uses[index]=0;}cache.refs[index]++;};GLTFParser.prototype._getNodeRef=function(cache,index,object){if(cache.refs[index]<=1)return object;var ref=object.clone();ref.name+='_instance_'+cache.uses[index]++;return ref;};GLTFParser.prototype._invokeOne=function(func){var extensions=Object.values(this.plugins);extensions.push(this);for(var i=0;i<extensions.length;i++){var result=func(extensions[i]);if(result)return result;}};GLTFParser.prototype._invokeAll=function(func){var extensions=Object.values(this.plugins);extensions.unshift(this);var pending=[];for(var i=0;i<extensions.length;i++){var result=func(extensions[i]);if(result)pending.push(result);}return pending;};GLTFParser.prototype.getDependency=function(type,index){var cacheKey=type+':'+index;var dependency=this.cache.get(cacheKey);if(!dependency){switch(type){case'scene':dependency=this.loadScene(index);break;case'node':dependency=this.loadNode(index);break;case'mesh':dependency=this._invokeOne(function(ext){return ext.loadMesh&&ext.loadMesh(index);});break;case'accessor':dependency=this.loadAccessor(index);break;case'bufferView':dependency=this._invokeOne(function(ext){return ext.loadBufferView&&ext.loadBufferView(index);});break;case'buffer':dependency=this.loadBuffer(index);break;case'material':dependency=this._invokeOne(function(ext){return ext.loadMaterial&&ext.loadMaterial(index);});break;case'texture':dependency=this._invokeOne(function(ext){return ext.loadTexture&&ext.loadTexture(index);});break;case'skin':dependency=this.loadSkin(index);break;case'animation':dependency=this.loadAnimation(index);break;case'camera':dependency=this.loadCamera(index);break;default:throw new Error('Unknown type: '+type);}this.cache.add(cacheKey,dependency);}return dependency;};GLTFParser.prototype.getDependencies=function(type){var dependencies=this.cache.get(type);if(!dependencies){var parser=this;var defs=this.json[type+(type==='mesh'?'es':'s')]||[];dependencies=Promise.all(defs.map(function(def,index){return parser.getDependency(type,index);}));this.cache.add(type,dependencies);}return dependencies;};GLTFParser.prototype.loadBuffer=function(bufferIndex){var bufferDef=this.json.buffers[bufferIndex];var loader=this.fileLoader;if(bufferDef.type&&bufferDef.type!=='arraybuffer'){throw new Error('THREE.GLTFLoader: '+bufferDef.type+' buffer type is not supported.');}\nif(bufferDef.uri===undefined&&bufferIndex===0){return Promise.resolve(this.extensions[EXTENSIONS.KHR_BINARY_GLTF].body);}var options=this.options;return new Promise(function(resolve,reject){loader.load(resolveURL(bufferDef.uri,options.path),resolve,undefined,function(){reject(new Error('THREE.GLTFLoader: Failed to load buffer \"'+bufferDef.uri+'\".'));});});};GLTFParser.prototype.loadBufferView=function(bufferViewIndex){var bufferViewDef=this.json.bufferViews[bufferViewIndex];return this.getDependency('buffer',bufferViewDef.buffer).then(function(buffer){var byteLength=bufferViewDef.byteLength||0;var byteOffset=bufferViewDef.byteOffset||0;return buffer.slice(byteOffset,byteOffset+byteLength);});};GLTFParser.prototype.loadAccessor=function(accessorIndex){var parser=this;var json=this.json;var accessorDef=this.json.accessors[accessorIndex];if(accessorDef.bufferView===undefined&&accessorDef.sparse===undefined){return Promise.resolve(null);}var pendingBufferViews=[];if(accessorDef.bufferView!==undefined){pendingBufferViews.push(this.getDependency('bufferView',accessorDef.bufferView));}else{pendingBufferViews.push(null);}if(accessorDef.sparse!==undefined){pendingBufferViews.push(this.getDependency('bufferView',accessorDef.sparse.indices.bufferView));pendingBufferViews.push(this.getDependency('bufferView',accessorDef.sparse.values.bufferView));}return Promise.all(pendingBufferViews).then(function(bufferViews){var bufferView=bufferViews[0];var itemSize=WEBGL_TYPE_SIZES[accessorDef.type];var TypedArray=WEBGL_COMPONENT_TYPES[accessorDef.componentType];var elementBytes=TypedArray.BYTES_PER_ELEMENT;var itemBytes=elementBytes*itemSize;var byteOffset=accessorDef.byteOffset||0;var byteStride=accessorDef.bufferView!==undefined?json.bufferViews[accessorDef.bufferView].byteStride:undefined;var normalized=accessorDef.normalized===true;var array,bufferAttribute;if(byteStride&&byteStride!==itemBytes){var ibSlice=Math.floor(byteOffset/byteStride);var ibCacheKey='InterleavedBuffer:'+accessorDef.bufferView+':'+accessorDef.componentType+':'+ibSlice+':'+accessorDef.count;var ib=parser.cache.get(ibCacheKey);if(!ib){array=new TypedArray(bufferView,ibSlice*byteStride,accessorDef.count*byteStride/elementBytes);ib=new InterleavedBuffer(array,byteStride/elementBytes);parser.cache.add(ibCacheKey,ib);}bufferAttribute=new InterleavedBufferAttribute(ib,itemSize,byteOffset%byteStride/elementBytes,normalized);}else{if(bufferView===null){array=new TypedArray(accessorDef.count*itemSize);}else{array=new TypedArray(bufferView,byteOffset,accessorDef.count*itemSize);}bufferAttribute=new BufferAttribute(array,itemSize,normalized);}\nif(accessorDef.sparse!==undefined){var itemSizeIndices=WEBGL_TYPE_SIZES.SCALAR;var TypedArrayIndices=WEBGL_COMPONENT_TYPES[accessorDef.sparse.indices.componentType];var byteOffsetIndices=accessorDef.sparse.indices.byteOffset||0;var byteOffsetValues=accessorDef.sparse.values.byteOffset||0;var sparseIndices=new TypedArrayIndices(bufferViews[1],byteOffsetIndices,accessorDef.sparse.count*itemSizeIndices);var sparseValues=new TypedArray(bufferViews[2],byteOffsetValues,accessorDef.sparse.count*itemSize);if(bufferView!==null){bufferAttribute=new BufferAttribute(bufferAttribute.array.slice(),bufferAttribute.itemSize,bufferAttribute.normalized);}for(var i=0,il=sparseIndices.length;i<il;i++){var index=sparseIndices[i];bufferAttribute.setX(index,sparseValues[i*itemSize]);if(itemSize>=2)bufferAttribute.setY(index,sparseValues[i*itemSize+1]);if(itemSize>=3)bufferAttribute.setZ(index,sparseValues[i*itemSize+2]);if(itemSize>=4)bufferAttribute.setW(index,sparseValues[i*itemSize+3]);if(itemSize>=5)throw new Error('THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.');}}return bufferAttribute;});};GLTFParser.prototype.loadTexture=function(textureIndex){var parser=this;var json=this.json;var options=this.options;var textureDef=json.textures[textureIndex];var textureExtensions=textureDef.extensions||{};var source;if(textureExtensions[EXTENSIONS.MSFT_TEXTURE_DDS]){source=json.images[textureExtensions[EXTENSIONS.MSFT_TEXTURE_DDS].source];}else{source=json.images[textureDef.source];}var loader;if(source.uri){loader=options.manager.getHandler(source.uri);}if(!loader){loader=textureExtensions[EXTENSIONS.MSFT_TEXTURE_DDS]?parser.extensions[EXTENSIONS.MSFT_TEXTURE_DDS].ddsLoader:this.textureLoader;}return this.loadTextureImage(textureIndex,source,loader);};GLTFParser.prototype.loadTextureImage=function(textureIndex,source,loader){var parser=this;var json=this.json;var options=this.options;var textureDef=json.textures[textureIndex];var URL=self.URL||self.webkitURL;var sourceURI=source.uri;var isObjectURL=false;var hasAlpha=true;if(source.mimeType==='image/jpeg')hasAlpha=false;if(source.bufferView!==undefined){sourceURI=parser.getDependency('bufferView',source.bufferView).then(function(bufferView){if(source.mimeType==='image/png'){var colorType=new DataView(bufferView,25,1).getUint8(0,false);hasAlpha=colorType===6||colorType===4||colorType===3;}isObjectURL=true;var blob=new Blob([bufferView],{type:source.mimeType});sourceURI=URL.createObjectURL(blob);return sourceURI;});}return Promise.resolve(sourceURI).then(function(sourceURI){return new Promise(function(resolve,reject){var onLoad=resolve;if(loader.isImageBitmapLoader===true){onLoad=function onLoad(imageBitmap){resolve(new CanvasTexture(imageBitmap));};}loader.load(resolveURL(sourceURI,options.path),onLoad,undefined,reject);});}).then(function(texture){if(isObjectURL===true){URL.revokeObjectURL(sourceURI);}texture.flipY=false;if(textureDef.name)texture.name=textureDef.name;if(!hasAlpha)texture.format=RGBFormat;var samplers=json.samplers||{};var sampler=samplers[textureDef.sampler]||{};texture.magFilter=WEBGL_FILTERS[sampler.magFilter]||LinearFilter;texture.minFilter=WEBGL_FILTERS[sampler.minFilter]||LinearMipmapLinearFilter;texture.wrapS=WEBGL_WRAPPINGS[sampler.wrapS]||RepeatWrapping;texture.wrapT=WEBGL_WRAPPINGS[sampler.wrapT]||RepeatWrapping;parser.associations.set(texture,{type:'textures',index:textureIndex});return texture;});};GLTFParser.prototype.assignTexture=function(materialParams,mapName,mapDef){var parser=this;return this.getDependency('texture',mapDef.index).then(function(texture){if(mapDef.texCoord!==undefined&&mapDef.texCoord!=0&&!(mapName==='aoMap'&&mapDef.texCoord==1)){console.warn('THREE.GLTFLoader: Custom UV set '+mapDef.texCoord+' for texture '+mapName+' not yet supported.');}if(parser.extensions[EXTENSIONS.KHR_TEXTURE_TRANSFORM]){var transform=mapDef.extensions!==undefined?mapDef.extensions[EXTENSIONS.KHR_TEXTURE_TRANSFORM]:undefined;if(transform){var gltfReference=parser.associations.get(texture);texture=parser.extensions[EXTENSIONS.KHR_TEXTURE_TRANSFORM].extendTexture(texture,transform);parser.associations.set(texture,gltfReference);}}materialParams[mapName]=texture;});};GLTFParser.prototype.assignFinalMaterial=function(mesh){var geometry=mesh.geometry;var material=mesh.material;var useVertexTangents=geometry.attributes.tangent!==undefined;var useVertexColors=geometry.attributes.color!==undefined;var useFlatShading=geometry.attributes.normal===undefined;var useSkinning=mesh.isSkinnedMesh===true;var useMorphTargets=Object.keys(geometry.morphAttributes).length>0;var useMorphNormals=useMorphTargets&&geometry.morphAttributes.normal!==undefined;if(mesh.isPoints){var cacheKey='PointsMaterial:'+material.uuid;var pointsMaterial=this.cache.get(cacheKey);if(!pointsMaterial){pointsMaterial=new PointsMaterial();Material.prototype.copy.call(pointsMaterial,material);pointsMaterial.color.copy(material.color);pointsMaterial.map=material.map;pointsMaterial.sizeAttenuation=false;this.cache.add(cacheKey,pointsMaterial);}material=pointsMaterial;}else if(mesh.isLine){var cacheKey='LineBasicMaterial:'+material.uuid;var lineMaterial=this.cache.get(cacheKey);if(!lineMaterial){lineMaterial=new LineBasicMaterial();Material.prototype.copy.call(lineMaterial,material);lineMaterial.color.copy(material.color);this.cache.add(cacheKey,lineMaterial);}material=lineMaterial;}\nif(useVertexTangents||useVertexColors||useFlatShading||useSkinning||useMorphTargets){var cacheKey='ClonedMaterial:'+material.uuid+':';if(material.isGLTFSpecularGlossinessMaterial)cacheKey+='specular-glossiness:';if(useSkinning)cacheKey+='skinning:';if(useVertexTangents)cacheKey+='vertex-tangents:';if(useVertexColors)cacheKey+='vertex-colors:';if(useFlatShading)cacheKey+='flat-shading:';if(useMorphTargets)cacheKey+='morph-targets:';if(useMorphNormals)cacheKey+='morph-normals:';var cachedMaterial=this.cache.get(cacheKey);if(!cachedMaterial){cachedMaterial=material.clone();if(useSkinning)cachedMaterial.skinning=true;if(useVertexTangents)cachedMaterial.vertexTangents=true;if(useVertexColors)cachedMaterial.vertexColors=true;if(useFlatShading)cachedMaterial.flatShading=true;if(useMorphTargets)cachedMaterial.morphTargets=true;if(useMorphNormals)cachedMaterial.morphNormals=true;this.cache.add(cacheKey,cachedMaterial);this.associations.set(cachedMaterial,this.associations.get(material));}material=cachedMaterial;}\nif(material.aoMap&&geometry.attributes.uv2===undefined&&geometry.attributes.uv!==undefined){geometry.setAttribute('uv2',geometry.attributes.uv);}\nif(material.normalScale&&!useVertexTangents){material.normalScale.y=-material.normalScale.y;}if(material.clearcoatNormalScale&&!useVertexTangents){material.clearcoatNormalScale.y=-material.clearcoatNormalScale.y;}mesh.material=material;};GLTFParser.prototype.getMaterialType=function(){return MeshStandardMaterial;};GLTFParser.prototype.loadMaterial=function(materialIndex){var parser=this;var json=this.json;var extensions=this.extensions;var materialDef=json.materials[materialIndex];var materialType;var materialParams={};var materialExtensions=materialDef.extensions||{};var pending=[];if(materialExtensions[EXTENSIONS.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS]){var sgExtension=extensions[EXTENSIONS.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS];materialType=sgExtension.getMaterialType();pending.push(sgExtension.extendParams(materialParams,materialDef,parser));}else if(materialExtensions[EXTENSIONS.KHR_MATERIALS_UNLIT]){var kmuExtension=extensions[EXTENSIONS.KHR_MATERIALS_UNLIT];materialType=kmuExtension.getMaterialType();pending.push(kmuExtension.extendParams(materialParams,materialDef,parser));}else{var metallicRoughness=materialDef.pbrMetallicRoughness||{};materialParams.color=new Color(1.0,1.0,1.0);materialParams.opacity=1.0;if(Array.isArray(metallicRoughness.baseColorFactor)){var array=metallicRoughness.baseColorFactor;materialParams.color.fromArray(array);materialParams.opacity=array[3];}if(metallicRoughness.baseColorTexture!==undefined){pending.push(parser.assignTexture(materialParams,'map',metallicRoughness.baseColorTexture));}materialParams.metalness=metallicRoughness.metallicFactor!==undefined?metallicRoughness.metallicFactor:1.0;materialParams.roughness=metallicRoughness.roughnessFactor!==undefined?metallicRoughness.roughnessFactor:1.0;if(metallicRoughness.metallicRoughnessTexture!==undefined){pending.push(parser.assignTexture(materialParams,'metalnessMap',metallicRoughness.metallicRoughnessTexture));pending.push(parser.assignTexture(materialParams,'roughnessMap',metallicRoughness.metallicRoughnessTexture));}materialType=this._invokeOne(function(ext){return ext.getMaterialType&&ext.getMaterialType(materialIndex);});pending.push(Promise.all(this._invokeAll(function(ext){return ext.extendMaterialParams&&ext.extendMaterialParams(materialIndex,materialParams);})));}if(materialDef.doubleSided===true){materialParams.side=DoubleSide;}var alphaMode=materialDef.alphaMode||ALPHA_MODES.OPAQUE;if(alphaMode===ALPHA_MODES.BLEND){materialParams.transparent=true;materialParams.depthWrite=false;}else{materialParams.transparent=false;if(alphaMode===ALPHA_MODES.MASK){materialParams.alphaTest=materialDef.alphaCutoff!==undefined?materialDef.alphaCutoff:0.5;}}if(materialDef.normalTexture!==undefined&&materialType!==MeshBasicMaterial){pending.push(parser.assignTexture(materialParams,'normalMap',materialDef.normalTexture));materialParams.normalScale=new Vector2(1,1);if(materialDef.normalTexture.scale!==undefined){materialParams.normalScale.set(materialDef.normalTexture.scale,materialDef.normalTexture.scale);}}if(materialDef.occlusionTexture!==undefined&&materialType!==MeshBasicMaterial){pending.push(parser.assignTexture(materialParams,'aoMap',materialDef.occlusionTexture));if(materialDef.occlusionTexture.strength!==undefined){materialParams.aoMapIntensity=materialDef.occlusionTexture.strength;}}if(materialDef.emissiveFactor!==undefined&&materialType!==MeshBasicMaterial){materialParams.emissive=new Color().fromArray(materialDef.emissiveFactor);}if(materialDef.emissiveTexture!==undefined&&materialType!==MeshBasicMaterial){pending.push(parser.assignTexture(materialParams,'emissiveMap',materialDef.emissiveTexture));}return Promise.all(pending).then(function(){var material;if(materialType===GLTFMeshStandardSGMaterial){material=extensions[EXTENSIONS.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS].createMaterial(materialParams);}else{material=new materialType(materialParams);}if(materialDef.name)material.name=materialDef.name;if(material.map)material.map.encoding=sRGBEncoding;if(material.emissiveMap)material.emissiveMap.encoding=sRGBEncoding;assignExtrasToUserData(material,materialDef);parser.associations.set(material,{type:'materials',index:materialIndex});if(materialDef.extensions)addUnknownExtensionsToUserData(extensions,material,materialDef);return material;});};GLTFParser.prototype.createUniqueName=function(originalName){var name=PropertyBinding.sanitizeNodeName(originalName||'');for(var i=1;this.nodeNamesUsed[name];++i){name=originalName+'_'+i;}this.nodeNamesUsed[name]=true;return name;};function computeBounds(geometry,primitiveDef,parser){var attributes=primitiveDef.attributes;var box=new Box3();if(attributes.POSITION!==undefined){var accessor=parser.json.accessors[attributes.POSITION];var min=accessor.min;var max=accessor.max;if(min!==undefined&&max!==undefined){box.set(new Vector3(min[0],min[1],min[2]),new Vector3(max[0],max[1],max[2]));}else{console.warn('THREE.GLTFLoader: Missing min/max properties for accessor POSITION.');return;}}else{return;}var targets=primitiveDef.targets;if(targets!==undefined){var maxDisplacement=new Vector3();var vector=new Vector3();for(var i=0,il=targets.length;i<il;i++){var target=targets[i];if(target.POSITION!==undefined){var accessor=parser.json.accessors[target.POSITION];var min=accessor.min;var max=accessor.max;if(min!==undefined&&max!==undefined){vector.setX(Math.max(Math.abs(min[0]),Math.abs(max[0])));vector.setY(Math.max(Math.abs(min[1]),Math.abs(max[1])));vector.setZ(Math.max(Math.abs(min[2]),Math.abs(max[2])));maxDisplacement.max(vector);}else{console.warn('THREE.GLTFLoader: Missing min/max properties for accessor POSITION.');}}}\nbox.expandByVector(maxDisplacement);}geometry.boundingBox=box;var sphere=new Sphere();box.getCenter(sphere.center);sphere.radius=box.min.distanceTo(box.max)/2;geometry.boundingSphere=sphere;}function addPrimitiveAttributes(geometry,primitiveDef,parser){var attributes=primitiveDef.attributes;var pending=[];function assignAttributeAccessor(accessorIndex,attributeName){return parser.getDependency('accessor',accessorIndex).then(function(accessor){geometry.setAttribute(attributeName,accessor);});}for(var gltfAttributeName in attributes){var threeAttributeName=ATTRIBUTES[gltfAttributeName]||gltfAttributeName.toLowerCase();if(threeAttributeName in geometry.attributes)continue;pending.push(assignAttributeAccessor(attributes[gltfAttributeName],threeAttributeName));}if(primitiveDef.indices!==undefined&&!geometry.index){var accessor=parser.getDependency('accessor',primitiveDef.indices).then(function(accessor){geometry.setIndex(accessor);});pending.push(accessor);}assignExtrasToUserData(geometry,primitiveDef);computeBounds(geometry,primitiveDef,parser);return Promise.all(pending).then(function(){return primitiveDef.targets!==undefined?addMorphTargets(geometry,primitiveDef.targets,parser):geometry;});}function toTrianglesDrawMode(geometry,drawMode){var index=geometry.getIndex();if(index===null){var indices=[];var position=geometry.getAttribute('position');if(position!==undefined){for(var i=0;i<position.count;i++){indices.push(i);}geometry.setIndex(indices);index=geometry.getIndex();}else{console.error('THREE.GLTFLoader.toTrianglesDrawMode(): Undefined position attribute. Processing not possible.');return geometry;}}\nvar numberOfTriangles=index.count-2;var newIndices=[];if(drawMode===TriangleFanDrawMode){for(var i=1;i<=numberOfTriangles;i++){newIndices.push(index.getX(0));newIndices.push(index.getX(i));newIndices.push(index.getX(i+1));}}else{for(var i=0;i<numberOfTriangles;i++){if(i%2===0){newIndices.push(index.getX(i));newIndices.push(index.getX(i+1));newIndices.push(index.getX(i+2));}else{newIndices.push(index.getX(i+2));newIndices.push(index.getX(i+1));newIndices.push(index.getX(i));}}}if(newIndices.length/3!==numberOfTriangles){console.error('THREE.GLTFLoader.toTrianglesDrawMode(): Unable to generate correct amount of triangles.');}\nvar newGeometry=geometry.clone();newGeometry.setIndex(newIndices);return newGeometry;}GLTFParser.prototype.loadGeometries=function(primitives){var parser=this;var extensions=this.extensions;var cache=this.primitiveCache;function createDracoPrimitive(primitive){return extensions[EXTENSIONS.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(primitive,parser).then(function(geometry){return addPrimitiveAttributes(geometry,primitive,parser);});}var pending=[];for(var i=0,il=primitives.length;i<il;i++){var primitive=primitives[i];var cacheKey=createPrimitiveKey(primitive);var cached=cache[cacheKey];if(cached){pending.push(cached.promise);}else{var geometryPromise;if(primitive.extensions&&primitive.extensions[EXTENSIONS.KHR_DRACO_MESH_COMPRESSION]){geometryPromise=createDracoPrimitive(primitive);}else{geometryPromise=addPrimitiveAttributes(new BufferGeometry(),primitive,parser);}\ncache[cacheKey]={primitive:primitive,promise:geometryPromise};pending.push(geometryPromise);}}return Promise.all(pending);};GLTFParser.prototype.loadMesh=function(meshIndex){var parser=this;var json=this.json;var meshDef=json.meshes[meshIndex];var primitives=meshDef.primitives;var pending=[];for(var i=0,il=primitives.length;i<il;i++){var material=primitives[i].material===undefined?createDefaultMaterial(this.cache):this.getDependency('material',primitives[i].material);pending.push(material);}pending.push(parser.loadGeometries(primitives));return Promise.all(pending).then(function(results){var materials=results.slice(0,results.length-1);var geometries=results[results.length-1];var meshes=[];for(var i=0,il=geometries.length;i<il;i++){var geometry=geometries[i];var primitive=primitives[i];var mesh;var material=materials[i];if(primitive.mode===WEBGL_CONSTANTS.TRIANGLES||primitive.mode===WEBGL_CONSTANTS.TRIANGLE_STRIP||primitive.mode===WEBGL_CONSTANTS.TRIANGLE_FAN||primitive.mode===undefined){mesh=meshDef.isSkinnedMesh===true?new SkinnedMesh(geometry,material):new Mesh(geometry,material);if(mesh.isSkinnedMesh===true&&!mesh.geometry.attributes.skinWeight.normalized){mesh.normalizeSkinWeights();}if(primitive.mode===WEBGL_CONSTANTS.TRIANGLE_STRIP){mesh.geometry=toTrianglesDrawMode(mesh.geometry,TriangleStripDrawMode);}else if(primitive.mode===WEBGL_CONSTANTS.TRIANGLE_FAN){mesh.geometry=toTrianglesDrawMode(mesh.geometry,TriangleFanDrawMode);}}else if(primitive.mode===WEBGL_CONSTANTS.LINES){mesh=new LineSegments(geometry,material);}else if(primitive.mode===WEBGL_CONSTANTS.LINE_STRIP){mesh=new Line(geometry,material);}else if(primitive.mode===WEBGL_CONSTANTS.LINE_LOOP){mesh=new LineLoop(geometry,material);}else if(primitive.mode===WEBGL_CONSTANTS.POINTS){mesh=new Points(geometry,material);}else{throw new Error('THREE.GLTFLoader: Primitive mode unsupported: '+primitive.mode);}if(Object.keys(mesh.geometry.morphAttributes).length>0){updateMorphTargets(mesh,meshDef);}mesh.name=parser.createUniqueName(meshDef.name||'mesh_'+meshIndex);if(geometries.length>1)mesh.name+='_'+i;assignExtrasToUserData(mesh,meshDef);parser.assignFinalMaterial(mesh);meshes.push(mesh);}if(meshes.length===1){return meshes[0];}var group=new Group();for(var i=0,il=meshes.length;i<il;i++){group.add(meshes[i]);}return group;});};GLTFParser.prototype.loadCamera=function(cameraIndex){var camera;var cameraDef=this.json.cameras[cameraIndex];var params=cameraDef[cameraDef.type];if(!params){console.warn('THREE.GLTFLoader: Missing camera parameters.');return;}if(cameraDef.type==='perspective'){camera=new PerspectiveCamera(MathUtils.radToDeg(params.yfov),params.aspectRatio||1,params.znear||1,params.zfar||2e6);}else if(cameraDef.type==='orthographic'){camera=new OrthographicCamera(-params.xmag,params.xmag,params.ymag,-params.ymag,params.znear,params.zfar);}if(cameraDef.name)camera.name=this.createUniqueName(cameraDef.name);assignExtrasToUserData(camera,cameraDef);return Promise.resolve(camera);};GLTFParser.prototype.loadSkin=function(skinIndex){var skinDef=this.json.skins[skinIndex];var skinEntry={joints:skinDef.joints};if(skinDef.inverseBindMatrices===undefined){return Promise.resolve(skinEntry);}return this.getDependency('accessor',skinDef.inverseBindMatrices).then(function(accessor){skinEntry.inverseBindMatrices=accessor;return skinEntry;});};GLTFParser.prototype.loadAnimation=function(animationIndex){var json=this.json;var animationDef=json.animations[animationIndex];var pendingNodes=[];var pendingInputAccessors=[];var pendingOutputAccessors=[];var pendingSamplers=[];var pendingTargets=[];for(var i=0,il=animationDef.channels.length;i<il;i++){var channel=animationDef.channels[i];var sampler=animationDef.samplers[channel.sampler];var target=channel.target;var name=target.node!==undefined?target.node:target.id;var input=animationDef.parameters!==undefined?animationDef.parameters[sampler.input]:sampler.input;var output=animationDef.parameters!==undefined?animationDef.parameters[sampler.output]:sampler.output;pendingNodes.push(this.getDependency('node',name));pendingInputAccessors.push(this.getDependency('accessor',input));pendingOutputAccessors.push(this.getDependency('accessor',output));pendingSamplers.push(sampler);pendingTargets.push(target);}return Promise.all([Promise.all(pendingNodes),Promise.all(pendingInputAccessors),Promise.all(pendingOutputAccessors),Promise.all(pendingSamplers),Promise.all(pendingTargets)]).then(function(dependencies){var nodes=dependencies[0];var inputAccessors=dependencies[1];var outputAccessors=dependencies[2];var samplers=dependencies[3];var targets=dependencies[4];var tracks=[];for(var i=0,il=nodes.length;i<il;i++){var node=nodes[i];var inputAccessor=inputAccessors[i];var outputAccessor=outputAccessors[i];var sampler=samplers[i];var target=targets[i];if(node===undefined)continue;node.updateMatrix();node.matrixAutoUpdate=true;var TypedKeyframeTrack;switch(PATH_PROPERTIES[target.path]){case PATH_PROPERTIES.weights:TypedKeyframeTrack=NumberKeyframeTrack;break;case PATH_PROPERTIES.rotation:TypedKeyframeTrack=QuaternionKeyframeTrack;break;case PATH_PROPERTIES.position:case PATH_PROPERTIES.scale:default:TypedKeyframeTrack=VectorKeyframeTrack;break;}var targetName=node.name?node.name:node.uuid;var interpolation=sampler.interpolation!==undefined?INTERPOLATION[sampler.interpolation]:InterpolateLinear;var targetNames=[];if(PATH_PROPERTIES[target.path]===PATH_PROPERTIES.weights){node.traverse(function(object){if(object.isMesh===true&&object.morphTargetInfluences){targetNames.push(object.name?object.name:object.uuid);}});}else{targetNames.push(targetName);}var outputArray=outputAccessor.array;if(outputAccessor.normalized){var scale;if(outputArray.constructor===Int8Array){scale=1/127;}else if(outputArray.constructor===Uint8Array){scale=1/255;}else if(outputArray.constructor==Int16Array){scale=1/32767;}else if(outputArray.constructor===Uint16Array){scale=1/65535;}else{throw new Error('THREE.GLTFLoader: Unsupported output accessor component type.');}var scaled=new Float32Array(outputArray.length);for(var j=0,jl=outputArray.length;j<jl;j++){scaled[j]=outputArray[j]*scale;}outputArray=scaled;}for(var j=0,jl=targetNames.length;j<jl;j++){var track=new TypedKeyframeTrack(targetNames[j]+'.'+PATH_PROPERTIES[target.path],inputAccessor.array,outputArray,interpolation);if(sampler.interpolation==='CUBICSPLINE'){track.createInterpolant=function InterpolantFactoryMethodGLTFCubicSpline(result){return new GLTFCubicSplineInterpolant(this.times,this.values,this.getValueSize()/3,result);};track.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline=true;}tracks.push(track);}}var name=animationDef.name?animationDef.name:'animation_'+animationIndex;return new AnimationClip(name,undefined,tracks);});};GLTFParser.prototype.loadNode=function(nodeIndex){var json=this.json;var extensions=this.extensions;var parser=this;var nodeDef=json.nodes[nodeIndex];var nodeName=nodeDef.name?parser.createUniqueName(nodeDef.name):'';return function(){var pending=[];if(nodeDef.mesh!==undefined){pending.push(parser.getDependency('mesh',nodeDef.mesh).then(function(mesh){var node=parser._getNodeRef(parser.meshCache,nodeDef.mesh,mesh);if(nodeDef.weights!==undefined){node.traverse(function(o){if(!o.isMesh)return;for(var i=0,il=nodeDef.weights.length;i<il;i++){o.morphTargetInfluences[i]=nodeDef.weights[i];}});}return node;}));}if(nodeDef.camera!==undefined){pending.push(parser.getDependency('camera',nodeDef.camera).then(function(camera){return parser._getNodeRef(parser.cameraCache,nodeDef.camera,camera);}));}parser._invokeAll(function(ext){return ext.createNodeAttachment&&ext.createNodeAttachment(nodeIndex);}).forEach(function(promise){pending.push(promise);});return Promise.all(pending);}().then(function(objects){var node;if(nodeDef.isBone===true){node=new Bone();}else if(objects.length>1){node=new Group();}else if(objects.length===1){node=objects[0];}else{node=new Object3D();}if(node!==objects[0]){for(var i=0,il=objects.length;i<il;i++){node.add(objects[i]);}}if(nodeDef.name){node.userData.name=nodeDef.name;node.name=nodeName;}assignExtrasToUserData(node,nodeDef);if(nodeDef.extensions)addUnknownExtensionsToUserData(extensions,node,nodeDef);if(nodeDef.matrix!==undefined){var matrix=new Matrix4();matrix.fromArray(nodeDef.matrix);node.applyMatrix4(matrix);}else{if(nodeDef.translation!==undefined){node.position.fromArray(nodeDef.translation);}if(nodeDef.rotation!==undefined){node.quaternion.fromArray(nodeDef.rotation);}if(nodeDef.scale!==undefined){node.scale.fromArray(nodeDef.scale);}}parser.associations.set(node,{type:'nodes',index:nodeIndex});return node;});};GLTFParser.prototype.loadScene=function(){function buildNodeHierachy(nodeId,parentObject,json,parser){var nodeDef=json.nodes[nodeId];return parser.getDependency('node',nodeId).then(function(node){if(nodeDef.skin===undefined)return node;var skinEntry;return parser.getDependency('skin',nodeDef.skin).then(function(skin){skinEntry=skin;var pendingJoints=[];for(var i=0,il=skinEntry.joints.length;i<il;i++){pendingJoints.push(parser.getDependency('node',skinEntry.joints[i]));}return Promise.all(pendingJoints);}).then(function(jointNodes){node.traverse(function(mesh){if(!mesh.isMesh)return;var bones=[];var boneInverses=[];for(var j=0,jl=jointNodes.length;j<jl;j++){var jointNode=jointNodes[j];if(jointNode){bones.push(jointNode);var mat=new Matrix4();if(skinEntry.inverseBindMatrices!==undefined){mat.fromArray(skinEntry.inverseBindMatrices.array,j*16);}boneInverses.push(mat);}else{console.warn('THREE.GLTFLoader: Joint \"%s\" could not be found.',skinEntry.joints[j]);}}mesh.bind(new Skeleton(bones,boneInverses),mesh.matrixWorld);});return node;});}).then(function(node){parentObject.add(node);var pending=[];if(nodeDef.children){var children=nodeDef.children;for(var i=0,il=children.length;i<il;i++){var child=children[i];pending.push(buildNodeHierachy(child,node,json,parser));}}return Promise.all(pending);});}return function loadScene(sceneIndex){var json=this.json;var extensions=this.extensions;var sceneDef=this.json.scenes[sceneIndex];var parser=this;var scene=new Group();if(sceneDef.name)scene.name=parser.createUniqueName(sceneDef.name);assignExtrasToUserData(scene,sceneDef);if(sceneDef.extensions)addUnknownExtensionsToUserData(extensions,scene,sceneDef);var nodeIds=sceneDef.nodes||[];var pending=[];for(var i=0,il=nodeIds.length;i<il;i++){pending.push(buildNodeHierachy(nodeIds[i],scene,json,parser));}return Promise.all(pending).then(function(){return scene;});};}();return GLTFLoader;}();var _a$1,_b;var $retainerCount=Symbol('retainerCount');var $recentlyUsed=Symbol('recentlyUsed');var $evict=Symbol('evict');var $evictionThreshold=Symbol('evictionThreshold');var $cache=Symbol('cache');var CacheEvictionPolicy=function(){function CacheEvictionPolicy(cache){var evictionThreshold=arguments.length>1&&arguments[1]!==undefined?arguments[1]:5;_classCallCheck(this,CacheEvictionPolicy);this[_a$1]=new Map();this[_b]=[];this[$cache]=cache;this[$evictionThreshold]=evictionThreshold;}_createClass(CacheEvictionPolicy,[{key:\"retainerCount\",value:function retainerCount(key){return this[$retainerCount].get(key)||0;}},{key:\"reset\",value:function reset(){this[$retainerCount].clear();this[$recentlyUsed]=[];}},{key:\"retain\",value:function retain(key){if(!this[$retainerCount].has(key)){this[$retainerCount].set(key,0);}this[$retainerCount].set(key,this[$retainerCount].get(key)+1);var recentlyUsedIndex=this[$recentlyUsed].indexOf(key);if(recentlyUsedIndex!==-1){this[$recentlyUsed].splice(recentlyUsedIndex,1);}this[$recentlyUsed].unshift(key);this[$evict]();}},{key:\"release\",value:function release(key){if(this[$retainerCount].has(key)){this[$retainerCount].set(key,Math.max(this[$retainerCount].get(key)-1,0));}this[$evict]();}},{key:(_a$1=$retainerCount,_b=$recentlyUsed,$evict),value:function value(){if(this[$recentlyUsed].length<this[$evictionThreshold]){return;}for(var _i331=this[$recentlyUsed].length-1;_i331>=this[$evictionThreshold];--_i331){var key=this[$recentlyUsed][_i331];var retainerCount=this[$retainerCount].get(key);if(retainerCount===0){this[$cache].delete(key);this[$recentlyUsed].splice(_i331,1);}}}},{key:\"evictionThreshold\",set:function set(value){this[$evictionThreshold]=value;this[$evict]();},get:function get(){return this[$evictionThreshold];}},{key:\"cache\",get:function get(){return this[$cache];}}]);return CacheEvictionPolicy;}();var _a$2,_b$1;var loadWithLoader=function loadWithLoader(url,loader){var progressCallback=arguments.length>2&&arguments[2]!==undefined?arguments[2]:function(){};var onProgress=function onProgress(event){var fraction=event.loaded/event.total;progressCallback(Math.max(0,Math.min(1,isFinite(fraction)?fraction:1)));};return new Promise(function(resolve,reject){loader.load(url,resolve,onProgress,reject);});};var cache=new Map();var preloaded=new Map();var dracoDecoderLocation;var dracoLoader=new DRACOLoader();var $loader=Symbol('loader');var $evictionPolicy=Symbol('evictionPolicy');var $GLTFInstance=Symbol('GLTFInstance');var CachingGLTFLoader=function(_EventDispatcher){_inherits(CachingGLTFLoader,_EventDispatcher);var _super11=_createSuper(CachingGLTFLoader);function CachingGLTFLoader(GLTFInstance){var _this22;_classCallCheck(this,CachingGLTFLoader);_this22=_super11.call(this);_this22[_b$1]=new GLTFLoader();_this22[$GLTFInstance]=GLTFInstance;_this22[$loader].setDRACOLoader(dracoLoader);return _this22;}_createClass(CachingGLTFLoader,[{key:\"preload\",value:function(){var _preload=_asyncToGenerator(regeneratorRuntime.mark(function _callee2(url,element){var progressCallback,rawGLTFLoads,_GLTFInstance,gltfInstanceLoads,_args2=arguments;return regeneratorRuntime.wrap(function _callee2$(_context3){while(1){switch(_context3.prev=_context3.next){case 0:progressCallback=_args2.length>2&&_args2[2]!==undefined?_args2[2]:function(){};this.dispatchEvent({type:'preload',element:element,src:url});if(!cache.has(url)){rawGLTFLoads=loadWithLoader(url,this[$loader],function(progress){progressCallback(progress*0.8);});_GLTFInstance=this[$GLTFInstance];gltfInstanceLoads=rawGLTFLoads.then(function(rawGLTF){return _GLTFInstance.prepare(rawGLTF);}).then(function(preparedGLTF){progressCallback(0.9);return new _GLTFInstance(preparedGLTF);});cache.set(url,gltfInstanceLoads);}_context3.next=5;return cache.get(url);case 5:preloaded.set(url,true);if(progressCallback){progressCallback(1.0);}case 7:case\"end\":return _context3.stop();}}},_callee2,this);}));function preload(_x3,_x4){return _preload.apply(this,arguments);}return preload;}()},{key:\"load\",value:function(){var _load=_asyncToGenerator(regeneratorRuntime.mark(function _callee3(url,element){var _this23=this;var progressCallback,gltf,clone,_args3=arguments;return regeneratorRuntime.wrap(function _callee3$(_context4){while(1){switch(_context4.prev=_context4.next){case 0:progressCallback=_args3.length>2&&_args3[2]!==undefined?_args3[2]:function(){};_context4.next=3;return this.preload(url,element,progressCallback);case 3:_context4.next=5;return cache.get(url);case 5:gltf=_context4.sent;_context4.next=8;return gltf.clone();case 8:clone=_context4.sent;this[$evictionPolicy].retain(url);clone.dispose=function(){var originalDispose=clone.dispose;var disposed=false;return function(){if(disposed){return;}disposed=true;originalDispose.apply(clone);_this23[$evictionPolicy].release(url);};}();return _context4.abrupt(\"return\",clone);case 12:case\"end\":return _context4.stop();}}},_callee3,this);}));function load(_x5,_x6){return _load.apply(this,arguments);}return load;}()},{key:(_a$2=$evictionPolicy,_b$1=$loader,$evictionPolicy),get:function get(){return this.constructor[$evictionPolicy];}}],[{key:\"setDRACODecoderLocation\",value:function setDRACODecoderLocation(url){dracoDecoderLocation=url;dracoLoader.setDecoderPath(url);}},{key:\"getDRACODecoderLocation\",value:function getDRACODecoderLocation(){return dracoDecoderLocation;}},{key:\"clearCache\",value:function clearCache(){var _this24=this;cache.forEach(function(_value,url){_this24.delete(url);});this[$evictionPolicy].reset();}},{key:\"has\",value:function has(url){return cache.has(url);}},{key:\"delete\",value:function(){var _delete2=_asyncToGenerator(regeneratorRuntime.mark(function _callee4(url){var gltfLoads,gltf;return regeneratorRuntime.wrap(function _callee4$(_context5){while(1){switch(_context5.prev=_context5.next){case 0:if(this.has(url)){_context5.next=2;break;}return _context5.abrupt(\"return\");case 2:gltfLoads=cache.get(url);preloaded.delete(url);cache.delete(url);_context5.next=7;return gltfLoads;case 7:gltf=_context5.sent;gltf.dispose();case 9:case\"end\":return _context5.stop();}}},_callee4,this);}));function _delete(_x7){return _delete2.apply(this,arguments);}return _delete;}()},{key:\"hasFinishedLoading\",value:function hasFinishedLoading(url){return!!preloaded.get(url);}},{key:\"cache\",get:function get(){return cache;}}]);return CachingGLTFLoader;}(EventDispatcher);CachingGLTFLoader[_a$2]=new CacheEvictionPolicy(CachingGLTFLoader);var _a$3;var SETTLING_TIME=10000;var DECAY_MILLISECONDS=50;var NATURAL_FREQUENCY=1/DECAY_MILLISECONDS;var NIL_SPEED=0.0002*NATURAL_FREQUENCY;var $velocity=Symbol('velocity');var Damper=function(){function Damper(){_classCallCheck(this,Damper);this[_a$3]=0;}_createClass(Damper,[{key:\"update\",value:function update(x,xGoal,timeStepMilliseconds,xNormalization){if(x==null||xNormalization===0){return xGoal;}if(x===xGoal&&this[$velocity]===0){return xGoal;}if(timeStepMilliseconds<0){return x;}var deltaX=x-xGoal;var intermediateVelocity=this[$velocity]+NATURAL_FREQUENCY*deltaX;var intermediateX=deltaX+timeStepMilliseconds*intermediateVelocity;var decay=Math.exp(-NATURAL_FREQUENCY*timeStepMilliseconds);var newVelocity=(intermediateVelocity-NATURAL_FREQUENCY*intermediateX)*decay;var acceleration=-NATURAL_FREQUENCY*(newVelocity+intermediateVelocity*decay);if(Math.abs(newVelocity)<NIL_SPEED*Math.abs(xNormalization)&&acceleration*deltaX>=0){this[$velocity]=0;return xGoal;}else{this[$velocity]=newVelocity;return xGoal+intermediateX*decay;}}}]);return Damper;}();_a$3=$velocity;var CSS2DObject=function CSS2DObject(element){Object3D.call(this);this.element=element||document.createElement('div');this.element.style.position='absolute';this.addEventListener('removed',function(){this.traverse(function(object){if(_instanceof(object.element,Element)&&object.element.parentNode!==null){object.element.parentNode.removeChild(object.element);}});});};CSS2DObject.prototype=Object.assign(Object.create(Object3D.prototype),{constructor:CSS2DObject,copy:function copy(source,recursive){Object3D.prototype.copy.call(this,source,recursive);this.element=source.element.cloneNode(true);return this;}});var CSS2DRenderer=function CSS2DRenderer(){var _this=this;var _width,_height;var _widthHalf,_heightHalf;var vector=new Vector3();var viewMatrix=new Matrix4();var viewProjectionMatrix=new Matrix4();var cache={objects:new WeakMap()};var domElement=document.createElement('div');domElement.style.overflow='hidden';this.domElement=domElement;this.getSize=function(){return{width:_width,height:_height};};this.setSize=function(width,height){_width=width;_height=height;_widthHalf=_width/2;_heightHalf=_height/2;domElement.style.width=width+'px';domElement.style.height=height+'px';};var renderObject=function renderObject(object,scene,camera){if(_instanceof(object,CSS2DObject)){object.onBeforeRender(_this,scene,camera);vector.setFromMatrixPosition(object.matrixWorld);vector.applyMatrix4(viewProjectionMatrix);var element=object.element;var style='translate(-50%,-50%) translate('+(vector.x*_widthHalf+_widthHalf)+'px,'+(-vector.y*_heightHalf+_heightHalf)+'px)';element.style.WebkitTransform=style;element.style.MozTransform=style;element.style.oTransform=style;element.style.transform=style;element.style.display=object.visible&&vector.z>=-1&&vector.z<=1?'':'none';var objectData={distanceToCameraSquared:getDistanceToSquared(camera,object)};cache.objects.set(object,objectData);if(element.parentNode!==domElement){domElement.appendChild(element);}object.onAfterRender(_this,scene,camera);}for(var i=0,l=object.children.length;i<l;i++){renderObject(object.children[i],scene,camera);}};var getDistanceToSquared=function(){var a=new Vector3();var b=new Vector3();return function(object1,object2){a.setFromMatrixPosition(object1.matrixWorld);b.setFromMatrixPosition(object2.matrixWorld);return a.distanceToSquared(b);};}();var filterAndFlatten=function filterAndFlatten(scene){var result=[];scene.traverse(function(object){if(_instanceof(object,CSS2DObject))result.push(object);});return result;};var zOrder=function zOrder(scene){var sorted=filterAndFlatten(scene).sort(function(a,b){var distanceA=cache.objects.get(a).distanceToCameraSquared;var distanceB=cache.objects.get(b).distanceToCameraSquared;return distanceA-distanceB;});var zMax=sorted.length;for(var i=0,l=sorted.length;i<l;i++){sorted[i].element.style.zIndex=zMax-i;}};this.render=function(scene,camera){if(scene.autoUpdate===true)scene.updateMatrixWorld();if(camera.parent===null)camera.updateMatrixWorld();viewMatrix.copy(camera.matrixWorldInverse);viewProjectionMatrix.multiplyMatrices(camera.projectionMatrix,viewMatrix);renderObject(scene,scene,camera);zOrder(scene);};};var numberNode=function numberNode(value,unit){return{type:'number',number:value,unit:unit};};var parseExpressions=function(){var cache={};var MAX_PARSE_ITERATIONS=1000;return function(inputString){var cacheKey=inputString;if(cacheKey in cache){return cache[cacheKey];}var expressions=[];var parseIterations=0;while(inputString){if(++parseIterations>MAX_PARSE_ITERATIONS){inputString='';break;}var expressionParseResult=parseExpression(inputString);var expression=expressionParseResult.nodes[0];if(expression==null||expression.terms.length===0){break;}expressions.push(expression);inputString=expressionParseResult.remainingInput;}return cache[cacheKey]=expressions;};}();var parseExpression=function(){var IS_IDENT_RE=/^(\\-\\-|[a-z\\u0240-\\uffff])/i;var IS_OPERATOR_RE=/^([\\*\\+\\/]|[\\-]\\s)/i;var IS_EXPRESSION_END_RE=/^[\\),]/;var FUNCTION_ARGUMENTS_FIRST_TOKEN='(';var HEX_FIRST_TOKEN='#';return function(inputString){var terms=[];while(inputString.length){inputString=inputString.trim();if(IS_EXPRESSION_END_RE.test(inputString)){break;}else if(inputString[0]===FUNCTION_ARGUMENTS_FIRST_TOKEN){var _parseFunctionArgumen=parseFunctionArguments(inputString),nodes=_parseFunctionArgumen.nodes,remainingInput=_parseFunctionArgumen.remainingInput;inputString=remainingInput;terms.push({type:'function',name:{type:'ident',value:'calc'},arguments:nodes});}else if(IS_IDENT_RE.test(inputString)){var identParseResult=parseIdent(inputString);var identNode=identParseResult.nodes[0];inputString=identParseResult.remainingInput;if(inputString[0]===FUNCTION_ARGUMENTS_FIRST_TOKEN){var _parseFunctionArgumen2=parseFunctionArguments(inputString),_nodes=_parseFunctionArgumen2.nodes,_remainingInput=_parseFunctionArgumen2.remainingInput;terms.push({type:'function',name:identNode,arguments:_nodes});inputString=_remainingInput;}else{terms.push(identNode);}}else if(IS_OPERATOR_RE.test(inputString)){terms.push({type:'operator',value:inputString[0]});inputString=inputString.slice(1);}else{var _ref=inputString[0]===HEX_FIRST_TOKEN?parseHex(inputString):parseNumber(inputString),_nodes2=_ref.nodes,_remainingInput2=_ref.remainingInput;if(_nodes2.length===0){break;}terms.push(_nodes2[0]);inputString=_remainingInput2;}}return{nodes:[{type:'expression',terms:terms}],remainingInput:inputString};};}();var parseIdent=function(){var NOT_IDENT_RE=/[^a-z^0-9^_^\\-^\\u0240-\\uffff]/i;return function(inputString){var match=inputString.match(NOT_IDENT_RE);var ident=match==null?inputString:inputString.substr(0,match.index);var remainingInput=match==null?'':inputString.substr(match.index);return{nodes:[{type:'ident',value:ident}],remainingInput:remainingInput};};}();var parseNumber=function(){var VALUE_RE=/[\\+\\-]?(\\d+[\\.]\\d+|\\d+|[\\.]\\d+)([eE][\\+\\-]?\\d+)?/;var UNIT_RE=/^[a-z%]+/i;var ALLOWED_UNITS=/^(m|mm|cm|rad|deg|[%])$/;return function(inputString){var valueMatch=inputString.match(VALUE_RE);var value=valueMatch==null?'0':valueMatch[0];inputString=value==null?inputString:inputString.slice(value.length);var unitMatch=inputString.match(UNIT_RE);var unit=unitMatch!=null&&unitMatch[0]!==''?unitMatch[0]:null;var remainingInput=unitMatch==null?inputString:inputString.slice(unit.length);if(unit!=null&&!ALLOWED_UNITS.test(unit)){unit=null;}return{nodes:[{type:'number',number:parseFloat(value)||0,unit:unit}],remainingInput:remainingInput};};}();var parseHex=function(){var HEX_RE=/^[a-f0-9]*/i;return function(inputString){inputString=inputString.slice(1).trim();var hexMatch=inputString.match(HEX_RE);var nodes=hexMatch==null?[]:[{type:'hex',value:hexMatch[0]}];return{nodes:nodes,remainingInput:hexMatch==null?inputString:inputString.slice(hexMatch[0].length)};};}();var parseFunctionArguments=function parseFunctionArguments(inputString){var expressionNodes=[];inputString=inputString.slice(1).trim();while(inputString.length){var expressionParseResult=parseExpression(inputString);expressionNodes.push(expressionParseResult.nodes[0]);inputString=expressionParseResult.remainingInput.trim();if(inputString[0]===','){inputString=inputString.slice(1).trim();}else if(inputString[0]===')'){inputString=inputString.slice(1);break;}}return{nodes:expressionNodes,remainingInput:inputString};};var $visitedTypes=Symbol('visitedTypes');var ASTWalker=function(){function ASTWalker(visitedTypes){_classCallCheck(this,ASTWalker);this[$visitedTypes]=visitedTypes;}_createClass(ASTWalker,[{key:\"walk\",value:function walk(ast,callback){var remaining=ast.slice();while(remaining.length){var next=remaining.shift();if(this[$visitedTypes].indexOf(next.type)>-1){callback(next);}switch(next.type){case'expression':remaining.unshift.apply(remaining,_toConsumableArray(next.terms));break;case'function':remaining.unshift.apply(remaining,[next.name].concat(_toConsumableArray(next.arguments)));break;}}}}]);return ASTWalker;}();var ZERO=Object.freeze({type:'number',number:0,unit:null});var degreesToRadians=function degreesToRadians(numberNode){var fallbackRadianValue=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var number=numberNode.number,unit=numberNode.unit;if(!isFinite(number)){number=fallbackRadianValue;unit='rad';}else if(numberNode.unit==='rad'||numberNode.unit==null){return numberNode;}var valueIsDegrees=unit==='deg'&&number!=null;var value=valueIsDegrees?number:0;var radians=value*Math.PI/180;return{type:'number',number:radians,unit:'rad'};};var lengthToBaseMeters=function lengthToBaseMeters(numberNode){var fallbackMeterValue=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var number=numberNode.number,unit=numberNode.unit;if(!isFinite(number)){number=fallbackMeterValue;unit='m';}else if(numberNode.unit==='m'){return numberNode;}var scale;switch(unit){default:scale=1;break;case'cm':scale=1/100;break;case'mm':scale=1/1000;break;}var value=scale*number;return{type:'number',number:value,unit:'m'};};var normalizeUnit=function(){var identity=function identity(node){return node;};var unitNormalizers={'rad':identity,'deg':degreesToRadians,'m':identity,'mm':lengthToBaseMeters,'cm':lengthToBaseMeters};return function(node){var fallback=arguments.length>1&&arguments[1]!==undefined?arguments[1]:ZERO;var number=node.number,unit=node.unit;if(!isFinite(number)){number=fallback.number;unit=fallback.unit;}if(unit==null){return node;}var normalize=unitNormalizers[unit];if(normalize==null){return fallback;}return normalize(node);};}();var Hotspot=function(_CSS2DObject){_inherits(Hotspot,_CSS2DObject);var _super12=_createSuper(Hotspot);function Hotspot(config){var _this25;_classCallCheck(this,Hotspot);_this25=_super12.call(this,document.createElement('div'));_this25.normal=new Vector3(0,1,0);_this25.initialized=false;_this25.referenceCount=1;_this25.pivot=document.createElement('div');_this25.slot=document.createElement('slot');_this25.element.classList.add('annotation-wrapper');_this25.slot.name=config.name;_this25.element.appendChild(_this25.pivot);_this25.pivot.appendChild(_this25.slot);_this25.updatePosition(config.position);_this25.updateNormal(config.normal);return _this25;}_createClass(Hotspot,[{key:\"show\",value:function show(){if(!this.facingCamera||!this.initialized){this.updateVisibility(true);}}},{key:\"hide\",value:function hide(){if(this.facingCamera||!this.initialized){this.updateVisibility(false);}}},{key:\"increment\",value:function increment(){this.referenceCount++;}},{key:\"decrement\",value:function decrement(){if(this.referenceCount>0){--this.referenceCount;}return this.referenceCount===0;}},{key:\"updatePosition\",value:function updatePosition(position){if(position==null)return;var positionNodes=parseExpressions(position)[0].terms;for(var _i332=0;_i332<3;++_i332){this.position.setComponent(_i332,normalizeUnit(positionNodes[_i332]).number);}}},{key:\"updateNormal\",value:function updateNormal(normal){if(normal==null)return;var normalNodes=parseExpressions(normal)[0].terms;for(var _i333=0;_i333<3;++_i333){this.normal.setComponent(_i333,normalizeUnit(normalNodes[_i333]).number);}}},{key:\"orient\",value:function orient(radians){this.pivot.style.transform=\"rotate(\".concat(radians,\"rad)\");}},{key:\"updateVisibility\",value:function updateVisibility(show){if(show){this.element.classList.remove('hide');}else{this.element.classList.add('hide');}this.slot.assignedNodes().forEach(function(node){if(node.nodeType!==Node.ELEMENT_NODE){return;}var element=node;var visibilityAttribute=element.dataset.visibilityAttribute;if(visibilityAttribute!=null){var attributeName=\"data-\".concat(visibilityAttribute);if(show){element.setAttribute(attributeName,'');}else{element.removeAttribute(attributeName);}}element.dispatchEvent(new CustomEvent('hotspot-visibility',{detail:{visible:show}}));});this.initialized=true;}},{key:\"facingCamera\",get:function get(){return!this.element.classList.contains('hide');}}]);return Hotspot;}(CSS2DObject);var reduceVertices=function reduceVertices(model,func){var value=0;var vector=new Vector3();model.traverse(function(object){var i,l;object.updateWorldMatrix(false,false);var geometry=object.geometry;if(geometry!==undefined){if(geometry.isGeometry){var _vertices6=geometry.vertices;for(i=0,l=_vertices6.length;i<l;i++){vector.copy(_vertices6[i]);vector.applyMatrix4(object.matrixWorld);value=func(value,vector);}}else if(geometry.isBufferGeometry){var attribute=geometry.attributes.position;if(attribute!==undefined){for(i=0,l=attribute.count;i<l;i++){vector.fromBufferAttribute(attribute,i).applyMatrix4(object.matrixWorld);value=func(value,vector);}}}}});return value;};var OFFSET=0.001;var LOG_MAX_RESOLUTION=9;var LOG_MIN_RESOLUTION=6;var ANIMATION_SCALING=2;var Shadow=function(_DirectionalLight){_inherits(Shadow,_DirectionalLight);var _super13=_createSuper(Shadow);function Shadow(model,softness){var _this26;_classCallCheck(this,Shadow);_this26=_super13.call(this);_this26.shadowMaterial=new ShadowMaterial();_this26.boundingBox=new Box3();_this26.size=new Vector3();_this26.isAnimated=false;_this26.needsUpdate=false;_this26.intensity=0;_this26.castShadow=true;_this26.frustumCulled=false;_this26.floor=new Mesh(new PlaneBufferGeometry(),_this26.shadowMaterial);_this26.floor.rotateX(-Math.PI/2);_this26.floor.receiveShadow=true;_this26.floor.castShadow=false;_this26.floor.frustumCulled=false;_this26.add(_this26.floor);_this26.shadow.camera.up.set(0,0,1);model.add(_assertThisInitialized(_this26));_this26.target=model;_this26.setModel(model,softness);return _this26;}_createClass(Shadow,[{key:\"setModel\",value:function setModel(model,softness){this.isAnimated=model.animationNames.length>0;this.boundingBox.copy(model.boundingBox);this.size.copy(model.size);var boundingBox=this.boundingBox,size=this.size;if(this.isAnimated){var maxDimension=Math.max(size.x,size.y,size.z)*ANIMATION_SCALING;size.y=maxDimension;boundingBox.expandByVector(size.subScalar(maxDimension).multiplyScalar(-0.5));boundingBox.max.y=boundingBox.min.y+maxDimension;size.set(maxDimension,maxDimension,maxDimension);}var shadowOffset=size.y*OFFSET;this.position.y=boundingBox.max.y+shadowOffset;boundingBox.getCenter(this.floor.position);this.setSoftness(softness);}},{key:\"setSoftness\",value:function setSoftness(softness){var resolution=Math.pow(2,LOG_MAX_RESOLUTION-softness*(LOG_MAX_RESOLUTION-LOG_MIN_RESOLUTION));this.setMapSize(resolution);}},{key:\"setMapSize\",value:function setMapSize(maxMapSize){var _this$shadow=this.shadow,camera=_this$shadow.camera,mapSize=_this$shadow.mapSize,map=_this$shadow.map;var size=this.size,boundingBox=this.boundingBox;if(map!=null){map.dispose();this.shadow.map=null;}if(this.isAnimated){maxMapSize*=ANIMATION_SCALING;}var width=Math.floor(size.x>size.z?maxMapSize:maxMapSize*size.x/size.z);var height=Math.floor(size.x>size.z?maxMapSize*size.z/size.x:maxMapSize);mapSize.set(width,height);var widthPad=2.5*size.x/width;var heightPad=2.5*size.z/height;camera.left=-boundingBox.max.x-widthPad;camera.right=-boundingBox.min.x+widthPad;camera.bottom=boundingBox.min.z-heightPad;camera.top=boundingBox.max.z+heightPad;this.setScaleAndOffset(camera.zoom,0);this.shadow.updateMatrices(this);this.floor.scale.set(size.x+2*widthPad,size.z+2*heightPad,1);this.needsUpdate=true;}},{key:\"setIntensity\",value:function setIntensity(intensity){this.shadowMaterial.opacity=intensity;if(intensity>0){this.visible=true;this.floor.visible=true;}else{this.visible=false;this.floor.visible=false;}}},{key:\"getIntensity\",value:function getIntensity(){return this.shadowMaterial.opacity;}},{key:\"setRotation\",value:function setRotation(radiansY){this.shadow.camera.up.set(Math.sin(radiansY),0,Math.cos(radiansY));this.shadow.updateMatrices(this);}},{key:\"setScaleAndOffset\",value:function setScaleAndOffset(scale,offset){var sizeY=this.size.y;var inverseScale=1/scale;var shadowOffset=sizeY*OFFSET;this.floor.position.y=2*shadowOffset-sizeY+offset*inverseScale;var camera=this.shadow.camera;camera.zoom=scale;camera.near=0;camera.far=sizeY*scale-offset;camera.projectionMatrix.makeOrthographic(camera.left*scale,camera.right*scale,camera.top*scale,camera.bottom*scale,camera.near,camera.far);camera.projectionMatrixInverse.getInverse(camera.projectionMatrix);}}]);return Shadow;}(DirectionalLight);var _a$4,_b$2;var DEFAULT_FOV_DEG=45;var DEFAULT_HALF_FOV=DEFAULT_FOV_DEG/2*Math.PI/180;var SAFE_RADIUS_RATIO=Math.sin(DEFAULT_HALF_FOV);var DEFAULT_TAN_FOV=Math.tan(DEFAULT_HALF_FOV);var $shadow=Symbol('shadow');var $cancelPendingSourceChange=Symbol('cancelPendingSourceChange');var $currentGLTF=Symbol('currentGLTF');var view=new Vector3();var target=new Vector3();var normalWorld=new Vector3();var Model=function(_Object3D3){_inherits(Model,_Object3D3);var _super14=_createSuper(Model);function Model(){var _this27;_classCallCheck(this,Model);_this27=_super14.call(this);_this27[_a$4]=null;_this27[_b$2]=null;_this27.animationsByName=new Map();_this27.currentAnimationAction=null;_this27.animations=[];_this27.modelContainer=new Object3D();_this27.animationNames=[];_this27.boundingBox=new Box3();_this27.size=new Vector3();_this27.idealCameraDistance=0;_this27.fieldOfViewAspect=0;_this27.userData={url:null};_this27.url=null;_this27.name='Model';_this27.modelContainer.name='ModelContainer';_this27.add(_this27.modelContainer);_this27.mixer=new AnimationMixer(_this27.modelContainer);return _this27;}_createClass(Model,[{key:\"hasModel\",value:function hasModel(){return!!this.modelContainer.children.length;}},{key:\"setObject\",value:function setObject(model){this.clear();this.modelContainer.add(model);this.updateFraming();this.dispatchEvent({type:'model-load'});}},{key:\"setSource\",value:function(){var _setSource=_asyncToGenerator(regeneratorRuntime.mark(function _callee6(element,url,progressCallback){var _this28=this;var gltf,_gltf,animations,animationsByName,animationNames,_iterator2,_step2,animation;return regeneratorRuntime.wrap(function _callee6$(_context7){while(1){switch(_context7.prev=_context7.next){case 0:if(!(!url||url===this.url)){_context7.next=3;break;}if(progressCallback){progressCallback(1);}return _context7.abrupt(\"return\");case 3:if(this[$cancelPendingSourceChange]!=null){this[$cancelPendingSourceChange]();this[$cancelPendingSourceChange]=null;}this.url=url;_context7.prev=5;_context7.next=8;return new Promise(function(){var _ref2=_asyncToGenerator(regeneratorRuntime.mark(function _callee5(resolve,reject){var result;return regeneratorRuntime.wrap(function _callee5$(_context6){while(1){switch(_context6.prev=_context6.next){case 0:_this28[$cancelPendingSourceChange]=function(){return reject();};_context6.prev=1;_context6.next=4;return element[$renderer].loader.load(url,element,progressCallback);case 4:result=_context6.sent;resolve(result);_context6.next=11;break;case 8:_context6.prev=8;_context6.t0=_context6[\"catch\"](1);reject(_context6.t0);case 11:case\"end\":return _context6.stop();}}},_callee5,null,[[1,8]]);}));return function(_x11,_x12){return _ref2.apply(this,arguments);};}());case 8:gltf=_context7.sent;_context7.next=16;break;case 11:_context7.prev=11;_context7.t0=_context7[\"catch\"](5);if(!(_context7.t0==null)){_context7.next=15;break;}return _context7.abrupt(\"return\");case 15:throw _context7.t0;case 16:this.clear();this[$currentGLTF]=gltf;if(gltf!=null){this.modelContainer.add(gltf.scene);}_gltf=gltf,animations=_gltf.animations;animationsByName=new Map();animationNames=[];_iterator2=_createForOfIteratorHelper(animations);try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){animation=_step2.value;animationsByName.set(animation.name,animation);animationNames.push(animation.name);}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}this.animations=animations;this.animationsByName=animationsByName;this.animationNames=animationNames;this.userData.url=url;this.updateFraming();this.dispatchEvent({type:'model-load',url:url});case 30:case\"end\":return _context7.stop();}}},_callee6,this,[[5,11]]);}));function setSource(_x8,_x9,_x10){return _setSource.apply(this,arguments);}return setSource;}()},{key:\"playAnimation\",value:function playAnimation(){var name=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;var crossfadeTime=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var animations=this.animations;if(animations==null||animations.length===0){console.warn(\"Cannot play animation (model does not have any animations)\");return;}var animationClip=null;if(name!=null){animationClip=this.animationsByName.get(name);}if(animationClip==null){animationClip=animations[0];}try{var lastAnimationAction=this.currentAnimationAction;this.currentAnimationAction=this.mixer.clipAction(animationClip,this).play();this.currentAnimationAction.enabled=true;if(lastAnimationAction!=null&&this.currentAnimationAction!==lastAnimationAction){this.currentAnimationAction.crossFadeFrom(lastAnimationAction,crossfadeTime,false);}}catch(error){console.error(error);}}},{key:\"stopAnimation\",value:function stopAnimation(){if(this.currentAnimationAction!=null){this.currentAnimationAction.stop();this.currentAnimationAction.reset();this.currentAnimationAction=null;}this.mixer.stopAllAction();}},{key:\"updateAnimation\",value:function updateAnimation(step){this.mixer.update(step);}},{key:\"clear\",value:function clear(){this.url=null;this.userData={url:null};var gltf=this[$currentGLTF];if(gltf!=null){var _iterator3=_createForOfIteratorHelper(this.modelContainer.children),_step3;try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var child=_step3.value;this.modelContainer.remove(child);}}catch(err){_iterator3.e(err);}finally{_iterator3.f();}gltf.dispose();this[$currentGLTF]=null;}if(this.currentAnimationAction!=null){this.currentAnimationAction.stop();this.currentAnimationAction=null;}this.mixer.stopAllAction();this.mixer.uncacheRoot(this);}},{key:\"updateFraming\",value:function updateFraming(){var _this29=this;var center=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;this.remove(this.modelContainer);if(center==null){this.boundingBox.setFromObject(this.modelContainer);this.boundingBox.getSize(this.size);center=this.boundingBox.getCenter(new Vector3());}var radiusSquared=function radiusSquared(value,vertex){return Math.max(value,center.distanceToSquared(vertex));};var framedRadius=Math.sqrt(reduceVertices(this.modelContainer,radiusSquared));this.idealCameraDistance=framedRadius/SAFE_RADIUS_RATIO;var horizontalFov=function horizontalFov(value,vertex){vertex.sub(center);var radiusXZ=Math.sqrt(vertex.x*vertex.x+vertex.z*vertex.z);return Math.max(value,radiusXZ/(_this29.idealCameraDistance-Math.abs(vertex.y)));};this.fieldOfViewAspect=reduceVertices(this.modelContainer,horizontalFov)/DEFAULT_TAN_FOV;this.add(this.modelContainer);}},{key:\"setShadowIntensity\",value:function setShadowIntensity(shadowIntensity,shadowSoftness){var shadow=this[$shadow];if(shadow!=null){shadow.setIntensity(shadowIntensity);shadow.setModel(this,shadowSoftness);}else if(shadowIntensity>0){shadow=new Shadow(this,shadowSoftness);shadow.setIntensity(shadowIntensity);this[$shadow]=shadow;}}},{key:\"setShadowSoftness\",value:function setShadowSoftness(softness){var shadow=this[$shadow];if(shadow!=null){shadow.setSoftness(softness);}}},{key:\"setShadowRotation\",value:function setShadowRotation(radiansY){var shadow=this[$shadow];if(shadow!=null){shadow.setRotation(radiansY);}}},{key:\"updateShadow\",value:function updateShadow(){var shadow=this[$shadow];if(shadow==null){return false;}else{var needsUpdate=shadow.needsUpdate;shadow.needsUpdate=false;return needsUpdate;}}},{key:\"setShadowScaleAndOffset\",value:function setShadowScaleAndOffset(scale,offset){var shadow=this[$shadow];if(shadow!=null){shadow.setScaleAndOffset(scale,offset);}}},{key:\"addHotspot\",value:function addHotspot(hotspot){this.add(hotspot);}},{key:\"removeHotspot\",value:function removeHotspot(hotspot){this.remove(hotspot);}},{key:\"forHotspots\",value:function forHotspots(func){var children=this.children;for(var _i334=0,l=children.length;_i334<l;_i334++){var hotspot=children[_i334];if(_instanceof(hotspot,Hotspot)){func(hotspot);}}}},{key:\"updateHotspots\",value:function updateHotspots(viewerPosition){var _this30=this;this.forHotspots(function(hotspot){view.copy(viewerPosition);target.setFromMatrixPosition(hotspot.matrixWorld);view.sub(target);normalWorld.copy(hotspot.normal).transformDirection(_this30.matrixWorld);if(view.dot(normalWorld)<0){hotspot.hide();}else{hotspot.show();}});}},{key:\"orientHotspots\",value:function orientHotspots(radians){this.forHotspots(function(hotspot){hotspot.orient(radians);});}},{key:\"setHotspotsVisibility\",value:function setHotspotsVisibility(visible){this.forHotspots(function(hotspot){hotspot.visible=visible;});}},{key:\"currentGLTF\",get:function get(){return this[$currentGLTF];}},{key:\"animationTime\",set:function set(value){this.mixer.setTime(value);},get:function get(){if(this.currentAnimationAction!=null){return this.currentAnimationAction.time;}return 0;}},{key:\"hasActiveAnimation\",get:function get(){return this.currentAnimationAction!=null;}}]);return Model;}(Object3D);_a$4=$shadow,_b$2=$currentGLTF;var DEFAULT_TAN_FOV$1=Math.tan(DEFAULT_FOV_DEG/2*Math.PI/180);var raycaster=new Raycaster();var vector3=new Vector3();var ModelScene=function(_Scene){_inherits(ModelScene,_Scene);var _super15=_createSuper(ModelScene);function ModelScene(_ref3){var _this31;var canvas=_ref3.canvas,element=_ref3.element,width=_ref3.width,height=_ref3.height;_classCallCheck(this,ModelScene);_this31=_super15.call(this);_this31.aspect=1;_this31.shadowIntensity=0;_this31.shadowSoftness=1;_this31.width=1;_this31.height=1;_this31.isDirty=false;_this31.context=null;_this31.exposure=1;_this31.canScale=true;_this31.framedFieldOfView=DEFAULT_FOV_DEG;_this31.camera=new PerspectiveCamera(45,1,0.1,100);_this31.goalTarget=new Vector3();_this31.targetDamperX=new Damper();_this31.targetDamperY=new Damper();_this31.targetDamperZ=new Damper();_this31.name='ModelScene';_this31.element=element;_this31.canvas=canvas;_this31.model=new Model();_this31.camera=new PerspectiveCamera(45,1,0.1,100);_this31.camera.name='MainCamera';_this31.activeCamera=_this31.camera;_this31.add(_this31.model);_this31.setSize(width,height);_this31.model.addEventListener('model-load',function(event){return _this31.onModelLoad(event);});return _this31;}_createClass(ModelScene,[{key:\"createContext\",value:function createContext(){{this.context=this.canvas.getContext('2d');}}},{key:\"setModelSource\",value:function(){var _setModelSource=_asyncToGenerator(regeneratorRuntime.mark(function _callee7(source,progressCallback){return regeneratorRuntime.wrap(function _callee7$(_context8){while(1){switch(_context8.prev=_context8.next){case 0:_context8.prev=0;_context8.next=3;return this.model.setSource(this.element,source,progressCallback);case 3:_context8.next=8;break;case 5:_context8.prev=5;_context8.t0=_context8[\"catch\"](0);throw new Error(\"Could not set model source to '\".concat(source,\"': \").concat(_context8.t0.message));case 8:case\"end\":return _context8.stop();}}},_callee7,this,[[0,5]]);}));function setModelSource(_x13,_x14){return _setModelSource.apply(this,arguments);}return setModelSource;}()},{key:\"setSize\",value:function setSize(width,height){if(this.width===width&&this.height===height){return;}this.width=Math.max(width,1);this.height=Math.max(height,1);this.aspect=this.width/this.height;this.frameModel();this.isDirty=true;}},{key:\"frameModel\",value:function frameModel(){var vertical=DEFAULT_TAN_FOV$1*Math.max(1,this.model.fieldOfViewAspect/this.aspect);this.framedFieldOfView=2*Math.atan(vertical)*180/Math.PI;}},{key:\"getSize\",value:function getSize(){return{width:this.width,height:this.height};}},{key:\"getCamera\",value:function getCamera(){return this.activeCamera;}},{key:\"setCamera\",value:function setCamera(camera){this.activeCamera=camera;}},{key:\"onModelLoad\",value:function onModelLoad(event){this.frameModel();this.setShadowIntensity(this.shadowIntensity);this.isDirty=true;this.dispatchEvent({type:'model-load',url:event.url});}},{key:\"setTarget\",value:function setTarget(modelX,modelY,modelZ){this.goalTarget.set(-modelX,-modelY,-modelZ);}},{key:\"getTarget\",value:function getTarget(){return vector3.copy(this.goalTarget).multiplyScalar(-1);}},{key:\"jumpToGoal\",value:function jumpToGoal(){this.updateTarget(SETTLING_TIME);}},{key:\"updateTarget\",value:function updateTarget(delta){var goal=this.goalTarget;var target=this.model.position;if(!goal.equals(target)){var radius=this.model.idealCameraDistance;var x=target.x,y=target.y,z=target.z;x=this.targetDamperX.update(x,goal.x,delta,radius);y=this.targetDamperY.update(y,goal.y,delta,radius);z=this.targetDamperZ.update(z,goal.z,delta,radius);this.model.position.set(x,y,z);this.model.updateMatrixWorld();this.model.setShadowRotation(this.yaw);this.isDirty=true;}}},{key:\"pointTowards\",value:function pointTowards(worldX,worldZ){var _this$position=this.position,x=_this$position.x,z=_this$position.z;this.yaw=Math.atan2(worldX-x,worldZ-z);}},{key:\"setShadowIntensity\",value:function setShadowIntensity(shadowIntensity){shadowIntensity=Math.max(shadowIntensity,0);this.shadowIntensity=shadowIntensity;if(this.model.hasModel()){this.model.setShadowIntensity(shadowIntensity,this.shadowSoftness);}}},{key:\"setShadowSoftness\",value:function setShadowSoftness(softness){this.shadowSoftness=softness;this.model.setShadowSoftness(softness);}},{key:\"positionAndNormalFromPoint\",value:function positionAndNormalFromPoint(pixelPosition){var object=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this;raycaster.setFromCamera(pixelPosition,this.getCamera());var hits=raycaster.intersectObject(object,true);if(hits.length===0){return null;}var hit=hits[0];if(hit.face==null){return null;}hit.face.normal.applyNormalMatrix(new Matrix3().getNormalMatrix(hit.object.matrixWorld));return{position:hit.point,normal:hit.face.normal};}},{key:\"yaw\",set:function set(radiansY){this.rotation.y=radiansY;this.model.setShadowRotation(radiansY);this.isDirty=true;},get:function get(){return this.rotation.y;}}]);return ModelScene;}(Scene);var _mipmapMaterial=_getMipmapMaterial();var _mesh$1=new Mesh(new PlaneBufferGeometry(2,2),_mipmapMaterial);var _flatCamera$1=new OrthographicCamera(0,1,0,1,0,1);var _tempTarget=null;var _renderer=null;function RoughnessMipmapper(renderer){_renderer=renderer;_renderer.compile(_mesh$1,_flatCamera$1);}RoughnessMipmapper.prototype={constructor:RoughnessMipmapper,generateMipmaps:function generateMipmaps(material){if('roughnessMap'in material===false)return;var roughnessMap=material.roughnessMap,normalMap=material.normalMap;if(roughnessMap===null||normalMap===null||!roughnessMap.generateMipmaps||material.userData.roughnessUpdated)return;material.userData.roughnessUpdated=true;var width=Math.max(roughnessMap.image.width,normalMap.image.width);var height=Math.max(roughnessMap.image.height,normalMap.image.height);if(!MathUtils.isPowerOfTwo(width)||!MathUtils.isPowerOfTwo(height))return;var oldTarget=_renderer.getRenderTarget();var autoClear=_renderer.autoClear;_renderer.autoClear=false;if(_tempTarget===null||_tempTarget.width!==width||_tempTarget.height!==height){if(_tempTarget!==null)_tempTarget.dispose();_tempTarget=new WebGLRenderTarget(width,height,{depthBuffer:false});_tempTarget.scissorTest=true;}if(width!==roughnessMap.image.width||height!==roughnessMap.image.height){var params={wrapS:roughnessMap.wrapS,wrapT:roughnessMap.wrapT,magFilter:roughnessMap.magFilter,minFilter:roughnessMap.minFilter,depthBuffer:false};var newRoughnessTarget=new WebGLRenderTarget(width,height,params);newRoughnessTarget.texture.generateMipmaps=true;_renderer.setRenderTarget(newRoughnessTarget);material.roughnessMap=newRoughnessTarget.texture;if(material.metalnessMap==roughnessMap)material.metalnessMap=material.roughnessMap;if(material.aoMap==roughnessMap)material.aoMap=material.roughnessMap;}_mipmapMaterial.uniforms.roughnessMap.value=roughnessMap;_mipmapMaterial.uniforms.normalMap.value=normalMap;var position=new Vector2(0,0);var texelSize=_mipmapMaterial.uniforms.texelSize.value;for(var mip=0;width>=1&&height>=1;++mip,width/=2,height/=2){texelSize.set(1.0/width,1.0/height);if(mip==0)texelSize.set(0.0,0.0);_tempTarget.viewport.set(position.x,position.y,width,height);_tempTarget.scissor.set(position.x,position.y,width,height);_renderer.setRenderTarget(_tempTarget);_renderer.render(_mesh$1,_flatCamera$1);_renderer.copyFramebufferToTexture(position,material.roughnessMap,mip);_mipmapMaterial.uniforms.roughnessMap.value=material.roughnessMap;}if(roughnessMap!==material.roughnessMap)roughnessMap.dispose();_renderer.setRenderTarget(oldTarget);_renderer.autoClear=autoClear;},dispose:function dispose(){_mipmapMaterial.dispose();_mesh$1.geometry.dispose();if(_tempTarget!=null)_tempTarget.dispose();}};function _getMipmapMaterial(){var shaderMaterial=new RawShaderMaterial({uniforms:{roughnessMap:{value:null},normalMap:{value:null},texelSize:{value:new Vector2(1,1)}},vertexShader:\"\\n\\t\\t\\tprecision mediump float;\\n\\t\\t\\tprecision mediump int;\\n\\n\\t\\t\\tattribute vec3 position;\\n\\t\\t\\tattribute vec2 uv;\\n\\n\\t\\t\\tvarying vec2 vUv;\\n\\n\\t\\t\\tvoid main() {\\n\\n\\t\\t\\t\\tvUv = uv;\\n\\n\\t\\t\\t\\tgl_Position = vec4( position, 1.0 );\\n\\n\\t\\t\\t}\\n\\t\\t\",fragmentShader:\"\\n\\t\\t\\tprecision mediump float;\\n\\t\\t\\tprecision mediump int;\\n\\n\\t\\t\\tvarying vec2 vUv;\\n\\n\\t\\t\\tuniform sampler2D roughnessMap;\\n\\t\\t\\tuniform sampler2D normalMap;\\n\\t\\t\\tuniform vec2 texelSize;\\n\\n\\t\\t\\t#define ENVMAP_TYPE_CUBE_UV\\n\\n\\t\\t\\tvec4 envMapTexelToLinear( vec4 a ) { return a; }\\n\\n\\t\\t\\t#include <cube_uv_reflection_fragment>\\n\\n\\t\\t\\tfloat roughnessToVariance( float roughness ) {\\n\\n\\t\\t\\t\\tfloat variance = 0.0;\\n\\n\\t\\t\\t\\tif ( roughness >= r1 ) {\\n\\n\\t\\t\\t\\t\\tvariance = ( r0 - roughness ) * ( v1 - v0 ) / ( r0 - r1 ) + v0;\\n\\n\\t\\t\\t\\t} else if ( roughness >= r4 ) {\\n\\n\\t\\t\\t\\t\\tvariance = ( r1 - roughness ) * ( v4 - v1 ) / ( r1 - r4 ) + v1;\\n\\n\\t\\t\\t\\t} else if ( roughness >= r5 ) {\\n\\n\\t\\t\\t\\t\\tvariance = ( r4 - roughness ) * ( v5 - v4 ) / ( r4 - r5 ) + v4;\\n\\n\\t\\t\\t\\t} else {\\n\\n\\t\\t\\t\\t\\tfloat roughness2 = roughness * roughness;\\n\\n\\t\\t\\t\\t\\tvariance = 1.79 * roughness2 * roughness2;\\n\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\treturn variance;\\n\\n\\t\\t\\t}\\n\\n\\t\\t\\tfloat varianceToRoughness( float variance ) {\\n\\n\\t\\t\\t\\tfloat roughness = 0.0;\\n\\n\\t\\t\\t\\tif ( variance >= v1 ) {\\n\\n\\t\\t\\t\\t\\troughness = ( v0 - variance ) * ( r1 - r0 ) / ( v0 - v1 ) + r0;\\n\\n\\t\\t\\t\\t} else if ( variance >= v4 ) {\\n\\n\\t\\t\\t\\t\\troughness = ( v1 - variance ) * ( r4 - r1 ) / ( v1 - v4 ) + r1;\\n\\n\\t\\t\\t\\t} else if ( variance >= v5 ) {\\n\\n\\t\\t\\t\\t\\troughness = ( v4 - variance ) * ( r5 - r4 ) / ( v4 - v5 ) + r4;\\n\\n\\t\\t\\t\\t} else {\\n\\n\\t\\t\\t\\t\\troughness = pow( 0.559 * variance, 0.25 ); // 0.559 = 1.0 / 1.79\\n\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\treturn roughness;\\n\\n\\t\\t\\t}\\n\\n\\t\\t\\tvoid main() {\\n\\n\\t\\t\\t\\tgl_FragColor = texture2D( roughnessMap, vUv, - 1.0 );\\n\\n\\t\\t\\t\\tif ( texelSize.x == 0.0 ) return;\\n\\n\\t\\t\\t\\tfloat roughness = gl_FragColor.g;\\n\\n\\t\\t\\t\\tfloat variance = roughnessToVariance( roughness );\\n\\n\\t\\t\\t\\tvec3 avgNormal;\\n\\n\\t\\t\\t\\tfor ( float x = - 1.0; x < 2.0; x += 2.0 ) {\\n\\n\\t\\t\\t\\t\\tfor ( float y = - 1.0; y < 2.0; y += 2.0 ) {\\n\\n\\t\\t\\t\\t\\t\\tvec2 uv = vUv + vec2( x, y ) * 0.25 * texelSize;\\n\\n\\t\\t\\t\\t\\t\\tavgNormal += normalize( texture2D( normalMap, uv, - 1.0 ).xyz - 0.5 );\\n\\n\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\tvariance += 1.0 - 0.25 * length( avgNormal );\\n\\n\\t\\t\\t\\tgl_FragColor.g = varianceToRoughness( variance );\\n\\n\\t\\t\\t}\\n\\t\\t\",blending:NoBlending,depthTest:false,depthWrite:false});shaderMaterial.type='RoughnessMipmapper';return shaderMaterial;}var deserializeUrl=function deserializeUrl(url){return!!url&&url!=='null'?toFullUrl(url):null;};var assertIsArCandidate=function assertIsArCandidate(){if(IS_WEBXR_AR_CANDIDATE){return;}var missingApis=[];if(!HAS_WEBXR_DEVICE_API){missingApis.push('WebXR Device API');}if(!HAS_WEBXR_HIT_TEST_API){missingApis.push('WebXR Hit Test API');}throw new Error(\"The following APIs are required for AR, but are missing in this browser: \".concat(missingApis.join(', ')));};var toFullUrl=function toFullUrl(partialUrl){var url=new URL(partialUrl,window.location.toString());return url.toString();};var throttle=function throttle(fn,ms){var timer=null;var throttled=function throttled(){if(timer!=null){return;}fn.apply(void 0,arguments);timer=self.setTimeout(function(){return timer=null;},ms);};throttled.flush=function(){if(timer!=null){self.clearTimeout(timer);timer=null;}};return throttled;};var debounce=function debounce(fn,ms){var timer=null;return function(){for(var _len=arguments.length,args=new Array(_len),_key4=0;_key4<_len;_key4++){args[_key4]=arguments[_key4];}if(timer!=null){self.clearTimeout(timer);}timer=self.setTimeout(function(){timer=null;fn.apply(void 0,args);},ms);};};var clamp=function clamp(value,lowerLimit,upperLimit){return Math.max(lowerLimit,Math.min(upperLimit,value));};var CAPPED_DEVICE_PIXEL_RATIO=1;var resolveDpr=function(){var HAS_META_VIEWPORT_TAG=function(){var metas=document.head!=null?Array.from(document.head.querySelectorAll('meta')):[];var _iterator4=_createForOfIteratorHelper(metas),_step4;try{for(_iterator4.s();!(_step4=_iterator4.n()).done;){var meta=_step4.value;if(meta.name==='viewport'){return true;}}}catch(err){_iterator4.e(err);}finally{_iterator4.f();}return false;}();if(!HAS_META_VIEWPORT_TAG){console.warn('No <meta name=\"viewport\"> detected; <model-viewer> will cap pixel density at 1.');}return function(){return HAS_META_VIEWPORT_TAG?window.devicePixelRatio:CAPPED_DEVICE_PIXEL_RATIO;};}();var isDebugMode=function(){var debugQueryParameterName='model-viewer-debug-mode';var debugQueryParameter=new RegExp(\"[?&]\".concat(debugQueryParameterName,\"(&|$)\"));return function(){return self.ModelViewerElement&&self.ModelViewerElement.debugMode||self.location&&self.location.search&&self.location.search.match(debugQueryParameter);};}();var getFirstMapKey=function getFirstMapKey(map){if(map.keys!=null){return map.keys().next().value||null;}var firstKey=null;try{map.forEach(function(_value,key,_map){firstKey=key;throw new Error();});}catch(_error){}return firstKey;};var waitForEvent=function waitForEvent(target,eventName){var predicate=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;return new Promise(function(resolve){function handler(event){if(!predicate||predicate(event)){resolve(event);target.removeEventListener(eventName,handler);}}target.addEventListener(eventName,handler);});};var RADIUS=0.2;var LINE_WIDTH=0.03;var MAX_OPACITY=0.75;var SEGMENTS=12;var DELTA_PHI=Math.PI/(2*SEGMENTS);var vector2=new Vector2();var addCorner=function addCorner(vertices,cornerX,cornerY){var phi=cornerX>0?cornerY>0?0:-Math.PI/2:cornerY>0?Math.PI/2:Math.PI;for(var _i335=0;_i335<=SEGMENTS;++_i335){vertices.push(cornerX+(RADIUS-LINE_WIDTH)*Math.cos(phi),cornerY+(RADIUS-LINE_WIDTH)*Math.sin(phi),0,cornerX+RADIUS*Math.cos(phi),cornerY+RADIUS*Math.sin(phi),0);phi+=DELTA_PHI;}};var PlacementBox=function(_Mesh){_inherits(PlacementBox,_Mesh);var _super16=_createSuper(PlacementBox);function PlacementBox(model){var _this32;_classCallCheck(this,PlacementBox);var geometry=new BufferGeometry();var triangles=[];var vertices=[];var size=model.size,boundingBox=model.boundingBox;var x=size.x/2;var y=size.z/2;addCorner(vertices,x,y);addCorner(vertices,-x,y);addCorner(vertices,-x,-y);addCorner(vertices,x,-y);var numVertices=vertices.length/3;for(var _i336=0;_i336<numVertices-2;_i336+=2){triangles.push(_i336,_i336+1,_i336+3,_i336,_i336+3,_i336+2);}var i=numVertices-2;triangles.push(i,i+1,1,i,1,0);geometry.setAttribute('position',new Float32BufferAttribute(vertices,3));geometry.setIndex(triangles);_this32=_super16.call(this,geometry);var material=_this32.material;material.side=DoubleSide;material.transparent=true;material.opacity=0;_this32.goalOpacity=0;_this32.opacityDamper=new Damper();_this32.hitPlane=new Mesh(new PlaneBufferGeometry(size.x+2*RADIUS,size.z+2*RADIUS));_this32.hitPlane.visible=false;_this32.add(_this32.hitPlane);_this32.rotateX(-Math.PI/2);boundingBox.getCenter(_this32.position);_this32.shadowHeight=boundingBox.min.y;_this32.position.y=_this32.shadowHeight;model.add(_assertThisInitialized(_this32));return _this32;}_createClass(PlacementBox,[{key:\"getHit\",value:function getHit(scene,screenX,screenY){vector2.set(screenX,-screenY);this.hitPlane.visible=true;var hitResult=scene.positionAndNormalFromPoint(vector2,this.hitPlane);this.hitPlane.visible=false;return hitResult==null?null:hitResult.position;}},{key:\"updateOpacity\",value:function updateOpacity(delta){var material=this.material;material.opacity=this.opacityDamper.update(material.opacity,this.goalOpacity,delta,1);this.visible=material.opacity>0;}},{key:\"dispose\",value:function dispose(){var _this$hitPlane=this.hitPlane,geometry=_this$hitPlane.geometry,material=_this$hitPlane.material;geometry.dispose();material.dispose();this.geometry.dispose();this.material.dispose();}},{key:\"offsetHeight\",set:function set(offset){this.position.y=this.shadowHeight+offset;},get:function get(){return this.position.y-this.shadowHeight;}},{key:\"show\",set:function set(visible){this.goalOpacity=visible?MAX_OPACITY:0;}}]);return PlacementBox;}(Mesh);var _a$5,_b$3,_c,_d,_e,_f,_g,_h,_j,_k,_l,_m,_o,_p,_q,_r,_s,_t,_u,_v,_w,_x$1,_y$1,_z$1,_0,_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12;var AR_SHADOW_INTENSITY=0.3;var ROTATION_RATE=1.5;var HIT_ANGLE_DEG=20;var INTRO_DAMPER_RATE=0.4;var SCALE_SNAP_HIGH=1.2;var SCALE_SNAP_LOW=1/SCALE_SNAP_HIGH;var MIN_VIEWPORT_SCALE=0.25;var ARStatus={NOT_PRESENTING:'not-presenting',SESSION_STARTED:'session-started',OBJECT_PLACED:'object-placed',FAILED:'failed'};var $presentedScene=Symbol('presentedScene');var $placementBox=Symbol('placementBox');var $lastTick=Symbol('lastTick');var $turntableRotation=Symbol('turntableRotation');var $oldShadowIntensity=Symbol('oldShadowIntensity');var $oldBackground=Symbol('oldBackground');var $rafId=Symbol('rafId');var $currentSession=Symbol('currentSession');var $tick=Symbol('tick');var $refSpace=Symbol('refSpace');var $viewerRefSpace=Symbol('viewerRefSpace');var $frame=Symbol('frame');var $initialized=Symbol('initialized');var $initialModelToWorld=Symbol('initialModelToWorld');var $placementComplete=Symbol('placementComplete');var $initialHitSource=Symbol('hitTestSource');var $transientHitTestSource=Symbol('transiertHitTestSource');var $inputSource=Symbol('inputSource');var $isTranslating=Symbol('isTranslating');var $isRotating=Symbol('isRotating');var $isScaling=Symbol('isScaling');var $lastDragPosition=Symbol('lastDragPosition');var $lastScalar=Symbol('lastScalar');var $goalPosition=Symbol('goalPosition');var $goalYaw=Symbol('goalYaw');var $goalScale=Symbol('goalScale');var $xDamper=Symbol('xDamper');var $yDamper=Symbol('yDamper');var $zDamper=Symbol('zDamper');var $yawDamper=Symbol('yawDamper');var $scaleDamper=Symbol('scaleDamper');var $damperRate=Symbol('damperRate');var $resolveCleanup=Symbol('resolveCleanup');var $exitWebXRButtonContainer=Symbol('exitWebXRButtonContainer');var $onWebXRFrame=Symbol('onWebXRFrame');var $postSessionCleanup=Symbol('postSessionCleanup');var $updateCamera=Symbol('updateCamera');var $placeInitially=Symbol('placeInitially');var $getHitPoint=Symbol('getHitPoint');var $onSelectStart=Symbol('onSelectStart');var $onSelectEnd=Symbol('onSelect');var $onUpdateScene=Symbol('onUpdateScene');var $fingerSeparation=Symbol('fingerSeparation');var $processInput=Symbol('processInput');var $moveScene=Symbol('moveScene');var $onExitWebXRButtonContainerClick=Symbol('onExitWebXRButtonContainerClick');var vector3$1=new Vector3();var matrix4=new Matrix4();var hitPosition=new Vector3();var ARRenderer=function(_EventDispatcher2){_inherits(ARRenderer,_EventDispatcher2);var _super17=_createSuper(ARRenderer);function ARRenderer(renderer){var _this33;_classCallCheck(this,ARRenderer);_this33=_super17.call(this);_this33.renderer=renderer;_this33.camera=new PerspectiveCamera();_this33[_a$5]=null;_this33[_b$3]=null;_this33[_c]=null;_this33[_d]=null;_this33[_e]=null;_this33[_f]=null;_this33[_g]=null;_this33[_h]=null;_this33[_j]=null;_this33[_k]=null;_this33[_l]=null;_this33[_m]=null;_this33[_o]=null;_this33[_p]=null;_this33[_q]=null;_this33[_r]=null;_this33[_s]=false;_this33[_t]=new Matrix4();_this33[_u]=false;_this33[_v]=false;_this33[_w]=false;_this33[_x$1]=false;_this33[_y$1]=new Vector3();_this33[_z$1]=0;_this33[_0]=new Vector3();_this33[_1]=0;_this33[_2]=1;_this33[_3]=new Damper();_this33[_4]=new Damper();_this33[_5]=new Damper();_this33[_6]=new Damper();_this33[_7]=new Damper();_this33[_8]=1;_this33[_9]=function(){return _this33.stopPresenting();};_this33[_10]=function(){if(_this33[$placementBox]!=null&&_this33.isPresenting){_this33[$placementBox].dispose();_this33[$placementBox]=new PlacementBox(_this33[$presentedScene].model);}};_this33[_11]=function(event){var hitSource=_this33[$transientHitTestSource];if(hitSource==null){return;}var fingers=_this33[$frame].getHitTestResultsForTransientInput(hitSource);var scene=_this33[$presentedScene];var box=_this33[$placementBox];if(fingers.length===1){_this33[$inputSource]=event.inputSource;var axes=_this33[$inputSource].gamepad.axes;var _hitPosition=box.getHit(_this33[$presentedScene],axes[0],axes[1]);box.show=true;if(_hitPosition!=null){_this33[$isTranslating]=true;_this33[$lastDragPosition].copy(_hitPosition);}else{_this33[$isRotating]=true;_this33[$lastScalar]=axes[0];}}else if(fingers.length===2&&scene.canScale){box.show=true;_this33[$isScaling]=true;_this33[$lastScalar]=_this33[$fingerSeparation](fingers)/scene.scale.x;}};_this33[_12]=function(){_this33[$isTranslating]=false;_this33[$isRotating]=false;_this33[$isScaling]=false;_this33[$inputSource]=null;_this33[$goalPosition].y+=_this33[$placementBox].offsetHeight*_this33[$presentedScene].scale.x;_this33[$placementBox].show=false;};_this33.threeRenderer=renderer.threeRenderer;_this33.camera.matrixAutoUpdate=false;return _this33;}_createClass(ARRenderer,[{key:\"resolveARSession\",value:function(){var _resolveARSession=_asyncToGenerator(regeneratorRuntime.mark(function _callee8(scene){var session,gl,waitForXRAnimationFrame,_session$renderState$,framebuffer,framebufferWidth,framebufferHeight,exitButton;return regeneratorRuntime.wrap(function _callee8$(_context9){while(1){switch(_context9.prev=_context9.next){case 0:assertIsArCandidate();_context9.next=3;return navigator.xr.requestSession('immersive-ar',{requiredFeatures:['hit-test'],optionalFeatures:['dom-overlay'],domOverlay:{root:scene.element.shadowRoot.querySelector('div.default')}});case 3:session=_context9.sent;gl=this.threeRenderer.context;_context9.next=7;return gl.makeXRCompatible();case 7:session.updateRenderState({baseLayer:new XRWebGLLayer(session,gl,{alpha:true})});waitForXRAnimationFrame=new Promise(function(resolve,_reject){session.requestAnimationFrame(function(){return resolve();});});_context9.next=11;return waitForXRAnimationFrame;case 11:scene.element[$onResize](window.screen);_session$renderState$=session.renderState.baseLayer,framebuffer=_session$renderState$.framebuffer,framebufferWidth=_session$renderState$.framebufferWidth,framebufferHeight=_session$renderState$.framebufferHeight;this.threeRenderer.setFramebuffer(framebuffer);this.threeRenderer.setPixelRatio(1);this.threeRenderer.setSize(framebufferWidth,framebufferHeight,false);exitButton=scene.element.shadowRoot.querySelector('.slot.exit-webxr-ar-button');exitButton.classList.add('enabled');exitButton.addEventListener('click',this[$onExitWebXRButtonContainerClick]);this[$exitWebXRButtonContainer]=exitButton;return _context9.abrupt(\"return\",session);case 21:case\"end\":return _context9.stop();}}},_callee8,this);}));function resolveARSession(_x15){return _resolveARSession.apply(this,arguments);}return resolveARSession;}()},{key:\"supportsPresentation\",value:function(){var _supportsPresentation=_asyncToGenerator(regeneratorRuntime.mark(function _callee9(){return regeneratorRuntime.wrap(function _callee9$(_context10){while(1){switch(_context10.prev=_context10.next){case 0:_context10.prev=0;assertIsArCandidate();_context10.next=4;return navigator.xr.isSessionSupported('immersive-ar');case 4:return _context10.abrupt(\"return\",_context10.sent);case 7:_context10.prev=7;_context10.t0=_context10[\"catch\"](0);return _context10.abrupt(\"return\",false);case 10:case\"end\":return _context10.stop();}}},_callee9,null,[[0,7]]);}));function supportsPresentation(){return _supportsPresentation.apply(this,arguments);}return supportsPresentation;}()},{key:\"present\",value:function(){var _present=_asyncToGenerator(regeneratorRuntime.mark(function _callee10(scene){var _this34=this;var waitForAnimationFrame,currentSession,radians,ray;return regeneratorRuntime.wrap(function _callee10$(_context11){while(1){switch(_context11.prev=_context11.next){case 0:if(this.isPresenting){console.warn('Cannot present while a model is already presenting');}waitForAnimationFrame=new Promise(function(resolve,_reject){requestAnimationFrame(function(){return resolve();});});scene.model.setHotspotsVisibility(false);scene.isDirty=true;_context11.next=6;return waitForAnimationFrame;case 6:this[$presentedScene]=scene;_context11.next=9;return this.resolveARSession(scene);case 9:currentSession=_context11.sent;currentSession.addEventListener('end',function(){_this34[$postSessionCleanup]();},{once:true});_context11.next=13;return currentSession.requestReferenceSpace('local');case 13:this[$refSpace]=_context11.sent;_context11.next=16;return currentSession.requestReferenceSpace('viewer');case 16:this[$viewerRefSpace]=_context11.sent;scene.setCamera(this.camera);this[$initialized]=false;this[$damperRate]=INTRO_DAMPER_RATE;this[$turntableRotation]=scene.yaw;scene.yaw=0;this[$goalYaw]=0;this[$goalScale]=1;this[$oldBackground]=scene.background;scene.background=null;this[$oldShadowIntensity]=scene.shadowIntensity;scene.setShadowIntensity(0);scene.addEventListener('model-load',this[$onUpdateScene]);radians=HIT_ANGLE_DEG*Math.PI/180;ray=new XRRay(new DOMPoint(0,0,0),{x:0,y:-Math.sin(radians),z:-Math.cos(radians)});currentSession.requestHitTestSource({space:this[$viewerRefSpace],offsetRay:ray}).then(function(hitTestSource){_this34[$initialHitSource]=hitTestSource;});this[$currentSession]=currentSession;this[$placementBox]=new PlacementBox(scene.model);this[$placementComplete]=false;this[$lastTick]=performance.now();this[$tick]();case 37:case\"end\":return _context11.stop();}}},_callee10,this);}));function present(_x16){return _present.apply(this,arguments);}return present;}()},{key:\"stopPresenting\",value:function(){var _stopPresenting=_asyncToGenerator(regeneratorRuntime.mark(function _callee11(){var _this35=this;var cleanupPromise;return regeneratorRuntime.wrap(function _callee11$(_context12){while(1){switch(_context12.prev=_context12.next){case 0:if(this.isPresenting){_context12.next=2;break;}return _context12.abrupt(\"return\");case 2:cleanupPromise=new Promise(function(resolve){_this35[$resolveCleanup]=resolve;});_context12.prev=3;_context12.next=6;return this[$currentSession].end();case 6:_context12.next=8;return cleanupPromise;case 8:_context12.next=15;break;case 10:_context12.prev=10;_context12.t0=_context12[\"catch\"](3);console.warn('Error while trying to end AR session');console.warn(_context12.t0);this[$postSessionCleanup]();case 15:case\"end\":return _context12.stop();}}},_callee11,this,[[3,10]]);}));function stopPresenting(){return _stopPresenting.apply(this,arguments);}return stopPresenting;}()},{key:(_a$5=$placementBox,_b$3=$lastTick,_c=$turntableRotation,_d=$oldShadowIntensity,_e=$oldBackground,_f=$rafId,_g=$currentSession,_h=$refSpace,_j=$viewerRefSpace,_k=$frame,_l=$initialHitSource,_m=$transientHitTestSource,_o=$inputSource,_p=$presentedScene,_q=$resolveCleanup,_r=$exitWebXRButtonContainer,_s=$initialized,_t=$initialModelToWorld,_u=$placementComplete,_v=$isTranslating,_w=$isRotating,_x$1=$isScaling,_y$1=$lastDragPosition,_z$1=$lastScalar,_0=$goalPosition,_1=$goalYaw,_2=$goalScale,_3=$xDamper,_4=$yDamper,_5=$zDamper,_6=$yawDamper,_7=$scaleDamper,_8=$damperRate,_9=$onExitWebXRButtonContainerClick,$postSessionCleanup),value:function value(){this.threeRenderer.setFramebuffer(null);var session=this[$currentSession];if(session!=null){session.removeEventListener('selectstart',this[$onSelectStart]);session.removeEventListener('selectend',this[$onSelectEnd]);session.cancelAnimationFrame(this[$rafId]);this[$currentSession]=null;}var scene=this[$presentedScene];if(scene!=null){var model=scene.model,element=scene.element;scene.setCamera(scene.camera);model.remove(this[$placementBox]);scene.position.set(0,0,0);scene.scale.set(1,1,1);model.setShadowScaleAndOffset(1,0);var yaw=this[$turntableRotation];if(yaw!=null){scene.yaw=yaw;}var intensity=this[$oldShadowIntensity];if(intensity!=null){scene.setShadowIntensity(intensity);}var background=this[$oldBackground];if(background!=null){scene.background=background;}scene.removeEventListener('model-load',this[$onUpdateScene]);model.orientHotspots(0);element.requestUpdate('cameraTarget');element[$onResize](element.getBoundingClientRect());}this.renderer.height=0;var exitButton=this[$exitWebXRButtonContainer];if(exitButton!=null){exitButton.classList.remove('enabled');exitButton.removeEventListener('click',this[$onExitWebXRButtonContainerClick]);this[$exitWebXRButtonContainer]=null;}var hitSource=this[$transientHitTestSource];if(hitSource!=null){hitSource.cancel();this[$transientHitTestSource]=null;}var hitSourceInitial=this[$initialHitSource];if(hitSourceInitial!=null){hitSourceInitial.cancel();this[$initialHitSource]=null;}if(this[$placementBox]!=null){this[$placementBox].dispose();this[$placementBox]=null;}this[$lastTick]=null;this[$turntableRotation]=null;this[$oldShadowIntensity]=null;this[$oldBackground]=null;this[$rafId]=null;this[$refSpace]=null;this[$presentedScene]=null;this[$viewerRefSpace]=null;this[$frame]=null;this[$inputSource]=null;if(this[$resolveCleanup]!=null){this[$resolveCleanup]();}this.dispatchEvent({type:'status',status:ARStatus.NOT_PRESENTING});}},{key:\"updateTarget\",value:function updateTarget(){var scene=this[$presentedScene];if(scene!=null){var _target3=scene.getTarget();scene.setTarget(_target3.x,scene.model.boundingBox.min.y,_target3.z);}}},{key:(_10=$onUpdateScene,$updateCamera),value:function value(view){var camera=this.camera;var cameraMatrix=camera.matrix;cameraMatrix.fromArray(view.transform.matrix);camera.updateMatrixWorld(true);camera.position.setFromMatrixPosition(cameraMatrix);if(this[$initialHitSource]!=null){var _this$$presentedScene=this[$presentedScene],position=_this$$presentedScene.position,model=_this$$presentedScene.model;var radius=model.idealCameraDistance;camera.getWorldDirection(position);position.multiplyScalar(radius);position.add(camera.position);}if(!this[$initialized]){camera.projectionMatrix.fromArray(view.projectionMatrix);camera.projectionMatrixInverse.getInverse(camera.projectionMatrix);var _camera$position=camera.position,x=_camera$position.x,z=_camera$position.z;var scene=this[$presentedScene];scene.pointTowards(x,z);scene.model.updateMatrixWorld(true);this[$goalYaw]=scene.yaw;this[$initialModelToWorld].copy(scene.model.matrixWorld);scene.model.setHotspotsVisibility(true);this[$initialized]=true;this.dispatchEvent({type:'status',status:ARStatus.SESSION_STARTED});}if(view.requestViewportScale&&view.recommendedViewportScale){var scale=view.recommendedViewportScale;view.requestViewportScale(Math.max(scale,MIN_VIEWPORT_SCALE));}var layer=this[$currentSession].renderState.baseLayer;var viewport=layer.getViewport(view);this.threeRenderer.setViewport(viewport.x,viewport.y,viewport.width,viewport.height);this[$presentedScene].model.orientHotspots(Math.atan2(cameraMatrix.elements[1],cameraMatrix.elements[5]));}},{key:$placeInitially,value:function value(frame){var _this36=this;var hitSource=this[$initialHitSource];if(hitSource==null){return;}var hitTestResults=frame.getHitTestResults(hitSource);if(hitTestResults.length==0){return;}var hit=hitTestResults[0];var hitMatrix=this[$getHitPoint](hit);if(hitMatrix==null){return;}this.placeModel(hitMatrix);hitSource.cancel();this[$initialHitSource]=null;var session=frame.session;session.addEventListener('selectstart',this[$onSelectStart]);session.addEventListener('selectend',this[$onSelectEnd]);session.requestHitTestSourceForTransientInput({profile:'generic-touchscreen'}).then(function(hitTestSource){_this36[$transientHitTestSource]=hitTestSource;});}},{key:$getHitPoint,value:function value(hitResult){var pose=hitResult.getPose(this[$refSpace]);if(pose==null){return null;}var hitMatrix=matrix4.fromArray(pose.transform.matrix);return hitMatrix.elements[5]>0.75?hitPosition.setFromMatrixPosition(hitMatrix):null;}},{key:\"placeModel\",value:function placeModel(hit){var scene=this[$presentedScene];var model=scene.model;var _model$boundingBox=model.boundingBox,min=_model$boundingBox.min,max=_model$boundingBox.max;this[$placementBox].show=true;var goal=this[$goalPosition];goal.copy(hit);var floor=hit.y;var origin=this.camera.position.clone();var direction=hit.clone().sub(origin).normalize();origin.sub(direction.multiplyScalar(model.idealCameraDistance));var ray=new Ray(origin,direction.normalize());var modelToWorld=this[$initialModelToWorld];var modelPosition=new Vector3().setFromMatrixPosition(modelToWorld).add(hit);modelToWorld.setPosition(modelPosition);var world2Model=new Matrix4().getInverse(modelToWorld);ray.applyMatrix4(world2Model);max.y+=10;ray.intersectBox(model.boundingBox,modelPosition);max.y-=10;if(modelPosition!=null){modelPosition.applyMatrix4(modelToWorld);goal.add(hit).sub(modelPosition);}var target=scene.getTarget();scene.setTarget(target.x,min.y,target.z);goal.y=floor;this.dispatchEvent({type:'status',status:ARStatus.OBJECT_PLACED});}},{key:(_11=$onSelectStart,_12=$onSelectEnd,$fingerSeparation),value:function value(fingers){var fingerOne=fingers[0].inputSource.gamepad.axes;var fingerTwo=fingers[1].inputSource.gamepad.axes;var deltaX=fingerTwo[0]-fingerOne[0];var deltaY=fingerTwo[1]-fingerOne[1];return Math.sqrt(deltaX*deltaX+deltaY*deltaY);}},{key:$processInput,value:function value(frame){var _this37=this;var hitSource=this[$transientHitTestSource];if(hitSource==null){return;}if(!this[$isTranslating]&&!this[$isScaling]&&!this[$isRotating]){return;}var fingers=frame.getHitTestResultsForTransientInput(hitSource);var scene=this[$presentedScene];var scale=scene.scale.x;if(this[$isScaling]){if(fingers.length<2){this[$isScaling]=false;}else{var separation=this[$fingerSeparation](fingers);var _scale2=separation/this[$lastScalar];this[$goalScale]=_scale2<SCALE_SNAP_HIGH&&_scale2>SCALE_SNAP_LOW?1:_scale2;}return;}else if(fingers.length===2&&scene.canScale){this[$isTranslating]=false;this[$isRotating]=false;this[$isScaling]=true;this[$lastScalar]=this[$fingerSeparation](fingers)/scale;return;}if(this[$isRotating]){var thisDragX=this[$inputSource].gamepad.axes[0];this[$goalYaw]+=(thisDragX-this[$lastScalar])*ROTATION_RATE;this[$lastScalar]=thisDragX;}else if(this[$isTranslating]){fingers.forEach(function(finger){if(finger.inputSource!==_this37[$inputSource]||finger.results.length<1){return;}var hit=_this37[$getHitPoint](finger.results[0]);if(hit==null){return;}_this37[$goalPosition].sub(_this37[$lastDragPosition]);var offset=hit.y-_this37[$lastDragPosition].y;if(offset<0){_this37[$placementBox].offsetHeight=offset/scale;_this37[$presentedScene].model.setShadowScaleAndOffset(scale,offset);var cameraPosition=vector3$1.copy(_this37.camera.position);var alpha=-offset/(cameraPosition.y-hit.y);cameraPosition.multiplyScalar(alpha);hit.multiplyScalar(1-alpha).add(cameraPosition);}_this37[$goalPosition].add(hit);_this37[$lastDragPosition].copy(hit);});}}},{key:$moveScene,value:function value(delta){var scene=this[$presentedScene];var model=scene.model,position=scene.position,yaw=scene.yaw;var radius=model.idealCameraDistance;var goal=this[$goalPosition];var oldScale=scene.scale.x;var box=this[$placementBox];if(this[$initialHitSource]==null&&(!goal.equals(position)||this[$goalScale]!==oldScale)){var x=position.x,y=position.y,z=position.z;delta*=this[$damperRate];x=this[$xDamper].update(x,goal.x,delta,radius);y=this[$yDamper].update(y,goal.y,delta,radius);z=this[$zDamper].update(z,goal.z,delta,radius);position.set(x,y,z);var newScale=this[$scaleDamper].update(oldScale,this[$goalScale],delta,1);scene.scale.set(newScale,newScale,newScale);if(!this[$isTranslating]){var offset=goal.y-y;if(this[$placementComplete]){box.offsetHeight=offset/newScale;model.setShadowScaleAndOffset(newScale,offset);}else if(offset===0){this[$placementComplete]=true;box.show=false;scene.setShadowIntensity(AR_SHADOW_INTENSITY);this[$damperRate]=1;}}}box.updateOpacity(delta);scene.updateTarget(delta);scene.updateMatrixWorld(true);scene.yaw=this[$yawDamper].update(yaw,this[$goalYaw],delta,Math.PI);}},{key:$tick,value:function value(){var _this38=this;this[$rafId]=this[$currentSession].requestAnimationFrame(function(time,frame){return _this38[$onWebXRFrame](time,frame);});}},{key:$onWebXRFrame,value:function value(time,frame){this[$frame]=frame;var pose=frame.getViewerPose(this[$refSpace]);this[$tick]();var scene=this[$presentedScene];if(pose==null||scene==null){return;}var isFirstView=true;var _iterator5=_createForOfIteratorHelper(pose.views),_step5;try{for(_iterator5.s();!(_step5=_iterator5.n()).done;){var _view3=_step5.value;this[$updateCamera](_view3);if(isFirstView){this[$placeInitially](frame);this[$processInput](frame);var delta=time-this[$lastTick];this[$moveScene](delta);this.renderer.preRender(scene,time,delta);this[$lastTick]=time;}this.threeRenderer.render(scene,this.camera);isFirstView=false;}}catch(err){_iterator5.e(err);}finally{_iterator5.f();}}},{key:\"presentedScene\",get:function get(){return this[$presentedScene];}},{key:\"isPresenting\",get:function get(){return this[$presentedScene]!=null;}}]);return ARRenderer;}(EventDispatcher);var Debugger=function(){function Debugger(renderer){_classCallCheck(this,Debugger);renderer.threeRenderer.debug={checkShaderErrors:true};Promise.resolve().then(function(){self.dispatchEvent(new CustomEvent('model-viewer-renderer-debug',{detail:{renderer:renderer,THREE:{ShaderMaterial:ShaderMaterial,Texture:Texture,Mesh:Mesh,Scene:Scene,PlaneBufferGeometry:PlaneBufferGeometry,OrthographicCamera:OrthographicCamera,WebGLRenderTarget:WebGLRenderTarget}}}));});}_createClass(Debugger,[{key:\"addScene\",value:function addScene(scene){self.dispatchEvent(new CustomEvent('model-viewer-scene-added-debug',{detail:{scene:scene}}));}},{key:\"removeScene\",value:function removeScene(scene){self.dispatchEvent(new CustomEvent('model-viewer-scene-removed-debug',{detail:{scene:scene}}));}}]);return Debugger;}();var $threeGLTF=Symbol('threeGLTF');var $gltf=Symbol('gltf');var $gltfElementMap=Symbol('gltfElementMap');var $threeObjectMap=Symbol('threeObjectMap');var $parallelTraverseThreeScene=Symbol('parallelTraverseThreeScene');var $correlateOriginalThreeGLTF=Symbol('correlateOriginalThreeGLTF');var $correlateCloneThreeGLTF=Symbol('correlateCloneThreeGLTF');var CorrelatedSceneGraph=function(){function CorrelatedSceneGraph(threeGLTF,gltf,threeObjectMap,gltfElementMap){_classCallCheck(this,CorrelatedSceneGraph);this[$threeGLTF]=threeGLTF;this[$gltf]=gltf;this[$gltfElementMap]=gltfElementMap;this[$threeObjectMap]=threeObjectMap;}_createClass(CorrelatedSceneGraph,[{key:\"threeGLTF\",get:function get(){return this[$threeGLTF];}},{key:\"gltf\",get:function get(){return this[$gltf];}},{key:\"gltfElementMap\",get:function get(){return this[$gltfElementMap];}},{key:\"threeObjectMap\",get:function get(){return this[$threeObjectMap];}}],[{key:\"from\",value:function from(threeGLTF,upstreamCorrelatedSceneGraph){if(upstreamCorrelatedSceneGraph!=null){return this[$correlateCloneThreeGLTF](threeGLTF,upstreamCorrelatedSceneGraph);}else{return this[$correlateOriginalThreeGLTF](threeGLTF);}}},{key:$correlateOriginalThreeGLTF,value:function value(threeGLTF){var gltf=threeGLTF.parser.json;var associations=threeGLTF.parser.associations;var gltfElementMap=new Map();associations.forEach(function(gltfElementReference,threeObject){if(gltfElementReference==null){return;}var type=gltfElementReference.type,index=gltfElementReference.index;var elementArray=gltf[type]||[];var gltfElement=elementArray[index];if(gltfElement==null){return;}var threeObjects=gltfElementMap.get(gltfElement);if(threeObjects==null){threeObjects=new Set();gltfElementMap.set(gltfElement,threeObjects);}threeObjects.add(threeObject);});return new CorrelatedSceneGraph(threeGLTF,gltf,associations,gltfElementMap);}},{key:$correlateCloneThreeGLTF,value:function value(cloneThreeGLTF,upstreamCorrelatedSceneGraph){var originalThreeGLTF=upstreamCorrelatedSceneGraph.threeGLTF;var originalGLTF=upstreamCorrelatedSceneGraph.gltf;var cloneGLTF=JSON.parse(JSON.stringify(originalGLTF));var cloneThreeObjectMap=new Map();var cloneGLTFELementMap=new Map();for(var _i337=0;_i337<originalThreeGLTF.scenes.length;_i337++){this[$parallelTraverseThreeScene](originalThreeGLTF.scenes[_i337],cloneThreeGLTF.scenes[_i337],function(object,cloneObject){var elementReference=upstreamCorrelatedSceneGraph.threeObjectMap.get(object);if(elementReference!=null){var type=elementReference.type,index=elementReference.index;var cloneElement=cloneGLTF[type][index];cloneThreeObjectMap.set(cloneObject,{type:type,index:index});var cloneObjects=cloneGLTFELementMap.get(cloneElement)||new Set();cloneObjects.add(cloneObject);cloneGLTFELementMap.set(cloneElement,cloneObjects);}});}return new CorrelatedSceneGraph(cloneThreeGLTF,cloneGLTF,cloneThreeObjectMap,cloneGLTFELementMap);}},{key:$parallelTraverseThreeScene,value:function value(sceneOne,sceneTwo,callback){var isMesh=function isMesh(object){return object.isMesh;};var traverse=function traverse(a,b){callback(a,b);if(a.isObject3D){if(isMesh(a)){if(Array.isArray(a.material)){for(var _i338=0;_i338<a.material.length;++_i338){traverse(a.material[_i338],b.material[_i338]);}}else{traverse(a.material,b.material);}}for(var _i339=0;_i339<a.children.length;++_i339){traverse(a.children[_i339],b.children[_i339]);}}};traverse(sceneOne,sceneTwo);}}]);return CorrelatedSceneGraph;}();var SkeletonUtils={retarget:function(){var pos=new Vector3(),quat=new Quaternion(),scale=new Vector3(),bindBoneMatrix=new Matrix4(),relativeMatrix=new Matrix4(),globalMatrix=new Matrix4();return function(target,source,options){options=options||{};options.preserveMatrix=options.preserveMatrix!==undefined?options.preserveMatrix:true;options.preservePosition=options.preservePosition!==undefined?options.preservePosition:true;options.preserveHipPosition=options.preserveHipPosition!==undefined?options.preserveHipPosition:false;options.useTargetMatrix=options.useTargetMatrix!==undefined?options.useTargetMatrix:false;options.hip=options.hip!==undefined?options.hip:\"hip\";options.names=options.names||{};var sourceBones=source.isObject3D?source.skeleton.bones:this.getBones(source),bones=target.isObject3D?target.skeleton.bones:this.getBones(target),bindBones,bone,name,boneTo,bonesPosition,i;if(target.isObject3D){target.skeleton.pose();}else{options.useTargetMatrix=true;options.preserveMatrix=false;}if(options.preservePosition){bonesPosition=[];for(i=0;i<bones.length;i++){bonesPosition.push(bones[i].position.clone());}}if(options.preserveMatrix){target.updateMatrixWorld();target.matrixWorld.identity();for(i=0;i<target.children.length;++i){target.children[i].updateMatrixWorld(true);}}if(options.offsets){bindBones=[];for(i=0;i<bones.length;++i){bone=bones[i];name=options.names[bone.name]||bone.name;if(options.offsets&&options.offsets[name]){bone.matrix.multiply(options.offsets[name]);bone.matrix.decompose(bone.position,bone.quaternion,bone.scale);bone.updateMatrixWorld();}bindBones.push(bone.matrixWorld.clone());}}for(i=0;i<bones.length;++i){bone=bones[i];name=options.names[bone.name]||bone.name;boneTo=this.getBoneByName(name,sourceBones);globalMatrix.copy(bone.matrixWorld);if(boneTo){boneTo.updateMatrixWorld();if(options.useTargetMatrix){relativeMatrix.copy(boneTo.matrixWorld);}else{relativeMatrix.getInverse(target.matrixWorld);relativeMatrix.multiply(boneTo.matrixWorld);}\nscale.setFromMatrixScale(relativeMatrix);relativeMatrix.scale(scale.set(1/scale.x,1/scale.y,1/scale.z));globalMatrix.makeRotationFromQuaternion(quat.setFromRotationMatrix(relativeMatrix));if(target.isObject3D){var boneIndex=bones.indexOf(bone),wBindMatrix=bindBones?bindBones[boneIndex]:bindBoneMatrix.getInverse(target.skeleton.boneInverses[boneIndex]);globalMatrix.multiply(wBindMatrix);}globalMatrix.copyPosition(relativeMatrix);}if(bone.parent&&bone.parent.isBone){bone.matrix.getInverse(bone.parent.matrixWorld);bone.matrix.multiply(globalMatrix);}else{bone.matrix.copy(globalMatrix);}if(options.preserveHipPosition&&name===options.hip){bone.matrix.setPosition(pos.set(0,bone.position.y,0));}bone.matrix.decompose(bone.position,bone.quaternion,bone.scale);bone.updateMatrixWorld();}if(options.preservePosition){for(i=0;i<bones.length;++i){bone=bones[i];name=options.names[bone.name]||bone.name;if(name!==options.hip){bone.position.copy(bonesPosition[i]);}}}if(options.preserveMatrix){target.updateMatrixWorld(true);}};}(),retargetClip:function retargetClip(target,source,clip,options){options=options||{};options.useFirstFramePosition=options.useFirstFramePosition!==undefined?options.useFirstFramePosition:false;options.fps=options.fps!==undefined?options.fps:30;options.names=options.names||[];if(!source.isObject3D){source=this.getHelperFromSkeleton(source);}var numFrames=Math.round(clip.duration*(options.fps/1000)*1000),delta=1/options.fps,convertedTracks=[],mixer=new AnimationMixer(source),bones=this.getBones(target.skeleton),boneDatas=[],positionOffset,bone,boneTo,boneData,name,i,j;mixer.clipAction(clip).play();mixer.update(0);source.updateMatrixWorld();for(i=0;i<numFrames;++i){var time=i*delta;this.retarget(target,source,options);for(j=0;j<bones.length;++j){name=options.names[bones[j].name]||bones[j].name;boneTo=this.getBoneByName(name,source.skeleton);if(boneTo){bone=bones[j];boneData=boneDatas[j]=boneDatas[j]||{bone:bone};if(options.hip===name){if(!boneData.pos){boneData.pos={times:new Float32Array(numFrames),values:new Float32Array(numFrames*3)};}if(options.useFirstFramePosition){if(i===0){positionOffset=bone.position.clone();}bone.position.sub(positionOffset);}boneData.pos.times[i]=time;bone.position.toArray(boneData.pos.values,i*3);}if(!boneData.quat){boneData.quat={times:new Float32Array(numFrames),values:new Float32Array(numFrames*4)};}boneData.quat.times[i]=time;bone.quaternion.toArray(boneData.quat.values,i*4);}}mixer.update(delta);source.updateMatrixWorld();}for(i=0;i<boneDatas.length;++i){boneData=boneDatas[i];if(boneData){if(boneData.pos){convertedTracks.push(new VectorKeyframeTrack(\".bones[\"+boneData.bone.name+\"].position\",boneData.pos.times,boneData.pos.values));}convertedTracks.push(new QuaternionKeyframeTrack(\".bones[\"+boneData.bone.name+\"].quaternion\",boneData.quat.times,boneData.quat.values));}}mixer.uncacheAction(clip);return new AnimationClip(clip.name,-1,convertedTracks);},getHelperFromSkeleton:function getHelperFromSkeleton(skeleton){var source=new SkeletonHelper(skeleton.bones[0]);source.skeleton=skeleton;return source;},getSkeletonOffsets:function(){var targetParentPos=new Vector3(),targetPos=new Vector3(),sourceParentPos=new Vector3(),sourcePos=new Vector3(),targetDir=new Vector2(),sourceDir=new Vector2();return function(target,source,options){options=options||{};options.hip=options.hip!==undefined?options.hip:\"hip\";options.names=options.names||{};if(!source.isObject3D){source=this.getHelperFromSkeleton(source);}var nameKeys=Object.keys(options.names),nameValues=Object.values(options.names),sourceBones=source.isObject3D?source.skeleton.bones:this.getBones(source),bones=target.isObject3D?target.skeleton.bones:this.getBones(target),offsets=[],bone,boneTo,name,i;target.skeleton.pose();for(i=0;i<bones.length;++i){bone=bones[i];name=options.names[bone.name]||bone.name;boneTo=this.getBoneByName(name,sourceBones);if(boneTo&&name!==options.hip){var boneParent=this.getNearestBone(bone.parent,nameKeys),boneToParent=this.getNearestBone(boneTo.parent,nameValues);boneParent.updateMatrixWorld();boneToParent.updateMatrixWorld();targetParentPos.setFromMatrixPosition(boneParent.matrixWorld);targetPos.setFromMatrixPosition(bone.matrixWorld);sourceParentPos.setFromMatrixPosition(boneToParent.matrixWorld);sourcePos.setFromMatrixPosition(boneTo.matrixWorld);targetDir.subVectors(new Vector2(targetPos.x,targetPos.y),new Vector2(targetParentPos.x,targetParentPos.y)).normalize();sourceDir.subVectors(new Vector2(sourcePos.x,sourcePos.y),new Vector2(sourceParentPos.x,sourceParentPos.y)).normalize();var laterialAngle=targetDir.angle()-sourceDir.angle();var offset=new Matrix4().makeRotationFromEuler(new Euler(0,0,laterialAngle));bone.matrix.multiply(offset);bone.matrix.decompose(bone.position,bone.quaternion,bone.scale);bone.updateMatrixWorld();offsets[name]=offset;}}return offsets;};}(),renameBones:function renameBones(skeleton,names){var bones=this.getBones(skeleton);for(var i=0;i<bones.length;++i){var bone=bones[i];if(names[bone.name]){bone.name=names[bone.name];}}return this;},getBones:function getBones(skeleton){return Array.isArray(skeleton)?skeleton:skeleton.bones;},getBoneByName:function getBoneByName(name,skeleton){for(var i=0,bones=this.getBones(skeleton);i<bones.length;i++){if(name===bones[i].name)return bones[i];}},getNearestBone:function getNearestBone(bone,names){while(bone.isBone){if(names.indexOf(bone.name)!==-1){return bone;}bone=bone.parent;}},findBoneTrackData:function findBoneTrackData(name,tracks){var regexp=/\\[(.*)\\]\\.(.*)/,result={name:name};for(var i=0;i<tracks.length;++i){var trackData=regexp.exec(tracks[i].name);if(trackData&&name===trackData[1]){result[trackData[2]]=i;}}return result;},getEqualsBonesNames:function getEqualsBonesNames(skeleton,targetSkeleton){var sourceBones=this.getBones(skeleton),targetBones=this.getBones(targetSkeleton),bones=[];search:for(var i=0;i<sourceBones.length;i++){var boneName=sourceBones[i].name;for(var j=0;j<targetBones.length;j++){if(boneName===targetBones[j].name){bones.push(boneName);continue search;}}}return bones;},clone:function clone(source){var sourceLookup=new Map();var cloneLookup=new Map();var clone=source.clone();parallelTraverse(source,clone,function(sourceNode,clonedNode){sourceLookup.set(clonedNode,sourceNode);cloneLookup.set(sourceNode,clonedNode);});clone.traverse(function(node){if(!node.isSkinnedMesh)return;var clonedMesh=node;var sourceMesh=sourceLookup.get(node);var sourceBones=sourceMesh.skeleton.bones;clonedMesh.skeleton=sourceMesh.skeleton.clone();clonedMesh.bindMatrix.copy(sourceMesh.bindMatrix);clonedMesh.skeleton.bones=sourceBones.map(function(bone){return cloneLookup.get(bone);});clonedMesh.bind(clonedMesh.skeleton,clonedMesh.bindMatrix);});return clone;}};function parallelTraverse(a,b,callback){callback(a,b);for(var i=0;i<a.children.length;i++){parallelTraverse(a.children[i],b.children[i],callback);}}var $prepared=Symbol('prepared');var $prepare=Symbol('prepare');var $preparedGLTF=Symbol('preparedGLTF');var $clone=Symbol('clone');var GLTFInstance=function(){function GLTFInstance(preparedGLTF){_classCallCheck(this,GLTFInstance);this[$preparedGLTF]=preparedGLTF;}_createClass(GLTFInstance,[{key:\"clone\",value:function clone(){var GLTFInstanceConstructor=this.constructor;var clonedGLTF=this[$clone]();return new GLTFInstanceConstructor(clonedGLTF);}},{key:\"dispose\",value:function dispose(){this.scenes.forEach(function(scene){scene.traverse(function(object){if(!object.isMesh){return;}var mesh=object;var materials=Array.isArray(mesh.material)?mesh.material:[mesh.material];materials.forEach(function(material){material.dispose();});mesh.geometry.dispose();});});}},{key:$clone,value:function value(){var source=this[$preparedGLTF];var scene=SkeletonUtils.clone(this.scene);var scenes=[scene];var userData=source.userData?Object.assign({},source.userData):{};return Object.assign(Object.assign({},source),{scene:scene,scenes:scenes,userData:userData});}},{key:\"parser\",get:function get(){return this[$preparedGLTF].parser;}},{key:\"animations\",get:function get(){return this[$preparedGLTF].animations;}},{key:\"scene\",get:function get(){return this[$preparedGLTF].scene;}},{key:\"scenes\",get:function get(){return this[$preparedGLTF].scenes;}},{key:\"cameras\",get:function get(){return this[$preparedGLTF].cameras;}},{key:\"asset\",get:function get(){return this[$preparedGLTF].asset;}},{key:\"userData\",get:function get(){return this[$preparedGLTF].userData;}}],[{key:\"prepare\",value:function prepare(source){if(source.scene==null){throw new Error('Model does not have a scene');}if(source[$prepared]){return source;}var prepared=this[$prepare](source);prepared[$prepared]=true;return prepared;}},{key:$prepare,value:function value(source){var scene=source.scene;var scenes=[scene];return Object.assign(Object.assign({},source),{scene:scene,scenes:scenes});}}]);return GLTFInstance;}();var alphaChunk=\"\\n#ifdef ALPHATEST\\n\\n    if ( diffuseColor.a < ALPHATEST ) discard;\\n    diffuseColor.a = 1.0;\\n\\n#endif\\n\";var $cloneAndPatchMaterial=Symbol('cloneAndPatchMaterial');var $correlatedSceneGraph=Symbol('correlatedSceneGraph');var ModelViewerGLTFInstance=function(_GLTFInstance2){_inherits(ModelViewerGLTFInstance,_GLTFInstance2);var _super18=_createSuper(ModelViewerGLTFInstance);function ModelViewerGLTFInstance(){_classCallCheck(this,ModelViewerGLTFInstance);return _super18.apply(this,arguments);}_createClass(ModelViewerGLTFInstance,[{key:$clone,value:function value(){var _this39=this;var clone=_get(_getPrototypeOf(ModelViewerGLTFInstance.prototype),$clone,this).call(this);var sourceUUIDToClonedMaterial=new Map();clone.scene.traverse(function(node){if(node.isMesh){var mesh=node;if(Array.isArray(mesh.material)){mesh.material=mesh.material.map(function(material){return _this39[$cloneAndPatchMaterial](material,sourceUUIDToClonedMaterial);});}else if(mesh.material!=null){mesh.material=_this39[$cloneAndPatchMaterial](mesh.material,sourceUUIDToClonedMaterial);}}});clone[$correlatedSceneGraph]=CorrelatedSceneGraph.from(clone,this.correlatedSceneGraph);return clone;}},{key:$cloneAndPatchMaterial,value:function value(material,sourceUUIDToClonedMaterial){if(sourceUUIDToClonedMaterial.has(material.uuid)){return sourceUUIDToClonedMaterial.get(material.uuid);}var clone=material.clone();var oldOnBeforeCompile=material.onBeforeCompile;clone.onBeforeCompile=material.isGLTFSpecularGlossinessMaterial?function(shader){oldOnBeforeCompile(shader,undefined);shader.fragmentShader=shader.fragmentShader.replace('#include <alphatest_fragment>',alphaChunk);}:function(shader){shader.fragmentShader=shader.fragmentShader.replace('#include <alphatest_fragment>',alphaChunk);oldOnBeforeCompile(shader,undefined);};clone.shadowSide=FrontSide;if(clone.transparent){clone.depthWrite=false;}if(!clone.alphaTest&&!clone.transparent){clone.alphaTest=-0.5;}sourceUUIDToClonedMaterial.set(material.uuid,clone);return clone;}},{key:\"correlatedSceneGraph\",get:function get(){return this[$preparedGLTF][$correlatedSceneGraph];}}],[{key:$prepare,value:function value(source){var prepared=_get(_getPrototypeOf(ModelViewerGLTFInstance),$prepare,this).call(this,source);if(prepared[$correlatedSceneGraph]==null){prepared[$correlatedSceneGraph]=CorrelatedSceneGraph.from(prepared);}var scene=prepared.scene;var meshesToDuplicate=[];scene.traverse(function(node){node.renderOrder=1000;node.frustumCulled=false;if(!node.name){node.name=node.uuid;}if(!node.isMesh){return;}node.castShadow=true;var mesh=node;var transparent=false;var materials=Array.isArray(mesh.material)?mesh.material:[mesh.material];materials.forEach(function(material){if(material.isMeshStandardMaterial){if(material.transparent&&material.side===DoubleSide){transparent=true;material.side=FrontSide;}Renderer.singleton.roughnessMipmapper.generateMipmaps(material);}});if(transparent){meshesToDuplicate.push(mesh);}});for(var _i340=0,_meshesToDuplicate=meshesToDuplicate;_i340<_meshesToDuplicate.length;_i340++){var mesh=_meshesToDuplicate[_i340];var materials=Array.isArray(mesh.material)?mesh.material:[mesh.material];var duplicateMaterials=materials.map(function(material){var backMaterial=material.clone();backMaterial.side=BackSide;return backMaterial;});var duplicateMaterial=Array.isArray(mesh.material)?duplicateMaterials:duplicateMaterials[0];var meshBack=new Mesh(mesh.geometry,duplicateMaterial);meshBack.renderOrder=-1;mesh.add(meshBack);}return prepared;}}]);return ModelViewerGLTFInstance;}(GLTFInstance);var RGBELoader=function RGBELoader(manager){DataTextureLoader.call(this,manager);this.type=UnsignedByteType;};RGBELoader.prototype=Object.assign(Object.create(DataTextureLoader.prototype),{constructor:RGBELoader,parse:function parse(buffer){var\nRGBE_RETURN_FAILURE=-1,rgbe_read_error=1,rgbe_write_error=2,rgbe_format_error=3,rgbe_memory_error=4,rgbe_error=function rgbe_error(rgbe_error_code,msg){switch(rgbe_error_code){case rgbe_read_error:console.error(\"RGBELoader Read Error: \"+(msg||''));break;case rgbe_write_error:console.error(\"RGBELoader Write Error: \"+(msg||''));break;case rgbe_format_error:console.error(\"RGBELoader Bad File Format: \"+(msg||''));break;default:case rgbe_memory_error:console.error(\"RGBELoader: Error: \"+(msg||''));}return RGBE_RETURN_FAILURE;},RGBE_VALID_PROGRAMTYPE=1,RGBE_VALID_FORMAT=2,RGBE_VALID_DIMENSIONS=4,NEWLINE=\"\\n\",fgets=function fgets(buffer,lineLimit,consume){lineLimit=!lineLimit?1024:lineLimit;var p=buffer.pos,i=-1,len=0,s='',chunkSize=128,chunk=String.fromCharCode.apply(null,new Uint16Array(buffer.subarray(p,p+chunkSize)));while(0>(i=chunk.indexOf(NEWLINE))&&len<lineLimit&&p<buffer.byteLength){s+=chunk;len+=chunk.length;p+=chunkSize;chunk+=String.fromCharCode.apply(null,new Uint16Array(buffer.subarray(p,p+chunkSize)));}if(-1<i){if(false!==consume)buffer.pos+=len+i+1;return s+chunk.slice(0,i);}return false;},RGBE_ReadHeader=function RGBE_ReadHeader(buffer){var line,match,magic_token_re=/^#\\?(\\S+)$/,gamma_re=/^\\s*GAMMA\\s*=\\s*(\\d+(\\.\\d+)?)\\s*$/,exposure_re=/^\\s*EXPOSURE\\s*=\\s*(\\d+(\\.\\d+)?)\\s*$/,format_re=/^\\s*FORMAT=(\\S+)\\s*$/,dimensions_re=/^\\s*\\-Y\\s+(\\d+)\\s+\\+X\\s+(\\d+)\\s*$/,header={valid:0,string:'',comments:'',programtype:'RGBE',format:'',gamma:1.0,exposure:1.0,width:0,height:0};if(buffer.pos>=buffer.byteLength||!(line=fgets(buffer))){return rgbe_error(rgbe_read_error,\"no header found\");}if(!(match=line.match(magic_token_re))){return rgbe_error(rgbe_format_error,\"bad initial token\");}header.valid|=RGBE_VALID_PROGRAMTYPE;header.programtype=match[1];header.string+=line+\"\\n\";while(true){line=fgets(buffer);if(false===line)break;header.string+=line+\"\\n\";if('#'===line.charAt(0)){header.comments+=line+\"\\n\";continue;}if(match=line.match(gamma_re)){header.gamma=parseFloat(match[1],10);}if(match=line.match(exposure_re)){header.exposure=parseFloat(match[1],10);}if(match=line.match(format_re)){header.valid|=RGBE_VALID_FORMAT;header.format=match[1];}if(match=line.match(dimensions_re)){header.valid|=RGBE_VALID_DIMENSIONS;header.height=parseInt(match[1],10);header.width=parseInt(match[2],10);}if(header.valid&RGBE_VALID_FORMAT&&header.valid&RGBE_VALID_DIMENSIONS)break;}if(!(header.valid&RGBE_VALID_FORMAT)){return rgbe_error(rgbe_format_error,\"missing format specifier\");}if(!(header.valid&RGBE_VALID_DIMENSIONS)){return rgbe_error(rgbe_format_error,\"missing image size specifier\");}return header;},RGBE_ReadPixels_RLE=function RGBE_ReadPixels_RLE(buffer,w,h){var data_rgba,offset,pos,count,byteValue,scanline_buffer,ptr,ptr_end,i,l,off,isEncodedRun,scanline_width=w,num_scanlines=h,rgbeStart;if(scanline_width<8||scanline_width>0x7fff||2!==buffer[0]||2!==buffer[1]||buffer[2]&0x80){return new Uint8Array(buffer);}if(scanline_width!==(buffer[2]<<8|buffer[3])){return rgbe_error(rgbe_format_error,\"wrong scanline width\");}data_rgba=new Uint8Array(4*w*h);if(!data_rgba.length){return rgbe_error(rgbe_memory_error,\"unable to allocate buffer space\");}offset=0;pos=0;ptr_end=4*scanline_width;rgbeStart=new Uint8Array(4);scanline_buffer=new Uint8Array(ptr_end);while(num_scanlines>0&&pos<buffer.byteLength){if(pos+4>buffer.byteLength){return rgbe_error(rgbe_read_error);}rgbeStart[0]=buffer[pos++];rgbeStart[1]=buffer[pos++];rgbeStart[2]=buffer[pos++];rgbeStart[3]=buffer[pos++];if(2!=rgbeStart[0]||2!=rgbeStart[1]||(rgbeStart[2]<<8|rgbeStart[3])!=scanline_width){return rgbe_error(rgbe_format_error,\"bad rgbe scanline format\");}\nptr=0;while(ptr<ptr_end&&pos<buffer.byteLength){count=buffer[pos++];isEncodedRun=count>128;if(isEncodedRun)count-=128;if(0===count||ptr+count>ptr_end){return rgbe_error(rgbe_format_error,\"bad scanline data\");}if(isEncodedRun){byteValue=buffer[pos++];for(i=0;i<count;i++){scanline_buffer[ptr++]=byteValue;}}else{scanline_buffer.set(buffer.subarray(pos,pos+count),ptr);ptr+=count;pos+=count;}}\nl=scanline_width;for(i=0;i<l;i++){off=0;data_rgba[offset]=scanline_buffer[i+off];off+=scanline_width;data_rgba[offset+1]=scanline_buffer[i+off];off+=scanline_width;data_rgba[offset+2]=scanline_buffer[i+off];off+=scanline_width;data_rgba[offset+3]=scanline_buffer[i+off];offset+=4;}num_scanlines--;}return data_rgba;};var RGBEByteToRGBFloat=function RGBEByteToRGBFloat(sourceArray,sourceOffset,destArray,destOffset){var e=sourceArray[sourceOffset+3];var scale=Math.pow(2.0,e-128.0)/255.0;destArray[destOffset+0]=sourceArray[sourceOffset+0]*scale;destArray[destOffset+1]=sourceArray[sourceOffset+1]*scale;destArray[destOffset+2]=sourceArray[sourceOffset+2]*scale;};var RGBEByteToRGBHalf=function(){var floatView=new Float32Array(1);var int32View=new Int32Array(floatView.buffer);function toHalf(val){floatView[0]=val;var x=int32View[0];var bits=x>>16&0x8000;var m=x>>12&0x07ff;var e=x>>23&0xff;if(e<103)return bits;if(e>142){bits|=0x7c00;bits|=(e==255?0:1)&&x&0x007fffff;return bits;}if(e<113){m|=0x0800;bits|=(m>>114-e)+(m>>113-e&1);return bits;}bits|=e-112<<10|m>>1;bits+=m&1;return bits;}return function(sourceArray,sourceOffset,destArray,destOffset){var e=sourceArray[sourceOffset+3];var scale=Math.pow(2.0,e-128.0)/255.0;destArray[destOffset+0]=toHalf(sourceArray[sourceOffset+0]*scale);destArray[destOffset+1]=toHalf(sourceArray[sourceOffset+1]*scale);destArray[destOffset+2]=toHalf(sourceArray[sourceOffset+2]*scale);};}();var byteArray=new Uint8Array(buffer);byteArray.pos=0;var rgbe_header_info=RGBE_ReadHeader(byteArray);if(RGBE_RETURN_FAILURE!==rgbe_header_info){var w=rgbe_header_info.width,h=rgbe_header_info.height,image_rgba_data=RGBE_ReadPixels_RLE(byteArray.subarray(byteArray.pos),w,h);if(RGBE_RETURN_FAILURE!==image_rgba_data){switch(this.type){case UnsignedByteType:var data=image_rgba_data;var format=RGBEFormat;var type=UnsignedByteType;break;case FloatType:var numElements=image_rgba_data.length/4*3;var floatArray=new Float32Array(numElements);for(var j=0;j<numElements;j++){RGBEByteToRGBFloat(image_rgba_data,j*4,floatArray,j*3);}var data=floatArray;var format=RGBFormat;var type=FloatType;break;case HalfFloatType:var numElements=image_rgba_data.length/4*3;var halfArray=new Uint16Array(numElements);for(var j=0;j<numElements;j++){RGBEByteToRGBHalf(image_rgba_data,j*4,halfArray,j*3);}var data=halfArray;var format=RGBFormat;var type=HalfFloatType;break;default:console.error('THREE.RGBELoader: unsupported type: ',this.type);break;}return{width:w,height:h,data:data,header:rgbe_header_info.string,gamma:rgbe_header_info.gamma,exposure:rgbe_header_info.exposure,format:format,type:type};}}return null;},setDataType:function setDataType(value){this.type=value;return this;},load:function load(url,onLoad,onProgress,onError){function onLoadCallback(texture,texData){switch(texture.type){case UnsignedByteType:texture.encoding=RGBEEncoding;texture.minFilter=NearestFilter;texture.magFilter=NearestFilter;texture.generateMipmaps=false;texture.flipY=true;break;case FloatType:texture.encoding=LinearEncoding;texture.minFilter=LinearFilter;texture.magFilter=LinearFilter;texture.generateMipmaps=false;texture.flipY=true;break;case HalfFloatType:texture.encoding=LinearEncoding;texture.minFilter=LinearFilter;texture.magFilter=LinearFilter;texture.generateMipmaps=false;texture.flipY=true;break;}if(onLoad)onLoad(texture,texData);}return DataTextureLoader.prototype.load.call(this,url,onLoadCallback,onProgress,onError);}});var EnvironmentScene=function(_Scene2){_inherits(EnvironmentScene,_Scene2);var _super19=_createSuper(EnvironmentScene);function EnvironmentScene(){var _this40;_classCallCheck(this,EnvironmentScene);_this40=_super19.call(this);_this40.position.y=-3.5;var geometry=new BoxBufferGeometry();geometry.deleteAttribute('uv');var roomMaterial=new MeshStandardMaterial({metalness:0,side:BackSide});var boxMaterial=new MeshStandardMaterial({metalness:0});var mainLight=new PointLight(0xffffff,500.0,28,2);mainLight.position.set(0.418,16.199,0.300);_this40.add(mainLight);var room=new Mesh(geometry,roomMaterial);room.position.set(-0.757,13.219,0.717);room.scale.set(31.713,28.305,28.591);_this40.add(room);var box1=new Mesh(geometry,boxMaterial);box1.position.set(-10.906,2.009,1.846);box1.rotation.set(0,-0.195,0);box1.scale.set(2.328,7.905,4.651);_this40.add(box1);var box2=new Mesh(geometry,boxMaterial);box2.position.set(-5.607,-0.754,-0.758);box2.rotation.set(0,0.994,0);box2.scale.set(1.970,1.534,3.955);_this40.add(box2);var box3=new Mesh(geometry,boxMaterial);box3.position.set(6.167,0.857,7.803);box3.rotation.set(0,0.561,0);box3.scale.set(3.927,6.285,3.687);_this40.add(box3);var box4=new Mesh(geometry,boxMaterial);box4.position.set(-2.017,0.018,6.124);box4.rotation.set(0,0.333,0);box4.scale.set(2.002,4.566,2.064);_this40.add(box4);var box5=new Mesh(geometry,boxMaterial);box5.position.set(2.291,-0.756,-2.621);box5.rotation.set(0,-0.286,0);box5.scale.set(1.546,1.552,1.496);_this40.add(box5);var box6=new Mesh(geometry,boxMaterial);box6.position.set(-2.193,-0.369,-5.547);box6.rotation.set(0,0.516,0);box6.scale.set(3.875,3.487,2.986);_this40.add(box6);var light1=new Mesh(geometry,_this40.createAreaLightMaterial(50));light1.position.set(-16.116,14.37,8.208);light1.scale.set(0.1,2.428,2.739);_this40.add(light1);var light2=new Mesh(geometry,_this40.createAreaLightMaterial(50));light2.position.set(-16.109,18.021,-8.207);light2.scale.set(0.1,2.425,2.751);_this40.add(light2);var light3=new Mesh(geometry,_this40.createAreaLightMaterial(17));light3.position.set(14.904,12.198,-1.832);light3.scale.set(0.15,4.265,6.331);_this40.add(light3);var light4=new Mesh(geometry,_this40.createAreaLightMaterial(43));light4.position.set(-0.462,8.89,14.520);light4.scale.set(4.38,5.441,0.088);_this40.add(light4);var light5=new Mesh(geometry,_this40.createAreaLightMaterial(20));light5.position.set(3.235,11.486,-12.541);light5.scale.set(2.5,2.0,0.1);_this40.add(light5);var light6=new Mesh(geometry,_this40.createAreaLightMaterial(100));light6.position.set(0.0,20.0,0.0);light6.scale.set(1.0,0.1,1.0);_this40.add(light6);return _this40;}_createClass(EnvironmentScene,[{key:\"createAreaLightMaterial\",value:function createAreaLightMaterial(intensity){var material=new MeshBasicMaterial();material.color.setScalar(intensity);return material;}}]);return EnvironmentScene;}(Scene);var GENERATED_SIGMA=0.04;Cache.enabled=true;var HDR_FILE_RE=/\\.hdr(\\.js)?$/;var ldrLoader=new TextureLoader();var hdrLoader=new RGBELoader();var userData={url:null};var TextureUtils=function(_EventDispatcher3){_inherits(TextureUtils,_EventDispatcher3);var _super20=_createSuper(TextureUtils);function TextureUtils(threeRenderer){var _this41;_classCallCheck(this,TextureUtils);_this41=_super20.call(this);_this41.generatedEnvironmentMap=null;_this41.skyboxCache=new Map();_this41.environmentMapCache=new Map();_this41.PMREMGenerator=new PMREMGenerator(threeRenderer);return _this41;}_createClass(TextureUtils,[{key:\"load\",value:function(){var _load2=_asyncToGenerator(regeneratorRuntime.mark(function _callee12(url){var progressCallback,isHDR,_loader2,texture,_args12=arguments;return regeneratorRuntime.wrap(function _callee12$(_context13){while(1){switch(_context13.prev=_context13.next){case 0:progressCallback=_args12.length>1&&_args12[1]!==undefined?_args12[1]:function(){};_context13.prev=1;isHDR=HDR_FILE_RE.test(url);_loader2=isHDR?hdrLoader:ldrLoader;_context13.next=6;return new Promise(function(resolve,reject){return _loader2.load(url,resolve,function(event){progressCallback(event.loaded/event.total*0.9);},reject);});case 6:texture=_context13.sent;progressCallback(1.0);this.addMetadata(texture,url);texture.mapping=EquirectangularReflectionMapping;if(isHDR){texture.encoding=RGBEEncoding;texture.minFilter=NearestFilter;texture.magFilter=NearestFilter;texture.flipY=true;}else{texture.encoding=GammaEncoding;}return _context13.abrupt(\"return\",texture);case 12:_context13.prev=12;if(progressCallback){progressCallback(1);}return _context13.finish(12);case 15:case\"end\":return _context13.stop();}}},_callee12,this,[[1,,12,15]]);}));function load(_x17){return _load2.apply(this,arguments);}return load;}()},{key:\"generateEnvironmentMapAndSkybox\",value:function(){var _generateEnvironmentMapAndSkybox=_asyncToGenerator(regeneratorRuntime.mark(function _callee13(){var skyboxUrl,environmentMapUrl,options,progressTracker,updateGenerationProgress,skyboxLoads,environmentMapLoads,_yield$Promise$all,_yield$Promise$all2,environmentMap,skybox,_args13=arguments;return regeneratorRuntime.wrap(function _callee13$(_context14){while(1){switch(_context14.prev=_context14.next){case 0:skyboxUrl=_args13.length>0&&_args13[0]!==undefined?_args13[0]:null;environmentMapUrl=_args13.length>1&&_args13[1]!==undefined?_args13[1]:null;options=_args13.length>2&&_args13[2]!==undefined?_args13[2]:{};progressTracker=options.progressTracker;updateGenerationProgress=progressTracker!=null?progressTracker.beginActivity():function(){};_context14.prev=5;skyboxLoads=Promise.resolve(null);if(!!skyboxUrl){skyboxLoads=this.loadSkyboxFromUrl(skyboxUrl,progressTracker);}if(!!environmentMapUrl){environmentMapLoads=this.loadEnvironmentMapFromUrl(environmentMapUrl,progressTracker);}else if(!!skyboxUrl){environmentMapLoads=this.loadEnvironmentMapFromUrl(skyboxUrl,progressTracker);}else{environmentMapLoads=this.loadGeneratedEnvironmentMap();}_context14.next=11;return Promise.all([environmentMapLoads,skyboxLoads]);case 11:_yield$Promise$all=_context14.sent;_yield$Promise$all2=_slicedToArray(_yield$Promise$all,2);environmentMap=_yield$Promise$all2[0];skybox=_yield$Promise$all2[1];if(!(environmentMap==null)){_context14.next=17;break;}throw new Error('Failed to load environment map.');case 17:return _context14.abrupt(\"return\",{environmentMap:environmentMap,skybox:skybox});case 18:_context14.prev=18;updateGenerationProgress(1.0);return _context14.finish(18);case 21:case\"end\":return _context14.stop();}}},_callee13,this,[[5,,18,21]]);}));function generateEnvironmentMapAndSkybox(){return _generateEnvironmentMapAndSkybox.apply(this,arguments);}return generateEnvironmentMapAndSkybox;}()},{key:\"addMetadata\",value:function addMetadata(texture,url){if(texture==null){return;}texture.userData=Object.assign(Object.assign({},userData),{url:url});}},{key:\"loadSkyboxFromUrl\",value:function loadSkyboxFromUrl(url,progressTracker){if(!this.skyboxCache.has(url)){var progressCallback=progressTracker?progressTracker.beginActivity():function(){};var skyboxMapLoads=this.load(url,progressCallback);this.skyboxCache.set(url,skyboxMapLoads);}return this.skyboxCache.get(url);}},{key:\"loadEnvironmentMapFromUrl\",value:function loadEnvironmentMapFromUrl(url,progressTracker){var _this42=this;if(!this.environmentMapCache.has(url)){var environmentMapLoads=this.loadSkyboxFromUrl(url,progressTracker).then(function(equirect){var cubeUV=_this42.PMREMGenerator.fromEquirectangular(equirect);_this42.addMetadata(cubeUV.texture,url);return cubeUV;});this.PMREMGenerator.compileEquirectangularShader();this.environmentMapCache.set(url,environmentMapLoads);}return this.environmentMapCache.get(url);}},{key:\"loadGeneratedEnvironmentMap\",value:function loadGeneratedEnvironmentMap(){if(this.generatedEnvironmentMap==null){var defaultScene=new EnvironmentScene();this.generatedEnvironmentMap=this.PMREMGenerator.fromScene(defaultScene,GENERATED_SIGMA);this.addMetadata(this.generatedEnvironmentMap.texture,null);}return Promise.resolve(this.generatedEnvironmentMap);}},{key:\"dispose\",value:function(){var _dispose=_asyncToGenerator(regeneratorRuntime.mark(function _callee14(){var allTargetsLoad,_i341,_allTargetsLoad,targetLoads,_target4;return regeneratorRuntime.wrap(function _callee14$(_context15){while(1){switch(_context15.prev=_context15.next){case 0:allTargetsLoad=[];this.environmentMapCache.forEach(function(targetLoads){allTargetsLoad.push(targetLoads);});this.environmentMapCache.clear();_i341=0,_allTargetsLoad=allTargetsLoad;case 4:if(!(_i341<_allTargetsLoad.length)){_context15.next=18;break;}targetLoads=_allTargetsLoad[_i341];_context15.prev=6;_context15.next=9;return targetLoads;case 9:_target4=_context15.sent;_target4.dispose();_context15.next=15;break;case 13:_context15.prev=13;_context15.t0=_context15[\"catch\"](6);case 15:_i341++;_context15.next=4;break;case 18:if(this.generatedEnvironmentMap!=null){this.generatedEnvironmentMap.dispose();this.generatedEnvironmentMap=null;}case 19:case\"end\":return _context15.stop();}}},_callee14,this,[[6,13]]);}));function dispose(){return _dispose.apply(this,arguments);}return dispose;}()}]);return TextureUtils;}(EventDispatcher);var _a$6,_b$4;var DURATION_DECAY=0.2;var LOW_FRAME_DURATION_MS=18;var HIGH_FRAME_DURATION_MS=26;var MAX_AVG_CHANGE_MS=2;var SCALE_STEP=0.79;var DEFAULT_MIN_SCALE=0.5;var $onWebGLContextLost=Symbol('onWebGLContextLost');var $webGLContextLostHandler=Symbol('webGLContextLostHandler');var $singleton=Symbol('singleton');var Renderer=function(_EventDispatcher4){_inherits(Renderer,_EventDispatcher4);var _super21=_createSuper(Renderer);function Renderer(options){var _this43;_classCallCheck(this,Renderer);_this43=_super21.call(this);_this43.loader=new CachingGLTFLoader(ModelViewerGLTFInstance);_this43.width=0;_this43.height=0;_this43.dpr=1;_this43.minScale=DEFAULT_MIN_SCALE;_this43.debugger=null;_this43.scenes=new Set();_this43.multipleScenesVisible=false;_this43.scale=1;_this43.avgFrameDuration=(HIGH_FRAME_DURATION_MS+LOW_FRAME_DURATION_MS)/2;_this43[_b$4]=function(event){return _this43[$onWebGLContextLost](event);};_this43.dpr=resolveDpr();_this43.canvasElement=document.createElement('canvas');_this43.canvasElement.id='webgl-canvas';_this43.canvas3D=_this43.canvasElement;_this43.canvas3D.addEventListener('webglcontextlost',_this43[$webGLContextLostHandler]);try{_this43.threeRenderer=new WebGL1Renderer({canvas:_this43.canvas3D,alpha:true,antialias:true,powerPreference:'high-performance',preserveDrawingBuffer:true});_this43.threeRenderer.autoClear=true;_this43.threeRenderer.outputEncoding=GammaEncoding;_this43.threeRenderer.gammaFactor=2.2;_this43.threeRenderer.physicallyCorrectLights=true;_this43.threeRenderer.setPixelRatio(1);_this43.threeRenderer.shadowMap.enabled=true;_this43.threeRenderer.shadowMap.type=PCFSoftShadowMap;_this43.threeRenderer.shadowMap.autoUpdate=false;_this43.debugger=options!=null&&!!options.debug?new Debugger(_assertThisInitialized(_this43)):null;_this43.threeRenderer.debug={checkShaderErrors:!!_this43.debugger};_this43.threeRenderer.toneMapping=ACESFilmicToneMapping;}catch(error){console.warn(error);}_this43.arRenderer=new ARRenderer(_assertThisInitialized(_this43));_this43.textureUtils=_this43.canRender?new TextureUtils(_this43.threeRenderer):null;_this43.roughnessMipmapper=new RoughnessMipmapper(_this43.threeRenderer);_this43.updateRendererSize();_this43.lastTick=performance.now();_this43.avgFrameDuration=0;return _this43;}_createClass(Renderer,[{key:\"updateRendererSize\",value:function updateRendererSize(){var dpr=resolveDpr();if(dpr!==this.dpr){var _iterator6=_createForOfIteratorHelper(this.scenes),_step6;try{for(_iterator6.s();!(_step6=_iterator6.n()).done;){var scene=_step6.value;var element=scene.element;element[$updateSize](element.getBoundingClientRect());}}catch(err){_iterator6.e(err);}finally{_iterator6.f();}}var width=0;var height=0;var _iterator7=_createForOfIteratorHelper(this.scenes),_step7;try{for(_iterator7.s();!(_step7=_iterator7.n()).done;){var _scene=_step7.value;width=Math.max(width,_scene.width);height=Math.max(height,_scene.height);}}catch(err){_iterator7.e(err);}finally{_iterator7.f();}if(width===this.width&&height===this.height&&dpr===this.dpr){return;}this.width=width;this.height=height;this.dpr=dpr;if(this.canRender){this.threeRenderer.setSize(width*dpr,height*dpr,false);}var widthCSS=width/this.scale;var heightCSS=height/this.scale;this.canvasElement.style.width=\"\".concat(widthCSS,\"px\");this.canvasElement.style.height=\"\".concat(heightCSS,\"px\");var _iterator8=_createForOfIteratorHelper(this.scenes),_step8;try{for(_iterator8.s();!(_step8=_iterator8.n()).done;){var _scene2=_step8.value;var canvas=_scene2.canvas;canvas.width=Math.round(width*dpr);canvas.height=Math.round(height*dpr);canvas.style.width=\"\".concat(widthCSS,\"px\");canvas.style.height=\"\".concat(heightCSS,\"px\");_scene2.isDirty=true;}}catch(err){_iterator8.e(err);}finally{_iterator8.f();}}},{key:\"updateRendererScale\",value:function updateRendererScale(){var scale=this.scale;if(this.avgFrameDuration>HIGH_FRAME_DURATION_MS&&scale>this.minScale){scale*=SCALE_STEP;}else if(this.avgFrameDuration<LOW_FRAME_DURATION_MS&&scale<1){scale/=SCALE_STEP;scale=Math.min(scale,1);}scale=Math.max(scale,this.minScale);if(scale==this.scale){return;}this.scale=scale;this.avgFrameDuration=(HIGH_FRAME_DURATION_MS+LOW_FRAME_DURATION_MS)/2;var width=this.width/scale;var height=this.height/scale;this.canvasElement.style.width=\"\".concat(width,\"px\");this.canvasElement.style.height=\"\".concat(height,\"px\");var _iterator9=_createForOfIteratorHelper(this.scenes),_step9;try{for(_iterator9.s();!(_step9=_iterator9.n()).done;){var scene=_step9.value;var _style=scene.canvas.style;_style.width=\"\".concat(width,\"px\");_style.height=\"\".concat(height,\"px\");scene.isDirty=true;}}catch(err){_iterator9.e(err);}finally{_iterator9.f();}}},{key:\"registerScene\",value:function registerScene(scene){var _this44=this;this.scenes.add(scene);var canvas=scene.canvas;canvas.width=Math.round(this.width*this.dpr);canvas.height=Math.round(this.height*this.dpr);canvas.style.width=\"\".concat(this.width/this.scale,\"px\");canvas.style.height=\"\".concat(this.height/this.scale,\"px\");if(this.multipleScenesVisible){canvas.classList.add('show');}scene.isDirty=true;if(this.canRender&&this.scenes.size>0){this.threeRenderer.setAnimationLoop(function(time){return _this44.render(time);});}if(this.debugger!=null){this.debugger.addScene(scene);}}},{key:\"unregisterScene\",value:function unregisterScene(scene){this.scenes.delete(scene);if(this.canRender&&this.scenes.size===0){this.threeRenderer.setAnimationLoop(null);}if(this.debugger!=null){this.debugger.removeScene(scene);}}},{key:\"displayCanvas\",value:function displayCanvas(scene){return this.multipleScenesVisible?scene.element[$canvas]:this.canvasElement;}},{key:\"selectCanvas\",value:function selectCanvas(){var visibleScenes=0;var visibleInput=null;var _iterator10=_createForOfIteratorHelper(this.scenes),_step10;try{for(_iterator10.s();!(_step10=_iterator10.n()).done;){var scene=_step10.value;var element=scene.element;if(element.modelIsVisible){++visibleScenes;visibleInput=element[$userInputElement];}}}catch(err){_iterator10.e(err);}finally{_iterator10.f();}var multipleScenesVisible=visibleScenes>1||USE_OFFSCREEN_CANVAS;var canvasElement=this.canvasElement;if(multipleScenesVisible===this.multipleScenesVisible&&(multipleScenesVisible||canvasElement.parentElement===visibleInput)){return;}this.multipleScenesVisible=multipleScenesVisible;if(multipleScenesVisible){canvasElement.classList.remove('show');}var _iterator11=_createForOfIteratorHelper(this.scenes),_step11;try{for(_iterator11.s();!(_step11=_iterator11.n()).done;){var _scene3=_step11.value;var userInputElement=_scene3.element[$userInputElement];var canvas=_scene3.element[$canvas];if(multipleScenesVisible){canvas.classList.add('show');_scene3.isDirty=true;}else if(userInputElement===visibleInput){userInputElement.appendChild(canvasElement);canvasElement.classList.add('show');canvas.classList.remove('show');_scene3.isDirty=true;}}}catch(err){_iterator11.e(err);}finally{_iterator11.f();}}},{key:\"orderedScenes\",value:function orderedScenes(){var scenes=[];for(var _i342=0,_arr2=[false,true];_i342<_arr2.length;_i342++){var visible=_arr2[_i342];var _iterator12=_createForOfIteratorHelper(this.scenes),_step12;try{for(_iterator12.s();!(_step12=_iterator12.n()).done;){var scene=_step12.value;if(scene.element.modelIsVisible===visible){scenes.push(scene);}}}catch(err){_iterator12.e(err);}finally{_iterator12.f();}}return scenes;}},{key:\"preRender\",value:function preRender(scene,t,delta){var element=scene.element,exposure=scene.exposure,model=scene.model;element[$tick$1](t,delta);var exposureIsNumber=typeof exposure==='number'&&!self.isNaN(exposure);this.threeRenderer.toneMappingExposure=exposureIsNumber?exposure:1.0;if(model.updateShadow()){this.threeRenderer.shadowMap.needsUpdate=true;}}},{key:\"render\",value:function render(t){var delta=t-this.lastTick;this.lastTick=t;if(!this.canRender||this.isPresenting){return;}this.avgFrameDuration+=clamp(DURATION_DECAY*(delta-this.avgFrameDuration),-MAX_AVG_CHANGE_MS,MAX_AVG_CHANGE_MS);this.selectCanvas();this.updateRendererSize();this.updateRendererScale();var dpr=this.dpr,scale=this.scale;var _iterator13=_createForOfIteratorHelper(this.orderedScenes()),_step13;try{for(_iterator13.s();!(_step13=_iterator13.n()).done;){var scene=_step13.value;if(!scene.element[$sceneIsReady]()){continue;}this.preRender(scene,t,delta);if(!scene.isDirty){continue;}scene.isDirty=false;if(!scene.element.modelIsVisible&&!this.multipleScenesVisible){var _iterator14=_createForOfIteratorHelper(this.scenes),_step14;try{for(_iterator14.s();!(_step14=_iterator14.n()).done;){var _scene4=_step14.value;if(_scene4.element.modelIsVisible){_scene4.isDirty=true;}}}catch(err){_iterator14.e(err);}finally{_iterator14.f();}}var width=Math.min(Math.ceil(scene.width*scale*dpr),this.canvas3D.width);var height=Math.min(Math.ceil(scene.height*scale*dpr),this.canvas3D.height);this.threeRenderer.setRenderTarget(null);this.threeRenderer.setViewport(0,Math.floor(this.height*dpr)-height,width,height);this.threeRenderer.render(scene,scene.getCamera());if(this.multipleScenesVisible){if(scene.context==null){scene.createContext();}{var context2D=scene.context;context2D.clearRect(0,0,width,height);context2D.drawImage(this.canvas3D,0,0,width,height,0,0,width,height);}}}}catch(err){_iterator13.e(err);}finally{_iterator13.f();}}},{key:\"dispose\",value:function dispose(){if(this.textureUtils!=null){this.textureUtils.dispose();}if(this.threeRenderer!=null){this.threeRenderer.dispose();}this.textureUtils=null;this.threeRenderer=null;this.scenes.clear();this.canvas3D.removeEventListener('webglcontextlost',this[$webGLContextLostHandler]);}},{key:(_a$6=$singleton,_b$4=$webGLContextLostHandler,$onWebGLContextLost),value:function value(event){this.dispatchEvent({type:'contextlost',sourceEvent:event});}},{key:\"canRender\",get:function get(){return this.threeRenderer!=null;}},{key:\"scaleFactor\",get:function get(){return this.scale;}},{key:\"isPresenting\",get:function get(){return this.arRenderer.isPresenting;}}],[{key:\"resetSingleton\",value:function resetSingleton(){this[$singleton].dispose();this[$singleton]=new Renderer({debug:isDebugMode()});}},{key:\"singleton\",get:function get(){return this[$singleton];}}]);return Renderer;}(EventDispatcher);Renderer[_a$6]=new Renderer({debug:isDebugMode()});var dataUrlToBlob=function(){var _ref4=_asyncToGenerator(regeneratorRuntime.mark(function _callee15(base64DataUrl){return regeneratorRuntime.wrap(function _callee15$(_context16){while(1){switch(_context16.prev=_context16.next){case 0:return _context16.abrupt(\"return\",new Promise(function(resolve,reject){var sliceSize=512;var typeMatch=base64DataUrl.match(/data:(.*);/);if(!typeMatch){return reject(new Error(\"\".concat(base64DataUrl,\" is not a valid data Url\")));}var type=typeMatch[1];var base64=base64DataUrl.replace(/data:image\\/\\w+;base64,/,'');var byteCharacters=atob(base64);var byteArrays=[];for(var offset=0;offset<byteCharacters.length;offset+=sliceSize){var _slice=byteCharacters.slice(offset,offset+sliceSize);var byteNumbers=new Array(_slice.length);for(var _i343=0;_i343<_slice.length;_i343++){byteNumbers[_i343]=_slice.charCodeAt(_i343);}var byteArray=new Uint8Array(byteNumbers);byteArrays.push(byteArray);}resolve(new Blob(byteArrays,{type:type}));}));case 1:case\"end\":return _context16.stop();}}},_callee15);}));return function dataUrlToBlob(_x18){return _ref4.apply(this,arguments);};}();var _a$7,_b$5;var $ongoingActivities=Symbol('ongoingActivities');var $announceTotalProgress=Symbol('announceTotalProgress');var $eventDelegate=Symbol('eventDelegate');var ACTIVITY_PROGRESS_WEIGHT=0.5;var ProgressTracker=function(){function ProgressTracker(){var _this45=this;_classCallCheck(this,ProgressTracker);this[_a$7]=document.createDocumentFragment();this.addEventListener=function(){var _this45$$eventDelegat;return(_this45$$eventDelegat=_this45[$eventDelegate]).addEventListener.apply(_this45$$eventDelegat,arguments);};this.removeEventListener=function(){var _this45$$eventDelegat2;return(_this45$$eventDelegat2=_this45[$eventDelegate]).removeEventListener.apply(_this45$$eventDelegat2,arguments);};this.dispatchEvent=function(){var _this45$$eventDelegat3;return(_this45$$eventDelegat3=_this45[$eventDelegate]).dispatchEvent.apply(_this45$$eventDelegat3,arguments);};this[_b$5]=new Set();}_createClass(ProgressTracker,[{key:\"beginActivity\",value:function beginActivity(){var _this46=this;var activity={progress:0};this[$ongoingActivities].add(activity);if(this.ongoingActivityCount===1){this[$announceTotalProgress]();}return function(progress){var nextProgress;nextProgress=Math.max(clamp(progress,0,1),activity.progress);if(nextProgress!==activity.progress){activity.progress=nextProgress;_this46[$announceTotalProgress]();}return activity.progress;};}},{key:(_a$7=$eventDelegate,_b$5=$ongoingActivities,$announceTotalProgress),value:function value(){var totalProgress=0;var statusCount=0;var completedActivities=0;var _iterator15=_createForOfIteratorHelper(this[$ongoingActivities]),_step15;try{for(_iterator15.s();!(_step15=_iterator15.n()).done;){var activity=_step15.value;var progress=activity.progress;var compoundWeight=ACTIVITY_PROGRESS_WEIGHT/Math.pow(2,statusCount++);totalProgress+=progress*compoundWeight;if(progress===1.0){completedActivities++;}}}catch(err){_iterator15.e(err);}finally{_iterator15.f();}if(completedActivities===this.ongoingActivityCount){totalProgress=1.0;this[$ongoingActivities].clear();}this.dispatchEvent(new CustomEvent('progress',{detail:{totalProgress:totalProgress}}));}},{key:\"ongoingActivityCount\",get:function get(){return this[$ongoingActivities].size;}}]);return ProgressTracker;}();var __decorate=undefined&&undefined.__decorate||function(decorators,target,key,desc){var c=arguments.length,r=c<3?target:desc===null?desc=Object.getOwnPropertyDescriptor(target,key):desc,d;if((typeof Reflect===\"undefined\"?\"undefined\":_typeof(Reflect))===\"object\"&&typeof undefined===\"function\")r=undefined(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--){if(d=decorators[i])r=(c<3?d(r):c>3?d(target,key,r):d(target,key))||r;}return c>3&&r&&Object.defineProperty(target,key,r),r;};var _a$8,_b$6,_c$1,_d$1,_e$1,_f$1,_g$1,_h$1,_j$1,_k$1;var CLEAR_MODEL_TIMEOUT_MS=1000;var FALLBACK_SIZE_UPDATE_THRESHOLD_MS=50;var ANNOUNCE_MODEL_VISIBILITY_DEBOUNCE_THRESHOLD=0;var UNSIZED_MEDIA_WIDTH=300;var UNSIZED_MEDIA_HEIGHT=150;var blobCanvas=document.createElement('canvas');var blobContext=null;var $template=Symbol('template');var $fallbackResizeHandler=Symbol('fallbackResizeHandler');var $defaultAriaLabel=Symbol('defaultAriaLabel');var $resizeObserver=Symbol('resizeObserver');var $intersectionObserver=Symbol('intersectionObserver');var $clearModelTimeout=Symbol('clearModelTimeout');var $onContextLost=Symbol('onContextLost');var $contextLostHandler=Symbol('contextLostHandler');var $loaded=Symbol('loaded');var $updateSize=Symbol('updateSize');var $isElementInViewport=Symbol('isElementInViewport');var $announceModelVisibility=Symbol('announceModelVisibility');var $ariaLabel=Symbol('ariaLabel');var $loadedTime=Symbol('loadedTime');var $updateSource=Symbol('updateSource');var $markLoaded=Symbol('markLoaded');var $container=Symbol('container');var $userInputElement=Symbol('input');var $canvas=Symbol('canvas');var $scene=Symbol('scene');var $needsRender=Symbol('needsRender');var $tick$1=Symbol('tick');var $onModelLoad=Symbol('onModelLoad');var $onResize=Symbol('onResize');var $renderer=Symbol('renderer');var $progressTracker=Symbol('progressTracker');var $getLoaded=Symbol('getLoaded');var $getModelIsVisible=Symbol('getModelIsVisible');var $shouldAttemptPreload=Symbol('shouldAttemptPreload');var $sceneIsReady=Symbol('sceneIsReady');var $hasTransitioned=Symbol('hasTransitioned');var toVector3D=function toVector3D(v){return{x:v.x,y:v.y,z:v.z,toString:function toString(){return\"\".concat(this.x,\"m \").concat(this.y,\"m \").concat(this.z,\"m\");}};};var ModelViewerElementBase=function(_UpdatingElement){_inherits(ModelViewerElementBase,_UpdatingElement);var _super22=_createSuper(ModelViewerElementBase);function ModelViewerElementBase(){var _this47;_classCallCheck(this,ModelViewerElementBase);_this47=_super22.call(this);_this47.alt=null;_this47.src=null;_this47[_a$8]=false;_this47[_b$6]=false;_this47[_c$1]=0;_this47[_d$1]=null;_this47[_e$1]=debounce(function(){var boundingRect=_this47.getBoundingClientRect();_this47[$updateSize](boundingRect);},FALLBACK_SIZE_UPDATE_THRESHOLD_MS);_this47[_f$1]=debounce(function(oldVisibility){var newVisibility=_this47.modelIsVisible;if(newVisibility!==oldVisibility){_this47.dispatchEvent(new CustomEvent('model-visibility',{detail:{visible:newVisibility}}));}},ANNOUNCE_MODEL_VISIBILITY_DEBOUNCE_THRESHOLD);_this47[_g$1]=null;_this47[_h$1]=null;_this47[_j$1]=new ProgressTracker();_this47[_k$1]=function(event){return _this47[$onContextLost](event);};var template=_this47.constructor.template;if(window.ShadyCSS){window.ShadyCSS.styleElement(_assertThisInitialized(_this47),{});}_this47.attachShadow({mode:'open'});var shadowRoot=_this47.shadowRoot;shadowRoot.appendChild(template.content.cloneNode(true));_this47[$container]=shadowRoot.querySelector('.container');_this47[$userInputElement]=shadowRoot.querySelector('.userInput');_this47[$canvas]=shadowRoot.querySelector('canvas');_this47[$defaultAriaLabel]=_this47[$userInputElement].getAttribute('aria-label');var width,height;if(_this47.isConnected){var rect=_this47.getBoundingClientRect();width=rect.width;height=rect.height;}else{width=UNSIZED_MEDIA_WIDTH;height=UNSIZED_MEDIA_HEIGHT;}_this47[$scene]=new ModelScene({canvas:_this47[$canvas],element:_assertThisInitialized(_this47),width:width,height:height});_this47[$scene].addEventListener('model-load',function(event){_this47[$markLoaded]();_this47[$onModelLoad]();_this47.dispatchEvent(new CustomEvent('load',{detail:{url:event.url}}));});Promise.resolve().then(function(){_this47[$updateSize](_this47.getBoundingClientRect());});if(HAS_RESIZE_OBSERVER){_this47[$resizeObserver]=new ResizeObserver(function(entries){if(_this47[$renderer].isPresenting){return;}var _iterator16=_createForOfIteratorHelper(entries),_step16;try{for(_iterator16.s();!(_step16=_iterator16.n()).done;){var entry=_step16.value;if(entry.target===_assertThisInitialized(_this47)){_this47[$updateSize](entry.contentRect);}}}catch(err){_iterator16.e(err);}finally{_iterator16.f();}});}if(HAS_INTERSECTION_OBSERVER){_this47[$intersectionObserver]=new IntersectionObserver(function(entries){var _iterator17=_createForOfIteratorHelper(entries),_step17;try{for(_iterator17.s();!(_step17=_iterator17.n()).done;){var entry=_step17.value;if(entry.target===_assertThisInitialized(_this47)){var oldVisibility=_this47.modelIsVisible;_this47[$isElementInViewport]=entry.isIntersecting;_this47[$announceModelVisibility](oldVisibility);if(_this47[$isElementInViewport]&&!_this47[$sceneIsReady]()){_this47[$updateSource]();}}}}catch(err){_iterator17.e(err);}finally{_iterator17.f();}},{root:null,rootMargin:'0px',threshold:0});}else{_this47[$isElementInViewport]=true;}return _this47;}_createClass(ModelViewerElementBase,[{key:\"connectedCallback\",value:function connectedCallback(){_get(_getPrototypeOf(ModelViewerElementBase.prototype),\"connectedCallback\",this)&&_get(_getPrototypeOf(ModelViewerElementBase.prototype),\"connectedCallback\",this).call(this);if(HAS_RESIZE_OBSERVER){this[$resizeObserver].observe(this);}else{self.addEventListener('resize',this[$fallbackResizeHandler]);}if(HAS_INTERSECTION_OBSERVER){this[$intersectionObserver].observe(this);}var renderer=this[$renderer];renderer.addEventListener('contextlost',this[$contextLostHandler]);renderer.registerScene(this[$scene]);if(this[$clearModelTimeout]!=null){self.clearTimeout(this[$clearModelTimeout]);this[$clearModelTimeout]=null;this.requestUpdate('src',null);}}},{key:\"disconnectedCallback\",value:function disconnectedCallback(){var _this48=this;_get(_getPrototypeOf(ModelViewerElementBase.prototype),\"disconnectedCallback\",this)&&_get(_getPrototypeOf(ModelViewerElementBase.prototype),\"disconnectedCallback\",this).call(this);if(HAS_RESIZE_OBSERVER){this[$resizeObserver].unobserve(this);}else{self.removeEventListener('resize',this[$fallbackResizeHandler]);}if(HAS_INTERSECTION_OBSERVER){this[$intersectionObserver].unobserve(this);}var renderer=this[$renderer];renderer.removeEventListener('contextlost',this[$contextLostHandler]);renderer.unregisterScene(this[$scene]);this[$clearModelTimeout]=self.setTimeout(function(){_this48[$scene].model.clear();},CLEAR_MODEL_TIMEOUT_MS);}},{key:\"updated\",value:function updated(changedProperties){_get(_getPrototypeOf(ModelViewerElementBase.prototype),\"updated\",this).call(this,changedProperties);if(changedProperties.has('src')&&(this.src==null||this.src!==this[$scene].model.url)){this[$loaded]=false;this[$loadedTime]=0;this[$updateSource]();}if(changedProperties.has('alt')){var ariaLabel=this.alt==null?this[$defaultAriaLabel]:this.alt;this[$userInputElement].setAttribute('aria-label',ariaLabel);}}},{key:\"toDataURL\",value:function toDataURL(type,encoderOptions){return this[$renderer].displayCanvas(this[$scene]).toDataURL(type,encoderOptions);}},{key:\"toBlob\",value:function(){var _toBlob=_asyncToGenerator(regeneratorRuntime.mark(function _callee17(options){var _this49=this;var mimeType,qualityArgument,idealAspect,_this$$scene,width,height,model,aspect,_this$$renderer,dpr,scaleFactor,outputWidth,outputHeight,offsetX,offsetY,oldHeight,oldWidth;return regeneratorRuntime.wrap(function _callee17$(_context18){while(1){switch(_context18.prev=_context18.next){case 0:mimeType=options?options.mimeType:undefined;qualityArgument=options?options.qualityArgument:undefined;idealAspect=options?options.idealAspect:undefined;_this$$scene=this[$scene],width=_this$$scene.width,height=_this$$scene.height,model=_this$$scene.model,aspect=_this$$scene.aspect;_this$$renderer=this[$renderer],dpr=_this$$renderer.dpr,scaleFactor=_this$$renderer.scaleFactor;outputWidth=width*scaleFactor*dpr;outputHeight=height*scaleFactor*dpr;offsetX=0;offsetY=0;if(idealAspect===true){if(model.fieldOfViewAspect>aspect){oldHeight=outputHeight;outputHeight=Math.round(outputWidth/model.fieldOfViewAspect);offsetY=(oldHeight-outputHeight)/2;}else{oldWidth=outputWidth;outputWidth=Math.round(outputHeight*model.fieldOfViewAspect);offsetX=(oldWidth-outputWidth)/2;}}blobCanvas.width=outputWidth;blobCanvas.height=outputHeight;_context18.prev=12;return _context18.abrupt(\"return\",new Promise(function(){var _ref5=_asyncToGenerator(regeneratorRuntime.mark(function _callee16(resolve,reject){return regeneratorRuntime.wrap(function _callee16$(_context17){while(1){switch(_context17.prev=_context17.next){case 0:if(blobContext==null){blobContext=blobCanvas.getContext('2d');}blobContext.drawImage(_this49[$renderer].displayCanvas(_this49[$scene]),offsetX,offsetY,outputWidth,outputHeight,0,0,outputWidth,outputHeight);if(!blobCanvas.msToBlob){_context17.next=5;break;}if(!(!mimeType||mimeType==='image/png')){_context17.next=5;break;}return _context17.abrupt(\"return\",resolve(blobCanvas.msToBlob()));case 5:if(blobCanvas.toBlob){_context17.next=11;break;}_context17.t0=resolve;_context17.next=9;return dataUrlToBlob(blobCanvas.toDataURL(mimeType,qualityArgument));case 9:_context17.t1=_context17.sent;return _context17.abrupt(\"return\",(0,_context17.t0)(_context17.t1));case 11:blobCanvas.toBlob(function(blob){if(!blob){return reject(new Error('Unable to retrieve canvas blob'));}resolve(blob);},mimeType,qualityArgument);case 12:case\"end\":return _context17.stop();}}},_callee16);}));return function(_x20,_x21){return _ref5.apply(this,arguments);};}()));case 14:_context18.prev=14;this[$updateSize]({width:width,height:height});return _context18.finish(14);case 17:case\"end\":return _context18.stop();}}},_callee17,this,[[12,,14,17]]);}));function toBlob(_x19){return _toBlob.apply(this,arguments);}return toBlob;}()},{key:$getLoaded,value:function value(){return this[$loaded];}},{key:$getModelIsVisible,value:function value(){return this.loaded&&this[$isElementInViewport];}},{key:$hasTransitioned,value:function value(){return this.modelIsVisible;}},{key:$shouldAttemptPreload,value:function value(){return!!this.src&&this[$isElementInViewport];}},{key:$sceneIsReady,value:function value(){return this[$loaded];}},{key:$updateSize,value:function value(_ref6){var width=_ref6.width,height=_ref6.height;this[$container].style.width=\"\".concat(width,\"px\");this[$container].style.height=\"\".concat(height,\"px\");this[$onResize]({width:parseFloat(width),height:parseFloat(height)});}},{key:$tick$1,value:function value(_time,_delta){}},{key:$markLoaded,value:function value(){if(this[$loaded]){return;}this[$loaded]=true;this[$loadedTime]=performance.now();}},{key:$needsRender,value:function value(){this[$scene].isDirty=true;}},{key:$onModelLoad,value:function value(){}},{key:$onResize,value:function value(e){this[$scene].setSize(e.width,e.height);}},{key:$onContextLost,value:function value(event){this.dispatchEvent(new CustomEvent('error',{detail:{type:'webglcontextlost',sourceError:event.sourceEvent}}));}},{key:$updateSource,value:function(){var _value2=_asyncToGenerator(regeneratorRuntime.mark(function _callee18(){var updateSourceProgress,source,detail;return regeneratorRuntime.wrap(function _callee18$(_context19){while(1){switch(_context19.prev=_context19.next){case 0:if(!(this.loaded||!this[$shouldAttemptPreload]())){_context19.next=2;break;}return _context19.abrupt(\"return\");case 2:updateSourceProgress=this[$progressTracker].beginActivity();source=this.src;_context19.prev=4;_context19.next=7;return this[$scene].setModelSource(source,function(progress){return updateSourceProgress(progress*0.8);});case 7:detail={url:source};this.dispatchEvent(new CustomEvent('preload',{detail:detail}));_context19.next=14;break;case 11:_context19.prev=11;_context19.t0=_context19[\"catch\"](4);this.dispatchEvent(new CustomEvent('error',{detail:_context19.t0}));case 14:_context19.prev=14;updateSourceProgress(0.9);requestAnimationFrame(function(){requestAnimationFrame(function(){updateSourceProgress(1.0);});});return _context19.finish(14);case 18:case\"end\":return _context19.stop();}}},_callee18,this,[[4,11,14,18]]);}));function value(){return _value2.apply(this,arguments);}return value;}()},{key:\"loaded\",get:function get(){return this[$getLoaded]();}},{key:(_a$8=$isElementInViewport,_b$6=$loaded,_c$1=$loadedTime,_d$1=$clearModelTimeout,_e$1=$fallbackResizeHandler,_f$1=$announceModelVisibility,_g$1=$resizeObserver,_h$1=$intersectionObserver,_j$1=$progressTracker,_k$1=$contextLostHandler,$renderer),get:function get(){return Renderer.singleton;}},{key:\"modelIsVisible\",get:function get(){return this[$getModelIsVisible]();}},{key:$ariaLabel,get:function get(){return this.alt==null||this.alt==='null'?this[$defaultAriaLabel]:this.alt;}}],[{key:\"is\",get:function get(){return'model-viewer';}},{key:\"template\",get:function get(){if(!this.hasOwnProperty($template)){this[$template]=makeTemplate(this.is);}return this[$template];}},{key:\"modelCacheSize\",set:function set(value){CachingGLTFLoader[$evictionPolicy].evictionThreshold=value;},get:function get(){return CachingGLTFLoader[$evictionPolicy].evictionThreshold;}},{key:\"minimumRenderScale\",set:function set(value){if(value>1){console.warn('<model-viewer> minimumRenderScale has been clamped to a maximum value of 1.');}if(value<=0){console.warn('<model-viewer> minimumRenderScale has been clamped to a minimum value of 0. This could result in single-pixel renders on some devices; consider increasing.');}Renderer.singleton.minScale=Math.max(0,Math.min(1,value));},get:function get(){return Renderer.singleton.minScale;}}]);return ModelViewerElementBase;}(UpdatingElement);__decorate([property({type:String})],ModelViewerElementBase.prototype,\"alt\",void 0);__decorate([property({type:String})],ModelViewerElementBase.prototype,\"src\",void 0);var __decorate$1=undefined&&undefined.__decorate||function(decorators,target,key,desc){var c=arguments.length,r=c<3?target:desc===null?desc=Object.getOwnPropertyDescriptor(target,key):desc,d;if((typeof Reflect===\"undefined\"?\"undefined\":_typeof(Reflect))===\"object\"&&typeof undefined===\"function\")r=undefined(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--){if(d=decorators[i])r=(c<3?d(r):c>3?d(target,key,r):d(target,key))||r;}return c>3&&r&&Object.defineProperty(target,key,r),r;};var MILLISECONDS_PER_SECOND=1000.0;var $changeAnimation=Symbol('changeAnimation');var $paused=Symbol('paused');var AnimationMixin=function AnimationMixin(ModelViewerElement){var _a;var AnimationModelViewerElement=function(_ModelViewerElement){_inherits(AnimationModelViewerElement,_ModelViewerElement);var _super23=_createSuper(AnimationModelViewerElement);function AnimationModelViewerElement(){var _this50;_classCallCheck(this,AnimationModelViewerElement);_this50=_super23.apply(this,arguments);_this50.autoplay=false;_this50.animationName=undefined;_this50.animationCrossfadeDuration=300;_this50[_a]=true;return _this50;}_createClass(AnimationModelViewerElement,[{key:\"pause\",value:function pause(){if(this[$paused]){return;}this[$paused]=true;this[$renderer].threeRenderer.shadowMap.autoUpdate=false;this.dispatchEvent(new CustomEvent('pause'));}},{key:\"play\",value:function play(){if(this[$paused]&&this.availableAnimations.length>0){this[$paused]=false;this[$renderer].threeRenderer.shadowMap.autoUpdate=true;if(!this[$scene].model.hasActiveAnimation){this[$changeAnimation]();}this.dispatchEvent(new CustomEvent('play'));}}},{key:(_a=$paused,$onModelLoad),value:function value(){_get(_getPrototypeOf(AnimationModelViewerElement.prototype),$onModelLoad,this).call(this);this[$paused]=true;if(this.autoplay){this[$changeAnimation]();this.play();}}},{key:$tick$1,value:function value(_time,delta){_get(_getPrototypeOf(AnimationModelViewerElement.prototype),$tick$1,this).call(this,_time,delta);if(this[$paused]||!this[$hasTransitioned]()){return;}var model=this[$scene].model;model.updateAnimation(delta/MILLISECONDS_PER_SECOND);this[$needsRender]();}},{key:\"updated\",value:function updated(changedProperties){_get(_getPrototypeOf(AnimationModelViewerElement.prototype),\"updated\",this).call(this,changedProperties);if(changedProperties.has('autoplay')&&this.autoplay){this.play();}if(changedProperties.has('animationName')){this[$changeAnimation]();}}},{key:$updateSource,value:function(){var _value3=_asyncToGenerator(regeneratorRuntime.mark(function _callee19(){return regeneratorRuntime.wrap(function _callee19$(_context20){while(1){switch(_context20.prev=_context20.next){case 0:this[$scene].model.stopAnimation();return _context20.abrupt(\"return\",_get(_getPrototypeOf(AnimationModelViewerElement.prototype),$updateSource,this).call(this));case 2:case\"end\":return _context20.stop();}}},_callee19,this);}));function value(){return _value3.apply(this,arguments);}return value;}()},{key:$changeAnimation,value:function value(){var model=this[$scene].model;model.playAnimation(this.animationName,this.animationCrossfadeDuration/MILLISECONDS_PER_SECOND);if(this[$paused]){model.updateAnimation(0);this[$needsRender]();}}},{key:\"availableAnimations\",get:function get(){if(this.loaded){return this[$scene].model.animationNames;}return[];}},{key:\"paused\",get:function get(){return this[$paused];}},{key:\"currentTime\",get:function get(){return this[$scene].model.animationTime;},set:function set(value){this[$scene].model.animationTime=value;this[$renderer].threeRenderer.shadowMap.needsUpdate=true;this[$needsRender]();}}]);return AnimationModelViewerElement;}(ModelViewerElement);__decorate$1([property({type:Boolean})],AnimationModelViewerElement.prototype,\"autoplay\",void 0);__decorate$1([property({type:String,attribute:'animation-name'})],AnimationModelViewerElement.prototype,\"animationName\",void 0);__decorate$1([property({type:Number,attribute:'animation-crossfade-duration'})],AnimationModelViewerElement.prototype,\"animationCrossfadeDuration\",void 0);return AnimationModelViewerElement;};var $annotationRenderer=Symbol('annotationRenderer');var $hotspotMap=Symbol('hotspotMap');var $mutationCallback=Symbol('mutationCallback');var $observer=Symbol('observer');var $addHotspot=Symbol('addHotspot');var $removeHotspot=Symbol('removeHotspot');var pixelPosition=new Vector2();var worldToModel=new Matrix4();var worldToModelNormal=new Matrix3();var AnnotationMixin=function AnnotationMixin(ModelViewerElement){var _a,_b,_c,_d;var AnnotationModelViewerElement=function(_ModelViewerElement2){_inherits(AnnotationModelViewerElement,_ModelViewerElement2);var _super24=_createSuper(AnnotationModelViewerElement);function AnnotationModelViewerElement(){var _this51;_classCallCheck(this,AnnotationModelViewerElement);for(var _len2=arguments.length,args=new Array(_len2),_key5=0;_key5<_len2;_key5++){args[_key5]=arguments[_key5];}_this51=_super24.call.apply(_super24,[this].concat(args));_this51[_a]=new CSS2DRenderer();_this51[_b]=new Map();_this51[_c]=function(mutations){mutations.forEach(function(mutation){if(!_instanceof(mutation,MutationRecord)||mutation.type==='childList'){mutation.addedNodes.forEach(function(node){_this51[$addHotspot](node);});mutation.removedNodes.forEach(function(node){_this51[$removeHotspot](node);});_this51[$needsRender]();}});};_this51[_d]=new MutationObserver(_this51[$mutationCallback]);var domElement=_this51[$annotationRenderer].domElement;var style=domElement.style;style.display='none';style.pointerEvents='none';style.position='absolute';style.top='0';_this51.shadowRoot.querySelector('.default').appendChild(domElement);return _this51;}_createClass(AnnotationModelViewerElement,[{key:\"connectedCallback\",value:function connectedCallback(){_get(_getPrototypeOf(AnnotationModelViewerElement.prototype),\"connectedCallback\",this).call(this);for(var _i344=0;_i344<this.children.length;++_i344){this[$addHotspot](this.children[_i344]);}var _self=self,ShadyDOM=_self.ShadyDOM;if(ShadyDOM==null){this[$observer].observe(this,{childList:true});}else{this[$observer]=ShadyDOM.observeChildren(this,this[$mutationCallback]);}}},{key:\"disconnectedCallback\",value:function disconnectedCallback(){_get(_getPrototypeOf(AnnotationModelViewerElement.prototype),\"disconnectedCallback\",this).call(this);var _self2=self,ShadyDOM=_self2.ShadyDOM;if(ShadyDOM==null){this[$observer].disconnect();}else{ShadyDOM.unobserveChildren(this[$observer]);}}},{key:\"updateHotspot\",value:function updateHotspot(config){var hotspot=this[$hotspotMap].get(config.name);if(hotspot==null){return;}hotspot.updatePosition(config.position);hotspot.updateNormal(config.normal);}},{key:\"positionAndNormalFromPoint\",value:function positionAndNormalFromPoint(pixelX,pixelY){var scene=this[$scene];var width=scene.width,height=scene.height,model=scene.model;pixelPosition.set(pixelX/width,pixelY/height).multiplyScalar(2).subScalar(1);pixelPosition.y*=-1;var hit=scene.positionAndNormalFromPoint(pixelPosition);if(hit==null){return null;}worldToModel.getInverse(model.matrixWorld);var position=toVector3D(hit.position.applyMatrix4(worldToModel));worldToModelNormal.getNormalMatrix(worldToModel);var normal=toVector3D(hit.normal.applyNormalMatrix(worldToModelNormal));return{position:position,normal:normal};}},{key:(_a=$annotationRenderer,_b=$hotspotMap,_c=$mutationCallback,_d=$observer,$tick$1),value:function value(time,delta){_get(_getPrototypeOf(AnnotationModelViewerElement.prototype),$tick$1,this).call(this,time,delta);var scene=this[$scene];var camera=scene.getCamera();if(scene.isDirty){scene.model.updateHotspots(camera.position);this[$annotationRenderer].domElement.style.display='';this[$annotationRenderer].render(scene,camera);}}},{key:$onResize,value:function value(e){_get(_getPrototypeOf(AnnotationModelViewerElement.prototype),$onResize,this).call(this,e);this[$annotationRenderer].setSize(e.width,e.height);}},{key:$addHotspot,value:function value(node){if(!(_instanceof(node,HTMLElement)&&node.slot.indexOf('hotspot')===0)){return;}var hotspot=this[$hotspotMap].get(node.slot);if(hotspot!=null){hotspot.increment();}else{hotspot=new Hotspot({name:node.slot,position:node.dataset.position,normal:node.dataset.normal});this[$hotspotMap].set(node.slot,hotspot);this[$scene].model.addHotspot(hotspot);this[$annotationRenderer].domElement.appendChild(hotspot.element);}this[$scene].isDirty=true;}},{key:$removeHotspot,value:function value(node){if(!_instanceof(node,HTMLElement)){return;}var hotspot=this[$hotspotMap].get(node.slot);if(!hotspot){return;}if(hotspot.decrement()){this[$scene].model.removeHotspot(hotspot);this[$hotspotMap].delete(node.slot);}this[$scene].isDirty=true;}}]);return AnnotationModelViewerElement;}(ModelViewerElement);return AnnotationModelViewerElement;};var enumerationDeserializer=function enumerationDeserializer(allowedNames){return function(valueString){try{var expressions=parseExpressions(valueString);var names=(expressions.length?expressions[0].terms:[]).filter(function(valueNode){return valueNode&&valueNode.type==='ident';}).map(function(valueNode){return valueNode.value;}).filter(function(name){return allowedNames.indexOf(name)>-1;});var result=new Set();var _iterator18=_createForOfIteratorHelper(names),_step18;try{for(_iterator18.s();!(_step18=_iterator18.n()).done;){var name=_step18.value;result.add(name);}}catch(err){_iterator18.e(err);}finally{_iterator18.f();}return result;}catch(_error){}return new Set();};};var __decorate$2=undefined&&undefined.__decorate||function(decorators,target,key,desc){var c=arguments.length,r=c<3?target:desc===null?desc=Object.getOwnPropertyDescriptor(target,key):desc,d;if((typeof Reflect===\"undefined\"?\"undefined\":_typeof(Reflect))===\"object\"&&typeof undefined===\"function\")r=undefined(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--){if(d=decorators[i])r=(c<3?d(r):c>3?d(target,key,r):d(target,key))||r;}return c>3&&r&&Object.defineProperty(target,key,r),r;};var isWebXRBlocked=false;var isSceneViewerBlocked=false;var noArViewerSigil='#model-viewer-no-ar-fallback';var deserializeQuickLookBrowsers=enumerationDeserializer(['safari','chrome']);var deserializeARModes=enumerationDeserializer(['quick-look','scene-viewer','webxr','none']);var DEFAULT_AR_MODES='webxr scene-viewer quick-look';var ARMode={QUICK_LOOK:'quick-look',SCENE_VIEWER:'scene-viewer',WEBXR:'webxr',NONE:'none'};var $arButtonContainer=Symbol('arButtonContainer');var $enterARWithWebXR=Symbol('enterARWithWebXR');var $openSceneViewer=Symbol('openSceneViewer');var $openIOSARQuickLook=Symbol('openIOSARQuickLook');var $canActivateAR=Symbol('canActivateAR');var $arMode=Symbol('arMode');var $arModes=Symbol('arModes');var $canLaunchQuickLook=Symbol('canLaunchQuickLook');var $quickLookBrowsers=Symbol('quickLookBrowsers');var $arAnchor=Symbol('arAnchor');var $preload=Symbol('preload');var $onARButtonContainerClick=Symbol('onARButtonContainerClick');var $onARStatus=Symbol('onARStatus');var $onARTap=Symbol('onARTap');var $selectARMode=Symbol('selectARMode');var ARMixin=function ARMixin(ModelViewerElement){var _a,_b,_c,_d,_e,_f,_g,_h,_j,_k;var ARModelViewerElement=function(_ModelViewerElement3){_inherits(ARModelViewerElement,_ModelViewerElement3);var _super25=_createSuper(ARModelViewerElement);function ARModelViewerElement(){var _this52;_classCallCheck(this,ARModelViewerElement);_this52=_super25.apply(this,arguments);_this52.ar=false;_this52.arScale='auto';_this52.arModes=DEFAULT_AR_MODES;_this52.iosSrc=null;_this52.quickLookBrowsers='safari';_this52[_a]=false;_this52[_b]=_this52.shadowRoot.querySelector('.ar-button');_this52[_c]=document.createElement('a');_this52[_d]=new Set();_this52[_e]=ARMode.NONE;_this52[_f]=false;_this52[_g]=new Set();_this52[_h]=function(event){event.preventDefault();_this52.activateAR();};_this52[_j]=function(_ref7){var status=_ref7.status;if(status===ARStatus.NOT_PRESENTING||_this52[$renderer].arRenderer.presentedScene===_this52[$scene]){_this52.setAttribute('ar-status',status);_this52.dispatchEvent(new CustomEvent('ar-status',{detail:{status:status}}));}};_this52[_k]=function(event){if(event.data=='_apple_ar_quicklook_button_tapped'){_this52.dispatchEvent(new CustomEvent('quick-look-button-tapped'));}};return _this52;}_createClass(ARModelViewerElement,[{key:\"connectedCallback\",value:function connectedCallback(){_get(_getPrototypeOf(ARModelViewerElement.prototype),\"connectedCallback\",this).call(this);this[$renderer].arRenderer.addEventListener('status',this[$onARStatus]);this.setAttribute('ar-status',ARStatus.NOT_PRESENTING);this[$arAnchor].addEventListener('message',this[$onARTap]);}},{key:\"disconnectedCallback\",value:function disconnectedCallback(){_get(_getPrototypeOf(ARModelViewerElement.prototype),\"disconnectedCallback\",this).call(this);this[$renderer].arRenderer.removeEventListener('status',this[$onARStatus]);this[$arAnchor].removeEventListener('message',this[$onARTap]);}},{key:\"update\",value:function(){var _update2=_asyncToGenerator(regeneratorRuntime.mark(function _callee20(changedProperties){return regeneratorRuntime.wrap(function _callee20$(_context21){while(1){switch(_context21.prev=_context21.next){case 0:_get(_getPrototypeOf(ARModelViewerElement.prototype),\"update\",this).call(this,changedProperties);if(changedProperties.has('quickLookBrowsers')){this[$quickLookBrowsers]=deserializeQuickLookBrowsers(this.quickLookBrowsers);}if(!(!changedProperties.has('ar')&&!changedProperties.has('arModes')&&!changedProperties.has('iosSrc'))){_context21.next=4;break;}return _context21.abrupt(\"return\");case 4:if(changedProperties.has('arModes')){this[$arModes]=deserializeARModes(this.arModes);}if(changedProperties.has('arScale')){this[$scene].canScale=this.arScale!=='fixed';}this[$selectARMode]();case 7:case\"end\":return _context21.stop();}}},_callee20,this);}));function update(_x22){return _update2.apply(this,arguments);}return update;}()},{key:\"activateAR\",value:function(){var _activateAR=_asyncToGenerator(regeneratorRuntime.mark(function _callee21(){return regeneratorRuntime.wrap(function _callee21$(_context22){while(1){switch(_context22.prev=_context22.next){case 0:_context22.t0=this[$arMode];_context22.next=_context22.t0===ARMode.QUICK_LOOK?3:_context22.t0===ARMode.WEBXR?5:_context22.t0===ARMode.SCENE_VIEWER?8:10;break;case 3:this[$openIOSARQuickLook]();return _context22.abrupt(\"break\",12);case 5:_context22.next=7;return this[$enterARWithWebXR]();case 7:return _context22.abrupt(\"break\",12);case 8:this[$openSceneViewer]();return _context22.abrupt(\"break\",12);case 10:console.warn('No AR Mode can be activated. This is probably due to missing configuration or device capabilities');return _context22.abrupt(\"break\",12);case 12:case\"end\":return _context22.stop();}}},_callee21,this);}));function activateAR(){return _activateAR.apply(this,arguments);}return activateAR;}()},{key:(_a=$canActivateAR,_b=$arButtonContainer,_c=$arAnchor,_d=$arModes,_e=$arMode,_f=$preload,_g=$quickLookBrowsers,_h=$onARButtonContainerClick,_j=$onARStatus,_k=$onARTap,$selectARMode),value:function(){var _value4=_asyncToGenerator(regeneratorRuntime.mark(function _callee22(){var arModes,_i345,_arModes,_value5,status;return regeneratorRuntime.wrap(function _callee22$(_context23){while(1){switch(_context23.prev=_context23.next){case 0:this[$arMode]=ARMode.NONE;if(!this.ar){_context23.next=28;break;}arModes=[];this[$arModes].forEach(function(value){arModes.push(value);});_i345=0,_arModes=arModes;case 5:if(!(_i345<_arModes.length)){_context23.next=28;break;}_value5=_arModes[_i345];_context23.t0=_value5==='webxr'&&IS_WEBXR_AR_CANDIDATE&&!isWebXRBlocked;if(!_context23.t0){_context23.next=12;break;}_context23.next=11;return this[$renderer].arRenderer.supportsPresentation();case 11:_context23.t0=_context23.sent;case 12:if(!_context23.t0){_context23.next=17;break;}this[$arMode]=ARMode.WEBXR;return _context23.abrupt(\"break\",28);case 17:if(!(_value5==='scene-viewer'&&IS_SCENEVIEWER_CANDIDATE&&!isSceneViewerBlocked)){_context23.next=22;break;}this[$arMode]=ARMode.SCENE_VIEWER;return _context23.abrupt(\"break\",28);case 22:if(!(_value5==='quick-look'&&!!this.iosSrc&&this[$canLaunchQuickLook]&&IS_AR_QUICKLOOK_CANDIDATE)){_context23.next=25;break;}this[$arMode]=ARMode.QUICK_LOOK;return _context23.abrupt(\"break\",28);case 25:_i345++;_context23.next=5;break;case 28:if(this.canActivateAR){this[$arButtonContainer].classList.add('enabled');this[$arButtonContainer].addEventListener('click',this[$onARButtonContainerClick]);}else if(this[$arButtonContainer].classList.contains('enabled')){this[$arButtonContainer].removeEventListener('click',this[$onARButtonContainerClick]);this[$arButtonContainer].classList.remove('enabled');status=ARStatus.FAILED;this.setAttribute('ar-status',status);this.dispatchEvent(new CustomEvent('ar-status',{detail:{status:status}}));}case 29:case\"end\":return _context23.stop();}}},_callee22,this);}));function value(){return _value4.apply(this,arguments);}return value;}()},{key:$enterARWithWebXR,value:function(){var _value6=_asyncToGenerator(regeneratorRuntime.mark(function _callee23(){return regeneratorRuntime.wrap(function _callee23$(_context24){while(1){switch(_context24.prev=_context24.next){case 0:console.log('Attempting to present in AR...');if(this[$loaded]){_context24.next=7;break;}this[$preload]=true;this[$updateSource]();_context24.next=6;return waitForEvent(this,'load');case 6:this[$preload]=false;case 7:_context24.prev=7;this[$arButtonContainer].removeEventListener('click',this[$onARButtonContainerClick]);_context24.next=11;return this[$renderer].arRenderer.present(this[$scene]);case 11:_context24.next=23;break;case 13:_context24.prev=13;_context24.t0=_context24[\"catch\"](7);console.warn('Error while trying to present to AR');console.error(_context24.t0);_context24.next=19;return this[$renderer].arRenderer.stopPresenting();case 19:isWebXRBlocked=true;_context24.next=22;return this[$selectARMode]();case 22:this.activateAR();case 23:_context24.prev=23;this[$selectARMode]();return _context24.finish(23);case 26:case\"end\":return _context24.stop();}}},_callee23,this,[[7,13,23,26]]);}));function value(){return _value6.apply(this,arguments);}return value;}()},{key:$shouldAttemptPreload,value:function value(){return _get(_getPrototypeOf(ARModelViewerElement.prototype),$shouldAttemptPreload,this).call(this)||this[$preload];}},{key:$openSceneViewer,value:function value(){var _this53=this;var gltfSrc=this.src.replace('?','&');var location=self.location.toString();var locationUrl=new URL(location);var modelUrl=new URL(gltfSrc,location);locationUrl.hash=noArViewerSigil;var intentParams=\"?file=\".concat(modelUrl.toString(),\"&mode=ar_only\");if(!gltfSrc.includes('&link=')){intentParams+=\"&link=\".concat(location);}if(!gltfSrc.includes('&title=')){intentParams+=\"&title=\".concat(encodeURIComponent(this.alt||''));}if(this.arScale==='fixed'){intentParams+=\"&resizable=false\";}var intent=\"intent://arvr.google.com/scene-viewer/1.0\".concat(intentParams,\"#Intent;scheme=https;package=com.google.ar.core;action=android.intent.action.VIEW;S.browser_fallback_url=\").concat(encodeURIComponent(locationUrl.toString()),\";end;\");var undoHashChange=function undoHashChange(){if(self.location.hash===noArViewerSigil){isSceneViewerBlocked=true;self.history.back();_this53[$selectARMode]();}};self.addEventListener('hashchange',undoHashChange,{once:true});this[$arAnchor].setAttribute('href',intent);this[$arAnchor].click();}},{key:$openIOSARQuickLook,value:function value(){var modelUrl=new URL(this.iosSrc,self.location.toString());if(this.arScale==='fixed'){modelUrl.hash='allowsContentScaling=0';}var anchor=this[$arAnchor];anchor.setAttribute('rel','ar');var img=document.createElement('img');anchor.appendChild(img);anchor.setAttribute('href',modelUrl.toString());anchor.click();anchor.removeChild(img);}},{key:\"canActivateAR\",get:function get(){return this[$arMode]!==ARMode.NONE;}},{key:$canLaunchQuickLook,get:function get(){if(IS_IOS_CHROME){return this[$quickLookBrowsers].has('chrome');}else if(IS_IOS_SAFARI){return this[$quickLookBrowsers].has('safari');}return false;}}]);return ARModelViewerElement;}(ModelViewerElement);__decorate$2([property({type:Boolean,attribute:'ar'})],ARModelViewerElement.prototype,\"ar\",void 0);__decorate$2([property({type:String,attribute:'ar-scale'})],ARModelViewerElement.prototype,\"arScale\",void 0);__decorate$2([property({type:String,attribute:'ar-modes'})],ARModelViewerElement.prototype,\"arModes\",void 0);__decorate$2([property({type:String,attribute:'ios-src'})],ARModelViewerElement.prototype,\"iosSrc\",void 0);__decorate$2([property({type:String,attribute:'quick-look-browsers'})],ARModelViewerElement.prototype,\"quickLookBrowsers\",void 0);return ARModelViewerElement;};var _a$9,_b$7,_c$2;var $evaluate=Symbol('evaluate');var $lastValue=Symbol('lastValue');var Evaluator=function(){function Evaluator(){_classCallCheck(this,Evaluator);this[_a$9]=null;}_createClass(Evaluator,[{key:\"evaluate\",value:function evaluate(){if(!this.isConstant||this[$lastValue]==null){this[$lastValue]=this[$evaluate]();}return this[$lastValue];}},{key:\"isConstant\",get:function get(){return false;}}],[{key:\"evaluatableFor\",value:function evaluatableFor(node){var basis=arguments.length>1&&arguments[1]!==undefined?arguments[1]:ZERO;if(_instanceof(node,Evaluator)){return node;}if(node.type==='number'){if(node.unit==='%'){return new PercentageEvaluator(node,basis);}return node;}switch(node.name.value){case'calc':return new CalcEvaluator(node,basis);case'env':return new EnvEvaluator(node);}return ZERO;}},{key:\"evaluate\",value:function evaluate(evaluatable){if(_instanceof(evaluatable,Evaluator)){return evaluatable.evaluate();}return evaluatable;}},{key:\"isConstant\",value:function isConstant(evaluatable){if(_instanceof(evaluatable,Evaluator)){return evaluatable.isConstant;}return true;}},{key:\"applyIntrinsics\",value:function applyIntrinsics(evaluated,intrinsics){var basis=intrinsics.basis,keywords=intrinsics.keywords;var auto=keywords.auto;return basis.map(function(basisNode,index){var autoSubstituteNode=auto[index]==null?basisNode:auto[index];var evaluatedNode=evaluated[index]?evaluated[index]:autoSubstituteNode;if(evaluatedNode.type==='ident'){var keyword=evaluatedNode.value;if(keyword in keywords){evaluatedNode=keywords[keyword][index];}}if(evaluatedNode==null||evaluatedNode.type==='ident'){evaluatedNode=autoSubstituteNode;}if(evaluatedNode.unit==='%'){return numberNode(evaluatedNode.number/100*basisNode.number,basisNode.unit);}evaluatedNode=normalizeUnit(evaluatedNode,basisNode);if(evaluatedNode.unit!==basisNode.unit){return basisNode;}return evaluatedNode;});}}]);return Evaluator;}();_a$9=$lastValue;var $percentage=Symbol('percentage');var $basis=Symbol('basis');var PercentageEvaluator=function(_Evaluator){_inherits(PercentageEvaluator,_Evaluator);var _super26=_createSuper(PercentageEvaluator);function PercentageEvaluator(percentage,basis){var _this54;_classCallCheck(this,PercentageEvaluator);_this54=_super26.call(this);_this54[$percentage]=percentage;_this54[$basis]=basis;return _this54;}_createClass(PercentageEvaluator,[{key:$evaluate,value:function value(){return numberNode(this[$percentage].number/100*this[$basis].number,this[$basis].unit);}},{key:\"isConstant\",get:function get(){return true;}}]);return PercentageEvaluator;}(Evaluator);var $identNode=Symbol('identNode');var EnvEvaluator=function(_Evaluator2){_inherits(EnvEvaluator,_Evaluator2);var _super27=_createSuper(EnvEvaluator);function EnvEvaluator(envFunction){var _this55;_classCallCheck(this,EnvEvaluator);_this55=_super27.call(this);_this55[_b$7]=null;var identNode=envFunction.arguments.length?envFunction.arguments[0].terms[0]:null;if(identNode!=null&&identNode.type==='ident'){_this55[$identNode]=identNode;}return _this55;}_createClass(EnvEvaluator,[{key:(_b$7=$identNode,$evaluate),value:function value(){if(this[$identNode]!=null){switch(this[$identNode].value){case'window-scroll-y':var verticalScrollPosition=window.pageYOffset;var verticalScrollMax=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight);var scrollY=verticalScrollPosition/(verticalScrollMax-window.innerHeight)||0;return{type:'number',number:scrollY,unit:null};}}return ZERO;}},{key:\"isConstant\",get:function get(){return false;}}]);return EnvEvaluator;}(Evaluator);var IS_MULTIPLICATION_RE=/[\\*\\/]/;var $evaluator=Symbol('evalutor');var CalcEvaluator=function(_Evaluator3){_inherits(CalcEvaluator,_Evaluator3);var _super28=_createSuper(CalcEvaluator);function CalcEvaluator(calcFunction){var _this56;var basis=arguments.length>1&&arguments[1]!==undefined?arguments[1]:ZERO;_classCallCheck(this,CalcEvaluator);_this56=_super28.call(this);_this56[_c$2]=null;if(calcFunction.arguments.length!==1){return _possibleConstructorReturn(_this56);}var terms=calcFunction.arguments[0].terms.slice();var secondOrderTerms=[];while(terms.length){var term=terms.shift();if(secondOrderTerms.length>0){var previousTerm=secondOrderTerms[secondOrderTerms.length-1];if(previousTerm.type==='operator'&&IS_MULTIPLICATION_RE.test(previousTerm.value)){var operator=secondOrderTerms.pop();var leftValue=secondOrderTerms.pop();if(leftValue==null){return _possibleConstructorReturn(_this56);}secondOrderTerms.push(new OperatorEvaluator(operator,Evaluator.evaluatableFor(leftValue,basis),Evaluator.evaluatableFor(term,basis)));continue;}}secondOrderTerms.push(term.type==='operator'?term:Evaluator.evaluatableFor(term,basis));}while(secondOrderTerms.length>2){var _secondOrderTerms$spl=secondOrderTerms.splice(0,3),_secondOrderTerms$spl2=_slicedToArray(_secondOrderTerms$spl,3),left=_secondOrderTerms$spl2[0],_operator=_secondOrderTerms$spl2[1],right=_secondOrderTerms$spl2[2];if(_operator.type!=='operator'){return _possibleConstructorReturn(_this56);}secondOrderTerms.unshift(new OperatorEvaluator(_operator,Evaluator.evaluatableFor(left,basis),Evaluator.evaluatableFor(right,basis)));}if(secondOrderTerms.length===1){_this56[$evaluator]=secondOrderTerms[0];}return _this56;}_createClass(CalcEvaluator,[{key:(_c$2=$evaluator,$evaluate),value:function value(){return this[$evaluator]!=null?Evaluator.evaluate(this[$evaluator]):ZERO;}},{key:\"isConstant\",get:function get(){return this[$evaluator]==null||Evaluator.isConstant(this[$evaluator]);}}]);return CalcEvaluator;}(Evaluator);var $operator=Symbol('operator');var $left=Symbol('left');var $right=Symbol('right');var OperatorEvaluator=function(_Evaluator4){_inherits(OperatorEvaluator,_Evaluator4);var _super29=_createSuper(OperatorEvaluator);function OperatorEvaluator(operator,left,right){var _this57;_classCallCheck(this,OperatorEvaluator);_this57=_super29.call(this);_this57[$operator]=operator;_this57[$left]=left;_this57[$right]=right;return _this57;}_createClass(OperatorEvaluator,[{key:$evaluate,value:function value(){var leftNode=normalizeUnit(Evaluator.evaluate(this[$left]));var rightNode=normalizeUnit(Evaluator.evaluate(this[$right]));var leftValue=leftNode.number,leftUnit=leftNode.unit;var rightValue=rightNode.number,rightUnit=rightNode.unit;if(rightUnit!=null&&leftUnit!=null&&rightUnit!=leftUnit){return ZERO;}var unit=leftUnit||rightUnit;var value;switch(this[$operator].value){case'+':value=leftValue+rightValue;break;case'-':value=leftValue-rightValue;break;case'/':value=leftValue/rightValue;break;case'*':value=leftValue*rightValue;break;default:return ZERO;}return{type:'number',number:value,unit:unit};}},{key:\"isConstant\",get:function get(){return Evaluator.isConstant(this[$left])&&Evaluator.isConstant(this[$right]);}}]);return OperatorEvaluator;}(Evaluator);var $evaluatables=Symbol('evaluatables');var $intrinsics=Symbol('intrinsics');var StyleEvaluator=function(_Evaluator5){_inherits(StyleEvaluator,_Evaluator5);var _super30=_createSuper(StyleEvaluator);function StyleEvaluator(expressions,intrinsics){var _this58;_classCallCheck(this,StyleEvaluator);_this58=_super30.call(this);_this58[$intrinsics]=intrinsics;var firstExpression=expressions[0];var terms=firstExpression!=null?firstExpression.terms:[];_this58[$evaluatables]=intrinsics.basis.map(function(basisNode,index){var term=terms[index];if(term==null){return{type:'ident',value:'auto'};}if(term.type==='ident'){return term;}return Evaluator.evaluatableFor(term,basisNode);});return _this58;}_createClass(StyleEvaluator,[{key:$evaluate,value:function value(){var evaluated=this[$evaluatables].map(function(evaluatable){return Evaluator.evaluate(evaluatable);});return Evaluator.applyIntrinsics(evaluated,this[$intrinsics]).map(function(numberNode){return numberNode.number;});}},{key:\"isConstant\",get:function get(){var _iterator19=_createForOfIteratorHelper(this[$evaluatables]),_step19;try{for(_iterator19.s();!(_step19=_iterator19.n()).done;){var evaluatable=_step19.value;if(!Evaluator.isConstant(evaluatable)){return false;}}}catch(err){_iterator19.e(err);}finally{_iterator19.f();}return true;}}]);return StyleEvaluator;}(Evaluator);var _a$a,_b$8,_c$3,_d$2;var $instances=Symbol('instances');var $activateListener=Symbol('activateListener');var $deactivateListener=Symbol('deactivateListener');var $notifyInstances=Symbol('notifyInstances');var $notify=Symbol('notify');var $scrollCallback=Symbol('callback');var ScrollObserver=function(){function ScrollObserver(callback){_classCallCheck(this,ScrollObserver);this[$scrollCallback]=callback;}_createClass(ScrollObserver,[{key:\"observe\",value:function observe(){if(ScrollObserver[$instances].size===0){ScrollObserver[$activateListener]();}ScrollObserver[$instances].add(this);}},{key:\"disconnect\",value:function disconnect(){ScrollObserver[$instances].delete(this);if(ScrollObserver[$instances].size===0){ScrollObserver[$deactivateListener]();}}},{key:$notify,value:function value(){this[$scrollCallback]();}}],[{key:$notifyInstances,value:function value(){var _iterator20=_createForOfIteratorHelper(ScrollObserver[$instances]),_step20;try{for(_iterator20.s();!(_step20=_iterator20.n()).done;){var instance=_step20.value;instance[$notify]();}}catch(err){_iterator20.e(err);}finally{_iterator20.f();}}},{key:(_a$a=$instances,$activateListener),value:function value(){window.addEventListener('scroll',this[$notifyInstances],{passive:true});}},{key:$deactivateListener,value:function value(){window.removeEventListener('scroll',this[$notifyInstances]);}}]);return ScrollObserver;}();ScrollObserver[_a$a]=new Set();var $computeStyleCallback=Symbol('computeStyleCallback');var $astWalker=Symbol('astWalker');var $dependencies=Symbol('dependencies');var $scrollHandler=Symbol('scrollHandler');var $onScroll=Symbol('onScroll');var StyleEffector=function(){function StyleEffector(callback){var _this59=this;_classCallCheck(this,StyleEffector);this[_b$8]={};this[_c$3]=new ASTWalker(['function']);this[_d$2]=function(){return _this59[$onScroll]();};this[$computeStyleCallback]=callback;}_createClass(StyleEffector,[{key:\"observeEffectsFor\",value:function observeEffectsFor(ast){var _this60=this;var newDependencies={};var oldDependencies=this[$dependencies];this[$astWalker].walk(ast,function(functionNode){var name=functionNode.name;var firstArgument=functionNode.arguments[0];var firstTerm=firstArgument.terms[0];if(name.value!=='env'||firstTerm==null||firstTerm.type!=='ident'){return;}switch(firstTerm.value){case'window-scroll-y':if(newDependencies['window-scroll']==null){var observer='window-scroll'in oldDependencies?oldDependencies['window-scroll']:new ScrollObserver(_this60[$scrollHandler]);observer.observe();delete oldDependencies['window-scroll'];newDependencies['window-scroll']=observer;}break;}});for(var environmentState in oldDependencies){var observer=oldDependencies[environmentState];observer.disconnect();}this[$dependencies]=newDependencies;}},{key:\"dispose\",value:function dispose(){for(var environmentState in this[$dependencies]){var observer=this[$dependencies][environmentState];observer.disconnect();}}},{key:(_b$8=$dependencies,_c$3=$astWalker,_d$2=$scrollHandler,$onScroll),value:function value(){this[$computeStyleCallback]({relatedState:'window-scroll'});}}]);return StyleEffector;}();var style=function style(config){var observeEffects=config.observeEffects||false;var getIntrinsics=_instanceof(config.intrinsics,Function)?config.intrinsics:function(){return config.intrinsics;};return function(proto,propertyName){var _Object$definePropert;var originalUpdated=proto.updated;var originalConnectedCallback=proto.connectedCallback;var originalDisconnectedCallback=proto.disconnectedCallback;var $styleEffector=Symbol(\"\".concat(propertyName,\"StyleEffector\"));var $styleEvaluator=Symbol(\"\".concat(propertyName,\"StyleEvaluator\"));var $updateEvaluator=Symbol(\"\".concat(propertyName,\"UpdateEvaluator\"));var $evaluateAndSync=Symbol(\"\".concat(propertyName,\"EvaluateAndSync\"));Object.defineProperties(proto,(_Object$definePropert={},_defineProperty(_Object$definePropert,$styleEffector,{value:null,writable:true}),_defineProperty(_Object$definePropert,$styleEvaluator,{value:null,writable:true}),_defineProperty(_Object$definePropert,$updateEvaluator,{value:function value(){var _this61=this;var ast=parseExpressions(this[propertyName]);this[$styleEvaluator]=new StyleEvaluator(ast,getIntrinsics(this));if(this[$styleEffector]==null&&observeEffects){this[$styleEffector]=new StyleEffector(function(){return _this61[$evaluateAndSync]();});}if(this[$styleEffector]!=null){this[$styleEffector].observeEffectsFor(ast);}}}),_defineProperty(_Object$definePropert,$evaluateAndSync,{value:function value(){if(this[$styleEvaluator]==null){return;}var result=this[$styleEvaluator].evaluate();this[config.updateHandler](result);}}),_defineProperty(_Object$definePropert,\"updated\",{value:function value(changedProperties){if(changedProperties.has(propertyName)){this[$updateEvaluator]();this[$evaluateAndSync]();}originalUpdated.call(this,changedProperties);}}),_defineProperty(_Object$definePropert,\"connectedCallback\",{value:function value(){originalConnectedCallback.call(this);this.requestUpdate(propertyName,this[propertyName]);}}),_defineProperty(_Object$definePropert,\"disconnectedCallback\",{value:function value(){originalDisconnectedCallback.call(this);if(this[$styleEffector]!=null){this[$styleEffector].dispose();this[$styleEffector]=null;}}}),_Object$definePropert));};};var DEFAULT_OPTIONS=Object.freeze({minimumRadius:0,maximumRadius:Infinity,minimumPolarAngle:Math.PI/8,maximumPolarAngle:Math.PI-Math.PI/8,minimumAzimuthalAngle:-Infinity,maximumAzimuthalAngle:Infinity,minimumFieldOfView:10,maximumFieldOfView:45,interactionPolicy:'always-allow',touchAction:'pan-y'});var TOUCH_EVENT_RE=/^touch(start|end|move)$/;var KEYBOARD_ORBIT_INCREMENT=Math.PI/8;var ZOOM_SENSITIVITY=0.04;var KeyCode={PAGE_UP:33,PAGE_DOWN:34,LEFT:37,UP:38,RIGHT:39,DOWN:40};var ChangeSource={USER_INTERACTION:'user-interaction',NONE:'none'};var SmoothControls=function(_EventDispatcher5){_inherits(SmoothControls,_EventDispatcher5);var _super31=_createSuper(SmoothControls);function SmoothControls(camera,element){var _this62;_classCallCheck(this,SmoothControls);_this62=_super31.call(this);_this62.camera=camera;_this62.element=element;_this62.sensitivity=1;_this62._interactionEnabled=false;_this62.isUserChange=false;_this62.isUserPointing=false;_this62.spherical=new Spherical();_this62.goalSpherical=new Spherical();_this62.thetaDamper=new Damper();_this62.phiDamper=new Damper();_this62.radiusDamper=new Damper();_this62.logFov=Math.log(DEFAULT_OPTIONS.maximumFieldOfView);_this62.goalLogFov=_this62.logFov;_this62.fovDamper=new Damper();_this62.pointerIsDown=false;_this62.lastPointerPosition={clientX:0,clientY:0};_this62.touchMode='rotate';_this62.touchDecided=false;_this62.onPointerMove=function(event){if(!_this62.pointerIsDown||!_this62.canInteract){return;}if(TOUCH_EVENT_RE.test(event.type)){var touches=event.touches;switch(_this62.touchMode){case'zoom':if(_this62.lastTouches.length>1&&touches.length>1){var lastTouchDistance=_this62.twoTouchDistance(_this62.lastTouches[0],_this62.lastTouches[1]);var touchDistance=_this62.twoTouchDistance(touches[0],touches[1]);var deltaZoom=ZOOM_SENSITIVITY*(lastTouchDistance-touchDistance)/10.0;_this62.userAdjustOrbit(0,0,deltaZoom);}break;case'rotate':var touchAction=_this62._options.touchAction;if(!_this62.touchDecided&&touchAction!=='none'){_this62.touchDecided=true;var _touches$=touches[0],clientX=_touches$.clientX,clientY=_touches$.clientY;var dx=Math.abs(clientX-_this62.lastPointerPosition.clientX);var dy=Math.abs(clientY-_this62.lastPointerPosition.clientY);if(touchAction==='pan-y'&&dy>dx&&document.body.scrollHeight>window.innerHeight||touchAction==='pan-x'&&dx>dy){_this62.touchMode='scroll';return;}}_this62.handleSinglePointerMove(touches[0]);break;case'scroll':return;}_this62.lastTouches=touches;}else{_this62.handleSinglePointerMove(event);}if(event.cancelable){event.preventDefault();}};_this62.onPointerDown=function(event){_this62.pointerIsDown=true;_this62.isUserPointing=false;if(TOUCH_EVENT_RE.test(event.type)){var touches=event.touches;_this62.touchDecided=false;switch(touches.length){default:case 1:_this62.touchMode='rotate';_this62.handleSinglePointerDown(touches[0]);break;case 2:_this62.touchMode='zoom';break;}_this62.lastTouches=touches;}else{_this62.handleSinglePointerDown(event);}};_this62.onPointerUp=function(_event){_this62.element.style.cursor='grab';_this62.pointerIsDown=false;if(_this62.isUserPointing){_this62.dispatchEvent({type:'pointer-change-end',pointer:Object.assign({},_this62.lastPointerPosition)});}};_this62.onWheel=function(event){if(!_this62.canInteract){return;}var deltaZoom=event.deltaY*(event.deltaMode==1?18:1)*ZOOM_SENSITIVITY/30;_this62.userAdjustOrbit(0,0,deltaZoom);if(event.cancelable){event.preventDefault();}};_this62.onKeyDown=function(event){var relevantKey=false;switch(event.keyCode){case KeyCode.PAGE_UP:relevantKey=true;_this62.userAdjustOrbit(0,0,ZOOM_SENSITIVITY);break;case KeyCode.PAGE_DOWN:relevantKey=true;_this62.userAdjustOrbit(0,0,-1*ZOOM_SENSITIVITY);break;case KeyCode.UP:relevantKey=true;_this62.userAdjustOrbit(0,-KEYBOARD_ORBIT_INCREMENT,0);break;case KeyCode.DOWN:relevantKey=true;_this62.userAdjustOrbit(0,KEYBOARD_ORBIT_INCREMENT,0);break;case KeyCode.LEFT:relevantKey=true;_this62.userAdjustOrbit(-KEYBOARD_ORBIT_INCREMENT,0,0);break;case KeyCode.RIGHT:relevantKey=true;_this62.userAdjustOrbit(KEYBOARD_ORBIT_INCREMENT,0,0);break;}if(relevantKey&&event.cancelable){event.preventDefault();}};_this62._options=Object.assign({},DEFAULT_OPTIONS);_this62.setOrbit(0,Math.PI/2,1);_this62.setFieldOfView(100);_this62.jumpToGoal();return _this62;}_createClass(SmoothControls,[{key:\"enableInteraction\",value:function enableInteraction(){if(this._interactionEnabled===false){var element=this.element;element.addEventListener('mousemove',this.onPointerMove);element.addEventListener('mousedown',this.onPointerDown);element.addEventListener('wheel',this.onWheel);element.addEventListener('keydown',this.onKeyDown);element.addEventListener('touchstart',this.onPointerDown,{passive:true});element.addEventListener('touchmove',this.onPointerMove);self.addEventListener('mouseup',this.onPointerUp);self.addEventListener('touchend',this.onPointerUp);this.element.style.cursor='grab';this._interactionEnabled=true;}}},{key:\"disableInteraction\",value:function disableInteraction(){if(this._interactionEnabled===true){var element=this.element;element.removeEventListener('mousemove',this.onPointerMove);element.removeEventListener('mousedown',this.onPointerDown);element.removeEventListener('wheel',this.onWheel);element.removeEventListener('keydown',this.onKeyDown);element.removeEventListener('touchstart',this.onPointerDown);element.removeEventListener('touchmove',this.onPointerMove);self.removeEventListener('mouseup',this.onPointerUp);self.removeEventListener('touchend',this.onPointerUp);element.style.cursor='';this._interactionEnabled=false;}}},{key:\"getCameraSpherical\",value:function getCameraSpherical(){var target=arguments.length>0&&arguments[0]!==undefined?arguments[0]:new Spherical();return target.copy(this.spherical);}},{key:\"getFieldOfView\",value:function getFieldOfView(){return this.camera.fov;}},{key:\"applyOptions\",value:function applyOptions(_options){Object.assign(this._options,_options);this.setOrbit();this.setFieldOfView(Math.exp(this.goalLogFov));}},{key:\"updateNearFar\",value:function updateNearFar(nearPlane,farPlane){this.camera.near=Math.max(nearPlane,farPlane/1000);this.camera.far=farPlane;this.camera.updateProjectionMatrix();}},{key:\"updateAspect\",value:function updateAspect(aspect){this.camera.aspect=aspect;this.camera.updateProjectionMatrix();}},{key:\"setOrbit\",value:function setOrbit(){var goalTheta=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.goalSpherical.theta;var goalPhi=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.goalSpherical.phi;var goalRadius=arguments.length>2&&arguments[2]!==undefined?arguments[2]:this.goalSpherical.radius;var _this$_options=this._options,minimumAzimuthalAngle=_this$_options.minimumAzimuthalAngle,maximumAzimuthalAngle=_this$_options.maximumAzimuthalAngle,minimumPolarAngle=_this$_options.minimumPolarAngle,maximumPolarAngle=_this$_options.maximumPolarAngle,minimumRadius=_this$_options.minimumRadius,maximumRadius=_this$_options.maximumRadius;var _this$goalSpherical=this.goalSpherical,theta=_this$goalSpherical.theta,phi=_this$goalSpherical.phi,radius=_this$goalSpherical.radius;var nextTheta=clamp(goalTheta,minimumAzimuthalAngle,maximumAzimuthalAngle);if(!isFinite(minimumAzimuthalAngle)&&!isFinite(maximumAzimuthalAngle)){this.spherical.theta=this.wrapAngle(this.spherical.theta-nextTheta)+nextTheta;}var nextPhi=clamp(goalPhi,minimumPolarAngle,maximumPolarAngle);var nextRadius=clamp(goalRadius,minimumRadius,maximumRadius);if(nextTheta===theta&&nextPhi===phi&&nextRadius===radius){return false;}this.goalSpherical.theta=nextTheta;this.goalSpherical.phi=nextPhi;this.goalSpherical.radius=nextRadius;this.goalSpherical.makeSafe();this.isUserChange=false;return true;}},{key:\"setRadius\",value:function setRadius(radius){this.goalSpherical.radius=radius;this.setOrbit();}},{key:\"setFieldOfView\",value:function setFieldOfView(fov){var _this$_options2=this._options,minimumFieldOfView=_this$_options2.minimumFieldOfView,maximumFieldOfView=_this$_options2.maximumFieldOfView;fov=clamp(fov,minimumFieldOfView,maximumFieldOfView);this.goalLogFov=Math.log(fov);}},{key:\"adjustOrbit\",value:function adjustOrbit(deltaTheta,deltaPhi,deltaZoom){var _this$goalSpherical2=this.goalSpherical,theta=_this$goalSpherical2.theta,phi=_this$goalSpherical2.phi,radius=_this$goalSpherical2.radius;var _this$_options3=this._options,minimumRadius=_this$_options3.minimumRadius,maximumRadius=_this$_options3.maximumRadius,minimumFieldOfView=_this$_options3.minimumFieldOfView,maximumFieldOfView=_this$_options3.maximumFieldOfView;var dTheta=this.spherical.theta-theta;var dThetaLimit=Math.PI-0.001;var goalTheta=theta-clamp(deltaTheta,-dThetaLimit-dTheta,dThetaLimit-dTheta);var goalPhi=phi-deltaPhi;var deltaRatio=deltaZoom===0?0:deltaZoom>0?(maximumRadius-radius)/(Math.log(maximumFieldOfView)-this.goalLogFov):(radius-minimumRadius)/(this.goalLogFov-Math.log(minimumFieldOfView));var goalRadius=radius+deltaZoom*Math.min(isFinite(deltaRatio)?deltaRatio:Infinity,maximumRadius-minimumRadius);this.setOrbit(goalTheta,goalPhi,goalRadius);if(deltaZoom!==0){var goalLogFov=this.goalLogFov+deltaZoom;this.setFieldOfView(Math.exp(goalLogFov));}}},{key:\"jumpToGoal\",value:function jumpToGoal(){this.update(0,SETTLING_TIME);}},{key:\"update\",value:function update(_time,delta){if(this.isStationary()){return;}var _this$_options4=this._options,maximumPolarAngle=_this$_options4.maximumPolarAngle,maximumRadius=_this$_options4.maximumRadius;var dTheta=this.spherical.theta-this.goalSpherical.theta;if(Math.abs(dTheta)>Math.PI&&!isFinite(this._options.minimumAzimuthalAngle)&&!isFinite(this._options.maximumAzimuthalAngle)){this.spherical.theta-=Math.sign(dTheta)*2*Math.PI;}this.spherical.theta=this.thetaDamper.update(this.spherical.theta,this.goalSpherical.theta,delta,Math.PI);this.spherical.phi=this.phiDamper.update(this.spherical.phi,this.goalSpherical.phi,delta,maximumPolarAngle);this.spherical.radius=this.radiusDamper.update(this.spherical.radius,this.goalSpherical.radius,delta,maximumRadius);this.logFov=this.fovDamper.update(this.logFov,this.goalLogFov,delta,1);this.moveCamera();}},{key:\"isStationary\",value:function isStationary(){return this.goalSpherical.theta===this.spherical.theta&&this.goalSpherical.phi===this.spherical.phi&&this.goalSpherical.radius===this.spherical.radius&&this.goalLogFov===this.logFov;}},{key:\"moveCamera\",value:function moveCamera(){this.spherical.makeSafe();this.camera.position.setFromSpherical(this.spherical);this.camera.setRotationFromEuler(new Euler(this.spherical.phi-Math.PI/2,this.spherical.theta,0,'YXZ'));if(this.camera.fov!==Math.exp(this.logFov)){this.camera.fov=Math.exp(this.logFov);this.camera.updateProjectionMatrix();}var source=this.isUserChange?ChangeSource.USER_INTERACTION:ChangeSource.NONE;this.dispatchEvent({type:'change',source:source});}},{key:\"userAdjustOrbit\",value:function userAdjustOrbit(deltaTheta,deltaPhi,deltaZoom){this.adjustOrbit(deltaTheta*this.sensitivity,deltaPhi*this.sensitivity,deltaZoom);this.isUserChange=true;this.dispatchEvent({type:'change',source:ChangeSource.USER_INTERACTION});}},{key:\"wrapAngle\",value:function wrapAngle(radians){var normalized=(radians+Math.PI)/(2*Math.PI);var wrapped=normalized-Math.floor(normalized);return wrapped*2*Math.PI-Math.PI;}},{key:\"pixelLengthToSphericalAngle\",value:function pixelLengthToSphericalAngle(pixelLength){return 2*Math.PI*pixelLength/this.element.clientHeight;}},{key:\"twoTouchDistance\",value:function twoTouchDistance(touchOne,touchTwo){var xOne=touchOne.clientX,yOne=touchOne.clientY;var xTwo=touchTwo.clientX,yTwo=touchTwo.clientY;var xDelta=xTwo-xOne;var yDelta=yTwo-yOne;return Math.sqrt(xDelta*xDelta+yDelta*yDelta);}},{key:\"handleSinglePointerMove\",value:function handleSinglePointerMove(pointer){var clientX=pointer.clientX,clientY=pointer.clientY;var deltaTheta=this.pixelLengthToSphericalAngle(clientX-this.lastPointerPosition.clientX);var deltaPhi=this.pixelLengthToSphericalAngle(clientY-this.lastPointerPosition.clientY);this.lastPointerPosition.clientX=clientX;this.lastPointerPosition.clientY=clientY;if(this.isUserPointing===false){this.isUserPointing=true;this.dispatchEvent({type:'pointer-change-start',pointer:Object.assign({},pointer)});}this.userAdjustOrbit(deltaTheta,deltaPhi,0);}},{key:\"handleSinglePointerDown\",value:function handleSinglePointerDown(pointer){this.lastPointerPosition.clientX=pointer.clientX;this.lastPointerPosition.clientY=pointer.clientY;this.element.style.cursor='grabbing';}},{key:\"interactionEnabled\",get:function get(){return this._interactionEnabled;}},{key:\"options\",get:function get(){return this._options;}},{key:\"canInteract\",get:function get(){if(this._options.interactionPolicy=='allow-when-focused'){var rootNode=this.element.getRootNode();return rootNode.activeElement===this.element;}return this._options.interactionPolicy==='always-allow';}}]);return SmoothControls;}(EventDispatcher);var easeInOutQuad=function easeInOutQuad(t){return t<.5?2*t*t:-1+(4-2*t)*t;};var interpolate=function interpolate(start,end){var ease=arguments.length>2&&arguments[2]!==undefined?arguments[2]:easeInOutQuad;return function(time){return start+(end-start)*ease(time);};};var sequence=function sequence(tracks,weights){var totalWeight=weights.reduce(function(total,weight){return total+weight;},0);var ratios=weights.map(function(weight){return weight/totalWeight;});return function(time){var start=0;var ratio=Infinity;var track=function track(){return 0;};for(var _i346=0;_i346<ratios.length;++_i346){ratio=ratios[_i346];track=tracks[_i346];if(time<=start+ratio){break;}start+=ratio;}return track((time-start)/ratio);};};var timeline=function timeline(initialValue,keyframes){var tracks=[];var weights=[];var lastValue=initialValue;for(var _i347=0;_i347<keyframes.length;++_i347){var keyframe=keyframes[_i347];var value=keyframe.value,frames=keyframe.frames;var ease=keyframe.ease||easeInOutQuad;var track=interpolate(lastValue,value,ease);tracks.push(track);weights.push(frames);lastValue=value;}return sequence(tracks,weights);};var __decorate$3=undefined&&undefined.__decorate||function(decorators,target,key,desc){var c=arguments.length,r=c<3?target:desc===null?desc=Object.getOwnPropertyDescriptor(target,key):desc,d;if((typeof Reflect===\"undefined\"?\"undefined\":_typeof(Reflect))===\"object\"&&typeof undefined===\"function\")r=undefined(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--){if(d=decorators[i])r=(c<3?d(r):c>3?d(target,key,r):d(target,key))||r;}return c>3&&r&&Object.defineProperty(target,key,r),r;};var PROMPT_ANIMATION_TIME=5000;var wiggle=timeline(0,[{frames:5,value:-1},{frames:1,value:-1},{frames:8,value:1},{frames:1,value:1},{frames:5,value:0},{frames:18,value:0}]);var fade=timeline(0,[{frames:1,value:1},{frames:5,value:1},{frames:1,value:0},{frames:6,value:0}]);var DEFAULT_CAMERA_ORBIT='0deg 75deg 105%';var DEFAULT_CAMERA_TARGET='auto auto auto';var DEFAULT_FIELD_OF_VIEW='auto';var MINIMUM_RADIUS_RATIO=1.1*SAFE_RADIUS_RATIO;var AZIMUTHAL_QUADRANT_LABELS=['front','right','back','left'];var POLAR_TRIENT_LABELS=['upper-','','lower-'];var DEFAULT_INTERACTION_PROMPT_THRESHOLD=3000;var INTERACTION_PROMPT='Use mouse, touch or arrow keys to control the camera!';var InteractionPromptStrategy={AUTO:'auto',WHEN_FOCUSED:'when-focused',NONE:'none'};var InteractionPromptStyle={BASIC:'basic',WIGGLE:'wiggle'};var InteractionPolicy={ALWAYS_ALLOW:'always-allow',WHEN_FOCUSED:'allow-when-focused'};var TouchAction={PAN_Y:'pan-y',PAN_X:'pan-x',NONE:'none'};var fieldOfViewIntrinsics=function fieldOfViewIntrinsics(element){return{basis:[numberNode(element[$zoomAdjustedFieldOfView]*Math.PI/180,'rad')],keywords:{auto:[null]}};};var minFieldOfViewIntrinsics={basis:[degreesToRadians(numberNode(25,'deg'))],keywords:{auto:[null]}};var maxFieldOfViewIntrinsics=function maxFieldOfViewIntrinsics(element){var scene=element[$scene];return{basis:[degreesToRadians(numberNode(45,'deg'))],keywords:{auto:[numberNode(scene.framedFieldOfView,'deg')]}};};var cameraOrbitIntrinsics=function(){var defaultTerms=parseExpressions(DEFAULT_CAMERA_ORBIT)[0].terms;var theta=normalizeUnit(defaultTerms[0]);var phi=normalizeUnit(defaultTerms[1]);return function(element){var radius=element[$scene].model.idealCameraDistance;return{basis:[theta,phi,numberNode(radius,'m')],keywords:{auto:[null,null,numberNode(105,'%')]}};};}();var minCameraOrbitIntrinsics=function minCameraOrbitIntrinsics(element){var radius=MINIMUM_RADIUS_RATIO*element[$scene].model.idealCameraDistance;return{basis:[numberNode(-Infinity,'rad'),numberNode(Math.PI/8,'rad'),numberNode(radius,'m')],keywords:{auto:[null,null,null]}};};var maxCameraOrbitIntrinsics=function maxCameraOrbitIntrinsics(element){var orbitIntrinsics=cameraOrbitIntrinsics(element);var evaluator=new StyleEvaluator([],orbitIntrinsics);var defaultRadius=evaluator.evaluate()[2];return{basis:[numberNode(Infinity,'rad'),numberNode(Math.PI-Math.PI/8,'rad'),numberNode(defaultRadius,'m')],keywords:{auto:[null,null,null]}};};var cameraTargetIntrinsics=function cameraTargetIntrinsics(element){var center=element[$scene].model.boundingBox.getCenter(new Vector3());return{basis:[numberNode(center.x,'m'),numberNode(center.y,'m'),numberNode(center.z,'m')],keywords:{auto:[null,null,null]}};};var HALF_PI=Math.PI/2.0;var THIRD_PI=Math.PI/3.0;var QUARTER_PI=HALF_PI/2.0;var TAU=2.0*Math.PI;var $controls=Symbol('controls');var $promptElement=Symbol('promptElement');var $promptAnimatedContainer=Symbol('promptAnimatedContainer');var $deferInteractionPrompt=Symbol('deferInteractionPrompt');var $updateAria=Symbol('updateAria');var $updateCameraForRadius=Symbol('updateCameraForRadius');var $blurHandler=Symbol('blurHandler');var $focusHandler=Symbol('focusHandler');var $changeHandler=Symbol('changeHandler');var $pointerChangeHandler=Symbol('pointerChangeHandler');var $onBlur=Symbol('onBlur');var $onFocus=Symbol('onFocus');var $onChange=Symbol('onChange');var $onPointerChange=Symbol('onPointerChange');var $waitingToPromptUser=Symbol('waitingToPromptUser');var $userHasInteracted=Symbol('userHasInteracted');var $promptElementVisibleTime=Symbol('promptElementVisibleTime');var $lastPromptOffset=Symbol('lastPromptOffset');var $focusedTime=Symbol('focusedTime');var $zoomAdjustedFieldOfView=Symbol('zoomAdjustedFieldOfView');var $lastSpherical=Symbol('lastSpherical');var $jumpCamera=Symbol('jumpCamera');var $initialized$1=Symbol('initialized');var $maintainThetaPhi=Symbol('maintainThetaPhi');var $syncCameraOrbit=Symbol('syncCameraOrbit');var $syncFieldOfView=Symbol('syncFieldOfView');var $syncCameraTarget=Symbol('syncCameraTarget');var $syncMinCameraOrbit=Symbol('syncMinCameraOrbit');var $syncMaxCameraOrbit=Symbol('syncMaxCameraOrbit');var $syncMinFieldOfView=Symbol('syncMinFieldOfView');var $syncMaxFieldOfView=Symbol('syncMaxFieldOfView');var ControlsMixin=function ControlsMixin(ModelViewerElement){var _a,_b,_c,_d,_e,_f,_g,_h,_j,_k,_l,_m,_o,_p,_q,_r,_s;var ControlsModelViewerElement=function(_ModelViewerElement4){_inherits(ControlsModelViewerElement,_ModelViewerElement4);var _super32=_createSuper(ControlsModelViewerElement);function ControlsModelViewerElement(){var _this63;_classCallCheck(this,ControlsModelViewerElement);_this63=_super32.apply(this,arguments);_this63.cameraControls=false;_this63.cameraOrbit=DEFAULT_CAMERA_ORBIT;_this63.cameraTarget=DEFAULT_CAMERA_TARGET;_this63.fieldOfView=DEFAULT_FIELD_OF_VIEW;_this63.minCameraOrbit='auto';_this63.maxCameraOrbit='auto';_this63.minFieldOfView='auto';_this63.maxFieldOfView='auto';_this63.interactionPromptThreshold=DEFAULT_INTERACTION_PROMPT_THRESHOLD;_this63.interactionPromptStyle=InteractionPromptStyle.WIGGLE;_this63.interactionPrompt=InteractionPromptStrategy.AUTO;_this63.interactionPolicy=InteractionPolicy.ALWAYS_ALLOW;_this63.orbitSensitivity=1;_this63.touchAction=TouchAction.PAN_Y;_this63[_a]=_this63.shadowRoot.querySelector('.interaction-prompt');_this63[_b]=_this63.shadowRoot.querySelector('.interaction-prompt > .animated-container');_this63[_c]=Infinity;_this63[_d]=0;_this63[_e]=Infinity;_this63[_f]=false;_this63[_g]=false;_this63[_h]=new SmoothControls(_this63[$scene].camera,_this63[$userInputElement]);_this63[_j]=0;_this63[_k]=new Spherical();_this63[_l]=false;_this63[_m]=false;_this63[_o]=false;_this63[_p]=function(event){return _this63[$onChange](event);};_this63[_q]=function(event){return _this63[$onPointerChange](event);};_this63[_r]=function(){return _this63[$onFocus]();};_this63[_s]=function(){return _this63[$onBlur]();};return _this63;}_createClass(ControlsModelViewerElement,[{key:\"getCameraOrbit\",value:function getCameraOrbit(){var _this$$lastSpherical=this[$lastSpherical],theta=_this$$lastSpherical.theta,phi=_this$$lastSpherical.phi,radius=_this$$lastSpherical.radius;return{theta:theta,phi:phi,radius:radius};}},{key:\"getCameraTarget\",value:function getCameraTarget(){return toVector3D(this[$scene].getTarget());}},{key:\"getFieldOfView\",value:function getFieldOfView(){return this[$controls].getFieldOfView();}},{key:\"getMinimumFieldOfView\",value:function getMinimumFieldOfView(){return this[$controls].options.minimumFieldOfView;}},{key:\"getMaximumFieldOfView\",value:function getMaximumFieldOfView(){return this[$controls].options.maximumFieldOfView;}},{key:\"jumpCameraToGoal\",value:function jumpCameraToGoal(){this[$jumpCamera]=true;this.requestUpdate($jumpCamera,false);}},{key:\"resetInteractionPrompt\",value:function resetInteractionPrompt(){this[$lastPromptOffset]=0;this[$promptElementVisibleTime]=Infinity;this[$userHasInteracted]=false;this[$waitingToPromptUser]=this.interactionPrompt===InteractionPromptStrategy.AUTO&&this.cameraControls;}},{key:\"connectedCallback\",value:function connectedCallback(){_get(_getPrototypeOf(ControlsModelViewerElement.prototype),\"connectedCallback\",this).call(this);this[$controls].addEventListener('change',this[$changeHandler]);this[$controls].addEventListener('pointer-change-start',this[$pointerChangeHandler]);this[$controls].addEventListener('pointer-change-end',this[$pointerChangeHandler]);}},{key:\"disconnectedCallback\",value:function disconnectedCallback(){_get(_getPrototypeOf(ControlsModelViewerElement.prototype),\"disconnectedCallback\",this).call(this);this[$controls].removeEventListener('change',this[$changeHandler]);this[$controls].removeEventListener('pointer-change-start',this[$pointerChangeHandler]);this[$controls].removeEventListener('pointer-change-end',this[$pointerChangeHandler]);}},{key:\"updated\",value:function updated(changedProperties){var _this64=this;_get(_getPrototypeOf(ControlsModelViewerElement.prototype),\"updated\",this).call(this,changedProperties);var controls=this[$controls];var input=this[$userInputElement];if(changedProperties.has('cameraControls')){if(this.cameraControls){controls.enableInteraction();if(this.interactionPrompt===InteractionPromptStrategy.AUTO){this[$waitingToPromptUser]=true;}input.addEventListener('focus',this[$focusHandler]);input.addEventListener('blur',this[$blurHandler]);}else{input.removeEventListener('focus',this[$focusHandler]);input.removeEventListener('blur',this[$blurHandler]);controls.disableInteraction();this[$deferInteractionPrompt]();}}if(changedProperties.has('interactionPrompt')||changedProperties.has('cameraControls')||changedProperties.has('src')){if(this.interactionPrompt===InteractionPromptStrategy.AUTO&&this.cameraControls&&!this[$userHasInteracted]){this[$waitingToPromptUser]=true;}else{this[$deferInteractionPrompt]();}}if(changedProperties.has('interactionPromptStyle')){this[$promptElement].classList.toggle('wiggle',this.interactionPromptStyle===InteractionPromptStyle.WIGGLE);}if(changedProperties.has('interactionPolicy')){var interactionPolicy=this.interactionPolicy;controls.applyOptions({interactionPolicy:interactionPolicy});}if(changedProperties.has('touchAction')){var touchAction=this.touchAction;controls.applyOptions({touchAction:touchAction});}if(changedProperties.has('orbitSensitivity')){this[$controls].sensitivity=this.orbitSensitivity;}if(this[$jumpCamera]===true){Promise.resolve().then(function(){_this64[$controls].jumpToGoal();_this64[$scene].jumpToGoal();_this64[$jumpCamera]=false;});}}},{key:(_a=$promptElement,_b=$promptAnimatedContainer,_c=$focusedTime,_d=$lastPromptOffset,_e=$promptElementVisibleTime,_f=$userHasInteracted,_g=$waitingToPromptUser,_h=$controls,_j=$zoomAdjustedFieldOfView,_k=$lastSpherical,_l=$jumpCamera,_m=$initialized$1,_o=$maintainThetaPhi,_p=$changeHandler,_q=$pointerChangeHandler,_r=$focusHandler,_s=$blurHandler,$syncFieldOfView),value:function value(style){this[$controls].setFieldOfView(style[0]*180/Math.PI);}},{key:$syncCameraOrbit,value:function value(style){if(this[$maintainThetaPhi]){var _this$getCameraOrbit=this.getCameraOrbit(),theta=_this$getCameraOrbit.theta,phi=_this$getCameraOrbit.phi;style[0]=theta;style[1]=phi;this[$maintainThetaPhi]=false;}this[$controls].setOrbit(style[0],style[1],style[2]);}},{key:$syncMinCameraOrbit,value:function value(style){this[$controls].applyOptions({minimumAzimuthalAngle:style[0],minimumPolarAngle:style[1],minimumRadius:style[2]});this.jumpCameraToGoal();}},{key:$syncMaxCameraOrbit,value:function value(style){this[$controls].applyOptions({maximumAzimuthalAngle:style[0],maximumPolarAngle:style[1],maximumRadius:style[2]});this[$updateCameraForRadius](style[2]);this.jumpCameraToGoal();}},{key:$syncMinFieldOfView,value:function value(style){this[$controls].applyOptions({minimumFieldOfView:style[0]*180/Math.PI});this.jumpCameraToGoal();}},{key:$syncMaxFieldOfView,value:function value(style){this[$controls].applyOptions({maximumFieldOfView:style[0]*180/Math.PI});this.jumpCameraToGoal();}},{key:$syncCameraTarget,value:function value(style){var _style2=_slicedToArray(style,3),x=_style2[0],y=_style2[1],z=_style2[2];this[$scene].setTarget(x,y,z);this[$renderer].arRenderer.updateTarget();}},{key:$tick$1,value:function value(time,delta){_get(_getPrototypeOf(ControlsModelViewerElement.prototype),$tick$1,this).call(this,time,delta);if(this[$renderer].isPresenting||!this[$hasTransitioned]()){return;}var now=performance.now();if(this[$waitingToPromptUser]){var thresholdTime=this.interactionPrompt===InteractionPromptStrategy.AUTO?this[$loadedTime]:this[$focusedTime];if(this.loaded&&now>thresholdTime+this.interactionPromptThreshold){this[$userInputElement].setAttribute('aria-label',INTERACTION_PROMPT);this[$waitingToPromptUser]=false;this[$promptElementVisibleTime]=now;this[$promptElement].classList.add('visible');}}if(isFinite(this[$promptElementVisibleTime])&&this.interactionPromptStyle===InteractionPromptStyle.WIGGLE){var scene=this[$scene];var animationTime=(now-this[$promptElementVisibleTime])/PROMPT_ANIMATION_TIME%1;var offset=wiggle(animationTime);var opacity=fade(animationTime);this[$promptAnimatedContainer].style.opacity=\"\".concat(opacity);if(offset!==this[$lastPromptOffset]){var xOffset=offset*scene.width*0.05;var deltaTheta=(offset-this[$lastPromptOffset])*Math.PI/16;this[$promptAnimatedContainer].style.transform=\"translateX(\".concat(xOffset,\"px)\");this[$controls].adjustOrbit(deltaTheta,0,0);this[$lastPromptOffset]=offset;}}this[$controls].update(time,delta);this[$scene].updateTarget(delta);}},{key:$deferInteractionPrompt,value:function value(){this[$waitingToPromptUser]=false;this[$promptElement].classList.remove('visible');this[$promptElementVisibleTime]=Infinity;}},{key:$updateCameraForRadius,value:function value(radius){var idealCameraDistance=this[$scene].model.idealCameraDistance;var maximumRadius=Math.max(idealCameraDistance,radius);var near=0;var far=2*maximumRadius;this[$controls].updateNearFar(near,far);}},{key:$updateAria,value:function value(){var _this$$lastSpherical2=this[$lastSpherical],lastTheta=_this$$lastSpherical2.theta,lastPhi=_this$$lastSpherical2.phi;var _this$$controls$getCa=this[$controls].getCameraSpherical(this[$lastSpherical]),theta=_this$$controls$getCa.theta,phi=_this$$controls$getCa.phi;var rootNode=this.getRootNode();if(rootNode!=null&&rootNode.activeElement===this){var lastAzimuthalQuadrant=(4+Math.floor((lastTheta%TAU+QUARTER_PI)/HALF_PI))%4;var azimuthalQuadrant=(4+Math.floor((theta%TAU+QUARTER_PI)/HALF_PI))%4;var lastPolarTrient=Math.floor(lastPhi/THIRD_PI);var polarTrient=Math.floor(phi/THIRD_PI);if(azimuthalQuadrant!==lastAzimuthalQuadrant||polarTrient!==lastPolarTrient){var azimuthalQuadrantLabel=AZIMUTHAL_QUADRANT_LABELS[azimuthalQuadrant];var polarTrientLabel=POLAR_TRIENT_LABELS[polarTrient];var ariaLabel=\"View from stage \".concat(polarTrientLabel).concat(azimuthalQuadrantLabel);this[$userInputElement].setAttribute('aria-label',ariaLabel);}}}},{key:$onResize,value:function value(event){var controls=this[$controls];var oldFramedFieldOfView=this[$scene].framedFieldOfView;_get(_getPrototypeOf(ControlsModelViewerElement.prototype),$onResize,this).call(this,event);var newFramedFieldOfView=this[$scene].framedFieldOfView;var zoom=controls.getFieldOfView()/oldFramedFieldOfView;this[$zoomAdjustedFieldOfView]=newFramedFieldOfView*zoom;controls.updateAspect(this[$scene].aspect);this.requestUpdate('maxFieldOfView',this.maxFieldOfView);this.requestUpdate('fieldOfView',this.fieldOfView);this.jumpCameraToGoal();}},{key:$onModelLoad,value:function value(){_get(_getPrototypeOf(ControlsModelViewerElement.prototype),$onModelLoad,this).call(this);var framedFieldOfView=this[$scene].framedFieldOfView;this[$zoomAdjustedFieldOfView]=framedFieldOfView;if(this[$initialized$1]){this[$maintainThetaPhi]=true;}else{this[$initialized$1]=true;}this.requestUpdate('maxFieldOfView',this.maxFieldOfView);this.requestUpdate('fieldOfView',this.fieldOfView);this.requestUpdate('minCameraOrbit',this.minCameraOrbit);this.requestUpdate('maxCameraOrbit',this.maxCameraOrbit);this.requestUpdate('cameraOrbit',this.cameraOrbit);this.requestUpdate('cameraTarget',this.cameraTarget);this.jumpCameraToGoal();}},{key:$onFocus,value:function value(){var input=this[$userInputElement];if(!isFinite(this[$focusedTime])){this[$focusedTime]=performance.now();}var ariaLabel=this[$ariaLabel];if(input.getAttribute('aria-label')!==ariaLabel){input.setAttribute('aria-label',ariaLabel);}if(this.interactionPrompt===InteractionPromptStrategy.WHEN_FOCUSED&&!this[$userHasInteracted]){this[$waitingToPromptUser]=true;}}},{key:$onBlur,value:function value(){if(this.interactionPrompt!==InteractionPromptStrategy.WHEN_FOCUSED){return;}this[$waitingToPromptUser]=false;this[$promptElement].classList.remove('visible');this[$promptElementVisibleTime]=Infinity;this[$focusedTime]=Infinity;}},{key:$onChange,value:function value(_ref8){var source=_ref8.source;this[$updateAria]();this[$needsRender]();if(source===ChangeSource.USER_INTERACTION){this[$userHasInteracted]=true;this[$deferInteractionPrompt]();}this.dispatchEvent(new CustomEvent('camera-change',{detail:{source:source}}));}},{key:$onPointerChange,value:function value(event){if(event.type==='pointer-change-start'){this[$container].classList.add('pointer-tumbling');}else{this[$container].classList.remove('pointer-tumbling');}}}]);return ControlsModelViewerElement;}(ModelViewerElement);__decorate$3([property({type:Boolean,attribute:'camera-controls'})],ControlsModelViewerElement.prototype,\"cameraControls\",void 0);__decorate$3([style({intrinsics:cameraOrbitIntrinsics,observeEffects:true,updateHandler:$syncCameraOrbit}),property({type:String,attribute:'camera-orbit',hasChanged:function hasChanged(){return true;}})],ControlsModelViewerElement.prototype,\"cameraOrbit\",void 0);__decorate$3([style({intrinsics:cameraTargetIntrinsics,observeEffects:true,updateHandler:$syncCameraTarget}),property({type:String,attribute:'camera-target',hasChanged:function hasChanged(){return true;}})],ControlsModelViewerElement.prototype,\"cameraTarget\",void 0);__decorate$3([style({intrinsics:fieldOfViewIntrinsics,observeEffects:true,updateHandler:$syncFieldOfView}),property({type:String,attribute:'field-of-view',hasChanged:function hasChanged(){return true;}})],ControlsModelViewerElement.prototype,\"fieldOfView\",void 0);__decorate$3([style({intrinsics:minCameraOrbitIntrinsics,updateHandler:$syncMinCameraOrbit}),property({type:String,attribute:'min-camera-orbit',hasChanged:function hasChanged(){return true;}})],ControlsModelViewerElement.prototype,\"minCameraOrbit\",void 0);__decorate$3([style({intrinsics:maxCameraOrbitIntrinsics,updateHandler:$syncMaxCameraOrbit}),property({type:String,attribute:'max-camera-orbit',hasChanged:function hasChanged(){return true;}})],ControlsModelViewerElement.prototype,\"maxCameraOrbit\",void 0);__decorate$3([style({intrinsics:minFieldOfViewIntrinsics,updateHandler:$syncMinFieldOfView}),property({type:String,attribute:'min-field-of-view',hasChanged:function hasChanged(){return true;}})],ControlsModelViewerElement.prototype,\"minFieldOfView\",void 0);__decorate$3([style({intrinsics:maxFieldOfViewIntrinsics,updateHandler:$syncMaxFieldOfView}),property({type:String,attribute:'max-field-of-view',hasChanged:function hasChanged(){return true;}})],ControlsModelViewerElement.prototype,\"maxFieldOfView\",void 0);__decorate$3([property({type:Number,attribute:'interaction-prompt-threshold'})],ControlsModelViewerElement.prototype,\"interactionPromptThreshold\",void 0);__decorate$3([property({type:String,attribute:'interaction-prompt-style'})],ControlsModelViewerElement.prototype,\"interactionPromptStyle\",void 0);__decorate$3([property({type:String,attribute:'interaction-prompt'})],ControlsModelViewerElement.prototype,\"interactionPrompt\",void 0);__decorate$3([property({type:String,attribute:'interaction-policy'})],ControlsModelViewerElement.prototype,\"interactionPolicy\",void 0);__decorate$3([property({type:Number,attribute:'orbit-sensitivity'})],ControlsModelViewerElement.prototype,\"orbitSensitivity\",void 0);__decorate$3([property({type:String,attribute:'touch-action'})],ControlsModelViewerElement.prototype,\"touchAction\",void 0);return ControlsModelViewerElement;};var __decorate$4=undefined&&undefined.__decorate||function(decorators,target,key,desc){var c=arguments.length,r=c<3?target:desc===null?desc=Object.getOwnPropertyDescriptor(target,key):desc,d;if((typeof Reflect===\"undefined\"?\"undefined\":_typeof(Reflect))===\"object\"&&typeof undefined===\"function\")r=undefined(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--){if(d=decorators[i])r=(c<3?d(r):c>3?d(target,key,r):d(target,key))||r;}return c>3&&r&&Object.defineProperty(target,key,r),r;};var BASE_OPACITY=0.1;var DEFAULT_SHADOW_INTENSITY=0.0;var DEFAULT_SHADOW_SOFTNESS=1.0;var DEFAULT_EXPOSURE=1.0;var $currentEnvironmentMap=Symbol('currentEnvironmentMap');var $applyEnvironmentMap=Symbol('applyEnvironmentMap');var $updateEnvironment=Symbol('updateEnvironment');var $cancelEnvironmentUpdate=Symbol('cancelEnvironmentUpdate');var $onPreload=Symbol('onPreload');var EnvironmentMixin=function EnvironmentMixin(ModelViewerElement){var _a,_b,_c;var EnvironmentModelViewerElement=function(_ModelViewerElement5){_inherits(EnvironmentModelViewerElement,_ModelViewerElement5);var _super33=_createSuper(EnvironmentModelViewerElement);function EnvironmentModelViewerElement(){var _this65;_classCallCheck(this,EnvironmentModelViewerElement);_this65=_super33.apply(this,arguments);_this65.environmentImage=null;_this65.skyboxImage=null;_this65.shadowIntensity=DEFAULT_SHADOW_INTENSITY;_this65.shadowSoftness=DEFAULT_SHADOW_SOFTNESS;_this65.exposure=DEFAULT_EXPOSURE;_this65[_a]=null;_this65[_b]=null;_this65[_c]=function(event){if(event.element===_assertThisInitialized(_this65)){_this65[$updateEnvironment]();}};return _this65;}_createClass(EnvironmentModelViewerElement,[{key:\"connectedCallback\",value:function connectedCallback(){_get(_getPrototypeOf(EnvironmentModelViewerElement.prototype),\"connectedCallback\",this).call(this);this[$renderer].loader.addEventListener('preload',this[$onPreload]);}},{key:\"disconnectedCallback\",value:function disconnectedCallback(){_get(_getPrototypeOf(EnvironmentModelViewerElement.prototype),\"disconnectedCallback\",this).call(this);this[$renderer].loader.removeEventListener('preload',this[$onPreload]);}},{key:\"updated\",value:function updated(changedProperties){_get(_getPrototypeOf(EnvironmentModelViewerElement.prototype),\"updated\",this).call(this,changedProperties);if(changedProperties.has('shadowIntensity')){this[$scene].setShadowIntensity(this.shadowIntensity*BASE_OPACITY);this[$needsRender]();}if(changedProperties.has('shadowSoftness')){this[$scene].setShadowSoftness(this.shadowSoftness);this[$needsRender]();}if(changedProperties.has('exposure')){this[$scene].exposure=this.exposure;this[$needsRender]();}if((changedProperties.has('environmentImage')||changedProperties.has('skyboxImage'))&&this[$shouldAttemptPreload]()){this[$updateEnvironment]();}}},{key:(_a=$currentEnvironmentMap,_b=$cancelEnvironmentUpdate,_c=$onPreload,$onModelLoad),value:function value(){_get(_getPrototypeOf(EnvironmentModelViewerElement.prototype),$onModelLoad,this).call(this);if(this[$currentEnvironmentMap]!=null){this[$applyEnvironmentMap](this[$currentEnvironmentMap]);}}},{key:$updateEnvironment,value:function(){var _value7=_asyncToGenerator(regeneratorRuntime.mark(function _callee25(){var _this66=this;var skyboxImage,environmentImage,textureUtils,_yield$Promise,environmentMap,skybox,environment;return regeneratorRuntime.wrap(function _callee25$(_context26){while(1){switch(_context26.prev=_context26.next){case 0:skyboxImage=this.skyboxImage,environmentImage=this.environmentImage;if(this[$cancelEnvironmentUpdate]!=null){this[$cancelEnvironmentUpdate]();this[$cancelEnvironmentUpdate]=null;}textureUtils=this[$renderer].textureUtils;if(!(textureUtils==null)){_context26.next=5;break;}return _context26.abrupt(\"return\");case 5:_context26.prev=5;_context26.next=8;return new Promise(function(){var _ref9=_asyncToGenerator(regeneratorRuntime.mark(function _callee24(resolve,reject){var texturesLoad;return regeneratorRuntime.wrap(function _callee24$(_context25){while(1){switch(_context25.prev=_context25.next){case 0:texturesLoad=textureUtils.generateEnvironmentMapAndSkybox(deserializeUrl(skyboxImage),deserializeUrl(environmentImage),{progressTracker:_this66[$progressTracker]});_this66[$cancelEnvironmentUpdate]=function(){return reject(texturesLoad);};_context25.t0=resolve;_context25.next=5;return texturesLoad;case 5:_context25.t1=_context25.sent;(0,_context25.t0)(_context25.t1);case 7:case\"end\":return _context25.stop();}}},_callee24);}));return function(_x23,_x24){return _ref9.apply(this,arguments);};}());case 8:_yield$Promise=_context26.sent;environmentMap=_yield$Promise.environmentMap;skybox=_yield$Promise.skybox;environment=environmentMap.texture;if(skybox!=null){this[$scene].background=skybox.userData.url===environment.userData.url?environment:skybox;}else{this[$scene].background=null;}this[$applyEnvironmentMap](environmentMap.texture);this[$scene].model.dispatchEvent({type:'envmap-update'});_context26.next=22;break;case 17:_context26.prev=17;_context26.t0=_context26[\"catch\"](5);if(!_instanceof(_context26.t0,Error)){_context26.next=22;break;}this[$applyEnvironmentMap](null);throw _context26.t0;case 22:case\"end\":return _context26.stop();}}},_callee25,this,[[5,17]]);}));function value(){return _value7.apply(this,arguments);}return value;}()},{key:$applyEnvironmentMap,value:function value(environmentMap){this[$currentEnvironmentMap]=environmentMap;this[$scene].environment=this[$currentEnvironmentMap];this.dispatchEvent(new CustomEvent('environment-change'));this[$needsRender]();}}]);return EnvironmentModelViewerElement;}(ModelViewerElement);__decorate$4([property({type:String,attribute:'environment-image'})],EnvironmentModelViewerElement.prototype,\"environmentImage\",void 0);__decorate$4([property({type:String,attribute:'skybox-image'})],EnvironmentModelViewerElement.prototype,\"skyboxImage\",void 0);__decorate$4([property({type:Number,attribute:'shadow-intensity'})],EnvironmentModelViewerElement.prototype,\"shadowIntensity\",void 0);__decorate$4([property({type:Number,attribute:'shadow-softness'})],EnvironmentModelViewerElement.prototype,\"shadowSoftness\",void 0);__decorate$4([property({type:Number})],EnvironmentModelViewerElement.prototype,\"exposure\",void 0);return EnvironmentModelViewerElement;};var _a$b,_b$9;var INITIAL_STATUS_ANNOUNCEMENT='This page includes one or more 3D models that are loading';var FINISHED_LOADING_ANNOUNCEMENT='All 3D models in the page have loaded';var UPDATE_STATUS_DEBOUNCE_MS=100;var $modelViewerStatusInstance=Symbol('modelViewerStatusInstance');var $updateStatus=Symbol('updateStatus');var LoadingStatusAnnouncer=function(_EventDispatcher6){_inherits(LoadingStatusAnnouncer,_EventDispatcher6);var _super34=_createSuper(LoadingStatusAnnouncer);function LoadingStatusAnnouncer(){var _this67;_classCallCheck(this,LoadingStatusAnnouncer);_this67=_super34.call(this);_this67[_a$b]=null;_this67.registeredInstanceStatuses=new Map();_this67.loadingPromises=[];_this67.statusElement=document.createElement('p');_this67.statusUpdateInProgress=false;_this67[_b$9]=debounce(function(){return _this67.updateStatus();},UPDATE_STATUS_DEBOUNCE_MS);var _assertThisInitialize=_assertThisInitialized(_this67),statusElement=_assertThisInitialize.statusElement;var style=statusElement.style;statusElement.setAttribute('role','status');statusElement.classList.add('screen-reader-only');style.top=style.left='0';style.pointerEvents='none';return _this67;}_createClass(LoadingStatusAnnouncer,[{key:\"registerInstance\",value:function registerInstance(modelViewer){if(this.registeredInstanceStatuses.has(modelViewer)){return;}var onUnregistered=function onUnregistered(){};var loadShouldBeMeasured=modelViewer.loaded===false&&!!modelViewer.src;var loadAttemptCompletes=new Promise(function(resolve){if(!loadShouldBeMeasured){resolve();return;}var resolveHandler=function resolveHandler(){resolve();modelViewer.removeEventListener('load',resolveHandler);modelViewer.removeEventListener('error',resolveHandler);};modelViewer.addEventListener('load',resolveHandler);modelViewer.addEventListener('error',resolveHandler);onUnregistered=resolveHandler;});this.registeredInstanceStatuses.set(modelViewer,{onUnregistered:onUnregistered});this.loadingPromises.push(loadAttemptCompletes);if(this.modelViewerStatusInstance==null){this.modelViewerStatusInstance=modelViewer;}}},{key:\"unregisterInstance\",value:function unregisterInstance(modelViewer){if(!this.registeredInstanceStatuses.has(modelViewer)){return;}var statuses=this.registeredInstanceStatuses;var instanceStatus=statuses.get(modelViewer);statuses.delete(modelViewer);instanceStatus.onUnregistered();if(this.modelViewerStatusInstance===modelViewer){this.modelViewerStatusInstance=statuses.size>0?getFirstMapKey(statuses):null;}}},{key:\"updateStatus\",value:function(){var _updateStatus=_asyncToGenerator(regeneratorRuntime.mark(function _callee26(){var loadingPromises;return regeneratorRuntime.wrap(function _callee26$(_context27){while(1){switch(_context27.prev=_context27.next){case 0:if(!(this.statusUpdateInProgress||this.loadingPromises.length===0)){_context27.next=2;break;}return _context27.abrupt(\"return\");case 2:this.statusElement.textContent=INITIAL_STATUS_ANNOUNCEMENT;this.statusUpdateInProgress=true;this.dispatchEvent({type:'initial-status-announced'});case 5:if(!this.loadingPromises.length){_context27.next=12;break;}loadingPromises=this.loadingPromises;this.loadingPromises=[];_context27.next=10;return Promise.all(loadingPromises);case 10:_context27.next=5;break;case 12:this.statusElement.textContent=FINISHED_LOADING_ANNOUNCEMENT;this.statusUpdateInProgress=false;this.dispatchEvent({type:'finished-loading-announced'});case 15:case\"end\":return _context27.stop();}}},_callee26,this);}));function updateStatus(){return _updateStatus.apply(this,arguments);}return updateStatus;}()},{key:\"modelViewerStatusInstance\",get:function get(){return this[$modelViewerStatusInstance];},set:function set(value){var currentInstance=this[$modelViewerStatusInstance];if(currentInstance===value){return;}var statusElement=this.statusElement;if(value!=null&&value.shadowRoot!=null){value.shadowRoot.appendChild(statusElement);}else if(statusElement.parentNode!=null){statusElement.parentNode.removeChild(statusElement);}this[$modelViewerStatusInstance]=value;this[$updateStatus]();}}]);return LoadingStatusAnnouncer;}(EventDispatcher);_a$b=$modelViewerStatusInstance,_b$9=$updateStatus;var __decorate$5=undefined&&undefined.__decorate||function(decorators,target,key,desc){var c=arguments.length,r=c<3?target:desc===null?desc=Object.getOwnPropertyDescriptor(target,key):desc,d;if((typeof Reflect===\"undefined\"?\"undefined\":_typeof(Reflect))===\"object\"&&typeof undefined===\"function\")r=undefined(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--){if(d=decorators[i])r=(c<3?d(r):c>3?d(target,key,r):d(target,key))||r;}return c>3&&r&&Object.defineProperty(target,key,r),r;};var PROGRESS_BAR_UPDATE_THRESHOLD=100;var PROGRESS_MASK_BASE_OPACITY=0.2;var DEFAULT_DRACO_DECODER_LOCATION='https://www.gstatic.com/draco/versioned/decoders/1.3.6/';var SPACE_KEY=32;var ENTER_KEY=13;var RevealStrategy={AUTO:'auto',INTERACTION:'interaction',MANUAL:'manual'};var LoadingStrategy={AUTO:'auto',LAZY:'lazy',EAGER:'eager'};var PosterDismissalSource={INTERACTION:'interaction'};var loadingStatusAnnouncer=new LoadingStatusAnnouncer();var $defaultProgressBarElement=Symbol('defaultProgressBarElement');var $defaultProgressMaskElement=Symbol('defaultProgressMaskElement');var $posterContainerElement=Symbol('posterContainerElement');var $defaultPosterElement=Symbol('defaultPosterElement');var $posterDismissalSource=Symbol('posterDismissalSource');var $showPoster=Symbol('showPoster');var $hidePoster=Symbol('hidePoster');var $modelIsRevealed=Symbol('modelIsRevealed');var $updateProgressBar=Symbol('updateProgressBar');var $lastReportedProgress=Symbol('lastReportedProgress');var $transitioned=Symbol('transitioned');var $ariaLabelCallToAction=Symbol('ariaLabelCallToAction');var $clickHandler=Symbol('clickHandler');var $keydownHandler=Symbol('keydownHandler');var $progressHandler=Symbol('processHandler');var $onClick=Symbol('onClick');var $onKeydown=Symbol('onKeydown');var $onProgress=Symbol('onProgress');var LoadingMixin=function LoadingMixin(ModelViewerElement){var _a,_b,_c,_d,_e,_f,_g,_h,_j,_k,_l,_m,_o;var LoadingModelViewerElement=function(_ModelViewerElement6){_inherits(LoadingModelViewerElement,_ModelViewerElement6);var _super35=_createSuper(LoadingModelViewerElement);function LoadingModelViewerElement(){var _this68;_classCallCheck(this,LoadingModelViewerElement);for(var _len3=arguments.length,args=new Array(_len3),_key6=0;_key6<_len3;_key6++){args[_key6]=arguments[_key6];}_this68=_super35.call.apply(_super35,[this].concat(args));_this68.poster=null;_this68.reveal=RevealStrategy.AUTO;_this68.loading=LoadingStrategy.AUTO;_this68[_a]=false;_this68[_b]=false;_this68[_c]=0;_this68[_d]=null;_this68[_e]=_this68.shadowRoot.querySelector('.slot.poster');_this68[_f]=_this68.shadowRoot.querySelector('#default-poster');_this68[_g]=_this68.shadowRoot.querySelector('#default-progress-bar > .bar');_this68[_h]=_this68.shadowRoot.querySelector('#default-progress-bar > .mask');_this68[_j]=_this68[$defaultPosterElement].getAttribute('aria-label');_this68[_k]=function(){return _this68[$onClick]();};_this68[_l]=function(event){return _this68[$onKeydown](event);};_this68[_m]=function(event){return _this68[$onProgress](event);};_this68[_o]=throttle(function(progress){var parentNode=_this68[$defaultProgressBarElement].parentNode;requestAnimationFrame(function(){_this68[$defaultProgressMaskElement].style.opacity=\"\".concat((1.0-progress)*PROGRESS_MASK_BASE_OPACITY);_this68[$defaultProgressBarElement].style.transform=\"scaleX(\".concat(progress,\")\");if(progress===0){parentNode.removeChild(_this68[$defaultProgressBarElement]);parentNode.appendChild(_this68[$defaultProgressBarElement]);}if(progress===1.0){_this68[$defaultProgressBarElement].classList.add('hide');}else{_this68[$defaultProgressBarElement].classList.remove('hide');}});},PROGRESS_BAR_UPDATE_THRESHOLD);var ModelViewerElement=self.ModelViewerElement||{};var dracoDecoderLocation=ModelViewerElement.dracoDecoderLocation||DEFAULT_DRACO_DECODER_LOCATION;CachingGLTFLoader.setDRACODecoderLocation(dracoDecoderLocation);return _this68;}_createClass(LoadingModelViewerElement,[{key:\"dismissPoster\",value:function dismissPoster(){if(this[$sceneIsReady]()){this[$hidePoster]();}else{this[$posterDismissalSource]=PosterDismissalSource.INTERACTION;this[$updateSource]();}}},{key:\"getDimensions\",value:function getDimensions(){return toVector3D(this[$scene].model.size);}},{key:\"connectedCallback\",value:function connectedCallback(){_get(_getPrototypeOf(LoadingModelViewerElement.prototype),\"connectedCallback\",this).call(this);this[$posterContainerElement].addEventListener('click',this[$clickHandler]);this[$posterContainerElement].addEventListener('keydown',this[$keydownHandler]);this[$progressTracker].addEventListener('progress',this[$progressHandler]);loadingStatusAnnouncer.registerInstance(this);}},{key:\"disconnectedCallback\",value:function disconnectedCallback(){_get(_getPrototypeOf(LoadingModelViewerElement.prototype),\"disconnectedCallback\",this).call(this);this[$posterContainerElement].removeEventListener('click',this[$clickHandler]);this[$posterContainerElement].removeEventListener('keydown',this[$keydownHandler]);this[$progressTracker].removeEventListener('progress',this[$progressHandler]);loadingStatusAnnouncer.unregisterInstance(this);}},{key:\"updated\",value:function(){var _updated=_asyncToGenerator(regeneratorRuntime.mark(function _callee27(changedProperties){return regeneratorRuntime.wrap(function _callee27$(_context28){while(1){switch(_context28.prev=_context28.next){case 0:_get(_getPrototypeOf(LoadingModelViewerElement.prototype),\"updated\",this).call(this,changedProperties);if(changedProperties.has('poster')&&this.poster!=null){this[$defaultPosterElement].style.backgroundImage=\"url(\".concat(this.poster,\")\");}if(changedProperties.has('alt')){this[$defaultPosterElement].setAttribute('aria-label',\"\".concat(this[$ariaLabel],\". \").concat(this[$ariaLabelCallToAction]));}if(changedProperties.has('reveal')||changedProperties.has('loaded')){if(!this[$sceneIsReady]()){this[$updateSource]();}}case 4:case\"end\":return _context28.stop();}}},_callee27,this);}));function updated(_x25){return _updated.apply(this,arguments);}return updated;}()},{key:(_a=$modelIsRevealed,_b=$transitioned,_c=$lastReportedProgress,_d=$posterDismissalSource,_e=$posterContainerElement,_f=$defaultPosterElement,_g=$defaultProgressBarElement,_h=$defaultProgressMaskElement,_j=$ariaLabelCallToAction,_k=$clickHandler,_l=$keydownHandler,_m=$progressHandler,_o=$updateProgressBar,$onClick),value:function value(){if(this.reveal===RevealStrategy.MANUAL){return;}this.dismissPoster();}},{key:$onKeydown,value:function value(event){if(this.reveal===RevealStrategy.MANUAL){return;}switch(event.keyCode){case SPACE_KEY:case ENTER_KEY:this.dismissPoster();break;}}},{key:$onProgress,value:function value(event){var progress=event.detail.totalProgress;this[$lastReportedProgress]=Math.max(progress,this[$lastReportedProgress]);if(progress===1.0){this[$updateProgressBar].flush();if(this[$sceneIsReady]()&&(this[$posterDismissalSource]!=null||this.reveal===RevealStrategy.AUTO)){this[$hidePoster]();}}this[$updateProgressBar](progress);this.dispatchEvent(new CustomEvent('progress',{detail:{totalProgress:progress}}));}},{key:$shouldAttemptPreload,value:function value(){return!!this.src&&(this[$posterDismissalSource]!=null||this.loading===LoadingStrategy.EAGER||this.reveal===RevealStrategy.AUTO&&this[$isElementInViewport]);}},{key:$sceneIsReady,value:function value(){var src=this.src;return!!src&&_get(_getPrototypeOf(LoadingModelViewerElement.prototype),$sceneIsReady,this).call(this)&&this[$lastReportedProgress]===1.0;}},{key:$showPoster,value:function value(){var posterContainerElement=this[$posterContainerElement];var defaultPosterElement=this[$defaultPosterElement];defaultPosterElement.removeAttribute('tabindex');defaultPosterElement.removeAttribute('aria-hidden');posterContainerElement.classList.add('show');var oldVisibility=this.modelIsVisible;this[$modelIsRevealed]=false;this[$announceModelVisibility](oldVisibility);this[$transitioned]=false;}},{key:$hidePoster,value:function value(){var _this69=this;this[$posterDismissalSource]=null;var posterContainerElement=this[$posterContainerElement];var defaultPosterElement=this[$defaultPosterElement];if(posterContainerElement.classList.contains('show')){posterContainerElement.classList.remove('show');var oldVisibility=this.modelIsVisible;this[$modelIsRevealed]=true;this[$announceModelVisibility](oldVisibility);posterContainerElement.addEventListener('transitionend',function(){requestAnimationFrame(function(){_this69[$transitioned]=true;var root=_this69.getRootNode();if(root&&root.activeElement===_this69){_this69[$userInputElement].focus();}defaultPosterElement.setAttribute('aria-hidden','true');defaultPosterElement.tabIndex=-1;_this69.dispatchEvent(new CustomEvent('poster-dismissed'));});},{once:true});}}},{key:$getModelIsVisible,value:function value(){return _get(_getPrototypeOf(LoadingModelViewerElement.prototype),$getModelIsVisible,this).call(this)&&this[$modelIsRevealed];}},{key:$hasTransitioned,value:function value(){return _get(_getPrototypeOf(LoadingModelViewerElement.prototype),$hasTransitioned,this).call(this)&&this[$transitioned];}},{key:$updateSource,value:function(){var _value8=_asyncToGenerator(regeneratorRuntime.mark(function _callee28(){return regeneratorRuntime.wrap(function _callee28$(_context29){while(1){switch(_context29.prev=_context29.next){case 0:this[$lastReportedProgress]=0;if(this[$scene].model.currentGLTF==null||this.src==null||!this[$shouldAttemptPreload]()){this[$showPoster]();}_context29.next=4;return _get(_getPrototypeOf(LoadingModelViewerElement.prototype),$updateSource,this).call(this);case 4:case\"end\":return _context29.stop();}}},_callee28,this);}));function value(){return _value8.apply(this,arguments);}return value;}()}],[{key:\"mapURLs\",value:function mapURLs(callback){Renderer.singleton.loader[$loader].manager.setURLModifier(callback);}},{key:\"dracoDecoderLocation\",set:function set(value){CachingGLTFLoader.setDRACODecoderLocation(value);},get:function get(){return CachingGLTFLoader.getDRACODecoderLocation();}}]);return LoadingModelViewerElement;}(ModelViewerElement);__decorate$5([property({type:String})],LoadingModelViewerElement.prototype,\"poster\",void 0);__decorate$5([property({type:String})],LoadingModelViewerElement.prototype,\"reveal\",void 0);__decorate$5([property({type:String})],LoadingModelViewerElement.prototype,\"loading\",void 0);return LoadingModelViewerElement;};var ThreeDOMMessageType={HANDSHAKE:1,IMPORT_SCRIPT:2,MODEL_CHANGE:3,MUTATION_RESULT:4,CONTEXT_INITIALIZED:5,MUTATE:6};var $ownerModel=Symbol('ownerModel');var ThreeDOMElement=function(){function ThreeDOMElement(kernel){_classCallCheck(this,ThreeDOMElement);if(kernel==null){throw new Error('Illegal constructor');}this[$ownerModel]=kernel.model;}_createClass(ThreeDOMElement,[{key:\"ownerModel\",get:function get(){return this[$ownerModel];}}]);return ThreeDOMElement;}();var $kernel=Symbol('kernel');var $uri=Symbol('uri');var $name=Symbol('name');var Image=function(_ThreeDOMElement){_inherits(Image,_ThreeDOMElement);var _super36=_createSuper(Image);function Image(kernel,serialized){var _this70;_classCallCheck(this,Image);_this70=_super36.call(this,kernel);_this70[$kernel]=kernel;_this70[$uri]=serialized.uri||null;if(serialized.name!=null){_this70[$name]=serialized.name;}return _this70;}_createClass(Image,[{key:\"setURI\",value:function(){var _setURI=_asyncToGenerator(regeneratorRuntime.mark(function _callee29(uri){return regeneratorRuntime.wrap(function _callee29$(_context30){while(1){switch(_context30.prev=_context30.next){case 0:_context30.next=2;return this[$kernel].mutate(this,'uri',uri);case 2:this[$uri]=uri;case 3:case\"end\":return _context30.stop();}}},_callee29,this);}));function setURI(_x26){return _setURI.apply(this,arguments);}return setURI;}()},{key:\"name\",get:function get(){return this[$name];}},{key:\"type\",get:function get(){return this.uri!=null?'external':'embedded';}},{key:\"uri\",get:function get(){return this[$uri];}}]);return Image;}(ThreeDOMElement);var _a$c,_b$a,_c$4;var $pbrMetallicRoughness=Symbol('pbrMetallicRoughness');var $normalTexture=Symbol('normalTexture');var $occlusionTexture=Symbol('occlusionTexture');var $emissiveTexture=Symbol('emissiveTexture');var $kernel$1=Symbol('kernel');var $name$1=Symbol('name');var Material$1=function(_ThreeDOMElement2){_inherits(Material$1,_ThreeDOMElement2);var _super37=_createSuper(Material$1);function Material$1(kernel,serialized){var _this71;_classCallCheck(this,Material$1);_this71=_super37.call(this,kernel);_this71[_a$c]=null;_this71[_b$a]=null;_this71[_c$4]=null;_this71[$kernel$1]=kernel;if(serialized.name!=null){_this71[$name$1]=serialized.name;}var pbrMetallicRoughness=serialized.pbrMetallicRoughness,normalTexture=serialized.normalTexture,occlusionTexture=serialized.occlusionTexture,emissiveTexture=serialized.emissiveTexture;_this71[$pbrMetallicRoughness]=kernel.deserialize('pbr-metallic-roughness',pbrMetallicRoughness);if(normalTexture!=null){_this71[$normalTexture]=kernel.deserialize('texture-info',normalTexture);}if(occlusionTexture!=null){_this71[$occlusionTexture]=kernel.deserialize('texture-info',occlusionTexture);}if(emissiveTexture!=null){_this71[$emissiveTexture]=kernel.deserialize('texture-info',emissiveTexture);}return _this71;}_createClass(Material$1,[{key:\"pbrMetallicRoughness\",get:function get(){return this[$pbrMetallicRoughness];}},{key:\"normalTexture\",get:function get(){return this[$normalTexture];}},{key:\"occlusionTexture\",get:function get(){return this[$occlusionTexture];}},{key:\"emissiveTexture\",get:function get(){return this[$emissiveTexture];}},{key:\"name\",get:function get(){return this[$name$1];}}]);return Material$1;}(ThreeDOMElement);_a$c=$normalTexture,_b$a=$occlusionTexture,_c$4=$emissiveTexture;var _a$d;var $materials=Symbol('material');var $kernel$2=Symbol('kernel');var Model$1=function(_ThreeDOMElement3){_inherits(Model$1,_ThreeDOMElement3);var _super38=_createSuper(Model$1);function Model$1(kernel,serialized){var _this72;_classCallCheck(this,Model$1);_this72=_super38.call(this,kernel);_this72[_a$d]=Object.freeze([]);_this72[$kernel$2]=kernel;var _iterator21=_createForOfIteratorHelper(serialized.materials),_step21;try{for(_iterator21.s();!(_step21=_iterator21.n()).done;){var material=_step21.value;_this72[$kernel$2].deserialize('material',material);}}catch(err){_iterator21.e(err);}finally{_iterator21.f();}return _this72;}_createClass(Model$1,[{key:\"materials\",get:function get(){return this[$kernel$2].getElementsByType('material');}},{key:\"ownerModel\",get:function get(){return this;}}]);return Model$1;}(ThreeDOMElement);_a$d=$materials;var _a$e,_b$b;var $kernel$3=Symbol('kernel');var $baseColorFactor=Symbol('baseColorFactor');var $baseColorTexture=Symbol('baseColorTexture');var $metallicRoughnessTexture=Symbol('metallicRoughnessTexture');var $metallicFactor=Symbol('metallicFactor');var $roughnessFactor=Symbol('roughnessFactor');var PBRMetallicRoughness=function(_ThreeDOMElement4){_inherits(PBRMetallicRoughness,_ThreeDOMElement4);var _super39=_createSuper(PBRMetallicRoughness);function PBRMetallicRoughness(kernel,serialized){var _this73;_classCallCheck(this,PBRMetallicRoughness);_this73=_super39.call(this,kernel);_this73[_a$e]=null;_this73[_b$b]=null;_this73[$kernel$3]=kernel;_this73[$baseColorFactor]=Object.freeze(serialized.baseColorFactor);_this73[$metallicFactor]=serialized.metallicFactor;_this73[$roughnessFactor]=serialized.roughnessFactor;var baseColorTexture=serialized.baseColorTexture,metallicRoughnessTexture=serialized.metallicRoughnessTexture;if(baseColorTexture!=null){_this73[$baseColorTexture]=kernel.deserialize('texture-info',baseColorTexture);}if(metallicRoughnessTexture!=null){_this73[$metallicRoughnessTexture]=kernel.deserialize('texture-info',metallicRoughnessTexture);}return _this73;}_createClass(PBRMetallicRoughness,[{key:\"setBaseColorFactor\",value:function(){var _setBaseColorFactor=_asyncToGenerator(regeneratorRuntime.mark(function _callee30(color){return regeneratorRuntime.wrap(function _callee30$(_context31){while(1){switch(_context31.prev=_context31.next){case 0:_context31.next=2;return this[$kernel$3].mutate(this,'baseColorFactor',color);case 2:this[$baseColorFactor]=Object.freeze(color);case 3:case\"end\":return _context31.stop();}}},_callee30,this);}));function setBaseColorFactor(_x27){return _setBaseColorFactor.apply(this,arguments);}return setBaseColorFactor;}()},{key:\"setMetallicFactor\",value:function(){var _setMetallicFactor=_asyncToGenerator(regeneratorRuntime.mark(function _callee31(factor){return regeneratorRuntime.wrap(function _callee31$(_context32){while(1){switch(_context32.prev=_context32.next){case 0:_context32.next=2;return this[$kernel$3].mutate(this,'metallicFactor',factor);case 2:this[$metallicFactor]=factor;case 3:case\"end\":return _context32.stop();}}},_callee31,this);}));function setMetallicFactor(_x28){return _setMetallicFactor.apply(this,arguments);}return setMetallicFactor;}()},{key:\"setRoughnessFactor\",value:function(){var _setRoughnessFactor=_asyncToGenerator(regeneratorRuntime.mark(function _callee32(factor){return regeneratorRuntime.wrap(function _callee32$(_context33){while(1){switch(_context33.prev=_context33.next){case 0:_context33.next=2;return this[$kernel$3].mutate(this,'roughnessFactor',factor);case 2:this[$roughnessFactor]=factor;case 3:case\"end\":return _context33.stop();}}},_callee32,this);}));function setRoughnessFactor(_x29){return _setRoughnessFactor.apply(this,arguments);}return setRoughnessFactor;}()},{key:\"baseColorFactor\",get:function get(){return this[$baseColorFactor];}},{key:\"metallicFactor\",get:function get(){return this[$metallicFactor];}},{key:\"roughnessFactor\",get:function get(){return this[$roughnessFactor];}},{key:\"baseColorTexture\",get:function get(){return this[$baseColorTexture];}},{key:\"metallicRoughnessTexture\",get:function get(){return this[$metallicRoughnessTexture];}}]);return PBRMetallicRoughness;}(ThreeDOMElement);_a$e=$baseColorTexture,_b$b=$metallicRoughnessTexture;var _a$f,_b$c;var $kernel$4=Symbol('kernel');var $minFilter=Symbol('minFilter');var $magFilter=Symbol('magFilter');var $wrapS=Symbol('wrapS');var $wrapT=Symbol('wrapT');var $name$2=Symbol('name');var Sampler=function(_ThreeDOMElement5){_inherits(Sampler,_ThreeDOMElement5);var _super40=_createSuper(Sampler);function Sampler(kernel,serialized){var _this74;_classCallCheck(this,Sampler);_this74=_super40.call(this,kernel);_this74[_a$f]=null;_this74[_b$c]=null;_this74[$kernel$4]=kernel;if(serialized.name!=null){_this74[$name$2]=serialized.name;}_this74[$minFilter]=serialized.minFilter||null;_this74[$magFilter]=serialized.magFilter||null;_this74[$wrapS]=serialized.wrapS||10497;_this74[$wrapT]=serialized.wrapT||10497;return _this74;}_createClass(Sampler,[{key:\"setMinFilter\",value:function(){var _setMinFilter=_asyncToGenerator(regeneratorRuntime.mark(function _callee33(filter){return regeneratorRuntime.wrap(function _callee33$(_context34){while(1){switch(_context34.prev=_context34.next){case 0:_context34.next=2;return this[$kernel$4].mutate(this,'minFilter',filter);case 2:this[$minFilter]=filter;case 3:case\"end\":return _context34.stop();}}},_callee33,this);}));function setMinFilter(_x30){return _setMinFilter.apply(this,arguments);}return setMinFilter;}()},{key:\"setMagFilter\",value:function(){var _setMagFilter=_asyncToGenerator(regeneratorRuntime.mark(function _callee34(filter){return regeneratorRuntime.wrap(function _callee34$(_context35){while(1){switch(_context35.prev=_context35.next){case 0:_context35.next=2;return this[$kernel$4].mutate(this,'magFilter',filter);case 2:this[$magFilter]=filter;case 3:case\"end\":return _context35.stop();}}},_callee34,this);}));function setMagFilter(_x31){return _setMagFilter.apply(this,arguments);}return setMagFilter;}()},{key:\"setWrapS\",value:function(){var _setWrapS=_asyncToGenerator(regeneratorRuntime.mark(function _callee35(mode){return regeneratorRuntime.wrap(function _callee35$(_context36){while(1){switch(_context36.prev=_context36.next){case 0:_context36.next=2;return this[$kernel$4].mutate(this,'wrapS',mode);case 2:this[$wrapS]=mode;case 3:case\"end\":return _context36.stop();}}},_callee35,this);}));function setWrapS(_x32){return _setWrapS.apply(this,arguments);}return setWrapS;}()},{key:\"setWrapT\",value:function(){var _setWrapT=_asyncToGenerator(regeneratorRuntime.mark(function _callee36(mode){return regeneratorRuntime.wrap(function _callee36$(_context37){while(1){switch(_context37.prev=_context37.next){case 0:_context37.next=2;return this[$kernel$4].mutate(this,'wrapT',mode);case 2:this[$wrapT]=mode;case 3:case\"end\":return _context37.stop();}}},_callee36,this);}));function setWrapT(_x33){return _setWrapT.apply(this,arguments);}return setWrapT;}()},{key:\"name\",get:function get(){return this[$name$2];}},{key:\"minFilter\",get:function get(){return this[$minFilter];}},{key:\"magFilter\",get:function get(){return this[$magFilter];}},{key:\"wrapS\",get:function get(){return this[$wrapS];}},{key:\"wrapT\",get:function get(){return this[$wrapT];}}]);return Sampler;}(ThreeDOMElement);_a$f=$minFilter,_b$c=$magFilter;var _a$g;var $kernel$5=Symbol('kernel');var $texture=Symbol('texture');var TextureInfo=function(_ThreeDOMElement6){_inherits(TextureInfo,_ThreeDOMElement6);var _super41=_createSuper(TextureInfo);function TextureInfo(kernel,serialized){var _this75;_classCallCheck(this,TextureInfo);_this75=_super41.call(this,kernel);_this75[_a$g]=null;_this75[$kernel$5]=kernel;var texture=serialized.texture;if(texture!=null){_this75[$texture]=kernel.deserialize('texture',texture);}return _this75;}_createClass(TextureInfo,[{key:\"setTexture\",value:function(){var _setTexture=_asyncToGenerator(regeneratorRuntime.mark(function _callee37(texture){return regeneratorRuntime.wrap(function _callee37$(_context38){while(1){switch(_context38.prev=_context38.next){case 0:_context38.next=2;return this[$kernel$5].mutate(this,'texture',texture);case 2:this[$texture]=texture;case 3:case\"end\":return _context38.stop();}}},_callee37,this);}));function setTexture(_x34){return _setTexture.apply(this,arguments);}return setTexture;}()},{key:\"texture\",get:function get(){return this[$texture];}}]);return TextureInfo;}(ThreeDOMElement);_a$g=$texture;var _a$h,_b$d;var $kernel$6=Symbol('kernel');var $source=Symbol('source');var $sampler=Symbol('sampler');var $name$3=Symbol('name');var Texture$1=function(_ThreeDOMElement7){_inherits(Texture$1,_ThreeDOMElement7);var _super42=_createSuper(Texture$1);function Texture$1(kernel,serialized){var _this76;_classCallCheck(this,Texture$1);_this76=_super42.call(this,kernel);_this76[_a$h]=null;_this76[_b$d]=null;_this76[$kernel$6]=kernel;var sampler=serialized.sampler,source=serialized.source,name=serialized.name;if(name!=null){_this76[$name$3]=name;}if(sampler!=null){_this76[$sampler]=kernel.deserialize('sampler',sampler);}if(source!=null){_this76[$source]=kernel.deserialize('image',source);}return _this76;}_createClass(Texture$1,[{key:\"setSampler\",value:function(){var _setSampler=_asyncToGenerator(regeneratorRuntime.mark(function _callee38(sampler){return regeneratorRuntime.wrap(function _callee38$(_context39){while(1){switch(_context39.prev=_context39.next){case 0:_context39.next=2;return this[$kernel$6].mutate(this,'sampler',sampler);case 2:this[$sampler]=sampler;case 3:case\"end\":return _context39.stop();}}},_callee38,this);}));function setSampler(_x35){return _setSampler.apply(this,arguments);}return setSampler;}()},{key:\"setSource\",value:function(){var _setSource2=_asyncToGenerator(regeneratorRuntime.mark(function _callee39(image){return regeneratorRuntime.wrap(function _callee39$(_context40){while(1){switch(_context40.prev=_context40.next){case 0:_context40.next=2;return this[$kernel$6].mutate(this,'source',image);case 2:this[$source]=image;case 3:case\"end\":return _context40.stop();}}},_callee39,this);}));function setSource(_x36){return _setSource2.apply(this,arguments);}return setSource;}()},{key:\"name\",get:function get(){return this[$name$3];}},{key:\"sampler\",get:function get(){return this[$sampler];}},{key:\"source\",get:function get(){return this[$source];}}]);return Texture$1;}(ThreeDOMElement);_a$h=$source,_b$d=$sampler;var _a$i,_b$e,_c$5,_d$3,_e$2,_f$2;var ThreeDOMElementMap={'model':Model$1,'material':Material$1,'pbr-metallic-roughness':PBRMetallicRoughness,'image':Image,'sampler':Sampler,'texture':Texture$1,'texture-info':TextureInfo};var $onMessageEvent=Symbol('onMessageEvent');var $port=Symbol('port');var $model=Symbol('model');var $elementsByLocalId=Symbol('elementsByLocalId');var $localIdsByElement=Symbol('localIdsByElement');var $elementsByType=Symbol('elementsByType');var $pendingMutations=Symbol('pendingMutations');var $nextMutationId=Symbol('nextMutationId');var ModelKernel=function(){function ModelKernel(port,serialized){var _this77=this;_classCallCheck(this,ModelKernel);this[_a$i]=new Map();this[_b$e]=new Map();this[_c$5]=new Map();this[_d$3]=new Map();this[_e$2]=0;this[_f$2]=function(event){var data=event.data;switch(data&&data.type){case ThreeDOMMessageType.MUTATION_RESULT:{var message=data;var applied=message.applied,mutationId=message.mutationId;var pendingMutation=_this77[$pendingMutations].get(mutationId);_this77[$pendingMutations].delete(mutationId);if(pendingMutation!=null){applied?pendingMutation.resolve():pendingMutation.reject();}break;}}};var types=new Array('model','material','pbr-metallic-roughness','sampler','image','texture','texture-info');for(var _i348=0,_types=types;_i348<_types.length;_i348++){var type=_types[_i348];this[$elementsByType].set(type,new Set());}this[$port]=port;this[$port].addEventListener('message',this[$onMessageEvent]);this[$port].start();this[$model]=this.deserialize('model',serialized);}_createClass(ModelKernel,[{key:\"mutate\",value:function(){var _mutate=_asyncToGenerator(regeneratorRuntime.mark(function _callee40(element,property,value){var _this78=this;var id;return regeneratorRuntime.wrap(function _callee40$(_context41){while(1){switch(_context41.prev=_context41.next){case 0:if(this[$localIdsByElement].has(element)){_context41.next=2;break;}throw new Error('Cannot mutate unknown element');case 2:id=this[$localIdsByElement].get(element);if(_instanceof(value,ThreeDOMElement)){value=this[$localIdsByElement].get(value);}return _context41.abrupt(\"return\",new Promise(function(resolve,reject){var mutationId=_this78[$nextMutationId]++;_this78[$port].postMessage({type:ThreeDOMMessageType.MUTATE,id:id,property:property,value:value,mutationId:mutationId});_this78[$pendingMutations].set(mutationId,{resolve:resolve,reject:reject});}));case 5:case\"end\":return _context41.stop();}}},_callee40,this);}));function mutate(_x37,_x38,_x39){return _mutate.apply(this,arguments);}return mutate;}()},{key:\"deserialize\",value:function deserialize(type,serialized){var id=serialized.id;if(this[$elementsByLocalId].has(id)){return this[$elementsByLocalId].get(id);}var ElementConstructor=ThreeDOMElementMap[type];if(ElementConstructor==null){throw new Error(\"Cannot deserialize unknown type: \".concat(type));}\nvar element=new ElementConstructor(this,serialized);this[$elementsByLocalId].set(id,element);this[$localIdsByElement].set(element,id);this[$elementsByType].get(type).add(element);return element;}},{key:\"getElementsByType\",value:function getElementsByType(type){if(!this[$elementsByType].has(type)){return[];}\nreturn Array.from(this[$elementsByType].get(type));}},{key:\"deactivate\",value:function deactivate(){this[$port].close();this[$port].removeEventListener('message',this[$onMessageEvent]);}},{key:\"model\",get:function get(){return this[$model];}}]);return ModelKernel;}();_a$i=$elementsByLocalId,_b$e=$localIdsByElement,_c$5=$elementsByType,_d$3=$pendingMutations,_e$2=$nextMutationId,_f$2=$onMessageEvent;var _a$j;var $modelGraft=Symbol('modelGraft');var $port$1=Symbol('port');var $onMessageEvent$1=Symbol('onMessageEvent');var ModelGraftManipulator=function(){function ModelGraftManipulator(modelGraft,port){var _this79=this;_classCallCheck(this,ModelGraftManipulator);this[_a$j]=function(){var _ref10=_asyncToGenerator(regeneratorRuntime.mark(function _callee41(event){var data,applied,mutationId;return regeneratorRuntime.wrap(function _callee41$(_context42){while(1){switch(_context42.prev=_context42.next){case 0:data=event.data;if(!(data&&data.type)){_context42.next=12;break;}if(!(data.type===ThreeDOMMessageType.MUTATE)){_context42.next=12;break;}applied=false;mutationId=data.mutationId;_context42.prev=5;_context42.next=8;return _this79[$modelGraft].mutate(data.id,data.property,data.value);case 8:applied=true;case 9:_context42.prev=9;_this79[$port$1].postMessage({type:ThreeDOMMessageType.MUTATION_RESULT,applied:applied,mutationId:mutationId});return _context42.finish(9);case 12:case\"end\":return _context42.stop();}}},_callee41,null,[[5,,9,12]]);}));return function(_x40){return _ref10.apply(this,arguments);};}();this[$modelGraft]=modelGraft;this[$port$1]=port;this[$port$1].addEventListener('message',this[$onMessageEvent$1]);this[$port$1].start();}_createClass(ModelGraftManipulator,[{key:\"dispose\",value:function dispose(){this[$port$1].removeEventListener('message',this[$onMessageEvent$1]);this[$port$1].close();}}]);return ModelGraftManipulator;}();_a$j=$onMessageEvent$1;var getLocallyUniqueId=function(){var id=0;return function(){return id++;};}();var $callbacks=Symbol('callbacks');var $visitMesh=Symbol('visitMesh');var $visitElement=Symbol('visitElement');var $visitNode=Symbol('visitNode');var $visitScene=Symbol('visitScene');var $visitMaterial=Symbol('visitMaterial');var GLTFTreeVisitor=function(){function GLTFTreeVisitor(callbacks){_classCallCheck(this,GLTFTreeVisitor);this[$callbacks]=callbacks;}_createClass(GLTFTreeVisitor,[{key:\"visit\",value:function visit(gltf){var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var allScenes=!!options.allScenes;var sparse=!!options.sparse;var scenes=allScenes?gltf.scenes||[]:gltf.scenes&&gltf.scene!=null?[gltf.scenes[gltf.scene]]:[];var state={hierarchy:[],visited:new Set(),sparse:sparse,gltf:gltf};var _iterator22=_createForOfIteratorHelper(scenes),_step22;try{for(_iterator22.s();!(_step22=_iterator22.n()).done;){var scene=_step22.value;this[$visitScene](gltf.scenes.indexOf(scene),state);}}catch(err){_iterator22.e(err);}finally{_iterator22.f();}}},{key:$visitElement,value:function value(index,elementList,state,visit,traverse){if(elementList==null){return;}var element=elementList[index];var sparse=state.sparse,hierarchy=state.hierarchy,visited=state.visited;if(element==null){return;}if(sparse&&visited.has(element)){return;}visited.add(element);hierarchy.push(element);if(visit!=null){visit(element,index,hierarchy);}if(traverse!=null){traverse(element);}hierarchy.pop();}},{key:$visitScene,value:function value(index,state){var _this80=this;var gltf=state.gltf;var visit=this[$callbacks].scene;this[$visitElement](index,gltf.scenes,state,visit,function(scene){if(scene.nodes==null){return;}var _iterator23=_createForOfIteratorHelper(scene.nodes),_step23;try{for(_iterator23.s();!(_step23=_iterator23.n()).done;){var nodeIndex=_step23.value;_this80[$visitNode](nodeIndex,state);}}catch(err){_iterator23.e(err);}finally{_iterator23.f();}});}},{key:$visitNode,value:function value(index,state){var _this81=this;var gltf=state.gltf;var visit=this[$callbacks].node;this[$visitElement](index,gltf.nodes,state,visit,function(node){if(node.mesh!=null){_this81[$visitMesh](node.mesh,state);}if(node.children!=null){var _iterator24=_createForOfIteratorHelper(node.children),_step24;try{for(_iterator24.s();!(_step24=_iterator24.n()).done;){var childNodeIndex=_step24.value;_this81[$visitNode](childNodeIndex,state);}}catch(err){_iterator24.e(err);}finally{_iterator24.f();}}});}},{key:$visitMesh,value:function value(index,state){var _this82=this;var gltf=state.gltf;var visit=this[$callbacks].mesh;this[$visitElement](index,gltf.meshes,state,visit,function(mesh){var _iterator25=_createForOfIteratorHelper(mesh.primitives),_step25;try{for(_iterator25.s();!(_step25=_iterator25.n()).done;){var primitive=_step25.value;if(primitive.material!=null){_this82[$visitMaterial](primitive.material,state);}}}catch(err){_iterator25.e(err);}finally{_iterator25.f();}});}},{key:$visitMaterial,value:function value(index,state){var gltf=state.gltf;var visit=this[$callbacks].material;this[$visitElement](index,gltf.materials,state,visit);}}]);return GLTFTreeVisitor;}();var _a$k;var $correlatedObjects=Symbol('correlatedObjects');var $sourceObject=Symbol('sourceObject');var $graft=Symbol('graft');var $id=Symbol('id');var ThreeDOMElement$1=function(){function ThreeDOMElement$1(graft,element){var correlatedObjects=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;_classCallCheck(this,ThreeDOMElement$1);this[_a$k]=getLocallyUniqueId();this[$graft]=graft;this[$sourceObject]=element;this[$correlatedObjects]=correlatedObjects;graft.adopt(this);}_createClass(ThreeDOMElement$1,[{key:\"mutate\",value:function mutate(_property,_value){throw new Error('Mutation not implemented for this element');}},{key:\"toJSON\",value:function toJSON(){var serialized={id:this[$id]};var name=this.name;if(name!=null){serialized.name=name;}return serialized;}},{key:\"ownerModel\",get:function get(){return this[$graft].model;}},{key:\"internalID\",get:function get(){return this[$id];}},{key:\"name\",get:function get(){return this[$sourceObject].name||null;}},{key:\"correlatedObjects\",get:function get(){return this[$correlatedObjects];}},{key:\"sourceObject\",get:function get(){return this[$sourceObject];}}]);return ThreeDOMElement$1;}();_a$k=$id;var _a$l;var loader=new ImageLoader();var $threeTextures=Symbol('threeTextures');var $bufferViewImages=Symbol('bufferViewImages');var Image$1=function(_ThreeDOMElement$){_inherits(Image$1,_ThreeDOMElement$);var _super43=_createSuper(Image$1);function Image$1(graft,image,correlatedTextures){var _this83;_classCallCheck(this,Image$1);_this83=_super43.call(this,graft,image,correlatedTextures);_this83[_a$l]=new WeakMap();if(image.bufferView!=null){var _iterator26=_createForOfIteratorHelper(correlatedTextures),_step26;try{for(_iterator26.s();!(_step26=_iterator26.n()).done;){var texture=_step26.value;_this83[$bufferViewImages].set(texture,texture.image);}}catch(err){_iterator26.e(err);}finally{_iterator26.f();}}return _this83;}_createClass(Image$1,[{key:\"mutate\",value:function(){var _mutate2=_asyncToGenerator(regeneratorRuntime.mark(function _callee42(property,value){var image,_iterator27,_step27,texture;return regeneratorRuntime.wrap(function _callee42$(_context43){while(1){switch(_context43.prev=_context43.next){case 0:image=null;if(!(property!=='uri')){_context43.next=3;break;}throw new Error(\"Cannot configure property \\\"\".concat(property,\"\\\" on Image\"));case 3:if(!(value!=null)){_context43.next=7;break;}_context43.next=6;return new Promise(function(resolve,reject){loader.load(value,resolve,undefined,reject);});case 6:image=_context43.sent;case 7:_iterator27=_createForOfIteratorHelper(this[$threeTextures]);try{for(_iterator27.s();!(_step27=_iterator27.n()).done;){texture=_step27.value;if(image==null&&this.sourceObject.bufferView!=null){texture.image=this[$bufferViewImages].get(texture);}else{texture.image=image;}texture.needsUpdate=true;}}catch(err){_iterator27.e(err);}finally{_iterator27.f();}case 9:case\"end\":return _context43.stop();}}},_callee42,this);}));function mutate(_x41,_x42){return _mutate2.apply(this,arguments);}return mutate;}()},{key:\"toJSON\",value:function toJSON(){var serialized=_get(_getPrototypeOf(Image$1.prototype),\"toJSON\",this).call(this);var uri=this.sourceObject.uri;if(uri!=null){serialized.uri=uri;}return serialized;}},{key:$threeTextures,get:function get(){return this[$correlatedObjects];}}]);return Image$1;}(ThreeDOMElement$1);_a$l=$bufferViewImages;var isMinFilter=function(){var minFilterValues=[9728,9729,9984,9985,9986,9987];return function(value){return minFilterValues.indexOf(value)>-1;};}();var isMagFilter=function(){var magFilterValues=[9728,9729];return function(value){return magFilterValues.indexOf(value)>-1;};}();var isWrapMode=function(){var wrapModes=[33071,33648,10497];return function(value){return wrapModes.indexOf(value)>-1;};}();var isValidSamplerValue=function isValidSamplerValue(property,value){switch(property){case'minFilter':return isMinFilter(value);case'magFilter':return isMagFilter(value);case'wrapS':case'wrapT':return isWrapMode(value);default:throw new Error(\"Cannot configure property \\\"\".concat(property,\"\\\" on Sampler\"));}};var defaultValues={minFilter:9987,magFilter:9729,wrapS:10497,wrapT:10497};var $threeTextures$1=Symbol('threeTextures');var Sampler$1=function(_ThreeDOMElement$2){_inherits(Sampler$1,_ThreeDOMElement$2);var _super44=_createSuper(Sampler$1);_createClass(Sampler$1,[{key:$threeTextures$1,get:function get(){return this[$correlatedObjects];}}]);function Sampler$1(graft,sampler,correlatedTextures){_classCallCheck(this,Sampler$1);return _super44.call(this,graft,sampler,correlatedTextures);}_createClass(Sampler$1,[{key:\"mutate\",value:function(){var _mutate3=_asyncToGenerator(regeneratorRuntime.mark(function _callee43(property,value){var sampler,_iterator28,_step28,texture,_iterator29,_step29,_texture;return regeneratorRuntime.wrap(function _callee43$(_context44){while(1){switch(_context44.prev=_context44.next){case 0:sampler=this.sourceObject;if(value!=null){if(isValidSamplerValue(property,value)){sampler[property]=value;_iterator28=_createForOfIteratorHelper(this[$threeTextures$1]);try{for(_iterator28.s();!(_step28=_iterator28.n()).done;){texture=_step28.value;texture[property]=value;texture.needsUpdate=true;}}catch(err){_iterator28.e(err);}finally{_iterator28.f();}}}else if(property in sampler){delete sampler[property];_iterator29=_createForOfIteratorHelper(this[$threeTextures$1]);try{for(_iterator29.s();!(_step29=_iterator29.n()).done;){_texture=_step29.value;_texture[property]=defaultValues[property];_texture.needsUpdate=true;}}catch(err){_iterator29.e(err);}finally{_iterator29.f();}}case 2:case\"end\":return _context44.stop();}}},_callee43,this);}));function mutate(_x43,_x44){return _mutate3.apply(this,arguments);}return mutate;}()},{key:\"toJSON\",value:function toJSON(){var serialized=_get(_getPrototypeOf(Sampler$1.prototype),\"toJSON\",this).call(this);var _this$sourceObject=this.sourceObject,minFilter=_this$sourceObject.minFilter,magFilter=_this$sourceObject.magFilter,wrapS=_this$sourceObject.wrapS,wrapT=_this$sourceObject.wrapT;if(minFilter!=null){serialized.minFilter=minFilter;}if(magFilter!=null){serialized.magFilter=magFilter;}if(wrapS!==10497){serialized.wrapS=wrapS;}if(wrapT!==10497){serialized.wrapT=wrapT;}return serialized;}}]);return Sampler$1;}(ThreeDOMElement$1);var _a$m,_b$f;var $source$1=Symbol('source');var $sampler$1=Symbol('sampler');var Texture$2=function(_ThreeDOMElement$3){_inherits(Texture$2,_ThreeDOMElement$3);var _super45=_createSuper(Texture$2);function Texture$2(graft,texture,correlatedTextures){var _this84;_classCallCheck(this,Texture$2);_this84=_super45.call(this,graft,texture,correlatedTextures);_this84[_a$m]=null;_this84[_b$f]=null;var glTF=graft.correlatedSceneGraph.gltf;var samplerIndex=texture.sampler,imageIndex=texture.source;if(samplerIndex!=null){var sampler=glTF.samplers&&glTF.samplers[samplerIndex];if(sampler!=null){_this84[$sampler$1]=new Sampler$1(graft,sampler,correlatedTextures);}}if(imageIndex!=null){var image=glTF.images&&glTF.images[imageIndex];if(image!=null){_this84[$source$1]=new Image$1(graft,image,correlatedTextures);}}return _this84;}_createClass(Texture$2,[{key:\"toJSON\",value:function toJSON(){var serialized=_get(_getPrototypeOf(Texture$2.prototype),\"toJSON\",this).call(this);var sampler=this.sampler,source=this.source;if(sampler!=null){serialized.sampler=sampler.toJSON();}if(source!=null){serialized.source=source.toJSON();}return serialized;}},{key:\"sampler\",get:function get(){return this[$sampler$1];}},{key:\"source\",get:function get(){return this[$source$1];}}]);return Texture$2;}(ThreeDOMElement$1);_a$m=$source$1,_b$f=$sampler$1;var _a$n;var $texture$1=Symbol('texture');var TextureInfo$1=function(_ThreeDOMElement$4){_inherits(TextureInfo$1,_ThreeDOMElement$4);var _super46=_createSuper(TextureInfo$1);function TextureInfo$1(graft,textureInfo,correlatedTextures){var _this85;_classCallCheck(this,TextureInfo$1);_this85=_super46.call(this,graft,textureInfo,correlatedTextures);_this85[_a$n]=null;var glTF=graft.correlatedSceneGraph.gltf;var textureIndex=textureInfo.index;var texture=textureIndex!=null&&glTF.textures!=null?glTF.textures[textureIndex]:null;if(texture!=null){_this85[$texture$1]=new Texture$2(graft,texture,correlatedTextures);}return _this85;}_createClass(TextureInfo$1,[{key:\"toJSON\",value:function toJSON(){var serialized=_get(_getPrototypeOf(TextureInfo$1.prototype),\"toJSON\",this).call(this);var texture=this.texture;if(texture!=null){serialized.texture=texture.toJSON();}return serialized;}},{key:\"texture\",get:function get(){return this[$texture$1];}}]);return TextureInfo$1;}(ThreeDOMElement$1);_a$n=$texture$1;var _a$o,_b$g;var $threeMaterials=Symbol('threeMaterials');var $baseColorTexture$1=Symbol('baseColorTexture');var $metallicRoughnessTexture$1=Symbol('metallicRoughnessTexture');var PBRMetallicRoughness$1=function(_ThreeDOMElement$5){_inherits(PBRMetallicRoughness$1,_ThreeDOMElement$5);var _super47=_createSuper(PBRMetallicRoughness$1);function PBRMetallicRoughness$1(graft,pbrMetallicRoughness,correlatedMaterials){var _this86;_classCallCheck(this,PBRMetallicRoughness$1);_this86=_super47.call(this,graft,pbrMetallicRoughness,correlatedMaterials);_this86[_a$o]=null;_this86[_b$g]=null;var baseColorTexture=pbrMetallicRoughness.baseColorTexture,metallicRoughnessTexture=pbrMetallicRoughness.metallicRoughnessTexture;var baseColorTextures=new Set();var metallicRoughnessTextures=new Set();var _iterator30=_createForOfIteratorHelper(correlatedMaterials),_step30;try{for(_iterator30.s();!(_step30=_iterator30.n()).done;){var material=_step30.value;if(baseColorTexture!=null&&material.map!=null){baseColorTextures.add(material.map);}\nif(metallicRoughnessTexture!=null&&material.metalnessMap!=null){metallicRoughnessTextures.add(material.metalnessMap);}}}catch(err){_iterator30.e(err);}finally{_iterator30.f();}if(baseColorTextures.size>0){_this86[$baseColorTexture$1]=new TextureInfo$1(graft,baseColorTexture,baseColorTextures);}if(metallicRoughnessTextures.size>0){_this86[$metallicRoughnessTexture$1]=new TextureInfo$1(graft,metallicRoughnessTexture,metallicRoughnessTextures);}return _this86;}_createClass(PBRMetallicRoughness$1,[{key:\"mutate\",value:function(){var _mutate4=_asyncToGenerator(regeneratorRuntime.mark(function _callee44(property,value){var _iterator31,_step31,material,pbrMetallicRoughness,_iterator32,_step32,_material2,_pbrMetallicRoughness,_iterator33,_step33,_material3,_pbrMetallicRoughness2;return regeneratorRuntime.wrap(function _callee44$(_context45){while(1){switch(_context45.prev=_context45.next){case 0:if(['baseColorFactor','metallicFactor','roughnessFactor'].includes(property)){_context45.next=2;break;}throw new Error(\"Cannot mutate \".concat(property,\" on PBRMetallicRoughness\"));case 2:_context45.t0=property;_context45.next=_context45.t0==='baseColorFactor'?5:_context45.t0==='metallicFactor'?8:_context45.t0==='roughnessFactor'?11:14;break;case 5:_iterator31=_createForOfIteratorHelper(this[$threeMaterials]);try{for(_iterator31.s();!(_step31=_iterator31.n()).done;){material=_step31.value;material.color.fromArray(value);material.opacity=value[3];pbrMetallicRoughness=this[$sourceObject];if(value===1&&value===1&&value===1&&value===1){delete pbrMetallicRoughness.baseColorFactor;}else{pbrMetallicRoughness.baseColorFactor=value;}}}catch(err){_iterator31.e(err);}finally{_iterator31.f();}return _context45.abrupt(\"break\",14);case 8:_iterator32=_createForOfIteratorHelper(this[$threeMaterials]);try{for(_iterator32.s();!(_step32=_iterator32.n()).done;){_material2=_step32.value;_material2.metalness=value;_pbrMetallicRoughness=this[$sourceObject];_pbrMetallicRoughness.metallicFactor=value;}}catch(err){_iterator32.e(err);}finally{_iterator32.f();}return _context45.abrupt(\"break\",14);case 11:_iterator33=_createForOfIteratorHelper(this[$threeMaterials]);try{for(_iterator33.s();!(_step33=_iterator33.n()).done;){_material3=_step33.value;_material3.roughness=value;_pbrMetallicRoughness2=this[$sourceObject];_pbrMetallicRoughness2.roughnessFactor=value;}}catch(err){_iterator33.e(err);}finally{_iterator33.f();}return _context45.abrupt(\"break\",14);case 14:case\"end\":return _context45.stop();}}},_callee44,this);}));function mutate(_x45,_x46){return _mutate4.apply(this,arguments);}return mutate;}()},{key:\"toJSON\",value:function toJSON(){var serialized=_get(_getPrototypeOf(PBRMetallicRoughness$1.prototype),\"toJSON\",this).call(this);var baseColorTexture=this.baseColorTexture,metallicRoughnessTexture=this.metallicRoughnessTexture,baseColorFactor=this.baseColorFactor,roughnessFactor=this.roughnessFactor,metallicFactor=this.metallicFactor;if(baseColorTexture!=null){serialized.baseColorTexture=baseColorTexture.toJSON();}if(baseColorFactor!=null){serialized.baseColorFactor=baseColorFactor;}if(metallicFactor!=null){serialized.metallicFactor=metallicFactor;}if(roughnessFactor!=null){serialized.roughnessFactor=roughnessFactor;}if(metallicRoughnessTexture!=null){serialized.metallicRoughnessTexture=metallicRoughnessTexture.toJSON();}return serialized;}},{key:(_a$o=$baseColorTexture$1,_b$g=$metallicRoughnessTexture$1,$threeMaterials),get:function get(){return this[$correlatedObjects];}},{key:\"baseColorFactor\",get:function get(){return this.sourceObject.baseColorFactor||[1,1,1,1];}},{key:\"metallicFactor\",get:function get(){return this.sourceObject.metallicFactor||0;}},{key:\"roughnessFactor\",get:function get(){return this.sourceObject.roughnessFactor||0;}},{key:\"baseColorTexture\",get:function get(){return this[$baseColorTexture$1];}},{key:\"metallicRoughnessTexture\",get:function get(){return this[$metallicRoughnessTexture$1];}}]);return PBRMetallicRoughness$1;}(ThreeDOMElement$1);var _a$p,_b$h,_c$6,_d$4;var $pbrMetallicRoughness$1=Symbol('pbrMetallicRoughness');var $normalTexture$1=Symbol('normalTexture');var $occlusionTexture$1=Symbol('occlusionTexture');var $emissiveTexture$1=Symbol('emissiveTexture');var Material$2=function(_ThreeDOMElement$6){_inherits(Material$2,_ThreeDOMElement$6);var _super48=_createSuper(Material$2);function Material$2(graft,material,correlatedMaterials){var _this87;_classCallCheck(this,Material$2);_this87=_super48.call(this,graft,material,correlatedMaterials);_this87[_a$p]=null;_this87[_b$h]=null;_this87[_c$6]=null;_this87[_d$4]=null;var pbrMetallicRoughness=material.pbrMetallicRoughness,normalTexture=material.normalTexture,occlusionTexture=material.occlusionTexture,emissiveTexture=material.emissiveTexture;if(pbrMetallicRoughness!=null){_this87[$pbrMetallicRoughness$1]=new PBRMetallicRoughness$1(graft,pbrMetallicRoughness,correlatedMaterials);}var normalTextures=new Set();var occlusionTextures=new Set();var emissiveTextures=new Set();var _iterator34=_createForOfIteratorHelper(correlatedMaterials),_step34;try{for(_iterator34.s();!(_step34=_iterator34.n()).done;){var _material4=_step34.value;var normalMap=_material4.normalMap,aoMap=_material4.aoMap,emissiveMap=_material4.emissiveMap;if(normalTexture!=null&&normalMap!=null){normalTextures.add(normalMap);}if(occlusionTexture!=null&&aoMap!=null){occlusionTextures.add(aoMap);}if(emissiveTexture!=null&&emissiveMap!=null){emissiveTextures.add(emissiveMap);}}}catch(err){_iterator34.e(err);}finally{_iterator34.f();}if(normalTextures.size>0){_this87[$normalTexture$1]=new TextureInfo$1(graft,normalTexture,normalTextures);}if(occlusionTextures.size>0){_this87[$occlusionTexture$1]=new TextureInfo$1(graft,occlusionTexture,occlusionTextures);}if(emissiveTextures.size>0){_this87[$emissiveTexture$1]=new TextureInfo$1(graft,emissiveTexture,emissiveTextures);}return _this87;}_createClass(Material$2,[{key:\"toJSON\",value:function toJSON(){var serialized=_get(_getPrototypeOf(Material$2.prototype),\"toJSON\",this).call(this);var pbrMetallicRoughness=this.pbrMetallicRoughness,normalTexture=this.normalTexture,occlusionTexture=this.occlusionTexture,emissiveTexture=this.emissiveTexture;if(pbrMetallicRoughness!=null){serialized.pbrMetallicRoughness=pbrMetallicRoughness.toJSON();}if(normalTexture!=null){serialized.normalTexture=normalTexture.toJSON();}if(occlusionTexture!=null){serialized.occlusionTexture=occlusionTexture.toJSON();}if(emissiveTexture!=null){serialized.emissiveTexture=emissiveTexture.toJSON();}return serialized;}},{key:\"pbrMetallicRoughness\",get:function get(){return this[$pbrMetallicRoughness$1];}},{key:\"normalTexture\",get:function get(){return this[$normalTexture$1];}},{key:\"occlusionTexture\",get:function get(){return this[$occlusionTexture$1];}},{key:\"emissiveTexture\",get:function get(){return this[$emissiveTexture$1];}}]);return Material$2;}(ThreeDOMElement$1);_a$p=$pbrMetallicRoughness$1,_b$h=$normalTexture$1,_c$6=$occlusionTexture$1,_d$4=$emissiveTexture$1;var _a$q,_b$i;var $modelUri=Symbol('modelUri');var $materials$1=Symbol('materials');var Model$2=function(_ThreeDOMElement$7){_inherits(Model$2,_ThreeDOMElement$7);var _super49=_createSuper(Model$2);function Model$2(graft,modelUri,correlatedSceneGraph){var _this88;_classCallCheck(this,Model$2);_this88=_super49.call(this,graft,correlatedSceneGraph.gltf);_this88[_a$q]='';_this88[_b$i]=[];_this88[$modelUri]=modelUri;var visitor=new GLTFTreeVisitor({material:function material(_material5){_this88[$materials$1].push(new Material$2(graft,_material5,correlatedSceneGraph.gltfElementMap.get(_material5)));}});visitor.visit(correlatedSceneGraph.gltf,{sparse:true});return _this88;}_createClass(Model$2,[{key:\"toJSON\",value:function toJSON(){var serialized=_get(_getPrototypeOf(Model$2.prototype),\"toJSON\",this).call(this);serialized.modelUri=this[$modelUri];serialized.materials=this[$materials$1].map(function(material){return material.toJSON();});return serialized;}},{key:\"materials\",get:function get(){return this[$materials$1];}}]);return Model$2;}(ThreeDOMElement$1);_a$q=$modelUri,_b$i=$materials$1;var _a$r,_b$j;var $model$1=Symbol('model');var $correlatedSceneGraph$1=Symbol('correlatedSceneGraph');var $elementsByInternalId=Symbol('elementsByInternalId');var $eventDelegate$1=Symbol('eventDelegate');var ModelGraft=function(){function ModelGraft(modelUri,correlatedSceneGraph){var _this89=this;_classCallCheck(this,ModelGraft);this[_a$r]=document.createDocumentFragment();this.addEventListener=function(){var _this89$$eventDelegat;return(_this89$$eventDelegat=_this89[$eventDelegate$1]).addEventListener.apply(_this89$$eventDelegat,arguments);};this.removeEventListener=function(){var _this89$$eventDelegat2;return(_this89$$eventDelegat2=_this89[$eventDelegate$1]).removeEventListener.apply(_this89$$eventDelegat2,arguments);};this.dispatchEvent=function(){var _this89$$eventDelegat3;return(_this89$$eventDelegat3=_this89[$eventDelegate$1]).dispatchEvent.apply(_this89$$eventDelegat3,arguments);};this[_b$j]=new Map();this[$correlatedSceneGraph$1]=correlatedSceneGraph;this[$model$1]=new Model$2(this,modelUri,correlatedSceneGraph);}_createClass(ModelGraft,[{key:\"getElementByInternalId\",value:function getElementByInternalId(id){var element=this[$elementsByInternalId].get(id);if(element==null){return null;}return element;}},{key:\"adopt\",value:function adopt(element){this[$elementsByInternalId].set(element.internalID,element);}},{key:\"mutate\",value:function(){var _mutate5=_asyncToGenerator(regeneratorRuntime.mark(function _callee45(id,property,value){var element;return regeneratorRuntime.wrap(function _callee45$(_context46){while(1){switch(_context46.prev=_context46.next){case 0:element=this.getElementByInternalId(id);_context46.next=3;return element.mutate(property,value);case 3:this.dispatchEvent(new CustomEvent('mutation',{detail:{element:element}}));case 4:case\"end\":return _context46.stop();}}},_callee45,this);}));function mutate(_x47,_x48,_x49){return _mutate5.apply(this,arguments);}return mutate;}()},{key:\"correlatedSceneGraph\",get:function get(){return this[$correlatedSceneGraph$1];}},{key:\"model\",get:function get(){return this[$model$1];}}]);return ModelGraft;}();_a$r=$eventDelegate$1,_b$j=$elementsByInternalId;var WEBGL_CONSTANTS={POINTS:0x0000,LINES:0x0001,LINE_LOOP:0x0002,LINE_STRIP:0x0003,TRIANGLES:0x0004,TRIANGLE_STRIP:0x0005,TRIANGLE_FAN:0x0006,UNSIGNED_BYTE:0x1401,UNSIGNED_SHORT:0x1403,FLOAT:0x1406,UNSIGNED_INT:0x1405,ARRAY_BUFFER:0x8892,ELEMENT_ARRAY_BUFFER:0x8893,NEAREST:0x2600,LINEAR:0x2601,NEAREST_MIPMAP_NEAREST:0x2700,LINEAR_MIPMAP_NEAREST:0x2701,NEAREST_MIPMAP_LINEAR:0x2702,LINEAR_MIPMAP_LINEAR:0x2703,CLAMP_TO_EDGE:33071,MIRRORED_REPEAT:33648,REPEAT:10497};var THREE_TO_WEBGL={};THREE_TO_WEBGL[NearestFilter]=WEBGL_CONSTANTS.NEAREST;THREE_TO_WEBGL[NearestMipmapNearestFilter]=WEBGL_CONSTANTS.NEAREST_MIPMAP_NEAREST;THREE_TO_WEBGL[NearestMipmapLinearFilter]=WEBGL_CONSTANTS.NEAREST_MIPMAP_LINEAR;THREE_TO_WEBGL[LinearFilter]=WEBGL_CONSTANTS.LINEAR;THREE_TO_WEBGL[LinearMipmapNearestFilter]=WEBGL_CONSTANTS.LINEAR_MIPMAP_NEAREST;THREE_TO_WEBGL[LinearMipmapLinearFilter]=WEBGL_CONSTANTS.LINEAR_MIPMAP_LINEAR;THREE_TO_WEBGL[ClampToEdgeWrapping]=WEBGL_CONSTANTS.CLAMP_TO_EDGE;THREE_TO_WEBGL[RepeatWrapping]=WEBGL_CONSTANTS.REPEAT;THREE_TO_WEBGL[MirroredRepeatWrapping]=WEBGL_CONSTANTS.MIRRORED_REPEAT;var PATH_PROPERTIES={scale:'scale',position:'translation',quaternion:'rotation',morphTargetInfluences:'weights'};var GLTFExporter=function GLTFExporter(){};GLTFExporter.prototype={constructor:GLTFExporter,parse:function parse(input,onDone,options){var DEFAULT_OPTIONS={binary:false,trs:false,onlyVisible:true,truncateDrawRange:true,embedImages:true,maxTextureSize:Infinity,animations:[],forcePowerOfTwoTextures:false,includeCustomExtensions:false};options=Object.assign({},DEFAULT_OPTIONS,options);if(options.animations.length>0){options.trs=true;}var outputJSON={asset:{version:\"2.0\",generator:\"GLTFExporter\"}};var byteOffset=0;var buffers=[];var pending=[];var nodeMap=new Map();var skins=[];var extensionsUsed={};var cachedData={meshes:new Map(),attributes:new Map(),attributesNormalized:new Map(),materials:new Map(),textures:new Map(),images:new Map()};var cachedCanvas;var uids=new Map();var uid=0;function getUID(object){if(!uids.has(object))uids.set(object,uid++);return uids.get(object);}function equalArray(array1,array2){return array1.length===array2.length&&array1.every(function(element,index){return element===array2[index];});}function stringToArrayBuffer(text){if(window.TextEncoder!==undefined){return new TextEncoder().encode(text).buffer;}var array=new Uint8Array(new ArrayBuffer(text.length));for(var i=0,il=text.length;i<il;i++){var value=text.charCodeAt(i);array[i]=value>0xFF?0x20:value;}return array.buffer;}function getMinMax(attribute,start,count){var output={min:new Array(attribute.itemSize).fill(Number.POSITIVE_INFINITY),max:new Array(attribute.itemSize).fill(Number.NEGATIVE_INFINITY)};for(var i=start;i<start+count;i++){for(var a=0;a<attribute.itemSize;a++){var value=attribute.array[i*attribute.itemSize+a];output.min[a]=Math.min(output.min[a],value);output.max[a]=Math.max(output.max[a],value);}}return output;}function isPowerOfTwo(image){return MathUtils.isPowerOfTwo(image.width)&&MathUtils.isPowerOfTwo(image.height);}function isNormalizedNormalAttribute(normal){if(cachedData.attributesNormalized.has(normal)){return false;}var v=new Vector3();for(var i=0,il=normal.count;i<il;i++){if(Math.abs(v.fromArray(normal.array,i*3).length()-1.0)>0.0005)return false;}return true;}function createNormalizedNormalAttribute(normal){if(cachedData.attributesNormalized.has(normal)){return cachedData.attributesNormalized.get(normal);}var attribute=normal.clone();var v=new Vector3();for(var i=0,il=attribute.count;i<il;i++){v.fromArray(attribute.array,i*3);if(v.x===0&&v.y===0&&v.z===0){v.setX(1.0);}else{v.normalize();}v.toArray(attribute.array,i*3);}cachedData.attributesNormalized.set(normal,attribute);return attribute;}function getPaddedBufferSize(bufferSize){return Math.ceil(bufferSize/4)*4;}function getPaddedArrayBuffer(arrayBuffer,paddingByte){paddingByte=paddingByte||0;var paddedLength=getPaddedBufferSize(arrayBuffer.byteLength);if(paddedLength!==arrayBuffer.byteLength){var array=new Uint8Array(paddedLength);array.set(new Uint8Array(arrayBuffer));if(paddingByte!==0){for(var i=arrayBuffer.byteLength;i<paddedLength;i++){array[i]=paddingByte;}}return array.buffer;}return arrayBuffer;}function serializeUserData(object,gltfProperty){if(Object.keys(object.userData).length===0){return;}try{var json=JSON.parse(JSON.stringify(object.userData));if(options.includeCustomExtensions&&json.gltfExtensions){if(gltfProperty.extensions===undefined){gltfProperty.extensions={};}for(var extensionName in json.gltfExtensions){gltfProperty.extensions[extensionName]=json.gltfExtensions[extensionName];extensionsUsed[extensionName]=true;}delete json.gltfExtensions;}if(Object.keys(json).length>0){gltfProperty.extras=json;}}catch(error){console.warn('THREE.GLTFExporter: userData of \\''+object.name+'\\' '+'won\\'t be serialized because of JSON.stringify error - '+error.message);}}function applyTextureTransform(mapDef,texture){var didTransform=false;var transformDef={};if(texture.offset.x!==0||texture.offset.y!==0){transformDef.offset=texture.offset.toArray();didTransform=true;}if(texture.rotation!==0){transformDef.rotation=texture.rotation;didTransform=true;}if(texture.repeat.x!==1||texture.repeat.y!==1){transformDef.scale=texture.repeat.toArray();didTransform=true;}if(didTransform){mapDef.extensions=mapDef.extensions||{};mapDef.extensions['KHR_texture_transform']=transformDef;extensionsUsed['KHR_texture_transform']=true;}}function processBuffer(buffer){if(!outputJSON.buffers){outputJSON.buffers=[{byteLength:0}];}\nbuffers.push(buffer);return 0;}function processBufferView(attribute,componentType,start,count,target){if(!outputJSON.bufferViews){outputJSON.bufferViews=[];}\nvar componentSize;if(componentType===WEBGL_CONSTANTS.UNSIGNED_BYTE){componentSize=1;}else if(componentType===WEBGL_CONSTANTS.UNSIGNED_SHORT){componentSize=2;}else{componentSize=4;}var byteLength=getPaddedBufferSize(count*attribute.itemSize*componentSize);var dataView=new DataView(new ArrayBuffer(byteLength));var offset=0;for(var i=start;i<start+count;i++){for(var a=0;a<attribute.itemSize;a++){var value;if(attribute.itemSize>4){value=attribute.array[i*attribute.itemSize+a];}else{if(a===0)value=attribute.getX(i);else if(a===1)value=attribute.getY(i);else if(a===2)value=attribute.getZ(i);else if(a===3)value=attribute.getW(i);}if(componentType===WEBGL_CONSTANTS.FLOAT){dataView.setFloat32(offset,value,true);}else if(componentType===WEBGL_CONSTANTS.UNSIGNED_INT){dataView.setUint32(offset,value,true);}else if(componentType===WEBGL_CONSTANTS.UNSIGNED_SHORT){dataView.setUint16(offset,value,true);}else if(componentType===WEBGL_CONSTANTS.UNSIGNED_BYTE){dataView.setUint8(offset,value);}offset+=componentSize;}}var gltfBufferView={buffer:processBuffer(dataView.buffer),byteOffset:byteOffset,byteLength:byteLength};if(target!==undefined)gltfBufferView.target=target;if(target===WEBGL_CONSTANTS.ARRAY_BUFFER){gltfBufferView.byteStride=attribute.itemSize*componentSize;}byteOffset+=byteLength;outputJSON.bufferViews.push(gltfBufferView);var output={id:outputJSON.bufferViews.length-1,byteLength:0};return output;}function processBufferViewImage(blob){if(!outputJSON.bufferViews){outputJSON.bufferViews=[];}return new Promise(function(resolve){var reader=new window.FileReader();reader.readAsArrayBuffer(blob);reader.onloadend=function(){var buffer=getPaddedArrayBuffer(reader.result);var bufferView={buffer:processBuffer(buffer),byteOffset:byteOffset,byteLength:buffer.byteLength};byteOffset+=buffer.byteLength;outputJSON.bufferViews.push(bufferView);resolve(outputJSON.bufferViews.length-1);};});}function processAccessor(attribute,geometry,start,count){var types={1:'SCALAR',2:'VEC2',3:'VEC3',4:'VEC4',16:'MAT4'};var componentType;if(attribute.array.constructor===Float32Array){componentType=WEBGL_CONSTANTS.FLOAT;}else if(attribute.array.constructor===Uint32Array){componentType=WEBGL_CONSTANTS.UNSIGNED_INT;}else if(attribute.array.constructor===Uint16Array){componentType=WEBGL_CONSTANTS.UNSIGNED_SHORT;}else if(attribute.array.constructor===Uint8Array){componentType=WEBGL_CONSTANTS.UNSIGNED_BYTE;}else{throw new Error('THREE.GLTFExporter: Unsupported bufferAttribute component type.');}if(start===undefined)start=0;if(count===undefined)count=attribute.count;if(options.truncateDrawRange&&geometry!==undefined&&geometry.index===null){var end=start+count;var end2=geometry.drawRange.count===Infinity?attribute.count:geometry.drawRange.start+geometry.drawRange.count;start=Math.max(start,geometry.drawRange.start);count=Math.min(end,end2)-start;if(count<0)count=0;}\nif(count===0){return null;}var minMax=getMinMax(attribute,start,count);var bufferViewTarget;if(geometry!==undefined){bufferViewTarget=attribute===geometry.index?WEBGL_CONSTANTS.ELEMENT_ARRAY_BUFFER:WEBGL_CONSTANTS.ARRAY_BUFFER;}var bufferView=processBufferView(attribute,componentType,start,count,bufferViewTarget);var gltfAccessor={bufferView:bufferView.id,byteOffset:bufferView.byteOffset,componentType:componentType,count:count,max:minMax.max,min:minMax.min,type:types[attribute.itemSize]};if(attribute.normalized===true){gltfAccessor.normalized=true;}if(!outputJSON.accessors){outputJSON.accessors=[];}outputJSON.accessors.push(gltfAccessor);return outputJSON.accessors.length-1;}function processImage(image,format,flipY){if(!cachedData.images.has(image)){cachedData.images.set(image,{});}var cachedImages=cachedData.images.get(image);var mimeType=format===RGBAFormat?'image/png':'image/jpeg';var key=mimeType+\":flipY/\"+flipY.toString();if(cachedImages[key]!==undefined){return cachedImages[key];}if(!outputJSON.images){outputJSON.images=[];}var gltfImage={mimeType:mimeType};if(options.embedImages){var canvas=cachedCanvas=cachedCanvas||document.createElement('canvas');canvas.width=Math.min(image.width,options.maxTextureSize);canvas.height=Math.min(image.height,options.maxTextureSize);if(options.forcePowerOfTwoTextures&&!isPowerOfTwo(canvas)){console.warn('GLTFExporter: Resized non-power-of-two image.',image);canvas.width=MathUtils.floorPowerOfTwo(canvas.width);canvas.height=MathUtils.floorPowerOfTwo(canvas.height);}var ctx=canvas.getContext('2d');if(flipY===true){ctx.translate(0,canvas.height);ctx.scale(1,-1);}ctx.drawImage(image,0,0,canvas.width,canvas.height);if(options.binary===true){pending.push(new Promise(function(resolve){canvas.toBlob(function(blob){processBufferViewImage(blob).then(function(bufferViewIndex){gltfImage.bufferView=bufferViewIndex;resolve();});},mimeType);}));}else{gltfImage.uri=canvas.toDataURL(mimeType);}}else{gltfImage.uri=image.src;}outputJSON.images.push(gltfImage);var index=outputJSON.images.length-1;cachedImages[key]=index;return index;}function processSampler(map){if(!outputJSON.samplers){outputJSON.samplers=[];}var gltfSampler={magFilter:THREE_TO_WEBGL[map.magFilter],minFilter:THREE_TO_WEBGL[map.minFilter],wrapS:THREE_TO_WEBGL[map.wrapS],wrapT:THREE_TO_WEBGL[map.wrapT]};outputJSON.samplers.push(gltfSampler);return outputJSON.samplers.length-1;}function processTexture(map){if(cachedData.textures.has(map)){return cachedData.textures.get(map);}if(!outputJSON.textures){outputJSON.textures=[];}var gltfTexture={sampler:processSampler(map),source:processImage(map.image,map.format,map.flipY)};if(map.name){gltfTexture.name=map.name;}outputJSON.textures.push(gltfTexture);var index=outputJSON.textures.length-1;cachedData.textures.set(map,index);return index;}function processMaterial(material){if(cachedData.materials.has(material)){return cachedData.materials.get(material);}if(material.isShaderMaterial){console.warn('GLTFExporter: THREE.ShaderMaterial not supported.');return null;}if(!outputJSON.materials){outputJSON.materials=[];}\nvar gltfMaterial={pbrMetallicRoughness:{}};if(material.isMeshBasicMaterial){gltfMaterial.extensions={KHR_materials_unlit:{}};extensionsUsed['KHR_materials_unlit']=true;}else if(material.isGLTFSpecularGlossinessMaterial){gltfMaterial.extensions={KHR_materials_pbrSpecularGlossiness:{}};extensionsUsed['KHR_materials_pbrSpecularGlossiness']=true;}else if(!material.isMeshStandardMaterial){console.warn('GLTFExporter: Use MeshStandardMaterial or MeshBasicMaterial for best results.');}\nvar color=material.color.toArray().concat([material.opacity]);if(!equalArray(color,[1,1,1,1])){gltfMaterial.pbrMetallicRoughness.baseColorFactor=color;}if(material.isMeshStandardMaterial){gltfMaterial.pbrMetallicRoughness.metallicFactor=material.metalness;gltfMaterial.pbrMetallicRoughness.roughnessFactor=material.roughness;}else if(material.isMeshBasicMaterial){gltfMaterial.pbrMetallicRoughness.metallicFactor=0.0;gltfMaterial.pbrMetallicRoughness.roughnessFactor=0.9;}else{gltfMaterial.pbrMetallicRoughness.metallicFactor=0.5;gltfMaterial.pbrMetallicRoughness.roughnessFactor=0.5;}\nif(material.isGLTFSpecularGlossinessMaterial){if(gltfMaterial.pbrMetallicRoughness.baseColorFactor){gltfMaterial.extensions.KHR_materials_pbrSpecularGlossiness.diffuseFactor=gltfMaterial.pbrMetallicRoughness.baseColorFactor;}var specularFactor=[1,1,1];material.specular.toArray(specularFactor,0);gltfMaterial.extensions.KHR_materials_pbrSpecularGlossiness.specularFactor=specularFactor;gltfMaterial.extensions.KHR_materials_pbrSpecularGlossiness.glossinessFactor=material.glossiness;}\nif(material.metalnessMap||material.roughnessMap){if(material.metalnessMap===material.roughnessMap){var metalRoughMapDef={index:processTexture(material.metalnessMap)};applyTextureTransform(metalRoughMapDef,material.metalnessMap);gltfMaterial.pbrMetallicRoughness.metallicRoughnessTexture=metalRoughMapDef;}else{console.warn('THREE.GLTFExporter: Ignoring metalnessMap and roughnessMap because they are not the same Texture.');}}\nif(material.map){var baseColorMapDef={index:processTexture(material.map)};applyTextureTransform(baseColorMapDef,material.map);if(material.isGLTFSpecularGlossinessMaterial){gltfMaterial.extensions.KHR_materials_pbrSpecularGlossiness.diffuseTexture=baseColorMapDef;}gltfMaterial.pbrMetallicRoughness.baseColorTexture=baseColorMapDef;}\nif(material.isGLTFSpecularGlossinessMaterial&&material.specularMap){var specularMapDef={index:processTexture(material.specularMap)};applyTextureTransform(specularMapDef,material.specularMap);gltfMaterial.extensions.KHR_materials_pbrSpecularGlossiness.specularGlossinessTexture=specularMapDef;}if(material.emissive){var emissive=material.emissive.clone().multiplyScalar(material.emissiveIntensity).toArray();if(!equalArray(emissive,[0,0,0])){gltfMaterial.emissiveFactor=emissive;}\nif(material.emissiveMap){var emissiveMapDef={index:processTexture(material.emissiveMap)};applyTextureTransform(emissiveMapDef,material.emissiveMap);gltfMaterial.emissiveTexture=emissiveMapDef;}}\nif(material.normalMap){var normalMapDef={index:processTexture(material.normalMap)};if(material.normalScale&&material.normalScale.x!==-1){if(material.normalScale.x!==material.normalScale.y){console.warn('THREE.GLTFExporter: Normal scale components are different, ignoring Y and exporting X.');}normalMapDef.scale=material.normalScale.x;}applyTextureTransform(normalMapDef,material.normalMap);gltfMaterial.normalTexture=normalMapDef;}\nif(material.aoMap){var occlusionMapDef={index:processTexture(material.aoMap),texCoord:1};if(material.aoMapIntensity!==1.0){occlusionMapDef.strength=material.aoMapIntensity;}applyTextureTransform(occlusionMapDef,material.aoMap);gltfMaterial.occlusionTexture=occlusionMapDef;}\nif(material.transparent){gltfMaterial.alphaMode='BLEND';}else{if(material.alphaTest>0.0){gltfMaterial.alphaMode='MASK';gltfMaterial.alphaCutoff=material.alphaTest;}}\nif(material.side===DoubleSide){gltfMaterial.doubleSided=true;}if(material.name!==''){gltfMaterial.name=material.name;}serializeUserData(material,gltfMaterial);outputJSON.materials.push(gltfMaterial);var index=outputJSON.materials.length-1;cachedData.materials.set(material,index);return index;}function processMesh(mesh){var meshCacheKeyParts=[mesh.geometry.uuid];if(Array.isArray(mesh.material)){for(var i=0,l=mesh.material.length;i<l;i++){meshCacheKeyParts.push(mesh.material[i].uuid);}}else{meshCacheKeyParts.push(mesh.material.uuid);}var meshCacheKey=meshCacheKeyParts.join(':');if(cachedData.meshes.has(meshCacheKey)){return cachedData.meshes.get(meshCacheKey);}var geometry=mesh.geometry;var mode;if(mesh.isLineSegments){mode=WEBGL_CONSTANTS.LINES;}else if(mesh.isLineLoop){mode=WEBGL_CONSTANTS.LINE_LOOP;}else if(mesh.isLine){mode=WEBGL_CONSTANTS.LINE_STRIP;}else if(mesh.isPoints){mode=WEBGL_CONSTANTS.POINTS;}else{mode=mesh.material.wireframe?WEBGL_CONSTANTS.LINES:WEBGL_CONSTANTS.TRIANGLES;}if(!geometry.isBufferGeometry){console.warn('GLTFExporter: Exporting THREE.Geometry will increase file size. Use BufferGeometry instead.');geometry=new BufferGeometry().setFromObject(mesh);}var gltfMesh={};var attributes={};var primitives=[];var targets=[];var nameConversion={uv:'TEXCOORD_0',uv2:'TEXCOORD_1',color:'COLOR_0',skinWeight:'WEIGHTS_0',skinIndex:'JOINTS_0'};var originalNormal=geometry.getAttribute('normal');if(originalNormal!==undefined&&!isNormalizedNormalAttribute(originalNormal)){console.warn('THREE.GLTFExporter: Creating normalized normal attribute from the non-normalized one.');geometry.setAttribute('normal',createNormalizedNormalAttribute(originalNormal));}\nvar modifiedAttribute=null;for(var attributeName in geometry.attributes){if(attributeName.substr(0,5)==='morph')continue;var attribute=geometry.attributes[attributeName];attributeName=nameConversion[attributeName]||attributeName.toUpperCase();var validVertexAttributes=/^(POSITION|NORMAL|TANGENT|TEXCOORD_\\d+|COLOR_\\d+|JOINTS_\\d+|WEIGHTS_\\d+)$/;if(!validVertexAttributes.test(attributeName)){attributeName='_'+attributeName;}if(cachedData.attributes.has(getUID(attribute))){attributes[attributeName]=cachedData.attributes.get(getUID(attribute));continue;}\nmodifiedAttribute=null;var array=attribute.array;if(attributeName==='JOINTS_0'&&!_instanceof(array,Uint16Array)&&!_instanceof(array,Uint8Array)){console.warn('GLTFExporter: Attribute \"skinIndex\" converted to type UNSIGNED_SHORT.');modifiedAttribute=new BufferAttribute(new Uint16Array(array),attribute.itemSize,attribute.normalized);}var accessor=processAccessor(modifiedAttribute||attribute,geometry);if(accessor!==null){attributes[attributeName]=accessor;cachedData.attributes.set(getUID(attribute),accessor);}}if(originalNormal!==undefined)geometry.setAttribute('normal',originalNormal);if(Object.keys(attributes).length===0){return null;}\nif(mesh.morphTargetInfluences!==undefined&&mesh.morphTargetInfluences.length>0){var weights=[];var targetNames=[];var reverseDictionary={};if(mesh.morphTargetDictionary!==undefined){for(var key in mesh.morphTargetDictionary){reverseDictionary[mesh.morphTargetDictionary[key]]=key;}}for(var i=0;i<mesh.morphTargetInfluences.length;++i){var target={};var warned=false;for(var attributeName in geometry.morphAttributes){if(attributeName!=='position'&&attributeName!=='normal'){if(!warned){console.warn('GLTFExporter: Only POSITION and NORMAL morph are supported.');warned=true;}continue;}var attribute=geometry.morphAttributes[attributeName][i];var gltfAttributeName=attributeName.toUpperCase();var baseAttribute=geometry.attributes[attributeName];if(cachedData.attributes.has(getUID(attribute))){target[gltfAttributeName]=cachedData.attributes.get(getUID(attribute));continue;}\nvar relativeAttribute=attribute.clone();if(!geometry.morphTargetsRelative){for(var j=0,jl=attribute.count;j<jl;j++){relativeAttribute.setXYZ(j,attribute.getX(j)-baseAttribute.getX(j),attribute.getY(j)-baseAttribute.getY(j),attribute.getZ(j)-baseAttribute.getZ(j));}}target[gltfAttributeName]=processAccessor(relativeAttribute,geometry);cachedData.attributes.set(getUID(baseAttribute),target[gltfAttributeName]);}targets.push(target);weights.push(mesh.morphTargetInfluences[i]);if(mesh.morphTargetDictionary!==undefined)targetNames.push(reverseDictionary[i]);}gltfMesh.weights=weights;if(targetNames.length>0){gltfMesh.extras={};gltfMesh.extras.targetNames=targetNames;}}var isMultiMaterial=Array.isArray(mesh.material);if(isMultiMaterial&&geometry.groups.length===0)return null;var materials=isMultiMaterial?mesh.material:[mesh.material];var groups=isMultiMaterial?geometry.groups:[{materialIndex:0,start:undefined,count:undefined}];for(var i=0,il=groups.length;i<il;i++){var primitive={mode:mode,attributes:attributes};serializeUserData(geometry,primitive);if(targets.length>0)primitive.targets=targets;if(geometry.index!==null){var cacheKey=getUID(geometry.index);if(groups[i].start!==undefined||groups[i].count!==undefined){cacheKey+=':'+groups[i].start+':'+groups[i].count;}if(cachedData.attributes.has(cacheKey)){primitive.indices=cachedData.attributes.get(cacheKey);}else{primitive.indices=processAccessor(geometry.index,geometry,groups[i].start,groups[i].count);cachedData.attributes.set(cacheKey,primitive.indices);}if(primitive.indices===null)delete primitive.indices;}var material=processMaterial(materials[groups[i].materialIndex]);if(material!==null){primitive.material=material;}primitives.push(primitive);}gltfMesh.primitives=primitives;if(!outputJSON.meshes){outputJSON.meshes=[];}outputJSON.meshes.push(gltfMesh);var index=outputJSON.meshes.length-1;cachedData.meshes.set(meshCacheKey,index);return index;}function processCamera(camera){if(!outputJSON.cameras){outputJSON.cameras=[];}var isOrtho=camera.isOrthographicCamera;var gltfCamera={type:isOrtho?'orthographic':'perspective'};if(isOrtho){gltfCamera.orthographic={xmag:camera.right*2,ymag:camera.top*2,zfar:camera.far<=0?0.001:camera.far,znear:camera.near<0?0:camera.near};}else{gltfCamera.perspective={aspectRatio:camera.aspect,yfov:MathUtils.degToRad(camera.fov),zfar:camera.far<=0?0.001:camera.far,znear:camera.near<0?0:camera.near};}if(camera.name!==''){gltfCamera.name=camera.type;}outputJSON.cameras.push(gltfCamera);return outputJSON.cameras.length-1;}function processAnimation(clip,root){if(!outputJSON.animations){outputJSON.animations=[];}clip=GLTFExporter.Utils.mergeMorphTargetTracks(clip.clone(),root);var tracks=clip.tracks;var channels=[];var samplers=[];for(var i=0;i<tracks.length;++i){var track=tracks[i];var trackBinding=PropertyBinding.parseTrackName(track.name);var trackNode=PropertyBinding.findNode(root,trackBinding.nodeName);var trackProperty=PATH_PROPERTIES[trackBinding.propertyName];if(trackBinding.objectName==='bones'){if(trackNode.isSkinnedMesh===true){trackNode=trackNode.skeleton.getBoneByName(trackBinding.objectIndex);}else{trackNode=undefined;}}if(!trackNode||!trackProperty){console.warn('THREE.GLTFExporter: Could not export animation track \"%s\".',track.name);return null;}var inputItemSize=1;var outputItemSize=track.values.length/track.times.length;if(trackProperty===PATH_PROPERTIES.morphTargetInfluences){outputItemSize/=trackNode.morphTargetInfluences.length;}var interpolation;if(track.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline===true){interpolation='CUBICSPLINE';outputItemSize/=3;}else if(track.getInterpolation()===InterpolateDiscrete){interpolation='STEP';}else{interpolation='LINEAR';}samplers.push({input:processAccessor(new BufferAttribute(track.times,inputItemSize)),output:processAccessor(new BufferAttribute(track.values,outputItemSize)),interpolation:interpolation});channels.push({sampler:samplers.length-1,target:{node:nodeMap.get(trackNode),path:trackProperty}});}outputJSON.animations.push({name:clip.name||'clip_'+outputJSON.animations.length,samplers:samplers,channels:channels});return outputJSON.animations.length-1;}function processSkin(object){var node=outputJSON.nodes[nodeMap.get(object)];var skeleton=object.skeleton;if(skeleton===undefined)return null;var rootJoint=object.skeleton.bones[0];if(rootJoint===undefined)return null;var joints=[];var inverseBindMatrices=new Float32Array(skeleton.bones.length*16);for(var i=0;i<skeleton.bones.length;++i){joints.push(nodeMap.get(skeleton.bones[i]));skeleton.boneInverses[i].toArray(inverseBindMatrices,i*16);}if(outputJSON.skins===undefined){outputJSON.skins=[];}outputJSON.skins.push({inverseBindMatrices:processAccessor(new BufferAttribute(inverseBindMatrices,16)),joints:joints,skeleton:nodeMap.get(rootJoint)});var skinIndex=node.skin=outputJSON.skins.length-1;return skinIndex;}function processLight(light){var lightDef={};if(light.name)lightDef.name=light.name;lightDef.color=light.color.toArray();lightDef.intensity=light.intensity;if(light.isDirectionalLight){lightDef.type='directional';}else if(light.isPointLight){lightDef.type='point';if(light.distance>0)lightDef.range=light.distance;}else if(light.isSpotLight){lightDef.type='spot';if(light.distance>0)lightDef.range=light.distance;lightDef.spot={};lightDef.spot.innerConeAngle=(light.penumbra-1.0)*light.angle*-1.0;lightDef.spot.outerConeAngle=light.angle;}if(light.decay!==undefined&&light.decay!==2){console.warn('THREE.GLTFExporter: Light decay may be lost. glTF is physically-based, '+'and expects light.decay=2.');}if(light.target&&(light.target.parent!==light||light.target.position.x!==0||light.target.position.y!==0||light.target.position.z!==-1)){console.warn('THREE.GLTFExporter: Light direction may be lost. For best results, '+'make light.target a child of the light with position 0,0,-1.');}var lights=outputJSON.extensions['KHR_lights_punctual'].lights;lights.push(lightDef);return lights.length-1;}function processNode(object){if(!outputJSON.nodes){outputJSON.nodes=[];}var gltfNode={};if(options.trs){var rotation=object.quaternion.toArray();var position=object.position.toArray();var scale=object.scale.toArray();if(!equalArray(rotation,[0,0,0,1])){gltfNode.rotation=rotation;}if(!equalArray(position,[0,0,0])){gltfNode.translation=position;}if(!equalArray(scale,[1,1,1])){gltfNode.scale=scale;}}else{if(object.matrixAutoUpdate){object.updateMatrix();}if(!equalArray(object.matrix.elements,[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])){gltfNode.matrix=object.matrix.elements;}}\nif(object.name!==''){gltfNode.name=String(object.name);}serializeUserData(object,gltfNode);if(object.isMesh||object.isLine||object.isPoints){var mesh=processMesh(object);if(mesh!==null){gltfNode.mesh=mesh;}}else if(object.isCamera){gltfNode.camera=processCamera(object);}else if(object.isDirectionalLight||object.isPointLight||object.isSpotLight){if(!extensionsUsed['KHR_lights_punctual']){outputJSON.extensions=outputJSON.extensions||{};outputJSON.extensions['KHR_lights_punctual']={lights:[]};extensionsUsed['KHR_lights_punctual']=true;}gltfNode.extensions=gltfNode.extensions||{};gltfNode.extensions['KHR_lights_punctual']={light:processLight(object)};}else if(object.isLight){console.warn('THREE.GLTFExporter: Only directional, point, and spot lights are supported.',object);return null;}if(object.isSkinnedMesh){skins.push(object);}if(object.children.length>0){var children=[];for(var i=0,l=object.children.length;i<l;i++){var child=object.children[i];if(child.visible||options.onlyVisible===false){var node=processNode(child);if(node!==null){children.push(node);}}}if(children.length>0){gltfNode.children=children;}}outputJSON.nodes.push(gltfNode);var nodeIndex=outputJSON.nodes.length-1;nodeMap.set(object,nodeIndex);return nodeIndex;}function processScene(scene){if(!outputJSON.scenes){outputJSON.scenes=[];outputJSON.scene=0;}var gltfScene={};if(scene.name!==''){gltfScene.name=scene.name;}outputJSON.scenes.push(gltfScene);var nodes=[];for(var i=0,l=scene.children.length;i<l;i++){var child=scene.children[i];if(child.visible||options.onlyVisible===false){var node=processNode(child);if(node!==null){nodes.push(node);}}}if(nodes.length>0){gltfScene.nodes=nodes;}serializeUserData(scene,gltfScene);}function processObjects(objects){var scene=new Scene();scene.name='AuxScene';for(var i=0;i<objects.length;i++){scene.children.push(objects[i]);}processScene(scene);}function processInput(input){input=_instanceof(input,Array)?input:[input];var objectsWithoutScene=[];for(var i=0;i<input.length;i++){if(_instanceof(input[i],Scene)){processScene(input[i]);}else{objectsWithoutScene.push(input[i]);}}if(objectsWithoutScene.length>0){processObjects(objectsWithoutScene);}for(var i=0;i<skins.length;++i){processSkin(skins[i]);}for(var i=0;i<options.animations.length;++i){processAnimation(options.animations[i],input[0]);}}processInput(input);Promise.all(pending).then(function(){var blob=new Blob(buffers,{type:'application/octet-stream'});var extensionsUsedList=Object.keys(extensionsUsed);if(extensionsUsedList.length>0)outputJSON.extensionsUsed=extensionsUsedList;if(outputJSON.buffers&&outputJSON.buffers.length>0)outputJSON.buffers[0].byteLength=blob.size;if(options.binary===true){var GLB_HEADER_BYTES=12;var GLB_HEADER_MAGIC=0x46546C67;var GLB_VERSION=2;var GLB_CHUNK_PREFIX_BYTES=8;var GLB_CHUNK_TYPE_JSON=0x4E4F534A;var GLB_CHUNK_TYPE_BIN=0x004E4942;var reader=new window.FileReader();reader.readAsArrayBuffer(blob);reader.onloadend=function(){var binaryChunk=getPaddedArrayBuffer(reader.result);var binaryChunkPrefix=new DataView(new ArrayBuffer(GLB_CHUNK_PREFIX_BYTES));binaryChunkPrefix.setUint32(0,binaryChunk.byteLength,true);binaryChunkPrefix.setUint32(4,GLB_CHUNK_TYPE_BIN,true);var jsonChunk=getPaddedArrayBuffer(stringToArrayBuffer(JSON.stringify(outputJSON)),0x20);var jsonChunkPrefix=new DataView(new ArrayBuffer(GLB_CHUNK_PREFIX_BYTES));jsonChunkPrefix.setUint32(0,jsonChunk.byteLength,true);jsonChunkPrefix.setUint32(4,GLB_CHUNK_TYPE_JSON,true);var header=new ArrayBuffer(GLB_HEADER_BYTES);var headerView=new DataView(header);headerView.setUint32(0,GLB_HEADER_MAGIC,true);headerView.setUint32(4,GLB_VERSION,true);var totalByteLength=GLB_HEADER_BYTES+jsonChunkPrefix.byteLength+jsonChunk.byteLength+binaryChunkPrefix.byteLength+binaryChunk.byteLength;headerView.setUint32(8,totalByteLength,true);var glbBlob=new Blob([header,jsonChunkPrefix,jsonChunk,binaryChunkPrefix,binaryChunk],{type:'application/octet-stream'});var glbReader=new window.FileReader();glbReader.readAsArrayBuffer(glbBlob);glbReader.onloadend=function(){onDone(glbReader.result);};};}else{if(outputJSON.buffers&&outputJSON.buffers.length>0){var reader=new window.FileReader();reader.readAsDataURL(blob);reader.onloadend=function(){var base64data=reader.result;outputJSON.buffers[0].uri=base64data;onDone(outputJSON);};}else{onDone(outputJSON);}}});}};GLTFExporter.Utils={insertKeyframe:function insertKeyframe(track,time){var tolerance=0.001;var valueSize=track.getValueSize();var times=new track.TimeBufferType(track.times.length+1);var values=new track.ValueBufferType(track.values.length+valueSize);var interpolant=track.createInterpolant(new track.ValueBufferType(valueSize));var index;if(track.times.length===0){times[0]=time;for(var i=0;i<valueSize;i++){values[i]=0;}index=0;}else if(time<track.times[0]){if(Math.abs(track.times[0]-time)<tolerance)return 0;times[0]=time;times.set(track.times,1);values.set(interpolant.evaluate(time),0);values.set(track.values,valueSize);index=0;}else if(time>track.times[track.times.length-1]){if(Math.abs(track.times[track.times.length-1]-time)<tolerance){return track.times.length-1;}times[times.length-1]=time;times.set(track.times,0);values.set(track.values,0);values.set(interpolant.evaluate(time),track.values.length);index=times.length-1;}else{for(var i=0;i<track.times.length;i++){if(Math.abs(track.times[i]-time)<tolerance)return i;if(track.times[i]<time&&track.times[i+1]>time){times.set(track.times.slice(0,i+1),0);times[i+1]=time;times.set(track.times.slice(i+1),i+2);values.set(track.values.slice(0,(i+1)*valueSize),0);values.set(interpolant.evaluate(time),(i+1)*valueSize);values.set(track.values.slice((i+1)*valueSize),(i+2)*valueSize);index=i+1;break;}}}track.times=times;track.values=values;return index;},mergeMorphTargetTracks:function mergeMorphTargetTracks(clip,root){var tracks=[];var mergedTracks={};var sourceTracks=clip.tracks;for(var i=0;i<sourceTracks.length;++i){var sourceTrack=sourceTracks[i];var sourceTrackBinding=PropertyBinding.parseTrackName(sourceTrack.name);var sourceTrackNode=PropertyBinding.findNode(root,sourceTrackBinding.nodeName);if(sourceTrackBinding.propertyName!=='morphTargetInfluences'||sourceTrackBinding.propertyIndex===undefined){tracks.push(sourceTrack);continue;}if(sourceTrack.createInterpolant!==sourceTrack.InterpolantFactoryMethodDiscrete&&sourceTrack.createInterpolant!==sourceTrack.InterpolantFactoryMethodLinear){if(sourceTrack.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline){throw new Error('THREE.GLTFExporter: Cannot merge tracks with glTF CUBICSPLINE interpolation.');}console.warn('THREE.GLTFExporter: Morph target interpolation mode not yet supported. Using LINEAR instead.');sourceTrack=sourceTrack.clone();sourceTrack.setInterpolation(InterpolateLinear);}var targetCount=sourceTrackNode.morphTargetInfluences.length;var targetIndex=sourceTrackNode.morphTargetDictionary[sourceTrackBinding.propertyIndex];if(targetIndex===undefined){throw new Error('THREE.GLTFExporter: Morph target name not found: '+sourceTrackBinding.propertyIndex);}var mergedTrack;if(mergedTracks[sourceTrackNode.uuid]===undefined){mergedTrack=sourceTrack.clone();var values=new mergedTrack.ValueBufferType(targetCount*mergedTrack.times.length);for(var j=0;j<mergedTrack.times.length;j++){values[j*targetCount+targetIndex]=mergedTrack.values[j];}\nmergedTrack.name=sourceTrackBinding.nodeName+'.morphTargetInfluences';mergedTrack.values=values;mergedTracks[sourceTrackNode.uuid]=mergedTrack;tracks.push(mergedTrack);continue;}var sourceInterpolant=sourceTrack.createInterpolant(new sourceTrack.ValueBufferType(1));mergedTrack=mergedTracks[sourceTrackNode.uuid];for(var j=0;j<mergedTrack.times.length;j++){mergedTrack.values[j*targetCount+targetIndex]=sourceInterpolant.evaluate(mergedTrack.times[j]);}\nfor(var j=0;j<sourceTrack.times.length;j++){var keyframeIndex=this.insertKeyframe(mergedTrack,sourceTrack.times[j]);mergedTrack.values[keyframeIndex*targetCount+targetIndex]=sourceTrack.values[j];}}clip.tracks=tracks;return clip;}};var __decorate$6=undefined&&undefined.__decorate||function(decorators,target,key,desc){var c=arguments.length,r=c<3?target:desc===null?desc=Object.getOwnPropertyDescriptor(target,key):desc,d;if((typeof Reflect===\"undefined\"?\"undefined\":_typeof(Reflect))===\"object\"&&typeof undefined===\"function\")r=undefined(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--){if(d=decorators[i])r=(c<3?d(r):c>3?d(target,key,r):d(target,key))||r;}return c>3&&r&&Object.defineProperty(target,key,r),r;};var $updateThreeSide=Symbol('updateThreeSide');var $currentGLTF$1=Symbol('currentGLTF');var $modelGraft$1=Symbol('modelGraft');var $mainPort=Symbol('mainPort');var $threePort=Symbol('threePort');var $manipulator=Symbol('manipulator');var $modelKernel=Symbol('modelKernel');var $onModelChange=Symbol('onModelChange');var $onModelGraftMutation=Symbol('onModelGraftMutation');var SceneGraphMixin=function SceneGraphMixin(ModelViewerElement){var _a,_b,_c,_d,_e,_f,_g;var _h;var SceneGraphModelViewerElement=function(_ModelViewerElement7){_inherits(SceneGraphModelViewerElement,_ModelViewerElement7);var _super50=_createSuper(SceneGraphModelViewerElement);function SceneGraphModelViewerElement(){var _this90;_classCallCheck(this,SceneGraphModelViewerElement);_this90=_super50.apply(this,arguments);_this90[_h]=null;_this90[_a]=null;_this90[_b]=null;_this90[_c]=null;_this90[_d]=null;_this90[_e]=null;_this90[_f]=function(event){var data=event.data;if(data&&data.type===ThreeDOMMessageType.MODEL_CHANGE){var serialized=data.model;var currentKernel=_this90[$modelKernel];if(currentKernel!=null){currentKernel.deactivate();}else if(serialized==null){return;}if(serialized!=null){_this90[$modelKernel]=new ModelKernel(data.port,serialized);}else{_this90[$modelKernel]=null;}_this90.dispatchEvent(new CustomEvent('scene-graph-ready',{detail:{url:serialized?serialized.modelUri:null}}));}};_this90[_g]=function(_event){_this90[$needsRender]();};return _this90;}_createClass(SceneGraphModelViewerElement,[{key:\"connectedCallback\",value:function connectedCallback(){_get(_getPrototypeOf(SceneGraphModelViewerElement.prototype),\"connectedCallback\",this).call(this);var _MessageChannel=new MessageChannel(),port1=_MessageChannel.port1,port2=_MessageChannel.port2;port1.start();port2.start();this[$mainPort]=port1;this[$threePort]=port2;this[$mainPort].onmessage=this[$onModelChange];}},{key:\"disconnectedCallback\",value:function disconnectedCallback(){_get(_getPrototypeOf(SceneGraphModelViewerElement.prototype),\"disconnectedCallback\",this).call(this);this[$mainPort].close();this[$threePort].close();this[$mainPort]=null;this[$threePort]=null;if(this[$manipulator]!=null){this[$manipulator].dispose();}if(this[$modelKernel]!=null){this[$modelKernel].deactivate();}}},{key:\"updated\",value:function updated(changedProperties){_get(_getPrototypeOf(SceneGraphModelViewerElement.prototype),\"updated\",this).call(this,changedProperties);if(changedProperties.has($modelGraft$1)){var oldModelGraft=changedProperties.get($modelGraft$1);if(oldModelGraft!=null){oldModelGraft.removeEventListener('mutation',this[$onModelGraftMutation]);}var modelGraft=this[$modelGraft$1];if(modelGraft!=null){modelGraft.addEventListener('mutation',this[$onModelGraftMutation]);}}}},{key:(_h=$modelGraft$1,_a=$currentGLTF$1,_b=$mainPort,_c=$threePort,_d=$manipulator,_e=$modelKernel,$onModelLoad),value:function value(){_get(_getPrototypeOf(SceneGraphModelViewerElement.prototype),$onModelLoad,this).call(this);this[$updateThreeSide]();}},{key:$updateThreeSide,value:function value(){var scene=this[$scene];var model=scene.model;var currentGLTF=model.currentGLTF;var modelGraft=null;var manipulator=null;if(currentGLTF!=null){var correlatedSceneGraph=currentGLTF.correlatedSceneGraph;var currentModelGraft=this[$modelGraft$1];var currentManipulator=this[$manipulator];if(correlatedSceneGraph!=null){if(currentManipulator!=null){currentManipulator.dispose();}if(currentModelGraft!=null&&currentGLTF===this[$currentGLTF$1]){return;}modelGraft=new ModelGraft(model.url||'',correlatedSceneGraph);var channel=null;if(modelGraft!=null&&modelGraft.model!=null){channel=new MessageChannel();manipulator=new ModelGraftManipulator(modelGraft,channel.port1);this[$threePort].postMessage({type:ThreeDOMMessageType.MODEL_CHANGE,model:modelGraft.model.toJSON(),port:channel.port2},[channel.port2]);}else{this[$threePort].postMessage({type:ThreeDOMMessageType.MODEL_CHANGE,model:null,port:null});}}}this[$modelGraft$1]=modelGraft;this[$manipulator]=manipulator;this[$currentGLTF$1]=currentGLTF;}},{key:\"exportScene\",value:function(){var _exportScene=_asyncToGenerator(regeneratorRuntime.mark(function _callee47(options){var model;return regeneratorRuntime.wrap(function _callee47$(_context48){while(1){switch(_context48.prev=_context48.next){case 0:model=this[$scene].model;return _context48.abrupt(\"return\",new Promise(function(){var _ref11=_asyncToGenerator(regeneratorRuntime.mark(function _callee46(resolve,reject){var opts,shadow,visible,exporter;return regeneratorRuntime.wrap(function _callee46$(_context47){while(1){switch(_context47.prev=_context47.next){case 0:if(!(model==null)){_context47.next=2;break;}return _context47.abrupt(\"return\",reject('Model missing or not yet loaded'));case 2:opts={binary:true,onlyVisible:true,maxTextureSize:Infinity,forcePowerOfTwoTextures:false,includeCustomExtensions:false,embedImages:true};Object.assign(opts,options);opts.animations=model.animations;opts.truncateDrawRange=true;shadow=model[$shadow];visible=false;if(shadow!=null){visible=shadow.visible;shadow.visible=false;}exporter=new GLTFExporter();exporter.parse(model.modelContainer,function(gltf){return resolve(new Blob([opts.binary?gltf:JSON.stringify(gltf)],{type:opts.binary?'application/octet-stream':'application/json'}));},opts);if(shadow!=null){shadow.visible=visible;}case 12:case\"end\":return _context47.stop();}}},_callee46);}));return function(_x51,_x52){return _ref11.apply(this,arguments);};}()));case 2:case\"end\":return _context48.stop();}}},_callee47,this);}));function exportScene(_x50){return _exportScene.apply(this,arguments);}return exportScene;}()},{key:\"model\",get:function get(){var kernel=this[$modelKernel];return kernel?kernel.model:undefined;}}]);return SceneGraphModelViewerElement;}(ModelViewerElement);_f=$onModelChange,_g=$onModelGraftMutation;__decorate$6([property({type:Object})],SceneGraphModelViewerElement.prototype,_h,void 0);return SceneGraphModelViewerElement;};var __decorate$7=undefined&&undefined.__decorate||function(decorators,target,key,desc){var c=arguments.length,r=c<3?target:desc===null?desc=Object.getOwnPropertyDescriptor(target,key):desc,d;if((typeof Reflect===\"undefined\"?\"undefined\":_typeof(Reflect))===\"object\"&&typeof undefined===\"function\")r=undefined(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--){if(d=decorators[i])r=(c<3?d(r):c>3?d(target,key,r):d(target,key))||r;}return c>3&&r&&Object.defineProperty(target,key,r),r;};var DEFAULT_ROTATION_SPEED=Math.PI/32;var AUTO_ROTATE_DELAY_DEFAULT=3000;var rotationRateIntrinsics={basis:[degreesToRadians(numberNode(DEFAULT_ROTATION_SPEED,'rad'))],keywords:{auto:[null]}};var $autoRotateStartTime=Symbol('autoRotateStartTime');var $radiansPerSecond=Symbol('radiansPerSecond');var $syncRotationRate=Symbol('syncRotationRate');var $cameraChangeHandler=Symbol('cameraChangeHandler');var $onCameraChange=Symbol('onCameraChange');var StagingMixin=function StagingMixin(ModelViewerElement){var _a,_b,_c;var StagingModelViewerElement=function(_ModelViewerElement8){_inherits(StagingModelViewerElement,_ModelViewerElement8);var _super51=_createSuper(StagingModelViewerElement);function StagingModelViewerElement(){var _this91;_classCallCheck(this,StagingModelViewerElement);_this91=_super51.apply(this,arguments);_this91.autoRotate=false;_this91.autoRotateDelay=AUTO_ROTATE_DELAY_DEFAULT;_this91.rotationPerSecond='auto';_this91[_a]=performance.now();_this91[_b]=0;_this91[_c]=function(event){return _this91[$onCameraChange](event);};return _this91;}_createClass(StagingModelViewerElement,[{key:\"connectedCallback\",value:function connectedCallback(){_get(_getPrototypeOf(StagingModelViewerElement.prototype),\"connectedCallback\",this).call(this);this.addEventListener('camera-change',this[$cameraChangeHandler]);this[$autoRotateStartTime]=performance.now();}},{key:\"disconnectedCallback\",value:function disconnectedCallback(){_get(_getPrototypeOf(StagingModelViewerElement.prototype),\"disconnectedCallback\",this).call(this);this.removeEventListener('camera-change',this[$cameraChangeHandler]);this[$autoRotateStartTime]=performance.now();}},{key:\"updated\",value:function updated(changedProperties){_get(_getPrototypeOf(StagingModelViewerElement.prototype),\"updated\",this).call(this,changedProperties);if(changedProperties.has('autoRotate')){this[$autoRotateStartTime]=performance.now();}}},{key:(_a=$autoRotateStartTime,_b=$radiansPerSecond,_c=$cameraChangeHandler,$syncRotationRate),value:function value(style){this[$radiansPerSecond]=style[0];}},{key:$tick$1,value:function value(time,delta){_get(_getPrototypeOf(StagingModelViewerElement.prototype),$tick$1,this).call(this,time,delta);if(!this.autoRotate||!this[$hasTransitioned]()||this[$renderer].isPresenting){return;}var rotationDelta=Math.min(delta,time-this[$autoRotateStartTime]-this.autoRotateDelay);if(rotationDelta>0){this[$scene].yaw=this.turntableRotation+this[$radiansPerSecond]*rotationDelta*0.001;}}},{key:$onCameraChange,value:function value(event){if(!this.autoRotate){return;}if(event.detail.source==='user-interaction'){this[$autoRotateStartTime]=performance.now();}}},{key:\"resetTurntableRotation\",value:function resetTurntableRotation(){var theta=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;this[$scene].yaw=theta;}},{key:\"turntableRotation\",get:function get(){return this[$scene].yaw;}}]);return StagingModelViewerElement;}(ModelViewerElement);__decorate$7([property({type:Boolean,attribute:'auto-rotate'})],StagingModelViewerElement.prototype,\"autoRotate\",void 0);__decorate$7([property({type:Number,attribute:'auto-rotate-delay'})],StagingModelViewerElement.prototype,\"autoRotateDelay\",void 0);__decorate$7([style({intrinsics:rotationRateIntrinsics,updateHandler:$syncRotationRate}),property({type:String,attribute:'rotation-per-second'})],StagingModelViewerElement.prototype,\"rotationPerSecond\",void 0);return StagingModelViewerElement;};var FocusVisiblePolyfillMixin=function FocusVisiblePolyfillMixin(SuperClass){var _a;var coordinateWithPolyfill=function coordinateWithPolyfill(instance){if(instance.shadowRoot==null||instance.hasAttribute('data-js-focus-visible')){return function(){};}if(self.applyFocusVisiblePolyfill){self.applyFocusVisiblePolyfill(instance.shadowRoot);}else{var coordinationHandler=function coordinationHandler(){self.applyFocusVisiblePolyfill(instance.shadowRoot);};self.addEventListener('focus-visible-polyfill-ready',coordinationHandler,{once:true});return function(){self.removeEventListener('focus-visible-polyfill-ready',coordinationHandler);};}return function(){};};var $endPolyfillCoordination=Symbol('endPolyfillCoordination');var FocusVisibleCoordinator=function(_SuperClass){_inherits(FocusVisibleCoordinator,_SuperClass);var _super52=_createSuper(FocusVisibleCoordinator);function FocusVisibleCoordinator(){var _this92;_classCallCheck(this,FocusVisibleCoordinator);_this92=_super52.apply(this,arguments);_this92[_a]=null;return _this92;}_createClass(FocusVisibleCoordinator,[{key:\"connectedCallback\",value:function connectedCallback(){_get(_getPrototypeOf(FocusVisibleCoordinator.prototype),\"connectedCallback\",this)&&_get(_getPrototypeOf(FocusVisibleCoordinator.prototype),\"connectedCallback\",this).call(this);if(this[$endPolyfillCoordination]==null){this[$endPolyfillCoordination]=coordinateWithPolyfill(this);}}},{key:\"disconnectedCallback\",value:function disconnectedCallback(){_get(_getPrototypeOf(FocusVisibleCoordinator.prototype),\"disconnectedCallback\",this)&&_get(_getPrototypeOf(FocusVisibleCoordinator.prototype),\"disconnectedCallback\",this).call(this);if(this[$endPolyfillCoordination]!=null){this[$endPolyfillCoordination]();this[$endPolyfillCoordination]=null;}}}]);return FocusVisibleCoordinator;}(SuperClass);_a=$endPolyfillCoordination;return FocusVisibleCoordinator;};var ModelViewerElement=AnnotationMixin(SceneGraphMixin(StagingMixin(EnvironmentMixin(ControlsMixin(ARMixin(LoadingMixin(AnimationMixin(FocusVisiblePolyfillMixin(ModelViewerElementBase)))))))));customElements.define('model-viewer',ModelViewerElement);exports.ModelViewerElement=ModelViewerElement;Object.defineProperty(exports,'__esModule',{value:true});});"}
}});
;require.config({"config": {
        "jsbuild":{"MGS_ThemeSettings/js/slick.min.js":"/*\n     _ _      _       _\n ___| (_) ___| | __  (_)___\n/ __| | |/ __| |/ /  | / __|\n\\__ \\ | | (__|   < _ | \\__ \\\n|___/_|_|\\___|_|\\_(_)/ |___/\n                   |__/\n\n Version: 1.6.0\n  Author: Ken Wheeler\n Website: http://kenwheeler.github.io\n    Docs: http://kenwheeler.github.io/slick\n    Repo: http://github.com/kenwheeler/slick\n  Issues: http://github.com/kenwheeler/slick/issues\n\n */\n!function(a){\"use strict\";\"function\"==typeof define&&define.amd?define([\"jquery\"],a):\"undefined\"!=typeof exports?module.exports=a(require(\"jquery\")):a(jQuery)}(function(a){\"use strict\";var b=window.Slick||{};b=function(){function c(c,d){var f,e=this;e.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:a(c),appendDots:a(c),arrows:!0,asNavFor:null,prevArrow:'<button type=\"button\" data-role=\"none\" class=\"slick-prev\" aria-label=\"Previous\" tabindex=\"0\" role=\"button\">Previous</button>',nextArrow:'<button type=\"button\" data-role=\"none\" class=\"slick-next\" aria-label=\"Next\" tabindex=\"0\" role=\"button\">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:\"50px\",cssEase:\"ease\",customPaging:function(b,c){return a('<button type=\"button\" data-role=\"none\" role=\"button\" tabindex=\"0\" />').text(c+1)},dots:!1,dotsClass:\"slick-dots\",draggable:!0,easing:\"linear\",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:\"ondemand\",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:\"window\",responsive:null,rows:1,rtl:!1,slide:\"\",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},e.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},a.extend(e,e.initials),e.activeBreakpoint=null,e.animType=null,e.animProp=null,e.breakpoints=[],e.breakpointSettings=[],e.cssTransitions=!1,e.focussed=!1,e.interrupted=!1,e.hidden=\"hidden\",e.paused=!0,e.positionProp=null,e.respondTo=null,e.rowCount=1,e.shouldClick=!0,e.$slider=a(c),e.$slidesCache=null,e.transformType=null,e.transitionType=null,e.visibilityChange=\"visibilitychange\",e.windowWidth=0,e.windowTimer=null,f=a(c).data(\"slick\")||{},e.options=a.extend({},e.defaults,d,f),e.currentSlide=e.options.initialSlide,e.originalSettings=e.options,\"undefined\"!=typeof document.mozHidden?(e.hidden=\"mozHidden\",e.visibilityChange=\"mozvisibilitychange\"):\"undefined\"!=typeof document.webkitHidden&&(e.hidden=\"webkitHidden\",e.visibilityChange=\"webkitvisibilitychange\"),e.autoPlay=a.proxy(e.autoPlay,e),e.autoPlayClear=a.proxy(e.autoPlayClear,e),e.autoPlayIterator=a.proxy(e.autoPlayIterator,e),e.changeSlide=a.proxy(e.changeSlide,e),e.clickHandler=a.proxy(e.clickHandler,e),e.selectHandler=a.proxy(e.selectHandler,e),e.setPosition=a.proxy(e.setPosition,e),e.swipeHandler=a.proxy(e.swipeHandler,e),e.dragHandler=a.proxy(e.dragHandler,e),e.keyHandler=a.proxy(e.keyHandler,e),e.instanceUid=b++,e.htmlExpr=/^(?:\\s*(<[\\w\\W]+>)[^>]*)$/,e.registerBreakpoints(),e.init(!0)}var b=0;return c}(),b.prototype.activateADA=function(){var a=this;a.$slideTrack.find(\".slick-active\").attr({\"aria-hidden\":\"false\"}).find(\"a, input, button, select\").attr({tabindex:\"0\"})},b.prototype.addSlide=b.prototype.slickAdd=function(b,c,d){var e=this;if(\"boolean\"==typeof c)d=c,c=null;else if(0>c||c>=e.slideCount)return!1;e.unload(),\"number\"==typeof c?0===c&&0===e.$slides.length?a(b).appendTo(e.$slideTrack):d?a(b).insertBefore(e.$slides.eq(c)):a(b).insertAfter(e.$slides.eq(c)):d===!0?a(b).prependTo(e.$slideTrack):a(b).appendTo(e.$slideTrack),e.$slides=e.$slideTrack.children(this.options.slide),e.$slideTrack.children(this.options.slide).detach(),e.$slideTrack.append(e.$slides),e.$slides.each(function(b,c){a(c).attr(\"data-slick-index\",b)}),e.$slidesCache=e.$slides,e.reinit()},b.prototype.animateHeight=function(){var a=this;if(1===a.options.slidesToShow&&a.options.adaptiveHeight===!0&&a.options.vertical===!1){var b=a.$slides.eq(a.currentSlide).outerHeight(!0);a.$list.animate({height:b},a.options.speed)}},b.prototype.animateSlide=function(b,c){var d={},e=this;e.animateHeight(),e.options.rtl===!0&&e.options.vertical===!1&&(b=-b),e.transformsEnabled===!1?e.options.vertical===!1?e.$slideTrack.animate({left:b},e.options.speed,e.options.easing,c):e.$slideTrack.animate({top:b},e.options.speed,e.options.easing,c):e.cssTransitions===!1?(e.options.rtl===!0&&(e.currentLeft=-e.currentLeft),a({animStart:e.currentLeft}).animate({animStart:b},{duration:e.options.speed,easing:e.options.easing,step:function(a){a=Math.ceil(a),e.options.vertical===!1?(d[e.animType]=\"translate(\"+a+\"px, 0px)\",e.$slideTrack.css(d)):(d[e.animType]=\"translate(0px,\"+a+\"px)\",e.$slideTrack.css(d))},complete:function(){c&&c.call()}})):(e.applyTransition(),b=Math.ceil(b),e.options.vertical===!1?d[e.animType]=\"translate3d(\"+b+\"px, 0px, 0px)\":d[e.animType]=\"translate3d(0px,\"+b+\"px, 0px)\",e.$slideTrack.css(d),c&&setTimeout(function(){e.disableTransition(),c.call()},e.options.speed))},b.prototype.getNavTarget=function(){var b=this,c=b.options.asNavFor;return c&&null!==c&&(c=a(c).not(b.$slider)),c},b.prototype.asNavFor=function(b){var c=this,d=c.getNavTarget();null!==d&&\"object\"==typeof d&&d.each(function(){var c=a(this).slick(\"getSlick\");c.unslicked||c.slideHandler(b,!0)})},b.prototype.applyTransition=function(a){var b=this,c={};b.options.fade===!1?c[b.transitionType]=b.transformType+\" \"+b.options.speed+\"ms \"+b.options.cssEase:c[b.transitionType]=\"opacity \"+b.options.speed+\"ms \"+b.options.cssEase,b.options.fade===!1?b.$slideTrack.css(c):b.$slides.eq(a).css(c)},b.prototype.autoPlay=function(){var a=this;a.autoPlayClear(),a.slideCount>a.options.slidesToShow&&(a.autoPlayTimer=setInterval(a.autoPlayIterator,a.options.autoplaySpeed))},b.prototype.autoPlayClear=function(){var a=this;a.autoPlayTimer&&clearInterval(a.autoPlayTimer)},b.prototype.autoPlayIterator=function(){var a=this,b=a.currentSlide+a.options.slidesToScroll;a.paused||a.interrupted||a.focussed||(a.options.infinite===!1&&(1===a.direction&&a.currentSlide+1===a.slideCount-1?a.direction=0:0===a.direction&&(b=a.currentSlide-a.options.slidesToScroll,a.currentSlide-1===0&&(a.direction=1))),a.slideHandler(b))},b.prototype.buildArrows=function(){var b=this;b.options.arrows===!0&&(b.$prevArrow=a(b.options.prevArrow).addClass(\"slick-arrow\"),b.$nextArrow=a(b.options.nextArrow).addClass(\"slick-arrow\"),b.slideCount>b.options.slidesToShow?(b.$prevArrow.removeClass(\"slick-hidden\").removeAttr(\"aria-hidden tabindex\"),b.$nextArrow.removeClass(\"slick-hidden\").removeAttr(\"aria-hidden tabindex\"),b.htmlExpr.test(b.options.prevArrow)&&b.$prevArrow.prependTo(b.options.appendArrows),b.htmlExpr.test(b.options.nextArrow)&&b.$nextArrow.appendTo(b.options.appendArrows),b.options.infinite!==!0&&b.$prevArrow.addClass(\"slick-disabled\").attr(\"aria-disabled\",\"true\")):b.$prevArrow.add(b.$nextArrow).addClass(\"slick-hidden\").attr({\"aria-disabled\":\"true\",tabindex:\"-1\"}))},b.prototype.buildDots=function(){var c,d,b=this;if(b.options.dots===!0&&b.slideCount>b.options.slidesToShow){for(b.$slider.addClass(\"slick-dotted\"),d=a(\"<ul />\").addClass(b.options.dotsClass),c=0;c<=b.getDotCount();c+=1)d.append(a(\"<li />\").append(b.options.customPaging.call(this,b,c)));b.$dots=d.appendTo(b.options.appendDots),b.$dots.find(\"li\").first().addClass(\"slick-active\").attr(\"aria-hidden\",\"false\")}},b.prototype.buildOut=function(){var b=this;b.$slides=b.$slider.children(b.options.slide+\":not(.slick-cloned)\").addClass(\"slick-slide\"),b.slideCount=b.$slides.length,b.$slides.each(function(b,c){a(c).attr(\"data-slick-index\",b).data(\"originalStyling\",a(c).attr(\"style\")||\"\")}),b.$slider.addClass(\"slick-slider\"),b.$slideTrack=0===b.slideCount?a('<div class=\"slick-track\"/>').appendTo(b.$slider):b.$slides.wrapAll('<div class=\"slick-track\"/>').parent(),b.$list=b.$slideTrack.wrap('<div aria-live=\"polite\" class=\"slick-list\"/>').parent(),b.$slideTrack.css(\"opacity\",0),(b.options.centerMode===!0||b.options.swipeToSlide===!0)&&(b.options.slidesToScroll=1),a(\"img[data-lazy]\",b.$slider).not(\"[src]\").addClass(\"slick-loading\"),b.setupInfinite(),b.buildArrows(),b.buildDots(),b.updateDots(),b.setSlideClasses(\"number\"==typeof b.currentSlide?b.currentSlide:0),b.options.draggable===!0&&b.$list.addClass(\"draggable\")},b.prototype.buildRows=function(){var b,c,d,e,f,g,h,a=this;if(e=document.createDocumentFragment(),g=a.$slider.children(),a.options.rows>1){for(h=a.options.slidesPerRow*a.options.rows,f=Math.ceil(g.length/h),b=0;f>b;b++){var i=document.createElement(\"div\");for(c=0;c<a.options.rows;c++){var j=document.createElement(\"div\");for(d=0;d<a.options.slidesPerRow;d++){var k=b*h+(c*a.options.slidesPerRow+d);g.get(k)&&j.appendChild(g.get(k))}i.appendChild(j)}e.appendChild(i)}a.$slider.empty().append(e),a.$slider.children().children().children().css({width:100/a.options.slidesPerRow+\"%\",display:\"inline-block\"})}},b.prototype.checkResponsive=function(b,c){var e,f,g,d=this,h=!1,i=d.$slider.width(),j=window.innerWidth||a(window).width();if(\"window\"===d.respondTo?g=j:\"slider\"===d.respondTo?g=i:\"min\"===d.respondTo&&(g=Math.min(j,i)),d.options.responsive&&d.options.responsive.length&&null!==d.options.responsive){f=null;for(e in d.breakpoints)d.breakpoints.hasOwnProperty(e)&&(d.originalSettings.mobileFirst===!1?g<d.breakpoints[e]&&(f=d.breakpoints[e]):g>d.breakpoints[e]&&(f=d.breakpoints[e]));null!==f?null!==d.activeBreakpoint?(f!==d.activeBreakpoint||c)&&(d.activeBreakpoint=f,\"unslick\"===d.breakpointSettings[f]?d.unslick(f):(d.options=a.extend({},d.originalSettings,d.breakpointSettings[f]),b===!0&&(d.currentSlide=d.options.initialSlide),d.refresh(b)),h=f):(d.activeBreakpoint=f,\"unslick\"===d.breakpointSettings[f]?d.unslick(f):(d.options=a.extend({},d.originalSettings,d.breakpointSettings[f]),b===!0&&(d.currentSlide=d.options.initialSlide),d.refresh(b)),h=f):null!==d.activeBreakpoint&&(d.activeBreakpoint=null,d.options=d.originalSettings,b===!0&&(d.currentSlide=d.options.initialSlide),d.refresh(b),h=f),b||h===!1||d.$slider.trigger(\"breakpoint\",[d,h])}},b.prototype.changeSlide=function(b,c){var f,g,h,d=this,e=a(b.currentTarget);switch(e.is(\"a\")&&b.preventDefault(),e.is(\"li\")||(e=e.closest(\"li\")),h=d.slideCount%d.options.slidesToScroll!==0,f=h?0:(d.slideCount-d.currentSlide)%d.options.slidesToScroll,b.data.message){case\"previous\":g=0===f?d.options.slidesToScroll:d.options.slidesToShow-f,d.slideCount>d.options.slidesToShow&&d.slideHandler(d.currentSlide-g,!1,c);break;case\"next\":g=0===f?d.options.slidesToScroll:f,d.slideCount>d.options.slidesToShow&&d.slideHandler(d.currentSlide+g,!1,c);break;case\"index\":var i=0===b.data.index?0:b.data.index||e.index()*d.options.slidesToScroll;d.slideHandler(d.checkNavigable(i),!1,c),e.children().trigger(\"focus\");break;default:return}},b.prototype.checkNavigable=function(a){var c,d,b=this;if(c=b.getNavigableIndexes(),d=0,a>c[c.length-1])a=c[c.length-1];else for(var e in c){if(a<c[e]){a=d;break}d=c[e]}return a},b.prototype.cleanUpEvents=function(){var b=this;b.options.dots&&null!==b.$dots&&a(\"li\",b.$dots).off(\"click.slick\",b.changeSlide).off(\"mouseenter.slick\",a.proxy(b.interrupt,b,!0)).off(\"mouseleave.slick\",a.proxy(b.interrupt,b,!1)),b.$slider.off(\"focus.slick blur.slick\"),b.options.arrows===!0&&b.slideCount>b.options.slidesToShow&&(b.$prevArrow&&b.$prevArrow.off(\"click.slick\",b.changeSlide),b.$nextArrow&&b.$nextArrow.off(\"click.slick\",b.changeSlide)),b.$list.off(\"touchstart.slick mousedown.slick\",b.swipeHandler),b.$list.off(\"touchmove.slick mousemove.slick\",b.swipeHandler),b.$list.off(\"touchend.slick mouseup.slick\",b.swipeHandler),b.$list.off(\"touchcancel.slick mouseleave.slick\",b.swipeHandler),b.$list.off(\"click.slick\",b.clickHandler),a(document).off(b.visibilityChange,b.visibility),b.cleanUpSlideEvents(),b.options.accessibility===!0&&b.$list.off(\"keydown.slick\",b.keyHandler),b.options.focusOnSelect===!0&&a(b.$slideTrack).children().off(\"click.slick\",b.selectHandler),a(window).off(\"orientationchange.slick.slick-\"+b.instanceUid,b.orientationChange),a(window).off(\"resize.slick.slick-\"+b.instanceUid,b.resize),a(\"[draggable!=true]\",b.$slideTrack).off(\"dragstart\",b.preventDefault),a(window).off(\"load.slick.slick-\"+b.instanceUid,b.setPosition),a(document).off(\"ready.slick.slick-\"+b.instanceUid,b.setPosition)},b.prototype.cleanUpSlideEvents=function(){var b=this;b.$list.off(\"mouseenter.slick\",a.proxy(b.interrupt,b,!0)),b.$list.off(\"mouseleave.slick\",a.proxy(b.interrupt,b,!1))},b.prototype.cleanUpRows=function(){var b,a=this;a.options.rows>1&&(b=a.$slides.children().children(),b.removeAttr(\"style\"),a.$slider.empty().append(b))},b.prototype.clickHandler=function(a){var b=this;b.shouldClick===!1&&(a.stopImmediatePropagation(),a.stopPropagation(),a.preventDefault())},b.prototype.destroy=function(b){var c=this;c.autoPlayClear(),c.touchObject={},c.cleanUpEvents(),a(\".slick-cloned\",c.$slider).detach(),c.$dots&&c.$dots.remove(),c.$prevArrow&&c.$prevArrow.length&&(c.$prevArrow.removeClass(\"slick-disabled slick-arrow slick-hidden\").removeAttr(\"aria-hidden aria-disabled tabindex\").css(\"display\",\"\"),c.htmlExpr.test(c.options.prevArrow)&&c.$prevArrow.remove()),c.$nextArrow&&c.$nextArrow.length&&(c.$nextArrow.removeClass(\"slick-disabled slick-arrow slick-hidden\").removeAttr(\"aria-hidden aria-disabled tabindex\").css(\"display\",\"\"),c.htmlExpr.test(c.options.nextArrow)&&c.$nextArrow.remove()),c.$slides&&(c.$slides.removeClass(\"slick-slide slick-active slick-center slick-visible slick-current\").removeAttr(\"aria-hidden\").removeAttr(\"data-slick-index\").each(function(){a(this).attr(\"style\",a(this).data(\"originalStyling\"))}),c.$slideTrack.children(this.options.slide).detach(),c.$slideTrack.detach(),c.$list.detach(),c.$slider.append(c.$slides)),c.cleanUpRows(),c.$slider.removeClass(\"slick-slider\"),c.$slider.removeClass(\"slick-initialized\"),c.$slider.removeClass(\"slick-dotted\"),c.unslicked=!0,b||c.$slider.trigger(\"destroy\",[c])},b.prototype.disableTransition=function(a){var b=this,c={};c[b.transitionType]=\"\",b.options.fade===!1?b.$slideTrack.css(c):b.$slides.eq(a).css(c)},b.prototype.fadeSlide=function(a,b){var c=this;c.cssTransitions===!1?(c.$slides.eq(a).css({zIndex:c.options.zIndex}),c.$slides.eq(a).animate({opacity:1},c.options.speed,c.options.easing,b)):(c.applyTransition(a),c.$slides.eq(a).css({opacity:1,zIndex:c.options.zIndex}),b&&setTimeout(function(){c.disableTransition(a),b.call()},c.options.speed))},b.prototype.fadeSlideOut=function(a){var b=this;b.cssTransitions===!1?b.$slides.eq(a).animate({opacity:0,zIndex:b.options.zIndex-2},b.options.speed,b.options.easing):(b.applyTransition(a),b.$slides.eq(a).css({opacity:0,zIndex:b.options.zIndex-2}))},b.prototype.filterSlides=b.prototype.slickFilter=function(a){var b=this;null!==a&&(b.$slidesCache=b.$slides,b.unload(),b.$slideTrack.children(this.options.slide).detach(),b.$slidesCache.filter(a).appendTo(b.$slideTrack),b.reinit())},b.prototype.focusHandler=function(){var b=this;b.$slider.off(\"focus.slick blur.slick\").on(\"focus.slick blur.slick\",\"*:not(.slick-arrow)\",function(c){c.stopImmediatePropagation();var d=a(this);setTimeout(function(){b.options.pauseOnFocus&&(b.focussed=d.is(\":focus\"),b.autoPlay())},0)})},b.prototype.getCurrent=b.prototype.slickCurrentSlide=function(){var a=this;return a.currentSlide},b.prototype.getDotCount=function(){var a=this,b=0,c=0,d=0;if(a.options.infinite===!0)for(;b<a.slideCount;)++d,b=c+a.options.slidesToScroll,c+=a.options.slidesToScroll<=a.options.slidesToShow?a.options.slidesToScroll:a.options.slidesToShow;else if(a.options.centerMode===!0)d=a.slideCount;else if(a.options.asNavFor)for(;b<a.slideCount;)++d,b=c+a.options.slidesToScroll,c+=a.options.slidesToScroll<=a.options.slidesToShow?a.options.slidesToScroll:a.options.slidesToShow;else d=1+Math.ceil((a.slideCount-a.options.slidesToShow)/a.options.slidesToScroll);return d-1},b.prototype.getLeft=function(a){var c,d,f,b=this,e=0;return b.slideOffset=0,d=b.$slides.first().outerHeight(!0),b.options.infinite===!0?(b.slideCount>b.options.slidesToShow&&(b.slideOffset=b.slideWidth*b.options.slidesToShow*-1,e=d*b.options.slidesToShow*-1),b.slideCount%b.options.slidesToScroll!==0&&a+b.options.slidesToScroll>b.slideCount&&b.slideCount>b.options.slidesToShow&&(a>b.slideCount?(b.slideOffset=(b.options.slidesToShow-(a-b.slideCount))*b.slideWidth*-1,e=(b.options.slidesToShow-(a-b.slideCount))*d*-1):(b.slideOffset=b.slideCount%b.options.slidesToScroll*b.slideWidth*-1,e=b.slideCount%b.options.slidesToScroll*d*-1))):a+b.options.slidesToShow>b.slideCount&&(b.slideOffset=(a+b.options.slidesToShow-b.slideCount)*b.slideWidth,e=(a+b.options.slidesToShow-b.slideCount)*d),b.slideCount<=b.options.slidesToShow&&(b.slideOffset=0,e=0),b.options.centerMode===!0&&b.options.infinite===!0?b.slideOffset+=b.slideWidth*Math.floor(b.options.slidesToShow/2)-b.slideWidth:b.options.centerMode===!0&&(b.slideOffset=0,b.slideOffset+=b.slideWidth*Math.floor(b.options.slidesToShow/2)),c=b.options.vertical===!1?a*b.slideWidth*-1+b.slideOffset:a*d*-1+e,b.options.variableWidth===!0&&(f=b.slideCount<=b.options.slidesToShow||b.options.infinite===!1?b.$slideTrack.children(\".slick-slide\").eq(a):b.$slideTrack.children(\".slick-slide\").eq(a+b.options.slidesToShow),c=b.options.rtl===!0?f[0]?-1*(b.$slideTrack.width()-f[0].offsetLeft-f.width()):0:f[0]?-1*f[0].offsetLeft:0,b.options.centerMode===!0&&(f=b.slideCount<=b.options.slidesToShow||b.options.infinite===!1?b.$slideTrack.children(\".slick-slide\").eq(a):b.$slideTrack.children(\".slick-slide\").eq(a+b.options.slidesToShow+1),c=b.options.rtl===!0?f[0]?-1*(b.$slideTrack.width()-f[0].offsetLeft-f.width()):0:f[0]?-1*f[0].offsetLeft:0,c+=(b.$list.width()-f.outerWidth())/2)),c},b.prototype.getOption=b.prototype.slickGetOption=function(a){var b=this;return b.options[a]},b.prototype.getNavigableIndexes=function(){var e,a=this,b=0,c=0,d=[];for(a.options.infinite===!1?e=a.slideCount:(b=-1*a.options.slidesToScroll,c=-1*a.options.slidesToScroll,e=2*a.slideCount);e>b;)d.push(b),b=c+a.options.slidesToScroll,c+=a.options.slidesToScroll<=a.options.slidesToShow?a.options.slidesToScroll:a.options.slidesToShow;return d},b.prototype.getSlick=function(){return this},b.prototype.getSlideCount=function(){var c,d,e,b=this;return e=b.options.centerMode===!0?b.slideWidth*Math.floor(b.options.slidesToShow/2):0,b.options.swipeToSlide===!0?(b.$slideTrack.find(\".slick-slide\").each(function(c,f){return f.offsetLeft-e+a(f).outerWidth()/2>-1*b.swipeLeft?(d=f,!1):void 0}),c=Math.abs(a(d).attr(\"data-slick-index\")-b.currentSlide)||1):b.options.slidesToScroll},b.prototype.goTo=b.prototype.slickGoTo=function(a,b){var c=this;c.changeSlide({data:{message:\"index\",index:parseInt(a)}},b)},b.prototype.init=function(b){var c=this;a(c.$slider).hasClass(\"slick-initialized\")||(a(c.$slider).addClass(\"slick-initialized\"),c.buildRows(),c.buildOut(),c.setProps(),c.startLoad(),c.loadSlider(),c.initializeEvents(),c.updateArrows(),c.updateDots(),c.checkResponsive(!0),c.focusHandler()),b&&c.$slider.trigger(\"init\",[c]),c.options.accessibility===!0&&c.initADA(),c.options.autoplay&&(c.paused=!1,c.autoPlay())},b.prototype.initADA=function(){var b=this;b.$slides.add(b.$slideTrack.find(\".slick-cloned\")).attr({\"aria-hidden\":\"true\",tabindex:\"-1\"}).find(\"a, input, button, select\").attr({tabindex:\"-1\"}),b.$slideTrack.attr(\"role\",\"listbox\"),b.$slides.not(b.$slideTrack.find(\".slick-cloned\")).each(function(c){a(this).attr({role:\"option\",\"aria-describedby\":\"slick-slide\"+b.instanceUid+c})}),null!==b.$dots&&b.$dots.attr(\"role\",\"tablist\").find(\"li\").each(function(c){a(this).attr({role:\"presentation\",\"aria-selected\":\"false\",\"aria-controls\":\"navigation\"+b.instanceUid+c,id:\"slick-slide\"+b.instanceUid+c})}).first().attr(\"aria-selected\",\"true\").end().find(\"button\").attr(\"role\",\"button\").end().closest(\"div\").attr(\"role\",\"toolbar\"),b.activateADA()},b.prototype.initArrowEvents=function(){var a=this;a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.off(\"click.slick\").on(\"click.slick\",{message:\"previous\"},a.changeSlide),a.$nextArrow.off(\"click.slick\").on(\"click.slick\",{message:\"next\"},a.changeSlide))},b.prototype.initDotEvents=function(){var b=this;b.options.dots===!0&&b.slideCount>b.options.slidesToShow&&a(\"li\",b.$dots).on(\"click.slick\",{message:\"index\"},b.changeSlide),b.options.dots===!0&&b.options.pauseOnDotsHover===!0&&a(\"li\",b.$dots).on(\"mouseenter.slick\",a.proxy(b.interrupt,b,!0)).on(\"mouseleave.slick\",a.proxy(b.interrupt,b,!1))},b.prototype.initSlideEvents=function(){var b=this;b.options.pauseOnHover&&(b.$list.on(\"mouseenter.slick\",a.proxy(b.interrupt,b,!0)),b.$list.on(\"mouseleave.slick\",a.proxy(b.interrupt,b,!1)))},b.prototype.initializeEvents=function(){var b=this;b.initArrowEvents(),b.initDotEvents(),b.initSlideEvents(),b.$list.on(\"touchstart.slick mousedown.slick\",{action:\"start\"},b.swipeHandler),b.$list.on(\"touchmove.slick mousemove.slick\",{action:\"move\"},b.swipeHandler),b.$list.on(\"touchend.slick mouseup.slick\",{action:\"end\"},b.swipeHandler),b.$list.on(\"touchcancel.slick mouseleave.slick\",{action:\"end\"},b.swipeHandler),b.$list.on(\"click.slick\",b.clickHandler),a(document).on(b.visibilityChange,a.proxy(b.visibility,b)),b.options.accessibility===!0&&b.$list.on(\"keydown.slick\",b.keyHandler),b.options.focusOnSelect===!0&&a(b.$slideTrack).children().on(\"click.slick\",b.selectHandler),a(window).on(\"orientationchange.slick.slick-\"+b.instanceUid,a.proxy(b.orientationChange,b)),a(window).on(\"resize.slick.slick-\"+b.instanceUid,a.proxy(b.resize,b)),a(\"[draggable!=true]\",b.$slideTrack).on(\"dragstart\",b.preventDefault),a(window).on(\"load.slick.slick-\"+b.instanceUid,b.setPosition),a(document).on(\"ready.slick.slick-\"+b.instanceUid,b.setPosition)},b.prototype.initUI=function(){var a=this;a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.show(),a.$nextArrow.show()),a.options.dots===!0&&a.slideCount>a.options.slidesToShow&&a.$dots.show()},b.prototype.keyHandler=function(a){var b=this;a.target.tagName.match(\"TEXTAREA|INPUT|SELECT\")||(37===a.keyCode&&b.options.accessibility===!0?b.changeSlide({data:{message:b.options.rtl===!0?\"next\":\"previous\"}}):39===a.keyCode&&b.options.accessibility===!0&&b.changeSlide({data:{message:b.options.rtl===!0?\"previous\":\"next\"}}))},b.prototype.lazyLoad=function(){function g(c){a(\"img[data-lazy]\",c).each(function(){var c=a(this),d=a(this).attr(\"data-lazy\"),e=document.createElement(\"img\");e.onload=function(){c.animate({opacity:0},100,function(){c.attr(\"src\",d).animate({opacity:1},200,function(){c.removeAttr(\"data-lazy\").removeClass(\"slick-loading\")}),b.$slider.trigger(\"lazyLoaded\",[b,c,d])})},e.onerror=function(){c.removeAttr(\"data-lazy\").removeClass(\"slick-loading\").addClass(\"slick-lazyload-error\"),b.$slider.trigger(\"lazyLoadError\",[b,c,d])},e.src=d})}var c,d,e,f,b=this;b.options.centerMode===!0?b.options.infinite===!0?(e=b.currentSlide+(b.options.slidesToShow/2+1),f=e+b.options.slidesToShow+2):(e=Math.max(0,b.currentSlide-(b.options.slidesToShow/2+1)),f=2+(b.options.slidesToShow/2+1)+b.currentSlide):(e=b.options.infinite?b.options.slidesToShow+b.currentSlide:b.currentSlide,f=Math.ceil(e+b.options.slidesToShow),b.options.fade===!0&&(e>0&&e--,f<=b.slideCount&&f++)),c=b.$slider.find(\".slick-slide\").slice(e,f),g(c),b.slideCount<=b.options.slidesToShow?(d=b.$slider.find(\".slick-slide\"),g(d)):b.currentSlide>=b.slideCount-b.options.slidesToShow?(d=b.$slider.find(\".slick-cloned\").slice(0,b.options.slidesToShow),g(d)):0===b.currentSlide&&(d=b.$slider.find(\".slick-cloned\").slice(-1*b.options.slidesToShow),g(d))},b.prototype.loadSlider=function(){var a=this;a.setPosition(),a.$slideTrack.css({opacity:1}),a.$slider.removeClass(\"slick-loading\"),a.initUI(),\"progressive\"===a.options.lazyLoad&&a.progressiveLazyLoad()},b.prototype.next=b.prototype.slickNext=function(){var a=this;a.changeSlide({data:{message:\"next\"}})},b.prototype.orientationChange=function(){var a=this;a.checkResponsive(),a.setPosition()},b.prototype.pause=b.prototype.slickPause=function(){var a=this;a.autoPlayClear(),a.paused=!0},b.prototype.play=b.prototype.slickPlay=function(){var a=this;a.autoPlay(),a.options.autoplay=!0,a.paused=!1,a.focussed=!1,a.interrupted=!1},b.prototype.postSlide=function(a){var b=this;b.unslicked||(b.$slider.trigger(\"afterChange\",[b,a]),b.animating=!1,b.setPosition(),b.swipeLeft=null,b.options.autoplay&&b.autoPlay(),b.options.accessibility===!0&&b.initADA())},b.prototype.prev=b.prototype.slickPrev=function(){var a=this;a.changeSlide({data:{message:\"previous\"}})},b.prototype.preventDefault=function(a){a.preventDefault()},b.prototype.progressiveLazyLoad=function(b){b=b||1;var e,f,g,c=this,d=a(\"img[data-lazy]\",c.$slider);d.length?(e=d.first(),f=e.attr(\"data-lazy\"),g=document.createElement(\"img\"),g.onload=function(){e.attr(\"src\",f).removeAttr(\"data-lazy\").removeClass(\"slick-loading\"),c.options.adaptiveHeight===!0&&c.setPosition(),c.$slider.trigger(\"lazyLoaded\",[c,e,f]),c.progressiveLazyLoad()},g.onerror=function(){3>b?setTimeout(function(){c.progressiveLazyLoad(b+1)},500):(e.removeAttr(\"data-lazy\").removeClass(\"slick-loading\").addClass(\"slick-lazyload-error\"),c.$slider.trigger(\"lazyLoadError\",[c,e,f]),c.progressiveLazyLoad())},g.src=f):c.$slider.trigger(\"allImagesLoaded\",[c])},b.prototype.refresh=function(b){var d,e,c=this;e=c.slideCount-c.options.slidesToShow,!c.options.infinite&&c.currentSlide>e&&(c.currentSlide=e),c.slideCount<=c.options.slidesToShow&&(c.currentSlide=0),d=c.currentSlide,c.destroy(!0),a.extend(c,c.initials,{currentSlide:d}),c.init(),b||c.changeSlide({data:{message:\"index\",index:d}},!1)},b.prototype.registerBreakpoints=function(){var c,d,e,b=this,f=b.options.responsive||null;if(\"array\"===a.type(f)&&f.length){b.respondTo=b.options.respondTo||\"window\";for(c in f)if(e=b.breakpoints.length-1,d=f[c].breakpoint,f.hasOwnProperty(c)){for(;e>=0;)b.breakpoints[e]&&b.breakpoints[e]===d&&b.breakpoints.splice(e,1),e--;b.breakpoints.push(d),b.breakpointSettings[d]=f[c].settings}b.breakpoints.sort(function(a,c){return b.options.mobileFirst?a-c:c-a})}},b.prototype.reinit=function(){var b=this;b.$slides=b.$slideTrack.children(b.options.slide).addClass(\"slick-slide\"),b.slideCount=b.$slides.length,b.currentSlide>=b.slideCount&&0!==b.currentSlide&&(b.currentSlide=b.currentSlide-b.options.slidesToScroll),b.slideCount<=b.options.slidesToShow&&(b.currentSlide=0),b.registerBreakpoints(),b.setProps(),b.setupInfinite(),b.buildArrows(),b.updateArrows(),b.initArrowEvents(),b.buildDots(),b.updateDots(),b.initDotEvents(),b.cleanUpSlideEvents(),b.initSlideEvents(),b.checkResponsive(!1,!0),b.options.focusOnSelect===!0&&a(b.$slideTrack).children().on(\"click.slick\",b.selectHandler),b.setSlideClasses(\"number\"==typeof b.currentSlide?b.currentSlide:0),b.setPosition(),b.focusHandler(),b.paused=!b.options.autoplay,b.autoPlay(),b.$slider.trigger(\"reInit\",[b])},b.prototype.resize=function(){var b=this;a(window).width()!==b.windowWidth&&(clearTimeout(b.windowDelay),b.windowDelay=window.setTimeout(function(){b.windowWidth=a(window).width(),b.checkResponsive(),b.unslicked||b.setPosition()},50))},b.prototype.removeSlide=b.prototype.slickRemove=function(a,b,c){var d=this;return\"boolean\"==typeof a?(b=a,a=b===!0?0:d.slideCount-1):a=b===!0?--a:a,d.slideCount<1||0>a||a>d.slideCount-1?!1:(d.unload(),c===!0?d.$slideTrack.children().remove():d.$slideTrack.children(this.options.slide).eq(a).remove(),d.$slides=d.$slideTrack.children(this.options.slide),d.$slideTrack.children(this.options.slide).detach(),d.$slideTrack.append(d.$slides),d.$slidesCache=d.$slides,void d.reinit())},b.prototype.setCSS=function(a){var d,e,b=this,c={};b.options.rtl===!0&&(a=-a),d=\"left\"==b.positionProp?Math.ceil(a)+\"px\":\"0px\",e=\"top\"==b.positionProp?Math.ceil(a)+\"px\":\"0px\",c[b.positionProp]=a,b.transformsEnabled===!1?b.$slideTrack.css(c):(c={},b.cssTransitions===!1?(c[b.animType]=\"translate(\"+d+\", \"+e+\")\",b.$slideTrack.css(c)):(c[b.animType]=\"translate3d(\"+d+\", \"+e+\", 0px)\",b.$slideTrack.css(c)))},b.prototype.setDimensions=function(){var a=this;a.options.vertical===!1?a.options.centerMode===!0&&a.$list.css({padding:\"0px \"+a.options.centerPadding}):(a.$list.height(a.$slides.first().outerHeight(!0)*a.options.slidesToShow),a.options.centerMode===!0&&a.$list.css({padding:a.options.centerPadding+\" 0px\"})),a.listWidth=a.$list.width(),a.listHeight=a.$list.height(),a.options.vertical===!1&&a.options.variableWidth===!1?(a.slideWidth=Math.ceil(a.listWidth/a.options.slidesToShow),a.$slideTrack.width(Math.ceil(a.slideWidth*a.$slideTrack.children(\".slick-slide\").length))):a.options.variableWidth===!0?a.$slideTrack.width(5e3*a.slideCount):(a.slideWidth=Math.ceil(a.listWidth),a.$slideTrack.height(Math.ceil(a.$slides.first().outerHeight(!0)*a.$slideTrack.children(\".slick-slide\").length)));var b=a.$slides.first().outerWidth(!0)-a.$slides.first().width();a.options.variableWidth===!1&&a.$slideTrack.children(\".slick-slide\").width(a.slideWidth-b)},b.prototype.setFade=function(){var c,b=this;b.$slides.each(function(d,e){c=b.slideWidth*d*-1,b.options.rtl===!0?a(e).css({position:\"relative\",right:c,top:0,zIndex:b.options.zIndex-2,opacity:0}):a(e).css({position:\"relative\",left:c,top:0,zIndex:b.options.zIndex-2,opacity:0})}),b.$slides.eq(b.currentSlide).css({zIndex:b.options.zIndex-1,opacity:1})},b.prototype.setHeight=function(){var a=this;if(1===a.options.slidesToShow&&a.options.adaptiveHeight===!0&&a.options.vertical===!1){var b=a.$slides.eq(a.currentSlide).outerHeight(!0);a.$list.css(\"height\",b)}},b.prototype.setOption=b.prototype.slickSetOption=function(){var c,d,e,f,h,b=this,g=!1;if(\"object\"===a.type(arguments[0])?(e=arguments[0],g=arguments[1],h=\"multiple\"):\"string\"===a.type(arguments[0])&&(e=arguments[0],f=arguments[1],g=arguments[2],\"responsive\"===arguments[0]&&\"array\"===a.type(arguments[1])?h=\"responsive\":\"undefined\"!=typeof arguments[1]&&(h=\"single\")),\"single\"===h)b.options[e]=f;else if(\"multiple\"===h)a.each(e,function(a,c){b.options[a]=c});else if(\"responsive\"===h)for(d in f)if(\"array\"!==a.type(b.options.responsive))b.options.responsive=[f[d]];else{for(c=b.options.responsive.length-1;c>=0;)b.options.responsive[c].breakpoint===f[d].breakpoint&&b.options.responsive.splice(c,1),c--;b.options.responsive.push(f[d])}g&&(b.unload(),b.reinit())},b.prototype.setPosition=function(){var a=this;a.setDimensions(),a.setHeight(),a.options.fade===!1?a.setCSS(a.getLeft(a.currentSlide)):a.setFade(),a.$slider.trigger(\"setPosition\",[a])},b.prototype.setProps=function(){var a=this,b=document.body.style;a.positionProp=a.options.vertical===!0?\"top\":\"left\",\"top\"===a.positionProp?a.$slider.addClass(\"slick-vertical\"):a.$slider.removeClass(\"slick-vertical\"),(void 0!==b.WebkitTransition||void 0!==b.MozTransition||void 0!==b.msTransition)&&a.options.useCSS===!0&&(a.cssTransitions=!0),a.options.fade&&(\"number\"==typeof a.options.zIndex?a.options.zIndex<3&&(a.options.zIndex=3):a.options.zIndex=a.defaults.zIndex),void 0!==b.OTransform&&(a.animType=\"OTransform\",a.transformType=\"-o-transform\",a.transitionType=\"OTransition\",void 0===b.perspectiveProperty&&void 0===b.webkitPerspective&&(a.animType=!1)),void 0!==b.MozTransform&&(a.animType=\"MozTransform\",a.transformType=\"-moz-transform\",a.transitionType=\"MozTransition\",void 0===b.perspectiveProperty&&void 0===b.MozPerspective&&(a.animType=!1)),void 0!==b.webkitTransform&&(a.animType=\"webkitTransform\",a.transformType=\"-webkit-transform\",a.transitionType=\"webkitTransition\",void 0===b.perspectiveProperty&&void 0===b.webkitPerspective&&(a.animType=!1)),void 0!==b.msTransform&&(a.animType=\"msTransform\",a.transformType=\"-ms-transform\",a.transitionType=\"msTransition\",void 0===b.msTransform&&(a.animType=!1)),void 0!==b.transform&&a.animType!==!1&&(a.animType=\"transform\",a.transformType=\"transform\",a.transitionType=\"transition\"),a.transformsEnabled=a.options.useTransform&&null!==a.animType&&a.animType!==!1},b.prototype.setSlideClasses=function(a){var c,d,e,f,b=this;d=b.$slider.find(\".slick-slide\").removeClass(\"slick-active slick-center slick-current\").attr(\"aria-hidden\",\"true\"),b.$slides.eq(a).addClass(\"slick-current\"),b.options.centerMode===!0?(c=Math.floor(b.options.slidesToShow/2),b.options.infinite===!0&&(a>=c&&a<=b.slideCount-1-c?b.$slides.slice(a-c,a+c+1).addClass(\"slick-active\").attr(\"aria-hidden\",\"false\"):(e=b.options.slidesToShow+a,\nd.slice(e-c+1,e+c+2).addClass(\"slick-active\").attr(\"aria-hidden\",\"false\")),0===a?d.eq(d.length-1-b.options.slidesToShow).addClass(\"slick-center\"):a===b.slideCount-1&&d.eq(b.options.slidesToShow).addClass(\"slick-center\")),b.$slides.eq(a).addClass(\"slick-center\")):a>=0&&a<=b.slideCount-b.options.slidesToShow?b.$slides.slice(a,a+b.options.slidesToShow).addClass(\"slick-active\").attr(\"aria-hidden\",\"false\"):d.length<=b.options.slidesToShow?d.addClass(\"slick-active\").attr(\"aria-hidden\",\"false\"):(f=b.slideCount%b.options.slidesToShow,e=b.options.infinite===!0?b.options.slidesToShow+a:a,b.options.slidesToShow==b.options.slidesToScroll&&b.slideCount-a<b.options.slidesToShow?d.slice(e-(b.options.slidesToShow-f),e+f).addClass(\"slick-active\").attr(\"aria-hidden\",\"false\"):d.slice(e,e+b.options.slidesToShow).addClass(\"slick-active\").attr(\"aria-hidden\",\"false\")),\"ondemand\"===b.options.lazyLoad&&b.lazyLoad()},b.prototype.setupInfinite=function(){var c,d,e,b=this;if(b.options.fade===!0&&(b.options.centerMode=!1),b.options.infinite===!0&&b.options.fade===!1&&(d=null,b.slideCount>b.options.slidesToShow)){for(e=b.options.centerMode===!0?b.options.slidesToShow+1:b.options.slidesToShow,c=b.slideCount;c>b.slideCount-e;c-=1)d=c-1,a(b.$slides[d]).clone(!0).attr(\"id\",\"\").attr(\"data-slick-index\",d-b.slideCount).prependTo(b.$slideTrack).addClass(\"slick-cloned\");for(c=0;e>c;c+=1)d=c,a(b.$slides[d]).clone(!0).attr(\"id\",\"\").attr(\"data-slick-index\",d+b.slideCount).appendTo(b.$slideTrack).addClass(\"slick-cloned\");b.$slideTrack.find(\".slick-cloned\").find(\"[id]\").each(function(){a(this).attr(\"id\",\"\")})}},b.prototype.interrupt=function(a){var b=this;a||b.autoPlay(),b.interrupted=a},b.prototype.selectHandler=function(b){var c=this,d=a(b.target).is(\".slick-slide\")?a(b.target):a(b.target).parents(\".slick-slide\"),e=parseInt(d.attr(\"data-slick-index\"));return e||(e=0),c.slideCount<=c.options.slidesToShow?(c.setSlideClasses(e),void c.asNavFor(e)):void c.slideHandler(e)},b.prototype.slideHandler=function(a,b,c){var d,e,f,g,j,h=null,i=this;return b=b||!1,i.animating===!0&&i.options.waitForAnimate===!0||i.options.fade===!0&&i.currentSlide===a||i.slideCount<=i.options.slidesToShow?void 0:(b===!1&&i.asNavFor(a),d=a,h=i.getLeft(d),g=i.getLeft(i.currentSlide),i.currentLeft=null===i.swipeLeft?g:i.swipeLeft,i.options.infinite===!1&&i.options.centerMode===!1&&(0>a||a>i.getDotCount()*i.options.slidesToScroll)?void(i.options.fade===!1&&(d=i.currentSlide,c!==!0?i.animateSlide(g,function(){i.postSlide(d)}):i.postSlide(d))):i.options.infinite===!1&&i.options.centerMode===!0&&(0>a||a>i.slideCount-i.options.slidesToScroll)?void(i.options.fade===!1&&(d=i.currentSlide,c!==!0?i.animateSlide(g,function(){i.postSlide(d)}):i.postSlide(d))):(i.options.autoplay&&clearInterval(i.autoPlayTimer),e=0>d?i.slideCount%i.options.slidesToScroll!==0?i.slideCount-i.slideCount%i.options.slidesToScroll:i.slideCount+d:d>=i.slideCount?i.slideCount%i.options.slidesToScroll!==0?0:d-i.slideCount:d,i.animating=!0,i.$slider.trigger(\"beforeChange\",[i,i.currentSlide,e]),f=i.currentSlide,i.currentSlide=e,i.setSlideClasses(i.currentSlide),i.options.asNavFor&&(j=i.getNavTarget(),j=j.slick(\"getSlick\"),j.slideCount<=j.options.slidesToShow&&j.setSlideClasses(i.currentSlide)),i.updateDots(),i.updateArrows(),i.options.fade===!0?(c!==!0?(i.fadeSlideOut(f),i.fadeSlide(e,function(){i.postSlide(e)})):i.postSlide(e),void i.animateHeight()):void(c!==!0?i.animateSlide(h,function(){i.postSlide(e)}):i.postSlide(e))))},b.prototype.startLoad=function(){var a=this;a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.hide(),a.$nextArrow.hide()),a.options.dots===!0&&a.slideCount>a.options.slidesToShow&&a.$dots.hide(),a.$slider.addClass(\"slick-loading\")},b.prototype.swipeDirection=function(){var a,b,c,d,e=this;return a=e.touchObject.startX-e.touchObject.curX,b=e.touchObject.startY-e.touchObject.curY,c=Math.atan2(b,a),d=Math.round(180*c/Math.PI),0>d&&(d=360-Math.abs(d)),45>=d&&d>=0?e.options.rtl===!1?\"left\":\"right\":360>=d&&d>=315?e.options.rtl===!1?\"left\":\"right\":d>=135&&225>=d?e.options.rtl===!1?\"right\":\"left\":e.options.verticalSwiping===!0?d>=35&&135>=d?\"down\":\"up\":\"vertical\"},b.prototype.swipeEnd=function(a){var c,d,b=this;if(b.dragging=!1,b.interrupted=!1,b.shouldClick=b.touchObject.swipeLength>10?!1:!0,void 0===b.touchObject.curX)return!1;if(b.touchObject.edgeHit===!0&&b.$slider.trigger(\"edge\",[b,b.swipeDirection()]),b.touchObject.swipeLength>=b.touchObject.minSwipe){switch(d=b.swipeDirection()){case\"left\":case\"down\":c=b.options.swipeToSlide?b.checkNavigable(b.currentSlide+b.getSlideCount()):b.currentSlide+b.getSlideCount(),b.currentDirection=0;break;case\"right\":case\"up\":c=b.options.swipeToSlide?b.checkNavigable(b.currentSlide-b.getSlideCount()):b.currentSlide-b.getSlideCount(),b.currentDirection=1}\"vertical\"!=d&&(b.slideHandler(c),b.touchObject={},b.$slider.trigger(\"swipe\",[b,d]))}else b.touchObject.startX!==b.touchObject.curX&&(b.slideHandler(b.currentSlide),b.touchObject={})},b.prototype.swipeHandler=function(a){var b=this;if(!(b.options.swipe===!1||\"ontouchend\"in document&&b.options.swipe===!1||b.options.draggable===!1&&-1!==a.type.indexOf(\"mouse\")))switch(b.touchObject.fingerCount=a.originalEvent&&void 0!==a.originalEvent.touches?a.originalEvent.touches.length:1,b.touchObject.minSwipe=b.listWidth/b.options.touchThreshold,b.options.verticalSwiping===!0&&(b.touchObject.minSwipe=b.listHeight/b.options.touchThreshold),a.data.action){case\"start\":b.swipeStart(a);break;case\"move\":b.swipeMove(a);break;case\"end\":b.swipeEnd(a)}},b.prototype.swipeMove=function(a){var d,e,f,g,h,b=this;return h=void 0!==a.originalEvent?a.originalEvent.touches:null,!b.dragging||h&&1!==h.length?!1:(d=b.getLeft(b.currentSlide),b.touchObject.curX=void 0!==h?h[0].pageX:a.clientX,b.touchObject.curY=void 0!==h?h[0].pageY:a.clientY,b.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(b.touchObject.curX-b.touchObject.startX,2))),b.options.verticalSwiping===!0&&(b.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(b.touchObject.curY-b.touchObject.startY,2)))),e=b.swipeDirection(),\"vertical\"!==e?(void 0!==a.originalEvent&&b.touchObject.swipeLength>4&&a.preventDefault(),g=(b.options.rtl===!1?1:-1)*(b.touchObject.curX>b.touchObject.startX?1:-1),b.options.verticalSwiping===!0&&(g=b.touchObject.curY>b.touchObject.startY?1:-1),f=b.touchObject.swipeLength,b.touchObject.edgeHit=!1,b.options.infinite===!1&&(0===b.currentSlide&&\"right\"===e||b.currentSlide>=b.getDotCount()&&\"left\"===e)&&(f=b.touchObject.swipeLength*b.options.edgeFriction,b.touchObject.edgeHit=!0),b.options.vertical===!1?b.swipeLeft=d+f*g:b.swipeLeft=d+f*(b.$list.height()/b.listWidth)*g,b.options.verticalSwiping===!0&&(b.swipeLeft=d+f*g),b.options.fade===!0||b.options.touchMove===!1?!1:b.animating===!0?(b.swipeLeft=null,!1):void b.setCSS(b.swipeLeft)):void 0)},b.prototype.swipeStart=function(a){var c,b=this;return b.interrupted=!0,1!==b.touchObject.fingerCount||b.slideCount<=b.options.slidesToShow?(b.touchObject={},!1):(void 0!==a.originalEvent&&void 0!==a.originalEvent.touches&&(c=a.originalEvent.touches[0]),b.touchObject.startX=b.touchObject.curX=void 0!==c?c.pageX:a.clientX,b.touchObject.startY=b.touchObject.curY=void 0!==c?c.pageY:a.clientY,void(b.dragging=!0))},b.prototype.unfilterSlides=b.prototype.slickUnfilter=function(){var a=this;null!==a.$slidesCache&&(a.unload(),a.$slideTrack.children(this.options.slide).detach(),a.$slidesCache.appendTo(a.$slideTrack),a.reinit())},b.prototype.unload=function(){var b=this;a(\".slick-cloned\",b.$slider).remove(),b.$dots&&b.$dots.remove(),b.$prevArrow&&b.htmlExpr.test(b.options.prevArrow)&&b.$prevArrow.remove(),b.$nextArrow&&b.htmlExpr.test(b.options.nextArrow)&&b.$nextArrow.remove(),b.$slides.removeClass(\"slick-slide slick-active slick-visible slick-current\").attr(\"aria-hidden\",\"true\").css(\"width\",\"\")},b.prototype.unslick=function(a){var b=this;b.$slider.trigger(\"unslick\",[b,a]),b.destroy()},b.prototype.updateArrows=function(){var b,a=this;b=Math.floor(a.options.slidesToShow/2),a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&!a.options.infinite&&(a.$prevArrow.removeClass(\"slick-disabled\").attr(\"aria-disabled\",\"false\"),a.$nextArrow.removeClass(\"slick-disabled\").attr(\"aria-disabled\",\"false\"),0===a.currentSlide?(a.$prevArrow.addClass(\"slick-disabled\").attr(\"aria-disabled\",\"true\"),a.$nextArrow.removeClass(\"slick-disabled\").attr(\"aria-disabled\",\"false\")):a.currentSlide>=a.slideCount-a.options.slidesToShow&&a.options.centerMode===!1?(a.$nextArrow.addClass(\"slick-disabled\").attr(\"aria-disabled\",\"true\"),a.$prevArrow.removeClass(\"slick-disabled\").attr(\"aria-disabled\",\"false\")):a.currentSlide>=a.slideCount-1&&a.options.centerMode===!0&&(a.$nextArrow.addClass(\"slick-disabled\").attr(\"aria-disabled\",\"true\"),a.$prevArrow.removeClass(\"slick-disabled\").attr(\"aria-disabled\",\"false\")))},b.prototype.updateDots=function(){var a=this;null!==a.$dots&&(a.$dots.find(\"li\").removeClass(\"slick-active\").attr(\"aria-hidden\",\"true\"),a.$dots.find(\"li\").eq(Math.floor(a.currentSlide/a.options.slidesToScroll)).addClass(\"slick-active\").attr(\"aria-hidden\",\"false\"))},b.prototype.visibility=function(){var a=this;a.options.autoplay&&(document[a.hidden]?a.interrupted=!0:a.interrupted=!1)},a.fn.slick=function(){var f,g,a=this,c=arguments[0],d=Array.prototype.slice.call(arguments,1),e=a.length;for(f=0;e>f;f++)if(\"object\"==typeof c||\"undefined\"==typeof c?a[f].slick=new b(a[f],c):g=a[f].slick[c].apply(a[f].slick,d),\"undefined\"!=typeof g)return g;return a}});","MGS_ThemeSettings/js/element_visible.min.js":"(function($){var $w=$(window);$.fn.visible=function(partial,hidden,direction){if(this.length<1)\nreturn;var $t=this.length>1?this.eq(0):this,t=$t.get(0),vpWidth=$w.width(),vpHeight=$w.height(),direction=(direction)?direction:'both',clientSize=hidden===true?t.offsetWidth*t.offsetHeight:true;if(typeof t.getBoundingClientRect==='function'){var rec=t.getBoundingClientRect(),tViz=rec.top>=0&&rec.top<vpHeight,bViz=rec.bottom>0&&rec.bottom<=vpHeight,lViz=rec.left>=0&&rec.left<vpWidth,rViz=rec.right>0&&rec.right<=vpWidth,vVisible=partial?tViz||bViz:tViz&&bViz,hVisible=partial?lViz||lViz:lViz&&rViz;if(direction==='both')\nreturn clientSize&&vVisible&&hVisible;else if(direction==='vertical')\nreturn clientSize&&vVisible;else if(direction==='horizontal')\nreturn clientSize&&hVisible;}else{var viewTop=$w.scrollTop(),viewBottom=viewTop+vpHeight,viewLeft=$w.scrollLeft(),viewRight=viewLeft+vpWidth,offset=$t.offset(),_top=offset.top,_bottom=_top+$t.height(),_left=offset.left,_right=_left+$t.width(),compareTop=partial===true?_bottom:_top,compareBottom=partial===true?_top:_bottom,compareLeft=partial===true?_right:_left,compareRight=partial===true?_left:_right;if(direction==='both')\nreturn!!clientSize&&((compareBottom<=viewBottom)&&(compareTop>=viewTop))&&((compareRight<=viewRight)&&(compareLeft>=viewLeft));else if(direction==='vertical')\nreturn!!clientSize&&((compareBottom<=viewBottom)&&(compareTop>=viewTop));else if(direction==='horizontal')\nreturn!!clientSize&&((compareRight<=viewRight)&&(compareLeft>=viewLeft));}};})(jQuery);","MGS_ThemeSettings/js/colorpicker.min.js":"(function($){var themeSettingColorPicker=function(){var\nids={},inAction,charMin=65,visible,tpl='<div class=\"colorpicker\"><div class=\"colorpicker_color\"><div><div></div></div></div><div class=\"colorpicker_hue\"><div></div></div><div class=\"colorpicker_new_color\"></div><div class=\"colorpicker_current_color\"></div><div class=\"colorpicker_hex\"><input type=\"text\" maxlength=\"6\" size=\"6\" /></div><div class=\"colorpicker_rgb_r colorpicker_field\"><input type=\"text\" maxlength=\"3\" size=\"3\" /><span></span></div><div class=\"colorpicker_rgb_g colorpicker_field\"><input type=\"text\" maxlength=\"3\" size=\"3\" /><span></span></div><div class=\"colorpicker_rgb_b colorpicker_field\"><input type=\"text\" maxlength=\"3\" size=\"3\" /><span></span></div><div class=\"colorpicker_hsb_h colorpicker_field\"><input type=\"text\" maxlength=\"3\" size=\"3\" /><span></span></div><div class=\"colorpicker_hsb_s colorpicker_field\"><input type=\"text\" maxlength=\"3\" size=\"3\" /><span></span></div><div class=\"colorpicker_hsb_b colorpicker_field\"><input type=\"text\" maxlength=\"3\" size=\"3\" /><span></span></div><div class=\"colorpicker_submit\"></div></div>',defaults={eventName:'click',onShow:function(){},onBeforeShow:function(){},onHide:function(){},onChange:function(){},onSubmit:function(){},color:'ff0000',livePreview:true,flat:false},fillRGBFields=function(hsb,cal){var rgb=HSBToRGB(hsb);$(cal).data('colorpicker').fields.eq(1).val(rgb.r).end().eq(2).val(rgb.g).end().eq(3).val(rgb.b).end();},fillHSBFields=function(hsb,cal){$(cal).data('colorpicker').fields.eq(4).val(hsb.h).end().eq(5).val(hsb.s).end().eq(6).val(hsb.b).end();},fillHexFields=function(hsb,cal){$(cal).data('colorpicker').fields.eq(0).val(HSBToHex(hsb)).end();},setSelector=function(hsb,cal){$(cal).data('colorpicker').selector.css('backgroundColor','#'+HSBToHex({h:hsb.h,s:100,b:100}));$(cal).data('colorpicker').selectorIndic.css({left:parseInt(150*hsb.s/100,10),top:parseInt(150*(100-hsb.b)/100,10)});},setHue=function(hsb,cal){$(cal).data('colorpicker').hue.css('top',parseInt(150-150*hsb.h/360,10));},setCurrentColor=function(hsb,cal){$(cal).data('colorpicker').currentColor.css('backgroundColor','#'+HSBToHex(hsb));},setNewColor=function(hsb,cal){$(cal).data('colorpicker').newColor.css('backgroundColor','#'+HSBToHex(hsb));},keyDown=function(ev){var pressedKey=ev.charCode||ev.keyCode||-1;if((pressedKey>charMin&&pressedKey<=90)||pressedKey==32){return false;}\nvar cal=$(this).parent().parent();if(cal.data('colorpicker').livePreview===true){change.apply(this);}},change=function(ev){var cal=$(this).parent().parent(),col;if(this.parentNode.className.indexOf('_hex')>0){cal.data('colorpicker').color=col=HexToHSB(fixHex(this.value));}else if(this.parentNode.className.indexOf('_hsb')>0){cal.data('colorpicker').color=col=fixHSB({h:parseInt(cal.data('colorpicker').fields.eq(4).val(),10),s:parseInt(cal.data('colorpicker').fields.eq(5).val(),10),b:parseInt(cal.data('colorpicker').fields.eq(6).val(),10)});}else{cal.data('colorpicker').color=col=RGBToHSB(fixRGB({r:parseInt(cal.data('colorpicker').fields.eq(1).val(),10),g:parseInt(cal.data('colorpicker').fields.eq(2).val(),10),b:parseInt(cal.data('colorpicker').fields.eq(3).val(),10)}));}\nif(ev){fillRGBFields(col,cal.get(0));fillHexFields(col,cal.get(0));fillHSBFields(col,cal.get(0));}\nsetSelector(col,cal.get(0));setHue(col,cal.get(0));setNewColor(col,cal.get(0));cal.data('colorpicker').onChange.apply(cal,[col,HSBToHex(col),HSBToRGB(col)]);},blur=function(ev){var cal=$(this).parent().parent();cal.data('colorpicker').fields.parent().removeClass('colorpicker_focus');},focus=function(){charMin=this.parentNode.className.indexOf('_hex')>0?70:65;$(this).parent().parent().data('colorpicker').fields.parent().removeClass('colorpicker_focus');$(this).parent().addClass('colorpicker_focus');},downIncrement=function(ev){var field=$(this).parent().find('input').focus();var current={el:$(this).parent().addClass('colorpicker_slider'),max:this.parentNode.className.indexOf('_hsb_h')>0?360:(this.parentNode.className.indexOf('_hsb')>0?100:255),y:ev.pageY,field:field,val:parseInt(field.val(),10),preview:$(this).parent().parent().data('colorpicker').livePreview};$(document).bind('mouseup',current,upIncrement);$(document).bind('mousemove',current,moveIncrement);},moveIncrement=function(ev){ev.data.field.val(Math.max(0,Math.min(ev.data.max,parseInt(ev.data.val+ev.pageY-ev.data.y,10))));if(ev.data.preview){change.apply(ev.data.field.get(0),[true]);}\nreturn false;},upIncrement=function(ev){change.apply(ev.data.field.get(0),[true]);ev.data.el.removeClass('colorpicker_slider').find('input').focus();$(document).unbind('mouseup',upIncrement);$(document).unbind('mousemove',moveIncrement);return false;},downHue=function(ev){var current={cal:$(this).parent(),y:$(this).offset().top};current.preview=current.cal.data('colorpicker').livePreview;$(document).bind('mouseup',current,upHue);$(document).bind('mousemove',current,moveHue);},moveHue=function(ev){change.apply(ev.data.cal.data('colorpicker').fields.eq(4).val(parseInt(360*(150-Math.max(0,Math.min(150,(ev.pageY-ev.data.y))))/150,10)).get(0),[ev.data.preview]);return false;},upHue=function(ev){fillRGBFields(ev.data.cal.data('colorpicker').color,ev.data.cal.get(0));fillHexFields(ev.data.cal.data('colorpicker').color,ev.data.cal.get(0));$(document).unbind('mouseup',upHue);$(document).unbind('mousemove',moveHue);return false;},downSelector=function(ev){var current={cal:$(this).parent(),pos:$(this).offset()};current.preview=current.cal.data('colorpicker').livePreview;$(document).bind('mouseup',current,upSelector);$(document).bind('mousemove',current,moveSelector);},moveSelector=function(ev){change.apply(ev.data.cal.data('colorpicker').fields.eq(6).val(parseInt(100*(150-Math.max(0,Math.min(150,(ev.pageY-ev.data.pos.top))))/150,10)).end().eq(5).val(parseInt(100*(Math.max(0,Math.min(150,(ev.pageX-ev.data.pos.left))))/150,10)).get(0),[ev.data.preview]);return false;},upSelector=function(ev){fillRGBFields(ev.data.cal.data('colorpicker').color,ev.data.cal.get(0));fillHexFields(ev.data.cal.data('colorpicker').color,ev.data.cal.get(0));$(document).unbind('mouseup',upSelector);$(document).unbind('mousemove',moveSelector);return false;},enterSubmit=function(ev){$(this).addClass('colorpicker_focus');},leaveSubmit=function(ev){$(this).removeClass('colorpicker_focus');},clickSubmit=function(ev){var cal=$(this).parent();var col=cal.data('colorpicker').color;cal.data('colorpicker').origColor=col;setCurrentColor(col,cal.get(0));cal.data('colorpicker').onSubmit(col,HSBToHex(col),HSBToRGB(col),cal.data('colorpicker').el);},show=function(ev){var cal=$('#'+$(this).data('colorpickerId'));cal.data('colorpicker').onBeforeShow.apply(this,[cal.get(0)]);var pos=$(this).offset();var viewPort=getViewport();var top=pos.top+this.offsetHeight;var left=pos.left;if(top+176>viewPort.t+viewPort.h){top-=this.offsetHeight+176;}\nif(left+356>viewPort.l+viewPort.w){left-=356;}\ncal.css({left:left+'px',top:top+'px'});if(cal.data('colorpicker').onShow.apply(this,[cal.get(0)])!=false){cal.show();}\n$(document).bind('mousedown',{cal:cal},hide);return false;},hide=function(ev){if(!isChildOf(ev.data.cal.get(0),ev.target,ev.data.cal.get(0))){if(ev.data.cal.data('colorpicker').onHide.apply(this,[ev.data.cal.get(0)])!=false){ev.data.cal.hide();}\n$(document).unbind('mousedown',hide);}},isChildOf=function(parentEl,el,container){if(parentEl==el){return true;}\nif(parentEl.contains){return parentEl.contains(el);}\nif(parentEl.compareDocumentPosition){return!!(parentEl.compareDocumentPosition(el)&16);}\nvar prEl=el.parentNode;while(prEl&&prEl!=container){if(prEl==parentEl)\nreturn true;prEl=prEl.parentNode;}\nreturn false;},getViewport=function(){var m=document.compatMode=='CSS1Compat';return{l:window.pageXOffset||(m?document.documentElement.scrollLeft:document.body.scrollLeft),t:window.pageYOffset||(m?document.documentElement.scrollTop:document.body.scrollTop),w:window.innerWidth||(m?document.documentElement.clientWidth:document.body.clientWidth),h:window.innerHeight||(m?document.documentElement.clientHeight:document.body.clientHeight)};},fixHSB=function(hsb){return{h:Math.min(360,Math.max(0,hsb.h)),s:Math.min(100,Math.max(0,hsb.s)),b:Math.min(100,Math.max(0,hsb.b))};},fixRGB=function(rgb){return{r:Math.min(255,Math.max(0,rgb.r)),g:Math.min(255,Math.max(0,rgb.g)),b:Math.min(255,Math.max(0,rgb.b))};},fixHex=function(hex){var len=6-hex.length;if(len>0){var o=[];for(var i=0;i<len;i++){o.push('0');}\no.push(hex);hex=o.join('');}\nreturn hex;},HexToRGB=function(hex){var hex=parseInt(((hex.indexOf('#')>-1)?hex.substring(1):hex),16);return{r:hex>>16,g:(hex&0x00FF00)>>8,b:(hex&0x0000FF)};},HexToHSB=function(hex){return RGBToHSB(HexToRGB(hex));},RGBToHSB=function(rgb){var hsb={h:0,s:0,b:0};var min=Math.min(rgb.r,rgb.g,rgb.b);var max=Math.max(rgb.r,rgb.g,rgb.b);var delta=max-min;hsb.b=max;if(max!=0){}\nhsb.s=max!=0?255*delta / max:0;if(hsb.s!=0){if(rgb.r==max){hsb.h=(rgb.g-rgb.b)/ delta;}else if(rgb.g==max){hsb.h=2+(rgb.b-rgb.r)/ delta;}else{hsb.h=4+(rgb.r-rgb.g)/ delta;}}else{hsb.h=-1;}\nhsb.h*=60;if(hsb.h<0){hsb.h+=360;}\nhsb.s*=100/255;hsb.b*=100/255;return hsb;},HSBToRGB=function(hsb){var rgb={};var h=Math.round(hsb.h);var s=Math.round(hsb.s*255/100);var v=Math.round(hsb.b*255/100);if(s==0){rgb.r=rgb.g=rgb.b=v;}else{var t1=v;var t2=(255-s)*v/255;var t3=(t1-t2)*(h%60)/60;if(h==360)h=0;if(h<60){rgb.r=t1;rgb.b=t2;rgb.g=t2+t3}\nelse if(h<120){rgb.g=t1;rgb.b=t2;rgb.r=t1-t3}\nelse if(h<180){rgb.g=t1;rgb.r=t2;rgb.b=t2+t3}\nelse if(h<240){rgb.b=t1;rgb.r=t2;rgb.g=t1-t3}\nelse if(h<300){rgb.b=t1;rgb.g=t2;rgb.r=t2+t3}\nelse if(h<360){rgb.r=t1;rgb.g=t2;rgb.b=t1-t3}\nelse{rgb.r=0;rgb.g=0;rgb.b=0}}\nreturn{r:Math.round(rgb.r),g:Math.round(rgb.g),b:Math.round(rgb.b)};},RGBToHex=function(rgb){var hex=[rgb.r.toString(16),rgb.g.toString(16),rgb.b.toString(16)];$.each(hex,function(nr,val){if(val.length==1){hex[nr]='0'+val;}});return hex.join('');},HSBToHex=function(hsb){return RGBToHex(HSBToRGB(hsb));},restoreOriginal=function(){var cal=$(this).parent();var col=cal.data('colorpicker').origColor;cal.data('colorpicker').color=col;fillRGBFields(col,cal.get(0));fillHexFields(col,cal.get(0));fillHSBFields(col,cal.get(0));setSelector(col,cal.get(0));setHue(col,cal.get(0));setNewColor(col,cal.get(0));};return{init:function(opt){opt=$.extend({},defaults,opt||{});if(typeof opt.color=='string'){opt.color=HexToHSB(opt.color);}else if(opt.color.r!=undefined&&opt.color.g!=undefined&&opt.color.b!=undefined){opt.color=RGBToHSB(opt.color);}else if(opt.color.h!=undefined&&opt.color.s!=undefined&&opt.color.b!=undefined){opt.color=fixHSB(opt.color);}else{return this;}\nreturn this.each(function(){if(!$(this).data('colorpickerId')){var options=$.extend({},opt);options.origColor=opt.color;var id='collorpicker_'+parseInt(Math.random()*1000);$(this).data('colorpickerId',id);var cal=$(tpl).attr('id',id);if(options.flat){cal.appendTo(this).show();}else{cal.appendTo(document.body);}\noptions.fields=cal.find('input').bind('keyup',keyDown).bind('change',change).bind('blur',blur).bind('focus',focus);cal.find('span').bind('mousedown',downIncrement).end().find('>div.colorpicker_current_color').bind('click',restoreOriginal);options.selector=cal.find('div.colorpicker_color').bind('mousedown',downSelector);options.selectorIndic=options.selector.find('div div');options.el=this;options.hue=cal.find('div.colorpicker_hue div');cal.find('div.colorpicker_hue').bind('mousedown',downHue);options.newColor=cal.find('div.colorpicker_new_color');options.currentColor=cal.find('div.colorpicker_current_color');cal.data('colorpicker',options);cal.find('div.colorpicker_submit').bind('mouseenter',enterSubmit).bind('mouseleave',leaveSubmit).bind('click',clickSubmit);fillRGBFields(options.color,cal.get(0));fillHSBFields(options.color,cal.get(0));fillHexFields(options.color,cal.get(0));setHue(options.color,cal.get(0));setSelector(options.color,cal.get(0));setCurrentColor(options.color,cal.get(0));setNewColor(options.color,cal.get(0));if(options.flat){cal.css({position:'relative',display:'block'});}else{$(this).bind(options.eventName,show);}}});},showPicker:function(){return this.each(function(){if($(this).data('colorpickerId')){show.apply(this);}});},hidePicker:function(){return this.each(function(){if($(this).data('colorpickerId')){$('#'+$(this).data('colorpickerId')).hide();}});},setColor:function(col){if(typeof col=='string'){col=HexToHSB(col);}else if(col.r!=undefined&&col.g!=undefined&&col.b!=undefined){col=RGBToHSB(col);}else if(col.h!=undefined&&col.s!=undefined&&col.b!=undefined){col=fixHSB(col);}else{return this;}\nreturn this.each(function(){if($(this).data('colorpickerId')){var cal=$('#'+$(this).data('colorpickerId'));cal.data('colorpicker').color=col;cal.data('colorpicker').origColor=col;fillRGBFields(col,cal.get(0));fillHSBFields(col,cal.get(0));fillHexFields(col,cal.get(0));setHue(col,cal.get(0));setSelector(col,cal.get(0));setCurrentColor(col,cal.get(0));setNewColor(col,cal.get(0));}});}};}();$.fn.extend({themeSettingColorPicker:themeSettingColorPicker.init,ColorPickerHide:themeSettingColorPicker.hidePicker,ColorPickerShow:themeSettingColorPicker.showPicker,ColorPickerSetColor:themeSettingColorPicker.setColor});})()","MGS_ThemeSettings/js/jquery.sticky-kit.min.js":"/*\n Sticky-kit v1.1.2 | WTFPL | Leaf Corcoran 2015 | http://leafo.net\n*/\n(function(){var b,f;b=this.jQuery||window.jQuery;f=b(window);b.fn.stick_in_parent=function(d){var A,w,J,n,B,K,p,q,k,E,t;null==d&&(d={});t=d.sticky_class;B=d.inner_scrolling;E=d.recalc_every;k=d.parent;q=d.offset_top;p=d.spacer;w=d.bottoming;null==q&&(q=0);null==k&&(k=void 0);null==B&&(B=!0);null==t&&(t=\"is_stuck\");A=b(document);null==w&&(w=!0);J=function(a,d,n,C,F,u,r,G){var v,H,m,D,I,c,g,x,y,z,h,l;if(!a.data(\"sticky_kit\")){a.data(\"sticky_kit\",!0);I=A.height();g=a.parent();null!=k&&(g=g.closest(k));\nif(!g.length)throw\"failed to find stick parent\";v=m=!1;(h=null!=p?p&&a.closest(p):b(\"<div />\"))&&h.css(\"position\",a.css(\"position\"));x=function(){var c,f,e;if(!G&&(I=A.height(),c=parseInt(g.css(\"border-top-width\"),10),f=parseInt(g.css(\"padding-top\"),10),d=parseInt(g.css(\"padding-bottom\"),10),n=g.offset().top+c+f,C=g.height(),m&&(v=m=!1,null==p&&(a.insertAfter(h),h.detach()),a.css({position:\"\",top:\"\",width:\"\",bottom:\"\"}).removeClass(t),e=!0),F=a.offset().top-(parseInt(a.css(\"margin-top\"),10)||0)-q,\nu=a.outerHeight(!0),r=a.css(\"float\"),h&&h.css({width:a.outerWidth(!0),height:u,display:a.css(\"display\"),\"vertical-align\":a.css(\"vertical-align\"),\"float\":r}),e))return l()};x();if(u!==C)return D=void 0,c=q,z=E,l=function(){var b,l,e,k;if(!G&&(e=!1,null!=z&&(--z,0>=z&&(z=E,x(),e=!0)),e||A.height()===I||x(),e=f.scrollTop(),null!=D&&(l=e-D),D=e,m?(w&&(k=e+u+c>C+n,v&&!k&&(v=!1,a.css({position:\"fixed\",bottom:\"\",top:c}).trigger(\"sticky_kit:unbottom\"))),e<F&&(m=!1,c=q,null==p&&(\"left\"!==r&&\"right\"!==r||a.insertAfter(h),\nh.detach()),b={position:\"\",width:\"\",top:\"\"},a.css(b).removeClass(t).trigger(\"sticky_kit:unstick\")),B&&(b=f.height(),u+q>b&&!v&&(c-=l,c=Math.max(b-u,c),c=Math.min(q,c),m&&a.css({top:c+\"px\"})))):e>F&&(m=!0,b={position:\"fixed\",top:c},b.width=\"border-box\"===a.css(\"box-sizing\")?a.outerWidth()+\"px\":a.width()+\"px\",a.css(b).addClass(t),null==p&&(a.after(h),\"left\"!==r&&\"right\"!==r||h.append(a)),a.trigger(\"sticky_kit:stick\")),m&&w&&(null==k&&(k=e+u+c>C+n),!v&&k)))return v=!0,\"static\"===g.css(\"position\")&&g.css({position:\"relative\"}),\na.css({position:\"absolute\",bottom:d,top:\"auto\"}).trigger(\"sticky_kit:bottom\")},y=function(){x();return l()},H=function(){G=!0;f.off(\"touchmove\",l);f.off(\"scroll\",l);f.off(\"resize\",y);b(document.body).off(\"sticky_kit:recalc\",y);a.off(\"sticky_kit:detach\",H);a.removeData(\"sticky_kit\");a.css({position:\"\",bottom:\"\",top:\"\",width:\"\"});g.position(\"position\",\"\");if(m)return null==p&&(\"left\"!==r&&\"right\"!==r||a.insertAfter(h),h.remove()),a.removeClass(t)},f.on(\"touchmove\",l),f.on(\"scroll\",l),f.on(\"resize\",\ny),b(document.body).on(\"sticky_kit:recalc\",y),a.on(\"sticky_kit:detach\",H),setTimeout(l,0)}};n=0;for(K=this.length;n<K;n++)d=this[n],J(b(d));return this}}).call(this);\n","Magento_Shipping/js/view/checkout/shipping/shipping-policy.min.js":"define(['uiComponent','Magento_Shipping/js/model/config'],function(Component,config){'use strict';return Component.extend({defaults:{template:'Magento_Shipping/checkout/shipping/shipping-policy'},config:config()});});","Magento_Shipping/js/model/config.min.js":"define([],function(){'use strict';return function(){return window.checkoutConfig.shippingPolicy;};});","Magento_ConfigurableProduct/js/catalog-add-to-cart-mixin.min.js":"define(['underscore','jquery','Magento_ConfigurableProduct/js/product/view/product-info-resolver'],function(_,$,productInfoResolver){'use strict';return function(widget){$.widget('mage.catalogAddToCart',widget,{ajaxSubmit:function(form){var isConfigurable=!!_.find(form.serializeArray(),function(item){return item.name.indexOf('super_attribute')!==-1;});if(isConfigurable){this.options.productInfoResolver=productInfoResolver;}\nreturn this._super(form);}});return $.mage.catalogAddToCart;};});","Magento_ConfigurableProduct/js/configurable-customer-data.min.js":"require(['jquery','Magento_ConfigurableProduct/js/options-updater'],function($,Updater){'use strict';var selectors={formSelector:'#product_addtocart_form'},configurableWidgetName='mageConfigurable',widgetInitEvent='configurable.initialized',updateConfigurableOptions=function(){var configurableWidget=$(selectors.formSelector).data(configurableWidgetName);if(!configurableWidget){return;}\nconfigurableWidget.options.values=this.productOptions||{};configurableWidget._configureForValues();},updater=new Updater(widgetInitEvent,updateConfigurableOptions);updater.listen();});","Magento_ConfigurableProduct/js/options-updater.min.js":"define(['jquery','underscore','Magento_Customer/js/customer-data','domReady!'],function($,_,customerData){'use strict';var selectors={formSelector:'#product_addtocart_form',productIdSelector:'#product_addtocart_form [name=\"product\"]',itemIdSelector:'#product_addtocart_form [name=\"item\"]'},cartData=customerData.get('cart'),productId=$(selectors.productIdSelector).val(),itemId=$(selectors.itemIdSelector).val(),setProductOptions=function(data){var changedProductOptions;if(!(data&&data.items&&data.items.length&&productId)){return false;}\nchangedProductOptions=_.find(data.items,function(item){if(item['item_id']===itemId){return item['product_id']===productId;}});changedProductOptions=changedProductOptions&&changedProductOptions.options&&changedProductOptions.options.reduce(function(obj,val){obj[val['option_id']]=val['option_value'];return obj;},{});if(JSON.stringify(this.productOptions||{})===JSON.stringify(changedProductOptions||{})){return false;}\nthis.productOptions=changedProductOptions;return true;},listen=function(){cartData.subscribe(function(updateCartData){if(this.setProductOptions(updateCartData)){this.updateOptions();}}.bind(this));$(selectors.formSelector).on(this.eventName,function(){this.setProductOptions(cartData());this.updateOptions();}.bind(this));},Updater=function(eventName,updateOptionsCallback){if(this instanceof Updater){this.eventName=eventName;this.updateOptions=updateOptionsCallback;this.productOptions={};}};Updater.prototype.setProductOptions=setProductOptions;Updater.prototype.listen=listen;return Updater;});","Magento_ConfigurableProduct/js/configurable.min.js":"define(['jquery','underscore','mage/template','mage/translate','priceUtils','priceBox','jquery-ui-modules/widget','jquery/jquery.parsequery','fotoramaVideoEvents'],function($,_,mageTemplate,$t,priceUtils){'use strict';$.widget('mage.configurable',{options:{superSelector:'.super-attribute-select',selectSimpleProduct:'[name=\"selected_configurable_option\"]',priceHolderSelector:'.price-box',spConfig:{},state:{},priceFormat:{},optionTemplate:'<%- data.label %>'+'<% if (typeof data.finalPrice.value !== \"undefined\") { %>'+' <%- data.finalPrice.formatted %>'+'<% } %>',mediaGallerySelector:'[data-gallery-role=gallery-placeholder]',mediaGalleryInitial:null,slyOldPriceSelector:'.sly-old-price',normalPriceLabelSelector:'.product-info-main .normal-price .price-label',gallerySwitchStrategy:'replace',tierPriceTemplateSelector:'#tier-prices-template',tierPriceBlockSelector:'[data-role=\"tier-price-block\"]',tierPriceTemplate:'',selectorProduct:'.product-info-main',selectorProductPrice:'[data-role=priceBox]',qtyInfo:'#qty'},_create:function(){this._initializeOptions();this._overrideDefaults();this._setupChangeEvents();this._fillState();this._setChildSettings();this._configureForValues();$(this.element).trigger('configurable.initialized');$(this.options.qtyInfo).on('input',this._reloadPrice.bind(this));},_initializeOptions:function(){var options=this.options,gallery=$(options.mediaGallerySelector),priceBoxOptions=$(this.options.priceHolderSelector).priceBox('option').priceConfig||null;if(priceBoxOptions&&priceBoxOptions.optionTemplate){options.optionTemplate=priceBoxOptions.optionTemplate;}\nif(priceBoxOptions&&priceBoxOptions.priceFormat){options.priceFormat=priceBoxOptions.priceFormat;}\noptions.optionTemplate=mageTemplate(options.optionTemplate);options.tierPriceTemplate=$(this.options.tierPriceTemplateSelector).html();options.settings=options.spConfig.containerId?$(options.spConfig.containerId).find(options.superSelector):$(options.superSelector);options.values=options.spConfig.defaultValues||{};options.parentImage=$('[data-role=base-image-container] img').attr('src');this.inputSimpleProduct=this.element.find(options.selectSimpleProduct);gallery.data('gallery')?this._onGalleryLoaded(gallery):gallery.on('gallery:loaded',this._onGalleryLoaded.bind(this,gallery));},_overrideDefaults:function(){var hashIndex=window.location.href.indexOf('#');if(hashIndex!==-1){this._parseQueryParams(window.location.href.substr(hashIndex+1));}\nif(this.options.spConfig.inputsInitialized){this._setValuesByAttribute();}\nthis._setInitialOptionsLabels();},_parseQueryParams:function(queryString){var queryParams=$.parseQuery({query:queryString});$.each(queryParams,$.proxy(function(key,value){if(this.options.spConfig.attributes[key]!==undefined&&_.find(this.options.spConfig.attributes[key].options,function(element){return element.id===value;})){this.options.values[key]=value;}},this));},_setValuesByAttribute:function(){this.options.values={};$.each(this.options.settings,$.proxy(function(index,element){var attributeId;if(element.value){attributeId=element.id.replace(/[a-z]*/,'');if(this.options.spConfig.attributes[attributeId]!==undefined&&_.find(this.options.spConfig.attributes[attributeId].options,function(optionElement){return optionElement.id===element.value;})){this.options.values[attributeId]=element.value;}}},this));},_setInitialOptionsLabels:function(){$.each(this.options.spConfig.attributes,$.proxy(function(index,element){$.each(element.options,$.proxy(function(optIndex,optElement){this.options.spConfig.attributes[index].options[optIndex].initialLabel=optElement.label;},this));},this));},_setupChangeEvents:function(){$.each(this.options.settings,$.proxy(function(index,element){$(element).on('change',this,this._configure);},this));},_fillState:function(){$.each(this.options.settings,$.proxy(function(index,element){var attributeId=element.id.replace(/[a-z]*/,'');if(attributeId&&this.options.spConfig.attributes[attributeId]){element.config=this.options.spConfig.attributes[attributeId];element.attributeId=attributeId;this.options.state[attributeId]=false;}},this));},_setChildSettings:function(){var childSettings=[],settings=this.options.settings,index=settings.length,option;while(index--){option=settings[index];if(index){option.disabled=true;}else{this._fillSelect(option);}\n_.extend(option,{childSettings:childSettings.slice(),prevSetting:settings[index-1],nextSetting:settings[index+1]});childSettings.push(option);}},_configureForValues:function(){if(this.options.values){this.options.settings.each($.proxy(function(index,element){var attributeId=element.attributeId;element.value=this.options.values[attributeId]||'';this._configureElement(element);},this));}},_configure:function(event){event.data._configureElement(this);},_configureElement:function(element){this.simpleProduct=this._getSimpleProductId(element);if(element.value){this.options.state[element.config.id]=element.value;if(element.nextSetting){element.nextSetting.disabled=false;this._fillSelect(element.nextSetting);this._resetChildren(element.nextSetting);}else{if(!!document.documentMode){this.inputSimpleProduct.val(element.options[element.selectedIndex].config.allowedProducts[0]);}else{this.inputSimpleProduct.val(element.selectedOptions[0].config.allowedProducts[0]);}}}else{this._resetChildren(element);}\nthis._reloadPrice();this._displayRegularPriceBlock(this.simpleProduct);this._displayTierPriceBlock(this.simpleProduct);this._displayNormalPriceLabel();this._changeProductImage();},_changeProductImage:function(){var images,initialImages=this.options.mediaGalleryInitial,gallery=$(this.options.mediaGallerySelector).data('gallery');if(_.isUndefined(gallery)){$(this.options.mediaGallerySelector).on('gallery:loaded',function(){this._changeProductImage();}.bind(this));return;}\nimages=this.options.spConfig.images[this.simpleProduct];if(images){images=this._sortImages(images);if(this.options.gallerySwitchStrategy==='prepend'){images=images.concat(initialImages);}\nimages=$.extend(true,[],images);images=this._setImageIndex(images);gallery.updateData(images);this._addFotoramaVideoEvents(false);}else{gallery.updateData(initialImages);this._addFotoramaVideoEvents(true);}},_addFotoramaVideoEvents:function(isInitial){if(_.isUndefined($.mage.AddFotoramaVideoEvents)){return;}\nif(isInitial){$(this.options.mediaGallerySelector).AddFotoramaVideoEvents();return;}\n$(this.options.mediaGallerySelector).AddFotoramaVideoEvents({selectedOption:this.simpleProduct,dataMergeStrategy:this.options.gallerySwitchStrategy});},_sortImages:function(images){return _.sortBy(images,function(image){return image.position;});},_setImageIndex:function(images){var length=images.length,i;for(i=0;length>i;i++){images[i].i=i+1;}\nreturn images;},_resetChildren:function(element){if(element.childSettings){_.each(element.childSettings,function(set){set.selectedIndex=0;set.disabled=true;});if(element.config){this.options.state[element.config.id]=false;}}},_fillSelect:function(element){var attributeId=element.id.replace(/[a-z]*/,''),options=this._getAttributeOptions(attributeId),prevConfig,index=1,allowedProducts,allowedProductsByOption,allowedProductsAll,i,j,finalPrice=parseFloat(this.options.spConfig.prices.finalPrice.amount),optionFinalPrice,optionPriceDiff,optionPrices=this.options.spConfig.optionPrices,allowedOptions=[],indexKey,allowedProductMinPrice,allowedProductsAllMinPrice,canDisplayOutOfStockProducts=false,filteredSalableProducts;this._clearSelect(element);element.options[0]=new Option('','');element.options[0].innerHTML=this.options.spConfig.chooseText;prevConfig=false;if(element.prevSetting){prevConfig=element.prevSetting.options[element.prevSetting.selectedIndex];}\nif(options){for(indexKey in this.options.spConfig.index){if(this.options.spConfig.index.hasOwnProperty(indexKey)){allowedOptions=allowedOptions.concat(_.values(this.options.spConfig.index[indexKey]));}}\nif(prevConfig){allowedProductsByOption={};allowedProductsAll=[];for(i=0;i<options.length;i++){for(j=0;j<options[i].products.length;j++){if(prevConfig.config&&prevConfig.config.allowedProducts&&prevConfig.config.allowedProducts.indexOf(options[i].products[j])>-1){if(!allowedProductsByOption[i]){allowedProductsByOption[i]=[];}\nallowedProductsByOption[i].push(options[i].products[j]);allowedProductsAll.push(options[i].products[j]);}}}\nif(typeof allowedProductsAll[0]!=='undefined'&&typeof optionPrices[allowedProductsAll[0]]!=='undefined'){allowedProductsAllMinPrice=this._getAllowedProductWithMinPrice(allowedProductsAll);finalPrice=parseFloat(optionPrices[allowedProductsAllMinPrice].finalPrice.amount);}}\nfor(i=0;i<options.length;i++){if(prevConfig&&typeof allowedProductsByOption[i]==='undefined'){continue;}\nallowedProducts=prevConfig?allowedProductsByOption[i]:options[i].products.slice(0);optionPriceDiff=0;if(typeof allowedProducts[0]!=='undefined'&&typeof optionPrices[allowedProducts[0]]!=='undefined'){allowedProductMinPrice=this._getAllowedProductWithMinPrice(allowedProducts);optionFinalPrice=parseFloat(optionPrices[allowedProductMinPrice].finalPrice.amount);optionPriceDiff=optionFinalPrice-finalPrice;options[i].label=options[i].initialLabel;if(optionPriceDiff!==0){options[i].label+=' '+priceUtils.formatPriceLocale(optionPriceDiff,this.options.priceFormat,true);}}\nif(allowedProducts.length>0||_.include(allowedOptions,options[i].id)){options[i].allowedProducts=allowedProducts;element.options[index]=new Option(this._getOptionLabel(options[i]),options[i].id);if(this.options.spConfig.canDisplayShowOutOfStockStatus){filteredSalableProducts=$(this.options.spConfig.salable[attributeId][options[i].id]).filter(options[i].allowedProducts);canDisplayOutOfStockProducts=filteredSalableProducts.length===0;}\nif(typeof options[i].price!=='undefined'){element.options[index].setAttribute('price',options[i].price);}\nif(allowedProducts.length===0||canDisplayOutOfStockProducts){element.options[index].disabled=true;}\nelement.options[index].config=options[i];index++;}}}},_getOptionLabel:function(option){return option.label;},_clearSelect:function(element){var i;for(i=element.options.length-1;i>=0;i--){element.remove(i);}},_getAttributeOptions:function(attributeId){if(this.options.spConfig.attributes[attributeId]){return this.options.spConfig.attributes[attributeId].options;}},_reloadPrice:function(){$(this.options.priceHolderSelector).trigger('updatePrice',this._getPrices());},_getPrices:function(){var prices={},elements=_.toArray(this.options.settings),allowedProduct;_.each(elements,function(element){var selected=element.options[element.selectedIndex],config=selected&&selected.config,priceValue=this._calculatePrice({});if(config&&config.allowedProducts.length===1){priceValue=this._calculatePrice(config);}else if(element.value){allowedProduct=this._getAllowedProductWithMinPrice(config.allowedProducts);priceValue=this._calculatePrice({'allowedProducts':[allowedProduct]});}\nif(!_.isEmpty(priceValue)){prices.prices=priceValue;}},this);return prices;},_getAllowedProductWithMinPrice:function(allowedProducts){var optionPrices=this.options.spConfig.optionPrices,product={},optionMinPrice,optionFinalPrice;_.each(allowedProducts,function(allowedProduct){optionFinalPrice=parseFloat(optionPrices[allowedProduct].finalPrice.amount);if(_.isEmpty(product)||optionFinalPrice<optionMinPrice){optionMinPrice=optionFinalPrice;product=allowedProduct;}},this);return product;},_calculatePrice:function(config){var displayPrices=$(this.options.priceHolderSelector).priceBox('option').prices,newPrices=this.options.spConfig.optionPrices[_.first(config.allowedProducts)]||{};_.each(displayPrices,function(price,code){displayPrices[code].amount=newPrices[code]?newPrices[code].amount-displayPrices[code].amount:0;});return displayPrices;},_getSimpleProductId:function(element){var allOptions=element.config.options,value=element.value,config;config=_.filter(allOptions,function(option){return option.id===value;});config=_.first(config);return _.isEmpty(config)?undefined:_.first(config.allowedProducts);},_displayRegularPriceBlock:function(optionId){var shouldBeShown=true,$priceBox=this.element.parents(this.options.selectorProduct).find(this.options.selectorProductPrice);_.each(this.options.settings,function(element){if(element.value===''){shouldBeShown=false;}});if(shouldBeShown&&this.options.spConfig.optionPrices[optionId].oldPrice.amount!==this.options.spConfig.optionPrices[optionId].finalPrice.amount){$(this.options.slyOldPriceSelector).show();}else{$(this.options.slyOldPriceSelector).hide();}\n$(document).trigger('updateMsrpPriceBlock',[optionId,this.options.spConfig.optionPrices,$priceBox]);},_displayNormalPriceLabel:function(){var shouldBeShown=false;_.each(this.options.settings,function(element){if(element.value===''){shouldBeShown=true;}});if(shouldBeShown){$(this.options.normalPriceLabelSelector).show();}else{$(this.options.normalPriceLabelSelector).hide();}},_onGalleryLoaded:function(element){var galleryObject=element.data('gallery');this.options.mediaGalleryInitial=galleryObject.returnCurrentImages();},_displayTierPriceBlock:function(optionId){var tierPrices=typeof optionId!='undefined'&&this.options.spConfig.optionPrices[optionId].tierPrices;if(_.isArray(tierPrices)&&tierPrices.length>0){if(this.options.tierPriceTemplate){$(this.options.tierPriceBlockSelector).html(mageTemplate(this.options.tierPriceTemplate,{'tierPrices':tierPrices,'$t':$t,'currencyFormat':this.options.spConfig.currencyFormat,'priceUtils':priceUtils})).show();}}else{$(this.options.tierPriceBlockSelector).hide();}}});return $.mage.configurable;});","Magento_ConfigurableProduct/js/catalog-add-to-cart.min.js":"require(['jquery'],function($){'use strict';$('body').on('catalogCategoryAddToCartRedirect',function(event,data){$(data.form).find('select[name*=\"super\"]').each(function(index,item){data.redirectParameters.push(item.config.id+'='+$(item).val());});});});","Magento_ConfigurableProduct/js/product/view/product-info-resolver.min.js":"define(['underscore','Magento_Catalog/js/product/view/product-info'],function(_,productInfo){'use strict';return function($form){var optionValues=[],product=_.findWhere($form.serializeArray(),{name:'product'}),productId;if(!_.isUndefined(product)){productId=product.value;_.each($form.serializeArray(),function(item){if(item.name.indexOf('super_attribute')!==-1){optionValues.push(item.value);}});optionValues.sort();productInfo().push({'id':productId,'optionValues':optionValues});}\nreturn _.uniq(productInfo(),function(item){var optionValuesStr=item.optionValues?item.optionValues.join():'';return item.id+optionValuesStr;});};});","Magento_ReCaptchaCheckoutSalesRule/js/checkout-sales-rule.min.js":"define(['Magento_ReCaptchaWebapiUi/js/webapiReCaptcha','Magento_ReCaptchaWebapiUi/js/webapiReCaptchaRegistry','jquery','Magento_SalesRule/js/action/set-coupon-code','Magento_SalesRule/js/action/cancel-coupon','Magento_Checkout/js/model/quote','ko'],function(Component,recaptchaRegistry,$,setCouponCodeAction,cancelCouponAction,quote,ko){'use strict';var totals=quote.getTotals(),couponCode=ko.observable(null),isApplied;if(totals()){couponCode(totals()['coupon_code']);}\nisApplied=ko.observable(couponCode()!=null);return Component.extend({initParentForm:function(parentForm,widgetId){var self=this,xRecaptchaValue,captchaId=this.getReCaptchaId();this._super();if(couponCode()!=null){if(isApplied){self.validateReCaptcha(true);$('#'+captchaId).hide();}}\nif(recaptchaRegistry.triggers.hasOwnProperty('recaptcha-checkout-coupon-apply')){recaptchaRegistry.addListener('recaptcha-checkout-coupon-apply',function(token){xRecaptchaValue=token;});}\nsetCouponCodeAction.registerDataModifier(function(headers){headers['X-ReCaptcha']=xRecaptchaValue;});if(self.getIsInvisibleRecaptcha()){grecaptcha.execute(widgetId);self.validateReCaptcha(true);}\nsetCouponCodeAction.registerFailCallback(function(){if(self.getIsInvisibleRecaptcha()){grecaptcha.execute(widgetId);self.validateReCaptcha(true);}else{self.validateReCaptcha(false);grecaptcha.reset(widgetId);$('#'+captchaId).show();}});setCouponCodeAction.registerSuccessCallback(function(){self.validateReCaptcha(true);$('#'+captchaId).hide();});cancelCouponAction.registerSuccessCallback(function(){self.validateReCaptcha(false);grecaptcha.reset(widgetId);$('#'+captchaId).show();});}});});","Magento_Swatches/js/swatch-renderer.min.js":"define(['jquery','underscore','mage/template','mage/smart-keyboard-handler','mage/translate','priceUtils','jquery-ui-modules/widget','jquery/jquery.parsequery','mage/validation/validation'],function($,_,mageTemplate,keyboardHandler,$t,priceUtils){'use strict';$.widget('mage.validation',$.mage.validation,{listenFormValidateHandler:function(event,validation){var swatchWrapper,firstActive,swatches,swatch,successList,errorList,firstSwatch;this._superApply(arguments);swatchWrapper='.swatch-attribute-options';swatches=$(event.target).find(swatchWrapper);if(!swatches.length){return;}\nswatch='.swatch-attribute';firstActive=$(validation.errorList[0].element||[]);successList=validation.successList;errorList=validation.errorList;firstSwatch=$(firstActive).parent(swatch).find(swatchWrapper);keyboardHandler.focus(swatches);$.each(successList,function(index,item){$(item).parent(swatch).find(swatchWrapper).attr('aria-invalid',false);});$.each(errorList,function(index,item){$(item.element).parent(swatch).find(swatchWrapper).attr('aria-invalid',true);});if(firstSwatch.length){$(firstSwatch).trigger('focus');}}});$.widget('mage.SwatchRendererTooltip',{options:{delay:200,tooltipClass:'swatch-option-tooltip'},_init:function(){var $widget=this,$this=this.element,$element=$('.'+$widget.options.tooltipClass),timer,type=parseInt($this.data('option-type'),10),label=$this.data('option-label'),thumb=$this.data('option-tooltip-thumb'),value=$this.data('option-tooltip-value'),width=$this.data('thumb-width'),height=$this.data('thumb-height'),$image,$title,$corner;if(!$element.length){$element=$('<div class=\"'+\n$widget.options.tooltipClass+'\"><div class=\"image\"></div><div class=\"title\"></div><div class=\"corner\"></div></div>');$('body').append($element);}\n$image=$element.find('.image');$title=$element.find('.title');$corner=$element.find('.corner');$this.on('mouseenter',function(){if(!$this.hasClass('disabled')){timer=setTimeout(function(){var leftOpt=null,leftCorner=0,left,$window;if(type===2){$image.css({'background':'url(\"'+thumb+'\") no-repeat center','background-size':'initial','width':width+'px','height':height+'px'});$image.show();}else if(type===1){$image.css({background:value});$image.show();}else if(type===0||type===3){$image.hide();}\n$title.text(label);leftOpt=$this.offset().left;left=leftOpt+$this.width()/ 2-$element.width()/ 2;$window=$(window);if(left<0){left=5;}else if(left+$element.width()>$window.width()){left=$window.width()-$element.width()-5;}\nleftCorner=0;if($element.width()<$this.width()){leftCorner=$element.width()/ 2-3;}else{leftCorner=(leftOpt>left?leftOpt-left:left-leftOpt)+$this.width()/ 2-6;}\n$corner.css({left:leftCorner});$element.css({left:left,top:$this.offset().top-$element.height()-$corner.height()-18}).show();},$widget.options.delay);}});$this.on('mouseleave',function(){$element.hide();clearTimeout(timer);});$(document).on('tap',function(){$element.hide();clearTimeout(timer);});$this.on('tap',function(event){event.stopPropagation();});}});$.widget('mage.SwatchRenderer',{options:{classes:{attributeClass:'swatch-attribute',attributeLabelClass:'swatch-attribute-label',attributeSelectedOptionLabelClass:'swatch-attribute-selected-option',attributeOptionsWrapper:'swatch-attribute-options',attributeInput:'swatch-input',optionClass:'swatch-option',selectClass:'swatch-select',moreButton:'swatch-more',loader:'swatch-option-loading'},jsonConfig:{},jsonSwatchConfig:{},selectorProduct:'.product-info-main',selectorProductPrice:'[data-role=priceBox]',mediaGallerySelector:'[data-gallery-role=gallery-placeholder]',selectorProductTile:'.product-item',numberToShow:false,onlySwatches:false,enableControlLabel:true,controlLabelId:'',moreButtonText:$t('More'),mediaCallback:'',mediaCache:{},mediaGalleryInitial:[{}],useAjax:false,gallerySwitchStrategy:'replace',inProductList:false,slyOldPriceSelector:'.sly-old-price',tierPriceTemplateSelector:'#tier-prices-template',tierPriceBlockSelector:'[data-role=\"tier-price-block\"]',tierPriceTemplate:'',normalPriceLabelSelector:'.product-info-main .normal-price .price-label',qtyInfo:'#qty'},getProduct:function(){var products=this._CalcProducts();return _.isArray(products)?products[0]:null;},getProductId:function(){var products=this._CalcProducts();return _.isArray(products)&&products.length===1?products[0]:null;},_init:function(){if($(this.element).attr('data-rendered')){return;}\n$(this.element).attr('data-rendered',true);if(_.isEmpty(this.options.jsonConfig.images)){this.options.useAjax=true;this._debouncedLoadProductMedia=_.debounce(this._LoadProductMedia.bind(this),500);}\nthis.options.tierPriceTemplate=$(this.options.tierPriceTemplateSelector).html();if(this.options.jsonConfig!==''&&this.options.jsonSwatchConfig!==''){this.options.jsonConfig.mappedAttributes=_.clone(this.options.jsonConfig.attributes);this._sortAttributes();this._RenderControls();this._setPreSelectedGallery();$(this.element).trigger('swatch.initialized');}else{console.log('SwatchRenderer: No input data received');}},_sortAttributes:function(){this.options.jsonConfig.attributes=_.sortBy(this.options.jsonConfig.attributes,function(attribute){return parseInt(attribute.position,10);});},_create:function(){var options=this.options,gallery=$('[data-gallery-role=gallery-placeholder]','.column.main'),productData=this._determineProductData(),$main=productData.isInProductView?this.element.parents('.column.main'):this.element.parents('.product-item-info');if(productData.isInProductView){gallery.data('gallery')?this._onGalleryLoaded(gallery):gallery.on('gallery:loaded',this._onGalleryLoaded.bind(this,gallery));}else{options.mediaGalleryInitial=[{'img':$main.find('.product-image-photo').attr('src')}];}\nthis.productForm=this.element.parents(this.options.selectorProductTile).find('form:first');this.inProductList=this.productForm.length>0;$(this.options.qtyInfo).on('input',this._onQtyChanged.bind(this));},_determineProductData:function(){var productId,isInProductView=false;productId=this.element.parents('.product-item-details').find('.price-box.price-final_price').attr('data-product-id');if(!productId){productId=$('[name=product]').val();isInProductView=productId>0;}\nreturn{productId:productId,isInProductView:isInProductView};},_RenderControls:function(){var $widget=this,container=this.element,classes=this.options.classes,chooseText=this.options.jsonConfig.chooseText,showTooltip=this.options.showTooltip;$widget.optionsMap={};$.each(this.options.jsonConfig.attributes,function(){var item=this,controlLabelId='option-label-'+item.code+'-'+item.id,options=$widget._RenderSwatchOptions(item,controlLabelId),select=$widget._RenderSwatchSelect(item,chooseText),input=$widget._RenderFormInput(item),listLabel='',label='';if($widget.options.onlySwatches&&!$widget.options.jsonSwatchConfig.hasOwnProperty(item.id)){return;}\nif($widget.options.enableControlLabel){label+='<span id=\"'+controlLabelId+'\" class=\"'+classes.attributeLabelClass+'\">'+\n$('<i></i>').text(item.label).html()+'</span>'+'<span class=\"'+classes.attributeSelectedOptionLabelClass+'\"></span>';}\nif($widget.inProductList){$widget.productForm.append(input);input='';listLabel='aria-label=\"'+$('<i></i>').text(item.label).html()+'\"';}else{listLabel='aria-labelledby=\"'+controlLabelId+'\"';}\ncontainer.append('<div class=\"'+classes.attributeClass+' '+item.code+'\" '+'data-attribute-code=\"'+item.code+'\" '+'data-attribute-id=\"'+item.id+'\">'+\nlabel+'<div aria-activedescendant=\"\" '+'tabindex=\"0\" '+'aria-invalid=\"false\" '+'aria-required=\"true\" '+'role=\"listbox\" '+listLabel+'class=\"'+classes.attributeOptionsWrapper+' clearfix\">'+\noptions+select+'</div>'+input+'</div>');$widget.optionsMap[item.id]={};$.each(item.options,function(){if(this.products.length>0){$widget.optionsMap[item.id][this.id]={price:parseInt($widget.options.jsonConfig.optionPrices[this.products[0]].finalPrice.amount,10),products:this.products};}});});if(showTooltip===1){container.find('[data-option-type=\"1\"], [data-option-type=\"2\"],'+' [data-option-type=\"0\"], [data-option-type=\"3\"]').SwatchRendererTooltip();}\n$('.'+classes.moreButton).nextAll().hide();$widget._EventListener();$widget._Rewind(container);$widget._EmulateSelected($.parseQuery());$widget._EmulateSelected($widget._getSelectedAttributes());},disableSwatchForOutOfStockProducts:function(){let $widget=this,container=this.element;$.each(this.options.jsonConfig.attributes,function(){let item=this;if($widget.options.jsonConfig.canDisplayShowOutOfStockStatus){let salableProducts=$widget.options.jsonConfig.salable[item.id],swatchOptions=$(container).find(`[data-attribute-id='${item.id}']`).find('.swatch-option');swatchOptions.each(function(key,value){let optionId=$(value).data('option-id');if(!salableProducts.hasOwnProperty(optionId)){$(value).attr('disabled',true).addClass('disabled');}});}});},_RenderSwatchOptions:function(config,controlId){var optionConfig=this.options.jsonSwatchConfig[config.id],optionClass=this.options.classes.optionClass,sizeConfig=this.options.jsonSwatchImageSizeConfig,moreLimit=parseInt(this.options.numberToShow,10),moreClass=this.options.classes.moreButton,moreText=this.options.moreButtonText,countAttributes=0,html='';if(!this.options.jsonSwatchConfig.hasOwnProperty(config.id)){return'';}\n$.each(config.options,function(index){var id,type,value,thumb,label,width,height,attr,swatchImageWidth,swatchImageHeight;if(!optionConfig.hasOwnProperty(this.id)){return'';}\nif(moreLimit===countAttributes++){html+='<a href=\"#\" class=\"'+moreClass+'\"><span>'+moreText+'</span></a>';}\nid=this.id;type=parseInt(optionConfig[id].type,10);value=optionConfig[id].hasOwnProperty('value')?$('<i></i>').text(optionConfig[id].value).html():'';thumb=optionConfig[id].hasOwnProperty('thumb')?optionConfig[id].thumb:'';width=_.has(sizeConfig,'swatchThumb')?sizeConfig.swatchThumb.width:110;height=_.has(sizeConfig,'swatchThumb')?sizeConfig.swatchThumb.height:90;label=this.label?$('<i></i>').text(this.label).html():'';attr=' id=\"'+controlId+'-item-'+id+'\"'+' index=\"'+index+'\"'+' aria-checked=\"false\"'+' aria-describedby=\"'+controlId+'\"'+' tabindex=\"0\"'+' data-option-type=\"'+type+'\"'+' data-option-id=\"'+id+'\"'+' data-option-label=\"'+label+'\"'+' aria-label=\"'+label+'\"'+' role=\"option\"'+' data-thumb-width=\"'+width+'\"'+' data-thumb-height=\"'+height+'\"';attr+=thumb!==''?' data-option-tooltip-thumb=\"'+thumb+'\"':'';attr+=value!==''?' data-option-tooltip-value=\"'+value+'\"':'';swatchImageWidth=_.has(sizeConfig,'swatchImage')?sizeConfig.swatchImage.width:30;swatchImageHeight=_.has(sizeConfig,'swatchImage')?sizeConfig.swatchImage.height:20;if(!this.hasOwnProperty('products')||this.products.length<=0){attr+=' data-option-empty=\"true\"';}\nif(type===0){html+='<div class=\"'+optionClass+' text\" '+attr+'>'+(value?value:label)+'</div>';}else if(type===1){html+='<div class=\"'+optionClass+' color\" '+attr+' style=\"background: '+value+' no-repeat center; background-size: initial;\">'+''+'</div>';}else if(type===2){html+='<div class=\"'+optionClass+' image\" '+attr+' style=\"background: url('+value+') no-repeat center; background-size: initial;width:'+\nswatchImageWidth+'px; height:'+swatchImageHeight+'px\">'+''+'</div>';}else if(type===3){html+='<div class=\"'+optionClass+'\" '+attr+'></div>';}else{html+='<div class=\"'+optionClass+'\" '+attr+'>'+label+'</div>';}});return html;},_RenderSwatchSelect:function(config,chooseText){var html;if(this.options.jsonSwatchConfig.hasOwnProperty(config.id)){return'';}\nhtml='<select class=\"'+this.options.classes.selectClass+' '+config.code+'\">'+'<option value=\"0\" data-option-id=\"0\">'+chooseText+'</option>';$.each(config.options,function(){var label=this.label,attr=' value=\"'+this.id+'\" data-option-id=\"'+this.id+'\"';if(!this.hasOwnProperty('products')||this.products.length<=0){attr+=' data-option-empty=\"true\"';}\nhtml+='<option '+attr+'>'+label+'</option>';});html+='</select>';return html;},_RenderFormInput:function(config){return'<input class=\"'+this.options.classes.attributeInput+' super-attribute-select\" '+'name=\"super_attribute['+config.id+']\" '+'type=\"text\" '+'value=\"\" '+'data-selector=\"super_attribute['+config.id+']\" '+'data-validate=\"{required: true}\" '+'aria-required=\"true\" '+'aria-invalid=\"false\">';},_EventListener:function(){var $widget=this,options=this.options.classes,target;$widget.element.on('click','.'+options.optionClass,function(){return $widget._OnClick($(this),$widget);});$widget.element.on('change','.'+options.selectClass,function(){return $widget._OnChange($(this),$widget);});$widget.element.on('click','.'+options.moreButton,function(e){e.preventDefault();return $widget._OnMoreClick($(this));});$widget.element.on('keydown',function(e){if(e.which===13){target=$(e.target);if(target.is('.'+options.optionClass)){return $widget._OnClick(target,$widget);}else if(target.is('.'+options.selectClass)){return $widget._OnChange(target,$widget);}else if(target.is('.'+options.moreButton)){e.preventDefault();return $widget._OnMoreClick(target);}}});},_loadMedia:function(){var $main=this.inProductList?this.element.parents('.product-item-info'):this.element.parents('.column.main'),images;if(this.options.useAjax){this._debouncedLoadProductMedia();}else{images=this.options.jsonConfig.images[this.getProduct()];if(!images){images=this.options.mediaGalleryInitial;}\nthis.updateBaseImage(this._sortImages(images),$main,!this.inProductList);}},_sortImages:function(images){return _.sortBy(images,function(image){return parseInt(image.position,10);});},_OnClick:function($this,$widget){var $parent=$this.parents('.'+$widget.options.classes.attributeClass),$wrapper=$this.parents('.'+$widget.options.classes.attributeOptionsWrapper),$label=$parent.find('.'+$widget.options.classes.attributeSelectedOptionLabelClass),attributeId=$parent.data('attribute-id'),$input=$parent.find('.'+$widget.options.classes.attributeInput),checkAdditionalData=JSON.parse(this.options.jsonSwatchConfig[attributeId]['additional_data']),$priceBox=$widget.element.parents($widget.options.selectorProduct).find(this.options.selectorProductPrice);if($widget.inProductList){$input=$widget.productForm.find('.'+$widget.options.classes.attributeInput+'[name=\"super_attribute['+attributeId+']\"]');}\nif($this.hasClass('disabled')){return;}\nif($this.hasClass('selected')){$parent.removeAttr('data-option-selected').find('.selected').removeClass('selected');$input.val('');$label.text('');$this.attr('aria-checked',false);}else{$parent.attr('data-option-selected',$this.data('option-id')).find('.selected').removeClass('selected');$label.text($this.data('option-label'));$input.val($this.data('option-id'));$input.attr('data-attr-name',this._getAttributeCodeById(attributeId));$this.addClass('selected');$widget._toggleCheckedAttributes($this,$wrapper);}\n$widget._Rebuild();if($priceBox.is(':data(mage-priceBox)')){$widget._UpdatePrice();}\n$(document).trigger('updateMsrpPriceBlock',[this._getSelectedOptionPriceIndex(),$widget.options.jsonConfig.optionPrices,$priceBox]);if(parseInt(checkAdditionalData['update_product_preview_image'],10)===1){$widget._loadMedia();}\n$input.trigger('change');},_getSelectedOptionPriceIndex:function(){var allowedProduct=this._getAllowedProductWithMinPrice(this._CalcProducts());if(_.isEmpty(allowedProduct)){return undefined;}\nreturn allowedProduct;},_getAttributeCodeById:function(attributeId){var attribute=this.options.jsonConfig.mappedAttributes[attributeId];return attribute?attribute.code:attributeId;},_toggleCheckedAttributes:function($this,$wrapper){$wrapper.attr('aria-activedescendant',$this.attr('id')).find('.'+this.options.classes.optionClass).attr('aria-checked',false);$this.attr('aria-checked',true);},_OnChange:function($this,$widget){var $parent=$this.parents('.'+$widget.options.classes.attributeClass),attributeId=$parent.data('attribute-id'),$input=$parent.find('.'+$widget.options.classes.attributeInput);if($widget.productForm.length>0){$input=$widget.productForm.find('.'+$widget.options.classes.attributeInput+'[name=\"super_attribute['+attributeId+']\"]');}\nif($this.val()>0){$parent.attr('data-option-selected',$this.val());$input.val($this.val());}else{$parent.removeAttr('data-option-selected');$input.val('');}\n$widget._Rebuild();$widget._UpdatePrice();$widget._loadMedia();$input.trigger('change');},_OnMoreClick:function($this){$this.nextAll().show();$this.trigger('blur').remove();},_Rewind:function(controls){controls.find('div[data-option-id], option[data-option-id]').removeClass('disabled').prop('disabled',false);controls.find('div[data-option-empty], option[data-option-empty]').attr('disabled',true).addClass('disabled').attr('tabindex','-1');this.disableSwatchForOutOfStockProducts();},_Rebuild:function(){var $widget=this,controls=$widget.element.find('.'+$widget.options.classes.attributeClass+'[data-attribute-id]'),selected=controls.filter('[data-option-selected]');$widget._Rewind(controls);if(selected.length<=0){return;}\ncontrols.each(function(){var $this=$(this),id=$this.data('attribute-id'),products=$widget._CalcProducts(id);if(selected.length===1&&selected.first().data('attribute-id')===id){return;}\n$this.find('[data-option-id]').each(function(){var $element=$(this),option=$element.data('option-id');if(!$widget.optionsMap.hasOwnProperty(id)||!$widget.optionsMap[id].hasOwnProperty(option)||$element.hasClass('selected')||$element.is(':selected')){return;}\nif(_.intersection(products,$widget.optionsMap[id][option].products).length<=0){$element.attr('disabled',true).addClass('disabled');}});});},_CalcProducts:function($skipAttributeId){var $widget=this,selectedOptions='.'+$widget.options.classes.attributeClass+'[data-option-selected]',products=[];$widget.element.find(selectedOptions).each(function(){var id=$(this).data('attribute-id'),option=$(this).attr('data-option-selected');if($skipAttributeId!==undefined&&$skipAttributeId===id){return;}\nif(!$widget.optionsMap.hasOwnProperty(id)||!$widget.optionsMap[id].hasOwnProperty(option)){return;}\nif(products.length===0){products=$widget.optionsMap[id][option].products;}else{products=_.intersection(products,$widget.optionsMap[id][option].products);}});return products;},_UpdatePrice:function(){var $widget=this,$product=$widget.element.parents($widget.options.selectorProduct),$productPrice=$product.find(this.options.selectorProductPrice),result=$widget._getNewPrices(),tierPriceHtml,isShow;$productPrice.trigger('updatePrice',{'prices':$widget._getPrices(result,$productPrice.priceBox('option').prices)});isShow=typeof result!='undefined'&&result.oldPrice.amount!==result.finalPrice.amount;$productPrice.find('span:first').toggleClass('special-price',isShow);$product.find(this.options.slyOldPriceSelector)[isShow?'show':'hide']();if(typeof result!='undefined'&&result.tierPrices&&result.tierPrices.length){if(this.options.tierPriceTemplate){tierPriceHtml=mageTemplate(this.options.tierPriceTemplate,{'tierPrices':result.tierPrices,'$t':$t,'currencyFormat':this.options.jsonConfig.currencyFormat,'priceUtils':priceUtils});$(this.options.tierPriceBlockSelector).html(tierPriceHtml).show();}}else{$(this.options.tierPriceBlockSelector).hide();}\n$(this.options.normalPriceLabelSelector).hide();_.each($('.'+this.options.classes.attributeOptionsWrapper),function(attribute){if($(attribute).find('.'+this.options.classes.optionClass+'.selected').length===0){if($(attribute).find('.'+this.options.classes.selectClass).length>0){_.each($(attribute).find('.'+this.options.classes.selectClass),function(dropdown){if($(dropdown).val()==='0'){$(this.options.normalPriceLabelSelector).show();}}.bind(this));}else{$(this.options.normalPriceLabelSelector).show();}}}.bind(this));},_getNewPrices:function(){var $widget=this,newPrices=$widget.options.jsonConfig.prices,allowedProduct=this._getAllowedProductWithMinPrice(this._CalcProducts());if(!_.isEmpty(allowedProduct)){newPrices=this.options.jsonConfig.optionPrices[allowedProduct];}\nreturn newPrices;},_getPrices:function(newPrices,displayPrices){var $widget=this;if(_.isEmpty(newPrices)){newPrices=$widget._getNewPrices();}\n_.each(displayPrices,function(price,code){if(newPrices[code]){displayPrices[code].amount=newPrices[code].amount-displayPrices[code].amount;}});return displayPrices;},_getAllowedProductWithMinPrice:function(allowedProducts){var optionPrices=this.options.jsonConfig.optionPrices,product={},optionFinalPrice,optionMinPrice;_.each(allowedProducts,function(allowedProduct){optionFinalPrice=parseFloat(optionPrices[allowedProduct].finalPrice.amount);if(_.isEmpty(product)||optionFinalPrice<optionMinPrice){optionMinPrice=optionFinalPrice;product=allowedProduct;}},this);return product;},_LoadProductMedia:function(){var $widget=this,$this=$widget.element,productData=this._determineProductData(),mediaCallData,mediaCacheKey,mediaSuccessCallback=function(data){if(!(mediaCacheKey in $widget.options.mediaCache)){$widget.options.mediaCache[mediaCacheKey]=data;}\n$widget._ProductMediaCallback($this,data,productData.isInProductView);setTimeout(function(){$widget._DisableProductMediaLoader($this);},300);};if(!$widget.options.mediaCallback){return;}\nmediaCallData={'product_id':this.getProduct()};mediaCacheKey=JSON.stringify(mediaCallData);if(mediaCacheKey in $widget.options.mediaCache){$widget._XhrKiller();$widget._EnableProductMediaLoader($this);mediaSuccessCallback($widget.options.mediaCache[mediaCacheKey]);}else{mediaCallData.isAjax=true;$widget._XhrKiller();$widget._EnableProductMediaLoader($this);$widget.xhr=$.ajax({url:$widget.options.mediaCallback,cache:true,type:'GET',dataType:'json',data:mediaCallData,success:mediaSuccessCallback}).done(function(){$widget._XhrKiller();});}},_EnableProductMediaLoader:function($this){var $widget=this;if($('body.catalog-product-view').length>0){$this.parents('.column.main').find('.photo.image').addClass($widget.options.classes.loader);}else{$this.parents('.product-item-info').find('.product-image-photo').addClass($widget.options.classes.loader);}},_DisableProductMediaLoader:function($this){var $widget=this;if($('body.catalog-product-view').length>0){$this.parents('.column.main').find('.photo.image').removeClass($widget.options.classes.loader);}else{$this.parents('.product-item-info').find('.product-image-photo').removeClass($widget.options.classes.loader);}},_ProductMediaCallback:function($this,response,isInProductView){var $main=isInProductView?$this.parents('.column.main'):$this.parents('.product-item-info'),$widget=this,images=[],support=function(e){return e.hasOwnProperty('large')&&e.hasOwnProperty('medium')&&e.hasOwnProperty('small');};if(_.size($widget)<1||!support(response)){this.updateBaseImage(this.options.mediaGalleryInitial,$main,isInProductView);return;}\nimages.push({full:response.large,img:response.medium,thumb:response.small,isMain:true});if(response.hasOwnProperty('gallery')){$.each(response.gallery,function(){if(!support(this)||response.large===this.large){return;}\nimages.push({full:this.large,img:this.medium,thumb:this.small});});}\nthis.updateBaseImage(images,$main,isInProductView);},_setImageType:function(images){images.map(function(img){if(!img.type){img.type='image';}});return images;},updateBaseImage:function(images,context,isInProductView){var justAnImage=images[0],initialImages=this.options.mediaGalleryInitial,imagesToUpdate,gallery=context.find(this.options.mediaGallerySelector).data('gallery'),isInitial;if(isInProductView){if(_.isUndefined(gallery)){context.find(this.options.mediaGallerySelector).on('gallery:loaded',function(){this.updateBaseImage(images,context,isInProductView);}.bind(this));return;}\nimagesToUpdate=images.length?this._setImageType($.extend(true,[],images)):[];isInitial=_.isEqual(imagesToUpdate,initialImages);if(this.options.gallerySwitchStrategy==='prepend'&&!isInitial){imagesToUpdate=imagesToUpdate.concat(initialImages);}\nimagesToUpdate=this._setImageIndex(imagesToUpdate);gallery.updateData(imagesToUpdate);this._addFotoramaVideoEvents(isInitial);}else if(justAnImage&&justAnImage.img){context.find('.product-image-photo').attr('src',justAnImage.img);}},_addFotoramaVideoEvents:function(isInitial){if(_.isUndefined($.mage.AddFotoramaVideoEvents)){return;}\nif(isInitial){$(this.options.mediaGallerySelector).AddFotoramaVideoEvents();return;}\n$(this.options.mediaGallerySelector).AddFotoramaVideoEvents({selectedOption:this.getProduct(),dataMergeStrategy:this.options.gallerySwitchStrategy});},_setImageIndex:function(images){var length=images.length,i;for(i=0;length>i;i++){images[i].i=i+1;}\nreturn images;},_XhrKiller:function(){var $widget=this;if($widget.xhr!==undefined&&$widget.xhr!==null){$widget.xhr.abort();$widget.xhr=null;}},_EmulateSelected:function(selectedAttributes){$.each(selectedAttributes,$.proxy(function(attributeCode,optionId){var elem=this.element.find('.'+this.options.classes.attributeClass+'[data-attribute-code=\"'+attributeCode+'\"] [data-option-id=\"'+optionId+'\"]'),parentInput=elem.parent();if(elem.hasClass('selected')){return;}\nif(parentInput.hasClass(this.options.classes.selectClass)){parentInput.val(optionId);parentInput.trigger('change');}else{elem.trigger('click');}},this));},_EmulateSelectedByAttributeId:function(selectedAttributes){$.each(selectedAttributes,$.proxy(function(attributeId,optionId){var elem=this.element.find('.'+this.options.classes.attributeClass+'[data-attribute-id=\"'+attributeId+'\"] [data-option-id=\"'+optionId+'\"]'),parentInput=elem.parent();if(elem.hasClass('selected')){return;}\nif(parentInput.hasClass(this.options.classes.selectClass)){parentInput.val(optionId);parentInput.trigger('change');}else{elem.trigger('click');}},this));},_getSelectedAttributes:function(){var hashIndex=window.location.href.indexOf('#'),selectedAttributes={},params;if(hashIndex!==-1){params=$.parseQuery(window.location.href.substr(hashIndex+1));selectedAttributes=_.invert(_.mapObject(_.invert(params),function(attributeId){var attribute=this.options.jsonConfig.mappedAttributes[attributeId];return attribute?attribute.code:attributeId;}.bind(this)));}\nreturn selectedAttributes;},_onGalleryLoaded:function(element){var galleryObject=element.data('gallery');this.options.mediaGalleryInitial=galleryObject.returnCurrentImages();},_setPreSelectedGallery:function(){var mediaCallData;if(this.options.jsonConfig.preSelectedGallery){mediaCallData={'product_id':this.getProduct()};this.options.mediaCache[JSON.stringify(mediaCallData)]=this.options.jsonConfig.preSelectedGallery;}},_onQtyChanged:function(){var $price=this.element.parents(this.options.selectorProduct).find(this.options.selectorProductPrice);$price.trigger('updatePrice',{'prices':this._getPrices(this._getNewPrices(),$price.priceBox('option').prices)});}});return $.mage.SwatchRenderer;});","Magento_Swatches/js/configurable-customer-data.min.js":"require(['jquery','Magento_ConfigurableProduct/js/options-updater'],function($,Updater){'use strict';var selectors={formSelector:'#product_addtocart_form',swatchSelector:'.swatch-opt'},swatchWidgetName='mage-SwatchRenderer',widgetInitEvent='swatch.initialized',updateSwatchOptions=function(){var swatchWidget=$(selectors.swatchSelector).data(swatchWidgetName);if(!swatchWidget||!swatchWidget._EmulateSelectedByAttributeId){return;}\nswatchWidget._EmulateSelectedByAttributeId(this.productOptions);},updater=new Updater(widgetInitEvent,updateSwatchOptions);updater.listen();});","Magento_Swatches/js/catalog-add-to-cart.min.js":"require(['jquery'],function($){'use strict';$('body').on('catalogCategoryAddToCartRedirect',function(event,data){$(data.form).find('[name*=\"super\"]').each(function(index,item){var $item=$(item),attr;if($item.attr('data-attr-name')){attr=$item.attr('data-attr-name');}else{attr=$item.parent().attr('attribute-code');}\ndata.redirectParameters.push(attr+'='+$item.val());});});});","Magento_Downloadable/js/downloadable.min.js":"define(['jquery','jquery-ui-modules/widget','Magento_Catalog/js/price-box'],function($){'use strict';$.widget('mage.downloadable',{options:{priceHolderSelector:'.price-box',linkElement:'',allElements:''},_init:function initLinks(){var element=this.element,options=$(this.options.linkElement,element);options.trigger('change');},_create:function(){var self=this;this.element.find(this.options.linkElement).on('change',$.proxy(function(){this._reloadPrice();},this));this.element.find(this.options.allElements).on('change',function(){if(this.checked){$('label[for=\"'+this.id+'\"] > span').text($(this).attr('data-checked'));self.element.find(self.options.linkElement+':not(:checked)').each(function(){$(this).trigger('click');});}else{$('[for=\"'+this.id+'\"] > span').text($(this).attr('data-notchecked'));self.element.find(self.options.linkElement+':checked').each(function(){$(this).trigger('click');});}});this._reloadPrice();},_reloadPrice:function(){var finalPrice=0,basePrice=0;this.element.find(this.options.linkElement+':checked').each($.proxy(function(index,element){finalPrice+=this.options.config.links[$(element).val()].finalPrice;basePrice+=this.options.config.links[$(element).val()].basePrice;},this));$(this.options.priceHolderSelector).trigger('updatePrice',{'prices':{'finalPrice':{'amount':finalPrice},'basePrice':{'amount':basePrice}}});this.reloadAllCheckText();},reloadAllCheckText:function(){var allChecked=true,allElementsCheck=$(this.options.allElements),allElementsLabel=$('label[for=\"'+allElementsCheck.attr('id')+'\"] > span');$(this.options.linkElement).each(function(){if(!this.checked){allChecked=false;}});if(allChecked){allElementsLabel.text(allElementsCheck.attr('data-checked'));allElementsCheck.prop('checked',true);}else{allElementsLabel.text(allElementsCheck.attr('data-notchecked'));allElementsCheck.prop('checked',false);}}});return $.mage.downloadable;});","Magento_SalesRule/js/form/element/manage-coupon-codes.min.js":"define(['underscore','uiRegistry','Magento_Ui/js/form/components/fieldset','Magento_Ui/js/lib/view/utils/async'],function(_,uiRegistry,fieldset,async){'use strict';return fieldset.extend({initialize:function(elems,position){var obj=this;this._super();async.async('#sales-rule-form-tab-coupons',document.getElementById('container'),function(node){var useAutoGeneration=uiRegistry.get('sales_rule_form.sales_rule_form.rule_information.use_auto_generation');useAutoGeneration.on('checked',function(){obj.enableDisableFields();});obj.enableDisableFields();});return this;},enableDisableFields:function(){var selector,isUseAutoGenerationChecked,couponType,disableAuto;selector='[id=sales-rule-form-tab-coupons] input, [id=sales-rule-form-tab-coupons] select, '+'[id=sales-rule-form-tab-coupons] button';isUseAutoGenerationChecked=uiRegistry.get('sales_rule_form.sales_rule_form.rule_information.use_auto_generation').checked();couponType=uiRegistry.get('sales_rule_form.sales_rule_form.rule_information.coupon_type').value();disableAuto=couponType===3||isUseAutoGenerationChecked;_.each(document.querySelectorAll(selector),function(element){element.disabled=!disableAuto;});}});});","Magento_SalesRule/js/form/element/coupon-type.min.js":"define(['underscore','uiRegistry','Magento_Ui/js/form/element/select'],function(_,uiRegistry,select){'use strict';return select.extend({onUpdate:function(){if(this.value()!=this.displayOnlyForCouponType){uiRegistry.get('sales_rule_form.sales_rule_form.rule_information.use_auto_generation').checked(false);}\nthis.enableDisableFields();},enableDisableFields:function(){var selector,isUseAutoGenerationChecked,couponType,disableAuto;selector='[id=sales-rule-form-tab-coupons] input, [id=sales-rule-form-tab-coupons] select, '+'[id=sales-rule-form-tab-coupons] button';isUseAutoGenerationChecked=uiRegistry.get('sales_rule_form.sales_rule_form.rule_information.use_auto_generation').checked();couponType=uiRegistry.get('sales_rule_form.sales_rule_form.rule_information.coupon_type').value();disableAuto=couponType===3||isUseAutoGenerationChecked;_.each(document.querySelectorAll(selector),function(element){element.disabled=!disableAuto;});}});});","Magento_SalesRule/js/view/cart/totals/discount.min.js":"define(['Magento_SalesRule/js/view/summary/discount'],function(Component){'use strict';return Component.extend({defaults:{template:'Magento_SalesRule/cart/totals/discount'},isDisplayed:function(){return this.getPureValue()!=0;}});});","Magento_SalesRule/js/view/summary/discount.min.js":"define(['Magento_Checkout/js/view/summary/abstract-total','Magento_Checkout/js/model/quote'],function(Component,quote){'use strict';return Component.extend({defaults:{template:'Magento_SalesRule/summary/discount'},totals:quote.getTotals(),isDisplayed:function(){return this.isFullMode()&&this.getPureValue()!=0;},getCouponCode:function(){if(!this.totals()){return null;}\nreturn this.totals()['coupon_code'];},getCouponLabel:function(){if(!this.totals()){return null;}\nreturn this.totals()['coupon_label'];},getTitle:function(){var discountSegments;if(!this.totals()){return null;}\ndiscountSegments=this.totals()['total_segments'].filter(function(segment){return segment.code.indexOf('discount')!==-1;});return discountSegments.length?discountSegments[0].title:null;},getPureValue:function(){var price=0;if(this.totals()&&this.totals()['discount_amount']){price=parseFloat(this.totals()['discount_amount']);}\nreturn price;},getValue:function(){return this.getFormattedPrice(this.getPureValue());}});});","Magento_SalesRule/js/view/payment/discount-messages.min.js":"define(['Magento_Ui/js/view/messages','../../model/payment/discount-messages'],function(Component,messageContainer){'use strict';return Component.extend({initialize:function(config){return this._super(config,messageContainer);}});});","Magento_SalesRule/js/view/payment/captcha.min.js":"define(['Magento_Captcha/js/view/checkout/defaultCaptcha','Magento_Captcha/js/model/captchaList','Magento_SalesRule/js/action/set-coupon-code','Magento_SalesRule/js/action/cancel-coupon','Magento_Checkout/js/model/quote','ko'],function(defaultCaptcha,captchaList,setCouponCodeAction,cancelCouponAction,quote,ko){'use strict';var totals=quote.getTotals(),couponCode=ko.observable(null),isApplied;if(totals()){couponCode(totals()['coupon_code']);}\nisApplied=ko.observable(couponCode()!=null);return defaultCaptcha.extend({initialize:function(){var self=this,currentCaptcha;this._super();currentCaptcha=captchaList.getCaptchaByFormId(this.formId);if(currentCaptcha!=null){if(!isApplied()){currentCaptcha.setIsVisible(true);}\nthis.setCurrentCaptcha(currentCaptcha);setCouponCodeAction.registerDataModifier(function(headers){if(self.isRequired()){headers['X-Captcha']=self.captchaValue()();}});setCouponCodeAction.registerFailCallback(function(){if(self.isRequired()){self.refresh();}});setCouponCodeAction.registerSuccessCallback(function(){self.setIsVisible(false);});cancelCouponAction.registerSuccessCallback(function(){if(self.isRequired()){self.setIsVisible(true);}});}}});});","Magento_SalesRule/js/view/payment/discount.min.js":"define(['jquery','ko','uiComponent','Magento_Checkout/js/model/quote','Magento_SalesRule/js/action/set-coupon-code','Magento_SalesRule/js/action/cancel-coupon','Magento_SalesRule/js/model/coupon'],function($,ko,Component,quote,setCouponCodeAction,cancelCouponAction,coupon){'use strict';var totals=quote.getTotals(),couponCode=coupon.getCouponCode(),isApplied=coupon.getIsApplied();if(totals()){couponCode(totals()['coupon_code']);}\nisApplied(couponCode()!=null);return Component.extend({defaults:{template:'Magento_SalesRule/payment/discount'},couponCode:couponCode,isApplied:isApplied,apply:function(){if(this.validate()){setCouponCodeAction(couponCode(),isApplied);}},cancel:function(){if(this.validate()){couponCode('');cancelCouponAction(isApplied);}},validate:function(){var form='#discount-form';return $(form).validation()&&$(form).validation('isValid');}});});","Magento_SalesRule/js/model/place-order-mixin.min.js":"define(['jquery','mage/utils/wrapper','Magento_Checkout/js/model/quote','Magento_SalesRule/js/model/coupon','Magento_Checkout/js/action/get-totals'],function($,wrapper,quote,coupon,getTotalsAction){'use strict';return function(placeOrderAction){return wrapper.wrap(placeOrderAction,function(originalAction,paymentData,messageContainer){var result;$.when(result=originalAction(paymentData,messageContainer)).fail(function(){var deferred=$.Deferred(),updateCouponCallback=function(){if(quote.totals()&&!quote.totals()['coupon_code']){coupon.setCouponCode('');coupon.setIsApplied(false);}};getTotalsAction([],deferred);$.when(deferred).done(updateCouponCallback);});return result;});};});","Magento_SalesRule/js/model/shipping-save-processor-mixin.min.js":"define(['mage/utils/wrapper','Magento_Checkout/js/model/quote','Magento_SalesRule/js/model/coupon'],function(wrapper,quote,coupon){'use strict';return function(shippingSaveProcessor){shippingSaveProcessor.saveShippingInformation=wrapper.wrapSuper(shippingSaveProcessor.saveShippingInformation,function(type){var updateCouponCallback;updateCouponCallback=function(){if(quote.totals()&&!quote.totals()['coupon_code']){coupon.setCouponCode('');coupon.setIsApplied(false);}};return this._super(type).done(updateCouponCallback);});return shippingSaveProcessor;};});","Magento_SalesRule/js/model/coupon.min.js":"define(['ko','domReady!'],function(ko){'use strict';var couponCode=ko.observable(null),isApplied=ko.observable(null);return{couponCode:couponCode,isApplied:isApplied,getCouponCode:function(){return couponCode;},getIsApplied:function(){return isApplied;},setCouponCode:function(couponCodeValue){couponCode(couponCodeValue);},setIsApplied:function(isAppliedValue){isApplied(isAppliedValue);}};});","Magento_SalesRule/js/model/payment/discount-messages.min.js":"define(['Magento_Ui/js/model/messages'],function(Messages){'use strict';return new Messages();});","Magento_SalesRule/js/action/cancel-coupon.min.js":"define(['jquery','Magento_Checkout/js/model/quote','Magento_Checkout/js/model/resource-url-manager','Magento_Checkout/js/model/error-processor','Magento_SalesRule/js/model/payment/discount-messages','mage/storage','Magento_Checkout/js/action/get-payment-information','Magento_Checkout/js/model/totals','mage/translate','Magento_Checkout/js/model/full-screen-loader','Magento_Checkout/js/action/recollect-shipping-rates'],function($,quote,urlManager,errorProcessor,messageContainer,storage,getPaymentInformationAction,totals,$t,fullScreenLoader,recollectShippingRates){'use strict';var successCallbacks=[],action,callSuccessCallbacks;callSuccessCallbacks=function(){successCallbacks.forEach(function(callback){callback();});};action=function(isApplied){var quoteId=quote.getQuoteId(),url=urlManager.getCancelCouponUrl(quoteId),message=$t('Your coupon was successfully removed.');messageContainer.clear();fullScreenLoader.startLoader();return storage.delete(url,false).done(function(){var deferred=$.Deferred();totals.isLoading(true);recollectShippingRates();getPaymentInformationAction(deferred);$.when(deferred).done(function(){isApplied(false);totals.isLoading(false);fullScreenLoader.stopLoader();callSuccessCallbacks();});messageContainer.addSuccessMessage({'message':message});}).fail(function(response){totals.isLoading(false);fullScreenLoader.stopLoader();errorProcessor.process(response,messageContainer);});};action.registerSuccessCallback=function(callback){successCallbacks.push(callback);};return action;});","Magento_SalesRule/js/action/set-coupon-code.min.js":"define(['ko','jquery','Magento_Checkout/js/model/quote','Magento_Checkout/js/model/resource-url-manager','Magento_Checkout/js/model/error-processor','Magento_SalesRule/js/model/payment/discount-messages','mage/storage','mage/translate','Magento_Checkout/js/action/get-payment-information','Magento_Checkout/js/model/totals','Magento_Checkout/js/model/full-screen-loader','Magento_Checkout/js/action/recollect-shipping-rates'],function(ko,$,quote,urlManager,errorProcessor,messageContainer,storage,$t,getPaymentInformationAction,totals,fullScreenLoader,recollectShippingRates){'use strict';var dataModifiers=[],successCallbacks=[],failCallbacks=[],action;action=function(couponCode,isApplied){var quoteId=quote.getQuoteId(),url=urlManager.getApplyCouponUrl(couponCode,quoteId),message=$t('Your coupon was successfully applied.'),data={},headers={};dataModifiers.forEach(function(modifier){modifier(headers,data);});fullScreenLoader.startLoader();return storage.put(url,data,false,null,headers).done(function(response){var deferred;if(response){deferred=$.Deferred();isApplied(true);totals.isLoading(true);recollectShippingRates();getPaymentInformationAction(deferred);$.when(deferred).done(function(){fullScreenLoader.stopLoader();totals.isLoading(false);});messageContainer.addSuccessMessage({'message':message});successCallbacks.forEach(function(callback){callback(response);});}}).fail(function(response){fullScreenLoader.stopLoader();totals.isLoading(false);errorProcessor.process(response,messageContainer);failCallbacks.forEach(function(callback){callback(response);});});};action.registerDataModifier=function(modifier){dataModifiers.push(modifier);};action.registerSuccessCallback=function(callback){successCallbacks.push(callback);};action.registerFailCallback=function(callback){failCallbacks.push(callback);};return action;});","Magento_SalesRule/js/action/select-payment-method-mixin.min.js":"define(['jquery','mage/utils/wrapper','Magento_Checkout/js/model/quote','Magento_SalesRule/js/model/payment/discount-messages','Magento_Checkout/js/action/set-payment-information-extended','Magento_Checkout/js/action/get-totals','Magento_SalesRule/js/model/coupon'],function($,wrapper,quote,messageContainer,setPaymentInformationExtended,getTotalsAction,coupon){'use strict';return function(selectPaymentMethodAction){return wrapper.wrap(selectPaymentMethodAction,function(originalSelectPaymentMethodAction,paymentMethod){originalSelectPaymentMethodAction(paymentMethod);if(paymentMethod===null){return;}\n$.when(setPaymentInformationExtended(messageContainer,{method:paymentMethod.method},true)).done(function(){var deferred=$.Deferred(),updateCouponCallback=function(){if(quote.totals()&&!quote.totals()['coupon_code']){coupon.setCouponCode('');coupon.setIsApplied(false);}};getTotalsAction([],deferred);$.when(deferred).done(updateCouponCallback);});});};});","Magento_Security/js/escaper.min.js":"define([],function(){'use strict';return{neverAllowedElements:['script','img','embed','iframe','video','source','object','audio'],generallyAllowedAttributes:['id','class','href','title','style'],forbiddenAttributesByElement:{a:['style']},escapeHtml:function(data,allowedTags){var domParser=new DOMParser(),fragment=domParser.parseFromString('<div></div>','text/html');fragment=fragment.body.childNodes[0];allowedTags=typeof allowedTags==='object'&&allowedTags.length?allowedTags:null;if(allowedTags){fragment.innerHTML=data||'';allowedTags=this._filterProhibitedTags(allowedTags);this._removeComments(fragment);this._removeNotAllowedElements(fragment,allowedTags);this._removeNotAllowedAttributes(fragment);return fragment.innerHTML;}\nfragment.textContent=data||'';return fragment.innerHTML;},_filterProhibitedTags:function(tags){return tags.filter(function(n){return this.neverAllowedElements.indexOf(n)===-1;}.bind(this));},_removeComments:function(node){var treeWalker=node.ownerDocument.createTreeWalker(node,NodeFilter.SHOW_COMMENT,function(){return NodeFilter.FILTER_ACCEPT;},false),nodesToRemove=[];while(treeWalker.nextNode()){nodesToRemove.push(treeWalker.currentNode);}\nnodesToRemove.forEach(function(nodeToRemove){nodeToRemove.parentNode.removeChild(nodeToRemove);});},_removeNotAllowedElements:function(node,allowedTags){var treeWalker=node.ownerDocument.createTreeWalker(node,NodeFilter.SHOW_ELEMENT,function(currentNode){return allowedTags.indexOf(currentNode.nodeName.toLowerCase())===-1?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP;},false),nodesToRemove=[];while(treeWalker.nextNode()){if(allowedTags.indexOf(treeWalker.currentNode.nodeName.toLowerCase())===-1){nodesToRemove.push(treeWalker.currentNode);}}\nnodesToRemove.forEach(function(nodeToRemove){nodeToRemove.parentNode.replaceChild(node.ownerDocument.createTextNode(nodeToRemove.textContent),nodeToRemove);});},_removeNotAllowedAttributes:function(node){var treeWalker=node.ownerDocument.createTreeWalker(node,NodeFilter.SHOW_ELEMENT,function(){return NodeFilter.FILTER_ACCEPT;},false),i,attribute,nodeName,attributesToRemove=[];while(treeWalker.nextNode()){for(i=0;i<treeWalker.currentNode.attributes.length;i++){attribute=treeWalker.currentNode.attributes[i];nodeName=treeWalker.currentNode.nodeName.toLowerCase();if(this.generallyAllowedAttributes.indexOf(attribute.name)===-1||this._checkHrefValue(attribute)||this.forbiddenAttributesByElement[nodeName]&&this.forbiddenAttributesByElement[nodeName].indexOf(attribute.name)!==-1){attributesToRemove.push(attribute);}}}\nattributesToRemove.forEach(function(attributeToRemove){attributeToRemove.ownerElement.removeAttribute(attributeToRemove.name);});},_checkHrefValue:function(attribute){return attribute.nodeName==='href'&&attribute.nodeValue.startsWith('javascript');}};});","MGS_OSCheckout/js/view/agreement-validation.min.js":"define(['uiComponent','Magento_Checkout/js/model/payment/additional-validators','MGS_OSCheckout/js/model/agreement/agreement-validator'],function(Component,additionalValidators,agreementValidator){'use strict';additionalValidators.registerValidator(agreementValidator);return Component.extend({});});","MGS_OSCheckout/js/view/checkout-agreements.min.js":"define(['ko','jquery','uiComponent','Magento_CheckoutAgreements/js/model/agreements-modal'],function(ko,$,Component,agreementsModal){'use strict';var checkoutConfig=window.checkoutConfig,agreementManualMode=1,agreementsConfig=checkoutConfig?checkoutConfig.checkoutAgreements:{};return Component.extend({defaults:{template:'Magento_CheckoutAgreements/checkout/checkout-agreements'},isVisible:agreementsConfig.isEnabled,agreements:agreementsConfig.agreements,modalTitle:ko.observable(null),modalContent:ko.observable(null),contentHeight:ko.observable(null),modalWindow:null,isAgreementRequired:function(element){return element.mode==agreementManualMode;},showContent:function(element){this.modalTitle(element.checkboxText);this.modalContent(element.content);this.contentHeight(element.contentHeight?element.contentHeight:'auto');agreementsModal.showModal();},getCheckboxId:function(context,agreementId){var paymentMethodName='',paymentMethodRenderer=context.$parents[1];if(paymentMethodRenderer){paymentMethodName=paymentMethodRenderer.item?paymentMethodRenderer.item.method:'';}\nreturn'agreement_'+paymentMethodName+'_'+agreementId;},initModal:function(element){agreementsModal.createModal(element);}});});","MGS_OSCheckout/js/view/edit-billing-address.min.js":"define(['ko','Magento_Customer/js/model/address-list'],function(ko,addressList){'use strict';return function(address){addressList().some(function(currentAddress,index,addresses){if(currentAddress.getKey()===address.getKey()){addressList.replace(currentAddress,address);}});addressList.valueHasMutated();return address;};});","MGS_OSCheckout/js/view/shipping-method.min.js":"define(['jquery','underscore','Magento_Checkout/js/view/shipping','Magento_Checkout/js/model/quote','Magento_Customer/js/model/customer','Magento_Checkout/js/action/set-shipping-information','MGS_OSCheckout/js/action/payment-total-information','Magento_Checkout/js/model/step-navigator','Magento_Checkout/js/model/payment/additional-validators','Magento_Checkout/js/checkout-data','Magento_Checkout/js/action/select-billing-address','Magento_Checkout/js/action/select-shipping-address','Magento_Checkout/js/model/address-converter','Magento_Checkout/js/model/shipping-rate-service','Magento_Checkout/js/model/shipping-service','MGS_OSCheckout/js/model/checkout-data-resolver','MGS_OSCheckout/js/model/address/auto-complete','Magento_Customer/js/model/address-list','rjsResolver','mage/translate'],function($,_,Component,quote,customer,setShippingInformationAction,getPaymentTotalInformation,stepNavigator,additionalValidators,checkoutData,selectBillingAddress,selectShippingAddress,addressConverter,shippingRateService,shippingService,DataResolver,addressAutoComplete,addressList,resolver){'use strict';DataResolver.resolveDefaultShippingMethod();shippingService.setShippingRates(window.checkoutConfig.shippingMethods);return Component.extend({defaults:{template:'MGS_OSCheckout/shipping-method'},currentMethod:null,initialize:function(){this._super();if(!quote.shippingAddress()&&addressList().length>=1){selectShippingAddress(addressList()[0]);}\nstepNavigator.steps.removeAll();additionalValidators.registerValidator(this);resolver(this.afterResolveDocument.bind(this));return this;},initObservable:function(){this._super();quote.shippingMethod.subscribe(function(oldValue){this.currentMethod=oldValue;},this,'beforeChange');quote.shippingMethod.subscribe(function(newValue){var isMethodChange=($.type(this.currentMethod)!=='object')?true:this.currentMethod.method_code;if($.type(newValue)==='object'&&(isMethodChange!==newValue.method_code)){setShippingInformationAction();}else if(shippingRateService.isAddressChange){shippingRateService.isAddressChange=false;getPaymentTotalInformation();}},this);return this;},afterResolveDocument:function(){addressAutoComplete.register('shipping');},validate:function(){if(quote.isVirtual()){return true;}\nvar shippingMethodValidationResult=true,shippingAddressValidationResult=true,loginFormSelector='form[data-role=email-with-possible-login]',emailValidationResult=customer.isLoggedIn();if(!quote.shippingMethod()){this.errorValidationMessage($.mage.__('Please specify a shipping method.'));shippingMethodValidationResult=false;}\nif(!customer.isLoggedIn()){$(loginFormSelector).validation();emailValidationResult=Boolean($(loginFormSelector+' input[name=username]').valid());}\nif(this.isFormInline){this.source.set('params.invalid',false);this.source.trigger('shippingAddress.data.validate');if(this.source.get('shippingAddress.custom_attributes')){this.source.trigger('shippingAddress.custom_attributes.data.validate');}\nif(this.source.get('params.invalid')){shippingAddressValidationResult=false;}\nthis.saveShippingAddress();}\nreturn shippingMethodValidationResult&&shippingAddressValidationResult&&emailValidationResult;},saveShippingAddress:function(){var shippingAddress=quote.shippingAddress(),addressData=addressConverter.formAddressDataToQuoteAddress(this.source.get('shippingAddress'));for(var field in addressData){if(addressData.hasOwnProperty(field)&&shippingAddress.hasOwnProperty(field)&&typeof addressData[field]!='function'&&_.isEqual(shippingAddress[field],addressData[field])){shippingAddress[field]=addressData[field];}else if(typeof addressData[field]!='function'&&!_.isEqual(shippingAddress[field],addressData[field])){shippingAddress=addressData;break;}}\nif(customer.isLoggedIn()){shippingAddress.save_in_address_book=1;}\nselectShippingAddress(shippingAddress);},saveNewAddress:function(){this.source.set('params.invalid',false);if(this.source.get('shippingAddress.custom_attributes')){this.source.trigger('shippingAddress.custom_attributes.data.validate');}\nif(!this.source.get('params.invalid')){this._super();}\nif(!this.source.get('params.invalid')){shippingRateService.isAddressChange=true;shippingRateService.estimateShippingMethod();}},getAddressTemplate:function(){return'MGS_OSCheckout/address/shipping-address';}});});","MGS_OSCheckout/js/view/list.min.js":"define(['underscore','ko','mageUtils','uiComponent','uiLayout','Magento_Customer/js/model/address-list'],function(_,ko,utils,Component,layout,addressList){'use strict';return Component.extend({defaults:{template:'MGS_OSCheckout/address/billing/list',visible:addressList().length>0,rendererTemplates:[]},initialize:function(){this._super().initChildren();addressList.subscribe(function(changes){var self=this;changes.forEach(function(change){if(change.status==='added'){self.createRendererComponent(change.value,change.index);}});},this,'arrayChange');return this;},initConfig:function(){this._super();this.rendererComponents=[];return this;},initChildren:function(){_.each(addressList(),this.createRendererComponent,this);return this;},createRendererComponent:function(address,index){var rendererTemplate,templateData,rendererComponent;if(index in this.rendererComponents){this.rendererComponents[index].address(address);}else{rendererTemplate=address.getType()!=undefined&&this.rendererTemplates[address.getType()]!=undefined?utils.extend({},defaultRendererTemplate,this.rendererTemplates[address.getType()]):defaultRendererTemplate;templateData={parentName:this.name,name:index};rendererComponent=utils.template(rendererTemplate,templateData);utils.extend(rendererComponent,{address:ko.observable(address)});layout([rendererComponent]);this.rendererComponents[index]=rendererComponent;}}});});","MGS_OSCheckout/js/view/geoip.min.js":"define(['jquery','underscore','uiComponent','Magento_Checkout/js/model/quote','Magento_Customer/js/model/customer','Magento_Checkout/js/checkout-data'],function($,_,Component,quote,customer,checkoutData){'use strict';var isEnableGeoIp=window.checkoutConfig.mageConfig.geoIpOptions.isEnableGeoIp,geoIpData=window.checkoutConfig.mageConfig.geoIpOptions.geoIpData;return Component.extend({initialize:function(){this.initGeoIp();this._super();return this;},initGeoIp:function(){if(isEnableGeoIp){if(!quote.isVirtual()){if((!customer.isLoggedIn()&&checkoutData.getShippingAddressFromData()==null)||(customer.isLoggedIn()&&checkoutData.getNewCustomerShippingAddress()==null)){checkoutData.setShippingAddressFromData(geoIpData);}}else{if((!customer.isLoggedIn()&&checkoutData.getBillingAddressFromData()==null)||(customer.isLoggedIn()&&checkoutData.setNewCustomerBillingAddress()==null)){checkoutData.setBillingAddressFromData(geoIpData);}}}}});});","MGS_OSCheckout/js/view/payment.min.js":"define(['ko','jquery','Magento_Checkout/js/view/payment','Magento_Checkout/js/model/quote','Magento_Checkout/js/model/step-navigator','Magento_Checkout/js/model/payment/additional-validators','MGS_OSCheckout/js/model/checkout-data-resolver','MGS_OSCheckout/js/model/payment-service','mage/translate'],function(ko,$,Component,quote,stepNavigator,additionalValidators,DataResolver,PaymentService){'use strict';DataResolver.resolveDefaultPaymentMethod();return Component.extend({defaults:{template:'MGS_OSCheckout/payment'},isLoading:PaymentService.isLoading,errorValidationMessage:ko.observable(false),initialize:function(){var self=this;this._super();stepNavigator.steps.removeAll();additionalValidators.registerValidator(this);quote.paymentMethod.subscribe(function(){self.errorValidationMessage(false);});return this;},validate:function(){if(!quote.paymentMethod()){this.errorValidationMessage($.mage.__('Please specify a payment method.'));return false;}\nreturn true;}});});","MGS_OSCheckout/js/view/comments.min.js":"define([\"jquery\",\"ko\",\"uiComponent\",\"uiRegistry\",'MGS_OSCheckout/js/model/one-step-checkout-data',],function($,ko,Component,uiRegistry,OneStepCheckoutData){\"use strict\";var cacheKey='order_comment',isVisible=OneStepCheckoutData.getData(cacheKey)?true:false;return Component.extend({defaults:{template:'MGS_OSCheckout/order-comment'},orderCommentValue:ko.observable(),isVisible:ko.observable(isVisible),initialize:function(){var self=this;this.customerNote=null;this._super();uiRegistry.async(\"checkout.sidebar.summary.comment.\")(function(customerNote){this.customerNote=customerNote;uiRegistry.async('checkout.osc.ajax')(function(ajax){ajax.addMethod('params','customerNote',this.paramsHandler.bind(this));}.bind(this));}.bind(this));this.orderCommentValue(OneStepCheckoutData.getData(cacheKey));this.orderCommentValue.subscribe(function(newValue){OneStepCheckoutData.setData(cacheKey,newValue);self.isVisible(true);});return this;},paramsHandler:function(){var response=false;if(this.customerNote.value().length>0){response={\"customerNote\":this.customerNote.value()};}\nreturn response;}});});","MGS_OSCheckout/js/view/billing-address.min.js":"define([\"jquery\",\"ko\",\"underscore\",\"Magento_Checkout/js/view/billing-address\",\"Magento_Checkout/js/model/quote\",\"Magento_Checkout/js/checkout-data\",\"MGS_OSCheckout/js/model/one-step-checkout-data\",\"Magento_Checkout/js/action/create-billing-address\",\"Magento_Checkout/js/action/select-billing-address\",\"Magento_Customer/js/model/customer\",\"Magento_Checkout/js/action/set-billing-address\",\"Magento_Checkout/js/model/address-converter\",\"Magento_Checkout/js/model/payment/additional-validators\",\"Magento_Ui/js/model/messageList\",\"Magento_Checkout/js/model/checkout-data-resolver\",\"MGS_OSCheckout/js/model/address/auto-complete\",\"uiRegistry\",\"mage/translate\",\"rjsResolver\",],function($,ko,_,Component,quote,checkoutData,OneStepCheckoutData,createBillingAddress,selectBillingAddress,customer,setBillingAddressAction,addressConverter,additionalValidators,globalMessageList,checkoutDataResolver,addressAutoComplete,registry,$t,resolver){\"use strict\";var observedElements=[],canShowBillingAddress=window.checkoutConfig.mageConfig.showBillingAddress;return Component.extend({defaults:{template:\"MGS_OSCheckout/address/billing/form\",actionsTemplate:\"MGS_OSCheckout/address/billing/actions\",formTemplate:\"MGS_OSCheckout/address/billing/form\",detailsTemplate:\"MGS_OSCheckout/address/billing/details\",links:{isAddressFormVisible:\"${$.billingAddressListProvider}:isNewAddressSelected\",},},isCustomerLoggedIn:customer.isLoggedIn,quoteIsVirtual:quote.isVirtual(),isAddressSameAsShipping:ko.observable(true),isAddressSameAsShipping:ko.observableArray([\"billingAddress\"]),canUseShippingAddress:ko.computed(function(){return(!quote.isVirtual()&&quote.shippingAddress()&&quote.shippingAddress().canUseForBilling()&&canShowBillingAddress);}),initialize:function(){var self=this;this._super();this.initFields();additionalValidators.registerValidator(this);registry.async(\"checkoutProvider\")(function(checkoutProvider){var billingAddressData=checkoutData.getBillingAddressFromData();if(billingAddressData){checkoutProvider.set(\"billingAddress\",$.extend({},checkoutProvider.get(\"billingAddress\"),billingAddressData));}\ncheckoutProvider.on(\"billingAddress\",function(billingAddressData){checkoutData.setBillingAddressFromData(billingAddressData);});});quote.shippingAddress.subscribe(function(newAddress){if(self.isAddressSameAsShipping()){selectBillingAddress(newAddress);}});resolver(this.afterResolveDocument.bind(this));quote.paymentMethod.subscribe(function(){checkoutDataResolver.resolveBillingAddress();},this);return this;},useShippingAddress:function(){if($(\"#billing-address-same-as-shipping-shared\").is(\":checked\")){$(\".billing-address-form\").hide();$(\".billing-address-select-payment-method\").hide();if(this.isAddressSameAsShipping()){selectBillingAddress(quote.shippingAddress());checkoutData.setSelectedBillingAddress(null);if(window.checkoutConfig.reloadOnBillingAddress){setBillingAddressAction(globalMessageList);}}else{this.updateAddress();}}else{this.getShippingAddress();$(\".billing-address-select-payment-method\").show();$(\"#selectPaymentMethod\").on(\"change\",function(){let selectedValue=$(this).val();if(selectedValue===\"new_address\"){$(\".billing-address-form\").show();}else{$(\".billing-address-form\").hide();}});$(\"#btn-update-address\").on(\"click\",function(){let selectedValue=$(\"#selectPaymentMethod\").val();if(selectedValue===\"new_address\"){let form=document.querySelector('fieldset[data-form=\"billing-new-address\"]').closest(\"form\");let customerData=customer.customerData;let inputs=document.querySelectorAll('input[name^=\"street[\"]');let values=[];inputs.forEach(function(input){if(input.value!==\"\"){values.push(input.value);}});let formData=new FormData(form);let selectedAddress={customerId:customerData.id,email:customerData.email,company:formData.get(\"company\"),prefix:null,firstname:formData.get(\"firstname\"),lastname:formData.get(\"lastname\"),middlename:null,suffix:null,street:values,city:formData.get(\"city\"),region:null,region_id:\"0\",postcode:formData.get(\"postcode\"),country_id:formData.get(\"country_id\"),telephone:formData.get(\"telephone\"),fax:null,default_billing:null,default_shipping:null,custom_attributes:[],extension_attributes:{},vat_id:null,};let newBillingAddress=createBillingAddress(selectedAddress);selectBillingAddress(newBillingAddress);checkoutData.setSelectedBillingAddress(newBillingAddress.getKey());checkoutData.setNewCustomerBillingAddress(selectedAddress);console.log(newBillingAddress);}else{let addresses=customer.customerData.addresses;let selectedAddress=addresses[selectedValue];selectedAddress[\"region\"]=null;let newBillingAddress=createBillingAddress(selectedAddress);quote.billingAddress(newBillingAddress);selectBillingAddress(newBillingAddress);checkoutData.setSelectedBillingAddress(newBillingAddress.getKey());checkoutData.setNewCustomerBillingAddress(addresses[selectedValue]);}});}\nreturn true;},afterResolveDocument:function(){this.saveBillingAddress();addressAutoComplete.register(\"billing\");},onAddressChange:function(address){this._super(address);if(!this.isAddressSameAsShipping()&&canShowBillingAddress){this.updateAddress();}},updateAddress:function(){var mgpDetailsBilling=$(\".billing-address-details-mgp\"),formBillingaddress=$(\".form-mgp-billing-address\");if(this.selectedAddress()&&!this.isAddressFormVisible()){newBillingAddress=createBillingAddress(this.selectedAddress());selectBillingAddress(newBillingAddress);checkoutData.setSelectedBillingAddress(this.selectedAddress().getKey());}else{var addressData=this.source.get(\"billingAddress\"),newBillingAddress;newBillingAddress=createBillingAddress(addressData);selectBillingAddress(newBillingAddress);checkoutData.setSelectedBillingAddress(newBillingAddress.getKey());checkoutData.setNewCustomerBillingAddress(addressData);if(addressData.firstname!=\"\"&&addressData.lastname!=\"\"&&addressData.street[\"0\"]!=\"\"&&addressData.city!=\"\"&&addressData.telephone!=\"\"){mgpDetailsBilling.find(\".billing-address-detail-child\").html(addressData.firstname+\" \"+\naddressData.lastname+\"<br><br>\"+\naddressData.street[\"0\"]+\" \"+\naddressData.street[\"1\"]+\" \"+\naddressData.street[\"2\"]+\"<br><br>\"+\naddressData.city+\", \"+\naddressData.postcode+\"<br><br>\"+'<a href=\"tel:'+\naddressData.telephone+'\">'+\naddressData.telephone+\"</a>\");formBillingaddress.hide();mgpDetailsBilling.show();}}\nif(window.checkoutConfig.reloadOnBillingAddress){setBillingAddressAction(globalMessageList);}},editAddressBilling:function(){var mgpDetailsBilling=$(\".billing-address-details-mgp\"),formBillingaddress=$(\".form-mgp-billing-address\");formBillingaddress.show();mgpDetailsBilling.hide();$(this).parent().hide();},cancelAddressEdit:function(){var checkBox=$(\"#billing-address-same-as-shipping-shared\");$(document).find(checkBox).trigger(\"click\");this.restoreBillingAddress();},initFields:function(){var self=this,addressFields=window.checkoutConfig.mageConfig.addressFields,fieldsetName=\"checkout.steps.shipping-step.billingAddress.billing-address-fieldset\";$.each(addressFields,function(index,field){registry.async(fieldsetName+\".\"+field)(self.bindHandler.bind(self));});return this;},bindHandler:function(element){var self=this;if(element.component.indexOf(\"/group\")!==-1){$.each(element.elems(),function(index,elem){registry.async(elem.name)(function(){self.bindHandler(elem);});});}else{element.on(\"value\",this.saveBillingAddress.bind(this,element.index));observedElements.push(element);}},saveBillingAddress:function(fieldName){if(!this.isAddressSameAsShipping()){if(!canShowBillingAddress&&!this.quoteIsVirtual){selectBillingAddress(quote.shippingAddress());}else if(this.isAddressFormVisible()){var addressFlat=addressConverter.formDataProviderToFlatData(this.collectObservedData(),\"billingAddress\"),newBillingAddress;newBillingAddress=createBillingAddress(addressFlat);selectBillingAddress(newBillingAddress);checkoutData.setSelectedBillingAddress(newBillingAddress.getKey());checkoutData.setNewCustomerBillingAddress(addressFlat);if(window.checkoutConfig.reloadOnBillingAddress&&fieldName==\"country_id\"){setBillingAddressAction(globalMessageList);}}}},collectObservedData:function(){var observedValues={};$.each(observedElements,function(index,field){observedValues[field.dataScope]=field.value();});return observedValues;},validate:function(){if(this.isAddressSameAsShipping()){OneStepCheckoutData.setData(\"same_as_shipping\",true);return true;}\nif(!this.isAddressFormVisible()){return true;}\nthis.source.set(\"params.invalid\",false);this.source.trigger(\"billingAddress.data.validate\");if(this.source.get(\"billingAddress.custom_attributes\")){this.source.trigger(\"billingAddress.custom_attributes.data.validate\");}\nOneStepCheckoutData.setData(\"same_as_shipping\",false);return!this.source.get(\"params.invalid\");},getShippingAddress:function(){let billingAddress=quote.billingAddress();let customerAddress=customer.customerData.addresses;let OptionAddress=\"\";if(customerAddress){for(const key in customerAddress){if(customerAddress.hasOwnProperty(key)){const address=customerAddress[key];OptionAddress+=`<option value=\"${address.id}\">${address.inline}</option>`;}}}\nOptionAddress+=`<option value=\"new_address\">New Address</option>`;$(\"#selectPaymentMethod\").html(OptionAddress);},getAddressTemplate:function(){return\"MGS_OSCheckout/address/billing/form\";},});});","MGS_OSCheckout/js/view/delivery_date.min.js":"define(['jquery','ko','uiComponent','MGS_OSCheckout/js/model/one-step-checkout-data','jquery/ui','jquery/jquery-ui-timepicker-addon'],function($,ko,Component,OneStepCheckoutData){'use strict';var cacheKey='deliveryTime',isVisible=OneStepCheckoutData.getData(cacheKey)?true:false;var cacheKeyHouseSecurityCode='houseSecurityCode';return Component.extend({defaults:{template:'MGS_OSCheckout/delivery-time'},houseSecurityCodeValue:ko.observable(),deliveryTimeValue:ko.observable(),isVisible:ko.observable(isVisible),initialize:function(){this._super();var self=this;ko.bindingHandlers.datepicker={init:function(element){var dateFormat=window.checkoutConfig.mageConfig.deliveryTimeOptions.deliveryTimeFormat,daysOff=window.checkoutConfig.mageConfig.deliveryTimeOptions.deliveryTimeOff,options={minDate:0,showButtonPanel:false,dateFormat:dateFormat,showOn:'both',buttonText:'',beforeShowDay:function(date){if(!daysOff)\nreturn[true];return[daysOff.indexOf(date.getDay())===-1];}};$(element).datetimepicker(options);}};this.deliveryTimeValue(OneStepCheckoutData.getData(cacheKey));this.deliveryTimeValue.subscribe(function(newValue){OneStepCheckoutData.setData(cacheKey,newValue);self.isVisible(true);});this.houseSecurityCodeValue(OneStepCheckoutData.getData(cacheKeyHouseSecurityCode));this.houseSecurityCodeValue.subscribe(function(newValue){OneStepCheckoutData.setData(cacheKeyHouseSecurityCode,newValue);});return this;},removeDeliveryTime:function(){if(OneStepCheckoutData.getData(cacheKey)&&OneStepCheckoutData.getData(cacheKey)!=null){OneStepCheckoutData.setData(cacheKey,'');$(\"#onestepcheckout-delivery-time\").attr('value','');this.isVisible(false);}},canUseHouseSecurityCode:function(){if(!window.checkoutConfig.mageConfig.deliveryTimeOptions.houseSecurityCode){return true;}\nreturn false;}});});","MGS_OSCheckout/js/view/form/element/email.min.js":"define(['jquery','ko','Magento_Checkout/js/view/form/element/email','Magento_Customer/js/model/customer','MGS_OSCheckout/js/model/one-step-checkout-data','Magento_Checkout/js/model/payment/additional-validators','MGS_OSCheckout/js/action/check-email-availability','Magento_Checkout/js/checkout-data','Magento_Checkout/js/model/quote','mage/url','rjsResolver','mage/validation'],function($,ko,Component,customer,OneStepCheckoutData,additionalValidators,checkEmailAvailability,checkoutData,quote,urlBuilder,resolver){'use strict';var cacheKey='form_register_chechbox',allowGuestCheckout=window.checkoutConfig.mageConfig.allowGuestCheckout,passwordMinLength=window.checkoutConfig.mageConfig.register.dataPasswordMinLength,passwordMinCharacter=window.checkoutConfig.mageConfig.register.dataPasswordMinCharacterSets,customerEmailElement='.form-login #customer-email';if(!customer.isLoggedIn()&&!allowGuestCheckout){OneStepCheckoutData.setData(cacheKey,true);}\nreturn Component.extend({defaults:{email:checkoutData.getInputFieldEmailValue(),template:'MGS_OSCheckout/form/element/email',isLoginVisible:false,listens:{email:''}},checkDelay:0,savingEmailRequest:null,dataPasswordMinLength:passwordMinLength,dataPasswordMinCharacterSets:passwordMinCharacter,initialize:function(){this._super();if(!!this.email()){resolver(this.emailHasChanged.bind(this));}\nadditionalValidators.registerValidator(this);},initObservable:function(){this._super().observe({isCheckboxRegisterVisible:allowGuestCheckout,isRegisterVisible:OneStepCheckoutData.getData(cacheKey)});this.isRegisterVisible.subscribe(function(newValue){OneStepCheckoutData.setData(cacheKey,newValue);});return this;},checkEmailAvailability:function(){var self=this;this.validateRequest();this.isLoading(true);this.checkRequest=checkEmailAvailability(this.email());this.checkRequest.done(function(isEmailAvailable){self.isPasswordVisible(!isEmailAvailable);}).fail(function(){self.isPasswordVisible(false);}).always(function(){self.isLoading(false);});},validateEmail:function(focused){var loginFormSelector='form[data-role=email-with-possible-login]',usernameSelector=loginFormSelector+' input[name=username]',loginForm=$(loginFormSelector),validator;loginForm.validation();if(focused===false){return!!$(usernameSelector).valid();}\nvalidator=loginForm.validate();return validator;},validate:function(type){if(customer.isLoggedIn()||!this.isRegisterVisible()||this.isPasswordVisible()){OneStepCheckoutData.setData('register',false);return true;}\nif(typeof type!=='undefined'){var selector=$('#onestepcheckout-'+type);selector.parents('form').validation();}\nvar passwordSelector=$('#onestepcheckout-password');passwordSelector.parents('form').validation();var password=!!passwordSelector.valid();var confirm=!!$('#onestepcheckout-password-confirmation').valid();var result=password&&confirm;if(result){OneStepCheckoutData.setData('register',true);OneStepCheckoutData.setData('password',passwordSelector.val());}else if(!password){$('#onestepcheckout-password').focus();}else if(!confirm){$('#onestepcheckout-password-confirmation').focus();}\nreturn result;},hasValue:function(){if(window.checkoutConfig.mageConfig.isUsedMaterialDesign){$(customerEmailElement).val()?$(customerEmailElement).addClass('active'):$(customerEmailElement).removeClass('active');}}});});","MGS_OSCheckout/js/view/form/element/street.min.js":"define(['Magento_Ui/js/form/element/abstract','MGS_OSCheckout/js/model/address/google-auto-complete'],function(Component,googleAutoComplete){'use strict';return Component.extend({googleAutocomplete:null,initialize:function(){this._super().initAutocomplete();return this;},initAutocomplete:function(){var fieldsetName=this.parentName.split('.').slice(0,-1).join('.');switch(window.checkoutConfig.mageConfig.autocomplete.type){case'google':this.googleAutocomplete=new googleAutoComplete(this.uid,fieldsetName);break;case'pca':break;default:break;}\nreturn this;}});});","MGS_OSCheckout/js/view/form/element/region.min.js":"define(['underscore','Magento_Ui/js/form/element/region','mageUtils','uiLayout'],function(_,Component,utils,layout){'use strict';var template=window.checkoutConfig.mageConfig.isUsedMaterialDesign?'MGS_OSCheckout/form/field':'${ $.$data.template }';var inputNode={parent:'${ $.$data.parentName }',component:'Magento_Ui/js/form/element/abstract',template:template,elementTmpl:'MGS_OSCheckout/form/element/input',provider:'${ $.$data.provider }',name:'${ $.$data.index }_input',dataScope:'${ $.$data.customEntry }',customScope:'${ $.$data.customScope }',sortOrder:'${ $.$data.sortOrder }',displayArea:'body',label:'${ $.$data.label }'};return Component.extend({initInput:function(){layout([utils.template(_.extend(inputNode,{additionalClasses:this.additionalClasses}),this)]);return this;}});});","MGS_OSCheckout/js/view/function/checkout-agreements.min.js":"define(['Magento_CheckoutAgreements/js/view/checkout-agreements','Magento_Checkout/js/model/payment/additional-validators','MGS_OSCheckout/js/model/agreement/agreement-validator'],function(Component,additionalValidators,agreementValidator){'use strict';additionalValidators.registerValidator(agreementValidator);return Component.extend({});});","MGS_OSCheckout/js/view/function/addition.min.js":"define(['ko','uiComponent'],function(ko,Component){\"use strict\";return Component.extend({defaults:{template:'MGS_OSCheckout/review/addition'}});});","MGS_OSCheckout/js/view/function/comment.min.js":"define(['ko','uiComponent','MGS_OSCheckout/js/model/one-step-checkout-data'],function(ko,Component,OneStepCheckoutData){\"use strict\";var cacheKey='deliveryComment';return Component.extend({defaults:{template:'MGS_OSCheckout/review/comment'},commentValue:ko.observable(),initialize:function(){this._super();this.commentValue(OneStepCheckoutData.getData(cacheKey));this.commentValue.subscribe(function(newValue){OneStepCheckoutData.setData(cacheKey,newValue);});return this;}});});","MGS_OSCheckout/js/view/function/placeOrder.min.js":"define(['jquery','underscore','ko','uiComponent','uiRegistry','Magento_Checkout/js/model/quote','Magento_Checkout/js/model/payment/additional-validators','Magento_Customer/js/customer-data','MGS_OSCheckout/js/action/set-checkout-information','MGS_OSCheckout/js/model/braintree-paypal'],function($,_,ko,Component,registry,quote,additionalValidators,customerData,setCheckoutInformationAction,braintreePaypalModel){\"use strict\";return Component.extend({defaults:{template:'MGS_OSCheckout/review/place-order',visibleBraintreeButton:false,},braintreePaypalModel:braintreePaypalModel,selectors:{default:'#co-payment-form .payment-method._active button.action.primary.checkout'},initialize:function(){this._super();var self=this;quote.paymentMethod.subscribe(function(value){self.processVisiblePlaceOrderButton();});registry.async(this.getPaymentPath('braintree_paypal'))\n(this.asyncBraintreePaypal.bind(this));return this;},initObservable:function(){var self=this;this._super().observe(['visibleBraintreeButton']);return this;},asyncBraintreePaypal:function(){this.processVisiblePlaceOrderButton();},isBraintreeNewVersion:function(){var component=this.getBraintreePaypalComponent();return component&&typeof component.isReviewRequired==\"function\"&&typeof component.getButtonTitle==\"function\";},processVisiblePlaceOrderButton:function(){this.visibleBraintreeButton(this.checkVisiblePlaceOrderButton());},checkVisiblePlaceOrderButton:function(){return this.getBraintreePaypalComponent()&&this.isPaymentBraintreePaypal();},placeOrder:function(){var self=this;if(additionalValidators.validate()){this.preparePlaceOrder().done(function(){self._placeOrder();});}else{var offsetHeight=$(window).height()/ 2,errorMsgSelector=$('#maincontent .mage-error:visible:first').closest('.field');errorMsgSelector=errorMsgSelector.length?errorMsgSelector:$('#maincontent .field-error:visible:first').closest('.field');if(errorMsgSelector.length){if(errorMsgSelector.find('select').length){$('html, body').scrollTop(errorMsgSelector.find('select').offset().top-offsetHeight);errorMsgSelector.find('select').focus();}else if(errorMsgSelector.find('input').length){$('html, body').scrollTop(errorMsgSelector.find('input').offset().top-offsetHeight);errorMsgSelector.find('input').focus();}}else if($('.message-error:visible').length){$('html, body').scrollTop($('.message-error:visible:first').closest('div').offset().top-offsetHeight);}}\nreturn this;},brainTreePaypalPlaceOrder:function(){var component=this.getBraintreePaypalComponent();if(component&&additionalValidators.validate()){component.placeOrder.apply(component,arguments);}\nreturn this;},brainTreePayWithPayPal:function(){var component=this.getBraintreePaypalComponent();if(component&&additionalValidators.validate()){component.payWithPayPal.apply(component,arguments);}\nreturn this;},preparePlaceOrder:function(scrollTop){var scrollTop=scrollTop!==undefined?scrollTop:true;var deferer=$.when(setCheckoutInformationAction());return scrollTop?deferer.done(function(){$(\"body\").animate({scrollTop:0},\"slow\");}):deferer;},getPaymentPath:function(paymentMethodCode){return'checkout.steps.billing-step.payment.payments-list.'+paymentMethodCode;},getPaymentMethodComponent:function(paymentMethodCode){return registry.get(this.getPaymentPath(paymentMethodCode));},isPaymentBraintreePaypal:function(){return quote.paymentMethod()&&quote.paymentMethod().method==='braintree_paypal';},getBraintreePaypalComponent:function(){return this.getPaymentMethodComponent('braintree_paypal');},_placeOrder:function(){$(this.selectors.default).trigger('click');customerData.invalidate(['customer']);},isPlaceOrderActionAllowed:function(){return true;}});});","MGS_OSCheckout/js/view/summary/newsletter.min.js":"define(['ko','uiComponent','MGS_OSCheckout/js/model/one-step-checkout-data'],function(ko,Component,OneStepCheckoutData){\"use strict\";var cacheKey='is_subscribed';return Component.extend({defaults:{template:'MGS_OSCheckout/summary/newsletter'},initObservable:function(){this._super().observe({isRegisterNewsletter:(typeof OneStepCheckoutData.getData(cacheKey)==='undefined')?window.checkoutConfig.mageConfig.newsletterDefault:OneStepCheckoutData.getData(cacheKey)});OneStepCheckoutData.setData(cacheKey,this.isRegisterNewsletter());this.isRegisterNewsletter.subscribe(function(newValue){OneStepCheckoutData.setData(cacheKey,newValue);});return this;}});});","MGS_OSCheckout/js/view/summary/item/details.min.js":"define(['underscore','jquery','Magento_Checkout/js/view/summary/item/details','Magento_Checkout/js/model/quote','MGS_OSCheckout/js/action/update-item','mage/url','mage/translate','Magento_Ui/js/modal/modal'],function(_,$,Component,quote,updateItemAction,url,$t,modal){\"use strict\";var products=window.checkoutConfig.quoteItemData,giftMessageOptions=window.checkoutConfig.mageConfig.giftMessageOptions,qtyIncrements=window.checkoutConfig.mageConfig.qtyIncrements;return Component.extend({defaults:{template:'MGS_OSCheckout/summary/item/details'},giftMessageItemsTitleHover:$t('Gift message item'),updateQtyDelay:500,updateQtyTimeout:0,getProductUrl:function(parent){var item=_.find(products,function(product){return product.item_id==parent.item_id;});if(item&&item.hasOwnProperty('product')&&item.product.hasOwnProperty('request_path')&&item.product.request_path){return url.build(item.product.request_path);}\nreturn false;},setModalElement:function(element,item_id){var self=this;this.modalWindow=element;var options={'type':'popup','title':$t('Gift Message Item &#40'+element.title+'&#41'),'modalClass':'popup-gift-message-item','responsive':true,'innerScroll':true,'trigger':'#'+element.id,'buttons':[],'opened':function(){self.loadGiftMessageItem(item_id);}};modal(options,$(this.modalWindow));},loadGiftMessageItem:function(itemId){$('.popup-gift-message-item._show #item'+itemId).find('input:text,textarea').val('');if(giftMessageOptions.giftMessage.itemLevel[itemId].hasOwnProperty('message')&&typeof giftMessageOptions.giftMessage.itemLevel[itemId]['message']=='object'){$(this.createSelectorElement(itemId+' .action.delete')).show();return this;}\n$(this.createSelectorElement(itemId+' .action.delete')).hide();},createSelectorElement:function(selector){return'.popup-gift-message-item._show #item'+selector;},updateGiftMessageItem:function(itemId){var data={gift_message:{}};giftMessageItem(data,itemId,false);this.closePopup();},deleteGiftMessageItem:function(itemId){giftMessageItem({gift_message:{sender:'',recipient:'',message:''}},itemId,true);this.closePopup();},closePopup:function(){$('.action-close').trigger('click');},isItemAvailable:function(itemId){var isGloballyAvailable,itemConfig;var item=_.find(products,function(product){return product.item_id==itemId;});if(item.is_virtual==true||!giftMessageOptions.isEnableGiftMessageItems)return false;isGloballyAvailable=this.getConfigValue('isItemLevelGiftOptionsEnabled');itemConfig=giftMessageOptions.giftMessage.hasOwnProperty('itemLevel')&&giftMessageOptions.giftMessage.itemLevel.hasOwnProperty(itemId)?giftMessageOptions.giftMessage.itemLevel[itemId]:{};return itemConfig.hasOwnProperty('is_available')?itemConfig['is_available']:isGloballyAvailable;},getConfigValue:function(key){return giftMessageOptions.hasOwnProperty(key)?giftMessageOptions[key]:false;},plusQty:function(item,event){var self=this;clearTimeout(this.updateQtyTimeout);var target=$(event.target).parent().siblings(\".item_qty\"),itemId=parseInt(target.attr(\"id\")),qty=parseInt(target.val());if(qtyIncrements.hasOwnProperty(itemId)){var qtyDelta=qtyIncrements[itemId];qty=(Math.floor(qty / qtyDelta)+1)*qtyDelta;}else{qty+=1;}\ntarget.val(qty);this.updateQtyTimeout=setTimeout(function(){self.updateItem(itemId,qty,target)},this.updateQtyDelay);},minusQty:function(item,event){var self=this;clearTimeout(this.updateQtyTimeout);var target=$(event.target).parent().siblings(\".item_qty\"),itemId=parseInt(target.attr(\"id\")),qty=parseInt(target.val());if(qtyIncrements.hasOwnProperty(itemId)){var qtyDelta=qtyIncrements[itemId];qty=(Math.ceil(qty / qtyDelta)-1)*qtyDelta;}else{qty-=1;}\ntarget.val(qty);this.updateQtyTimeout=setTimeout(function(){self.updateItem(itemId,qty,target)},this.updateQtyDelay);},changeQty:function(item,event){var target=$(event.target),itemId=parseInt(target.attr(\"id\")),qty=parseInt(target.val());if(qtyIncrements.hasOwnProperty(itemId)&&(qty%qtyIncrements[itemId])){var qtyDelta=qtyIncrements[itemId];qty=(Math.ceil(qty / qtyDelta)-1)*qtyDelta;}\nthis.updateItem(itemId,qty,target);},removeItem:function(itemId){this.updateItem(itemId);},updateItem:function(itemId,itemQty,target){var self=this,payload={item_id:itemId};if(typeof itemQty!=='undefined'){payload['item_qty']=itemQty;}\nupdateItemAction(payload).fail(function(response){target.val(self.getProductQty(itemId));});return this;},getProductQty:function(itemId){var item=_.find(quote.totals().items,function(product){return product.item_id==itemId;});if(item&&item.hasOwnProperty('qty')){return item.qty;}\nreturn 0;}});});","MGS_OSCheckout/js/view/shipping-address/address-renderer/default.min.js":"define(['Magento_Checkout/js/view/shipping-address/address-renderer/default','Magento_Checkout/js/model/shipping-rate-service'],function(Component,shippingRateService){'use strict';return Component.extend({defaults:{template:'MGS_OSCheckout/address/shipping/address-renderer/default'},selectAddress:function(){if(!this.isSelected()){this._super();shippingRateService.estimateShippingMethod();}}});});","MGS_OSCheckout/js/view/payment/braintree-paypal-mixins.min.js":"define(['jquery','MGS_OSCheckout/js/action/set-checkout-information','MGS_OSCheckout/js/model/braintree-paypal','Magento_Checkout/js/model/payment/additional-validators','Magento_Checkout/js/model/quote','underscore'],function($,setCheckoutInformationAction,braintreePaypalModel,additionalValidators,quote,_){'use strict';return function(BraintreePaypalComponent){return BraintreePaypalComponent.extend({initObservable:function(){var self=this;this._super();this.isReviewRequired=braintreePaypalModel.isReviewRequired;this.customerEmail=braintreePaypalModel.customerEmail;this.active=braintreePaypalModel.active;return this;},getShippingAddress:function(){var address=quote.shippingAddress();if(!address){address={};}\nif(!address.street){address.street=['',''];}\nif(address.postcode===null){return{};}\nreturn{recipientName:address.firstname+' '+address.lastname,streetAddress:address.street[0],locality:address.city,countryCodeAlpha2:address.countryId,postalCode:address.postcode,region:address.regionCode,phone:address.telephone,editable:this.isAllowOverrideShippingAddress()};}})}});","MGS_OSCheckout/js/view/payment/discount.min.js":"define(['jquery','ko','uiComponent','Magento_Checkout/js/model/quote','Magento_SalesRule/js/action/set-coupon-code','Magento_SalesRule/js/action/cancel-coupon','MGS_OSCheckout/js/model/onestepcheckout-loader/discount'],function($,ko,Component,quote,setCouponCodeAction,cancelCouponAction,discountLoader){'use strict';var totals=quote.getTotals(),couponCode=ko.observable(null),isApplied=discountLoader.isAppliedCoupon;if(totals()){couponCode(totals()['coupon_code']);}\nreturn Component.extend({defaults:{template:'MGS_OSCheckout/review/discount'},isBlockLoading:discountLoader.isLoading,couponCode:couponCode,isApplied:isApplied,apply:function(){if(this.validate()){setCouponCodeAction(couponCode(),isApplied);}},cancel:function(){if(this.validate()){couponCode('');cancelCouponAction(isApplied);}},validate:function(){var form='#discount-form';return $(form).validation()&&$(form).validation('isValid');}});});","MGS_OSCheckout/js/model/one-step-checkout-data.min.js":"define(['jquery','Magento_Customer/js/customer-data'],function($,storage){'use strict';var cacheKey='one-step-checkout-data';var getData=function(){return storage.get(cacheKey)();};var saveData=function(checkoutData){storage.set(cacheKey,checkoutData);};return{setData:function(key,data){var obj=getData();obj[key]=data;saveData(obj);},getData:function(key){if(typeof key==='undefined'){return getData();}\nreturn getData()[key];}}});","MGS_OSCheckout/js/model/payment-service.min.js":"define(['ko'],function(ko){'use strict';return{isLoading:ko.observable(false)};});","MGS_OSCheckout/js/model/set-payment-method-mixin.min.js":"define(['jquery','mage/utils/wrapper','MGS_OSCheckout/js/action/set-payment-method'],function($,wrapper,setPaymentMethodAction){'use strict';return function(originalSetPaymentMethodAction){return wrapper.wrap(originalSetPaymentMethodAction,function(originalAction,messageContainer){return setPaymentMethodAction(messageContainer);});};});","MGS_OSCheckout/js/model/braintree-paypal.min.js":"define(['ko'],function(ko){'use strict';return{isReviewRequired:ko.observable(false),customerEmail:ko.observable(null),active:ko.observable(false)}});","MGS_OSCheckout/js/model/one-step-checkout-loader.min.js":"define(['jquery','Magento_Checkout/js/model/shipping-service','Magento_Checkout/js/model/totals','MGS_OSCheckout/js/model/payment-service'],function($,shippingService,totalService,paymentService){'use strict';var blockLoader={shipping:{queue:0,service:shippingService},payment:{queue:0,service:paymentService},total:{queue:0,service:totalService}};return{getServices:function(blocks){var services={payment:blockLoader.payment.service,total:blockLoader.total.service};if(typeof blocks!=='undefined'){services={};$.each(blocks,function(index,block){if(blockLoader.hasOwnProperty(block)){services[block]=blockLoader[block].service;}});}\nreturn services;},startLoader:function(blocks){var services=this.getServices(blocks);$.each(services,function(index,service){blockLoader[index].queue+=1;service.isLoading(true);});},stopLoader:function(blocks){var services=this.getServices(blocks);$.each(services,function(index,service){blockLoader[index].queue-=1;if(blockLoader[index].queue==0){service.isLoading(false);}});}};});","MGS_OSCheckout/js/model/checkout.min.js":"define(['ko','jquery','underscore','Magento_Checkout/js/model/quote','MGS_OSCheckout/js/model/resource-url-manager','mage/storage','MGS_OSCheckout/js/model/one-step-checkout-data','Magento_Checkout/js/model/payment-service','Magento_Checkout/js/model/payment/method-converter','Magento_Checkout/js/model/error-processor','Magento_Checkout/js/model/full-screen-loader','Magento_Checkout/js/action/select-billing-address'],function(ko,$,_,quote,resourceUrlManager,storage,OneStepCheckoutData,paymentService,methodConverter,errorProcessor,fullScreenLoader,selectBillingAddressAction){'use strict';return{saveShippingInformation:function(){var payload,addressInformation={},additionInformation=OneStepCheckoutData.getData();if(window.checkoutConfig.mageConfig.giftMessageOptions.isOrderLevelGiftOptionsEnabled){additionInformation.giftMessage=this.saveGiftMessage();}\nif(!quote.billingAddress()){selectBillingAddressAction(quote.shippingAddress());}\nif(!quote.isVirtual()){addressInformation={shipping_address:quote.shippingAddress(),billing_address:quote.billingAddress(),shipping_method_code:quote.shippingMethod().method_code,shipping_carrier_code:quote.shippingMethod().carrier_code};}else if($.isEmptyObject(additionInformation)){return $.Deferred().resolve();}\nvar customAttributes={};if(_.isObject(quote.billingAddress().customAttributes)){_.each(quote.billingAddress().customAttributes,function(attribute,key){if(_.isObject(attribute)){customAttributes[attribute.attribute_code]=attribute.value}else if(_.isString(attribute)){customAttributes[key]=attribute}});}\npayload={addressInformation:addressInformation,customerAttributes:customAttributes,additionInformation:additionInformation};fullScreenLoader.startLoader();return storage.post(resourceUrlManager.getUrlForSetCheckoutInformation(quote),JSON.stringify(payload)).fail(function(response){errorProcessor.process(response);}).always(function(){fullScreenLoader.stopLoader();});},saveGiftMessage:function(){var giftMessage={};return JSON.stringify(giftMessage);}};});","MGS_OSCheckout/js/model/resource-url-manager.min.js":"define(['jquery','Magento_Checkout/js/model/resource-url-manager'],function($,resourceUrlManager){\"use strict\";return $.extend({getUrlForSaveEmailToQuote:function(quote){var params={cartId:quote.getQuoteId()};var urls={'guest':'/guest-carts/:cartId/save-email-to-quote',};return this.getUrl(urls,params);},getUrlForCheckIsEmailAvailable:function(quote){var params={cartId:quote.getQuoteId()};var urls={'guest':'/guest-carts/:cartId/isEmailAvailable',};return this.getUrl(urls,params);},getUrlForUpdateItemInformation:function(quote,isRemove){var params=(this.getCheckoutMethod()=='guest')?{cartId:quote.getQuoteId()}:{};var urlPath=(isRemove==true)?'remove-item':'update-item';var urls={'guest':'/guest-carts/:cartId/'+urlPath,'customer':'/carts/mine/'+urlPath};return this.getUrl(urls,params);},getUrlForSetCheckoutInformation:function(quote){var params=(this.getCheckoutMethod()=='guest')?{cartId:quote.getQuoteId()}:{};var urls={'guest':'/guest-carts/:cartId/checkout-information','customer':'/carts/mine/checkout-information'};return this.getUrl(urls,params);},getUrlForUpdatePaymentTotalInformation:function(quote){var params=(this.getCheckoutMethod()=='guest')?{cartId:quote.getQuoteId()}:{};var urls={'guest':'/guest-carts/:cartId/payment-total-information','customer':'/carts/mine/payment-total-information'};return this.getUrl(urls,params);},getUrlForGiftMessageItemInformation:function(quote,itemId){var params=(this.getCheckoutMethod()=='guest')?{cartId:quote.getQuoteId()}:{};var urls={'guest':'/guest-carts/:cartId/gift-message/'+itemId,'customer':'/carts/mine/gift-message/'+itemId};return this.getUrl(urls,params);}},resourceUrlManager);});","MGS_OSCheckout/js/model/checkout-data-resolver.min.js":"define(['Magento_Checkout/js/checkout-data'],function(checkoutData){'use strict';return{resolveDefaultShippingMethod:function(){if(!checkoutData.getSelectedShippingRate()&&window.checkoutConfig.selectedShippingRate){checkoutData.setSelectedShippingRate(window.checkoutConfig.selectedShippingRate);}},resolveDefaultPaymentMethod:function(){if(!checkoutData.getSelectedPaymentMethod()&&window.checkoutConfig.selectedPaymentMethod){checkoutData.setSelectedPaymentMethod(window.checkoutConfig.selectedPaymentMethod);}}}});","MGS_OSCheckout/js/model/form-popup-state.min.js":"define(['ko'],function(ko){'use strict';return{isVisible:ko.observable(false)};});","MGS_OSCheckout/js/model/agreement/agreement-validator.min.js":"define(['jquery','mage/validation'],function($){'use strict';var checkoutConfig=window.checkoutConfig,agreementsConfig=checkoutConfig?checkoutConfig.checkoutAgreements:{},agreementsInputPath='div.checkout-agreements input#agreement__1';return{validate:function(hideError){var isValid=true;if(!agreementsConfig.isEnabled||$(agreementsInputPath).length===0){return true;}\n$(agreementsInputPath).each(function(index,element){if(!$.validator.validateSingleElement(element,{errorElement:'div',hideError:hideError||false})){isValid=false;}});return isValid;}};});","MGS_OSCheckout/js/model/agreement/agreements-assigner.min.js":"define(['jquery'],function($){'use strict';var agreementsConfig=window.checkoutConfig.checkoutAgreements;var show_toc=window.checkoutConfig.mageConfig.show_toc;var SHOW_IN_PAYMENT='1';return function(paymentData){var agreementForm,agreementFormContainer,agreementData,agreementIds;if(!agreementsConfig.isEnabled){return;}\nagreementFormContainer=(show_toc==SHOW_IN_PAYMENT)?$('.payment-method._active'):$('#co-place-order-agreement');agreementForm=agreementFormContainer.find('div[data-role=checkout-agreements] input');agreementData=agreementForm.serializeArray();agreementIds=[];agreementData.forEach(function(item){agreementIds.push(item.value);});if(paymentData['extension_attributes']===undefined){paymentData['extension_attributes']={};}\npaymentData['extension_attributes']['agreement_ids']=agreementIds;};});","MGS_OSCheckout/js/model/onestepcheckout-loader/discount.min.js":"define(['ko','Magento_Checkout/js/model/quote'],function(ko,quote){'use strict';var totals=quote.getTotals(),couponCode=ko.observable(null);if(totals()){couponCode(totals()['coupon_code']);}\nreturn{isLoading:ko.observable(false),isAppliedCoupon:ko.observable(couponCode()!=null),startLoader:function(){this.isLoading(true);},stopLoader:function(){this.isLoading(false);}};});","MGS_OSCheckout/js/model/shipping/shipping-rate-service.min.js":"define(['Magento_Checkout/js/model/quote','Magento_Checkout/js/model/shipping-rate-processor/new-address','Magento_Checkout/js/model/shipping-rate-processor/customer-address'],function(quote,defaultProcessor,customerAddressProcessor){'use strict';var processors=[];processors.default=defaultProcessor;processors['customer-address']=customerAddressProcessor;return{isAddressChange:false,registerProcessor:function(type,processor){processors[type]=processor;},estimateShippingMethod:function(){var type=quote.shippingAddress().getType();if(processors[type]){processors[type].getRates(quote.shippingAddress());}else{processors.default.getRates(quote.shippingAddress());}}}});","MGS_OSCheckout/js/model/shipping/shipping-rates-validator.min.js":"define(['underscore','jquery','mageUtils','Magento_Customer/js/model/address-list','Magento_Checkout/js/model/shipping-rates-validator','Magento_Checkout/js/model/shipping-rates-validation-rules','Magento_Checkout/js/model/address-converter','Magento_Checkout/js/action/select-shipping-address','Magento_Checkout/js/model/shipping-rate-service','Magento_Checkout/js/model/shipping-service','Magento_Checkout/js/model/postcode-validator','mage/translate','uiRegistry'],function(_,$,utils,addressList,Validator,shippingRatesValidationRules,addressConverter,selectShippingAddress,shippingRateService,shippingService,postcodeValidator,$t,uiRegistry){'use strict';var countryElement=null,postcodeElement=null,postcodeElementName='postcode',observedElements=[],observableElements,defaultRules={'rate':{'postcode':{'required':true},'country_id':{'required':true}}},addressFields=window.checkoutConfig.mageConfig.addressFields;return _.extend(Validator,{isFormInline:function(){return addressList().length===0;},getValidationRules:function(){var rules=shippingRatesValidationRules.getRules();return _.isEmpty(rules)?defaultRules:rules;},ValidateAddressData:function(field,address){var self=this,canLoad=false;$.each(self.getValidationRules(),function(carrier,fields){if(fields.hasOwnProperty(field)){var missingValue=false;$.each(fields,function(key,rule){if(self.isFieldExisted(key)&&address.hasOwnProperty(key)&&rule.required&&utils.isEmpty(address[key])){var regionFields=['region','region_id','region_id_input'];if($.inArray(key,regionFields)===-1||utils.isEmpty(address['region'])&&utils.isEmpty(address['region_id'])){missingValue=true;return false;}}});if(!missingValue){canLoad=true;return false;}}});return canLoad;},isFieldExisted:function(field){var result=false;$.each(observedElements,function(key,element){if(field===element.index){result=true;return false;}});return result;},initFields:function(formPath){var self=this;observableElements=shippingRatesValidationRules.getObservableFields();if(_.isEmpty(observableElements)){observableElements.push('country_id');}\nif($.inArray(postcodeElementName,observableElements)===-1){observableElements.push(postcodeElementName);}\n$.each(addressFields,function(index,field){uiRegistry.async(formPath+'.'+field)(self.BindHandler.bind(self));});},BindHandler:function(element){var self=this;if(element.component.indexOf('/group')!==-1){$.each(element.elems(),function(index,elem){uiRegistry.async(elem.name)(function(){self.BindHandler(elem);});});}else if(element&&element.hasOwnProperty('value')){element.on('value',function(){self.PostcodeValidation();if(self.isFormInline()){var addressFlat=addressConverter.formDataProviderToFlatData(self.CollectObservedData(),'shippingAddress'),address;address=addressConverter.formAddressDataToQuoteAddress(addressFlat);selectShippingAddress(address);if($.inArray(element.index,observableElements)!==-1&&self.ValidateAddressData(element.index,addressFlat)){shippingRateService.isAddressChange=true;clearTimeout(self.validateAddressTimeout);self.validateAddressTimeout=setTimeout(function(){shippingRateService.estimateShippingMethod();},200);}}});observedElements.push(element);if(element.index===postcodeElementName){postcodeElement=element;}\nif(element.index==='country_id'){countryElement=element;}}},CollectObservedData:function(){var observedValues={};$.each(observedElements,function(index,field){var value=field.value();if($.type(value)==='undefined'){value='';}\nobservedValues[field.dataScope]=value;});return observedValues;},PostcodeValidation:function(){var countryId=countryElement.value(),validationResult,warnMessage;if(postcodeElement===null||postcodeElement.value()===null){return true;}\npostcodeElement.warn(null);validationResult=postcodeValidator.validate(postcodeElement.value(),countryId);if(!validationResult){warnMessage=$t('Provided Zip/Postal Code seems to be invalid.');if(postcodeValidator.validatedPostCodeExample.length){warnMessage+=$t(' Example: ')+postcodeValidator.validatedPostCodeExample.join('; ')+'. ';}\nwarnMessage+=$t('If you believe it is the right one you can ignore this notice.');postcodeElement.warn(warnMessage);}\nreturn validationResult;}});});","MGS_OSCheckout/js/model/address/auto-complete.min.js":"define(['MGS_OSCheckout/js/model/address/type/google'],function(googleAutoComplete){'use strict';var addressType={billing:'checkout.steps.billing-step.billingAddress.billing-address-fieldset',shipping:'checkout.steps.shipping-step.shippingAddress.shipping-address-fieldset'};return{register:function(type){if(addressType.hasOwnProperty(type)){switch(window.checkoutConfig.mageConfig.autocomplete.type){case'google':new googleAutoComplete(addressType[type]);break;case'pca':break;default:break;}}}};});","MGS_OSCheckout/js/model/address/type/google.min.js":"define(['jquery','uiClass','uiRegistry'],function($,Class,registry){'use strict';var specificCountry=window.checkoutConfig.mageConfig.autocomplete.google_default_country,elementFields=['street','country_id','city','region','region_id','region_id_input','postcode'];var componentForm={street_number:'short_name',route:'long_name',neighborhood:'long_name',administrative_area_level_2:'short_name',locality:'long_name',administrative_area_level_1:'long_name',country:'short_name',postal_code:'short_name'};var isUsedMaterialDesign=window.checkoutConfig.mageConfig.isUsedMaterialDesign;return Class.extend({initialize:function(fieldsetName){this._super();this.initAddressElements(fieldsetName).initAutoComplete();return this;},initAddressElements:function(fieldsetName){var self=this;this.addressElements={};$.each(elementFields,function(index,field){var fieldElement=registry.async(fieldsetName+'.'+field)();if(field=='street'){$.each(fieldElement.elems(),function(key,elem){if(key==0){fieldElement=elem;self.inputSelector=document.getElementById(elem.uid);self.geolocateSelector=$('#'+elem.uid+'-geolocation');return false;}});}\nif(typeof fieldElement!=='undefined'){self.addressElements[field]=fieldElement;}});return this;},initAutoComplete:function(){if(this.inputSelector){var options={types:['geocode']};if(specificCountry){options.componentRestrictions={country:specificCountry};}\nthis.autoComplete=new google.maps.places.Autocomplete(this.inputSelector,options);if(isUsedMaterialDesign){$(this.inputSelector).attr('placeholder','');}\nthis.autoComplete.addListener('place_changed',this.placeChangedListener.bind(this));if(this.geolocateSelector.length){this.geolocateSelector.on('click',this.getCurrentLocation.bind(this));}}\nreturn this;},placeChangedListener:function(){var place=this.autoComplete.getPlace();this.unserializeAddress(place);},unserializeAddress:function(place){var responseComponents=this.initResponseComponents();for(var i=0;i<place.address_components.length;i++){var addressType=place.address_components[i].types[0];if(componentForm.hasOwnProperty(addressType)){var addressValue=place.address_components[i][componentForm[addressType]];if($.inArray(addressType,['street_number','route','administrative_area_level_2'])!==-1){if(responseComponents.street!=''){responseComponents.street+=', ';}\nresponseComponents.street+=addressValue;}\nif(addressType=='locality'){responseComponents.city=addressValue;}\nif(addressType=='administrative_area_level_1'){responseComponents.region=addressValue;responseComponents.region_id=addressValue;responseComponents.region_id_input=addressValue;}\nif(addressType=='country'){responseComponents.country_id=addressValue;}\nif(addressType=='postal_code'){responseComponents.postcode=addressValue;}}}\nif(place.hasOwnProperty('name')){responseComponents.street=place.name;}\nthis.fillInAddress(responseComponents);},fillInAddress:function(components){var self=this;$.each(this.addressElements,function(index,element){if(element.visible()&&components.hasOwnProperty(index)){if(index=='region_id'){$.each(element.options(),function(key,option){if(components[index]==option.label){element.value(option.value);return false;}});}else{element.value(components[index]);if(index=='street'){self.inputSelector.value=components[index];}}}});},geolocate:function(){var self=this;if(navigator.geolocation){navigator.geolocation.getCurrentPosition(function(position){var geolocation={lat:position.coords.latitude,lng:position.coords.longitude};var circle=new google.maps.Circle({center:geolocation,radius:position.coords.accuracy});self.autoComplete.setBounds(circle.getBounds());});}},getCurrentLocation:function(){var self=this;if(navigator.geolocation){navigator.geolocation.getCurrentPosition(function(position){var geocoder=new google.maps.Geocoder();var location=new google.maps.LatLng(position.coords.latitude,position.coords.longitude);geocoder.geocode({'latLng':location},function(results,status){if(status==google.maps.GeocoderStatus.OK){self.unserializeAddress(results[0]);}else{return false;}});});}},initResponseComponents:function(){return{street:'',country_id:'',region:'',region_id:'',region_id_input:'',city:'',postcode:''};}});});","MGS_OSCheckout/js/action/payment-total-information.min.js":"define(['jquery','Magento_Checkout/js/model/quote','MGS_OSCheckout/js/model/resource-url-manager','mage/storage','Magento_Checkout/js/model/error-processor','Magento_Customer/js/model/customer','Magento_Checkout/js/model/payment/method-converter','Magento_Checkout/js/model/payment-service','Magento_Checkout/js/model/shipping-service','MGS_OSCheckout/js/model/one-step-checkout-loader'],function($,quote,resourceUrlManager,storage,errorProcessor,customer,methodConverter,paymentService,shippingService,OneStepCheckoutLoader){'use strict';return function(){OneStepCheckoutLoader.startLoader();return storage.post(resourceUrlManager.getUrlForUpdatePaymentTotalInformation(quote)).done(function(response){if(response.redirect_url){window.location.href=response.redirect_url;return;}\nquote.setTotals(response.totals);paymentService.setPaymentMethods(methodConverter(response.payment_methods));}).fail(function(response){errorProcessor.process(response);}).always(function(){OneStepCheckoutLoader.stopLoader();});};});","MGS_OSCheckout/js/action/set-payment-method.min.js":"define(['underscore','jquery','Magento_Checkout/js/model/quote','Magento_Checkout/js/model/url-builder','mage/storage','Magento_Checkout/js/model/error-processor','Magento_Customer/js/model/customer','Magento_Checkout/js/model/full-screen-loader','Magento_CheckoutAgreements/js/model/agreements-assigner'],function($,_,quote,urlBuilder,storage,errorProcessor,customer,fullScreenLoader,agreementsAssigner){'use strict';return function(messageContainer){var serviceUrl,payload,paymentData=_.extend({},quote.paymentMethod());agreementsAssigner(paymentData);if(paymentData.method==='paypal_express'){delete paymentData.__disableTmpl;}\nif(!customer.isLoggedIn()){serviceUrl=urlBuilder.createUrl('/guest-carts/:cartId/set-payment-information',{cartId:quote.getQuoteId()});payload={cartId:quote.getQuoteId(),email:quote.guestEmail,paymentMethod:paymentData};}else{serviceUrl=urlBuilder.createUrl('/carts/mine/set-payment-information',{});payload={cartId:quote.getQuoteId(),paymentMethod:paymentData};}\nfullScreenLoader.startLoader();return storage.post(serviceUrl,JSON.stringify(payload)).fail(function(response){errorProcessor.process(response,messageContainer);}).always(function(){fullScreenLoader.stopLoader();});};});","MGS_OSCheckout/js/action/set-checkout-information.min.js":"define(['Magento_Checkout/js/model/shipping-save-processor','MGS_OSCheckout/js/model/checkout'],function(shippingSaveProcessor,Processor){'use strict';shippingSaveProcessor.registerProcessor('onestepcheckout',Processor);return function(){return shippingSaveProcessor.saveShippingInformation('onestepcheckout');}});","MGS_OSCheckout/js/action/update-item.min.js":"define(['Magento_Checkout/js/model/quote','MGS_OSCheckout/js/model/resource-url-manager','mage/storage','Magento_Checkout/js/model/error-processor','Magento_Customer/js/model/customer','Magento_Checkout/js/model/payment/method-converter','Magento_Checkout/js/model/payment-service','Magento_Checkout/js/model/shipping-service','MGS_OSCheckout/js/model/one-step-checkout-loader','Magento_Customer/js/customer-data'],function(quote,resourceUrlManager,storage,errorProcessor,customer,methodConverter,paymentService,shippingService,OneStepCheckoutLoader,customerData){'use strict';var itemUpdateLoader=['shipping','payment','total'];return function(payload){var isRemove=!('item_qty'in payload);if(!customer.isLoggedIn()){payload.cart_id=quote.getQuoteId();}\nOneStepCheckoutLoader.startLoader(itemUpdateLoader);return storage.post(resourceUrlManager.getUrlForUpdateItemInformation(quote,isRemove),JSON.stringify(payload)).done(function(response){if(response.redirect_url){window.location.href=response.redirect_url;return;}\nquote.setTotals(response.totals);paymentService.setPaymentMethods(methodConverter(response.payment_methods));if(response.shipping_methods&&!quote.isVirtual()){shippingService.setShippingRates(response.shipping_methods);}\ncustomerData.reload(['cart'],true);}).fail(function(response){errorProcessor.process(response);}).always(function(){OneStepCheckoutLoader.stopLoader(itemUpdateLoader);});};});","MGS_OSCheckout/js/action/check-email-availability.min.js":"define(['mage/storage','MGS_OSCheckout/js/model/resource-url-manager','Magento_Checkout/js/model/quote'],function(storage,resourceUrlManager,quote){'use strict';return function(email){return storage.post(resourceUrlManager.getUrlForCheckIsEmailAvailable(quote),JSON.stringify({customerEmail:email}),true);};});","MGS_OSCheckout/js/action/place-order-mixins.min.js":"define(['jquery','mage/utils/wrapper','MGS_OSCheckout/js/action/set-checkout-information',],function($,wrapper,setCheckoutInformationAction){'use strict';return function(placeOrderAction){return wrapper.wrap(placeOrderAction,function(originalAction,paymentData,messageContainer){var deferred=$.Deferred();if(paymentData&&paymentData.method==='braintree_paypal'){setCheckoutInformationAction().done(function(){originalAction(paymentData,messageContainer).done(function(response){deferred.resolve(response);}).fail(function(response){deferred.reject(response);})}).fail(function(response){deferred.reject(response);})}else{return originalAction(paymentData,messageContainer).fail(function(response){if($('.message-error').length){$('html, body').scrollTop($('.message-error:visible:first').closest('div').offset().top-$(window).height()/ 2);}});}\nreturn deferred;});};});","Magento_Customer/js/checkout-balance.min.js":"define(['jquery','jquery-ui-modules/widget'],function($){'use strict';$.widget('mage.checkoutBalance',{_create:function(){this.eventData={price:this.options.balance,totalPrice:0};this.element.on('change',$.proxy(function(e){if($(e.target).is(':checked')){this.eventData.price=-1*this.options.balance;}else{if(this.options.amountSubstracted){this.eventData.price=parseFloat(this.options.usedAmount);this.options.amountSubstracted=false;}else{this.eventData.price=parseFloat(this.options.balance);}}\nthis.element.trigger('updateCheckoutPrice',this.eventData);},this));}});return $.mage.checkoutBalance;});","Magento_Customer/js/block-submit-on-send.min.js":"define(['jquery','mage/mage'],function($){'use strict';return function(config){var dataForm=$('#'+config.formId);dataForm.submit(function(){$(this).find(':submit').attr('disabled','disabled');if(this.isValid===false){$(this).find(':submit').prop('disabled',false);}\nthis.isValid=true;});dataForm.bind('invalid-form.validate',function(){$(this).find(':submit').prop('disabled',false);this.isValid=false;});};});","Magento_Customer/js/password-strength-indicator.min.js":"define(['jquery','Magento_Customer/js/zxcvbn','mage/translate','mage/validation'],function($,zxcvbn,$t){'use strict';$.widget('mage.passwordStrengthIndicator',{options:{cache:{},passwordSelector:'[type=password]',passwordStrengthMeterSelector:'[data-role=password-strength-meter]',passwordStrengthMeterLabelSelector:'[data-role=password-strength-meter-label]',formSelector:'form',emailSelector:'input[type=\"email\"]'},_create:function(){this.options.cache.input=$(this.options.passwordSelector,this.element);this.options.cache.meter=$(this.options.passwordStrengthMeterSelector,this.element);this.options.cache.label=$(this.options.passwordStrengthMeterLabelSelector,this.element);this.options.cache.email=$(this.options.formSelector).find(this.options.emailSelector);this._bind();},_bind:function(){this._on(this.options.cache.input,{'change':this._calculateStrength,'keyup':this._calculateStrength,'paste':this._calculateStrength});if(this.options.cache.email.length){this._on(this.options.cache.email,{'change':this._calculateStrength,'keyup':this._calculateStrength,'paste':this._calculateStrength});}},_calculateStrength:function(){var password=this._getPassword(),isEmpty=password.length===0,zxcvbnScore,displayScore,isValid;if(isEmpty){displayScore=0;}else{this.options.cache.input.rules('add',{'password-not-equal-to-user-name':this.options.cache.email.val()});if(this.options.cache.email.length&&password.toLowerCase()===this.options.cache.email.val().toLowerCase()){displayScore=1;}else{isValid=$.validator.validateSingleElement(this.options.cache.input);zxcvbnScore=zxcvbn(password).score;displayScore=isValid&&zxcvbnScore>0?zxcvbnScore:1;}}\nthis._displayStrength(displayScore);},_displayStrength:function(displayScore){var strengthLabel='',className;switch(displayScore){case 0:strengthLabel=$t('No Password');className='password-none';break;case 1:strengthLabel=$t('Weak');className='password-weak';break;case 2:strengthLabel=$t('Medium');className='password-medium';break;case 3:strengthLabel=$t('Strong');className='password-strong';break;case 4:strengthLabel=$t('Very Strong');className='password-very-strong';break;}\nthis.options.cache.meter.removeClass().addClass(className);this.options.cache.label.text(strengthLabel);},_getPassword:function(){return this.options.cache.input.val();}});return $.mage.passwordStrengthIndicator;});","Magento_Customer/js/section-config.min.js":"define(['underscore'],function(_){'use strict';var baseUrls=[],sections=[],clientSideSections=[],sectionNames=[],canonize;canonize=function(url){var route=url;_.some(baseUrls,function(baseUrl){route=url.replace(baseUrl,'');return route!==url;});return route.replace(/^\\/?index.php\\/?/,'').toLowerCase();};return{getAffectedSections:function(url){var route=canonize(url),actions=_.find(sections,function(val,section){var matched;if(section.indexOf('*')>=0){section=section.replace(/\\*/g,'[^/]+')+'$';matched=route.match(section);return matched&&matched[0]===route;}\nreturn route.indexOf(section)===0;});return _.union(_.toArray(actions),sections['*']);},filterClientSideSections:function(allSections){return _.difference(allSections,clientSideSections);},isClientSideSection:function(sectionName){return _.contains(clientSideSections,sectionName);},getSectionNames:function(){return sectionNames;},'Magento_Customer/js/section-config':function(options){baseUrls=options.baseUrls;sections=options.sections;clientSideSections=options.clientSideSections;sectionNames=options.sectionNames;}};});","Magento_Customer/js/change-email-password.min.js":"define(['jquery','jquery-ui-modules/widget'],function($){'use strict';$.widget('mage.changeEmailPassword',{options:{changeEmailSelector:'[data-role=change-email]',changePasswordSelector:'[data-role=change-password]',mainContainerSelector:'[data-container=change-email-password]',titleSelector:'[data-title=change-email-password]',emailContainerSelector:'[data-container=change-email]',newPasswordContainerSelector:'[data-container=new-password]',confirmPasswordContainerSelector:'[data-container=confirm-password]',currentPasswordSelector:'[data-input=current-password]',emailSelector:'[data-input=change-email]',newPasswordSelector:'[data-input=new-password]',confirmPasswordSelector:'[data-input=confirm-password]'},_create:function(){this.element.on('change',$.proxy(function(){this._checkChoice();},this));this._checkChoice();this._bind();},_bind:function(){this._on($(this.options.emailSelector),{'change':this._updatePasswordFieldWithEmailValue,'keyup':this._updatePasswordFieldWithEmailValue,'paste':this._updatePasswordFieldWithEmailValue});},_checkChoice:function(){if($(this.options.changeEmailSelector).is(':checked')&&$(this.options.changePasswordSelector).is(':checked')){this._showAll();}else if($(this.options.changeEmailSelector).is(':checked')){this._showEmail();}else if($(this.options.changePasswordSelector).is(':checked')){this._showPassword();}else{this._hideAll();}},_showAll:function(){$(this.options.titleSelector).html(this.options.titleChangeEmailAndPassword);$(this.options.mainContainerSelector).show();$(this.options.emailContainerSelector).show();$(this.options.newPasswordContainerSelector).show();$(this.options.confirmPasswordContainerSelector).show();$(this.options.currentPasswordSelector).attr('data-validate','{required:true}').prop('disabled',false);$(this.options.emailSelector).attr('data-validate','{required:true}').prop('disabled',false);this._updatePasswordFieldWithEmailValue();$(this.options.confirmPasswordSelector).attr('data-validate','{required:true, equalTo:\"'+this.options.newPasswordSelector+'\"}').prop('disabled',false);},_hideAll:function(){$(this.options.mainContainerSelector).hide();$(this.options.emailContainerSelector).hide();$(this.options.newPasswordContainerSelector).hide();$(this.options.confirmPasswordContainerSelector).hide();$(this.options.currentPasswordSelector).removeAttr('data-validate').prop('disabled',true);$(this.options.emailSelector).removeAttr('data-validate').prop('disabled',true);$(this.options.newPasswordSelector).removeAttr('data-validate').prop('disabled',true);$(this.options.confirmPasswordSelector).removeAttr('data-validate').prop('disabled',true);},_showEmail:function(){this._showAll();$(this.options.titleSelector).html(this.options.titleChangeEmail);$(this.options.newPasswordContainerSelector).hide();$(this.options.confirmPasswordContainerSelector).hide();$(this.options.newPasswordSelector).removeAttr('data-validate').prop('disabled',true);$(this.options.confirmPasswordSelector).removeAttr('data-validate').prop('disabled',true);},_showPassword:function(){this._showAll();$(this.options.titleSelector).html(this.options.titleChangePassword);$(this.options.emailContainerSelector).hide();$(this.options.emailSelector).removeAttr('data-validate').prop('disabled',true);},_updatePasswordFieldWithEmailValue:function(){$(this.options.newPasswordSelector).attr('data-validate','{required:true, '+'\\'validate-customer-password\\':true, '+'\\'password-not-equal-to-user-name\\':\\''+$(this.options.emailSelector).val()+'\\'}').prop('disabled',false);}});return $.mage.changeEmailPassword;});","Magento_Customer/js/show-password.min.js":"define(['jquery','uiComponent'],function($,Component){'use strict';return Component.extend({passwordSelector:'',passwordInputType:'password',textInputType:'text',defaults:{template:'Magento_Customer/show-password',isPasswordVisible:false},initObservable:function(){this._super().observe(['isPasswordVisible']);this.isPasswordVisible.subscribe(function(isChecked){this._showPassword(isChecked);}.bind(this));return this;},_showPassword:function(isChecked){$(this.passwordSelector).attr('type',isChecked?this.textInputType:this.passwordInputType);}});});","Magento_Customer/js/invalidation-processor.min.js":"define(['underscore','uiElement','Magento_Customer/js/customer-data'],function(_,Element,customerData){'use strict';return Element.extend({initialize:function(){this._super();this.process(customerData);},process:function(customerDataObject){_.each(this.invalidationRules,function(rule,ruleName){_.each(rule,function(ruleArgs,rulePath){require([rulePath],function(Rule){var currentRule=new Rule(ruleArgs);if(!_.isFunction(currentRule.process)){throw new Error('Rule '+ruleName+' should implement invalidationProcessor interface');}\ncurrentRule.process(customerDataObject);});});});}});});","Magento_Customer/js/validation.min.js":"define(['jquery','moment','mageUtils','jquery/validate','validation','mage/translate'],function($,moment,utils){'use strict';$.validator.addMethod('validate-date',function(value,element,params){var dateFormat=utils.normalizeDate(params.dateFormat);if(value===''){return true;}\nreturn moment(value,dateFormat,true).isValid();},$.mage.__('Invalid date'));$.validator.addMethod('validate-dob',function(value,element,params){var dateFormat=utils.convertToMomentFormat(params.dateFormat);if(value===''){return true;}\nreturn moment(value,dateFormat).isBefore(moment());},$.mage.__('The Date of Birth should not be greater than today.'));});","Magento_Customer/js/customer-global-session-loader.min.js":"define(['jquery','Magento_Customer/js/customer-data'],function($,customerData){'use strict';return function(){var customer;if($('.customer-menu').length>0){customer=customerData.get('customer');customerData.getInitCustomerData().done(function(){if(!customer().firstname){customerData.reload([],false);}});}};});","Magento_Customer/js/address.min.js":"define(['jquery','Magento_Ui/js/modal/confirm','jquery-ui-modules/widget','mage/translate'],function($,confirm){'use strict';$.widget('mage.address',{options:{deleteConfirmMessage:$.mage.__('Are you sure you want to delete this address?')},_create:function(){var options=this.options,addAddress=options.addAddress,deleteAddress=options.deleteAddress;if(addAddress){$(document).on('click',addAddress,this._addAddress.bind(this));}\nif(deleteAddress){$(document).on('click',deleteAddress,this._deleteAddress.bind(this));}},_addAddress:function(){window.location=this.options.addAddressLocation;},_deleteAddress:function(e){var self=this;confirm({content:this.options.deleteConfirmMessage,actions:{confirm:function(){if(typeof $(e.target).parent().data('address')!=='undefined'){window.location=self.options.deleteUrlPrefix+$(e.target).parent().data('address')+'/form_key/'+$.mage.cookies.get('form_key');}else{window.location=self.options.deleteUrlPrefix+$(e.target).data('address')+'/form_key/'+$.mage.cookies.get('form_key');}}}});return false;}});return $.mage.address;});","Magento_Customer/js/customer-data.min.js":"define(['jquery','underscore','ko','Magento_Customer/js/section-config','mage/url','mage/storage','jquery/jquery-storageapi'],function($,_,ko,sectionConfig,url){'use strict';var options={},storage,storageInvalidation,invalidateCacheBySessionTimeOut,invalidateCacheByCloseCookieSession,dataProvider,buffer,customerData,deferred=$.Deferred();url.setBaseUrl(window.BASE_URL);options.sectionLoadUrl=url.build('customer/section/load');invalidateCacheBySessionTimeOut=function(invalidateOptions){var date;if(new Date($.localStorage.get('mage-cache-timeout'))<new Date()){storage.removeAll();}\ndate=new Date(Date.now()+parseInt(invalidateOptions.cookieLifeTime,10)*1000);$.localStorage.set('mage-cache-timeout',date);};invalidateCacheByCloseCookieSession=function(){if(!$.cookieStorage.isSet('mage-cache-sessid')){storage.removeAll();}\n$.cookieStorage.set('mage-cache-sessid',true);};dataProvider={getFromStorage:function(sectionNames){var result={};_.each(sectionNames,function(sectionName){result[sectionName]=storage.get(sectionName);});return result;},getFromServer:function(sectionNames,forceNewSectionTimestamp){var parameters;sectionNames=sectionConfig.filterClientSideSections(sectionNames);parameters=_.isArray(sectionNames)&&sectionNames.indexOf('*')<0?{sections:sectionNames.join(',')}:[];parameters['force_new_section_timestamp']=forceNewSectionTimestamp;return $.getJSON(options.sectionLoadUrl,parameters).fail(function(jqXHR){throw new Error(jqXHR);});}};ko.extenders.disposableCustomerData=function(target,sectionName){var sectionDataIds,newSectionDataIds={};target.subscribe(function(){setTimeout(function(){storage.remove(sectionName);sectionDataIds=$.cookieStorage.get('section_data_ids')||{};_.each(sectionDataIds,function(data,name){if(name!==sectionName){newSectionDataIds[name]=data;}});$.cookieStorage.set('section_data_ids',newSectionDataIds);},3000);});return target;};buffer={data:{},bind:function(sectionName){this.data[sectionName]=ko.observable({});},get:function(sectionName){if(!this.data[sectionName]){this.bind(sectionName);}\nreturn this.data[sectionName];},keys:function(){return _.keys(this.data);},notify:function(sectionName,sectionData){if(!this.data[sectionName]){this.bind(sectionName);}\nthis.data[sectionName](sectionData);},update:function(sections){var sectionId=0,sectionDataIds=$.cookieStorage.get('section_data_ids')||{};_.each(sections,function(sectionData,sectionName){sectionId=sectionData['data_id'];sectionDataIds[sectionName]=sectionId;storage.set(sectionName,sectionData);storageInvalidation.remove(sectionName);buffer.notify(sectionName,sectionData);});$.cookieStorage.set('section_data_ids',sectionDataIds);},remove:function(sections){_.each(sections,function(sectionName){storage.remove(sectionName);if(!sectionConfig.isClientSideSection(sectionName)){storageInvalidation.set(sectionName,true);}});}};customerData={init:function(){var expiredSectionNames=this.getExpiredSectionNames();if(expiredSectionNames.length>0){_.each(dataProvider.getFromStorage(storage.keys()),function(sectionData,sectionName){buffer.notify(sectionName,sectionData);});this.reload(expiredSectionNames,false);}else{_.each(dataProvider.getFromStorage(storage.keys()),function(sectionData,sectionName){buffer.notify(sectionName,sectionData);});if(!_.isEmpty(storageInvalidation.keys())){this.reload(storageInvalidation.keys(),false);}}\nif(!_.isEmpty($.cookieStorage.get('section_data_clean'))){this.reload(sectionConfig.getSectionNames(),true);$.cookieStorage.set('section_data_clean','');}},initStorage:function(){$.cookieStorage.setConf({path:'/',expires:new Date(Date.now()+parseInt(options.cookieLifeTime,10)*1000)});storage=$.initNamespaceStorage('mage-cache-storage').localStorage;storageInvalidation=$.initNamespaceStorage('mage-cache-storage-section-invalidation').localStorage;},getExpiredSectionNames:function(){var expiredSectionNames=[],cookieSectionTimestamps=$.cookieStorage.get('section_data_ids')||{},sectionLifetime=options.expirableSectionLifetime*60,currentTimestamp=Math.floor(Date.now()/ 1000),sectionData;_.each(options.expirableSectionNames,function(sectionName){sectionData=storage.get(sectionName);if(typeof sectionData==='object'&&sectionData['data_id']+sectionLifetime<=currentTimestamp){expiredSectionNames.push(sectionName);}});_.each(cookieSectionTimestamps,function(cookieSectionTimestamp,sectionName){sectionData=storage.get(sectionName);if(typeof sectionData==='undefined'||typeof sectionData==='object'&&cookieSectionTimestamp!==sectionData['data_id']){expiredSectionNames.push(sectionName);}});expiredSectionNames=_.intersection(expiredSectionNames,sectionConfig.getSectionNames());return _.uniq(expiredSectionNames);},needReload:function(){var expiredSectionNames=this.getExpiredSectionNames();return expiredSectionNames.length>0;},getExpiredKeys:function(){return this.getExpiredSectionNames();},get:function(sectionName){return buffer.get(sectionName);},set:function(sectionName,sectionData){var data={};data[sectionName]=sectionData;buffer.update(data);},reload:function(sectionNames,forceNewSectionTimestamp){return dataProvider.getFromServer(sectionNames,forceNewSectionTimestamp).done(function(sections){$(document).trigger('customer-data-reload',[sectionNames]);buffer.update(sections);});},invalidate:function(sectionNames){var sectionDataIds,sectionsNamesForInvalidation;sectionsNamesForInvalidation=_.contains(sectionNames,'*')?sectionConfig.getSectionNames():sectionNames;$(document).trigger('customer-data-invalidate',[sectionsNamesForInvalidation]);buffer.remove(sectionsNamesForInvalidation);sectionDataIds=$.cookieStorage.get('section_data_ids')||{};_.each(sectionsNamesForInvalidation,function(sectionName){if(!sectionConfig.isClientSideSection(sectionName)){sectionDataIds[sectionName]+=1000;}});$.cookieStorage.set('section_data_ids',sectionDataIds);},getInitCustomerData:function(){return deferred.promise();},onAjaxComplete:function(jsonResponse,settings){var sections,redirects;if(settings.type.match(/post|put|delete/i)){sections=sectionConfig.getAffectedSections(settings.url);if(sections&&sections.length){this.invalidate(sections);redirects=['redirect','backUrl'];if(_.isObject(jsonResponse)&&!_.isEmpty(_.pick(jsonResponse,redirects))){return;}\nthis.reload(sections,true);}}},'Magento_Customer/js/customer-data':function(settings){options=settings;customerData.initStorage();invalidateCacheBySessionTimeOut(settings);invalidateCacheByCloseCookieSession();customerData.init();deferred.resolve();}};$(document).on('ajaxComplete',function(event,xhr,settings){customerData.onAjaxComplete(xhr.responseJSON,settings);});$(document).on('submit',function(event){var sections;if(event.target.method.match(/post|put|delete/i)){sections=sectionConfig.getAffectedSections(event.target.action);if(sections){customerData.invalidate(sections);}}});return customerData;});","Magento_Customer/js/logout-redirect.min.js":"define(['jquery','mage/mage'],function($){'use strict';return function(data){$($.mage.redirect(data.url,'assign',5000));};});","Magento_Customer/js/addressValidation.min.js":"define(['jquery','underscore','mageUtils','mage/translate','Magento_Checkout/js/model/postcode-validator','jquery-ui-modules/widget','validation'],function($,__,utils,$t,postCodeValidator){'use strict';$.widget('mage.addressValidation',{options:{selectors:{button:'[data-action=save-address]',zip:'#zip',country:'select[name=\"country_id\"]:visible'}},zipInput:null,countrySelect:null,_create:function(){var button=$(this.options.selectors.button,this.element);this.zipInput=$(this.options.selectors.zip,this.element);this.countrySelect=$(this.options.selectors.country,this.element);this.element.validation({submitHandler:function(form){button.attr('disabled',true);form.submit();}});this._addPostCodeValidation();},_addPostCodeValidation:function(){var self=this;this.zipInput.on('keyup',__.debounce(function(event){var valid=self._validatePostCode(event.target.value);self._renderValidationResult(valid);},500));this.countrySelect.on('change',function(){var valid=self._validatePostCode(self.zipInput.val());self._renderValidationResult(valid);});},_validatePostCode:function(postCode){var countryId=this.countrySelect.val();if(postCode===null){return true;}\nreturn postCodeValidator.validate(postCode,countryId,this.options.postCodes);},_renderValidationResult:function(valid){var warnMessage,alertDiv=this.zipInput.next();if(!valid){warnMessage=$t('Provided Zip/Postal Code seems to be invalid.');if(postCodeValidator.validatedPostCodeExample.length){warnMessage+=$t(' Example: ')+postCodeValidator.validatedPostCodeExample.join('; ')+'. ';}\nwarnMessage+=$t('If you believe it is the right one you can ignore this notice.');}\nalertDiv.children(':first').text(warnMessage);if(valid){alertDiv.hide();}else{alertDiv.show();}}});return $.mage.addressValidation;});","Magento_Customer/js/view/authentication-popup.min.js":"define(['jquery','ko','Magento_Ui/js/form/form','Magento_Customer/js/action/login','Magento_Customer/js/customer-data','Magento_Customer/js/model/authentication-popup','mage/translate','mage/url','Magento_Ui/js/modal/alert','mage/validation'],function($,ko,Component,loginAction,customerData,authenticationPopup,$t,url,alert){'use strict';return Component.extend({registerUrl:window.authenticationPopup.customerRegisterUrl,forgotPasswordUrl:window.authenticationPopup.customerForgotPasswordUrl,autocomplete:window.authenticationPopup.autocomplete,modalWindow:null,isLoading:ko.observable(false),defaults:{template:'Magento_Customer/authentication-popup'},initialize:function(){var self=this;this._super();url.setBaseUrl(window.authenticationPopup.baseUrl);loginAction.registerLoginCallback(function(){self.isLoading(false);});},setModalElement:function(element){if(authenticationPopup.modalWindow==null){authenticationPopup.createPopUp(element);}},isActive:function(){var customer=customerData.get('customer');return customer()==false;},showModal:function(){if(this.modalWindow){$(this.modalWindow).modal('openModal');}else{alert({content:$t('Guest checkout is disabled.')});}},login:function(formUiElement,event){var loginData={},formElement=$(event.currentTarget),formDataArray=formElement.serializeArray();event.stopPropagation();formDataArray.forEach(function(entry){loginData[entry.name]=entry.value;});loginData['customerLoginUrl']=window.authenticationPopup.customerLoginUrl;if(formElement.validation()&&formElement.validation('isValid')){this.isLoading(true);loginAction(loginData);}\nreturn false;}});});","Magento_Customer/js/view/customer.min.js":"define(['uiComponent','Magento_Customer/js/customer-data'],function(Component,customerData){'use strict';return Component.extend({initialize:function(){this._super();this.customer=customerData.get('customer');}});});","Magento_Customer/js/model/authentication-popup.min.js":"define(['jquery','Magento_Ui/js/modal/modal'],function($,modal){'use strict';return{modalWindow:null,createPopUp:function(element){var options={'type':'popup','modalClass':'popup-authentication','focus':'[name=username]','responsive':true,'innerScroll':true,'trigger':'.proceed-to-checkout','buttons':[]};this.modalWindow=element;modal(options,$(this.modalWindow));},showModal:function(){$(this.modalWindow).modal('openModal').trigger('contentUpdated');}};});","Magento_Customer/js/model/customer-addresses.min.js":"define(['jquery','ko','./customer/address'],function($,ko,Address){'use strict';var isLoggedIn=ko.observable(window.isCustomerLoggedIn);return{getAddressItems:function(){var items=[],customerData=window.customerData;if(isLoggedIn()){if(Object.keys(customerData).length){$.each(customerData.addresses,function(key,item){items.push(new Address(item));});}}\nreturn items;}};});","Magento_Customer/js/model/customer.min.js":"define(['jquery','ko','underscore','./address-list'],function($,ko,_,addressList){'use strict';var isLoggedIn=ko.observable(window.isCustomerLoggedIn),customerData={};if(isLoggedIn()){customerData=window.customerData;}else{customerData={};}\nreturn{customerData:customerData,customerDetails:{},isLoggedIn:isLoggedIn,setIsLoggedIn:function(flag){isLoggedIn(flag);},getBillingAddressList:function(){return addressList();},getShippingAddressList:function(){return addressList();},setDetails:function(fieldName,value){if(fieldName){this.customerDetails[fieldName]=value;}},getDetails:function(fieldName){if(fieldName){if(this.customerDetails.hasOwnProperty(fieldName)){return this.customerDetails[fieldName];}\nreturn undefined;}\nreturn this.customerDetails;},addCustomerAddress:function(address){var fields=['customer_id','country_id','street','company','telephone','fax','postcode','city','firstname','lastname','middlename','prefix','suffix','vat_id','default_billing','default_shipping'],customerAddress={},hasAddress=0,existingAddress;if(!this.customerData.addresses){this.customerData.addresses=[];}\ncustomerAddress=_.pick(address,fields);if(address.hasOwnProperty('region_id')){customerAddress.region={'region_id':address['region_id'],region:address.region};}\nfor(existingAddress in this.customerData.addresses){if(this.customerData.addresses.hasOwnProperty(existingAddress)){if(_.isEqual(this.customerData.addresses[existingAddress],customerAddress)){hasAddress=existingAddress;break;}}}\nif(hasAddress===0){return this.customerData.addresses.push(customerAddress)-1;}\nreturn hasAddress;},setAddressAsDefaultBilling:function(addressId){if(this.customerData.addresses[addressId]){this.customerData.addresses[addressId]['default_billing']=1;return true;}\nreturn false;},setAddressAsDefaultShipping:function(addressId){if(this.customerData.addresses[addressId]){this.customerData.addresses[addressId]['default_shipping']=1;return true;}\nreturn false;}};});","Magento_Customer/js/model/address-list.min.js":"define(['ko','./customer-addresses'],function(ko,defaultProvider){'use strict';return ko.observableArray(defaultProvider.getAddressItems());});","Magento_Customer/js/model/customer/address.min.js":"define(['underscore'],function(_){'use strict';return function(addressData){var regionId;if(addressData.region['region_id']&&addressData.region['region_id']!=='0'){regionId=addressData.region['region_id']+'';}\nreturn{customerAddressId:addressData.id,email:addressData.email,countryId:addressData['country_id'],regionId:regionId,regionCode:addressData.region['region_code'],region:addressData.region.region,customerId:addressData['customer_id'],street:addressData.street,company:addressData.company,telephone:addressData.telephone,fax:addressData.fax,postcode:addressData.postcode,city:addressData.city,firstname:addressData.firstname,lastname:addressData.lastname,middlename:addressData.middlename,prefix:addressData.prefix,suffix:addressData.suffix,vatId:addressData['vat_id'],sameAsBilling:addressData['same_as_billing'],saveInAddressBook:addressData['save_in_address_book'],customAttributes:_.toArray(addressData['custom_attributes']).reverse(),isDefaultShipping:function(){return addressData['default_shipping'];},isDefaultBilling:function(){return addressData['default_billing'];},getAddressInline:function(){return addressData.inline;},getType:function(){return'customer-address';},getKey:function(){return this.getType()+this.customerAddressId;},getCacheKey:function(){return this.getKey();},isEditable:function(){return false;},canUseForBilling:function(){return true;}};};});","Magento_Customer/js/action/check-email-availability.min.js":"define(['mage/storage','Magento_Checkout/js/model/url-builder'],function(storage,urlBuilder){'use strict';return function(deferred,email){return storage.post(urlBuilder.createUrl('/customers/isEmailAvailable',{}),JSON.stringify({customerEmail:email}),false).done(function(isEmailAvailable){if(isEmailAvailable){deferred.resolve();}else{deferred.reject();}}).fail(function(){deferred.reject();});};});","Magento_Customer/js/action/login.min.js":"define(['jquery','mage/storage','Magento_Ui/js/model/messageList','Magento_Customer/js/customer-data','mage/translate'],function($,storage,globalMessageList,customerData,$t){'use strict';var callbacks=[],action=function(loginData,redirectUrl,isGlobal,messageContainer){messageContainer=messageContainer||globalMessageList;let customerLoginUrl='customer/ajax/login';if(loginData.customerLoginUrl){customerLoginUrl=loginData.customerLoginUrl;delete loginData.customerLoginUrl;}\nreturn storage.post(customerLoginUrl,JSON.stringify(loginData),isGlobal).done(function(response){if(response.errors){messageContainer.addErrorMessage(response);callbacks.forEach(function(callback){callback(loginData);});}else{callbacks.forEach(function(callback){callback(loginData);});customerData.invalidate(['customer']);if(response.redirectUrl){window.location.href=response.redirectUrl;}else if(redirectUrl){window.location.href=redirectUrl;}else{location.reload();}}}).fail(function(){messageContainer.addErrorMessage({'message':$t('Could not authenticate. Please try again later')});callbacks.forEach(function(callback){callback(loginData);});});};action.registerLoginCallback=function(callback){callbacks.push(callback);};return action;});","Magento_Customer/js/invalidation-rules/website-rule.min.js":"define(['uiClass'],function(Element){'use strict';return Element.extend({defaults:{scopeConfig:{}},process:function(customerData){var customer=customerData.get('customer');if(this.scopeConfig&&customer()&&~~customer().websiteId!==~~this.scopeConfig.websiteId&&~~customer().websiteId!==0){customerData.reload(['customer']);}}});});","Magento_Search/js/form-mini.min.js":"define(['jquery','underscore','mage/template','matchMedia','jquery-ui-modules/widget','jquery-ui-modules/core','mage/translate'],function($,_,mageTemplate,mediaCheck){'use strict';function isEmpty(value){return value.length===0||value==null||/^\\s+$/.test(value);}\n$.widget('mage.quickSearch',{options:{autocomplete:'off',minSearchLength:3,responseFieldElements:'ul li',selectClass:'selected',template:'<li class=\"<%- data.row_class %>\" id=\"qs-option-<%- data.index %>\" role=\"option\">'+'<span class=\"qs-option-name\">'+' <%- data.title %>'+'</span>'+'<span aria-hidden=\"true\" class=\"amount\">'+'<%- data.num_results %>'+'</span>'+'</li>',submitBtn:'button[type=\"submit\"]',searchLabel:'[data-role=minisearch-label]',isExpandable:null,suggestionDelay:300},_create:function(){this.responseList={indexList:null,selected:null};this.autoComplete=$(this.options.destinationSelector);this.searchForm=$(this.options.formSelector);this.submitBtn=this.searchForm.find(this.options.submitBtn)[0];this.searchLabel=this.searchForm.find(this.options.searchLabel);this.isExpandable=this.options.isExpandable;_.bindAll(this,'_onKeyDown','_onPropertyChange','_onSubmit');this.submitBtn.disabled=true;this.element.attr('autocomplete',this.options.autocomplete);mediaCheck({media:'(max-width: 768px)',entry:function(){this.isExpandable=true;}.bind(this),exit:function(){this.isExpandable=true;}.bind(this)});this.searchLabel.on('click',function(e){if(this.isExpandable&&this.isActive()){e.preventDefault();}}.bind(this));this.element.on('blur',$.proxy(function(){if(!this.searchLabel.hasClass('active')){return;}\nsetTimeout($.proxy(function(){if(this.autoComplete.is(':hidden')){this.setActiveState(false);}else{this.element.trigger('focus');}\nthis.autoComplete.hide();this._updateAriaHasPopup(false);},this),250);},this));if(this.element.get(0)===document.activeElement){this.setActiveState(true);}\nthis.element.on('focus',this.setActiveState.bind(this,true));this.element.on('keydown',this._onKeyDown);this.element.on('input propertychange',_.debounce(this._onPropertyChange,this.options.suggestionDelay));this.searchForm.on('submit',$.proxy(function(e){this._onSubmit(e);this._updateAriaHasPopup(false);},this));},isActive:function(){return this.searchLabel.hasClass('active');},setActiveState:function(isActive){var searchValue;this.searchForm.toggleClass('active',isActive);this.searchLabel.toggleClass('active',isActive);if(this.isExpandable){this.element.attr('aria-expanded',isActive);searchValue=this.element.val();this.element.val('');this.element.val(searchValue);}},_getFirstVisibleElement:function(){return this.responseList.indexList?this.responseList.indexList.first():false;},_getLastElement:function(){return this.responseList.indexList?this.responseList.indexList.last():false;},_updateAriaHasPopup:function(show){if(show){this.element.attr('aria-haspopup','true');}else{this.element.attr('aria-haspopup','false');}},_resetResponseList:function(all){this.responseList.selected=null;if(all===true){this.responseList.indexList=null;}},_onSubmit:function(e){var value=this.element.val();if(isEmpty(value)){e.preventDefault();}\nif(this.responseList.selected){this.element.val(this.responseList.selected.find('.qs-option-name').text());}},_onKeyDown:function(e){var keyCode=e.keyCode||e.which;switch(keyCode){case $.ui.keyCode.HOME:if(this._getFirstVisibleElement()){this._getFirstVisibleElement().addClass(this.options.selectClass);this.responseList.selected=this._getFirstVisibleElement();}\nbreak;case $.ui.keyCode.END:if(this._getLastElement()){this._getLastElement().addClass(this.options.selectClass);this.responseList.selected=this._getLastElement();}\nbreak;case $.ui.keyCode.ESCAPE:this._resetResponseList(true);this.autoComplete.hide();break;case $.ui.keyCode.ENTER:if(this.element.val().length>=parseInt(this.options.minSearchLength,10)){this.searchForm.trigger('submit');e.preventDefault();}\nbreak;case $.ui.keyCode.DOWN:if(this.responseList.indexList){if(!this.responseList.selected){this._getFirstVisibleElement().addClass(this.options.selectClass);this.responseList.selected=this._getFirstVisibleElement();}else if(!this._getLastElement().hasClass(this.options.selectClass)){this.responseList.selected=this.responseList.selected.removeClass(this.options.selectClass).next().addClass(this.options.selectClass);}else{this.responseList.selected.removeClass(this.options.selectClass);this._getFirstVisibleElement().addClass(this.options.selectClass);this.responseList.selected=this._getFirstVisibleElement();}\nthis.element.val(this.responseList.selected.find('.qs-option-name').text());this.element.attr('aria-activedescendant',this.responseList.selected.attr('id'));this._updateAriaHasPopup(true);this.autoComplete.show();}\nbreak;case $.ui.keyCode.UP:if(this.responseList.indexList!==null){if(!this._getFirstVisibleElement().hasClass(this.options.selectClass)){this.responseList.selected=this.responseList.selected.removeClass(this.options.selectClass).prev().addClass(this.options.selectClass);}else{this.responseList.selected.removeClass(this.options.selectClass);this._getLastElement().addClass(this.options.selectClass);this.responseList.selected=this._getLastElement();}\nthis.element.val(this.responseList.selected.find('.qs-option-name').text());this.element.attr('aria-activedescendant',this.responseList.selected.attr('id'));this._updateAriaHasPopup(true);this.autoComplete.show();}\nbreak;default:return true;}},_onPropertyChange:function(){var searchField=this.element,clonePosition={position:'absolute',width:searchField.outerWidth()},source=this.options.template,template=mageTemplate(source),dropdown=$('<ul role=\"listbox\"></ul>'),value=this.element.val();this.submitBtn.disabled=true;if(value.length>=parseInt(this.options.minSearchLength,10)){this.submitBtn.disabled=false;if(this.options.url!==''){$.getJSON(this.options.url,{q:value},$.proxy(function(data){if(data.length){$.each(data,function(index,element){var html;element.index=index;html=template({data:element});dropdown.append(html);});this._resetResponseList(true);this.responseList.indexList=this.autoComplete.html(dropdown).css(clonePosition).show().find(this.options.responseFieldElements+':visible');this.element.removeAttr('aria-activedescendant');if(this.responseList.indexList.length){this._updateAriaHasPopup(true);}else{this._updateAriaHasPopup(false);}\nthis.responseList.indexList.on('click',function(e){this.responseList.selected=$(e.currentTarget);this.searchForm.trigger('submit');}.bind(this)).on('mouseenter mouseleave',function(e){this.responseList.indexList.removeClass(this.options.selectClass);$(e.target).addClass(this.options.selectClass);this.responseList.selected=$(e.target);this.element.attr('aria-activedescendant',$(e.target).attr('id'));}.bind(this)).on('mouseout',function(e){if(!this._getLastElement()&&this._getLastElement().hasClass(this.options.selectClass)){$(e.target).removeClass(this.options.selectClass);this._resetResponseList(false);}}.bind(this));}else{this._resetResponseList(true);this.autoComplete.hide();this._updateAriaHasPopup(false);this.element.removeAttr('aria-activedescendant');}},this));}}else{this._resetResponseList(true);this.autoComplete.hide();this._updateAriaHasPopup(false);this.element.removeAttr('aria-activedescendant');}}});return $.mage.quickSearch;});","js-storage/storage-wrapper.min.js":"define(['jquery','js-storage/js.storage'],function($,storage){'use strict';if(window.cookieStorage){var cookiesConfig=window.cookiesConfig||{};$.extend(window.cookieStorage,{_secure:!!cookiesConfig.secure,_samesite:cookiesConfig.samesite?cookiesConfig.samesite:'lax',setItem:function(name,value,options){var _default={expires:this._expires,path:this._path,domain:this._domain,secure:this._secure,samesite:this._samesite};$.cookie(this._prefix+name,value,$.extend(_default,options||{}));},setConf:function(c){if(c.path){this._path=c.path;}\nif(c.domain){this._domain=c.domain;}\nif(c.expires){this._expires=c.expires;}\nif(typeof c.secure!=='undefined'){this._secure=c.secure;}\nif(typeof c.samesite!=='undefined'){this._samesite=c.samesite;}\nreturn this;}});}\n$.alwaysUseJsonInStorage=$.alwaysUseJsonInStorage||storage.alwaysUseJsonInStorage;$.cookieStorage=$.cookieStorage||storage.cookieStorage;$.initNamespaceStorage=$.initNamespaceStorage||storage.initNamespaceStorage;$.localStorage=$.localStorage||storage.localStorage;$.namespaceStorages=$.namespaceStorages||storage.namespaceStorages;$.removeAllStorages=$.removeAllStorages||storage.removeAllStorages;$.sessionStorage=$.sessionStorage||storage.sessionStorage;});","js-storage/js.storage.min.js":"(function(factory){var registeredInModuleLoader=false;if(typeof define==='function'&&define.amd){define(['jquery','jquery/jquery.cookie'],factory);registeredInModuleLoader=true;}\nif(typeof exports==='object'){module.exports=factory();registeredInModuleLoader=true;}\nif(!registeredInModuleLoader){var OldStorages=window.Storages;var api=window.Storages=factory();api.noConflict=function(){window.Storages=OldStorages;return api;};}}(function(){var class2type={};var toString=class2type.toString;var hasOwn=class2type.hasOwnProperty;var fnToString=hasOwn.toString;var ObjectFunctionString=fnToString.call(Object);var getProto=Object.getPrototypeOf;var apis={};var cookie_local_prefix=\"ls_\";var cookie_session_prefix=\"ss_\";function _get(){var storage=this._type,l=arguments.length,s=window[storage],a=arguments,a0=a[0],vi,ret,tmp,i,j;if(l<1){throw new Error('Minimum 1 argument must be given');}else if(Array.isArray(a0)){ret={};for(i in a0){if(a0.hasOwnProperty(i)){vi=a0[i];try{ret[vi]=JSON.parse(s.getItem(vi));}catch(e){ret[vi]=s.getItem(vi);}}}\nreturn ret;}else if(l==1){try{return JSON.parse(s.getItem(a0));}catch(e){return s.getItem(a0);}}else{try{ret=JSON.parse(s.getItem(a0));if(!ret){throw new ReferenceError(a0+' is not defined in this storage');}}catch(e){throw new ReferenceError(a0+' is not defined in this storage');}\nfor(i=1;i<l-1;i++){ret=ret[a[i]];if(ret===undefined){throw new ReferenceError([].slice.call(a,0,i+1).join('.')+' is not defined in this storage');}}\nif(Array.isArray(a[i])){tmp=ret;ret={};for(j in a[i]){if(a[i].hasOwnProperty(j)){ret[a[i][j]]=tmp[a[i][j]];}}\nreturn ret;}else{return ret[a[i]];}}}\nfunction _set(){var storage=this._type,l=arguments.length,s=window[storage],a=arguments,a0=a[0],a1=a[1],vi,to_store=isNaN(a1)?{}:[],type,tmp,i;if(l<1||!_isPlainObject(a0)&&l<2){throw new Error('Minimum 2 arguments must be given or first parameter must be an object');}else if(_isPlainObject(a0)){for(i in a0){if(a0.hasOwnProperty(i)){vi=a0[i];if(!_isPlainObject(vi)&&!this.alwaysUseJson){s.setItem(i,vi);}else{s.setItem(i,JSON.stringify(vi));}}}\nreturn a0;}else if(l==2){if(typeof a1==='object'||this.alwaysUseJson){s.setItem(a0,JSON.stringify(a1));}else{s.setItem(a0,a1);}\nreturn a1;}else{try{tmp=s.getItem(a0);if(tmp!=null){to_store=JSON.parse(tmp);}}catch(e){}\ntmp=to_store;for(i=1;i<l-2;i++){vi=a[i];type=isNaN(a[i+1])?\"object\":\"array\";if(!tmp[vi]||type==\"object\"&&!_isPlainObject(tmp[vi])||type==\"array\"&&!Array.isArray(tmp[vi])){if(type==\"array\")tmp[vi]=[];else tmp[vi]={};}\ntmp=tmp[vi];}\ntmp[a[i]]=a[i+1];s.setItem(a0,JSON.stringify(to_store));return to_store;}}\nfunction _remove(){var storage=this._type,l=arguments.length,s=window[storage],a=arguments,a0=a[0],to_store,tmp,i,j;if(l<1){throw new Error('Minimum 1 argument must be given');}else if(Array.isArray(a0)){for(i in a0){if(a0.hasOwnProperty(i)){s.removeItem(a0[i]);}}\nreturn true;}else if(l==1){s.removeItem(a0);return true;}else{try{to_store=tmp=JSON.parse(s.getItem(a0));}catch(e){throw new ReferenceError(a0+' is not defined in this storage');}\nfor(i=1;i<l-1;i++){tmp=tmp[a[i]];if(tmp===undefined){throw new ReferenceError([].slice.call(a,1,i).join('.')+' is not defined in this storage');}}\nif(Array.isArray(a[i])){for(j in a[i]){if(a[i].hasOwnProperty(j)){delete tmp[a[i][j]];}}}else{delete tmp[a[i]];}\ns.setItem(a0,JSON.stringify(to_store));return true;}}\nfunction _removeAll(reinit_ns){var keys=_keys.call(this),i;for(i in keys){if(keys.hasOwnProperty(i)){_remove.call(this,keys[i]);}}\nif(reinit_ns){for(i in apis.namespaceStorages){if(apis.namespaceStorages.hasOwnProperty(i)){_createNamespace(i);}}}}\nfunction _isEmpty(){var l=arguments.length,a=arguments,a0=a[0],i;if(l==0){return(_keys.call(this).length==0);}else if(Array.isArray(a0)){for(i=0;i<a0.length;i++){if(!_isEmpty.call(this,a0[i])){return false;}}\nreturn true;}else{try{var v=_get.apply(this,arguments);if(!Array.isArray(a[l-1])){v={'totest':v};}\nfor(i in v){if(v.hasOwnProperty(i)&&!((_isPlainObject(v[i])&&_isEmptyObject(v[i]))||(Array.isArray(v[i])&&!v[i].length)||(typeof v[i]!=='boolean'&&!v[i]))){return false;}}\nreturn true;}catch(e){return true;}}}\nfunction _isSet(){var l=arguments.length,a=arguments,a0=a[0],i;if(l<1){throw new Error('Minimum 1 argument must be given');}\nif(Array.isArray(a0)){for(i=0;i<a0.length;i++){if(!_isSet.call(this,a0[i])){return false;}}\nreturn true;}else{try{var v=_get.apply(this,arguments);if(!Array.isArray(a[l-1])){v={'totest':v};}\nfor(i in v){if(v.hasOwnProperty(i)&&!(v[i]!==undefined&&v[i]!==null)){return false;}}\nreturn true;}catch(e){return false;}}}\nfunction _keys(){var storage=this._type,l=arguments.length,s=window[storage],keys=[],o={};if(l>0){o=_get.apply(this,arguments);}else{o=s;}\nif(o&&o._cookie){var cookies=Cookies.get();for(var key in cookies){if(cookies.hasOwnProperty(key)&&key!=''){keys.push(key.replace(o._prefix,''));}}}else{for(var i in o){if(o.hasOwnProperty(i)){keys.push(i);}}}\nreturn keys;}\nfunction _createNamespace(name){if(!name||typeof name!=\"string\"){throw new Error('First parameter must be a string');}\nif(storage_available){if(!window.localStorage.getItem(name)){window.localStorage.setItem(name,'{}');}\nif(!window.sessionStorage.getItem(name)){window.sessionStorage.setItem(name,'{}');}}else{if(!window.localCookieStorage.getItem(name)){window.localCookieStorage.setItem(name,'{}');}\nif(!window.sessionCookieStorage.getItem(name)){window.sessionCookieStorage.setItem(name,'{}');}}\nvar ns={localStorage:_extend({},apis.localStorage,{_ns:name}),sessionStorage:_extend({},apis.sessionStorage,{_ns:name})};if(cookies_available){if(!window.cookieStorage.getItem(name)){window.cookieStorage.setItem(name,'{}');}\nns.cookieStorage=_extend({},apis.cookieStorage,{_ns:name});}\napis.namespaceStorages[name]=ns;return ns;}\nfunction _testStorage(name){var foo='jsapi';try{if(!window[name]){return false;}\nwindow[name].setItem(foo,foo);window[name].removeItem(foo);return true;}catch(e){return false;}}\nfunction _isPlainObject(obj){var proto,Ctor;if(!obj||toString.call(obj)!==\"[object Object]\"){return false;}\nproto=getProto(obj);if(!proto){return true;}\nCtor=hasOwn.call(proto,\"constructor\")&&proto.constructor;return typeof Ctor===\"function\"&&fnToString.call(Ctor)===ObjectFunctionString;}\nfunction _isEmptyObject(obj){var name;for(name in obj){return false;}\nreturn true;}\nfunction _extend(){var i=1;var result=arguments[0];for(;i<arguments.length;i++){var attributes=arguments[i];for(var key in attributes){if(attributes.hasOwnProperty(key)){result[key]=attributes[key];}}}\nreturn result;}\nvar storage_available=_testStorage('localStorage');var cookies_available=typeof Cookies!=='undefined';var storage={_type:'',_ns:'',_callMethod:function(f,a){a=Array.prototype.slice.call(a);var p=[],a0=a[0];if(this._ns){p.push(this._ns);}\nif(typeof a0==='string'&&a0.indexOf('.')!==-1){a.shift();[].unshift.apply(a,a0.split('.'));}\n[].push.apply(p,a);return f.apply(this,p);},alwaysUseJson:false,get:function(){if(!storage_available&&!cookies_available){return null;}\nreturn this._callMethod(_get,arguments);},set:function(){var l=arguments.length,a=arguments,a0=a[0];if(l<1||!_isPlainObject(a0)&&l<2){throw new Error('Minimum 2 arguments must be given or first parameter must be an object');}\nif(!storage_available&&!cookies_available){return null;}\nif(_isPlainObject(a0)&&this._ns){for(var i in a0){if(a0.hasOwnProperty(i)){this._callMethod(_set,[i,a0[i]]);}}\nreturn a0;}else{var r=this._callMethod(_set,a);if(this._ns){return r[a0.split('.')[0]];}else{return r;}}},remove:function(){if(arguments.length<1){throw new Error('Minimum 1 argument must be given');}\nif(!storage_available&&!cookies_available){return null;}\nreturn this._callMethod(_remove,arguments);},removeAll:function(reinit_ns){if(!storage_available&&!cookies_available){return null;}\nif(this._ns){this._callMethod(_set,[{}]);return true;}else{return this._callMethod(_removeAll,[reinit_ns]);}},isEmpty:function(){if(!storage_available&&!cookies_available){return null;}\nreturn this._callMethod(_isEmpty,arguments);},isSet:function(){if(arguments.length<1){throw new Error('Minimum 1 argument must be given');}\nif(!storage_available&&!cookies_available){return null;}\nreturn this._callMethod(_isSet,arguments);},keys:function(){if(!storage_available&&!cookies_available){return null;}\nreturn this._callMethod(_keys,arguments);}};if(cookies_available){if(!window.name){window.name=Math.floor(Math.random()*100000000);}\nvar cookie_storage={_cookie:true,_prefix:'',_expires:null,_path:null,_domain:null,_secure:false,setItem:function(n,v){Cookies.set(this._prefix+n,v,{expires:this._expires,path:this._path,domain:this._domain,secure:this._secure});},getItem:function(n){return Cookies.get(this._prefix+n);},removeItem:function(n){return Cookies.remove(this._prefix+n,{path:this._path});},clear:function(){var cookies=Cookies.get();for(var key in cookies){if(cookies.hasOwnProperty(key)&&key!=''){if(!this._prefix&&key.indexOf(cookie_local_prefix)===-1&&key.indexOf(cookie_session_prefix)===-1||this._prefix&&key.indexOf(this._prefix)===0){Cookies.remove(key);}}}},setExpires:function(e){this._expires=e;return this;},setPath:function(p){this._path=p;return this;},setDomain:function(d){this._domain=d;return this;},setSecure:function(s){this._secure=s;return this;},setConf:function(c){if(c.path){this._path=c.path;}\nif(c.domain){this._domain=c.domain;}\nif(c.secure){this._secure=c.secure;}\nif(c.expires){this._expires=c.expires;}\nreturn this;},setDefaultConf:function(){this._path=this._domain=this._expires=null;this._secure=false;}};if(!storage_available){window.localCookieStorage=_extend({},cookie_storage,{_prefix:cookie_local_prefix,_expires:365*10,_secure:true});window.sessionCookieStorage=_extend({},cookie_storage,{_prefix:cookie_session_prefix+window.name+'_',_secure:true});}\nwindow.cookieStorage=_extend({},cookie_storage);apis.cookieStorage=_extend({},storage,{_type:'cookieStorage',setExpires:function(e){window.cookieStorage.setExpires(e);return this;},setPath:function(p){window.cookieStorage.setPath(p);return this;},setDomain:function(d){window.cookieStorage.setDomain(d);return this;},setSecure:function(s){window.cookieStorage.setSecure(s);return this;},setConf:function(c){window.cookieStorage.setConf(c);return this;},setDefaultConf:function(){window.cookieStorage.setDefaultConf();return this;}});}\napis.initNamespaceStorage=function(ns){return _createNamespace(ns);};if(storage_available){apis.localStorage=_extend({},storage,{_type:'localStorage'});apis.sessionStorage=_extend({},storage,{_type:'sessionStorage'});}else{apis.localStorage=_extend({},storage,{_type:'localCookieStorage'});apis.sessionStorage=_extend({},storage,{_type:'sessionCookieStorage'});}\napis.namespaceStorages={};apis.removeAllStorages=function(reinit_ns){apis.localStorage.removeAll(reinit_ns);apis.sessionStorage.removeAll(reinit_ns);if(apis.cookieStorage){apis.cookieStorage.removeAll(reinit_ns);}\nif(!reinit_ns){apis.namespaceStorages={};}};apis.alwaysUseJsonInStorage=function(value){storage.alwaysUseJson=value;apis.localStorage.alwaysUseJson=value;apis.sessionStorage.alwaysUseJson=value;if(apis.cookieStorage){apis.cookieStorage.alwaysUseJson=value;}};return apis;}));","Magepow_Core/js/grid-slider.min.js":"define(['jquery','slick','jquery-ui-modules/core'],function($,slick){\"use strict\";$.widget('magepow.gridSlider',{options:{selector:'.grid-slider',useIntersectionObserver:true,unobserve:true,},_create:function(){var options=this.options;this._initSlider();},_uniqid:function(length=10){let result='';const characters='abcdefghijklmnopqrstuvwxyz0123456789';const charactersLength=characters.length;for(let i=0;i<length;i++){result+=characters.charAt(Math.floor(Math.random()*charactersLength));}\nreturn result;},_initSlider:function(){var options=this.options;var useIntersectionObserver=options.useIntersectionObserver;var unobserve=options.unobserve;var self=this;var $head=$('head');var elements=options.selector?self.element.find(options.selector):self.element;elements.each(function(){var element=$(this);var selector='grid-slider-'+self._uniqid();var styleId=selector;element.addClass(selector);selector='.'+selector;if($('body').hasClass('rtl')){element.attr('dir','rtl');element.data('rtl',true);}\nvar options=element.data();if(iClass===undefined){element.children().addClass('alo-item');var iClass='.alo-item';}\nvar rows=((options||{}).rows===void 0)?1:options.rows;var classes=rows?selector+' '+iClass:selector+' > '+iClass;var padding=options.padding;var float=$('body').hasClass('rtl')?'right':'left';var style=(typeof padding!=='undefined')?classes+'{float: '+float+'; padding: 0 '+padding+'px; box-sizing: border-box} '+selector+'{margin: 0 -'+padding+'px}':'';$head.append('<style type=\"text/css\" >'+style+'</style>');style='';if(options.slidesToShow){if(\"IntersectionObserver\"in window&&useIntersectionObserver){var nthChild=options.slidesToShow+1;style+=selector+' .item:nth-child(n+ '+nthChild+')'+'{display: none;} '+selector+' .item{float:left};';let gridSliderObserver=new IntersectionObserver(function(entries,observer){entries.forEach(function(entry){if(entry.isIntersecting){let el=entry.target;var $el=$(el);$el.on('init',function(){$head.find('#'+styleId).remove();});self.sliderRender($el);if(unobserve)gridSliderObserver.unobserve(el);}});});element.each(function(index,el){gridSliderObserver.observe(el);});}else{self.sliderRender(element);}}\nvar responsive=self.getPesponsive(options);if(responsive==undefined)return;var length=Object.keys(responsive).length;$.each(responsive,function(key,value){var col=0;var maxWith=0;var minWith=0;$.each(value,function(size,num){minWith=parseInt(size)+1;col=num;});if(key+2<length){$.each(responsive[key+1],function(size,num){maxWith=size;col=num;});style+=' @media (min-width: '+minWith+'px) and (max-width: '+maxWith+'px)';}else{if(key+2==length)return;$.each(responsive[key],function(size,num){maxWith=size;col=num;});style+=' @media (min-width: '+maxWith+'px)';}\nstyle+=' {'+selector+'{margin: 0 -'+padding+'px}'+classes+'{padding: 0 '+padding+'px; box-sizing: border-box; width: calc(100% / '+col+')} '+classes+':nth-child('+col+'n+1){clear: '+float+';}}';});$head.append('<style type=\"text/css\" id=\"'+styleId+'\" >'+style+'</style>');self.element.addClass('grid-init');});},getPesponsive:function(options){if(!options.slidesToShow||!options.responsive)return options.responsive;var responsive=options.responsive;var length=Object.keys(responsive).length;var gridResponsive=[];$.each(responsive,function(key,value){var breakpoint={};breakpoint[value.breakpoint]=parseInt(value.settings.slidesToShow);gridResponsive.push(breakpoint);});return gridResponsive.reverse();},sliderRender:function(el){if(el.hasClass('slick-initialized')){el.slick(\"refresh\");return;}\nvar options=el.data();var lazy=el.find('img.lazyload');if(lazy.length){lazy.each(function(index){$(this).data('lazy',$(this).data('src'));});}\nel.on('init',function(event,slick){$('body').trigger('contentUpdated');var video=$(this).find('.external-video');video.on('click',function(event){var $this=$(this);if($this.hasClass('embed'))return;var img=$this.find('img');event.preventDefault();var url=$(this).data('video');url=url.replace(\"://vimeo.com/\",\"://player.vimeo.com/video/\");url=url.replace(\"://www.youtube.com/watch?v=\",\"://youtube.com/embed/\");url=url+'?autoplay=1&badge=0';var iframe='<iframe class=\"iframe-video\" src=\"'+url+'\" width=\"'+img.width()+'\" height=\"'+img.height()+'\" frameborder=\"0\" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';$this.append(iframe).addClass('embed');img.hide();});});var slider=el.slick(options);el.on('beforeChange',function(event,slick,currentSlide,nextSlide){var video=$(this).find('.external-video');video.removeClass('embed').find('img').show();video.find('.iframe-video').remove();});slider.on(\"click\",\".item\",function(){el.slick('slickSetOption',\"autoplay\",false,false);});}});return $.magepow.gridSlider;});","Magepow_Core/js/plugin/jquery.easing.min.js":"!function(n){\"function\"==typeof define&&define.amd?define([\"jquery\"],function(e){return n(e)}):\"object\"==typeof module&&\"object\"==typeof module.exports?module.exports=n(require(\"jquery\")):n(jQuery)}(function(n){function e(n){var e=7.5625,t=2.75;return n<1/t?e*n*n:n<2/t?e*(n-=1.5/t)*n+.75:n<2.5/t?e*(n-=2.25/t)*n+.9375:e*(n-=2.625/t)*n+.984375}void 0!==n.easing&&(n.easing.jswing=n.easing.swing);var t=Math.pow,u=Math.sqrt,r=Math.sin,i=Math.cos,a=Math.PI,o=1.70158,c=1.525*o,s=2*a/3,f=2*a/4.5;return n.extend(n.easing,{def:\"easeOutQuad\",swing:function(e){return n.easing[n.easing.def](e)},easeInQuad:function(n){return n*n},easeOutQuad:function(n){return 1-(1-n)*(1-n)},easeInOutQuad:function(n){return n<.5?2*n*n:1-t(-2*n+2,2)/2},easeInCubic:function(n){return n*n*n},easeOutCubic:function(n){return 1-t(1-n,3)},easeInOutCubic:function(n){return n<.5?4*n*n*n:1-t(-2*n+2,3)/2},easeInQuart:function(n){return n*n*n*n},easeOutQuart:function(n){return 1-t(1-n,4)},easeInOutQuart:function(n){return n<.5?8*n*n*n*n:1-t(-2*n+2,4)/2},easeInQuint:function(n){return n*n*n*n*n},easeOutQuint:function(n){return 1-t(1-n,5)},easeInOutQuint:function(n){return n<.5?16*n*n*n*n*n:1-t(-2*n+2,5)/2},easeInSine:function(n){return 1-i(n*a/2)},easeOutSine:function(n){return r(n*a/2)},easeInOutSine:function(n){return-(i(a*n)-1)/2},easeInExpo:function(n){return 0===n?0:t(2,10*n-10)},easeOutExpo:function(n){return 1===n?1:1-t(2,-10*n)},easeInOutExpo:function(n){return 0===n?0:1===n?1:n<.5?t(2,20*n-10)/2:(2-t(2,-20*n+10))/2},easeInCirc:function(n){return 1-u(1-t(n,2))},easeOutCirc:function(n){return u(1-t(n-1,2))},easeInOutCirc:function(n){return n<.5?(1-u(1-t(2*n,2)))/2:(u(1-t(-2*n+2,2))+1)/2},easeInElastic:function(n){return 0===n?0:1===n?1:-t(2,10*n-10)*r((10*n-10.75)*s)},easeOutElastic:function(n){return 0===n?0:1===n?1:t(2,-10*n)*r((10*n-.75)*s)+1},easeInOutElastic:function(n){return 0===n?0:1===n?1:n<.5?-t(2,20*n-10)*r((20*n-11.125)*f)/2:t(2,-20*n+10)*r((20*n-11.125)*f)/2+1},easeInBack:function(n){return 2.70158*n*n*n-o*n*n},easeOutBack:function(n){return 1+2.70158*t(n-1,3)+o*t(n-1,2)},easeInOutBack:function(n){return n<.5?t(2*n,2)*(7.189819*n-c)/2:(t(2*n-2,2)*((c+1)*(2*n-2)+c)+2)/2},easeInBounce:function(n){return 1-e(1-n)},easeOutBounce:e,easeInOutBounce:function(n){return n<.5?(1-e(1-2*n))/2:(1+e(2*n-1))/2}}),n});","Magepow_Core/js/plugin/slick.min.js":"/*\n     _ _      _       _\n ___| (_) ___| | __  (_)___\n/ __| | |/ __| |/ /  | / __|\n\\__ \\ | | (__|   < _ | \\__ \\\n|___/_|_|\\___|_|\\_(_)/ |___/\n                   |__/\n\n Version: 1.9.0\n  Author: Ken Wheeler\n Website: http://kenwheeler.github.io\n    Docs: http://kenwheeler.github.io/slick\n    Repo: http://github.com/kenwheeler/slick\n  Issues: http://github.com/kenwheeler/slick/issues\n\n */\n(function(){if(typeof EventTarget!==\"undefined\"){let func=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(type,fn,capture){this.func=func;if(typeof capture!==\"boolean\"){capture=capture||{};capture.passive=!1}\nthis.func(type,fn,capture)}}}());\n(function(i){\"use strict\";\"function\"==typeof define&&define.amd?define([\"jquery\"],i):\"undefined\"!=typeof exports?module.exports=i(require(\"jquery\")):i(jQuery)})(function(i){\"use strict\";var e=window.Slick||{};e=function(){function e(e,o){var s,n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:i(e),appendDots:i(e),arrows:!0,asNavFor:null,prevArrow:'<button class=\"slick-prev\" aria-label=\"Previous\" type=\"button\">Previous</button>',nextArrow:'<button class=\"slick-next\" aria-label=\"Next\" type=\"button\">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:\"50px\",cssEase:\"ease\",customPaging:function(e,t){return i('<button type=\"button\" />').text(t+1)},dots:!1,dotsClass:\"slick-dots\",draggable:!0,easing:\"linear\",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:\"ondemand\",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:\"window\",responsive:null,rows:1,rtl:!1,slide:\"\",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},n.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},i.extend(n,n.initials),n.activeBreakpoint=null,n.animType=null,n.animProp=null,n.breakpoints=[],n.breakpointSettings=[],n.cssTransitions=!1,n.focussed=!1,n.interrupted=!1,n.hidden=\"hidden\",n.paused=!0,n.positionProp=null,n.respondTo=null,n.rowCount=1,n.shouldClick=!0,n.$slider=i(e),n.$slidesCache=null,n.transformType=null,n.transitionType=null,n.visibilityChange=\"visibilitychange\",n.windowWidth=0,n.windowTimer=null,s=i(e).data(\"slick\")||{},n.options=i.extend({},n.defaults,o,s),n.currentSlide=n.options.initialSlide,n.originalSettings=n.options,\"undefined\"!=typeof document.mozHidden?(n.hidden=\"mozHidden\",n.visibilityChange=\"mozvisibilitychange\"):\"undefined\"!=typeof document.webkitHidden&&(n.hidden=\"webkitHidden\",n.visibilityChange=\"webkitvisibilitychange\"),n.autoPlay=i.proxy(n.autoPlay,n),n.autoPlayClear=i.proxy(n.autoPlayClear,n),n.autoPlayIterator=i.proxy(n.autoPlayIterator,n),n.changeSlide=i.proxy(n.changeSlide,n),n.clickHandler=i.proxy(n.clickHandler,n),n.selectHandler=i.proxy(n.selectHandler,n),n.setPosition=i.proxy(n.setPosition,n),n.swipeHandler=i.proxy(n.swipeHandler,n),n.dragHandler=i.proxy(n.dragHandler,n),n.keyHandler=i.proxy(n.keyHandler,n),n.instanceUid=t++,n.htmlExpr=/^(?:\\s*(<[\\w\\W]+>)[^>]*)$/,n.registerBreakpoints(),n.init(!0)}var t=0;return e}(),e.prototype.activateADA=function(){var i=this;i.$slideTrack.find(\".slick-active\").attr({\"aria-hidden\":\"false\"}).find(\"a, input, button, select\").attr({tabindex:\"0\"})},e.prototype.addSlide=e.prototype.slickAdd=function(e,t,o){var s=this;if(\"boolean\"==typeof t)o=t,t=null;else if(t<0||t>=s.slideCount)return!1;s.unload(),\"number\"==typeof t?0===t&&0===s.$slides.length?i(e).appendTo(s.$slideTrack):o?i(e).insertBefore(s.$slides.eq(t)):i(e).insertAfter(s.$slides.eq(t)):o===!0?i(e).prependTo(s.$slideTrack):i(e).appendTo(s.$slideTrack),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slides.each(function(e,t){i(t).attr(\"data-slick-index\",e)}),s.$slidesCache=s.$slides,s.reinit()},e.prototype.animateHeight=function(){var i=this;if(1===i.options.slidesToShow&&i.options.adaptiveHeight===!0&&i.options.vertical===!1){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.animate({height:e},i.options.speed)}},e.prototype.animateSlide=function(e,t){var o={},s=this;s.animateHeight(),s.options.rtl===!0&&s.options.vertical===!1&&(e=-e),s.transformsEnabled===!1?s.options.vertical===!1?s.$slideTrack.animate({left:e},s.options.speed,s.options.easing,t):s.$slideTrack.animate({top:e},s.options.speed,s.options.easing,t):s.cssTransitions===!1?(s.options.rtl===!0&&(s.currentLeft=-s.currentLeft),i({animStart:s.currentLeft}).animate({animStart:e},{duration:s.options.speed,easing:s.options.easing,step:function(i){i=Math.ceil(i),s.options.vertical===!1?(o[s.animType]=\"translate(\"+i+\"px, 0px)\",s.$slideTrack.css(o)):(o[s.animType]=\"translate(0px,\"+i+\"px)\",s.$slideTrack.css(o))},complete:function(){t&&t.call()}})):(s.applyTransition(),e=Math.ceil(e),s.options.vertical===!1?o[s.animType]=\"translate3d(\"+e+\"px, 0px, 0px)\":o[s.animType]=\"translate3d(0px,\"+e+\"px, 0px)\",s.$slideTrack.css(o),t&&setTimeout(function(){s.disableTransition(),t.call()},s.options.speed))},e.prototype.getNavTarget=function(){var e=this,t=e.options.asNavFor;return t&&null!==t&&(t=i(t).not(e.$slider)),t},e.prototype.asNavFor=function(e){var t=this,o=t.getNavTarget();null!==o&&\"object\"==typeof o&&o.each(function(){var t=i(this).slick(\"getSlick\");t.unslicked||t.slideHandler(e,!0)})},e.prototype.applyTransition=function(i){var e=this,t={};e.options.fade===!1?t[e.transitionType]=e.transformType+\" \"+e.options.speed+\"ms \"+e.options.cssEase:t[e.transitionType]=\"opacity \"+e.options.speed+\"ms \"+e.options.cssEase,e.options.fade===!1?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.autoPlay=function(){var i=this;i.autoPlayClear(),i.slideCount>i.options.slidesToShow&&(i.autoPlayTimer=setInterval(i.autoPlayIterator,i.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){var i=this;i.autoPlayTimer&&clearInterval(i.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var i=this,e=i.currentSlide+i.options.slidesToScroll;i.paused||i.interrupted||i.focussed||(i.options.infinite===!1&&(1===i.direction&&i.currentSlide+1===i.slideCount-1?i.direction=0:0===i.direction&&(e=i.currentSlide-i.options.slidesToScroll,i.currentSlide-1===0&&(i.direction=1))),i.slideHandler(e))},e.prototype.buildArrows=function(){var e=this;e.options.arrows===!0&&(e.$prevArrow=i(e.options.prevArrow).addClass(\"slick-arrow\"),e.$nextArrow=i(e.options.nextArrow).addClass(\"slick-arrow\"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass(\"slick-hidden\").removeAttr(\"aria-hidden tabindex\"),e.$nextArrow.removeClass(\"slick-hidden\").removeAttr(\"aria-hidden tabindex\"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),e.options.infinite!==!0&&e.$prevArrow.addClass(\"slick-disabled\").attr(\"aria-disabled\",\"true\")):e.$prevArrow.add(e.$nextArrow).addClass(\"slick-hidden\").attr({\"aria-disabled\":\"true\",tabindex:\"-1\"}))},e.prototype.buildDots=function(){var e,t,o=this;if(o.options.dots===!0&&o.slideCount>o.options.slidesToShow){for(o.$slider.addClass(\"slick-dotted\"),t=i(\"<ul />\").addClass(o.options.dotsClass),e=0;e<=o.getDotCount();e+=1)t.append(i(\"<li />\").append(o.options.customPaging.call(this,o,e)));o.$dots=t.appendTo(o.options.appendDots),o.$dots.find(\"li\").first().addClass(\"slick-active\")}},e.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+\":not(.slick-cloned)\").addClass(\"slick-slide\"),e.slideCount=e.$slides.length,e.$slides.each(function(e,t){i(t).attr(\"data-slick-index\",e).data(\"originalStyling\",i(t).attr(\"style\")||\"\")}),e.$slider.addClass(\"slick-slider\"),e.$slideTrack=0===e.slideCount?i('<div class=\"slick-track\"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class=\"slick-track\"/>').parent(),e.$list=e.$slideTrack.wrap('<div class=\"slick-list\"/>').parent(),e.$slideTrack.css(\"opacity\",0),e.options.centerMode!==!0&&e.options.swipeToSlide!==!0||(e.options.slidesToScroll=1),i(\"img[data-lazy]\",e.$slider).not(\"[src]\").addClass(\"slick-loading\"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses(\"number\"==typeof e.currentSlide?e.currentSlide:0),e.options.draggable===!0&&e.$list.addClass(\"draggable\")},e.prototype.buildRows=function(){var i,e,t,o,s,n,r,l=this;if(o=document.createDocumentFragment(),n=l.$slider.children(),l.options.rows>0){for(r=l.options.slidesPerRow*l.options.rows,s=Math.ceil(n.length/r),i=0;i<s;i++){var d=document.createElement(\"div\");for(e=0;e<l.options.rows;e++){var a=document.createElement(\"div\");for(t=0;t<l.options.slidesPerRow;t++){var c=i*r+(e*l.options.slidesPerRow+t);n.get(c)&&a.appendChild(n.get(c))}d.appendChild(a)}o.appendChild(d)}l.$slider.empty().append(o),l.$slider.children().children().children().css({width:100/l.options.slidesPerRow+\"%\",display:\"inline-block\"})}},e.prototype.checkResponsive=function(e,t){var o,s,n,r=this,l=!1,d=r.$slider.width(),a=window.innerWidth||i(window).width();if(\"window\"===r.respondTo?n=a:\"slider\"===r.respondTo?n=d:\"min\"===r.respondTo&&(n=Math.min(a,d)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){s=null;for(o in r.breakpoints)r.breakpoints.hasOwnProperty(o)&&(r.originalSettings.mobileFirst===!1?n<r.breakpoints[o]&&(s=r.breakpoints[o]):n>r.breakpoints[o]&&(s=r.breakpoints[o]));null!==s?null!==r.activeBreakpoint?(s!==r.activeBreakpoint||t)&&(r.activeBreakpoint=s,\"unslick\"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),e===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):(r.activeBreakpoint=s,\"unslick\"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),e===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,e===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(e),l=s),e||l===!1||r.$slider.trigger(\"breakpoint\",[r,l])}},e.prototype.changeSlide=function(e,t){var o,s,n,r=this,l=i(e.currentTarget);switch(l.is(\"a\")&&e.preventDefault(),l.is(\"li\")||(l=l.closest(\"li\")),n=r.slideCount%r.options.slidesToScroll!==0,o=n?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,e.data.message){case\"previous\":s=0===o?r.options.slidesToScroll:r.options.slidesToShow-o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-s,!1,t);break;case\"next\":s=0===o?r.options.slidesToScroll:o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+s,!1,t);break;case\"index\":var d=0===e.data.index?0:e.data.index||l.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(d),!1,t),l.children().trigger(\"focus\");break;default:return}},e.prototype.checkNavigable=function(i){var e,t,o=this;if(e=o.getNavigableIndexes(),t=0,i>e[e.length-1])i=e[e.length-1];else for(var s in e){if(i<e[s]){i=t;break}t=e[s]}return i},e.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(i(\"li\",e.$dots).off(\"click.slick\",e.changeSlide).off(\"mouseenter.slick\",i.proxy(e.interrupt,e,!0)).off(\"mouseleave.slick\",i.proxy(e.interrupt,e,!1)),e.options.accessibility===!0&&e.$dots.off(\"keydown.slick\",e.keyHandler)),e.$slider.off(\"focus.slick blur.slick\"),e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off(\"click.slick\",e.changeSlide),e.$nextArrow&&e.$nextArrow.off(\"click.slick\",e.changeSlide),e.options.accessibility===!0&&(e.$prevArrow&&e.$prevArrow.off(\"keydown.slick\",e.keyHandler),e.$nextArrow&&e.$nextArrow.off(\"keydown.slick\",e.keyHandler))),e.$list.off(\"touchstart.slick mousedown.slick\",e.swipeHandler),e.$list.off(\"touchmove.slick mousemove.slick\",e.swipeHandler),e.$list.off(\"touchend.slick mouseup.slick\",e.swipeHandler),e.$list.off(\"touchcancel.slick mouseleave.slick\",e.swipeHandler),e.$list.off(\"click.slick\",e.clickHandler),i(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),e.options.accessibility===!0&&e.$list.off(\"keydown.slick\",e.keyHandler),e.options.focusOnSelect===!0&&i(e.$slideTrack).children().off(\"click.slick\",e.selectHandler),i(window).off(\"orientationchange.slick.slick-\"+e.instanceUid,e.orientationChange),i(window).off(\"resize.slick.slick-\"+e.instanceUid,e.resize),i(\"[draggable!=true]\",e.$slideTrack).off(\"dragstart\",e.preventDefault),i(window).off(\"load.slick.slick-\"+e.instanceUid,e.setPosition)},e.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off(\"mouseenter.slick\",i.proxy(e.interrupt,e,!0)),e.$list.off(\"mouseleave.slick\",i.proxy(e.interrupt,e,!1))},e.prototype.cleanUpRows=function(){var i,e=this;e.options.rows>0&&(i=e.$slides.children().children(),i.removeAttr(\"style\"),e.$slider.empty().append(i))},e.prototype.clickHandler=function(i){var e=this;e.shouldClick===!1&&(i.stopImmediatePropagation(),i.stopPropagation(),i.preventDefault())},e.prototype.destroy=function(e){var t=this;t.autoPlayClear(),t.touchObject={},t.cleanUpEvents(),i(\".slick-cloned\",t.$slider).detach(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.$prevArrow.length&&(t.$prevArrow.removeClass(\"slick-disabled slick-arrow slick-hidden\").removeAttr(\"aria-hidden aria-disabled tabindex\").css(\"display\",\"\"),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove()),t.$nextArrow&&t.$nextArrow.length&&(t.$nextArrow.removeClass(\"slick-disabled slick-arrow slick-hidden\").removeAttr(\"aria-hidden aria-disabled tabindex\").css(\"display\",\"\"),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove()),t.$slides&&(t.$slides.removeClass(\"slick-slide slick-active slick-center slick-visible slick-current\").removeAttr(\"aria-hidden\").removeAttr(\"data-slick-index\").each(function(){i(this).attr(\"style\",i(this).data(\"originalStyling\"))}),t.$slideTrack.children(this.options.slide).detach(),t.$slideTrack.detach(),t.$list.detach(),t.$slider.append(t.$slides)),t.cleanUpRows(),t.$slider.removeClass(\"slick-slider\"),t.$slider.removeClass(\"slick-initialized\"),t.$slider.removeClass(\"slick-dotted\"),t.unslicked=!0,e||t.$slider.trigger(\"destroy\",[t])},e.prototype.disableTransition=function(i){var e=this,t={};t[e.transitionType]=\"\",e.options.fade===!1?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.fadeSlide=function(i,e){var t=this;t.cssTransitions===!1?(t.$slides.eq(i).css({zIndex:t.options.zIndex}),t.$slides.eq(i).animate({opacity:1},t.options.speed,t.options.easing,e)):(t.applyTransition(i),t.$slides.eq(i).css({opacity:1,zIndex:t.options.zIndex}),e&&setTimeout(function(){t.disableTransition(i),e.call()},t.options.speed))},e.prototype.fadeSlideOut=function(i){var e=this;e.cssTransitions===!1?e.$slides.eq(i).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(i),e.$slides.eq(i).css({opacity:0,zIndex:e.options.zIndex-2}))},e.prototype.filterSlides=e.prototype.slickFilter=function(i){var e=this;null!==i&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(i).appendTo(e.$slideTrack),e.reinit())},e.prototype.focusHandler=function(){var e=this;e.$slider.off(\"focus.slick blur.slick\").on(\"focus.slick\",\"*\",function(t){var o=i(this);setTimeout(function(){e.options.pauseOnFocus&&o.is(\":focus\")&&(e.focussed=!0,e.autoPlay())},0)}).on(\"blur.slick\",\"*\",function(t){i(this);e.options.pauseOnFocus&&(e.focussed=!1,e.autoPlay())})},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){var i=this;return i.currentSlide},e.prototype.getDotCount=function(){var i=this,e=0,t=0,o=0;if(i.options.infinite===!0)if(i.slideCount<=i.options.slidesToShow)++o;else for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else if(i.options.centerMode===!0)o=i.slideCount;else if(i.options.asNavFor)for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else o=1+Math.ceil((i.slideCount-i.options.slidesToShow)/i.options.slidesToScroll);return o-1},e.prototype.getLeft=function(i){var e,t,o,s,n=this,r=0;return n.slideOffset=0,t=n.$slides.first().outerHeight(!0),n.options.infinite===!0?(n.slideCount>n.options.slidesToShow&&(n.slideOffset=n.slideWidth*n.options.slidesToShow*-1,s=-1,n.options.vertical===!0&&n.options.centerMode===!0&&(2===n.options.slidesToShow?s=-1.5:1===n.options.slidesToShow&&(s=-2)),r=t*n.options.slidesToShow*s),n.slideCount%n.options.slidesToScroll!==0&&i+n.options.slidesToScroll>n.slideCount&&n.slideCount>n.options.slidesToShow&&(i>n.slideCount?(n.slideOffset=(n.options.slidesToShow-(i-n.slideCount))*n.slideWidth*-1,r=(n.options.slidesToShow-(i-n.slideCount))*t*-1):(n.slideOffset=n.slideCount%n.options.slidesToScroll*n.slideWidth*-1,r=n.slideCount%n.options.slidesToScroll*t*-1))):i+n.options.slidesToShow>n.slideCount&&(n.slideOffset=(i+n.options.slidesToShow-n.slideCount)*n.slideWidth,r=(i+n.options.slidesToShow-n.slideCount)*t),n.slideCount<=n.options.slidesToShow&&(n.slideOffset=0,r=0),n.options.centerMode===!0&&n.slideCount<=n.options.slidesToShow?n.slideOffset=n.slideWidth*Math.floor(n.options.slidesToShow)/2-n.slideWidth*n.slideCount/2:n.options.centerMode===!0&&n.options.infinite===!0?n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)-n.slideWidth:n.options.centerMode===!0&&(n.slideOffset=0,n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)),e=n.options.vertical===!1?i*n.slideWidth*-1+n.slideOffset:i*t*-1+r,n.options.variableWidth===!0&&(o=n.slideCount<=n.options.slidesToShow||n.options.infinite===!1?n.$slideTrack.children(\".slick-slide\").eq(i):n.$slideTrack.children(\".slick-slide\").eq(i+n.options.slidesToShow),e=n.options.rtl===!0?o[0]?(n.$slideTrack.width()-o[0].offsetLeft-o.width())*-1:0:o[0]?o[0].offsetLeft*-1:0,n.options.centerMode===!0&&(o=n.slideCount<=n.options.slidesToShow||n.options.infinite===!1?n.$slideTrack.children(\".slick-slide\").eq(i):n.$slideTrack.children(\".slick-slide\").eq(i+n.options.slidesToShow+1),e=n.options.rtl===!0?o[0]?(n.$slideTrack.width()-o[0].offsetLeft-o.width())*-1:0:o[0]?o[0].offsetLeft*-1:0,e+=(n.$list.width()-o.outerWidth())/2)),e},e.prototype.getOption=e.prototype.slickGetOption=function(i){var e=this;return e.options[i]},e.prototype.getNavigableIndexes=function(){var i,e=this,t=0,o=0,s=[];for(e.options.infinite===!1?i=e.slideCount:(t=e.options.slidesToScroll*-1,o=e.options.slidesToScroll*-1,i=2*e.slideCount);t<i;)s.push(t),t=o+e.options.slidesToScroll,o+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return s},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var e,t,o,s,n=this;return s=n.options.centerMode===!0?Math.floor(n.$list.width()/2):0,o=n.swipeLeft*-1+s,n.options.swipeToSlide===!0?(n.$slideTrack.find(\".slick-slide\").each(function(e,s){var r,l,d;if(r=i(s).outerWidth(),l=s.offsetLeft,n.options.centerMode!==!0&&(l+=r/2),d=l+r,o<d)return t=s,!1}),e=Math.abs(i(t).attr(\"data-slick-index\")-n.currentSlide)||1):n.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(i,e){var t=this;t.changeSlide({data:{message:\"index\",index:parseInt(i)}},e)},e.prototype.init=function(e){var t=this;i(t.$slider).hasClass(\"slick-initialized\")||(i(t.$slider).addClass(\"slick-initialized\"),t.buildRows(),t.buildOut(),t.setProps(),t.startLoad(),t.loadSlider(),t.initializeEvents(),t.updateArrows(),t.updateDots(),t.checkResponsive(!0),t.focusHandler()),e&&t.$slider.trigger(\"init\",[t]),t.options.accessibility===!0&&t.initADA(),t.options.autoplay&&(t.paused=!1,t.autoPlay())},e.prototype.initADA=function(){var e=this,t=Math.ceil(e.slideCount/e.options.slidesToShow),o=e.getNavigableIndexes().filter(function(i){return i>=0&&i<e.slideCount});e.$slides.add(e.$slideTrack.find(\".slick-cloned\")).attr({\"aria-hidden\":\"true\",tabindex:\"-1\"}).find(\"a, input, button, select\").attr({tabindex:\"-1\"}),null!==e.$dots&&(e.$slides.not(e.$slideTrack.find(\".slick-cloned\")).each(function(t){var s=o.indexOf(t);if(i(this).attr({role:\"tabpanel\",id:\"slick-slide\"+e.instanceUid+t,tabindex:-1}),s!==-1){var n=\"slick-slide-control\"+e.instanceUid+s;i(\"#\"+n).length&&i(this).attr({\"aria-describedby\":n})}}),e.$dots.attr(\"role\",\"tablist\").find(\"li\").each(function(s){var n=o[s];i(this).attr({role:\"presentation\"}),i(this).find(\"button\").first().attr({role:\"tab\",id:\"slick-slide-control\"+e.instanceUid+s,\"aria-controls\":\"slick-slide\"+e.instanceUid+n,\"aria-label\":s+1+\" of \"+t,\"aria-selected\":null,tabindex:\"-1\"})}).eq(e.currentSlide).find(\"button\").attr({\"aria-selected\":\"true\",tabindex:\"0\"}).end());for(var s=e.currentSlide,n=s+e.options.slidesToShow;s<n;s++)e.options.focusOnChange?e.$slides.eq(s).attr({tabindex:\"0\"}):e.$slides.eq(s).removeAttr(\"tabindex\");e.activateADA()},e.prototype.initArrowEvents=function(){var i=this;i.options.arrows===!0&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.off(\"click.slick\").on(\"click.slick\",{message:\"previous\"},i.changeSlide),i.$nextArrow.off(\"click.slick\").on(\"click.slick\",{message:\"next\"},i.changeSlide),i.options.accessibility===!0&&(i.$prevArrow.on(\"keydown.slick\",i.keyHandler),i.$nextArrow.on(\"keydown.slick\",i.keyHandler)))},e.prototype.initDotEvents=function(){var e=this;e.options.dots===!0&&e.slideCount>e.options.slidesToShow&&(i(\"li\",e.$dots).on(\"click.slick\",{message:\"index\"},e.changeSlide),e.options.accessibility===!0&&e.$dots.on(\"keydown.slick\",e.keyHandler)),e.options.dots===!0&&e.options.pauseOnDotsHover===!0&&e.slideCount>e.options.slidesToShow&&i(\"li\",e.$dots).on(\"mouseenter.slick\",i.proxy(e.interrupt,e,!0)).on(\"mouseleave.slick\",i.proxy(e.interrupt,e,!1))},e.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on(\"mouseenter.slick\",i.proxy(e.interrupt,e,!0)),e.$list.on(\"mouseleave.slick\",i.proxy(e.interrupt,e,!1)))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on(\"touchstart.slick mousedown.slick\",{action:\"start\"},e.swipeHandler),e.$list.on(\"touchmove.slick mousemove.slick\",{action:\"move\"},e.swipeHandler),e.$list.on(\"touchend.slick mouseup.slick\",{action:\"end\"},e.swipeHandler),e.$list.on(\"touchcancel.slick mouseleave.slick\",{action:\"end\"},e.swipeHandler),e.$list.on(\"click.slick\",e.clickHandler),i(document).on(e.visibilityChange,i.proxy(e.visibility,e)),e.options.accessibility===!0&&e.$list.on(\"keydown.slick\",e.keyHandler),e.options.focusOnSelect===!0&&i(e.$slideTrack).children().on(\"click.slick\",e.selectHandler),i(window).on(\"orientationchange.slick.slick-\"+e.instanceUid,i.proxy(e.orientationChange,e)),i(window).on(\"resize.slick.slick-\"+e.instanceUid,i.proxy(e.resize,e)),i(\"[draggable!=true]\",e.$slideTrack).on(\"dragstart\",e.preventDefault),i(window).on(\"load.slick.slick-\"+e.instanceUid,e.setPosition),i(e.setPosition)},e.prototype.initUI=function(){var i=this;i.options.arrows===!0&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.show(),i.$nextArrow.show()),i.options.dots===!0&&i.slideCount>i.options.slidesToShow&&i.$dots.show()},e.prototype.keyHandler=function(i){var e=this;i.target.tagName.match(\"TEXTAREA|INPUT|SELECT\")||(37===i.keyCode&&e.options.accessibility===!0?e.changeSlide({data:{message:e.options.rtl===!0?\"next\":\"previous\"}}):39===i.keyCode&&e.options.accessibility===!0&&e.changeSlide({data:{message:e.options.rtl===!0?\"previous\":\"next\"}}))},e.prototype.lazyLoad=function(){function e(e){i(\"img[data-lazy]\",e).each(function(){var e=i(this),t=i(this).attr(\"data-lazy\"),o=i(this).attr(\"data-srcset\"),s=i(this).attr(\"data-sizes\")||r.$slider.attr(\"data-sizes\"),n=document.createElement(\"img\");n.onload=function(){e.animate({opacity:0},100,function(){o&&(e.attr(\"srcset\",o),s&&e.attr(\"sizes\",s)),e.attr(\"src\",t).animate({opacity:1},200,function(){e.removeAttr(\"data-lazy data-srcset data-sizes\").removeClass(\"slick-loading\")}),r.$slider.trigger(\"lazyLoaded\",[r,e,t])})},n.onerror=function(){e.removeAttr(\"data-lazy\").removeClass(\"slick-loading\").addClass(\"slick-lazyload-error\"),r.$slider.trigger(\"lazyLoadError\",[r,e,t])},n.src=t})}var t,o,s,n,r=this;if(r.options.centerMode===!0?r.options.infinite===!0?(s=r.currentSlide+(r.options.slidesToShow/2+1),n=s+r.options.slidesToShow+2):(s=Math.max(0,r.currentSlide-(r.options.slidesToShow/2+1)),n=2+(r.options.slidesToShow/2+1)+r.currentSlide):(s=r.options.infinite?r.options.slidesToShow+r.currentSlide:r.currentSlide,n=Math.ceil(s+r.options.slidesToShow),r.options.fade===!0&&(s>0&&s--,n<=r.slideCount&&n++)),t=r.$slider.find(\".slick-slide\").slice(s,n),\"anticipated\"===r.options.lazyLoad)for(var l=s-1,d=n,a=r.$slider.find(\".slick-slide\"),c=0;c<r.options.slidesToScroll;c++)l<0&&(l=r.slideCount-1),t=t.add(a.eq(l)),t=t.add(a.eq(d)),l--,d++;e(t),r.slideCount<=r.options.slidesToShow?(o=r.$slider.find(\".slick-slide\"),e(o)):r.currentSlide>=r.slideCount-r.options.slidesToShow?(o=r.$slider.find(\".slick-cloned\").slice(0,r.options.slidesToShow),e(o)):0===r.currentSlide&&(o=r.$slider.find(\".slick-cloned\").slice(r.options.slidesToShow*-1),e(o))},e.prototype.loadSlider=function(){var i=this;i.setPosition(),i.$slideTrack.css({opacity:1}),i.$slider.removeClass(\"slick-loading\"),i.initUI(),\"progressive\"===i.options.lazyLoad&&i.progressiveLazyLoad()},e.prototype.next=e.prototype.slickNext=function(){var i=this;i.changeSlide({data:{message:\"next\"}})},e.prototype.orientationChange=function(){var i=this;i.checkResponsive(),i.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){var i=this;i.autoPlayClear(),i.paused=!0},e.prototype.play=e.prototype.slickPlay=function(){var i=this;i.autoPlay(),i.options.autoplay=!0,i.paused=!1,i.focussed=!1,i.interrupted=!1},e.prototype.postSlide=function(e){var t=this;if(!t.unslicked&&(t.$slider.trigger(\"afterChange\",[t,e]),t.animating=!1,t.slideCount>t.options.slidesToShow&&t.setPosition(),t.swipeLeft=null,t.options.autoplay&&t.autoPlay(),t.options.accessibility===!0&&(t.initADA(),t.options.focusOnChange))){var o=i(t.$slides.get(t.currentSlide));o.attr(\"tabindex\",0).focus()}},e.prototype.prev=e.prototype.slickPrev=function(){var i=this;i.changeSlide({data:{message:\"previous\"}})},e.prototype.preventDefault=function(i){i.preventDefault()},e.prototype.progressiveLazyLoad=function(e){e=e||1;var t,o,s,n,r,l=this,d=i(\"img[data-lazy]\",l.$slider);d.length?(t=d.first(),o=t.attr(\"data-lazy\"),s=t.attr(\"data-srcset\"),n=t.attr(\"data-sizes\")||l.$slider.attr(\"data-sizes\"),r=document.createElement(\"img\"),r.onload=function(){s&&(t.attr(\"srcset\",s),n&&t.attr(\"sizes\",n)),t.attr(\"src\",o).removeAttr(\"data-lazy data-srcset data-sizes\").removeClass(\"slick-loading\"),l.options.adaptiveHeight===!0&&l.setPosition(),l.$slider.trigger(\"lazyLoaded\",[l,t,o]),l.progressiveLazyLoad()},r.onerror=function(){e<3?setTimeout(function(){l.progressiveLazyLoad(e+1)},500):(t.removeAttr(\"data-lazy\").removeClass(\"slick-loading\").addClass(\"slick-lazyload-error\"),l.$slider.trigger(\"lazyLoadError\",[l,t,o]),l.progressiveLazyLoad())},r.src=o):l.$slider.trigger(\"allImagesLoaded\",[l])},e.prototype.refresh=function(e){var t,o,s=this;o=s.slideCount-s.options.slidesToShow,!s.options.infinite&&s.currentSlide>o&&(s.currentSlide=o),s.slideCount<=s.options.slidesToShow&&(s.currentSlide=0),t=s.currentSlide,s.destroy(!0),i.extend(s,s.initials,{currentSlide:t}),s.init(),e||s.changeSlide({data:{message:\"index\",index:t}},!1)},e.prototype.registerBreakpoints=function(){var e,t,o,s=this,n=s.options.responsive||null;if(\"array\"===i.type(n)&&n.length){s.respondTo=s.options.respondTo||\"window\";for(e in n)if(o=s.breakpoints.length-1,n.hasOwnProperty(e)){for(t=n[e].breakpoint;o>=0;)s.breakpoints[o]&&s.breakpoints[o]===t&&s.breakpoints.splice(o,1),o--;s.breakpoints.push(t),s.breakpointSettings[t]=n[e].settings}s.breakpoints.sort(function(i,e){return s.options.mobileFirst?i-e:e-i})}},e.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass(\"slick-slide\"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),e.options.focusOnSelect===!0&&i(e.$slideTrack).children().on(\"click.slick\",e.selectHandler),e.setSlideClasses(\"number\"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger(\"reInit\",[e])},e.prototype.resize=function(){var e=this;i(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=i(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()},50))},e.prototype.removeSlide=e.prototype.slickRemove=function(i,e,t){var o=this;return\"boolean\"==typeof i?(e=i,i=e===!0?0:o.slideCount-1):i=e===!0?--i:i,!(o.slideCount<1||i<0||i>o.slideCount-1)&&(o.unload(),t===!0?o.$slideTrack.children().remove():o.$slideTrack.children(this.options.slide).eq(i).remove(),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slidesCache=o.$slides,void o.reinit())},e.prototype.setCSS=function(i){var e,t,o=this,s={};o.options.rtl===!0&&(i=-i),e=\"left\"==o.positionProp?Math.ceil(i)+\"px\":\"0px\",t=\"top\"==o.positionProp?Math.ceil(i)+\"px\":\"0px\",s[o.positionProp]=i,o.transformsEnabled===!1?o.$slideTrack.css(s):(s={},o.cssTransitions===!1?(s[o.animType]=\"translate(\"+e+\", \"+t+\")\",o.$slideTrack.css(s)):(s[o.animType]=\"translate3d(\"+e+\", \"+t+\", 0px)\",o.$slideTrack.css(s)))},e.prototype.setDimensions=function(){var i=this;i.options.vertical===!1?i.options.centerMode===!0&&i.$list.css({padding:\"0px \"+i.options.centerPadding}):(i.$list.height(i.$slides.first().outerHeight(!0)*i.options.slidesToShow),i.options.centerMode===!0&&i.$list.css({padding:i.options.centerPadding+\" 0px\"})),i.listWidth=i.$list.width(),i.listHeight=i.$list.height(),i.options.vertical===!1&&i.options.variableWidth===!1?(i.slideWidth=Math.ceil(i.listWidth/i.options.slidesToShow),i.$slideTrack.width(Math.ceil(i.slideWidth*i.$slideTrack.children(\".slick-slide\").length))):i.options.variableWidth===!0?i.$slideTrack.width(5e3*i.slideCount):(i.slideWidth=Math.ceil(i.listWidth),i.$slideTrack.height(Math.ceil(i.$slides.first().outerHeight(!0)*i.$slideTrack.children(\".slick-slide\").length)));var e=i.$slides.first().outerWidth(!0)-i.$slides.first().width();i.options.variableWidth===!1&&i.$slideTrack.children(\".slick-slide\").width(i.slideWidth-e)},e.prototype.setFade=function(){var e,t=this;t.$slides.each(function(o,s){e=t.slideWidth*o*-1,t.options.rtl===!0?i(s).css({position:\"relative\",right:e,top:0,zIndex:t.options.zIndex-2,opacity:0}):i(s).css({position:\"relative\",left:e,top:0,zIndex:t.options.zIndex-2,opacity:0})}),t.$slides.eq(t.currentSlide).css({zIndex:t.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){var i=this;if(1===i.options.slidesToShow&&i.options.adaptiveHeight===!0&&i.options.vertical===!1){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.css(\"height\",e)}},e.prototype.setOption=e.prototype.slickSetOption=function(){var e,t,o,s,n,r=this,l=!1;if(\"object\"===i.type(arguments[0])?(o=arguments[0],l=arguments[1],n=\"multiple\"):\"string\"===i.type(arguments[0])&&(o=arguments[0],s=arguments[1],l=arguments[2],\"responsive\"===arguments[0]&&\"array\"===i.type(arguments[1])?n=\"responsive\":\"undefined\"!=typeof arguments[1]&&(n=\"single\")),\"single\"===n)r.options[o]=s;else if(\"multiple\"===n)i.each(o,function(i,e){r.options[i]=e});else if(\"responsive\"===n)for(t in s)if(\"array\"!==i.type(r.options.responsive))r.options.responsive=[s[t]];else{for(e=r.options.responsive.length-1;e>=0;)r.options.responsive[e].breakpoint===s[t].breakpoint&&r.options.responsive.splice(e,1),e--;r.options.responsive.push(s[t])}l&&(r.unload(),r.reinit())},e.prototype.setPosition=function(){var i=this;i.setDimensions(),i.setHeight(),i.options.fade===!1?i.setCSS(i.getLeft(i.currentSlide)):i.setFade(),i.$slider.trigger(\"setPosition\",[i])},e.prototype.setProps=function(){var i=this,e=document.body.style;i.positionProp=i.options.vertical===!0?\"top\":\"left\",\n\"top\"===i.positionProp?i.$slider.addClass(\"slick-vertical\"):i.$slider.removeClass(\"slick-vertical\"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||i.options.useCSS===!0&&(i.cssTransitions=!0),i.options.fade&&(\"number\"==typeof i.options.zIndex?i.options.zIndex<3&&(i.options.zIndex=3):i.options.zIndex=i.defaults.zIndex),void 0!==e.OTransform&&(i.animType=\"OTransform\",i.transformType=\"-o-transform\",i.transitionType=\"OTransition\",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.MozTransform&&(i.animType=\"MozTransform\",i.transformType=\"-moz-transform\",i.transitionType=\"MozTransition\",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(i.animType=!1)),void 0!==e.webkitTransform&&(i.animType=\"webkitTransform\",i.transformType=\"-webkit-transform\",i.transitionType=\"webkitTransition\",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.msTransform&&(i.animType=\"msTransform\",i.transformType=\"-ms-transform\",i.transitionType=\"msTransition\",void 0===e.msTransform&&(i.animType=!1)),void 0!==e.transform&&i.animType!==!1&&(i.animType=\"transform\",i.transformType=\"transform\",i.transitionType=\"transition\"),i.transformsEnabled=i.options.useTransform&&null!==i.animType&&i.animType!==!1},e.prototype.setSlideClasses=function(i){var e,t,o,s,n=this;if(t=n.$slider.find(\".slick-slide\").removeClass(\"slick-active slick-center slick-current\").attr(\"aria-hidden\",\"true\"),n.$slides.eq(i).addClass(\"slick-current\"),n.options.centerMode===!0){var r=n.options.slidesToShow%2===0?1:0;e=Math.floor(n.options.slidesToShow/2),n.options.infinite===!0&&(i>=e&&i<=n.slideCount-1-e?n.$slides.slice(i-e+r,i+e+1).addClass(\"slick-active\").attr(\"aria-hidden\",\"false\"):(o=n.options.slidesToShow+i,t.slice(o-e+1+r,o+e+2).addClass(\"slick-active\").attr(\"aria-hidden\",\"false\")),0===i?t.eq(t.length-1-n.options.slidesToShow).addClass(\"slick-center\"):i===n.slideCount-1&&t.eq(n.options.slidesToShow).addClass(\"slick-center\")),n.$slides.eq(i).addClass(\"slick-center\")}else i>=0&&i<=n.slideCount-n.options.slidesToShow?n.$slides.slice(i,i+n.options.slidesToShow).addClass(\"slick-active\").attr(\"aria-hidden\",\"false\"):t.length<=n.options.slidesToShow?t.addClass(\"slick-active\").attr(\"aria-hidden\",\"false\"):(s=n.slideCount%n.options.slidesToShow,o=n.options.infinite===!0?n.options.slidesToShow+i:i,n.options.slidesToShow==n.options.slidesToScroll&&n.slideCount-i<n.options.slidesToShow?t.slice(o-(n.options.slidesToShow-s),o+s).addClass(\"slick-active\").attr(\"aria-hidden\",\"false\"):t.slice(o,o+n.options.slidesToShow).addClass(\"slick-active\").attr(\"aria-hidden\",\"false\"));\"ondemand\"!==n.options.lazyLoad&&\"anticipated\"!==n.options.lazyLoad||n.lazyLoad()},e.prototype.setupInfinite=function(){var e,t,o,s=this;if(s.options.fade===!0&&(s.options.centerMode=!1),s.options.infinite===!0&&s.options.fade===!1&&(t=null,s.slideCount>s.options.slidesToShow)){for(o=s.options.centerMode===!0?s.options.slidesToShow+1:s.options.slidesToShow,e=s.slideCount;e>s.slideCount-o;e-=1)t=e-1,i(s.$slides[t]).clone(!0).attr(\"id\",\"\").attr(\"data-slick-index\",t-s.slideCount).prependTo(s.$slideTrack).addClass(\"slick-cloned\");for(e=0;e<o+s.slideCount;e+=1)t=e,i(s.$slides[t]).clone(!0).attr(\"id\",\"\").attr(\"data-slick-index\",t+s.slideCount).appendTo(s.$slideTrack).addClass(\"slick-cloned\");s.$slideTrack.find(\".slick-cloned\").find(\"[id]\").each(function(){i(this).attr(\"id\",\"\")})}},e.prototype.interrupt=function(i){var e=this;i||e.autoPlay(),e.interrupted=i},e.prototype.selectHandler=function(e){var t=this,o=i(e.target).is(\".slick-slide\")?i(e.target):i(e.target).parents(\".slick-slide\"),s=parseInt(o.attr(\"data-slick-index\"));return s||(s=0),t.slideCount<=t.options.slidesToShow?void t.slideHandler(s,!1,!0):void t.slideHandler(s)},e.prototype.slideHandler=function(i,e,t){var o,s,n,r,l,d=null,a=this;if(e=e||!1,!(a.animating===!0&&a.options.waitForAnimate===!0||a.options.fade===!0&&a.currentSlide===i))return e===!1&&a.asNavFor(i),o=i,d=a.getLeft(o),r=a.getLeft(a.currentSlide),a.currentLeft=null===a.swipeLeft?r:a.swipeLeft,a.options.infinite===!1&&a.options.centerMode===!1&&(i<0||i>a.getDotCount()*a.options.slidesToScroll)?void(a.options.fade===!1&&(o=a.currentSlide,t!==!0&&a.slideCount>a.options.slidesToShow?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o))):a.options.infinite===!1&&a.options.centerMode===!0&&(i<0||i>a.slideCount-a.options.slidesToScroll)?void(a.options.fade===!1&&(o=a.currentSlide,t!==!0&&a.slideCount>a.options.slidesToShow?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o))):(a.options.autoplay&&clearInterval(a.autoPlayTimer),s=o<0?a.slideCount%a.options.slidesToScroll!==0?a.slideCount-a.slideCount%a.options.slidesToScroll:a.slideCount+o:o>=a.slideCount?a.slideCount%a.options.slidesToScroll!==0?0:o-a.slideCount:o,a.animating=!0,a.$slider.trigger(\"beforeChange\",[a,a.currentSlide,s]),n=a.currentSlide,a.currentSlide=s,a.setSlideClasses(a.currentSlide),a.options.asNavFor&&(l=a.getNavTarget(),l=l.slick(\"getSlick\"),l.slideCount<=l.options.slidesToShow&&l.setSlideClasses(a.currentSlide)),a.updateDots(),a.updateArrows(),a.options.fade===!0?(t!==!0?(a.fadeSlideOut(n),a.fadeSlide(s,function(){a.postSlide(s)})):a.postSlide(s),void a.animateHeight()):void(t!==!0&&a.slideCount>a.options.slidesToShow?a.animateSlide(d,function(){a.postSlide(s)}):a.postSlide(s)))},e.prototype.startLoad=function(){var i=this;i.options.arrows===!0&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.hide(),i.$nextArrow.hide()),i.options.dots===!0&&i.slideCount>i.options.slidesToShow&&i.$dots.hide(),i.$slider.addClass(\"slick-loading\")},e.prototype.swipeDirection=function(){var i,e,t,o,s=this;return i=s.touchObject.startX-s.touchObject.curX,e=s.touchObject.startY-s.touchObject.curY,t=Math.atan2(e,i),o=Math.round(180*t/Math.PI),o<0&&(o=360-Math.abs(o)),o<=45&&o>=0?s.options.rtl===!1?\"left\":\"right\":o<=360&&o>=315?s.options.rtl===!1?\"left\":\"right\":o>=135&&o<=225?s.options.rtl===!1?\"right\":\"left\":s.options.verticalSwiping===!0?o>=35&&o<=135?\"down\":\"up\":\"vertical\"},e.prototype.swipeEnd=function(i){var e,t,o=this;if(o.dragging=!1,o.swiping=!1,o.scrolling)return o.scrolling=!1,!1;if(o.interrupted=!1,o.shouldClick=!(o.touchObject.swipeLength>10),void 0===o.touchObject.curX)return!1;if(o.touchObject.edgeHit===!0&&o.$slider.trigger(\"edge\",[o,o.swipeDirection()]),o.touchObject.swipeLength>=o.touchObject.minSwipe){switch(t=o.swipeDirection()){case\"left\":case\"down\":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide+o.getSlideCount()):o.currentSlide+o.getSlideCount(),o.currentDirection=0;break;case\"right\":case\"up\":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide-o.getSlideCount()):o.currentSlide-o.getSlideCount(),o.currentDirection=1}\"vertical\"!=t&&(o.slideHandler(e),o.touchObject={},o.$slider.trigger(\"swipe\",[o,t]))}else o.touchObject.startX!==o.touchObject.curX&&(o.slideHandler(o.currentSlide),o.touchObject={})},e.prototype.swipeHandler=function(i){var e=this;if(!(e.options.swipe===!1||\"ontouchend\"in document&&e.options.swipe===!1||e.options.draggable===!1&&i.type.indexOf(\"mouse\")!==-1))switch(e.touchObject.fingerCount=i.originalEvent&&void 0!==i.originalEvent.touches?i.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,e.options.verticalSwiping===!0&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),i.data.action){case\"start\":e.swipeStart(i);break;case\"move\":e.swipeMove(i);break;case\"end\":e.swipeEnd(i)}},e.prototype.swipeMove=function(i){var e,t,o,s,n,r,l=this;return n=void 0!==i.originalEvent?i.originalEvent.touches:null,!(!l.dragging||l.scrolling||n&&1!==n.length)&&(e=l.getLeft(l.currentSlide),l.touchObject.curX=void 0!==n?n[0].pageX:i.clientX,l.touchObject.curY=void 0!==n?n[0].pageY:i.clientY,l.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(l.touchObject.curX-l.touchObject.startX,2))),r=Math.round(Math.sqrt(Math.pow(l.touchObject.curY-l.touchObject.startY,2))),!l.options.verticalSwiping&&!l.swiping&&r>4?(l.scrolling=!0,!1):(l.options.verticalSwiping===!0&&(l.touchObject.swipeLength=r),t=l.swipeDirection(),void 0!==i.originalEvent&&l.touchObject.swipeLength>4&&(l.swiping=!0,i.preventDefault()),s=(l.options.rtl===!1?1:-1)*(l.touchObject.curX>l.touchObject.startX?1:-1),l.options.verticalSwiping===!0&&(s=l.touchObject.curY>l.touchObject.startY?1:-1),o=l.touchObject.swipeLength,l.touchObject.edgeHit=!1,l.options.infinite===!1&&(0===l.currentSlide&&\"right\"===t||l.currentSlide>=l.getDotCount()&&\"left\"===t)&&(o=l.touchObject.swipeLength*l.options.edgeFriction,l.touchObject.edgeHit=!0),l.options.vertical===!1?l.swipeLeft=e+o*s:l.swipeLeft=e+o*(l.$list.height()/l.listWidth)*s,l.options.verticalSwiping===!0&&(l.swipeLeft=e+o*s),l.options.fade!==!0&&l.options.touchMove!==!1&&(l.animating===!0?(l.swipeLeft=null,!1):void l.setCSS(l.swipeLeft))))},e.prototype.swipeStart=function(i){var e,t=this;return t.interrupted=!0,1!==t.touchObject.fingerCount||t.slideCount<=t.options.slidesToShow?(t.touchObject={},!1):(void 0!==i.originalEvent&&void 0!==i.originalEvent.touches&&(e=i.originalEvent.touches[0]),t.touchObject.startX=t.touchObject.curX=void 0!==e?e.pageX:i.clientX,t.touchObject.startY=t.touchObject.curY=void 0!==e?e.pageY:i.clientY,void(t.dragging=!0))},e.prototype.unfilterSlides=e.prototype.slickUnfilter=function(){var i=this;null!==i.$slidesCache&&(i.unload(),i.$slideTrack.children(this.options.slide).detach(),i.$slidesCache.appendTo(i.$slideTrack),i.reinit())},e.prototype.unload=function(){var e=this;i(\".slick-cloned\",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass(\"slick-slide slick-active slick-visible slick-current\").attr(\"aria-hidden\",\"true\").css(\"width\",\"\")},e.prototype.unslick=function(i){var e=this;e.$slider.trigger(\"unslick\",[e,i]),e.destroy()},e.prototype.updateArrows=function(){var i,e=this;i=Math.floor(e.options.slidesToShow/2),e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&!e.options.infinite&&(e.$prevArrow.removeClass(\"slick-disabled\").attr(\"aria-disabled\",\"false\"),e.$nextArrow.removeClass(\"slick-disabled\").attr(\"aria-disabled\",\"false\"),0===e.currentSlide?(e.$prevArrow.addClass(\"slick-disabled\").attr(\"aria-disabled\",\"true\"),e.$nextArrow.removeClass(\"slick-disabled\").attr(\"aria-disabled\",\"false\")):e.currentSlide>=e.slideCount-e.options.slidesToShow&&e.options.centerMode===!1?(e.$nextArrow.addClass(\"slick-disabled\").attr(\"aria-disabled\",\"true\"),e.$prevArrow.removeClass(\"slick-disabled\").attr(\"aria-disabled\",\"false\")):e.currentSlide>=e.slideCount-1&&e.options.centerMode===!0&&(e.$nextArrow.addClass(\"slick-disabled\").attr(\"aria-disabled\",\"true\"),e.$prevArrow.removeClass(\"slick-disabled\").attr(\"aria-disabled\",\"false\")))},e.prototype.updateDots=function(){var i=this;null!==i.$dots&&(i.$dots.find(\"li\").removeClass(\"slick-active\").end(),i.$dots.find(\"li\").eq(Math.floor(i.currentSlide/i.options.slidesToScroll)).addClass(\"slick-active\"))},e.prototype.visibility=function(){var i=this;i.options.autoplay&&(document[i.hidden]?i.interrupted=!0:i.interrupted=!1)},i.fn.slick=function(){var i,t,o=this,s=arguments[0],n=Array.prototype.slice.call(arguments,1),r=o.length;for(i=0;i<r;i++)if(\"object\"==typeof s||\"undefined\"==typeof s?o[i].slick=new e(o[i],s):t=o[i].slick[s].apply(o[i].slick,n),\"undefined\"!=typeof t)return t;return o}});","requirejs/domReady.min.js":"define(function(){'use strict';var isTop,testDiv,scrollIntervalId,isBrowser=typeof window!==\"undefined\"&&window.document,isPageLoaded=!isBrowser,doc=isBrowser?document:null,readyCalls=[];function runCallbacks(callbacks){var i;for(i=0;i<callbacks.length;i+=1){callbacks[i](doc);}}\nfunction callReady(){var callbacks=readyCalls;if(isPageLoaded){if(callbacks.length){readyCalls=[];runCallbacks(callbacks);}}}\nfunction pageLoaded(){if(!isPageLoaded){isPageLoaded=true;if(scrollIntervalId){clearInterval(scrollIntervalId);}\ncallReady();}}\nif(isBrowser){if(document.addEventListener){document.addEventListener(\"DOMContentLoaded\",pageLoaded,false);window.addEventListener(\"load\",pageLoaded,false);}else if(window.attachEvent){window.attachEvent(\"onload\",pageLoaded);testDiv=document.createElement('div');try{isTop=window.frameElement===null;}catch(e){}\nif(testDiv.doScroll&&isTop&&window.external){scrollIntervalId=setInterval(function(){try{testDiv.doScroll();pageLoaded();}catch(e){}},30);}}\nif(document.readyState!==\"loading\"){setTimeout(pageLoaded);}}\nfunction domReady(callback){if(isPageLoaded){callback(doc);}else{readyCalls.push(callback);}\nreturn domReady;}\ndomReady.version='2.0.1';domReady.load=function(name,req,onLoad,config){if(config.isBuild){onLoad(null);}else{domReady(onLoad);}};return domReady;});","requirejs/text.min.js":"define(['module'],function(module){'use strict';var text,fs,Cc,Ci,xpcIsWindows,progIds=['Msxml2.XMLHTTP','Microsoft.XMLHTTP','Msxml2.XMLHTTP.4.0'],xmlRegExp=/^\\s*<\\?xml(\\s)+version=[\\'\\\"](\\d)*.(\\d)*[\\'\\\"](\\s)*\\?>/im,bodyRegExp=/<body[^>]*>\\s*([\\s\\S]+)\\s*<\\/body>/im,hasLocation=typeof location!=='undefined'&&location.href,defaultProtocol=hasLocation&&location.protocol&&location.protocol.replace(/\\:/,''),defaultHostName=hasLocation&&location.hostname,defaultPort=hasLocation&&(location.port||undefined),buildMap={},masterConfig=(module.config&&module.config())||{};text={version:'2.0.12',strip:function(content){if(content){content=content.replace(xmlRegExp,\"\");var matches=content.match(bodyRegExp);if(matches){content=matches[1];}}else{content=\"\";}\nreturn content;},jsEscape:function(content){return content.replace(/(['\\\\])/g,'\\\\$1').replace(/[\\f]/g,\"\\\\f\").replace(/[\\b]/g,\"\\\\b\").replace(/[\\n]/g,\"\\\\n\").replace(/[\\t]/g,\"\\\\t\").replace(/[\\r]/g,\"\\\\r\").replace(/[\\u2028]/g,\"\\\\u2028\").replace(/[\\u2029]/g,\"\\\\u2029\");},createXhr:masterConfig.createXhr||function(){var xhr,i,progId;if(typeof XMLHttpRequest!==\"undefined\"){return new XMLHttpRequest();}else if(typeof ActiveXObject!==\"undefined\"){for(i=0;i<3;i+=1){progId=progIds[i];try{xhr=new ActiveXObject(progId);}catch(e){}\nif(xhr){progIds=[progId];break;}}}\nreturn xhr;},parseName:function(name){var modName,ext,temp,strip=false,index=name.indexOf(\".\"),isRelative=name.indexOf('./')===0||name.indexOf('../')===0;if(index!==-1&&(!isRelative||index>1)){modName=name.substring(0,index);ext=name.substring(index+1,name.length);}else{modName=name;}\ntemp=ext||modName;index=temp.indexOf(\"!\");if(index!==-1){strip=temp.substring(index+1)===\"strip\";temp=temp.substring(0,index);if(ext){ext=temp;}else{modName=temp;}}\nreturn{moduleName:modName,ext:ext,strip:strip};},xdRegExp:/^((\\w+)\\:)?\\/\\/([^\\/\\\\]+)/,useXhr:function(url,protocol,hostname,port){var uProtocol,uHostName,uPort,match=text.xdRegExp.exec(url);if(!match){return true;}\nuProtocol=match[2];uHostName=match[3];uHostName=uHostName.split(':');uPort=uHostName[1];uHostName=uHostName[0];return(!uProtocol||uProtocol===protocol)&&(!uHostName||uHostName.toLowerCase()===hostname.toLowerCase())&&((!uPort&&!uHostName)||uPort===port);},finishLoad:function(name,strip,content,onLoad){content=strip?text.strip(content):content;if(masterConfig.isBuild){buildMap[name]=content;}\nonLoad(content);},load:function(name,req,onLoad,config){if(config&&config.isBuild&&!config.inlineText){onLoad();return;}\nmasterConfig.isBuild=config&&config.isBuild;var parsed=text.parseName(name),nonStripName=parsed.moduleName+\n(parsed.ext?'.'+parsed.ext:''),url=req.toUrl(nonStripName),useXhr=(masterConfig.useXhr)||text.useXhr;if(url.indexOf('empty:')===0){onLoad();return;}\nif(!hasLocation||useXhr(url,defaultProtocol,defaultHostName,defaultPort)){text.get(url,function(content){text.finishLoad(name,parsed.strip,content,onLoad);},function(err){if(onLoad.error){onLoad.error(err);}});}else{req([nonStripName],function(content){text.finishLoad(parsed.moduleName+'.'+parsed.ext,parsed.strip,content,onLoad);});}},write:function(pluginName,moduleName,write,config){if(buildMap.hasOwnProperty(moduleName)){var content=text.jsEscape(buildMap[moduleName]);write.asModule(pluginName+\"!\"+moduleName,\"define(function () { return '\"+\ncontent+\"';});\\n\");}},writeFile:function(pluginName,moduleName,req,write,config){var parsed=text.parseName(moduleName),extPart=parsed.ext?'.'+parsed.ext:'',nonStripName=parsed.moduleName+extPart,fileName=req.toUrl(parsed.moduleName+extPart)+'.js';text.load(nonStripName,req,function(value){var textWrite=function(contents){return write(fileName,contents);};textWrite.asModule=function(moduleName,contents){return write.asModule(moduleName,fileName,contents);};text.write(pluginName,nonStripName,textWrite,config);},config);}};if(masterConfig.env==='node'||(!masterConfig.env&&typeof process!==\"undefined\"&&process.versions&&!!process.versions.node&&!process.versions['node-webkit'])){fs=require.nodeRequire('fs');text.get=function(url,callback,errback){try{var file=fs.readFileSync(url,'utf8');if(file.indexOf('\\uFEFF')===0){file=file.substring(1);}\ncallback(file);}catch(e){if(errback){errback(e);}}};}else if(masterConfig.env==='xhr'||(!masterConfig.env&&text.createXhr())){text.get=function(url,callback,errback,headers){var xhr=text.createXhr(),header;xhr.open('GET',url,true);if(headers){for(header in headers){if(headers.hasOwnProperty(header)){xhr.setRequestHeader(header.toLowerCase(),headers[header]);}}}\nif(masterConfig.onXhr){masterConfig.onXhr(xhr,url);}\nxhr.onreadystatechange=function(evt){var status,err;if(xhr.readyState===4){status=xhr.status||0;if(status>399&&status<600){err=new Error(url+' HTTP status: '+status);err.xhr=xhr;if(errback){errback(err);}}else{callback(xhr.responseText);}\nif(masterConfig.onXhrComplete){masterConfig.onXhrComplete(xhr,url);}}};xhr.send(null);};}else if(masterConfig.env==='rhino'||(!masterConfig.env&&typeof Packages!=='undefined'&&typeof java!=='undefined')){text.get=function(url,callback){var stringBuffer,line,encoding=\"utf-8\",file=new java.io.File(url),lineSeparator=java.lang.System.getProperty(\"line.separator\"),input=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(file),encoding)),content='';try{stringBuffer=new java.lang.StringBuffer();line=input.readLine();if(line&&line.length()&&line.charAt(0)===0xfeff){line=line.substring(1);}\nif(line!==null){stringBuffer.append(line);}\nwhile((line=input.readLine())!==null){stringBuffer.append(lineSeparator);stringBuffer.append(line);}\ncontent=String(stringBuffer.toString());}finally{input.close();}\ncallback(content);};}else if(masterConfig.env==='xpconnect'||(!masterConfig.env&&typeof Components!=='undefined'&&Components.classes&&Components.interfaces)){Cc=Components.classes;Ci=Components.interfaces;Components.utils['import']('resource://gre/modules/FileUtils.jsm');xpcIsWindows=('@mozilla.org/windows-registry-key;1'in Cc);text.get=function(url,callback){var inStream,convertStream,fileObj,readData={};if(xpcIsWindows){url=url.replace(/\\//g,'\\\\');}\nfileObj=new FileUtils.File(url);try{inStream=Cc['@mozilla.org/network/file-input-stream;1'].createInstance(Ci.nsIFileInputStream);inStream.init(fileObj,1,0,false);convertStream=Cc['@mozilla.org/intl/converter-input-stream;1'].createInstance(Ci.nsIConverterInputStream);convertStream.init(inStream,\"utf-8\",inStream.available(),Ci.nsIConverterInputStream.DEFAULT_REPLACEMENT_CHARACTER);convertStream.readString(inStream.available(),readData);convertStream.close();inStream.close();callback(readData.value);}catch(e){throw new Error((fileObj&&fileObj.path||'')+': '+e);}};}\nreturn text;});","Magento_Translation/js/i18n-config.min.js":"(function(){'use strict';require.config({config:{'Magento_Ui/js/lib/knockout/bindings/i18n':{inlineTranslation:true}}});})();","Magento_Translation/js/add-class.min.js":"define(['jquery'],function($){'use strict';return function(config,element){$(element).addClass(config.class);};});","Magento_Translation/js/mage-translation-dictionary.min.js":"define(['text!js-translation.json'],function(dict){'use strict';return JSON.parse(dict);});","Magento_CardinalCommerce/js/cardinal-client.min.js":"define(['jquery','uiClass','Magento_CardinalCommerce/js/cardinal-factory','Magento_Checkout/js/model/quote','mage/translate'],function($,Class,cardinalFactory,quote,$t){'use strict';return{startAuthentication:function(cardData){var deferred=$.Deferred();if(this.cardinalClient){this._startAuthentication(deferred,cardData);}else{cardinalFactory(this.getEnvironment()).done(function(client){this.cardinalClient=client;this._startAuthentication(deferred,cardData);}.bind(this));}\nreturn deferred.promise();},_startAuthentication:function(deferred,cardData){this.cardinalClient.on('payments.validated',function(data,jwt){if(data.ErrorNumber!==0){deferred.reject(data.ErrorDescription);}else if($.inArray(data.ActionCode,['FAILURE','ERROR'])!==-1){deferred.reject($t('Authentication Failed. Please try again with another form of payment.'));}else{deferred.resolve(jwt);}\nthis.cardinalClient.off('payments.validated');}.bind(this));this.cardinalClient.on('payments.setupComplete',function(){this.cardinalClient.start('cca',this.getRequestOrderObject(cardData));this.cardinalClient.off('payments.setupComplete');}.bind(this));this.cardinalClient.setup('init',{jwt:this.getRequestJWT()});},getRequestOrderObject:function(cardData){var totalAmount=quote.totals()['base_grand_total'],currencyCode=quote.totals()['base_currency_code'],billingAddress=quote.billingAddress(),requestObject;requestObject={OrderDetails:{Amount:totalAmount*100,CurrencyCode:currencyCode},Consumer:{Account:{AccountNumber:cardData.accountNumber,ExpirationMonth:cardData.expMonth,ExpirationYear:cardData.expYear,CardCode:cardData.cardCode},BillingAddress:{FirstName:billingAddress.firstname,LastName:billingAddress.lastname,Address1:billingAddress.street[0],Address2:billingAddress.street[1],City:billingAddress.city,State:billingAddress.region,PostalCode:billingAddress.postcode,CountryCode:billingAddress.countryId,Phone1:billingAddress.telephone}}};return requestObject;},getRequestJWT:function(){return window.checkoutConfig.cardinal.requestJWT;},getEnvironment:function(){return window.checkoutConfig.cardinal.environment;}};});","Magento_CardinalCommerce/js/cardinal-factory.min.js":"define(['jquery'],function($){'use strict';return function(environment){var deferred=$.Deferred(),dependency='cardinaljs';if(environment==='sandbox'){dependency='cardinaljsSandbox';}\nrequire([dependency],function(Cardinal){deferred.resolve(Cardinal);},deferred.reject);return deferred.promise();};});","knockoutjs/knockout-fast-foreach.min.js":"/*!\n  Knockout Fast Foreach v0.4.1 (2015-07-17T14:06:15.974Z)\n  By: Brian M Hunt (C) 2015\n  License: MIT\n\n  Adds `fastForEach` to `ko.bindingHandlers`.\n*/\n(function(root,factory){if(typeof define==='function'&&define.amd){define(['knockout'],factory);}else if(typeof exports==='object'){module.exports=factory(require('knockout'));}else{root.KnockoutFastForeach=factory(root.ko);}}(this,function(ko){\"use strict\";function isPlainObject(o){return!!o&&typeof o==='object'&&o.constructor===Object;}\nvar commentNodesHaveTextProperty=document&&document.createComment(\"test\").text===\"<!--test-->\";var startCommentRegex=commentNodesHaveTextProperty?/^<!--\\s*ko(?:\\s+([\\s\\S]+))?\\s*-->$/:/^\\s*ko(?:\\s+([\\s\\S]+))?\\s*$/;var supportsDocumentFragment=document&&typeof document.createDocumentFragment===\"function\";function isVirtualNode(node){return(node.nodeType===8)&&startCommentRegex.test(commentNodesHaveTextProperty?node.text:node.nodeValue);}\nfunction makeTemplateNode(sourceNode){var container=document.createElement(\"div\");var parentNode;if(sourceNode.content){parentNode=sourceNode.content;}else if(sourceNode.tagName==='SCRIPT'){parentNode=document.createElement(\"div\");parentNode.innerHTML=sourceNode.text;}else{parentNode=sourceNode;}\nko.utils.arrayForEach(ko.virtualElements.childNodes(parentNode),function(child){if(child){container.insertBefore(child.cloneNode(true),null);}});return container;}\nfunction insertAllAfter(containerNode,nodeOrNodeArrayToInsert,insertAfterNode){var frag,len,i;if(typeof nodeOrNodeArrayToInsert.nodeType!==\"undefined\"&&typeof nodeOrNodeArrayToInsert.length===\"undefined\"){throw new Error(\"Expected a single node or a node array\");}\nif(typeof nodeOrNodeArrayToInsert.nodeType!==\"undefined\"){ko.virtualElements.insertAfter(containerNode,nodeOrNodeArrayToInsert,insertAfterNode);return;}\nif(nodeOrNodeArrayToInsert.length===1){ko.virtualElements.insertAfter(containerNode,nodeOrNodeArrayToInsert[0],insertAfterNode);return;}\nif(supportsDocumentFragment){frag=document.createDocumentFragment();for(i=0,len=nodeOrNodeArrayToInsert.length;i!==len;++i){frag.appendChild(nodeOrNodeArrayToInsert[i]);}\nko.virtualElements.insertAfter(containerNode,frag,insertAfterNode);}else{for(i=nodeOrNodeArrayToInsert.length-1;i>=0;--i){var child=nodeOrNodeArrayToInsert[i];if(!child){return;}\nko.virtualElements.insertAfter(containerNode,child,insertAfterNode);}}}\nfunction valueToChangeAddItem(value,index){return{status:'added',value:value,index:index};}\nfunction isAdditionAdjacentToLast(changeIndex,arrayChanges){return changeIndex>0&&changeIndex<arrayChanges.length&&arrayChanges[changeIndex].status===\"added\"&&arrayChanges[changeIndex-1].status===\"added\"&&arrayChanges[changeIndex-1].index===arrayChanges[changeIndex].index-1;}\nfunction FastForEach(spec){this.element=spec.element;this.container=isVirtualNode(this.element)?this.element.parentNode:this.element;this.$context=spec.$context;this.data=spec.data;this.as=spec.as;this.noContext=spec.noContext;this.templateNode=makeTemplateNode(spec.name?document.getElementById(spec.name).cloneNode(true):spec.element);this.afterQueueFlush=spec.afterQueueFlush;this.beforeQueueFlush=spec.beforeQueueFlush;this.changeQueue=[];this.lastNodesList=[];this.indexesToDelete=[];this.rendering_queued=false;ko.virtualElements.emptyNode(this.element);var primeData=ko.unwrap(this.data);if(primeData.map){this.onArrayChange(primeData.map(valueToChangeAddItem));}\nif(ko.isObservable(this.data)){if(!this.data.indexOf){this.data=this.data.extend({trackArrayChanges:true});}\nthis.changeSubs=this.data.subscribe(this.onArrayChange,this,'arrayChange');}}\nFastForEach.animateFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(cb){return window.setTimeout(cb,1000 / 60);};FastForEach.prototype.dispose=function(){if(this.changeSubs){this.changeSubs.dispose();}};FastForEach.prototype.onArrayChange=function(changeSet){var self=this;var changeMap={added:[],deleted:[]};for(var i=0,len=changeSet.length;i<len;i++){if(isAdditionAdjacentToLast(i,changeSet)){var batchValues=changeMap.added[changeMap.added.length-1].values;if(!batchValues){var lastAddition=changeMap.added.pop();var batchAddition={isBatch:true,status:'added',index:lastAddition.index,values:[lastAddition.value]};batchValues=batchAddition.values;changeMap.added.push(batchAddition);}\nbatchValues.push(changeSet[i].value);}else{changeMap[changeSet[i].status].push(changeSet[i]);}}\nif(changeMap.deleted.length>0){this.changeQueue.push.apply(this.changeQueue,changeMap.deleted);this.changeQueue.push({status:'clearDeletedIndexes'});}\nthis.changeQueue.push.apply(this.changeQueue,changeMap.added);if(this.changeQueue.length>0&&!this.rendering_queued){this.rendering_queued=true;FastForEach.animateFrame.call(window,function(){self.processQueue();});}};FastForEach.prototype.processQueue=function(){var self=this;if(typeof this.beforeQueueFlush==='function'){this.beforeQueueFlush(this.changeQueue);}\nko.utils.arrayForEach(this.changeQueue,function(changeItem){self[changeItem.status](changeItem);});this.rendering_queued=false;if(typeof this.afterQueueFlush==='function'){this.afterQueueFlush(this.changeQueue);}\nthis.changeQueue=[];};FastForEach.prototype.added=function(changeItem){var index=changeItem.index;var valuesToAdd=changeItem.isBatch?changeItem.values:[changeItem.value];var referenceElement=this.lastNodesList[index-1]||null;var allChildNodes=[];for(var i=0,len=valuesToAdd.length;i<len;++i){var templateClone=this.templateNode.cloneNode(true);var childContext;if(this.noContext){childContext=this.$context.extend({'$item':valuesToAdd[i]});}else{childContext=this.$context.createChildContext(valuesToAdd[i],this.as||null);}\nko.applyBindingsToDescendants(childContext,templateClone);var childNodes=ko.virtualElements.childNodes(templateClone);allChildNodes.push.apply(allChildNodes,Array.prototype.slice.call(childNodes));this.lastNodesList.splice(index+i,0,childNodes[childNodes.length-1]);}\ninsertAllAfter(this.element,allChildNodes,referenceElement);};FastForEach.prototype.deleted=function(changeItem){var index=changeItem.index;var ptr=this.lastNodesList[index],lastNode=this.lastNodesList[index-1]||this.element;do{ptr=ptr.previousSibling;ko.removeNode((ptr&&ptr.nextSibling)||ko.virtualElements.firstChild(this.element));}while(ptr&&ptr!==lastNode);this.lastNodesList[index]=this.lastNodesList[index-1];this.indexesToDelete.push(index);};FastForEach.prototype.clearDeletedIndexes=function(){for(var i=this.indexesToDelete.length-1;i>=0;--i){this.lastNodesList.splice(this.indexesToDelete[i],1);}\nthis.indexesToDelete=[];};ko.bindingHandlers.fastForEach={init:function init(element,valueAccessor,bindings,vm,context){var value=valueAccessor(),ffe;if(isPlainObject(value)){value.element=value.element||element;value.$context=context;ffe=new FastForEach(value);}else{ffe=new FastForEach({element:element,data:ko.unwrap(context.$rawData)===value?context.$rawData:value,$context:context});}\nko.utils.domNodeDisposal.addDisposeCallback(element,function(){ffe.dispose();});return{controlsDescendantBindings:true};},FastForEach:FastForEach};ko.virtualElements.allowedBindings.fastForEach=true;}));","knockoutjs/knockout-repeat.min.js":"(function(factory){if(typeof define==='function'&&define.amd){define(['knockout'],factory);}else if(typeof exports==='object'){factory(require('knockout'));}else{factory(window.ko);}})(function(ko){if(!ko.virtualElements)\nthrow Error('Repeat requires at least Knockout 2.1');var ko_bindingFlags=ko.bindingFlags||{};var ko_unwrap=ko.utils.unwrapObservable;var koProtoName='__ko_proto__';if(ko.version>=\"3.0.0\"){var provider=ko.bindingProvider.instance,previousPreprocessFn=provider.preprocessNode;provider.preprocessNode=function(node){var newNodes,nodeBinding;if(!previousPreprocessFn||!(newNodes=previousPreprocessFn.call(this,node))){if(node.nodeType===1&&(nodeBinding=node.getAttribute('data-bind'))){if(/^\\s*repeat\\s*:/.test(nodeBinding)){var leadingComment=node.ownerDocument.createComment('ko '+nodeBinding),trailingComment=node.ownerDocument.createComment('/ko');node.parentNode.insertBefore(leadingComment,node);node.parentNode.insertBefore(trailingComment,node.nextSibling);node.removeAttribute('data-bind');newNodes=[leadingComment,node,trailingComment];}}}\nreturn newNodes;};}\nko.virtualElements.allowedBindings.repeat=true;ko.bindingHandlers.repeat={flags:ko_bindingFlags.contentBind|ko_bindingFlags.canUseVirtual,init:function(element,valueAccessor,allBindingsAccessor,xxx,bindingContext){var repeatParam=ko_unwrap(valueAccessor());if(repeatParam&&typeof repeatParam=='object'&&!('length'in repeatParam)){var repeatIndex=repeatParam.index,repeatData=repeatParam.item,repeatStep=repeatParam.step,repeatReversed=repeatParam.reverse,repeatBind=repeatParam.bind,repeatInit=repeatParam.init,repeatUpdate=repeatParam.update;}\nrepeatIndex=repeatIndex||'$index';repeatData=repeatData||ko.bindingHandlers.repeat.itemName||'$item';repeatStep=repeatStep||1;repeatReversed=repeatReversed||false;var parent=element.parentNode,placeholder;if(element.nodeType==8){var childNodes=ko.utils.arrayFilter(ko.virtualElements.childNodes(element),function(node){return node.nodeType==1;});if(childNodes.length!==1){throw Error(\"Repeat binding requires a single element to repeat\");}\nko.virtualElements.emptyNode(element);placeholder=repeatReversed?element:element.nextSibling;element=childNodes[0];}else{var origBindString=element.getAttribute('data-bind');ko.cleanNode(element);element.removeAttribute('data-bind');placeholder=element.ownerDocument.createComment('ko_repeatplaceholder '+origBindString);parent.replaceChild(placeholder,element);}\nif(!repeatBind){repeatBind=element.getAttribute('data-repeat-bind');if(repeatBind){element.removeAttribute('data-repeat-bind');}}\nvar cleanNode=element.cloneNode(true);if(typeof repeatBind==\"string\"){cleanNode.setAttribute('data-bind',repeatBind);repeatBind=null;}\nvar lastRepeatCount=0,notificationObservable=ko.observable(),repeatArray,arrayObservable;if(repeatInit){repeatInit(parent);}\nvar subscribable=ko.computed(function(){function makeArrayItemAccessor(index){var f=function(newValue){var item=repeatArray[index];if(!arguments.length){notificationObservable();return ko_unwrap(item);}\nif(ko.isObservable(item)){item(newValue);}else if(arrayObservable&&arrayObservable.splice){arrayObservable.splice(index,1,newValue);}else{repeatArray[index]=newValue;}\nreturn this;};f[koProtoName]=ko.observable;return f;}\nfunction makeBinding(item,index,context){return repeatArray?function(){return repeatBind.call(bindingContext.$data,item,index,context);}:function(){return repeatBind.call(bindingContext.$data,index,context);}}\nvar paramObservable=valueAccessor(),repeatParam=ko_unwrap(paramObservable),repeatCount=0;if(repeatParam&&typeof repeatParam=='object'){if('length'in repeatParam){repeatArray=repeatParam;repeatCount=repeatArray.length;}else{if('foreach'in repeatParam){repeatArray=ko_unwrap(paramObservable=repeatParam.foreach);if(repeatArray&&typeof repeatArray=='object'&&'length'in repeatArray){repeatCount=repeatArray.length||0;}else{repeatCount=repeatArray||0;repeatArray=null;}}\nif('count'in repeatParam)\nrepeatCount=ko_unwrap(repeatParam.count)||repeatCount;if('limit'in repeatParam)\nrepeatCount=Math.min(repeatCount,ko_unwrap(repeatParam.limit))||repeatCount;}\narrayObservable=repeatArray&&ko.isObservable(paramObservable)?paramObservable:null;}else{repeatCount=repeatParam||0;}\nfor(;lastRepeatCount>repeatCount;lastRepeatCount-=repeatStep){ko.removeNode(repeatReversed?placeholder.nextSibling:placeholder.previousSibling);}\nnotificationObservable.notifySubscribers();for(;lastRepeatCount<repeatCount;lastRepeatCount+=repeatStep){var newNode=cleanNode.cloneNode(true);parent.insertBefore(newNode,repeatReversed?placeholder.nextSibling:placeholder);newNode.setAttribute('data-repeat-index',lastRepeatCount);if(repeatArray&&repeatData=='$data'){var newContext=bindingContext.createChildContext(makeArrayItemAccessor(lastRepeatCount));}else{var newContext=bindingContext.extend();if(repeatArray)\nnewContext[repeatData]=makeArrayItemAccessor(lastRepeatCount);}\nnewContext[repeatIndex]=lastRepeatCount;if(repeatBind){var result=ko.applyBindingsToNode(newNode,makeBinding(newContext[repeatData],lastRepeatCount,newContext),newContext,true),shouldBindDescendants=result&&result.shouldBindDescendants;}\nif(!repeatBind||(result&&shouldBindDescendants!==false)){ko.applyBindings(newContext,newNode);}}\nif(repeatUpdate){repeatUpdate(parent);}},null,{disposeWhenNodeIsRemoved:placeholder});return{controlsDescendantBindings:true,subscribable:subscribable};}};});","knockoutjs/knockout-es5.min.js":"/*!\n * Knockout ES5 plugin - https://github.com/SteveSanderson/knockout-es5\n * Copyright (c) Steve Sanderson\n * MIT license\n */\n(function(global,undefined){'use strict';var ko;function track(obj,propertyNamesOrSettings){if(!obj||typeof obj!=='object'){throw new Error('When calling ko.track, you must pass an object as the first parameter.');}\nvar propertyNames;if(isPlainObject(propertyNamesOrSettings)){propertyNamesOrSettings.deep=propertyNamesOrSettings.deep||false;propertyNamesOrSettings.fields=propertyNamesOrSettings.fields||Object.getOwnPropertyNames(obj);propertyNamesOrSettings.lazy=propertyNamesOrSettings.lazy||false;wrap(obj,propertyNamesOrSettings.fields,propertyNamesOrSettings);}else{propertyNames=propertyNamesOrSettings||Object.getOwnPropertyNames(obj);wrap(obj,propertyNames,{});}\nreturn obj;}\nvar rFunctionName=/^function\\s*([^\\s(]+)/;function getFunctionName(ctor){if(ctor.name){return ctor.name;}\nreturn(ctor.toString().trim().match(rFunctionName)||[])[1];}\nfunction canTrack(obj){return obj&&typeof obj==='object'&&getFunctionName(obj.constructor)==='Object';}\nfunction createPropertyDescriptor(originalValue,prop,map){var isObservable=ko.isObservable(originalValue);var isArray=!isObservable&&Array.isArray(originalValue);var observable=isObservable?originalValue:isArray?ko.observableArray(originalValue):ko.observable(originalValue);map[prop]=function(){return observable;};if(isArray||(isObservable&&'push'in observable)){notifyWhenPresentOrFutureArrayValuesMutate(ko,observable);}\nreturn{configurable:true,enumerable:true,get:observable,set:ko.isWriteableObservable(observable)?observable:undefined};}\nfunction createLazyPropertyDescriptor(originalValue,prop,map){if(ko.isObservable(originalValue)){return createPropertyDescriptor(originalValue,prop,map);}\nvar observable;function getOrCreateObservable(value,writing){if(observable){return writing?observable(value):observable;}\nif(Array.isArray(value)){observable=ko.observableArray(value);notifyWhenPresentOrFutureArrayValuesMutate(ko,observable);return observable;}\nreturn(observable=ko.observable(value));}\nmap[prop]=function(){return getOrCreateObservable(originalValue);};return{configurable:true,enumerable:true,get:function(){return getOrCreateObservable(originalValue)();},set:function(value){getOrCreateObservable(value,true);}};}\nfunction wrap(obj,props,options){if(!props.length){return;}\nvar allObservablesForObject=getAllObservablesForObject(obj,true);var descriptors={};props.forEach(function(prop){if(prop in allObservablesForObject){return;}\nif(Object.getOwnPropertyDescriptor(obj,prop).configurable===false){return;}\nvar originalValue=obj[prop];descriptors[prop]=(options.lazy?createLazyPropertyDescriptor:createPropertyDescriptor)\n(originalValue,prop,allObservablesForObject);if(options.deep&&canTrack(originalValue)){wrap(originalValue,Object.keys(originalValue),options);}});Object.defineProperties(obj,descriptors);}\nfunction isPlainObject(obj){return!!obj&&typeof obj==='object'&&obj.constructor===Object;}\nvar objectToObservableMap;function getAllObservablesForObject(obj,createIfNotDefined){if(!objectToObservableMap){objectToObservableMap=weakMapFactory();}\nvar result=objectToObservableMap.get(obj);if(!result&&createIfNotDefined){result={};objectToObservableMap.set(obj,result);}\nreturn result;}\nfunction untrack(obj,propertyNames){if(!objectToObservableMap){return;}\nif(arguments.length===1){objectToObservableMap['delete'](obj);}else{var allObservablesForObject=getAllObservablesForObject(obj,false);if(allObservablesForObject){propertyNames.forEach(function(propertyName){delete allObservablesForObject[propertyName];});}}}\nfunction defineComputedProperty(obj,propertyName,evaluatorOrOptions){var ko=this,computedOptions={owner:obj,deferEvaluation:true};if(typeof evaluatorOrOptions==='function'){computedOptions.read=evaluatorOrOptions;}else{if('value'in evaluatorOrOptions){throw new Error('For ko.defineProperty, you must not specify a \"value\" for the property. '+'You must provide a \"get\" function.');}\nif(typeof evaluatorOrOptions.get!=='function'){throw new Error('For ko.defineProperty, the third parameter must be either an evaluator function, '+'or an options object containing a function called \"get\".');}\ncomputedOptions.read=evaluatorOrOptions.get;computedOptions.write=evaluatorOrOptions.set;}\nobj[propertyName]=ko.computed(computedOptions);track.call(ko,obj,[propertyName]);return obj;}\nfunction notifyWhenPresentOrFutureArrayValuesMutate(ko,observable){var watchingArraySubscription=null;ko.computed(function(){if(watchingArraySubscription){watchingArraySubscription.dispose();watchingArraySubscription=null;}\nvar newArrayInstance=observable();if(newArrayInstance instanceof Array){watchingArraySubscription=startWatchingArrayInstance(ko,observable,newArrayInstance);}});}\nfunction startWatchingArrayInstance(ko,observable,arrayInstance){var subscribable=getSubscribableForArray(ko,arrayInstance);return subscribable.subscribe(observable);}\nvar arraySubscribablesMap;function getSubscribableForArray(ko,arrayInstance){if(!arraySubscribablesMap){arraySubscribablesMap=weakMapFactory();}\nvar subscribable=arraySubscribablesMap.get(arrayInstance);if(!subscribable){subscribable=new ko.subscribable();arraySubscribablesMap.set(arrayInstance,subscribable);var notificationPauseSignal={};wrapStandardArrayMutators(arrayInstance,subscribable,notificationPauseSignal);addKnockoutArrayMutators(ko,arrayInstance,subscribable,notificationPauseSignal);}\nreturn subscribable;}\nfunction wrapStandardArrayMutators(arrayInstance,subscribable,notificationPauseSignal){['pop','push','reverse','shift','sort','splice','unshift'].forEach(function(fnName){var origMutator=arrayInstance[fnName];arrayInstance[fnName]=function(){var result=origMutator.apply(this,arguments);if(notificationPauseSignal.pause!==true){subscribable.notifySubscribers(this);}\nreturn result;};});}\nfunction addKnockoutArrayMutators(ko,arrayInstance,subscribable,notificationPauseSignal){['remove','removeAll','destroy','destroyAll','replace'].forEach(function(fnName){Object.defineProperty(arrayInstance,fnName,{enumerable:false,value:function(){var result;notificationPauseSignal.pause=true;try{result=ko.observableArray.fn[fnName].apply(ko.observableArray(arrayInstance),arguments);}\nfinally{notificationPauseSignal.pause=false;}\nsubscribable.notifySubscribers(arrayInstance);return result;}});});}\nfunction getObservable(obj,propertyName){if(!obj||typeof obj!=='object'){return null;}\nvar allObservablesForObject=getAllObservablesForObject(obj,false);if(allObservablesForObject&&propertyName in allObservablesForObject){return allObservablesForObject[propertyName]();}\nreturn null;}\nfunction isTracked(obj,propertyName){if(!obj||typeof obj!=='object'){return false;}\nvar allObservablesForObject=getAllObservablesForObject(obj,false);return!!allObservablesForObject&&propertyName in allObservablesForObject;}\nfunction valueHasMutated(obj,propertyName){var observable=getObservable(obj,propertyName);if(observable){observable.valueHasMutated();}}\nvar weakMapFactory;function attachToKo(ko){ko.track=track;ko.untrack=untrack;ko.getObservable=getObservable;ko.valueHasMutated=valueHasMutated;ko.defineProperty=defineComputedProperty;ko.es5={getAllObservablesForObject:getAllObservablesForObject,notifyWhenPresentOrFutureArrayValuesMutate:notifyWhenPresentOrFutureArrayValuesMutate,isTracked:isTracked};}\nfunction prepareExports(){if(typeof exports==='object'&&typeof module==='object'){ko=require('knockout');var WM=require('../lib/weakmap');attachToKo(ko);weakMapFactory=function(){return new WM();};module.exports=ko;}else if(typeof define==='function'&&define.amd){define(['knockout'],function(koModule){ko=koModule;attachToKo(koModule);weakMapFactory=function(){return new global.WeakMap();};return koModule;});}else if('ko'in global){ko=global.ko;attachToKo(global.ko);weakMapFactory=function(){return new global.WeakMap();};}}\nprepareExports();})(this);","knockoutjs/knockout.min.js":"/*!\n * Knockout JavaScript library v3.5.1\n * (c) The Knockout.js team - http://knockoutjs.com/\n * License: MIT (http://www.opensource.org/licenses/mit-license.php)\n */\n(function(){var DEBUG=true;(function(undefined){var window=this||(0,eval)('this'),document=window['document'],navigator=window['navigator'],jQueryInstance=window[\"jQuery\"],JSON=window[\"JSON\"];if(!jQueryInstance&&typeof jQuery!==\"undefined\"){jQueryInstance=jQuery;}\n(function(factory){if(typeof define==='function'&&define['amd']){define(['exports','require'],factory);}else if(typeof exports==='object'&&typeof module==='object'){factory(module['exports']||exports);}else{factory(window['ko']={});}}(function(koExports,amdRequire){var ko=typeof koExports!=='undefined'?koExports:{};ko.exportSymbol=function(koPath,object){var tokens=koPath.split(\".\");var target=ko;for(var i=0;i<tokens.length-1;i++)\ntarget=target[tokens[i]];target[tokens[tokens.length-1]]=object;};ko.exportProperty=function(owner,publicName,object){owner[publicName]=object;};ko.version=\"3.5.1\";ko.exportSymbol('version',ko.version);ko.options={'deferUpdates':false,'useOnlyNativeEvents':false,'foreachHidesDestroyed':false};ko.utils=(function(){var hasOwnProperty=Object.prototype.hasOwnProperty;function objectForEach(obj,action){for(var prop in obj){if(hasOwnProperty.call(obj,prop)){action(prop,obj[prop]);}}}\nfunction extend(target,source){if(source){for(var prop in source){if(hasOwnProperty.call(source,prop)){target[prop]=source[prop];}}}\nreturn target;}\nfunction setPrototypeOf(obj,proto){obj.__proto__=proto;return obj;}\nvar canSetPrototype=({__proto__:[]}instanceof Array);var canUseSymbols=!DEBUG&&typeof Symbol==='function';var knownEvents={},knownEventTypesByEventName={};var keyEventTypeName=(navigator&&/Firefox\\/2/i.test(navigator.userAgent))?'KeyboardEvent':'UIEvents';knownEvents[keyEventTypeName]=['keyup','keydown','keypress'];knownEvents['MouseEvents']=['click','dblclick','mousedown','mouseup','mousemove','mouseover','mouseout','mouseenter','mouseleave'];objectForEach(knownEvents,function(eventType,knownEventsForType){if(knownEventsForType.length){for(var i=0,j=knownEventsForType.length;i<j;i++)\nknownEventTypesByEventName[knownEventsForType[i]]=eventType;}});var eventsThatMustBeRegisteredUsingAttachEvent={'propertychange':true};var ieVersion=document&&(function(){var version=3,div=document.createElement('div'),iElems=div.getElementsByTagName('i');while(div.innerHTML='<!--[if gt IE '+(++version)+']><i></i><![endif]-->',iElems[0]){}\nreturn version>4?version:undefined;}());var isIe6=ieVersion===6,isIe7=ieVersion===7;function isClickOnCheckableElement(element,eventType){if((ko.utils.tagNameLower(element)!==\"input\")||!element.type)return false;if(eventType.toLowerCase()!=\"click\")return false;var inputType=element.type;return(inputType==\"checkbox\")||(inputType==\"radio\");}\nvar cssClassNameRegex=/\\S+/g;var jQueryEventAttachName;function toggleDomNodeCssClass(node,classNames,shouldHaveClass){var addOrRemoveFn;if(classNames){if(typeof node.classList==='object'){addOrRemoveFn=node.classList[shouldHaveClass?'add':'remove'];ko.utils.arrayForEach(classNames.match(cssClassNameRegex),function(className){addOrRemoveFn.call(node.classList,className);});}else if(typeof node.className['baseVal']==='string'){toggleObjectClassPropertyString(node.className,'baseVal',classNames,shouldHaveClass);}else{toggleObjectClassPropertyString(node,'className',classNames,shouldHaveClass);}}}\nfunction toggleObjectClassPropertyString(obj,prop,classNames,shouldHaveClass){var currentClassNames=obj[prop].match(cssClassNameRegex)||[];ko.utils.arrayForEach(classNames.match(cssClassNameRegex),function(className){ko.utils.addOrRemoveItem(currentClassNames,className,shouldHaveClass);});obj[prop]=currentClassNames.join(\" \");}\nreturn{fieldsIncludedWithJsonPost:['authenticity_token',/^__RequestVerificationToken(_.*)?$/],arrayForEach:function(array,action,actionOwner){for(var i=0,j=array.length;i<j;i++){action.call(actionOwner,array[i],i,array);}},arrayIndexOf:typeof Array.prototype.indexOf==\"function\"?function(array,item){return Array.prototype.indexOf.call(array,item);}:function(array,item){for(var i=0,j=array.length;i<j;i++){if(array[i]===item)\nreturn i;}\nreturn-1;},arrayFirst:function(array,predicate,predicateOwner){for(var i=0,j=array.length;i<j;i++){if(predicate.call(predicateOwner,array[i],i,array))\nreturn array[i];}\nreturn undefined;},arrayRemoveItem:function(array,itemToRemove){var index=ko.utils.arrayIndexOf(array,itemToRemove);if(index>0){array.splice(index,1);}\nelse if(index===0){array.shift();}},arrayGetDistinctValues:function(array){var result=[];if(array){ko.utils.arrayForEach(array,function(item){if(ko.utils.arrayIndexOf(result,item)<0)\nresult.push(item);});}\nreturn result;},arrayMap:function(array,mapping,mappingOwner){var result=[];if(array){for(var i=0,j=array.length;i<j;i++)\nresult.push(mapping.call(mappingOwner,array[i],i));}\nreturn result;},arrayFilter:function(array,predicate,predicateOwner){var result=[];if(array){for(var i=0,j=array.length;i<j;i++)\nif(predicate.call(predicateOwner,array[i],i))\nresult.push(array[i]);}\nreturn result;},arrayPushAll:function(array,valuesToPush){if(valuesToPush instanceof Array)\narray.push.apply(array,valuesToPush);else\nfor(var i=0,j=valuesToPush.length;i<j;i++)\narray.push(valuesToPush[i]);return array;},addOrRemoveItem:function(array,value,included){var existingEntryIndex=ko.utils.arrayIndexOf(ko.utils.peekObservable(array),value);if(existingEntryIndex<0){if(included)\narray.push(value);}else{if(!included)\narray.splice(existingEntryIndex,1);}},canSetPrototype:canSetPrototype,extend:extend,setPrototypeOf:setPrototypeOf,setPrototypeOfOrExtend:canSetPrototype?setPrototypeOf:extend,objectForEach:objectForEach,objectMap:function(source,mapping,mappingOwner){if(!source)\nreturn source;var target={};for(var prop in source){if(hasOwnProperty.call(source,prop)){target[prop]=mapping.call(mappingOwner,source[prop],prop,source);}}\nreturn target;},emptyDomNode:function(domNode){while(domNode.firstChild){ko.removeNode(domNode.firstChild);}},moveCleanedNodesToContainerElement:function(nodes){var nodesArray=ko.utils.makeArray(nodes);var templateDocument=(nodesArray[0]&&nodesArray[0].ownerDocument)||document;var container=templateDocument.createElement('div');for(var i=0,j=nodesArray.length;i<j;i++){container.appendChild(ko.cleanNode(nodesArray[i]));}\nreturn container;},cloneNodes:function(nodesArray,shouldCleanNodes){for(var i=0,j=nodesArray.length,newNodesArray=[];i<j;i++){var clonedNode=nodesArray[i].cloneNode(true);newNodesArray.push(shouldCleanNodes?ko.cleanNode(clonedNode):clonedNode);}\nreturn newNodesArray;},setDomNodeChildren:function(domNode,childNodes){ko.utils.emptyDomNode(domNode);if(childNodes){for(var i=0,j=childNodes.length;i<j;i++)\ndomNode.appendChild(childNodes[i]);}},replaceDomNodes:function(nodeToReplaceOrNodeArray,newNodesArray){var nodesToReplaceArray=nodeToReplaceOrNodeArray.nodeType?[nodeToReplaceOrNodeArray]:nodeToReplaceOrNodeArray;if(nodesToReplaceArray.length>0){var insertionPoint=nodesToReplaceArray[0];var parent=insertionPoint.parentNode;for(var i=0,j=newNodesArray.length;i<j;i++)\nparent.insertBefore(newNodesArray[i],insertionPoint);for(var i=0,j=nodesToReplaceArray.length;i<j;i++){ko.removeNode(nodesToReplaceArray[i]);}}},fixUpContinuousNodeArray:function(continuousNodeArray,parentNode){if(continuousNodeArray.length){parentNode=(parentNode.nodeType===8&&parentNode.parentNode)||parentNode;while(continuousNodeArray.length&&continuousNodeArray[0].parentNode!==parentNode)\ncontinuousNodeArray.splice(0,1);while(continuousNodeArray.length>1&&continuousNodeArray[continuousNodeArray.length-1].parentNode!==parentNode)\ncontinuousNodeArray.length--;if(continuousNodeArray.length>1){var current=continuousNodeArray[0],last=continuousNodeArray[continuousNodeArray.length-1];continuousNodeArray.length=0;while(current!==last){continuousNodeArray.push(current);current=current.nextSibling;}\ncontinuousNodeArray.push(last);}}\nreturn continuousNodeArray;},setOptionNodeSelectionState:function(optionNode,isSelected){if(ieVersion<7)\noptionNode.setAttribute(\"selected\",isSelected);else\noptionNode.selected=isSelected;},stringTrim:function(string){return string===null||string===undefined?'':string.trim?string.trim():string.toString().replace(/^[\\s\\xa0]+|[\\s\\xa0]+$/g,'');},stringStartsWith:function(string,startsWith){string=string||\"\";if(startsWith.length>string.length)\nreturn false;return string.substring(0,startsWith.length)===startsWith;},domNodeIsContainedBy:function(node,containedByNode){if(node===containedByNode)\nreturn true;if(node.nodeType===11)\nreturn false;if(containedByNode.contains)\nreturn containedByNode.contains(node.nodeType!==1?node.parentNode:node);if(containedByNode.compareDocumentPosition)\nreturn(containedByNode.compareDocumentPosition(node)&16)==16;while(node&&node!=containedByNode){node=node.parentNode;}\nreturn!!node;},domNodeIsAttachedToDocument:function(node){return ko.utils.domNodeIsContainedBy(node,node.ownerDocument.documentElement);},anyDomNodeIsAttachedToDocument:function(nodes){return!!ko.utils.arrayFirst(nodes,ko.utils.domNodeIsAttachedToDocument);},tagNameLower:function(element){return element&&element.tagName&&element.tagName.toLowerCase();},catchFunctionErrors:function(delegate){return ko['onError']?function(){try{return delegate.apply(this,arguments);}catch(e){ko['onError']&&ko['onError'](e);throw e;}}:delegate;},setTimeout:function(handler,timeout){return setTimeout(ko.utils.catchFunctionErrors(handler),timeout);},deferError:function(error){setTimeout(function(){ko['onError']&&ko['onError'](error);throw error;},0);},registerEventHandler:function(element,eventType,handler){var wrappedHandler=ko.utils.catchFunctionErrors(handler);var mustUseAttachEvent=eventsThatMustBeRegisteredUsingAttachEvent[eventType];if(!ko.options['useOnlyNativeEvents']&&!mustUseAttachEvent&&jQueryInstance){if(!jQueryEventAttachName){jQueryEventAttachName=(typeof jQueryInstance(element)['on']=='function')?'on':'bind';}\njQueryInstance(element)[jQueryEventAttachName](eventType,wrappedHandler);}else if(!mustUseAttachEvent&&typeof element.addEventListener==\"function\")\nelement.addEventListener(eventType,wrappedHandler,false);else if(typeof element.attachEvent!=\"undefined\"){var attachEventHandler=function(event){wrappedHandler.call(element,event);},attachEventName=\"on\"+eventType;element.attachEvent(attachEventName,attachEventHandler);ko.utils.domNodeDisposal.addDisposeCallback(element,function(){element.detachEvent(attachEventName,attachEventHandler);});}else\nthrow new Error(\"Browser doesn't support addEventListener or attachEvent\");},triggerEvent:function(element,eventType){if(!(element&&element.nodeType))\nthrow new Error(\"element must be a DOM node when calling triggerEvent\");var useClickWorkaround=isClickOnCheckableElement(element,eventType);if(!ko.options['useOnlyNativeEvents']&&jQueryInstance&&!useClickWorkaround){jQueryInstance(element)['trigger'](eventType);}else if(typeof document.createEvent==\"function\"){if(typeof element.dispatchEvent==\"function\"){var eventCategory=knownEventTypesByEventName[eventType]||\"HTMLEvents\";var event=document.createEvent(eventCategory);event.initEvent(eventType,true,true,window,0,0,0,0,0,false,false,false,false,0,element);element.dispatchEvent(event);}\nelse\nthrow new Error(\"The supplied element doesn't support dispatchEvent\");}else if(useClickWorkaround&&element.click){element.click();}else if(typeof element.fireEvent!=\"undefined\"){element.fireEvent(\"on\"+eventType);}else{throw new Error(\"Browser doesn't support triggering events\");}},unwrapObservable:function(value){return ko.isObservable(value)?value():value;},peekObservable:function(value){return ko.isObservable(value)?value.peek():value;},toggleDomNodeCssClass:toggleDomNodeCssClass,setTextContent:function(element,textContent){var value=ko.utils.unwrapObservable(textContent);if((value===null)||(value===undefined))\nvalue=\"\";var innerTextNode=ko.virtualElements.firstChild(element);if(!innerTextNode||innerTextNode.nodeType!=3||ko.virtualElements.nextSibling(innerTextNode)){ko.virtualElements.setDomNodeChildren(element,[element.ownerDocument.createTextNode(value)]);}else{innerTextNode.data=value;}\nko.utils.forceRefresh(element);},setElementName:function(element,name){element.name=name;if(ieVersion<=7){try{var escapedName=element.name.replace(/[&<>'\"]/g,function(r){return\"&#\"+r.charCodeAt(0)+\";\";});element.mergeAttributes(document.createElement(\"<input name='\"+escapedName+\"'/>\"),false);}\ncatch(e){}}},forceRefresh:function(node){if(ieVersion>=9){var elem=node.nodeType==1?node:node.parentNode;if(elem.style)\nelem.style.zoom=elem.style.zoom;}},ensureSelectElementIsRenderedCorrectly:function(selectElement){if(ieVersion){var originalWidth=selectElement.style.width;selectElement.style.width=0;selectElement.style.width=originalWidth;}},range:function(min,max){min=ko.utils.unwrapObservable(min);max=ko.utils.unwrapObservable(max);var result=[];for(var i=min;i<=max;i++)\nresult.push(i);return result;},makeArray:function(arrayLikeObject){var result=[];for(var i=0,j=arrayLikeObject.length;i<j;i++){result.push(arrayLikeObject[i]);};return result;},createSymbolOrString:function(identifier){return canUseSymbols?Symbol(identifier):identifier;},isIe6:isIe6,isIe7:isIe7,ieVersion:ieVersion,getFormFields:function(form,fieldName){var fields=ko.utils.makeArray(form.getElementsByTagName(\"input\")).concat(ko.utils.makeArray(form.getElementsByTagName(\"textarea\")));var isMatchingField=(typeof fieldName=='string')?function(field){return field.name===fieldName}:function(field){return fieldName.test(field.name)};var matches=[];for(var i=fields.length-1;i>=0;i--){if(isMatchingField(fields[i]))\nmatches.push(fields[i]);};return matches;},parseJson:function(jsonString){if(typeof jsonString==\"string\"){jsonString=ko.utils.stringTrim(jsonString);if(jsonString){if(JSON&&JSON.parse)\nreturn JSON.parse(jsonString);return(new Function(\"return \"+jsonString))();}}\nreturn null;},stringifyJson:function(data,replacer,space){if(!JSON||!JSON.stringify)\nthrow new Error(\"Cannot find JSON.stringify(). Some browsers (e.g., IE < 8) don't support it natively, but you can overcome this by adding a script reference to json2.js, downloadable from http://www.json.org/json2.js\");return JSON.stringify(ko.utils.unwrapObservable(data),replacer,space);},postJson:function(urlOrForm,data,options){options=options||{};var params=options['params']||{};var includeFields=options['includeFields']||this.fieldsIncludedWithJsonPost;var url=urlOrForm;if((typeof urlOrForm=='object')&&(ko.utils.tagNameLower(urlOrForm)===\"form\")){var originalForm=urlOrForm;url=originalForm.action;for(var i=includeFields.length-1;i>=0;i--){var fields=ko.utils.getFormFields(originalForm,includeFields[i]);for(var j=fields.length-1;j>=0;j--)\nparams[fields[j].name]=fields[j].value;}}\ndata=ko.utils.unwrapObservable(data);var form=document.createElement(\"form\");form.style.display=\"none\";form.action=url;form.method=\"post\";for(var key in data){var input=document.createElement(\"input\");input.type=\"hidden\";input.name=key;input.value=ko.utils.stringifyJson(ko.utils.unwrapObservable(data[key]));form.appendChild(input);}\nobjectForEach(params,function(key,value){var input=document.createElement(\"input\");input.type=\"hidden\";input.name=key;input.value=value;form.appendChild(input);});document.body.appendChild(form);options['submitter']?options['submitter'](form):form.submit();setTimeout(function(){form.parentNode.removeChild(form);},0);}}}());ko.exportSymbol('utils',ko.utils);ko.exportSymbol('utils.arrayForEach',ko.utils.arrayForEach);ko.exportSymbol('utils.arrayFirst',ko.utils.arrayFirst);ko.exportSymbol('utils.arrayFilter',ko.utils.arrayFilter);ko.exportSymbol('utils.arrayGetDistinctValues',ko.utils.arrayGetDistinctValues);ko.exportSymbol('utils.arrayIndexOf',ko.utils.arrayIndexOf);ko.exportSymbol('utils.arrayMap',ko.utils.arrayMap);ko.exportSymbol('utils.arrayPushAll',ko.utils.arrayPushAll);ko.exportSymbol('utils.arrayRemoveItem',ko.utils.arrayRemoveItem);ko.exportSymbol('utils.cloneNodes',ko.utils.cloneNodes);ko.exportSymbol('utils.createSymbolOrString',ko.utils.createSymbolOrString);ko.exportSymbol('utils.extend',ko.utils.extend);ko.exportSymbol('utils.fieldsIncludedWithJsonPost',ko.utils.fieldsIncludedWithJsonPost);ko.exportSymbol('utils.getFormFields',ko.utils.getFormFields);ko.exportSymbol('utils.objectMap',ko.utils.objectMap);ko.exportSymbol('utils.peekObservable',ko.utils.peekObservable);ko.exportSymbol('utils.postJson',ko.utils.postJson);ko.exportSymbol('utils.parseJson',ko.utils.parseJson);ko.exportSymbol('utils.registerEventHandler',ko.utils.registerEventHandler);ko.exportSymbol('utils.stringifyJson',ko.utils.stringifyJson);ko.exportSymbol('utils.range',ko.utils.range);ko.exportSymbol('utils.toggleDomNodeCssClass',ko.utils.toggleDomNodeCssClass);ko.exportSymbol('utils.triggerEvent',ko.utils.triggerEvent);ko.exportSymbol('utils.unwrapObservable',ko.utils.unwrapObservable);ko.exportSymbol('utils.objectForEach',ko.utils.objectForEach);ko.exportSymbol('utils.addOrRemoveItem',ko.utils.addOrRemoveItem);ko.exportSymbol('utils.setTextContent',ko.utils.setTextContent);ko.exportSymbol('unwrap',ko.utils.unwrapObservable);if(!Function.prototype['bind']){Function.prototype['bind']=function(object){var originalFunction=this;if(arguments.length===1){return function(){return originalFunction.apply(object,arguments);};}else{var partialArgs=Array.prototype.slice.call(arguments,1);return function(){var args=partialArgs.slice(0);args.push.apply(args,arguments);return originalFunction.apply(object,args);};}};}\nko.utils.domData=new(function(){var uniqueId=0;var dataStoreKeyExpandoPropertyName=\"__ko__\"+(new Date).getTime();var dataStore={};var getDataForNode,clear;if(!ko.utils.ieVersion){getDataForNode=function(node,createIfNotFound){var dataForNode=node[dataStoreKeyExpandoPropertyName];if(!dataForNode&&createIfNotFound){dataForNode=node[dataStoreKeyExpandoPropertyName]={};}\nreturn dataForNode;};clear=function(node){if(node[dataStoreKeyExpandoPropertyName]){delete node[dataStoreKeyExpandoPropertyName];return true;}\nreturn false;};}else{getDataForNode=function(node,createIfNotFound){var dataStoreKey=node[dataStoreKeyExpandoPropertyName];var hasExistingDataStore=dataStoreKey&&(dataStoreKey!==\"null\")&&dataStore[dataStoreKey];if(!hasExistingDataStore){if(!createIfNotFound)\nreturn undefined;dataStoreKey=node[dataStoreKeyExpandoPropertyName]=\"ko\"+uniqueId++;dataStore[dataStoreKey]={};}\nreturn dataStore[dataStoreKey];};clear=function(node){var dataStoreKey=node[dataStoreKeyExpandoPropertyName];if(dataStoreKey){delete dataStore[dataStoreKey];node[dataStoreKeyExpandoPropertyName]=null;return true;}\nreturn false;};}\nreturn{get:function(node,key){var dataForNode=getDataForNode(node,false);return dataForNode&&dataForNode[key];},set:function(node,key,value){var dataForNode=getDataForNode(node,value!==undefined);dataForNode&&(dataForNode[key]=value);},getOrSet:function(node,key,value){var dataForNode=getDataForNode(node,true);return dataForNode[key]||(dataForNode[key]=value);},clear:clear,nextKey:function(){return(uniqueId++)+dataStoreKeyExpandoPropertyName;}};})();ko.exportSymbol('utils.domData',ko.utils.domData);ko.exportSymbol('utils.domData.clear',ko.utils.domData.clear);ko.utils.domNodeDisposal=new(function(){var domDataKey=ko.utils.domData.nextKey();var cleanableNodeTypes={1:true,8:true,9:true};var cleanableNodeTypesWithDescendants={1:true,9:true};function getDisposeCallbacksCollection(node,createIfNotFound){var allDisposeCallbacks=ko.utils.domData.get(node,domDataKey);if((allDisposeCallbacks===undefined)&&createIfNotFound){allDisposeCallbacks=[];ko.utils.domData.set(node,domDataKey,allDisposeCallbacks);}\nreturn allDisposeCallbacks;}\nfunction destroyCallbacksCollection(node){ko.utils.domData.set(node,domDataKey,undefined);}\nfunction cleanSingleNode(node){var callbacks=getDisposeCallbacksCollection(node,false);if(callbacks){callbacks=callbacks.slice(0);for(var i=0;i<callbacks.length;i++)\ncallbacks[i](node);}\nko.utils.domData.clear(node);ko.utils.domNodeDisposal[\"cleanExternalData\"](node);if(cleanableNodeTypesWithDescendants[node.nodeType]){cleanNodesInList(node.childNodes,true);}}\nfunction cleanNodesInList(nodeList,onlyComments){var cleanedNodes=[],lastCleanedNode;for(var i=0;i<nodeList.length;i++){if(!onlyComments||nodeList[i].nodeType===8){cleanSingleNode(cleanedNodes[cleanedNodes.length]=lastCleanedNode=nodeList[i]);if(nodeList[i]!==lastCleanedNode){while(i--&&ko.utils.arrayIndexOf(cleanedNodes,nodeList[i])==-1){}}}}}\nreturn{addDisposeCallback:function(node,callback){if(typeof callback!=\"function\")\nthrow new Error(\"Callback must be a function\");getDisposeCallbacksCollection(node,true).push(callback);},removeDisposeCallback:function(node,callback){var callbacksCollection=getDisposeCallbacksCollection(node,false);if(callbacksCollection){ko.utils.arrayRemoveItem(callbacksCollection,callback);if(callbacksCollection.length==0)\ndestroyCallbacksCollection(node);}},cleanNode:function(node){ko.dependencyDetection.ignore(function(){if(cleanableNodeTypes[node.nodeType]){cleanSingleNode(node);if(cleanableNodeTypesWithDescendants[node.nodeType]){cleanNodesInList(node.getElementsByTagName(\"*\"));}}});return node;},removeNode:function(node){ko.cleanNode(node);if(node.parentNode)\nnode.parentNode.removeChild(node);},\"cleanExternalData\":function(node){if(jQueryInstance&&(typeof jQueryInstance['cleanData']==\"function\"))\njQueryInstance['cleanData']([node]);}};})();ko.cleanNode=ko.utils.domNodeDisposal.cleanNode;ko.removeNode=ko.utils.domNodeDisposal.removeNode;ko.exportSymbol('cleanNode',ko.cleanNode);ko.exportSymbol('removeNode',ko.removeNode);ko.exportSymbol('utils.domNodeDisposal',ko.utils.domNodeDisposal);ko.exportSymbol('utils.domNodeDisposal.addDisposeCallback',ko.utils.domNodeDisposal.addDisposeCallback);ko.exportSymbol('utils.domNodeDisposal.removeDisposeCallback',ko.utils.domNodeDisposal.removeDisposeCallback);(function(){var none=[0,\"\",\"\"],table=[1,\"<table>\",\"</table>\"],tbody=[2,\"<table><tbody>\",\"</tbody></table>\"],tr=[3,\"<table><tbody><tr>\",\"</tr></tbody></table>\"],select=[1,\"<select multiple='multiple'>\",\"</select>\"],lookup={'thead':table,'tbody':table,'tfoot':table,'tr':tbody,'td':tr,'th':tr,'option':select,'optgroup':select},mayRequireCreateElementHack=ko.utils.ieVersion<=8;function getWrap(tags){var m=tags.match(/^(?:<!--.*?-->\\s*?)*?<([a-z]+)[\\s>]/);return(m&&lookup[m[1]])||none;}\nfunction simpleHtmlParse(html,documentContext){documentContext||(documentContext=document);var windowContext=documentContext['parentWindow']||documentContext['defaultView']||window;var tags=ko.utils.stringTrim(html).toLowerCase(),div=documentContext.createElement(\"div\"),wrap=getWrap(tags),depth=wrap[0];var markup=\"ignored<div>\"+wrap[1]+html+wrap[2]+\"</div>\";if(typeof windowContext['innerShiv']==\"function\"){div.appendChild(windowContext['innerShiv'](markup));}else{if(mayRequireCreateElementHack){documentContext.body.appendChild(div);}\ndiv.innerHTML=markup;if(mayRequireCreateElementHack){div.parentNode.removeChild(div);}}\nwhile(depth--)\ndiv=div.lastChild;return ko.utils.makeArray(div.lastChild.childNodes);}\nfunction jQueryHtmlParse(html,documentContext){if(jQueryInstance['parseHTML']){return jQueryInstance['parseHTML'](html,documentContext)||[];}else{var elems=jQueryInstance['clean']([html],documentContext);if(elems&&elems[0]){var elem=elems[0];while(elem.parentNode&&elem.parentNode.nodeType!==11)\nelem=elem.parentNode;if(elem.parentNode)\nelem.parentNode.removeChild(elem);}\nreturn elems;}}\nko.utils.parseHtmlFragment=function(html,documentContext){return jQueryInstance?jQueryHtmlParse(html,documentContext):simpleHtmlParse(html,documentContext);};ko.utils.parseHtmlForTemplateNodes=function(html,documentContext){var nodes=ko.utils.parseHtmlFragment(html,documentContext);return(nodes.length&&nodes[0].parentElement)||ko.utils.moveCleanedNodesToContainerElement(nodes);};ko.utils.setHtml=function(node,html){ko.utils.emptyDomNode(node);html=ko.utils.unwrapObservable(html);if((html!==null)&&(html!==undefined)){if(typeof html!='string')\nhtml=html.toString();if(jQueryInstance){jQueryInstance(node)['html'](html);}else{var parsedNodes=ko.utils.parseHtmlFragment(html,node.ownerDocument);for(var i=0;i<parsedNodes.length;i++)\nnode.appendChild(parsedNodes[i]);}}};})();ko.exportSymbol('utils.parseHtmlFragment',ko.utils.parseHtmlFragment);ko.exportSymbol('utils.setHtml',ko.utils.setHtml);ko.memoization=(function(){var memos={};function randomMax8HexChars(){return(((1+Math.random())*0x100000000)|0).toString(16).substring(1);}\nfunction generateRandomId(){return randomMax8HexChars()+randomMax8HexChars();}\nfunction findMemoNodes(rootNode,appendToArray){if(!rootNode)\nreturn;if(rootNode.nodeType==8){var memoId=ko.memoization.parseMemoText(rootNode.nodeValue);if(memoId!=null)\nappendToArray.push({domNode:rootNode,memoId:memoId});}else if(rootNode.nodeType==1){for(var i=0,childNodes=rootNode.childNodes,j=childNodes.length;i<j;i++)\nfindMemoNodes(childNodes[i],appendToArray);}}\nreturn{memoize:function(callback){if(typeof callback!=\"function\")\nthrow new Error(\"You can only pass a function to ko.memoization.memoize()\");var memoId=generateRandomId();memos[memoId]=callback;return\"<!--[ko_memo:\"+memoId+\"]-->\";},unmemoize:function(memoId,callbackParams){var callback=memos[memoId];if(callback===undefined)\nthrow new Error(\"Couldn't find any memo with ID \"+memoId+\". Perhaps it's already been unmemoized.\");try{callback.apply(null,callbackParams||[]);return true;}\nfinally{delete memos[memoId];}},unmemoizeDomNodeAndDescendants:function(domNode,extraCallbackParamsArray){var memos=[];findMemoNodes(domNode,memos);for(var i=0,j=memos.length;i<j;i++){var node=memos[i].domNode;var combinedParams=[node];if(extraCallbackParamsArray)\nko.utils.arrayPushAll(combinedParams,extraCallbackParamsArray);ko.memoization.unmemoize(memos[i].memoId,combinedParams);node.nodeValue=\"\";if(node.parentNode)\nnode.parentNode.removeChild(node);}},parseMemoText:function(memoText){var match=memoText.match(/^\\[ko_memo\\:(.*?)\\]$/);return match?match[1]:null;}};})();ko.exportSymbol('memoization',ko.memoization);ko.exportSymbol('memoization.memoize',ko.memoization.memoize);ko.exportSymbol('memoization.unmemoize',ko.memoization.unmemoize);ko.exportSymbol('memoization.parseMemoText',ko.memoization.parseMemoText);ko.exportSymbol('memoization.unmemoizeDomNodeAndDescendants',ko.memoization.unmemoizeDomNodeAndDescendants);ko.tasks=(function(){var scheduler,taskQueue=[],taskQueueLength=0,nextHandle=1,nextIndexToProcess=0;if(window['MutationObserver']){scheduler=(function(callback){var div=document.createElement(\"div\");new MutationObserver(callback).observe(div,{attributes:true});return function(){div.classList.toggle(\"foo\");};})(scheduledProcess);}else if(document&&\"onreadystatechange\"in document.createElement(\"script\")){scheduler=function(callback){var script=document.createElement(\"script\");script.onreadystatechange=function(){script.onreadystatechange=null;document.documentElement.removeChild(script);script=null;callback();};document.documentElement.appendChild(script);};}else{scheduler=function(callback){setTimeout(callback,0);};}\nfunction processTasks(){if(taskQueueLength){var mark=taskQueueLength,countMarks=0;for(var task;nextIndexToProcess<taskQueueLength;){if(task=taskQueue[nextIndexToProcess++]){if(nextIndexToProcess>mark){if(++countMarks>=5000){nextIndexToProcess=taskQueueLength;ko.utils.deferError(Error(\"'Too much recursion' after processing \"+countMarks+\" task groups.\"));break;}\nmark=taskQueueLength;}\ntry{task();}catch(ex){ko.utils.deferError(ex);}}}}}\nfunction scheduledProcess(){processTasks();nextIndexToProcess=taskQueueLength=taskQueue.length=0;}\nfunction scheduleTaskProcessing(){ko.tasks['scheduler'](scheduledProcess);}\nvar tasks={'scheduler':scheduler,schedule:function(func){if(!taskQueueLength){scheduleTaskProcessing();}\ntaskQueue[taskQueueLength++]=func;return nextHandle++;},cancel:function(handle){var index=handle-(nextHandle-taskQueueLength);if(index>=nextIndexToProcess&&index<taskQueueLength){taskQueue[index]=null;}},'resetForTesting':function(){var length=taskQueueLength-nextIndexToProcess;nextIndexToProcess=taskQueueLength=taskQueue.length=0;return length;},runEarly:processTasks};return tasks;})();ko.exportSymbol('tasks',ko.tasks);ko.exportSymbol('tasks.schedule',ko.tasks.schedule);ko.exportSymbol('tasks.runEarly',ko.tasks.runEarly);ko.extenders={'throttle':function(target,timeout){target['throttleEvaluation']=timeout;var writeTimeoutInstance=null;return ko.dependentObservable({'read':target,'write':function(value){clearTimeout(writeTimeoutInstance);writeTimeoutInstance=ko.utils.setTimeout(function(){target(value);},timeout);}});},'rateLimit':function(target,options){var timeout,method,limitFunction;if(typeof options=='number'){timeout=options;}else{timeout=options['timeout'];method=options['method'];}\ntarget._deferUpdates=false;limitFunction=typeof method=='function'?method:method=='notifyWhenChangesStop'?debounce:throttle;target.limit(function(callback){return limitFunction(callback,timeout,options);});},'deferred':function(target,options){if(options!==true){throw new Error('The \\'deferred\\' extender only accepts the value \\'true\\', because it is not supported to turn deferral off once enabled.')}\nif(!target._deferUpdates){target._deferUpdates=true;target.limit(function(callback){var handle,ignoreUpdates=false;return function(){if(!ignoreUpdates){ko.tasks.cancel(handle);handle=ko.tasks.schedule(callback);try{ignoreUpdates=true;target['notifySubscribers'](undefined,'dirty');}finally{ignoreUpdates=false;}}};});}},'notify':function(target,notifyWhen){target[\"equalityComparer\"]=notifyWhen==\"always\"?null:valuesArePrimitiveAndEqual;}};var primitiveTypes={'undefined':1,'boolean':1,'number':1,'string':1};function valuesArePrimitiveAndEqual(a,b){var oldValueIsPrimitive=(a===null)||(typeof(a)in primitiveTypes);return oldValueIsPrimitive?(a===b):false;}\nfunction throttle(callback,timeout){var timeoutInstance;return function(){if(!timeoutInstance){timeoutInstance=ko.utils.setTimeout(function(){timeoutInstance=undefined;callback();},timeout);}};}\nfunction debounce(callback,timeout){var timeoutInstance;return function(){clearTimeout(timeoutInstance);timeoutInstance=ko.utils.setTimeout(callback,timeout);};}\nfunction applyExtenders(requestedExtenders){var target=this;if(requestedExtenders){ko.utils.objectForEach(requestedExtenders,function(key,value){var extenderHandler=ko.extenders[key];if(typeof extenderHandler=='function'){target=extenderHandler(target,value)||target;}});}\nreturn target;}\nko.exportSymbol('extenders',ko.extenders);ko.subscription=function(target,callback,disposeCallback){this._target=target;this._callback=callback;this._disposeCallback=disposeCallback;this._isDisposed=false;this._node=null;this._domNodeDisposalCallback=null;ko.exportProperty(this,'dispose',this.dispose);ko.exportProperty(this,'disposeWhenNodeIsRemoved',this.disposeWhenNodeIsRemoved);};ko.subscription.prototype.dispose=function(){var self=this;if(!self._isDisposed){if(self._domNodeDisposalCallback){ko.utils.domNodeDisposal.removeDisposeCallback(self._node,self._domNodeDisposalCallback);}\nself._isDisposed=true;self._disposeCallback();self._target=self._callback=self._disposeCallback=self._node=self._domNodeDisposalCallback=null;}};ko.subscription.prototype.disposeWhenNodeIsRemoved=function(node){this._node=node;ko.utils.domNodeDisposal.addDisposeCallback(node,this._domNodeDisposalCallback=this.dispose.bind(this));};ko.subscribable=function(){ko.utils.setPrototypeOfOrExtend(this,ko_subscribable_fn);ko_subscribable_fn.init(this);}\nvar defaultEvent=\"change\";function limitNotifySubscribers(value,event){if(!event||event===defaultEvent){this._limitChange(value);}else if(event==='beforeChange'){this._limitBeforeChange(value);}else{this._origNotifySubscribers(value,event);}}\nvar ko_subscribable_fn={init:function(instance){instance._subscriptions={\"change\":[]};instance._versionNumber=1;},subscribe:function(callback,callbackTarget,event){var self=this;event=event||defaultEvent;var boundCallback=callbackTarget?callback.bind(callbackTarget):callback;var subscription=new ko.subscription(self,boundCallback,function(){ko.utils.arrayRemoveItem(self._subscriptions[event],subscription);if(self.afterSubscriptionRemove)\nself.afterSubscriptionRemove(event);});if(self.beforeSubscriptionAdd)\nself.beforeSubscriptionAdd(event);if(!self._subscriptions[event])\nself._subscriptions[event]=[];self._subscriptions[event].push(subscription);return subscription;},\"notifySubscribers\":function(valueToNotify,event){event=event||defaultEvent;if(event===defaultEvent){this.updateVersion();}\nif(this.hasSubscriptionsForEvent(event)){var subs=event===defaultEvent&&this._changeSubscriptions||this._subscriptions[event].slice(0);try{ko.dependencyDetection.begin();for(var i=0,subscription;subscription=subs[i];++i){if(!subscription._isDisposed)\nsubscription._callback(valueToNotify);}}finally{ko.dependencyDetection.end();}}},getVersion:function(){return this._versionNumber;},hasChanged:function(versionToCheck){return this.getVersion()!==versionToCheck;},updateVersion:function(){++this._versionNumber;},limit:function(limitFunction){var self=this,selfIsObservable=ko.isObservable(self),ignoreBeforeChange,notifyNextChange,previousValue,pendingValue,didUpdate,beforeChange='beforeChange';if(!self._origNotifySubscribers){self._origNotifySubscribers=self[\"notifySubscribers\"];self[\"notifySubscribers\"]=limitNotifySubscribers;}\nvar finish=limitFunction(function(){self._notificationIsPending=false;if(selfIsObservable&&pendingValue===self){pendingValue=self._evalIfChanged?self._evalIfChanged():self();}\nvar shouldNotify=notifyNextChange||(didUpdate&&self.isDifferent(previousValue,pendingValue));didUpdate=notifyNextChange=ignoreBeforeChange=false;if(shouldNotify){self._origNotifySubscribers(previousValue=pendingValue);}});self._limitChange=function(value,isDirty){if(!isDirty||!self._notificationIsPending){didUpdate=!isDirty;}\nself._changeSubscriptions=self._subscriptions[defaultEvent].slice(0);self._notificationIsPending=ignoreBeforeChange=true;pendingValue=value;finish();};self._limitBeforeChange=function(value){if(!ignoreBeforeChange){previousValue=value;self._origNotifySubscribers(value,beforeChange);}};self._recordUpdate=function(){didUpdate=true;};self._notifyNextChangeIfValueIsDifferent=function(){if(self.isDifferent(previousValue,self.peek(true))){notifyNextChange=true;}};},hasSubscriptionsForEvent:function(event){return this._subscriptions[event]&&this._subscriptions[event].length;},getSubscriptionsCount:function(event){if(event){return this._subscriptions[event]&&this._subscriptions[event].length||0;}else{var total=0;ko.utils.objectForEach(this._subscriptions,function(eventName,subscriptions){if(eventName!=='dirty')\ntotal+=subscriptions.length;});return total;}},isDifferent:function(oldValue,newValue){return!this['equalityComparer']||!this['equalityComparer'](oldValue,newValue);},toString:function(){return'[object Object]'},extend:applyExtenders};ko.exportProperty(ko_subscribable_fn,'init',ko_subscribable_fn.init);ko.exportProperty(ko_subscribable_fn,'subscribe',ko_subscribable_fn.subscribe);ko.exportProperty(ko_subscribable_fn,'extend',ko_subscribable_fn.extend);ko.exportProperty(ko_subscribable_fn,'getSubscriptionsCount',ko_subscribable_fn.getSubscriptionsCount);if(ko.utils.canSetPrototype){ko.utils.setPrototypeOf(ko_subscribable_fn,Function.prototype);}\nko.subscribable['fn']=ko_subscribable_fn;ko.isSubscribable=function(instance){return instance!=null&&typeof instance.subscribe==\"function\"&&typeof instance[\"notifySubscribers\"]==\"function\";};ko.exportSymbol('subscribable',ko.subscribable);ko.exportSymbol('isSubscribable',ko.isSubscribable);ko.computedContext=ko.dependencyDetection=(function(){var outerFrames=[],currentFrame,lastId=0;function getId(){return++lastId;}\nfunction begin(options){outerFrames.push(currentFrame);currentFrame=options;}\nfunction end(){currentFrame=outerFrames.pop();}\nreturn{begin:begin,end:end,registerDependency:function(subscribable){if(currentFrame){if(!ko.isSubscribable(subscribable))\nthrow new Error(\"Only subscribable things can act as dependencies\");currentFrame.callback.call(currentFrame.callbackTarget,subscribable,subscribable._id||(subscribable._id=getId()));}},ignore:function(callback,callbackTarget,callbackArgs){try{begin();return callback.apply(callbackTarget,callbackArgs||[]);}finally{end();}},getDependenciesCount:function(){if(currentFrame)\nreturn currentFrame.computed.getDependenciesCount();},getDependencies:function(){if(currentFrame)\nreturn currentFrame.computed.getDependencies();},isInitial:function(){if(currentFrame)\nreturn currentFrame.isInitial;},computed:function(){if(currentFrame)\nreturn currentFrame.computed;}};})();ko.exportSymbol('computedContext',ko.computedContext);ko.exportSymbol('computedContext.getDependenciesCount',ko.computedContext.getDependenciesCount);ko.exportSymbol('computedContext.getDependencies',ko.computedContext.getDependencies);ko.exportSymbol('computedContext.isInitial',ko.computedContext.isInitial);ko.exportSymbol('computedContext.registerDependency',ko.computedContext.registerDependency);ko.exportSymbol('ignoreDependencies',ko.ignoreDependencies=ko.dependencyDetection.ignore);var observableLatestValue=ko.utils.createSymbolOrString('_latestValue');ko.observable=function(initialValue){function observable(){if(arguments.length>0){if(observable.isDifferent(observable[observableLatestValue],arguments[0])){observable.valueWillMutate();observable[observableLatestValue]=arguments[0];observable.valueHasMutated();}\nreturn this;}\nelse{ko.dependencyDetection.registerDependency(observable);return observable[observableLatestValue];}}\nobservable[observableLatestValue]=initialValue;if(!ko.utils.canSetPrototype){ko.utils.extend(observable,ko.subscribable['fn']);}\nko.subscribable['fn'].init(observable);ko.utils.setPrototypeOfOrExtend(observable,observableFn);if(ko.options['deferUpdates']){ko.extenders['deferred'](observable,true);}\nreturn observable;}\nvar observableFn={'equalityComparer':valuesArePrimitiveAndEqual,peek:function(){return this[observableLatestValue];},valueHasMutated:function(){this['notifySubscribers'](this[observableLatestValue],'spectate');this['notifySubscribers'](this[observableLatestValue]);},valueWillMutate:function(){this['notifySubscribers'](this[observableLatestValue],'beforeChange');}};if(ko.utils.canSetPrototype){ko.utils.setPrototypeOf(observableFn,ko.subscribable['fn']);}\nvar protoProperty=ko.observable.protoProperty='__ko_proto__';observableFn[protoProperty]=ko.observable;ko.isObservable=function(instance){var proto=typeof instance=='function'&&instance[protoProperty];if(proto&&proto!==observableFn[protoProperty]&&proto!==ko.computed['fn'][protoProperty]){throw Error(\"Invalid object that looks like an observable; possibly from another Knockout instance\");}\nreturn!!proto;};ko.isWriteableObservable=function(instance){return(typeof instance=='function'&&((instance[protoProperty]===observableFn[protoProperty])||(instance[protoProperty]===ko.computed['fn'][protoProperty]&&instance.hasWriteFunction)));};ko.exportSymbol('observable',ko.observable);ko.exportSymbol('isObservable',ko.isObservable);ko.exportSymbol('isWriteableObservable',ko.isWriteableObservable);ko.exportSymbol('isWritableObservable',ko.isWriteableObservable);ko.exportSymbol('observable.fn',observableFn);ko.exportProperty(observableFn,'peek',observableFn.peek);ko.exportProperty(observableFn,'valueHasMutated',observableFn.valueHasMutated);ko.exportProperty(observableFn,'valueWillMutate',observableFn.valueWillMutate);ko.observableArray=function(initialValues){initialValues=initialValues||[];if(typeof initialValues!='object'||!('length'in initialValues))\nthrow new Error(\"The argument passed when initializing an observable array must be an array, or null, or undefined.\");var result=ko.observable(initialValues);ko.utils.setPrototypeOfOrExtend(result,ko.observableArray['fn']);return result.extend({'trackArrayChanges':true});};ko.observableArray['fn']={'remove':function(valueOrPredicate){var underlyingArray=this.peek();var removedValues=[];var predicate=typeof valueOrPredicate==\"function\"&&!ko.isObservable(valueOrPredicate)?valueOrPredicate:function(value){return value===valueOrPredicate;};for(var i=0;i<underlyingArray.length;i++){var value=underlyingArray[i];if(predicate(value)){if(removedValues.length===0){this.valueWillMutate();}\nif(underlyingArray[i]!==value){throw Error(\"Array modified during remove; cannot remove item\");}\nremovedValues.push(value);underlyingArray.splice(i,1);i--;}}\nif(removedValues.length){this.valueHasMutated();}\nreturn removedValues;},'removeAll':function(arrayOfValues){if(arrayOfValues===undefined){var underlyingArray=this.peek();var allValues=underlyingArray.slice(0);this.valueWillMutate();underlyingArray.splice(0,underlyingArray.length);this.valueHasMutated();return allValues;}\nif(!arrayOfValues)\nreturn[];return this['remove'](function(value){return ko.utils.arrayIndexOf(arrayOfValues,value)>=0;});},'destroy':function(valueOrPredicate){var underlyingArray=this.peek();var predicate=typeof valueOrPredicate==\"function\"&&!ko.isObservable(valueOrPredicate)?valueOrPredicate:function(value){return value===valueOrPredicate;};this.valueWillMutate();for(var i=underlyingArray.length-1;i>=0;i--){var value=underlyingArray[i];if(predicate(value))\nvalue[\"_destroy\"]=true;}\nthis.valueHasMutated();},'destroyAll':function(arrayOfValues){if(arrayOfValues===undefined)\nreturn this['destroy'](function(){return true});if(!arrayOfValues)\nreturn[];return this['destroy'](function(value){return ko.utils.arrayIndexOf(arrayOfValues,value)>=0;});},'indexOf':function(item){var underlyingArray=this();return ko.utils.arrayIndexOf(underlyingArray,item);},'replace':function(oldItem,newItem){var index=this['indexOf'](oldItem);if(index>=0){this.valueWillMutate();this.peek()[index]=newItem;this.valueHasMutated();}},'sorted':function(compareFunction){var arrayCopy=this().slice(0);return compareFunction?arrayCopy.sort(compareFunction):arrayCopy.sort();},'reversed':function(){return this().slice(0).reverse();}};if(ko.utils.canSetPrototype){ko.utils.setPrototypeOf(ko.observableArray['fn'],ko.observable['fn']);}\nko.utils.arrayForEach([\"pop\",\"push\",\"reverse\",\"shift\",\"sort\",\"splice\",\"unshift\"],function(methodName){ko.observableArray['fn'][methodName]=function(){var underlyingArray=this.peek();this.valueWillMutate();this.cacheDiffForKnownOperation(underlyingArray,methodName,arguments);var methodCallResult=underlyingArray[methodName].apply(underlyingArray,arguments);this.valueHasMutated();return methodCallResult===underlyingArray?this:methodCallResult;};});ko.utils.arrayForEach([\"slice\"],function(methodName){ko.observableArray['fn'][methodName]=function(){var underlyingArray=this();return underlyingArray[methodName].apply(underlyingArray,arguments);};});ko.isObservableArray=function(instance){return ko.isObservable(instance)&&typeof instance[\"remove\"]==\"function\"&&typeof instance[\"push\"]==\"function\";};ko.exportSymbol('observableArray',ko.observableArray);ko.exportSymbol('isObservableArray',ko.isObservableArray);var arrayChangeEventName='arrayChange';ko.extenders['trackArrayChanges']=function(target,options){target.compareArrayOptions={};if(options&&typeof options==\"object\"){ko.utils.extend(target.compareArrayOptions,options);}\ntarget.compareArrayOptions['sparse']=true;if(target.cacheDiffForKnownOperation){return;}\nvar trackingChanges=false,cachedDiff=null,changeSubscription,spectateSubscription,pendingChanges=0,previousContents,underlyingBeforeSubscriptionAddFunction=target.beforeSubscriptionAdd,underlyingAfterSubscriptionRemoveFunction=target.afterSubscriptionRemove;target.beforeSubscriptionAdd=function(event){if(underlyingBeforeSubscriptionAddFunction){underlyingBeforeSubscriptionAddFunction.call(target,event);}\nif(event===arrayChangeEventName){trackChanges();}};target.afterSubscriptionRemove=function(event){if(underlyingAfterSubscriptionRemoveFunction){underlyingAfterSubscriptionRemoveFunction.call(target,event);}\nif(event===arrayChangeEventName&&!target.hasSubscriptionsForEvent(arrayChangeEventName)){if(changeSubscription){changeSubscription.dispose();}\nif(spectateSubscription){spectateSubscription.dispose();}\nspectateSubscription=changeSubscription=null;trackingChanges=false;previousContents=undefined;}};function trackChanges(){if(trackingChanges){notifyChanges();return;}\ntrackingChanges=true;spectateSubscription=target.subscribe(function(){++pendingChanges;},null,\"spectate\");previousContents=[].concat(target.peek()||[]);cachedDiff=null;changeSubscription=target.subscribe(notifyChanges);function notifyChanges(){if(pendingChanges){var currentContents=[].concat(target.peek()||[]),changes;if(target.hasSubscriptionsForEvent(arrayChangeEventName)){changes=getChanges(previousContents,currentContents);}\npreviousContents=currentContents;cachedDiff=null;pendingChanges=0;if(changes&&changes.length){target['notifySubscribers'](changes,arrayChangeEventName);}}}}\nfunction getChanges(previousContents,currentContents){if(!cachedDiff||pendingChanges>1){cachedDiff=ko.utils.compareArrays(previousContents,currentContents,target.compareArrayOptions);}\nreturn cachedDiff;}\ntarget.cacheDiffForKnownOperation=function(rawArray,operationName,args){if(!trackingChanges||pendingChanges){return;}\nvar diff=[],arrayLength=rawArray.length,argsLength=args.length,offset=0;function pushDiff(status,value,index){return diff[diff.length]={'status':status,'value':value,'index':index};}\nswitch(operationName){case'push':offset=arrayLength;case'unshift':for(var index=0;index<argsLength;index++){pushDiff('added',args[index],offset+index);}\nbreak;case'pop':offset=arrayLength-1;case'shift':if(arrayLength){pushDiff('deleted',rawArray[offset],offset);}\nbreak;case'splice':var startIndex=Math.min(Math.max(0,args[0]<0?arrayLength+args[0]:args[0]),arrayLength),endDeleteIndex=argsLength===1?arrayLength:Math.min(startIndex+(args[1]||0),arrayLength),endAddIndex=startIndex+argsLength-2,endIndex=Math.max(endDeleteIndex,endAddIndex),additions=[],deletions=[];for(var index=startIndex,argsIndex=2;index<endIndex;++index,++argsIndex){if(index<endDeleteIndex)\ndeletions.push(pushDiff('deleted',rawArray[index],index));if(index<endAddIndex)\nadditions.push(pushDiff('added',args[argsIndex],index));}\nko.utils.findMovesInArrayComparison(deletions,additions);break;default:return;}\ncachedDiff=diff;};};var computedState=ko.utils.createSymbolOrString('_state');ko.computed=ko.dependentObservable=function(evaluatorFunctionOrOptions,evaluatorFunctionTarget,options){if(typeof evaluatorFunctionOrOptions===\"object\"){options=evaluatorFunctionOrOptions;}else{options=options||{};if(evaluatorFunctionOrOptions){options[\"read\"]=evaluatorFunctionOrOptions;}}\nif(typeof options[\"read\"]!=\"function\")\nthrow Error(\"Pass a function that returns the value of the ko.computed\");var writeFunction=options[\"write\"];var state={latestValue:undefined,isStale:true,isDirty:true,isBeingEvaluated:false,suppressDisposalUntilDisposeWhenReturnsFalse:false,isDisposed:false,pure:false,isSleeping:false,readFunction:options[\"read\"],evaluatorFunctionTarget:evaluatorFunctionTarget||options[\"owner\"],disposeWhenNodeIsRemoved:options[\"disposeWhenNodeIsRemoved\"]||options.disposeWhenNodeIsRemoved||null,disposeWhen:options[\"disposeWhen\"]||options.disposeWhen,domNodeDisposalCallback:null,dependencyTracking:{},dependenciesCount:0,evaluationTimeoutInstance:null};function computedObservable(){if(arguments.length>0){if(typeof writeFunction===\"function\"){writeFunction.apply(state.evaluatorFunctionTarget,arguments);}else{throw new Error(\"Cannot write a value to a ko.computed unless you specify a 'write' option. If you wish to read the current value, don't pass any parameters.\");}\nreturn this;}else{if(!state.isDisposed){ko.dependencyDetection.registerDependency(computedObservable);}\nif(state.isDirty||(state.isSleeping&&computedObservable.haveDependenciesChanged())){computedObservable.evaluateImmediate();}\nreturn state.latestValue;}}\ncomputedObservable[computedState]=state;computedObservable.hasWriteFunction=typeof writeFunction===\"function\";if(!ko.utils.canSetPrototype){ko.utils.extend(computedObservable,ko.subscribable['fn']);}\nko.subscribable['fn'].init(computedObservable);ko.utils.setPrototypeOfOrExtend(computedObservable,computedFn);if(options['pure']){state.pure=true;state.isSleeping=true;ko.utils.extend(computedObservable,pureComputedOverrides);}else if(options['deferEvaluation']){ko.utils.extend(computedObservable,deferEvaluationOverrides);}\nif(ko.options['deferUpdates']){ko.extenders['deferred'](computedObservable,true);}\nif(DEBUG){computedObservable[\"_options\"]=options;}\nif(state.disposeWhenNodeIsRemoved){state.suppressDisposalUntilDisposeWhenReturnsFalse=true;if(!state.disposeWhenNodeIsRemoved.nodeType){state.disposeWhenNodeIsRemoved=null;}}\nif(!state.isSleeping&&!options['deferEvaluation']){computedObservable.evaluateImmediate();}\nif(state.disposeWhenNodeIsRemoved&&computedObservable.isActive()){ko.utils.domNodeDisposal.addDisposeCallback(state.disposeWhenNodeIsRemoved,state.domNodeDisposalCallback=function(){computedObservable.dispose();});}\nreturn computedObservable;};function computedDisposeDependencyCallback(id,entryToDispose){if(entryToDispose!==null&&entryToDispose.dispose){entryToDispose.dispose();}}\nfunction computedBeginDependencyDetectionCallback(subscribable,id){var computedObservable=this.computedObservable,state=computedObservable[computedState];if(!state.isDisposed){if(this.disposalCount&&this.disposalCandidates[id]){computedObservable.addDependencyTracking(id,subscribable,this.disposalCandidates[id]);this.disposalCandidates[id]=null;--this.disposalCount;}else if(!state.dependencyTracking[id]){computedObservable.addDependencyTracking(id,subscribable,state.isSleeping?{_target:subscribable}:computedObservable.subscribeToDependency(subscribable));}\nif(subscribable._notificationIsPending){subscribable._notifyNextChangeIfValueIsDifferent();}}}\nvar computedFn={\"equalityComparer\":valuesArePrimitiveAndEqual,getDependenciesCount:function(){return this[computedState].dependenciesCount;},getDependencies:function(){var dependencyTracking=this[computedState].dependencyTracking,dependentObservables=[];ko.utils.objectForEach(dependencyTracking,function(id,dependency){dependentObservables[dependency._order]=dependency._target;});return dependentObservables;},hasAncestorDependency:function(obs){if(!this[computedState].dependenciesCount){return false;}\nvar dependencies=this.getDependencies();if(ko.utils.arrayIndexOf(dependencies,obs)!==-1){return true;}\nreturn!!ko.utils.arrayFirst(dependencies,function(dep){return dep.hasAncestorDependency&&dep.hasAncestorDependency(obs);});},addDependencyTracking:function(id,target,trackingObj){if(this[computedState].pure&&target===this){throw Error(\"A 'pure' computed must not be called recursively\");}\nthis[computedState].dependencyTracking[id]=trackingObj;trackingObj._order=this[computedState].dependenciesCount++;trackingObj._version=target.getVersion();},haveDependenciesChanged:function(){var id,dependency,dependencyTracking=this[computedState].dependencyTracking;for(id in dependencyTracking){if(Object.prototype.hasOwnProperty.call(dependencyTracking,id)){dependency=dependencyTracking[id];if((this._evalDelayed&&dependency._target._notificationIsPending)||dependency._target.hasChanged(dependency._version)){return true;}}}},markDirty:function(){if(this._evalDelayed&&!this[computedState].isBeingEvaluated){this._evalDelayed(false);}},isActive:function(){var state=this[computedState];return state.isDirty||state.dependenciesCount>0;},respondToChange:function(){if(!this._notificationIsPending){this.evaluatePossiblyAsync();}else if(this[computedState].isDirty){this[computedState].isStale=true;}},subscribeToDependency:function(target){if(target._deferUpdates){var dirtySub=target.subscribe(this.markDirty,this,'dirty'),changeSub=target.subscribe(this.respondToChange,this);return{_target:target,dispose:function(){dirtySub.dispose();changeSub.dispose();}};}else{return target.subscribe(this.evaluatePossiblyAsync,this);}},evaluatePossiblyAsync:function(){var computedObservable=this,throttleEvaluationTimeout=computedObservable['throttleEvaluation'];if(throttleEvaluationTimeout&&throttleEvaluationTimeout>=0){clearTimeout(this[computedState].evaluationTimeoutInstance);this[computedState].evaluationTimeoutInstance=ko.utils.setTimeout(function(){computedObservable.evaluateImmediate(true);},throttleEvaluationTimeout);}else if(computedObservable._evalDelayed){computedObservable._evalDelayed(true);}else{computedObservable.evaluateImmediate(true);}},evaluateImmediate:function(notifyChange){var computedObservable=this,state=computedObservable[computedState],disposeWhen=state.disposeWhen,changed=false;if(state.isBeingEvaluated){return;}\nif(state.isDisposed){return;}\nif(state.disposeWhenNodeIsRemoved&&!ko.utils.domNodeIsAttachedToDocument(state.disposeWhenNodeIsRemoved)||disposeWhen&&disposeWhen()){if(!state.suppressDisposalUntilDisposeWhenReturnsFalse){computedObservable.dispose();return;}}else{state.suppressDisposalUntilDisposeWhenReturnsFalse=false;}\nstate.isBeingEvaluated=true;try{changed=this.evaluateImmediate_CallReadWithDependencyDetection(notifyChange);}finally{state.isBeingEvaluated=false;}\nreturn changed;},evaluateImmediate_CallReadWithDependencyDetection:function(notifyChange){var computedObservable=this,state=computedObservable[computedState],changed=false;var isInitial=state.pure?undefined:!state.dependenciesCount,dependencyDetectionContext={computedObservable:computedObservable,disposalCandidates:state.dependencyTracking,disposalCount:state.dependenciesCount};ko.dependencyDetection.begin({callbackTarget:dependencyDetectionContext,callback:computedBeginDependencyDetectionCallback,computed:computedObservable,isInitial:isInitial});state.dependencyTracking={};state.dependenciesCount=0;var newValue=this.evaluateImmediate_CallReadThenEndDependencyDetection(state,dependencyDetectionContext);if(!state.dependenciesCount){computedObservable.dispose();changed=true;}else{changed=computedObservable.isDifferent(state.latestValue,newValue);}\nif(changed){if(!state.isSleeping){computedObservable[\"notifySubscribers\"](state.latestValue,\"beforeChange\");}else{computedObservable.updateVersion();}\nstate.latestValue=newValue;if(DEBUG)computedObservable._latestValue=newValue;computedObservable[\"notifySubscribers\"](state.latestValue,\"spectate\");if(!state.isSleeping&&notifyChange){computedObservable[\"notifySubscribers\"](state.latestValue);}\nif(computedObservable._recordUpdate){computedObservable._recordUpdate();}}\nif(isInitial){computedObservable[\"notifySubscribers\"](state.latestValue,\"awake\");}\nreturn changed;},evaluateImmediate_CallReadThenEndDependencyDetection:function(state,dependencyDetectionContext){try{var readFunction=state.readFunction;return state.evaluatorFunctionTarget?readFunction.call(state.evaluatorFunctionTarget):readFunction();}finally{ko.dependencyDetection.end();if(dependencyDetectionContext.disposalCount&&!state.isSleeping){ko.utils.objectForEach(dependencyDetectionContext.disposalCandidates,computedDisposeDependencyCallback);}\nstate.isStale=state.isDirty=false;}},peek:function(evaluate){var state=this[computedState];if((state.isDirty&&(evaluate||!state.dependenciesCount))||(state.isSleeping&&this.haveDependenciesChanged())){this.evaluateImmediate();}\nreturn state.latestValue;},limit:function(limitFunction){ko.subscribable['fn'].limit.call(this,limitFunction);this._evalIfChanged=function(){if(!this[computedState].isSleeping){if(this[computedState].isStale){this.evaluateImmediate();}else{this[computedState].isDirty=false;}}\nreturn this[computedState].latestValue;};this._evalDelayed=function(isChange){this._limitBeforeChange(this[computedState].latestValue);this[computedState].isDirty=true;if(isChange){this[computedState].isStale=true;}\nthis._limitChange(this,!isChange);};},dispose:function(){var state=this[computedState];if(!state.isSleeping&&state.dependencyTracking){ko.utils.objectForEach(state.dependencyTracking,function(id,dependency){if(dependency.dispose)\ndependency.dispose();});}\nif(state.disposeWhenNodeIsRemoved&&state.domNodeDisposalCallback){ko.utils.domNodeDisposal.removeDisposeCallback(state.disposeWhenNodeIsRemoved,state.domNodeDisposalCallback);}\nstate.dependencyTracking=undefined;state.dependenciesCount=0;state.isDisposed=true;state.isStale=false;state.isDirty=false;state.isSleeping=false;state.disposeWhenNodeIsRemoved=undefined;state.disposeWhen=undefined;state.readFunction=undefined;if(!this.hasWriteFunction){state.evaluatorFunctionTarget=undefined;}}};var pureComputedOverrides={beforeSubscriptionAdd:function(event){var computedObservable=this,state=computedObservable[computedState];if(!state.isDisposed&&state.isSleeping&&event=='change'){state.isSleeping=false;if(state.isStale||computedObservable.haveDependenciesChanged()){state.dependencyTracking=null;state.dependenciesCount=0;if(computedObservable.evaluateImmediate()){computedObservable.updateVersion();}}else{var dependenciesOrder=[];ko.utils.objectForEach(state.dependencyTracking,function(id,dependency){dependenciesOrder[dependency._order]=id;});ko.utils.arrayForEach(dependenciesOrder,function(id,order){var dependency=state.dependencyTracking[id],subscription=computedObservable.subscribeToDependency(dependency._target);subscription._order=order;subscription._version=dependency._version;state.dependencyTracking[id]=subscription;});if(computedObservable.haveDependenciesChanged()){if(computedObservable.evaluateImmediate()){computedObservable.updateVersion();}}}\nif(!state.isDisposed){computedObservable[\"notifySubscribers\"](state.latestValue,\"awake\");}}},afterSubscriptionRemove:function(event){var state=this[computedState];if(!state.isDisposed&&event=='change'&&!this.hasSubscriptionsForEvent('change')){ko.utils.objectForEach(state.dependencyTracking,function(id,dependency){if(dependency.dispose){state.dependencyTracking[id]={_target:dependency._target,_order:dependency._order,_version:dependency._version};dependency.dispose();}});state.isSleeping=true;this[\"notifySubscribers\"](undefined,\"asleep\");}},getVersion:function(){var state=this[computedState];if(state.isSleeping&&(state.isStale||this.haveDependenciesChanged())){this.evaluateImmediate();}\nreturn ko.subscribable['fn'].getVersion.call(this);}};var deferEvaluationOverrides={beforeSubscriptionAdd:function(event){if(event=='change'||event=='beforeChange'){this.peek();}}};if(ko.utils.canSetPrototype){ko.utils.setPrototypeOf(computedFn,ko.subscribable['fn']);}\nvar protoProp=ko.observable.protoProperty;computedFn[protoProp]=ko.computed;ko.isComputed=function(instance){return(typeof instance=='function'&&instance[protoProp]===computedFn[protoProp]);};ko.isPureComputed=function(instance){return ko.isComputed(instance)&&instance[computedState]&&instance[computedState].pure;};ko.exportSymbol('computed',ko.computed);ko.exportSymbol('dependentObservable',ko.computed);ko.exportSymbol('isComputed',ko.isComputed);ko.exportSymbol('isPureComputed',ko.isPureComputed);ko.exportSymbol('computed.fn',computedFn);ko.exportProperty(computedFn,'peek',computedFn.peek);ko.exportProperty(computedFn,'dispose',computedFn.dispose);ko.exportProperty(computedFn,'isActive',computedFn.isActive);ko.exportProperty(computedFn,'getDependenciesCount',computedFn.getDependenciesCount);ko.exportProperty(computedFn,'getDependencies',computedFn.getDependencies);ko.pureComputed=function(evaluatorFunctionOrOptions,evaluatorFunctionTarget){if(typeof evaluatorFunctionOrOptions==='function'){return ko.computed(evaluatorFunctionOrOptions,evaluatorFunctionTarget,{'pure':true});}else{evaluatorFunctionOrOptions=ko.utils.extend({},evaluatorFunctionOrOptions);evaluatorFunctionOrOptions['pure']=true;return ko.computed(evaluatorFunctionOrOptions,evaluatorFunctionTarget);}}\nko.exportSymbol('pureComputed',ko.pureComputed);(function(){var maxNestedObservableDepth=10;ko.toJS=function(rootObject){if(arguments.length==0)\nthrow new Error(\"When calling ko.toJS, pass the object you want to convert.\");return mapJsObjectGraph(rootObject,function(valueToMap){for(var i=0;ko.isObservable(valueToMap)&&(i<maxNestedObservableDepth);i++)\nvalueToMap=valueToMap();return valueToMap;});};ko.toJSON=function(rootObject,replacer,space){var plainJavaScriptObject=ko.toJS(rootObject);return ko.utils.stringifyJson(plainJavaScriptObject,replacer,space);};function mapJsObjectGraph(rootObject,mapInputCallback,visitedObjects){visitedObjects=visitedObjects||new objectLookup();rootObject=mapInputCallback(rootObject);var canHaveProperties=(typeof rootObject==\"object\")&&(rootObject!==null)&&(rootObject!==undefined)&&(!(rootObject instanceof RegExp))&&(!(rootObject instanceof Date))&&(!(rootObject instanceof String))&&(!(rootObject instanceof Number))&&(!(rootObject instanceof Boolean));if(!canHaveProperties)\nreturn rootObject;var outputProperties=rootObject instanceof Array?[]:{};visitedObjects.save(rootObject,outputProperties);visitPropertiesOrArrayEntries(rootObject,function(indexer){var propertyValue=mapInputCallback(rootObject[indexer]);switch(typeof propertyValue){case\"boolean\":case\"number\":case\"string\":case\"function\":outputProperties[indexer]=propertyValue;break;case\"object\":case\"undefined\":var previouslyMappedValue=visitedObjects.get(propertyValue);outputProperties[indexer]=(previouslyMappedValue!==undefined)?previouslyMappedValue:mapJsObjectGraph(propertyValue,mapInputCallback,visitedObjects);break;}});return outputProperties;}\nfunction visitPropertiesOrArrayEntries(rootObject,visitorCallback){if(rootObject instanceof Array){for(var i=0;i<rootObject.length;i++)\nvisitorCallback(i);if(typeof rootObject['toJSON']=='function')\nvisitorCallback('toJSON');}else{for(var propertyName in rootObject){visitorCallback(propertyName);}}};function objectLookup(){this.keys=[];this.values=[];};objectLookup.prototype={constructor:objectLookup,save:function(key,value){var existingIndex=ko.utils.arrayIndexOf(this.keys,key);if(existingIndex>=0)\nthis.values[existingIndex]=value;else{this.keys.push(key);this.values.push(value);}},get:function(key){var existingIndex=ko.utils.arrayIndexOf(this.keys,key);return(existingIndex>=0)?this.values[existingIndex]:undefined;}};})();ko.exportSymbol('toJS',ko.toJS);ko.exportSymbol('toJSON',ko.toJSON);ko.when=function(predicate,callback,context){function kowhen(resolve){var observable=ko.pureComputed(predicate,context).extend({notify:'always'});var subscription=observable.subscribe(function(value){if(value){subscription.dispose();resolve(value);}});observable['notifySubscribers'](observable.peek());return subscription;}\nif(typeof Promise===\"function\"&&!callback){return new Promise(kowhen);}else{return kowhen(callback.bind(context));}};ko.exportSymbol('when',ko.when);(function(){var hasDomDataExpandoProperty='__ko__hasDomDataOptionValue__';ko.selectExtensions={readValue:function(element){switch(ko.utils.tagNameLower(element)){case'option':if(element[hasDomDataExpandoProperty]===true)\nreturn ko.utils.domData.get(element,ko.bindingHandlers.options.optionValueDomDataKey);return ko.utils.ieVersion<=7?(element.getAttributeNode('value')&&element.getAttributeNode('value').specified?element.value:element.text):element.value;case'select':return element.selectedIndex>=0?ko.selectExtensions.readValue(element.options[element.selectedIndex]):undefined;default:return element.value;}},writeValue:function(element,value,allowUnset){switch(ko.utils.tagNameLower(element)){case'option':if(typeof value===\"string\"){ko.utils.domData.set(element,ko.bindingHandlers.options.optionValueDomDataKey,undefined);if(hasDomDataExpandoProperty in element){delete element[hasDomDataExpandoProperty];}\nelement.value=value;}\nelse{ko.utils.domData.set(element,ko.bindingHandlers.options.optionValueDomDataKey,value);element[hasDomDataExpandoProperty]=true;element.value=typeof value===\"number\"?value:\"\";}\nbreak;case'select':if(value===\"\"||value===null)\nvalue=undefined;var selection=-1;for(var i=0,n=element.options.length,optionValue;i<n;++i){optionValue=ko.selectExtensions.readValue(element.options[i]);if(optionValue==value||(optionValue===\"\"&&value===undefined)){selection=i;break;}}\nif(allowUnset||selection>=0||(value===undefined&&element.size>1)){element.selectedIndex=selection;if(ko.utils.ieVersion===6){ko.utils.setTimeout(function(){element.selectedIndex=selection;},0);}}\nbreak;default:if((value===null)||(value===undefined))\nvalue=\"\";element.value=value;break;}}};})();ko.exportSymbol('selectExtensions',ko.selectExtensions);ko.exportSymbol('selectExtensions.readValue',ko.selectExtensions.readValue);ko.exportSymbol('selectExtensions.writeValue',ko.selectExtensions.writeValue);ko.expressionRewriting=(function(){var javaScriptReservedWords=[\"true\",\"false\",\"null\",\"undefined\"];var javaScriptAssignmentTarget=/^(?:[$_a-z][$\\w]*|(.+)(\\.\\s*[$_a-z][$\\w]*|\\[.+\\]))$/i;function getWriteableValue(expression){if(ko.utils.arrayIndexOf(javaScriptReservedWords,expression)>=0)\nreturn false;var match=expression.match(javaScriptAssignmentTarget);return match===null?false:match[1]?('Object('+match[1]+')'+match[2]):expression;}\nvar specials=',\"\\'`{}()/:[\\\\]',bindingToken=RegExp(['\"(?:\\\\\\\\.|[^\"])*\"',\"'(?:\\\\\\\\.|[^'])*'\",\"`(?:\\\\\\\\.|[^`])*`\",\"/\\\\*(?:[^*]|\\\\*+[^*/])*\\\\*+/\",\"//.*\\n\",'/(?:\\\\\\\\.|[^/])+/\\w*','[^\\\\s:,/][^'+specials+']*[^\\\\s'+specials+']','[^\\\\s]'].join('|'),'g'),divisionLookBehind=/[\\])\"'A-Za-z0-9_$]+$/,keywordRegexLookBehind={'in':1,'return':1,'typeof':1};function parseObjectLiteral(objectLiteralString){var str=ko.utils.stringTrim(objectLiteralString);if(str.charCodeAt(0)===123)str=str.slice(1,-1);str+=\"\\n,\";var result=[],toks=str.match(bindingToken),key,values=[],depth=0;if(toks.length>1){for(var i=0,tok;tok=toks[i];++i){var c=tok.charCodeAt(0);if(c===44){if(depth<=0){result.push((key&&values.length)?{key:key,value:values.join('')}:{'unknown':key||values.join('')});key=depth=0;values=[];continue;}}else if(c===58){if(!depth&&!key&&values.length===1){key=values.pop();continue;}}else if(c===47&&tok.length>1&&(tok.charCodeAt(1)===47||tok.charCodeAt(1)===42)){continue;}else if(c===47&&i&&tok.length>1){var match=toks[i-1].match(divisionLookBehind);if(match&&!keywordRegexLookBehind[match[0]]){str=str.substr(str.indexOf(tok)+1);toks=str.match(bindingToken);i=-1;tok='/';}}else if(c===40||c===123||c===91){++depth;}else if(c===41||c===125||c===93){--depth;}else if(!key&&!values.length&&(c===34||c===39)){tok=tok.slice(1,-1);}\nvalues.push(tok);}\nif(depth>0){throw Error(\"Unbalanced parentheses, braces, or brackets\");}}\nreturn result;}\nvar twoWayBindings={};function preProcessBindings(bindingsStringOrKeyValueArray,bindingOptions){bindingOptions=bindingOptions||{};function processKeyValue(key,val){var writableVal;function callPreprocessHook(obj){return(obj&&obj['preprocess'])?(val=obj['preprocess'](val,key,processKeyValue)):true;}\nif(!bindingParams){if(!callPreprocessHook(ko['getBindingHandler'](key)))\nreturn;if(twoWayBindings[key]&&(writableVal=getWriteableValue(val))){var writeKey=typeof twoWayBindings[key]=='string'?twoWayBindings[key]:key;propertyAccessorResultStrings.push(\"'\"+writeKey+\"':function(_z){\"+writableVal+\"=_z}\");}}\nif(makeValueAccessors){val='function(){return '+val+' }';}\nresultStrings.push(\"'\"+key+\"':\"+val);}\nvar resultStrings=[],propertyAccessorResultStrings=[],makeValueAccessors=bindingOptions['valueAccessors'],bindingParams=bindingOptions['bindingParams'],keyValueArray=typeof bindingsStringOrKeyValueArray===\"string\"?parseObjectLiteral(bindingsStringOrKeyValueArray):bindingsStringOrKeyValueArray;ko.utils.arrayForEach(keyValueArray,function(keyValue){processKeyValue(keyValue.key||keyValue['unknown'],keyValue.value);});if(propertyAccessorResultStrings.length)\nprocessKeyValue('_ko_property_writers',\"{\"+propertyAccessorResultStrings.join(\",\")+\" }\");return resultStrings.join(\",\");}\nreturn{bindingRewriteValidators:[],twoWayBindings:twoWayBindings,parseObjectLiteral:parseObjectLiteral,preProcessBindings:preProcessBindings,keyValueArrayContainsKey:function(keyValueArray,key){for(var i=0;i<keyValueArray.length;i++)\nif(keyValueArray[i]['key']==key)\nreturn true;return false;},writeValueToProperty:function(property,allBindings,key,value,checkIfDifferent){if(!property||!ko.isObservable(property)){var propWriters=allBindings.get('_ko_property_writers');if(propWriters&&propWriters[key])\npropWriters[key](value);}else if(ko.isWriteableObservable(property)&&(!checkIfDifferent||property.peek()!==value)){property(value);}}};})();ko.exportSymbol('expressionRewriting',ko.expressionRewriting);ko.exportSymbol('expressionRewriting.bindingRewriteValidators',ko.expressionRewriting.bindingRewriteValidators);ko.exportSymbol('expressionRewriting.parseObjectLiteral',ko.expressionRewriting.parseObjectLiteral);ko.exportSymbol('expressionRewriting.preProcessBindings',ko.expressionRewriting.preProcessBindings);ko.exportSymbol('expressionRewriting._twoWayBindings',ko.expressionRewriting.twoWayBindings);ko.exportSymbol('jsonExpressionRewriting',ko.expressionRewriting);ko.exportSymbol('jsonExpressionRewriting.insertPropertyAccessorsIntoJson',ko.expressionRewriting.preProcessBindings);(function(){var commentNodesHaveTextProperty=document&&document.createComment(\"test\").text===\"<!--test-->\";var startCommentRegex=commentNodesHaveTextProperty?/^<!--\\s*ko(?:\\s+([\\s\\S]+))?\\s*-->$/:/^\\s*ko(?:\\s+([\\s\\S]+))?\\s*$/;var endCommentRegex=commentNodesHaveTextProperty?/^<!--\\s*\\/ko\\s*-->$/:/^\\s*\\/ko\\s*$/;var htmlTagsWithOptionallyClosingChildren={'ul':true,'ol':true};function isStartComment(node){return(node.nodeType==8)&&startCommentRegex.test(commentNodesHaveTextProperty?node.text:node.nodeValue);}\nfunction isEndComment(node){return(node.nodeType==8)&&endCommentRegex.test(commentNodesHaveTextProperty?node.text:node.nodeValue);}\nfunction isUnmatchedEndComment(node){return isEndComment(node)&&!(ko.utils.domData.get(node,matchedEndCommentDataKey));}\nvar matchedEndCommentDataKey=\"__ko_matchedEndComment__\"\nfunction getVirtualChildren(startComment,allowUnbalanced){var currentNode=startComment;var depth=1;var children=[];while(currentNode=currentNode.nextSibling){if(isEndComment(currentNode)){ko.utils.domData.set(currentNode,matchedEndCommentDataKey,true);depth--;if(depth===0)\nreturn children;}\nchildren.push(currentNode);if(isStartComment(currentNode))\ndepth++;}\nif(!allowUnbalanced)\nthrow new Error(\"Cannot find closing comment tag to match: \"+startComment.nodeValue);return null;}\nfunction getMatchingEndComment(startComment,allowUnbalanced){var allVirtualChildren=getVirtualChildren(startComment,allowUnbalanced);if(allVirtualChildren){if(allVirtualChildren.length>0)\nreturn allVirtualChildren[allVirtualChildren.length-1].nextSibling;return startComment.nextSibling;}else\nreturn null;}\nfunction getUnbalancedChildTags(node){var childNode=node.firstChild,captureRemaining=null;if(childNode){do{if(captureRemaining)\ncaptureRemaining.push(childNode);else if(isStartComment(childNode)){var matchingEndComment=getMatchingEndComment(childNode,true);if(matchingEndComment)\nchildNode=matchingEndComment;else\ncaptureRemaining=[childNode];}else if(isEndComment(childNode)){captureRemaining=[childNode];}}while(childNode=childNode.nextSibling);}\nreturn captureRemaining;}\nko.virtualElements={allowedBindings:{},childNodes:function(node){return isStartComment(node)?getVirtualChildren(node):node.childNodes;},emptyNode:function(node){if(!isStartComment(node))\nko.utils.emptyDomNode(node);else{var virtualChildren=ko.virtualElements.childNodes(node);for(var i=0,j=virtualChildren.length;i<j;i++)\nko.removeNode(virtualChildren[i]);}},setDomNodeChildren:function(node,childNodes){if(!isStartComment(node))\nko.utils.setDomNodeChildren(node,childNodes);else{ko.virtualElements.emptyNode(node);var endCommentNode=node.nextSibling;for(var i=0,j=childNodes.length;i<j;i++)\nendCommentNode.parentNode.insertBefore(childNodes[i],endCommentNode);}},prepend:function(containerNode,nodeToPrepend){var insertBeforeNode;if(isStartComment(containerNode)){insertBeforeNode=containerNode.nextSibling;containerNode=containerNode.parentNode;}else{insertBeforeNode=containerNode.firstChild;}\nif(!insertBeforeNode){containerNode.appendChild(nodeToPrepend);}else if(nodeToPrepend!==insertBeforeNode){containerNode.insertBefore(nodeToPrepend,insertBeforeNode);}},insertAfter:function(containerNode,nodeToInsert,insertAfterNode){if(!insertAfterNode){ko.virtualElements.prepend(containerNode,nodeToInsert);}else{var insertBeforeNode=insertAfterNode.nextSibling;if(isStartComment(containerNode)){containerNode=containerNode.parentNode;}\nif(!insertBeforeNode){containerNode.appendChild(nodeToInsert);}else if(nodeToInsert!==insertBeforeNode){containerNode.insertBefore(nodeToInsert,insertBeforeNode);}}},firstChild:function(node){if(!isStartComment(node)){if(node.firstChild&&isEndComment(node.firstChild)){throw new Error(\"Found invalid end comment, as the first child of \"+node);}\nreturn node.firstChild;}else if(!node.nextSibling||isEndComment(node.nextSibling)){return null;}else{return node.nextSibling;}},nextSibling:function(node){if(isStartComment(node)){node=getMatchingEndComment(node);}\nif(node.nextSibling&&isEndComment(node.nextSibling)){if(isUnmatchedEndComment(node.nextSibling)){throw Error(\"Found end comment without a matching opening comment, as child of \"+node);}else{return null;}}else{return node.nextSibling;}},hasBindingValue:isStartComment,virtualNodeBindingValue:function(node){var regexMatch=(commentNodesHaveTextProperty?node.text:node.nodeValue).match(startCommentRegex);return regexMatch?regexMatch[1]:null;},normaliseVirtualElementDomStructure:function(elementVerified){if(!htmlTagsWithOptionallyClosingChildren[ko.utils.tagNameLower(elementVerified)])\nreturn;var childNode=elementVerified.firstChild;if(childNode){do{if(childNode.nodeType===1){var unbalancedTags=getUnbalancedChildTags(childNode);if(unbalancedTags){var nodeToInsertBefore=childNode.nextSibling;for(var i=0;i<unbalancedTags.length;i++){if(nodeToInsertBefore)\nelementVerified.insertBefore(unbalancedTags[i],nodeToInsertBefore);else\nelementVerified.appendChild(unbalancedTags[i]);}}}}while(childNode=childNode.nextSibling);}}};})();ko.exportSymbol('virtualElements',ko.virtualElements);ko.exportSymbol('virtualElements.allowedBindings',ko.virtualElements.allowedBindings);ko.exportSymbol('virtualElements.emptyNode',ko.virtualElements.emptyNode);ko.exportSymbol('virtualElements.insertAfter',ko.virtualElements.insertAfter);ko.exportSymbol('virtualElements.prepend',ko.virtualElements.prepend);ko.exportSymbol('virtualElements.setDomNodeChildren',ko.virtualElements.setDomNodeChildren);(function(){var defaultBindingAttributeName=\"data-bind\";ko.bindingProvider=function(){this.bindingCache={};};ko.utils.extend(ko.bindingProvider.prototype,{'nodeHasBindings':function(node){switch(node.nodeType){case 1:return node.getAttribute(defaultBindingAttributeName)!=null||ko.components['getComponentNameForNode'](node);case 8:return ko.virtualElements.hasBindingValue(node);default:return false;}},'getBindings':function(node,bindingContext){var bindingsString=this['getBindingsString'](node,bindingContext),parsedBindings=bindingsString?this['parseBindingsString'](bindingsString,bindingContext,node):null;return ko.components.addBindingsForCustomElement(parsedBindings,node,bindingContext,false);},'getBindingAccessors':function(node,bindingContext){var bindingsString=this['getBindingsString'](node,bindingContext),parsedBindings=bindingsString?this['parseBindingsString'](bindingsString,bindingContext,node,{'valueAccessors':true}):null;return ko.components.addBindingsForCustomElement(parsedBindings,node,bindingContext,true);},'getBindingsString':function(node,bindingContext){switch(node.nodeType){case 1:return node.getAttribute(defaultBindingAttributeName);case 8:return ko.virtualElements.virtualNodeBindingValue(node);default:return null;}},'parseBindingsString':function(bindingsString,bindingContext,node,options){try{var bindingFunction=createBindingsStringEvaluatorViaCache(bindingsString,this.bindingCache,options);return bindingFunction(bindingContext,node);}catch(ex){ex.message=\"Unable to parse bindings.\\nBindings value: \"+bindingsString+\"\\nMessage: \"+ex.message;throw ex;}}});ko.bindingProvider['instance']=new ko.bindingProvider();function createBindingsStringEvaluatorViaCache(bindingsString,cache,options){var cacheKey=bindingsString+(options&&options['valueAccessors']||'');return cache[cacheKey]||(cache[cacheKey]=createBindingsStringEvaluator(bindingsString,options));}\nfunction createBindingsStringEvaluator(bindingsString,options){var rewrittenBindings=ko.expressionRewriting.preProcessBindings(bindingsString,options),functionBody=\"with($context){with($data||{}){return{\"+rewrittenBindings+\"}}}\";return new Function(\"$context\",\"$element\",functionBody);}})();ko.exportSymbol('bindingProvider',ko.bindingProvider);(function(){var contextSubscribable=ko.utils.createSymbolOrString('_subscribable');var contextAncestorBindingInfo=ko.utils.createSymbolOrString('_ancestorBindingInfo');var contextDataDependency=ko.utils.createSymbolOrString('_dataDependency');ko.bindingHandlers={};var bindingDoesNotRecurseIntoElementTypes={'script':true,'textarea':true,'template':true};ko['getBindingHandler']=function(bindingKey){return ko.bindingHandlers[bindingKey];};var inheritParentVm={};ko.bindingContext=function(dataItemOrAccessor,parentContext,dataItemAlias,extendCallback,options){function updateContext(){var dataItemOrObservable=isFunc?realDataItemOrAccessor():realDataItemOrAccessor,dataItem=ko.utils.unwrapObservable(dataItemOrObservable);if(parentContext){ko.utils.extend(self,parentContext);if(contextAncestorBindingInfo in parentContext){self[contextAncestorBindingInfo]=parentContext[contextAncestorBindingInfo];}}else{self['$parents']=[];self['$root']=dataItem;self['ko']=ko;}\nself[contextSubscribable]=subscribable;if(shouldInheritData){dataItem=self['$data'];}else{self['$rawData']=dataItemOrObservable;self['$data']=dataItem;}\nif(dataItemAlias)\nself[dataItemAlias]=dataItem;if(extendCallback)\nextendCallback(self,parentContext,dataItem);if(parentContext&&parentContext[contextSubscribable]&&!ko.computedContext.computed().hasAncestorDependency(parentContext[contextSubscribable])){parentContext[contextSubscribable]();}\nif(dataDependency){self[contextDataDependency]=dataDependency;}\nreturn self['$data'];}\nvar self=this,shouldInheritData=dataItemOrAccessor===inheritParentVm,realDataItemOrAccessor=shouldInheritData?undefined:dataItemOrAccessor,isFunc=typeof(realDataItemOrAccessor)==\"function\"&&!ko.isObservable(realDataItemOrAccessor),nodes,subscribable,dataDependency=options&&options['dataDependency'];if(options&&options['exportDependencies']){updateContext();}else{subscribable=ko.pureComputed(updateContext);subscribable.peek();if(subscribable.isActive()){subscribable['equalityComparer']=null;}else{self[contextSubscribable]=undefined;}}}\nko.bindingContext.prototype['createChildContext']=function(dataItemOrAccessor,dataItemAlias,extendCallback,options){if(!options&&dataItemAlias&&typeof dataItemAlias==\"object\"){options=dataItemAlias;dataItemAlias=options['as'];extendCallback=options['extend'];}\nif(dataItemAlias&&options&&options['noChildContext']){var isFunc=typeof(dataItemOrAccessor)==\"function\"&&!ko.isObservable(dataItemOrAccessor);return new ko.bindingContext(inheritParentVm,this,null,function(self){if(extendCallback)\nextendCallback(self);self[dataItemAlias]=isFunc?dataItemOrAccessor():dataItemOrAccessor;},options);}\nreturn new ko.bindingContext(dataItemOrAccessor,this,dataItemAlias,function(self,parentContext){self['$parentContext']=parentContext;self['$parent']=parentContext['$data'];self['$parents']=(parentContext['$parents']||[]).slice(0);self['$parents'].unshift(self['$parent']);if(extendCallback)\nextendCallback(self);},options);};ko.bindingContext.prototype['extend']=function(properties,options){return new ko.bindingContext(inheritParentVm,this,null,function(self,parentContext){ko.utils.extend(self,typeof(properties)==\"function\"?properties(self):properties);},options);};var boundElementDomDataKey=ko.utils.domData.nextKey();function asyncContextDispose(node){var bindingInfo=ko.utils.domData.get(node,boundElementDomDataKey),asyncContext=bindingInfo&&bindingInfo.asyncContext;if(asyncContext){bindingInfo.asyncContext=null;asyncContext.notifyAncestor();}}\nfunction AsyncCompleteContext(node,bindingInfo,ancestorBindingInfo){this.node=node;this.bindingInfo=bindingInfo;this.asyncDescendants=[];this.childrenComplete=false;if(!bindingInfo.asyncContext){ko.utils.domNodeDisposal.addDisposeCallback(node,asyncContextDispose);}\nif(ancestorBindingInfo&&ancestorBindingInfo.asyncContext){ancestorBindingInfo.asyncContext.asyncDescendants.push(node);this.ancestorBindingInfo=ancestorBindingInfo;}}\nAsyncCompleteContext.prototype.notifyAncestor=function(){if(this.ancestorBindingInfo&&this.ancestorBindingInfo.asyncContext){this.ancestorBindingInfo.asyncContext.descendantComplete(this.node);}};AsyncCompleteContext.prototype.descendantComplete=function(node){ko.utils.arrayRemoveItem(this.asyncDescendants,node);if(!this.asyncDescendants.length&&this.childrenComplete){this.completeChildren();}};AsyncCompleteContext.prototype.completeChildren=function(){this.childrenComplete=true;if(this.bindingInfo.asyncContext&&!this.asyncDescendants.length){this.bindingInfo.asyncContext=null;ko.utils.domNodeDisposal.removeDisposeCallback(this.node,asyncContextDispose);ko.bindingEvent.notify(this.node,ko.bindingEvent.descendantsComplete);this.notifyAncestor();}};ko.bindingEvent={childrenComplete:\"childrenComplete\",descendantsComplete:\"descendantsComplete\",subscribe:function(node,event,callback,context,options){var bindingInfo=ko.utils.domData.getOrSet(node,boundElementDomDataKey,{});if(!bindingInfo.eventSubscribable){bindingInfo.eventSubscribable=new ko.subscribable;}\nif(options&&options['notifyImmediately']&&bindingInfo.notifiedEvents[event]){ko.dependencyDetection.ignore(callback,context,[node]);}\nreturn bindingInfo.eventSubscribable.subscribe(callback,context,event);},notify:function(node,event){var bindingInfo=ko.utils.domData.get(node,boundElementDomDataKey);if(bindingInfo){bindingInfo.notifiedEvents[event]=true;if(bindingInfo.eventSubscribable){bindingInfo.eventSubscribable['notifySubscribers'](node,event);}\nif(event==ko.bindingEvent.childrenComplete){if(bindingInfo.asyncContext){bindingInfo.asyncContext.completeChildren();}else if(bindingInfo.asyncContext===undefined&&bindingInfo.eventSubscribable&&bindingInfo.eventSubscribable.hasSubscriptionsForEvent(ko.bindingEvent.descendantsComplete)){throw new Error(\"descendantsComplete event not supported for bindings on this node\");}}}},startPossiblyAsyncContentBinding:function(node,bindingContext){var bindingInfo=ko.utils.domData.getOrSet(node,boundElementDomDataKey,{});if(!bindingInfo.asyncContext){bindingInfo.asyncContext=new AsyncCompleteContext(node,bindingInfo,bindingContext[contextAncestorBindingInfo]);}\nif(bindingContext[contextAncestorBindingInfo]==bindingInfo){return bindingContext;}\nreturn bindingContext['extend'](function(ctx){ctx[contextAncestorBindingInfo]=bindingInfo;});}};function makeValueAccessor(value){return function(){return value;};}\nfunction evaluateValueAccessor(valueAccessor){return valueAccessor();}\nfunction makeAccessorsFromFunction(callback){return ko.utils.objectMap(ko.dependencyDetection.ignore(callback),function(value,key){return function(){return callback()[key];};});}\nfunction makeBindingAccessors(bindings,context,node){if(typeof bindings==='function'){return makeAccessorsFromFunction(bindings.bind(null,context,node));}else{return ko.utils.objectMap(bindings,makeValueAccessor);}}\nfunction getBindingsAndMakeAccessors(node,context){return makeAccessorsFromFunction(this['getBindings'].bind(this,node,context));}\nfunction validateThatBindingIsAllowedForVirtualElements(bindingName){var validator=ko.virtualElements.allowedBindings[bindingName];if(!validator)\nthrow new Error(\"The binding '\"+bindingName+\"' cannot be used with virtual elements\")}\nfunction applyBindingsToDescendantsInternal(bindingContext,elementOrVirtualElement){var nextInQueue=ko.virtualElements.firstChild(elementOrVirtualElement);if(nextInQueue){var currentChild,provider=ko.bindingProvider['instance'],preprocessNode=provider['preprocessNode'];if(preprocessNode){while(currentChild=nextInQueue){nextInQueue=ko.virtualElements.nextSibling(currentChild);preprocessNode.call(provider,currentChild);}\nnextInQueue=ko.virtualElements.firstChild(elementOrVirtualElement);}\nwhile(currentChild=nextInQueue){nextInQueue=ko.virtualElements.nextSibling(currentChild);applyBindingsToNodeAndDescendantsInternal(bindingContext,currentChild);}}\nko.bindingEvent.notify(elementOrVirtualElement,ko.bindingEvent.childrenComplete);}\nfunction applyBindingsToNodeAndDescendantsInternal(bindingContext,nodeVerified){var bindingContextForDescendants=bindingContext;var isElement=(nodeVerified.nodeType===1);if(isElement)\nko.virtualElements.normaliseVirtualElementDomStructure(nodeVerified);var shouldApplyBindings=isElement||ko.bindingProvider['instance']['nodeHasBindings'](nodeVerified);if(shouldApplyBindings)\nbindingContextForDescendants=applyBindingsToNodeInternal(nodeVerified,null,bindingContext)['bindingContextForDescendants'];if(bindingContextForDescendants&&!bindingDoesNotRecurseIntoElementTypes[ko.utils.tagNameLower(nodeVerified)]){applyBindingsToDescendantsInternal(bindingContextForDescendants,nodeVerified);}}\nfunction topologicalSortBindings(bindings){var result=[],bindingsConsidered={},cyclicDependencyStack=[];ko.utils.objectForEach(bindings,function pushBinding(bindingKey){if(!bindingsConsidered[bindingKey]){var binding=ko['getBindingHandler'](bindingKey);if(binding){if(binding['after']){cyclicDependencyStack.push(bindingKey);ko.utils.arrayForEach(binding['after'],function(bindingDependencyKey){if(bindings[bindingDependencyKey]){if(ko.utils.arrayIndexOf(cyclicDependencyStack,bindingDependencyKey)!==-1){throw Error(\"Cannot combine the following bindings, because they have a cyclic dependency: \"+cyclicDependencyStack.join(\", \"));}else{pushBinding(bindingDependencyKey);}}});cyclicDependencyStack.length--;}\nresult.push({key:bindingKey,handler:binding});}\nbindingsConsidered[bindingKey]=true;}});return result;}\nfunction applyBindingsToNodeInternal(node,sourceBindings,bindingContext){var bindingInfo=ko.utils.domData.getOrSet(node,boundElementDomDataKey,{});var alreadyBound=bindingInfo.alreadyBound;if(!sourceBindings){if(alreadyBound){throw Error(\"You cannot apply bindings multiple times to the same element.\");}\nbindingInfo.alreadyBound=true;}\nif(!alreadyBound){bindingInfo.context=bindingContext;}\nif(!bindingInfo.notifiedEvents){bindingInfo.notifiedEvents={};}\nvar bindings;if(sourceBindings&&typeof sourceBindings!=='function'){bindings=sourceBindings;}else{var provider=ko.bindingProvider['instance'],getBindings=provider['getBindingAccessors']||getBindingsAndMakeAccessors;var bindingsUpdater=ko.dependentObservable(function(){bindings=sourceBindings?sourceBindings(bindingContext,node):getBindings.call(provider,node,bindingContext);if(bindings){if(bindingContext[contextSubscribable]){bindingContext[contextSubscribable]();}\nif(bindingContext[contextDataDependency]){bindingContext[contextDataDependency]();}}\nreturn bindings;},null,{disposeWhenNodeIsRemoved:node});if(!bindings||!bindingsUpdater.isActive())\nbindingsUpdater=null;}\nvar contextToExtend=bindingContext;var bindingHandlerThatControlsDescendantBindings;if(bindings){var getValueAccessor=bindingsUpdater?function(bindingKey){return function(){return evaluateValueAccessor(bindingsUpdater()[bindingKey]);};}:function(bindingKey){return bindings[bindingKey];};function allBindings(){return ko.utils.objectMap(bindingsUpdater?bindingsUpdater():bindings,evaluateValueAccessor);}\nallBindings['get']=function(key){return bindings[key]&&evaluateValueAccessor(getValueAccessor(key));};allBindings['has']=function(key){return key in bindings;};if(ko.bindingEvent.childrenComplete in bindings){ko.bindingEvent.subscribe(node,ko.bindingEvent.childrenComplete,function(){var callback=evaluateValueAccessor(bindings[ko.bindingEvent.childrenComplete]);if(callback){var nodes=ko.virtualElements.childNodes(node);if(nodes.length){callback(nodes,ko.dataFor(nodes[0]));}}});}\nif(ko.bindingEvent.descendantsComplete in bindings){contextToExtend=ko.bindingEvent.startPossiblyAsyncContentBinding(node,bindingContext);ko.bindingEvent.subscribe(node,ko.bindingEvent.descendantsComplete,function(){var callback=evaluateValueAccessor(bindings[ko.bindingEvent.descendantsComplete]);if(callback&&ko.virtualElements.firstChild(node)){callback(node);}});}\nvar orderedBindings=topologicalSortBindings(bindings);ko.utils.arrayForEach(orderedBindings,function(bindingKeyAndHandler){var handlerInitFn=bindingKeyAndHandler.handler[\"init\"],handlerUpdateFn=bindingKeyAndHandler.handler[\"update\"],bindingKey=bindingKeyAndHandler.key;if(node.nodeType===8){validateThatBindingIsAllowedForVirtualElements(bindingKey);}\ntry{if(typeof handlerInitFn==\"function\"){ko.dependencyDetection.ignore(function(){var initResult=handlerInitFn(node,getValueAccessor(bindingKey),allBindings,contextToExtend['$data'],contextToExtend);if(initResult&&initResult['controlsDescendantBindings']){if(bindingHandlerThatControlsDescendantBindings!==undefined)\nthrow new Error(\"Multiple bindings (\"+bindingHandlerThatControlsDescendantBindings+\" and \"+bindingKey+\") are trying to control descendant bindings of the same element. You cannot use these bindings together on the same element.\");bindingHandlerThatControlsDescendantBindings=bindingKey;}});}\nif(typeof handlerUpdateFn==\"function\"){ko.dependentObservable(function(){handlerUpdateFn(node,getValueAccessor(bindingKey),allBindings,contextToExtend['$data'],contextToExtend);},null,{disposeWhenNodeIsRemoved:node});}}catch(ex){ex.message=\"Unable to process binding \\\"\"+bindingKey+\": \"+bindings[bindingKey]+\"\\\"\\nMessage: \"+ex.message;throw ex;}});}\nvar shouldBindDescendants=bindingHandlerThatControlsDescendantBindings===undefined;return{'shouldBindDescendants':shouldBindDescendants,'bindingContextForDescendants':shouldBindDescendants&&contextToExtend};};ko.storedBindingContextForNode=function(node){var bindingInfo=ko.utils.domData.get(node,boundElementDomDataKey);return bindingInfo&&bindingInfo.context;}\nfunction getBindingContext(viewModelOrBindingContext,extendContextCallback){return viewModelOrBindingContext&&(viewModelOrBindingContext instanceof ko.bindingContext)?viewModelOrBindingContext:new ko.bindingContext(viewModelOrBindingContext,undefined,undefined,extendContextCallback);}\nko.applyBindingAccessorsToNode=function(node,bindings,viewModelOrBindingContext){if(node.nodeType===1)\nko.virtualElements.normaliseVirtualElementDomStructure(node);return applyBindingsToNodeInternal(node,bindings,getBindingContext(viewModelOrBindingContext));};ko.applyBindingsToNode=function(node,bindings,viewModelOrBindingContext){var context=getBindingContext(viewModelOrBindingContext);return ko.applyBindingAccessorsToNode(node,makeBindingAccessors(bindings,context,node),context);};ko.applyBindingsToDescendants=function(viewModelOrBindingContext,rootNode){if(rootNode.nodeType===1||rootNode.nodeType===8)\napplyBindingsToDescendantsInternal(getBindingContext(viewModelOrBindingContext),rootNode);};ko.applyBindings=function(viewModelOrBindingContext,rootNode,extendContextCallback){if(!jQueryInstance&&window['jQuery']){jQueryInstance=window['jQuery'];}\nif(arguments.length<2){rootNode=document.body;if(!rootNode){throw Error(\"ko.applyBindings: could not find document.body; has the document been loaded?\");}}else if(!rootNode||(rootNode.nodeType!==1&&rootNode.nodeType!==8)){throw Error(\"ko.applyBindings: first parameter should be your view model; second parameter should be a DOM node\");}\napplyBindingsToNodeAndDescendantsInternal(getBindingContext(viewModelOrBindingContext,extendContextCallback),rootNode);};ko.contextFor=function(node){if(node&&(node.nodeType===1||node.nodeType===8)){return ko.storedBindingContextForNode(node);}\nreturn undefined;};ko.dataFor=function(node){var context=ko.contextFor(node);return context?context['$data']:undefined;};ko.exportSymbol('bindingHandlers',ko.bindingHandlers);ko.exportSymbol('bindingEvent',ko.bindingEvent);ko.exportSymbol('bindingEvent.subscribe',ko.bindingEvent.subscribe);ko.exportSymbol('bindingEvent.startPossiblyAsyncContentBinding',ko.bindingEvent.startPossiblyAsyncContentBinding);ko.exportSymbol('applyBindings',ko.applyBindings);ko.exportSymbol('applyBindingsToDescendants',ko.applyBindingsToDescendants);ko.exportSymbol('applyBindingAccessorsToNode',ko.applyBindingAccessorsToNode);ko.exportSymbol('applyBindingsToNode',ko.applyBindingsToNode);ko.exportSymbol('contextFor',ko.contextFor);ko.exportSymbol('dataFor',ko.dataFor);})();(function(undefined){var loadingSubscribablesCache={},loadedDefinitionsCache={};ko.components={get:function(componentName,callback){var cachedDefinition=getObjectOwnProperty(loadedDefinitionsCache,componentName);if(cachedDefinition){if(cachedDefinition.isSynchronousComponent){ko.dependencyDetection.ignore(function(){callback(cachedDefinition.definition);});}else{ko.tasks.schedule(function(){callback(cachedDefinition.definition);});}}else{loadComponentAndNotify(componentName,callback);}},clearCachedDefinition:function(componentName){delete loadedDefinitionsCache[componentName];},_getFirstResultFromLoaders:getFirstResultFromLoaders};function getObjectOwnProperty(obj,propName){return Object.prototype.hasOwnProperty.call(obj,propName)?obj[propName]:undefined;}\nfunction loadComponentAndNotify(componentName,callback){var subscribable=getObjectOwnProperty(loadingSubscribablesCache,componentName),completedAsync;if(!subscribable){subscribable=loadingSubscribablesCache[componentName]=new ko.subscribable();subscribable.subscribe(callback);beginLoadingComponent(componentName,function(definition,config){var isSynchronousComponent=!!(config&&config['synchronous']);loadedDefinitionsCache[componentName]={definition:definition,isSynchronousComponent:isSynchronousComponent};delete loadingSubscribablesCache[componentName];if(completedAsync||isSynchronousComponent){subscribable['notifySubscribers'](definition);}else{ko.tasks.schedule(function(){subscribable['notifySubscribers'](definition);});}});completedAsync=true;}else{subscribable.subscribe(callback);}}\nfunction beginLoadingComponent(componentName,callback){getFirstResultFromLoaders('getConfig',[componentName],function(config){if(config){getFirstResultFromLoaders('loadComponent',[componentName,config],function(definition){callback(definition,config);});}else{callback(null,null);}});}\nfunction getFirstResultFromLoaders(methodName,argsExceptCallback,callback,candidateLoaders){if(!candidateLoaders){candidateLoaders=ko.components['loaders'].slice(0);}\nvar currentCandidateLoader=candidateLoaders.shift();if(currentCandidateLoader){var methodInstance=currentCandidateLoader[methodName];if(methodInstance){var wasAborted=false,synchronousReturnValue=methodInstance.apply(currentCandidateLoader,argsExceptCallback.concat(function(result){if(wasAborted){callback(null);}else if(result!==null){callback(result);}else{getFirstResultFromLoaders(methodName,argsExceptCallback,callback,candidateLoaders);}}));if(synchronousReturnValue!==undefined){wasAborted=true;if(!currentCandidateLoader['suppressLoaderExceptions']){throw new Error('Component loaders must supply values by invoking the callback, not by returning values synchronously.');}}}else{getFirstResultFromLoaders(methodName,argsExceptCallback,callback,candidateLoaders);}}else{callback(null);}}\nko.components['loaders']=[];ko.exportSymbol('components',ko.components);ko.exportSymbol('components.get',ko.components.get);ko.exportSymbol('components.clearCachedDefinition',ko.components.clearCachedDefinition);})();(function(undefined){var defaultConfigRegistry={};ko.components.register=function(componentName,config){if(!config){throw new Error('Invalid configuration for '+componentName);}\nif(ko.components.isRegistered(componentName)){throw new Error('Component '+componentName+' is already registered');}\ndefaultConfigRegistry[componentName]=config;};ko.components.isRegistered=function(componentName){return Object.prototype.hasOwnProperty.call(defaultConfigRegistry,componentName);};ko.components.unregister=function(componentName){delete defaultConfigRegistry[componentName];ko.components.clearCachedDefinition(componentName);};ko.components.defaultLoader={'getConfig':function(componentName,callback){var result=ko.components.isRegistered(componentName)?defaultConfigRegistry[componentName]:null;callback(result);},'loadComponent':function(componentName,config,callback){var errorCallback=makeErrorCallback(componentName);possiblyGetConfigFromAmd(errorCallback,config,function(loadedConfig){resolveConfig(componentName,errorCallback,loadedConfig,callback);});},'loadTemplate':function(componentName,templateConfig,callback){resolveTemplate(makeErrorCallback(componentName),templateConfig,callback);},'loadViewModel':function(componentName,viewModelConfig,callback){resolveViewModel(makeErrorCallback(componentName),viewModelConfig,callback);}};var createViewModelKey='createViewModel';function resolveConfig(componentName,errorCallback,config,callback){var result={},makeCallBackWhenZero=2,tryIssueCallback=function(){if(--makeCallBackWhenZero===0){callback(result);}},templateConfig=config['template'],viewModelConfig=config['viewModel'];if(templateConfig){possiblyGetConfigFromAmd(errorCallback,templateConfig,function(loadedConfig){ko.components._getFirstResultFromLoaders('loadTemplate',[componentName,loadedConfig],function(resolvedTemplate){result['template']=resolvedTemplate;tryIssueCallback();});});}else{tryIssueCallback();}\nif(viewModelConfig){possiblyGetConfigFromAmd(errorCallback,viewModelConfig,function(loadedConfig){ko.components._getFirstResultFromLoaders('loadViewModel',[componentName,loadedConfig],function(resolvedViewModel){result[createViewModelKey]=resolvedViewModel;tryIssueCallback();});});}else{tryIssueCallback();}}\nfunction resolveTemplate(errorCallback,templateConfig,callback){if(typeof templateConfig==='string'){callback(ko.utils.parseHtmlFragment(templateConfig));}else if(templateConfig instanceof Array){callback(templateConfig);}else if(isDocumentFragment(templateConfig)){callback(ko.utils.makeArray(templateConfig.childNodes));}else if(templateConfig['element']){var element=templateConfig['element'];if(isDomElement(element)){callback(cloneNodesFromTemplateSourceElement(element));}else if(typeof element==='string'){var elemInstance=document.getElementById(element);if(elemInstance){callback(cloneNodesFromTemplateSourceElement(elemInstance));}else{errorCallback('Cannot find element with ID '+element);}}else{errorCallback('Unknown element type: '+element);}}else{errorCallback('Unknown template value: '+templateConfig);}}\nfunction resolveViewModel(errorCallback,viewModelConfig,callback){if(typeof viewModelConfig==='function'){callback(function(params){return new viewModelConfig(params);});}else if(typeof viewModelConfig[createViewModelKey]==='function'){callback(viewModelConfig[createViewModelKey]);}else if('instance'in viewModelConfig){var fixedInstance=viewModelConfig['instance'];callback(function(params,componentInfo){return fixedInstance;});}else if('viewModel'in viewModelConfig){resolveViewModel(errorCallback,viewModelConfig['viewModel'],callback);}else{errorCallback('Unknown viewModel value: '+viewModelConfig);}}\nfunction cloneNodesFromTemplateSourceElement(elemInstance){switch(ko.utils.tagNameLower(elemInstance)){case'script':return ko.utils.parseHtmlFragment(elemInstance.text);case'textarea':return ko.utils.parseHtmlFragment(elemInstance.value);case'template':if(isDocumentFragment(elemInstance.content)){return ko.utils.cloneNodes(elemInstance.content.childNodes);}}\nreturn ko.utils.cloneNodes(elemInstance.childNodes);}\nfunction isDomElement(obj){if(window['HTMLElement']){return obj instanceof HTMLElement;}else{return obj&&obj.tagName&&obj.nodeType===1;}}\nfunction isDocumentFragment(obj){if(window['DocumentFragment']){return obj instanceof DocumentFragment;}else{return obj&&obj.nodeType===11;}}\nfunction possiblyGetConfigFromAmd(errorCallback,config,callback){if(typeof config['require']==='string'){if(amdRequire||window['require']){(amdRequire||window['require'])([config['require']],function(module){if(module&&typeof module==='object'&&module.__esModule&&module.default){module=module.default;}\ncallback(module);});}else{errorCallback('Uses require, but no AMD loader is present');}}else{callback(config);}}\nfunction makeErrorCallback(componentName){return function(message){throw new Error('Component \\''+componentName+'\\': '+message);};}\nko.exportSymbol('components.register',ko.components.register);ko.exportSymbol('components.isRegistered',ko.components.isRegistered);ko.exportSymbol('components.unregister',ko.components.unregister);ko.exportSymbol('components.defaultLoader',ko.components.defaultLoader);ko.components['loaders'].push(ko.components.defaultLoader);ko.components._allRegisteredComponents=defaultConfigRegistry;})();(function(undefined){ko.components['getComponentNameForNode']=function(node){var tagNameLower=ko.utils.tagNameLower(node);if(ko.components.isRegistered(tagNameLower)){if(tagNameLower.indexOf('-')!=-1||(''+node)==\"[object HTMLUnknownElement]\"||(ko.utils.ieVersion<=8&&node.tagName===tagNameLower)){return tagNameLower;}}};ko.components.addBindingsForCustomElement=function(allBindings,node,bindingContext,valueAccessors){if(node.nodeType===1){var componentName=ko.components['getComponentNameForNode'](node);if(componentName){allBindings=allBindings||{};if(allBindings['component']){throw new Error('Cannot use the \"component\" binding on a custom element matching a component');}\nvar componentBindingValue={'name':componentName,'params':getComponentParamsFromCustomElement(node,bindingContext)};allBindings['component']=valueAccessors?function(){return componentBindingValue;}:componentBindingValue;}}\nreturn allBindings;}\nvar nativeBindingProviderInstance=new ko.bindingProvider();function getComponentParamsFromCustomElement(elem,bindingContext){var paramsAttribute=elem.getAttribute('params');if(paramsAttribute){var params=nativeBindingProviderInstance['parseBindingsString'](paramsAttribute,bindingContext,elem,{'valueAccessors':true,'bindingParams':true}),rawParamComputedValues=ko.utils.objectMap(params,function(paramValue,paramName){return ko.computed(paramValue,null,{disposeWhenNodeIsRemoved:elem});}),result=ko.utils.objectMap(rawParamComputedValues,function(paramValueComputed,paramName){var paramValue=paramValueComputed.peek();if(!paramValueComputed.isActive()){return paramValue;}else{return ko.computed({'read':function(){return ko.utils.unwrapObservable(paramValueComputed());},'write':ko.isWriteableObservable(paramValue)&&function(value){paramValueComputed()(value);},disposeWhenNodeIsRemoved:elem});}});if(!Object.prototype.hasOwnProperty.call(result,'$raw')){result['$raw']=rawParamComputedValues;}\nreturn result;}else{return{'$raw':{}};}}\nif(ko.utils.ieVersion<9){ko.components['register']=(function(originalFunction){return function(componentName){document.createElement(componentName);return originalFunction.apply(this,arguments);}})(ko.components['register']);document.createDocumentFragment=(function(originalFunction){return function(){var newDocFrag=originalFunction(),allComponents=ko.components._allRegisteredComponents;for(var componentName in allComponents){if(Object.prototype.hasOwnProperty.call(allComponents,componentName)){newDocFrag.createElement(componentName);}}\nreturn newDocFrag;};})(document.createDocumentFragment);}})();(function(undefined){var componentLoadingOperationUniqueId=0;ko.bindingHandlers['component']={'init':function(element,valueAccessor,ignored1,ignored2,bindingContext){var currentViewModel,currentLoadingOperationId,afterRenderSub,disposeAssociatedComponentViewModel=function(){var currentViewModelDispose=currentViewModel&&currentViewModel['dispose'];if(typeof currentViewModelDispose==='function'){currentViewModelDispose.call(currentViewModel);}\nif(afterRenderSub){afterRenderSub.dispose();}\nafterRenderSub=null;currentViewModel=null;currentLoadingOperationId=null;},originalChildNodes=ko.utils.makeArray(ko.virtualElements.childNodes(element));ko.virtualElements.emptyNode(element);ko.utils.domNodeDisposal.addDisposeCallback(element,disposeAssociatedComponentViewModel);ko.computed(function(){var value=ko.utils.unwrapObservable(valueAccessor()),componentName,componentParams;if(typeof value==='string'){componentName=value;}else{componentName=ko.utils.unwrapObservable(value['name']);componentParams=ko.utils.unwrapObservable(value['params']);}\nif(!componentName){throw new Error('No component name specified');}\nvar asyncContext=ko.bindingEvent.startPossiblyAsyncContentBinding(element,bindingContext);var loadingOperationId=currentLoadingOperationId=++componentLoadingOperationUniqueId;ko.components.get(componentName,function(componentDefinition){if(currentLoadingOperationId!==loadingOperationId){return;}\ndisposeAssociatedComponentViewModel();if(!componentDefinition){throw new Error('Unknown component \\''+componentName+'\\'');}\ncloneTemplateIntoElement(componentName,componentDefinition,element);var componentInfo={'element':element,'templateNodes':originalChildNodes};var componentViewModel=createViewModel(componentDefinition,componentParams,componentInfo),childBindingContext=asyncContext['createChildContext'](componentViewModel,{'extend':function(ctx){ctx['$component']=componentViewModel;ctx['$componentTemplateNodes']=originalChildNodes;}});if(componentViewModel&&componentViewModel['koDescendantsComplete']){afterRenderSub=ko.bindingEvent.subscribe(element,ko.bindingEvent.descendantsComplete,componentViewModel['koDescendantsComplete'],componentViewModel);}\ncurrentViewModel=componentViewModel;ko.applyBindingsToDescendants(childBindingContext,element);});},null,{disposeWhenNodeIsRemoved:element});return{'controlsDescendantBindings':true};}};ko.virtualElements.allowedBindings['component']=true;function cloneTemplateIntoElement(componentName,componentDefinition,element){var template=componentDefinition['template'];if(!template){throw new Error('Component \\''+componentName+'\\' has no template');}\nvar clonedNodesArray=ko.utils.cloneNodes(template);ko.virtualElements.setDomNodeChildren(element,clonedNodesArray);}\nfunction createViewModel(componentDefinition,componentParams,componentInfo){var componentViewModelFactory=componentDefinition['createViewModel'];return componentViewModelFactory?componentViewModelFactory.call(componentDefinition,componentParams,componentInfo):componentParams;}})();var attrHtmlToJavaScriptMap={'class':'className','for':'htmlFor'};ko.bindingHandlers['attr']={'update':function(element,valueAccessor,allBindings){var value=ko.utils.unwrapObservable(valueAccessor())||{};ko.utils.objectForEach(value,function(attrName,attrValue){attrValue=ko.utils.unwrapObservable(attrValue);var prefixLen=attrName.indexOf(':');var namespace=\"lookupNamespaceURI\"in element&&prefixLen>0&&element.lookupNamespaceURI(attrName.substr(0,prefixLen));var toRemove=(attrValue===false)||(attrValue===null)||(attrValue===undefined);if(toRemove){namespace?element.removeAttributeNS(namespace,attrName):element.removeAttribute(attrName);}else{attrValue=attrValue.toString();}\nif(ko.utils.ieVersion<=8&&attrName in attrHtmlToJavaScriptMap){attrName=attrHtmlToJavaScriptMap[attrName];if(toRemove)\nelement.removeAttribute(attrName);else\nelement[attrName]=attrValue;}else if(!toRemove){namespace?element.setAttributeNS(namespace,attrName,attrValue):element.setAttribute(attrName,attrValue);}\nif(attrName===\"name\"){ko.utils.setElementName(element,toRemove?\"\":attrValue);}});}};(function(){ko.bindingHandlers['checked']={'after':['value','attr'],'init':function(element,valueAccessor,allBindings){var checkedValue=ko.pureComputed(function(){if(allBindings['has']('checkedValue')){return ko.utils.unwrapObservable(allBindings.get('checkedValue'));}else if(useElementValue){if(allBindings['has']('value')){return ko.utils.unwrapObservable(allBindings.get('value'));}else{return element.value;}}});function updateModel(){var isChecked=element.checked,elemValue=checkedValue();if(ko.computedContext.isInitial()){return;}\nif(!isChecked&&(isRadio||ko.computedContext.getDependenciesCount())){return;}\nvar modelValue=ko.dependencyDetection.ignore(valueAccessor);if(valueIsArray){var writableValue=rawValueIsNonArrayObservable?modelValue.peek():modelValue,saveOldValue=oldElemValue;oldElemValue=elemValue;if(saveOldValue!==elemValue){if(isChecked){ko.utils.addOrRemoveItem(writableValue,elemValue,true);ko.utils.addOrRemoveItem(writableValue,saveOldValue,false);}}else{ko.utils.addOrRemoveItem(writableValue,elemValue,isChecked);}\nif(rawValueIsNonArrayObservable&&ko.isWriteableObservable(modelValue)){modelValue(writableValue);}}else{if(isCheckbox){if(elemValue===undefined){elemValue=isChecked;}else if(!isChecked){elemValue=undefined;}}\nko.expressionRewriting.writeValueToProperty(modelValue,allBindings,'checked',elemValue,true);}};function updateView(){var modelValue=ko.utils.unwrapObservable(valueAccessor()),elemValue=checkedValue();if(valueIsArray){element.checked=ko.utils.arrayIndexOf(modelValue,elemValue)>=0;oldElemValue=elemValue;}else if(isCheckbox&&elemValue===undefined){element.checked=!!modelValue;}else{element.checked=(checkedValue()===modelValue);}};var isCheckbox=element.type==\"checkbox\",isRadio=element.type==\"radio\";if(!isCheckbox&&!isRadio){return;}\nvar rawValue=valueAccessor(),valueIsArray=isCheckbox&&(ko.utils.unwrapObservable(rawValue)instanceof Array),rawValueIsNonArrayObservable=!(valueIsArray&&rawValue.push&&rawValue.splice),useElementValue=isRadio||valueIsArray,oldElemValue=valueIsArray?checkedValue():undefined;if(isRadio&&!element.name)\nko.bindingHandlers['uniqueName']['init'](element,function(){return true});ko.computed(updateModel,null,{disposeWhenNodeIsRemoved:element});ko.utils.registerEventHandler(element,\"click\",updateModel);ko.computed(updateView,null,{disposeWhenNodeIsRemoved:element});rawValue=undefined;}};ko.expressionRewriting.twoWayBindings['checked']=true;ko.bindingHandlers['checkedValue']={'update':function(element,valueAccessor){element.value=ko.utils.unwrapObservable(valueAccessor());}};})();var classesWrittenByBindingKey='__ko__cssValue';ko.bindingHandlers['class']={'update':function(element,valueAccessor){var value=ko.utils.stringTrim(ko.utils.unwrapObservable(valueAccessor()));ko.utils.toggleDomNodeCssClass(element,element[classesWrittenByBindingKey],false);element[classesWrittenByBindingKey]=value;ko.utils.toggleDomNodeCssClass(element,value,true);}};ko.bindingHandlers['css']={'update':function(element,valueAccessor){var value=ko.utils.unwrapObservable(valueAccessor());if(value!==null&&typeof value==\"object\"){ko.utils.objectForEach(value,function(className,shouldHaveClass){shouldHaveClass=ko.utils.unwrapObservable(shouldHaveClass);ko.utils.toggleDomNodeCssClass(element,className,shouldHaveClass);});}else{ko.bindingHandlers['class']['update'](element,valueAccessor);}}};ko.bindingHandlers['enable']={'update':function(element,valueAccessor){var value=ko.utils.unwrapObservable(valueAccessor());if(value&&element.disabled)\nelement.removeAttribute(\"disabled\");else if((!value)&&(!element.disabled))\nelement.disabled=true;}};ko.bindingHandlers['disable']={'update':function(element,valueAccessor){ko.bindingHandlers['enable']['update'](element,function(){return!ko.utils.unwrapObservable(valueAccessor())});}};function makeEventHandlerShortcut(eventName){ko.bindingHandlers[eventName]={'init':function(element,valueAccessor,allBindings,viewModel,bindingContext){var newValueAccessor=function(){var result={};result[eventName]=valueAccessor();return result;};return ko.bindingHandlers['event']['init'].call(this,element,newValueAccessor,allBindings,viewModel,bindingContext);}}}\nko.bindingHandlers['event']={'init':function(element,valueAccessor,allBindings,viewModel,bindingContext){var eventsToHandle=valueAccessor()||{};ko.utils.objectForEach(eventsToHandle,function(eventName){if(typeof eventName==\"string\"){ko.utils.registerEventHandler(element,eventName,function(event){var handlerReturnValue;var handlerFunction=valueAccessor()[eventName];if(!handlerFunction)\nreturn;try{var argsForHandler=ko.utils.makeArray(arguments);viewModel=bindingContext['$data'];argsForHandler.unshift(viewModel);handlerReturnValue=handlerFunction.apply(viewModel,argsForHandler);}finally{if(handlerReturnValue!==true){if(event.preventDefault)\nevent.preventDefault();else\nevent.returnValue=false;}}\nvar bubble=allBindings.get(eventName+'Bubble')!==false;if(!bubble){event.cancelBubble=true;if(event.stopPropagation)\nevent.stopPropagation();}});}});}};ko.bindingHandlers['foreach']={makeTemplateValueAccessor:function(valueAccessor){return function(){var modelValue=valueAccessor(),unwrappedValue=ko.utils.peekObservable(modelValue);if((!unwrappedValue)||typeof unwrappedValue.length==\"number\")\nreturn{'foreach':modelValue,'templateEngine':ko.nativeTemplateEngine.instance};ko.utils.unwrapObservable(modelValue);return{'foreach':unwrappedValue['data'],'as':unwrappedValue['as'],'noChildContext':unwrappedValue['noChildContext'],'includeDestroyed':unwrappedValue['includeDestroyed'],'afterAdd':unwrappedValue['afterAdd'],'beforeRemove':unwrappedValue['beforeRemove'],'afterRender':unwrappedValue['afterRender'],'beforeMove':unwrappedValue['beforeMove'],'afterMove':unwrappedValue['afterMove'],'templateEngine':ko.nativeTemplateEngine.instance};};},'init':function(element,valueAccessor,allBindings,viewModel,bindingContext){return ko.bindingHandlers['template']['init'](element,ko.bindingHandlers['foreach'].makeTemplateValueAccessor(valueAccessor));},'update':function(element,valueAccessor,allBindings,viewModel,bindingContext){return ko.bindingHandlers['template']['update'](element,ko.bindingHandlers['foreach'].makeTemplateValueAccessor(valueAccessor),allBindings,viewModel,bindingContext);}};ko.expressionRewriting.bindingRewriteValidators['foreach']=false;ko.virtualElements.allowedBindings['foreach']=true;var hasfocusUpdatingProperty='__ko_hasfocusUpdating';var hasfocusLastValue='__ko_hasfocusLastValue';ko.bindingHandlers['hasfocus']={'init':function(element,valueAccessor,allBindings){var handleElementFocusChange=function(isFocused){element[hasfocusUpdatingProperty]=true;var ownerDoc=element.ownerDocument;if(\"activeElement\"in ownerDoc){var active;try{active=ownerDoc.activeElement;}catch(e){active=ownerDoc.body;}\nisFocused=(active===element);}\nvar modelValue=valueAccessor();ko.expressionRewriting.writeValueToProperty(modelValue,allBindings,'hasfocus',isFocused,true);element[hasfocusLastValue]=isFocused;element[hasfocusUpdatingProperty]=false;};var handleElementFocusIn=handleElementFocusChange.bind(null,true);var handleElementFocusOut=handleElementFocusChange.bind(null,false);ko.utils.registerEventHandler(element,\"focus\",handleElementFocusIn);ko.utils.registerEventHandler(element,\"focusin\",handleElementFocusIn);ko.utils.registerEventHandler(element,\"blur\",handleElementFocusOut);ko.utils.registerEventHandler(element,\"focusout\",handleElementFocusOut);element[hasfocusLastValue]=false;},'update':function(element,valueAccessor){var value=!!ko.utils.unwrapObservable(valueAccessor());if(!element[hasfocusUpdatingProperty]&&element[hasfocusLastValue]!==value){value?element.focus():element.blur();if(!value&&element[hasfocusLastValue]){element.ownerDocument.body.focus();}\nko.dependencyDetection.ignore(ko.utils.triggerEvent,null,[element,value?\"focusin\":\"focusout\"]);}}};ko.expressionRewriting.twoWayBindings['hasfocus']=true;ko.bindingHandlers['hasFocus']=ko.bindingHandlers['hasfocus'];ko.expressionRewriting.twoWayBindings['hasFocus']='hasfocus';ko.bindingHandlers['html']={'init':function(){return{'controlsDescendantBindings':true};},'update':function(element,valueAccessor){ko.utils.setHtml(element,valueAccessor());}};(function(){function makeWithIfBinding(bindingKey,isWith,isNot){ko.bindingHandlers[bindingKey]={'init':function(element,valueAccessor,allBindings,viewModel,bindingContext){var didDisplayOnLastUpdate,savedNodes,contextOptions={},completeOnRender,needAsyncContext,renderOnEveryChange;if(isWith){var as=allBindings.get('as'),noChildContext=allBindings.get('noChildContext');renderOnEveryChange=!(as&&noChildContext);contextOptions={'as':as,'noChildContext':noChildContext,'exportDependencies':renderOnEveryChange};}\ncompleteOnRender=allBindings.get(\"completeOn\")==\"render\";needAsyncContext=completeOnRender||allBindings['has'](ko.bindingEvent.descendantsComplete);ko.computed(function(){var value=ko.utils.unwrapObservable(valueAccessor()),shouldDisplay=!isNot!==!value,isInitial=!savedNodes,childContext;if(!renderOnEveryChange&&shouldDisplay===didDisplayOnLastUpdate){return;}\nif(needAsyncContext){bindingContext=ko.bindingEvent.startPossiblyAsyncContentBinding(element,bindingContext);}\nif(shouldDisplay){if(!isWith||renderOnEveryChange){contextOptions['dataDependency']=ko.computedContext.computed();}\nif(isWith){childContext=bindingContext['createChildContext'](typeof value==\"function\"?value:valueAccessor,contextOptions);}else if(ko.computedContext.getDependenciesCount()){childContext=bindingContext['extend'](null,contextOptions);}else{childContext=bindingContext;}}\nif(isInitial&&ko.computedContext.getDependenciesCount()){savedNodes=ko.utils.cloneNodes(ko.virtualElements.childNodes(element),true);}\nif(shouldDisplay){if(!isInitial){ko.virtualElements.setDomNodeChildren(element,ko.utils.cloneNodes(savedNodes));}\nko.applyBindingsToDescendants(childContext,element);}else{ko.virtualElements.emptyNode(element);if(!completeOnRender){ko.bindingEvent.notify(element,ko.bindingEvent.childrenComplete);}}\ndidDisplayOnLastUpdate=shouldDisplay;},null,{disposeWhenNodeIsRemoved:element});return{'controlsDescendantBindings':true};}};ko.expressionRewriting.bindingRewriteValidators[bindingKey]=false;ko.virtualElements.allowedBindings[bindingKey]=true;}\nmakeWithIfBinding('if');makeWithIfBinding('ifnot',false,true);makeWithIfBinding('with',true);})();ko.bindingHandlers['let']={'init':function(element,valueAccessor,allBindings,viewModel,bindingContext){var innerContext=bindingContext['extend'](valueAccessor);ko.applyBindingsToDescendants(innerContext,element);return{'controlsDescendantBindings':true};}};ko.virtualElements.allowedBindings['let']=true;var captionPlaceholder={};ko.bindingHandlers['options']={'init':function(element){if(ko.utils.tagNameLower(element)!==\"select\")\nthrow new Error(\"options binding applies only to SELECT elements\");while(element.length>0){element.remove(0);}\nreturn{'controlsDescendantBindings':true};},'update':function(element,valueAccessor,allBindings){function selectedOptions(){return ko.utils.arrayFilter(element.options,function(node){return node.selected;});}\nvar selectWasPreviouslyEmpty=element.length==0,multiple=element.multiple,previousScrollTop=(!selectWasPreviouslyEmpty&&multiple)?element.scrollTop:null,unwrappedArray=ko.utils.unwrapObservable(valueAccessor()),valueAllowUnset=allBindings.get('valueAllowUnset')&&allBindings['has']('value'),includeDestroyed=allBindings.get('optionsIncludeDestroyed'),arrayToDomNodeChildrenOptions={},captionValue,filteredArray,previousSelectedValues=[];if(!valueAllowUnset){if(multiple){previousSelectedValues=ko.utils.arrayMap(selectedOptions(),ko.selectExtensions.readValue);}else if(element.selectedIndex>=0){previousSelectedValues.push(ko.selectExtensions.readValue(element.options[element.selectedIndex]));}}\nif(unwrappedArray){if(typeof unwrappedArray.length==\"undefined\")\nunwrappedArray=[unwrappedArray];filteredArray=ko.utils.arrayFilter(unwrappedArray,function(item){return includeDestroyed||item===undefined||item===null||!ko.utils.unwrapObservable(item['_destroy']);});if(allBindings['has']('optionsCaption')){captionValue=ko.utils.unwrapObservable(allBindings.get('optionsCaption'));if(captionValue!==null&&captionValue!==undefined){filteredArray.unshift(captionPlaceholder);}}}else{}\nfunction applyToObject(object,predicate,defaultValue){var predicateType=typeof predicate;if(predicateType==\"function\")\nreturn predicate(object);else if(predicateType==\"string\")\nreturn object[predicate];else\nreturn defaultValue;}\nvar itemUpdate=false;function optionForArrayItem(arrayEntry,index,oldOptions){if(oldOptions.length){previousSelectedValues=!valueAllowUnset&&oldOptions[0].selected?[ko.selectExtensions.readValue(oldOptions[0])]:[];itemUpdate=true;}\nvar option=element.ownerDocument.createElement(\"option\");if(arrayEntry===captionPlaceholder){ko.utils.setTextContent(option,allBindings.get('optionsCaption'));ko.selectExtensions.writeValue(option,undefined);}else{var optionValue=applyToObject(arrayEntry,allBindings.get('optionsValue'),arrayEntry);ko.selectExtensions.writeValue(option,ko.utils.unwrapObservable(optionValue));var optionText=applyToObject(arrayEntry,allBindings.get('optionsText'),optionValue);ko.utils.setTextContent(option,optionText);}\nreturn[option];}\narrayToDomNodeChildrenOptions['beforeRemove']=function(option){element.removeChild(option);};function setSelectionCallback(arrayEntry,newOptions){if(itemUpdate&&valueAllowUnset){ko.bindingEvent.notify(element,ko.bindingEvent.childrenComplete);}else if(previousSelectedValues.length){var isSelected=ko.utils.arrayIndexOf(previousSelectedValues,ko.selectExtensions.readValue(newOptions[0]))>=0;ko.utils.setOptionNodeSelectionState(newOptions[0],isSelected);if(itemUpdate&&!isSelected){ko.dependencyDetection.ignore(ko.utils.triggerEvent,null,[element,\"change\"]);}}}\nvar callback=setSelectionCallback;if(allBindings['has']('optionsAfterRender')&&typeof allBindings.get('optionsAfterRender')==\"function\"){callback=function(arrayEntry,newOptions){setSelectionCallback(arrayEntry,newOptions);ko.dependencyDetection.ignore(allBindings.get('optionsAfterRender'),null,[newOptions[0],arrayEntry!==captionPlaceholder?arrayEntry:undefined]);}}\nko.utils.setDomNodeChildrenFromArrayMapping(element,filteredArray,optionForArrayItem,arrayToDomNodeChildrenOptions,callback);if(!valueAllowUnset){var selectionChanged;if(multiple){selectionChanged=previousSelectedValues.length&&selectedOptions().length<previousSelectedValues.length;}else{selectionChanged=(previousSelectedValues.length&&element.selectedIndex>=0)?(ko.selectExtensions.readValue(element.options[element.selectedIndex])!==previousSelectedValues[0]):(previousSelectedValues.length||element.selectedIndex>=0);}\nif(selectionChanged){ko.dependencyDetection.ignore(ko.utils.triggerEvent,null,[element,\"change\"]);}}\nif(valueAllowUnset||ko.computedContext.isInitial()){ko.bindingEvent.notify(element,ko.bindingEvent.childrenComplete);}\nko.utils.ensureSelectElementIsRenderedCorrectly(element);if(previousScrollTop&&Math.abs(previousScrollTop-element.scrollTop)>20)\nelement.scrollTop=previousScrollTop;}};ko.bindingHandlers['options'].optionValueDomDataKey=ko.utils.domData.nextKey();ko.bindingHandlers['selectedOptions']={'init':function(element,valueAccessor,allBindings){function updateFromView(){var value=valueAccessor(),valueToWrite=[];ko.utils.arrayForEach(element.getElementsByTagName(\"option\"),function(node){if(node.selected)\nvalueToWrite.push(ko.selectExtensions.readValue(node));});ko.expressionRewriting.writeValueToProperty(value,allBindings,'selectedOptions',valueToWrite);}\nfunction updateFromModel(){var newValue=ko.utils.unwrapObservable(valueAccessor()),previousScrollTop=element.scrollTop;if(newValue&&typeof newValue.length==\"number\"){ko.utils.arrayForEach(element.getElementsByTagName(\"option\"),function(node){var isSelected=ko.utils.arrayIndexOf(newValue,ko.selectExtensions.readValue(node))>=0;if(node.selected!=isSelected){ko.utils.setOptionNodeSelectionState(node,isSelected);}});}\nelement.scrollTop=previousScrollTop;}\nif(ko.utils.tagNameLower(element)!=\"select\"){throw new Error(\"selectedOptions binding applies only to SELECT elements\");}\nvar updateFromModelComputed;ko.bindingEvent.subscribe(element,ko.bindingEvent.childrenComplete,function(){if(!updateFromModelComputed){ko.utils.registerEventHandler(element,\"change\",updateFromView);updateFromModelComputed=ko.computed(updateFromModel,null,{disposeWhenNodeIsRemoved:element});}else{updateFromView();}},null,{'notifyImmediately':true});},'update':function(){}};ko.expressionRewriting.twoWayBindings['selectedOptions']=true;ko.bindingHandlers['style']={'update':function(element,valueAccessor){var value=ko.utils.unwrapObservable(valueAccessor()||{});ko.utils.objectForEach(value,function(styleName,styleValue){styleValue=ko.utils.unwrapObservable(styleValue);if(styleValue===null||styleValue===undefined||styleValue===false){styleValue=\"\";}\nif(jQueryInstance){jQueryInstance(element)['css'](styleName,styleValue);}else if(/^--/.test(styleName)){element.style.setProperty(styleName,styleValue);}else{styleName=styleName.replace(/-(\\w)/g,function(all,letter){return letter.toUpperCase();});var previousStyle=element.style[styleName];element.style[styleName]=styleValue;if(styleValue!==previousStyle&&element.style[styleName]==previousStyle&&!isNaN(styleValue)){element.style[styleName]=styleValue+\"px\";}}});}};ko.bindingHandlers['submit']={'init':function(element,valueAccessor,allBindings,viewModel,bindingContext){if(typeof valueAccessor()!=\"function\")\nthrow new Error(\"The value for a submit binding must be a function\");ko.utils.registerEventHandler(element,\"submit\",function(event){var handlerReturnValue;var value=valueAccessor();try{handlerReturnValue=value.call(bindingContext['$data'],element);}\nfinally{if(handlerReturnValue!==true){if(event.preventDefault)\nevent.preventDefault();else\nevent.returnValue=false;}}});}};ko.bindingHandlers['text']={'init':function(){return{'controlsDescendantBindings':true};},'update':function(element,valueAccessor){ko.utils.setTextContent(element,valueAccessor());}};ko.virtualElements.allowedBindings['text']=true;(function(){if(window&&window.navigator){var parseVersion=function(matches){if(matches){return parseFloat(matches[1]);}};var userAgent=window.navigator.userAgent,operaVersion,chromeVersion,safariVersion,firefoxVersion,ieVersion,edgeVersion;(operaVersion=window.opera&&window.opera.version&&parseInt(window.opera.version()))||(edgeVersion=parseVersion(userAgent.match(/Edge\\/([^ ]+)$/)))||(chromeVersion=parseVersion(userAgent.match(/Chrome\\/([^ ]+)/)))||(safariVersion=parseVersion(userAgent.match(/Version\\/([^ ]+) Safari/)))||(firefoxVersion=parseVersion(userAgent.match(/Firefox\\/([^ ]+)/)))||(ieVersion=ko.utils.ieVersion||parseVersion(userAgent.match(/MSIE ([^ ]+)/)))||(ieVersion=parseVersion(userAgent.match(/rv:([^ )]+)/)));}\nif(ieVersion>=8&&ieVersion<10){var selectionChangeRegisteredName=ko.utils.domData.nextKey(),selectionChangeHandlerName=ko.utils.domData.nextKey();var selectionChangeHandler=function(event){var target=this.activeElement,handler=target&&ko.utils.domData.get(target,selectionChangeHandlerName);if(handler){handler(event);}};var registerForSelectionChangeEvent=function(element,handler){var ownerDoc=element.ownerDocument;if(!ko.utils.domData.get(ownerDoc,selectionChangeRegisteredName)){ko.utils.domData.set(ownerDoc,selectionChangeRegisteredName,true);ko.utils.registerEventHandler(ownerDoc,'selectionchange',selectionChangeHandler);}\nko.utils.domData.set(element,selectionChangeHandlerName,handler);};}\nko.bindingHandlers['textInput']={'init':function(element,valueAccessor,allBindings){var previousElementValue=element.value,timeoutHandle,elementValueBeforeEvent;var updateModel=function(event){clearTimeout(timeoutHandle);elementValueBeforeEvent=timeoutHandle=undefined;var elementValue=element.value;if(previousElementValue!==elementValue){if(DEBUG&&event)element['_ko_textInputProcessedEvent']=event.type;previousElementValue=elementValue;ko.expressionRewriting.writeValueToProperty(valueAccessor(),allBindings,'textInput',elementValue);}};var deferUpdateModel=function(event){if(!timeoutHandle){elementValueBeforeEvent=element.value;var handler=DEBUG?updateModel.bind(element,{type:event.type}):updateModel;timeoutHandle=ko.utils.setTimeout(handler,4);}};var ieUpdateModel=ko.utils.ieVersion==9?deferUpdateModel:updateModel,ourUpdate=false;var updateView=function(){var modelValue=ko.utils.unwrapObservable(valueAccessor());if(modelValue===null||modelValue===undefined){modelValue='';}\nif(elementValueBeforeEvent!==undefined&&modelValue===elementValueBeforeEvent){ko.utils.setTimeout(updateView,4);return;}\nif(element.value!==modelValue){ourUpdate=true;element.value=modelValue;ourUpdate=false;previousElementValue=element.value;}};var onEvent=function(event,handler){ko.utils.registerEventHandler(element,event,handler);};if(DEBUG&&ko.bindingHandlers['textInput']['_forceUpdateOn']){ko.utils.arrayForEach(ko.bindingHandlers['textInput']['_forceUpdateOn'],function(eventName){if(eventName.slice(0,5)=='after'){onEvent(eventName.slice(5),deferUpdateModel);}else{onEvent(eventName,updateModel);}});}else{if(ieVersion){onEvent('keypress',updateModel);}\nif(ieVersion<11){onEvent('propertychange',function(event){if(!ourUpdate&&event.propertyName==='value'){ieUpdateModel(event);}});}\nif(ieVersion==8){onEvent('keyup',updateModel);onEvent('keydown',updateModel);}\nif(registerForSelectionChangeEvent){registerForSelectionChangeEvent(element,ieUpdateModel);onEvent('dragend',deferUpdateModel);}\nif(!ieVersion||ieVersion>=9){onEvent('input',ieUpdateModel);}\nif(safariVersion<5&&ko.utils.tagNameLower(element)===\"textarea\"){onEvent('keydown',deferUpdateModel);onEvent('paste',deferUpdateModel);onEvent('cut',deferUpdateModel);}else if(operaVersion<11){onEvent('keydown',deferUpdateModel);}else if(firefoxVersion<4.0){onEvent('DOMAutoComplete',updateModel);onEvent('dragdrop',updateModel);onEvent('drop',updateModel);}else if(edgeVersion&&element.type===\"number\"){onEvent('keydown',deferUpdateModel);}}\nonEvent('change',updateModel);onEvent('blur',updateModel);ko.computed(updateView,null,{disposeWhenNodeIsRemoved:element});}};ko.expressionRewriting.twoWayBindings['textInput']=true;ko.bindingHandlers['textinput']={'preprocess':function(value,name,addBinding){addBinding('textInput',value);}};})();ko.bindingHandlers['uniqueName']={'init':function(element,valueAccessor){if(valueAccessor()){var name=\"ko_unique_\"+(++ko.bindingHandlers['uniqueName'].currentIndex);ko.utils.setElementName(element,name);}}};ko.bindingHandlers['uniqueName'].currentIndex=0;ko.bindingHandlers['using']={'init':function(element,valueAccessor,allBindings,viewModel,bindingContext){var options;if(allBindings['has']('as')){options={'as':allBindings.get('as'),'noChildContext':allBindings.get('noChildContext')};}\nvar innerContext=bindingContext['createChildContext'](valueAccessor,options);ko.applyBindingsToDescendants(innerContext,element);return{'controlsDescendantBindings':true};}};ko.virtualElements.allowedBindings['using']=true;ko.bindingHandlers['value']={'init':function(element,valueAccessor,allBindings){var tagName=ko.utils.tagNameLower(element),isInputElement=tagName==\"input\";if(isInputElement&&(element.type==\"checkbox\"||element.type==\"radio\")){ko.applyBindingAccessorsToNode(element,{'checkedValue':valueAccessor});return;}\nvar eventsToCatch=[];var requestedEventsToCatch=allBindings.get(\"valueUpdate\");var propertyChangedFired=false;var elementValueBeforeEvent=null;if(requestedEventsToCatch){if(typeof requestedEventsToCatch==\"string\"){eventsToCatch=[requestedEventsToCatch];}else{eventsToCatch=ko.utils.arrayGetDistinctValues(requestedEventsToCatch);}\nko.utils.arrayRemoveItem(eventsToCatch,\"change\");}\nvar valueUpdateHandler=function(){elementValueBeforeEvent=null;propertyChangedFired=false;var modelValue=valueAccessor();var elementValue=ko.selectExtensions.readValue(element);ko.expressionRewriting.writeValueToProperty(modelValue,allBindings,'value',elementValue);}\nvar ieAutoCompleteHackNeeded=ko.utils.ieVersion&&isInputElement&&element.type==\"text\"&&element.autocomplete!=\"off\"&&(!element.form||element.form.autocomplete!=\"off\");if(ieAutoCompleteHackNeeded&&ko.utils.arrayIndexOf(eventsToCatch,\"propertychange\")==-1){ko.utils.registerEventHandler(element,\"propertychange\",function(){propertyChangedFired=true});ko.utils.registerEventHandler(element,\"focus\",function(){propertyChangedFired=false});ko.utils.registerEventHandler(element,\"blur\",function(){if(propertyChangedFired){valueUpdateHandler();}});}\nko.utils.arrayForEach(eventsToCatch,function(eventName){var handler=valueUpdateHandler;if(ko.utils.stringStartsWith(eventName,\"after\")){handler=function(){elementValueBeforeEvent=ko.selectExtensions.readValue(element);ko.utils.setTimeout(valueUpdateHandler,0);};eventName=eventName.substring(\"after\".length);}\nko.utils.registerEventHandler(element,eventName,handler);});var updateFromModel;if(isInputElement&&element.type==\"file\"){updateFromModel=function(){var newValue=ko.utils.unwrapObservable(valueAccessor());if(newValue===null||newValue===undefined||newValue===\"\"){element.value=\"\";}else{ko.dependencyDetection.ignore(valueUpdateHandler);}}}else{updateFromModel=function(){var newValue=ko.utils.unwrapObservable(valueAccessor());var elementValue=ko.selectExtensions.readValue(element);if(elementValueBeforeEvent!==null&&newValue===elementValueBeforeEvent){ko.utils.setTimeout(updateFromModel,0);return;}\nvar valueHasChanged=newValue!==elementValue;if(valueHasChanged||elementValue===undefined){if(tagName===\"select\"){var allowUnset=allBindings.get('valueAllowUnset');ko.selectExtensions.writeValue(element,newValue,allowUnset);if(!allowUnset&&newValue!==ko.selectExtensions.readValue(element)){ko.dependencyDetection.ignore(valueUpdateHandler);}}else{ko.selectExtensions.writeValue(element,newValue);}}};}\nif(tagName===\"select\"){var updateFromModelComputed;ko.bindingEvent.subscribe(element,ko.bindingEvent.childrenComplete,function(){if(!updateFromModelComputed){ko.utils.registerEventHandler(element,\"change\",valueUpdateHandler);updateFromModelComputed=ko.computed(updateFromModel,null,{disposeWhenNodeIsRemoved:element});}else if(allBindings.get('valueAllowUnset')){updateFromModel();}else{valueUpdateHandler();}},null,{'notifyImmediately':true});}else{ko.utils.registerEventHandler(element,\"change\",valueUpdateHandler);ko.computed(updateFromModel,null,{disposeWhenNodeIsRemoved:element});}},'update':function(){}};ko.expressionRewriting.twoWayBindings['value']=true;ko.bindingHandlers['visible']={'update':function(element,valueAccessor){var value=ko.utils.unwrapObservable(valueAccessor());var isCurrentlyVisible=!(element.style.display==\"none\");if(value&&!isCurrentlyVisible)\nelement.style.display=\"\";else if((!value)&&isCurrentlyVisible)\nelement.style.display=\"none\";}};ko.bindingHandlers['hidden']={'update':function(element,valueAccessor){ko.bindingHandlers['visible']['update'](element,function(){return!ko.utils.unwrapObservable(valueAccessor())});}};makeEventHandlerShortcut('click');ko.templateEngine=function(){};ko.templateEngine.prototype['renderTemplateSource']=function(templateSource,bindingContext,options,templateDocument){throw new Error(\"Override renderTemplateSource\");};ko.templateEngine.prototype['createJavaScriptEvaluatorBlock']=function(script){throw new Error(\"Override createJavaScriptEvaluatorBlock\");};ko.templateEngine.prototype['makeTemplateSource']=function(template,templateDocument){if(typeof template==\"string\"){templateDocument=templateDocument||document;var elem=templateDocument.getElementById(template);if(!elem)\nthrow new Error(\"Cannot find template with ID \"+template);return new ko.templateSources.domElement(elem);}else if((template.nodeType==1)||(template.nodeType==8)){return new ko.templateSources.anonymousTemplate(template);}else\nthrow new Error(\"Unknown template type: \"+template);};ko.templateEngine.prototype['renderTemplate']=function(template,bindingContext,options,templateDocument){var templateSource=this['makeTemplateSource'](template,templateDocument);return this['renderTemplateSource'](templateSource,bindingContext,options,templateDocument);};ko.templateEngine.prototype['isTemplateRewritten']=function(template,templateDocument){if(this['allowTemplateRewriting']===false)\nreturn true;return this['makeTemplateSource'](template,templateDocument)['data'](\"isRewritten\");};ko.templateEngine.prototype['rewriteTemplate']=function(template,rewriterCallback,templateDocument){var templateSource=this['makeTemplateSource'](template,templateDocument);var rewritten=rewriterCallback(templateSource['text']());templateSource['text'](rewritten);templateSource['data'](\"isRewritten\",true);};ko.exportSymbol('templateEngine',ko.templateEngine);ko.templateRewriting=(function(){var memoizeDataBindingAttributeSyntaxRegex=/(<([a-z]+\\d*)(?:\\s+(?!data-bind\\s*=\\s*)[a-z0-9\\-]+(?:=(?:\\\"[^\\\"]*\\\"|\\'[^\\']*\\'|[^>]*))?)*\\s+)data-bind\\s*=\\s*([\"'])([\\s\\S]*?)\\3/gi;var memoizeVirtualContainerBindingSyntaxRegex=/<!--\\s*ko\\b\\s*([\\s\\S]*?)\\s*-->/g;function validateDataBindValuesForRewriting(keyValueArray){var allValidators=ko.expressionRewriting.bindingRewriteValidators;for(var i=0;i<keyValueArray.length;i++){var key=keyValueArray[i]['key'];if(Object.prototype.hasOwnProperty.call(allValidators,key)){var validator=allValidators[key];if(typeof validator===\"function\"){var possibleErrorMessage=validator(keyValueArray[i]['value']);if(possibleErrorMessage)\nthrow new Error(possibleErrorMessage);}else if(!validator){throw new Error(\"This template engine does not support the '\"+key+\"' binding within its templates\");}}}}\nfunction constructMemoizedTagReplacement(dataBindAttributeValue,tagToRetain,nodeName,templateEngine){var dataBindKeyValueArray=ko.expressionRewriting.parseObjectLiteral(dataBindAttributeValue);validateDataBindValuesForRewriting(dataBindKeyValueArray);var rewrittenDataBindAttributeValue=ko.expressionRewriting.preProcessBindings(dataBindKeyValueArray,{'valueAccessors':true});var applyBindingsToNextSiblingScript=\"ko.__tr_ambtns(function($context,$element){return(function(){return{ \"+rewrittenDataBindAttributeValue+\" } })()},'\"+nodeName.toLowerCase()+\"')\";return templateEngine['createJavaScriptEvaluatorBlock'](applyBindingsToNextSiblingScript)+tagToRetain;}\nreturn{ensureTemplateIsRewritten:function(template,templateEngine,templateDocument){if(!templateEngine['isTemplateRewritten'](template,templateDocument))\ntemplateEngine['rewriteTemplate'](template,function(htmlString){return ko.templateRewriting.memoizeBindingAttributeSyntax(htmlString,templateEngine);},templateDocument);},memoizeBindingAttributeSyntax:function(htmlString,templateEngine){return htmlString.replace(memoizeDataBindingAttributeSyntaxRegex,function(){return constructMemoizedTagReplacement(arguments[4],arguments[1],arguments[2],templateEngine);}).replace(memoizeVirtualContainerBindingSyntaxRegex,function(){return constructMemoizedTagReplacement(arguments[1],\"<!-- ko -->\",\"#comment\",templateEngine);});},applyMemoizedBindingsToNextSibling:function(bindings,nodeName){return ko.memoization.memoize(function(domNode,bindingContext){var nodeToBind=domNode.nextSibling;if(nodeToBind&&nodeToBind.nodeName.toLowerCase()===nodeName){ko.applyBindingAccessorsToNode(nodeToBind,bindings,bindingContext);}});}}})();ko.exportSymbol('__tr_ambtns',ko.templateRewriting.applyMemoizedBindingsToNextSibling);(function(){ko.templateSources={};var templateScript=1,templateTextArea=2,templateTemplate=3,templateElement=4;ko.templateSources.domElement=function(element){this.domElement=element;if(element){var tagNameLower=ko.utils.tagNameLower(element);this.templateType=tagNameLower===\"script\"?templateScript:tagNameLower===\"textarea\"?templateTextArea:tagNameLower==\"template\"&&element.content&&element.content.nodeType===11?templateTemplate:templateElement;}}\nko.templateSources.domElement.prototype['text']=function(){var elemContentsProperty=this.templateType===templateScript?\"text\":this.templateType===templateTextArea?\"value\":\"innerHTML\";if(arguments.length==0){return this.domElement[elemContentsProperty];}else{var valueToWrite=arguments[0];if(elemContentsProperty===\"innerHTML\")\nko.utils.setHtml(this.domElement,valueToWrite);else\nthis.domElement[elemContentsProperty]=valueToWrite;}};var dataDomDataPrefix=ko.utils.domData.nextKey()+\"_\";ko.templateSources.domElement.prototype['data']=function(key){if(arguments.length===1){return ko.utils.domData.get(this.domElement,dataDomDataPrefix+key);}else{ko.utils.domData.set(this.domElement,dataDomDataPrefix+key,arguments[1]);}};var templatesDomDataKey=ko.utils.domData.nextKey();function getTemplateDomData(element){return ko.utils.domData.get(element,templatesDomDataKey)||{};}\nfunction setTemplateDomData(element,data){ko.utils.domData.set(element,templatesDomDataKey,data);}\nko.templateSources.domElement.prototype['nodes']=function(){var element=this.domElement;if(arguments.length==0){var templateData=getTemplateDomData(element),nodes=templateData.containerData||(this.templateType===templateTemplate?element.content:this.templateType===templateElement?element:undefined);if(!nodes||templateData.alwaysCheckText){var text=this['text']();if(text&&text!==templateData.textData){nodes=ko.utils.parseHtmlForTemplateNodes(text,element.ownerDocument);setTemplateDomData(element,{containerData:nodes,textData:text,alwaysCheckText:true});}}\nreturn nodes;}else{var valueToWrite=arguments[0];if(this.templateType!==undefined){this['text'](\"\");}\nsetTemplateDomData(element,{containerData:valueToWrite});}};ko.templateSources.anonymousTemplate=function(element){this.domElement=element;}\nko.templateSources.anonymousTemplate.prototype=new ko.templateSources.domElement();ko.templateSources.anonymousTemplate.prototype.constructor=ko.templateSources.anonymousTemplate;ko.templateSources.anonymousTemplate.prototype['text']=function(){if(arguments.length==0){var templateData=getTemplateDomData(this.domElement);if(templateData.textData===undefined&&templateData.containerData)\ntemplateData.textData=templateData.containerData.innerHTML;return templateData.textData;}else{var valueToWrite=arguments[0];setTemplateDomData(this.domElement,{textData:valueToWrite});}};ko.exportSymbol('templateSources',ko.templateSources);ko.exportSymbol('templateSources.domElement',ko.templateSources.domElement);ko.exportSymbol('templateSources.anonymousTemplate',ko.templateSources.anonymousTemplate);})();(function(){var _templateEngine;ko.setTemplateEngine=function(templateEngine){if((templateEngine!=undefined)&&!(templateEngine instanceof ko.templateEngine))\nthrow new Error(\"templateEngine must inherit from ko.templateEngine\");_templateEngine=templateEngine;}\nfunction invokeForEachNodeInContinuousRange(firstNode,lastNode,action){var node,nextInQueue=firstNode,firstOutOfRangeNode=ko.virtualElements.nextSibling(lastNode);while(nextInQueue&&((node=nextInQueue)!==firstOutOfRangeNode)){nextInQueue=ko.virtualElements.nextSibling(node);action(node,nextInQueue);}}\nfunction activateBindingsOnContinuousNodeArray(continuousNodeArray,bindingContext){if(continuousNodeArray.length){var firstNode=continuousNodeArray[0],lastNode=continuousNodeArray[continuousNodeArray.length-1],parentNode=firstNode.parentNode,provider=ko.bindingProvider['instance'],preprocessNode=provider['preprocessNode'];if(preprocessNode){invokeForEachNodeInContinuousRange(firstNode,lastNode,function(node,nextNodeInRange){var nodePreviousSibling=node.previousSibling;var newNodes=preprocessNode.call(provider,node);if(newNodes){if(node===firstNode)\nfirstNode=newNodes[0]||nextNodeInRange;if(node===lastNode)\nlastNode=newNodes[newNodes.length-1]||nodePreviousSibling;}});continuousNodeArray.length=0;if(!firstNode){return;}\nif(firstNode===lastNode){continuousNodeArray.push(firstNode);}else{continuousNodeArray.push(firstNode,lastNode);ko.utils.fixUpContinuousNodeArray(continuousNodeArray,parentNode);}}\ninvokeForEachNodeInContinuousRange(firstNode,lastNode,function(node){if(node.nodeType===1||node.nodeType===8)\nko.applyBindings(bindingContext,node);});invokeForEachNodeInContinuousRange(firstNode,lastNode,function(node){if(node.nodeType===1||node.nodeType===8)\nko.memoization.unmemoizeDomNodeAndDescendants(node,[bindingContext]);});ko.utils.fixUpContinuousNodeArray(continuousNodeArray,parentNode);}}\nfunction getFirstNodeFromPossibleArray(nodeOrNodeArray){return nodeOrNodeArray.nodeType?nodeOrNodeArray:nodeOrNodeArray.length>0?nodeOrNodeArray[0]:null;}\nfunction executeTemplate(targetNodeOrNodeArray,renderMode,template,bindingContext,options){options=options||{};var firstTargetNode=targetNodeOrNodeArray&&getFirstNodeFromPossibleArray(targetNodeOrNodeArray);var templateDocument=(firstTargetNode||template||{}).ownerDocument;var templateEngineToUse=(options['templateEngine']||_templateEngine);ko.templateRewriting.ensureTemplateIsRewritten(template,templateEngineToUse,templateDocument);var renderedNodesArray=templateEngineToUse['renderTemplate'](template,bindingContext,options,templateDocument);if((typeof renderedNodesArray.length!=\"number\")||(renderedNodesArray.length>0&&typeof renderedNodesArray[0].nodeType!=\"number\"))\nthrow new Error(\"Template engine must return an array of DOM nodes\");var haveAddedNodesToParent=false;switch(renderMode){case\"replaceChildren\":ko.virtualElements.setDomNodeChildren(targetNodeOrNodeArray,renderedNodesArray);haveAddedNodesToParent=true;break;case\"replaceNode\":ko.utils.replaceDomNodes(targetNodeOrNodeArray,renderedNodesArray);haveAddedNodesToParent=true;break;case\"ignoreTargetNode\":break;default:throw new Error(\"Unknown renderMode: \"+renderMode);}\nif(haveAddedNodesToParent){activateBindingsOnContinuousNodeArray(renderedNodesArray,bindingContext);if(options['afterRender']){ko.dependencyDetection.ignore(options['afterRender'],null,[renderedNodesArray,bindingContext[options['as']||'$data']]);}\nif(renderMode==\"replaceChildren\"){ko.bindingEvent.notify(targetNodeOrNodeArray,ko.bindingEvent.childrenComplete);}}\nreturn renderedNodesArray;}\nfunction resolveTemplateName(template,data,context){if(ko.isObservable(template)){return template();}else if(typeof template==='function'){return template(data,context);}else{return template;}}\nko.renderTemplate=function(template,dataOrBindingContext,options,targetNodeOrNodeArray,renderMode){options=options||{};if((options['templateEngine']||_templateEngine)==undefined)\nthrow new Error(\"Set a template engine before calling renderTemplate\");renderMode=renderMode||\"replaceChildren\";if(targetNodeOrNodeArray){var firstTargetNode=getFirstNodeFromPossibleArray(targetNodeOrNodeArray);var whenToDispose=function(){return(!firstTargetNode)||!ko.utils.domNodeIsAttachedToDocument(firstTargetNode);};var activelyDisposeWhenNodeIsRemoved=(firstTargetNode&&renderMode==\"replaceNode\")?firstTargetNode.parentNode:firstTargetNode;return ko.dependentObservable(function(){var bindingContext=(dataOrBindingContext&&(dataOrBindingContext instanceof ko.bindingContext))?dataOrBindingContext:new ko.bindingContext(dataOrBindingContext,null,null,null,{\"exportDependencies\":true});var templateName=resolveTemplateName(template,bindingContext['$data'],bindingContext),renderedNodesArray=executeTemplate(targetNodeOrNodeArray,renderMode,templateName,bindingContext,options);if(renderMode==\"replaceNode\"){targetNodeOrNodeArray=renderedNodesArray;firstTargetNode=getFirstNodeFromPossibleArray(targetNodeOrNodeArray);}},null,{disposeWhen:whenToDispose,disposeWhenNodeIsRemoved:activelyDisposeWhenNodeIsRemoved});}else{return ko.memoization.memoize(function(domNode){ko.renderTemplate(template,dataOrBindingContext,options,domNode,\"replaceNode\");});}};ko.renderTemplateForEach=function(template,arrayOrObservableArray,options,targetNode,parentBindingContext){var arrayItemContext,asName=options['as'];var executeTemplateForArrayItem=function(arrayValue,index){arrayItemContext=parentBindingContext['createChildContext'](arrayValue,{'as':asName,'noChildContext':options['noChildContext'],'extend':function(context){context['$index']=index;if(asName){context[asName+\"Index\"]=index;}}});var templateName=resolveTemplateName(template,arrayValue,arrayItemContext);return executeTemplate(targetNode,\"ignoreTargetNode\",templateName,arrayItemContext,options);};var activateBindingsCallback=function(arrayValue,addedNodesArray,index){activateBindingsOnContinuousNodeArray(addedNodesArray,arrayItemContext);if(options['afterRender'])\noptions['afterRender'](addedNodesArray,arrayValue);arrayItemContext=null;};var setDomNodeChildrenFromArrayMapping=function(newArray,changeList){ko.dependencyDetection.ignore(ko.utils.setDomNodeChildrenFromArrayMapping,null,[targetNode,newArray,executeTemplateForArrayItem,options,activateBindingsCallback,changeList]);ko.bindingEvent.notify(targetNode,ko.bindingEvent.childrenComplete);};var shouldHideDestroyed=(options['includeDestroyed']===false)||(ko.options['foreachHidesDestroyed']&&!options['includeDestroyed']);if(!shouldHideDestroyed&&!options['beforeRemove']&&ko.isObservableArray(arrayOrObservableArray)){setDomNodeChildrenFromArrayMapping(arrayOrObservableArray.peek());var subscription=arrayOrObservableArray.subscribe(function(changeList){setDomNodeChildrenFromArrayMapping(arrayOrObservableArray(),changeList);},null,\"arrayChange\");subscription.disposeWhenNodeIsRemoved(targetNode);return subscription;}else{return ko.dependentObservable(function(){var unwrappedArray=ko.utils.unwrapObservable(arrayOrObservableArray)||[];if(typeof unwrappedArray.length==\"undefined\")\nunwrappedArray=[unwrappedArray];if(shouldHideDestroyed){unwrappedArray=ko.utils.arrayFilter(unwrappedArray,function(item){return item===undefined||item===null||!ko.utils.unwrapObservable(item['_destroy']);});}\nsetDomNodeChildrenFromArrayMapping(unwrappedArray);},null,{disposeWhenNodeIsRemoved:targetNode});}};var templateComputedDomDataKey=ko.utils.domData.nextKey();function disposeOldComputedAndStoreNewOne(element,newComputed){var oldComputed=ko.utils.domData.get(element,templateComputedDomDataKey);if(oldComputed&&(typeof(oldComputed.dispose)=='function'))\noldComputed.dispose();ko.utils.domData.set(element,templateComputedDomDataKey,(newComputed&&(!newComputed.isActive||newComputed.isActive()))?newComputed:undefined);}\nvar cleanContainerDomDataKey=ko.utils.domData.nextKey();ko.bindingHandlers['template']={'init':function(element,valueAccessor){var bindingValue=ko.utils.unwrapObservable(valueAccessor());if(typeof bindingValue==\"string\"||'name'in bindingValue){ko.virtualElements.emptyNode(element);}else if('nodes'in bindingValue){var nodes=bindingValue['nodes']||[];if(ko.isObservable(nodes)){throw new Error('The \"nodes\" option must be a plain, non-observable array.');}\nvar container=nodes[0]&&nodes[0].parentNode;if(!container||!ko.utils.domData.get(container,cleanContainerDomDataKey)){container=ko.utils.moveCleanedNodesToContainerElement(nodes);ko.utils.domData.set(container,cleanContainerDomDataKey,true);}\nnew ko.templateSources.anonymousTemplate(element)['nodes'](container);}else{var templateNodes=ko.virtualElements.childNodes(element);if(templateNodes.length>0){var container=ko.utils.moveCleanedNodesToContainerElement(templateNodes);new ko.templateSources.anonymousTemplate(element)['nodes'](container);}else{throw new Error(\"Anonymous template defined, but no template content was provided\");}}\nreturn{'controlsDescendantBindings':true};},'update':function(element,valueAccessor,allBindings,viewModel,bindingContext){var value=valueAccessor(),options=ko.utils.unwrapObservable(value),shouldDisplay=true,templateComputed=null,template;if(typeof options==\"string\"){template=value;options={};}else{template='name'in options?options['name']:element;if('if'in options)\nshouldDisplay=ko.utils.unwrapObservable(options['if']);if(shouldDisplay&&'ifnot'in options)\nshouldDisplay=!ko.utils.unwrapObservable(options['ifnot']);if(shouldDisplay&&!template){shouldDisplay=false;}}\nif('foreach'in options){var dataArray=(shouldDisplay&&options['foreach'])||[];templateComputed=ko.renderTemplateForEach(template,dataArray,options,element,bindingContext);}else if(!shouldDisplay){ko.virtualElements.emptyNode(element);}else{var innerBindingContext=bindingContext;if('data'in options){innerBindingContext=bindingContext['createChildContext'](options['data'],{'as':options['as'],'noChildContext':options['noChildContext'],'exportDependencies':true});}\ntemplateComputed=ko.renderTemplate(template,innerBindingContext,options,element);}\ndisposeOldComputedAndStoreNewOne(element,templateComputed);}};ko.expressionRewriting.bindingRewriteValidators['template']=function(bindingValue){var parsedBindingValue=ko.expressionRewriting.parseObjectLiteral(bindingValue);if((parsedBindingValue.length==1)&&parsedBindingValue[0]['unknown'])\nreturn null;if(ko.expressionRewriting.keyValueArrayContainsKey(parsedBindingValue,\"name\"))\nreturn null;return\"This template engine does not support anonymous templates nested within its templates\";};ko.virtualElements.allowedBindings['template']=true;})();ko.exportSymbol('setTemplateEngine',ko.setTemplateEngine);ko.exportSymbol('renderTemplate',ko.renderTemplate);ko.utils.findMovesInArrayComparison=function(left,right,limitFailedCompares){if(left.length&&right.length){var failedCompares,l,r,leftItem,rightItem;for(failedCompares=l=0;(!limitFailedCompares||failedCompares<limitFailedCompares)&&(leftItem=left[l]);++l){for(r=0;rightItem=right[r];++r){if(leftItem['value']===rightItem['value']){leftItem['moved']=rightItem['index'];rightItem['moved']=leftItem['index'];right.splice(r,1);failedCompares=r=0;break;}}\nfailedCompares+=r;}}};ko.utils.compareArrays=(function(){var statusNotInOld='added',statusNotInNew='deleted';function compareArrays(oldArray,newArray,options){options=(typeof options==='boolean')?{'dontLimitMoves':options}:(options||{});oldArray=oldArray||[];newArray=newArray||[];if(oldArray.length<newArray.length)\nreturn compareSmallArrayToBigArray(oldArray,newArray,statusNotInOld,statusNotInNew,options);else\nreturn compareSmallArrayToBigArray(newArray,oldArray,statusNotInNew,statusNotInOld,options);}\nfunction compareSmallArrayToBigArray(smlArray,bigArray,statusNotInSml,statusNotInBig,options){var myMin=Math.min,myMax=Math.max,editDistanceMatrix=[],smlIndex,smlIndexMax=smlArray.length,bigIndex,bigIndexMax=bigArray.length,compareRange=(bigIndexMax-smlIndexMax)||1,maxDistance=smlIndexMax+bigIndexMax+1,thisRow,lastRow,bigIndexMaxForRow,bigIndexMinForRow;for(smlIndex=0;smlIndex<=smlIndexMax;smlIndex++){lastRow=thisRow;editDistanceMatrix.push(thisRow=[]);bigIndexMaxForRow=myMin(bigIndexMax,smlIndex+compareRange);bigIndexMinForRow=myMax(0,smlIndex-1);for(bigIndex=bigIndexMinForRow;bigIndex<=bigIndexMaxForRow;bigIndex++){if(!bigIndex)\nthisRow[bigIndex]=smlIndex+1;else if(!smlIndex)\nthisRow[bigIndex]=bigIndex+1;else if(smlArray[smlIndex-1]===bigArray[bigIndex-1])\nthisRow[bigIndex]=lastRow[bigIndex-1];else{var northDistance=lastRow[bigIndex]||maxDistance;var westDistance=thisRow[bigIndex-1]||maxDistance;thisRow[bigIndex]=myMin(northDistance,westDistance)+1;}}}\nvar editScript=[],meMinusOne,notInSml=[],notInBig=[];for(smlIndex=smlIndexMax,bigIndex=bigIndexMax;smlIndex||bigIndex;){meMinusOne=editDistanceMatrix[smlIndex][bigIndex]-1;if(bigIndex&&meMinusOne===editDistanceMatrix[smlIndex][bigIndex-1]){notInSml.push(editScript[editScript.length]={'status':statusNotInSml,'value':bigArray[--bigIndex],'index':bigIndex});}else if(smlIndex&&meMinusOne===editDistanceMatrix[smlIndex-1][bigIndex]){notInBig.push(editScript[editScript.length]={'status':statusNotInBig,'value':smlArray[--smlIndex],'index':smlIndex});}else{--bigIndex;--smlIndex;if(!options['sparse']){editScript.push({'status':\"retained\",'value':bigArray[bigIndex]});}}}\nko.utils.findMovesInArrayComparison(notInBig,notInSml,!options['dontLimitMoves']&&smlIndexMax*10);return editScript.reverse();}\nreturn compareArrays;})();ko.exportSymbol('utils.compareArrays',ko.utils.compareArrays);(function(){function mapNodeAndRefreshWhenChanged(containerNode,mapping,valueToMap,callbackAfterAddingNodes,index){var mappedNodes=[];var dependentObservable=ko.dependentObservable(function(){var newMappedNodes=mapping(valueToMap,index,ko.utils.fixUpContinuousNodeArray(mappedNodes,containerNode))||[];if(mappedNodes.length>0){ko.utils.replaceDomNodes(mappedNodes,newMappedNodes);if(callbackAfterAddingNodes)\nko.dependencyDetection.ignore(callbackAfterAddingNodes,null,[valueToMap,newMappedNodes,index]);}\nmappedNodes.length=0;ko.utils.arrayPushAll(mappedNodes,newMappedNodes);},null,{disposeWhenNodeIsRemoved:containerNode,disposeWhen:function(){return!ko.utils.anyDomNodeIsAttachedToDocument(mappedNodes);}});return{mappedNodes:mappedNodes,dependentObservable:(dependentObservable.isActive()?dependentObservable:undefined)};}\nvar lastMappingResultDomDataKey=ko.utils.domData.nextKey(),deletedItemDummyValue=ko.utils.domData.nextKey();ko.utils.setDomNodeChildrenFromArrayMapping=function(domNode,array,mapping,options,callbackAfterAddingNodes,editScript){array=array||[];if(typeof array.length==\"undefined\")\narray=[array];options=options||{};var lastMappingResult=ko.utils.domData.get(domNode,lastMappingResultDomDataKey);var isFirstExecution=!lastMappingResult;var newMappingResult=[];var lastMappingResultIndex=0;var currentArrayIndex=0;var nodesToDelete=[];var itemsToMoveFirstIndexes=[];var itemsForBeforeRemoveCallbacks=[];var itemsForMoveCallbacks=[];var itemsForAfterAddCallbacks=[];var mapData;var countWaitingForRemove=0;function itemAdded(value){mapData={arrayEntry:value,indexObservable:ko.observable(currentArrayIndex++)};newMappingResult.push(mapData);if(!isFirstExecution){itemsForAfterAddCallbacks.push(mapData);}}\nfunction itemMovedOrRetained(oldPosition){mapData=lastMappingResult[oldPosition];if(currentArrayIndex!==mapData.indexObservable.peek())\nitemsForMoveCallbacks.push(mapData);mapData.indexObservable(currentArrayIndex++);ko.utils.fixUpContinuousNodeArray(mapData.mappedNodes,domNode);newMappingResult.push(mapData);}\nfunction callCallback(callback,items){if(callback){for(var i=0,n=items.length;i<n;i++){ko.utils.arrayForEach(items[i].mappedNodes,function(node){callback(node,i,items[i].arrayEntry);});}}}\nif(isFirstExecution){ko.utils.arrayForEach(array,itemAdded);}else{if(!editScript||(lastMappingResult&&lastMappingResult['_countWaitingForRemove'])){var lastArray=ko.utils.arrayMap(lastMappingResult,function(x){return x.arrayEntry;}),compareOptions={'dontLimitMoves':options['dontLimitMoves'],'sparse':true};editScript=ko.utils.compareArrays(lastArray,array,compareOptions);}\nfor(var i=0,editScriptItem,movedIndex,itemIndex;editScriptItem=editScript[i];i++){movedIndex=editScriptItem['moved'];itemIndex=editScriptItem['index'];switch(editScriptItem['status']){case\"deleted\":while(lastMappingResultIndex<itemIndex){itemMovedOrRetained(lastMappingResultIndex++);}\nif(movedIndex===undefined){mapData=lastMappingResult[lastMappingResultIndex];if(mapData.dependentObservable){mapData.dependentObservable.dispose();mapData.dependentObservable=undefined;}\nif(ko.utils.fixUpContinuousNodeArray(mapData.mappedNodes,domNode).length){if(options['beforeRemove']){newMappingResult.push(mapData);countWaitingForRemove++;if(mapData.arrayEntry===deletedItemDummyValue){mapData=null;}else{itemsForBeforeRemoveCallbacks.push(mapData);}}\nif(mapData){nodesToDelete.push.apply(nodesToDelete,mapData.mappedNodes);}}}\nlastMappingResultIndex++;break;case\"added\":while(currentArrayIndex<itemIndex){itemMovedOrRetained(lastMappingResultIndex++);}\nif(movedIndex!==undefined){itemsToMoveFirstIndexes.push(newMappingResult.length);itemMovedOrRetained(movedIndex);}else{itemAdded(editScriptItem['value']);}\nbreak;}}\nwhile(currentArrayIndex<array.length){itemMovedOrRetained(lastMappingResultIndex++);}\nnewMappingResult['_countWaitingForRemove']=countWaitingForRemove;}\nko.utils.domData.set(domNode,lastMappingResultDomDataKey,newMappingResult);callCallback(options['beforeMove'],itemsForMoveCallbacks);ko.utils.arrayForEach(nodesToDelete,options['beforeRemove']?ko.cleanNode:ko.removeNode);var i,j,lastNode,nodeToInsert,mappedNodes,activeElement;try{activeElement=domNode.ownerDocument.activeElement;}catch(e){}\nif(itemsToMoveFirstIndexes.length){while((i=itemsToMoveFirstIndexes.shift())!=undefined){mapData=newMappingResult[i];for(lastNode=undefined;i;){if((mappedNodes=newMappingResult[--i].mappedNodes)&&mappedNodes.length){lastNode=mappedNodes[mappedNodes.length-1];break;}}\nfor(j=0;nodeToInsert=mapData.mappedNodes[j];lastNode=nodeToInsert,j++){ko.virtualElements.insertAfter(domNode,nodeToInsert,lastNode);}}}\nfor(i=0;mapData=newMappingResult[i];i++){if(!mapData.mappedNodes)\nko.utils.extend(mapData,mapNodeAndRefreshWhenChanged(domNode,mapping,mapData.arrayEntry,callbackAfterAddingNodes,mapData.indexObservable));for(j=0;nodeToInsert=mapData.mappedNodes[j];lastNode=nodeToInsert,j++){ko.virtualElements.insertAfter(domNode,nodeToInsert,lastNode);}\nif(!mapData.initialized&&callbackAfterAddingNodes){callbackAfterAddingNodes(mapData.arrayEntry,mapData.mappedNodes,mapData.indexObservable);mapData.initialized=true;lastNode=mapData.mappedNodes[mapData.mappedNodes.length-1];}}\nif(activeElement&&domNode.ownerDocument.activeElement!=activeElement){activeElement.focus();}\ncallCallback(options['beforeRemove'],itemsForBeforeRemoveCallbacks);for(i=0;i<itemsForBeforeRemoveCallbacks.length;++i){itemsForBeforeRemoveCallbacks[i].arrayEntry=deletedItemDummyValue;}\ncallCallback(options['afterMove'],itemsForMoveCallbacks);callCallback(options['afterAdd'],itemsForAfterAddCallbacks);}})();ko.exportSymbol('utils.setDomNodeChildrenFromArrayMapping',ko.utils.setDomNodeChildrenFromArrayMapping);ko.nativeTemplateEngine=function(){this['allowTemplateRewriting']=false;}\nko.nativeTemplateEngine.prototype=new ko.templateEngine();ko.nativeTemplateEngine.prototype.constructor=ko.nativeTemplateEngine;ko.nativeTemplateEngine.prototype['renderTemplateSource']=function(templateSource,bindingContext,options,templateDocument){var useNodesIfAvailable=!(ko.utils.ieVersion<9),templateNodesFunc=useNodesIfAvailable?templateSource['nodes']:null,templateNodes=templateNodesFunc?templateSource['nodes']():null;if(templateNodes){return ko.utils.makeArray(templateNodes.cloneNode(true).childNodes);}else{var templateText=templateSource['text']();return ko.utils.parseHtmlFragment(templateText,templateDocument);}};ko.nativeTemplateEngine.instance=new ko.nativeTemplateEngine();ko.setTemplateEngine(ko.nativeTemplateEngine.instance);ko.exportSymbol('nativeTemplateEngine',ko.nativeTemplateEngine);(function(){ko.jqueryTmplTemplateEngine=function(){var jQueryTmplVersion=this.jQueryTmplVersion=(function(){if(!jQueryInstance||!(jQueryInstance['tmpl']))\nreturn 0;try{if(jQueryInstance['tmpl']['tag']['tmpl']['open'].toString().indexOf('__')>=0){return 2;}}catch(ex){}\nreturn 1;})();function ensureHasReferencedJQueryTemplates(){if(jQueryTmplVersion<2)\nthrow new Error(\"Your version of jQuery.tmpl is too old. Please upgrade to jQuery.tmpl 1.0.0pre or later.\");}\nfunction executeTemplate(compiledTemplate,data,jQueryTemplateOptions){return jQueryInstance['tmpl'](compiledTemplate,data,jQueryTemplateOptions);}\nthis['renderTemplateSource']=function(templateSource,bindingContext,options,templateDocument){templateDocument=templateDocument||document;options=options||{};ensureHasReferencedJQueryTemplates();var precompiled=templateSource['data']('precompiled');if(!precompiled){var templateText=templateSource['text']()||\"\";templateText=\"{{ko_with $item.koBindingContext}}\"+templateText+\"{{/ko_with}}\";precompiled=jQueryInstance['template'](null,templateText);templateSource['data']('precompiled',precompiled);}\nvar data=[bindingContext['$data']];var jQueryTemplateOptions=jQueryInstance['extend']({'koBindingContext':bindingContext},options['templateOptions']);var resultNodes=executeTemplate(precompiled,data,jQueryTemplateOptions);resultNodes['appendTo'](templateDocument.createElement(\"div\"));jQueryInstance['fragments']={};return resultNodes;};this['createJavaScriptEvaluatorBlock']=function(script){return\"{{ko_code ((function() { return \"+script+\" })()) }}\";};this['addTemplate']=function(templateName,templateMarkup){document.write(\"<script type='text/html' id='\"+templateName+\"'>\"+templateMarkup+\"<\"+\"/script>\");};if(jQueryTmplVersion>0){jQueryInstance['tmpl']['tag']['ko_code']={open:\"__.push($1 || '');\"};jQueryInstance['tmpl']['tag']['ko_with']={open:\"with($1) {\",close:\"} \"};}};ko.jqueryTmplTemplateEngine.prototype=new ko.templateEngine();ko.jqueryTmplTemplateEngine.prototype.constructor=ko.jqueryTmplTemplateEngine;var jqueryTmplTemplateEngineInstance=new ko.jqueryTmplTemplateEngine();if(jqueryTmplTemplateEngineInstance.jQueryTmplVersion>0)\nko.setTemplateEngine(jqueryTmplTemplateEngineInstance);ko.exportSymbol('jqueryTmplTemplateEngine',ko.jqueryTmplTemplateEngine);})();}));}());})();","Magento_Directory/js/region-updater.min.js":"define(['jquery','mage/template','underscore','jquery-ui-modules/widget','mage/validation'],function($,mageTemplate,_){'use strict';$.widget('mage.directoryRegionUpdater',{options:{regionTemplate:'<option value=\"<%- data.value %>\" <% if (data.isSelected) { %>selected=\"selected\"<% } %>>'+'<%- data.title %>'+'</option>',isRegionRequired:true,isZipRequired:true,isCountryRequired:true,currentRegion:null,isMultipleCountriesAllowed:true},_create:function(){this._initCountryElement();this.currentRegionOption=this.options.currentRegion;this.regionTmpl=mageTemplate(this.options.regionTemplate);this._updateRegion(this.element.find('option:selected').val());$(this.options.regionListId).on('change',$.proxy(function(e){this.setOption=false;this.currentRegionOption=$(e.target).val();},this));$(this.options.regionInputId).on('focusout',$.proxy(function(){this.setOption=true;},this));},_initCountryElement:function(){if(this.options.isMultipleCountriesAllowed){this.element.parents('div.field').show();this.element.on('change',$.proxy(function(e){$(this.options.regionListId).val('');$(this.options.regionInputId).val('');this._updateRegion($(e.target).val());},this));if(this.options.isCountryRequired){this.element.addClass('required-entry');this.element.parents('div.field').addClass('required');}}else{this.element.parents('div.field').hide();}},_removeSelectOptions:function(selectElement){selectElement.find('option').each(function(index){if(index){$(this).remove();}});},_renderSelectOption:function(selectElement,key,value){selectElement.append($.proxy(function(){var name=value.name.replace(/[!\"#$%&'()*+,.\\/:;<=>?@[\\\\\\]^`{|}~]/g,'\\\\$&'),tmplData,tmpl;if(value.code&&$(name).is('span')){key=value.code;value.name=$(name).text();}\ntmplData={value:key,title:value.name,isSelected:false};if(this.options.defaultRegion===key){tmplData.isSelected=true;}\ntmpl=this.regionTmpl({data:tmplData});return $(tmpl);},this));},_clearError:function(){var args=['clearError',this.options.regionListId,this.options.regionInputId,this.options.postcodeId];if(this.options.clearError&&typeof this.options.clearError==='function'){this.options.clearError.call(this);}else{if(!this.options.form){this.options.form=this.element.closest('form').length?$(this.element.closest('form')[0]):null;}\nthis.options.form=$(this.options.form);this.options.form&&this.options.form.data('validator')&&this.options.form.validation.apply(this.options.form,_.compact(args));$(this.options.regionInputId).removeClass('mage-error').parent().find('[generated]').remove();$(this.options.regionListId).removeClass('mage-error').parent().find('[generated]').remove();$(this.options.postcodeId).removeClass('mage-error').parent().find('[generated]').remove();}},_updateRegion:function(country){var regionList=$(this.options.regionListId),regionInput=$(this.options.regionInputId),postcode=$(this.options.postcodeId),label=regionList.parent().siblings('label'),container=regionList.parents('div.field'),regionsEntries,regionId,regionData;this._clearError();this._checkRegionRequired(country);if(this.options.regionJson[country]){this._removeSelectOptions(regionList);regionsEntries=_.pairs(this.options.regionJson[country]);$.each(regionsEntries,$.proxy(function(key,value){regionData=value[1];regionId=regionData.id;this._renderSelectOption(regionList,regionId.toString(),regionData);},this));if(this.currentRegionOption){regionList.val(this.currentRegionOption);}\nif(this.setOption){regionList.find('option').filter(function(){return this.text===regionInput.val();}).attr('selected',true);}\nif(this.options.isRegionRequired){regionList.addClass('required-entry').removeAttr('disabled');container.addClass('required').show();}else{regionList.removeClass('required-entry validate-select').removeAttr('data-validate');container.removeClass('required');if(!this.options.optionalRegionAllowed){regionList.hide();container.hide();}else{regionList.removeAttr('disabled').show();}}\nregionList.show();regionInput.hide();label.attr('for',regionList.attr('id'));}else{this._removeSelectOptions(regionList);if(this.options.isRegionRequired){regionInput.addClass('required-entry').removeAttr('disabled');container.addClass('required').show();}else{if(!this.options.optionalRegionAllowed){regionInput.attr('disabled','disabled');container.hide();}\ncontainer.removeClass('required');regionInput.removeClass('required-entry');}\nregionList.removeClass('required-entry').prop('disabled','disabled').hide();regionInput.show();label.attr('for',regionInput.attr('id'));}\nif(this.options.isZipRequired){$.inArray(country,this.options.countriesWithOptionalZip)>=0?postcode.removeClass('required-entry').closest('.field').removeClass('required'):postcode.addClass('required-entry').closest('.field').addClass('required');}\nregionList.attr('defaultvalue',this.options.defaultRegion);this.options.form.find('[type=\"submit\"]').removeAttr('disabled').show();},_checkRegionRequired:function(country){var self=this;this.options.isRegionRequired=false;$.each(this.options.regionJson.config['regions_required'],function(index,elem){if(elem===country){self.options.isRegionRequired=true;}});}});return $.mage.directoryRegionUpdater;});","Magento_ProductVideo/js/fotorama-add-video-events.min.js":"define(['jquery','jquery-ui-modules/widget','catalogGallery','loadPlayer'],function($){'use strict';var allowBase=true;function parseHref(href){var a=document.createElement('a');a.href=href;return a;}\nfunction parseURL(href,forceVideo){var id,type,ampersandPosition,vimeoRegex,useYoutubeNocookie=false;function _getYoutubeId(srcid){if(srcid){ampersandPosition=srcid.indexOf('&');if(ampersandPosition===-1){return srcid;}\nsrcid=srcid.substring(0,ampersandPosition);}\nreturn srcid;}\nif(typeof href!=='string'){return href;}\nhref=parseHref(href);if(href.host.match(/youtube\\.com/)&&href.search){id=href.search.split('v=')[1];if(id){id=_getYoutubeId(id);type='youtube';}}else if(href.host.match(/youtube\\.com|youtu\\.be|youtube-nocookie.com/)){id=href.pathname.replace(/^\\/(embed\\/|v\\/)?/,'').replace(/\\/.*/,'');type='youtube';if(href.host.match(/youtube-nocookie.com/)){useYoutubeNocookie=true;}}else if(href.host.match(/vimeo\\.com/)){type='vimeo';vimeoRegex=new RegExp(['https?:\\\\/\\\\/(?:www\\\\.|player\\\\.)?vimeo.com\\\\/(?:channels\\\\/(?:\\\\w+\\\\/)','?|groups\\\\/([^\\\\/]*)\\\\/videos\\\\/|album\\\\/(\\\\d+)\\\\/video\\\\/|video\\\\/|)(\\\\d+)(?:$|\\\\/|\\\\?)'].join(''));id=href.href.match(vimeoRegex)[3];}\nif((!id||!type)&&forceVideo){id=href.href;type='custom';}\nreturn id?{id:id,type:type,s:href.search.replace(/^\\?/,''),useYoutubeNocookie:useYoutubeNocookie}:false;}\n$.widget('mage.AddFotoramaVideoEvents',{options:{videoData:'',videoSettings:'',optionsVideoData:'',dataMergeStrategy:'replace'},onVimeoJSFramework:function(){},defaultVideoData:[],PV:'product-video',VU:'video-unplayed',PVLOADED:'fotorama__product-video--loaded',PVLOADING:'fotorama__product-video--loading',VID:'video',VI:'vimeo',FTVC:'fotorama__video-close',FTAR:'fotorama__arr',fotoramaSpinner:'fotorama__spinner',fotoramaSpinnerShow:'fotorama__spinner--show',TI:'video-thumb-icon',isFullscreen:false,FTCF:'[data-gallery-role=\"fotorama__fullscreen-icon\"]',Base:0,MobileMaxWidth:768,GP:'gallery-placeholder',videoData:null,videoDataPlaceholder:[{id:'',isBase:true,mediaType:'image',provider:''}],_create:function(){$(this.element).data('gallery')?this._onGalleryLoaded():$(this.element).on('gallery:loaded',this._onGalleryLoaded.bind(this));},_initialize:function(){if(!this.defaultVideoData.length){this.defaultVideoData=this.options.videoData;}\nif(!this.defaultVideoData.length&&!this.options.videoData.length){this.defaultVideoData=this.options.videoData=this.videoDataPlaceholder;}\nthis.clearEvents();if(this._checkForVideoExist()){this._checkFullscreen();this._listenForFullscreen();this._isVideoBase();this._initFotoramaVideo();this._attachFotoramaEvents();}},_onGalleryLoaded:function(){this.fotoramaItem=$(this.element).find('.fotorama-item');this._initialize();},clearEvents:function(){if(this.fotoramaItem!==undefined){this.fotoramaItem.off('fotorama:show.'+this.PV+' fotorama:showend.'+this.PV+' fotorama:fullscreenenter.'+this.PV+' fotorama:fullscreenexit.'+this.PV);}},_setOptions:function(options){if(options.videoData&&options.videoData.length){this.options.videoData=options.videoData;}\nthis._loadVideoData(options);this._initialize();},_loadVideoData:function(options){if(options.selectedOption){if(options.dataMergeStrategy==='prepend'){this.options.videoData=[].concat(this.options.optionsVideoData[options.selectedOption],this.defaultVideoData);}else{this.options.videoData=this.options.optionsVideoData[options.selectedOption];}}else{this.options.videoData=this.defaultVideoData;}},_checkFullscreen:function(){if(this.fotoramaItem.data('fotorama').fullScreen||false){this.isFullscreen=true;}},_listenForFullscreen:function(){this.fotoramaItem.on('fotorama:fullscreenenter.'+this.PV,$.proxy(function(){this.isFullscreen=true;},this));this.fotoramaItem.on('fotorama:fullscreenexit.'+this.PV,$.proxy(function(){this.isFullscreen=false;this._hideVideoArrows();},this));},_createVideoData:function(inputData,isJSON){var videoData=[],dataUrl,tmpVideoData,tmpInputData,i;if(isJSON){inputData=JSON.parse(inputData);}\nfor(i=0;i<inputData.length;i++){tmpInputData=inputData[i];dataUrl='';tmpVideoData={mediaType:'',isBase:'',id:'',provider:''};tmpVideoData.mediaType=this.VID;if(tmpInputData.mediaType!=='external-video'){tmpVideoData.mediaType=tmpInputData.mediaType;}\ntmpVideoData.isBase=tmpInputData.isBase;if(tmpInputData.videoUrl&&tmpInputData.videoUrl!==null){dataUrl=tmpInputData.videoUrl;dataUrl=parseURL(dataUrl);tmpVideoData.id=dataUrl.id;tmpVideoData.provider=dataUrl.type;tmpVideoData.videoUrl=tmpInputData.videoUrl;tmpVideoData.useYoutubeNocookie=dataUrl.useYoutubeNocookie;}\nvideoData.push(tmpVideoData);}\nreturn videoData;},_createCloseVideo:function(fotorama,isBase){var closeVideo;this.fotoramaItem.find('.'+this.FTVC).remove();this.fotoramaItem.append('<div class=\"'+this.FTVC+'\"></div>');this.fotoramaItem.css('position','relative');closeVideo=this.fotoramaItem.find('.'+this.FTVC);this._closeVideoSetEvents(closeVideo,fotorama);if(isBase&&this.options.videoData[fotorama.activeIndex].isBase&&$(window).width()>this.MobileMaxWidth){this._showCloseVideo();}},_hideCloseVideo:function(){this.fotoramaItem.find('.'+this.FTVC).removeClass('fotorama-show-control');},_showCloseVideo:function(){this.fotoramaItem.find('.'+this.FTVC).addClass('fotorama-show-control');},_closeVideoSetEvents:function($closeVideo,fotorama){$closeVideo.on('click',$.proxy(function(){this._unloadVideoPlayer(fotorama.activeFrame.$stageFrame.parent(),fotorama,true);this._hideCloseVideo();},this));},_checkForVideoExist:function(){var key,result,checker,videoSettings;if(!this.options.videoData){return false;}\nif(!this.options.videoSettings){return false;}\nresult=this._createVideoData(this.options.videoData,false);checker=false;videoSettings=this.options.videoSettings[0];videoSettings.playIfBase=parseInt(videoSettings.playIfBase,10);videoSettings.showRelated=parseInt(videoSettings.showRelated,10);videoSettings.videoAutoRestart=parseInt(videoSettings.videoAutoRestart,10);for(key in result){if(result[key].mediaType===this.VID){checker=true;}}\nif(checker){this.options.videoData=result;}\nreturn checker;},_isVideoBase:function(){var allVideoData=this.options.videoData,videoItem,allVideoDataKeys,key,i;allVideoDataKeys=Object.keys(allVideoData);for(i=0;i<allVideoDataKeys.length;i++){key=allVideoDataKeys[i];videoItem=allVideoData[key];if(videoItem.mediaType===this.VID&&videoItem.isBase&&this.options.videoSettings[0].playIfBase&&allowBase){this.Base=true;allowBase=false;}}\nif(!this.isFullscreen){this._createCloseVideo(this.fotoramaItem.data('fotorama'),this.Base);}},_initFotoramaVideo:function(e){var fotorama=this.fotoramaItem.data('fotorama'),thumbsParent,thumbs,t;if(!fotorama.activeFrame.$navThumbFrame){this.fotoramaItem.on('fotorama:showend.'+this.PV,$.proxy(function(evt,fotoramaData){$(fotoramaData.activeFrame.$stageFrame).removeAttr('href');},this));this._startPrepareForPlayer(e,fotorama);return null;}\nfotorama.data.map($.proxy(this._setItemType,this));thumbsParent=fotorama.activeFrame.$navThumbFrame.parent();thumbs=thumbsParent.find('.fotorama__nav__frame:visible');for(t=0;t<thumbs.length;t++){this._setThumbsIcon(thumbs.eq(t),t);this._checkForVideo(e,fotorama,t+1);}\nthis.fotoramaItem.on('fotorama:showend.'+this.PV,$.proxy(function(evt,fotoramaData){$(fotoramaData.activeFrame.$stageFrame).removeAttr('href');},this));},_setThumbsIcon:function(elem,i){var fotorama=this.fotoramaItem.data('fotorama');if(fotorama.options.nav==='dots'&&elem.hasClass(this.TI)){elem.removeClass(this.TI);}\nif(this.options.videoData[i].mediaType===this.VID&&fotorama.data[i].type===this.VID&&fotorama.options.nav==='thumbs'){elem.addClass(this.TI);}},_setItemType:function(item,i){!item.type&&(item.type=this.options.videoData[i].mediaType);},_attachFotoramaEvents:function(){this.fotoramaItem.on('fotorama:showend.'+this.PV,$.proxy(function(e,fotorama){this._startPrepareForPlayer(e,fotorama);},this));this.fotoramaItem.on('fotorama:show.'+this.PV,$.proxy(function(e,fotorama){this._unloadVideoPlayer(fotorama.activeFrame.$stageFrame.parent(),fotorama,true);},this));this.fotoramaItem.on('fotorama:fullscreenexit.'+this.PV,$.proxy(function(e,fotorama){fotorama.activeFrame.$stageFrame.find('.'+this.PV).remove();this._startPrepareForPlayer(e,fotorama);},this));},_startPrepareForPlayer:function(e,fotorama){this._unloadVideoPlayer(fotorama.activeFrame.$stageFrame.parent(),fotorama,false);this._checkForVideo(e,fotorama,fotorama.activeFrame.i);this._checkForVideo(e,fotorama,fotorama.activeFrame.i-1);this._checkForVideo(e,fotorama,fotorama.activeFrame.i+1);},_checkForVideo:function(e,fotorama,number){var videoData=this.options.videoData[number-1],$image=fotorama.data[number-1];if($image){!$image.type&&this._setItemType($image,number-1);if($image.type==='image'){$image.$navThumbFrame&&$image.$navThumbFrame.removeClass(this.TI);this._hideCloseVideo();return;}else if($image.$navThumbFrame&&$image.type==='video'){!$image.$navThumbFrame.hasClass(this.TI)&&$image.$navThumbFrame.addClass(this.TI);}\n$image=$image.$stageFrame;}\nif($image&&videoData&&videoData.mediaType===this.VID){$(fotorama.activeFrame.$stageFrame).removeAttr('href');this._prepareForVideoContainer($image,videoData,fotorama,number);}\nif(this.isFullscreen&&this.fotoramaItem.data('fotorama').activeFrame.i===number){this.fotoramaItem.data('fotorama').activeFrame.$stageFrame[0].trigger('click');}},_prepareForVideoContainer:function($image,videoData,fotorama,number){$image.addClass('fotorama-video-container').addClass(this.VU);this._createVideoContainer(videoData,$image);this._setVideoEvent($image,this.PV,fotorama,number);},_createVideoContainer:function(videoData,$image){var videoSettings;videoSettings=this.options.videoSettings[0];$image.find('.'+this.PV).remove();$image.append('<div class=\"'+\nthis.PV+'\" data-related=\"'+\nvideoSettings.showRelated+'\" data-loop=\"'+\nvideoSettings.videoAutoRestart+'\" data-type=\"'+\nvideoData.provider+'\" data-code=\"'+\nvideoData.id+'\"  data-youtubenocookie=\"'+\nvideoData.useYoutubeNocookie+'\" data-width=\"100%\" data-height=\"100%\"></div>');},_setVideoEvent:function($image,PV,fotorama,number){$image.find('.magnify-lens').remove();$image.off('click tap',$.proxy(this._clickHandler,this)).on('click tap',$.proxy(this._clickHandler,this));this._handleBaseVideo(fotorama,number);},_hideVideoArrows:function(){var arrows=$('.'+this.FTAR);arrows.removeClass('fotorama__arr--shown');arrows.removeClass('fotorama__arr--hidden');},_showLoader:function(){var spinner=this.fotoramaItem.find('.'+this.fotoramaSpinner);spinner.addClass(this.fotoramaSpinnerShow);this.fotoramaItem.data('fotorama').activeFrame.$stageFrame.addClass(this.PVLOADING);},_hideLoader:function(){var spinner=this.fotoramaItem.find('.'+this.fotoramaSpinner);spinner.removeClass(this.fotoramaSpinnerShow);this.fotoramaItem.data('fotorama').activeFrame.$stageFrame.removeClass(this.PVLOADING);},_clickHandler:function(event){var type;if($(event.target).hasClass(this.VU)&&$(event.target).find('iframe').length===0){$(event.target).removeClass(this.VU);type=$(event.target).find('.'+this.PV).data('type');if(type===this.VI){$(event.target).find('.'+this.PV).productVideoLoader();}else if(type===this.VI){this._showLoader();this.onVimeoJSFramework=function(){$(event.target).find('.'+this.PV).productVideoLoader();this._hideLoader();}.bind(this);}else{$(event.target).find('.'+this.PV).productVideoLoader();}\n$('.'+this.FTAR).addClass(this.isFullscreen?'fotorama__arr--shown':'fotorama__arr--hidden');$('.'+this.FTVC).addClass('fotorama-show-control');}},_handleBaseVideo:function(fotorama,srcNumber){var videoData=this.options.videoData,activeIndex=fotorama.activeIndex,number=parseInt(srcNumber,10),activeIndexIsBase=videoData[activeIndex];if(!this.Base){return;}\nif(activeIndexIsBase&&number===1&&$(window).width()>this.MobileMaxWidth){setTimeout($.proxy(function(){fotorama.requestFullScreen();this.fotoramaItem.data('fotorama').activeFrame.$stageFrame[0].trigger('click');this.Base=false;},this),50);}},_unloadVideoPlayer:function($wrapper,current,close){var self=this;if(!$wrapper){return;}\n$wrapper.find('.'+this.PVLOADED).removeClass(this.PVLOADED);this._hideLoader();$wrapper.find('.'+this.PV).each(function(){var $item=$(this).parent(),cloneVideoDiv,iframeElement=$(this).find('iframe'),currentIndex,itemIndex;if(iframeElement.length===0){return;}\ncurrentIndex=current.activeFrame.$stageFrame.index();itemIndex=$item.index();if(currentIndex===itemIndex&&!close){return;}\nif(currentIndex!==itemIndex&&close){return;}\niframeElement.remove();cloneVideoDiv=$(this).clone();$(this).remove();$item.append(cloneVideoDiv);$item.addClass(self.VU);self._hideCloseVideo();self._hideVideoArrows();if(self.isFullscreen&&!self.fotoramaItem.data('fotorama').options.fullscreen.arrows){if($('.'+self.FTAR+'--prev').is(':focus')||$('.'+self.FTAR+'--next').is(':focus')){$(self.FTCF).trigger('focus');}}});}});return $.mage.AddFotoramaVideoEvents;});","Magento_ProductVideo/js/load-player.min.js":"define(['jquery','jquery-ui-modules/widget','vimeoWrapper'],function($){'use strict';var videoRegister={_register:{},isRegistered:function(api){return this._register[api]!==undefined;},isLoaded:function(api){return this._register[api]!==undefined&&this._register[api]===true;},register:function(api,loaded){loaded=loaded||false;this._register[api]=loaded;}};$.widget('mage.productVideoLoader',{_create:function(){switch(this.element.data('type')){case'youtube':this.element.videoYoutube();this._player=this.element.data('mageVideoYoutube');break;case'vimeo':this.element.videoVimeo();this._player=this.element.data('mageVideoVimeo');break;default:throw{name:'Video Error',message:'Unknown video type',toString:function(){return this.name+': '+this.message;}};}},_initialize:function(){this._params=this.element.data('params')||{};this._code=this.element.data('code');this._width=this.element.data('width');this._height=this.element.data('height');this._autoplay=!!this.element.data('autoplay');this._playing=this._autoplay||false;this._loop=this.element.data('loop');this._rel=this.element.data('related');this.useYoutubeNocookie=this.element.data('youtubenocookie')||false;this._responsive=this.element.data('responsive')!==false;if(this._responsive===true){this.element.addClass('responsive');}\nthis._calculateRatio();},play:function(){this._player.play();},pause:function(){this._player.pause();},stop:function(){this._player.stop();},playing:function(){return this._player.playing();},_calculateRatio:function(){if(!this._responsive){return;}\nthis.element.css('paddingBottom',this._height / this._width*100+'%');}});$.widget('mage.videoYoutube',$.mage.productVideoLoader,{_create:function(){var self=this;this._initialize();this.element.append('<div></div>');this._on(window,{'youtubeapiready':function(){var host='https://www.youtube.com';if(self.useYoutubeNocookie){host='https://www.youtube-nocookie.com';}\nif(self._player!==undefined){return;}\nself._autoplay=true;if(self._autoplay){self._params.autoplay=1;}\nif(!self._rel){self._params.rel=0;}\nself._player=new window.YT.Player(self.element.children(':first')[0],{height:self._height,width:self._width,videoId:self._code,playerVars:self._params,host:host,events:{'onReady':function onPlayerReady(){self._player.getDuration();self.element.closest('.fotorama__stage__frame').addClass('fotorama__product-video--loaded');},onStateChange:function(data){switch(window.parseInt(data.data,10)){case 1:self._playing=true;break;default:self._playing=false;break;}\nself._trigger('statechange',{},data);if(data.data===window.YT.PlayerState.ENDED&&self._loop){self._player.playVideo();}}}});}});this._loadApi();},_loadApi:function(){var element,scriptTag;if(videoRegister.isRegistered('youtube')){if(videoRegister.isLoaded('youtube')){$(window).trigger('youtubeapiready');}\nreturn;}\nif(window.YT){videoRegister.register('youtube',true);$(window).trigger('youtubeapiready');return;}\nvideoRegister.register('youtube');element=document.createElement('script');scriptTag=document.getElementsByTagName('script')[0];element.async=true;element.src='https://www.youtube.com/iframe_api';scriptTag.parentNode.insertBefore(element,scriptTag);window.onYouTubeIframeAPIReady=function(){$(window).trigger('youtubeapiready');videoRegister.register('youtube',true);};},play:function(){this._player.playVideo();this._playing=true;},pause:function(){this._player.pauseVideo();this._playing=false;},stop:function(){this._player.stopVideo();this._playing=false;},playing:function(){return this._playing;},_destroy:function(){this.stop();}});$.widget('mage.videoVimeo',$.mage.productVideoLoader,{_create:function(){var timestamp,additionalParams='',src,id;this._initialize();timestamp=new Date().getTime();this._autoplay=true;if(this._autoplay){additionalParams+='&autoplay=1';}\nif(this._loop){additionalParams+='&loop=1';}\nsrc='https://player.vimeo.com/video/'+\nthis._code+'?api=1&player_id=vimeo'+\nthis._code+\ntimestamp+\nadditionalParams;id='vimeo'+this._code+timestamp;this.element.append($('<iframe></iframe>').attr('frameborder',0).attr('id',id).attr('width',this._width).attr('height',this._height).attr('src',src).attr('webkitallowfullscreen','').attr('mozallowfullscreen','').attr('allowfullscreen','').attr('referrerPolicy','origin').attr('allow','autoplay'));this._player=new Vimeo.Player(this.element.children(':first')[0]);this._player.ready().then(function(){$('#'+id).closest('.fotorama__stage__frame').addClass('fotorama__product-video--loaded');});},play:function(){this._player.play();this._playing=true;},pause:function(){this._player.pause();this._playing=false;},stop:function(){this._player.unload();this._playing=false;},playing:function(){return this._playing;}});});","MGS_StoreLocator/js/storelocator.min.js":"function initializeMap(storeLat,storeLong,storeRadius,storeInfoText,googleMapDivId){storeInfoText=storeInfoText.replace(/-quotation-/g,'\"');var myCenter=new google.maps.LatLng(storeLat,storeLong);var storeRadius=storeRadius*1609.34;var mapProp={center:myCenter,zoom:14,mapTypeId:google.maps.MapTypeId.ROADMAP};var map=new google.maps.Map(document.getElementById(googleMapDivId),mapProp);var marker=new google.maps.Marker({position:myCenter,});marker.setMap(map);if(storeRadius){var myCity=new google.maps.Circle({center:myCenter,radius:storeRadius,strokeOpacity:0.8,strokeWeight:1,fillOpacity:0});myCity.setMap(map);}\nif(storeInfoText){var infowindow=new google.maps.InfoWindow({content:storeInfoText});infowindow.open(map,marker);}}\nfunction drawMap(markers,googleMapDivId){var map;var bounds=new google.maps.LatLngBounds();var mapOptions={mapTypeId:'roadmap'};map=new google.maps.Map(document.getElementById(''+googleMapDivId),mapOptions);map.setTilt(45);var infoWindow=new google.maps.InfoWindow(),marker,i;for(i=0;i<markers.length;i++){var position=new google.maps.LatLng(markers[i][1],markers[i][2]);bounds.extend(position);marker=new google.maps.Marker({position:position,map:map,title:markers[i][0]});google.maps.event.addListener(marker,'click',(function(marker,i){return function(){infoWindow.setContent(markers[i][0]);infoWindow.open(map,marker);}})(marker,i));map.fitBounds(bounds);}}\nfunction drawMapWithCircle(markers,googleMapDivId,lat,longa,radius,image){var bounds=new google.maps.LatLngBounds();var mapOptions={center:new google.maps.LatLng(lat,longa)};var map=new google.maps.Map(document.getElementById(googleMapDivId),mapOptions);var infoWindow=new google.maps.InfoWindow(),marker,i;for(i=0;i<markers.length;i++){var position=new google.maps.LatLng(markers[i][1],markers[i][2]);bounds.extend(position);marker=new google.maps.Marker({position:position,map:map,title:markers[i][0]});google.maps.event.addListener(marker,'click',(function(marker,i){return function(){infoWindow.setContent(markers[i][0]);infoWindow.open(map,marker);}})(marker,i));}\nvar marker=new google.maps.Marker({position:new google.maps.LatLng(lat,longa),map:map,icon:image});var circ=new google.maps.Circle();circ.setRadius(radius*1609.0);circ.setCenter(new google.maps.LatLng(lat,longa));map.setCenter(new google.maps.LatLng(lat,longa));map.fitBounds(circ.getBounds());google.maps.event.trigger(map,'dragend');var citymap={};citymap['chicago']={center:new google.maps.LatLng(lat,longa)};var cityCircle;for(var city in citymap){var populationOptions={strokeColor:'#FF0000',strokeOpacity:0.8,strokeWeight:1,fillColor:'#FF0000',fillOpacity:0.1,map:map,center:citymap[city].center,radius:radius*1609.0};cityCircle=new google.maps.Circle(populationOptions);}}","MGS_Lookbook/js/owl.carousel.min.js":";(function($,window,document,undefined){function Owl(element,options){this.settings=null;this.options=$.extend({},Owl.Defaults,options);this.$element=$(element);this._handlers={};this._plugins={};this._supress={};this._current=null;this._speed=null;this._coordinates=[];this._breakpoint=null;this._width=null;this._items=[];this._clones=[];this._mergers=[];this._widths=[];this._invalidated={};this._pipe=[];this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null};this._states={current:{},tags:{'initializing':['busy'],'animating':['busy'],'dragging':['interacting']}};$.each(['onResize','onThrottledResize'],$.proxy(function(i,handler){this._handlers[handler]=$.proxy(this[handler],this);},this));$.each(Owl.Plugins,$.proxy(function(key,plugin){this._plugins[key.charAt(0).toLowerCase()+key.slice(1)]=new plugin(this);},this));$.each(Owl.Workers,$.proxy(function(priority,worker){this._pipe.push({'filter':worker.filter,'run':$.proxy(worker.run,this)});},this));this.setup();this.initialize();}\nOwl.Defaults={items:3,loop:false,center:false,rewind:false,mouseDrag:true,touchDrag:true,pullDrag:true,freeDrag:false,margin:0,stagePadding:0,merge:false,mergeFit:true,autoWidth:false,startPosition:0,rtl:false,smartSpeed:250,fluidSpeed:false,dragEndSpeed:false,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:window,fallbackEasing:'swing',info:false,nestedItemSelector:false,itemElement:'div',stageElement:'div',refreshClass:'owl-refresh',loadedClass:'owl-loaded',loadingClass:'owl-loading',rtlClass:'owl-rtl',responsiveClass:'owl-responsive',dragClass:'owl-drag',itemClass:'owl-item',stageClass:'owl-stage',stageOuterClass:'owl-stage-outer',grabClass:'owl-grab'};Owl.Width={Default:'default',Inner:'inner',Outer:'outer'};Owl.Type={Event:'event',State:'state'};Owl.Plugins={};Owl.Workers=[{filter:['width','settings'],run:function(){this._width=this.$element.width();}},{filter:['width','items','settings'],run:function(cache){cache.current=this._items&&this._items[this.relative(this._current)];}},{filter:['items','settings'],run:function(){this.$stage.children('.cloned').remove();}},{filter:['width','items','settings'],run:function(cache){var margin=this.settings.margin||'',grid=!this.settings.autoWidth,rtl=this.settings.rtl,css={'width':'auto','margin-left':rtl?margin:'','margin-right':rtl?'':margin};!grid&&this.$stage.children().css(css);cache.css=css;}},{filter:['width','items','settings'],run:function(cache){var width=(this.width()/ this.settings.items).toFixed(3)-this.settings.margin,merge=null,iterator=this._items.length,grid=!this.settings.autoWidth,widths=[];cache.items={merge:false,width:width};while(iterator--){merge=this._mergers[iterator];merge=this.settings.mergeFit&&Math.min(merge,this.settings.items)||merge;cache.items.merge=merge>1||cache.items.merge;widths[iterator]=!grid?this._items[iterator].width():width*merge;}\nthis._widths=widths;}},{filter:['items','settings'],run:function(){var clones=[],items=this._items,settings=this.settings,view=Math.max(settings.items*2,4),size=Math.ceil(items.length / 2)*2,repeat=settings.loop&&items.length?settings.rewind?view:Math.max(view,size):0,append='',prepend='';repeat /=2;while(repeat--){clones.push(this.normalize(clones.length / 2,true));append=append+items[clones[clones.length-1]][0].outerHTML;clones.push(this.normalize(items.length-1-(clones.length-1)/ 2,true));prepend=items[clones[clones.length-1]][0].outerHTML+prepend;}\nthis._clones=clones;$(append).addClass('cloned').appendTo(this.$stage);$(prepend).addClass('cloned').prependTo(this.$stage);}},{filter:['width','items','settings'],run:function(){var rtl=this.settings.rtl?1:-1,size=this._clones.length+this._items.length,iterator=-1,previous=0,current=0,coordinates=[];while(++iterator<size){previous=coordinates[iterator-1]||0;current=this._widths[this.relative(iterator)]+this.settings.margin;coordinates.push(previous+current*rtl);}\nthis._coordinates=coordinates;}},{filter:['width','items','settings'],run:function(){var padding=this.settings.stagePadding,coordinates=this._coordinates,css={'width':Math.ceil(Math.abs(coordinates[coordinates.length-1]))+padding*2,'padding-left':padding||'','padding-right':padding||''};this.$stage.css(css);}},{filter:['width','items','settings'],run:function(cache){var iterator=this._coordinates.length,grid=!this.settings.autoWidth,items=this.$stage.children();if(grid&&cache.items.merge){while(iterator--){cache.css.width=this._widths[this.relative(iterator)];items.eq(iterator).css(cache.css);}}else if(grid){cache.css.width=cache.items.width;items.css(cache.css);}}},{filter:['items'],run:function(){this._coordinates.length<1&&this.$stage.removeAttr('style');}},{filter:['width','items','settings'],run:function(cache){cache.current=cache.current?this.$stage.children().index(cache.current):0;cache.current=Math.max(this.minimum(),Math.min(this.maximum(),cache.current));this.reset(cache.current);}},{filter:['position'],run:function(){this.animate(this.coordinates(this._current));}},{filter:['width','position','items','settings'],run:function(){var rtl=this.settings.rtl?1:-1,padding=this.settings.stagePadding*2,begin=this.coordinates(this.current())+padding,end=begin+this.width()*rtl,inner,outer,matches=[],i,n;for(i=0,n=this._coordinates.length;i<n;i++){inner=this._coordinates[i-1]||0;outer=Math.abs(this._coordinates[i])+padding*rtl;if((this.op(inner,'<=',begin)&&(this.op(inner,'>',end)))||(this.op(outer,'<',begin)&&this.op(outer,'>',end))){matches.push(i);}}\nthis.$stage.children('.active').removeClass('active');this.$stage.children(':eq('+matches.join('), :eq(')+')').addClass('active');if(this.settings.center){this.$stage.children('.center').removeClass('center');this.$stage.children().eq(this.current()).addClass('center');}}}];Owl.prototype.initialize=function(){this.enter('initializing');this.trigger('initialize');this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl);if(this.settings.autoWidth&&!this.is('pre-loading')){var imgs,nestedSelector,width;imgs=this.$element.find('img');nestedSelector=this.settings.nestedItemSelector?'.'+this.settings.nestedItemSelector:undefined;width=this.$element.children(nestedSelector).width();if(imgs.length&&width<=0){this.preloadAutoWidthImages(imgs);}}\nthis.$element.addClass(this.options.loadingClass);this.$stage=$('<'+this.settings.stageElement+' class=\"'+this.settings.stageClass+'\"/>').wrap('<div class=\"'+this.settings.stageOuterClass+'\"/>');this.$element.append(this.$stage.parent());this.replace(this.$element.children().not(this.$stage.parent()));if(this.$element.is(':visible')){this.refresh();}else{this.invalidate('width');}\nthis.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass);this.registerEventHandlers();this.leave('initializing');this.trigger('initialized');};Owl.prototype.setup=function(){var viewport=this.viewport(),overwrites=this.options.responsive,match=-1,settings=null;if(!overwrites){settings=$.extend({},this.options);}else{$.each(overwrites,function(breakpoint){if(breakpoint<=viewport&&breakpoint>match){match=Number(breakpoint);}});settings=$.extend({},this.options,overwrites[match]);if(typeof settings.stagePadding==='function'){settings.stagePadding=settings.stagePadding();}\ndelete settings.responsive;if(settings.responsiveClass){this.$element.attr('class',this.$element.attr('class').replace(new RegExp('('+this.options.responsiveClass+'-)\\\\S+\\\\s','g'),'$1'+match));}}\nthis.trigger('change',{property:{name:'settings',value:settings}});this._breakpoint=match;this.settings=settings;this.invalidate('settings');this.trigger('changed',{property:{name:'settings',value:this.settings}});};Owl.prototype.optionsLogic=function(){if(this.settings.autoWidth){this.settings.stagePadding=false;this.settings.merge=false;}};Owl.prototype.prepare=function(item){var event=this.trigger('prepare',{content:item});if(!event.data){event.data=$('<'+this.settings.itemElement+'/>').addClass(this.options.itemClass).append(item)}\nthis.trigger('prepared',{content:event.data});return event.data;};Owl.prototype.update=function(){var i=0,n=this._pipe.length,filter=$.proxy(function(p){return this[p]},this._invalidated),cache={};while(i<n){if(this._invalidated.all||$.grep(this._pipe[i].filter,filter).length>0){this._pipe[i].run(cache);}\ni++;}\nthis._invalidated={};!this.is('valid')&&this.enter('valid');};Owl.prototype.width=function(dimension){dimension=dimension||Owl.Width.Default;switch(dimension){case Owl.Width.Inner:case Owl.Width.Outer:return this._width;default:return this._width-this.settings.stagePadding*2+this.settings.margin;}};Owl.prototype.refresh=function(){this.enter('refreshing');this.trigger('refresh');this.setup();this.optionsLogic();this.$element.addClass(this.options.refreshClass);this.update();this.$element.removeClass(this.options.refreshClass);this.leave('refreshing');this.trigger('refreshed');};Owl.prototype.onThrottledResize=function(){window.clearTimeout(this.resizeTimer);this.resizeTimer=window.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate);};Owl.prototype.onResize=function(){if(!this._items.length){return false;}\nif(this._width===this.$element.width()){return false;}\nif(!this.$element.is(':visible')){return false;}\nthis.enter('resizing');if(this.trigger('resize').isDefaultPrevented()){this.leave('resizing');return false;}\nthis.invalidate('width');this.refresh();this.leave('resizing');this.trigger('resized');};Owl.prototype.registerEventHandlers=function(){if($.support.transition){this.$stage.on($.support.transition.end+'.owl.core',$.proxy(this.onTransitionEnd,this));}\nif(this.settings.responsive!==false){this.on(window,'resize',this._handlers.onThrottledResize);}\nif(this.settings.mouseDrag){this.$element.addClass(this.options.dragClass);this.$stage.on('mousedown.owl.core',$.proxy(this.onDragStart,this));this.$stage.on('dragstart.owl.core selectstart.owl.core',function(){return false});}\nif(this.settings.touchDrag){this.$stage.on('touchstart.owl.core',$.proxy(this.onDragStart,this));this.$stage.on('touchcancel.owl.core',$.proxy(this.onDragEnd,this));}};Owl.prototype.onDragStart=function(event){var stage=null;if(event.which===3){return;}\nif($.support.transform){stage=this.$stage.css('transform').replace(/.*\\(|\\)| /g,'').split(',');stage={x:stage[stage.length===16?12:4],y:stage[stage.length===16?13:5]};}else{stage=this.$stage.position();stage={x:this.settings.rtl?stage.left+this.$stage.width()-this.width()+this.settings.margin:stage.left,y:stage.top};}\nif(this.is('animating')){$.support.transform?this.animate(stage.x):this.$stage.stop()\nthis.invalidate('position');}\nthis.$element.toggleClass(this.options.grabClass,event.type==='mousedown');this.speed(0);this._drag.time=new Date().getTime();this._drag.target=$(event.target);this._drag.stage.start=stage;this._drag.stage.current=stage;this._drag.pointer=this.pointer(event);$(document).on('mouseup.owl.core touchend.owl.core',$.proxy(this.onDragEnd,this));$(document).one('mousemove.owl.core touchmove.owl.core',$.proxy(function(event){var delta=this.difference(this._drag.pointer,this.pointer(event));$(document).on('mousemove.owl.core touchmove.owl.core',$.proxy(this.onDragMove,this));if(Math.abs(delta.x)<Math.abs(delta.y)&&this.is('valid')){return;}\nevent.preventDefault();this.enter('dragging');this.trigger('drag');},this));};Owl.prototype.onDragMove=function(event){var minimum=null,maximum=null,pull=null,delta=this.difference(this._drag.pointer,this.pointer(event)),stage=this.difference(this._drag.stage.start,delta);if(!this.is('dragging')){return;}\nevent.preventDefault();if(this.settings.loop){minimum=this.coordinates(this.minimum());maximum=this.coordinates(this.maximum()+1)-minimum;stage.x=(((stage.x-minimum)%maximum+maximum)%maximum)+minimum;}else{minimum=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum());maximum=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum());pull=this.settings.pullDrag?-1*delta.x / 5:0;stage.x=Math.max(Math.min(stage.x,minimum+pull),maximum+pull);}\nthis._drag.stage.current=stage;this.animate(stage.x);};Owl.prototype.onDragEnd=function(event){var delta=this.difference(this._drag.pointer,this.pointer(event)),stage=this._drag.stage.current,direction=delta.x>0^this.settings.rtl?'left':'right';$(document).off('.owl.core');this.$element.removeClass(this.options.grabClass);if(delta.x!==0&&this.is('dragging')||!this.is('valid')){this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed);this.current(this.closest(stage.x,delta.x!==0?direction:this._drag.direction));this.invalidate('position');this.update();this._drag.direction=direction;if(Math.abs(delta.x)>3||new Date().getTime()-this._drag.time>300){this._drag.target.one('click.owl.core',function(){return false;});}}\nif(!this.is('dragging')){return;}\nthis.leave('dragging');this.trigger('dragged');};Owl.prototype.closest=function(coordinate,direction){var position=-1,pull=30,width=this.width(),coordinates=this.coordinates();if(!this.settings.freeDrag){$.each(coordinates,$.proxy(function(index,value){if(direction==='left'&&coordinate>value-pull&&coordinate<value+pull){position=index;}else if(direction==='right'&&coordinate>value-width-pull&&coordinate<value-width+pull){position=index+1;}else if(this.op(coordinate,'<',value)&&this.op(coordinate,'>',coordinates[index+1]||value-width)){position=direction==='left'?index+1:index;}\nreturn position===-1;},this));}\nif(!this.settings.loop){if(this.op(coordinate,'>',coordinates[this.minimum()])){position=coordinate=this.minimum();}else if(this.op(coordinate,'<',coordinates[this.maximum()])){position=coordinate=this.maximum();}}\nreturn position;};Owl.prototype.animate=function(coordinate){var animate=this.speed()>0;this.is('animating')&&this.onTransitionEnd();if(animate){this.enter('animating');this.trigger('translate');}\nif($.support.transform3d&&$.support.transition){this.$stage.css({transform:'translate3d('+coordinate+'px,0px,0px)',transition:(this.speed()/ 1000)+'s'});}else if(animate){this.$stage.animate({left:coordinate+'px'},this.speed(),this.settings.fallbackEasing,$.proxy(this.onTransitionEnd,this));}else{this.$stage.css({left:coordinate+'px'});}};Owl.prototype.is=function(state){return this._states.current[state]&&this._states.current[state]>0;};Owl.prototype.current=function(position){if(position===undefined){return this._current;}\nif(this._items.length===0){return undefined;}\nposition=this.normalize(position);if(this._current!==position){var event=this.trigger('change',{property:{name:'position',value:position}});if(event.data!==undefined){position=this.normalize(event.data);}\nthis._current=position;this.invalidate('position');this.trigger('changed',{property:{name:'position',value:this._current}});}\nreturn this._current;};Owl.prototype.invalidate=function(part){if($.type(part)==='string'){this._invalidated[part]=true;this.is('valid')&&this.leave('valid');}\nreturn $.map(this._invalidated,function(v,i){return i});};Owl.prototype.reset=function(position){position=this.normalize(position);if(position===undefined){return;}\nthis._speed=0;this._current=position;this.suppress(['translate','translated']);this.animate(this.coordinates(position));this.release(['translate','translated']);};Owl.prototype.normalize=function(position,relative){var n=this._items.length,m=relative?0:this._clones.length;if(!this.isNumeric(position)||n<1){position=undefined;}else if(position<0||position>=n+m){position=((position-m / 2)%n+n)%n+m / 2;}\nreturn position;};Owl.prototype.relative=function(position){position-=this._clones.length / 2;return this.normalize(position,true);};Owl.prototype.maximum=function(relative){var settings=this.settings,maximum=this._coordinates.length,iterator,reciprocalItemsWidth,elementWidth;if(settings.loop){maximum=this._clones.length / 2+this._items.length-1;}else if(settings.autoWidth||settings.merge){iterator=this._items.length;reciprocalItemsWidth=this._items[--iterator].width();elementWidth=this.$element.width();while(iterator--){reciprocalItemsWidth+=this._items[iterator].width()+this.settings.margin;if(reciprocalItemsWidth>elementWidth){break;}}\nmaximum=iterator+1;}else if(settings.center){maximum=this._items.length-1;}else{maximum=this._items.length-settings.items;}\nif(relative){maximum-=this._clones.length / 2;}\nreturn Math.max(maximum,0);};Owl.prototype.minimum=function(relative){return relative?0:this._clones.length / 2;};Owl.prototype.items=function(position){if(position===undefined){return this._items.slice();}\nposition=this.normalize(position,true);return this._items[position];};Owl.prototype.mergers=function(position){if(position===undefined){return this._mergers.slice();}\nposition=this.normalize(position,true);return this._mergers[position];};Owl.prototype.clones=function(position){var odd=this._clones.length / 2,even=odd+this._items.length,map=function(index){return index%2===0?even+index / 2:odd-(index+1)/ 2};if(position===undefined){return $.map(this._clones,function(v,i){return map(i)});}\nreturn $.map(this._clones,function(v,i){return v===position?map(i):null});};Owl.prototype.speed=function(speed){if(speed!==undefined){this._speed=speed;}\nreturn this._speed;};Owl.prototype.coordinates=function(position){var multiplier=1,newPosition=position-1,coordinate;if(position===undefined){return $.map(this._coordinates,$.proxy(function(coordinate,index){return this.coordinates(index);},this));}\nif(this.settings.center){if(this.settings.rtl){multiplier=-1;newPosition=position+1;}\ncoordinate=this._coordinates[position];coordinate+=(this.width()-coordinate+(this._coordinates[newPosition]||0))/ 2*multiplier;}else{coordinate=this._coordinates[newPosition]||0;}\ncoordinate=Math.ceil(coordinate);return coordinate;};Owl.prototype.duration=function(from,to,factor){if(factor===0){return 0;}\nreturn Math.min(Math.max(Math.abs(to-from),1),6)*Math.abs((factor||this.settings.smartSpeed));};Owl.prototype.to=function(position,speed){var current=this.current(),revert=null,distance=position-this.relative(current),direction=(distance>0)-(distance<0),items=this._items.length,minimum=this.minimum(),maximum=this.maximum();if(this.settings.loop){if(!this.settings.rewind&&Math.abs(distance)>items / 2){distance+=direction*-1*items;}\nposition=current+distance;revert=((position-minimum)%items+items)%items+minimum;if(revert!==position&&revert-distance<=maximum&&revert-distance>0){current=revert-distance;position=revert;this.reset(current);}}else if(this.settings.rewind){maximum+=1;position=(position%maximum+maximum)%maximum;}else{position=Math.max(minimum,Math.min(maximum,position));}\nthis.speed(this.duration(current,position,speed));this.current(position);if(this.$element.is(':visible')){this.update();}};Owl.prototype.next=function(speed){speed=speed||false;this.to(this.relative(this.current())+1,speed);};Owl.prototype.prev=function(speed){speed=speed||false;this.to(this.relative(this.current())-1,speed);};Owl.prototype.onTransitionEnd=function(event){if(event!==undefined){event.stopPropagation();if((event.target||event.srcElement||event.originalTarget)!==this.$stage.get(0)){return false;}}\nthis.leave('animating');this.trigger('translated');};Owl.prototype.viewport=function(){var width;if(this.options.responsiveBaseElement!==window){width=$(this.options.responsiveBaseElement).width();}else if(window.innerWidth){width=window.innerWidth;}else if(document.documentElement&&document.documentElement.clientWidth){width=document.documentElement.clientWidth;}else{console.warn('Can not detect viewport width.');}\nreturn width;};Owl.prototype.replace=function(content){this.$stage.empty();this._items=[];if(content){content=(content instanceof jQuery)?content:$(content);}\nif(this.settings.nestedItemSelector){content=content.find('.'+this.settings.nestedItemSelector);}\ncontent.filter(function(){return this.nodeType===1;}).each($.proxy(function(index,item){item=this.prepare(item);this.$stage.append(item);this._items.push(item);this._mergers.push(item.find('[data-merge]').addBack('[data-merge]').attr('data-merge')*1||1);},this));this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0);this.invalidate('items');};Owl.prototype.add=function(content,position){var current=this.relative(this._current);position=position===undefined?this._items.length:this.normalize(position,true);content=content instanceof jQuery?content:$(content);this.trigger('add',{content:content,position:position});content=this.prepare(content);if(this._items.length===0||position===this._items.length){this._items.length===0&&this.$stage.append(content);this._items.length!==0&&this._items[position-1].after(content);this._items.push(content);this._mergers.push(content.find('[data-merge]').addBack('[data-merge]').attr('data-merge')*1||1);}else{this._items[position].before(content);this._items.splice(position,0,content);this._mergers.splice(position,0,content.find('[data-merge]').addBack('[data-merge]').attr('data-merge')*1||1);}\nthis._items[current]&&this.reset(this._items[current].index());this.invalidate('items');this.trigger('added',{content:content,position:position});};Owl.prototype.remove=function(position){position=this.normalize(position,true);if(position===undefined){return;}\nthis.trigger('remove',{content:this._items[position],position:position});this._items[position].remove();this._items.splice(position,1);this._mergers.splice(position,1);this.invalidate('items');this.trigger('removed',{content:null,position:position});};Owl.prototype.preloadAutoWidthImages=function(images){images.each($.proxy(function(i,element){this.enter('pre-loading');element=$(element);$(new Image()).one('load',$.proxy(function(e){element.attr('src',e.target.src);element.css('opacity',1);this.leave('pre-loading');!this.is('pre-loading')&&!this.is('initializing')&&this.refresh();},this)).attr('src',element.attr('src')||element.attr('data-src')||element.attr('data-src-retina'));},this));};Owl.prototype.destroy=function(){this.$element.off('.owl.core');this.$stage.off('.owl.core');$(document).off('.owl.core');if(this.settings.responsive!==false){window.clearTimeout(this.resizeTimer);this.off(window,'resize',this._handlers.onThrottledResize);}\nfor(var i in this._plugins){this._plugins[i].destroy();}\nthis.$stage.children('.cloned').remove();this.$stage.unwrap();this.$stage.children().contents().unwrap();this.$stage.children().unwrap();this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr('class',this.$element.attr('class').replace(new RegExp(this.options.responsiveClass+'-\\\\S+\\\\s','g'),'')).removeData('owl.carousel');};Owl.prototype.op=function(a,o,b){var rtl=this.settings.rtl;switch(o){case'<':return rtl?a>b:a<b;case'>':return rtl?a<b:a>b;case'>=':return rtl?a<=b:a>=b;case'<=':return rtl?a>=b:a<=b;default:break;}};Owl.prototype.on=function(element,event,listener,capture){if(element.addEventListener){element.addEventListener(event,listener,capture);}else if(element.attachEvent){element.attachEvent('on'+event,listener);}};Owl.prototype.off=function(element,event,listener,capture){if(element.removeEventListener){element.removeEventListener(event,listener,capture);}else if(element.detachEvent){element.detachEvent('on'+event,listener);}};Owl.prototype.trigger=function(name,data,namespace,state,enter){var status={item:{count:this._items.length,index:this.current()}},handler=$.camelCase($.grep(['on',name,namespace],function(v){return v}).join('-').toLowerCase()),event=$.Event([name,'owl',namespace||'carousel'].join('.').toLowerCase(),$.extend({relatedTarget:this},status,data));if(!this._supress[name]){$.each(this._plugins,function(name,plugin){if(plugin.onTrigger){plugin.onTrigger(event);}});this.register({type:Owl.Type.Event,name:name});this.$element.trigger(event);if(this.settings&&typeof this.settings[handler]==='function'){this.settings[handler].call(this,event);}}\nreturn event;};Owl.prototype.enter=function(name){$.each([name].concat(this._states.tags[name]||[]),$.proxy(function(i,name){if(this._states.current[name]===undefined){this._states.current[name]=0;}\nthis._states.current[name]++;},this));};Owl.prototype.leave=function(name){$.each([name].concat(this._states.tags[name]||[]),$.proxy(function(i,name){this._states.current[name]--;},this));};Owl.prototype.register=function(object){if(object.type===Owl.Type.Event){if(!$.event.special[object.name]){$.event.special[object.name]={};}\nif(!$.event.special[object.name].owl){var _default=$.event.special[object.name]._default;$.event.special[object.name]._default=function(e){if(_default&&_default.apply&&(!e.namespace||e.namespace.indexOf('owl')===-1)){return _default.apply(this,arguments);}\nreturn e.namespace&&e.namespace.indexOf('owl')>-1;};$.event.special[object.name].owl=true;}}else if(object.type===Owl.Type.State){if(!this._states.tags[object.name]){this._states.tags[object.name]=object.tags;}else{this._states.tags[object.name]=this._states.tags[object.name].concat(object.tags);}\nthis._states.tags[object.name]=$.grep(this._states.tags[object.name],$.proxy(function(tag,i){return $.inArray(tag,this._states.tags[object.name])===i;},this));}};Owl.prototype.suppress=function(events){$.each(events,$.proxy(function(index,event){this._supress[event]=true;},this));};Owl.prototype.release=function(events){$.each(events,$.proxy(function(index,event){delete this._supress[event];},this));};Owl.prototype.pointer=function(event){var result={x:null,y:null};event=event.originalEvent||event||window.event;event=event.touches&&event.touches.length?event.touches[0]:event.changedTouches&&event.changedTouches.length?event.changedTouches[0]:event;if(event.pageX){result.x=event.pageX;result.y=event.pageY;}else{result.x=event.clientX;result.y=event.clientY;}\nreturn result;};Owl.prototype.isNumeric=function(number){return!isNaN(parseFloat(number));};Owl.prototype.difference=function(first,second){return{x:first.x-second.x,y:first.y-second.y};};$.fn.owlCarousel=function(option){var args=Array.prototype.slice.call(arguments,1);return this.each(function(){var $this=$(this),data=$this.data('owl.carousel');if(!data){data=new Owl(this,typeof option=='object'&&option);$this.data('owl.carousel',data);$.each(['next','prev','to','destroy','refresh','replace','add','remove'],function(i,event){data.register({type:Owl.Type.Event,name:event});data.$element.on(event+'.owl.carousel.core',$.proxy(function(e){if(e.namespace&&e.relatedTarget!==this){this.suppress([event]);data[event].apply(this,[].slice.call(arguments,1));this.release([event]);}},data));});}\nif(typeof option=='string'&&option.charAt(0)!=='_'){data[option].apply(data,args);}});};$.fn.owlCarousel.Constructor=Owl;})(window.Zepto||window.jQuery,window,document);;(function($,window,document,undefined){var AutoRefresh=function(carousel){this._core=carousel;this._interval=null;this._visible=null;this._handlers={'initialized.owl.carousel':$.proxy(function(e){if(e.namespace&&this._core.settings.autoRefresh){this.watch();}},this)};this._core.options=$.extend({},AutoRefresh.Defaults,this._core.options);this._core.$element.on(this._handlers);};AutoRefresh.Defaults={autoRefresh:true,autoRefreshInterval:500};AutoRefresh.prototype.watch=function(){if(this._interval){return;}\nthis._visible=this._core.$element.is(':visible');this._interval=window.setInterval($.proxy(this.refresh,this),this._core.settings.autoRefreshInterval);};AutoRefresh.prototype.refresh=function(){if(this._core.$element.is(':visible')===this._visible){return;}\nthis._visible=!this._visible;this._core.$element.toggleClass('owl-hidden',!this._visible);this._visible&&(this._core.invalidate('width')&&this._core.refresh());};AutoRefresh.prototype.destroy=function(){var handler,property;window.clearInterval(this._interval);for(handler in this._handlers){this._core.$element.off(handler,this._handlers[handler]);}\nfor(property in Object.getOwnPropertyNames(this)){typeof this[property]!='function'&&(this[property]=null);}};$.fn.owlCarousel.Constructor.Plugins.AutoRefresh=AutoRefresh;})(window.Zepto||window.jQuery,window,document);;(function($,window,document,undefined){var Lazy=function(carousel){this._core=carousel;this._loaded=[];this._handlers={'initialized.owl.carousel change.owl.carousel resized.owl.carousel':$.proxy(function(e){if(!e.namespace){return;}\nif(!this._core.settings||!this._core.settings.lazyLoad){return;}\nif((e.property&&e.property.name=='position')||e.type=='initialized'){var settings=this._core.settings,n=(settings.center&&Math.ceil(settings.items / 2)||settings.items),i=((settings.center&&n*-1)||0),position=(e.property&&e.property.value!==undefined?e.property.value:this._core.current())+i,clones=this._core.clones().length,load=$.proxy(function(i,v){this.load(v)},this);while(i++<n){this.load(clones / 2+this._core.relative(position));clones&&$.each(this._core.clones(this._core.relative(position)),load);position++;}}},this)};this._core.options=$.extend({},Lazy.Defaults,this._core.options);this._core.$element.on(this._handlers);};Lazy.Defaults={lazyLoad:false};Lazy.prototype.load=function(position){var $item=this._core.$stage.children().eq(position),$elements=$item&&$item.find('.owl-lazy');if(!$elements||$.inArray($item.get(0),this._loaded)>-1){return;}\n$elements.each($.proxy(function(index,element){var $element=$(element),image,url=(window.devicePixelRatio>1&&$element.attr('data-src-retina'))||$element.attr('data-src');this._core.trigger('load',{element:$element,url:url},'lazy');if($element.is('img')){$element.one('load.owl.lazy',$.proxy(function(){$element.css('opacity',1);this._core.trigger('loaded',{element:$element,url:url},'lazy');},this)).attr('src',url);}else{image=new Image();image.onload=$.proxy(function(){$element.css({'background-image':'url(\"'+url+'\")','opacity':'1'});this._core.trigger('loaded',{element:$element,url:url},'lazy');},this);image.src=url;}},this));this._loaded.push($item.get(0));};Lazy.prototype.destroy=function(){var handler,property;for(handler in this.handlers){this._core.$element.off(handler,this.handlers[handler]);}\nfor(property in Object.getOwnPropertyNames(this)){typeof this[property]!='function'&&(this[property]=null);}};$.fn.owlCarousel.Constructor.Plugins.Lazy=Lazy;})(window.Zepto||window.jQuery,window,document);;(function($,window,document,undefined){var AutoHeight=function(carousel){this._core=carousel;this._handlers={'initialized.owl.carousel refreshed.owl.carousel':$.proxy(function(e){if(e.namespace&&this._core.settings.autoHeight){this.update();}},this),'changed.owl.carousel':$.proxy(function(e){if(e.namespace&&this._core.settings.autoHeight&&e.property.name=='position'){this.update();}},this),'loaded.owl.lazy':$.proxy(function(e){if(e.namespace&&this._core.settings.autoHeight&&e.element.closest('.'+this._core.settings.itemClass).index()===this._core.current()){this.update();}},this)};this._core.options=$.extend({},AutoHeight.Defaults,this._core.options);this._core.$element.on(this._handlers);};AutoHeight.Defaults={autoHeight:false,autoHeightClass:'owl-height'};AutoHeight.prototype.update=function(){var start=this._core._current,end=start+this._core.settings.items,visible=this._core.$stage.children().toArray().slice(start,end),heights=[],maxheight=0;$.each(visible,function(index,item){heights.push($(item).height());});maxheight=Math.max.apply(null,heights);this._core.$stage.parent().height(maxheight).addClass(this._core.settings.autoHeightClass);};AutoHeight.prototype.destroy=function(){var handler,property;for(handler in this._handlers){this._core.$element.off(handler,this._handlers[handler]);}\nfor(property in Object.getOwnPropertyNames(this)){typeof this[property]!='function'&&(this[property]=null);}};$.fn.owlCarousel.Constructor.Plugins.AutoHeight=AutoHeight;})(window.Zepto||window.jQuery,window,document);;(function($,window,document,undefined){var Video=function(carousel){this._core=carousel;this._videos={};this._playing=null;this._handlers={'initialized.owl.carousel':$.proxy(function(e){if(e.namespace){this._core.register({type:'state',name:'playing',tags:['interacting']});}},this),'resize.owl.carousel':$.proxy(function(e){if(e.namespace&&this._core.settings.video&&this.isInFullScreen()){e.preventDefault();}},this),'refreshed.owl.carousel':$.proxy(function(e){if(e.namespace&&this._core.is('resizing')){this._core.$stage.find('.cloned .owl-video-frame').remove();}},this),'changed.owl.carousel':$.proxy(function(e){if(e.namespace&&e.property.name==='position'&&this._playing){this.stop();}},this),'prepared.owl.carousel':$.proxy(function(e){if(!e.namespace){return;}\nvar $element=$(e.content).find('.owl-video');if($element.length){$element.css('display','none');this.fetch($element,$(e.content));}},this)};this._core.options=$.extend({},Video.Defaults,this._core.options);this._core.$element.on(this._handlers);this._core.$element.on('click.owl.video','.owl-video-play-icon',$.proxy(function(e){this.play(e);},this));};Video.Defaults={video:false,videoHeight:false,videoWidth:false};Video.prototype.fetch=function(target,item){var type=(function(){if(target.attr('data-vimeo-id')){return'vimeo';}else if(target.attr('data-vzaar-id')){return'vzaar'}else{return'youtube';}})(),id=target.attr('data-vimeo-id')||target.attr('data-youtube-id')||target.attr('data-vzaar-id'),width=target.attr('data-width')||this._core.settings.videoWidth,height=target.attr('data-height')||this._core.settings.videoHeight,url=target.attr('href');if(url){id=url.match(/(http:|https:|)\\/\\/(player.|www.|app.)?(vimeo\\.com|youtu(be\\.com|\\.be|be\\.googleapis\\.com)|vzaar\\.com)\\/(video\\/|videos\\/|embed\\/|channels\\/.+\\/|groups\\/.+\\/|watch\\?v=|v\\/)?([A-Za-z0-9._%-]*)(\\&\\S+)?/);if(id[3].indexOf('youtu')>-1){type='youtube';}else if(id[3].indexOf('vimeo')>-1){type='vimeo';}else if(id[3].indexOf('vzaar')>-1){type='vzaar';}else{throw new Error('Video URL not supported.');}\nid=id[6];}else{throw new Error('Missing video URL.');}\nthis._videos[url]={type:type,id:id,width:width,height:height};item.attr('data-video',url);this.thumbnail(target,this._videos[url]);};Video.prototype.thumbnail=function(target,video){var tnLink,icon,path,dimensions=video.width&&video.height?'style=\"width:'+video.width+'px;height:'+video.height+'px;\"':'',customTn=target.find('img'),srcType='src',lazyClass='',settings=this._core.settings,create=function(path){icon='<div class=\"owl-video-play-icon\"></div>';if(settings.lazyLoad){tnLink='<div class=\"owl-video-tn '+lazyClass+'\" '+srcType+'=\"'+path+'\"></div>';}else{tnLink='<div class=\"owl-video-tn\" style=\"opacity:1;background-image:url('+path+')\"></div>';}\ntarget.after(tnLink);target.after(icon);};target.wrap('<div class=\"owl-video-wrapper\"'+dimensions+'></div>');if(this._core.settings.lazyLoad){srcType='data-src';lazyClass='owl-lazy';}\nif(customTn.length){create(customTn.attr(srcType));customTn.remove();return false;}\nif(video.type==='youtube'){path=\"//img.youtube.com/vi/\"+video.id+\"/hqdefault.jpg\";create(path);}else if(video.type==='vimeo'){$.ajax({type:'GET',url:'//vimeo.com/api/v2/video/'+video.id+'.json',jsonp:'callback',dataType:'jsonp',success:function(data){path=data[0].thumbnail_large;create(path);}});}else if(video.type==='vzaar'){$.ajax({type:'GET',url:'//vzaar.com/api/videos/'+video.id+'.json',jsonp:'callback',dataType:'jsonp',success:function(data){path=data.framegrab_url;create(path);}});}};Video.prototype.stop=function(){this._core.trigger('stop',null,'video');this._playing.find('.owl-video-frame').remove();this._playing.removeClass('owl-video-playing');this._playing=null;this._core.leave('playing');this._core.trigger('stopped',null,'video');};Video.prototype.play=function(event){var target=$(event.target),item=target.closest('.'+this._core.settings.itemClass),video=this._videos[item.attr('data-video')],width=video.width||'100%',height=video.height||this._core.$stage.height(),html;if(this._playing){return;}\nthis._core.enter('playing');this._core.trigger('play',null,'video');item=this._core.items(this._core.relative(item.index()));this._core.reset(item.index());if(video.type==='youtube'){html='<iframe width=\"'+width+'\" height=\"'+height+'\" src=\"//www.youtube.com/embed/'+\nvideo.id+'?autoplay=1&rel=0&v='+video.id+'\" frameborder=\"0\" allowfullscreen></iframe>';}else if(video.type==='vimeo'){html='<iframe src=\"//player.vimeo.com/video/'+video.id+'?autoplay=1\" width=\"'+width+'\" height=\"'+height+'\" frameborder=\"0\" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';}else if(video.type==='vzaar'){html='<iframe frameborder=\"0\"'+'height=\"'+height+'\"'+'width=\"'+width+'\" allowfullscreen mozallowfullscreen webkitAllowFullScreen '+'src=\"//view.vzaar.com/'+video.id+'/player?autoplay=true\"></iframe>';}\n$('<div class=\"owl-video-frame\">'+html+'</div>').insertAfter(item.find('.owl-video'));this._playing=item.addClass('owl-video-playing');};Video.prototype.isInFullScreen=function(){var element=document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement;return element&&$(element).parent().hasClass('owl-video-frame');};Video.prototype.destroy=function(){var handler,property;this._core.$element.off('click.owl.video');for(handler in this._handlers){this._core.$element.off(handler,this._handlers[handler]);}\nfor(property in Object.getOwnPropertyNames(this)){typeof this[property]!='function'&&(this[property]=null);}};$.fn.owlCarousel.Constructor.Plugins.Video=Video;})(window.Zepto||window.jQuery,window,document);;(function($,window,document,undefined){var Animate=function(scope){this.core=scope;this.core.options=$.extend({},Animate.Defaults,this.core.options);this.swapping=true;this.previous=undefined;this.next=undefined;this.handlers={'change.owl.carousel':$.proxy(function(e){if(e.namespace&&e.property.name=='position'){this.previous=this.core.current();this.next=e.property.value;}},this),'drag.owl.carousel dragged.owl.carousel translated.owl.carousel':$.proxy(function(e){if(e.namespace){this.swapping=e.type=='translated';}},this),'translate.owl.carousel':$.proxy(function(e){if(e.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)){this.swap();}},this)};this.core.$element.on(this.handlers);};Animate.Defaults={animateOut:false,animateIn:false};Animate.prototype.swap=function(){if(this.core.settings.items!==1){return;}\nif(!$.support.animation||!$.support.transition){return;}\nthis.core.speed(0);var left,clear=$.proxy(this.clear,this),previous=this.core.$stage.children().eq(this.previous),next=this.core.$stage.children().eq(this.next),incoming=this.core.settings.animateIn,outgoing=this.core.settings.animateOut;if(this.core.current()===this.previous){return;}\nif(outgoing){left=this.core.coordinates(this.previous)-this.core.coordinates(this.next);previous.one($.support.animation.end,clear).css({'left':left+'px'}).addClass('animated owl-animated-out').addClass(outgoing);}\nif(incoming){next.one($.support.animation.end,clear).addClass('animated owl-animated-in').addClass(incoming);}};Animate.prototype.clear=function(e){$(e.target).css({'left':''}).removeClass('animated owl-animated-out owl-animated-in').removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut);this.core.onTransitionEnd();};Animate.prototype.destroy=function(){var handler,property;for(handler in this.handlers){this.core.$element.off(handler,this.handlers[handler]);}\nfor(property in Object.getOwnPropertyNames(this)){typeof this[property]!='function'&&(this[property]=null);}};$.fn.owlCarousel.Constructor.Plugins.Animate=Animate;})(window.Zepto||window.jQuery,window,document);;(function($,window,document,undefined){var Autoplay=function(carousel){this._core=carousel;this._timeout=null;this._paused=false;this._handlers={'changed.owl.carousel':$.proxy(function(e){if(e.namespace&&e.property.name==='settings'){if(this._core.settings.autoplay){this.play();}else{this.stop();}}else if(e.namespace&&e.property.name==='position'){if(this._core.settings.autoplay){this._setAutoPlayInterval();}}},this),'initialized.owl.carousel':$.proxy(function(e){if(e.namespace&&this._core.settings.autoplay){this.play();}},this),'play.owl.autoplay':$.proxy(function(e,t,s){if(e.namespace){this.play(t,s);}},this),'stop.owl.autoplay':$.proxy(function(e){if(e.namespace){this.stop();}},this),'mouseover.owl.autoplay':$.proxy(function(){if(this._core.settings.autoplayHoverPause&&this._core.is('rotating')){this.pause();}},this),'mouseleave.owl.autoplay':$.proxy(function(){if(this._core.settings.autoplayHoverPause&&this._core.is('rotating')){this.play();}},this),'touchstart.owl.core':$.proxy(function(){if(this._core.settings.autoplayHoverPause&&this._core.is('rotating')){this.pause();}},this),'touchend.owl.core':$.proxy(function(){if(this._core.settings.autoplayHoverPause){this.play();}},this)};this._core.$element.on(this._handlers);this._core.options=$.extend({},Autoplay.Defaults,this._core.options);};Autoplay.Defaults={autoplay:false,autoplayTimeout:5000,autoplayHoverPause:false,autoplaySpeed:false};Autoplay.prototype.play=function(timeout,speed){this._paused=false;if(this._core.is('rotating')){return;}\nthis._core.enter('rotating');this._setAutoPlayInterval();};Autoplay.prototype._getNextTimeout=function(timeout,speed){if(this._timeout){window.clearTimeout(this._timeout);}\nreturn window.setTimeout($.proxy(function(){if(this._paused||this._core.is('busy')||this._core.is('interacting')||document.hidden){return;}\nthis._core.next(speed||this._core.settings.autoplaySpeed);},this),timeout||this._core.settings.autoplayTimeout);};Autoplay.prototype._setAutoPlayInterval=function(){this._timeout=this._getNextTimeout();};Autoplay.prototype.stop=function(){if(!this._core.is('rotating')){return;}\nwindow.clearTimeout(this._timeout);this._core.leave('rotating');};Autoplay.prototype.pause=function(){if(!this._core.is('rotating')){return;}\nthis._paused=true;};Autoplay.prototype.destroy=function(){var handler,property;this.stop();for(handler in this._handlers){this._core.$element.off(handler,this._handlers[handler]);}\nfor(property in Object.getOwnPropertyNames(this)){typeof this[property]!='function'&&(this[property]=null);}};$.fn.owlCarousel.Constructor.Plugins.autoplay=Autoplay;})(window.Zepto||window.jQuery,window,document);;(function($,window,document,undefined){'use strict';var Navigation=function(carousel){this._core=carousel;this._initialized=false;this._pages=[];this._controls={};this._templates=[];this.$element=this._core.$element;this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to};this._handlers={'prepared.owl.carousel':$.proxy(function(e){if(e.namespace&&this._core.settings.dotsData){this._templates.push('<div class=\"'+this._core.settings.dotClass+'\">'+\n$(e.content).find('[data-dot]').addBack('[data-dot]').attr('data-dot')+'</div>');}},this),'added.owl.carousel':$.proxy(function(e){if(e.namespace&&this._core.settings.dotsData){this._templates.splice(e.position,0,this._templates.pop());}},this),'remove.owl.carousel':$.proxy(function(e){if(e.namespace&&this._core.settings.dotsData){this._templates.splice(e.position,1);}},this),'changed.owl.carousel':$.proxy(function(e){if(e.namespace&&e.property.name=='position'){this.draw();}},this),'initialized.owl.carousel':$.proxy(function(e){if(e.namespace&&!this._initialized){this._core.trigger('initialize',null,'navigation');this.initialize();this.update();this.draw();this._initialized=true;this._core.trigger('initialized',null,'navigation');}},this),'refreshed.owl.carousel':$.proxy(function(e){if(e.namespace&&this._initialized){this._core.trigger('refresh',null,'navigation');this.update();this.draw();this._core.trigger('refreshed',null,'navigation');}},this)};this._core.options=$.extend({},Navigation.Defaults,this._core.options);this.$element.on(this._handlers);};Navigation.Defaults={nav:false,navText:['prev','next'],navSpeed:false,navElement:'div',navContainer:false,navContainerClass:'owl-nav',navClass:['owl-prev','owl-next'],slideBy:1,dotClass:'owl-dot',dotsClass:'owl-dots',dots:true,dotsEach:false,dotsData:false,dotsSpeed:false,dotsContainer:false};Navigation.prototype.initialize=function(){var override,settings=this._core.settings;this._controls.$relative=(settings.navContainer?$(settings.navContainer):$('<div>').addClass(settings.navContainerClass).appendTo(this.$element)).addClass('disabled');this._controls.$previous=$('<'+settings.navElement+'>').addClass(settings.navClass[0]).html(settings.navText[0]).prependTo(this._controls.$relative).on('click',$.proxy(function(e){this.prev(settings.navSpeed);},this));this._controls.$next=$('<'+settings.navElement+'>').addClass(settings.navClass[1]).html(settings.navText[1]).appendTo(this._controls.$relative).on('click',$.proxy(function(e){this.next(settings.navSpeed);},this));if(!settings.dotsData){this._templates=[$('<div>').addClass(settings.dotClass).append($('<span>')).prop('outerHTML')];}\nthis._controls.$absolute=(settings.dotsContainer?$(settings.dotsContainer):$('<div>').addClass(settings.dotsClass).appendTo(this.$element)).addClass('disabled');this._controls.$absolute.on('click','div',$.proxy(function(e){var index=$(e.target).parent().is(this._controls.$absolute)?$(e.target).index():$(e.target).parent().index();e.preventDefault();this.to(index,settings.dotsSpeed);},this));for(override in this._overrides){this._core[override]=$.proxy(this[override],this);}};Navigation.prototype.destroy=function(){var handler,control,property,override;for(handler in this._handlers){this.$element.off(handler,this._handlers[handler]);}\nfor(control in this._controls){this._controls[control].remove();}\nfor(override in this.overides){this._core[override]=this._overrides[override];}\nfor(property in Object.getOwnPropertyNames(this)){typeof this[property]!='function'&&(this[property]=null);}};Navigation.prototype.update=function(){var i,j,k,lower=this._core.clones().length / 2,upper=lower+this._core.items().length,maximum=this._core.maximum(true),settings=this._core.settings,size=settings.center||settings.autoWidth||settings.dotsData?1:settings.dotsEach||settings.items;if(settings.slideBy!=='page'){settings.slideBy=Math.min(settings.slideBy,settings.items);}\nif(settings.dots||settings.slideBy=='page'){this._pages=[];for(i=lower,j=0,k=0;i<upper;i++){if(j>=size||j===0){this._pages.push({start:Math.min(maximum,i-lower),end:i-lower+size-1});if(Math.min(maximum,i-lower)===maximum){break;}\nj=0,++k;}\nj+=this._core.mergers(this._core.relative(i));}}};Navigation.prototype.draw=function(){var difference,settings=this._core.settings,disabled=this._core.items().length<=settings.items,index=this._core.relative(this._core.current()),loop=settings.loop||settings.rewind;this._controls.$relative.toggleClass('disabled',!settings.nav||disabled);if(settings.nav){this._controls.$previous.toggleClass('disabled',!loop&&index<=this._core.minimum(true));this._controls.$next.toggleClass('disabled',!loop&&index>=this._core.maximum(true));}\nthis._controls.$absolute.toggleClass('disabled',!settings.dots||disabled);if(settings.dots){difference=this._pages.length-this._controls.$absolute.children().length;if(settings.dotsData&&difference!==0){this._controls.$absolute.html(this._templates.join(''));}else if(difference>0){this._controls.$absolute.append(new Array(difference+1).join(this._templates[0]));}else if(difference<0){this._controls.$absolute.children().slice(difference).remove();}\nthis._controls.$absolute.find('.active').removeClass('active');this._controls.$absolute.children().eq($.inArray(this.current(),this._pages)).addClass('active');}};Navigation.prototype.onTrigger=function(event){var settings=this._core.settings;event.page={index:$.inArray(this.current(),this._pages),count:this._pages.length,size:settings&&(settings.center||settings.autoWidth||settings.dotsData?1:settings.dotsEach||settings.items)};};Navigation.prototype.current=function(){var current=this._core.relative(this._core.current());return $.grep(this._pages,$.proxy(function(page,index){return page.start<=current&&page.end>=current;},this)).pop();};Navigation.prototype.getPosition=function(successor){var position,length,settings=this._core.settings;if(settings.slideBy=='page'){position=$.inArray(this.current(),this._pages);length=this._pages.length;successor?++position:--position;position=this._pages[((position%length)+length)%length].start;}else{position=this._core.relative(this._core.current());length=this._core.items().length;successor?position+=settings.slideBy:position-=settings.slideBy;}\nreturn position;};Navigation.prototype.next=function(speed){$.proxy(this._overrides.to,this._core)(this.getPosition(true),speed);};Navigation.prototype.prev=function(speed){$.proxy(this._overrides.to,this._core)(this.getPosition(false),speed);};Navigation.prototype.to=function(position,speed,standard){var length;if(!standard&&this._pages.length){length=this._pages.length;$.proxy(this._overrides.to,this._core)(this._pages[((position%length)+length)%length].start,speed);}else{$.proxy(this._overrides.to,this._core)(position,speed);}};$.fn.owlCarousel.Constructor.Plugins.Navigation=Navigation;})(window.Zepto||window.jQuery,window,document);;(function($,window,document,undefined){'use strict';var Hash=function(carousel){this._core=carousel;this._hashes={};this.$element=this._core.$element;this._handlers={'initialized.owl.carousel':$.proxy(function(e){if(e.namespace&&this._core.settings.startPosition==='URLHash'){$(window).trigger('hashchange.owl.navigation');}},this),'prepared.owl.carousel':$.proxy(function(e){if(e.namespace){var hash=$(e.content).find('[data-hash]').addBack('[data-hash]').attr('data-hash');if(!hash){return;}\nthis._hashes[hash]=e.content;}},this),'changed.owl.carousel':$.proxy(function(e){if(e.namespace&&e.property.name==='position'){var current=this._core.items(this._core.relative(this._core.current())),hash=$.map(this._hashes,function(item,hash){return item===current?hash:null;}).join();if(!hash||window.location.hash.slice(1)===hash){return;}\nwindow.location.hash=hash;}},this)};this._core.options=$.extend({},Hash.Defaults,this._core.options);this.$element.on(this._handlers);$(window).on('hashchange.owl.navigation',$.proxy(function(e){var hash=window.location.hash.substring(1),items=this._core.$stage.children(),position=this._hashes[hash]&&items.index(this._hashes[hash]);if(position===undefined||position===this._core.current()){return;}\nthis._core.to(this._core.relative(position),false,true);},this));};Hash.Defaults={URLhashListener:false};Hash.prototype.destroy=function(){var handler,property;$(window).off('hashchange.owl.navigation');for(handler in this._handlers){this._core.$element.off(handler,this._handlers[handler]);}\nfor(property in Object.getOwnPropertyNames(this)){typeof this[property]!='function'&&(this[property]=null);}};$.fn.owlCarousel.Constructor.Plugins.Hash=Hash;})(window.Zepto||window.jQuery,window,document);;(function($,window,document,undefined){var style=$('<support>').get(0).style,prefixes='Webkit Moz O ms'.split(' '),events={transition:{end:{WebkitTransition:'webkitTransitionEnd',MozTransition:'transitionend',OTransition:'oTransitionEnd',transition:'transitionend'}},animation:{end:{WebkitAnimation:'webkitAnimationEnd',MozAnimation:'animationend',OAnimation:'oAnimationEnd',animation:'animationend'}}},tests={csstransforms:function(){return!!test('transform');},csstransforms3d:function(){return!!test('perspective');},csstransitions:function(){return!!test('transition');},cssanimations:function(){return!!test('animation');}};function test(property,prefixed){var result=false,upper=property.charAt(0).toUpperCase()+property.slice(1);$.each((property+' '+prefixes.join(upper+' ')+upper).split(' '),function(i,property){if(style[property]!==undefined){result=prefixed?property:true;return false;}});return result;}\nfunction prefixed(property){return test(property,true);}\nif(tests.csstransitions()){$.support.transition=new String(prefixed('transition'))\n$.support.transition.end=events.transition.end[$.support.transition];}\nif(tests.cssanimations()){$.support.animation=new String(prefixed('animation'))\n$.support.animation.end=events.animation.end[$.support.animation];}\nif(tests.csstransforms()){$.support.transform=new String(prefixed('transform'));$.support.transform3d=tests.csstransforms3d();}})(window.Zepto||window.jQuery,window,document);","Magento_CatalogSearch/js/search-terms-log.min.js":"define(['jquery','mageUtils'],function($,utils){'use strict';return function(data){$.ajax({method:'GET',url:data.url,data:{'q':utils.getUrlParameters(window.location.href).q}});};});","MGS_Ajaxlayernavigation/js/ion.rangeSlider.min.js":"// Ion.RangeSlider | version 2.1.4 | https://github.com/IonDen/ion.rangeSlider\r\n;(function(g){\"function\"===typeof define&&define.amd?define([\"jquery\"],function(q){g(q,document,window,navigator)}):g(jQuery,document,window,navigator)})(function(g,q,h,t,v){var u=0,p=function(){var a=t.userAgent,b=/msie\\s\\d+/i;return 0<a.search(b)&&(a=b.exec(a).toString(),a=a.split(\" \")[1],9>a)?(g(\"html\").addClass(\"lt-ie9\"),!0):!1}();Function.prototype.bind||(Function.prototype.bind=function(a){var b=this,d=[].slice;if(\"function\"!=typeof b)throw new TypeError;var c=d.call(arguments,1),e=function(){if(this instanceof\r\ne){var f=function(){};f.prototype=b.prototype;var f=new f,l=b.apply(f,c.concat(d.call(arguments)));return Object(l)===l?l:f}return b.apply(a,c.concat(d.call(arguments)))};return e});Array.prototype.indexOf||(Array.prototype.indexOf=function(a,b){var d;if(null==this)throw new TypeError('\"this\" is null or not defined');var c=Object(this),e=c.length>>>0;if(0===e)return-1;d=+b||0;Infinity===Math.abs(d)&&(d=0);if(d>=e)return-1;for(d=Math.max(0<=d?d:e-Math.abs(d),0);d<e;){if(d in c&&c[d]===a)return d;d++}return-1});\r\nvar r=function(a,b,d){this.VERSION=\"2.1.4\";this.input=a;this.plugin_count=d;this.old_to=this.old_from=this.update_tm=this.calc_count=this.current_plugin=0;this.raf_id=this.old_min_interval=null;this.is_update=this.is_key=this.no_diapason=this.force_redraw=this.dragging=!1;this.is_start=!0;this.is_click=this.is_resize=this.is_active=this.is_finish=!1;this.$cache={win:g(h),body:g(q.body),input:g(a),cont:null,rs:null,min:null,max:null,from:null,to:null,single:null,bar:null,line:null,s_single:null,s_from:null,\r\ns_to:null,shad_single:null,shad_from:null,shad_to:null,edge:null,grid:null,grid_labels:[]};this.coords={x_gap:0,x_pointer:0,w_rs:0,w_rs_old:0,w_handle:0,p_gap:0,p_gap_left:0,p_gap_right:0,p_step:0,p_pointer:0,p_handle:0,p_single_fake:0,p_single_real:0,p_from_fake:0,p_from_real:0,p_to_fake:0,p_to_real:0,p_bar_x:0,p_bar_w:0,grid_gap:0,big_num:0,big:[],big_w:[],big_p:[],big_x:[]};this.labels={w_min:0,w_max:0,w_from:0,w_to:0,w_single:0,p_min:0,p_max:0,p_from_fake:0,p_from_left:0,p_to_fake:0,p_to_left:0,\r\np_single_fake:0,p_single_left:0};var c=this.$cache.input;a=c.prop(\"value\");var e;d={type:\"single\",min:10,max:100,from:null,to:null,step:1,min_interval:0,max_interval:0,drag_interval:!1,values:[],p_values:[],from_fixed:!1,from_min:null,from_max:null,from_shadow:!1,to_fixed:!1,to_min:null,to_max:null,to_shadow:!1,prettify_enabled:!0,prettify_separator:\" \",prettify:null,force_edges:!1,keyboard:!1,keyboard_step:5,grid:!1,grid_margin:!0,grid_num:4,grid_snap:!1,hide_min_max:!1,hide_from_to:!1,prefix:\"\",\r\npostfix:\"\",max_postfix:\"\",decorate_both:!0,values_separator:\" \\u2014 \",input_values_separator:\";\",disable:!1,onStart:null,onChange:null,onFinish:null,onUpdate:null};c={type:c.data(\"type\"),min:c.data(\"min\"),max:c.data(\"max\"),from:c.data(\"from\"),to:c.data(\"to\"),step:c.data(\"step\"),min_interval:c.data(\"minInterval\"),max_interval:c.data(\"maxInterval\"),drag_interval:c.data(\"dragInterval\"),values:c.data(\"values\"),from_fixed:c.data(\"fromFixed\"),from_min:c.data(\"fromMin\"),from_max:c.data(\"fromMax\"),from_shadow:c.data(\"fromShadow\"),\r\nto_fixed:c.data(\"toFixed\"),to_min:c.data(\"toMin\"),to_max:c.data(\"toMax\"),to_shadow:c.data(\"toShadow\"),prettify_enabled:c.data(\"prettifyEnabled\"),prettify_separator:c.data(\"prettifySeparator\"),force_edges:c.data(\"forceEdges\"),keyboard:c.data(\"keyboard\"),keyboard_step:c.data(\"keyboardStep\"),grid:c.data(\"grid\"),grid_margin:c.data(\"gridMargin\"),grid_num:c.data(\"gridNum\"),grid_snap:c.data(\"gridSnap\"),hide_min_max:c.data(\"hideMinMax\"),hide_from_to:c.data(\"hideFromTo\"),prefix:c.data(\"prefix\"),postfix:c.data(\"postfix\"),\r\nmax_postfix:c.data(\"maxPostfix\"),decorate_both:c.data(\"decorateBoth\"),values_separator:c.data(\"valuesSeparator\"),input_values_separator:c.data(\"inputValuesSeparator\"),disable:c.data(\"disable\")};c.values=c.values&&c.values.split(\",\");for(e in c)c.hasOwnProperty(e)&&(c[e]||0===c[e]||delete c[e]);a&&(a=a.split(c.input_values_separator||b.input_values_separator||\";\"),a[0]&&a[0]==+a[0]&&(a[0]=+a[0]),a[1]&&a[1]==+a[1]&&(a[1]=+a[1]),b&&b.values&&b.values.length?(d.from=a[0]&&b.values.indexOf(a[0]),d.to=\r\na[1]&&b.values.indexOf(a[1])):(d.from=a[0]&&+a[0],d.to=a[1]&&+a[1]));g.extend(d,b);g.extend(d,c);this.options=d;this.validate();this.result={input:this.$cache.input,slider:null,min:this.options.min,max:this.options.max,from:this.options.from,from_percent:0,from_value:null,to:this.options.to,to_percent:0,to_value:null};this.init()};r.prototype={init:function(a){this.no_diapason=!1;this.coords.p_step=this.convertToPercent(this.options.step,!0);this.target=\"base\";this.toggleInput();this.append();this.setMinMax();\r\na?(this.force_redraw=!0,this.calc(!0),this.callOnUpdate()):(this.force_redraw=!0,this.calc(!0),this.callOnStart());this.updateScene()},append:function(){this.$cache.input.before('<span class=\"irs js-irs-'+this.plugin_count+'\"></span>');this.$cache.input.prop(\"readonly\",!0);this.$cache.cont=this.$cache.input.prev();this.result.slider=this.$cache.cont;this.$cache.cont.html('<span class=\"irs\"><span class=\"irs-line\" tabindex=\"-1\"><span class=\"irs-line-left\"></span><span class=\"irs-line-mid\"></span><span class=\"irs-line-right\"></span></span><span class=\"irs-min\">0</span><span class=\"irs-max\">1</span><span class=\"irs-from\">0</span><span class=\"irs-to\">0</span><span class=\"irs-single\">0</span></span><span class=\"irs-grid\"></span><span class=\"irs-bar\"></span>');\r\nthis.$cache.rs=this.$cache.cont.find(\".irs\");this.$cache.min=this.$cache.cont.find(\".irs-min\");this.$cache.max=this.$cache.cont.find(\".irs-max\");this.$cache.from=this.$cache.cont.find(\".irs-from\");this.$cache.to=this.$cache.cont.find(\".irs-to\");this.$cache.single=this.$cache.cont.find(\".irs-single\");this.$cache.bar=this.$cache.cont.find(\".irs-bar\");this.$cache.line=this.$cache.cont.find(\".irs-line\");this.$cache.grid=this.$cache.cont.find(\".irs-grid\");\"single\"===this.options.type?(this.$cache.cont.append('<span class=\"irs-bar-edge\"></span><span class=\"irs-shadow shadow-single\"></span><span class=\"irs-slider single\"></span>'),\r\nthis.$cache.edge=this.$cache.cont.find(\".irs-bar-edge\"),this.$cache.s_single=this.$cache.cont.find(\".single\"),this.$cache.from[0].style.visibility=\"hidden\",this.$cache.to[0].style.visibility=\"hidden\",this.$cache.shad_single=this.$cache.cont.find(\".shadow-single\")):(this.$cache.cont.append('<span class=\"irs-shadow shadow-from\"></span><span class=\"irs-shadow shadow-to\"></span><span class=\"irs-slider from\"></span><span class=\"irs-slider to\"></span>'),this.$cache.s_from=this.$cache.cont.find(\".from\"),\r\nthis.$cache.s_to=this.$cache.cont.find(\".to\"),this.$cache.shad_from=this.$cache.cont.find(\".shadow-from\"),this.$cache.shad_to=this.$cache.cont.find(\".shadow-to\"),this.setTopHandler());this.options.hide_from_to&&(this.$cache.from[0].style.display=\"none\",this.$cache.to[0].style.display=\"none\",this.$cache.single[0].style.display=\"none\");this.appendGrid();this.options.disable?(this.appendDisableMask(),this.$cache.input[0].disabled=!0):(this.$cache.cont.removeClass(\"irs-disabled\"),this.$cache.input[0].disabled=\r\n!1,this.bindEvents());this.options.drag_interval&&(this.$cache.bar[0].style.cursor=\"ew-resize\")},setTopHandler:function(){var a=this.options.max,b=this.options.to;this.options.from>this.options.min&&b===a?this.$cache.s_from.addClass(\"type_last\"):b<a&&this.$cache.s_to.addClass(\"type_last\")},changeLevel:function(a){switch(a){case \"single\":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_single_fake);break;case \"from\":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_from_fake);\r\nthis.$cache.s_from.addClass(\"state_hover\");this.$cache.s_from.addClass(\"type_last\");this.$cache.s_to.removeClass(\"type_last\");break;case \"to\":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_to_fake);this.$cache.s_to.addClass(\"state_hover\");this.$cache.s_to.addClass(\"type_last\");this.$cache.s_from.removeClass(\"type_last\");break;case \"both\":this.coords.p_gap_left=this.toFixed(this.coords.p_pointer-this.coords.p_from_fake),this.coords.p_gap_right=this.toFixed(this.coords.p_to_fake-\r\nthis.coords.p_pointer),this.$cache.s_to.removeClass(\"type_last\"),this.$cache.s_from.removeClass(\"type_last\")}},appendDisableMask:function(){this.$cache.cont.append('<span class=\"irs-disable-mask\"></span>');this.$cache.cont.addClass(\"irs-disabled\")},remove:function(){this.$cache.cont.remove();this.$cache.cont=null;this.$cache.line.off(\"keydown.irs_\"+this.plugin_count);this.$cache.body.off(\"touchmove.irs_\"+this.plugin_count);this.$cache.body.off(\"mousemove.irs_\"+this.plugin_count);this.$cache.win.off(\"touchend.irs_\"+\r\nthis.plugin_count);this.$cache.win.off(\"mouseup.irs_\"+this.plugin_count);p&&(this.$cache.body.off(\"mouseup.irs_\"+this.plugin_count),this.$cache.body.off(\"mouseleave.irs_\"+this.plugin_count));this.$cache.grid_labels=[];this.coords.big=[];this.coords.big_w=[];this.coords.big_p=[];this.coords.big_x=[];cancelAnimationFrame(this.raf_id)},bindEvents:function(){if(!this.no_diapason){this.$cache.body.on(\"touchmove.irs_\"+this.plugin_count,this.pointerMove.bind(this));this.$cache.body.on(\"mousemove.irs_\"+this.plugin_count,\r\nthis.pointerMove.bind(this));this.$cache.win.on(\"touchend.irs_\"+this.plugin_count,this.pointerUp.bind(this));this.$cache.win.on(\"mouseup.irs_\"+this.plugin_count,this.pointerUp.bind(this));this.$cache.line.on(\"touchstart.irs_\"+this.plugin_count,this.pointerClick.bind(this,\"click\"));this.$cache.line.on(\"mousedown.irs_\"+this.plugin_count,this.pointerClick.bind(this,\"click\"));this.options.drag_interval&&\"double\"===this.options.type?(this.$cache.bar.on(\"touchstart.irs_\"+this.plugin_count,this.pointerDown.bind(this,\r\n\"both\")),this.$cache.bar.on(\"mousedown.irs_\"+this.plugin_count,this.pointerDown.bind(this,\"both\"))):(this.$cache.bar.on(\"touchstart.irs_\"+this.plugin_count,this.pointerClick.bind(this,\"click\")),this.$cache.bar.on(\"mousedown.irs_\"+this.plugin_count,this.pointerClick.bind(this,\"click\")));\"single\"===this.options.type?(this.$cache.single.on(\"touchstart.irs_\"+this.plugin_count,this.pointerDown.bind(this,\"single\")),this.$cache.s_single.on(\"touchstart.irs_\"+this.plugin_count,this.pointerDown.bind(this,\"single\")),\r\nthis.$cache.shad_single.on(\"touchstart.irs_\"+this.plugin_count,this.pointerClick.bind(this,\"click\")),this.$cache.single.on(\"mousedown.irs_\"+this.plugin_count,this.pointerDown.bind(this,\"single\")),this.$cache.s_single.on(\"mousedown.irs_\"+this.plugin_count,this.pointerDown.bind(this,\"single\")),this.$cache.edge.on(\"mousedown.irs_\"+this.plugin_count,this.pointerClick.bind(this,\"click\")),this.$cache.shad_single.on(\"mousedown.irs_\"+this.plugin_count,this.pointerClick.bind(this,\"click\"))):(this.$cache.single.on(\"touchstart.irs_\"+\r\nthis.plugin_count,this.pointerDown.bind(this,null)),this.$cache.single.on(\"mousedown.irs_\"+this.plugin_count,this.pointerDown.bind(this,null)),this.$cache.from.on(\"touchstart.irs_\"+this.plugin_count,this.pointerDown.bind(this,\"from\")),this.$cache.s_from.on(\"touchstart.irs_\"+this.plugin_count,this.pointerDown.bind(this,\"from\")),this.$cache.to.on(\"touchstart.irs_\"+this.plugin_count,this.pointerDown.bind(this,\"to\")),this.$cache.s_to.on(\"touchstart.irs_\"+this.plugin_count,this.pointerDown.bind(this,\"to\")),\r\nthis.$cache.shad_from.on(\"touchstart.irs_\"+this.plugin_count,this.pointerClick.bind(this,\"click\")),this.$cache.shad_to.on(\"touchstart.irs_\"+this.plugin_count,this.pointerClick.bind(this,\"click\")),this.$cache.from.on(\"mousedown.irs_\"+this.plugin_count,this.pointerDown.bind(this,\"from\")),this.$cache.s_from.on(\"mousedown.irs_\"+this.plugin_count,this.pointerDown.bind(this,\"from\")),this.$cache.to.on(\"mousedown.irs_\"+this.plugin_count,this.pointerDown.bind(this,\"to\")),this.$cache.s_to.on(\"mousedown.irs_\"+\r\nthis.plugin_count,this.pointerDown.bind(this,\"to\")),this.$cache.shad_from.on(\"mousedown.irs_\"+this.plugin_count,this.pointerClick.bind(this,\"click\")),this.$cache.shad_to.on(\"mousedown.irs_\"+this.plugin_count,this.pointerClick.bind(this,\"click\")));if(this.options.keyboard)this.$cache.line.on(\"keydown.irs_\"+this.plugin_count,this.key.bind(this,\"keyboard\"));p&&(this.$cache.body.on(\"mouseup.irs_\"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.body.on(\"mouseleave.irs_\"+this.plugin_count,this.pointerUp.bind(this)))}},\r\npointerMove:function(a){this.dragging&&(this.coords.x_pointer=(a.pageX||a.originalEvent.touches&&a.originalEvent.touches[0].pageX)-this.coords.x_gap,this.calc())},pointerUp:function(a){if(this.current_plugin===this.plugin_count&&this.is_active){this.is_active=!1;this.$cache.cont.find(\".state_hover\").removeClass(\"state_hover\");this.force_redraw=!0;p&&g(\"*\").prop(\"unselectable\",!1);this.updateScene();this.restoreOriginalMinInterval();if(g.contains(this.$cache.cont[0],a.target)||this.dragging)this.is_finish=\r\n!0,this.callOnFinish();this.dragging=!1}},pointerDown:function(a,b){b.preventDefault();var d=b.pageX||b.originalEvent.touches&&b.originalEvent.touches[0].pageX;2!==b.button&&(\"both\"===a&&this.setTempMinInterval(),a||(a=this.target),this.current_plugin=this.plugin_count,this.target=a,this.dragging=this.is_active=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=d-this.coords.x_gap,this.calcPointerPercent(),this.changeLevel(a),p&&g(\"*\").prop(\"unselectable\",!0),this.$cache.line.trigger(\"focus\"),\r\nthis.updateScene())},pointerClick:function(a,b){b.preventDefault();var d=b.pageX||b.originalEvent.touches&&b.originalEvent.touches[0].pageX;2!==b.button&&(this.current_plugin=this.plugin_count,this.target=a,this.is_click=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=+(d-this.coords.x_gap).toFixed(),this.force_redraw=!0,this.calc(),this.$cache.line.trigger(\"focus\"))},key:function(a,b){if(!(this.current_plugin!==this.plugin_count||b.altKey||b.ctrlKey||b.shiftKey||b.metaKey)){switch(b.which){case 83:case 65:case 40:case 37:b.preventDefault();\r\nthis.moveByKey(!1);break;case 87:case 68:case 38:case 39:b.preventDefault(),this.moveByKey(!0)}return!0}},moveByKey:function(a){var b=this.coords.p_pointer,b=a?b+this.options.keyboard_step:b-this.options.keyboard_step;this.coords.x_pointer=this.toFixed(this.coords.w_rs/100*b);this.is_key=!0;this.calc()},setMinMax:function(){this.options&&(this.options.hide_min_max?(this.$cache.min[0].style.display=\"none\",this.$cache.max[0].style.display=\"none\"):(this.options.values.length?(this.$cache.min.html(this.decorate(this.options.p_values[this.options.min])),\r\nthis.$cache.max.html(this.decorate(this.options.p_values[this.options.max]))):(this.$cache.min.html(this.decorate(this._prettify(this.options.min),this.options.min)),this.$cache.max.html(this.decorate(this._prettify(this.options.max),this.options.max))),this.labels.w_min=this.$cache.min.outerWidth(!1),this.labels.w_max=this.$cache.max.outerWidth(!1)))},setTempMinInterval:function(){var a=this.result.to-this.result.from;null===this.old_min_interval&&(this.old_min_interval=this.options.min_interval);\r\nthis.options.min_interval=a},restoreOriginalMinInterval:function(){null!==this.old_min_interval&&(this.options.min_interval=this.old_min_interval,this.old_min_interval=null)},calc:function(a){if(this.options){this.calc_count++;if(10===this.calc_count||a)this.calc_count=0,this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.calcHandlePercent();if(this.coords.w_rs){this.calcPointerPercent();a=this.getHandleX();\"click\"===this.target&&(this.coords.p_gap=this.coords.p_handle/2,a=this.getHandleX(),this.target=\r\nthis.options.drag_interval?\"both_one\":this.chooseHandle(a));switch(this.target){case \"base\":var b=(this.options.max-this.options.min)/100;a=(this.result.from-this.options.min)/b;b=(this.result.to-this.options.min)/b;this.coords.p_single_real=this.toFixed(a);this.coords.p_from_real=this.toFixed(a);this.coords.p_to_real=this.toFixed(b);this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max);this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,\r\nthis.options.from_min,this.options.from_max);this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max);this.coords.p_single_fake=this.convertToFakePercent(this.coords.p_single_real);this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real);this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real);this.target=null;break;case \"single\":if(this.options.from_fixed)break;this.coords.p_single_real=this.convertToRealPercent(a);this.coords.p_single_real=\r\nthis.calcWithStep(this.coords.p_single_real);this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max);this.coords.p_single_fake=this.convertToFakePercent(this.coords.p_single_real);break;case \"from\":if(this.options.from_fixed)break;this.coords.p_from_real=this.convertToRealPercent(a);this.coords.p_from_real=this.calcWithStep(this.coords.p_from_real);this.coords.p_from_real>this.coords.p_to_real&&(this.coords.p_from_real=this.coords.p_to_real);\r\nthis.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max);this.coords.p_from_real=this.checkMinInterval(this.coords.p_from_real,this.coords.p_to_real,\"from\");this.coords.p_from_real=this.checkMaxInterval(this.coords.p_from_real,this.coords.p_to_real,\"from\");this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real);break;case \"to\":if(this.options.to_fixed)break;this.coords.p_to_real=this.convertToRealPercent(a);this.coords.p_to_real=\r\nthis.calcWithStep(this.coords.p_to_real);this.coords.p_to_real<this.coords.p_from_real&&(this.coords.p_to_real=this.coords.p_from_real);this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max);this.coords.p_to_real=this.checkMinInterval(this.coords.p_to_real,this.coords.p_from_real,\"to\");this.coords.p_to_real=this.checkMaxInterval(this.coords.p_to_real,this.coords.p_from_real,\"to\");this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real);\r\nbreak;case \"both\":if(this.options.from_fixed||this.options.to_fixed)break;a=this.toFixed(a+.1*this.coords.p_handle);this.coords.p_from_real=this.convertToRealPercent(a)-this.coords.p_gap_left;this.coords.p_from_real=this.calcWithStep(this.coords.p_from_real);this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max);this.coords.p_from_real=this.checkMinInterval(this.coords.p_from_real,this.coords.p_to_real,\"from\");this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real);\r\nthis.coords.p_to_real=this.convertToRealPercent(a)+this.coords.p_gap_right;this.coords.p_to_real=this.calcWithStep(this.coords.p_to_real);this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max);this.coords.p_to_real=this.checkMinInterval(this.coords.p_to_real,this.coords.p_from_real,\"to\");this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real);break;case \"both_one\":if(!this.options.from_fixed&&!this.options.to_fixed){var d=this.convertToRealPercent(a);\r\na=this.result.to_percent-this.result.from_percent;var c=a/2,b=d-c,d=d+c;0>b&&(b=0,d=b+a);100<d&&(d=100,b=d-a);this.coords.p_from_real=this.calcWithStep(b);this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max);this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real);this.coords.p_to_real=this.calcWithStep(d);this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max);this.coords.p_to_fake=\r\nthis.convertToFakePercent(this.coords.p_to_real)}}\"single\"===this.options.type?(this.coords.p_bar_x=this.coords.p_handle/2,this.coords.p_bar_w=this.coords.p_single_fake,this.result.from_percent=this.coords.p_single_real,this.result.from=this.convertToValue(this.coords.p_single_real),this.options.values.length&&(this.result.from_value=this.options.values[this.result.from])):(this.coords.p_bar_x=this.toFixed(this.coords.p_from_fake+this.coords.p_handle/2),this.coords.p_bar_w=this.toFixed(this.coords.p_to_fake-\r\nthis.coords.p_from_fake),this.result.from_percent=this.coords.p_from_real,this.result.from=this.convertToValue(this.coords.p_from_real),this.result.to_percent=this.coords.p_to_real,this.result.to=this.convertToValue(this.coords.p_to_real),this.options.values.length&&(this.result.from_value=this.options.values[this.result.from],this.result.to_value=this.options.values[this.result.to]));this.calcMinMax();this.calcLabels()}}},calcPointerPercent:function(){this.coords.w_rs?(0>this.coords.x_pointer||isNaN(this.coords.x_pointer)?\r\nthis.coords.x_pointer=0:this.coords.x_pointer>this.coords.w_rs&&(this.coords.x_pointer=this.coords.w_rs),this.coords.p_pointer=this.toFixed(this.coords.x_pointer/this.coords.w_rs*100)):this.coords.p_pointer=0},convertToRealPercent:function(a){return a/(100-this.coords.p_handle)*100},convertToFakePercent:function(a){return a/100*(100-this.coords.p_handle)},getHandleX:function(){var a=100-this.coords.p_handle,b=this.toFixed(this.coords.p_pointer-this.coords.p_gap);0>b?b=0:b>a&&(b=a);return b},calcHandlePercent:function(){this.coords.w_handle=\r\n\"single\"===this.options.type?this.$cache.s_single.outerWidth(!1):this.$cache.s_from.outerWidth(!1);this.coords.p_handle=this.toFixed(this.coords.w_handle/this.coords.w_rs*100)},chooseHandle:function(a){return\"single\"===this.options.type?\"single\":a>=this.coords.p_from_real+(this.coords.p_to_real-this.coords.p_from_real)/2?this.options.to_fixed?\"from\":\"to\":this.options.from_fixed?\"to\":\"from\"},calcMinMax:function(){this.coords.w_rs&&(this.labels.p_min=this.labels.w_min/this.coords.w_rs*100,this.labels.p_max=\r\nthis.labels.w_max/this.coords.w_rs*100)},calcLabels:function(){this.coords.w_rs&&!this.options.hide_from_to&&(\"single\"===this.options.type?(this.labels.w_single=this.$cache.single.outerWidth(!1),this.labels.p_single_fake=this.labels.w_single/this.coords.w_rs*100,this.labels.p_single_left=this.coords.p_single_fake+this.coords.p_handle/2-this.labels.p_single_fake/2):(this.labels.w_from=this.$cache.from.outerWidth(!1),this.labels.p_from_fake=this.labels.w_from/this.coords.w_rs*100,this.labels.p_from_left=\r\nthis.coords.p_from_fake+this.coords.p_handle/2-this.labels.p_from_fake/2,this.labels.p_from_left=this.toFixed(this.labels.p_from_left),this.labels.p_from_left=this.checkEdges(this.labels.p_from_left,this.labels.p_from_fake),this.labels.w_to=this.$cache.to.outerWidth(!1),this.labels.p_to_fake=this.labels.w_to/this.coords.w_rs*100,this.labels.p_to_left=this.coords.p_to_fake+this.coords.p_handle/2-this.labels.p_to_fake/2,this.labels.p_to_left=this.toFixed(this.labels.p_to_left),this.labels.p_to_left=\r\nthis.checkEdges(this.labels.p_to_left,this.labels.p_to_fake),this.labels.w_single=this.$cache.single.outerWidth(!1),this.labels.p_single_fake=this.labels.w_single/this.coords.w_rs*100,this.labels.p_single_left=(this.labels.p_from_left+this.labels.p_to_left+this.labels.p_to_fake)/2-this.labels.p_single_fake/2,this.labels.p_single_left=this.toFixed(this.labels.p_single_left)),this.labels.p_single_left=this.checkEdges(this.labels.p_single_left,this.labels.p_single_fake))},updateScene:function(){this.raf_id&&\r\n(cancelAnimationFrame(this.raf_id),this.raf_id=null);clearTimeout(this.update_tm);this.update_tm=null;this.options&&(this.drawHandles(),this.is_active?this.raf_id=requestAnimationFrame(this.updateScene.bind(this)):this.update_tm=setTimeout(this.updateScene.bind(this),300))},drawHandles:function(){this.coords.w_rs=this.$cache.rs.outerWidth(!1);if(this.coords.w_rs){this.coords.w_rs!==this.coords.w_rs_old&&(this.target=\"base\",this.is_resize=!0);if(this.coords.w_rs!==this.coords.w_rs_old||this.force_redraw)this.setMinMax(),\r\nthis.calc(!0),this.drawLabels(),this.options.grid&&(this.calcGridMargin(),this.calcGridLabels()),this.force_redraw=!0,this.coords.w_rs_old=this.coords.w_rs,this.drawShadow();if(this.coords.w_rs&&(this.dragging||this.force_redraw||this.is_key)){if(this.old_from!==this.result.from||this.old_to!==this.result.to||this.force_redraw||this.is_key){this.drawLabels();this.$cache.bar[0].style.left=this.coords.p_bar_x+\"%\";this.$cache.bar[0].style.width=this.coords.p_bar_w+\"%\";if(\"single\"===this.options.type)this.$cache.s_single[0].style.left=\r\nthis.coords.p_single_fake+\"%\",this.$cache.single[0].style.left=this.labels.p_single_left+\"%\",this.options.values.length?this.$cache.input.prop(\"value\",this.result.from_value):this.$cache.input.prop(\"value\",this.result.from),this.$cache.input.data(\"from\",this.result.from);else{this.$cache.s_from[0].style.left=this.coords.p_from_fake+\"%\";this.$cache.s_to[0].style.left=this.coords.p_to_fake+\"%\";if(this.old_from!==this.result.from||this.force_redraw)this.$cache.from[0].style.left=this.labels.p_from_left+\r\n\"%\";if(this.old_to!==this.result.to||this.force_redraw)this.$cache.to[0].style.left=this.labels.p_to_left+\"%\";this.$cache.single[0].style.left=this.labels.p_single_left+\"%\";this.options.values.length?this.$cache.input.prop(\"value\",this.result.from_value+this.options.input_values_separator+this.result.to_value):this.$cache.input.prop(\"value\",this.result.from+this.options.input_values_separator+this.result.to);this.$cache.input.data(\"from\",this.result.from);this.$cache.input.data(\"to\",this.result.to)}this.old_from===\r\nthis.result.from&&this.old_to===this.result.to||this.is_start||this.$cache.input.trigger(\"change\");this.old_from=this.result.from;this.old_to=this.result.to;this.is_resize||this.is_update||this.is_start||this.is_finish||this.callOnChange();if(this.is_key||this.is_click)this.is_click=this.is_key=!1,this.callOnFinish();this.is_finish=this.is_resize=this.is_update=!1}this.force_redraw=this.is_click=this.is_key=this.is_start=!1}}},drawLabels:function(){if(this.options){var a=this.options.values.length,\r\nb=this.options.p_values,d;if(!this.options.hide_from_to)if(\"single\"===this.options.type)a=a?this.decorate(b[this.result.from]):this.decorate(this._prettify(this.result.from),this.result.from),this.$cache.single.html(a),this.calcLabels(),this.$cache.min[0].style.visibility=this.labels.p_single_left<this.labels.p_min+1?\"hidden\":\"visible\",this.$cache.max[0].style.visibility=this.labels.p_single_left+this.labels.p_single_fake>100-this.labels.p_max-1?\"hidden\":\"visible\";else{a?(this.options.decorate_both?\r\n(a=this.decorate(b[this.result.from]),a+=this.options.values_separator,a+=this.decorate(b[this.result.to])):a=this.decorate(b[this.result.from]+this.options.values_separator+b[this.result.to]),d=this.decorate(b[this.result.from]),b=this.decorate(b[this.result.to])):(this.options.decorate_both?(a=this.decorate(this._prettify(this.result.from),this.result.from),a+=this.options.values_separator,a+=this.decorate(this._prettify(this.result.to),this.result.to)):a=this.decorate(this._prettify(this.result.from)+\r\nthis.options.values_separator+this._prettify(this.result.to),this.result.to),d=this.decorate(this._prettify(this.result.from),this.result.from),b=this.decorate(this._prettify(this.result.to),this.result.to));this.$cache.single.html(a);this.$cache.from.html(d);this.$cache.to.html(b);this.calcLabels();b=Math.min(this.labels.p_single_left,this.labels.p_from_left);a=this.labels.p_single_left+this.labels.p_single_fake;d=this.labels.p_to_left+this.labels.p_to_fake;var c=Math.max(a,d);this.labels.p_from_left+\r\nthis.labels.p_from_fake>=this.labels.p_to_left?(this.$cache.from[0].style.visibility=\"hidden\",this.$cache.to[0].style.visibility=\"hidden\",this.$cache.single[0].style.visibility=\"visible\",this.result.from===this.result.to?(\"from\"===this.target?this.$cache.from[0].style.visibility=\"visible\":\"to\"===this.target?this.$cache.to[0].style.visibility=\"visible\":this.target||(this.$cache.from[0].style.visibility=\"visible\"),this.$cache.single[0].style.visibility=\"hidden\",c=d):(this.$cache.from[0].style.visibility=\r\n\"hidden\",this.$cache.to[0].style.visibility=\"hidden\",this.$cache.single[0].style.visibility=\"visible\",c=Math.max(a,d))):(this.$cache.from[0].style.visibility=\"visible\",this.$cache.to[0].style.visibility=\"visible\",this.$cache.single[0].style.visibility=\"hidden\");this.$cache.min[0].style.visibility=b<this.labels.p_min+1?\"hidden\":\"visible\";this.$cache.max[0].style.visibility=c>100-this.labels.p_max-1?\"hidden\":\"visible\"}}},drawShadow:function(){var a=this.options,b=this.$cache,d=\"number\"===typeof a.from_min&&\r\n!isNaN(a.from_min),c=\"number\"===typeof a.from_max&&!isNaN(a.from_max),e=\"number\"===typeof a.to_min&&!isNaN(a.to_min),f=\"number\"===typeof a.to_max&&!isNaN(a.to_max);\"single\"===a.type?a.from_shadow&&(d||c)?(d=this.convertToPercent(d?a.from_min:a.min),c=this.convertToPercent(c?a.from_max:a.max)-d,d=this.toFixed(d-this.coords.p_handle/100*d),c=this.toFixed(c-this.coords.p_handle/100*c),d+=this.coords.p_handle/2,b.shad_single[0].style.display=\"block\",b.shad_single[0].style.left=d+\"%\",b.shad_single[0].style.width=\r\nc+\"%\"):b.shad_single[0].style.display=\"none\":(a.from_shadow&&(d||c)?(d=this.convertToPercent(d?a.from_min:a.min),c=this.convertToPercent(c?a.from_max:a.max)-d,d=this.toFixed(d-this.coords.p_handle/100*d),c=this.toFixed(c-this.coords.p_handle/100*c),d+=this.coords.p_handle/2,b.shad_from[0].style.display=\"block\",b.shad_from[0].style.left=d+\"%\",b.shad_from[0].style.width=c+\"%\"):b.shad_from[0].style.display=\"none\",a.to_shadow&&(e||f)?(e=this.convertToPercent(e?a.to_min:a.min),a=this.convertToPercent(f?\r\na.to_max:a.max)-e,e=this.toFixed(e-this.coords.p_handle/100*e),a=this.toFixed(a-this.coords.p_handle/100*a),e+=this.coords.p_handle/2,b.shad_to[0].style.display=\"block\",b.shad_to[0].style.left=e+\"%\",b.shad_to[0].style.width=a+\"%\"):b.shad_to[0].style.display=\"none\")},callOnStart:function(){if(this.options.onStart&&\"function\"===typeof this.options.onStart)this.options.onStart(this.result)},callOnChange:function(){if(this.options.onChange&&\"function\"===typeof this.options.onChange)this.options.onChange(this.result)},\r\ncallOnFinish:function(){if(this.options.onFinish&&\"function\"===typeof this.options.onFinish)this.options.onFinish(this.result)},callOnUpdate:function(){if(this.options.onUpdate&&\"function\"===typeof this.options.onUpdate)this.options.onUpdate(this.result)},toggleInput:function(){this.$cache.input.toggleClass(\"irs-hidden-input\")},convertToPercent:function(a,b){var d=this.options.max-this.options.min;return d?this.toFixed((b?a:a-this.options.min)/(d/100)):(this.no_diapason=!0,0)},convertToValue:function(a){var b=\r\nthis.options.min,d=this.options.max,c=b.toString().split(\".\")[1],e=d.toString().split(\".\")[1],f,l,g=0,k=0;if(0===a)return this.options.min;if(100===a)return this.options.max;c&&(g=f=c.length);e&&(g=l=e.length);f&&l&&(g=f>=l?f:l);0>b&&(k=Math.abs(b),b=+(b+k).toFixed(g),d=+(d+k).toFixed(g));a=(d-b)/100*a+b;(b=this.options.step.toString().split(\".\")[1])?a=+a.toFixed(b.length):(a/=this.options.step,a*=this.options.step,a=+a.toFixed(0));k&&(a-=k);k=b?+a.toFixed(b.length):this.toFixed(a);k<this.options.min?\r\nk=this.options.min:k>this.options.max&&(k=this.options.max);return k},calcWithStep:function(a){var b=Math.round(a/this.coords.p_step)*this.coords.p_step;100<b&&(b=100);100===a&&(b=100);return this.toFixed(b)},checkMinInterval:function(a,b,d){var c=this.options;if(!c.min_interval)return a;a=this.convertToValue(a);b=this.convertToValue(b);\"from\"===d?b-a<c.min_interval&&(a=b-c.min_interval):a-b<c.min_interval&&(a=b+c.min_interval);return this.convertToPercent(a)},checkMaxInterval:function(a,b,d){var c=\r\nthis.options;if(!c.max_interval)return a;a=this.convertToValue(a);b=this.convertToValue(b);\"from\"===d?b-a>c.max_interval&&(a=b-c.max_interval):a-b>c.max_interval&&(a=b+c.max_interval);return this.convertToPercent(a)},checkDiapason:function(a,b,d){a=this.convertToValue(a);var c=this.options;\"number\"!==typeof b&&(b=c.min);\"number\"!==typeof d&&(d=c.max);a<b&&(a=b);a>d&&(a=d);return this.convertToPercent(a)},toFixed:function(a){a=a.toFixed(9);return+a},_prettify:function(a){return this.options.prettify_enabled?\r\nthis.options.prettify&&\"function\"===typeof this.options.prettify?this.options.prettify(a):this.prettify(a):a},prettify:function(a){return a.toString().replace(/(\\d{1,3}(?=(?:\\d\\d\\d)+(?!\\d)))/g,\"$1\"+this.options.prettify_separator)},checkEdges:function(a,b){if(!this.options.force_edges)return this.toFixed(a);0>a?a=0:a>100-b&&(a=100-b);return this.toFixed(a)},validate:function(){var a=this.options,b=this.result,d=a.values,c=d.length,e,f;\"string\"===typeof a.min&&(a.min=+a.min);\"string\"===typeof a.max&&\r\n(a.max=+a.max);\"string\"===typeof a.from&&(a.from=+a.from);\"string\"===typeof a.to&&(a.to=+a.to);\"string\"===typeof a.step&&(a.step=+a.step);\"string\"===typeof a.from_min&&(a.from_min=+a.from_min);\"string\"===typeof a.from_max&&(a.from_max=+a.from_max);\"string\"===typeof a.to_min&&(a.to_min=+a.to_min);\"string\"===typeof a.to_max&&(a.to_max=+a.to_max);\"string\"===typeof a.keyboard_step&&(a.keyboard_step=+a.keyboard_step);\"string\"===typeof a.grid_num&&(a.grid_num=+a.grid_num);a.max<a.min&&(a.max=a.min);if(c)for(a.p_values=\r\n[],a.min=0,a.max=c-1,a.step=1,a.grid_num=a.max,a.grid_snap=!0,f=0;f<c;f++)e=+d[f],isNaN(e)?e=d[f]:(d[f]=e,e=this._prettify(e)),a.p_values.push(e);if(\"number\"!==typeof a.from||isNaN(a.from))a.from=a.min;if(\"number\"!==typeof a.to||isNaN(a.from))a.to=a.max;if(\"single\"===a.type)a.from<a.min&&(a.from=a.min),a.from>a.max&&(a.from=a.max);else{if(a.from<a.min||a.from>a.max)a.from=a.min;if(a.to>a.max||a.to<a.min)a.to=a.max;a.from>a.to&&(a.from=a.to)}if(\"number\"!==typeof a.step||isNaN(a.step)||!a.step||0>a.step)a.step=\r\n1;if(\"number\"!==typeof a.keyboard_step||isNaN(a.keyboard_step)||!a.keyboard_step||0>a.keyboard_step)a.keyboard_step=5;\"number\"===typeof a.from_min&&a.from<a.from_min&&(a.from=a.from_min);\"number\"===typeof a.from_max&&a.from>a.from_max&&(a.from=a.from_max);\"number\"===typeof a.to_min&&a.to<a.to_min&&(a.to=a.to_min);\"number\"===typeof a.to_max&&a.from>a.to_max&&(a.to=a.to_max);if(b){b.min!==a.min&&(b.min=a.min);b.max!==a.max&&(b.max=a.max);if(b.from<b.min||b.from>b.max)b.from=a.from;if(b.to<b.min||b.to>\r\nb.max)b.to=a.to}if(\"number\"!==typeof a.min_interval||isNaN(a.min_interval)||!a.min_interval||0>a.min_interval)a.min_interval=0;if(\"number\"!==typeof a.max_interval||isNaN(a.max_interval)||!a.max_interval||0>a.max_interval)a.max_interval=0;a.min_interval&&a.min_interval>a.max-a.min&&(a.min_interval=a.max-a.min);a.max_interval&&a.max_interval>a.max-a.min&&(a.max_interval=a.max-a.min)},decorate:function(a,b){var d=\"\",c=this.options;c.prefix&&(d+=c.prefix);d+=a;c.max_postfix&&(c.values.length&&a===c.p_values[c.max]?\r\n(d+=c.max_postfix,c.postfix&&(d+=\" \")):b===c.max&&(d+=c.max_postfix,c.postfix&&(d+=\" \")));c.postfix&&(d+=c.postfix);return d},updateFrom:function(){this.result.from=this.options.from;this.result.from_percent=this.convertToPercent(this.result.from);this.options.values&&(this.result.from_value=this.options.values[this.result.from])},updateTo:function(){this.result.to=this.options.to;this.result.to_percent=this.convertToPercent(this.result.to);this.options.values&&(this.result.to_value=this.options.values[this.result.to])},\r\nupdateResult:function(){this.result.min=this.options.min;this.result.max=this.options.max;this.updateFrom();this.updateTo()},appendGrid:function(){if(this.options.grid){var a=this.options,b,d;b=a.max-a.min;var c=a.grid_num,e=0,f=0,g=4,h,k,m=0,n=\"\";this.calcGridMargin();a.grid_snap?(c=b/a.step,e=this.toFixed(a.step/(b/100))):e=this.toFixed(100/c);4<c&&(g=3);7<c&&(g=2);14<c&&(g=1);28<c&&(g=0);for(b=0;b<c+1;b++){h=g;f=this.toFixed(e*b);100<f&&(f=100,h-=2,0>h&&(h=0));this.coords.big[b]=f;k=(f-e*(b-1))/\r\n(h+1);for(d=1;d<=h&&0!==f;d++)m=this.toFixed(f-k*d),n+='<span class=\"irs-grid-pol small\" style=\"left: '+m+'%\"></span>';n+='<span class=\"irs-grid-pol\" style=\"left: '+f+'%\"></span>';m=this.convertToValue(f);m=a.values.length?a.p_values[m]:this._prettify(m);n+='<span class=\"irs-grid-text js-grid-text-'+b+'\" style=\"left: '+f+'%\">'+m+\"</span>\"}this.coords.big_num=Math.ceil(c+1);this.$cache.cont.addClass(\"irs-with-grid\");this.$cache.grid.html(n);this.cacheGridLabels()}},cacheGridLabels:function(){var a,\r\nb,d=this.coords.big_num;for(b=0;b<d;b++)a=this.$cache.grid.find(\".js-grid-text-\"+b),this.$cache.grid_labels.push(a);this.calcGridLabels()},calcGridLabels:function(){var a,b;b=[];var d=[],c=this.coords.big_num;for(a=0;a<c;a++)this.coords.big_w[a]=this.$cache.grid_labels[a].outerWidth(!1),this.coords.big_p[a]=this.toFixed(this.coords.big_w[a]/this.coords.w_rs*100),this.coords.big_x[a]=this.toFixed(this.coords.big_p[a]/2),b[a]=this.toFixed(this.coords.big[a]-this.coords.big_x[a]),d[a]=this.toFixed(b[a]+\r\nthis.coords.big_p[a]);this.options.force_edges&&(b[0]<-this.coords.grid_gap&&(b[0]=-this.coords.grid_gap,d[0]=this.toFixed(b[0]+this.coords.big_p[0]),this.coords.big_x[0]=this.coords.grid_gap),d[c-1]>100+this.coords.grid_gap&&(d[c-1]=100+this.coords.grid_gap,b[c-1]=this.toFixed(d[c-1]-this.coords.big_p[c-1]),this.coords.big_x[c-1]=this.toFixed(this.coords.big_p[c-1]-this.coords.grid_gap)));this.calcGridCollision(2,b,d);this.calcGridCollision(4,b,d);for(a=0;a<c;a++)b=this.$cache.grid_labels[a][0],\r\nb.style.marginLeft=-this.coords.big_x[a]+\"%\"},calcGridCollision:function(a,b,d){var c,e,f,g=this.coords.big_num;for(c=0;c<g;c+=a){e=c+a/2;if(e>=g)break;f=this.$cache.grid_labels[e][0];f.style.visibility=d[c]<=b[e]?\"visible\":\"hidden\"}},calcGridMargin:function(){this.options.grid_margin&&(this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.coords.w_rs&&(this.coords.w_handle=\"single\"===this.options.type?this.$cache.s_single.outerWidth(!1):this.$cache.s_from.outerWidth(!1),this.coords.p_handle=this.toFixed(this.coords.w_handle/\r\nthis.coords.w_rs*100),this.coords.grid_gap=this.toFixed(this.coords.p_handle/2-.1),this.$cache.grid[0].style.width=this.toFixed(100-this.coords.p_handle)+\"%\",this.$cache.grid[0].style.left=this.coords.grid_gap+\"%\"))},update:function(a){this.input&&(this.is_update=!0,this.options.from=this.result.from,this.options.to=this.result.to,this.options=g.extend(this.options,a),this.validate(),this.updateResult(a),this.toggleInput(),this.remove(),this.init(!0))},reset:function(){this.input&&(this.updateResult(),\r\nthis.update())},destroy:function(){this.input&&(this.toggleInput(),this.$cache.input.prop(\"readonly\",!1),g.data(this.input,\"ionRangeSlider\",null),this.remove(),this.options=this.input=null)}};g.fn.ionRangeSlider=function(a){return this.each(function(){g.data(this,\"ionRangeSlider\")||g.data(this,\"ionRangeSlider\",new r(this,a,u++))})};(function(){for(var a=0,b=[\"ms\",\"moz\",\"webkit\",\"o\"],d=0;d<b.length&&!h.requestAnimationFrame;++d)h.requestAnimationFrame=h[b[d]+\"RequestAnimationFrame\"],h.cancelAnimationFrame=\r\nh[b[d]+\"CancelAnimationFrame\"]||h[b[d]+\"CancelRequestAnimationFrame\"];h.requestAnimationFrame||(h.requestAnimationFrame=function(b,d){var f=(new Date).getTime(),g=Math.max(0,16-(f-a)),p=h.setTimeout(function(){b(f+g)},g);a=f+g;return p});h.cancelAnimationFrame||(h.cancelAnimationFrame=function(a){clearTimeout(a)})})()});\r\n","MGS_Ajaxlayernavigation/js/range-slider-widget.min.js":"define(['jquery','Magento_Catalog/js/price-utils','mage/template','jquery/ui','Magento_Ui/js/modal/modal'],function($,priceUtil,mageTemplate){\"use strict\";return function(widget){$.widget('smileEs.rangeSlider',widget,{_onSliderChange:function(ev,ui){this.from=ui.values[0];this.to=ui.values[1];this._refreshDisplay();this._applyRange();}})}\nreturn $.smileEs.rangeSlider;});","MGS_Ajaxlayernavigation/js/ajax-navigation.min.js":"define(['jquery','mage/apply/main','MGS_Ajaxlayernavigation/js/ion.rangeSlider.min',\"mLazysizes\"],function($,mage,ionRangeSlider){'use strict';$.widget('mage.ajaxnavigation',{options:{},_create:function(){this.url=$(location).attr('href');this.useAjax=this.options.useAjax;this.usePrice_slide=this.options.use_range_price;this.minPrice=$(\"#price-range-slider\").data(\"from\");this.maxPrice=$(\"#price-range-slider\").data(\"to\");this.fromPrice=$(\"#price-range-slider\").data(\"from\");this.toPrice=$(\"#price-range-slider\").data(\"to\");this.pricePrefix=this.options.pricePrefix;this.pricePostfix=this.options.pricePostfix;this.initNavigation();},initNavigation:function(){if(this.usePrice_slide){this.addPriceSlider();}\nvar self=this;setTimeout(function(){self.addToolbarObservers();},300);this.addFilterObservers();},addPriceSlider:function(){var self=this,priceActive=location.search.split('price=')[1];if(priceActive){$(\"#price-range-slider\").data('from',this.fromPrice);$(\"#price-range-slider\").data('to',this.toPrice);}\n$(\"#price-range-slider\").ionRangeSlider({type:\"double\",min:self.minPrice,max:self.maxPrice,from:self.fromPrice,to:self.toPrice,prettify_enabled:true,prefix:self.pricePrefix,postfix:self.pricePostfix,grid:true,onFinish:function(obj){self.applyToolbarElement('price',obj.from+'-'+obj.to);self.fromPrice=obj.from;self.toPrice=obj.to;}});},addFilterObservers:function(){var selectedIds,checkbox,filterItem,self=this;$(\"#layered-filter-block .filter-title strong\").off();$(\"#layered-filter-block .filter-title strong\").on(\"click\",function(){if(self.isMobile()){if($('body').hasClass('filter-active')){$('body').removeClass('filter-active');}else{$('body').addClass('filter-active');}\nif($('.block.filter').hasClass('active')){$('.block.filter').removeClass('active');}else{$('.block.filter').addClass('active');}}});$(\".mgs-layered-checkbox\").on('change',function(){self.applyFilter($(this).parent().next());return false;});$(\".mgs-ajax-layer-item\").off();$(\".mgs-ajax-layer-item\").on(\"click\",function(e){e.preventDefault();e.stopPropagation();var checkboxWrapper=$(this).prev(),checkbox=checkboxWrapper.find('input');self.toggleCheckbox(checkbox);self.applyFilter($(this));return false;});$(\".filter-active-item-link\").off();$(\".state-item-remove\").on(\"click\",function(e){e.preventDefault();e.stopPropagation();self.applyFilter($(this).next());return false;});$(\".swatch-attribute-options a\").off();$(\".swatch-attribute-options a\").on(\"click\",function(e){e.preventDefault();e.stopPropagation();self.applyFilter($(this));return false;});$(\".filter-active-item-clear-all\").off();$(\".filter-active-item-clear-all\").on(\"click\",function(e){e.preventDefault();e.stopPropagation();self.applyFilter($(this));return false;});$(\".filter-content dt\").off();$(\".filter-content dt\").on(\"click\",function(e){e.preventDefault();e.stopPropagation();self.toggleFilter($(this));return false;});},toggleCheckbox:function(el){if(el.prop('checked')){el.prop(\"checked\",false);}else{el.addClass('loading');el.prop(\"checked\",true);}},addToolbarObservers:function(){var self=this;$(\"#mode-list\").off();$(\"#mode-list\").on(\"click\",function(e){e.preventDefault();e.stopPropagation();self.applyToolbarElement('product_list_mode','list');return false;});$(\"#mode-grid\").off();$(\"#mode-grid\").on(\"click\",function(e){e.preventDefault();e.stopPropagation();self.applyToolbarElement('product_list_mode','grid');return false;});$(\"#sorter\").off();$(\"#sorter\").on(\"change\",function(e){e.preventDefault();e.stopPropagation();self.applyToolbarElement('product_list_order',$(this).val());return false;});$(\".sorter-action\").off();$(\".sorter-action\").on(\"click\",function(e){e.preventDefault();e.stopPropagation();self.applyToolbarElement('product_list_dir',$(this).attr(\"data-value\"));return false;});$(\".limiter-options\").off();$(\".limiter-options\").on(\"change\",function(e){e.preventDefault();e.stopPropagation();self.applyToolbarElement('product_list_limit',$(this).val());return false;});$(\".pages-items a\").off();$(\".pages-items a\").on(\"click\",function(e){e.preventDefault();e.stopPropagation();self.applyFilter($(this));$('html, body').animate({scrollTop:$(\"#maincontent\").offset().top},500);return false;});},applyToolbarElement:function(param,value){var self=this,urlParams=self.urlParams(self.url),url=self.url.split(\"?\")[0];urlParams[param]=value;self.ajax_init(url+'?'+$.param(urlParams));},applyFilter:function(el){this.ajax_init($(el).attr('href'));},ajax_init:function(url){var self=this;if(!this.useAjax){window.location=decodeURIComponent(url);return false;}\nwindow.history.pushState(\"\",\"\",decodeURIComponent(url));$.ajax({method:\"GET\",url:decodeURIComponent(url),dataType:\"json\",data:{is_ajax:1},showLoader:true}).done(function(data){if(data.list){if($('body').hasClass('page-layout-1column')){$(\".product-container.category-product-container\").replaceWith(data.list);$(\"#filter-container\").html(data.state);}else{$(\".main .toolbar-products\").remove();$(\".main .products\").remove();$(\".main .filter-active\").remove();$(\".product-container.category-product-container\").replaceWith(data.list);$('.search.results').replaceWith(data.list);$(\"#filter-container\").html(data.state);}}\nif(data.filters){$(\".sidebar-main .filter\").remove();$(\".page-layout-1column .main .filter.mgs-filter\").remove();$(\".sidebar-main\").prepend(data.filters);$(\".page-layout-1column .category-product-actions\").prepend(data.filters);}\nself.url=url;self.initNavigation();$(mage.apply);if(self.isMobile()){if($('body').hasClass('filter-active')){$('.block.filter').addClass('active');}else{}}}).fail(function(jqXHR,textStatus,errorThrown){console.log(errorThrown);});},urlParams:function(url){var result={};var searchIndex=url.indexOf(\"?\");if(searchIndex==-1)return result;var sPageURL=url.substring(searchIndex+1);var sURLVariables=sPageURL.split('&');for(var i=0;i<sURLVariables.length;i++){var sParameterName=sURLVariables[i].split('=');result[sParameterName[0]]=sParameterName[1];}\nreturn result;},toggleFilter:function(el){el.toggleClass('inactive');el.toggleClass('active');el.next().slideToggle();},isMobile:function(){if(navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/BlackBerry/i)||navigator.userAgent.match(/Windows Phone/i)){return true;}else{return false;}}});return $.mage.ajaxnavigation;});","Amasty_Base/js/http_build_query.min.js":"define([],function(){'use strict';function encodeComponentRaw(str){str=(str+'');return encodeURIComponent(str).replace(/!/g,'%21').replace(/'/g,'%27').replace(/\\(/g,'%28').replace(/\\)/g,'%29').replace(/\\*/g,'%2A');}\nfunction encodeComponent(str){return encodeComponentRaw(str).replace(/%20/g,'+');}\nfunction buildParam(key,val,argSeparator,encodeFunc){var result=[];if(val===true){val='1';}else if(val===false){val='0';}\nif(val!==null){if(typeof val==='object'){for(var index in val){if(val[index]!==null){result.push(buildParam(key+'['+index+']',val[index],argSeparator,encodeFunc));}}\nreturn result.join(argSeparator);}else if(typeof val!=='function'){return encodeFunc(key)+'='+encodeFunc(val);}else{throw new Error('There was an error processing for http_build_query().');}}else{return'';}};function httpBuildQuery(formData,numericPrefix,argSeparator,encType){var result=[],encode=(encType=='PHP_QUERY_RFC3986')?encodeComponentRaw:encodeComponent;if(!argSeparator){argSeparator='&';}\nfor(var key in formData){if(numericPrefix&&!isNaN(key)){key=String(numericPrefix)+key;}\nvar query=buildParam(key,formData[key],argSeparator,encode);if(query!==''){result.push(query);}}\nreturn result.join(argSeparator);};return function(formData,numericPrefix,argSeparator,encType){return httpBuildQuery(formData,numericPrefix,argSeparator,encType);}});","Amasty_Base/vendor/slick/slick.min.js":"/* phpcs:ignoreFile */\n/*\n     _ _      _       _\n ___| (_) ___| | __  (_)___\n/ __| | |/ __| |/ /  | / __|\n\\__ \\ | | (__|   < _ | \\__ \\\n|___/_|_|\\___|_|\\_(_)/ |___/\n                   |__/\n Version: 1.9.0\n  Author: Ken Wheeler\n Website: http://kenwheeler.github.io\n    Docs: http://kenwheeler.github.io/slick\n    Repo: http://github.com/kenwheeler/slick\n  Issues: http://github.com/kenwheeler/slick/issues\n */\n(function(i){\"use strict\";\"function\"==typeof define&&define.amd?define([\"jquery\"],i):\"undefined\"!=typeof exports?module.exports=i(require(\"jquery\")):i(jQuery)})(function(i){\"use strict\";var e=window.Slick||{};e=function(){function e(e,o){var s,n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:i(e),appendDots:i(e),arrows:!0,asNavFor:null,prevArrow:'<button class=\"slick-prev\" aria-label=\"Previous\" type=\"button\">Previous</button>',nextArrow:'<button class=\"slick-next\" aria-label=\"Next\" type=\"button\">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:\"50px\",cssEase:\"ease\",customPaging:function(e,t){return i('<button type=\"button\" />').text(t+1)},dots:!1,dotsClass:\"slick-dots\",draggable:!0,easing:\"linear\",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:\"ondemand\",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:\"window\",responsive:null,rows:1,rtl:!1,slide:\"\",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},n.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},i.extend(n,n.initials),n.activeBreakpoint=null,n.animType=null,n.animProp=null,n.breakpoints=[],n.breakpointSettings=[],n.cssTransitions=!1,n.focussed=!1,n.interrupted=!1,n.hidden=\"hidden\",n.paused=!0,n.positionProp=null,n.respondTo=null,n.rowCount=1,n.shouldClick=!0,n.$slider=i(e),n.$slidesCache=null,n.transformType=null,n.transitionType=null,n.visibilityChange=\"visibilitychange\",n.windowWidth=0,n.windowTimer=null,s=i(e).data(\"slick\")||{},n.options=i.extend({},n.defaults,o,s),n.currentSlide=n.options.initialSlide,n.originalSettings=n.options,\"undefined\"!=typeof document.mozHidden?(n.hidden=\"mozHidden\",n.visibilityChange=\"mozvisibilitychange\"):\"undefined\"!=typeof document.webkitHidden&&(n.hidden=\"webkitHidden\",n.visibilityChange=\"webkitvisibilitychange\"),n.autoPlay=i.proxy(n.autoPlay,n),n.autoPlayClear=i.proxy(n.autoPlayClear,n),n.autoPlayIterator=i.proxy(n.autoPlayIterator,n),n.changeSlide=i.proxy(n.changeSlide,n),n.clickHandler=i.proxy(n.clickHandler,n),n.selectHandler=i.proxy(n.selectHandler,n),n.setPosition=i.proxy(n.setPosition,n),n.swipeHandler=i.proxy(n.swipeHandler,n),n.dragHandler=i.proxy(n.dragHandler,n),n.keyHandler=i.proxy(n.keyHandler,n),n.instanceUid=t++,n.htmlExpr=/^(?:\\s*(<[\\w\\W]+>)[^>]*)$/,n.registerBreakpoints(),n.init(!0)}var t=0;return e}(),e.prototype.activateADA=function(){var i=this;i.$slideTrack.find(\".slick-active\").attr({\"aria-hidden\":\"false\"}).find(\"a, input, button, select\").attr({tabindex:\"0\"})},e.prototype.addSlide=e.prototype.slickAdd=function(e,t,o){var s=this;if(\"boolean\"==typeof t)o=t,t=null;else if(t<0||t>=s.slideCount)return!1;s.unload(),\"number\"==typeof t?0===t&&0===s.$slides.length?i(e).appendTo(s.$slideTrack):o?i(e).insertBefore(s.$slides.eq(t)):i(e).insertAfter(s.$slides.eq(t)):o===!0?i(e).prependTo(s.$slideTrack):i(e).appendTo(s.$slideTrack),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slides.each(function(e,t){i(t).attr(\"data-slick-index\",e)}),s.$slidesCache=s.$slides,s.reinit()},e.prototype.animateHeight=function(){var i=this;if(1===i.options.slidesToShow&&i.options.adaptiveHeight===!0&&i.options.vertical===!1){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.animate({height:e},i.options.speed)}},e.prototype.animateSlide=function(e,t){var o={},s=this;s.animateHeight(),s.options.rtl===!0&&s.options.vertical===!1&&(e=-e),s.transformsEnabled===!1?s.options.vertical===!1?s.$slideTrack.animate({left:e},s.options.speed,s.options.easing,t):s.$slideTrack.animate({top:e},s.options.speed,s.options.easing,t):s.cssTransitions===!1?(s.options.rtl===!0&&(s.currentLeft=-s.currentLeft),i({animStart:s.currentLeft}).animate({animStart:e},{duration:s.options.speed,easing:s.options.easing,step:function(i){i=Math.ceil(i),s.options.vertical===!1?(o[s.animType]=\"translate(\"+i+\"px, 0px)\",s.$slideTrack.css(o)):(o[s.animType]=\"translate(0px,\"+i+\"px)\",s.$slideTrack.css(o))},complete:function(){t&&t.call()}})):(s.applyTransition(),e=Math.ceil(e),s.options.vertical===!1?o[s.animType]=\"translate3d(\"+e+\"px, 0px, 0px)\":o[s.animType]=\"translate3d(0px,\"+e+\"px, 0px)\",s.$slideTrack.css(o),t&&setTimeout(function(){s.disableTransition(),t.call()},s.options.speed))},e.prototype.getNavTarget=function(){var e=this,t=e.options.asNavFor;return t&&null!==t&&(t=i(t).not(e.$slider)),t},e.prototype.asNavFor=function(e){var t=this,o=t.getNavTarget();null!==o&&\"object\"==typeof o&&o.each(function(){var t=i(this).slick(\"getSlick\");t.unslicked||t.slideHandler(e,!0)})},e.prototype.applyTransition=function(i){var e=this,t={};e.options.fade===!1?t[e.transitionType]=e.transformType+\" \"+e.options.speed+\"ms \"+e.options.cssEase:t[e.transitionType]=\"opacity \"+e.options.speed+\"ms \"+e.options.cssEase,e.options.fade===!1?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.autoPlay=function(){var i=this;i.autoPlayClear(),i.slideCount>i.options.slidesToShow&&(i.autoPlayTimer=setInterval(i.autoPlayIterator,i.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){var i=this;i.autoPlayTimer&&clearInterval(i.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var i=this,e=i.currentSlide+i.options.slidesToScroll;i.paused||i.interrupted||i.focussed||(i.options.infinite===!1&&(1===i.direction&&i.currentSlide+1===i.slideCount-1?i.direction=0:0===i.direction&&(e=i.currentSlide-i.options.slidesToScroll,i.currentSlide-1===0&&(i.direction=1))),i.slideHandler(e))},e.prototype.buildArrows=function(){var e=this;e.options.arrows===!0&&(e.$prevArrow=i(e.options.prevArrow).addClass(\"slick-arrow\"),e.$nextArrow=i(e.options.nextArrow).addClass(\"slick-arrow\"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass(\"slick-hidden\").removeAttr(\"aria-hidden tabindex\"),e.$nextArrow.removeClass(\"slick-hidden\").removeAttr(\"aria-hidden tabindex\"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),e.options.infinite!==!0&&e.$prevArrow.addClass(\"slick-disabled\").attr(\"aria-disabled\",\"true\")):e.$prevArrow.add(e.$nextArrow).addClass(\"slick-hidden\").attr({\"aria-disabled\":\"true\",tabindex:\"-1\"}))},e.prototype.buildDots=function(){var e,t,o=this;if(o.options.dots===!0&&o.slideCount>o.options.slidesToShow){for(o.$slider.addClass(\"slick-dotted\"),t=i(\"<ul />\").addClass(o.options.dotsClass),e=0;e<=o.getDotCount();e+=1)t.append(i(\"<li />\").append(o.options.customPaging.call(this,o,e)));o.$dots=t.appendTo(o.options.appendDots),o.$dots.find(\"li\").first().addClass(\"slick-active\")}},e.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+\":not(.slick-cloned)\").addClass(\"slick-slide\"),e.slideCount=e.$slides.length,e.$slides.each(function(e,t){i(t).attr(\"data-slick-index\",e).data(\"originalStyling\",i(t).attr(\"style\")||\"\")}),e.$slider.addClass(\"slick-slider\"),e.$slideTrack=0===e.slideCount?i('<div class=\"slick-track\"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class=\"slick-track\"/>').parent(),e.$list=e.$slideTrack.wrap('<div class=\"slick-list\"/>').parent(),e.$slideTrack.css(\"opacity\",0),e.options.centerMode!==!0&&e.options.swipeToSlide!==!0||(e.options.slidesToScroll=1),i(\"img[data-lazy]\",e.$slider).not(\"[src]\").addClass(\"slick-loading\"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses(\"number\"==typeof e.currentSlide?e.currentSlide:0),e.options.draggable===!0&&e.$list.addClass(\"draggable\")},e.prototype.buildRows=function(){var i,e,t,o,s,n,r,l=this;if(o=document.createDocumentFragment(),n=l.$slider.children(),l.options.rows>0){for(r=l.options.slidesPerRow*l.options.rows,s=Math.ceil(n.length/r),i=0;i<s;i++){var d=document.createElement(\"div\");for(e=0;e<l.options.rows;e++){var a=document.createElement(\"div\");for(t=0;t<l.options.slidesPerRow;t++){var c=i*r+(e*l.options.slidesPerRow+t);n.get(c)&&a.appendChild(n.get(c))}d.appendChild(a)}o.appendChild(d)}l.$slider.empty().append(o),l.$slider.children().children().children().css({width:100/l.options.slidesPerRow+\"%\",display:\"inline-block\"})}},e.prototype.checkResponsive=function(e,t){var o,s,n,r=this,l=!1,d=r.$slider.width(),a=window.innerWidth||i(window).width();if(\"window\"===r.respondTo?n=a:\"slider\"===r.respondTo?n=d:\"min\"===r.respondTo&&(n=Math.min(a,d)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){s=null;for(o in r.breakpoints)r.breakpoints.hasOwnProperty(o)&&(r.originalSettings.mobileFirst===!1?n<r.breakpoints[o]&&(s=r.breakpoints[o]):n>r.breakpoints[o]&&(s=r.breakpoints[o]));null!==s?null!==r.activeBreakpoint?(s!==r.activeBreakpoint||t)&&(r.activeBreakpoint=s,\"unslick\"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),e===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):(r.activeBreakpoint=s,\"unslick\"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),e===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,e===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(e),l=s),e||l===!1||r.$slider.trigger(\"breakpoint\",[r,l])}},e.prototype.changeSlide=function(e,t){var o,s,n,r=this,l=i(e.currentTarget);switch(l.is(\"a\")&&e.preventDefault(),l.is(\"li\")||(l=l.closest(\"li\")),n=r.slideCount%r.options.slidesToScroll!==0,o=n?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,e.data.message){case\"previous\":s=0===o?r.options.slidesToScroll:r.options.slidesToShow-o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-s,!1,t);break;case\"next\":s=0===o?r.options.slidesToScroll:o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+s,!1,t);break;case\"index\":var d=0===e.data.index?0:e.data.index||l.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(d),!1,t),l.children().trigger(\"focus\");break;default:return}},e.prototype.checkNavigable=function(i){var e,t,o=this;if(e=o.getNavigableIndexes(),t=0,i>e[e.length-1])i=e[e.length-1];else for(var s in e){if(i<e[s]){i=t;break}t=e[s]}return i},e.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(i(\"li\",e.$dots).off(\"click.slick\",e.changeSlide).off(\"mouseenter.slick\",i.proxy(e.interrupt,e,!0)).off(\"mouseleave.slick\",i.proxy(e.interrupt,e,!1)),e.options.accessibility===!0&&e.$dots.off(\"keydown.slick\",e.keyHandler)),e.$slider.off(\"focus.slick blur.slick\"),e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off(\"click.slick\",e.changeSlide),e.$nextArrow&&e.$nextArrow.off(\"click.slick\",e.changeSlide),e.options.accessibility===!0&&(e.$prevArrow&&e.$prevArrow.off(\"keydown.slick\",e.keyHandler),e.$nextArrow&&e.$nextArrow.off(\"keydown.slick\",e.keyHandler))),e.$list.off(\"touchstart.slick mousedown.slick\",e.swipeHandler),e.$list.off(\"touchmove.slick mousemove.slick\",e.swipeHandler),e.$list.off(\"touchend.slick mouseup.slick\",e.swipeHandler),e.$list.off(\"touchcancel.slick mouseleave.slick\",e.swipeHandler),e.$list.off(\"click.slick\",e.clickHandler),i(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),e.options.accessibility===!0&&e.$list.off(\"keydown.slick\",e.keyHandler),e.options.focusOnSelect===!0&&i(e.$slideTrack).children().off(\"click.slick\",e.selectHandler),i(window).off(\"orientationchange.slick.slick-\"+e.instanceUid,e.orientationChange),i(window).off(\"resize.slick.slick-\"+e.instanceUid,e.resize),i(\"[draggable!=true]\",e.$slideTrack).off(\"dragstart\",e.preventDefault),i(window).off(\"load.slick.slick-\"+e.instanceUid,e.setPosition)},e.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off(\"mouseenter.slick\",i.proxy(e.interrupt,e,!0)),e.$list.off(\"mouseleave.slick\",i.proxy(e.interrupt,e,!1))},e.prototype.cleanUpRows=function(){var i,e=this;e.options.rows>0&&(i=e.$slides.children().children(),i.removeAttr(\"style\"),e.$slider.empty().append(i))},e.prototype.clickHandler=function(i){var e=this;e.shouldClick===!1&&(i.stopImmediatePropagation(),i.stopPropagation(),i.preventDefault())},e.prototype.destroy=function(e){var t=this;t.autoPlayClear(),t.touchObject={},t.cleanUpEvents(),i(\".slick-cloned\",t.$slider).detach(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.$prevArrow.length&&(t.$prevArrow.removeClass(\"slick-disabled slick-arrow slick-hidden\").removeAttr(\"aria-hidden aria-disabled tabindex\").css(\"display\",\"\"),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove()),t.$nextArrow&&t.$nextArrow.length&&(t.$nextArrow.removeClass(\"slick-disabled slick-arrow slick-hidden\").removeAttr(\"aria-hidden aria-disabled tabindex\").css(\"display\",\"\"),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove()),t.$slides&&(t.$slides.removeClass(\"slick-slide slick-active slick-center slick-visible slick-current\").removeAttr(\"aria-hidden\").removeAttr(\"data-slick-index\").each(function(){i(this).attr(\"style\",i(this).data(\"originalStyling\"))}),t.$slideTrack.children(this.options.slide).detach(),t.$slideTrack.detach(),t.$list.detach(),t.$slider.append(t.$slides)),t.cleanUpRows(),t.$slider.removeClass(\"slick-slider\"),t.$slider.removeClass(\"slick-initialized\"),t.$slider.removeClass(\"slick-dotted\"),t.unslicked=!0,e||t.$slider.trigger(\"destroy\",[t])},e.prototype.disableTransition=function(i){var e=this,t={};t[e.transitionType]=\"\",e.options.fade===!1?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.fadeSlide=function(i,e){var t=this;t.cssTransitions===!1?(t.$slides.eq(i).css({zIndex:t.options.zIndex}),t.$slides.eq(i).animate({opacity:1},t.options.speed,t.options.easing,e)):(t.applyTransition(i),t.$slides.eq(i).css({opacity:1,zIndex:t.options.zIndex}),e&&setTimeout(function(){t.disableTransition(i),e.call()},t.options.speed))},e.prototype.fadeSlideOut=function(i){var e=this;e.cssTransitions===!1?e.$slides.eq(i).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(i),e.$slides.eq(i).css({opacity:0,zIndex:e.options.zIndex-2}))},e.prototype.filterSlides=e.prototype.slickFilter=function(i){var e=this;null!==i&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(i).appendTo(e.$slideTrack),e.reinit())},e.prototype.focusHandler=function(){var e=this;e.$slider.off(\"focus.slick blur.slick\").on(\"focus.slick\",\"*\",function(t){var o=i(this);setTimeout(function(){e.options.pauseOnFocus&&o.is(\":focus\")&&(e.focussed=!0,e.autoPlay())},0)}).on(\"blur.slick\",\"*\",function(t){i(this);e.options.pauseOnFocus&&(e.focussed=!1,e.autoPlay())})},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){var i=this;return i.currentSlide},e.prototype.getDotCount=function(){var i=this,e=0,t=0,o=0;if(i.options.infinite===!0)if(i.slideCount<=i.options.slidesToShow)++o;else for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else if(i.options.centerMode===!0)o=i.slideCount;else if(i.options.asNavFor)for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else o=1+Math.ceil((i.slideCount-i.options.slidesToShow)/i.options.slidesToScroll);return o-1},e.prototype.getLeft=function(i){var e,t,o,s,n=this,r=0;return n.slideOffset=0,t=n.$slides.first().outerHeight(!0),n.options.infinite===!0?(n.slideCount>n.options.slidesToShow&&(n.slideOffset=n.slideWidth*n.options.slidesToShow*-1,s=-1,n.options.vertical===!0&&n.options.centerMode===!0&&(2===n.options.slidesToShow?s=-1.5:1===n.options.slidesToShow&&(s=-2)),r=t*n.options.slidesToShow*s),n.slideCount%n.options.slidesToScroll!==0&&i+n.options.slidesToScroll>n.slideCount&&n.slideCount>n.options.slidesToShow&&(i>n.slideCount?(n.slideOffset=(n.options.slidesToShow-(i-n.slideCount))*n.slideWidth*-1,r=(n.options.slidesToShow-(i-n.slideCount))*t*-1):(n.slideOffset=n.slideCount%n.options.slidesToScroll*n.slideWidth*-1,r=n.slideCount%n.options.slidesToScroll*t*-1))):i+n.options.slidesToShow>n.slideCount&&(n.slideOffset=(i+n.options.slidesToShow-n.slideCount)*n.slideWidth,r=(i+n.options.slidesToShow-n.slideCount)*t),n.slideCount<=n.options.slidesToShow&&(n.slideOffset=0,r=0),n.options.centerMode===!0&&n.slideCount<=n.options.slidesToShow?n.slideOffset=n.slideWidth*Math.floor(n.options.slidesToShow)/2-n.slideWidth*n.slideCount/2:n.options.centerMode===!0&&n.options.infinite===!0?n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)-n.slideWidth:n.options.centerMode===!0&&(n.slideOffset=0,n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)),e=n.options.vertical===!1?i*n.slideWidth*-1+n.slideOffset:i*t*-1+r,n.options.variableWidth===!0&&(o=n.slideCount<=n.options.slidesToShow||n.options.infinite===!1?n.$slideTrack.children(\".slick-slide\").eq(i):n.$slideTrack.children(\".slick-slide\").eq(i+n.options.slidesToShow),e=n.options.rtl===!0?o[0]?(n.$slideTrack.width()-o[0].offsetLeft-o.width())*-1:0:o[0]?o[0].offsetLeft*-1:0,n.options.centerMode===!0&&(o=n.slideCount<=n.options.slidesToShow||n.options.infinite===!1?n.$slideTrack.children(\".slick-slide\").eq(i):n.$slideTrack.children(\".slick-slide\").eq(i+n.options.slidesToShow+1),e=n.options.rtl===!0?o[0]?(n.$slideTrack.width()-o[0].offsetLeft-o.width())*-1:0:o[0]?o[0].offsetLeft*-1:0,e+=(n.$list.width()-o.outerWidth())/2)),e},e.prototype.getOption=e.prototype.slickGetOption=function(i){var e=this;return e.options[i]},e.prototype.getNavigableIndexes=function(){var i,e=this,t=0,o=0,s=[];for(e.options.infinite===!1?i=e.slideCount:(t=e.options.slidesToScroll*-1,o=e.options.slidesToScroll*-1,i=2*e.slideCount);t<i;)s.push(t),t=o+e.options.slidesToScroll,o+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return s},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var e,t,o,s,n=this;return s=n.options.centerMode===!0?Math.floor(n.$list.width()/2):0,o=n.swipeLeft*-1+s,n.options.swipeToSlide===!0?(n.$slideTrack.find(\".slick-slide\").each(function(e,s){var r,l,d;if(r=i(s).outerWidth(),l=s.offsetLeft,n.options.centerMode!==!0&&(l+=r/2),d=l+r,o<d)return t=s,!1}),e=Math.abs(i(t).attr(\"data-slick-index\")-n.currentSlide)||1):n.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(i,e){var t=this;t.changeSlide({data:{message:\"index\",index:parseInt(i)}},e)},e.prototype.init=function(e){var t=this;i(t.$slider).hasClass(\"slick-initialized\")||(i(t.$slider).addClass(\"slick-initialized\"),t.buildRows(),t.buildOut(),t.setProps(),t.startLoad(),t.loadSlider(),t.initializeEvents(),t.updateArrows(),t.updateDots(),t.checkResponsive(!0),t.focusHandler()),e&&t.$slider.trigger(\"init\",[t]),t.options.accessibility===!0&&t.initADA(),t.options.autoplay&&(t.paused=!1,t.autoPlay())},e.prototype.initADA=function(){var e=this,t=Math.ceil(e.slideCount/e.options.slidesToShow),o=e.getNavigableIndexes().filter(function(i){return i>=0&&i<e.slideCount});e.$slides.add(e.$slideTrack.find(\".slick-cloned\")).attr({\"aria-hidden\":\"true\",tabindex:\"-1\"}).find(\"a, input, button, select\").attr({tabindex:\"-1\"}),null!==e.$dots&&(e.$slides.not(e.$slideTrack.find(\".slick-cloned\")).each(function(t){var s=o.indexOf(t);if(i(this).attr({role:\"tabpanel\",id:\"slick-slide\"+e.instanceUid+t,tabindex:-1}),s!==-1){var n=\"slick-slide-control\"+e.instanceUid+s;i(\"#\"+n).length&&i(this).attr({\"aria-describedby\":n})}}),e.$dots.attr(\"role\",\"tablist\").find(\"li\").each(function(s){var n=o[s];i(this).attr({role:\"presentation\"}),i(this).find(\"button\").first().attr({role:\"tab\",id:\"slick-slide-control\"+e.instanceUid+s,\"aria-controls\":\"slick-slide\"+e.instanceUid+n,\"aria-label\":s+1+\" of \"+t,\"aria-selected\":null,tabindex:\"-1\"})}).eq(e.currentSlide).find(\"button\").attr({\"aria-selected\":\"true\",tabindex:\"0\"}).end());for(var s=e.currentSlide,n=s+e.options.slidesToShow;s<n;s++)e.options.focusOnChange?e.$slides.eq(s).attr({tabindex:\"0\"}):e.$slides.eq(s).removeAttr(\"tabindex\");e.activateADA()},e.prototype.initArrowEvents=function(){var i=this;i.options.arrows===!0&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.off(\"click.slick\").on(\"click.slick\",{message:\"previous\"},i.changeSlide),i.$nextArrow.off(\"click.slick\").on(\"click.slick\",{message:\"next\"},i.changeSlide),i.options.accessibility===!0&&(i.$prevArrow.on(\"keydown.slick\",i.keyHandler),i.$nextArrow.on(\"keydown.slick\",i.keyHandler)))},e.prototype.initDotEvents=function(){var e=this;e.options.dots===!0&&e.slideCount>e.options.slidesToShow&&(i(\"li\",e.$dots).on(\"click.slick\",{message:\"index\"},e.changeSlide),e.options.accessibility===!0&&e.$dots.on(\"keydown.slick\",e.keyHandler)),e.options.dots===!0&&e.options.pauseOnDotsHover===!0&&e.slideCount>e.options.slidesToShow&&i(\"li\",e.$dots).on(\"mouseenter.slick\",i.proxy(e.interrupt,e,!0)).on(\"mouseleave.slick\",i.proxy(e.interrupt,e,!1))},e.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on(\"mouseenter.slick\",i.proxy(e.interrupt,e,!0)),e.$list.on(\"mouseleave.slick\",i.proxy(e.interrupt,e,!1)))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on(\"touchstart.slick mousedown.slick\",{action:\"start\"},e.swipeHandler),e.$list.on(\"touchmove.slick mousemove.slick\",{action:\"move\"},e.swipeHandler),e.$list.on(\"touchend.slick mouseup.slick\",{action:\"end\"},e.swipeHandler),e.$list.on(\"touchcancel.slick mouseleave.slick\",{action:\"end\"},e.swipeHandler),e.$list.on(\"click.slick\",e.clickHandler),i(document).on(e.visibilityChange,i.proxy(e.visibility,e)),e.options.accessibility===!0&&e.$list.on(\"keydown.slick\",e.keyHandler),e.options.focusOnSelect===!0&&i(e.$slideTrack).children().on(\"click.slick\",e.selectHandler),i(window).on(\"orientationchange.slick.slick-\"+e.instanceUid,i.proxy(e.orientationChange,e)),i(window).on(\"resize.slick.slick-\"+e.instanceUid,i.proxy(e.resize,e)),i(\"[draggable!=true]\",e.$slideTrack).on(\"dragstart\",e.preventDefault),i(window).on(\"load.slick.slick-\"+e.instanceUid,e.setPosition),i(e.setPosition)},e.prototype.initUI=function(){var i=this;i.options.arrows===!0&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.show(),i.$nextArrow.show()),i.options.dots===!0&&i.slideCount>i.options.slidesToShow&&i.$dots.show()},e.prototype.keyHandler=function(i){var e=this;i.target.tagName.match(\"TEXTAREA|INPUT|SELECT\")||(37===i.keyCode&&e.options.accessibility===!0?e.changeSlide({data:{message:e.options.rtl===!0?\"next\":\"previous\"}}):39===i.keyCode&&e.options.accessibility===!0&&e.changeSlide({data:{message:e.options.rtl===!0?\"previous\":\"next\"}}))},e.prototype.lazyLoad=function(){function e(e){i(\"img[data-lazy]\",e).each(function(){var e=i(this),t=i(this).attr(\"data-lazy\"),o=i(this).attr(\"data-srcset\"),s=i(this).attr(\"data-sizes\")||r.$slider.attr(\"data-sizes\"),n=document.createElement(\"img\");n.onload=function(){e.animate({opacity:0},100,function(){o&&(e.attr(\"srcset\",o),s&&e.attr(\"sizes\",s)),e.attr(\"src\",t).animate({opacity:1},200,function(){e.removeAttr(\"data-lazy data-srcset data-sizes\").removeClass(\"slick-loading\")}),r.$slider.trigger(\"lazyLoaded\",[r,e,t])})},n.onerror=function(){e.removeAttr(\"data-lazy\").removeClass(\"slick-loading\").addClass(\"slick-lazyload-error\"),r.$slider.trigger(\"lazyLoadError\",[r,e,t])},n.src=t})}var t,o,s,n,r=this;if(r.options.centerMode===!0?r.options.infinite===!0?(s=r.currentSlide+(r.options.slidesToShow/2+1),n=s+r.options.slidesToShow+2):(s=Math.max(0,r.currentSlide-(r.options.slidesToShow/2+1)),n=2+(r.options.slidesToShow/2+1)+r.currentSlide):(s=r.options.infinite?r.options.slidesToShow+r.currentSlide:r.currentSlide,n=Math.ceil(s+r.options.slidesToShow),r.options.fade===!0&&(s>0&&s--,n<=r.slideCount&&n++)),t=r.$slider.find(\".slick-slide\").slice(s,n),\"anticipated\"===r.options.lazyLoad)for(var l=s-1,d=n,a=r.$slider.find(\".slick-slide\"),c=0;c<r.options.slidesToScroll;c++)l<0&&(l=r.slideCount-1),t=t.add(a.eq(l)),t=t.add(a.eq(d)),l--,d++;e(t),r.slideCount<=r.options.slidesToShow?(o=r.$slider.find(\".slick-slide\"),e(o)):r.currentSlide>=r.slideCount-r.options.slidesToShow?(o=r.$slider.find(\".slick-cloned\").slice(0,r.options.slidesToShow),e(o)):0===r.currentSlide&&(o=r.$slider.find(\".slick-cloned\").slice(r.options.slidesToShow*-1),e(o))},e.prototype.loadSlider=function(){var i=this;i.setPosition(),i.$slideTrack.css({opacity:1}),i.$slider.removeClass(\"slick-loading\"),i.initUI(),\"progressive\"===i.options.lazyLoad&&i.progressiveLazyLoad()},e.prototype.next=e.prototype.slickNext=function(){var i=this;i.changeSlide({data:{message:\"next\"}})},e.prototype.orientationChange=function(){var i=this;i.checkResponsive(),i.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){var i=this;i.autoPlayClear(),i.paused=!0},e.prototype.play=e.prototype.slickPlay=function(){var i=this;i.autoPlay(),i.options.autoplay=!0,i.paused=!1,i.focussed=!1,i.interrupted=!1},e.prototype.postSlide=function(e){var t=this;if(!t.unslicked&&(t.$slider.trigger(\"afterChange\",[t,e]),t.animating=!1,t.slideCount>t.options.slidesToShow&&t.setPosition(),t.swipeLeft=null,t.options.autoplay&&t.autoPlay(),t.options.accessibility===!0&&(t.initADA(),t.options.focusOnChange))){var o=i(t.$slides.get(t.currentSlide));o.attr(\"tabindex\",0).focus()}},e.prototype.prev=e.prototype.slickPrev=function(){var i=this;i.changeSlide({data:{message:\"previous\"}})},e.prototype.preventDefault=function(i){i.preventDefault()},e.prototype.progressiveLazyLoad=function(e){e=e||1;var t,o,s,n,r,l=this,d=i(\"img[data-lazy]\",l.$slider);d.length?(t=d.first(),o=t.attr(\"data-lazy\"),s=t.attr(\"data-srcset\"),n=t.attr(\"data-sizes\")||l.$slider.attr(\"data-sizes\"),r=document.createElement(\"img\"),r.onload=function(){s&&(t.attr(\"srcset\",s),n&&t.attr(\"sizes\",n)),t.attr(\"src\",o).removeAttr(\"data-lazy data-srcset data-sizes\").removeClass(\"slick-loading\"),l.options.adaptiveHeight===!0&&l.setPosition(),l.$slider.trigger(\"lazyLoaded\",[l,t,o]),l.progressiveLazyLoad()},r.onerror=function(){e<3?setTimeout(function(){l.progressiveLazyLoad(e+1)},500):(t.removeAttr(\"data-lazy\").removeClass(\"slick-loading\").addClass(\"slick-lazyload-error\"),l.$slider.trigger(\"lazyLoadError\",[l,t,o]),l.progressiveLazyLoad())},r.src=o):l.$slider.trigger(\"allImagesLoaded\",[l])},e.prototype.refresh=function(e){var t,o,s=this;o=s.slideCount-s.options.slidesToShow,!s.options.infinite&&s.currentSlide>o&&(s.currentSlide=o),s.slideCount<=s.options.slidesToShow&&(s.currentSlide=0),t=s.currentSlide,s.destroy(!0),i.extend(s,s.initials,{currentSlide:t}),s.init(),e||s.changeSlide({data:{message:\"index\",index:t}},!1)},e.prototype.registerBreakpoints=function(){var e,t,o,s=this,n=s.options.responsive||null;if(\"array\"===i.type(n)&&n.length){s.respondTo=s.options.respondTo||\"window\";for(e in n)if(o=s.breakpoints.length-1,n.hasOwnProperty(e)){for(t=n[e].breakpoint;o>=0;)s.breakpoints[o]&&s.breakpoints[o]===t&&s.breakpoints.splice(o,1),o--;s.breakpoints.push(t),s.breakpointSettings[t]=n[e].settings}s.breakpoints.sort(function(i,e){return s.options.mobileFirst?i-e:e-i})}},e.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass(\"slick-slide\"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),e.options.focusOnSelect===!0&&i(e.$slideTrack).children().on(\"click.slick\",e.selectHandler),e.setSlideClasses(\"number\"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger(\"reInit\",[e])},e.prototype.resize=function(){var e=this;i(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=i(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()},50))},e.prototype.removeSlide=e.prototype.slickRemove=function(i,e,t){var o=this;return\"boolean\"==typeof i?(e=i,i=e===!0?0:o.slideCount-1):i=e===!0?--i:i,!(o.slideCount<1||i<0||i>o.slideCount-1)&&(o.unload(),t===!0?o.$slideTrack.children().remove():o.$slideTrack.children(this.options.slide).eq(i).remove(),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slidesCache=o.$slides,void o.reinit())},e.prototype.setCSS=function(i){var e,t,o=this,s={};o.options.rtl===!0&&(i=-i),e=\"left\"==o.positionProp?Math.ceil(i)+\"px\":\"0px\",t=\"top\"==o.positionProp?Math.ceil(i)+\"px\":\"0px\",s[o.positionProp]=i,o.transformsEnabled===!1?o.$slideTrack.css(s):(s={},o.cssTransitions===!1?(s[o.animType]=\"translate(\"+e+\", \"+t+\")\",o.$slideTrack.css(s)):(s[o.animType]=\"translate3d(\"+e+\", \"+t+\", 0px)\",o.$slideTrack.css(s)))},e.prototype.setDimensions=function(){var i=this;i.options.vertical===!1?i.options.centerMode===!0&&i.$list.css({padding:\"0px \"+i.options.centerPadding}):(i.$list.height(i.$slides.first().outerHeight(!0)*i.options.slidesToShow),i.options.centerMode===!0&&i.$list.css({padding:i.options.centerPadding+\" 0px\"})),i.listWidth=i.$list.width(),i.listHeight=i.$list.height(),i.options.vertical===!1&&i.options.variableWidth===!1?(i.slideWidth=Math.ceil(i.listWidth/i.options.slidesToShow),i.$slideTrack.width(Math.ceil(i.slideWidth*i.$slideTrack.children(\".slick-slide\").length))):i.options.variableWidth===!0?i.$slideTrack.width(5e3*i.slideCount):(i.slideWidth=Math.ceil(i.listWidth),i.$slideTrack.height(Math.ceil(i.$slides.first().outerHeight(!0)*i.$slideTrack.children(\".slick-slide\").length)));var e=i.$slides.first().outerWidth(!0)-i.$slides.first().width();i.options.variableWidth===!1&&i.$slideTrack.children(\".slick-slide\").width(i.slideWidth-e)},e.prototype.setFade=function(){var e,t=this;t.$slides.each(function(o,s){e=t.slideWidth*o*-1,t.options.rtl===!0?i(s).css({position:\"relative\",right:e,top:0,zIndex:t.options.zIndex-2,opacity:0}):i(s).css({position:\"relative\",left:e,top:0,zIndex:t.options.zIndex-2,opacity:0})}),t.$slides.eq(t.currentSlide).css({zIndex:t.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){var i=this;if(1===i.options.slidesToShow&&i.options.adaptiveHeight===!0&&i.options.vertical===!1){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.css(\"height\",e)}},e.prototype.setOption=e.prototype.slickSetOption=function(){var e,t,o,s,n,r=this,l=!1;if(\"object\"===i.type(arguments[0])?(o=arguments[0],l=arguments[1],n=\"multiple\"):\"string\"===i.type(arguments[0])&&(o=arguments[0],s=arguments[1],l=arguments[2],\"responsive\"===arguments[0]&&\"array\"===i.type(arguments[1])?n=\"responsive\":\"undefined\"!=typeof arguments[1]&&(n=\"single\")),\"single\"===n)r.options[o]=s;else if(\"multiple\"===n)i.each(o,function(i,e){r.options[i]=e});else if(\"responsive\"===n)for(t in s)if(\"array\"!==i.type(r.options.responsive))r.options.responsive=[s[t]];else{for(e=r.options.responsive.length-1;e>=0;)r.options.responsive[e].breakpoint===s[t].breakpoint&&r.options.responsive.splice(e,1),e--;r.options.responsive.push(s[t])}l&&(r.unload(),r.reinit())},e.prototype.setPosition=function(){var i=this;i.setDimensions(),i.setHeight(),i.options.fade===!1?i.setCSS(i.getLeft(i.currentSlide)):i.setFade(),i.$slider.trigger(\"setPosition\",[i])},e.prototype.setProps=function(){var i=this,e=document.body.style;i.positionProp=i.options.vertical===!0?\"top\":\"left\",\n    \"top\"===i.positionProp?i.$slider.addClass(\"slick-vertical\"):i.$slider.removeClass(\"slick-vertical\"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||i.options.useCSS===!0&&(i.cssTransitions=!0),i.options.fade&&(\"number\"==typeof i.options.zIndex?i.options.zIndex<3&&(i.options.zIndex=3):i.options.zIndex=i.defaults.zIndex),void 0!==e.OTransform&&(i.animType=\"OTransform\",i.transformType=\"-o-transform\",i.transitionType=\"OTransition\",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.MozTransform&&(i.animType=\"MozTransform\",i.transformType=\"-moz-transform\",i.transitionType=\"MozTransition\",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(i.animType=!1)),void 0!==e.webkitTransform&&(i.animType=\"webkitTransform\",i.transformType=\"-webkit-transform\",i.transitionType=\"webkitTransition\",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.msTransform&&(i.animType=\"msTransform\",i.transformType=\"-ms-transform\",i.transitionType=\"msTransition\",void 0===e.msTransform&&(i.animType=!1)),void 0!==e.transform&&i.animType!==!1&&(i.animType=\"transform\",i.transformType=\"transform\",i.transitionType=\"transition\"),i.transformsEnabled=i.options.useTransform&&null!==i.animType&&i.animType!==!1},e.prototype.setSlideClasses=function(i){var e,t,o,s,n=this;if(t=n.$slider.find(\".slick-slide\").removeClass(\"slick-active slick-center slick-current\").attr(\"aria-hidden\",\"true\"),n.$slides.eq(i).addClass(\"slick-current\"),n.options.centerMode===!0){var r=n.options.slidesToShow%2===0?1:0;e=Math.floor(n.options.slidesToShow/2),n.options.infinite===!0&&(i>=e&&i<=n.slideCount-1-e?n.$slides.slice(i-e+r,i+e+1).addClass(\"slick-active\").attr(\"aria-hidden\",\"false\"):(o=n.options.slidesToShow+i,t.slice(o-e+1+r,o+e+2).addClass(\"slick-active\").attr(\"aria-hidden\",\"false\")),0===i?t.eq(t.length-1-n.options.slidesToShow).addClass(\"slick-center\"):i===n.slideCount-1&&t.eq(n.options.slidesToShow).addClass(\"slick-center\")),n.$slides.eq(i).addClass(\"slick-center\")}else i>=0&&i<=n.slideCount-n.options.slidesToShow?n.$slides.slice(i,i+n.options.slidesToShow).addClass(\"slick-active\").attr(\"aria-hidden\",\"false\"):t.length<=n.options.slidesToShow?t.addClass(\"slick-active\").attr(\"aria-hidden\",\"false\"):(s=n.slideCount%n.options.slidesToShow,o=n.options.infinite===!0?n.options.slidesToShow+i:i,n.options.slidesToShow==n.options.slidesToScroll&&n.slideCount-i<n.options.slidesToShow?t.slice(o-(n.options.slidesToShow-s),o+s).addClass(\"slick-active\").attr(\"aria-hidden\",\"false\"):t.slice(o,o+n.options.slidesToShow).addClass(\"slick-active\").attr(\"aria-hidden\",\"false\"));\"ondemand\"!==n.options.lazyLoad&&\"anticipated\"!==n.options.lazyLoad||n.lazyLoad()},e.prototype.setupInfinite=function(){var e,t,o,s=this;if(s.options.fade===!0&&(s.options.centerMode=!1),s.options.infinite===!0&&s.options.fade===!1&&(t=null,s.slideCount>s.options.slidesToShow)){for(o=s.options.centerMode===!0?s.options.slidesToShow+1:s.options.slidesToShow,e=s.slideCount;e>s.slideCount-o;e-=1)t=e-1,i(s.$slides[t]).clone(!0).attr(\"id\",\"\").attr(\"data-slick-index\",t-s.slideCount).prependTo(s.$slideTrack).addClass(\"slick-cloned\");for(e=0;e<o+s.slideCount;e+=1)t=e,i(s.$slides[t]).clone(!0).attr(\"id\",\"\").attr(\"data-slick-index\",t+s.slideCount).appendTo(s.$slideTrack).addClass(\"slick-cloned\");s.$slideTrack.find(\".slick-cloned\").find(\"[id]\").each(function(){i(this).attr(\"id\",\"\")})}},e.prototype.interrupt=function(i){var e=this;i||e.autoPlay(),e.interrupted=i},e.prototype.selectHandler=function(e){var t=this,o=i(e.target).is(\".slick-slide\")?i(e.target):i(e.target).parents(\".slick-slide\"),s=parseInt(o.attr(\"data-slick-index\"));return s||(s=0),t.slideCount<=t.options.slidesToShow?void t.slideHandler(s,!1,!0):void t.slideHandler(s)},e.prototype.slideHandler=function(i,e,t){var o,s,n,r,l,d=null,a=this;if(e=e||!1,!(a.animating===!0&&a.options.waitForAnimate===!0||a.options.fade===!0&&a.currentSlide===i))return e===!1&&a.asNavFor(i),o=i,d=a.getLeft(o),r=a.getLeft(a.currentSlide),a.currentLeft=null===a.swipeLeft?r:a.swipeLeft,a.options.infinite===!1&&a.options.centerMode===!1&&(i<0||i>a.getDotCount()*a.options.slidesToScroll)?void(a.options.fade===!1&&(o=a.currentSlide,t!==!0&&a.slideCount>a.options.slidesToShow?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o))):a.options.infinite===!1&&a.options.centerMode===!0&&(i<0||i>a.slideCount-a.options.slidesToScroll)?void(a.options.fade===!1&&(o=a.currentSlide,t!==!0&&a.slideCount>a.options.slidesToShow?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o))):(a.options.autoplay&&clearInterval(a.autoPlayTimer),s=o<0?a.slideCount%a.options.slidesToScroll!==0?a.slideCount-a.slideCount%a.options.slidesToScroll:a.slideCount+o:o>=a.slideCount?a.slideCount%a.options.slidesToScroll!==0?0:o-a.slideCount:o,a.animating=!0,a.$slider.trigger(\"beforeChange\",[a,a.currentSlide,s]),n=a.currentSlide,a.currentSlide=s,a.setSlideClasses(a.currentSlide),a.options.asNavFor&&(l=a.getNavTarget(),l=l.slick(\"getSlick\"),l.slideCount<=l.options.slidesToShow&&l.setSlideClasses(a.currentSlide)),a.updateDots(),a.updateArrows(),a.options.fade===!0?(t!==!0?(a.fadeSlideOut(n),a.fadeSlide(s,function(){a.postSlide(s)})):a.postSlide(s),void a.animateHeight()):void(t!==!0&&a.slideCount>a.options.slidesToShow?a.animateSlide(d,function(){a.postSlide(s)}):a.postSlide(s)))},e.prototype.startLoad=function(){var i=this;i.options.arrows===!0&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.hide(),i.$nextArrow.hide()),i.options.dots===!0&&i.slideCount>i.options.slidesToShow&&i.$dots.hide(),i.$slider.addClass(\"slick-loading\")},e.prototype.swipeDirection=function(){var i,e,t,o,s=this;return i=s.touchObject.startX-s.touchObject.curX,e=s.touchObject.startY-s.touchObject.curY,t=Math.atan2(e,i),o=Math.round(180*t/Math.PI),o<0&&(o=360-Math.abs(o)),o<=45&&o>=0?s.options.rtl===!1?\"left\":\"right\":o<=360&&o>=315?s.options.rtl===!1?\"left\":\"right\":o>=135&&o<=225?s.options.rtl===!1?\"right\":\"left\":s.options.verticalSwiping===!0?o>=35&&o<=135?\"down\":\"up\":\"vertical\"},e.prototype.swipeEnd=function(i){var e,t,o=this;if(o.dragging=!1,o.swiping=!1,o.scrolling)return o.scrolling=!1,!1;if(o.interrupted=!1,o.shouldClick=!(o.touchObject.swipeLength>10),void 0===o.touchObject.curX)return!1;if(o.touchObject.edgeHit===!0&&o.$slider.trigger(\"edge\",[o,o.swipeDirection()]),o.touchObject.swipeLength>=o.touchObject.minSwipe){switch(t=o.swipeDirection()){case\"left\":case\"down\":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide+o.getSlideCount()):o.currentSlide+o.getSlideCount(),o.currentDirection=0;break;case\"right\":case\"up\":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide-o.getSlideCount()):o.currentSlide-o.getSlideCount(),o.currentDirection=1}\"vertical\"!=t&&(o.slideHandler(e),o.touchObject={},o.$slider.trigger(\"swipe\",[o,t]))}else o.touchObject.startX!==o.touchObject.curX&&(o.slideHandler(o.currentSlide),o.touchObject={})},e.prototype.swipeHandler=function(i){var e=this;if(!(e.options.swipe===!1||\"ontouchend\"in document&&e.options.swipe===!1||e.options.draggable===!1&&i.type.indexOf(\"mouse\")!==-1))switch(e.touchObject.fingerCount=i.originalEvent&&void 0!==i.originalEvent.touches?i.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,e.options.verticalSwiping===!0&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),i.data.action){case\"start\":e.swipeStart(i);break;case\"move\":e.swipeMove(i);break;case\"end\":e.swipeEnd(i)}},e.prototype.swipeMove=function(i){var e,t,o,s,n,r,l=this;return n=void 0!==i.originalEvent?i.originalEvent.touches:null,!(!l.dragging||l.scrolling||n&&1!==n.length)&&(e=l.getLeft(l.currentSlide),l.touchObject.curX=void 0!==n?n[0].pageX:i.clientX,l.touchObject.curY=void 0!==n?n[0].pageY:i.clientY,l.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(l.touchObject.curX-l.touchObject.startX,2))),r=Math.round(Math.sqrt(Math.pow(l.touchObject.curY-l.touchObject.startY,2))),!l.options.verticalSwiping&&!l.swiping&&r>4?(l.scrolling=!0,!1):(l.options.verticalSwiping===!0&&(l.touchObject.swipeLength=r),t=l.swipeDirection(),void 0!==i.originalEvent&&l.touchObject.swipeLength>4&&(l.swiping=!0,i.preventDefault()),s=(l.options.rtl===!1?1:-1)*(l.touchObject.curX>l.touchObject.startX?1:-1),l.options.verticalSwiping===!0&&(s=l.touchObject.curY>l.touchObject.startY?1:-1),o=l.touchObject.swipeLength,l.touchObject.edgeHit=!1,l.options.infinite===!1&&(0===l.currentSlide&&\"right\"===t||l.currentSlide>=l.getDotCount()&&\"left\"===t)&&(o=l.touchObject.swipeLength*l.options.edgeFriction,l.touchObject.edgeHit=!0),l.options.vertical===!1?l.swipeLeft=e+o*s:l.swipeLeft=e+o*(l.$list.height()/l.listWidth)*s,l.options.verticalSwiping===!0&&(l.swipeLeft=e+o*s),l.options.fade!==!0&&l.options.touchMove!==!1&&(l.animating===!0?(l.swipeLeft=null,!1):void l.setCSS(l.swipeLeft))))},e.prototype.swipeStart=function(i){var e,t=this;return t.interrupted=!0,1!==t.touchObject.fingerCount||t.slideCount<=t.options.slidesToShow?(t.touchObject={},!1):(void 0!==i.originalEvent&&void 0!==i.originalEvent.touches&&(e=i.originalEvent.touches[0]),t.touchObject.startX=t.touchObject.curX=void 0!==e?e.pageX:i.clientX,t.touchObject.startY=t.touchObject.curY=void 0!==e?e.pageY:i.clientY,void(t.dragging=!0))},e.prototype.unfilterSlides=e.prototype.slickUnfilter=function(){var i=this;null!==i.$slidesCache&&(i.unload(),i.$slideTrack.children(this.options.slide).detach(),i.$slidesCache.appendTo(i.$slideTrack),i.reinit())},e.prototype.unload=function(){var e=this;i(\".slick-cloned\",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass(\"slick-slide slick-active slick-visible slick-current\").attr(\"aria-hidden\",\"true\").css(\"width\",\"\")},e.prototype.unslick=function(i){var e=this;e.$slider.trigger(\"unslick\",[e,i]),e.destroy()},e.prototype.updateArrows=function(){var i,e=this;i=Math.floor(e.options.slidesToShow/2),e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&!e.options.infinite&&(e.$prevArrow.removeClass(\"slick-disabled\").attr(\"aria-disabled\",\"false\"),e.$nextArrow.removeClass(\"slick-disabled\").attr(\"aria-disabled\",\"false\"),0===e.currentSlide?(e.$prevArrow.addClass(\"slick-disabled\").attr(\"aria-disabled\",\"true\"),e.$nextArrow.removeClass(\"slick-disabled\").attr(\"aria-disabled\",\"false\")):e.currentSlide>=e.slideCount-e.options.slidesToShow&&e.options.centerMode===!1?(e.$nextArrow.addClass(\"slick-disabled\").attr(\"aria-disabled\",\"true\"),e.$prevArrow.removeClass(\"slick-disabled\").attr(\"aria-disabled\",\"false\")):e.currentSlide>=e.slideCount-1&&e.options.centerMode===!0&&(e.$nextArrow.addClass(\"slick-disabled\").attr(\"aria-disabled\",\"true\"),e.$prevArrow.removeClass(\"slick-disabled\").attr(\"aria-disabled\",\"false\")))},e.prototype.updateDots=function(){var i=this;null!==i.$dots&&(i.$dots.find(\"li\").removeClass(\"slick-active\").end(),i.$dots.find(\"li\").eq(Math.floor(i.currentSlide/i.options.slidesToScroll)).addClass(\"slick-active\"))},e.prototype.visibility=function(){var i=this;i.options.autoplay&&(document[i.hidden]?i.interrupted=!0:i.interrupted=!1)},i.fn.slick=function(){var i,t,o=this,s=arguments[0],n=Array.prototype.slice.call(arguments,1),r=o.length;for(i=0;i<r;i++)if(\"object\"==typeof s||\"undefined\"==typeof s?o[i].slick=new e(o[i],s):t=o[i].slick[s].apply(o[i].slick,n),\"undefined\"!=typeof t)return t;return o}});\n","Magepow_Sizechart/js/popup.min.js":"require([\"jquery\",\"Magento_Ui/js/modal/modal\"],function($,modal){'use strict';var sizechart=$('.sizechart-popup');var options={type:'popup',responsive:true,title:$.mage.__('Size Chart Diagram'),buttons:[{text:$.mage.__('Close'),class:'',click:function(){this.closeModal();}}]};var popup=modal(options,sizechart);$(\".sizechart-display\").click(function(){sizechart.modal('openModal');});});","Webkul_RewardSystem/js/referral-points.min.js":"define(['jquery','Magento_Ui/js/modal/alert','mage/translate'],function($,alert,$t){'use strict';$.widget('mage.referralpoints',{options:{chartDivId:\"curve_chart\"},_create:function(){this._super();var self=this;google.charts.load('current',{'packages':['corechart']});google.charts.setOnLoadCallback(drawChart);function drawChart(){var data=google.visualization.arrayToDataTable(self.options.referralInfo);var options={title:'',curveType:'function',legend:{position:'none'},colors:['#8DC33A','#FF7A1C']};var chart=new google.visualization.LineChart(document.getElementById(self.options.chartDivId));chart.draw(data,options);}\n$('button.copylink').click(function(){$('#referral-link').select();document.execCommand('copy');});},});return $.mage.referralpoints;});","Webkul_RewardSystem/js/view/checkout/rewardmessage.min.js":"define(['jquery','uiComponent','Webkul_RewardSystem/js/model/reward'],function($,Component,rewardData){'use strict';var RewardMessage=rewardData.getRewardMessage();return Component.extend({defaults:{template:'Webkul_RewardSystem/checkout/rewardloginmessage'},checkStatus:function(){if(RewardMessage.status==0){return false;}else{return true;}},getValue:function(){return RewardMessage.total_reward_point;},getRedirectUrl:function(){return RewardMessage.url;},initConfig:function(){this._super();return this;}});});","Webkul_RewardSystem/js/view/checkout/cart/totals/rewardamount.min.js":"define(['Webkul_RewardSystem/js/view/checkout/summary/rewardamount','Magento_Checkout/js/model/cart/totals-processor/default','Magento_Checkout/js/model/totals'],function(Component,defaultTotal,totals){'use strict';return Component.extend({initialize:function(){this._super();defaultTotal.estimateTotals();},isDisplayed:function(){var price=0;if(this.totals()){if(totals.getSegment('reward_amount')!==null){price=totals.getSegment('reward_amount').value;}}\nprice=parseFloat(price);if(price){return true;}else{return false;}}});});","Webkul_RewardSystem/js/view/checkout/summary/rewardinfo.min.js":"define(['uiComponent','Magento_Customer/js/customer-data'],function(Component,customerData){'use strict';return Component.extend({initialize:function(){this._super();},getValue:function(){var rewardPoints=customerData.get('cart')().reward_earn_points;return rewardPoints;},});});","Webkul_RewardSystem/js/view/checkout/summary/rewardamount.min.js":"define(['Magento_Checkout/js/view/summary/abstract-total','Magento_Checkout/js/model/quote','Magento_Catalog/js/price-utils','Magento_Checkout/js/model/totals'],function(Component,quote,priceUtils,totals){\"use strict\";return Component.extend({defaults:{isFullTaxSummaryDisplayed:window.checkoutConfig.isFullTaxSummaryDisplayed||false,template:'Webkul_RewardSystem/checkout/cart/totals/rewardamount'},totals:quote.getTotals(),isTaxDisplayedInGrandTotal:window.checkoutConfig.includeTaxInGrandTotal||false,isDisplayed:function(){var price=0;if(this.totals()){price=totals.getSegment('reward_amount').value;}\nif(price){return true;}else{return false;}},getValue:function(){var price=0;if(this.totals()){price=totals.getSegment('reward_amount').value;}\nreturn this.getFormattedPrice(this.getBaseValue());},getBaseValue:function(){var price=0;if(this.totals()&&totals.getSegment('reward_amount').value){price=parseFloat(totals.getSegment('reward_amount').value);}\nreturn price;}});});","Webkul_RewardSystem/js/view/payment/discount-messages.min.js":"define(['Magento_Ui/js/view/messages','../../model/discount-messages'],function(Component,messageContainer){'use strict';return Component.extend({initialize:function(config){return this._super(config,messageContainer);}});});","Webkul_RewardSystem/js/view/payment/rewardamount.min.js":"define([\"jquery\",'ko',\"uiComponent\",'Webkul_RewardSystem/js/model/reward','Magento_Checkout/js/model/error-processor','Webkul_RewardSystem/js/model/discount-messages','Magento_Checkout/js/model/totals','Magento_Checkout/js/model/cart/totals-processor/default','Magento_Catalog/js/price-utils','Magento_Checkout/js/model/quote','Webkul_RewardSystem/js/model/reward','Webkul_RewardSystem/js/action/set-reward-action','Webkul_RewardSystem/js/action/cancel-reward-action'],function($,ko,Component,rewardData,errorProcessor,messageContainer,totals,defaultTotal,priceUtils,quote,reward,setRewardAction,cancelRewardAction){'use strict';var totals=quote.getTotals();defaultTotal.estimateTotals();var rewardValue=rewardData.getRewardData();var totalAmount=ko.observable();var isLoading=ko.observable(false);var isValue=ko.observable(false);if(rewardValue.status==1){var rewardStatus=ko.observable(true);}else{var rewardStatus=ko.observable(false);}\nvar session=[];var rewardsSession=reward.getRewardSession();if(!$.isEmptyObject(rewardsSession)){rewardsSession.amount=priceUtils.formatPrice(rewardsSession.amount,quote.getPriceFormat());rewardsSession.avail_amount=priceUtils.formatPrice(rewardsSession.avail_amount,quote.getPriceFormat());session.push(rewardsSession);}\nvar isApplied=ko.observable(session.length>0);var rewardSession=ko.observableArray(session);return Component.extend({defaults:{template:'Webkul_RewardSystem/checkout/rewardamount',isLoading:isLoading,isValue:isValue,totalAmount:totalAmount,rewardsession:rewardSession,rewardStatus:rewardStatus,isApplied:isApplied,},initialize:function(){this._super();defaultTotal.estimateTotals();},rewardPoints:ko.observable(rewardValue.total_reward_point),rewardPointAmount:ko.observable(rewardValue.point_amount),amountCurrency:ko.observable(rewardValue.currency),apply:function(value){if(this.validate()){var formData=$('#reward-form').serialize();isLoading(true);setRewardAction(formData,isApplied,rewardSession,isLoading);}},check:function(value){var points=$('#reward_points').val();if(points!=''){var total_amount=points*rewardValue.point_amount;total_amount=priceUtils.formatPrice(total_amount,quote.getPriceFormat());totalAmount(total_amount);isValue(true);}else{isValue(false);}},cancel:function(){isLoading(true);cancelRewardAction(isApplied,isLoading,isValue);},validate:function(){var form='#reward-form';return $(form).validation()&&$(form).validation('isValid');},getajaxUrl:function(){return rewardValue.ajaxurl;},});});","Webkul_RewardSystem/js/model/discount-messages.min.js":"define(['Magento_Ui/js/model/messages'],function(Messages){'use strict';return new Messages();});","Webkul_RewardSystem/js/model/reward.min.js":"define(['ko'],function(ko){'use strict';var rewardData=window.checkoutConfig.rewards;var rewardSession=window.checkoutConfig.rewardSession;var rewardMessage=window.checkoutConfig.rewardMessage;return{rewardData:rewardData,rewardSession:rewardSession,rewardMessage:rewardMessage,getRewardData:function(){return rewardData;},getRewardSession:function(){return rewardSession;},getRewardMessage:function(){return rewardMessage;},};});","Webkul_RewardSystem/js/model/resource-url-manager.min.js":"define(['Magento_Customer/js/model/customer','Magento_Checkout/js/model/url-builder','mageUtils'],function(customer,urlBuilder,utils){\"use strict\";return{getApplyRewardUrl:function(rewardData,quoteId){var params=(this.getCheckoutMethod()=='guest')?{quoteId:quoteId}:{};var urls={'customer':'/carts/mine/credit/'+'params?'+rewardData};return this.getUrl(urls,params);},getCancelRewardUrl:function(quoteId){var params=(this.getCheckoutMethod()=='guest')?{quoteId:quoteId}:{};var urls={'customer':'/carts/mine/credit/'+'params?cancel=1'};return this.getUrl(urls,params);},getUrl:function(urls,urlParams){var url;if(utils.isEmpty(urls)){return'Provided service call does not exist.';}\nif(!utils.isEmpty(urls['default'])){url=urls['default'];}else{url=urls[this.getCheckoutMethod()];}\nreturn urlBuilder.createUrl(url,urlParams);},getCheckoutMethod:function(){return customer.isLoggedIn()?'customer':'guest';}};});","Webkul_RewardSystem/js/action/cancel-reward-action.min.js":"define(['ko','jquery','Magento_Checkout/js/model/quote','Webkul_RewardSystem/js/model/resource-url-manager','Magento_Checkout/js/model/payment-service','Magento_Checkout/js/model/error-processor','Webkul_RewardSystem/js/model/discount-messages','mage/storage','Magento_Checkout/js/action/get-totals','Magento_Checkout/js/model/cart/totals-processor/default','mage/translate','Magento_Checkout/js/model/cart/cache','Magento_Checkout/js/model/payment/method-list'],function(ko,$,quote,urlManager,paymentService,errorProcessor,messageContainer,storage,getTotalsAction,defaultTotal,$t,cartCache,paymentMethodList){'use strict';return function(isApplied,isLoading,isValue){var quoteId=quote.getQuoteId();var url=urlManager.getCancelRewardUrl(quoteId);var message=$t('Your reward was successfully cancelled');return storage.get(url,{},false).done(function(response){if(response){var deferred=$.Deferred();isLoading(false);isApplied(false);isValue(false);cartCache.set('totals',null);defaultTotal.estimateTotals();$.when(deferred).done(function(){paymentService.setPaymentMethods(paymentMethodList());});messageContainer.addSuccessMessage({'message':message});}}).fail(function(response){isLoading(false);errorProcessor.process(response,messageContainer);});};});","Webkul_RewardSystem/js/action/set-reward-action.min.js":"define(['ko','jquery','Magento_Checkout/js/model/quote','Webkul_RewardSystem/js/model/resource-url-manager','Magento_Checkout/js/model/payment-service','Magento_Checkout/js/model/error-processor','Webkul_RewardSystem/js/model/discount-messages','mage/storage','Magento_Checkout/js/action/get-totals','Magento_Checkout/js/model/cart/totals-processor/default','Magento_Catalog/js/price-utils','mage/translate','Magento_Checkout/js/model/cart/cache','Magento_Checkout/js/model/payment/method-list','Magento_Checkout/js/model/shipping-save-processor/default'],function(ko,$,quote,urlManager,paymentService,errorProcessor,messageContainer,storage,getTotalsAction,defaultTotal,priceUtils,$t,cartCache,paymentMethodList,shippingProcessor){'use strict';return function(rewardData,isApplied,rewardSession,isLoading){var quoteId=quote.getQuoteId();var url=urlManager.getApplyRewardUrl(rewardData,quoteId);var message=$t('Your reward was successfully applied');return storage.get(url,{},false).done(function(response){if(response){$.each(response,function(i,v){response[i].amount=priceUtils.formatPrice(v.amount,quote.getPriceFormat());response[i].avail_amount=priceUtils.formatPrice(v.avail_amount,quote.getPriceFormat());});rewardSession(response);var deferred=$.Deferred();isLoading(false);isApplied(true);cartCache.set('totals',null);defaultTotal.estimateTotals();if(quote.shippingMethod()){shippingProcessor.saveShippingInformation();location.reload();}else{location.reload();}\n$.when(deferred).done(function(){paymentService.setPaymentMethods(paymentMethodList());});messageContainer.addSuccessMessage({'message':message});}}).fail(function(response){isLoading(false);errorProcessor.process(response,messageContainer);});};});","Mageplaza_SocialLogin/js/popup.min.js":"define(['jquery','Magento_Customer/js/customer-data','mage/translate','Magento_Ui/js/modal/modal','Mageplaza_Core/js/jquery.magnific-popup.min'],function($,customerData,$t,modal){'use strict';$.widget('mageplaza.socialpopup',{options:{popup:'#social-login-popup',popupEffect:'',headerLink:'.header .links, .section-item-content .header.links',ajaxLoading:'#social-login-popup .ajax-loading',loadingClass:'social-login-ajax-loading',errorMsgClass:'message-error error message',successMsgClass:'message-success success message',loginFormContainer:'.social-login.authentication',loginFormContent:'.social-login.authentication .social-login-customer-authentication .block-content',loginForm:'#social-form-login',loginBtn:'#bnt-social-login-authentication',forgotBtn:'#social-form-login .action.remind',createBtn:'#social-form-login .action.create',formLoginUrl:'',emailFormContainer:'.social-login.fake-email',fakeEmailSendBtn:'#social-form-fake-email .action.send',fakeEmailType:'',fakeEmailFrom:'#social-form-fake-email',fakeEmailFormContent:'.social-login.fake-email .block-content',fakeEmailUrl:'',fakeEmailCancelBtn:'#social-form-fake-email .action.cancel',forgotFormContainer:'.social-login.forgot',forgotFormContent:'.social-login.forgot .block-content',forgotForm:'#social-form-password-forget',forgotSendBtn:'#social-form-password-forget .action.send',forgotBackBtn:'#social-form-password-forget .action.back',forgotFormUrl:'',createFormContainer:'.social-login.create',createFormContent:'.social-login.create .block-content',createForm:'#social-form-create',createAccBtn:'#social-form-create .action.create',createBackBtn:'#social-form-create .action.back',createFormUrl:'',showFields:'',availableFields:['name','email','password'],condition:false,popupLogin:false,actionName:'',firstName:'',lastName:',',popupContent:'#mp-popup-social-content'},_create:function(){var self=this;customerData.reload(true);this.initObject();this.initLink();this.initObserve();this.replaceAuthModal();this.hideFieldOnPopup();window.fakeEmailCallback=function(type,firstname,lastname){self.options.fakeEmailType=type;self.options.firstName=firstname;self.options.lastName=lastname;self.showEmail();};},initObject:function(){this.loginForm=$(this.options.loginForm);this.popupContent=$(this.options.popupContent);this.createForm=$(this.options.createForm);this.forgotForm=$(this.options.forgotForm);this.forgotFormContainer=$(this.options.forgotFormContainer);this.createFormContainer=$(this.options.createFormContainer);this.loginFormContainer=$(this.options.loginFormContainer);this.loginFormContent=$(this.options.loginFormContent);this.forgotFormContent=$(this.options.forgotFormContent);this.createFormContent=$(this.options.createFormContent);this.emailFormContainer=$(this.options.emailFormContainer);this.fakeEmailFrom=$(this.options.fakeEmailFrom);this.fakeEmailFormContent=$(this.options.fakeEmailFormContent);},initLink:function(){var self=this,headerLink=$(this.options.headerLink);if(headerLink.length&&self.options.popupLogin){headerLink.find('a').each(function(link){var el=$(this),href=el.attr('href');if(typeof href!=='undefined'&&(href.search('customer/account/login')!==-1||href.search('customer/account/create')!==-1)){self.addAttribute(el);el.on('click',function(event){if(href.search('customer/account/create')!==-1){self.showCreate();}else{self.showLogin();}\nevent.preventDefault();});}});if(self.options.popupLogin==='popup_login'){self.enablePopup(headerLink,'a.social-login-btn');}}\nthis.options.createFormUrl=this.correctUrlProtocol(this.options.createFormUrl);this.options.formLoginUrl=this.correctUrlProtocol(this.options.formLoginUrl);this.options.forgotFormUrl=this.correctUrlProtocol(this.options.forgotFormUrl);this.options.fakeEmailUrl=this.correctUrlProtocol(this.options.fakeEmailUrl);},correctUrlProtocol:function(url){var protocol=window.location.protocol;if(!url.includes(protocol)){url=url.replace(/http:|https:/gi,protocol);}\nreturn url;},initObserve:function(){this.initLoginObserve();this.initCreateObserve();this.initForgotObserve();this.initEmailObserve();$(this.options.createBtn).on('click',this.showCreate.bind(this));$(this.options.forgotBtn).on('click',this.showForgot.bind(this));$(this.options.createBackBtn).on('click',this.showLogin.bind(this));$(this.options.forgotBackBtn).on('click',this.showLogin.bind(this));},initLoginObserve:function(){var self=this;$(this.options.loginBtn).on('click',this.processLogin.bind(this));this.loginForm.find('input').keypress(function(event){var code=event.keyCode||event.which;if(code===13){self.processLogin();}});},initCreateObserve:function(){var self=this;$(this.options.createAccBtn).on('click',this.processCreate.bind(this));this.createForm.find('input').keypress(function(event){var code=event.keyCode||event.which;if(code===13){self.processCreate();}});},initForgotObserve:function(){var self=this;$(this.options.forgotSendBtn).on('click',this.processForgot.bind(this));this.forgotForm.find('input').keypress(function(event){var code=event.keyCode||event.which;if(code===13){self.processForgot();}});},initEmailObserve:function(){var self=this;$(this.options.fakeEmailSendBtn).on('click',this.processEmail.bind(this));this.fakeEmailFrom.find('input').keypress(function(event){var code=event.keyCode||event.which;if(code===13){self.processEmail();}});},showLogin:function(){this.reloadCaptcha('login',50);this.loginFormContainer.show();this.forgotFormContainer.hide();this.createFormContainer.hide();this.emailFormContainer.hide();this.popupContent.show();},showEmail:function(){var wrapper=$('#social-login-popup'),actions=['customer_account_login','customer_account_create','multishipping_checkout_login'];if(this.options.popupLogin!=='popup_login'){if(this.options.popupLogin==='popup_slide'){$('.quick-login-wrapper').modal('closeModal');}\nvar options={'type':'popup','responsive':true,'modalClass':'request-popup','buttons':[],'parentModalClass':'_has-modal request-popup-has-modal'};modal(options,wrapper);wrapper.modal('openModal');}\nif($.inArray(this.options.actionName,actions)!==-1){this.options.popupLogin?$('.social-login-btn').trigger('click'):wrapper.modal('openModal');this.emailFormContainer.show();}\n$('#request-firstname').val(this.options.firstName);$('#request-lastname').val(this.options.lastName);this.emailFormContainer.show();this.loginFormContainer.hide();this.forgotFormContainer.hide();this.createFormContainer.hide();this.popupContent.hide();},openModal:function(){},showCreate:function(){this.reloadCaptcha('create',50);this.loginFormContainer.hide();this.forgotFormContainer.hide();this.createFormContainer.show();this.emailFormContainer.hide();this.popupContent.show();},showForgot:function(){this.reloadCaptcha('forgot',50);this.loginFormContainer.hide();this.forgotFormContainer.show();this.createFormContainer.hide();this.emailFormContainer.hide();this.popupContent.show();},reloadCaptcha:function(type,delay){if(typeof this.captchaReload==='undefined'){this.captchaReload={all:$('#social-login-popup .captcha-reload'),login:$('#social-login-popup .authentication .captcha-reload'),create:$('#social-login-popup .create .captcha-reload'),forgot:$('#social-login-popup .forgot .captcha-reload')};}\nif(typeof type==='undefined'){type='all';}\nif(this.captchaReload.hasOwnProperty(type)&&this.captchaReload[type].length){if(typeof delay==='undefined'){this.captchaReload[type].trigger('click');}else{var self=this;setTimeout(function(){self.captchaReload[type].trigger('click');},delay);}}},processLogin:function(){if(!this.loginForm.valid()){return;}\nvar self=this,options=this.options,loginData={},formDataArray=this.loginForm.serializeArray();formDataArray.forEach(function(entry){loginData[entry.name]=entry.value;if(entry.name.includes('user_login')){loginData['captcha_string']=entry.value;loginData['captcha_form_id']='user_login';}});this.appendLoading(this.loginFormContent);this.removeMsg(this.loginFormContent,options.errorMsgClass);return $.ajax({url:options.formLoginUrl,type:'POST',data:JSON.stringify(loginData)}).done(function(response){response.success=!response.errors;self.addMsg(self.loginFormContent,response);if(response.success){customerData.invalidate(['customer']);if(response.redirectUrl){window.location.href=response.redirectUrl;}else{window.location.reload();}}else{self.reloadCaptcha('login');self.removeLoading(self.loginFormContent);}}).fail(function(){self.reloadCaptcha('login');self.addMsg(self.loginFormContent,{message:$t('Could not authenticate. Please try again later'),success:false});self.removeLoading(self.loginFormContent);});},processForgot:function(){if(!this.forgotForm.valid()){return;}\nvar self=this,options=this.options,parameters=this.forgotForm.serialize();this.appendLoading(this.forgotFormContent);this.removeMsg(this.forgotFormContent,options.errorMsgClass);this.removeMsg(this.forgotFormContent,options.successMsgClass);return $.ajax({url:options.forgotFormUrl,type:'POST',data:parameters}).done(function(response){self.reloadCaptcha('forgot');self.addMsg(self.forgotFormContent,response);self.removeLoading(self.forgotFormContent);});},processEmail:function(){if(!this.fakeEmailFrom.valid()){return;}\nvar input=$(\"<input>\").attr(\"type\",\"hidden\").attr(\"name\",\"type\").val(this.options.fakeEmailType.toLowerCase());$(this.fakeEmailFrom).append($(input));var self=this;var options=this.options,parameters=this.fakeEmailFrom.serialize();this.appendLoading(this.fakeEmailFormContent);this.removeMsg(this.fakeEmailFormContent,options.errorMsgClass);this.removeMsg(this.fakeEmailFormContent,options.successMsgClass);return $.ajax({url:options.fakeEmailUrl,type:'POST',data:parameters}).done(function(response){self.addMsg(self.fakeEmailFrom,response);self.removeLoading(self.fakeEmailFormContent);if(response.success){if(response.url===''||response.url==null){window.location.reload(true);}else{window.location.href=response.url;}}});},processCreate:function(){if(!this.createForm.valid()){return;}\nvar self=this,options=this.options,parameters=this.createForm.serialize();this.appendLoading(this.createFormContent);this.removeMsg(this.createFormContent,options.errorMsgClass);return $.ajax({url:options.createFormUrl,type:'POST',data:parameters}).done(function(response){if(response.redirect){window.location.href=response.redirect;}else if(response.success){customerData.invalidate(['customer']);self.addMsg(self.createFormContent,response);if(response.url===''||response.url==null){window.location.reload(true);}else{window.location.href=response.url;}}else{self.reloadCaptcha('create');self.addMsg(self.createFormContent,response);self.removeLoading(self.createFormContent);}});},appendLoading:function(block){block.css('position','relative');block.prepend($(\"<div></div>\",{\"class\":this.options.loadingClass}))},removeLoading:function(block){block.css('position','');block.find(\".\"+this.options.loadingClass).remove();},addMsg:function(block,response){var message=response.message,messageClass=response.success?this.options.successMsgClass:this.options.errorMsgClass;if(typeof(message)==='object'&&message.length>0){message.forEach(function(msg){this._appendMessage(block,msg,messageClass);}.bind(this));}else if(typeof(message)==='string'){this._appendMessage(block,message,messageClass);}},removeMsg:function(block,messageClass){block.find('.'+messageClass.replace(/ /g,'.')).remove();},_appendMessage:function(block,message,messageClass){var currentMessage=null;var messageSection=block.find(\".\"+messageClass.replace(/ /g,'.'));if(!messageSection.length){block.prepend($('<div></div>',{'class':messageClass}));currentMessage=block.children().first();}else{currentMessage=messageSection.first();}\ncurrentMessage.append($('<div>'+message+'</div>'));},replaceAuthModal:function(){var self=this,cartSummary=$('.cart-summary'),child_selector='button.social-login-btn',cart=customerData.get('cart'),customer=customerData.get('customer'),miniCartBtn=$('#minicart-content-wrapper'),pccBtn=$('button[data-role = proceed-to-checkout]');var existCondition=setInterval(function(){if($('#minicart-content-wrapper #top-cart-btn-checkout').length){clearInterval(existCondition);if(!customer().firstname&&cart().isGuestCheckoutAllowed===false&&cart().isReplaceAuthModal){self.options.condition=true;}\nself.addAttribute($('#minicart-content-wrapper #top-cart-btn-checkout'));$('#minicart-content-wrapper').on('click',' #top-cart-btn-checkout',function(event){if(self.options.condition){self.openModal();self.showLogin();event.stopPropagation();}});if(self.options.condition&&self.options.popupLogin==='popup_login'){self.enablePopup(miniCartBtn,child_selector);}}},100);if(!customer().firstname&&cart().isGuestCheckoutAllowed===false&&cart().isReplaceAuthModal&&pccBtn.length){pccBtn.replaceWith('<a title=\"Proceed to Checkout\" class=\"action primary checkout social-login-btn\">'+'<span>'+$t('Proceed to Checkout')+'</span>'+'</a>');if(self.options.popupLogin==='popup_login'){self.addAttribute($('a.checkout.social-login-btn'));self.enablePopup(cartSummary,'a.social-login-btn');}}},addAttribute:function(element){var self=this;element.addClass('social-login-btn');element.attr('href',self.options.popup);element.attr('data-effect',self.options.popupEffect);},enablePopup:function(parent_selector=null,child_selector=null){parent_selector.magnificPopup({delegate:child_selector,removalDelay:500,callbacks:{beforeOpen:function(){this.st.mainClass=this.st.el.attr('data-effect');}},midClick:true});},hideFieldOnPopup:function(){var self=this;$.each(self.options.availableFields,function(k,fieldName){var elField=$('.field-'+fieldName+'-social'),elConfirm=$('.field-confirmation-social');if(self.options.showFields){if($.inArray(fieldName,self.options.showFields.split(','))===-1){if(fieldName==='password'&&!self.options.checkMode){elConfirm.remove();elField.remove();}\nif(fieldName!=='password'){elField.remove();}}else{elField.show();}}});}});return $.mageplaza.socialpopup;});","Mageplaza_SocialLogin/js/proceed-to-checkout.min.js":"define(['jquery','Magento_Customer/js/model/authentication-popup','Magento_Customer/js/customer-data',],function($,authenticationPopup,customerData){'use strict';return function(config,element){var el=$(element);el.click(function(event){var cart=customerData.get('cart'),customer=customerData.get('customer');event.preventDefault();if(!customer().firstname&&cart().isGuestCheckoutAllowed===false){if(parseInt(cart().isReplaceAuthModal)!==1){authenticationPopup.showModal();return false;}\nreturn true;}\n$(element).attr('disabled',true);location.href=config.checkoutUrl;});};});","Mageplaza_SocialLogin/js/provider.min.js":"define(['jquery','Magento_Customer/js/customer-data'],function($,customerData){'use strict';window.socialCallback=function(url,windowObj){customerData.invalidate(['customer']);customerData.reload(['customer'],true);if(url!==''){window.location.href=url;}else{window.location.reload(true);}\nwindowObj.close();};return function(config,element){var model={initialize:function(){var self=this;customerData.reload(true);$(element).on('click',function(){self.openPopup();});},openPopup:function(){var date=new Date(),currentTime=date.getTime();window.open(config.url+'?'+currentTime,config.label,this.getPopupParams());},getPopupParams:function(w,h,l,t){this.screenX=typeof window.screenX!=='undefined'?window.screenX:window.screenLeft;this.screenY=typeof window.screenY!=='undefined'?window.screenY:window.screenTop;this.outerWidth=typeof window.outerWidth!=='undefined'?window.outerWidth:document.body.clientWidth;this.outerHeight=typeof window.outerHeight!=='undefined'?window.outerHeight:(document.body.clientHeight-22);this.width=w?w:500;this.height=h?h:420;this.left=l?l:parseInt(this.screenX+((this.outerWidth-this.width)/ 2),10);this.top=t?t:parseInt(this.screenY+((this.outerHeight-this.height)/ 2.5),10);return('width='+this.width+',height='+this.height+',left='+this.left+',top='+this.top);}};model.initialize();return model;};});","Mageplaza_SocialLogin/js/view/social-buttons.min.js":"define(['jquery','ko','uiComponent','socialProvider'],function($,ko,Component,socialProvider){'use strict';ko.bindingHandlers.socialButton={init:function(element,valueAccessor,allBindings){var config={url:allBindings.get('url'),label:allBindings.get('label')};socialProvider(config,element);}};return Component.extend({defaults:{template:'Mageplaza_SocialLogin/social-buttons'},buttonLists:window.socialAuthenticationPopup,socials:function(){var socials=[];$.each(this.buttonLists,function(key,social){socials.push(social);});return socials;},isActive:function(){return(typeof this.buttonLists!=='undefined');}});});","Mageplaza_SocialLogin/js/view/authentication.min.js":"define(['jquery','ko','uiComponent','Magento_Customer/js/model/customer','mage/translate','Magento_Ui/js/modal/modal','rjsResolver'],function($,ko,Component,customer,$t,modal,resolver){'use strict';return Component.extend({defaults:{template:'Mageplaza_SocialLoginPro/authentication'},initialize:function(){var self=this;this._super();this.popup=$('#social-login-popup');this.wrapper=$('.quick-login-wrapper');resolver(function(){if(self.popup.length!==0||self.wrapper.length!==0){$('.authentication-wrapper button').replaceWith('    <a class=\"action action-auth-toggle\">\\n'+'        <span data-bind=\"i18n: \\'Sign In\\'\">Sign In</span>\\n'+'    </a>');var el=$('.authentication-wrapper a');el.addClass('social-login-btn');el.css('cursor','pointer');}\nif(self.popup.length!==0){el.attr('href','#social-login-popup');el.on('click',function(){self.popup.socialpopup('showLogin');self.popup.socialpopup('loadApi');});$('.authentication-wrapper').magnificPopup({delegate:'a.social-login-btn',removalDelay:500,midClick:true});}\nif(self.wrapper.length!==0){el.on('click',function(event){self.wrapper.socialpopup('showLogin');self.wrapper.socialpopup('openModal');event.stopPropagation();});}});return this;},isActive:function(){return!customer.isLoggedIn();}});});","MGS_Aquickview/js/quickview.min.js":"define(['jquery','mage/translate','Magento_Ui/js/modal/modal','ko','jquery/ui','mage/validation/validation'],function($,$translate,modal,ko){\"use strict\";$.widget('mgs.aQuickView',{_create:function(){},productQuickView:function(actionUrl,prdId){var self=this;$.ajax({url:actionUrl,dataType:'json',method:'POST',success:function(result){$('#loading_overlay').removeClass('loading');if(result.product_detail){$('body').append('<div id=\"product_quickview_content'+result.id_product+'\" class=\"product_quickview_content\"></div>');self.popupModal(result);}}});},popupModal:function(result){var self=this,modelClass=\"quickViewDetails viewBox\";var options={type:'popup',modalClass:modelClass,responsive:true,innerScroll:true,title:false,buttons:false};var popup=modal(options,$('#product_quickview_content'+result.id_product));$('#product_quickview_content'+result.id_product).html(result.product_detail);$('#product_quickview_content'+result.id_product).trigger('contentUpdated');$('#product_quickview_content'+result.id_product).modal('openModal').on('modalclosed',function(){$('#product_quickview_content'+result.id_product).parents('.quickViewDetails').remove();$('body:not(.origin-catalog-product-view)').removeClass('catalog-product-view');$('body').removeAttr(\"style\");});}});return $.mgs.aQuickView;});","Magento_Tax/js/price/adjustment.min.js":"define(['Magento_Ui/js/grid/columns/column','mage/translate'],function(Element,$t){'use strict';return Element.extend({defaults:{bodyTmpl:'Magento_Tax/price/adjustment',taxPriceType:'final_price',taxPriceCssClass:'price-including-tax',bothPrices:3,inclTax:2,exclTax:1,modules:{price:'${ $.parentName }'},listens:{price:'initializePriceAttributes'}},initialize:function(){this._super().initializePriceAttributes();return this;},initializePriceAttributes:function(){if(this.displayBothPrices&&this.price()){this.price().priceWrapperCssClasses=this.taxPriceCssClass;this.price().priceWrapperAttr={'data-label':$t('Incl. Tax')};}\nreturn this;},getTax:function(row){return row['price_info']['extension_attributes']['tax_adjustments']['formatted_prices'][this.taxPriceType];},getTaxUnsanitizedHtml:function(row){return this.getTax(row);},setPriceType:function(priceType){this.taxPriceType=priceType;return this;},displayBothPrices:function(){return+this.source.data.displayTaxes===this.bothPrices;},displayPriceIncludeTax:function(){return+this.source.data.displayTaxes===this.inclTax;},displayPriceExclTax:function(){return+this.source.data.displayTaxes===this.exclTax;}});});","Magento_Tax/js/view/checkout/cart/totals/tax.min.js":"define(['Magento_Tax/js/view/checkout/summary/tax','Magento_Checkout/js/model/totals'],function(Component,totals){'use strict';var isFullTaxSummaryDisplayed=window.checkoutConfig.isFullTaxSummaryDisplayed,isZeroTaxDisplayed=window.checkoutConfig.isZeroTaxDisplayed;return Component.extend({ifShowValue:function(){if(parseInt(this.getPureValue())===0){return isZeroTaxDisplayed;}\nreturn true;},ifShowDetails:function(){return this.getPureValue()>0&&isFullTaxSummaryDisplayed;},isCalculated:function(){return this.totals()&&totals.getSegment('tax')!==null;}});});","Magento_Tax/js/view/checkout/cart/totals/grand-total.min.js":"define(['Magento_Tax/js/view/checkout/summary/grand-total'],function(Component){'use strict';return Component.extend({isDisplayed:function(){return true;}});});","Magento_Tax/js/view/checkout/cart/totals/shipping.min.js":"define(['Magento_Tax/js/view/checkout/summary/shipping','Magento_Checkout/js/model/quote'],function(Component,quote){'use strict';return Component.extend({isCalculated:function(){return!!quote.shippingMethod();},getShippingMethodTitle:function(){return'('+this._super()+')';}});});","Magento_Tax/js/view/checkout/shipping_method/price.min.js":"define(['uiComponent','Magento_Checkout/js/model/quote','Magento_Catalog/js/price-utils'],function(Component,quote,priceUtils){'use strict';return Component.extend({defaults:{template:'Magento_Tax/checkout/shipping_method/price'},isDisplayShippingPriceExclTax:window.checkoutConfig.isDisplayShippingPriceExclTax,isDisplayShippingBothPrices:window.checkoutConfig.isDisplayShippingBothPrices,isPriceEqual:function(item){return item['price_excl_tax']!=item['price_incl_tax'];},getFormattedPrice:function(price){return priceUtils.formatPriceLocale(price,quote.getPriceFormat());}});});","Magento_Tax/js/view/checkout/summary/tax.min.js":"define(['ko','Magento_Checkout/js/view/summary/abstract-total','Magento_Checkout/js/model/quote','Magento_Checkout/js/model/totals','mage/translate','underscore'],function(ko,Component,quote,totals,$t,_){'use strict';var isTaxDisplayedInGrandTotal=window.checkoutConfig.includeTaxInGrandTotal,isFullTaxSummaryDisplayed=window.checkoutConfig.isFullTaxSummaryDisplayed,isZeroTaxDisplayed=window.checkoutConfig.isZeroTaxDisplayed,taxAmount=0,rates=0;return Component.extend({defaults:{isTaxDisplayedInGrandTotal:isTaxDisplayedInGrandTotal,notCalculatedMessage:$t('Not yet calculated'),template:'Magento_Tax/checkout/summary/tax'},totals:quote.getTotals(),isFullTaxSummaryDisplayed:isFullTaxSummaryDisplayed,ifShowValue:function(){if(this.isFullMode()&&this.getPureValue()==0){return isZeroTaxDisplayed;}\nreturn true;},ifShowDetails:function(){if(!this.isFullMode()){return false;}\nreturn this.getPureValue()>0&&isFullTaxSummaryDisplayed;},getPureValue:function(){var amount=0,taxTotal;if(this.totals()){taxTotal=totals.getSegment('tax');if(taxTotal){amount=taxTotal.value;}}\nreturn amount;},isCalculated:function(){return this.totals()&&this.isFullMode()&&totals.getSegment('tax')!=null;},getValue:function(){var amount;if(!this.isCalculated()){return this.notCalculatedMessage;}\namount=totals.getSegment('tax').value;return this.getFormattedPrice(amount);},formatPrice:function(amount){return this.getFormattedPrice(amount);},getTaxAmount:function(parent,percentage){var totalPercentage=0;taxAmount=parent.amount;rates=parent.rates;_.each(rates,function(rate){totalPercentage+=parseFloat(rate.percent);});return this.getFormattedPrice(this.getPercentAmount(taxAmount,totalPercentage,percentage));},getPercentAmount:function(amount,totalPercentage,percentage){return parseFloat(amount*percentage / totalPercentage);},getDetails:function(){var taxSegment=totals.getSegment('tax');if(taxSegment&&taxSegment['extension_attributes']){return taxSegment['extension_attributes']['tax_grandtotal_details'];}\nreturn[];}});});","Magento_Tax/js/view/checkout/summary/grand-total.min.js":"define(['Magento_Checkout/js/view/summary/abstract-total','Magento_Checkout/js/model/quote','Magento_Catalog/js/price-utils','Magento_Checkout/js/model/totals'],function(Component,quote,priceUtils,totals){'use strict';return Component.extend({defaults:{isFullTaxSummaryDisplayed:window.checkoutConfig.isFullTaxSummaryDisplayed||false,template:'Magento_Tax/checkout/summary/grand-total'},totals:quote.getTotals(),isTaxDisplayedInGrandTotal:window.checkoutConfig.includeTaxInGrandTotal||false,isDisplayed:function(){return this.isFullMode();},getValue:function(){var price=0;if(this.totals()){price=totals.getSegment('grand_total').value;}\nreturn this.getFormattedPrice(price);},getBaseValue:function(){var price=0;if(this.totals()){price=this.totals()['base_grand_total'];}\nreturn priceUtils.formatPriceLocale(price,quote.getBasePriceFormat());},getGrandTotalExclTax:function(){var total=this.totals(),amount;if(!total){return 0;}\namount=total['grand_total']-total['tax_amount'];if(amount<0){amount=0;}\nreturn this.getFormattedPrice(amount);},isBaseGrandTotalDisplayNeeded:function(){var total=this.totals();if(!total){return false;}\nreturn total['base_currency_code']!=total['quote_currency_code'];}});});","Magento_Tax/js/view/checkout/summary/shipping.min.js":"define(['jquery','Magento_Checkout/js/view/summary/shipping','Magento_Checkout/js/model/quote'],function($,Component,quote){'use strict';var displayMode=window.checkoutConfig.reviewShippingDisplayMode;return Component.extend({defaults:{displayMode:displayMode,template:'Magento_Tax/checkout/summary/shipping'},isBothPricesDisplayed:function(){return this.displayMode=='both';},isIncludingDisplayed:function(){return this.displayMode=='including';},isExcludingDisplayed:function(){return this.displayMode=='excluding';},isCalculated:function(){return this.totals()&&this.isFullMode()&&quote.shippingMethod()!=null;},getIncludingValue:function(){var price;if(!this.isCalculated()){return this.notCalculatedMessage;}\nprice=this.totals()['shipping_incl_tax'];return this.getFormattedPrice(price);},getExcludingValue:function(){var price;if(!this.isCalculated()){return this.notCalculatedMessage;}\nprice=this.totals()['shipping_amount'];return this.getFormattedPrice(price);}});});","Magento_Tax/js/view/checkout/summary/subtotal.min.js":"define(['Magento_Checkout/js/view/summary/abstract-total','Magento_Checkout/js/model/quote'],function(Component,quote){'use strict';var displaySubtotalMode=window.checkoutConfig.reviewTotalsDisplayMode;return Component.extend({defaults:{displaySubtotalMode:displaySubtotalMode,template:'Magento_Tax/checkout/summary/subtotal'},totals:quote.getTotals(),getValue:function(){var price=0;if(this.totals()){price=this.totals().subtotal;}\nreturn this.getFormattedPrice(price);},isBothPricesDisplayed:function(){return this.displaySubtotalMode=='both';},isIncludingTaxDisplayed:function(){return this.displaySubtotalMode=='including';},getValueInclTax:function(){var price=0;if(this.totals()){price=this.totals()['subtotal_incl_tax'];}\nreturn this.getFormattedPrice(price);}});});","Magento_Tax/js/view/checkout/summary/item/details/subtotal.min.js":"define(['Magento_Checkout/js/view/summary/item/details/subtotal'],function(subtotal){'use strict';var displayPriceMode=window.checkoutConfig.reviewItemPriceDisplayMode||'including';return subtotal.extend({defaults:{displayPriceMode:displayPriceMode,template:'Magento_Tax/checkout/summary/item/details/subtotal'},isPriceInclTaxDisplayed:function(){return displayPriceMode=='both'||displayPriceMode=='including';},isPriceExclTaxDisplayed:function(){return displayPriceMode=='both'||displayPriceMode=='excluding';},getValueInclTax:function(quoteItem){return this.getFormattedPrice(quoteItem['row_total_incl_tax']);},getValueExclTax:function(quoteItem){return this.getFormattedPrice(quoteItem['row_total']);}});});","Magento_Tax/js/view/checkout/minicart/subtotal/totals.min.js":"define(['ko','uiComponent','Magento_Customer/js/customer-data'],function(ko,Component,customerData){'use strict';return Component.extend({displaySubtotal:ko.observable(true),initialize:function(){this._super();this.cart=customerData.get('cart');}});});","Magento_Variable/js/grid/columns/radioselect.min.js":"define(['underscore','mage/translate','Magento_Ui/js/grid/columns/column','jquery'],function(_,$t,Column,jQuery){'use strict';return Column.extend({defaults:{bodyTmpl:'Magento_Variable/grid/cells/radioselect',draggable:false,sortable:false,selectedVariableCode:null,selectedVariableType:null},initObservable:function(){this._super().observe(['selectedVariableCode']);return this;},selectVariable:function(){if(jQuery('#insert_variable').hasClass('disabled')){jQuery('#insert_variable').removeClass('disabled');}\nreturn true;}});});","fotorama/fotorama.min.js":"/*!\n * Fotorama 4.6.4 | http://fotorama.io/license/\n */\nfotoramaVersion='4.6.4';(function(window,document,location,$,undefined){\"use strict\";var _fotoramaClass='fotorama',_fullscreenClass='fotorama__fullscreen',wrapClass=_fotoramaClass+'__wrap',wrapCss2Class=wrapClass+'--css2',wrapCss3Class=wrapClass+'--css3',wrapVideoClass=wrapClass+'--video',wrapFadeClass=wrapClass+'--fade',wrapSlideClass=wrapClass+'--slide',wrapNoControlsClass=wrapClass+'--no-controls',wrapNoShadowsClass=wrapClass+'--no-shadows',wrapPanYClass=wrapClass+'--pan-y',wrapRtlClass=wrapClass+'--rtl',wrapOnlyActiveClass=wrapClass+'--only-active',wrapNoCaptionsClass=wrapClass+'--no-captions',wrapToggleArrowsClass=wrapClass+'--toggle-arrows',stageClass=_fotoramaClass+'__stage',stageFrameClass=stageClass+'__frame',stageFrameVideoClass=stageFrameClass+'--video',stageShaftClass=stageClass+'__shaft',grabClass=_fotoramaClass+'__grab',pointerClass=_fotoramaClass+'__pointer',arrClass=_fotoramaClass+'__arr',arrDisabledClass=arrClass+'--disabled',arrPrevClass=arrClass+'--prev',arrNextClass=arrClass+'--next',navClass=_fotoramaClass+'__nav',navWrapClass=navClass+'-wrap',navShaftClass=navClass+'__shaft',navShaftVerticalClass=navWrapClass+'--vertical',navShaftListClass=navWrapClass+'--list',navShafthorizontalClass=navWrapClass+'--horizontal',navDotsClass=navClass+'--dots',navThumbsClass=navClass+'--thumbs',navFrameClass=navClass+'__frame',fadeClass=_fotoramaClass+'__fade',fadeFrontClass=fadeClass+'-front',fadeRearClass=fadeClass+'-rear',shadowClass=_fotoramaClass+'__shadow',shadowsClass=shadowClass+'s',shadowsLeftClass=shadowsClass+'--left',shadowsRightClass=shadowsClass+'--right',shadowsTopClass=shadowsClass+'--top',shadowsBottomClass=shadowsClass+'--bottom',activeClass=_fotoramaClass+'__active',selectClass=_fotoramaClass+'__select',hiddenClass=_fotoramaClass+'--hidden',fullscreenClass=_fotoramaClass+'--fullscreen',fullscreenIconClass=_fotoramaClass+'__fullscreen-icon',errorClass=_fotoramaClass+'__error',loadingClass=_fotoramaClass+'__loading',loadedClass=_fotoramaClass+'__loaded',loadedFullClass=loadedClass+'--full',loadedImgClass=loadedClass+'--img',grabbingClass=_fotoramaClass+'__grabbing',imgClass=_fotoramaClass+'__img',imgFullClass=imgClass+'--full',thumbClass=_fotoramaClass+'__thumb',thumbArrLeft=thumbClass+'__arr--left',thumbArrRight=thumbClass+'__arr--right',thumbBorderClass=thumbClass+'-border',htmlClass=_fotoramaClass+'__html',videoContainerClass=_fotoramaClass+'-video-container',videoClass=_fotoramaClass+'__video',videoPlayClass=videoClass+'-play',videoCloseClass=videoClass+'-close',horizontalImageClass=_fotoramaClass+'_horizontal_ratio',verticalImageClass=_fotoramaClass+'_vertical_ratio',fotoramaSpinnerClass=_fotoramaClass+'__spinner',spinnerShowClass=fotoramaSpinnerClass+'--show';var JQUERY_VERSION=$&&$.fn.jquery.split('.');if(!JQUERY_VERSION||JQUERY_VERSION[0]<1||(JQUERY_VERSION[0]==1&&JQUERY_VERSION[1]<8)){throw'Fotorama requires jQuery 1.8 or later and will not run without it.';}\nvar _={};var Modernizr=(function(window,document,undefined){var version='2.8.3',Modernizr={},docElement=document.documentElement,mod='modernizr',modElem=document.createElement(mod),mStyle=modElem.style,inputElem,toString={}.toString,prefixes=' -webkit- -moz- -o- -ms- '.split(' '),omPrefixes='Webkit Moz O ms',cssomPrefixes=omPrefixes.split(' '),domPrefixes=omPrefixes.toLowerCase().split(' '),tests={},inputs={},attrs={},classes=[],slice=classes.slice,featureName,injectElementWithStyles=function(rule,callback,nodes,testnames){var style,ret,node,docOverflow,div=document.createElement('div'),body=document.body,fakeBody=body||document.createElement('body');if(parseInt(nodes,10)){while(nodes--){node=document.createElement('div');node.id=testnames?testnames[nodes]:mod+(nodes+1);div.appendChild(node);}}\nstyle=['&#173;','<style id=\"s',mod,'\">',rule,'</style>'].join('');div.id=mod;(body?div:fakeBody).innerHTML+=style;fakeBody.appendChild(div);if(!body){fakeBody.style.background='';fakeBody.style.overflow='hidden';docOverflow=docElement.style.overflow;docElement.style.overflow='hidden';docElement.appendChild(fakeBody);}\nret=callback(div,rule);if(!body){fakeBody.parentNode.removeChild(fakeBody);docElement.style.overflow=docOverflow;}else{div.parentNode.removeChild(div);}\nreturn!!ret;},_hasOwnProperty=({}).hasOwnProperty,hasOwnProp;if(!is(_hasOwnProperty,'undefined')&&!is(_hasOwnProperty.call,'undefined')){hasOwnProp=function(object,property){return _hasOwnProperty.call(object,property);};}\nelse{hasOwnProp=function(object,property){return((property in object)&&is(object.constructor.prototype[property],'undefined'));};}\nif(!Function.prototype.bind){Function.prototype.bind=function bind(that){var target=this;if(typeof target!=\"function\"){throw new TypeError();}\nvar args=slice.call(arguments,1),bound=function(){if(this instanceof bound){var F=function(){};F.prototype=target.prototype;var self=new F();var result=target.apply(self,args.concat(slice.call(arguments)));if(Object(result)===result){return result;}\nreturn self;}else{return target.apply(that,args.concat(slice.call(arguments)));}};return bound;};}\nfunction setCss(str){mStyle.cssText=str;}\nfunction setCssAll(str1,str2){return setCss(prefixes.join(str1+';')+(str2||''));}\nfunction is(obj,type){return typeof obj===type;}\nfunction contains(str,substr){return!!~(''+str).indexOf(substr);}\nfunction testProps(props,prefixed){for(var i in props){var prop=props[i];if(!contains(prop,\"-\")&&mStyle[prop]!==undefined){return prefixed=='pfx'?prop:true;}}\nreturn false;}\nfunction testDOMProps(props,obj,elem){for(var i in props){var item=obj[props[i]];if(item!==undefined){if(elem===false)return props[i];if(is(item,'function')){return item.bind(elem||obj);}\nreturn item;}}\nreturn false;}\nfunction testPropsAll(prop,prefixed,elem){var ucProp=prop.charAt(0).toUpperCase()+prop.slice(1),props=(prop+' '+cssomPrefixes.join(ucProp+' ')+ucProp).split(' ');if(is(prefixed,\"string\")||is(prefixed,\"undefined\")){return testProps(props,prefixed);}else{props=(prop+' '+(domPrefixes).join(ucProp+' ')+ucProp).split(' ');return testDOMProps(props,prefixed,elem);}}\ntests['touch']=function(){var bool;if(('ontouchstart'in window)||window.DocumentTouch&&document instanceof DocumentTouch){bool=true;}else{injectElementWithStyles(['@media (',prefixes.join('touch-enabled),('),mod,')','{#modernizr{top:9px;position:absolute}}'].join(''),function(node){bool=node.offsetTop===9;});}\nreturn bool;};tests['csstransforms3d']=function(){var ret=!!testPropsAll('perspective');if(ret&&'webkitPerspective'in docElement.style){injectElementWithStyles('@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}',function(node,rule){ret=node.offsetLeft===9&&node.offsetHeight===3;});}\nreturn ret;};tests['csstransitions']=function(){return testPropsAll('transition');};for(var feature in tests){if(hasOwnProp(tests,feature)){featureName=feature.toLowerCase();Modernizr[featureName]=tests[feature]();classes.push((Modernizr[featureName]?'':'no-')+featureName);}}\nModernizr.addTest=function(feature,test){if(typeof feature=='object'){for(var key in feature){if(hasOwnProp(feature,key)){Modernizr.addTest(key,feature[key]);}}}else{feature=feature.toLowerCase();if(Modernizr[feature]!==undefined){return Modernizr;}\ntest=typeof test=='function'?test():test;if(typeof enableClasses!==\"undefined\"&&enableClasses){docElement.className+=' '+(test?'':'no-')+feature;}\nModernizr[feature]=test;}\nreturn Modernizr;};setCss('');modElem=inputElem=null;Modernizr._version=version;Modernizr._prefixes=prefixes;Modernizr._domPrefixes=domPrefixes;Modernizr._cssomPrefixes=cssomPrefixes;Modernizr.testProp=function(prop){return testProps([prop]);};Modernizr.testAllProps=testPropsAll;Modernizr.testStyles=injectElementWithStyles;Modernizr.prefixed=function(prop,obj,elem){if(!obj){return testPropsAll(prop,'pfx');}else{return testPropsAll(prop,obj,elem);}};return Modernizr;})(window,document);var fullScreenApi={ok:false,is:function(){return false;},request:function(){},cancel:function(){},event:'',prefix:''},browserPrefixes='webkit moz o ms khtml'.split(' ');if(typeof document.cancelFullScreen!='undefined'){fullScreenApi.ok=true;}else{for(var i=0,il=browserPrefixes.length;i<il;i++){fullScreenApi.prefix=browserPrefixes[i];if(typeof document[fullScreenApi.prefix+'CancelFullScreen']!='undefined'){fullScreenApi.ok=true;break;}}}\nif(fullScreenApi.ok){fullScreenApi.event=fullScreenApi.prefix+'fullscreenchange';fullScreenApi.is=function(){switch(this.prefix){case'':return document.fullScreen;case'webkit':return document.webkitIsFullScreen;default:return document[this.prefix+'FullScreen'];}};fullScreenApi.request=function(el){return(this.prefix==='')?el.requestFullScreen():el[this.prefix+'RequestFullScreen']();};fullScreenApi.cancel=function(el){if(!this.is()){return false;}\nreturn(this.prefix==='')?document.cancelFullScreen():document[this.prefix+'CancelFullScreen']();};}\nfunction bez(coOrdArray){var encodedFuncName=\"bez_\"+$.makeArray(arguments).join(\"_\").replace(\".\",\"p\");if(typeof $['easing'][encodedFuncName]!==\"function\"){var polyBez=function(p1,p2){var A=[null,null],B=[null,null],C=[null,null],bezCoOrd=function(t,ax){C[ax]=3*p1[ax];B[ax]=3*(p2[ax]-p1[ax])-C[ax];A[ax]=1-C[ax]-B[ax];return t*(C[ax]+t*(B[ax]+t*A[ax]));},xDeriv=function(t){return C[0]+t*(2*B[0]+3*A[0]*t);},xForT=function(t){var x=t,i=0,z;while(++i<14){z=bezCoOrd(x,0)-t;if(Math.abs(z)<1e-3)break;x-=z / xDeriv(x);}\nreturn x;};return function(t){return bezCoOrd(xForT(t),1);}};$['easing'][encodedFuncName]=function(x,t,b,c,d){return c*polyBez([coOrdArray[0],coOrdArray[1]],[coOrdArray[2],coOrdArray[3]])(t / d)+b;}}\nreturn encodedFuncName;}\nvar $WINDOW=$(window),$DOCUMENT=$(document),$HTML,$BODY,QUIRKS_FORCE=location.hash.replace('#','')==='quirks',TRANSFORMS3D=Modernizr.csstransforms3d,CSS3=TRANSFORMS3D&&!QUIRKS_FORCE,COMPAT=TRANSFORMS3D||document.compatMode==='CSS1Compat',FULLSCREEN=fullScreenApi.ok,MOBILE=navigator.userAgent.match(/Android|webOS|iPhone|iPad|iPod|BlackBerry|Windows Phone/i),SLOW=!CSS3||MOBILE,MS_POINTER=navigator.msPointerEnabled,WHEEL=\"onwheel\"in document.createElement(\"div\")?\"wheel\":document.onmousewheel!==undefined?\"mousewheel\":\"DOMMouseScroll\",TOUCH_TIMEOUT=250,TRANSITION_DURATION=300,SCROLL_LOCK_TIMEOUT=1400,AUTOPLAY_INTERVAL=5000,MARGIN=2,THUMB_SIZE=64,WIDTH=500,HEIGHT=333,STAGE_FRAME_KEY='$stageFrame',NAV_DOT_FRAME_KEY='$navDotFrame',NAV_THUMB_FRAME_KEY='$navThumbFrame',AUTO='auto',BEZIER=bez([.1,0,.25,1]),MAX_WIDTH=1200,thumbsPerSlide=1,OPTIONS={width:null,minwidth:null,maxwidth:'100%',height:null,minheight:null,maxheight:null,ratio:null,margin:MARGIN,nav:'dots',navposition:'bottom',navwidth:null,thumbwidth:THUMB_SIZE,thumbheight:THUMB_SIZE,thumbmargin:MARGIN,thumbborderwidth:MARGIN,allowfullscreen:false,transition:'slide',clicktransition:null,transitionduration:TRANSITION_DURATION,captions:true,startindex:0,loop:false,autoplay:false,stopautoplayontouch:true,keyboard:false,arrows:true,click:true,swipe:false,trackpad:false,shuffle:false,direction:'ltr',shadows:true,showcaption:true,navdir:'horizontal',navarrows:true,navtype:'thumbs'},KEYBOARD_OPTIONS={left:true,right:true,down:true,up:true,space:false,home:false,end:false};function noop(){}\nfunction minMaxLimit(value,min,max){return Math.max(isNaN(min)?-Infinity:min,Math.min(isNaN(max)?Infinity:max,value));}\nfunction readTransform(css,dir){return css.match(/ma/)&&css.match(/-?\\d+(?!d)/g)[css.match(/3d/)?(dir==='vertical'?13:12):(dir==='vertical'?5:4)]}\nfunction readPosition($el,dir){if(CSS3){return+readTransform($el.css('transform'),dir);}else{return+$el.css(dir==='vertical'?'top':'left').replace('px','');}}\nfunction getTranslate(pos,direction){var obj={};if(CSS3){switch(direction){case'vertical':obj.transform='translate3d(0, '+(pos)+'px,0)';break;case'list':break;default:obj.transform='translate3d('+(pos)+'px,0,0)';break;}}else{direction==='vertical'?obj.top=pos:obj.left=pos;}\nreturn obj;}\nfunction getDuration(time){return{'transition-duration':time+'ms'};}\nfunction unlessNaN(value,alternative){return isNaN(value)?alternative:value;}\nfunction numberFromMeasure(value,measure){return unlessNaN(+String(value).replace(measure||'px',''));}\nfunction numberFromPercent(value){return/%$/.test(value)?numberFromMeasure(value,'%'):undefined;}\nfunction numberFromWhatever(value,whole){return unlessNaN(numberFromPercent(value)/ 100*whole,numberFromMeasure(value));}\nfunction measureIsValid(value){return(!isNaN(numberFromMeasure(value))||!isNaN(numberFromMeasure(value,'%')))&&value;}\nfunction getPosByIndex(index,side,margin,baseIndex){return(index-(baseIndex||0))*(side+(margin||0));}\nfunction getIndexByPos(pos,side,margin,baseIndex){return-Math.round(pos /(side+(margin||0))-(baseIndex||0));}\nfunction bindTransitionEnd($el){var elData=$el.data();if(elData.tEnd)return;var el=$el[0],transitionEndEvent={WebkitTransition:'webkitTransitionEnd',MozTransition:'transitionend',OTransition:'oTransitionEnd otransitionend',msTransition:'MSTransitionEnd',transition:'transitionend'};addEvent(el,transitionEndEvent[Modernizr.prefixed('transition')],function(e){elData.tProp&&e.propertyName.match(elData.tProp)&&elData.onEndFn();});elData.tEnd=true;}\nfunction afterTransition($el,property,fn,time){var ok,elData=$el.data();if(elData){elData.onEndFn=function(){if(ok)return;ok=true;clearTimeout(elData.tT);fn();};elData.tProp=property;clearTimeout(elData.tT);elData.tT=setTimeout(function(){elData.onEndFn();},time*1.5);bindTransitionEnd($el);}}\nfunction stop($el,pos){var dir=$el.navdir||'horizontal';if($el.length){var elData=$el.data();if(CSS3){$el.css(getDuration(0));elData.onEndFn=noop;clearTimeout(elData.tT);}else{$el.stop();}\nvar lockedPos=getNumber(pos,function(){return readPosition($el,dir);});$el.css(getTranslate(lockedPos,dir));return lockedPos;}}\nfunction getNumber(){var number;for(var _i=0,_l=arguments.length;_i<_l;_i++){number=_i?arguments[_i]():arguments[_i];if(typeof number==='number'){break;}}\nreturn number;}\nfunction edgeResistance(pos,edge){return Math.round(pos+((edge-pos)/ 1.5));}\nfunction getProtocol(){getProtocol.p=getProtocol.p||(location.protocol==='https:'?'https://':'http://');return getProtocol.p;}\nfunction parseHref(href){var a=document.createElement('a');a.href=href;return a;}\nfunction findVideoId(href,forceVideo){if(typeof href!=='string')return href;href=parseHref(href);var id,type;if(href.host.match(/youtube\\.com/)&&href.search){id=href.search.split('v=')[1];if(id){var ampersandPosition=id.indexOf('&');if(ampersandPosition!==-1){id=id.substring(0,ampersandPosition);}\ntype='youtube';}}else if(href.host.match(/youtube\\.com|youtu\\.be|youtube-nocookie.com/)){id=href.pathname.replace(/^\\/(embed\\/|v\\/)?/,'').replace(/\\/.*/,'');type='youtube';}else if(href.host.match(/vimeo\\.com/)){type='vimeo';id=href.pathname.replace(/^\\/(video\\/)?/,'').replace(/\\/.*/,'');}\nif((!id||!type)&&forceVideo){id=href.href;type='custom';}\nreturn id?{id:id,type:type,s:href.search.replace(/^\\?/,''),p:getProtocol()}:false;}\nfunction getVideoThumbs(dataFrame,data,fotorama){var img,thumb,video=dataFrame.video;if(video.type==='youtube'){thumb=getProtocol()+'img.youtube.com/vi/'+video.id+'/default.jpg';img=thumb.replace(/\\/default.jpg$/,'/hqdefault.jpg');dataFrame.thumbsReady=true;}else if(video.type==='vimeo'){$.ajax({url:getProtocol()+'vimeo.com/api/oembed.json',data:{url:'https://vimeo.com/'+video.id},dataType:'jsonp',success:function(json){dataFrame.thumbsReady=true;updateData(data,{img:json[0].thumbnail_url,thumb:json[0].thumbnail_url},dataFrame.i,fotorama);}});}else{dataFrame.thumbsReady=true;}\nreturn{img:img,thumb:thumb}}\nfunction updateData(data,_dataFrame,i,fotorama){for(var _i=0,_l=data.length;_i<_l;_i++){var dataFrame=data[_i];if(dataFrame.i===i&&dataFrame.thumbsReady){var clear={videoReady:true};clear[STAGE_FRAME_KEY]=clear[NAV_THUMB_FRAME_KEY]=clear[NAV_DOT_FRAME_KEY]=false;fotorama.splice(_i,1,$.extend({},dataFrame,clear,_dataFrame));break;}}}\nfunction getDataFromHtml($el){var data=[];function getDataFromImg($img,imgData,checkVideo){var $child=$img.children('img').eq(0),_imgHref=$img.attr('href'),_imgSrc=$img.attr('src'),_thumbSrc=$child.attr('src'),_video=imgData.video,video=checkVideo?findVideoId(_imgHref,_video===true):false;if(video){_imgHref=false;}else{video=_video;}\ngetDimensions($img,$child,$.extend(imgData,{video:video,img:imgData.img||_imgHref||_imgSrc||_thumbSrc,thumb:imgData.thumb||_thumbSrc||_imgSrc||_imgHref}));}\nfunction getDimensions($img,$child,imgData){var separateThumbFLAG=imgData.thumb&&imgData.img!==imgData.thumb,width=numberFromMeasure(imgData.width||$img.attr('width')),height=numberFromMeasure(imgData.height||$img.attr('height'));$.extend(imgData,{width:width,height:height,thumbratio:getRatio(imgData.thumbratio||(numberFromMeasure(imgData.thumbwidth||($child&&$child.attr('width'))||separateThumbFLAG||width)/ numberFromMeasure(imgData.thumbheight||($child&&$child.attr('height'))||separateThumbFLAG||height)))});}\n$el.children().each(function(){var $this=$(this),dataFrame=optionsToLowerCase($.extend($this.data(),{id:$this.attr('id')}));if($this.is('a, img')){getDataFromImg($this,dataFrame,true);}else if(!$this.is(':empty')){getDimensions($this,null,$.extend(dataFrame,{html:this,_html:$this.html()}));}else return;data.push(dataFrame);});return data;}\nfunction isHidden(el){return el.offsetWidth===0&&el.offsetHeight===0;}\nfunction isDetached(el){return!$.contains(document.documentElement,el);}\nfunction waitFor(test,fn,timeout,i){if(!waitFor.i){waitFor.i=1;waitFor.ii=[true];}\ni=i||waitFor.i;if(typeof waitFor.ii[i]==='undefined'){waitFor.ii[i]=true;}\nif(test()){fn();}else{waitFor.ii[i]&&setTimeout(function(){waitFor.ii[i]&&waitFor(test,fn,timeout,i);},timeout||100);}\nreturn waitFor.i++;}\nwaitFor.stop=function(i){waitFor.ii[i]=false;};function fit($el,measuresToFit){var elData=$el.data(),measures=elData.measures;if(measures&&(!elData.l||elData.l.W!==measures.width||elData.l.H!==measures.height||elData.l.r!==measures.ratio||elData.l.w!==measuresToFit.w||elData.l.h!==measuresToFit.h)){var height=minMaxLimit(measuresToFit.h,0,measures.height),width=height*measures.ratio;UTIL.setRatio($el,width,height);elData.l={W:measures.width,H:measures.height,r:measures.ratio,w:measuresToFit.w,h:measuresToFit.h};}\nreturn true;}\nfunction setStyle($el,style){var el=$el[0];if(el.styleSheet){el.styleSheet.cssText=style;}else{$el.html(style);}}\nfunction findShadowEdge(pos,min,max,dir){return min===max?false:dir==='vertical'?(pos<=min?'top':pos>=max?'bottom':'top bottom'):(pos<=min?'left':pos>=max?'right':'left right');}\nfunction smartClick($el,fn,_options){_options=_options||{};$el.each(function(){var $this=$(this),thisData=$this.data(),startEvent;if(thisData.clickOn)return;thisData.clickOn=true;$.extend(touch($this,{onStart:function(e){startEvent=e;(_options.onStart||noop).call(this,e);},onMove:_options.onMove||noop,onTouchEnd:_options.onTouchEnd||noop,onEnd:function(result){if(result.moved)return;fn.call(this,startEvent);}}),{noMove:true});});}\nfunction div(classes,child){return'<div class=\"'+classes+'\">'+(child||'')+'</div>';}\nfunction cls(className){return\".\"+className;}\nfunction createVideoFrame(videoItem){var frame='<iframe src=\"'+videoItem.p+videoItem.type+'.com/embed/'+videoItem.id+'\" frameborder=\"0\" allowfullscreen></iframe>';return frame;}\nfunction shuffle(array){var l=array.length;while(l){var i=Math.floor(Math.random()*l--);var t=array[l];array[l]=array[i];array[i]=t;}\nreturn array;}\nfunction clone(array){return Object.prototype.toString.call(array)=='[object Array]'&&$.map(array,function(frame){return $.extend({},frame);});}\nfunction lockScroll($el,left,top){$el.scrollLeft(left||0).scrollTop(top||0);}\nfunction optionsToLowerCase(options){if(options){var opts={};$.each(options,function(key,value){opts[key.toLowerCase()]=value;});return opts;}}\nfunction getRatio(_ratio){if(!_ratio)return;var ratio=+_ratio;if(!isNaN(ratio)){return ratio;}else{ratio=_ratio.split('/');return+ratio[0]/+ratio[1]||undefined;}}\nfunction addEvent(el,e,fn,bool){if(!e)return;el.addEventListener?el.addEventListener(e,fn,!!bool):el.attachEvent('on'+e,fn);}\nfunction validateRestrictions(position,restriction){if(position>restriction.max){position=restriction.max;}else{if(position<restriction.min){position=restriction.min;}}\nreturn position;}\nfunction validateSlidePos(opt,navShaftTouchTail,guessIndex,offsetNav,$guessNavFrame,$navWrap,dir){var position,size,wrapSize;if(dir==='horizontal'){size=opt.thumbwidth;wrapSize=$navWrap.width();}else{size=opt.thumbheight;wrapSize=$navWrap.height();}\nif((size+opt.margin)*(guessIndex+1)>=(wrapSize-offsetNav)){if(dir==='horizontal'){position=-$guessNavFrame.position().left;}else{position=-$guessNavFrame.position().top;}}else{if((size+opt.margin)*(guessIndex)<=Math.abs(offsetNav)){if(dir==='horizontal'){position=-$guessNavFrame.position().left+wrapSize-(size+opt.margin);}else{position=-$guessNavFrame.position().top+wrapSize-(size+opt.margin);}}else{position=offsetNav;}}\nposition=validateRestrictions(position,navShaftTouchTail);return position||0;}\nfunction elIsDisabled(el){return!!el.getAttribute('disabled');}\nfunction disableAttr(FLAG,disable){if(disable){return{disabled:FLAG};}else{return{tabindex:FLAG*-1+'',disabled:FLAG};}}\nfunction addEnterUp(el,fn){addEvent(el,'keyup',function(e){elIsDisabled(el)||e.keyCode==13&&fn.call(el,e);});}\nfunction addFocus(el,fn){addEvent(el,'focus',el.onfocusin=function(e){fn.call(el,e);},true);}\nfunction stopEvent(e,stopPropagation){e.preventDefault?e.preventDefault():(e.returnValue=false);stopPropagation&&e.stopPropagation&&e.stopPropagation();}\nfunction getDirectionSign(forward){return forward?'>':'<';}\nvar UTIL=(function(){function setRatioClass($el,wh,ht){var rateImg=wh / ht;if(rateImg<=1){$el.parent().removeClass(horizontalImageClass);$el.parent().addClass(verticalImageClass);}else{$el.parent().removeClass(verticalImageClass);$el.parent().addClass(horizontalImageClass);}}\nfunction setThumbAttr($frame,value,searchAttr){var attr=searchAttr;if(!$frame.attr(attr)&&$frame.attr(attr)!==undefined){$frame.attr(attr,value);}\nif($frame.find(\"[\"+attr+\"]\").length){$frame.find(\"[\"+attr+\"]\").each(function(){$(this).attr(attr,value);});}}\nfunction isExpectedCaption(frameItem,isExpected,undefined){var expected=false,frameExpected;frameItem.showCaption===undefined||frameItem.showCaption===true?frameExpected=true:frameExpected=false;if(!isExpected){return false;}\nif(frameItem.caption&&frameExpected){expected=true;}\nreturn expected;}\nreturn{setRatio:setRatioClass,setThumbAttr:setThumbAttr,isExpectedCaption:isExpectedCaption};}(UTIL||{},jQuery));function slide($el,options){var elData=$el.data(),elPos=Math.round(options.pos),onEndFn=function(){if(elData&&elData.sliding){elData.sliding=false;}\n(options.onEnd||noop)();};if(typeof options.overPos!=='undefined'&&options.overPos!==options.pos){elPos=options.overPos;}\nvar translate=$.extend(getTranslate(elPos,options.direction),options.width&&{width:options.width},options.height&&{height:options.height});if(elData&&elData.sliding){elData.sliding=true;}\nif(CSS3){$el.css($.extend(getDuration(options.time),translate));if(options.time>10){afterTransition($el,'transform',onEndFn,options.time);}else{onEndFn();}}else{$el.stop().animate(translate,options.time,BEZIER,onEndFn);}}\nfunction fade($el1,$el2,$frames,options,fadeStack,chain){var chainedFLAG=typeof chain!=='undefined';if(!chainedFLAG){fadeStack.push(arguments);Array.prototype.push.call(arguments,fadeStack.length);if(fadeStack.length>1)return;}\n$el1=$el1||$($el1);$el2=$el2||$($el2);var _$el1=$el1[0],_$el2=$el2[0],crossfadeFLAG=options.method==='crossfade',onEndFn=function(){if(!onEndFn.done){onEndFn.done=true;var args=(chainedFLAG||fadeStack.shift())&&fadeStack.shift();args&&fade.apply(this,args);(options.onEnd||noop)(!!args);}},time=options.time /(chain||1);$frames.removeClass(fadeRearClass+' '+fadeFrontClass);$el1.stop().addClass(fadeRearClass);$el2.stop().addClass(fadeFrontClass);crossfadeFLAG&&_$el2&&$el1.fadeTo(0,0);$el1.fadeTo(crossfadeFLAG?time:0,1,crossfadeFLAG&&onEndFn);$el2.fadeTo(time,0,onEndFn);(_$el1&&crossfadeFLAG)||_$el2||onEndFn();}\nvar lastEvent,moveEventType,preventEvent,preventEventTimeout,dragDomEl;function extendEvent(e){var touch=(e.touches||[])[0]||e;e._x=touch.pageX||touch.originalEvent.pageX;e._y=touch.clientY||touch.originalEvent.clientY;e._now=$.now();}\nfunction touch($el,options){var el=$el[0],tail={},touchEnabledFLAG,startEvent,$target,controlTouch,touchFLAG,targetIsSelectFLAG,targetIsLinkFlag,isDisabledSwipe,tolerance,moved;function onStart(e){$target=$(e.target);tail.checked=targetIsSelectFLAG=targetIsLinkFlag=isDisabledSwipe=moved=false;if(touchEnabledFLAG||tail.flow||(e.touches&&e.touches.length>1)||e.which>1||(lastEvent&&lastEvent.type!==e.type&&preventEvent)||(targetIsSelectFLAG=options.select&&$target.is(options.select,el)))return targetIsSelectFLAG;touchFLAG=e.type==='touchstart';targetIsLinkFlag=$target.is('a, a *',el);isDisabledSwipe=$target.hasClass('disableSwipe');controlTouch=tail.control;tolerance=(tail.noMove||tail.noSwipe||controlTouch)?16:!tail.snap?4:0;extendEvent(e);startEvent=lastEvent=e;moveEventType=e.type.replace(/down|start/,'move').replace(/Down/,'Move');(options.onStart||noop).call(el,e,{control:controlTouch,$target:$target});touchEnabledFLAG=tail.flow=true;if(!isDisabledSwipe&&(!touchFLAG||tail.go))stopEvent(e);}\nfunction onMove(e){if((e.touches&&e.touches.length>1)||(MS_POINTER&&!e.isPrimary)||moveEventType!==e.type||!touchEnabledFLAG){touchEnabledFLAG&&onEnd();(options.onTouchEnd||noop)();return;}\nisDisabledSwipe=$(e.target).hasClass('disableSwipe');if(isDisabledSwipe){return;}\nextendEvent(e);var xDiff=Math.abs(e._x-startEvent._x),yDiff=Math.abs(e._y-startEvent._y),xyDiff=xDiff-yDiff,xWin=(tail.go||tail.x||xyDiff>=0)&&!tail.noSwipe,yWin=xyDiff<0;if(touchFLAG&&!tail.checked){if(touchEnabledFLAG=xWin){stopEvent(e);}}else{stopEvent(e);if(movedEnough(xDiff,yDiff)){(options.onMove||noop).call(el,e,{touch:touchFLAG});}}\nif(!moved&&movedEnough(xDiff,yDiff)&&Math.sqrt(Math.pow(xDiff,2)+Math.pow(yDiff,2))>tolerance){moved=true;}\ntail.checked=tail.checked||xWin||yWin;}\nfunction movedEnough(xDiff,yDiff){return xDiff>yDiff&&xDiff>1.5;}\nfunction onEnd(e){(options.onTouchEnd||noop)();var _touchEnabledFLAG=touchEnabledFLAG;tail.control=touchEnabledFLAG=false;if(_touchEnabledFLAG){tail.flow=false;}\nif(!_touchEnabledFLAG||(targetIsLinkFlag&&!tail.checked))return;e&&stopEvent(e);preventEvent=true;clearTimeout(preventEventTimeout);preventEventTimeout=setTimeout(function(){preventEvent=false;},1000);(options.onEnd||noop).call(el,{moved:moved,$target:$target,control:controlTouch,touch:touchFLAG,startEvent:startEvent,aborted:!e||e.type==='MSPointerCancel'});}\nfunction onOtherStart(){if(tail.flow)return;tail.flow=true;}\nfunction onOtherEnd(){if(!tail.flow)return;tail.flow=false;}\nif(MS_POINTER){addEvent(el,'MSPointerDown',onStart);addEvent(document,'MSPointerMove',onMove);addEvent(document,'MSPointerCancel',onEnd);addEvent(document,'MSPointerUp',onEnd);}else{addEvent(el,'touchstart',onStart);addEvent(el,'touchmove',onMove);addEvent(el,'touchend',onEnd);addEvent(document,'touchstart',onOtherStart,true);addEvent(document,'touchend',onOtherEnd);addEvent(document,'touchcancel',onOtherEnd);$WINDOW.on('scroll',onOtherEnd);$el.on('mousedown',onStart);$DOCUMENT.on('mousemove',onMove).on('mouseup',onEnd);}\nif(Modernizr.touch){dragDomEl='a';}else{dragDomEl='div';}\n$el.on('click',dragDomEl,function(e){tail.checked&&stopEvent(e);});return tail;}\nfunction moveOnTouch($el,options){var el=$el[0],elData=$el.data(),tail={},startCoo,coo,startElPos,moveElPos,edge,moveTrack,startTime,endTime,min,max,snap,dir,slowFLAG,controlFLAG,moved,tracked;function startTracking(e,noStop){tracked=true;startCoo=coo=(dir==='vertical')?e._y:e._x;startTime=e._now;moveTrack=[[startTime,startCoo]];startElPos=moveElPos=tail.noMove||noStop?0:stop($el,(options.getPos||noop)());(options.onStart||noop).call(el,e);}\nfunction onStart(e,result){min=tail.min;max=tail.max;snap=tail.snap,dir=tail.direction||'horizontal',$el.navdir=dir;slowFLAG=e.altKey;tracked=moved=false;controlFLAG=result.control;if(!controlFLAG&&!elData.sliding){startTracking(e);}}\nfunction onMove(e,result){if(!tail.noSwipe){if(!tracked){startTracking(e);}\ncoo=(dir==='vertical')?e._y:e._x;moveTrack.push([e._now,coo]);moveElPos=startElPos-(startCoo-coo);edge=findShadowEdge(moveElPos,min,max,dir);if(moveElPos<=min){moveElPos=edgeResistance(moveElPos,min);}else if(moveElPos>=max){moveElPos=edgeResistance(moveElPos,max);}\nif(!tail.noMove){$el.css(getTranslate(moveElPos,dir));if(!moved){moved=true;result.touch||MS_POINTER||$el.addClass(grabbingClass);}\n(options.onMove||noop).call(el,e,{pos:moveElPos,edge:edge});}}}\nfunction onEnd(result){if(tail.noSwipe&&result.moved)return;if(!tracked){startTracking(result.startEvent,true);}\nresult.touch||MS_POINTER||$el.removeClass(grabbingClass);endTime=$.now();var _backTimeIdeal=endTime-TOUCH_TIMEOUT,_backTime,_timeDiff,_timeDiffLast,backTime=null,backCoo,virtualPos,limitPos,newPos,overPos,time=TRANSITION_DURATION,speed,friction=options.friction;for(var _i=moveTrack.length-1;_i>=0;_i--){_backTime=moveTrack[_i][0];_timeDiff=Math.abs(_backTime-_backTimeIdeal);if(backTime===null||_timeDiff<_timeDiffLast){backTime=_backTime;backCoo=moveTrack[_i][1];}else if(backTime===_backTimeIdeal||_timeDiff>_timeDiffLast){break;}\n_timeDiffLast=_timeDiff;}\nnewPos=minMaxLimit(moveElPos,min,max);var cooDiff=backCoo-coo,forwardFLAG=cooDiff>=0,timeDiff=endTime-backTime,longTouchFLAG=timeDiff>TOUCH_TIMEOUT,swipeFLAG=!longTouchFLAG&&moveElPos!==startElPos&&newPos===moveElPos;if(snap){newPos=minMaxLimit(Math[swipeFLAG?(forwardFLAG?'floor':'ceil'):'round'](moveElPos / snap)*snap,min,max);min=max=newPos;}\nif(swipeFLAG&&(snap||newPos===moveElPos)){speed=-(cooDiff / timeDiff);time*=minMaxLimit(Math.abs(speed),options.timeLow,options.timeHigh);virtualPos=Math.round(moveElPos+speed*time / friction);if(!snap){newPos=virtualPos;}\nif(!forwardFLAG&&virtualPos>max||forwardFLAG&&virtualPos<min){limitPos=forwardFLAG?min:max;overPos=virtualPos-limitPos;if(!snap){newPos=limitPos;}\noverPos=minMaxLimit(newPos+overPos*.03,limitPos-50,limitPos+50);time=Math.abs((moveElPos-overPos)/(speed / friction));}}\ntime*=slowFLAG?10:1;(options.onEnd||noop).call(el,$.extend(result,{moved:result.moved||longTouchFLAG&&snap,pos:moveElPos,newPos:newPos,overPos:overPos,time:time,dir:dir}));}\ntail=$.extend(touch(options.$wrap,$.extend({},options,{onStart:onStart,onMove:onMove,onEnd:onEnd})),tail);return tail;}\nfunction wheel($el,options){var el=$el[0],lockFLAG,lastDirection,lastNow,tail={prevent:{}};addEvent(el,WHEEL,function(e){var yDelta=e.wheelDeltaY||-1*e.deltaY||0,xDelta=e.wheelDeltaX||-1*e.deltaX||0,xWin=Math.abs(xDelta)&&!Math.abs(yDelta),direction=getDirectionSign(xDelta<0),sameDirection=lastDirection===direction,now=$.now(),tooFast=now-lastNow<TOUCH_TIMEOUT;lastDirection=direction;lastNow=now;if(!xWin||!tail.ok||tail.prevent[direction]&&!lockFLAG){return;}else{stopEvent(e,true);if(lockFLAG&&sameDirection&&tooFast){return;}}\nif(options.shift){lockFLAG=true;clearTimeout(tail.t);tail.t=setTimeout(function(){lockFLAG=false;},SCROLL_LOCK_TIMEOUT);}\n(options.onEnd||noop)(e,options.shift?direction:xDelta);});return tail;}\njQuery.Fotorama=function($fotorama,opts){$HTML=$('html');$BODY=$('body');var that=this,stamp=$.now(),stampClass=_fotoramaClass+stamp,fotorama=$fotorama[0],data,dataFrameCount=1,fotoramaData=$fotorama.data(),size,$style=$('<style></style>'),$anchor=$(div(hiddenClass)),$wrap=$fotorama.find(cls(wrapClass)),$stage=$wrap.find(cls(stageClass)),stage=$stage[0],$stageShaft=$fotorama.find(cls(stageShaftClass)),$stageFrame=$(),$arrPrev=$fotorama.find(cls(arrPrevClass)),$arrNext=$fotorama.find(cls(arrNextClass)),$arrs=$fotorama.find(cls(arrClass)),$navWrap=$fotorama.find(cls(navWrapClass)),$nav=$navWrap.find(cls(navClass)),$navShaft=$nav.find(cls(navShaftClass)),$navFrame,$navDotFrame=$(),$navThumbFrame=$(),stageShaftData=$stageShaft.data(),navShaftData=$navShaft.data(),$thumbBorder=$fotorama.find(cls(thumbBorderClass)),$thumbArrLeft=$fotorama.find(cls(thumbArrLeft)),$thumbArrRight=$fotorama.find(cls(thumbArrRight)),$fullscreenIcon=$fotorama.find(cls(fullscreenIconClass)),fullscreenIcon=$fullscreenIcon[0],$videoPlay=$(div(videoPlayClass)),$videoClose=$fotorama.find(cls(videoCloseClass)),videoClose=$videoClose[0],$spinner=$fotorama.find(cls(fotoramaSpinnerClass)),$videoPlaying,activeIndex=false,activeFrame,activeIndexes,repositionIndex,dirtyIndex,lastActiveIndex,prevIndex,nextIndex,nextAutoplayIndex,startIndex,o_loop,o_nav,o_navThumbs,o_navTop,o_allowFullScreen,o_nativeFullScreen,o_fade,o_thumbSide,o_thumbSide2,o_transitionDuration,o_transition,o_shadows,o_rtl,o_keyboard,lastOptions={},measures={},measuresSetFLAG,stageShaftTouchTail={},stageWheelTail={},navShaftTouchTail={},navWheelTail={},scrollTop,scrollLeft,showedFLAG,pausedAutoplayFLAG,stoppedAutoplayFLAG,toDeactivate={},toDetach={},measuresStash,touchedFLAG,hoverFLAG,navFrameKey,stageLeft=0,fadeStack=[];$wrap[STAGE_FRAME_KEY]=$('<div class=\"'+stageFrameClass+'\"></div>');$wrap[NAV_THUMB_FRAME_KEY]=$($.Fotorama.jst.thumb());$wrap[NAV_DOT_FRAME_KEY]=$($.Fotorama.jst.dots());toDeactivate[STAGE_FRAME_KEY]=[];toDeactivate[NAV_THUMB_FRAME_KEY]=[];toDeactivate[NAV_DOT_FRAME_KEY]=[];toDetach[STAGE_FRAME_KEY]={};$wrap.addClass(CSS3?wrapCss3Class:wrapCss2Class);fotoramaData.fotorama=this;function checkForVideo(){$.each(data,function(i,dataFrame){if(!dataFrame.i){dataFrame.i=dataFrameCount++;var video=findVideoId(dataFrame.video,true);if(video){var thumbs={};dataFrame.video=video;if(!dataFrame.img&&!dataFrame.thumb){thumbs=getVideoThumbs(dataFrame,data,that);}else{dataFrame.thumbsReady=true;}\nupdateData(data,{img:thumbs.img,thumb:thumbs.thumb},dataFrame.i,that);}}});}\nfunction isVideo(){return $((that.activeFrame||{}).$stageFrame||{}).hasClass('fotorama-video-container');}\nfunction allowKey(key){return o_keyboard[key];}\nfunction setStagePosition(){if($stage!==undefined){if(opts.navdir=='vertical'){var padding=opts.thumbwidth+opts.thumbmargin;$stage.css('left',padding);$arrNext.css('right',padding);$fullscreenIcon.css('right',padding);$wrap.css('width',$wrap.css('width')+padding);$stageShaft.css('max-width',$wrap.width()-padding);}else{$stage.css('left','');$arrNext.css('right','');$fullscreenIcon.css('right','');$wrap.css('width',$wrap.css('width')+padding);$stageShaft.css('max-width','');}}}\nfunction bindGlobalEvents(FLAG){var keydownCommon='keydown.'+_fotoramaClass,localStamp=_fotoramaClass+stamp,keydownLocal='keydown.'+localStamp,keyupLocal='keyup.'+localStamp,resizeLocal='resize.'+localStamp+' '+'orientationchange.'+localStamp,showParams;if(FLAG){$DOCUMENT.on(keydownLocal,function(e){var catched,index;if($videoPlaying&&e.keyCode===27){catched=true;unloadVideo($videoPlaying,true,true);}else if(that.fullScreen||(opts.keyboard&&!that.index)){if(e.keyCode===27){catched=true;that.cancelFullScreen();}else if((e.shiftKey&&e.keyCode===32&&allowKey('space'))||(!e.altKey&&!e.metaKey&&e.keyCode===37&&allowKey('left'))||(e.keyCode===38&&allowKey('up')&&$(':focus').attr('data-gallery-role'))){that.longPress.progress();index='<';}else if((e.keyCode===32&&allowKey('space'))||(!e.altKey&&!e.metaKey&&e.keyCode===39&&allowKey('right'))||(e.keyCode===40&&allowKey('down')&&$(':focus').attr('data-gallery-role'))){that.longPress.progress();index='>';}else if(e.keyCode===36&&allowKey('home')){that.longPress.progress();index='<<';}else if(e.keyCode===35&&allowKey('end')){that.longPress.progress();index='>>';}}\n(catched||index)&&stopEvent(e);showParams={index:index,slow:e.altKey,user:true};index&&(that.longPress.inProgress?that.showWhileLongPress(showParams):that.show(showParams));});if(FLAG){$DOCUMENT.on(keyupLocal,function(e){if(that.longPress.inProgress){that.showEndLongPress({user:true});}\nthat.longPress.reset();});}\nif(!that.index){$DOCUMENT.off(keydownCommon).on(keydownCommon,'textarea, input, select',function(e){!$BODY.hasClass(_fullscreenClass)&&e.stopPropagation();});}\n$WINDOW.on(resizeLocal,that.resize);}else{$DOCUMENT.off(keydownLocal);$WINDOW.off(resizeLocal);}}\nfunction appendElements(FLAG){if(FLAG===appendElements.f)return;if(FLAG){$fotorama.addClass(_fotoramaClass+' '+stampClass).before($anchor).before($style);addInstance(that);}else{$anchor.detach();$style.detach();$fotorama.html(fotoramaData.urtext).removeClass(stampClass);hideInstance(that);}\nbindGlobalEvents(FLAG);appendElements.f=FLAG;}\nfunction setData(){data=that.data=data||clone(opts.data)||getDataFromHtml($fotorama);size=that.size=data.length;ready.ok&&opts.shuffle&&shuffle(data);checkForVideo();activeIndex=limitIndex(activeIndex);size&&appendElements(true);}\nfunction stageNoMove(){var _noMove=size<2||$videoPlaying;stageShaftTouchTail.noMove=_noMove||o_fade;stageShaftTouchTail.noSwipe=_noMove||!opts.swipe;!o_transition&&$stageShaft.toggleClass(grabClass,!opts.click&&!stageShaftTouchTail.noMove&&!stageShaftTouchTail.noSwipe);MS_POINTER&&$wrap.toggleClass(wrapPanYClass,!stageShaftTouchTail.noSwipe);}\nfunction setAutoplayInterval(interval){if(interval===true)interval='';opts.autoplay=Math.max(+interval||AUTOPLAY_INTERVAL,o_transitionDuration*1.5);}\nfunction updateThumbArrow(opt){if(opt.navarrows&&opt.nav==='thumbs'){$thumbArrLeft.show();$thumbArrRight.show();}else{$thumbArrLeft.hide();$thumbArrRight.hide();}}\nfunction getThumbsInSlide($el,opts){return Math.floor($wrap.width()/(opts.thumbwidth+opts.thumbmargin));}\nfunction setOptions(){if(!opts.nav||opts.nav==='dots'){opts.navdir='horizontal'}\nthat.options=opts=optionsToLowerCase(opts);thumbsPerSlide=getThumbsInSlide($wrap,opts);o_fade=(opts.transition==='crossfade'||opts.transition==='dissolve');o_loop=opts.loop&&(size>2||(o_fade&&(!o_transition||o_transition!=='slide')));o_transitionDuration=+opts.transitionduration||TRANSITION_DURATION;o_rtl=opts.direction==='rtl';o_keyboard=$.extend({},opts.keyboard&&KEYBOARD_OPTIONS,opts.keyboard);updateThumbArrow(opts);var classes={add:[],remove:[]};function addOrRemoveClass(FLAG,value){classes[FLAG?'add':'remove'].push(value);}\nif(size>1){o_nav=opts.nav;o_navTop=opts.navposition==='top';classes.remove.push(selectClass);$arrs.toggle(!!opts.arrows);}else{o_nav=false;$arrs.hide();}\narrsUpdate();stageWheelUpdate();thumbArrUpdate();if(opts.autoplay)setAutoplayInterval(opts.autoplay);o_thumbSide=numberFromMeasure(opts.thumbwidth)||THUMB_SIZE;o_thumbSide2=numberFromMeasure(opts.thumbheight)||THUMB_SIZE;stageWheelTail.ok=navWheelTail.ok=opts.trackpad&&!SLOW;stageNoMove();extendMeasures(opts,[measures]);o_navThumbs=o_nav==='thumbs';if($navWrap.filter(':hidden')&&!!o_nav){$navWrap.show();}\nif(o_navThumbs){frameDraw(size,'navThumb');$navFrame=$navThumbFrame;navFrameKey=NAV_THUMB_FRAME_KEY;setStyle($style,$.Fotorama.jst.style({w:o_thumbSide,h:o_thumbSide2,b:opts.thumbborderwidth,m:opts.thumbmargin,s:stamp,q:!COMPAT}));$nav.addClass(navThumbsClass).removeClass(navDotsClass);}else if(o_nav==='dots'){frameDraw(size,'navDot');$navFrame=$navDotFrame;navFrameKey=NAV_DOT_FRAME_KEY;$nav.addClass(navDotsClass).removeClass(navThumbsClass);}else{$navWrap.hide();o_nav=false;$nav.removeClass(navThumbsClass+' '+navDotsClass);}\nif(o_nav){if(o_navTop){$navWrap.insertBefore($stage);}else{$navWrap.insertAfter($stage);}\nframeAppend.nav=false;frameAppend($navFrame,$navShaft,'nav');}\no_allowFullScreen=opts.allowfullscreen;if(o_allowFullScreen){$fullscreenIcon.prependTo($stage);o_nativeFullScreen=FULLSCREEN&&o_allowFullScreen==='native';}else{$fullscreenIcon.detach();o_nativeFullScreen=false;}\naddOrRemoveClass(o_fade,wrapFadeClass);addOrRemoveClass(!o_fade,wrapSlideClass);addOrRemoveClass(!opts.captions,wrapNoCaptionsClass);addOrRemoveClass(o_rtl,wrapRtlClass);addOrRemoveClass(opts.arrows,wrapToggleArrowsClass);o_shadows=opts.shadows&&!SLOW;addOrRemoveClass(!o_shadows,wrapNoShadowsClass);$wrap.addClass(classes.add.join(' ')).removeClass(classes.remove.join(' '));lastOptions=$.extend({},opts);setStagePosition();}\nfunction normalizeIndex(index){return index<0?(size+(index%size))%size:index>=size?index%size:index;}\nfunction limitIndex(index){return minMaxLimit(index,0,size-1);}\nfunction edgeIndex(index){return o_loop?normalizeIndex(index):limitIndex(index);}\nfunction getPrevIndex(index){return index>0||o_loop?index-1:false;}\nfunction getNextIndex(index){return index<size-1||o_loop?index+1:false;}\nfunction setStageShaftMinmaxAndSnap(){stageShaftTouchTail.min=o_loop?-Infinity:-getPosByIndex(size-1,measures.w,opts.margin,repositionIndex);stageShaftTouchTail.max=o_loop?Infinity:-getPosByIndex(0,measures.w,opts.margin,repositionIndex);stageShaftTouchTail.snap=measures.w+opts.margin;}\nfunction setNavShaftMinMax(){var isVerticalDir=(opts.navdir==='vertical');var param=isVerticalDir?$navShaft.height():$navShaft.width();var mainParam=isVerticalDir?measures.h:measures.nw;navShaftTouchTail.min=Math.min(0,mainParam-param);navShaftTouchTail.max=0;navShaftTouchTail.direction=opts.navdir;$navShaft.toggleClass(grabClass,!(navShaftTouchTail.noMove=navShaftTouchTail.min===navShaftTouchTail.max));}\nfunction eachIndex(indexes,type,fn){if(typeof indexes==='number'){indexes=new Array(indexes);var rangeFLAG=true;}\nreturn $.each(indexes,function(i,index){if(rangeFLAG)index=i;if(typeof index==='number'){var dataFrame=data[normalizeIndex(index)];if(dataFrame){var key='$'+type+'Frame',$frame=dataFrame[key];fn.call(this,i,index,dataFrame,$frame,key,$frame&&$frame.data());}}});}\nfunction setMeasures(width,height,ratio,index){if(!measuresSetFLAG||(measuresSetFLAG==='*'&&index===startIndex)){width=measureIsValid(opts.width)||measureIsValid(width)||WIDTH;height=measureIsValid(opts.height)||measureIsValid(height)||HEIGHT;that.resize({width:width,ratio:opts.ratio||ratio||width / height},0,index!==startIndex&&'*');}}\nfunction loadImg(indexes,type,specialMeasures,again){eachIndex(indexes,type,function(i,index,dataFrame,$frame,key,frameData){if(!$frame)return;var fullFLAG=that.fullScreen&&!frameData.$full&&type==='stage';if(frameData.$img&&!again&&!fullFLAG)return;var img=new Image(),$img=$(img),imgData=$img.data();frameData[fullFLAG?'$full':'$img']=$img;var srcKey=type==='stage'?(fullFLAG?'full':'img'):'thumb',src=dataFrame[srcKey],dummy=fullFLAG?dataFrame['img']:dataFrame[type==='stage'?'thumb':'img'];if(type==='navThumb')$frame=frameData.$wrap;function triggerTriggerEvent(event){var _index=normalizeIndex(index);triggerEvent(event,{index:_index,src:src,frame:data[_index]});}\nfunction error(){$img.remove();$.Fotorama.cache[src]='error';if((!dataFrame.html||type!=='stage')&&dummy&&dummy!==src){dataFrame[srcKey]=src=dummy;frameData.$full=null;loadImg([index],type,specialMeasures,true);}else{if(src&&!dataFrame.html&&!fullFLAG){$frame.trigger('f:error').removeClass(loadingClass).addClass(errorClass);triggerTriggerEvent('error');}else if(type==='stage'){$frame.trigger('f:load').removeClass(loadingClass+' '+errorClass).addClass(loadedClass);triggerTriggerEvent('load');setMeasures();}\nframeData.state='error';if(size>1&&data[index]===dataFrame&&!dataFrame.html&&!dataFrame.deleted&&!dataFrame.video&&!fullFLAG){dataFrame.deleted=true;that.splice(index,1);}}}\nfunction loaded(){$.Fotorama.measures[src]=imgData.measures=$.Fotorama.measures[src]||{width:img.width,height:img.height,ratio:img.width / img.height};setMeasures(imgData.measures.width,imgData.measures.height,imgData.measures.ratio,index);$img.off('load error').addClass(''+(fullFLAG?imgFullClass:imgClass)).attr('aria-hidden','false').prependTo($frame);if($frame.hasClass(stageFrameClass)&&!$frame.hasClass(videoContainerClass)){$frame.attr(\"href\",$img.attr(\"src\"));}\nfit($img,($.isFunction(specialMeasures)?specialMeasures():specialMeasures)||measures);$.Fotorama.cache[src]=frameData.state='loaded';setTimeout(function(){$frame.trigger('f:load').removeClass(loadingClass+' '+errorClass).addClass(loadedClass+' '+(fullFLAG?loadedFullClass:loadedImgClass));if(type==='stage'){triggerTriggerEvent('load');}else if(dataFrame.thumbratio===AUTO||!dataFrame.thumbratio&&opts.thumbratio===AUTO){dataFrame.thumbratio=imgData.measures.ratio;reset();}},0);}\nif(!src){error();return;}\nfunction waitAndLoad(){var _i=10;waitFor(function(){return!touchedFLAG||!_i--&&!SLOW;},function(){loaded();});}\nif(!$.Fotorama.cache[src]){$.Fotorama.cache[src]='*';$img.on('load',waitAndLoad).on('error',error);}else{(function justWait(){if($.Fotorama.cache[src]==='error'){error();}else if($.Fotorama.cache[src]==='loaded'){setTimeout(waitAndLoad,0);}else{setTimeout(justWait,100);}})();}\nframeData.state='';img.src=src;if(frameData.data.caption){img.alt=frameData.data.caption||\"\";}\nif(frameData.data.full){$(img).data('original',frameData.data.full);}\nif(UTIL.isExpectedCaption(dataFrame,opts.showcaption)){$(img).attr('aria-labelledby',dataFrame.labelledby);}});}\nfunction updateFotoramaState(){var $frame=activeFrame[STAGE_FRAME_KEY];if($frame&&!$frame.data().state){$spinner.addClass(spinnerShowClass);$frame.on('f:load f:error',function(){$frame.off('f:load f:error');$spinner.removeClass(spinnerShowClass);});}}\nfunction addNavFrameEvents(frame){addEnterUp(frame,onNavFrameClick);addFocus(frame,function(){setTimeout(function(){lockScroll($nav);},0);slideNavShaft({time:o_transitionDuration,guessIndex:$(this).data().eq,minMax:navShaftTouchTail});});}\nfunction frameDraw(indexes,type){eachIndex(indexes,type,function(i,index,dataFrame,$frame,key,frameData){if($frame)return;$frame=dataFrame[key]=$wrap[key].clone();frameData=$frame.data();frameData.data=dataFrame;var frame=$frame[0],labelledbyValue=\"labelledby\"+$.now();if(type==='stage'){if(dataFrame.html){$('<div class=\"'+htmlClass+'\"></div>').append(dataFrame._html?$(dataFrame.html).removeAttr('id').html(dataFrame._html):dataFrame.html).appendTo($frame);}\nif(dataFrame.id){labelledbyValue=dataFrame.id||labelledbyValue;}\ndataFrame.labelledby=labelledbyValue;if(UTIL.isExpectedCaption(dataFrame,opts.showcaption)){$($.Fotorama.jst.frameCaption({caption:dataFrame.caption,labelledby:labelledbyValue})).appendTo($frame);}\ndataFrame.video&&$frame.addClass(stageFrameVideoClass).append($videoPlay.clone());addFocus(frame,function(e){setTimeout(function(){lockScroll($stage);},0);clickToShow({index:frameData.eq,user:true},e);});$stageFrame=$stageFrame.add($frame);}else if(type==='navDot'){addNavFrameEvents(frame);$navDotFrame=$navDotFrame.add($frame);}else if(type==='navThumb'){addNavFrameEvents(frame);frameData.$wrap=$frame.children(':first');$navThumbFrame=$navThumbFrame.add($frame);if(dataFrame.video){frameData.$wrap.append($videoPlay.clone());}}});}\nfunction callFit($img,measuresToFit){return $img&&$img.length&&fit($img,measuresToFit);}\nfunction stageFramePosition(indexes){eachIndex(indexes,'stage',function(i,index,dataFrame,$frame,key,frameData){if(!$frame)return;var normalizedIndex=normalizeIndex(index);frameData.eq=normalizedIndex;toDetach[STAGE_FRAME_KEY][normalizedIndex]=$frame.css($.extend({left:o_fade?0:getPosByIndex(index,measures.w,opts.margin,repositionIndex)},o_fade&&getDuration(0)));if(isDetached($frame[0])){$frame.appendTo($stageShaft);unloadVideo(dataFrame.$video);}\ncallFit(frameData.$img,measures);callFit(frameData.$full,measures);if($frame.hasClass(stageFrameClass)&&!($frame.attr('aria-hidden')===\"false\"&&$frame.hasClass(activeClass))){$frame.attr('aria-hidden','true');}});}\nfunction thumbsDraw(pos,loadFLAG){var leftLimit,rightLimit,exceedLimit;if(o_nav!=='thumbs'||isNaN(pos))return;leftLimit=-pos;rightLimit=-pos+measures.nw;if(opts.navdir==='vertical'){pos=pos-opts.thumbheight;rightLimit=-pos+measures.h;}\n$navThumbFrame.each(function(){var $this=$(this),thisData=$this.data(),eq=thisData.eq,getSpecialMeasures=function(){return{h:o_thumbSide2,w:thisData.w}},specialMeasures=getSpecialMeasures(),exceedLimit=opts.navdir==='vertical'?thisData.t>rightLimit:thisData.l>rightLimit;specialMeasures.w=thisData.w;if((opts.navdir!=='vertical'&&thisData.l+thisData.w<leftLimit)||exceedLimit||callFit(thisData.$img,specialMeasures))return;loadFLAG&&loadImg([eq],'navThumb',getSpecialMeasures);});}\nfunction frameAppend($frames,$shaft,type){if(!frameAppend[type]){var thumbsFLAG=type==='nav'&&o_navThumbs,left=0,top=0;$shaft.append($frames.filter(function(){var actual,$this=$(this),frameData=$this.data();for(var _i=0,_l=data.length;_i<_l;_i++){if(frameData.data===data[_i]){actual=true;frameData.eq=_i;break;}}\nreturn actual||$this.remove()&&false;}).sort(function(a,b){return $(a).data().eq-$(b).data().eq;}).each(function(){var $this=$(this),frameData=$this.data();UTIL.setThumbAttr($this,frameData.data.caption,\"aria-label\");}).each(function(){if(!thumbsFLAG)return;var $this=$(this),frameData=$this.data(),thumbwidth=Math.round(o_thumbSide2*frameData.data.thumbratio)||o_thumbSide,thumbheight=Math.round(o_thumbSide / frameData.data.thumbratio)||o_thumbSide2;frameData.t=top;frameData.h=thumbheight;frameData.l=left;frameData.w=thumbwidth;$this.css({width:thumbwidth});top+=thumbheight+opts.thumbmargin;left+=thumbwidth+opts.thumbmargin;}));frameAppend[type]=true;}}\nfunction getDirection(x){return x-stageLeft>measures.w / 3;}\nfunction disableDirrection(i){return!o_loop&&(!(activeIndex+i)||!(activeIndex-size+i))&&!$videoPlaying;}\nfunction arrsUpdate(){var disablePrev=disableDirrection(0),disableNext=disableDirrection(1);$arrPrev.toggleClass(arrDisabledClass,disablePrev).attr(disableAttr(disablePrev,false));$arrNext.toggleClass(arrDisabledClass,disableNext).attr(disableAttr(disableNext,false));}\nfunction thumbArrUpdate(){var isLeftDisable=false,isRightDisable=false;if(opts.navtype==='thumbs'&&!opts.loop){(activeIndex==0)?isLeftDisable=true:isLeftDisable=false;(activeIndex==opts.data.length-1)?isRightDisable=true:isRightDisable=false;}\nif(opts.navtype==='slides'){var pos=readPosition($navShaft,opts.navdir);pos>=navShaftTouchTail.max?isLeftDisable=true:isLeftDisable=false;pos<=Math.round(navShaftTouchTail.min)?isRightDisable=true:isRightDisable=false;}\n$thumbArrLeft.toggleClass(arrDisabledClass,isLeftDisable).attr(disableAttr(isLeftDisable,true));$thumbArrRight.toggleClass(arrDisabledClass,isRightDisable).attr(disableAttr(isRightDisable,true));}\nfunction stageWheelUpdate(){if(stageWheelTail.ok){stageWheelTail.prevent={'<':disableDirrection(0),'>':disableDirrection(1)};}}\nfunction getNavFrameBounds($navFrame){var navFrameData=$navFrame.data(),left,top,width,height;if(o_navThumbs){left=navFrameData.l;top=navFrameData.t;width=navFrameData.w;height=navFrameData.h;}else{left=$navFrame.position().left;width=$navFrame.width();}\nvar horizontalBounds={c:left+width / 2,min:-left+opts.thumbmargin*10,max:-left+measures.w-width-opts.thumbmargin*10};var verticalBounds={c:top+height / 2,min:-top+opts.thumbmargin*10,max:-top+measures.h-height-opts.thumbmargin*10};return opts.navdir==='vertical'?verticalBounds:horizontalBounds;}\nfunction slideThumbBorder(time){var navFrameData=activeFrame[navFrameKey].data();slide($thumbBorder,{time:time*1.2,pos:(opts.navdir==='vertical'?navFrameData.t:navFrameData.l),width:navFrameData.w,height:navFrameData.h,direction:opts.navdir});}\nfunction slideNavShaft(options){var $guessNavFrame=data[options.guessIndex][navFrameKey],typeOfAnimation=opts.navtype;var overflowFLAG,time,minMax,boundTop,boundLeft,l,pos,x;if($guessNavFrame){if(typeOfAnimation==='thumbs'){overflowFLAG=navShaftTouchTail.min!==navShaftTouchTail.max;minMax=options.minMax||overflowFLAG&&getNavFrameBounds(activeFrame[navFrameKey]);boundTop=overflowFLAG&&(options.keep&&slideNavShaft.t?slideNavShaft.l:minMaxLimit((options.coo||measures.nw / 2)-getNavFrameBounds($guessNavFrame).c,minMax.min,minMax.max));boundLeft=overflowFLAG&&(options.keep&&slideNavShaft.l?slideNavShaft.l:minMaxLimit((options.coo||measures.nw / 2)-getNavFrameBounds($guessNavFrame).c,minMax.min,minMax.max));l=(opts.navdir==='vertical'?boundTop:boundLeft);pos=overflowFLAG&&minMaxLimit(l,navShaftTouchTail.min,navShaftTouchTail.max)||0;time=options.time*1.1;slide($navShaft,{time:time,pos:pos,direction:opts.navdir,onEnd:function(){thumbsDraw(pos,true);thumbArrUpdate();}});setShadow($nav,findShadowEdge(pos,navShaftTouchTail.min,navShaftTouchTail.max,opts.navdir));slideNavShaft.l=l;}else{x=readPosition($navShaft,opts.navdir);time=options.time*1.11;pos=validateSlidePos(opts,navShaftTouchTail,options.guessIndex,x,$guessNavFrame,$navWrap,opts.navdir);slide($navShaft,{time:time,pos:pos,direction:opts.navdir,onEnd:function(){thumbsDraw(pos,true);thumbArrUpdate();}});setShadow($nav,findShadowEdge(pos,navShaftTouchTail.min,navShaftTouchTail.max,opts.navdir));}}}\nfunction navUpdate(){deactivateFrames(navFrameKey);toDeactivate[navFrameKey].push(activeFrame[navFrameKey].addClass(activeClass).attr('data-active',true));}\nfunction deactivateFrames(key){var _toDeactivate=toDeactivate[key];while(_toDeactivate.length){_toDeactivate.shift().removeClass(activeClass).attr('data-active',false);}}\nfunction detachFrames(key){var _toDetach=toDetach[key];$.each(activeIndexes,function(i,index){delete _toDetach[normalizeIndex(index)];});$.each(_toDetach,function(index,$frame){delete _toDetach[index];$frame.detach();});}\nfunction stageShaftReposition(skipOnEnd){repositionIndex=dirtyIndex=activeIndex;var $frame=activeFrame[STAGE_FRAME_KEY];if($frame){deactivateFrames(STAGE_FRAME_KEY);toDeactivate[STAGE_FRAME_KEY].push($frame.addClass(activeClass).attr('data-active',true));if($frame.hasClass(stageFrameClass)){$frame.attr('aria-hidden','false');}\nskipOnEnd||that.showStage.onEnd(true);stop($stageShaft,0,true);detachFrames(STAGE_FRAME_KEY);stageFramePosition(activeIndexes);setStageShaftMinmaxAndSnap();setNavShaftMinMax();addEnterUp($stageShaft[0],function(){if(!$fotorama.hasClass(fullscreenClass)){that.requestFullScreen();$fullscreenIcon.focus();}});}}\nfunction extendMeasures(options,measuresArray){if(!options)return;$.each(measuresArray,function(i,measures){if(!measures)return;$.extend(measures,{width:options.width||measures.width,height:options.height,minwidth:options.minwidth,maxwidth:options.maxwidth,minheight:options.minheight,maxheight:options.maxheight,ratio:getRatio(options.ratio)})});}\nfunction triggerEvent(event,extra){$fotorama.trigger(_fotoramaClass+':'+event,[that,extra]);}\nfunction onTouchStart(){clearTimeout(onTouchEnd.t);touchedFLAG=1;if(opts.stopautoplayontouch){that.stopAutoplay();}else{pausedAutoplayFLAG=true;}}\nfunction onTouchEnd(){if(!touchedFLAG)return;if(!opts.stopautoplayontouch){releaseAutoplay();changeAutoplay();}\nonTouchEnd.t=setTimeout(function(){touchedFLAG=0;},TRANSITION_DURATION+TOUCH_TIMEOUT);}\nfunction releaseAutoplay(){pausedAutoplayFLAG=!!($videoPlaying||stoppedAutoplayFLAG);}\nfunction changeAutoplay(){clearTimeout(changeAutoplay.t);waitFor.stop(changeAutoplay.w);if(!opts.autoplay||pausedAutoplayFLAG){if(that.autoplay){that.autoplay=false;triggerEvent('stopautoplay');}\nreturn;}\nif(!that.autoplay){that.autoplay=true;triggerEvent('startautoplay');}\nvar _activeIndex=activeIndex;var frameData=activeFrame[STAGE_FRAME_KEY].data();changeAutoplay.w=waitFor(function(){return frameData.state||_activeIndex!==activeIndex;},function(){changeAutoplay.t=setTimeout(function(){if(pausedAutoplayFLAG||_activeIndex!==activeIndex)return;var _nextAutoplayIndex=nextAutoplayIndex,nextFrameData=data[_nextAutoplayIndex][STAGE_FRAME_KEY].data();changeAutoplay.w=waitFor(function(){return nextFrameData.state||_nextAutoplayIndex!==nextAutoplayIndex;},function(){if(pausedAutoplayFLAG||_nextAutoplayIndex!==nextAutoplayIndex)return;that.show(o_loop?getDirectionSign(!o_rtl):nextAutoplayIndex);});},opts.autoplay);});}\nthat.startAutoplay=function(interval){if(that.autoplay)return this;pausedAutoplayFLAG=stoppedAutoplayFLAG=false;setAutoplayInterval(interval||opts.autoplay);changeAutoplay();return this;};that.stopAutoplay=function(){if(that.autoplay){pausedAutoplayFLAG=stoppedAutoplayFLAG=true;changeAutoplay();}\nreturn this;};that.showSlide=function(slideDir){var currentPosition=readPosition($navShaft,opts.navdir),pos,time=500*1.1,size=opts.navdir==='horizontal'?opts.thumbwidth:opts.thumbheight,onEnd=function(){thumbArrUpdate();};if(slideDir==='next'){pos=currentPosition-(size+opts.margin)*thumbsPerSlide;}\nif(slideDir==='prev'){pos=currentPosition+(size+opts.margin)*thumbsPerSlide;}\npos=validateRestrictions(pos,navShaftTouchTail);thumbsDraw(pos,true);slide($navShaft,{time:time,pos:pos,direction:opts.navdir,onEnd:onEnd});};that.showWhileLongPress=function(options){if(that.longPress.singlePressInProgress){return;}\nvar index=calcActiveIndex(options);calcGlobalIndexes(index);var time=calcTime(options)/ 50;var _activeFrame=activeFrame;that.activeFrame=activeFrame=data[activeIndex];var silent=_activeFrame===activeFrame&&!options.user;that.showNav(silent,options,time);return this;};that.showEndLongPress=function(options){if(that.longPress.singlePressInProgress){return;}\nvar index=calcActiveIndex(options);calcGlobalIndexes(index);var time=calcTime(options)/ 50;var _activeFrame=activeFrame;that.activeFrame=activeFrame=data[activeIndex];var silent=_activeFrame===activeFrame&&!options.user;that.showStage(silent,options,time);showedFLAG=typeof lastActiveIndex!=='undefined'&&lastActiveIndex!==activeIndex;lastActiveIndex=activeIndex;return this;};function calcActiveIndex(options){var index;if(typeof options!=='object'){index=options;options={};}else{index=options.index;}\nindex=index==='>'?dirtyIndex+1:index==='<'?dirtyIndex-1:index==='<<'?0:index==='>>'?size-1:index;index=isNaN(index)?undefined:index;index=typeof index==='undefined'?activeIndex||0:index;return index;}\nfunction calcGlobalIndexes(index){that.activeIndex=activeIndex=edgeIndex(index);prevIndex=getPrevIndex(activeIndex);nextIndex=getNextIndex(activeIndex);nextAutoplayIndex=normalizeIndex(activeIndex+(o_rtl?-1:1));activeIndexes=[activeIndex,prevIndex,nextIndex];dirtyIndex=o_loop?index:activeIndex;}\nfunction calcTime(options){var diffIndex=Math.abs(lastActiveIndex-dirtyIndex),time=getNumber(options.time,function(){return Math.min(o_transitionDuration*(1+(diffIndex-1)/ 12),o_transitionDuration*2);});if(options.slow){time*=10;}\nreturn time;}\nthat.showStage=function(silent,options,time,e){if(e!==undefined&&e.target.tagName=='IFRAME'){return;}\nunloadVideo($videoPlaying,activeFrame.i!==data[normalizeIndex(repositionIndex)].i);frameDraw(activeIndexes,'stage');stageFramePosition(SLOW?[dirtyIndex]:[dirtyIndex,getPrevIndex(dirtyIndex),getNextIndex(dirtyIndex)]);updateTouchTails('go',true);silent||triggerEvent('show',{user:options.user,time:time});pausedAutoplayFLAG=true;var overPos=options.overPos;var onEnd=that.showStage.onEnd=function(skipReposition){if(onEnd.ok)return;onEnd.ok=true;skipReposition||stageShaftReposition(true);if(!silent){triggerEvent('showend',{user:options.user});}\nif(!skipReposition&&o_transition&&o_transition!==opts.transition){that.setOptions({transition:o_transition});o_transition=false;return;}\nupdateFotoramaState();loadImg(activeIndexes,'stage');updateTouchTails('go',false);stageWheelUpdate();stageCursor();releaseAutoplay();changeAutoplay();if(that.fullScreen){activeFrame[STAGE_FRAME_KEY].find('.'+imgFullClass).attr('aria-hidden',false);activeFrame[STAGE_FRAME_KEY].find('.'+imgClass).attr('aria-hidden',true)}else{activeFrame[STAGE_FRAME_KEY].find('.'+imgFullClass).attr('aria-hidden',true);activeFrame[STAGE_FRAME_KEY].find('.'+imgClass).attr('aria-hidden',false)}};if(!o_fade){slide($stageShaft,{pos:-getPosByIndex(dirtyIndex,measures.w,opts.margin,repositionIndex),overPos:overPos,time:time,onEnd:onEnd});}else{var $activeFrame=activeFrame[STAGE_FRAME_KEY],$prevActiveFrame=data[lastActiveIndex]&&activeIndex!==lastActiveIndex?data[lastActiveIndex][STAGE_FRAME_KEY]:null;fade($activeFrame,$prevActiveFrame,$stageFrame,{time:time,method:opts.transition,onEnd:onEnd},fadeStack);}\narrsUpdate();};that.showNav=function(silent,options,time){thumbArrUpdate();if(o_nav){navUpdate();var guessIndex=limitIndex(activeIndex+minMaxLimit(dirtyIndex-lastActiveIndex,-1,1));slideNavShaft({time:time,coo:guessIndex!==activeIndex&&options.coo,guessIndex:typeof options.coo!=='undefined'?guessIndex:activeIndex,keep:silent});if(o_navThumbs)slideThumbBorder(time);}};that.show=function(options,e){that.longPress.singlePressInProgress=true;var index=calcActiveIndex(options);calcGlobalIndexes(index);var time=calcTime(options);var _activeFrame=activeFrame;that.activeFrame=activeFrame=data[activeIndex];var silent=_activeFrame===activeFrame&&!options.user;that.showStage(silent,options,time,e);that.showNav(silent,options,time);showedFLAG=typeof lastActiveIndex!=='undefined'&&lastActiveIndex!==activeIndex;lastActiveIndex=activeIndex;that.longPress.singlePressInProgress=false;return this;};that.requestFullScreen=function(){if(o_allowFullScreen&&!that.fullScreen){if(isVideo()){return;}\nscrollTop=$WINDOW.scrollTop();scrollLeft=$WINDOW.scrollLeft();lockScroll($WINDOW);updateTouchTails('x',true);measuresStash=$.extend({},measures);$fotorama.addClass(fullscreenClass).appendTo($BODY.addClass(_fullscreenClass));$HTML.addClass(_fullscreenClass);unloadVideo($videoPlaying,true,true);that.fullScreen=true;if(o_nativeFullScreen){fullScreenApi.request(fotorama);}\nloadImg(activeIndexes,'stage');updateFotoramaState();triggerEvent('fullscreenenter');that.resize();if(!('ontouchstart'in window)){$fullscreenIcon.focus();}}\nreturn this;};function cancelFullScreen(){if(that.fullScreen){that.fullScreen=false;if(FULLSCREEN){fullScreenApi.cancel(fotorama);}\n$BODY.removeClass(_fullscreenClass);$HTML.removeClass(_fullscreenClass);$fotorama.removeClass(fullscreenClass).insertAfter($anchor);measures=$.extend({},measuresStash);unloadVideo($videoPlaying,true,true);updateTouchTails('x',false);that.resize();loadImg(activeIndexes,'stage');lockScroll($WINDOW,scrollLeft,scrollTop);triggerEvent('fullscreenexit');}}\nthat.cancelFullScreen=function(){if(o_nativeFullScreen&&fullScreenApi.is()){fullScreenApi.cancel(document);}else{cancelFullScreen();}\nreturn this;};that.toggleFullScreen=function(){return that[(that.fullScreen?'cancel':'request')+'FullScreen']();};that.resize=function(options){if(!data)return this;var time=arguments[1]||0,setFLAG=arguments[2];thumbsPerSlide=getThumbsInSlide($wrap,opts);extendMeasures(!that.fullScreen?optionsToLowerCase(options):{width:$(window).width(),maxwidth:null,minwidth:null,height:$(window).height(),maxheight:null,minheight:null},[measures,setFLAG||that.fullScreen||opts]);var width=measures.width,height=measures.height,ratio=measures.ratio,windowHeight=$WINDOW.height()-(o_nav?$nav.height():0);if(measureIsValid(width)){$wrap.css({width:''});$stage.css({width:''});$stageShaft.css({width:''});$nav.css({width:''});$wrap.css({minWidth:measures.minwidth||0,maxWidth:measures.maxwidth||MAX_WIDTH});if(o_nav==='dots'){$navWrap.hide();}\nwidth=measures.W=measures.w=$wrap.width();measures.nw=o_nav&&numberFromWhatever(opts.navwidth,width)||width;$stageShaft.css({width:measures.w,marginLeft:(measures.W-measures.w)/ 2});height=numberFromWhatever(height,windowHeight);height=height||(ratio&&width / ratio);if(height){width=Math.round(width);height=measures.h=Math.round(minMaxLimit(height,numberFromWhatever(measures.minheight,windowHeight),numberFromWhatever(measures.maxheight,windowHeight)));$stage.css({'width':width,'height':height});if(opts.navdir==='vertical'&&!that.fullscreen){$nav.width(opts.thumbwidth+opts.thumbmargin*2);}\nif(opts.navdir==='horizontal'&&!that.fullscreen){$nav.height(opts.thumbheight+opts.thumbmargin*2);}\nif(o_nav==='dots'){$nav.width(width).height('auto');$navWrap.show();}\nif(opts.navdir==='vertical'&&that.fullScreen){$stage.css('height',$WINDOW.height());}\nif(opts.navdir==='horizontal'&&that.fullScreen){$stage.css('height',$WINDOW.height()-$nav.height());}\nif(o_nav){switch(opts.navdir){case'vertical':$navWrap.removeClass(navShafthorizontalClass);$navWrap.removeClass(navShaftListClass);$navWrap.addClass(navShaftVerticalClass);$nav.stop().animate({height:measures.h,width:opts.thumbwidth},time);break;case'list':$navWrap.removeClass(navShaftVerticalClass);$navWrap.removeClass(navShafthorizontalClass);$navWrap.addClass(navShaftListClass);break;default:$navWrap.removeClass(navShaftVerticalClass);$navWrap.removeClass(navShaftListClass);$navWrap.addClass(navShafthorizontalClass);$nav.stop().animate({width:measures.nw},time);break;}\nstageShaftReposition();slideNavShaft({guessIndex:activeIndex,time:time,keep:true});if(o_navThumbs&&frameAppend.nav)slideThumbBorder(time);}\nmeasuresSetFLAG=setFLAG||true;ready.ok=true;ready();}}\nstageLeft=$stage.offset().left;setStagePosition();return this;};that.setOptions=function(options){$.extend(opts,options);reset();return this;};that.shuffle=function(){data&&shuffle(data)&&reset();return this;};function setShadow($el,edge){if(o_shadows){$el.removeClass(shadowsLeftClass+' '+shadowsRightClass);$el.removeClass(shadowsTopClass+' '+shadowsBottomClass);edge&&!$videoPlaying&&$el.addClass(edge.replace(/^|\\s/g,' '+shadowsClass+'--'));}}\nthat.longPress={threshold:1,count:0,thumbSlideTime:20,progress:function(){if(!this.inProgress){this.count++;this.inProgress=this.count>this.threshold;}},end:function(){if(this.inProgress){this.isEnded=true}},reset:function(){this.count=0;this.inProgress=false;this.isEnded=false;}};that.destroy=function(){that.cancelFullScreen();that.stopAutoplay();data=that.data=null;appendElements();activeIndexes=[];detachFrames(STAGE_FRAME_KEY);reset.ok=false;return this;};that.playVideo=function(){var dataFrame=activeFrame,video=dataFrame.video,_activeIndex=activeIndex;if(typeof video==='object'&&dataFrame.videoReady){o_nativeFullScreen&&that.fullScreen&&that.cancelFullScreen();waitFor(function(){return!fullScreenApi.is()||_activeIndex!==activeIndex;},function(){if(_activeIndex===activeIndex){dataFrame.$video=dataFrame.$video||$(div(videoClass)).append(createVideoFrame(video));dataFrame.$video.appendTo(dataFrame[STAGE_FRAME_KEY]);$wrap.addClass(wrapVideoClass);$videoPlaying=dataFrame.$video;stageNoMove();$arrs.blur();$fullscreenIcon.blur();triggerEvent('loadvideo');}});}\nreturn this;};that.stopVideo=function(){unloadVideo($videoPlaying,true,true);return this;};that.spliceByIndex=function(index,newImgObj){newImgObj.i=index+1;newImgObj.img&&$.ajax({url:newImgObj.img,type:'HEAD',success:function(){data.splice(index,1,newImgObj);reset();}});};function unloadVideo($video,unloadActiveFLAG,releaseAutoplayFLAG){if(unloadActiveFLAG){$wrap.removeClass(wrapVideoClass);$videoPlaying=false;stageNoMove();}\nif($video&&$video!==$videoPlaying){$video.remove();triggerEvent('unloadvideo');}\nif(releaseAutoplayFLAG){releaseAutoplay();changeAutoplay();}}\nfunction toggleControlsClass(FLAG){$wrap.toggleClass(wrapNoControlsClass,FLAG);}\nfunction stageCursor(e){if(stageShaftTouchTail.flow)return;var x=e?e.pageX:stageCursor.x,pointerFLAG=x&&!disableDirrection(getDirection(x))&&opts.click;if(stageCursor.p!==pointerFLAG&&$stage.toggleClass(pointerClass,pointerFLAG)){stageCursor.p=pointerFLAG;stageCursor.x=x;}}\n$stage.on('mousemove',stageCursor);function clickToShow(showOptions,e){clearTimeout(clickToShow.t);if(opts.clicktransition&&opts.clicktransition!==opts.transition){setTimeout(function(){var _o_transition=opts.transition;that.setOptions({transition:opts.clicktransition});o_transition=_o_transition;clickToShow.t=setTimeout(function(){that.show(showOptions);},10);},0);}else{that.show(showOptions,e);}}\nfunction onStageTap(e,toggleControlsFLAG){var target=e.target,$target=$(target);if($target.hasClass(videoPlayClass)){that.playVideo();}else if(target===fullscreenIcon){that.toggleFullScreen();}else if($videoPlaying){target===videoClose&&unloadVideo($videoPlaying,true,true);}else if(!$fotorama.hasClass(fullscreenClass)){that.requestFullScreen();}}\nfunction updateTouchTails(key,value){stageShaftTouchTail[key]=navShaftTouchTail[key]=value;}\nstageShaftTouchTail=moveOnTouch($stageShaft,{onStart:onTouchStart,onMove:function(e,result){setShadow($stage,result.edge);},onTouchEnd:onTouchEnd,onEnd:function(result){var toggleControlsFLAG;setShadow($stage);toggleControlsFLAG=(MS_POINTER&&!hoverFLAG||result.touch)&&opts.arrows;if((result.moved||(toggleControlsFLAG&&result.pos!==result.newPos&&!result.control))&&result.$target[0]!==$fullscreenIcon[0]){var index=getIndexByPos(result.newPos,measures.w,opts.margin,repositionIndex);that.show({index:index,time:o_fade?o_transitionDuration:result.time,overPos:result.overPos,user:true});}else if(!result.aborted&&!result.control){onStageTap(result.startEvent,toggleControlsFLAG);}},timeLow:1,timeHigh:1,friction:2,select:'.'+selectClass+', .'+selectClass+' *',$wrap:$stage,direction:'horizontal'});navShaftTouchTail=moveOnTouch($navShaft,{onStart:onTouchStart,onMove:function(e,result){setShadow($nav,result.edge);},onTouchEnd:onTouchEnd,onEnd:function(result){function onEnd(){slideNavShaft.l=result.newPos;releaseAutoplay();changeAutoplay();thumbsDraw(result.newPos,true);thumbArrUpdate();}\nif(!result.moved){var target=result.$target.closest('.'+navFrameClass,$navShaft)[0];target&&onNavFrameClick.call(target,result.startEvent);}else if(result.pos!==result.newPos){pausedAutoplayFLAG=true;slide($navShaft,{time:result.time,pos:result.newPos,overPos:result.overPos,direction:opts.navdir,onEnd:onEnd});thumbsDraw(result.newPos);o_shadows&&setShadow($nav,findShadowEdge(result.newPos,navShaftTouchTail.min,navShaftTouchTail.max,result.dir));}else{onEnd();}},timeLow:.5,timeHigh:2,friction:5,$wrap:$nav,direction:opts.navdir});stageWheelTail=wheel($stage,{shift:true,onEnd:function(e,direction){onTouchStart();onTouchEnd();that.show({index:direction,slow:e.altKey})}});navWheelTail=wheel($nav,{onEnd:function(e,direction){onTouchStart();onTouchEnd();var newPos=stop($navShaft)+direction*.25;$navShaft.css(getTranslate(minMaxLimit(newPos,navShaftTouchTail.min,navShaftTouchTail.max),opts.navdir));o_shadows&&setShadow($nav,findShadowEdge(newPos,navShaftTouchTail.min,navShaftTouchTail.max,opts.navdir));navWheelTail.prevent={'<':newPos>=navShaftTouchTail.max,'>':newPos<=navShaftTouchTail.min};clearTimeout(navWheelTail.t);navWheelTail.t=setTimeout(function(){slideNavShaft.l=newPos;thumbsDraw(newPos,true)},TOUCH_TIMEOUT);thumbsDraw(newPos);}});$wrap.hover(function(){setTimeout(function(){if(touchedFLAG)return;toggleControlsClass(!(hoverFLAG=true));},0);},function(){if(!hoverFLAG)return;toggleControlsClass(!(hoverFLAG=false));});function onNavFrameClick(e){var index=$(this).data().eq;if(opts.navtype==='thumbs'){clickToShow({index:index,slow:e.altKey,user:true,coo:e._x-$nav.offset().left});}else{clickToShow({index:index,slow:e.altKey,user:true});}}\nfunction onArrClick(e){clickToShow({index:$arrs.index(this)?'>':'<',slow:e.altKey,user:true});}\nsmartClick($arrs,function(e){stopEvent(e);onArrClick.call(this,e);},{onStart:function(){onTouchStart();stageShaftTouchTail.control=true;},onTouchEnd:onTouchEnd});smartClick($thumbArrLeft,function(e){stopEvent(e);if(opts.navtype==='thumbs'){that.show('<');}else{that.showSlide('prev')}});smartClick($thumbArrRight,function(e){stopEvent(e);if(opts.navtype==='thumbs'){that.show('>');}else{that.showSlide('next')}});function addFocusOnControls(el){addFocus(el,function(){setTimeout(function(){lockScroll($stage);},0);toggleControlsClass(false);});}\n$arrs.each(function(){addEnterUp(this,function(e){onArrClick.call(this,e);});addFocusOnControls(this);});addEnterUp(fullscreenIcon,function(){if($fotorama.hasClass(fullscreenClass)){that.cancelFullScreen();$stageShaft.focus();}else{that.requestFullScreen();$fullscreenIcon.focus();}});addFocusOnControls(fullscreenIcon);function reset(){setData();setOptions();if(!reset.i){reset.i=true;var _startindex=opts.startindex;activeIndex=repositionIndex=dirtyIndex=lastActiveIndex=startIndex=edgeIndex(_startindex)||0;}\nif(size){if(changeToRtl())return;if($videoPlaying){unloadVideo($videoPlaying,true);}\nactiveIndexes=[];if(!isVideo()){detachFrames(STAGE_FRAME_KEY);}\nreset.ok=true;that.show({index:activeIndex,time:0});that.resize();}else{that.destroy();}}\nfunction changeToRtl(){if(!changeToRtl.f===o_rtl){changeToRtl.f=o_rtl;activeIndex=size-1-activeIndex;that.reverse();return true;}}\n$.each('load push pop shift unshift reverse sort splice'.split(' '),function(i,method){that[method]=function(){data=data||[];if(method!=='load'){Array.prototype[method].apply(data,arguments);}else if(arguments[0]&&typeof arguments[0]==='object'&&arguments[0].length){data=clone(arguments[0]);}\nreset();return that;}});function ready(){if(ready.ok){ready.ok=false;triggerEvent('ready');}}\nreset();};$.fn.fotorama=function(opts){return this.each(function(){var that=this,$fotorama=$(this),fotoramaData=$fotorama.data(),fotorama=fotoramaData.fotorama;if(!fotorama){waitFor(function(){return!isHidden(that);},function(){fotoramaData.urtext=$fotorama.html();new $.Fotorama($fotorama,$.extend({},OPTIONS,window.fotoramaDefaults,opts,fotoramaData));});}else{fotorama.setOptions(opts,true);}});};$.Fotorama.instances=[];function calculateIndexes(){$.each($.Fotorama.instances,function(index,instance){instance.index=index;});}\nfunction addInstance(instance){$.Fotorama.instances.push(instance);calculateIndexes();}\nfunction hideInstance(instance){$.Fotorama.instances.splice(instance.index,1);calculateIndexes();}\n$.Fotorama.cache={};$.Fotorama.measures={};$=$||{};$.Fotorama=$.Fotorama||{};$.Fotorama.jst=$.Fotorama.jst||{};$.Fotorama.jst.dots=function(v){var __t,__p='',__e=_.escape;__p+='<div class=\"fotorama__nav__frame fotorama__nav__frame--dot\" tabindex=\"0\" role=\"button\" data-gallery-role=\"nav-frame\" data-nav-type=\"thumb\" aria-label>\\r\\n    <div class=\"fotorama__dot\"></div>\\r\\n</div>';return __p};$.Fotorama.jst.frameCaption=function(v){var __t,__p='',__e=_.escape;__p+='<div class=\"fotorama__caption\" aria-hidden=\"true\">\\r\\n    <div class=\"fotorama__caption__wrap\" id=\"'+\n((__t=(v.labelledby))==null?'':__t)+'\">'+\n((__t=(v.caption))==null?'':__t)+'</div>\\r\\n</div>\\r\\n';return __p};$.Fotorama.jst.style=function(v){var __t,__p='',__e=_.escape;__p+='.fotorama'+\n((__t=(v.s))==null?'':__t)+' .fotorama__nav--thumbs .fotorama__nav__frame{\\r\\npadding:'+\n((__t=(v.m))==null?'':__t)+'px;\\r\\nheight:'+\n((__t=(v.h))==null?'':__t)+'px}\\r\\n.fotorama'+\n((__t=(v.s))==null?'':__t)+' .fotorama__thumb-border{\\r\\nheight:'+\n((__t=(v.h))==null?'':__t)+'px;\\r\\nborder-width:'+\n((__t=(v.b))==null?'':__t)+'px;\\r\\nmargin-top:'+\n((__t=(v.m))==null?'':__t)+'px}';return __p};$.Fotorama.jst.thumb=function(v){var __t,__p='',__e=_.escape;__p+='<div class=\"fotorama__nav__frame fotorama__nav__frame--thumb\" tabindex=\"0\" role=\"button\" data-gallery-role=\"nav-frame\" data-nav-type=\"thumb\" aria-label>\\r\\n    <div class=\"fotorama__thumb\">\\r\\n    </div>\\r\\n</div>';return __p};})(window,document,location,typeof jQuery!=='undefined'&&jQuery);","Magento_Paypal/js/order-review.min.js":"define(['jquery','Magento_Ui/js/modal/alert','jquery-ui-modules/widget','mage/translate','mage/mage','mage/validation'],function($,alert){'use strict';$.widget('mage.orderReview',{options:{orderReviewSubmitSelector:'#review-button',shippingSelector:'#shipping_method',shippingSubmitFormSelector:null,updateOrderSelector:'#update-order',billingAsShippingSelector:'#billing\\\\:as_shipping',updateContainerSelector:'#details-reload',waitLoadingContainer:'#review-please-wait',shippingMethodContainer:'#shipping-method-container',agreementSelector:'div.checkout-agreements input',isAjax:false,shippingMethodUpdateUrl:null,updateOrderSubmitUrl:null,canEditShippingMethod:false},triggerPropertyChange:true,isShippingSubmitForm:false,_create:function(){var isDisable;if(this.options.isAjax){this._submitOrder=this._ajaxSubmitOrder;}\nthis.element.on('click',this.options.orderReviewSubmitSelector,$.proxy(this._submitOrder,this)).on('click',this.options.billingAsShippingSelector,$.proxy(this._shippingTobilling,this)).on('change',this.options.shippingSelector,$.proxy(this._submitUpdateOrder,this,this.options.updateOrderSubmitUrl,this.options.updateContainerSelector)).find(this.options.updateOrderSelector).on('click',$.proxy(this._updateOrderHandler,this)).end();this._shippingTobilling();if($(this.options.shippingSubmitFormSelector).length&&this.options.canEditShippingMethod){this.isShippingSubmitForm=true;$(this.options.shippingSubmitFormSelector).on('change',this.options.shippingSelector,$.proxy(this._submitUpdateOrder,this,$(this.options.shippingSubmitFormSelector).prop('action'),this.options.updateContainerSelector));this._updateOrderSubmit(!$(this.options.shippingSubmitFormSelector).find(this.options.shippingSelector).val());}else{isDisable=this.isShippingSubmitForm&&this.element.find(this.options.shippingSelector).val();this.element.on('input propertychange',':input[name]',$.proxy(this._updateOrderSubmit,this,isDisable,this._onShippingChange)).find('select').not(this.options.shippingSelector).on('change',this._propertyChange);this._updateOrderSubmit(isDisable);}},_ajaxBeforeSend:function(){this.element.find(this.options.waitLoadingContainer).show();},_ajaxComplete:function(){this.element.find(this.options.waitLoadingContainer).hide();},_propertyChange:function(){$(this).trigger('propertychange');},_updateOrderHandler:function(){$(this.options.shippingSelector).trigger('change');},_submitOrder:function(){if(this._validateForm()){this.element.find(this.options.updateOrderSelector).fadeTo(0,0.5).end().find(this.options.waitLoadingContainer).show().end().trigger('submit');this._updateOrderSubmit(true);}},_ajaxSubmitOrder:function(){if(this.element.find(this.options.waitLoadingContainer).is(':visible')){return false;}\n$.ajax({url:this.element.prop('action'),type:'post',context:this,data:{isAjax:1},dataType:'json',beforeSend:this._ajaxBeforeSend,complete:this._ajaxComplete,success:function(response){var msg;if(typeof response==='object'&&!$.isEmptyObject(response)){if(response['error_messages']){this._ajaxComplete();msg=response['error_messages'];if(msg){if(Array.isArray(msg)){msg=msg.join('\\n');}}\nalert({content:msg});return false;}\nif(response.redirect){$.mage.redirect(response.redirect);return false;}else if(response.success){$.mage.redirect(this.options.successUrl);return false;}\nthis._ajaxComplete();alert({content:$.mage.__('Sorry, something went wrong.')});}},error:function(){alert({content:$.mage.__('Sorry, something went wrong. Please try again later.')});this._ajaxComplete();}});},_validateForm:function(){this.element.find(this.options.agreementSelector).off('change').on('change',$.proxy(function(){var isValid=this._validateForm();this._updateOrderSubmit(!isValid);},this));if(this.element.data('mageValidation')){return this.element.validation().valid();}\nreturn true;},_updateOrderSubmit:function(shouldDisable,fn){this._toggleButton(this.options.orderReviewSubmitSelector,shouldDisable);if(typeof fn==='function'){fn.call(this);}},_toggleButton:function(button,disable){$(button).prop({'disabled':disable}).toggleClass('no-checkout',disable).fadeTo(0,disable?0.5:1);},_shippingTobilling:function(e){var isChecked,opacity;if(this.options.shippingSubmitFormSelector){return false;}\nisChecked=$(this.options.billingAsShippingSelector).is(':checked');opacity=isChecked?0.5:1;if(isChecked){this.element.validation('clearError',':input[name^=\"billing\"]');}\n$(':input[name^=\"shipping\"]',this.element).each($.proxy(function(key,value){var fieldObj=$(value.id.replace('shipping:','#billing\\\\:'));if(isChecked){fieldObj=fieldObj.val($(value).val());}\nfieldObj.prop({'readonly':isChecked,'disabled':isChecked}).fadeTo(0,opacity);if(fieldObj.is('select')){this.triggerPropertyChange=false;fieldObj.trigger('change');}},this));if(isChecked||e){this._updateOrderSubmit(true);}\nthis.triggerPropertyChange=true;},_submitUpdateOrder:function(url,resultId){var isChecked,formData,callBackResponseHandler,shippingMethod;if(this.element.find(this.options.waitLoadingContainer).is(':visible')){return false;}\nisChecked=$(this.options.billingAsShippingSelector).is(':checked');formData=null;callBackResponseHandler=null;let val=$(this.options.shippingSelector).val();shippingMethod=val.trim();this._shippingTobilling();if(url&&resultId&&shippingMethod){this._updateOrderSubmit(true);this._toggleButton(this.options.updateOrderSelector,true);if(this.isShippingSubmitForm){formData=$(this.options.shippingSubmitFormSelector).serialize()+'&isAjax=true';callBackResponseHandler=function(response){$(resultId).html(response);this._updateOrderSubmit(false);this._ajaxComplete();};}else{formData=this.element.serialize()+'&isAjax=true';callBackResponseHandler=function(response){$(resultId).html(response);this._ajaxShippingUpdate(shippingMethod);};}\nif(isChecked){$(this.options.shippingSelect).prop('disabled',true);}\n$.ajax({url:url,type:'post',context:this,beforeSend:this._ajaxBeforeSend,data:formData,success:callBackResponseHandler});}},_ajaxShippingUpdate:function(shippingMethod){$.ajax({url:this.options.shippingMethodUpdateUrl,data:{isAjax:true,'shipping_method':shippingMethod},type:'post',context:this,success:function(response){$(this.options.shippingMethodContainer).parent().html(response);this._toggleButton(this.options.updateOrderSelector,false);this._updateOrderSubmit(false);},complete:this._ajaxComplete});},_onShippingChange:function(){let val=$(this.options.shippingSelector).val();if(this.triggerPropertyChange&&val.trim()){this.element.find(this.options.shippingSelector).hide().end().find(this.options.shippingSelector+'_update').show();}}});return $.mage.orderReview;});","Magento_Paypal/js/paypal-checkout.min.js":"define(['jquery','Magento_Ui/js/modal/confirm','Magento_Customer/js/customer-data','jquery-ui-modules/widget','mage/mage'],function($,confirm,customerData){'use strict';$.widget('mage.paypalCheckout',{options:{originalForm:'form:not(#product_addtocart_form_from_popup):has(input[name=\"product\"][value=%1])',productId:'input[type=\"hidden\"][name=\"product\"]',ppCheckoutSelector:'[data-role=pp-checkout-url]',ppCheckoutInput:'<input type=\"hidden\" data-role=\"pp-checkout-url\" name=\"return_url\" value=\"\"/>'},_create:function(){this.element.on('click','[data-action=\"checkout-form-submit\"]',$.proxy(function(e){var $target=$(e.target),returnUrl=$target.data('checkout-url'),productId=$target.closest('form').find(this.options.productId).val(),originalForm=this.options.originalForm.replace('%1',productId),self=this,billingAgreement=customerData.get('paypal-billing-agreement');e.preventDefault();if(billingAgreement().askToCreate){confirm({content:billingAgreement().confirmMessage,actions:{confirm:function(){returnUrl=billingAgreement().confirmUrl;self._redirect(returnUrl,originalForm);},cancel:function(event){if(event&&!$(event.target).hasClass('action-close')){self._redirect(returnUrl);}}}});}else{this._redirect(returnUrl,originalForm);}},this));},_redirect:function(returnUrl,originalForm){var $form,ppCheckoutInput;if(this.options.isCatalogProduct){$form=originalForm?$(originalForm):$($(this.options.shortcutContainerClass).closest('form'));ppCheckoutInput=$form.find(this.options.ppCheckoutSelector)[0];if(!ppCheckoutInput){ppCheckoutInput=$(this.options.ppCheckoutInput);ppCheckoutInput.appendTo($form);}\n$(ppCheckoutInput).val(returnUrl);$form.trigger('submit');}else{$.mage.redirect(returnUrl);}}});return $.mage.paypalCheckout;});","Magento_Paypal/js/in-context/express-checkout-smart-buttons.min.js":"define(['underscore','jquery','Magento_Paypal/js/in-context/paypal-sdk','Magento_Customer/js/customer-data','domReady!'],function(_,$,paypalSdk,customerData){'use strict';function performCreateOrder(clientConfig){var params={'quote_id':clientConfig.quoteId,'customer_id':clientConfig.customerId||'','form_key':clientConfig.formKey,button:clientConfig.button};return $.Deferred(function(deferred){clientConfig.rendererComponent.beforePayment(deferred.resolve,deferred.reject).then(function(){$.post(clientConfig.getTokenUrl,params).done(function(res){clientConfig.rendererComponent.afterPayment(res,deferred.resolve,deferred.reject);}).fail(function(jqXHR,textStatus,err){clientConfig.rendererComponent.catchPayment(err,deferred.resolve,deferred.reject);});});}).promise();}\nfunction performOnApprove(clientConfig,data,actions){var params={paymentToken:data.orderID,payerId:data.payerID,paypalFundingSource:customerData.get('paypal-funding-source'),'form_key':clientConfig.formKey};return $.Deferred(function(deferred){clientConfig.rendererComponent.beforeOnAuthorize(deferred.resolve,deferred.reject,actions).then(function(){$.post(clientConfig.onAuthorizeUrl,params).done(function(res){clientConfig.rendererComponent.afterOnAuthorize(res,deferred.resolve,deferred.reject,actions);customerData.set('paypal-funding-source','');}).fail(function(jqXHR,textStatus,err){clientConfig.rendererComponent.catchOnAuthorize(err,deferred.resolve,deferred.reject);customerData.set('paypal-funding-source','');});});}).promise();}\nreturn function(clientConfig,element){paypalSdk(clientConfig.sdkUrl,clientConfig.dataAttributes).done(function(paypal){paypal.Buttons({style:clientConfig.styles,onInit:function(data,actions){clientConfig.rendererComponent.validate(actions);},createOrder:function(){return performCreateOrder(clientConfig);},onApprove:function(data,actions){performOnApprove(clientConfig,data,actions);},onClick:function(data){customerData.set('paypal-funding-source',data.fundingSource);clientConfig.rendererComponent.validate();clientConfig.rendererComponent.onClick();},onCancel:function(data,actions){clientConfig.rendererComponent.onCancel(data,actions);},onError:function(err){clientConfig.rendererComponent.onError(err);}}).render(element);});};});","Magento_Paypal/js/in-context/billing-agreement.min.js":"define(['jquery','Magento_Ui/js/modal/confirm','Magento_Customer/js/customer-data'],function($,confirm,customerData){'use strict';$.widget('mage.billingAgreement',{options:{invalidateOnLoad:false,cancelButtonSelector:'.block-billing-agreements-view button.cancel',cancelMessage:'',cancelUrl:''},_create:function(){var self=this;if(this.options.invalidateOnLoad){this.invalidate();}\n$(this.options.cancelButtonSelector).on('click',function(){confirm({content:self.options.cancelMessage,actions:{confirm:function(){self.invalidate();window.location.href=self.options.cancelUrl;}}});return false;});},invalidate:function(){customerData.invalidate(['paypal-billing-agreement']);}});return $.mage.billingAgreement;});","Magento_Paypal/js/in-context/express-checkout-wrapper.min.js":"define(['jquery','mage/translate','Magento_Customer/js/customer-data','Magento_Paypal/js/in-context/express-checkout-smart-buttons','Magento_Ui/js/modal/alert','mage/cookies'],function($,$t,customerData,checkoutSmartButtons,alert){'use strict';return{defaults:{paymentActionError:$t('Something went wrong with your request. Please try again later.'),signInMessage:$t('To check out, please sign in with your email address.')},renderPayPalButtons:function(element){checkoutSmartButtons(this.prepareClientConfig(),element);},validate:function(actions){this.actions=actions||this.actions;},onClick:function(){},beforePayment:function(resolve,reject){return $.Deferred().resolve();},afterPayment:function(res,resolve,reject){if(res.success){return resolve(res.token);}\nreturn reject(new Error(res['error_message']));},catchPayment:function(err,resolve,reject){this.addAlert(this.paymentActionError);reject(err);},beforeOnAuthorize:function(resolve,reject,actions){$('body').trigger('processStart');return $.Deferred().resolve();},afterOnAuthorize:function(res,resolve,reject,actions){$('body').trigger('processStop');if(res.success){resolve();return actions.redirect(res.redirectUrl);}\nreturn reject(new Error(res['error_message']));},catchOnAuthorize:function(err,resolve,reject){$('body').trigger('processStop');this.addAlert(this.paymentActionError);reject(err);},onCancel:function(data,actions){$('body').trigger('processStop');actions.redirect(this.clientConfig.onCancelUrl);},onError:function(err){},addError:function(message,type){type=type||'error';customerData.set('messages',{messages:[{type:type,text:message}],'data_id':Math.floor(Date.now()/ 1000)});},addAlert:function(message){alert({content:message});},getButtonId:function(){return this.inContextId;},prepareClientConfig:function(){this.clientConfig.rendererComponent=this;this.clientConfig.formKey=$.mage.cookies.get('form_key');return this.clientConfig;}};});","Magento_Paypal/js/in-context/button.min.js":"define(['uiComponent','jquery','Magento_Paypal/js/in-context/express-checkout-wrapper','Magento_Customer/js/customer-data'],function(Component,$,Wrapper,customerData){'use strict';return Component.extend(Wrapper).extend({defaults:{declinePayment:false},initialize:function(config,element){var cart=customerData.get('cart'),customer=customerData.get('customer');this._super();this.renderPayPalButtons(element);if(cart().isGuestCheckoutAllowed===undefined){cart.subscribe(function(updatedCart){this.declinePayment=!customer().firstname&&!cart().isGuestCheckoutAllowed;return updatedCart;}.bind(this));}\nreturn this;},beforePayment:function(resolve,reject){var promise=$.Deferred();if(this.declinePayment){this.addError(this.signInMessage,'warning');reject();}else{promise.resolve();}\nreturn promise;},prepareClientConfig:function(){this._super();return this.clientConfig;}});});","Magento_Paypal/js/in-context/product-express-checkout.min.js":"define(['underscore','jquery','uiComponent','Magento_Paypal/js/in-context/express-checkout-wrapper','Magento_Customer/js/customer-data'],function(_,$,Component,Wrapper,customerData){'use strict';return Component.extend(Wrapper).extend({defaults:{productFormSelector:'#product_addtocart_form',declinePayment:false,formInvalid:false,productAddedToCart:false},initialize:function(config,element){var cart=customerData.get('cart'),customer=customerData.get('customer'),isGuestCheckoutAllowed;this._super();isGuestCheckoutAllowed=cart().isGuestCheckoutAllowed;if(typeof isGuestCheckoutAllowed==='undefined'){isGuestCheckoutAllowed=config.clientConfig.isGuestCheckoutAllowed;}\nif(config.clientConfig.isVisibleOnProductPage){this.renderPayPalButtons(element);}\nthis.declinePayment=!customer().firstname&&!isGuestCheckoutAllowed;return this;},onClick:function(){var $form=$(this.productFormSelector);if(!this.declinePayment&&!this.productAddedToCart){$form.trigger('submit');this.formInvalid=!$form.validation('isValid');this.productAddedToCart=true;}},beforePayment:function(resolve,reject){var promise=$.Deferred();if(this.declinePayment){this.addError(this.signInMessage,'warning');reject();}else if(this.formInvalid){reject();}else{$(document).on('ajax:addToCart',function(e,data){if(_.isEmpty(data.response)){return promise.resolve();}\nreturn reject();});$(document).on('ajax:addToCart:error',reject);}\nreturn promise;},afterPayment:function(res,resolve,reject){if(res.success){return resolve(res.token);}\nthis.addAlert(res['error_message']);return reject(new Error(res['error_message']));},prepareClientConfig:function(){this._super();this.clientConfig.quoteId='';this.clientConfig.customerId='';return this.clientConfig;},onError:function(err){this.productAddedToCart=false;this._super(err);},onCancel:function(data,actions){this.productAddedToCart=false;this._super(data,actions);},afterOnAuthorize:function(res,resolve,reject,actions){this.productAddedToCart=false;return this._super(res,resolve,reject,actions);}});});","Magento_Paypal/js/in-context/paypal-sdk.min.js":"define(['jquery'],function($){'use strict';var dfd=$.Deferred();return function loadPaypalScript(paypalUrl,dataAttributes){require.config({paths:{paypalSdk:paypalUrl},shim:{paypalSdk:{exports:'paypal'}},attributes:{'paypalSdk':dataAttributes},onNodeCreated:function(node,config,name){if(config.attributes&&config.attributes[name]){$.each(dataAttributes,function(index,elem){node.setAttribute(index,elem);});}}});if(dfd.state()!=='resolved'){require(['paypalSdk'],function(paypalObject){dfd.resolve(paypalObject);});}\nreturn dfd.promise();};});","Magento_Paypal/js/view/paylater.min.js":"define(['jquery','ko','uiElement','uiLayout','Magento_Paypal/js/in-context/paypal-sdk','domReady!'],function($,ko,Component,layout,paypalSdk){'use strict';return Component.extend({defaults:{template:'Magento_Paypal/paylater',sdkUrl:'',attributes:{class:'pay-later-message'},dataAttributes:{},refreshSelector:'',displayAmount:false,amountComponentConfig:{name:'${ $.name }.amountProvider',component:''}},paypal:null,amount:null,initialize:function(){this._super().observe(['amount']);if(this.displayAmount){layout([this.amountComponentConfig]);}\nif(this.sdkUrl!==''){this.loadPayPalSdk(this.sdkUrl,this.dataAttributes).then(this._setPayPalObject.bind(this));}\nif(this.refreshSelector){$(this.refreshSelector).on('click',this._refreshMessages.bind(this));}\nreturn this;},getAttribute:function(attributeName){return typeof this.attributes[attributeName]!=='undefined'?this.attributes[attributeName]:null;},loadPayPalSdk:function(sdkUrl,dataAttributes){return paypalSdk(sdkUrl,dataAttributes);},_setPayPalObject:function(paypal){this.paypal=paypal;},_refreshMessages:function(){if(this.paypal){this.paypal.Messages.render();}}});});","Magento_Paypal/js/view/amountProviders/checkout.min.js":"define(['jquery','ko','uiElement','uiRegistry','Magento_Checkout/js/model/quote','domReady!'],function($,ko,Component,registry,quote){'use strict';return Component.extend({defaults:{amount:null},initialize:function(){this._super();this.updateAmount();return this;},updateAmount:function(){var payLater=registry.get(this.parentName);quote.totals.subscribe(function(newValue){payLater.amount(newValue['base_grand_total']);});}});});","Magento_Paypal/js/view/amountProviders/product.min.js":"define(['jquery','uiElement','uiRegistry','priceBox','domReady!'],function($,Component,registry){'use strict';return Component.extend({defaults:{priceBoxSelector:'.price-box',qtyFieldSelector:'#product_addtocart_form [name=\"qty\"]',amount:null},qty:1,price:0,priceType:'',initialize:function(){var priceBox;this._super();priceBox=$(this.priceBoxSelector);priceBox.on('priceUpdated',this._onPriceChange.bind(this));if(priceBox.priceBox('option')&&priceBox.priceBox('option').prices&&(priceBox.priceBox('option').prices.finalPrice||priceBox.priceBox('option').prices.basePrice)){this.priceType=priceBox.priceBox('option').prices.finalPrice?'finalPrice':'basePrice';this.price=priceBox.priceBox('option').prices[this.priceType].amount;}\n$(this.qtyFieldSelector).on('change',this._onQtyChange.bind(this));priceBox.trigger('updatePrice');return this;},_onQtyChange:function(event){var qty=parseFloat($(event.target).val());this.qty=!isNaN(qty)&&qty?qty:1;this._updateAmount();},_onPriceChange:function(event,data){this.price=data[this.priceType].amount;this._updateAmount();},_updateAmount:function(){var amount=this.price*this.qty,payLater=registry.get(this.parentName);if(amount!==0){payLater.amount(amount);}}});});","Magento_Paypal/js/view/amountProviders/product-grouped.min.js":"define(['jquery','uiElement','uiRegistry','domReady!'],function($,Component,registry){'use strict';return Component.extend({defaults:{tableWrapperSelector:'.table-wrapper.grouped',priceBoxSelector:'[data-role=\"priceBox\"]',qtyFieldSelector:'.input-text.qty',amount:null},priceInfo:{},initialize:function(){var self=this;this._super();$('tbody tr',this.tableWrapperSelector).each(function(index,element){var priceBox=$(self.priceBoxSelector,element),qtyElement=$(self.qtyFieldSelector,element),productId=priceBox.data('productId'),priceElement=$('#product-price-'+productId);self.priceInfo[productId]={qty:self._getQty(qtyElement),price:priceElement.data('priceAmount')};});$(this.qtyFieldSelector).on('change',this._onQtyChange.bind(this));this._updateAmount();return this;},_getQty:function(element){var qty=parseFloat(element.val());return!isNaN(qty)&&qty?qty:0;},_onQtyChange:function(event){var qtyElement=$(event.target),parent=qtyElement.parents('tr'),priceBox=$(this.priceBoxSelector,parent),productId=priceBox.data('productId');if(this.priceInfo[productId]){this.priceInfo[productId].qty=this._getQty(qtyElement);}\nthis._updateAmount();},_updateAmount:function(){var productId,amount=0,payLater=registry.get(this.parentName);for(productId in this.priceInfo){if(this.priceInfo.hasOwnProperty(productId)){amount+=this.priceInfo[productId].price*this.priceInfo[productId].qty;}}\npayLater.amount(amount);}});});","Magento_Paypal/js/view/payment/paypal-payments.min.js":"define(['uiComponent','Magento_Checkout/js/model/payment/renderer-list'],function(Component,rendererList){'use strict';var isContextCheckout=window.checkoutConfig.payment.paypalExpress.isContextCheckout,paypalExpress='Magento_Paypal/js/view/payment/method-renderer'+\n(isContextCheckout?'/in-context/checkout-express':'/paypal-express');rendererList.push({type:'paypal_express',component:paypalExpress,config:window.checkoutConfig.payment.paypalExpress.inContextConfig},{type:'payflow_express',component:'Magento_Paypal/js/view/payment/method-renderer/payflow-express'},{type:'payflow_express_bml',component:'Magento_Paypal/js/view/payment/method-renderer/payflow-express-bml'},{type:'payflowpro',component:'Magento_Paypal/js/view/payment/method-renderer/payflowpro-method'},{type:'payflow_link',component:'Magento_Paypal/js/view/payment/method-renderer/iframe-methods'},{type:'payflow_advanced',component:'Magento_Paypal/js/view/payment/method-renderer/iframe-methods'},{type:'hosted_pro',component:'Magento_Paypal/js/view/payment/method-renderer/iframe-methods'},{type:'paypal_billing_agreement',component:'Magento_Paypal/js/view/payment/method-renderer/paypal-billing-agreement'});return Component.extend({});});","Magento_Paypal/js/view/payment/method-renderer/payflow-express-bml.min.js":"define(['Magento_Paypal/js/view/payment/method-renderer/paypal-express-abstract'],function(Component){'use strict';return Component.extend({defaults:{template:'Magento_Paypal/payment/payflow-express-bml'}});});","Magento_Paypal/js/view/payment/method-renderer/payflowpro-method.min.js":"define(['jquery','Magento_Payment/js/view/payment/iframe','Magento_Checkout/js/model/payment/additional-validators','Magento_Checkout/js/action/set-payment-information','Magento_Checkout/js/model/full-screen-loader','Magento_Vault/js/view/payment/vault-enabler'],function($,Component,additionalValidators,setPaymentInformationAction,fullScreenLoader,VaultEnabler){'use strict';return Component.extend({defaults:{template:'Magento_Paypal/payment/payflowpro-form'},placeOrderHandler:null,validateHandler:null,initialize:function(){this._super();this.vaultEnabler=new VaultEnabler();this.vaultEnabler.setPaymentCode(this.getVaultCode());return this;},setPlaceOrderHandler:function(handler){this.placeOrderHandler=handler;},setValidateHandler:function(handler){this.validateHandler=handler;},context:function(){return this;},isShowLegend:function(){return true;},getCode:function(){return'payflowpro';},isActive:function(){return true;},placeOrder:function(){var self=this;if(this.validateHandler()&&additionalValidators.validate()&&this.isPlaceOrderActionAllowed()===true){this.isPlaceOrderActionAllowed(false);fullScreenLoader.startLoader();$.when(setPaymentInformationAction(this.messageContainer,self.getData())).done(function(){self.placeOrderHandler().fail(function(){fullScreenLoader.stopLoader();});}).always(function(){self.isPlaceOrderActionAllowed(true);fullScreenLoader.stopLoader();});}},getData:function(){var data={'method':this.getCode(),'additional_data':{'cc_type':this.creditCardType(),'cc_exp_year':this.creditCardExpYear(),'cc_exp_month':this.creditCardExpMonth(),'cc_last_4':this.creditCardNumber().substr(-4)}};this.vaultEnabler.visitAdditionalData(data);return data;},isVaultEnabled:function(){return this.vaultEnabler.isVaultEnabled();},getVaultCode:function(){return'payflowpro_cc_vault';}});});","Magento_Paypal/js/view/payment/method-renderer/iframe-methods.min.js":"define(['Magento_Checkout/js/view/payment/default','Magento_Paypal/js/model/iframe','Magento_Checkout/js/model/full-screen-loader'],function(Component,iframe,fullScreenLoader){'use strict';return Component.extend({defaults:{template:'Magento_Paypal/payment/iframe-methods',paymentReady:false},redirectAfterPlaceOrder:false,isInAction:iframe.isInAction,initObservable:function(){this._super().observe('paymentReady');return this;},isPaymentReady:function(){return this.paymentReady();},getActionUrl:function(){return this.isInAction()?window.checkoutConfig.payment.paypalIframe.actionUrl[this.getCode()]:'';},placePendingPaymentOrder:function(){if(this.placeOrder()){fullScreenLoader.startLoader();this.isInAction(true);document.addEventListener('click',iframe.stopEventPropagation,true);}},getPlaceOrderDeferredObject:function(){var self=this;return this._super().fail(function(){fullScreenLoader.stopLoader();self.isInAction(false);document.removeEventListener('click',iframe.stopEventPropagation,true);});},afterPlaceOrder:function(){if(this.iframeIsLoaded){document.getElementById(this.getCode()+'-iframe').contentWindow.location.reload();this.paymentReady(false);}\nthis.paymentReady(true);this.iframeIsLoaded=true;this.isPlaceOrderActionAllowed(true);fullScreenLoader.stopLoader();},iframeLoaded:function(){fullScreenLoader.stopLoader();}});});","Magento_Paypal/js/view/payment/method-renderer/payflow-express.min.js":"define(['Magento_Paypal/js/view/payment/method-renderer/paypal-express-abstract'],function(Component){'use strict';return Component.extend({defaults:{template:'Magento_Paypal/payment/payflow-express'}});});","Magento_Paypal/js/view/payment/method-renderer/paypal-billing-agreement.min.js":"define(['jquery','Magento_Checkout/js/view/payment/default','mage/validation'],function($,Component){'use strict';return Component.extend({defaults:{template:'Magento_Paypal/payment/paypal_billing_agreement-form',selectedBillingAgreement:''},initObservable:function(){this._super().observe('selectedBillingAgreement');return this;},getTransportName:function(){return window.checkoutConfig.payment.paypalBillingAgreement.transportName;},getBillingAgreements:function(){return window.checkoutConfig.payment.paypalBillingAgreement.agreements;},getData:function(){var additionalData=null;if(this.getTransportName()){additionalData={};additionalData[this.getTransportName()]=this.selectedBillingAgreement();}\nreturn{'method':this.item.method,'additional_data':additionalData};},validate:function(){var form='#billing-agreement-form';return $(form).validation()&&$(form).validation('isValid');}});});","Magento_Paypal/js/view/payment/method-renderer/paypal-express-abstract.min.js":"define(['jquery','Magento_Checkout/js/view/payment/default','Magento_Paypal/js/action/set-payment-method','Magento_Checkout/js/model/payment/additional-validators','Magento_Checkout/js/model/quote','Magento_Customer/js/customer-data'],function($,Component,setPaymentMethodAction,additionalValidators,quote,customerData){'use strict';return Component.extend({defaults:{template:'Magento_Paypal/payment/payflow-express-bml',billingAgreement:''},initObservable:function(){this._super().observe('billingAgreement');return this;},showAcceptanceWindow:function(data,event){window.open($(event.currentTarget).attr('href'),'olcwhatispaypal','toolbar=no, location=no,'+' directories=no, status=no,'+' menubar=no, scrollbars=yes,'+' resizable=yes, ,left=0,'+' top=0, width=400, height=350');return false;},getPaymentAcceptanceMarkHref:function(){return window.checkoutConfig.payment.paypalExpress.paymentAcceptanceMarkHref;},getPaymentAcceptanceMarkSrc:function(){return window.checkoutConfig.payment.paypalExpress.paymentAcceptanceMarkSrc;},getBillingAgreementCode:function(){return window.checkoutConfig.payment.paypalExpress.billingAgreementCode[this.item.method];},getData:function(){var parent=this._super(),additionalData=null;if(this.getBillingAgreementCode()){additionalData={};additionalData[this.getBillingAgreementCode()]=this.billingAgreement();}\nreturn $.extend(true,parent,{'additional_data':additionalData});},continueToPayPal:function(){if(additionalValidators.validate()){setPaymentMethodAction(this.messageContainer).done(function(){customerData.invalidate(['cart']);$.mage.redirect(window.checkoutConfig.payment.paypalExpress.redirectUrl[quote.paymentMethod().method]);});return false;}}});});","Magento_Paypal/js/view/payment/method-renderer/paypal-express.min.js":"define(['Magento_Paypal/js/view/payment/method-renderer/paypal-express-abstract'],function(Component){'use strict';return Component.extend({defaults:{template:'Magento_Paypal/payment/paypal-express'}});});","Magento_Paypal/js/view/payment/method-renderer/in-context/checkout-express.min.js":"define(['jquery','Magento_Paypal/js/view/payment/method-renderer/paypal-express-abstract','Magento_Paypal/js/in-context/express-checkout-wrapper','Magento_Paypal/js/action/set-payment-method','Magento_Checkout/js/model/payment/additional-validators','Magento_Ui/js/model/messageList','Magento_Ui/js/lib/view/utils/async'],function($,Component,Wrapper,setPaymentMethod,additionalValidators,messageList){'use strict';return Component.extend(Wrapper).extend({defaults:{template:'Magento_Paypal/payment/paypal-express-in-context',validationElements:'input'},initListeners:function(context){$.async(this.validationElements,context,function(element){$(element).on('change',function(){this.validate();}.bind(this));}.bind(this));},validate:function(){this._super();if(this.actions){additionalValidators.validate(true)?this.actions.enable():this.actions.disable();}},beforePayment:function(resolve,reject){var promise=$.Deferred();setPaymentMethod(this.messageContainer).done(function(){return promise.resolve();}).fail(function(response){var error;try{error=JSON.parse(response.responseText);}catch(exception){error=this.paymentActionError;}\nthis.addError(error);return reject(new Error(error));}.bind(this));return promise;},prepareClientConfig:function(){this._super();this.clientConfig.quoteId=window.checkoutConfig.quoteData['entity_id'];this.clientConfig.customerId=window.customerData.id;this.clientConfig.button=0;return this.clientConfig;},onClick:function(){additionalValidators.validate();},addError:function(message){messageList.addErrorMessage({message:message});},afterPayment:function(res,resolve,reject){if(res.success){return resolve(res.token);}\nthis.addError(res['error_message']);return reject(new Error(res['error_message']));},afterOnAuthorize:function(res,resolve,reject,actions){if(res.success){resolve();return actions.redirect(res.redirectUrl);}\nthis.addError(res['error_message']);return reject(new Error(res['error_message']));}});});","Magento_Paypal/js/view/payment/method-renderer/payflowpro/vault.min.js":"define(['Magento_Vault/js/view/payment/method-renderer/vault'],function(VaultComponent){'use strict';return VaultComponent.extend({defaults:{template:'Magento_Vault/payment/form'},getToken:function(){return this.publicHash;},getMaskedCard:function(){return this.details['cc_last_4'];},getExpirationDate:function(){return this.details['cc_exp_month']+'/'+this.details['cc_exp_year'];},getCardType:function(){return this.details['cc_type'];}});});","Magento_Paypal/js/model/iframe.min.js":"define(['ko'],function(ko){'use strict';var isInAction=ko.observable(false);return{isInAction:isInAction,stopEventPropagation:function(event){event.stopImmediatePropagation();event.preventDefault();}};});","Magento_Paypal/js/model/iframe-redirect.min.js":"define(['ko','Magento_Paypal/js/model/iframe','Magento_Ui/js/model/messageList'],function(ko,iframe,messageList){'use strict';return function(cartUrl,errorMessage,goToSuccessPage,successUrl){if(this===window.self){window.location=cartUrl;}\nif(!!errorMessage.message){document.removeEventListener('click',iframe.stopEventPropagation,true);iframe.isInAction(false);messageList.addErrorMessage(errorMessage);}else if(!!goToSuccessPage){window.location=successUrl;}else{window.location=cartUrl;}};});","Magento_Paypal/js/action/set-payment-method.min.js":"define(['Magento_Checkout/js/model/quote','Magento_Checkout/js/action/set-payment-information'],function(quote,setPaymentInformation){'use strict';return function(messageContainer){return setPaymentInformation(messageContainer,quote.paymentMethod());};});","Magento_ReCaptchaWebapiUi/js/webapiReCaptcha.min.js":"define(['Magento_ReCaptchaFrontendUi/js/reCaptcha','Magento_ReCaptchaWebapiUi/js/webapiReCaptchaRegistry'],function(Component,registry){'use strict';return Component.extend({defaults:{autoTrigger:false},reCaptchaCallback:function(token){registry.tokens[this.getReCaptchaId()]=token;if(typeof registry._listeners[this.getReCaptchaId()]!=='undefined'){registry._listeners[this.getReCaptchaId()](token);}},initParentForm:function(parentForm,widgetId){var self=this,trigger;trigger=function(){self.reCaptchaCallback(grecaptcha.getResponse(widgetId));};registry._isInvisibleType[this.getReCaptchaId()]=false;if(this.getIsInvisibleRecaptcha()){trigger=function(){grecaptcha.execute(widgetId);};registry._isInvisibleType[this.getReCaptchaId()]=true;}\nif(this.autoTrigger){trigger();registry.triggers[this.getReCaptchaId()]=new Function();}else{registry.triggers[this.getReCaptchaId()]=trigger;}\nthis.tokenField=null;}});});","Magento_ReCaptchaWebapiUi/js/jquery-mixin.min.js":"define(['mage/utils/wrapper'],function(wrapper){'use strict';return function(jQuery){jQuery.ajax=wrapper.wrapSuper(jQuery.ajax,function(){var settings,payload;if(arguments.length!==0){settings=arguments.length===1?arguments[0]:arguments[1];}\nif(settings&&settings.hasOwnProperty('data')){try{payload=JSON.parse(settings.data);}catch(e){}}\nif(payload&&payload.hasOwnProperty('xReCaptchaValue')){if(!settings.hasOwnProperty('headers')){settings.headers={};}\nsettings.headers['X-ReCaptcha']=payload.xReCaptchaValue;delete payload['xReCaptchaValue'];settings.data=JSON.stringify(payload);}\nreturn this._super.apply(this,arguments);});return jQuery;};});","Magento_ReCaptchaWebapiUi/js/webapiReCaptchaRegistry.min.js":"define([],function(){'use strict';return{tokens:{},triggers:{},_listeners:{},_isInvisibleType:{},addListener:function(id,func){if(this.tokens.hasOwnProperty(id)){func(this.tokens[id]);}else{this._listeners[id]=func;}},removeListener:function(id){this._listeners[id]=undefined;}};});","Magento_InventorySwatchesFrontendUi/js/swatch-renderer.min.js":"define(['jquery','configurableVariationQty','jquery-ui-modules/widget'],function($,configurableVariationQty){'use strict';return function(SwatchRenderer){$.widget('mage.SwatchRenderer',SwatchRenderer,{_OnClick:function($this,widget){var salesChannel=this.options.jsonConfig.channel,salesChannelCode=this.options.jsonConfig.salesChannelCode,productVariationsSku=this.options.jsonConfig.sku;this._super($this,widget);configurableVariationQty(productVariationsSku[widget.getProductId()],salesChannel,salesChannelCode);}});return $.mage.SwatchRenderer;};});","vimeo/player.min.js":"/*! @vimeo/player v2.16.4 | (c) 2022 Vimeo | MIT License | https://github.com/vimeo/player.js */\n!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define(t):((e=\"undefined\"!=typeof globalThis?globalThis:e||self).Vimeo=e.Vimeo||{},e.Vimeo.Player=t())}(this,function(){\"use strict\";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var e=\"undefined\"!=typeof global&&\"[object global]\"==={}.toString.call(global);function i(e,t){return 0===e.indexOf(t.toLowerCase())?e:\"\".concat(t.toLowerCase()).concat(e.substr(0,1).toUpperCase()).concat(e.substr(1))}function l(e){return/^(https?:)?\\/\\/((player|www)\\.)?vimeo\\.com(?=$|\\/)/.test(e)}function u(e){var t=0<arguments.length&&void 0!==e?e:{},n=t.id,e=t.url,t=n||e;if(!t)throw new Error(\"An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.\");if(e=t,!isNaN(parseFloat(e))&&isFinite(e)&&Math.floor(e)==e)return\"https://vimeo.com/\".concat(t);if(l(t))return t.replace(\"http:\",\"https:\");if(n)throw new TypeError(\"\u201c\".concat(n,\"\u201d is not a valid video id.\"));throw new TypeError(\"\u201c\".concat(t,\"\u201d is not a vimeo.com url.\"))}var t=void 0!==Array.prototype.indexOf,Player=\"undefined\"!=typeof window&&void 0!==window.postMessage;if(!(e||t&&Player))throw new Error(\"Sorry, the Vimeo Player API is not available in this browser.\");var n,o,a=\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:{};function c(){if(void 0===this)throw new TypeError(\"Constructor WeakMap requires 'new'\");if(o(this,\"_id\",\"_WeakMap_\"+f()+\".\"+f()),0<arguments.length)throw new TypeError(\"WeakMap iterable is not supported\")}function s(e,t){if(!d(e)||!n.call(e,\"_id\"))throw new TypeError(t+\" method called on incompatible receiver \"+typeof e)}function f(){return Math.random().toString().substring(2)}function d(e){return Object(e)===e}(Player=\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:a).WeakMap||(n=Object.prototype.hasOwnProperty,Player.WeakMap=((o=function(e,t,n){Object.defineProperty?Object.defineProperty(e,t,{configurable:!0,writable:!0,value:n}):e[t]=n})(c.prototype,\"delete\",function(e){if(s(this,\"delete\"),!d(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)&&(delete e[this._id],!0)}),o(c.prototype,\"get\",function(e){if(s(this,\"get\"),d(e)){var t=e[this._id];return t&&t[0]===e?t[1]:void 0}}),o(c.prototype,\"has\",function(e){if(s(this,\"has\"),!d(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)}),o(c.prototype,\"set\",function(e,t){if(s(this,\"set\"),!d(e))throw new TypeError(\"Invalid value used as weak map key\");var n=e[this._id];return n&&n[0]===e?n[1]=t:o(e,this._id,[e,t]),this}),o(c,\"_polyfill\",!0),c));var h,m=(function(e){var t,n,r;r=function(){var t,n,r,o,i,e=Object.prototype.toString,a=\"undefined\"!=typeof setImmediate?function(e){return setImmediate(e)}:setTimeout;try{Object.defineProperty({},\"x\",{}),t=function(e,t,n,r){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:!1!==r})}}catch(e){t=function(e,t,n){return e[t]=n,e}}function u(e,t){this.fn=e,this.self=t,this.next=void 0}function l(e,t){y.add(e,t),n=n||a(y.drain)}function c(e){var t,n=typeof e;return\"function\"==typeof(t=null!=e&&(\"object\"==n||\"function\"==n)?e.then:t)&&t}function s(){for(var e=0;e<this.chain.length;e++)!function(e,t,n){var r,o;try{!1===t?n.reject(e.msg):(r=!0===t?e.msg:t.call(void 0,e.msg))===n.promise?n.reject(TypeError(\"Promise-chain cycle\")):(o=c(r))?o.call(r,n.resolve,n.reject):n.resolve(r)}catch(e){n.reject(e)}}(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function f(e){var n,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(n=c(e))?l(function(){var t=new m(r);try{n.call(e,function(){f.apply(t,arguments)},function(){d.apply(t,arguments)})}catch(e){d.call(t,e)}}):(r.msg=e,r.state=1,0<r.chain.length&&l(s,r))}catch(e){d.call(new m(r),e)}}}function d(e){var t=this;t.triggered||(t.triggered=!0,(t=t.def?t.def:t).msg=e,t.state=2,0<t.chain.length&&l(s,t))}function h(e,n,r,o){for(var t=0;t<n.length;t++)!function(t){e.resolve(n[t]).then(function(e){r(t,e)},o)}(t)}function m(e){this.def=e,this.triggered=!1}function v(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function p(e){if(\"function\"!=typeof e)throw TypeError(\"Not a function\");if(0!==this.__NPO__)throw TypeError(\"Not a promise\");this.__NPO__=1;var r=new v(this);this.then=function(e,t){var n={success:\"function\"!=typeof e||e,failure:\"function\"==typeof t&&t};return n.promise=new this.constructor(function(e,t){if(\"function\"!=typeof e||\"function\"!=typeof t)throw TypeError(\"Not a function\");n.resolve=e,n.reject=t}),r.chain.push(n),0!==r.state&&l(s,r),n.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){f.call(r,e)},function(e){d.call(r,e)})}catch(e){d.call(r,e)}}var y={add:function(e,t){i=new u(e,t),o?o.next=i:r=i,o=i,i=void 0},drain:function(){var e=r;for(r=o=n=void 0;e;)e.fn.call(e.self),e=e.next}},g=t({},\"constructor\",p,!1);return t(p.prototype=g,\"__NPO__\",0,!1),t(p,\"resolve\",function(n){return n&&\"object\"==typeof n&&1===n.__NPO__?n:new this(function(e,t){if(\"function\"!=typeof e||\"function\"!=typeof t)throw TypeError(\"Not a function\");e(n)})}),t(p,\"reject\",function(n){return new this(function(e,t){if(\"function\"!=typeof e||\"function\"!=typeof t)throw TypeError(\"Not a function\");t(n)})}),t(p,\"all\",function(t){var a=this;return\"[object Array]\"!=e.call(t)?a.reject(TypeError(\"Not an array\")):0===t.length?a.resolve([]):new a(function(n,e){if(\"function\"!=typeof n||\"function\"!=typeof e)throw TypeError(\"Not a function\");var r=t.length,o=Array(r),i=0;h(a,t,function(e,t){o[e]=t,++i===r&&n(o)},e)})}),t(p,\"race\",function(t){var r=this;return\"[object Array]\"!=e.call(t)?r.reject(TypeError(\"Not an array\")):new r(function(n,e){if(\"function\"!=typeof n||\"function\"!=typeof e)throw TypeError(\"Not a function\");h(r,t,function(e,t){n(t)},e)})}),p},(n=a)[t=\"Promise\"]=n[t]||r(),e.exports&&(e.exports=n[t])}(h={exports:{}}),h.exports),v=new WeakMap;function p(e,t,n){var r=v.get(e.element)||{};t in r||(r[t]=[]),r[t].push(n),v.set(e.element,r)}function y(e,t){return(v.get(e.element)||{})[t]||[]}function g(e,t,n){var r=v.get(e.element)||{};if(!r[t])return!0;if(!n)return r[t]=[],v.set(e.element,r),!0;n=r[t].indexOf(n);return-1!==n&&r[t].splice(n,1),v.set(e.element,r),r[t]&&0===r[t].length}var w=[\"autopause\",\"autoplay\",\"background\",\"byline\",\"color\",\"controls\",\"dnt\",\"height\",\"id\",\"interactive_params\",\"keyboard\",\"loop\",\"maxheight\",\"maxwidth\",\"muted\",\"playsinline\",\"portrait\",\"responsive\",\"speed\",\"texttrack\",\"title\",\"transparent\",\"url\",\"width\"];function b(r,e){return w.reduce(function(e,t){var n=r.getAttribute(\"data-vimeo-\".concat(t));return!n&&\"\"!==n||(e[t]=\"\"===n?1:n),e},1<arguments.length&&void 0!==e?e:{})}function k(e,t){var n=e.html;if(!t)throw new TypeError(\"An element must be provided\");if(null!==t.getAttribute(\"data-vimeo-initialized\"))return t.querySelector(\"iframe\");e=document.createElement(\"div\");return e.innerHTML=n,t.appendChild(e.firstChild),t.setAttribute(\"data-vimeo-initialized\",\"true\"),t.querySelector(\"iframe\")}function E(i,e,t){var a=1<arguments.length&&void 0!==e?e:{},u=2<arguments.length?t:void 0;return new Promise(function(t,n){if(!l(i))throw new TypeError(\"\u201c\".concat(i,\"\u201d is not a vimeo.com url.\"));var e,r=\"https://vimeo.com/api/oembed.json?url=\".concat(encodeURIComponent(i));for(e in a)a.hasOwnProperty(e)&&(r+=\"&\".concat(e,\"=\").concat(encodeURIComponent(a[e])));var o=new(\"XDomainRequest\"in window?XDomainRequest:XMLHttpRequest);o.open(\"GET\",r,!0),o.onload=function(){if(404!==o.status)if(403!==o.status)try{var e=JSON.parse(o.responseText);if(403===e.domain_status_code)return k(e,u),void n(new Error(\"\u201c\".concat(i,\"\u201d is not embeddable.\")));t(e)}catch(e){n(e)}else n(new Error(\"\u201c\".concat(i,\"\u201d is not embeddable.\")));else n(new Error(\"\u201c\".concat(i,\"\u201d was not found.\")))},o.onerror=function(){var e=o.status?\" (\".concat(o.status,\")\"):\"\";n(new Error(\"There was an error fetching the embed code from Vimeo\".concat(e,\".\")))},o.send()})}function T(e){function n(e){\"console\"in window&&console.error&&console.error(\"There was an error creating an embed: \".concat(e))}e=0<arguments.length&&void 0!==e?e:document,e=[].slice.call(e.querySelectorAll(\"[data-vimeo-id], [data-vimeo-url]\"));e.forEach(function(t){try{if(null!==t.getAttribute(\"data-vimeo-defer\"))return;var e=b(t);E(u(e),e,t).then(function(e){return k(e,t)}).catch(n)}catch(e){n(e)}})}function P(e){if(\"string\"==typeof e)try{e=JSON.parse(e)}catch(e){return console.warn(e),{}}return e}function _(e,t,n){e.element.contentWindow&&e.element.contentWindow.postMessage&&(t={method:t},void 0!==n&&(t.value=n),8<=(n=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\\d+).*$/,\"$1\")))&&n<10&&(t=JSON.stringify(t)),e.element.contentWindow.postMessage(t,e.origin))}function M(n,r){var t,e,o,i,a=[];(r=P(r)).event?(\"error\"===r.event&&y(n,r.data.method).forEach(function(e){var t=new Error(r.data.message);t.name=r.data.name,e.reject(t),g(n,r.data.method,e)}),a=y(n,\"event:\".concat(r.event)),t=r.data):r.method&&(e=n,o=r.method,(i=!((i=y(e,o)).length<1)&&(i=i.shift(),g(e,o,i),i))&&(a.push(i),t=r.value)),a.forEach(function(e){try{if(\"function\"==typeof e)return void e.call(n,t);e.resolve(t)}catch(e){}})}var N,F,x,C=new WeakMap,j=new WeakMap,A={},Player=function(){function Player(i){var e,a=this,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,Player),window.jQuery&&i instanceof jQuery&&(1<i.length&&window.console&&console.warn&&console.warn(\"A jQuery object with multiple elements was passed, using the first element.\"),i=i[0]),\"undefined\"!=typeof document&&\"string\"==typeof i&&(i=document.getElementById(i)),e=i,!Boolean(e&&1===e.nodeType&&\"nodeName\"in e&&e.ownerDocument&&e.ownerDocument.defaultView))throw new TypeError(\"You must pass either a valid element or a valid id.\");if(\"IFRAME\"===i.nodeName||(r=i.querySelector(\"iframe\"))&&(i=r),\"IFRAME\"===i.nodeName&&!l(i.getAttribute(\"src\")||\"\"))throw new Error(\"The player element passed isn\u2019t a Vimeo embed.\");if(C.has(i))return C.get(i);this._window=i.ownerDocument.defaultView,this.element=i,this.origin=\"*\";var n,r=new m(function(r,o){var e;a._onMessage=function(e){if(l(e.origin)&&a.element.contentWindow===e.source){\"*\"===a.origin&&(a.origin=e.origin);var t=P(e.data);if(t&&\"error\"===t.event&&t.data&&\"ready\"===t.data.method){var n=new Error(t.data.message);return n.name=t.data.name,void o(n)}e=t&&\"ready\"===t.event,n=t&&\"ping\"===t.method;if(e||n)return a.element.setAttribute(\"data-ready\",\"true\"),void r();M(a,t)}},a._window.addEventListener(\"message\",a._onMessage),\"IFRAME\"!==a.element.nodeName&&E(u(e=b(i,t)),e,i).then(function(e){var t,n,r=k(e,i);return a.element=r,a._originalElement=i,t=i,n=r,r=v.get(t),v.set(n,r),v.delete(t),C.set(a.element,a),e}).catch(o)});return j.set(this,r),C.set(this.element,this),\"IFRAME\"===this.element.nodeName&&_(this,\"ping\"),A.isEnabled&&(n=function(){return A.exit()},this.fullscreenchangeHandler=function(){(A.isFullscreen?p:g)(a,\"event:exitFullscreen\",n),a.ready().then(function(){_(a,\"fullscreenchange\",A.isFullscreen)})},A.on(\"fullscreenchange\",this.fullscreenchangeHandler)),this}var e,t,n;return e=Player,(t=[{key:\"callMethod\",value:function(n){var r=this,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return new m(function(e,t){return r.ready().then(function(){p(r,n,{resolve:e,reject:t}),_(r,n,o)}).catch(t)})}},{key:\"get\",value:function(n){var r=this;return new m(function(e,t){return n=i(n,\"get\"),r.ready().then(function(){p(r,n,{resolve:e,reject:t}),_(r,n)}).catch(t)})}},{key:\"set\",value:function(n,r){var o=this;return new m(function(e,t){if(n=i(n,\"set\"),null==r)throw new TypeError(\"There must be a value to set.\");return o.ready().then(function(){p(o,n,{resolve:e,reject:t}),_(o,n,r)}).catch(t)})}},{key:\"on\",value:function(e,t){if(!e)throw new TypeError(\"You must pass an event name.\");if(!t)throw new TypeError(\"You must pass a callback function.\");if(\"function\"!=typeof t)throw new TypeError(\"The callback must be a function.\");0===y(this,\"event:\".concat(e)).length&&this.callMethod(\"addEventListener\",e).catch(function(){}),p(this,\"event:\".concat(e),t)}},{key:\"off\",value:function(e,t){if(!e)throw new TypeError(\"You must pass an event name.\");if(t&&\"function\"!=typeof t)throw new TypeError(\"The callback must be a function.\");g(this,\"event:\".concat(e),t)&&this.callMethod(\"removeEventListener\",e).catch(function(e){})}},{key:\"loadVideo\",value:function(e){return this.callMethod(\"loadVideo\",e)}},{key:\"ready\",value:function(){var e=j.get(this)||new m(function(e,t){t(new Error(\"Unknown player. Probably unloaded.\"))});return m.resolve(e)}},{key:\"addCuePoint\",value:function(e){return this.callMethod(\"addCuePoint\",{time:e,data:1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}})}},{key:\"removeCuePoint\",value:function(e){return this.callMethod(\"removeCuePoint\",e)}},{key:\"enableTextTrack\",value:function(e,t){if(!e)throw new TypeError(\"You must pass a language.\");return this.callMethod(\"enableTextTrack\",{language:e,kind:t})}},{key:\"disableTextTrack\",value:function(){return this.callMethod(\"disableTextTrack\")}},{key:\"pause\",value:function(){return this.callMethod(\"pause\")}},{key:\"play\",value:function(){return this.callMethod(\"play\")}},{key:\"requestFullscreen\",value:function(){return A.isEnabled?A.request(this.element):this.callMethod(\"requestFullscreen\")}},{key:\"exitFullscreen\",value:function(){return A.isEnabled?A.exit():this.callMethod(\"exitFullscreen\")}},{key:\"getFullscreen\",value:function(){return A.isEnabled?m.resolve(A.isFullscreen):this.get(\"fullscreen\")}},{key:\"requestPictureInPicture\",value:function(){return this.callMethod(\"requestPictureInPicture\")}},{key:\"exitPictureInPicture\",value:function(){return this.callMethod(\"exitPictureInPicture\")}},{key:\"getPictureInPicture\",value:function(){return this.get(\"pictureInPicture\")}},{key:\"unload\",value:function(){return this.callMethod(\"unload\")}},{key:\"destroy\",value:function(){var n=this;return new m(function(e){var t;j.delete(n),C.delete(n.element),n._originalElement&&(C.delete(n._originalElement),n._originalElement.removeAttribute(\"data-vimeo-initialized\")),n.element&&\"IFRAME\"===n.element.nodeName&&n.element.parentNode&&(n.element.parentNode.parentNode&&n._originalElement&&n._originalElement!==n.element.parentNode?n.element.parentNode.parentNode.removeChild(n.element.parentNode):n.element.parentNode.removeChild(n.element)),n.element&&\"DIV\"===n.element.nodeName&&n.element.parentNode&&(n.element.removeAttribute(\"data-vimeo-initialized\"),(t=n.element.querySelector(\"iframe\"))&&t.parentNode&&(t.parentNode.parentNode&&n._originalElement&&n._originalElement!==t.parentNode?t.parentNode.parentNode.removeChild(t.parentNode):t.parentNode.removeChild(t))),n._window.removeEventListener(\"message\",n._onMessage),A.isEnabled&&A.off(\"fullscreenchange\",n.fullscreenchangeHandler),e()})}},{key:\"getAutopause\",value:function(){return this.get(\"autopause\")}},{key:\"setAutopause\",value:function(e){return this.set(\"autopause\",e)}},{key:\"getBuffered\",value:function(){return this.get(\"buffered\")}},{key:\"getCameraProps\",value:function(){return this.get(\"cameraProps\")}},{key:\"setCameraProps\",value:function(e){return this.set(\"cameraProps\",e)}},{key:\"getChapters\",value:function(){return this.get(\"chapters\")}},{key:\"getCurrentChapter\",value:function(){return this.get(\"currentChapter\")}},{key:\"getColor\",value:function(){return this.get(\"color\")}},{key:\"setColor\",value:function(e){return this.set(\"color\",e)}},{key:\"getCuePoints\",value:function(){return this.get(\"cuePoints\")}},{key:\"getCurrentTime\",value:function(){return this.get(\"currentTime\")}},{key:\"setCurrentTime\",value:function(e){return this.set(\"currentTime\",e)}},{key:\"getDuration\",value:function(){return this.get(\"duration\")}},{key:\"getEnded\",value:function(){return this.get(\"ended\")}},{key:\"getLoop\",value:function(){return this.get(\"loop\")}},{key:\"setLoop\",value:function(e){return this.set(\"loop\",e)}},{key:\"setMuted\",value:function(e){return this.set(\"muted\",e)}},{key:\"getMuted\",value:function(){return this.get(\"muted\")}},{key:\"getPaused\",value:function(){return this.get(\"paused\")}},{key:\"getPlaybackRate\",value:function(){return this.get(\"playbackRate\")}},{key:\"setPlaybackRate\",value:function(e){return this.set(\"playbackRate\",e)}},{key:\"getPlayed\",value:function(){return this.get(\"played\")}},{key:\"getQualities\",value:function(){return this.get(\"qualities\")}},{key:\"getQuality\",value:function(){return this.get(\"quality\")}},{key:\"setQuality\",value:function(e){return this.set(\"quality\",e)}},{key:\"getSeekable\",value:function(){return this.get(\"seekable\")}},{key:\"getSeeking\",value:function(){return this.get(\"seeking\")}},{key:\"getTextTracks\",value:function(){return this.get(\"textTracks\")}},{key:\"getVideoEmbedCode\",value:function(){return this.get(\"videoEmbedCode\")}},{key:\"getVideoId\",value:function(){return this.get(\"videoId\")}},{key:\"getVideoTitle\",value:function(){return this.get(\"videoTitle\")}},{key:\"getVideoWidth\",value:function(){return this.get(\"videoWidth\")}},{key:\"getVideoHeight\",value:function(){return this.get(\"videoHeight\")}},{key:\"getVideoUrl\",value:function(){return this.get(\"videoUrl\")}},{key:\"getVolume\",value:function(){return this.get(\"volume\")}},{key:\"setVolume\",value:function(e){return this.set(\"volume\",e)}}])&&r(e.prototype,t),n&&r(e,n),Player}();return e||(N=function(){for(var e,t=[[\"requestFullscreen\",\"exitFullscreen\",\"fullscreenElement\",\"fullscreenEnabled\",\"fullscreenchange\",\"fullscreenerror\"],[\"webkitRequestFullscreen\",\"webkitExitFullscreen\",\"webkitFullscreenElement\",\"webkitFullscreenEnabled\",\"webkitfullscreenchange\",\"webkitfullscreenerror\"],[\"webkitRequestFullScreen\",\"webkitCancelFullScreen\",\"webkitCurrentFullScreenElement\",\"webkitCancelFullScreen\",\"webkitfullscreenchange\",\"webkitfullscreenerror\"],[\"mozRequestFullScreen\",\"mozCancelFullScreen\",\"mozFullScreenElement\",\"mozFullScreenEnabled\",\"mozfullscreenchange\",\"mozfullscreenerror\"],[\"msRequestFullscreen\",\"msExitFullscreen\",\"msFullscreenElement\",\"msFullscreenEnabled\",\"MSFullscreenChange\",\"MSFullscreenError\"]],n=0,r=t.length,o={};n<r;n++)if((e=t[n])&&e[1]in document){for(n=0;n<e.length;n++)o[t[0][n]]=e[n];return o}return!1}(),F={fullscreenchange:N.fullscreenchange,fullscreenerror:N.fullscreenerror},x={request:function(o){return new Promise(function(e,t){function n(){x.off(\"fullscreenchange\",n),e()}x.on(\"fullscreenchange\",n);var r=(o=o||document.documentElement)[N.requestFullscreen]();r instanceof Promise&&r.then(n).catch(t)})},exit:function(){return new Promise(function(t,e){var n,r;x.isFullscreen?(n=function e(){x.off(\"fullscreenchange\",e),t()},x.on(\"fullscreenchange\",n),(r=document[N.exitFullscreen]())instanceof Promise&&r.then(n).catch(e)):t()})},on:function(e,t){e=F[e];e&&document.addEventListener(e,t)},off:function(e,t){e=F[e];e&&document.removeEventListener(e,t)}},Object.defineProperties(x,{isFullscreen:{get:function(){return Boolean(document[N.fullscreenElement])}},element:{enumerable:!0,get:function(){return document[N.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return Boolean(document[N.fullscreenEnabled])}}}),A=x,T(),function(e){var r=0<arguments.length&&void 0!==e?e:document;window.VimeoPlayerResizeEmbeds_||(window.VimeoPlayerResizeEmbeds_=!0,window.addEventListener(\"message\",function(e){if(l(e.origin)&&e.data&&\"spacechange\"===e.data.event)for(var t=r.querySelectorAll(\"iframe\"),n=0;n<t.length;n++)if(t[n].contentWindow===e.source){t[n].parentElement.style.paddingBottom=\"\".concat(e.data.data[0].bottom,\"px\");break}}))}()),Player});\n","vimeo/vimeo-wrapper.min.js":"define(['vimeo'],function(Player){'use strict';window.Vimeo=window.Vimeo||{'Player':Player};});","Magento_PaypalCaptcha/js/view/checkout/paymentCaptcha.min.js":"define(['jquery','Magento_Captcha/js/view/checkout/defaultCaptcha','Magento_Captcha/js/model/captchaList','Magento_Captcha/js/model/captcha'],function($,defaultCaptcha,captchaList,Captcha){'use strict';return defaultCaptcha.extend({initialize:function(){var captchaConfigPayment,currentCaptcha;this._super();if(window[this.configSource]&&window[this.configSource].captchaPayments){captchaConfigPayment=window[this.configSource].captchaPayments;$.each(captchaConfigPayment,function(formId,captchaData){var captcha;captchaData.formId=formId;captcha=Captcha(captchaData);captchaList.add(captcha);});}\ncurrentCaptcha=captchaList.getCaptchaByFormId(this.formId);if(currentCaptcha!=null){currentCaptcha.setIsVisible(true);this.setCurrentCaptcha(currentCaptcha);}}});});","Magento_PaypalCaptcha/js/view/checkout/defaultCaptcha-mixin.min.js":"define(['Magento_PaypalCaptcha/js/model/skipRefreshCaptcha'],function(skipRefreshCaptcha){'use strict';var defaultCaptchaMixin={refresh:function(){if(!skipRefreshCaptcha.skip()){this._super();}else{skipRefreshCaptcha.skip(false);}}};return function(defaultCaptcha){return defaultCaptcha.extend(defaultCaptchaMixin);};});","Magento_PaypalCaptcha/js/view/payment/list-mixin.min.js":"define(['jquery','Magento_Captcha/js/model/captchaList'],function($,captchaList){'use strict';var mixin={formId:'co-payment-form',createComponent:function(payment){var component=this._super(payment);if(component.component==='Magento_Paypal/js/view/payment/method-renderer/payflowpro-method'){component.template='Magento_PaypalCaptcha/payment/payflowpro-form';$(window).off('clearTimeout').on('clearTimeout',this.clearTimeout.bind(this));}\nreturn component;},clearTimeout:function(timeoutID){var captcha=captchaList.getCaptchaByFormId(this.formId);if(captcha!==null){captcha.refresh();}\nclearTimeout(timeoutID);}};return function(target){return target.extend(mixin);};});","Magento_PaypalCaptcha/js/view/payment/method-renderer/payflowpro-method-mixin.min.js":"define(['Magento_PaypalCaptcha/js/model/skipRefreshCaptcha'],function(skipRefreshCaptcha){'use strict';var payflowProMethodMixin={placeOrder:function(){skipRefreshCaptcha.skip(true);this._super();}};return function(payflowProMethod){return payflowProMethod.extend(payflowProMethodMixin);};});","Magento_PaypalCaptcha/js/model/skipRefreshCaptcha.min.js":"define(['ko'],function(ko){'use strict';return{skip:ko.observable(false)};});","Magento_InventoryInStorePickupFrontend/js/checkout-data-ext.min.js":"define(['Magento_Customer/js/customer-data'],function(storage){'use strict';return function(checkoutData){var cacheKey='checkout-data',saveData=function(data){storage.set(cacheKey,data);},getData=function(){checkoutData.getSelectedShippingAddress();return storage.get(cacheKey)();};checkoutData.setSelectedPickupAddress=function(data){var obj=getData();obj.selectedPickupAddress=data;saveData(obj);};checkoutData.getSelectedPickupAddress=function(){return getData().selectedPickupAddress||null;};return checkoutData;};});","Magento_InventoryInStorePickupFrontend/js/view/store-pickup.min.js":"define(['uiComponent','underscore','jquery','knockout','uiRegistry','Magento_Checkout/js/model/quote','Magento_Checkout/js/action/select-shipping-method','Magento_Checkout/js/checkout-data','Magento_Checkout/js/model/shipping-service','Magento_Checkout/js/model/step-navigator','Magento_Checkout/js/model/shipping-rate-service','Magento_InventoryInStorePickupFrontend/js/model/shipping-rate-processor/store-pickup-address','Magento_InventoryInStorePickupFrontend/js/model/pickup-locations-service','Magento_InventoryInStorePickupFrontend/js/model/pickup-address-converter','Magento_Checkout/js/model/checkout-data-resolver','Magento_Checkout/js/action/select-shipping-address'],function(Component,_,$,ko,registry,quote,selectShippingMethodAction,checkoutData,shippingService,stepNavigator,shippingRateService,shippingRateProcessor,pickupLocationsService,pickupAddressConverter,checkoutDataResolver,selectShippingAddress){'use strict';return Component.extend({defaults:{template:'Magento_InventoryInStorePickupFrontend/store-pickup',deliveryMethodSelectorTemplate:'Magento_InventoryInStorePickupFrontend/delivery-method-selector',isVisible:false,isAvailable:false,isStorePickupSelected:false,rate:{'carrier_code':'instore','method_code':'pickup'},nearbySearchLimit:50,defaultCountry:window.checkoutConfig.defaultCountryId,delimiter:window.checkoutConfig.storePickupApiSearchTermDelimiter,rates:shippingService.getShippingRates(),inStoreMethod:null,lastSelectedNonPickUpShippingAddress:null},initialize:function(){this._super();shippingRateService.registerProcessor('store-pickup-address',shippingRateProcessor);this.convertAddressType(quote.shippingAddress());this.isStorePickupSelected.subscribe(function(){this.preselectLocation();},this);this.preselectLocation();this.syncWithShipping();},initObservable:function(){this._super().observe(['isVisible']);this.isStorePickupSelected=ko.pureComputed(function(){return _.isMatch(quote.shippingMethod(),this.rate);},this);this.isAvailable=ko.pureComputed(function(){return _.findWhere(this.rates(),{'carrier_code':this.rate['carrier_code'],'method_code':this.rate['method_code']});},this);return this;},syncWithShipping:function(){var shippingStep=_.findWhere(stepNavigator.steps(),{code:'shipping'});shippingStep.isVisible.subscribe(function(isShippingVisible){this.isVisible(this.isAvailable&&isShippingVisible);},this);this.isVisible(this.isAvailable&&shippingStep.isVisible());},selectShipping:function(){var nonPickupShippingMethod=_.find(this.rates(),function(rate){return(rate['carrier_code']!==this.rate['carrier_code']&&rate['method_code']!==this.rate['method_code']);},this),nonPickupShippingAddress;checkoutData.setSelectedShippingAddress(this.lastSelectedNonPickUpShippingAddress);this.selectShippingMethod(nonPickupShippingMethod);if(this.isStorePickupAddress(quote.shippingAddress())){nonPickupShippingAddress=checkoutDataResolver.getShippingAddressFromCustomerAddressList();if(nonPickupShippingAddress){selectShippingAddress(nonPickupShippingAddress);}}},selectStorePickup:function(){var pickupShippingMethod=_.findWhere(this.rates(),{'carrier_code':this.rate['carrier_code'],'method_code':this.rate['method_code']},this);this.lastSelectedNonPickUpShippingAddress=checkoutData.getSelectedShippingAddress();checkoutData.setSelectedShippingAddress(null);this.preselectLocation();this.selectShippingMethod(pickupShippingMethod);},selectShippingMethod:function(shippingMethod){selectShippingMethodAction(shippingMethod);checkoutData.setSelectedShippingRate(shippingMethod?shippingMethod['carrier_code']+'_'+shippingMethod['method_code']:null);},convertAddressType:function(shippingAddress){var pickUpAddress;if(!this.isStorePickupAddress(shippingAddress)&&this.isStorePickupSelected()){pickUpAddress=pickupAddressConverter.formatAddressToPickupAddress(shippingAddress);if(quote.shippingAddress()!==pickUpAddress){quote.shippingAddress(pickUpAddress);}}},preselectLocation:function(){var selectedLocation,shippingAddress,selectedPickupAddress,customAttributes,selectedSource,selectedSourceCode,nearestLocation,productsInfo=[],items=quote.getItems();if(!this.isStorePickupSelected()){return;}\nselectedLocation=pickupLocationsService.selectedLocation();if(selectedLocation){pickupLocationsService.selectForShipping(selectedLocation);return;}\nshippingAddress=quote.shippingAddress();customAttributes=shippingAddress.customAttributes||[];selectedSource=_.findWhere(customAttributes,{'attribute_code':'sourceCode'});if(selectedSource){selectedSourceCode=selectedSource.value;}\nif(!selectedSourceCode){selectedSourceCode=this.getPickupLocationCodeFromAddress(shippingAddress);}\nif(!selectedSourceCode){selectedPickupAddress=pickupLocationsService.getSelectedPickupAddress();selectedSourceCode=this.getPickupLocationCodeFromAddress(selectedPickupAddress);}\nif(selectedSourceCode){pickupLocationsService.getLocation(selectedSourceCode).then(function(location){pickupLocationsService.selectForShipping(location);});}else if(shippingAddress.city&&shippingAddress.postcode){_.each(items,function(item){if(item['qty_options']===undefined||item['qty_options'].length===0){productsInfo.push({sku:item.sku});}});pickupLocationsService.getNearbyLocations({area:{radius:this.nearbySearchRadius,searchTerm:shippingAddress.postcode+this.delimiter+\nshippingAddress.countryId||this.defaultCountry},extensionAttributes:{productsInfo:productsInfo},pageSize:this.nearbySearchLimit}).then(function(locations){nearestLocation=locations[0];if(nearestLocation){pickupLocationsService.selectForShipping(nearestLocation);}});}},isStorePickupAddress:function(address){return address.getType()==='store-pickup-address';},getPickupLocationCodeFromAddress:function(address){if(address&&!_.isEmpty(address.extensionAttributes)&&address.extensionAttributes['pickup_location_code']){return address.extensionAttributes['pickup_location_code'];}\nreturn null;}});});","Magento_InventoryInStorePickupFrontend/js/view/store-selector.min.js":"define(['jquery','underscore','uiComponent','uiRegistry','Magento_Ui/js/modal/modal','Magento_Checkout/js/model/quote','Magento_Customer/js/model/customer','Magento_Checkout/js/model/step-navigator','Magento_Checkout/js/model/address-converter','Magento_Checkout/js/action/set-shipping-information','Magento_InventoryInStorePickupFrontend/js/model/pickup-locations-service'],function($,_,Component,registry,modal,quote,customer,stepNavigator,addressConverter,setShippingInformationAction,pickupLocationsService){'use strict';return Component.extend({defaults:{template:'Magento_InventoryInStorePickupFrontend/store-selector',selectedLocationTemplate:'Magento_InventoryInStorePickupFrontend/store-selector/selected-location',storeSelectorPopupTemplate:'Magento_InventoryInStorePickupFrontend/store-selector/popup',storeSelectorPopupItemTemplate:'Magento_InventoryInStorePickupFrontend/store-selector/popup-item',loginFormSelector:'#store-selector form[data-role=email-with-possible-login]',defaultCountryId:window.checkoutConfig.defaultCountryId,delimiter:window.checkoutConfig.storePickupApiSearchTermDelimiter,selectedLocation:pickupLocationsService.selectedLocation,quoteIsVirtual:quote.isVirtual,searchQuery:'',nearbyLocations:null,isLoading:pickupLocationsService.isLoading,popup:null,searchDebounceTimeout:300,imports:{nearbySearchRadius:'${ $.parentName }:nearbySearchRadius',nearbySearchLimit:'${ $.parentName }:nearbySearchLimit'}},initialize:function(){var updateNearbyLocations,country;this._super();updateNearbyLocations=_.debounce(function(searchQuery){country=quote.shippingAddress()&&quote.shippingAddress().countryId?quote.shippingAddress().countryId:this.defaultCountryId;searchQuery=this.getSearchTerm(searchQuery,country);this.updateNearbyLocations(searchQuery);},this.searchDebounceTimeout).bind(this);this.searchQuery.subscribe(updateNearbyLocations);return this;},initObservable:function(){return this._super().observe(['nearbyLocations','searchQuery']);},setPickupInformation:function(){if(this.validatePickupInformation()){setShippingInformationAction().done(function(){stepNavigator.next();});}},getPopup:function(){if(!this.popup){this.popup=modal(this.popUpList.options,$(this.popUpList.element));}\nreturn this.popup;},getSearchTerm:function(searchQuery,country){return searchQuery?searchQuery+this.delimiter+country:searchQuery;},openPopup:function(){var shippingAddress=quote.shippingAddress(),country=shippingAddress.countryId?shippingAddress.countryId:this.defaultCountryId,searchTerm='';this.getPopup().openModal();if(shippingAddress.city&&shippingAddress.postcode){searchTerm=this.getSearchTerm(shippingAddress.postcode,country);}\nthis.updateNearbyLocations(searchTerm);},selectPickupLocation:function(location){pickupLocationsService.selectForShipping(location);this.getPopup().closeModal();},isPickupLocationSelected:function(location){return _.isEqual(this.selectedLocation(),location);},updateNearbyLocations:function(searchQuery){var self=this,productsInfo=[],items=quote.getItems(),searchCriteria;_.each(items,function(item){if(item['qty_options']===undefined||item['qty_options'].length===0){productsInfo.push({sku:item.sku});}});searchCriteria={extensionAttributes:{productsInfo:productsInfo},pageSize:this.nearbySearchLimit};if(searchQuery){searchCriteria.area={radius:this.nearbySearchRadius,searchTerm:searchQuery};}\nreturn pickupLocationsService.getNearbyLocations(searchCriteria).then(function(locations){self.nearbyLocations(locations);}).fail(function(){self.nearbyLocations([]);});},validatePickupInformation:function(){var emailValidationResult,loginFormSelector=this.loginFormSelector;if(!customer.isLoggedIn()){$(loginFormSelector).validation();emailValidationResult=$(loginFormSelector+' input[name=username]').valid()?true:false;if(!emailValidationResult){$(this.loginFormSelector+' input[name=username]').trigger('focus');return false;}}\nreturn true;}});});","Magento_InventoryInStorePickupFrontend/js/view/shipping-information-ext.min.js":"define(['Magento_Checkout/js/model/quote'],function(quote){'use strict';var storePickupShippingInformation={defaults:{template:'Magento_InventoryInStorePickupFrontend/shipping-information'},getShippingMethodTitle:function(){var shippingMethod=quote.shippingMethod(),locationName='',title;if(!this.isStorePickup()){return this._super();}\ntitle=shippingMethod['carrier_title']+' - '+shippingMethod['method_title'];if(quote.shippingAddress().firstname!==undefined){locationName=quote.shippingAddress().firstname+' '+quote.shippingAddress().lastname;title+=' \"'+locationName+'\"';}\nreturn title;},isStorePickup:function(){var shippingMethod=quote.shippingMethod(),isStorePickup=false;if(shippingMethod!==null){isStorePickup=shippingMethod['carrier_code']==='instore'&&shippingMethod['method_code']==='pickup';}\nreturn isStorePickup;}};return function(shippingInformation){return shippingInformation.extend(storePickupShippingInformation);};});","Magento_InventoryInStorePickupFrontend/js/view/form/element/email.min.js":"define(['jquery','Magento_Checkout/js/view/form/element/email'],function($,Component){'use strict';return Component.extend({defaults:{template:'Magento_InventoryInStorePickupFrontend/form/element/email',links:{email:'checkout.steps.shipping-step.shippingAddress.customer-email:email'}}});});","Magento_InventoryInStorePickupFrontend/js/model/pickup-address-converter.min.js":"define(['underscore'],function(_){'use strict';return{formatAddressToPickupAddress:function(address){var sourceCode=_.findWhere(address.customAttributes,{'attribute_code':'sourceCode'});if(!sourceCode&&!_.isEmpty(address.extensionAttributes)&&address.extensionAttributes['pickup_location_code']){sourceCode={value:address.extensionAttributes['pickup_location_code']};}\nif(sourceCode&&address.getType()!=='store-pickup-address'){address=_.extend({},address,{saveInAddressBook:0,canUseForBilling:function(){return false;},getType:function(){return'store-pickup-address';},getKey:function(){return this.getType()+sourceCode.value;}});}\nreturn address;}};});","Magento_InventoryInStorePickupFrontend/js/model/checkout-data-resolver-ext.min.js":"define(['mage/utils/wrapper','Magento_Checkout/js/checkout-data','Magento_Checkout/js/action/select-shipping-address','Magento_Checkout/js/model/address-converter','Magento_InventoryInStorePickupFrontend/js/model/pickup-address-converter'],function(wrapper,checkoutData,selectShippingAddress,addressConverter,pickupAddressConverter){'use strict';return function(checkoutDataResolver){checkoutDataResolver.resolveShippingAddress=wrapper.wrapSuper(checkoutDataResolver.resolveShippingAddress,function(){var shippingAddress,pickUpAddress;if(checkoutData.getSelectedPickupAddress()&&checkoutData.getSelectedShippingAddress()){shippingAddress=addressConverter.formAddressDataToQuoteAddress(checkoutData.getSelectedPickupAddress());pickUpAddress=pickupAddressConverter.formatAddressToPickupAddress(shippingAddress);if(pickUpAddress.getKey()===checkoutData.getSelectedShippingAddress()){selectShippingAddress(pickUpAddress);return;}}\nthis._super();});return checkoutDataResolver;};});","Magento_InventoryInStorePickupFrontend/js/model/resource-url-manager.min.js":"define(['jquery','Magento_Checkout/js/model/resource-url-manager'],function($,resourceUrlManager){'use strict';return{getUrlForNearbyPickupLocations:function(salesChannelCode,searchCriteria){var urls={default:'/inventory/in-store-pickup/pickup-locations/'},criteria={searchRequest:{scopeCode:salesChannelCode}};searchCriteria={searchRequest:searchCriteria};return(resourceUrlManager.getUrl(urls,{})+'?'+\n$.param($.extend(true,criteria,searchCriteria)));},getUrlForPickupLocationsAssignedToSalesChannel:function(salesChannelType,salesChannelCode){var params={salesChannelType:salesChannelType,salesChannelCode:salesChannelCode},urls={default:'/inventory/in-store-pickup/pickup-locations-assigned-to-sales-channel/'+':salesChannelType/:salesChannelCode'};return resourceUrlManager.getUrl(urls,params);},getUrlForPickupLocation:function(salesChannelCode,pickupLocationCode){var urls={default:'/inventory/in-store-pickup/pickup-locations/'},searchRequest={searchRequest:{filters:{pickupLocationCode:{value:pickupLocationCode}},scopeCode:salesChannelCode}};return resourceUrlManager.getUrl(urls,{})+'?'+\n$.param(searchRequest);}};});","Magento_InventoryInStorePickupFrontend/js/model/quote-ext.min.js":"define(['ko','Magento_InventoryInStorePickupFrontend/js/model/pickup-address-converter'],function(ko,pickupAddressConverter){'use strict';return function(quote){var shippingAddress=quote.shippingAddress;quote.shippingAddress=ko.pureComputed({read:function(){return shippingAddress();},write:function(address){shippingAddress(pickupAddressConverter.formatAddressToPickupAddress(address));}});return quote;};});","Magento_InventoryInStorePickupFrontend/js/model/pickup-locations-service.min.js":"define(['jquery','knockout','Magento_InventoryInStorePickupFrontend/js/model/resource-url-manager','mage/storage','Magento_Customer/js/customer-data','Magento_Checkout/js/checkout-data','Magento_Checkout/js/model/address-converter','Magento_Checkout/js/action/select-shipping-address','underscore','mage/translate','mage/url','Magento_InventoryInStorePickupFrontend/js/model/pickup-address-converter'],function($,ko,resourceUrlManager,storage,customerData,checkoutData,addressConverter,selectShippingAddressAction,_,$t,url,pickupAddressConverter){'use strict';var websiteCode=window.checkoutConfig.websiteCode,countryData=customerData.get('directory-data');return{isLoading:ko.observable(false),selectedLocation:ko.observable(null),locationsCache:[],getLocation:function(sourceCode){var serviceUrl=resourceUrlManager.getUrlForPickupLocation(websiteCode,sourceCode);this.isLoading(true);return storage.get(serviceUrl,{},false).then(function(result){var addresses=result.items||[],address=addresses[0]||{};return this.formatAddress(address);}.bind(this)).fail(function(response){this.processError(response);return[];}.bind(this)).always(function(){this.isLoading(false);}.bind(this));},getNearbyLocations:function(searchCriteria){var self=this,serviceUrl=resourceUrlManager.getUrlForNearbyPickupLocations(websiteCode,searchCriteria);if(self.locationsCache[serviceUrl]){return $.Deferred().resolve(self.locationsCache[serviceUrl]).promise();}\nself.isLoading(true);return storage.get(serviceUrl,{},false).then(function(result){self.locationsCache[serviceUrl]=_.map(result.items,function(address){return self.formatAddress(address);});return self.locationsCache[serviceUrl];}).fail(function(response){self.processError(response);return[];}).always(function(){self.isLoading(false);});},selectForShipping:function(location){var address=$.extend({},addressConverter.formAddressDataToQuoteAddress({firstname:location.name,lastname:'Store',street:location.street,city:location.city,postcode:location.postcode,'country_id':location['country_id'],telephone:location.telephone,'region_id':location['region_id'],'save_in_address_book':0,'extension_attributes':{'pickup_location_code':location['pickup_location_code']}}));address=pickupAddressConverter.formatAddressToPickupAddress(address);this.selectedLocation(location);selectShippingAddressAction(address);checkoutData.setSelectedShippingAddress(address.getKey());checkoutData.setSelectedPickupAddress(addressConverter.quoteAddressToFormAddressData(address));},formatAddress:function(address){return{name:address.name,description:address.description,latitude:address.latitude,longitude:address.longitude,street:[address.street],city:address.city,postcode:address.postcode,'country_id':address['country_id'],country:this.getCountryName(address['country_id']),telephone:address.phone,'region_id':address['region_id'],region:this.getRegionName(address['country_id'],address['region_id']),'pickup_location_code':address['pickup_location_code']};},getCountryName:function(countryId){return countryData()[countryId]!==undefined?countryData()[countryId].name:'';},getRegionName:function(countryId,regionId){var regions=countryData()[countryId]?countryData()[countryId].regions:null;return regions&&regions[regionId]?regions[regionId].name:'';},processError:function(response){var expr=/([%])\\w+/g,error;if(response.status===401){window.location.replace(url.build('customer/account/login/'));return;}\ntry{error=JSON.parse(response.responseText);}catch(exception){error=$t('Something went wrong with your request. Please try again later.');}\nif(error.hasOwnProperty('parameters')){error=error.message.replace(expr,function(varName){varName=varName.substr(1);if(error.parameters.hasOwnProperty(varName)){return error.parameters[varName];}\nreturn error.parameters.shift();});}},getSelectedPickupAddress:function(){var shippingAddress,pickUpAddress;if(checkoutData.getSelectedPickupAddress()){shippingAddress=addressConverter.formAddressDataToQuoteAddress(checkoutData.getSelectedPickupAddress());pickUpAddress=pickupAddressConverter.formatAddressToPickupAddress(shippingAddress);return pickUpAddress;}\nreturn null;}};});","Magento_InventoryInStorePickupFrontend/js/model/shipping-rate-processor/store-pickup-address.min.js":"define([],function(){'use strict';return{getRates:function(address){}};});","Magento_OfflinePayments/js/view/payment/offline-payments.min.js":"define(['uiComponent','Magento_Checkout/js/model/payment/renderer-list'],function(Component,rendererList){'use strict';rendererList.push({type:'checkmo',component:'Magento_OfflinePayments/js/view/payment/method-renderer/checkmo-method'},{type:'banktransfer',component:'Magento_OfflinePayments/js/view/payment/method-renderer/banktransfer-method'},{type:'cashondelivery',component:'Magento_OfflinePayments/js/view/payment/method-renderer/cashondelivery-method'},{type:'purchaseorder',component:'Magento_OfflinePayments/js/view/payment/method-renderer/purchaseorder-method'});return Component.extend({});});","Magento_OfflinePayments/js/view/payment/method-renderer/checkmo-method.min.js":"define(['Magento_Checkout/js/view/payment/default'],function(Component){'use strict';return Component.extend({defaults:{template:'Magento_OfflinePayments/payment/checkmo'},getMailingAddress:function(){return window.checkoutConfig.payment.checkmo.mailingAddress;},getPayableTo:function(){return window.checkoutConfig.payment.checkmo.payableTo;}});});","Magento_OfflinePayments/js/view/payment/method-renderer/purchaseorder-method.min.js":"define(['Magento_Checkout/js/view/payment/default','jquery','mage/validation'],function(Component,$){'use strict';return Component.extend({defaults:{template:'Magento_OfflinePayments/payment/purchaseorder-form',purchaseOrderNumber:''},initObservable:function(){this._super().observe('purchaseOrderNumber');return this;},getData:function(){return{method:this.item.method,'po_number':this.purchaseOrderNumber(),'additional_data':null};},validate:function(){var form='form[data-role=purchaseorder-form]';return $(form).validation()&&$(form).validation('isValid');}});});","Magento_OfflinePayments/js/view/payment/method-renderer/cashondelivery-method.min.js":"define(['Magento_Checkout/js/view/payment/default'],function(Component){'use strict';return Component.extend({defaults:{template:'Magento_OfflinePayments/payment/cashondelivery'},getInstructions:function(){return window.checkoutConfig.payment.instructions[this.item.method];}});});","Magento_OfflinePayments/js/view/payment/method-renderer/banktransfer-method.min.js":"define(['ko','Magento_Checkout/js/view/payment/default'],function(ko,Component){'use strict';return Component.extend({defaults:{template:'Magento_OfflinePayments/payment/banktransfer'},getInstructions:function(){return window.checkoutConfig.payment.instructions[this.item.method];}});});","js-cookie/cookie-wrapper.min.js":"define(['jquery','js-cookie/js.cookie'],function($,cookie){'use strict';window.Cookies=window.Cookies||cookie;var config=$.cookie=function(key,value,options){if(value!==undefined){options=$.extend({},config.defaults,options);return cookie.set(key,value,options);}\nvar result=key?undefined:{},cookies=document.cookie?document.cookie.split('; '):[],i;for(i=0;i<cookies.length;i++){var parts=cookies[i].split('='),name=config.raw?parts.shift():decodeURIComponent(parts.shift()),cookieValue=parts.join('=');if(key&&key===name){result=decodeURIComponent(cookieValue.replace('/\\\\+/g',' '));break;}\nif(!key&&(cookieValue=decodeURIComponent(cookieValue.replace('/\\\\+/g',' ')))!==undefined){result[name]=cookieValue;}}\nreturn result;};config.defaults={};$.removeCookie=function(key,options){if($.cookie(key)===undefined){return false;}\n$.cookie(key,'',$.extend({},options,{expires:-1}));return!$.cookie(key);};});","js-cookie/js.cookie.min.js":"/*! js-cookie v3.0.1 | MIT */;(function(global,factory){typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory():typeof define==='function'&&define.amd?define(factory):(global=global||self,(function(){var current=global.Cookies;var exports=global.Cookies=factory();exports.noConflict=function(){global.Cookies=current;return exports;};}()));}(this,(function(){'use strict';function assign(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){target[key]=source[key];}}\nreturn target}\nvar defaultConverter={read:function(value){if(value[0]==='\"'){value=value.slice(1,-1);}\nreturn value.replace(/(%[\\dA-F]{2})+/gi,decodeURIComponent)},write:function(value){return encodeURIComponent(value).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function init(converter,defaultAttributes){function set(key,value,attributes){if(typeof document==='undefined'){return}\nattributes=assign({},defaultAttributes,attributes);if(typeof attributes.expires==='number'){attributes.expires=new Date(Date.now()+attributes.expires*864e5);}\nif(attributes.expires){attributes.expires=attributes.expires.toUTCString();}\nkey=encodeURIComponent(key).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var stringifiedAttributes='';for(var attributeName in attributes){if(!attributes[attributeName]){continue}\nstringifiedAttributes+='; '+attributeName;if(attributes[attributeName]===true){continue}\nstringifiedAttributes+='='+attributes[attributeName].split(';')[0];}\nreturn(document.cookie=key+'='+converter.write(value,key)+stringifiedAttributes)}\nfunction get(key){if(typeof document==='undefined'||(arguments.length&&!key)){return}\nvar cookies=document.cookie?document.cookie.split('; '):[];var jar={};for(var i=0;i<cookies.length;i++){var parts=cookies[i].split('=');var value=parts.slice(1).join('=');try{var foundKey=decodeURIComponent(parts[0]);jar[foundKey]=converter.read(value,foundKey);if(key===foundKey){break}}catch(e){}}\nreturn key?jar[key]:jar}\nreturn Object.create({set:set,get:get,remove:function(key,attributes){set(key,'',assign({},attributes,{expires:-1}));},withAttributes:function(attributes){return init(this.converter,assign({},this.attributes,attributes))},withConverter:function(converter){return init(assign({},this.converter,converter),this.attributes)}},{attributes:{value:Object.freeze(defaultAttributes)},converter:{value:Object.freeze(converter)}})}\nvar api=init(defaultConverter,{path:'/'});return api;})));","Magento_GroupedProduct/js/product-ids-resolver.min.js":"define(['jquery','Magento_Catalog/js/product/view/product-ids','Magento_Catalog/js/product/view/product-info'],function($,productIds,productInfo){'use strict';return function(config,element){$(element).find('div[data-product-id]').each(function(){productIds.push($(this).data('productId').toString());productInfo.push({'id':$(this).data('productId').toString()});});return productIds();};});","Mageplaza_Core/js/ion.rangeSlider.min.js":"// Ion.RangeSlider | version 2.1.6 | https://github.com/IonDen/ion.rangeSlider\r\n;(function(f){\"function\"===typeof define&&define.amd?define([\"jquery\"],function(p){return f(p,document,window,navigator)}):\"object\"===typeof exports?f(require(\"jquery\"),document,window,navigator):f(jQuery,document,window,navigator)})(function(f,p,h,t,q){var u=0,m=function(){var a=t.userAgent,b=/msie\\s\\d+/i;return 0<a.search(b)&&(a=b.exec(a).toString(),a=a.split(\" \")[1],9>a)?(f(\"html\").addClass(\"lt-ie9\"),!0):!1}();Function.prototype.bind||(Function.prototype.bind=function(a){var b=this,d=[].slice;if(\"function\"!=\r\n    typeof b)throw new TypeError;var c=d.call(arguments,1),e=function(){if(this instanceof e){var g=function(){};g.prototype=b.prototype;var g=new g,l=b.apply(g,c.concat(d.call(arguments)));return Object(l)===l?l:g}return b.apply(a,c.concat(d.call(arguments)))};return e});Array.prototype.indexOf||(Array.prototype.indexOf=function(a,b){var d;if(null==this)throw new TypeError('\"this\" is null or not defined');var c=Object(this),e=c.length>>>0;if(0===e)return-1;d=+b||0;Infinity===Math.abs(d)&&(d=0);if(d>=\r\n    e)return-1;for(d=Math.max(0<=d?d:e-Math.abs(d),0);d<e;){if(d in c&&c[d]===a)return d;d++}return-1});var r=function(a,b,d){this.VERSION=\"2.1.6\";this.input=a;this.plugin_count=d;this.old_to=this.old_from=this.update_tm=this.calc_count=this.current_plugin=0;this.raf_id=this.old_min_interval=null;this.is_update=this.is_key=this.no_diapason=this.force_redraw=this.dragging=!1;this.is_start=this.is_first_update=!0;this.is_click=this.is_resize=this.is_active=this.is_finish=!1;b=b||{};this.$cache={win:f(h),\r\n    body:f(p.body),input:f(a),cont:null,rs:null,min:null,max:null,from:null,to:null,single:null,bar:null,line:null,s_single:null,s_from:null,s_to:null,shad_single:null,shad_from:null,shad_to:null,edge:null,grid:null,grid_labels:[]};this.coords={x_gap:0,x_pointer:0,w_rs:0,w_rs_old:0,w_handle:0,p_gap:0,p_gap_left:0,p_gap_right:0,p_step:0,p_pointer:0,p_handle:0,p_single_fake:0,p_single_real:0,p_from_fake:0,p_from_real:0,p_to_fake:0,p_to_real:0,p_bar_x:0,p_bar_w:0,grid_gap:0,big_num:0,big:[],big_w:[],big_p:[],\r\n    big_x:[]};this.labels={w_min:0,w_max:0,w_from:0,w_to:0,w_single:0,p_min:0,p_max:0,p_from_fake:0,p_from_left:0,p_to_fake:0,p_to_left:0,p_single_fake:0,p_single_left:0};var c=this.$cache.input;a=c.prop(\"value\");var e;d={type:\"single\",min:10,max:100,from:null,to:null,step:1,min_interval:0,max_interval:0,drag_interval:!1,values:[],p_values:[],from_fixed:!1,from_min:null,from_max:null,from_shadow:!1,to_fixed:!1,to_min:null,to_max:null,to_shadow:!1,prettify_enabled:!0,prettify_separator:\" \",prettify:null,\r\n    force_edges:!1,keyboard:!1,keyboard_step:5,grid:!1,grid_margin:!0,grid_num:4,grid_snap:!1,hide_min_max:!1,hide_from_to:!1,prefix:\"\",postfix:\"\",max_postfix:\"\",decorate_both:!0,values_separator:\" \\u2014 \",input_values_separator:\";\",disable:!1,onStart:null,onChange:null,onFinish:null,onUpdate:null};\"INPUT\"!==c[0].nodeName&&console&&console.warn&&console.warn(\"Base element should be <input>!\",c[0]);c={type:c.data(\"type\"),min:c.data(\"min\"),max:c.data(\"max\"),from:c.data(\"from\"),to:c.data(\"to\"),step:c.data(\"step\"),\r\n    min_interval:c.data(\"minInterval\"),max_interval:c.data(\"maxInterval\"),drag_interval:c.data(\"dragInterval\"),values:c.data(\"values\"),from_fixed:c.data(\"fromFixed\"),from_min:c.data(\"fromMin\"),from_max:c.data(\"fromMax\"),from_shadow:c.data(\"fromShadow\"),to_fixed:c.data(\"toFixed\"),to_min:c.data(\"toMin\"),to_max:c.data(\"toMax\"),to_shadow:c.data(\"toShadow\"),prettify_enabled:c.data(\"prettifyEnabled\"),prettify_separator:c.data(\"prettifySeparator\"),force_edges:c.data(\"forceEdges\"),keyboard:c.data(\"keyboard\"),\r\n    keyboard_step:c.data(\"keyboardStep\"),grid:c.data(\"grid\"),grid_margin:c.data(\"gridMargin\"),grid_num:c.data(\"gridNum\"),grid_snap:c.data(\"gridSnap\"),hide_min_max:c.data(\"hideMinMax\"),hide_from_to:c.data(\"hideFromTo\"),prefix:c.data(\"prefix\"),postfix:c.data(\"postfix\"),max_postfix:c.data(\"maxPostfix\"),decorate_both:c.data(\"decorateBoth\"),values_separator:c.data(\"valuesSeparator\"),input_values_separator:c.data(\"inputValuesSeparator\"),disable:c.data(\"disable\")};c.values=c.values&&c.values.split(\",\");for(e in c)c.hasOwnProperty(e)&&\r\n(c[e]!==q&&\"\"!==c[e]||delete c[e]);a!==q&&\"\"!==a&&(a=a.split(c.input_values_separator||b.input_values_separator||\";\"),a[0]&&a[0]==+a[0]&&(a[0]=+a[0]),a[1]&&a[1]==+a[1]&&(a[1]=+a[1]),b&&b.values&&b.values.length?(d.from=a[0]&&b.values.indexOf(a[0]),d.to=a[1]&&b.values.indexOf(a[1])):(d.from=a[0]&&+a[0],d.to=a[1]&&+a[1]));f.extend(d,b);f.extend(d,c);this.options=d;this.update_check={};this.validate();this.result={input:this.$cache.input,slider:null,min:this.options.min,max:this.options.max,from:this.options.from,\r\n    from_percent:0,from_value:null,to:this.options.to,to_percent:0,to_value:null};this.init()};r.prototype={init:function(a){this.no_diapason=!1;this.coords.p_step=this.convertToPercent(this.options.step,!0);this.target=\"base\";this.toggleInput();this.append();this.setMinMax();a?(this.force_redraw=!0,this.calc(!0),this.callOnUpdate()):(this.force_redraw=!0,this.calc(!0),this.callOnStart());this.updateScene()},append:function(){this.$cache.input.before('<span class=\"irs js-irs-'+this.plugin_count+'\"></span>');\r\n        this.$cache.input.prop(\"readonly\",!0);this.$cache.cont=this.$cache.input.prev();this.result.slider=this.$cache.cont;this.$cache.cont.html('<span class=\"irs\"><span class=\"irs-line\" tabindex=\"-1\"><span class=\"irs-line-left\"></span><span class=\"irs-line-mid\"></span><span class=\"irs-line-right\"></span></span><span class=\"irs-min\">0</span><span class=\"irs-max\">1</span><span class=\"irs-from\">0</span><span class=\"irs-to\">0</span><span class=\"irs-single\">0</span></span><span class=\"irs-grid\"></span><span class=\"irs-bar\"></span>');\r\n        this.$cache.rs=this.$cache.cont.find(\".irs\");this.$cache.min=this.$cache.cont.find(\".irs-min\");this.$cache.max=this.$cache.cont.find(\".irs-max\");this.$cache.from=this.$cache.cont.find(\".irs-from\");this.$cache.to=this.$cache.cont.find(\".irs-to\");this.$cache.single=this.$cache.cont.find(\".irs-single\");this.$cache.bar=this.$cache.cont.find(\".irs-bar\");this.$cache.line=this.$cache.cont.find(\".irs-line\");this.$cache.grid=this.$cache.cont.find(\".irs-grid\");\"single\"===this.options.type?(this.$cache.cont.append('<span class=\"irs-bar-edge\"></span><span class=\"irs-shadow shadow-single\"></span><span class=\"irs-slider single\"></span>'),\r\n            this.$cache.edge=this.$cache.cont.find(\".irs-bar-edge\"),this.$cache.s_single=this.$cache.cont.find(\".single\"),this.$cache.from[0].style.visibility=\"hidden\",this.$cache.to[0].style.visibility=\"hidden\",this.$cache.shad_single=this.$cache.cont.find(\".shadow-single\")):(this.$cache.cont.append('<span class=\"irs-shadow shadow-from\"></span><span class=\"irs-shadow shadow-to\"></span><span class=\"irs-slider from\"></span><span class=\"irs-slider to\"></span>'),this.$cache.s_from=this.$cache.cont.find(\".from\"),\r\n            this.$cache.s_to=this.$cache.cont.find(\".to\"),this.$cache.shad_from=this.$cache.cont.find(\".shadow-from\"),this.$cache.shad_to=this.$cache.cont.find(\".shadow-to\"),this.setTopHandler());this.options.hide_from_to&&(this.$cache.from[0].style.display=\"none\",this.$cache.to[0].style.display=\"none\",this.$cache.single[0].style.display=\"none\");this.appendGrid();this.options.disable?(this.appendDisableMask(),this.$cache.input[0].disabled=!0):(this.$cache.cont.removeClass(\"irs-disabled\"),this.$cache.input[0].disabled=\r\n            !1,this.bindEvents());this.options.drag_interval&&(this.$cache.bar[0].style.cursor=\"ew-resize\")},setTopHandler:function(){var a=this.options.max,b=this.options.to;this.options.from>this.options.min&&b===a?this.$cache.s_from.addClass(\"type_last\"):b<a&&this.$cache.s_to.addClass(\"type_last\")},changeLevel:function(a){switch(a){case \"single\":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_single_fake);break;case \"from\":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_from_fake);\r\n        this.$cache.s_from.addClass(\"state_hover\");this.$cache.s_from.addClass(\"type_last\");this.$cache.s_to.removeClass(\"type_last\");break;case \"to\":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_to_fake);this.$cache.s_to.addClass(\"state_hover\");this.$cache.s_to.addClass(\"type_last\");this.$cache.s_from.removeClass(\"type_last\");break;case \"both\":this.coords.p_gap_left=this.toFixed(this.coords.p_pointer-this.coords.p_from_fake),this.coords.p_gap_right=this.toFixed(this.coords.p_to_fake-\r\n        this.coords.p_pointer),this.$cache.s_to.removeClass(\"type_last\"),this.$cache.s_from.removeClass(\"type_last\")}},appendDisableMask:function(){this.$cache.cont.append('<span class=\"irs-disable-mask\"></span>');this.$cache.cont.addClass(\"irs-disabled\")},remove:function(){this.$cache.cont.remove();this.$cache.cont=null;this.$cache.line.off(\"keydown.irs_\"+this.plugin_count);this.$cache.body.off(\"touchmove.irs_\"+this.plugin_count);this.$cache.body.off(\"mousemove.irs_\"+this.plugin_count);this.$cache.win.off(\"touchend.irs_\"+\r\n        this.plugin_count);this.$cache.win.off(\"mouseup.irs_\"+this.plugin_count);m&&(this.$cache.body.off(\"mouseup.irs_\"+this.plugin_count),this.$cache.body.off(\"mouseleave.irs_\"+this.plugin_count));this.$cache.grid_labels=[];this.coords.big=[];this.coords.big_w=[];this.coords.big_p=[];this.coords.big_x=[];cancelAnimationFrame(this.raf_id)},bindEvents:function(){if(!this.no_diapason){this.$cache.body.on(\"touchmove.irs_\"+this.plugin_count,this.pointerMove.bind(this));this.$cache.body.on(\"mousemove.irs_\"+this.plugin_count,\r\n        this.pointerMove.bind(this));this.$cache.win.on(\"touchend.irs_\"+this.plugin_count,this.pointerUp.bind(this));this.$cache.win.on(\"mouseup.irs_\"+this.plugin_count,this.pointerUp.bind(this));this.$cache.line.on(\"touchstart.irs_\"+this.plugin_count,this.pointerClick.bind(this,\"click\"));this.$cache.line.on(\"mousedown.irs_\"+this.plugin_count,this.pointerClick.bind(this,\"click\"));this.options.drag_interval&&\"double\"===this.options.type?(this.$cache.bar.on(\"touchstart.irs_\"+this.plugin_count,this.pointerDown.bind(this,\r\n        \"both\")),this.$cache.bar.on(\"mousedown.irs_\"+this.plugin_count,this.pointerDown.bind(this,\"both\"))):(this.$cache.bar.on(\"touchstart.irs_\"+this.plugin_count,this.pointerClick.bind(this,\"click\")),this.$cache.bar.on(\"mousedown.irs_\"+this.plugin_count,this.pointerClick.bind(this,\"click\")));\"single\"===this.options.type?(this.$cache.single.on(\"touchstart.irs_\"+this.plugin_count,this.pointerDown.bind(this,\"single\")),this.$cache.s_single.on(\"touchstart.irs_\"+this.plugin_count,this.pointerDown.bind(this,\"single\")),\r\n        this.$cache.shad_single.on(\"touchstart.irs_\"+this.plugin_count,this.pointerClick.bind(this,\"click\")),this.$cache.single.on(\"mousedown.irs_\"+this.plugin_count,this.pointerDown.bind(this,\"single\")),this.$cache.s_single.on(\"mousedown.irs_\"+this.plugin_count,this.pointerDown.bind(this,\"single\")),this.$cache.edge.on(\"mousedown.irs_\"+this.plugin_count,this.pointerClick.bind(this,\"click\")),this.$cache.shad_single.on(\"mousedown.irs_\"+this.plugin_count,this.pointerClick.bind(this,\"click\"))):(this.$cache.single.on(\"touchstart.irs_\"+\r\n        this.plugin_count,this.pointerDown.bind(this,null)),this.$cache.single.on(\"mousedown.irs_\"+this.plugin_count,this.pointerDown.bind(this,null)),this.$cache.from.on(\"touchstart.irs_\"+this.plugin_count,this.pointerDown.bind(this,\"from\")),this.$cache.s_from.on(\"touchstart.irs_\"+this.plugin_count,this.pointerDown.bind(this,\"from\")),this.$cache.to.on(\"touchstart.irs_\"+this.plugin_count,this.pointerDown.bind(this,\"to\")),this.$cache.s_to.on(\"touchstart.irs_\"+this.plugin_count,this.pointerDown.bind(this,\"to\")),\r\n        this.$cache.shad_from.on(\"touchstart.irs_\"+this.plugin_count,this.pointerClick.bind(this,\"click\")),this.$cache.shad_to.on(\"touchstart.irs_\"+this.plugin_count,this.pointerClick.bind(this,\"click\")),this.$cache.from.on(\"mousedown.irs_\"+this.plugin_count,this.pointerDown.bind(this,\"from\")),this.$cache.s_from.on(\"mousedown.irs_\"+this.plugin_count,this.pointerDown.bind(this,\"from\")),this.$cache.to.on(\"mousedown.irs_\"+this.plugin_count,this.pointerDown.bind(this,\"to\")),this.$cache.s_to.on(\"mousedown.irs_\"+\r\n        this.plugin_count,this.pointerDown.bind(this,\"to\")),this.$cache.shad_from.on(\"mousedown.irs_\"+this.plugin_count,this.pointerClick.bind(this,\"click\")),this.$cache.shad_to.on(\"mousedown.irs_\"+this.plugin_count,this.pointerClick.bind(this,\"click\")));if(this.options.keyboard)this.$cache.line.on(\"keydown.irs_\"+this.plugin_count,this.key.bind(this,\"keyboard\"));m&&(this.$cache.body.on(\"mouseup.irs_\"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.body.on(\"mouseleave.irs_\"+this.plugin_count,this.pointerUp.bind(this)))}},\r\n    pointerMove:function(a){this.dragging&&(this.coords.x_pointer=(a.pageX||a.originalEvent.touches&&a.originalEvent.touches[0].pageX)-this.coords.x_gap,this.calc())},pointerUp:function(a){this.current_plugin===this.plugin_count&&this.is_active&&(this.is_active=!1,this.$cache.cont.find(\".state_hover\").removeClass(\"state_hover\"),this.force_redraw=!0,m&&f(\"*\").prop(\"unselectable\",!1),this.updateScene(),this.restoreOriginalMinInterval(),(f.contains(this.$cache.cont[0],a.target)||this.dragging)&&this.callOnFinish(),\r\n        this.dragging=!1)},pointerDown:function(a,b){b.preventDefault();var d=b.pageX||b.originalEvent.touches&&b.originalEvent.touches[0].pageX;2!==b.button&&(\"both\"===a&&this.setTempMinInterval(),a||(a=this.target||\"from\"),this.current_plugin=this.plugin_count,this.target=a,this.dragging=this.is_active=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=d-this.coords.x_gap,this.calcPointerPercent(),this.changeLevel(a),m&&f(\"*\").prop(\"unselectable\",!0),this.$cache.line.trigger(\"focus\"),\r\n        this.updateScene())},pointerClick:function(a,b){b.preventDefault();var d=b.pageX||b.originalEvent.touches&&b.originalEvent.touches[0].pageX;2!==b.button&&(this.current_plugin=this.plugin_count,this.target=a,this.is_click=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=+(d-this.coords.x_gap).toFixed(),this.force_redraw=!0,this.calc(),this.$cache.line.trigger(\"focus\"))},key:function(a,b){if(!(this.current_plugin!==this.plugin_count||b.altKey||b.ctrlKey||b.shiftKey||b.metaKey)){switch(b.which){case 83:case 65:case 40:case 37:b.preventDefault();\r\n        this.moveByKey(!1);break;case 87:case 68:case 38:case 39:b.preventDefault(),this.moveByKey(!0)}return!0}},moveByKey:function(a){var b=this.coords.p_pointer,b=a?b+this.options.keyboard_step:b-this.options.keyboard_step;this.coords.x_pointer=this.toFixed(this.coords.w_rs/100*b);this.is_key=!0;this.calc()},setMinMax:function(){this.options&&(this.options.hide_min_max?(this.$cache.min[0].style.display=\"none\",this.$cache.max[0].style.display=\"none\"):(this.options.values.length?(this.$cache.min.html(this.decorate(this.options.p_values[this.options.min])),\r\n        this.$cache.max.html(this.decorate(this.options.p_values[this.options.max]))):(this.$cache.min.html(this.decorate(this._prettify(this.options.min),this.options.min)),this.$cache.max.html(this.decorate(this._prettify(this.options.max),this.options.max))),this.labels.w_min=this.$cache.min.outerWidth(!1),this.labels.w_max=this.$cache.max.outerWidth(!1)))},setTempMinInterval:function(){var a=this.result.to-this.result.from;null===this.old_min_interval&&(this.old_min_interval=this.options.min_interval);\r\n        this.options.min_interval=a},restoreOriginalMinInterval:function(){null!==this.old_min_interval&&(this.options.min_interval=this.old_min_interval,this.old_min_interval=null)},calc:function(a){if(this.options){this.calc_count++;if(10===this.calc_count||a)this.calc_count=0,this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.calcHandlePercent();if(this.coords.w_rs){this.calcPointerPercent();a=this.getHandleX();\"both\"===this.target&&(this.coords.p_gap=0,a=this.getHandleX());\"click\"===this.target&&(this.coords.p_gap=\r\n        this.coords.p_handle/2,a=this.getHandleX(),this.target=this.options.drag_interval?\"both_one\":this.chooseHandle(a));switch(this.target){case \"base\":var b=(this.options.max-this.options.min)/100;a=(this.result.from-this.options.min)/b;b=(this.result.to-this.options.min)/b;this.coords.p_single_real=this.toFixed(a);this.coords.p_from_real=this.toFixed(a);this.coords.p_to_real=this.toFixed(b);this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max);\r\n        this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max);this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max);this.coords.p_single_fake=this.convertToFakePercent(this.coords.p_single_real);this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real);this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real);this.target=null;break;case \"single\":if(this.options.from_fixed)break;\r\n        this.coords.p_single_real=this.convertToRealPercent(a);this.coords.p_single_real=this.calcWithStep(this.coords.p_single_real);this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max);this.coords.p_single_fake=this.convertToFakePercent(this.coords.p_single_real);break;case \"from\":if(this.options.from_fixed)break;this.coords.p_from_real=this.convertToRealPercent(a);this.coords.p_from_real=this.calcWithStep(this.coords.p_from_real);this.coords.p_from_real>\r\n    this.coords.p_to_real&&(this.coords.p_from_real=this.coords.p_to_real);this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max);this.coords.p_from_real=this.checkMinInterval(this.coords.p_from_real,this.coords.p_to_real,\"from\");this.coords.p_from_real=this.checkMaxInterval(this.coords.p_from_real,this.coords.p_to_real,\"from\");this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real);break;case \"to\":if(this.options.to_fixed)break;\r\n        this.coords.p_to_real=this.convertToRealPercent(a);this.coords.p_to_real=this.calcWithStep(this.coords.p_to_real);this.coords.p_to_real<this.coords.p_from_real&&(this.coords.p_to_real=this.coords.p_from_real);this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max);this.coords.p_to_real=this.checkMinInterval(this.coords.p_to_real,this.coords.p_from_real,\"to\");this.coords.p_to_real=this.checkMaxInterval(this.coords.p_to_real,this.coords.p_from_real,\"to\");\r\n        this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real);break;case \"both\":if(this.options.from_fixed||this.options.to_fixed)break;a=this.toFixed(a+.001*this.coords.p_handle);this.coords.p_from_real=this.convertToRealPercent(a)-this.coords.p_gap_left;this.coords.p_from_real=this.calcWithStep(this.coords.p_from_real);this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max);this.coords.p_from_real=this.checkMinInterval(this.coords.p_from_real,\r\n        this.coords.p_to_real,\"from\");this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real);this.coords.p_to_real=this.convertToRealPercent(a)+this.coords.p_gap_right;this.coords.p_to_real=this.calcWithStep(this.coords.p_to_real);this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max);this.coords.p_to_real=this.checkMinInterval(this.coords.p_to_real,this.coords.p_from_real,\"to\");this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real);\r\n        break;case \"both_one\":if(!this.options.from_fixed&&!this.options.to_fixed){var d=this.convertToRealPercent(a);a=this.result.to_percent-this.result.from_percent;var c=a/2,b=d-c,d=d+c;0>b&&(b=0,d=b+a);100<d&&(d=100,b=d-a);this.coords.p_from_real=this.calcWithStep(b);this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max);this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real);this.coords.p_to_real=this.calcWithStep(d);this.coords.p_to_real=\r\n        this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max);this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real)}}\"single\"===this.options.type?(this.coords.p_bar_x=this.coords.p_handle/2,this.coords.p_bar_w=this.coords.p_single_fake,this.result.from_percent=this.coords.p_single_real,this.result.from=this.convertToValue(this.coords.p_single_real),this.options.values.length&&(this.result.from_value=this.options.values[this.result.from])):(this.coords.p_bar_x=\r\n        this.toFixed(this.coords.p_from_fake+this.coords.p_handle/2),this.coords.p_bar_w=this.toFixed(this.coords.p_to_fake-this.coords.p_from_fake),this.result.from_percent=this.coords.p_from_real,this.result.from=this.convertToValue(this.coords.p_from_real),this.result.to_percent=this.coords.p_to_real,this.result.to=this.convertToValue(this.coords.p_to_real),this.options.values.length&&(this.result.from_value=this.options.values[this.result.from],this.result.to_value=this.options.values[this.result.to]));\r\n        this.calcMinMax();this.calcLabels()}}},calcPointerPercent:function(){this.coords.w_rs?(0>this.coords.x_pointer||isNaN(this.coords.x_pointer)?this.coords.x_pointer=0:this.coords.x_pointer>this.coords.w_rs&&(this.coords.x_pointer=this.coords.w_rs),this.coords.p_pointer=this.toFixed(this.coords.x_pointer/this.coords.w_rs*100)):this.coords.p_pointer=0},convertToRealPercent:function(a){return a/(100-this.coords.p_handle)*100},convertToFakePercent:function(a){return a/100*(100-this.coords.p_handle)},getHandleX:function(){var a=\r\n        100-this.coords.p_handle,b=this.toFixed(this.coords.p_pointer-this.coords.p_gap);0>b?b=0:b>a&&(b=a);return b},calcHandlePercent:function(){this.coords.w_handle=\"single\"===this.options.type?this.$cache.s_single.outerWidth(!1):this.$cache.s_from.outerWidth(!1);this.coords.p_handle=this.toFixed(this.coords.w_handle/this.coords.w_rs*100)},chooseHandle:function(a){return\"single\"===this.options.type?\"single\":a>=this.coords.p_from_real+(this.coords.p_to_real-this.coords.p_from_real)/2?this.options.to_fixed?\r\n        \"from\":\"to\":this.options.from_fixed?\"to\":\"from\"},calcMinMax:function(){this.coords.w_rs&&(this.labels.p_min=this.labels.w_min/this.coords.w_rs*100,this.labels.p_max=this.labels.w_max/this.coords.w_rs*100)},calcLabels:function(){this.coords.w_rs&&!this.options.hide_from_to&&(\"single\"===this.options.type?(this.labels.w_single=this.$cache.single.outerWidth(!1),this.labels.p_single_fake=this.labels.w_single/this.coords.w_rs*100,this.labels.p_single_left=this.coords.p_single_fake+this.coords.p_handle/\r\n        2-this.labels.p_single_fake/2):(this.labels.w_from=this.$cache.from.outerWidth(!1),this.labels.p_from_fake=this.labels.w_from/this.coords.w_rs*100,this.labels.p_from_left=this.coords.p_from_fake+this.coords.p_handle/2-this.labels.p_from_fake/2,this.labels.p_from_left=this.toFixed(this.labels.p_from_left),this.labels.p_from_left=this.checkEdges(this.labels.p_from_left,this.labels.p_from_fake),this.labels.w_to=this.$cache.to.outerWidth(!1),this.labels.p_to_fake=this.labels.w_to/this.coords.w_rs*100,\r\n        this.labels.p_to_left=this.coords.p_to_fake+this.coords.p_handle/2-this.labels.p_to_fake/2,this.labels.p_to_left=this.toFixed(this.labels.p_to_left),this.labels.p_to_left=this.checkEdges(this.labels.p_to_left,this.labels.p_to_fake),this.labels.w_single=this.$cache.single.outerWidth(!1),this.labels.p_single_fake=this.labels.w_single/this.coords.w_rs*100,this.labels.p_single_left=(this.labels.p_from_left+this.labels.p_to_left+this.labels.p_to_fake)/2-this.labels.p_single_fake/2,this.labels.p_single_left=\r\n        this.toFixed(this.labels.p_single_left)),this.labels.p_single_left=this.checkEdges(this.labels.p_single_left,this.labels.p_single_fake))},updateScene:function(){this.raf_id&&(cancelAnimationFrame(this.raf_id),this.raf_id=null);clearTimeout(this.update_tm);this.update_tm=null;this.options&&(this.drawHandles(),this.is_active?this.raf_id=requestAnimationFrame(this.updateScene.bind(this)):this.update_tm=setTimeout(this.updateScene.bind(this),300))},drawHandles:function(){this.coords.w_rs=this.$cache.rs.outerWidth(!1);\r\n        if(this.coords.w_rs){this.coords.w_rs!==this.coords.w_rs_old&&(this.target=\"base\",this.is_resize=!0);if(this.coords.w_rs!==this.coords.w_rs_old||this.force_redraw)this.setMinMax(),this.calc(!0),this.drawLabels(),this.options.grid&&(this.calcGridMargin(),this.calcGridLabels()),this.force_redraw=!0,this.coords.w_rs_old=this.coords.w_rs,this.drawShadow();if(this.coords.w_rs&&(this.dragging||this.force_redraw||this.is_key)){if(this.old_from!==this.result.from||this.old_to!==this.result.to||this.force_redraw||\r\n            this.is_key){this.drawLabels();this.$cache.bar[0].style.left=this.coords.p_bar_x+\"%\";this.$cache.bar[0].style.width=this.coords.p_bar_w+\"%\";if(\"single\"===this.options.type)this.$cache.s_single[0].style.left=this.coords.p_single_fake+\"%\";else{this.$cache.s_from[0].style.left=this.coords.p_from_fake+\"%\";this.$cache.s_to[0].style.left=this.coords.p_to_fake+\"%\";if(this.old_from!==this.result.from||this.force_redraw)this.$cache.from[0].style.left=this.labels.p_from_left+\"%\";if(this.old_to!==this.result.to||\r\n            this.force_redraw)this.$cache.to[0].style.left=this.labels.p_to_left+\"%\"}this.$cache.single[0].style.left=this.labels.p_single_left+\"%\";this.writeToInput();this.old_from===this.result.from&&this.old_to===this.result.to||this.is_start||(this.$cache.input.trigger(\"change\"),this.$cache.input.trigger(\"input\"));this.old_from=this.result.from;this.old_to=this.result.to;this.is_resize||this.is_update||this.is_start||this.is_finish||this.callOnChange();if(this.is_key||this.is_click||this.is_first_update)this.is_first_update=\r\n            this.is_click=this.is_key=!1,this.callOnFinish();this.is_finish=this.is_resize=this.is_update=!1}this.force_redraw=this.is_click=this.is_key=this.is_start=!1}}},drawLabels:function(){if(this.options){var a=this.options.values.length,b=this.options.p_values,d;if(!this.options.hide_from_to)if(\"single\"===this.options.type)a=a?this.decorate(b[this.result.from]):this.decorate(this._prettify(this.result.from),this.result.from),this.$cache.single.html(a),this.calcLabels(),this.$cache.min[0].style.visibility=\r\n        this.labels.p_single_left<this.labels.p_min+1?\"hidden\":\"visible\",this.$cache.max[0].style.visibility=this.labels.p_single_left+this.labels.p_single_fake>100-this.labels.p_max-1?\"hidden\":\"visible\";else{a?(this.options.decorate_both?(a=this.decorate(b[this.result.from]),a+=this.options.values_separator,a+=this.decorate(b[this.result.to])):a=this.decorate(b[this.result.from]+this.options.values_separator+b[this.result.to]),d=this.decorate(b[this.result.from]),b=this.decorate(b[this.result.to])):(this.options.decorate_both?\r\n        (a=this.decorate(this._prettify(this.result.from),this.result.from),a+=this.options.values_separator,a+=this.decorate(this._prettify(this.result.to),this.result.to)):a=this.decorate(this._prettify(this.result.from)+this.options.values_separator+this._prettify(this.result.to),this.result.to),d=this.decorate(this._prettify(this.result.from),this.result.from),b=this.decorate(this._prettify(this.result.to),this.result.to));this.$cache.single.html(a);this.$cache.from.html(d);this.$cache.to.html(b);this.calcLabels();\r\n        b=Math.min(this.labels.p_single_left,this.labels.p_from_left);a=this.labels.p_single_left+this.labels.p_single_fake;d=this.labels.p_to_left+this.labels.p_to_fake;var c=Math.max(a,d);this.labels.p_from_left+this.labels.p_from_fake>=this.labels.p_to_left?(this.$cache.from[0].style.visibility=\"hidden\",this.$cache.to[0].style.visibility=\"hidden\",this.$cache.single[0].style.visibility=\"visible\",this.result.from===this.result.to?(\"from\"===this.target?this.$cache.from[0].style.visibility=\"visible\":\"to\"===\r\n        this.target?this.$cache.to[0].style.visibility=\"visible\":this.target||(this.$cache.from[0].style.visibility=\"visible\"),this.$cache.single[0].style.visibility=\"hidden\",c=d):(this.$cache.from[0].style.visibility=\"hidden\",this.$cache.to[0].style.visibility=\"hidden\",this.$cache.single[0].style.visibility=\"visible\",c=Math.max(a,d))):(this.$cache.from[0].style.visibility=\"visible\",this.$cache.to[0].style.visibility=\"visible\",this.$cache.single[0].style.visibility=\"hidden\");this.$cache.min[0].style.visibility=\r\n            b<this.labels.p_min+1?\"hidden\":\"visible\";this.$cache.max[0].style.visibility=c>100-this.labels.p_max-1?\"hidden\":\"visible\"}}},drawShadow:function(){var a=this.options,b=this.$cache,d=\"number\"===typeof a.from_min&&!isNaN(a.from_min),c=\"number\"===typeof a.from_max&&!isNaN(a.from_max),e=\"number\"===typeof a.to_min&&!isNaN(a.to_min),g=\"number\"===typeof a.to_max&&!isNaN(a.to_max);\"single\"===a.type?a.from_shadow&&(d||c)?(d=this.convertToPercent(d?a.from_min:a.min),c=this.convertToPercent(c?a.from_max:a.max)-\r\n        d,d=this.toFixed(d-this.coords.p_handle/100*d),c=this.toFixed(c-this.coords.p_handle/100*c),d+=this.coords.p_handle/2,b.shad_single[0].style.display=\"block\",b.shad_single[0].style.left=d+\"%\",b.shad_single[0].style.width=c+\"%\"):b.shad_single[0].style.display=\"none\":(a.from_shadow&&(d||c)?(d=this.convertToPercent(d?a.from_min:a.min),c=this.convertToPercent(c?a.from_max:a.max)-d,d=this.toFixed(d-this.coords.p_handle/100*d),c=this.toFixed(c-this.coords.p_handle/100*c),d+=this.coords.p_handle/2,b.shad_from[0].style.display=\r\n        \"block\",b.shad_from[0].style.left=d+\"%\",b.shad_from[0].style.width=c+\"%\"):b.shad_from[0].style.display=\"none\",a.to_shadow&&(e||g)?(e=this.convertToPercent(e?a.to_min:a.min),a=this.convertToPercent(g?a.to_max:a.max)-e,e=this.toFixed(e-this.coords.p_handle/100*e),a=this.toFixed(a-this.coords.p_handle/100*a),e+=this.coords.p_handle/2,b.shad_to[0].style.display=\"block\",b.shad_to[0].style.left=e+\"%\",b.shad_to[0].style.width=a+\"%\"):b.shad_to[0].style.display=\"none\")},writeToInput:function(){\"single\"===\r\n    this.options.type?(this.options.values.length?this.$cache.input.prop(\"value\",this.result.from_value):this.$cache.input.prop(\"value\",this.result.from),this.$cache.input.data(\"from\",this.result.from)):(this.options.values.length?this.$cache.input.prop(\"value\",this.result.from_value+this.options.input_values_separator+this.result.to_value):this.$cache.input.prop(\"value\",this.result.from+this.options.input_values_separator+this.result.to),this.$cache.input.data(\"from\",this.result.from),this.$cache.input.data(\"to\",\r\n        this.result.to))},callOnStart:function(){this.writeToInput();if(this.options.onStart&&\"function\"===typeof this.options.onStart)this.options.onStart(this.result)},callOnChange:function(){this.writeToInput();if(this.options.onChange&&\"function\"===typeof this.options.onChange)this.options.onChange(this.result)},callOnFinish:function(){this.writeToInput();if(this.options.onFinish&&\"function\"===typeof this.options.onFinish)this.options.onFinish(this.result)},callOnUpdate:function(){this.writeToInput();\r\n        if(this.options.onUpdate&&\"function\"===typeof this.options.onUpdate)this.options.onUpdate(this.result)},toggleInput:function(){this.$cache.input.toggleClass(\"irs-hidden-input\")},convertToPercent:function(a,b){var d=this.options.max-this.options.min;return d?this.toFixed((b?a:a-this.options.min)/(d/100)):(this.no_diapason=!0,0)},convertToValue:function(a){var b=this.options.min,d=this.options.max,c=b.toString().split(\".\")[1],e=d.toString().split(\".\")[1],g,l,f=0,k=0;if(0===a)return this.options.min;\r\n        if(100===a)return this.options.max;c&&(f=g=c.length);e&&(f=l=e.length);g&&l&&(f=g>=l?g:l);0>b&&(k=Math.abs(b),b=+(b+k).toFixed(f),d=+(d+k).toFixed(f));a=(d-b)/100*a+b;(b=this.options.step.toString().split(\".\")[1])?a=+a.toFixed(b.length):(a/=this.options.step,a*=this.options.step,a=+a.toFixed(0));k&&(a-=k);k=b?+a.toFixed(b.length):this.toFixed(a);k<this.options.min?k=this.options.min:k>this.options.max&&(k=this.options.max);return k},calcWithStep:function(a){var b=Math.round(a/this.coords.p_step)*\r\n        this.coords.p_step;100<b&&(b=100);100===a&&(b=100);return this.toFixed(b)},checkMinInterval:function(a,b,d){var c=this.options;if(!c.min_interval)return a;a=this.convertToValue(a);b=this.convertToValue(b);\"from\"===d?b-a<c.min_interval&&(a=b-c.min_interval):a-b<c.min_interval&&(a=b+c.min_interval);return this.convertToPercent(a)},checkMaxInterval:function(a,b,d){var c=this.options;if(!c.max_interval)return a;a=this.convertToValue(a);b=this.convertToValue(b);\"from\"===d?b-a>c.max_interval&&(a=b-c.max_interval):\r\n        a-b>c.max_interval&&(a=b+c.max_interval);return this.convertToPercent(a)},checkDiapason:function(a,b,d){a=this.convertToValue(a);var c=this.options;\"number\"!==typeof b&&(b=c.min);\"number\"!==typeof d&&(d=c.max);a<b&&(a=b);a>d&&(a=d);return this.convertToPercent(a)},toFixed:function(a){a=a.toFixed(20);return+a},_prettify:function(a){return this.options.prettify_enabled?this.options.prettify&&\"function\"===typeof this.options.prettify?this.options.prettify(a):this.prettify(a):a},prettify:function(a){return a.toString().replace(/(\\d{1,3}(?=(?:\\d\\d\\d)+(?!\\d)))/g,\r\n        \"$1\"+this.options.prettify_separator)},checkEdges:function(a,b){if(!this.options.force_edges)return this.toFixed(a);0>a?a=0:a>100-b&&(a=100-b);return this.toFixed(a)},validate:function(){var a=this.options,b=this.result,d=a.values,c=d.length,e,g;\"string\"===typeof a.min&&(a.min=+a.min);\"string\"===typeof a.max&&(a.max=+a.max);\"string\"===typeof a.from&&(a.from=+a.from);\"string\"===typeof a.to&&(a.to=+a.to);\"string\"===typeof a.step&&(a.step=+a.step);\"string\"===typeof a.from_min&&(a.from_min=+a.from_min);\r\n        \"string\"===typeof a.from_max&&(a.from_max=+a.from_max);\"string\"===typeof a.to_min&&(a.to_min=+a.to_min);\"string\"===typeof a.to_max&&(a.to_max=+a.to_max);\"string\"===typeof a.keyboard_step&&(a.keyboard_step=+a.keyboard_step);\"string\"===typeof a.grid_num&&(a.grid_num=+a.grid_num);a.max<a.min&&(a.max=a.min);if(c)for(a.p_values=[],a.min=0,a.max=c-1,a.step=1,a.grid_num=a.max,a.grid_snap=!0,g=0;g<c;g++)e=+d[g],isNaN(e)?e=d[g]:(d[g]=e,e=this._prettify(e)),a.p_values.push(e);if(\"number\"!==typeof a.from||isNaN(a.from))a.from=\r\n            a.min;if(\"number\"!==typeof a.to||isNaN(a.to))a.to=a.max;\"single\"===a.type?(a.from<a.min&&(a.from=a.min),a.from>a.max&&(a.from=a.max)):(a.from<a.min&&(a.from=a.min),a.from>a.max&&(a.from=a.max),a.to<a.min&&(a.to=a.min),a.to>a.max&&(a.to=a.max),this.update_check.from&&(this.update_check.from!==a.from&&a.from>a.to&&(a.from=a.to),this.update_check.to!==a.to&&a.to<a.from&&(a.to=a.from)),a.from>a.to&&(a.from=a.to),a.to<a.from&&(a.to=a.from));if(\"number\"!==typeof a.step||isNaN(a.step)||!a.step||0>a.step)a.step=\r\n            1;if(\"number\"!==typeof a.keyboard_step||isNaN(a.keyboard_step)||!a.keyboard_step||0>a.keyboard_step)a.keyboard_step=5;\"number\"===typeof a.from_min&&a.from<a.from_min&&(a.from=a.from_min);\"number\"===typeof a.from_max&&a.from>a.from_max&&(a.from=a.from_max);\"number\"===typeof a.to_min&&a.to<a.to_min&&(a.to=a.to_min);\"number\"===typeof a.to_max&&a.from>a.to_max&&(a.to=a.to_max);if(b){b.min!==a.min&&(b.min=a.min);b.max!==a.max&&(b.max=a.max);if(b.from<b.min||b.from>b.max)b.from=a.from;if(b.to<b.min||b.to>\r\n            b.max)b.to=a.to}if(\"number\"!==typeof a.min_interval||isNaN(a.min_interval)||!a.min_interval||0>a.min_interval)a.min_interval=0;if(\"number\"!==typeof a.max_interval||isNaN(a.max_interval)||!a.max_interval||0>a.max_interval)a.max_interval=0;a.min_interval&&a.min_interval>a.max-a.min&&(a.min_interval=a.max-a.min);a.max_interval&&a.max_interval>a.max-a.min&&(a.max_interval=a.max-a.min)},decorate:function(a,b){var d=\"\",c=this.options;c.prefix&&(d+=c.prefix);d+=a;c.max_postfix&&(c.values.length&&a===c.p_values[c.max]?\r\n        (d+=c.max_postfix,c.postfix&&(d+=\" \")):b===c.max&&(d+=c.max_postfix,c.postfix&&(d+=\" \")));c.postfix&&(d+=c.postfix);return d},updateFrom:function(){this.result.from=this.options.from;this.result.from_percent=this.convertToPercent(this.result.from);this.options.values&&(this.result.from_value=this.options.values[this.result.from])},updateTo:function(){this.result.to=this.options.to;this.result.to_percent=this.convertToPercent(this.result.to);this.options.values&&(this.result.to_value=this.options.values[this.result.to])},\r\n    updateResult:function(){this.result.min=this.options.min;this.result.max=this.options.max;this.updateFrom();this.updateTo()},appendGrid:function(){if(this.options.grid){var a=this.options,b,d;b=a.max-a.min;var c=a.grid_num,e,g,f=4,h,k,m,n=\"\";this.calcGridMargin();a.grid_snap?(c=b/a.step,e=this.toFixed(a.step/(b/100))):e=this.toFixed(100/c);4<c&&(f=3);7<c&&(f=2);14<c&&(f=1);28<c&&(f=0);for(b=0;b<c+1;b++){h=f;g=this.toFixed(e*b);100<g&&(g=100,h-=2,0>h&&(h=0));this.coords.big[b]=g;k=(g-e*(b-1))/(h+1);\r\n        for(d=1;d<=h&&0!==g;d++)m=this.toFixed(g-k*d),n+='<span class=\"irs-grid-pol small\" style=\"left: '+m+'%\"></span>';n+='<span class=\"irs-grid-pol\" style=\"left: '+g+'%\"></span>';d=this.convertToValue(g);d=a.values.length?a.p_values[d]:this._prettify(d);n+='<span class=\"irs-grid-text js-grid-text-'+b+'\" style=\"left: '+g+'%\">'+d+\"</span>\"}this.coords.big_num=Math.ceil(c+1);this.$cache.cont.addClass(\"irs-with-grid\");this.$cache.grid.html(n);this.cacheGridLabels()}},cacheGridLabels:function(){var a,b,d=this.coords.big_num;\r\n        for(b=0;b<d;b++)a=this.$cache.grid.find(\".js-grid-text-\"+b),this.$cache.grid_labels.push(a);this.calcGridLabels()},calcGridLabels:function(){var a,b;b=[];var d=[],c=this.coords.big_num;for(a=0;a<c;a++)this.coords.big_w[a]=this.$cache.grid_labels[a].outerWidth(!1),this.coords.big_p[a]=this.toFixed(this.coords.big_w[a]/this.coords.w_rs*100),this.coords.big_x[a]=this.toFixed(this.coords.big_p[a]/2),b[a]=this.toFixed(this.coords.big[a]-this.coords.big_x[a]),d[a]=this.toFixed(b[a]+this.coords.big_p[a]);\r\n        this.options.force_edges&&(b[0]<-this.coords.grid_gap&&(b[0]=-this.coords.grid_gap,d[0]=this.toFixed(b[0]+this.coords.big_p[0]),this.coords.big_x[0]=this.coords.grid_gap),d[c-1]>100+this.coords.grid_gap&&(d[c-1]=100+this.coords.grid_gap,b[c-1]=this.toFixed(d[c-1]-this.coords.big_p[c-1]),this.coords.big_x[c-1]=this.toFixed(this.coords.big_p[c-1]-this.coords.grid_gap)));this.calcGridCollision(2,b,d);this.calcGridCollision(4,b,d);for(a=0;a<c;a++)b=this.$cache.grid_labels[a][0],this.coords.big_x[a]!==\r\n        Number.POSITIVE_INFINITY&&(b.style.marginLeft=-this.coords.big_x[a]+\"%\")},calcGridCollision:function(a,b,d){var c,e,g,f=this.coords.big_num;for(c=0;c<f;c+=a){e=c+a/2;if(e>=f)break;g=this.$cache.grid_labels[e][0];g.style.visibility=d[c]<=b[e]?\"visible\":\"hidden\"}},calcGridMargin:function(){this.options.grid_margin&&(this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.coords.w_rs&&(this.coords.w_handle=\"single\"===this.options.type?this.$cache.s_single.outerWidth(!1):this.$cache.s_from.outerWidth(!1),\r\n        this.coords.p_handle=this.toFixed(this.coords.w_handle/this.coords.w_rs*100),this.coords.grid_gap=this.toFixed(this.coords.p_handle/2-.1),this.$cache.grid[0].style.width=this.toFixed(100-this.coords.p_handle)+\"%\",this.$cache.grid[0].style.left=this.coords.grid_gap+\"%\"))},update:function(a){this.input&&(this.is_update=!0,this.options.from=this.result.from,this.options.to=this.result.to,this.update_check.from=this.result.from,this.update_check.to=this.result.to,this.options=f.extend(this.options,a),\r\n        this.validate(),this.updateResult(a),this.toggleInput(),this.remove(),this.init(!0))},reset:function(){this.input&&(this.updateResult(),this.update())},destroy:function(){this.input&&(this.toggleInput(),this.$cache.input.prop(\"readonly\",!1),f.data(this.input,\"ionRangeSlider\",null),this.remove(),this.options=this.input=null)}};f.fn.ionRangeSlider=function(a){return this.each(function(){f.data(this,\"ionRangeSlider\")||f.data(this,\"ionRangeSlider\",new r(this,a,u++))})};(function(){for(var a=0,b=[\"ms\",\r\n    \"moz\",\"webkit\",\"o\"],d=0;d<b.length&&!h.requestAnimationFrame;++d)h.requestAnimationFrame=h[b[d]+\"RequestAnimationFrame\"],h.cancelAnimationFrame=h[b[d]+\"CancelAnimationFrame\"]||h[b[d]+\"CancelRequestAnimationFrame\"];h.requestAnimationFrame||(h.requestAnimationFrame=function(b,d){var c=(new Date).getTime(),e=Math.max(0,16-(c-a)),f=h.setTimeout(function(){b(c+e)},e);a=c+e;return f});h.cancelAnimationFrame||(h.cancelAnimationFrame=function(a){clearTimeout(a)})})()});\r\n","Mageplaza_Core/js/owl.carousel.min.js":"/**\r\n * Owl Carousel v2.3.4\r\n * Copyright 2013-2018 David Deutsch\r\n * Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE\r\n */\r\n!function(a,b,c,d){function e(b,c){this.settings=null,this.options=a.extend({},e.Defaults,c),this.$element=a(b),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:[\"busy\"],animating:[\"busy\"],dragging:[\"interacting\"]}},a.each([\"onResize\",\"onThrottledResize\"],a.proxy(function(b,c){this._handlers[c]=a.proxy(this[c],this)},this)),a.each(e.Plugins,a.proxy(function(a,b){this._plugins[a.charAt(0).toLowerCase()+a.slice(1)]=new b(this)},this)),a.each(e.Workers,a.proxy(function(b,c){this._pipe.push({filter:c.filter,run:a.proxy(c.run,this)})},this)),this.setup(),this.initialize()}e.Defaults={items:3,loop:!1,center:!1,rewind:!1,checkVisibility:!0,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:b,fallbackEasing:\"swing\",slideTransition:\"\",info:!1,nestedItemSelector:!1,itemElement:\"div\",stageElement:\"div\",refreshClass:\"owl-refresh\",loadedClass:\"owl-loaded\",loadingClass:\"owl-loading\",rtlClass:\"owl-rtl\",responsiveClass:\"owl-responsive\",dragClass:\"owl-drag\",itemClass:\"owl-item\",stageClass:\"owl-stage\",stageOuterClass:\"owl-stage-outer\",grabClass:\"owl-grab\"},e.Width={Default:\"default\",Inner:\"inner\",Outer:\"outer\"},e.Type={Event:\"event\",State:\"state\"},e.Plugins={},e.Workers=[{filter:[\"width\",\"settings\"],run:function(){this._width=this.$element.width()}},{filter:[\"width\",\"items\",\"settings\"],run:function(a){a.current=this._items&&this._items[this.relative(this._current)]}},{filter:[\"items\",\"settings\"],run:function(){this.$stage.children(\".cloned\").remove()}},{filter:[\"width\",\"items\",\"settings\"],run:function(a){var b=this.settings.margin||\"\",c=!this.settings.autoWidth,d=this.settings.rtl,e={width:\"auto\",\"margin-left\":d?b:\"\",\"margin-right\":d?\"\":b};!c&&this.$stage.children().css(e),a.css=e}},{filter:[\"width\",\"items\",\"settings\"],run:function(a){var b=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,c=null,d=this._items.length,e=!this.settings.autoWidth,f=[];for(a.items={merge:!1,width:b};d--;)c=this._mergers[d],c=this.settings.mergeFit&&Math.min(c,this.settings.items)||c,a.items.merge=c>1||a.items.merge,f[d]=e?b*c:this._items[d].width();this._widths=f}},{filter:[\"items\",\"settings\"],run:function(){var b=[],c=this._items,d=this.settings,e=Math.max(2*d.items,4),f=2*Math.ceil(c.length/2),g=d.loop&&c.length?d.rewind?e:Math.max(e,f):0,h=\"\",i=\"\";for(g/=2;g>0;)b.push(this.normalize(b.length/2,!0)),h+=c[b[b.length-1]][0].outerHTML,b.push(this.normalize(c.length-1-(b.length-1)/2,!0)),i=c[b[b.length-1]][0].outerHTML+i,g-=1;this._clones=b,a(h).addClass(\"cloned\").appendTo(this.$stage),a(i).addClass(\"cloned\").prependTo(this.$stage)}},{filter:[\"width\",\"items\",\"settings\"],run:function(){for(var a=this.settings.rtl?1:-1,b=this._clones.length+this._items.length,c=-1,d=0,e=0,f=[];++c<b;)d=f[c-1]||0,e=this._widths[this.relative(c)]+this.settings.margin,f.push(d+e*a);this._coordinates=f}},{filter:[\"width\",\"items\",\"settings\"],run:function(){var a=this.settings.stagePadding,b=this._coordinates,c={width:Math.ceil(Math.abs(b[b.length-1]))+2*a,\"padding-left\":a||\"\",\"padding-right\":a||\"\"};this.$stage.css(c)}},{filter:[\"width\",\"items\",\"settings\"],run:function(a){var b=this._coordinates.length,c=!this.settings.autoWidth,d=this.$stage.children();if(c&&a.items.merge)for(;b--;)a.css.width=this._widths[this.relative(b)],d.eq(b).css(a.css);else c&&(a.css.width=a.items.width,d.css(a.css))}},{filter:[\"items\"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr(\"style\")}},{filter:[\"width\",\"items\",\"settings\"],run:function(a){a.current=a.current?this.$stage.children().index(a.current):0,a.current=Math.max(this.minimum(),Math.min(this.maximum(),a.current)),this.reset(a.current)}},{filter:[\"position\"],run:function(){this.animate(this.coordinates(this._current))}},{filter:[\"width\",\"position\",\"items\",\"settings\"],run:function(){var a,b,c,d,e=this.settings.rtl?1:-1,f=2*this.settings.stagePadding,g=this.coordinates(this.current())+f,h=g+this.width()*e,i=[];for(c=0,d=this._coordinates.length;c<d;c++)a=this._coordinates[c-1]||0,b=Math.abs(this._coordinates[c])+f*e,(this.op(a,\"<=\",g)&&this.op(a,\">\",h)||this.op(b,\"<\",g)&&this.op(b,\">\",h))&&i.push(c);this.$stage.children(\".active\").removeClass(\"active\"),this.$stage.children(\":eq(\"+i.join(\"), :eq(\")+\")\").addClass(\"active\"),this.$stage.children(\".center\").removeClass(\"center\"),this.settings.center&&this.$stage.children().eq(this.current()).addClass(\"center\")}}],e.prototype.initializeStage=function(){this.$stage=this.$element.find(\".\"+this.settings.stageClass),this.$stage.length||(this.$element.addClass(this.options.loadingClass),this.$stage=a(\"<\"+this.settings.stageElement+\">\",{class:this.settings.stageClass}).wrap(a(\"<div/>\",{class:this.settings.stageOuterClass})),this.$element.append(this.$stage.parent()))},e.prototype.initializeItems=function(){var b=this.$element.find(\".owl-item\");if(b.length)return this._items=b.get().map(function(b){return a(b)}),this._mergers=this._items.map(function(){return 1}),void this.refresh();this.replace(this.$element.children().not(this.$stage.parent())),this.isVisible()?this.refresh():this.invalidate(\"width\"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass)},e.prototype.initialize=function(){if(this.enter(\"initializing\"),this.trigger(\"initialize\"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is(\"pre-loading\")){var a,b,c;a=this.$element.find(\"img\"),b=this.settings.nestedItemSelector?\".\"+this.settings.nestedItemSelector:d,c=this.$element.children(b).width(),a.length&&c<=0&&this.preloadAutoWidthImages(a)}this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave(\"initializing\"),this.trigger(\"initialized\")},e.prototype.isVisible=function(){return!this.settings.checkVisibility||this.$element.is(\":visible\")},e.prototype.setup=function(){var b=this.viewport(),c=this.options.responsive,d=-1,e=null;c?(a.each(c,function(a){a<=b&&a>d&&(d=Number(a))}),e=a.extend({},this.options,c[d]),\"function\"==typeof e.stagePadding&&(e.stagePadding=e.stagePadding()),delete e.responsive,e.responsiveClass&&this.$element.attr(\"class\",this.$element.attr(\"class\").replace(new RegExp(\"(\"+this.options.responsiveClass+\"-)\\\\S+\\\\s\",\"g\"),\"$1\"+d))):e=a.extend({},this.options),this.trigger(\"change\",{property:{name:\"settings\",value:e}}),this._breakpoint=d,this.settings=e,this.invalidate(\"settings\"),this.trigger(\"changed\",{property:{name:\"settings\",value:this.settings}})},e.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},e.prototype.prepare=function(b){var c=this.trigger(\"prepare\",{content:b});return c.data||(c.data=a(\"<\"+this.settings.itemElement+\"/>\").addClass(this.options.itemClass).append(b)),this.trigger(\"prepared\",{content:c.data}),c.data},e.prototype.update=function(){for(var b=0,c=this._pipe.length,d=a.proxy(function(a){return this[a]},this._invalidated),e={};b<c;)(this._invalidated.all||a.grep(this._pipe[b].filter,d).length>0)&&this._pipe[b].run(e),b++;this._invalidated={},!this.is(\"valid\")&&this.enter(\"valid\")},e.prototype.width=function(a){switch(a=a||e.Width.Default){case e.Width.Inner:case e.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},e.prototype.refresh=function(){this.enter(\"refreshing\"),this.trigger(\"refresh\"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave(\"refreshing\"),this.trigger(\"refreshed\")},e.prototype.onThrottledResize=function(){b.clearTimeout(this.resizeTimer),this.resizeTimer=b.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},e.prototype.onResize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!!this.isVisible()&&(this.enter(\"resizing\"),this.trigger(\"resize\").isDefaultPrevented()?(this.leave(\"resizing\"),!1):(this.invalidate(\"width\"),this.refresh(),this.leave(\"resizing\"),void this.trigger(\"resized\")))))},e.prototype.registerEventHandlers=function(){a.support.transition&&this.$stage.on(a.support.transition.end+\".owl.core\",a.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(b,\"resize\",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on(\"mousedown.owl.core\",a.proxy(this.onDragStart,this)),this.$stage.on(\"dragstart.owl.core selectstart.owl.core\",function(){return!1})),this.settings.touchDrag&&(this.$stage.on(\"touchstart.owl.core\",a.proxy(this.onDragStart,this)),this.$stage.on(\"touchcancel.owl.core\",a.proxy(this.onDragEnd,this)))},e.prototype.onDragStart=function(b){var d=null;3!==b.which&&(a.support.transform?(d=this.$stage.css(\"transform\").replace(/.*\\(|\\)| /g,\"\").split(\",\"),d={x:d[16===d.length?12:4],y:d[16===d.length?13:5]}):(d=this.$stage.position(),d={x:this.settings.rtl?d.left+this.$stage.width()-this.width()+this.settings.margin:d.left,y:d.top}),this.is(\"animating\")&&(a.support.transform?this.animate(d.x):this.$stage.stop(),this.invalidate(\"position\")),this.$element.toggleClass(this.options.grabClass,\"mousedown\"===b.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=a(b.target),this._drag.stage.start=d,this._drag.stage.current=d,this._drag.pointer=this.pointer(b),a(c).on(\"mouseup.owl.core touchend.owl.core\",a.proxy(this.onDragEnd,this)),a(c).one(\"mousemove.owl.core touchmove.owl.core\",a.proxy(function(b){var d=this.difference(this._drag.pointer,this.pointer(b));a(c).on(\"mousemove.owl.core touchmove.owl.core\",a.proxy(this.onDragMove,this)),Math.abs(d.x)<Math.abs(d.y)&&this.is(\"valid\")||(b.preventDefault(),this.enter(\"dragging\"),this.trigger(\"drag\"))},this)))},e.prototype.onDragMove=function(a){var b=null,c=null,d=null,e=this.difference(this._drag.pointer,this.pointer(a)),f=this.difference(this._drag.stage.start,e);this.is(\"dragging\")&&(a.preventDefault(),this.settings.loop?(b=this.coordinates(this.minimum()),c=this.coordinates(this.maximum()+1)-b,f.x=((f.x-b)%c+c)%c+b):(b=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),c=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),d=this.settings.pullDrag?-1*e.x/5:0,f.x=Math.max(Math.min(f.x,b+d),c+d)),this._drag.stage.current=f,this.animate(f.x))},e.prototype.onDragEnd=function(b){var d=this.difference(this._drag.pointer,this.pointer(b)),e=this._drag.stage.current,f=d.x>0^this.settings.rtl?\"left\":\"right\";a(c).off(\".owl.core\"),this.$element.removeClass(this.options.grabClass),(0!==d.x&&this.is(\"dragging\")||!this.is(\"valid\"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(e.x,0!==d.x?f:this._drag.direction)),this.invalidate(\"position\"),this.update(),this._drag.direction=f,(Math.abs(d.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one(\"click.owl.core\",function(){return!1})),this.is(\"dragging\")&&(this.leave(\"dragging\"),this.trigger(\"dragged\"))},e.prototype.closest=function(b,c){var e=-1,f=30,g=this.width(),h=this.coordinates();return this.settings.freeDrag||a.each(h,a.proxy(function(a,i){return\"left\"===c&&b>i-f&&b<i+f?e=a:\"right\"===c&&b>i-g-f&&b<i-g+f?e=a+1:this.op(b,\"<\",i)&&this.op(b,\">\",h[a+1]!==d?h[a+1]:i-g)&&(e=\"left\"===c?a+1:a),-1===e},this)),this.settings.loop||(this.op(b,\">\",h[this.minimum()])?e=b=this.minimum():this.op(b,\"<\",h[this.maximum()])&&(e=b=this.maximum())),e},e.prototype.animate=function(b){var c=this.speed()>0;this.is(\"animating\")&&this.onTransitionEnd(),c&&(this.enter(\"animating\"),this.trigger(\"translate\")),a.support.transform3d&&a.support.transition?this.$stage.css({transform:\"translate3d(\"+b+\"px,0px,0px)\",transition:this.speed()/1e3+\"s\"+(this.settings.slideTransition?\" \"+this.settings.slideTransition:\"\")}):c?this.$stage.animate({left:b+\"px\"},this.speed(),this.settings.fallbackEasing,a.proxy(this.onTransitionEnd,this)):this.$stage.css({left:b+\"px\"})},e.prototype.is=function(a){return this._states.current[a]&&this._states.current[a]>0},e.prototype.current=function(a){if(a===d)return this._current;if(0===this._items.length)return d;if(a=this.normalize(a),this._current!==a){var b=this.trigger(\"change\",{property:{name:\"position\",value:a}});b.data!==d&&(a=this.normalize(b.data)),this._current=a,this.invalidate(\"position\"),this.trigger(\"changed\",{property:{name:\"position\",value:this._current}})}return this._current},e.prototype.invalidate=function(b){return\"string\"===a.type(b)&&(this._invalidated[b]=!0,this.is(\"valid\")&&this.leave(\"valid\")),a.map(this._invalidated,function(a,b){return b})},e.prototype.reset=function(a){(a=this.normalize(a))!==d&&(this._speed=0,this._current=a,this.suppress([\"translate\",\"translated\"]),this.animate(this.coordinates(a)),this.release([\"translate\",\"translated\"]))},e.prototype.normalize=function(a,b){var c=this._items.length,e=b?0:this._clones.length;return!this.isNumeric(a)||c<1?a=d:(a<0||a>=c+e)&&(a=((a-e/2)%c+c)%c+e/2),a},e.prototype.relative=function(a){return a-=this._clones.length/2,this.normalize(a,!0)},e.prototype.maximum=function(a){var b,c,d,e=this.settings,f=this._coordinates.length;if(e.loop)f=this._clones.length/2+this._items.length-1;else if(e.autoWidth||e.merge){if(b=this._items.length)for(c=this._items[--b].width(),d=this.$element.width();b--&&!((c+=this._items[b].width()+this.settings.margin)>d););f=b+1}else f=e.center?this._items.length-1:this._items.length-e.items;return a&&(f-=this._clones.length/2),Math.max(f,0)},e.prototype.minimum=function(a){return a?0:this._clones.length/2},e.prototype.items=function(a){return a===d?this._items.slice():(a=this.normalize(a,!0),this._items[a])},e.prototype.mergers=function(a){return a===d?this._mergers.slice():(a=this.normalize(a,!0),this._mergers[a])},e.prototype.clones=function(b){var c=this._clones.length/2,e=c+this._items.length,f=function(a){return a%2==0?e+a/2:c-(a+1)/2};return b===d?a.map(this._clones,function(a,b){return f(b)}):a.map(this._clones,function(a,c){return a===b?f(c):null})},e.prototype.speed=function(a){return a!==d&&(this._speed=a),this._speed},e.prototype.coordinates=function(b){var c,e=1,f=b-1;return b===d?a.map(this._coordinates,a.proxy(function(a,b){return this.coordinates(b)},this)):(this.settings.center?(this.settings.rtl&&(e=-1,f=b+1),c=this._coordinates[b],c+=(this.width()-c+(this._coordinates[f]||0))/2*e):c=this._coordinates[f]||0,c=Math.ceil(c))},e.prototype.duration=function(a,b,c){return 0===c?0:Math.min(Math.max(Math.abs(b-a),1),6)*Math.abs(c||this.settings.smartSpeed)},e.prototype.to=function(a,b){var c=this.current(),d=null,e=a-this.relative(c),f=(e>0)-(e<0),g=this._items.length,h=this.minimum(),i=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(e)>g/2&&(e+=-1*f*g),a=c+e,(d=((a-h)%g+g)%g+h)!==a&&d-e<=i&&d-e>0&&(c=d-e,a=d,this.reset(c))):this.settings.rewind?(i+=1,a=(a%i+i)%i):a=Math.max(h,Math.min(i,a)),this.speed(this.duration(c,a,b)),this.current(a),this.isVisible()&&this.update()},e.prototype.next=function(a){a=a||!1,this.to(this.relative(this.current())+1,a)},e.prototype.prev=function(a){a=a||!1,this.to(this.relative(this.current())-1,a)},e.prototype.onTransitionEnd=function(a){if(a!==d&&(a.stopPropagation(),(a.target||a.srcElement||a.originalTarget)!==this.$stage.get(0)))return!1;this.leave(\"animating\"),this.trigger(\"translated\")},e.prototype.viewport=function(){var d;return this.options.responsiveBaseElement!==b?d=a(this.options.responsiveBaseElement).width():b.innerWidth?d=b.innerWidth:c.documentElement&&c.documentElement.clientWidth?d=c.documentElement.clientWidth:console.warn(\"Can not detect viewport width.\"),d},e.prototype.replace=function(b){this.$stage.empty(),this._items=[],b&&(b=b instanceof jQuery?b:a(b)),this.settings.nestedItemSelector&&(b=b.find(\".\"+this.settings.nestedItemSelector)),b.filter(function(){return 1===this.nodeType}).each(a.proxy(function(a,b){b=this.prepare(b),this.$stage.append(b),this._items.push(b),this._mergers.push(1*b.find(\"[data-merge]\").addBack(\"[data-merge]\").attr(\"data-merge\")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate(\"items\")},e.prototype.add=function(b,c){var e=this.relative(this._current);c=c===d?this._items.length:this.normalize(c,!0),b=b instanceof jQuery?b:a(b),this.trigger(\"add\",{content:b,position:c}),b=this.prepare(b),0===this._items.length||c===this._items.length?(0===this._items.length&&this.$stage.append(b),0!==this._items.length&&this._items[c-1].after(b),this._items.push(b),this._mergers.push(1*b.find(\"[data-merge]\").addBack(\"[data-merge]\").attr(\"data-merge\")||1)):(this._items[c].before(b),this._items.splice(c,0,b),this._mergers.splice(c,0,1*b.find(\"[data-merge]\").addBack(\"[data-merge]\").attr(\"data-merge\")||1)),this._items[e]&&this.reset(this._items[e].index()),this.invalidate(\"items\"),this.trigger(\"added\",{content:b,position:c})},e.prototype.remove=function(a){(a=this.normalize(a,!0))!==d&&(this.trigger(\"remove\",{content:this._items[a],position:a}),this._items[a].remove(),this._items.splice(a,1),this._mergers.splice(a,1),this.invalidate(\"items\"),this.trigger(\"removed\",{content:null,position:a}))},e.prototype.preloadAutoWidthImages=function(b){b.each(a.proxy(function(b,c){this.enter(\"pre-loading\"),c=a(c),a(new Image).one(\"load\",a.proxy(function(a){c.attr(\"src\",a.target.src),c.css(\"opacity\",1),this.leave(\"pre-loading\"),!this.is(\"pre-loading\")&&!this.is(\"initializing\")&&this.refresh()},this)).attr(\"src\",c.attr(\"src\")||c.attr(\"data-src\")||c.attr(\"data-src-retina\"))},this))},e.prototype.destroy=function(){this.$element.off(\".owl.core\"),this.$stage.off(\".owl.core\"),a(c).off(\".owl.core\"),!1!==this.settings.responsive&&(b.clearTimeout(this.resizeTimer),this.off(b,\"resize\",this._handlers.onThrottledResize));for(var d in this._plugins)this._plugins[d].destroy();this.$stage.children(\".cloned\").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.remove(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr(\"class\",this.$element.attr(\"class\").replace(new RegExp(this.options.responsiveClass+\"-\\\\S+\\\\s\",\"g\"),\"\")).removeData(\"owl.carousel\")},e.prototype.op=function(a,b,c){var d=this.settings.rtl;switch(b){case\"<\":return d?a>c:a<c;case\">\":return d?a<c:a>c;case\">=\":return d?a<=c:a>=c;case\"<=\":return d?a>=c:a<=c}},e.prototype.on=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,d):a.attachEvent&&a.attachEvent(\"on\"+b,c)},e.prototype.off=function(a,b,c,d){a.removeEventListener?a.removeEventListener(b,c,d):a.detachEvent&&a.detachEvent(\"on\"+b,c)},e.prototype.trigger=function(b,c,d,f,g){var h={item:{count:this._items.length,index:this.current()}},i=a.camelCase(a.grep([\"on\",b,d],function(a){return a}).join(\"-\").toLowerCase()),j=a.Event([b,\"owl\",d||\"carousel\"].join(\".\").toLowerCase(),a.extend({relatedTarget:this},h,c));return this._supress[b]||(a.each(this._plugins,function(a,b){b.onTrigger&&b.onTrigger(j)}),this.register({type:e.Type.Event,name:b}),this.$element.trigger(j),this.settings&&\"function\"==typeof this.settings[i]&&this.settings[i].call(this,j)),j},e.prototype.enter=function(b){a.each([b].concat(this._states.tags[b]||[]),a.proxy(function(a,b){this._states.current[b]===d&&(this._states.current[b]=0),this._states.current[b]++},this))},e.prototype.leave=function(b){a.each([b].concat(this._states.tags[b]||[]),a.proxy(function(a,b){this._states.current[b]--},this))},e.prototype.register=function(b){if(b.type===e.Type.Event){if(a.event.special[b.name]||(a.event.special[b.name]={}),!a.event.special[b.name].owl){var c=a.event.special[b.name]._default;a.event.special[b.name]._default=function(a){return!c||!c.apply||a.namespace&&-1!==a.namespace.indexOf(\"owl\")?a.namespace&&a.namespace.indexOf(\"owl\")>-1:c.apply(this,arguments)},a.event.special[b.name].owl=!0}}else b.type===e.Type.State&&(this._states.tags[b.name]?this._states.tags[b.name]=this._states.tags[b.name].concat(b.tags):this._states.tags[b.name]=b.tags,this._states.tags[b.name]=a.grep(this._states.tags[b.name],a.proxy(function(c,d){return a.inArray(c,this._states.tags[b.name])===d},this)))},e.prototype.suppress=function(b){a.each(b,a.proxy(function(a,b){this._supress[b]=!0},this))},e.prototype.release=function(b){a.each(b,a.proxy(function(a,b){delete this._supress[b]},this))},e.prototype.pointer=function(a){var c={x:null,y:null};return a=a.originalEvent||a||b.event,a=a.touches&&a.touches.length?a.touches[0]:a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:a,a.pageX?(c.x=a.pageX,c.y=a.pageY):(c.x=a.clientX,c.y=a.clientY),c},e.prototype.isNumeric=function(a){return!isNaN(parseFloat(a))},e.prototype.difference=function(a,b){return{x:a.x-b.x,y:a.y-b.y}},a.fn.owlCarousel=function(b){var c=Array.prototype.slice.call(arguments,1);return this.each(function(){var d=a(this),f=d.data(\"owl.carousel\");f||(f=new e(this,\"object\"==typeof b&&b),d.data(\"owl.carousel\",f),a.each([\"next\",\"prev\",\"to\",\"destroy\",\"refresh\",\"replace\",\"add\",\"remove\"],function(b,c){f.register({type:e.Type.Event,name:c}),f.$element.on(c+\".owl.carousel.core\",a.proxy(function(a){a.namespace&&a.relatedTarget!==this&&(this.suppress([c]),f[c].apply(this,[].slice.call(arguments,1)),this.release([c]))},f))})),\"string\"==typeof b&&\"_\"!==b.charAt(0)&&f[b].apply(f,c)})},a.fn.owlCarousel.Constructor=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._interval=null,this._visible=null,this._handlers={\"initialized.owl.carousel\":a.proxy(function(a){a.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={autoRefresh:!0,autoRefreshInterval:500},e.prototype.watch=function(){this._interval||(this._visible=this._core.isVisible(),this._interval=b.setInterval(a.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},e.prototype.refresh=function(){this._core.isVisible()!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass(\"owl-hidden\",!this._visible),this._visible&&this._core.invalidate(\"width\")&&this._core.refresh())},e.prototype.destroy=function(){var a,c;b.clearInterval(this._interval);for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(c in Object.getOwnPropertyNames(this))\"function\"!=typeof this[c]&&(this[c]=null)},a.fn.owlCarousel.Constructor.Plugins.AutoRefresh=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._loaded=[],this._handlers={\"initialized.owl.carousel change.owl.carousel resized.owl.carousel\":a.proxy(function(b){if(b.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(b.property&&\"position\"==b.property.name||\"initialized\"==b.type)){var c=this._core.settings,e=c.center&&Math.ceil(c.items/2)||c.items,f=c.center&&-1*e||0,g=(b.property&&b.property.value!==d?b.property.value:this._core.current())+f,h=this._core.clones().length,i=a.proxy(function(a,b){this.load(b)},this);for(c.lazyLoadEager>0&&(e+=c.lazyLoadEager,c.loop&&(g-=c.lazyLoadEager,e++));f++<e;)this.load(h/2+this._core.relative(g)),h&&a.each(this._core.clones(this._core.relative(g)),i),g++}},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={lazyLoad:!1,lazyLoadEager:0},e.prototype.load=function(c){var d=this._core.$stage.children().eq(c),e=d&&d.find(\".owl-lazy\");!e||a.inArray(d.get(0),this._loaded)>-1||(e.each(a.proxy(function(c,d){var e,f=a(d),g=b.devicePixelRatio>1&&f.attr(\"data-src-retina\")||f.attr(\"data-src\")||f.attr(\"data-srcset\");this._core.trigger(\"load\",{element:f,url:g},\"lazy\"),f.is(\"img\")?f.one(\"load.owl.lazy\",a.proxy(function(){f.css(\"opacity\",1),this._core.trigger(\"loaded\",{element:f,url:g},\"lazy\")},this)).attr(\"src\",g):f.is(\"source\")?f.one(\"load.owl.lazy\",a.proxy(function(){this._core.trigger(\"loaded\",{element:f,url:g},\"lazy\")},this)).attr(\"srcset\",g):(e=new Image,e.onload=a.proxy(function(){f.css({\"background-image\":'url(\"'+g+'\")',opacity:\"1\"}),this._core.trigger(\"loaded\",{element:f,url:g},\"lazy\")},this),e.src=g)},this)),this._loaded.push(d.get(0)))},e.prototype.destroy=function(){var a,b;for(a in this.handlers)this._core.$element.off(a,this.handlers[a]);for(b in Object.getOwnPropertyNames(this))\"function\"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Lazy=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(c){this._core=c,this._previousHeight=null,this._handlers={\"initialized.owl.carousel refreshed.owl.carousel\":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&this.update()},this),\"changed.owl.carousel\":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&\"position\"===a.property.name&&this.update()},this),\"loaded.owl.lazy\":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&a.element.closest(\".\"+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers),this._intervalId=null;var d=this;a(b).on(\"load\",function(){d._core.settings.autoHeight&&d.update()}),a(b).resize(function(){d._core.settings.autoHeight&&(null!=d._intervalId&&clearTimeout(d._intervalId),d._intervalId=setTimeout(function(){d.update()},250))})};e.Defaults={autoHeight:!1,autoHeightClass:\"owl-height\"},e.prototype.update=function(){var b=this._core._current,c=b+this._core.settings.items,d=this._core.settings.lazyLoad,e=this._core.$stage.children().toArray().slice(b,c),f=[],g=0;a.each(e,function(b,c){f.push(a(c).height())}),g=Math.max.apply(null,f),g<=1&&d&&this._previousHeight&&(g=this._previousHeight),this._previousHeight=g,this._core.$stage.parent().height(g).addClass(this._core.settings.autoHeightClass)},e.prototype.destroy=function(){var a,b;for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))\"function\"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.AutoHeight=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._videos={},this._playing=null,this._handlers={\"initialized.owl.carousel\":a.proxy(function(a){a.namespace&&this._core.register({type:\"state\",name:\"playing\",tags:[\"interacting\"]})},this),\"resize.owl.carousel\":a.proxy(function(a){a.namespace&&this._core.settings.video&&this.isInFullScreen()&&a.preventDefault()},this),\"refreshed.owl.carousel\":a.proxy(function(a){a.namespace&&this._core.is(\"resizing\")&&this._core.$stage.find(\".cloned .owl-video-frame\").remove()},this),\"changed.owl.carousel\":a.proxy(function(a){a.namespace&&\"position\"===a.property.name&&this._playing&&this.stop()},this),\"prepared.owl.carousel\":a.proxy(function(b){if(b.namespace){var c=a(b.content).find(\".owl-video\");c.length&&(c.css(\"display\",\"none\"),this.fetch(c,a(b.content)))}},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on(\"click.owl.video\",\".owl-video-play-icon\",a.proxy(function(a){this.play(a)},this))};e.Defaults={video:!1,videoHeight:!1,videoWidth:!1},e.prototype.fetch=function(a,b){var c=function(){return a.attr(\"data-vimeo-id\")?\"vimeo\":a.attr(\"data-vzaar-id\")?\"vzaar\":\"youtube\"}(),d=a.attr(\"data-vimeo-id\")||a.attr(\"data-youtube-id\")||a.attr(\"data-vzaar-id\"),e=a.attr(\"data-width\")||this._core.settings.videoWidth,f=a.attr(\"data-height\")||this._core.settings.videoHeight,g=a.attr(\"href\");if(!g)throw new Error(\"Missing video URL.\");if(d=g.match(/(http:|https:|)\\/\\/(player.|www.|app.)?(vimeo\\.com|youtu(be\\.com|\\.be|be\\.googleapis\\.com|be\\-nocookie\\.com)|vzaar\\.com)\\/(video\\/|videos\\/|embed\\/|channels\\/.+\\/|groups\\/.+\\/|watch\\?v=|v\\/)?([A-Za-z0-9._%-]*)(\\&\\S+)?/),d[3].indexOf(\"youtu\")>-1)c=\"youtube\";else if(d[3].indexOf(\"vimeo\")>-1)c=\"vimeo\";else{if(!(d[3].indexOf(\"vzaar\")>-1))throw new Error(\"Video URL not supported.\");c=\"vzaar\"}d=d[6],this._videos[g]={type:c,id:d,width:e,height:f},b.attr(\"data-video\",g),this.thumbnail(a,this._videos[g])},e.prototype.thumbnail=function(b,c){var d,e,f,g=c.width&&c.height?\"width:\"+c.width+\"px;height:\"+c.height+\"px;\":\"\",h=b.find(\"img\"),i=\"src\",j=\"\",k=this._core.settings,l=function(c){e='<div class=\"owl-video-play-icon\"></div>',d=k.lazyLoad?a(\"<div/>\",{class:\"owl-video-tn \"+j,srcType:c}):a(\"<div/>\",{class:\"owl-video-tn\",style:\"opacity:1;background-image:url(\"+c+\")\"}),b.after(d),b.after(e)};if(b.wrap(a(\"<div/>\",{class:\"owl-video-wrapper\",style:g})),this._core.settings.lazyLoad&&(i=\"data-src\",j=\"owl-lazy\"),h.length)return l(h.attr(i)),h.remove(),!1;\"youtube\"===c.type?(f=\"//img.youtube.com/vi/\"+c.id+\"/hqdefault.jpg\",l(f)):\"vimeo\"===c.type?a.ajax({type:\"GET\",url:\"//vimeo.com/api/v2/video/\"+c.id+\".json\",jsonp:\"callback\",dataType:\"jsonp\",success:function(a){f=a[0].thumbnail_large,l(f)}}):\"vzaar\"===c.type&&a.ajax({type:\"GET\",url:\"//vzaar.com/api/videos/\"+c.id+\".json\",jsonp:\"callback\",dataType:\"jsonp\",success:function(a){f=a.framegrab_url,l(f)}})},e.prototype.stop=function(){this._core.trigger(\"stop\",null,\"video\"),this._playing.find(\".owl-video-frame\").remove(),this._playing.removeClass(\"owl-video-playing\"),this._playing=null,this._core.leave(\"playing\"),this._core.trigger(\"stopped\",null,\"video\")},e.prototype.play=function(b){var c,d=a(b.target),e=d.closest(\".\"+this._core.settings.itemClass),f=this._videos[e.attr(\"data-video\")],g=f.width||\"100%\",h=f.height||this._core.$stage.height();this._playing||(this._core.enter(\"playing\"),this._core.trigger(\"play\",null,\"video\"),e=this._core.items(this._core.relative(e.index())),this._core.reset(e.index()),c=a('<iframe frameborder=\"0\" allowfullscreen mozallowfullscreen webkitAllowFullScreen ></iframe>'),c.attr(\"height\",h),c.attr(\"width\",g),\"youtube\"===f.type?c.attr(\"src\",\"//www.youtube.com/embed/\"+f.id+\"?autoplay=1&rel=0&v=\"+f.id):\"vimeo\"===f.type?c.attr(\"src\",\"//player.vimeo.com/video/\"+f.id+\"?autoplay=1\"):\"vzaar\"===f.type&&c.attr(\"src\",\"//view.vzaar.com/\"+f.id+\"/player?autoplay=true\"),a(c).wrap('<div class=\"owl-video-frame\" />').insertAfter(e.find(\".owl-video\")),this._playing=e.addClass(\"owl-video-playing\"))},e.prototype.isInFullScreen=function(){var b=c.fullscreenElement||c.mozFullScreenElement||c.webkitFullscreenElement;return b&&a(b).parent().hasClass(\"owl-video-frame\")},e.prototype.destroy=function(){var a,b;this._core.$element.off(\"click.owl.video\");for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))\"function\"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Video=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this.core=b,this.core.options=a.extend({},e.Defaults,this.core.options),this.swapping=!0,this.previous=d,this.next=d,this.handlers={\"change.owl.carousel\":a.proxy(function(a){a.namespace&&\"position\"==a.property.name&&(this.previous=this.core.current(),this.next=a.property.value)},this),\"drag.owl.carousel dragged.owl.carousel translated.owl.carousel\":a.proxy(function(a){a.namespace&&(this.swapping=\"translated\"==a.type)},this),\"translate.owl.carousel\":a.proxy(function(a){a.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};e.Defaults={animateOut:!1,\r\nanimateIn:!1},e.prototype.swap=function(){if(1===this.core.settings.items&&a.support.animation&&a.support.transition){this.core.speed(0);var b,c=a.proxy(this.clear,this),d=this.core.$stage.children().eq(this.previous),e=this.core.$stage.children().eq(this.next),f=this.core.settings.animateIn,g=this.core.settings.animateOut;this.core.current()!==this.previous&&(g&&(b=this.core.coordinates(this.previous)-this.core.coordinates(this.next),d.one(a.support.animation.end,c).css({left:b+\"px\"}).addClass(\"animated owl-animated-out\").addClass(g)),f&&e.one(a.support.animation.end,c).addClass(\"animated owl-animated-in\").addClass(f))}},e.prototype.clear=function(b){a(b.target).css({left:\"\"}).removeClass(\"animated owl-animated-out owl-animated-in\").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},e.prototype.destroy=function(){var a,b;for(a in this.handlers)this.core.$element.off(a,this.handlers[a]);for(b in Object.getOwnPropertyNames(this))\"function\"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Animate=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={\"changed.owl.carousel\":a.proxy(function(a){a.namespace&&\"settings\"===a.property.name?this._core.settings.autoplay?this.play():this.stop():a.namespace&&\"position\"===a.property.name&&this._paused&&(this._time=0)},this),\"initialized.owl.carousel\":a.proxy(function(a){a.namespace&&this._core.settings.autoplay&&this.play()},this),\"play.owl.autoplay\":a.proxy(function(a,b,c){a.namespace&&this.play(b,c)},this),\"stop.owl.autoplay\":a.proxy(function(a){a.namespace&&this.stop()},this),\"mouseover.owl.autoplay\":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is(\"rotating\")&&this.pause()},this),\"mouseleave.owl.autoplay\":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is(\"rotating\")&&this.play()},this),\"touchstart.owl.core\":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is(\"rotating\")&&this.pause()},this),\"touchend.owl.core\":a.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=a.extend({},e.Defaults,this._core.options)};e.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},e.prototype._next=function(d){this._call=b.setTimeout(a.proxy(this._next,this,d),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is(\"interacting\")||c.hidden||this._core.next(d||this._core.settings.autoplaySpeed)},e.prototype.read=function(){return(new Date).getTime()-this._time},e.prototype.play=function(c,d){var e;this._core.is(\"rotating\")||this._core.enter(\"rotating\"),c=c||this._core.settings.autoplayTimeout,e=Math.min(this._time%(this._timeout||c),c),this._paused?(this._time=this.read(),this._paused=!1):b.clearTimeout(this._call),this._time+=this.read()%c-e,this._timeout=c,this._call=b.setTimeout(a.proxy(this._next,this,d),c-e)},e.prototype.stop=function(){this._core.is(\"rotating\")&&(this._time=0,this._paused=!0,b.clearTimeout(this._call),this._core.leave(\"rotating\"))},e.prototype.pause=function(){this._core.is(\"rotating\")&&!this._paused&&(this._time=this.read(),this._paused=!0,b.clearTimeout(this._call))},e.prototype.destroy=function(){var a,b;this.stop();for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))\"function\"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.autoplay=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){\"use strict\";var e=function(b){this._core=b,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={\"prepared.owl.carousel\":a.proxy(function(b){b.namespace&&this._core.settings.dotsData&&this._templates.push('<div class=\"'+this._core.settings.dotClass+'\">'+a(b.content).find(\"[data-dot]\").addBack(\"[data-dot]\").attr(\"data-dot\")+\"</div>\")},this),\"added.owl.carousel\":a.proxy(function(a){a.namespace&&this._core.settings.dotsData&&this._templates.splice(a.position,0,this._templates.pop())},this),\"remove.owl.carousel\":a.proxy(function(a){a.namespace&&this._core.settings.dotsData&&this._templates.splice(a.position,1)},this),\"changed.owl.carousel\":a.proxy(function(a){a.namespace&&\"position\"==a.property.name&&this.draw()},this),\"initialized.owl.carousel\":a.proxy(function(a){a.namespace&&!this._initialized&&(this._core.trigger(\"initialize\",null,\"navigation\"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger(\"initialized\",null,\"navigation\"))},this),\"refreshed.owl.carousel\":a.proxy(function(a){a.namespace&&this._initialized&&(this._core.trigger(\"refresh\",null,\"navigation\"),this.update(),this.draw(),this._core.trigger(\"refreshed\",null,\"navigation\"))},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers)};e.Defaults={nav:!1,navText:['<span aria-label=\"Previous\">&#x2039;</span>','<span aria-label=\"Next\">&#x203a;</span>'],navSpeed:!1,navElement:'button type=\"button\" role=\"presentation\"',navContainer:!1,navContainerClass:\"owl-nav\",navClass:[\"owl-prev\",\"owl-next\"],slideBy:1,dotClass:\"owl-dot\",dotsClass:\"owl-dots\",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},e.prototype.initialize=function(){var b,c=this._core.settings;this._controls.$relative=(c.navContainer?a(c.navContainer):a(\"<div>\").addClass(c.navContainerClass).appendTo(this.$element)).addClass(\"disabled\"),this._controls.$previous=a(\"<\"+c.navElement+\">\").addClass(c.navClass[0]).html(c.navText[0]).prependTo(this._controls.$relative).on(\"click\",a.proxy(function(a){this.prev(c.navSpeed)},this)),this._controls.$next=a(\"<\"+c.navElement+\">\").addClass(c.navClass[1]).html(c.navText[1]).appendTo(this._controls.$relative).on(\"click\",a.proxy(function(a){this.next(c.navSpeed)},this)),c.dotsData||(this._templates=[a('<button role=\"button\">').addClass(c.dotClass).append(a(\"<span>\")).prop(\"outerHTML\")]),this._controls.$absolute=(c.dotsContainer?a(c.dotsContainer):a(\"<div>\").addClass(c.dotsClass).appendTo(this.$element)).addClass(\"disabled\"),this._controls.$absolute.on(\"click\",\"button\",a.proxy(function(b){var d=a(b.target).parent().is(this._controls.$absolute)?a(b.target).index():a(b.target).parent().index();b.preventDefault(),this.to(d,c.dotsSpeed)},this));for(b in this._overrides)this._core[b]=a.proxy(this[b],this)},e.prototype.destroy=function(){var a,b,c,d,e;e=this._core.settings;for(a in this._handlers)this.$element.off(a,this._handlers[a]);for(b in this._controls)\"$relative\"===b&&e.navContainer?this._controls[b].html(\"\"):this._controls[b].remove();for(d in this.overides)this._core[d]=this._overrides[d];for(c in Object.getOwnPropertyNames(this))\"function\"!=typeof this[c]&&(this[c]=null)},e.prototype.update=function(){var a,b,c,d=this._core.clones().length/2,e=d+this._core.items().length,f=this._core.maximum(!0),g=this._core.settings,h=g.center||g.autoWidth||g.dotsData?1:g.dotsEach||g.items;if(\"page\"!==g.slideBy&&(g.slideBy=Math.min(g.slideBy,g.items)),g.dots||\"page\"==g.slideBy)for(this._pages=[],a=d,b=0,c=0;a<e;a++){if(b>=h||0===b){if(this._pages.push({start:Math.min(f,a-d),end:a-d+h-1}),Math.min(f,a-d)===f)break;b=0,++c}b+=this._core.mergers(this._core.relative(a))}},e.prototype.draw=function(){var b,c=this._core.settings,d=this._core.items().length<=c.items,e=this._core.relative(this._core.current()),f=c.loop||c.rewind;this._controls.$relative.toggleClass(\"disabled\",!c.nav||d),c.nav&&(this._controls.$previous.toggleClass(\"disabled\",!f&&e<=this._core.minimum(!0)),this._controls.$next.toggleClass(\"disabled\",!f&&e>=this._core.maximum(!0))),this._controls.$absolute.toggleClass(\"disabled\",!c.dots||d),c.dots&&(b=this._pages.length-this._controls.$absolute.children().length,c.dotsData&&0!==b?this._controls.$absolute.html(this._templates.join(\"\")):b>0?this._controls.$absolute.append(new Array(b+1).join(this._templates[0])):b<0&&this._controls.$absolute.children().slice(b).remove(),this._controls.$absolute.find(\".active\").removeClass(\"active\"),this._controls.$absolute.children().eq(a.inArray(this.current(),this._pages)).addClass(\"active\"))},e.prototype.onTrigger=function(b){var c=this._core.settings;b.page={index:a.inArray(this.current(),this._pages),count:this._pages.length,size:c&&(c.center||c.autoWidth||c.dotsData?1:c.dotsEach||c.items)}},e.prototype.current=function(){var b=this._core.relative(this._core.current());return a.grep(this._pages,a.proxy(function(a,c){return a.start<=b&&a.end>=b},this)).pop()},e.prototype.getPosition=function(b){var c,d,e=this._core.settings;return\"page\"==e.slideBy?(c=a.inArray(this.current(),this._pages),d=this._pages.length,b?++c:--c,c=this._pages[(c%d+d)%d].start):(c=this._core.relative(this._core.current()),d=this._core.items().length,b?c+=e.slideBy:c-=e.slideBy),c},e.prototype.next=function(b){a.proxy(this._overrides.to,this._core)(this.getPosition(!0),b)},e.prototype.prev=function(b){a.proxy(this._overrides.to,this._core)(this.getPosition(!1),b)},e.prototype.to=function(b,c,d){var e;!d&&this._pages.length?(e=this._pages.length,a.proxy(this._overrides.to,this._core)(this._pages[(b%e+e)%e].start,c)):a.proxy(this._overrides.to,this._core)(b,c)},a.fn.owlCarousel.Constructor.Plugins.Navigation=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){\"use strict\";var e=function(c){this._core=c,this._hashes={},this.$element=this._core.$element,this._handlers={\"initialized.owl.carousel\":a.proxy(function(c){c.namespace&&\"URLHash\"===this._core.settings.startPosition&&a(b).trigger(\"hashchange.owl.navigation\")},this),\"prepared.owl.carousel\":a.proxy(function(b){if(b.namespace){var c=a(b.content).find(\"[data-hash]\").addBack(\"[data-hash]\").attr(\"data-hash\");if(!c)return;this._hashes[c]=b.content}},this),\"changed.owl.carousel\":a.proxy(function(c){if(c.namespace&&\"position\"===c.property.name){var d=this._core.items(this._core.relative(this._core.current())),e=a.map(this._hashes,function(a,b){return a===d?b:null}).join();if(!e||b.location.hash.slice(1)===e)return;b.location.hash=e}},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers),a(b).on(\"hashchange.owl.navigation\",a.proxy(function(a){var c=b.location.hash.substring(1),e=this._core.$stage.children(),f=this._hashes[c]&&e.index(this._hashes[c]);f!==d&&f!==this._core.current()&&this._core.to(this._core.relative(f),!1,!0)},this))};e.Defaults={URLhashListener:!1},e.prototype.destroy=function(){var c,d;a(b).off(\"hashchange.owl.navigation\");for(c in this._handlers)this._core.$element.off(c,this._handlers[c]);for(d in Object.getOwnPropertyNames(this))\"function\"!=typeof this[d]&&(this[d]=null)},a.fn.owlCarousel.Constructor.Plugins.Hash=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){function e(b,c){var e=!1,f=b.charAt(0).toUpperCase()+b.slice(1);return a.each((b+\" \"+h.join(f+\" \")+f).split(\" \"),function(a,b){if(g[b]!==d)return e=!c||b,!1}),e}function f(a){return e(a,!0)}var g=a(\"<support>\").get(0).style,h=\"Webkit Moz O ms\".split(\" \"),i={transition:{end:{WebkitTransition:\"webkitTransitionEnd\",MozTransition:\"transitionend\",OTransition:\"oTransitionEnd\",transition:\"transitionend\"}},animation:{end:{WebkitAnimation:\"webkitAnimationEnd\",MozAnimation:\"animationend\",OAnimation:\"oAnimationEnd\",animation:\"animationend\"}}},j={csstransforms:function(){return!!e(\"transform\")},csstransforms3d:function(){return!!e(\"perspective\")},csstransitions:function(){return!!e(\"transition\")},cssanimations:function(){return!!e(\"animation\")}};j.csstransitions()&&(a.support.transition=new String(f(\"transition\")),a.support.transition.end=i.transition.end[a.support.transition]),j.cssanimations()&&(a.support.animation=new String(f(\"animation\")),a.support.animation.end=i.animation.end[a.support.animation]),j.csstransforms()&&(a.support.transform=new String(f(\"transform\")),a.support.transform3d=j.csstransforms3d())}(window.Zepto||window.jQuery,window,document);","Mageplaza_Core/js/jquery.autocomplete.min.js":"/**\r\n *  Ajax Autocomplete for jQuery, version 1.3.0\r\n *  (c) 2017 Tomas Kirda\r\n *\r\n *  Ajax Autocomplete for jQuery is freely distributable under the terms of an MIT-style license.\r\n *  For details, see the web site: https://github.com/devbridge/jQuery-Autocomplete\r\n */\r\n!function(a){\"use strict\";\"function\"==typeof define&&define.amd?define([\"jquery\"],a):a(\"object\"==typeof exports&&\"function\"==typeof require?require(\"jquery\"):jQuery)}(function(a){\"use strict\";function b(c,d){var e=a.noop,f=this,g={ajaxSettings:{},autoSelectFirst:!1,appendTo:document.body,serviceUrl:null,lookup:null,onSelect:null,width:\"auto\",minChars:1,maxHeight:300,deferRequestBy:0,params:{},formatResult:b.formatResult,formatGroup:b.formatGroup,delimiter:null,zIndex:9999,type:\"GET\",noCache:!1,onSearchStart:e,onSearchComplete:e,onSearchError:e,preserveInput:!1,containerClass:\"autocomplete-suggestions\",tabDisabled:!1,dataType:\"text\",currentRequest:null,triggerSelectOnValidInput:!0,preventBadQueries:!0,lookupFilter:function(a,b,c){return-1!==a.value.toLowerCase().indexOf(c)},paramName:\"query\",transformResult:function(b){return\"string\"==typeof b?a.parseJSON(b):b},showNoSuggestionNotice:!1,noSuggestionNotice:\"No results\",orientation:\"bottom\",forceFixPosition:!1};f.element=c,f.el=a(c),f.suggestions=[],f.badQueries=[],f.selectedIndex=-1,f.currentValue=f.element.value,f.intervalId=0,f.cachedResponse={},f.onChangeInterval=null,f.onChange=null,f.isLocal=!1,f.suggestionsContainer=null,f.noSuggestionsContainer=null,f.options=a.extend({},g,d),f.classes={selected:\"autocomplete-selected\",suggestion:\"autocomplete-suggestion\"},f.hint=null,f.hintValue=\"\",f.selection=null,f.initialize(),f.setOptions(d)}var c=function(){return{escapeRegExChars:function(a){return a.replace(/[|\\\\{}()[\\]^$+*?.]/g,\"\\\\$&\")},createNode:function(a){var b=document.createElement(\"div\");return b.className=a,b.style.position=\"absolute\",b.style.display=\"none\",b}}}(),d={ESC:27,TAB:9,RETURN:13,LEFT:37,UP:38,RIGHT:39,DOWN:40};b.utils=c,a.Autocomplete=b,b.formatResult=function(a,b){if(!b)return a.value;var d=\"(\"+c.escapeRegExChars(b)+\")\";return a.value.replace(new RegExp(d,\"gi\"),\"<strong>$1</strong>\").replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\").replace(/&lt;(\\/?strong)&gt;/g,\"<$1>\")},b.formatGroup=function(a,b){return'<div class=\"autocomplete-group\"><strong>'+b+\"</strong></div>\"},b.prototype={killerFn:null,initialize:function(){var c,d=this,e=\".\"+d.classes.suggestion,f=d.classes.selected,g=d.options;d.element.setAttribute(\"autocomplete\",\"off\"),d.killerFn=function(b){a(b.target).closest(\".\"+d.options.containerClass).length||(d.killSuggestions(),d.disableKillerFn())},d.noSuggestionsContainer=a('<div class=\"autocomplete-no-suggestion\"></div>').html(this.options.noSuggestionNotice).get(0),d.suggestionsContainer=b.utils.createNode(g.containerClass),c=a(d.suggestionsContainer),c.appendTo(g.appendTo),\"auto\"!==g.width&&c.css(\"width\",g.width),c.on(\"mouseover.autocomplete\",e,function(){d.activate(a(this).data(\"index\"))}),c.on(\"mouseout.autocomplete\",function(){d.selectedIndex=-1,c.children(\".\"+f).removeClass(f)}),c.on(\"click.autocomplete\",e,function(){return d.select(a(this).data(\"index\")),!1}),d.fixPositionCapture=function(){d.visible&&d.fixPosition()},a(window).on(\"resize.autocomplete\",d.fixPositionCapture),d.el.on(\"keydown.autocomplete\",function(a){d.onKeyPress(a)}),d.el.on(\"keyup.autocomplete\",function(a){d.onKeyUp(a)}),d.el.on(\"blur.autocomplete\",function(){d.onBlur()}),d.el.on(\"focus.autocomplete\",function(){d.onFocus()}),d.el.on(\"change.autocomplete\",function(a){d.onKeyUp(a)}),d.el.on(\"input.autocomplete\",function(a){d.onKeyUp(a)})},onFocus:function(){var a=this;a.fixPosition(),a.el.val().length>=a.options.minChars&&a.onValueChange()},onBlur:function(){this.enableKillerFn()},abortAjax:function(){var a=this;a.currentRequest&&(a.currentRequest.abort(),a.currentRequest=null)},setOptions:function(b){var c=this,d=c.options;a.extend(d,b),c.isLocal=a.isArray(d.lookup),c.isLocal&&(d.lookup=c.verifySuggestionsFormat(d.lookup)),d.orientation=c.validateOrientation(d.orientation,\"bottom\"),a(c.suggestionsContainer).css({\"max-height\":d.maxHeight+\"px\",width:d.width+\"px\",\"z-index\":d.zIndex})},clearCache:function(){this.cachedResponse={},this.badQueries=[]},clear:function(){this.clearCache(),this.currentValue=\"\",this.suggestions=[]},disable:function(){var a=this;a.disabled=!0,clearInterval(a.onChangeInterval),a.abortAjax()},enable:function(){this.disabled=!1},fixPosition:function(){var b=this,c=a(b.suggestionsContainer),d=c.parent().get(0);if(d===document.body||b.options.forceFixPosition){var e=b.options.orientation,f=c.outerHeight(),g=b.el.outerHeight(),h=b.el.offset(),i={top:h.top,left:h.left};if(\"auto\"===e){var j=a(window).height(),k=a(window).scrollTop(),l=-k+h.top-f,m=k+j-(h.top+g+f);e=Math.max(l,m)===l?\"top\":\"bottom\"}if(\"top\"===e?i.top+=-f:i.top+=g,d!==document.body){var n,o=c.css(\"opacity\");b.visible||c.css(\"opacity\",0).show(),n=c.offsetParent().offset(),i.top-=n.top,i.left-=n.left,b.visible||c.css(\"opacity\",o).hide()}\"auto\"===b.options.width&&(i.width=b.el.outerWidth()+\"px\"),c.css(i)}},enableKillerFn:function(){var b=this;a(document).on(\"click.autocomplete\",b.killerFn)},disableKillerFn:function(){var b=this;a(document).off(\"click.autocomplete\",b.killerFn)},killSuggestions:function(){var a=this;a.stopKillSuggestions(),a.intervalId=window.setInterval(function(){a.visible&&(a.options.preserveInput||a.el.val(a.currentValue),a.hide()),a.stopKillSuggestions()},50)},stopKillSuggestions:function(){window.clearInterval(this.intervalId)},isCursorAtEnd:function(){var a,b=this,c=b.el.val().length,d=b.element.selectionStart;return\"number\"==typeof d?d===c:document.selection?(a=document.selection.createRange(),a.moveStart(\"character\",-c),c===a.text.length):!0},onKeyPress:function(a){var b=this;if(!b.disabled&&!b.visible&&a.which===d.DOWN&&b.currentValue)return void b.suggest();if(!b.disabled&&b.visible){switch(a.which){case d.ESC:b.el.val(b.currentValue),b.hide();break;case d.RIGHT:if(b.hint&&b.options.onHint&&b.isCursorAtEnd()){b.selectHint();break}return;case d.TAB:if(b.hint&&b.options.onHint)return void b.selectHint();if(-1===b.selectedIndex)return void b.hide();if(b.select(b.selectedIndex),b.options.tabDisabled===!1)return;break;case d.RETURN:if(-1===b.selectedIndex)return void b.hide();b.select(b.selectedIndex);break;case d.UP:b.moveUp();break;case d.DOWN:b.moveDown();break;default:return}a.stopImmediatePropagation(),a.preventDefault()}},onKeyUp:function(a){var b=this;if(!b.disabled){switch(a.which){case d.UP:case d.DOWN:return}clearInterval(b.onChangeInterval),b.currentValue!==b.el.val()&&(b.findBestHint(),b.options.deferRequestBy>0?b.onChangeInterval=setInterval(function(){b.onValueChange()},b.options.deferRequestBy):b.onValueChange())}},onValueChange:function(){var b=this,c=b.options,d=b.el.val(),e=b.getQuery(d);return b.selection&&b.currentValue!==e&&(b.selection=null,(c.onInvalidateSelection||a.noop).call(b.element)),clearInterval(b.onChangeInterval),b.currentValue=d,b.selectedIndex=-1,c.triggerSelectOnValidInput&&b.isExactMatch(e)?void b.select(0):void(e.length<c.minChars?b.hide():b.getSuggestions(e))},isExactMatch:function(a){var b=this.suggestions;return 1===b.length&&b[0].value.toLowerCase()===a.toLowerCase()},getQuery:function(b){var c,d=this.options.delimiter;return d?(c=b.split(d),a.trim(c[c.length-1])):b},getSuggestionsLocal:function(b){var c,d=this,e=d.options,f=b.toLowerCase(),g=e.lookupFilter,h=parseInt(e.lookupLimit,10);return c={suggestions:a.grep(e.lookup,function(a){return g(a,b,f)})},h&&c.suggestions.length>h&&(c.suggestions=c.suggestions.slice(0,h)),c},getSuggestions:function(b){var c,d,e,f,g=this,h=g.options,i=h.serviceUrl;if(h.params[h.paramName]=b,d=h.ignoreParams?null:h.params,h.onSearchStart.call(g.element,h.params)!==!1){if(a.isFunction(h.lookup))return void h.lookup(b,function(a){g.suggestions=a.suggestions,g.suggest(),h.onSearchComplete.call(g.element,b,a.suggestions)});g.isLocal?c=g.getSuggestionsLocal(b):(a.isFunction(i)&&(i=i.call(g.element,b)),e=i+\"?\"+a.param(d||{}),c=g.cachedResponse[e]),c&&a.isArray(c.suggestions)?(g.suggestions=c.suggestions,g.suggest(),h.onSearchComplete.call(g.element,b,c.suggestions)):g.isBadQuery(b)?h.onSearchComplete.call(g.element,b,[]):(g.abortAjax(),f={url:i,data:d,type:h.type,dataType:h.dataType},a.extend(f,h.ajaxSettings),g.currentRequest=a.ajax(f).done(function(a){var c;g.currentRequest=null,c=h.transformResult(a,b),g.processResponse(c,b,e),h.onSearchComplete.call(g.element,b,c.suggestions)}).fail(function(a,c,d){h.onSearchError.call(g.element,b,a,c,d)}))}},isBadQuery:function(a){if(!this.options.preventBadQueries)return!1;for(var b=this.badQueries,c=b.length;c--;)if(0===a.indexOf(b[c]))return!0;return!1},hide:function(){var b=this,c=a(b.suggestionsContainer);a.isFunction(b.options.onHide)&&b.visible&&b.options.onHide.call(b.element,c),b.visible=!1,b.selectedIndex=-1,clearInterval(b.onChangeInterval),a(b.suggestionsContainer).hide(),b.signalHint(null)},suggest:function(){if(!this.suggestions.length)return void(this.options.showNoSuggestionNotice?this.noSuggestions():this.hide());var b,c=this,d=c.options,e=d.groupBy,f=d.formatResult,g=c.getQuery(c.currentValue),h=c.classes.suggestion,i=c.classes.selected,j=a(c.suggestionsContainer),k=a(c.noSuggestionsContainer),l=d.beforeRender,m=\"\",n=function(a,c){var f=a.data[e];return b===f?\"\":(b=f,d.formatGroup(a,b))};return d.triggerSelectOnValidInput&&c.isExactMatch(g)?void c.select(0):(a.each(c.suggestions,function(a,b){e&&(m+=n(b,g,a)),m+='<div class=\"'+h+'\" data-index=\"'+a+'\">'+f(b,g,a)+\"</div>\"}),this.adjustContainerWidth(),k.detach(),j.html(m),a.isFunction(l)&&l.call(c.element,j,c.suggestions),c.fixPosition(),j.show(),d.autoSelectFirst&&(c.selectedIndex=0,j.scrollTop(0),j.children(\".\"+h).first().addClass(i)),c.visible=!0,void c.findBestHint())},noSuggestions:function(){var b=this,c=a(b.suggestionsContainer),d=a(b.noSuggestionsContainer);this.adjustContainerWidth(),d.detach(),c.empty(),c.append(d),b.fixPosition(),c.show(),b.visible=!0},adjustContainerWidth:function(){var b,c=this,d=c.options,e=a(c.suggestionsContainer);\"auto\"===d.width?(b=c.el.outerWidth(),e.css(\"width\",b>0?b:300)):\"flex\"===d.width&&e.css(\"width\",\"\")},findBestHint:function(){var b=this,c=b.el.val().toLowerCase(),d=null;c&&(a.each(b.suggestions,function(a,b){var e=0===b.value.toLowerCase().indexOf(c);return e&&(d=b),!e}),b.signalHint(d))},signalHint:function(b){var c=\"\",d=this;b&&(c=d.currentValue+b.value.substr(d.currentValue.length)),d.hintValue!==c&&(d.hintValue=c,d.hint=b,(this.options.onHint||a.noop)(c))},verifySuggestionsFormat:function(b){return b.length&&\"string\"==typeof b[0]?a.map(b,function(a){return{value:a,data:null}}):b},validateOrientation:function(b,c){return b=a.trim(b||\"\").toLowerCase(),-1===a.inArray(b,[\"auto\",\"bottom\",\"top\"])&&(b=c),b},processResponse:function(a,b,c){var d=this,e=d.options;a.suggestions=d.verifySuggestionsFormat(a.suggestions),e.noCache||(d.cachedResponse[c]=a,e.preventBadQueries&&!a.suggestions.length&&d.badQueries.push(b)),b===d.getQuery(d.currentValue)&&(d.suggestions=a.suggestions,d.suggest())},activate:function(b){var c,d=this,e=d.classes.selected,f=a(d.suggestionsContainer),g=f.find(\".\"+d.classes.suggestion);return f.find(\".\"+e).removeClass(e),d.selectedIndex=b,-1!==d.selectedIndex&&g.length>d.selectedIndex?(c=g.get(d.selectedIndex),a(c).addClass(e),c):null},selectHint:function(){var b=this,c=a.inArray(b.hint,b.suggestions);b.select(c)},select:function(a){var b=this;b.hide(),b.onSelect(a),b.disableKillerFn()},moveUp:function(){var b=this;if(-1!==b.selectedIndex)return 0===b.selectedIndex?(a(b.suggestionsContainer).children().first().removeClass(b.classes.selected),b.selectedIndex=-1,b.el.val(b.currentValue),void b.findBestHint()):void b.adjustScroll(b.selectedIndex-1)},moveDown:function(){var a=this;a.selectedIndex!==a.suggestions.length-1&&a.adjustScroll(a.selectedIndex+1)},adjustScroll:function(b){var c=this,d=c.activate(b);if(d){var e,f,g,h=a(d).outerHeight();e=d.offsetTop,f=a(c.suggestionsContainer).scrollTop(),g=f+c.options.maxHeight-h,f>e?a(c.suggestionsContainer).scrollTop(e):e>g&&a(c.suggestionsContainer).scrollTop(e-c.options.maxHeight+h),c.options.preserveInput||c.el.val(c.getValue(c.suggestions[b].value)),c.signalHint(null)}},onSelect:function(b){var c=this,d=c.options.onSelect,e=c.suggestions[b];c.currentValue=c.getValue(e.value),c.currentValue===c.el.val()||c.options.preserveInput||c.el.val(c.currentValue),c.signalHint(null),c.suggestions=[],c.selection=e,a.isFunction(d)&&d.call(c.element,e)},getValue:function(a){var b,c,d=this,e=d.options.delimiter;return e?(b=d.currentValue,c=b.split(e),1===c.length?a:b.substr(0,b.length-c[c.length-1].length)+a):a},dispose:function(){var b=this;b.el.off(\".autocomplete\").removeData(\"autocomplete\"),b.disableKillerFn(),a(window).off(\"resize.autocomplete\",b.fixPositionCapture),a(b.suggestionsContainer).remove()}},a.fn.autocomplete=a.fn.devbridgeAutocomplete=function(c,d){var e=\"autocomplete\";return arguments.length?this.each(function(){var f=a(this),g=f.data(e);\"string\"==typeof c?g&&\"function\"==typeof g[c]&&g[c](d):(g&&g.dispose&&g.dispose(),g=new b(this,c),f.data(e,g))}):this.first().data(e)}});","Mageplaza_Core/js/bootstrap.min.js":"/*!\n * Bootstrap v5.0.2 (https://getbootstrap.com/)\n * Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n */\n!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e(require(\"@popperjs/core\")):\"function\"==typeof define&&define.amd?define([\"@popperjs/core\"],e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).bootstrap=e(t.Popper)}(this,(function(t){\"use strict\";function e(t){if(t&&t.__esModule)return t;var e=Object.create(null);return t&&Object.keys(t).forEach((function(s){if(\"default\"!==s){var i=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:function(){return t[s]}})}})),e.default=t,Object.freeze(e)}var s=e(t);const i={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter(t=>t.matches(e)),parents(t,e){const s=[];let i=t.parentNode;for(;i&&i.nodeType===Node.ELEMENT_NODE&&3!==i.nodeType;)i.matches(e)&&s.push(i),i=i.parentNode;return s},prev(t,e){let s=t.previousElementSibling;for(;s;){if(s.matches(e))return[s];s=s.previousElementSibling}return[]},next(t,e){let s=t.nextElementSibling;for(;s;){if(s.matches(e))return[s];s=s.nextElementSibling}return[]}},n=t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t},o=t=>{let e=t.getAttribute(\"data-bs-target\");if(!e||\"#\"===e){let s=t.getAttribute(\"href\");if(!s||!s.includes(\"#\")&&!s.startsWith(\".\"))return null;s.includes(\"#\")&&!s.startsWith(\"#\")&&(s=\"#\"+s.split(\"#\")[1]),e=s&&\"#\"!==s?s.trim():null}return e},r=t=>{const e=o(t);return e&&document.querySelector(e)?e:null},a=t=>{const e=o(t);return e?document.querySelector(e):null},l=t=>{t.dispatchEvent(new Event(\"transitionend\"))},c=t=>!(!t||\"object\"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),h=t=>c(t)?t.jquery?t[0]:t:\"string\"==typeof t&&t.length>0?i.findOne(t):null,d=(t,e,s)=>{Object.keys(s).forEach(i=>{const n=s[i],o=e[i],r=o&&c(o)?\"element\":null==(a=o)?\"\"+a:{}.toString.call(a).match(/\\s([a-z]+)/i)[1].toLowerCase();var a;if(!new RegExp(n).test(r))throw new TypeError(`${t.toUpperCase()}: Option \"${i}\" provided type \"${r}\" but expected type \"${n}\".`)})},u=t=>!(!c(t)||0===t.getClientRects().length)&&\"visible\"===getComputedStyle(t).getPropertyValue(\"visibility\"),g=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains(\"disabled\")||(void 0!==t.disabled?t.disabled:t.hasAttribute(\"disabled\")&&\"false\"!==t.getAttribute(\"disabled\")),p=t=>{if(!document.documentElement.attachShadow)return null;if(\"function\"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?p(t.parentNode):null},f=()=>{},m=t=>t.offsetHeight,_=()=>{const{jQuery:t}=window;return t&&!document.body.hasAttribute(\"data-bs-no-jquery\")?t:null},b=[],v=()=>\"rtl\"===document.documentElement.dir,y=t=>{var e;e=()=>{const e=_();if(e){const s=t.NAME,i=e.fn[s];e.fn[s]=t.jQueryInterface,e.fn[s].Constructor=t,e.fn[s].noConflict=()=>(e.fn[s]=i,t.jQueryInterface)}},\"loading\"===document.readyState?(b.length||document.addEventListener(\"DOMContentLoaded\",()=>{b.forEach(t=>t())}),b.push(e)):e()},w=t=>{\"function\"==typeof t&&t()},E=(t,e,s=!0)=>{if(!s)return void w(t);const i=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:s}=window.getComputedStyle(t);const i=Number.parseFloat(e),n=Number.parseFloat(s);return i||n?(e=e.split(\",\")[0],s=s.split(\",\")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(s))):0})(e)+5;let n=!1;const o=({target:s})=>{s===e&&(n=!0,e.removeEventListener(\"transitionend\",o),w(t))};e.addEventListener(\"transitionend\",o),setTimeout(()=>{n||l(e)},i)},A=(t,e,s,i)=>{let n=t.indexOf(e);if(-1===n)return t[!s&&i?t.length-1:0];const o=t.length;return n+=s?1:-1,i&&(n=(n+o)%o),t[Math.max(0,Math.min(n,o-1))]},T=/[^.]*(?=\\..*)\\.|.*/,C=/\\..*/,k=/::\\d+$/,L={};let O=1;const D={mouseenter:\"mouseover\",mouseleave:\"mouseout\"},I=/^(mouseenter|mouseleave)/i,N=new Set([\"click\",\"dblclick\",\"mouseup\",\"mousedown\",\"contextmenu\",\"mousewheel\",\"DOMMouseScroll\",\"mouseover\",\"mouseout\",\"mousemove\",\"selectstart\",\"selectend\",\"keydown\",\"keypress\",\"keyup\",\"orientationchange\",\"touchstart\",\"touchmove\",\"touchend\",\"touchcancel\",\"pointerdown\",\"pointermove\",\"pointerup\",\"pointerleave\",\"pointercancel\",\"gesturestart\",\"gesturechange\",\"gestureend\",\"focus\",\"blur\",\"change\",\"reset\",\"select\",\"submit\",\"focusin\",\"focusout\",\"load\",\"unload\",\"beforeunload\",\"resize\",\"move\",\"DOMContentLoaded\",\"readystatechange\",\"error\",\"abort\",\"scroll\"]);function S(t,e){return e&&`${e}::${O++}`||t.uidEvent||O++}function x(t){const e=S(t);return t.uidEvent=e,L[e]=L[e]||{},L[e]}function M(t,e,s=null){const i=Object.keys(t);for(let n=0,o=i.length;n<o;n++){const o=t[i[n]];if(o.originalHandler===e&&o.delegationSelector===s)return o}return null}function P(t,e,s){const i=\"string\"==typeof e,n=i?s:e;let o=R(t);return N.has(o)||(o=t),[i,n,o]}function j(t,e,s,i,n){if(\"string\"!=typeof e||!t)return;if(s||(s=i,i=null),I.test(e)){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};i?i=t(i):s=t(s)}const[o,r,a]=P(e,s,i),l=x(t),c=l[a]||(l[a]={}),h=M(c,r,o?s:null);if(h)return void(h.oneOff=h.oneOff&&n);const d=S(r,e.replace(T,\"\")),u=o?function(t,e,s){return function i(n){const o=t.querySelectorAll(e);for(let{target:r}=n;r&&r!==this;r=r.parentNode)for(let a=o.length;a--;)if(o[a]===r)return n.delegateTarget=r,i.oneOff&&B.off(t,n.type,e,s),s.apply(r,[n]);return null}}(t,s,i):function(t,e){return function s(i){return i.delegateTarget=t,s.oneOff&&B.off(t,i.type,e),e.apply(t,[i])}}(t,s);u.delegationSelector=o?s:null,u.originalHandler=r,u.oneOff=n,u.uidEvent=d,c[d]=u,t.addEventListener(a,u,o)}function H(t,e,s,i,n){const o=M(e[s],i,n);o&&(t.removeEventListener(s,o,Boolean(n)),delete e[s][o.uidEvent])}function R(t){return t=t.replace(C,\"\"),D[t]||t}const B={on(t,e,s,i){j(t,e,s,i,!1)},one(t,e,s,i){j(t,e,s,i,!0)},off(t,e,s,i){if(\"string\"!=typeof e||!t)return;const[n,o,r]=P(e,s,i),a=r!==e,l=x(t),c=e.startsWith(\".\");if(void 0!==o){if(!l||!l[r])return;return void H(t,l,r,o,n?s:null)}c&&Object.keys(l).forEach(s=>{!function(t,e,s,i){const n=e[s]||{};Object.keys(n).forEach(o=>{if(o.includes(i)){const i=n[o];H(t,e,s,i.originalHandler,i.delegationSelector)}})}(t,l,s,e.slice(1))});const h=l[r]||{};Object.keys(h).forEach(s=>{const i=s.replace(k,\"\");if(!a||e.includes(i)){const e=h[s];H(t,l,r,e.originalHandler,e.delegationSelector)}})},trigger(t,e,s){if(\"string\"!=typeof e||!t)return null;const i=_(),n=R(e),o=e!==n,r=N.has(n);let a,l=!0,c=!0,h=!1,d=null;return o&&i&&(a=i.Event(e,s),i(t).trigger(a),l=!a.isPropagationStopped(),c=!a.isImmediatePropagationStopped(),h=a.isDefaultPrevented()),r?(d=document.createEvent(\"HTMLEvents\"),d.initEvent(n,l,!0)):d=new CustomEvent(e,{bubbles:l,cancelable:!0}),void 0!==s&&Object.keys(s).forEach(t=>{Object.defineProperty(d,t,{get:()=>s[t]})}),h&&d.preventDefault(),c&&t.dispatchEvent(d),d.defaultPrevented&&void 0!==a&&a.preventDefault(),d}},$=new Map;var W={set(t,e,s){$.has(t)||$.set(t,new Map);const i=$.get(t);i.has(e)||0===i.size?i.set(e,s):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(i.keys())[0]}.`)},get:(t,e)=>$.has(t)&&$.get(t).get(e)||null,remove(t,e){if(!$.has(t))return;const s=$.get(t);s.delete(e),0===s.size&&$.delete(t)}};class q{constructor(t){(t=h(t))&&(this._element=t,W.set(this._element,this.constructor.DATA_KEY,this))}dispose(){W.remove(this._element,this.constructor.DATA_KEY),B.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach(t=>{this[t]=null})}_queueCallback(t,e,s=!0){E(t,e,s)}static getInstance(t){return W.get(t,this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,\"object\"==typeof e?e:null)}static get VERSION(){return\"5.0.2\"}static get NAME(){throw new Error('You have to implement the static method \"NAME\", for each component!')}static get DATA_KEY(){return\"bs.\"+this.NAME}static get EVENT_KEY(){return\".\"+this.DATA_KEY}}class z extends q{static get NAME(){return\"alert\"}close(t){const e=t?this._getRootElement(t):this._element,s=this._triggerCloseEvent(e);null===s||s.defaultPrevented||this._removeElement(e)}_getRootElement(t){return a(t)||t.closest(\".alert\")}_triggerCloseEvent(t){return B.trigger(t,\"close.bs.alert\")}_removeElement(t){t.classList.remove(\"show\");const e=t.classList.contains(\"fade\");this._queueCallback(()=>this._destroyElement(t),t,e)}_destroyElement(t){t.remove(),B.trigger(t,\"closed.bs.alert\")}static jQueryInterface(t){return this.each((function(){const e=z.getOrCreateInstance(this);\"close\"===t&&e[t](this)}))}static handleDismiss(t){return function(e){e&&e.preventDefault(),t.close(this)}}}B.on(document,\"click.bs.alert.data-api\",'[data-bs-dismiss=\"alert\"]',z.handleDismiss(new z)),y(z);class F extends q{static get NAME(){return\"button\"}toggle(){this._element.setAttribute(\"aria-pressed\",this._element.classList.toggle(\"active\"))}static jQueryInterface(t){return this.each((function(){const e=F.getOrCreateInstance(this);\"toggle\"===t&&e[t]()}))}}function U(t){return\"true\"===t||\"false\"!==t&&(t===Number(t).toString()?Number(t):\"\"===t||\"null\"===t?null:t)}function K(t){return t.replace(/[A-Z]/g,t=>\"-\"+t.toLowerCase())}B.on(document,\"click.bs.button.data-api\",'[data-bs-toggle=\"button\"]',t=>{t.preventDefault();const e=t.target.closest('[data-bs-toggle=\"button\"]');F.getOrCreateInstance(e).toggle()}),y(F);const V={setDataAttribute(t,e,s){t.setAttribute(\"data-bs-\"+K(e),s)},removeDataAttribute(t,e){t.removeAttribute(\"data-bs-\"+K(e))},getDataAttributes(t){if(!t)return{};const e={};return Object.keys(t.dataset).filter(t=>t.startsWith(\"bs\")).forEach(s=>{let i=s.replace(/^bs/,\"\");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),e[i]=U(t.dataset[s])}),e},getDataAttribute:(t,e)=>U(t.getAttribute(\"data-bs-\"+K(e))),offset(t){const e=t.getBoundingClientRect();return{top:e.top+document.body.scrollTop,left:e.left+document.body.scrollLeft}},position:t=>({top:t.offsetTop,left:t.offsetLeft})},Q={interval:5e3,keyboard:!0,slide:!1,pause:\"hover\",wrap:!0,touch:!0},X={interval:\"(number|boolean)\",keyboard:\"boolean\",slide:\"(boolean|string)\",pause:\"(string|boolean)\",wrap:\"boolean\",touch:\"boolean\"},Y=\"next\",G=\"prev\",Z=\"left\",J=\"right\",tt={ArrowLeft:J,ArrowRight:Z};class et extends q{constructor(t,e){super(t),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._indicatorsElement=i.findOne(\".carousel-indicators\",this._element),this._touchSupported=\"ontouchstart\"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent),this._addEventListeners()}static get Default(){return Q}static get NAME(){return\"carousel\"}next(){this._slide(Y)}nextWhenVisible(){!document.hidden&&u(this._element)&&this.next()}prev(){this._slide(G)}pause(t){t||(this._isPaused=!0),i.findOne(\".carousel-item-next, .carousel-item-prev\",this._element)&&(l(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}cycle(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}to(t){this._activeElement=i.findOne(\".active.carousel-item\",this._element);const e=this._getItemIndex(this._activeElement);if(t>this._items.length-1||t<0)return;if(this._isSliding)return void B.one(this._element,\"slid.bs.carousel\",()=>this.to(t));if(e===t)return this.pause(),void this.cycle();const s=t>e?Y:G;this._slide(s,this._items[t])}_getConfig(t){return t={...Q,...V.getDataAttributes(this._element),...\"object\"==typeof t?t:{}},d(\"carousel\",t,X),t}_handleSwipe(){const t=Math.abs(this.touchDeltaX);if(t<=40)return;const e=t/this.touchDeltaX;this.touchDeltaX=0,e&&this._slide(e>0?J:Z)}_addEventListeners(){this._config.keyboard&&B.on(this._element,\"keydown.bs.carousel\",t=>this._keydown(t)),\"hover\"===this._config.pause&&(B.on(this._element,\"mouseenter.bs.carousel\",t=>this.pause(t)),B.on(this._element,\"mouseleave.bs.carousel\",t=>this.cycle(t))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}_addTouchEventListeners(){const t=t=>{!this._pointerEvent||\"pen\"!==t.pointerType&&\"touch\"!==t.pointerType?this._pointerEvent||(this.touchStartX=t.touches[0].clientX):this.touchStartX=t.clientX},e=t=>{this.touchDeltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this.touchStartX},s=t=>{!this._pointerEvent||\"pen\"!==t.pointerType&&\"touch\"!==t.pointerType||(this.touchDeltaX=t.clientX-this.touchStartX),this._handleSwipe(),\"hover\"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(t=>this.cycle(t),500+this._config.interval))};i.find(\".carousel-item img\",this._element).forEach(t=>{B.on(t,\"dragstart.bs.carousel\",t=>t.preventDefault())}),this._pointerEvent?(B.on(this._element,\"pointerdown.bs.carousel\",e=>t(e)),B.on(this._element,\"pointerup.bs.carousel\",t=>s(t)),this._element.classList.add(\"pointer-event\")):(B.on(this._element,\"touchstart.bs.carousel\",e=>t(e)),B.on(this._element,\"touchmove.bs.carousel\",t=>e(t)),B.on(this._element,\"touchend.bs.carousel\",t=>s(t)))}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=tt[t.key];e&&(t.preventDefault(),this._slide(e))}_getItemIndex(t){return this._items=t&&t.parentNode?i.find(\".carousel-item\",t.parentNode):[],this._items.indexOf(t)}_getItemByOrder(t,e){const s=t===Y;return A(this._items,e,s,this._config.wrap)}_triggerSlideEvent(t,e){const s=this._getItemIndex(t),n=this._getItemIndex(i.findOne(\".active.carousel-item\",this._element));return B.trigger(this._element,\"slide.bs.carousel\",{relatedTarget:t,direction:e,from:n,to:s})}_setActiveIndicatorElement(t){if(this._indicatorsElement){const e=i.findOne(\".active\",this._indicatorsElement);e.classList.remove(\"active\"),e.removeAttribute(\"aria-current\");const s=i.find(\"[data-bs-target]\",this._indicatorsElement);for(let e=0;e<s.length;e++)if(Number.parseInt(s[e].getAttribute(\"data-bs-slide-to\"),10)===this._getItemIndex(t)){s[e].classList.add(\"active\"),s[e].setAttribute(\"aria-current\",\"true\");break}}}_updateInterval(){const t=this._activeElement||i.findOne(\".active.carousel-item\",this._element);if(!t)return;const e=Number.parseInt(t.getAttribute(\"data-bs-interval\"),10);e?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=e):this._config.interval=this._config.defaultInterval||this._config.interval}_slide(t,e){const s=this._directionToOrder(t),n=i.findOne(\".active.carousel-item\",this._element),o=this._getItemIndex(n),r=e||this._getItemByOrder(s,n),a=this._getItemIndex(r),l=Boolean(this._interval),c=s===Y,h=c?\"carousel-item-start\":\"carousel-item-end\",d=c?\"carousel-item-next\":\"carousel-item-prev\",u=this._orderToDirection(s);if(r&&r.classList.contains(\"active\"))return void(this._isSliding=!1);if(this._isSliding)return;if(this._triggerSlideEvent(r,u).defaultPrevented)return;if(!n||!r)return;this._isSliding=!0,l&&this.pause(),this._setActiveIndicatorElement(r),this._activeElement=r;const g=()=>{B.trigger(this._element,\"slid.bs.carousel\",{relatedTarget:r,direction:u,from:o,to:a})};if(this._element.classList.contains(\"slide\")){r.classList.add(d),m(r),n.classList.add(h),r.classList.add(h);const t=()=>{r.classList.remove(h,d),r.classList.add(\"active\"),n.classList.remove(\"active\",d,h),this._isSliding=!1,setTimeout(g,0)};this._queueCallback(t,n,!0)}else n.classList.remove(\"active\"),r.classList.add(\"active\"),this._isSliding=!1,g();l&&this.cycle()}_directionToOrder(t){return[J,Z].includes(t)?v()?t===Z?G:Y:t===Z?Y:G:t}_orderToDirection(t){return[Y,G].includes(t)?v()?t===G?Z:J:t===G?J:Z:t}static carouselInterface(t,e){const s=et.getOrCreateInstance(t,e);let{_config:i}=s;\"object\"==typeof e&&(i={...i,...e});const n=\"string\"==typeof e?e:i.slide;if(\"number\"==typeof e)s.to(e);else if(\"string\"==typeof n){if(void 0===s[n])throw new TypeError(`No method named \"${n}\"`);s[n]()}else i.interval&&i.ride&&(s.pause(),s.cycle())}static jQueryInterface(t){return this.each((function(){et.carouselInterface(this,t)}))}static dataApiClickHandler(t){const e=a(this);if(!e||!e.classList.contains(\"carousel\"))return;const s={...V.getDataAttributes(e),...V.getDataAttributes(this)},i=this.getAttribute(\"data-bs-slide-to\");i&&(s.interval=!1),et.carouselInterface(e,s),i&&et.getInstance(e).to(i),t.preventDefault()}}B.on(document,\"click.bs.carousel.data-api\",\"[data-bs-slide], [data-bs-slide-to]\",et.dataApiClickHandler),B.on(window,\"load.bs.carousel.data-api\",()=>{const t=i.find('[data-bs-ride=\"carousel\"]');for(let e=0,s=t.length;e<s;e++)et.carouselInterface(t[e],et.getInstance(t[e]))}),y(et);const st={toggle:!0,parent:\"\"},it={toggle:\"boolean\",parent:\"(string|element)\"};class nt extends q{constructor(t,e){super(t),this._isTransitioning=!1,this._config=this._getConfig(e),this._triggerArray=i.find(`[data-bs-toggle=\"collapse\"][href=\"#${this._element.id}\"],[data-bs-toggle=\"collapse\"][data-bs-target=\"#${this._element.id}\"]`);const s=i.find('[data-bs-toggle=\"collapse\"]');for(let t=0,e=s.length;t<e;t++){const e=s[t],n=r(e),o=i.find(n).filter(t=>t===this._element);null!==n&&o.length&&(this._selector=n,this._triggerArray.push(e))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}static get Default(){return st}static get NAME(){return\"collapse\"}toggle(){this._element.classList.contains(\"show\")?this.hide():this.show()}show(){if(this._isTransitioning||this._element.classList.contains(\"show\"))return;let t,e;this._parent&&(t=i.find(\".show, .collapsing\",this._parent).filter(t=>\"string\"==typeof this._config.parent?t.getAttribute(\"data-bs-parent\")===this._config.parent:t.classList.contains(\"collapse\")),0===t.length&&(t=null));const s=i.findOne(this._selector);if(t){const i=t.find(t=>s!==t);if(e=i?nt.getInstance(i):null,e&&e._isTransitioning)return}if(B.trigger(this._element,\"show.bs.collapse\").defaultPrevented)return;t&&t.forEach(t=>{s!==t&&nt.collapseInterface(t,\"hide\"),e||W.set(t,\"bs.collapse\",null)});const n=this._getDimension();this._element.classList.remove(\"collapse\"),this._element.classList.add(\"collapsing\"),this._element.style[n]=0,this._triggerArray.length&&this._triggerArray.forEach(t=>{t.classList.remove(\"collapsed\"),t.setAttribute(\"aria-expanded\",!0)}),this.setTransitioning(!0);const o=\"scroll\"+(n[0].toUpperCase()+n.slice(1));this._queueCallback(()=>{this._element.classList.remove(\"collapsing\"),this._element.classList.add(\"collapse\",\"show\"),this._element.style[n]=\"\",this.setTransitioning(!1),B.trigger(this._element,\"shown.bs.collapse\")},this._element,!0),this._element.style[n]=this._element[o]+\"px\"}hide(){if(this._isTransitioning||!this._element.classList.contains(\"show\"))return;if(B.trigger(this._element,\"hide.bs.collapse\").defaultPrevented)return;const t=this._getDimension();this._element.style[t]=this._element.getBoundingClientRect()[t]+\"px\",m(this._element),this._element.classList.add(\"collapsing\"),this._element.classList.remove(\"collapse\",\"show\");const e=this._triggerArray.length;if(e>0)for(let t=0;t<e;t++){const e=this._triggerArray[t],s=a(e);s&&!s.classList.contains(\"show\")&&(e.classList.add(\"collapsed\"),e.setAttribute(\"aria-expanded\",!1))}this.setTransitioning(!0),this._element.style[t]=\"\",this._queueCallback(()=>{this.setTransitioning(!1),this._element.classList.remove(\"collapsing\"),this._element.classList.add(\"collapse\"),B.trigger(this._element,\"hidden.bs.collapse\")},this._element,!0)}setTransitioning(t){this._isTransitioning=t}_getConfig(t){return(t={...st,...t}).toggle=Boolean(t.toggle),d(\"collapse\",t,it),t}_getDimension(){return this._element.classList.contains(\"width\")?\"width\":\"height\"}_getParent(){let{parent:t}=this._config;t=h(t);const e=`[data-bs-toggle=\"collapse\"][data-bs-parent=\"${t}\"]`;return i.find(e,t).forEach(t=>{const e=a(t);this._addAriaAndCollapsedClass(e,[t])}),t}_addAriaAndCollapsedClass(t,e){if(!t||!e.length)return;const s=t.classList.contains(\"show\");e.forEach(t=>{s?t.classList.remove(\"collapsed\"):t.classList.add(\"collapsed\"),t.setAttribute(\"aria-expanded\",s)})}static collapseInterface(t,e){let s=nt.getInstance(t);const i={...st,...V.getDataAttributes(t),...\"object\"==typeof e&&e?e:{}};if(!s&&i.toggle&&\"string\"==typeof e&&/show|hide/.test(e)&&(i.toggle=!1),s||(s=new nt(t,i)),\"string\"==typeof e){if(void 0===s[e])throw new TypeError(`No method named \"${e}\"`);s[e]()}}static jQueryInterface(t){return this.each((function(){nt.collapseInterface(this,t)}))}}B.on(document,\"click.bs.collapse.data-api\",'[data-bs-toggle=\"collapse\"]',(function(t){(\"A\"===t.target.tagName||t.delegateTarget&&\"A\"===t.delegateTarget.tagName)&&t.preventDefault();const e=V.getDataAttributes(this),s=r(this);i.find(s).forEach(t=>{const s=nt.getInstance(t);let i;s?(null===s._parent&&\"string\"==typeof e.parent&&(s._config.parent=e.parent,s._parent=s._getParent()),i=\"toggle\"):i=e,nt.collapseInterface(t,i)})})),y(nt);const ot=new RegExp(\"ArrowUp|ArrowDown|Escape\"),rt=v()?\"top-end\":\"top-start\",at=v()?\"top-start\":\"top-end\",lt=v()?\"bottom-end\":\"bottom-start\",ct=v()?\"bottom-start\":\"bottom-end\",ht=v()?\"left-start\":\"right-start\",dt=v()?\"right-start\":\"left-start\",ut={offset:[0,2],boundary:\"clippingParents\",reference:\"toggle\",display:\"dynamic\",popperConfig:null,autoClose:!0},gt={offset:\"(array|string|function)\",boundary:\"(string|element)\",reference:\"(string|element|object)\",display:\"string\",popperConfig:\"(null|object|function)\",autoClose:\"(boolean|string)\"};class pt extends q{constructor(t,e){super(t),this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}static get Default(){return ut}static get DefaultType(){return gt}static get NAME(){return\"dropdown\"}toggle(){g(this._element)||(this._element.classList.contains(\"show\")?this.hide():this.show())}show(){if(g(this._element)||this._menu.classList.contains(\"show\"))return;const t=pt.getParentFromElement(this._element),e={relatedTarget:this._element};if(!B.trigger(this._element,\"show.bs.dropdown\",e).defaultPrevented){if(this._inNavbar)V.setDataAttribute(this._menu,\"popper\",\"none\");else{if(void 0===s)throw new TypeError(\"Bootstrap's dropdowns require Popper (https://popper.js.org)\");let e=this._element;\"parent\"===this._config.reference?e=t:c(this._config.reference)?e=h(this._config.reference):\"object\"==typeof this._config.reference&&(e=this._config.reference);const i=this._getPopperConfig(),n=i.modifiers.find(t=>\"applyStyles\"===t.name&&!1===t.enabled);this._popper=s.createPopper(e,this._menu,i),n&&V.setDataAttribute(this._menu,\"popper\",\"static\")}\"ontouchstart\"in document.documentElement&&!t.closest(\".navbar-nav\")&&[].concat(...document.body.children).forEach(t=>B.on(t,\"mouseover\",f)),this._element.focus(),this._element.setAttribute(\"aria-expanded\",!0),this._menu.classList.toggle(\"show\"),this._element.classList.toggle(\"show\"),B.trigger(this._element,\"shown.bs.dropdown\",e)}}hide(){if(g(this._element)||!this._menu.classList.contains(\"show\"))return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_addEventListeners(){B.on(this._element,\"click.bs.dropdown\",t=>{t.preventDefault(),this.toggle()})}_completeHide(t){B.trigger(this._element,\"hide.bs.dropdown\",t).defaultPrevented||(\"ontouchstart\"in document.documentElement&&[].concat(...document.body.children).forEach(t=>B.off(t,\"mouseover\",f)),this._popper&&this._popper.destroy(),this._menu.classList.remove(\"show\"),this._element.classList.remove(\"show\"),this._element.setAttribute(\"aria-expanded\",\"false\"),V.removeDataAttribute(this._menu,\"popper\"),B.trigger(this._element,\"hidden.bs.dropdown\",t))}_getConfig(t){if(t={...this.constructor.Default,...V.getDataAttributes(this._element),...t},d(\"dropdown\",t,this.constructor.DefaultType),\"object\"==typeof t.reference&&!c(t.reference)&&\"function\"!=typeof t.reference.getBoundingClientRect)throw new TypeError(\"dropdown\".toUpperCase()+': Option \"reference\" provided type \"object\" without a required \"getBoundingClientRect\" method.');return t}_getMenuElement(){return i.next(this._element,\".dropdown-menu\")[0]}_getPlacement(){const t=this._element.parentNode;if(t.classList.contains(\"dropend\"))return ht;if(t.classList.contains(\"dropstart\"))return dt;const e=\"end\"===getComputedStyle(this._menu).getPropertyValue(\"--bs-position\").trim();return t.classList.contains(\"dropup\")?e?at:rt:e?ct:lt}_detectNavbar(){return null!==this._element.closest(\".navbar\")}_getOffset(){const{offset:t}=this._config;return\"string\"==typeof t?t.split(\",\").map(t=>Number.parseInt(t,10)):\"function\"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:\"preventOverflow\",options:{boundary:this._config.boundary}},{name:\"offset\",options:{offset:this._getOffset()}}]};return\"static\"===this._config.display&&(t.modifiers=[{name:\"applyStyles\",enabled:!1}]),{...t,...\"function\"==typeof this._config.popperConfig?this._config.popperConfig(t):this._config.popperConfig}}_selectMenuItem({key:t,target:e}){const s=i.find(\".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)\",this._menu).filter(u);s.length&&A(s,e,\"ArrowDown\"===t,!s.includes(e)).focus()}static dropdownInterface(t,e){const s=pt.getOrCreateInstance(t,e);if(\"string\"==typeof e){if(void 0===s[e])throw new TypeError(`No method named \"${e}\"`);s[e]()}}static jQueryInterface(t){return this.each((function(){pt.dropdownInterface(this,t)}))}static clearMenus(t){if(t&&(2===t.button||\"keyup\"===t.type&&\"Tab\"!==t.key))return;const e=i.find('[data-bs-toggle=\"dropdown\"]');for(let s=0,i=e.length;s<i;s++){const i=pt.getInstance(e[s]);if(!i||!1===i._config.autoClose)continue;if(!i._element.classList.contains(\"show\"))continue;const n={relatedTarget:i._element};if(t){const e=t.composedPath(),s=e.includes(i._menu);if(e.includes(i._element)||\"inside\"===i._config.autoClose&&!s||\"outside\"===i._config.autoClose&&s)continue;if(i._menu.contains(t.target)&&(\"keyup\"===t.type&&\"Tab\"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;\"click\"===t.type&&(n.clickEvent=t)}i._completeHide(n)}}static getParentFromElement(t){return a(t)||t.parentNode}static dataApiKeydownHandler(t){if(/input|textarea/i.test(t.target.tagName)?\"Space\"===t.key||\"Escape\"!==t.key&&(\"ArrowDown\"!==t.key&&\"ArrowUp\"!==t.key||t.target.closest(\".dropdown-menu\")):!ot.test(t.key))return;const e=this.classList.contains(\"show\");if(!e&&\"Escape\"===t.key)return;if(t.preventDefault(),t.stopPropagation(),g(this))return;const s=()=>this.matches('[data-bs-toggle=\"dropdown\"]')?this:i.prev(this,'[data-bs-toggle=\"dropdown\"]')[0];return\"Escape\"===t.key?(s().focus(),void pt.clearMenus()):\"ArrowUp\"===t.key||\"ArrowDown\"===t.key?(e||s().click(),void pt.getInstance(s())._selectMenuItem(t)):void(e&&\"Space\"!==t.key||pt.clearMenus())}}B.on(document,\"keydown.bs.dropdown.data-api\",'[data-bs-toggle=\"dropdown\"]',pt.dataApiKeydownHandler),B.on(document,\"keydown.bs.dropdown.data-api\",\".dropdown-menu\",pt.dataApiKeydownHandler),B.on(document,\"click.bs.dropdown.data-api\",pt.clearMenus),B.on(document,\"keyup.bs.dropdown.data-api\",pt.clearMenus),B.on(document,\"click.bs.dropdown.data-api\",'[data-bs-toggle=\"dropdown\"]',(function(t){t.preventDefault(),pt.dropdownInterface(this)})),y(pt);class ft{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,\"paddingRight\",e=>e+t),this._setElementAttributes(\".fixed-top, .fixed-bottom, .is-fixed, .sticky-top\",\"paddingRight\",e=>e+t),this._setElementAttributes(\".sticky-top\",\"marginRight\",e=>e-t)}_disableOverFlow(){this._saveInitialAttribute(this._element,\"overflow\"),this._element.style.overflow=\"hidden\"}_setElementAttributes(t,e,s){const i=this.getWidth();this._applyManipulationCallback(t,t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+i)return;this._saveInitialAttribute(t,e);const n=window.getComputedStyle(t)[e];t.style[e]=s(Number.parseFloat(n))+\"px\"})}reset(){this._resetElementAttributes(this._element,\"overflow\"),this._resetElementAttributes(this._element,\"paddingRight\"),this._resetElementAttributes(\".fixed-top, .fixed-bottom, .is-fixed, .sticky-top\",\"paddingRight\"),this._resetElementAttributes(\".sticky-top\",\"marginRight\")}_saveInitialAttribute(t,e){const s=t.style[e];s&&V.setDataAttribute(t,e,s)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,t=>{const s=V.getDataAttribute(t,e);void 0===s?t.style.removeProperty(e):(V.removeDataAttribute(t,e),t.style[e]=s)})}_applyManipulationCallback(t,e){c(t)?e(t):i.find(t,this._element).forEach(e)}isOverflowing(){return this.getWidth()>0}}const mt={isVisible:!0,isAnimated:!1,rootElement:\"body\",clickCallback:null},_t={isVisible:\"boolean\",isAnimated:\"boolean\",rootElement:\"(element|string)\",clickCallback:\"(function|null)\"};class bt{constructor(t){this._config=this._getConfig(t),this._isAppended=!1,this._element=null}show(t){this._config.isVisible?(this._append(),this._config.isAnimated&&m(this._getElement()),this._getElement().classList.add(\"show\"),this._emulateAnimation(()=>{w(t)})):w(t)}hide(t){this._config.isVisible?(this._getElement().classList.remove(\"show\"),this._emulateAnimation(()=>{this.dispose(),w(t)})):w(t)}_getElement(){if(!this._element){const t=document.createElement(\"div\");t.className=\"modal-backdrop\",this._config.isAnimated&&t.classList.add(\"fade\"),this._element=t}return this._element}_getConfig(t){return(t={...mt,...\"object\"==typeof t?t:{}}).rootElement=h(t.rootElement),d(\"backdrop\",t,_t),t}_append(){this._isAppended||(this._config.rootElement.appendChild(this._getElement()),B.on(this._getElement(),\"mousedown.bs.backdrop\",()=>{w(this._config.clickCallback)}),this._isAppended=!0)}dispose(){this._isAppended&&(B.off(this._element,\"mousedown.bs.backdrop\"),this._element.remove(),this._isAppended=!1)}_emulateAnimation(t){E(t,this._getElement(),this._config.isAnimated)}}const vt={backdrop:!0,keyboard:!0,focus:!0},yt={backdrop:\"(boolean|string)\",keyboard:\"boolean\",focus:\"boolean\"};class wt extends q{constructor(t,e){super(t),this._config=this._getConfig(e),this._dialog=i.findOne(\".modal-dialog\",this._element),this._backdrop=this._initializeBackDrop(),this._isShown=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollBar=new ft}static get Default(){return vt}static get NAME(){return\"modal\"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||B.trigger(this._element,\"show.bs.modal\",{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._scrollBar.hide(),document.body.classList.add(\"modal-open\"),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),B.on(this._element,\"click.dismiss.bs.modal\",'[data-bs-dismiss=\"modal\"]',t=>this.hide(t)),B.on(this._dialog,\"mousedown.dismiss.bs.modal\",()=>{B.one(this._element,\"mouseup.dismiss.bs.modal\",t=>{t.target===this._element&&(this._ignoreBackdropClick=!0)})}),this._showBackdrop(()=>this._showElement(t)))}hide(t){if(t&&[\"A\",\"AREA\"].includes(t.target.tagName)&&t.preventDefault(),!this._isShown||this._isTransitioning)return;if(B.trigger(this._element,\"hide.bs.modal\").defaultPrevented)return;this._isShown=!1;const e=this._isAnimated();e&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),B.off(document,\"focusin.bs.modal\"),this._element.classList.remove(\"show\"),B.off(this._element,\"click.dismiss.bs.modal\"),B.off(this._dialog,\"mousedown.dismiss.bs.modal\"),this._queueCallback(()=>this._hideModal(),this._element,e)}dispose(){[window,this._dialog].forEach(t=>B.off(t,\".bs.modal\")),this._backdrop.dispose(),super.dispose(),B.off(document,\"focusin.bs.modal\")}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new bt({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_getConfig(t){return t={...vt,...V.getDataAttributes(this._element),...\"object\"==typeof t?t:{}},d(\"modal\",t,yt),t}_showElement(t){const e=this._isAnimated(),s=i.findOne(\".modal-body\",this._dialog);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display=\"block\",this._element.removeAttribute(\"aria-hidden\"),this._element.setAttribute(\"aria-modal\",!0),this._element.setAttribute(\"role\",\"dialog\"),this._element.scrollTop=0,s&&(s.scrollTop=0),e&&m(this._element),this._element.classList.add(\"show\"),this._config.focus&&this._enforceFocus(),this._queueCallback(()=>{this._config.focus&&this._element.focus(),this._isTransitioning=!1,B.trigger(this._element,\"shown.bs.modal\",{relatedTarget:t})},this._dialog,e)}_enforceFocus(){B.off(document,\"focusin.bs.modal\"),B.on(document,\"focusin.bs.modal\",t=>{document===t.target||this._element===t.target||this._element.contains(t.target)||this._element.focus()})}_setEscapeEvent(){this._isShown?B.on(this._element,\"keydown.dismiss.bs.modal\",t=>{this._config.keyboard&&\"Escape\"===t.key?(t.preventDefault(),this.hide()):this._config.keyboard||\"Escape\"!==t.key||this._triggerBackdropTransition()}):B.off(this._element,\"keydown.dismiss.bs.modal\")}_setResizeEvent(){this._isShown?B.on(window,\"resize.bs.modal\",()=>this._adjustDialog()):B.off(window,\"resize.bs.modal\")}_hideModal(){this._element.style.display=\"none\",this._element.setAttribute(\"aria-hidden\",!0),this._element.removeAttribute(\"aria-modal\"),this._element.removeAttribute(\"role\"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(\"modal-open\"),this._resetAdjustments(),this._scrollBar.reset(),B.trigger(this._element,\"hidden.bs.modal\")})}_showBackdrop(t){B.on(this._element,\"click.dismiss.bs.modal\",t=>{this._ignoreBackdropClick?this._ignoreBackdropClick=!1:t.target===t.currentTarget&&(!0===this._config.backdrop?this.hide():\"static\"===this._config.backdrop&&this._triggerBackdropTransition())}),this._backdrop.show(t)}_isAnimated(){return this._element.classList.contains(\"fade\")}_triggerBackdropTransition(){if(B.trigger(this._element,\"hidePrevented.bs.modal\").defaultPrevented)return;const{classList:t,scrollHeight:e,style:s}=this._element,i=e>document.documentElement.clientHeight;!i&&\"hidden\"===s.overflowY||t.contains(\"modal-static\")||(i||(s.overflowY=\"hidden\"),t.add(\"modal-static\"),this._queueCallback(()=>{t.remove(\"modal-static\"),i||this._queueCallback(()=>{s.overflowY=\"\"},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),s=e>0;(!s&&t&&!v()||s&&!t&&v())&&(this._element.style.paddingLeft=e+\"px\"),(s&&!t&&!v()||!s&&t&&v())&&(this._element.style.paddingRight=e+\"px\")}_resetAdjustments(){this._element.style.paddingLeft=\"\",this._element.style.paddingRight=\"\"}static jQueryInterface(t,e){return this.each((function(){const s=wt.getOrCreateInstance(this,t);if(\"string\"==typeof t){if(void 0===s[t])throw new TypeError(`No method named \"${t}\"`);s[t](e)}}))}}B.on(document,\"click.bs.modal.data-api\",'[data-bs-toggle=\"modal\"]',(function(t){const e=a(this);[\"A\",\"AREA\"].includes(this.tagName)&&t.preventDefault(),B.one(e,\"show.bs.modal\",t=>{t.defaultPrevented||B.one(e,\"hidden.bs.modal\",()=>{u(this)&&this.focus()})}),wt.getOrCreateInstance(e).toggle(this)})),y(wt);const Et={backdrop:!0,keyboard:!0,scroll:!1},At={backdrop:\"boolean\",keyboard:\"boolean\",scroll:\"boolean\"};class Tt extends q{constructor(t,e){super(t),this._config=this._getConfig(e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._addEventListeners()}static get NAME(){return\"offcanvas\"}static get Default(){return Et}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||B.trigger(this._element,\"show.bs.offcanvas\",{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._element.style.visibility=\"visible\",this._backdrop.show(),this._config.scroll||((new ft).hide(),this._enforceFocusOnElement(this._element)),this._element.removeAttribute(\"aria-hidden\"),this._element.setAttribute(\"aria-modal\",!0),this._element.setAttribute(\"role\",\"dialog\"),this._element.classList.add(\"show\"),this._queueCallback(()=>{B.trigger(this._element,\"shown.bs.offcanvas\",{relatedTarget:t})},this._element,!0))}hide(){this._isShown&&(B.trigger(this._element,\"hide.bs.offcanvas\").defaultPrevented||(B.off(document,\"focusin.bs.offcanvas\"),this._element.blur(),this._isShown=!1,this._element.classList.remove(\"show\"),this._backdrop.hide(),this._queueCallback(()=>{this._element.setAttribute(\"aria-hidden\",!0),this._element.removeAttribute(\"aria-modal\"),this._element.removeAttribute(\"role\"),this._element.style.visibility=\"hidden\",this._config.scroll||(new ft).reset(),B.trigger(this._element,\"hidden.bs.offcanvas\")},this._element,!0)))}dispose(){this._backdrop.dispose(),super.dispose(),B.off(document,\"focusin.bs.offcanvas\")}_getConfig(t){return t={...Et,...V.getDataAttributes(this._element),...\"object\"==typeof t?t:{}},d(\"offcanvas\",t,At),t}_initializeBackDrop(){return new bt({isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:()=>this.hide()})}_enforceFocusOnElement(t){B.off(document,\"focusin.bs.offcanvas\"),B.on(document,\"focusin.bs.offcanvas\",e=>{document===e.target||t===e.target||t.contains(e.target)||t.focus()}),t.focus()}_addEventListeners(){B.on(this._element,\"click.dismiss.bs.offcanvas\",'[data-bs-dismiss=\"offcanvas\"]',()=>this.hide()),B.on(this._element,\"keydown.dismiss.bs.offcanvas\",t=>{this._config.keyboard&&\"Escape\"===t.key&&this.hide()})}static jQueryInterface(t){return this.each((function(){const e=Tt.getOrCreateInstance(this,t);if(\"string\"==typeof t){if(void 0===e[t]||t.startsWith(\"_\")||\"constructor\"===t)throw new TypeError(`No method named \"${t}\"`);e[t](this)}}))}}B.on(document,\"click.bs.offcanvas.data-api\",'[data-bs-toggle=\"offcanvas\"]',(function(t){const e=a(this);if([\"A\",\"AREA\"].includes(this.tagName)&&t.preventDefault(),g(this))return;B.one(e,\"hidden.bs.offcanvas\",()=>{u(this)&&this.focus()});const s=i.findOne(\".offcanvas.show\");s&&s!==e&&Tt.getInstance(s).hide(),Tt.getOrCreateInstance(e).toggle(this)})),B.on(window,\"load.bs.offcanvas.data-api\",()=>i.find(\".offcanvas.show\").forEach(t=>Tt.getOrCreateInstance(t).show())),y(Tt);const Ct=new Set([\"background\",\"cite\",\"href\",\"itemtype\",\"longdesc\",\"poster\",\"src\",\"xlink:href\"]),kt=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/i,Lt=/^data:(?:image\\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\\/(?:mpeg|mp4|ogg|webm)|audio\\/(?:mp3|oga|ogg|opus));base64,[\\d+/a-z]+=*$/i,Ot=(t,e)=>{const s=t.nodeName.toLowerCase();if(e.includes(s))return!Ct.has(s)||Boolean(kt.test(t.nodeValue)||Lt.test(t.nodeValue));const i=e.filter(t=>t instanceof RegExp);for(let t=0,e=i.length;t<e;t++)if(i[t].test(s))return!0;return!1};function Dt(t,e,s){if(!t.length)return t;if(s&&\"function\"==typeof s)return s(t);const i=(new window.DOMParser).parseFromString(t,\"text/html\"),n=Object.keys(e),o=[].concat(...i.body.querySelectorAll(\"*\"));for(let t=0,s=o.length;t<s;t++){const s=o[t],i=s.nodeName.toLowerCase();if(!n.includes(i)){s.remove();continue}const r=[].concat(...s.attributes),a=[].concat(e[\"*\"]||[],e[i]||[]);r.forEach(t=>{Ot(t,a)||s.removeAttribute(t.nodeName)})}return i.body.innerHTML}const It=new RegExp(\"(^|\\\\s)bs-tooltip\\\\S+\",\"g\"),Nt=new Set([\"sanitize\",\"allowList\",\"sanitizeFn\"]),St={animation:\"boolean\",template:\"string\",title:\"(string|element|function)\",trigger:\"string\",delay:\"(number|object)\",html:\"boolean\",selector:\"(string|boolean)\",placement:\"(string|function)\",offset:\"(array|string|function)\",container:\"(string|element|boolean)\",fallbackPlacements:\"array\",boundary:\"(string|element)\",customClass:\"(string|function)\",sanitize:\"boolean\",sanitizeFn:\"(null|function)\",allowList:\"object\",popperConfig:\"(null|object|function)\"},xt={AUTO:\"auto\",TOP:\"top\",RIGHT:v()?\"left\":\"right\",BOTTOM:\"bottom\",LEFT:v()?\"right\":\"left\"},Mt={animation:!0,template:'<div class=\"tooltip\" role=\"tooltip\"><div class=\"tooltip-arrow\"></div><div class=\"tooltip-inner\"></div></div>',trigger:\"hover focus\",title:\"\",delay:0,html:!1,selector:!1,placement:\"top\",offset:[0,0],container:!1,fallbackPlacements:[\"top\",\"right\",\"bottom\",\"left\"],boundary:\"clippingParents\",customClass:\"\",sanitize:!0,sanitizeFn:null,allowList:{\"*\":[\"class\",\"dir\",\"id\",\"lang\",\"role\",/^aria-[\\w-]*$/i],a:[\"target\",\"href\",\"title\",\"rel\"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:[\"src\",\"srcset\",\"alt\",\"title\",\"width\",\"height\"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},popperConfig:null},Pt={HIDE:\"hide.bs.tooltip\",HIDDEN:\"hidden.bs.tooltip\",SHOW:\"show.bs.tooltip\",SHOWN:\"shown.bs.tooltip\",INSERTED:\"inserted.bs.tooltip\",CLICK:\"click.bs.tooltip\",FOCUSIN:\"focusin.bs.tooltip\",FOCUSOUT:\"focusout.bs.tooltip\",MOUSEENTER:\"mouseenter.bs.tooltip\",MOUSELEAVE:\"mouseleave.bs.tooltip\"};class jt extends q{constructor(t,e){if(void 0===s)throw new TypeError(\"Bootstrap's tooltips require Popper (https://popper.js.org)\");super(t),this._isEnabled=!0,this._timeout=0,this._hoverState=\"\",this._activeTrigger={},this._popper=null,this._config=this._getConfig(e),this.tip=null,this._setListeners()}static get Default(){return Mt}static get NAME(){return\"tooltip\"}static get Event(){return Pt}static get DefaultType(){return St}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(t){if(this._isEnabled)if(t){const e=this._initializeOnDelegatedTarget(t);e._activeTrigger.click=!e._activeTrigger.click,e._isWithActiveTrigger()?e._enter(null,e):e._leave(null,e)}else{if(this.getTipElement().classList.contains(\"show\"))return void this._leave(null,this);this._enter(null,this)}}dispose(){clearTimeout(this._timeout),B.off(this._element.closest(\".modal\"),\"hide.bs.modal\",this._hideModalHandler),this.tip&&this.tip.remove(),this._popper&&this._popper.destroy(),super.dispose()}show(){if(\"none\"===this._element.style.display)throw new Error(\"Please use show on visible elements\");if(!this.isWithContent()||!this._isEnabled)return;const t=B.trigger(this._element,this.constructor.Event.SHOW),e=p(this._element),i=null===e?this._element.ownerDocument.documentElement.contains(this._element):e.contains(this._element);if(t.defaultPrevented||!i)return;const o=this.getTipElement(),r=n(this.constructor.NAME);o.setAttribute(\"id\",r),this._element.setAttribute(\"aria-describedby\",r),this.setContent(),this._config.animation&&o.classList.add(\"fade\");const a=\"function\"==typeof this._config.placement?this._config.placement.call(this,o,this._element):this._config.placement,l=this._getAttachment(a);this._addAttachmentClass(l);const{container:c}=this._config;W.set(o,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(c.appendChild(o),B.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=s.createPopper(this._element,o,this._getPopperConfig(l)),o.classList.add(\"show\");const h=\"function\"==typeof this._config.customClass?this._config.customClass():this._config.customClass;h&&o.classList.add(...h.split(\" \")),\"ontouchstart\"in document.documentElement&&[].concat(...document.body.children).forEach(t=>{B.on(t,\"mouseover\",f)});const d=this.tip.classList.contains(\"fade\");this._queueCallback(()=>{const t=this._hoverState;this._hoverState=null,B.trigger(this._element,this.constructor.Event.SHOWN),\"out\"===t&&this._leave(null,this)},this.tip,d)}hide(){if(!this._popper)return;const t=this.getTipElement();if(B.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented)return;t.classList.remove(\"show\"),\"ontouchstart\"in document.documentElement&&[].concat(...document.body.children).forEach(t=>B.off(t,\"mouseover\",f)),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1;const e=this.tip.classList.contains(\"fade\");this._queueCallback(()=>{this._isWithActiveTrigger()||(\"show\"!==this._hoverState&&t.remove(),this._cleanTipClass(),this._element.removeAttribute(\"aria-describedby\"),B.trigger(this._element,this.constructor.Event.HIDDEN),this._popper&&(this._popper.destroy(),this._popper=null))},this.tip,e),this._hoverState=\"\"}update(){null!==this._popper&&this._popper.update()}isWithContent(){return Boolean(this.getTitle())}getTipElement(){if(this.tip)return this.tip;const t=document.createElement(\"div\");return t.innerHTML=this._config.template,this.tip=t.children[0],this.tip}setContent(){const t=this.getTipElement();this.setElementContent(i.findOne(\".tooltip-inner\",t),this.getTitle()),t.classList.remove(\"fade\",\"show\")}setElementContent(t,e){if(null!==t)return c(e)?(e=h(e),void(this._config.html?e.parentNode!==t&&(t.innerHTML=\"\",t.appendChild(e)):t.textContent=e.textContent)):void(this._config.html?(this._config.sanitize&&(e=Dt(e,this._config.allowList,this._config.sanitizeFn)),t.innerHTML=e):t.textContent=e)}getTitle(){let t=this._element.getAttribute(\"data-bs-original-title\");return t||(t=\"function\"==typeof this._config.title?this._config.title.call(this._element):this._config.title),t}updateAttachment(t){return\"right\"===t?\"end\":\"left\"===t?\"start\":t}_initializeOnDelegatedTarget(t,e){const s=this.constructor.DATA_KEY;return(e=e||W.get(t.delegateTarget,s))||(e=new this.constructor(t.delegateTarget,this._getDelegateConfig()),W.set(t.delegateTarget,s,e)),e}_getOffset(){const{offset:t}=this._config;return\"string\"==typeof t?t.split(\",\").map(t=>Number.parseInt(t,10)):\"function\"==typeof t?e=>t(e,this._element):t}_getPopperConfig(t){const e={placement:t,modifiers:[{name:\"flip\",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:\"offset\",options:{offset:this._getOffset()}},{name:\"preventOverflow\",options:{boundary:this._config.boundary}},{name:\"arrow\",options:{element:`.${this.constructor.NAME}-arrow`}},{name:\"onChange\",enabled:!0,phase:\"afterWrite\",fn:t=>this._handlePopperPlacementChange(t)}],onFirstUpdate:t=>{t.options.placement!==t.placement&&this._handlePopperPlacementChange(t)}};return{...e,...\"function\"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}_addAttachmentClass(t){this.getTipElement().classList.add(\"bs-tooltip-\"+this.updateAttachment(t))}_getAttachment(t){return xt[t.toUpperCase()]}_setListeners(){this._config.trigger.split(\" \").forEach(t=>{if(\"click\"===t)B.on(this._element,this.constructor.Event.CLICK,this._config.selector,t=>this.toggle(t));else if(\"manual\"!==t){const e=\"hover\"===t?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,s=\"hover\"===t?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;B.on(this._element,e,this._config.selector,t=>this._enter(t)),B.on(this._element,s,this._config.selector,t=>this._leave(t))}}),this._hideModalHandler=()=>{this._element&&this.hide()},B.on(this._element.closest(\".modal\"),\"hide.bs.modal\",this._hideModalHandler),this._config.selector?this._config={...this._config,trigger:\"manual\",selector:\"\"}:this._fixTitle()}_fixTitle(){const t=this._element.getAttribute(\"title\"),e=typeof this._element.getAttribute(\"data-bs-original-title\");(t||\"string\"!==e)&&(this._element.setAttribute(\"data-bs-original-title\",t||\"\"),!t||this._element.getAttribute(\"aria-label\")||this._element.textContent||this._element.setAttribute(\"aria-label\",t),this._element.setAttribute(\"title\",\"\"))}_enter(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger[\"focusin\"===t.type?\"focus\":\"hover\"]=!0),e.getTipElement().classList.contains(\"show\")||\"show\"===e._hoverState?e._hoverState=\"show\":(clearTimeout(e._timeout),e._hoverState=\"show\",e._config.delay&&e._config.delay.show?e._timeout=setTimeout(()=>{\"show\"===e._hoverState&&e.show()},e._config.delay.show):e.show())}_leave(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger[\"focusout\"===t.type?\"focus\":\"hover\"]=e._element.contains(t.relatedTarget)),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=\"out\",e._config.delay&&e._config.delay.hide?e._timeout=setTimeout(()=>{\"out\"===e._hoverState&&e.hide()},e._config.delay.hide):e.hide())}_isWithActiveTrigger(){for(const t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1}_getConfig(t){const e=V.getDataAttributes(this._element);return Object.keys(e).forEach(t=>{Nt.has(t)&&delete e[t]}),(t={...this.constructor.Default,...e,...\"object\"==typeof t&&t?t:{}}).container=!1===t.container?document.body:h(t.container),\"number\"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),\"number\"==typeof t.title&&(t.title=t.title.toString()),\"number\"==typeof t.content&&(t.content=t.content.toString()),d(\"tooltip\",t,this.constructor.DefaultType),t.sanitize&&(t.template=Dt(t.template,t.allowList,t.sanitizeFn)),t}_getDelegateConfig(){const t={};if(this._config)for(const e in this._config)this.constructor.Default[e]!==this._config[e]&&(t[e]=this._config[e]);return t}_cleanTipClass(){const t=this.getTipElement(),e=t.getAttribute(\"class\").match(It);null!==e&&e.length>0&&e.map(t=>t.trim()).forEach(e=>t.classList.remove(e))}_handlePopperPlacementChange(t){const{state:e}=t;e&&(this.tip=e.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(e.placement)))}static jQueryInterface(t){return this.each((function(){const e=jt.getOrCreateInstance(this,t);if(\"string\"==typeof t){if(void 0===e[t])throw new TypeError(`No method named \"${t}\"`);e[t]()}}))}}y(jt);const Ht=new RegExp(\"(^|\\\\s)bs-popover\\\\S+\",\"g\"),Rt={...jt.Default,placement:\"right\",offset:[0,8],trigger:\"click\",content:\"\",template:'<div class=\"popover\" role=\"tooltip\"><div class=\"popover-arrow\"></div><h3 class=\"popover-header\"></h3><div class=\"popover-body\"></div></div>'},Bt={...jt.DefaultType,content:\"(string|element|function)\"},$t={HIDE:\"hide.bs.popover\",HIDDEN:\"hidden.bs.popover\",SHOW:\"show.bs.popover\",SHOWN:\"shown.bs.popover\",INSERTED:\"inserted.bs.popover\",CLICK:\"click.bs.popover\",FOCUSIN:\"focusin.bs.popover\",FOCUSOUT:\"focusout.bs.popover\",MOUSEENTER:\"mouseenter.bs.popover\",MOUSELEAVE:\"mouseleave.bs.popover\"};class Wt extends jt{static get Default(){return Rt}static get NAME(){return\"popover\"}static get Event(){return $t}static get DefaultType(){return Bt}isWithContent(){return this.getTitle()||this._getContent()}getTipElement(){return this.tip||(this.tip=super.getTipElement(),this.getTitle()||i.findOne(\".popover-header\",this.tip).remove(),this._getContent()||i.findOne(\".popover-body\",this.tip).remove()),this.tip}setContent(){const t=this.getTipElement();this.setElementContent(i.findOne(\".popover-header\",t),this.getTitle());let e=this._getContent();\"function\"==typeof e&&(e=e.call(this._element)),this.setElementContent(i.findOne(\".popover-body\",t),e),t.classList.remove(\"fade\",\"show\")}_addAttachmentClass(t){this.getTipElement().classList.add(\"bs-popover-\"+this.updateAttachment(t))}_getContent(){return this._element.getAttribute(\"data-bs-content\")||this._config.content}_cleanTipClass(){const t=this.getTipElement(),e=t.getAttribute(\"class\").match(Ht);null!==e&&e.length>0&&e.map(t=>t.trim()).forEach(e=>t.classList.remove(e))}static jQueryInterface(t){return this.each((function(){const e=Wt.getOrCreateInstance(this,t);if(\"string\"==typeof t){if(void 0===e[t])throw new TypeError(`No method named \"${t}\"`);e[t]()}}))}}y(Wt);const qt={offset:10,method:\"auto\",target:\"\"},zt={offset:\"number\",method:\"string\",target:\"(string|element)\"};class Ft extends q{constructor(t,e){super(t),this._scrollElement=\"BODY\"===this._element.tagName?window:this._element,this._config=this._getConfig(e),this._selector=`${this._config.target} .nav-link, ${this._config.target} .list-group-item, ${this._config.target} .dropdown-item`,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,B.on(this._scrollElement,\"scroll.bs.scrollspy\",()=>this._process()),this.refresh(),this._process()}static get Default(){return qt}static get NAME(){return\"scrollspy\"}refresh(){const t=this._scrollElement===this._scrollElement.window?\"offset\":\"position\",e=\"auto\"===this._config.method?t:this._config.method,s=\"position\"===e?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),i.find(this._selector).map(t=>{const n=r(t),o=n?i.findOne(n):null;if(o){const t=o.getBoundingClientRect();if(t.width||t.height)return[V[e](o).top+s,n]}return null}).filter(t=>t).sort((t,e)=>t[0]-e[0]).forEach(t=>{this._offsets.push(t[0]),this._targets.push(t[1])})}dispose(){B.off(this._scrollElement,\".bs.scrollspy\"),super.dispose()}_getConfig(t){if(\"string\"!=typeof(t={...qt,...V.getDataAttributes(this._element),...\"object\"==typeof t&&t?t:{}}).target&&c(t.target)){let{id:e}=t.target;e||(e=n(\"scrollspy\"),t.target.id=e),t.target=\"#\"+e}return d(\"scrollspy\",t,zt),t}_getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}_getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}_getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}_process(){const t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),s=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=s){const t=this._targets[this._targets.length-1];this._activeTarget!==t&&this._activate(t)}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(let e=this._offsets.length;e--;)this._activeTarget!==this._targets[e]&&t>=this._offsets[e]&&(void 0===this._offsets[e+1]||t<this._offsets[e+1])&&this._activate(this._targets[e])}}_activate(t){this._activeTarget=t,this._clear();const e=this._selector.split(\",\").map(e=>`${e}[data-bs-target=\"${t}\"],${e}[href=\"${t}\"]`),s=i.findOne(e.join(\",\"));s.classList.contains(\"dropdown-item\")?(i.findOne(\".dropdown-toggle\",s.closest(\".dropdown\")).classList.add(\"active\"),s.classList.add(\"active\")):(s.classList.add(\"active\"),i.parents(s,\".nav, .list-group\").forEach(t=>{i.prev(t,\".nav-link, .list-group-item\").forEach(t=>t.classList.add(\"active\")),i.prev(t,\".nav-item\").forEach(t=>{i.children(t,\".nav-link\").forEach(t=>t.classList.add(\"active\"))})})),B.trigger(this._scrollElement,\"activate.bs.scrollspy\",{relatedTarget:t})}_clear(){i.find(this._selector).filter(t=>t.classList.contains(\"active\")).forEach(t=>t.classList.remove(\"active\"))}static jQueryInterface(t){return this.each((function(){const e=Ft.getOrCreateInstance(this,t);if(\"string\"==typeof t){if(void 0===e[t])throw new TypeError(`No method named \"${t}\"`);e[t]()}}))}}B.on(window,\"load.bs.scrollspy.data-api\",()=>{i.find('[data-bs-spy=\"scroll\"]').forEach(t=>new Ft(t))}),y(Ft);class Ut extends q{static get NAME(){return\"tab\"}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains(\"active\"))return;let t;const e=a(this._element),s=this._element.closest(\".nav, .list-group\");if(s){const e=\"UL\"===s.nodeName||\"OL\"===s.nodeName?\":scope > li > .active\":\".active\";t=i.find(e,s),t=t[t.length-1]}const n=t?B.trigger(t,\"hide.bs.tab\",{relatedTarget:this._element}):null;if(B.trigger(this._element,\"show.bs.tab\",{relatedTarget:t}).defaultPrevented||null!==n&&n.defaultPrevented)return;this._activate(this._element,s);const o=()=>{B.trigger(t,\"hidden.bs.tab\",{relatedTarget:this._element}),B.trigger(this._element,\"shown.bs.tab\",{relatedTarget:t})};e?this._activate(e,e.parentNode,o):o()}_activate(t,e,s){const n=(!e||\"UL\"!==e.nodeName&&\"OL\"!==e.nodeName?i.children(e,\".active\"):i.find(\":scope > li > .active\",e))[0],o=s&&n&&n.classList.contains(\"fade\"),r=()=>this._transitionComplete(t,n,s);n&&o?(n.classList.remove(\"show\"),this._queueCallback(r,t,!0)):r()}_transitionComplete(t,e,s){if(e){e.classList.remove(\"active\");const t=i.findOne(\":scope > .dropdown-menu .active\",e.parentNode);t&&t.classList.remove(\"active\"),\"tab\"===e.getAttribute(\"role\")&&e.setAttribute(\"aria-selected\",!1)}t.classList.add(\"active\"),\"tab\"===t.getAttribute(\"role\")&&t.setAttribute(\"aria-selected\",!0),m(t),t.classList.contains(\"fade\")&&t.classList.add(\"show\");let n=t.parentNode;if(n&&\"LI\"===n.nodeName&&(n=n.parentNode),n&&n.classList.contains(\"dropdown-menu\")){const e=t.closest(\".dropdown\");e&&i.find(\".dropdown-toggle\",e).forEach(t=>t.classList.add(\"active\")),t.setAttribute(\"aria-expanded\",!0)}s&&s()}static jQueryInterface(t){return this.each((function(){const e=Ut.getOrCreateInstance(this);if(\"string\"==typeof t){if(void 0===e[t])throw new TypeError(`No method named \"${t}\"`);e[t]()}}))}}B.on(document,\"click.bs.tab.data-api\",'[data-bs-toggle=\"tab\"], [data-bs-toggle=\"pill\"], [data-bs-toggle=\"list\"]',(function(t){[\"A\",\"AREA\"].includes(this.tagName)&&t.preventDefault(),g(this)||Ut.getOrCreateInstance(this).show()})),y(Ut);const Kt={animation:\"boolean\",autohide:\"boolean\",delay:\"number\"},Vt={animation:!0,autohide:!0,delay:5e3};class Qt extends q{constructor(t,e){super(t),this._config=this._getConfig(e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get DefaultType(){return Kt}static get Default(){return Vt}static get NAME(){return\"toast\"}show(){B.trigger(this._element,\"show.bs.toast\").defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add(\"fade\"),this._element.classList.remove(\"hide\"),m(this._element),this._element.classList.add(\"showing\"),this._queueCallback(()=>{this._element.classList.remove(\"showing\"),this._element.classList.add(\"show\"),B.trigger(this._element,\"shown.bs.toast\"),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this._element.classList.contains(\"show\")&&(B.trigger(this._element,\"hide.bs.toast\").defaultPrevented||(this._element.classList.remove(\"show\"),this._queueCallback(()=>{this._element.classList.add(\"hide\"),B.trigger(this._element,\"hidden.bs.toast\")},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this._element.classList.contains(\"show\")&&this._element.classList.remove(\"show\"),super.dispose()}_getConfig(t){return t={...Vt,...V.getDataAttributes(this._element),...\"object\"==typeof t&&t?t:{}},d(\"toast\",t,this.constructor.DefaultType),t}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,e){switch(t.type){case\"mouseover\":case\"mouseout\":this._hasMouseInteraction=e;break;case\"focusin\":case\"focusout\":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const s=t.relatedTarget;this._element===s||this._element.contains(s)||this._maybeScheduleHide()}_setListeners(){B.on(this._element,\"click.dismiss.bs.toast\",'[data-bs-dismiss=\"toast\"]',()=>this.hide()),B.on(this._element,\"mouseover.bs.toast\",t=>this._onInteraction(t,!0)),B.on(this._element,\"mouseout.bs.toast\",t=>this._onInteraction(t,!1)),B.on(this._element,\"focusin.bs.toast\",t=>this._onInteraction(t,!0)),B.on(this._element,\"focusout.bs.toast\",t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each((function(){const e=Qt.getOrCreateInstance(this,t);if(\"string\"==typeof t){if(void 0===e[t])throw new TypeError(`No method named \"${t}\"`);e[t](this)}}))}}return y(Qt),{Alert:z,Button:F,Carousel:et,Collapse:nt,Dropdown:pt,Modal:wt,Offcanvas:Tt,Popover:Wt,ScrollSpy:Ft,Tab:Ut,Toast:Qt,Tooltip:jt}}));\n//# sourceMappingURL=bootstrap.min.js.map\n","Mageplaza_Core/js/jquery.magnific-popup.min.js":"// Magnific Popup v1.1.0 by Dmitry Semenov\r\n// http://bit.ly/magnific-popup#build=inline+image+ajax+iframe+gallery+retina+imagezoom\r\n(function(a){typeof define==\"function\"&&define.amd?define([\"jquery\"],a):typeof exports==\"object\"?a(require(\"jquery\")):a(window.jQuery||window.Zepto)})(function(a){var b=\"Close\",c=\"BeforeClose\",d=\"AfterClose\",e=\"BeforeAppend\",f=\"MarkupParse\",g=\"Open\",h=\"Change\",i=\"mfp\",j=\".\"+i,k=\"mfp-ready\",l=\"mfp-removing\",m=\"mfp-prevent-close\",n,o=function(){},p=!!window.jQuery,q,r=a(window),s,t,u,v,w=function(a,b){n.ev.on(i+a+j,b)},x=function(b,c,d,e){var f=document.createElement(\"div\");return f.className=\"mfp-\"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},y=function(b,c){n.ev.triggerHandler(i+b,c),n.st.callbacks&&(b=b.charAt(0).toLowerCase()+b.slice(1),n.st.callbacks[b]&&n.st.callbacks[b].apply(n,a.isArray(c)?c:[c]))},z=function(b){if(b!==v||!n.currTemplate.closeBtn)n.currTemplate.closeBtn=a(n.st.closeMarkup.replace(\"%title%\",n.st.tClose)),v=b;return n.currTemplate.closeBtn},A=function(){a.magnificPopup.instance||(n=new o,n.init(),a.magnificPopup.instance=n)},B=function(){var a=document.createElement(\"p\").style,b=[\"ms\",\"O\",\"Moz\",\"Webkit\"];if(a.transition!==undefined)return!0;while(b.length)if(b.pop()+\"Transition\"in a)return!0;return!1};o.prototype={constructor:o,init:function(){var b=navigator.appVersion;n.isLowIE=n.isIE8=document.all&&!document.addEventListener,n.isAndroid=/android/gi.test(b),n.isIOS=/iphone|ipad|ipod/gi.test(b),n.supportsTransition=B(),n.probablyMobile=n.isAndroid||n.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),s=a(document),n.popupsCache={}},open:function(b){var c;if(b.isObj===!1){n.items=b.items.toArray(),n.index=0;var d=b.items,e;for(c=0;c<d.length;c++){e=d[c],e.parsed&&(e=e.el[0]);if(e===b.el[0]){n.index=c;break}}}else n.items=a.isArray(b.items)?b.items:[b.items],n.index=b.index||0;if(n.isOpen){n.updateItemHTML();return}n.types=[],u=\"\",b.mainEl&&b.mainEl.length?n.ev=b.mainEl.eq(0):n.ev=s,b.key?(n.popupsCache[b.key]||(n.popupsCache[b.key]={}),n.currTemplate=n.popupsCache[b.key]):n.currTemplate={},n.st=a.extend(!0,{},a.magnificPopup.defaults,b),n.fixedContentPos=n.st.fixedContentPos===\"auto\"?!n.probablyMobile:n.st.fixedContentPos,n.st.modal&&(n.st.closeOnContentClick=!1,n.st.closeOnBgClick=!1,n.st.showCloseBtn=!1,n.st.enableEscapeKey=!1),n.bgOverlay||(n.bgOverlay=x(\"bg\").on(\"click\"+j,function(){n.close()}),n.wrap=x(\"wrap\").attr(\"tabindex\",-1).on(\"click\"+j,function(a){n._checkIfClose(a.target)&&n.close()}),n.container=x(\"container\",n.wrap)),n.contentContainer=x(\"content\"),n.st.preloader&&(n.preloader=x(\"preloader\",n.container,n.st.tLoading));var h=a.magnificPopup.modules;for(c=0;c<h.length;c++){var i=h[c];i=i.charAt(0).toUpperCase()+i.slice(1),n[\"init\"+i].call(n)}y(\"BeforeOpen\"),n.st.showCloseBtn&&(n.st.closeBtnInside?(w(f,function(a,b,c,d){c.close_replaceWith=z(d.type)}),u+=\" mfp-close-btn-in\"):n.wrap.append(z())),n.st.alignTop&&(u+=\" mfp-align-top\"),n.fixedContentPos?n.wrap.css({overflow:n.st.overflowY,overflowX:\"hidden\",overflowY:n.st.overflowY}):n.wrap.css({top:r.scrollTop(),position:\"absolute\"}),(n.st.fixedBgPos===!1||n.st.fixedBgPos===\"auto\"&&!n.fixedContentPos)&&n.bgOverlay.css({height:s.height(),position:\"absolute\"}),n.st.enableEscapeKey&&s.on(\"keyup\"+j,function(a){a.keyCode===27&&n.close()}),r.on(\"resize\"+j,function(){n.updateSize()}),n.st.closeOnContentClick||(u+=\" mfp-auto-cursor\"),u&&n.wrap.addClass(u);var l=n.wH=r.height(),m={};if(n.fixedContentPos&&n._hasScrollBar(l)){var o=n._getScrollbarSize();o&&(m.marginRight=o)}n.fixedContentPos&&(n.isIE7?a(\"body, html\").css(\"overflow\",\"hidden\"):m.overflow=\"hidden\");var p=n.st.mainClass;return n.isIE7&&(p+=\" mfp-ie7\"),p&&n._addClassToMFP(p),n.updateItemHTML(),y(\"BuildControls\"),a(\"html\").css(m),n.bgOverlay.add(n.wrap).prependTo(n.st.prependTo||a(document.body)),n._lastFocusedEl=document.activeElement,setTimeout(function(){n.content?(n._addClassToMFP(k),n._setFocus()):n.bgOverlay.addClass(k),s.on(\"focusin\"+j,n._onFocusIn)},16),n.isOpen=!0,n.updateSize(l),y(g),b},close:function(){if(!n.isOpen)return;y(c),n.isOpen=!1,n.st.removalDelay&&!n.isLowIE&&n.supportsTransition?(n._addClassToMFP(l),setTimeout(function(){n._close()},n.st.removalDelay)):n._close()},_close:function(){y(b);var c=l+\" \"+k+\" \";n.bgOverlay.detach(),n.wrap.detach(),n.container.empty(),n.st.mainClass&&(c+=n.st.mainClass+\" \"),n._removeClassFromMFP(c);if(n.fixedContentPos){var e={marginRight:\"\"};n.isIE7?a(\"body, html\").css(\"overflow\",\"\"):e.overflow=\"\",a(\"html\").css(e)}s.off(\"keyup\"+j+\" focusin\"+j),n.ev.off(j),n.wrap.attr(\"class\",\"mfp-wrap\").removeAttr(\"style\"),n.bgOverlay.attr(\"class\",\"mfp-bg\"),n.container.attr(\"class\",\"mfp-container\"),n.st.showCloseBtn&&(!n.st.closeBtnInside||n.currTemplate[n.currItem.type]===!0)&&n.currTemplate.closeBtn&&n.currTemplate.closeBtn.detach(),n.st.autoFocusLast&&n._lastFocusedEl&&a(n._lastFocusedEl).focus(),n.currItem=null,n.content=null,n.currTemplate=null,n.prevHeight=0,y(d)},updateSize:function(a){if(n.isIOS){var b=document.documentElement.clientWidth/window.innerWidth,c=window.innerHeight*b;n.wrap.css(\"height\",c),n.wH=c}else n.wH=a||r.height();n.fixedContentPos||n.wrap.css(\"height\",n.wH),y(\"Resize\")},updateItemHTML:function(){var b=n.items[n.index];n.contentContainer.detach(),n.content&&n.content.detach(),b.parsed||(b=n.parseEl(n.index));var c=b.type;y(\"BeforeChange\",[n.currItem?n.currItem.type:\"\",c]),n.currItem=b;if(!n.currTemplate[c]){var d=n.st[c]?n.st[c].markup:!1;y(\"FirstMarkupParse\",d),d?n.currTemplate[c]=a(d):n.currTemplate[c]=!0}t&&t!==b.type&&n.container.removeClass(\"mfp-\"+t+\"-holder\");var e=n[\"get\"+c.charAt(0).toUpperCase()+c.slice(1)](b,n.currTemplate[c]);n.appendContent(e,c),b.preloaded=!0,y(h,b),t=b.type,n.container.prepend(n.contentContainer),y(\"AfterChange\")},appendContent:function(a,b){n.content=a,a?n.st.showCloseBtn&&n.st.closeBtnInside&&n.currTemplate[b]===!0?n.content.find(\".mfp-close\").length||n.content.append(z()):n.content=a:n.content=\"\",y(e),n.container.addClass(\"mfp-\"+b+\"-holder\"),n.contentContainer.append(n.content)},parseEl:function(b){var c=n.items[b],d;c.tagName?c={el:a(c)}:(d=c.type,c={data:c,src:c.src});if(c.el){var e=n.types;for(var f=0;f<e.length;f++)if(c.el.hasClass(\"mfp-\"+e[f])){d=e[f];break}c.src=c.el.attr(\"data-mfp-src\"),c.src||(c.src=c.el.attr(\"href\"))}return c.type=d||n.st.type||\"inline\",c.index=b,c.parsed=!0,n.items[b]=c,y(\"ElementParse\",c),n.items[b]},addGroup:function(a,b){var c=function(c){c.mfpEl=this,n._openClick(c,a,b)};b||(b={});var d=\"click.magnificPopup\";b.mainEl=a,b.items?(b.isObj=!0,a.off(d).on(d,c)):(b.isObj=!1,b.delegate?a.off(d).on(d,b.delegate,c):(b.items=a,a.off(d).on(d,c)))},_openClick:function(b,c,d){var e=d.midClick!==undefined?d.midClick:a.magnificPopup.defaults.midClick;if(!e&&(b.which===2||b.ctrlKey||b.metaKey||b.altKey||b.shiftKey))return;var f=d.disableOn!==undefined?d.disableOn:a.magnificPopup.defaults.disableOn;if(f)if(a.isFunction(f)){if(!f.call(n))return!0}else if(r.width()<f)return!0;b.type&&(b.preventDefault(),n.isOpen&&b.stopPropagation()),d.el=a(b.mfpEl),d.delegate&&(d.items=c.find(d.delegate)),n.open(d)},updateStatus:function(a,b){if(n.preloader){q!==a&&n.container.removeClass(\"mfp-s-\"+q),!b&&a===\"loading\"&&(b=n.st.tLoading);var c={status:a,text:b};y(\"UpdateStatus\",c),a=c.status,b=c.text,n.preloader.html(b),n.preloader.find(\"a\").on(\"click\",function(a){a.stopImmediatePropagation()}),n.container.addClass(\"mfp-s-\"+a),q=a}},_checkIfClose:function(b){if(a(b).hasClass(m))return;var c=n.st.closeOnContentClick,d=n.st.closeOnBgClick;if(c&&d)return!0;if(!n.content||a(b).hasClass(\"mfp-close\")||n.preloader&&b===n.preloader[0])return!0;if(b!==n.content[0]&&!a.contains(n.content[0],b)){if(d&&a.contains(document,b))return!0}else if(c)return!0;return!1},_addClassToMFP:function(a){n.bgOverlay.addClass(a),n.wrap.addClass(a)},_removeClassFromMFP:function(a){this.bgOverlay.removeClass(a),n.wrap.removeClass(a)},_hasScrollBar:function(a){return(n.isIE7?s.height():document.body.scrollHeight)>(a||r.height())},_setFocus:function(){(n.st.focus?n.content.find(n.st.focus).eq(0):n.wrap).focus()},_onFocusIn:function(b){if(b.target!==n.wrap[0]&&!a.contains(n.wrap[0],b.target))return n._setFocus(),!1},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),y(f,[b,c,d]),a.each(c,function(c,d){if(d===undefined||d===!1)return!0;e=c.split(\"_\");if(e.length>1){var f=b.find(j+\"-\"+e[0]);if(f.length>0){var g=e[1];g===\"replaceWith\"?f[0]!==d[0]&&f.replaceWith(d):g===\"img\"?f.is(\"img\")?f.attr(\"src\",d):f.replaceWith(a(\"<img>\").attr(\"src\",d).attr(\"class\",f.attr(\"class\"))):f.attr(e[1],d)}}else b.find(j+\"-\"+c).html(d)})},_getScrollbarSize:function(){if(n.scrollbarSize===undefined){var a=document.createElement(\"div\");a.style.cssText=\"width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;\",document.body.appendChild(a),n.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return n.scrollbarSize}},a.magnificPopup={instance:null,proto:o.prototype,modules:[],open:function(b,c){return A(),b?b=a.extend(!0,{},b):b={},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:\"\",preloader:!0,focus:\"\",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:\"auto\",fixedBgPos:\"auto\",overflowY:\"auto\",closeMarkup:'<button title=\"%title%\" type=\"button\" class=\"mfp-close\">&#215;</button>',tClose:\"Close (Esc)\",tLoading:\"Loading...\",autoFocusLast:!0}},a.fn.magnificPopup=function(b){A();var c=a(this);if(typeof b==\"string\")if(b===\"open\"){var d,e=p?c.data(\"magnificPopup\"):c[0].magnificPopup,f=parseInt(arguments[1],10)||0;e.items?d=e.items[f]:(d=c,e.delegate&&(d=d.find(e.delegate)),d=d.eq(f)),n._openClick({mfpEl:d},c,e)}else n.isOpen&&n[b].apply(n,Array.prototype.slice.call(arguments,1));else b=a.extend(!0,{},b),p?c.data(\"magnificPopup\",b):c[0].magnificPopup=b,n.addGroup(c,b);return c};var C=\"inline\",D,E,F,G=function(){F&&(E.after(F.addClass(D)).detach(),F=null)};a.magnificPopup.registerModule(C,{options:{hiddenClass:\"hide\",markup:\"\",tNotFound:\"Content not found\"},proto:{initInline:function(){n.types.push(C),w(b+\".\"+C,function(){G()})},getInline:function(b,c){G();if(b.src){var d=n.st.inline,e=a(b.src);if(e.length){var f=e[0].parentNode;f&&f.tagName&&(E||(D=d.hiddenClass,E=x(D),D=\"mfp-\"+D),F=e.after(E).detach().removeClass(D)),n.updateStatus(\"ready\")}else n.updateStatus(\"error\",d.tNotFound),e=a(\"<div>\");return b.inlineElement=e,e}return n.updateStatus(\"ready\"),n._parseMarkup(c,{},b),c}}});var H=\"ajax\",I,J=function(){I&&a(document.body).removeClass(I)},K=function(){J(),n.req&&n.req.abort()};a.magnificPopup.registerModule(H,{options:{settings:null,cursor:\"mfp-ajax-cur\",tError:'<a href=\"%url%\">The content</a> could not be loaded.'},proto:{initAjax:function(){n.types.push(H),I=n.st.ajax.cursor,w(b+\".\"+H,K),w(\"BeforeChange.\"+H,K)},getAjax:function(b){I&&a(document.body).addClass(I),n.updateStatus(\"loading\");var c=a.extend({url:b.src,success:function(c,d,e){var f={data:c,xhr:e};y(\"ParseAjax\",f),n.appendContent(a(f.data),H),b.finished=!0,J(),n._setFocus(),setTimeout(function(){n.wrap.addClass(k)},16),n.updateStatus(\"ready\"),y(\"AjaxContentAdded\")},error:function(){J(),b.finished=b.loadError=!0,n.updateStatus(\"error\",n.st.ajax.tError.replace(\"%url%\",b.src))}},n.st.ajax.settings);return n.req=a.ajax(c),\"\"}}});var L,M=function(b){if(b.data&&b.data.title!==undefined)return b.data.title;var c=n.st.image.titleSrc;if(c){if(a.isFunction(c))return c.call(n,b);if(b.el)return b.el.attr(c)||\"\"}return\"\"};a.magnificPopup.registerModule(\"image\",{options:{markup:'<div class=\"mfp-figure\"><div class=\"mfp-close\"></div><figure><div class=\"mfp-img\"></div><figcaption><div class=\"mfp-bottom-bar\"><div class=\"mfp-title\"></div><div class=\"mfp-counter\"></div></div></figcaption></figure></div>',cursor:\"mfp-zoom-out-cur\",titleSrc:\"title\",verticalFit:!0,tError:'<a href=\"%url%\">The image</a> could not be loaded.'},proto:{initImage:function(){var c=n.st.image,d=\".image\";n.types.push(\"image\"),w(g+d,function(){n.currItem.type===\"image\"&&c.cursor&&a(document.body).addClass(c.cursor)}),w(b+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),r.off(\"resize\"+j)}),w(\"Resize\"+d,n.resizeImage),n.isLowIE&&w(\"AfterChange\",n.resizeImage)},resizeImage:function(){var a=n.currItem;if(!a||!a.img)return;if(n.st.image.verticalFit){var b=0;n.isLowIE&&(b=parseInt(a.img.css(\"padding-top\"),10)+parseInt(a.img.css(\"padding-bottom\"),10)),a.img.css(\"max-height\",n.wH-b)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,L&&clearInterval(L),a.isCheckingImgSize=!1,y(\"ImageHasSize\",a),a.imgHidden&&(n.content&&n.content.removeClass(\"mfp-loading\"),a.imgHidden=!1))},findImageSize:function(a){var b=0,c=a.img[0],d=function(e){L&&clearInterval(L),L=setInterval(function(){if(c.naturalWidth>0){n._onImageHasSize(a);return}b>200&&clearInterval(L),b++,b===3?d(10):b===40?d(50):b===100&&d(500)},e)};d(1)},getImage:function(b,c){var d=0,e=function(){b&&(b.img[0].complete?(b.img.off(\".mfploader\"),b===n.currItem&&(n._onImageHasSize(b),n.updateStatus(\"ready\")),b.hasSize=!0,b.loaded=!0,y(\"ImageLoadComplete\")):(d++,d<200?setTimeout(e,100):f()))},f=function(){b&&(b.img.off(\".mfploader\"),b===n.currItem&&(n._onImageHasSize(b),n.updateStatus(\"error\",g.tError.replace(\"%url%\",b.src))),b.hasSize=!0,b.loaded=!0,b.loadError=!0)},g=n.st.image,h=c.find(\".mfp-img\");if(h.length){var i=document.createElement(\"img\");i.className=\"mfp-img\",b.el&&b.el.find(\"img\").length&&(i.alt=b.el.find(\"img\").attr(\"alt\")),b.img=a(i).on(\"load.mfploader\",e).on(\"error.mfploader\",f),i.src=b.src,h.is(\"img\")&&(b.img=b.img.clone()),i=b.img[0],i.naturalWidth>0?b.hasSize=!0:i.width||(b.hasSize=!1)}return n._parseMarkup(c,{title:M(b),img_replaceWith:b.img},b),n.resizeImage(),b.hasSize?(L&&clearInterval(L),b.loadError?(c.addClass(\"mfp-loading\"),n.updateStatus(\"error\",g.tError.replace(\"%url%\",b.src))):(c.removeClass(\"mfp-loading\"),n.updateStatus(\"ready\")),c):(n.updateStatus(\"loading\"),b.loading=!0,b.hasSize||(b.imgHidden=!0,c.addClass(\"mfp-loading\"),n.findImageSize(b)),c)}}});var N,O=function(){return N===undefined&&(N=document.createElement(\"p\").style.MozTransform!==undefined),N};a.magnificPopup.registerModule(\"zoom\",{options:{enabled:!1,easing:\"ease-in-out\",duration:300,opener:function(a){return a.is(\"img\")?a:a.find(\"img\")}},proto:{initZoom:function(){var a=n.st.zoom,d=\".zoom\",e;if(!a.enabled||!n.supportsTransition)return;var f=a.duration,g=function(b){var c=b.clone().removeAttr(\"style\").removeAttr(\"class\").addClass(\"mfp-animated-image\"),d=\"all \"+a.duration/1e3+\"s \"+a.easing,e={position:\"fixed\",zIndex:9999,left:0,top:0,\"-webkit-backface-visibility\":\"hidden\"},f=\"transition\";return e[\"-webkit-\"+f]=e[\"-moz-\"+f]=e[\"-o-\"+f]=e[f]=d,c.css(e),c},h=function(){n.content.css(\"visibility\",\"visible\")},i,j;w(\"BuildControls\"+d,function(){if(n._allowZoom()){clearTimeout(i),n.content.css(\"visibility\",\"hidden\"),e=n._getItemToZoom();if(!e){h();return}j=g(e),j.css(n._getOffset()),n.wrap.append(j),i=setTimeout(function(){j.css(n._getOffset(!0)),i=setTimeout(function(){h(),setTimeout(function(){j.remove(),e=j=null,y(\"ZoomAnimationEnded\")},16)},f)},16)}}),w(c+d,function(){if(n._allowZoom()){clearTimeout(i),n.st.removalDelay=f;if(!e){e=n._getItemToZoom();if(!e)return;j=g(e)}j.css(n._getOffset(!0)),n.wrap.append(j),n.content.css(\"visibility\",\"hidden\"),setTimeout(function(){j.css(n._getOffset())},16)}}),w(b+d,function(){n._allowZoom()&&(h(),j&&j.remove(),e=null)})},_allowZoom:function(){return n.currItem.type===\"image\"},_getItemToZoom:function(){return n.currItem.hasSize?n.currItem.img:!1},_getOffset:function(b){var c;b?c=n.currItem.img:c=n.st.zoom.opener(n.currItem.el||n.currItem);var d=c.offset(),e=parseInt(c.css(\"padding-top\"),10),f=parseInt(c.css(\"padding-bottom\"),10);d.top-=a(window).scrollTop()-e;var g={width:c.width(),height:(p?c.innerHeight():c[0].offsetHeight)-f-e};return O()?g[\"-moz-transform\"]=g.transform=\"translate(\"+d.left+\"px,\"+d.top+\"px)\":(g.left=d.left,g.top=d.top),g}}});var P=\"iframe\",Q=\"//about:blank\",R=function(a){if(n.currTemplate[P]){var b=n.currTemplate[P].find(\"iframe\");b.length&&(a||(b[0].src=Q),n.isIE8&&b.css(\"display\",a?\"block\":\"none\"))}};a.magnificPopup.registerModule(P,{options:{markup:'<div class=\"mfp-iframe-scaler\"><div class=\"mfp-close\"></div><iframe class=\"mfp-iframe\" src=\"//about:blank\" frameborder=\"0\" allowfullscreen></iframe></div>',srcAction:\"iframe_src\",patterns:{youtube:{index:\"youtube.com\",id:\"v=\",src:\"//www.youtube.com/embed/%id%?autoplay=1\"},vimeo:{index:\"vimeo.com/\",id:\"/\",src:\"//player.vimeo.com/video/%id%?autoplay=1\"},gmaps:{index:\"//maps.google.\",src:\"%id%&output=embed\"}}},proto:{initIframe:function(){n.types.push(P),w(\"BeforeChange\",function(a,b,c){b!==c&&(b===P?R():c===P&&R(!0))}),w(b+\".\"+P,function(){R()})},getIframe:function(b,c){var d=b.src,e=n.st.iframe;a.each(e.patterns,function(){if(d.indexOf(this.index)>-1)return this.id&&(typeof this.id==\"string\"?d=d.substr(d.lastIndexOf(this.id)+this.id.length,d.length):d=this.id.call(this,d)),d=this.src.replace(\"%id%\",d),!1});var f={};return e.srcAction&&(f[e.srcAction]=d),n._parseMarkup(c,f,b),n.updateStatus(\"ready\"),c}}});var S=function(a){var b=n.items.length;return a>b-1?a-b:a<0?b+a:a},T=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule(\"gallery\",{options:{enabled:!1,arrowMarkup:'<button title=\"%title%\" type=\"button\" class=\"mfp-arrow mfp-arrow-%dir%\"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:\"Previous (Left arrow key)\",tNext:\"Next (Right arrow key)\",tCounter:\"%curr% of %total%\"},proto:{initGallery:function(){var c=n.st.gallery,d=\".mfp-gallery\";n.direction=!0;if(!c||!c.enabled)return!1;u+=\" mfp-gallery\",w(g+d,function(){c.navigateByImgClick&&n.wrap.on(\"click\"+d,\".mfp-img\",function(){if(n.items.length>1)return n.next(),!1}),s.on(\"keydown\"+d,function(a){a.keyCode===37?n.prev():a.keyCode===39&&n.next()})}),w(\"UpdateStatus\"+d,function(a,b){b.text&&(b.text=T(b.text,n.currItem.index,n.items.length))}),w(f+d,function(a,b,d,e){var f=n.items.length;d.counter=f>1?T(c.tCounter,e.index,f):\"\"}),w(\"BuildControls\"+d,function(){if(n.items.length>1&&c.arrows&&!n.arrowLeft){var b=c.arrowMarkup,d=n.arrowLeft=a(b.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,\"left\")).addClass(m),e=n.arrowRight=a(b.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,\"right\")).addClass(m);d.click(function(){n.prev()}),e.click(function(){n.next()}),n.container.append(d.add(e))}}),w(h+d,function(){n._preloadTimeout&&clearTimeout(n._preloadTimeout),n._preloadTimeout=setTimeout(function(){n.preloadNearbyImages(),n._preloadTimeout=null},16)}),w(b+d,function(){s.off(d),n.wrap.off(\"click\"+d),n.arrowRight=n.arrowLeft=null})},next:function(){n.direction=!0,n.index=S(n.index+1),n.updateItemHTML()},prev:function(){n.direction=!1,n.index=S(n.index-1),n.updateItemHTML()},goTo:function(a){n.direction=a>=n.index,n.index=a,n.updateItemHTML()},preloadNearbyImages:function(){var a=n.st.gallery.preload,b=Math.min(a[0],n.items.length),c=Math.min(a[1],n.items.length),d;for(d=1;d<=(n.direction?c:b);d++)n._preloadItem(n.index+d);for(d=1;d<=(n.direction?b:c);d++)n._preloadItem(n.index-d)},_preloadItem:function(b){b=S(b);if(n.items[b].preloaded)return;var c=n.items[b];c.parsed||(c=n.parseEl(b)),y(\"LazyLoad\",c),c.type===\"image\"&&(c.img=a('<img class=\"mfp-img\" />').on(\"load.mfploader\",function(){c.hasSize=!0}).on(\"error.mfploader\",function(){c.hasSize=!0,c.loadError=!0,y(\"LazyLoadError\",c)}).attr(\"src\",c.src)),c.preloaded=!0}}});var U=\"retina\";a.magnificPopup.registerModule(U,{options:{replaceSrc:function(a){return a.src.replace(/\\.\\w+$/,function(a){return\"@2x\"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=n.st.retina,b=a.ratio;b=isNaN(b)?b():b,b>1&&(w(\"ImageHasSize.\"+U,function(a,c){c.img.css({\"max-width\":c.img[0].naturalWidth/b,width:\"100%\"})}),w(\"ElementParse.\"+U,function(c,d){d.src=a.replaceSrc(d,b)}))}}}}),A()})","Mageplaza_Core/js/jquery.ui.touch-punch.min.js":"/*!\r\n * jQuery UI Touch Punch 0.2.3\r\n *\r\n * Copyright 2011\u20132014, Dave Furfero\r\n * Dual licensed under the MIT or GPL Version 2 licenses.\r\n *\r\n * Depends:\r\n *  jquery.ui.widget.js\r\n *  jquery.ui.mouse.js\r\n */\r\n!function(a){function f(a,b){if(!(a.originalEvent.touches.length>1)){a.preventDefault();var c=a.originalEvent.changedTouches[0],d=document.createEvent(\"MouseEvents\");d.initMouseEvent(b,!0,!0,window,1,c.screenX,c.screenY,c.clientX,c.clientY,!1,!1,!1,!1,0,null),a.target.dispatchEvent(d)}}if(a.support.touch=\"ontouchend\"in document,a.support.touch){var e,b=a.ui.mouse.prototype,c=b._mouseInit,d=b._mouseDestroy;b._touchStart=function(a){var b=this;!e&&b._mouseCapture(a.originalEvent.changedTouches[0])&&(e=!0,b._touchMoved=!1,f(a,\"mouseover\"),f(a,\"mousemove\"),f(a,\"mousedown\"))},b._touchMove=function(a){e&&(this._touchMoved=!0,f(a,\"mousemove\"))},b._touchEnd=function(a){e&&(f(a,\"mouseup\"),f(a,\"mouseout\"),this._touchMoved||f(a,\"click\"),e=!1)},b._mouseInit=function(){var b=this;b.element.bind({touchstart:a.proxy(b,\"_touchStart\"),touchmove:a.proxy(b,\"_touchMove\"),touchend:a.proxy(b,\"_touchEnd\")}),c.call(b)},b._mouseDestroy=function(){var b=this;b.element.unbind({touchstart:a.proxy(b,\"_touchStart\"),touchmove:a.proxy(b,\"_touchMove\"),touchend:a.proxy(b,\"_touchEnd\")}),d.call(b)}}}(jQuery);\r\n","Mageplaza_Core/lib/fileUploader/jquery.fileupload-validate.min.js":"(function(factory){'use strict';if(typeof define==='function'&&define.amd){define(['jquery','Mageplaza_Core/lib/fileUploader/jquery.fileupload-process'],factory);}else if(typeof exports==='object'){factory(require('jquery'),require('Mageplaza_Core/lib/fileUploader/jquery.fileupload-process'));}else{factory(window.jQuery);}})(function($){'use strict';$.blueimp.fileupload.prototype.options.processQueue.push({action:'validate',always:true,acceptFileTypes:'@',maxFileSize:'@',minFileSize:'@',maxNumberOfFiles:'@',disabled:'@disableValidation'});$.widget('blueimp.fileupload',$.blueimp.fileupload,{options:{getNumberOfFiles:$.noop,messages:{maxNumberOfFiles:'Maximum number of files exceeded',acceptFileTypes:'File type not allowed',maxFileSize:'File is too large',minFileSize:'File is too small'}},processActions:{validate:function(data,options){if(options.disabled){return data;}\nvar dfd=$.Deferred(),settings=this.options,file=data.files[data.index],fileSize;if(options.minFileSize||options.maxFileSize){fileSize=file.size;}\nif($.type(options.maxNumberOfFiles)==='number'&&(settings.getNumberOfFiles()||0)+data.files.length>options.maxNumberOfFiles){file.error=settings.i18n('maxNumberOfFiles');}else if(options.acceptFileTypes&&!(options.acceptFileTypes.test(file.type)||options.acceptFileTypes.test(file.name))){file.error=settings.i18n('acceptFileTypes');}else if(fileSize>options.maxFileSize){file.error=settings.i18n('maxFileSize');}else if($.type(fileSize)==='number'&&fileSize<options.minFileSize){file.error=settings.i18n('minFileSize');}else{delete file.error;}\nif(file.error||data.files.error){data.files.error=true;dfd.rejectWith(this,[data]);}else{dfd.resolveWith(this,[data]);}\nreturn dfd.promise();}}});});","Mageplaza_Core/lib/fileUploader/jquery.fileuploader.min.js":"(function(factory){'use strict';if(typeof define==='function'&&define.amd){define(['jquery','Mageplaza_Core/lib/fileUploader/jquery.fileupload-image','Mageplaza_Core/lib/fileUploader/jquery.fileupload-audio','Mageplaza_Core/lib/fileUploader/jquery.fileupload-video','Mageplaza_Core/lib/fileUploader/jquery.iframe-transport',],factory);}else if(typeof exports==='object'){factory(require('jquery'),require('Mageplaza_Core/lib/fileUploader/jquery.fileupload-image'),require('Mageplaza_Core/lib/fileUploader/jquery.fileupload-audio'),require('Mageplaza_Core/lib/fileUploader/jquery.fileupload-video'),require('Mageplaza_Core/lib/fileUploader/jquery.iframe-transport'));}else{factory(window.jQuery);}})();","Mageplaza_Core/lib/fileUploader/jquery.fileupload-audio.min.js":"(function(factory){'use strict';if(typeof define==='function'&&define.amd){define(['jquery','Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image','Mageplaza_Core/lib/fileUploader/jquery.fileupload-process'],factory);}else if(typeof exports==='object'){factory(require('jquery'),require('Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image'),require('Mageplaza_Core/lib/fileUploader/jquery.fileupload-process'));}else{factory(window.jQuery,window.loadImage);}})(function($,loadImage){'use strict';$.blueimp.fileupload.prototype.options.processQueue.unshift({action:'loadAudio',prefix:true,fileTypes:'@',maxFileSize:'@',disabled:'@disableAudioPreview'},{action:'setAudio',name:'@audioPreviewName',disabled:'@disableAudioPreview'});$.widget('blueimp.fileupload',$.blueimp.fileupload,{options:{loadAudioFileTypes:/^audio\\/.*$/},_audioElement:document.createElement('audio'),processActions:{loadAudio:function(data,options){if(options.disabled){return data;}\nvar file=data.files[data.index],url,audio;if(this._audioElement.canPlayType&&this._audioElement.canPlayType(file.type)&&($.type(options.maxFileSize)!=='number'||file.size<=options.maxFileSize)&&(!options.fileTypes||options.fileTypes.test(file.type))){url=loadImage.createObjectURL(file);if(url){audio=this._audioElement.cloneNode(false);audio.src=url;audio.controls=true;data.audio=audio;return data;}}\nreturn data;},setAudio:function(data,options){if(data.audio&&!options.disabled){data.files[data.index][options.name||'preview']=data.audio;}\nreturn data;}}});});","Mageplaza_Core/lib/fileUploader/jquery.fileupload-video.min.js":"(function(factory){'use strict';if(typeof define==='function'&&define.amd){define(['jquery','Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image','Mageplaza_Core/lib/fileUploader/jquery.fileupload-process'],factory);}else if(typeof exports==='object'){factory(require('jquery'),require('Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image'),require('Mageplaza_Core/lib/fileUploader/jquery.fileupload-process'));}else{factory(window.jQuery,window.loadImage);}})(function($,loadImage){'use strict';$.blueimp.fileupload.prototype.options.processQueue.unshift({action:'loadVideo',prefix:true,fileTypes:'@',maxFileSize:'@',disabled:'@disableVideoPreview'},{action:'setVideo',name:'@videoPreviewName',disabled:'@disableVideoPreview'});$.widget('blueimp.fileupload',$.blueimp.fileupload,{options:{loadVideoFileTypes:/^video\\/.*$/},_videoElement:document.createElement('video'),processActions:{loadVideo:function(data,options){if(options.disabled){return data;}\nvar file=data.files[data.index],url,video;if(this._videoElement.canPlayType&&this._videoElement.canPlayType(file.type)&&($.type(options.maxFileSize)!=='number'||file.size<=options.maxFileSize)&&(!options.fileTypes||options.fileTypes.test(file.type))){url=loadImage.createObjectURL(file);if(url){video=this._videoElement.cloneNode(false);video.src=url;video.controls=true;data.video=video;return data;}}\nreturn data;},setVideo:function(data,options){if(data.video&&!options.disabled){data.files[data.index][options.name||'preview']=data.video;}\nreturn data;}}});});"}
}});
;require.config({"config": {
        "jsbuild":{"Mageplaza_Core/lib/fileUploader/jquery.fileupload.min.js":"(function(factory){'use strict';if(typeof define==='function'&&define.amd){define(['jquery','Mageplaza_Core/lib/fileUploader/vendor/jquery.ui.widget'],factory);}else if(typeof exports==='object'){factory(require('jquery'),require('Mageplaza_Core/lib/fileUploader/vendor/jquery.ui.widget'));}else{factory(window.jQuery);}})(function($){'use strict';$.support.fileInput=!(new RegExp('(Android (1\\\\.[0156]|2\\\\.[01]))'+'|(Windows Phone (OS 7|8\\\\.0))|(XBLWP)|(ZuneWP)|(WPDesktop)'+'|(w(eb)?OSBrowser)|(webOS)'+'|(Kindle/(1\\\\.0|2\\\\.[05]|3\\\\.0))').test(window.navigator.userAgent)||$('<input type=\"file\"/>').prop('disabled'));$.support.xhrFileUpload=!!(window.ProgressEvent&&window.FileReader);$.support.xhrFormDataFileUpload=!!window.FormData;$.support.blobSlice=window.Blob&&(Blob.prototype.slice||Blob.prototype.webkitSlice||Blob.prototype.mozSlice);function getDragHandler(type){var isDragOver=type==='dragover';return function(e){e.dataTransfer=e.originalEvent&&e.originalEvent.dataTransfer;var dataTransfer=e.dataTransfer;if(dataTransfer&&$.inArray('Files',dataTransfer.types)!==-1&&this._trigger(type,$.Event(type,{delegatedEvent:e}))!==false){e.preventDefault();if(isDragOver){dataTransfer.dropEffect='copy';}}};}\n$.widget('blueimp.fileupload',{options:{dropZone:$(document),pasteZone:undefined,fileInput:undefined,replaceFileInput:true,paramName:undefined,singleFileUploads:true,limitMultiFileUploads:undefined,limitMultiFileUploadSize:undefined,limitMultiFileUploadSizeOverhead:512,sequentialUploads:false,limitConcurrentUploads:undefined,forceIframeTransport:false,redirect:undefined,redirectParamName:undefined,postMessage:undefined,multipart:true,maxChunkSize:undefined,uploadedBytes:undefined,recalculateProgress:true,progressInterval:100,bitrateInterval:500,autoUpload:true,uniqueFilenames:undefined,messages:{uploadedBytes:'Uploaded bytes exceed file size'},i18n:function(message,context){message=this.messages[message]||message.toString();if(context){$.each(context,function(key,value){message=message.replace('{'+key+'}',value);});}\nreturn message;},formData:function(form){return form.serializeArray();},add:function(e,data){if(e.isDefaultPrevented()){return false;}\nif(data.autoUpload||(data.autoUpload!==false&&$(this).fileupload('option','autoUpload'))){data.process().done(function(){data.submit();});}},processData:false,contentType:false,cache:false,timeout:0},_promisePipe:(function(){var parts=$.fn.jquery.split('.');return Number(parts[0])>1||Number(parts[1])>7?'then':'pipe';})(),_specialOptions:['fileInput','dropZone','pasteZone','multipart','forceIframeTransport'],_blobSlice:$.support.blobSlice&&function(){var slice=this.slice||this.webkitSlice||this.mozSlice;return slice.apply(this,arguments);},_BitrateTimer:function(){this.timestamp=Date.now?Date.now():new Date().getTime();this.loaded=0;this.bitrate=0;this.getBitrate=function(now,loaded,interval){var timeDiff=now-this.timestamp;if(!this.bitrate||!interval||timeDiff>interval){this.bitrate=(loaded-this.loaded)*(1000 / timeDiff)*8;this.loaded=loaded;this.timestamp=now;}\nreturn this.bitrate;};},_isXHRUpload:function(options){return(!options.forceIframeTransport&&((!options.multipart&&$.support.xhrFileUpload)||$.support.xhrFormDataFileUpload));},_getFormData:function(options){var formData;if($.type(options.formData)==='function'){return options.formData(options.form);}\nif($.isArray(options.formData)){return options.formData;}\nif($.type(options.formData)==='object'){formData=[];$.each(options.formData,function(name,value){formData.push({name:name,value:value});});return formData;}\nreturn[];},_getTotal:function(files){var total=0;$.each(files,function(index,file){total+=file.size||1;});return total;},_initProgressObject:function(obj){var progress={loaded:0,total:0,bitrate:0};if(obj._progress){$.extend(obj._progress,progress);}else{obj._progress=progress;}},_initResponseObject:function(obj){var prop;if(obj._response){for(prop in obj._response){if(Object.prototype.hasOwnProperty.call(obj._response,prop)){delete obj._response[prop];}}}else{obj._response={};}},_onProgress:function(e,data){if(e.lengthComputable){var now=Date.now?Date.now():new Date().getTime(),loaded;if(data._time&&data.progressInterval&&now-data._time<data.progressInterval&&e.loaded!==e.total){return;}\ndata._time=now;loaded=Math.floor((e.loaded / e.total)*(data.chunkSize||data._progress.total))+(data.uploadedBytes||0);this._progress.loaded+=loaded-data._progress.loaded;this._progress.bitrate=this._bitrateTimer.getBitrate(now,this._progress.loaded,data.bitrateInterval);data._progress.loaded=data.loaded=loaded;data._progress.bitrate=data.bitrate=data._bitrateTimer.getBitrate(now,loaded,data.bitrateInterval);this._trigger('progress',$.Event('progress',{delegatedEvent:e}),data);this._trigger('progressall',$.Event('progressall',{delegatedEvent:e}),this._progress);}},_initProgressListener:function(options){var that=this,xhr=options.xhr?options.xhr():$.ajaxSettings.xhr();if(xhr.upload){$(xhr.upload).on('progress',function(e){var oe=e.originalEvent;e.lengthComputable=oe.lengthComputable;e.loaded=oe.loaded;e.total=oe.total;that._onProgress(e,options);});options.xhr=function(){return xhr;};}},_deinitProgressListener:function(options){var xhr=options.xhr?options.xhr():$.ajaxSettings.xhr();if(xhr.upload){$(xhr.upload).off('progress');}},_isInstanceOf:function(type,obj){return Object.prototype.toString.call(obj)==='[object '+type+']';},_getUniqueFilename:function(name,map){name=String(name);if(map[name]){name=name.replace(/(?: \\(([\\d]+)\\))?(\\.[^.]+)?$/,function(_,p1,p2){var index=p1?Number(p1)+1:1;var ext=p2||'';return' ('+index+')'+ext;});return this._getUniqueFilename(name,map);}\nmap[name]=true;return name;},_initXHRData:function(options){var that=this,formData,file=options.files[0],multipart=options.multipart||!$.support.xhrFileUpload,paramName=$.type(options.paramName)==='array'?options.paramName[0]:options.paramName;options.headers=$.extend({},options.headers);if(options.contentRange){options.headers['Content-Range']=options.contentRange;}\nif(!multipart||options.blob||!this._isInstanceOf('File',file)){options.headers['Content-Disposition']='attachment; filename=\"'+\nencodeURI(file.uploadName||file.name)+'\"';}\nif(!multipart){options.contentType=file.type||'application/octet-stream';options.data=options.blob||file;}else if($.support.xhrFormDataFileUpload){if(options.postMessage){formData=this._getFormData(options);if(options.blob){formData.push({name:paramName,value:options.blob});}else{$.each(options.files,function(index,file){formData.push({name:($.type(options.paramName)==='array'&&options.paramName[index])||paramName,value:file});});}}else{if(that._isInstanceOf('FormData',options.formData)){formData=options.formData;}else{formData=new FormData();$.each(this._getFormData(options),function(index,field){formData.append(field.name,field.value);});}\nif(options.blob){formData.append(paramName,options.blob,file.uploadName||file.name);}else{$.each(options.files,function(index,file){if(that._isInstanceOf('File',file)||that._isInstanceOf('Blob',file)){var fileName=file.uploadName||file.name;if(options.uniqueFilenames){fileName=that._getUniqueFilename(fileName,options.uniqueFilenames);}\nformData.append(($.type(options.paramName)==='array'&&options.paramName[index])||paramName,file,fileName);}});}}\noptions.data=formData;}\noptions.blob=null;},_initIframeSettings:function(options){var targetHost=$('<a></a>').prop('href',options.url).prop('host');options.dataType='iframe '+(options.dataType||'');options.formData=this._getFormData(options);if(options.redirect&&targetHost&&targetHost!==location.host){options.formData.push({name:options.redirectParamName||'redirect',value:options.redirect});}},_initDataSettings:function(options){if(this._isXHRUpload(options)){if(!this._chunkedUpload(options,true)){if(!options.data){this._initXHRData(options);}\nthis._initProgressListener(options);}\nif(options.postMessage){options.dataType='postmessage '+(options.dataType||'');}}else{this._initIframeSettings(options);}},_getParamName:function(options){var fileInput=$(options.fileInput),paramName=options.paramName;if(!paramName){paramName=[];fileInput.each(function(){var input=$(this),name=input.prop('name')||'files[]',i=(input.prop('files')||[1]).length;while(i){paramName.push(name);i-=1;}});if(!paramName.length){paramName=[fileInput.prop('name')||'files[]'];}}else if(!$.isArray(paramName)){paramName=[paramName];}\nreturn paramName;},_initFormSettings:function(options){if(!options.form||!options.form.length){options.form=$(options.fileInput.prop('form'));if(!options.form.length){options.form=$(this.options.fileInput.prop('form'));}}\noptions.paramName=this._getParamName(options);if(!options.url){options.url=options.form.prop('action')||location.href;}\noptions.type=(options.type||($.type(options.form.prop('method'))==='string'&&options.form.prop('method'))||'').toUpperCase();if(options.type!=='POST'&&options.type!=='PUT'&&options.type!=='PATCH'){options.type='POST';}\nif(!options.formAcceptCharset){options.formAcceptCharset=options.form.attr('accept-charset');}},_getAJAXSettings:function(data){var options=$.extend({},this.options,data);this._initFormSettings(options);this._initDataSettings(options);return options;},_getDeferredState:function(deferred){if(deferred.state){return deferred.state();}\nif(deferred.isResolved()){return'resolved';}\nif(deferred.isRejected()){return'rejected';}\nreturn'pending';},_enhancePromise:function(promise){promise.success=promise.done;promise.error=promise.fail;promise.complete=promise.always;return promise;},_getXHRPromise:function(resolveOrReject,context,args){var dfd=$.Deferred(),promise=dfd.promise();context=context||this.options.context||promise;if(resolveOrReject===true){dfd.resolveWith(context,args);}else if(resolveOrReject===false){dfd.rejectWith(context,args);}\npromise.abort=dfd.promise;return this._enhancePromise(promise);},_addConvenienceMethods:function(e,data){var that=this,getPromise=function(args){return $.Deferred().resolveWith(that,args).promise();};data.process=function(resolveFunc,rejectFunc){if(resolveFunc||rejectFunc){data._processQueue=this._processQueue=(this._processQueue||getPromise([this]))\n[that._promisePipe](function(){if(data.errorThrown){return $.Deferred().rejectWith(that,[data]).promise();}\nreturn getPromise(arguments);})\n[that._promisePipe](resolveFunc,rejectFunc);}\nreturn this._processQueue||getPromise([this]);};data.submit=function(){if(this.state()!=='pending'){data.jqXHR=this.jqXHR=that._trigger('submit',$.Event('submit',{delegatedEvent:e}),this)!==false&&that._onSend(e,this);}\nreturn this.jqXHR||that._getXHRPromise();};data.abort=function(){if(this.jqXHR){return this.jqXHR.abort();}\nthis.errorThrown='abort';that._trigger('fail',null,this);return that._getXHRPromise(false);};data.state=function(){if(this.jqXHR){return that._getDeferredState(this.jqXHR);}\nif(this._processQueue){return that._getDeferredState(this._processQueue);}};data.processing=function(){return(!this.jqXHR&&this._processQueue&&that._getDeferredState(this._processQueue)==='pending');};data.progress=function(){return this._progress;};data.response=function(){return this._response;};},_getUploadedBytes:function(jqXHR){var range=jqXHR.getResponseHeader('Range'),parts=range&&range.split('-'),upperBytesPos=parts&&parts.length>1&&parseInt(parts[1],10);return upperBytesPos&&upperBytesPos+1;},_chunkedUpload:function(options,testOnly){options.uploadedBytes=options.uploadedBytes||0;var that=this,file=options.files[0],fs=file.size,ub=options.uploadedBytes,mcs=options.maxChunkSize||fs,slice=this._blobSlice,dfd=$.Deferred(),promise=dfd.promise(),jqXHR,upload;if(!(this._isXHRUpload(options)&&slice&&(ub||($.type(mcs)==='function'?mcs(options):mcs)<fs))||options.data){return false;}\nif(testOnly){return true;}\nif(ub>=fs){file.error=options.i18n('uploadedBytes');return this._getXHRPromise(false,options.context,[null,'error',file.error]);}\nupload=function(){var o=$.extend({},options),currentLoaded=o._progress.loaded;o.blob=slice.call(file,ub,ub+($.type(mcs)==='function'?mcs(o):mcs),file.type);o.chunkSize=o.blob.size;o.contentRange='bytes '+ub+'-'+(ub+o.chunkSize-1)+'/'+fs;that._trigger('chunkbeforesend',null,o);that._initXHRData(o);that._initProgressListener(o);jqXHR=((that._trigger('chunksend',null,o)!==false&&$.ajax(o))||that._getXHRPromise(false,o.context)).done(function(result,textStatus,jqXHR){ub=that._getUploadedBytes(jqXHR)||ub+o.chunkSize;if(currentLoaded+o.chunkSize-o._progress.loaded){that._onProgress($.Event('progress',{lengthComputable:true,loaded:ub-o.uploadedBytes,total:ub-o.uploadedBytes}),o);}\noptions.uploadedBytes=o.uploadedBytes=ub;o.result=result;o.textStatus=textStatus;o.jqXHR=jqXHR;that._trigger('chunkdone',null,o);that._trigger('chunkalways',null,o);if(ub<fs){upload();}else{dfd.resolveWith(o.context,[result,textStatus,jqXHR]);}}).fail(function(jqXHR,textStatus,errorThrown){o.jqXHR=jqXHR;o.textStatus=textStatus;o.errorThrown=errorThrown;that._trigger('chunkfail',null,o);that._trigger('chunkalways',null,o);dfd.rejectWith(o.context,[jqXHR,textStatus,errorThrown]);}).always(function(){that._deinitProgressListener(o);});};this._enhancePromise(promise);promise.abort=function(){return jqXHR.abort();};upload();return promise;},_beforeSend:function(e,data){if(this._active===0){this._trigger('start');this._bitrateTimer=new this._BitrateTimer();this._progress.loaded=this._progress.total=0;this._progress.bitrate=0;}\nthis._initResponseObject(data);this._initProgressObject(data);data._progress.loaded=data.loaded=data.uploadedBytes||0;data._progress.total=data.total=this._getTotal(data.files)||1;data._progress.bitrate=data.bitrate=0;this._active+=1;this._progress.loaded+=data.loaded;this._progress.total+=data.total;},_onDone:function(result,textStatus,jqXHR,options){var total=options._progress.total,response=options._response;if(options._progress.loaded<total){this._onProgress($.Event('progress',{lengthComputable:true,loaded:total,total:total}),options);}\nresponse.result=options.result=result;response.textStatus=options.textStatus=textStatus;response.jqXHR=options.jqXHR=jqXHR;this._trigger('done',null,options);},_onFail:function(jqXHR,textStatus,errorThrown,options){var response=options._response;if(options.recalculateProgress){this._progress.loaded-=options._progress.loaded;this._progress.total-=options._progress.total;}\nresponse.jqXHR=options.jqXHR=jqXHR;response.textStatus=options.textStatus=textStatus;response.errorThrown=options.errorThrown=errorThrown;this._trigger('fail',null,options);},_onAlways:function(jqXHRorResult,textStatus,jqXHRorError,options){this._trigger('always',null,options);},_onSend:function(e,data){if(!data.submit){this._addConvenienceMethods(e,data);}\nvar that=this,jqXHR,aborted,slot,pipe,options=that._getAJAXSettings(data),send=function(){that._sending+=1;options._bitrateTimer=new that._BitrateTimer();jqXHR=jqXHR||(((aborted||that._trigger('send',$.Event('send',{delegatedEvent:e}),options)===false)&&that._getXHRPromise(false,options.context,aborted))||that._chunkedUpload(options)||$.ajax(options)).done(function(result,textStatus,jqXHR){that._onDone(result,textStatus,jqXHR,options);}).fail(function(jqXHR,textStatus,errorThrown){that._onFail(jqXHR,textStatus,errorThrown,options);}).always(function(jqXHRorResult,textStatus,jqXHRorError){that._deinitProgressListener(options);that._onAlways(jqXHRorResult,textStatus,jqXHRorError,options);that._sending-=1;that._active-=1;if(options.limitConcurrentUploads&&options.limitConcurrentUploads>that._sending){var nextSlot=that._slots.shift();while(nextSlot){if(that._getDeferredState(nextSlot)==='pending'){nextSlot.resolve();break;}\nnextSlot=that._slots.shift();}}\nif(that._active===0){that._trigger('stop');}});return jqXHR;};this._beforeSend(e,options);if(this.options.sequentialUploads||(this.options.limitConcurrentUploads&&this.options.limitConcurrentUploads<=this._sending)){if(this.options.limitConcurrentUploads>1){slot=$.Deferred();this._slots.push(slot);pipe=slot[that._promisePipe](send);}else{this._sequence=this._sequence[that._promisePipe](send,send);pipe=this._sequence;}\npipe.abort=function(){aborted=[undefined,'abort','abort'];if(!jqXHR){if(slot){slot.rejectWith(options.context,aborted);}\nreturn send();}\nreturn jqXHR.abort();};return this._enhancePromise(pipe);}\nreturn send();},_onAdd:function(e,data){var that=this,result=true,options=$.extend({},this.options,data),files=data.files,filesLength=files.length,limit=options.limitMultiFileUploads,limitSize=options.limitMultiFileUploadSize,overhead=options.limitMultiFileUploadSizeOverhead,batchSize=0,paramName=this._getParamName(options),paramNameSet,paramNameSlice,fileSet,i,j=0;if(!filesLength){return false;}\nif(limitSize&&files[0].size===undefined){limitSize=undefined;}\nif(!(options.singleFileUploads||limit||limitSize)||!this._isXHRUpload(options)){fileSet=[files];paramNameSet=[paramName];}else if(!(options.singleFileUploads||limitSize)&&limit){fileSet=[];paramNameSet=[];for(i=0;i<filesLength;i+=limit){fileSet.push(files.slice(i,i+limit));paramNameSlice=paramName.slice(i,i+limit);if(!paramNameSlice.length){paramNameSlice=paramName;}\nparamNameSet.push(paramNameSlice);}}else if(!options.singleFileUploads&&limitSize){fileSet=[];paramNameSet=[];for(i=0;i<filesLength;i=i+1){batchSize+=files[i].size+overhead;if(i+1===filesLength||batchSize+files[i+1].size+overhead>limitSize||(limit&&i+1-j>=limit)){fileSet.push(files.slice(j,i+1));paramNameSlice=paramName.slice(j,i+1);if(!paramNameSlice.length){paramNameSlice=paramName;}\nparamNameSet.push(paramNameSlice);j=i+1;batchSize=0;}}}else{paramNameSet=paramName;}\ndata.originalFiles=files;$.each(fileSet||files,function(index,element){var newData=$.extend({},data);newData.files=fileSet?element:[element];newData.paramName=paramNameSet[index];that._initResponseObject(newData);that._initProgressObject(newData);that._addConvenienceMethods(e,newData);result=that._trigger('add',$.Event('add',{delegatedEvent:e}),newData);return result;});return result;},_replaceFileInput:function(data){var input=data.fileInput,inputClone=input.clone(true),restoreFocus=input.is(document.activeElement);data.fileInputClone=inputClone;$('<form></form>').append(inputClone)[0].reset();input.after(inputClone).detach();if(restoreFocus){inputClone.trigger('focus');}\n$.cleanData(input.off('remove'));this.options.fileInput=this.options.fileInput.map(function(i,el){if(el===input[0]){return inputClone[0];}\nreturn el;});if(input[0]===this.element[0]){this.element=inputClone;}},_handleFileTreeEntry:function(entry,path){var that=this,dfd=$.Deferred(),entries=[],dirReader,errorHandler=function(e){if(e&&!e.entry){e.entry=entry;}\ndfd.resolve([e]);},successHandler=function(entries){that._handleFileTreeEntries(entries,path+entry.name+'/').done(function(files){dfd.resolve(files);}).fail(errorHandler);},readEntries=function(){dirReader.readEntries(function(results){if(!results.length){successHandler(entries);}else{entries=entries.concat(results);readEntries();}},errorHandler);};path=path||'';if(entry.isFile){if(entry._file){entry._file.relativePath=path;dfd.resolve(entry._file);}else{entry.file(function(file){file.relativePath=path;dfd.resolve(file);},errorHandler);}}else if(entry.isDirectory){dirReader=entry.createReader();readEntries();}else{dfd.resolve([]);}\nreturn dfd.promise();},_handleFileTreeEntries:function(entries,path){var that=this;return $.when.apply($,$.map(entries,function(entry){return that._handleFileTreeEntry(entry,path);}))\n[this._promisePipe](function(){return Array.prototype.concat.apply([],arguments);});},_getDroppedFiles:function(dataTransfer){dataTransfer=dataTransfer||{};var items=dataTransfer.items;if(items&&items.length&&(items[0].webkitGetAsEntry||items[0].getAsEntry)){return this._handleFileTreeEntries($.map(items,function(item){var entry;if(item.webkitGetAsEntry){entry=item.webkitGetAsEntry();if(entry){entry._file=item.getAsFile();}\nreturn entry;}\nreturn item.getAsEntry();}));}\nreturn $.Deferred().resolve($.makeArray(dataTransfer.files)).promise();},_getSingleFileInputFiles:function(fileInput){fileInput=$(fileInput);var entries=fileInput.prop('entries'),files,value;if(entries&&entries.length){return this._handleFileTreeEntries(entries);}\nfiles=$.makeArray(fileInput.prop('files'));if(!files.length){value=fileInput.prop('value');if(!value){return $.Deferred().resolve([]).promise();}\nfiles=[{name:value.replace(/^.*\\\\/,'')}];}else if(files[0].name===undefined&&files[0].fileName){$.each(files,function(index,file){file.name=file.fileName;file.size=file.fileSize;});}\nreturn $.Deferred().resolve(files).promise();},_getFileInputFiles:function(fileInput){if(!(fileInput instanceof $)||fileInput.length===1){return this._getSingleFileInputFiles(fileInput);}\nreturn $.when.apply($,$.map(fileInput,this._getSingleFileInputFiles))\n[this._promisePipe](function(){return Array.prototype.concat.apply([],arguments);});},_onChange:function(e){var that=this,data={fileInput:$(e.target),form:$(e.target.form)};this._getFileInputFiles(data.fileInput).always(function(files){data.files=files;if(that.options.replaceFileInput){that._replaceFileInput(data);}\nif(that._trigger('change',$.Event('change',{delegatedEvent:e}),data)!==false){that._onAdd(e,data);}});},_onPaste:function(e){var items=e.originalEvent&&e.originalEvent.clipboardData&&e.originalEvent.clipboardData.items,data={files:[]};if(items&&items.length){$.each(items,function(index,item){var file=item.getAsFile&&item.getAsFile();if(file){data.files.push(file);}});if(this._trigger('paste',$.Event('paste',{delegatedEvent:e}),data)!==false){this._onAdd(e,data);}}},_onDrop:function(e){e.dataTransfer=e.originalEvent&&e.originalEvent.dataTransfer;var that=this,dataTransfer=e.dataTransfer,data={};if(dataTransfer&&dataTransfer.files&&dataTransfer.files.length){e.preventDefault();this._getDroppedFiles(dataTransfer).always(function(files){data.files=files;if(that._trigger('drop',$.Event('drop',{delegatedEvent:e}),data)!==false){that._onAdd(e,data);}});}},_onDragOver:getDragHandler('dragover'),_onDragEnter:getDragHandler('dragenter'),_onDragLeave:getDragHandler('dragleave'),_initEventHandlers:function(){if(this._isXHRUpload(this.options)){this._on(this.options.dropZone,{dragover:this._onDragOver,drop:this._onDrop,dragenter:this._onDragEnter,dragleave:this._onDragLeave});this._on(this.options.pasteZone,{paste:this._onPaste});}\nif($.support.fileInput){this._on(this.options.fileInput,{change:this._onChange});}},_destroyEventHandlers:function(){this._off(this.options.dropZone,'dragenter dragleave dragover drop');this._off(this.options.pasteZone,'paste');this._off(this.options.fileInput,'change');},_destroy:function(){this._destroyEventHandlers();},_setOption:function(key,value){var reinit=$.inArray(key,this._specialOptions)!==-1;if(reinit){this._destroyEventHandlers();}\nthis._super(key,value);if(reinit){this._initSpecialOptions();this._initEventHandlers();}},_initSpecialOptions:function(){var options=this.options;if(options.fileInput===undefined){options.fileInput=this.element.is('input[type=\"file\"]')?this.element:this.element.find('input[type=\"file\"]');}else if(!(options.fileInput instanceof $)){options.fileInput=$(options.fileInput);}\nif(!(options.dropZone instanceof $)){options.dropZone=$(options.dropZone);}\nif(!(options.pasteZone instanceof $)){options.pasteZone=$(options.pasteZone);}},_getRegExp:function(str){var parts=str.split('/'),modifiers=parts.pop();parts.shift();return new RegExp(parts.join('/'),modifiers);},_isRegExpOption:function(key,value){return(key!=='url'&&$.type(value)==='string'&&/^\\/.*\\/[igm]{0,3}$/.test(value));},_initDataAttributes:function(){var that=this,options=this.options,data=this.element.data();$.each(this.element[0].attributes,function(index,attr){var key=attr.name.toLowerCase(),value;if(/^data-/.test(key)){key=key.slice(5).replace(/-[a-z]/g,function(str){return str.charAt(1).toUpperCase();});value=data[key];if(that._isRegExpOption(key,value)){value=that._getRegExp(value);}\noptions[key]=value;}});},_create:function(){this._initDataAttributes();this._initSpecialOptions();this._slots=[];this._sequence=this._getXHRPromise(true);this._sending=this._active=0;this._initProgressObject(this);this._initEventHandlers();},active:function(){return this._active;},progress:function(){return this._progress;},add:function(data){var that=this;if(!data||this.options.disabled){return;}\nif(data.fileInput&&!data.files){this._getFileInputFiles(data.fileInput).always(function(files){data.files=files;that._onAdd(null,data);});}else{data.files=$.makeArray(data.files);this._onAdd(null,data);}},send:function(data){if(data&&!this.options.disabled){if(data.fileInput&&!data.files){var that=this,dfd=$.Deferred(),promise=dfd.promise(),jqXHR,aborted;promise.abort=function(){aborted=true;if(jqXHR){return jqXHR.abort();}\ndfd.reject(null,'abort','abort');return promise;};this._getFileInputFiles(data.fileInput).always(function(files){if(aborted){return;}\nif(!files.length){dfd.reject();return;}\ndata.files=files;jqXHR=that._onSend(null,data);jqXHR.then(function(result,textStatus,jqXHR){dfd.resolve(result,textStatus,jqXHR);},function(jqXHR,textStatus,errorThrown){dfd.reject(jqXHR,textStatus,errorThrown);});});return this._enhancePromise(promise);}\ndata.files=$.makeArray(data.files);if(data.files.length){return this._onSend(null,data);}}\nreturn this._getXHRPromise(false,data&&data.context);}});});","Mageplaza_Core/lib/fileUploader/jquery.fileupload-ui.min.js":"(function(factory){'use strict';if(typeof define==='function'&&define.amd){define(['jquery','Mageplaza_Core/lib/fileUploader/vendor/blueimp-tmpl/js/tmpl','Mageplaza_Core/lib/fileUploader/jquery.fileupload-image','Mageplaza_Core/lib/fileUploader/jquery.fileupload-audio','Mageplaza_Core/lib/fileUploader/jquery.fileupload-video','Mageplaza_Core/lib/fileUploader/jquery.fileupload-validate'],factory);}else if(typeof exports==='object'){factory(require('jquery'),require('Mageplaza_Core/lib/fileUploader/vendor/blueimp-tmpl/js/tmpl'),require('Mageplaza_Core/lib/fileUploader/jquery.fileupload-image'),require('Mageplaza_Core/lib/fileUploader/jquery.fileupload-audio'),require('Mageplaza_Core/lib/fileUploader/jquery.fileupload-video'),require('Mageplaza_Core/lib/fileUploader/jquery.fileupload-validate'));}else{factory(window.jQuery,window.tmpl);}})(function($,tmpl){'use strict';$.blueimp.fileupload.prototype._specialOptions.push('filesContainer','uploadTemplateId','downloadTemplateId');$.widget('blueimp.fileupload',$.blueimp.fileupload,{options:{autoUpload:false,showElementClass:'in',uploadTemplateId:'template-upload',downloadTemplateId:'template-download',filesContainer:undefined,prependFiles:false,dataType:'json',messages:{unknownError:'Unknown error'},getNumberOfFiles:function(){return this.filesContainer.children().not('.processing').length;},getFilesFromResponse:function(data){if(data.result&&$.isArray(data.result.files)){return data.result.files;}\nreturn[];},add:function(e,data){if(e.isDefaultPrevented()){return false;}\nvar $this=$(this),that=$this.data('blueimp-fileupload')||$this.data('fileupload'),options=that.options;data.context=that._renderUpload(data.files).data('data',data).addClass('processing');options.filesContainer[options.prependFiles?'prepend':'append'](data.context);that._forceReflow(data.context);that._transition(data.context);data.process(function(){return $this.fileupload('process',data);}).always(function(){data.context.each(function(index){$(this).find('.size').text(that._formatFileSize(data.files[index].size));}).removeClass('processing');that._renderPreviews(data);}).done(function(){data.context.find('.edit,.start').prop('disabled',false);if(that._trigger('added',e,data)!==false&&(options.autoUpload||data.autoUpload)&&data.autoUpload!==false){data.submit();}}).fail(function(){if(data.files.error){data.context.each(function(index){var error=data.files[index].error;if(error){$(this).find('.error').text(error);}});}});},send:function(e,data){if(e.isDefaultPrevented()){return false;}\nvar that=$(this).data('blueimp-fileupload')||$(this).data('fileupload');if(data.context&&data.dataType&&data.dataType.substr(0,6)==='iframe'){data.context.find('.progress').addClass(!$.support.transition&&'progress-animated').attr('aria-valuenow',100).children().first().css('width','100%');}\nreturn that._trigger('sent',e,data);},done:function(e,data){if(e.isDefaultPrevented()){return false;}\nvar that=$(this).data('blueimp-fileupload')||$(this).data('fileupload'),getFilesFromResponse=data.getFilesFromResponse||that.options.getFilesFromResponse,files=getFilesFromResponse(data),template,deferred;if(data.context){data.context.each(function(index){var file=files[index]||{error:'Empty file upload result'};deferred=that._addFinishedDeferreds();that._transition($(this)).done(function(){var node=$(this);template=that._renderDownload([file]).replaceAll(node);that._forceReflow(template);that._transition(template).done(function(){data.context=$(this);that._trigger('completed',e,data);that._trigger('finished',e,data);deferred.resolve();});});});}else{template=that._renderDownload(files)\n[that.options.prependFiles?'prependTo':'appendTo'](that.options.filesContainer);that._forceReflow(template);deferred=that._addFinishedDeferreds();that._transition(template).done(function(){data.context=$(this);that._trigger('completed',e,data);that._trigger('finished',e,data);deferred.resolve();});}},fail:function(e,data){if(e.isDefaultPrevented()){return false;}\nvar that=$(this).data('blueimp-fileupload')||$(this).data('fileupload'),template,deferred;if(data.context){data.context.each(function(index){if(data.errorThrown!=='abort'){var file=data.files[index];file.error=file.error||data.errorThrown||data.i18n('unknownError');deferred=that._addFinishedDeferreds();that._transition($(this)).done(function(){var node=$(this);template=that._renderDownload([file]).replaceAll(node);that._forceReflow(template);that._transition(template).done(function(){data.context=$(this);that._trigger('failed',e,data);that._trigger('finished',e,data);deferred.resolve();});});}else{deferred=that._addFinishedDeferreds();that._transition($(this)).done(function(){$(this).remove();that._trigger('failed',e,data);that._trigger('finished',e,data);deferred.resolve();});}});}else if(data.errorThrown!=='abort'){data.context=that._renderUpload(data.files)\n[that.options.prependFiles?'prependTo':'appendTo'](that.options.filesContainer).data('data',data);that._forceReflow(data.context);deferred=that._addFinishedDeferreds();that._transition(data.context).done(function(){data.context=$(this);that._trigger('failed',e,data);that._trigger('finished',e,data);deferred.resolve();});}else{that._trigger('failed',e,data);that._trigger('finished',e,data);that._addFinishedDeferreds().resolve();}},progress:function(e,data){if(e.isDefaultPrevented()){return false;}\nvar progress=Math.floor((data.loaded / data.total)*100);if(data.context){data.context.each(function(){$(this).find('.progress').attr('aria-valuenow',progress).children().first().css('width',progress+'%');});}},progressall:function(e,data){if(e.isDefaultPrevented()){return false;}\nvar $this=$(this),progress=Math.floor((data.loaded / data.total)*100),globalProgressNode=$this.find('.fileupload-progress'),extendedProgressNode=globalProgressNode.find('.progress-extended');if(extendedProgressNode.length){extendedProgressNode.html(($this.data('blueimp-fileupload')||$this.data('fileupload'))._renderExtendedProgress(data));}\nglobalProgressNode.find('.progress').attr('aria-valuenow',progress).children().first().css('width',progress+'%');},start:function(e){if(e.isDefaultPrevented()){return false;}\nvar that=$(this).data('blueimp-fileupload')||$(this).data('fileupload');that._resetFinishedDeferreds();that._transition($(this).find('.fileupload-progress')).done(function(){that._trigger('started',e);});},stop:function(e){if(e.isDefaultPrevented()){return false;}\nvar that=$(this).data('blueimp-fileupload')||$(this).data('fileupload'),deferred=that._addFinishedDeferreds();$.when.apply($,that._getFinishedDeferreds()).done(function(){that._trigger('stopped',e);});that._transition($(this).find('.fileupload-progress')).done(function(){$(this).find('.progress').attr('aria-valuenow','0').children().first().css('width','0%');$(this).find('.progress-extended').html('&nbsp;');deferred.resolve();});},processstart:function(e){if(e.isDefaultPrevented()){return false;}\n$(this).addClass('fileupload-processing');},processstop:function(e){if(e.isDefaultPrevented()){return false;}\n$(this).removeClass('fileupload-processing');},destroy:function(e,data){if(e.isDefaultPrevented()){return false;}\nvar that=$(this).data('blueimp-fileupload')||$(this).data('fileupload'),removeNode=function(){that._transition(data.context).done(function(){$(this).remove();that._trigger('destroyed',e,data);});};if(data.url){data.dataType=data.dataType||that.options.dataType;$.ajax(data).done(removeNode).fail(function(){that._trigger('destroyfailed',e,data);});}else{removeNode();}}},_resetFinishedDeferreds:function(){this._finishedUploads=[];},_addFinishedDeferreds:function(deferred){var promise=deferred||$.Deferred();this._finishedUploads.push(promise);return promise;},_getFinishedDeferreds:function(){return this._finishedUploads;},_enableDragToDesktop:function(){var link=$(this),url=link.prop('href'),name=link.prop('download'),type='application/octet-stream';link.on('dragstart',function(e){try{e.originalEvent.dataTransfer.setData('DownloadURL',[type,name,url].join(':'));}catch(ignore){}});},_formatFileSize:function(bytes){if(typeof bytes!=='number'){return'';}\nif(bytes>=1000000000){return(bytes / 1000000000).toFixed(2)+' GB';}\nif(bytes>=1000000){return(bytes / 1000000).toFixed(2)+' MB';}\nreturn(bytes / 1000).toFixed(2)+' KB';},_formatBitrate:function(bits){if(typeof bits!=='number'){return'';}\nif(bits>=1000000000){return(bits / 1000000000).toFixed(2)+' Gbit/s';}\nif(bits>=1000000){return(bits / 1000000).toFixed(2)+' Mbit/s';}\nif(bits>=1000){return(bits / 1000).toFixed(2)+' kbit/s';}\nreturn bits.toFixed(2)+' bit/s';},_formatTime:function(seconds){var date=new Date(seconds*1000),days=Math.floor(seconds / 86400);days=days?days+'d ':'';return(days+\n('0'+date.getUTCHours()).slice(-2)+':'+\n('0'+date.getUTCMinutes()).slice(-2)+':'+\n('0'+date.getUTCSeconds()).slice(-2));},_formatPercentage:function(floatValue){return(floatValue*100).toFixed(2)+' %';},_renderExtendedProgress:function(data){return(this._formatBitrate(data.bitrate)+' | '+\nthis._formatTime(((data.total-data.loaded)*8)/ data.bitrate)+' | '+\nthis._formatPercentage(data.loaded / data.total)+' | '+\nthis._formatFileSize(data.loaded)+' / '+\nthis._formatFileSize(data.total));},_renderTemplate:function(func,files){if(!func){return $();}\nvar result=func({files:files,formatFileSize:this._formatFileSize,options:this.options});if(result instanceof $){return result;}\nreturn $(this.options.templatesContainer).html(result).children();},_renderPreviews:function(data){data.context.find('.preview').each(function(index,elm){$(elm).empty().append(data.files[index].preview);});},_renderUpload:function(files){return this._renderTemplate(this.options.uploadTemplate,files);},_renderDownload:function(files){return this._renderTemplate(this.options.downloadTemplate,files).find('a[download]').each(this._enableDragToDesktop).end();},_editHandler:function(e){e.preventDefault();if(!this.options.edit)return;var that=this,button=$(e.currentTarget),template=button.closest('.template-upload'),data=template.data('data'),index=button.data().index;this.options.edit(data.files[index]).then(function(file){if(!file)return;data.files[index]=file;data.context.addClass('processing');template.find('.edit,.start').prop('disabled',true);$(that.element).fileupload('process',data).always(function(){template.find('.size').text(that._formatFileSize(data.files[index].size));data.context.removeClass('processing');that._renderPreviews(data);}).done(function(){template.find('.edit,.start').prop('disabled',false);}).fail(function(){template.find('.edit').prop('disabled',false);var error=data.files[index].error;if(error){template.find('.error').text(error);}});});},_startHandler:function(e){e.preventDefault();var button=$(e.currentTarget),template=button.closest('.template-upload'),data=template.data('data');button.prop('disabled',true);if(data&&data.submit){data.submit();}},_cancelHandler:function(e){e.preventDefault();var template=$(e.currentTarget).closest('.template-upload,.template-download'),data=template.data('data')||{};data.context=data.context||template;if(data.abort){data.abort();}else{data.errorThrown='abort';this._trigger('fail',e,data);}},_deleteHandler:function(e){e.preventDefault();var button=$(e.currentTarget);this._trigger('destroy',e,$.extend({context:button.closest('.template-download'),type:'DELETE'},button.data()));},_forceReflow:function(node){return $.support.transition&&node.length&&node[0].offsetWidth;},_transition:function(node){var dfd=$.Deferred();if($.support.transition&&node.hasClass('fade')&&node.is(':visible')){var transitionEndHandler=function(e){if(e.target===node[0]){node.off($.support.transition.end,transitionEndHandler);dfd.resolveWith(node);}};node.on($.support.transition.end,transitionEndHandler).toggleClass(this.options.showElementClass);}else{node.toggleClass(this.options.showElementClass);dfd.resolveWith(node);}\nreturn dfd;},_initButtonBarEventHandlers:function(){var fileUploadButtonBar=this.element.find('.fileupload-buttonbar'),filesList=this.options.filesContainer;this._on(fileUploadButtonBar.find('.start'),{click:function(e){e.preventDefault();filesList.find('.start').trigger('click');}});this._on(fileUploadButtonBar.find('.cancel'),{click:function(e){e.preventDefault();filesList.find('.cancel').trigger('click');}});this._on(fileUploadButtonBar.find('.delete'),{click:function(e){e.preventDefault();filesList.find('.toggle:checked').closest('.template-download').find('.delete').trigger('click');fileUploadButtonBar.find('.toggle').prop('checked',false);}});this._on(fileUploadButtonBar.find('.toggle'),{change:function(e){filesList.find('.toggle').prop('checked',$(e.currentTarget).is(':checked'));}});},_destroyButtonBarEventHandlers:function(){this._off(this.element.find('.fileupload-buttonbar').find('.start, .cancel, .delete'),'click');this._off(this.element.find('.fileupload-buttonbar .toggle'),'change.');},_initEventHandlers:function(){this._super();this._on(this.options.filesContainer,{'click .edit':this._editHandler,'click .start':this._startHandler,'click .cancel':this._cancelHandler,'click .delete':this._deleteHandler});this._initButtonBarEventHandlers();},_destroyEventHandlers:function(){this._destroyButtonBarEventHandlers();this._off(this.options.filesContainer,'click');this._super();},_enableFileInputButton:function(){this.element.find('.fileinput-button input').prop('disabled',false).parent().removeClass('disabled');},_disableFileInputButton:function(){this.element.find('.fileinput-button input').prop('disabled',true).parent().addClass('disabled');},_initTemplates:function(){var options=this.options;options.templatesContainer=this.document[0].createElement(options.filesContainer.prop('nodeName'));if(tmpl){if(options.uploadTemplateId){options.uploadTemplate=tmpl(options.uploadTemplateId);}\nif(options.downloadTemplateId){options.downloadTemplate=tmpl(options.downloadTemplateId);}}},_initFilesContainer:function(){var options=this.options;if(options.filesContainer===undefined){options.filesContainer=this.element.find('.files');}else if(!(options.filesContainer instanceof $)){options.filesContainer=$(options.filesContainer);}},_initSpecialOptions:function(){this._super();this._initFilesContainer();},_create:function(){this._super();this._resetFinishedDeferreds();if(!$.support.fileInput){this._disableFileInputButton();}},enable:function(){var wasDisabled=false;if(this.options.disabled){wasDisabled=true;}\nthis._super();if(wasDisabled){this.element.find('input, button').prop('disabled',false);this._enableFileInputButton();}},disable:function(){if(!this.options.disabled){this.element.find('input, button').prop('disabled',true);this._disableFileInputButton();}\nthis._super();}});});","Mageplaza_Core/lib/fileUploader/jquery.fileupload-image.min.js":"(function(factory){'use strict';if(typeof define==='function'&&define.amd){define(['jquery','Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image','Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image-meta','Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image-scale','Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image-exif','Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image-orientation','Mageplaza_Core/lib/fileUploader/vendor/blueimp-canvas-to-blob/js/canvas-to-blob','Mageplaza_Core/lib/fileUploader/jquery.fileupload-process'],factory);}else if(typeof exports==='object'){factory(require('jquery'),require('Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image'),require('Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image-meta'),require('Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image-scale'),require('Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image-exif'),require('Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image-orientation'),require('Mageplaza_Core/lib/fileUploader/vendor/blueimp-canvas-to-blob/js/canvas-to-blob'),require('Mageplaza_Core/lib/fileUploader/jquery.fileupload-process'));}else{factory(window.jQuery,window.loadImage);}})(function($,loadImage){'use strict';$.blueimp.fileupload.prototype.options.processQueue.unshift({action:'loadImageMetaData',maxMetaDataSize:'@',disableImageHead:'@',disableMetaDataParsers:'@',disableExif:'@',disableExifOffsets:'@',includeExifTags:'@',excludeExifTags:'@',disableIptc:'@',disableIptcOffsets:'@',includeIptcTags:'@',excludeIptcTags:'@',disabled:'@disableImageMetaDataLoad'},{action:'loadImage',prefix:true,fileTypes:'@',maxFileSize:'@',noRevoke:'@',disabled:'@disableImageLoad'},{action:'resizeImage',prefix:'image',maxWidth:'@',maxHeight:'@',minWidth:'@',minHeight:'@',crop:'@',orientation:'@',forceResize:'@',disabled:'@disableImageResize'},{action:'saveImage',quality:'@imageQuality',type:'@imageType',disabled:'@disableImageResize'},{action:'saveImageMetaData',disabled:'@disableImageMetaDataSave'},{action:'resizeImage',prefix:'preview',maxWidth:'@',maxHeight:'@',minWidth:'@',minHeight:'@',crop:'@',orientation:'@',thumbnail:'@',canvas:'@',disabled:'@disableImagePreview'},{action:'setImage',name:'@imagePreviewName',disabled:'@disableImagePreview'},{action:'deleteImageReferences',disabled:'@disableImageReferencesDeletion'});$.widget('blueimp.fileupload',$.blueimp.fileupload,{options:{loadImageFileTypes:/^image\\/(gif|jpeg|png|svg\\+xml)$/,loadImageMaxFileSize:10000000,imageMaxWidth:1920,imageMaxHeight:1080,imageOrientation:true,imageCrop:false,disableImageResize:true,previewMaxWidth:80,previewMaxHeight:80,previewOrientation:true,previewThumbnail:true,previewCrop:false,previewCanvas:true},processActions:{loadImage:function(data,options){if(options.disabled){return data;}\nvar that=this,file=data.files[data.index],dfd=$.Deferred();if(($.type(options.maxFileSize)==='number'&&file.size>options.maxFileSize)||(options.fileTypes&&!options.fileTypes.test(file.type))||!loadImage(file,function(img){if(img.src){data.img=img;}\ndfd.resolveWith(that,[data]);},options)){return data;}\nreturn dfd.promise();},resizeImage:function(data,options){if(options.disabled||!(data.canvas||data.img)){return data;}\noptions=$.extend({canvas:true},options);var that=this,dfd=$.Deferred(),img=(options.canvas&&data.canvas)||data.img,resolve=function(newImg){if(newImg&&(newImg.width!==img.width||newImg.height!==img.height||options.forceResize)){data[newImg.getContext?'canvas':'img']=newImg;}\ndata.preview=newImg;dfd.resolveWith(that,[data]);},thumbnail,thumbnailBlob;if(data.exif&&options.thumbnail){thumbnail=data.exif.get('Thumbnail');thumbnailBlob=thumbnail&&thumbnail.get('Blob');if(thumbnailBlob){options.orientation=data.exif.get('Orientation');loadImage(thumbnailBlob,resolve,options);return dfd.promise();}}\nif(data.orientation){delete options.orientation;}else{data.orientation=options.orientation||loadImage.orientation;}\nif(img){resolve(loadImage.scale(img,options,data));return dfd.promise();}\nreturn data;},saveImage:function(data,options){if(!data.canvas||options.disabled){return data;}\nvar that=this,file=data.files[data.index],dfd=$.Deferred();if(data.canvas.toBlob){data.canvas.toBlob(function(blob){if(!blob.name){if(file.type===blob.type){blob.name=file.name;}else if(file.name){blob.name=file.name.replace(/\\.\\w+$/,'.'+blob.type.substr(6));}}\nif(file.type!==blob.type){delete data.imageHead;}\ndata.files[data.index]=blob;dfd.resolveWith(that,[data]);},options.type||file.type,options.quality);}else{return data;}\nreturn dfd.promise();},loadImageMetaData:function(data,options){if(options.disabled){return data;}\nvar that=this,dfd=$.Deferred();loadImage.parseMetaData(data.files[data.index],function(result){$.extend(data,result);dfd.resolveWith(that,[data]);},options);return dfd.promise();},saveImageMetaData:function(data,options){if(!(data.imageHead&&data.canvas&&data.canvas.toBlob&&!options.disabled)){return data;}\nvar that=this,file=data.files[data.index],dfd=$.Deferred();if(data.orientation===true&&data.exifOffsets){loadImage.writeExifData(data.imageHead,data,'Orientation',1);}\nloadImage.replaceHead(file,data.imageHead,function(blob){blob.name=file.name;data.files[data.index]=blob;dfd.resolveWith(that,[data]);});return dfd.promise();},setImage:function(data,options){if(data.preview&&!options.disabled){data.files[data.index][options.name||'preview']=data.preview;}\nreturn data;},deleteImageReferences:function(data,options){if(!options.disabled){delete data.img;delete data.canvas;delete data.preview;delete data.imageHead;}\nreturn data;}}});});","Mageplaza_Core/lib/fileUploader/jquery.fileupload-process.min.js":"(function(factory){'use strict';if(typeof define==='function'&&define.amd){define(['jquery','Mageplaza_Core/lib/fileUploader/jquery.fileupload'],factory);}else if(typeof exports==='object'){factory(require('jquery'),require('Mageplaza_Core/lib/fileUploader/jquery.fileupload'));}else{factory(window.jQuery);}})(function($){'use strict';var originalAdd=$.blueimp.fileupload.prototype.options.add;$.widget('blueimp.fileupload',$.blueimp.fileupload,{options:{processQueue:[],add:function(e,data){var $this=$(this);data.process(function(){return $this.fileupload('process',data);});originalAdd.call(this,e,data);}},processActions:{},_processFile:function(data,originalData){var that=this,dfd=$.Deferred().resolveWith(that,[data]),chain=dfd.promise();this._trigger('process',null,data);$.each(data.processQueue,function(i,settings){var func=function(data){if(originalData.errorThrown){return $.Deferred().rejectWith(that,[originalData]).promise();}\nreturn that.processActions[settings.action].call(that,data,settings);};chain=chain[that._promisePipe](func,settings.always&&func);});chain.done(function(){that._trigger('processdone',null,data);that._trigger('processalways',null,data);}).fail(function(){that._trigger('processfail',null,data);that._trigger('processalways',null,data);});return chain;},_transformProcessQueue:function(options){var processQueue=[];$.each(options.processQueue,function(){var settings={},action=this.action,prefix=this.prefix===true?action:this.prefix;$.each(this,function(key,value){if($.type(value)==='string'&&value.charAt(0)==='@'){settings[key]=options[value.slice(1)||(prefix?prefix+key.charAt(0).toUpperCase()+key.slice(1):key)];}else{settings[key]=value;}});processQueue.push(settings);});options.processQueue=processQueue;},processing:function(){return this._processing;},process:function(data){var that=this,options=$.extend({},this.options,data);if(options.processQueue&&options.processQueue.length){this._transformProcessQueue(options);if(this._processing===0){this._trigger('processstart');}\n$.each(data.files,function(index){var opts=index?$.extend({},options):options,func=function(){if(data.errorThrown){return $.Deferred().rejectWith(that,[data]).promise();}\nreturn that._processFile(opts,data);};opts.index=index;that._processing+=1;that._processingQueue=that._processingQueue[that._promisePipe](func,func).always(function(){that._processing-=1;if(that._processing===0){that._trigger('processstop');}});});}\nreturn this._processingQueue;},_create:function(){this._super();this._processing=0;this._processingQueue=$.Deferred().resolveWith(this).promise();}});});","Mageplaza_Core/lib/fileUploader/jquery.iframe-transport.min.js":"(function(factory){'use strict';if(typeof define==='function'&&define.amd){define(['jquery'],factory);}else if(typeof exports==='object'){factory(require('jquery'));}else{factory(window.jQuery);}})(function($){'use strict';var counter=0,jsonAPI=$,jsonParse='parseJSON';if('JSON'in window&&'parse'in JSON){jsonAPI=JSON;jsonParse='parse';}\n$.ajaxTransport('iframe',function(options){if(options.async){var initialIframeSrc=options.initialIframeSrc||'javascript:false;',form,iframe,addParamChar;return{send:function(_,completeCallback){form=$('<form style=\"display:none;\"></form>');form.attr('accept-charset',options.formAcceptCharset);addParamChar=/\\?/.test(options.url)?'&':'?';if(options.type==='DELETE'){options.url=options.url+addParamChar+'_method=DELETE';options.type='POST';}else if(options.type==='PUT'){options.url=options.url+addParamChar+'_method=PUT';options.type='POST';}else if(options.type==='PATCH'){options.url=options.url+addParamChar+'_method=PATCH';options.type='POST';}\ncounter+=1;iframe=$('<iframe src=\"'+\ninitialIframeSrc+'\" name=\"iframe-transport-'+\ncounter+'\"></iframe>').on('load',function(){var fileInputClones,paramNames=$.isArray(options.paramName)?options.paramName:[options.paramName];iframe.off('load').on('load',function(){var response;try{response=iframe.contents();if(!response.length||!response[0].firstChild){throw new Error();}}catch(e){response=undefined;}\ncompleteCallback(200,'success',{iframe:response});$('<iframe src=\"'+initialIframeSrc+'\"></iframe>').appendTo(form);window.setTimeout(function(){form.remove();},0);});form.prop('target',iframe.prop('name')).prop('action',options.url).prop('method',options.type);if(options.formData){$.each(options.formData,function(index,field){$('<input type=\"hidden\"/>').prop('name',field.name).val(field.value).appendTo(form);});}\nif(options.fileInput&&options.fileInput.length&&options.type==='POST'){fileInputClones=options.fileInput.clone();options.fileInput.after(function(index){return fileInputClones[index];});if(options.paramName){options.fileInput.each(function(index){$(this).prop('name',paramNames[index]||options.paramName);});}\nform.append(options.fileInput).prop('enctype','multipart/form-data').prop('encoding','multipart/form-data');options.fileInput.removeAttr('form');}\nwindow.setTimeout(function(){form.submit();if(fileInputClones&&fileInputClones.length){options.fileInput.each(function(index,input){var clone=$(fileInputClones[index]);$(input).prop('name',clone.prop('name')).attr('form',clone.attr('form'));clone.replaceWith(input);});}},0);});form.append(iframe).appendTo(document.body);},abort:function(){if(iframe){iframe.off('load').prop('src',initialIframeSrc);}\nif(form){form.remove();}}};}});$.ajaxSetup({converters:{'iframe text':function(iframe){return iframe&&$(iframe[0].body).text();},'iframe json':function(iframe){return iframe&&jsonAPI[jsonParse]($(iframe[0].body).text());},'iframe html':function(iframe){return iframe&&$(iframe[0].body).html();},'iframe xml':function(iframe){var xmlDoc=iframe&&iframe[0];return xmlDoc&&$.isXMLDoc(xmlDoc)?xmlDoc:$.parseXML((xmlDoc.XMLDocument&&xmlDoc.XMLDocument.xml)||$(xmlDoc.body).html());},'iframe script':function(iframe){return iframe&&$.globalEval($(iframe[0].body).text());}}});});","Mageplaza_Core/lib/fileUploader/cors/jquery.xdr-transport.min.js":"(function(factory){'use strict';if(typeof define==='function'&&define.amd){define(['jquery'],factory);}else if(typeof exports==='object'){factory(require('jquery'));}else{factory(window.jQuery);}})(function($){'use strict';if(window.XDomainRequest&&!$.support.cors){$.ajaxTransport(function(s){if(s.crossDomain&&s.async){if(s.timeout){s.xdrTimeout=s.timeout;delete s.timeout;}\nvar xdr;return{send:function(headers,completeCallback){var addParamChar=/\\?/.test(s.url)?'&':'?';function callback(status,statusText,responses,responseHeaders){xdr.onload=xdr.onerror=xdr.ontimeout=$.noop;xdr=null;completeCallback(status,statusText,responses,responseHeaders);}\nxdr=new XDomainRequest();if(s.type==='DELETE'){s.url=s.url+addParamChar+'_method=DELETE';s.type='POST';}else if(s.type==='PUT'){s.url=s.url+addParamChar+'_method=PUT';s.type='POST';}else if(s.type==='PATCH'){s.url=s.url+addParamChar+'_method=PATCH';s.type='POST';}\nxdr.open(s.type,s.url);xdr.onload=function(){callback(200,'OK',{text:xdr.responseText},'Content-Type: '+xdr.contentType);};xdr.onerror=function(){callback(404,'Not Found');};if(s.xdrTimeout){xdr.ontimeout=function(){callback(0,'timeout');};xdr.timeout=s.xdrTimeout;}\nxdr.send((s.hasContent&&s.data)||null);},abort:function(){if(xdr){xdr.onerror=$.noop();xdr.abort();}}};}});}});","Mageplaza_Core/lib/fileUploader/cors/jquery.postmessage-transport.min.js":"(function(factory){'use strict';if(typeof define==='function'&&define.amd){define(['jquery'],factory);}else if(typeof exports==='object'){factory(require('jquery'));}else{factory(window.jQuery);}})(function($){'use strict';var counter=0,names=['accepts','cache','contents','contentType','crossDomain','data','dataType','headers','ifModified','mimeType','password','processData','timeout','traditional','type','url','username'],convert=function(p){return p;};$.ajaxSetup({converters:{'postmessage text':convert,'postmessage json':convert,'postmessage html':convert}});$.ajaxTransport('postmessage',function(options){if(options.postMessage&&window.postMessage){var iframe,loc=$('<a></a>').prop('href',options.postMessage)[0],target=loc.protocol+'//'+loc.host,xhrUpload=options.xhr().upload;if(/^(http:\\/\\/.+:80)|(https:\\/\\/.+:443)$/.test(target)){target=target.replace(/:(80|443)$/,'');}\nreturn{send:function(_,completeCallback){counter+=1;var message={id:'postmessage-transport-'+counter},eventName='message.'+message.id;iframe=$('<iframe style=\"display:none;\" src=\"'+\noptions.postMessage+'\" name=\"'+\nmessage.id+'\"></iframe>').on('load',function(){$.each(names,function(i,name){message[name]=options[name];});message.dataType=message.dataType.replace('postmessage ','');$(window).on(eventName,function(event){var e=event.originalEvent;var data=e.data;var ev;if(e.origin===target&&data.id===message.id){if(data.type==='progress'){ev=document.createEvent('Event');ev.initEvent(data.type,false,true);$.extend(ev,data);xhrUpload.dispatchEvent(ev);}else{completeCallback(data.status,data.statusText,{postmessage:data.result},data.headers);iframe.remove();$(window).off(eventName);}}});iframe[0].contentWindow.postMessage(message,target);}).appendTo(document.body);},abort:function(){if(iframe){iframe.remove();}}};}});});","Mageplaza_Core/lib/fileUploader/vendor/jquery.ui.widget.min.js":"/*! jQuery UI - v1.12.1+0b7246b6eeadfa9e2696e22f3230f6452f8129dc - 2020-02-20\n * http://jqueryui.com\n * Includes: widget.js\n * Copyright jQuery Foundation and other contributors; Licensed MIT */\n(function(factory){'use strict';if(typeof define==='function'&&define.amd){define(['jquery'],factory);}else if(typeof exports==='object'){factory(require('jquery'));}else{factory(window.jQuery);}})(function($){('use strict');$.ui=$.ui||{};$.ui.version='1.12.1';/*!\n   * jQuery UI Widget 1.12.1\n   * http://jqueryui.com\n   *\n   * Copyright jQuery Foundation and other contributors\n   * Released under the MIT license.\n   * http://jquery.org/license\n   */\nif(!$.expr.pseudos){$.expr.pseudos=$.expr[':'];}\nif(!$.uniqueSort){$.uniqueSort=$.unique;}\nvar widgetUuid=0;var widgetHasOwnProperty=Array.prototype.hasOwnProperty;var widgetSlice=Array.prototype.slice;$.cleanData=(function(orig){return function(elems){var events,elem,i;for(i=0;(elem=elems[i])!=null;i++){events=$._data(elem,'events');if(events&&events.remove){$(elem).triggerHandler('remove');}}\norig(elems);};})($.cleanData);$.widget=function(name,base,prototype){var existingConstructor,constructor,basePrototype;var proxiedPrototype={};var namespace=name.split('.')[0];name=name.split('.')[1];var fullName=namespace+'-'+name;if(!prototype){prototype=base;base=$.Widget;}\nif($.isArray(prototype)){prototype=$.extend.apply(null,[{}].concat(prototype));}\n$.expr.pseudos[fullName.toLowerCase()]=function(elem){return!!$.data(elem,fullName);};$[namespace]=$[namespace]||{};existingConstructor=$[namespace][name];constructor=$[namespace][name]=function(options,element){if(!this._createWidget){return new constructor(options,element);}\nif(arguments.length){this._createWidget(options,element);}};$.extend(constructor,existingConstructor,{version:prototype.version,_proto:$.extend({},prototype),_childConstructors:[]});basePrototype=new base();basePrototype.options=$.widget.extend({},basePrototype.options);$.each(prototype,function(prop,value){if(!$.isFunction(value)){proxiedPrototype[prop]=value;return;}\nproxiedPrototype[prop]=(function(){function _super(){return base.prototype[prop].apply(this,arguments);}\nfunction _superApply(args){return base.prototype[prop].apply(this,args);}\nreturn function(){var __super=this._super;var __superApply=this._superApply;var returnValue;this._super=_super;this._superApply=_superApply;returnValue=value.apply(this,arguments);this._super=__super;this._superApply=__superApply;return returnValue;};})();});constructor.prototype=$.widget.extend(basePrototype,{widgetEventPrefix:existingConstructor?basePrototype.widgetEventPrefix||name:name},proxiedPrototype,{constructor:constructor,namespace:namespace,widgetName:name,widgetFullName:fullName});if(existingConstructor){$.each(existingConstructor._childConstructors,function(i,child){var childPrototype=child.prototype;$.widget(childPrototype.namespace+'.'+childPrototype.widgetName,constructor,child._proto);});delete existingConstructor._childConstructors;}else{base._childConstructors.push(constructor);}\n$.widget.bridge(name,constructor);return constructor;};$.widget.extend=function(target){var input=widgetSlice.call(arguments,1);var inputIndex=0;var inputLength=input.length;var key;var value;for(;inputIndex<inputLength;inputIndex++){for(key in input[inputIndex]){value=input[inputIndex][key];if(widgetHasOwnProperty.call(input[inputIndex],key)&&value!==undefined){if($.isPlainObject(value)){target[key]=$.isPlainObject(target[key])?$.widget.extend({},target[key],value):$.widget.extend({},value);}else{target[key]=value;}}}}\nreturn target;};$.widget.bridge=function(name,object){var fullName=object.prototype.widgetFullName||name;$.fn[name]=function(options){var isMethodCall=typeof options==='string';var args=widgetSlice.call(arguments,1);var returnValue=this;if(isMethodCall){if(!this.length&&options==='instance'){returnValue=undefined;}else{this.each(function(){var methodValue;var instance=$.data(this,fullName);if(options==='instance'){returnValue=instance;return false;}\nif(!instance){return $.error('cannot call methods on '+\nname+' prior to initialization; '+\"attempted to call method '\"+\noptions+\"'\");}\nif(!$.isFunction(instance[options])||options.charAt(0)==='_'){return $.error(\"no such method '\"+\noptions+\"' for \"+\nname+' widget instance');}\nmethodValue=instance[options].apply(instance,args);if(methodValue!==instance&&methodValue!==undefined){returnValue=methodValue&&methodValue.jquery?returnValue.pushStack(methodValue.get()):methodValue;return false;}});}}else{if(args.length){options=$.widget.extend.apply(null,[options].concat(args));}\nthis.each(function(){var instance=$.data(this,fullName);if(instance){instance.option(options||{});if(instance._init){instance._init();}}else{$.data(this,fullName,new object(options,this));}});}\nreturn returnValue;};};$.Widget=function(){};$.Widget._childConstructors=[];$.Widget.prototype={widgetName:'widget',widgetEventPrefix:'',defaultElement:'<div>',options:{classes:{},disabled:false,create:null},_createWidget:function(options,element){element=$(element||this.defaultElement||this)[0];this.element=$(element);this.uuid=widgetUuid++;this.eventNamespace='.'+this.widgetName+this.uuid;this.bindings=$();this.hoverable=$();this.focusable=$();this.classesElementLookup={};if(element!==this){$.data(element,this.widgetFullName,this);this._on(true,this.element,{remove:function(event){if(event.target===element){this.destroy();}}});this.document=$(element.style?element.ownerDocument:element.document||element);this.window=$(this.document[0].defaultView||this.document[0].parentWindow);}\nthis.options=$.widget.extend({},this.options,this._getCreateOptions(),options);this._create();if(this.options.disabled){this._setOptionDisabled(this.options.disabled);}\nthis._trigger('create',null,this._getCreateEventData());this._init();},_getCreateOptions:function(){return{};},_getCreateEventData:$.noop,_create:$.noop,_init:$.noop,destroy:function(){var that=this;this._destroy();$.each(this.classesElementLookup,function(key,value){that._removeClass(value,key);});this.element.off(this.eventNamespace).removeData(this.widgetFullName);this.widget().off(this.eventNamespace).removeAttr('aria-disabled');this.bindings.off(this.eventNamespace);},_destroy:$.noop,widget:function(){return this.element;},option:function(key,value){var options=key;var parts;var curOption;var i;if(arguments.length===0){return $.widget.extend({},this.options);}\nif(typeof key==='string'){options={};parts=key.split('.');key=parts.shift();if(parts.length){curOption=options[key]=$.widget.extend({},this.options[key]);for(i=0;i<parts.length-1;i++){curOption[parts[i]]=curOption[parts[i]]||{};curOption=curOption[parts[i]];}\nkey=parts.pop();if(arguments.length===1){return curOption[key]===undefined?null:curOption[key];}\ncurOption[key]=value;}else{if(arguments.length===1){return this.options[key]===undefined?null:this.options[key];}\noptions[key]=value;}}\nthis._setOptions(options);return this;},_setOptions:function(options){var key;for(key in options){this._setOption(key,options[key]);}\nreturn this;},_setOption:function(key,value){if(key==='classes'){this._setOptionClasses(value);}\nthis.options[key]=value;if(key==='disabled'){this._setOptionDisabled(value);}\nreturn this;},_setOptionClasses:function(value){var classKey,elements,currentElements;for(classKey in value){currentElements=this.classesElementLookup[classKey];if(value[classKey]===this.options.classes[classKey]||!currentElements||!currentElements.length){continue;}\nelements=$(currentElements.get());this._removeClass(currentElements,classKey);elements.addClass(this._classes({element:elements,keys:classKey,classes:value,add:true}));}},_setOptionDisabled:function(value){this._toggleClass(this.widget(),this.widgetFullName+'-disabled',null,!!value);if(value){this._removeClass(this.hoverable,null,'ui-state-hover');this._removeClass(this.focusable,null,'ui-state-focus');}},enable:function(){return this._setOptions({disabled:false});},disable:function(){return this._setOptions({disabled:true});},_classes:function(options){var full=[];var that=this;options=$.extend({element:this.element,classes:this.options.classes||{}},options);function bindRemoveEvent(){options.element.each(function(_,element){var isTracked=$.map(that.classesElementLookup,function(elements){return elements;}).some(function(elements){return elements.is(element);});if(!isTracked){that._on($(element),{remove:'_untrackClassesElement'});}});}\nfunction processClassString(classes,checkOption){var current,i;for(i=0;i<classes.length;i++){current=that.classesElementLookup[classes[i]]||$();if(options.add){bindRemoveEvent();current=$($.uniqueSort(current.get().concat(options.element.get())));}else{current=$(current.not(options.element).get());}\nthat.classesElementLookup[classes[i]]=current;full.push(classes[i]);if(checkOption&&options.classes[classes[i]]){full.push(options.classes[classes[i]]);}}}\nif(options.keys){processClassString(options.keys.match(/\\S+/g)||[],true);}\nif(options.extra){processClassString(options.extra.match(/\\S+/g)||[]);}\nreturn full.join(' ');},_untrackClassesElement:function(event){var that=this;$.each(that.classesElementLookup,function(key,value){if($.inArray(event.target,value)!==-1){that.classesElementLookup[key]=$(value.not(event.target).get());}});this._off($(event.target));},_removeClass:function(element,keys,extra){return this._toggleClass(element,keys,extra,false);},_addClass:function(element,keys,extra){return this._toggleClass(element,keys,extra,true);},_toggleClass:function(element,keys,extra,add){add=typeof add==='boolean'?add:extra;var shift=typeof element==='string'||element===null,options={extra:shift?keys:extra,keys:shift?element:keys,element:shift?this.element:element,add:add};options.element.toggleClass(this._classes(options),add);return this;},_on:function(suppressDisabledCheck,element,handlers){var delegateElement;var instance=this;if(typeof suppressDisabledCheck!=='boolean'){handlers=element;element=suppressDisabledCheck;suppressDisabledCheck=false;}\nif(!handlers){handlers=element;element=this.element;delegateElement=this.widget();}else{element=delegateElement=$(element);this.bindings=this.bindings.add(element);}\n$.each(handlers,function(event,handler){function handlerProxy(){if(!suppressDisabledCheck&&(instance.options.disabled===true||$(this).hasClass('ui-state-disabled'))){return;}\nreturn(typeof handler==='string'?instance[handler]:handler).apply(instance,arguments);}\nif(typeof handler!=='string'){handlerProxy.guid=handler.guid=handler.guid||handlerProxy.guid||$.guid++;}\nvar match=event.match(/^([\\w:-]*)\\s*(.*)$/);var eventName=match[1]+instance.eventNamespace;var selector=match[2];if(selector){delegateElement.on(eventName,selector,handlerProxy);}else{element.on(eventName,handlerProxy);}});},_off:function(element,eventName){eventName=(eventName||'').split(' ').join(this.eventNamespace+' ')+\nthis.eventNamespace;element.off(eventName);this.bindings=$(this.bindings.not(element).get());this.focusable=$(this.focusable.not(element).get());this.hoverable=$(this.hoverable.not(element).get());},_delay:function(handler,delay){var instance=this;function handlerProxy(){return(typeof handler==='string'?instance[handler]:handler).apply(instance,arguments);}\nreturn setTimeout(handlerProxy,delay||0);},_hoverable:function(element){this.hoverable=this.hoverable.add(element);this._on(element,{mouseenter:function(event){this._addClass($(event.currentTarget),null,'ui-state-hover');},mouseleave:function(event){this._removeClass($(event.currentTarget),null,'ui-state-hover');}});},_focusable:function(element){this.focusable=this.focusable.add(element);this._on(element,{focusin:function(event){this._addClass($(event.currentTarget),null,'ui-state-focus');},focusout:function(event){this._removeClass($(event.currentTarget),null,'ui-state-focus');}});},_trigger:function(type,event,data){var prop,orig;var callback=this.options[type];data=data||{};event=$.Event(event);event.type=(type===this.widgetEventPrefix?type:this.widgetEventPrefix+type).toLowerCase();event.target=this.element[0];orig=event.originalEvent;if(orig){for(prop in orig){if(!(prop in event)){event[prop]=orig[prop];}}}\nthis.element.trigger(event,data);return!(($.isFunction(callback)&&callback.apply(this.element[0],[event].concat(data))===false)||event.isDefaultPrevented());}};$.each({show:'fadeIn',hide:'fadeOut'},function(method,defaultEffect){$.Widget.prototype['_'+method]=function(element,options,callback){if(typeof options==='string'){options={effect:options};}\nvar hasOptions;var effectName=!options?method:options===true||typeof options==='number'?defaultEffect:options.effect||defaultEffect;options=options||{};if(typeof options==='number'){options={duration:options};}\nhasOptions=!$.isEmptyObject(options);options.complete=callback;if(options.delay){element.delay(options.delay);}\nif(hasOptions&&$.effects&&$.effects.effect[effectName]){element[method](options);}else if(effectName!==method&&element[effectName]){element[effectName](options.duration,options.easing,callback);}else{element.queue(function(next){$(this)[method]();if(callback){callback.call(element[0]);}\nnext();});}};});});","Mageplaza_Core/lib/fileUploader/vendor/blueimp-tmpl/js/tmpl.min.js":";(function($){'use strict'\nvar tmpl=function(str,data){var f=!/[^\\w\\-.:]/.test(str)?(tmpl.cache[str]=tmpl.cache[str]||tmpl(tmpl.load(str))):new Function(tmpl.arg+',tmpl','var _e=tmpl.encode'+\ntmpl.helper+\",_s='\"+\nstr.replace(tmpl.regexp,tmpl.func)+\"';return _s;\")\nreturn data?f(data,tmpl):function(data){return f(data,tmpl)}}\ntmpl.cache={}\ntmpl.load=function(id){return document.getElementById(id).innerHTML}\ntmpl.regexp=/([\\s'\\\\])(?!(?:[^{]|\\{(?!%))*%\\})|(?:\\{%(=|#)([\\s\\S]+?)%\\})|(\\{%)|(%\\})/g\ntmpl.func=function(s,p1,p2,p3,p4,p5){if(p1){return({'\\n':'\\\\n','\\r':'\\\\r','\\t':'\\\\t',' ':' '}[p1]||'\\\\'+p1)}\nif(p2){if(p2==='='){return\"'+_e(\"+p3+\")+'\"}\nreturn\"'+(\"+p3+\"==null?'':\"+p3+\")+'\"}\nif(p4){return\"';\"}\nif(p5){return\"_s+='\"}}\ntmpl.encReg=/[<>&\"'\\x00]/g\ntmpl.encMap={'<':'&lt;','>':'&gt;','&':'&amp;','\"':'&quot;',\"'\":'&#39;'}\ntmpl.encode=function(s){return(s==null?'':''+s).replace(tmpl.encReg,function(c){return tmpl.encMap[c]||''})}\ntmpl.arg='o'\ntmpl.helper=\",print=function(s,e){_s+=e?(s==null?'':s):_e(s);}\"+',include=function(s,d){_s+=tmpl(s,d);}'\nif(typeof define==='function'&&define.amd){define(function(){return tmpl})}else if(typeof module==='object'&&module.exports){module.exports=tmpl}else{$.tmpl=tmpl}})(this)","Mageplaza_Core/lib/fileUploader/vendor/blueimp-tmpl/js/runtime.min.js":";(function($){'use strict'\nvar tmpl=function(id,data){var f=tmpl.cache[id]\nreturn data?f(data,tmpl):function(data){return f(data,tmpl)}}\ntmpl.cache={}\ntmpl.encReg=/[<>&\"'\\x00]/g\ntmpl.encMap={'<':'&lt;','>':'&gt;','&':'&amp;','\"':'&quot;',\"'\":'&#39;'}\ntmpl.encode=function(s){return(s==null?'':''+s).replace(tmpl.encReg,function(c){return tmpl.encMap[c]||''})}\nif(typeof define==='function'&&define.amd){define(function(){return tmpl})}else if(typeof module==='object'&&module.exports){module.exports=tmpl}else{$.tmpl=tmpl}})(this)","Mageplaza_Core/lib/fileUploader/vendor/blueimp-tmpl/js/compile.min.js":"#!/usr/bin/env node;(function(){'use strict'\nvar path=require('path')\nvar tmpl=require(path.join(__dirname,'tmpl.js'))\nvar fs=require('fs')\nvar runtime=fs.readFileSync(path.join(__dirname,'runtime.js'),'utf8')\nvar regexp=/<script( id=\"([\\w-]+)\")? type=\"text\\/x-tmpl\"( id=\"([\\w-]+)\")?>([\\s\\S]+?)<\\/script>/gi\nvar helperRegexp=new RegExp(tmpl.helper.match(/\\w+(?=\\s*=\\s*function\\s*\\()/g).join('\\\\s*\\\\(|')+'\\\\s*\\\\(')\nvar list=[]\nvar code\ntmpl.print=function(str){var helper=helperRegexp.test(str)?tmpl.helper:''\nvar body=str.replace(tmpl.regexp,tmpl.func)\nif(helper||/_e\\s*\\(/.test(body)){helper='_e=tmpl.encode'+helper+','}\nreturn('function('+\ntmpl.arg+',tmpl){'+\n('var '+helper+\"_s='\"+body+\"';return _s;\").split(\"_s+='';\").join('')+'}')}\nprocess.argv.forEach(function(file,index){var listLength=list.length\nvar stats\nvar content\nvar result\nvar id\nif(index>1){stats=fs.statSync(file)\nif(!stats.isFile()){console.error(file+' is not a file.')\nreturn}\ncontent=fs.readFileSync(file,'utf8')\nwhile(true){result=regexp.exec(content)\nif(!result){break}\nid=result[2]||result[4]\nlist.push(\"'\"+id+\"':\"+tmpl.print(result[5]))}\nif(listLength===list.length){id=path.basename(file,path.extname(file))\nlist.push(\"'\"+id+\"':\"+tmpl.print(content))}}})\nif(!list.length){console.error('Missing input file.')\nreturn}\ncode=runtime.replace('{}','{'+list.join(',')+'}')\nconsole.log(code)})()","Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image-fetch.min.js":";(function(factory){'use strict'\nif(typeof define==='function'&&define.amd){define(['Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image'],factory)}else if(typeof module==='object'&&module.exports){factory(require('Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image'))}else{factory(window.loadImage)}})(function(loadImage){'use strict'\nvar global=loadImage.global\nif(global.fetch&&global.Request&&global.Response&&global.Response.prototype.blob){loadImage.fetchBlob=function(url,callback,options){function responseHandler(response){return response.blob()}\nif(global.Promise&&typeof callback!=='function'){return fetch(new Request(url,callback)).then(responseHandler)}\nfetch(new Request(url,options)).then(responseHandler).then(callback)\n['catch'](function(err){callback(null,err)})}}else if(global.XMLHttpRequest&&new XMLHttpRequest().responseType===''){loadImage.fetchBlob=function(url,callback,options){function executor(resolve,reject){options=options||{}\nvar req=new XMLHttpRequest()\nreq.open(options.method||'GET',url)\nif(options.headers){Object.keys(options.headers).forEach(function(key){req.setRequestHeader(key,options.headers[key])})}\nreq.withCredentials=options.credentials==='include'\nreq.responseType='blob'\nreq.onload=function(){resolve(req.response)}\nreq.onerror=req.onabort=req.ontimeout=function(err){if(resolve===reject){reject(null,err)}else{reject(err)}}\nreq.send(options.body)}\nif(global.Promise&&typeof callback!=='function'){options=callback\nreturn new Promise(executor)}\nreturn executor(callback,callback)}}})","Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image.min.js":";(function($){'use strict'\nvar urlAPI=$.URL||$.webkitURL\nfunction createObjectURL(blob){return urlAPI?urlAPI.createObjectURL(blob):false}\nfunction revokeObjectURL(url){return urlAPI?urlAPI.revokeObjectURL(url):false}\nfunction revokeHelper(url,options){if(url&&url.slice(0,5)==='blob:'&&!(options&&options.noRevoke)){revokeObjectURL(url)}}\nfunction readFile(file,onload,onerror,method){if(!$.FileReader)return false\nvar reader=new FileReader()\nreader.onload=function(){onload.call(reader,this.result)}\nif(onerror){reader.onabort=reader.onerror=function(){onerror.call(reader,this.error)}}\nvar readerMethod=reader[method||'readAsDataURL']\nif(readerMethod){readerMethod.call(reader,file)\nreturn reader}}\nfunction isInstanceOf(type,obj){return Object.prototype.toString.call(obj)==='[object '+type+']'}\nfunction loadImage(file,callback,options){function executor(resolve,reject){var img=document.createElement('img')\nvar url\nfunction resolveWrapper(img,data){if(resolve===reject){if(resolve)resolve(img,data)\nreturn}else if(img instanceof Error){reject(img)\nreturn}\ndata=data||{}\ndata.image=img\nresolve(data)}\nfunction fetchBlobCallback(blob,err){if(err&&$.console)console.log(err)\nif(blob&&isInstanceOf('Blob',blob)){file=blob\nurl=createObjectURL(file)}else{url=file\nif(options&&options.crossOrigin){img.crossOrigin=options.crossOrigin}}\nimg.src=url}\nimg.onerror=function(event){revokeHelper(url,options)\nif(reject)reject.call(img,event)}\nimg.onload=function(){revokeHelper(url,options)\nvar data={originalWidth:img.naturalWidth||img.width,originalHeight:img.naturalHeight||img.height}\ntry{loadImage.transform(img,options,resolveWrapper,file,data)}catch(error){if(reject)reject(error)}}\nif(typeof file==='string'){if(loadImage.requiresMetaData(options)){loadImage.fetchBlob(file,fetchBlobCallback,options)}else{fetchBlobCallback()}\nreturn img}else if(isInstanceOf('Blob',file)||isInstanceOf('File',file)){url=createObjectURL(file)\nif(url){img.src=url\nreturn img}\nreturn readFile(file,function(url){img.src=url},reject)}}\nif($.Promise&&typeof callback!=='function'){options=callback\nreturn new Promise(executor)}\nreturn executor(callback,callback)}\nloadImage.requiresMetaData=function(options){return options&&options.meta}\nloadImage.fetchBlob=function(url,callback){callback()}\nloadImage.transform=function(img,options,callback,file,data){callback(img,data)}\nloadImage.global=$\nloadImage.readFile=readFile\nloadImage.isInstanceOf=isInstanceOf\nloadImage.createObjectURL=createObjectURL\nloadImage.revokeObjectURL=revokeObjectURL\nif(typeof define==='function'&&define.amd){define(function(){return loadImage})}else if(typeof module==='object'&&module.exports){module.exports=loadImage}else{$.loadImage=loadImage}})((typeof window!=='undefined'&&window)||this)","Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image-exif.min.js":";(function(factory){'use strict'\nif(typeof define==='function'&&define.amd){define(['Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image','Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image-meta'],factory)}else if(typeof module==='object'&&module.exports){factory(require('Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image'),require('Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image-meta'))}else{factory(window.loadImage)}})(function(loadImage){'use strict'\nfunction ExifMap(tagCode){if(tagCode){Object.defineProperty(this,'map',{value:this.ifds[tagCode].map})\nObject.defineProperty(this,'tags',{value:(this.tags&&this.tags[tagCode])||{}})}}\nExifMap.prototype.map={Orientation:0x0112,Thumbnail:'ifd1',Blob:0x0201,Exif:0x8769,GPSInfo:0x8825,Interoperability:0xa005}\nExifMap.prototype.ifds={ifd1:{name:'Thumbnail',map:ExifMap.prototype.map},0x8769:{name:'Exif',map:{}},0x8825:{name:'GPSInfo',map:{}},0xa005:{name:'Interoperability',map:{}}}\nExifMap.prototype.get=function(id){return this[id]||this[this.map[id]]}\nfunction getExifThumbnail(dataView,offset,length){if(!length)return\nif(offset+length>dataView.byteLength){console.log('Invalid Exif data: Invalid thumbnail data.')\nreturn}\nreturn new Blob([loadImage.bufferSlice.call(dataView.buffer,offset,offset+length)],{type:'image/jpeg'})}\nvar ExifTagTypes={1:{getValue:function(dataView,dataOffset){return dataView.getUint8(dataOffset)},size:1},2:{getValue:function(dataView,dataOffset){return String.fromCharCode(dataView.getUint8(dataOffset))},size:1,ascii:true},3:{getValue:function(dataView,dataOffset,littleEndian){return dataView.getUint16(dataOffset,littleEndian)},size:2},4:{getValue:function(dataView,dataOffset,littleEndian){return dataView.getUint32(dataOffset,littleEndian)},size:4},5:{getValue:function(dataView,dataOffset,littleEndian){return(dataView.getUint32(dataOffset,littleEndian)/\ndataView.getUint32(dataOffset+4,littleEndian))},size:8},9:{getValue:function(dataView,dataOffset,littleEndian){return dataView.getInt32(dataOffset,littleEndian)},size:4},10:{getValue:function(dataView,dataOffset,littleEndian){return(dataView.getInt32(dataOffset,littleEndian)/\ndataView.getInt32(dataOffset+4,littleEndian))},size:8}}\nExifTagTypes[7]=ExifTagTypes[1]\nfunction getExifValue(dataView,tiffOffset,offset,type,length,littleEndian){var tagType=ExifTagTypes[type]\nvar tagSize\nvar dataOffset\nvar values\nvar i\nvar str\nvar c\nif(!tagType){console.log('Invalid Exif data: Invalid tag type.')\nreturn}\ntagSize=tagType.size*length\ndataOffset=tagSize>4?tiffOffset+dataView.getUint32(offset+8,littleEndian):offset+8\nif(dataOffset+tagSize>dataView.byteLength){console.log('Invalid Exif data: Invalid data offset.')\nreturn}\nif(length===1){return tagType.getValue(dataView,dataOffset,littleEndian)}\nvalues=[]\nfor(i=0;i<length;i+=1){values[i]=tagType.getValue(dataView,dataOffset+i*tagType.size,littleEndian)}\nif(tagType.ascii){str=''\nfor(i=0;i<values.length;i+=1){c=values[i]\nif(c==='\\u0000'){break}\nstr+=c}\nreturn str}\nreturn values}\nfunction shouldIncludeTag(includeTags,excludeTags,tagCode){return((!includeTags||includeTags[tagCode])&&(!excludeTags||excludeTags[tagCode]!==true))}\nfunction parseExifTags(dataView,tiffOffset,dirOffset,littleEndian,tags,tagOffsets,includeTags,excludeTags){var tagsNumber,dirEndOffset,i,tagOffset,tagNumber,tagValue\nif(dirOffset+6>dataView.byteLength){console.log('Invalid Exif data: Invalid directory offset.')\nreturn}\ntagsNumber=dataView.getUint16(dirOffset,littleEndian)\ndirEndOffset=dirOffset+2+12*tagsNumber\nif(dirEndOffset+4>dataView.byteLength){console.log('Invalid Exif data: Invalid directory size.')\nreturn}\nfor(i=0;i<tagsNumber;i+=1){tagOffset=dirOffset+2+12*i\ntagNumber=dataView.getUint16(tagOffset,littleEndian)\nif(!shouldIncludeTag(includeTags,excludeTags,tagNumber))continue\ntagValue=getExifValue(dataView,tiffOffset,tagOffset,dataView.getUint16(tagOffset+2,littleEndian),dataView.getUint32(tagOffset+4,littleEndian),littleEndian)\ntags[tagNumber]=tagValue\nif(tagOffsets){tagOffsets[tagNumber]=tagOffset}}\nreturn dataView.getUint32(dirEndOffset,littleEndian)}\nfunction parseExifIFD(data,tagCode,dataView,tiffOffset,littleEndian,includeTags,excludeTags){var dirOffset=data.exif[tagCode]\nif(dirOffset){data.exif[tagCode]=new ExifMap(tagCode)\nif(data.exifOffsets){data.exifOffsets[tagCode]=new ExifMap(tagCode)}\nparseExifTags(dataView,tiffOffset,tiffOffset+dirOffset,littleEndian,data.exif[tagCode],data.exifOffsets&&data.exifOffsets[tagCode],includeTags&&includeTags[tagCode],excludeTags&&excludeTags[tagCode])}}\nloadImage.parseExifData=function(dataView,offset,length,data,options){if(options.disableExif){return}\nvar includeTags=options.includeExifTags\nvar excludeTags=options.excludeExifTags||{0x8769:{0x927c:true}}\nvar tiffOffset=offset+10\nvar littleEndian\nvar dirOffset\nvar thumbnailIFD\nif(dataView.getUint32(offset+4)!==0x45786966){return}\nif(tiffOffset+8>dataView.byteLength){console.log('Invalid Exif data: Invalid segment size.')\nreturn}\nif(dataView.getUint16(offset+8)!==0x0000){console.log('Invalid Exif data: Missing byte alignment offset.')\nreturn}\nswitch(dataView.getUint16(tiffOffset)){case 0x4949:littleEndian=true\nbreak\ncase 0x4d4d:littleEndian=false\nbreak\ndefault:console.log('Invalid Exif data: Invalid byte alignment marker.')\nreturn}\nif(dataView.getUint16(tiffOffset+2,littleEndian)!==0x002a){console.log('Invalid Exif data: Missing TIFF marker.')\nreturn}\ndirOffset=dataView.getUint32(tiffOffset+4,littleEndian)\ndata.exif=new ExifMap()\nif(!options.disableExifOffsets){data.exifOffsets=new ExifMap()\ndata.exifTiffOffset=tiffOffset\ndata.exifLittleEndian=littleEndian}\ndirOffset=parseExifTags(dataView,tiffOffset,tiffOffset+dirOffset,littleEndian,data.exif,data.exifOffsets,includeTags,excludeTags)\nif(dirOffset&&shouldIncludeTag(includeTags,excludeTags,'ifd1')){data.exif.ifd1=dirOffset\nif(data.exifOffsets){data.exifOffsets.ifd1=tiffOffset+dirOffset}}\nObject.keys(data.exif.ifds).forEach(function(tagCode){parseExifIFD(data,tagCode,dataView,tiffOffset,littleEndian,includeTags,excludeTags)})\nthumbnailIFD=data.exif.ifd1\nif(thumbnailIFD&&thumbnailIFD[0x0201]){thumbnailIFD[0x0201]=getExifThumbnail(dataView,tiffOffset+thumbnailIFD[0x0201],thumbnailIFD[0x0202])}}\nloadImage.metaDataParsers.jpeg[0xffe1].push(loadImage.parseExifData)\nloadImage.exifWriters={0x0112:function(buffer,data,value){var orientationOffset=data.exifOffsets[0x0112]\nif(!orientationOffset)return buffer\nvar view=new DataView(buffer,orientationOffset+8,2)\nview.setUint16(0,value,data.exifLittleEndian)\nreturn buffer}}\nloadImage.writeExifData=function(buffer,data,id,value){loadImage.exifWriters[data.exif.map[id]](buffer,data,value)}\nloadImage.ExifMap=ExifMap})","Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image-iptc-map.min.js":";(function(factory){'use strict'\nif(typeof define==='function'&&define.amd){define(['Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image','Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image-iptc'],factory)}else if(typeof module==='object'&&module.exports){factory(require('Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image'),require('Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image-iptc'))}else{factory(window.loadImage)}})(function(loadImage){'use strict'\nvar IptcMapProto=loadImage.IptcMap.prototype\nIptcMapProto.tags={0:'ApplicationRecordVersion',3:'ObjectTypeReference',4:'ObjectAttributeReference',5:'ObjectName',7:'EditStatus',8:'EditorialUpdate',10:'Urgency',12:'SubjectReference',15:'Category',20:'SupplementalCategories',22:'FixtureIdentifier',25:'Keywords',26:'ContentLocationCode',27:'ContentLocationName',30:'ReleaseDate',35:'ReleaseTime',37:'ExpirationDate',38:'ExpirationTime',40:'SpecialInstructions',42:'ActionAdvised',45:'ReferenceService',47:'ReferenceDate',50:'ReferenceNumber',55:'DateCreated',60:'TimeCreated',62:'DigitalCreationDate',63:'DigitalCreationTime',65:'OriginatingProgram',70:'ProgramVersion',75:'ObjectCycle',80:'Byline',85:'BylineTitle',90:'City',92:'Sublocation',95:'State',100:'CountryCode',101:'Country',103:'OriginalTransmissionReference',105:'Headline',110:'Credit',115:'Source',116:'CopyrightNotice',118:'Contact',120:'Caption',121:'LocalCaption',122:'Writer',125:'RasterizedCaption',130:'ImageType',131:'ImageOrientation',135:'LanguageIdentifier',150:'AudioType',151:'AudioSamplingRate',152:'AudioSamplingResolution',153:'AudioDuration',154:'AudioOutcue',184:'JobID',185:'MasterDocumentID',186:'ShortDocumentID',187:'UniqueDocumentID',188:'OwnerID',200:'ObjectPreviewFileFormat',201:'ObjectPreviewFileVersion',202:'ObjectPreviewData',221:'Prefs',225:'ClassifyState',228:'SimilarityIndex',230:'DocumentNotes',231:'DocumentHistory',232:'ExifCameraInfo',255:'CatalogSets'}\nIptcMapProto.stringValues={10:{0:'0 (reserved)',1:'1 (most urgent)',2:'2',3:'3',4:'4',5:'5 (normal urgency)',6:'6',7:'7',8:'8 (least urgent)',9:'9 (user-defined priority)'},75:{a:'Morning',b:'Both Morning and Evening',p:'Evening'},131:{L:'Landscape',P:'Portrait',S:'Square'}}\nIptcMapProto.getText=function(id){var value=this.get(id)\nvar tagCode=this.map[id]\nvar stringValue=this.stringValues[tagCode]\nif(stringValue)return stringValue[value]\nreturn String(value)}\nIptcMapProto.getAll=function(){var map={}\nvar prop\nvar name\nfor(prop in this){if(Object.prototype.hasOwnProperty.call(this,prop)){name=this.tags[prop]\nif(name)map[name]=this.getText(name)}}\nreturn map}\nIptcMapProto.getName=function(tagCode){return this.tags[tagCode]};(function(){var tags=IptcMapProto.tags\nvar map=IptcMapProto.map||{}\nvar prop\nfor(prop in tags){if(Object.prototype.hasOwnProperty.call(tags,prop)){map[tags[prop]]=Number(prop)}}})()})","Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image-iptc.min.js":";(function(factory){'use strict'\nif(typeof define==='function'&&define.amd){define(['Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image','Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image-meta'],factory)}else if(typeof module==='object'&&module.exports){factory(require('Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image'),require('Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image-meta'))}else{factory(window.loadImage)}})(function(loadImage){'use strict'\nfunction IptcMap(){}\nIptcMap.prototype.map={ObjectName:5}\nIptcMap.prototype.types={0:'Uint16',200:'Uint16',201:'Uint16',202:'binary'}\nIptcMap.prototype.get=function(id){return this[id]||this[this.map[id]]}\nfunction getStringValue(dataView,offset,length){var outstr=''\nvar end=offset+length\nfor(var n=offset;n<end;n+=1){outstr+=String.fromCharCode(dataView.getUint8(n))}\nreturn outstr}\nfunction getTagValue(tagCode,map,dataView,offset,length){if(map.types[tagCode]==='binary'){return new Blob([dataView.buffer.slice(offset,offset+length)])}\nif(map.types[tagCode]==='Uint16'){return dataView.getUint16(offset)}\nreturn getStringValue(dataView,offset,length)}\nfunction combineTagValues(value,newValue){if(value===undefined)return newValue\nif(value instanceof Array){value.push(newValue)\nreturn value}\nreturn[value,newValue]}\nfunction parseIptcTags(dataView,segmentOffset,segmentLength,data,includeTags,excludeTags){var value,tagSize,tagCode\nvar segmentEnd=segmentOffset+segmentLength\nvar offset=segmentOffset\nwhile(offset<segmentEnd){if(dataView.getUint8(offset)===0x1c&&dataView.getUint8(offset+1)===0x02){tagCode=dataView.getUint8(offset+2)\nif((!includeTags||includeTags[tagCode])&&(!excludeTags||!excludeTags[tagCode])){tagSize=dataView.getInt16(offset+3)\nvalue=getTagValue(tagCode,data.iptc,dataView,offset+5,tagSize)\ndata.iptc[tagCode]=combineTagValues(data.iptc[tagCode],value)\nif(data.iptcOffsets){data.iptcOffsets[tagCode]=offset}}}\noffset+=1}}\nfunction isSegmentStart(dataView,offset){return(dataView.getUint32(offset)===0x3842494d&&dataView.getUint16(offset+4)===0x0404)}\nfunction getHeaderLength(dataView,offset){var length=dataView.getUint8(offset+7)\nif(length%2!==0)length+=1\nif(length===0){length=4}\nreturn length}\nloadImage.parseIptcData=function(dataView,offset,length,data,options){if(options.disableIptc){return}\nvar markerLength=offset+length\nwhile(offset+8<markerLength){if(isSegmentStart(dataView,offset)){var headerLength=getHeaderLength(dataView,offset)\nvar segmentOffset=offset+8+headerLength\nif(segmentOffset>markerLength){console.log('Invalid IPTC data: Invalid segment offset.')\nbreak}\nvar segmentLength=dataView.getUint16(offset+6+headerLength)\nif(offset+segmentLength>markerLength){console.log('Invalid IPTC data: Invalid segment size.')\nbreak}\ndata.iptc=new IptcMap()\nif(!options.disableIptcOffsets){data.iptcOffsets=new IptcMap()}\nparseIptcTags(dataView,segmentOffset,segmentLength,data,options.includeIptcTags,options.excludeIptcTags||{202:true})\nreturn}\noffset+=1}}\nloadImage.metaDataParsers.jpeg[0xffed].push(loadImage.parseIptcData)\nloadImage.IptcMap=IptcMap})","Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image-orientation.min.js":";(function(factory){'use strict'\nif(typeof define==='function'&&define.amd){define(['Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image','Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image-scale','Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image-meta'],factory)}else if(typeof module==='object'&&module.exports){factory(require('Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image'),require('Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image-scale'),require('Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image-meta'))}else{factory(window.loadImage)}})(function(loadImage){'use strict'\nvar originalTransform=loadImage.transform\nvar originalRequiresCanvas=loadImage.requiresCanvas\nvar originalRequiresMetaData=loadImage.requiresMetaData\nvar originalTransformCoordinates=loadImage.transformCoordinates\nvar originalGetTransformedOptions=loadImage.getTransformedOptions;(function($){if(!$.global.document)return\nvar testImageURL='data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAA'+'AAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBA'+'QEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQE'+'BAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAIAAwMBEQACEQEDEQH/x'+'ABRAAEAAAAAAAAAAAAAAAAAAAAKEAEBAQADAQEAAAAAAAAAAAAGBQQDCAkCBwEBAAAAAAA'+'AAAAAAAAAAAAAABEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8AG8T9NfSMEVMhQ'+'voP3fFiRZ+MTHDifa/95OFSZU5OzRzxkyejv8ciEfhSceSXGjS8eSdLnZc2HDm4M3BxcXw'+'H/9k='\nvar img=document.createElement('img')\nimg.onload=function(){$.orientation=img.width===2&&img.height===3\nif($.orientation){var canvas=$.createCanvas(1,1,true)\nvar ctx=canvas.getContext('2d')\nctx.drawImage(img,1,1,1,1,0,0,1,1)\n$.orientationCropBug=ctx.getImageData(0,0,1,1).data.toString()!=='255,255,255,255'}}\nimg.src=testImageURL})(loadImage)\nfunction requiresCanvasOrientation(options,withMetaData){var orientation=options&&options.orientation\nreturn((orientation===true&&!loadImage.orientation)||(orientation===1&&loadImage.orientation)||((!withMetaData||loadImage.orientation)&&orientation>1&&orientation<9))}\nfunction requiresOrientationChange(orientation,autoOrientation){return(orientation!==autoOrientation&&((orientation===1&&autoOrientation>1&&autoOrientation<9)||(orientation>1&&orientation<9)))}\nfunction requiresRot180(orientation,autoOrientation){if(autoOrientation>1&&autoOrientation<9){switch(orientation){case 2:case 4:return autoOrientation>4\ncase 5:case 7:return autoOrientation%2===0\ncase 6:case 8:return(autoOrientation===2||autoOrientation===4||autoOrientation===5||autoOrientation===7)}}\nreturn false}\nloadImage.requiresCanvas=function(options){return(requiresCanvasOrientation(options)||originalRequiresCanvas.call(loadImage,options))}\nloadImage.requiresMetaData=function(options){return(requiresCanvasOrientation(options,true)||originalRequiresMetaData.call(loadImage,options))}\nloadImage.transform=function(img,options,callback,file,data){originalTransform.call(loadImage,img,options,function(img,data){if(data){var autoOrientation=loadImage.orientation&&data.exif&&data.exif.get('Orientation')\nif(autoOrientation>4&&autoOrientation<9){var originalWidth=data.originalWidth\nvar originalHeight=data.originalHeight\ndata.originalWidth=originalHeight\ndata.originalHeight=originalWidth}}\ncallback(img,data)},file,data)}\nloadImage.getTransformedOptions=function(img,opts,data){var options=originalGetTransformedOptions.call(loadImage,img,opts)\nvar exifOrientation=data.exif&&data.exif.get('Orientation')\nvar orientation=options.orientation\nvar autoOrientation=loadImage.orientation&&exifOrientation\nif(orientation===true)orientation=exifOrientation\nif(!requiresOrientationChange(orientation,autoOrientation)){return options}\nvar top=options.top\nvar right=options.right\nvar bottom=options.bottom\nvar left=options.left\nvar newOptions={}\nfor(var i in options){if(Object.prototype.hasOwnProperty.call(options,i)){newOptions[i]=options[i]}}\nnewOptions.orientation=orientation\nif((orientation>4&&!(autoOrientation>4))||(orientation<5&&autoOrientation>4)){newOptions.maxWidth=options.maxHeight\nnewOptions.maxHeight=options.maxWidth\nnewOptions.minWidth=options.minHeight\nnewOptions.minHeight=options.minWidth\nnewOptions.sourceWidth=options.sourceHeight\nnewOptions.sourceHeight=options.sourceWidth}\nif(autoOrientation>1){switch(autoOrientation){case 2:right=options.left\nleft=options.right\nbreak\ncase 3:top=options.bottom\nright=options.left\nbottom=options.top\nleft=options.right\nbreak\ncase 4:top=options.bottom\nbottom=options.top\nbreak\ncase 5:top=options.left\nright=options.bottom\nbottom=options.right\nleft=options.top\nbreak\ncase 6:top=options.left\nright=options.top\nbottom=options.right\nleft=options.bottom\nbreak\ncase 7:top=options.right\nright=options.top\nbottom=options.left\nleft=options.bottom\nbreak\ncase 8:top=options.right\nright=options.bottom\nbottom=options.left\nleft=options.top\nbreak}\nif(requiresRot180(orientation,autoOrientation)){var tmpTop=top\nvar tmpRight=right\ntop=bottom\nright=left\nbottom=tmpTop\nleft=tmpRight}}\nnewOptions.top=top\nnewOptions.right=right\nnewOptions.bottom=bottom\nnewOptions.left=left\nswitch(orientation){case 2:newOptions.right=left\nnewOptions.left=right\nbreak\ncase 3:newOptions.top=bottom\nnewOptions.right=left\nnewOptions.bottom=top\nnewOptions.left=right\nbreak\ncase 4:newOptions.top=bottom\nnewOptions.bottom=top\nbreak\ncase 5:newOptions.top=left\nnewOptions.right=bottom\nnewOptions.bottom=right\nnewOptions.left=top\nbreak\ncase 6:newOptions.top=right\nnewOptions.right=bottom\nnewOptions.bottom=left\nnewOptions.left=top\nbreak\ncase 7:newOptions.top=right\nnewOptions.right=top\nnewOptions.bottom=left\nnewOptions.left=bottom\nbreak\ncase 8:newOptions.top=left\nnewOptions.right=top\nnewOptions.bottom=right\nnewOptions.left=bottom\nbreak}\nreturn newOptions}\nloadImage.transformCoordinates=function(canvas,options,data){originalTransformCoordinates.call(loadImage,canvas,options,data)\nvar orientation=options.orientation\nvar autoOrientation=loadImage.orientation&&data.exif&&data.exif.get('Orientation')\nif(!requiresOrientationChange(orientation,autoOrientation)){return}\nvar ctx=canvas.getContext('2d')\nvar width=canvas.width\nvar height=canvas.height\nvar sourceWidth=width\nvar sourceHeight=height\nif((orientation>4&&!(autoOrientation>4))||(orientation<5&&autoOrientation>4)){canvas.width=height\ncanvas.height=width}\nif(orientation>4){sourceWidth=height\nsourceHeight=width}\nswitch(autoOrientation){case 2:ctx.translate(sourceWidth,0)\nctx.scale(-1,1)\nbreak\ncase 3:ctx.translate(sourceWidth,sourceHeight)\nctx.rotate(Math.PI)\nbreak\ncase 4:ctx.translate(0,sourceHeight)\nctx.scale(1,-1)\nbreak\ncase 5:ctx.rotate(-0.5*Math.PI)\nctx.scale(-1,1)\nbreak\ncase 6:ctx.rotate(-0.5*Math.PI)\nctx.translate(-sourceWidth,0)\nbreak\ncase 7:ctx.rotate(-0.5*Math.PI)\nctx.translate(-sourceWidth,sourceHeight)\nctx.scale(1,-1)\nbreak\ncase 8:ctx.rotate(0.5*Math.PI)\nctx.translate(0,-sourceHeight)\nbreak}\nif(requiresRot180(orientation,autoOrientation)){ctx.translate(sourceWidth,sourceHeight)\nctx.rotate(Math.PI)}\nswitch(orientation){case 2:ctx.translate(width,0)\nctx.scale(-1,1)\nbreak\ncase 3:ctx.translate(width,height)\nctx.rotate(Math.PI)\nbreak\ncase 4:ctx.translate(0,height)\nctx.scale(1,-1)\nbreak\ncase 5:ctx.rotate(0.5*Math.PI)\nctx.scale(1,-1)\nbreak\ncase 6:ctx.rotate(0.5*Math.PI)\nctx.translate(0,-height)\nbreak\ncase 7:ctx.rotate(0.5*Math.PI)\nctx.translate(width,-height)\nctx.scale(-1,1)\nbreak\ncase 8:ctx.rotate(-0.5*Math.PI)\nctx.translate(-width,0)\nbreak}}})","Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image-meta.min.js":";(function(factory){'use strict'\nif(typeof define==='function'&&define.amd){define(['Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image'],factory)}else if(typeof module==='object'&&module.exports){factory(require('Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image'))}else{factory(window.loadImage)}})(function(loadImage){'use strict'\nvar global=loadImage.global\nvar originalTransform=loadImage.transform\nvar blobSlice=global.Blob&&(Blob.prototype.slice||Blob.prototype.webkitSlice||Blob.prototype.mozSlice)\nvar bufferSlice=(global.ArrayBuffer&&ArrayBuffer.prototype.slice)||function(begin,end){end=end||this.byteLength-begin\nvar arr1=new Uint8Array(this,begin,end)\nvar arr2=new Uint8Array(end)\narr2.set(arr1)\nreturn arr2.buffer}\nvar metaDataParsers={jpeg:{0xffe1:[],0xffed:[]}}\nfunction parseMetaData(file,callback,options,data){var that=this\nfunction executor(resolve,reject){if(!(global.DataView&&blobSlice&&file&&file.size>=12&&file.type==='image/jpeg')){return resolve(data)}\nvar maxMetaDataSize=options.maxMetaDataSize||262144\nif(!loadImage.readFile(blobSlice.call(file,0,maxMetaDataSize),function(buffer){var dataView=new DataView(buffer)\nif(dataView.getUint16(0)!==0xffd8){return reject(new Error('Invalid JPEG file: Missing JPEG marker.'))}\nvar offset=2\nvar maxOffset=dataView.byteLength-4\nvar headLength=offset\nvar markerBytes\nvar markerLength\nvar parsers\nvar i\nwhile(offset<maxOffset){markerBytes=dataView.getUint16(offset)\nif((markerBytes>=0xffe0&&markerBytes<=0xffef)||markerBytes===0xfffe){markerLength=dataView.getUint16(offset+2)+2\nif(offset+markerLength>dataView.byteLength){console.log('Invalid JPEG metadata: Invalid segment size.')\nbreak}\nparsers=metaDataParsers.jpeg[markerBytes]\nif(parsers&&!options.disableMetaDataParsers){for(i=0;i<parsers.length;i+=1){parsers[i].call(that,dataView,offset,markerLength,data,options)}}\noffset+=markerLength\nheadLength=offset}else{break}}\nif(!options.disableImageHead&&headLength>6){data.imageHead=bufferSlice.call(buffer,0,headLength)}\nresolve(data)},reject,'readAsArrayBuffer')){resolve(data)}}\noptions=options||{}\nif(global.Promise&&typeof callback!=='function'){options=callback||{}\ndata=options\nreturn new Promise(executor)}\ndata=data||{}\nreturn executor(callback,callback)}\nfunction replaceJPEGHead(blob,oldHead,newHead){if(!blob||!oldHead||!newHead)return null\nreturn new Blob([newHead,blobSlice.call(blob,oldHead.byteLength)],{type:'image/jpeg'})}\nfunction replaceHead(blob,head,callback){var options={maxMetaDataSize:256,disableMetaDataParsers:true}\nif(!callback&&global.Promise){return parseMetaData(blob,options).then(function(data){return replaceJPEGHead(blob,data.imageHead,head)})}\nparseMetaData(blob,function(data){callback(replaceJPEGHead(blob,data.imageHead,head))},options)}\nloadImage.transform=function(img,options,callback,file,data){if(loadImage.requiresMetaData(options)){data=data||{}\nparseMetaData(file,function(result){if(result!==data){if(global.console)console.log(result)\nresult=data}\noriginalTransform.call(loadImage,img,options,callback,file,result)},options,data)}else{originalTransform.apply(loadImage,arguments)}}\nloadImage.blobSlice=blobSlice\nloadImage.bufferSlice=bufferSlice\nloadImage.replaceHead=replaceHead\nloadImage.parseMetaData=parseMetaData\nloadImage.metaDataParsers=metaDataParsers})","Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image-exif-map.min.js":";(function(factory){'use strict'\nif(typeof define==='function'&&define.amd){define(['Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image','Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image-exif'],factory)}else if(typeof module==='object'&&module.exports){factory(require('Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image'),require('Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image-exif'))}else{factory(window.loadImage)}})(function(loadImage){'use strict'\nvar ExifMapProto=loadImage.ExifMap.prototype\nExifMapProto.tags={0x0100:'ImageWidth',0x0101:'ImageHeight',0x0102:'BitsPerSample',0x0103:'Compression',0x0106:'PhotometricInterpretation',0x0112:'Orientation',0x0115:'SamplesPerPixel',0x011c:'PlanarConfiguration',0x0212:'YCbCrSubSampling',0x0213:'YCbCrPositioning',0x011a:'XResolution',0x011b:'YResolution',0x0128:'ResolutionUnit',0x0111:'StripOffsets',0x0116:'RowsPerStrip',0x0117:'StripByteCounts',0x0201:'JPEGInterchangeFormat',0x0202:'JPEGInterchangeFormatLength',0x012d:'TransferFunction',0x013e:'WhitePoint',0x013f:'PrimaryChromaticities',0x0211:'YCbCrCoefficients',0x0214:'ReferenceBlackWhite',0x0132:'DateTime',0x010e:'ImageDescription',0x010f:'Make',0x0110:'Model',0x0131:'Software',0x013b:'Artist',0x8298:'Copyright',0x8769:{0x9000:'ExifVersion',0xa000:'FlashpixVersion',0xa001:'ColorSpace',0xa002:'PixelXDimension',0xa003:'PixelYDimension',0xa500:'Gamma',0x9101:'ComponentsConfiguration',0x9102:'CompressedBitsPerPixel',0x927c:'MakerNote',0x9286:'UserComment',0xa004:'RelatedSoundFile',0x9003:'DateTimeOriginal',0x9004:'DateTimeDigitized',0x9010:'OffsetTime',0x9011:'OffsetTimeOriginal',0x9012:'OffsetTimeDigitized',0x9290:'SubSecTime',0x9291:'SubSecTimeOriginal',0x9292:'SubSecTimeDigitized',0x829a:'ExposureTime',0x829d:'FNumber',0x8822:'ExposureProgram',0x8824:'SpectralSensitivity',0x8827:'PhotographicSensitivity',0x8828:'OECF',0x8830:'SensitivityType',0x8831:'StandardOutputSensitivity',0x8832:'RecommendedExposureIndex',0x8833:'ISOSpeed',0x8834:'ISOSpeedLatitudeyyy',0x8835:'ISOSpeedLatitudezzz',0x9201:'ShutterSpeedValue',0x9202:'ApertureValue',0x9203:'BrightnessValue',0x9204:'ExposureBias',0x9205:'MaxApertureValue',0x9206:'SubjectDistance',0x9207:'MeteringMode',0x9208:'LightSource',0x9209:'Flash',0x9214:'SubjectArea',0x920a:'FocalLength',0xa20b:'FlashEnergy',0xa20c:'SpatialFrequencyResponse',0xa20e:'FocalPlaneXResolution',0xa20f:'FocalPlaneYResolution',0xa210:'FocalPlaneResolutionUnit',0xa214:'SubjectLocation',0xa215:'ExposureIndex',0xa217:'SensingMethod',0xa300:'FileSource',0xa301:'SceneType',0xa302:'CFAPattern',0xa401:'CustomRendered',0xa402:'ExposureMode',0xa403:'WhiteBalance',0xa404:'DigitalZoomRatio',0xa405:'FocalLengthIn35mmFilm',0xa406:'SceneCaptureType',0xa407:'GainControl',0xa408:'Contrast',0xa409:'Saturation',0xa40a:'Sharpness',0xa40b:'DeviceSettingDescription',0xa40c:'SubjectDistanceRange',0xa420:'ImageUniqueID',0xa430:'CameraOwnerName',0xa431:'BodySerialNumber',0xa432:'LensSpecification',0xa433:'LensMake',0xa434:'LensModel',0xa435:'LensSerialNumber'},0x8825:{0x0000:'GPSVersionID',0x0001:'GPSLatitudeRef',0x0002:'GPSLatitude',0x0003:'GPSLongitudeRef',0x0004:'GPSLongitude',0x0005:'GPSAltitudeRef',0x0006:'GPSAltitude',0x0007:'GPSTimeStamp',0x0008:'GPSSatellites',0x0009:'GPSStatus',0x000a:'GPSMeasureMode',0x000b:'GPSDOP',0x000c:'GPSSpeedRef',0x000d:'GPSSpeed',0x000e:'GPSTrackRef',0x000f:'GPSTrack',0x0010:'GPSImgDirectionRef',0x0011:'GPSImgDirection',0x0012:'GPSMapDatum',0x0013:'GPSDestLatitudeRef',0x0014:'GPSDestLatitude',0x0015:'GPSDestLongitudeRef',0x0016:'GPSDestLongitude',0x0017:'GPSDestBearingRef',0x0018:'GPSDestBearing',0x0019:'GPSDestDistanceRef',0x001a:'GPSDestDistance',0x001b:'GPSProcessingMethod',0x001c:'GPSAreaInformation',0x001d:'GPSDateStamp',0x001e:'GPSDifferential',0x001f:'GPSHPositioningError'},0xa005:{0x0001:'InteroperabilityIndex'}}\nExifMapProto.tags.ifd1=ExifMapProto.tags\nExifMapProto.stringValues={ExposureProgram:{0:'Undefined',1:'Manual',2:'Normal program',3:'Aperture priority',4:'Shutter priority',5:'Creative program',6:'Action program',7:'Portrait mode',8:'Landscape mode'},MeteringMode:{0:'Unknown',1:'Average',2:'CenterWeightedAverage',3:'Spot',4:'MultiSpot',5:'Pattern',6:'Partial',255:'Other'},LightSource:{0:'Unknown',1:'Daylight',2:'Fluorescent',3:'Tungsten (incandescent light)',4:'Flash',9:'Fine weather',10:'Cloudy weather',11:'Shade',12:'Daylight fluorescent (D 5700 - 7100K)',13:'Day white fluorescent (N 4600 - 5400K)',14:'Cool white fluorescent (W 3900 - 4500K)',15:'White fluorescent (WW 3200 - 3700K)',17:'Standard light A',18:'Standard light B',19:'Standard light C',20:'D55',21:'D65',22:'D75',23:'D50',24:'ISO studio tungsten',255:'Other'},Flash:{0x0000:'Flash did not fire',0x0001:'Flash fired',0x0005:'Strobe return light not detected',0x0007:'Strobe return light detected',0x0009:'Flash fired, compulsory flash mode',0x000d:'Flash fired, compulsory flash mode, return light not detected',0x000f:'Flash fired, compulsory flash mode, return light detected',0x0010:'Flash did not fire, compulsory flash mode',0x0018:'Flash did not fire, auto mode',0x0019:'Flash fired, auto mode',0x001d:'Flash fired, auto mode, return light not detected',0x001f:'Flash fired, auto mode, return light detected',0x0020:'No flash function',0x0041:'Flash fired, red-eye reduction mode',0x0045:'Flash fired, red-eye reduction mode, return light not detected',0x0047:'Flash fired, red-eye reduction mode, return light detected',0x0049:'Flash fired, compulsory flash mode, red-eye reduction mode',0x004d:'Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected',0x004f:'Flash fired, compulsory flash mode, red-eye reduction mode, return light detected',0x0059:'Flash fired, auto mode, red-eye reduction mode',0x005d:'Flash fired, auto mode, return light not detected, red-eye reduction mode',0x005f:'Flash fired, auto mode, return light detected, red-eye reduction mode'},SensingMethod:{1:'Undefined',2:'One-chip color area sensor',3:'Two-chip color area sensor',4:'Three-chip color area sensor',5:'Color sequential area sensor',7:'Trilinear sensor',8:'Color sequential linear sensor'},SceneCaptureType:{0:'Standard',1:'Landscape',2:'Portrait',3:'Night scene'},SceneType:{1:'Directly photographed'},CustomRendered:{0:'Normal process',1:'Custom process'},WhiteBalance:{0:'Auto white balance',1:'Manual white balance'},GainControl:{0:'None',1:'Low gain up',2:'High gain up',3:'Low gain down',4:'High gain down'},Contrast:{0:'Normal',1:'Soft',2:'Hard'},Saturation:{0:'Normal',1:'Low saturation',2:'High saturation'},Sharpness:{0:'Normal',1:'Soft',2:'Hard'},SubjectDistanceRange:{0:'Unknown',1:'Macro',2:'Close view',3:'Distant view'},FileSource:{3:'DSC'},ComponentsConfiguration:{0:'',1:'Y',2:'Cb',3:'Cr',4:'R',5:'G',6:'B'},Orientation:{1:'Original',2:'Horizontal flip',3:'Rotate 180\u00b0 CCW',4:'Vertical flip',5:'Vertical flip + Rotate 90\u00b0 CW',6:'Rotate 90\u00b0 CW',7:'Horizontal flip + Rotate 90\u00b0 CW',8:'Rotate 90\u00b0 CCW'}}\nExifMapProto.getText=function(name){var value=this.get(name)\nswitch(name){case'LightSource':case'Flash':case'MeteringMode':case'ExposureProgram':case'SensingMethod':case'SceneCaptureType':case'SceneType':case'CustomRendered':case'WhiteBalance':case'GainControl':case'Contrast':case'Saturation':case'Sharpness':case'SubjectDistanceRange':case'FileSource':case'Orientation':return this.stringValues[name][value]\ncase'ExifVersion':case'FlashpixVersion':if(!value)return\nreturn String.fromCharCode(value[0],value[1],value[2],value[3])\ncase'ComponentsConfiguration':if(!value)return\nreturn(this.stringValues[name][value[0]]+\nthis.stringValues[name][value[1]]+\nthis.stringValues[name][value[2]]+\nthis.stringValues[name][value[3]])\ncase'GPSVersionID':if(!value)return\nreturn value[0]+'.'+value[1]+'.'+value[2]+'.'+value[3]}\nreturn String(value)}\nExifMapProto.getAll=function(){var map={}\nvar prop\nvar obj\nvar name\nfor(prop in this){if(Object.prototype.hasOwnProperty.call(this,prop)){obj=this[prop]\nif(obj&&obj.getAll){map[this.ifds[prop].name]=obj.getAll()}else{name=this.tags[prop]\nif(name)map[name]=this.getText(name)}}}\nreturn map}\nExifMapProto.getName=function(tagCode){var name=this.tags[tagCode]\nif(typeof name==='object')return this.ifds[tagCode].name\nreturn name};(function(){var tags=ExifMapProto.tags\nvar prop\nvar ifd\nvar subTags\nfor(prop in tags){if(Object.prototype.hasOwnProperty.call(tags,prop)){ifd=ExifMapProto.ifds[prop]\nif(ifd){subTags=tags[prop]\nfor(prop in subTags){if(Object.prototype.hasOwnProperty.call(subTags,prop)){ifd.map[subTags[prop]]=Number(prop)}}}else{ExifMapProto.map[tags[prop]]=Number(prop)}}}})()})","Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image-scale.min.js":";(function(factory){'use strict'\nif(typeof define==='function'&&define.amd){define(['Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image'],factory)}else if(typeof module==='object'&&module.exports){factory(require('Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image'))}else{factory(window.loadImage)}})(function(loadImage){'use strict'\nvar originalTransform=loadImage.transform\nloadImage.createCanvas=function(width,height,offscreen){if(offscreen&&loadImage.global.OffscreenCanvas){return new OffscreenCanvas(width,height)}\nvar canvas=document.createElement('canvas')\ncanvas.width=width\ncanvas.height=height\nreturn canvas}\nloadImage.transform=function(img,options,callback,file,data){originalTransform.call(loadImage,loadImage.scale(img,options,data),options,callback,file,data)}\nloadImage.transformCoordinates=function(){}\nloadImage.getTransformedOptions=function(img,options){var aspectRatio=options.aspectRatio\nvar newOptions\nvar i\nvar width\nvar height\nif(!aspectRatio){return options}\nnewOptions={}\nfor(i in options){if(Object.prototype.hasOwnProperty.call(options,i)){newOptions[i]=options[i]}}\nnewOptions.crop=true\nwidth=img.naturalWidth||img.width\nheight=img.naturalHeight||img.height\nif(width / height>aspectRatio){newOptions.maxWidth=height*aspectRatio\nnewOptions.maxHeight=height}else{newOptions.maxWidth=width\nnewOptions.maxHeight=width / aspectRatio}\nreturn newOptions}\nloadImage.drawImage=function(img,canvas,sourceX,sourceY,sourceWidth,sourceHeight,destWidth,destHeight,options){var ctx=canvas.getContext('2d')\nif(options.imageSmoothingEnabled===false){ctx.msImageSmoothingEnabled=false\nctx.imageSmoothingEnabled=false}else if(options.imageSmoothingQuality){ctx.imageSmoothingQuality=options.imageSmoothingQuality}\nctx.drawImage(img,sourceX,sourceY,sourceWidth,sourceHeight,0,0,destWidth,destHeight)\nreturn ctx}\nloadImage.requiresCanvas=function(options){return options.canvas||options.crop||!!options.aspectRatio}\nloadImage.scale=function(img,options,data){options=options||{}\ndata=data||{}\nvar useCanvas=img.getContext||(loadImage.requiresCanvas(options)&&!!loadImage.global.HTMLCanvasElement)\nvar width=img.naturalWidth||img.width\nvar height=img.naturalHeight||img.height\nvar destWidth=width\nvar destHeight=height\nvar maxWidth\nvar maxHeight\nvar minWidth\nvar minHeight\nvar sourceWidth\nvar sourceHeight\nvar sourceX\nvar sourceY\nvar pixelRatio\nvar downsamplingRatio\nvar tmp\nvar canvas\nfunction scaleUp(){var scale=Math.max((minWidth||destWidth)/ destWidth,(minHeight||destHeight)/ destHeight)\nif(scale>1){destWidth*=scale\ndestHeight*=scale}}\nfunction scaleDown(){var scale=Math.min((maxWidth||destWidth)/ destWidth,(maxHeight||destHeight)/ destHeight)\nif(scale<1){destWidth*=scale\ndestHeight*=scale}}\nif(useCanvas){options=loadImage.getTransformedOptions(img,options,data)\nsourceX=options.left||0\nsourceY=options.top||0\nif(options.sourceWidth){sourceWidth=options.sourceWidth\nif(options.right!==undefined&&options.left===undefined){sourceX=width-sourceWidth-options.right}}else{sourceWidth=width-sourceX-(options.right||0)}\nif(options.sourceHeight){sourceHeight=options.sourceHeight\nif(options.bottom!==undefined&&options.top===undefined){sourceY=height-sourceHeight-options.bottom}}else{sourceHeight=height-sourceY-(options.bottom||0)}\ndestWidth=sourceWidth\ndestHeight=sourceHeight}\nmaxWidth=options.maxWidth\nmaxHeight=options.maxHeight\nminWidth=options.minWidth\nminHeight=options.minHeight\nif(useCanvas&&maxWidth&&maxHeight&&options.crop){destWidth=maxWidth\ndestHeight=maxHeight\ntmp=sourceWidth / sourceHeight-maxWidth / maxHeight\nif(tmp<0){sourceHeight=(maxHeight*sourceWidth)/ maxWidth\nif(options.top===undefined&&options.bottom===undefined){sourceY=(height-sourceHeight)/ 2}}else if(tmp>0){sourceWidth=(maxWidth*sourceHeight)/ maxHeight\nif(options.left===undefined&&options.right===undefined){sourceX=(width-sourceWidth)/ 2}}}else{if(options.contain||options.cover){minWidth=maxWidth=maxWidth||minWidth\nminHeight=maxHeight=maxHeight||minHeight}\nif(options.cover){scaleDown()\nscaleUp()}else{scaleUp()\nscaleDown()}}\nif(useCanvas){pixelRatio=options.pixelRatio\nif(pixelRatio>1&&!(img.style.width&&Math.floor(parseFloat(img.style.width,10))===Math.floor(width / pixelRatio))){destWidth*=pixelRatio\ndestHeight*=pixelRatio}\nif(loadImage.orientationCropBug&&!img.getContext&&(sourceX||sourceY||sourceWidth!==width||sourceHeight!==height)){tmp=img\nimg=loadImage.createCanvas(width,height,true)\nloadImage.drawImage(tmp,img,0,0,width,height,width,height,options)}\ndownsamplingRatio=options.downsamplingRatio\nif(downsamplingRatio>0&&downsamplingRatio<1&&destWidth<sourceWidth&&destHeight<sourceHeight){while(sourceWidth*downsamplingRatio>destWidth){canvas=loadImage.createCanvas(sourceWidth*downsamplingRatio,sourceHeight*downsamplingRatio,true)\nloadImage.drawImage(img,canvas,sourceX,sourceY,sourceWidth,sourceHeight,canvas.width,canvas.height,options)\nsourceX=0\nsourceY=0\nsourceWidth=canvas.width\nsourceHeight=canvas.height\nimg=canvas}}\ncanvas=loadImage.createCanvas(destWidth,destHeight)\nloadImage.transformCoordinates(canvas,options,data)\nif(pixelRatio>1){canvas.style.width=canvas.width / pixelRatio+'px'}\nloadImage.drawImage(img,canvas,sourceX,sourceY,sourceWidth,sourceHeight,destWidth,destHeight,options).setTransform(1,0,0,1,0,0)\nreturn canvas}\nimg.width=destWidth\nimg.height=destHeight\nreturn img}})","Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/index.min.js":"module.exports=require('Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image')\nrequire('Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image-scale')\nrequire('Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image-meta')\nrequire('Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image-fetch')\nrequire('Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image-exif')\nrequire('Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image-exif-map')\nrequire('Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image-iptc')\nrequire('Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image-iptc-map')\nrequire('Mageplaza_Core/lib/fileUploader/vendor/blueimp-load-image/js/load-image-orientation')","Mageplaza_Core/lib/fileUploader/vendor/blueimp-canvas-to-blob/js/canvas-to-blob.min.js":";(function(window){'use strict'\nvar CanvasPrototype=window.HTMLCanvasElement&&window.HTMLCanvasElement.prototype\nvar hasBlobConstructor=window.Blob&&(function(){try{return Boolean(new Blob())}catch(e){return false}})()\nvar hasArrayBufferViewSupport=hasBlobConstructor&&window.Uint8Array&&(function(){try{return new Blob([new Uint8Array(100)]).size===100}catch(e){return false}})()\nvar BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder\nvar dataURIPattern=/^data:((.*?)(;charset=.*?)?)(;base64)?,/\nvar dataURLtoBlob=(hasBlobConstructor||BlobBuilder)&&window.atob&&window.ArrayBuffer&&window.Uint8Array&&function(dataURI){var matches,mediaType,isBase64,dataString,byteString,arrayBuffer,intArray,i,bb\nmatches=dataURI.match(dataURIPattern)\nif(!matches){throw new Error('invalid data URI')}\nmediaType=matches[2]?matches[1]:'text/plain'+(matches[3]||';charset=US-ASCII')\nisBase64=!!matches[4]\ndataString=dataURI.slice(matches[0].length)\nif(isBase64){byteString=atob(dataString)}else{byteString=decodeURIComponent(dataString)}\narrayBuffer=new ArrayBuffer(byteString.length)\nintArray=new Uint8Array(arrayBuffer)\nfor(i=0;i<byteString.length;i+=1){intArray[i]=byteString.charCodeAt(i)}\nif(hasBlobConstructor){return new Blob([hasArrayBufferViewSupport?intArray:arrayBuffer],{type:mediaType})}\nbb=new BlobBuilder()\nbb.append(arrayBuffer)\nreturn bb.getBlob(mediaType)}\nif(window.HTMLCanvasElement&&!CanvasPrototype.toBlob){if(CanvasPrototype.mozGetAsFile){CanvasPrototype.toBlob=function(callback,type,quality){var self=this\nsetTimeout(function(){if(quality&&CanvasPrototype.toDataURL&&dataURLtoBlob){callback(dataURLtoBlob(self.toDataURL(type,quality)))}else{callback(self.mozGetAsFile('blob',type))}})}}else if(CanvasPrototype.toDataURL&&dataURLtoBlob){if(CanvasPrototype.msToBlob){CanvasPrototype.toBlob=function(callback,type,quality){var self=this\nsetTimeout(function(){if(((type&&type!=='image/png')||quality)&&CanvasPrototype.toDataURL&&dataURLtoBlob){callback(dataURLtoBlob(self.toDataURL(type,quality)))}else{callback(self.msToBlob(type))}})}}else{CanvasPrototype.toBlob=function(callback,type,quality){var self=this\nsetTimeout(function(){callback(dataURLtoBlob(self.toDataURL(type,quality)))})}}}}\nif(typeof define==='function'&&define.amd){define(function(){return dataURLtoBlob})}else if(typeof module==='object'&&module.exports){module.exports=dataURLtoBlob}else{window.dataURLtoBlob=dataURLtoBlob}})(window)","Paymob_Payment/js/view/payment/paymob.min.js":"define(['uiComponent','Magento_Checkout/js/model/payment/renderer-list'],function(Component,rendererList){'use strict';rendererList.push({type:'paymob_payment',component:'Paymob_Payment/js/view/payment/method-renderer/paymob'});return Component.extend({});});","Paymob_Payment/js/view/payment/method-renderer/paymob.min.js":"define(['Magento_Checkout/js/view/payment/default','jquery','mage/url'],function(Component,$,url){'use strict';return Component.extend({redirectAfterPlaceOrder:false,defaults:{template:'Paymob_Payment/payment/paymob'},afterPlaceOrder:function(data,event){window.location.replace(url.build('paymob_payment/checkout/process'));},logo:function(){return window.checkoutConfig.payment[this.getCode()].logo;}});});","Smile_ElasticsuiteCatalog/js/range-slider-widget.min.js":"define(['jquery','Magento_Catalog/js/price-utils','mage/template','Smile_ElasticsuiteCatalog/js/slider','Magento_Ui/js/modal/modal','Smile_ElasticsuiteCatalog/js/jquery.ui.touch-punch.min'],function($,priceUtil,mageTemplate){\"use strict\";$.widget('smileEs.rangeSlider',{options:{fromLabel:'[data-role=from-label]',toLabel:'[data-role=to-label]',sliderBar:'[data-role=slider-bar]',message:'[data-role=message-box]',applyButton:'[data-role=apply-range]',rate:1.0000,maxLabelOffset:0.01,messageTemplates:{\"displayOne\":'<span class=\"msg\">1 item</span>',\"displayCount\":'<span class=\"msg\"><%- count %> items</span>',\"displayEmpty\":'<span class=\"msg-error\">No items in the current range.</span>'},},_create:function(){this.showAdaptiveSlider=this.options.showAdaptiveSlider;if(this.showAdaptiveSlider){this._initAdaptiveSliderValues();}else{this._initSliderValues();}\nthis._createSlider();this._refreshDisplay();this.element.find(this.options.applyButton).on('click',this._applyRange.bind(this));},_initSliderValues:function(){this.rate=parseFloat(this.options.rate);this.from=Math.floor(this.options.currentValue.from*this.rate);this.to=Math.round(this.options.currentValue.to*this.rate);this.intervals=this.options.intervals.map(function(item){item.value=Math.round(item.value*this.rate);return item}.bind(this));this.minValue=Math.floor(this.options.minValue*this.rate);this.maxValue=Math.round(this.options.maxValue*this.rate);},_initAdaptiveSliderValues:function(){this.intervals=this.options.adaptiveIntervals;this.from=this._getAdaptiveValue(Number(this.options.currentValue.from));this.to=this._getAdaptiveValue(Number(this.options.currentValue.to));this.rate=parseFloat(this.options.rate);this.intervals=this.intervals.map(function(item){item.originalValue=Math.ceil(item.originalValue*this.rate);return item}.bind(this));this.minValue=this.intervals[0].value;this.maxValue=this.intervals[this.intervals.length-1].value;},_createSlider:function(){this.element.find(this.options.sliderBar).slider({range:true,min:this.minValue,max:this.maxValue,values:[this.from,this.to],slide:this._onSliderChange.bind(this),step:this.options.step});},_onSliderChange:function(ev,ui){this.from=this._getClosestAdaptiveValue(ui.values[0]);this.to=this._getClosestAdaptiveValue(ui.values[1]);this._refreshDisplay();},_refreshDisplay:function(){this.count=this._getItemCount();if(this.element.find('[data-role=from-label]')){this.element.find('[data-role=from-label]').html(this._formatLabel(this._getOriginalValue(this.from)));}\nif(this.element.find('[data-role=to-label]')){var to=this._getOriginalValue(this.to)-this.options.maxLabelOffset;if(this.showAdaptiveSlider&&to<this._getOriginalValue(this.minValue)){to=this._getOriginalValue(this.to);}\nthis.element.find('[data-role=to-label]').html(this._formatLabel(to));}\nif(this.element.find('[data-role=message-box]')){var messageTemplate=this.options.messageTemplates[this.count>0?(this.count>1?'displayCount':'displayOne'):'displayEmpty'];var message=mageTemplate(messageTemplate)(this);this.element.find('[data-role=message-box]').html(message);if(this.count>0){this.element.find('[data-role=message-box]').removeClass('empty');}else{this.element.find('[data-role=message-box]').addClass('empty');}}},_applyRange:function(){var range={from:this._getOriginalValue(this.from)*(1 / this.rate),to:this._getOriginalValue(this.to)*(1 / this.rate)};var url=mageTemplate(this.options.urlTemplate)(range);this.element.find(this.options.applyButton).attr('href',url);},_getAdaptiveValue:function(value){if(!this.showAdaptiveSlider){return value;}\nvar adaptiveValue=this.intervals[0].value;var found=false;this.intervals.forEach(function(item){if(found===false&&item.originalValue===value){adaptiveValue=item.value;found=true;}\nif(found===false&&item.originalValue<value){adaptiveValue=item.value;}});return adaptiveValue;},_getClosestAdaptiveValue:function(value){if(!this.showAdaptiveSlider){return value;}\nvar closestValue=this.intervals[0].value;var found=false;this.intervals.forEach(function(item){if(item.value===value){closestValue=value;found=true;}\nif(found===false&&item.value<value){closestValue=item.value;}});return closestValue;},_getOriginalValue:function(value){if(!this.showAdaptiveSlider){return value;}\nvar originalValue=null;this.intervals.forEach(function(item){if(item.value===value){originalValue=item.originalValue;}});return originalValue;},_getItemCount:function(){var from=this.from,to=this.to,intervals=this.intervals;var count=intervals.map(function(item){return(item.value>=from&&(item.value<to||((from===to)&&item.value<=to)))?item.count:0;}).reduce(function(a,b){return a+b;});return count;},_formatLabel:function(value){var formattedValue=value;if(this.options.fieldFormat){formattedValue=priceUtil.formatPrice(value,this.options.fieldFormat);}\nreturn formattedValue;}});return $.smileEs.rangeSlider;});","Smile_ElasticsuiteCatalog/js/mouse.min.js":"/*!\n * jQuery UI Mouse 1.13.2\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/mouse/\n */\ndefine(['jquery','jquery-ui-modules/widget'],function($,undefined){var mouseHandled=false;$(document).on(\"mouseup\",function(){mouseHandled=false;});var widgetsMouse=$.widget(\"ui.mouse\",{version:\"1.13.2\",options:{cancel:\"input, textarea, button, select, option\",distance:1,delay:0},_mouseInit:function(){var that=this;this.element.on(\"mousedown.\"+this.widgetName,function(event){return that._mouseDown(event);}).on(\"click.\"+this.widgetName,function(event){if(true===$.data(event.target,that.widgetName+\".preventClickEvent\")){$.removeData(event.target,that.widgetName+\".preventClickEvent\");event.stopImmediatePropagation();return false;}});this.started=false;},_mouseDestroy:function(){this.element.off(\".\"+this.widgetName);if(this._mouseMoveDelegate){this.document.off(\"mousemove.\"+this.widgetName,this._mouseMoveDelegate).off(\"mouseup.\"+this.widgetName,this._mouseUpDelegate);}},_mouseDown:function(event){if(mouseHandled){return;}\nthis._mouseMoved=false;if(this._mouseStarted){this._mouseUp(event);}\nthis._mouseDownEvent=event;var that=this,btnIsLeft=(event.which===1),elIsCancel=(typeof this.options.cancel===\"string\"&&event.target.nodeName?$(event.target).closest(this.options.cancel).length:false);if(!btnIsLeft||elIsCancel||!this._mouseCapture(event)){return true;}\nthis.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){that.mouseDelayMet=true;},this.options.delay);}\nif(this._mouseDistanceMet(event)&&this._mouseDelayMet(event)){this._mouseStarted=(this._mouseStart(event)!==false);if(!this._mouseStarted){event.preventDefault();return true;}}\nif(true===$.data(event.target,this.widgetName+\".preventClickEvent\")){$.removeData(event.target,this.widgetName+\".preventClickEvent\");}\nthis._mouseMoveDelegate=function(event){return that._mouseMove(event);};this._mouseUpDelegate=function(event){return that._mouseUp(event);};this.document.on(\"mousemove.\"+this.widgetName,this._mouseMoveDelegate).on(\"mouseup.\"+this.widgetName,this._mouseUpDelegate);event.preventDefault();mouseHandled=true;return true;},_mouseMove:function(event){if(this._mouseMoved){if($.ui.ie&&(!document.documentMode||document.documentMode<9)&&!event.button){return this._mouseUp(event);}else if(!event.which){if(event.originalEvent.altKey||event.originalEvent.ctrlKey||event.originalEvent.metaKey||event.originalEvent.shiftKey){this.ignoreMissingWhich=true;}else if(!this.ignoreMissingWhich){return this._mouseUp(event);}}}\nif(event.which||event.button){this._mouseMoved=true;}\nif(this._mouseStarted){this._mouseDrag(event);return event.preventDefault();}\nif(this._mouseDistanceMet(event)&&this._mouseDelayMet(event)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,event)!==false);if(this._mouseStarted){this._mouseDrag(event);}else{this._mouseUp(event);}}\nreturn!this._mouseStarted;},_mouseUp:function(event){this.document.off(\"mousemove.\"+this.widgetName,this._mouseMoveDelegate).off(\"mouseup.\"+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;if(event.target===this._mouseDownEvent.target){$.data(event.target,this.widgetName+\".preventClickEvent\",true);}\nthis._mouseStop(event);}\nif(this._mouseDelayTimer){clearTimeout(this._mouseDelayTimer);delete this._mouseDelayTimer;}\nthis.ignoreMissingWhich=false;mouseHandled=false;event.preventDefault();},_mouseDistanceMet:function(event){return(Math.max(Math.abs(this._mouseDownEvent.pageX-event.pageX),Math.abs(this._mouseDownEvent.pageY-event.pageY))>=this.options.distance);},_mouseDelayMet:function(){return this.mouseDelayMet;},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true;}});});","Smile_ElasticsuiteCatalog/js/slider.min.js":"/*!\n * jQuery UI Slider - v1.10.4\n * http://jqueryui.com\n *\n * Copyright 2014 jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/slider/\n */\ndefine(['jquery','jquery-ui-modules/core','jquery-ui-modules/mouse'],function($,undefined){var numPages=5;$.widget(\"ui.slider\",$.ui.mouse,{version:\"1.10.4\",widgetEventPrefix:\"slide\",options:{animate:false,distance:0,max:100,min:0,orientation:\"horizontal\",range:false,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},_create:function(){this._keySliding=false;this._mouseSliding=false;this._animateOff=true;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass(\"ui-slider\"+\" ui-slider-\"+this.orientation+\" ui-widget\"+\" ui-widget-content\"+\" ui-corner-all\");this._refresh();this._setOption(\"disabled\",this.options.disabled);this._animateOff=false;},_refresh:function(){this._createRange();this._createHandles();this._setupEvents();this._refreshValue();},_createHandles:function(){var i,handleCount,options=this.options,existingHandles=this.element.find(\".ui-slider-handle\").addClass(\"ui-state-default ui-corner-all\"),handle=\"<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>\",handles=[];handleCount=(options.values&&options.values.length)||1;if(existingHandles.length>handleCount){existingHandles.slice(handleCount).remove();existingHandles=existingHandles.slice(0,handleCount);}\nfor(i=existingHandles.length;i<handleCount;i++){handles.push(handle);}\nthis.handles=existingHandles.add($(handles.join(\"\")).appendTo(this.element));this.handle=this.handles.eq(0);this.handles.each(function(i){$(this).data(\"ui-slider-handle-index\",i);});},_createRange:function(){var options=this.options,classes=\"\";if(options.range){if(options.range===true){if(!options.values){options.values=[this._valueMin(),this._valueMin()];}else if(options.values.length&&options.values.length!==2){options.values=[options.values[0],options.values[0]];}else if(Array.isArray(options.values)){options.values=options.values.slice(0);}}\nif(!this.range||!this.range.length){this.range=$(\"<div></div>\").appendTo(this.element);classes=\"ui-slider-range\"+\" ui-widget-header ui-corner-all\";}else{this.range.removeClass(\"ui-slider-range-min ui-slider-range-max\").css({\"left\":\"\",\"bottom\":\"\"});}\nthis.range.addClass(classes+\n((options.range===\"min\"||options.range===\"max\")?\" ui-slider-range-\"+options.range:\"\"));}else{if(this.range){this.range.remove();}\nthis.range=null;}},_setupEvents:function(){var elements=this.handles.add(this.range).filter(\"a\");this._off(elements);this._on(elements,this._handleEvents);this._hoverable(elements);this._focusable(elements);},_destroy:function(){this.handles.remove();if(this.range){this.range.remove();}\nthis.element.removeClass(\"ui-slider\"+\" ui-slider-horizontal\"+\" ui-slider-vertical\"+\" ui-widget\"+\" ui-widget-content\"+\" ui-corner-all\");this._mouseDestroy();},_mouseCapture:function(event){var position,normValue,distance,closestHandle,index,allowed,offset,mouseOverHandle,that=this,o=this.options;if(o.disabled){return false;}\nthis.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();position={x:event.pageX,y:event.pageY};normValue=this._normValueFromMouse(position);distance=this._valueMax()-this._valueMin()+1;this.handles.each(function(i){var thisDistance=Math.abs(normValue-that.values(i));if((distance>thisDistance)||(distance===thisDistance&&(i===that._lastChangedValue||that.values(i)===o.min))){distance=thisDistance;closestHandle=$(this);index=i;}});allowed=this._start(event,index);if(allowed===false){return false;}\nthis._mouseSliding=true;this._handleIndex=index;closestHandle.addClass(\"ui-state-active\").trigger(\"focus\");offset=closestHandle.offset();mouseOverHandle=!$(event.target).parents().addBack().is(\".ui-slider-handle\");this._clickOffset=mouseOverHandle?{left:0,top:0}:{left:event.pageX-offset.left-(closestHandle.width()/ 2),top:event.pageY-offset.top-\n(closestHandle.height()/ 2)-\n(parseInt(closestHandle.css(\"borderTopWidth\"),10)||0)-\n(parseInt(closestHandle.css(\"borderBottomWidth\"),10)||0)+\n(parseInt(closestHandle.css(\"marginTop\"),10)||0)};if(!this.handles.hasClass(\"ui-state-hover\")){this._slide(event,index,normValue);}\nthis._animateOff=true;return true;},_mouseStart:function(){return true;},_mouseDrag:function(event){var position={x:event.pageX,y:event.pageY},normValue=this._normValueFromMouse(position);this._slide(event,this._handleIndex,normValue);return false;},_mouseStop:function(event){this.handles.removeClass(\"ui-state-active\");this._mouseSliding=false;this._stop(event,this._handleIndex);this._change(event,this._handleIndex);this._handleIndex=null;this._clickOffset=null;this._animateOff=false;return false;},_detectOrientation:function(){this.orientation=(this.options.orientation===\"vertical\")?\"vertical\":\"horizontal\";},_normValueFromMouse:function(position){var pixelTotal,pixelMouse,percentMouse,valueTotal,valueMouse;if(this.orientation===\"horizontal\"){pixelTotal=this.elementSize.width;pixelMouse=position.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0);}else{pixelTotal=this.elementSize.height;pixelMouse=position.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0);}\npercentMouse=(pixelMouse / pixelTotal);if(percentMouse>1){percentMouse=1;}\nif(percentMouse<0){percentMouse=0;}\nif(this.orientation===\"vertical\"){percentMouse=1-percentMouse;}\nvalueTotal=this._valueMax()-this._valueMin();valueMouse=this._valueMin()+percentMouse*valueTotal;return this._trimAlignValue(valueMouse);},_start:function(event,index){var uiHash={handle:this.handles[index],value:this.value()};if(this.options.values&&this.options.values.length){uiHash.value=this.values(index);uiHash.values=this.values();}\nreturn this._trigger(\"start\",event,uiHash);},_slide:function(event,index,newVal){var otherVal,newValues,allowed;if(this.options.values&&this.options.values.length){otherVal=this.values(index?0:1);if((this.options.values.length===2&&this.options.range===true)&&((index===0&&newVal>otherVal)||(index===1&&newVal<otherVal))){newVal=otherVal;}\nif(newVal!==this.values(index)){newValues=this.values();newValues[index]=newVal;allowed=this._trigger(\"slide\",event,{handle:this.handles[index],value:newVal,values:newValues});otherVal=this.values(index?0:1);if(allowed!==false){this.values(index,newVal);}}}else{if(newVal!==this.value()){allowed=this._trigger(\"slide\",event,{handle:this.handles[index],value:newVal});if(allowed!==false){this.value(newVal);}}}},_stop:function(event,index){var uiHash={handle:this.handles[index],value:this.value()};if(this.options.values&&this.options.values.length){uiHash.value=this.values(index);uiHash.values=this.values();}\nthis._trigger(\"stop\",event,uiHash);},_change:function(event,index){if(!this._keySliding&&!this._mouseSliding){var uiHash={handle:this.handles[index],value:this.value()};if(this.options.values&&this.options.values.length){uiHash.value=this.values(index);uiHash.values=this.values();}\nthis._lastChangedValue=index;this._trigger(\"change\",event,uiHash);}},value:function(newValue){if(arguments.length){this.options.value=this._trimAlignValue(newValue);this._refreshValue();this._change(null,0);return;}\nreturn this._value();},values:function(index,newValue){var vals,newValues,i;if(arguments.length>1){this.options.values[index]=this._trimAlignValue(newValue);this._refreshValue();this._change(null,index);return;}\nif(arguments.length){if(Array.isArray(arguments[0])){vals=this.options.values;newValues=arguments[0];for(i=0;i<vals.length;i+=1){vals[i]=this._trimAlignValue(newValues[i]);this._change(null,i);}\nthis._refreshValue();}else{if(this.options.values&&this.options.values.length){return this._values(index);}else{return this.value();}}}else{return this._values();}},_setOption:function(key,value){var i,valsLength=0;if(key===\"range\"&&this.options.range===true){if(value===\"min\"){this.options.value=this._values(0);this.options.values=null;}else if(value===\"max\"){this.options.value=this._values(this.options.values.length-1);this.options.values=null;}}\nif(Array.isArray(this.options.values)){valsLength=this.options.values.length;}\n$.Widget.prototype._setOption.apply(this,arguments);switch(key){case\"orientation\":this._detectOrientation();this.element.removeClass(\"ui-slider-horizontal ui-slider-vertical\").addClass(\"ui-slider-\"+this.orientation);this._refreshValue();break;case\"value\":this._animateOff=true;this._refreshValue();this._change(null,0);this._animateOff=false;break;case\"values\":this._animateOff=true;this._refreshValue();for(i=0;i<valsLength;i+=1){this._change(null,i);}\nthis._animateOff=false;break;case\"min\":case\"max\":this._animateOff=true;this._refreshValue();this._animateOff=false;break;case\"range\":this._animateOff=true;this._refresh();this._animateOff=false;break;}},_value:function(){var val=this.options.value;val=this._trimAlignValue(val);return val;},_values:function(index){var val,vals,i;if(arguments.length){val=this.options.values[index];val=this._trimAlignValue(val);return val;}else if(this.options.values&&this.options.values.length){vals=this.options.values.slice();for(i=0;i<vals.length;i+=1){vals[i]=this._trimAlignValue(vals[i]);}\nreturn vals;}else{return[];}},_trimAlignValue:function(val){if(val<=this._valueMin()){return this._valueMin();}\nif(val>=this._valueMax()){return this._valueMax();}\nvar step=(this.options.step>0)?this.options.step:1,valModStep=(val-this._valueMin())%step,alignValue=val-valModStep;if(Math.abs(valModStep)*2>=step){alignValue+=(valModStep>0)?step:(-step);}\nreturn parseFloat(alignValue.toFixed(5));},_valueMin:function(){return this.options.min;},_valueMax:function(){return this.options.max;},_refreshValue:function(){var lastValPercent,valPercent,value,valueMin,valueMax,oRange=this.options.range,o=this.options,that=this,animate=(!this._animateOff)?o.animate:false,_set={};if(this.options.values&&this.options.values.length){this.handles.each(function(i){valPercent=(that.values(i)-that._valueMin())/(that._valueMax()-that._valueMin())*100;_set[that.orientation===\"horizontal\"?\"left\":\"bottom\"]=valPercent+\"%\";$(this).stop(1,1)[animate?\"animate\":\"css\"](_set,o.animate);if(that.options.range===true){if(that.orientation===\"horizontal\"){if(i===0){that.range.stop(1,1)[animate?\"animate\":\"css\"]({left:valPercent+\"%\"},o.animate);}\nif(i===1){that.range[animate?\"animate\":\"css\"]({width:(valPercent-lastValPercent)+\"%\"},{queue:false,duration:o.animate});}}else{if(i===0){that.range.stop(1,1)[animate?\"animate\":\"css\"]({bottom:(valPercent)+\"%\"},o.animate);}\nif(i===1){that.range[animate?\"animate\":\"css\"]({height:(valPercent-lastValPercent)+\"%\"},{queue:false,duration:o.animate});}}}\nlastValPercent=valPercent;});}else{value=this.value();valueMin=this._valueMin();valueMax=this._valueMax();valPercent=(valueMax!==valueMin)?(value-valueMin)/(valueMax-valueMin)*100:0;_set[this.orientation===\"horizontal\"?\"left\":\"bottom\"]=valPercent+\"%\";this.handle.stop(1,1)[animate?\"animate\":\"css\"](_set,o.animate);if(oRange===\"min\"&&this.orientation===\"horizontal\"){this.range.stop(1,1)[animate?\"animate\":\"css\"]({width:valPercent+\"%\"},o.animate);}\nif(oRange===\"max\"&&this.orientation===\"horizontal\"){this.range[animate?\"animate\":\"css\"]({width:(100-valPercent)+\"%\"},{queue:false,duration:o.animate});}\nif(oRange===\"min\"&&this.orientation===\"vertical\"){this.range.stop(1,1)[animate?\"animate\":\"css\"]({height:valPercent+\"%\"},o.animate);}\nif(oRange===\"max\"&&this.orientation===\"vertical\"){this.range[animate?\"animate\":\"css\"]({height:(100-valPercent)+\"%\"},{queue:false,duration:o.animate});}}},_handleEvents:{keydown:function(event){var allowed,curVal,newVal,step,index=$(event.target).data(\"ui-slider-handle-index\");switch(event.keyCode){case $.ui.keyCode.HOME:case $.ui.keyCode.END:case $.ui.keyCode.PAGE_UP:case $.ui.keyCode.PAGE_DOWN:case $.ui.keyCode.UP:case $.ui.keyCode.RIGHT:case $.ui.keyCode.DOWN:case $.ui.keyCode.LEFT:event.preventDefault();if(!this._keySliding){this._keySliding=true;$(event.target).addClass(\"ui-state-active\");allowed=this._start(event,index);if(allowed===false){return;}}\nbreak;}\nstep=this.options.step;if(this.options.values&&this.options.values.length){curVal=newVal=this.values(index);}else{curVal=newVal=this.value();}\nswitch(event.keyCode){case $.ui.keyCode.HOME:newVal=this._valueMin();break;case $.ui.keyCode.END:newVal=this._valueMax();break;case $.ui.keyCode.PAGE_UP:newVal=this._trimAlignValue(curVal+((this._valueMax()-this._valueMin())/ numPages));break;case $.ui.keyCode.PAGE_DOWN:newVal=this._trimAlignValue(curVal-((this._valueMax()-this._valueMin())/ numPages));break;case $.ui.keyCode.UP:case $.ui.keyCode.RIGHT:if(curVal===this._valueMax()){return;}\nnewVal=this._trimAlignValue(curVal+step);break;case $.ui.keyCode.DOWN:case $.ui.keyCode.LEFT:if(curVal===this._valueMin()){return;}\nnewVal=this._trimAlignValue(curVal-step);break;}\nthis._slide(event,index,newVal);},click:function(event){event.preventDefault();},keyup:function(event){var index=$(event.target).data(\"ui-slider-handle-index\");if(this._keySliding){this._keySliding=false;this._stop(event,index);this._change(event,index);$(event.target).removeClass(\"ui-state-active\");}}}});});","Smile_ElasticsuiteCatalog/js/attribute-filter.min.js":"define(['jquery','uiComponent','underscore','mage/translate'],function($,Component,_){\"use strict\";return Component.extend({defaults:{template:\"Smile_ElasticsuiteCatalog/attribute-filter\",showMoreLabel:$.mage.__(\"Show more\"),showLessLabel:$.mage.__(\"Show less\"),noSearchResultLabel:$.mage.__(\"No value matching the search <b>%s</b>.\")},initialize:function(){this._super();this.expanded=false;this.items=this.items.map(this.addItemId.bind(this));this.observe(['fulltextSearch','expanded']);var lastSelectedIndex=Math.max.apply(null,(this.items.map(function(v,k){return v['is_selected']?k:0;})));this.maxSize=Math.max(this.maxSize,lastSelectedIndex+1);this.initSearchPlaceholder();this.onShowLess();this.displaySearch=this.displayShowMore();},initSearchPlaceholder:function(){var examples=this.items.slice(0,2).map(function(item){return item.label});if(this.items.length>2){examples.push('...');}\nthis.searchPlaceholder=$('<div/>').html($.mage.__('Search (%s)').replace('%s',examples.join(', '))).text();},onSearchChange:function(component,ev){var text=ev.target.value;if(text.trim()===\"\"){component.fulltextSearch(null);component.onShowLess();}else{component.fulltextSearch(text);component.onShowMore();}\nreturn true;},onSearchFocusOut:function(component,ev){var text=ev.target.value;if(text.trim()===\"\"){component.fulltextSearch(null);ev.target.value=\"\";}},loadAdditionalItems:function(callback){$.get(this.ajaxLoadUrl,function(data){this.items=data.map(this.addItemId.bind(this));this.hasMoreItems=false;if(callback){return callback();}}.bind(this));},getDisplayedItems:function(){var items=this.items;if(this.expanded()===false){items=this.items.slice(0,this.maxSize);}\nif(this.fulltextSearch()){var searchTokens=this.slugify(this.fulltextSearch()).split('-');var lastSearchToken=searchTokens.splice(-1,1)[0];items=items.filter(function(item){var isValidItem=true;var itemTokens=this.slugify(item.label).split('-');searchTokens.forEach(function(currentToken){if(itemTokens.indexOf(currentToken)===-1){isValidItem=false;}})\nif(isValidItem&&lastSearchToken){var ngrams=itemTokens.map(function(token){return token.substring(0,lastSearchToken.length)});isValidItem=ngrams.indexOf(lastSearchToken)!==-1;}\nreturn isValidItem;}.bind(this))}\nreturn items;},hasSearchResult:function(){return this.getDisplayedItems().length>0},getSearchResultMessage:function(){return this.noSearchResultLabel.replace(\"%s\",'\"'+this.fulltextSearch()+'\"')},onShowMore:function(){if(this.hasMoreItems){this.loadAdditionalItems(this.onShowMore.bind(this));}else{this.expanded(true);}},slugify:function(text){return text.toString().toLowerCase().replace(/\\s+/g,'-').replace(/[^\\w\\u0400-\\u052F\\u2DE0-\\u2DFF\\uA640-\\uA69F'\\-]+/g,'').replace(/\\-\\-+/g,'-').replace(/^-+/,'')},onShowLess:function(){this.expanded(false);},enableExpansion:function(){return this.hasMoreItems||this.items.length>this.maxSize;},displayShowMore:function(){return this.enableExpansion()&&this.expanded()===false&&!this.fulltextSearch();},displayShowLess:function(){return this.enableExpansion()&&this.expanded()===true&&!this.fulltextSearch();},addItemId:function(item){item.id=_.uniqueId(this.index+\"_option_\");item.displayProductCount=this.displayProductCount&&(item.count>=1);return item;},});});","Smile_ElasticsuiteCatalog/js/jquery.ui.touch-punch.min.js":"/*!\n * jQuery UI Touch Punch 0.2.3\n *\n * Copyright 2011\u20132014, Dave Furfero\n * Dual licensed under the MIT or GPL Version 2 licenses.\n *\n * Depends:\n *  jquery.ui.widget.js\n *  jquery.ui.mouse.js\n */ !function(t){if(t.support.touch=\"ontouchend\"in document,t.support.touch){var o,e=t.ui.mouse.prototype,u=e._mouseInit,n=e._mouseDestroy;e._touchStart=function(t){var e=this;!o&&e._mouseCapture(t.originalEvent.changedTouches[0])&&(o=!0,e._touchMoved=!1,c(t,\"mouseover\"),c(t,\"mousemove\"),c(t,\"mousedown\"))},e._touchMove=function(t){o&&(this._touchMoved=!0,c(t,\"mousemove\"))},e._touchEnd=function(t){o&&(c(t,\"mouseup\"),c(t,\"mouseout\"),this._touchMoved||c(t,\"click\"),o=!1)},e._mouseInit=function(){this.element.on({touchstart:t.proxy(this,\"_touchStart\"),touchmove:t.proxy(this,\"_touchMove\"),touchend:t.proxy(this,\"_touchEnd\")}),u.call(this)},e._mouseDestroy=function(){this.element.unbind({touchstart:t.proxy(this,\"_touchStart\"),touchmove:t.proxy(this,\"_touchMove\"),touchend:t.proxy(this,\"_touchEnd\")}),n.call(this)}}function c(t,o){if(!(t.originalEvent.touches.length>1)){t.preventDefault();var e=t.originalEvent.changedTouches[0],u=document.createEvent(\"MouseEvents\");u.initMouseEvent(o,!0,!0,window,1,e.screenX,e.screenY,e.clientX,e.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(u)}}}(jQuery);\n","Smile_ElasticsuiteCatalog/js/autocomplete/product-attribute.min.js":"define(['underscore'],function(_){var Renderer={render:function(data){data=data.filter(function(item){return item.type===\"product_attribute\";}).map(function(item){return item['attribute_label']}).reduce(function(prev,item){if(item in prev){prev[item]++;}else{prev[item]=1;}\nreturn prev;},{});data=_.pairs(data).sort(function(item1,item2){return item2[1]-item1[1]}).map(function(item){return item[0]});if(data.length>2){data=data.slice(0,2);data.push('...');}\nreturn data.join(', ');}}\nreturn Renderer;});","Plumrocket_Base/js/utils.min.js":"define([],function(){'use strict';var isMobile=null;return{isMobile:function(){if(null===isMobile){isMobile=false;(function(a){if(/(android|bb\\d+|meego).+mobile|avantgo|bada\\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\\-(n|u)|c55\\/|capi|ccwa|cdm\\-|cell|chtm|cldc|cmd\\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\\-s|devi|dica|dmob|do(c|p)o|ds(12|\\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\\-|_)|g1 u|g560|gene|gf\\-5|g\\-mo|go(\\.w|od)|gr(ad|un)|haie|hcit|hd\\-(m|p|t)|hei\\-|hi(pt|ta)|hp( i|ip)|hs\\-c|ht(c(\\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\\-(20|go|ma)|i230|iac( |\\-|\\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\\/)|klon|kpt |kwc\\-|kyo(c|k)|le(no|xi)|lg( g|\\/(k|l|u)|50|54|\\-[a-w])|libw|lynx|m1\\-w|m3ga|m50\\/|ma(te|ui|xo)|mc(01|21|ca)|m\\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\\-2|po(ck|rt|se)|prox|psio|pt\\-g|qa\\-a|qc(07|12|21|32|60|\\-[2-7]|i\\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\\-|oo|p\\-)|sdk\\/|se(c(\\-|0|1)|47|mc|nd|ri)|sgh\\-|shar|sie(\\-|m)|sk\\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\\-|v\\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\\-|tdg\\-|tel(i|m)|tim\\-|t\\-mo|to(pl|sh)|ts(70|m\\-|m3|m5)|tx\\-9|up(\\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\\-|your|zeto|zte\\-/i.test(a.substr(0,4))){isMobile=true}})(navigator.userAgent||navigator.vendor||window.opera);}\nreturn isMobile;},applyTextToTranslate:function(pattern,phrases){phrases.forEach(function(phrase,index){pattern=pattern.replace('%'+(index+1),phrase);});return pattern;},getUrlParameter:function(name,url){name=name.replace(/[\\[]/,'\\\\[').replace(/[\\]]/,'\\\\]');var regex=new RegExp('[\\\\?&]'+name+'=([^&#]*)');var results=regex.exec(url?url:location.search);return results===null?'':decodeURIComponent(results[1].replace(/\\+/g,' '));},setParameter:function(url,param,paramVal){var parts=url.split('?');var baseUrl=parts[0];var oldQueryString=parts[1];var newParameters=[];if(oldQueryString){var oldParameters=oldQueryString.split('&');for(var i=0;i<oldParameters.length;i++){if(oldParameters[i].split('=')[0]!=param){newParameters.push(oldParameters[i]);}}}\nif(paramVal){newParameters.push(param+'='+encodeURI(paramVal));}\nif(newParameters.length>0){newParameters.sort();return baseUrl+'?'+newParameters.join('&');}else{return baseUrl;}},updateUrlParam:function(paramName,value){if(window.history.replaceState){var newUrl=this.setParameter(window.location.href,paramName,value);window.history.replaceState('','',newUrl);}\nreturn this;},};});","Magento_Csp/js/sri.min.js":"require.config({onNodeCreated:function(node,config,moduleName,url){'use strict';if('sriHashes'in window&&url in window.sriHashes){node.setAttribute('integrity',window.sriHashes[url]);node.setAttribute('crossorigin','anonymous');}}});","mage/translate-inline.min.js":"define(['jquery','mage/template','mage/utils/misc','mage/translate','jquery-ui-modules/dialog'],function($,mageTemplate,miscUtils){'use strict';$.widget('mage.translateInline',$.ui.dialog,{options:{translateForm:{template:'#translate-form-template',data:{id:'translate-inline-form',message:'Please refresh the page to see your changes after submitting this form. '+'Note: browser cache refresh may be required'}},autoOpen:false,translateArea:null,modal:true,dialogClass:'popup-window window-translate-inline',width:'75%',title:$.mage.__('Translate'),height:470,position:{my:'left top',at:'center top',of:'body'},buttons:[{text:$.mage.__('Submit'),'class':'action-primary',click:function(){$(this).translateInline('submit');}},{text:$.mage.__('Close'),'class':'action-close',click:function(){$(this).translateInline('close');}}],open:function(){var $uiDialog=$(this).closest('.ui-dialog'),topMargin=$uiDialog.children('.ui-dialog-titlebar').outerHeight()+45;$uiDialog.addClass('ui-dialog-active').css('margin-top',topMargin);},close:function(){$(this).closest('.ui-dialog').removeClass('ui-dialog-active');}},_create:function(){var $translateArea=$(this.options.translateArea);if(!$translateArea.length){$translateArea=$('body');}\n$translateArea.on('edit.editTrigger',$.proxy(this._onEdit,this));this.tmpl=mageTemplate(this.options.translateForm.template);this._super();},_prepareContent:function(templateData){var data=$.extend({items:templateData,escape:miscUtils.escape},this.options.translateForm.data);this.data=data;return $(this.tmpl({data:data}));},_onEdit:function(e){this.target=e.target;this.element.html(this._prepareContent($(e.target).data('translate')));this.open(e);},submit:function(){if(this.formIsSubmitted){return;}\nthis._formSubmit();},_formSubmit:function(){var parameters=$.param({area:this.options.area})+'&'+$('#'+this.options.translateForm.data.id).serialize();this.formIsSubmitted=true;$.ajax({url:this.options.ajaxUrl,type:'POST',data:parameters,loaderContext:this.element,showLoader:true}).always($.proxy(this._formSubmitComplete,this));},_formSubmitComplete:function(response){var responseJSON=response.responseJSON||response;this.close();this.formIsSubmitted=false;$.mage.translate.add(responseJSON);this._updatePlaceholder(responseJSON[this.data.items[0].original]);},_updatePlaceholder:function(newValue){var $target=$(this.target),translateObject=$target.data('translate')[0];translateObject.shown=newValue;translateObject.translated=newValue;$.mage.translate.add(this.data.items[0].original,newValue);$target.html(newValue);},destroy:function(){this.element.off('.editTrigger');this._super();}});return $.mage.translateInline;});","mage/toggle.min.js":"define(['jquery','jquery-ui-modules/widget'],function($){'use strict';$.widget('mage.toggleAdvanced',{options:{baseToggleClass:'active'},_create:function(){this.beforeCreate();this._bindCore();this.afterCreate();},_bindCore:function(){var widget=this;this.element.on('click',$.proxy(function(e){widget._onClick();e.preventDefault();},this));},_onClick:function(){this._prepareOptions();this._toggleSelectors();},_prepareOptions:function(){this.options.baseToggleClass=this.element.data('base-toggle-class')?this.element.data('base-toggle-class'):this.options.baseToggleClass;},_toggleSelectors:function(){this.element.toggleClass(this.options.baseToggleClass);},beforeCreate:function(){},afterCreate:function(){}});$.widget('mage.toggleAdvanced',$.mage.toggleAdvanced,{options:{selectorsToggleClass:'hidden',toggleContainers:null},_toggleSelectors:function(){this._super();if(this.options.toggleContainers){$(this.options.toggleContainers).toggleClass(this.options.selectorsToggleClass);}else{this.element.toggleClass(this.options.baseToggleClass);}},_prepareOptions:function(){this.options.selectorsToggleClass=this.element.data('selectors-toggle-class')?this.element.data('selectors-toggle-class'):this.options.selectorsToggleClass;this.options.toggleContainers=this.element.data('toggle-selectors')?this.element.data('toggle-selectors'):this.options.toggleContainers;this._super();}});$.widget('mage.toggleAdvanced',$.mage.toggleAdvanced,{options:{newLabel:null,curLabel:null,currentLabelElement:null},_onClick:function(){this._super();this._toggleLabel();},_toggleLabel:function(){var cachedLabel,currentLabelSelector;if(this.options.newLabel){cachedLabel=this.options.newLabel;currentLabelSelector=this.options.currentLabelElement?$(this.options.currentLabelElement):this.element;this.element.data('toggle-label',this.options.curLabel);currentLabelSelector.html(this.options.newLabel);this.options.curLabel=this.options.newLabel;this.options.newLabel=cachedLabel;}},_prepareOptions:function(){this.options.newLabel=this.element.data('toggle-label')?this.element.data('toggle-label'):this.options.newLabel;this.options.currentLabelElement=this.element.data('current-label-el')?this.element.data('current-label-el'):this.options.currentLabelElement;if(!this.options.currentLabelElement){this.options.currentLabelElement=this.element;}\nthis.options.curLabel=$(this.options.currentLabelElement).html();this._super();}});return $.mage.toggleAdvanced;});","mage/cookies.min.js":"define(['jquery','mage/mage','js-cookie/cookie-wrapper'],function($){'use strict';var CookieHelper=function(){this.defaults={expires:null,path:'/',domain:null,secure:false,lifetime:null,samesite:'lax'};function lifetimeToExpires(options,defaults){var expires,lifetime;lifetime=options.lifetime||defaults.lifetime;if(lifetime&&lifetime>0){expires=options.expires||new Date();return new Date(expires.getTime()+lifetime*1000);}\nreturn null;}\nthis.set=function(name,value,options){var expires,path,domain,secure,samesite;options=$.extend({},this.defaults,options||{});expires=lifetimeToExpires(options,this.defaults)||options.expires;path=options.path;domain=options.domain;secure=options.secure;samesite=options.samesite;document.cookie=name+'='+encodeURIComponent(value)+\n(expires?'; expires='+expires.toUTCString():'')+\n(path?'; path='+path:'')+\n(domain?'; domain='+domain:'')+\n(secure?'; secure':'')+'; samesite='+(samesite?samesite:'lax');};this.get=function(name){var arg=name+'=',aLength=arg.length,cookie=document.cookie,cLength=cookie.length,i=0,j=0;while(i<cLength){j=i+aLength;if(cookie.substring(i,j)===arg){return this.getCookieVal(j);}\ni=cookie.indexOf(' ',i)+1;if(i===0){break;}}\nreturn null;};this.clear=function(name){if(this.get(name)){this.set(name,'',{expires:new Date('Jan 01 1970 00:00:01 GMT')});}};this.getCookieVal=function(offset){var cookie=document.cookie,endstr=cookie.indexOf(';',offset);if(endstr===-1){endstr=cookie.length;}\nreturn decodeURIComponent(cookie.substring(offset,endstr));};return this;};$.extend(true,$,{mage:{cookies:new CookieHelper()}});return function(pageOptions){$.extend($.mage.cookies.defaults,pageOptions);$.extend($.cookie.defaults,$.mage.cookies.defaults);};});","mage/calendar.min.js":"define(['jquery','jquery-ui-modules/widget','jquery-ui-modules/datepicker','jquery-ui-modules/timepicker'],function($){'use strict';var calendarBasePrototype,datepickerPrototype=$.datepicker.constructor.prototype;$.datepicker.markerClassName='_has-datepicker';$.extend(datepickerPrototype,{_getTimezoneDate:function(options){var ms=Date.now();options=options||$.calendarConfig||{};if(typeof options.serverTimezoneOffset!=='undefined'){ms+=new Date().getTimezoneOffset()*60*1000+options.serverTimezoneOffset*1000;}else if(typeof options.serverTimezoneSeconds!=='undefined'){ms=(options.serverTimezoneSeconds+new Date().getTimezoneOffset()*60)*1000;}\nreturn new Date(ms);},_setTimezoneDateDatepicker:function(target){this._setDateDatepicker(target,this._getTimezoneDate());}});$.widget('mage.calendar',{options:{autoComplete:true},_create:function(){this._enableAMPM();this.options=$.extend({},$.calendarConfig?$.calendarConfig:{},this.options.showsTime?{showTime:true,showHour:true,showMinute:true}:{},this.options);this._initPicker(this.element);this._overwriteGenerateHtml();},_picker:function(){return this.options.showsTime?'datetimepicker':'datepicker';},_enableAMPM:function(){if(this.options.timeFormat&&this.options.timeFormat.indexOf('tt')>=0){this.options.ampm=true;}},_overwriteGenerateHtml:function(){$.datepicker.constructor.prototype._generateHTML=function(inst){var today=this._getTimezoneDate(),isRTL=this._get(inst,'isRTL'),showButtonPanel=this._get(inst,'showButtonPanel'),hideIfNoPrevNext=this._get(inst,'hideIfNoPrevNext'),navigationAsDateFormat=this._get(inst,'navigationAsDateFormat'),numMonths=this._getNumberOfMonths(inst),showCurrentAtPos=this._get(inst,'showCurrentAtPos'),stepMonths=this._get(inst,'stepMonths'),isMultiMonth=parseInt(numMonths[0],10)!==1||parseInt(numMonths[1],10)!==1,currentDate=this._daylightSavingAdjust(!inst.currentDay?new Date(9999,9,9):new Date(inst.currentYear,inst.currentMonth,inst.currentDay)),minDate=this._getMinMaxDate(inst,'min'),maxDate=this._getMinMaxDate(inst,'max'),drawMonth=inst.drawMonth-showCurrentAtPos,drawYear=inst.drawYear,maxDraw,prevText=this._get(inst,'prevText'),prev,nextText=this._get(inst,'nextText'),next,currentText=this._get(inst,'currentText'),gotoDate,controls,buttonPanel,firstDay,showWeek=this._get(inst,'showWeek'),dayNames=this._get(inst,'dayNames'),dayNamesMin=this._get(inst,'dayNamesMin'),monthNames=this._get(inst,'monthNames'),monthNamesShort=this._get(inst,'monthNamesShort'),beforeShowDay=this._get(inst,'beforeShowDay'),showOtherMonths=this._get(inst,'showOtherMonths'),selectOtherMonths=this._get(inst,'selectOtherMonths'),defaultDate=this._getDefaultDate(inst),html='',row=0,col=0,selectedDate,cornerClass=' ui-corner-all',group='',calender='',dow=0,thead,day,daysInMonth,leadDays,curRows,numRows,printDate,dRow=0,tbody,daySettings,otherMonth,unselectable;if(drawMonth<0){drawMonth+=12;drawYear--;}\nif(maxDate){maxDraw=this._daylightSavingAdjust(new Date(maxDate.getFullYear(),maxDate.getMonth()-numMonths[0]*numMonths[1]+1,maxDate.getDate()));maxDraw=minDate&&maxDraw<minDate?minDate:maxDraw;while(this._daylightSavingAdjust(new Date(drawYear,drawMonth,1))>maxDraw){drawMonth--;if(drawMonth<0){drawMonth=11;drawYear--;}}}\ninst.drawMonth=drawMonth;inst.drawYear=drawYear;prevText=!navigationAsDateFormat?prevText:this.formatDate(prevText,this._daylightSavingAdjust(new Date(drawYear,drawMonth-stepMonths,1)),this._getFormatConfig(inst));prev=this._canAdjustMonth(inst,-1,drawYear,drawMonth)?'<a class=\"ui-datepicker-prev ui-corner-all\" data-handler=\"prev\" data-event=\"click\"'+' title=\"'+prevText+'\">'+'<span class=\"ui-icon ui-icon-circle-triangle-'+(isRTL?'e':'w')+'\">'+''+prevText+'</span></a>':hideIfNoPrevNext?'':'<a class=\"ui-datepicker-prev ui-corner-all ui-state-disabled\" title=\"'+''+prevText+'\"><span class=\"ui-icon ui-icon-circle-triangle-'+''+(isRTL?'e':'w')+'\">'+prevText+'</span></a>';nextText=!navigationAsDateFormat?nextText:this.formatDate(nextText,this._daylightSavingAdjust(new Date(drawYear,drawMonth+stepMonths,1)),this._getFormatConfig(inst));next=this._canAdjustMonth(inst,+1,drawYear,drawMonth)?'<a class=\"ui-datepicker-next ui-corner-all\" data-handler=\"next\" data-event=\"click\"'+'title=\"'+nextText+'\"><span class=\"ui-icon ui-icon-circle-triangle-'+''+(isRTL?'w':'e')+'\">'+nextText+'</span></a>':hideIfNoPrevNext?'':'<a class=\"ui-datepicker-next ui-corner-all ui-state-disabled\" title=\"'+nextText+'\">'+'<span class=\"ui-icon ui-icon-circle-triangle-'+(isRTL?'w':'e')+'\">'+nextText+'</span></a>';gotoDate=this._get(inst,'gotoCurrent')&&inst.currentDay?currentDate:today;currentText=!navigationAsDateFormat?currentText:this.formatDate(currentText,gotoDate,this._getFormatConfig(inst));controls=!inst.inline?'<button type=\"button\" class=\"ui-datepicker-close ui-state-default ui-priority-primary '+'ui-corner-all\" data-handler=\"hide\" data-event=\"click\">'+\nthis._get(inst,'closeText')+'</button>':'';buttonPanel=showButtonPanel?'<div class=\"ui-datepicker-buttonpane ui-widget-content\">'+(isRTL?controls:'')+\n(this._isInRange(inst,gotoDate)?'<button type=\"button\" class=\"ui-datepicker-current '+'ui-state-default ui-priority-secondary ui-corner-all\" data-handler=\"today\" data-event=\"click\"'+'>'+currentText+'</button>':'')+(isRTL?'':controls)+'</div>':'';firstDay=parseInt(this._get(inst,'firstDay'),10);firstDay=isNaN(firstDay)?0:firstDay;for(row=0;row<numMonths[0];row++){this.maxRows=4;for(col=0;col<numMonths[1];col++){selectedDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,inst.selectedDay));calender='';if(isMultiMonth){calender+='<div class=\"ui-datepicker-group';if(numMonths[1]>1){switch(col){case 0:calender+=' ui-datepicker-group-first';cornerClass=' ui-corner-'+(isRTL?'right':'left');break;case numMonths[1]-1:calender+=' ui-datepicker-group-last';cornerClass=' ui-corner-'+(isRTL?'left':'right');break;default:calender+=' ui-datepicker-group-middle';cornerClass='';}}\ncalender+='\">';}\ncalender+='<div class=\"ui-datepicker-header '+'ui-widget-header ui-helper-clearfix'+cornerClass+'\">'+\n(/all|left/.test(cornerClass)&&parseInt(row,10)===0?isRTL?next:prev:'')+\n(/all|right/.test(cornerClass)&&parseInt(row,10)===0?isRTL?prev:next:'')+\nthis._generateMonthYearHeader(inst,drawMonth,drawYear,minDate,maxDate,row>0||col>0,monthNames,monthNamesShort)+'</div><table class=\"ui-datepicker-calendar\"><thead>'+'<tr>';thead=showWeek?'<th class=\"ui-datepicker-week-col\">'+this._get(inst,'weekHeader')+'</th>':'';for(dow=0;dow<7;dow++){day=(dow+firstDay)%7;thead+='<th'+((dow+firstDay+6)%7>=5?' class=\"ui-datepicker-week-end\"':'')+'>'+'<span title=\"'+dayNames[day]+'\">'+dayNamesMin[day]+'</span></th>';}\ncalender+=thead+'</tr></thead><tbody>';daysInMonth=this._getDaysInMonth(drawYear,drawMonth);if(drawYear===inst.selectedYear&&drawMonth===inst.selectedMonth){inst.selectedDay=Math.min(inst.selectedDay,daysInMonth);}\nleadDays=(this._getFirstDayOfMonth(drawYear,drawMonth)-firstDay+7)%7;curRows=Math.ceil((leadDays+daysInMonth)/ 7);numRows=isMultiMonth?this.maxRows>curRows?this.maxRows:curRows:curRows;this.maxRows=numRows;printDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,1-leadDays));for(dRow=0;dRow<numRows;dRow++){calender+='<tr>';tbody=!showWeek?'':'<td class=\"ui-datepicker-week-col\">'+\nthis._get(inst,'calculateWeek')(printDate)+'</td>';for(dow=0;dow<7;dow++){daySettings=beforeShowDay?beforeShowDay.apply(inst.input?inst.input[0]:null,[printDate]):[true,''];otherMonth=printDate.getMonth()!==drawMonth;unselectable=otherMonth&&!selectOtherMonths||!daySettings[0]||minDate&&printDate<minDate||maxDate&&printDate>maxDate;tbody+='<td class=\"'+\n((dow+firstDay+6)%7>=5?' ui-datepicker-week-end':'')+\n(otherMonth?' ui-datepicker-other-month':'')+\n(printDate.getTime()===selectedDate.getTime()&&drawMonth===inst.selectedMonth&&inst._keyEvent||defaultDate.getTime()===printDate.getTime()&&defaultDate.getTime()===selectedDate.getTime()?' '+this._dayOverClass:'')+\n(unselectable?' '+this._unselectableClass+' ui-state-disabled':'')+\n(otherMonth&&!showOtherMonths?'':' '+daySettings[1]+\n(printDate.getTime()===currentDate.getTime()?' '+this._currentClass:'')+\n(printDate.getDate()===today.getDate()&&printDate.getMonth()===today.getMonth()&&printDate.getYear()===today.getYear()?' ui-datepicker-today':''))+'\"'+\n((!otherMonth||showOtherMonths)&&daySettings[2]?' title=\"'+daySettings[2]+'\"':'')+\n(unselectable?'':' data-handler=\"selectDay\" data-event=\"click\" data-month=\"'+''+printDate.getMonth()+'\" data-year=\"'+printDate.getFullYear()+'\"')+'>'+\n(otherMonth&&!showOtherMonths?'&#xa0;':unselectable?'<span class=\"ui-state-default\">'+printDate.getDate()+'</span>':'<a class=\"ui-state-default'+\n(printDate.getTime()===today.getTime()?' ':'')+\n(printDate.getTime()===currentDate.getTime()?' ui-state-active':'')+\n(otherMonth?' ui-priority-secondary':'')+'\" data-date=\"'+printDate.getDate()+'\" href=\"#\">'+\nprintDate.getDate()+'</a>')+'</td>';printDate.setDate(printDate.getDate()+1);printDate=this._daylightSavingAdjust(printDate);}\ncalender+=tbody+'</tr>';}\ndrawMonth++;if(drawMonth>11){drawMonth=0;drawYear++;}\ncalender+='</tbody></table>'+(isMultiMonth?'</div>'+\n(numMonths[0]>0&&col===numMonths[1]-1?'<div class=\"ui-datepicker-row-break\"></div>':''):'');group+=calender;}\nhtml+=group;}\nhtml+=buttonPanel+($.ui.ie6&&!inst.inline?'<iframe src=\"javascript:false;\" class=\"ui-datepicker-cover\" frameborder=\"0\"></iframe>':'');inst._keyEvent=false;return html;};},_setCurrentDate:function(element){if(!element.val()){element[this._picker()]('setTimezoneDate').val('');}},_initPicker:function(element){var picker=element[this._picker()](this.options),pickerButtonText=picker.next('.ui-datepicker-trigger').find('img').attr('title');picker.next('.ui-datepicker-trigger').addClass('v-middle').text('').append('<span>'+pickerButtonText+'</span>');$(element).attr('autocomplete',this.options.autoComplete?'on':'off');this._setCurrentDate(element);},_destroy:function(){this.element[this._picker()]('destroy');this._super();},getTimezoneDate:function(){return datepickerPrototype._getTimezoneDate.call(this,this.options);}});calendarBasePrototype=$.mage.calendar.prototype;$.widget('mage.calendar',$.extend({},calendarBasePrototype,{dateTimeFormat:{date:{'EEEE':'DD','EEE':'D','EE':'D','E':'D','D':'o','MMMM':'MM','MMM':'M','MM':'mm','M':'mm','yyyy':'yy','y':'yy','Y':'yy','yy':'yy'},time:{'a':'TT'}},_create:function(){if(this.options.dateFormat){this.options.dateFormat=this._convertFormat(this.options.dateFormat,'date');}\nif(this.options.timeFormat){this.options.timeFormat=this._convertFormat(this.options.timeFormat,'time');}\ncalendarBasePrototype._create.apply(this,arguments);},_convertFormat:function(format,type){var symbols=format.match(/([a-z]+)/ig),separators=format.match(/([^a-z]+)/ig),self=this,convertedFormat='';if(symbols){$.each(symbols,function(key,val){convertedFormat+=(self.dateTimeFormat[type][val]||val)+\n(separators[key]||'');});}\nreturn convertedFormat;}}));$.widget('mage.dateRange',$.mage.calendar,{_initPicker:function(){var from,to;if(this.options.from&&this.options.to){from=this.element.find('#'+this.options.from.id);to=this.element.find('#'+this.options.to.id);this.options.onSelect=$.proxy(function(selectedDate){to[this._picker()]('option','minDate',selectedDate);},this);$.mage.calendar.prototype._initPicker.call(this,from);from.on('change',$.proxy(function(){to[this._picker()]('option','minDate',from[this._picker()]('getDate'));},this));this.options.onSelect=$.proxy(function(selectedDate){from[this._picker()]('option','maxDate',selectedDate);},this);$.mage.calendar.prototype._initPicker.call(this,to);to.on('change',$.proxy(function(){from[this._picker()]('option','maxDate',to[this._picker()]('getDate'));},this));}},_destroy:function(){if(this.options.from){this.element.find('#'+this.options.from.id)[this._picker()]('destroy');}\nif(this.options.to){this.element.find('#'+this.options.to.id)[this._picker()]('destroy');}\nthis._super();}});$.datepicker._gotoTodayOriginal=$.datepicker._gotoToday;$.datepicker._showDatepickerOriginal=$.datepicker._showDatepicker;$.datepicker._showDatepicker=function(input){if(!input.disabled){$.datepicker._showDatepickerOriginal.call(this,input);}};$.datepicker._gotoToday=function(el){$(el).datepicker('setTimezoneDate').trigger('blur').trigger('change');};return{dateRange:$.mage.dateRange,calendar:$.mage.calendar};});","mage/smart-keyboard-handler.min.js":"define(['jquery'],function($){'use strict';function KeyboardHandler(){var body=$('body'),focusState=false,tabFocusClass='_keyfocus',productsGrid='[data-container=\"product-grid\"]',catalogProductsGrid=$(productsGrid),CODE_TAB=9;function onFocusInHandler(){focusState=true;body.addClass(tabFocusClass).off('focusin.keyboardHandler',onFocusInHandler);}\nfunction onClickHandler(){focusState=false;body.removeClass(tabFocusClass).off('click',onClickHandler);}\nfunction smartKeyboardFocus(){$(document).on('keydown keypress',function(event){if(event.which===CODE_TAB&&!focusState){body.on('focusin.keyboardHandler',onFocusInHandler).on('click',onClickHandler);}});if(catalogProductsGrid.length){body.on('focusin.gridProducts',productsGrid,function(){if(body.hasClass(tabFocusClass)){$(this).addClass('active');}});body.on('focusout.gridProducts',productsGrid,function(){$(this).removeClass('active');});}}\nfunction handleFocus(element){element.on('focusin.emulateTabFocus',function(){focusState=true;body.addClass(tabFocusClass);element.off();});element.on('focusout.emulateTabFocus',function(){focusState=false;body.removeClass(tabFocusClass);element.off();});}\nreturn{apply:smartKeyboardFocus,focus:handleFocus};}\nreturn new KeyboardHandler;});","mage/polyfill.min.js":"(function(root,doc){'use strict';var Storage;try{if(!root.localStorage||!root.sessionStorage){throw new Error();}\nlocalStorage.setItem('storage_test',1);localStorage.removeItem('storage_test');}catch(e){Storage=function(type){var data;function createCookie(name,value,days){var date,expires;if(days){date=new Date();date.setTime(date.getTime()+days*24*60*60*1000);expires='; expires='+date.toGMTString();}else{expires='';}\ndoc.cookie=name+'='+value+expires+'; path=/';}\nfunction readCookie(name){var nameEQ=name+'=',ca=doc.cookie.split(';'),i=0,c;for(i=0;i<ca.length;i++){c=ca[i];while(c.charAt(0)===' '){c=c.substring(1,c.length);}\nif(c.indexOf(nameEQ)===0){return c.substring(nameEQ.length,c.length);}}\nreturn null;}\nfunction getCookieName(){if(type!=='session'){return'localstorage';}\nif(!root.name){root.name=new Date().getTime();}\nreturn'sessionStorage'+root.name;}\nfunction setData(dataObject){data=encodeURIComponent(JSON.stringify(dataObject));createCookie(getCookieName(),data,365);}\nfunction clearData(){createCookie(getCookieName(),'',365);}\nfunction getData(){var dataResponse=readCookie(getCookieName());return dataResponse?JSON.parse(decodeURIComponent(dataResponse)):{};}\ndata=getData();return{length:0,clear:function(){data={};this.length=0;clearData();},getItem:function(key){return data[key]===undefined?null:data[key];},key:function(i){var ctr=0,k;for(k in data){if(data.hasOwnProperty(k)){if(ctr.toString()===i.toString()){return k;}\nctr++;}}\nreturn null;},removeItem:function(key){delete data[key];this.length--;setData(data);},setItem:function(key,value){data[key]=value.toString();this.length++;setData(data);}};};root.localStorage.prototype=root.localStorage=new Storage('local');root.sessionStorage.prototype=root.sessionStorage=new Storage('session');}})(window,document);","mage/tabs.min.js":"define(['jquery','jquery-ui-modules/widget','jquery/ui-modules/widgets/tabs','mage/mage','mage/collapsible'],function($){'use strict';$.widget('mage.tabs',{options:{active:0,disabled:[],openOnFocus:true,collapsible:false,collapsibleElement:'[data-role=collapsible]',header:'[data-role=title]',content:'[data-role=content]',trigger:'[data-role=trigger]',closedState:null,openedState:null,disabledState:null,ajaxUrlElement:'[data-ajax=true]',ajaxContent:false,loadingClass:null,saveState:false,animate:false,icons:{activeHeader:null,header:null}},_create:function(){if(typeof this.options.disabled==='string'){this.options.disabled=this.options.disabled.split(' ').map(function(item){return parseInt(item,10);});}\nthis._processPanels();this._handleDeepLinking();this._processTabIndex();this._closeOthers();this._bind();},_destroy:function(){$.each(this.collapsibles,function(){$(this).collapsible('destroy');});},_handleDeepLinking:function(){var self=this,anchor=window.location.hash,isValid=$.mage.isValidSelector(anchor),anchorId=anchor.replace('#','');if(anchor&&isValid){$.each(self.contents,function(i){if($(this).attr('id')===anchorId||$(this).find('#'+anchorId).length){self.collapsibles.not(self.collapsibles.eq(i)).collapsible('forceDeactivate');return false;}});}},_processTabIndex:function(){var self=this;self.triggers.attr('tabIndex',0);$.each(this.collapsibles,function(i){self.triggers.attr('tabIndex',0);self.triggers.eq(i).attr('tabIndex',0);});},_processPanels:function(){var isNotNested=this._isNotNested.bind(this);this.contents=this.element.find(this.options.content).filter(isNotNested);this.collapsibles=this.element.find(this.options.collapsibleElement).filter(isNotNested);this.collapsibles.attr('role','presentation').parent().attr('role','tablist');this.headers=this.element.find(this.options.header).filter(isNotNested);if(this.headers.length===0){this.headers=this.collapsibles;}\nthis.triggers=this.element.find(this.options.trigger).filter(isNotNested);if(this.triggers.length===0){this.triggers=this.headers;}\nthis._callCollapsible();},_isNotNested:function(index,element){var parentContent=$(element).parents(this.options.content);return!parentContent.length||!this.element.find(parentContent).length;},_callCollapsible:function(){var self=this,disabled=false,active=false;$.each(this.collapsibles,function(i){disabled=active=false;if($.inArray(i,self.options.disabled)!==-1){disabled=true;}\nif(i===self.options.active){active=true;}\nself._instantiateCollapsible(this,i,active,disabled);});},_instantiateCollapsible:function(element,index,active,disabled){$(element).collapsible($.extend({},this.options,{active:active,disabled:disabled,header:this.headers.eq(index),content:this.contents.eq(index),trigger:this.triggers.eq(index)}));},_closeOthers:function(){var self=this;$.each(this.collapsibles,function(){$(this).on('beforeOpen',function(){self.collapsibles.not(this).collapsible('forceDeactivate');});});},activate:function(index){this._toggleActivate('activate',index);},deactivate:function(index){this._toggleActivate('deactivate',index);},_toggleActivate:function(action,index){this.collapsibles.eq(index).collapsible(action);},disable:function(index){this._toggleEnable('disable',index);},enable:function(index){this._toggleEnable('enable',index);},_toggleEnable:function(action,index){var self=this;if(Array.isArray(index)){$.each(index,function(){self.collapsibles.eq(this).collapsible(action);});}else if(index===undefined){this.collapsibles.collapsible(action);}else{this.collapsibles.eq(index).collapsible(action);}},_keydown:function(event){var self=this,keyCode,toFocus,toFocusIndex,enabledTriggers,length,currentIndex,nextToFocus;if(event.altKey||event.ctrlKey){return;}\nkeyCode=$.ui.keyCode;toFocus=false;enabledTriggers=[];$.each(this.triggers,function(){if(!self.collapsibles.eq(self.triggers.index($(this))).collapsible('option','disabled')){enabledTriggers.push(this);}});length=$(enabledTriggers).length;currentIndex=$(enabledTriggers).index(event.target);nextToFocus=function(direction){if(length>0){if(direction==='right'){toFocusIndex=(currentIndex+1)%length;}else{toFocusIndex=(currentIndex+length-1)%length;}\nreturn enabledTriggers[toFocusIndex];}\nreturn event.target;};switch(event.keyCode){case keyCode.RIGHT:case keyCode.DOWN:toFocus=nextToFocus('right');break;case keyCode.LEFT:case keyCode.UP:toFocus=nextToFocus('left');break;case keyCode.HOME:toFocus=enabledTriggers[0];break;case keyCode.END:toFocus=enabledTriggers[length-1];break;}\nif(toFocus){toFocusIndex=this.triggers.index(toFocus);$(event.target).attr('tabIndex',-1);$(toFocus).attr('tabIndex',0);toFocus.focus();if(this.options.openOnFocus){this.activate(toFocusIndex);}\nevent.preventDefault();}},_bind:function(){var events={keydown:'_keydown'};this._off(this.triggers);this._on(this.triggers,events);}});return $.mage.tabs;});","mage/dropdowns.min.js":"define(['jquery'],function($){'use strict';$.fn.dropdown=function(options){var defaults={parent:null,autoclose:true,btnArrow:'.arrow',menu:'[data-target=\"dropdown\"]',activeClass:'active'},actionElem=$(this),self=this;options=$.extend(defaults,options);actionElem=$(this);self=this;this.openDropdown=function(elem){elem.addClass(options.activeClass).attr('aria-expanded',true).parent().addClass(options.activeClass);elem.parent().find(options.menu).attr('aria-hidden',false);$(options.btnArrow,elem).text('-');};this.closeDropdown=function(elem){elem.removeClass(options.activeClass).attr('aria-expanded',false).parent().removeClass(options.activeClass);elem.parent().find(options.menu).attr('aria-hidden',true);$(options.btnArrow,elem).text('+');};this.reset=function(param){var params=param||{},dropdowns=params.elems||actionElem;dropdowns.each(function(index,elem){self.closeDropdown($(elem));});};if(options.autoclose===true){$(document).on('click.hideDropdown',this.reset);$(document).on('keyup.hideDropdown',function(e){var ESC_CODE='27';if(e.keyCode==ESC_CODE){self.reset();}});}\nif(options.events){$.each(options.events,function(index,event){$(document).on(event.name,event.selector,event.action);});}\nreturn this.each(function(){var elem=$(this),parent=$(options.parent).length>0?$(options.parent):elem.parent(),menu=$(options.menu,parent)||$('.dropdown-menu',parent);if(menu.length){elem.attr('aria-haspopup',true);}\nif(!elem.hasClass(options.activeClass)){elem.attr('aria-expanded',false);menu.attr('aria-hidden',true);}else{elem.attr('aria-expanded',true);menu.attr('aria-hidden',false);}\nif(!elem.is('a, button')){elem.attr('role','button');elem.attr('tabindex',0);}\nif(elem.attr('data-trigger-keypress-button')){elem.on('keypress',function(e){var keyCode=e.keyCode||e.which,ENTER_CODE=13;if(keyCode===ENTER_CODE){e.preventDefault();elem.trigger('click.toggleDropdown');}});}\nelem.on('click.toggleDropdown',function(){var el=actionElem;if(options.autoclose===true){actionElem=$();$(document).trigger('click.hideDropdown');actionElem=el;}\nself[el.hasClass(options.activeClass)?'closeDropdown':'openDropdown'](elem);return false;});});};return function(data,el){$(el).dropdown(data);};});","mage/collapsible.min.js":"define(['jquery','jquery-ui-modules/widget','jquery-ui-modules/core','jquery/jquery-storageapi','mage/mage'],function($){'use strict';var hideProps={},showProps={};hideProps.height='hide';showProps.height='show';$.widget('mage.collapsible',{options:{active:false,disabled:false,collapsible:true,header:'[data-role=title]',content:'[data-role=content]',trigger:'[data-role=trigger]',closedState:null,openedState:null,disabledState:null,ajaxUrlElement:'[data-ajax=true]',ajaxContent:false,loadingClass:null,saveState:false,animate:false,icons:{activeHeader:null,header:null},collateral:{element:null,openedState:null}},_create:function(){this.storage=$.localStorage;this.icons=false;if(typeof this.options.icons==='string'){this.options.icons=JSON.parse(this.options.icons);}\nthis._processPanels();this._processState();this._refresh();if(this.options.icons.header&&this.options.icons.activeHeader){this._createIcons();this.icons=true;}\nthis.element.on('dimensionsChanged',function(e){if(e.target&&e.target.classList.contains('active')){this._scrollToTopIfNotVisible();}}.bind(this));this._bind('click');this._trigger('created');},_refresh:function(){this.trigger.attr('tabIndex',0);if(this.options.active&&!this.options.disabled){if(this.options.openedState){this.element.addClass(this.options.openedState);}\nif(this.options.collateral.element&&this.options.collateral.openedState){$(this.options.collateral.element).addClass(this.options.collateral.openedState);}\nif(this.options.ajaxContent){this._loadContent();}\nthis.header.attr({'aria-selected':false});}else if(this.options.disabled){this.disable();}else{this.content.hide();if(this.options.closedState){this.element.addClass(this.options.closedState);}}},_processState:function(){var anchor=window.location.hash,isValid=$.mage.isValidSelector(anchor),urlPath=window.location.pathname.replace(/\\./g,''),state;this.stateKey=encodeURIComponent(urlPath+this.element.attr('id'));if(isValid&&($(this.content.find(anchor)).length>0||this.content.attr('id')===anchor.replace('#',''))){this.element.parents('[data-collapsible=true]').collapsible('forceActivate');if(!this.options.disabled){this.options.active=true;if(this.options.saveState){this.storage.set(this.stateKey,true);}}}else if(this.options.saveState&&!this.options.disabled){state=this.storage.get(this.stateKey);if(typeof state==='undefined'||state===null){this.storage.set(this.stateKey,this.options.active);}else if(state===true){this.options.active=true;}else if(state===false){this.options.active=false;}}},_createIcons:function(){var icons=this.options.icons;if(icons){$('<span>').addClass(icons.header).attr('data-role','icons').prependTo(this.header);if(this.options.active&&!this.options.disabled){this.header.children('[data-role=icons]').removeClass(icons.header).addClass(icons.activeHeader);}}},_destroyIcons:function(){this.header.children('[data-role=icons]').remove();},_destroy:function(){var options=this.options;this.element.removeAttr('data-collapsible');this.trigger.removeAttr('tabIndex');if(options.openedState){this.element.removeClass(options.openedState);}\nif(this.options.collateral.element&&this.options.collateral.openedState){$(this.options.collateral.element).removeClass(this.options.collateral.openedState);}\nif(options.closedState){this.element.removeClass(options.closedState);}\nif(options.disabledState){this.element.removeClass(options.disabledState);}\nif(this.icons){this._destroyIcons();}},_processPanels:function(){var headers,triggers;this.element.attr('data-collapsible','true');if(typeof this.options.header==='object'){this.header=this.options.header;}else{headers=this.element.find(this.options.header);if(headers.length>0){this.header=headers.eq(0);}else{this.header=this.element;}}\nif(typeof this.options.content==='object'){this.content=this.options.content;}else{this.content=this.header.next(this.options.content).eq(0);}\nif(this.header.attr('id')){this.content.attr('aria-labelledby',this.header.attr('id'));}\nif(this.content.attr('id')){this.header.attr('aria-controls',this.content.attr('id'));}\nthis.header.attr({'role':'tab','aria-selected':this.options.active,'aria-expanded':this.options.active});if(this.header.parent().attr('role')!=='presentation'){this.header.parent().attr('role','tablist');}\nthis.content.attr({'role':'tabpanel','aria-hidden':!this.options.active});if(typeof this.options.trigger==='object'){this.trigger=this.options.trigger;}else{triggers=this.header.find(this.options.trigger);if(triggers.length>0){this.trigger=triggers.eq(0);}else{this.trigger=this.header;}}},_keydown:function(event){var keyCode;if(event.altKey||event.ctrlKey){return;}\nkeyCode=$.ui.keyCode;switch(event.keyCode){case keyCode.SPACE:case keyCode.ENTER:this._eventHandler(event);break;}},_bind:function(event){var self=this;this.events={keydown:'_keydown'};if(event){$.each(event.split(' '),function(index,eventName){self.events[eventName]='_eventHandler';});}\nthis._off(this.trigger);if(!this.options.disabled){this._on(this.trigger,this.events);}},disable:function(){this.options.disabled=true;this._off(this.trigger);this.forceDeactivate();if(this.options.disabledState){this.element.addClass(this.options.disabledState);}\nthis.trigger.attr('tabIndex',-1);},enable:function(){this.options.disabled=false;this._on(this.trigger,this.events);this.forceActivate();if(this.options.disabledState){this.element.removeClass(this.options.disabledState);}\nthis.trigger.attr('tabIndex',0);},_eventHandler:function(event){if(this.options.active&&this.options.collapsible){this.deactivate();}else{this.activate();}\nevent.preventDefault();},_animate:function(prop){var duration,easing,animate=this.options.animate;if(typeof animate==='number'){duration=animate;}\nif(typeof animate==='string'){animate=JSON.parse(animate);}\nduration=duration||animate.duration;easing=animate.easing;this.content.animate(prop,duration,easing);},deactivate:function(){if(this.options.animate){this._animate(hideProps);}else{this.content.hide();}\nthis._close();},forceDeactivate:function(){this.content.hide();this._close();},_close:function(){this.options.active=false;if(this.options.saveState){this.storage.set(this.stateKey,false);}\nif(this.options.openedState){this.element.removeClass(this.options.openedState);}\nif(this.options.collateral.element&&this.options.collateral.openedState){$(this.options.collateral.element).removeClass(this.options.collateral.openedState);}\nif(this.options.closedState){this.element.addClass(this.options.closedState);}\nif(this.icons){this.header.children('[data-role=icons]').removeClass(this.options.icons.activeHeader).addClass(this.options.icons.header);}\nthis.header.attr({'aria-selected':'false','aria-expanded':'false'});this.content.attr({'aria-hidden':'true'});this.element.trigger('dimensionsChanged',{opened:false});},activate:function(){if(this.options.disabled){return;}\nif(this.options.animate){this._animate(showProps);}else{this.content.show();}\nthis._open();},forceActivate:function(){if(!this.options.disabled){this.content.show();this._open();}},_open:function(){this.element.trigger('beforeOpen');this.options.active=true;if(this.options.ajaxContent){this._loadContent();}\nif(this.options.saveState){this.storage.set(this.stateKey,true);}\nif(this.options.openedState){this.element.addClass(this.options.openedState);}\nif(this.options.collateral.element&&this.options.collateral.openedState){$(this.options.collateral.element).addClass(this.options.collateral.openedState);}\nif(this.options.closedState){this.element.removeClass(this.options.closedState);}\nif(this.icons){this.header.children('[data-role=icons]').removeClass(this.options.icons.header).addClass(this.options.icons.activeHeader);}\nthis.header.attr({'aria-selected':'true','aria-expanded':'true'});this.content.attr({'aria-hidden':'false'});this.element.trigger('dimensionsChanged',{opened:true});},_loadContent:function(){var url=this.element.find(this.options.ajaxUrlElement).attr('href'),that=this;if(url){that.xhr=$.get({url:url,dataType:'html'},function(){});}\nif(that.xhr&&that.xhr.statusText!=='canceled'){if(that.options.loadingClass){that.element.addClass(that.options.loadingClass);}\nthat.content.attr('aria-busy','true');that.xhr.done(function(response){setTimeout(function(){that.content.html(response);},1);});that.xhr.always(function(jqXHR,status){setTimeout(function(){if(status==='abort'){that.content.stop(false,true);}\nif(that.options.loadingClass){that.element.removeClass(that.options.loadingClass);}\nthat.content.removeAttr('aria-busy');if(jqXHR===that.xhr){delete that.xhr;}},1);});}},_scrollToTopIfNotVisible:function(){if(this._isElementOutOfViewport()){this.header[0].scrollIntoView();}},_isElementOutOfViewport:function(){var headerRect=this.header[0].getBoundingClientRect(),contentRect=this.content.get().length?this.content[0].getBoundingClientRect():false,headerOut,contentOut;headerOut=headerRect.bottom-headerRect.height<0||headerRect.right-headerRect.width<0||headerRect.left+headerRect.width>window.innerWidth||headerRect.top+headerRect.height>window.innerHeight;contentOut=contentRect?contentRect.bottom-contentRect.height<0||contentRect.right-contentRect.width<0||contentRect.left+contentRect.width>window.innerWidth||contentRect.top+contentRect.height>window.innerHeight:false;return headerOut?headerOut:contentOut;}});return $.mage.collapsible;});","mage/bootstrap.min.js":"define(['jquery','mage/apply/main','Magento_Ui/js/lib/knockout/bootstrap'],function($,mage){'use strict';$.ajaxSetup({cache:false});setTimeout(mage.apply);});","mage/tooltip.min.js":"define(['jquery','jquery-ui-modules/tooltip'],function($){'use strict';$.widget('mage.tooltip',$.ui.tooltip,{});return $.mage.tooltip;});","mage/storage.min.js":"define(['jquery','mage/url'],function($,urlBuilder){'use strict';return{get:function(url,global,contentType,headers){headers=headers||{};global=global===undefined?true:global;contentType=contentType||'application/json';return $.ajax({url:urlBuilder.build(url),type:'GET',global:global,contentType:contentType,headers:headers});},post:function(url,data,global,contentType,headers){headers=headers||{};global=global===undefined?true:global;contentType=contentType||'application/json';return $.ajax({url:urlBuilder.build(url),type:'POST',data:data,global:global,contentType:contentType,headers:headers});},put:function(url,data,global,contentType,headers){var ajaxSettings={};headers=headers||{};global=global===undefined?true:global;contentType=contentType||'application/json';ajaxSettings.url=urlBuilder.build(url);ajaxSettings.type='PUT';ajaxSettings.data=data;ajaxSettings.global=global;ajaxSettings.contentType=contentType;ajaxSettings.headers=headers;return $.ajax(ajaxSettings);},delete:function(url,global,contentType,headers){headers=headers||{};global=global===undefined?true:global;contentType=contentType||'application/json';return $.ajax({url:urlBuilder.build(url),type:'DELETE',global:global,contentType:contentType,headers:headers});}};});","mage/item-table.min.js":"define(['jquery','mage/template','jquery-ui-modules/widget'],function($,mageTemplate){'use strict';$.widget('mage.itemTable',{options:{addBlock:'[data-template=\"add-block\"]',addBlockData:{},addEvent:'click',addSelector:'[data-role=\"add\"]',itemsSelector:'[data-container=\"items\"]',keepLastRow:true},_add:function(){var hideShowDelete,deletableItems,addedBlock;this.rowIndex++;this.options.addBlockData.rowIndex=this.rowIndex;addedBlock=$(this.addBlockTmpl({data:this.options.addBlockData}));this.element.find(this.options.itemsSelector).append(addedBlock);addedBlock.trigger('contentUpdated');deletableItems=this._getDeletableItems();hideShowDelete='showDelete';if(this.options.keepLastRow&&deletableItems.length===1){hideShowDelete='hideDelete';}\n$.each(deletableItems,function(index){$(deletableItems[index]).trigger(hideShowDelete);});},_bind:function(){var handlers={};handlers[this.options.addEvent+' '+this.options.addSelector]='_add';handlers.deleteItem='_onDeleteItem';this._on(handlers);},_create:function(){this._bind();this.addBlockTmpl=mageTemplate(this.options.addBlock);this.rowIndex=-1;if(this.options.addBlockData==null||typeof this.options.addBlockData!=='object'){this.options.addBlockData={};}\nthis._add();},_getDeletableItems:function(){return this.element.find(this.options.itemsSelector+'> .deletableItem');},_onDeleteItem:function(e){var deletableItems;e.stopPropagation();$(e.target).remove();if(this.options.keepLastRow){deletableItems=this._getDeletableItems();if(deletableItems.length===1){$(deletableItems[0]).trigger('hideDelete');}}}});return $.mage.itemTable;});","mage/accordion.min.js":"define(['jquery','mage/tabs'],function($,tabs){'use strict';$.widget('mage.accordion',tabs,{options:{active:[0],multipleCollapsible:false,openOnFocus:false},_callCollapsible:function(){var self=this,disabled=false,active=false;if(typeof this.options.active==='string'){this.options.active=this.options.active.split(' ').map(function(item){return parseInt(item,10);});}\n$.each(this.collapsibles,function(i){disabled=active=false;if($.inArray(i,self.options.disabled)!==-1){disabled=true;}\nif($.inArray(i,self.options.active)!==-1){active=true;}\nself._instantiateCollapsible(this,i,active,disabled);});},_toggleActivate:function(action,index){var self=this;if(Array.isArray(index&&this.options.multipleCollapsible)){$.each(index,function(){self.collapsibles.eq(this).collapsible(action);});}else if(index===undefined&&this.options.multipleCollapsible){this.collapsibles.collapsible(action);}else{this._super(action,index);}},_handleDeepLinking:function(){if(!this.options.multipleCollapsible){this._super();}},_closeOthers:function(){var self=this;if(!this.options.multipleCollapsible){$.each(this.collapsibles,function(){$(this).on('beforeOpen',function(){self.collapsibles.not(this).collapsible('deactivate');});});}\n$.each(this.collapsibles,function(){$(this).on('beforeOpen',function(){var section=$(this);section.addClass('allow').prevAll().addClass('allow');section.nextAll().removeClass('allow');});});}});return $.mage.accordion;});","mage/loader.min.js":"define(['jquery','mage/template','jquery-ui-modules/widget','mage/translate'],function($,mageTemplate){'use strict';$.widget('mage.loader',{loaderStarted:0,options:{icon:'',texts:{loaderText:$.mage.__('Please wait...'),imgAlt:$.mage.__('Loading...')},template:'<div class=\"loading-mask\" data-role=\"loader\">'+'<div class=\"loader\">'+'<img alt=\"<%- data.texts.imgAlt %>\" src=\"<%- data.icon %>\">'+'<p><%- data.texts.loaderText %></p>'+'</div>'+'</div>'},_create:function(){this._bind();},_bind:function(){this._on({'processStop':'hide','processStart':'show','show.loader':'show','hide.loader':'hide','contentUpdated.loader':'_contentUpdated'});},_contentUpdated:function(e){this.show(e);},show:function(e,ctx){this._render();this.loaderStarted++;this.spinner.show();if(ctx){this.spinner.css({width:ctx.outerWidth(),height:ctx.outerHeight(),position:'absolute'}).position({my:'top left',at:'top left',of:ctx});}\nreturn false;},hide:function(){if(this.loaderStarted>0){this.loaderStarted--;if(this.loaderStarted===0){this.spinner.hide();}}\nreturn false;},_render:function(){var html;if(!this.spinnerTemplate){this.spinnerTemplate=mageTemplate(this.options.template);html=$(this.spinnerTemplate({data:this.options}));html.prependTo(this.element);this.spinner=html;}},_destroy:function(){this.spinner.remove();}});$.widget('mage.loaderAjax',{options:{defaultContainer:'[data-container=body]',loadingClass:'ajax-loading'},_create:function(){this._bind();if(window.console&&!this.element.is(this.options.defaultContainer)&&$.mage.isDevMode(undefined)){console.warn('This widget is intended to be attached to the body, not below.');}},_bind:function(){$(document).on({'ajaxSend':this._onAjaxSend.bind(this),'ajaxComplete':this._onAjaxComplete.bind(this)});},_getJqueryObj:function(loaderContext){var ctx;if(loaderContext){if(loaderContext.jquery){ctx=loaderContext;}else{ctx=$(loaderContext);}}else{ctx=$('[data-container=\"body\"]');}\nreturn ctx;},_onAjaxSend:function(e,jqxhr,settings){var ctx;$(this.options.defaultContainer).addClass(this.options.loadingClass).attr({'aria-busy':true});if(settings&&settings.showLoader){ctx=this._getJqueryObj(settings.loaderContext);ctx.trigger('processStart');if(window.console&&!ctx.parents('[data-role=\"loader\"]').length){console.warn('Expected to start loader but did not find one in the dom');}}},_onAjaxComplete:function(e,jqxhr,settings){$(this.options.defaultContainer).removeClass(this.options.loadingClass).attr('aria-busy',false);if(settings&&settings.showLoader){this._getJqueryObj(settings.loaderContext).trigger('processStop');}}});return{loader:$.mage.loader,loaderAjax:$.mage.loaderAjax};});","mage/menu.min.js":"define(['jquery','matchMedia','jquery-ui-modules/menu','mage/translate'],function($,mediaCheck){'use strict';$.widget('mage.menu',$.ui.menu,{options:{responsive:false,expanded:false,showDelay:42,hideDelay:300,delay:0,mediaBreakpoint:'(max-width: 768px)'},_create:function(){var self=this;this.delay=this.options.delay;this._super();$(window).on('resize',function(){self.element.find('.submenu-reverse').removeClass('submenu-reverse');});},_init:function(){this._super();if(this.options.expanded===true){this.isExpanded();}\nif(this.options.responsive===true){mediaCheck({media:this.options.mediaBreakpoint,entry:$.proxy(function(){this._toggleMobileMode();},this),exit:$.proxy(function(){this._toggleDesktopMode();},this)});}\nthis._assignControls()._listen();this._setActiveMenu();},_assignControls:function(){this.controls={toggleBtn:$('[data-action=\"toggle-nav\"]')};return this;},_listen:function(){var controls=this.controls,toggle=this.toggle;controls.toggleBtn.off('click');controls.toggleBtn.on('click',toggle.bind(this));},toggle:function(){var html=$('html');if(html.hasClass('nav-open')){html.removeClass('nav-open');setTimeout(function(){html.removeClass('nav-before-open');},this.options.hideDelay);}else{html.addClass('nav-before-open');setTimeout(function(){html.addClass('nav-open');},this.options.showDelay);}},_setActiveMenu:function(){var currentUrl=window.location.href.split('?')[0];if(!this._setActiveMenuForCategory(currentUrl)){this._setActiveMenuForProduct(currentUrl);}},_setActiveMenuForCategory:function(url){var activeCategoryLink=this.element.find('a[href=\"'+url+'\"]'),classes,classNav;if(!activeCategoryLink||!activeCategoryLink.hasClass('ui-menu-item-wrapper')){return false;}else if(!activeCategoryLink.parent().hasClass('active')){activeCategoryLink.parent().addClass('active');classes=activeCategoryLink.parent().attr('class');classNav=classes.match(/(nav\\-)[0-9]+(\\-[0-9]+)+/gi);if(classNav){this._setActiveParent(classNav[0]);}}\nreturn true;},_setActiveParent:function(childClassName){var parentElement,parentClass=childClassName.substr(0,childClassName.lastIndexOf('-'));if(parentClass.lastIndexOf('-')!==-1){parentElement=this.element.find('.'+parentClass);if(parentElement){parentElement.addClass('has-active');}\nthis._setActiveParent(parentClass);}},_setActiveMenuForProduct:function(currentUrl){var categoryUrlExtension,lastUrlSection,possibleCategoryUrl,firstCategoryUrl=this.element.find('> li a').attr('href');if(firstCategoryUrl){lastUrlSection=firstCategoryUrl.substr(firstCategoryUrl.lastIndexOf('/'));categoryUrlExtension=lastUrlSection.lastIndexOf('.')!==-1?lastUrlSection.substr(lastUrlSection.lastIndexOf('.')):'';possibleCategoryUrl=currentUrl.substr(0,currentUrl.lastIndexOf('/'))+categoryUrlExtension;this._setActiveMenuForCategory(possibleCategoryUrl);}},isExpanded:function(){var subMenus=this.element.find(this.options.menus),expandedMenus=subMenus.find(this.options.menus);expandedMenus.addClass('expanded');},_activate:function(event){window.location.href=this.active.find('> a').attr('href');this.collapseAll(event);},_keydown:function(event){var match,prev,character,skip,regex,preventDefault=true;function escape(value){return value.replace(/[\\-\\[\\]{}()*+?.,\\\\\\^$|#\\s]/g,'\\\\$&');}\nif(this.active.closest(this.options.menus).attr('aria-expanded')!='true'){switch(event.keyCode){case $.ui.keyCode.PAGE_UP:this.previousPage(event);break;case $.ui.keyCode.PAGE_DOWN:this.nextPage(event);break;case $.ui.keyCode.HOME:this._move('first','first',event);break;case $.ui.keyCode.END:this._move('last','last',event);break;case $.ui.keyCode.UP:this.previous(event);break;case $.ui.keyCode.DOWN:if(this.active&&!this.active.is('.ui-state-disabled')){this.expand(event);}\nbreak;case $.ui.keyCode.LEFT:this.previous(event);break;case $.ui.keyCode.RIGHT:this.next(event);break;case $.ui.keyCode.ENTER:case $.ui.keyCode.SPACE:this._activate(event);break;case $.ui.keyCode.ESCAPE:this.collapse(event);break;default:preventDefault=false;prev=this.previousFilter||'';character=String.fromCharCode(event.keyCode);skip=false;clearTimeout(this.filterTimer);if(character===prev){skip=true;}else{character=prev+character;}\nregex=new RegExp('^'+escape(character),'i');match=this.activeMenu.children('.ui-menu-item').filter(function(){return regex.test($(this).children('a').text());});match=skip&&match.index(this.active.next())!==-1?this.active.nextAll('.ui-menu-item'):match;if(!match.length){character=String.fromCharCode(event.keyCode);regex=new RegExp('^'+escape(character),'i');match=this.activeMenu.children('.ui-menu-item').filter(function(){return regex.test($(this).children('a').text());});}\nif(match.length){this.focus(event,match);if(match.length>1){this.previousFilter=character;this.filterTimer=this._delay(function(){delete this.previousFilter;},1000);}else{delete this.previousFilter;}}else{delete this.previousFilter;}}}else{switch(event.keyCode){case $.ui.keyCode.DOWN:this.next(event);break;case $.ui.keyCode.UP:this.previous(event);break;case $.ui.keyCode.RIGHT:if(this.active&&!this.active.is('.ui-state-disabled')){this.expand(event);}\nbreak;case $.ui.keyCode.ENTER:case $.ui.keyCode.SPACE:this._activate(event);break;case $.ui.keyCode.LEFT:case $.ui.keyCode.ESCAPE:this.collapse(event);break;default:preventDefault=false;prev=this.previousFilter||'';character=String.fromCharCode(event.keyCode);skip=false;clearTimeout(this.filterTimer);if(character===prev){skip=true;}else{character=prev+character;}\nregex=new RegExp('^'+escape(character),'i');match=this.activeMenu.children('.ui-menu-item').filter(function(){return regex.test($(this).children('a').text());});match=skip&&match.index(this.active.next())!==-1?this.active.nextAll('.ui-menu-item'):match;if(!match.length){character=String.fromCharCode(event.keyCode);regex=new RegExp('^'+escape(character),'i');match=this.activeMenu.children('.ui-menu-item').filter(function(){return regex.test($(this).children('a').text());});}\nif(match.length){this.focus(event,match);if(match.length>1){this.previousFilter=character;this.filterTimer=this._delay(function(){delete this.previousFilter;},1000);}else{delete this.previousFilter;}}else{delete this.previousFilter;}}}\nif(preventDefault){event.preventDefault();}},_toggleMobileMode:function(){var subMenus;$(this.element).off('mouseenter mouseleave');this._on({'click .ui-menu-item:has(a)':function(event){var target;event.preventDefault();target=$(event.target).closest('.ui-menu-item');target.get(0).scrollIntoView();if(target.has('.ui-menu').length){this.expand(event);}else if(!this.element.is(':focus')&&$(this.document[0].activeElement).closest('.ui-menu').length){this.element.trigger('focus',[true]);if(this.active&&this.active.parents('.ui-menu').length===1){clearTimeout(this.timer);}}\nif(!target.hasClass('level-top')||!target.has('.ui-menu').length){window.location.href=target.find('> a').attr('href');}},'click .ui-menu-item:has(.ui-state-active)':function(event){this.collapseAll(event,true);}});subMenus=this.element.find('.level-top');$.each(subMenus,$.proxy(function(index,item){var category=$(item).find('> a span').not('.ui-menu-icon').text(),categoryUrl=$(item).find('> a').attr('href'),menu=$(item).find('> .ui-menu');this.categoryLink=$('<a>').attr('href',categoryUrl).text($.mage.__('All %1').replace('%1',category));this.categoryParent=$('<li>').addClass('ui-menu-item all-category').html(this.categoryLink);if(menu.find('.all-category').length===0){menu.prepend(this.categoryParent);}},this));},_toggleDesktopMode:function(){var categoryParent,html;$(this.element).off('click mousedown mouseenter mouseleave');this._on({'mousedown .ui-menu-item > a':function(event){event.preventDefault();},'click .ui-state-disabled > a':function(event){event.preventDefault();},'click .ui-menu-item:has(a)':function(event){var target=$(event.target).closest('.ui-menu-item');if(!this.mouseHandled&&target.not('.ui-state-disabled').length){this.select(event);if(!event.isPropagationStopped()){this.mouseHandled=true;}\nif(target.has('.ui-menu').length){this.expand(event);}else if(!this.element.is(':focus')&&$(this.document[0].activeElement).closest('.ui-menu').length){this.element.trigger('focus',[true]);if(this.active&&this.active.parents('.ui-menu').length===1){clearTimeout(this.timer);}}}},'mouseenter .ui-menu-item':function(event){var target=$(event.currentTarget),submenu=this.options.menus,ulElement,ulElementWidth,width,targetPageX,rightBound;if(target.has(submenu)){ulElement=target.find(submenu);ulElementWidth=ulElement.outerWidth(true);width=target.outerWidth()*2;targetPageX=target.offset().left;rightBound=$(window).width();if(ulElementWidth+width+targetPageX>rightBound){ulElement.addClass('submenu-reverse');}\nif(targetPageX-ulElementWidth<0){ulElement.removeClass('submenu-reverse');}}\ntarget.siblings().children('.ui-state-active').removeClass('ui-state-active');this.focus(event,target);},'mouseleave':function(event){this.collapseAll(event,true);},'mouseleave .ui-menu':'collapseAll'});categoryParent=this.element.find('.all-category');html=$('html');categoryParent.remove();if(html.hasClass('nav-open')){html.removeClass('nav-open');setTimeout(function(){html.removeClass('nav-before-open');},this.options.hideDelay);}},_delay:function(handler,delay){var instance=this,handlerProxy=function(){return(typeof handler==='string'?instance[handler]:handler).apply(instance,arguments);};return setTimeout(handlerProxy,delay||0);},expand:function(event){var newItem=this.active&&this.active.children('.ui-menu').children('.ui-menu-item').first();if(newItem&&newItem.length){if(newItem.closest('.ui-menu').is(':visible')&&newItem.closest('.ui-menu').has('.all-categories')){return;}\nthis.active.siblings().children('.ui-state-active').removeClass('ui-state-active');this._open(newItem.parent());this._delay(function(){this.focus(event,newItem);});}},select:function(event){var ui;this.active=this.active||$(event.target).closest('.ui-menu-item');if(this.active.is('.all-category')){this.active=$(event.target).closest('.ui-menu-item');}\nui={item:this.active};if(!this.active.has('.ui-menu').length){this.collapseAll(event,true);}\nthis._trigger('select',event,ui);}});$.widget('mage.navigation',$.mage.menu,{options:{responsiveAction:'wrap',maxItems:null,container:'#menu',moreText:$.mage.__('more'),breakpoint:768},_init:function(){var that,responsive;this._super();that=this;responsive=this.options.responsiveAction;this.element.addClass('ui-menu-responsive').attr('responsive','main');this.setupMoreMenu();this.setMaxItems();if(responsive=='onResize'){$(window).on('resize',function(){if($(window).width()>that.options.breakpoint){that._responsive();$('[responsive=more]').show();}else{that.element.children().show();$('[responsive=more]').hide();}});}else if(responsive=='onReload'){this._responsive();}},setupMoreMenu:function(){var moreListItems=this.element.children().clone(),moreLink=$('<a>'+this.options.moreText+'</a>');moreListItems.hide();moreLink.attr('href','#');this.moreItemsList=$('<ul>').append(moreListItems);this.moreListContainer=$('<li>').append(moreLink).append(this.moreItemsList);this.responsiveMenu=$('<ul>').addClass('ui-menu-more').attr('responsive','more').append(this.moreListContainer).menu({position:{my:'right top',at:'right bottom'}}).insertAfter(this.element);},_responsive:function(){var container=$(this.options.container),containerSize=container.width(),width=0,items=this.element.children('li'),more=$('.ui-menu-more > li > ul > li a');items=items.map(function(){var item={};item.item=$(this);item.itemSize=$(this).outerWidth();return item;});$.each(items,function(index){var itemText=items[index].item.find('a:first').text();width+=parseInt(items[index].itemSize,null);if(width<containerSize){items[index].item.show();more.each(function(){var text=$(this).text();if(text===itemText){$(this).parent().hide();}});}else if(width>containerSize){items[index].item.hide();more.each(function(){var text=$(this).text();if(text===itemText){$(this).parent().show();}});}});},setMaxItems:function(){var items=this.element.children('li'),itemsCount=items.length,maxItems=this.options.maxItems,overflow=itemsCount-maxItems,overflowItems=items.slice(overflow);overflowItems.hide();overflowItems.each(function(){var itemText=$(this).find('a:first').text();$(this).hide();$('.ui-menu-more > li > ul > li a').each(function(){var text=$(this).text();if(text===itemText){$(this).parent().show();}});});}});return{menu:$.mage.menu,navigation:$.mage.navigation};});","mage/translate.min.js":"define(['jquery','mage/mage','mageTranslationDictionary','underscore'],function($,mage,dictionary,_){'use strict';$.extend(true,$,{mage:{translate:(function(){var _data=dictionary;return{add:function(){if(arguments.length>1){_data[arguments[0]]=arguments[1];}else if(typeof arguments[0]==='object'){$.extend(_data,arguments[0]);}},translate:function(text){return typeof _data[text]!=='undefined'?_data[text]:text;}};}())}});$.mage.__=$.proxy($.mage.translate.translate,$.mage.translate);_.extend(_,{i18n:function(text){return $.mage.__(text);}});return $.mage.__;});","mage/validation.min.js":"define(['jquery','moment','mageUtils','jquery-ui-modules/widget','jquery/validate','mage/translate'],function($,moment,utils){'use strict';var creditCartTypes,rules,showLabel,originValidateDelegate;$.extend(true,$,{mage:{isEmpty:function(value){return value===''||value===undefined||value==null||value.length===0||/^\\s+$/.test(value);},isEmptyNoTrim:function(value){return value===''||value==null||value.length===0;},isBetween:function(value,from,to){return($.mage.isEmpty(from)||value>=$.mage.parseNumber(from))&&($.mage.isEmpty(to)||value<=$.mage.parseNumber(to));},parseNumber:function(value){var isDot,isComa;if(typeof value!=='string'){return parseFloat(value);}\nisDot=value.indexOf('.');isComa=value.indexOf(',');if(isDot!==-1&&isComa!==-1){if(isComa>isDot){value=value.replace('.','').replace(',','.');}else{value=value.replace(',','');}}else if(isComa!==-1){value=value.replace(',','.');}\nreturn parseFloat(value);},stripHtml:function(value){return value.replace(/<.[^<>]*?>/g,' ').replace(/&nbsp;|&#160;/gi,' ').replace(/[0-9.(),;:!?%#$'\"_+=\\/-]*/g,'');}}});$.validator.addMethod=function(name,method,message,dontSkip){$.validator.methods[name]=method;$.validator.messages[name]=message!==undefined?message:$.validator.messages[name];if(method.length<3||dontSkip){$.validator.addClassRules(name,$.validator.normalizeRule(name));}};creditCartTypes={'SO':[new RegExp('^(6334[5-9]([0-9]{11}|[0-9]{13,14}))|(6767([0-9]{12}|[0-9]{14,15}))$'),new RegExp('^([0-9]{3}|[0-9]{4})?$'),true],'SM':[new RegExp('(^(5[0678])[0-9]{11,18}$)|(^(6[^05])[0-9]{11,18}$)|'+'(^(601)[^1][0-9]{9,16}$)|(^(6011)[0-9]{9,11}$)|(^(6011)[0-9]{13,16}$)|'+'(^(65)[0-9]{11,13}$)|(^(65)[0-9]{15,18}$)|(^(49030)[2-9]([0-9]{10}$|[0-9]{12,13}$))|'+'(^(49033)[5-9]([0-9]{10}$|[0-9]{12,13}$))|(^(49110)[1-2]([0-9]{10}$|[0-9]{12,13}$))|'+'(^(49117)[4-9]([0-9]{10}$|[0-9]{12,13}$))|(^(49118)[0-2]([0-9]{10}$|[0-9]{12,13}$))|'+'(^(4936)([0-9]{12}$|[0-9]{14,15}$))'),new RegExp('^([0-9]{3}|[0-9]{4})?$'),true],'VI':[new RegExp('^4[0-9]{12}([0-9]{3})?$'),new RegExp('^[0-9]{3}$'),true],'MC':[new RegExp('^(?:5[1-5][0-9]{2}|222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}$'),new RegExp('^[0-9]{3}$'),true],'AE':[new RegExp('^3[47][0-9]{13}$'),new RegExp('^[0-9]{4}$'),true],'DI':[new RegExp('^(6011(0|[2-4]|74|7[7-9]|8[6-9]|9)|6(4[4-9]|5))\\\\d*$'),new RegExp('^[0-9]{3}$'),true],'JCB':[new RegExp('^35(2[8-9]|[3-8])\\\\d*$'),new RegExp('^[0-9]{3}$'),true],'DN':[new RegExp('^(3(0[0-5]|095|6|[8-9]))\\\\d*$'),new RegExp('^[0-9]{3}$'),true],'UN':[new RegExp('^(622(1(2[6-9]|[3-9])|[3-8]|9([[0-1]|2[0-5]))|62[4-6]|628([2-8]))\\\\d*?$'),new RegExp('^[0-9]{3}$'),true],'MI':[new RegExp('^(5(0|[6-9])|63|67(?!59|6770|6774))\\\\d*$'),new RegExp('^[0-9]{3}$'),true],'MD':[new RegExp('^6759(?!24|38|40|6[3-9]|70|76)|676770|676774\\\\d*$'),new RegExp('^[0-9]{3}$'),true]};function validateCreditCard(s){var v='0123456789',w='',i,j,k,m,c,a,x;for(i=0;i<s.length;i++){x=s.charAt(i);if(v.indexOf(x,0)!==-1){w+=x;}}\nj=w.length / 2;k=Math.floor(j);m=Math.ceil(j)-k;c=0;for(i=0;i<k;i++){a=w.charAt(i*2+m)*2;c+=a>9?Math.floor(a / 10+a%10):a;}\nfor(i=0;i<k+m;i++){c+=w.charAt(i*2+1-m)*1;}\nreturn c%10===0;}\nfunction tableSingleValidation(value,element){var empty=$(element).closest('table').find('input.required-option:visible').filter(function(i,el){if($(el).is('disabled')){return $.mage.isEmpty(el.value);}}).length;return empty===0;}\nfunction resolveModulo(qty,qtyIncrements){var divideEpsilon=10000,epsilon,remainder;while(qtyIncrements<1){qty*=10;qtyIncrements*=10;}\nepsilon=qtyIncrements / divideEpsilon;remainder=qty%qtyIncrements;if(Math.abs(remainder-qtyIncrements)<epsilon||Math.abs(remainder)<epsilon){remainder=0;}\nreturn remainder;}\nrules={'max-words':[function(value,element,params){return this.optional(element)||$.mage.stripHtml(value).match(/\\b\\w+\\b/g).length<=params;},$.mage.__('Please enter {0} words or less.')],'min-words':[function(value,element,params){return this.optional(element)||$.mage.stripHtml(value).match(/\\b\\w+\\b/g).length>=params;},$.mage.__('Please enter at least {0} words.')],'range-words':[function(value,element,params){return this.optional(element)||$.mage.stripHtml(value).match(/\\b\\w+\\b/g).length>=params[0]&&value.match(/bw+b/g).length<params[1];},$.mage.__('Please enter between {0} and {1} words.')],'letters-with-basic-punc':[function(value,element){return this.optional(element)||/^[a-z\\-.,()'\\\"\\s]+$/i.test(value);},$.mage.__('Letters or punctuation only please')],'alphanumeric':[function(value,element){return this.optional(element)||/^\\w+$/i.test(value);},$.mage.__('Letters, numbers, spaces or underscores only please')],'letters-only':[function(value,element){return this.optional(element)||/^[a-z]+$/i.test(value);},$.mage.__('Letters only please')],'no-whitespace':[function(value,element){return this.optional(element)||/^\\S+$/i.test(value);},$.mage.__('No white space please')],'no-marginal-whitespace':[function(value,element){return this.optional(element)||!/^\\s+|\\s+$/i.test(value);},$.mage.__('No marginal white space please')],'zip-range':[function(value,element){return this.optional(element)||/^90[2-5]-\\d{2}-\\d{4}$/.test(value);},$.mage.__('Your ZIP-code must be in the range 902xx-xxxx to 905-xx-xxxx')],'integer':[function(value,element){return this.optional(element)||/^-?\\d+$/.test(value);},$.mage.__('A positive or negative non-decimal number please')],'vinUS':[function(v){var i,n,d,f,cd,cdv,LL,VL,FL,rs;if(v.length!==17){return false;}\nLL=['A','B','C','D','E','F','G','H','J','K','L','M','N','P','R','S','T','U','V','W','X','Y','Z'];VL=[1,2,3,4,5,6,7,8,1,2,3,4,5,7,9,2,3,4,5,6,7,8,9];FL=[8,7,6,5,4,3,2,10,0,9,8,7,6,5,4,3,2];rs=0;for(i=0;i<17;i++){f=FL[i];d=v.slice(i,i+1);if(i===8){cdv=d;}\nif(!isNaN(d)){d*=f;}else{for(n=0;n<LL.length;n++){if(d.toUpperCase()===LL[n]){d=VL[n];d*=f;if(isNaN(cdv)&&n===8){cdv=LL[n];}\nbreak;}}}\nrs+=d;}\ncd=rs%11;if(cd===10){cd='X';}\nif(cd===cdv){return true;}\nreturn false;},$.mage.__('The specified vehicle identification number (VIN) is invalid.')],'dateITA':[function(value,element){var check=false,re=/^\\d{1,2}\\/\\d{1,2}\\/\\d{4}$/,adata,gg,mm,aaaa,xdata;if(re.test(value)){adata=value.split('/');gg=parseInt(adata[0],10);mm=parseInt(adata[1],10);aaaa=parseInt(adata[2],10);xdata=new Date(aaaa,mm-1,gg);if(xdata.getFullYear()===aaaa&&xdata.getMonth()===mm-1&&xdata.getDate()===gg){check=true;}else{check=false;}}else{check=false;}\nreturn this.optional(element)||check;},$.mage.__('Please enter a correct date')],'dateNL':[function(value,element){return this.optional(element)||/^\\d\\d?[\\.\\/-]\\d\\d?[\\.\\/-]\\d\\d\\d?\\d?$/.test(value);},'Vul hier een geldige datum in.'],'time':[function(value,element){return this.optional(element)||/^([01]\\d|2[0-3])(:[0-5]\\d){0,2}$/.test(value);},$.mage.__('Please enter a valid time, between 00:00 and 23:59')],'time12h':[function(value,element){return this.optional(element)||/^((0?[1-9]|1[012])(:[0-5]\\d){0,2}(\\s[AP]M))$/i.test(value);},$.mage.__('Please enter a valid time, between 00:00 am and 12:00 pm')],'phoneUS':[function(phoneNumber,element){phoneNumber=phoneNumber.replace(/\\s+/g,'');return this.optional(element)||phoneNumber.length>9&&phoneNumber.match(/^(1-?)?(\\([2-9]\\d{2}\\)|[2-9]\\d{2})-?[2-9]\\d{2}-?\\d{4}$/);},$.mage.__('Please specify a valid phone number')],'phoneUK':[function(phoneNumber,element){return this.optional(element)||phoneNumber.length>9&&phoneNumber.match(/^(\\(?(0|\\+44)[1-9]{1}\\d{1,4}?\\)?\\s?\\d{3,4}\\s?\\d{3,4})$/);},$.mage.__('Please specify a valid phone number')],'mobileUK':[function(phoneNumber,element){return this.optional(element)||phoneNumber.length>9&&phoneNumber.match(/^((0|\\+44)7\\d{3}\\s?\\d{6})$/);},$.mage.__('Please specify a valid mobile number')],'stripped-min-length':[function(value,element,param){return value.length>=param;},$.mage.__('Please enter at least {0} characters')],'validate-no-utf8mb4-characters':[function(value){var validator=this,message=$.mage.__('Please remove invalid characters: {0}.'),matches=value.match(/(?:[\\uD800-\\uDBFF][\\uDC00-\\uDFFF])/g),result=matches===null;if(!result){validator.charErrorMessage=message.replace('{0}',matches.join());}\nreturn result;},function(){return this.charErrorMessage;}],'email2':[function(value,element){return this.optional(element)||/^((([a-z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+(\\.([a-z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+)*)|((\\x22)((((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(([\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f]|\\x21|[\\x23-\\x5b]|[\\x5d-\\x7e]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(\\\\([\\x01-\\x09\\x0b\\x0c\\x0d-\\x7f]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]))))*(((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(\\x22)))@((([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.)*(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.?$/i.test(value);},$.validator.messages.email],'url2':[function(value,element){return this.optional(element)||/^(https?|ftp):\\/\\/(((([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(%[\\da-f]{2})|[!\\$&'\\(\\)\\*\\+,;=]|:)*@)?(((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5]))|((([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.)*(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.?)(:\\d*)?)(\\/((([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(%[\\da-f]{2})|[!\\$&'\\(\\)\\*\\+,;=]|:|@)+(\\/(([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(%[\\da-f]{2})|[!\\$&'\\(\\)\\*\\+,;=]|:|@)*)*)?)?(\\?((([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(%[\\da-f]{2})|[!\\$&'\\(\\)\\*\\+,;=]|:|@)|[\\uE000-\\uF8FF]|\\/|\\?)*)?(\\#((([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(%[\\da-f]{2})|[!\\$&'\\(\\)\\*\\+,;=]|:|@)|\\/|\\?)*)?$/i.test(value);},$.validator.messages.url],'credit-card-types':[function(value,element,param){var validTypes;if(/[^0-9-]+/.test(value)){return false;}\nvalue=value.replace(/\\D/g,'');validTypes=0x0000;if(param.mastercard){validTypes|=0x0001;}\nif(param.visa){validTypes|=0x0002;}\nif(param.amex){validTypes|=0x0004;}\nif(param.dinersclub){validTypes|=0x0008;}\nif(param.enroute){validTypes|=0x0010;}\nif(param.discover){validTypes|=0x0020;}\nif(param.jcb){validTypes|=0x0040;}\nif(param.unknown){validTypes|=0x0080;}\nif(param.all){validTypes=0x0001|0x0002|0x0004|0x0008|0x0010|0x0020|0x0040|0x0080;}\nif(validTypes&0x0001&&/^(51|52|53|54|55)/.test(value)){return value.length===16;}\nif(validTypes&0x0002&&/^(4)/.test(value)){return value.length===16;}\nif(validTypes&0x0004&&/^(34|37)/.test(value)){return value.length===15;}\nif(validTypes&0x0008&&/^(300|301|302|303|304|305|36|38)/.test(value)){return value.length===14;}\nif(validTypes&0x0010&&/^(2014|2149)/.test(value)){return value.length===15;}\nif(validTypes&0x0020&&/^(6011)/.test(value)){return value.length===16;}\nif(validTypes&0x0040&&/^(3)/.test(value)){return value.length===16;}\nif(validTypes&0x0040&&/^(2131|1800)/.test(value)){return value.length===15;}\nif(validTypes&0x0080){return true;}\nreturn false;},$.mage.__('Please enter a valid credit card number.')],'ipv4':[function(value,element){return this.optional(element)||/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/i.test(value);},$.mage.__('Please enter a valid IP v4 address.')],'ipv6':[function(value,element){return this.optional(element)||/^((([0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}:[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){5}:([0-9A-Fa-f]{1,4}:)?[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){4}:([0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){3}:([0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){2}:([0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}((\\b((25[0-5])|(1\\d{2})|(2[0-4]\\d)|(\\d{1,2}))\\b)\\.){3}(\\b((25[0-5])|(1\\d{2})|(2[0-4]\\d)|(\\d{1,2}))\\b))|(([0-9A-Fa-f]{1,4}:){0,5}:((\\b((25[0-5])|(1\\d{2})|(2[0-4]\\d)|(\\d{1,2}))\\b)\\.){3}(\\b((25[0-5])|(1\\d{2})|(2[0-4]\\d)|(\\d{1,2}))\\b))|(::([0-9A-Fa-f]{1,4}:){0,5}((\\b((25[0-5])|(1\\d{2})|(2[0-4]\\d)|(\\d{1,2}))\\b)\\.){3}(\\b((25[0-5])|(1\\d{2})|(2[0-4]\\d)|(\\d{1,2}))\\b))|([0-9A-Fa-f]{1,4}::([0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})|(::([0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){1,7}:))$/i.test(value);},$.mage.__('Please enter a valid IP v6 address.')],'pattern':[function(value,element,param){return this.optional(element)||new RegExp(param).test(value);},$.mage.__('Invalid format.')],'allow-container-className':[function(element){if(element.type==='radio'||element.type==='checkbox'){return $(element).hasClass('change-container-classname');}},''],'validate-no-html-tags':[function(value){return!/<(\\/)?\\w+/.test(value);},$.mage.__('HTML tags are not allowed.')],'validate-select':[function(value){return value!=='none'&&value!=null&&value.length!==0;},$.mage.__('Please select an option.')],'validate-no-empty':[function(value){return!$.mage.isEmpty(value);},$.mage.__('Empty Value.')],'validate-alphanum-with-spaces':[function(v){return $.mage.isEmptyNoTrim(v)||/^[a-zA-Z0-9 ]+$/.test(v);},$.mage.__('Please use only letters (a-z or A-Z), numbers (0-9) or spaces only in this field.')],'validate-data':[function(v){return $.mage.isEmptyNoTrim(v)||/^[A-Za-z]+[A-Za-z0-9_]+$/.test(v);},$.mage.__('Please use only letters (a-z or A-Z), numbers (0-9) or underscore (_) in this field, and the first character should be a letter.')],'validate-street':[function(v){return $.mage.isEmptyNoTrim(v)||/^[ \\w]{3,}([A-Za-z]\\.)?([ \\w]*\\#\\d+)?(\\r\\n| )[ \\w]{3,}/.test(v);},$.mage.__('Please use only letters (a-z or A-Z), numbers (0-9), spaces and \"#\" in this field.')],'validate-phoneStrict':[function(v){return $.mage.isEmptyNoTrim(v)||/^(\\()?\\d{3}(\\))?(-|\\s)?\\d{3}(-|\\s)\\d{4}$/.test(v);},$.mage.__('Please enter a valid phone number. For example (123) 456-7890 or 123-456-7890.')],'validate-phoneLax':[function(v){return $.mage.isEmptyNoTrim(v)||/^((\\d[\\-. ]?)?((\\(\\d{3}\\))|\\d{3}))?[\\-. ]?\\d{3}[\\-. ]?\\d{4}$/.test(v);},$.mage.__('Please enter a valid phone number. For example (123) 456-7890 or 123-456-7890.')],'validate-fax':[function(v){return $.mage.isEmptyNoTrim(v)||/^(\\()?\\d{3}(\\))?(-|\\s)?\\d{3}(-|\\s)\\d{4}$/.test(v);},$.mage.__('Please enter a valid fax number (Ex: 123-456-7890).')],'validate-email':[function(v){return $.mage.isEmptyNoTrim(v)||/^([a-z0-9,!\\#\\$%&'\\*\\+\\/=\\?\\^_`\\{\\|\\}~-]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+(\\.([a-z0-9,!\\#\\$%&'\\*\\+\\/=\\?\\^_`\\{\\|\\}~-]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+)*@([a-z0-9-]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+(\\.([a-z0-9-]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+)*\\.(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]){2,})$/i.test(v);},$.mage.__('Please enter a valid email address (Ex: johndoe@domain.com).')],'validate-emailSender':[function(v){return $.mage.isEmptyNoTrim(v)||/^[\\S ]+$/.test(v);},$.mage.__('Please enter a valid email address (Ex: johndoe@domain.com).')],'validate-password':[function(v){var pass;if(v==null){return false;}\npass=v.trim();if(!pass.length){return true;}\nreturn!(pass.length>0&&pass.length<6);},$.mage.__('Please enter 6 or more characters. Leading and trailing spaces will be ignored.')],'validate-admin-password':[function(v){var pass;if(v==null){return false;}\npass=v.trim();if(pass.length===0){return true;}\nif(!/[a-z]/i.test(v)||!/[0-9]/.test(v)){return false;}\nif(pass.length<7){return false;}\nreturn true;},$.mage.__('Please enter 7 or more characters, using both numeric and alphabetic.')],'validate-customer-password':[function(v,elm){var validator=this,counter=0,passwordMinLength=$(elm).data('password-min-length'),passwordMinCharacterSets=$(elm).data('password-min-character-sets'),pass=v.trim(),result=pass.length>=passwordMinLength;if(result===false){validator.passwordErrorMessage=$.mage.__('Minimum length of this field must be equal or greater than %1 symbols. Leading and trailing spaces will be ignored.').replace('%1',passwordMinLength);return result;}\nif(pass.match(/\\d+/)){counter++;}\nif(pass.match(/[a-z]+/)){counter++;}\nif(pass.match(/[A-Z]+/)){counter++;}\nif(pass.match(/[^a-zA-Z0-9]+/)){counter++;}\nif(counter<passwordMinCharacterSets){result=false;validator.passwordErrorMessage=$.mage.__('Minimum of different classes of characters in password is %1. Classes of characters: Lower Case, Upper Case, Digits, Special Characters.').replace('%1',passwordMinCharacterSets);}\nreturn result;},function(){return this.passwordErrorMessage;}],'validate-url':[function(v){if($.mage.isEmptyNoTrim(v)){return true;}\nv=(v||'').replace(/^\\s+/,'').replace(/\\s+$/,'');return(/^(http|https|ftp):\\/\\/(([A-Z0-9]([A-Z0-9_-]*[A-Z0-9]|))(\\.[A-Z0-9]([A-Z0-9_-]*[A-Z0-9]|))*)(:(\\d+))?(\\/[A-Z0-9~](([A-Z0-9_~-]|\\.)*[A-Z0-9~]|))*\\/?(.*)?$/i).test(v);},$.mage.__('Please enter a valid URL. Protocol is required (http://, https:// or ftp://).')],'validate-clean-url':[function(v){return $.mage.isEmptyNoTrim(v)||/^(http|https|ftp):\\/\\/(([A-Z0-9][A-Z0-9_-]*)(\\.[A-Z0-9][A-Z0-9_-]*)+.(com|org|net|dk|at|us|tv|info|uk|co.uk|biz|se)$)(:(\\d+))?\\/?/i.test(v)||/^(www)((\\.[A-Z0-9][A-Z0-9_-]*)+.(com|org|net|dk|at|us|tv|info|uk|co.uk|biz|se)$)(:(\\d+))?\\/?/i.test(v);},$.mage.__('Please enter a valid URL. For example http://www.example.com or www.example.com.')],'validate-xml-identifier':[function(v){return $.mage.isEmptyNoTrim(v)||/^[A-Z][A-Z0-9_\\/-]*$/i.test(v);},$.mage.__('Please enter a valid XML-identifier (Ex: something_1, block5, id-4).')],'validate-ssn':[function(v){return $.mage.isEmptyNoTrim(v)||/^\\d{3}-?\\d{2}-?\\d{4}$/.test(v);},$.mage.__('Please enter a valid social security number (Ex: 123-45-6789).')],'validate-zip-us':[function(v){return $.mage.isEmptyNoTrim(v)||/(^\\d{5}$)|(^\\d{5}-\\d{4}$)/.test(v);},$.mage.__('Please enter a valid zip code (Ex: 90602 or 90602-1234).')],'validate-date-au':[function(v){var regex,d;if($.mage.isEmptyNoTrim(v)){return true;}\nregex=/^(\\d{2})\\/(\\d{2})\\/(\\d{4})$/;if($.mage.isEmpty(v)||!regex.test(v)){return false;}\nd=new Date(v.replace(regex,'$2/$1/$3'));return parseInt(RegExp.$2,10)===1+d.getMonth()&&parseInt(RegExp.$1,10)===d.getDate()&&parseInt(RegExp.$3,10)===d.getFullYear();},$.mage.__('Please use this date format: dd/mm/yyyy. For example 17/03/2006 for the 17th of March, 2006.')],'validate-currency-dollar':[function(v){return $.mage.isEmptyNoTrim(v)||/^\\$?\\-?([1-9]{1}[0-9]{0,2}(\\,[0-9]{3})*(\\.[0-9]{0,2})?|[1-9]{1}\\d*(\\.[0-9]{0,2})?|0(\\.[0-9]{0,2})?|(\\.[0-9]{1,2})?)$/.test(v);},$.mage.__('Please enter a valid $ amount. For example $100.00.')],'validate-not-negative-number':[function(v){if($.mage.isEmptyNoTrim(v)){return true;}\nv=$.mage.parseNumber(v);return!isNaN(v)&&v>=0;},$.mage.__('Please enter a number 0 or greater in this field.')],'validate-zero-or-greater':[function(v){if($.mage.isEmptyNoTrim(v)){return true;}\nv=$.mage.parseNumber(v);return!isNaN(v)&&v>=0;},$.mage.__('Please enter a number 0 or greater in this field.')],'validate-greater-than-zero':[function(v){if($.mage.isEmptyNoTrim(v)){return true;}\nv=$.mage.parseNumber(v);return!isNaN(v)&&v>0;},$.mage.__('Please enter a number greater than 0 in this field.')],'validate-css-length':[function(v){if(v!==''){return(/^[0-9]*\\.*[0-9]+(px|pc|pt|ex|em|mm|cm|in|%)?$/).test(v);}\nreturn true;},$.mage.__('Please input a valid CSS-length (Ex: 100px, 77pt, 20em, .5ex or 50%).')],'validate-number':[function(v){return $.mage.isEmptyNoTrim(v)||!isNaN($.mage.parseNumber(v))&&/^\\s*-?\\d*(\\.\\d*)?\\s*$/.test(v);},$.mage.__('Please enter a valid number in this field.')],'required-number':[function(v){return!!v.length;},$.mage.__('Please enter a valid number in this field.')],'validate-number-range':[function(v,elm,param){var numValue,dataAttrRange,classNameRange,result,range,m,classes,ii;if($.mage.isEmptyNoTrim(v)){return true;}\nnumValue=$.mage.parseNumber(v);if(isNaN(numValue)){return false;}\ndataAttrRange=/^(-?[\\d.,]+)?-(-?[\\d.,]+)?$/;classNameRange=/^number-range-(-?[\\d.,]+)?-(-?[\\d.,]+)?$/;result=true;range=param;if(typeof range==='string'){m=dataAttrRange.exec(range);if(m){result=result&&$.mage.isBetween(numValue,m[1],m[2]);}else{result=false;}}else if(elm&&elm.className){classes=elm.className.split(' ');ii=classes.length;while(ii--){range=classes[ii];m=classNameRange.exec(range);if(m){result=result&&$.mage.isBetween(numValue,m[1],m[2]);break;}}}\nreturn result;},$.mage.__('The value is not within the specified range.'),true],'validate-digits':[function(v){return $.mage.isEmptyNoTrim(v)||!/[^\\d]/.test(v);},$.mage.__('Please enter a valid number in this field.')],'validate-forbidden-extensions':[function(v,elem){var forbiddenExtensions=$(elem).attr('data-validation-params'),forbiddenExtensionsArray=forbiddenExtensions.split(','),extensionsArray=v.split(','),result=true;this.validateExtensionsMessage=$.mage.__('Forbidden extensions has been used. Avoid usage of ')+\nforbiddenExtensions;$.each(extensionsArray,function(key,extension){if(forbiddenExtensionsArray.indexOf(extension)!==-1){result=false;}});return result;},function(){return this.validateExtensionsMessage;}],'validate-digits-range':[function(v,elm,param){var numValue,dataAttrRange,classNameRange,result,range,m,classes,ii;if($.mage.isEmptyNoTrim(v)){return true;}\nnumValue=$.mage.parseNumber(v);if(isNaN(numValue)){return false;}\ndataAttrRange=/^(-?\\d+)?-(-?\\d+)?$/;classNameRange=/^digits-range-(-?\\d+)?-(-?\\d+)?$/;result=true;range=param;if(typeof range==='string'){m=dataAttrRange.exec(range);if(m){result=result&&$.mage.isBetween(numValue,m[1],m[2]);}else{result=false;}}else if(elm&&elm.className){classes=elm.className.split(' ');ii=classes.length;while(ii--){range=classes[ii];m=classNameRange.exec(range);if(m){result=result&&$.mage.isBetween(numValue,m[1],m[2]);break;}}}\nreturn result;},$.mage.__('The value is not within the specified range.'),true],'validate-range':[function(v,elm){var minValue,maxValue,ranges,reRange,result,values,i,name,validRange,minValidRange,maxValidRange;if($.mage.isEmptyNoTrim(v)){return true;}else if($.validator.methods['validate-digits']&&$.validator.methods['validate-digits'](v)){minValue=maxValue=$.mage.parseNumber(v);}else{ranges=/^(-?\\d+)?-(-?\\d+)?$/.exec(v);if(ranges){minValue=$.mage.parseNumber(ranges[1]);maxValue=$.mage.parseNumber(ranges[2]);if(minValue>maxValue){return false;}}else{return false;}}\nreRange=/^range-(-?\\d+)?-(-?\\d+)?$/;result=true;values=$(elm).prop('class').split(' ');for(i=values.length-1;i>=0;i--){name=values[i];validRange=reRange.exec(name);if(validRange){minValidRange=$.mage.parseNumber(validRange[1]);maxValidRange=$.mage.parseNumber(validRange[2]);result=result&&(isNaN(minValidRange)||minValue>=minValidRange)&&(isNaN(maxValidRange)||maxValue<=maxValidRange);}}\nreturn result;},$.mage.__('The value is not within the specified range.')],'validate-alpha':[function(v){return $.mage.isEmptyNoTrim(v)||/^[a-zA-Z]+$/.test(v);},$.mage.__('Please use letters only (a-z or A-Z) in this field.')],'validate-code':[function(v){return $.mage.isEmptyNoTrim(v)||/^[a-zA-Z]+[a-zA-Z0-9_]+$/.test(v);},$.mage.__('Please use only letters (a-z or A-Z), numbers (0-9) or underscore (_) in this field, and the first character should be a letter.')],'validate-alphanum':[function(v){return $.mage.isEmptyNoTrim(v)||/^[a-zA-Z0-9]+$/.test(v);},$.mage.__('Please use only letters (a-z or A-Z) or numbers (0-9) in this field. No spaces or other characters are allowed.')],'validate-not-number-first':[function(value){return $.mage.isEmptyNoTrim(value)||/^[^0-9-\\.].*$/.test(value.trim());},$.mage.__('First character must be letter.')],'validate-date':[function(value,params,additionalParams){var test=moment(value,utils.convertToMomentFormat(additionalParams.dateFormat));return $.mage.isEmptyNoTrim(value)||test.isValid();},$.mage.__('Please enter a valid date.')],'validate-date-range':[function(v,elm){var m=/\\bdate-range-(\\w+)-(\\w+)\\b/.exec(elm.className),currentYear,normalizedTime,dependentElements;if(!m||m[2]==='to'||$.mage.isEmptyNoTrim(v)){return true;}\ncurrentYear=new Date().getFullYear()+'';normalizedTime=function(vd){vd=vd.split(/[.\\/]/);if(vd[2]&&vd[2].length<4){vd[2]=currentYear.substr(0,vd[2].length)+vd[2];}\nreturn new Date(vd.join('/')).getTime();};dependentElements=$(elm.form).find('.validate-date-range.date-range-'+m[1]+'-to');return!dependentElements.length||$.mage.isEmptyNoTrim(dependentElements[0].value)||normalizedTime(v)<=normalizedTime(dependentElements[0].value);},$.mage.__('Make sure the To Date is later than or the same as the From Date.')],'validate-cpassword':[function(){var conf=$('#confirmation').length>0?$('#confirmation'):$($('.validate-cpassword')[0]),pass=false,passwordElements,i,passwordElement;if($('#password')){pass=$('#password');}\npasswordElements=$('.validate-password');for(i=0;i<passwordElements.length;i++){passwordElement=$(passwordElements[i]);if(passwordElement.closest('form').attr('id')===conf.closest('form').attr('id')){pass=passwordElement;}}\nif($('.validate-admin-password').length){pass=$($('.validate-admin-password')[0]);}\nreturn pass.val()===conf.val();},$.mage.__('Please make sure your passwords match.')],'validate-identifier':[function(v){return $.mage.isEmptyNoTrim(v)||/^[a-z0-9][a-z0-9_\\/-]+(\\.[a-z0-9_-]+)?$/.test(v);},$.mage.__('Please enter a valid URL Key (Ex: \"example-page\", \"example-page.html\" or \"anotherlevel/example-page\").')],'validate-zip-international':[function(){return true;},$.mage.__('Please enter a valid zip code.')],'validate-one-required':[function(v,elm){var p=$(elm).parent(),options=p.find('input');return options.map(function(el){return $(el).val();}).length>0;},$.mage.__('Please select one of the options above.')],'validate-state':[function(v){return v!==0;},$.mage.__('Please select State/Province.')],'required-file':[function(v,elm){var result=!$.mage.isEmptyNoTrim(v),ovId;if(!result){ovId=$('#'+$(elm).attr('id')+'_value');if(ovId.length>0){result=!$.mage.isEmptyNoTrim(ovId.val());}}\nreturn result;},$.mage.__('Please select a file.')],'validate-ajax-error':[function(v,element){element=$(element);element.on('change.ajaxError',function(){element.removeClass('validate-ajax-error');element.off('change.ajaxError');});return!element.hasClass('validate-ajax-error');},''],'validate-optional-datetime':[function(v,elm,param){var dateTimeParts=$('.datetime-picker[id^=\"options_'+param+'\"]'),hasWithValue=false,hasWithNoValue=false,pattern=/day_part$/i,i;for(i=0;i<dateTimeParts.length;i++){if(!pattern.test($(dateTimeParts[i]).attr('id'))){if($(dateTimeParts[i]).val()==='s'){hasWithValue=true;}else{hasWithNoValue=true;}}}\nreturn hasWithValue^hasWithNoValue;},$.mage.__('The field isn\\'t complete.')],'validate-required-datetime':[function(v,elm,param){var dateTimeParts=$('.datetime-picker[id^=\"options_'+param+'\"]'),i;for(i=0;i<dateTimeParts.length;i++){if(dateTimeParts[i].value===''){return false;}}\nreturn true;},$.mage.__('This is a required field.')],'validate-one-required-by-name':[function(v,elm,selector){var name=elm.name.replace(/([\\\\\"])/g,'\\\\$1'),container=this.currentForm;selector=selector===true?'input[name=\"'+name+'\"]:checked':selector;return!!container.querySelectorAll(selector).length;},$.mage.__('Please select one of the options.')],'less-than-equals-to':[function(value,element,params){if($.isNumeric($(params).val())&&$.isNumeric(value)){this.lteToVal=$(params).val();return parseFloat(value)<=parseFloat($(params).val());}\nreturn true;},function(){var message=$.mage.__('Please enter a value less than or equal to %s.');return message.replace('%s',this.lteToVal);}],'greater-than-equals-to':[function(value,element,params){if($.isNumeric($(params).val())&&$.isNumeric(value)){this.gteToVal=$(params).val();return parseFloat(value)>=parseFloat($(params).val());}\nreturn true;},function(){var message=$.mage.__('Please enter a value greater than or equal to %s.');return message.replace('%s',this.gteToVal);}],'validate-emails':[function(value){var validRegexp,emails,i;if($.mage.isEmpty(value)){return true;}\nvalidRegexp=/^([a-z0-9,!\\#\\$%&'\\*\\+\\/=\\?\\^_`\\{\\|\\}~-]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+(\\.([a-z0-9,!\\#\\$%&'\\*\\+\\/=\\?\\^_`\\{\\|\\}~-]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+)*@([a-z0-9-]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+(\\.([a-z0-9-]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+)*\\.(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]){2,})$/i;emails=value.split(/[\\s\\n\\,]+/g);for(i=0;i<emails.length;i++){if(!validRegexp.test(emails[i].trim())){return false;}}\nreturn true;},$.mage.__('Please enter valid email addresses, separated by commas. For example, johndoe@domain.com, johnsmith@domain.com.')],'validate-cc-type-select':[function(value,element,params){if(value&&params&&creditCartTypes[value]){return creditCartTypes[value][0].test($(params).val().replace(/\\s+/g,''));}\nreturn false;},$.mage.__('Card type does not match credit card number.')],'validate-cc-number':[function(value){if(value){return validateCreditCard(value);}\nreturn false;},$.mage.__('Please enter a valid credit card number.')],'validate-cc-type':[function(value,element,params){var ccType;if(value&&params){ccType=$(params).val();value=value.replace(/\\s/g,'').replace(/\\-/g,'');if(creditCartTypes[ccType]&&creditCartTypes[ccType][0]){return creditCartTypes[ccType][0].test(value);}else if(creditCartTypes[ccType]&&!creditCartTypes[ccType][0]){return true;}}\nreturn false;},$.mage.__('Credit card number does not match credit card type.')],'validate-cc-exp':[function(value,element,params){var isValid=false,month,year,currentTime,currentMonth,currentYear;if(value&&params){month=value;year=$(params).val();currentTime=new Date();currentMonth=currentTime.getMonth()+1;currentYear=currentTime.getFullYear();isValid=!year||year>currentYear||year==currentYear&&month>=currentMonth;}\nreturn isValid;},$.mage.__('Incorrect credit card expiration date.')],'validate-cc-cvn':[function(value,element,params){var ccType;if(value&&params){ccType=$(params).val();if(creditCartTypes[ccType]&&creditCartTypes[ccType][0]){return creditCartTypes[ccType][1].test(value);}}\nreturn false;},$.mage.__('Please enter a valid credit card verification number.')],'validate-cc-ukss':[function(value){return value;},$.mage.__('Please enter issue number or start date for switch/solo card type.')],'validate-length':[function(v,elm){var reMax=new RegExp(/^maximum-length-[0-9]+$/),reMin=new RegExp(/^minimum-length-[0-9]+$/),validator=this,result=true,length=0;$.each(elm.className.split(' '),function(index,name){if(name.match(reMax)&&result){length=name.split('-')[2];result=v.length<=length;validator.validateMessage=$.mage.__('Please enter less or equal than %1 symbols.').replace('%1',length);}\nif(name.match(reMin)&&result&&!$.mage.isEmpty(v)){length=name.split('-')[2];result=v.length>=length;validator.validateMessage=$.mage.__('Please enter more or equal than %1 symbols.').replace('%1',length);}});return result;},function(){return this.validateMessage;}],'required-entry':[function(value){return!$.mage.isEmpty(value);},$.mage.__('This is a required field.')],'not-negative-amount':[function(v){if(v.length){return(/^\\s*\\d+([,.]\\d+)*\\s*%?\\s*$/).test(v);}\nreturn true;},$.mage.__('Please enter positive number in this field.')],'validate-per-page-value-list':[function(v){var isValid=true,values=v.split(','),i;if($.mage.isEmpty(v)){return isValid;}\nfor(i=0;i<values.length;i++){if(!/^[0-9]+$/.test(values[i])){isValid=false;}}\nreturn isValid;},$.mage.__('Please enter a valid value, ex: 10,20,30')],'validate-per-page-value':[function(v,elm){var values;if($.mage.isEmpty(v)){return false;}\nvalues=$('#'+elm.id+'_values').val().split(',');return values.indexOf(v)!==-1;},$.mage.__('Please enter a valid value from list')],'validate-new-password':[function(v){if($.validator.methods['validate-password']&&!$.validator.methods['validate-password'](v)){return false;}\nif($.mage.isEmpty(v)&&v!==''){return false;}\nreturn true;},$.mage.__('Please enter 6 or more characters. Leading and trailing spaces will be ignored.')],'required-if-not-specified':[function(value,element,params){var valid=false,alternate=$(params),alternateValue;if(alternate.length>0){valid=this.check(alternate);if(valid){alternateValue=alternate.val();if(typeof alternateValue=='undefined'||alternateValue.length===0){valid=false;}}}\nif(!valid){valid=!this.optional(element);}\nreturn valid;},$.mage.__('This is a required field.')],'required-if-all-sku-empty-and-file-not-loaded':[function(value,element,params){var valid=false,alternate=$(params.specifiedId),alternateValue;if(alternate.length>0){valid=this.check(alternate);if(valid){alternateValue=alternate.val();if(typeof alternateValue=='undefined'||alternateValue.length===0){valid=false;}}}\nif(!valid){valid=!this.optional(element);}\n$('input['+params.dataSku+'=true]').each(function(){if($(this).val()!==''){valid=true;}});return valid;},$.mage.__('Please enter valid SKU key.')],'required-if-specified':[function(value,element,params){var valid=true,dependent=$(params),dependentValue;if(dependent.length>0){valid=this.check(dependent);if(valid){dependentValue=dependent.val();valid=typeof dependentValue!='undefined'&&dependentValue.length>0;}}\nif(valid){valid=!this.optional(element);}else{valid=true;}\nreturn valid;},$.mage.__('This is a required field.')],'required-number-if-specified':[function(value,element,params){var valid=true,dependent=$(params),depeValue;if(dependent.length){valid=this.check(dependent);if(valid){depeValue=dependent[0].value;valid=!!(depeValue&&depeValue.length);}}\nreturn valid?!!value.length:true;},$.mage.__('Please enter a valid number.')],'datetime-validation':[function(value,element){var isValid=true;if($(element).val().length===0){isValid=false;$(element).addClass('mage-error');}\nreturn isValid;},$.mage.__('This is required field')],'required-text-swatch-entry':[tableSingleValidation,$.mage.__('Admin is a required field in each row.')],'required-visual-swatch-entry':[tableSingleValidation,$.mage.__('Admin is a required field in each row.')],'required-dropdown-attribute-entry':[tableSingleValidation,$.mage.__('Admin is a required field in each row.')],'validate-item-quantity':[function(value,element,params){var validator=this,result=false,qty=$.mage.parseNumber(value),isMinAllowedValid=typeof params.minAllowed==='undefined'||qty>=$.mage.parseNumber(params.minAllowed),isMaxAllowedValid=typeof params.maxAllowed==='undefined'||qty<=$.mage.parseNumber(params.maxAllowed),isQtyIncrementsValid=typeof params.qtyIncrements==='undefined'||resolveModulo(qty,$.mage.parseNumber(params.qtyIncrements))===0.0;result=qty>0;if(result===false){validator.itemQtyErrorMessage=$.mage.__('Please enter a quantity greater than 0.');return result;}\nresult=isMinAllowedValid;if(result===false){validator.itemQtyErrorMessage=$.mage.__('The fewest you may purchase is %1.').replace('%1',params.minAllowed);return result;}\nresult=isMaxAllowedValid;if(result===false){validator.itemQtyErrorMessage=$.mage.__('The maximum you may purchase is %1.').replace('%1',params.maxAllowed);return result;}\nresult=isQtyIncrementsValid;if(result===false){validator.itemQtyErrorMessage=$.mage.__('You can buy this product only in quantities of %1 at a time.').replace('%1',params.qtyIncrements);return result;}\nreturn result;},function(){return this.itemQtyErrorMessage;}],'password-not-equal-to-user-name':[function(value,element,params){if(typeof params==='string'){return value.toLowerCase()!==params.toLowerCase();}\nreturn true;},$.mage.__('The password can\\'t be the same as the email address. Create a new password and try again.')]};$.each(rules,function(i,rule){rule.unshift(i);$.validator.addMethod.apply($.validator,rule);});$.validator.addClassRules({'required-option':{required:true},'required-options-count':{required:true},'validate-both-passwords':{'validate-cpassword':true}});$.validator.messages=$.extend($.validator.messages,{required:$.mage.__('This is a required field.'),remote:$.mage.__('Please fix this field.'),email:$.mage.__('Please enter a valid email address.'),url:$.mage.__('Please enter a valid URL.'),date:$.mage.__('Please enter a valid date.'),dateISO:$.mage.__('Please enter a valid date (ISO).'),number:$.mage.__('Please enter a valid number.'),digits:$.mage.__('Please enter only digits.'),creditcard:$.mage.__('Please enter a valid credit card number.'),equalTo:$.mage.__('Please enter the same value again.'),maxlength:$.validator.format($.mage.__('Please enter no more than {0} characters.')),minlength:$.validator.format($.mage.__('Please enter at least {0} characters.')),rangelength:$.validator.format($.mage.__('Please enter a value between {0} and {1} characters long.')),range:$.validator.format($.mage.__('Please enter a value between {0} and {1}.')),max:$.validator.format($.mage.__('Please enter a value less than or equal to {0}.')),min:$.validator.format($.mage.__('Please enter a value greater than or equal to {0}.'))});if($.metadata){$.metadata.setType('html5');}\nshowLabel=$.validator.prototype.showLabel;$.extend(true,$.validator.prototype,{showLabel:function(element,message){var label,elem;showLabel.call(this,element,message);label=this.errorsFor(element);elem=$(element);if(!label.attr('id')){label.attr('id',this.idOrName(element)+'-error');}\nelem.attr('aria-invalid','true').attr('aria-describedby',label.attr('id'));}});$.validator.validateElement=function(element){var form,validator,valid,classes;element=$(element);form=element.get(0).form;validator=form?$(form).data('validator'):null;if(validator){return validator.element(element.get(0));}\nvalid=true;classes=element.prop('class').split(' ');$.each(classes,$.proxy(function(i,className){if(this.methods[className]&&!this.methods[className](element.val(),element.get(0))){valid=false;return valid;}},this));return valid;};originValidateDelegate=$.fn.validateDelegate;$.fn.validateDelegate=function(){if(!this[0].form){return this;}\nreturn originValidateDelegate.apply(this,arguments);};$.validator.validateSingleElement=function(element,config){var errors={},valid=true,validateConfig={errorElement:'label',ignore:'.ignore-validate',hideError:false},form,validator,classes,elementValue;$.extend(validateConfig,config);element=$(element).not(validateConfig.ignore);if(!element.length){return true;}\nform=element.get(0).form;validator=form?$(form).data('validator'):null;if(validator){return validator.element(element.get(0));}\nclasses=element.prop('class').split(' ');validator=element.parent().data('validator')||$.mage.validation(validateConfig,element.parent()).validate;element.removeClass(validator.settings.errorClass);validator.toHide=validator.toShow;validator.hideErrors();validator.toShow=validator.toHide=$([]);$.each(classes,$.proxy(function(i,className){elementValue=element.val();if(element.is(':checkbox')||element.is(':radio')){elementValue=element.is(':checked')||null;}\nif(this.methods[className]&&!this.methods[className](elementValue,element.get(0))){valid=false;errors[element.get(0).name]=this.messages[className];validator.invalid[element.get(0).name]=true;if(!validateConfig.hideError){validator.showErrors(errors);}\nreturn valid;}},this));return valid;};$.widget('mage.validation',{options:{meta:'validate',onfocusout:false,onkeyup:false,onclick:false,ignoreTitle:true,errorClass:'mage-error',errorElement:'div',errorPlacement:function(error,element){var errorPlacement=element,fieldWrapper;if(element.hasClass('_has-datepicker')){errorPlacement=element.siblings('button');}\nfieldWrapper=element.closest('.addon');if(fieldWrapper.length){errorPlacement=fieldWrapper.after(error);}\nif(element.is(':checkbox')||element.is(':radio')){errorPlacement=element.parents('.control').children().last();if(!errorPlacement.length){errorPlacement=element.siblings('label').last();}}\nif(element.siblings('.tooltip').length){errorPlacement=element.siblings('.tooltip');}\nif(element.next().find('.tooltip').length){errorPlacement=element.next();}\nerrorPlacement.after(error);}},isValid:function(){return this.element.valid();},clearError:function(){if(arguments.length){$.each(arguments,$.proxy(function(index,item){this.validate.prepareElement(item);this.validate.hideErrors();},this));}else{this.validate.resetForm();}},_create:function(){this.validate=this.element.validate(this.options);this.element.find('.field.required').find('.control').find('input, select, textarea').attr('aria-required','true');this._listenFormValidate();},_listenFormValidate:function(){$('form').on('invalid-form.validate',this.listenFormValidateHandler);},listenFormValidateHandler:function(event,validation){var firstActive=$(validation.errorList[0].element||[]),lastActive=$(validation.findLastActive()||validation.errorList.length&&validation.errorList[0].element||[]),windowHeight=$(window).height(),parent,successList;if(lastActive.is(':hidden')){parent=lastActive.parent();$('html, body').animate({scrollTop:parent.offset().top-windowHeight / 2});}\nsuccessList=validation.successList;if(successList.length){$.each(successList,function(){$(this).removeAttr('aria-describedby').removeAttr('aria-invalid');});}\nif(firstActive.length){$('html, body').stop().animate({scrollTop:firstActive.parent().offset().top-windowHeight / 2});firstActive.focus();}}});return $.mage.validation;});","mage/multiselect.min.js":"define(['underscore','jquery','text!mage/multiselect.html','Magento_Ui/js/modal/alert','jquery-ui-modules/widget','jquery/editableMultiselect/js/jquery.multiselect'],function(_,$,searchTemplate,alert){'use strict';$.widget('mage.multiselect2',{options:{mselectContainer:'section.mselect-list',mselectItemsWrapperClass:'mselect-items-wrapper',mselectCheckedClass:'mselect-checked',containerClass:'paginated',searchInputClass:'admin__action-multiselect-search',selectedItemsCountClass:'admin__action-multiselect-items-selected',currentPage:1,lastAppendValue:0,updateDelay:1000,optionsLoaded:false},_create:function(){$.fn.multiselect.call(this.element,this.options);},_init:function(){this.domElement=this.element.get(0);this.$container=$(this.options.mselectContainer);this.$wrapper=this.$container.find('.'+this.options.mselectItemsWrapperClass);this.$item=this.$wrapper.find('div').first();this.selectedValues=[];this.values={};this.$container.addClass(this.options.containerClass).prepend(searchTemplate);this.$input=this.$container.find('.'+this.options.searchInputClass);this.$selectedCounter=this.$container.find('.'+this.options.selectedItemsCountClass);this.filter='';if(this.domElement.options.length){this._setLastAppendOption(this.domElement.options[this.domElement.options.length-1].value);}\nthis._initElement();this._events();},_initElement:function(){this.element.empty();_.each(this.options.selectedValues,function(value){this._createSelectedOption({value:value,label:value});},this);},_events:function(){var onKeyUp=_.debounce(this.onKeyUp,this.options.updateDelay);_.bindAll(this,'onScroll','onCheck','onOptionsChange');this.$wrapper.on('scroll',this.onScroll);this.$wrapper.on('change.mselectCheck','[type=checkbox]',this.onCheck);this.$input.on('keyup',_.bind(onKeyUp,this));this.element.on('change.hiddenSelect',this.onOptionsChange);},onScroll:function(){var height=this.$wrapper.height(),scrollHeight=this.$wrapper.prop('scrollHeight'),scrollTop=Math.ceil(this.$wrapper.prop('scrollTop'));if(!this.options.optionsLoaded&&scrollHeight-height<=scrollTop){this.loadOptions();}},onKeyUp:function(){if(this.getSearchCriteria()===this.filter){return false;}\nthis.setFilter();this.clearMultiselectOptions();this.setCurrentPage(0);this.loadOptions();},onOptionsChange:function(){this.selectedValues=_.map(this.domElement.options,function(option){this.values[option.value]=true;return option.value;},this);this._updateSelectedCounter();},onCheck:function(event){var checkbox=event.target,option={value:checkbox.value,label:$(checkbox).parent('label').text()};checkbox.checked?this._createSelectedOption(option):this._removeSelectedOption(option);event.stopPropagation();},onError:function(message){alert({content:message});},setFilter:function(){this.filter=this.getSearchCriteria()||'';},getSearchCriteria:function(){return this.$input.val().trim();},loadOptions:function(){var nextPage=this.getCurrentPage()+1;this.$wrapper.trigger('processStart');this.$input.prop('disabled',true);$.get(this.options.nextPageUrl,{p:nextPage,s:this.filter}).done(function(response){if(response.success){this.appendOptions(response.result);this.setCurrentPage(nextPage);}else{this.onError(response.errorMessage);}}.bind(this)).always(function(){this.$wrapper.trigger('processStop');this.$input.prop('disabled',false);if(this.filter){this.$input.focus();}}.bind(this));},appendOptions:function(options){var divOptions=[];if(!options.length){return false;}\nif(this.isOptionsLoaded(options)){return;}\noptions.forEach(function(option){if(!this.values[option.value]){this.values[option.value]=true;option.selected=this._isOptionSelected(option);divOptions.push(this._createMultiSelectOption(option));this._setLastAppendOption(option.value);}},this);this.$wrapper.append(divOptions);},clearMultiselectOptions:function(){this._setLastAppendOption(0);this.values={};this.$wrapper.empty();},isOptionsLoaded:function(options){this.options.optionsLoaded=this.options.lastAppendValue===options[options.length-1].value;return this.options.optionsLoaded;},setCurrentPage:function(page){this.options.currentPage=page;},getCurrentPage:function(){return this.options.currentPage;},_createSelectedOption:function(option){var selectOption=new Option(option.label,option.value,false,true);this.element.append(selectOption);this.selectedValues.push(option.value);this._updateSelectedCounter();return selectOption;},_removeSelectedOption:function(option){var unselectedOption=_.findWhere(this.domElement.options,{value:option.value});if(!_.isUndefined(unselectedOption)){this.domElement.remove(unselectedOption.index);this.selectedValues.splice(_.indexOf(this.selectedValues,option.value),1);this._updateSelectedCounter();}\nreturn unselectedOption;},_createMultiSelectOption:function(option){var item=this.$item.clone(),checkbox=item.find('input'),isSelected=!!option.selected;checkbox.val(option.value).prop('checked',isSelected).toggleClass(this.options.mselectCheckedClass,isSelected);item.find('label > span').text(option.label);return item;},_isOptionSelected:function(option){return!!~this.selectedValues.indexOf(option.value);},_setLastAppendOption:function(value){this.options.lastAppendValue=value;},_updateSelectedCounter:function(){this.$selectedCounter.text(this.selectedValues.length);}});return $.mage.multiselect2;});","mage/touch-slider.min.js":"define(['jquery','underscore','jquery-ui-modules/slider'],function($,_){'use strict';$.widget('mage.touchSlider',$.ui.slider,{_create:function(){_.bindAll(this,'_mouseDown','_mouseMove','_onTouchEnd');return this._superApply(arguments);},_mouseInit:function(){var result=this._superApply(arguments);this.element.off('mousedown.'+this.widgetName).on('touchstart.'+this.widgetName,this._mouseDown);return result;},_mouseDown:function(event){var prevDelegate=this._mouseMoveDelegate,result;event=this._touchToMouse(event);result=this._super(event);if(prevDelegate===this._mouseMoveDelegate){return result;}\n$(document).off('mousemove.'+this.widgetName).off('mouseup.'+this.widgetName);$(document).on('touchmove.'+this.widgetName,this._mouseMove).on('touchend.'+this.widgetName,this._onTouchEnd).on('tochleave.'+this.widgetName,this._onTouchEnd);return result;},_mouseMove:function(event){event=this._touchToMouse(event);return this._super(event);},_onTouchEnd:function(event){$(document).trigger('mouseup');return this._mouseUp(event);},_mouseUp:function(){this._removeTouchHandlers();return this._superApply(arguments);},_mouseDestroy:function(){this._removeTouchHandlers();return this._superApply(arguments);},_removeTouchHandlers:function(){$(document).off('touchmove.'+this.widgetName).off('touchend.'+this.widgetName).off('touchleave.'+this.widgetName);},_touchToMouse:function(event){var orig=event.originalEvent,touch=orig.touches[0];return _.extend(event,{which:1,pageX:touch.pageX,pageY:touch.pageY,clientX:touch.clientX,clientY:touch.clientY,screenX:touch.screenX,screenY:touch.screenY});}});return $.mage.touchSlider;});","mage/decorate.min.js":"define(['jquery','mage/translate'],function($){var methods={list:function(isRecursive){return this.each(function(){var list=$(this),items;if(list.length>0){items=typeof isRecursive==='undefined'||isRecursive?list.find('li'):list.children();items.decorate('generic',['odd','even','last']);}});},generic:function(decoratorParams){var elements=$(this),allSupportedParams;if(elements){allSupportedParams={even:'odd',odd:'even',last:'last',first:'first'};decoratorParams=decoratorParams||allSupportedParams;$.each(decoratorParams,function(index,param){if(param==='even'||param==='odd'){elements.filter(':'+param).removeClass('odd even').addClass(allSupportedParams[param]);}else{elements.filter(':'+param).addClass(allSupportedParams[param]);}});}\nreturn this;},table:function(instanceOptions){return this.each(function(){var table=$(this),options;if(table.length>0){options={'tbody':false,'tbody tr':['odd','even','first','last'],'thead tr':['first','last'],'tfoot tr':['first','last'],'tr td':['last']};$.extend(options,instanceOptions||{});$.each(options,function(key,value){if(options[key]){if(key==='tr td'){$.each(table.find('tr'),function(){$(this).find('td').decorate('generic',options['tr td']);});}else{table.find(key).decorate('generic',value);}}});}});},dataList:function(){return this.each(function(){var list=$(this);if(list){list.find('dt').decorate('generic',['odd','even','last']);list.find('dd').decorate('generic',['odd','even','last']);}});}};$.fn.decorate=function(method){var message;if(methods[method]){return methods[method].apply(this,Array.prototype.slice.call(arguments,1));}else if(typeof method==='object'||!method){return methods.init.apply(this,arguments);}\nmessage=$.mage.__('Method %s does not exist on jQuery.decorate');$.error(message.replace('%s',method));};});","mage/terms.min.js":"define(['jquery'],function($){'use strict';$.fn.terms=function(args){var defaults={start:0,wrapper:'',showAnchor:'',effects:'slide'},options=$.extend(defaults,args);this.each(function(){var obj=$(this),wrapper=options.wrapper!==''?'> '+options.wrapper:'',switches=$(wrapper+'> [data-section=\"title\"] > [data-toggle=\"switch\"]',obj),terms=$(wrapper+'> [data-section=\"content\"]',obj),t=switches.length,marginTop=$(switches[0]).closest('[data-section=\"title\"]').css('position')=='absolute'?0:null,title,current,showItem=function(item){if(item!=current&&!$(switches[item]).closest('[data-section=\"title\"]').hasClass('disabled')){$(switches).closest('[data-section=\"title\"]').removeClass('active');if(options.wrapper!==''){$(switches).parent().parent().removeClass('active');}\n$(terms).removeClass('active');$(switches[item]).closest('[data-section=\"title\"]').addClass('active');if(options.wrapper!==''){$(switches[current]).parent().parent().addClass('active');}\n$(terms[item]).addClass('active');current=item;}else if((obj.attr('data-sections')=='accordion'||$(switches[item]).closest('[data-section=\"title\"]').css('width')==obj.css('width'))&&item==current&&!$(switches[item]).closest('[data-section=\"title\"]').hasClass('disabled')){$(switches).closest('[data-section=\"title\"]').removeClass('active');if(options.wrapper!==''){$(switches).parent().parent().removeClass('active');}\n$(terms).removeClass('active');current=-1;}},init=function(){var linksList,i,classes,dataSection,itemHref,itemClass,fromUrl;if(t>0){if($(switches[0]).closest('[data-section=\"title\"]').css('display')=='table-cell'){obj.addClass('adjusted');if(obj[0].tagName=='DL'){linksList=$('<dd>');}else{linksList=$('<div>');}\nlinksList.addClass('sections-nav');obj.prepend(linksList);for(i=0;i<t;i++){title=$(switches[i]).html();classes=$(switches[i]).closest('[data-section=\"title\"]').attr('class');dataSection=$(switches[i]).closest('[data-section=\"title\"]').attr('data-section');itemHref=$(switches[i]).attr('href');itemClass=$(switches[i]).attr('class');$(switches[i]).parent('[data-section=\"title\"]').hide();switches[i]=$('<a/>',{href:itemHref,'class':itemClass,html:title}).appendTo(linksList);$(switches[i]).wrap('<strong class=\"'+classes+'\" data-section=\"'+dataSection+'\" />');}}\n$(switches).each(function(ind,el){$(el).on('click',function(event){event.preventDefault();showItem(ind);});if(marginTop!==null){$(el).closest('[data-section=\"title\"]').css({'top':marginTop+'px'});marginTop+=$(el).closest('[data-section=\"title\"]').outerHeight(true);obj.css({'min-height':marginTop+'px'});}});fromUrl=false;if(window.location.hash.length>0){$(terms).each(function(ind,el){if('#info-'+$(el).attr('id')==window.location.hash){showItem(ind);$('html, body').animate({scrollTop:$(switches[ind]).offset().top},700);fromUrl=true;}});}\nif(fromUrl===false){if(options.start%1===0){current=options.start+1;showItem(options.start);}else{$(terms).each(function(ind,el){if($(el).attr('id')==options.start){current=ind+1;showItem(ind);$('html, body').animate({scrollTop:$(switches[ind]).offset().top},700);}});}}}};init();});};return function(data,el){$(el).terms(data);};});","mage/url.min.js":"define([],function(){var baseUrl='';return{setBaseUrl:function(url){baseUrl=url;},build:function(path){if(path.indexOf(baseUrl)!==-1){return path;}\nreturn baseUrl+path;}};});","mage/template.min.js":"define(['underscore'],function(_){'use strict';function isSelector(selector){try{document.querySelector(selector);return true;}catch(e){return false;}}\nfunction unescape(str){return str.replace(/&lt;%|%3C%/g,'<%').replace(/%&gt;|%%3E/g,'%>');}\nfunction getTmplString(tmpl){if(isSelector(tmpl)){tmpl=document.querySelector(tmpl);if(tmpl){tmpl=tmpl.innerHTML.trim();}else{console.warn('No template was found by selector: '+tmpl);tmpl='';}}\nreturn unescape(tmpl);}\nreturn function(tmpl,data){var render;tmpl=getTmplString(tmpl);render=_.template(tmpl);return!_.isUndefined(data)?render(data):render;};});","mage/common.min.js":"define(['jquery','domReady!'],function($){'use strict';$('form[data-auto-submit=\"true\"]').trigger('submit');$(document).on('submit','form',function(e){var formKeyElement,existingFormKeyElement,isKeyPresentInForm,isActionExternal,baseUrl=window.BASE_URL,form=$(e.target),formKey=$('input[name=\"form_key\"]').val(),formMethod=form.prop('method'),formAction=form.prop('action');isActionExternal=formAction.indexOf(baseUrl)!==0;existingFormKeyElement=form.find('input[name=\"form_key\"]');isKeyPresentInForm=existingFormKeyElement.length;if(isKeyPresentInForm&&existingFormKeyElement.attr('auto-added-form-key')==='1'){isKeyPresentInForm=form.find('> input[name=\"form_key\"]').length;}\nif(formKey&&!isKeyPresentInForm&&!isActionExternal&&formMethod!=='get'){formKeyElement=document.createElement('input');formKeyElement.setAttribute('type','hidden');formKeyElement.setAttribute('name','form_key');formKeyElement.setAttribute('value',formKey);formKeyElement.setAttribute('auto-added-form-key','1');form.get(0).appendChild(formKeyElement);}});});","mage/edit-trigger.min.js":"define(['jquery','mage/template','jquery-ui-modules/widget'],function($,mageTemplate){'use strict';var editTriggerPrototype;$.widget('mage.editTrigger',{options:{img:'',alt:'[TR]',template:'#translate-inline-icon',zIndex:2000,editSelector:'[data-translate]',delay:2000,offsetTop:-3,singleElement:true},_create:function(){this.tmpl=mageTemplate(this.options.template);this._initTrigger();this._bind();},_getCss:function(){return{position:'absolute',cursor:'pointer',display:'none','z-index':this.options.zIndex};},_createTrigger:function(appendTo){var tmpl=this.tmpl({data:this.options});return $(tmpl).css(this._getCss()).data('role','edit-trigger-element').appendTo(appendTo);},_initTrigger:function(){this.trigger=this._createTrigger($('body'));},_bind:function(){this.trigger.on('click.'+this.widgetName,$.proxy(this._onClick,this));this.element.on('mousemove.'+this.widgetName,$.proxy(this._onMouseMove,this));},show:function(){if(this.trigger.is(':hidden')){this.trigger.show();}},hide:function(){this.currentTarget=null;if(this.trigger&&this.trigger.is(':visible')){this.trigger.hide();}},_setPosition:function(el){var offset=el.offset();this.trigger.css({top:offset.top+el.outerHeight()+this.options.offsetTop,left:offset.left});},_onMouseMove:function(e){var target=$(e.target),inner=target.find(this.options.editSelector);if($(e.target).is('button')&&inner.length){target=inner;}else if(!target.is(this.trigger)&&!target.is(this.options.editSelector)){target=target.parents(this.options.editSelector).first();}\nif(target.length){if(!target.is(this.trigger)){this._setPosition(target);this.currentTarget=target;}\nthis.show();}else{this.hide();}},_onClick:function(e){e.preventDefault();e.stopImmediatePropagation();$(this.currentTarget).trigger('edit.'+this.widgetName);this.hide(true);},destroy:function(){this.trigger.remove();this.element.off('.'+this.widgetName);return $.Widget.prototype.destroy.call(this);}});editTriggerPrototype=$.mage.editTrigger.prototype;$.widget('mage.editTrigger',$.extend({},editTriggerPrototype,{show:function(){editTriggerPrototype.show.apply(this,arguments);if(this.options.delay){this._clearTimer();}},hide:function(immediate){if(!immediate&&this.options.delay){if(!this.timer){this.timer=setTimeout($.proxy(function(){editTriggerPrototype.hide.apply(this,arguments);this._clearTimer();},this),this.options.delay);}}else{editTriggerPrototype.hide.apply(this,arguments);}},_clearTimer:function(){if(this.timer){clearTimeout(this.timer);this.timer=null;}}}));return $.mage.editTrigger;});","mage/dataPost.min.js":"define(['jquery','mage/template','Magento_Ui/js/modal/confirm','jquery-ui-modules/widget'],function($,mageTemplate,uiConfirm){'use strict';$.widget('mage.dataPost',{options:{formTemplate:'<form action=\"<%- data.action %>\" method=\"post\">'+'<% _.each(data.data, function(value, index) { %>'+'<input name=\"<%- index %>\" value=\"<%- value %>\">'+'<% }) %></form>',postTrigger:['a[data-post]','button[data-post]','span[data-post]'],formKeyInputSelector:'input[name=\"form_key\"]'},_create:function(){this._bind();},_bind:function(){var events={};$.each(this.options.postTrigger,function(index,value){events['click '+value]='_postDataAction';});this._on(events);},_postDataAction:function(e){var params=$(e.currentTarget).data('post');e.preventDefault();this.postData(params);},postData:function(params){var formKey=$(this.options.formKeyInputSelector).val(),$form,input;if(formKey){params.data['form_key']=formKey;}\n$form=$(mageTemplate(this.options.formTemplate,{data:params}));if(params.files){$form[0].enctype='multipart/form-data';$.each(params.files,function(key,files){if(files instanceof FileList){input=document.createElement('input');input.type='file';input.name=key;input.files=files;$form[0].appendChild(input);}});}\nif(params.data.confirmation){uiConfirm({content:params.data.confirmationMessage,actions:{confirm:function(){$form.appendTo('body').hide().trigger('submit');}}});}else{$form.appendTo('body').hide().trigger('submit');}}});$(document).dataPost();return $.mage.dataPost;});","mage/dropdown.min.js":"define(['jquery','jquery-ui-modules/dialog','mage/translate'],function($){'use strict';var timer=null;$.widget('mage.dropdownDialog',$.ui.dialog,{options:{triggerEvent:'click',triggerClass:null,parentClass:null,triggerTarget:null,defaultDialogClass:'mage-dropdown-dialog',dialogContentClass:null,shadowHinter:null,closeOnMouseLeave:true,closeOnClickOutside:true,minHeight:null,minWidth:null,width:null,modal:false,timeout:null,autoOpen:false,createTitleBar:false,autoPosition:false,autoSize:false,draggable:false,resizable:false,bodyClass:'',buttons:[{'class':'action close','text':$.mage.__('Close'),'click':function(){$(this).dropdownDialog('close');}}]},_create:function(){var _self=this;this._super();this.uiDialog.addClass(this.options.defaultDialogClass);if(_self.options.triggerTarget){$(_self.options.triggerTarget).on(_self.options.triggerEvent,function(event){event.preventDefault();event.stopPropagation();if(!_self._isOpen){$('.'+_self.options.defaultDialogClass+' > .ui-dialog-content').dropdownDialog('close');_self.open();}else{_self.close(event);}});}\nif(_self.options.shadowHinter){_self.hinter=$('<div class=\"'+_self.options.shadowHinter+'\"></div>');_self.element.append(_self.hinter);}},open:function(){var _self=this;this._super();if(_self.options.dialogContentClass){_self.element.addClass(_self.options.dialogContentClass);}\nif(_self.options.closeOnMouseLeave){this._mouseEnter(_self.uiDialog);this._mouseLeave(_self.uiDialog);if(_self.options.triggerTarget){this._mouseLeave($(_self.options.triggerTarget));}}\nif(_self.options.closeOnClickOutside){$('body').on('click.outsideDropdown',function(event){if(_self._isOpen&&!$(event.target).closest('.ui-dialog').length){if(timer){clearTimeout(timer);}\n_self.close(event);}});}\nif(_self.options.triggerClass){$(_self.options.triggerTarget).addClass(_self.options.triggerClass);}\nif(_self.options.parentClass){$(_self.options.appendTo).addClass(_self.options.parentClass);}\nif(_self.options.bodyClass){$('body').addClass(_self.options.bodyClass);}\nif(_self.options.shadowHinter){_self._setShadowHinterPosition();}},close:function(){this._super();if(this.options.dialogContentClass){this.element.removeClass(this.options.dialogContentClass);}\nif(this.options.triggerClass){$(this.options.triggerTarget).removeClass(this.options.triggerClass);}\nif(this.options.parentClass){$(this.options.appendTo).removeClass(this.options.parentClass);}\nif(this.options.bodyClass){$('body').removeClass(this.options.bodyClass);}\nif(timer){clearTimeout(timer);}\nif(this.options.triggerTarget){$(this.options.triggerTarget).off('mouseleave');}\nthis.uiDialog.off('mouseenter');this.uiDialog.off('mouseleave');$('body').off('click.outsideDropdown');},_setShadowHinterPosition:function(){var _self=this,offset;offset=_self.options.position.of.offset().left-\n_self.element.offset().left+\n_self.options.position.of.outerWidth()/ 2;offset=isNaN(offset)?0:Math.floor(offset);_self.hinter.css('left',offset);},_position:function(){if(this.options.autoPosition){this._super();}},_createTitlebar:function(){if(this.options.createTitleBar){this._super();}else{this.uiDialogTitlebarClose=$('<div></div>');}},_size:function(){if(this.options.autoSize){this._super();}},_mouseLeave:function(handler){var _self=this;handler.on('mouseleave',function(event){event.stopPropagation();if(_self._isOpen){if(timer){clearTimeout(timer);}\ntimer=setTimeout(function(e){_self.close(e);},_self.options.timeout);}});},_mouseEnter:function(handler){handler.on('mouseenter',function(event){event.stopPropagation();if(timer){clearTimeout(timer);}});},_setOption:function(key,value){this._super(key,value);if(key==='triggerTarget'){this.options.triggerTarget=value;}}});return $.mage.dropdownDialog;});","mage/deletable-item.min.js":"define(['jquery','jquery-ui-modules/widget'],function($){'use strict';$.widget('mage.deletableItem',{options:{deleteEvent:'click',deleteSelector:'[data-role=\"delete\"]',hiddenClass:'no-display'},_bind:function(){var handlers={};handlers[this.options.deleteEvent+' '+this.options.deleteSelector]='_onDeleteClicked';handlers.hideDelete='_onHideDelete';handlers.showDelete='_onShowDelete';this._on(handlers);},_create:function(){this._bind();},_init:function(){this._onHideDelete();},_onDeleteClicked:function(e){e.stopPropagation();this.element.trigger('deleteItem');},_onHideDelete:function(){this.element.find(this.options.deleteSelector).addClass(this.options.hiddenClass);},_onShowDelete:function(){this.element.find(this.options.deleteSelector).removeClass(this.options.hiddenClass);}});return $.mage.deletableItem;});","mage/redirect-url.min.js":"define(['jquery','jquery-ui-modules/widget'],function($){'use strict';$.widget('mage.redirectUrl',{options:{event:'click',url:undefined},_bind:function(){var handlers={};handlers[this.options.event]='_onEvent';this._on(handlers);},_create:function(){this._bind();},_onEvent:function(){if(this.options.url){location.href=this.options.url;}else{location.href=this.element.val();}}});return $.mage.redirectUrl;});","mage/trim-input.min.js":"define(['jquery'],function($){'use strict';$.widget('mage.trimInput',{options:{cache:{}},_create:function(){this.options.cache.input=$(this.element);this._bind();},_bind:function(){if(this.options.cache.input.length){this._on(this.options.cache.input,{'change':this._trimInput,'keyup':this._trimInput,'paste':this._trimInput});}},_trimInput:function(){var caretStart,caretEnd,input;caretStart=this.options.cache.input.get(0).selectionStart;caretEnd=this.options.cache.input.get(0).selectionEnd;input=this._getInputValue().trim();this.options.cache.input.val(input);if(caretStart!==null&&caretEnd!==null){this.options.cache.input.get(0).setSelectionRange(caretStart,caretEnd);}},_getInputValue:function(){return this.options.cache.input.val();}});return $.mage.trimInput;});","mage/popup-window.min.js":"define(['jquery','jquery-ui-modules/widget'],function($){'use strict';$.widget('mage.popupWindow',{options:{centerBrowser:0,centerScreen:0,height:500,left:0,location:0,menubar:0,resizable:0,scrollbars:0,status:0,width:500,windowName:null,windowURL:null,top:0,toolbar:0},_create:function(){this.element.on('click',$.proxy(this._openPopupWindow,this));},_openPopupWindow:function(event){var element=$(event.target),settings=this.options,windowFeatures='height='+settings.height+',width='+settings.width+',toolbar='+settings.toolbar+',scrollbars='+settings.scrollbars+',status='+settings.status+',resizable='+settings.resizable+',location='+settings.location+',menuBar='+settings.menubar,centeredX,centeredY;settings.windowName=settings.windowName||element.attr('name');settings.windowURL=settings.windowURL||element.attr('href');if(settings.centerBrowser){centeredY=window.screenY+(window.outerHeight / 2-settings.height / 2);centeredX=window.screenX+(window.outerWidth / 2-settings.width / 2);windowFeatures+=',left='+centeredX+',top='+centeredY;}else if(settings.centerScreen){centeredY=(screen.height-settings.height)/ 2;centeredX=(screen.width-settings.width)/ 2;windowFeatures+=',left='+centeredX+',top='+centeredY;}else{windowFeatures+=',left='+settings.left+',top='+settings.top;}\nwindow.open(settings.windowURL,settings.windowName,windowFeatures).focus();event.preventDefault();}});return $.mage.popupWindow;});","mage/fieldset-controls.min.js":"define(['jquery','jquery-ui-modules/widget'],function($){'use strict';$.widget('mage.fieldsetControls',{original:undefined,options:{inputSelector:'[data-reset=\"true\"]'},_create:function(){this.original=this.element.find(this.options.inputSelector).clone(true);this._bind();},_bind:function(){this._on({'fieldsetReset':'_onReset'});},_onReset:function(e){var items;e.stopPropagation();items=this.element.find(this.options.inputSelector);items.each($.proxy(function(index,item){if($(item).attr('type')=='file'){$(item).replaceWith($(this.original[index]).clone(true));}else if($(item).attr('type')=='checkbox'||$(item).attr('type')=='radio'){if($(this.original[index]).attr('checked')===undefined){$(item).removeAttr('checked');}else{$(item).attr('checked',$(this.original[index]).attr('checked'));}}else{$(item).val($(this.original[index]).val());}},this));}});$.widget('mage.fieldsetResetControl',{_create:function(){this._bind();},_bind:function(){this._on({click:'_onClick'});},_onClick:function(e){e.stopPropagation();$(this.element).trigger('fieldsetReset');}});return{fieldsetControls:$.mage.fieldsetControls,fieldsetResetControl:$.mage.fieldsetResetControl};});","mage/sticky.min.js":"define(['jquery','jquery-ui-modules/widget'],function($){'use strict';$.widget('mage.sticky',{options:{container:'',spacingTop:0,stickAfter:0,stickyClass:'_sticky'},_getOptionValue:function(option){var value=this.options[option]||0;if(typeof value==='function'){value=this.options[option]();}\nreturn value;},_create:function(){$(window).on({'scroll':$.proxy(this._stick,this),'resize':$.proxy(this.reset,this)});this.element.on('dimensionsChanged',$.proxy(this.reset,this));this.reset();this.normalizeIE11AndEdgeScroll();},_stick:function(){var offset,isStatic,stuck,stickAfter;isStatic=this.element.css('position')==='static';if(!isStatic&&this.element.is(':visible')){offset=$(document).scrollTop()-\nthis.parentOffset+\nthis._getOptionValue('spacingTop');offset=Math.max(0,Math.min(offset,this.maxOffset));stuck=this.element.hasClass(this.options.stickyClass);stickAfter=this._getOptionValue('stickAfter');if(offset&&!stuck&&offset<stickAfter){offset=0;}\nthis.element.toggleClass(this.options.stickyClass,offset>0).css('top',offset);}},_calculateDimens:function(){var $parent=this.element.parent(),topMargin=parseInt(this.element.css('margin-top'),10),parentHeight=$parent.height()-topMargin,height=this.element.innerHeight(),maxScroll=document.body.offsetHeight-window.innerHeight;if(this.options.container.length>0){maxScroll=$(this.options.container).height();}\nthis.parentOffset=$parent.offset().top+topMargin;this.maxOffset=maxScroll-this.parentOffset;if(this.maxOffset+height>=parentHeight){this.maxOffset=parentHeight-height;}\nreturn this;},reset:function(){this._calculateDimens()._stick();},normalizeIE11AndEdgeScroll:function(){if(navigator.userAgent.match(/Trident.*rv[ :]*11\\.|Edge\\//)){document.body.addEventListener('mousewheel',function(){event.preventDefault();window.scrollTo(0,window.pageYOffset-event.wheelDelta);});}}});return $.mage.sticky;});","mage/mage.min.js":"define(['jquery','mage/apply/main'],function($,mage){'use strict';$.mage=$.mage||{};$.fn.mage=function(name,config){config=config||{};this.each(function(index,el){mage.applyFor(el,config,name);});return this;};$.extend($.mage,{init:function(){mage.apply();return this;},redirect:function(url,type,timeout,forced){var _redirect;forced=!!forced;timeout=timeout||0;type=type||'assign';_redirect=function(){window.location[type](type==='reload'?forced:url);};timeout?setTimeout(_redirect,timeout):_redirect();},isValidSelector:function(selector){try{document.querySelector(selector);return true;}catch(e){return false;}}});$(document).on('contentUpdated','body',function(){if(mage){mage.apply();}});return $.mage;});","mage/validation/validation.min.js":"define(['jquery','mage/validation','mage/translate'],function($){'use strict';$.each({'validate-grouped-qty':[function(value,element,params){var result=false,total=0;$(params).find('input[data-validate*=\"validate-grouped-qty\"]').each(function(i,e){var val=$(e).val(),valInt;if(val&&val.length>0){result=true;valInt=parseFloat(val)||0;if(valInt>=0){total+=valInt;}else{result=false;return result;}}});return result&&total>0;},$.mage.__('Please specify the quantity of product(s).')],'validate-one-checkbox-required-by-name':[function(value,element,params){var checkedCount=0,container;if(element.type==='checkbox'){$('[name=\"'+element.name+'\"]').each(function(){if($(this).is(':checked')){checkedCount+=1;return false;}});}\ncontainer='#'+params;if(checkedCount>0){$(container).removeClass('validation-failed');$(container).addClass('validation-passed');return true;}\n$(container).addClass('validation-failed');$(container).removeClass('validation-passed');return false;},$.mage.__('Please select one of the options.')],'validate-date-between':[function(value,element,params){var minDate=new Date(params[0]),maxDate=new Date(params[1]),inputDate=new Date(element.value),message;minDate.setHours(0);maxDate.setHours(0);if(inputDate>=minDate&&inputDate<=maxDate){return true;}\nmessage=$.mage.__('Please enter a date between %min and %max.');this.dateBetweenErrorMessage=message.replace('%min',minDate).replace('%max',maxDate);return false;},function(){return this.dateBetweenErrorMessage;}],'validate-dob':[function(val,element,params){var dob=$(element).parents('.customer-dob'),dayVal,monthVal,yearVal,dobLength,day,month,year,curYear,validYearMessage,validateDayInMonth,validDateMessage,today,dateEntered;$(dob).find('.'+this.settings.errorClass).removeClass(this.settings.errorClass);dayVal=$(dob).find(params[0]).find('input:text').val();monthVal=$(dob).find(params[1]).find('input:text').val();yearVal=$(dob).find(params[2]).find('input:text').val();dobLength=dayVal.length+monthVal.length+yearVal.length;if(params[3]&&dobLength===0){this.dobErrorMessage=$.mage.__('This is a required field.');return false;}\nif(!params[3]&&dobLength===0){return true;}\nday=parseInt(dayVal,10)||0;month=parseInt(monthVal,10)||0;year=parseInt(yearVal,10)||0;curYear=new Date().getFullYear();if(!day||!month||!year){this.dobErrorMessage=$.mage.__('Please enter a valid full date.');return false;}\nif(month<1||month>12){this.dobErrorMessage=$.mage.__('Please enter a valid month (1-12).');return false;}\nif(year<1900||year>curYear){validYearMessage=$.mage.__('Please enter a valid year (1900-%1).');this.dobErrorMessage=validYearMessage.replace('%1',curYear.toString());return false;}\nvalidateDayInMonth=new Date(year,month,0).getDate();if(day<1||day>validateDayInMonth){validDateMessage=$.mage.__('Please enter a valid day (1-%1).');this.dobErrorMessage=validDateMessage.replace('%1',validateDayInMonth.toString());return false;}\ntoday=new Date();dateEntered=new Date();dateEntered.setFullYear(year,month-1,day);if(dateEntered>today){this.dobErrorMessage=$.mage.__('Please enter a date from the past.');return false;}\nday=day%10===day?'0'+day:day;month=month%10===month?'0'+month:month;$(element).val(month+'/'+day+'/'+year);return true;},function(){return this.dobErrorMessage;}]},function(i,rule){rule.unshift(i);$.validator.addMethod.apply($.validator,rule);});});","mage/validation/url.min.js":"define([],function(){'use strict';return{redirect:function(path){path=this.sanitize(path);if(this.validate(path)){window.location.href=path;}},validate:function(path){var hostname=window.location.hostname;if(path.indexOf(hostname)===-1||path.indexOf('javascript:')!==-1||path.indexOf('vbscript:')!==-1){return false;}\nreturn true;},sanitize:function(path){return path.replace('[^-A-Za-z0-9+&@#/%?=~_|!:,.;\\(\\)]','');}};});","mage/msie/file-reader.min.js":"define(['jquery'],function($){'use strict';var readAsBinaryStringIEFunc=function(fileData){var binary='',self=this,reader=new FileReader();reader.onload=function(){var bytes,length,index;bytes=new Uint8Array(reader.result);length=bytes.length;for(index=0;index<length;index++){binary+=String.fromCharCode(bytes[index]);}\nself.content=binary;$(self).trigger('onload');};reader.readAsArrayBuffer(fileData);};if(typeof FileReader.prototype.readAsBinaryString==='undefined'){FileReader.prototype.readAsBinaryString=readAsBinaryStringIEFunc;}});","mage/apply/scripts.min.js":"define(['underscore','jquery'],function(_,$){'use strict';var scriptSelector='script[type=\"text/x-magento-init\"]',dataAttr='data-mage-init',virtuals=[];function addVirtual(components){virtuals.push({el:false,data:components});}\nfunction setData(components,elem){var data=elem.getAttribute(dataAttr);data=data?JSON.parse(data):{};_.each(components,function(obj,key){if(_.has(obj,'mixins')){data[key]=data[key]||{};data[key].mixins=data[key].mixins||[];data[key].mixins=data[key].mixins.concat(obj.mixins);delete obj.mixins;}});data=$.extend(true,data,components);data=JSON.stringify(data);elem.setAttribute(dataAttr,data);}\nfunction processElems(components,selector){var elems,iterator;if(selector==='*'){addVirtual(components);return;}\nelems=document.querySelectorAll(selector);iterator=setData.bind(null,components);_.toArray(elems).forEach(iterator);}\nfunction getNodeData(node){var data=node.textContent;node.parentNode.removeChild(node);return JSON.parse(data);}\nreturn function(){var nodes=document.querySelectorAll(scriptSelector);_.toArray(nodes).map(getNodeData).forEach(function(item){_.each(item,processElems);});return virtuals.splice(0,virtuals.length);};});","mage/apply/main.min.js":"define(['underscore','jquery','./scripts'],function(_,$,processScripts){'use strict';var dataAttr='data-mage-init',nodeSelector='['+dataAttr+']';function init(el,config,component){require([component],function(fn){var $el;if(typeof fn==='object'){fn=fn[component].bind(fn);}\nif(_.isFunction(fn)){fn=fn.bind(null,config,el);}else{$el=$(el);if($el[component]){fn=$el[component].bind($el,config);}}\nsetTimeout(fn);},function(error){if('console'in window&&typeof window.console.error==='function'){console.error(error);}\nreturn true;});}\nfunction getData(el){var data=el.getAttribute(dataAttr);el.removeAttribute(dataAttr);return{el:el,data:JSON.parse(data)};}\nreturn{apply:function(context){var virtuals=processScripts(!context?document:context),nodes=document.querySelectorAll(nodeSelector);_.toArray(nodes).map(getData).concat(virtuals).forEach(function(itemContainer){var element=itemContainer.el;_.each(itemContainer.data,function(obj,key){if(obj.mixins){require(obj.mixins,function(){var i,len;for(i=0,len=arguments.length;i<len;i++){$.extend(true,itemContainer.data[key],arguments[i](itemContainer.data[key],element));}\ndelete obj.mixins;init.call(null,element,obj,key);});}else{init.call(null,element,obj,key);}});});},applyFor:init};});","mage/gallery/gallery.min.js":"define(['jquery','fotorama/fotorama','underscore','matchMedia','mage/template','text!mage/gallery/gallery.html','uiClass','mage/translate'],function($,fotorama,_,mediaCheck,template,galleryTpl,Class,$t){'use strict';var getMainImageIndex=function(data){var mainIndex;if(_.every(data,function(item){return _.isObject(item);})){mainIndex=_.findIndex(data,function(item){return item.isMain;});}\nreturn mainIndex>0?mainIndex:0;},getTranslate=function(el){var slideTransform=$(el).attr('style').split(';');slideTransform=$.map(slideTransform,function(style){style=style.trim();if(style.startsWith('transform: translate3d')){return style.match(/transform: translate3d\\((.+)px,(.+)px,(.+)px\\)/);}\nreturn false;});return slideTransform.filter(Boolean);},_toNumber=function(str){var type=typeof str;if(type==='string'){return parseInt(str);}\nreturn str;};return Class.extend({defaults:{settings:{},config:{},startConfig:{}},isTouchEnabled:(function(){return'ontouchstart'in document.documentElement;})(),initialize:function(config,element){var self=this;this._super();_.bindAll(this,'_focusSwitcher');if(this.isTouchEnabled){config.options.arrows=false;if(config.fullscreen){config.fullscreen.arrows=false;}}\nconfig.options.width=_toNumber(config.options.width);config.options.height=_toNumber(config.options.height);config.options.thumbwidth=_toNumber(config.options.thumbwidth);config.options.thumbheight=_toNumber(config.options.thumbheight);config.options.swipe=true;this.config=config;this.settings={$element:$(element),$pageWrapper:$('body>.page-wrapper'),currentConfig:config,defaultConfig:_.clone(config),fullscreenConfig:_.clone(config.fullscreen),breakpoints:config.breakpoints,activeBreakpoint:{},fotoramaApi:null,isFullscreen:false,api:null,data:_.clone(config.data)};config.options.ratio=config.options.width / config.options.height;config.options.height=null;$.extend(true,this.startConfig,config);this.initGallery();this.initApi();this.setupBreakpoints();this.initFullscreenSettings();this.settings.$element.on('click','.fotorama__stage__frame',function(){if(!$(this).parents('.fotorama__shadows--left, .fotorama__shadows--right').length&&!$(this).hasClass('fotorama-video-container')){self.openFullScreen();}});if(this.isTouchEnabled&&this.settings.isFullscreen){this.settings.$element.on('tap','.fotorama__stage__frame',function(){var translate=getTranslate($(this).parents('.fotorama__stage__shaft'));if(translate[1]==='0'&&!$(this).hasClass('fotorama-video-container')){self.openFullScreen();self.settings.$pageWrapper.hide();}});}},openFullScreen:function(){this.settings.api.fotorama.requestFullScreen();this.settings.$fullscreenIcon.css({opacity:1,visibility:'visible',display:'block'});},initFullscreenSettings:function(){var settings=this.settings,self=this;settings.$gallery=this.settings.$element.find('[data-gallery-role=\"gallery\"]');settings.$fullscreenIcon=this.settings.$element.find('[data-gallery-role=\"fotorama__fullscreen-icon\"]');settings.focusableStart=this.settings.$element.find('[data-gallery-role=\"fotorama__focusable-start\"]');settings.focusableEnd=this.settings.$element.find('[data-gallery-role=\"fotorama__focusable-end\"]');settings.closeIcon=this.settings.$element.find('[data-gallery-role=\"fotorama__fullscreen-icon\"]');settings.fullscreenConfig.swipe=true;settings.$gallery.on('fotorama:fullscreenenter',function(){settings.closeIcon.show();settings.focusableStart.attr('tabindex','0');settings.focusableEnd.attr('tabindex','0');settings.focusableStart.on('focusin',self._focusSwitcher);settings.focusableEnd.on('focusin',self._focusSwitcher);settings.api.updateOptions(settings.defaultConfig.options,true);settings.api.updateOptions(settings.fullscreenConfig,true);if(!_.isEqual(settings.activeBreakpoint,{})&&settings.breakpoints){settings.api.updateOptions(settings.activeBreakpoint.options,true);}\nsettings.isFullscreen=true;});settings.$gallery.on('fotorama:fullscreenexit',function(){settings.closeIcon.hide();settings.focusableStart.attr('tabindex','-1');settings.focusableEnd.attr('tabindex','-1');settings.api.updateOptions(settings.defaultConfig.options,true);settings.focusableStart.off('focusin',this._focusSwitcher);settings.focusableEnd.off('focusin',this._focusSwitcher);settings.closeIcon.hide();if(!_.isEqual(settings.activeBreakpoint,{})&&settings.breakpoints){settings.api.updateOptions(settings.activeBreakpoint.options,true);}\nsettings.isFullscreen=false;settings.$element.data('gallery').updateOptions({swipe:true});});},_focusSwitcher:function(e){var target=$(e.target),settings=this.settings;if(target.is(settings.focusableStart)){this._setFocus('start');}else if(target.is(settings.focusableEnd)){this._setFocus('end');}},_setFocus:function(position){var settings=this.settings,focusableElements,infelicity;if(position==='end'){settings.$gallery.find(settings.closeIcon).trigger('focus');}else if(position==='start'){infelicity=3;focusableElements=settings.$gallery.find(':focusable');focusableElements.eq(focusableElements.length-infelicity).trigger('focus');}},initGallery:function(){var breakpoints={},settings=this.settings,config=this.config,tpl=template(galleryTpl,{next:$t('Next'),previous:$t('Previous')}),mainImageIndex,$element=settings.$element,$fotoramaElement,$fotoramaStage;if(settings.breakpoints){_.each(_.values(settings.breakpoints),function(breakpoint){var conditions;_.each(_.pairs(breakpoint.conditions),function(pair){conditions=conditions?conditions+' and ('+pair[0]+': '+pair[1]+')':'('+pair[0]+': '+pair[1]+')';});breakpoints[conditions]=breakpoint.options;});settings.breakpoints=breakpoints;}\n_.extend(config,config.options,{options:undefined,click:false,breakpoints:null});settings.currentConfig=config;$element.css('min-height',settings.$element.height()).append(tpl);$fotoramaElement=$element.find('[data-gallery-role=\"gallery\"]');$fotoramaStage=$fotoramaElement.find('.fotorama__stage');$fotoramaStage.css('position','absolute');$fotoramaElement.fotorama(config);$fotoramaElement.find('.fotorama__stage__frame.fotorama__active').one('f:load',function(){$element.find('.gallery-placeholder__image').remove();$element.removeClass('_block-content-loading').css('min-height','');$fotoramaStage.css('position','');});settings.$elementF=$fotoramaElement;settings.fotoramaApi=$fotoramaElement.data('fotorama');$.extend(true,config,this.startConfig);mainImageIndex=getMainImageIndex(config.data);if(mainImageIndex){this.settings.fotoramaApi.show({index:mainImageIndex,time:0});}},setupBreakpoints:function(){var pairs,settings=this.settings,config=this.config,startConfig=this.startConfig,isInitialized={},isTouchEnabled=this.isTouchEnabled;if(_.isObject(settings.breakpoints)){pairs=_.pairs(settings.breakpoints);_.each(pairs,function(pair){var mediaQuery=pair[0];isInitialized[mediaQuery]=false;mediaCheck({media:mediaQuery,entry:function(){$.extend(true,config,_.clone(startConfig));settings.api.updateOptions(settings.defaultConfig.options,true);if(settings.isFullscreen){settings.api.updateOptions(settings.fullscreenConfig,true);}\nif(isTouchEnabled){settings.breakpoints[mediaQuery].options.arrows=false;if(settings.breakpoints[mediaQuery].options.fullscreen){settings.breakpoints[mediaQuery].options.fullscreen.arrows=false;}}\nsettings.api.updateOptions(settings.breakpoints[mediaQuery].options,true);$.extend(true,config,settings.breakpoints[mediaQuery]);settings.activeBreakpoint=settings.breakpoints[mediaQuery];isInitialized[mediaQuery]=true;},exit:function(){if(isInitialized[mediaQuery]){$.extend(true,config,_.clone(startConfig));settings.api.updateOptions(settings.defaultConfig.options,true);if(settings.isFullscreen){settings.api.updateOptions(settings.fullscreenConfig,true);}\nsettings.activeBreakpoint={};}else{isInitialized[mediaQuery]=true;}}});});}},initApi:function(){var settings=this.settings,config=this.config,api={fotorama:settings.fotoramaApi,last:function(){settings.fotoramaApi.show('>>');},first:function(){settings.fotoramaApi.show('<<');},prev:function(){settings.fotoramaApi.show('<');},next:function(){settings.fotoramaApi.show('>');},seek:function(index){if(_.isNumber(index)&&index!==0){if(index>0){index-=1;}\nsettings.fotoramaApi.show(index);}},updateOptions:function(configuration,isInternal){var $selectable=$('a[href], area[href], input, select, '+'textarea, button, iframe, object, embed, *[tabindex], *[contenteditable]').not('[tabindex=-1], [disabled], :hidden'),$focus=$(':focus'),index;if(_.isObject(configuration)){$selectable.each(function(number){if($(this).is($focus)){index=number;}});if(this.isTouchEnabled){configuration.arrows=false;}\nconfiguration.click=false;configuration.breakpoints=null;if(!isInternal){!_.isEqual(settings.activeBreakpoint,{}&&settings.breakpoints)?$.extend(true,settings.activeBreakpoint.options,configuration):settings.isFullscreen?$.extend(true,settings.fullscreenConfig,configuration):$.extend(true,settings.defaultConfig.options,configuration);}\n$.extend(true,settings.currentConfig.options,configuration);settings.fotoramaApi.setOptions(settings.currentConfig.options);if(_.isNumber(index)){$selectable.eq(index).trigger('focus');}}},updateData:function(data){var mainImageIndex;if(_.isArray(data)){settings.fotoramaApi.load(data);mainImageIndex=getMainImageIndex(data);if(settings.fotoramaApi.activeIndex!==mainImageIndex){settings.fotoramaApi.show({index:mainImageIndex,time:0});}\n$.extend(false,settings,{data:data,defaultConfig:data});$.extend(false,config,{data:data});}},returnCurrentImages:function(){var images=[];_.each(this.fotorama.data,function(item){images.push(_.omit(item,'$navThumbFrame','$navDotFrame','$stageFrame','labelledby'));});return images;},updateDataByIndex:function(index,item){settings.fotoramaApi.spliceByIndex(index,item);}};settings.$element.data('gallery',api);settings.api=settings.$element.data('gallery');settings.$element.trigger('gallery:loaded');}});});","mage/utils/objects.min.js":"define(['ko','jquery','underscore','mage/utils/strings'],function(ko,$,_,stringUtils){'use strict';var primitives=['undefined','boolean','number','string'];function setNested(parent,path,value){var last=path.pop(),len=path.length,pi=0,part=path[pi];for(;pi<len;part=path[++pi]){if(!_.isObject(parent[part])){parent[part]={};}\nparent=parent[part];}\nif(typeof parent[last]==='function'){parent[last](value);}else{parent[last]=value;}\nreturn value;}\nfunction getNested(parent,path){var exists=true,len=path.length,pi=0;for(;pi<len&&exists;pi++){parent=parent[path[pi]];if(typeof parent==='undefined'){exists=false;}}\nif(exists){if(ko.isObservable(parent)){parent=parent();}\nreturn parent;}}\nfunction removeNested(parent,path){var field=path.pop();parent=getNested(parent,path);if(_.isObject(parent)){delete parent[field];}}\nreturn{nested:function(data,path,value){var action=arguments.length>2?setNested:getNested;path=path?path.split('.'):[];return action(data,path,value);},nestedRemove:function(data,path){path=path.split('.');removeNested(data,path);},flatten:function(data,separator,parent,result){separator=separator||'.';result=result||{};if(!data){return result;}\n_.each(Object.keys(data),function(name){var node=data[name];if({}.toString.call(node)==='[object Function]'){return;}\nif(parent){name=parent+separator+name;}\ntypeof node==='object'?this.flatten(node,separator,name,result):result[name]=node;},this);return result;},unflatten:function(data,separator){var result={};separator=separator||'.';_.each(data,function(value,nodes){nodes=nodes.split(separator);setNested(result,nodes,value);});return result;},serialize:function(data){var result={};data=this.flatten(data);_.each(data,function(value,keys){keys=stringUtils.serializeName(keys);value=_.isUndefined(value)?'':value;result[keys]=value;},this);return result;},extend:function(){var args=_.toArray(arguments);args.unshift(true);return $.extend.apply($,args);},copy:function(data){var result=data,isArray=Array.isArray(data),placeholder;if(this.isObject(data)||isArray){placeholder=isArray?[]:{};result=this.extend(placeholder,data);}\nreturn result;},hardCopy:function(original){if(original===null||typeof original!=='object'){return original;}\nreturn JSON.parse(JSON.stringify(original));},omit:function(target,list){var removed={},ignored=list;if(this.isObject(list)){ignored=[];_.each(list,function(value,key){if(value){ignored.push(key);}});}else if(_.isString(list)){ignored=_.toArray(arguments).slice(1);}\n_.each(ignored,function(path){var value=this.nested(target,path);if(!_.isUndefined(value)){removed[path]=value;this.nestedRemove(target,path);}},this);return removed;},isObject:function(value){var objProto=Object.prototype;return typeof value=='object'?objProto.toString.call(value)==='[object Object]':false;},isPrimitive:function(value){return value===null||~primitives.indexOf(typeof value);},forEachRecursive:function(data,action,maxDepth){maxDepth=typeof maxDepth==='number'&&!isNaN(maxDepth)?maxDepth-1:7;if(!_.isFunction(action)||_.isFunction(data)||maxDepth<0){return;}\nif(!_.isObject(data)){action(data);return;}\n_.each(data,function(value){this.forEachRecursive(value,action,maxDepth);},this);action(data);},mapRecursive:function(data,action,maxDepth){var newData;maxDepth=typeof maxDepth==='number'&&!isNaN(maxDepth)?maxDepth-1:7;if(!_.isFunction(action)||_.isFunction(data)||maxDepth<0){return data;}\nif(!_.isObject(data)){return action(data);}\nif(_.isArray(data)){newData=_.map(data,function(item){return this.mapRecursive(item,action,maxDepth);},this);return action(newData);}\nnewData=_.mapObject(data,function(val,key){if(data.hasOwnProperty(key)){return this.mapRecursive(val,action,maxDepth);}\nreturn val;},this);return action(newData);},removeEmptyValues:function(data){if(!_.isObject(data)){return data;}\nif(_.isArray(data)){return data.filter(function(item){return!this.isEmptyObj(item);},this);}\nreturn _.omit(data,this.isEmptyObj.bind(this));},isEmptyObj:function(val){return _.isObject(val)&&_.isEmpty(val)||this.isEmpty(val)||val&&val.trim&&this.isEmpty(val.trim());}};});","mage/utils/compare.min.js":"define(['underscore','mage/utils/objects'],function(_,utils){'use strict';var result=[];function equalArrays(keepOrder,target){var args=_.toArray(arguments),arrays;if(!Array.isArray(keepOrder)){arrays=args.slice(2);}else{target=keepOrder;keepOrder=false;arrays=args.slice(1);}\nif(!arrays.length){return true;}\nreturn arrays.every(function(array){if(array===target){return true;}else if(array.length!==target.length){return false;}else if(!keepOrder){return!_.difference(target,array).length;}\nreturn array.every(function(value,index){return target[index]===value;});});}\nfunction isDifferent(a,b){var oldIsPrimitive=utils.isPrimitive(a);if(Array.isArray(a)&&Array.isArray(b)){return!equalArrays(true,a,b);}\nreturn oldIsPrimitive?a!==b:true;}\nfunction getPath(prefix,part){return prefix?prefix+'.'+part:part;}\nfunction hasOwn(obj,key){return Object.prototype.hasOwnProperty.call(obj,key);}\nfunction getContainers(changes){var containers={},indexed=_.indexBy(changes,'path');_.each(indexed,function(change,name){var path;name.split('.').forEach(function(part){path=getPath(path,part);if(path in indexed){return;}\n(containers[path]=containers[path]||[]).push(change);});});return containers;}\nfunction addChange(path,name,type,newValue,oldValue){var data;data={path:path,name:name,type:type};if(type!=='remove'){data.value=newValue;data.oldValue=oldValue;}else{data.oldValue=newValue;}\nresult.push(data);}\nfunction setAll(ns,name,type,iterator,placeholder){var key;if(arguments.length>4){type==='add'?addChange(ns,name,'update',iterator,placeholder):addChange(ns,name,'update',placeholder,iterator);}else{addChange(ns,name,type,iterator);}\nif(!utils.isObject(iterator)){return;}\nfor(key in iterator){if(hasOwn(iterator,key)){setAll(getPath(ns,key),key,type,iterator[key]);}}}\nfunction compare(old,current,ns,name){var key,oldIsObj=utils.isObject(old),newIsObj=utils.isObject(current);if(oldIsObj&&newIsObj){for(key in old){if(hasOwn(old,key)&&!hasOwn(current,key)){setAll(getPath(ns,key),key,'remove',old[key]);}}\nfor(key in current){if(hasOwn(current,key)){hasOwn(old,key)?compare(old[key],current[key],getPath(ns,key),key):setAll(getPath(ns,key),key,'add',current[key]);}}}else if(oldIsObj){setAll(ns,name,'remove',old,current);}else if(newIsObj){setAll(ns,name,'add',current,old);}else if(isDifferent(old,current)){addChange(ns,name,'update',current,old);}}\nreturn{compare:function(){var changes;compare.apply(null,arguments);changes=result.splice(0);return{containers:getContainers(changes),changes:changes,equal:!changes.length};},equalArrays:equalArrays};});","mage/utils/arrays.min.js":"define(['underscore','./strings'],function(_,utils){'use strict';function getIndex(item,container){var index=container.indexOf(item);if(~index){return index;}\nreturn _.findIndex(container,function(value){return value&&value.name===item;});}\nreturn{toggle:function(arr,value,add){return add?this.add(arr,value):this.remove(arr,value);},remove:function(arr,value){var index=arr.indexOf(value);if(~index){arr.splice(index,1);}\nreturn this;},add:function(arr){var values=_.toArray(arguments).slice(1);values.forEach(function(value){if(!~arr.indexOf(value)){arr.push(value);}});return this;},insert:function(item,container,position){var currentIndex=getIndex(item,container),newIndex,target;if(typeof position==='undefined'){position=-1;}else if(typeof position==='string'){position=isNaN(+position)?position:+position;}\nnewIndex=position;if(~currentIndex){target=container.splice(currentIndex,1)[0];if(typeof item==='string'){item=target;}}\nif(typeof position!=='number'){target=position.after||position.before||position;newIndex=getIndex(target,container);if(~newIndex&&(position.after||newIndex>=currentIndex)){newIndex++;}}\nif(newIndex<0){newIndex+=container.length+1;}\ncontainer[newIndex]?container.splice(newIndex,0,item):container[newIndex]=item;return!~currentIndex?item:currentIndex!==newIndex;},formatOffset:function(elems,offset){if(utils.isEmpty(offset)){offset=-1;}\noffset=+offset;if(offset<0){offset+=elems.length+1;}\nreturn offset;}};});","mage/utils/template.min.js":"define(['jquery','underscore','mage/utils/objects','mage/utils/strings'],function($,_,utils,stringUtils){'use strict';var tmplSettings=_.templateSettings,interpolate=/\\$\\{([\\s\\S]+?)\\}/g,opener='${',template,hasStringTmpls;hasStringTmpls=(function(){var testString='var foo = \"bar\"; return `${ foo }` === foo';try{return Function(testString)();}catch(e){return false;}})();function isTmplIgnored(tmpl,target){var parsedTmpl;try{parsedTmpl=JSON.parse(tmpl);if(typeof parsedTmpl==='object'){return tmpl.includes('__disableTmpl');}}catch(e){}\nif(typeof target!=='undefined'){if(typeof target==='object'&&target.hasOwnProperty('__disableTmpl')){return target.__disableTmpl;}}\nreturn false;}\nif(hasStringTmpls){template=function(tmpl,$){return eval('`'+tmpl+'`');};}else{template=function(tmpl,data){var cached=tmplSettings.interpolate;tmplSettings.interpolate=interpolate;tmpl=_.template(tmpl,{variable:'$'})(data);tmplSettings.interpolate=cached;return tmpl;};}\nfunction isTemplate(value){return typeof value==='string'&&value.indexOf(opener)!==-1&&value.indexOf('${{')===-1;}\nfunction render(tmpl,data,castString,maxCycles){var last=tmpl,cycles=0;while(~tmpl.indexOf(opener)&&(typeof maxCycles==='undefined'||cycles<maxCycles)){if(!isTmplIgnored(tmpl)){tmpl=template(tmpl,data);}\nif(tmpl===last){break;}\nlast=tmpl;cycles++;}\nreturn castString?stringUtils.castString(tmpl):tmpl;}\nreturn{template:function(tmpl,data,castString,dontClone){if(typeof tmpl==='string'){return render(tmpl,data,castString);}\nif(!dontClone){tmpl=utils.copy(tmpl);}\ntmpl.$data=data||{};_.each(tmpl,function iterate(value,key,list){var disabled,maxCycles;if(key==='$data'){return;}\nif(isTemplate(key)){delete list[key];key=render(key,tmpl);list[key]=value;}\nif(isTemplate(value)){disabled=isTmplIgnored(value,list);if(typeof disabled==='object'&&disabled.hasOwnProperty(key)&&disabled[key]!==false){maxCycles=disabled[key];}\nif(disabled===true||maxCycles===true){maxCycles=0;}\nlist[key]=render(value,tmpl,castString,maxCycles);}else if($.isPlainObject(value)||Array.isArray(value)){_.each(value,iterate);}});delete tmpl.$data;return tmpl;}};});","mage/utils/main.min.js":"define(function(require){'use strict';var utils={},_=require('underscore'),root=typeof self=='object'&&self.self===self&&self||typeof global=='object'&&global.global===global&&global||Function('return this')()||{};root._=_;return _.extend(utils,require('./arrays'),require('./compare'),require('./misc'),require('./objects'),require('./strings'),require('./template'));});","mage/utils/wrapper.min.js":"define(['underscore'],function(_){'use strict';var superReg=/\\b_super\\b/;return{wrap:function(target,wrapper){if(!_.isFunction(target)||!_.isFunction(wrapper)){return wrapper;}\nreturn function(){var args=_.toArray(arguments),ctx=this,_super;_super=function(){var superArgs=arguments.length?arguments:args.slice(1);return target.apply(ctx,superArgs);};args.unshift(_super);return wrapper.apply(ctx,args);};},wrapSuper:function(target,wrapper){if(!this.hasSuper(wrapper)||!_.isFunction(target)){return wrapper;}\nreturn function(){var _super=this._super,args=arguments,result;this._super=function(){var superArgs=arguments.length?arguments:args;return target.apply(this,superArgs);};result=wrapper.apply(this,args);this._super=_super;return result;};},hasSuper:function(fn){return _.isFunction(fn)&&superReg.test(fn);},extend:function(target){var extenders=_.toArray(arguments).slice(1),iterator=this._extend.bind(this,target);extenders.forEach(iterator);return target;},_extend:function(target,extender){_.each(extender,function(value,key){target[key]=this.wrap(target[key],extender[key]);},this);}};});","mage/utils/strings.min.js":"define(['underscore'],function(_){'use strict';var jsonRe=/^(?:\\{[\\w\\W]*\\}|\\[[\\w\\W]*\\])$/;return{castString:function(str){try{str=str==='true'?true:str==='false'?false:str==='null'?null:+str+''===str?+str:jsonRe.test(str)?JSON.parse(str):str;}catch(e){}\nreturn str;},stringToArray:function(str,separator){separator=separator||' ';return typeof str==='string'?str.split(separator):str;},serializeName:function(name,separator){var result;separator=separator||'.';name=name.split(separator);result=name.shift();name.forEach(function(part){result+='['+part+']';});return result;},isEmpty:function(value){return value===''||_.isUndefined(value)||_.isNull(value);},fullPath:function(prefix,part){return prefix?prefix+'.'+part:part;},getPart:function(parts,offset,delimiter){delimiter=delimiter||'.';parts=parts.split(delimiter);offset=this.formatOffset(parts,offset);parts.splice(offset,1);return parts.join(delimiter)||'';},camelCaseToMinus:function camelCaseToMinus(string){return(''+string).split('').map(function(symbol,index){return index?symbol.toUpperCase()===symbol?'-'+symbol.toLowerCase():symbol:symbol.toLowerCase();}).join('');},minusToCamelCase:function minusToCamelCase(string){return(''+string).split('-').map(function(part,index){return index?part.charAt(0).toUpperCase()+part.slice(1):part;}).join('');}};});","mage/utils/misc.min.js":"define(['underscore','jquery','mage/utils/objects'],function(_,$,utils){'use strict';var defaultAttributes,ajaxSettings,map;defaultAttributes={method:'post',enctype:'multipart/form-data'};ajaxSettings={default:{method:'POST',cache:false,processData:false,contentType:false},simple:{method:'POST',dataType:'json'}};map={'D':'DDD','dd':'DD','d':'D','EEEE':'dddd','EEE':'ddd','e':'d','yyyy':'YYYY','yy':'YY','y':'YYYY','a':'A'};return{uniqueid:function(size){var code=Math.random()*25+65|0,idstr=String.fromCharCode(code);size=size||7;while(idstr.length<size){code=Math.floor(Math.random()*42+48);if(code<58||code>64){idstr+=String.fromCharCode(code);}}\nreturn idstr;},limit:function(owner,target,limit){var fn=owner[target];owner[target]=_.debounce(fn.bind(owner),limit);},normalizeDate:function(mageFormat){var result=mageFormat;_.each(map,function(moment,mage){result=result.replace(new RegExp(mage+'(?=([^\\u0027]*\\u0027[^\\u0027]*\\u0027)*[^\\u0027]*$)'),moment);});result=result.replace(/'(.*?)'/g,'[$1]');return result;},inRange:function(value,min,max){return Math.min(Math.max(min,value),max);},submit:function(options,attrs){var form=document.createElement('form'),data=utils.serialize(options.data),attributes=_.extend({},defaultAttributes,attrs||{});if(!attributes.action){attributes.action=options.url;}\ndata['form_key']=window.FORM_KEY;_.each(attributes,function(value,name){form.setAttribute(name,value);});data=_.map(data,function(value,name){return'<input type=\"hidden\" '+'name=\"'+_.escape(name)+'\" '+'value=\"'+_.escape(value)+'\"'+' />';}).join('');form.insertAdjacentHTML('afterbegin',data);document.body.appendChild(form);form.submit();},ajaxSubmit:function(options,config){var t=new Date().getTime(),settings;options.data['form_key']=window.FORM_KEY;options.data=this.prepareFormData(options.data,config.ajaxSaveType);settings=_.extend({},ajaxSettings[config.ajaxSaveType],options||{});if(!config.ignoreProcessEvents){$('body').trigger('processStart');}\nreturn $.ajax(settings).done(function(data){if(config.response){data.t=t;config.response.data(data);config.response.status(undefined);config.response.status(!data.error);}}).fail(function(){if(config.response){config.response.status(undefined);config.response.status(false);config.response.data({error:true,messages:'Something went wrong.',t:t});}}).always(function(){if(!config.ignoreProcessEvents){$('body').trigger('processStop');}});},prepareFormData:function(data,type){var formData;if(type==='default'){formData=new FormData();_.each(utils.serialize(data),function(val,name){formData.append(name,val);});}else if(type==='simple'){formData=utils.serialize(data);}\nreturn formData;},filterFormData:function(data,suffix,separator){data=data||{};suffix=suffix||'prepared-for-send';separator=separator||'-';_.each(data,function(value,key){if(_.isObject(value)&&!Array.isArray(value)){this.filterFormData(value,suffix,separator);}else if(_.isString(key)&&~key.indexOf(suffix)){data[key.split(separator)[0]]=value;delete data[key];}},this);return data;},escape:function(string){return string?$('<p></p>').text(string).html().replace(/\"/g,'&quot;'):string;},unescape:function(data){var unescaped=_.unescape(data),mapCharacters={'&#039;':'\\''};_.each(mapCharacters,function(value,key){unescaped=unescaped.replace(key,value);});return unescaped;},convertToMomentFormat:function(format){var newFormat;newFormat=format.replace(/yyyy|yy|y/,'YYYY');newFormat=newFormat.replace(/dd|d/g,'DD');return newFormat;},getUrlParameters:function(url){var params={},queries=url.split('?'),temp,i,l;if(!queries[1]){return params;}\nqueries=queries[1].split('&');for(i=0,l=queries.length;i<l;i++){temp=queries[i].split('=');if(temp[1]){params[temp[0]]=decodeURIComponent(temp[1].replace(/\\+/g,'%20'));}else{params[temp[0]]='';}}\nreturn params;}};});","Magento_PageBuilder/js/events.min.js":"define(['uiEvents'],function(uiEvents){'use strict';return{on:function(events,callback,ns){uiEvents.on('pagebuilder:'+events,callback,'pagebuilder:'+ns);return this;},off:function(ns){uiEvents.off('pagebuilder:'+ns);return this;},trigger:function(name,args){return uiEvents.trigger('pagebuilder:'+name,args);}};});","Magento_PageBuilder/js/widget-initializer.min.js":"define(['underscore','jquery','mage/apply/main','Magento_Ui/js/lib/view/utils/dom-observer'],function(_,$,mage,domObserver){'use strict';function initializeWidget(el,data,breakpoints,currentViewport){_.each(data,function(config,component){config=config||{};config.breakpoints=breakpoints;config.currentViewport=currentViewport;mage.applyFor(el,config,component);});}\nreturn function(data,contextElement){_.each(data.config,function(componentConfiguration,elementPath){domObserver.get(elementPath,function(element){var $element=$(element);if(contextElement){$element=$(contextElement).find(element);}\nif($element.length){initializeWidget($element,componentConfiguration,data.breakpoints,data.currentViewport);}});});};});","Magento_PageBuilder/js/resource/slick/slick.min.js":"/*\n     _ _      _       _\n ___| (_) ___| | __  (_)___\n/ __| | |/ __| |/ /  | / __|\n\\__ \\ | | (__|   < _ | \\__ \\\n|___/_|_|\\___|_|\\_(_)/ |___/\n                   |__/\n\n Version: 1.9.0\n  Author: Ken Wheeler\n Website: http://kenwheeler.github.io\n    Docs: http://kenwheeler.github.io/slick\n    Repo: http://github.com/kenwheeler/slick\n  Issues: http://github.com/kenwheeler/slick/issues\n\n */\n(function(i){\"use strict\";\"function\"==typeof define&&define.amd?define([\"jquery\"],i):\"undefined\"!=typeof exports?module.exports=i(require(\"jquery\")):i(jQuery)})(function(i){\"use strict\";var e=window.Slick||{};e=function(){function e(e,o){var s,n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:i(e),appendDots:i(e),arrows:!0,asNavFor:null,prevArrow:'<button class=\"slick-prev\" aria-label=\"Previous\" type=\"button\">Previous</button>',nextArrow:'<button class=\"slick-next\" aria-label=\"Next\" type=\"button\">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:\"50px\",cssEase:\"ease\",customPaging:function(e,t){return i('<button type=\"button\" />').text(t+1)},dots:!1,dotsClass:\"slick-dots\",draggable:!0,easing:\"linear\",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:\"ondemand\",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:\"window\",responsive:null,rows:1,rtl:!1,slide:\"\",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},n.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},i.extend(n,n.initials),n.activeBreakpoint=null,n.animType=null,n.animProp=null,n.breakpoints=[],n.breakpointSettings=[],n.cssTransitions=!1,n.focussed=!1,n.interrupted=!1,n.hidden=\"hidden\",n.paused=!0,n.positionProp=null,n.respondTo=null,n.rowCount=1,n.shouldClick=!0,n.$slider=i(e),n.$slidesCache=null,n.transformType=null,n.transitionType=null,n.visibilityChange=\"visibilitychange\",n.windowWidth=0,n.windowTimer=null,s=i(e).data(\"slick\")||{},n.options=i.extend({},n.defaults,o,s),n.currentSlide=n.options.initialSlide,n.originalSettings=n.options,\"undefined\"!=typeof document.mozHidden?(n.hidden=\"mozHidden\",n.visibilityChange=\"mozvisibilitychange\"):\"undefined\"!=typeof document.webkitHidden&&(n.hidden=\"webkitHidden\",n.visibilityChange=\"webkitvisibilitychange\"),n.autoPlay=i.proxy(n.autoPlay,n),n.autoPlayClear=i.proxy(n.autoPlayClear,n),n.autoPlayIterator=i.proxy(n.autoPlayIterator,n),n.changeSlide=i.proxy(n.changeSlide,n),n.clickHandler=i.proxy(n.clickHandler,n),n.selectHandler=i.proxy(n.selectHandler,n),n.setPosition=i.proxy(n.setPosition,n),n.swipeHandler=i.proxy(n.swipeHandler,n),n.dragHandler=i.proxy(n.dragHandler,n),n.keyHandler=i.proxy(n.keyHandler,n),n.instanceUid=t++,n.htmlExpr=/^(?:\\s*(<[\\w\\W]+>)[^>]*)$/,n.registerBreakpoints(),n.init(!0)}var t=0;return e}(),e.prototype.activateADA=function(){var i=this;i.$slideTrack.find(\".slick-active\").attr({\"aria-hidden\":\"false\"}).find(\"a, input, button, select\").attr({tabindex:\"0\"})},e.prototype.addSlide=e.prototype.slickAdd=function(e,t,o){var s=this;if(\"boolean\"==typeof t)o=t,t=null;else if(t<0||t>=s.slideCount)return!1;s.unload(),\"number\"==typeof t?0===t&&0===s.$slides.length?i(e).appendTo(s.$slideTrack):o?i(e).insertBefore(s.$slides.eq(t)):i(e).insertAfter(s.$slides.eq(t)):o===!0?i(e).prependTo(s.$slideTrack):i(e).appendTo(s.$slideTrack),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slides.each(function(e,t){i(t).attr(\"data-slick-index\",e)}),s.$slidesCache=s.$slides,s.reinit()},e.prototype.animateHeight=function(){var i=this;if(1===i.options.slidesToShow&&i.options.adaptiveHeight===!0&&i.options.vertical===!1){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.animate({height:e},i.options.speed)}},e.prototype.animateSlide=function(e,t){var o={},s=this;s.animateHeight(),s.options.rtl===!0&&s.options.vertical===!1&&(e=-e),s.transformsEnabled===!1?s.options.vertical===!1?s.$slideTrack.animate({left:e},s.options.speed,s.options.easing,t):s.$slideTrack.animate({top:e},s.options.speed,s.options.easing,t):s.cssTransitions===!1?(s.options.rtl===!0&&(s.currentLeft=-s.currentLeft),i({animStart:s.currentLeft}).animate({animStart:e},{duration:s.options.speed,easing:s.options.easing,step:function(i){i=Math.ceil(i),s.options.vertical===!1?(o[s.animType]=\"translate(\"+i+\"px, 0px)\",s.$slideTrack.css(o)):(o[s.animType]=\"translate(0px,\"+i+\"px)\",s.$slideTrack.css(o))},complete:function(){t&&t.call()}})):(s.applyTransition(),e=Math.ceil(e),s.options.vertical===!1?o[s.animType]=\"translate3d(\"+e+\"px, 0px, 0px)\":o[s.animType]=\"translate3d(0px,\"+e+\"px, 0px)\",s.$slideTrack.css(o),t&&setTimeout(function(){s.disableTransition(),t.call()},s.options.speed))},e.prototype.getNavTarget=function(){var e=this,t=e.options.asNavFor;return t&&null!==t&&(t=i(t).not(e.$slider)),t},e.prototype.asNavFor=function(e){var t=this,o=t.getNavTarget();null!==o&&\"object\"==typeof o&&o.each(function(){var t=i(this).slick(\"getSlick\");t.unslicked||t.slideHandler(e,!0)})},e.prototype.applyTransition=function(i){var e=this,t={};e.options.fade===!1?t[e.transitionType]=e.transformType+\" \"+e.options.speed+\"ms \"+e.options.cssEase:t[e.transitionType]=\"opacity \"+e.options.speed+\"ms \"+e.options.cssEase,e.options.fade===!1?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.autoPlay=function(){var i=this;i.autoPlayClear(),i.slideCount>i.options.slidesToShow&&(i.autoPlayTimer=setInterval(i.autoPlayIterator,i.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){var i=this;i.autoPlayTimer&&clearInterval(i.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var i=this,e=i.currentSlide+i.options.slidesToScroll;i.paused||i.interrupted||i.focussed||(i.options.infinite===!1&&(1===i.direction&&i.currentSlide+1===i.slideCount-1?i.direction=0:0===i.direction&&(e=i.currentSlide-i.options.slidesToScroll,i.currentSlide-1===0&&(i.direction=1))),i.slideHandler(e))},e.prototype.buildArrows=function(){var e=this;e.options.arrows===!0&&(e.$prevArrow=i(e.options.prevArrow).addClass(\"slick-arrow\"),e.$nextArrow=i(e.options.nextArrow).addClass(\"slick-arrow\"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass(\"slick-hidden\").removeAttr(\"aria-hidden tabindex\"),e.$nextArrow.removeClass(\"slick-hidden\").removeAttr(\"aria-hidden tabindex\"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),e.options.infinite!==!0&&e.$prevArrow.addClass(\"slick-disabled\").attr(\"aria-disabled\",\"true\")):e.$prevArrow.add(e.$nextArrow).addClass(\"slick-hidden\").attr({\"aria-disabled\":\"true\",tabindex:\"-1\"}))},e.prototype.buildDots=function(){var e,t,o=this;if(o.options.dots===!0&&o.slideCount>o.options.slidesToShow){for(o.$slider.addClass(\"slick-dotted\"),t=i(\"<ul />\").addClass(o.options.dotsClass),e=0;e<=o.getDotCount();e+=1)t.append(i(\"<li />\").append(o.options.customPaging.call(this,o,e)));o.$dots=t.appendTo(o.options.appendDots),o.$dots.find(\"li\").first().addClass(\"slick-active\")}},e.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+\":not(.slick-cloned)\").addClass(\"slick-slide\"),e.slideCount=e.$slides.length,e.$slides.each(function(e,t){i(t).attr(\"data-slick-index\",e).data(\"originalStyling\",i(t).attr(\"style\")||\"\")}),e.$slider.addClass(\"slick-slider\"),e.$slideTrack=0===e.slideCount?i('<div class=\"slick-track\"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class=\"slick-track\"/>').parent(),e.$list=e.$slideTrack.wrap('<div class=\"slick-list\"/>').parent(),e.$slideTrack.css(\"opacity\",0),e.options.centerMode!==!0&&e.options.swipeToSlide!==!0||(e.options.slidesToScroll=1),i(\"img[data-lazy]\",e.$slider).not(\"[src]\").addClass(\"slick-loading\"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses(\"number\"==typeof e.currentSlide?e.currentSlide:0),e.options.draggable===!0&&e.$list.addClass(\"draggable\")},e.prototype.buildRows=function(){var i,e,t,o,s,n,r,l=this;if(o=document.createDocumentFragment(),n=l.$slider.children(),l.options.rows>0){for(r=l.options.slidesPerRow*l.options.rows,s=Math.ceil(n.length/r),i=0;i<s;i++){var d=document.createElement(\"div\");for(e=0;e<l.options.rows;e++){var a=document.createElement(\"div\");for(t=0;t<l.options.slidesPerRow;t++){var c=i*r+(e*l.options.slidesPerRow+t);n.get(c)&&a.appendChild(n.get(c))}d.appendChild(a)}o.appendChild(d)}l.$slider.empty().append(o),l.$slider.children().children().children().css({width:100/l.options.slidesPerRow+\"%\",display:\"inline-block\"})}},e.prototype.checkResponsive=function(e,t){var o,s,n,r=this,l=!1,d=r.$slider.width(),a=window.innerWidth||i(window).width();if(\"window\"===r.respondTo?n=a:\"slider\"===r.respondTo?n=d:\"min\"===r.respondTo&&(n=Math.min(a,d)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){s=null;for(o in r.breakpoints)r.breakpoints.hasOwnProperty(o)&&(r.originalSettings.mobileFirst===!1?n<r.breakpoints[o]&&(s=r.breakpoints[o]):n>r.breakpoints[o]&&(s=r.breakpoints[o]));null!==s?null!==r.activeBreakpoint?(s!==r.activeBreakpoint||t)&&(r.activeBreakpoint=s,\"unslick\"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),e===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):(r.activeBreakpoint=s,\"unslick\"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),e===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,e===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(e),l=s),e||l===!1||r.$slider.trigger(\"breakpoint\",[r,l])}},e.prototype.changeSlide=function(e,t){var o,s,n,r=this,l=i(e.currentTarget);switch(l.is(\"a\")&&e.preventDefault(),l.is(\"li\")||(l=l.closest(\"li\")),n=r.slideCount%r.options.slidesToScroll!==0,o=n?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,e.data.message){case\"previous\":s=0===o?r.options.slidesToScroll:r.options.slidesToShow-o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-s,!1,t);break;case\"next\":s=0===o?r.options.slidesToScroll:o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+s,!1,t);break;case\"index\":var d=0===e.data.index?0:e.data.index||l.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(d),!1,t),l.children().trigger(\"focus\");break;default:return}},e.prototype.checkNavigable=function(i){var e,t,o=this;if(e=o.getNavigableIndexes(),t=0,i>e[e.length-1])i=e[e.length-1];else for(var s in e){if(i<e[s]){i=t;break}t=e[s]}return i},e.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(i(\"li\",e.$dots).off(\"click.slick\",e.changeSlide).off(\"mouseenter.slick\",i.proxy(e.interrupt,e,!0)).off(\"mouseleave.slick\",i.proxy(e.interrupt,e,!1)),e.options.accessibility===!0&&e.$dots.off(\"keydown.slick\",e.keyHandler)),e.$slider.off(\"focus.slick blur.slick\"),e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off(\"click.slick\",e.changeSlide),e.$nextArrow&&e.$nextArrow.off(\"click.slick\",e.changeSlide),e.options.accessibility===!0&&(e.$prevArrow&&e.$prevArrow.off(\"keydown.slick\",e.keyHandler),e.$nextArrow&&e.$nextArrow.off(\"keydown.slick\",e.keyHandler))),e.$list.off(\"touchstart.slick mousedown.slick\",e.swipeHandler),e.$list.off(\"touchmove.slick mousemove.slick\",e.swipeHandler),e.$list.off(\"touchend.slick mouseup.slick\",e.swipeHandler),e.$list.off(\"touchcancel.slick mouseleave.slick\",e.swipeHandler),e.$list.off(\"click.slick\",e.clickHandler),i(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),e.options.accessibility===!0&&e.$list.off(\"keydown.slick\",e.keyHandler),e.options.focusOnSelect===!0&&i(e.$slideTrack).children().off(\"click.slick\",e.selectHandler),i(window).off(\"orientationchange.slick.slick-\"+e.instanceUid,e.orientationChange),i(window).off(\"resize.slick.slick-\"+e.instanceUid,e.resize),i(\"[draggable!=true]\",e.$slideTrack).off(\"dragstart\",e.preventDefault),i(window).off(\"load.slick.slick-\"+e.instanceUid,e.setPosition)},e.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off(\"mouseenter.slick\",i.proxy(e.interrupt,e,!0)),e.$list.off(\"mouseleave.slick\",i.proxy(e.interrupt,e,!1))},e.prototype.cleanUpRows=function(){var i,e=this;e.options.rows>0&&(i=e.$slides.children().children(),i.removeAttr(\"style\"),e.$slider.empty().append(i))},e.prototype.clickHandler=function(i){var e=this;e.shouldClick===!1&&(i.stopImmediatePropagation(),i.stopPropagation(),i.preventDefault())},e.prototype.destroy=function(e){var t=this;t.autoPlayClear(),t.touchObject={},t.cleanUpEvents(),i(\".slick-cloned\",t.$slider).detach(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.$prevArrow.length&&(t.$prevArrow.removeClass(\"slick-disabled slick-arrow slick-hidden\").removeAttr(\"aria-hidden aria-disabled tabindex\").css(\"display\",\"\"),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove()),t.$nextArrow&&t.$nextArrow.length&&(t.$nextArrow.removeClass(\"slick-disabled slick-arrow slick-hidden\").removeAttr(\"aria-hidden aria-disabled tabindex\").css(\"display\",\"\"),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove()),t.$slides&&(t.$slides.removeClass(\"slick-slide slick-active slick-center slick-visible slick-current\").removeAttr(\"aria-hidden\").removeAttr(\"data-slick-index\").each(function(){i(this).attr(\"style\",i(this).data(\"originalStyling\"))}),t.$slideTrack.children(this.options.slide).detach(),t.$slideTrack.detach(),t.$list.detach(),t.$slider.append(t.$slides)),t.cleanUpRows(),t.$slider.removeClass(\"slick-slider\"),t.$slider.removeClass(\"slick-initialized\"),t.$slider.removeClass(\"slick-dotted\"),t.unslicked=!0,e||t.$slider.trigger(\"destroy\",[t])},e.prototype.disableTransition=function(i){var e=this,t={};t[e.transitionType]=\"\",e.options.fade===!1?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.fadeSlide=function(i,e){var t=this;t.cssTransitions===!1?(t.$slides.eq(i).css({zIndex:t.options.zIndex}),t.$slides.eq(i).animate({opacity:1},t.options.speed,t.options.easing,e)):(t.applyTransition(i),t.$slides.eq(i).css({opacity:1,zIndex:t.options.zIndex}),e&&setTimeout(function(){t.disableTransition(i),e.call()},t.options.speed))},e.prototype.fadeSlideOut=function(i){var e=this;e.cssTransitions===!1?e.$slides.eq(i).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(i),e.$slides.eq(i).css({opacity:0,zIndex:e.options.zIndex-2}))},e.prototype.filterSlides=e.prototype.slickFilter=function(i){var e=this;null!==i&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(i).appendTo(e.$slideTrack),e.reinit())},e.prototype.focusHandler=function(){var e=this;e.$slider.off(\"focus.slick blur.slick\").on(\"focus.slick\",\"*\",function(t){var o=i(this);setTimeout(function(){e.options.pauseOnFocus&&o.is(\":focus\")&&(e.focussed=!0,e.autoPlay())},0)}).on(\"blur.slick\",\"*\",function(t){i(this);e.options.pauseOnFocus&&(e.focussed=!1,e.autoPlay())})},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){var i=this;return i.currentSlide},e.prototype.getDotCount=function(){var i=this,e=0,t=0,o=0;if(i.options.infinite===!0)if(i.slideCount<=i.options.slidesToShow)++o;else for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else if(i.options.centerMode===!0)o=i.slideCount;else if(i.options.asNavFor)for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else o=1+Math.ceil((i.slideCount-i.options.slidesToShow)/i.options.slidesToScroll);return o-1},e.prototype.getLeft=function(i){var e,t,o,s,n=this,r=0;return n.slideOffset=0,t=n.$slides.first().outerHeight(!0),n.options.infinite===!0?(n.slideCount>n.options.slidesToShow&&(n.slideOffset=n.slideWidth*n.options.slidesToShow*-1,s=-1,n.options.vertical===!0&&n.options.centerMode===!0&&(2===n.options.slidesToShow?s=-1.5:1===n.options.slidesToShow&&(s=-2)),r=t*n.options.slidesToShow*s),n.slideCount%n.options.slidesToScroll!==0&&i+n.options.slidesToScroll>n.slideCount&&n.slideCount>n.options.slidesToShow&&(i>n.slideCount?(n.slideOffset=(n.options.slidesToShow-(i-n.slideCount))*n.slideWidth*-1,r=(n.options.slidesToShow-(i-n.slideCount))*t*-1):(n.slideOffset=n.slideCount%n.options.slidesToScroll*n.slideWidth*-1,r=n.slideCount%n.options.slidesToScroll*t*-1))):i+n.options.slidesToShow>n.slideCount&&(n.slideOffset=(i+n.options.slidesToShow-n.slideCount)*n.slideWidth,r=(i+n.options.slidesToShow-n.slideCount)*t),n.slideCount<=n.options.slidesToShow&&(n.slideOffset=0,r=0),n.options.centerMode===!0&&n.slideCount<=n.options.slidesToShow?n.slideOffset=n.slideWidth*Math.floor(n.options.slidesToShow)/2-n.slideWidth*n.slideCount/2:n.options.centerMode===!0&&n.options.infinite===!0?n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)-n.slideWidth:n.options.centerMode===!0&&(n.slideOffset=0,n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)),e=n.options.vertical===!1?i*n.slideWidth*-1+n.slideOffset:i*t*-1+r,n.options.variableWidth===!0&&(o=n.slideCount<=n.options.slidesToShow||n.options.infinite===!1?n.$slideTrack.children(\".slick-slide\").eq(i):n.$slideTrack.children(\".slick-slide\").eq(i+n.options.slidesToShow),e=n.options.rtl===!0?o[0]?(n.$slideTrack.width()-o[0].offsetLeft-o.width())*-1:0:o[0]?o[0].offsetLeft*-1:0,n.options.centerMode===!0&&(o=n.slideCount<=n.options.slidesToShow||n.options.infinite===!1?n.$slideTrack.children(\".slick-slide\").eq(i):n.$slideTrack.children(\".slick-slide\").eq(i+n.options.slidesToShow+1),e=n.options.rtl===!0?o[0]?(n.$slideTrack.width()-o[0].offsetLeft-o.width())*-1:0:o[0]?o[0].offsetLeft*-1:0,e+=(n.$list.width()-o.outerWidth())/2)),e},e.prototype.getOption=e.prototype.slickGetOption=function(i){var e=this;return e.options[i]},e.prototype.getNavigableIndexes=function(){var i,e=this,t=0,o=0,s=[];for(e.options.infinite===!1?i=e.slideCount:(t=e.options.slidesToScroll*-1,o=e.options.slidesToScroll*-1,i=2*e.slideCount);t<i;)s.push(t),t=o+e.options.slidesToScroll,o+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return s},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var e,t,o,s,n=this;return s=n.options.centerMode===!0?Math.floor(n.$list.width()/2):0,o=n.swipeLeft*-1+s,n.options.swipeToSlide===!0?(n.$slideTrack.find(\".slick-slide\").each(function(e,s){var r,l,d;if(r=i(s).outerWidth(),l=s.offsetLeft,n.options.centerMode!==!0&&(l+=r/2),d=l+r,o<d)return t=s,!1}),e=Math.abs(i(t).attr(\"data-slick-index\")-n.currentSlide)||1):n.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(i,e){var t=this;t.changeSlide({data:{message:\"index\",index:parseInt(i)}},e)},e.prototype.init=function(e){var t=this;i(t.$slider).hasClass(\"slick-initialized\")||(i(t.$slider).addClass(\"slick-initialized\"),t.buildRows(),t.buildOut(),t.setProps(),t.startLoad(),t.loadSlider(),t.initializeEvents(),t.updateArrows(),t.updateDots(),t.checkResponsive(!0),t.focusHandler()),e&&t.$slider.trigger(\"init\",[t]),t.options.accessibility===!0&&t.initADA(),t.options.autoplay&&(t.paused=!1,t.autoPlay())},e.prototype.initADA=function(){var e=this,t=Math.ceil(e.slideCount/e.options.slidesToShow),o=e.getNavigableIndexes().filter(function(i){return i>=0&&i<e.slideCount});e.$slides.add(e.$slideTrack.find(\".slick-cloned\")).attr({\"aria-hidden\":\"true\",tabindex:\"-1\"}).find(\"a, input, button, select\").attr({tabindex:\"-1\"}),null!==e.$dots&&(e.$slides.not(e.$slideTrack.find(\".slick-cloned\")).each(function(t){var s=o.indexOf(t);if(i(this).attr({role:\"tabpanel\",id:\"slick-slide\"+e.instanceUid+t,tabindex:-1}),s!==-1){var n=\"slick-slide-control\"+e.instanceUid+s;i(\"#\"+n).length&&i(this).attr({\"aria-describedby\":n})}}),e.$dots.attr(\"role\",\"tablist\").find(\"li\").each(function(s){var n=o[s];i(this).attr({role:\"presentation\"}),i(this).find(\"button\").first().attr({role:\"tab\",id:\"slick-slide-control\"+e.instanceUid+s,\"aria-controls\":\"slick-slide\"+e.instanceUid+n,\"aria-label\":s+1+\" of \"+t,\"aria-selected\":null,tabindex:\"-1\"})}).eq(e.currentSlide).find(\"button\").attr({\"aria-selected\":\"true\",tabindex:\"0\"}).end());for(var s=e.currentSlide,n=s+e.options.slidesToShow;s<n;s++)e.options.focusOnChange?e.$slides.eq(s).attr({tabindex:\"0\"}):e.$slides.eq(s).removeAttr(\"tabindex\");e.activateADA()},e.prototype.initArrowEvents=function(){var i=this;i.options.arrows===!0&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.off(\"click.slick\").on(\"click.slick\",{message:\"previous\"},i.changeSlide),i.$nextArrow.off(\"click.slick\").on(\"click.slick\",{message:\"next\"},i.changeSlide),i.options.accessibility===!0&&(i.$prevArrow.on(\"keydown.slick\",i.keyHandler),i.$nextArrow.on(\"keydown.slick\",i.keyHandler)))},e.prototype.initDotEvents=function(){var e=this;e.options.dots===!0&&e.slideCount>e.options.slidesToShow&&(i(\"li\",e.$dots).on(\"click.slick\",{message:\"index\"},e.changeSlide),e.options.accessibility===!0&&e.$dots.on(\"keydown.slick\",e.keyHandler)),e.options.dots===!0&&e.options.pauseOnDotsHover===!0&&e.slideCount>e.options.slidesToShow&&i(\"li\",e.$dots).on(\"mouseenter.slick\",i.proxy(e.interrupt,e,!0)).on(\"mouseleave.slick\",i.proxy(e.interrupt,e,!1))},e.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on(\"mouseenter.slick\",i.proxy(e.interrupt,e,!0)),e.$list.on(\"mouseleave.slick\",i.proxy(e.interrupt,e,!1)))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on(\"touchstart.slick mousedown.slick\",{action:\"start\"},e.swipeHandler),e.$list.on(\"touchmove.slick mousemove.slick\",{action:\"move\"},e.swipeHandler),e.$list.on(\"touchend.slick mouseup.slick\",{action:\"end\"},e.swipeHandler),e.$list.on(\"touchcancel.slick mouseleave.slick\",{action:\"end\"},e.swipeHandler),e.$list.on(\"click.slick\",e.clickHandler),i(document).on(e.visibilityChange,i.proxy(e.visibility,e)),e.options.accessibility===!0&&e.$list.on(\"keydown.slick\",e.keyHandler),e.options.focusOnSelect===!0&&i(e.$slideTrack).children().on(\"click.slick\",e.selectHandler),i(window).on(\"orientationchange.slick.slick-\"+e.instanceUid,i.proxy(e.orientationChange,e)),i(window).on(\"resize.slick.slick-\"+e.instanceUid,i.proxy(e.resize,e)),i(\"[draggable!=true]\",e.$slideTrack).on(\"dragstart\",e.preventDefault),i(window).on(\"load.slick.slick-\"+e.instanceUid,e.setPosition),i(e.setPosition)},e.prototype.initUI=function(){var i=this;i.options.arrows===!0&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.show(),i.$nextArrow.show()),i.options.dots===!0&&i.slideCount>i.options.slidesToShow&&i.$dots.show()},e.prototype.keyHandler=function(i){var e=this;i.target.tagName.match(\"TEXTAREA|INPUT|SELECT\")||(37===i.keyCode&&e.options.accessibility===!0?e.changeSlide({data:{message:e.options.rtl===!0?\"next\":\"previous\"}}):39===i.keyCode&&e.options.accessibility===!0&&e.changeSlide({data:{message:e.options.rtl===!0?\"previous\":\"next\"}}))},e.prototype.lazyLoad=function(){function e(e){i(\"img[data-lazy]\",e).each(function(){var e=i(this),t=i(this).attr(\"data-lazy\"),o=i(this).attr(\"data-srcset\"),s=i(this).attr(\"data-sizes\")||r.$slider.attr(\"data-sizes\"),n=document.createElement(\"img\");n.onload=function(){e.animate({opacity:0},100,function(){o&&(e.attr(\"srcset\",o),s&&e.attr(\"sizes\",s)),e.attr(\"src\",t).animate({opacity:1},200,function(){e.removeAttr(\"data-lazy data-srcset data-sizes\").removeClass(\"slick-loading\")}),r.$slider.trigger(\"lazyLoaded\",[r,e,t])})},n.onerror=function(){e.removeAttr(\"data-lazy\").removeClass(\"slick-loading\").addClass(\"slick-lazyload-error\"),r.$slider.trigger(\"lazyLoadError\",[r,e,t])},n.src=t})}var t,o,s,n,r=this;if(r.options.centerMode===!0?r.options.infinite===!0?(s=r.currentSlide+(r.options.slidesToShow/2+1),n=s+r.options.slidesToShow+2):(s=Math.max(0,r.currentSlide-(r.options.slidesToShow/2+1)),n=2+(r.options.slidesToShow/2+1)+r.currentSlide):(s=r.options.infinite?r.options.slidesToShow+r.currentSlide:r.currentSlide,n=Math.ceil(s+r.options.slidesToShow),r.options.fade===!0&&(s>0&&s--,n<=r.slideCount&&n++)),t=r.$slider.find(\".slick-slide\").slice(s,n),\"anticipated\"===r.options.lazyLoad)for(var l=s-1,d=n,a=r.$slider.find(\".slick-slide\"),c=0;c<r.options.slidesToScroll;c++)l<0&&(l=r.slideCount-1),t=t.add(a.eq(l)),t=t.add(a.eq(d)),l--,d++;e(t),r.slideCount<=r.options.slidesToShow?(o=r.$slider.find(\".slick-slide\"),e(o)):r.currentSlide>=r.slideCount-r.options.slidesToShow?(o=r.$slider.find(\".slick-cloned\").slice(0,r.options.slidesToShow),e(o)):0===r.currentSlide&&(o=r.$slider.find(\".slick-cloned\").slice(r.options.slidesToShow*-1),e(o))},e.prototype.loadSlider=function(){var i=this;i.setPosition(),i.$slideTrack.css({opacity:1}),i.$slider.removeClass(\"slick-loading\"),i.initUI(),\"progressive\"===i.options.lazyLoad&&i.progressiveLazyLoad()},e.prototype.next=e.prototype.slickNext=function(){var i=this;i.changeSlide({data:{message:\"next\"}})},e.prototype.orientationChange=function(){var i=this;i.checkResponsive(),i.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){var i=this;i.autoPlayClear(),i.paused=!0},e.prototype.play=e.prototype.slickPlay=function(){var i=this;i.autoPlay(),i.options.autoplay=!0,i.paused=!1,i.focussed=!1,i.interrupted=!1},e.prototype.postSlide=function(e){var t=this;if(!t.unslicked&&(t.$slider.trigger(\"afterChange\",[t,e]),t.animating=!1,t.slideCount>t.options.slidesToShow&&t.setPosition(),t.swipeLeft=null,t.options.autoplay&&t.autoPlay(),t.options.accessibility===!0&&(t.initADA(),t.options.focusOnChange))){var o=i(t.$slides.get(t.currentSlide));o.attr(\"tabindex\",0).focus()}},e.prototype.prev=e.prototype.slickPrev=function(){var i=this;i.changeSlide({data:{message:\"previous\"}})},e.prototype.preventDefault=function(i){i.preventDefault()},e.prototype.progressiveLazyLoad=function(e){e=e||1;var t,o,s,n,r,l=this,d=i(\"img[data-lazy]\",l.$slider);d.length?(t=d.first(),o=t.attr(\"data-lazy\"),s=t.attr(\"data-srcset\"),n=t.attr(\"data-sizes\")||l.$slider.attr(\"data-sizes\"),r=document.createElement(\"img\"),r.onload=function(){s&&(t.attr(\"srcset\",s),n&&t.attr(\"sizes\",n)),t.attr(\"src\",o).removeAttr(\"data-lazy data-srcset data-sizes\").removeClass(\"slick-loading\"),l.options.adaptiveHeight===!0&&l.setPosition(),l.$slider.trigger(\"lazyLoaded\",[l,t,o]),l.progressiveLazyLoad()},r.onerror=function(){e<3?setTimeout(function(){l.progressiveLazyLoad(e+1)},500):(t.removeAttr(\"data-lazy\").removeClass(\"slick-loading\").addClass(\"slick-lazyload-error\"),l.$slider.trigger(\"lazyLoadError\",[l,t,o]),l.progressiveLazyLoad())},r.src=o):l.$slider.trigger(\"allImagesLoaded\",[l])},e.prototype.refresh=function(e){var t,o,s=this;o=s.slideCount-s.options.slidesToShow,!s.options.infinite&&s.currentSlide>o&&(s.currentSlide=o),s.slideCount<=s.options.slidesToShow&&(s.currentSlide=0),t=s.currentSlide,s.destroy(!0),i.extend(s,s.initials,{currentSlide:t}),s.init(),e||s.changeSlide({data:{message:\"index\",index:t}},!1)},e.prototype.registerBreakpoints=function(){var e,t,o,s=this,n=s.options.responsive||null;if(\"array\"===i.type(n)&&n.length){s.respondTo=s.options.respondTo||\"window\";for(e in n)if(o=s.breakpoints.length-1,n.hasOwnProperty(e)){for(t=n[e].breakpoint;o>=0;)s.breakpoints[o]&&s.breakpoints[o]===t&&s.breakpoints.splice(o,1),o--;s.breakpoints.push(t),s.breakpointSettings[t]=n[e].settings}s.breakpoints.sort(function(i,e){return s.options.mobileFirst?i-e:e-i})}},e.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass(\"slick-slide\"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),e.options.focusOnSelect===!0&&i(e.$slideTrack).children().on(\"click.slick\",e.selectHandler),e.setSlideClasses(\"number\"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger(\"reInit\",[e])},e.prototype.resize=function(){var e=this;i(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=i(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()},50))},e.prototype.removeSlide=e.prototype.slickRemove=function(i,e,t){var o=this;return\"boolean\"==typeof i?(e=i,i=e===!0?0:o.slideCount-1):i=e===!0?--i:i,!(o.slideCount<1||i<0||i>o.slideCount-1)&&(o.unload(),t===!0?o.$slideTrack.children().remove():o.$slideTrack.children(this.options.slide).eq(i).remove(),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slidesCache=o.$slides,void o.reinit())},e.prototype.setCSS=function(i){var e,t,o=this,s={};o.options.rtl===!0&&(i=-i),e=\"left\"==o.positionProp?Math.ceil(i)+\"px\":\"0px\",t=\"top\"==o.positionProp?Math.ceil(i)+\"px\":\"0px\",s[o.positionProp]=i,o.transformsEnabled===!1?o.$slideTrack.css(s):(s={},o.cssTransitions===!1?(s[o.animType]=\"translate(\"+e+\", \"+t+\")\",o.$slideTrack.css(s)):(s[o.animType]=\"translate3d(\"+e+\", \"+t+\", 0px)\",o.$slideTrack.css(s)))},e.prototype.setDimensions=function(){var i=this;i.options.vertical===!1?i.options.centerMode===!0&&i.$list.css({padding:\"0px \"+i.options.centerPadding}):(i.$list.height(i.$slides.first().outerHeight(!0)*i.options.slidesToShow),i.options.centerMode===!0&&i.$list.css({padding:i.options.centerPadding+\" 0px\"})),i.listWidth=i.$list.width(),i.listHeight=i.$list.height(),i.options.vertical===!1&&i.options.variableWidth===!1?(i.slideWidth=Math.ceil(i.listWidth/i.options.slidesToShow),i.$slideTrack.width(Math.ceil(i.slideWidth*i.$slideTrack.children(\".slick-slide\").length))):i.options.variableWidth===!0?i.$slideTrack.width(5e3*i.slideCount):(i.slideWidth=Math.ceil(i.listWidth),i.$slideTrack.height(Math.ceil(i.$slides.first().outerHeight(!0)*i.$slideTrack.children(\".slick-slide\").length)));var e=i.$slides.first().outerWidth(!0)-i.$slides.first().width();i.options.variableWidth===!1&&i.$slideTrack.children(\".slick-slide\").width(i.slideWidth-e)},e.prototype.setFade=function(){var e,t=this;t.$slides.each(function(o,s){e=t.slideWidth*o*-1,t.options.rtl===!0?i(s).css({position:\"relative\",right:e,top:0,zIndex:t.options.zIndex-2,opacity:0}):i(s).css({position:\"relative\",left:e,top:0,zIndex:t.options.zIndex-2,opacity:0})}),t.$slides.eq(t.currentSlide).css({zIndex:t.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){var i=this;if(1===i.options.slidesToShow&&i.options.adaptiveHeight===!0&&i.options.vertical===!1){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.css(\"height\",e)}},e.prototype.setOption=e.prototype.slickSetOption=function(){var e,t,o,s,n,r=this,l=!1;if(\"object\"===i.type(arguments[0])?(o=arguments[0],l=arguments[1],n=\"multiple\"):\"string\"===i.type(arguments[0])&&(o=arguments[0],s=arguments[1],l=arguments[2],\"responsive\"===arguments[0]&&\"array\"===i.type(arguments[1])?n=\"responsive\":\"undefined\"!=typeof arguments[1]&&(n=\"single\")),\"single\"===n)r.options[o]=s;else if(\"multiple\"===n)i.each(o,function(i,e){r.options[i]=e});else if(\"responsive\"===n)for(t in s)if(\"array\"!==i.type(r.options.responsive))r.options.responsive=[s[t]];else{for(e=r.options.responsive.length-1;e>=0;)r.options.responsive[e].breakpoint===s[t].breakpoint&&r.options.responsive.splice(e,1),e--;r.options.responsive.push(s[t])}l&&(r.unload(),r.reinit())},e.prototype.setPosition=function(){var i=this;i.setDimensions(),i.setHeight(),i.options.fade===!1?i.setCSS(i.getLeft(i.currentSlide)):i.setFade(),i.$slider.trigger(\"setPosition\",[i])},e.prototype.setProps=function(){var i=this,e=document.body.style;i.positionProp=i.options.vertical===!0?\"top\":\"left\",\n\"top\"===i.positionProp?i.$slider.addClass(\"slick-vertical\"):i.$slider.removeClass(\"slick-vertical\"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||i.options.useCSS===!0&&(i.cssTransitions=!0),i.options.fade&&(\"number\"==typeof i.options.zIndex?i.options.zIndex<3&&(i.options.zIndex=3):i.options.zIndex=i.defaults.zIndex),void 0!==e.OTransform&&(i.animType=\"OTransform\",i.transformType=\"-o-transform\",i.transitionType=\"OTransition\",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.MozTransform&&(i.animType=\"MozTransform\",i.transformType=\"-moz-transform\",i.transitionType=\"MozTransition\",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(i.animType=!1)),void 0!==e.webkitTransform&&(i.animType=\"webkitTransform\",i.transformType=\"-webkit-transform\",i.transitionType=\"webkitTransition\",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.msTransform&&(i.animType=\"msTransform\",i.transformType=\"-ms-transform\",i.transitionType=\"msTransition\",void 0===e.msTransform&&(i.animType=!1)),void 0!==e.transform&&i.animType!==!1&&(i.animType=\"transform\",i.transformType=\"transform\",i.transitionType=\"transition\"),i.transformsEnabled=i.options.useTransform&&null!==i.animType&&i.animType!==!1},e.prototype.setSlideClasses=function(i){var e,t,o,s,n=this;if(t=n.$slider.find(\".slick-slide\").removeClass(\"slick-active slick-center slick-current\").attr(\"aria-hidden\",\"true\"),n.$slides.eq(i).addClass(\"slick-current\"),n.options.centerMode===!0){var r=n.options.slidesToShow%2===0?1:0;e=Math.floor(n.options.slidesToShow/2),n.options.infinite===!0&&(i>=e&&i<=n.slideCount-1-e?n.$slides.slice(i-e+r,i+e+1).addClass(\"slick-active\").attr(\"aria-hidden\",\"false\"):(o=n.options.slidesToShow+i,t.slice(o-e+1+r,o+e+2).addClass(\"slick-active\").attr(\"aria-hidden\",\"false\")),0===i?t.eq(t.length-1-n.options.slidesToShow).addClass(\"slick-center\"):i===n.slideCount-1&&t.eq(n.options.slidesToShow).addClass(\"slick-center\")),n.$slides.eq(i).addClass(\"slick-center\")}else i>=0&&i<=n.slideCount-n.options.slidesToShow?n.$slides.slice(i,i+n.options.slidesToShow).addClass(\"slick-active\").attr(\"aria-hidden\",\"false\"):t.length<=n.options.slidesToShow?t.addClass(\"slick-active\").attr(\"aria-hidden\",\"false\"):(s=n.slideCount%n.options.slidesToShow,o=n.options.infinite===!0?n.options.slidesToShow+i:i,n.options.slidesToShow==n.options.slidesToScroll&&n.slideCount-i<n.options.slidesToShow?t.slice(o-(n.options.slidesToShow-s),o+s).addClass(\"slick-active\").attr(\"aria-hidden\",\"false\"):t.slice(o,o+n.options.slidesToShow).addClass(\"slick-active\").attr(\"aria-hidden\",\"false\"));\"ondemand\"!==n.options.lazyLoad&&\"anticipated\"!==n.options.lazyLoad||n.lazyLoad()},e.prototype.setupInfinite=function(){var e,t,o,s=this;if(s.options.fade===!0&&(s.options.centerMode=!1),s.options.infinite===!0&&s.options.fade===!1&&(t=null,s.slideCount>s.options.slidesToShow)){for(o=s.options.centerMode===!0?s.options.slidesToShow+1:s.options.slidesToShow,e=s.slideCount;e>s.slideCount-o;e-=1)t=e-1,i(s.$slides[t]).clone(!0).attr(\"id\",\"\").attr(\"data-slick-index\",t-s.slideCount).prependTo(s.$slideTrack).addClass(\"slick-cloned\");for(e=0;e<o+s.slideCount;e+=1)t=e,i(s.$slides[t]).clone(!0).attr(\"id\",\"\").attr(\"data-slick-index\",t+s.slideCount).appendTo(s.$slideTrack).addClass(\"slick-cloned\");s.$slideTrack.find(\".slick-cloned\").find(\"[id]\").each(function(){i(this).attr(\"id\",\"\")})}},e.prototype.interrupt=function(i){var e=this;i||e.autoPlay(),e.interrupted=i},e.prototype.selectHandler=function(e){var t=this,o=i(e.target).is(\".slick-slide\")?i(e.target):i(e.target).parents(\".slick-slide\"),s=parseInt(o.attr(\"data-slick-index\"));return s||(s=0),t.slideCount<=t.options.slidesToShow?void t.slideHandler(s,!1,!0):void t.slideHandler(s)},e.prototype.slideHandler=function(i,e,t){var o,s,n,r,l,d=null,a=this;if(e=e||!1,!(a.animating===!0&&a.options.waitForAnimate===!0||a.options.fade===!0&&a.currentSlide===i))return e===!1&&a.asNavFor(i),o=i,d=a.getLeft(o),r=a.getLeft(a.currentSlide),a.currentLeft=null===a.swipeLeft?r:a.swipeLeft,a.options.infinite===!1&&a.options.centerMode===!1&&(i<0||i>a.getDotCount()*a.options.slidesToScroll)?void(a.options.fade===!1&&(o=a.currentSlide,t!==!0&&a.slideCount>a.options.slidesToShow?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o))):a.options.infinite===!1&&a.options.centerMode===!0&&(i<0||i>a.slideCount-a.options.slidesToScroll)?void(a.options.fade===!1&&(o=a.currentSlide,t!==!0&&a.slideCount>a.options.slidesToShow?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o))):(a.options.autoplay&&clearInterval(a.autoPlayTimer),s=o<0?a.slideCount%a.options.slidesToScroll!==0?a.slideCount-a.slideCount%a.options.slidesToScroll:a.slideCount+o:o>=a.slideCount?a.slideCount%a.options.slidesToScroll!==0?0:o-a.slideCount:o,a.animating=!0,a.$slider.trigger(\"beforeChange\",[a,a.currentSlide,s]),n=a.currentSlide,a.currentSlide=s,a.setSlideClasses(a.currentSlide),a.options.asNavFor&&(l=a.getNavTarget(),l=l.slick(\"getSlick\"),l.slideCount<=l.options.slidesToShow&&l.setSlideClasses(a.currentSlide)),a.updateDots(),a.updateArrows(),a.options.fade===!0?(t!==!0?(a.fadeSlideOut(n),a.fadeSlide(s,function(){a.postSlide(s)})):a.postSlide(s),void a.animateHeight()):void(t!==!0&&a.slideCount>a.options.slidesToShow?a.animateSlide(d,function(){a.postSlide(s)}):a.postSlide(s)))},e.prototype.startLoad=function(){var i=this;i.options.arrows===!0&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.hide(),i.$nextArrow.hide()),i.options.dots===!0&&i.slideCount>i.options.slidesToShow&&i.$dots.hide(),i.$slider.addClass(\"slick-loading\")},e.prototype.swipeDirection=function(){var i,e,t,o,s=this;return i=s.touchObject.startX-s.touchObject.curX,e=s.touchObject.startY-s.touchObject.curY,t=Math.atan2(e,i),o=Math.round(180*t/Math.PI),o<0&&(o=360-Math.abs(o)),o<=45&&o>=0?s.options.rtl===!1?\"left\":\"right\":o<=360&&o>=315?s.options.rtl===!1?\"left\":\"right\":o>=135&&o<=225?s.options.rtl===!1?\"right\":\"left\":s.options.verticalSwiping===!0?o>=35&&o<=135?\"down\":\"up\":\"vertical\"},e.prototype.swipeEnd=function(i){var e,t,o=this;if(o.dragging=!1,o.swiping=!1,o.scrolling)return o.scrolling=!1,!1;if(o.interrupted=!1,o.shouldClick=!(o.touchObject.swipeLength>10),void 0===o.touchObject.curX)return!1;if(o.touchObject.edgeHit===!0&&o.$slider.trigger(\"edge\",[o,o.swipeDirection()]),o.touchObject.swipeLength>=o.touchObject.minSwipe){switch(t=o.swipeDirection()){case\"left\":case\"down\":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide+o.getSlideCount()):o.currentSlide+o.getSlideCount(),o.currentDirection=0;break;case\"right\":case\"up\":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide-o.getSlideCount()):o.currentSlide-o.getSlideCount(),o.currentDirection=1}\"vertical\"!=t&&(o.slideHandler(e),o.touchObject={},o.$slider.trigger(\"swipe\",[o,t]))}else o.touchObject.startX!==o.touchObject.curX&&(o.slideHandler(o.currentSlide),o.touchObject={})},e.prototype.swipeHandler=function(i){var e=this;if(!(e.options.swipe===!1||\"ontouchend\"in document&&e.options.swipe===!1||e.options.draggable===!1&&i.type.indexOf(\"mouse\")!==-1))switch(e.touchObject.fingerCount=i.originalEvent&&void 0!==i.originalEvent.touches?i.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,e.options.verticalSwiping===!0&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),i.data.action){case\"start\":e.swipeStart(i);break;case\"move\":e.swipeMove(i);break;case\"end\":e.swipeEnd(i)}},e.prototype.swipeMove=function(i){var e,t,o,s,n,r,l=this;return n=void 0!==i.originalEvent?i.originalEvent.touches:null,!(!l.dragging||l.scrolling||n&&1!==n.length)&&(e=l.getLeft(l.currentSlide),l.touchObject.curX=void 0!==n?n[0].pageX:i.clientX,l.touchObject.curY=void 0!==n?n[0].pageY:i.clientY,l.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(l.touchObject.curX-l.touchObject.startX,2))),r=Math.round(Math.sqrt(Math.pow(l.touchObject.curY-l.touchObject.startY,2))),!l.options.verticalSwiping&&!l.swiping&&r>4?(l.scrolling=!0,!1):(l.options.verticalSwiping===!0&&(l.touchObject.swipeLength=r),t=l.swipeDirection(),void 0!==i.originalEvent&&l.touchObject.swipeLength>4&&(l.swiping=!0,i.preventDefault()),s=(l.options.rtl===!1?1:-1)*(l.touchObject.curX>l.touchObject.startX?1:-1),l.options.verticalSwiping===!0&&(s=l.touchObject.curY>l.touchObject.startY?1:-1),o=l.touchObject.swipeLength,l.touchObject.edgeHit=!1,l.options.infinite===!1&&(0===l.currentSlide&&\"right\"===t||l.currentSlide>=l.getDotCount()&&\"left\"===t)&&(o=l.touchObject.swipeLength*l.options.edgeFriction,l.touchObject.edgeHit=!0),l.options.vertical===!1?l.swipeLeft=e+o*s:l.swipeLeft=e+o*(l.$list.height()/l.listWidth)*s,l.options.verticalSwiping===!0&&(l.swipeLeft=e+o*s),l.options.fade!==!0&&l.options.touchMove!==!1&&(l.animating===!0?(l.swipeLeft=null,!1):void l.setCSS(l.swipeLeft))))},e.prototype.swipeStart=function(i){var e,t=this;return t.interrupted=!0,1!==t.touchObject.fingerCount||t.slideCount<=t.options.slidesToShow?(t.touchObject={},!1):(void 0!==i.originalEvent&&void 0!==i.originalEvent.touches&&(e=i.originalEvent.touches[0]),t.touchObject.startX=t.touchObject.curX=void 0!==e?e.pageX:i.clientX,t.touchObject.startY=t.touchObject.curY=void 0!==e?e.pageY:i.clientY,void(t.dragging=!0))},e.prototype.unfilterSlides=e.prototype.slickUnfilter=function(){var i=this;null!==i.$slidesCache&&(i.unload(),i.$slideTrack.children(this.options.slide).detach(),i.$slidesCache.appendTo(i.$slideTrack),i.reinit())},e.prototype.unload=function(){var e=this;i(\".slick-cloned\",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass(\"slick-slide slick-active slick-visible slick-current\").attr(\"aria-hidden\",\"true\").css(\"width\",\"\")},e.prototype.unslick=function(i){var e=this;e.$slider.trigger(\"unslick\",[e,i]),e.destroy()},e.prototype.updateArrows=function(){var i,e=this;i=Math.floor(e.options.slidesToShow/2),e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&!e.options.infinite&&(e.$prevArrow.removeClass(\"slick-disabled\").attr(\"aria-disabled\",\"false\"),e.$nextArrow.removeClass(\"slick-disabled\").attr(\"aria-disabled\",\"false\"),0===e.currentSlide?(e.$prevArrow.addClass(\"slick-disabled\").attr(\"aria-disabled\",\"true\"),e.$nextArrow.removeClass(\"slick-disabled\").attr(\"aria-disabled\",\"false\")):e.currentSlide>=e.slideCount-e.options.slidesToShow&&e.options.centerMode===!1?(e.$nextArrow.addClass(\"slick-disabled\").attr(\"aria-disabled\",\"true\"),e.$prevArrow.removeClass(\"slick-disabled\").attr(\"aria-disabled\",\"false\")):e.currentSlide>=e.slideCount-1&&e.options.centerMode===!0&&(e.$nextArrow.addClass(\"slick-disabled\").attr(\"aria-disabled\",\"true\"),e.$prevArrow.removeClass(\"slick-disabled\").attr(\"aria-disabled\",\"false\")))},e.prototype.updateDots=function(){var i=this;null!==i.$dots&&(i.$dots.find(\"li\").removeClass(\"slick-active\").end(),i.$dots.find(\"li\").eq(Math.floor(i.currentSlide/i.options.slidesToScroll)).addClass(\"slick-active\"))},e.prototype.visibility=function(){var i=this;i.options.autoplay&&(document[i.hidden]?i.interrupted=!0:i.interrupted=!1)},i.fn.slick=function(){var i,t,o=this,s=arguments[0],n=Array.prototype.slice.call(arguments,1),r=o.length;for(i=0;i<r;i++)if(\"object\"==typeof s||\"undefined\"==typeof s?o[i].slick=new e(o[i],s):t=o[i].slick[s].apply(o[i].slick,n),\"undefined\"!=typeof t)return t;return o}});\n","Magento_PageBuilder/js/resource/jarallax/jarallax.min.js":"/*!\n * Jarallax v2.0.3 (https://github.com/nk-o/jarallax)\n * Copyright 2022 nK <https://nkdev.info>\n * Licensed under MIT (https://github.com/nk-o/jarallax/blob/master/LICENSE)\n */\n(function(global,factory){typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory():typeof define==='function'&&define.amd?define(factory):(global=typeof globalThis!=='undefined'?globalThis:global||self,global.jarallax=factory());})(this,(function(){'use strict';function ready(callback){if('complete'===document.readyState||'interactive'===document.readyState){callback();}else{document.addEventListener('DOMContentLoaded',callback,{capture:true,once:true,passive:true});}}\nlet win;if('undefined'!==typeof window){win=window;}else if('undefined'!==typeof global){win=global;}else if('undefined'!==typeof self){win=self;}else{win={};}\nvar global$1=win;const{navigator}=global$1;const isMobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);let $deviceHelper;function getDeviceHeight(){if(!$deviceHelper&&document.body){$deviceHelper=document.createElement('div');$deviceHelper.style.cssText='position: fixed; top: -9999px; left: 0; height: 100vh; width: 0;';document.body.appendChild($deviceHelper);}\nreturn($deviceHelper?$deviceHelper.clientHeight:0)||global$1.innerHeight||document.documentElement.clientHeight;}\nlet wndH;function updateWndVars(){if(isMobile){wndH=getDeviceHeight();}else{wndH=global$1.innerHeight||document.documentElement.clientHeight;}}\nupdateWndVars();global$1.addEventListener('resize',updateWndVars);global$1.addEventListener('orientationchange',updateWndVars);global$1.addEventListener('load',updateWndVars);ready(()=>{updateWndVars();});const jarallaxList=[];function getParents(elem){const parents=[];while(null!==elem.parentElement){elem=elem.parentElement;if(1===elem.nodeType){parents.push(elem);}}\nreturn parents;}\nfunction updateParallax(){if(!jarallaxList.length){return;}\njarallaxList.forEach((data,k)=>{const{instance,oldData}=data;const clientRect=instance.$item.getBoundingClientRect();const newData={width:clientRect.width,height:clientRect.height,top:clientRect.top,bottom:clientRect.bottom,wndW:global$1.innerWidth,wndH};const isResized=!oldData||oldData.wndW!==newData.wndW||oldData.wndH!==newData.wndH||oldData.width!==newData.width||oldData.height!==newData.height;const isScrolled=isResized||!oldData||oldData.top!==newData.top||oldData.bottom!==newData.bottom;jarallaxList[k].oldData=newData;if(isResized){instance.onResize();}\nif(isScrolled){instance.onScroll();}});global$1.requestAnimationFrame(updateParallax);}\nlet instanceID=0;class Jarallax{constructor(item,userOptions){const self=this;self.instanceID=instanceID;instanceID+=1;self.$item=item;self.defaults={type:'scroll',speed:0.5,imgSrc:null,imgElement:'.jarallax-img',imgSize:'cover',imgPosition:'50% 50%',imgRepeat:'no-repeat',keepImg:false,elementInViewport:null,zIndex:-100,disableParallax:false,disableVideo:false,videoSrc:null,videoStartTime:0,videoEndTime:0,videoVolume:0,videoLoop:true,videoPlayOnlyVisible:true,videoLazyLoading:true,onScroll:null,onInit:null,onDestroy:null,onCoverImage:null};const dataOptions=self.$item.dataset||{};const pureDataOptions={};Object.keys(dataOptions).forEach(key=>{const loweCaseOption=key.substr(0,1).toLowerCase()+key.substr(1);if(loweCaseOption&&'undefined'!==typeof self.defaults[loweCaseOption]){pureDataOptions[loweCaseOption]=dataOptions[key];}});self.options=self.extend({},self.defaults,pureDataOptions,userOptions);self.pureOptions=self.extend({},self.options);Object.keys(self.options).forEach(key=>{if('true'===self.options[key]){self.options[key]=true;}else if('false'===self.options[key]){self.options[key]=false;}});self.options.speed=Math.min(2,Math.max(-1,parseFloat(self.options.speed)));if('string'===typeof self.options.disableParallax){self.options.disableParallax=new RegExp(self.options.disableParallax);}\nif(self.options.disableParallax instanceof RegExp){const disableParallaxRegexp=self.options.disableParallax;self.options.disableParallax=()=>disableParallaxRegexp.test(navigator.userAgent);}\nif('function'!==typeof self.options.disableParallax){self.options.disableParallax=()=>false;}\nif('string'===typeof self.options.disableVideo){self.options.disableVideo=new RegExp(self.options.disableVideo);}\nif(self.options.disableVideo instanceof RegExp){const disableVideoRegexp=self.options.disableVideo;self.options.disableVideo=()=>disableVideoRegexp.test(navigator.userAgent);}\nif('function'!==typeof self.options.disableVideo){self.options.disableVideo=()=>false;}\nlet elementInVP=self.options.elementInViewport;if(elementInVP&&'object'===typeof elementInVP&&'undefined'!==typeof elementInVP.length){[elementInVP]=elementInVP;}\nif(!(elementInVP instanceof Element)){elementInVP=null;}\nself.options.elementInViewport=elementInVP;self.image={src:self.options.imgSrc||null,$container:null,useImgTag:false,position:'fixed'};if(self.initImg()&&self.canInitParallax()){self.init();}}\ncss(el,styles){if('string'===typeof styles){return global$1.getComputedStyle(el).getPropertyValue(styles);}\nObject.keys(styles).forEach(key=>{el.style[key]=styles[key];});return el;}\nextend(out,...args){out=out||{};Object.keys(args).forEach(i=>{if(!args[i]){return;}\nObject.keys(args[i]).forEach(key=>{out[key]=args[i][key];});});return out;}\ngetWindowData(){return{width:global$1.innerWidth||document.documentElement.clientWidth,height:wndH,y:document.documentElement.scrollTop};}\ninitImg(){const self=this;let $imgElement=self.options.imgElement;if($imgElement&&'string'===typeof $imgElement){$imgElement=self.$item.querySelector($imgElement);}\nif(!($imgElement instanceof Element)){if(self.options.imgSrc){$imgElement=new Image();$imgElement.src=self.options.imgSrc;}else{$imgElement=null;}}\nif($imgElement){if(self.options.keepImg){self.image.$item=$imgElement.cloneNode(true);}else{self.image.$item=$imgElement;self.image.$itemParent=$imgElement.parentNode;}\nself.image.useImgTag=true;}\nif(self.image.$item){return true;}\nif(null===self.image.src){self.image.src='data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7';self.image.bgImage=self.css(self.$item,'background-image');}\nreturn!(!self.image.bgImage||'none'===self.image.bgImage);}\ncanInitParallax(){return!this.options.disableParallax();}\ninit(){const self=this;const containerStyles={position:'absolute',top:0,left:0,width:'100%',height:'100%',overflow:'hidden'};let imageStyles={pointerEvents:'none',transformStyle:'preserve-3d',backfaceVisibility:'hidden',willChange:'transform,opacity'};if(!self.options.keepImg){const curStyle=self.$item.getAttribute('style');if(curStyle){self.$item.setAttribute('data-jarallax-original-styles',curStyle);}\nif(self.image.useImgTag){const curImgStyle=self.image.$item.getAttribute('style');if(curImgStyle){self.image.$item.setAttribute('data-jarallax-original-styles',curImgStyle);}}}\nif('static'===self.css(self.$item,'position')){self.css(self.$item,{position:'relative'});}\nif('auto'===self.css(self.$item,'z-index')){self.css(self.$item,{zIndex:0});}\nself.image.$container=document.createElement('div');self.css(self.image.$container,containerStyles);self.css(self.image.$container,{'z-index':self.options.zIndex});if('fixed'===this.image.position){self.css(self.image.$container,{'-webkit-clip-path':'polygon(0 0, 100% 0, 100% 100%, 0 100%)','clip-path':'polygon(0 0, 100% 0, 100% 100%, 0 100%)'});}\nself.image.$container.setAttribute('id',`jarallax-container-${self.instanceID}`);self.$item.appendChild(self.image.$container);if(self.image.useImgTag){imageStyles=self.extend({'object-fit':self.options.imgSize,'object-position':self.options.imgPosition,'max-width':'none'},containerStyles,imageStyles);}else{self.image.$item=document.createElement('div');if(self.image.src){imageStyles=self.extend({'background-position':self.options.imgPosition,'background-size':self.options.imgSize,'background-repeat':self.options.imgRepeat,'background-image':self.image.bgImage||`url(\"${self.image.src}\")`},containerStyles,imageStyles);}}\nif('opacity'===self.options.type||'scale'===self.options.type||'scale-opacity'===self.options.type||1===self.options.speed){self.image.position='absolute';}\nif('fixed'===self.image.position){const $parents=getParents(self.$item).filter(el=>{const styles=global$1.getComputedStyle(el);const parentTransform=styles['-webkit-transform']||styles['-moz-transform']||styles.transform;const overflowRegex=/(auto|scroll)/;return parentTransform&&'none'!==parentTransform||overflowRegex.test(styles.overflow+styles['overflow-y']+styles['overflow-x']);});self.image.position=$parents.length?'absolute':'fixed';}\nimageStyles.position=self.image.position;self.css(self.image.$item,imageStyles);self.image.$container.appendChild(self.image.$item);self.onResize();self.onScroll(true);if(self.options.onInit){self.options.onInit.call(self);}\nif('none'!==self.css(self.$item,'background-image')){self.css(self.$item,{'background-image':'none'});}\nself.addToParallaxList();}\naddToParallaxList(){jarallaxList.push({instance:this});if(1===jarallaxList.length){global$1.requestAnimationFrame(updateParallax);}}\nremoveFromParallaxList(){const self=this;jarallaxList.forEach((data,key)=>{if(data.instance.instanceID===self.instanceID){jarallaxList.splice(key,1);}});}\ndestroy(){const self=this;self.removeFromParallaxList();const originalStylesTag=self.$item.getAttribute('data-jarallax-original-styles');self.$item.removeAttribute('data-jarallax-original-styles');if(!originalStylesTag){self.$item.removeAttribute('style');}else{self.$item.setAttribute('style',originalStylesTag);}\nif(self.image.useImgTag){const originalStylesImgTag=self.image.$item.getAttribute('data-jarallax-original-styles');self.image.$item.removeAttribute('data-jarallax-original-styles');if(!originalStylesImgTag){self.image.$item.removeAttribute('style');}else{self.image.$item.setAttribute('style',originalStylesTag);}\nif(self.image.$itemParent){self.image.$itemParent.appendChild(self.image.$item);}}\nif(self.image.$container){self.image.$container.parentNode.removeChild(self.image.$container);}\nif(self.options.onDestroy){self.options.onDestroy.call(self);}\ndelete self.$item.jarallax;}\nclipContainer(){}\ncoverImage(){const self=this;const rect=self.image.$container.getBoundingClientRect();const contH=rect.height;const{speed}=self.options;const isScroll='scroll'===self.options.type||'scroll-opacity'===self.options.type;let scrollDist=0;let resultH=contH;let resultMT=0;if(isScroll){if(0>speed){scrollDist=speed*Math.max(contH,wndH);if(wndH<contH){scrollDist-=speed*(contH-wndH);}}else{scrollDist=speed*(contH+wndH);}\nif(1<speed){resultH=Math.abs(scrollDist-wndH);}else if(0>speed){resultH=scrollDist / speed+Math.abs(scrollDist);}else{resultH+=(wndH-contH)*(1-speed);}\nscrollDist /=2;}\nself.parallaxScrollDistance=scrollDist;if(isScroll){resultMT=(wndH-resultH)/ 2;}else{resultMT=(contH-resultH)/ 2;}\nself.css(self.image.$item,{height:`${resultH}px`,marginTop:`${resultMT}px`,left:'fixed'===self.image.position?`${rect.left}px`:'0',width:`${rect.width}px`});if(self.options.onCoverImage){self.options.onCoverImage.call(self);}\nreturn{image:{height:resultH,marginTop:resultMT},container:rect};}\nisVisible(){return this.isElementInViewport||false;}\nonScroll(force){const self=this;const rect=self.$item.getBoundingClientRect();const contT=rect.top;const contH=rect.height;const styles={};let viewportRect=rect;if(self.options.elementInViewport){viewportRect=self.options.elementInViewport.getBoundingClientRect();}\nself.isElementInViewport=0<=viewportRect.bottom&&0<=viewportRect.right&&viewportRect.top<=wndH&&viewportRect.left<=global$1.innerWidth;if(force?false:!self.isElementInViewport){return;}\nconst beforeTop=Math.max(0,contT);const beforeTopEnd=Math.max(0,contH+contT);const afterTop=Math.max(0,-contT);const beforeBottom=Math.max(0,contT+contH-wndH);const beforeBottomEnd=Math.max(0,contH-(contT+contH-wndH));const afterBottom=Math.max(0,-contT+wndH-contH);const fromViewportCenter=1-2*((wndH-contT)/(wndH+contH));let visiblePercent=1;if(contH<wndH){visiblePercent=1-(afterTop||beforeBottom)/ contH;}else if(beforeTopEnd<=wndH){visiblePercent=beforeTopEnd / wndH;}else if(beforeBottomEnd<=wndH){visiblePercent=beforeBottomEnd / wndH;}\nif('opacity'===self.options.type||'scale-opacity'===self.options.type||'scroll-opacity'===self.options.type){styles.transform='translate3d(0,0,0)';styles.opacity=visiblePercent;}\nif('scale'===self.options.type||'scale-opacity'===self.options.type){let scale=1;if(0>self.options.speed){scale-=self.options.speed*visiblePercent;}else{scale+=self.options.speed*(1-visiblePercent);}\nstyles.transform=`scale(${scale}) translate3d(0,0,0)`;}\nif('scroll'===self.options.type||'scroll-opacity'===self.options.type){let positionY=self.parallaxScrollDistance*fromViewportCenter;if('absolute'===self.image.position){positionY-=contT;}\nstyles.transform=`translate3d(0,${positionY}px,0)`;}\nself.css(self.image.$item,styles);if(self.options.onScroll){self.options.onScroll.call(self,{section:rect,beforeTop,beforeTopEnd,afterTop,beforeBottom,beforeBottomEnd,afterBottom,visiblePercent,fromViewportCenter});}}\nonResize(){this.coverImage();}}\nconst jarallax=function(items,options,...args){if('object'===typeof HTMLElement?items instanceof HTMLElement:items&&'object'===typeof items&&null!==items&&1===items.nodeType&&'string'===typeof items.nodeName){items=[items];}\nconst len=items.length;let k=0;let ret;for(k;k<len;k+=1){if('object'===typeof options||'undefined'===typeof options){if(!items[k].jarallax){items[k].jarallax=new Jarallax(items[k],options);}}else if(items[k].jarallax){ret=items[k].jarallax[options].apply(items[k].jarallax,args);}\nif('undefined'!==typeof ret){return ret;}}\nreturn items;};jarallax.constructor=Jarallax;const $=global$1.jQuery;if('undefined'!==typeof $){const $Plugin=function(...args){Array.prototype.unshift.call(args,this);const res=jarallax.apply(global$1,args);return'object'!==typeof res?res:this;};$Plugin.constructor=jarallax.constructor;const old$Plugin=$.fn.jarallax;$.fn.jarallax=$Plugin;$.fn.jarallax.noConflict=function(){$.fn.jarallax=old$Plugin;return this;};}\nready(()=>{jarallax(document.querySelectorAll('[data-jarallax]'));});return jarallax;}));","Magento_PageBuilder/js/resource/jarallax/jarallax-wrapper.min.js":"define(['Magento_PageBuilder/js/resource/jarallax/jarallax'],function(jarallax){'use strict';window.jarallax=window.jarallax||jarallax;});","Magento_PageBuilder/js/resource/jarallax/jarallax-video.min.js":"/*!\n * Video Extension for Jarallax v2.0.3 (https://github.com/nk-o/jarallax)\n * Copyright 2022 nK <https://nkdev.info>\n * Licensed under MIT (https://github.com/nk-o/jarallax/blob/master/LICENSE)\n */\n(function(global,factory){typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory():typeof define==='function'&&define.amd?define(factory):(global=typeof globalThis!=='undefined'?globalThis:global||self,global.jarallaxVideo=factory());})(this,(function(){'use strict';/*!\n   * Name    : Video Worker\n   * Version : 2.0.0\n   * Author  : nK <https://nkdev.info>\n   * GitHub  : https://github.com/nk-o/video-worker\n   */\nlet win$1;if(typeof window!=='undefined'){win$1=window;}else if(typeof global!=='undefined'){win$1=global;}else if(typeof self!=='undefined'){win$1=self;}else{win$1={};}\nvar global$1$1=win$1;function Deferred(){this.doneCallbacks=[];this.failCallbacks=[];}\nDeferred.prototype={execute(list,args){let i=list.length;args=Array.prototype.slice.call(args);while(i){i-=1;list[i].apply(null,args);}},resolve(...args){this.execute(this.doneCallbacks,args);},reject(...args){this.execute(this.failCallbacks,args);},done(callback){this.doneCallbacks.push(callback);},fail(callback){this.failCallbacks.push(callback);}};let ID=0;let YoutubeAPIadded=0;let VimeoAPIadded=0;let loadingYoutubePlayer=0;let loadingVimeoPlayer=0;const loadingYoutubeDefer=new Deferred();const loadingVimeoDefer=new Deferred();class VideoWorker{constructor(url,options){const self=this;self.url=url;self.options_default={autoplay:false,loop:false,mute:false,volume:100,showControls:true,accessibilityHidden:false,startTime:0,endTime:0};self.options=self.extend({},self.options_default,options);if(typeof self.options.showContols!=='undefined'){self.options.showControls=self.options.showContols;delete self.options.showContols;}\nself.videoID=self.parseURL(url);if(self.videoID){self.ID=ID;ID+=1;self.loadAPI();self.init();}}\nextend(...args){const out=args[0]||{};Object.keys(args).forEach(i=>{if(!args[i]){return;}\nObject.keys(args[i]).forEach(key=>{out[key]=args[i][key];});});return out;}\nparseURL(url){function getYoutubeID(ytUrl){const regExp=/.*(?:youtu.be\\/|v\\/|u\\/\\w\\/|embed\\/|watch\\?v=)([^#\\&\\?]*).*/;const match=ytUrl.match(regExp);return match&&match[1].length===11?match[1]:false;}\nfunction getVimeoID(vmUrl){const regExp=/https?:\\/\\/(?:www\\.|player\\.)?vimeo.com\\/(?:channels\\/(?:\\w+\\/)?|groups\\/([^/]*)\\/videos\\/|album\\/(\\d+)\\/video\\/|video\\/|)(\\d+)(?:$|\\/|\\?)/;const match=vmUrl.match(regExp);return match&&match[3]?match[3]:false;}\nfunction getLocalVideos(locUrl){const videoFormats=locUrl.split(/,(?=mp4\\:|webm\\:|ogv\\:|ogg\\:)/);const result={};let ready=0;videoFormats.forEach(val=>{const match=val.match(/^(mp4|webm|ogv|ogg)\\:(.*)/);if(match&&match[1]&&match[2]){result[match[1]==='ogv'?'ogg':match[1]]=match[2];ready=1;}});return ready?result:false;}\nconst Youtube=getYoutubeID(url);const Vimeo=getVimeoID(url);const Local=getLocalVideos(url);if(Youtube){this.type='youtube';return Youtube;}\nif(Vimeo){this.type='vimeo';return Vimeo;}\nif(Local){this.type='local';return Local;}\nreturn false;}\nisValid(){return!!this.videoID;}\non(name,callback){this.userEventsList=this.userEventsList||[];(this.userEventsList[name]||(this.userEventsList[name]=[])).push(callback);}\noff(name,callback){if(!this.userEventsList||!this.userEventsList[name]){return;}\nif(!callback){delete this.userEventsList[name];}else{this.userEventsList[name].forEach((val,key)=>{if(val===callback){this.userEventsList[name][key]=false;}});}}\nfire(name,...args){if(this.userEventsList&&typeof this.userEventsList[name]!=='undefined'){this.userEventsList[name].forEach(val=>{if(val){val.apply(this,args);}});}}\nplay(start){const self=this;if(!self.player){return;}\nif(self.type==='youtube'&&self.player.playVideo){if(typeof start!=='undefined'){self.player.seekTo(start||0);}\nif(global$1$1.YT.PlayerState.PLAYING!==self.player.getPlayerState()){self.player.playVideo();}}\nif(self.type==='vimeo'){if(typeof start!=='undefined'){self.player.setCurrentTime(start);}\nself.player.getPaused().then(paused=>{if(paused){self.player.play();}});}\nif(self.type==='local'){if(typeof start!=='undefined'){self.player.currentTime=start;}\nif(self.player.paused){self.player.play();}}}\npause(){const self=this;if(!self.player){return;}\nif(self.type==='youtube'&&self.player.pauseVideo){if(global$1$1.YT.PlayerState.PLAYING===self.player.getPlayerState()){self.player.pauseVideo();}}\nif(self.type==='vimeo'){self.player.getPaused().then(paused=>{if(!paused){self.player.pause();}});}\nif(self.type==='local'){if(!self.player.paused){self.player.pause();}}}\nmute(){const self=this;if(!self.player){return;}\nif(self.type==='youtube'&&self.player.mute){self.player.mute();}\nif(self.type==='vimeo'&&self.player.setVolume){self.player.setVolume(0);}\nif(self.type==='local'){self.$video.muted=true;}}\nunmute(){const self=this;if(!self.player){return;}\nif(self.type==='youtube'&&self.player.mute){self.player.unMute();}\nif(self.type==='vimeo'&&self.player.setVolume){self.player.setVolume(self.options.volume);}\nif(self.type==='local'){self.$video.muted=false;}}\nsetVolume(volume=false){const self=this;if(!self.player||!volume){return;}\nif(self.type==='youtube'&&self.player.setVolume){self.player.setVolume(volume);}\nif(self.type==='vimeo'&&self.player.setVolume){self.player.setVolume(volume);}\nif(self.type==='local'){self.$video.volume=volume / 100;}}\ngetVolume(callback){const self=this;if(!self.player){callback(false);return;}\nif(self.type==='youtube'&&self.player.getVolume){callback(self.player.getVolume());}\nif(self.type==='vimeo'&&self.player.getVolume){self.player.getVolume().then(volume=>{callback(volume);});}\nif(self.type==='local'){callback(self.$video.volume*100);}}\ngetMuted(callback){const self=this;if(!self.player){callback(null);return;}\nif(self.type==='youtube'&&self.player.isMuted){callback(self.player.isMuted());}\nif(self.type==='vimeo'&&self.player.getVolume){self.player.getVolume().then(volume=>{callback(!!volume);});}\nif(self.type==='local'){callback(self.$video.muted);}}\ngetImageURL(callback){const self=this;if(self.videoImage){callback(self.videoImage);return;}\nif(self.type==='youtube'){const availableSizes=['maxresdefault','sddefault','hqdefault','0'];let step=0;const tempImg=new Image();tempImg.onload=function(){if((this.naturalWidth||this.width)!==120||step===availableSizes.length-1){self.videoImage=`https://img.youtube.com/vi/${self.videoID}/${availableSizes[step]}.jpg`;callback(self.videoImage);}else{step+=1;this.src=`https://img.youtube.com/vi/${self.videoID}/${availableSizes[step]}.jpg`;}};tempImg.src=`https://img.youtube.com/vi/${self.videoID}/${availableSizes[step]}.jpg`;}\nif(self.type==='vimeo'){let request=new XMLHttpRequest();request.open('GET',`https://vimeo.com/api/oembed.json?url=${self.url}`,true);request.onreadystatechange=function(){if(this.readyState===4){if(this.status>=200&&this.status<400){const response=JSON.parse(this.responseText);if(response.thumbnail_url){self.videoImage=response.thumbnail_url;callback(self.videoImage);}}}};request.send();request=null;}}\ngetIframe(callback){this.getVideo(callback);}\ngetVideo(callback){const self=this;if(self.$video){callback(self.$video);return;}\nself.onAPIready(()=>{let hiddenDiv;if(!self.$video){hiddenDiv=document.createElement('div');hiddenDiv.style.display='none';}\nif(self.type==='youtube'){self.playerOptions={host:'https://www.youtube-nocookie.com',videoId:self.videoID,playerVars:{autohide:1,rel:0,autoplay:0,playsinline:1}};if(!self.options.showControls){self.playerOptions.playerVars.iv_load_policy=3;self.playerOptions.playerVars.modestbranding=1;self.playerOptions.playerVars.controls=0;self.playerOptions.playerVars.showinfo=0;self.playerOptions.playerVars.disablekb=1;}\nlet ytStarted;let ytProgressInterval;self.playerOptions.events={onReady(e){if(self.options.mute){e.target.mute();}else if(self.options.volume){e.target.setVolume(self.options.volume);}\nif(self.options.autoplay){self.play(self.options.startTime);}\nself.fire('ready',e);if(self.options.loop&&!self.options.endTime){const secondsOffset=0.1;self.options.endTime=self.player.getDuration()-secondsOffset;}\nsetInterval(()=>{self.getVolume(volume=>{if(self.options.volume!==volume){self.options.volume=volume;self.fire('volumechange',e);}});},150);},onStateChange(e){if(self.options.loop&&e.data===global$1$1.YT.PlayerState.ENDED){self.play(self.options.startTime);}\nif(!ytStarted&&e.data===global$1$1.YT.PlayerState.PLAYING){ytStarted=1;self.fire('started',e);}\nif(e.data===global$1$1.YT.PlayerState.PLAYING){self.fire('play',e);}\nif(e.data===global$1$1.YT.PlayerState.PAUSED){self.fire('pause',e);}\nif(e.data===global$1$1.YT.PlayerState.ENDED){self.fire('ended',e);}\nif(e.data===global$1$1.YT.PlayerState.PLAYING){ytProgressInterval=setInterval(()=>{self.fire('timeupdate',e);if(self.options.endTime&&self.player.getCurrentTime()>=self.options.endTime){if(self.options.loop){self.play(self.options.startTime);}else{self.pause();}}},150);}else{clearInterval(ytProgressInterval);}},onError(e){self.fire('error',e);}};const firstInit=!self.$video;if(firstInit){const div=document.createElement('div');div.setAttribute('id',self.playerID);hiddenDiv.appendChild(div);document.body.appendChild(hiddenDiv);}\nself.player=self.player||new global$1$1.YT.Player(self.playerID,self.playerOptions);if(firstInit){self.$video=document.getElementById(self.playerID);if(self.options.accessibilityHidden){self.$video.setAttribute('tabindex','-1');self.$video.setAttribute('aria-hidden','true');}\nself.videoWidth=parseInt(self.$video.getAttribute('width'),10)||1280;self.videoHeight=parseInt(self.$video.getAttribute('height'),10)||720;}}\nif(self.type==='vimeo'){self.playerOptions={dnt:1,id:self.videoID,autopause:0,transparent:0,autoplay:self.options.autoplay?1:0,loop:self.options.loop?1:0,muted:self.options.mute?1:0};if(self.options.volume){self.playerOptions.volume=self.options.volume;}\nif(!self.options.showControls){self.playerOptions.badge=0;self.playerOptions.byline=0;self.playerOptions.portrait=0;self.playerOptions.title=0;self.playerOptions.background=1;}\nif(!self.$video){let playerOptionsString='';Object.keys(self.playerOptions).forEach(key=>{if(playerOptionsString!==''){playerOptionsString+='&';}\nplayerOptionsString+=`${key}=${encodeURIComponent(self.playerOptions[key])}`;});self.$video=document.createElement('iframe');self.$video.setAttribute('id',self.playerID);self.$video.setAttribute('src',`https://player.vimeo.com/video/${self.videoID}?${playerOptionsString}`);self.$video.setAttribute('frameborder','0');self.$video.setAttribute('mozallowfullscreen','');self.$video.setAttribute('allowfullscreen','');self.$video.setAttribute('title','Vimeo video player');if(self.options.accessibilityHidden){self.$video.setAttribute('tabindex','-1');self.$video.setAttribute('aria-hidden','true');}\nhiddenDiv.appendChild(self.$video);document.body.appendChild(hiddenDiv);}\nself.player=self.player||new global$1$1.Vimeo.Player(self.$video,self.playerOptions);if(self.options.startTime&&self.options.autoplay){self.player.setCurrentTime(self.options.startTime);}\nself.player.getVideoWidth().then(width=>{self.videoWidth=width||1280;});self.player.getVideoHeight().then(height=>{self.videoHeight=height||720;});let vmStarted;self.player.on('timeupdate',e=>{if(!vmStarted){self.fire('started',e);vmStarted=1;}\nself.fire('timeupdate',e);if(self.options.endTime){if(self.options.endTime&&e.seconds>=self.options.endTime){if(self.options.loop){self.play(self.options.startTime);}else{self.pause();}}}});self.player.on('play',e=>{self.fire('play',e);if(self.options.startTime&&e.seconds===0){self.play(self.options.startTime);}});self.player.on('pause',e=>{self.fire('pause',e);});self.player.on('ended',e=>{self.fire('ended',e);});self.player.on('loaded',e=>{self.fire('ready',e);});self.player.on('volumechange',e=>{self.fire('volumechange',e);});self.player.on('error',e=>{self.fire('error',e);});}\nfunction addSourceToLocal(element,src,type){const source=document.createElement('source');source.src=src;source.type=type;element.appendChild(source);}\nif(self.type==='local'){if(!self.$video){self.$video=document.createElement('video');if(self.options.showControls){self.$video.controls=true;}\nif(self.options.mute){self.$video.muted=true;}else if(self.$video.volume){self.$video.volume=self.options.volume / 100;}\nif(self.options.loop){self.$video.loop=true;}\nself.$video.setAttribute('playsinline','');self.$video.setAttribute('webkit-playsinline','');if(self.options.accessibilityHidden){self.$video.setAttribute('tabindex','-1');self.$video.setAttribute('aria-hidden','true');}\nself.$video.setAttribute('id',self.playerID);hiddenDiv.appendChild(self.$video);document.body.appendChild(hiddenDiv);Object.keys(self.videoID).forEach(key=>{addSourceToLocal(self.$video,self.videoID[key],`video/${key}`);});}\nself.player=self.player||self.$video;let locStarted;self.player.addEventListener('playing',e=>{if(!locStarted){self.fire('started',e);}\nlocStarted=1;});self.player.addEventListener('timeupdate',function(e){self.fire('timeupdate',e);if(self.options.endTime){if(self.options.endTime&&this.currentTime>=self.options.endTime){if(self.options.loop){self.play(self.options.startTime);}else{self.pause();}}}});self.player.addEventListener('play',e=>{self.fire('play',e);});self.player.addEventListener('pause',e=>{self.fire('pause',e);});self.player.addEventListener('ended',e=>{self.fire('ended',e);});self.player.addEventListener('loadedmetadata',function(){self.videoWidth=this.videoWidth||1280;self.videoHeight=this.videoHeight||720;self.fire('ready');if(self.options.autoplay){self.play(self.options.startTime);}});self.player.addEventListener('volumechange',e=>{self.getVolume(volume=>{self.options.volume=volume;});self.fire('volumechange',e);});self.player.addEventListener('error',e=>{self.fire('error',e);});}\ncallback(self.$video);});}\ninit(){const self=this;self.playerID=`VideoWorker-${self.ID}`;}\nloadAPI(){const self=this;if(YoutubeAPIadded&&VimeoAPIadded){return;}\nlet src='';if(self.type==='youtube'&&!YoutubeAPIadded){YoutubeAPIadded=1;src='https://www.youtube.com/iframe_api';}\nif(self.type==='vimeo'&&!VimeoAPIadded){VimeoAPIadded=1;if(typeof global$1$1.Vimeo!=='undefined'){return;}\nsrc='https://player.vimeo.com/api/player.js';}\nif(!src){return;}\nlet tag=document.createElement('script');let head=document.getElementsByTagName('head')[0];tag.src=src;head.appendChild(tag);head=null;tag=null;}\nonAPIready(callback){const self=this;if(self.type==='youtube'){if((typeof global$1$1.YT==='undefined'||global$1$1.YT.loaded===0)&&!loadingYoutubePlayer){loadingYoutubePlayer=1;global$1$1.onYouTubeIframeAPIReady=function(){global$1$1.onYouTubeIframeAPIReady=null;loadingYoutubeDefer.resolve('done');callback();};}else if(typeof global$1$1.YT==='object'&&global$1$1.YT.loaded===1){callback();}else{loadingYoutubeDefer.done(()=>{callback();});}}\nif(self.type==='vimeo'){if(typeof global$1$1.Vimeo==='undefined'&&!loadingVimeoPlayer){loadingVimeoPlayer=1;const vimeoInterval=setInterval(()=>{if(typeof global$1$1.Vimeo!=='undefined'){clearInterval(vimeoInterval);loadingVimeoDefer.resolve('done');callback();}},20);}else if(typeof global$1$1.Vimeo!=='undefined'){callback();}else{loadingVimeoDefer.done(()=>{callback();});}}\nif(self.type==='local'){callback();}}}\nfunction ready(callback){if('complete'===document.readyState||'interactive'===document.readyState){callback();}else{document.addEventListener('DOMContentLoaded',callback,{capture:true,once:true,passive:true});}}\nlet win;if('undefined'!==typeof window){win=window;}else if('undefined'!==typeof global){win=global;}else if('undefined'!==typeof self){win=self;}else{win={};}\nvar global$1=win;function jarallaxVideo(jarallax=global$1.jarallax){if('undefined'===typeof jarallax){return;}\nconst Jarallax=jarallax.constructor;const defOnScroll=Jarallax.prototype.onScroll;Jarallax.prototype.onScroll=function(){const self=this;defOnScroll.apply(self);const isReady=!self.isVideoInserted&&self.video&&(!self.options.videoLazyLoading||self.isElementInViewport)&&!self.options.disableVideo();if(isReady){self.isVideoInserted=true;self.video.getVideo(video=>{const $parent=video.parentNode;self.css(video,{position:self.image.position,top:'0px',left:'0px',right:'0px',bottom:'0px',width:'100%',height:'100%',maxWidth:'none',maxHeight:'none',pointerEvents:'none',transformStyle:'preserve-3d',backfaceVisibility:'hidden',willChange:'transform,opacity',margin:0,zIndex:-1});self.$video=video;if('local'===self.video.type){if(self.image.src){self.$video.setAttribute('poster',self.image.src);}else if(self.image.$item&&'IMG'===self.image.$item.tagName&&self.image.$item.src){self.$video.setAttribute('poster',self.image.$item.src);}}\nself.image.$container.appendChild(video);$parent.parentNode.removeChild($parent);if(self.options.onVideoInsert){self.options.onVideoInsert.call(self);}});}};const defCoverImage=Jarallax.prototype.coverImage;Jarallax.prototype.coverImage=function(){const self=this;const imageData=defCoverImage.apply(self);const node=self.image.$item?self.image.$item.nodeName:false;if(imageData&&self.video&&node&&('IFRAME'===node||'VIDEO'===node)){let h=imageData.image.height;let w=h*self.image.width / self.image.height;let ml=(imageData.container.width-w)/ 2;let mt=imageData.image.marginTop;if(imageData.container.width>w){w=imageData.container.width;h=w*self.image.height / self.image.width;ml=0;mt+=(imageData.image.height-h)/ 2;}\nif('IFRAME'===node){h+=400;mt-=200;}\nself.css(self.$video,{width:`${w}px`,marginLeft:`${ml}px`,height:`${h}px`,marginTop:`${mt}px`});}\nreturn imageData;};const defInitImg=Jarallax.prototype.initImg;Jarallax.prototype.initImg=function(){const self=this;const defaultResult=defInitImg.apply(self);if(!self.options.videoSrc){self.options.videoSrc=self.$item.getAttribute('data-jarallax-video')||null;}\nif(self.options.videoSrc){self.defaultInitImgResult=defaultResult;return true;}\nreturn defaultResult;};const defCanInitParallax=Jarallax.prototype.canInitParallax;Jarallax.prototype.canInitParallax=function(){const self=this;let defaultResult=defCanInitParallax.apply(self);if(!self.options.videoSrc){return defaultResult;}\nconst video=new VideoWorker(self.options.videoSrc,{autoplay:true,loop:self.options.videoLoop,showControls:false,accessibilityHidden:true,startTime:self.options.videoStartTime||0,endTime:self.options.videoEndTime||0,mute:self.options.videoVolume?0:1,volume:self.options.videoVolume||0});if(self.options.onVideoWorkerInit){self.options.onVideoWorkerInit.call(self,video);}\nfunction resetDefaultImage(){if(self.image.$default_item){self.image.$item=self.image.$default_item;self.image.$item.style.display='block';self.coverImage();self.onScroll();}}\nif(video.isValid()){if(this.options.disableParallax()){defaultResult=true;self.image.position='absolute';self.options.type='scroll';self.options.speed=1;}\nif(!defaultResult){if(!self.defaultInitImgResult){video.getImageURL(url=>{const curStyle=self.$item.getAttribute('style');if(curStyle){self.$item.setAttribute('data-jarallax-original-styles',curStyle);}\nself.css(self.$item,{'background-image':`url(\"${url}\")`,'background-position':'center','background-size':'cover'});});}}else{video.on('ready',()=>{if(self.options.videoPlayOnlyVisible){const oldOnScroll=self.onScroll;self.onScroll=function(){oldOnScroll.apply(self);if(!self.videoError&&(self.options.videoLoop||!self.options.videoLoop&&!self.videoEnded)){if(self.isVisible()){video.play();}else{video.pause();}}};}else{video.play();}});video.on('started',()=>{self.image.$default_item=self.image.$item;self.image.$item=self.$video;self.image.width=self.video.videoWidth||1280;self.image.height=self.video.videoHeight||720;self.coverImage();self.onScroll();if(self.image.$default_item){self.image.$default_item.style.display='none';}});video.on('ended',()=>{self.videoEnded=true;if(!self.options.videoLoop){resetDefaultImage();}});video.on('error',()=>{self.videoError=true;resetDefaultImage();});self.video=video;if(!self.defaultInitImgResult){self.image.src='data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7';if('local'!==video.type){video.getImageURL(url=>{self.image.bgImage=`url(\"${url}\")`;self.init();});return false;}}}}\nreturn defaultResult;};const defDestroy=Jarallax.prototype.destroy;Jarallax.prototype.destroy=function(){const self=this;if(self.image.$default_item){self.image.$item=self.image.$default_item;delete self.image.$default_item;}\ndefDestroy.apply(self);};}\njarallaxVideo();ready(()=>{if('undefined'!==typeof global$1.jarallax){global$1.jarallax(document.querySelectorAll('[data-jarallax-video]'));}});if(!global$1.VideoWorker){global$1.VideoWorker=VideoWorker;}\nreturn jarallaxVideo;}));","Magento_PageBuilder/js/content-type/row/appearance/default/widget.min.js":"define(['jquery','Magento_PageBuilder/js/widget/video-background','jarallax'],function($,videoBackground){'use strict';return function(config,element){var $element=$(element),parallaxSpeed=null,elementStyle=null;if($element.data('appearance')==='contained'){$element=$(element).find('[data-element=\"inner\"]');}\nif($element.data('background-type')==='video'){videoBackground(config,$element[0]);return;}\nif($element.data('enableParallax')!==1){return;}\n$element.addClass('jarallax');$element.attr('data-jarallax','');parallaxSpeed=parseFloat($element.data('parallaxSpeed'));elementStyle=window.getComputedStyle($element[0]);window.jarallax($element[0],{imgPosition:elementStyle.backgroundPosition||'50% 50%',imgRepeat:elementStyle.backgroundRepeat||'no-repeat',imgSize:elementStyle.backgroundSize||'cover',speed:!isNaN(parallaxSpeed)?parallaxSpeed:0.5});};});","Magento_PageBuilder/js/content-type/map/appearance/default/widget.min.js":"define(['jquery','Magento_PageBuilder/js/utils/map'],function($,GoogleMap){'use strict';return function(config,element){var locations,controls,mapOptions={};element=element[0];if(element!==undefined&&element.hasAttribute('data-locations')){if(element.getAttribute('data-locations')==='[]'){$(element).hide();return;}\nlocations=JSON.parse(element.getAttribute('data-locations'));locations.forEach(function(location){location.position.latitude=parseFloat(location.position.latitude);location.position.longitude=parseFloat(location.position.longitude);});controls=element.getAttribute('data-show-controls');mapOptions.disableDefaultUI=controls!=='true';mapOptions.mapTypeControl=controls==='true';new GoogleMap(element,locations,mapOptions);}};});","Magento_PageBuilder/js/content-type/products/appearance/carousel/widget.min.js":"define(['jquery','underscore','matchMedia','Magento_PageBuilder/js/utils/breakpoints','Magento_PageBuilder/js/events','slick'],function($,_,mediaCheck,breakpointsUtils,events){'use strict';function buildSlick($carouselElement,config){if($carouselElement.hasClass('slick-initialized')){$carouselElement.slick('unslick');}\nconfig.slidesToScroll=config.slidesToShow;$carouselElement.slick(config);}\nfunction initSlider($element,slickConfig,breakpoint){var productCount=$element.find('.product-item').length,$carouselElement=$($element.children()),centerModeClass='center-mode',carouselMode=$element.data('carousel-mode'),slidesToShow=breakpoint.options.products[carouselMode]?breakpoint.options.products[carouselMode].slidesToShow:breakpoint.options.products.default.slidesToShow;slickConfig.slidesToShow=parseFloat(slidesToShow);if(carouselMode==='continuous'&&productCount>slickConfig.slidesToShow){$element.addClass(centerModeClass);slickConfig.centerPadding=$element.data('center-padding');slickConfig.centerMode=true;}else{$element.removeClass(centerModeClass);slickConfig.infinite=$element.data('infinite-loop');}\nbuildSlick($carouselElement,slickConfig);}\nreturn function(config,element){var $element=$(element),$carouselElement=$($element.children()),currentViewport=config.currentViewport,currentBreakpoint=config.breakpoints[currentViewport],slickConfig={autoplay:$element.data('autoplay'),autoplaySpeed:$element.data('autoplay-speed')||0,arrows:$element.data('show-arrows'),dots:$element.data('show-dots')};_.each(config.breakpoints,function(breakpoint){mediaCheck({media:breakpointsUtils.buildMedia(breakpoint.conditions),entry:function(){initSlider($element,slickConfig,breakpoint);}});});if(currentViewport==='mobile'){initSlider($element,slickConfig,currentBreakpoint);}\nevents.on('contentType:redrawAfter',function(args){if($carouselElement.closest(args.element).length){$carouselElement.slick('setPosition');}});events.on('stage:viewportChangeAfter',function(args){var breakpoint=config.breakpoints[args.viewport];initSlider($element,slickConfig,breakpoint);});};});","Magento_PageBuilder/js/content-type/slide/appearance/default/widget.min.js":"define(['jquery','underscore','Magento_PageBuilder/js/widget/show-on-hover','Magento_PageBuilder/js/widget/video-background'],function($,_,showOnHover,videoBackground){'use strict';return function(config,element){var videoElement=element[0].querySelector('[data-background-type=video]'),viewportElement=document.createElement('div'),$slider=null;showOnHover(config);if(videoElement){$slider=$(element).closest('[data-content-type=slider]');viewportElement.classList.add('jarallax-viewport-element');videoElement.setAttribute('data-element-in-viewport','.jarallax-viewport-element');videoElement.appendChild(viewportElement);videoBackground(config,videoElement);if($slider.data('afterChangeIsSet')){return;}\n$slider.on('afterChange init',function(){var videoSlides=$slider[0].querySelectorAll('.jarallax');_.each(videoSlides,function(videoSlide){videoSlide.jarallax&&videoSlide.jarallax.onScroll();});});$slider.data('afterChangeIsSet',true);}};});","Magento_PageBuilder/js/content-type/slider/appearance/default/widget.min.js":"define(['jquery','Magento_PageBuilder/js/events','slick'],function($,events){'use strict';return function(config,sliderElement){var $element=$(sliderElement);if($element.hasClass('slick-initialized')){$element.slick('unslick');}\n$element.slick({autoplay:$element.data('autoplay'),autoplaySpeed:$element.data('autoplay-speed')||0,fade:$element.data('fade'),infinite:$element.data('infinite-loop'),arrows:$element.data('show-arrows'),dots:$element.data('show-dots')});events.on('contentType:redrawAfter',function(args){if($element.closest(args.element).length){$element.slick('setPosition');}});events.on('stage:viewportChangeAfter',$element.slick.bind($element,'setPosition'));};});","Magento_PageBuilder/js/content-type/buttons/appearance/inline/widget.min.js":"define(['jquery','Magento_PageBuilder/js/events'],function($,events){'use strict';var equalizeButtonWidth=function(buttonList){var buttonMinWidth=0;buttonList.css('min-width',buttonMinWidth);buttonList.each(function(){var buttonWidth=this.offsetWidth;if(buttonWidth>buttonMinWidth){buttonMinWidth=buttonWidth;}});buttonList.css('min-width',buttonMinWidth);};return function(config,element){var $element=$(element),buttonSelector='[data-element=\"link\"], [data-element=\"empty_link\"]';if($element.data('sameWidth')){equalizeButtonWidth($element.find(buttonSelector));$(window).on('resize',function(){equalizeButtonWidth($element.find(buttonSelector));});events.on('contentType:redrawAfter',function(eventData){if($element.closest(eventData.element).length>0){equalizeButtonWidth($element.find(buttonSelector));}});}};});","Magento_PageBuilder/js/content-type/banner/appearance/default/widget.min.js":"define(['Magento_PageBuilder/js/widget/show-on-hover','Magento_PageBuilder/js/widget/video-background'],function(showOnHover,videoBackground){'use strict';return function(config,element){var videoElement=element[0].querySelector('[data-background-type=video]');showOnHover(config);if(videoElement){videoBackground(config,videoElement);}};});","Magento_PageBuilder/js/content-type/tabs/appearance/default/widget.min.js":"define(['jquery','Magento_PageBuilder/js/events','jquery-ui-modules/tabs'],function($,events){'use strict';return function(config,element){var $element=$(element);if($element.is('.pagebuilder-tabs')){return;}\n$.ui.tabs({active:$element.data('activeTab')||0,create:function(){var borderWidth=parseInt($element.find('.tabs-content').css('borderWidth').toString(),10);$element.find('.tabs-navigation').css('marginBottom',-borderWidth);$element.find('.tabs-navigation li:not(:first-child)').css('marginLeft',-borderWidth);},activate:function(){events.trigger('contentType:redrawAfter',{element:element});}},element);};});","Magento_PageBuilder/js/utils/map.min.js":"define(['underscore','module','Magento_PageBuilder/js/events'],function(_,module,events){'use strict';var google=window.google||{},getGoogleLatitudeLongitude=function(position){return new google.maps.LatLng(position.latitude,position.longitude);},gmAuthFailure=false;window.gm_authFailure=function(){events.trigger('googleMaps:authFailure');gmAuthFailure=true;};return function(element,markers,additionalOptions){var options,style;if(gmAuthFailure){events.trigger('googleMaps:authFailure');return;}\nif(typeof google.maps==='undefined'){return;}\ntry{style=module.config().style?JSON.parse(module.config().style):[];}\ncatch(error){style=[];}\noptions=_.extend({zoom:8,center:getGoogleLatitudeLongitude({latitude:30.2672,longitude:-97.7431}),scrollwheel:false,disableDoubleClickZoom:false,disableDefaultUI:false,mapTypeControl:true,mapTypeControlOptions:{style:google.maps.MapTypeControlStyle.DEFAULT},styles:style},additionalOptions);this.map=new google.maps.Map(element,options);this.markers=[];this.onUpdate=function(newMarkers,updateOptions){this.map.setOptions(updateOptions);this.setMarkers(newMarkers);};this.setMarkers=function(newMarkers){var activeInfoWindow,latitudeLongitudeBounds=new google.maps.LatLngBounds();this.markers.forEach(function(marker){marker.setMap(null);},this);this.markers=[];this.bounds=[];if(newMarkers&&newMarkers.length){newMarkers.forEach(function(newMarker){var location=_.escape(newMarker['location_name'])||'',comment=newMarker.comment?'<p>'+_.escape(newMarker.comment).replace(/(?:\\r\\n|\\r|\\n)/g,'<br/>')+'</p>':'',phone=newMarker.phone?'<p>Phone: '+_.escape(newMarker.phone)+'</p>':'',address=newMarker.address?_.escape(newMarker.address)+'<br/>':'',city=_.escape(newMarker.city)||'',country=newMarker.country?_.escape(newMarker.country):'',state=newMarker.state?_.escape(newMarker.state)+' ':'',zipCode=newMarker.zipcode?_.escape(newMarker.zipcode):'',cityComma=city!==''&&(zipCode!==''||state!=='')?', ':'',lineBreak=city!==''||zipCode!==''?'<br/>':'',contentString='<div>'+'<h3><b>'+location+'</b></h3>'+\ncomment+\nphone+'<p><span>'+address+\ncity+cityComma+state+zipCode+lineBreak+\ncountry+'</span></p>'+'</div>',infowindow=new google.maps.InfoWindow({content:contentString,maxWidth:350}),newCreatedMarker=new google.maps.Marker({map:this.map,position:getGoogleLatitudeLongitude(newMarker.position),title:location});if(location){newCreatedMarker.addListener('click',function(){if(activeInfoWindow){activeInfoWindow.close();}\ninfowindow.open(this.map,newCreatedMarker);activeInfoWindow=infowindow;},this);}\nthis.markers.push(newCreatedMarker);this.bounds.push(getGoogleLatitudeLongitude(newMarker.position));},this);}\nif(this.bounds.length>1){this.bounds.forEach(function(bound){latitudeLongitudeBounds.extend(bound);});this.map.fitBounds(latitudeLongitudeBounds);}\nif(this.bounds.length===1){this.map.setCenter(this.bounds[0]);this.map.setZoom(8);}};this.setMarkers(markers);};});","Magento_PageBuilder/js/utils/breakpoints.min.js":"define(['underscore'],function(_){'use strict';return{buildMedia:function(conditions){var result=_.map(_.pairs(conditions),function(condition){return'('+condition.join(': ')+')';});return result.join(' and ');}};});","Magento_PageBuilder/js/widget/video-background.min.js":"define(['jquery','jarallax','jarallaxVideo','vimeoWrapper'],function($){'use strict';return function(config,element){var $element=$(element),parallaxSpeed=$element.data('enableParallax')!==1?1:parseFloat($element.data('parallaxSpeed'));if($element.data('background-type')!=='video'){return;}\n$element.addClass('jarallax');$element.attr('data-jarallax','');window.jarallax($element[0],{imgSrc:$element.data('videoFallbackSrc'),speed:!isNaN(parallaxSpeed)?parallaxSpeed:0.5,videoLoop:$element.data('videoLoop'),videoPlayOnlyVisible:$element.data('videoPlayOnlyVisible'),videoLazyLoading:$element.data('videoLazyLoad'),disableVideo:false,elementInViewport:$element.data('elementInViewport')&&$element[0].querySelector($element.data('elementInViewport'))});$element[0].jarallax.video&&$element[0].jarallax.video.on('started',function(){if($element[0].jarallax.$video){$element[0].jarallax.$video.style.visibility='visible';}});};});","Magento_PageBuilder/js/widget/show-on-hover.min.js":"define(['jquery'],function($){'use strict';function showOverlayOnHover($elements){$elements.each(function(index,element){var overlayEl=$(element).find('.pagebuilder-overlay'),overlayColor=overlayEl.attr('data-overlay-color');$(element).on('mouseenter',function(){overlayEl.css('background-color',overlayColor);});$(element).on('mouseleave',function(){overlayEl.css('background-color','transparent');});});}\nfunction showButtonOnHover($elements,buttonClass){$elements.each(function(index,element){var buttonEl=$(element).find(buttonClass);$(element).on('mouseenter',function(){buttonEl.css({'opacity':'1','visibility':'visible'});});$(element).on('mouseleave',function(){buttonEl.css({'opacity':'0','visibility':'hidden'});});});}\nreturn function(config){var buttonSelector=config.buttonSelector,overlayHoverSelector='div[data-content-type=\"%s\"][data-show-overlay=\"%s\"]'.replace('%s',config.dataRole).replace('%s',config.showOverlay),overlayButtonSelector='div[data-content-type=\"%s\"][data-show-button=\"%s\"]'.replace('%s',config.dataRole).replace('%s',config.showOverlay);showOverlayOnHover($(overlayHoverSelector));showButtonOnHover($(overlayButtonSelector),buttonSelector);};});","Magento_GoogleGtag/js/google-analytics.min.js":"define(['jquery','mage/cookies'],function($){'use strict';return function(config){var allowServices=false,allowedCookies,allowedWebsites,measurementId;if(config.isCookieRestrictionModeEnabled){allowedCookies=$.mage.cookies.get(config.cookieName);if(allowedCookies!==null){allowedWebsites=JSON.parse(allowedCookies);if(allowedWebsites[config.currentWebsite]===1){allowServices=true;}}}else{allowServices=true;}\nif(allowServices){measurementId=config.pageTrackingData.measurementId;if(window.gtag){gtag('config',measurementId,{'anonymize_ip':true});if(config.ordersTrackingData.hasOwnProperty('currency')){var purchaseObject=config.ordersTrackingData.orders[0];purchaseObject['items']=config.ordersTrackingData.products;gtag('event','purchase',purchaseObject);}}else{(function(d,s,u){var gtagScript=d.createElement(s);gtagScript.type='text/javascript';gtagScript.async=true;gtagScript.src=u;d.head.insertBefore(gtagScript,d.head.children[0]);})(document,'script','https://www.googletagmanager.com/gtag/js?id='+measurementId);window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments);}\ngtag('js',new Date());gtag('set','developer_id.dYjhlMD',true);gtag('config',measurementId,{'anonymize_ip':true});if(config.ordersTrackingData.hasOwnProperty('currency')){var purchaseObject=config.ordersTrackingData.orders[0];purchaseObject['items']=config.ordersTrackingData.products;gtag('event','purchase',purchaseObject);}}}}});","Magento_GoogleGtag/js/google-adwords.min.js":"define(['jquery'],function($){'use strict';return function(config){if(!window.gtag){var gtagScript=document.createElement('script');gtagScript.type='text/javascript';gtagScript.async=true;gtagScript.src=config.gtagSiteSrc;document.head.appendChild(gtagScript);window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments);}\ngtag('js',new Date());gtag('set','developer_id.dYjhlMD',true);if(config.conversionLabel){gtag('event','conversion',{'send_to':config.conversionId+'/'\n+config.conversionLabel});}}else{gtag('config',config.conversionId);}}});","Magento_SendFriend/requirejs-config.min.js":"var config={map:{'*':{'Magento_SendFriend/back-event':'Magento_SendFriend/js/back-event'}}};","Magento_SendFriend/js/back-event.min.js":"define(['jquery'],function($){'use strict';return function(config,element){$(element).on('click',function(){history.back();return false;});};});","Magento_OfflineShipping/js/view/shipping-rates-validation/tablerate.min.js":"define(['uiComponent','Magento_Checkout/js/model/shipping-rates-validator','Magento_Checkout/js/model/shipping-rates-validation-rules','../../model/shipping-rates-validator/tablerate','../../model/shipping-rates-validation-rules/tablerate'],function(Component,defaultShippingRatesValidator,defaultShippingRatesValidationRules,tablerateShippingRatesValidator,tablerateShippingRatesValidationRules){'use strict';defaultShippingRatesValidator.registerValidator('tablerate',tablerateShippingRatesValidator);defaultShippingRatesValidationRules.registerRules('tablerate',tablerateShippingRatesValidationRules);return Component;});","Magento_OfflineShipping/js/view/shipping-rates-validation/flatrate.min.js":"define(['uiComponent','Magento_Checkout/js/model/shipping-rates-validator','Magento_Checkout/js/model/shipping-rates-validation-rules','../../model/shipping-rates-validator/flatrate','../../model/shipping-rates-validation-rules/flatrate'],function(Component,defaultShippingRatesValidator,defaultShippingRatesValidationRules,flatrateShippingRatesValidator,flatrateShippingRatesValidationRules){'use strict';defaultShippingRatesValidator.registerValidator('flatrate',flatrateShippingRatesValidator);defaultShippingRatesValidationRules.registerRules('flatrate',flatrateShippingRatesValidationRules);return Component;});","Magento_OfflineShipping/js/view/shipping-rates-validation/freeshipping.min.js":"define(['uiComponent','Magento_Checkout/js/model/shipping-rates-validator','Magento_Checkout/js/model/shipping-rates-validation-rules','../../model/shipping-rates-validator/freeshipping','../../model/shipping-rates-validation-rules/freeshipping'],function(Component,defaultShippingRatesValidator,defaultShippingRatesValidationRules,freeshippingShippingRatesValidator,freeshippingShippingRatesValidationRules){'use strict';defaultShippingRatesValidator.registerValidator('freeshipping',freeshippingShippingRatesValidator);defaultShippingRatesValidationRules.registerRules('freeshipping',freeshippingShippingRatesValidationRules);return Component;});","Magento_OfflineShipping/js/model/shipping-rates-validation-rules/tablerate.min.js":"define([],function(){'use strict';return{getRules:function(){return{'postcode':{'required':true},'country_id':{'required':true},'region_id':{'required':true},'region_id_input':{'required':true}};}};});","Magento_OfflineShipping/js/model/shipping-rates-validation-rules/flatrate.min.js":"define([],function(){'use strict';return{getRules:function(){return{'country_id':{'required':true}};}};});","Magento_OfflineShipping/js/model/shipping-rates-validation-rules/freeshipping.min.js":"define([],function(){'use strict';return{getRules:function(){return{'country_id':{'required':true}};}};});","Magento_OfflineShipping/js/model/shipping-rates-validator/tablerate.min.js":"define(['jquery','mageUtils','../shipping-rates-validation-rules/tablerate','mage/translate'],function($,utils,validationRules,$t){'use strict';return{validationErrors:[],validate:function(address){var self=this;this.validationErrors=[];$.each(validationRules.getRules(),function(field,rule){var message,regionFields;if(rule.required&&utils.isEmpty(address[field])){message=$t('Field ')+field+$t(' is required.');regionFields=['region','region_id','region_id_input'];if($.inArray(field,regionFields)===-1||utils.isEmpty(address.region)&&utils.isEmpty(address['region_id'])){self.validationErrors.push(message);}}});return!this.validationErrors.length;}};});","Magento_OfflineShipping/js/model/shipping-rates-validator/flatrate.min.js":"define(['jquery','mageUtils','../shipping-rates-validation-rules/flatrate','mage/translate'],function($,utils,validationRules,$t){'use strict';return{validationErrors:[],validate:function(address){var self=this;this.validationErrors=[];$.each(validationRules.getRules(),function(field,rule){var message;if(rule.required&&utils.isEmpty(address[field])){message=$t('Field ')+field+$t(' is required.');self.validationErrors.push(message);}});return!this.validationErrors.length;}};});","Magento_OfflineShipping/js/model/shipping-rates-validator/freeshipping.min.js":"define(['jquery','mageUtils','../shipping-rates-validation-rules/freeshipping','mage/translate'],function($,utils,validationRules,$t){'use strict';return{validationErrors:[],validate:function(address){var self=this;this.validationErrors=[];$.each(validationRules.getRules(),function(field,rule){var message;if(rule.required&&utils.isEmpty(address[field])){message=$t('Field ')+field+$t(' is required.');self.validationErrors.push(message);}});return!this.validationErrors.length;}};});","Magento_InventoryConfigurableProductFrontendUi/js/configurable.min.js":"define(['jquery','configurableVariationQty','jquery-ui-modules/widget'],function($,configurableVariationQty){'use strict';return function(configurable){$.widget('mage.configurable',configurable,{_configureElement:function(element){var salesChannel=this.options.spConfig.channel,salesChannelCode=this.options.spConfig.salesChannelCode,productVariationsSku=this.options.spConfig.sku;this._super(element);configurableVariationQty(productVariationsSku[this.simpleProduct],salesChannel,salesChannelCode);}});return $.mage.configurable;};});","Magento_InventoryConfigurableProductFrontendUi/js/configurable-variation-qty.min.js":"define(['jquery','underscore','mage/url'],function($,_,urlBuilder){'use strict';return function(productSku,salesChannel,salesChannelCode){var selectorInfoStockSkuQty='.availability.only',selectorInfoStockSkuQtyValue='.availability.only > strong',productQtyInfoBlock=$(selectorInfoStockSkuQty),productQtyInfo=$(selectorInfoStockSkuQtyValue);if(!_.isUndefined(productSku)&&productSku!==null){$.ajax({url:urlBuilder.build('inventory_catalog/product/getQty/'),dataType:'json',data:{'sku':productSku,'channel':salesChannel,'salesChannelCode':salesChannelCode}}).done(function(response){if(response.qty!==null&&response.qty>0){productQtyInfo.text(response.qty);productQtyInfoBlock.show();}else{productQtyInfoBlock.hide();}}).fail(function(){productQtyInfoBlock.hide();});}else{productQtyInfoBlock.hide();}};});","Magento_LoginAsCustomerAssistance/js/opt-in.min.js":"define(['jquery'],function($){'use strict';return function(config,element){$(element).on('submit',function(){this.elements['assistance_allowed'].value=this.elements['assistance_allowed_checkbox'].checked?config.allowAccess:config.denyAccess;});};});","Magento_Bundle/js/product-summary.min.js":"define(['jquery','mage/template','jquery-ui-modules/widget','Magento_Bundle/js/price-bundle'],function($,mageTemplate){'use strict';$.widget('mage.productSummary',{options:{mainContainer:'#product_addtocart_form',templates:{summaryBlock:'[data-template=\"bundle-summary\"]',optionBlock:'[data-template=\"bundle-option\"]'},optionSelector:'[data-container=\"options\"]',summaryContainer:'[data-container=\"product-summary\"]',bundleSummaryContainer:'.bundle-summary'},cache:{},_create:function(){this.element.closest(this.options.mainContainer).on('updateProductSummary',$.proxy(this._renderSummaryBox,this)).priceBundle({});},_renderSummaryBox:function(event,data){this.cache.currentElement=data.config;this.cache.currentElementCount=0;this.element.html('');this.cache.currentElement.positions.forEach(function(optionId){this._renderOption(optionId,this.cache.currentElement.selected[optionId]);},this);this.element.parents(this.options.bundleSummaryContainer).toggleClass('empty',!this.cache.currentElementCount);},_renderOption:function(key,row){var template;if(row&&row.length>0&&row[0]!==null){template=this.element.closest(this.options.summaryContainer).find(this.options.templates.summaryBlock).html();template=mageTemplate(template.trim(),{data:{_label_:this.cache.currentElement.options[key].title}});this.cache.currentKey=key;this.cache.summaryContainer=$(template);this.element.append(this.cache.summaryContainer);$.each(row,this._renderOptionRow.bind(this));this.cache.currentElementCount+=row.length;this.cache.currentKey=null;}},_renderOptionRow:function(key,optionIndex){var template;template=this.element.closest(this.options.summaryContainer).find(this.options.templates.optionBlock).html();template=mageTemplate(template.trim(),{data:{_quantity_:this.cache.currentElement.options[this.cache.currentKey].selections[optionIndex].qty,_label_:this.cache.currentElement.options[this.cache.currentKey].selections[optionIndex].name}});this.cache.summaryContainer.find(this.options.optionSelector).append(template);}});return $.mage.productSummary;});","Magento_Bundle/js/slide.min.js":"define(['jquery','jquery-ui-modules/widget'],function($){'use strict';$.widget('mage.slide',{options:{slideSpeed:1500,slideSelector:'#bundle-slide',slideBackSelector:'.bundle-slide-back',bundleProductSelector:'#bundleProduct',bundleOptionsContainer:'#options-container',productViewContainer:'#productView',slidedown:true},_create:function(){if(this.options.slidedown===true){$(this.options.slideSelector).on('click',$.proxy(this._show,this));$(this.options.slideBackSelector).on('click',$.proxy(this._hide,this));this.options.autostart&&this._show();}else{$(this.options.slideSelector).on('click',$.proxy(this._slide,this));$(this.options.slideBackSelector).on('click',$.proxy(this._slideBack,this));this.options.autostart&&this._slide();}},_slide:function(){$(this.options.bundleProductSelector).css('top','0px');$(this.options.bundleOptionsContainer).show();this.element.css('height',$(this.options.productViewContainer).height()+'px');$(this.options.bundleProductSelector).css('left','0px').animate({'left':'-'+this.element.width()+'px'},this.options.slideSpeed,$.proxy(function(){this.element.css('height','auto');$(this.options.productViewContainer).hide();},this));},_slideBack:function(){$(this.options.bundleProductSelector).css('top','0px');$(this.options.productViewContainer).show();this.element.css('height',$(this.options.bundleOptionsContainer).height()+'px');$(this.options.bundleProductSelector).animate({'left':'0px'},this.options.slideSpeed,$.proxy(function(){$(this.options.bundleOptionsContainer).hide();this.element.css('height','auto');},this));},_show:function(){$(this.options.bundleOptionsContainer).slideDown(800);$('html, body').animate({scrollTop:$(this.options.bundleOptionsContainer).offset().top},600);$('#product-options-wrapper > fieldset').trigger('focus');},_hide:function(){$('html, body').animate({scrollTop:0},600);$(this.options.bundleOptionsContainer).slideUp(800);}});return $.mage.slide;});","Magento_Bundle/js/price-bundle.min.js":"define(['jquery','underscore','mage/template','priceUtils','priceBox'],function($,_,mageTemplate,utils){'use strict';var globalOptions={optionConfig:null,productBundleSelector:'input.bundle.option, select.bundle.option, textarea.bundle.option',qtyFieldSelector:'input.qty',priceBoxSelector:'.price-box',optionHandlers:{},optionTemplate:'<%- data.label %>'+'<% if (data.finalPrice.value) { %>'+' +<%- data.finalPrice.formatted %>'+'<% } %>',controlContainer:'dd',priceFormat:{},isFixedPrice:false,optionTierPricesBlocksSelector:'#option-tier-prices-{1} [data-role=\"selection-tier-prices\"]',isOptionsInitialized:false};$.widget('mage.priceBundle',{options:globalOptions,_init:function initPriceBundle(){var form=this.element,options=$(this.options.productBundleSelector,form);options.trigger('change');},_create:function createPriceBundle(){var form=this.element,options=$(this.options.productBundleSelector,form),priceBox=$(this.options.priceBoxSelector,form),qty=$(this.options.qtyFieldSelector,form);this._updatePriceBox();priceBox.on('price-box-initialized',this._updatePriceBox.bind(this));options.on('change',this._onBundleOptionChanged.bind(this));qty.on('change',this._onQtyFieldChanged.bind(this));},_updatePriceBox:function(){var form=this.element,options=$(this.options.productBundleSelector,form),priceBox=$(this.options.priceBoxSelector,form);if(!this.options.isOptionsInitialized){if(priceBox.data('magePriceBox')&&priceBox.priceBox('option')&&priceBox.priceBox('option').priceConfig){if(priceBox.priceBox('option').priceConfig.optionTemplate){this._setOption('optionTemplate',priceBox.priceBox('option').priceConfig.optionTemplate);}\nthis._setOption('priceFormat',priceBox.priceBox('option').priceConfig.priceFormat);priceBox.priceBox('setDefault',this.options.optionConfig.prices);this.options.isOptionsInitialized=true;}\nthis._applyOptionNodeFix(options);}\nreturn this;},_onBundleOptionChanged:function onBundleOptionChanged(event){var changes,bundleOption=$(event.target),priceBox=$(this.options.priceBoxSelector,this.element),handler=this.options.optionHandlers[bundleOption.data('role')];bundleOption.data('optionContainer',bundleOption.closest(this.options.controlContainer));bundleOption.data('qtyField',bundleOption.data('optionContainer').find(this.options.qtyFieldSelector));if(handler&&handler instanceof Function){changes=handler(bundleOption,this.options.optionConfig,this);}else{changes=defaultGetOptionValue(bundleOption,this.options.optionConfig);}\nif(isValidQty(bundleOption)){if(changes){priceBox.trigger('updatePrice',changes);}\nthis._displayTierPriceBlock(bundleOption);this.updateProductSummary();}},_onQtyFieldChanged:function onQtyFieldChanged(event){var field=$(event.target),optionInstance,optionConfig;if(field.data('optionId')&&field.data('optionValueId')){optionInstance=field.data('option');optionConfig=this.options.optionConfig.options[field.data('optionId')].selections[field.data('optionValueId')];optionConfig.qty=field.val();if(isValidQty(optionInstance)){optionInstance.trigger('change');}}},_applyQtyFix:function applyQtyFix(){var config=this.options.optionConfig;if(config.isFixedPrice){_.each(config.options,function(option){_.each(option.selections,function(item){if(item.qty&&item.qty!==1){_.each(item.prices,function(price){price.amount /=item.qty;});}});});}},_applyOptionNodeFix:function applyOptionNodeFix(options){var config=this.options,format=config.priceFormat,template=config.optionTemplate;template=mageTemplate(template);options.filter('select').each(function(index,element){var $element=$(element),optionId=utils.findOptionId($element),optionConfig=config.optionConfig&&config.optionConfig.options[optionId].selections,value;$element.find('option').each(function(idx,option){var $option,optionValue,toTemplate,prices;$option=$(option);optionValue=$option.val();if(!optionValue&&optionValue!==0){return;}\ntoTemplate={data:{label:optionConfig[optionValue]&&optionConfig[optionValue].name}};prices=optionConfig[optionValue].prices;_.each(prices,function(price,type){value=+price.amount;value+=_.reduce(price.adjustments,function(sum,x){return sum+x;},0);toTemplate.data[type]={value:value,formatted:utils.formatPriceLocale(value,format)};});$option.html(template(toTemplate));});});},_setOptions:function setOptions(options){$.extend(true,this.options,options);this._super(options);return this;},_displayTierPriceBlock:function(optionElement){var optionType=optionElement.prop('type'),optionId,optionValue,optionTierPricesElements;if(optionType==='select-one'){optionId=utils.findOptionId(optionElement[0]);optionValue=optionElement.val()||null;optionTierPricesElements=$(this.options.optionTierPricesBlocksSelector.replace('{1}',optionId));_.each(optionTierPricesElements,function(tierPriceElement){var selectionId=$(tierPriceElement).data('selection-id')+'';if(selectionId===optionValue){$(tierPriceElement).show();}else{$(tierPriceElement).hide();}});}},updateProductSummary:function updateProductSummary(){this.element.trigger('updateProductSummary',{config:this.options.optionConfig});}});return $.mage.priceBundle;function defaultGetOptionValue(element,config){var changes={},optionHash,tempChanges,qtyField,optionId=utils.findOptionId(element[0]),optionValue=element.val()||null,optionName=element.prop('name'),optionType=element.prop('type'),optionConfig=config.options[optionId].selections,optionQty=0,canQtyCustomize=false,selectedIds=config.selected;switch(optionType){case'radio':case'select-one':if(optionType==='radio'&&!element.is(':checked')){return null;}\nqtyField=element.data('qtyField');qtyField.data('option',element);if(optionValue){optionQty=optionConfig[optionValue].qty||0;canQtyCustomize=optionConfig[optionValue].customQty==='1';toggleQtyField(qtyField,optionQty,optionId,optionValue,canQtyCustomize);tempChanges=utils.deepClone(optionConfig[optionValue].prices);tempChanges=applyTierPrice(tempChanges,optionQty,optionConfig[optionValue]);tempChanges=applyQty(tempChanges,optionQty);}else{tempChanges={};toggleQtyField(qtyField,'0',optionId,optionValue,false);}\noptionHash='bundle-option-'+optionName;changes[optionHash]=tempChanges;selectedIds[optionId]=[optionValue];break;case'select-multiple':optionValue=_.compact(optionValue);_.each(optionConfig,function(row,optionValueCode){optionHash='bundle-option-'+optionName+'##'+optionValueCode;optionQty=row.qty||0;tempChanges=utils.deepClone(row.prices);tempChanges=applyTierPrice(tempChanges,optionQty,optionConfig);tempChanges=applyQty(tempChanges,optionQty);changes[optionHash]=_.contains(optionValue,optionValueCode)?tempChanges:{};});selectedIds[optionId]=optionValue||[];break;case'checkbox':optionHash='bundle-option-'+optionName+'##'+optionValue;optionQty=optionConfig[optionValue].qty||0;tempChanges=utils.deepClone(optionConfig[optionValue].prices);tempChanges=applyTierPrice(tempChanges,optionQty,optionConfig);tempChanges=applyQty(tempChanges,optionQty);changes[optionHash]=element.is(':checked')?tempChanges:{};selectedIds[optionId]=selectedIds[optionId]||[];if(!_.contains(selectedIds[optionId],optionValue)&&element.is(':checked')){selectedIds[optionId].push(optionValue);}else if(!element.is(':checked')){selectedIds[optionId]=_.without(selectedIds[optionId],optionValue);}\nbreak;case'hidden':optionHash='bundle-option-'+optionName+'##'+optionValue;optionQty=optionConfig[optionValue].qty||0;canQtyCustomize=optionConfig[optionValue].customQty==='1';qtyField=element.data('qtyField');qtyField.data('option',element);toggleQtyField(qtyField,optionQty,optionId,optionValue,canQtyCustomize);tempChanges=utils.deepClone(optionConfig[optionValue].prices);tempChanges=applyTierPrice(tempChanges,optionQty,optionConfig);tempChanges=applyQty(tempChanges,optionQty);optionHash='bundle-option-'+optionName;changes[optionHash]=tempChanges;selectedIds[optionId]=[optionValue];break;}\nreturn changes;}\nfunction isValidQty(bundleOption){var isValid=true,qtyElem=bundleOption.data('qtyField'),bundleOptionType=bundleOption.prop('type');if(['radio','select-one'].includes(bundleOptionType)&&qtyElem.val()<0){isValid=false;}\nreturn isValid;}\nfunction toggleQtyField(element,value,optionId,optionValueId,canEdit){element.val(value).data('optionId',optionId).data('optionValueId',optionValueId).attr('disabled',!canEdit);if(canEdit){element.removeClass('qty-disabled');}else{element.addClass('qty-disabled');}}\nfunction applyQty(prices,qty){_.each(prices,function(everyPrice){everyPrice.amount*=qty;_.each(everyPrice.adjustments,function(el,index){everyPrice.adjustments[index]*=qty;});});return prices;}\nfunction applyTierPrice(oneItemPrice,qty,optionConfig){var tiers=optionConfig.tierPrice,magicKey=_.keys(oneItemPrice)[0],tiersFirstKey=_.keys(optionConfig)[0],lowest=false;if(!tiers){tiers=optionConfig[tiersFirstKey].tierPrice;}\ntiers.sort(function(a,b){return a['price_qty']-b['price_qty'];});_.each(tiers,function(tier,index){if(tier['price_qty']>qty){return;}\nif(tier.prices[magicKey].amount<oneItemPrice[magicKey].amount){lowest=index;}});if(lowest!==false){oneItemPrice=utils.deepClone(tiers[lowest].prices);}\nreturn oneItemPrice;}});","Magento_Vault/js/customer_account/deleteWidget.min.js":"define(['jquery','Magento_Ui/js/modal/modalToggle','mage/translate'],function($,modalToggle){'use strict';return function(config,deleteButton){config.buttons=[{text:$.mage.__('Cancel'),class:'action secondary cancel'},{text:$.mage.__('Delete'),class:'action primary',click:function(event){$(deleteButton.form).trigger('submit');}}];modalToggle(config,deleteButton);};});","Magento_Vault/js/view/payment/vault.min.js":"define(['underscore','uiComponent','Magento_Checkout/js/model/payment/renderer-list','uiLayout','uiRegistry'],function(_,Component,rendererList,layout,registry){'use strict';var vaultGroupName='vaultGroup';layout([{name:vaultGroupName,component:'Magento_Checkout/js/model/payment/method-group',alias:'vault',sortOrder:10}]);registry.get(vaultGroupName,function(vaultGroup){_.each(window.checkoutConfig.payment.vault,function(config,index){rendererList.push({type:index,config:config.config,component:config.component,group:vaultGroup,typeComparatorCallback:function(typeA,typeB){return typeA.substring(0,typeA.lastIndexOf('_'))===typeB;}});});});return Component.extend({});});","Magento_Vault/js/view/payment/vault-enabler.min.js":"define(['uiElement'],function(Component){'use strict';return Component.extend({defaults:{isActivePaymentTokenEnabler:true},setPaymentCode:function(paymentCode){this.paymentCode=paymentCode;},initObservable:function(){this._super().observe(['isActivePaymentTokenEnabler']);return this;},visitAdditionalData:function(data){if(!this.isVaultEnabled()){return;}\nif(!('additional_data'in data)){data['additional_data']={};}\ndata['additional_data']['is_active_payment_token_enabler']=this.isActivePaymentTokenEnabler();},isVaultEnabled:function(){return typeof window.checkoutConfig.vault[this.paymentCode]!=='undefined'&&window.checkoutConfig.vault[this.paymentCode]['is_enabled']===true;}});});","Magento_Vault/js/view/payment/method-renderer/vault.min.js":"define(['Magento_Checkout/js/view/payment/default','Magento_Checkout/js/action/select-payment-method','Magento_Checkout/js/checkout-data'],function(Component,selectPaymentMethod,checkoutData){'use strict';return Component.extend({defaults:{template:'Magento_Vault/payment/form'},initObservable:function(){this._super().observe([]);return this;},selectPaymentMethod:function(){selectPaymentMethod({method:this.getId()});checkoutData.setSelectedPaymentMethod(this.getId());return true;},getTitle:function(){return'';},getToken:function(){return'';},getId:function(){return this.index;},getCode:function(){return this.code;},getMaskedCard:function(){return'';},getExpirationDate:function(){return'';},getCardType:function(){return'';},getIcons:function(type){return window.checkoutConfig.payment.ccform.icons.hasOwnProperty(type)?window.checkoutConfig.payment.ccform.icons[type]:false;},isButtonActive:function(){return this.isActive()&&this.isPlaceOrderActionAllowed();},isActive:function(){return this.isChecked()===this.getId();},getData:function(){var data={method:this.getCode()};data['additional_data']={};data['additional_data']['public_hash']=this.getToken();return data;}});});","Meta_Conversion/js/metaPixelTracker.min.js":"define(['jquery'],function($){'use strict';function generateUUID(){if(crypto.randomUUID){return crypto.randomUUID();}\nconst buf=new Uint8Array(16);crypto.getRandomValues(buf);buf[6]=buf[6]&0x0f|0x40;buf[8]=buf[8]&0x3f|0x80;return Array.from(buf).map((b,i)=>{const s=b.toString(16).padStart(2,'0'),isUuidOffsetChar=i===4||i===6||i===8||i===10;return isUuidOffsetChar?'-'+s:s;}).join('');}\nfunction trackPixelEvent(config){const pixelId=config.browserEventData.fbPixelId,agent=config.browserEventData.fbAgentVersion,track=config.browserEventData.track,event=config.browserEventData.event,pixelEventPayload=config.browserEventData.payload,eventId=config.payload.eventId,trackServerEventUrl=config.url,serverEventPayload=config.payload;fbq('set','agent',agent,pixelId);fbq(track,event,pixelEventPayload,{eventID:eventId});$.ajax({showLoader:true,url:trackServerEventUrl,type:'POST',data:serverEventPayload,dataType:'json',global:false,error:function(error){console.log(error);}});}\nreturn function(config){config.payload.eventId=generateUUID();config.browserEventData.payload.source=config.browserEventData.source;config.browserEventData.payload.pluginVersion=config.browserEventData.pluginVersion;if(window.metaPixelInitFlag){trackPixelEvent(config);}else{window.addEventListener('metaPixelInitialized',()=>{trackPixelEvent(config);},{once:true});}};});","Meta_Conversion/js/initPixel.min.js":"define(['jquery'],function($){'use strict';return function(config){const pixelId=config.pixelId;const automaticMatchingFlag=config.automaticMatchingFlag;const userDataUrl=config.userDataUrl;const agent=config.agent;const metaPixelInitializedEvent=new Event('metaPixelInitialized');window.metaPixelInitFlag=false;if(!window.fbq){!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,document,'script','//connect.facebook.net/en_US/fbevents.js');}\nfbq('init',pixelId,{},{agent:agent});if(!automaticMatchingFlag){window.metaPixelInitFlag=true;window.dispatchEvent(metaPixelInitializedEvent);return;}\n$.get({url:userDataUrl,dataType:'json',success:function(res){if(res.success&&res.user_data){fbq('init',pixelId,res.user_data,{agent:agent});}},error:function(error){console.log(error);}}).always(function(){window.metaPixelInitFlag=true;window.dispatchEvent(metaPixelInitializedEvent);});};});","Meta_Conversion/js/customerRegistration.min.js":"define(['Meta_Conversion/js/tracking','Meta_Conversion/js/metaPixelTracker'],function(cookies,metaPixelTracker){'use strict';return function(metaPixelData){let payload=null,eventName='',currency='',cookieName='event_customer_register';eventName=metaPixelData.payload.eventName;currency=metaPixelData.browserEventData.payload.currency;function isPayloadAvailable(){payload=cookies.getCookie(cookieName);if(payload!==null){payload=cookies.parseJson(payload);return true;}\nreturn false;}\nfunction prepareServerPayload(){metaPixelData.payload=metaPixelData.browserEventData.payload;metaPixelData.payload.eventName=eventName;metaPixelData.payload.currency=currency;}\nfunction prepareBrowserPayload(){metaPixelData.browserEventData.payload=payload;metaPixelData.browserEventData.payload.currency=currency;}\nif(isPayloadAvailable()){prepareBrowserPayload();prepareServerPayload();metaPixelTracker(metaPixelData);cookies.delCookie(cookieName);}};});","Meta_Conversion/js/addToWishlist.min.js":"define(['Meta_Conversion/js/tracking','Meta_Conversion/js/metaPixelTracker'],function(cookies,metaPixelTracker){'use strict';return function(metaPixelData){let payload=null,cookieName='event_add_to_wishlist',currency='',eventName='';currency=metaPixelData.browserEventData.payload.currency;eventName=metaPixelData.payload.eventName;function isPayloadAvailable(){payload=cookies.getCookie(cookieName);if(payload!==null){payload=cookies.parseJson(payload);return true;}\nreturn false;}\nif(isPayloadAvailable()){metaPixelData.browserEventData.payload=payload;metaPixelData.browserEventData.payload.currency=currency;metaPixelData.payload=payload;metaPixelData.payload.currency=currency;metaPixelData.payload.eventName=eventName;metaPixelTracker(metaPixelData);cookies.delCookie(cookieName);}};});","Meta_Conversion/js/customizeProduct.min.js":"define(['jquery','Meta_Conversion/js/metaPixelTracker'],function($,metaPixelTracker){'use strict';let productName,sku,productId,price,payload;return function(config){function callMetaPixelTracker(){if(config!==null){config.browserEventData.payload.content_name=payload.productName;config.browserEventData.payload.content_ids=[payload.sku];config.browserEventData.payload.content_type='product_group';config.payload.content_name=payload.productName;config.payload.content_ids=[payload.sku];config.payload.content_type='product_group';metaPixelTracker(config);}}\nfunction _getPrice(element){productId=$(element).parents('.product-item-details').find('.price-final_price').data('product-id');price=$('#old-price-'+productId+'-widget-product-grid').data('price-amount');if(!price){productId=$(element).parents('.product-info-main').find('.price-final_price').data('product-id');price=$('#product-price-'+productId).data('price-amount');}\nreturn price;}\nfunction _getProductName(element){productName=$(element).parents('.product-item-details').find('.product-item-link').text();productName=productName.trim();if(!productName){productName=$(element).parents('.product-info-main').find('.page-title .base').text();productName=productName.trim();}\nreturn productName;}\nfunction _getSku(element){sku=$(element).parents('li.product-item').find('form').data('product-sku');if(!sku){sku=$(element).parents('.product-info-main').find('.product.attribute.sku .value').text();sku=sku.trim();}\nreturn sku;}\nfunction setPayload(element){payload={'productName':_getProductName(element),'sku':_getSku(element)};config.browserEventData.payload.value=_getPrice(element);config.payload.value=_getPrice(element);}\n$('.super-attribute-select').on('change',function(){setPayload(this);callMetaPixelTracker();});$('[class*=\"swatch-opt\"]').on('click','.swatch-option',function(){setPayload(this);callMetaPixelTracker();});};});","Meta_Conversion/js/addPaymentInfo.min.js":"define(['jquery','Meta_Conversion/js/metaPixelTracker','Magento_Customer/js/customer-data','Magento_Checkout/js/model/payment/place-order-hooks'],function($,metaPixelTracker,customerData,placeOrderHooks){'use strict';return function(metaPixelData){let payload=customerData.get('cart')().meta_payload;let currency=metaPixelData.browserEventData.payload.currency;let eventName=metaPixelData.payload.eventName;let singlePayment=false;metaPixelData={...metaPixelData,payload:payload};metaPixelData.browserEventData={...metaPixelData.browserEventData,payload:payload};metaPixelData.payload={...metaPixelData.payload,content_type:'product'};metaPixelData.payload={...metaPixelData.payload,currency:currency};metaPixelData.browserEventData.payload={...metaPixelData.browserEventData.payload,currency:currency};metaPixelData.payload={...metaPixelData.payload,eventName:eventName};metaPixelData.browserEventData.payload={...metaPixelData.browserEventData.payload,content_type:'product'};if(payload!==null){placeOrderHooks.afterRequestListeners.push(function(){if($('input[name=\\'payment[method]\\']').length>1){metaPixelTracker(metaPixelData);}\nif($('input[name=\\'payment[method]\\']').length===1&&!singlePayment){metaPixelTracker(metaPixelData);singlePayment=true;}});$(document).on('ajaxComplete',function(event,xhr,settings){if(settings.url.indexOf('/billing-address')!==-1&&settings.type==='POST'){metaPixelTracker(metaPixelData);}});}};});","Meta_Conversion/js/tracking.min.js":"define([],function(){'use strict';return{getCookie:function(name){var cookie=' '+document.cookie;var search=' '+name+'=';var setStr=null;var offset=0;var end=0;if(cookie.length>0){offset=cookie.indexOf(search);if(offset!==-1){offset+=search.length;end=cookie.indexOf(';',offset);if(end===-1){end=cookie.length;}\nsetStr=decodeURI(cookie.substring(offset,end));}}\nreturn setStr;},delCookie:function(name){var date=new Date(0);var cookie=name+'='+'; path=/; expires='+date.toUTCString();document.cookie=cookie;},parseJson:function(json){json=decodeURIComponent(json.replace(/\\+/g,' '));return JSON.parse(json);}};});","Meta_Conversion/js/contactPixel.min.js":"define(['Meta_Conversion/js/tracking','Meta_Conversion/js/metaPixelTracker'],function(cookies,metaPixelTracker){'use strict';return function(metaPixelData){let payload,cookieName='event_contact';payload=cookies.getCookie(cookieName);if(payload!==null){metaPixelTracker(metaPixelData);cookies.delCookie(cookieName);}};});","Smile_ElasticsuiteCore/js/MutationObserver.min.js":"(function(global){var registrationsTable=new WeakMap();var setImmediate;if(/Trident|Edge/.test(navigator.userAgent)){setImmediate=setTimeout;}else if(window.setImmediate){setImmediate=window.setImmediate;}else{var setImmediateQueue=[];var sentinel=String(Math.random());window.addEventListener('message',function(e){if(e.data===sentinel){var queue=setImmediateQueue;setImmediateQueue=[];queue.forEach(function(func){func();});}});setImmediate=function(func){setImmediateQueue.push(func);window.postMessage(sentinel,'*');};}\nvar isScheduled=false;var scheduledObservers=[];function scheduleCallback(observer){scheduledObservers.push(observer);if(!isScheduled){isScheduled=true;setImmediate(dispatchCallbacks);}}\nfunction wrapIfNeeded(node){return window.ShadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapIfNeeded(node)||node;}\nfunction dispatchCallbacks(){isScheduled=false;var observers=scheduledObservers;scheduledObservers=[];observers.sort(function(o1,o2){return o1.uid_-o2.uid_;});var anyNonEmpty=false;observers.forEach(function(observer){var queue=observer.takeRecords();removeTransientObserversFor(observer);if(queue.length){observer.callback_(queue,observer);anyNonEmpty=true;}});if(anyNonEmpty)\ndispatchCallbacks();}\nfunction removeTransientObserversFor(observer){observer.nodes_.forEach(function(node){var registrations=registrationsTable.get(node);if(!registrations)\nreturn;registrations.forEach(function(registration){if(registration.observer===observer)\nregistration.removeTransientObservers();});});}\nfunction forEachAncestorAndObserverEnqueueRecord(target,callback){for(var node=target;node;node=node.parentNode){var registrations=registrationsTable.get(node);if(registrations){for(var j=0;j<registrations.length;j++){var registration=registrations[j];var options=registration.options;if(node!==target&&!options.subtree)\ncontinue;var record=callback(options);if(record)\nregistration.enqueue(record);}}}}\nvar uidCounter=0;function JsMutationObserver(callback){this.callback_=callback;this.nodes_=[];this.records_=[];this.uid_=++uidCounter;}\nJsMutationObserver.prototype={observe:function(target,options){target=wrapIfNeeded(target);if(!options.childList&&!options.attributes&&!options.characterData||options.attributeOldValue&&!options.attributes||options.attributeFilter&&options.attributeFilter.length&&!options.attributes||options.characterDataOldValue&&!options.characterData){throw new SyntaxError();}\nvar registrations=registrationsTable.get(target);if(!registrations)\nregistrationsTable.set(target,registrations=[]);var registration;for(var i=0;i<registrations.length;i++){if(registrations[i].observer===this){registration=registrations[i];registration.removeListeners();registration.options=options;break;}}\nif(!registration){registration=new Registration(this,target,options);registrations.push(registration);this.nodes_.push(target);}\nregistration.addListeners();},disconnect:function(){this.nodes_.forEach(function(node){var registrations=registrationsTable.get(node);for(var i=0;i<registrations.length;i++){var registration=registrations[i];if(registration.observer===this){registration.removeListeners();registrations.splice(i,1);break;}}},this);this.records_=[];},takeRecords:function(){var copyOfRecords=this.records_;this.records_=[];return copyOfRecords;}};function MutationRecord(type,target){this.type=type;this.target=target;this.addedNodes=[];this.removedNodes=[];this.previousSibling=null;this.nextSibling=null;this.attributeName=null;this.attributeNamespace=null;this.oldValue=null;}\nfunction copyMutationRecord(original){var record=new MutationRecord(original.type,original.target);record.addedNodes=original.addedNodes.slice();record.removedNodes=original.removedNodes.slice();record.previousSibling=original.previousSibling;record.nextSibling=original.nextSibling;record.attributeName=original.attributeName;record.attributeNamespace=original.attributeNamespace;record.oldValue=original.oldValue;return record;};var currentRecord,recordWithOldValue;function getRecord(type,target){return currentRecord=new MutationRecord(type,target);}\nfunction getRecordWithOldValue(oldValue){if(recordWithOldValue)\nreturn recordWithOldValue;recordWithOldValue=copyMutationRecord(currentRecord);recordWithOldValue.oldValue=oldValue;return recordWithOldValue;}\nfunction clearRecords(){currentRecord=recordWithOldValue=undefined;}\nfunction recordRepresentsCurrentMutation(record){return record===recordWithOldValue||record===currentRecord;}\nfunction selectRecord(lastRecord,newRecord){if(lastRecord===newRecord)\nreturn lastRecord;if(recordWithOldValue&&recordRepresentsCurrentMutation(lastRecord))\nreturn recordWithOldValue;return null;}\nfunction Registration(observer,target,options){this.observer=observer;this.target=target;this.options=options;this.transientObservedNodes=[];}\nRegistration.prototype={enqueue:function(record){var records=this.observer.records_;var length=records.length;if(records.length>0){var lastRecord=records[length-1];var recordToReplaceLast=selectRecord(lastRecord,record);if(recordToReplaceLast){records[length-1]=recordToReplaceLast;return;}}else{scheduleCallback(this.observer);}\nrecords[length]=record;},addListeners:function(){this.addListeners_(this.target);},addListeners_:function(node){var options=this.options;if(options.attributes)\nnode.addEventListener('DOMAttrModified',this,true);if(options.characterData)\nnode.addEventListener('DOMCharacterDataModified',this,true);if(options.childList)\nnode.addEventListener('DOMNodeInserted',this,true);if(options.childList||options.subtree)\nnode.addEventListener('DOMNodeRemoved',this,true);},removeListeners:function(){this.removeListeners_(this.target);},removeListeners_:function(node){var options=this.options;if(options.attributes)\nnode.removeEventListener('DOMAttrModified',this,true);if(options.characterData)\nnode.removeEventListener('DOMCharacterDataModified',this,true);if(options.childList)\nnode.removeEventListener('DOMNodeInserted',this,true);if(options.childList||options.subtree)\nnode.removeEventListener('DOMNodeRemoved',this,true);},addTransientObserver:function(node){if(node===this.target)\nreturn;this.addListeners_(node);this.transientObservedNodes.push(node);var registrations=registrationsTable.get(node);if(!registrations)\nregistrationsTable.set(node,registrations=[]);registrations.push(this);},removeTransientObservers:function(){var transientObservedNodes=this.transientObservedNodes;this.transientObservedNodes=[];transientObservedNodes.forEach(function(node){this.removeListeners_(node);var registrations=registrationsTable.get(node);for(var i=0;i<registrations.length;i++){if(registrations[i]===this){registrations.splice(i,1);break;}}},this);},handleEvent:function(e){e.stopImmediatePropagation();switch(e.type){case'DOMAttrModified':var name=e.attrName;var namespace=e.relatedNode.namespaceURI;var target=e.target;var record=new getRecord('attributes',target);record.attributeName=name;record.attributeNamespace=namespace;var oldValue=e.attrChange===MutationEvent.ADDITION?null:e.prevValue;forEachAncestorAndObserverEnqueueRecord(target,function(options){if(!options.attributes)\nreturn;if(options.attributeFilter&&options.attributeFilter.length&&options.attributeFilter.indexOf(name)===-1&&options.attributeFilter.indexOf(namespace)===-1){return;}\nif(options.attributeOldValue)\nreturn getRecordWithOldValue(oldValue);return record;});break;case'DOMCharacterDataModified':var target=e.target;var record=getRecord('characterData',target);var oldValue=e.prevValue;forEachAncestorAndObserverEnqueueRecord(target,function(options){if(!options.characterData)\nreturn;if(options.characterDataOldValue)\nreturn getRecordWithOldValue(oldValue);return record;});break;case'DOMNodeRemoved':this.addTransientObserver(e.target);case'DOMNodeInserted':var changedNode=e.target;var addedNodes,removedNodes;if(e.type==='DOMNodeInserted'){addedNodes=[changedNode];removedNodes=[];}else{addedNodes=[];removedNodes=[changedNode];}\nvar previousSibling=changedNode.previousSibling;var nextSibling=changedNode.nextSibling;var record=getRecord('childList',e.target.parentNode);record.addedNodes=addedNodes;record.removedNodes=removedNodes;record.previousSibling=previousSibling;record.nextSibling=nextSibling;forEachAncestorAndObserverEnqueueRecord(e.relatedNode,function(options){if(!options.childList)\nreturn;return record;});}\nclearRecords();}};global.JsMutationObserver=JsMutationObserver;if(!global.MutationObserver)\nglobal.MutationObserver=JsMutationObserver;})(this);","Smile_ElasticsuiteCore/js/form-mini.min.js":"define(['ko','jquery','underscore','mage/template','Magento_Catalog/js/price-utils','Magento_Ui/js/lib/knockout/template/loader','Magento_Ui/js/modal/modal','mage/translate','Magento_Search/js/form-mini'],function(ko,$,_,mageTemplate,priceUtil,templateLoader){'use strict';$.widget('smileEs.quickSearch',$.mage.quickSearch,{options:{autocomplete:'off',minSearchLength:2,responseFieldElements:'dl dd',selectClass:'selected',submitBtn:'button[type=\"submit\"]',searchLabel:'[data-role=minisearch-label]'},_create:function(){this.templateCache=[];this.currentRequest=null;this._initTemplates();this._initTitleRenderer();this._super();this._blur();},_initTemplates:function(){for(var template in this.options.templates){if({}.hasOwnProperty.call(this.options.templates,template)){this._loadTemplate(template);}}},_initTitleRenderer:function(){this.titleRenderers={};for(var typeIdentifier in this.options.templates){if(this.options.templates[typeIdentifier]['titleRenderer']){require([this.options.templates[typeIdentifier]['titleRenderer']],function(renderer){this.component.titleRenderers[this.type]=renderer;}.bind({component:this,type:typeIdentifier}));}}},_loadTemplate:function(type){var templateFile=this.options.templates[type]['template'];templateLoader.loadTemplate(templateFile).done(function(renderer){this.options.templates[type]['template']=renderer;}.bind(this));},_getTemplate:function(element){var source=this.options.template;var type=element.type?element.type:'undefined';if(this.templateCache[type]){return this.templateCache[type];}\nif(element.type&&this.options.templates&&this.options.templates[element.type]){source=this.options.templates[element.type].template;}\nthis.templateCache[type]=mageTemplate(source);return this.templateCache[type];},_renderItem:function(element,index){var template=this._getTemplate(element);element.index=index;if(element.price&&(!isNaN(element.price))){element.price=priceUtil.formatPrice(element.price,this.options.priceFormat);}\nreturn template({data:element});},_getResultWrapper:function(){return $('<div class=\"smile-elasticsuite-autocomplete-result\"></div>');},_getSectionHeader:function(type,data){var title='';var header=$('<dl role=\"listbox\" class=\"autocomplete-list\"></dl>');if(type!==undefined){title=this._getSectionTitle(type,data);header.append(title);}\nreturn header;},_getSectionTitle:function(type,data){var title='';if(this.titleRenderers&&this.titleRenderers[type]){title=$('<dt role=\"listbox\" class=\"autocomplete-list-title title-'+type+'\">'+this.titleRenderers[type].render(data)+'</dt>');}else if(this.options.templates&&this.options.templates[type].title){title=$('<dt role=\"listbox\" class=\"autocomplete-list-title title-'+type+'\">'+this.options.templates[type].title+'</dt>');}\nreturn title;},_isEmpty:function(value){return value===null||value.trim().length===0;},_onPropertyChange:_.debounce(function(){var searchField=this.element,clonePosition={position:'absolute',width:searchField.outerWidth()},value=this.element.val();this.submitBtn.disabled=this._isEmpty(value);if(value.trim().length>=parseInt(this.options.minSearchLength,10)){this.searchForm.addClass('processing');this.currentRequest=$.ajax({method:\"GET\",url:this.options.url,cache:true,dataType:'json',data:{q:value},beforeSend:function(){if(this.currentRequest!==null){this.currentRequest.abort();}}.bind(this),success:$.proxy(function(data){var self=this;var lastElement=false;var content=this._getResultWrapper();var sectionDropdown=this._getSectionHeader();$.each(data,function(index,element){if(!lastElement||(lastElement&&lastElement.type!==element.type)){sectionDropdown=this._getSectionHeader(element.type,data);}\nvar elementHtml=this._renderItem(element,index);sectionDropdown.append(elementHtml);if(!lastElement||(lastElement&&lastElement.type!==element.type)){content.append(sectionDropdown);}\nlastElement=element;}.bind(this));this.responseList.indexList=this.autoComplete.html(content).css(clonePosition).show().find(this.options.responseFieldElements+':visible');this._resetResponseList(false);this.element.removeAttr('aria-activedescendant');if(this.responseList.indexList.length){this._updateAriaHasPopup(true);}else{this._updateAriaHasPopup(false);}\nthis.responseList.indexList.on('click vclick',function(e){self.responseList.selected=$(this);if(self.responseList.selected.attr(\"href\")){window.location.href=self.responseList.selected.attr(\"href\");e.stopPropagation();return false;}\nself.searchForm.trigger('submit');}).on('mouseenter',function(e){self.responseList.indexList.removeClass(self.options.selectClass);$(this).addClass(self.options.selectClass);self.responseList.selected=$(e.target);self.element.attr('aria-activedescendant',$(e.target).attr('id'));}).on('mouseleave',function(e){$(this).removeClass(self.options.selectClass);self._resetResponseList(false);}).on('mouseout',function(){if(!self._getLastElement()&&self._getLastElement().hasClass(self.options.selectClass)){$(this).removeClass(self.options.selectClass);self._resetResponseList(false);}});},this),complete:$.proxy(function(){this.searchForm.removeClass('processing');},this)});}else{this._resetResponseList(true);this.autoComplete.hide();this._updateAriaHasPopup(false);this.element.removeAttr('aria-activedescendant');}},250),_onKeyDown:function(e){var keyCode=e.keyCode||e.which;switch(keyCode){case $.ui.keyCode.HOME:this._selectElement(this._getFirstVisibleElement());break;case $.ui.keyCode.END:this._selectElement(this._getLastElement());break;case $.ui.keyCode.ESCAPE:this._resetResponseList(true);this.autoComplete.hide();break;case $.ui.keyCode.ENTER:this._validateElement(e);break;case $.ui.keyCode.DOWN:this._navigateDown();break;case $.ui.keyCode.UP:this._navigateUp();break;default:return true;}},_validateElement:function(event){var selected=this.responseList.selected;if(selected&&selected.attr('href')!==undefined){window.location=selected.attr('href');event.preventDefault();return false;}\nthis.searchForm.trigger('submit');},_navigateDown:function(){if(this.responseList.indexList){if(!this.responseList.selected){this._getFirstVisibleElement().addClass(this.options.selectClass);this.responseList.selected=this._getFirstVisibleElement();}\nelse if(!this._getLastElement().hasClass(this.options.selectClass)){var nextElement=this._getNextElement();this.responseList.selected.removeClass(this.options.selectClass);this.responseList.selected=nextElement.addClass(this.options.selectClass);}else{this.responseList.selected.removeClass(this.options.selectClass);this._getFirstVisibleElement().addClass(this.options.selectClass);this.responseList.selected=this._getFirstVisibleElement();}\nthis._activateElement();}},_navigateUp:function(){if(this.responseList.indexList!==null){if(!this._getFirstVisibleElement().hasClass(this.options.selectClass)){var prevElement=this._getPrevElement();this.responseList.selected.removeClass(this.options.selectClass);this.responseList.selected=prevElement.addClass(this.options.selectClass);}else{this.responseList.selected.removeClass(this.options.selectClass);this._getLastElement().addClass(this.options.selectClass);this.responseList.selected=this._getLastElement();}\nthis._activateElement();}},_selectElement:function(element){element.addClass(this.options.selectClass);this.responseList.selected=element;},_activateElement:function(){this.element.val(this.responseList.selected.find('.qs-option-name').text());this.element.attr('aria-activedescendant',this.responseList.selected.attr('id'));},_getNextElement:function(){var nextElement=this.responseList.selected.next('dd');if(nextElement.length===0){nextElement=this.responseList.selected.parent('dl').next('dl').find('dd').first();}\nreturn nextElement;},_getPrevElement:function(){var prevElement=this.responseList.selected.prev('dd');this.responseList.selected.removeClass(this.options.selectClass);if(prevElement.length===0){prevElement=this.responseList.selected.parent('dl').prev('dl').find('dd').last();}\nreturn prevElement;},_blur:function(){this.element.on('blur',$.proxy(function(){if(!this.searchLabel.hasClass('active')){return;}\nsetTimeout($.proxy(function(){if(this.autoComplete.is(':hidden')){this.setActiveState(false);}else{this.element.trigger('focus');}\nthis.autoComplete.hide();$('#search').trigger('blur');this._updateAriaHasPopup(false);},this),250);},this));}});return $.smileEs.quickSearch;});","Smile_ElasticsuiteCore/js/validation/validator-mixin.min.js":"define(['jquery'],function($){'use strict';return function(validator){validator.addRule('not-zero',function(value,element){return parseInt(value)!==0;},$.mage.__('The value should be different to zero.'));return validator;}});","Magento_Captcha/js/captcha.min.js":"define(['jquery','jquery-ui-modules/widget'],function($){'use strict';$.widget('mage.captcha',{options:{refreshClass:'refreshing',reloadSelector:'.captcha-reload',imageSelector:'.captcha-img',imageLoader:''},_create:function(){this.element.on('click',this.options.reloadSelector,$.proxy(this.refresh,this));},refresh:function(){var imageLoader=this.options.imageLoader;if(imageLoader){this.element.find(this.options.imageSelector).attr('src',imageLoader);}\nthis.element.addClass(this.options.refreshClass);$.ajax({url:this.options.url,type:'post',dataType:'json',context:this,data:{'formId':this.options.type},success:function(response){if(response.imgSrc){this.element.find(this.options.imageSelector).attr('src',response.imgSrc);}},complete:function(){this.element.removeClass(this.options.refreshClass);}});}});return $.mage.captcha;});","Magento_Captcha/js/view/checkout/loginCaptcha.min.js":"define(['Magento_Captcha/js/view/checkout/defaultCaptcha','Magento_Captcha/js/model/captchaList','Magento_Customer/js/action/login','underscore'],function(defaultCaptcha,captchaList,loginAction,_){'use strict';return defaultCaptcha.extend({initialize:function(){var self=this,currentCaptcha;this._super();currentCaptcha=captchaList.getCaptchaByFormId(this.formId);if(currentCaptcha!=null){currentCaptcha.setIsVisible(true);this.setCurrentCaptcha(currentCaptcha);loginAction.registerLoginCallback(function(loginData){if(loginData['captcha_form_id']&&loginData['captcha_form_id']===self.formId&&self.isRequired()){_.defer(self.refresh.bind(self));}});}}});});","Magento_Captcha/js/view/checkout/defaultCaptcha.min.js":"define(['jquery','uiComponent','Magento_Captcha/js/model/captcha','Magento_Captcha/js/model/captchaList','Magento_Customer/js/customer-data','underscore'],function($,Component,Captcha,captchaList,customerData,_){'use strict';var captchaConfig;return Component.extend({defaults:{template:'Magento_Captcha/checkout/captcha'},dataScope:'global',currentCaptcha:null,subscribedFormIds:[],captchaValue:function(){return this.currentCaptcha.getCaptchaValue();},initialize:function(){this._super();if(window[this.configSource]&&window[this.configSource].captcha){captchaConfig=window[this.configSource].captcha;$.each(captchaConfig,function(formId,captchaData){var captcha;captchaData.formId=formId;captcha=Captcha(captchaData);this.checkCustomerData(formId,customerData.get('captcha')(),captcha);this.subscribeCustomerData(formId,captcha);captchaList.add(captcha);}.bind(this));}},checkCustomerData:function(formId,captchaData,captcha){if(!_.isEmpty(captchaData)&&!_.isEmpty(captchaData[formId])&&captchaData[formId].timestamp>captcha.timestamp){if(!captcha.isRequired()&&captchaData[formId].isRequired){captcha.refresh();}\ncaptcha.isRequired(captchaData[formId].isRequired);captcha.timestamp=captchaData[formId].timestamp;}},subscribeCustomerData:function(formId,captcha){if(this.subscribedFormIds.includes(formId)===false){this.subscribedFormIds.push(formId);customerData.get('captcha').subscribe(function(captchaData){this.checkCustomerData(formId,captchaData,captcha);}.bind(this));}},getIsLoading:function(){return this.currentCaptcha!==null?this.currentCaptcha.isLoading:false;},getCurrentCaptcha:function(){return this.currentCaptcha;},setCurrentCaptcha:function(captcha){this.currentCaptcha=captcha;},getFormId:function(){return this.currentCaptcha!==null?this.currentCaptcha.getFormId():null;},getIsVisible:function(){return this.currentCaptcha!==null?this.currentCaptcha.getIsVisible():false;},setIsVisible:function(flag){this.currentCaptcha.setIsVisible(flag);},isRequired:function(){return this.currentCaptcha!==null?this.currentCaptcha.getIsRequired():false;},setIsRequired:function(flag){this.currentCaptcha.setIsRequired(flag);},isCaseSensitive:function(){return this.currentCaptcha!==null?this.currentCaptcha.getIsCaseSensitive():false;},imageHeight:function(){return this.currentCaptcha!==null?this.currentCaptcha.getImageHeight():null;},getImageSource:function(){return this.currentCaptcha!==null?this.currentCaptcha.getImageSource():null;},refresh:function(){this.currentCaptcha.refresh();}});});","Magento_Captcha/js/model/captcha.min.js":"define(['jquery','ko','Magento_Captcha/js/action/refresh'],function($,ko,refreshAction){'use strict';return function(captchaData){return{formId:captchaData.formId,imageSource:ko.observable(captchaData.imageSrc),visibility:ko.observable(false),captchaValue:ko.observable(null),isRequired:ko.observable(captchaData.isRequired),isCaseSensitive:captchaData.isCaseSensitive,imageHeight:captchaData.imageHeight,refreshUrl:captchaData.refreshUrl,isLoading:ko.observable(false),timestamp:null,getFormId:function(){return this.formId;},setFormId:function(formId){this.formId=formId;},getIsVisible:function(){return this.visibility();},setIsVisible:function(flag){this.visibility(flag);},getIsRequired:function(){return this.isRequired();},setIsRequired:function(flag){this.isRequired(flag);},getIsCaseSensitive:function(){return this.isCaseSensitive;},setIsCaseSensitive:function(flag){this.isCaseSensitive=flag;},getImageHeight:function(){return this.imageHeight;},setImageHeight:function(height){this.imageHeight=height;},getImageSource:function(){return this.imageSource;},setImageSource:function(imageSource){this.imageSource(imageSource);},getRefreshUrl:function(){return this.refreshUrl;},setRefreshUrl:function(url){this.refreshUrl=url;},getCaptchaValue:function(){return this.captchaValue;},setCaptchaValue:function(value){this.captchaValue(value);},refresh:function(){var refresh,self=this;this.isLoading(true);refresh=refreshAction(this.getRefreshUrl(),this.getFormId(),this.getImageSource());$.when(refresh).done(function(){self.isLoading(false);});}};};});","Magento_Captcha/js/model/captchaList.min.js":"define(['jquery'],function($){'use strict';var captchaList=[];return{add:function(captcha){captchaList.push(captcha);},getCaptchaByFormId:function(formId){var captcha=null;$.each(captchaList,function(key,item){if(formId===item.formId){captcha=item;return false;}});return captcha;},getCaptchaList:function(){return captchaList;}};});","Magento_Captcha/js/action/refresh.min.js":"define(['jquery','mage/url'],function($,urlBuilder){'use strict';return function(refreshUrl,formId,imageSource){return $.ajax({url:urlBuilder.build(refreshUrl),type:'POST',data:JSON.stringify({'formId':formId}),global:false,contentType:'application/json'}).done(function(response){if(response.imgSrc){imageSource(response.imgSrc);}});};});","Magento_PageCache/js/form-key-provider.min.js":"define(function(){'use strict';return function(settings){var formKey,inputElements,inputSelector='input[name=\"form_key\"]';function setFormKeyCookie(value){var expires,secure,date=new Date(),cookiesConfig=window.cookiesConfig||{},isSecure=!!cookiesConfig.secure,samesite=cookiesConfig.samesite||'lax';date.setTime(date.getTime()+86400000);expires='; expires='+date.toUTCString();secure=isSecure?'; secure':'';samesite='; samesite='+samesite;document.cookie='form_key='+(value||'')+expires+secure+'; path=/'+samesite;}\nfunction getFormKeyCookie(){var cookie,i,nameEQ='form_key=',cookieArr=document.cookie.split(';');for(i=0;i<cookieArr.length;i++){cookie=cookieArr[i];while(cookie.charAt(0)===' '){cookie=cookie.substring(1,cookie.length);}\nif(cookie.indexOf(nameEQ)===0){return cookie.substring(nameEQ.length,cookie.length);}}\nreturn null;}\nfunction getFormKeyFromUI(){return document.querySelector(inputSelector).value;}\nfunction generateFormKeyString(){var result='',length=16,chars='0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';while(length--){result+=chars[Math.round(Math.random()*(chars.length-1))];}\nreturn result;}\nfunction initFormKey(){formKey=getFormKeyCookie();if(settings&&settings.isPaginationCacheEnabled&&!formKey){formKey=getFormKeyFromUI();setFormKeyCookie(formKey);}\nif(!formKey){formKey=generateFormKeyString();setFormKeyCookie(formKey);}\ninputElements=document.querySelectorAll(inputSelector);if(inputElements.length){Array.prototype.forEach.call(inputElements,function(element){element.setAttribute('value',formKey);});}}\ninitFormKey();};});","Magento_PageCache/js/page-cache.min.js":"define(['jquery','domReady','consoleLogger','Magento_PageCache/js/form-key-provider','jquery-ui-modules/widget','mage/cookies'],function($,domReady,consoleLogger,formKeyInit){'use strict';function generateRandomString(chars,length){var result='';length=length>0?length:1;while(length--){result+=chars[Math.round(Math.random()*(chars.length-1))];}\nreturn result;}\n$.fn.comments=function(){var elements=[],contents,elementContents;(function lookup(element){var iframeHostName;if($(element).prop('tagName')==='IFRAME'){iframeHostName=$('<a>').prop('href',$(element).prop('src')).prop('hostname');if(window.location.hostname!==iframeHostName){return[];}}\ncontents=function(elem){return $.map(elem,function(el){try{return el.nodeName.toLowerCase()==='iframe'?el.contentDocument||(el.contentWindow?el.contentWindow.document:[]):$.merge([],el.childNodes);}catch(e){consoleLogger.error(e);return[];}});};elementContents=contents($(element));$.each(elementContents,function(index,el){switch(el.nodeType){case 1:lookup(el);break;case 8:elements.push(el);break;case 9:lookup($(el).find('body'));break;}});})(this);return elements;};$.widget('mage.formKey',{options:{inputSelector:'input[name=\"form_key\"]',allowedCharacters:'0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ',length:16},_create:function(){var formKey=$.mage.cookies.get('form_key'),options={secure:window.cookiesConfig?window.cookiesConfig.secure:false};if(!formKey){formKey=generateRandomString(this.options.allowedCharacters,this.options.length);$.mage.cookies.set('form_key',formKey,options);}\n$(this.options.inputSelector).val(formKey);}});$.widget('mage.pageCache',{options:{url:'/',patternPlaceholderOpen:/^ BLOCK (.+) $/,patternPlaceholderClose:/^ \\/BLOCK (.+) $/,versionCookieName:'private_content_version',handles:[]},_create:function(){var placeholders,version=$.mage.cookies.get(this.options.versionCookieName);if(!version){return;}\nplaceholders=this._searchPlaceholders(this.element.comments());if(placeholders&&placeholders.length){this._ajax(placeholders,version);}},_searchPlaceholders:function(elements){var placeholders=[],tmp={},ii,len,el,matches,name;if(!(elements&&elements.length)){return placeholders;}\nfor(ii=0,len=elements.length;ii<len;ii++){el=elements[ii];matches=this.options.patternPlaceholderOpen.exec(el.nodeValue);name=null;if(matches){name=matches[1];tmp[name]={name:name,openElement:el};}else{matches=this.options.patternPlaceholderClose.exec(el.nodeValue);if(matches){name=matches[1];if(tmp[name]){tmp[name].closeElement=el;placeholders.push(tmp[name]);delete tmp[name];}}}}\nreturn placeholders;},_replacePlaceholder:function(placeholder,html){var startReplacing=false,prevSibling=null,parent,contents,yy,len,element;if(!placeholder||!html){return;}\nparent=$(placeholder.openElement).parent();contents=parent.contents();for(yy=0,len=contents.length;yy<len;yy++){element=contents[yy];if(element==placeholder.openElement){startReplacing=true;}\nif(startReplacing){$(element).remove();}else if(element.nodeType!=8){prevSibling=element;}\nif(element==placeholder.closeElement){break;}}\nif(prevSibling){$(prevSibling).after(html);}else{$(parent).prepend(html);}\n$(parent).trigger('contentUpdated');},_ajax:function(placeholders,version){var ii,data={blocks:[],handles:this.options.handles,originalRequest:this.options.originalRequest,version:version};for(ii=0;ii<placeholders.length;ii++){data.blocks.push(placeholders[ii].name);}\ndata.blocks=JSON.stringify(data.blocks.sort());data.handles=JSON.stringify(data.handles);data.originalRequest=JSON.stringify(data.originalRequest);$.ajax({url:this.options.url,data:data,type:'GET',cache:true,dataType:'json',context:this,success:function(response){var placeholder,i;for(i=0;i<placeholders.length;i++){placeholder=placeholders[i];if(response.hasOwnProperty(placeholder.name)){this._replacePlaceholder(placeholder,response[placeholder.name]);}}}});}});domReady(function(){formKeyInit();});return{'pageCache':$.mage.pageCache,'formKey':$.mage.formKey};});","Magento_Multishipping/js/multi-shipping-balance.min.js":"define(['jquery','mage/dataPost','jquery-ui-modules/widget'],function($,dataPost){'use strict';$.widget('mage.multiShippingBalance',{options:{changeUrl:''},_create:function(){this.element.on('change',$.proxy(function(event){dataPost().postData({action:this.options.changeUrl,data:{useBalance:+$(event.target).is(':checked')}});},this));}});return $.mage.multiShippingBalance;});","Magento_Multishipping/js/payment.min.js":"define(['jquery','mage/template','Magento_Ui/js/modal/alert','jquery-ui-modules/widget','mage/translate'],function($,mageTemplate,alert){'use strict';$.widget('mage.payment',{options:{continueSelector:'#payment-continue',methodsContainer:'#payment-methods',minBalance:0,tmpl:'<input id=\"hidden-free\" type=\"hidden\" name=\"payment[method]\" value=\"free\">'},_create:function(){this.element.find('dd [name^=\"payment[\"]').prop('disabled',true).end().on('click',this.options.continueSelector,$.proxy(this._submitHandler,this)).on('updateCheckoutPrice',$.proxy(function(event,data){if(data.price){this.options.checkoutPrice+=data.price;}\nif(data.totalPrice){data.totalPrice=this.options.checkoutPrice;}\nif(this.options.checkoutPrice<=this.options.minBalance){this._disablePaymentMethods();}else{this._enablePaymentMethods();}},this)).on('click','dt input:radio',$.proxy(this._paymentMethodHandler,this));if(this.options.checkoutPrice<this.options.minBalance){this._disablePaymentMethods();}else{this._enablePaymentMethods();}},_paymentMethodHandler:function(e){var element=$(e.target),parentsDl=element.closest('dl');parentsDl.find('dt input:radio').prop('checked',false);parentsDl.find('dd').addClass('no-display').end().find('.items').hide().find('[name^=\"payment[\"]').prop('disabled',true);element.prop('checked',true).parent().next('dd').removeClass('no-display').find('.items').show().find('[name^=\"payment[\"]').prop('disabled',false);},_validatePaymentMethod:function(){var methods=this.element.find('[name^=\"payment[\"]'),isValid=false;if(methods.length===0){alert({content:$.mage.__('We can\\'t complete your order because you don\\'t have a payment method set up.')});}else if(this.options.checkoutPrice<=this.options.minBalance){isValid=true;}else if(methods.filter('input:radio:checked').length){isValid=true;}else{alert({content:$.mage.__('Please choose a payment method.')});}\nreturn isValid;},_disablePaymentMethods:function(){var tmpl=mageTemplate(this.options.tmpl,{data:{}});this.element.find('input[name=\"payment[method]\"]').prop('disabled',true).end().find('input[id^=\"use\"][name^=\"payment[use\"]:not(:checked)').prop('disabled',true).parent().hide();this.element.find('[name=\"payment[method]\"][value=\"free\"]').parent('dt').remove();this.element.find(this.options.methodsContainer).hide().find('[name^=\"payment[\"]').prop('disabled',true);$(tmpl).appendTo(this.element);},_enablePaymentMethods:function(){this.element.find('input[name=\"payment[method]\"]').prop('disabled',false).end().find('dt input:radio:checked').trigger('click').end().find('input[id^=\"use\"][name^=\"payment[use\"]:not(:checked)').prop('disabled',false).parent().show();this.element.find(this.options.methodsContainer).show();},_getSelectedPaymentMethod:function(){return this.element.find('input[name=\\'payment[method]\\']:checked');},_submitHandler:function(e){var currentMethod,submitButton;e.preventDefault();if(this._validatePaymentMethod()){currentMethod=this._getSelectedPaymentMethod();submitButton=currentMethod.parent().next('dd').find('button[type=submit]');if(submitButton.length){submitButton.first().trigger('click');}else{this.element.trigger('submit');}}}});return $.mage.payment;});","Magento_Multishipping/js/overview.min.js":"define(['jquery','jquery-ui-modules/widget','mage/translate'],function($){'use strict';$.widget('mage.orderOverview',{options:{opacity:0.5,pleaseWaitLoader:'span.please-wait',placeOrderSubmit:'button[type=\"submit\"]',agreements:'.checkout-agreements'},_create:function(){this.element.on('submit',$.proxy(this._showLoader,this));},_showLoader:function(){if($(this.options.agreements).find('input[type=\"checkbox\"]:not(:checked)').length>0){return false;}\nthis.element.find(this.options.pleaseWaitLoader).show().end().find(this.options.placeOrderSubmit).prop('disabled',true).css('opacity',this.options.opacity);return true;}});return $.mage.orderOverview;});","Magento_Multishipping/js/multi-shipping.min.js":"define(['jquery','Magento_Customer/js/customer-data','jquery-ui-modules/widget'],function($,customerData){'use strict';$.widget('mage.multiShipping',{options:{itemsQty:0,addNewAddressBtn:'button[data-role=\"add-new-address\"]',addNewAddressFlag:'#add_new_address_flag',canContinueBtn:'button[data-role=\"can-continue\"]',canContinueFlag:'#can_continue_flag'},_create:function(){this._prepareCartData();$(this.options.addNewAddressBtn).on('click',$.proxy(this._addNewAddress,this));$(this.options.canContinueBtn).on('click',$.proxy(this._canContinue,this));},_prepareCartData:function(){var cartData=customerData.get('cart');if(cartData()['summary_count']!==this.options.itemsQty){customerData.reload(['cart'],false);}},_addNewAddress:function(){$(this.options.addNewAddressFlag).val(1);this.element.submit();},_canContinue:function(event){$(this.options.canContinueFlag).val(parseInt($(event.currentTarget).data('flag'),10));}});return $.mage.multiShipping;});","js/navigation-menu.min.js":"define(['jquery','matchMedia','mage/template','mage/dropdowns','mage/terms'],function($,mediaCheck,mageTemplate){'use strict';$.widget('mage.navigationMenu',{options:{itemsContainer:'> ul',topLevel:'li.level0',topLevelSubmenu:'> .submenu',topLevelHoverClass:'hover',expandedTopLevel:'.more',hoverInTimeout:300,hoverOutTimeout:500,submenuAnimationSpeed:200,collapsable:true,collapsableDropdownTemplate:'<script type=\"text/x-magento-template\">'+'<li class=\"level0 level-top more parent\">'+'<div class=\"submenu\">'+'<ul><%= elems %></ul>'+'</div>'+'</li>'+'</script>'},_create:function(){this.itemsContainer=$(this.options.itemsContainer,this.element);this.topLevel=$(this.options.topLevel,this.element);this.topLevelSubmenu=$(this.options.topLevelSubmenu,this.topLevel);this._bind();},_init:function(){if(this.options.collapsable){setTimeout($.proxy(function(){this._checkToCollapseOrExpand();},this),100);}},_bind:function(){this._on({'mouseenter > ul > li.level0':function(e){if(!this.entered){this.timeoutId&&clearTimeout(this.timeoutId);this.timeoutId=setTimeout($.proxy(function(){this._openSubmenu(e);},this),this.options.hoverInTimeout);this.entered=true;}},'mouseleave > ul > li.level0':function(e){this.entered=null;this.timeoutId&&clearTimeout(this.timeoutId);this.timeoutId=setTimeout($.proxy(function(){this._closeSubmenu(e.currentTarget);},this),this.options.hoverOutTimeout);},'click':function(e){e.stopPropagation();}});$(document).on('click.hideMenu',$.proxy(function(){var isOpened=this.topLevel.filter(function(){return $(this).data('opened');});if(isOpened){this._closeSubmenu(null,false);}},this));$(window).on('resize',$.proxy(function(){this.timeoutOnResize&&clearTimeout(this.timeoutOnResize);this.timeoutOnResize=setTimeout($.proxy(function(){if(this.options.collapsable){if($(this.options.expandedTopLevel,this.element).length){this._expandMenu();}\nthis._checkToCollapseOrExpand();}},this),300);},this));},_openSubmenu:function(e){var menuItem=e.currentTarget;if(!$(menuItem).data('opened')){this._closeSubmenu(menuItem,true,true);$(this.options.topLevelSubmenu,menuItem).slideDown(this.options.submenuAnimationSpeed,$.proxy(function(){$(menuItem).addClass(this.options.topLevelHoverClass);$(menuItem).data('opened',true);},this));}else if($(e.target).closest(this.options.topLevel)){$(e.target).addClass(this.options.topLevelHoverClass).siblings(this.options.topLevel).removeClass(this.options.topLevelHoverClass);}},_closeSubmenu:function(menuItem,excludeCurrent,fast){var topLevel=$(this.options.topLevel,this.element),activeSubmenu=$(this.options.topLevelSubmenu,menuItem||null);$(this.options.topLevelSubmenu,topLevel).filter(function(){return excludeCurrent?$(this).not(activeSubmenu):true;}).slideUp(fast?0:this.options.submenuAnimationSpeed);topLevel.removeClass(this.options.topLevelHoverClass).data('opened',false);},_checkToCollapseOrExpand:function(){var navWidth,totalWidth,startCollapseIndex;if($('html').hasClass('lt-640')||$('html').hasClass('w-640')){return;}\nnavWidth=this.itemsContainer.width();totalWidth=0;startCollapseIndex=0;$.each($(this.options.topLevel,this.element),function(index,item){totalWidth+=$(item).outerWidth(true);if(totalWidth>navWidth&&!startCollapseIndex){startCollapseIndex=index-2;}});this[startCollapseIndex?'_collapseMenu':'_expandMenu'](startCollapseIndex);},_collapseMenu:function(startCollapseIndex){this.elemsToCollapse=this.topLevel.filter(function(index){return index>startCollapseIndex;});this.elemsToCollapseClone=$('<div></div>').append(this.elemsToCollapse.clone()).html();this.collapsableDropdown=$(mageTemplate(this.options.collapsableDropdownTemplate,{elems:this.elemsToCollapseClone}));this.itemsContainer.append(this.collapsableDropdown);this.elemsToCollapse.detach();},_expandMenu:function(){this.elemsToCollapse&&this.elemsToCollapse.appendTo(this.itemsContainer);this.collapsableDropdown&&this.collapsableDropdown.remove();},_destroy:function(){this._expandMenu();}});$.widget('mage.navigationMenu',$.mage.navigationMenu,{options:{parentLevel:'> ul > li.level0',submenuAnimationSpeed:150,submenuContiniumEffect:false},_init:function(){this._super();this._applySubmenuStyles();},_applySubmenuStyles:function(){$(this.options.topLevelSubmenu,$(this.options.topLevel,this.element)).removeAttr('style');$(this.options.topLevelSubmenu,$(this.options.parentLevel,this.element)).css({display:'block',height:0,overflow:'hidden'});},_openSubmenu:function(e){var menuItem=e.currentTarget,submenu=$(this.options.topLevelSubmenu,menuItem),openedItems=$(this.options.topLevel,this.element).filter(function(){return $(this).data('opened');});if(submenu.length){this.heightToAnimate=$(this.options.itemsContainer,submenu).outerHeight(true);if(openedItems.length){this._closeSubmenu(menuItem,true,this.heightToAnimate,$.proxy(function(){submenu.css({height:'auto'});$(menuItem).addClass(this.options.topLevelHoverClass);},this),e);}else{submenu.animate({height:this.heightToAnimate},this.options.submenuAnimationSpeed,$.proxy(function(){$(menuItem).addClass(this.options.topLevelHoverClass);},this));}\n$(menuItem).data('opened',true);}else{this._closeSubmenu(menuItem);}},_closeSubmenu:function(menuItem,excludeCurrent,heightToAnimate,callback){var topLevel=$(this.options.topLevel,this.itemsContainer),prevOpenedItem,prevOpenedSubmenu;if(!excludeCurrent){$(this.options.topLevelSubmenu,$(this.options.parentLevel,this.element)).animate({height:0});topLevel.data('opened',false).removeClass(this.options.topLevelHoverClass);}else{prevOpenedItem=topLevel.filter(function(){return $(this).data('opened');});prevOpenedSubmenu=$(this.options.topLevelSubmenu,prevOpenedItem);prevOpenedSubmenu.animate({height:heightToAnimate},this.options.submenuAnimationSpeed,'linear',function(){$(this).css({height:0});callback&&callback();});prevOpenedItem.data('opened',false).removeClass(this.options.topLevelHoverClass);}},_collapseMenu:function(){this._superApply(arguments);this._applySubmenuStyles();}});$.widget('mage.navigationMenu',$.mage.navigationMenu,{options:{responsive:false,origNavPlaceholder:'.page-header',mainContainer:'body',pageWrapper:'.page-wrapper',openedMenuClass:'opened',toggleActionPlaceholder:'.block-search',itemWithSubmenu:'li.parent',titleWithSubmenu:'li.parent > a',submenu:'li.parent > .submenu',toggleActionTemplate:'<script type=\"text/x-magento-template\">'+'<span data-action=\"toggle-nav\" class=\"action toggle nav\">Toggle Nav</span>'+'</script>',submenuActionsTemplate:'<script type=\"text/x-magento-template\">'+'<li class=\"action all\">'+'<a href=\"<%= categoryURL %>\"><span>All <%= category %></span></a>'+'</li>'+'</script>',navigationSectionsWrapperTemplate:'<script type=\"text/x-magento-template\">'+'<dl class=\"navigation-tabs\" data-sections=\"tabs\">'+'</dl>'+'</script>',navigationItemWrapperTemplate:'<script type=\"text/x-magento-template\">'+'<dt class=\"item title <% if (active) { %>active<% } %>\" data-section=\"title\">'+'<a class=\"switch\" data-toggle=\"switch\" href=\"#TODO\"><%= title %></a>'+'</dt>'+'<dd class=\"item content <% if (active) { %>active<%}%>\" data-section=\"content\">'+'</dd>'+'</script>'},_init:function(){this._super();this.mainContainer=$(this.options.mainContainer);this.pageWrapper=$(this.options.pageWrapper);this.toggleAction=$(mageTemplate(this.options.toggleActionTemplate,{}));if(this.options.responsive){mediaCheck({media:'(min-width: 768px)',entry:$.proxy(function(){this._toggleDesktopMode();},this),exit:$.proxy(function(){this._toggleMobileMode();},this)});}},_bind:function(){this._super();this._bindDocumentEvents();},_bindDocumentEvents:function(){if(!this.eventsBound){$(document).on('click.toggleMenu','.action.toggle.nav',$.proxy(function(e){if($(this.element).data('opened')){this._hideMenu();}else{this._showMenu();}\ne.stopPropagation();this.mobileNav.scrollTop(0);this._fixedBackLink();},this)).on('click.hideMenu',this.options.pageWrapper,$.proxy(function(){if($(this.element).data('opened')){this._hideMenu();this.mobileNav.scrollTop(0);this._fixedBackLink();}},this)).on('click.showSubmenu',this.options.titleWithSubmenu,$.proxy(function(e){this._showSubmenu(e);e.preventDefault();this.mobileNav.scrollTop(0);this._fixedBackLink();},this)).on('click.hideSubmenu','.action.back',$.proxy(function(e){this._hideSubmenu(e);this.mobileNav.scrollTop(0);this._fixedBackLink();},this));this.eventsBound=true;}},_showMenu:function(){$(this.element).data('opened',true);this.mainContainer.add('html').addClass(this.options.openedMenuClass);},_hideMenu:function(){$(this.element).data('opened',false);this.mainContainer.add('html').removeClass(this.options.openedMenuClass);},_showSubmenu:function(e){var submenu;$(e.currentTarget).addClass('action back');submenu=$(e.currentTarget).siblings('.submenu');submenu.addClass('opened');},_hideSubmenu:function(e){var submenuSelector='.submenu',submenu=$(e.currentTarget).next(submenuSelector);$(e.currentTarget).removeClass('action back');submenu.removeClass('opened');},_renderSubmenuActions:function(){$.each($(this.options.itemWithSubmenu),$.proxy(function(index,item){var actions=$(mageTemplate(this.options.submenuActionsTemplate,{category:$('> a > span',item).text(),categoryURL:$('> a',item).attr('href')})),submenu=$('> .submenu',item),items=$('> ul',submenu);items.prepend(actions);},this));},_toggleMobileMode:function(){this._expandMenu();$(this.options.topLevelSubmenu,$(this.options.topLevel,this.element)).removeAttr('style');this.toggleAction.insertBefore(this.options.toggleActionPlaceholder);this.mobileNav=$(this.element).detach().clone();this.mainContainer.prepend(this.mobileNav);this.mobileNav.find('> ul').addClass('nav');this._insertExtraItems();this._wrapItemsInSections();this.mobileNav.scroll($.proxy(function(){this._fixedBackLink();},this));this._renderSubmenuActions();this._bindDocumentEvents();},_toggleDesktopMode:function(){this.mobileNav&&this.mobileNav.remove();this.toggleAction.detach();$(this.element).insertAfter(this.options.origNavPlaceholder);$(document).off('click.toggleMenu','.action.toggle.nav').off('click.hideMenu',this.options.pageWrapper).off('click.showSubmenu',this.options.titleWithSubmenu).off('click.hideSubmenu','.action.back');this.eventsBound=false;this._applySubmenuStyles();},_insertExtraItems:function(){var settings,footerSettings,account;if($('.header.panel .switcher').length){settings=$('.header.panel .switcher').clone().addClass('settings');this.mobileNav.prepend(settings);}\nif($('.footer .switcher').length){footerSettings=$('.footer .switcher').clone().addClass('settings');this.mobileNav.prepend(footerSettings);}\nif($('.header.panel .header.links li').length){account=$('.header.panel > .header.links').clone().addClass('account');this.mobileNav.prepend(account);}},_wrapItemsInSections:function(){var account=$('> .account',this.mobileNav),settings=$('> .settings',this.mobileNav),nav=$('> .nav',this.mobileNav),navigationSectionsWrapper=$(mageTemplate(this.options.navigationSectionsWrapperTemplate,{})),navigationItemWrapper;this.mobileNav.append(navigationSectionsWrapper);if(nav.length){navigationItemWrapper=$(mageTemplate(this.options.navigationItemWrapperTemplate,{title:'Menu'}));navigationSectionsWrapper.append(navigationItemWrapper);navigationItemWrapper.eq(1).append(nav);}\nif(account.length){navigationItemWrapper=$(mageTemplate(this.options.navigationItemWrapperTemplate,{title:'Account'}));navigationSectionsWrapper.append(navigationItemWrapper);navigationItemWrapper.eq(1).append(account);}\nif(settings.length){navigationItemWrapper=$(mageTemplate(this.options.navigationItemWrapperTemplate,{title:'Settings'}));navigationSectionsWrapper.append(navigationItemWrapper);navigationItemWrapper.eq(1).append(settings);}\nnavigationSectionsWrapper.addClass('navigation-tabs-'+navigationSectionsWrapper.find('[data-section=\"title\"]').length);navigationSectionsWrapper.terms();},_fixedBackLink:function(){var linksBack=this.mobileNav.find('.submenu .action.back'),linkBack=this.mobileNav.find('.submenu.opened > ul > .action.back').last(),subMenu,navOffset,linkBackHeight;linksBack.removeClass('fixed');if(linkBack.length){subMenu=linkBack.parent();navOffset=this.mobileNav.find('.nav').position().top;linkBackHeight=linkBack.height();if(navOffset<=0){linkBack.addClass('fixed');subMenu.css({paddingTop:linkBackHeight});}else{linkBack.removeClass('fixed');subMenu.css({paddingTop:0});}}}});return $.mage.navigationMenu;});","js/mgs_theme.min.js":"require(['jquery'],function($){var $_miniCart=$(\"header.page-header .minicart-wrapper .block-minicart\");var $_loginForm=$(\"header.page-header .header-top-links .login-form\");var $_settingSite=$(\"header.page-header .setting-site .setting-site-content\");var $_wishlistHeader=$(\"header.page-header .top-wishlist .block-wishlist\");$(document).ready(function(){$(document).on(\"click\",\".header-top-links > .actions\",function(e){e.preventDefault();if($('.header-area').hasClass('myaccount-slide')){disableBodyScroll();}\n$('.header-top-links').toggleClass('active');if($('.header-top-links').hasClass('active')&&$('.header-top-links .captcha-reload').length){$('.header-top-links').find('.captcha-reload').trigger('click');}});$(document).on(\"click\",\"#close-myaccount\",function(e){$(this).parents('.header-top-links').removeClass('active');if($('header-area').hasClass('myaccount-slide')){activeBodyScroll(false);}});$(document).on(\"click\",\"#close-myaccount\",function(e){$(this).parents('.header-top-links').removeClass('active');if($('header-area').hasClass('myaccount-slide')){activeBodyScroll(false);}});$(document).on(\"click\",\".minicart-wrapper .details-qty .minus\",function(e){var $itemQty=parseInt($(this).parent().find('.cart-item-qty').attr('data-item-qty'));var $val=parseInt($(this).parent().find('.cart-item-qty').val());var $valChange=$val-1;if($val>1){$(this).parent().find('.cart-item-qty').val($valChange);if($itemQty!=$valChange){$(this).parents('.details-qty').find('.update-cart-item').show('fade',300);}else{$(this).parents('.details-qty').find('.update-cart-item').hide('fade',300);}}});$(document).on(\"click\",\".minicart-wrapper .details-qty .plus\",function(e){var $val=parseInt($(this).parent().find('.cart-item-qty').val());var $itemQty=parseInt($(this).parent().find('.cart-item-qty').attr('data-item-qty'));var $valChange=$val+1;$(this).parent().find('.cart-item-qty').val($valChange);if($itemQty!=$valChange){$(this).parents('.details-qty').find('.update-cart-item').show('fade',300);}else{$(this).parents('.details-qty').find('.update-cart-item').hide('fade',300);}});$(document).on(\"click\",\".setting-site .actions .action.setting\",function(e){disableBodyScroll();$(this).parents('.setting-site').addClass('active');});$(document).on(\"click\",\"#close-setting-site\",function(e){$('header.page-header .setting-site').removeClass('active');activeBodyScroll(false);});if($('.active-sticky:not(.header7)').length){var headerHeight=$('.active-sticky:not(.header7)').height();$(window).on('scroll',function(){var st=$(this).scrollTop();if(st>headerHeight){$('.active-sticky').addClass('scrolling');}else{$('.active-sticky').removeClass('scrolling');}});}\n$(\".footer-title\").on('click',function(){if($(window).width()<767){$(this).parent().toggleClass('active');$(this).parent().find('ul').slideToggle();}});$(document).on(\"click\",\".megamenu_action_mb\",function(e){if($('header.page-header').hasClass('active-menu')){$('header.page-header').removeClass('active-menu');activeBodyScroll(true);}else{$('header.page-header').addClass('active-menu');disableBodyScroll();}});$('.nav-main-menu .static-menu li > .toggle-menu a').on('click',function(){$(this).toggleClass('active');$(this).parent().parent().find('> ul').slideToggle();});$(document).on(\"click\",\".close-nav-button\",function(e){$('header.page-header').removeClass('active-menu');activeBodyScroll(true);});$('header.page-header button.action.nav-tg').on('click',function(){if($('html').hasClass('nav-open')){$('html').removeClass('nav-open');setTimeout(function(){$('html').removeClass('nav-before-open');},300);}else{$('html').addClass('nav-before-open');setTimeout(function(){$('html').addClass('nav-open');},42);}});$('.close-nav-button').on('click',function(){$('html').removeClass('nav-open');setTimeout(function(){$('html').removeClass('nav-before-open');},300);});$(document).on(\"click\",\"#cart-top-action\",function(e){if($('.header-area').hasClass('minicart-slide')){$('.table-icon-menu .minicart-wrapper .action.showcart').trigger('click');}else{window.location.href=$('.table-icon-menu .minicart-wrapper .action.showcart').attr('href');}});$(document).on(\"click\",\"#js_mobile_tabs .action-mb-tabs\",function(e){if($('html').hasClass('nav-open')){$('html').removeClass('nav-open');setTimeout(function(){$('html').removeClass('nav-before-open');},300);}else{$('html').addClass('nav-before-open');setTimeout(function(){$('html').addClass('nav-open');},42);var $el_action=$(this).attr('id');switch($el_action){case\"my-account-action\":$(\".menu-wrapper .nav-tabs li a\").each(function(){$(this).parent('li').removeClass(\"active\");$(\".megamenu-content .tab-pane\").removeClass(\"active\");$('[href=\"#main-Accountcontent\"]').parent().addClass('active');$(\".megamenu-content #main-Accountcontent\").addClass('active');});break;case\"setting-web-action\":$(\".menu-wrapper .nav-tabs li a \").each(function(){$(this).parent('li').removeClass(\"active\");$(\".megamenu-content .tab-pane\").removeClass(\"active\");$('[href=\"#main-Settingcontent\"]').parent().addClass('active');$(\".megamenu-content #main-Settingcontent\").addClass('active');});break;}}});$('.menu-content-mb .data.item.title li a').on('click',function(event){event.preventDefault();$('.menu-content-mb .data.item.title li').removeClass('active');$('.menu-content-mb .data.item.tab-content > .tab-pane').removeClass('active');$(this).parent().addClass('active');var id=$(this).attr('href');$(id).addClass('active');});if($('body').hasClass('parallax-footer')){var footerHeight=$('.page-footer').height();$('body').css('padding-bottom',footerHeight);}\nif($(\".products-grid .product-item-info .actions-link a\").hasClass('quickview-mobile')){$(\".products-grid .product-item-info\").each(function(){if($(window).width()<768){$(this).find(\".actions-secondary > a.action.quickview\").appendTo($(this).find(\".action-mobile\"));}else{$(this).find(\".action-mobile > a.action.quickview\").appendTo($(this).find(\".actions-secondary\"));}});$(window).on(\"resize\",function(){$(\".products-grid .product-item-info\").each(function(){if($(window).width()<768){$(this).find(\".actions-secondary > a.action.quickview\").appendTo($(this).find(\".action-mobile\"));}else{$(this).find(\".action-mobile > a.action.quickview\").appendTo($(this).find(\".actions-secondary\"));}});});}\n$(document).on(\"click\",\"#close-minicart\",function(e){$('.table-icon-menu .minicart-wrapper .action.showcart').trigger('click');});if($(window).width()<=767){$(\".metro-new-sale-off\").prependTo(\".metro-product-middle\");$(\".metro-third-product\").appendTo(\".metro-product-top>.frame>.line>div:nth-child(1)>.line \");}});$(document).on('mouseup',function(e){var container=$(\".top-wishlist\");if(container.is(e.target)&&container.has(e.target).length===0){container.removeClass('active');}});function disableBodyScroll(){$('body').addClass('fixed-content');}\nfunction activeBodyScroll($status){if(!$status){$('body').removeClass('fixed-content');}else{if(!$('.page-header .header-top-links').hasClass('active')&&!$('.page-header .top-wishlist').hasClass('active')&&!$('.page-header .setting-site').hasClass('active')&&!$('.page-header').hasClass('active-menu')){$('body').removeClass('fixed-content');}}}\n$(window).on('resize',function(){if($(window).width()<=767){$(\".metro-new-sale-off\").prependTo(\".metro-product-middle\");$(\".metro-third-product\").appendTo(\".metro-product-top>.frame>.line>div:nth-child(1)>.line \");}\nvar footerHeight=$('.page-footer').height();if($('body').hasClass('parallax-footer')){$('body').css('padding-bottom',footerHeight);}});});","Magento_ReCaptchaFrontendUi/js/reCaptcha.min.js":"define(['uiComponent','jquery','ko','underscore','Magento_ReCaptchaFrontendUi/js/registry','Magento_ReCaptchaFrontendUi/js/reCaptchaScriptLoader','Magento_ReCaptchaFrontendUi/js/nonInlineReCaptchaRenderer'],function(Component,$,ko,_,registry,reCaptchaLoader,nonInlineReCaptchaRenderer){'use strict';return Component.extend({defaults:{template:'Magento_ReCaptchaFrontendUi/reCaptcha',reCaptchaId:'recaptcha'},initialize:function(){this._super();this._loadApi();},_loadApi:function(){if(this._isApiRegistered!==undefined){if(this._isApiRegistered===true){$(window).trigger('recaptchaapiready');}\nreturn;}\nthis._isApiRegistered=false;window.globalOnRecaptchaOnLoadCallback=function(){this._isApiRegistered=true;$(window).trigger('recaptchaapiready');}.bind(this);reCaptchaLoader.addReCaptchaScriptTag();},getIsInvisibleRecaptcha:function(){if(this.settings===void 0){return false;}\nreturn this.settings.invisible;},reCaptchaCallback:function(token){if(this.getIsInvisibleRecaptcha()){this.tokenField.value=token;this.$parentForm.submit();}},initCaptcha:function(){var $parentForm,$wrapper,$reCaptcha,widgetId,parameters;if(this.captchaInitialized||this.settings===void 0){return;}\nthis.captchaInitialized=true;$wrapper=$('#'+this.getReCaptchaId()+'-wrapper');$reCaptcha=$wrapper.find('.g-recaptcha');$reCaptcha.attr('id',this.getReCaptchaId());$parentForm=$wrapper.parents('form');if(this.settings===undefined){return;}\nparameters=_.extend({'callback':function(token){this.reCaptchaCallback(token);this.validateReCaptcha(true);}.bind(this),'expired-callback':function(){this.validateReCaptcha(false);}.bind(this)},this.settings.rendering);if(parameters.size==='invisible'&&parameters.badge!=='inline'){nonInlineReCaptchaRenderer.add($reCaptcha,parameters);}\nwidgetId=grecaptcha.render(this.getReCaptchaId(),parameters);this.initParentForm($parentForm,widgetId);registry.ids.push(this.getReCaptchaId());registry.captchaList.push(widgetId);registry.tokenFields.push(this.tokenField);},initParentForm:function(parentForm,widgetId){var listeners;if(this.getIsInvisibleRecaptcha()&&parentForm.length>0){parentForm.submit(function(event){if(!this.tokenField.value){grecaptcha.execute(widgetId);event.preventDefault(event);event.stopImmediatePropagation();}}.bind(this));listeners=$._data(parentForm[0],'events').submit;listeners.unshift(listeners.pop());this.tokenField=$('<input type=\"text\" name=\"token\" style=\"display: none\" />')[0];this.$parentForm=parentForm;parentForm.append(this.tokenField);}else{this.tokenField=null;}\nif($('#send2').length>0){$('#send2').prop('disabled',false);}},validateReCaptcha:function(state){if(!this.getIsInvisibleRecaptcha()){return $(document).find('input[type=checkbox].required-captcha').prop('checked',state);}},renderReCaptcha:function(){if(window.grecaptcha&&window.grecaptcha.render){this.initCaptcha();}else{$(window).on('recaptchaapiready',function(){this.initCaptcha();}.bind(this));}},getReCaptchaId:function(){return this.reCaptchaId;}});});","Magento_ReCaptchaFrontendUi/js/nonInlineReCaptchaRenderer.min.js":"define(['jquery','jquery/z-index'],function($){'use strict';var reCaptchaEntities=[],initialized=false,rendererRecaptchaId='recaptcha-invisible',rendererReCaptcha=null;return{add:function(reCaptchaEntity,parameters){if(!initialized){this.init();grecaptcha.render(rendererRecaptchaId,parameters);setInterval(this.resolveVisibility,100);initialized=true;}\nreCaptchaEntities.push(reCaptchaEntity);},resolveVisibility:function(){reCaptchaEntities.some(function(entity){return entity.is(':visible')&&(entity.closest('[data-role=\\'modal\\']').length===0||entity.zIndex()>900);})?rendererReCaptcha.show():rendererReCaptcha.hide();},init:function(){rendererReCaptcha=$('<div/>',{'id':rendererRecaptchaId});rendererReCaptcha.hide();$('body').append(rendererReCaptcha);}};});","Magento_ReCaptchaFrontendUi/js/registry.min.js":"define(['ko'],function(ko){'use strict';return{ids:ko.observableArray([]),captchaList:ko.observableArray([]),tokenFields:ko.observableArray([])};});","Magento_ReCaptchaFrontendUi/js/ui-messages-mixin.min.js":"define(['Magento_ReCaptchaFrontendUi/js/registry'],function(registry){'use strict';return function(originalComponent){return originalComponent.extend({initialize:function(){this._super();this.messageContainer.errorMessages.subscribe(function(){var\ni,captchaList=registry.captchaList(),tokenFieldsList=registry.tokenFields();for(i=0;i<captchaList.length;i++){grecaptcha.reset(captchaList[i]);if(tokenFieldsList[i]){tokenFieldsList[i].value='';}}},null,'arrayChange');return this;}});};});","Magento_ReCaptchaFrontendUi/js/reCaptchaScriptLoader.min.js":"define([],function(){'use strict';var scriptTagAdded=false;return{addReCaptchaScriptTag:function(){var element,scriptTag;if(!scriptTagAdded){element=document.createElement('script');scriptTag=document.getElementsByTagName('script')[0];element.async=true;element.src='https://www.google.com/recaptcha/api.js'+'?onload=globalOnRecaptchaOnLoadCallback&render=explicit';scriptTag.parentNode.insertBefore(element,scriptTag);scriptTagAdded=true;}}};});","Magento_CheckoutAgreements/js/view/agreement-validation.min.js":"define(['uiComponent','Magento_Checkout/js/model/payment/additional-validators','Magento_CheckoutAgreements/js/model/agreement-validator'],function(Component,additionalValidators,agreementValidator){'use strict';additionalValidators.registerValidator(agreementValidator);return Component.extend({});});","Magento_CheckoutAgreements/js/view/checkout-agreements.min.js":"define(['ko','jquery','uiComponent','Magento_CheckoutAgreements/js/model/agreements-modal'],function(ko,$,Component,agreementsModal){'use strict';var checkoutConfig=window.checkoutConfig,agreementManualMode=1,agreementsConfig=checkoutConfig?checkoutConfig.checkoutAgreements:{};return Component.extend({defaults:{template:'Magento_CheckoutAgreements/checkout/checkout-agreements'},isVisible:agreementsConfig.isEnabled,agreements:agreementsConfig.agreements,modalTitle:ko.observable(null),modalContent:ko.observable(null),contentHeight:ko.observable(null),modalWindow:null,isAgreementRequired:function(element){return element.mode==agreementManualMode;},showContent:function(element){this.modalTitle(element.checkboxText);this.modalContent(element.content);this.contentHeight(element.contentHeight?element.contentHeight:'auto');agreementsModal.showModal();},getCheckboxId:function(context,agreementId){var paymentMethodName='',paymentMethodRenderer=context.$parents[1];if(paymentMethodRenderer){paymentMethodName=paymentMethodRenderer.item?paymentMethodRenderer.item.method:'';}\nreturn'agreement_'+paymentMethodName+'_'+agreementId;},initModal:function(element){agreementsModal.createModal(element);}});});","Magento_CheckoutAgreements/js/model/agreement-validator.min.js":"define(['jquery','mage/validation'],function($){'use strict';var checkoutConfig=window.checkoutConfig,agreementsConfig=checkoutConfig?checkoutConfig.checkoutAgreements:{},agreementsInputPath='.payment-method._active div.checkout-agreements input';return{validate:function(hideError){var isValid=true;if(!agreementsConfig.isEnabled||$(agreementsInputPath).length===0){return true;}\n$(agreementsInputPath).each(function(index,element){if(!$.validator.validateSingleElement(element,{errorElement:'div',hideError:hideError||false})){isValid=false;}});return isValid;}};});","Magento_CheckoutAgreements/js/model/set-payment-information-mixin.min.js":"define(['jquery','mage/utils/wrapper','Magento_CheckoutAgreements/js/model/agreements-assigner'],function($,wrapper,agreementsAssigner){'use strict';return function(placeOrderAction){return wrapper.wrap(placeOrderAction,function(originalAction,messageContainer,paymentData){agreementsAssigner(paymentData);return originalAction(messageContainer,paymentData);});};});","Magento_CheckoutAgreements/js/model/place-order-mixin.min.js":"define(['jquery','mage/utils/wrapper','Magento_CheckoutAgreements/js/model/agreements-assigner'],function($,wrapper,agreementsAssigner){'use strict';return function(placeOrderAction){return wrapper.wrap(placeOrderAction,function(originalAction,paymentData,messageContainer){agreementsAssigner(paymentData);return originalAction(paymentData,messageContainer);});};});","Magento_CheckoutAgreements/js/model/agreements-assigner.min.js":"define(['jquery'],function($){'use strict';var agreementsConfig=window.checkoutConfig.checkoutAgreements;return function(paymentData){var agreementForm,agreementData,agreementIds;if(!agreementsConfig.isEnabled){return;}\nagreementForm=$('.payment-method._active div[data-role=checkout-agreements] input');agreementData=agreementForm.serializeArray();agreementIds=[];agreementData.forEach(function(item){agreementIds.push(item.value);});if(paymentData['extension_attributes']===undefined){paymentData['extension_attributes']={};}\npaymentData['extension_attributes']['agreement_ids']=agreementIds;};});","Magento_CheckoutAgreements/js/model/agreements-modal.min.js":"define(['jquery','Magento_Ui/js/modal/modal','mage/translate'],function($,modal,$t){'use strict';return{modalWindow:null,createModal:function(element){var options;this.modalWindow=element;options={'type':'popup','modalClass':'agreements-modal','responsive':true,'innerScroll':true,'trigger':'.show-modal','buttons':[{text:$t('Close'),class:'action secondary action-hide-popup',click:function(){this.closeModal();}}]};modal(options,$(this.modalWindow));},showModal:function(){$(this.modalWindow).modal('openModal');}};});","Magento_Persistent/js/view/customer-data-mixin.min.js":"define(['jquery','mage/utils/wrapper'],function($,wrapper){'use strict';var mixin={getExpiredSectionNames:function(originFn){var expiredSections=originFn(),storage=$.initNamespaceStorage('mage-cache-storage').localStorage,currentTimestamp=Math.floor(Date.now()/ 1000),persistentIndex=expiredSections.indexOf('persistent'),persistentLifeTime=0,sectionData;if(window.persistent!==undefined&&window.persistent.expirationLifetime!==undefined){persistentLifeTime=window.persistent.expirationLifetime;}\nif(persistentIndex!==-1){sectionData=storage.get('persistent');if(typeof sectionData==='object'&&sectionData['data_id']+persistentLifeTime>=currentTimestamp){expiredSections.splice(persistentIndex,1);}}\nreturn expiredSections;},'Magento_Customer/js/customer-data':function(originFn){let mageCacheTimeout=new Date($.localStorage.get('mage-cache-timeout')),mageCacheSessId=$.cookieStorage.isSet('mage-cache-sessid');originFn();if(window.persistent!==undefined&&(mageCacheTimeout<new Date()||!mageCacheSessId)){this.reload(['persistent','cart'],true);}}};return function(target){return wrapper.extend(target,mixin);};});","Magento_Persistent/js/view/additional-welcome.min.js":"define(['jquery','mage/translate','Magento_Customer/js/customer-data'],function($,$t,customerData){'use strict';return{init:function(){var persistent=customerData.get('persistent');if(persistent().fullname===undefined){customerData.get('persistent').subscribe(this.replacePersistentWelcome);}else{this.replacePersistentWelcome();}},replacePersistentWelcome:function(){var persistent=customerData.get('persistent'),welcomeElems;if(persistent().fullname!==undefined){welcomeElems=$('li.greet.welcome > span.not-logged-in');if(welcomeElems.length){$(welcomeElems).each(function(){var html=$t('Welcome, %1!').replace('%1',persistent().fullname);$(this).attr('data-bind',html);$(this).html(html);});$(welcomeElems).append(' <span><a '+window.notYouLink+'>'+$t('Not you?')+'</a>');}}},'Magento_Persistent/js/view/additional-welcome':function(){this.init();}};});","Magento_Review/js/process-reviews.min.js":"define(['jquery','tabs','collapsible'],function($){'use strict';function processReviews(url,fromPages){$.ajax({url:url,cache:true,dataType:'html',showLoader:false,loaderContext:$('.product.data.items')}).done(function(data){$('#product-review-container').html(data).trigger('contentUpdated');$('[data-role=\"product-review\"] .pages a').each(function(index,element){$(element).on('click',function(event){processReviews($(element).attr('href'),true);event.preventDefault();});});}).always(function(){if(fromPages==true){$('html, body').animate({scrollTop:$('#reviews').offset().top-50},300);}});}\nreturn function(config){var reviewTab=$(config.reviewsTabSelector),requiredReviewTabRole='tab';if(reviewTab.attr('role')===requiredReviewTabRole&&reviewTab.hasClass('active')){processReviews(config.productReviewUrl,location.hash==='#reviews');}else{reviewTab.one('beforeOpen',function(){processReviews(config.productReviewUrl);});}\n$(function(){$('.product-info-main .reviews-actions a').on('click',function(event){var anchor,addReviewBlock;event.preventDefault();anchor=$(this).attr('href').replace(/^.*?(#|$)/,'');addReviewBlock=$('#'+anchor);if(addReviewBlock.length){$('.product.data.items [data-role=\"content\"]').each(function(index){if(this.id=='reviews'){$('.product.data.items').tabs('activate',index);}});$('html, body').animate({scrollTop:addReviewBlock.offset().top-50},300);}});});};});","Magento_Review/js/submit-review.min.js":"define(['jquery'],function($){'use strict';return function(config,element){$(element).on('submit',function(){if($(this).valid()){$(this).find('.submit').attr('disabled',true);}});};});","Magento_Review/js/validate-review.min.js":"define(['jquery','jquery/validate','mage/translate'],function($){'use strict';$.validator.addMethod('rating-required',function(value){return value!==undefined;},$.mage.__('Please select one of each of the ratings above.'));});","Magento_Review/js/error-placement.min.js":"define(['jquery','mage/mage'],function($){'use strict';return function(config,element){$(element).mage('validation',{errorPlacement:function(error,el){if(el.parents('#product-review-table').length){$('#product-review-table').siblings(this.errorElement+'.'+this.errorClass).remove();$('#product-review-table').after(error);}else{el.after(error);}}});};});","Magento_Review/js/view/review.min.js":"define(['uiComponent','Magento_Customer/js/customer-data','Magento_Customer/js/view/customer'],function(Component,customerData){'use strict';return Component.extend({initialize:function(){this._super();this.review=customerData.get('review').extend({disposableCustomerData:'review'});},nickname:function(){return this.review().nickname||customerData.get('customer')().firstname;}});});","Mageplaza_Smtp/js/view/billing-address-mixins.min.js":"define(['jquery','ko','underscore','Magento_Ui/js/form/form','Magento_Customer/js/model/customer','Magento_Customer/js/model/address-list','Magento_Checkout/js/model/quote','Magento_Checkout/js/action/create-billing-address','Magento_Checkout/js/action/select-billing-address','Magento_Checkout/js/checkout-data','Magento_Checkout/js/model/checkout-data-resolver','Magento_Customer/js/customer-data','Magento_Checkout/js/action/set-billing-address','Magento_Ui/js/model/messageList','mage/translate','Magento_Checkout/js/model/billing-address-postcode-validator','Mageplaza_Smtp/js/model/address-on-change'],function($,ko,_,Component,customer,addressList,quote,createBillingAddress,selectBillingAddress,checkoutData,checkoutDataResolver,customerData,setBillingAddressAction,globalMessageList,$t,billingAddressPostcodeValidator,billingAddressOnChange){'use strict';var mixin={initialize:function(){var fieldset;this._super();if(window.checkoutConfig.oscConfig){fieldset=this.get('name')+'.billing-address-fieldset';}else{fieldset=this.get('name')+'.form-fields';}\nbillingAddressOnChange.initFields(fieldset);},};return function(target){return target.extend(mixin);};});","Mageplaza_Smtp/js/view/shipping-mixins.min.js":"define(['jquery','underscore','Magento_Ui/js/form/form','ko','Magento_Customer/js/model/customer','Magento_Customer/js/model/address-list','Magento_Checkout/js/model/address-converter','Magento_Checkout/js/model/quote','Magento_Checkout/js/action/create-shipping-address','Magento_Checkout/js/action/select-shipping-address','Magento_Checkout/js/model/shipping-rates-validator','Magento_Checkout/js/model/shipping-address/form-popup-state','Magento_Checkout/js/model/shipping-service','Magento_Checkout/js/action/select-shipping-method','Magento_Checkout/js/model/shipping-rate-registry','Magento_Checkout/js/action/set-shipping-information','Magento_Checkout/js/model/step-navigator','Magento_Ui/js/modal/modal','Magento_Checkout/js/model/checkout-data-resolver','Magento_Checkout/js/checkout-data','uiRegistry','mage/translate','Magento_Checkout/js/model/shipping-rate-service','Mageplaza_Smtp/js/model/address-on-change'],function($,_,Component,ko,customer,addressList,addressConverter,quote,createShippingAddress,selectShippingAddress,shippingRatesValidator,formPopUpState,shippingService,selectShippingMethodAction,rateRegistry,setShippingInformationAction,stepNavigator,modal,checkoutDataResolver,checkoutData,registry,$t,shippingRateService,shippingAddressOnChange){'use strict';var mixin={initialize:function(){var fieldsetName='checkout.steps.shipping-step.shippingAddress.shipping-address-fieldset';this._super();shippingAddressOnChange.initFields(fieldsetName);}};return function(target){return target.extend(mixin);};});","Mageplaza_Smtp/js/model/resource-url-manager.min.js":"define(['jquery','Magento_Checkout/js/model/resource-url-manager'],function($,resourceUrlManager){\"use strict\";return $.extend({getUrlForUpdateOrder:function(quote){var params={cartId:quote.getQuoteId()};var urls={'default':'/carts/:cartId/update-order'};return this.getUrl(urls,params);}},resourceUrlManager);});","Mageplaza_Smtp/js/model/address-on-change.min.js":"define(['jquery','ko','mage/translate','uiRegistry','Magento_Checkout/js/model/quote','Mageplaza_Smtp/js/action/send-address'],function($,ko,$t,uiRegistry,quote,sendAddress){'use strict';var elements=['firstname','lastname','company','street','country_id','region_id','city','postcode','telephone'],observedElements=[];return{validateAddressTimeout:0,validateDelay:1000,initFields:function(formPath){var self=this;$.each(elements,function(index,field){uiRegistry.async(formPath+'.'+field)(self.smtpBindHandler.bind(self));});},smtpBindHandler:function(element,delay){var self=this;delay=typeof delay==='undefined'?self.validateDelay:delay;if(element.component.indexOf('/group')!==-1){$.each(element.elems(),function(index,elem){uiRegistry.async(elem.name)(function(){self.smtpBindHandler(elem);});});}else if(element&&element.hasOwnProperty('value')){element.on('value',function(){clearTimeout(self.validateAddressTimeout);self.validateAddressTimeout=setTimeout(function(){sendAddress(JSON.stringify(self.collectObservedData()),self.isOsc());},delay);});observedElements.push(element);}},collectObservedData:function(){var observedValues={};$.each(observedElements,function(index,field){var value=field.value();if($.type(value)==='undefined'){value='';}\nobservedValues[field.dataScope]=value;});return observedValues;},isOsc:function(){return!!window.checkoutConfig.oscConfig;}};});","Mageplaza_Smtp/js/action/send-address.min.js":"define(['mage/storage','Mageplaza_Smtp/js/model/resource-url-manager','Magento_Checkout/js/model/quote'],function(storage,resourceUrlManager,quote){'use strict';return function(address,isOsc){return storage.post(resourceUrlManager.getUrlForUpdateOrder(quote),JSON.stringify({address:address,isOsc:isOsc}),false);};});","Magento_ReCaptchaCheckout/js/webapiReCaptchaRegistry-mixin.min.js":"define([],function(){'use strict';return function(originalFunction){originalFunction.addListener=function(id,func){this._listeners[id]=func;};return originalFunction;};});","Magento_ReCaptchaCheckout/js/model/place-order-mixin.min.js":"define(['jquery','mage/utils/wrapper','Magento_ReCaptchaWebapiUi/js/webapiReCaptchaRegistry'],function($,wrapper,recaptchaRegistry){'use strict';return function(placeOrder){return wrapper.wrap(placeOrder,function(originalAction,serviceUrl,payload,messageContainer){var recaptchaDeferred;if(recaptchaRegistry.triggers.hasOwnProperty('recaptcha-checkout-place-order')){recaptchaDeferred=$.Deferred();recaptchaRegistry.addListener('recaptcha-checkout-place-order',function(token){payload.xReCaptchaValue=token;originalAction(serviceUrl,payload,messageContainer).done(function(){recaptchaDeferred.resolve.apply(recaptchaDeferred,arguments);}).fail(function(){recaptchaDeferred.reject.apply(recaptchaDeferred,arguments);});});recaptchaRegistry.triggers['recaptcha-checkout-place-order']();if(!recaptchaRegistry._isInvisibleType.hasOwnProperty('recaptcha-checkout-place-order')||recaptchaRegistry._isInvisibleType['recaptcha-checkout-place-order']===false){recaptchaRegistry.removeListener('recaptcha-checkout-place-order');}\nreturn recaptchaDeferred;}\nreturn originalAction(serviceUrl,payload,messageContainer);});};});","Magento_Checkout/js/discount-codes.min.js":"define(['jquery','jquery-ui-modules/widget'],function($){'use strict';$.widget('mage.discountCode',{options:{},_create:function(){this.couponCode=$(this.options.couponCodeSelector);this.removeCoupon=$(this.options.removeCouponSelector);$(this.options.applyButton).on('click',$.proxy(function(){this.couponCode.attr('data-validate','{required:true}');this.removeCoupon.attr('value','0');$(this.element).validation().trigger('submit');},this));$(this.options.cancelButton).on('click',$.proxy(function(){this.couponCode.removeAttr('data-validate');this.removeCoupon.attr('value','1');this.element.trigger('submit');},this));}});return $.mage.discountCode;});","Magento_Checkout/js/checkout-data.min.js":"define(['jquery','Magento_Customer/js/customer-data','mageUtils','jquery/jquery-storageapi'],function($,storage,utils){'use strict';var cacheKey='checkout-data',saveData=function(data){storage.set(cacheKey,data);},initData=function(){return{'selectedShippingAddress':null,'shippingAddressFromData':null,'newCustomerShippingAddress':null,'selectedShippingRate':null,'selectedPaymentMethod':null,'selectedBillingAddress':null,'billingAddressFromData':null,'newCustomerBillingAddress':null};},getData=function(){var data=storage.get(cacheKey)();if($.isEmptyObject(data)){data=$.initNamespaceStorage('mage-cache-storage').localStorage.get(cacheKey);if($.isEmptyObject(data)){data=initData();saveData(data);}}\nreturn data;};return{setSelectedShippingAddress:function(data){var obj=getData();obj.selectedShippingAddress=data;saveData(obj);},getSelectedShippingAddress:function(){return getData().selectedShippingAddress;},setShippingAddressFromData:function(data){var obj=getData();obj.shippingAddressFromData=utils.filterFormData(data);saveData(obj);},getShippingAddressFromData:function(){return getData().shippingAddressFromData;},setNewCustomerShippingAddress:function(data){var obj=getData();obj.newCustomerShippingAddress=data;saveData(obj);},getNewCustomerShippingAddress:function(){return getData().newCustomerShippingAddress;},setSelectedShippingRate:function(data){var obj=getData();obj.selectedShippingRate=data;saveData(obj);},getSelectedShippingRate:function(){return getData().selectedShippingRate;},setSelectedPaymentMethod:function(data){var obj=getData();obj.selectedPaymentMethod=data;saveData(obj);},getSelectedPaymentMethod:function(){return getData().selectedPaymentMethod;},setSelectedBillingAddress:function(data){var obj=getData();obj.selectedBillingAddress=data;saveData(obj);},getSelectedBillingAddress:function(){return getData().selectedBillingAddress;},setBillingAddressFromData:function(data){var obj=getData();obj.billingAddressFromData=utils.filterFormData(data);saveData(obj);},getBillingAddressFromData:function(){return getData().billingAddressFromData;},setNewCustomerBillingAddress:function(data){var obj=getData();obj.newCustomerBillingAddress=data;saveData(obj);},getNewCustomerBillingAddress:function(){return getData().newCustomerBillingAddress;},getValidatedEmailValue:function(){var obj=getData();return obj.validatedEmailValue?obj.validatedEmailValue:'';},setValidatedEmailValue:function(email){var obj=getData();obj.validatedEmailValue=email;saveData(obj);},getInputFieldEmailValue:function(){var obj=getData();return obj.inputFieldEmailValue?obj.inputFieldEmailValue:'';},setInputFieldEmailValue:function(email){var obj=getData();obj.inputFieldEmailValue=email;saveData(obj);},getCheckedEmailValue:function(){var obj=getData();return obj.checkedEmailValue?obj.checkedEmailValue:'';},setCheckedEmailValue:function(email){var obj=getData();obj.checkedEmailValue=email;saveData(obj);}};});","Magento_Checkout/js/shopping-cart.min.js":"define(['jquery','Magento_Ui/js/modal/confirm','jquery-ui-modules/widget','mage/translate'],function($,confirm){'use strict';$.widget('mage.shoppingCart',{_create:function(){var items,i,reload;$(this.options.emptyCartButton).on('click',$.proxy(function(){this._confirmClearCart();},this));items=$.find('[data-role=\"cart-item-qty\"]');for(i=0;i<items.length;i++){$(items[i]).on('keypress',$.proxy(function(event){var keyCode=event.keyCode?event.keyCode:event.which;if(keyCode==13){$(this.options.emptyCartButton).attr('name','update_cart_action_temp');$(this.options.updateCartActionContainer).attr('name','update_cart_action').attr('value','update_qty');}},this));}\n$(this.options.continueShoppingButton).on('click',$.proxy(function(){location.href=this.options.continueShoppingUrl;},this));$(document).on('ajax:removeFromCart',$.proxy(function(){reload=true;$('div.block.block-minicart').on('dropdowndialogclose',$.proxy(function(){if(reload===true){location.reload();reload=false;}\n$('div.block.block-minicart').off('dropdowndialogclose');}));},this));$(document).on('ajax:updateItemQty',$.proxy(function(){reload=true;$('div.block.block-minicart').on('dropdowndialogclose',$.proxy(function(){if(reload===true){location.reload();reload=false;}\n$('div.block.block-minicart').off('dropdowndialogclose');}));},this));},_confirmClearCart:function(){var self=this;confirm({content:$.mage.__('Are you sure you want to remove all items from your shopping cart?'),actions:{confirm:function(){self.clearCart();}}});},clearCart:function(){$(this.options.emptyCartButton).attr('name','update_cart_action_temp');$(this.options.updateCartActionContainer).attr('name','update_cart_action').attr('value','empty_cart');if($(this.options.emptyCartButton).parents('form').length>0){$(this.options.emptyCartButton).parents('form').trigger('submit');}}});return $.mage.shoppingCart;});","Magento_Checkout/js/proceed-to-checkout.min.js":"define(['jquery','Magento_Customer/js/model/authentication-popup','Magento_Customer/js/customer-data'],function($,authenticationPopup,customerData){'use strict';return function(config,element){$(element).on('click',function(event){var cart=customerData.get('cart'),customer=customerData.get('customer');event.preventDefault();if(!customer().firstname&&cart().isGuestCheckoutAllowed===false){authenticationPopup.showModal();return false;}\n$(element).attr('disabled',true);location.href=config.checkoutUrl;});};});","Magento_Checkout/js/checkout-loader.min.js":"define(['rjsResolver'],function(resolver){'use strict';function hideLoader($loader){$loader.parentNode.removeChild($loader);}\nfunction init(config,$loader){resolver(hideLoader.bind(null,$loader));}\nreturn init;});","Magento_Checkout/js/region-updater.min.js":"define(['jquery','mage/template','underscore','jquery-ui-modules/widget','mage/validation'],function($,mageTemplate,_){'use strict';$.widget('mage.regionUpdater',{options:{regionTemplate:'<option value=\"<%- data.value %>\" <% if (data.isSelected) { %>selected=\"selected\"<% } %>>'+'<%- data.title %>'+'</option>',isRegionRequired:true,isZipRequired:true,isCountryRequired:true,currentRegion:null,isMultipleCountriesAllowed:true},_create:function(){this._initCountryElement();this.currentRegionOption=this.options.currentRegion;this.regionTmpl=mageTemplate(this.options.regionTemplate);this._updateRegion(this.element.find('option:selected').val());$(this.options.regionListId).on('change',$.proxy(function(e){this.setOption=false;this.currentRegionOption=$(e.target).val();},this));$(this.options.regionInputId).on('focusout',$.proxy(function(){this.setOption=true;},this));},_initCountryElement:function(){if(this.options.isMultipleCountriesAllowed){this.element.parents('div.field').show();this.element.on('change',$.proxy(function(e){$(this.options.regionListId).val('');$(this.options.regionInputId).val('');this._updateRegion($(e.target).val());},this));if(this.options.isCountryRequired){this.element.addClass('required-entry');this.element.parents('div.field').addClass('required');}}else{this.element.parents('div.field').hide();}},_removeSelectOptions:function(selectElement){selectElement.find('option').each(function(index){if(index){$(this).remove();}});},_renderSelectOption:function(selectElement,key,value){selectElement.append($.proxy(function(){var name=value.name.replace(/[!\"#$%&'()*+,.\\/:;<=>?@[\\\\\\]^`{|}~]/g,'\\\\$&'),tmplData,tmpl;if(value.code&&$(name).is('span')){key=value.code;value.name=$(name).text();}\ntmplData={value:key,title:value.name,isSelected:false};if(this.options.defaultRegion===key){tmplData.isSelected=true;}\ntmpl=this.regionTmpl({data:tmplData});return $(tmpl);},this));},_clearError:function(){var args=['clearError',this.options.regionListId,this.options.regionInputId,this.options.postcodeId];if(this.options.clearError&&typeof this.options.clearError==='function'){this.options.clearError.call(this);}else{if(!this.options.form){this.options.form=this.element.closest('form').length?$(this.element.closest('form')[0]):null;}\nthis.options.form=$(this.options.form);this.options.form&&this.options.form.data('validator')&&this.options.form.validation.apply(this.options.form,_.compact(args));$(this.options.regionInputId).removeClass('mage-error').parent().find('.mage-error').remove();$(this.options.regionListId).removeClass('mage-error').parent().find('.mage-error').remove();$(this.options.postcodeId).removeClass('mage-error').parent().find('.mage-error').remove();}},_updateRegion:function(country){var regionList=$(this.options.regionListId),regionInput=$(this.options.regionInputId),postcode=$(this.options.postcodeId),label=regionList.parent().siblings('label'),container=regionList.parents('div.field'),regionsEntries,regionId,regionData;this._clearError();this._checkRegionRequired(country);if(this.options.regionJson[country]){this._removeSelectOptions(regionList);regionsEntries=_.pairs(this.options.regionJson[country]);regionsEntries.sort(function(a,b){return a[1].name>b[1].name?1:-1;});$.each(regionsEntries,$.proxy(function(key,value){regionId=value[0];regionData=value[1];this._renderSelectOption(regionList,regionId,regionData);},this));if(this.currentRegionOption){regionList.val(this.currentRegionOption);}\nif(this.setOption){regionList.find('option').filter(function(){return this.text===regionInput.val();}).attr('selected',true);}\nif(this.options.isRegionRequired){regionList.addClass('required-entry').prop('disabled',false);container.addClass('required').show();}else{regionList.removeClass('required-entry validate-select').removeAttr('data-validate');container.removeClass('required');if(!this.options.optionalRegionAllowed){regionList.hide();container.hide();}else{regionList.prop('disabled',false).show();}}\nregionList.show();regionInput.hide();label.attr('for',regionList.attr('id'));}else{this._removeSelectOptions(regionList);if(this.options.isRegionRequired){regionInput.addClass('required-entry').prop('disabled',false);container.addClass('required').show();}else{if(!this.options.optionalRegionAllowed){regionInput.attr('disabled','disabled');container.hide();}\ncontainer.removeClass('required');regionInput.removeClass('required-entry');}\nregionList.removeClass('required-entry').prop('disabled','disabled').hide();regionInput.show();label.attr('for',regionInput.attr('id'));}\nif(this.options.isZipRequired){$.inArray(country,this.options.countriesWithOptionalZip)>=0?postcode.removeClass('required-entry').closest('.field').removeClass('required'):postcode.addClass('required-entry').closest('.field').addClass('required');}\nregionList.attr('defaultvalue',this.options.defaultRegion);this.options.form.find('[type=\"submit\"]').prop('disabled',false).show();},_checkRegionRequired:function(country){var self=this;this.options.isRegionRequired=false;$.each(this.options.regionJson.config['regions_required'],function(index,elem){if(elem===country){self.options.isRegionRequired=true;}});}});return $.mage.regionUpdater;});","Magento_Checkout/js/sidebar.min.js":"define(['jquery','Magento_Customer/js/model/authentication-popup','Magento_Customer/js/customer-data','Magento_Ui/js/modal/alert','Magento_Ui/js/modal/confirm','underscore','jquery-ui-modules/widget','mage/decorate','mage/collapsible','mage/cookies','jquery-ui-modules/effect-fade'],function($,authenticationPopup,customerData,alert,confirm,_){'use strict';$.widget('mage.sidebar',{options:{isRecursive:true,minicart:{maxItemsVisible:3}},scrollHeight:0,shoppingCartUrl:window.checkout.shoppingCartUrl,_create:function(){this._initContent();},update:function(){$(this.options.targetElement).trigger('contentUpdated');this._calcHeight();},_initContent:function(){var self=this,events={};this.element.decorate('list',this.options.isRecursive);events['click '+this.options.button.close]=function(event){event.stopPropagation();$(self.options.targetElement).dropdownDialog('close');};events['click '+this.options.button.checkout]=$.proxy(function(){var cart=customerData.get('cart'),customer=customerData.get('customer'),element=$(this.options.button.checkout);if(!customer().firstname&&cart().isGuestCheckoutAllowed===false){$.cookie('login_redirect',this.options.url.checkout);if(this.options.url.isRedirectRequired){element.prop('disabled',true);location.href=this.options.url.loginUrl;}else{authenticationPopup.showModal();}\nreturn false;}\nelement.prop('disabled',true);location.href=this.options.url.checkout;},this);events['click '+this.options.button.remove]=function(event){event.stopPropagation();confirm({content:self.options.confirmMessage,actions:{confirm:function(){self._removeItem($(event.currentTarget));},always:function(e){e.stopImmediatePropagation();}}});};events['keyup '+this.options.item.qty]=function(event){self._showItemButton($(event.target));};events['change '+this.options.item.qty]=function(event){self._showItemButton($(event.target));};events['click '+this.options.item.button]=function(event){event.stopPropagation();self._updateItemQty($(event.currentTarget));};events['focusout '+this.options.item.qty]=function(event){self._validateQty($(event.currentTarget));};this._on(this.element,events);this._calcHeight();},_showItemButton:function(elem){var itemId=elem.data('cart-item'),itemQty=elem.data('item-qty');if(this._isValidQty(itemQty,elem.val())){$('#update-cart-item-'+itemId).show('fade',300);}else if(elem.val()==0){this._hideItemButton(elem);}else{this._hideItemButton(elem);}},_isValidQty:function(origin,changed){return origin!=changed&&changed.length>0&&changed-0==changed&&changed-0>0;},_validateQty:function(elem){var itemQty=elem.data('item-qty');if(!this._isValidQty(itemQty,elem.val())){elem.val(itemQty);}},_hideItemButton:function(elem){var itemId=elem.data('cart-item');$('#update-cart-item-'+itemId).hide('fade',300);},_updateItemQty:function(elem){var itemId=elem.data('cart-item');this._ajax(this.options.url.update,{'item_id':itemId,'item_qty':$('#cart-item-'+itemId+'-qty').val()},elem,this._updateItemQtyAfter);},_updateItemQtyAfter:function(elem){var productData=this._getProductById(Number(elem.data('cart-item')));if(!_.isUndefined(productData)){$(document).trigger('ajax:updateCartItemQty');if(window.location.href===this.shoppingCartUrl){window.location.reload(false);}}\nthis._hideItemButton(elem);},_removeItem:function(elem){var itemId=elem.data('cart-item');this._ajax(this.options.url.remove,{'item_id':itemId},elem,this._removeItemAfter);},_removeItemAfter:function(elem){var productData=this._getProductById(Number(elem.data('cart-item')));if(!_.isUndefined(productData)){$(document).trigger('ajax:removeFromCart',{productIds:[productData['product_id']],productInfo:[{'id':productData['product_id']}]});if(window.location.href.indexOf(this.shoppingCartUrl)===0){window.location.reload();}}},_getProductById:function(productId){return _.find(customerData.get('cart')().items,function(item){return productId===Number(item['item_id']);});},_ajax:function(url,data,elem,callback){$.extend(data,{'form_key':$.mage.cookies.get('form_key')});$.ajax({url:url,data:data,type:'post',dataType:'json',context:this,beforeSend:function(){elem.attr('disabled','disabled');},complete:function(){elem.attr('disabled',null);}}).done(function(response){var msg;if(response.success){callback.call(this,elem,response);}else{msg=response['error_message'];if(msg){alert({content:msg});}}}).fail(function(error){console.log(JSON.stringify(error));});},_calcHeight:function(){var self=this,height=0,counter=this.options.minicart.maxItemsVisible,target=$(this.options.minicart.list),outerHeight;self.scrollHeight=0;target.children().each(function(){if($(this).find('.options').length>0){$(this).collapsible();}\nouterHeight=$(this).outerHeight(true);if(counter-->0){height+=outerHeight;}\nself.scrollHeight+=outerHeight;});target.parent().height(height);}});return $.mage.sidebar;});","Magento_Checkout/js/empty-cart.min.js":"define(['Magento_Customer/js/customer-data'],function(customerData){'use strict';return function(){var cartData=customerData.get('cart');customerData.getInitCustomerData().done(function(){if(cartData().items&&cartData().items.length!==0){customerData.reload(['cart'],false);}});};});","Magento_Checkout/js/view/cart-item-renderer.min.js":"define(['uiComponent'],function(Component){'use strict';return Component.extend({getProductNameUnsanitizedHtml:function(productName){return productName;},getOptionValueUnsanitizedHtml:function(optionValue){return optionValue;}});});","Magento_Checkout/js/view/authentication-messages.min.js":"define(['Magento_Ui/js/view/messages','Magento_Checkout/js/model/authentication-messages'],function(Component,messageContainer){'use strict';return Component.extend({initialize:function(config){return this._super(config,messageContainer);}});});","Magento_Checkout/js/view/payment.min.js":"define(['jquery','underscore','uiComponent','ko','Magento_Checkout/js/model/quote','Magento_Checkout/js/model/step-navigator','Magento_Checkout/js/model/payment-service','Magento_Checkout/js/model/payment/method-converter','Magento_Checkout/js/action/get-payment-information','Magento_Checkout/js/model/checkout-data-resolver','mage/translate'],function($,_,Component,ko,quote,stepNavigator,paymentService,methodConverter,getPaymentInformation,checkoutDataResolver,$t){'use strict';paymentService.setPaymentMethods(methodConverter(window.checkoutConfig.paymentMethods));return Component.extend({defaults:{template:'Magento_Checkout/payment',activeMethod:''},isVisible:ko.observable(quote.isVirtual()),quoteIsVirtual:quote.isVirtual(),isPaymentMethodsAvailable:ko.computed(function(){return paymentService.getAvailablePaymentMethods().length>0;}),initialize:function(){this._super();checkoutDataResolver.resolvePaymentMethod();stepNavigator.registerStep('payment',null,$t('Review & Payments'),this.isVisible,_.bind(this.navigate,this),this.sortOrder);return this;},navigate:function(){var self=this;if(!self.hasShippingMethod()){this.isVisible(false);stepNavigator.setHash('shipping');}else{getPaymentInformation().done(function(){self.isVisible(true);});}},hasShippingMethod:function(){return window.checkoutConfig.selectedShippingMethod!==null;},getFormKey:function(){return window.checkoutConfig.formKey;}});});","Magento_Checkout/js/view/shipping-information.min.js":"define(['jquery','uiComponent','Magento_Checkout/js/model/quote','Magento_Checkout/js/model/step-navigator','Magento_Checkout/js/model/sidebar'],function($,Component,quote,stepNavigator,sidebarModel){'use strict';return Component.extend({defaults:{template:'Magento_Checkout/shipping-information'},isVisible:function(){return!quote.isVirtual()&&stepNavigator.isProcessed('shipping');},getShippingMethodTitle:function(){var shippingMethod=quote.shippingMethod(),shippingMethodTitle='';if(!shippingMethod){return'';}\nshippingMethodTitle=shippingMethod['carrier_title'];if(typeof shippingMethod['method_title']!=='undefined'){shippingMethodTitle+=' - '+shippingMethod['method_title'];}\nreturn shippingMethodTitle;},back:function(){sidebarModel.hide();stepNavigator.navigateTo('shipping');},backToShippingMethod:function(){sidebarModel.hide();stepNavigator.navigateTo('shipping','opc-shipping_method');}});});","Magento_Checkout/js/view/billing-address.min.js":"define(['ko','underscore','Magento_Ui/js/form/form','Magento_Customer/js/model/customer','Magento_Customer/js/model/address-list','Magento_Checkout/js/model/quote','Magento_Checkout/js/action/create-billing-address','Magento_Checkout/js/action/select-billing-address','Magento_Checkout/js/checkout-data','Magento_Checkout/js/model/checkout-data-resolver','Magento_Customer/js/customer-data','Magento_Checkout/js/action/set-billing-address','Magento_Ui/js/model/messageList','mage/translate','Magento_Checkout/js/model/billing-address-postcode-validator','Magento_Checkout/js/model/address-converter'],function(ko,_,Component,customer,addressList,quote,createBillingAddress,selectBillingAddress,checkoutData,checkoutDataResolver,customerData,setBillingAddressAction,globalMessageList,$t,billingAddressPostcodeValidator,addressConverter){'use strict';var lastSelectedBillingAddress=null,addressUpdated=false,addressEdited=false,countryData=customerData.get('directory-data'),addressOptions=addressList().filter(function(address){return address.getType()==='customer-address';});return Component.extend({defaults:{template:'Magento_Checkout/billing-address',actionsTemplate:'Magento_Checkout/billing-address/actions',formTemplate:'Magento_Checkout/billing-address/form',detailsTemplate:'Magento_Checkout/billing-address/details',links:{isAddressFormVisible:'${$.billingAddressListProvider}:isNewAddressSelected'}},currentBillingAddress:quote.billingAddress,customerHasAddresses:addressOptions.length>0,initialize:function(){this._super();quote.paymentMethod.subscribe(function(){checkoutDataResolver.resolveBillingAddress();},this);billingAddressPostcodeValidator.initFields(this.get('name')+'.form-fields');},initObservable:function(){this._super().observe({selectedAddress:null,isAddressDetailsVisible:quote.billingAddress()!=null,isAddressFormVisible:!customer.isLoggedIn()||!addressOptions.length,isAddressSameAsShipping:false,saveInAddressBook:1});quote.billingAddress.subscribe(function(newAddress){if(quote.isVirtual()){this.isAddressSameAsShipping(false);}else{this.isAddressSameAsShipping(newAddress!=null&&newAddress.getCacheKey()==quote.shippingAddress().getCacheKey());}\nif(newAddress!=null&&newAddress.saveInAddressBook!==undefined){this.saveInAddressBook(newAddress.saveInAddressBook);}else{this.saveInAddressBook(1);}\nthis.isAddressDetailsVisible(true);},this);return this;},canUseShippingAddress:ko.computed(function(){return!quote.isVirtual()&&quote.shippingAddress()&&quote.shippingAddress().canUseForBilling();}),addressOptionsText:function(address){return address.getAddressInline();},useShippingAddress:function(){if(this.isAddressSameAsShipping()){selectBillingAddress(quote.shippingAddress());this.updateAddresses(true);this.isAddressDetailsVisible(true);}else{lastSelectedBillingAddress=quote.billingAddress();quote.billingAddress(null);this.isAddressDetailsVisible(false);}\ncheckoutData.setSelectedBillingAddress(null);return true;},updateAddress:function(){var addressData,newBillingAddress;addressUpdated=true;if(this.selectedAddress()&&!this.isAddressFormVisible()){selectBillingAddress(this.selectedAddress());checkoutData.setSelectedBillingAddress(this.selectedAddress().getKey());}else{this.source.set('params.invalid',false);this.source.trigger(this.dataScopePrefix+'.data.validate');if(this.source.get(this.dataScopePrefix+'.custom_attributes')){this.source.trigger(this.dataScopePrefix+'.custom_attributes.data.validate');}\nif(!this.source.get('params.invalid')){addressData=this.source.get(this.dataScopePrefix);if(customer.isLoggedIn()&&!this.customerHasAddresses){this.saveInAddressBook(1);}\naddressData['save_in_address_book']=this.saveInAddressBook()?1:0;newBillingAddress=createBillingAddress(addressData);selectBillingAddress(newBillingAddress);checkoutData.setSelectedBillingAddress(newBillingAddress.getKey());checkoutData.setNewCustomerBillingAddress(addressData);}}\nthis.updateAddresses(true);},editAddress:function(){addressUpdated=false;addressEdited=true;lastSelectedBillingAddress=quote.billingAddress();quote.billingAddress(null);this.isAddressDetailsVisible(false);},cancelAddressEdit:function(){addressUpdated=true;this.restoreBillingAddress();if(quote.billingAddress()){this.isAddressSameAsShipping(quote.billingAddress()!=null&&quote.billingAddress().getCacheKey()==quote.shippingAddress().getCacheKey()&&!quote.isVirtual());this.isAddressDetailsVisible(true);}},canUseCancelBillingAddress:ko.computed(function(){return quote.billingAddress()||lastSelectedBillingAddress;}),needCancelBillingAddressChanges:function(){if(addressEdited&&!addressUpdated){this.cancelAddressEdit();}},restoreBillingAddress:function(){var lastBillingAddress;if(lastSelectedBillingAddress!=null){selectBillingAddress(lastSelectedBillingAddress);lastBillingAddress=addressConverter.quoteAddressToFormAddressData(lastSelectedBillingAddress);checkoutData.setNewCustomerBillingAddress(lastBillingAddress);}},getCountryName:function(countryId){return countryData()[countryId]!=undefined?countryData()[countryId].name:'';},updateAddresses:function(force){force=!(typeof force==='undefined'||force!==true);if(force||window.checkoutConfig.reloadOnBillingAddress||!window.checkoutConfig.displayBillingOnPaymentMethod){setBillingAddressAction(globalMessageList);}},getCode:function(parent){return _.isFunction(parent.getCode)?parent.getCode():'shared';},getCustomAttributeLabel:function(attribute){var label;if(typeof attribute==='string'){return attribute;}\nif(attribute.label){return attribute.label;}\nif(_.isArray(attribute.value)){label=_.map(attribute.value,function(value){return this.getCustomAttributeOptionLabel(attribute['attribute_code'],value)||value;},this).join(', ');}else if(typeof attribute.value==='object'){label=_.map(Object.values(attribute.value)).join(', ');}else{label=this.getCustomAttributeOptionLabel(attribute['attribute_code'],attribute.value);}\nreturn label||attribute.value;},getCustomAttributeOptionLabel:function(attributeCode,value){var option,label,options=this.source.get('customAttributes')||{};if(options[attributeCode]){option=_.findWhere(options[attributeCode],{value:value});if(option){label=option.label;}}else if(value.file!==null){label=value.file;}\nreturn label;}});});","Magento_Checkout/js/view/registration.min.js":"define(['jquery','uiComponent','Magento_Ui/js/model/messageList'],function($,Component,messageList){'use strict';return Component.extend({defaults:{template:'Magento_Checkout/registration',accountCreated:false,creationStarted:false,isFormVisible:true},initObservable:function(){this._super().observe('accountCreated').observe('isFormVisible').observe('creationStarted');return this;},getEmailAddress:function(){return this.email;},getUrl:function(){return this.registrationUrl;},createAccount:function(){this.creationStarted(true);$.post(this.registrationUrl).done(function(response){if(response.errors==false){this.accountCreated(true);}else{messageList.addErrorMessage(response);}\nthis.isFormVisible(false);}.bind(this)).fail(function(response){this.accountCreated(false);this.isFormVisible(false);messageList.addErrorMessage(response);}.bind(this));}});});","Magento_Checkout/js/view/shipping.min.js":"define(['jquery','underscore','Magento_Ui/js/form/form','ko','Magento_Customer/js/model/customer','Magento_Customer/js/model/address-list','Magento_Checkout/js/model/address-converter','Magento_Checkout/js/model/quote','Magento_Checkout/js/action/create-shipping-address','Magento_Checkout/js/action/select-shipping-address','Magento_Checkout/js/model/shipping-rates-validator','Magento_Checkout/js/model/shipping-address/form-popup-state','Magento_Checkout/js/model/shipping-service','Magento_Checkout/js/action/select-shipping-method','Magento_Checkout/js/model/shipping-rate-registry','Magento_Checkout/js/action/set-shipping-information','Magento_Checkout/js/model/step-navigator','Magento_Ui/js/modal/modal','Magento_Checkout/js/model/checkout-data-resolver','Magento_Checkout/js/checkout-data','uiRegistry','mage/translate','Magento_Checkout/js/model/shipping-rate-service'],function($,_,Component,ko,customer,addressList,addressConverter,quote,createShippingAddress,selectShippingAddress,shippingRatesValidator,formPopUpState,shippingService,selectShippingMethodAction,rateRegistry,setShippingInformationAction,stepNavigator,modal,checkoutDataResolver,checkoutData,registry,$t){'use strict';var popUp=null;return Component.extend({defaults:{template:'Magento_Checkout/shipping',shippingFormTemplate:'Magento_Checkout/shipping-address/form',shippingMethodListTemplate:'Magento_Checkout/shipping-address/shipping-method-list',shippingMethodItemTemplate:'Magento_Checkout/shipping-address/shipping-method-item',imports:{countryOptions:'${ $.parentName }.shippingAddress.shipping-address-fieldset.country_id:indexedOptions'}},visible:ko.observable(!quote.isVirtual()),errorValidationMessage:ko.observable(false),isCustomerLoggedIn:customer.isLoggedIn,isFormPopUpVisible:formPopUpState.isVisible,isFormInline:addressList().length===0,isNewAddressAdded:ko.observable(false),saveInAddressBook:1,quoteIsVirtual:quote.isVirtual(),initialize:function(){var self=this,hasNewAddress,fieldsetName='checkout.steps.shipping-step.shippingAddress.shipping-address-fieldset';this._super();if(!quote.isVirtual()){stepNavigator.registerStep('shipping','',$t('Shipping'),this.visible,_.bind(this.navigate,this),this.sortOrder);}\ncheckoutDataResolver.resolveShippingAddress();hasNewAddress=addressList.some(function(address){return address.getType()=='new-customer-address';});this.isNewAddressAdded(hasNewAddress);this.isFormPopUpVisible.subscribe(function(value){if(value){self.getPopUp().openModal();}});quote.shippingMethod.subscribe(function(){self.errorValidationMessage(false);});registry.async('checkoutProvider')(function(checkoutProvider){var shippingAddressData=checkoutData.getShippingAddressFromData();if(shippingAddressData){checkoutProvider.set('shippingAddress',$.extend(true,{},checkoutProvider.get('shippingAddress'),shippingAddressData));}\ncheckoutProvider.on('shippingAddress',function(shippingAddrsData,changes){var isStreetAddressDeleted,isStreetAddressNotEmpty;isStreetAddressDeleted=function(){var change;if(!changes||changes.length===0){return false;}\nchange=changes.pop();if(_.isUndefined(change.value)||_.isUndefined(change.oldValue)){return false;}\nif(!change.path.startsWith('shippingAddress.street')){return false;}\nreturn change.value.length===0&&change.oldValue.length>0;};isStreetAddressNotEmpty=shippingAddrsData.street&&!_.isEmpty(shippingAddrsData.street[0]);if(isStreetAddressNotEmpty||isStreetAddressDeleted()){checkoutData.setShippingAddressFromData(shippingAddrsData);}});shippingRatesValidator.initFields(fieldsetName);});return this;},navigate:function(step){step&&step.isVisible(true);},getPopUp:function(){var self=this,buttons;if(!popUp){buttons=this.popUpForm.options.buttons;this.popUpForm.options.buttons=[{text:buttons.save.text?buttons.save.text:$t('Save Address'),class:buttons.save.class?buttons.save.class:'action primary action-save-address',click:self.saveNewAddress.bind(self)},{text:buttons.cancel.text?buttons.cancel.text:$t('Cancel'),class:buttons.cancel.class?buttons.cancel.class:'action secondary action-hide-popup',click:this.onClosePopUp.bind(this)}];this.popUpForm.options.closed=function(){self.isFormPopUpVisible(false);};this.popUpForm.options.modalCloseBtnHandler=this.onClosePopUp.bind(this);this.popUpForm.options.keyEventHandlers={escapeKey:this.onClosePopUp.bind(this)};this.popUpForm.options.opened=function(){self.temporaryAddress=$.extend(true,{},checkoutData.getShippingAddressFromData());};popUp=modal(this.popUpForm.options,$(this.popUpForm.element));}\nreturn popUp;},onClosePopUp:function(){checkoutData.setShippingAddressFromData($.extend(true,{},this.temporaryAddress));this.getPopUp().closeModal();},showFormPopUp:function(){this.isFormPopUpVisible(true);},saveNewAddress:function(){var addressData,newShippingAddress;this.source.set('params.invalid',false);this.triggerShippingDataValidateEvent();if(!this.source.get('params.invalid')){addressData=this.source.get('shippingAddress');addressData['save_in_address_book']=this.saveInAddressBook?1:0;newShippingAddress=createShippingAddress(addressData);selectShippingAddress(newShippingAddress);checkoutData.setSelectedShippingAddress(newShippingAddress.getKey());checkoutData.setNewCustomerShippingAddress($.extend(true,{},addressData));this.getPopUp().closeModal();this.isNewAddressAdded(true);}},rates:shippingService.getShippingRates(),isLoading:shippingService.isLoading,isSelected:ko.computed(function(){return quote.shippingMethod()?quote.shippingMethod()['carrier_code']+'_'+quote.shippingMethod()['method_code']:null;}),selectShippingMethod:function(shippingMethod){selectShippingMethodAction(shippingMethod);checkoutData.setSelectedShippingRate(shippingMethod['carrier_code']+'_'+shippingMethod['method_code']);return true;},setShippingInformation:function(){if(this.validateShippingInformation()){quote.billingAddress(null);checkoutDataResolver.resolveBillingAddress();registry.async('checkoutProvider')(function(checkoutProvider){var shippingAddressData=checkoutData.getShippingAddressFromData();if(shippingAddressData){checkoutProvider.set('shippingAddress',$.extend(true,{},checkoutProvider.get('shippingAddress'),shippingAddressData));}});setShippingInformationAction().done(function(){stepNavigator.next();});}},validateShippingInformation:function(){var shippingAddress,addressData,loginFormSelector='form[data-role=email-with-possible-login]',emailValidationResult=customer.isLoggedIn(),field,option=_.isObject(this.countryOptions)&&this.countryOptions[quote.shippingAddress().countryId],messageContainer=registry.get('checkout.errors').messageContainer;if(!quote.shippingMethod()){this.errorValidationMessage($t('The shipping method is missing. Select the shipping method and try again.'));return false;}\nif(!customer.isLoggedIn()){$(loginFormSelector).validation();emailValidationResult=Boolean($(loginFormSelector+' input[name=username]').valid());}\nif(this.isFormInline){this.source.set('params.invalid',false);this.triggerShippingDataValidateEvent();if(!quote.shippingMethod()['method_code']){this.errorValidationMessage($t('The shipping method is missing. Select the shipping method and try again.'));}\nif(emailValidationResult&&this.source.get('params.invalid')||!quote.shippingMethod()['method_code']||!quote.shippingMethod()['carrier_code']){this.focusInvalid();return false;}\nshippingAddress=quote.shippingAddress();addressData=addressConverter.formAddressDataToQuoteAddress(this.source.get('shippingAddress'));for(field in addressData){if(addressData.hasOwnProperty(field)&&shippingAddress.hasOwnProperty(field)&&typeof addressData[field]!='function'&&_.isEqual(shippingAddress[field],addressData[field])){shippingAddress[field]=addressData[field];}else if(typeof addressData[field]!='function'&&!_.isEqual(shippingAddress[field],addressData[field])){shippingAddress=addressData;break;}}\nif(customer.isLoggedIn()){shippingAddress['save_in_address_book']=1;}\nselectShippingAddress(shippingAddress);}else if(customer.isLoggedIn()&&option&&option['is_region_required']&&!quote.shippingAddress().region){messageContainer.addErrorMessage({message:$t('Please specify a regionId in shipping address.')});return false;}\nif(!emailValidationResult){$(loginFormSelector+' input[name=username]').trigger('focus');return false;}\nreturn true;},triggerShippingDataValidateEvent:function(){this.source.trigger('shippingAddress.data.validate');if(this.source.get('shippingAddress.custom_attributes')){this.source.trigger('shippingAddress.custom_attributes.data.validate');}}});});","Magento_Checkout/js/view/minicart.min.js":"define(['uiComponent','Magento_Customer/js/customer-data','jquery','ko','underscore','sidebar','mage/translate','mage/dropdown'],function(Component,customerData,$,ko,_){'use strict';var sidebarInitialized=false,addToCartCalls=0,miniCart;miniCart=$('[data-block=\\'minicart\\']');function initSidebar(){if(miniCart.data('mageSidebar')){miniCart.sidebar('update');}\nif(!$('[data-role=product-item]').length){return false;}\nminiCart.trigger('contentUpdated');if(sidebarInitialized){return false;}\nsidebarInitialized=true;miniCart.sidebar({'targetElement':'div.block.block-minicart','url':{'checkout':window.checkout.checkoutUrl,'update':window.checkout.updateItemQtyUrl,'remove':window.checkout.removeItemUrl,'loginUrl':window.checkout.customerLoginUrl,'isRedirectRequired':window.checkout.isRedirectRequired},'button':{'checkout':'#top-cart-btn-checkout','remove':'#mini-cart a.action.delete','close':'#btn-minicart-close'},'showcart':{'parent':'span.counter','qty':'span.counter-number','label':'span.counter-label'},'minicart':{'list':'#mini-cart','content':'#minicart-content-wrapper','qty':'div.items-total','subtotal':'div.subtotal span.price','maxItemsVisible':window.checkout.minicartMaxItemsVisible},'item':{'qty':':input.cart-item-qty','button':':button.update-cart-item'},'confirmMessage':$.mage.__('Are you sure you would like to remove this item from the shopping cart?')});}\nminiCart.on('dropdowndialogopen',function(){initSidebar();});return Component.extend({shoppingCartUrl:window.checkout.shoppingCartUrl,maxItemsToDisplay:window.checkout.maxItemsToDisplay,cart:{},initialize:function(){var self=this,cartData=customerData.get('cart');this.update(cartData());cartData.subscribe(function(updatedCart){addToCartCalls--;this.isLoading(addToCartCalls>0);sidebarInitialized=false;this.update(updatedCart);initSidebar();},this);$('[data-block=\"minicart\"]').on('contentLoading',function(){addToCartCalls++;self.isLoading(true);});if(cartData().website_id!==window.checkout.websiteId&&cartData().website_id!==undefined||cartData().storeId!==window.checkout.storeId&&cartData().storeId!==undefined){customerData.reload(['cart'],false);}\nreturn this._super();},isLoading:ko.observable(false),initSidebar:initSidebar,closeMinicart:function(){$('[data-block=\"minicart\"]').find('[data-role=\"dropdownDialog\"]').dropdownDialog('close');},getItemRenderer:function(productType){return this.itemRenderer[productType]||'defaultRenderer';},update:function(updatedCart){_.each(updatedCart,function(value,key){if(!this.cart.hasOwnProperty(key)){this.cart[key]=ko.observable();}\nthis.cart[key](value);},this);},getCartParamUnsanitizedHtml:function(name){if(!_.isUndefined(name)){if(!this.cart.hasOwnProperty(name)){this.cart[name]=ko.observable();}}\nreturn this.cart[name]();},getCartParam:function(name){return this.getCartParamUnsanitizedHtml(name);},getCartItems:function(){var items=this.getCartParamUnsanitizedHtml('items')||[];items=items.slice(parseInt(-this.maxItemsToDisplay,10));return items;},getCartLineItemsCount:function(){var items=this.getCartParamUnsanitizedHtml('items')||[];return parseInt(items.length,10);}});});","Magento_Checkout/js/view/sidebar.min.js":"define(['uiComponent','ko','jquery','Magento_Checkout/js/model/sidebar'],function(Component,ko,$,sidebarModel){'use strict';return Component.extend({setModalElement:function(element){sidebarModel.setPopup($(element));}});});","Magento_Checkout/js/view/summary.min.js":"define(['uiComponent','Magento_Checkout/js/model/totals'],function(Component,totals){'use strict';return Component.extend({isLoading:totals.isLoading});});","Magento_Checkout/js/view/estimation.min.js":"define(['uiComponent','Magento_Checkout/js/model/quote','Magento_Catalog/js/price-utils','Magento_Checkout/js/model/totals','Magento_Checkout/js/model/sidebar'],function(Component,quote,priceUtils,totals,sidebarModel){'use strict';return Component.extend({isLoading:totals.isLoading,getQuantity:function(){if(totals.totals()){return parseFloat(totals.totals()['items_qty']);}\nreturn 0;},getPureValue:function(){if(totals.totals()){return parseFloat(totals.getSegment('grand_total').value);}\nreturn 0;},showSidebar:function(){sidebarModel.show();},getFormattedPrice:function(price){return priceUtils.formatPriceLocale(price,quote.getPriceFormat());},getValue:function(){return this.getFormattedPrice(this.getPureValue());}});});","Magento_Checkout/js/view/authentication.min.js":"define(['jquery','Magento_Ui/js/form/form','Magento_Customer/js/action/login','Magento_Customer/js/model/customer','mage/validation','Magento_Checkout/js/model/authentication-messages','Magento_Checkout/js/model/full-screen-loader'],function($,Component,loginAction,customer,validation,messageContainer,fullScreenLoader){'use strict';var checkoutConfig=window.checkoutConfig;return Component.extend({isGuestCheckoutAllowed:checkoutConfig.isGuestCheckoutAllowed,isCustomerLoginRequired:checkoutConfig.isCustomerLoginRequired,registerUrl:checkoutConfig.registerUrl,forgotPasswordUrl:checkoutConfig.forgotPasswordUrl,autocomplete:checkoutConfig.autocomplete,defaults:{template:'Magento_Checkout/authentication'},isActive:function(){return!customer.isLoggedIn();},login:function(loginForm){var loginData={},formDataArray=$(loginForm).serializeArray();formDataArray.forEach(function(entry){loginData[entry.name]=entry.value;});if($(loginForm).validation()&&$(loginForm).validation('isValid')){fullScreenLoader.startLoader();loginAction(loginData,checkoutConfig.checkoutUrl,undefined,messageContainer).always(function(){fullScreenLoader.stopLoader();});}}});});","Magento_Checkout/js/view/progress-bar.min.js":"define(['jquery','underscore','ko','uiComponent','Magento_Checkout/js/model/step-navigator','Magento_Checkout/js/view/billing-address'],function($,_,ko,Component,stepNavigator,billingAddress){'use strict';var steps=stepNavigator.steps;return Component.extend({defaults:{template:'Magento_Checkout/progress-bar',visible:true},steps:steps,initialize:function(){var stepsValue;this._super();window.addEventListener('hashchange',_.bind(stepNavigator.handleHash,stepNavigator));if(!window.location.hash){stepsValue=stepNavigator.steps();if(stepsValue.length){stepNavigator.setHash(stepsValue.sort(stepNavigator.sortItems)[0].code);}}\nstepNavigator.handleHash();},sortItems:function(itemOne,itemTwo){return stepNavigator.sortItems(itemOne,itemTwo);},navigateTo:function(step){if(step.code==='shipping'){billingAddress().needCancelBillingAddressChanges();}\nstepNavigator.navigateTo(step.code);},isProcessed:function(item){return stepNavigator.isProcessed(item.code);}});});","Magento_Checkout/js/view/form/element/email.min.js":"define(['jquery','uiComponent','ko','Magento_Customer/js/model/customer','Magento_Customer/js/action/check-email-availability','Magento_Customer/js/action/login','Magento_Checkout/js/model/quote','Magento_Checkout/js/checkout-data','Magento_Checkout/js/model/full-screen-loader','mage/validation'],function($,Component,ko,customer,checkEmailAvailability,loginAction,quote,checkoutData,fullScreenLoader){'use strict';var validatedEmail;if(!checkoutData.getValidatedEmailValue()&&window.checkoutConfig.validatedEmailValue){checkoutData.setInputFieldEmailValue(window.checkoutConfig.validatedEmailValue);checkoutData.setValidatedEmailValue(window.checkoutConfig.validatedEmailValue);}\nvalidatedEmail=checkoutData.getValidatedEmailValue();if(validatedEmail&&!customer.isLoggedIn()){quote.guestEmail=validatedEmail;}\nreturn Component.extend({defaults:{template:'Magento_Checkout/form/element/email',email:checkoutData.getInputFieldEmailValue(),emailFocused:false,isLoading:false,isPasswordVisible:false,listens:{email:'emailHasChanged',emailFocused:'validateEmail'},ignoreTmpls:{email:true}},checkDelay:2000,checkRequest:null,isEmailCheckComplete:null,isCustomerLoggedIn:customer.isLoggedIn,forgotPasswordUrl:window.checkoutConfig.forgotPasswordUrl,emailCheckTimeout:0,emailInputId:'#customer-email',initConfig:function(){this._super();this.isPasswordVisible=this.resolveInitialPasswordVisibility();return this;},initObservable:function(){this._super().observe(['email','emailFocused','isLoading','isPasswordVisible']);return this;},emailHasChanged:function(){var self=this;clearTimeout(this.emailCheckTimeout);if(self.validateEmail()){quote.guestEmail=self.email();checkoutData.setValidatedEmailValue(self.email());}\nthis.emailCheckTimeout=setTimeout(function(){if(self.validateEmail()){self.checkEmailAvailability();}else{self.isPasswordVisible(false);}},self.checkDelay);checkoutData.setInputFieldEmailValue(self.email());},checkEmailAvailability:function(){this.validateRequest();this.isEmailCheckComplete=$.Deferred();$(this.emailInputId).removeClass('mage-error').parent().find('.mage-error').remove();this.isLoading(true);this.checkRequest=checkEmailAvailability(this.isEmailCheckComplete,this.email());$.when(this.isEmailCheckComplete).done(function(){this.isPasswordVisible(false);checkoutData.setCheckedEmailValue('');}.bind(this)).fail(function(){this.isPasswordVisible(true);checkoutData.setCheckedEmailValue(this.email());}.bind(this)).always(function(){this.isLoading(false);}.bind(this));},validateRequest:function(){if(this.checkRequest!=null&&$.inArray(this.checkRequest.readyState,[1,2,3])){this.checkRequest.abort();this.checkRequest=null;}},validateEmail:function(focused){var loginFormSelector='form[data-role=email-with-possible-login]',usernameSelector=loginFormSelector+' input[name=username]',loginForm=$(loginFormSelector),validator,valid;loginForm.validation();if(focused===false&&!!this.email()){valid=!!$(usernameSelector).valid();if(valid){$(usernameSelector).removeAttr('aria-invalid aria-describedby');}\nreturn valid;}\nif(loginForm.is(':visible')){validator=loginForm.validate();return validator.check(usernameSelector);}\nreturn true;},login:function(loginForm){var loginData={},formDataArray=$(loginForm).serializeArray();formDataArray.forEach(function(entry){loginData[entry.name]=entry.value;});if(this.isPasswordVisible()&&$(loginForm).validation()&&$(loginForm).validation('isValid')){fullScreenLoader.startLoader();loginAction(loginData).always(function(){fullScreenLoader.stopLoader();});}},resolveInitialPasswordVisibility:function(){if(checkoutData.getInputFieldEmailValue()!==''&&checkoutData.getCheckedEmailValue()!==''){return true;}\nif(checkoutData.getInputFieldEmailValue()!==''){return checkoutData.getInputFieldEmailValue()===checkoutData.getCheckedEmailValue();}\nreturn false;}});});","Magento_Checkout/js/view/cart/totals.min.js":"define(['jquery','uiComponent','Magento_Checkout/js/model/totals','Magento_Checkout/js/model/shipping-service'],function($,Component,totalsService,shippingService){'use strict';return Component.extend({isLoading:totalsService.isLoading,initialize:function(){this._super();totalsService.totals.subscribe(function(){$(window).trigger('resize');});shippingService.getShippingRates().subscribe(function(){$(window).trigger('resize');});}});});","Magento_Checkout/js/view/cart/shipping-estimation.min.js":"define(['jquery','Magento_Ui/js/form/form','Magento_Checkout/js/action/select-shipping-address','Magento_Checkout/js/model/address-converter','Magento_Checkout/js/model/cart/estimate-service','Magento_Checkout/js/checkout-data','Magento_Checkout/js/model/shipping-rates-validator','uiRegistry','Magento_Checkout/js/model/quote','Magento_Checkout/js/model/checkout-data-resolver','Magento_Checkout/js/model/shipping-service','mage/validation'],function($,Component,selectShippingAddress,addressConverter,estimateService,checkoutData,shippingRatesValidator,registry,quote,checkoutDataResolver,shippingService){'use strict';return Component.extend({defaults:{template:'Magento_Checkout/cart/shipping-estimation'},isVirtual:quote.isVirtual(),initialize:function(){this._super();shippingService.isLoading(true);registry.async('checkoutProvider')(function(checkoutProvider){var address,estimatedAddress;shippingService.isLoading(false);checkoutDataResolver.resolveEstimationAddress();address=quote.isVirtual()?quote.billingAddress():quote.shippingAddress();if(!address&&quote.isVirtual()){address=addressConverter.formAddressDataToQuoteAddress(checkoutData.getSelectedBillingAddress());}\nif(address){estimatedAddress=address.isEditable()?addressConverter.quoteAddressToFormAddressData(address):{'country_id':address.countryId,region:address.region,'region_id':address.regionId,postcode:address.postcode};checkoutProvider.set('shippingAddress',$.extend({},checkoutProvider.get('shippingAddress'),estimatedAddress));}\nif(!quote.isVirtual()){checkoutProvider.on('shippingAddress',function(shippingAddressData){if(quote.shippingAddress().countryId!==shippingAddressData.country_id||(shippingAddressData.postcode||shippingAddressData.region_id)){checkoutData.setShippingAddressFromData(shippingAddressData);}});}else{checkoutProvider.on('shippingAddress',function(shippingAddressData){checkoutData.setBillingAddressFromData(shippingAddressData);});}});return this;},initElement:function(element){this._super();if(element.index==='address-fieldsets'){shippingRatesValidator.bindChangeHandlers(element.elems(),true,500);element.elems.subscribe(function(elems){shippingRatesValidator.doElementBinding(elems[elems.length-1],true,500);});}\nreturn this;},getEstimationInfo:function(){var addressData=null;this.source.set('params.invalid',false);this.source.trigger('shippingAddress.data.validate');if(!this.source.get('params.invalid')){addressData=this.source.get('shippingAddress');selectShippingAddress(addressConverter.formAddressDataToQuoteAddress(addressData));}}});});","Magento_Checkout/js/view/cart/shipping-rates.min.js":"define(['ko','underscore','uiComponent','Magento_Checkout/js/model/shipping-service','Magento_Catalog/js/price-utils','Magento_Checkout/js/model/quote','Magento_Checkout/js/action/select-shipping-method','Magento_Checkout/js/checkout-data'],function(ko,_,Component,shippingService,priceUtils,quote,selectShippingMethodAction,checkoutData){'use strict';return Component.extend({defaults:{template:'Magento_Checkout/cart/shipping-rates'},isVisible:ko.observable(!quote.isVirtual()),isLoading:shippingService.isLoading,shippingRates:shippingService.getShippingRates(),shippingRateGroups:ko.observableArray([]),selectedShippingMethod:ko.computed(function(){return quote.shippingMethod()?quote.shippingMethod()['carrier_code']+'_'+quote.shippingMethod()['method_code']:null;}),initObservable:function(){var self=this;this._super();this.shippingRates.subscribe(function(rates){self.shippingRateGroups([]);_.each(rates,function(rate){var carrierTitle=rate['carrier_title'];if(self.shippingRateGroups.indexOf(carrierTitle)===-1){self.shippingRateGroups.push(carrierTitle);}});});return this;},getRatesForGroup:function(shippingRateGroupTitle){return _.filter(this.shippingRates(),function(rate){return shippingRateGroupTitle===rate['carrier_title'];});},getFormattedPrice:function(price){return priceUtils.formatPriceLocale(price,quote.getPriceFormat());},selectShippingMethod:function(methodData){selectShippingMethodAction(methodData);checkoutData.setSelectedShippingRate(methodData['carrier_code']+'_'+methodData['method_code']);return true;}});});","Magento_Checkout/js/view/cart/totals/shipping.min.js":"define(['Magento_Checkout/js/view/summary/shipping','Magento_Checkout/js/model/quote'],function(Component,quote){'use strict';return Component.extend({isCalculated:function(){return!!quote.shippingMethod();}});});","Magento_Checkout/js/view/checkout/placeOrderCaptcha.min.js":"define(['Magento_Captcha/js/view/checkout/defaultCaptcha','Magento_Captcha/js/model/captchaList','underscore','Magento_Checkout/js/model/payment/place-order-hooks'],function(defaultCaptcha,captchaList,_,placeOrderHooks){'use strict';return defaultCaptcha.extend({initialize:function(){var self=this,currentCaptcha;this._super();currentCaptcha=captchaList.getCaptchaByFormId(this.formId);if(currentCaptcha!=null){currentCaptcha.setIsVisible(true);this.setCurrentCaptcha(currentCaptcha);placeOrderHooks.requestModifiers.push(function(headers){if(self.isRequired()){headers['X-Captcha']=self.captchaValue()();}});if(self.isRequired()){placeOrderHooks.afterRequestListeners.push(function(){self.refresh();});}}}});});","Magento_Checkout/js/view/checkout/minicart/subtotal/totals.min.js":"define(['ko','uiComponent','Magento_Customer/js/customer-data'],function(ko,Component,customerData){'use strict';return Component.extend({displaySubtotal:ko.observable(true),initialize:function(){this._super();this.cart=customerData.get('cart');}});});","Magento_Checkout/js/view/shipping-information/list.min.js":"define(['jquery','ko','mageUtils','uiComponent','uiLayout','Magento_Checkout/js/model/quote'],function($,ko,utils,Component,layout,quote){'use strict';var defaultRendererTemplate={parent:'${ $.$data.parentName }',name:'${ $.$data.name }',component:'Magento_Checkout/js/view/shipping-information/address-renderer/default',provider:'checkoutProvider'};return Component.extend({defaults:{template:'Magento_Checkout/shipping-information/list',rendererTemplates:{}},initialize:function(){var self=this;this._super().initChildren();quote.shippingAddress.subscribe(function(address){self.createRendererComponent(address);});return this;},initConfig:function(){this._super();this.rendererComponents={};return this;},initChildren:function(){return this;},createRendererComponent:function(address){var rendererTemplate,templateData,rendererComponent;$.each(this.rendererComponents,function(index,component){component.visible(false);});if(this.rendererComponents[address.getType()]){this.rendererComponents[address.getType()].address(address);this.rendererComponents[address.getType()].visible(true);}else{rendererTemplate=address.getType()!=undefined&&this.rendererTemplates[address.getType()]!=undefined?utils.extend({},defaultRendererTemplate,this.rendererTemplates[address.getType()]):defaultRendererTemplate;templateData={parentName:this.name,name:address.getType()};rendererComponent=utils.template(rendererTemplate,templateData);utils.extend(rendererComponent,{address:ko.observable(address),visible:ko.observable(true)});layout([rendererComponent]);this.rendererComponents[address.getType()]=rendererComponent;}}});});","Magento_Checkout/js/view/shipping-information/address-renderer/default.min.js":"define(['uiComponent','underscore','Magento_Customer/js/customer-data'],function(Component,_,customerData){'use strict';var countryData=customerData.get('directory-data');return Component.extend({defaults:{template:'Magento_Checkout/shipping-information/address-renderer/default'},getCountryName:function(countryId){return countryData()[countryId]!=undefined?countryData()[countryId].name:'';},getCustomAttributeLabel:function(attribute){var label;if(typeof attribute==='string'){return attribute;}\nif(attribute.label){return attribute.label;}\nif(_.isArray(attribute.value)){label=_.map(attribute.value,function(value){return this.getCustomAttributeOptionLabel(attribute['attribute_code'],value)||value;},this).join(', ');}else if(typeof attribute.value==='object'){label=_.map(Object.values(attribute.value)).join(', ');}else{label=this.getCustomAttributeOptionLabel(attribute['attribute_code'],attribute.value);}\nreturn label||attribute.value;},getCustomAttributeOptionLabel:function(attributeCode,value){var option,label,options=this.source.get('customAttributes')||{};if(options[attributeCode]){option=_.findWhere(options[attributeCode],{value:value});if(option){label=option.label;}}else if(value.file!==null){label=value.file;}\nreturn label;}});});","Magento_Checkout/js/view/billing-address/list.min.js":"define(['uiComponent','Magento_Customer/js/model/address-list','mage/translate','Magento_Customer/js/model/customer'],function(Component,addressList,$t,customer){'use strict';var newAddressOption={getAddressInline:function(){return $t('New Address');},customerAddressId:null},addressOptions=addressList().filter(function(address){return address.getType()==='customer-address';}),addressDefaultIndex=addressOptions.findIndex(function(address){return address.isDefaultBilling();});return Component.extend({defaults:{template:'Magento_Checkout/billing-address',selectedAddress:null,isNewAddressSelected:false,addressOptions:addressOptions,exports:{selectedAddress:'${ $.parentName }:selectedAddress'}},initConfig:function(){this._super();this.addressOptions.push(newAddressOption);return this;},initObservable:function(){this._super().observe('selectedAddress isNewAddressSelected').observe({isNewAddressSelected:!customer.isLoggedIn()||!addressOptions.length,selectedAddress:this.addressOptions[addressDefaultIndex]});return this;},addressOptionsText:function(address){return address.getAddressInline();},onAddressChange:function(address){this.isNewAddressSelected(address===newAddressOption);}});});","Magento_Checkout/js/view/summary/cart-items.min.js":"define(['ko','Magento_Checkout/js/model/totals','uiComponent','Magento_Checkout/js/model/step-navigator','Magento_Checkout/js/model/quote'],function(ko,totals,Component,stepNavigator,quote){'use strict';var useQty=window.checkoutConfig.useQty;return Component.extend({defaults:{template:'Magento_Checkout/summary/cart-items'},totals:totals.totals(),items:ko.observable([]),maxCartItemsToDisplay:window.checkoutConfig.maxCartItemsToDisplay,cartUrl:window.checkoutConfig.cartUrl,getItems:totals.getItems(),getItemsQty:function(){return parseFloat(this.totals['items_qty']);},getCartLineItemsCount:function(){return parseInt(totals.getItems()().length,10);},getCartSummaryItemsCount:function(){return useQty?this.getItemsQty():this.getCartLineItemsCount();},initialize:function(){this._super();this.setItems(totals.getItems()());totals.getItems().subscribe(function(items){this.setItems(items);}.bind(this));},setItems:function(items){if(items&&items.length>0){items=items.slice(parseInt(-this.maxCartItemsToDisplay,10));}\nthis.items(items);},isItemsBlockExpanded:function(){return quote.isVirtual()||stepNavigator.isProcessed('shipping');}});});","Magento_Checkout/js/view/summary/totals.min.js":"define(['Magento_Checkout/js/view/summary/abstract-total'],function(Component){'use strict';return Component.extend({isDisplayed:function(){return this.isFullMode();}});});","Magento_Checkout/js/view/summary/abstract-total.min.js":"define(['uiComponent','Magento_Checkout/js/model/quote','Magento_Catalog/js/price-utils','Magento_Checkout/js/model/totals','Magento_Checkout/js/model/step-navigator'],function(Component,quote,priceUtils,totals,stepNavigator){'use strict';return Component.extend({getFormattedPrice:function(price){return priceUtils.formatPriceLocale(price,quote.getPriceFormat());},getTotals:function(){return totals.totals();},isFullMode:function(){if(!this.getTotals()){return false;}\nreturn stepNavigator.isProcessed('shipping');}});});","Magento_Checkout/js/view/summary/grand-total.min.js":"define(['Magento_Checkout/js/view/summary/abstract-total','Magento_Checkout/js/model/quote'],function(Component,quote){'use strict';return Component.extend({defaults:{template:'Magento_Checkout/summary/grand-total'},isDisplayed:function(){return this.isFullMode();},getPureValue:function(){var totals=quote.getTotals()();if(totals){return totals['grand_total'];}\nreturn quote['grand_total'];},getValue:function(){return this.getFormattedPrice(this.getPureValue());}});});","Magento_Checkout/js/view/summary/shipping.min.js":"define(['jquery','underscore','Magento_Checkout/js/view/summary/abstract-total','Magento_Checkout/js/model/quote','Magento_SalesRule/js/view/summary/discount'],function($,_,Component,quote,discountView){'use strict';return Component.extend({defaults:{template:'Magento_Checkout/summary/shipping'},quoteIsVirtual:quote.isVirtual(),totals:quote.getTotals(),getShippingMethodTitle:function(){var shippingMethod,shippingMethodTitle='';if(!this.isCalculated()){return'';}\nshippingMethod=quote.shippingMethod();if(!_.isArray(shippingMethod)&&!_.isObject(shippingMethod)){return'';}\nif(typeof shippingMethod['method_title']!=='undefined'){shippingMethodTitle=' - '+shippingMethod['method_title'];}\nreturn shippingMethodTitle?shippingMethod['carrier_title']+shippingMethodTitle:shippingMethod['carrier_title'];},isCalculated:function(){return this.totals()&&this.isFullMode()&&quote.shippingMethod()!=null;},getValue:function(){var price;if(!this.isCalculated()){return this.notCalculatedMessage;}\nprice=this.totals()['shipping_amount'];return this.getFormattedPrice(price);},haveToShowCoupon:function(){var couponCode=this.totals()['coupon_code'];if(typeof couponCode==='undefined'){couponCode=false;}\nreturn couponCode&&!discountView().isDisplayed();},getCouponDescription:function(){if(!this.haveToShowCoupon()){return'';}\nreturn'('+this.totals()['coupon_code']+')';}});});","Magento_Checkout/js/view/summary/subtotal.min.js":"define(['Magento_Checkout/js/view/summary/abstract-total','Magento_Checkout/js/model/quote'],function(Component,quote){'use strict';return Component.extend({defaults:{template:'Magento_Checkout/summary/subtotal'},getPureValue:function(){var totals=quote.getTotals()();if(totals){return totals.subtotal;}\nreturn quote.subtotal;},getValue:function(){return this.getFormattedPrice(this.getPureValue());}});});","Magento_Checkout/js/view/summary/item/details.min.js":"define(['uiComponent','escaper'],function(Component,escaper){'use strict';return Component.extend({defaults:{template:'Magento_Checkout/summary/item/details',allowedTags:['b','strong','i','em','u']},getNameUnsanitizedHtml:function(quoteItem){var txt=document.createElement('textarea');txt.innerHTML=quoteItem.name;return escaper.escapeHtml(txt.value,this.allowedTags);},getValue:function(quoteItem){return quoteItem.name;}});});","Magento_Checkout/js/view/summary/item/details/thumbnail.min.js":"define(['uiComponent'],function(Component){'use strict';var imageData=window.checkoutConfig.imageData;return Component.extend({defaults:{template:'Magento_Checkout/summary/item/details/thumbnail'},displayArea:'before_details',imageData:imageData,getImageItem:function(item){if(this.imageData[item['item_id']]){return this.imageData[item['item_id']];}\nreturn[];},getSrc:function(item){if(this.imageData[item['item_id']]){return this.imageData[item['item_id']].src;}\nreturn null;},getWidth:function(item){if(this.imageData[item['item_id']]){return this.imageData[item['item_id']].width;}\nreturn null;},getHeight:function(item){if(this.imageData[item['item_id']]){return this.imageData[item['item_id']].height;}\nreturn null;},getAlt:function(item){if(this.imageData[item['item_id']]){return this.imageData[item['item_id']].alt;}\nreturn null;}});});","Magento_Checkout/js/view/summary/item/details/message.min.js":"define(['uiComponent'],function(Component){'use strict';var quoteMessages=window.checkoutConfig.quoteMessages;return Component.extend({defaults:{template:'Magento_Checkout/summary/item/details/message'},displayArea:'item_message',quoteMessages:quoteMessages,getMessage:function(item){if(this.quoteMessages[item['item_id']]){return this.quoteMessages[item['item_id']];}\nreturn null;}});});","Magento_Checkout/js/view/summary/item/details/subtotal.min.js":"define(['Magento_Checkout/js/view/summary/abstract-total'],function(viewModel){'use strict';return viewModel.extend({defaults:{displayArea:'after_details',template:'Magento_Checkout/summary/item/details/subtotal'},getValue:function(quoteItem){return this.getFormattedPrice(quoteItem['row_total']);}});});","Magento_Checkout/js/view/configure/product-customer-data.min.js":"require(['jquery','Magento_Customer/js/customer-data','underscore','domReady!'],function($,customerData,_){'use strict';var selectors={qtySelector:'#product_addtocart_form [name=\"qty\"]',productIdSelector:'#product_addtocart_form [name=\"product\"]',itemIdSelector:'#product_addtocart_form [name=\"item\"]'},cartData=customerData.get('cart'),productId=$(selectors.productIdSelector).val(),itemId=$(selectors.itemIdSelector).val(),productQty,productQtyInput,updateQty=function(){if(productQty||productQty===0){productQtyInput=productQtyInput||$(selectors.qtySelector);if(productQtyInput&&productQty.toString()!==productQtyInput.val()){productQtyInput.val(productQty);}}},setProductQty=function(data){var product;if(!(data&&data.items&&data.items.length&&productId)){return;}\nproduct=_.find(data.items,function(item){if(item['item_id']===itemId){return item['product_id']===productId||item['item_id']===productId;}});if(!product){return;}\nproductQty=product.qty;};cartData.subscribe(function(updateCartData){setProductQty(updateCartData);updateQty();});setProductQty(cartData());updateQty();});","Magento_Checkout/js/view/shipping-address/list.min.js":"define(['underscore','ko','mageUtils','uiComponent','uiLayout','Magento_Customer/js/model/address-list'],function(_,ko,utils,Component,layout,addressList){'use strict';var defaultRendererTemplate={parent:'${ $.$data.parentName }',name:'${ $.$data.name }',component:'Magento_Checkout/js/view/shipping-address/address-renderer/default',provider:'checkoutProvider'};return Component.extend({defaults:{template:'Magento_Checkout/shipping-address/list',visible:addressList().length>0,rendererTemplates:[]},initialize:function(){this._super().initChildren();addressList.subscribe(function(changes){var self=this;changes.forEach(function(change){if(change.status==='added'){self.createRendererComponent(change.value,change.index);}});},this,'arrayChange');return this;},initConfig:function(){this._super();this.rendererComponents=[];return this;},initChildren:function(){_.each(addressList(),this.createRendererComponent,this);return this;},createRendererComponent:function(address,index){var rendererTemplate,templateData,rendererComponent;if(index in this.rendererComponents){this.rendererComponents[index].address(address);}else{rendererTemplate=address.getType()!=undefined&&this.rendererTemplates[address.getType()]!=undefined?utils.extend({},defaultRendererTemplate,this.rendererTemplates[address.getType()]):defaultRendererTemplate;templateData={parentName:this.name,name:index};rendererComponent=utils.template(rendererTemplate,templateData);utils.extend(rendererComponent,{address:ko.observable(address)});layout([rendererComponent]);this.rendererComponents[index]=rendererComponent;}}});});","Magento_Checkout/js/view/shipping-address/address-renderer/default.min.js":"define(['jquery','ko','uiComponent','underscore','Magento_Checkout/js/action/select-shipping-address','Magento_Checkout/js/model/quote','Magento_Checkout/js/model/shipping-address/form-popup-state','Magento_Checkout/js/checkout-data','Magento_Customer/js/customer-data'],function($,ko,Component,_,selectShippingAddressAction,quote,formPopUpState,checkoutData,customerData){'use strict';var countryData=customerData.get('directory-data');return Component.extend({defaults:{template:'Magento_Checkout/shipping-address/address-renderer/default'},initObservable:function(){this._super();this.isSelected=ko.computed(function(){var isSelected=false,shippingAddress=quote.shippingAddress();if(shippingAddress){isSelected=shippingAddress.getKey()==this.address().getKey();}\nreturn isSelected;},this);return this;},getCountryName:function(countryId){return countryData()[countryId]!=undefined?countryData()[countryId].name:'';},getCustomAttributeLabel:function(attribute){var label;if(typeof attribute==='string'){return attribute;}\nif(attribute.label){return attribute.label;}\nif(_.isArray(attribute.value)){label=_.map(attribute.value,function(value){return this.getCustomAttributeOptionLabel(attribute['attribute_code'],value)||value;},this).join(', ');}else if(typeof attribute.value==='object'){label=_.map(Object.values(attribute.value)).join(', ');}else{label=this.getCustomAttributeOptionLabel(attribute['attribute_code'],attribute.value);}\nreturn label||attribute.value;},getCustomAttributeOptionLabel:function(attributeCode,value){var option,label,options=this.source.get('customAttributes')||{};if(options[attributeCode]){option=_.findWhere(options[attributeCode],{value:value});if(option){label=option.label;}}else if(value.file!==null){label=value.file;}\nreturn label;},selectAddress:function(){selectShippingAddressAction(this.address());checkoutData.setSelectedShippingAddress(this.address().getKey());},editAddress:function(){formPopUpState.isVisible(true);this.showPopup();},showPopup:function(){$('[data-open-modal=\"opc-new-shipping-address\"]').trigger('click');}});});","Magento_Checkout/js/view/payment/list.min.js":"define(['underscore','ko','mageUtils','uiComponent','Magento_Checkout/js/model/payment/method-list','Magento_Checkout/js/model/payment/renderer-list','uiLayout','Magento_Checkout/js/model/checkout-data-resolver','mage/translate','uiRegistry'],function(_,ko,utils,Component,paymentMethods,rendererList,layout,checkoutDataResolver,$t,registry){'use strict';return Component.extend({defaults:{template:'Magento_Checkout/payment-methods/list',visible:paymentMethods().length>0,configDefaultGroup:{name:'methodGroup',component:'Magento_Checkout/js/model/payment/method-group'},paymentGroupsList:[],defaultGroupTitle:$t('Select a new payment method')},initialize:function(){this._super().initDefaulGroup().initChildren();paymentMethods.subscribe(function(changes){checkoutDataResolver.resolvePaymentMethod();_.each(changes,function(change){if(change.status==='deleted'){this.removeRenderer(change.value.method);}},this);_.each(changes,function(change){if(change.status==='added'){this.createRenderer(change.value);}},this);},this,'arrayChange');return this;},initObservable:function(){this._super().observe(['paymentGroupsList']);return this;},initDefaulGroup:function(){layout([this.configDefaultGroup]);return this;},initChildren:function(){var self=this;_.each(paymentMethods(),function(paymentMethodData){self.createRenderer(paymentMethodData);});return this;},createComponent:function(payment){var rendererTemplate,rendererComponent,templateData;templateData={parentName:this.name,name:payment.name};rendererTemplate={parent:'${ $.$data.parentName }',name:'${ $.$data.name }',displayArea:payment.displayArea,component:payment.component};rendererComponent=utils.template(rendererTemplate,templateData);utils.extend(rendererComponent,{item:payment.item,config:payment.config});return rendererComponent;},createRenderer:function(paymentMethodData){var isRendererForMethod=false,currentGroup;registry.get(this.configDefaultGroup.name,function(defaultGroup){_.each(rendererList(),function(renderer){if(renderer.hasOwnProperty('typeComparatorCallback')&&typeof renderer.typeComparatorCallback=='function'){isRendererForMethod=renderer.typeComparatorCallback(renderer.type,paymentMethodData.method);}else{isRendererForMethod=renderer.type===paymentMethodData.method;}\nif(isRendererForMethod){currentGroup=renderer.group?renderer.group:defaultGroup;this.collectPaymentGroups(currentGroup);layout([this.createComponent({config:renderer.config,component:renderer.component,name:renderer.type,method:paymentMethodData.method,item:paymentMethodData,displayArea:currentGroup.displayArea})]);}}.bind(this));}.bind(this));},collectPaymentGroups:function(group){var groupsList=this.paymentGroupsList(),isGroupExists=_.some(groupsList,function(existsGroup){return existsGroup.alias===group.alias;});if(!isGroupExists){groupsList.push(group);groupsList=_.sortBy(groupsList,function(existsGroup){return existsGroup.sortOrder;});this.paymentGroupsList(groupsList);}},getGroupTitle:function(group){var title=group().title;if(group().isDefault()&&this.paymentGroupsList().length>1){title=this.defaultGroupTitle;}\nreturn title;},isPaymentMethodsAvailable:function(){return _.some(this.paymentGroupsList(),function(group){return this.regionHasElements(group.displayArea);},this);},removeRenderer:function(paymentMethodCode){var items;_.each(this.paymentGroupsList(),function(group){items=this.getRegion(group.displayArea);_.find(items(),function(value){if(value.item.method.indexOf(paymentMethodCode)===0){value.disposeSubscriptions();value.destroy();}});},this);}});});","Magento_Checkout/js/view/payment/email-validator.min.js":"define(['uiComponent','Magento_Checkout/js/model/payment/additional-validators','Magento_Checkout/js/model/customer-email-validator'],function(Component,additionalValidators,agreementValidator){'use strict';additionalValidators.registerValidator(agreementValidator);return Component.extend({});});","Magento_Checkout/js/view/payment/default.min.js":"define(['ko','jquery','uiComponent','Magento_Checkout/js/action/place-order','Magento_Checkout/js/action/select-payment-method','Magento_Checkout/js/model/quote','Magento_Customer/js/model/customer','Magento_Checkout/js/model/payment-service','Magento_Checkout/js/checkout-data','Magento_Checkout/js/model/checkout-data-resolver','uiRegistry','Magento_Checkout/js/model/payment/additional-validators','Magento_Ui/js/model/messages','uiLayout','Magento_Checkout/js/action/redirect-on-success'],function(ko,$,Component,placeOrderAction,selectPaymentMethodAction,quote,customer,paymentService,checkoutData,checkoutDataResolver,registry,additionalValidators,Messages,layout,redirectOnSuccessAction){'use strict';return Component.extend({redirectAfterPlaceOrder:true,isPlaceOrderActionAllowed:ko.observable(quote.billingAddress()!=null),afterPlaceOrder:function(){},initialize:function(){var billingAddressCode,billingAddressData,defaultAddressData;this._super().initChildren();quote.billingAddress.subscribe(function(address){this.isPlaceOrderActionAllowed(address!==null);},this);checkoutDataResolver.resolveBillingAddress();billingAddressCode='billingAddress'+this.getCode();registry.async('checkoutProvider')(function(checkoutProvider){defaultAddressData=checkoutProvider.get(billingAddressCode);if(defaultAddressData===undefined){return;}\nbillingAddressData=checkoutData.getBillingAddressFromData();if(billingAddressData){checkoutProvider.set(billingAddressCode,$.extend(true,{},defaultAddressData,billingAddressData));}\ncheckoutProvider.on(billingAddressCode,function(providerBillingAddressData){checkoutData.setBillingAddressFromData(providerBillingAddressData);},billingAddressCode);});return this;},initChildren:function(){this.messageContainer=new Messages();this.createMessagesComponent();return this;},createMessagesComponent:function(){var messagesComponent={parent:this.name,name:this.name+'.messages',displayArea:'messages',component:'Magento_Ui/js/view/messages',config:{messageContainer:this.messageContainer}};layout([messagesComponent]);return this;},placeOrder:function(data,event){var self=this;if(event){event.preventDefault();}\nif(this.validate()&&additionalValidators.validate()&&this.isPlaceOrderActionAllowed()===true){this.isPlaceOrderActionAllowed(false);this.getPlaceOrderDeferredObject().done(function(){self.afterPlaceOrder();if(self.redirectAfterPlaceOrder){redirectOnSuccessAction.execute();}}).always(function(){self.isPlaceOrderActionAllowed(true);});return true;}\nreturn false;},getPlaceOrderDeferredObject:function(){return $.when(placeOrderAction(this.getData(),this.messageContainer));},selectPaymentMethod:function(){selectPaymentMethodAction(this.getData());checkoutData.setSelectedPaymentMethod(this.item.method);return true;},isChecked:ko.computed(function(){return quote.paymentMethod()?quote.paymentMethod().method:null;}),isRadioButtonVisible:ko.computed(function(){return paymentService.getAvailablePaymentMethods().length!==1;}),getData:function(){return{'method':this.item.method,'po_number':null,'additional_data':null};},getTitle:function(){return this.item.title;},getCode:function(){return this.item.method;},validate:function(){return true;},getBillingAddressFormName:function(){return'billing-address-form-'+this.item.method;},disposeSubscriptions:function(){var billingAddressCode='billingAddress'+this.getCode();registry.async('checkoutProvider')(function(checkoutProvider){checkoutProvider.off(billingAddressCode);});}});});","Magento_Checkout/js/model/payment-service.min.js":"define(['underscore','Magento_Checkout/js/model/quote','Magento_Checkout/js/model/payment/method-list','Magento_Checkout/js/action/select-payment-method'],function(_,quote,methodList,selectPaymentMethod){'use strict';var isFreePaymentMethod=function(paymentMethod){return paymentMethod.method==='free';},getGrandTotal=function(){return quote.totals()['grand_total'];};return{isFreeAvailable:false,setPaymentMethods:function(methods){var freeMethod,filteredMethods,methodIsAvailable,methodNames;freeMethod=_.find(methods,isFreePaymentMethod);this.isFreeAvailable=!!freeMethod;if(freeMethod&&getGrandTotal()<=0){methods.splice(0,methods.length,freeMethod);selectPaymentMethod(freeMethod);}\nfilteredMethods=_.without(methods,freeMethod);if(filteredMethods.length===1){selectPaymentMethod(filteredMethods[0]);}else if(quote.paymentMethod()){methodIsAvailable=methods.some(function(item){return item.method===quote.paymentMethod().method;});if(!methodIsAvailable){selectPaymentMethod(null);}}\nmethodNames=_.pluck(methods,'method');_.map(methodList(),function(existingMethod){var existingMethodIndex=methodNames.indexOf(existingMethod.method);if(existingMethodIndex!==-1){methods[existingMethodIndex]=existingMethod;}});methodList(methods);},getAvailablePaymentMethods:function(){var allMethods=methodList().slice(),grandTotalOverZero=getGrandTotal()>0;if(!this.isFreeAvailable){return allMethods;}\nif(grandTotalOverZero){return _.reject(allMethods,isFreePaymentMethod);}\nreturn _.filter(allMethods,isFreePaymentMethod);}};});","Magento_Checkout/js/model/totals.min.js":"define(['ko','Magento_Checkout/js/model/quote','Magento_Customer/js/customer-data'],function(ko,quote,customerData){'use strict';var quoteItems=ko.observable(quote.totals().items),cartData=customerData.get('cart'),quoteSubtotal=parseFloat(quote.totals().subtotal),subtotalAmount=parseFloat(cartData().subtotalAmount);quote.totals.subscribe(function(newValue){quoteItems(newValue.items);});if(!isNaN(subtotalAmount)&&quoteSubtotal!==subtotalAmount&&quoteSubtotal!==0){customerData.reload(['cart'],false);}\nreturn{totals:quote.totals,isLoading:ko.observable(false),getItems:function(){return quoteItems;},getSegment:function(code){var i,total;if(!this.totals()){return null;}\nfor(i in this.totals()['total_segments']){total=this.totals()['total_segments'][i];if(total.code==code){return total;}}\nreturn null;}};});","Magento_Checkout/js/model/place-order.min.js":"define(['mage/storage','Magento_Checkout/js/model/error-processor','Magento_Checkout/js/model/full-screen-loader','Magento_Customer/js/customer-data','Magento_Checkout/js/model/payment/place-order-hooks','underscore'],function(storage,errorProcessor,fullScreenLoader,customerData,hooks,_){'use strict';return function(serviceUrl,payload,messageContainer){var headers={},redirectURL='';fullScreenLoader.startLoader();_.each(hooks.requestModifiers,function(modifier){modifier(headers,payload);});return storage.post(serviceUrl,JSON.stringify(payload),true,'application/json',headers).fail(function(response){errorProcessor.process(response,messageContainer);redirectURL=response.getResponseHeader('errorRedirectAction');if(redirectURL){setTimeout(function(){errorProcessor.redirectTo(redirectURL);},3000);}}).done(function(response){var clearData={'selectedShippingAddress':null,'shippingAddressFromData':null,'newCustomerShippingAddress':null,'selectedShippingRate':null,'selectedPaymentMethod':null,'selectedBillingAddress':null,'billingAddressFromData':null,'newCustomerBillingAddress':null};if(response.responseType!=='error'){customerData.set('checkout-data',clearData);}}).always(function(){fullScreenLoader.stopLoader();_.each(hooks.afterRequestListeners,function(listener){listener();});});};});","Magento_Checkout/js/model/full-screen-loader.min.js":"define(['jquery','rjsResolver'],function($,resolver){'use strict';var containerId='#checkout';return{startLoader:function(){$(containerId).trigger('processStart');},stopLoader:function(forceStop){var $elem=$(containerId),stop=$elem.trigger.bind($elem,'processStop');forceStop?stop():resolver(stop);}};});","Magento_Checkout/js/model/authentication-messages.min.js":"define(['ko','Magento_Ui/js/model/messages'],function(ko,Messages){'use strict';return new Messages();});","Magento_Checkout/js/model/postcode-validator.min.js":"define(['mageUtils'],function(utils){'use strict';return{validatedPostCodeExample:[],validate:function(postCode,countryId,postCodesPatterns){var pattern,regex,patterns=postCodesPatterns?postCodesPatterns[countryId]:window.checkoutConfig.postCodes[countryId];this.validatedPostCodeExample=[];if(!utils.isEmpty(postCode)&&!utils.isEmpty(patterns)){for(pattern in patterns){if(patterns.hasOwnProperty(pattern)){this.validatedPostCodeExample.push(patterns[pattern].example);regex=new RegExp(patterns[pattern].pattern);if(regex.test(postCode)){return true;}}}\nreturn false;}\nreturn true;}};});","Magento_Checkout/js/model/error-processor.min.js":"define(['mage/url','Magento_Ui/js/model/messageList','mage/translate'],function(url,globalMessageList,$t){'use strict';return{process:function(response,messageContainer){var error;messageContainer=messageContainer||globalMessageList;if(response.status==401){this.redirectTo(url.build('customer/account/login/'));}else{try{error=JSON.parse(response.responseText);}catch(exception){error={message:$t('Something went wrong with your request. Please try again later.')};}\nmessageContainer.addErrorMessage(error);}},redirectTo:function(redirectUrl){window.location.replace(redirectUrl);}};});","Magento_Checkout/js/model/shipping-rates-validation-rules.min.js":"define(['jquery'],function($){'use strict';var ratesRules={},checkoutConfig=window.checkoutConfig;return{registerRules:function(carrier,rules){if(checkoutConfig.activeCarriers.indexOf(carrier)!==-1){ratesRules[carrier]=rules.getRules();}},getRules:function(){return ratesRules;},getObservableFields:function(){var self=this,observableFields=[];$.each(self.getRules(),function(carrier,fields){$.each(fields,function(field){if(observableFields.indexOf(field)===-1){observableFields.push(field);}});});return observableFields;}};});","Magento_Checkout/js/model/address-converter.min.js":"define(['jquery','Magento_Checkout/js/model/new-customer-address','Magento_Customer/js/customer-data','mage/utils/objects','underscore'],function($,address,customerData,mageUtils,_){'use strict';var countryData=customerData.get('directory-data');return{formAddressDataToQuoteAddress:function(formData){var addressData=$.extend(true,{},formData),region,regionName=addressData.region,customAttributes;if(mageUtils.isObject(addressData.street)){addressData.street=this.objectToArray(addressData.street);}\naddressData.region={'region_id':addressData['region_id'],'region_code':addressData['region_code'],region:regionName};if(addressData['region_id']&&countryData()[addressData['country_id']]&&countryData()[addressData['country_id']].regions){region=countryData()[addressData['country_id']].regions[addressData['region_id']];if(region){addressData.region['region_id']=addressData['region_id'];addressData.region['region_code']=region.code;addressData.region.region=region.name;}}else if(!addressData['region_id']&&countryData()[addressData['country_id']]&&countryData()[addressData['country_id']].regions){addressData.region['region_code']='';addressData.region.region='';}\ndelete addressData['region_id'];if(addressData['custom_attributes']){addressData['custom_attributes']=_.map(addressData['custom_attributes'],function(value,key){customAttributes={'attribute_code':key,'value':value};if(typeof value==='boolean'){customAttributes={'attribute_code':key,'value':value,'label':value===true?'Yes':'No'};}\nreturn customAttributes;});}\nreturn address(addressData);},quoteAddressToFormAddressData:function(addrs){var self=this,output={},streetObject,customAttributesObject;$.each(addrs,function(key){if(addrs.hasOwnProperty(key)&&typeof addrs[key]!=='function'){output[self.toUnderscore(key)]=addrs[key];}});if(Array.isArray(addrs.street)){streetObject={};addrs.street.forEach(function(value,index){streetObject[index]=value;});output.street=streetObject;}\nif(Array.isArray(addrs.customAttributes)){customAttributesObject={};addrs.customAttributes.forEach(function(value){customAttributesObject[value.attribute_code]=value.value;});output.custom_attributes=customAttributesObject;}\nreturn output;},toUnderscore:function(string){return string.replace(/([A-Z])/g,function($1){return'_'+$1.toLowerCase();});},formDataProviderToFlatData:function(formProviderData,formIndex){var addressData={};$.each(formProviderData,function(path,value){var pathComponents=path.split('.'),dataObject={};pathComponents.splice(pathComponents.indexOf(formIndex),1);pathComponents.reverse();$.each(pathComponents,function(index,pathPart){var parent={};if(index==0){dataObject[pathPart]=value;}else{parent[pathPart]=dataObject;dataObject=parent;}});$.extend(true,addressData,dataObject);});return addressData;},objectToArray:function(object){var convertedArray=[];$.each(object,function(key){return typeof object[key]==='string'?convertedArray.push(object[key]):false;});return convertedArray.slice(0);},addressToEstimationAddress:function(addrs){var self=this,estimatedAddressData={};$.each(addrs,function(key){estimatedAddressData[self.toUnderscore(key)]=addrs[key];});return this.formAddressDataToQuoteAddress(estimatedAddressData);}};});","Magento_Checkout/js/model/default-validator.min.js":"define(['jquery','mageUtils','./default-validation-rules','mage/translate'],function($,utils,validationRules,$t){'use strict';return{validationErrors:[],validate:function(address){var self=this;this.validationErrors=[];$.each(validationRules.getRules(),function(field,rule){var message;if(rule.required&&utils.isEmpty(address[field])){message=$t('Field ')+field+$t(' is required.');self.validationErrors.push(message);}});return!this.validationErrors.length;}};});","Magento_Checkout/js/model/resource-url-manager.min.js":"define(['Magento_Customer/js/model/customer','Magento_Checkout/js/model/url-builder','mageUtils'],function(customer,urlBuilder,utils){'use strict';return{getUrlForTotalsEstimationForNewAddress:function(quote){var params=this.getCheckoutMethod()=='guest'?{cartId:quote.getQuoteId()}:{},urls={'guest':'/guest-carts/:cartId/totals-information','customer':'/carts/mine/totals-information'};return this.getUrl(urls,params);},getUrlForEstimationShippingMethodsForNewAddress:function(quote){var params=this.getCheckoutMethod()=='guest'?{quoteId:quote.getQuoteId()}:{},urls={'guest':'/guest-carts/:quoteId/estimate-shipping-methods','customer':'/carts/mine/estimate-shipping-methods'};return this.getUrl(urls,params);},getUrlForEstimationShippingMethodsByAddressId:function(quote){var params=this.getCheckoutMethod()=='guest'?{quoteId:quote.getQuoteId()}:{},urls={'default':'/carts/mine/estimate-shipping-methods-by-address-id'};return this.getUrl(urls,params);},getApplyCouponUrl:function(couponCode,quoteId){var params=this.getCheckoutMethod()=='guest'?{quoteId:quoteId}:{},urls={'guest':'/guest-carts/'+quoteId+'/coupons/'+encodeURIComponent(couponCode),'customer':'/carts/mine/coupons/'+encodeURIComponent(couponCode)};return this.getUrl(urls,params);},getCancelCouponUrl:function(quoteId){var params=this.getCheckoutMethod()=='guest'?{quoteId:quoteId}:{},urls={'guest':'/guest-carts/'+quoteId+'/coupons/','customer':'/carts/mine/coupons/'};return this.getUrl(urls,params);},getUrlForCartTotals:function(quote){var params=this.getCheckoutMethod()=='guest'?{quoteId:quote.getQuoteId()}:{},urls={'guest':'/guest-carts/:quoteId/totals','customer':'/carts/mine/totals'};return this.getUrl(urls,params);},getUrlForSetShippingInformation:function(quote){var params=this.getCheckoutMethod()=='guest'?{cartId:quote.getQuoteId()}:{},urls={'guest':'/guest-carts/:cartId/shipping-information','customer':'/carts/mine/shipping-information'};return this.getUrl(urls,params);},getUrl:function(urls,urlParams){var url;if(utils.isEmpty(urls)){return'Provided service call does not exist.';}\nif(!utils.isEmpty(urls['default'])){url=urls['default'];}else{url=urls[this.getCheckoutMethod()];}\nreturn urlBuilder.createUrl(url,urlParams);},getCheckoutMethod:function(){return customer.isLoggedIn()?'customer':'guest';}};});","Magento_Checkout/js/model/shipping-save-processor.min.js":"define(['Magento_Checkout/js/model/shipping-save-processor/default'],function(defaultProcessor){'use strict';var processors={};processors['default']=defaultProcessor;return{registerProcessor:function(type,processor){processors[type]=processor;},saveShippingInformation:function(type){var rates=[];if(processors[type]){rates=processors[type].saveShippingInformation();}else{rates=processors['default'].saveShippingInformation();}\nreturn rates;}};});","Magento_Checkout/js/model/default-post-code-resolver.min.js":"define([],function(){'use strict';var useDefaultPostCode;return{resolve:function(){return useDefaultPostCode?window.checkoutConfig.defaultPostcode:null;},setUseDefaultPostCode:function(shouldUseDefaultPostCode){useDefaultPostCode=shouldUseDefaultPostCode;return this;}};});","Magento_Checkout/js/model/new-customer-address.min.js":"define(['underscore','Magento_Checkout/js/model/default-post-code-resolver'],function(_,DefaultPostCodeResolver){'use strict';return function(addressData){var identifier=Date.now(),countryId=addressData['country_id']||addressData.countryId||window.checkoutConfig.defaultCountryId,regionId;if(addressData.region&&addressData.region['region_id']){regionId=addressData.region['region_id'];}else if(!addressData['region_id']){regionId=undefined;}else if(addressData['country_id']&&addressData['country_id']==window.checkoutConfig.defaultCountryId||!addressData['country_id']&&countryId==window.checkoutConfig.defaultCountryId){regionId=window.checkoutConfig.defaultRegionId||undefined;}\nreturn{email:addressData.email,countryId:countryId,regionId:regionId||addressData.regionId,regionCode:addressData.region?addressData.region['region_code']:null,region:addressData.region?addressData.region.region:null,customerId:addressData['customer_id']||addressData.customerId,street:addressData.street,company:addressData.company,telephone:addressData.telephone,fax:addressData.fax,postcode:addressData.postcode?addressData.postcode:DefaultPostCodeResolver.resolve(),city:addressData.city,firstname:addressData.firstname,lastname:addressData.lastname,middlename:addressData.middlename,prefix:addressData.prefix,suffix:addressData.suffix,vatId:addressData['vat_id'],saveInAddressBook:addressData['save_in_address_book'],customAttributes:addressData['custom_attributes'],extensionAttributes:addressData['extension_attributes'],isDefaultShipping:function(){return addressData['default_shipping'];},isDefaultBilling:function(){return addressData['default_billing'];},getType:function(){return'new-customer-address';},getKey:function(){return this.getType();},getCacheKey:function(){return this.getType()+identifier;},isEditable:function(){return true;},canUseForBilling:function(){return true;}};};});","Magento_Checkout/js/model/step-navigator.min.js":"define(['jquery','ko'],function($,ko){'use strict';var steps=ko.observableArray();return{steps:steps,stepCodes:[],validCodes:[],handleHash:function(){var hashString=window.location.hash.replace('#',''),isRequestedStepVisible;if(hashString===''){return false;}\nif($.inArray(hashString,this.validCodes)===-1){window.location.href=window.checkoutConfig.pageNotFoundUrl;return false;}\nisRequestedStepVisible=steps.sort(this.sortItems).some(function(element){return(element.code==hashString||element.alias==hashString)&&element.isVisible();});if(isRequestedStepVisible){return false;}\nsteps().sort(this.sortItems).forEach(function(element){if(element.code==hashString||element.alias==hashString){element.navigate(element);}else{element.isVisible(false);}});return false;},registerStep:function(code,alias,title,isVisible,navigate,sortOrder){var hash,active;if($.inArray(code,this.validCodes)!==-1){throw new DOMException('Step code ['+code+'] already registered in step navigator');}\nif(alias!=null){if($.inArray(alias,this.validCodes)!==-1){throw new DOMException('Step code ['+alias+'] already registered in step navigator');}\nthis.validCodes.push(alias);}\nthis.validCodes.push(code);steps.push({code:code,alias:alias!=null?alias:code,title:title,isVisible:isVisible,navigate:navigate,sortOrder:sortOrder});active=this.getActiveItemIndex();steps.each(function(elem,index){if(active!==index){elem.isVisible(false);}});this.stepCodes.push(code);hash=window.location.hash.replace('#','');if(hash!=''&&hash!=code){isVisible(false);}},sortItems:function(itemOne,itemTwo){return itemOne.sortOrder>itemTwo.sortOrder?1:-1;},getActiveItemIndex:function(){var activeIndex=0;steps().sort(this.sortItems).some(function(element,index){if(element.isVisible()){activeIndex=index;return true;}\nreturn false;});return activeIndex;},isProcessed:function(code){var activeItemIndex=this.getActiveItemIndex(),sortedItems=steps().sort(this.sortItems),requestedItemIndex=-1;sortedItems.forEach(function(element,index){if(element.code==code){requestedItemIndex=index;}});return activeItemIndex>requestedItemIndex;},navigateTo:function(code,scrollToElementId){var sortedItems=steps().sort(this.sortItems),bodyElem=$('body');scrollToElementId=scrollToElementId||null;if(!this.isProcessed(code)){return;}\nsortedItems.forEach(function(element){if(element.code==code){element.isVisible(true);bodyElem.animate({scrollTop:$('#'+code).offset().top},0,function(){window.location=window.checkoutConfig.checkoutUrl+'#'+code;});if(scrollToElementId&&$('#'+scrollToElementId).length){bodyElem.animate({scrollTop:$('#'+scrollToElementId).offset().top},0);}}else{element.isVisible(false);}});},setHash:function(hash){window.location.hash=hash;},next:function(){var activeIndex=0,code;steps().sort(this.sortItems).forEach(function(element,index){if(element.isVisible()){element.isVisible(false);activeIndex=index;}});if(steps().length>activeIndex+1){code=steps()[activeIndex+1].code;steps()[activeIndex+1].isVisible(true);this.setHash(code);document.body.scrollTop=document.documentElement.scrollTop=0;}}};});","Magento_Checkout/js/model/shipping-service.min.js":"define(['ko','Magento_Checkout/js/model/checkout-data-resolver'],function(ko,checkoutDataResolver){'use strict';var shippingRates=ko.observableArray([]);return{isLoading:ko.observable(false),setShippingRates:function(ratesData){shippingRates(ratesData);shippingRates.valueHasMutated();checkoutDataResolver.resolveShippingRates(ratesData);},getShippingRates:function(){return shippingRates;}};});","Magento_Checkout/js/model/shipping-rate-registry.min.js":"define([],function(){'use strict';var cache=[];return{get:function(addressKey){if(cache[addressKey]){return cache[addressKey];}\nreturn false;},set:function(addressKey,data){cache[addressKey]=data;}};});","Magento_Checkout/js/model/checkout-data-resolver.min.js":"define(['Magento_Customer/js/model/address-list','Magento_Checkout/js/model/quote','Magento_Checkout/js/checkout-data','Magento_Checkout/js/action/create-shipping-address','Magento_Checkout/js/action/select-shipping-address','Magento_Checkout/js/action/select-shipping-method','Magento_Checkout/js/model/payment-service','Magento_Checkout/js/action/select-payment-method','Magento_Checkout/js/model/address-converter','Magento_Checkout/js/action/select-billing-address','Magento_Checkout/js/action/create-billing-address','underscore'],function(addressList,quote,checkoutData,createShippingAddress,selectShippingAddress,selectShippingMethodAction,paymentService,selectPaymentMethodAction,addressConverter,selectBillingAddress,createBillingAddress,_){'use strict';var isBillingAddressResolvedFromBackend=false;return{resolveEstimationAddress:function(){var address;if(quote.isVirtual()){if(checkoutData.getBillingAddressFromData()){address=addressConverter.formAddressDataToQuoteAddress(checkoutData.getBillingAddressFromData());selectBillingAddress(address);}else{this.resolveBillingAddress();}}else if(checkoutData.getShippingAddressFromData()){address=addressConverter.formAddressDataToQuoteAddress(checkoutData.getShippingAddressFromData());selectShippingAddress(address);}else{this.resolveShippingAddress();}},resolveShippingAddress:function(){var newCustomerShippingAddress;if(!checkoutData.getShippingAddressFromData()&&window.checkoutConfig.shippingAddressFromData){checkoutData.setShippingAddressFromData(window.checkoutConfig.shippingAddressFromData);}\nnewCustomerShippingAddress=checkoutData.getNewCustomerShippingAddress();if(newCustomerShippingAddress){createShippingAddress(newCustomerShippingAddress);}\nthis.applyShippingAddress();},applyShippingAddress:function(isEstimatedAddress){var address,shippingAddress,isConvertAddress;if(addressList().length===0){address=addressConverter.formAddressDataToQuoteAddress(checkoutData.getShippingAddressFromData());selectShippingAddress(address);}\nshippingAddress=quote.shippingAddress();isConvertAddress=isEstimatedAddress||false;if(!shippingAddress){shippingAddress=this.getShippingAddressFromCustomerAddressList();if(shippingAddress){selectShippingAddress(isConvertAddress?addressConverter.addressToEstimationAddress(shippingAddress):shippingAddress);}}},resolveShippingRates:function(ratesData){var selectedShippingRate=checkoutData.getSelectedShippingRate(),availableRate=false;if(ratesData.length===1&&!quote.shippingMethod()){selectShippingMethodAction(ratesData[0]);return;}\nif(quote.shippingMethod()){availableRate=_.find(ratesData,function(rate){return rate['carrier_code']==quote.shippingMethod()['carrier_code']&&rate['method_code']==quote.shippingMethod()['method_code'];});}\nif(!availableRate&&selectedShippingRate){availableRate=_.find(ratesData,function(rate){return rate['carrier_code']+'_'+rate['method_code']===selectedShippingRate;});}\nif(!availableRate&&window.checkoutConfig.selectedShippingMethod){availableRate=_.find(ratesData,function(rate){var selectedShippingMethod=window.checkoutConfig.selectedShippingMethod;return rate['carrier_code']==selectedShippingMethod['carrier_code']&&rate['method_code']==selectedShippingMethod['method_code'];});}\nif(!availableRate){selectShippingMethodAction(null);}else{selectShippingMethodAction(availableRate);}},resolvePaymentMethod:function(){var availablePaymentMethods=paymentService.getAvailablePaymentMethods(),selectedPaymentMethod=checkoutData.getSelectedPaymentMethod();if(selectedPaymentMethod){availablePaymentMethods.some(function(payment){if(payment.method==selectedPaymentMethod){selectPaymentMethodAction(payment);}});}},resolveBillingAddress:function(){var selectedBillingAddress,newCustomerBillingAddressData;selectedBillingAddress=checkoutData.getSelectedBillingAddress();newCustomerBillingAddressData=checkoutData.getNewCustomerBillingAddress();if(selectedBillingAddress){if(selectedBillingAddress==='new-customer-billing-address'&&newCustomerBillingAddressData){selectBillingAddress(createBillingAddress(newCustomerBillingAddressData));}else{addressList.some(function(address){if(selectedBillingAddress===address.getKey()){selectBillingAddress(address);}});}}else{this.applyBillingAddress();}\nif(!isBillingAddressResolvedFromBackend&&!checkoutData.getBillingAddressFromData()&&!_.isEmpty(window.checkoutConfig.billingAddressFromData)&&!quote.billingAddress()){if(window.checkoutConfig.isBillingAddressFromDataValid===true){selectBillingAddress(createBillingAddress(window.checkoutConfig.billingAddressFromData));}else{checkoutData.setBillingAddressFromData(window.checkoutConfig.billingAddressFromData);}\nisBillingAddressResolvedFromBackend=true;}},applyBillingAddress:function(){var shippingAddress,isBillingAddressInitialized;if(quote.billingAddress()){selectBillingAddress(quote.billingAddress());return;}\nif(quote.isVirtual()||!quote.billingAddress()){isBillingAddressInitialized=addressList.some(function(addrs){if(addrs.isDefaultBilling()){selectBillingAddress(addrs);return true;}\nreturn false;});}\nshippingAddress=quote.shippingAddress();if(!isBillingAddressInitialized&&shippingAddress&&shippingAddress.canUseForBilling()&&(shippingAddress.isDefaultShipping()||!quote.isVirtual())){selectBillingAddress(quote.shippingAddress());}},getShippingAddressFromCustomerAddressList:function(){var shippingAddress=_.find(addressList(),function(address){return checkoutData.getSelectedShippingAddress()==address.getKey()});if(!shippingAddress){shippingAddress=_.find(addressList(),function(address){return address.isDefaultShipping();});}\nif(!shippingAddress&&addressList().length===1){shippingAddress=addressList()[0];}\nreturn shippingAddress;}};});","Magento_Checkout/js/model/sidebar.min.js":"define([],function(){'use strict';return{popUp:false,setPopup:function(popUp){this.popUp=popUp;},show:function(){if(this.popUp){this.popUp.modal('openModal');}},hide:function(){if(this.popUp){this.popUp.modal('closeModal');}}};});","Magento_Checkout/js/model/shipping-rate-service.min.js":"define(['Magento_Checkout/js/model/quote','Magento_Checkout/js/model/shipping-rate-processor/new-address','Magento_Checkout/js/model/shipping-rate-processor/customer-address'],function(quote,defaultProcessor,customerAddressProcessor){'use strict';var processors={};processors.default=defaultProcessor;processors['customer-address']=customerAddressProcessor;quote.shippingAddress.subscribe(function(){var type=quote.shippingAddress().getType();if(processors[type]){processors[type].getRates(quote.shippingAddress());}else{processors.default.getRates(quote.shippingAddress());}});return{registerProcessor:function(type,processor){processors[type]=processor;}};});","Magento_Checkout/js/model/quote.min.js":"define(['ko','underscore','domReady!'],function(ko,_){'use strict';var proceedTotalsData=function(data){if(_.isObject(data)&&_.isObject(data['extension_attributes'])){_.each(data['extension_attributes'],function(element,index){data[index]=element;});}\nreturn data;},billingAddress=ko.observable(null),shippingAddress=ko.observable(null),shippingMethod=ko.observable(null),paymentMethod=ko.observable(null),quoteData=window.checkoutConfig.quoteData,basePriceFormat=window.checkoutConfig.basePriceFormat,priceFormat=window.checkoutConfig.priceFormat,storeCode=window.checkoutConfig.storeCode,totalsData=proceedTotalsData(window.checkoutConfig.totalsData),totals=ko.observable(totalsData),collectedTotals=ko.observable({});return{totals:totals,shippingAddress:shippingAddress,shippingMethod:shippingMethod,billingAddress:billingAddress,paymentMethod:paymentMethod,guestEmail:null,getQuoteId:function(){return quoteData['entity_id'];},isVirtual:function(){return!!Number(quoteData['is_virtual']);},getPriceFormat:function(){return priceFormat;},getBasePriceFormat:function(){return basePriceFormat;},getItems:function(){return window.checkoutConfig.quoteItemData;},getTotals:function(){return totals;},setTotals:function(data){data=proceedTotalsData(data);totals(data);this.setCollectedTotals('subtotal_with_discount',parseFloat(data['subtotal_with_discount']));},setPaymentMethod:function(paymentMethodCode){paymentMethod(paymentMethodCode);},getPaymentMethod:function(){return paymentMethod;},getStoreCode:function(){return storeCode;},setCollectedTotals:function(code,value){var colTotals=collectedTotals();colTotals[code]=value;collectedTotals(colTotals);},getCalculatedTotal:function(){var total=0.;_.each(collectedTotals(),function(value){total+=value;});return total;}};});","Magento_Checkout/js/model/default-validation-rules.min.js":"define([],function(){'use strict';return{getRules:function(){return{'country_id':{'required':true}};}};});","Magento_Checkout/js/model/shipping-rates-validator.min.js":"define(['jquery','ko','./shipping-rates-validation-rules','../model/address-converter','../action/select-shipping-address','./postcode-validator','./default-validator','mage/translate','uiRegistry','Magento_Checkout/js/model/shipping-address/form-popup-state','Magento_Checkout/js/model/quote'],function($,ko,shippingRatesValidationRules,addressConverter,selectShippingAddress,postcodeValidator,defaultValidator,$t,uiRegistry,formPopUpState){'use strict';var checkoutConfig=window.checkoutConfig,validators=[],observedElements=[],postcodeElements=[],postcodeElementName='postcode';validators.push(defaultValidator);return{validateAddressTimeout:0,validateZipCodeTimeout:0,validateDelay:2000,registerValidator:function(carrier,validator){if(checkoutConfig.activeCarriers.indexOf(carrier)!==-1){validators.push(validator);}},validateAddressData:function(address){return validators.some(function(validator){return validator.validate(address);});},initFields:function(formPath){var self=this,elements=shippingRatesValidationRules.getObservableFields();if($.inArray(postcodeElementName,elements)===-1){elements.push(postcodeElementName);}\n$.each(elements,function(index,field){uiRegistry.async(formPath+'.'+field)(self.doElementBinding.bind(self));});},doElementBinding:function(element,force,delay){var observableFields=shippingRatesValidationRules.getObservableFields();if(element&&(observableFields.indexOf(element.index)!==-1||force)){if(element.index!==postcodeElementName){this.bindHandler(element,delay);}}\nif(element.index===postcodeElementName){this.bindHandler(element,delay);postcodeElements.push(element);}},bindChangeHandlers:function(elements,force,delay){var self=this;$.each(elements,function(index,elem){self.doElementBinding(elem,force,delay);});},bindHandler:function(element,delay){var self=this;delay=typeof delay==='undefined'?self.validateDelay:delay;if(element.component.indexOf('/group')!==-1){$.each(element.elems(),function(index,elem){self.bindHandler(elem);});}else{element.on('value',function(){clearTimeout(self.validateZipCodeTimeout);self.validateZipCodeTimeout=setTimeout(function(){if(element.index===postcodeElementName){self.postcodeValidation(element);}else{$.each(postcodeElements,function(index,elem){self.postcodeValidation(elem);});}},delay);if(!formPopUpState.isVisible()){clearTimeout(self.validateAddressTimeout);self.validateAddressTimeout=setTimeout(function(){self.validateFields();},delay);}});observedElements.push(element);}},postcodeValidation:function(postcodeElement){var countryId=$('select[name=\"country_id\"]:visible').val(),validationResult,warnMessage;if(postcodeElement==null||postcodeElement.value()==null){return true;}\npostcodeElement.warn(null);validationResult=postcodeValidator.validate(postcodeElement.value(),countryId);if(!validationResult){warnMessage=$t('Provided Zip/Postal Code seems to be invalid.');if(postcodeValidator.validatedPostCodeExample.length){warnMessage+=$t(' Example: ')+postcodeValidator.validatedPostCodeExample.join('; ')+'. ';}\nwarnMessage+=$t('If you believe it is the right one you can ignore this notice.');postcodeElement.warn(warnMessage);}\nreturn validationResult;},validateFields:function(){var addressFlat=addressConverter.formDataProviderToFlatData(this.collectObservedData(),'shippingAddress'),address;if(this.validateAddressData(addressFlat)){addressFlat=uiRegistry.get('checkoutProvider').shippingAddress;address=addressConverter.formAddressDataToQuoteAddress(addressFlat);selectShippingAddress(address);}},collectObservedData:function(){var observedValues={};$.each(observedElements,function(index,field){observedValues[field.dataScope]=field.value();});return observedValues;}};});","Magento_Checkout/js/model/billing-address-postcode-validator.min.js":"define(['jquery','Magento_Checkout/js/model/postcode-validator','mage/translate','uiRegistry'],function($,postcodeValidator,$t,uiRegistry){'use strict';var postcodeElementName='postcode';return{validateZipCodeTimeout:0,validateDelay:2000,initFields:function(formPath){var self=this;uiRegistry.async(formPath+'.'+postcodeElementName)(self.bindHandler.bind(self));},bindHandler:function(element,delay){var self=this;delay=typeof delay==='undefined'?self.validateDelay:delay;element.on('value',function(){clearTimeout(self.validateZipCodeTimeout);self.validateZipCodeTimeout=setTimeout(function(){self.postcodeValidation(element);},delay);});},postcodeValidation:function(postcodeElement){var countryId=$('select[name=\"country_id\"]:visible').val(),validationResult,warnMessage;if(postcodeElement==null||postcodeElement.value()==null){return true;}\npostcodeElement.warn(null);validationResult=postcodeValidator.validate(postcodeElement.value(),countryId);if(!validationResult){warnMessage=$t('Provided Zip/Postal Code seems to be invalid.');if(postcodeValidator.validatedPostCodeExample.length){warnMessage+=$t(' Example: ')+postcodeValidator.validatedPostCodeExample.join('; ')+'. ';}\nwarnMessage+=$t('If you believe it is the right one you can ignore this notice.');postcodeElement.warn(warnMessage);}\nreturn validationResult;}};});","Magento_Checkout/js/model/customer-email-validator.min.js":"define(['jquery','Magento_Customer/js/model/customer','mage/validation'],function($,customer){'use strict';return{validate:function(){var emailValidationResult=customer.isLoggedIn(),loginFormSelector='form[data-role=email-with-possible-login]';if(!customer.isLoggedIn()){$(loginFormSelector).validation();emailValidationResult=Boolean($(loginFormSelector+' input[name=username]').valid());}\nreturn emailValidationResult;}};});","Magento_Checkout/js/model/url-builder.min.js":"define(['jquery'],function($){'use strict';return{method:'rest',storeCode:window.checkoutConfig.storeCode,version:'V1',serviceUrl:':method/:storeCode/:version',createUrl:function(url,params){var completeUrl=this.serviceUrl+url;return this.bindParams(completeUrl,params);},bindParams:function(url,params){var urlParts;params.method=this.method;params.storeCode=this.storeCode;params.version=this.version;urlParts=url.split('/');urlParts=urlParts.filter(Boolean);$.each(urlParts,function(key,part){part=part.replace(':','');if(params[part]!=undefined){urlParts[key]=params[part];}});return urlParts.join('/');}};});","Magento_Checkout/js/model/cart/estimate-service.min.js":"define(['Magento_Checkout/js/model/quote','Magento_Checkout/js/model/shipping-rate-processor/new-address','Magento_Checkout/js/model/cart/totals-processor/default','Magento_Checkout/js/model/shipping-service','Magento_Checkout/js/model/cart/cache','Magento_Customer/js/customer-data'],function(quote,defaultProcessor,totalsDefaultProvider,shippingService,cartCache,customerData){'use strict';var rateProcessors={},totalsProcessors={},estimateTotalsAndUpdateRates=function(){var type=quote.shippingAddress().getType();if(quote.isVirtual()||window.checkoutConfig.activeCarriers&&window.checkoutConfig.activeCarriers.length===0){totalsProcessors['default']=totalsDefaultProvider;totalsProcessors[type]?totalsProcessors[type].estimateTotals(quote.shippingAddress()):totalsProcessors['default'].estimateTotals(quote.shippingAddress());}else{if(!cartCache.isChanged('address',quote.shippingAddress())&&!cartCache.isChanged('cartVersion',customerData.get('cart')()['data_id'])&&cartCache.get('rates')){shippingService.setShippingRates(cartCache.get('rates'));return;}\nrateProcessors['default']=defaultProcessor;rateProcessors[type]?rateProcessors[type].getRates(quote.shippingAddress()):rateProcessors['default'].getRates(quote.shippingAddress());shippingService.getShippingRates().subscribe(function(rates){cartCache.set('rates',rates);});}},estimateTotalsShipping=function(){totalsDefaultProvider.estimateTotals(quote.shippingAddress());},estimateTotalsBilling=function(){var type=quote.billingAddress().getType();if(quote.isVirtual()){totalsProcessors['default']=totalsDefaultProvider;totalsProcessors[type]?totalsProcessors[type].estimateTotals(quote.billingAddress()):totalsProcessors['default'].estimateTotals(quote.billingAddress());}};quote.shippingAddress.subscribe(estimateTotalsAndUpdateRates);quote.shippingMethod.subscribe(estimateTotalsShipping);quote.billingAddress.subscribe(estimateTotalsBilling);});","Magento_Checkout/js/model/cart/cache.min.js":"define(['underscore','Magento_Customer/js/customer-data','mageUtils'],function(_,storage,utils){'use strict';var cacheKey='cart-data',cartData={totals:null,address:null,cartVersion:null,shippingMethodCode:null,shippingCarrierCode:null,rates:null},setData=function(checkoutData){storage.set(cacheKey,checkoutData);},getData=function(key){var data=key?storage.get(cacheKey)()[key]:storage.get(cacheKey)();if(_.isEmpty(storage.get(cacheKey)())){setData(utils.copy(cartData));}\nreturn data;},getMethodName=function(name,prefix,suffix){prefix=prefix||'';suffix=suffix||'';return prefix+name.charAt(0).toUpperCase()+name.slice(1)+suffix;};return{cartData:cartData,requiredFields:['countryId','region','regionId','postcode'],get:function(key){var methodName=getMethodName(key,'_get');if(key===cacheKey){return getData();}\nif(this[methodName]){return this[methodName]();}\nreturn getData(key);},set:function(key,value){var methodName=getMethodName(key,'_set'),obj;if(key===cacheKey){_.each(value,function(val,k){this.set(k,val);},this);return;}\nif(this[methodName]){this[methodName](value);}else{obj=getData();obj[key]=value;setData(obj);}},clear:function(key){var methodName=getMethodName(key,'_clear');if(key===cacheKey){setData(this.cartData);return;}\nif(this[methodName]){this[methodName]();}else{this.set(key,null);}},isChanged:function(key,value){var methodName=getMethodName(key,'_is','Changed');if(this[methodName]){return this[methodName](value);}\nreturn this.get(key)!==value;},_isAddressChanged:function(address){return JSON.stringify(_.pick(this.get('address'),this.requiredFields))!==JSON.stringify(_.pick(address,this.requiredFields));},_isSubtotalChanged:function(subtotal){var cached=parseFloat(this.get('totals').subtotal);return subtotal!==cached;}};});","Magento_Checkout/js/model/cart/totals-processor/default.min.js":"define(['underscore','Magento_Checkout/js/model/resource-url-manager','Magento_Checkout/js/model/quote','mage/storage','Magento_Checkout/js/model/totals','Magento_Checkout/js/model/error-processor','Magento_Checkout/js/model/cart/cache','Magento_Customer/js/customer-data'],function(_,resourceUrlManager,quote,storage,totalsService,errorProcessor,cartCache,customerData){'use strict';var loadFromServer=function(address){var serviceUrl,payload;totalsService.isLoading(true);serviceUrl=resourceUrlManager.getUrlForTotalsEstimationForNewAddress(quote);payload={addressInformation:{address:_.pick(address,cartCache.requiredFields)}};if(quote.shippingMethod()&&quote.shippingMethod()['method_code']){payload.addressInformation['shipping_method_code']=quote.shippingMethod()['method_code'];payload.addressInformation['shipping_carrier_code']=quote.shippingMethod()['carrier_code'];}\nreturn storage.post(serviceUrl,JSON.stringify(payload),false).done(function(result){var data={totals:result,address:address,cartVersion:customerData.get('cart')()['data_id'],shippingMethodCode:null,shippingCarrierCode:null};if(quote.shippingMethod()&&quote.shippingMethod()['method_code']){data.shippingMethodCode=quote.shippingMethod()['method_code'];data.shippingCarrierCode=quote.shippingMethod()['carrier_code'];}\nquote.setTotals(result);cartCache.set('cart-data',data);}).fail(function(response){errorProcessor.process(response);}).always(function(){totalsService.isLoading(false);});};return{requiredFields:cartCache.requiredFields,estimateTotals:function(address){return loadFromServer(address);}};});","Magento_Checkout/js/model/shipping-rate-processor/new-address.min.js":"define(['Magento_Checkout/js/model/resource-url-manager','Magento_Checkout/js/model/quote','mage/storage','Magento_Checkout/js/model/shipping-service','Magento_Checkout/js/model/shipping-rate-registry','Magento_Checkout/js/model/error-processor'],function(resourceUrlManager,quote,storage,shippingService,rateRegistry,errorProcessor){'use strict';return{getRates:function(address){var cache,serviceUrl,payload;shippingService.isLoading(true);cache=rateRegistry.get(address.getCacheKey());serviceUrl=resourceUrlManager.getUrlForEstimationShippingMethodsForNewAddress(quote);payload=JSON.stringify({address:{'street':address.street,'city':address.city,'region_id':address.regionId,'region':address.region,'country_id':address.countryId,'postcode':address.postcode,'email':address.email,'customer_id':address.customerId,'firstname':address.firstname,'lastname':address.lastname,'middlename':address.middlename,'prefix':address.prefix,'suffix':address.suffix,'vat_id':address.vatId,'company':address.company,'telephone':address.telephone,'fax':address.fax,'custom_attributes':address.customAttributes,'save_in_address_book':address.saveInAddressBook}});if(cache){shippingService.setShippingRates(cache);shippingService.isLoading(false);}else{storage.post(serviceUrl,payload,false).done(function(result){rateRegistry.set(address.getCacheKey(),result);shippingService.setShippingRates(result);}).fail(function(response){shippingService.setShippingRates([]);errorProcessor.process(response);}).always(function(){shippingService.isLoading(false);});}}};});","Magento_Checkout/js/model/shipping-rate-processor/customer-address.min.js":"define(['Magento_Checkout/js/model/resource-url-manager','Magento_Checkout/js/model/quote','mage/storage','Magento_Checkout/js/model/shipping-service','Magento_Checkout/js/model/shipping-rate-registry','Magento_Checkout/js/model/error-processor'],function(resourceUrlManager,quote,storage,shippingService,rateRegistry,errorProcessor){'use strict';return{getRates:function(address){var cache;shippingService.isLoading(true);cache=rateRegistry.get(address.getKey());if(cache){shippingService.setShippingRates(cache);shippingService.isLoading(false);}else{storage.post(resourceUrlManager.getUrlForEstimationShippingMethodsByAddressId(),JSON.stringify({addressId:address.customerAddressId}),false).done(function(result){rateRegistry.set(address.getKey(),result);shippingService.setShippingRates(result);}).fail(function(response){shippingService.setShippingRates([]);errorProcessor.process(response);}).always(function(){shippingService.isLoading(false);});}}};});","Magento_Checkout/js/model/shipping-address/form-popup-state.min.js":"define(['ko'],function(ko){'use strict';return{isVisible:ko.observable(false)};});","Magento_Checkout/js/model/payment/place-order-hooks.min.js":"define([],function(){'use strict';return{requestModifiers:[],afterRequestListeners:[]};});","Magento_Checkout/js/model/payment/method-group.min.js":"define(['uiElement','mage/translate'],function(Element,$t){'use strict';var DEFAULT_GROUP_ALIAS='default';return Element.extend({defaults:{alias:DEFAULT_GROUP_ALIAS,title:$t('Payment Method'),sortOrder:100,displayArea:'payment-methods-items-${ $.alias }'},isDefault:function(){return this.alias===DEFAULT_GROUP_ALIAS;}});});","Magento_Checkout/js/model/payment/method-converter.min.js":"define(['underscore'],function(_){'use strict';return function(methods){_.each(methods,function(method){if(method.hasOwnProperty('code')){method.method=method.code;delete method.code;}});return methods;};});","Magento_Checkout/js/model/payment/additional-validators.min.js":"define([],function(){'use strict';var validators=[];return{registerValidator:function(validator){validators.push(validator);},getValidators:function(){return validators;},validate:function(hideError){var validationResult=true;hideError=hideError||false;if(validators.length<=0){return validationResult;}\nvalidators.forEach(function(item){if(item.validate(hideError)==false){validationResult=false;return false;}});return validationResult;}};});","Magento_Checkout/js/model/payment/method-list.min.js":"define(['ko'],function(ko){'use strict';return ko.observableArray([]);});","Magento_Checkout/js/model/payment/renderer-list.min.js":"define(['ko'],function(ko){'use strict';return ko.observableArray([]);});","Magento_Checkout/js/model/shipping-save-processor/payload-extender.min.js":"define([],function(){'use strict';return function(payload){payload.addressInformation['extension_attributes']={};return payload;};});","Magento_Checkout/js/model/shipping-save-processor/default.min.js":"define(['ko','Magento_Checkout/js/model/quote','Magento_Checkout/js/model/resource-url-manager','mage/storage','Magento_Checkout/js/model/payment-service','Magento_Checkout/js/model/payment/method-converter','Magento_Checkout/js/model/error-processor','Magento_Checkout/js/model/full-screen-loader','Magento_Checkout/js/action/select-billing-address','Magento_Checkout/js/model/shipping-save-processor/payload-extender'],function(ko,quote,resourceUrlManager,storage,paymentService,methodConverter,errorProcessor,fullScreenLoader,selectBillingAddressAction,payloadExtender){'use strict';return{saveShippingInformation:function(){var payload;if(!quote.billingAddress()&&quote.shippingAddress().canUseForBilling()){selectBillingAddressAction(quote.shippingAddress());}\npayload={addressInformation:{'shipping_address':quote.shippingAddress(),'billing_address':quote.billingAddress(),'shipping_method_code':quote.shippingMethod()['method_code'],'shipping_carrier_code':quote.shippingMethod()['carrier_code']}};payloadExtender(payload);fullScreenLoader.startLoader();return storage.post(resourceUrlManager.getUrlForSetShippingInformation(quote),JSON.stringify(payload)).done(function(response){quote.setTotals(response.totals);paymentService.setPaymentMethods(methodConverter(response['payment_methods']));fullScreenLoader.stopLoader();}).fail(function(response){errorProcessor.process(response);fullScreenLoader.stopLoader();});}};});","Magento_Checkout/js/action/create-shipping-address.min.js":"define(['Magento_Customer/js/model/address-list','Magento_Checkout/js/model/address-converter'],function(addressList,addressConverter){'use strict';return function(addressData){var address=addressConverter.formAddressDataToQuoteAddress(addressData),isAddressUpdated=addressList().some(function(currentAddress,index,addresses){if(currentAddress.getKey()==address.getKey()){addresses[index]=address;return true;}\nreturn false;});if(!isAddressUpdated){addressList.push(address);}else{addressList.valueHasMutated();}\nreturn address;};});","Magento_Checkout/js/action/place-order.min.js":"define(['Magento_Checkout/js/model/quote','Magento_Checkout/js/model/url-builder','Magento_Customer/js/model/customer','Magento_Checkout/js/model/place-order'],function(quote,urlBuilder,customer,placeOrderService){'use strict';return function(paymentData,messageContainer){var serviceUrl,payload;payload={cartId:quote.getQuoteId(),billingAddress:quote.billingAddress(),paymentMethod:paymentData};if(customer.isLoggedIn()){serviceUrl=urlBuilder.createUrl('/carts/mine/payment-information',{});}else{serviceUrl=urlBuilder.createUrl('/guest-carts/:quoteId/payment-information',{quoteId:quote.getQuoteId()});payload.email=quote.guestEmail;}\nreturn placeOrderService(serviceUrl,payload,messageContainer);};});","Magento_Checkout/js/action/redirect-on-success.min.js":"define(['mage/url','Magento_Checkout/js/model/full-screen-loader'],function(url,fullScreenLoader){'use strict';return{redirectUrl:window.checkoutConfig.defaultSuccessPageUrl,execute:function(){fullScreenLoader.startLoader();this.redirectToSuccessPage();},redirectToSuccessPage:function(){window.location.replace(url.build(this.redirectUrl));}};});","Magento_Checkout/js/action/select-payment-method.min.js":"define(['Magento_Checkout/js/model/quote'],function(quote){'use strict';return function(paymentMethod){if(paymentMethod){paymentMethod.__disableTmpl={title:true};}\nquote.paymentMethod(paymentMethod);};});","Magento_Checkout/js/action/set-payment-information-extended.min.js":"define(['Magento_Checkout/js/model/quote','Magento_Checkout/js/model/url-builder','mage/storage','Magento_Checkout/js/model/error-processor','Magento_Customer/js/model/customer','Magento_Checkout/js/action/get-totals','Magento_Checkout/js/model/full-screen-loader','underscore','Magento_Checkout/js/model/payment/place-order-hooks'],function(quote,urlBuilder,storage,errorProcessor,customer,getTotalsAction,fullScreenLoader,_,hooks){'use strict';var filterTemplateData=function(data){return _.each(data,function(value,key,list){if(_.isArray(value)||_.isObject(value)){list[key]=filterTemplateData(value);}\nif(key==='__disableTmpl'||key==='title'){delete list[key];}});};return function(messageContainer,paymentData,skipBilling){var serviceUrl,payload,headers={};paymentData=filterTemplateData(paymentData);skipBilling=skipBilling||false;payload={cartId:quote.getQuoteId(),paymentMethod:paymentData};if(!customer.isLoggedIn()){serviceUrl=urlBuilder.createUrl('/guest-carts/:cartId/set-payment-information',{cartId:quote.getQuoteId()});payload.email=quote.guestEmail;}else{serviceUrl=urlBuilder.createUrl('/carts/mine/set-payment-information',{});}\nif(skipBilling===false){payload.billingAddress=quote.billingAddress();}\nfullScreenLoader.startLoader();_.each(hooks.requestModifiers,function(modifier){modifier(headers,payload);});return storage.post(serviceUrl,JSON.stringify(payload),true,'application/json',headers).fail(function(response){errorProcessor.process(response,messageContainer);}).always(function(){fullScreenLoader.stopLoader();_.each(hooks.afterRequestListeners,function(listener){listener();});});};});","Magento_Checkout/js/action/create-billing-address.min.js":"define(['Magento_Checkout/js/model/address-converter'],function(addressConverter){'use strict';return function(addressData){var address=addressConverter.formAddressDataToQuoteAddress(addressData);address.getType=function(){return'new-customer-billing-address';};return address;};});","Magento_Checkout/js/action/select-shipping-method.min.js":"define(['../model/quote'],function(quote){'use strict';return function(shippingMethod){quote.shippingMethod(shippingMethod);};});","Magento_Checkout/js/action/select-billing-address.min.js":"define(['jquery','../model/quote'],function($,quote){'use strict';return function(billingAddress){var address=null;if(quote.shippingAddress()&&billingAddress.getCacheKey()==quote.shippingAddress().getCacheKey()){address=$.extend(true,{},billingAddress);address.saveInAddressBook=null;}else{address=billingAddress;}\nquote.billingAddress(address);};});","Magento_Checkout/js/action/set-shipping-information.min.js":"define(['../model/quote','Magento_Checkout/js/model/shipping-save-processor'],function(quote,shippingSaveProcessor){'use strict';return function(){return shippingSaveProcessor.saveShippingInformation(quote.shippingAddress().getType());};});","Magento_Checkout/js/action/get-payment-information.min.js":"define(['jquery','Magento_Checkout/js/model/quote','Magento_Checkout/js/model/url-builder','mage/storage','Magento_Checkout/js/model/error-processor','Magento_Customer/js/model/customer','Magento_Checkout/js/model/payment/method-converter','Magento_Checkout/js/model/payment-service'],function($,quote,urlBuilder,storage,errorProcessor,customer,methodConverter,paymentService){'use strict';return function(deferred,messageContainer){var serviceUrl;deferred=deferred||$.Deferred();if(!customer.isLoggedIn()){serviceUrl=urlBuilder.createUrl('/guest-carts/:cartId/payment-information',{cartId:quote.getQuoteId()});}else{serviceUrl=urlBuilder.createUrl('/carts/mine/payment-information',{});}\nreturn storage.get(serviceUrl,false).done(function(response){quote.setTotals(response.totals);paymentService.setPaymentMethods(methodConverter(response['payment_methods']));deferred.resolve();}).fail(function(response){errorProcessor.process(response,messageContainer);deferred.reject();});};});","Magento_Checkout/js/action/set-payment-information.min.js":"define(['Magento_Checkout/js/action/set-payment-information-extended'],function(setPaymentInformationExtended){'use strict';return function(messageContainer,paymentData){return setPaymentInformationExtended(messageContainer,paymentData,false);};});","Magento_Checkout/js/action/recollect-shipping-rates.min.js":"define(['Magento_Checkout/js/model/quote','Magento_Checkout/js/action/select-shipping-address','Magento_Checkout/js/model/shipping-rate-registry'],function(quote,selectShippingAddress,rateRegistry){'use strict';return function(){var shippingAddress=null;if(!quote.isVirtual()){shippingAddress=quote.shippingAddress();rateRegistry.set(shippingAddress.getCacheKey(),null);selectShippingAddress(shippingAddress);}};});","Magento_Checkout/js/action/update-shopping-cart.min.js":"define(['Magento_Ui/js/modal/alert','Magento_Ui/js/modal/confirm','jquery','mage/translate','jquery-ui-modules/widget','mage/validation'],function(alert,confirm,$,$t){'use strict';$.widget('mage.updateShoppingCart',{options:{validationURL:'',eventName:'updateCartItemQty',updateCartActionContainer:'',isCartHasUpdatedContent:false},_create:function(){this._on(this.element,{'submit':this.onSubmit});this._on('[data-role=cart-item-qty]',{'change':function(){this.isCartHasUpdatedContent=true;}});this._on('ul.pages-items',{'click a':function(event){if(this.isCartHasUpdatedContent){event.preventDefault();this.changePageConfirm($(event.currentTarget).attr('href'));}}});},changePageConfirm:function(nextPageUrl){confirm({title:$t('Are you sure you want to leave the page?'),content:$t('Changes you made to the cart will not be saved.'),actions:{confirm:function(){window.location.href=nextPageUrl;}},buttons:[{text:$t('Cancel'),class:'action-secondary action-dismiss',click:function(event){this.closeModal(event);}},{text:$t('Leave'),class:'action-primary action-accept',click:function(event){this.closeModal(event,true);}}]});},onSubmit:function(event){var action=this.element.find(this.options.updateCartActionContainer).val();if(!this.options.validationURL||action==='empty_cart'){return true;}\nif(this.isValid()){event.preventDefault();this.validateItems(this.options.validationURL,this.element.serialize());}\nreturn false;},isValid:function(){return this.element.validation()&&this.element.validation('isValid');},validateItems:function(url,data){$.extend(data,{'form_key':$.mage.cookies.get('form_key')});$.ajax({url:url,data:data,type:'post',dataType:'json',context:this,beforeSend:function(){$(document.body).trigger('processStart');},complete:function(){$(document.body).trigger('processStop');}}).done(function(response){if(response.success){this.onSuccess();}else{this.onError(response);}}).fail(function(){this.submitForm();});},onSuccess:function(){$(document).trigger('ajax:'+this.options.eventName);this.submitForm();},onError:function(response){var that=this,elm,responseData=[];try{responseData=JSON.parse(response['error_message']);}catch(error){}\nif(response['error_message']){try{$.each(responseData,function(index,data){if(data.itemId!==undefined){elm=$('#cart-'+data.itemId+'-qty');elm.val(elm.attr('data-item-qty'));}\nresponse['error_message']=data.error;});}catch(e){}\nalert({content:response['error_message'],actions:{always:function(){that.submitForm();}}});}else{this.submitForm();}},submitForm:function(){this.element.off('submit',this.onSubmit).on('submit',function(){$(document.body).trigger('processStart');}).trigger('submit');}});return $.mage.updateShoppingCart;});","Magento_Checkout/js/action/get-totals.min.js":"define(['jquery','../model/quote','Magento_Checkout/js/model/resource-url-manager','Magento_Checkout/js/model/error-processor','mage/storage','Magento_Checkout/js/model/totals'],function($,quote,resourceUrlManager,errorProcessor,storage,totals){'use strict';return function(callbacks,deferred){deferred=deferred||$.Deferred();totals.isLoading(true);return storage.get(resourceUrlManager.getUrlForCartTotals(quote),false).done(function(response){var proceed=true;totals.isLoading(false);if(callbacks.length>0){$.each(callbacks,function(index,callback){proceed=proceed&&callback();});}\nif(proceed){quote.setTotals(response);deferred.resolve();}}).fail(function(response){totals.isLoading(false);deferred.reject();errorProcessor.process(response);}).always(function(){totals.isLoading(false);});};});","Magento_Checkout/js/action/set-billing-address.min.js":"define(['jquery','Magento_Checkout/js/model/quote','Magento_Checkout/js/model/url-builder','mage/storage','Magento_Checkout/js/model/error-processor','Magento_Customer/js/model/customer','Magento_Checkout/js/model/full-screen-loader','Magento_Checkout/js/action/get-payment-information'],function($,quote,urlBuilder,storage,errorProcessor,customer,fullScreenLoader,getPaymentInformationAction){'use strict';return function(messageContainer){var serviceUrl,payload;if(!customer.isLoggedIn()){serviceUrl=urlBuilder.createUrl('/guest-carts/:cartId/billing-address',{cartId:quote.getQuoteId()});payload={cartId:quote.getQuoteId(),address:quote.billingAddress()};}else{serviceUrl=urlBuilder.createUrl('/carts/mine/billing-address',{});payload={cartId:quote.getQuoteId(),address:quote.billingAddress()};}\nfullScreenLoader.startLoader();return storage.post(serviceUrl,JSON.stringify(payload)).done(function(){var deferred=$.Deferred();getPaymentInformationAction(deferred);$.when(deferred).done(function(){fullScreenLoader.stopLoader();});}).fail(function(response){errorProcessor.process(response,messageContainer);fullScreenLoader.stopLoader();});};});","Magento_Checkout/js/action/select-shipping-address.min.js":"define(['Magento_Checkout/js/model/quote'],function(quote){'use strict';return function(shippingAddress){quote.shippingAddress(shippingAddress);};});","Magento_LoginAsCustomerFrontendUi/js/login.min.js":"define(['jquery','Magento_Customer/js/customer-data','Magento_Customer/js/section-config'],function($,customerData,sectionConfig){'use strict';return function(config){customerData.reload(sectionConfig.getSectionNames()).done(function(){window.location.href=config.redirectUrl;});};});","Magento_LoginAsCustomerFrontendUi/js/view/loginAsCustomer.min.js":"define(['jquery','underscore','uiComponent','Magento_Customer/js/customer-data','mage/translate'],function($,_,Component,customer){'use strict';return Component.extend({defaults:{isVisible:false},initialize:function(){var customerData,loggedAsCustomerData;this._super();customerData=customer.get('customer');loggedAsCustomerData=customer.get('loggedAsCustomer');customerData.subscribe(function(data){this.fullname=data.fullname;this.updateBanner();}.bind(this));loggedAsCustomerData.subscribe(function(data){this.adminUserId=data.adminUserId;this.websiteName=data.websiteName;this.updateBanner();}.bind(this));this.fullname=customerData().fullname;this.adminUserId=loggedAsCustomerData().adminUserId;this.websiteName=loggedAsCustomerData().websiteName;this.updateBanner();},initObservable:function(){this._super().observe(['isVisible','notificationText']);return this;},updateBanner:function(){if(this.adminUserId!==undefined){this.isVisible(this.adminUserId);}\nif(this.fullname!==undefined&&this.websiteName!==undefined){this.notificationText($.mage.__('You are connected as <strong>%1</strong> on %2').replace('%1',_.escape(this.fullname)).replace('%2',_.escape(this.websiteName)));}}});});","Magento_Sales/js/gift-message.min.js":"define(['jquery','jquery-ui-modules/widget'],function($){'use strict';$.widget('mage.giftMessage',{options:{rowPrefix:'#order-item-row-',linkPrefix:'#order-item-gift-message-link-',duration:100,expandedClass:'expanded',expandedContentClass:'expanded-content',lastClass:'last'},_create:function(){this.element.on('click',$.proxy(this._toggleGiftMessage,this));},_toggleGiftMessage:function(event){var element=$(event.target),options=this.options,itemId=element.data('item-id'),link=$(options.linkPrefix+itemId),row=$(options.rowPrefix+itemId),region=$('#'+element.attr('aria-controls'));region.toggleClass(options.expandedContentClass,options.duration,function(){if(region.attr('aria-expanded')==='true'){region.attr('aria-expanded','false');if(region.hasClass(options.lastClass)){row.addClass(options.lastClass);}}else{region.attr('aria-expanded','true');if(region.hasClass(options.lastClass)){row.removeClass(options.lastClass);}}\nlink.toggleClass(options.expandedClass);});event.preventDefault();}});return $.mage.giftMessage;});","Magento_Sales/js/orders-returns.min.js":"define(['jquery','jquery-ui-modules/widget'],function($){'use strict';$.widget('mage.ordersReturns',{options:{zipCode:'#oar-zip',emailAddress:'#oar-email',searchType:'#quick-search-type-id'},_create:function(){$(this.options.searchType).on('change',$.proxy(this._showIdentifyBlock,this)).trigger('change');},_showIdentifyBlock:function(e){var value=$(e.target).val();$(this.options.zipCode).toggle(value==='zip');$(this.options.emailAddress).toggle(value==='email');}});return $.mage.ordersReturns;});","Magento_Sales/js/view/last-ordered-items.min.js":"define(['uiComponent','Magento_Customer/js/customer-data','underscore'],function(Component,customerData,_){'use strict';return Component.extend({defaults:{isShowAddToCart:false},initialize:function(){this._super();this.lastOrderedItems=customerData.get('last-ordered-items');this.lastOrderedItems.subscribe(this.checkSalableItems.bind(this));this.checkSalableItems();return this;},initObservable:function(){this._super().observe('isShowAddToCart');return this;},checkSalableItems:function(){var isShowAddToCart=_.some(this.lastOrderedItems().items,{'is_saleable':true});this.isShowAddToCart(isShowAddToCart);}});});","Magento_Dhl/js/view/shipping-rates-validation.min.js":"define(['uiComponent','Magento_Checkout/js/model/shipping-rates-validator','Magento_Checkout/js/model/shipping-rates-validation-rules','Magento_Dhl/js/model/shipping-rates-validator','Magento_Dhl/js/model/shipping-rates-validation-rules'],function(Component,defaultShippingRatesValidator,defaultShippingRatesValidationRules,dhlShippingRatesValidator,dhlShippingRatesValidationRules){'use strict';defaultShippingRatesValidator.registerValidator('dhl',dhlShippingRatesValidator);defaultShippingRatesValidationRules.registerRules('dhl',dhlShippingRatesValidationRules);return Component;});","Magento_Dhl/js/model/shipping-rates-validation-rules.min.js":"define([],function(){'use strict';return{getRules:function(){return{'postcode':{'required':true},'country_id':{'required':true},'city':{'required':true}};}};});","Magento_Dhl/js/model/shipping-rates-validator.min.js":"define(['jquery','mageUtils','Magento_Dhl/js/model/shipping-rates-validation-rules','mage/translate'],function($,utils,validationRules,$t){'use strict';return{validationErrors:[],validate:function(address){var self=this;this.validationErrors=[];$.each(validationRules.getRules(),function(field,rule){var message;if(rule.required&&utils.isEmpty(address[field])){message=$t('Field ')+field+$t(' is required.');self.validationErrors.push(message);}});return!this.validationErrors.length;}};});","Magento_Wishlist/js/search.min.js":"define(['jquery','jquery-ui-modules/widget'],function($){'use strict';$.widget('mage.wishlistSearch',{_create:function(){this.element.on('change',$.proxy(this._toggleForm,this));},_toggleForm:function(){switch(this.element.val()){case'name':$(this.options.emailFormSelector).hide();$(this.options.nameFormSelector).show();break;case'email':$(this.options.nameFormSelector).hide();$(this.options.emailFormSelector).show();break;default:$(this.options.emailFormSelector).add(this.options.nameFormSelector).hide();}}});return $.mage.wishlistSearch;});","Magento_Wishlist/js/add-to-wishlist.min.js":"define(['jquery','jquery-ui-modules/widget'],function($){'use strict';$.widget('mage.addToWishlist',{options:{bundleInfo:'div.control [name^=bundle_option]',configurableInfo:'.super-attribute-select',groupedInfo:'#super-product-table input',downloadableInfo:'#downloadable-links-list input',customOptionsInfo:'.product-custom-option',qtyInfo:'#qty',actionElement:'[data-action=\"add-to-wishlist\"]',productListWrapper:'.product-item-info',productPageWrapper:'.product-info-main'},_create:function(){this._bind();},_bind:function(){var options=this.options,dataUpdateFunc='_updateWishlistData',validateProductQty='_validateWishlistQty',changeCustomOption='change '+options.customOptionsInfo,changeQty='change '+options.qtyInfo,updateWishlist='click '+options.actionElement,events={},key;if('productType'in options){if(typeof options.productType==='string'){options.productType=[options.productType];}}else{options.productType=[];}\nevents[changeCustomOption]=dataUpdateFunc;events[changeQty]=dataUpdateFunc;events[updateWishlist]=validateProductQty;for(key in options.productType){if(options.productType.hasOwnProperty(key)&&options.productType[key]+'Info'in options){events['change '+options[options.productType[key]+'Info']]=dataUpdateFunc;}}\nthis._on(events);},_updateWishlistData:function(event){var dataToAdd={},isFileUploaded=false,handleObjSelector=null,self=this;if(event.handleObj.selector==this.options.qtyInfo){this._updateAddToWishlistButton({},event);event.stopPropagation();return;}\nhandleObjSelector=$(event.currentTarget).closest('form').find(event.handleObj.selector);handleObjSelector.each(function(index,element){if($(element).is('input[type=text]')||$(element).is('input[type=email]')||$(element).is('input[type=number]')||$(element).is('input[type=hidden]')||$(element).is('input[type=checkbox]:checked')||$(element).is('input[type=radio]:checked')||$(element).is('textarea')||$('#'+element.id+' option:selected').length){if($(element).data('selector')||$(element).attr('name')){dataToAdd=$.extend({},dataToAdd,self._getElementData(element));}\nreturn;}\nif($(element).is('input[type=file]')&&$(element).val()){isFileUploaded=true;}});if(isFileUploaded){this.bindFormSubmit();}\nthis._updateAddToWishlistButton(dataToAdd,event);event.stopPropagation();},_updateAddToWishlistButton:function(dataToAdd,event){var self=this,buttons=this._getAddToWishlistButton(event);buttons.each(function(index,element){var params=$(element).data('post'),currentTarget=event.currentTarget,targetElement,targetValue;if(!params){params={'data':{}};}else if($(currentTarget).data('selector')||$(currentTarget).attr('name')){targetElement=self._getElementData(currentTarget);targetValue=Object.keys(targetElement)[0];if(params.data.hasOwnProperty(targetValue)&&!dataToAdd.hasOwnProperty(targetValue)){delete params.data[targetValue];}}\nparams.data=$.extend({},params.data,dataToAdd,{'qty':$(self.options.qtyInfo).val()});$(element).data('post',params);});},_getAddToWishlistButton:function(event){var productListWrapper=$(event.currentTarget).closest(this.options.productListWrapper);if(productListWrapper.length){return productListWrapper.find(this.options.actionElement);}\nreturn $(this.options.actionElement);},_arrayDiffByKeys:function(array1,array2){var result={};$.each(array1,function(key,value){if(key.indexOf('option')===-1){return;}\nif(!array2[key]){result[key]=value;}});return result;},_getElementData:function(element){var data,elementName,elementValue;element=$(element);data={};elementName=element.data('selector')?element.data('selector'):element.attr('name');elementValue=element.val();if(element.is('select[multiple]')&&elementValue!==null){if(elementName.substr(elementName.length-2)=='[]'){elementName=elementName.substring(0,elementName.length-2);}\n$.each(elementValue,function(key,option){data[elementName+'['+option+']']=option;});}else if(elementName.substr(elementName.length-2)=='[]'){elementName=elementName.substring(0,elementName.length-2);data[elementName+'['+elementValue+']']=elementValue;}else{data[elementName]=elementValue;}\nreturn data;},_removeExcessiveData:function(params,dataToAdd){var dataToRemove=this._arrayDiffByKeys(params.data,dataToAdd);$.each(dataToRemove,function(key){delete params.data[key];});},bindFormSubmit:function(){var self=this;$('[data-action=\"add-to-wishlist\"]').on('click',function(event){var element,params,form,action;event.stopPropagation();event.preventDefault();element=$('input[type=file]'+self.options.customOptionsInfo);params=$(event.currentTarget).data('post');form=$(element).closest('form');action=params.action;if(params.data.id){$('<input>',{type:'hidden',name:'id',value:params.data.id}).appendTo(form);}\nif(params.data.uenc){action+='uenc/'+params.data.uenc;}\n$(form).attr('action',action).trigger('submit');});},_validateWishlistQty:function(event){var element=$(this.options.qtyInfo);if(!(element.validation()&&element.validation('isValid'))){event.preventDefault();event.stopPropagation();return;}}});return $.mage.addToWishlist;});","Magento_Wishlist/js/wishlist.min.js":"define(['jquery','mage/template','Magento_Ui/js/modal/alert','jquery-ui-modules/widget','mage/validation/validation','mage/dataPost'],function($,mageTemplate,alert){'use strict';$.widget('mage.wishlist',{options:{dataAttribute:'item-id',nameFormat:'qty[{0}]',btnRemoveSelector:'[data-role=remove]',qtySelector:'[data-role=qty]',addToCartSelector:'[data-role=tocart]',addAllToCartSelector:'[data-role=all-tocart]',commentInputType:'textarea',infoList:false},_create:function(){var _this=this;if(!this.options.infoList){this.element.on('addToCart',function(event,context){var urlParams;event.stopPropagation(event);$(context).data('stop-processing',true);urlParams=_this._getItemsToCartParams($(context).parents('[data-row=product-item]').find(_this.options.addToCartSelector));$.mage.dataPost().postData(urlParams);return false;}).on('click',this.options.btnRemoveSelector,$.proxy(function(event){event.preventDefault();$.mage.dataPost().postData($(event.currentTarget).data('post-remove'));},this)).on('click',this.options.addToCartSelector,$.proxy(this._beforeAddToCart,this)).on('click',this.options.addAllToCartSelector,$.proxy(this._addAllWItemsToCart,this)).on('focusin focusout',this.options.commentInputType,$.proxy(this._focusComment,this));}\nthis.element.mage('validation',{errorPlacement:function(error,element){error.insertAfter(element.next());}});},_beforeAddToCart:function(event){var elem=$(event.currentTarget),itemId=elem.data(this.options.dataAttribute),qtyName=$.validator.format(this.options.nameFormat,itemId),qtyValue=elem.parents().find('[name=\"'+qtyName+'\"]').val(),params=elem.data('post');if(params){params.data=$.extend({},params.data,{'qty':qtyValue});elem.data('post',params);}},_getItemsToCartParams:function(elem){var itemId,url,qtyName,qtyValue;if(elem.data(this.options.dataAttribute)){itemId=elem.data(this.options.dataAttribute);url=this.options.addToCartUrl;qtyName=$.validator.format(this.options.nameFormat,itemId);qtyValue=elem.parents().find('[name=\"'+qtyName+'\"]').val();url.data.item=itemId;url.data.qty=qtyValue;return url;}},_addAllWItemsToCart:function(){var urlParams=this.options.addAllToCartUrl,separator=urlParams.action.indexOf('?')>=0?'&':'?';this.element.find(this.options.qtySelector).each(function(index,element){urlParams.action+=separator+$(element).prop('name')+'='+encodeURIComponent($(element).val());separator='&';});$.mage.dataPost().postData(urlParams);},_focusComment:function(e){var commentInput=e.currentTarget;if(commentInput.value===''||commentInput.value===this.options.commentString){commentInput.value=commentInput.value===this.options.commentString?'':this.options.commentString;}}});$.widget('mage.wishlist',$.mage.wishlist,{options:{selectAllCheckbox:'#select-all',parentContainer:'#wishlist-table'},_create:function(){var selectAllCheckboxParent,checkboxCount;this._super();selectAllCheckboxParent=$(this.options.selectAllCheckbox).parents(this.options.parentContainer);checkboxCount=selectAllCheckboxParent.find('input:checkbox:not('+this.options.selectAllCheckbox+')').length;$(this.options.selectAllCheckbox).on('click',function(){selectAllCheckboxParent.find('input:checkbox').attr('checked',$(this).is(':checked'));});selectAllCheckboxParent.on('click','input:checkbox:not('+this.options.selectAllCheckbox+')',$.proxy(function(){var checkedCount=selectAllCheckboxParent.find('input:checkbox:checked:not('+this.options.selectAllCheckbox+')').length;$(this.options.selectAllCheckbox).attr('checked',checkboxCount===checkedCount);},this));}});$.widget('mage.wishlist',$.mage.wishlist,{_create:function(){this._super();if(this.options.infoList){this.element.on('addToCart',$.proxy(function(event,context){this.element.find('input:checkbox').attr('checked',false);$(context).closest('tr').find('input:checkbox').attr('checked',true);this.element.trigger('submit');},this));this._checkBoxValidate();}},_checkBoxValidate:function(){this.element.validation({submitHandler:$.proxy(function(form){if($(form).find('input:checkbox:checked').length){form.submit();}else{alert({content:this.options.checkBoxValidationMessage});}},this)});}});$.widget('mage.wishlist',$.mage.wishlist,{options:{formTmplSelector:'#form-tmpl',formTmplId:'#wishlist-hidden-form'},_create:function(){var _this=this;this._super();this.element.on('click','[data-wishlist-to-giftregistry]',function(){var json=$(this).data('wishlist-to-giftregistry'),tmplJson={item:json.itemId,entity:json.entity,url:json.url},html=mageTemplate(_this.options.formTmplSelector,{data:tmplJson});$(html).appendTo('body');$(_this.options.formTmplId).trigger('submit');});}});return $.mage.wishlist;});","Magento_Wishlist/js/product/addtowishlist-button.min.js":"define(['Magento_Ui/js/grid/columns/column','Magento_Catalog/js/product/uenc-processor','Magento_Catalog/js/product/list/column-status-validator'],function(Element,uencProcessor,columnStatusValidator){'use strict';return Element.extend({defaults:{label:''},getDataPost:function(row){return uencProcessor(row['extension_attributes']['wishlist_button'].url);},isAllowed:function(){return columnStatusValidator.isValid(this.source(),'add_to_wishlist','show_buttons');},getLabel:function(){return this.label;}});});","Magento_Wishlist/js/view/wishlist.min.js":"define(['uiComponent','Magento_Customer/js/customer-data'],function(Component,customerData){'use strict';return Component.extend({initialize:function(){this._super();this.wishlist=customerData.get('wishlist');}});});","Fawry_FawryPay/js/view/payment/fawry_express.min.js":"define(['uiComponent','Magento_Checkout/js/model/payment/renderer-list'],function(Component,rendererList){'use strict';rendererList.push({type:'fawry_express',component:'Fawry_FawryPay/js/view/payment/method-renderer/fawry_express'},);return Component.extend({});});","Fawry_FawryPay/js/view/payment/method-renderer.min.js":"define(['uiComponent','Magento_Checkout/js/model/payment/renderer-list'],function(Component,rendererList){'use strict';rendererList.push({type:'fawry_express',component:'Fawry_FawryPay/js/view/payment/method-renderer/fawry_express'},{type:'fawry_cards',component:'Fawry_FawryPay/js/view/payment/method-renderer/fawry_cards'},{type:'fawry_cash',component:'Fawry_FawryPay/js/view/payment/method-renderer/fawry_cash'},);return Component.extend({});});","Fawry_FawryPay/js/view/payment/method-renderer/fawry_cash.min.js":"define(['ko','jquery','Magento_Checkout/js/view/payment/default','Magento_Checkout/js/action/place-order','mage/url',],function(ko,$,Component,placeOrderAction,url){'use strict';return Component.extend({self:this,defaults:{template:'Fawry_FawryPay/payment/fawryPay'},initialize:function(){this._super();},isActive:function(){return true;},getCode:function(){return'fawry_cash';},getTitle:function(){let url=require.toUrl('Fawry_FawryPay/images/fawrypaylogo.png');return`FawryPay Reference Number<img src=\"${url}\" width=\"50px\" height=\"30px\" style=\"margin-left: 15px\"/>`;},});});","Fawry_FawryPay/js/view/payment/method-renderer/fawry_express.min.js":"define(['ko','jquery','Magento_Checkout/js/view/payment/default','Magento_Checkout/js/action/place-order','mage/url',],function(ko,$,Component,placeOrderAction,url){'use strict';return Component.extend({self:this,defaults:{template:'Fawry_FawryPay/payment/fawryPay'},initialize:function(){this._super();},isActive:function(){return true;},getCode:function(){return'fawry_express';},getTitle:function(){return window.checkoutConfig.payment[this.getCode()].title;},});});","Fawry_FawryPay/js/view/payment/method-renderer/fawry_cards.min.js":"define(['ko','jquery','Magento_Checkout/js/view/payment/default','Magento_Checkout/js/action/place-order','mage/url',],function(ko,$,Component,placeOrderAction,url){'use strict';return Component.extend({self:this,defaults:{template:'Fawry_FawryPay/payment/fawryPay'},initialize:function(){this._super();},isActive:function(){return true;},getCode:function(){return'fawry_cards';},getTitle:function(){return\"Credit Cards\";},});});","MGS_ExtraGallery/js/swatch-renderer.min.js":"define(['jquery','underscore','jquery/ui','jquery/jquery.parsequery','zoom-images','mage/translate','mgsslick','mgsowlcarousel','magnificPopup'],function($){'use strict';return function(widget){$.widget('mage.SwatchRenderer',widget,{_init:function(){if(_.isEmpty(this.options.jsonConfig.images)){this.options.useAjax=true;this._debouncedLoadProductMedia=_.debounce(this._LoadProductMedia.bind(this),500);}\nif(this.options.jsonConfig!==''&&this.options.jsonSwatchConfig!==''){this.options.jsonConfig.mappedAttributes=_.clone(this.options.jsonConfig.attributes);this._sortAttributes();this._RenderControls();this._setPreSelectedGallery();$(this.element).trigger('swatch.initialized');}else{console.log('SwatchRenderer: No input data received');}\nthis.options.tierPriceTemplate=$(this.options.tierPriceTemplateSelector).html();var currentImages=[];$(\".product.media .item-image\").each(function(index){var item=[];var url_video=\"\";var type='image';if($(this).find('.popup-video').length){url_video=$(this).find('.popup-video').attr('href');}else if($(this).find('.lb.video-link').length){url_video=$(this).find('.lb.video-link').attr('href');}\nif(url_video){type='external-video';}\nitem['zoom']=$(this).attr('data-zoom');item['img']=$(this).find('.img-fluid').attr('src');item['full']=$(this).find('.img-fluid').attr('src');item['thumb']=$(this).find('.img-fluid').attr('src');item['media_type']=type;item['videoUrl']=url_video;currentImages.push(item);});this.options.mediaGalleryInitial=currentImages;},_ProductMediaCallback:function($this,response){var isProductViewExist=$('body.catalog-product-view').length>0;if($('.product_quickview_content').length>0){isProductViewExist=1;}\nvar $main=isProductViewExist?$this.parents('.column.main'):$this.parents('.product-item-info'),$widget=this,images=[],support=function(e){return e.hasOwnProperty('large')&&e.hasOwnProperty('medium')&&e.hasOwnProperty('small');};if(_.size($widget)<1||!support(response)){this.updateBaseImage(this.options.mediaGalleryInitial,$main,isProductViewExist);return;}\nimages.push({full:response.large,img:response.medium,thumb:response.small,zoom:response.zoom,media_type:response.media_type,videoUrl:response.video_url,isMain:true});if(response.hasOwnProperty('gallery')){$.each(response.gallery,function(){if(!support(this)||response.large===this.large){return;}\nimages.push({full:this.large,img:this.medium,zoom:this.zoom,thumb:this.small,media_type:this.media_type,videoUrl:this.video_url});});}\nthis.updateBaseImage(images,$main,isProductViewExist);},_setImageType:function(images){var initial;if(this.options.mediaGalleryInitial.length>0){initial=this.options.mediaGalleryInitial[0].img;}else{initial='';}\nif(images[0].img===initial){images=$.extend(true,[],this.options.mediaGalleryInitial);}else{images.map(function(img){if(!img.type){img.type='image';}});}\nreturn images;},updateBaseImage:function(images,context,isProductViewExist){var justAnImage=images[0],updateImg,imagesToUpdate,gallery=context.find(this.options.mediaGallerySelector).data('gallery'),zoomimg=$('#zoom_image').val(),glr_layout=$('#glr_layout').val(),lbox_image=$('#lbox_image').val(),$_rtl=$('#rtl_theme').val(),item;if(isProductViewExist){imagesToUpdate=images.length?this._setImageType($.extend(true,[],images)):[];if(glr_layout==1||glr_layout==2){this.updateBaseImageList(imagesToUpdate);}else if(glr_layout==3){this.updateFullOwl(imagesToUpdate);}else if(glr_layout==4){this.updateBaseImageVertical(imagesToUpdate);}else if(glr_layout==5){this.updateBaseImageHorizontal(imagesToUpdate);}else if(glr_layout==6){this.updateBaseImageOwl(imagesToUpdate);}\nif(zoomimg==1&&glr_layout!=6){this.zoomImage();}\nif(lbox_image==1&&glr_layout!=6){this.lightBoxGallery();}}else if(justAnImage&&justAnImage.img){context.find('.product-image-photo').attr('src',justAnImage.full);}},updateBaseImageList:function(imagesToUpdate){var img_change=\"\";img_change='<div class=\"gallery-list\">'+this.generateHtmlImage(imagesToUpdate)+'</div>';$(\".product.media\").html(img_change);},updateBaseImageOwl:function(imagesToUpdate){var img_change=\"\";var view_type=$('#view_type').val();img_change='<div id=\"owl-carousel-gallery\" class=\"owl-carousel gallery-horizontal\">'+this.generateHtmlImage(imagesToUpdate)+'</div>';$(\".product.media\").html(img_change);var $_rtl=$('#rtl_theme').val();$('#owl-carousel-gallery').owlCarousel({items:1,autoplay:false,lazyLoad:false,nav:true,dots:false,navText:[\"<i class='fa fa-angle-left'></i>\",\"<i class='fa fa-angle-right'></i>\"],rtl:$_rtl,});},updateFullOwl:function(imagesToUpdate){var img_change=\"\";var view_type=$('#view_type').val();img_change='<div id=\"owl-carousel-gallery\" class=\"owl-carousel gallery-5\">'+this.generateHtmlImage(imagesToUpdate)+'</div>';$(\".product.media\").html(img_change);if($('#zoom_image').val()==1){$('#owl-carousel-gallery').on('initialized.owl.carousel',function(event){$(\".imgzoom\").each(function(index){zoomElement(this);});});}\nvar $_rtl=$('#rtl_theme').val();$('#owl-carousel-gallery').owlCarousel({items:$('#item-xl').val(),autoplay:false,lazyLoad:false,loop:true,nav:true,dots:false,navText:[\"<span></span>\",\"<span></span>\"],rtl:$_rtl,responsive:{0:{items:$('#item-xs').val()},576:{items:$('#item-sm').val()},768:{items:$('#item-md').val()},992:{items:$('#item-lg').val()},1200:{items:$('#item-xl').val()}}});},updateBaseImageHorizontal:function(imagesToUpdate){var img_change=\"\";img_change='<div class=\"product-thumbnail\">';img_change=img_change+'<div id=\"owl-carousel-gallery\" class=\"owl-carousel gallery-horizontal\">'+this.generateHtmlImage(imagesToUpdate)+'</div>';if(imagesToUpdate.length>1){img_change=img_change+'<div class=\"horizontal-thumbnail-row\"><div id=\"horizontal-thumbnail\" class=\"owl-carousel horizontal-thumbnail\">'+this.generateHtmlThumb(imagesToUpdate)+'</div></div>';}\nimg_change=img_change+'</div>';$(\".product.media\").html(img_change);var $_rtl=$('#rtl_theme').val();$('#owl-carousel-gallery').owlCarousel({items:1,autoplay:false,lazyLoad:false,nav:true,dots:false,navText:[\"<span></span>\",\"<span></span>\"],rtl:false});$('#owl-carousel-gallery').on('changed.owl.carousel',function(event){var index=event.item.index;$('#horizontal-thumbnail .item-thumb').removeClass('active');$('#horizontal-thumbnail .item-thumb[data-owl='+index+']').addClass('active');$('#horizontal-thumbnail').trigger('to.owl.carousel',index);});var $_rtl=$('#rtl_theme').val();$('#horizontal-thumbnail').owlCarousel({items:4,autoplay:false,lazyLoad:false,nav:true,dots:false,rtl:false,navText:[\"<span></span>\",\"<span></span>\"],responsive:{0:{items:2},576:{items:3},992:{items:4},1200:{items:4}},});$('#horizontal-thumbnail .item-thumb').on('click',function(){$('#horizontal-thumbnail .item-thumb').removeClass('active');var position=$(this).attr('data-owl');$('#owl-carousel-gallery').trigger('to.owl.carousel',position);$(this).addClass('active');});},updateSingleSlide:function(imagesToUpdate){var img_change='<div class=\"container\"><div class=\"product-thumbnail gallery-2\">';img_change=img_change+'<div id=\"owl-carousel-gallery\" class=\"owl-carousel gallery-horizontal\">'+this.generateHtmlImage(imagesToUpdate)+'</div>';if(imagesToUpdate.length>1){img_change=img_change+'<div id=\"horizontal-thumbnail\" class=\"owl-carousel horizontal-thumbnail\">'+this.generateHtmlThumb(imagesToUpdate)+'</div>';}\nimg_change=img_change+'</div></div>';$(\".product.media\").html(img_change);var $_rtl=$('#rtl_theme').val();$('#owl-carousel-gallery').owlCarousel({items:1,autoplay:false,lazyLoad:false,nav:true,dots:false,navText:[\"<span></span>\",\"<span></span>\"],rtl:$_rtl});$('#owl-carousel-gallery').on('changed.owl.carousel',function(event){var index=event.item.index;$('#horizontal-thumbnail .item-thumb').removeClass('active');$('#horizontal-thumbnail .item-thumb[data-owl='+index+']').addClass('active');$('#horizontal-thumbnail').trigger('to.owl.carousel',index);});var $_rtl=$('#rtl_theme').val();$('#horizontal-thumbnail').owlCarousel({items:4,autoplay:false,lazyLoad:false,nav:true,dots:false,rtl:$_rtl,navText:[\"<span></span>\",\"<span></span>\"],responsive:{0:{items:2},500:{items:3},992:{items:4},1200:{items:4}},});$('#horizontal-thumbnail .item-thumb').on('click',function(){$('#horizontal-thumbnail .item-thumb').removeClass('active');var position=$(this).attr('data-owl');$('#owl-carousel-gallery').trigger('to.owl.carousel',position);$(this).addClass('active');});},updateBaseImageVertical:function(imagesToUpdate){var img_change=\"\";if(imagesToUpdate.length>1){img_change='<div class=\"vertical-gallery\">';}else{img_change='<div class=\"vertical-gallery no-thumb\">';}\nif(imagesToUpdate.length>1){img_change=img_change+'<div id=\"vertical-thumbnail-wrapper\"><div id=\"vertical-thumbnails\" class=\"vertical-thumbnail\">'+this.generateHtmlThumb(imagesToUpdate)+'</div></div>';}\nimg_change=img_change+'<div id=\"owl-carousel-gallery\" class=\"owl-carousel gallery-vertical\">'+this.generateHtmlImage(imagesToUpdate)+'</div>';img_change=img_change+'</div>';$(\".product.media\").html(img_change);$('#owl-carousel-gallery').on('initialized.owl.carousel',function(event){setTimeout(function(){var hs=$('#owl-carousel-gallery').height();$('.product.media').height(hs);},200);});var $_rtl=$('#rtl_theme').val();$('#owl-carousel-gallery').owlCarousel({items:1,autoplay:false,lazyLoad:false,nav:true,dots:false,navText:[\"<i class='pe-7s-angle-left'></i>\",\"<i class='pe-7s-angle-right'></i>\"],rtl:$_rtl});$('#vertical-thumbnails img').on('load',function(){setTimeout(function(){$('#vertical-thumbnails').not('.slick-initialized').slick({dots:false,arrows:true,vertical:true,slidesToShow:3,slidesToScroll:3,verticalSwiping:true,centerMode:true,prevArrow:'<span class=\"icon-angle-up\"></span>',nextArrow:'<span class=\"icon-angle-down\"></span>',responsive:[{breakpoint:1199,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:768,settings:{slidesToShow:3,slidesToScroll:3}},{breakpoint:600,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:360,settings:{slidesToShow:1,slidesToScroll:1}}]});},200);});$('#owl-carousel-gallery').on('changed.owl.carousel',function(event){var index=event.item.index;$('#vertical-thumbnails .item-thumb').removeClass('active');$('#vertical-thumbnails .item-thumb[data-owl='+index+']').addClass('active');var wdw=$(window).width();var ci=imagesToUpdate.length;if(wdw>=1199&&ci>3){$('#vertical-thumbnails').slick('slickGoTo',index);}else if(wdw<1199&&wdw>=768&&ci>2){$('#vertical-thumbnails').slick('slickGoTo',index);}else if(wdw<768&&wdw>=600&&ci>3){$('#vertical-thumbnails').slick('slickGoTo',index);}else if(wdw<768&&wdw>=600&&ci>2){$('#vertical-thumbnails').slick('slickGoTo',index);}else if(wdw<360){$('#vertical-thumbnails').slick('slickGoTo',index);}});$('#owl-carousel-gallery').on('resized.owl.carousel',function(event){var hs=$('#owl-carousel-gallery').height();$('.product.media').height(hs);});$('#vertical-thumbnails .item-thumb').on('click',function(){$('#vertical-thumbnails .item-thumb').removeClass('active');var position=$(this).attr('data-owl');$('#owl-carousel-gallery').trigger('to.owl.carousel',position);$(this).addClass('active');});},updateOneImage:function(imagesToUpdate){var img_change=\"\",lbox_image=$('#lbox_image').val();var $isVideo=false;if((imagesToUpdate[0].media_type=='external-video'||imagesToUpdate[0].media_type=='video'||imagesToUpdate[0].type=='video')&&imagesToUpdate[0].videoUrl!=\"\"){$isVideo=true;}\nvar $class='product item-image imgzoom';if($isVideo){$class=$class+' item-image-video';}\nimg_change=img_change+'<div class=\"'+$class+'\" data-zoom=\"'+imagesToUpdate[0].zoom+'\">';if($isVideo){img_change=img_change+'<div class=\"label-video\">'+$.mage.__('Video')+'</div>';}\nif(lbox_image==1){var href=imagesToUpdate[0].zoom;var cla='lb';if($isVideo){href=imagesToUpdate[0].videoUrl;cla='lb video-link';}\nimg_change=img_change+'<a href=\"'+href+'\" class=\"'+cla+'\"><img class=\"img-fluid\" src=\"'+imagesToUpdate[0].full+'\" alt=\"\"/></a>';}else{img_change=img_change+'<img class=\"img-fluid\" src=\"'+imagesToUpdate[0].full+'\" alt=\"\"/>';if($isVideo){img_change=img_change+'<a target=\"_blank\" class=\"popup-video\" href=\"'+imagesToUpdate[0].videoUrl+'\"><span class=\"ti-video-camera\"></span></a>';}}\nimg_change=img_change+'</div>';$(\".product.media\").html(img_change);},zoomImage:function(){$(\".imgzoom\").each(function(index){zoomElement(this);});},lightBoxGallery:function(){$('.product.media').magnificPopup({delegate:'.imgzoom .lb',type:'image',tLoading:'Loading image #%curr%...',mainClass:'mfp-img-gallery',fixedContentPos:true,gallery:{enabled:true,navigateByImgClick:true,preload:[0,1]},iframe:{markup:'<div class=\"mfp-iframe-scaler\">'+'<div class=\"mfp-close\"></div>'+'<iframe class=\"mfp-iframe\" frameborder=\"0\" allowfullscreen></iframe>'+'<div class=\"mfp-bottom-bar\">'+'<div class=\"mfp-title\"></div>'+'<div class=\"mfp-counter\"></div>'+'</div>'+'</div>'},image:{tError:'<a href=\"%url%\">The image #%curr%</a> could not be loaded.',},callbacks:{elementParse:function(item){if($(item.el).hasClass('video-link')){item.type='iframe';}else{item.type='image';}}}});},generateHtmlImage:function(imagesToUpdate){var html=\"\",lbox_image=$('#lbox_image').val();$.each(imagesToUpdate,function(index){var $isVideo=false;if((imagesToUpdate[index].media_type=='external-video'||imagesToUpdate[index].media_type=='video'||imagesToUpdate[index].type=='video')&&imagesToUpdate[index].videoUrl!=\"\"){$isVideo=true;}\nvar $class='product item-image imgzoom';if($isVideo){$class=$class+' item-image-video';}\nhtml=html+'<div class=\"'+$class+'\" data-zoom=\"'+imagesToUpdate[index].full+'\">';if($isVideo){html=html+'<div class=\"label-video\">'+$.mage.__('Video')+'</div>';}\nvar imgBase=imagesToUpdate[index].img?imagesToUpdate[index].img:imagesToUpdate[index].full;if(lbox_image==1){var href=imagesToUpdate[index].full;var cla='lb';if($isVideo){href=imagesToUpdate[index].videoUrl;cla='lb video-link';}\nhtml=html+'<a href=\"'+href+'\" class=\"'+cla+'\"><img class=\"img-fluid\" src=\"'+imgBase+'\" alt=\"\"/></a>';}else{html=html+'<img class=\"img-fluid\" src=\"'+imgBase+'\" alt=\"\"/>';if($isVideo){html=html+'<a target=\"_blank\" class=\"popup-video\" href=\"'+imagesToUpdate[index].videoUrl+'\"><span class=\"ti-video-camera\"></span></a>';}}\nhtml=html+'</div>';});return html;},generateHtmlThumb:function(imagesToUpdate){var html=\"\",lbox_image=$('#lbox_image').val();$.each(imagesToUpdate,function(index){var $isVideo=false;if((imagesToUpdate[index].media_type=='external-video'||imagesToUpdate[index].media_type=='video'||imagesToUpdate[index].type=='video')&&imagesToUpdate[index].videoUrl!=\"\"){$isVideo=true;}\nvar classth='item-thumb';if(index==0){classth='item-thumb active';}\nhtml=html+'<div class=\"'+classth+'\" data-owl=\"'+index+'\"><img class=\"img-fluid\" src=\"'+imagesToUpdate[index].thumb+'\" alt=\"\"/>';if($isVideo){html=html+'<div class=\"popup-video-thumb\"><span class=\"ti-video-camera\"></span></div>';}\nhtml=html+'</div>';});return html;},});return $.mage.SwatchRenderer;}});","MGS_ExtraGallery/js/jquery.zoom.min.js":"/*!\r\n\tZoom 1.7.18\r\n\tlicense: MIT\r\n\thttp://www.jacklmoore.com/zoom\r\n*/\r\n!function(a){var b={url:!1,callback:!1,target:!1,duration:120,on:\"mouseover\",touch:!0,onZoomIn:!1,onZoomOut:!1,magnify:1};a.zoom=function(b,c,d,e){var f,g,h,i,j,k,l,m=a(b),n=m.css(\"position\"),o=a(c);return b.style.position=/(absolute|fixed)/.test(n)?n:\"relative\",b.style.overflow=\"hidden\",d.style.width=d.style.height=\"\",a(d).addClass(\"zoomImg\").css({position:\"absolute\",top:0,left:0,opacity:0,width:d.width*e,height:d.height*e,border:\"none\",maxWidth:\"none\",maxHeight:\"none\"}).appendTo(b),{init:function(){g=m.outerWidth(),f=m.outerHeight(),c===b?(i=g,h=f):(i=o.outerWidth(),h=o.outerHeight()),j=(d.width-g)/i,k=(d.height-f)/h,l=o.offset()},move:function(a){var b=a.pageX-l.left,c=a.pageY-l.top;c=Math.max(Math.min(c,h),0),b=Math.max(Math.min(b,i),0),d.style.left=b*-j+\"px\",d.style.top=c*-k+\"px\"}}},a.fn.zoom=function(c){return this.each(function(){var d=a.extend({},b,c||{}),e=d.target&&a(d.target)[0]||this,f=this,g=a(f),h=document.createElement(\"img\"),i=a(h),j=\"mousemove.zoom\",k=!1,l=!1;if(!d.url){var m=f.querySelector(\"img\");if(m&&(d.url=m.getAttribute(\"data-src\")||m.currentSrc||m.src),!d.url)return}g.one(\"zoom.destroy\",function(a,b){g.off(\".zoom\"),e.style.position=a,e.style.overflow=b,h.onload=null,i.remove()}.bind(this,e.style.position,e.style.overflow)),h.onload=function(){function b(b){m.init(),m.move(b),i.stop().fadeTo(a.support.opacity?d.duration:0,1,!!a.isFunction(d.onZoomIn)&&d.onZoomIn.call(h))}function c(){i.stop().fadeTo(d.duration,0,!!a.isFunction(d.onZoomOut)&&d.onZoomOut.call(h))}var m=a.zoom(e,f,h,d.magnify);\"grab\"===d.on?g.on(\"mousedown.zoom\",function(d){1===d.which&&(a(document).one(\"mouseup.zoom\",function(){c(),a(document).off(j,m.move)}),b(d),a(document).on(j,m.move),d.preventDefault())}):\"click\"===d.on?g.on(\"click.zoom\",function(d){return k?void 0:(k=!0,b(d),a(document).on(j,m.move),a(document).one(\"click.zoom\",function(){c(),k=!1,a(document).off(j,m.move)}),!1)}):\"toggle\"===d.on?g.on(\"click.zoom\",function(a){k?c():b(a),k=!k}):\"mouseover\"===d.on&&(m.init(),g.on(\"mouseenter.zoom\",b).on(\"mouseleave.zoom\",c).on(j,m.move)),d.touch&&g.on(\"touchstart.zoom\",function(a){a.preventDefault(),l?(l=!1,c()):(l=!0,b(a.originalEvent.touches[0]||a.originalEvent.changedTouches[0]))}).on(\"touchmove.zoom\",function(a){a.preventDefault(),m.move(a.originalEvent.touches[0]||a.originalEvent.changedTouches[0])}).on(\"touchend.zoom\",function(a){a.preventDefault(),l&&(l=!1,c())}),a.isFunction(d.callback)&&d.callback.call(h)},h.src=d.url})},a.fn.zoom.defaults=b}(window.jQuery);","MGS_ExtraGallery/js/configurable.min.js":"define(['jquery','underscore','mage/template','mage/translate','priceUtils','priceBox','jquery/ui','jquery/jquery.parsequery','zoom-images','mgsslick','mgsowlcarousel','magnificPopup'],function($,_,mageTemplate){'use strict';return function(widget){$.widget('mage.configurable',widget,{_initializeOptions:function(){var options=this.options,gallery=$(options.mediaGallerySelector),galleryTemplate=$('#mgs_template_layout').val(),priceBoxOptions=$(this.options.priceHolderSelector).priceBox('option').priceConfig||null;if(priceBoxOptions&&priceBoxOptions.optionTemplate){options.optionTemplate=priceBoxOptions.optionTemplate;}\nif(priceBoxOptions&&priceBoxOptions.priceFormat){options.priceFormat=priceBoxOptions.priceFormat;}\noptions.optionTemplate=mageTemplate(options.optionTemplate);options.settings=options.spConfig.containerId?$(options.spConfig.containerId).find(options.superSelector):$(options.superSelector);options.values=options.spConfig.defaultValues||{};options.parentImage=$('[data-role=base-image-container] img').attr('src');this.inputSimpleProduct=this.element.find(options.selectSimpleProduct);var currentImages=[];$(\".product.media .item-image\").each(function(index){var item=[];var url_video=\"\";var type='image';if($(this).find('.popup-video').length){url_video=$(this).find('.popup-video').attr('href');}else if($(this).find('.lb.video-link').length){url_video=$(this).find('.lb.video-link').attr('href');}\nif(url_video){type='external-video';}\nitem['zoom']=$(this).attr('data-zoom');item['full']=$(this).find('.img-fluid').attr('src');item['thumb']=$(this).find('.img-fluid').attr('src');item['media_type']=type;item['videoUrl']=url_video;currentImages.push(item);});options.mediaGalleryInitial=currentImages;},_changeProductImage:function(){var images,imagesToUpdate,initialImages=this.options.mediaGalleryInitial,zoomimg=$('#zoom_image').val(),glr_layout=$('#glr_layout').val(),lbox_image=$('#lbox_image').val(),$_rtl=$('#rtl_theme').val();if(this.options.spConfig.images[this.simpleProduct]){images=$.extend(true,[],this.options.spConfig.images[this.simpleProduct]);}\nif(images){imagesToUpdate=images;}else{imagesToUpdate=initialImages;}\nif(glr_layout==1||glr_layout==2){this.updateBaseImageList(imagesToUpdate);}else if(glr_layout==3){this.updateFullOwl(imagesToUpdate);}else if(glr_layout==4){this.updateBaseImageVertical(imagesToUpdate);}else if(glr_layout==5){this.updateBaseImageHorizontal(imagesToUpdate);}else if(glr_layout==6){this.updateBaseImageOwl(imagesToUpdate);}\nif(zoomimg==1&&glr_layout!=6){this.zoomImage();}\nif(lbox_image==1){this.lightBoxGallery();}},updateBaseImageList:function(imagesToUpdate){var img_change=\"\";img_change='<div class=\"gallery-list\">'+this.generateHtmlImage(imagesToUpdate)+'</div>';$(\".product.media\").html(img_change);},updateBaseImageOwl:function(imagesToUpdate){var img_change=\"\";var view_type=$('#view_type').val();img_change='<div id=\"owl-carousel-gallery\" class=\"owl-carousel gallery-horizontal\">'+this.generateHtmlImage(imagesToUpdate)+'</div>';$(\".product.media\").html(img_change);var $_rtl=$('#rtl_theme').val();$('#owl-carousel-gallery').owlCarousel({items:1,autoplay:false,lazyLoad:false,nav:true,dots:false,navText:[\"<span></span>\",\"<span></span>\"],rtl:$_rtl,});},updateFullOwl:function(imagesToUpdate){var img_change=\"\";var view_type=$('#view_type').val();img_change='<div id=\"owl-carousel-gallery\" class=\"owl-carousel gallery-5\">'+this.generateHtmlImage(imagesToUpdate)+'</div>';$(\".product.media\").html(img_change);if($('#zoom_image').val()==1){$('#owl-carousel-gallery').on('initialized.owl.carousel',function(event){$(\".imgzoom\").each(function(index){zoomElement(this);});});}\nvar $_rtl=$('#rtl_theme').val();$('#owl-carousel-gallery').owlCarousel({items:$('#item-xl').val(),autoplay:false,lazyLoad:false,loop:true,nav:true,dots:false,navText:[\"<span></span>\",\"<span></span>\"],rtl:$_rtl,responsive:{0:{items:$('#item-xs').val()},576:{items:$('#item-sm').val()},768:{items:$('#item-md').val()},992:{items:$('#item-lg').val()},1200:{items:$('#item-xl').val()}}});},updateBaseImageHorizontal:function(imagesToUpdate){var img_change=\"\";img_change='<div class=\"horizontal-gallery\">';img_change=img_change+'<div id=\"owl-carousel-gallery\" class=\"owl-carousel gallery-horizontal\">'+this.generateHtmlImage(imagesToUpdate)+'</div>';if(imagesToUpdate.length>1){img_change=img_change+'<div class=\"horizontal-thumbnail-wrapper\"><div id=\"horizontal-thumbnail\" class=\"owl-carousel horizontal-thumbnail\">'+this.generateHtmlThumb(imagesToUpdate)+'</div></div>';}\nimg_change=img_change+'</div>';$(\".product.media\").html(img_change);var $_rtl=$('#rtl_theme').val();$('#owl-carousel-gallery').owlCarousel({items:1,autoplay:false,lazyLoad:false,nav:true,dots:false,navText:[\"<span></span>\",\"<span></span>\"],});$('#owl-carousel-gallery').on('changed.owl.carousel',function(event){var index=event.item.index;$('#horizontal-thumbnail .item-thumb').removeClass('active');$('#horizontal-thumbnail .item-thumb[data-owl='+index+']').addClass('active');$('#horizontal-thumbnail').trigger('to.owl.carousel',index);});var $_rtl=$('#rtl_theme').val();$('#horizontal-thumbnail').owlCarousel({items:4,autoplay:false,lazyLoad:false,nav:true,dots:false,rtl:$_rtl,navText:[\"<span></span>\",\"<span></span>\"],responsive:{0:{items:2},576:{items:3},992:{items:4},1200:{items:4}},});$('#horizontal-thumbnail .item-thumb').on('click',function(){$('#horizontal-thumbnail .item-thumb').removeClass('active');var position=$(this).attr('data-owl');$('#owl-carousel-gallery').trigger('to.owl.carousel',position);$(this).addClass('active');});},updateSingleSlide:function(imagesToUpdate){var img_change='<div class=\"container\"><div class=\"product-thumbnail gallery-2\">';img_change=img_change+'<div id=\"owl-carousel-gallery\" class=\"owl-carousel gallery-horizontal\">'+this.generateHtmlImage(imagesToUpdate)+'</div>';if(imagesToUpdate.length>1){img_change=img_change+'<div id=\"horizontal-thumbnail\" class=\"owl-carousel horizontal-thumbnail\">'+this.generateHtmlThumb(imagesToUpdate)+'</div>';}\nimg_change=img_change+'</div></div>';$(\".product.media\").html(img_change);var $_rtl=$('#rtl_theme').val();$('#owl-carousel-gallery').owlCarousel({items:1,autoplay:false,lazyLoad:false,nav:true,dots:false,navText:[\"<span></span>\",\"<span></span>\"],rtl:$_rtl});$('#owl-carousel-gallery').on('changed.owl.carousel',function(event){var index=event.item.index;$('#horizontal-thumbnail .item-thumb').removeClass('active');$('#horizontal-thumbnail .item-thumb[data-owl='+index+']').addClass('active');$('#horizontal-thumbnail').trigger('to.owl.carousel',index);});var $_rtl=$('#rtl_theme').val();$('#horizontal-thumbnail').owlCarousel({items:4,autoplay:false,lazyLoad:false,nav:true,dots:false,rtl:$_rtl,navText:[\"<span></span>\",\"<span></span>\"],responsive:{0:{items:2},500:{items:3},992:{items:4},1200:{items:4}},});$('#horizontal-thumbnail .item-thumb').on('click',function(){$('#horizontal-thumbnail .item-thumb').removeClass('active');var position=$(this).attr('data-owl');$('#owl-carousel-gallery').trigger('to.owl.carousel',position);$(this).addClass('active');});},updateBaseImageVertical:function(imagesToUpdate){var img_change=\"\";if(imagesToUpdate.length>1){img_change='<div class=\"vertical-gallery\">';}else{img_change='<div class=\"vertical-gallery no-thumb\">';}\nif(imagesToUpdate.length>1){img_change=img_change+'<div id=\"vertical-thumbnail-wrapper\"><div id=\"vertical-thumbnails\" class=\"vertical-thumbnail\">'+this.generateHtmlThumb(imagesToUpdate)+'</div></div>';}\nimg_change=img_change+'<div id=\"owl-carousel-gallery\" class=\"owl-carousel gallery-vertical\">'+this.generateHtmlImage(imagesToUpdate)+'</div>';img_change=img_change+'</div>';$(\".product.media\").html(img_change);$('#owl-carousel-gallery').on('initialized.owl.carousel',function(event){setTimeout(function(){var hs=$('#owl-carousel-gallery').height();$('.product.media').height(hs);},200);});var $_rtl=$('#rtl_theme').val();$('#owl-carousel-gallery').owlCarousel({items:1,autoplay:false,lazyLoad:false,nav:true,dots:false,navText:[\"<span></span>\",\"<span></span>\"],rtl:$_rtl});$('#vertical-thumbnails img').on('load',function(){setTimeout(function(){$('#vertical-thumbnails').not('.slick-initialized').slick({dots:false,arrows:true,vertical:true,slidesToShow:3,slidesToScroll:3,verticalSwiping:true,centerMode:true,prevArrow:'<span class=\"icon-angle-up\"></span>',nextArrow:'<span class=\"icon-angle-down\"></span>',responsive:[{breakpoint:1199,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:768,settings:{slidesToShow:3,slidesToScroll:3}},{breakpoint:600,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:360,settings:{slidesToShow:1,slidesToScroll:1}}]});},200);});$('#owl-carousel-gallery').on('changed.owl.carousel',function(event){var index=event.item.index;$('#vertical-thumbnails .item-thumb').removeClass('active');$('#vertical-thumbnails .item-thumb[data-owl='+index+']').addClass('active');var wdw=$(window).width();var ci=imagesToUpdate.length;if(wdw>=1199&&ci>3){$('#vertical-thumbnails').slick('slickGoTo',index);}else if(wdw<1199&&wdw>=768&&ci>2){$('#vertical-thumbnails').slick('slickGoTo',index);}else if(wdw<768&&wdw>=600&&ci>3){$('#vertical-thumbnails').slick('slickGoTo',index);}else if(wdw<768&&wdw>=600&&ci>2){$('#vertical-thumbnails').slick('slickGoTo',index);}else if(wdw<360){$('#vertical-thumbnails').slick('slickGoTo',index);}});$('#owl-carousel-gallery').on('resized.owl.carousel',function(event){var hs=$('#owl-carousel-gallery').height();$('.product.media').height(hs);});$('#vertical-thumbnails .item-thumb').on('click',function(){$('#vertical-thumbnails .item-thumb').removeClass('active');var position=$(this).attr('data-owl');$('#owl-carousel-gallery').trigger('to.owl.carousel',position);$(this).addClass('active');});},updateOneImage:function(imagesToUpdate){var img_change=\"\",lbox_image=$('#lbox_image').val();var $isVideo=false;if((imagesToUpdate[0].media_type=='external-video'||imagesToUpdate[0].media_type=='video'||imagesToUpdate[0].type=='video')&&imagesToUpdate[0].videoUrl!=\"\"){$isVideo=true;}\nvar $class='product item-image imgzoom';if($isVideo){$class=$class+' item-image-video';}\nimg_change=img_change+'<div class=\"'+$class+'\" data-zoom=\"'+imagesToUpdate[0].zoom+'\">';if($isVideo){img_change=img_change+'<div class=\"label-video\">'+$.mage.__('Video')+'</div>';}\nif(lbox_image==1){var href=imagesToUpdate[0].zoom;var cla='lb';if($isVideo){href=imagesToUpdate[0].videoUrl;cla='lb video-link';}\nimg_change=img_change+'<a href=\"'+href+'\" class=\"'+cla+'\"><img class=\"img-fluid\" src=\"'+imagesToUpdate[0].full+'\" alt=\"\"/></a>';}else{img_change=img_change+'<img class=\"img-fluid\" src=\"'+imagesToUpdate[0].full+'\" alt=\"\"/>';if($isVideo){img_change=img_change+'<a target=\"_blank\" class=\"popup-video\" href=\"'+imagesToUpdate[0].videoUrl+'\"><span class=\"ti-video-camera\"></span></a>';}}\nimg_change=img_change+'</div>';$(\".product.media\").html(img_change);},zoomImage:function(){$(\".imgzoom\").each(function(index){zoomElement(this);});},lightBoxGallery:function(){$('.product.media').magnificPopup({delegate:'.imgzoom .lb',type:'image',tLoading:'Loading image #%curr%...',mainClass:'mfp-img-gallery',fixedContentPos:true,gallery:{enabled:true,navigateByImgClick:true,preload:[0,1]},iframe:{markup:'<div class=\"mfp-iframe-scaler\">'+'<div class=\"mfp-close\"></div>'+'<iframe class=\"mfp-iframe\" frameborder=\"0\" allowfullscreen></iframe>'+'<div class=\"mfp-bottom-bar\">'+'<div class=\"mfp-title\"></div>'+'<div class=\"mfp-counter\"></div>'+'</div>'+'</div>'},image:{tError:'<a href=\"%url%\">The image #%curr%</a> could not be loaded.',},callbacks:{elementParse:function(item){if(item.el.context.className=='lb video-link'){item.type='iframe';}else{item.type='image';}}}});},generateHtmlImage:function(imagesToUpdate){var html=\"\",lbox_image=$('#lbox_image').val();$.each(imagesToUpdate,function(index){var $isVideo=false;if((imagesToUpdate[index].media_type=='external-video'||imagesToUpdate[index].media_type=='video'||imagesToUpdate[index].type=='video')&&imagesToUpdate[index].videoUrl!=\"\"){$isVideo=true;}\nvar $class='product item-image imgzoom';if($isVideo){$class=$class+' item-image-video';}\nhtml=html+'<div class=\"'+$class+'\" data-zoom=\"'+imagesToUpdate[index].zoom+'\">';if($isVideo){html=html+'<div class=\"label-video\">'+$.mage.__('Video')+'</div>';}\nif(lbox_image==1){var href=imagesToUpdate[index].zoom;var cla='lb';if($isVideo){href=imagesToUpdate[index].videoUrl;cla='lb video-link';}\nhtml=html+'<a href=\"'+href+'\" class=\"'+cla+'\"><img class=\"img-fluid\" src=\"'+imagesToUpdate[index].full+'\" alt=\"\"/></a>';}else{html=html+'<img class=\"img-fluid\" src=\"'+imagesToUpdate[index].full+'\" alt=\"\"/>';if($isVideo){html=html+'<a target=\"_blank\" class=\"popup-video\" href=\"'+imagesToUpdate[index].videoUrl+'\"><span class=\"ti-video-camera\"></span></a>';}}\nhtml=html+'</div>';});return html;},generateHtmlThumb:function(imagesToUpdate){var html=\"\",lbox_image=$('#lbox_image').val();$.each(imagesToUpdate,function(index){var $isVideo=false;if((imagesToUpdate[index].media_type=='external-video'||imagesToUpdate[index].media_type=='video'||imagesToUpdate[index].type=='video')&&imagesToUpdate[index].videoUrl!=\"\"){$isVideo=true;}\nvar classth='item-thumb';if(index==0){classth='item-thumb active';}\nhtml=html+'<div class=\"'+classth+'\" data-owl=\"'+index+'\"><img class=\"img-fluid\" src=\"'+imagesToUpdate[index].thumb+'\" alt=\"\"/>';if($isVideo){html=html+'<div class=\"popup-video-thumb\"><span class=\"ti-video-camera\"></span></div>';}\nhtml=html+'</div>';});return html;},});return $.mage.configurable;}});"}
}});
;require.config({"config": {
        "text":{"blank.html":"","Magento_Theme/templates/breadcrumbs.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<ul class=\"items\">\n<% _.each(breadcrumbs, function(crumb) { %>\n    <li class=\"item <%- crumb.name %>\">\n        <% if (crumb.link) { %>\n        <a href=\"<%= crumb.link %>\" title=\"<%- crumb.title %>\"><%- crumb.label %></a>\n        <% } else if (crumb.last) { %>\n        <strong><%= crumb.label %></strong>\n        <% } else { %>\n        <%= crumb.label %>\n        <% } %>\n    </li>\n<% }); %>\n</ul>\n","Magento_Payment/template/payment/iframe.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<!-- IFRAME for request to Payment Gateway -->\n<iframe width=\"0\" height=\"0\" data-bind=\"src: getSource(), attr: {id: getCode() + '-transparent-iframe', 'data-container': getCode() + '-transparent-iframe'}\" allowtransparency=\"true\" frameborder=\"0\"  name=\"iframeTransparent\" style=\"display:none;width:100%;background-color:transparent\"></iframe>\n<form class=\"form\" id=\"co-transparent-form\" autocomplete=\"off\" action=\"#\" method=\"post\" data-bind=\"mageInit: {\n    'transparent':{\n        'controller': getControllerName(),\n        'gateway': getCode(),\n        'orderSaveUrl':getPlaceOrderUrl(),\n        'cgiUrl': getCgiUrl(),\n        'dateDelim': getDateDelim(),\n        'cardFieldsMap': getCardFieldsMap(),\n        'nativeAction': getSaveOrderUrl(),\n        'expireYearLength': getExpireYearLength()\n    }, 'validation':[]}\">\n<!-- ko with: getCcFormView() -->\n    <!-- ko template: getTemplate() --><!-- /ko -->\n<!-- /ko -->\n</form>\n<div class=\"checkout-agreements-block\">\n    <!-- ko foreach: $parent.getRegion('before-place-order') -->\n        <!-- ko template: getTemplate() --><!-- /ko -->\n    <!--/ko-->\n</div>\n<div class=\"actions-toolbar\" id=\"review-buttons-container\">\n    <div class=\"primary\">\n        <button data-role=\"review-save\" type=\"submit\"\n                data-bind=\"attr: {title: $t('Place Order')}\"\n                class=\"button action primary checkout\">\n            <span data-bind=\"i18n: 'Place Order'\"></span>\n        </button>\n        <button type=\"submit\" id=\"originalPlaceOrder\" class=\"hidden\"\n                data-bind=\"click: originalPlaceOrder($parents[1])\"></button>\n    </div>\n    <div class=\"secondary\">\n        <span id=\"checkout-review-edit-label\" data-bind=\"i18n: 'Forgot an Item?'\"></span>\n        <a data-bind=\"attr: {href: $parents[1].cartUrl}\"\n           aria-describedby=\"checkout-review-edit-label\"\n           class=\"action edit\">\n            <span data-bind=\"i18n: 'Edit Your Cart'\"></span>\n        </a>\n    </div>\n</div>\n","Magento_Payment/template/payment/cc-form.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n\n<fieldset data-bind=\"attr: {class: 'fieldset payment items ccard ' + getCode(), id: 'payment_form_' + getCode()}\">\n    <!-- ko if: (isShowLegend())-->\n    <legend class=\"legend\">\n        <span><!-- ko i18n: 'Credit Card Information'--><!-- /ko --></span>\n    </legend><br />\n    <!-- /ko -->\n    <div class=\"field type\">\n        <div class=\"control\">\n            <ul class=\"credit-card-types\">\n                <!-- ko foreach: {data: getCcAvailableTypesValues(), as: 'item'} -->\n                <li class=\"item\" data-bind=\"css: {\n                                                 _active: $parent.selectedCardType() == item.value,\n                                                 _inactive: $parent.selectedCardType() != null && $parent.selectedCardType() != item.value\n                                                 } \">\n                    <!--ko if: $parent.getIcons(item.value) -->\n                    <img data-bind=\"attr: {\n                        'src': $parent.getIcons(item.value).url,\n                        'alt': item.type,\n                        'width': $parent.getIcons(item.value).width,\n                        'height': $parent.getIcons(item.value).height\n                        }\">\n                    <!--/ko-->\n                </li>\n                <!--/ko-->\n            </ul>\n            <input type=\"hidden\"\n                   name=\"payment[cc_type]\"\n                   class=\"input-text\"\n                   value=\"\"\n                   data-bind=\"attr: {id: getCode() + '_cc_type', 'data-container': getCode() + '-cc-type'},\n                   value: creditCardType\n                   \">\n        </div>\n    </div>\n    <div class=\"field number required\">\n        <label data-bind=\"attr: {for: getCode() + '_cc_number'}\" class=\"label\">\n            <span><!-- ko i18n: 'Credit Card Number'--><!-- /ko --></span>\n        </label>\n        <div class=\"control\">\n            <input type=\"number\" name=\"payment[cc_number]\" class=\"input-text\" value=\"\"\n                   oncopy=\"return false;\"\n                   oncut=\"return false;\"\n                   onpaste=\"return false;\"\n                   data-bind=\"attr: {\n                                    autocomplete: off,\n                                    id: getCode() + '_cc_number',\n                                    title: $t('Credit Card Number'),\n                                    'data-container': getCode() + '-cc-number',\n                                    'data-validate': JSON.stringify({'required-number':true, 'validate-card-type':getCcAvailableTypesValues(), 'validate-card-number':'#' + getCode() + '_cc_type', 'validate-cc-type':'#' + getCode() + '_cc_type'})},\n                              enable: isActive($parents),\n                              value: creditCardNumber,\n                              valueUpdate: 'keyup' \"/>\n        </div>\n    </div>\n    <div class=\"field date required\" data-bind=\"attr: {id: getCode() + '_cc_type_exp_div'}\">\n        <label data-bind=\"attr: {for: getCode() + '_expiration'}\" class=\"label\">\n            <span><!-- ko i18n: 'Expiration Date'--><!-- /ko --></span>\n        </label>\n        <div class=\"control\">\n            <div class=\"fields group group-2\">\n                <div class=\"field no-label month\">\n                    <div class=\"control\">\n                        <select  name=\"payment[cc_exp_month]\"\n                                 class=\"select select-month\"\n                                 data-bind=\"attr: {id: getCode() + '_expiration', 'data-container': getCode() + '-cc-month', 'data-validate': JSON.stringify({required:true, 'validate-cc-exp':'#' + getCode() + '_expiration_yr'})},\n                                            enable: isActive($parents),\n                                            options: getCcMonthsValues(),\n                                            optionsValue: 'value',\n                                            optionsText: 'month',\n                                            optionsCaption: $t('Month'),\n                                            value: creditCardExpMonth\">\n                        </select>\n                    </div>\n                </div>\n                <div class=\"field no-label year\">\n                    <div class=\"control\">\n                        <select name=\"payment[cc_exp_year]\"\n                                class=\"select select-year\"\n                                data-bind=\"attr: {id: getCode() + '_expiration_yr', 'data-container': getCode() + '-cc-year', 'data-validate': JSON.stringify({required:true})},\n                                           enable: isActive($parents),\n                                           options: getCcYearsValues(),\n                                           optionsValue: 'value',\n                                           optionsText: 'year',\n                                           optionsCaption: $t('Year'),\n                                           value: creditCardExpYear\">\n                        </select>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n    <!-- ko if: (hasVerification())-->\n    <div class=\"field cvv required\" data-bind=\"attr: {id: getCode() + '_cc_type_cvv_div'}\">\n        <label data-bind=\"attr: {for: getCode() + '_cc_cid'}\" class=\"label\">\n            <span><!-- ko i18n: 'Card Verification Number'--><!-- /ko --></span>\n        </label>\n        <div class=\"control _with-tooltip\">\n            <input type=\"number\"\n                   autocomplete=\"off\"\n                   class=\"input-text cvv\"\n                   name=\"payment[cc_cid]\"\n                   value=\"\"\n                   oncopy=\"return false;\"\n                   oncut=\"return false;\"\n                   onpaste=\"return false;\"\n                   data-bind=\"attr: {id: getCode() + '_cc_cid',\n                        title: $t('Card Verification Number'),\n                        'data-container': getCode() + '-cc-cvv',\n                        'data-validate': JSON.stringify({'required-number':true, 'validate-card-cvv':'#' + getCode() + '_cc_type'})},\n                        enable: isActive($parents),\n                        value: creditCardVerificationNumber\" />\n            <div class=\"field-tooltip toggle\">\n                <span class=\"field-tooltip-action action-cvv\"\n                      tabindex=\"0\"\n                      data-toggle=\"dropdown\"\n                      data-bind=\"attr: {title: $t('What is this?')}, mageInit: {'dropdown':{'activeClass': '_active'}}\">\n                    <span><!-- ko i18n: 'What is this?'--><!-- /ko --></span>\n                </span>\n                <div class=\"field-tooltip-content\"\n                     data-target=\"dropdown\"\n                     data-bind=\"html: getCvvImageUnsanitizedHtml()\"></div>\n            </div>\n        </div>\n    </div>\n    <!-- /ko -->\n</fieldset>\n","Magento_Payment/template/payment/free.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"payment-method\" data-bind=\"css: {'_active': (getCode() == isChecked())}, visible: isAvailable()\">\n    <div class=\"payment-method-title field choice\">\n        <input type=\"radio\"\n               name=\"payment[method]\"\n               class=\"radio\"\n               data-bind=\"attr: {'id': getCode()}, value: getCode(), checked: isChecked, click: selectPaymentMethod, visible: isRadioButtonVisible()\"/>\n        <label data-bind=\"attr: {'for': getCode()}\" class=\"label\"><span data-bind=\"text: getTitle()\"></span></label>\n    </div>\n    <div class=\"payment-method-content\">\n        <!-- ko foreach: getRegion('messages') -->\n        <!-- ko template: getTemplate() --><!-- /ko -->\n        <!--/ko-->\n        <div class=\"payment-method-billing-address\">\n            <!-- ko foreach: $parent.getRegion(getBillingAddressFormName()) -->\n            <!-- ko template: getTemplate() --><!-- /ko -->\n            <!--/ko-->\n        </div>\n        <div class=\"checkout-agreements-block\">\n            <!-- ko foreach: $parent.getRegion('before-place-order') -->\n                <!-- ko template: getTemplate() --><!-- /ko -->\n            <!--/ko-->\n        </div>\n        <div class=\"actions-toolbar\">\n            <div class=\"primary\">\n                <button class=\"action primary checkout\"\n                        type=\"submit\"\n                        data-bind=\"\n                        click: placeOrder,\n                        attr: {title: $t('Place Order')},\n                        css: {disabled: !isPlaceOrderActionAllowed()}\n                        \">\n                    <span data-bind=\"i18n: 'Place Order'\"></span>\n                </button>\n            </div>\n        </div>\n    </div>\n</div>\n","Magento_InstantPurchase/template/confirmation.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<p class=\"message\"><%- data.message %></p>\n<strong><%- data.shippingAddressTitle %>:</strong>\n<p><%- data.shippingAddress %></p>\n<strong><%- data.billingAddressTitle %>:</strong>\n<p><%- data.billingAddress %></p>\n<strong><%- data.paymentMethodTitle %>:</strong>\n<p><%- data.paymentToken %></p>\n<strong><%- data.shippingMethodTitle %>:</strong>\n<p><%- data.shippingMethod %></p>","Magento_InstantPurchase/template/instant-purchase.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<if args=\"showButton()\">\n    <button type=\"button\"\n            class=\"action primary instant-purchase\"\n            click=\"instantPurchase\"\n            attr=\"title: $t(buttonText)\">\n        <span translate=\"buttonText\"></span>\n    </button>\n    <input if=\"paymentToken()\"\n           type=\"hidden\"\n           name=\"instant_purchase_payment_token\"\n           ko-value=\"paymentToken().publicHash\" />\n    <input if=\"shippingAddress()\"\n           type=\"hidden\"\n           name=\"instant_purchase_shipping_address\"\n           ko-value=\"shippingAddress().id\" />\n    <input if=\"billingAddress()\"\n           type=\"hidden\"\n           name=\"instant_purchase_billing_address\"\n           ko-value=\"billingAddress().id\" />\n    <if args=\"shippingMethod()\">\n        <input type=\"hidden\"\n               name=\"instant_purchase_carrier\"\n               ko-value=\"shippingMethod().carrier\" />\n        <input type=\"hidden\"\n               name=\"instant_purchase_shipping\"\n               ko-value=\"shippingMethod().method\" />\n    </if>\n</if>\n","MGS_InstantSearch/template/search/product.html":"<div class=\"products products-list\" data-bind=\"visible: isVisible()\">\r\n    <div class=\"title\">\r\n        <!-- ko i18n: 'Products'--><!-- /ko -->\r\n        <a class=\"see-all\" data-bind=\"attr: {href: result.product.url}\">\r\n            <!-- ko i18n: 'See All' --><!-- /ko -->\r\n            (<span data-bind=\"text: result.product.size\"></span>)\r\n        </a>\r\n    </div>\r\n    <ul class=\"products list items product-items\" role=\"listbox\" data-bind=\"foreach: result.product.data\">\r\n        <li class=\"item product product-item\">\r\n            <div class=\"product-item-info\">\r\n                <div class=\"product photo product-item-photo\" data-bind=\"visible: image\">\r\n                    <a data-bind=\"attr: { href: url, title: name }\">\r\n                        <img data-bind=\"attr: { src: image, title: name }\" />\r\n                    </a>\r\n                </div>\r\n                <div class=\"product details product-item-details\">\r\n                    <div class=\"product name product-item-name\" data-bind=\"visible: name\">\r\n                        <strong>\r\n                            <a class=\"product-item-link\" data-bind=\"attr: { href: url, title: name }, text: name\"></a>\r\n                        </strong>\r\n                    </div>\r\n                    <div class=\"product name product-item-reviews\" data-bind=\"html: reviews_rating, visible: reviews_rating\"></div>\r\n                    <div class=\"product-info-price\">\r\n                        <div class=\"product price product-item-price\" data-bind=\"html: price, visible: price\"></div>\r\n                    </div>\r\n                    <div class=\"product name product-item-shortdescription\" data-bind=\"html: short_description, visible: short_description\"></div>\r\n                </div>\r\n            </div>\r\n        </li>\r\n    </ul>\r\n</div>","MGS_InstantSearch/template/search/blog.html":"<div class=\"posts posts-list\" data-bind=\"visible: isVisible()\">\r\n    <div class=\"title\">\r\n        <!-- ko i18n: 'Blogs'--><!-- /ko -->\r\n        <a class=\"see-all\" data-bind=\"attr: {href: result.blog.url}\">\r\n            <!-- ko i18n: 'See All' --><!-- /ko -->\r\n            (<span data-bind=\"text: result.blog.size\"></span>)\r\n        </a>\r\n    </div>\r\n    <ul class=\"posts-list-items post-items\" role=\"listbox\" data-bind=\"foreach: result.blog.data\">\r\n        <li class=\"item post post-item\">\r\n            <div class=\"post-item-info\">\r\n            \t<div class=\"post photo post-item-photo\" data-bind=\"visible: thumbnail\">\r\n                    <a data-bind=\"attr: { href: url, title: name }\">\r\n                        <img data-bind=\"attr: { src: thumbnail, title: name }\" />\r\n                    </a>\r\n                </div>\r\n                <div class=\"post details post-item-details\">\r\n                    <div class=\"post name post-item-name\" data-bind=\"visible: name\">\r\n                        <a class=\"post-item-link\" data-bind=\"attr: { href: url, title: name }, text: name\"></a>\r\n                    </div>\r\n                    <div class=\"post name post-item-shortdescription\" data-bind=\"html: short_content, visible: short_content\"></div>\r\n                </div>\r\n            </div>\r\n        </li>\r\n    </ul>\r\n</div>","MGS_InstantSearch/template/search/autocomplete.html":"<!--\r\n/**\r\n * Copyright \u00a9 2013-2017 Magento, Inc. All rights reserved.\r\n * See COPYING.txt for license details.\r\n */\r\n-->\r\n\r\n<div id=\"mgs-instant-autocomplete-wrapper\" class=\"mgs-instant-autocomplete-wrapper\" data-bind=\"visible: showPopup()\">\r\n\r\n    <div data-bind=\"visible: anyResultCount()\">\r\n    \t<!-- ko if: anyResultCount() -->\r\n        <!-- ko foreach: getRegion('steps') -->\r\n            <!-- ko template: getTemplate() --><!-- /ko -->\r\n        <!--/ko-->\r\n        <!--/ko-->\r\n    </div>\r\n\r\n    <div class=\"no-result\" data-bind=\"text: textNoResult, visible: !anyResultCount()\"></div>\r\n</div>","MGS_InstantSearch/template/search/category.html":"<div class=\"categories categories-list\" data-bind=\"visible: isVisible()\">\r\n    <div class=\"title\">\r\n        <!-- ko i18n: 'Categories'--><!-- /ko -->\r\n        <a class=\"see-all\" data-bind=\"attr: {href: result.category.url}\">\r\n            <!-- ko i18n: 'See All' --><!-- /ko -->\r\n            (<span data-bind=\"text: result.category.size\"></span>)\r\n        </a>\r\n    </div>\r\n    <ul class=\"categories list items category-items\" role=\"listbox\" data-bind=\"foreach: result.category.data\">\r\n        <li class=\"item category category-item\">\r\n            <div class=\"category-item-info\">\r\n                <div class=\"category details category-item-details\">\r\n                    <div class=\"category name category-item-name\" data-bind=\"visible: name\">\r\n                        <a class=\"category-item-link\" data-bind=\"attr: { href: url, title: name }, text: name\"></a>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </li>\r\n    </ul>\r\n</div>","MGS_InstantSearch/template/search/cms/page.html":"<div class=\"pages pages-list\" data-bind=\"visible: isVisible()\">\r\n    <div class=\"title\">\r\n        <!-- ko i18n: 'Cms pages'--><!-- /ko -->\r\n        <a class=\"see-all\" data-bind=\"attr: {href: result.page.url}\">\r\n            <!-- ko i18n: 'See All' --><!-- /ko -->\r\n            (<span data-bind=\"text: result.page.size\"></span>)\r\n        </a>\r\n    </div>\r\n    <ul class=\"page-cms-items\" role=\"listbox\" data-bind=\"foreach: result.page.data\">\r\n        <li class=\"page-cms-item\">\r\n            <div class=\"page-item-info\">\r\n                <div class=\"page details page-item-details\">\r\n                    <div class=\"page name page-item-name\" data-bind=\"visible: name\">\r\n                        <a class=\"page-item-link\" data-bind=\"attr: { href: url, title: name }, text: name\"></a>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </li>\r\n    </ul>\r\n</div>","Magento_Catalog/template/product/final_price.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->","Magento_Catalog/template/product/image_with_borders.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<span class=\"product-image-container\" data-bind=\"style: {width: width + 'px'}\">\n    <span class=\"product-image-wrapper\"  data-bind=\"style: {'padding-bottom': height/width*100 + '%'}\">\n        <img class=\"product-image-photo\" data-bind=\"attr: {src: src, alt: alt}, style: {width: 'auto', height: 'auto'}\" />\n    </span>\n</span>\n","Magento_Catalog/template/product/addtocompare-button.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<if args=\"isAllowed()\">\n    <button attr=\"'data-post': $col.getDataPost($row()), title: getLabel()\"\n            class=\"action tocompare\"\n            data-action=\"add-to-compare\">\n            <span text=\"getLabel()\"></span>\n    </button>\n</if>\n","Magento_Catalog/template/product/link.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<a if=\"isAllowed()\"\n   class=\"product-item-link\"\n   attr=\"href: $row().url\"\n   text=\"label\"></a>\n","Magento_Catalog/template/product/addtocart-button.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<if args=\"isAllowed()\">\n    <if args=\"isSalable($row())\">\n        <button class=\"action tocart primary\"\n                attr=\"'data-mage-init': getDataMageInit($row()),\n                      'data-post': getDataPost($row()),\n                       title: getLabel()\"\n                type=\"button\">\n            <span text=\"getLabel()\"></span>\n        </button>\n    </if>\n\n    <if args=\"isAvailable($row()) === false\">\n        <div class=\"stock unavailable\">\n            <text args=\"$t('Availability')\"></text>\n            <span translate=\"'Out of stock'\"></span>\n        </div>\n    </if>\n</if>\n","Magento_Catalog/template/product/name.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<strong if=\"isAllowed()\"\n        class=\"product-item-name\">\n    <a attr=\"href: $row().url\" html=\"getNameUnsanitizedHtml($col.getLabel($row()))\"></a>\n</strong>\n","Magento_Catalog/template/product/image.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<img class=\"photo image\" loading=\"lazy\" data-bind=\"attr: {src: src, alt: alt}, style: {width: width + 'px', height: height + 'px'}\" />\n","Magento_Catalog/template/product/price/max_regular_price.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<span if=\"showMaxRegularPrice($row())\"\n      class=\"old-price\">\n    <span class=\"price-container\"\n          css=\"getAdjustmentCssClasses($row())\">\n        <span if=\"label\"\n              class=\"price-label\"\n              text=\"label\"></span>\n\n        <span class=\"price-wrapper\"\n              css=\"priceWrapperCssClasses\"\n              attr=\"priceWrapperAttr\"\n              data-price-amount=\"\"\n              data-price-type=\"\"\n              html=\"getMaxRegularPriceUnsanitizedHtml($row())\"></span>\n    </span>\n</span>\n","Magento_Catalog/template/product/price/special_price.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<if args=\"isSalable($row()) && hasSpecialPrice($row())\">\n    <span class=\"special-price\">\n        <span class=\"price-container\"\n              css=\"getAdjustmentCssClasses($row())\">\n            <span if=\"label\"\n                  class=\"price-label\"\n                  text=\"label\"></span>\n\n            <span class=\"price-wrapper\"\n                  css=\"priceWrapperCssClasses\"\n                  attr=\"priceWrapperAttr\"\n                  data-price-amount=\"\"\n                  data-price-type=\"finalPrice\"\n                  html=\"getPriceUnsanitizedHtml($row())\"></span>\n\n            <each args=\"data: getAdjustments(), as: '$adj'\">\n                <render args=\"$adj.getBody()\"></render>\n            </each>\n        </span>\n    </span>\n</if>\n","Magento_Catalog/template/product/price/max_price.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<span if=\"showMaximumPrice\"\n      class=\"price-container\"\n      css=\"getAdjustmentCssClasses($row())\">\n    <span if=\"label\"\n          class=\"price-label\"\n          text=\"label\"></span>\n\n    <span class=\"price-wrapper\"\n          css=\"priceWrapperCssClasses\"\n          attr=\"priceWrapperAttr\"\n          data-price-amount=\"\"\n          data-price-type=\"\"\n          html=\"getMaxPriceUnsanitizedHtml($row())\"></span>\n\n    <each args=\"data: getAdjustments('max_price'), as: '$adj'\">\n        <render args=\"$adj.getBody()\"></render>\n    </each>\n</span>\n\n","Magento_Catalog/template/product/price/pricetype_box.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<with args=\"getPrice($row())\">\n    <render args=\"getBody()\"></render>\n</with>\n","Magento_Catalog/template/product/price/regular_price.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<if args=\"isSalable($row())\">\n    <if args=\"getRegularPrice($row())\">\n        <span css=\"'old-price': hasSpecialPrice($row()), 'regular-price': !hasSpecialPrice($row())\">\n            <span class=\"price-container\"\n                  css=\"getAdjustmentCssClasses($row())\">\n                <span if=\"label && hasSpecialPrice($row())\"\n                      class=\"price-label\"\n                      text=\"label\"></span>\n\n                <span class=\"price-wrapper\"\n                      css=\"priceWrapperCssClasses\"\n                      attr=\"priceWrapperAttr\"\n                      data-price-amount=\"\"\n                      data-price-type=\"\"\n                      html=\"getRegularPriceUnsanitizedHtml($row())\"></span>\n\n                <if args=\"!hasSpecialPrice($row())\">\n                    <each args=\"data: getAdjustments(), as: '$adj'\">\n                        <render args=\"$adj.getBody()\"></render>\n                    </each>\n                </if>\n            </span>\n        </span>\n    </if>\n</if>\n","Magento_Catalog/template/product/price/minimal_price.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<if args=\"showMinimalPrice\">\n    <if args=\"useLinkForAsLowAs\">\n        <a attr=\"href: $row().url\"\n           class=\"minimal-price-link\"\n           html=\"getMinimalPriceUnsanitizedHtml($row())\"></a>\n    </if>\n\n    <ifnot args=\"useLinkForAsLowAs\">\n        <span class=\"minimal-price-link\"\n              html=\"getMinimalPriceUnsanitizedHtml($row())\"></span>\n    </ifnot>\n</if>\n","Magento_Catalog/template/product/price/price_box.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"price-box\"\n     if=\"isAllowed()\">\n    <each args=\"data: getPrices($row()), as: '$price'\">\n        <with args=\"$price\">\n            <render args=\"getBody()\"></render>\n        </with>\n    </each>\n</div>\n","Magento_Catalog/template/product/price/minimal_regular_price.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<span if=\"showMinRegularPrice($row())\"\n      class=\"old-price\">\n    <span class=\"price-container\"\n          css=\"getAdjustmentCssClasses($row())\">\n        <span if=\"label\"\n              class=\"price-label\"\n              text=\"label\"></span>\n\n        <span class=\"price-wrapper\"\n              css=\"priceWrapperCssClasses\"\n              attr=\"priceWrapperAttr\"\n              data-price-amount=\"\"\n              data-price-type=\"\"\n              html=\"getMinRegularPriceUnsanitizedHtml($row())\"></span>\n    </span>\n</span>\n","Magento_Catalog/template/product/list/listing.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div if=\"hasData()\"\n     class=\"block\" css=\"additionalClasses\">\n    <div class=\"block-title\">\n        <strong role=\"heading\"\n                aria-level=\"2\"\n                text=\"label\"></strong>\n    </div>\n    <div class=\"block-content\">\n        <div css=\"'products-' + displayMode\">\n            <ol class=\"product-items\">\n                <li class=\"product-item\" repeat=\"foreach: filteredRows, item: '$row'\">\n                    <div class=\"product-item-info\">\n                        <fastForEach args=\"data: getRegion('general-area'), as: '$col'\" >\n                            <render args=\"$col.getBody()\"></render>\n                        </fastForEach>\n\n                        <div class=\"product-item-details\">\n                            <fastForEach args=\"data: getRegion('details-area'), as: '$col'\" >\n                                <render args=\"$col.getBody()\"></render>\n                            </fastForEach>\n\n                            <div if=\"regionHasElements('action-primary-area') || regionHasElements('action-secondary-area')\"\n                                 class=\"product-item-actions\">\n                                <div class=\"actions-primary\" if=\"regionHasElements('action-primary-area')\">\n                                    <fastForEach args=\"data: getRegion('action-primary-area'), as: '$col'\" >\n                                        <render args=\"$col.getBody()\"></render>\n                                    </fastForEach>\n                                </div>\n\n                                <div if=\"regionHasElements('action-secondary-area')\"\n                                     class=\"actions-secondary\"\n                                     data-role=\"add-to-links\">\n                                    <fastForEach args=\"data: getRegion('action-secondary-area'), as: '$col'\" >\n                                        <render args=\"$col.getBody()\"></render>\n                                    </fastForEach>\n                                </div>\n                            </div>\n\n                            <div if=\"regionHasElements('description-area')\"\n                                 class=\"product-item-description\">\n                                <fastForEach args=\"data: getRegion('description-area'), as: '$col'\" >\n                                    <render args=\"$col.getBody()\"></render>\n                                </fastForEach>\n                            </div>\n                        </div>\n                    </div>\n                </li>\n            </ol>\n        </div>\n    </div>\n</div>\n","Magento_Catalog/template/product/list/columns/image_with_borders.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<if args=\"isAllowed()\">\n    <a if=\"imageExists($row())\"\n       class=\"product-item-photo\"\n       attr=\"href: $row().url\">\n        <span class=\"product-image-container\"\n              data-bind=\"style: {width: getWidth($row()) + 'px'}\">\n            <span class=\"product-image-wrapper\"\n                  data-bind=\"style: {'padding-bottom': getHeight($row())/getWidth($row()) * 100 + '%'}\">\n                <img class=\"product-image-photo\"\n                     loading=\"lazy\"\n                     data-bind=\"attr: {src: getImageUrl($row()),\n                                       alt: getLabel($row()), title: getLabel($row())}\" />\n            </span>\n        </span>\n    </a>\n</if>\n","Magento_Catalog/template/product/list/columns/image.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<if args=\"isAllowed()\">\n    <a class=\"product-item-photo\"\n       attr=\"href: $row().url\">\n        <img if=\"imageExists($row())\"\n             class=\"product-image-photo\"\n             loading=\"lazy\"\n             attr=\"src: getImageUrl($row()),\n               alt: getLabel($row()),\n               title: getLabel($row()),\n               width: getResizedImageWidth($row()),\n               height: getResizedImageHeight($row())\"/>\n    </a>\n</if>\n\n","Magento_GiftMessage/template/gift-message.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<!-- ko if: isActive() || hasActiveOptions() -->\n<div class=\"cart-gift-item\">\n    <div class=\"gift-item-block block\"\n         data-collapsible=\"true\"\n         data-bind=\"css: {_active: formBlockVisibility() || resultBlockVisibility()}\">\n        <div class=\"title\" data-role=\"title\" data-bind=\"click: $data.toggleFormBlockVisibility.bind($data)\">\n            <span data-bind=\"i18n: 'Gift options'\"></span>\n        </div>\n        <div class=\"content\" data-role=\"content\" data-bind=\"visible: formBlockVisibility() || resultBlockVisibility()\">\n            <!-- ko ifnot: resultBlockVisibility() -->\n            <div class=\"gift-options\">\n                <!-- ko foreach: getRegion('additionalOptions') -->\n                    <!-- ko template: getTemplate() --><!-- /ko -->\n                <!-- /ko -->\n                <!-- ko template: formTemplate --><!--/ko-->\n            </div>\n            <!-- /ko -->\n            <div class=\"gift-summary\">\n                <!-- ko if: resultBlockVisibility() -->\n                    <!-- ko foreach: getRegion('additionalOptions') -->\n                         <!--ko template: appliedTemplate --><!-- /ko -->\n                    <!-- /ko -->\n\n                    <!-- ko if: getObservable('message') -->\n                        <div class=\"gift-message-summary\">\n                            <span data-bind=\"i18n: 'Message:'\"></span>\n                            <!-- ko text: getObservable('message') --><!-- /ko -->\n                        </div>\n                    <!-- /ko -->\n                    <div class=\"actions-toolbar\">\n                        <div class=\"secondary\">\n                            <button type=\"submit\"\n                                    class=\"action action-edit\"\n                                    data-bind=\"attr: {title: $t('Edit')}, click: $data.editOptions.bind($data)\">\n                                <span data-bind=\"i18n: 'Edit'\"></span>\n                            </button>\n                            <button class=\"action action-delete\"\n                                    data-bind=\"attr: {title: $t('Delete')}, click: $data.deleteOptions.bind($data)\">\n                                <span data-bind=\"i18n: 'Delete'\"></span>\n                            </button>\n                        </div>\n                    </div>\n                <!-- /ko -->\n            </div>\n        </div>\n    </div>\n</div>\n<!-- /ko -->\n","Magento_GiftMessage/template/gift-message-form.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<!-- ko if: isActive() -->\n<div class=\"gift-message\">\n    <div class=\"gift-options-title\">\n        <span data-bind=\"i18n: 'Gift Message (optional)'\"></span>\n    </div>\n    <div class=\"gift-options-content\">\n        <fieldset class=\"fieldset\">\n            <div class=\"field field-to\">\n                <label data-bind=\"attr: {for: 'gift-message-whole-to-' + index }\" class=\"label\">\n                    <span data-bind=\"i18n: 'To:'\"></span>\n                </label>\n                <div class=\"control\">\n                    <input type=\"text\"\n                           class=\"input-text\"\n                           data-bind=\"value: getObservable('recipient'), attr: { id: 'gift-message-whole-to-' + index }\">\n                </div>\n            </div>\n\n            <div class=\"field field-from\">\n                <label data-bind=\"attr: {for: 'gift-message-whole-from-' + index }\" class=\"label\">\n                    <span data-bind=\"i18n: 'From:'\"></span>\n                </label>\n                <div class=\"control\">\n                    <input type=\"text\"\n                           class=\"input-text\"\n                           data-bind=\"value: getObservable('sender'), attr: { id: 'gift-message-whole-from-' + index }\">\n                </div>\n            </div>\n            <div class=\"field text\">\n                <label data-bind=\"attr: {for: 'gift-message-whole-message-' + index }\" class=\"label\">\n                    <span data-bind=\"i18n: 'Message:'\"></span>\n                </label>\n                <div class=\"control\">\n                    <textarea class=\"input-text\"\n                              rows=\"5\" cols=\"10\"\n                              data-bind=\"value: getObservable('message'), attr: { id: 'gift-message-whole-message-' + index }\"></textarea>\n                </div>\n            </div>\n        </fieldset>\n    </div>\n</div>\n<!-- /ko -->\n<div class=\"actions-toolbar\">\n    <div class=\"secondary\">\n        <button type=\"submit\" class=\"action secondary action-update\" data-bind=\"\n                    attr: {title: $t('Update')},\n                    click: $data.submitOptions.bind($data)\">\n            <span data-bind=\"i18n: 'Update'\"></span>\n        </button>\n        <button class=\"action action-cancel\" data-bind=\"\n                    attr: {title: $t('Cancel')},\n                    click: $data.hideFormBlock.bind($data)\">\n            <span data-bind=\"i18n: 'Cancel'\"></span>\n        </button>\n    </div>\n</div>\n","Magento_GiftMessage/template/gift-message-item-level.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n -->\n<!-- ko if: isActive() || hasActiveOptions() -->\n<button class=\"action action-gift\"\n        data-bind=\"\n            click: $data.toggleFormBlockVisibility.bind($data),\n            css: {_active: formBlockVisibility() || resultBlockVisibility()}\n        \">\n    <span data-bind=\"i18n: 'Gift options'\"></span>\n</button>\n<div class=\"gift-content\" data-bind=\"css: {_active: formBlockVisibility() || resultBlockVisibility()}\"> <!-- add class \"active\" to display the content -->\n    <!-- ko ifnot: resultBlockVisibility() -->\n        <div class=\"gift-options\">\n            <!-- ko foreach: getRegion('additionalOptions') -->\n                <!-- ko template: getTemplate() --><!-- /ko -->\n            <!-- /ko -->\n            <!-- ko template: formTemplate --><!--/ko-->\n        </div>\n    <!-- /ko -->\n    <!-- ko if: resultBlockVisibility() -->\n        <div class=\"gift-summary\">\n            <!-- ko foreach: getRegion('additionalOptions') -->\n                <!--ko template: appliedTemplate --><!-- /ko -->\n            <!-- /ko -->\n\n            <!-- ko if: getObservable('message') -->\n                <div class=\"gift-message-summary\">\n                    <span data-bind=\"i18n: 'Message' + ':'\"></span>\n                    <!-- ko text: getObservable('message') --><!-- /ko -->\n                </div>\n            <!-- /ko -->\n\n            <div class=\"actions-toolbar\">\n                <div class=\"secondary\">\n                    <button type=\"submit\" class=\"action action-edit\" data-bind=\"\n                            click: $data.editOptions.bind($data),\n                            attr: {title: $t('Edit')}\">\n                        <span data-bind=\"i18n: 'Edit'\"></span>\n                    </button>\n                    <button class=\"action action-delete\" data-bind=\"\n                            click: $data.deleteOptions.bind($data),\n                            attr: {title: $t('Delete')}\">\n                        <span data-bind=\"i18n: 'Delete'\"></span>\n                    </button>\n                </div>\n            </div>\n        </div>\n    <!-- /ko -->\n</div>\n<!-- /ko -->\n","Amasty_MessengerWidget/template/messenger-widget.html":"<div class=\"ammessenger-widget-container\"\n     data-bind=\"css: widgetPositionCss\">\n    <div class=\"ammessenger-widget-component\"\n         data-bind=\"css: widgetCssModifiers\">\n        <!-- ko if: messengers.length === 1 -->\n        <a class=\"ammessenger-item -single\" data-bind=\"{\n            attr: {\n                href: messengers[0].link,\n                title: messengers[0].tooltip,\n                'aria-label': messengers[0].title\n            },\n            click: !isPrivacyPolicyAccepted() ? onMainButtonClick : ''\n        }\" target=\"_blank\">\n            <img class=\"ammessenger-icon\" data-bind=\"{\n                attr: {\n                    src: messengers[0].image_src[0],\n                    srcset: messengers[0].image_src.length > 1 ? messengers[0].image_src[1] + ' 2x' : '',\n                    alt: messengers[0].tooltip\n                }\n            }\" >\n        </a>\n        <!-- /ko -->\n        <!-- ko if: messengers.length > 1 -->\n        <span class=\"ammessenger-toggle\"\n              click=\"onMainButtonClick\"\n              data-bind=\"css: {'-opened': openedState}\"></span>\n        <div class=\"ammessenger-messengers-container\">\n            <!-- ko fastForEach: { data: messengers, as: 'messenger' } -->\n            <a class=\"ammessenger-item\" data-bind=\"{\n                    attr: {\n                        href: messenger.link,\n                        title: messenger.tooltip,\n                        'aria-label': messenger.title\n                    },\n                    click: $parent.onMessengerClick\n                }\" target=\"_blank\">\n                <img class=\"ammessenger-icon\" data-bind=\"{\n                        attr: {\n                            src: messenger.image_src[0],\n                            srcset: messenger.image_src.length > 1 ? messenger.image_src[1] + ' 2x' : '',\n                            alt: messenger.title\n                        }\n                    }\" >\n            </a>\n            <!-- /ko -->\n        </div>\n        <!-- /ko -->\n        <each args=\"data:elems(), as: 'element'\">\n            <render if=\"hasTemplate()\"></render>\n        </each>\n    </div>\n</div>\n","Amasty_MessengerWidget/template/privacy-policy.html":"<!-- ko if: (isPrivacyPolicyEnabled) -->\n<div class=\"ammessenger-privacy-policy\"\n     data-bind=\"{visible: isPopupOpened}\">\n    <div class=\"ammessenger-popup\">\n        <h2 class=\"ammessenger-title\" data-bind=\"i18n: 'Privacy Policy'\"></h2>\n        <div class=\"ammessenger-content\" data-bind=\"html: privacyPolicyContent\"></div>\n        <!-- ko foreach: getRegion('ammessenger-after-privacy-policy') -->\n            <!-- ko template: getTemplate() --><!-- /ko -->\n        <!--/ko-->\n        <div class=\"ammessenger-actions\">\n            <button class=\"ammessenger-button -accept\"\n                    data-bind=\"\n                        i18n: 'I have read and accept',\n                        click: acceptPrivacyPolicy,\n                        attr: {\n                            title: $t('I have read and accept'),\n                            'aria-label': $t('I have read and accept')\n                        }\n            \"></button>\n            <button class=\"ammessenger-button -reject\"\n                    data-bind=\"\n                        i18n: 'Reject',\n                        click: closePopup,\n                        attr: {\n                            title: $t('Reject'),\n                            'aria-label': $t('Reject')\n                        }\n                    \"></button>\n        </div>\n    </div>\n    <div class=\"ammessenger-overlay\" data-bind=\"{click: closePopup}\"></div>\n</div>\n\n<each args=\"data:elems(), as: 'element'\">\n    <render if=\"hasTemplate()\"></render>\n</each>\n<!--/ko-->\n","MGS_AjaxCart/template/ajaxcart/cart_items.html":"<div class=\"item\" data-role=\"product-item\">\n\t<div class=\"product\" data-bind=\"attr: {'data-id': item.item_id}\">\n\t\t<span class=\"item-qty\"><!-- ko text: item.qty --><!-- /ko --></span>\n\t\t<img data-bind=\"attr:{src: item.product_image.src, alt: item.product_image.alt},\n\t\t\tcss:{ 'animated pulse': cartSidebar().trigger }\" />\n\t\t<span class=\"edit-icon pe-7s-note\"></span>\n\t</div>\n    <div class=\"item-actions\">\n        <div class=\"details-qty qty\">\n            <label class=\"label\" data-bind=\"i18n: 'Qty', attr: {\n                   for: 'cart-item-'+item_id+'-qty'}\"></label>\n            <input data-bind=\"attr: {\n                   id: 'ft-cart-item-'+item_id+'-qty',\n                   'data-cart-item': item_id,\n                   'data-item-qty': qty\n                   }, value: qty\"\n                   type=\"number\"\n                   size=\"4\"\n                   class=\"item-qty cart-item-qty\"\n                   maxlength=\"12\"/>\n            <button data-bind=\"attr: {\n                   id: 'ft-update-cart-item-'+item_id,\n                   'data-cart-item': item_id,\n                   title: $t('Ok')\n                   }\"\n                    class=\"update-cart-item\"\n                    style=\"display: none\">\n                <span data-bind=\"i18n: 'Ok'\"></span>\n            </button>\n        </div>\n        <div class=\"product actions\">\n            <!-- ko if: is_visible_in_site_visibility -->\n            <div class=\"primary\">\n                <a data-bind=\"attr: {href: configure_url, title: $t('Edit item')}\" class=\"action edit\">\n                    <span data-bind=\"i18n: 'Edit'\"></span>\n                </a>\n            </div>\n            <!-- /ko -->\n            <div class=\"secondary\">\n                <a href=\"#\" data-bind=\"attr: {'data-cart-item': item_id, title: $t('Remove item')}\"\n                   class=\"action delete\">\n                    <span data-bind=\"i18n: 'Remove'\"></span>\n                </a>\n            </div>\n        </div>\n\t</div>\n</div>","MGS_AjaxCart/template/ajaxcart/summary.html":"<div class=\"summary-content\">\n\t<!-- ko if: cartSidebar().summary_count -->\n\t<div class=\"summary-field\">\n    \t<span class=\"title\"><!-- ko i18n: 'Total Item' --><!-- /ko --></span>\n        <span class=\"value\" data-bind=\"text: cartSidebar().summary_count\"></span>\n    </div>\n\t<!-- /ko -->\n    <!-- ko if: cartSidebar().subtotal -->\n\t<div class=\"summary-field\">\n    \t<span class=\"title\"><!-- ko i18n: 'Subtotal' --><!-- /ko --></span>\n        <span class=\"value\" data-bind=\"html: cartSidebar().subtotal\"></span>\n    </div>\n\t<!-- /ko -->\n</div>","Magento_Weee/template/price/adjustment.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<if args=\"$adj.displayPriceInclFptDescr() || $adj.displayPriceExclFptDescr()\">\n    <each args=\"data: $adj.getWeeeAttributes($row()), as: '$taxAttribute'\">\n        <if args=\"$adj.displayBothPricesTax()\">\n            <span class=\"weee\"\n                  data-price-type=\"weee\"\n                  attr=\"'data-label': $adj.getWeeTaxAttributeName($taxAttribute) + ' ' + $t('Incl. tax')\"\n                  html=\"$adj.getWeeeTaxWithoutTaxUnsanitizedHtml($taxAttribute)\"></span>\n\n            <span class=\"weee\"\n                  data-price-type=\"weee\"\n                  attr=\"'data-label': $adj.getWeeTaxAttributeName($taxAttribute) + ' ' + $t('Excl. tax')\"\n                  html=\"$adj.getWeeeTaxWithTaxUnsanitizedHtml($taxAttribute)\"></span>\n        </if>\n\n        <if args=\"$adj.displayPriceInclTax()\">\n            <span class=\"weee\"\n                  data-price-type=\"weee\"\n                  attr=\"'data-label': $adj.getWeeTaxAttributeName($taxAttribute)\"\n                  html=\"$adj.getWeeeTaxWithTaxUnsanitizedHtml($taxAttribute)\"></span>\n        </if>\n\n        <if args=\"$adj.displayPriceExclTax()\">\n            <span class=\"weee\"\n                  data-price-type=\"weee\"\n                  attr=\"'data-label': $adj.getWeeTaxAttributeName($taxAttribute)\"\n                  html=\"$adj.getWeeeTaxWithoutTaxUnsanitizedHtml($taxAttribute)\"></span>\n        </if>\n    </each>\n</if>\n\n<if args=\"$adj.displayPriceExclFptDescr($row())\">\n    <span class=\"price-final\"\n          data-price-type=\"weeePrice\"\n          data-price-amount=\"\"\n          attr=\"'data-label': $t('Final Price')\"\n          html=\"$adj.getWeeeAdjustmentUnsanitizedHtml($row())\"></span>\n</if>\n","Magento_Weee/template/checkout/summary/weee.html":"<!--\n/**\n* Copyright \u00a9 Magento, Inc. All rights reserved.\n* See COPYING.txt for license details.\n*/\n-->\n<!-- ko if: isDisplayed() -->\n<tr class=\"totals\">\n    <th data-bind=\"text: title\" class=\"mark\" scope=\"row\"></th>\n    <td class=\"amount\" data-bind=\"attr: {'data-th': title}\">\n        <span class=\"price\" data-bind=\"text: getValue()\"></span>\n    </td>\n</tr>\n<!-- /ko -->\n","Magento_Weee/template/checkout/summary/item/price/row_incl_tax.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<!-- ko if:  (isDisplayPriceWithWeeeDetails($parents[2])) -->\n    <span class=\"cart-tax-total\" data-bind=\"mageInit: {taxToggle: {itemTaxId : '#subtotal-item-tax-details'+$parents[2].item_id}}\">\n        <span class=\"price\" data-bind=\"text: getFormattedPrice(getRowDisplayPriceInclTax($parents[2]))\"></span>\n    </span>\n<!-- /ko -->\n\n<!-- ko ifnot: (isDisplayPriceWithWeeeDetails($parents[2])) -->\n    <span class=\"cart-price\">\n        <span class=\"price\" data-bind=\"text: getFormattedPrice(getRowDisplayPriceInclTax($parents[2]))\"></span>\n    </span>\n<!-- /ko -->\n\n<!--ko if:  (getWeeeTaxApplied($parents[2]).length > 0)-->\n    <!-- ko ifnot:  (isDisplayPriceWithWeeeDetails($parents[2])) -->\n        <span class=\"cart-tax-info\" data-bind =\"attr: {'id': 'subtotal-item-tax-details' + $parents[2].item_id}\" style=\"display: none;\"></span>\n    <!-- /ko -->\n\n    <!-- ko if:  (isDisplayPriceWithWeeeDetails($parents[2])) -->\n        <span class=\"cart-tax-info\" data-bind =\"attr: {'id': 'subtotal-item-tax-details' + $parents[2].item_id}\" style=\"display: none;\">\n         <!-- ko foreach: getWeeeTaxApplied($parents[2]) -->\n            <span class=\"weee\" data-bind=\"attr:{'data-label':title}\">\n                <span class=\"price\" data-bind=\"text: $parent.getFormattedPrice(row_amount_incl_tax)\"></span>\n            </span>\n         <!-- /ko -->\n        </span>\n    <!-- /ko -->\n\n    <!-- ko if: isDisplayFinalPrice($parents[2]) -->\n        <span class=\"cart-tax-total\" data-bind=\"mageInit: {taxToggle: {itemTaxId : '#subtotal-item-tax-details'+$parents[2].item_id}}\">\n            <span class=\"weee\" data-bind=\"attr: {'data-label':$t('Total incl. tax')}\">\n                <span class=\"price\" data-bind=\"text: getFormattedPrice(getFinalRowDisplayPriceInclTax($parents[2]))\"></span>\n            </span>\n        </span>\n    <!-- /ko -->\n<!-- /ko -->\n","Magento_Weee/template/checkout/summary/item/price/row_excl_tax.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<!-- ko if:  (isDisplayPriceWithWeeeDetails($parents[2])) -->\n    <span class=\"cart-tax-total\" data-bind=\"mageInit: {taxToggle: {itemTaxId : '#esubtotal-item-tax-details'+$parents[2].item_id}}\">\n        <span class=\"price\" data-bind=\"text: getFormattedPrice(getRowDisplayPriceExclTax($parents[2]))\"></span>\n    </span>\n<!-- /ko -->\n\n<!-- ko ifnot: (isDisplayPriceWithWeeeDetails($parents[2])) -->\n    <span class=\"cart-price\">\n        <span class=\"price\" data-bind=\"text: getFormattedPrice(getRowDisplayPriceExclTax($parents[2]))\"></span>\n    </span>\n<!-- /ko -->\n\n<!--ko if:  (getWeeeTaxApplied($parents[2]).length > 0) -->\n    <!-- ko ifnot:  (isDisplayPriceWithWeeeDetails($parents[2])) -->\n        <span class=\"cart-tax-info\" data-bind =\"attr: {'id': 'esubtotal-item-tax-details' + $parents[2].item_id}\" style=\"display: none;\"></span>\n    <!-- /ko -->\n\n    <!-- ko if:  (isDisplayPriceWithWeeeDetails($parents[2])) -->\n        <span class=\"cart-tax-info\" data-bind =\"attr: {'id': 'esubtotal-item-tax-details' + $parents[2].item_id}\" style=\"display: none;\">\n         <!-- ko foreach: getWeeeTaxApplied($parents[2]) -->\n            <span class=\"weee\" data-bind=\"attr:{'data-label':title}\">\n                <span class=\"price\" data-bind=\"text: $parent.getFormattedPrice(row_amount)\"></span>\n            </span>\n         <!-- /ko -->\n        </span>\n    <!-- /ko -->\n\n    <!-- ko if: isDisplayFinalPrice($parents[2]) -->\n        <span class=\"cart-tax-total\" data-bind=\"mageInit: {taxToggle: {itemTaxId : '#esubtotal-item-tax-details'+$parents[2].item_id}}\">\n            <span class=\"weee\" data-bind=\"attr: {'data-label':$t('Total')}\">\n                <span class=\"price\" data-bind=\"text: getFormattedPrice(getFinalRowDisplayPriceExclTax($parents[2]))\"></span>\n            </span>\n        </span>\n    <!-- /ko -->\n<!-- /ko -->\n","Magento_Msrp/template/checkout/minicart/subtotal/totals.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<span class=\"mark msrp\" data-bind=\"i18n: 'Order total will be displayed before you submit the order'\"></span>\n","Magento_Msrp/template/product/price/price_box.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div if=\"isMsrpApplicable($row())\"\n     class=\"price-box\" data-role=\"msrp-price-box\"\n     afterRender=\"initListeners\">\n    <span class=\"old-price map-old-price\">\n        <span class=\"price-container price-msrp\">\n            <span class=\"price-wrapper\"\n                  data-price-amount=\"\"\n                  data-price-type=\"\"\n                  html=\"getMsrpPriceUnsanitizedHtml($row())\"></span>\n        </span>\n    </span>\n\n    <if args=\"isShowPriceOnGesture($row())\">\n        <button type=\"button\"\n                class=\"action map-show-info\"\n                data-role=\"msrp-popup-trigger\"\n                aria-haspopup=\"true\">\n            <span translate=\"'Click for price'\"></span>\n        </button>\n\n        <render args=\"popupTmpl\"></render>\n    </if>\n\n    <ifnot args=\"isShowPriceOnGesture($row())\">\n        <span class=\"msrp-message\"\n              html=\"getMsrpPriceMessageUnsanitizedHtml($row())\"></span>\n    </ifnot>\n</div>\n\n<ifnot args=\"isMsrpApplicable($row())\">\n    <div class=\"price-box\"\n         if=\"isAllowed()\">\n        <each args=\"data: getPrices($row()), as: '$price'\">\n            <with args=\"$price\">\n                <render args=\"getBody()\"></render>\n            </with>\n        </each>\n    </div>\n</ifnot>\n","Magento_Msrp/template/product/item/popup.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"map-popup\"\n     data-role=\"msrp-popup\">\n    <div class=\"map-info-price\">\n        <div class=\"price-box\">\n            <div class=\"map-msrp\">\n                <span class=\"label\"\n                      translate=\"'Price'\"></span>\n\n                <span class=\"old-price map-old-price\">\n                    <span class=\"price-container price-msrp\">\n                        <span class=\"price-wrapper\"\n                              html=\"getMsrpPriceUnsanitizedHtml($row())\"></span>\n                    </span>\n                </span>\n            </div>\n\n            <div class=\"map-price\">\n                <span class=\"label\"\n                      translate=\"'Actual Price'\"></span>\n\n                <span class=\"actual-price\">\n                    <if args=\"isAllowed()\">\n                        <each args=\"data: getPrices($row()), as: '$price'\">\n                            <with args=\"$price\">\n                                <render args=\"getBody()\"></render>\n                            </with>\n                        </each>\n                    </if>\n                </span>\n            </div>\n        </div>\n\n        <div class=\"map-form-addtocart\">\n            <with args=\"$parent.getComponentByCode('addtocart-button')\">\n                <render args=\"getBody()\"></render>\n            </with>\n        </div>\n    </div>\n\n    <div class=\"map-text\"\n         html=\"getExplanationMessageUnsanitizedHtml($row())\"></div>\n</div>\n","Magento_Ui/template/messages.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div data-role=\"checkout-messages\" class=\"messages\" data-bind=\"visible: isVisible(), click: removeAll\">\n    <!-- ko foreach: messageContainer.getErrorMessages() -->\n    <div aria-atomic=\"true\" role=\"alert\" class=\"message message-error error\">\n        <div data-ui-id=\"checkout-cart-validationmessages-message-error\" data-bind=\"text: $data\"></div>\n    </div>\n    <!--/ko-->\n    <!-- ko foreach: messageContainer.getSuccessMessages() -->\n    <div aria-atomic=\"true\" role=\"alert\" class=\"message message-success success\">\n        <div data-ui-id=\"checkout-cart-validationmessages-message-success\" data-bind=\"text: $data\"></div>\n    </div>\n    <!--/ko-->\n</div>\n","Magento_Ui/templates/area.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<if args=\"wasActivated\">\n    <div each=\"elems\" visible=\"active\" attr=\"'data-area-active': active\" render=\"\"></div>\n</if>\n","Magento_Ui/templates/collection.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<each args=\"data: elems, as: 'element'\">\n    <render if=\"hasTemplate()\"></render>\n</each>\n","Magento_Ui/templates/block-loader.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div data-role=\"loader\" class=\"loading-mask\" style=\"position: absolute;\">\n    <div class=\"loader\">\n        <img src=\"<%= loaderImageHref %>\" alt=\"Loading...\" title=\"Loading...\" style=\"position: absolute;\">\n    </div>\n</div>\n","Magento_Ui/templates/tab.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"admin__page-nav\">\n    <div class=\"admin__page-nav-title\" css=\"_collapsible: collapsible, _opened: opened && collapsible\" click=\"toggleOpened\" keyboard=\"13: toggleOpened\">\n        <strong tabindex=\"1\" text=\"label\" keyboard=\"13: toggleOpened\"></strong>\n    </div>\n    <ul class=\"admin__page-nav-items items\" each=\"elems\" visible=\"opened\">\n        <li class=\"admin__page-nav-item\" tabindex=\"2\" css=\"_active: active, _loading: loading\" click=\"activate\" keyboard=\"13: activate\">\n            <a class=\"admin__page-nav-link\" href=\"#\" css=\"_changed: changed\" attr=\"id: 'tab_' + index\">\n                <span text=\"label\"></span>\n                <span class=\"admin__page-nav-item-messages\">\n                    <span class=\"admin__page-nav-item-message _changed\">\n                        <span class=\"admin__page-nav-item-message-icon\"></span>\n                        <span class=\"admin__page-nav-item-message-tooltip\"\n                               translate=\"'Changes have been made to this section that have not been saved.'\"></span>\n                    </span>\n                    <span class=\"admin__page-nav-item-message-loader\">\n                        <span class=\"spinner\">\n                           <span repeat=\"8\"></span>\n                        </span>\n                   </span>\n                </span>\n            </a>\n        </li>\n    </ul>\n</div>\n","Magento_Ui/templates/form/collection.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<each args=\"data: items, as: '$item'\">\n    <each args=\"$item\" render=\"\"></each>\n</each>\n","Magento_Ui/templates/form/field.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"field\" data-bind=\"visible: visible, attr: {'name': element.dataScope}, css: additionalClasses\">\n\n    <label class=\"label\" data-bind=\"attr: { for: element.uid }\"><!-- ko if: element.label --><span translate=\"element.label\"></span><!-- /ko --></label>\n\n    <div class=\"control\" data-bind=\"css: {'_with-tooltip': element.tooltip}\">\n        <!-- ko ifnot: element.hasAddons() -->\n            <!-- ko template: element.elementTmpl --><!-- /ko -->\n        <!-- /ko -->\n\n        <!-- ko if: element.hasAddons() -->\n            <div class=\"control-addon\">\n                <!-- ko template: element.elementTmpl --><!-- /ko -->\n\n                <!-- ko if: element.addbefore -->\n                    <label class=\"addon-prefix\" data-bind=\"attr: { for: element.uid }\"><span data-bind=\"text: element.addbefore\"></span></label>\n                <!-- /ko -->\n\n                <!-- ko if: element.addafter -->\n                    <label class=\"addon-suffix\" data-bind=\"attr: { for: element.uid }\"><span data-bind=\"text: element.addafter\"></span></label>\n                <!-- /ko -->\n            </div>\n        <!-- /ko -->\n\n        <!-- ko if: element.tooltip -->\n            <!-- ko template: element.tooltipTpl --><!-- /ko -->\n        <!-- /ko -->\n\n        <!-- ko if: element.notice -->\n            <div class=\"field-note\" data-bind=\"attr: { id: element.noticeId }\">\n                <span data-bind=\"text: element.notice\"></span>\n            </div>\n        <!-- /ko -->\n\n        <!-- ko if: element.error() -->\n            <div class=\"field-error\" data-bind=\"attr: { id: element.errorId }\" generated=\"true\">\n                <span data-bind=\"text: element.error\"></span>\n            </div>\n        <!-- /ko -->\n\n        <!-- ko if: element.warn() -->\n            <div role=\"alert\" class=\"message warning\" data-bind=\"attr: { id: element.warningId }\" generated=\"true\">\n                <span data-bind=\"text: element.warn\"></span>\n            </div>\n        <!-- /ko -->\n    </div>\n</div>\n","Magento_Ui/templates/form/fieldset.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"fieldset-wrapper\"\n     css=\"$data.additionalClasses\"\n     attr=\"'data-level': $data.level, 'data-index': index\"\n     data-bind=\"visible: $data.visible === undefined ? true: $data.visible\">\n    <div class=\"fieldset-wrapper-title\"\n         attr=\"tabindex: !collapsible ? -1 : 0,\n               'data-state-collapsible': collapsible ? opened() ? 'open' : 'closed' : null\"\n         click=\"toggleOpened\"\n         keyboard=\"13: toggleOpened\"\n         if=\"label\">\n\n        <strong css=\"'admin__collapsible-title': collapsible,\n                      title: !collapsible,\n                      '_changed': changed,\n                      '_loading': loading,\n                      '_error': error\">\n            <span translate=\"label\"></span>\n            <span class=\"admin__page-nav-item-messages\" if=\"collapsible\">\n                <span class=\"admin__page-nav-item-message _changed\">\n                    <span class=\"admin__page-nav-item-message-icon\"\n                          role=\"tooltip\"\n                          tabindex=\"0\"\n                          aria-labelledby=\"changed-message-tooltip\">\n                    </span>\n                    <span class=\"admin__page-nav-item-message-tooltip\" id=\"changed-message-tooltip\"\n                          data-bind=\"i18n: 'Changes have been made to this section that have not been saved.'\">\n                    </span>\n                </span>\n                <span class=\"admin__page-nav-item-message _error\">\n                    <span class=\"admin__page-nav-item-message-icon\"\n                          role=\"tooltip\"\n                          tabindex=\"0\"\n                          aria-labelledby=\"error-message-tooltip\">\n                    </span>\n                    <span class=\"admin__page-nav-item-message-tooltip\" id=\"error-message-tooltip\"\n                          data-bind=\"i18n: 'This tab contains invalid data. Please resolve this before saving.'\">\n                    </span>\n                </span>\n                <span class=\"admin__page-nav-item-message-loader\">\n                    <span class=\"spinner\">\n                       <span repeat=\"8\"></span>\n                    </span>\n               </span>\n            </span>\n        </strong>\n    </div>\n\n    <div class=\"admin__fieldset-wrapper-content\"\n         css=\"'admin__collapsible-content': collapsible, '_show': opened, '_hide': !opened()\">\n        <fieldset\n                if=\"opened() || _wasOpened || initializeFieldsetDataByDefault\"\n                class=\"admin__fieldset\"\n                each=\"data: elems, as: 'element'\" render=\"\"></fieldset>\n    </div>\n</div>\n","Magento_Ui/templates/form/insert.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n\n<div data-bind=\"bindHtml: content,\n        visible: visible,\n        css: contentSelector\"></div>\n\n<!--ko if: showSpinner -->\n<div data-role=\"spinner\" class=\"admin__data-grid-loading-mask\" data-bind=\"visible: loading\">\n    <div class=\"spinner\">\n        <span></span><span></span><span></span><span></span>\n        <span></span><span></span><span></span><span></span>\n    </div>\n</div>\n<!-- /ko -->\n","Magento_Ui/templates/form/components/collection.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"ui-tabs\">\n    <ul class=\"address-list ui-tabs-nav\">\n\n        <li class=\"address-list-item\" outereach=\"elems\" css=\"'ui-state-active': active\" click=\"activate\">\n            <div class=\"address-list-item-actions\">\n                <button class=\"action-delete\" type=\"button\" click=\"$parent.removeAddress.bind($parent, $data)\">\n                    <span text=\"$parent.removeLabel\"></span>\n                </button>\n            </div>\n            <render args=\"previewTpl\"></render>\n            <div each=\"getRegion('head')\" render=\"\"></div>\n        </li>\n\n        <li class=\"address-list-actions last\">\n            <button class=\"scalable add\" type=\"button\" click=\"addChild\">\n                <span text=\"addLabel\"></span>\n            </button>\n        </li>\n    </ul>\n\n    <div class=\"address-item-edit\" outereach=\"elems\" visible=\"active\">\n        <div class=\"address-item-edit-content\">\n            <fieldset class=\"admin__fieldset\">\n                <legend class=\"admin__legend\">\n                    <span text=\"$parent.label\"></span>\n                </legend><br />\n\n                <each args=\"getRegion('body')\" render=\"\"></each>\n            </fieldset>\n        </div>\n    </div>\n</div>\n","Magento_Ui/templates/form/components/complex.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n\n<div class=\"admin__field-complex\" css=\"$data.additionalClasses\" attr=\"'data-index': index\">\n\n    <div class=\"admin__field-complex-title\" if=\"label\">\n        <span text=\"label\"></span>\n    </div>\n\n    <div class=\"admin__field-complex-elements\"\n         each=\"data: elems, as: 'element'\"\n         render=\"\"></div>\n\n    <!-- ko if: $data.content -->\n        <!-- ko with: {contentUnsanitizedHtml: $data.content} -->\n            <div class=\"admin__field-complex-content\" html=\"contentUnsanitizedHtml\"></div>\n        <!-- /ko -->\n    <!-- /ko -->\n\n    <!-- ko if: $data.text -->\n        <!-- ko with: {textUnsanitizedHtml: $data.text} -->\n            <div class=\"admin__field-complex-text\" html=\"textUnsanitizedHtml\"></div>\n        <!-- /ko -->\n    <!-- /ko -->\n</div>\n","Magento_Ui/templates/form/components/collection/preview.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<address>\n    <each args=\"{\n        data: formatPreviews([\n            'prefix firstname middlename lastname suffix',\n            'company',\n            'street',\n            {\n                items: 'city region_id region_id_input postcode',\n                separator: ', '\n            },\n            'country_id',\n            {\n                items: 'telephone',\n                prefix: 'T: '\n            },\n            {\n                items: 'fax',\n                prefix: 'F: '\n            },\n            {\n                items: 'vat_id',\n                prefix: 'VAT: '\n            }\n        ]),\n        as: '$preview'}\"\n    >\n\n        <if args=\"$parent.hasPreview($preview)\">\n            <span text=\"$parent.buildPreview($preview)\"></span><br />\n        </if>\n    </each>\n\n    <if args=\"noPreview\">\n        <span text=\"label\"></span><br />\n    </if>\n</address>\n","Magento_Ui/templates/form/components/button/container.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"admin__field admin__field-group-additional\" css=\"$data.additionalClasses\" visible=\"visible\">\n    <label class=\"admin__field-label\" if=\"$data.label\" visible=\"$data.labelVisible\">\n        <span text=\"label\"></span>\n    </label>\n\n    <div class=\"admin__field-control\">\n        <render args=\"elementTmpl\"></render>\n    </div>\n</div>\n","Magento_Ui/templates/form/components/button/simple.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<render args=\"elementTmpl\" if=\"visible\"></render>\n","Magento_Ui/templates/form/components/single/radio.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"admin__field admin__field-option\">\n    <input type=\"radio\"\n           class=\"admin__control-radio\"\n           simple-checked=\"checked\"\n           ko-disabled=\"disabled\"\n           ko-focused=\"focused\"\n           ko-value=\"value\"\n           attr=\"id: uid, name: inputName, 'data-index': index\"/>\n\n    <label class=\"admin__field-label\" text=\"description\" attr=\"for: uid\"></label>\n</div>\n","Magento_Ui/templates/form/components/single/switcher.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"admin__actions-switch\" data-role=\"switcher\">\n    <input type=\"checkbox\"\n           class=\"admin__actions-switch-checkbox\"\n           simple-checked=\"checked\"\n           ko-disabled=\"disabled\"\n           ko-focused=\"focused\"\n           ko-value=\"value\"\n           attr=\"id: uid, name: inputName\"/>\n    <label class=\"admin__actions-switch-label\"\n           attr=\"for: uid\">\n        <span class=\"admin__actions-switch-text\"\n              attr=\"'data-text-on': toggleLabels.on, 'data-text-off': toggleLabels.off\"></span>\n    </label>\n</div>\n","Magento_Ui/templates/form/components/single/field.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<render args=\"elementTmpl\" visible=\"visible\"></render>\n","Magento_Ui/templates/form/components/single/checkbox.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"admin__field admin__field-option\">\n    <input type=\"checkbox\"\n           class=\"admin__control-checkbox\"\n           simple-checked=\"checked\"\n           ko-disabled=\"disabled\"\n           ko-focused=\"focused\"\n           ko-value=\"value\"\n           attr=\"id: uid, name: inputName\"/>\n\n    <label class=\"admin__field-label\" text=\"description\" attr=\"for: uid\"></label>\n</div>\n","Magento_Ui/templates/form/element/multiselect.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<select multiple class=\"admin__control-multiselect\" data-bind=\"\n    attr: {\n        name: inputName,\n        id: uid,\n        size: size ? size : '6',\n        disabled: disabled,\n        'aria-describedby': noticeId,\n        placeholder: placeholder\n    },\n    hasFocus: focused,\n    optgroup: options,\n    selectedOptions: value,\n    optionsValue: 'value',\n    optionsText: 'label'\"\n></select>\n","Magento_Ui/templates/form/element/text.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<span class=\"admin__field-value\"\n       data-bind=\"\n        text: value,\n        attr: {\n            name: inputName,\n            id: uid\n    }\"></span>\n","Magento_Ui/templates/form/element/hidden.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<input class=\"admin__control-text\" type=\"hidden\"\n       data-bind=\"\n        value: value,\n        hasFocus: focused,\n        attr: {\n            name: inputName,\n            placeholder: placeholder,\n            'aria-describedby': noticeId,\n            id: uid\n    }\"/>\n","Magento_Ui/templates/form/element/url-input.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<!--render select with link types-->\n<div class=\"admin__field url-input-container\"\n     visible=\"visible\"\n     css=\"$data.additionalClasses\"\n     attr=\"'data-index': index\">\n    <label class=\"admin__field-label\" if=\"$data.label\" visible=\"$data.labelVisible\" attr=\"for: uid\">\n        <span translate=\"label\" attr=\"'data-config-scope': $data.scopeLabel\"></span>\n    </label>\n    <div class=\"admin__field-control\"\n         css=\"'_with-tooltip': $data.tooltip, '_with-reset': $data.showFallbackReset && $data.isDifferedFromDefault\">\n            <div class=\"type-selector-input-container\">\n                <!--render link types select-->\n                <render args=\"typeSelectorTemplate\"></render>\n\n                <!--display field to insert link value based on link type-->\n                <div ko-scope=\"getLinkedElementName()\" class=\"url-input-element-linked-element\">\n                    <render></render>\n                    <label class=\"admin__field-error\" visible=\"error\" attr=\"for: uid\" text=\"error\"></label>\n                </div>\n            </div>\n\n        <!--display container to specify url options(Example: open in new tab)-->\n        <div render=\"settingTemplate\" if=\"isDisplayAdditionalSettings\"></div>\n    </div>\n</div>\n","Magento_Ui/templates/form/element/radio.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"admin__field admin__field-option\">\n    <input type=\"radio\"\n           class=\"admin__control-radio\"\n           data-bind=\"checkedValue: value, checked: checked\"\n           ko-disable=\"disabled\"\n           hasFocus=\"focused\"\n           attr=\"id: uid, name: inputName\"/>\n\n    <label class=\"admin__field-label\" text=\"label\" attr=\"for: uid\"></label>\n\n    <div class=\"admin__field-note\"\n         if=\"notice\"\n         attr=\"id: noticeId\">\n        <span text=\"notice\"></span>\n    </div>\n</div>\n","Magento_Ui/templates/form/element/split-button.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n\n<div class=\"action-select-wrap\" >\n    <div each=\"getRegion('button')\" render=\"\"></div>\n    <button type=\"button\" class=\"action-select\" click=\"$data.toggleOpened\"></button>\n    <ul class=\"action-menu\" css=\"_active: $data.opened\" >\n        <!-- ko foreach: $data.elems() -->\n            <li>\n                <!--ko template: getTemplate()-->\n                <!-- /ko -->\n            </li>\n        <!-- /ko -->\n    </ul>\n</div>\n","Magento_Ui/templates/form/element/price.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"admin__control-addon\">\n    <label class=\"admin__addon-prefix\" data-bind=\"attr: { for: uid }\"><span data-bind=\"text: currency_sign\"></span></label>\n    <input class=\"admin__control-text\" type=\"text\" data-bind=\"value: value, attr: { id: uid, disabled: disabled, name: inputName }, hasFocus: focused\"/>\n</div>\n","Magento_Ui/templates/form/element/wysiwyg.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n\n<div class=\"admin__control-wysiwig\" data-bind=\"html: content\"></div>\n","Magento_Ui/templates/form/element/checkbox-set.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n\n<fieldset class=\"admin__field\"\n     visible=\"visible\"\n     css=\"$data.additionalClasses\"\n     attr=\"'data-config-scope': $data.scopeLabel, 'data-index': index\">\n    <legend class=\"admin__field-label\" if=\"$data.label\" attr=\"for: uid\">\n        <span text=\"label\"></span>\n    </legend>\n\n    <div class=\"admin__field-control\"\n         css=\"'_with-tooltip': $data.tooltip\">\n        <div class=\"admin__field admin__field-option\" outereach=\"options\">\n            <input\n                ko-checked=\"$parent.value\"\n                ko-disabled=\"$parent.disabled\"\n                css=\"\n                    'admin__control-radio': !$parent.multiple,\n                    'admin__control-checkbox': $parent.multiple\"\n                attr=\"\n                    id: ++ko.uid,\n                    value: value,\n                    type: $parent.multiple ? 'checkbox' : 'radio'\"/>\n\n            <label class=\"admin__field-label\" text=\"label\" attr=\"for: ko.uid\"></label>\n        </div>\n\n        <label class=\"admin__field-error\" if=\"error\" attr=\"for: uid\" text=\"error\"></label>\n\n        <div class=\"admin__field-note\" if=\"$data.notice\" attr=\"id: noticeId\">\n            <span><strong translate=\"NOTE\"></strong>: <translate args=\"$data.notice\"></translate></span>\n        </div>\n\n        <div class=\"admin__additional-info\" if=\"$data.additionalInfo\" html=\"$data.additionalInfoUnsanitizedHtml\"></div>\n\n        <render args=\"$data.service.template\" if=\"$data.hasService()\"></render>\n    </div>\n</fieldset>\n","Magento_Ui/templates/form/element/textDate.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<span class=\"admin__field-value\"\n      data-bind=\"\n        text: shiftedValue,\n        attr: {\n            name: inputName,\n            id: uid\n    }\"></span>\n","Magento_Ui/templates/form/element/email.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<input class=\"input-text\" type=\"email\" data-bind=\"\n    hasFocus: focused,\n    value: value,\n    attr: {\n        name: inputName,\n        placeholder: placeholder,\n        'aria-describedby': getDescriptionId(),\n        'aria-required': required,\n        'aria-invalid': error() ? true : 'false',\n        id: uid,\n        disabled: disabled\n    }\"/>\n","Magento_Ui/templates/form/element/password.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<input class=\"input-text\" type=\"password\" data-bind=\"\n    hasFocus: focused,\n    value: value,\n    attr: {\n        name: inputName,\n        placeholder: placeholder,\n        'aria-describedby': getDescriptionId(),\n        'aria-required': required,\n        'aria-invalid': error() ? true : 'false',\n        id: uid,\n        disabled: disabled\n    }\"/>\n","Magento_Ui/templates/form/element/switcher.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"admin__actions-switch\" data-role=\"switcher\">\n    <input class=\"admin__actions-switch-checkbox\"\n           type=\"checkbox\"\n           data-bind=\"checked: value, attr: { id: uid, disabled: disabled, name: inputName }, hasFocus: focused\"/>\n    <label class=\"admin__actions-switch-label\"\n           data-bind=\"attr: { for: uid }\">\n        <span data-bind=\"attr: {\n                   'data-text-on': $t('Yes'),\n                   'data-text-off': $t('No')\n              }\"\n              class=\"admin__actions-switch-text\"></span>\n    </label>\n</div>\n","Magento_Ui/templates/form/element/button.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<button type=\"button\"\n        css=\"buttonClasses\"\n        click=\"action\"\n        disable=\"disabled\"\n        attr=\"'data-index': index, 'aria-labelledby': ariLabelledby\">\n    <span attr=\"'id': buttonTextId\" text=\"title\"></span>\n</button>\n\n<if args=\"childError\">\n    <strong class=\"_error\">\n        <span class=\"admin__page-nav-item-messages\">\n            <span class=\"admin__page-nav-item-message _error\">\n                <span class=\"admin__page-nav-item-message-icon\"></span>\n                <span class=\"admin__page-nav-item-message-tooltip\"\n                      data-bind=\"i18n: 'This element contains invalid data. Please resolve this before saving.'\">This element contains invalid data. Please resolve this before saving.</span>\n            </span>\n        </span>\n    </strong>\n</if>\n","Magento_Ui/templates/form/element/preview.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<if args=\"value\">\n    <img attr=\"src: value\" class=\"small-image-preview v-middle\" width=\"48\" />\n</if>\n\n<input class=\"admin__control-text\" type=\"hidden\"\n       data-bind=\"\n        value: value,\n        hasFocus: focused,\n        attr: {\n            name: inputName,\n            placeholder: placeholder,\n            'aria-describedby': noticeId,\n            id: uid\n    }\"/>\n","Magento_Ui/templates/form/element/select.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<select class=\"select\" data-bind=\"\n    attr: {\n        name: inputName,\n        id: uid,\n        disabled: disabled,\n        'aria-describedby': getDescriptionId(),\n        'aria-required': required,\n        'aria-invalid': error() ? true : 'false',\n        placeholder: placeholder\n    },\n    hasFocus: focused,\n    optgroup: options,\n    value: value,\n    optionsCaption: caption,\n    optionsValue: 'value',\n    optionsText: 'label',\n    optionsAfterRender: function(option, item) {\n        if (item && item.disabled) {\n            ko.applyBindingsToNode(option, {attr: {disabled: true}}, item);\n        }\n    }\"\n></select>\n","Magento_Ui/templates/form/element/textarea.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n\n<textarea class=\"admin__control-textarea\" data-bind=\"\n    value: value,\n    valueUpdate: valueUpdate,\n    hasFocus: focused,\n    attr: {\n        name: inputName,\n        cols: cols,\n        rows: rows,\n        'aria-describedby': noticeId,\n        placeholder: placeholder,\n        id: uid,\n        disabled: disabled\n    }\"></textarea>\n","Magento_Ui/templates/form/element/media.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<input class=\"admin__control-file\" type=\"file\" data-bind=\"\n    hasFocus: focused,\n    attr: {\n        name: inputName,\n        placeholder: placeholder,\n        'aria-describedby': noticeId,\n        id: uid,\n        disabled: disabled,\n        form: formId\n    }\"\n/>\n","Magento_Ui/templates/form/element/checkbox.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"choice field\">\n    <input type=\"checkbox\"\n           class=\"checkbox\"\n           data-bind=\"\n           checked: value,\n           attr: {\n                id: uid,\n                disabled: disabled,\n                name: inputName,\n                'aria-describedby': getDescriptionId(),\n                'aria-required': required,\n                'aria-invalid': error() ? true : 'false'\n                },\n           hasFocus: focused\">\n\n    <label class=\"label\" data-bind=\"checked: value, attr: { for: uid }\">\n        <span data-bind=\"text: description || label\"></span>\n    </label>\n\n    <!-- ko if: notice -->\n        <div class=\"field-note\" data-bind=\"attr: {id: noticeId}\"><span data-bind=\"text: notice\"></span></div>\n    <!-- /ko -->\n</div>\n","Magento_Ui/templates/form/element/color-picker.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"admin__field-control\"\n     visible=\"visible\"\n     css=\"$data.additionalClasses\">\n    <input type=\"hidden\" class=\"colorpicker-spectrum\" colorPicker=\"colorPickerConfig\" disable=\"disabled\" />\n    <input type=\"text\" class=\"admin__control-text colorpicker-input\"\n           ko-value=\"value\" hasFocus=\"focused\" disable=\"disabled\"\n           attr=\"name: inputName, id: uid, placeholder: placeholder\"/>\n</div>\n","Magento_Ui/templates/form/element/html.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<!-- ko with: {valueUnsanitizedHtml: value, inputName: inputName, uid: uid} -->\n<span class=\"admin__field-value\"\n       data-bind=\"\n        html: valueUnsanitizedHtml,\n        attr: {\n            name: inputName,\n            id: uid\n    }\"></span>\n<!-- /ko -->\n","Magento_Ui/templates/form/element/date.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<input class=\"input-text\" type=\"text\" data-bind=\"\n    hasFocus: focused,\n    datepicker: { storage: value, options: options },\n    attr: {\n        id: uid,\n        value: value,\n        name: inputName,\n        placeholder: placeholder,\n        'aria-describedby': getDescriptionId(),\n        'aria-required': required,\n        'aria-invalid': error() ? true : 'false',\n        disabled: disabled\n    }\" />\n","Magento_Ui/templates/form/element/input.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<input class=\"input-text\" type=\"text\" data-bind=\"\n    value: value,\n    valueUpdate: 'keyup',\n    hasFocus: focused,\n    attr: {\n        name: inputName,\n        placeholder: placeholder,\n        'aria-describedby': getDescriptionId(),\n        'aria-required': required,\n        'aria-invalid': error() ? true : 'false',\n        id: uid,\n        disabled: disabled\n    }\" />\n","Magento_Ui/templates/form/element/urlInput/typeSelector.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<select class=\"admin__control-select url-input-select\" data-bind=\"\n    attr: {\n        name: inputName,\n        id: uid,\n        disabled: disabled,\n        visible: visible,\n        'aria-describedby': noticeId\n    },\n    hasFocus: focused,\n    optgroup: options,\n    value: linkType,\n    optionsValue: 'value',\n    optionsText: 'label'\"></select>\n","Magento_Ui/templates/form/element/urlInput/setting.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<!--display container to specify url options(Example: open in new tab)-->\n<div class=\"admin__field admin__field-option url-input-setting\" visible=\"visible\" click=\"checkboxClick\">\n    <input type=\"checkbox\"\n           class=\"admin__control-checkbox\"\n           ko-checked=\"settingValue\"\n           disable=\"disabled\"\n           ko-value=\"settingValue\"\n           attr=\"id: uid, name: inputName\"/>\n\n    <label class=\"admin__field-label\" text=\"settingLabel\" attr=\"for: uid\"></label>\n</div>\n","Magento_Ui/templates/form/element/uploader/uploader.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n\n<div class=\"field-control\" css=\"'_with-tooltip': $data.tooltip\">\n    <div class=\"file-uploader\" data-role=\"drop-zone\" css=\"_loading: isLoading\">\n        <div class=\"file-uploader-area\">\n            <input type=\"file\" afterRender=\"onElementRender\" attr=\"id: uid, name: inputName, multiple: isMultipleFiles\"\n                   disable=\"disabled\"/>\n            <label class=\"file-uploader-button action-default\" attr=\"for: uid\" translate=\"'Upload'\"></label>\n\n            <span class=\"file-uploader-spinner\"></span>\n            <render args=\"fallbackResetTpl\" if=\"$data.showFallbackReset && $data.isDifferedFromDefault\"></render>\n        </div>\n\n        <render args=\"tooltipTpl\" if=\"$data.tooltip\"></render>\n\n        <div class=\"field-note\" if=\"$data.notice\" attr=\"id: noticeId\">\n            <span><strong translate=\"NOTE\"></strong>: <translate args=\"$data.notice\"></translate></span>\n        </div>\n\n        <each args=\"data: value, as: '$file'\" render=\"$parent.getPreviewTmpl($file)\"></each>\n\n        <div if=\"isMultipleFiles\" class=\"file-uploader-summary\">\n            <label attr=\"for: uid\"\n                   class=\"file-uploader-placeholder\"\n                   css=\"'placeholder-' + placeholderType\">\n                    <span class=\"file-uploader-placeholder-text\"\n                          translate=\"'Click here or drag and drop to add files.'\"></span>\n            </label>\n        </div>\n    </div>\n    <render args=\"$data.service.template\" if=\"$data.hasService()\"></render>\n</div>\n","Magento_Ui/templates/form/element/uploader/preview.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"file-uploader-summary\">\n    <div class=\"file-uploader-preview\">\n        <a class=\"preview-link\"\n           css=\"'preview-' + $file.previewType\"\n           attr=\"href: $parent.getFilePreview($file), title: $file.name\" target=\"_blank\">\n            <img\n                if=\"$file.previewType === 'image'\"\n                tabindex=\"0\"\n                event=\"load: $parent.onPreviewLoad.bind($parent)\"\n                attr=\"\n                    src: $parent.getFilePreview($file),\n                    alt: $file.name\"/>\n        </a>\n\n        <div class=\"actions\">\n            <button\n                type=\"button\"\n                class=\"action-remove\"\n                data-role=\"delete-button\"\n                attr=\"title: $t('Delete image')\"\n                click=\"$parent.removeFile.bind($parent, $file)\">\n                <span translate=\"'Delete image'\"></span>\n            </button>\n        </div>\n    </div>\n\n    <div class=\"file-uploader-filename\" text=\"$file.name\"></div>\n\n    <div class=\"file-uploader-meta\">\n        <span if=\"$file.previewType === 'image'\">\n            <text args=\"$file.previewWidth\"></text>x<text args=\"$file.previewHeight\"></text>,\n        </span>\n        <text args=\"$parent.formatSize($file.size)\"></text>\n    </div>\n</div>\n","Magento_Ui/templates/form/element/uploader/image.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"admin__field\" visible=\"visible\" css=\"$data.additionalClasses\">\n    <label class=\"admin__field-label\" if=\"$data.label\" attr=\"for: uid\">\n        <span translate=\"label\" attr=\"'data-config-scope': $data.scopeLabel\"></span>\n    </label>\n\n    <div class=\"admin__field-control\" css=\"'_with-tooltip': $data.tooltip\">\n        <div class=\"file-uploader image-uploader\" data-role=\"drop-zone\" css=\"_loading: isLoading\">\n            <div class=\"file-uploader-area\">\n                <input type=\"file\" afterRender=\"onElementRender\" attr=\"id: uid, name: inputName, multiple: isMultipleFiles\" disable=\"disabled\" />\n                <label class=\"file-uploader-button action-default\" attr=\"for: uid, disabled: disabled\" disable=\"disabled\" translate=\"'Upload'\"></label>\n                <label\n                    data-bind=\"event: {change: addFileFromMediaGallery, click: openMediaBrowserDialog}\"\n                    class=\"file-uploader-button action-default\"\n                    attr=\"id: mediaGalleryUid, disabled: disabled\"\n                    data-force_static_path=\"1\"\n                    translate=\"'Select from Gallery'\"></label>\n                <render args=\"fallbackResetTpl\" if=\"$data.showFallbackReset && $data.isDifferedFromDefault\"></render>\n                <p class=\"image-upload-requirements\">\n                    <span if=\"$data.maxFileSize\">\n                        <span translate=\"'Maximum file size'\"></span>: <text args=\"formatSize($data.maxFileSize)\"></text>.\n                    </span>\n                    <span if=\"$data.allowedExtensions\">\n                        <span translate=\"'Allowed file types'\"></span>: <text args=\"getAllowedFileExtensionsInCommaDelimitedFormat()\"></text>.\n                    </span>\n                </p>\n            </div>\n\n            <render args=\"tooltipTpl\" if=\"$data.tooltip\"></render>\n\n            <div class=\"admin__field-note\" if=\"$data.notice\" attr=\"id: noticeId\">\n                <!-- ko with: {noticeUnsanitizedHtml: notice} -->\n                <span html=\"noticeUnsanitizedHtml\"></span>\n                <!-- /ko -->\n            </div>\n\n            <label class=\"admin__field-error\" if=\"error\" attr=\"for: uid\" text=\"error\"></label>\n\n            <each args=\"data: value, as: '$file'\" render=\"$parent.getPreviewTmpl($file)\"></each>\n\n            <div if=\"!hasData()\" class=\"image image-placeholder\" click=\"triggerImageUpload\">\n                <div class=\"file-uploader-summary product-image-wrapper\">\n                    <div class=\"file-uploader-spinner image-uploader-spinner\"></div>\n                    <p class=\"image-placeholder-text\" translate=\"'Browse to find or drag image here'\"></p>\n                </div>\n            </div>\n        </div>\n        <render args=\"$data.service.template\" if=\"$data.hasService()\"></render>\n    </div>\n</div>\n","Magento_Ui/templates/form/element/helper/service.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"admin__field-service\">\n    <input type=\"checkbox\"\n           class=\"admin__control-checkbox\"\n           attr=\"\n                id: $data.uid + '_default',\n                name: 'use_default[' + $data.index + ']',\n           \"\n           ko-checked=\"isUseDefault\"\n           ko-disabled=\"$data.serviceDisabled\">\n    <label translate=\"'Use Default Value'\" attr=\"for: $data.uid + '_default'\" class=\"admin__field-label\"></label>\n</div>\n","Magento_Ui/templates/form/element/helper/fallback-reset.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<button class=\"admin__field-fallback-reset\"\n        type=\"button\"\n        click=\"element.restoreToDefault\">\n        <span translate=\"'Use Default Value'\"></span>\n</button>\n","Magento_Ui/templates/form/element/helper/tooltip.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n <div class=\"field-tooltip toggle\">\n\n    <!-- ko if: (tooltip.link)-->\n    <a class=\"field-tooltip-action action-help\"\n       target=\"_blank\"\n       data-toggle=\"dropdown\"\n       data-bind=\"attr: {href: tooltip.link}, mageInit: {'dropdown':{'activeClass': '_active'}}\"></a>\n     <!-- /ko -->\n\n     <span class=\"label\" data-bind=\"attr: { id: $data.tooltipId ? $data.tooltipId : 'tooltip-label' }\"><!-- ko i18n: 'Tooltip' --><!-- /ko --></span>\n     <!-- ko if: (!tooltip.link)-->\n         <span\n             class=\"field-tooltip-action action-help\"\n             tabindex=\"0\"\n             data-toggle=\"dropdown\"\n             data-bind=\"\n                mageInit: {'dropdown':{'activeClass': '_active', 'parent': '.field-tooltip.toggle'}},\n                attr: { 'aria-labelledby': $data.tooltipId ? $data.tooltipId : 'tooltip-label' }\n            \"\n         >\n         </span>\n     <!-- /ko -->\n\n     <div class=\"field-tooltip-content\"\n         data-target=\"dropdown\" translate=\"tooltip.description\">\n    </div>\n</div>\n","Magento_Ui/templates/tooltip/tooltip.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div data-tooltip=\"tooltip-wrapper\" class=\"data-tooltip-wrapper <%= data.tooltipClasses %>\">\n    <div class=\"data-tooltip-tail\"></div>\n    <div class=\"data-tooltip\">\n        <% if(data.closeButton){ %>\n            <button type=\"button\" class=\"action-close\">\n                <span translate=\"'Close'\"></span>\n            </button>\n        <% } %>\n        <div class=\"data-tooltip-content\"></div>\n    </div>\n</div>\n","Magento_Ui/templates/grid/paging-total.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"admin__control-support-text\">\n    <!-- ko if: showTotalRecords -->\n    <text args=\"totalRecords\"></text> <!-- ko i18n: 'records found' --><!-- /ko -->\n    <!-- /ko -->\n    <!-- ko if: totalSelected && showTotalRecords -->\n    (<text args=\"totalSelected\"></text> <!-- ko i18n: 'selected' --><!-- /ko -->)\n    <!-- /ko -->\n</div>\n","Magento_Ui/templates/grid/masonry.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div data-role=\"grid-wrapper\" class=\"masonry-image-grid\" attr=\"'data-id': containerId\">\n    <div class=\"masonry-image-column\" repeat=\"foreach: rows, item: '$row'\">\n        <div outerfasteach=\"data: getVisible(), as: '$col'\" template=\"getBody()\"></div>\n    </div>\n    <div if=\"!hasData() && !getErrorMessageUnsanitizedHtml()\" class=\"no-data-message-container\">\n        <span translate=\"'We couldn\\'t find any records.'\"></span>\n    </div>\n    <div if=\"getErrorMessageUnsanitizedHtml()\" class=\"error-message-container\">\n        <span html=\"getErrorMessageUnsanitizedHtml()\"></span>\n    </div>\n</div>\n","Magento_Ui/templates/grid/sortBy.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div if=\"isVisible\" class=\"masonry-image-sortby\">\n    <b><!-- ko i18n: 'Sort by' --><!-- /ko -->:</b>\n    <select class=\"admin__control-select\" data-bind=\"\n        options: options,\n        optionsValue: 'value',\n        optionsText: 'label',\n        value: selectedOption\n    \"></select>\n</div>\n","Magento_Ui/templates/grid/view-switcher.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n\n<div class=\"admin__action-dropdown-wrap admin__action-grid-select\">\n    <select\n        class=\"admin__control-select\"\n        options=\"getDisplayModes()\"\n        ko-value=\"displayMode\"\n        optionsValue=\"'value'\"\n        optionsText=\"'label'\"\n    ></select>\n</div>\n","Magento_Ui/templates/grid/exportButton.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n\n<div class=\"admin__action-dropdown-wrap admin__data-grid-action-export\" collapsible>\n    <button class=\"admin__action-dropdown\" type=\"button\" toggleCollapsible>\n        <span class=\"admin__action-dropdown-text\" translate=\"'Export'\"></span>\n    </button>\n    <div class=\"admin__action-dropdown-menu admin__data-grid-action-export-menu\">\n        <div class=\"admin__field admin__field-option\" outereach=\"options\">\n            <input class=\"admin__control-radio\" type=\"radio\"\n                data-bind=\"\n                    attr: {\n                        id: ++ko.uid\n                    },\n                    checkedValue: value,\n                    checked: $parent.checked\"/>\n            <label class=\"admin__field-label\" text=\"label\" attr=\"for: ko.uid\"></label>\n        </div>\n        <div class=\"admin__action-dropdown-footer-main-actions\">\n            <button class=\"action-tertiary\" type=\"button\" translate=\"'Cancel'\" closeCollapsible></button>\n            <button class=\"action-secondary\" type=\"button\" translate=\"'Export'\" click=\"applyOption\"></button>\n        </div>\n    </div>\n</div>\n","Magento_Ui/templates/grid/actions.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"action-select-wrap\" collapsible=\"onTarget: true\">\n    <button class=\"action-select\" translate=\"'Actions'\"></button>\n    <ul class=\"action-menu\"css=\"_active: $collapsible.opened\">\n        <li repeat=\"foreach: actions, item: '$action'\" click=\"applyAction.bind($data, $action().type)\">\n            <span class=\"action-menu-item\" text=\"$action().label\"></span>\n        </li>\n    </ul>\n</div>\n","Magento_Ui/templates/grid/tree-massactions.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"action-select-wrap\" css=\"_active: opened\" outerClick=\"close.bind($data)\">\n    <button class=\"action-select\" attr=\"title: $t('Select Items')\" click=\"toggleOpened\">\n        <span translate=\"'Actions'\"></span>\n    </button>\n    <div class=\"action-menu-items\">\n        <ul class=\"action-menu\" each=\"data: actions, as: 'action'\" css=\"_active: opened\">\n            <li css=\"_visible: $data.visible, _parent: $data.actions\">\n                <span class=\"action-menu-item\" translate=\"label\" click=\"$parent.applyAction.bind($parent, type)\"></span>\n                <render args=\"name: $parent.submenuTemplate, data: $parent\" if=\"$data.actions\"></render>\n            </li>\n        </ul>\n    </div>\n</div>\n","Magento_Ui/templates/grid/listing.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"admin__data-grid-wrap\" data-role=\"grid-wrapper\">\n    <table class=\"data-grid\" data-role=\"grid\">\n       <thead>\n            <tr each=\"data: getVisible(), as: '$col'\" render=\"getHeader()\"></tr>\n        </thead>\n        <tbody>\n            <tr class=\"data-row\" repeat=\"foreach: rows, item: '$row'\" css=\"'_odd-row': $index % 2\">\n                <td outerfasteach=\"data: getVisible(), as: '$col'\"\n                    css=\"getFieldClass($row())\" click=\"getFieldHandler($row())\" template=\"getBody()\"></td>\n            </tr>\n            <tr ifnot=\"hasData()\" class=\"data-grid-tr-no-data\">\n                <td attr=\"colspan: countVisible()\" translate=\"'We couldn\\'t find any records.'\"></td>\n            </tr>\n        </tbody>\n    </table>\n</div>\n","Magento_Ui/templates/grid/toolbar.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"admin__data-grid-header\" afterRender=\"$data.setToolbarNode\">\n    <div class=\"admin__data-grid-header-row\">\n        <div class=\"admin__data-grid-actions-wrap\" each=\"getRegion('dataGridActions')\" render=\"\"></div>\n        <each args=\"getRegion('dataGridFilters')\" render=\"\"></each>\n    </div>\n    <div class=\"admin__data-grid-header-row row row-gutter\">\n        <div class=\"col-xs-2\" if=\"hasChild('listing_massaction')\" ko-scope=\"requestChild('listing_massaction')\" render=\"\"></div>\n        <div css=\"\n            'col-xs-10': hasChild('listing_massaction'),\n            'col-xs-12': !hasChild('listing_massaction')\">\n            <div class=\"row\" ko-scope=\"requestChild('listing_paging')\">\n                <div class=\"col-xs-3\" render=\"totalTmpl\"></div>\n                <div class=\"col-xs-9\" render=\"\"></div>\n            </div>\n        </div>\n    </div>\n</div>\n\n<render args=\"stickyTmpl\" if=\"$data.sticky\"></render>\n","Magento_Ui/templates/grid/submenu.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<ul class=\"action-submenu\" each=\"data: action.actions, as: 'action'\" css=\"_active: action.visible\">\n    <li css=\"_visible: $data.visible\">\n        <span class=\"action-menu-item\" translate=\"label\" click=\"$parent.applyAction.bind($parent, type)\"></span>\n        <render args=\"name: $parent.submenuTemplate, data: $parent\" if=\"$data.actions\"></render>\n    </li>\n</ul>\n","Magento_Ui/templates/grid/search/search.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"data-grid-search-control-wrap\">\n    <label class=\"data-grid-search-label\" attr=\"title: $t('Search'), for: index\" data-bind=\"click: scrollTo\">\n        <span translate=\"'Search'\"></span>\n    </label>\n    <input class=\"admin__control-text data-grid-search-control\" type=\"text\"\n            data-bind=\"\n                i18n: placeholder,\n                attr: {\n                    id: index,\n                    placeholder: $t(placeholder),\n                    'aria-label': $t(placeholder),\n                },\n                textInput: inputValue,\n                hasFocus: focused,\n                keyboard: {\n                    13: apply.bind($data, false),\n                    27: cancel\n                }\">\n    <button class=\"action-submit\" type=\"button\" click=\"apply.bind($data, false)\" attr=\"'aria-label': $t('Search')\">\n        <span translate=\"'Search'\"></span>\n    </button>\n</div>\n","Magento_Ui/templates/grid/cells/multiselect.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<label class=\"data-grid-checkbox-cell-inner\">\n    <input class=\"admin__control-checkbox\" type=\"checkbox\" data-action=\"select-row\"\n        data-bind=\"\n            staticChecked: $col.selected,\n            disable: $col.disabled.indexOf($row()[$col.indexField]) != -1 ,\n            checkedValue: $row()[$col.indexField],\n            attr: {\n                id: index + 'check' + $row()[$col.indexField]\n            }\"/>\n    <label attr=\"for: index + 'check' + $row()[$col.indexField]\"></label>\n</label>\n","Magento_Ui/templates/grid/cells/text.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"data-grid-cell-content\" text=\"$col.getLabel($row())\"></div>\n","Magento_Ui/templates/grid/cells/expandable.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"data-grid-cell-content\">\n    <span text=\"$col.getFullLabel($row())\" ifnot=\"$col.isExpandable($row())\"></span>\n\n    <div if=\"$col.isExpandable($row())\">\n        <div text=\"$col.getShortLabel($row())\" class=\"admin__control-short-label\"></div>\n        <a attr=\"'data-tooltip-trigger': ++ko.uid\" translate=\"'Show more'\"></a>\n        <div\n            tooltip=\"\n                tooltipClasses: 'data-grid-column-tooltip',\n                trigger: '[data-tooltip-trigger=' + ko.uid + ']',\n                action: 'click',\n                delay: 0,\n                center: true,\n                position: 'top',\n                closeButton: true,\n                closeOnScroll: false\n            \">\n            <div render=\"$data.tooltipTmpl\"></div>\n        </div>\n    </div>\n</div>\n","Magento_Ui/templates/grid/cells/link.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"data-grid-cell-content\"\n     if=\"!$col.isLink($row())\"\n     text=\"$col.getLabel($row())\"></div>\n<a   class=\"action-menu-item\"\n     if=\"$col.isLink($row())\"\n     text=\"$col.getLabel($row())\"\n     attr=\"href: $col.getLink($row())\"></a>\n","Magento_Ui/templates/grid/cells/actions.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<a\n    class=\"action-menu-item\"\n    if=\"$col.isSingle($row()._rowIndex)\"\n    repeat=\"foreach: $col.getVisibleActions($row()._rowIndex), item: '$action'\"\n    click=\"$col.getActionHandler($action())\"\n    text=\"$action().label\"\n    attr=\"target: $col.getTarget($action()), href: $action().href, 'aria-label': $action().ariaLabel\"></a>\n\n<div class=\"action-select-wrap\" if=\"$col.isMultiple($row()._rowIndex)\" collapsible>\n    <button class=\"action-select\" translate=\"'Select'\" toggleCollapsible></button>\n    <ul class=\"action-menu\" css=\"_active: $collapsible.opened\">\n        <li repeat=\"foreach: $col.getVisibleActions($row()._rowIndex), item: '$action'\">\n            <a class=\"action-menu-item\" click=\"$col.getActionHandler($action())\" text=\"$action().label\" attr=\"target: $col.getTarget($action()), href: $action().href, 'data-action': 'item-' + $action().index\"></a>\n        </li>\n    </ul>\n</div>\n","Magento_Ui/templates/grid/cells/thumbnail.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<span class=\"thumbnail-container\">\n    <span class=\"thumbnail-wrapper\">\n        <img class=\"admin__control-thumbnail\" attr=\"src: $col.getSrc($row()), alt: $col.getAlt($row())\" loading=\"lazy\"/>\n    </span>\n</span>\n","Magento_Ui/templates/grid/cells/onoff.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"admin__actions-switch\">\n    <input class=\"admin__actions-switch-checkbox\"\n           type=\"checkbox\"\n           data-bind=\"\n               staticChecked: $col.selected,\n               value: $row()[$col.indexField],\n               attr: {\n                   id: 'check' + $row()[$col.indexField]\n               }\"/>\n    <label class=\"admin__actions-switch-label\"\n           data-bind=\"\n               attr: {\n                   for: 'check' + $row()[$col.indexField]\n               }\">\n        <span data-bind=\"attr: {\n                   'data-text-on': $t('Yes'),\n                   'data-text-off': $t('No')\n              }\"\n              class=\"admin__actions-switch-text\"></span>\n    </label>\n</div>\n","Magento_Ui/templates/grid/cells/html.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"data-grid-cell-content\" html=\"$col.getLabelUnsanitizedHtml($row())\"></div>\n","Magento_Ui/templates/grid/cells/sanitizedHtml.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"data-grid-cell-content\" html=\"getSafeUnsanitizedHtml($col.getLabel($row()))\"></div>\n","Magento_Ui/templates/grid/cells/thumbnail/preview.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n\n<div class=\"thumbnail-preview\" data-role=\"thumbnail-preview\">\n    <div class=\"thumbnail-preview-image-block\">\n        <img class=\"thumbnail-preview-image\" src=\"<%- src %>\" alt=\"<%- alt %>\" loading=\"lazy\"/>\n    </div>\n    <div class=\"thumbnail-preview-content\">\n        <a class=\"thumbnail-preview-link\" href=\"<%- link %>\"><%- linkText %></a>\n    </div>\n</div>\n","Magento_Ui/templates/grid/cells/expandable/content.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"admin__tooltip-title\" if=\"$data.tooltipTitle.length\">\n    <span translate=\"$data.tooltipTitle\"></span>\n</div>\n<ul class=\"items\">\n    <li class=\"item\" repeat=\"foreach: $col.getLabelsArray($row()), item: '$item'\">\n        <span text=\"$item()\"></span>\n    </li>\n</ul>\n","Magento_Ui/templates/grid/filters/chips.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"admin__data-grid-filters-current\" css=\"_show: hasPreviews()\">\n    <div class=\"admin__current-filters-title-wrap\">\n        <span class=\"admin__current-filters-title\" translate=\"'Active filters\\\\:'\"></span>\n    </div>\n    <div class=\"admin__current-filters-list-wrap\">\n        <ul class=\"admin__current-filters-list\" data-role=\"filter-list\">\n            <each args=\"elems\">\n                <li outereach=\"previews\">\n                    <span text=\"label + '\\\\:'\"></span>\n                    <span if=\"typeof preview === 'string'\" text=\"preview\"></span>\n                    <span if=\"typeof preview === 'object'\">\n                        <text args=\"preview[0] || '...'\"></text> - <text args=\"preview[1] || '...'\"></text>\n                    </span>\n                    <button class=\"action-remove\" type=\"button\"\n                        data-action=\"grid-filter-remove-chip\"\n                        click=\"$parent.clear.bind($parent, elem)\">\n                        <span translate=\"'Remove'\"></span>\n                    </button>\n                </li>\n            </each>\n        </ul>\n    </div>\n    <div class=\"admin__current-filters-actions-wrap\">\n        <button class=\"action-tertiary action-clear\" type=\"button\" click=\"clear\" translate=\"'Clear all'\"\n            attr=\"'data-action': hasPreviews() ? 'grid-filter-reset' : ''\"></button>\n    </div>\n</div>\n","Magento_Ui/templates/grid/filters/filters.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"data-grid-filters-actions-wrap\" collapsible=\"openClass: false, closeOnOuter: false\">\n    <div class=\"data-grid-filters-action-wrap\">\n        <button class=\"action-default\" data-action=\"grid-filter-expand\" disable=\"!hasVisible()\" translate=\"'Filters'\"\n            css=\"_active: hasVisible() && $collapsible.opened()\"\n            toggleCollapsible></button>\n    </div>\n</div>\n\n<scope args=\"chips\" render=\"\"></scope>\n\n<div class=\"admin__data-grid-filters-wrap\" data-part=\"filter-form\" css=\"_show: hasVisible() && $collapsible.opened()\" keyboard=\"{ 13: apply }\">\n    <fieldset class=\"admin__fieldset admin__data-grid-filters\">\n        <legend class=\"admin__filters-legend\">\n            <span translate=\"'Advanced filter'\"></span>\n        </legend>\n        <fieldset class=\"admin__form-field\" outereach=\"getRanges()\" visible=\"$parent.isFilterVisible($data)\" render=\"\"></fieldset>\n        <div class=\"admin__form-field\" outereach=\"getPlain()\" visible=\"$parent.isFilterVisible($data)\" render=\"\"></div>\n    </fieldset>\n\n    <div class=\"admin__data-grid-filters-footer\">\n        <div class=\"admin__footer-main-actions\">\n            <button class=\"action-tertiary\" type=\"button\" data-action=\"grid-filter-cancel\" click=\"cancel\" closeCollapsible>\n                <span translate=\"'Cancel'\"></span>\n            </button>\n            <button class=\"action-secondary\" type=\"button\" data-action=\"grid-filter-apply\" click=\"apply\" closeCollapsible>\n                <span translate=\"'Apply Filters'\"></span>\n            </button>\n        </div>\n    </div>\n</div>\n","Magento_Ui/templates/grid/filters/field.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<label class=\"admin__form-field-label\" attr=\"for: uid\">\n    <span translate=\"label\"></span>\n</label>\n<div class=\"admin__form-field-control\" render=\"elementTmpl\"></div>\n","Magento_Ui/templates/grid/filters/elements/group.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<legend class=\"admin__form-field-legend\">\n    <span translate=\"label\"></span>\n</legend>\n<div class=\"admin__form-field\" outereach=\"elems\" render=\"\"></div>\n","Magento_Ui/templates/grid/filters/elements/ui-select-optgroup.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<ul class=\"admin__action-multiselect-menu-inner\"\n    data-bind=\"\n    visible: $data.root.showLevels($data.current),\n    attr: {\n        'data-level': $data.current.level++\n    }\">\n    <!-- ko if: $data.current.visible() || $data.current.isVisited  -->\n    <!-- ko foreach: { data: $data.current.optgroup, as: 'option'}  -->\n    <li class=\"admin__action-multiselect-menu-inner-item\"\n        data-bind=\"css: { _parent: $data.optgroup }\">\n        <div class=\"action-menu-item\"\n             data-bind=\"\n                css: {\n                    _selected: $parent.root.isSelected(option.value),\n                    _hover: $parent.root.isHovered(option, $element),\n                    _expended: $parent.root.getLevelVisibility($data) || $data.visible,\n                    _unclickable: $parent.root.isLabelDecoration($data),\n                    _last: $parent.root.addLastElement($data),\n                    '_with-checkbox': $parent.root.showCheckbox\n                },\n                click: function(data, event){\n                    $parent.root.toggleOptionSelected($data, $index(), event);\n                },\n                clickBubble: false\n\n            \">\n            <!-- ko if: $data.optgroup && $parent.root.showOpenLevelsActionIcon-->\n            <div class=\"admin__action-multiselect-dropdown\"\n                 data-bind=\"\n                        click: function(data, event){\n                            $parent.root.openChildLevel($data, $element, event);\n                        },\n                        clickBubble: false\n                     \"></div>\n            <!-- /ko-->\n            <!--ko if: $parent.root.showCheckbox-->\n            <input\n                    class=\"admin__control-checkbox\"\n                    type=\"checkbox\"\n                    tabindex=\"-1\"\n                    data-bind=\"attr: { 'checked': $parent.root.isSelected(option.value) }\"/>\n            <!--/ko-->\n            <label\n                    class=\"admin__action-multiselect-label\"\n                    data-bind=\"text: option.label\">\n            </label>\n        </div>\n        <!-- ko if: $data.optgroup -->\n        <!-- ko template: {name: $parent.root.optgroupTmpl, data: {root: $parent.root, current: $data}} -->\n        <!-- /ko -->\n        <!-- /ko-->\n    </li>\n    <!-- /ko -->\n    <!-- /ko -->\n</ul>\n","Magento_Ui/templates/grid/filters/elements/ui-select.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n\n<!-- ko ifnot: disableLabel -->\n<label\n        class=\"admin__form-field-label\"\n        data-bind=\"attr: {for: uid}\n\">\n    <span translate=\"label\"></span>\n</label>\n<!-- /ko -->\n<div\n        class=\"admin__action-multiselect-wrap action-select-wrap\"\n        tabindex=\"0\"\n        data-bind=\"\n        attr: {\n            id: uid\n        },\n        css: {\n            _active: listVisible,\n            'admin__action-multiselect-tree': isTree()\n        },\n        event: {\n            focusin: onFocusIn,\n            focusout: onFocusOut,\n            keydown: keydownSwitcher\n        },\n        outerClick: outerClick.bind($data)\n\">\n    <!-- ko ifnot: chipsEnabled -->\n    <div\n            class=\"action-select admin__action-multiselect\"\n            data-role=\"advanced-select\"\n            data-bind=\"\n            css: {_active: listVisible},\n            click: function(data, event) {\n                toggleListVisible(data, event)\n            }\n    \">\n        <div class=\"admin__action-multiselect-text\"\n         data-role=\"selected-option\"\n         ifnot=\"validationLoading\"\n         data-bind=\"\n         css: {warning: warn().length},\n         text: setCaption()\n    \">\n    </div>\n        <button if=\"isRemoveSelectedIcon && hasData() || !validationLoading\"\n                class=\"action-close\"\n                type=\"button\"\n                data-action=\"remove-selected-item\"\n                tabindex=\"-1\"\n                click=\"clear\"\n        >\n            <span class=\"action-close-text\" translate=\"'Close'\"></span>\n        </button>\n        <div data-role=\"spinner\"\n             class=\"admin__data-grid-loading-mask\"\n             visible=\"validationLoading\"\n             if=\"validationLoading\">\n            <div class=\"spinner\">\n                <span repeat=\"8\"></span>\n            </div>\n        </div>\n    </div>\n    <!-- /ko -->\n    <!-- ko if: chipsEnabled -->\n    <div\n            class=\"action-select admin__action-multiselect\"\n            data-role=\"advanced-select\"\n            data-bind=\"\n            css: {_active: listVisible},\n            click: function(data, event) {\n                toggleListVisible(data, event)\n            }\n    \">\n        <div class=\"admin__action-multiselect-text\"\n             data-bind=\"\n                visible: !hasData(),\n                i18n: selectedPlaceholders.defaultPlaceholder\n        \">\n        </div>\n        <!-- ko foreach: { data: getSelected(), as: 'option'}  -->\n            <span class=\"admin__action-multiselect-crumb\">\n                <span data-bind=\"text: label\">\n                </span>\n                <button\n                        class=\"action-close\"\n                        type=\"button\"\n                        data-action=\"remove-selected-item\"\n                        tabindex=\"-1\"\n                        data-bind=\"click: $parent.removeSelected.bind($parent, value)\n                \">\n                    <span class=\"action-close-text\" translate=\"'Close'\"></span>\n                </button>\n            </span>\n        <!-- /ko -->\n    </div>\n    <!-- /ko -->\n    <div class=\"action-menu\" css=\"{ _active: listVisible}\">\n        <div data-role=\"spinner\"\n           class=\"admin__data-grid-loading-mask\"\n           visible=\"loading\"\n           if=\"loading\">\n        <div class=\"spinner\">\n            <span repeat=\"8\"></span>\n        </div>\n    </div>\n        <!-- ko if: filterOptions -->\n        <div class=\"admin__action-multiselect-search-wrap\">\n            <input\n                    class=\"admin__control-text admin__action-multiselect-search\"\n                    data-role=\"advanced-select-text\"\n                    type=\"text\"\n                    data-bind=\"\n                event: {\n                    keydown: filterOptionsKeydown\n                },\n                attr: {\n                    id: uid+2,\n                    placeholder: filterPlaceholder\n                },\n                textInput: filterInputValue,\n                hasFocus: filterOptionsFocus\n                \">\n            <label\n                    class=\"admin__action-multiselect-search-label\"\n                    data-action=\"advanced-select-search\"\n                    data-bind=\"attr: {for: uid+2}\n            \">\n            </label>\n            <div if=\"itemsQuantity\"\n                 data-bind=\"text: itemsQuantity\"\n                 class=\"admin__action-multiselect-search-count\">\n            </div>\n        </div>\n        <div ifnot=\"options().length\"\n             class=\"admin__action-multiselect-empty-area\">\n            <ul html=\"getEmptyOptionsUnsanitizedHtml()\"></ul>\n        </div>\n        <!-- /ko -->\n        <ul class=\"admin__action-multiselect-menu-inner _root\"\n            data-bind=\"\n                event: {\n                    scroll: function(data, event){onScrollDown(data, event)}\n                }\n            \">\n            <!-- ko foreach: { data: options, as: 'option'}  -->\n            <li class=\"admin__action-multiselect-menu-inner-item _root\"\n                data-bind=\"css: { _parent: $data.optgroup }\"\n                data-role=\"option-group\">\n                <div class=\"action-menu-item\"\n                     data-bind=\"\n                        css: {\n                            _selected: $parent.isSelectedValue(option),\n                            _hover: $parent.isHovered(option, $element),\n                            _expended: $parent.getLevelVisibility($data) && $parent.showLevels($data),\n                            _unclickable: $parent.isLabelDecoration($data),\n                            _last: $parent.addLastElement($data),\n                            '_with-checkbox': $parent.showCheckbox\n                        },\n                        click: function(data, event){\n                            $parent.toggleOptionSelected($data, $index(), event);\n                        },\n                        clickBubble: false\n                \">\n                    <!-- ko if: $data.optgroup && $parent.showOpenLevelsActionIcon-->\n                    <div class=\"admin__action-multiselect-dropdown\"\n                         data-bind=\"\n                            click: function(event){\n                                $parent.showLevels($data);\n                                $parent.openChildLevel($data, $element, event);\n                            },\n                            clickBubble: false\n                         \">\n                    </div>\n                    <!-- /ko-->\n                    <!--ko if: $parent.showCheckbox-->\n                    <input\n                            class=\"admin__control-checkbox\"\n                            type=\"checkbox\"\n                            tabindex=\"-1\"\n                            data-bind=\"attr: { 'checked': $parent.isSelected(option.value) }\">\n                    <!-- /ko-->\n                    <label class=\"admin__action-multiselect-label\">\n                        <span data-bind=\"text: option.label\"></span>\n                        <span\n                                if=\"$parent.getPath(option)\"\n                                class=\"admin__action-multiselect-item-path\"\n                                data-bind=\"text: $parent.getPath(option)\"></span>\n                    </label>\n                </div>\n                <!-- ko if: $data.optgroup -->\n                <!-- ko template: {name: $parent.optgroupTmpl, data: {root: $parent, current: $data}} -->\n                <!-- /ko -->\n                <!-- /ko-->\n            </li>\n            <!-- /ko -->\n        </ul>\n        <!-- ko if: $data.closeBtn -->\n        <div class=\"admin__action-multiselect-actions-wrap\">\n            <button class=\"action-default\"\n                    data-action=\"close-advanced-select\"\n                    type=\"button\"\n                    data-bind=\"click: outerClick\">\n                <span translate=\"closeBtnLabel\"></span>\n            </button>\n        </div>\n        <!-- /ko -->\n    </div>\n</div>\n","Magento_Ui/templates/grid/columns/image-preview.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"masonry-image-preview\" if=\"$col.isVisible($row())\" data-image-preview ko-style=\"$col.getStyles($row())\">\n    <div class=\"container\">\n        <div class=\"action-buttons\">\n            <button class=\"action-previous\" type=\"button\" click=\"$col.prev.bind($col, $row())\">\n                <span translate=\"'Previous'\"></span>\n            </button>\n            <button class=\"action-next\" type=\"button\" click=\"$col.next.bind($col, $row())\">\n                <span translate=\"'Next'\"></span>\n            </button>\n            <button class=\"action-close\" type=\"button\" click=\"$col.hide.bind($col)\">\n                <span translate=\"'Close'\"></span>\n            </button>\n        </div>\n        <img class=\"preview\" attr=\"src: $col.getUrl($row()), alt: $col.getTitle($row())\"/>\n    </div>\n</div>\n","Magento_Ui/templates/grid/columns/multiselect.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n\n<th class=\"data-grid-multicheck-cell\">\n    <div class=\"action-multicheck-wrap\" css=\"_disabled: !totalRecords()\" collapsible=\"\">\n        <input class=\"admin__control-checkbox\" type=\"checkbox\"\n            data-bind=\"\n                checked: allSelected(),\n                attr: {id: ++ko.uid},\n                event: { change: togglePage },\n                css: { '_indeterminate': indetermine },\n                enable: totalRecords\"/>\n        <label attr=\"for: ko.uid\"></label>\n        <button class=\"action-multicheck-toggle\" data-toggle=\"dropdown\"\n            data-bind=\"css: { '_active': $collapsible.opened },\n                       enable: totalRecords,\n                       toggleCollapsible\">\n            <span translate=\"'Options'\"></span>\n        </button>\n        <ul class=\"action-menu\" each=\"actions\" closeCollapsible=\"\">\n            <li data-bind=\"click: $parent[value].bind($parent),\n                           visible: $parent.isActionRelevant(value)\">\n                <span class=\"action-menu-item\" text=\"label\"></span>\n            </li>\n        </ul>\n    </div>\n</th>\n","Magento_Ui/templates/grid/columns/text.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<th class=\"data-grid-th\" click=\"sort\"\n    css=\"\n        _sortable: sortable,\n        _draggable: draggable,\n        _ascend: sorting === 'asc',\n        _descend: sorting === 'desc'\">\n    <span class=\"data-grid-cell-content\" translate=\"label\"></span>\n</th>\n","Magento_Ui/templates/grid/columns/overlay.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div if=\"$col.isVisible($row())\" class=\"masonry-image-overlay\">\n    <span text=\"$col.getLabel($row())\"></span>\n</div>\n","Magento_Ui/templates/grid/columns/onoff.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n\n<th class=\"data-grid-multicheck-cell\">\n    <label data-bind=\"i18n: 'Assign'\"></label>\n    <div\n        class=\"action-multicheck-wrap\"\n        data-bind=\"css: {'_disabled': !totalRecords()},\n                   collapsible\">\n        <input\n            id=\"mass-select-checkbox\"\n            class=\"admin__control-checkbox\"\n            type=\"checkbox\"\n            data-bind=\"checked: allSelected(),\n                       event: { change: toggleSelectAll },\n                       css: { '_indeterminate': indetermine },\n                       enable: totalRecords\"/>\n        <label for=\"mass-select-checkbox\"></label>\n        <button\n            class=\"action-multicheck-toggle\"\n            data-toggle=\"dropdown\"\n            data-bind=\"css: { '_active': $collapsible.opened },\n                       enable: totalRecords,\n                       toggleCollapsible\">\n            <span data-bind=\"i18n: 'Options'\"></span>\n        </button>\n        <ul\n            class=\"action-menu\"\n            data-bind=\"closeCollapsible, foreach: actions\">\n            <li data-bind=\"click: $parent[value].bind($parent),\n                           visible: $parent.isActionRelevant(value)\">\n                <span class=\"action-menu-item\" data-bind=\"text: label\"></span>\n            </li>\n        </ul>\n    </div>\n</th>\n","Magento_Ui/templates/grid/columns/image.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"masonry-image-block\" ko-style=\"$col.getStyles($row())\" css=\"{'active': $col.getIsActive($row())}\" attr=\"'data-id': $col.getId($row())\">\n    <img data-bind=\"event: { load: updateStyles($row()) }\" attr=\"src: $col.getUrl($row())\" css=\"$col.getClasses($row())\" click=\"function(){ expandPreview($row()) }\" data-role=\"thumbnail\"/>\n</div>\n","Magento_Ui/templates/grid/controls/columns.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"admin__action-dropdown-wrap admin__data-grid-action-columns\" collapsible>\n    <button class=\"admin__action-dropdown\" type=\"button\" toggleCollapsible>\n        <span class=\"admin__action-dropdown-text\" translate=\"'Columns'\"></span>\n    </button>\n    <div class=\"admin__action-dropdown-menu admin__data-grid-action-columns-menu\" css=\"_overflow: hasOverflow()\">\n        <div class=\"admin__action-dropdown-menu-header\" text=\"getHeaderMessage()\"></div>\n        <div class=\"admin__action-dropdown-menu-content\">\n            <div class=\"admin__field-option\" repeat=\"foreach: elems, item: '$col'\">\n                <input class=\"admin__control-checkbox\" type=\"checkbox\"\n                    disable=\"isDisabled($col())\"\n                    ko-checked=\"$col().visible\"\n                    attr=\"id: ++ko.uid\">\n                <label class=\"admin__field-label\"\n                       translate=\"$col().label\"\n                       attr=\"for: ko.uid\"></label>\n            </div>\n        </div>\n        <div class=\"admin__action-dropdown-menu-footer\">\n            <div class=\"admin__action-dropdown-footer-secondary-actions\">\n                <button class=\"action-tertiary\" type=\"button\" click=\"reset\" translate=\"'Reset'\"></button>\n            </div>\n            <div class=\"admin__action-dropdown-footer-main-actions\">\n                <button class=\"action-tertiary\" type=\"button\" click=\"cancel\" translate=\"'Cancel'\" closeCollapsible></button>\n            </div>\n        </div>\n    </div>\n</div>\n","Magento_Ui/templates/grid/controls/bookmarks/view.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"action-dropdown-menu-item-edit\" if=\"$view.editable\">\n    <input\n        class=\"admin__control-text\"\n        data-bind=\"\n            value: $view.value,\n            hasFocus: $parent.isEditing($view.index),\n            attr: {\n                placeholder: $view.label\n            },\n            keyboard: {\n                13: $parent.updateAndSave.bind($parent, $view.index),\n                27: $parent.endEdit.bind($parent, $view.index)\n            }\"\n        type=\"text\"/>\n    <button class=\"action-submit\" type=\"button\" attr=\"title: $t('Save all changes')\" click=\"$parent.updateAndSave.bind($parent, $view.index)\">\n        <span translate=\"'Submit'\"></span>\n    </button>\n    <div class=\"action-dropdown-menu-item-actions\">\n        <button class=\"action-delete\" type=\"button\" attr=\"title: $t('Delete bookmark')\" click=\"$parent.removeView.bind($parent, $view.index)\">\n            <span translate=\"'Delete'\"></span>\n        </button>\n    </div>\n</div>\n\n<div class=\"action-dropdown-menu-item\">\n    <a href=\"\" class=\"action-dropdown-menu-link\" translate=\"$view.label\" click=\"$parent.applyView.bind($parent, $view.index)\" closeCollapsible></a>\n\n    <div class=\"action-dropdown-menu-item-actions\" if=\"$view.editable\">\n        <button class=\"action-edit\" type=\"button\" attr=\"title: $t('Edit bookmark')\" click=\"$parent.editView.bind($parent, $view.index)\">\n            <span translate=\"'Edit'\"></span>\n        </button>\n    </div>\n</div>\n","Magento_Ui/templates/grid/controls/bookmarks/bookmarks.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"admin__action-dropdown-wrap admin__data-grid-action-bookmarks\" collapsible>\n    <button class=\"admin__action-dropdown\" type=\"button\" toggleCollapsible>\n        <span class=\"admin__action-dropdown-text\" translate=\"activeView.label\"></span>\n    </button>\n    <ul class=\"admin__action-dropdown-menu\">\n        <!-- ko foreach: { data: viewsArray, as: '$view'}  -->\n            <li css=\"_edit: $parent.isEditing($view.index)\" outerClick=\"$parent.endEdit.bind($parent, $view.index)\" template=\"$parent.viewTmpl\"></li>\n        <!-- /ko -->\n        <li visible=\"hasChanges\" outerClick=\"hideCustom.bind($data)\"\n            css=\"\n                _edit: customVisible,\n                'action-dropdown-menu-action action-dropdown-menu-item-last': !customVisible\">\n            <a href=\"\" visible=\"!customVisible\" click=\"showCustom\" translate=\"'Save View As...'\"></a>\n            <div class=\"action-dropdown-menu-item-edit\" visible=\"customVisible\">\n                <input class=\"admin__control-text\" type=\"text\"\n                    data-bind=\"\n                        attr: {'aria-label': $t('New View')},\n                        value: customLabel,\n                        hasFocus: isCustomVisible(),\n                        keyboard: {\n                            13: applyCustom.bind($data),\n                            27: hideCustom.bind($data)\n                        }\"/>\n                <div class=\"action-dropdown-menu-item-actions\">\n                   <button class=\"action-submit\" type=\"button\" click=\"applyCustom\" attr=\"title: $t('Save all changes')\">\n                        <span translate=\"'Submit'\"></span>\n                    </button>\n                </div>\n            </div>\n        </li>\n    </ul>\n</div>\n","Magento_Ui/templates/grid/paging/sizes.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n\n<div class=\"selectmenu\" collapsible=\"\">\n    <div class=\"selectmenu-value\" openCollapsible=\"\">\n        <input type=\"text\" ko-value=\"_value\" attr=\"id: index\" autoselect aria-labelledby=\"per-page-text\"/>\n    </div>\n    <button class=\"selectmenu-toggle\"\n            type=\"button\"\n            css=\"_active: $collapsible.opened\"\n            toggleCollapsible\n            aria-labelledby=\"per-page-text select-button-text\">\n        <span id=\"select-button-text\" translate=\"'Select'\"></span>\n    </button>\n    <div class=\"selectmenu-items\" css=\"_active: $collapsible.opened\" outerClick=\"discardAll.bind($data)\">\n        <ul>\n            <li repeat=\"foreach: optionsArray, item: '$size'\" css=\"_edit: isEditing($size().value)\">\n                <div class=\"selectmenu-item-edit\" if=\"$size().editable\" keyboard=\"13: updateSize.bind($data, $size().value, false)\">\n                    <input class=\"admin__control-text\" type=\"text\"\n                        ko-value=\"$size()._value\" hasFocus=\"isEditing($size().value)\"/>\n                    <button class=\"action-save\" type=\"button\" click=\"updateSize.bind($data, $size().value, false)\">\n                        <span translate=\"'Save'\"></span>\n                    </button>\n                    <button class=\"action-delete\" type=\"button\" click=\"removeSize.bind($data, $size().value, false)\">\n                        <span translate=\"'Delete'\"></span>\n                    </button>\n                </div>\n                <div class=\"selectmenu-item\">\n                    <button class=\"selectmenu-item-action\" type=\"button\" text=\"$size().label\" click=\"setSize.bind($data, $size().value)\"></button>\n                    <button class=\"action-edit\" type=\"button\" if=\"$size().editable\"\n                        data-bind=\"\n                            click: function () {\n                                discardCustom().edit($size().value);\n                            }\">\n                        <span translate=\"'Edit'\"></span>\n                    </button>\n                </div>\n            </li>\n\n            <li css=\"_edit: isCustomVisible()\">\n                <div class=\"selectmenu-item\">\n                    <button class=\"selectmenu-item-action\" type=\"button\"\n                       translate=\"'Custom'\"\n                       ko-visible=\"!isCustomVisible()\"\n                       data-bind=\"\n                            click: function () {\n                                $data.showCustom()\n                                    .discardEditing();\n                            }\"></button>\n                </div>\n                <div class=\"selectmenu-item-edit\" keyboard=\"13: applyCustom\">\n                    <input class=\"admin__control-text\" type=\"text\" ko-value=\"customValue\" hasFocus=\"isCustomVisible()\"/>\n                    <button class=\"action-save\" type=\"button\" click=\"applyCustom\">\n                        <span translate=\"'Save'\"></span>\n                    </button>\n                </div>\n            </li>\n        </ul>\n    </div>\n</div>\n<label class=\"admin__control-support-text\" translate=\"'per page'\" attr=\"for: index\" id=\"per-page-text\"></label>\n","Magento_Ui/templates/grid/paging/paging.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"admin__data-grid-pager-wrap\">\n    <scope args=\"sizes\" render=\"\"></scope>\n\n    <div class=\"admin__data-grid-pager\">\n        <button class=\"action-previous\" type=\"button\" attr=\"title: $t('Previous Page')\" click=\"prev\" disable=\"isFirst()\"></button>\n        <!-- ko if: showTotalRecords -->\n        <input class=\"admin__control-text\" type=\"number\" data-ui-id=\"current-page-input\" attr=\"id: ++ko.uid\" ko-value=\"_current\">\n        <label class=\"admin__control-support-text\" attr=\"for: ko.uid\" text=\"'of ' + pages\"></label>\n        <!-- /ko -->\n        <button class=\"action-next\" type=\"button\" attr=\"title: $t('Next Page')\" click=\"next\" disable=\"isLast()\"></button>\n    </div>\n</div>\n","Magento_Ui/templates/grid/paging/paging-detailed-total.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"admin__control-support-text\">\n    <!-- ko if: totalRecords -->\n        <strong>\n            <text args=\"getFirstItemIndex()\"></text> -\n            <text args=\"getLastItemIndex()\"></text>\n        </strong>\n        <!-- ko i18n: 'of' --><!-- /ko -->\n    <!-- /ko -->\n    <strong text=\"totalRecords\"></strong>\n    <!-- ko i18n: 'records found' --><!-- /ko -->\n    <!-- ko if: totalSelected -->\n        (<text args=\"totalSelected\"></text> <!-- ko i18n: 'selected' --><!-- /ko -->)\n    <!-- /ko -->\n</div>\n","Magento_Ui/templates/grid/editing/bulk.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<tr class=\"data-grid-bulk-edit-panel data-grid-editable-row\" each=\"data: fields, as: '$col'\" visible=\"active\">\n    <td if=\"$parent.getColumn(index).visible\" css=\"'data-grid-actions-cell': $parent.isActionsColumn($col)\">\n        <if args=\"$parent.isActionsColumn($col)\">\n            <with args=\"$parent\">\n                <button class=\"action-default\" type=\"button\" click=\"apply\" disable=\"!hasData\">\n                    <span translate=\"'Apply'\"></span>\n                </button>\n            </with>\n        </if>\n\n        <if args=\"$data.isEditor\">\n            <label class=\"admin__field-label admin__field-label-vertical\" attr=\"for: uid\" translate=\"'All in Column'\"></label>\n            <render></render>\n        </if>\n    </td>\n</tr>\n","Magento_Ui/templates/grid/editing/row.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<tr class=\"data-grid-editable-row\" each=\"data: fields, as: '$col'\" css=\"'_odd-row': !!($row()._rowIndex % 2)\">\n    <!-- ko if: $parent.getColumn(index).visible -->\n\n        <td class=\"data-grid-actions-cell\" if=\"$parent.isActionsColumn($data)\">\n            <span class=\"data-grid-row-changed\" css=\"_changed: $parent.hasChanges\">\n                <span class=\"data-grid-row-changed-tooltip\" translate=\"'Record contains unsaved changes.'\"></span>\n            </span>\n        </td>\n\n        <!-- ko ifnot: $parent.isActionsColumn($data) -->\n            <td if=\"$col.isEditor\" template=\"$parent.fieldTmpl\"></td>\n            <td ifnot=\"$col.isEditor\" css=\"$col.getFieldClass()\" template=\"$col.getBody()\"></td>\n        <!-- /ko -->\n\n    <!-- /ko -->\n</tr>\n","Magento_Ui/templates/grid/editing/field.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"admin__field-control\" css=\" _error: error(), _focus: focused()\">\n    <render></render>\n    <label class=\"admin__field-error\" attr=\"for: uid\" text=\"error\" visible=\"error() && focused()\"></label>\n</div>\n","Magento_Ui/templates/grid/editing/header-buttons.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div if=\"isMultiEditing || (hasActive() && (hasMessages() || hasErrors() ))\"\n     attr=\"role: (isMultiEditing && multiEditingButtons) ? 'alertdialog' : 'alert'\"\n     class=\"data-grid-info-panel\">\n    <div if=\"hasMessages() || hasErrors()\" class=\"messages\">\n        <div if=\"hasErrors()\" class=\"message message-warning\">\n            <strong><text args=\"countErrorsMessage()\"></text></strong>\n            <span translate=\"'Please make corrections to the errors in the table below and re-submit.'\"></span>\n        </div>\n        <div class=\"message\" outereach=\"messages\" text=\"message\"\n             css=\"\n                 'message-warning': type === 'warning',\n                 'message-error': type === 'error',\n                 'message-success': type === 'success'\"></div>\n    </div>\n    <div if=\"isMultiEditing && multiEditingButtons\" class=\"data-grid-info-panel-actions\">\n        <button class=\"action-tertiary\" type=\"button\" click=\"cancel\">\n            <span translate=\"'Cancel'\"></span>\n        </button>\n        <button class=\"action-primary\" type=\"button\" click=\"save\" disable=\"!canSave()\">\n            <span translate=\"'Save Edits'\"></span>\n        </button>\n    </div>\n</div>\n","Magento_Ui/templates/grid/editing/row-buttons.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<tr class=\"data-grid-editable-row data-grid-editable-row-actions\">\n    <td>\n        <button class=\"action-tertiary\" type=\"button\" click=\"cancel\">\n            <span translate=\"'Cancel'\"></span>\n        </button>\n        <button class=\"action-primary\" type=\"button\" click=\"save\" disable=\"!canSave()\">\n            <span translate=\"'Save'\"></span>\n        </button>\n    </td>\n</tr>\n","Magento_Ui/templates/grid/sticky/sticky.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div style=\"display: none;\" css=\"stickyClass\" afterRender=\"setStickyNode\">\n    <span class=\"data-grid-cap-left\" afterRender=\"setLeftCap\"></span>\n    <span class=\"data-grid-cap-right\" afterRender=\"setRightCap\"></span>\n\n    <div afterRender=\"setStickyToolbarNode\">\n        <div class=\"admin__data-grid-header\">\n            <div class=\"admin__data-grid-header-row\">\n                <scope args=\"requestChild('listing_massaction')\" render=\"\"></scope>\n                <scope args=\"requestChild('listing_paging')\" render=\"totalTmpl\"></scope>\n                <each args=\"getRegion('dataGridFilters')\" render=\" $data.stickyTmpl || getTemplate()\"></each>\n                <div class=\"admin__data-grid-actions-wrap\" each=\"getRegion('dataGridActions')\" render=\"\"></div>\n                <scope args=\"requestChild('listing_paging')\" render=\"\"></scope>\n            </div>\n        </div>\n\n        <scope args=\"requestChild('listing_filters_chips')\" render=\"$data.stickyTmpl || getTemplate()\"></scope>\n\n        <scope args=\"columnsProvider\" render=\"stickyTmpl\"></scope>\n    </div>\n</div>\n","Magento_Ui/templates/grid/sticky/filters.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"data-grid-filters-actions-wrap\">\n    <div class=\"data-grid-filters-action-wrap\">\n        <button\n                class=\"action-default\"\n                data-action=\"grid-filter-expand\"\n                data-bind=\"\n                 click: function(){\n                    window.scrollTo(0, 0);\n                    $data.trigger('open');\n                 },\n                 attr: {disabled: !hasVisible()}\"\n                 aria-label=\"product-filters\">\n            <span data-bind=\"i18n: 'Filters'\"></span>\n        </button>\n        <span class=\"filters-active\" data-bind=\"text: countActive() || ''\"></span> <!-- Added the amount of selected filters -->\n    </div>\n</div>\n","Magento_Ui/templates/grid/sticky/listing.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"admin__data-grid-wrap\" data-role=\"sticky-el-root\">\n    <table class=\"data-grid\">\n        <thead>\n            <tr each=\"data: getVisible(), as: '$col'\" render=\"getHeader()\"></tr>\n        </thead>\n        <tbody></tbody>\n    </table>\n</div>\n","Magento_Ui/templates/list/listing.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n\n<ol class=\"list-items\">\n    <li class=\"list-item\" repeat=\"foreach: rows, item: '$row'\">\n        <div class=\"item-info\">\n            <!--ko foreach: {data: getVisible(), as: '$col'}-->\n                <!-- ko template: getBody() --><!-- /ko -->\n            <!-- /ko -->\n        </div>\n    </li>\n</ol>\n","Magento_Ui/templates/dynamic-rows/cells/text.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"control-table-text\">\n    <span attr=\"'data-index': index\" data-bind=\"\n        text: value,\n        css: {_disabled: disabled}\n    \">\n    </span>\n</div>\n","Magento_Ui/templates/dynamic-rows/cells/action-delete.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<button class=\"action-delete\"\n        attr=\"{'data-action': 'remove_row'}\"\n        data-bind=\"\n            click: $data.deleteRecord.bind($data, $record().index, $record().recordId),\n            attr: {\n                title: $parent.deleteButtonLabel\n            }\n        \">\n    <span translate=\"$parent.deleteButtonLabel\"></span>\n</button>\n","Magento_Ui/templates/dynamic-rows/cells/thumbnail.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<img class=\"admin__control-thumbnail\" style=\"max-height: 75px; max-width: 75px;\" data-bind=\"attr: {src: $data.value}\" loading=\"lazy\"/>\n","Magento_Ui/templates/dynamic-rows/cells/dnd.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"draggable-handle\" afterRender=\"$data.initListeners\"></div>\n","Magento_Ui/templates/dynamic-rows/templates/default.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"admin__field\" visible=\"visible\" disable=\"disabled\" css=\"element.setClasses(element)\">\n    <label if=\"element.label\" class=\"admin__field-label\" attr=\"for: element.uid\">\n        <span translate=\"element.label\"></span>\n    </label>\n\n    <div class=\"admin__field-control\" data-role=\"grid-wrapper\" attr=\"'data-index': index\">\n        <div class=\"admin__control-table-wrapper\">\n            <div data-role=\"spinner\"\n                 class=\"admin__data-grid-loading-mask\"\n                 if=\"$data.showSpinner\">\n                <div class=\"spinner\">\n                    <span repeat=\"8\"></span>\n                </div>\n            </div>\n\n            <table class=\"admin__dynamic-rows admin__control-table\" data-role=\"grid\" attr=\"{'data-index': index}\">\n                <thead if=\"element.columnsHeader\">\n                    <tr>\n                        <th if=\"dndConfig.enabled\"></th>\n                        <th repeat=\"foreach: labels, item: '$label'\"\n                            css=\"setClasses($label())\"\n                            visible=\"$label().visible\"\n                            disable=\"$label().disabled\">\n                            <span translate=\"$label().label\"></span>\n                        </th>\n                    </tr>\n                </thead>\n\n                <tbody>\n                    <tr class=\"data-row\" repeat=\"foreach: elems, item: '$record'\">\n                        <td if=\"dndConfig.enabled\"\n                            class=\"col-draggable\"\n                            template=\"name: dndConfig.template, data: dnd\"></td>\n\n                    <!-- ko foreach: { data: $record().elems(), as: 'elem'}  -->\n                    <td if=\"elem.template\"\n                        css=\"$parent.setClasses(elem)\"\n                        visible=\"elem.visible() && elem.formElement !== 'hidden'\"\n                        disable=\"elem.disabled\"\n                        template=\"elem.template\"></td>\n                    <!-- /ko -->\n                </tr>\n                </tbody>\n\n                <tfoot visible=\"element.addButton || (!!element.getRecordCount() && pages() > 1)\">\n                    <tr>\n                        <td attr=\"{'colspan': element.getColumnsCount()}\"\n                            visible=\"element.addButton || pages() > 1\">\n                            <button if=\"element.addButton\"\n                                    attr=\"{disabled: disabled, 'data-action': 'add_new_row'}\"\n                                    type=\"button\"\n                                    click=\"processingAddChild.bind($data, false, false, false)\">\n                                <span translate=\"addButtonLabel\"></span>\n                            </button>\n\n                            <div class=\"admin__control-table-pagination\" visible=\"!!element.getRecordCount() && pages() > 1\">\n                                <div class=\"admin__data-grid-pager\">\n                                    <button class=\"action-previous\" type=\"button\" data-bind=\"attr: {title: $t('Previous Page')}, click: previousPage, disable: isFirst()\"></button>\n                                    <input class=\"admin__control-text\" type=\"number\" data-bind=\"attr: {id: ++ko.uid}, value: currentPage\">\n                                    <label class=\"admin__control-support-text\" data-bind=\"attr: {for: ko.uid}, text: 'of ' + pages()\"></label>\n                                    <button class=\"action-next\" type=\"button\" data-bind=\"attr: {title: $t('Next Page')}, click: nextPage, disable: isLast()\"></button>\n                                </div>\n                            </div>\n                        </td>\n                    </tr>\n                </tfoot>\n            </table>\n        </div>\n    </div>\n</div>\n","Magento_Ui/templates/dynamic-rows/templates/collapsible.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"admin__field\" css=\"element.setClasses(element)\">\n    <label if=\"element.label\" class=\"admin__field-label\" attr=\"for: element.uid\">\n        <span translate=\"element.label\"></span>\n    </label>\n\n    <div class=\"admin__field-control\" data-role=\"grid-wrapper\">\n        <div class=\"admin__control-table-pagination\" visible=\"!!element.getRecordCount()\">\n            <div class=\"admin__data-grid-pager\">\n                <button class=\"action-previous\" type=\"button\" data-bind=\"attr: {title: $t('Previous Page')}, click: previousPage, disable: isFirst()\"></button>\n                <input class=\"admin__control-text\" type=\"number\" data-bind=\"attr: {id: ++ko.uid}, value: currentPage\">\n                <label class=\"admin__control-support-text\" data-bind=\"attr: {for: ko.uid}, text: 'of ' + pages()\"></label>\n                <button class=\"action-next\" type=\"button\" data-bind=\"attr: {title: $t('Next Page')}, click: nextPage, disable: isLast()\"></button>\n            </div>\n        </div>\n        <table class=\"admin__dynamic-rows admin__control-collapsible\" data-role=\"grid\" attr=\"'data-index': index\">\n\n            <thead if=\"element.columnsHeader\">\n            <tr data-bind=\"foreach: {data: labels, as: 'label'}\">\n                <th translate=\"label.config.label\"\n                    css=\"item.columnsHeaderClasses\">\n                </th>\n            </tr>\n            </thead>\n\n            <tbody data-bind=\"foreach: elems\">\n            <tr class=\"data-row\" data-bind=\"foreach: {data: elems, as: 'elem'}\">\n                <td css=\"$parents[1].setClasses(elem)\" if=\"elem.template\">\n                    <div class=\"fieldset-wrapper admin__collapsible-block-wrapper\"\n                         collapsible=\"openClass: '_show', closeOnOuter: false, opened: elem.opened()\">\n                        <div class=\"fieldset-wrapper-title\">\n\n                            <div class=\"admin__collapsible-title\" data-role=\"collapsible-title\" click=\"elem.toggleOpened\">\n                                <render args=\"name: $parents[1].dndConfig.template, data: $parents[1].dnd\"\n                                        if=\"$parents[1].dndConfig.enabled\" ></render>\n\n                                <span translate=\"$parent.getLabel(elem)\"></span>\n                            </div>\n\n                            <button class=\"action-delete\"\n                                    data-index=\"delete_button\"\n                                    type=\"button\"\n                                    title=\"'Delete'\"\n                                    click=\"function(){\n                                            $parents[1].deleteHandler($parent.index, $parent.recordId)\n                                        }\">\n                                <span translate=\"'Delete'\"></span>\n                            </button>\n                        </div>\n\n                        <div class=\"admin__collapsible-content\"\n                             css=\"{_show: $data.opened()}\"\n                             data-role=\"collapsible-content\"\n                             template=\"elem.template\"></div>\n                    </div>\n                </td>\n            </tr>\n            </tbody>\n        </table>\n\n        <div class=\"admin__control-table-action\" if=\"element.addButton\">\n            <button attr=\"{disabled: disabled}\"\n                    type=\"button\"\n                    click=\"addChild.bind($data, false, false)\">\n                <span translate=\"addButtonLabel\"></span>\n            </button>\n        </div>\n    </div>\n</div>\n","Magento_Ui/templates/dynamic-rows/templates/grid.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n\n<div class=\"admin__field\"\n     visible=\"visible\"\n     disable=\"disabled\"\n     css=\"$data.setClasses($data)\"\n     attr=\"'data-index': index\">\n    <label if=\"$data.label\" class=\"admin__field-label\" attr=\"for: $data.uid\">\n        <span translate=\"$data.label\"></span>\n    </label>\n\n    <div class=\"admin__field-control\" data-role=\"grid-wrapper\">\n        <div class=\"admin__control-table-pagination\" visible=\"!!$data.getRecordCount()\">\n            <div class=\"admin__data-grid-pager-wrap\">\n                <select class=\"admin__control-select\" data-bind=\"value:pageSize, event:{change: updatePageSize}\">\n                    <option value=\"5\">5</option>\n                    <option value=\"20\" selected=\"selected\">20</option>\n                    <option value=\"30\">30</option>\n                    <option value=\"50\">50</option>\n                    <option value=\"100\">100</option>\n                    <option value=\"200\">200</option>\n                    <option value=\"500\">500</option>\n                </select>\n                <label class=\"admin__control-support-text\" data-bind=\"text: $t('per page')\"></label>\n                <div class=\"admin__data-grid-pager\">\n                    <button class=\"action-previous\" type=\"button\" data-bind=\"attr: {title: $t('Previous Page')}, click: previousPage, disable: isFirst()\"></button>\n                    <input class=\"admin__control-text\" type=\"number\" data-bind=\"attr: {id: ++ko.uid}, value: currentPage\"/>\n                    <label class=\"admin__control-support-text\" data-bind=\"attr: {for: ko.uid}, text: 'of ' + pages()\"></label>\n                    <button class=\"action-next\" type=\"button\" data-bind=\"attr: {title: $t('Next Page')}, click: nextPage, disable: isLast()\"></button>\n                </div>\n            </div>\n        </div>\n\n        <div class=\"admin__control-table-wrapper\">\n            <div data-role=\"spinner\"\n                 class=\"admin__data-grid-loading-mask\"\n                 if=\"$data.showSpinner\">\n                <div class=\"spinner\">\n                    <span repeat=\"8\"></span>\n                </div>\n            </div>\n            <table class=\"admin__dynamic-rows data-grid\" data-role=\"grid\">\n                <thead if=\"$data.columnsHeader\">\n                <tr>\n                    <th if=\"dndConfig.enabled\"\n                        class=\"data-grid-draggable-row-cell\"></th>\n\n                    <th repeat=\"foreach: labels, item: '$label'\"\n                        class=\"data-grid-th\"\n                        visible=\"$label().visible\"\n                        disable=\"$label().disabled\"\n                        css=\"$label().columnsHeaderClasses\">\n                        <span translate=\"$label().label\"></span>\n                    </th>\n                </tr>\n                </thead>\n\n                <tbody>\n                <tr repeat=\"foreach: elems, item: '$record'\"\n                    class=\"data-row\"\n                    css=\"'_odd-row': $index % 2\">\n                    <td if=\"dndConfig.enabled\"\n                        class=\"data-grid-draggable-row-cell\"\n                        template=\"name: dndConfig.template, data: dnd\"></td>\n\n                    <!-- ko foreach: { data: $record().elems(), as: 'elem'}  -->\n                    <td if=\"elem.template\"\n                        visible=\"elem.visible() && elem.formElement !== 'hidden'\"\n                        disable=\"elem.disabled\"\n                        css=\"$parent.setClasses(elem)\"\n                        template=\"elem.template\"\n                        attr=\"'data-index': index\"></td>\n                    <!-- /ko -->\n                </tr>\n                </tbody>\n            </table>\n        </div>\n\n        <div class=\"admin__control-table-action\" if=\"$data.addButton\">\n            <button attr=\"{disabled: disabled}\"\n                    type=\"button\"\n                    click=\"addChild.bind($data, false, false)\">\n                <span translate=\"addButtonLabel\"></span>\n            </button>\n        </div>\n        <render args=\"fallbackResetTpl\" if=\"$data.showFallbackReset && $data.isDifferedFromDefault\"></render>\n    </div>\n</div>\n","Magento_Ui/templates/content/content.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n\n<div html=\"getContentUnsanitizedHtml()\"\n     css=\"$data.additionalClasses\"\n     visible=\"visible\"></div>\n\n<div data-role=\"spinner\"\n     class=\"admin__data-grid-loading-mask\"\n     visible=\"loading\"\n     if=\"showSpinner\">\n    <div class=\"spinner\">\n        <span repeat=\"8\"></span>\n    </div>\n</div>\n","Magento_Ui/templates/modal/modal-component.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div css=\"modalClass\" hasFocus=\"focused\">\n    <each if=\"state() || $data.modal\" args=\"data: elems, as: 'element'\" render=\"\"></each>\n</div>\n","Magento_Ui/templates/modal/modal-prompt-content.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<form <%= formAttr %>>\n    <fieldset class=\"fieldset\">\n        <div class=\"field\">\n            <% if(data.label){ %>\n            <label for=\"prompt-field-<%- data.id %>\" class=\"label\">\n                <span><%= data.label %></span>\n            </label>\n            <% } %>\n            <div class=\"control\">\n                <input type=\"text\" data-role=\"promptField\" id=\"prompt-field-<%- data.id %>\" class=\"input-text\" <%= inputAttr %>/>\n            </div>\n        </div>\n    </fieldset>\n</form>\n","Magento_Ui/templates/modal/modal-custom.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n\n<aside role=\"dialog\"\n       class=\"modal-<%- data.type %> <%- data.modalClass %>\n       <% if(data.responsive){ %><%- data.responsiveClass %><% } %>\n       <% if(data.innerScroll){ %><%- data.innerScrollClass %><% } %>\"\n       <% if(data.title){ %> aria-labelledby=\"modal-title-<%- data.id %>\"<% } %>\n       aria-describedby=\"modal-content-<%- data.id %>\"\n       data-role=\"modal\"\n       data-type=\"<%- data.type %>\"\n       tabindex=\"0\">\n    <div data-role=\"focusable-start\" tabindex=\"0\"></div>\n    <div class=\"modal-inner-wrap\"\n         data-role=\"focusable-scope\">\n        <header class=\"modal-header\">\n            <% if(data.title || data.subTitle){ %>\n            <h1 id=\"modal-title-<%- data.id %>\" class=\"modal-title\"\n                data-role=\"title\">\n                <% if(data.title){ %>\n                    <%= data.title %>\n                <% } %>\n\n                <% if(data.subTitle){ %>\n                <span class=\"modal-subtitle\"\n                      data-role=\"subTitle\">\n                    <%= data.subTitle %>\n                </span>\n                <% } %>\n            </h1>\n            <% } %>\n            <button\n                class=\"action-close\"\n                data-role=\"closeBtn\"\n                type=\"button\">\n                <span><%= data.closeText %></span>\n            </button>\n        </header>\n        <div id=\"modal-content-<%- data.id %>\" class=\"modal-content\" data-role=\"content\"></div>\n        <% if(data.buttons.length > 0){ %>\n        <footer class=\"modal-footer\">\n            <% _.each(data.buttons, function(button) { %>\n            <button class=\"<%- button.class %>\"\n                    type=\"button\"\n                    data-role=\"action\">\n                <span><%= button.text %></span>\n            </button>\n            <% }); %>\n        </footer>\n        <% } %>\n    </div>\n    <div data-role=\"focusable-end\" tabindex=\"0\"></div>\n</aside>\n","Magento_Ui/templates/modal/modal-slide.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n\n<aside role=\"dialog\"\n       class=\"modal-<%- data.type %> <%- data.modalClass %>\n               <% if(data.innerScroll){ %><%- data.innerScrollClass %><% } %>\"\n       <% if(data.title){ %> aria-labelledby=\"modal-title-<%- data.id %>\"<% } %>\n       aria-describedby=\"modal-content-<%- data.id %>\"\n       data-role=\"modal\"\n       data-type=\"<%- data.type %>\"\n       tabindex=\"0\">\n    <div data-role=\"focusable-start\" tabindex=\"0\"></div>\n    <div class=\"modal-inner-wrap\"\n         data-role=\"focusable-scope\">\n        <header class=\"modal-header\">\n            <% if(data.title || data.subTitle){ %>\n            <h1 id=\"modal-title-<%- data.id %>\" class=\"modal-title\"\n                data-role=\"title\">\n                <% if(data.title){ %>\n                    <%= data.title %>\n                <% } %>\n\n                <% if(data.subTitle){ %>\n                <span class=\"modal-subtitle\"\n                      data-role=\"subTitle\">\n                    <%= data.subTitle %>\n                </span>\n                <% } %>\n            </h1>\n            <% } %>\n            <button\n                class=\"action-close\"\n                data-role=\"closeBtn\"\n                type=\"button\">\n                <span><%= data.closeText %></span>\n            </button>\n            <% if(data.buttons.length > 0){ %>\n            <div class=\"page-main-actions\">\n                <div class=\"page-actions\">\n                    <div class=\"page-actions-buttons\">\n                        <% _.each(data.buttons, function(button) { %>\n                        <button\n                            class=\"<%- button.class %>\"\n                            type=\"button\"\n                            data-role=\"action\"><span><%= button.text %></span>\n                        </button>\n                        <% }); %>\n                    </div>\n                </div>\n            </div>\n            <% } %>\n        </header>\n        <div id=\"modal-content-<%- data.id %>\" class=\"modal-content\" data-role=\"content\"></div>\n    </div>\n    <div data-role=\"focusable-end\" tabindex=\"0\"></div>\n</aside>\n","Magento_Ui/templates/modal/modal-popup.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n\n<aside role=\"dialog\"\n       class=\"modal-<%- data.type %> <%- data.modalClass %>\n               <% if(data.responsive){ %><%- data.responsiveClass %><% } %>\n               <% if(data.innerScroll){ %><%- data.innerScrollClass %><% } %>\"\n       <% if(data.title){ %> aria-labelledby=\"modal-title-<%- data.id %>\"<% } %>\n       aria-describedby=\"modal-content-<%- data.id %>\"\n       data-role=\"modal\"\n       data-type=\"<%- data.type %>\"\n       tabindex=\"0\">\n    <div data-role=\"focusable-start\" tabindex=\"0\"></div>\n    <div class=\"modal-inner-wrap\"\n         data-role=\"focusable-scope\">\n        <header class=\"modal-header\">\n            <% if(data.title || data.subTitle){ %>\n            <h1 id=\"modal-title-<%- data.id %>\" class=\"modal-title\"\n                data-role=\"title\">\n                <% if(data.title){ %>\n                    <%= data.title %>\n                <% } %>\n\n                <% if(data.subTitle){ %>\n                <span class=\"modal-subtitle\"\n                      data-role=\"subTitle\">\n                    <%= data.subTitle %>\n                </span>\n                <% } %>\n            </h1>\n            <% } %>\n            <button\n                class=\"action-close\"\n                data-role=\"closeBtn\"\n                type=\"button\">\n                <span><%= data.closeText %></span>\n            </button>\n        </header>\n        <div id=\"modal-content-<%- data.id %>\"\n            class=\"modal-content\"\n            data-role=\"content\"></div>\n        <% if(data.buttons.length > 0){ %>\n        <footer class=\"modal-footer\">\n            <% _.each(data.buttons, function(button) { %>\n            <button\n                class=\"<%- button.class %>\"\n                type=\"button\"\n                data-role=\"action\"><span><%= button.text %></span></button>\n            <% }); %>\n        </footer>\n        <% } %>\n    </div>\n    <div data-role=\"focusable-end\" tabindex=\"0\"></div>\n</aside>\n","Magento_Ui/templates/group/group.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<fieldset class=\"field\" data-bind=\"css: additionalClasses\">\n    <legend class=\"label\">\n        <span translate=\"element.label\"></span>\n    </legend>\n    <div class=\"control\">\n        <!-- ko foreach: { data: elems, as: 'element' } -->\n\n            <!-- ko if: element.visible() -->\n\n                <!-- ko ifnot: (element.input_type == 'checkbox' || element.input_type == 'radio') -->\n                    <!-- ko template: $parent.fieldTemplate --><!-- /ko -->\n                <!-- /ko -->\n\n                <!-- ko if: (element.input_type == 'checkbox' || element.input_type == 'radio') -->\n                    <!-- ko template: element.elementTmpl --><!-- /ko -->\n                <!-- /ko -->\n\n            <!-- /ko -->\n\n        <!-- /ko -->\n\n        <!-- ko if: validateWholeGroup -->\n        <!-- ko  foreach: { data: elems, as: 'element' } -->\n            <!-- ko if: element.error() && element.visible() -->\n                <label class=\"error\" data-bind=\"attr: { for: uid }, text: element.error\"></label>\n            <!-- /ko -->\n        <!-- /ko -->\n        <!-- /ko -->\n    </div>\n</fieldset>\n","Magento_Ui/templates/timeline/timeline.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"timeline\">\n    <svg\n        version=\"1.1\"\n        xmlns=\"http://www.w3.org/2000/svg\"\n        xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n        style=\"position: absolute; width: 0; height: 0;\"\n        width=\"0\"\n        height=\"0\">\n        <defs>\n            <symbol id=\"svg-ending\" viewBox=\"0 0 28 36\">\n                <path\n                    class=\"g__timeline-ending\"\n                    d=\"\n                        M2.864,0.456\n                        h1.189 l14.625,17.55\n                        L4.054,35.557\n                        H2.681\"></path>\n                <path\n                    class=\"g__timeline-arrow\"\n                    fill=\"currentColor\"\n                    d=\"\n                        M9.175,0.04\n                        h4.002l15.006,18.007\n                        L13.177,36.055\n                        H9.175 l15.006-18.008\n                        L9.175,0.04z\"></path>\n            </symbol>\n        </defs>\n    </svg>\n\n    <div class=\"timeline-content\"\n         css=\"'_from-now': hasToday(),\n              '_no-records': !hasData()\">\n        <div class=\"timeline-past\" if=\"hasToday()\">\n            <time class=\"timeline-date\" translate=\"'Past'\"></time>\n        </div>\n        <ul class=\"timeline-units\">\n            <li class=\"timeline-unit\" repeat=\"foreach: updateRange().days, item: '$date'\">\n                <div tooltip=\"\n                    trigger: '[data-tooltip-trigger=' + $index + ']',\n                    action: 'hover',\n                    delay: 300,\n                    track: true,\n                    position: 'top',\n                    closeButton: false\n                \">\n                    <text args=\"isToday($date()) ? $t('Today') \\: formatHeader($date())\"></text>\n                </div>\n                <time attr=\"'data-tooltip-trigger': $index\" class=\"timeline-date\">\n\n                    <!-- NOTE: needs to be replaced by the date binding -->\n                    <text args=\"isToday($date()) ? $t('Today') \\: formatHeader($date())\"></text>\n                </time>\n            </li>\n        </ul>\n        <ul class=\"timeline-items\">\n            <if args=\"hasData()\">\n                <li class=\"timeline-item\"\n                    repeat=\"foreach: rows, item: '$row'\"\n                    attr=\"'data-tooltip-search-scope': 'search-scope-' + $index\"\n                    css=\"\n                        _active: isActive($row()),\n                        _permanent: isPermanent($row())\n                    \"\n                    render=\"recordTmpl\"></li>\n            </if>\n\n            <ifnot args=\"hasData()\">\n                <li class=\"timeline-item\" data-role=\"no-data-msg\">\n                    <div class=\"timeline-event\">\n                        <span class=\"timeline-event-title\"\n                                translate=\"'We couldn\\'t find any records.'\"></span>\n                        <div class=\"timeline-event-info\"></div>\n                    </div>\n                </li>\n            </ifnot>\n        </ul>\n    </div>\n    <div class=\"timeline-scale\">\n        <div class=\"data-slider\"\n            range=\"\n                value: ko.getObservable($data, 'scale'),\n                min: minScale,\n                max: maxScale,\n                step: scaleStep\n            \">\n            <span class=\"data-slider-from\" text=\"daysToWeeks(minScale) + 'w'\"></span>\n            <span class=\"data-slider-to\" text=\"daysToWeeks(maxScale) + 'w'\"></span>\n        </div>\n    </div>\n</div>\n","Magento_Ui/templates/timeline/record.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"timeline-event\">\n    <strong class=\"timeline-event-title\" ko-scope=\"requestChild('name')\">\n        <text args=\"getLabel($row())\"></text>\n    </strong>\n    <div class=\"timeline-event-info\">\n        <div class=\"timeline-event-details\"></div>\n        <div class=\"timeline-event-summary\"></div>\n    </div>\n    <div class=\"timeline-event-actions\">\n        <button type=\"button\"\n                attr=\"title: $t('To Start')\"\n                class=\"timeline-action _tostart\"\n                disabled>\n            <span translate=\"'To Start'\"></span>\n        </button>\n        <button type=\"button\"\n                attr=\"title: $t('To End')\"\n                class=\"timeline-action _toend\"\n                disabled>\n            <span translate=\"'To End'\"></span>\n        </button>\n    </div>\n    <svg>\n        <use class=\"timeline-ending\" xlink:href=\"#svg-ending\"></use>\n    </svg>\n</div>\n","MGS_Fbuilder/template/grid/tree-massactions.html":"<!--\n/**\n* @author MGS Team\n* @copyright Copyright (c) 2016 mgs (http://www.magesolution.com)\n* @package MGS_Fbuilder\n*/\n-->\n\n<div\n    class=\"action-select-wrap\"\n    data-bind=\"css: {'_active': opened}, outerClick: close.bind($data)\">\n    <button\n            class=\"action-select\"\n            data-bind=\"title: $t('Select Items'), click: toggleOpened\">\n        <span data-bind=\"text: $t('Actions')\"></span>\n    </button>\n    <div class=\"action-menu-items\">\n        <ul\n            class=\"action-menu\"\n            data-bind=\"css: {'_active': opened},\n                foreach: {data: actions, as: 'action'}\">\n            <li\n                    data-bind=\"css: {\n                        '_visible': $data.visible,\n                        '_parent': $data.actions}\">\n                <span\n                    class=\"action-menu-item\"\n                    data-bind=\"text: label,\n                        click: $parent.applyAction.bind($parent, type)\">\n                </span>\n                <!-- ko if: $data.actions -->\n                    <!-- ko if: $data.mgs_actions -->\n                        <!-- ko template: {name: $parent.mgssubmenuTemplate, data: $parent} -->\n                        <!-- /ko -->\n                    <!-- /ko -->\n                    <!-- ko if: !$data.mgs_actions -->\n                        <!-- ko template: {name: $parent.submenuTemplate, data: $parent} -->\n                        <!-- /ko -->\n                    <!-- /ko -->\n                <!-- /ko-->\n            </li>\n        </ul>\n    </div>\n</div>","MGS_Fbuilder/template/grid/submenu.html":"<!--\n/**\n* @author MGS Team\n* @copyright Copyright (c) 2019 MGS (http://www.magesolution.com)\n* @package MGS_Fbuilder\n*/\n-->\n\n<ul\n    class=\"action-submenu\"\n    data-bind=\"foreach: {data: action.actions, as: 'action'},\n    css: { _active: action.visible }\">\n    <li data-bind=\"css: { '_visible': $data.visible}\">\n        <div data-bind=\"\" class=\"mgs-file-form\">\n            <table>\n                <tr>\n                    <td>\n                        <label data-bind=\"i18n: action.fieldLabel\"></label>\n                    </td>\n                    <td style=\"white-space: nowrap;\">\n                        <input type=\"text\" class=\"admin__control-text product_id\" data-bind=\"attr: { placeholder: action.placeholder}\">\n                    </td>\n                    <td>\n\t\t\t\t\t\t<button type=\"button\" class=\"action-check\" onclick=\"loadAvailableStore(); return false\">\n                            <span data-bind=\"i18n: 'Check'\">Check</span>\n                        </button>\n\t\t\t\t\t\t\n                        <button type=\"button\" data-bind=\"click: function(){$parent.applyMassaction(action)}\" class=\"action-save\">\n                            <span data-bind=\"i18n: 'Apply'\">Apply</span>\n                        </button>\n                    </td>\n                </tr>\n            </table>\n        </div>\n    </li>\n</ul>\n","Accept_Payments/template/payment/aman.html":"<!--\r\n/**\r\n * Copyright \u00a9 2015 Magento. All rights reserved.\r\n * See COPYING.txt for license details.\r\n */\r\n-->\r\n<div class=\"payment-method\" data-bind=\"css: {'_active': (getCode() == isChecked())}\">\r\n    <div class=\"payment-method-title field choice\">\r\n        <input type=\"radio\" name=\"payment[method]\" class=\"radio\"\r\n            data-bind=\"attr: {'id': getCode()}, value: getCode(), checked: isChecked, click: selectPaymentMethod, visible: isRadioButtonVisible()\" />\r\n            <label data-bind=\"attr: {'for': getCode()}\" class=\"label\">\r\n                <img class=\"payment-icon\" data-bind=\"\r\n                    attr: {\r\n                        src: logo() ? logo() : require.toUrl('Accept_Payments/images/aman_installment.png'),\r\n                        alt: getTitle()\r\n                    }\" />\r\n                <span data-bind=\"text: getTitle()\"></span></label>\r\n    </div>\r\n    <div class=\"payment-method-content\">\r\n        <!-- ko foreach: getRegion('messages') -->\r\n        <!-- ko template: getTemplate() --><!-- /ko -->\r\n        <!--/ko-->\r\n        <div class=\"payment-method-billing-address\">\r\n            <!-- ko foreach: $parent.getRegion(getBillingAddressFormName()) -->\r\n            <!-- ko template: getTemplate() --><!-- /ko -->\r\n            <!--/ko-->\r\n        </div>\r\n\r\n        <!-- ACCEPT -->\r\n        <style>\r\n            .payment-icon {\r\n                width: 17%;\r\n            }\r\n\r\n            #aman-container {\r\n                background: rgba(0, 0, 0, 0.35);\r\n                position: fixed;\r\n                display: none;\r\n                top: 0;\r\n                left: 0;\r\n                width: 100%;\r\n                height: 100%;\r\n                overflow: auto;\r\n                z-index: 99;\r\n                color: #ffffff;\r\n            }\r\n\r\n            #aman-container .inner-page div {\r\n                display: none;\r\n            }\r\n\r\n            #aman-container svg {\r\n                display: block;\r\n                height: auto;\r\n                width: 250px;\r\n                max-width: 90%;\r\n                margin: 0 auto;\r\n                background: #ffffff;\r\n                border-radius: 50%;\r\n            }\r\n\r\n            #aman-container .inner-page {\r\n                background: rgba(0, 0, 0, 0.85);\r\n                height: 100%;\r\n                width: 100%;\r\n                text-align: center;\r\n                position: fixed;\r\n                top: 0;\r\n                left: 0;\r\n                z-index: 999;\r\n                overflow: auto;\r\n            }\r\n\r\n            #aman-iframes-container {\r\n                overflow-y: scroll !important;\r\n                -webkit-overflow-scrolling: touch !important;\r\n                height: 400px;\r\n            }\r\n\r\n            #aman-iframes-container iframe {\r\n                border: none;\r\n                z-index: 999999999;\r\n                width: 100%;\r\n                overflow: auto;\r\n            }\r\n\r\n            #aman-container #aman-iframes-container li {\r\n                text-align: left;\r\n                cursor: pointer;\r\n            }\r\n\r\n            .aman-card-option svg {\r\n                display: inline-block !important;\r\n                width: 24px !important;\r\n                vertical-align: middle !important;\r\n                margin-left: 1rem !important;\r\n            }\r\n\r\n            .aman-card-option.active svg {\r\n                fill: #4caf50;\r\n            }\r\n\r\n            .spinner {\r\n                position: absolute;\r\n                left: 5%;\r\n                bottom: 5%;\r\n                width: 25px;\r\n                height: 25px;\r\n                padding: 0;\r\n                margin: 0;\r\n                border-radius: 50%;\r\n                border: 5px solid transparent;\r\n                -webkit-animation: spin 500ms linear infinite;\r\n                animation: spin 500ms linear infinite;\r\n                z-index: 1000;\r\n            }\r\n\r\n            .spinner.default {\r\n                border-top: 5px solid #01AEF0;\r\n                border-bottom: 5px solid #01AEF0;\r\n            }\r\n\r\n            .spinner.stop {\r\n                -webkit-animation: spin 1500ms ease-in-out infinite;\r\n                animation: spin 1500ms ease-in-out infinite;\r\n                border-top: 5px solid #4caf50;\r\n                border-bottom: 5px solid #4caf50;\r\n            }\r\n\r\n            @-webkit-keyframes spin {\r\n                0% {\r\n                    -webkit-transform: rotate(0deg);\r\n                }\r\n\r\n                100% {\r\n                    -webkit-transform: rotate(360deg);\r\n                }\r\n            }\r\n\r\n            @keyframes spin {\r\n                0% {\r\n                    transform: rotate(0deg);\r\n                }\r\n\r\n                100% {\r\n                    transform: rotate(360deg);\r\n                }\r\n            }\r\n        </style>\r\n        <div id=\"aman-container\">\r\n            <span class=\"spinner default\"></span>\r\n            <div class=\"inner-page\">\r\n                <div id=\"aman-errors\">\r\n                    <svg style=\"fill:#e91e63;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\"\r\n                        viewBox=\"0 0 24 24\">\r\n                        <path d=\"M0 0h24v24H0z\" fill=\"none\" />\r\n                        <path\r\n                            d=\"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z\" />\r\n                    </svg>\r\n                    <br>\r\n                    <span class=\"errors\">UKNOWN ERROR</span>\r\n                </div>\r\n                <div id=\"aman-iframes-container\"></div>\r\n            </div>\r\n        </div>\r\n        <!-- /ACCEPT -->\r\n\r\n        <div class=\"checkout-agreements-block\">\r\n            <!-- ko foreach: $parent.getRegion('before-place-order') -->\r\n            <!-- ko template: getTemplate() --><!-- /ko -->\r\n            <!--/ko-->\r\n        </div>\r\n\r\n        <div class=\"actions-toolbar\">\r\n            <div class=\"primary\">\r\n                <button class=\"action primary checkout\" type=\"submit\" data-bind=\"\r\n                        click: placeOrder,\r\n                        attr: {title: $t('Next')},\r\n                        css: {disabled: !isPlaceOrderActionAllowed()},\r\n                        enable: (getCode() == isChecked())\r\n                        \" disabled>\r\n                    <span data-bind=\"i18n: 'Next'\"></span>\r\n                </button>\r\n            </div>\r\n        </div>\r\n\r\n    </div>\r\n</div>","Accept_Payments/template/payment/wallet.html":"<!--\n/**\n * Copyright \u00a9 2015 Magento. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"payment-method\" data-bind=\"css: {'_active': (getCode() == isChecked())}\">\n    <div class=\"payment-method-title field choice\">\n        <input type=\"radio\" name=\"payment[method]\" class=\"radio\"\n            data-bind=\"attr: {'id': getCode()}, value: getCode(), checked: isChecked, click: selectPaymentMethod, visible: isRadioButtonVisible()\" />\n        <label class=\"label\" data-bind=\"attr: {'for': getCode()}\">\n            <img class=\"payment-icon\" data-bind=\"\n                attr: {\n                    src: logo() ? logo() : require.toUrl('Accept_Payments/images/Wallets.png'),\n                    alt: getTitle()\n                }\" />\n            <span data-bind=\"text: getTitle()\"></span>\n        </label>\n    </div>\n    <div class=\"payment-method-content\">\n        <p data-bind=\"html: getInstructions()\"></p>\n        <!-- ko foreach: getRegion('messages') -->\n        <!-- ko template: getTemplate() --><!-- /ko -->\n        <!--/ko-->\n        <!--        <div class=\"payment-method-billing-address\">-->\n        <!--            &lt;!&ndash; ko foreach: $parent.getRegion(getBillingAddressFormName()) &ndash;&gt;-->\n        <!--            &lt;!&ndash; ko template: getTemplate() &ndash;&gt;&lt;!&ndash; /ko &ndash;&gt;-->\n        <!--            &lt;!&ndash;/ko&ndash;&gt;-->\n        <!--        </div>-->\n\n        <!-- ACCEPT -->\n        <style>\n            .payment-icon {\n                width: 17%;\n            }\n\n            #wallet-container {\n                background: rgba(0, 0, 0, 0.35);\n                position: fixed;\n                display: none;\n                top: 0;\n                left: 0;\n                width: 100%;\n                min-height: 100%;\n                overflow: auto;\n                z-index: 99;\n                color: #ffffff;\n            }\n\n            #wallet-container .inner-page div {\n                display: none;\n            }\n\n            #wallet-container svg {\n                display: block;\n                height: auto;\n                width: 250px;\n                max-width: 90%;\n                margin: 0 auto;\n                background: #ffffff;\n                border-radius: 50%;\n            }\n\n            #wallet-container .inner-page {\n                background: rgba(0, 0, 0, 0.85);\n                height: 100%;\n                width: 100%;\n                text-align: center;\n                position: fixed;\n                top: 0;\n                left: 0;\n                z-index: 999;\n                overflow: auto;\n            }\n        </style>\n        <div id=\"wallet-container\">\n            <div class=\"inner-page\">\n                <div id=\"wallet-errors\">\n                    <svg style=\"fill:#e91e63;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\"\n                        viewBox=\"0 0 24 24\">\n                        <path d=\"M0 0h24v24H0z\" fill=\"none\" />\n                        <path\n                            d=\"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z\" />\n                    </svg>\n                    <br>\n                    <span class=\"errors\">UKNOWN ERROR</span>\n                </div>\n            </div>\n        </div>\n        <!-- /ACCEPT -->\n\n        <div class=\"checkout-agreements-block\">\n            <!-- ko foreach: $parent.getRegion('before-place-order') -->\n            <!-- ko template: getTemplate() --><!-- /ko -->\n            <!--/ko-->\n        </div>\n\n        <div style=\"margin:1.75rem auto;\">\n            <label for=\"wallet-phone-input\"><small style=\"color: #e91e63; display: none\" id=\"wallet-phone-required\"\n                    data-bind=\"text: $t('Please enter a valid phone number')\"></small></label>\n            <input class=\"input-text\" type=\"number\" id=\"wallet-phone-input\"\n                data-bind=\"value: phoneNumber ,attr:{placeholder: $t('Phone')} \">\n        </div>\n\n        <div class=\"actions-toolbar\">\n\n            <div class=\"primary\">\n                <button class=\"action primary checkout\" type=\"submit\" data-bind=\"\n                        click: placeOrder,\n                        attr: {title: $t('Next')},\n                        css: {disabled: !isPlaceOrderActionAllowed()},\n                        enable: (getCode() == isChecked())\n                        \" disabled>\n                    <span data-bind=\"i18n: 'Next'\"></span>\n                </button>\n            </div>\n        </div>\n\n    </div>\n</div>","Accept_Payments/template/payment/online.html":"<!--\n/**\n * Copyright \u00a9 2015 Magento. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"payment-method\" data-bind=\"css: {'_active': (getCode() == isChecked())}\">\n    <div class=\"payment-method-title field choice\">\n        <input type=\"radio\" name=\"payment[method]\" class=\"radio\"\n            data-bind=\"attr: {'id': getCode()}, value: getCode(), checked: isChecked, click: selectPaymentMethod, visible: isRadioButtonVisible()\" />\n        <label class=\"label\" data-bind=\"attr: {'for': getCode()}\">\n            <img class=\"payment-icon\" data-bind=\"\n                attr: {\n                    src: logo() ? logo() : require.toUrl('Accept_Payments/images/visa_mastercard.png'),\n                    alt: getTitle()\n                }\" />\n            <span data-bind=\"text: getTitle()\"></span>\n        </label>\n    </div>\n    <div class=\"payment-method-content\">\n        <p data-bind=\"html: getInstructions()\"></p>\n        <!-- ko foreach: getRegion('messages') -->\n        <!-- ko template: getTemplate() --><!-- /ko -->\n        <!--/ko-->\n        <!--        <div class=\"payment-method-billing-address\">-->\n        <!--            &lt;!&ndash; ko foreach: $parent.getRegion(getBillingAddressFormName()) &ndash;&gt;-->\n        <!--            &lt;!&ndash; ko template: getTemplate() &ndash;&gt;&lt;!&ndash; /ko &ndash;&gt;-->\n        <!--            &lt;!&ndash;/ko&ndash;&gt;-->\n        <!--        </div>-->\n\n        <!-- ACCEPT -->\n        <style>\n            .payment-icon {\n                width: 17%;\n            }\n\n            #online-container {\n                background: rgba(0, 0, 0, 0.35);\n                position: fixed;\n                display: none;\n                top: 0;\n                left: 0;\n                width: 100%;\n                height: 100%;\n                overflow: auto;\n                z-index: 99;\n                color: #ffffff;\n            }\n\n            #online-container .inner-page div {\n                display: none;\n            }\n\n            #online-container svg {\n                display: block;\n                height: auto;\n                width: 250px;\n                max-width: 90%;\n                margin: 0 auto;\n                background: #ffffff;\n                border-radius: 50%;\n            }\n\n            #online-container .inner-page {\n                background: rgba(0, 0, 0, 0.85);\n                height: 100%;\n                width: 100%;\n                text-align: center;\n                position: fixed;\n                top: 0;\n                left: 0;\n                z-index: 999;\n                overflow: auto;\n            }\n\n            #online-iframes-container {\n                overflow-y: scroll !important;\n                -webkit-overflow-scrolling: touch !important;\n                height: 400px;\n            }\n\n            #online-iframes-container iframe {\n                border: none;\n                z-index: 999999999;\n                width: 100%;\n                overflow: auto;\n            }\n\n            #online-container #online-iframes-container li {\n                text-align: left;\n                cursor: pointer;\n            }\n\n            .online-card-option svg {\n                display: inline-block !important;\n                width: 24px !important;\n                vertical-align: middle !important;\n                margin-left: 1rem !important;\n            }\n\n            .online-card-option.active svg {\n                fill: #4caf50;\n            }\n\n            .spinner {\n                position: absolute;\n                left: 5%;\n                bottom: 5%;\n                width: 25px;\n                height: 25px;\n                padding: 0;\n                margin: 0;\n                border-radius: 50%;\n                border: 5px solid transparent;\n                -webkit-animation: spin 500ms linear infinite;\n                animation: spin 500ms linear infinite;\n                z-index: 1000;\n            }\n\n            .spinner.default {\n                border-top: 5px solid #01AEF0;\n                border-bottom: 5px solid #01AEF0;\n            }\n\n            .spinner.stop {\n                -webkit-animation: spin 1500ms ease-in-out infinite;\n                animation: spin 1500ms ease-in-out infinite;\n                border-top: 5px solid #4caf50;\n                border-bottom: 5px solid #4caf50;\n            }\n\n            @-webkit-keyframes spin {\n                0% {\n                    -webkit-transform: rotate(0deg);\n                }\n\n                100% {\n                    -webkit-transform: rotate(360deg);\n                }\n            }\n\n            @keyframes spin {\n                0% {\n                    transform: rotate(0deg);\n                }\n\n                100% {\n                    transform: rotate(360deg);\n                }\n            }\n        </style>\n        <div id=\"online-container\">\n            <span class=\"spinner default\"></span>\n            <div class=\"inner-page\">\n                <div id=\"online-errors\">\n                    <svg style=\"fill:#e91e63;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\"\n                        viewBox=\"0 0 24 24\">\n                        <path d=\"M0 0h24v24H0z\" fill=\"none\" />\n                        <path\n                            d=\"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z\" />\n                    </svg>\n                    <br>\n                    <span class=\"errors\">UKNOWN ERROR</span>\n                </div>\n                <div id=\"online-iframes-container\"></div>\n            </div>\n        </div>\n        <!-- /ACCEPT -->\n\n        <div class=\"checkout-agreements-block\">\n            <!-- ko foreach: $parent.getRegion('before-place-order') -->\n            <!-- ko template: getTemplate() --><!-- /ko -->\n            <!--/ko-->\n        </div>\n\n        <div class=\"actions-toolbar\">\n            <div class=\"primary\">\n                <button class=\"action primary checkout\" type=\"submit\" data-bind=\"\n                        click: placeOrder,\n                        attr: {title: $t('Next')},\n                        css: {disabled: !isPlaceOrderActionAllowed()},\n                        enable: (getCode() == isChecked())\n                        \" disabled>\n                    <span data-bind=\"i18n: 'Next'\"></span>\n                </button>\n            </div>\n        </div>\n\n    </div>\n</div>","Accept_Payments/template/payment/kiosk.html":"<!--\n/**\n * Copyright \u00a9 2015 Magento. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"payment-method\" data-bind=\"css: {'_active': (getCode() == isChecked())}\">\n    <div class=\"payment-method-title field choice\">\n        <input type=\"radio\" name=\"payment[method]\" class=\"radio\"\n            data-bind=\"attr: {'id': getCode()}, value: getCode(), checked: isChecked, click: selectPaymentMethod, visible: isRadioButtonVisible()\" />\n        <label class=\"label\" data-bind=\"attr: {'for': getCode()}\">\n            <img class=\"payment-icon\" data-bind=\"\n                attr: {\n                    src: logo() ? logo() : require.toUrl('Accept_Payments/images/aman.png'),\n                    alt: getTitle()\n                }\" />\n            <span data-bind=\"text: getTitle()\"></span>\n        </label>\n    </div>\n    <div class=\"payment-method-content\">\n        <p data-bind=\"html: getInstructions()\"></p>\n        <!-- ko foreach: getRegion('messages') -->\n        <!-- ko template: getTemplate() --><!-- /ko -->\n        <!--/ko-->\n        <!--        <div class=\"payment-method-billing-address\">-->\n        <!--            &lt;!&ndash; ko foreach: $parent.getRegion(getBillingAddressFormName()) &ndash;&gt;-->\n        <!--            &lt;!&ndash; ko template: getTemplate() &ndash;&gt;&lt;!&ndash; /ko &ndash;&gt;-->\n        <!--            &lt;!&ndash;/ko&ndash;&gt;-->\n        <!--        </div>-->\n\n        <!-- ACCEPT -->\n        <style>\n            .payment-icon {\n                width: 17%;\n            }\n\n            #kiosk-container {\n                background: rgba(0, 0, 0, 0.35);\n                position: fixed;\n                display: none;\n                top: 0;\n                left: 0;\n                width: 100%;\n                height: 100%;\n                overflow: auto;\n                z-index: 99;\n                color: #ffffff;\n            }\n\n            #kiosk-container .inner-page div {\n                display: none;\n            }\n\n            #kiosk-container svg {\n                display: block;\n                height: auto;\n                width: 250px;\n                max-width: 90%;\n                margin: 0 auto;\n                background: #ffffff;\n                border-radius: 50%;\n            }\n\n            #kiosk-container .inner-page {\n                background: rgba(0, 0, 0, 0.85);\n                height: 100%;\n                width: 100%;\n                text-align: center;\n                position: fixed;\n                top: 0;\n                left: 0;\n                z-index: 999;\n                overflow: auto;\n            }\n\n            #kiosk-container #kiosk-powered-by {\n                display: block;\n                padding-right: 1rem;\n                text-align: right;\n                margin-top: 4rem;\n            }\n\n            #kiosk-container #kiosk-powered-by small {\n                display: block;\n            }\n\n            #kiosk-container #kiosk-powered-by img {\n                width: 175px;\n            }\n        </style>\n        <div id=\"kiosk-container\">\n            <div class=\"inner-page\">\n                <div id=\"kiosk-errors\">\n                    <svg style=\"fill:#e91e63;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\"\n                        viewBox=\"0 0 24 24\">\n                        <path d=\"M0 0h24v24H0z\" fill=\"none\" />\n                        <path\n                            d=\"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z\" />\n                    </svg>\n                    <br>\n                    <span class=\"errors\">UKNOWN ERROR</span>\n                </div>\n                <div id=\"kiosk-id-container\">\n                    <svg style=\"fill:#4caf50;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\"\n                        viewBox=\"0 0 24 24\">\n                        <path d=\"M0 0h24v24H0z\" fill=\"none\" />\n                        <path\n                            d=\"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z\" />\n                    </svg>\n                    <br>\n                    <h2>Your aman bill reference is</h2>\n                    <h1 id=\"kiosk-id\">FAILED TO OBTAIN BILL ID</h1>\n                    <h3>Please go to the nearest Aman oulet, ask for \"Madfouaat Motanouea Accept\" and provide your bill\n                        reference.</h3>\n                </div>\n                <div id=\"kiosk-powered-by\">\n                    <small>Powered by</small>\n                    <a href=\"//weaccept.co\" target=\"_blank\">\n                        <img src=\"https://accept.paymobsolutions.com/static/base/img/accept_blue.png\" />\n                    </a>\n                </div>\n            </div>\n        </div>\n        <!-- /ACCEPT -->\n\n        <div class=\"checkout-agreements-block\">\n            <!-- ko foreach: $parent.getRegion('before-place-order') -->\n            <!-- ko template: getTemplate() --><!-- /ko -->\n            <!--/ko-->\n        </div>\n\n        <div class=\"actions-toolbar\">\n            <div class=\"primary\">\n                <button class=\"action primary checkout\" type=\"submit\" data-bind=\"\n                        click: placeOrder,\n                        attr: {title: $t('Next')},\n                        css: {disabled: !isPlaceOrderActionAllowed()},\n                        enable: (getCode() == isChecked())\n                        \" disabled>\n                    <span data-bind=\"i18n: 'Next'\"></span>\n                </button>\n            </div>\n        </div>\n\n    </div>\n</div>","Accept_Payments/template/payment/valuaccept.html":"<!--\n/**\n * Copyright \u00a9 2015 Magento. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"payment-method\" data-bind=\"css: {'_active': (getCode() == isChecked())}\">\n    <div class=\"payment-method-title field choice\">\n        <input type=\"radio\" name=\"payment[method]\" class=\"radio\"\n            data-bind=\"attr: {'id': getCode()}, value: getCode(), checked: isChecked, click: selectPaymentMethod, visible: isRadioButtonVisible()\" />\n        <label class=\"label\" data-bind=\"attr: {'for': getCode()}\">\n            <img class=\"payment-icon\" data-bind=\"\n                attr: {\n                    src: logo() ? logo() : require.toUrl('Accept_Payments/images/valu.png'),\n                    alt: getTitle()\n                }\" />\n            <span data-bind=\"text: getTitle()\"></span>\n        </label>\n    </div>\n    <div class=\"payment-method-content\">\n        <p data-bind=\"html: getInstructions()\"></p>\n        <!-- ko foreach: getRegion('messages') -->\n        <!-- ko template: getTemplate() --><!-- /ko -->\n        <!--/ko-->\n        <!--        <div class=\"payment-method-billing-address\">-->\n        <!--            &lt;!&ndash; ko foreach: $parent.getRegion(getBillingAddressFormName()) &ndash;&gt;-->\n        <!--            &lt;!&ndash; ko template: getTemplate() &ndash;&gt;&lt;!&ndash; /ko &ndash;&gt;-->\n        <!--            &lt;!&ndash;/ko&ndash;&gt;-->\n        <!--        </div>-->\n\n        <!-- ACCEPT -->\n        <style>\n            .payment-icon {\n                width: 17%;\n            }\n\n            #valuaccept-container {\n                background: rgba(0, 0, 0, 0.35);\n                position: fixed;\n                display: none;\n                top: 0;\n                left: 0;\n                width: 100%;\n                height: 100%;\n                overflow: auto;\n                z-index: 99;\n                color: #ffffff;\n            }\n\n            #valuaccept-container .inner-page div {\n                display: none;\n            }\n\n            #valuaccept-container svg {\n                display: block;\n                height: auto;\n                width: 250px;\n                max-width: 90%;\n                margin: 0 auto;\n                background: #ffffff;\n                border-radius: 50%;\n            }\n\n            #valuaccept-container .inner-page {\n                background: rgba(0, 0, 0, 0.85);\n                height: 100%;\n                width: 100%;\n                text-align: center;\n                position: fixed;\n                top: 0;\n                left: 0;\n                z-index: 999;\n                overflow: auto;\n            }\n\n            #valuaccept-iframe-container {\n                overflow-y: scroll !important;\n                -webkit-overflow-scrolling: touch !important;\n                height: 400px;\n            }\n\n            #valuaccept-iframe-container iframe {\n                border: none;\n                z-index: 999999999;\n                width: 100%;\n                overflow: auto;\n            }\n        </style>\n        <div id=\"valuaccept-container\">\n            <div class=\"inner-page\">\n                <div id=\"valuaccept-errors\">\n                    <svg style=\"fill:#e91e63;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\"\n                        viewBox=\"0 0 24 24\">\n                        <path d=\"M0 0h24v24H0z\" fill=\"none\" />\n                        <path\n                            d=\"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z\" />\n                    </svg>\n                    <br>\n                    <span class=\"errors\">UKNOWN ERROR</span>\n                </div>\n                <div id=\"valuaccept-iframe-container\"></div>\n            </div>\n        </div>\n        <!-- /ACCEPT -->\n\n        <div class=\"checkout-agreements-block\">\n            <!-- ko foreach: $parent.getRegion('before-place-order') -->\n            <!-- ko template: getTemplate() --><!-- /ko -->\n            <!--/ko-->\n        </div>\n\n        <div class=\"actions-toolbar\">\n            <div class=\"primary\">\n                <button class=\"action primary checkout\" type=\"submit\" data-bind=\"\n                        click: placeOrder,\n                        attr: {title: $t('Next')},\n                        css: {disabled: !isPlaceOrderActionAllowed()},\n                        enable: (getCode() == isChecked())\n                        \" disabled>\n                    <span data-bind=\"i18n: 'Next'\"></span>\n                </button>\n            </div>\n        </div>\n\n    </div>\n</div>","Accept_Payments/template/payment/premium.html":"<!--\n/**\n * Copyright \u00a9 2015 Magento. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"payment-method\" data-bind=\"css: {'_active': (getCode() == isChecked())}\">\n    <div class=\"payment-method-title field choice\">\n        <input type=\"radio\" name=\"payment[method]\" class=\"radio\"\n            data-bind=\"attr: {'id': getCode()}, value: getCode(), checked: isChecked, click: selectPaymentMethod, visible: isRadioButtonVisible()\" />\n        <label class=\"label\" data-bind=\"attr: {'for': getCode()}\">\n            <img class=\"payment-icon\" data-bind=\"\n                attr: {\n                    src: logo() ? logo() : require.toUrl('Accept_Payments/images/premium.png'),\n                    alt: getTitle()\n                }\" />\n            <span data-bind=\"text: getTitle()\"></span>\n        </label>\n    </div>\n    <div class=\"payment-method-content\">\n        <p data-bind=\"html: getInstructions()\"></p>\n        <!-- ko foreach: getRegion('messages') -->\n        <!-- ko template: getTemplate() --><!-- /ko -->\n        <!--/ko-->\n        <!--        <div class=\"payment-method-billing-address\">-->\n        <!--            &lt;!&ndash; ko foreach: $parent.getRegion(getBillingAddressFormName()) &ndash;&gt;-->\n        <!--            &lt;!&ndash; ko template: getTemplate() &ndash;&gt;&lt;!&ndash; /ko &ndash;&gt;-->\n        <!--            &lt;!&ndash;/ko&ndash;&gt;-->\n        <!--        </div>-->\n\n        <!-- ACCEPT -->\n        <style>\n            .payment-icon {\n                width: 17%;\n            }\n            #premium-container {\n                background: rgba(0, 0, 0, 0.35);\n                position: fixed;\n                display: none;\n                top: 0;\n                left: 0;\n                width: 100%;\n                height: 100%;\n                overflow: auto;\n                z-index: 99;\n                color: #ffffff;\n            }\n\n            #premium-container .inner-page div {\n                display: none;\n            }\n\n            #premium-container svg {\n                display: block;\n                height: auto;\n                width: 250px;\n                max-width: 90%;\n                margin: 0 auto;\n                background: #ffffff;\n                border-radius: 50%;\n            }\n\n            #premium-container .inner-page {\n                background: rgba(0, 0, 0, 0.85);\n                height: 100%;\n                width: 100%;\n                text-align: center;\n                position: fixed;\n                top: 0;\n                left: 0;\n                z-index: 999;\n                overflow: auto;\n            }\n\n            #premium-iframes-container {\n                overflow-y: scroll !important;\n                -webkit-overflow-scrolling: touch !important;\n                height: 400px;\n            }\n\n            #premium-iframes-container iframe {\n                border: none;\n                z-index: 999999999;\n                width: 100%;\n                overflow: auto;\n            }\n\n            #premium-container #premium-iframes-container li {\n                text-align: left;\n                cursor: pointer;\n            }\n\n            .premium-card-option svg {\n                display: inline-block !important;\n                width: 24px !important;\n                vertical-align: middle !important;\n                margin-left: 1rem !important;\n            }\n\n            .premium-card-option.active svg {\n                fill: #4caf50;\n            }\n\n            .spinner {\n                position: absolute;\n                left: 5%;\n                bottom: 5%;\n                width: 25px;\n                height: 25px;\n                padding: 0;\n                margin: 0;\n                border-radius: 50%;\n                border: 5px solid transparent;\n                -webkit-animation: spin 500ms linear infinite;\n                animation: spin 500ms linear infinite;\n                z-index: 1000;\n            }\n\n            .spinner.default {\n                border-top: 5px solid #01AEF0;\n                border-bottom: 5px solid #01AEF0;\n            }\n\n            .spinner.stop {\n                -webkit-animation: spin 1500ms ease-in-out infinite;\n                animation: spin 1500ms ease-in-out infinite;\n                border-top: 5px solid #4caf50;\n                border-bottom: 5px solid #4caf50;\n            }\n\n            @-webkit-keyframes spin {\n                0% {\n                    -webkit-transform: rotate(0deg);\n                }\n\n                100% {\n                    -webkit-transform: rotate(360deg);\n                }\n            }\n\n            @keyframes spin {\n                0% {\n                    transform: rotate(0deg);\n                }\n\n                100% {\n                    transform: rotate(360deg);\n                }\n            }\n        </style>\n        <div id=\"premium-container\">\n            <span class=\"spinner default\"></span>\n            <div class=\"inner-page\">\n                <div id=\"premium-errors\">\n                    <svg style=\"fill:#e91e63;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\"\n                        viewBox=\"0 0 24 24\">\n                        <path d=\"M0 0h24v24H0z\" fill=\"none\" />\n                        <path\n                            d=\"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z\" />\n                    </svg>\n                    <br>\n                    <span class=\"errors\">UKNOWN ERROR</span>\n                </div>\n                <div id=\"premium-iframes-container\"></div>\n            </div>\n        </div>\n        <!-- /ACCEPT -->\n\n        <div class=\"checkout-agreements-block\">\n            <!-- ko foreach: $parent.getRegion('before-place-order') -->\n            <!-- ko template: getTemplate() --><!-- /ko -->\n            <!--/ko-->\n        </div>\n\n        <div class=\"actions-toolbar\">\n            <div class=\"primary\">\n                <button class=\"action primary checkout\" type=\"submit\" data-bind=\"\n                        click: placeOrder,\n                        attr: {title: $t('Next')},\n                        css: {disabled: !isPlaceOrderActionAllowed()},\n                        enable: (getCode() == isChecked())\n                        \" disabled>\n                    <span data-bind=\"i18n: 'Next'\"></span>\n                </button>\n            </div>\n        </div>\n\n    </div>\n</div>","Accept_Payments/template/payment/getgo.html":"<!--\n/**\n * Copyright \u00a9 2015 Magento. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"payment-method\" data-bind=\"css: {'_active': (getCode() == isChecked())}\">\n    <div class=\"payment-method-title field choice\">\n        <input type=\"radio\" name=\"payment[method]\" class=\"radio\"\n            data-bind=\"attr: {'id': getCode()}, value: getCode(), checked: isChecked, click: selectPaymentMethod, visible: isRadioButtonVisible()\" />\n        <label class=\"label\" data-bind=\"attr: {'for': getCode()}\">\n            <img class=\"payment-icon\" data-bind=\"\n                attr: {\n                    src: logo() ? logo() : require.toUrl('Accept_Payments/images/getgo.png'),\n                    alt: getTitle()\n                }\" />\n            <span data-bind=\"text: getTitle()\"></span>\n        </label>\n    </div>\n    <div class=\"payment-method-content\">\n        <p data-bind=\"html: getInstructions()\"></p>\n        <!-- ko foreach: getRegion('messages') -->\n        <!-- ko template: getTemplate() --><!-- /ko -->\n        <!--/ko-->\n        <!--        <div class=\"payment-method-billing-address\">-->\n        <!--            &lt;!&ndash; ko foreach: $parent.getRegion(getBillingAddressFormName()) &ndash;&gt;-->\n        <!--            &lt;!&ndash; ko template: getTemplate() &ndash;&gt;&lt;!&ndash; /ko &ndash;&gt;-->\n        <!--            &lt;!&ndash;/ko&ndash;&gt;-->\n        <!--        </div>-->\n\n        <!-- ACCEPT -->\n        <style>\n            .payment-icon {\n                width: 17%;\n            }\n\n            #getgo-container {\n                background: rgba(0, 0, 0, 0.35);\n                position: fixed;\n                display: none;\n                top: 0;\n                left: 0;\n                width: 100%;\n                height: 100%;\n                overflow: auto;\n                z-index: 99;\n                color: #ffffff;\n            }\n\n            #getgo-container .inner-page div {\n                display: none;\n            }\n\n            #getgo-container svg {\n                display: block;\n                height: auto;\n                width: 250px;\n                max-width: 90%;\n                margin: 0 auto;\n                background: #ffffff;\n                border-radius: 50%;\n            }\n\n            #getgo-container .inner-page {\n                background: rgba(0, 0, 0, 0.85);\n                height: 100%;\n                width: 100%;\n                text-align: center;\n                position: fixed;\n                top: 0;\n                left: 0;\n                z-index: 999;\n                overflow: auto;\n            }\n\n            #getgo-iframes-container {\n                overflow-y: scroll !important;\n                -webkit-overflow-scrolling: touch !important;\n                height: 400px;\n            }\n\n            #getgo-iframes-container iframe {\n                border: none;\n                z-index: 999999999;\n                width: 100%;\n                overflow: auto;\n            }\n\n            #getgo-container #getgo-iframes-container li {\n                text-align: left;\n                cursor: pointer;\n            }\n\n            .getgo-card-option svg {\n                display: inline-block !important;\n                width: 24px !important;\n                vertical-align: middle !important;\n                margin-left: 1rem !important;\n            }\n\n            .getgo-card-option.active svg {\n                fill: #4caf50;\n            }\n\n            .spinner {\n                position: absolute;\n                left: 5%;\n                bottom: 5%;\n                width: 25px;\n                height: 25px;\n                padding: 0;\n                margin: 0;\n                border-radius: 50%;\n                border: 5px solid transparent;\n                -webkit-animation: spin 500ms linear infinite;\n                animation: spin 500ms linear infinite;\n                z-index: 1000;\n            }\n\n            .spinner.default {\n                border-top: 5px solid #01AEF0;\n                border-bottom: 5px solid #01AEF0;\n            }\n\n            .spinner.stop {\n                -webkit-animation: spin 1500ms ease-in-out infinite;\n                animation: spin 1500ms ease-in-out infinite;\n                border-top: 5px solid #4caf50;\n                border-bottom: 5px solid #4caf50;\n            }\n\n            @-webkit-keyframes spin {\n                0% {\n                    -webkit-transform: rotate(0deg);\n                }\n\n                100% {\n                    -webkit-transform: rotate(360deg);\n                }\n            }\n\n            @keyframes spin {\n                0% {\n                    transform: rotate(0deg);\n                }\n\n                100% {\n                    transform: rotate(360deg);\n                }\n            }\n        </style>\n        <div id=\"getgo-container\">\n            <span class=\"spinner default\"></span>\n            <div class=\"inner-page\">\n                <div id=\"getgo-errors\">\n                    <svg style=\"fill:#e91e63;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\"\n                        viewBox=\"0 0 24 24\">\n                        <path d=\"M0 0h24v24H0z\" fill=\"none\" />\n                        <path\n                            d=\"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z\" />\n                    </svg>\n                    <br>\n                    <span class=\"errors\">UKNOWN ERROR</span>\n                </div>\n                <div id=\"getgo-iframes-container\"></div>\n            </div>\n        </div>\n        <!-- /ACCEPT -->\n\n        <div class=\"checkout-agreements-block\">\n            <!-- ko foreach: $parent.getRegion('before-place-order') -->\n            <!-- ko template: getTemplate() --><!-- /ko -->\n            <!--/ko-->\n        </div>\n\n        <div class=\"actions-toolbar\">\n            <div class=\"primary\">\n                <button class=\"action primary checkout\" type=\"submit\" data-bind=\"\n                        click: placeOrder,\n                        attr: {title: $t('Next')},\n                        css: {disabled: !isPlaceOrderActionAllowed()},\n                        enable: (getCode() == isChecked())\n                        \" disabled>\n                    <span data-bind=\"i18n: 'Next'\"></span>\n                </button>\n            </div>\n        </div>\n\n    </div>\n</div>","Accept_Payments/template/payment/ios.html":"<!--\n/**\n * Copyright \u00a9 2015 Magento. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"payment-method\" data-bind=\"css: {'_active': (getCode() == isChecked())}\">\n    <div class=\"payment-method-title field choice\">\n        <input type=\"radio\" name=\"payment[method]\" class=\"radio\"\n            data-bind=\"attr: {'id': getCode()}, value: getCode(), checked: isChecked, click: selectPaymentMethod, visible: isRadioButtonVisible()\" />\n        <label class=\"label\" data-bind=\"attr: {'for': getCode()}\">\n            <img data-bind=\"if: logo , attr: {src: logo(), alt: getTitle()}\" class=\"payment-icon\" />\n            <span data-bind=\"text: getTitle()\"></span>\n        </label>\n    </div>\n    <div class=\"payment-method-content\">\n        <p data-bind=\"html: getInstructions()\"></p>\n        <!-- ko foreach: getRegion('messages') -->\n        <!-- ko template: getTemplate() --><!-- /ko -->\n        <!--/ko-->\n        <!--        <div class=\"payment-method-billing-address\">-->\n        <!--            &lt;!&ndash; ko foreach: $parent.getRegion(getBillingAddressFormName()) &ndash;&gt;-->\n        <!--            &lt;!&ndash; ko template: getTemplate() &ndash;&gt;&lt;!&ndash; /ko &ndash;&gt;-->\n        <!--            &lt;!&ndash;/ko&ndash;&gt;-->\n        <!--        </div>-->\n\n        <!-- ACCEPT -->\n        <style>\n            #ios-container {\n                background: rgba(0, 0, 0, 0.35);\n                position: fixed;\n                display: none;\n                top: 0;\n                left: 0;\n                width: 100%;\n                height: 100%;\n                overflow: auto;\n                z-index: 99;\n                color: #ffffff;\n            }\n\n            #ios-container .inner-page div {\n                display: none;\n            }\n\n            #ios-container svg {\n                display: block;\n                height: auto;\n                width: 250px;\n                max-width: 90%;\n                margin: 0 auto;\n                background: #ffffff;\n                border-radius: 50%;\n            }\n\n            #ios-container .inner-page {\n                background: rgba(0, 0, 0, 0.85);\n                height: 100%;\n                width: 100%;\n                text-align: center;\n                position: fixed;\n                top: 0;\n                left: 0;\n                z-index: 999;\n                overflow: auto;\n            }\n\n            #ios-iframes-container {\n                overflow-y: scroll !important;\n                -webkit-overflow-scrolling: touch !important;\n                height: 400px;\n            }\n\n            #ios-iframes-container iframe {\n                border: none;\n                z-index: 999999999;\n                width: 100%;\n                overflow: auto;\n            }\n\n            #ios-container #ios-iframes-container li {\n                text-align: left;\n                cursor: pointer;\n            }\n\n            .ios-card-option svg {\n                display: inline-block !important;\n                width: 24px !important;\n                vertical-align: middle !important;\n                margin-left: 1rem !important;\n            }\n\n            .ios-card-option.active svg {\n                fill: #4caf50;\n            }\n\n            .spinner {\n                position: absolute;\n                left: 5%;\n                bottom: 5%;\n                width: 25px;\n                height: 25px;\n                padding: 0;\n                margin: 0;\n                border-radius: 50%;\n                border: 5px solid transparent;\n                -webkit-animation: spin 500ms linear infinite;\n                animation: spin 500ms linear infinite;\n                z-index: 1000;\n            }\n\n            .spinner.default {\n                border-top: 5px solid #01AEF0;\n                border-bottom: 5px solid #01AEF0;\n            }\n\n            .spinner.stop {\n                -webkit-animation: spin 1500ms ease-in-out infinite;\n                animation: spin 1500ms ease-in-out infinite;\n                border-top: 5px solid #4caf50;\n                border-bottom: 5px solid #4caf50;\n            }\n\n            @-webkit-keyframes spin {\n                0% {\n                    -webkit-transform: rotate(0deg);\n                }\n\n                100% {\n                    -webkit-transform: rotate(360deg);\n                }\n            }\n\n            @keyframes spin {\n                0% {\n                    transform: rotate(0deg);\n                }\n\n                100% {\n                    transform: rotate(360deg);\n                }\n            }\n        </style>\n        <div id=\"ios-container\">\n            <span class=\"spinner default\"></span>\n            <div class=\"inner-page\">\n                <div id=\"ios-errors\">\n                    <svg style=\"fill:#e91e63;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\"\n                        viewBox=\"0 0 24 24\">\n                        <path d=\"M0 0h24v24H0z\" fill=\"none\" />\n                        <path\n                            d=\"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z\" />\n                    </svg>\n                    <br>\n                    <span class=\"errors\">UKNOWN ERROR</span>\n                </div>\n                <div id=\"ios-iframes-container\"></div>\n            </div>\n        </div>\n        <!-- /ACCEPT -->\n\n        <div class=\"checkout-agreements-block\">\n            <!-- ko foreach: $parent.getRegion('before-place-order') -->\n            <!-- ko template: getTemplate() --><!-- /ko -->\n            <!--/ko-->\n        </div>\n\n        <div class=\"actions-toolbar\">\n            <div class=\"primary\">\n                <button class=\"action primary checkout\" type=\"submit\" data-bind=\"\n                        click: placeOrder,\n                        attr: {title: $t('Next')},\n                        css: {disabled: !isPlaceOrderActionAllowed()},\n                        enable: (getCode() == isChecked())\n                        \" disabled>\n                    <span data-bind=\"i18n: 'Next'\"></span>\n                </button>\n            </div>\n        </div>\n\n    </div>\n</div>","Accept_Payments/template/payment/forsa.html":"<!--\r\n/**\r\n * Copyright \u00a9 2015 Magento. All rights reserved.\r\n * See COPYING.txt for license details.\r\n */\r\n-->\r\n<div class=\"payment-method\" data-bind=\"css: {'_active': (getCode() == isChecked())}\">\r\n    <div class=\"payment-method-title field choice\">\r\n        <input type=\"radio\" name=\"payment[method]\" class=\"radio\"\r\n            data-bind=\"attr: {'id': getCode()}, value: getCode(), checked: isChecked, click: selectPaymentMethod, visible: isRadioButtonVisible()\" />\r\n        <label class=\"label\" data-bind=\"attr: {'for': getCode()}\">\r\n            <img class=\"payment-icon\" data-bind=\"\r\n                attr: {\r\n                    src: logo() ? logo() : require.toUrl('Accept_Payments/images/forsa.png'),\r\n                    alt: getTitle()\r\n                }\" />\r\n            <span data-bind=\"text: getTitle()\"></span>\r\n        </label>\r\n    </div>\r\n    <div class=\"payment-method-content\">\r\n        <p data-bind=\"html: getInstructions()\"></p>\r\n        <!-- ko foreach: getRegion('messages') -->\r\n        <!-- ko template: getTemplate() --><!-- /ko -->\r\n        <!--/ko-->\r\n        <!--        <div class=\"payment-method-billing-address\">-->\r\n        <!--            &lt;!&ndash; ko foreach: $parent.getRegion(getBillingAddressFormName()) &ndash;&gt;-->\r\n        <!--            &lt;!&ndash; ko template: getTemplate() &ndash;&gt;&lt;!&ndash; /ko &ndash;&gt;-->\r\n        <!--            &lt;!&ndash;/ko&ndash;&gt;-->\r\n        <!--        </div>-->\r\n\r\n        <!-- ACCEPT -->\r\n        <style>\r\n            .payment-icon {\r\n                width: 17%;\r\n            }\r\n\r\n            #forsa-container {\r\n                background: rgba(0, 0, 0, 0.35);\r\n                position: fixed;\r\n                display: none;\r\n                top: 0;\r\n                left: 0;\r\n                width: 100%;\r\n                height: 100%;\r\n                overflow: auto;\r\n                z-index: 99;\r\n                color: #ffffff;\r\n            }\r\n\r\n            #forsa-container .inner-page div {\r\n                display: none;\r\n            }\r\n\r\n            #forsa-container svg {\r\n                display: block;\r\n                height: auto;\r\n                width: 250px;\r\n                max-width: 90%;\r\n                margin: 0 auto;\r\n                background: #ffffff;\r\n                border-radius: 50%;\r\n            }\r\n\r\n            #forsa-container .inner-page {\r\n                background: rgba(0, 0, 0, 0.85);\r\n                height: 100%;\r\n                width: 100%;\r\n                text-align: center;\r\n                position: fixed;\r\n                top: 0;\r\n                left: 0;\r\n                z-index: 999;\r\n                overflow: auto;\r\n            }\r\n\r\n            #forsa-iframes-container {\r\n                overflow-y: scroll !important;\r\n                -webkit-overflow-scrolling: touch !important;\r\n                height: 400px;\r\n            }\r\n\r\n            #forsa-iframes-container iframe {\r\n                border: none;\r\n                z-index: 999999999;\r\n                width: 100%;\r\n                overflow: auto;\r\n            }\r\n\r\n            #forsa-container #forsa-iframes-container li {\r\n                text-align: left;\r\n                cursor: pointer;\r\n            }\r\n\r\n            .forsa-card-option svg {\r\n                display: inline-block !important;\r\n                width: 24px !important;\r\n                vertical-align: middle !important;\r\n                margin-left: 1rem !important;\r\n            }\r\n\r\n            .forsa-card-option.active svg {\r\n                fill: #4caf50;\r\n            }\r\n\r\n            .spinner {\r\n                position: absolute;\r\n                left: 5%;\r\n                bottom: 5%;\r\n                width: 25px;\r\n                height: 25px;\r\n                padding: 0;\r\n                margin: 0;\r\n                border-radius: 50%;\r\n                border: 5px solid transparent;\r\n                -webkit-animation: spin 500ms linear infinite;\r\n                animation: spin 500ms linear infinite;\r\n                z-index: 1000;\r\n            }\r\n\r\n            .spinner.default {\r\n                border-top: 5px solid #01AEF0;\r\n                border-bottom: 5px solid #01AEF0;\r\n            }\r\n\r\n            .spinner.stop {\r\n                -webkit-animation: spin 1500ms ease-in-out infinite;\r\n                animation: spin 1500ms ease-in-out infinite;\r\n                border-top: 5px solid #4caf50;\r\n                border-bottom: 5px solid #4caf50;\r\n            }\r\n\r\n            @-webkit-keyframes spin {\r\n                0% {\r\n                    -webkit-transform: rotate(0deg);\r\n                }\r\n\r\n                100% {\r\n                    -webkit-transform: rotate(360deg);\r\n                }\r\n            }\r\n\r\n            @keyframes spin {\r\n                0% {\r\n                    transform: rotate(0deg);\r\n                }\r\n\r\n                100% {\r\n                    transform: rotate(360deg);\r\n                }\r\n            }\r\n        </style>\r\n        <div id=\"forsa-container\">\r\n            <span class=\"spinner default\"></span>\r\n            <div class=\"inner-page\">\r\n                <div id=\"forsa-errors\">\r\n                    <svg style=\"fill:#e91e63;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\"\r\n                        viewBox=\"0 0 24 24\">\r\n                        <path d=\"M0 0h24v24H0z\" fill=\"none\" />\r\n                        <path\r\n                            d=\"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z\" />\r\n                    </svg>\r\n                    <br>\r\n                    <span class=\"errors\">UKNOWN ERROR</span>\r\n                </div>\r\n                <div id=\"forsa-iframes-container\"></div>\r\n            </div>\r\n        </div>\r\n        <!-- /ACCEPT -->\r\n\r\n        <div class=\"checkout-agreements-block\">\r\n            <!-- ko foreach: $parent.getRegion('before-place-order') -->\r\n            <!-- ko template: getTemplate() --><!-- /ko -->\r\n            <!--/ko-->\r\n        </div>\r\n\r\n        <div class=\"actions-toolbar\">\r\n            <div class=\"primary\">\r\n                <button class=\"action primary checkout\" type=\"submit\" data-bind=\"\r\n                        click: placeOrder,\r\n                        attr: {title: $t('Next')},\r\n                        css: {disabled: !isPlaceOrderActionAllowed()},\r\n                        enable: (getCode() == isChecked())\r\n                        \" disabled>\r\n                    <span data-bind=\"i18n: 'Next'\"></span>\r\n                </button>\r\n            </div>\r\n        </div>\r\n\r\n    </div>\r\n</div>","Accept_Payments/template/payment/sympl.html":"<!--\n/**\n * Copyright \u00a9 2015 Magento. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"payment-method\" data-bind=\"css: {'_active': (getCode() == isChecked())}\">\n    <div class=\"payment-method-title field choice\">\n        <input type=\"radio\" name=\"payment[method]\" class=\"radio\"\n            data-bind=\"attr: {'id': getCode()}, value: getCode(), checked: isChecked, click: selectPaymentMethod, visible: isRadioButtonVisible()\" />\n        <label class=\"label\" data-bind=\"attr: {'for': getCode()}\">\n            <img class=\"payment-icon\" data-bind=\"\n                attr: {\n                    src: logo() ? logo() : require.toUrl('Accept_Payments/images/Sympl.png'),\n                    alt: getTitle()\n                }\" />\n            <span data-bind=\"text: getTitle()\"></span>\n        </label>\n    </div>\n    <div class=\"payment-method-content\">\n        <p data-bind=\"html: getInstructions()\"></p>\n        <!-- ko foreach: getRegion('messages') -->\n        <!-- ko template: getTemplate() --><!-- /ko -->\n        <!--/ko-->\n        <!--        <div class=\"payment-method-billing-address\">-->\n        <!--            &lt;!&ndash; ko foreach: $parent.getRegion(getBillingAddressFormName()) &ndash;&gt;-->\n        <!--            &lt;!&ndash; ko template: getTemplate() &ndash;&gt;&lt;!&ndash; /ko &ndash;&gt;-->\n        <!--            &lt;!&ndash;/ko&ndash;&gt;-->\n        <!--        </div>-->\n\n        <!-- ACCEPT -->\n        <style>\n            .payment-icon {\n                width: 17%;\n            }\n\n            #sympl-container {\n                background: rgba(0, 0, 0, 0.35);\n                position: fixed;\n                display: none;\n                top: 0;\n                left: 0;\n                width: 100%;\n                height: 100%;\n                overflow: auto;\n                z-index: 99;\n                color: #ffffff;\n            }\n\n            #sympl-container .inner-page div {\n                display: none;\n            }\n\n            #sympl-container svg {\n                display: block;\n                height: auto;\n                width: 250px;\n                max-width: 90%;\n                margin: 0 auto;\n                background: #ffffff;\n                border-radius: 50%;\n            }\n\n            #sympl-container .inner-page {\n                background: rgba(0, 0, 0, 0.85);\n                height: 100%;\n                width: 100%;\n                text-align: center;\n                position: fixed;\n                top: 0;\n                left: 0;\n                z-index: 999;\n                overflow: auto;\n            }\n\n            #sympl-iframes-container {\n                overflow-y: scroll !important;\n                -webkit-overflow-scrolling: touch !important;\n                height: 400px;\n            }\n\n            #sympl-iframes-container iframe {\n                border: none;\n                z-index: 999999999;\n                width: 100%;\n                overflow: auto;\n            }\n\n            #sympl-container #sympl-iframes-container li {\n                text-align: left;\n                cursor: pointer;\n            }\n\n            .sympl-card-option svg {\n                display: inline-block !important;\n                width: 24px !important;\n                vertical-align: middle !important;\n                margin-left: 1rem !important;\n            }\n\n            .sympl-card-option.active svg {\n                fill: #4caf50;\n            }\n\n            .spinner {\n                position: absolute;\n                left: 5%;\n                bottom: 5%;\n                width: 25px;\n                height: 25px;\n                padding: 0;\n                margin: 0;\n                border-radius: 50%;\n                border: 5px solid transparent;\n                -webkit-animation: spin 500ms linear infinite;\n                animation: spin 500ms linear infinite;\n                z-index: 1000;\n            }\n\n            .spinner.default {\n                border-top: 5px solid #01AEF0;\n                border-bottom: 5px solid #01AEF0;\n            }\n\n            .spinner.stop {\n                -webkit-animation: spin 1500ms ease-in-out infinite;\n                animation: spin 1500ms ease-in-out infinite;\n                border-top: 5px solid #4caf50;\n                border-bottom: 5px solid #4caf50;\n            }\n\n            @-webkit-keyframes spin {\n                0% {\n                    -webkit-transform: rotate(0deg);\n                }\n\n                100% {\n                    -webkit-transform: rotate(360deg);\n                }\n            }\n\n            @keyframes spin {\n                0% {\n                    transform: rotate(0deg);\n                }\n\n                100% {\n                    transform: rotate(360deg);\n                }\n            }\n        </style>\n        <div id=\"sympl-container\">\n            <span class=\"spinner default\"></span>\n            <div class=\"inner-page\">\n                <div id=\"sympl-errors\">\n                    <svg style=\"fill:#e91e63;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\"\n                        viewBox=\"0 0 24 24\">\n                        <path d=\"M0 0h24v24H0z\" fill=\"none\" />\n                        <path\n                            d=\"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z\" />\n                    </svg>\n                    <br>\n                    <span class=\"errors\">UKNOWN ERROR</span>\n                </div>\n                <div id=\"sympl-iframes-container\"></div>\n            </div>\n        </div>\n        <!-- /ACCEPT -->\n\n        <div class=\"checkout-agreements-block\">\n            <!-- ko foreach: $parent.getRegion('before-place-order') -->\n            <!-- ko template: getTemplate() --><!-- /ko -->\n            <!--/ko-->\n        </div>\n\n        <div class=\"actions-toolbar\">\n            <div class=\"primary\">\n                <button class=\"action primary checkout\" type=\"submit\" data-bind=\"\n                        click: placeOrder,\n                        attr: {title: $t('Next')},\n                        css: {disabled: !isPlaceOrderActionAllowed()},\n                        enable: (getCode() == isChecked())\n                        \" disabled>\n                    <span data-bind=\"i18n: 'Next'\"></span>\n                </button>\n            </div>\n        </div>\n\n    </div>\n</div>","Accept_Payments/template/payment/contact.html":"<!--\r\n/**\r\n * Copyright \u00a9 2015 Magento. All rights reserved.\r\n * See COPYING.txt for license details.\r\n */\r\n-->\r\n<div class=\"payment-method\" data-bind=\"css: {'_active': (getCode() == isChecked())}\">\r\n    <div class=\"payment-method-title field choice\">\r\n        <input type=\"radio\" name=\"payment[method]\" class=\"radio\"\r\n            data-bind=\"attr: {'id': getCode()}, value: getCode(), checked: isChecked, click: selectPaymentMethod, visible: isRadioButtonVisible()\" />\r\n        <label data-bind=\"attr: {'for': getCode()}\" class=\"label\">\r\n            <img class=\"payment-icon\" data-bind=\"\r\n                attr: {\r\n                    src: logo() ? logo() : require.toUrl('Accept_Payments/images/contact.jpg'),\r\n                    alt: getTitle()\r\n                }\" />\r\n            <span data-bind=\"text: getTitle()\"></span></label>\r\n    </div>\r\n    <div class=\"payment-method-content\">\r\n        <!-- ko foreach: getRegion('messages') -->\r\n        <!-- ko template: getTemplate() --><!-- /ko -->\r\n        <!--/ko-->\r\n        <div class=\"payment-method-billing-address\">\r\n            <!-- ko foreach: $parent.getRegion(getBillingAddressFormName()) -->\r\n            <!-- ko template: getTemplate() --><!-- /ko -->\r\n            <!--/ko-->\r\n        </div>\r\n\r\n        <!-- ACCEPT -->\r\n        <style>\r\n            .payment-icon {\r\n                width: 17%;\r\n            }\r\n\r\n            #contact-container {\r\n                background: rgba(0, 0, 0, 0.35);\r\n                position: fixed;\r\n                display: none;\r\n                top: 0;\r\n                left: 0;\r\n                width: 100%;\r\n                height: 100%;\r\n                overflow: auto;\r\n                z-index: 99;\r\n                color: #ffffff;\r\n            }\r\n\r\n            #contact-container .inner-page div {\r\n                display: none;\r\n            }\r\n\r\n            #contact-container svg {\r\n                display: block;\r\n                height: auto;\r\n                width: 250px;\r\n                max-width: 90%;\r\n                margin: 0 auto;\r\n                background: #ffffff;\r\n                border-radius: 50%;\r\n            }\r\n\r\n            #contact-container .inner-page {\r\n                background: rgba(0, 0, 0, 0.85);\r\n                height: 100%;\r\n                width: 100%;\r\n                text-align: center;\r\n                position: fixed;\r\n                top: 0;\r\n                left: 0;\r\n                z-index: 999;\r\n                overflow: auto;\r\n            }\r\n\r\n            #contact-iframes-container {\r\n                overflow-y: scroll !important;\r\n                -webkit-overflow-scrolling: touch !important;\r\n                height: 400px;\r\n            }\r\n\r\n            #contact-iframes-container iframe {\r\n                border: none;\r\n                z-index: 999999999;\r\n                width: 100%;\r\n                overflow: auto;\r\n            }\r\n\r\n            #contact-container #contact-iframes-container li {\r\n                text-align: left;\r\n                cursor: pointer;\r\n            }\r\n\r\n            .contact-card-option svg {\r\n                display: inline-block !important;\r\n                width: 24px !important;\r\n                vertical-align: middle !important;\r\n                margin-left: 1rem !important;\r\n            }\r\n\r\n            .contact-card-option.active svg {\r\n                fill: #4caf50;\r\n            }\r\n\r\n            .spinner {\r\n                position: absolute;\r\n                left: 5%;\r\n                bottom: 5%;\r\n                width: 25px;\r\n                height: 25px;\r\n                padding: 0;\r\n                margin: 0;\r\n                border-radius: 50%;\r\n                border: 5px solid transparent;\r\n                -webkit-animation: spin 500ms linear infinite;\r\n                animation: spin 500ms linear infinite;\r\n                z-index: 1000;\r\n            }\r\n\r\n            .spinner.default {\r\n                border-top: 5px solid #01AEF0;\r\n                border-bottom: 5px solid #01AEF0;\r\n            }\r\n\r\n            .spinner.stop {\r\n                -webkit-animation: spin 1500ms ease-in-out infinite;\r\n                animation: spin 1500ms ease-in-out infinite;\r\n                border-top: 5px solid #4caf50;\r\n                border-bottom: 5px solid #4caf50;\r\n            }\r\n\r\n            @-webkit-keyframes spin {\r\n                0% {\r\n                    -webkit-transform: rotate(0deg);\r\n                }\r\n\r\n                100% {\r\n                    -webkit-transform: rotate(360deg);\r\n                }\r\n            }\r\n\r\n            @keyframes spin {\r\n                0% {\r\n                    transform: rotate(0deg);\r\n                }\r\n\r\n                100% {\r\n                    transform: rotate(360deg);\r\n                }\r\n            }\r\n        </style>\r\n        <div id=\"contact-container\">\r\n            <span class=\"spinner default\"></span>\r\n            <div class=\"inner-page\">\r\n                <div id=\"contact-errors\">\r\n                    <svg style=\"fill:#e91e63;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\"\r\n                        viewBox=\"0 0 24 24\">\r\n                        <path d=\"M0 0h24v24H0z\" fill=\"none\" />\r\n                        <path\r\n                            d=\"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z\" />\r\n                    </svg>\r\n                    <br>\r\n                    <span class=\"errors\">UKNOWN ERROR</span>\r\n                </div>\r\n                <div id=\"contact-iframes-container\"></div>\r\n            </div>\r\n        </div>\r\n        <!-- /ACCEPT -->\r\n\r\n        <div class=\"checkout-agreements-block\">\r\n            <!-- ko foreach: $parent.getRegion('before-place-order') -->\r\n            <!-- ko template: getTemplate() --><!-- /ko -->\r\n            <!--/ko-->\r\n        </div>\r\n\r\n        <div class=\"actions-toolbar\">\r\n            <div class=\"primary\">\r\n                <button class=\"action primary checkout\" type=\"submit\" data-bind=\"\r\n                        click: placeOrder,\r\n                        attr: {title: $t('Next')},\r\n                        css: {disabled: !isPlaceOrderActionAllowed()},\r\n                        enable: (getCode() == isChecked())\r\n                        \" disabled>\r\n                    <span data-bind=\"i18n: 'Next'\"></span>\r\n                </button>\r\n            </div>\r\n        </div>\r\n\r\n    </div>\r\n</div>","Accept_Payments/template/payment/installments.html":"<!--\n/**\n * Copyright \u00a9 2015 Magento. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"payment-method\" data-bind=\"css: {'_active': (getCode() == isChecked())}\">\n    <div class=\"payment-method-title field choice\">\n        <input type=\"radio\" name=\"payment[method]\" class=\"radio\"\n            data-bind=\"attr: {'id': getCode()}, value: getCode(), checked: isChecked, click: selectPaymentMethod, visible: isRadioButtonVisible()\" />\n        <label class=\"label\" data-bind=\"attr: {'for': getCode()}\">\n            <img class=\"payment-icon\" data-bind=\"\n                attr: {\n                    src: logo() ? logo() : require.toUrl('Accept_Payments/images/installments.jpg'),\n                    alt: getTitle()\n                }\" />\n            <span data-bind=\"text: getTitle()\"></span>\n        </label>\n    </div>\n    <div class=\"payment-method-content\">\n        <p data-bind=\"html: getInstructions()\"></p>\n        <!-- ko foreach: getRegion('messages') -->\n        <!-- ko template: getTemplate() --><!-- /ko -->\n        <!--/ko-->\n        <!--        <div class=\"payment-method-billing-address\">-->\n        <!--            &lt;!&ndash; ko foreach: $parent.getRegion(getBillingAddressFormName()) &ndash;&gt;-->\n        <!--            &lt;!&ndash; ko template: getTemplate() &ndash;&gt;&lt;!&ndash; /ko &ndash;&gt;-->\n        <!--            &lt;!&ndash;/ko&ndash;&gt;-->\n        <!--        </div>-->\n\n        <!-- ACCEPT -->\n        <style>\n            .payment-icon {\n                width: 17%;\n            }\n\n            #installments-container {\n                background: rgba(0, 0, 0, 0.35);\n                position: fixed;\n                display: none;\n                top: 0;\n                left: 0;\n                width: 100%;\n                height: 100%;\n                overflow: auto;\n                z-index: 99;\n                color: #ffffff;\n            }\n\n            #installments-container .inner-page div {\n                display: none;\n            }\n\n            #installments-container svg {\n                display: block;\n                height: auto;\n                width: 250px;\n                max-width: 90%;\n                margin: 0 auto;\n                background: #ffffff;\n                border-radius: 50%;\n            }\n\n            #installments-container .inner-page {\n                background: rgba(0, 0, 0, 0.85);\n                height: 100%;\n                width: 100%;\n                text-align: center;\n                position: fixed;\n                top: 0;\n                left: 0;\n                z-index: 999;\n                overflow: auto;\n            }\n\n            #installments-iframes-container {\n                overflow-y: scroll !important;\n                -webkit-overflow-scrolling: touch !important;\n                height: 400px;\n            }\n\n            #installments-iframes-container iframe {\n                border: none;\n                z-index: 999999999;\n                width: 100%;\n                overflow: auto;\n            }\n\n            #installments-container #installments-iframes-container li {\n                text-align: left;\n                cursor: pointer;\n            }\n\n            .installments-card-option svg {\n                display: inline-block !important;\n                width: 24px !important;\n                vertical-align: middle !important;\n                margin-left: 1rem !important;\n            }\n\n            .installments-card-option.active svg {\n                fill: #4caf50;\n            }\n\n            .spinner {\n                position: absolute;\n                left: 5%;\n                bottom: 5%;\n                width: 25px;\n                height: 25px;\n                padding: 0;\n                margin: 0;\n                border-radius: 50%;\n                border: 5px solid transparent;\n                -webkit-animation: spin 500ms linear infinite;\n                animation: spin 500ms linear infinite;\n                z-index: 1000;\n            }\n\n            .spinner.default {\n                border-top: 5px solid #01AEF0;\n                border-bottom: 5px solid #01AEF0;\n            }\n\n            .spinner.stop {\n                -webkit-animation: spin 1500ms ease-in-out infinite;\n                animation: spin 1500ms ease-in-out infinite;\n                border-top: 5px solid #4caf50;\n                border-bottom: 5px solid #4caf50;\n            }\n\n            @-webkit-keyframes spin {\n                0% {\n                    -webkit-transform: rotate(0deg);\n                }\n\n                100% {\n                    -webkit-transform: rotate(360deg);\n                }\n            }\n\n            @keyframes spin {\n                0% {\n                    transform: rotate(0deg);\n                }\n\n                100% {\n                    transform: rotate(360deg);\n                }\n            }\n        </style>\n        <div id=\"installments-container\">\n            <span class=\"spinner default\"></span>\n            <div class=\"inner-page\">\n                <div id=\"installments-errors\">\n                    <svg style=\"fill:#e91e63;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\"\n                        viewBox=\"0 0 24 24\">\n                        <path d=\"M0 0h24v24H0z\" fill=\"none\" />\n                        <path\n                            d=\"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z\" />\n                    </svg>\n                    <br>\n                    <span class=\"errors\">UKNOWN ERROR</span>\n                </div>\n                <div id=\"installments-iframes-container\"></div>\n            </div>\n        </div>\n        <!-- /ACCEPT -->\n\n        <div class=\"checkout-agreements-block\">\n            <!-- ko foreach: $parent.getRegion('before-place-order') -->\n            <!-- ko template: getTemplate() --><!-- /ko -->\n            <!--/ko-->\n        </div>\n\n        <div class=\"actions-toolbar\">\n            <div class=\"primary\">\n                <button class=\"action primary checkout\" type=\"submit\" data-bind=\"\n                        click: placeOrder,\n                        attr: {title: $t('Next')},\n                        css: {disabled: !isPlaceOrderActionAllowed()},\n                        enable: (getCode() == isChecked())\n                        \" disabled>\n                    <span data-bind=\"i18n: 'Next'\"></span>\n                </button>\n            </div>\n        </div>\n\n    </div>\n</div>","Accept_Payments/template/payment/souhoola.html":"<!--\n/**\n * Copyright \u00a9 2015 Magento. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"payment-method\" data-bind=\"css: {'_active': (getCode() == isChecked())}\">\n    <div class=\"payment-method-title field choice\">\n        <input type=\"radio\" name=\"payment[method]\" class=\"radio\"\n            data-bind=\"attr: {'id': getCode()}, value: getCode(), checked: isChecked, click: selectPaymentMethod, visible: isRadioButtonVisible()\" />\n        <label class=\"label\" data-bind=\"attr: {'for': getCode()}\">\n            <img class=\"payment-icon\" data-bind=\"\n                attr: {\n                    src: logo() ? logo() : require.toUrl('Accept_Payments/images/Souhoola.png'),\n                    alt: getTitle()\n                }\" />\n            <span data-bind=\"text: getTitle()\"></span>\n        </label>\n    </div>\n    <div class=\"payment-method-content\">\n        <p data-bind=\"html: getInstructions()\"></p>\n        <!-- ko foreach: getRegion('messages') -->\n        <!-- ko template: getTemplate() --><!-- /ko -->\n        <!--/ko-->\n        <!--        <div class=\"payment-method-billing-address\">-->\n        <!--            &lt;!&ndash; ko foreach: $parent.getRegion(getBillingAddressFormName()) &ndash;&gt;-->\n        <!--            &lt;!&ndash; ko template: getTemplate() &ndash;&gt;&lt;!&ndash; /ko &ndash;&gt;-->\n        <!--            &lt;!&ndash;/ko&ndash;&gt;-->\n        <!--        </div>-->\n\n        <!-- ACCEPT -->\n        <style>\n            .payment-icon {\n                width: 17%;\n            }\n\n            #souhoola-container {\n                background: rgba(0, 0, 0, 0.35);\n                position: fixed;\n                display: none;\n                top: 0;\n                left: 0;\n                width: 100%;\n                height: 100%;\n                overflow: auto;\n                z-index: 99;\n                color: #ffffff;\n            }\n\n            #souhoola-container .inner-page div {\n                display: none;\n            }\n\n            #souhoola-container svg {\n                display: block;\n                height: auto;\n                width: 250px;\n                max-width: 90%;\n                margin: 0 auto;\n                background: #ffffff;\n                border-radius: 50%;\n            }\n\n            #souhoola-container .inner-page {\n                background: rgba(0, 0, 0, 0.85);\n                height: 100%;\n                width: 100%;\n                text-align: center;\n                position: fixed;\n                top: 0;\n                left: 0;\n                z-index: 999;\n                overflow: auto;\n            }\n\n            #souhoola-iframes-container {\n                overflow-y: scroll !important;\n                -webkit-overflow-scrolling: touch !important;\n                height: 400px;\n            }\n\n            #souhoola-iframes-container iframe {\n                border: none;\n                z-index: 999999999;\n                width: 100%;\n                overflow: auto;\n            }\n\n            #souhoola-container #souhoola-iframes-container li {\n                text-align: left;\n                cursor: pointer;\n            }\n\n            .souhoola-card-option svg {\n                display: inline-block !important;\n                width: 24px !important;\n                vertical-align: middle !important;\n                margin-left: 1rem !important;\n            }\n\n            .souhoola-card-option.active svg {\n                fill: #4caf50;\n            }\n\n            .spinner {\n                position: absolute;\n                left: 5%;\n                bottom: 5%;\n                width: 25px;\n                height: 25px;\n                padding: 0;\n                margin: 0;\n                border-radius: 50%;\n                border: 5px solid transparent;\n                -webkit-animation: spin 500ms linear infinite;\n                animation: spin 500ms linear infinite;\n                z-index: 1000;\n            }\n\n            .spinner.default {\n                border-top: 5px solid #01AEF0;\n                border-bottom: 5px solid #01AEF0;\n            }\n\n            .spinner.stop {\n                -webkit-animation: spin 1500ms ease-in-out infinite;\n                animation: spin 1500ms ease-in-out infinite;\n                border-top: 5px solid #4caf50;\n                border-bottom: 5px solid #4caf50;\n            }\n\n            @-webkit-keyframes spin {\n                0% {\n                    -webkit-transform: rotate(0deg);\n                }\n\n                100% {\n                    -webkit-transform: rotate(360deg);\n                }\n            }\n\n            @keyframes spin {\n                0% {\n                    transform: rotate(0deg);\n                }\n\n                100% {\n                    transform: rotate(360deg);\n                }\n            }\n        </style>\n        <div id=\"souhoola-container\">\n            <span class=\"spinner default\"></span>\n            <div class=\"inner-page\">\n                <div id=\"souhoola-errors\">\n                    <svg style=\"fill:#e91e63;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\"\n                        viewBox=\"0 0 24 24\">\n                        <path d=\"M0 0h24v24H0z\" fill=\"none\" />\n                        <path\n                            d=\"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z\" />\n                    </svg>\n                    <br>\n                    <span class=\"errors\">UKNOWN ERROR</span>\n                </div>\n                <div id=\"souhoola-iframes-container\"></div>\n            </div>\n        </div>\n        <!-- /ACCEPT -->\n\n        <div class=\"checkout-agreements-block\">\n            <!-- ko foreach: $parent.getRegion('before-place-order') -->\n            <!-- ko template: getTemplate() --><!-- /ko -->\n            <!--/ko-->\n        </div>\n\n        <div class=\"actions-toolbar\">\n            <div class=\"primary\">\n                <button class=\"action primary checkout\" type=\"submit\" data-bind=\"\n                        click: placeOrder,\n                        attr: {title: $t('Next')},\n                        css: {disabled: !isPlaceOrderActionAllowed()},\n                        enable: (getCode() == isChecked())\n                        \" disabled>\n                    <span data-bind=\"i18n: 'Next'\"></span>\n                </button>\n            </div>\n        </div>\n\n    </div>\n</div>","Magento_Shipping/template/checkout/shipping/shipping-policy.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"shipping-policy-block field-tooltip\"\n     data-bind=\"visible: config.isEnabled\">\n    <span class=\"field-tooltip-action\"\n          tabindex=\"0\"\n          data-toggle=\"dropdown\"\n          data-bind=\"mageInit: {'dropdown':{'activeClass': '_active'}}\">\n        <!-- ko i18n: 'See our Shipping Policy' --><!-- /ko -->\n    </span>\n    <div class=\"field-tooltip-content\"\n         data-target=\"dropdown\">\n        <span data-bind=\"html: config.shippingPolicyContent\"></span>\n    </div>\n</div>\n","Magento_ConfigurableProduct/template/product/minimal_price.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<span class=\"price-container\" css=\"getAdjustmentCssClasses($row())\">\n    <ifnot args=\"hasSpecialPrice($row())\">\n        <if args=\"useLinkForAsLowAs\">\n            <a attr=\"href: $row().url\"\n               class=\"minimal-price-link\"\n               html=\"getMinimalPriceUnsanitizedHtml($row())\"></a>\n        </if>\n\n        <ifnot args=\"useLinkForAsLowAs\">\n            <span class=\"price-wrapper price-including-tax\">\n                      <span class=\"minimal-price-link\"\n                            html=\"getMinimalPriceUnsanitizedHtml($row())\"></span>\n            </span>\n        </ifnot>\n\n        <each args=\"data: getAdjustments(), as: '$adj'\">\n            <render args=\"$adj.getBody()\"></render>\n        </each>\n    </ifnot>\n</span>\n","Magento_SalesRule/template/cart/totals/discount.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<!-- ko if: isDisplayed() -->\n<tr class=\"totals\">\n    <th colspan=\"1\" style=\"\" class=\"mark\" scope=\"row\">\n        <span class=\"title\" data-bind=\"text: getTitle()\"></span>\n        <span class=\"discount coupon\" data-bind=\"text: getCouponLabel()\"></span>\n    </th>\n    <td class=\"amount\" data-bind=\"attr: {'data-th': title}\">\n        <span><span class=\"price\" data-bind=\"text: getValue()\"></span></span>\n    </td>\n</tr>\n<!-- /ko -->\n","Magento_SalesRule/template/summary/discount.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<!-- ko if: isDisplayed() -->\n<tr class=\"totals discount\">\n    <th class=\"mark\" scope=\"row\">\n        <span class=\"title\" data-bind=\"text: getTitle()\"></span>\n        <span class=\"discount coupon\" data-bind=\"text: getCouponCode()\"></span>\n    </th>\n    <td class=\"amount\">\n        <span class=\"price\" data-bind=\"text: getValue(), attr: {'data-th': name}\"></span>\n    </td>\n</tr>\n<!-- /ko -->\n","Magento_SalesRule/template/payment/discount.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"payment-option _collapsible opc-payment-additional discount-code\"\n     data-bind=\"mageInit: {'collapsible':{'openedState': '_active'}}\">\n    <div class=\"payment-option-title field choice\" data-role=\"title\">\n        <span class=\"action action-toggle\" id=\"block-discount-heading\" role=\"heading\" aria-level=\"2\">\n            <!-- ko i18n: 'Apply Discount Code'--><!-- /ko -->\n        </span>\n    </div>\n    <div class=\"payment-option-content\" data-role=\"content\">\n        <!-- ko foreach: getRegion('messages') -->\n        <!-- ko template: getTemplate() --><!-- /ko -->\n        <!--/ko-->\n        <form class=\"form form-discount\" id=\"discount-form\">\n            <div class=\"payment-option-inner\">\n                <div class=\"field\">\n                    <label class=\"label\" for=\"discount-code\">\n                        <span data-bind=\"i18n: 'Enter discount code'\"></span>\n                    </label>\n                    <div class=\"control\">\n                        <input class=\"input-text\"\n                               type=\"text\"\n                               id=\"discount-code\"\n                               name=\"discount_code\"\n                               data-validate=\"{'required-entry':true}\"\n                               data-bind=\"value: couponCode, attr:{disabled:isApplied() , placeholder: $t('Enter discount code')} \" />\n                    </div>\n                </div>\n            </div>\n            <div class=\"actions-toolbar\">\n                <div class=\"primary\">\n                    <!-- ko ifnot: isApplied() -->\n                        <button class=\"action action-apply\" type=\"submit\" data-bind=\"'value': $t('Apply Discount'), click: apply\">\n                            <span><!-- ko i18n: 'Apply Discount'--><!-- /ko --></span>\n                        </button>\n                    <!-- /ko -->\n                    <!-- ko if: isApplied() -->\n                        <button class=\"action action-cancel\" type=\"submit\" data-bind=\"'value': $t('Cancel'), click: cancel\">\n                            <span><!-- ko i18n: 'Cancel coupon'--><!-- /ko --></span>\n                        </button>\n                    <!-- /ko -->\n                </div>\n                <!-- ko foreach: getRegion('captcha') -->\n                <!-- ko template: getTemplate() --><!-- /ko -->\n                <!-- /ko -->\n            </div>\n        </form>\n    </div>\n</div>\n","MGS_OSCheckout/template/payment.html":"<div id=\"payment\" role=\"presentation\" class=\"checkout-payment-method\">\r\n    <div class=\"step-title\" data-role=\"title\">\r\n        <span class=\"number\">3</span>\r\n        <!--        <i class=\"fa fa-credit-card\"></i>-->\r\n        <!-- ko if: window.checkoutConfig.mageConfig.isUsedMaterialDesign -->\r\n        <span class=\"fa-stack fa-2x\">\r\n                <i class=\"fa fa-circle fa-stack-2x\"></i>\r\n            <!-- ko if: !!Number(window.checkoutConfig.quoteData.is_virtual) -->\r\n                    <strong class=\"fa-stack-1x fa-stack-text fa-inverse\">2</strong>\r\n            <!-- /ko -->\r\n            <!-- ko ifnot: !!Number(window.checkoutConfig.quoteData.is_virtual) -->\r\n                    <strong class=\"fa-stack-1x fa-stack-text fa-inverse\">3</strong>\r\n            <!-- /ko -->\r\n            </span>\r\n        <!-- /ko -->\r\n        <span data-bind=\"i18n: 'Payment Methods'\"></span>\r\n    </div>\r\n    <div id=\"checkout-step-payment\"\r\n         class=\"step-content\"\r\n         data-role=\"content\"\r\n         role=\"tabpanel\"\r\n         aria-hidden=\"false\"\r\n         data-bind=\"blockLoader: isLoading\">\r\n\r\n        <form id=\"co-payment-form\" class=\"form payments\" novalidate=\"novalidate\">\r\n            <input data-bind='attr: {value: getFormKey()}' type=\"hidden\" name=\"form_key\"/>\r\n            <fieldset class=\"fieldset\">\r\n                <legend class=\"legend\">\r\n                    <span data-bind=\"i18n: 'Payment Information'\"></span>\r\n                </legend>\r\n                <!-- ko foreach: getRegion('beforeMethods') -->\r\n                <!-- ko template: getTemplate() --><!-- /ko -->\r\n                <!-- /ko -->\r\n                <div id=\"checkout-payment-method-load\" class=\"opc-payment\"\r\n                     data-bind=\"visible: isPaymentMethodsAvailable\">\r\n                    <!-- ko foreach: getRegion('payment-methods-list') -->\r\n                    <!-- ko template: getTemplate() --><!-- /ko -->\r\n                    <!-- /ko -->\r\n                </div>\r\n                <div class=\"no-quotes-block\" data-bind=\"visible: isPaymentMethodsAvailable() == false\">\r\n                    <!-- ko i18n: 'No Payment method available.'--><!-- /ko -->\r\n                </div>\r\n                <!-- ko if: errorValidationMessage().length > 0 -->\r\n                <div class=\"message notice\">\r\n                    <span><!-- ko i18n: errorValidationMessage()--><!-- /ko --></span>\r\n                </div>\r\n                <!-- /ko -->\r\n            </fieldset>\r\n        </form>\r\n\r\n    </div>\r\n</div>\r\n","MGS_OSCheckout/template/order-comment.html":"<div class=\"order-comment-block\">\r\n    <label class=\"label\">\r\n        <span data-bind=\"i18n: 'Order comment'\"></span>\r\n    </label>\r\n    <div class=\"control\">\r\n        <textarea class=\"admin__control-textarea\" data-bind=\"\r\n            value: orderCommentValue,\r\n            attr: {\r\n                name: 'order_comment',\r\n                placeholder: $t('Order Comment') ,\r\n            }\"\r\n        ></textarea>\r\n    </div>\r\n</div>","MGS_OSCheckout/template/oscheckout-layout-3-columns.html":"<!-- ko foreach: getRegion('estimation') -->\r\n<!-- ko template: getTemplate() --><!-- /ko -->\r\n<!--/ko-->\r\n\r\n<!-- ko foreach: getRegion('authentication') -->\r\n<!-- ko template: getTemplate() --><!-- /ko -->\r\n<!--/ko-->\r\n\r\n<!-- ko foreach: getRegion('messages') -->\r\n<!-- ko template: getTemplate() --><!-- /ko -->\r\n<!--/ko-->\r\n\r\n<div class=\"opc-wrapper one-step-checkout-wrapper\">\r\n    <div class=\"opc mgs-onestepcheckout-container\" id=\"checkoutSteps\">\r\n        <div class=\"shipping-step opc-shipping-address\">\r\n            <div class=\"opc-shipping-address-box\">\r\n                <div class=\"checkout-shippingAddress\" data-bind=\"scope: 'checkout.steps.shipping-step.shippingAddress'\">\r\n                    <!-- ko template: getAddressTemplate() --><!-- /ko -->\r\n                </div>\r\n            </div>\r\n        </div>\r\n        <div class=\"checkout-step-address shipping-payment-method\">\r\n            <div class=\"shipping-payment-box\">\r\n                <div class=\"checkout-shipping-step hoverable\" data-bind=\"scope: 'checkout.steps.shipping-step'\">\r\n                    <!-- ko template: getTemplate() --><!-- /ko -->\r\n                </div>\r\n\r\n                <div class=\"checkout-billing-step hoverable\" data-bind=\"scope: 'checkout.steps.billing-step'\">\r\n                    <!-- ko template: getTemplate() --><!-- /ko -->\r\n                </div>\r\n\r\n            </div>\r\n        </div>\r\n\r\n    </div>\r\n</div>\r\n<div class=\"mgs-checkout-step-sidebar\" data-bind=\"scope: 'checkout.sidebar'\">\r\n    <!-- ko template: getTemplate() --><!-- /ko -->\r\n</div>\r\n","MGS_OSCheckout/template/shipping-method.html":"<!--Shipping method template-->\r\n<div id=\"opc-shipping_method\"\r\n     class=\"checkout-shipping-method\"\r\n     data-bind=\"fadeVisible: visible()\"\r\n     role=\"presentation\">\r\n    <div class=\"checkout-shipping-method\">\r\n        <div class=\"step-title\" data-role=\"title\">\r\n            <span class=\"number\">2</span>\r\n            <!--            <i class=\"fa fa-truck\"></i>-->\r\n            <!-- ko if: window.checkoutConfig.mageConfig.isUsedMaterialDesign -->\r\n            <span class=\"fa-stack fa-2x\">\r\n                    <i class=\"fa fa-circle fa-stack-2x\"></i>\r\n                    <strong class=\"fa-stack-1x fa-stack-text fa-inverse\">2</strong>\r\n                </span>\r\n            <!-- /ko -->\r\n            <span data-bind=\"i18n: 'Shipping Methods'\"></span>\r\n        </div>\r\n        <!-- ko foreach: getRegion('before-shipping-method-form') -->\r\n        <!-- ko template: getTemplate() --><!-- /ko -->\r\n        <!-- /ko -->\r\n\r\n        <div id=\"checkout-step-shipping_method\"\r\n             class=\"step-content\"\r\n             data-role=\"content\"\r\n             role=\"tabpanel\"\r\n             aria-hidden=\"false\"\r\n             data-bind=\"blockLoader: isLoading\">\r\n            <!-- ko if: rates().length  -->\r\n            <form class=\"form methods-shipping\" id=\"co-shipping-method-form\" data-bind=\"submit: setShippingInformation\"\r\n                  novalidate=\"novalidate\">\r\n                <div id=\"checkout-shipping-method-load\">\r\n                    <table class=\"table-checkout-shipping-method\">\r\n                        <thead>\r\n                        <tr class=\"row\">\r\n                            <th class=\"col col-method\" data-bind=\"i18n: 'Select Method'\"></th>\r\n                            <th class=\"col col-price\" data-bind=\"i18n: 'Price'\"></th>\r\n                            <th class=\"col col-method\" data-bind=\"i18n: 'Method Title'\"></th>\r\n                            <th class=\"col col-carrier\" data-bind=\"i18n: 'Carrier Title'\"></th>\r\n                        </tr>\r\n                        </thead>\r\n                        <tbody>\r\n\r\n                        <!--ko foreach: { data: rates(), as: 'method'}-->\r\n                        <tr class=\"row\" data-bind=\"click: $parent.selectShippingMethod, style: {cursor: 'pointer'}\">\r\n                            <td class=\"col col-method\">\r\n                                <!-- ko ifnot: method.error_message -->\r\n                                <!-- ko if: $parent.rates().length == 1 -->\r\n                                <input class=\"radio\"\r\n                                       type=\"radio\"\r\n                                       data-bind=\"attr: {\r\n                                                    checked: $parent.rates().length == 1,\r\n                                                    'value' : method.carrier_code + '_' + method.method_code,\r\n                                                    'id': 's_method_' + method.method_code,\r\n                                                    'aria-labelledby': 'label_method_' + method.method_code + '_' + method.carrier_code + ' ' + 'label_carrier_' + method.method_code + '_' + method.carrier_code\r\n                                                 }\"/>\r\n                                <label></label>\r\n                                <!-- /ko -->\r\n                                <!--ko ifnot: ($parent.rates().length == 1)-->\r\n                                <input type=\"radio\"\r\n                                       data-bind=\"\r\n                                                value: method.carrier_code + '_' + method.method_code,\r\n                                                checked: $parent.isSelected,\r\n                                                attr: {\r\n                                                    'id': 's_method_' + method.carrier_code + '_' + method.method_code,\r\n                                                    'aria-labelledby': 'label_method_' + method.method_code + '_' + method.carrier_code + ' ' + 'label_carrier_' + method.method_code + '_' + method.carrier_code\r\n                                                }\"\r\n                                       class=\"radio\"/>\r\n                                <label></label>\r\n                                <!--/ko-->\r\n                                <!-- /ko -->\r\n                            </td>\r\n                            <td class=\"col col-price\">\r\n                                <!-- ko foreach: $parent.getRegion('price') -->\r\n                                <!-- ko template: getTemplate() --><!-- /ko -->\r\n                                <!-- /ko -->\r\n\r\n                                <!-- TIG PostNL modification start -->\r\n                                <!-- ko if: $parent.isEnableModulePostNL && $parent.isPostNLDeliveryMethod(method) && $parent.PostNLFee() -->\r\n                                + <span data-bind=\"text: $parent.formatPrice($parent.PostNLFee())\"></span>\r\n                                <!-- /ko -->\r\n                                <!-- TIG PostNL modification end -->\r\n                            </td>\r\n\r\n                            <td class=\"col col-method\"\r\n                                data-bind=\"text: method.method_title, attr: {'id': 'label_method_' + method.method_code + '_' + method.carrier_code}\"></td>\r\n\r\n                            <td class=\"col col-carrier\"\r\n                                data-bind=\"text: method.carrier_title, attr: {'id': 'label_carrier_' + method.method_code + '_' + method.carrier_code}\"></td>\r\n                        </tr>\r\n\r\n                        <!-- ko if:  method.error_message -->\r\n                        <tr class=\"row row-error\">\r\n                            <td class=\"col col-error\" colspan=\"4\">\r\n                                <div class=\"message error\">\r\n                                    <div data-bind=\"text: method.error_message\"></div>\r\n                                </div>\r\n                                <span class=\"no-display\">\r\n                                    <input type=\"radio\"\r\n                                           data-bind=\"attr: {'value' : method.method_code, 'id': 's_method_' + method.method_code}\"/>\r\n                                </span>\r\n                            </td>\r\n                        </tr>\r\n                        <!-- /ko -->\r\n\r\n\r\n                        <!-- /ko -->\r\n                        </tbody>\r\n                    </table>\r\n                </div>\r\n\r\n                <!-- ko if: errorValidationMessage().length > 0 -->\r\n                <div class=\"message notice\">\r\n                    <span><!-- ko i18n: errorValidationMessage()--><!-- /ko --></span>\r\n                </div>\r\n                <!-- /ko -->\r\n            </form>\r\n            <div id=\"onepage-checkout-shipping-method-additional-load\">\r\n                <!-- ko foreach: getRegion('shippingAdditional') -->\r\n                <!-- ko template: getTemplate() --><!-- /ko -->\r\n                <!-- /ko -->\r\n            </div>\r\n            <!-- /ko -->\r\n            <!-- ko ifnot: rates().length > 0 -->\r\n            <div class=\"no-quotes-block\"><!-- ko i18n: 'Sorry, no quotes are available for this order at this time'-->\r\n                <!-- /ko --></div><!-- /ko -->\r\n        </div>\r\n    </div>\r\n</div>\r\n","MGS_OSCheckout/template/sidebar.html":"<div id=\"mgs-oscheckout-sidebar\">\r\n    <!-- ko foreach: getRegion('summary') -->\r\n    <!-- ko template: getTemplate() --><!-- /ko -->\r\n    <!--/ko-->\r\n    <div class=\"mgs-oscheckout-shipping-information\">\r\n        <!-- ko foreach: getRegion('shipping-information') -->\r\n        <!-- ko template: getTemplate() --><!-- /ko -->\r\n        <!--/ko-->\r\n    </div>\r\n    <div id=\"mgs-oscheckout-place-order-area\">\r\n        <div class=\"onestepcheckout-addition-content-wrapper\">\r\n            <!-- ko foreach: getRegion('place-order-information-left') -->\r\n            <!-- ko template: getTemplate() --><!-- /ko -->\r\n            <!--/ko-->\r\n        </div>\r\n        <div class=\"onestepcheckout-place-order-wrapper\">\r\n            <!-- ko foreach: getRegion('place-order-information-right') -->\r\n            <!-- ko template: getTemplate() --><!-- /ko -->\r\n            <!--/ko-->\r\n        </div>\r\n    </div>\r\n</div>\r\n","MGS_OSCheckout/template/delivery-time.html":"<div class=\"delivery-time\">\r\n    <div class=\"title\">\r\n        <span data-bind=\"i18n: 'Delivery Date'\"></span>\r\n    </div>\r\n    <div class=\"control\">\r\n        <input type=\"text\" readonly=\"readonly\" data-bind=\"datepicker: true, value: deliveryTimeValue\"\r\n               id=\"onestepcheckout-delivery-time\"/>\r\n        <div class=\"remove-delivery-time\"\r\n             data-bind=\"click:removeDeliveryTime.bind($data),visible: isVisible(), text: 'Remove Date'\"></div>\r\n    </div>\r\n</div>\r\n\r\n","MGS_OSCheckout/template/summary.html":"<div class=\"order-summary hoverable\">\r\n    <div class=\"step-title\" data-role=\"title\">\r\n        <!-- <span class=\"number\">4</span> -->\r\n        <!--\t\t<i class=\"fa fa-check-square\"></i>-->\r\n        <!-- ko if: window.checkoutConfig.mageConfig.isUsedMaterialDesign -->\r\n        <i class=\"fa fa-check-circle\"></i>\r\n        <!-- /ko -->\r\n        <span data-bind=\"i18n: 'Order Summary'\"></span>\r\n    </div>\r\n    <div class=\"opc-block-summary step-content\" data-bind=\"blockLoader: isLoading\">\r\n        <!-- ko foreach: elems() -->\r\n        <!-- ko template: getTemplate() --><!-- /ko -->\r\n        <!-- /ko -->\r\n\r\n        <p class=\"col-wide forgot-item\" data-bind=\"style:{textAlign: 'right'}, visible: false\">\r\n\t\t\t<span>\r\n\t\t\t\t<!-- ko i18n: 'Forgot an item?'--><!-- /ko -->\r\n\t\t\t\t<a data-bind=\"attr: {href: window.checkout.shoppingCartUrl}, i18n: 'Edit your cart'\"></a>\r\n\t\t\t</span>\r\n        </p>\r\n    </div>\r\n</div>\r\n","MGS_OSCheckout/template/form/element/email.html":"<!-- ko foreach: getRegion('amazon-button-region') -->\n<!-- ko template: getTemplate() --><!-- /ko -->\n<!-- /ko -->\n\n\n<!-- ko ifnot: isCustomerLoggedIn() -->\n\n<!-- ko foreach: getRegion('before-login-form') -->\n<!-- ko template: getTemplate() --><!-- /ko -->\n<!-- /ko -->\n<form class=\"form form-login asdasldkaskj\" data-role=\"email-with-possible-login\"\n      data-bind=\"submit:login\"\n      method=\"post\">\n    <fieldset id=\"customer-email-fieldset\" class=\"fieldset\" data-bind=\"blockLoader: isLoading\">\n        <div class=\"field required\">\n            <!-- ko ifnot: window.checkoutConfig.mageConfig.isUsedMaterialDesign -->\n            <label class=\"label\" for=\"customer-email\">\n                <span data-bind=\"i18n: 'Email Address'\"></span>\n\n            </label>\n            <!-- /ko -->\n            <div class=\"control input-field _with-tooltip\">\n                <input class=\"input-text\"\n                       type=\"email\"\n                       data-bind=\"\n                            textInput: email,\n                            hasFocus: emailFocused,\n                            css: hasValue() ,\n                            event: {change: emailHasChanged,blur: hasValue}\"\n                       name=\"username\"\n                       data-validate=\"{required:true, 'validate-email':true}\"\n                       id=\"customer-email\" required/>\n                <!-- ko if: window.checkoutConfig.mageConfig.isUsedMaterialDesign -->\n                <label class=\"label\" for=\"customer-email\">\n                    <span data-bind=\"i18n: 'Email Address'\"></span>\n                    <i class=\"required-entry\">*</i>\n                </label>\n                <div for=\"customer-email\" generated=\"true\" class=\"mage-error\" id=\"customer-email-error\"></div>\n                <!-- /ko -->\n                <!-- ko template: 'ui/form/element/helper/tooltip' --><!-- /ko -->\n\n                <!--<span class=\"note\" data-bind=\"fadeVisible: isPasswordVisible() == false\">&lt;!&ndash; ko i18n: 'You can create an account after checkout.'&ndash;&gt;&lt;!&ndash; /ko &ndash;&gt;</span>-->\n            </div>\n        </div>\n\n        <!--Hidden fields -->\n        <fieldset class=\"fieldset hidden-fields\" data-bind=\"fadeVisible: isPasswordVisible\">\n            <div class=\"field\">\n                <label class=\"label\" for=\"customer-password\">\n                    <span data-bind=\"i18n: 'Password'\"></span>\n                </label>\n                <div class=\"control\">\n                    <input class=\"input-text\"\n                           placeholder=\"optional\"\n                           type=\"password\"\n                           name=\"password\"\n                           id=\"customer-password\"\n                           data-validate=\"{required:true}\" autocomplete=\"off\"/>\n                    <span class=\"note\"\n                          data-bind=\"i18n: 'You already have an account with us. Sign in or continue as guest.'\"></span>\n                </div>\n\n            </div>\n            <!-- ko foreach: getRegion('additional-login-form-fields') -->\n            <!-- ko template: getTemplate() --><!-- /ko -->\n            <!-- /ko -->\n            <div class=\"actions-toolbar\">\n                <input name=\"context\" type=\"hidden\" value=\"checkout\"/>\n                <div class=\"primary\">\n                    <button type=\"submit\" class=\"action login primary\" data-action=\"checkout-method-login\"><span\n                            data-bind=\"i18n: 'Login'\"></span></button>\n                </div>\n                <div class=\"secondary\">\n                    <a class=\"action remind\" data-bind=\"attr: { href: forgotPasswordUrl }\">\n                        <span data-bind=\"i18n: 'Forgot Your Password?'\"></span>\n                    </a>\n                </div>\n            </div>\n        </fieldset>\n        <!--Hidden fields -->\n    </fieldset>\n</form>\n<div class=\"create-account-block\" data-bind=\"fadeVisible: isPasswordVisible() == false\">\n\t<div class=\"create-account-checkbox field choice\" data-bind=\"visible: isCheckboxRegisterVisible\">\n\t\t<input type=\"checkbox\" name=\"create-account-checkbox\"\n\t\t\t   data-bind=\"checked: isRegisterVisible, attr: {id: 'create-account-checkbox'}\"/>\n\t\t<label data-bind=\"attr: {for: 'create-account-checkbox'}\">\n\t\t\t<span data-bind=\"i18n: 'Create account'\"></span>\n\t\t</label>\n\t</div>\n\t<fieldset class=\"fieldset hidden-fields\" data-bind=\"fadeVisible: isRegisterVisible\">\n\t\t<form class=\"form form-create-account\" id=\"create-account-form\">\n\t\t\t<div class=\"field onestepcheckout-password required\">\n\t\t\t\t<!-- ko ifnot: window.checkoutConfig.mageConfig.isUsedMaterialDesign -->\n\t\t\t\t<label for=\"onestepcheckout-password\" class=\"label\"><span\n\t\t\t\t\t\tdata-bind=\"i18n: 'Password'\"></span></label>\n\t\t\t\t<!-- /ko -->\n\t\t\t\t<div class=\"control input-field\">\n\t\t\t\t\t<input type=\"password\" name=\"password\" id=\"onestepcheckout-password\"\n\t\t\t\t\t\t   class=\"input-text\"\n\t\t\t\t\t\t   data-bind=\"\n\t\t\t\t\t\t   attr: {\n\t\t\t\t\t\t\t\t'data-password-min-length': dataPasswordMinLength,\n\t\t\t\t\t\t\t\t'data-password-min-character-sets': dataPasswordMinCharacterSets\n\t\t\t\t\t\t   },\n\t\t\t\t\t\t   event: {change: function(){validate('password')}}\"\n\t\t\t\t\t\t   data-validate=\"{required:true, 'validate-customer-password':true}\"\n\t\t\t\t\t\t   autocomplete=\"off\" required/>\n\t\t\t\t\t<!-- ko if: window.checkoutConfig.mageConfig.isUsedMaterialDesign -->\n\t\t\t\t\t<label for=\"onestepcheckout-password\" class=\"label\"><span data-bind=\"i18n: 'Password'\"></span><i\n\t\t\t\t\t\t\tclass=\"required-entry\">*</i></label>\n\t\t\t\t\t<div for=\"onestepcheckout-password\" generated=\"true\" class=\"mage-error\"\n\t\t\t\t\t\t id=\"onestepcheckout-password-error\"></div>\n\t\t\t\t\t<!-- /ko -->\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class=\"field confirmation required\">\n\t\t\t\t<!-- ko ifnot: window.checkoutConfig.mageConfig.isUsedMaterialDesign -->\n\t\t\t\t<label for=\"onestepcheckout-password-confirmation\" class=\"label\"><span\n\t\t\t\t\t\tdata-bind=\"i18n: 'Confirm Password'\"></span></label>\n\t\t\t\t<!-- /ko -->\n\t\t\t\t<div class=\"control input-field\">\n\t\t\t\t\t<input type=\"password\" name=\"password_confirmation\" id=\"onestepcheckout-password-confirmation\"\n\t\t\t\t\t\t   class=\"input-text\"\n\t\t\t\t\t\t   data-bind=\"event: {change: function(){validate('password-confirmation')}}\"\n\t\t\t\t\t\t   data-validate=\"{required:true, equalTo:'#onestepcheckout-password'}\"\n\t\t\t\t\t\t   autocomplete=\"off\" required/>\n\t\t\t\t\t<!-- ko if: window.checkoutConfig.mageConfig.isUsedMaterialDesign -->\n\t\t\t\t\t<label for=\"onestepcheckout-password-confirmation\" class=\"label\"><span\n\t\t\t\t\t\t\tdata-bind=\"i18n: 'Confirm Password'\"></span><i class=\"required-entry\">*</i></label>\n\t\t\t\t\t<div for=\"onestepcheckout-password-confirmation\" generated=\"true\" class=\"mage-error\"\n\t\t\t\t\t\t id=\"onestepcheckout-password-confirmation-error\"></div>\n\t\t\t\t\t<!-- /ko -->\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</form>\n\t</fieldset>\n</div>\n\n\n<!-- /ko -->\n","MGS_OSCheckout/template/form/element/input.html":"<input class=\"input-text\" type=\"text\" data-bind=\"\r\n    value: value,\r\n    hasFocus: focused,\r\n    attr: {\r\n        name: inputName,\r\n        placeholder: placeholder,\r\n        'aria-describedby': noticeId,\r\n        id: uid,\r\n        disabled: disabled\r\n    }\" required/>\r\n","MGS_OSCheckout/template/form/element/street.html":"<input class=\"input-text\" required type=\"text\" data-bind=\"\r\n    value: value,\r\n    hasFocus: focused,\r\n    attr: {\r\n        name: inputName,\r\n        placeholder: placeholder,\r\n        'aria-describedby': noticeId,\r\n        id: uid,\r\n        disabled: disabled\r\n    },\r\n    css: 'google-auto-complete'\"/>\r\n<i class=\"fa fa-location-arrow onestepcheckout-geolocation\" data-bind=\"attr: {id: uid + '-geolocation'},\"></i>\r\n","MGS_OSCheckout/template/address/shipping-address.html":"<li id=\"shipping\" class=\"checkout-shipping-address\" data-bind=\"fadeVisible: visible()\">\n    <div class=\"step-title\" translate=\"'Shipping Address'\" data-role=\"title\"></div>\n    <div id=\"checkout-step-shipping\"\n         class=\"step-content\"\n         data-role=\"content\">\n\n        <each if=\"!quoteIsVirtual\" args=\"getRegion('customer-email')\" render=\"\" ></each>\n        <each args=\"getRegion('address-list')\" render=\"\" ></each>\n        <each args=\"getRegion('address-list-additional-addresses')\" render=\"\" ></each>\n\n        <!-- Address form pop up -->\n        <if args=\"!isFormInline\">\n            <div class=\"new-address-popup\">\n                <button type=\"button\"\n                        class=\"action action-show-popup\"\n                        click=\"showFormPopUp\"\n                        visible=\"!isNewAddressAdded()\">\n                    <span translate=\"'New Address'\"></span>\n                </button>\n            </div>\n            <div id=\"opc-new-shipping-address\"\n                 visible=\"isFormPopUpVisible()\"\n                 render=\"shippingFormTemplate\"></div>\n        </if>\n\n        <each args=\"getRegion('before-form')\" render=\"\" ></each>\n\n        <!-- Inline address form -->\n        <render if=\"isFormInline\" args=\"shippingFormTemplate\"></render>\n    </div>\n</li>","MGS_OSCheckout/template/address/shipping/form.html":"<form class=\"form form-shipping-address\" id=\"co-shipping-form\"\r\n      data-bind=\"attr: {'data-hasrequired': $t('* Required Fields')}\">\r\n    <!-- ko foreach: getRegion('before-fields') -->\r\n    <!-- ko template: getTemplate() --><!-- /ko -->\r\n    <!--/ko-->\r\n    <div id=\"shipping-new-address-form\" class=\"fieldset address\">\r\n        <!-- ko foreach: getRegion('additional-fieldsets') -->\r\n        <!-- ko template: getTemplate() --><!-- /ko -->\r\n        <!--/ko-->\r\n\r\n        <!-- ko if: (isCustomerLoggedIn) -->\r\n        <div class=\"field choice\" data-bind=\"visible: !isFormInline\">\r\n            <input type=\"checkbox\" class=\"checkbox\" id=\"shipping-save-in-address-book\"\r\n                   data-bind=\"checked: saveInAddressBook\"/>\r\n            <label class=\"label\" for=\"shipping-save-in-address-book\">\r\n                <span data-bind=\"i18n: 'Click here to save the last change'\"></span>\r\n            </label>\r\n        </div>\r\n\r\n        <!-- /ko -->\r\n    </div>\r\n</form>\r\n","MGS_OSCheckout/template/address/shipping/address-renderer/default.html":"<div class=\"shipping-address-item\"\r\n     data-bind=\"css: isSelected() ? 'selected-item' : 'not-selected-item', click: selectAddress\">\r\n    <!-- ko text: address().prefix --><!-- /ko --> <!-- ko text: address().firstname --><!-- /ko -->\r\n    <!-- ko text: address().lastname --><!-- /ko --> <!-- ko text: address().suffix --><!-- /ko --><br/>\r\n    <!-- ko text: address().street --><!-- /ko --><br/>\r\n    <!-- ko text: address().city --><!-- /ko -->, <!-- ko text: address().region --><!-- /ko -->\r\n    <!-- ko text: address().postcode --><!-- /ko --><br/>\r\n    <!-- ko text: getCountryName(address().countryId) --><!-- /ko --><br/>\r\n    <!-- ko text: address().telephone --><!-- /ko --><br/>\r\n    <!-- ko if: (address().isEditable()) -->\r\n    <button type=\"button\"\r\n            class=\"action edit-address-link\"\r\n            data-bind=\"click: editAddress, visible: address().isEditable()\">\r\n        <span data-bind=\"i18n: 'Edit'\"></span>\r\n    </button>\r\n    <!-- /ko -->\r\n</div>\r\n","MGS_OSCheckout/template/address/billing/list.html":"<div class=\"field field-select-billing\">\r\n    <label class=\"label\"><span data-bind=\"i18n: 'Billing Address'\"></span></label>\r\n    <div class=\"control\" data-bind=\"if: (addressOptions.length > 1)\">\r\n        <select class=\"select\" name=\"billing_address_id\" data-bind=\"\r\n        options: addressOptions,\r\n        optionsText: addressOptionsText,\r\n        value: selectedAddress,\r\n        event: {change: onAddressChange(selectedAddress())};\r\n    \"></select>\r\n    </div>\r\n</div>\r\n","MGS_OSCheckout/template/address/billing/actions.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"actions-toolbar\">\n    <div class=\"primary\">\n        <button class=\"action action-update\"\n                type=\"button\"\n                click=\"updateAddress\">\n            <span translate=\"'Update'\"></span>\n        </button>\n        <button class=\"action action-cancel\"\n                type=\"button\"\n                click=\"cancelAddressEdit\"\n                visible=\"canUseCancelBillingAddress()\">\n            <span translate=\"'Cancel'\"></span>\n        </button>\n    </div>\n</div>\n","MGS_OSCheckout/template/address/billing/form.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n\n<div class=\"billing-address-same-as-shipping-block field choice\" data-bind=\"visible: canUseShippingAddress()\">\n    <input type=\"checkbox\" name=\"billing-address-same-as-shipping\"\n        data-bind=\"checked: isAddressSameAsShipping, click: useShippingAddress, attr: {id: 'billing-address-same-as-shipping-' + getCode($parent)}\"\n        checked=\"checked\" />\n    <label data-bind=\"attr: {for: 'billing-address-same-as-shipping-' + getCode($parent)}\"><span\n            data-bind=\"i18n: 'My billing and shipping address are the same'\"></span></label>\n</div>\n\n<div class=\"billing-address-select-payment-method\" style=\"display: none;\">\n    <div class=\"field _required\" style=\"margin-bottom: 10px\">\n        <div class=\"control\">\n            <select class=\"select\" name=\"selectPaymentMethod\" id=\"selectPaymentMethod\" aria-required=\"true\"\n                aria-invalid=\"false\">\n            </select>\n\n        </div>\n\n    </div>\n\n    <div class=\"billing-address-form\" style=\"display:none\">\n        <!-- ko foreach: getRegion('before-fields') -->\n        <!-- ko template: getTemplate() --><!-- /ko -->\n        <!--/ko-->\n        <form data-bind=\"attr: {'data-hasrequired': $t('* Required Fields')}\">\n            <fieldset class=\"fieldset address\" data-form=\"billing-new-address\">\n\n                <!-- ko foreach: getRegion('additional-fieldsets') -->\n                <!-- ko template: getTemplate() --><!-- /ko -->\n                <!--/ko-->\n                <!-- ko if: (isCustomerLoggedIn && customerHasAddresses) -->\n\n                <div class=\"choice field\">\n                    <input type=\"checkbox\" class=\"checkbox\"\n                        data-bind=\"checked: saveInAddressBook, attr: {id: 'billing-save-in-address-book-' + getCode($parent)}\" />\n                    <label class=\"label\" data-bind=\"attr: {for: 'billing-save-in-address-book-' + getCode($parent)}\">\n                        <span data-bind=\"i18n: 'Save in address book'\"></span>\n                    </label>\n                </div>\n                <!-- /ko -->\n            </fieldset>\n        </form>\n    </div>\n    <div class=\"actions-toolbar\">\n        <div class=\"place-order-primary\"\n            style=\"display: flex; align-items: center; margin-top: 10px; justify-content: end;\">\n\n            <button id=\"btn-update-address\" class=\"action primary checkout\" type=\"button\" title=\"Update\"\n                style=\"width: 50%\">\n                <span data-bind=\"i18n: 'Update'\">Update</span>\n            </button>\n        </div>\n    </div>\n</div>","MGS_OSCheckout/template/address/billing/create.html":"<div class=\"create-account-block\" data-bind=\"fadeVisible: isPasswordVisible() == false\">\r\n    <div class=\"create-account-checkbox field choice\" data-bind=\"visible: isCheckboxRegisterVisible\">\r\n        <input type=\"checkbox\" name=\"create-account-checkbox\"\r\n               data-bind=\"checked: isRegisterVisible, attr: {id: 'create-account-checkbox'}\"/>\r\n        <label data-bind=\"attr: {for: 'create-account-checkbox'}\">\r\n            <span data-bind=\"i18n: 'Create account'\"></span>\r\n        </label>\r\n    </div>\r\n    <fieldset class=\"fieldset hidden-fields\" data-bind=\"fadeVisible: isRegisterVisible\">\r\n        <form class=\"form form-create-account\" id=\"create-account-form\">\r\n            <div class=\"field onestepcheckout-password required\">\r\n                <!-- ko ifnot: window.checkoutConfig.mageConfig.isUsedMaterialDesign -->\r\n                <label for=\"onestepcheckout-password\" class=\"label\"><span data-bind=\"i18n: 'Password'\"></span></label>\r\n                <!-- /ko -->\r\n                <div class=\"control input-field\">\r\n                    <input type=\"password\" name=\"password\" id=\"onestepcheckout-password\"\r\n                           class=\"input-text\"\r\n                           data-bind=\"\r\n                               attr: {\r\n                                    'data-password-min-length': dataPasswordMinLength,\r\n                                    'data-password-min-character-sets': dataPasswordMinCharacterSets\r\n                               },\r\n                               event: {change: function(){validate('password')}}\"\r\n                           data-validate=\"{required:true, 'validate-customer-password':true}\"\r\n                           autocomplete=\"off\" required/>\r\n                    <!-- ko if: window.checkoutConfig.mageConfig.isUsedMaterialDesign -->\r\n                    <label for=\"onestepcheckout-password\" class=\"label\"><span data-bind=\"i18n: 'Password'\"></span><i\r\n                            class=\"required-entry\">*</i></label>\r\n                    <div for=\"onestepcheckout-password\" generated=\"true\" class=\"mage-error\"\r\n                         id=\"onestepcheckout-password-error\"></div>\r\n                    <!-- /ko -->\r\n                </div>\r\n            </div>\r\n            <div class=\"field confirmation required\">\r\n                <!-- ko ifnot: window.checkoutConfig.mageConfig.isUsedMaterialDesign -->\r\n                <label for=\"onestepcheckout-password-confirmation\" class=\"label\"><span\r\n                        data-bind=\"i18n: 'Confirm Password'\"></span></label>\r\n                <!-- /ko -->\r\n                <div class=\"control input-field\">\r\n                    <input type=\"password\" name=\"password_confirmation\" id=\"onestepcheckout-password-confirmation\"\r\n                           class=\"input-text\"\r\n                           data-bind=\"event: {change: function(){validate('password-confirmation')}}\"\r\n                           data-validate=\"{required:true, equalTo:'#onestepcheckout-password'}\"\r\n                           autocomplete=\"off\" required/>\r\n                    <!-- ko if: window.checkoutConfig.mageConfig.isUsedMaterialDesign -->\r\n                    <label for=\"onestepcheckout-password-confirmation\" class=\"label\"><span\r\n                            data-bind=\"i18n: 'Confirm Password'\"></span><i class=\"required-entry\">*</i></label>\r\n                    <div for=\"onestepcheckout-password-confirmation\" generated=\"true\" class=\"mage-error\"\r\n                         id=\"onestepcheckout-password-confirmation-error\"></div>\r\n                    <!-- /ko -->\r\n                </div>\r\n            </div>\r\n        </form>\r\n    </fieldset>\r\n</div>\r\n","MGS_OSCheckout/template/address/billing/details.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div if=\"isAddressDetailsVisible() && currentBillingAddress()\" class=\"billing-address-details\">\n    <text args=\"currentBillingAddress().prefix\"></text> <text args=\"currentBillingAddress().firstname\"></text>\n    <text args=\"currentBillingAddress().middlename\"></text>\n    <text args=\"currentBillingAddress().lastname\"></text> <text args=\"currentBillingAddress().suffix\"></text><br/>\n    <text args=\"currentBillingAddress().street.join(', ')\"></text><br/>\n    <text args=\"currentBillingAddress().city \"></text>, <span text=\"currentBillingAddress().region\"></span>\n    <text args=\"currentBillingAddress().postcode\"></text><br/>\n    <text args=\"getCountryName(currentBillingAddress().countryId)\"></text><br/>\n    <a if=\"currentBillingAddress().telephone\" attr=\"'href': 'tel:' + currentBillingAddress().telephone\" text=\"currentBillingAddress().telephone\"></a><br/>\n\n    <each args=\"data: currentBillingAddress().customAttributes, as: 'element'\">\n        <text args=\"$parent.getCustomAttributeLabel(element)\"></text>\n        <br/>\n    </each>\n\n    <button visible=\"!isAddressSameAsShipping()\"\n            type=\"button\"\n            class=\"action action-edit-address\"\n            click=\"editAddress\">\n        <span translate=\"'Edit'\"></span>\n    </button>\n</div>\n\n","MGS_OSCheckout/template/summary/cart-items.html":"<div class=\"block items-in-cart\" data-bind=\"mageInit: {'collapsible':{'openedState': 'active', 'active': true}}\">\r\n    <div class=\"title\" data-role=\"title\" data-bind=\"visible: window.checkoutConfig.mageConfig.isShowItemListToggle\">\r\n        <strong role=\"heading\">\r\n            <span data-bind=\"text: getItems().length\"></span>\r\n            <!-- ko if: getItems().length == 1 -->\r\n            <span data-bind=\"i18n: 'Item in Cart'\"></span>\r\n            <!-- /ko -->\r\n            <!-- ko if: getItems().length > 1 -->\r\n            <span data-bind=\"i18n: 'Items in Cart'\"></span>\r\n            <!-- /ko -->\r\n        </strong>\r\n    </div>\r\n    <div class=\"content minicart-items\" data-role=\"content\">\r\n        <div class=\"minicart-items-wrapper overflowed\">\r\n            <ol class=\"minicart-items\">\r\n                <!-- ko foreach: getItems() -->\r\n                <li class=\"product-item\">\r\n                    <!-- ko foreach: $parent.elems() -->\r\n                    <!-- ko template: getTemplate() --><!-- /ko -->\r\n                    <!-- /ko -->\r\n                </li>\r\n                <!-- /ko -->\r\n            </ol>\r\n        </div>\r\n    </div>\r\n</div>\r\n","MGS_OSCheckout/template/summary/newsletter.html":"<div class=\"checkout-newsletter field choice\">\r\n    <input type=\"checkbox\" name=\"checkbox_newsletter\"\r\n           data-bind=\"checked: isRegisterNewsletter, attr: {id: 'place-order-newsletter'}\"/>\r\n    <label data-bind=\"attr: {for: 'place-order-newsletter'}\"><span\r\n            data-bind=\"i18n: 'Sign Up for Our Newsletter'\"></span></label>\r\n</div>","MGS_OSCheckout/template/summary/item/details.html":"<div class=\"product\">\r\n    <!-- ko foreach: getRegion('before_details') -->\r\n    <!-- ko template: getTemplate() --><!-- /ko -->\r\n    <!-- /ko -->\r\n\r\n    <div class=\"product-item-details\">\r\n        <div class=\"product-item-inner\">\r\n            <div class=\"product-item-name-block\">\r\n                <!-- ko if: getProductUrl($parent) -->\r\n                <a data-bind=\"attr:{href: getProductUrl($parent)}\" target=\"_blank\">\r\n                    <strong class=\"product-item-name\" data-bind=\"text: $parent.name\"></strong>\r\n                </a>\r\n                <!-- /ko -->\r\n                <!-- ko ifnot: getProductUrl($parent)-->\r\n                <strong class=\"product-item-name\" data-bind=\"text: $parent.name\"></strong>\r\n                <!-- /ko -->\r\n                <div class=\"details-qty\">\r\n                    <span class=\"label\"><!-- ko i18n: 'Qty' --><!-- /ko --></span>\r\n                    <div class=\"control\">\r\n                        <div class=\"btn-minus\">\r\n                            <button class=\"button-action minus reduced items\" data-bind=\"click: minusQty\" title=\"Minus\"\r\n                                    style=\"\"></button>\r\n                        </div>\r\n                        <input class=\"item_qty input-text update value\" name=\"item_qty\"\r\n                               data-bind=\"value: getProductQty($parent.item_id), attr: {id: $parent.item_id}, event: {change: changeQty}\"/>\r\n\r\n                        <div class=\"btn-plus\">\r\n                            <button class=\"button-action plus increase items\" data-bind=\"click: plusQty\"\r\n                                    title=\"Plus\"></button>\r\n                        </div>\r\n                    </div>\r\n\r\n                </div>\r\n            </div>\r\n\r\n            <div class=\"subtotal\">\r\n                <!-- ko foreach: getRegion('after_details') -->\r\n                <!-- ko template: getTemplate() --><!-- /ko -->\r\n                <!-- /ko -->\r\n            </div>\r\n        </div>\r\n        <!-- ko if: (JSON.parse($parent.options).length > 0)-->\r\n        <div class=\"product options\" data-bind=\"mageInit: {'collapsible':{'openedState': 'active'}}\">\r\n            <span data-role=\"title\" class=\"toggle\"><!-- ko i18n: 'View Details' --><!-- /ko --></span>\r\n            <div data-role=\"content\" class=\"content\">\r\n                <strong class=\"subtitle\"><!-- ko i18n: 'Options Details' --><!-- /ko --></strong>\r\n                <dl class=\"item-options\">\r\n                    <!--ko foreach: JSON.parse($parent.options)-->\r\n                    <dt class=\"label\" data-bind=\"text: label\"></dt>\r\n                    <!-- ko if: ($data.full_view)-->\r\n                    <dd class=\"values\" data-bind=\"html: full_view\"></dd>\r\n                    <!-- /ko -->\r\n                    <!-- ko ifnot: ($data.full_view)-->\r\n                    <dd class=\"values\" data-bind=\"html: value\"></dd>\r\n                    <!-- /ko -->\r\n                    <!-- /ko -->\r\n                </dl>\r\n            </div>\r\n        </div>\r\n        <!-- /ko -->\r\n        <div class=\"last button-remove\">\r\n            <div class=\"remove-wrapper\">\r\n                <button class=\"button-action remove\" data-bind=\"click:function(){removeItem($parent.item_id)}\"></button>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n\r\n\r\n","MGS_OSCheckout/template/review/place-order.html":"<div class=\"checkout-agreements-block\">\r\n    <form id=\"co-place-order-agreement\" class=\"form\" novalidate=\"novalidate\">\r\n        <!-- ko foreach: getRegion('checkout-agreements') -->\r\n        <!-- ko template: getTemplate() --><!-- /ko -->\r\n        <!--/ko-->\r\n    </form>\r\n</div>\r\n<!-- ko ifnot: visibleBraintreeButton() -->\r\n<div class=\"actions-toolbar\">\r\n    <div class=\"place-order-primary\">\r\n        <button class=\"action primary checkout\"\r\n                type=\"button\"\r\n                data-bind=\"\r\n                click: placeOrder,\r\n                attr: {'title': $t('Place Order')},\r\n                css: {disabled: !isPlaceOrderActionAllowed()}\r\n                \">\r\n            <span data-bind=\"i18n: 'Place Order'\"></span>\r\n        </button>\r\n    </div>\r\n</div>\r\n<!-- /ko -->\r\n<!-- ko if: visibleBraintreeButton() -->\r\n<div class=\"actions-toolbar\">\r\n    <!-- ko if: isBraintreeNewVersion() -->\r\n    <div class=\"payment-method-item braintree-paypal-account\"\r\n         data-bind=\"visible: braintreePaypalModel.isReviewRequired()\">\r\n        <span class=\"payment-method-type\">PayPal</span>\r\n        <span class=\"payment-method-description\" data-bind=\"text: braintreePaypalModel.customerEmail()\"></span>\r\n    </div>\r\n    <div class=\"place-order-primary\">\r\n        <button class=\"action primary checkout\"\r\n                type=\"button\"\r\n                data-bind=\"\r\n                visible: braintreePaypalModel.isReviewRequired(),\r\n                click: brainTreePaypalPlaceOrder,\r\n                attr: {'title': $t('Place Order')},\r\n                enable: (getBraintreePaypalComponent().isActive())\r\n                \">\r\n            <span data-bind=\"i18n: 'Place Order'\"></span>\r\n        </button>\r\n        <button class=\"action primary checkout\"\r\n                type=\"button\"\r\n                data-bind=\"\r\n                visible: !braintreePaypalModel.isReviewRequired(),\r\n                click: brainTreePayWithPayPal,\r\n                attr: {'title': $t(getBraintreePaypalComponent().getButtonTitle())},\r\n                enable: (getBraintreePaypalComponent().isActive())\r\n                \">\r\n            <span data-bind=\"i18n: getBraintreePaypalComponent().getButtonTitle()\"></span>\r\n        </button>\r\n    </div>\r\n    <!-- /ko -->\r\n    <!-- ko ifnot: isBraintreeNewVersion() -->\r\n    <div class=\"place-order-primary\">\r\n        <button data-button=\"place\" data-role=\"review-save\"\r\n                type=\"submit\"\r\n                data-bind=\"attr: {title: $t('Place Order')}, enable: (getBraintreePaypalComponent().isActive()), click: brainTreePayWithPayPal\"\r\n                class=\"action primary checkout\"\r\n                disabled>\r\n            <span data-bind=\"i18n: 'Place Order'\"></span>\r\n        </button>\r\n    </div>\r\n    <!-- /ko -->\r\n</div>\r\n<!-- /ko -->\r\n\r\n\r\n","MGS_OSCheckout/template/review/discount.html":"<div class=\"onestepcheckout-place-order-block checkout-comment-block\">\r\n    <div class=\"field-row\">\r\n        <label for=\"discount-code\" data-bind=\"i18n: 'Apply Discount Code'\"></label>\r\n        <div class=\"payment-option-content\" data-role=\"content\">\r\n            <!-- ko foreach: getRegion('messages') -->\r\n            <!-- ko template: getTemplate() --><!-- /ko -->\r\n            <!--/ko-->\r\n            <form class=\"form form-discount\" id=\"discount-form\"\r\n                  data-bind=\"blockLoader: (typeof isLoading === 'undefined') ? isBlockLoading : isLoading\">\r\n                <div class=\"payment-option-inner\">\r\n                    <div class=\"field\">\r\n                        <div class=\"control\">\r\n                            <input class=\"input-text\"\r\n                                   type=\"text\"\r\n                                   id=\"discount-code\"\r\n                                   name=\"discount_code\"\r\n                                   data-validate=\"{'required-entry':true}\"\r\n                                   data-bind=\"value: couponCode, attr:{placeholder: $t('Enter discount code')} \"/>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"actions-toolbar\">\r\n                    <div class=\"primary\">\r\n                        <!-- ko ifnot: isApplied() -->\r\n                        <button class=\"action action-apply\" type=\"submit\"\r\n                                data-bind=\"'value': $t('Apply Discount'), click: apply\">\r\n                            <span><!-- ko i18n: 'Apply Discount'--><!-- /ko --></span>\r\n                        </button>\r\n                        <!-- /ko -->\r\n                        <!-- ko if: isApplied() -->\r\n                        <button class=\"action action-cancel\" type=\"submit\"\r\n                                data-bind=\"'value': $t('Cancel'), click: cancel\">\r\n                            <span><!-- ko i18n: 'Cancel coupon'--><!-- /ko --></span>\r\n                        </button>\r\n                        <!-- /ko -->\r\n                    </div>\r\n                </div>\r\n            </form>\r\n\r\n        </div>\r\n    </div>\r\n</div>\r\n","MGS_OSCheckout/template/review/comment.html":"<div class=\"onestepcheckout-place-order-block checkout-comment-block\">\r\n    <div class=\"field-row\">\r\n        <label for=\"comments\" data-bind=\"i18n: 'Delivery Comment'\"></label>\r\n        <div class=\"input-box\">\r\n            <textarea name=\"comments\" id=\"comments\" rows=\"2\" data-bind=\"value: commentValue\"></textarea>\r\n        </div>\r\n    </div>\r\n</div>\r\n","MGS_OSCheckout/template/review/addition.html":"<!-- ko if: elems().length > 0 -->\r\n<div class=\"onestepcheckout-place-order-block checkout-addition-block\">\r\n    <!-- ko foreach: elems() -->\r\n    <!-- ko template: getTemplate() --><!-- /ko -->\r\n    <!-- /ko -->\r\n</div>\r\n<!-- /ko -->\r\n","MGS_OSCheckout/template/payment/discount.html":"<div class=\"payment-option _collapsible opc-payment-additional discount-code\"\r\n     data-bind=\"mageInit: {'collapsible':{'openedState': '_active'}}\">\r\n    <div class=\"payment-option-title field choice\" data-role=\"title\">\r\n        <span class=\"action action-toggle\" id=\"block-discount-heading\" role=\"heading\" aria-level=\"2\">\r\n            <!-- ko i18n: 'Apply Discount Code'--><!-- /ko -->\r\n        </span>\r\n    </div>\r\n    <div class=\"payment-option-content\" data-role=\"content\">\r\n        <!-- ko foreach: getRegion('messages') -->\r\n        <!-- ko template: getTemplate() --><!-- /ko -->\r\n        <!--/ko-->\r\n        <form class=\"form form-discount\" id=\"discount-form\"\r\n              data-bind=\"blockLoader: (typeof isLoading === 'undefined') ? isBlockLoading : isLoading\">\r\n            <div class=\"payment-option-inner\">\r\n                <div class=\"field\">\r\n                    <label class=\"label\" for=\"discount-code\">\r\n                        <span data-bind=\"i18n: 'Enter discount code'\"></span>\r\n                    </label>\r\n                    <div class=\"control\">\r\n                        <input class=\"input-text\"\r\n                               type=\"text\"\r\n                               id=\"discount-code\"\r\n                               name=\"discount_code\"\r\n                               data-validate=\"{'required-entry':true}\"\r\n                               data-bind=\"value: couponCode, attr:{placeholder: $t('Enter discount code')} \"/>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n            <div class=\"actions-toolbar\">\r\n                <div class=\"primary\">\r\n                    <!-- ko ifnot: isApplied() -->\r\n                    <button class=\"action action-apply\" type=\"submit\"\r\n                            data-bind=\"'value': $t('Apply Discount'), click: apply\">\r\n                        <span><!-- ko i18n: 'Apply Discount'--><!-- /ko --></span>\r\n                    </button>\r\n                    <!-- /ko -->\r\n                    <!-- ko if: isApplied() -->\r\n                    <button class=\"action action-cancel\" type=\"submit\" data-bind=\"'value': $t('Cancel'), click: cancel\">\r\n                        <span><!-- ko i18n: 'Cancel coupon'--><!-- /ko --></span>\r\n                    </button>\r\n                    <!-- /ko -->\r\n                </div>\r\n            </div>\r\n\r\n            <!-- ko foreach: getRegion('captcha') -->\r\n            <!-- ko template: getTemplate() --><!-- /ko -->\r\n            <!-- /ko -->\r\n        </form>\r\n    </div>\r\n</div>\r\n","Magento_Customer/template/authentication-popup.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n -->\n\n<div class=\"block-authentication\"\n     data-bind=\"afterRender: setModalElement, blockLoader: isLoading\"\n     style=\"display: none\">\n    <div class=\"block block-new-customer\"\n         data-bind=\"attr: {'data-label': $t('or')}\">\n        <div class=\"block-title\">\n            <strong id=\"block-new-customer-heading\"\n                    role=\"heading\"\n                    aria-level=\"2\"\n                    data-bind=\"i18n: 'Checkout as a new customer'\"></strong>\n        </div>\n        <div class=\"block-content\" aria-labelledby=\"block-new-customer-heading\">\n            <p data-bind=\"i18n: 'Creating an account has many benefits:'\"></p>\n            <ul>\n                <li data-bind=\"i18n: 'See order and shipping status'\"></li>\n                <li data-bind=\"i18n: 'Track order history'\"></li>\n                <li data-bind=\"i18n: 'Check out faster'\"></li>\n            </ul>\n            <div class=\"actions-toolbar\">\n                <div class=\"primary\">\n                    <a class=\"action action-register primary\" data-bind=\"attr: {href: registerUrl}\">\n                        <span data-bind=\"i18n: 'Create an Account'\"></span>\n                    </a>\n                </div>\n            </div>\n        </div>\n    </div>\n\n    <div class=\"block block-customer-login\"\n         data-bind=\"attr: {'data-label': $t('or')}\">\n        <div class=\"block-title\">\n            <strong id=\"block-customer-login-heading\"\n                    role=\"heading\"\n                    aria-level=\"2\"\n                    data-bind=\"i18n: 'Checkout using your account'\"></strong>\n        </div>\n        <!-- ko foreach: getRegion('messages') -->\n        <!-- ko template: getTemplate() --><!-- /ko -->\n        <!--/ko-->\n        <!-- ko foreach: getRegion('before') -->\n        <!-- ko template: getTemplate() --><!-- /ko -->\n        <!-- /ko -->\n        <div class=\"block-content\" aria-labelledby=\"block-customer-login-heading\">\n            <form class=\"form form-login\"\n                  method=\"post\"\n                  data-bind=\"event: {submit: login }\"\n                  id=\"login-form\">\n                <div class=\"fieldset login\" data-bind=\"attr: {'data-hasrequired': $t('* Required Fields')}\">\n                    <div class=\"field email required\">\n                        <label class=\"label\" for=\"customer-email\"><span data-bind=\"i18n: 'Email Address'\"></span></label>\n                        <div class=\"control\">\n                            <input name=\"username\"\n                                   id=\"customer-email\"\n                                   type=\"email\"\n                                   class=\"input-text\"\n                                   data-mage-init='{\"mage/trim-input\":{}}'\n                                   data-bind=\"attr: {autocomplete: autocomplete}\"\n                                   data-validate=\"{required:true, 'validate-email':true}\">\n                        </div>\n                    </div>\n                    <div class=\"field password required\">\n                        <label for=\"pass\" class=\"label\"><span data-bind=\"i18n: 'Password'\"></span></label>\n                        <div class=\"control\">\n                            <input name=\"password\"\n                                   type=\"password\"\n                                   class=\"input-text\"\n                                   id=\"pass\"\n                                   data-bind=\"attr: {autocomplete: autocomplete}\"\n                                   data-validate=\"{required:true}\">\n                        </div>\n                    </div>\n                    <!-- ko foreach: getRegion('additional-login-form-fields') -->\n                    <!-- ko template: getTemplate() --><!-- /ko -->\n                    <!-- /ko -->\n                    <div class=\"actions-toolbar\">\n                        <input name=\"context\" type=\"hidden\" value=\"checkout\" />\n                        <div class=\"primary\">\n                            <button type=\"submit\" class=\"action action-login secondary\" name=\"send\" id=\"send2\">\n                                <span data-bind=\"i18n: 'Sign In'\"></span>\n                            </button>\n                        </div>\n                        <div class=\"secondary\">\n                            <a class=\"action\" data-bind=\"attr: {href: forgotPasswordUrl}\">\n                                <span data-bind=\"i18n: 'Forgot Your Password?'\"></span>\n                            </a>\n                        </div>\n                    </div>\n                </div>\n            </form>\n        </div>\n    </div>\n</div>\n","Magento_Customer/template/show-password.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n -->\n\n<input type=\"checkbox\" name=\"show-password\" data-bind=\"attr: {title : $t('Show Password')}\" id=\"show-password\" class=\"checkbox\" data-role=\"show-password\" ko-checked=\"isPasswordVisible\">\n<label for=\"show-password\" class=\"label\"><span translate=\"'Show Password'\"></span></label>\n","Webkul_RewardSystem/template/checkout/rewardamount.html":"<div class=\"payment-option _collapsible opc-payment-additional discount-code\"\n     data-bind=\"mageInit: {'collapsible':{'openedState': '_active'}}\">\n   <!-- ko if: rewardStatus() -->\n    <div class=\"payment-option-title field choice\" data-role=\"title\">\n        <span class=\"action action-toggle\" id=\"block-discount-heading\" role=\"heading\" aria-level=\"2\">\n        <!-- ko i18n: 'Apply Reward Point'--><!-- /ko -->\n        </span>\n    </div>\n    <div class=\"payment-option-content\" data-role=\"content\">\n      <!-- ko foreach: getRegion('messages') -->\n        <!-- ko template: getTemplate() --><!-- /ko -->\n      <!--/ko-->\n      <div class=\"wk_rs_points_details wk_rs_total_points\">\n        <div class=\"wk_rs_cartsign\">\n          <span class=\"wk_rs_reward_value\" data-bind=\"text: rewardPoints\"></span>\n          <div style=\"display:inline-block\">\n            <span class=\"wk_rs_reward_text\"><!-- ko i18n: 'Reward Points'--><!-- /ko --></span>\n            <p><!-- ko i18n: 'You have'--><!-- /ko --></p>\n          </div>\n        </div>\n      </div>\n      <div class=\"wk_rs_points_details wk_rs_total_points\">\n        <div class=\"wk_rs_cartsign\">\n          <span class=\"wk_rs_amount_currency\" data-bind=\"text: amountCurrency\"></span>\n          <span class=\"wk_rs_reward_value\" data-bind=\"text: rewardPointAmount\"></span>\n          <div style=\"display:inline-block\">\n            <span class=\"wk_rs_reward_text\"><!-- ko i18n: 'Per Reward Point'--><!-- /ko --></span>\n            <p><!-- ko i18n: 'Amount'--><!-- /ko --></p>\n          </div>\n        </div>\n      </div>\n        <form class=\"form form-discount\" id=\"reward-form\" data-bind=\"blockLoader: isLoading\">\n          <input class=\"input-text\" type=\"hidden\" name=\"number_of_rewards\" id=\"number_of_rewards\" data-bind=\"value: rewardPoints\" >\n            <div class=\"payment-option-inner\">\n                <div class=\"field\">\n                  <!-- ko ifnot: isApplied() -->\n                    <div class=\"control\">\n                          <span class=\"wk_rs_reward_text\">\n                          <!-- ko i18n: 'Enter Your Reward Points:'--><!-- /ko -->\n                          </span>\n                            <input class=\"input-text\"\n                               type=\"text\"\n                               id=\"reward_points\"\n                               name=\"used_reward_points\"\n                               style=\"width:auto; padding:0px 0px;\"\n                               data-bind=\"attr:{placeholder: $t('Enter Reward points')},event:{'keyup': check}\"\n                               data-validate=\"{required:true,'validate-number-range':true,'validate-number':true,\n                               'validate-not-negative-number':true}\"\n                                >\n                              <!-- ko if: isValue() -->\n                              <!-- ko i18n: ' equals to '--><!-- /ko -->\n                              <span class=\"wk_rs_reward_text\" data-bind=\"text: totalAmount\"></span>\n                              <!-- /ko -->\n                    </div>\n                    <!-- /ko -->\n                </div>\n            </div>\n            <!-- ko ifnot: isApplied() -->\n                  <button class=\"action action-apply\" type=\"button\" data-bind=\"'value': $t('Apply Reward Point\\'s'), click: apply\" >\n                      <span><!-- ko i18n: 'Apply Reward Points'--><!-- /ko --></span>\n                  </button>\n            <!-- /ko -->\n            <div class=\"actions-toolbar\"></div>\n            <div class=\"payment-option-inner\">\n                <div class=\"field\">\n                <!-- ko if: isApplied() -->\n                    <dl class=\"wk_applied_rewards\">\n                        <dt><!-- ko i18n: 'Applied Rewards'--><!-- /ko --></dt>\n                        <dd class=\"wk_rs_applied_reward\">\n                            <span class=\"form-list wk_rs_reward_applied\" data-bind=\"foreach: rewardsession\">\n                              <span class=\"wk_rs_applied_reward_text\">\n                                  <span><!-- ko i18n: 'Using'--><!-- /ko --></span>\n                                  <span class=\"wk_rs_applied_amount\" data-bind=\"text: amount\"></span>\n                                  <span>(</span><span data-bind=\"text: used_reward_points\"></span><span><!-- ko i18n: ' Rewards '--><!-- /ko --></span><span>)  <!-- ko i18n: 'of'--><!-- /ko --></span>\n                                  <span class=\"wk_rs_applied_amount\" data-bind=\"text: avail_amount\"></span>\n                                  <span>(</span><span data-bind=\"text: number_of_rewards\"></span><span><!-- ko i18n: ' Rewards )'--><!-- /ko --></span>\n                              </span>\n                            </span>\n                                <!-- ko if: isApplied() -->\n                                    <button class=\"action action-cancel\" type=\"button\" data-bind=\"'value': $t('Cancel'), click: cancel\">\n                                        <span><!-- ko i18n: 'Cancel'--><!-- /ko --></span>\n                                    </button>\n                                <!-- /ko -->\n                        </dd>\n                    </dl>\n                <!-- /ko -->\n                </div>\n            </div>\n        </form>\n      </div>\n  <!--/ko-->\n    </div>\n</div>\n","Webkul_RewardSystem/template/checkout/rewardloginmessage.html":"<!-- ko if: checkStatus() -->\n    <div id=\"rewardsmessage\">\n        <h3 class=\"wk_rs_product_style wk_rs_advertise_product_style\">\n            <span class=\"wk_rs_product_greet\"></span>\n            <!-- ko i18n: 'Register for become user and'--><!-- /ko --> \n            <span class=\"wk_rs_cart_green\">\n                <!-- ko i18n: 'Earn'--><!-- /ko --> \n                <span class=\"price\" data-bind=\"text: getValue()\"></span> \n                <!-- ko i18n: 'Reward Points'--><!-- /ko -->\n                <a data-bind=\"attr: { href: getRedirectUrl() }\"> <!-- ko i18n: 'click here'--><!-- /ko --> </a>\n                <!-- ko i18n: 'to Register'--><!-- /ko -->\n            </span>\n        </h3>\n    </div>\n<!-- /ko -->\n","Webkul_RewardSystem/template/checkout/cart/totals/rewardamount.html":"<!-- ko if: isDisplayed() -->\n<tr class=\"totals fee excl\">\n    <th class=\"mark\" colspan=\"1\" scope=\"row\" data-bind=\"text: title\"></th>\n    <td class=\"amount\">\n        <span class=\"price\" data-bind=\"text: getValue()\"></span>\n    </td>\n</tr>\n<!-- /ko -->\n","Webkul_RewardSystem/template/checkout/summary/rewardinfo.html":"<div class=\"wk_rs_checkout_summary_msg\">\n    <!-- ko if: getValue() -->\n    <span class=\"wk_rs_checkout_page_greet\"></span>\n    <span class=\"wk_rs_summary_left\" data-bind=\"i18n: 'You will Earn'\"></span>\n    <span class=\"wk_rs_summary_right wk_rs_cart_green\">\n        <span data-bind=\"text: getValue()\"></span>\n        <!-- ko i18n: 'RP'--><!-- /ko -->\n    </span>\n    <!-- /ko -->\n</div>","Webkul_RewardSystem/template/checkout/minicart/reward.html":"<div class=\"wk_rs_minicart_container\">\n    <!-- ko foreach: elems -->\n    <!-- ko template: getTemplate() --><!-- /ko -->\n    <!-- /ko -->\n</div>","Webkul_RewardSystem/template/checkout/minicart/reward/data.html":"<!-- ko if: cart().reward_earn_points -->\n    <span class=\"wk_rs_minicart_page_greet\"></span>\n    <span class=\"wk_reward_required\" data-bind=\"i18n: 'Checkout now to'\"></span>\n    <span class=\"wk_rs_cart_green wk_rs_bold_text\">\n        <!-- ko i18n: 'earn'--><!-- /ko -->\n        <span data-bind=\"text: cart().reward_earn_points\"></span>\n        <!-- ko i18n: 'Reward Points'--><!-- /ko -->\n    </span>\n<!-- /ko -->\n","Mageplaza_SocialLogin/template/social-buttons.html":"<!--\r\n/**\r\n * Mageplaza\r\n *\r\n * NOTICE OF LICENSE\r\n *\r\n * This source file is subject to the Mageplaza.com license that is\r\n * available through the world-wide-web at this URL:\r\n * https://www.mageplaza.com/LICENSE.txt\r\n *\r\n * DISCLAIMER\r\n *\r\n * Do not edit or add to this file if you wish to upgrade this extension to newer\r\n * version in the future.\r\n *\r\n * @category    Mageplaza\r\n * @package     Mageplaza_SocialLogin\r\n * @copyright   Copyright (c) Mageplaza (https://www.mageplaza.com/)\r\n * @license     https://www.mageplaza.com/LICENSE.txt\r\n */\r\n -->\r\n\r\n<!-- ko if: isActive() -->\r\n<div class=\"block social-login-authentication-popup col-mp\">\r\n    <div class=\"block-content\" data-bind=\"foreach: socials()\">\r\n        <div class=\"actions-toolbar social-btn\" data-bind=\"css: key + '-login'\">\r\n            <a class=\"btn btn-block btn-social btn-authentication-pop\"\r\n               data-bind=\"css: 'btn-' + btn_key, socialButton: $parent.isActive, url: url\">\r\n                <span class=\"fa\" data-bind=\"css: 'fa-' + btn_key\"></span>\r\n                <p style=\"padding: 0px 20px;\" data-bind=\"text: 'Sign in with ' + label\"></p>\r\n            </a>\r\n        </div>\r\n    </div>\r\n</div>\r\n<!-- /ko -->","Magento_Tax/template/price/adjustment.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<if args=\"displayBothPrices()\">\n    <span class=\"price-wrapper price-excluding-tax\"\n          attr=\"'data-label': $t('Excl. Tax')\"\n          data-price-amount=\"\"\n          data-price-type=\"basePrice\"\n          html=\"getTax($row())\">\n    </span>\n</if>\n","Magento_Tax/template/price/bundle/adjustment.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<if args=\"displayPriceIncludeTax()\">\n    <span class=\"price-wrapper price-excluding-tax\"\n          attr=\"'data-label': $t('Incl. Tax')\"\n          data-price-amount=\"\"\n          data-price-type=\"basePrice\"\n          html=\"getTaxUnsanitizedHtml($row())\"></span>\n</if>\n\n<if args=\"displayPriceExclTax()\">\n    <span class=\"price-wrapper price-excluding-tax\"\n          attr=\"'data-label': $t('Excl. Tax')\"\n          data-price-amount=\"\"\n          data-price-type=\"basePrice\"\n          html=\"getTaxUnsanitizedHtml($row())\"></span>\n</if>\n\n<if args=\"displayBothPrices()\">\n    <span class=\"price-wrapper price-excluding-tax\"\n          attr=\"'data-label': $t('Excl. Tax')\"\n          data-price-amount=\"\"\n          data-price-type=\"basePrice\"\n          html=\"getTaxUnsanitizedHtml($row())\"></span>\n</if>\n","Magento_Tax/template/checkout/cart/totals/grand-total.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<!-- ko if: isTaxDisplayedInGrandTotal && isDisplayed() -->\n<tr class=\"grand totals incl\">\n    <th class=\"mark\" scope=\"row\">\n        <strong data-bind=\"i18n: inclTaxLabel\"></strong>\n    </th>\n    <td data-bind=\"attr: {'data-th': inclTaxLabel}\" class=\"amount\">\n        <strong><span class=\"price\" data-bind=\"text: getValue()\"></span></strong>\n    </td>\n</tr>\n<tr class=\"grand totals excl\">\n    <th class=\"mark\" scope=\"row\">\n        <strong data-bind=\"i18n: exclTaxLabel\"></strong>\n    </th>\n    <td data-bind=\"attr: {'data-th': exclTaxLabel}\" class=\"amount\">\n        <strong><span class=\"price\" data-bind=\"text: getGrandTotalExclTax()\"></span></strong>\n    </td>\n</tr>\n<!-- /ko -->\n<!-- ko if: !isTaxDisplayedInGrandTotal && isDisplayed() -->\n<tr class=\"grand totals\">\n    <th class=\"mark\" scope=\"row\">\n        <strong data-bind=\"i18n: title\"></strong>\n    </th>\n    <td data-bind=\"attr: {'data-th': title}\" class=\"amount\">\n        <strong><span class=\"price\" data-bind=\"text: getValue()\"></span></strong>\n    </td>\n</tr>\n<!-- /ko -->\n","Magento_Tax/template/checkout/cart/totals/tax.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n\n<!-- ko if: ifShowValue() && !ifShowDetails() -->\n<tr class=\"totals-tax\">\n    <th data-bind=\"text: title\" class=\"mark\" colspan=\"1\" scope=\"row\"></th>\n    <td data-bind=\"attr: {'data-th': title}\" class=\"amount\">\n        <span class=\"price\" data-bind=\"text: getValue()\"></span>\n    </td>\n</tr>\n<!-- /ko -->\n<!-- ko if: ifShowValue() && ifShowDetails() -->\n    <tr class=\"totals-tax-summary\"\n        data-bind=\"mageInit: {'toggleAdvanced':{'selectorsToggleClass': 'shown', 'baseToggleClass': 'expanded', 'toggleContainers': '.totals-tax-details'}}\">\n        <th class=\"mark\" scope=\"row\" colspan=\"1\">\n            <span class=\"detailed\" data-bind=\"text: title\"></span>\n        </th>\n        <td data-bind=\"attr: {'data-th': title}\" class=\"amount\">\n            <span class=\"price\" data-bind=\"text: getValue()\"></span>\n        </td>\n    </tr>\n    <!-- ko foreach: getDetails() -->\n        <!-- ko foreach: rates -->\n        <tr class=\"totals-tax-details\">\n            <!-- ko if: percent -->\n                <th class=\"mark\" scope=\"row\" colspan=\"1\" data-bind=\"text: title + ' (' + percent + '%)'\"></th>\n            <!-- /ko -->\n            <!-- ko if: !percent -->\n                <th class=\"mark\" scope=\"row\" colspan=\"1\" data-bind=\"text: title\"></th>\n            <!-- /ko -->\n            <td class=\"amount\" rowspan=\"1\">\n                <!-- ko if: $parents[1].isCalculated() -->\n                <span class=\"price\"\n                      data-bind=\"text: $parents[1].getTaxAmount($parents[0], percent), attr: {'data-th': title, 'rowspan': $parents[0].rates.length }\"></span>\n                <!-- /ko -->\n                <!-- ko ifnot: $parents[1].isCalculated() -->\n                <span class=\"not-calculated\"\n                      data-bind=\"text: $parents[1].getTaxAmount($parents[0], percent), attr: {'data-th': title, 'rowspan': $parents[0].rates.length }\"></span>\n                <!-- /ko -->\n            </td>\n        </tr>\n        <!-- /ko -->\n    <!-- /ko -->\n<!-- /ko -->\n","Magento_Tax/template/checkout/cart/totals/shipping.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<!-- ko if: isCalculated() && quoteIsVirtual == 0 -->\n    <!-- ko if: isBothPricesDisplayed() -->\n    <tr class=\"totals shipping excl\">\n        <th class=\"mark\" scope=\"row\">\n            <span class=\"label\" data-bind=\"text: title + ' ' + excludingTaxMessage\"></span>\n            <!-- ko if: haveToShowCoupon() -->\n                <span class=\"label description\" data-bind=\"text: getCouponDescription()\"></span>\n            <!-- /ko -->\n            <span class=\"value\" data-bind=\"text: getShippingMethodTitle()\"></span>\n        </th>\n        <td class=\"amount\">\n            <span class=\"price\"\n                  data-bind=\"text: getExcludingValue(), attr: {'data-th': excludingTaxMessage}\"></span>\n        </td>\n    </tr>\n    <tr class=\"totals shipping incl\">\n        <th class=\"mark\" scope=\"row\">\n            <span class=\"label\" data-bind=\"text: title + ' ' + includingTaxMessage\"></span>\n            <!-- ko if: haveToShowCoupon() -->\n                <span class=\"label description\" data-bind=\"text: getCouponDescription()\"></span>\n            <!-- /ko -->\n            <span class=\"value\" data-bind=\"text: getShippingMethodTitle()\"></span>\n        </th>\n        <td class=\"amount\">\n            <span class=\"price\"\n                  data-bind=\"text: getIncludingValue(), attr: {'data-th': title + ' ' + excludingTaxMessage}\"></span>\n        </td>\n    </tr>\n    <!-- /ko -->\n    <!-- ko if: isIncludingDisplayed() -->\n    <tr class=\"totals shipping incl\">\n        <th class=\"mark\" scope=\"row\">\n            <span class=\"label\" data-bind=\"i18n: title\"></span>\n            <!-- ko if: haveToShowCoupon() -->\n                <span class=\"label description\" data-bind=\"text: getCouponDescription()\"></span>\n            <!-- /ko -->\n            <span class=\"value\" data-bind=\"text: getShippingMethodTitle()\"></span>\n        </th>\n        <td class=\"amount\">\n            <span class=\"price\"\n                  data-bind=\"text: getIncludingValue(), attr: {'data-th': title}\"></span>\n        </td>\n    </tr>\n    <!-- /ko -->\n    <!-- ko if: isExcludingDisplayed() -->\n    <tr class=\"totals shipping excl\">\n        <th class=\"mark\" scope=\"row\">\n            <span class=\"label\" data-bind=\"i18n: title\"></span>\n            <!-- ko if: haveToShowCoupon() -->\n                <span class=\"label description\" data-bind=\"text: getCouponDescription()\"></span>\n            <!-- /ko -->\n            <span class=\"value\" data-bind=\"text: getShippingMethodTitle()\"></span>\n        </th>\n        <td class=\"amount\">\n            <span class=\"price\"\n                  data-bind=\"text: getValue(), attr: {'data-th': title}\"></span>\n        </td>\n    </tr>\n    <!-- /ko -->\n<!-- /ko -->\n","Magento_Tax/template/checkout/shipping_method/price.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<!-- ko if:  isDisplayShippingPriceExclTax -->\n<span class=\"price\"><span class=\"price\" data-bind=\"text: getFormattedPrice(method.price_excl_tax)\"></span></span>\n<!-- /ko -->\n<!-- ko ifnot: isDisplayShippingPriceExclTax -->\n<!-- ko if:  (isDisplayShippingBothPrices && (method.price_excl_tax != method.price_incl_tax))-->\n<span class=\"price-including-tax\" data-bind = \"attr: {'data-label': $t('Incl. Tax')}\">\n    <span class=\"price\"><span class=\"price\" data-bind=\"text: getFormattedPrice(method.price_incl_tax)\"></span></span>\n</span>\n<!-- /ko -->\n\n<!-- ko ifnot:  (isDisplayShippingBothPrices && (method.price_excl_tax != method.price_incl_tax))-->\n    <span class=\"price\"><span class=\"price\" data-bind=\"text: getFormattedPrice(method.price_incl_tax)\"></span></span>\n<!-- /ko -->\n\n<!-- /ko -->\n<!-- ko if:  (isDisplayShippingBothPrices && (method.price_excl_tax != method.price_incl_tax))-->\n<span class=\"price-excluding-tax\" data-bind = \"attr: {'data-label': $t('Excl. Tax')}\">\n    <span class=\"price\"><span class=\"price\" data-bind=\"text: getFormattedPrice(method.price_excl_tax)\"></span></span>\n</span>\n<!-- /ko -->\n","Magento_Tax/template/checkout/summary/subtotal.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<!-- ko if: isBothPricesDisplayed() -->\n<tr class=\"totals sub excl\">\n    <th class=\"mark\" scope=\"row\">\n        <span data-bind=\"i18n: title\"></span>\n        <span data-bind=\"i18n: excludingTaxMessage\"></span>\n    </th>\n    <td class=\"amount\">\n        <span class=\"price\" data-bind=\"text: getValue(), attr: {'data-th': excludingTaxMessage}\"></span>\n    </td>\n</tr>\n<tr class=\"totals sub incl\">\n    <th class=\"mark\" scope=\"row\">\n        <span data-bind=\"i18n: title\"></span>\n        <span data-bind=\"i18n: includingTaxMessage\"></span>\n    </th>\n    <td class=\"amount\">\n        <span class=\"price\" data-bind=\"text: getValueInclTax(), attr: {'data-th': includingTaxMessage}\"></span>\n    </td>\n</tr>\n<!-- /ko -->\n<!-- ko if: !isBothPricesDisplayed() && isIncludingTaxDisplayed() -->\n<tr class=\"totals sub\">\n    <th data-bind=\"i18n: title\" class=\"mark\" scope=\"row\"></th>\n    <td class=\"amount\">\n        <span class=\"price\" data-bind=\"text: getValueInclTax(), attr: {'data-th': title}\"></span>\n    </td>\n</tr>\n<!-- /ko -->\n<!-- ko if: !isBothPricesDisplayed() && !isIncludingTaxDisplayed() -->\n<tr class=\"totals sub\">\n    <th data-bind=\"i18n: title\" class=\"mark\" scope=\"row\"></th>\n    <td class=\"amount\">\n        <span class=\"price\" data-bind=\"text: getValue(), attr: {'data-th': title}\"></span>\n    </td>\n</tr>\n<!-- /ko -->\n","Magento_Tax/template/checkout/summary/grand-total.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<!-- ko if: isTaxDisplayedInGrandTotal && isDisplayed() -->\n<tr class=\"grand totals incl\">\n    <th class=\"mark\" scope=\"row\">\n        <strong data-bind=\"i18n: inclTaxLabel\"></strong>\n    </th>\n    <td data-bind=\"attr: {'data-th': inclTaxLabel}\" class=\"amount\">\n        <strong><span class=\"price\" data-bind=\"text: getValue()\"></span></strong>\n    </td>\n</tr>\n<tr class=\"grand totals excl\">\n    <th class=\"mark\" scope=\"row\">\n        <strong data-bind=\"i18n: exclTaxLabel\"></strong>\n    </th>\n    <td data-bind=\"attr: {'data-th': exclTaxLabel}\" class=\"amount\">\n        <strong><span class=\"price\" data-bind=\"text: getGrandTotalExclTax()\"></span></strong>\n    </td>\n</tr>\n<!-- /ko -->\n<!-- ko if: !isTaxDisplayedInGrandTotal && isDisplayed() -->\n<tr class=\"grand totals\">\n    <th class=\"mark\" scope=\"row\">\n        <strong data-bind=\"i18n: title\"></strong>\n    </th>\n    <td data-bind=\"attr: {'data-th': title}\" class=\"amount\">\n        <strong><span class=\"price\" data-bind=\"text: getValue()\"></span></strong>\n    </td>\n</tr>\n<!-- /ko -->\n<!-- ko if: isBaseGrandTotalDisplayNeeded() && isDisplayed() -->\n<tr class=\"totals charge\">\n    <th class=\"mark\" data-bind=\"i18n: basicCurrencyMessage\" scope=\"row\"></th>\n    <td class=\"amount\">\n        <span class=\"price\" data-bind=\"text: getBaseValue(), attr: {'data-th': basicCurrencyMessage}\"></span>\n    </td>\n</tr>\n<!-- /ko -->\n","Magento_Tax/template/checkout/summary/tax.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<!-- ko if: ifShowValue() && !ifShowDetails() -->\n<tr class=\"totals-tax\">\n    <th data-bind=\"text: title\" class=\"mark\" scope=\"row\"></th>\n    <td data-bind=\"attr: {'data-th': title}\" class=\"amount\">\n        <!-- ko if: isCalculated() -->\n            <span class=\"price\"\n                  data-bind=\"text: getValue()\"></span>\n        <!-- /ko -->\n        <!-- ko ifnot: isCalculated() -->\n            <span class=\"not-calculated\"\n                  data-bind=\"text: getValue()\"></span>\n        <!-- /ko -->\n    </td>\n</tr>\n<!-- /ko -->\n<!-- ko if: ifShowValue() && ifShowDetails() -->\n    <tr class=\"totals-tax-summary\"\n        data-bind=\"mageInit: {'toggleAdvanced':{'selectorsToggleClass': 'shown', 'baseToggleClass': 'expanded', 'toggleContainers': '.totals-tax-details'}}\">\n        <th data-bind=\"text: title\" class=\"mark\" scope=\"row\"></th>\n        <td data-bind=\"attr: {'data-th': title }\" class=\"amount\">\n            <!-- ko if: isCalculated() -->\n            <span class=\"price\"\n                  data-bind=\"text: getValue()\"></span>\n            <!-- /ko -->\n            <!-- ko ifnot: isCalculated() -->\n            <span class=\"not-calculated\"\n                  data-bind=\"text: getValue()\"></span>\n            <!-- /ko -->\n        </td>\n    </tr>\n    <!-- ko foreach: getDetails() -->\n        <!-- ko foreach: rates -->\n        <tr class=\"totals-tax-details\">\n            <!-- ko if: percent -->\n                <th class=\"mark\" scope=\"row\" data-bind=\"text: title + ' (' + percent + '%)'\"></th>\n            <!-- /ko -->\n            <!-- ko if: !percent -->\n                <th class=\"mark\" scope=\"row\" data-bind=\"text: title\"></th>\n            <!-- /ko -->\n            <td class=\"amount\">\n                <!-- ko if: $parents[1].isCalculated() -->\n                <span class=\"price\"\n                      data-bind=\"text: $parents[1].getTaxAmount($parents[0], percent), attr: {'data-th': title, 'rowspan': $parents[0].rates.length }\"></span>\n                <!-- /ko -->\n                <!-- ko ifnot: $parents[1].isCalculated() -->\n                <span class=\"not-calculated\"\n                      data-bind=\"text: $parents[1].getTaxAmount($parents[0], percent), attr: {'data-th': title, 'rowspan': $parents[0].rates.length }\"></span>\n                <!-- /ko -->\n            </td>\n        </tr>\n        <!-- /ko -->\n    <!-- /ko -->\n<!-- /ko -->\n","Magento_Tax/template/checkout/summary/shipping.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<!-- ko if: quoteIsVirtual == 0 -->\n    <!-- ko if: isBothPricesDisplayed() -->\n    <tr class=\"totals shipping excl\">\n        <th class=\"mark\" scope=\"row\">\n            <span class=\"label\" data-bind=\"text: title+ ' ' + excludingTaxMessage\"></span>\n            <!-- ko if: haveToShowCoupon() -->\n                <span class=\"label description\" data-bind=\"text: getCouponDescription()\"></span>\n            <!-- /ko -->\n            <span class=\"value\" data-bind=\"text: getShippingMethodTitle()\"></span>\n        </th>\n        <td class=\"amount\">\n            <!-- ko if: isCalculated() -->\n            <span class=\"price\"\n                  data-bind=\"text: getExcludingValue(), attr: {'data-th': excludingTaxMessage}\"></span>\n            <!-- /ko -->\n            <!-- ko ifnot: isCalculated() -->\n            <span class=\"not-calculated\"\n                  data-bind=\"text: getExcludingValue(), attr: {'data-th': excludingTaxMessage}\"></span>\n            <!-- /ko -->\n        </td>\n    </tr>\n    <tr class=\"totals shipping incl\">\n        <th class=\"mark\" scope=\"row\">\n            <span class=\"label\" data-bind=\"text: title + ' ' + includingTaxMessage\"></span>\n            <!-- ko if: haveToShowCoupon() -->\n                <span class=\"label description\" data-bind=\"text: getCouponDescription()\"></span>\n            <!-- /ko -->\n            <span class=\"value\" data-bind=\"text: getShippingMethodTitle()\"></span>\n        </th>\n        <td class=\"amount\">\n            <!-- ko if: isCalculated() -->\n            <span class=\"price\"\n                  data-bind=\"text: getIncludingValue(), attr: {'data-th': title + ' ' + excludingTaxMessage}\"></span>\n            <!-- /ko -->\n            <!-- ko ifnot: isCalculated() -->\n            <span class=\"not-calculated\"\n                  data-bind=\"text: getIncludingValue(), attr: {'data-th': title + ' ' + excludingTaxMessage}\"></span>\n            <!-- /ko -->\n        </td>\n    </tr>\n    <!-- /ko -->\n    <!-- ko if: isIncludingDisplayed() -->\n    <tr class=\"totals shipping incl\">\n        <th class=\"mark\" scope=\"row\">\n            <span class=\"label\" data-bind=\"i18n: title\"></span>\n            <!-- ko if: haveToShowCoupon() -->\n                <span class=\"label description\" data-bind=\"text: getCouponDescription()\"></span>\n            <!-- /ko -->\n            <span class=\"value\" data-bind=\"text: getShippingMethodTitle()\"></span>\n        </th>\n        <td class=\"amount\">\n            <!-- ko if: isCalculated() -->\n            <span class=\"price\"\n                  data-bind=\"text: getIncludingValue(), attr: {'data-th': title}\"></span>\n            <!-- /ko -->\n            <!-- ko ifnot: isCalculated() -->\n            <span class=\"not-calculated\"\n                  data-bind=\"text: getIncludingValue(), attr: {'data-th': title}\"></span>\n            <!-- /ko -->\n        </td>\n    </tr>\n    <!-- /ko -->\n    <!-- ko if: isExcludingDisplayed() -->\n    <tr class=\"totals shipping excl\">\n        <th class=\"mark\" scope=\"row\">\n            <span class=\"label\" data-bind=\"i18n: title\"></span>\n            <!-- ko if: haveToShowCoupon() -->\n                <span class=\"label description\" data-bind=\"text: getCouponDescription()\"></span>\n            <!-- /ko -->\n            <span class=\"value\" data-bind=\"text: getShippingMethodTitle()\"></span>\n        </th>\n        <td class=\"amount\">\n            <!-- ko if: isCalculated() -->\n            <span class=\"price\"\n                  data-bind=\"text: getValue(), attr: {'data-th': title}\"></span>\n            <!-- /ko -->\n            <!-- ko ifnot: isCalculated() -->\n            <span class=\"not-calculated\"\n                  data-bind=\"text: getValue(), attr: {'data-th': title}\"></span>\n            <!-- /ko -->\n        </td>\n    </tr>\n    <!-- /ko -->\n<!-- /ko -->\n","Magento_Tax/template/checkout/summary/item/details/subtotal.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"subtotal\">\n    <!-- ko if: isPriceInclTaxDisplayed() && !getRegion('row_incl_tax') -->\n    <span class=\"price-including-tax\"\n          data-bind =\"text: getValueInclTax($parents[1]), attr:{'data-label': $t('Incl. Tax')}\">\n    </span>\n    <!-- /ko -->\n\n    <!-- ko if: isPriceInclTaxDisplayed() && getRegion('row_incl_tax') -->\n    <span class=\"price-including-tax\" data-bind =\"attr:{'data-label': $t('Incl. Tax')}\">\n            <!-- ko foreach: getRegion('row_incl_tax') -->\n                <!-- ko template: getTemplate() --><!-- /ko -->\n            <!-- /ko -->\n    </span>\n    <!-- /ko -->\n\n    <!-- ko if: isPriceExclTaxDisplayed() && !getRegion('row_excl_tax') -->\n    <span class=\"price-excluding-tax\"\n          data-bind =\"text: getValueExclTax($parents[1]), attr:{'data-label': $t('Excl. Tax')}\">\n    </span>\n    <!-- /ko -->\n    <!-- ko if: isPriceExclTaxDisplayed() && getRegion('row_excl_tax') -->\n    <span class=\"price-excluding-tax\" data-bind =\"attr:{'data-label': $t('Excl. Tax')}\">\n            <!-- ko foreach: getRegion('row_excl_tax') -->\n                <!-- ko template: getTemplate() --><!-- /ko -->\n            <!-- /ko -->\n    </span>\n    <!-- /ko -->\n</div>\n","Magento_Tax/template/checkout/minicart/subtotal/totals.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n\n<div class=\"amount price-container\">\n    <!-- ko if: displaySubtotal() -->\n        <!-- ko if: display_cart_subtotal_excl_tax -->\n            <span class=\"price-wrapper\" data-bind=\"html: cart().subtotal_excl_tax\"></span>\n        <!-- /ko -->\n\n        <!-- ko if: !display_cart_subtotal_excl_tax && display_cart_subtotal_incl_tax -->\n            <span class=\"price-wrapper\" data-bind=\"html: cart().subtotal_incl_tax\"></span>\n        <!-- /ko -->\n\n        <!-- ko if: !display_cart_subtotal_excl_tax && !display_cart_subtotal_incl_tax -->\n            <span class=\"price-wrapper price-including-tax\"\n                  data-bind=\"attr: { 'data-label': $t('Incl. Tax') }, html: cart().subtotal_incl_tax\">\n            </span>\n\n            <span class=\"price-wrapper price-excluding-tax\"\n                  data-bind=\"attr: { 'data-label': $t('Excl. Tax') }, html: cart().subtotal_excl_tax\">\n            </span>\n        <!-- /ko -->\n    <!-- /ko -->\n    <!-- ko ifnot: displaySubtotal() -->\n        <!-- ko foreach: getRegion('minicart-subtotal-hidden') -->\n            <!-- ko template: getTemplate() --><!-- /ko -->\n        <!-- /ko -->\n    <!-- /ko -->\n</div>\n","Magento_Variable/template/grid/cells/radioselect.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n\n<input type=\"radio\" class=\"admin__control-radio\" name=\"radio-select\" data-bind=\"value: $row()['variable_type'] + ':' + $row()['code'], checked: selectedVariableCode, click: selectVariable\"/>\n<label class=\"admin__field-label\"></label>\n","Magento_Paypal/template/paylater.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div data-pp-message data-bind=\"attr: {\n        'class': getAttribute('class'),\n        'data-pp-amount': amount,\n        'data-pp-placement': getAttribute('data-pp-placement'),\n        'data-pp-style-layout': getAttribute('data-pp-style-layout'),\n        'data-pp-style-logo-type': getAttribute('data-pp-style-logo-type'),\n        'data-pp-style-logo-position': getAttribute('data-pp-style-logo-position'),\n        'data-pp-style-text-color': getAttribute('data-pp-style-text-color'),\n        'data-pp-style-text-size': getAttribute('data-pp-style-text-size'),\n        'data-pp-style-color': getAttribute('data-pp-style-color'),\n        'data-pp-style-ratio': getAttribute('data-pp-style-ratio'),\n    }\" ></div>\n\n","Magento_Paypal/template/payment/paypal-express.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"payment-method\" data-bind=\"css: {'_active': (getCode() == isChecked())}\">\n    <div class=\"payment-method-title field choice\">\n        <input type=\"radio\"\n               name=\"payment[method]\"\n               class=\"radio\"\n               data-bind=\"attr: {'id': getCode()}, value: getCode(), checked: isChecked, click: selectPaymentMethod, visible: isRadioButtonVisible()\" />\n        <label data-bind=\"attr: {'for': getCode()}\" class=\"label\">\n            <!-- PayPal Logo -->\n            <img data-bind=\"attr: {src: getPaymentAcceptanceMarkSrc(), alt: $t('Acceptance Mark')}\"\n                 class=\"payment-icon\"/>\n            <!-- PayPal Logo -->\n            <span data-bind=\"text: getTitle()\"></span>\n            <a data-bind=\"attr: {href: getPaymentAcceptanceMarkHref()}, click: showAcceptanceWindow\" class=\"action action-help\">\n                <!-- ko i18n: 'What is PayPal?' --><!-- /ko -->\n            </a>\n        </label>\n    </div>\n    <div class=\"payment-method-content\">\n        <!-- ko foreach: getRegion('messages') -->\n        <!-- ko template: getTemplate() --><!-- /ko -->\n        <!--/ko-->\n        <fieldset class=\"fieldset\" data-bind='attr: {id: \"payment_form_\" + getCode()}'>\n            <div class=\"payment-method-note\">\n                <!-- ko i18n: 'You will be redirected to the PayPal website.' --><!-- /ko -->\n            </div>\n            <!-- ko template: 'Magento_Paypal/payment/express/billing-agreement' --><!-- /ko -->\n        </fieldset>\n        <div class=\"checkout-agreements-block\">\n            <!-- ko foreach: $parent.getRegion('before-place-order') -->\n                <!-- ko template: getTemplate() --><!-- /ko -->\n            <!--/ko-->\n        </div>\n        <div class=\"payment-method-extra-content\">\n            <each args=\"$parent.getRegion('paypal-method-extra-content')\" render=\"\"></each>\n        </div>\n        <div class=\"actions-toolbar\">\n            <div class=\"primary\">\n                <button class=\"action primary checkout\"\n                        type=\"submit\"\n                        data-bind=\"click: continueToPayPal, enable: (getCode() == isChecked())\"\n                        disabled>\n                    <span data-bind=\"i18n: 'Continue to PayPal'\"></span>\n                </button>\n            </div>\n        </div>\n    </div>\n</div>\n","Magento_Paypal/template/payment/iframe-methods.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"payment-method\" data-bind=\"css: {'_active': (getCode() == isChecked())}\">\n    <div class=\"payment-method-title field choice\">\n        <input type=\"radio\"\n               name=\"payment[method]\"\n               class=\"radio\"\n               data-bind=\"attr: {'id': getCode()}, value: getCode(), checked: isChecked, click: selectPaymentMethod, visible: isRadioButtonVisible()\"/>\n        <label class=\"label\" data-bind=\"attr: {'for': getCode()}\"><span data-bind=\"text: getTitle()\"></span></label>\n    </div>\n    <div class=\"payment-method-content\">\n        <!-- ko foreach: getRegion('messages') -->\n        <!-- ko template: getTemplate() --><!-- /ko -->\n        <!--/ko-->\n        <div class=\"payment-method-billing-address\">\n            <!-- ko foreach: $parent.getRegion(getBillingAddressFormName()) -->\n                <!-- ko template: getTemplate() --><!-- /ko -->\n            <!--/ko-->\n        </div>\n        <div class=\"checkout-agreements-block\">\n            <!-- ko foreach: $parent.getRegion('before-place-order') -->\n                <!-- ko template: getTemplate() --><!-- /ko -->\n            <!--/ko-->\n        </div>\n        <div class=\"actions-toolbar\" data-bind=\"visible: !isInAction()\">\n            <div class=\"primary\">\n                <button data-role=\"review-save\"\n                        type=\"submit\"\n                        data-bind=\"click: placePendingPaymentOrder, attr: {title: $t('Continue')}, css: {disabled: !isPlaceOrderActionAllowed()}\"\n                        class=\"button action primary checkout\">\n                    <span data-bind=\"i18n: 'Continue'\"></span>\n                </button>\n            </div>\n        </div>\n        <div data-bind=\"visible: isInAction()\">\n            <div id=\"iframe-warning\" class=\"message notice\">\n                <div><!-- ko i18n: 'Please do not refresh the page until you complete payment.' --><!-- /ko --></div>\n            </div>\n            <!-- ko if: isPaymentReady() -->\n            <iframe data-bind=\"attr: {id: getCode() + '-iframe', src: getActionUrl()}, event: {load: iframeLoaded}\"\n                    data-container=\"paypal-iframe\"\n                    class=\"paypal iframe\"\n                    scrolling=\"no\"\n                    frameborder=\"0\"\n                    border=\"0\"\n                    height=\"610\"\n                    width=\"100%\"\n                    >\n            </iframe>\n            <!-- /ko -->\n        </div>\n    </div>\n</div>\n","Magento_Paypal/template/payment/paypal_direct-form.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<!-- ko with: getCcFormView() -->\n    <!-- ko template: getTemplate() --><!-- /ko -->\n<!-- /ko -->\n\n","Magento_Paypal/template/payment/paypal-express-in-context.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"payment-method\" css=\"_active: getCode() == isChecked()\" afterRender=\"initListeners\">\n    <div class=\"payment-method-title field choice\">\n        <input type=\"radio\"\n               name=\"payment[method]\"\n               class=\"radio\"\n               attr=\"id: getCode()\"\n               ko-value=\"getCode()\"\n               ko-checked=\"isChecked\"\n               click=\"selectPaymentMethod\"\n               visible=\"isRadioButtonVisible()\"/>\n        <label attr=\"for: getCode()\" class=\"label\">\n            <!-- PayPal Logo -->\n            <img attr=\"src: getPaymentAcceptanceMarkSrc(), alt: $t('Acceptance Mark')\" class=\"payment-icon\"/>\n            <!-- PayPal Logo -->\n            <span text=\"getTitle()\"></span>\n            <a class=\"action action-help\"\n               attr=\"href: getPaymentAcceptanceMarkHref()\"\n               click=\"showAcceptanceWindow\"\n               translate=\"'What is PayPal?'\"></a>\n        </label>\n    </div>\n    <div class=\"payment-method-content\">\n        <each args=\"getRegion('messages')\" render=\"\"></each>\n        <div class=\"checkout-agreements-block\">\n            <each args=\"$parent.getRegion('before-place-order')\" render=\"\"></each>\n        </div>\n        <div class=\"actions-toolbar\" attr=\"id: getButtonId()\" afterRender=\"renderPayPalButtons\"></div>\n        <div class=\"payment-method-extra-content\">\n            <each args=\"$parent.getRegion('paypal-method-extra-content')\" render=\"\"></each>\n        </div>\n    </div>\n</div>\n","Magento_Paypal/template/payment/payflowpro-form.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"payment-method\" data-bind=\"css: {'_active': (getCode() == isChecked())}\">\n    <div class=\"payment-method-title field choice\">\n        <input type=\"radio\"\n               name=\"payment[method]\"\n               class=\"radio\"\n               data-bind=\"attr: {'id': getCode()}, value: getCode(), checked: isChecked, click: selectPaymentMethod, visible: isRadioButtonVisible()\"/>\n        <label class=\"label\" data-bind=\"attr: {'for': getCode()}\">\n            <span data-bind=\"text: getTitle()\"></span>\n        </label>\n    </div>\n\n    <div class=\"payment-method-content\">\n        <!-- ko foreach: getRegion('messages') -->\n        <!-- ko template: getTemplate() --><!-- /ko -->\n        <!--/ko-->\n        <div class=\"payment-method-billing-address\">\n            <!-- ko foreach: $parent.getRegion(getBillingAddressFormName()) -->\n            <!-- ko template: getTemplate() --><!-- /ko -->\n            <!--/ko-->\n        </div>\n        <iframe width=\"0\"\n                height=\"0\"\n                data-bind=\"src: getSource(), attr: {id: getCode() + '-transparent-iframe', 'data-container': getCode() + '-transparent-iframe'}\"\n                allowtransparency=\"true\"\n                frameborder=\"0\"\n                name=\"iframeTransparent\"\n                class=\"payment-method-iframe\">\n        </iframe>\n        <form class=\"form\" id=\"co-transparent-form\" action=\"#\" method=\"post\" data-bind=\"mageInit: {\n            'transparent':{\n                'context': context(),\n                'controller': getControllerName(),\n                'gateway': getCode(),\n                'orderSaveUrl':getPlaceOrderUrl(),\n                'cgiUrl': getCgiUrl(),\n                'dateDelim': getDateDelim(),\n                'cardFieldsMap': getCardFieldsMap(),\n                'nativeAction': getSaveOrderUrl()\n            }, 'validation':[]}\">\n\n            <!-- ko template: 'Magento_Payment/payment/cc-form' --><!-- /ko -->\n\n            <!-- ko if: (isVaultEnabled())-->\n            <div class=\"field-tooltip-content\">\n                <input type=\"checkbox\"\n                       name=\"vault[is_enabled]\"\n                       class=\"checkbox-inline\"\n                       data-bind=\"attr: {'id': getCode() + '_enable_vault'}, checked: vaultEnabler.isActivePaymentTokenEnabler\"/>\n                <label class=\"label\" data-bind=\"attr: {'for': getCode() + '_enable_vault'}\">\n                    <span><!-- ko i18n: 'Save credit card information for future use.'--><!-- /ko --></span>\n                </label>\n            </div>\n            <!-- /ko -->\n        </form>\n\n        <div class=\"checkout-agreements-block\">\n            <!-- ko foreach: $parent.getRegion('before-place-order') -->\n                <!-- ko template: getTemplate() --><!-- /ko -->\n            <!--/ko-->\n        </div>\n        <div class=\"actions-toolbar\">\n            <div class=\"primary\">\n                <button data-role=\"review-save\"\n                        type=\"submit\"\n                        data-bind=\"\n                        attr: {title: $t('Place Order')},\n                        enable: (getCode() == isChecked()),\n                        click: placeOrder,\n                        css: {disabled: !isPlaceOrderActionAllowed()}\n                        \"\n                        class=\"action primary checkout\"\n                        disabled>\n                    <span data-bind=\"i18n: 'Place Order'\"></span>\n                </button>\n            </div>\n        </div>\n    </div>\n</div>\n","Magento_Paypal/template/payment/paypal_billing_agreement-form.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"payment-method\" data-bind=\"css: {'_active': (getCode() == isChecked())}\">\n    <div class=\"payment-method-title field choice\">\n        <input type=\"radio\"\n               name=\"payment[method]\"\n               class=\"radio\"\n               data-bind=\"attr: {'id': getCode()}, value: getCode(), checked: isChecked, click: selectPaymentMethod, visible: isRadioButtonVisible()\"/>\n        <span data-bind=\"text: getTitle()\"></span>\n    </div>\n    <div class=\"payment-method-content\">\n        <!-- ko foreach: getRegion('messages') -->\n        <!-- ko template: getTemplate() --><!-- /ko -->\n        <!--/ko-->\n        <form id=\"billing-agreement-form\">\n            <div class=\"payment-method-billing-address\">\n                <!-- ko foreach: $parent.getRegion(getBillingAddressFormName()) -->\n                <!-- ko template: getTemplate() --><!-- /ko -->\n                <!--/ko-->\n            </div>\n            <select data-bind=\"\n                    attr: {id: getCode() + '_ba_agreement_id', name: 'payment[' + getTransportName() + ']',\n                    'data-validate': JSON.stringify({required:true})},\n                    options: getBillingAgreements(),\n                    optionsValue: 'id',\n                    optionsText: 'referenceId',\n                    optionsCaption: $t('-- Please Select Billing Agreement--'),\n                    value: selectedBillingAgreement\"\n                    class=\"select\">\n            </select>\n        </form>\n        <div class=\"checkout-agreements-block\">\n            <!-- ko foreach: $parent.getRegion('before-place-order') -->\n                <!-- ko template: getTemplate() --><!-- /ko -->\n            <!--/ko-->\n        </div>\n\n        <div class=\"actions-toolbar\" id=\"review-buttons-container\">\n            <div class=\"primary\">\n                <button class=\"action primary checkout\"\n                        type=\"submit\"\n                        data-bind=\"\n                        click: placeOrder,\n                        attr: {title: $t('Place Order')},\n                        enable: (getCode() == isChecked()),\n                        css: {disabled: !isPlaceOrderActionAllowed()}\n                        \"\n                        data-role=\"review-save\">\n                    <span data-bind=\"i18n: 'Place Order'\"></span>\n                </button>\n            </div>\n        </div>\n    </div>\n</div>\n","Magento_Paypal/template/payment/payflow-express-bml.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"payment-method\" data-bind=\"css: {'_active': (getCode() == isChecked())}\">\n    <div class=\"payment-method-title field choice\">\n        <input type=\"radio\"\n               name=\"payment[method]\"\n               class=\"radio\"\n               data-bind=\"attr: {'id': getCode()}, value: getCode(), checked: isChecked, click: selectPaymentMethod, visible: isRadioButtonVisible()\" />\n        <label data-bind=\"attr: {'for': getCode()}\" class=\"label\">\n            <!-- PayPal Logo -->\n            <img src=\"https://www.paypalobjects.com/webstatic/en_US/i/buttons/ppc-acceptance-medium.png\"\n                 data-bind=\"attr: {alt: $t('Acceptance Mark')}\"\n                 class=\"payment-icon\"/>\n            <!-- PayPal Logo -->\n            <span data-bind=\"text: getTitle()\"></span>\n            <a href=\"https://www.securecheckout.billmelater.com/paycapture-content/fetch?hash=AU826TU8&content=/bmlweb/ppwpsiw.html\"\n               data-bind=\"click: showAcceptanceWindow\"\n               class=\"action action-help\">\n                <!-- ko i18n: 'See terms' --><!-- /ko -->\n            </a>\n        </label>\n    </div>\n    <div class=\"payment-method-content\">\n        <!-- ko foreach: getRegion('messages') -->\n        <!-- ko template: getTemplate() --><!-- /ko -->\n        <!--/ko-->\n        <fieldset class=\"fieldset\" data-bind='attr: {id: \"payment_form_\" + getCode()}'>\n            <div class=\"payment-method-note\">\n                <!-- ko i18n: 'You will be redirected to the PayPal website when you place an order.' --><!-- /ko -->\n            </div>\n        </fieldset>\n        <div class=\"checkout-agreements-block\">\n            <!-- ko foreach: $parent.getRegion('before-place-order') -->\n                <!-- ko template: getTemplate() --><!-- /ko -->\n            <!--/ko-->\n        </div>\n        <div class=\"payment-method-extra-content\">\n            <each args=\"$parent.getRegion('paypal-method-extra-content')\" render=\"\"></each>\n        </div>\n        <div class=\"actions-toolbar\">\n            <div class=\"primary\">\n                <button class=\"action primary checkout\"\n                        type=\"submit\"\n                        data-bind=\"click: continueToPayPal, enable: (getCode() == isChecked())\"\n                        disabled>\n                    <span data-bind=\"i18n: 'Continue to PayPal'\"></span>\n                </button>\n            </div>\n        </div>\n    </div>\n</div>\n","Magento_Paypal/template/payment/payflow-express.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"payment-method\" data-bind=\"css: {'_active': (getCode() == isChecked())}\">\n    <div class=\"payment-method-title field choice\">\n        <input type=\"radio\"\n               name=\"payment[method]\"\n               class=\"radio\"\n               data-bind=\"attr: {'id': getCode()}, value: getCode(), checked: isChecked, click: selectPaymentMethod, visible: isRadioButtonVisible()\" />\n        <label data-bind=\"attr: {'for': getCode()}\" class=\"label\">\n            <!-- PayPal Logo -->\n            <img data-bind=\"attr: {src: getPaymentAcceptanceMarkSrc(), alt: $t('Acceptance Mark')}\" class=\"payment-icon\"/>\n            <!-- PayPal Logo -->\n            <span data-bind=\"text: getTitle()\"></span>\n            <a data-bind=\"attr: {href: getPaymentAcceptanceMarkHref()}, click: showAcceptanceWindow\"\n               class=\"action action-help\">\n                <!-- ko i18n: 'What is PayPal?' --><!-- /ko -->\n            </a>\n        </label>\n    </div>\n    <div class=\"payment-method-content\">\n        <!-- ko foreach: getRegion('messages') -->\n        <!-- ko template: getTemplate() --><!-- /ko -->\n        <!--/ko-->\n        <fieldset class=\"fieldset\" data-bind='attr: {id: \"payment_form_\" + getCode()}'>\n            <div class=\"payment-method-note\">\n                <!-- ko i18n: 'You will be redirected to the PayPal website.' --><!-- /ko -->\n            </div>\n        </fieldset>\n        <div class=\"checkout-agreements-block\">\n            <!-- ko foreach: $parent.getRegion('before-place-order') -->\n                <!-- ko template: getTemplate() --><!-- /ko -->\n            <!--/ko-->\n        </div>\n        <div class=\"payment-method-extra-content\">\n            <each args=\"$parent.getRegion('paypal-method-extra-content')\" render=\"\"></each>\n        </div>\n        <div class=\"actions-toolbar\">\n            <div class=\"primary\">\n                <button class=\"action primary checkout\"\n                        type=\"submit\"\n                        data-bind=\"click: continueToPayPal, enable: (getCode() == isChecked())\"\n                        disabled>\n                    <span data-bind=\"i18n: 'Continue to PayPal'\"></span>\n                </button>\n            </div>\n        </div>\n    </div>\n</div>\n","Magento_Paypal/template/payment/express/billing-agreement.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<!-- ko if: getBillingAgreementCode() -->\n<input type=\"checkbox\"\n    data-bind='\n        attr: {id: getBillingAgreementCode(), name: \"payment[\" + getBillingAgreementCode() + \"]\"},\n        checked: billingAgreement\n        enable: isActive($parent) && getBillingAgreementCode(),\n        click: selectPaymentMethod'\n    value=\"1\" class=\"checkbox\">\n<label\n    data-bind='\n        attr: {for: getBillingAgreementCode()}'\n    class=\"label\">\n    <span><!-- ko i18n: 'Sign a billing agreement to streamline further purchases with PayPal.' --><!-- /ko --></span>\n</label>\n<!-- /ko -->\n","Magento_PaypalCaptcha/template/payment/payflowpro-form.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"payment-method\" data-bind=\"css: {'_active': (getCode() == isChecked())}\">\n    <div class=\"payment-method-title field choice\">\n        <input type=\"radio\"\n               name=\"payment[method]\"\n               class=\"radio\"\n               data-bind=\"attr: {'id': getCode()}, value: getCode(), checked: isChecked, click: selectPaymentMethod, visible: isRadioButtonVisible()\"/>\n        <label class=\"label\" data-bind=\"attr: {'for': getCode()}\">\n            <span data-bind=\"text: getTitle()\"></span>\n        </label>\n    </div>\n\n    <div class=\"payment-method-content\">\n        <!-- ko foreach: getRegion('messages') -->\n        <!-- ko template: getTemplate() --><!-- /ko -->\n        <!--/ko-->\n        <div class=\"payment-method-billing-address\">\n            <!-- ko foreach: $parent.getRegion(getBillingAddressFormName()) -->\n            <!-- ko template: getTemplate() --><!-- /ko -->\n            <!--/ko-->\n        </div>\n        <iframe width=\"0\"\n                height=\"0\"\n                data-bind=\"src: getSource(), attr: {id: getCode() + '-transparent-iframe', 'data-container': getCode() + '-transparent-iframe'}\"\n                allowtransparency=\"true\"\n                frameborder=\"0\"\n                name=\"iframeTransparent\"\n                class=\"payment-method-iframe\">\n        </iframe>\n        <form class=\"form\" id=\"co-transparent-form\" action=\"#\" method=\"post\" data-bind=\"mageInit: {\n            'transparent':{\n                'context': context(),\n                'controller': getControllerName(),\n                'gateway': getCode(),\n                'orderSaveUrl':getPlaceOrderUrl(),\n                'cgiUrl': getCgiUrl(),\n                'dateDelim': getDateDelim(),\n                'cardFieldsMap': getCardFieldsMap(),\n                'nativeAction': getSaveOrderUrl()\n            }, 'validation':[]}\">\n\n            <!-- ko template: 'Magento_Payment/payment/cc-form' --><!-- /ko -->\n\n            <!-- ko if: (isVaultEnabled())-->\n            <div class=\"field-tooltip-content\">\n                <input type=\"checkbox\"\n                       name=\"vault[is_enabled]\"\n                       class=\"checkbox-inline\"\n                       data-bind=\"attr: {'id': getCode() + '_enable_vault'}, checked: vaultEnabler.isActivePaymentTokenEnabler\"/>\n                <label class=\"label\" data-bind=\"attr: {'for': getCode() + '_enable_vault'}\">\n                    <span><!-- ko i18n: 'Save credit card information for future use.'--><!-- /ko --></span>\n                </label>\n            </div>\n            <!-- /ko -->\n        </form>\n        <fieldset class=\"fieldset payment items ccard\">\n            <!-- ko foreach: $parent.getRegion('paypal-captcha') -->\n                <!-- ko template: getTemplate() --><!-- /ko -->\n            <!-- /ko -->\n        </fieldset>\n\n\n        <div class=\"checkout-agreements-block\">\n            <!-- ko foreach: $parent.getRegion('before-place-order') -->\n                <!-- ko template: getTemplate() --><!-- /ko -->\n            <!--/ko-->\n        </div>\n        <div class=\"actions-toolbar\">\n            <div class=\"primary\">\n                <button data-role=\"review-save\"\n                        type=\"submit\"\n                        data-bind=\"\n                        attr: {title: $t('Place Order')},\n                        enable: (getCode() == isChecked()),\n                        click: placeOrder,\n                        css: {disabled: !isPlaceOrderActionAllowed()}\n                        \"\n                        class=\"action primary checkout\"\n                        disabled>\n                    <span data-bind=\"i18n: 'Place Order'\"></span>\n                </button>\n            </div>\n        </div>\n    </div>\n</div>\n","Magento_InventoryInStorePickupFrontend/template/shipping-information.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n\n<!-- ko if: (isVisible()) -->\n<div class=\"shipping-information\">\n    <!-- ko if: (!isStorePickup()) -->\n    <div class=\"ship-to\">\n        <div class=\"shipping-information-title\">\n            <span data-bind=\"i18n: 'Ship To:'\"></span>\n            <button class=\"action action-edit\" data-bind=\"click: back\">\n                <span data-bind=\"i18n: 'edit'\"></span>\n            </button>\n        </div>\n        <div class=\"shipping-information-content\">\n            <!-- ko foreach: getRegion('ship-to') -->\n            <!-- ko template: getTemplate() --><!-- /ko -->\n            <!--/ko-->\n        </div>\n    </div>\n    <!--/ko-->\n    <div class=\"ship-via\">\n        <div class=\"shipping-information-title\">\n            <span data-bind=\"i18n: 'Shipping Method:'\"></span>\n            <button class=\"action action-edit\" data-bind=\"click: backToShippingMethod\">\n                <span data-bind=\"i18n: 'edit'\"></span>\n            </button>\n        </div>\n        <div class=\"shipping-information-content\">\n            <span class=\"value\" data-bind=\"text: getShippingMethodTitle()\"></span>\n        </div>\n    </div>\n</div>\n<!--/ko-->\n","Magento_InventoryInStorePickupFrontend/template/delivery-method-selector.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div id=\"delivery-method-selector\" class=\"step-content\">\n    <button\n        class=\"action action-select-shipping\"\n        css=\"'selected': !isStorePickupSelected()\"\n        click=\"selectShipping\"\n        translate=\"'Shipping'\"\n    ></button>\n    <button\n        class=\"action action-select-store-pickup\"\n        css=\"'selected': isStorePickupSelected()\"\n        click=\"selectStorePickup\"\n        translate=\"'Pick in Store'\"\n    ></button>\n</div>\n","Magento_InventoryInStorePickupFrontend/template/store-selector.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div id=\"store-selector\" data-bind=\"blockLoader: $parent.isLoading\" css=\"'store-selected': $parent.selectedLocation\">\n    <each if=\"!quoteIsVirtual()\" args=\"getRegion('customer-email')\" render=\"\"></each>\n    <div class=\"step-title\" data-role=\"title\">\n        <translate args=\"'Store'\"></translate>\n    </div>\n    <div id=\"checkout-step-store-selector\" class=\"step-content\" data-role=\"content\">\n        <render args=\"selectedLocationTemplate\"></render>\n        <each args=\"getRegion('after-selected-location')\" render=\"\"></each>\n        <form class=\"form-continue\" submit=\"setPickupInformation\" novalidate=\"novalidate\">\n            <div class=\"actions-toolbar\">\n                <div class=\"secondary\">\n                    <button type=\"button\" class=\"button action\" click=\"openPopup\">\n                        <span if=\"selectedLocation\">\n                            <translate args=\"'Select Other'\"></translate>\n                        </span>\n                        <span ifnot=\"selectedLocation\">\n                            <translate args=\"'Select Store'\"></translate>\n                        </span>\n                    </button>\n                </div>\n                <div class=\"primary\">\n                    <button data-role=\"opc-continue\"\n                            type=\"submit\"\n                            class=\"button action continue primary\"\n                            css=\"disabled: !selectedLocation\"\n                            enable=\"selectedLocation\"\n                            disabled\n                    >\n                        <span>\n                            <translate args=\"'Next'\"></translate>\n                        </span>\n                    </button>\n                </div>\n            </div>\n        </form>\n    </div>\n</div>\n<div id=\"opc-store-selector-popup\" render=\"storeSelectorPopupTemplate\"></div>\n","Magento_InventoryInStorePickupFrontend/template/store-pickup.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<li id=\"store-pickup\"\n    if=\"isVisible\"\n    css=\"'selected-shipping': !isStorePickupSelected(), 'selected-store-pickup': isStorePickupSelected()\"\n>\n    <render args=\"deliveryMethodSelectorTemplate\"></render>\n    <if args=\"isStorePickupSelected\">\n        <each args=\"getRegion('store-selector')\">\n            <div template=\" {name: getTemplate()}\"></div>\n        </each>\n    </if>\n</li>\n","Magento_InventoryInStorePickupFrontend/template/form/element/email.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<ifnot args=\"isCustomerLoggedIn()\">\n    <each args=\"getRegion('before-login-form')\">\n        <div template=\" {name: getTemplate()}\"></div>\n    </each>\n    <form class=\"form form-login\" data-role=\"email-with-possible-login\"\n          data-bind=\"submit:login\"\n          method=\"post\">\n        <fieldset id=\"store-pickup-customer-email-fieldset\" class=\"fieldset\" data-bind=\"blockLoader: isLoading\">\n            <div class=\"field required\">\n                <label class=\"label\" for=\"checkout-customer-email\">\n                    <span data-bind=\"i18n: 'Email Address'\"></span>\n                </label>\n                <div class=\"control _with-tooltip\">\n                    <input class=\"input-text\"\n                           type=\"email\"\n                           data-bind=\"\n                                textInput: email,\n                                hasFocus: emailFocused,\n                                mageInit: {'mage/trim-input':{}}\"\n                           name=\"username\"\n                           data-validate=\"{required:true, 'validate-email':true}\"\n                           id=\"store-pickup-checkout-customer-email\" />\n                    <!-- ko template: 'ui/form/element/helper/tooltip' --><!-- /ko -->\n                    <span class=\"note\" data-bind=\"fadeVisible: isPasswordVisible() == false\">\n                        <translate args=\"'You can create an account after checkout.'\"></translate>\n                    </span>\n                </div>\n            </div>\n\n            <!--Hidden fields -->\n            <fieldset class=\"fieldset hidden-fields\" data-bind=\"fadeVisible: isPasswordVisible\">\n                <div class=\"field\">\n                    <label class=\"label\" for=\"customer-password\">\n                        <translate args=\"'Password'\"></translate>\n                    </label>\n                    <div class=\"control\">\n                        <input class=\"input-text\"\n                               data-bind=\"\n                                    attr: {\n                                        placeholder: $t('Password'),\n                                    }\"\n                               type=\"password\"\n                               name=\"password\"\n                               id=\"store-pickup-customer-password\"\n                               data-validate=\"{required:true}\"\n                               autocomplete=\"off\"/>\n                        <span class=\"note\"\n                              translate=\"'You already have an account with us. Sign in or continue as guest.'\"></span>\n                    </div>\n\n                </div>\n                <each args=\"getRegion('additional-login-form-fields')\">\n                    <div template=\" {name: getTemplate()}\"></div>\n                </each>\n                <div class=\"actions-toolbar\">\n                    <input name=\"context\" type=\"hidden\" value=\"checkout\" />\n                    <div class=\"primary\">\n                        <button type=\"submit\" class=\"action login primary\" data-action=\"checkout-method-login\">\n                            <translate args=\"'Login'\"></translate>\n                        </button>\n                    </div>\n                    <div class=\"secondary\">\n                        <a class=\"action remind\" data-bind=\"attr: { href: forgotPasswordUrl }\">\n                            <span data-bind=\"i18n: 'Forgot Your Password?'\"></span>\n                        </a>\n                    </div>\n                </div>\n            </fieldset>\n            <!--Hidden fields -->\n        </fieldset>\n    </form>\n</ifnot>\n","Magento_InventoryInStorePickupFrontend/template/store-selector/popup.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div id=\"store-selector-popup\">\n    <div class=\"block block-search store-selector-search\">\n        <div class=\"field search\">\n            <label class=\"label\" for=\"store-selector-search-input\">\n                <translate args=\"'Search'\"></translate>\n            </label>\n            <div class=\"control\">\n                <input id=\"store-selector-search-input\"\n                       type=\"text\"\n                       name=\"store-selector-search-query\"\n                       class=\"input-text\"\n                       maxlength=\"128\"\n                       textInput=\"searchQuery\"\n                       attr=\"placeholder: $t('Search with postcode or city name...')\"\n                />\n            </div>\n        </div>\n        <div class=\"actions\">\n            <button type=\"submit\"\n                    title=\"Search\"\n                    class=\"action search\"\n                    aria-label=\"Search\"\n            >\n                <translate args=\"'Search'\"></translate>\n            </button>\n        </div>\n    </div>\n    <p class=\"store-selector-popup-no-locations\" if=\"searchQuery() && nearbyLocations() && !nearbyLocations().length\">\n        <translate args=\"'We were unable to find nearby locations for provided search query.'\"></translate>\n    </p>\n    <p class=\"store-selector-popup-empty-query\" ifnot=\"searchQuery()\">\n        <translate args=\"'Please provide postcode or city name to find nearest pickup locations.'\"></translate>\n    </p>\n    <table class=\"store-selector-popup-table\" data-bind=\"blockLoader: isLoading, visible: nearbyLocations() && nearbyLocations().length\">\n        <thead>\n            <tr class=\"row\">\n                <th class=\"col col-method\" translate=\"'Location Details'\"></th>\n                <th class=\"col col-carrier\" translate=\"'Action'\"></th>\n            </tr>\n        </thead>\n        <tbody>\n            <!-- ko foreach: { data: nearbyLocations(), as: 'location' } -->\n                <!-- ko template: { name: $parent.storeSelectorPopupItemTemplate } --><!-- /ko -->\n            <!-- /ko -->\n        </tbody>\n    </table>\n</div>\n","Magento_InventoryInStorePickupFrontend/template/store-selector/selected-location.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<if args=\"!isLoading() && !selectedLocation()\">\n    <p class=\"no-selected-location\">\n        <translate args=\"'We could not preselect pickup location based on available information, please select it manually.'\"></translate>\n    </p>\n</if>\n<div class=\"selected-location-details location-details\" if=\"selectedLocation\">\n    <p class=\"location-name\">\n        <text args=\"selectedLocation().name\"></text>\n    </p>\n    <p class=\"location-address\">\n        <text args=\"selectedLocation().street\"></text><br/>\n        <text args=\"selectedLocation().city\"></text>, <span text=\"selectedLocation().region\"></span>\n        <text args=\"selectedLocation().postcode\"></text><br/>\n        <text args=\"selectedLocation().country\"></text><br/>\n        <a if=\"selectedLocation().telephone\"\n           attr=\"'href': 'tel:' + selectedLocation().telephone\"\n           text=\"selectedLocation().telephone\"\n        ></a>\n    </p>\n    <!-- ko with: {locationDescriptionUnsanitizedHtml: selectedLocation().description} -->\n    <p class=\"location-description\" html=\"locationDescriptionUnsanitizedHtml\"></p>\n    <!-- /ko -->\n</div>\n","Magento_InventoryInStorePickupFrontend/template/store-selector/popup-item.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<tr class=\"row location\">\n    <td class=\"col col-location-details location-details\">\n        <p class=\"location-name\">\n            <text args=\"location.name\"></text>\n        </p>\n        <p class=\"location-address\">\n            <text args=\"location.street\"></text><br/>\n            <text args=\"location.city\"></text>, <span text=\"location.region\"></span> <text args=\"location.postcode\"></text><br/>\n            <text args=\"location.country\"></text><br/>\n            <a if=\"location.telephone\" attr=\"'href': 'tel:' + location.telephone\" text=\"location.telephone\"></a>\n        </p>\n        <!-- ko if: location.description -->\n            <!-- ko with: {locationDescriptionUnsanitizedHtml: location.description} -->\n                <p class=\"location-description\" html=\"locationDescriptionUnsanitizedHtml\"></p>\n            <!-- /ko -->\n        <!-- /ko -->\n    </td>\n    <td class=\"col col-location-actions\">\n        <div class=\"select-location\" ifnot=\"$parent.isPickupLocationSelected($data)\">\n            <button type=\"button\"\n                    class=\"action secondary action-select-shipping-item\"\n                    click=\"$parent.selectPickupLocation.bind($parent, $data)\">\n                <translate args=\"'Ship Here'\"></translate>\n            </button>\n        </div>\n        <div class=\"location-selected\" if=\"$parent.isPickupLocationSelected($data)\">\n            <button type=\"button\" class=\"action secondary\" disabled>\n                <span translate=\"'Selected'\"></span>\n            </button>\n        </div>\n    </td>\n</tr>\n","Magento_OfflinePayments/template/payment/checkmo.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"payment-method\" data-bind=\"css: {'_active': (getCode() == isChecked())}\">\n    <div class=\"payment-method-title field choice\">\n        <input type=\"radio\"\n               name=\"payment[method]\"\n               class=\"radio\"\n               data-bind=\"attr: {'id': getCode()}, value: getCode(), checked: isChecked, click: selectPaymentMethod, visible: isRadioButtonVisible()\"/>\n        <label data-bind=\"attr: {'for': getCode()}\" class=\"label\"><span data-bind=\"text: getTitle()\"></span></label>\n    </div>\n    <div class=\"payment-method-content\">\n        <!-- ko foreach: getRegion('messages') -->\n        <!-- ko template: getTemplate() --><!-- /ko -->\n        <!--/ko-->\n        <div class=\"payment-method-billing-address\">\n            <!-- ko foreach: $parent.getRegion(getBillingAddressFormName()) -->\n            <!-- ko template: getTemplate() --><!-- /ko -->\n            <!--/ko-->\n        </div>\n        <!-- ko if: getMailingAddress() || getPayableTo() -->\n        <dl class=\"items check payable\">\n            <!-- ko if: getPayableTo() -->\n            <dt class=\"title\"><!-- ko i18n: 'Make Check payable to:' --><!-- /ko --></dt>\n            <dd class=\"content\"><!-- ko text: getPayableTo() --><!-- /ko --></dd>\n            <!-- /ko -->\n            <!-- ko if: getMailingAddress() -->\n            <dt class=\"title\"><!-- ko i18n: 'Send Check to:' --><!-- /ko --></dt>\n            <dd class=\"content\">\n                <address class=\"checkmo mailing address\" data-bind=\"html: getMailingAddress()\"></address>\n            </dd>\n            <!-- /ko -->\n        </dl>\n        <!-- /ko -->\n        <div class=\"checkout-agreements-block\">\n            <!-- ko foreach: $parent.getRegion('before-place-order') -->\n                <!-- ko template: getTemplate() --><!-- /ko -->\n            <!--/ko-->\n        </div>\n        <div class=\"actions-toolbar\">\n            <div class=\"primary\">\n                <button class=\"action primary checkout\"\n                        type=\"submit\"\n                        data-bind=\"\n                        click: placeOrder,\n                        attr: {title: $t('Place Order')},\n                        css: {disabled: !isPlaceOrderActionAllowed()},\n                        enable: (getCode() == isChecked())\n                        \"\n                        disabled>\n                    <span data-bind=\"i18n: 'Place Order'\"></span>\n                </button>\n            </div>\n        </div>\n    </div>\n</div>\n        \n","Magento_OfflinePayments/template/payment/purchaseorder-form.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"payment-method\" data-bind=\"css: {'_active': (getCode() == isChecked())}\">\n    <div class=\"payment-method-title field choice\">\n        <input type=\"radio\"\n               name=\"payment[method]\"\n               class=\"radio\"\n               data-bind=\"attr: {'id': getCode()}, value: getCode(), checked: isChecked, click: selectPaymentMethod, visible: isRadioButtonVisible()\"/>\n        <label data-bind=\"attr: {'for': getCode()}\" class=\"label\">\n            <span data-bind=\"text: getTitle()\"></span>\n        </label>\n    </div>\n\n    <div class=\"payment-method-content\">\n        <!-- ko foreach: getRegion('messages') -->\n        <!-- ko template: getTemplate() --><!-- /ko -->\n        <!--/ko-->\n        <div class=\"payment-method-billing-address\">\n            <!-- ko foreach: $parent.getRegion(getBillingAddressFormName()) -->\n            <!-- ko template: getTemplate() --><!-- /ko -->\n            <!--/ko-->\n        </div>\n        <form id=\"purchaseorder-form\" class=\"form form-purchase-order\" data-role=\"purchaseorder-form\">\n            <fieldset class=\"fieldset payment method\" data-bind='attr: {id: \"payment_form_\" + getCode()}'>\n                <div class=\"field field-number required\">\n                    <label for=\"po_number\" class=\"label\">\n                        <span><!-- ko i18n: 'Purchase Order Number'--><!-- /ko --></span>\n                    </label>\n                    <div class=\"control\">\n                        <input type=\"text\"\n                               id=\"po_number\"\n                               name=\"payment[po_number]\"\n                               data-validate=\"{required:true}\"\n                               data-bind='\n                                attr: {title: $t(\"Purchase Order Number\")},\n                                value: purchaseOrderNumber'\n                               class=\"input-text\"/>\n                    </div>\n                </div>\n            </fieldset>\n\n            <div class=\"checkout-agreements-block\">\n                <!-- ko foreach: $parent.getRegion('before-place-order') -->\n                    <!-- ko template: getTemplate() --><!-- /ko -->\n                <!--/ko-->\n            </div>\n\n            <div class=\"actions-toolbar\" id=\"review-buttons-container\">\n                <div class=\"primary\">\n                    <button class=\"action primary checkout\"\n                            type=\"submit\"\n                            data-bind=\"\n                            click: placeOrder,\n                            attr: {title: $t('Place Order')},\n                            enable: (getCode() == isChecked()),\n                            css: {disabled: !isPlaceOrderActionAllowed()}\n                            \"\n                            data-role=\"review-save\">\n                        <span data-bind=\"i18n: 'Place Order'\"></span>\n                    </button>\n                </div>\n            </div>\n        </form>\n    </div>\n</div>\n\n","Magento_OfflinePayments/template/payment/cashondelivery.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"payment-method\" data-bind=\"css: {'_active': (getCode() == isChecked())}\">\n    <div class=\"payment-method-title field choice\">\n        <input type=\"radio\"\n               name=\"payment[method]\"\n               class=\"radio\"\n               data-bind=\"attr: {'id': getCode()}, value: getCode(), checked: isChecked, click: selectPaymentMethod, visible: isRadioButtonVisible()\"/>\n        <label data-bind=\"attr: {'for': getCode()}\" class=\"label\"><span data-bind=\"text: getTitle()\"></span></label>\n    </div>\n\n    <div class=\"payment-method-content\">\n        <!-- ko foreach: getRegion('messages') -->\n        <!-- ko template: getTemplate() --><!-- /ko -->\n        <!--/ko-->\n        <div class=\"payment-method-billing-address\">\n            <!-- ko foreach: $parent.getRegion(getBillingAddressFormName()) -->\n            <!-- ko template: getTemplate() --><!-- /ko -->\n            <!--/ko-->\n        </div>\n        <p data-bind=\"html: getInstructions()\"></p>\n        <div class=\"checkout-agreements-block\">\n            <!-- ko foreach: $parent.getRegion('before-place-order') -->\n                <!-- ko template: getTemplate() --><!-- /ko -->\n            <!--/ko-->\n        </div>\n        <div class=\"actions-toolbar\">\n            <div class=\"primary\">\n                <button class=\"action primary checkout\"\n                        type=\"submit\"\n                        data-bind=\"\n                        click: placeOrder,\n                        attr: {title: $t('Place Order')},\n                        enable: (getCode() == isChecked()),\n                        css: {disabled: !isPlaceOrderActionAllowed()}\n                        \"\n                        disabled>\n                    <span data-bind=\"i18n: 'Place Order'\"></span>\n                </button>\n            </div>\n        </div>\n\n    </div>\n</div>\n","Magento_OfflinePayments/template/payment/banktransfer.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n -->\n<div class=\"payment-method\" data-bind=\"css: {'_active': (getCode() == isChecked())}\">\n    <div class=\"payment-method-title field choice\">\n        <input type=\"radio\"\n               name=\"payment[method]\"\n               class=\"radio\"\n               data-bind=\"attr: {'id': getCode()}, value: getCode(), checked: isChecked, click: selectPaymentMethod, visible: isRadioButtonVisible()\" />\n        <label data-bind=\"attr: {'for': getCode()}\" class=\"label\"><span data-bind=\"text: getTitle()\"></span></label>\n    </div>\n\n    <div class=\"payment-method-content\">\n        <!-- ko foreach: getRegion('messages') -->\n        <!-- ko template: getTemplate() --><!-- /ko -->\n        <!--/ko-->\n        <div class=\"payment-method-billing-address\">\n            <!-- ko foreach: $parent.getRegion(getBillingAddressFormName()) -->\n            <!-- ko template: getTemplate() --><!-- /ko -->\n            <!--/ko-->\n        </div>\n        <p data-bind=\"html: getInstructions()\"></p>\n        <div class=\"checkout-agreements-block\">\n            <!-- ko foreach: $parent.getRegion('before-place-order') -->\n                <!-- ko template: getTemplate() --><!-- /ko -->\n            <!--/ko-->\n        </div>\n        <div class=\"actions-toolbar\">\n            <div class=\"primary\">\n                <button class=\"action primary checkout\"\n                        type=\"submit\"\n                        data-bind=\"\n                        click: placeOrder,\n                        attr: {'title': $t('Place Order')},\n                        enable: (getCode() == isChecked()),\n                        css: {disabled: !isPlaceOrderActionAllowed()}\n                        \"\n                        disabled>\n                    <span data-bind=\"i18n: 'Place Order'\"></span>\n                </button>\n            </div>\n        </div>\n    </div>\n</div>\n","Magento_GroupedProduct/template/product/price/regular_price.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n","Magento_GroupedProduct/template/product/price/minimal_price.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<if args=\"isSalable($row())\">\n    <div class=\"minimal-price\">\n        <span if=\"label\"\n              class=\"price-label\"\n              text=\"label\"></span>\n\n        <span class=\"price-container\"\n              css=\"getAdjustmentCssClasses($row())\">\n            <span class=\"price-wrapper price-including-tax\"\n                  data-price-amount=\"\"\n                  data-price-type=\"\"\n                  html=\"getPriceUnsanitizedHtml($row())\"></span>\n\n            <each args=\"data: getAdjustments(), as: '$adj'\">\n                <render args=\"$adj.getBody()\"></render>\n            </each>\n        </span>\n    </div>\n</if>\n","Paymob_Payment/template/payment/paymob.html":"<div class=\"payment-method\" data-bind=\"css: {'_active': (getCode() == isChecked())}\">\r\n    <div class=\"payment-method-title field choice\">\r\n        <input type=\"radio\" name=\"payment[method]\" class=\"radio\"\r\n            data-bind=\"attr: {'id': getCode()}, value: getCode(), checked: isChecked, click: selectPaymentMethod, visible: isRadioButtonVisible()\" />\r\n        <label data-bind=\"attr: {'for': getCode()}\" class=\"label\">\r\n            <img class=\"payment-icon\" data-bind=\"\r\n                attr: {\r\n                    src: logo() ? logo() : require.toUrl('Paymob_Payment/images/paymob.png'),\r\n                    alt: getTitle()\r\n                }\" />\r\n            <span data-bind=\"text: getTitle()\"></span></label>\r\n    </div>\r\n    <div class=\"payment-method-content\">\r\n        <!-- ko foreach: getRegion('messages') -->\r\n        <!-- ko template: getTemplate() --><!-- /ko -->\r\n        <!--/ko-->\r\n        <!-- <div class=\"payment-method-billing-address\">-->\r\n        <!-- ko foreach: $parent.getRegion(getBillingAddressFormName()) -->\r\n        <!-- ko template: getTemplate() --><!-- /ko -->\r\n        <!--/ko-->\r\n        <!--</div>-->\r\n\r\n        <div class=\"checkout-agreements-block\">\r\n            <!-- ko foreach: $parent.getRegion('before-place-order') -->\r\n            <!-- ko template: getTemplate() --><!-- /ko -->\r\n            <!--/ko-->\r\n        </div>\r\n\r\n        <div class=\"actions-toolbar\">\r\n            <div class=\"primary\">\r\n                <button data-role=\"review-save\" type=\"submit\" data-bind=\"\r\n                        attr: {title: $t('Place Order')},\r\n                        enable: (getCode() == isChecked()),\r\n                        click: placeOrder,\r\n                        css: {disabled: !isPlaceOrderActionAllowed()}\r\n                        \" class=\"action primary checkout\" disabled>\r\n                    <span data-bind=\"i18n: 'Place Order'\"></span>\r\n                </button>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n<style>\r\n    .payment-icon {\r\n        width: 17%;\r\n    }\r\n</style>","Smile_ElasticsuiteCatalog/template/attribute-filter.html":"<div class=\"field search\" data-bind=\"if: displaySearch\">\n    <div class=\"control\">\n        <input class=\"filter-search\"\n               type=\"text\"\n               autocomplete=\"off\"\n               data-bind=\"attr: {placeholder: searchPlaceholder}, event: {keyup: onSearchChange.bind(this), focusout: onSearchFocusOut}\" />\n    </div>\n</div>\n\n<ol class=\"items\" data-bind=\"foreach: getDisplayedItems()\">\n    <li class=\"item\">\n        <a data-bind=\"attr: {href:url, rel:$parent.displayRelNofollow}, visible: count >= 1\">\n            <input type=\"checkbox\"\n                   data-bind=\"checked: is_selected, attr: {id: id}\"\n                   onclick=\"this.parentNode.click();\" />\n            <label data-bind=\"attr: {for: id}\">\n                <span data-bind=\"text: label\"></span>\n                <span class=\"count\" data-bind=\"text: count, visible: $parent.displayProductCount\"></span>\n            </label>\n        </a>\n\n        <div data-bind=\"visible: count < 1\">\n            <span data-bind=\"text: label\"></span>\n            <span class=\"count\" data-bind=\"text: count\"></span>\n        </div>\n    </li>\n</ol>\n\n<div class=\"no-results-message empty\" data-bind=\"if: fulltextSearch() && !hasSearchResult()\">\n    <p data-bind=\"html: getSearchResultMessage()\"></p>\n</div>\n\n<div class=\"actions\" data-bind=\"visible: enableExpansion()\">\n    <div class=\"secondary\">\n        <a class=\"action show-more\" data-bind=\"visible: displayShowMore(), event: {click: onShowMore}\"><span data-bind=\"text: showMoreLabel\"></span></a>\n        <a class=\"action show-less\" data-bind=\"visible: displayShowLess(), event: {click: onShowLess}\"><span data-bind=\"text: showLessLabel\"></span></a>\n    </div>\n</div>\n","Smile_ElasticsuiteCatalog/template/autocomplete/product-attribute.html":"<dd class=\"<%- data.row_class %>\" id=\"qs-option-<%- data.index %>\" role=\"option\" href=\"<%- data.url %>\">\n    <span class=\"qs-option-name\"><%- data.title %></span>\n    <span class=\"product-attribute-label\"><%- data.attribute_label %></span>\n</dd>\n\n","Smile_ElasticsuiteCatalog/template/autocomplete/product.html":"<dd class=\"<%- data.row_class %>\" id=\"qs-option-<%- data.index %>\" role=\"option\" href=\"<%- data.url %>\">\n    <div class=\"product-image-box\">\n        <img width=\"45px\" height=\"45px\" src=\"<%- data.image %>\">\n    </div>\n    <div class=\"product-shop product-item\">\n        <div class=\"f-fix\">\n            <div class=\"product-primary\"><div class=\"product-name\"><%- data.title %></div></div>\n            <div class=\"product-secondary\">\n                <div class=\"price-box\">\n                    <span class=\"price\"><%= data.price %></span>\n                </div>\n            </div>\n        </div>\n        <div class=\"clear\"></div>\n    </div>\n    <div class=\"clear\"></div>\n</dd>\n","Smile_ElasticsuiteCatalog/template/autocomplete/category.html":"<dd class=\"<%- data.row_class %>\" id=\"qs-option-<%- data.index %>\" role=\"option\" href=\"<%- data.url %>\">\n    <span class=\"category-mini-crumb\"><%- data.breadcrumb.join(' > ').concat(' > ') %></span>\n    <span class=\"qs-option-name\"><%- data.title %></span>\n</dd>\n","mage/multiselect.html":"<div class=\"admin__action-multiselect-search-wrap\">\n    <input class=\"admin__control-text admin__action-multiselect-search\" data-role=\"advanced-select-text\" type=\"text\">\n    <label class=\"admin__action-multiselect-search-label\" data-action=\"advanced-select-search\"></label>\n    <div class=\"admin__action-multiselect-search-count\">\n        <span class=\"admin__action-multiselect-items-selected\">0</span> selected\n    </div>\n</div>","mage/gallery/gallery.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"fotorama-item\" data-gallery-role=\"gallery\">\n    <div data-gallery-role=\"fotorama__focusable-start\" tabindex=\"-1\"></div>\n    <div class=\"fotorama__wrap fotorama__wrap--css3 fotorama__wrap--slide fotorama__wrap--toggle-arrows\">\n        <div class=\"fotorama__stage\" data-fotorama-stage=\"fotorama__stage\">\n            <div class=\"fotorama__arr fotorama__arr--prev\" tabindex=\"0\" role=\"button\" aria-label=\"Previous\" data-gallery-role=\"arrow\">\n                <div class=\"fotorama__arr__arr\"></div>\n            </div>\n            <div class=\"fotorama__stage__shaft\" tabindex=\"0\" data-gallery-role=\"stage-shaft\">\n            </div>\n            <div class=\"fotorama__arr fotorama__arr--next fotorama__arr--disabled\" tabindex=\"-1\" role=\"button\"\n                 aria-label=\"Next\" data-gallery-role=\"arrow\">\n                <div class=\"fotorama__arr__arr\"></div>\n            </div>\n            <div class=\"fotorama__video-close\"></div>\n            <div class=\"fotorama__zoom-in\" data-gallery-role=\"fotorama__zoom-in\" aria-label=\"Zoom in\" role=\"button\" tabindex=\"0\"></div>\n            <div class=\"fotorama__zoom-out\" data-gallery-role=\"fotorama__zoom-out\" aria-label=\"Zoom out\" role=\"button\" tabindex=\"0\"></div>\n            <div class=\"fotorama__spinner\"></div>\n        </div>\n        <div class=\"fotorama__nav-wrap\" data-gallery-role=\"nav-wrap\">\n            <div class=\"fotorama__nav fotorama__nav--thumbs\">\n                <div class=\"fotorama__fullscreen-icon\" data-gallery-role=\"fotorama__fullscreen-icon\" tabindex=\"0\" aria-label=\"Exit fullscreen\" role=\"button\"></div>\n                <div class=\"fotorama__thumb__arr fotorama__thumb__arr--left\" role=\"button\" aria-label=\"Previous\" data-gallery-role=\"arrow\" tabindex = \"-1\">\n                    <div class=\"fotorama__thumb--icon\"></div>\n                </div>\n                <div class=\"fotorama__nav__shaft\">\n                    <div class=\"fotorama__thumb-border\"></div>\n                </div>\n                <div class=\"fotorama__thumb__arr fotorama__thumb__arr--right\" role=\"button\" aria-label=\"Next\" data-gallery-role=\"arrow\" tabindex = \"-1\">\n                    <div class=\"fotorama__thumb--icon\"></div>\n                </div>\n            </div>\n        </div>\n    </div>\n    <div data-gallery-role=\"fotorama__focusable-end\" tabindex=\"-1\"></div>\n</div>\n<div class=\"magnifier-preview\" data-gallery-role=\"magnifier\" id=\"preview\"></div>\n","Magento_Bundle/template/product/final_price.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<if args=\"hasPriceRange($row())\">\n    <div class=\"price-from\">\n        <with args=\"getPriceByCode('minimal_price')\">\n            <render args=\"getBody()\" ></render>\n        </with>\n        <with args=\"getPriceByCode('minimal_regular_price')\">\n            <render args=\"getBody()\" ></render>\n        </with>\n    </div>\n    <div class=\"price-to\">\n        <with args=\"getPriceByCode('max_price')\">\n            <render args=\"getBody()\" ></render>\n        </with>\n        <with args=\"getPriceByCode('max_regular_price')\">\n            <render args=\"getBody()\" ></render>\n        </with>\n    </div>\n</if>\n\n<ifnot args=\"hasPriceRange($row())\">\n    <with args=\"getPriceByCode('minimal_price')\">\n        <render args=\"getBody()\" ></render>\n    </with>\n    <with args=\"getPriceByCode('minimal_regular_price')\">\n        <render args=\"getBody()\" ></render>\n    </with>\n</ifnot>\n","Magento_Bundle/template/product/price/minimal_price.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<if args=\"getMinimalPriceAmount($row()) < getMaximumPriceAmount($row())\">\n    <span class=\"price-container\"\n          css=\"getAdjustmentCssClasses($row())\">\n        <span if=\"label\"\n              class=\"price-label\"\n              text=\"label\"></span>\n\n        <span class=\"price-wrapper\"\n              css=\"priceWrapperCssClasses\"\n              attr=\"priceWrapperAttr\"\n              data-price-amount=\"\"\n              data-price-type=\"\"\n              html=\"getMinimalPriceUnsanitizedHtml($row())\"></span>\n\n        <each args=\"data: getAdjustments(), as: '$adj'\">\n                <render args=\"$adj.getBody()\"></render>\n        </each>\n    </span>\n</if>\n","Magento_Vault/template/payment/form.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"payment-method\" css=\"'_active': (getId() === isChecked())\">\n    <div class=\"payment-method-title field choice\">\n        <input type=\"radio\"\n               name=\"payment[method]\"\n               class=\"radio\"\n               data-bind=\"\n                    attr: {'id': getId()},\n                    value: getId(),\n                    click: selectPaymentMethod,\n                    checked: isChecked,\n                    visible: isRadioButtonVisible()\"/>\n        <label class=\"label\" data-bind=\"attr: {'for': getId()}\">\n            <img data-bind=\"attr: {\n            'src': getIcons(getCardType()).url,\n            'width': getIcons(getCardType()).width,\n            'height': getIcons(getCardType()).height,\n            'alt': getIcons(getCardType()).title\n            }\" class=\"payment-icon\">\n            <span translate=\"'ending'\"></span>\n            <span text=\"getMaskedCard()\"></span>\n            (\n            <span translate=\"'expires'\"></span>:\n            <span text=\"getExpirationDate()\"></span>\n            )\n        </label>\n    </div>\n\n    <div class=\"payment-method-content\">\n        <each args=\"getRegion('messages')\" render=\"\"></each>\n        <div class=\"payment-method-billing-address\">\n            <each args=\"data: $parent.getRegion(getBillingAddressFormName()), as: '$item'\">\n                <render args=\"$item.getTemplate()\"></render>\n            </each>\n        </div>\n        <div class=\"checkout-agreements-block\">\n            <!-- ko foreach: $parent.getRegion('before-place-order') -->\n            <!-- ko template: getTemplate() --><!-- /ko -->\n            <!--/ko-->\n        </div>\n        <div class=\"actions-toolbar\">\n            <div class=\"primary\">\n                <button class=\"action primary checkout\"\n                        type=\"submit\"\n                        data-bind=\"\n                            click: placeOrder,\n                            attr: {title: $t('Place Order')},\n                            enable: isButtonActive()\n                        \"\n                    disabled>\n                    <span translate=\"'Place Order'\"></span>\n                </button>\n            </div>\n        </div>\n    </div>\n</div>\n","Smile_ElasticsuiteCore/template/autocomplete/term.html":"<!--\n/**\n * DISCLAIMER\n*\n * Do not edit or add to this file if you wish to upgrade Smile ElasticSuite to newer\n * versions in the future.\n*\n*\n * @category  Smile\n * @package   Smile\\ElasticsuiteCore\n * @author    Romain Ruaud <romain.ruaud@smile.fr>\n * @copyright 2020 Smile\n * @license   Open Software License (\"OSL\") v. 3.0\n*/\n-->\n<dd class=\"<%- data.row_class %>\" id=\"qs-option-<%- data.index %>\" role=\"option\">\n    <span class=\"qs-option-name\"><%- data.title %></span>\n    <span aria-hidden=\"true\" class=\"amount\"><%- data.num_results %></span>\n</dd>\n","Magento_Captcha/template/checkout/captcha.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<input name=\"captcha_form_id\" type=\"hidden\" data-bind=\"value: formId,  attr: {'data-scope': dataScope}\" />\n<!-- ko if: (isRequired() && getIsVisible())-->\n<div class=\"field captcha required\" data-bind=\"blockLoader: getIsLoading()\">\n    <label data-bind=\"attr: {for: 'captcha_' + formId}\" class=\"label\"><span data-bind=\"i18n: 'Please type the letters and numbers below'\"></span></label>\n    <div class=\"control captcha\">\n        <input name=\"captcha_string\" type=\"text\" class=\"input-text required-entry\" data-bind=\"value: captchaValue(), attr: {id: 'captcha_' + formId, 'data-scope': dataScope}\" autocomplete=\"off\"/>\n        <div class=\"nested\">\n            <div class=\"field captcha no-label\">\n                <div class=\"control captcha-image\">\n                    <img data-bind=\"attr: {\n                                        alt: $t('Please type the letters and numbers below'),\n                                        title: $t('Please type the letters and numbers below'),\n                                        height: imageHeight(),\n                                        src: getImageSource(),\n                                        }\"\n                         class=\"captcha-img\"/>\n                    <button type=\"button\" class=\"action reload captcha-reload\" data-bind=\"attr: {title: $t('Reload captcha')}, click: refresh\">\n                        <span data-bind=\"i18n: 'Reload captcha'\"></span>\n                    </button>\n                </div>\n            </div>\n            <!-- ko if: isCaseSensitive()-->\n            <div class=\"captcha-note note\" data-bind=\"i18n: 'Attention: Captcha is case sensitive.'\"></div>\n            <!-- /ko -->\n        </div>\n    </div>\n</div>\n<!-- /ko -->\n","Magento_ReCaptchaFrontendUi/template/reCaptcha.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n -->\n\n<div data-bind=\"{\n    attr: {\n        'id': getReCaptchaId() + '-wrapper'\n    },\n    'afterRender': renderReCaptcha()\n}\">\n    <div class=\"g-recaptcha\"></div>\n    <!-- ko if: (!getIsInvisibleRecaptcha()) -->\n    <div class=\"field\">\n        <div class=\"control\">\n            <input type=\"checkbox\"\n                   value=\"\"\n                   class=\"required-captcha checkbox\"\n                   name=\"recaptcha-validate-\"\n                   data-validate=\"{required:true}\"\n                   tabindex=\"-1\">\n        </div>\n    </div>\n    <!-- /ko -->\n</div>\n","Magento_CheckoutAgreements/template/checkout/checkout-agreements.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div data-role=\"checkout-agreements\">\n    <div class=\"checkout-agreements fieldset\" data-bind=\"visible: isVisible\">\n        <!-- ko foreach: agreements -->\n            <!-- ko if: ($parent.isAgreementRequired($data)) -->\n            <div class=\"checkout-agreement field choice required\">\n                <input type=\"checkbox\" class=\"required-entry\"\n                       data-bind=\"attr: {\n                                    'id': $parent.getCheckboxId($parentContext, agreementId),\n                                    'name': 'agreement[' + agreementId + ']',\n                                    'value': agreementId\n                                    }\"/>\n                <label class=\"label\" data-bind=\"attr: {'for': $parent.getCheckboxId($parentContext, agreementId)}\">\n                    <button type=\"button\"\n                            class=\"action action-show\"\n                            data-bind=\"click: function(data, event) { return $parent.showContent(data, event) }\"\n                            >\n                        <span data-bind=\"html: checkboxText\"></span>\n                    </button>\n                </label>\n            </div>\n            <!-- /ko -->\n            <!-- ko ifnot: ($parent.isAgreementRequired($data)) -->\n            <div class=\"checkout-agreement\">\n                <button type=\"button\" class=\"action action-show\"\n                        data-bind=\"click: function(data, event) { return $parent.showContent(data, event) }\">\n                    <span data-bind=\"html: checkboxText\"></span>\n                </button>\n            </div>\n            <!-- /ko -->\n        <!-- /ko -->\n        <div id=\"checkout-agreements-modal\" data-bind=\"afterRender: initModal\" style=\"display: none\">\n            <div class=\"checkout-agreements-item-content\" data-bind=\"html: modalContent, style: {height: contentHeight, overflow:'auto' }\"></div>\n        </div>\n    </div>\n</div>\n","Magento_Persistent/template/remember-me.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<!-- ko if: isRememberMeCheckboxVisible() -->\n<div id=\"remember-me-box\" class=\"field choice persistent\">\n    <input type=\"checkbox\" name=\"persistent_remember_me\" class=\"checkbox\" id=\"persistent_remember_me\" data-bind=\"checked: isRememberMeCheckboxChecked, attr: {title: $t('Remember Me'), 'data-scope': dataScope}\" />\n    <label for=\"persistent_remember_me\" class=\"label\"><span data-bind=\"i18n: 'Remember Me'\"></span></label>\n    <span class=\"tooltip wrapper\">\n        <strong class=\"tooltip toggle\" data-bind=\"i18n: 'What\\'s this?'\"></strong>\n        <span class=\"tooltip content\" data-bind=\"i18n: 'Check \\'Remember Me\\' to access your shopping cart on this computer even if you are not signed in.'\"></span></span>\n</div>\n<!-- /ko -->\n","Magento_ReCaptchaCheckout/template/payment-recaptcha-container.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n -->\n<div>\n    <each args=\"data: getRegion('place-order-recaptcha'), as: 'recaptcha'\" render=\"\"></each>\n</div>\n<hr />\n","Magento_Checkout/template/payment.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<li id=\"payment\" role=\"presentation\" class=\"checkout-payment-method\" data-bind=\"fadeVisible: isVisible\">\n    <div id=\"checkout-step-payment\"\n         class=\"step-content\"\n         data-role=\"content\"\n         role=\"tabpanel\"\n         aria-hidden=\"false\">\n        <!-- ko if: (quoteIsVirtual) -->\n            <!-- ko foreach: getRegion('customer-email') -->\n                <!-- ko template: getTemplate() --><!-- /ko -->\n            <!--/ko-->\n        <!--/ko-->\n        <form id=\"co-payment-form\" class=\"form payments\" novalidate=\"novalidate\">\n            <input data-bind='attr: {value: getFormKey()}' type=\"hidden\" name=\"form_key\">\n            <fieldset class=\"fieldset\">\n                <legend class=\"legend\">\n                    <span data-bind=\"i18n: 'Payment Information'\"></span>\n                </legend>\n                <!-- ko foreach: getRegion('place-order-captcha') -->\n                    <!-- ko template: getTemplate() --><!-- /ko -->\n                <!-- /ko -->\n                <!-- ko foreach: getRegion('beforeMethods') -->\n                    <!-- ko template: getTemplate() --><!-- /ko -->\n                <!-- /ko -->\n                <div id=\"checkout-payment-method-load\" class=\"opc-payment\" data-bind=\"visible: isPaymentMethodsAvailable\">\n                    <!-- ko foreach: getRegion('payment-methods-list') -->\n                        <!-- ko template: getTemplate() --><!-- /ko -->\n                    <!-- /ko -->\n                </div>\n                <div class=\"no-quotes-block\" data-bind=\"visible: isPaymentMethodsAvailable() == false\">\n                    <!-- ko i18n: 'No Payment method available.'--><!-- /ko -->\n                </div>\n                <!-- ko foreach: getRegion('afterMethods') -->\n                    <!-- ko template: getTemplate() --><!-- /ko -->\n                <!-- /ko -->\n            </fieldset>\n        </form>\n    </div>\n</li>\n","Magento_Checkout/template/onepage.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<!-- ko foreach: getRegion('authentication') -->\n<!-- ko template: getTemplate() --><!-- /ko -->\n<!--/ko-->\n\n<!-- ko foreach: getRegion('progressBar') -->\n<!-- ko template: getTemplate() --><!-- /ko -->\n<!--/ko-->\n\n<!-- ko foreach: getRegion('estimation') -->\n    <!-- ko template: getTemplate() --><!-- /ko -->\n<!--/ko-->\n\n<!-- ko foreach: getRegion('messages') -->\n    <!-- ko template: getTemplate() --><!-- /ko -->\n<!--/ko-->\n<div class=\"opc-wrapper\">\n    <ol class=\"opc\" id=\"checkoutSteps\">\n    <!-- ko foreach: getRegion('steps') -->\n        <!-- ko template: getTemplate() --><!-- /ko -->\n    <!--/ko-->\n    </ol>\n</div>\n\n<!-- ko foreach: getRegion('sidebar') -->\n    <!-- ko template: getTemplate() --><!-- /ko -->\n<!--/ko-->\n","Magento_Checkout/template/shipping-information.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n\n<!-- ko if: (isVisible()) -->\n<div class=\"shipping-information\">\n    <div class=\"ship-to\">\n        <div class=\"shipping-information-title\">\n            <span data-bind=\"i18n: 'Ship To:'\"></span>\n            <button class=\"action action-edit\" data-bind=\"click: back\">\n                <span data-bind=\"i18n: 'edit'\"></span>\n            </button>\n        </div>\n        <div class=\"shipping-information-content\">\n            <!-- ko foreach: getRegion('ship-to') -->\n            <!-- ko template: getTemplate() --><!-- /ko -->\n            <!--/ko-->\n        </div>\n    </div>\n    <div class=\"ship-via\">\n        <div class=\"shipping-information-title\">\n            <span data-bind=\"i18n: 'Shipping Method:'\"></span>\n            <button class=\"action action-edit\" data-bind=\"click: backToShippingMethod\">\n                <span data-bind=\"i18n: 'edit'\"></span>\n            </button>\n        </div>\n        <div class=\"shipping-information-content\">\n            <span class=\"value\" data-bind=\"text: getShippingMethodTitle()\"></span>\n        </div>\n    </div>\n</div>\n<!--/ko-->\n","Magento_Checkout/template/registration.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<!-- ko foreach: getRegion('messages') -->\n    <!-- ko template: getTemplate() --><!-- /ko -->\n<!--/ko-->\n<div>\n    <!-- ko if: isFormVisible -->\n    <p data-bind=\"i18n: 'You can track your order status by creating an account.'\"></p>\n    <p><span data-bind=\"i18n: 'Email Address'\"></span>: <span data-bind=\"text: getEmailAddress()\"></span></p>\n    <a class=\"action primary\" data-bind=\"attr: { href: getUrl() }\">\n        <span data-bind=\"i18n: 'Create an Account'\"></span>\n    </a>\n    <!--/ko-->\n</div>\n","Magento_Checkout/template/shipping.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<li id=\"shipping\" class=\"checkout-shipping-address\" data-bind=\"fadeVisible: visible()\">\n    <div class=\"step-title\" translate=\"'Shipping Address'\" data-role=\"title\"></div>\n    <div id=\"checkout-step-shipping\"\n         class=\"step-content\"\n         data-role=\"content\">\n\n        <each if=\"!quoteIsVirtual\" args=\"getRegion('customer-email')\" render=\"\" ></each>\n        <each args=\"getRegion('address-list')\" render=\"\" ></each>\n        <each args=\"getRegion('address-list-additional-addresses')\" render=\"\" ></each>\n\n        <!-- Address form pop up -->\n        <if args=\"!isFormInline\">\n            <div class=\"new-address-popup\">\n                <button type=\"button\"\n                        class=\"action action-show-popup\"\n                        click=\"showFormPopUp\"\n                        visible=\"!isNewAddressAdded()\">\n                    <span translate=\"'New Address'\"></span>\n                </button>\n            </div>\n            <div id=\"opc-new-shipping-address\"\n                 visible=\"isFormPopUpVisible()\"\n                 render=\"shippingFormTemplate\"></div>\n        </if>\n\n        <each args=\"getRegion('before-form')\" render=\"\" ></each>\n\n        <!-- Inline address form -->\n        <render if=\"isFormInline\" args=\"shippingFormTemplate\"></render>\n    </div>\n</li>\n\n<!--Shipping method template-->\n<li id=\"opc-shipping_method\"\n    class=\"checkout-shipping-method\"\n    data-bind=\"fadeVisible: visible(), blockLoader: isLoading\"\n    role=\"presentation\">\n    <div class=\"checkout-shipping-method\">\n        <div class=\"step-title\"\n             translate=\"'Shipping Methods'\"\n             data-role=\"title\"></div>\n\n        <each args=\"getRegion('before-shipping-method-form')\" render=\"\" ></each>\n\n        <div id=\"checkout-step-shipping_method\"\n             class=\"step-content\"\n             data-role=\"content\"\n             role=\"tabpanel\"\n             aria-hidden=\"false\">\n            <form id=\"co-shipping-method-form\"\n                  class=\"form methods-shipping\"\n                  if=\"rates().length\"\n                  submit=\"setShippingInformation\"\n                  novalidate=\"novalidate\">\n\n                <render args=\"shippingMethodListTemplate\"></render>\n\n                <div id=\"onepage-checkout-shipping-method-additional-load\">\n                    <each args=\"getRegion('shippingAdditional')\" render=\"\" ></each>\n                </div>\n                <div role=\"alert\"\n                     if=\"errorValidationMessage().length\"\n                     class=\"message notice\">\n                    <span text=\"errorValidationMessage()\"></span>\n                </div>\n                <div class=\"actions-toolbar\" id=\"shipping-method-buttons-container\">\n                    <div class=\"primary\">\n                        <button data-role=\"opc-continue\" type=\"submit\" class=\"button action continue primary\">\n                            <span translate=\"'Next'\"></span>\n                        </button>\n                    </div>\n                </div>\n            </form>\n            <div class=\"no-quotes-block\"\n                 ifnot=\"rates().length > 0\"\n                 translate=\"'Sorry, no quotes are available for this order at this time'\"></div>\n        </div>\n    </div>\n</li>\n","Magento_Checkout/template/authentication.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"authentication-wrapper\" data-block=\"authentication\" data-bind=\"visible: isActive()\">\n    <button\n        type=\"button\"\n        class=\"action action-auth-toggle\"\n        data-trigger=\"authentication\">\n        <span data-bind=\"i18n: 'Sign In'\"></span>\n    </button>\n    <div class=\"block-authentication\"\n         style=\"display: none\"\n         data-bind=\"mageInit: {\n            'Magento_Ui/js/modal/modal':{\n                'type': 'custom',\n                'modalClass': 'authentication-dropdown',\n                'trigger': '[data-trigger=authentication]',\n                'wrapperClass': 'authentication-wrapper',\n                'parentModalClass': '_has-modal-custom _has-auth-shown',\n                'responsive': true,\n                'responsiveClass': 'custom-slide',\n                'overlayClass': 'dropdown-overlay modal-custom-overlay',\n                'buttons': []\n            }}\">\n        <!-- ko foreach: getRegion('before') -->\n        <!-- ko template: getTemplate() --><!-- /ko -->\n        <!-- /ko -->\n        <div class=\"block block-customer-login\"\n             data-bind=\"attr: {'data-label': $t('or')}\">\n            <div class=\"block-title\">\n                <strong id=\"block-customer-login-heading\"\n                    role=\"heading\"\n                    aria-level=\"2\"\n                    data-bind=\"i18n: 'Sign In'\"></strong>\n            </div>\n            <!-- ko foreach: getRegion('messages') -->\n            <!-- ko template: getTemplate() --><!-- /ko -->\n            <!--/ko-->\n            <div class=\"block-content\" aria-labelledby=\"block-customer-login-heading\">\n                <form data-role=\"login\"\n                      data-bind=\"submit:login\"\n                      method=\"post\"\n                      novalidate=\"novalidate\">\n                    <div class=\"fieldset\"\n                              data-bind=\"attr: {'data-hasrequired': $t('* Required Fields')}\">\n                        <div class=\"field field-email required\">\n                            <label class=\"label\" for=\"login-email\"><span data-bind=\"i18n: 'Email Address'\"></span></label>\n                            <div class=\"control\">\n                                <input name=\"username\"\n                                       id=\"login-email\"\n                                       type=\"email\"\n                                       class=\"input-text\"\n                                       data-bind=\"attr: {autocomplete: autocomplete}\"\n                                       data-validate=\"{required:true, 'validate-email':true}\"\n                                />\n                            </div>\n                        </div>\n                        <div class=\"field field-password required\">\n                            <label for=\"login-password\" class=\"label\"><span data-bind=\"i18n: 'Password'\"></span></label>\n                            <div class=\"control\">\n                                <input type=\"password\"\n                                       class=\"input-text\"\n                                       id=\"login-password\"\n                                       name=\"password\"\n                                       data-bind=\"attr: {autocomplete: autocomplete}\"\n                                       data-validate=\"{required:true}\"\n                                       autocomplete=\"off\"/>\n                            </div>\n                        </div>\n                        <!-- ko foreach: getRegion('additional-login-form-fields') -->\n                        <!-- ko template: getTemplate() --><!-- /ko -->\n                        <!-- /ko -->\n                    </div>\n                    <div class=\"actions-toolbar\">\n                        <input name=\"context\" type=\"hidden\" value=\"checkout\" />\n                        <div class=\"primary\">\n                            <button type=\"submit\" class=\"action action-login secondary\"><span data-bind=\"i18n: 'Sign In'\"></span></button>\n                        </div>\n                        <div class=\"secondary\">\n                            <a class=\"action action-remind\" data-bind=\"attr: { href: forgotPasswordUrl }\">\n                                <span data-bind=\"i18n: 'Forgot Your Password?'\"></span>\n                            </a>\n                        </div>\n                    </div>\n                </form>\n            </div>\n        </div>\n    </div>\n</div>\n","Magento_Checkout/template/estimation.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"opc-estimated-wrapper\" data-bind=\"blockLoader: isLoading\">\n    <div class=\"estimated-block\">\n        <span class=\"estimated-label\" data-bind=\"i18n: 'Estimated Total'\"></span>\n        <span class=\"estimated-price\" data-bind=\"text: getValue()\"></span>\n    </div>\n    <div class=\"minicart-wrapper\">\n        <button type=\"button\" class=\"action showcart\" data-bind=\"click: showSidebar\" data-toggle=\"opc-summary\">\n            <span class=\"counter qty\">\n                <span class=\"counter-number\" data-bind=\"text: getQuantity()\"></span>\n            </span>\n        </button>\n    </div>\n</div>\n","Magento_Checkout/template/billing-address.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"checkout-billing-address\">\n    <div class=\"billing-address-same-as-shipping-block field choice\" data-bind=\"visible: canUseShippingAddress()\">\n        <input type=\"checkbox\" name=\"billing-address-same-as-shipping\"\n               data-bind=\"checked: isAddressSameAsShipping, click: useShippingAddress, attr: {id: 'billing-address-same-as-shipping-' + getCode($parent)}\"/>\n        <label data-bind=\"attr: {for: 'billing-address-same-as-shipping-' + getCode($parent)}\"><span\n                data-bind=\"i18n: 'My billing and shipping address are the same'\"></span></label>\n    </div>\n    <render args=\"detailsTemplate\"></render>\n    <fieldset class=\"fieldset\" data-bind=\"visible: !isAddressDetailsVisible()\">\n        <each args=\"getRegion('billing-address-list')\" render=\"\"></each>\n        <div data-bind=\"fadeVisible: isAddressFormVisible\">\n            <render args=\"formTemplate\"></render>\n        </div>\n        <render args=\"actionsTemplate\"></render>\n    </fieldset>\n</div>\n","Magento_Checkout/template/sidebar.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n\n<div id=\"opc-sidebar\"\n     data-bind=\"afterRender:setModalElement, mageInit: {\n    'Magento_Ui/js/modal/modal':{\n        'type': 'custom',\n        'modalClass': 'opc-sidebar opc-summary-wrapper',\n        'wrapperClass': 'checkout-container',\n        'parentModalClass': '_has-modal-custom',\n        'responsive': true,\n        'responsiveClass': 'custom-slide',\n        'overlayClass': 'modal-custom-overlay',\n        'buttons': []\n    }}\">\n\n    <!-- ko foreach: getRegion('summary') -->\n        <!-- ko template: getTemplate() --><!-- /ko -->\n    <!--/ko-->\n\n    <div class=\"opc-block-shipping-information\">\n        <!-- ko foreach: getRegion('shipping-information') -->\n        <!-- ko template: getTemplate() --><!-- /ko -->\n        <!--/ko-->\n    </div>\n</div>\n","Magento_Checkout/template/progress-bar.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<ul class=\"opc-progress-bar\">\n    <!-- ko foreach: { data: steps().sort(sortItems), as: 'item' } -->\n        <li class=\"opc-progress-bar-item\" data-bind=\"css: item.isVisible() ? '_active' : ($parent.isProcessed(item) ? '_complete' : '')\">\n            <span data-bind=\"i18n: item.title, click: $parent.navigateTo\"></span>\n        </li>\n    <!-- /ko -->\n</ul>\n","Magento_Checkout/template/summary.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"opc-block-summary\" data-bind=\"blockLoader: isLoading\">\n    <span data-bind=\"i18n: 'Order Summary'\" class=\"title\"></span>\n    <!-- ko foreach: elems() -->\n        <!-- ko template: getTemplate() --><!-- /ko -->\n    <!-- /ko -->\n</div>\n","Magento_Checkout/template/form/element/email.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<!-- ko ifnot: isCustomerLoggedIn() -->\n\n<!-- ko foreach: getRegion('before-login-form') -->\n<!-- ko template: getTemplate() --><!-- /ko -->\n<!-- /ko -->\n<form class=\"form form-login\" data-role=\"email-with-possible-login\"\n      data-bind=\"submit:login\"\n      method=\"post\">\n    <fieldset id=\"customer-email-fieldset\" class=\"fieldset\" data-bind=\"blockLoader: isLoading\">\n        <div class=\"field required\">\n            <label class=\"label\" for=\"customer-email\"><span data-bind=\"i18n: 'Email Address'\"></span></label>\n            <div class=\"control _with-tooltip\">\n                <input class=\"input-text\"\n                       type=\"email\"\n                       data-bind=\"\n                            textInput: email,\n                            hasFocus: emailFocused,\n                            afterRender: emailHasChanged,\n                            mageInit: {'mage/trim-input':{}}\"\n                       name=\"username\"\n                       data-validate=\"{required:true, 'validate-email':true}\"\n                       id=\"customer-email\" />\n                <!-- ko template: 'ui/form/element/helper/tooltip' --><!-- /ko -->\n                <span class=\"note\" data-bind=\"fadeVisible: isPasswordVisible() == false\"><!-- ko i18n: 'You can create an account after checkout.'--><!-- /ko --></span>\n            </div>\n        </div>\n\n        <!--Hidden fields -->\n        <fieldset class=\"fieldset hidden-fields\" data-bind=\"fadeVisible: isPasswordVisible\">\n            <div class=\"field\">\n                <label class=\"label\" for=\"customer-password\"><span data-bind=\"i18n: 'Password'\"></span></label>\n                <div class=\"control\">\n                    <input class=\"input-text\"\n                           data-bind=\"\n                                attr: {\n                                    placeholder: $t('Password'),\n                                }\"\n                           type=\"password\"\n                           name=\"password\"\n                           id=\"customer-password\"\n                           data-validate=\"{required:true}\" autocomplete=\"off\"/>\n                    <span class=\"note\" data-bind=\"i18n: 'You already have an account with us. Sign in or continue as guest.'\"></span>\n                </div>\n\n            </div>\n            <!-- ko foreach: getRegion('additional-login-form-fields') -->\n            <!-- ko template: getTemplate() --><!-- /ko -->\n            <!-- /ko -->\n            <div class=\"actions-toolbar\">\n                <input name=\"context\" type=\"hidden\" value=\"checkout\" />\n                <div class=\"primary\">\n                    <button type=\"submit\" class=\"action login primary\" data-action=\"checkout-method-login\"><span data-bind=\"i18n: 'Login'\"></span></button>\n                </div>\n                <div class=\"secondary\">\n                    <a class=\"action remind\" data-bind=\"attr: { href: forgotPasswordUrl }\">\n                        <span data-bind=\"i18n: 'Forgot Your Password?'\"></span>\n                    </a>\n                </div>\n            </div>\n        </fieldset>\n        <!--Hidden fields -->\n    </fieldset>\n</form>\n<!-- /ko -->\n","Magento_Checkout/template/payment-methods/list.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n -->\n<div if=\"isPaymentMethodsAvailable()\"\n     class=\"items payment-methods\">\n    <div repeat=\"foreach: paymentGroupsList, item: '$group'\"\n         class=\"payment-group\">\n        <div if=\"regionHasElements($group().displayArea)\"\n             translate=\"getGroupTitle($group)\"\n             class=\"step-title\"\n             data-role=\"title\">\n        </div>\n        <each args=\"data: getRegion($group().displayArea), as: 'method'\" render=\"\"></each>\n    </div>\n</div>\n<div ifnot=\"isPaymentMethodsAvailable()\"\n     class=\"no-payments-block\"\n     translate=\"'No Payment Methods'\">\n</div>\n","Magento_Checkout/template/cart/shipping-rates.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<form id=\"co-shipping-method-form\" data-bind=\"blockLoader: isLoading, visible: isVisible()\">\n    <p class=\"field note\" data-bind=\"visible: (!isLoading() && shippingRates().length <= 0)\">\n        <!-- ko text: $t('Sorry, no quotes are available for this order at this time')--><!-- /ko -->\n    </p>\n    <fieldset class=\"fieldset rate\" data-bind=\"visible: (shippingRates().length > 0)\">\n        <dl class=\"items methods\" data-bind=\"foreach: shippingRateGroups\">\n            <dt class=\"item-title\"><span data-bind=\"text: $data\"></span></dt>\n            <dd class=\"item-options\" data-bind=\"foreach: { data:$parent.getRatesForGroup($data), as: 'method' }\">\n                <div data-bind=\"css: {'field choice item': available, 'message error': !available} \">\n                    <!-- ko ifnot: (available) -->\n                    <div data-bind=\"text: error_message\"></div>\n                    <!-- /ko -->\n                    <!-- ko if: (available) -->\n                    <input type=\"radio\"\n                           class=\"radio\"\n                           data-bind=\"\n                                click: $parents[1].selectShippingMethod,\n                                checked: $parents[1].selectedShippingMethod,\n                                attr: {\n                                        value: carrier_code + '_' + method_code,\n                                        id: 's_method_' + carrier_code + '_' + method_code,\n                                        disabled: false\n                                        }\n                                \"/>\n                    <label class=\"label\" data-bind=\"attr: {for: 's_method_' + carrier_code + '_' + method_code}\">\n                        <!-- ko text: $data.method_title --><!-- /ko -->\n                        <each args=\"element.getRegion('price')\" render=\"\"></each>\n                    </label>\n                    <!-- /ko -->\n                </div>\n            </dd>\n        </dl>\n    </fieldset>\n</form>\n","Magento_Checkout/template/cart/totals.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"table-wrapper\" data-bind=\"blockLoader: isLoading\">\n    <table class=\"data table totals\">\n        <caption class=\"table-caption\" data-bind=\"text: $t('Total')\"></caption>\n        <tbody>\n        <!-- ko foreach: elems() -->\n            <!-- ko template: getTemplate() --><!-- /ko -->\n        <!-- /ko -->\n        </tbody>\n    </table>\n</div>\n","Magento_Checkout/template/cart/shipping-estimation.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<form method=\"post\" id=\"shipping-zip-form\">\n    <fieldset class=\"fieldset estimate\">\n        <legend class=\"legend\">\n            <span data-bind=\"text: isVirtual ? $t('Estimate Tax') : $t('Estimate Shipping and Tax') \"></span>\n        </legend><br/>\n        <p class=\"field note\" data-bind=\"text: isVirtual ? $t('Enter your billing address to get a tax estimate.') : $t('Enter your destination to get a shipping estimate.')\"></p>\n        <!-- ko foreach: getRegion('address-fieldsets') -->\n        <!-- ko template: getTemplate() --><!-- /ko -->\n        <!--/ko-->\n    </fieldset>\n</form>\n","Magento_Checkout/template/cart/totals/subtotal.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<tr class=\"totals sub\">\n    <th class=\"mark\" colspan=\"1\" scope=\"row\" data-bind=\"i18n: title\"></th>\n    <td class=\"amount\" data-th=\"Subtotal\">\n        <span class=\"price\" data-bind=\"text: getValue()\"></span>\n    </td>\n</tr>\n","Magento_Checkout/template/cart/totals/grand-total.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<tr class=\"grand totals\">\n    <th class=\"mark\" colspan=\"1\" scope=\"row\">\n        <strong data-bind=\"i18n: title\"></strong>\n    </th>\n    <td class=\"amount\" data-th=\"Order Total\">\n        <strong><span class=\"price\" data-bind=\"text: getValue()\"></span></strong>\n    </td>\n</tr>\n","Magento_Checkout/template/cart/totals/shipping.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<!-- ko if: isCalculated() -->\n<tr class=\"totals shipping excl\">\n    <th class=\"mark\" colspan=\"1\" scope=\"row\" data-bind=\"text: title + ' (' + getShippingMethodTitle() + ')'\"></th>\n    <td class=\"amount\">\n        <span class=\"price\" data-bind=\"text: getValue()\"></span>\n    </td>\n</tr>\n<!-- /ko -->\n","Magento_Checkout/template/shipping-information/list.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n\n<!-- ko foreach: { data: elems, as: 'element' } -->\n<!-- ko template: element.getTemplate() --><!-- /ko -->\n<!-- /ko -->\n","Magento_Checkout/template/shipping-information/address-renderer/default.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<if args=\"visible()\">\n    <text args=\"address().prefix\"></text> <text args=\"address().firstname\"></text> <text args=\"address().middlename\"></text>\n    <text args=\"address().lastname\"></text> <text args=\"address().suffix\"></text><br>\n    <if args=\"address().company\">\n        <text args=\"address().company\"></text><br>\n    </if>\n    <text args=\"_.values(_.compact(address().street)).join(', ')\"></text><br>\n    <text args=\"address().city \"></text>, <span text=\"address().region\"></span> <text args=\"address().postcode\"></text><br>\n    <text args=\"getCountryName(address().countryId)\"></text><br>\n    <a if=\"address().telephone\" attr=\"'href': 'tel:' + address().telephone\" text=\"address().telephone\"></a><br>\n    <if args=\"address().vatId\">\n        VAT: <text args=\"address().vatId\"></text><br>\n    </if>\n    <each args=\"data: address().customAttributes, as: 'element'\">\n        <text args=\"$parent.getCustomAttributeLabel(element)\"></text>\n        <br>\n    </each>\n</if>\n","Magento_Checkout/template/billing-address/list.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"field field-select-billing\">\n    <label class=\"label\"><span data-bind=\"i18n: 'Billing Address'\"></span></label>\n    <div class=\"control\" data-bind=\"if: (addressOptions.length > 1)\">\n        <select class=\"select\" name=\"billing_address_id\" data-bind=\"\n        options: addressOptions,\n        optionsText: addressOptionsText,\n        value: selectedAddress,\n        event: {change: onAddressChange(selectedAddress())};\n    \"></select>\n    </div>\n</div>\n","Magento_Checkout/template/billing-address/actions.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"actions-toolbar\">\n    <div class=\"primary\">\n        <button class=\"action action-update\"\n                type=\"button\"\n                click=\"updateAddress\">\n            <span translate=\"'Update'\"></span>\n        </button>\n        <button class=\"action action-cancel\"\n                type=\"button\"\n                click=\"cancelAddressEdit\"\n                visible=\"canUseCancelBillingAddress()\">\n            <span translate=\"'Cancel'\"></span>\n        </button>\n    </div>\n</div>\n","Magento_Checkout/template/billing-address/form.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"billing-address-form\">\n    <!-- ko foreach: getRegion('before-fields') -->\n    <!-- ko template: getTemplate() --><!-- /ko -->\n    <!--/ko-->\n    <form data-bind=\"attr: {'data-hasrequired': $t('* Required Fields')}\">\n        <fieldset class=\"fieldset address\" data-form=\"billing-new-address\">\n            <!-- ko foreach: getRegion('additional-fieldsets') -->\n            <!-- ko template: getTemplate() --><!-- /ko -->\n            <!--/ko-->\n            <!-- ko if: (isCustomerLoggedIn && customerHasAddresses) -->\n            <div class=\"choice field\">\n                <input type=\"checkbox\" class=\"checkbox\"  data-bind=\"checked: saveInAddressBook, attr: {id: 'billing-save-in-address-book-' + getCode($parent)}\" />\n                <label class=\"label\" data-bind=\"attr: {for: 'billing-save-in-address-book-' + getCode($parent)}\" >\n                    <span data-bind=\"i18n: 'Save in address book'\"></span>\n                </label>\n            </div>\n            <!-- /ko -->\n        </fieldset>\n    </form>\n</div>\n","Magento_Checkout/template/billing-address/details.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div if=\"isAddressDetailsVisible() && currentBillingAddress()\" class=\"billing-address-details\">\n    <text args=\"currentBillingAddress().prefix\"></text> <text args=\"currentBillingAddress().firstname\"></text>\n    <text args=\"currentBillingAddress().middlename\"></text>\n    <text args=\"currentBillingAddress().lastname\"></text> <text args=\"currentBillingAddress().suffix\"></text><br>\n    <if args=\"currentBillingAddress().company\">\n        <text args=\"currentBillingAddress().company\"></text><br>\n    </if>\n    <text args=\"_.values(_.compact(currentBillingAddress().street)).join(', ')\"></text><br>\n    <text args=\"currentBillingAddress().city \"></text>, <span text=\"currentBillingAddress().region\"></span>\n    <text args=\"currentBillingAddress().postcode\"></text><br>\n    <text args=\"getCountryName(currentBillingAddress().countryId)\"></text><br>\n    <a if=\"currentBillingAddress().telephone\" attr=\"'href': 'tel:' + currentBillingAddress().telephone\" text=\"currentBillingAddress().telephone\"></a><br>\n    <if args=\"currentBillingAddress().vatId\">\n        VAT: <text args=\"currentBillingAddress().vatId\"></text><br>\n    </if>\n    <each args=\"data: currentBillingAddress().customAttributes, as: 'element'\">\n        <text args=\"$parent.getCustomAttributeLabel(element)\"></text>\n        <br>\n    </each>\n\n    <button visible=\"!isAddressSameAsShipping()\"\n            type=\"button\"\n            class=\"action action-edit-address\"\n            click=\"editAddress\">\n        <span translate=\"'Edit'\"></span>\n    </button>\n</div>\n\n","Magento_Checkout/template/summary/totals.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<!-- ko if: isDisplayed() -->\n<table class=\"data table table-totals\">\n    <caption class=\"table-caption\" data-bind=\"i18n: 'Order Summary'\"></caption>\n    <tbody>\n    <!-- ko foreach: elems() -->\n        <!-- ko template: getTemplate() --><!-- /ko -->\n    <!-- /ko -->\n    </tbody>\n</table>\n<!-- /ko -->\n","Magento_Checkout/template/summary/subtotal.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n\n<tr class=\"totals\">\n    <th class=\"mark\" scope=\"row\" data-bind=\"text: title\"></th>\n    <td class=\"amount\">\n        <span class=\"price\" data-bind =\"text: getValue(), attr:{'data-label': title}\"></span>\n        <!-- ko foreach: elems() -->\n            <!-- ko template: getTemplate() --><!-- /ko -->\n        <!-- /ko -->\n    </td>\n</tr>\n","Magento_Checkout/template/summary/grand-total.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<!-- ko if: isDisplayed() -->\n<tr class=\"grand totals\">\n    <td class=\"mark\" scope=\"row\">\n        <strong data-bind=\"i18n: title\"></strong>\n    </td>\n    <td class=\"amount\" data-bind=\"attr: {'data-th': $t(title)}\">\n        <strong><span class=\"price\" data-bind=\"text: getValue()\"></span></strong>\n        <!-- ko foreach: elems() -->\n            <!-- ko template: getTemplate() --><!-- /ko -->\n        <!-- /ko -->\n    </td>\n</tr>\n<!-- /ko -->\n","Magento_Checkout/template/summary/cart-items.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"block items-in-cart\" data-bind=\"mageInit: {'collapsible':{'openedState': 'active', 'active': isItemsBlockExpanded()}}\">\n    <div class=\"title\" data-role=\"title\">\n        <strong role=\"heading\" aria-level=\"1\">\n            <translate args=\"maxCartItemsToDisplay\" if=\"maxCartItemsToDisplay < getCartLineItemsCount()\"></translate>\n            <translate args=\"'of'\" if=\"maxCartItemsToDisplay < getCartLineItemsCount()\"></translate>\n            <span data-bind=\"text: getCartSummaryItemsCount().toLocaleString(window.LOCALE)\"></span>\n            <translate args=\"'Item in Cart'\" if=\"getCartSummaryItemsCount() === 1\"></translate>\n            <translate args=\"'Items in Cart'\" if=\"getCartSummaryItemsCount() > 1\"></translate>\n        </strong>\n    </div>\n    <div class=\"content minicart-items\" data-role=\"content\">\n        <div class=\"minicart-items-wrapper\">\n            <ol class=\"minicart-items\">\n                <each args=\"items()\">\n                    <li class=\"product-item\">\n                        <div class=\"product\">\n                            <each args=\"$parent.elems()\" render=\"\"></each>\n                        </div>\n                    </li>\n                </each>\n            </ol>\n        </div>\n    </div>\n    <div class=\"actions-toolbar\" if=\"maxCartItemsToDisplay < getCartLineItemsCount()\">\n        <div class=\"secondary\">\n            <a class=\"action viewcart\" data-bind=\"attr: {href: cartUrl}\">\n                <span data-bind=\"i18n: 'View and Edit Cart'\"></span>\n            </a>\n        </div>\n    </div>\n</div>\n","Magento_Checkout/template/summary/shipping.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<!-- ko if: quoteIsVirtual == 0 -->\n    <tr class=\"totals shipping excl\">\n        <th class=\"mark\" scope=\"row\">\n            <span class=\"label\" data-bind=\"i18n: title\"></span>\n            <span class=\"value\" data-bind=\"text: getShippingMethodTitle()\"></span>\n        </th>\n        <td class=\"amount\">\n            <!-- ko if: isCalculated() -->\n            <span class=\"price\"\n                  data-bind=\"text: getValue(), attr: {'data-th': title}\"></span>\n            <!-- /ko -->\n            <!-- ko ifnot: isCalculated() -->\n            <span class=\"not-calculated\"\n                  data-bind=\"text: getValue(), attr: {'data-th': title}\"></span>\n            <!-- /ko -->\n        </td>\n    </tr>\n<!-- /ko -->\n","Magento_Checkout/template/summary/item/details.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n\n<!-- ko foreach: getRegion('before_details') -->\n    <!-- ko template: getTemplate() --><!-- /ko -->\n<!-- /ko -->\n<div class=\"product-item-details\">\n\n    <div class=\"product-item-inner\">\n        <div class=\"product-item-name-block\">\n            <strong class=\"product-item-name\" data-bind=\"html: getNameUnsanitizedHtml($parent)\"></strong>\n            <div class=\"details-qty\">\n                <span class=\"label\"><!-- ko i18n: 'Qty' --><!-- /ko --></span>\n                <span class=\"value\" data-bind=\"text: $parent.qty.toLocaleString(window.LOCALE)\"></span>\n            </div>\n        </div>\n        <!-- ko foreach: getRegion('after_details') -->\n            <!-- ko template: getTemplate() --><!-- /ko -->\n        <!-- /ko -->\n    </div>\n\n    <!-- ko if: (JSON.parse($parent.options).length > 0)-->\n    <div class=\"product options\" data-bind=\"mageInit: {'collapsible':{'openedState': 'active'}}\">\n        <span data-role=\"title\" class=\"toggle\"><!-- ko i18n: 'View Details' --><!-- /ko --></span>\n        <div data-role=\"content\" class=\"content\">\n            <strong class=\"subtitle\"><!-- ko i18n: 'Options Details' --><!-- /ko --></strong>\n            <dl class=\"item-options\">\n                <!--ko foreach: JSON.parse($parent.options)-->\n                <dt class=\"label\" data-bind=\"text: label\"></dt>\n                    <!-- ko if: ($data.full_view)-->\n                    <!-- ko with: {full_viewUnsanitizedHtml: $data.full_view}-->\n                    <dd class=\"values\" data-bind=\"html: full_viewUnsanitizedHtml\"></dd>\n                    <!-- /ko -->\n                    <!-- /ko -->\n                    <!-- ko ifnot: ($data.full_view)-->\n                    <!-- ko with: {valueUnsanitizedHtml: $data.value}-->\n                    <dd class=\"values\" data-bind=\"html: valueUnsanitizedHtml\"></dd>\n                    <!-- /ko -->\n                    <!-- /ko -->\n                <!-- /ko -->\n            </dl>\n        </div>\n    </div>\n    <!-- /ko -->\n</div>\n<!-- ko foreach: getRegion('item_message') -->\n    <!-- ko template: getTemplate() --><!-- /ko -->\n<!-- /ko -->\n","Magento_Checkout/template/summary/item/details/subtotal.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<span class=\"subtotal\" data-bind=\"text: getValue($parents[1])\"></span>\n","Magento_Checkout/template/summary/item/details/message.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"cart item message notice\" if=\"getMessage($parents[1])\">\n    <div data-bind=\"text: getMessage($parents[1])\"></div>\n</div>\n","Magento_Checkout/template/summary/item/details/thumbnail.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<span class=\"product-image-container\"\n      data-bind=\"attr: {'style': 'height: ' + getHeight($parents[1]) + 'px; width: ' + getWidth($parents[1]) + 'px;' }\">\n    <span class=\"product-image-wrapper\">\n        <img\n            data-bind=\"attr: {'src': getSrc($parents[1]), 'width': getWidth($parents[1]), 'height': getHeight($parents[1]), 'alt': getAlt($parents[1]), 'title': getAlt($parents[1]) }\"/>\n    </span>\n</span>\n","Magento_Checkout/template/review/actions.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<!-- ko with: getActiveView() -->\n    <!-- ko template: getTemplate() --><!-- /ko -->\n<!-- /ko -->\n","Magento_Checkout/template/review/actions/default.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"actions-toolbar\" id=\"review-buttons-container\">\n    <div class=\"primary\">\n        <button data-role=\"review-save\" type=\"submit\"\n            data-bind=\"click: placeOrder($parents[1]), attr: {title: $t('Place Order')}\"\n            class=\"button action primary checkout\"><span data-bind=\"i18n: 'Place Order'\"></span></button>\n    </div>\n    <div class=\"secondary\">\n        <span id=\"checkout-review-edit-label\" data-bind=\"i18n: 'Forgot an Item?'\"></span>\n        <a data-bind=\"attr: {href: $parents[1].cartUrl}\"\n           aria-describedby=\"checkout-review-edit-label\"\n           class=\"action edit\">\n            <span data-bind=\"i18n: 'Edit Your Cart'\"></span>\n        </a>\n    </div>\n</div>\n","Magento_Checkout/template/shipping-address/shipping-method-list.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div id=\"checkout-shipping-method-load\">\n    <table class=\"table-checkout-shipping-method\">\n        <thead>\n        <tr class=\"row\">\n            <th class=\"col col-method\" translate=\"'Select Method'\"></th>\n            <th class=\"col col-price\" translate=\"'Price'\"></th>\n            <th class=\"col col-method\" translate=\"'Method Title'\"></th>\n            <th class=\"col col-carrier\" translate=\"'Carrier Title'\"></th>\n        </tr>\n        </thead>\n        <tbody>\n            <!-- ko foreach: { data: rates(), as: 'method'} -->\n                <!--ko template: { name: element.shippingMethodItemTemplate} --><!-- /ko -->\n            <!-- /ko -->\n        </tbody>\n    </table>\n</div>\n","Magento_Checkout/template/shipping-address/list.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n\n<!-- ko if: (visible)-->\n<div class=\"field addresses\">\n    <div class=\"control\">\n        <div class=\"shipping-address-items\">\n            <!-- ko foreach: { data: elems, as: 'element' } -->\n            <!-- ko template: element.getTemplate() --><!-- /ko -->\n            <!-- /ko -->\n        </div>\n    </div>\n</div>\n<!-- /ko -->\n","Magento_Checkout/template/shipping-address/shipping-method-item.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<tr class=\"row\"\n    click=\"element.selectShippingMethod\">\n    <td class=\"col col-method\">\n        <input type=\"radio\"\n               class=\"radio\"\n               ifnot=\"method.error_message\"\n               ko-checked=\"element.isSelected\"\n               ko-value=\"method.carrier_code + '_' + method.method_code\"\n               attr=\"'aria-labelledby': 'label_method_' + method.method_code + '_' + method.carrier_code + ' ' + 'label_carrier_' + method.method_code + '_' + method.carrier_code,\n                    'checked': element.rates().length == 1 || element.isSelected\" />\n    </td>\n    <!-- ko ifnot: (method.error_message) -->\n    <td class=\"col col-price\">\n        <each args=\"element.getRegion('price')\" render=\"\"></each>\n    </td>\n    <!-- /ko -->\n    <td class=\"col col-method\"\n        attr=\"'id': 'label_method_' + method.method_code + '_' + method.carrier_code\"\n        text=\"method.method_title\"></td>\n    <td class=\"col col-carrier\"\n        attr=\"'id': 'label_carrier_' + method.method_code + '_' + method.carrier_code\"\n        text=\"method.carrier_title\"></td>\n</tr>\n<tr class=\"row row-error\"\n    if=\"method.error_message\">\n    <td class=\"col col-error\" colspan=\"4\">\n        <div role=\"alert\" class=\"message error\">\n            <div text=\"method.error_message\"></div>\n        </div>\n        <span class=\"no-display\">\n            <input type=\"radio\"\n                   attr=\"'value' : method.method_code, 'id': 's_method_' + method.method_code\">\n        </span>\n    </td>\n</tr>\n","Magento_Checkout/template/shipping-address/form.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<form class=\"form form-shipping-address\" id=\"co-shipping-form\" data-bind=\"attr: {'data-hasrequired': $t('* Required Fields')}\">\n    <!-- ko foreach: getRegion('before-fields') -->\n    <!-- ko template: getTemplate() --><!-- /ko -->\n    <!--/ko-->\n    <div id=\"shipping-new-address-form\" class=\"fieldset address\">\n        <!-- ko foreach: getRegion('additional-fieldsets') -->\n        <!-- ko template: getTemplate() --><!-- /ko -->\n        <!--/ko-->\n        <!-- ko if: (isCustomerLoggedIn) -->\n        <div class=\"field choice\" data-bind=\"visible: !isFormInline\">\n            <input type=\"checkbox\" class=\"checkbox\" id=\"shipping-save-in-address-book\" data-bind=\"checked: saveInAddressBook\" />\n            <label class=\"label\" for=\"shipping-save-in-address-book\">\n                <span data-bind=\"i18n: 'Save in address book'\"></span>\n            </label>\n        </div>\n        <!-- /ko -->\n    </div>\n</form>\n","Magento_Checkout/template/shipping-address/address-renderer/default.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"shipping-address-item\" css=\"'selected-item' : isSelected() , 'not-selected-item':!isSelected()\">\n    <text args=\"address().prefix\"></text> <text args=\"address().firstname\"></text> <text args=\"address().middlename\"></text>\n    <text args=\"address().lastname\"></text> <text args=\"address().suffix\"></text><br>\n    <if args=\"address().company\">\n        <text args=\"address().company\"></text><br>\n    </if>\n    <text args=\"_.values(_.compact(address().street)).join(', ')\"></text><br>\n    <text args=\"address().city \"></text>, <span text=\"address().region\"></span> <text args=\"address().postcode\"></text><br>\n    <text args=\"getCountryName(address().countryId)\"></text><br>\n    <a if=\"address().telephone\" attr=\"'href': 'tel:' + address().telephone\" text=\"address().telephone\"></a><br>\n    <if args=\"address().vatId\">\n        VAT: <text args=\"address().vatId\"></text><br>\n    </if>\n    <each args=\"data: address().customAttributes, as: 'element'\">\n        <text args=\"$parent.getCustomAttributeLabel(element)\"></text>\n        <br>\n    </each>\n\n    <button visible=\"address().isEditable()\" type=\"button\"\n            class=\"action edit-address-link\"\n            click=\"editAddress\">\n        <span translate=\"'Edit'\"></span>\n    </button>\n    <!-- ko if: (!isSelected()) -->\n    <button type=\"button\" click=\"selectAddress\" class=\"action action-select-shipping-item\">\n        <span translate=\"'Ship Here'\"></span>\n    </button>\n    <!-- /ko -->\n</div>\n","Magento_Checkout/template/minicart/subtotal.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"subtotal\">\n    <span class=\"label\">\n        <!-- ko i18n: 'Total' --><!-- /ko -->\n    </span>\n\n    <!-- ko foreach: elems -->\n        <!-- ko template: getTemplate() --><!-- /ko -->\n    <!-- /ko -->\n</div>\n","Magento_Checkout/template/minicart/content.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n\n<div class=\"block-content\">\n    <if args=\"getCartParam('summary_count')\">\n        <div data-action=\"scroll\" class=\"minicart-items-wrapper\">\n            <ol id=\"mini-cart\" class=\"minicart-items\" data-bind=\"foreach: { data: getCartItems(), as: 'item' }\">\n                <each args=\"$parent.getRegion($parent.getItemRenderer(item.product_type))\"\n                      render=\"{name: getTemplate(), data: item, afterRender: function() {$parents[1].initSidebar()}}\"\n                ></each>\n            </ol>\n        </div>\n    </if>\n\n    <if args=\"getCartParam('summary_count')\">\n        <each args=\"getRegion('subtotalContainer')\" render=\"\"></each>\n        <each args=\"getRegion('extraInfo')\" render=\"\"></each>\n    </if>\n\n    <ifnot args=\"getCartParam('summary_count')\">\n        <strong class=\"subtitle empty\"\n                translate=\"'You have no items in your shopping cart.'\"\n        ></strong>\n        <if args=\"getCartParam('cart_empty_message')\">\n            <p class=\"minicart empty text\" text=\"getCartParam('cart_empty_message')\"></p>\n            <div class=\"actions\">\n                <div class=\"secondary\">\n                    <a class=\"action btn btn-default btn-full margin-bottom15 viewcart\" data-bind=\"attr: {href: shoppingCartUrl}\">\n                        <span translate=\"'Go to Cart'\"></span>\n                    </a>\n                </div>\n            </div>\n        </if>\n    </ifnot>\n\n    <div class=\"actions\" if=\"getCartParam('summary_count')\">\n        <div class=\"secondary\">\n            <a class=\"action btn btn-default btn-full margin-bottom15 viewcart\" data-bind=\"attr: {href: shoppingCartUrl}\">\n                <span translate=\"'Go to Cart'\"></span>\n            </a>\n        </div>\n    </div>\n\n    <if args=\"getCartParam('summary_count')\">\n        <div class=\"actions\" if=\"getCartParam('possible_onepage_checkout')\">\n            <div class=\"primary\">\n                <button\n                        id=\"top-cart-btn-checkout\"\n                        type=\"button\"\n                        class=\"action primary btn btn-primary btn-full checkout\"\n                        data-action=\"close\"\n                        data-bind=\"\n                            attr: {\n                                title: $t('Proceed to Checkout')\n                            }\n                        \"\n                        translate=\"'Proceed to Checkout'\"\n                ></button>\n                <div data-bind=\"html: getCartParamUnsanitizedHtml('extra_actions')\"></div>\n            </div>\n        </div>\n    </if>\n    <div id=\"minicart-widgets\" class=\"minicart-widgets\" if=\"regionHasElements('promotion')\">\n        <each args=\"getRegion('promotion')\" render=\"\"></each>\n    </div>\n</div>\n<each args=\"getRegion('sign-in-popup')\" render=\"\"></each>\n","Magento_Checkout/template/minicart/item/default.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<li class=\"item product product-item\" data-role=\"product-item\">\n    <div class=\"product\">\n        <div class=\"product-item-photo\">\n            <!-- ko if: product_has_url -->\n            <a data-bind=\"attr: {href: product_url, title: product_name}\" tabindex=\"-1\" class=\"product-item-photo\">\n                <!-- ko foreach: $parent.getRegion('itemImage') -->\n                    <!-- ko template: {name: getTemplate(), data: item.product_image} --><!-- /ko -->\n                <!-- /ko -->\n            </a>\n            <!-- /ko -->\n            <!-- ko ifnot: product_has_url -->\n            <span class=\"product-item-photo\">\n                <!-- ko foreach: $parent.getRegion('itemImage') -->\n                    <!-- ko template: {name: getTemplate(), data: item.product_image} --><!-- /ko -->\n                <!-- /ko -->\n            </span>\n            <!-- /ko -->\n            <div class=\"product actions\">\n                <!-- ko if: is_visible_in_site_visibility -->\n                <div class=\"primary\">\n                    <a data-bind=\"attr: {href: configure_url, title: $t('Edit item')}\" class=\"action edit\">\n                        <span data-bind=\"i18n: 'Edit'\"></span>\n                    </a>\n                </div>\n                <!-- /ko -->\n                <div class=\"secondary\">\n                    <a href=\"#\" data-bind=\"attr: {'data-cart-item': item_id, title: $t('Remove item')}\"\n                       class=\"action delete\">\n                        <span data-bind=\"i18n: 'Remove'\"></span>\n                    </a>\n                </div>\n            </div>\n        </div>\n        <div class=\"product-item-details\">\n            <strong class=\"product-item-name\">\n                <!-- ko if: product_has_url -->\n                <a data-bind=\"attr: {href: product_url}, html: product_name\"></a>\n                <!-- /ko -->\n                <!-- ko ifnot: product_has_url -->\n                    <!-- ko text: product_name --><!-- /ko -->\n                <!-- /ko -->\n            </strong>\n\n            <!-- ko if: options.length -->\n            <div class=\"product options\" data-mage-init='{\"collapsible\":{\"openedState\": \"active\", \"saveState\": false}}'>\n                <span data-role=\"title\" class=\"toggle\"><!-- ko i18n: 'See Details' --><!-- /ko --></span>\n\n                <div data-role=\"content\" class=\"content\">\n                    <strong class=\"subtitle\"><!-- ko i18n: 'Options Details' --><!-- /ko --></strong>\n                    <dl class=\"product options list\">\n                        <!-- ko foreach: { data: options, as: 'option' } -->\n                        <dt class=\"label\"><!-- ko text: option.label --><!-- /ko --></dt>\n                        <dd class=\"values\">\n                            <!-- ko if: Array.isArray(option.value) -->\n                                <span data-bind=\"html: option.value.join('<br>')\"></span>\n                            <!-- /ko -->\n                            <!-- ko if: (!Array.isArray(option.value) && ['file', 'html'].includes(option.option_type)) -->\n                                <span data-bind=\"html: option.value\"></span>\n                            <!-- /ko -->\n                            <!-- ko if: (!Array.isArray(option.value) && !['file', 'html'].includes(option.option_type)) -->\n                            <span data-bind=\"text: option.value\"></span>\n                            <!-- /ko -->\n                        </dd>\n                        <!-- /ko -->\n                    </dl>\n                </div>\n            </div>\n            <!-- /ko -->\n\n            <div class=\"product-item-pricing\">\n                <!-- ko if: canApplyMsrp -->\n\n                <div class=\"details-map\">\n                    <span class=\"label\" data-bind=\"i18n: 'Price'\"></span>\n                    <span class=\"value\" data-bind=\"i18n: 'See price before order confirmation.'\"></span>\n                </div>\n                <!-- /ko -->\n                <!-- ko ifnot: canApplyMsrp -->\n                <!-- ko foreach: $parent.getRegion('priceSidebar') -->\n                    <!-- ko template: {name: getTemplate(), data: item.product_price, as: 'price'} --><!-- /ko -->\n                <!-- /ko -->\n                <!-- /ko -->\n\n                <div class=\"details-qty qty\">\n                    <label class=\"label\" data-bind=\"i18n: 'Qty', attr: {\n                           for: 'cart-item-'+item_id+'-qty'}\"></label>\n                    <input data-bind=\"attr: {\n                           id: 'cart-item-'+item_id+'-qty',\n                           'data-cart-item': item_id,\n                           'data-item-qty': qty,\n                           'data-cart-item-id': product_sku\n                           }, value: qty\"\n                           type=\"number\"\n                           size=\"4\"\n                           class=\"item-qty cart-item-qty\">\n                    <button data-bind=\"attr: {\n                           id: 'update-cart-item-'+item_id,\n                           'data-cart-item': item_id,\n                           title: $t('Update')\n                           }\"\n                            class=\"update-cart-item\"\n                            style=\"display: none\">\n                        <span data-bind=\"i18n: 'Update'\"></span>\n                    </button>\n                </div>\n            </div>\n        </div>\n    </div>\n    <div class=\"message notice\" if=\"$data.message\">\n        <div data-bind=\"text: $data.message\"></div>\n    </div>\n</li>\n","Magento_Checkout/template/minicart/item/price.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"price-container\">\n  <span class=\"price-wrapper\" data-bind=\"html: price\"></span>\n</div>\n","Magento_Checkout/template/minicart/subtotal/totals.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<div class=\"amount price-container\">\n    <span class=\"price-wrapper\" data-bind=\"html: cart().subtotal\"></span>\n</div>\n","Magento_Checkout/template/payment/before-place-order.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<!-- ko foreach: { data: elems, as: 'element' } -->\n<!-- ko if: hasTemplate() -->\n<!-- ko template: getTemplate() --><!-- /ko -->\n<!-- /ko -->\n<!-- /ko -->\n","Magento_Checkout/template/payment/generic-title.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<!-- ko text: getTitle() --><!-- /ko -->\n","Magento_Wishlist/template/product/addtowishlist-button.html":"<!--\n/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n */\n-->\n<button if=\"isAllowed()\"\n        attr=\"'data-post': getDataPost($row()),\n               title: getLabel()\"\n        class=\"action towishlist\"\n        data-action=\"add-to-wishlist\">\n        <span translate=\"getLabel()\"></span>\n</button>\n","Fawry_FawryPay/template/payment/fawry_express_form.html":"\n\n\n<div class=\"payment-method\" data-bind=\"css: {'_active': (getCode() == isChecked())}\">\n    <div class=\"payment-method-title field choice\">\n        <input type=\"radio\"\n               name=\"payment[method]\"\n               class=\"radio\"\n               data-bind=\"attr: {'id': getCode()}, value: getCode(), checked: isChecked, click: selectPaymentMethod, visible: isRadioButtonVisible()\"/>\n        <label data-bind=\"attr: {'for': getCode()}\" class=\"label\">\n\n\n            <span data-bind=\"text: getTitle()\"></span>\n        </label>\n    </div>\n\n\n\n    <div class=\"payment-method-content\">\n        <!-- ko foreach: getRegion('messages') -->\n        <!-- ko template: getTemplate() --><!-- /ko -->\n        <!--/ko-->\n\n        <div id=\"fawry-payments\"></div>\n        \n        <div class=\"payment-method-billing-address\">\n            <!-- ko foreach: $parent.getRegion(getBillingAddressFormName()) -->\n            <!-- ko template: getTemplate() --><!-- /ko -->\n            <!--/ko-->\n        </div>\n\n        <div class=\"actions-toolbar\">\n            <div class=\"primary\">\n                <button class=\"action primary checkout\"\n                        type=\"submit\"\n                        data-bind=\"\n                            click: placeOrder,\n                            enable: (getCode() == isChecked()),\n                            attr: {title: $t('Place Order')},\n                            \"\n                        disabled>\n                    <span data-bind=\"text: $t('Place Order')\"></span>\n                </button>\n            </div>\n        </div>\n    </div>\n</div>\n","Fawry_FawryPay/template/payment/fawryPay.html":"<div class=\"payment-method\" data-bind=\"css: {'_active': (getCode() == isChecked())}\">\n    <div class=\"payment-method-title field choice\">\n        <input type=\"radio\"\n               name=\"payment[method]\"\n               class=\"radio\"\n               data-bind=\"attr: {'id': getCode()}, value: getCode(), checked: isChecked, click: selectPaymentMethod, visible: isRadioButtonVisible()\"/>\n        <label class=\"label\" data-bind=\"attr: {'for': getCode()}\">\n            <span data-bind=\"html: getTitle()\"></span>\n        </label>\n    </div>\n\n\n\n    <div class=\"payment-method-content\">\n        <!-- ko foreach: getRegion('messages') -->\n        <!-- ko template: getTemplate() --><!-- /ko -->\n        <!--/ko-->\n\n        <div id=\"fawry-payments\"></div>\n\n        <div class=\"payment-method-billing-address\">\n            <!-- ko foreach: $parent.getRegion(getBillingAddressFormName()) -->\n            <!-- ko template: getTemplate() --><!-- /ko -->\n            <!--/ko-->\n        </div>\n\n        <div class=\"actions-toolbar\">\n            <div class=\"primary\">\n                <button class=\"action primary checkout\"\n                        type=\"submit\"\n                        data-bind=\"\n                            click: placeOrder,\n                            enable: (getCode() == isChecked()),\n                            attr: {title: $t('Place Order')},\n                            \"\n                        disabled>\n                    <span data-bind=\"text: $t('Place Order')\"></span>\n                </button>\n            </div>\n        </div>\n    </div>\n</div>\n"}
}});
require.config({
    bundles: {
        'mage/requirejs/static': [
            'jsbuild',
            'buildTools',
            'text',
            'statistician'
        ]
    },
    deps: [
        'jsbuild'
    ]
});
;var storageShim={_data:{},setItem:function(key,value){'use strict';this._data[key]=value+'';},getItem:function(key){'use strict';return this._data[key];},removeItem:function(key){'use strict';delete this._data[key];},clear:function(){'use strict';this._data={};}};define('buildTools',[],function(){'use strict';var storage,storeName='buildDisabled';try{storage=window.localStorage;}catch(e){storage=storageShim;}
return{isEnabled:storage.getItem(storeName)===null,removeBaseUrl:function(url,config){var urlParts,baseUrlParts,baseUrl=config.baseUrl||'',index=url.indexOf(baseUrl);if(~index){url=url.substring(baseUrl.length-index);}else{baseUrlParts=baseUrl.split('/');baseUrlParts=baseUrlParts.slice(0,-5);baseUrl=baseUrlParts.join('/');url=url.substring(baseUrl.length);urlParts=url.split('/');urlParts=urlParts.slice(5);url=urlParts.join('/');}
return url;},on:function(){storage.removeItem(storeName);location.reload();},off:function(){storage.setItem(storeName,'true');location.reload();}};});define('statistician',[],function(){'use strict';var storage,stringify=JSON.stringify.bind(JSON);try{storage=window.localStorage;}catch(e){storage=storageShim;}
function uniq(arr){return arr.filter(function(entry,i){return arr.indexOf(entry)>=i;});}
function difference(){var args=Array.prototype.slice.call(arguments),target=args.splice(0,1)[0];return target.filter(function(entry){return!args.some(function(arr){return!!~arr.indexOf(entry);});});}
function set(data,key){storage.setItem(key,stringify(data));}
function getModules(key){var plain=storage.getItem(key);return plain?JSON.parse(plain):[];}
function storeModules(modules,key){var old=getModules(key);set(uniq(old.concat(modules)),key);}
function upload(fileName,data){var a=document.createElement('a'),blob,url;a.style='display: none';document.body.appendChild(a);blob=new Blob([JSON.stringify(data)],{type:'octet/stream'});url=window.URL.createObjectURL(blob);a.href=url;a.download=fileName;a.click();window.URL.revokeObjectURL(url);}
return{collect:function(modules){storeModules(Object.keys(modules),'all');},utilize:function(module){storeModules([module],'used');},getAll:function(){return getModules('all');},getUsed:function(){return getModules('used');},getUnused:function(){var all=getModules('all'),used=getModules('used');return difference(all,used);},clear:function(){storage.removeItem('all');storage.removeItem('used');},export:function(){upload('Magento Bundle Statistics',{used:this.getUsed(),unused:this.getUnused(),all:this.getAll()});}};});define('jsbuild',['module','buildTools','statistician'],function(module,tools,statistician){'use strict';var build=module.config()||{};if(!tools.isEnabled){return;}
require._load=require.load;statistician.collect(build);require.load=function(context,moduleName,url){var relative=tools.removeBaseUrl(url,context.config),data=build[relative];if(data){statistician.utilize(relative);new Function(data)();context.completeLoad(moduleName);}else{require._load.apply(require,arguments);}};});define('text',['module','buildTools','mage/requirejs/text'],function(module,tools,text){'use strict';var build=module.config()||{};if(!tools.isEnabled){return text;}
text._load=text.load;text.load=function(name,req,onLoad,config){var url=req.toUrl(name),relative=tools.removeBaseUrl(url,config),data=build[relative];data?onLoad(data):text._load.apply(text,arguments);};return text;});;define('mixins',['module'],function(module){'use strict';var contexts=require.s.contexts,defContextName='_',defContext=contexts[defContextName],unbundledContext=require.s.newContext('$'),defaultConfig=defContext.config,unbundledConfig={baseUrl:defaultConfig.baseUrl,paths:defaultConfig.paths,shim:defaultConfig.shim,config:defaultConfig.config,map:defaultConfig.map},rjsMixins;unbundledContext.configure(unbundledConfig);function hasPlugin(name){return!!~name.indexOf('!');}
function addPlugin(name){return'mixins!'+name;}
function removeBaseUrl(url,config){var baseUrl=config.baseUrl||'',index=url.indexOf(baseUrl);if(~index){url=url.substring(baseUrl.length-index);}
return url;}
function getPath(name,config){var url=unbundledContext.require.toUrl(name);return removeBaseUrl(url,config);}
function isRelative(name){return!!~name.indexOf('./');}
function applyMixins(target){var mixins=Array.prototype.slice.call(arguments,1);mixins.forEach(function(mixin){target=mixin(target);});return target;}
rjsMixins={load:function(name,req,onLoad,config){var path=getPath(name,config),mixins=this.getMixins(path),deps=[name].concat(mixins);req(deps,function(){onLoad(applyMixins.apply(null,arguments));});},getMixins:function(path){var config=module.config()||{},mixins;if(path.indexOf('?')!==-1){path=path.substring(0,path.indexOf('?'));}
mixins=config[path]||{};return Object.keys(mixins).filter(function(mixin){return mixins[mixin]!==false;});},hasMixins:function(path){return this.getMixins(path).length;},processNames:function(names,context){var config=context.config;function processName(name){var path=getPath(name,config);if(!hasPlugin(name)&&(isRelative(name)||rjsMixins.hasMixins(path))){return addPlugin(name);}
return name;}
return typeof names!=='string'?names.map(processName):processName(names);}};return rjsMixins;});require(['mixins'],function(mixins){'use strict';var contexts=require.s.contexts,defContextName='_',defContext=contexts[defContextName],originalContextRequire=defContext.require,processNames=mixins.processNames;defContext.require=function(deps,callback,errback){deps=processNames(deps,defContext);return originalContextRequire(deps,callback,errback);};Object.keys(originalContextRequire).forEach(function(key){defContext.require[key]=originalContextRequire[key];});defContext.defQueue.shift=function(){var queueItem=Array.prototype.shift.call(this),lastDeps=queueItem&&queueItem[1];if(Array.isArray(lastDeps)){queueItem[1]=processNames(queueItem[1],defContext);}
return queueItem;};});;(function(require){(function(){var config={map:{'*':{directoryRegionUpdater:'Magento_Directory/js/region-updater'}}};require.config(config);})();(function(){var config={waitSeconds:0,map:{'*':{'ko':'knockoutjs/knockout','knockout':'knockoutjs/knockout','mageUtils':'mage/utils/main','rjsResolver':'mage/requirejs/resolver','jquery-ui-modules/core':'jquery/ui-modules/core','jquery-ui-modules/accordion':'jquery/ui-modules/widgets/accordion','jquery-ui-modules/autocomplete':'jquery/ui-modules/widgets/autocomplete','jquery-ui-modules/button':'jquery/ui-modules/widgets/button','jquery-ui-modules/datepicker':'jquery/ui-modules/widgets/datepicker','jquery-ui-modules/dialog':'jquery/ui-modules/widgets/dialog','jquery-ui-modules/draggable':'jquery/ui-modules/widgets/draggable','jquery-ui-modules/droppable':'jquery/ui-modules/widgets/droppable','jquery-ui-modules/effect-blind':'jquery/ui-modules/effects/effect-blind','jquery-ui-modules/effect-bounce':'jquery/ui-modules/effects/effect-bounce','jquery-ui-modules/effect-clip':'jquery/ui-modules/effects/effect-clip','jquery-ui-modules/effect-drop':'jquery/ui-modules/effects/effect-drop','jquery-ui-modules/effect-explode':'jquery/ui-modules/effects/effect-explode','jquery-ui-modules/effect-fade':'jquery/ui-modules/effects/effect-fade','jquery-ui-modules/effect-fold':'jquery/ui-modules/effects/effect-fold','jquery-ui-modules/effect-highlight':'jquery/ui-modules/effects/effect-highlight','jquery-ui-modules/effect-scale':'jquery/ui-modules/effects/effect-scale','jquery-ui-modules/effect-pulsate':'jquery/ui-modules/effects/effect-pulsate','jquery-ui-modules/effect-shake':'jquery/ui-modules/effects/effect-shake','jquery-ui-modules/effect-slide':'jquery/ui-modules/effects/effect-slide','jquery-ui-modules/effect-transfer':'jquery/ui-modules/effects/effect-transfer','jquery-ui-modules/effect':'jquery/ui-modules/effect','jquery-ui-modules/menu':'jquery/ui-modules/widgets/menu','jquery-ui-modules/mouse':'jquery/ui-modules/widgets/mouse','jquery-ui-modules/position':'jquery/ui-modules/position','jquery-ui-modules/progressbar':'jquery/ui-modules/widgets/progressbar','jquery-ui-modules/resizable':'jquery/ui-modules/widgets/resizable','jquery-ui-modules/selectable':'jquery/ui-modules/widgets/selectable','jquery-ui-modules/selectmenu':'jquery/ui-modules/widgets/selectmenu','jquery-ui-modules/slider':'jquery/ui-modules/widgets/slider','jquery-ui-modules/sortable':'jquery/ui-modules/widgets/sortable','jquery-ui-modules/spinner':'jquery/ui-modules/widgets/spinner','jquery-ui-modules/tabs':'jquery/ui-modules/widgets/tabs','jquery-ui-modules/tooltip':'jquery/ui-modules/widgets/tooltip','jquery-ui-modules/widget':'jquery/ui-modules/widget','jquery-ui-modules/timepicker':'jquery/timepicker','vimeo':'vimeo/player','vimeoWrapper':'vimeo/vimeo-wrapper'}},shim:{'mage/adminhtml/backup':['prototype'],'mage/captcha':['prototype'],'mage/new-gallery':['jquery'],'jquery/ui':['jquery'],'matchMedia':{'exports':'mediaCheck'},'magnifier/magnifier':['jquery'],'vimeo/player':{'exports':'Player'}},paths:{'jquery/validate':'jquery/jquery.validate','jquery/file-uploader':'jquery/fileUploader/jquery.fileuploader','prototype':'legacy-build.min','jquery/jquery-storageapi':'js-storage/storage-wrapper','text':'mage/requirejs/text','domReady':'requirejs/domReady','spectrum':'jquery/spectrum/spectrum','tinycolor':'jquery/spectrum/tinycolor','jquery-ui-modules':'jquery/ui-modules'},config:{text:{'headers':{'X-Requested-With':'XMLHttpRequest'}}}};require(['jquery'],function($){'use strict';$.noConflict();});require.config(config);})();(function(){var config={map:{'*':{'rowBuilder':'Magento_Theme/js/row-builder','toggleAdvanced':'mage/toggle','translateInline':'mage/translate-inline','sticky':'mage/sticky','tabs':'mage/tabs','collapsible':'mage/collapsible','dropdownDialog':'mage/dropdown','dropdown':'mage/dropdowns','accordion':'mage/accordion','loader':'mage/loader','tooltip':'mage/tooltip','deletableItem':'mage/deletable-item','itemTable':'mage/item-table','fieldsetControls':'mage/fieldset-controls','fieldsetResetControl':'mage/fieldset-controls','redirectUrl':'mage/redirect-url','loaderAjax':'mage/loader','menu':'mage/menu','popupWindow':'mage/popup-window','validation':'mage/validation/validation','breadcrumbs':'Magento_Theme/js/view/breadcrumbs','jquery/ui':'jquery/compat','cookieStatus':'Magento_Theme/js/cookie-status'}},deps:['mage/common','mage/dataPost','mage/bootstrap'],config:{mixins:{'Magento_Theme/js/view/breadcrumbs':{'Magento_Theme/js/view/add-home-breadcrumb':true}}}};if(typeof window!=='undefined'&&window.document){try{if(!window.localStorage||!window.sessionStorage){throw new Error();}
localStorage.setItem('storage_test',1);localStorage.removeItem('storage_test');}catch(e){config.deps.push('mage/polyfill');}}
require.config(config);})();(function(){var config={map:{'*':{checkoutBalance:'Magento_Customer/js/checkout-balance',address:'Magento_Customer/js/address',changeEmailPassword:'Magento_Customer/js/change-email-password',passwordStrengthIndicator:'Magento_Customer/js/password-strength-indicator',zxcvbn:'Magento_Customer/js/zxcvbn',addressValidation:'Magento_Customer/js/addressValidation',showPassword:'Magento_Customer/js/show-password','Magento_Customer/address':'Magento_Customer/js/address','Magento_Customer/change-email-password':'Magento_Customer/js/change-email-password',globalSessionLoader:'Magento_Customer/js/customer-global-session-loader.js'}}};require.config(config);})();(function(){var config={map:{'*':{escaper:'Magento_Security/js/escaper'}}};require.config(config);})();(function(){var config={map:{'*':{quickSearch:'Magento_Search/js/form-mini','Magento_Search/form-mini':'Magento_Search/js/form-mini'}}};require.config(config);})();(function(){var config={map:{'*':{priceBox:'Magento_Catalog/js/price-box',priceOptionDate:'Magento_Catalog/js/price-option-date',priceOptionFile:'Magento_Catalog/js/price-option-file',priceOptions:'Magento_Catalog/js/price-options',priceUtils:'Magento_Catalog/js/price-utils'}}};require.config(config);})();(function(){var config={map:{'*':{compareList:'Magento_Catalog/js/list',relatedProducts:'Magento_Catalog/js/related-products',upsellProducts:'Magento_Catalog/js/upsell-products',productListToolbarForm:'Magento_Catalog/js/product/list/toolbar',catalogGallery:'Magento_Catalog/js/gallery',catalogAddToCart:'Magento_Catalog/js/catalog-add-to-cart'}},config:{mixins:{'Magento_Theme/js/view/breadcrumbs':{'Magento_Catalog/js/product/breadcrumbs':true}}}};require.config(config);})();(function(){var config={map:{'*':{addToCart:'Magento_Msrp/js/msrp'}}};require.config(config);})();(function(){var config={map:{'*':{catalogSearch:'Magento_CatalogSearch/form-mini'}}};require.config(config);})();(function(){var config={map:{'*':{creditCardType:'Magento_Payment/js/cc-type','Magento_Payment/cc-type':'Magento_Payment/js/cc-type'}}};require.config(config);})();(function(){var config={map:{'*':{giftMessage:'Magento_Sales/js/gift-message',ordersReturns:'Magento_Sales/js/orders-returns','Magento_Sales/gift-message':'Magento_Sales/js/gift-message','Magento_Sales/orders-returns':'Magento_Sales/js/orders-returns'}}};require.config(config);})();(function(){var config={map:{'*':{discountCode:'Magento_Checkout/js/discount-codes',shoppingCart:'Magento_Checkout/js/shopping-cart',regionUpdater:'Magento_Checkout/js/region-updater',sidebar:'Magento_Checkout/js/sidebar',checkoutLoader:'Magento_Checkout/js/checkout-loader',checkoutData:'Magento_Checkout/js/checkout-data',proceedToCheckout:'Magento_Checkout/js/proceed-to-checkout',catalogAddToCart:'Magento_Catalog/js/catalog-add-to-cart'}},shim:{'Magento_Checkout/js/model/totals':{deps:['Magento_Customer/js/customer-data']}}};require.config(config);})();(function(){var config={map:{'*':{requireCookie:'Magento_Cookie/js/require-cookie',cookieNotices:'Magento_Cookie/js/notices'}}};require.config(config);})();(function(){var config={map:{'*':{downloadable:'Magento_Downloadable/js/downloadable','Magento_Downloadable/downloadable':'Magento_Downloadable/js/downloadable'}}};require.config(config);})();(function(){var config={map:{'*':{bundleOption:'Magento_Bundle/bundle',priceBundle:'Magento_Bundle/js/price-bundle',slide:'Magento_Bundle/js/slide',productSummary:'Magento_Bundle/js/product-summary'}}};require.config(config);})();(function(){var config={map:{'*':{giftOptions:'Magento_GiftMessage/js/gift-options','Magento_GiftMessage/gift-options':'Magento_GiftMessage/js/gift-options'}}};require.config(config);})();(function(){var config={deps:[],shim:{'chartjs/chartjs-adapter-moment':['moment'],'chartjs/es6-shim.min':{},'tiny_mce_5/tinymce.min':{exports:'tinyMCE'}},paths:{'ui/template':'Magento_Ui/templates'},map:{'*':{uiElement:'Magento_Ui/js/lib/core/element/element',uiCollection:'Magento_Ui/js/lib/core/collection',uiComponent:'Magento_Ui/js/lib/core/collection',uiClass:'Magento_Ui/js/lib/core/class',uiEvents:'Magento_Ui/js/lib/core/events',uiRegistry:'Magento_Ui/js/lib/registry/registry',consoleLogger:'Magento_Ui/js/lib/logger/console-logger',uiLayout:'Magento_Ui/js/core/renderer/layout',buttonAdapter:'Magento_Ui/js/form/button-adapter',chartJs:'chartjs/Chart.min','chart.js':'chartjs/Chart.min',tinymce:'tiny_mce_5/tinymce.min',wysiwygAdapter:'mage/adminhtml/wysiwyg/tiny_mce/tinymce5Adapter'}}};require.config(config);})();(function(){var config={deps:['Magento_Ui/js/core/app']};require.config(config);})();(function(){var config={map:{'*':{pageCache:'Magento_PageCache/js/page-cache'}},deps:['Magento_PageCache/js/form-key-provider']};require.config(config);})();(function(){var config={map:{'*':{captcha:'Magento_Captcha/js/captcha','Magento_Captcha/captcha':'Magento_Captcha/js/captcha'}}};require.config(config);})();(function(){var config={map:{'*':{configurable:'Magento_ConfigurableProduct/js/configurable'}},config:{mixins:{'Magento_Catalog/js/catalog-add-to-cart':{'Magento_ConfigurableProduct/js/catalog-add-to-cart-mixin':true}}}};require.config(config);})();(function(){var config={map:{'*':{multiShipping:'Magento_Multishipping/js/multi-shipping',orderOverview:'Magento_Multishipping/js/overview',payment:'Magento_Multishipping/js/payment',billingLoader:'Magento_Checkout/js/checkout-loader',cartUpdate:'Magento_Checkout/js/action/update-shopping-cart',multiShippingBalance:'Magento_Multishipping/js/multi-shipping-balance'}}};require.config(config);})();(function(){var config={map:{'*':{recentlyViewedProducts:'Magento_Reports/js/recently-viewed'}}};require.config(config);})();(function(){var config={config:{mixins:{'Magento_Checkout/js/model/quote':{'Magento_InventoryInStorePickupFrontend/js/model/quote-ext':true},'Magento_Checkout/js/view/shipping-information':{'Magento_InventoryInStorePickupFrontend/js/view/shipping-information-ext':true},'Magento_Checkout/js/model/checkout-data-resolver':{'Magento_InventoryInStorePickupFrontend/js/model/checkout-data-resolver-ext':true},'Magento_Checkout/js/checkout-data':{'Magento_InventoryInStorePickupFrontend/js/checkout-data-ext':true}}}};require.config(config);})();(function(){var config={config:{mixins:{'Magento_Swatches/js/swatch-renderer':{'Magento_InventorySwatchesFrontendUi/js/swatch-renderer':true}}}};require.config(config);})();(function(){var config={map:{'*':{subscriptionStatusResolver:'Magento_Newsletter/js/subscription-status-resolver',newsletterSignUp:'Magento_Newsletter/js/newsletter-sign-up'}}};require.config(config);})();(function(){var config={config:{mixins:{'Magento_Checkout/js/action/select-payment-method':{'Magento_SalesRule/js/action/select-payment-method-mixin':true},'Magento_Checkout/js/model/shipping-save-processor':{'Magento_SalesRule/js/model/shipping-save-processor-mixin':true},'Magento_Checkout/js/action/place-order':{'Magento_SalesRule/js/model/place-order-mixin':true}}}};require.config(config);})();(function(){var config={map:{'*':{'slick':'Magento_PageBuilder/js/resource/slick/slick','jarallax':'Magento_PageBuilder/js/resource/jarallax/jarallax','jarallaxVideo':'Magento_PageBuilder/js/resource/jarallax/jarallax-video','Magento_PageBuilder/js/resource/vimeo/player':'vimeo/player','Magento_PageBuilder/js/resource/vimeo/vimeo-wrapper':'vimeo/vimeo-wrapper','jarallax-wrapper':'Magento_PageBuilder/js/resource/jarallax/jarallax-wrapper'}},shim:{'Magento_PageBuilder/js/resource/slick/slick':{deps:['jquery']},'Magento_PageBuilder/js/resource/jarallax/jarallax-video':{deps:['jarallax-wrapper','vimeoWrapper']}}};require.config(config);})();(function(){var config={shim:{cardinaljs:{exports:'Cardinal'},cardinaljsSandbox:{exports:'Cardinal'}},paths:{cardinaljsSandbox:'https://includestest.ccdc02.com/cardinalcruise/v1/songbird',cardinaljs:'https://songbird.cardinalcommerce.com/edge/v1/songbird'}};require.config(config);})();(function(){var config={map:{'*':{transparent:'Magento_Payment/js/transparent','Magento_Payment/transparent':'Magento_Payment/js/transparent'}}};require.config(config);})();(function(){var config={map:{'*':{orderReview:'Magento_Paypal/js/order-review','Magento_Paypal/order-review':'Magento_Paypal/js/order-review',paypalCheckout:'Magento_Paypal/js/paypal-checkout'}}};require.config(config);})();(function(){var config={config:{mixins:{'Magento_Customer/js/customer-data':{'Magento_Persistent/js/view/customer-data-mixin':true}}}};require.config(config);})();(function(){var config={map:{'*':{loadPlayer:'Magento_ProductVideo/js/load-player',fotoramaVideoEvents:'Magento_ProductVideo/js/fotorama-add-video-events','vimeoWrapper':'vimeo/vimeo-wrapper'}},shim:{vimeoAPI:{},'Magento_ProductVideo/js/load-player':{deps:['vimeoWrapper']}}};require.config(config);})();(function(){var config={config:{mixins:{'Magento_Checkout/js/action/place-order':{'Magento_CheckoutAgreements/js/model/place-order-mixin':true},'Magento_Checkout/js/action/set-payment-information':{'Magento_CheckoutAgreements/js/model/set-payment-information-mixin':true}}}};require.config(config);})();(function(){var config={config:{mixins:{'Magento_Checkout/js/model/place-order':{'Magento_ReCaptchaCheckout/js/model/place-order-mixin':true},'Magento_ReCaptchaWebapiUi/js/webapiReCaptchaRegistry':{'Magento_ReCaptchaCheckout/js/webapiReCaptchaRegistry-mixin':true}}}};require.config(config);})();(function(){'use strict';var config={config:{mixins:{'Magento_Ui/js/view/messages':{'Magento_ReCaptchaFrontendUi/js/ui-messages-mixin':true}}}};require.config(config);})();(function(){var config={config:{mixins:{'Magento_Paypal/js/view/payment/method-renderer/payflowpro-method':{'Magento_ReCaptchaPaypal/js/payflowpro-method-mixin':true}}}};require.config(config);})();(function(){var config={config:{mixins:{'jquery':{'Magento_ReCaptchaWebapiUi/js/jquery-mixin':true}}}};require.config(config);})();(function(){var config={map:{'*':{mageTranslationDictionary:'Magento_Translation/js/mage-translation-dictionary'}},deps:['mageTranslationDictionary']};require.config(config);})();(function(){var config={map:{'*':{editTrigger:'mage/edit-trigger',addClass:'Magento_Translation/js/add-class','Magento_Translation/add-class':'Magento_Translation/js/add-class'}}};require.config(config);})();(function(){var config={map:{'*':{configurableVariationQty:'Magento_InventoryConfigurableProductFrontendUi/js/configurable-variation-qty'}},config:{mixins:{'Magento_ConfigurableProduct/js/configurable':{'Magento_InventoryConfigurableProductFrontendUi/js/configurable':true}}}};require.config(config);})();(function(){var config={config:{mixins:{'Magento_Checkout/js/view/payment/list':{'Magento_PaypalCaptcha/js/view/payment/list-mixin':true},'Magento_Paypal/js/view/payment/method-renderer/payflowpro-method':{'Magento_PaypalCaptcha/js/view/payment/method-renderer/payflowpro-method-mixin':true},'Magento_Captcha/js/view/checkout/defaultCaptcha':{'Magento_PaypalCaptcha/js/view/checkout/defaultCaptcha-mixin':true}}}};require.config(config);})();(function(){var config={map:{'*':{'taxToggle':'Magento_Weee/js/tax-toggle','Magento_Weee/tax-toggle':'Magento_Weee/js/tax-toggle'}}};require.config(config);})();(function(){var config={map:{'*':{wishlist:'Magento_Wishlist/js/wishlist',addToWishlist:'Magento_Wishlist/js/add-to-wishlist',wishlistSearch:'Magento_Wishlist/js/search'}}};require.config(config);})();(function(){var config={map:{'*':{catalogAddToCart:'MGS_AjaxCart/js/action/catalog-add-to-cart',widgetAddToCart:'MGS_AjaxCart/js/action/widget-add-to-cart',mgsAjaxCartFooter:'MGS_AjaxCart/js/footer',}},shim:{'magnificPopup':['jquery']},paths:{'magnificPopup':'MGS_AjaxCart/js/lib/magnific-popup'}};require.config(config);})();(function(){var config={config:{mixins:{'Smile_ElasticsuiteCatalog/js/range-slider-widget':{'MGS_Ajaxlayernavigation/js/range-slider-widget':true}}}};require.config(config);})();(function(){var config={map:{'*':{aQuickView:'MGS_Aquickview/js/quickview'}},paths:{},};require.config(config);})();(function(){var config={"map":{"*":{"zoom-images":"MGS_ExtraGallery/js/jquery.zoom.min"}},"paths":{"zoom-images":"MGS_ExtraGallery/js/jquery.zoom.min"},"shim":{"MGS_ExtraGallery/js/jquery.zoom.min":["jquery"]},config:{mixins:{'Magento_ConfigurableProduct/js/configurable':{'MGS_ExtraGallery/js/configurable':true},'Magento_Swatches/js/swatch-renderer':{'MGS_ExtraGallery/js/swatch-renderer':true}}}};require.config(config);})();(function(){var config={"map":{"*":{"mgsowlcarousel":"MGS_Fbuilder/js/owl.carousel.min","magnificPopup":"MGS_Fbuilder/js/jquery.magnific-popup.min","lazyload":"MGS_Fbuilder/js/jquery.lazyload","waypoints":"MGS_Fbuilder/js/waypoints.min","fbuilderSearch":"MGS_Fbuilder/js/search-suggest","chartjs":"MGS_Fbuilder/js/chart.min","mgslightbox":"MGS_Fbuilder/js/lightbox.min","beforeafter":"MGS_Fbuilder/js/jquery.twentytwenty","bridget":"MGS_Fbuilder/js/jquery-bridget"}},"paths":{"mgsowlcarousel":"MGS_Fbuilder/js/owl.carousel.min","magnificPopup":"MGS_Fbuilder/js/jquery.magnific-popup.min","lazyload":"MGS_Fbuilder/js/jquery.lazyload","waypoints":"MGS_Fbuilder/js/waypoints.min","chartjs":"MGS_Fbuilder/js/chart.min","mgslightbox":"MGS_Fbuilder/js/lightbox.min","beforeafter":"MGS_Fbuilder/js/jquery.twentytwenty","bridget":"MGS_Fbuilder/js/jquery-bridget"},"shim":{"MGS_Fbuilder/js/owl.carousel.min":["jquery"],"MGS_Fbuilder/js/jquery.magnific-popup.min":["jquery"],"MGS_Fbuilder/js/jquery.lazyload":["jquery"],"MGS_Fbuilder/js/waypoints.min":["jquery"],"MGS_Fbuilder/js/lightbox.min":["jquery"],"MGS_Fbuilder/js/jquery.twentytwenty":["jquery"],"MGS_Fbuilder/js/jquery-bridget":["jquery"]}};require.config(config);})();(function(){var config={map:{'*':{searchListToolbarForm:'MGS_InstantSearch/js/search/list/toolbar',}}};require.config(config);})();(function(){var config={"map":{"*":{"lookbook/owlcarousel":"MGS_Lookbook/js/owl.carousel"}},"paths":{"lookbook/owlcarousel":"MGS_Lookbook/js/owl.carousel"},"shim":{"MGS_Lookbook/js/owl.carousel":["jquery"]}};require.config(config);})();(function(){var config={};if(window.location.href.indexOf('onestepcheckout')!==-1){config={map:{'*':{'Magento_Checkout/js/model/shipping-rate-service':'MGS_OSCheckout/js/model/shipping/shipping-rate-service','Magento_Checkout/js/model/shipping-rates-validator':'MGS_OSCheckout/js/model/shipping/shipping-rates-validator','Magento_CheckoutAgreements/js/model/agreements-assigner':'MGS_OSCheckout/js/model/agreement/agreements-assigner'},'MGS_OSCheckout/js/model/shipping/shipping-rates-validator':{'Magento_Checkout/js/model/shipping-rates-validator':'Magento_Checkout/js/model/shipping-rates-validator'},'Magento_Checkout/js/model/shipping-save-processor/default':{'Magento_Checkout/js/model/full-screen-loader':'MGS_OSCheckout/js/model/one-step-checkout-loader'},'Magento_Checkout/js/action/set-billing-address':{'Magento_Checkout/js/model/full-screen-loader':'MGS_OSCheckout/js/model/one-step-checkout-loader'},'Magento_SalesRule/js/action/set-coupon-code':{'Magento_Checkout/js/model/full-screen-loader':'MGS_OSCheckout/js/model/onestepcheckout-loader/discount'},'Magento_SalesRule/js/action/cancel-coupon':{'Magento_Checkout/js/model/full-screen-loader':'MGS_OSCheckout/js/model/onestepcheckout-loader/discount'},'MGS_OSCheckout/js/model/one-step-checkout-loader':{'Magento_Checkout/js/model/full-screen-loader':'Magento_Checkout/js/model/full-screen-loader'},},config:{mixins:{'Magento_Braintree/js/view/payment/method-renderer/paypal':{'MGS_OSCheckout/js/view/payment/braintree-paypal-mixins':true},'Magento_Checkout/js/action/place-order':{'MGS_OSCheckout/js/action/place-order-mixins':true},'Magento_Paypal/js/action/set-payment-method':{'MGS_OSCheckout/js/model/set-payment-method-mixin':true}}}};if(window.location.href.indexOf('#')!==-1){window.history.pushState("",document.title,window.location.pathname);}}
require.config(config);})();(function(){var config={map:{'*':{storelocator:'MGS_StoreLocator/js/storelocator'}}};require.config(config);})();(function(){var config={"map":{"*":{"mLazysizes":"MGS_ThemeSettings/js/lazysizes.min","mgsvisible":"MGS_ThemeSettings/js/element_visible","mgsbgvideo":"MGS_ThemeSettings/js/jquery.mb.YTPlayer.src","mrotateImage":"MGS_ThemeSettings/js/j360","mgsslick":"MGS_ThemeSettings/js/slick.min","mgsmasonry":"MGS_ThemeSettings/js/masonryChangeRow.pkgd","MgsModelViewLegacy":"MGS_ThemeSettings/js/model-ar-legacy","stickyContent":"MGS_ThemeSettings/js/jquery.sticky-kit.min"}},"paths":{"mLazysizes":"MGS_ThemeSettings/js/lazysizes.min","mgsvisible":"MGS_ThemeSettings/js/element_visible","mgsbgvideo":"MGS_ThemeSettings/js/jquery.mb.YTPlayer.src","mrotateImage":"MGS_ThemeSettings/js/j360","mgsslick":"MGS_ThemeSettings/js/slick.min","mgsmasonry":"MGS_ThemeSettings/js/masonryChangeRow.pkgd","MgsModelViewLegacy":"MGS_ThemeSettings/js/model-ar-legacy","stickyContent":"MGS_ThemeSettings/js/jquery.sticky-kit.min",},"shim":{"MGS_ThemeSettings/js/element_visible":["jquery"],"MGS_ThemeSettings/js/jquery.mb.YTPlayer.src":["jquery"],"MGS_ThemeSettings/js/j360":["jquery"],"MGS_ThemeSettings/js/masonryChangeRow.pkgd":["jquery"],"MGS_ThemeSettings/js/model-ar-legacy":["jquery"],"MGS_ThemeSettings/js/model-ar.min":["jquery"],"MGS_ThemeSettings/js/jquery.sticky-kit.min":["jquery"]},config:{mixins:{'Magento_Swatches/js/swatch-renderer':{'MGS_ThemeSettings/js/swatch-renderer':true}}}};require.config(config);})();(function(){var config={paths:{'jquery/file-uploader':'Mageplaza_Core/lib/fileUploader/jquery.fileuploader','mageplaza/core/jquery/popup':'Mageplaza_Core/js/jquery.magnific-popup.min','mageplaza/core/owl.carousel':'Mageplaza_Core/js/owl.carousel.min','mageplaza/core/bootstrap':'Mageplaza_Core/js/bootstrap.min',mpIonRangeSlider:'Mageplaza_Core/js/ion.rangeSlider.min',touchPunch:'Mageplaza_Core/js/jquery.ui.touch-punch.min',mpDevbridgeAutocomplete:'Mageplaza_Core/js/jquery.autocomplete.min'},shim:{"mageplaza/core/jquery/popup":["jquery"],"mageplaza/core/owl.carousel":["jquery"],"mageplaza/core/bootstrap":["jquery"],mpIonRangeSlider:["jquery"],mpDevbridgeAutocomplete:["jquery"],touchPunch:['jquery','jquery-ui-modules/core','jquery-ui-modules/mouse','jquery-ui-modules/widget']}};require.config(config);})();(function(){var config={};if(typeof window.AVADA_EM!=='undefined'){config={config:{mixins:{'Magento_Checkout/js/view/billing-address':{'Mageplaza_Smtp/js/view/billing-address-mixins':true},'Magento_Checkout/js/view/shipping':{'Mageplaza_Smtp/js/view/shipping-mixins':true}}}};}
require.config(config);})();(function(){var config={paths:{socialProvider:'Mageplaza_SocialLogin/js/provider',socialPopupForm:'Mageplaza_SocialLogin/js/popup'},map:{'*':{'Magento_Checkout/js/proceed-to-checkout':'Mageplaza_SocialLogin/js/proceed-to-checkout'}}};require.config(config);})();(function(){var config={map:{'*':{'easing':'magepow/easing','slick':'magepow/slick','gridSlider':'magepow/grid-slider',},},paths:{'magepow/easing':'Magepow_Core/js/plugin/jquery.easing.min','magepow/slick':'Magepow_Core/js/plugin/slick.min','magepow/grid-slider':'Magepow_Core/js/grid-slider',},shim:{'magepow/easing':{deps:['jquery']},'magepow/slick':{deps:['jquery']}}};require.config(config);})();(function(){var config={map:{'*':{infinitescroll:'Magepow_InfiniteScroll/js/plugin/infinitescroll',}},paths:{'magepow/infinitescroll':'Magepow_InfiniteScroll/js/plugin/infinitescroll',},shim:{'magepow/infinitescroll':{deps:['jquery']}}};require.config(config);})();(function(){var config={map:{'*':{sizechart:'Magepow_Sizechart/js/popup'}},paths:{'magepow/sizechart':"Magepow_Sizechart/js/popup"},shim:{'magepow/sizechart':{deps:['jquery']}}}
require.config(config);})();(function(){var config={map:{'*':{MagentoMetaTrack:'Meta_Conversion/js/tracking'}}};require.config(config);})();(function(){var config={map:{'*':{'plumrocket/utils':'Plumrocket_Base/js/utils'}}};require.config(config);})();(function(){var config={config:{mixins:{'Magento_Ui/js/lib/validation/validator':{'Smile_ElasticsuiteCore/js/validation/validator-mixin':true}}},};require.config(config);})();(function(){var config={map:{'*':{quickSearch:'Smile_ElasticsuiteCore/js/form-mini'}}};require.config(config);})();(function(){var config={map:{'*':{rangeSlider:'Smile_ElasticsuiteCatalog/js/range-slider-widget'}},shim:{'Smile_ElasticsuiteCatalog/js/jquery.ui.touch-punch.min':{deps:['Smile_ElasticsuiteCatalog/js/mouse']}}};require.config(config);})();(function(){var config={'paths':{'dmpt':'Sparsh_AbandonedCart/js/dmpt','stick-to-me':'Sparsh_AbandonedCart/js/stick-to-me'},'shim':{'dmpt':{exports:'_dmTrack',deps:['jquery']},'stick-to-me':{deps:['jquery']}}};require.config(config);})();(function(){var config={map:{'*':{referralPoints:'Webkul_RewardSystem/js/referral-points',}}};require.config(config);})();(function(){var config={deps:['Magento_Theme/js/theme']};require.config(config);})();(function(){var config={"map":{"*":{"mgs/isotope":"MGS_Portfolio/js/isotope.pkgd.min",}},"paths":{"mgs/isotope":"MGS_Portfolio/js/isotope.pkgd.min",}};require.config(config);})();})(require);;require(['jquery'],function($){var $_miniCart=$("header.page-header .minicart-wrapper .block-minicart");var $_loginForm=$("header.page-header .header-top-links .login-form");var $_settingSite=$("header.page-header .setting-site .setting-site-content");var $_wishlistHeader=$("header.page-header .top-wishlist .block-wishlist");$(document).ready(function(){$(document).on("click",".header-top-links > .actions",function(e){e.preventDefault();if($('.header-area').hasClass('myaccount-slide')){disableBodyScroll();}
$('.header-top-links').toggleClass('active');if($('.header-top-links').hasClass('active')&&$('.header-top-links .captcha-reload').length){$('.header-top-links').find('.captcha-reload').trigger('click');}});$(document).on("click","#close-myaccount",function(e){$(this).parents('.header-top-links').removeClass('active');if($('header-area').hasClass('myaccount-slide')){activeBodyScroll(false);}});$(document).on("click","#close-myaccount",function(e){$(this).parents('.header-top-links').removeClass('active');if($('header-area').hasClass('myaccount-slide')){activeBodyScroll(false);}});$(document).on("click",".minicart-wrapper .details-qty .minus",function(e){var $itemQty=parseInt($(this).parent().find('.cart-item-qty').attr('data-item-qty'));var $val=parseInt($(this).parent().find('.cart-item-qty').val());var $valChange=$val-1;if($val>1){$(this).parent().find('.cart-item-qty').val($valChange);if($itemQty!=$valChange){$(this).parents('.details-qty').find('.update-cart-item').show('fade',300);}else{$(this).parents('.details-qty').find('.update-cart-item').hide('fade',300);}}});$(document).on("click",".minicart-wrapper .details-qty .plus",function(e){var $val=parseInt($(this).parent().find('.cart-item-qty').val());var $itemQty=parseInt($(this).parent().find('.cart-item-qty').attr('data-item-qty'));var $valChange=$val+1;$(this).parent().find('.cart-item-qty').val($valChange);if($itemQty!=$valChange){$(this).parents('.details-qty').find('.update-cart-item').show('fade',300);}else{$(this).parents('.details-qty').find('.update-cart-item').hide('fade',300);}});$(document).on("click",".setting-site .actions .action.setting",function(e){disableBodyScroll();$(this).parents('.setting-site').addClass('active');});$(document).on("click","#close-setting-site",function(e){$('header.page-header .setting-site').removeClass('active');activeBodyScroll(false);});if($('.active-sticky:not(.header7)').length){var headerHeight=$('.active-sticky:not(.header7)').height();$(window).on('scroll',function(){var st=$(this).scrollTop();if(st>headerHeight){$('.active-sticky').addClass('scrolling');}else{$('.active-sticky').removeClass('scrolling');}});}
$(".footer-title").on('click',function(){if($(window).width()<767){$(this).parent().toggleClass('active');$(this).parent().find('ul').slideToggle();}});$(document).on("click",".megamenu_action_mb",function(e){if($('header.page-header').hasClass('active-menu')){$('header.page-header').removeClass('active-menu');activeBodyScroll(true);}else{$('header.page-header').addClass('active-menu');disableBodyScroll();}});$('.nav-main-menu .static-menu li > .toggle-menu a').on('click',function(){$(this).toggleClass('active');$(this).parent().parent().find('> ul').slideToggle();});$(document).on("click",".close-nav-button",function(e){$('header.page-header').removeClass('active-menu');activeBodyScroll(true);});$('header.page-header button.action.nav-tg').on('click',function(){if($('html').hasClass('nav-open')){$('html').removeClass('nav-open');setTimeout(function(){$('html').removeClass('nav-before-open');},300);}else{$('html').addClass('nav-before-open');setTimeout(function(){$('html').addClass('nav-open');},42);}});$('.close-nav-button').on('click',function(){$('html').removeClass('nav-open');setTimeout(function(){$('html').removeClass('nav-before-open');},300);});$(document).on("click","#cart-top-action",function(e){if($('.header-area').hasClass('minicart-slide')){$('.table-icon-menu .minicart-wrapper .action.showcart').trigger('click');}else{window.location.href=$('.table-icon-menu .minicart-wrapper .action.showcart').attr('href');}});$(document).on("click","#js_mobile_tabs .action-mb-tabs",function(e){if($('html').hasClass('nav-open')){$('html').removeClass('nav-open');setTimeout(function(){$('html').removeClass('nav-before-open');},300);}else{$('html').addClass('nav-before-open');setTimeout(function(){$('html').addClass('nav-open');},42);var $el_action=$(this).attr('id');switch($el_action){case"my-account-action":$(".menu-wrapper .nav-tabs li a").each(function(){$(this).parent('li').removeClass("active");$(".megamenu-content .tab-pane").removeClass("active");$('[href="#main-Accountcontent"]').parent().addClass('active');$(".megamenu-content #main-Accountcontent").addClass('active');});break;case"setting-web-action":$(".menu-wrapper .nav-tabs li a ").each(function(){$(this).parent('li').removeClass("active");$(".megamenu-content .tab-pane").removeClass("active");$('[href="#main-Settingcontent"]').parent().addClass('active');$(".megamenu-content #main-Settingcontent").addClass('active');});break;}}});$('.menu-content-mb .data.item.title li a').on('click',function(event){event.preventDefault();$('.menu-content-mb .data.item.title li').removeClass('active');$('.menu-content-mb .data.item.tab-content > .tab-pane').removeClass('active');$(this).parent().addClass('active');var id=$(this).attr('href');$(id).addClass('active');});if($('body').hasClass('parallax-footer')){var footerHeight=$('.page-footer').height();$('body').css('padding-bottom',footerHeight);}
if($(".products-grid .product-item-info .actions-link a").hasClass('quickview-mobile')){$(".products-grid .product-item-info").each(function(){if($(window).width()<768){$(this).find(".actions-secondary > a.action.quickview").appendTo($(this).find(".action-mobile"));}else{$(this).find(".action-mobile > a.action.quickview").appendTo($(this).find(".actions-secondary"));}});$(window).on("resize",function(){$(".products-grid .product-item-info").each(function(){if($(window).width()<768){$(this).find(".actions-secondary > a.action.quickview").appendTo($(this).find(".action-mobile"));}else{$(this).find(".action-mobile > a.action.quickview").appendTo($(this).find(".actions-secondary"));}});});}
$(document).on("click","#close-minicart",function(e){$('.table-icon-menu .minicart-wrapper .action.showcart').trigger('click');});if($(window).width()<=767){$(".metro-new-sale-off").prependTo(".metro-product-middle");$(".metro-third-product").appendTo(".metro-product-top>.frame>.line>div:nth-child(1)>.line ");}});$(document).on('mouseup',function(e){var container=$(".top-wishlist");if(container.is(e.target)&&container.has(e.target).length===0){container.removeClass('active');}});function disableBodyScroll(){$('body').addClass('fixed-content');}
function activeBodyScroll($status){if(!$status){$('body').removeClass('fixed-content');}else{if(!$('.page-header .header-top-links').hasClass('active')&&!$('.page-header .top-wishlist').hasClass('active')&&!$('.page-header .setting-site').hasClass('active')&&!$('.page-header').hasClass('active-menu')){$('body').removeClass('fixed-content');}}}
$(window).on('resize',function(){if($(window).width()<=767){$(".metro-new-sale-off").prependTo(".metro-product-middle");$(".metro-third-product").appendTo(".metro-product-top>.frame>.line>div:nth-child(1)>.line ");}
var footerHeight=$('.page-footer').height();if($('body').hasClass('parallax-footer')){$('body').css('padding-bottom',footerHeight);}});});;if(typeof(WEB_URL)=='undefined'){if(typeof(BASE_URL)!=='undefined'){var WEB_URL_AJAX=BASE_URL;}else{pubUrlAjax=require.s.contexts._.config.baseUrl;arrUrlAjax=pubUrlAjax.split('pub/');var WEB_URL_AJAX=arrUrlAjax[0];}}
require(['jquery','waypoints','mgslightbox'],function(jQuery){(function($){$.fn.appear=function(fn,options){var settings=$.extend({data:undefined,one:true,accX:0,accY:0},options);return this.each(function(){var t=$(this);t.appeared=false;if(!fn){t.trigger('appear',settings.data);return;}
var w=$(window);var check=function(){if(!t.is(':visible')){t.appeared=false;return;}
var a=w.scrollLeft();var b=w.scrollTop();var o=t.offset();var x=o.left;var y=o.top;var ax=settings.accX;var ay=settings.accY;var th=t.height();var wh=w.height();var tw=t.width();var ww=w.width();if(y+th+ay>=b&&y<=b+wh+ay&&x+tw+ax>=a&&x<=a+ww+ax){if(!t.appeared)t.trigger('appear',settings.data);}else{t.appeared=false;}};var modifiedFn=function(){t.appeared=true;if(settings.one){w.unbind('scroll',check);var i=$.inArray(check,$.fn.appear.checks);if(i>=0)$.fn.appear.checks.splice(i,1);}
fn.apply(this,arguments);};if(settings.one)t.one('appear',settings.data,modifiedFn);else t.bind('appear',settings.data,modifiedFn);w.scroll(check);$.fn.appear.checks.push(check);(check)();});};$.extend($.fn.appear,{checks:[],timeout:null,checkAll:function(){var length=$.fn.appear.checks.length;if(length>0)while(length--)($.fn.appear.checks[length])();},run:function(){if($.fn.appear.timeout)clearTimeout($.fn.appear.timeout);$.fn.appear.timeout=setTimeout($.fn.appear.checkAll,20);}});$.each(['append','prepend','after','before','attr','removeAttr','addClass','removeClass','toggleClass','remove','css','show','hide'],function(i,n){var old=$.fn[n];if(old){$.fn[n]=function(){var r=old.apply(this,arguments);$.fn.appear.run();return r;}}});$(document).ready(function(){$("[data-appear-animation]").each(function(){$(this).addClass("appear-animation");if($(window).width()>767){$(this).appear(function(){var delay=($(this).attr("data-appear-animation-delay")?$(this).attr("data-appear-animation-delay"):1);if(delay>1)$(this).css("animation-delay",delay+"ms");$(this).addClass($(this).attr("data-appear-animation"));$(this).addClass("animated");setTimeout(function(){$(this).addClass("appear-animation-visible");},delay);},{accX:0,accY:-150});}else{$(this).addClass("appear-animation-visible");}});$('.mgs-progressbar .progress').css("width",function(){return $(this).attr("aria-valuenow")+"%";})
$('.mgs-progress-circle').each(function(){var progressPercent=$(this).attr('progress-to');$(this).attr('data-progress',progressPercent);});$('.tab-title-ajax').each(function(){$(this).find('a').trigger('click');});});})(jQuery);});function setLocation(url){require(['jquery'],function(jQuery){(function(){window.location.href=url;})(jQuery);});}
require(['jquery','Magento_Ui/js/modal/modal'],function($,modal){$(document).ready(function(){$('button.mgs-modal-popup-button').on('click',function(){id=$(this).attr('data-button-id');var popupContent=$('#mgs_modal_container_'+id).html();if($('#modal_popup_'+id).length){var options={type:'popup',responsive:true,innerScroll:true,title:'',modalClass:'mgs-modal modal-'+id,buttons:[]};var newsletterPopup=modal(options,$('#modal_popup_'+id));$('#modal_popup_'+id).trigger('openModal');$('.modal-'+id+' .pop-sletter-title').insertBefore('.modal-'+id+' .modal-header button');$('.modal-'+id+' .action-close').on('click',function(){$('.modal-'+id+' .modal-header .pop-sletter-title').remove();setTimeout(function(){$('.modals-wrapper .modal-'+id).remove();$('#mgs_modal_container_'+id).html(popupContent)},500);});}});});});function getAjaxProductCollection(catId,attribute,blockType,productNum,blockId,useSlider,perrowDefault,perrowTablet,perrowMobile,numberRow,slideBy,hideName,hideReview,hidePrice,hideAddcart,hideAddwishlist,hideAddcompare,autoPlay,stopAuto,nav,dot,isLoop,hideNav,navTop,navPos,pagPos,isRtl,slideMargin,activeCatLink,CatLink){require(["jquery","mLazysizes",],function($){if(catId!=''){var $contentContainer=$('#'+catId.toString()+blockId.toString());}else{var $contentContainer=$('#'+attribute.toString()+blockId.toString());}
var tabContent=$contentContainer.html();if(tabContent.trim()==''){$contentContainer.addClass('div-loading');var requestUrl=WEB_URL_AJAX+'fbuilder/index/ajax';$.ajax({url:requestUrl,data:{category_id:catId,attribute_type:attribute,block_type:blockType,limit:productNum,block_id:blockId,use_slider:useSlider,perrow:perrowDefault,perrow_tablet:perrowTablet,perrow_mobile:perrowMobile,number_row:numberRow,slide_by:slideBy,hide_name:hideName,hide_review:hideReview,hide_price:hidePrice,hide_addcart:hideAddcart,hide_addwishlist:hideAddwishlist,hide_addcompare:hideAddcompare,autoplay:autoPlay,stop_auto:stopAuto,navigation:nav,pagination:dot,loop:isLoop,hide_nav:hideNav,nav_top:navTop,navigation_position:navPos,pagination_position:pagPos,rtl:isRtl,slide_margin:slideMargin,use_catlink:activeCatLink,cat_link:CatLink},success:function(data){if(data!=''){$contentContainer.append(data);$contentContainer.removeClass('div-loading');includeQuickviewAction($);$('button.tocart').on('click',function(event){event.preventDefault();var formEl=$(this).parents('form:first');var data=formEl.serializeArray();var formData=new FormData();for(var i=0;i<data.length;i++){formData.append(data[i].name,data[i].value);}
formData.append('action_url',formEl.attr('action'));initAjaxAddToCart(formEl,'catalog-add-to-cart-'+$.now(),formEl.attr('action'),formData);});}}});}});}
function initAjaxAddToCart(tag,actionId,url,formData){require(['jquery','MGS_AjaxCart/js/config','Magento_Ui/js/modal/modal'],function($,mgsConfig,modal){var self=this;if(tag.closest('.product-top').length){tag.find('.tocart > span').text('Adding...');}else{if(tag.find('.tocart').length){tag.find('.tocart > span').text('Adding...');}else{tag.find('.tocart > span').text('Adding...');}}
formData.append(mgsConfig.requestParamName,1);formData.append('ajax',1);jQuery.ajax({url:url,data:formData,type:'post',dataType:'json',contentType:false,cache:false,processData:false,beforeSend:function(xhr,options){if(tag.find('.tocart').length){tag.find('.tocart').addClass('disabled');}else{tag.addClass('disabled');}},success:function(response,status){if(tag.closest('.product-top').length){tag.find('.tocart > span').text('Add to cart');}
if(tag.find('.tocart').length){tag.find('.tocart > span').text('Add to cart');tag.find('.tocart').removeClass('disabled');}else{tag.find('.tocart > span').text('Add to cart');tag.removeClass('disabled');}
if(status=='success'){if(response.backUrl){formData.append('action_url',response.backUrl);initAjaxAddToCart(tag,actionId,response.backUrl,formData);}else{if(response.ui){if(response.productView){$('#ajaxcart_loading_overlay').addClass('loading');if($('body.catalog-product-view').length>0){$('body').addClass('origin-catalog-product-view');}else{$('body').addClass('catalog-product-view');}
$.ajax({url:response.ui,dataType:'json',success:function(result){$('#ajaxcart_loading_overlay').removeClass('loading');if(result.product_detail){$('body').append('<div id="ajaxcart_form_popup'+result.id_product+'" class="product_quickview_content"></div>');var options={type:'popup',modalClass:"ajaxCartForm viewBox",responsive:true,innerScroll:true,title:false,buttons:false};var popup=modal(options,$('#ajaxcart_form_popup'+result.id_product));$('#ajaxcart_form_popup'+result.id_product).html(result.product_detail);$('#ajaxcart_form_popup'+result.id_product).trigger('contentUpdated');$('#ajaxcart_form_popup'+result.id_product).modal('openModal').on('modalclosed',function(){$('#ajaxcart_form_popup'+result.id_product).parents('.ajaxCartForm').remove();$('body:not(.origin-catalog-product-view)').removeClass('catalog-product-view');});}}});}else{if(response.animationType=='popup'){$('body').append('<div id="popup_ajaxcart_success" class="popup__main popup--result"></div>');var options={type:'popup',modalClass:"success-ajax--popup viewBox",responsive:true,innerScroll:true,title:false,buttons:false};var popup=modal(options,$('#popup_ajaxcart_success'));$('#popup_ajaxcart_success').html(response.ui+response.related);$('#popup_ajaxcart_success').trigger('contentUpdated');$('#popup_ajaxcart_success').modal('openModal').on('modalclosed',function(){$('#popup_ajaxcart_success').parents('.success-ajax--popup').remove();});}else if(response.animationType=='flycart'){var $source='';if(tag.find('.tocart').length){if(tag.closest('.product-item-info').length){$source=tag.closest('.product-item-info');}else{$source=tag.find('.tocart');}}else{tag.removeClass('disabled');$source=tag.closest('.product-item-info');}
var $animatedObject=jQuery('<div class="flycart-animated-add" style="position: absolute;z-index: 99999;">'+response.image+'</div>');var $_left=$source.offset().left-1;var $_top=$source.offset().top-1;$animatedObject.css({top:$_top,left:$_left});jQuery('html').append($animatedObject);if(jQuery(window).width()>767){var gotoX=jQuery("#fixed-cart-footer").offset().left+20;var gotoY=jQuery("#fixed-cart-footer").offset().top;jQuery('#footer-cart-trigger').addClass('active');jQuery('#footer-mini-cart').slideDown(300);}else{var gotoX=jQuery("#cart-top-action").offset().left;var gotoY=jQuery("#cart-top-action").offset().top;}
$animatedObject.animate({opacity:0.6,left:gotoX,top:gotoY},2000,function(){$animatedObject.remove();});}else{$("header.page-header").addClass("show-sticky-menu");$('[data-block="minicart"]').find('[data-role="dropdownDialog"]').dropdownDialog("open");setTimeout(function(){$("header.page-header").removeClass("show-sticky-menu");$('[data-block="minicart"]').find('[data-role="dropdownDialog"]').dropdownDialog("close");},5000);}}}}}},error:function(){window.location.href=mgsConfig.redirectCartUrl;}});});};if(typeof(BackColor)=="undefined")
BackColor="white";if(typeof(ForeColor)=="undefined")
ForeColor="black";if(typeof(DisplayFormat)=="undefined")
DisplayFormat="<span class='days'>%%D%%</span><span class='hours'>%%H%%</span><span class='mins'>%%M%%</span><span class='secs'>%%S%%</span>";if(typeof(CountActive)=="undefined")
CountActive=true;if(typeof(FinishMessage)=="undefined")
FinishMessage="";if(typeof(CountStepper)!="number")
CountStepper=-1;if(typeof(LeadingZero)=="undefined")
LeadingZero=true;CountStepper=Math.ceil(CountStepper);if(CountStepper==0)
CountActive=false;var SetTimeOutPeriod=(Math.abs(CountStepper)-1)*1000+990;function calcage(secs,num1,num2){s=((Math.floor(secs/num1)%num2)).toString();if(LeadingZero&&s.length<2)
s="0"+s;return"<b>"+s+"</b>";}
function CountBack(secs,iid,j){if(secs<0){document.getElementById(iid).innerHTML=FinishMessage;document.getElementById('caption'+j).style.display="none";document.getElementById('heading'+j).style.display="none";return;}
DisplayStr=DisplayFormat.replace(/%%D%%/g,calcage(secs,86400,100000));DisplayStr=DisplayStr.replace(/%%H%%/g,calcage(secs,3600,24));DisplayStr=DisplayStr.replace(/%%M%%/g,calcage(secs,60,60));DisplayStr=DisplayStr.replace(/%%S%%/g,calcage(secs,1,60));document.getElementById(iid).innerHTML=DisplayStr;if(CountActive)
setTimeout(function(){CountBack((secs+CountStepper),iid,j)},SetTimeOutPeriod);}