function rootService(n,t,i){function f(){if($m.defined(window.MOGI)===!1){setTimeout(f,5);return}r.Profile.getInfo();MOGI.IsAuth?(r.Profile.Message.GetMessage(),$cache.remove("mogi:info")):$cache.setJson("mogi:info",MOGI);r.Favorite.loadCache()}var r=n,u;r.ngMsg=function(n){return(n.$touched||n.$submitted||!1)&&n.$error};r.isSlideOpened=!1;r.openSlideMenu=function(){if(r.isSlideOpened){r.closeSlideMenu();return}r.isSlideOpened=!0;$getById("mogi-slide-menu").style.left="0px";$getById("mogi-slide-overlay").style.display="block";document.body.style.overflow="hidden"};r.closeSlideMenu=function(){$getById("mogi-slide-menu").style.left="calc(-100vw - 100px)";$getById("mogi-slide-overlay").style.display="none";document.body.style.overflow="auto";r.isSlideOpened=!1};r.isOpenNav=!1;r.openNav=function(){if(r.isOpenNav){r.closeNav();return}r.isOpenNav=!0;$getById("slidemenu").style.left="0px";$getById("mogi-overlay").style.display="block";document.body.style.overflow="hidden"};r.closeNav=function(){$getById("slidemenu").style.left="-250px";$getById("mogi-overlay").style.display="none";document.body.style.overflow="auto";r.isOpenNav=!1};r.Profile={Data:{ClientId:null,ProfileId:0,FirstName:"",LastName:"",Avatar:"",Email:"",TotalFavorite:0,IsAuth:!1,Alert:null,LevelId:0,SupportStaff:{FullName:"",Mobile:"",Skype:"",Zalo:"",UserName:""}},getInfo:function(){var i=r.Profile.Data,n=window.MOGI;for(var u in i)i[u]=n[u];n.Token!==""&&(t.defaults.headers.common.Authorization=n.Token)},isAuth:function(){return this.Data.IsAuth},isNormal:function(){return this.Data.LevelId===0||this.Data.LevelId===1},getUserTypeLabel:function(){let n=mogiResUtils.getLevelById(this.Data.LevelId);return!n||!n.n?"":"Thành viên "+n.n},openZalo:function(){if(this.Data.SupportStaff.Zalo!==""||this.Data.SupportStaff.Zalo!==null){let n="https://zalo.me/"+this.Data.SupportStaff.Zalo;window.open(n,"_blank")}},openDialer:function(){this.Data.SupportStaff.Mobile!==""&&this.Data.SupportStaff.Mobile!==null&&(document.location.href="tel:"+this.Data.SupportStaff.Mobile)},getAvatar:function(){var n=this.Data.Avatar;return n===""?'<\/i>':'avatar'},getFavorite:function(){var n=this.Data.TotalFavorite;return n<10?n:"9+"},savedAlert:function(){var n=r.Profile.Data.Alert;return n?n.AlertSearchId>0:!1},Message:{Total:0,Items:[],Inboxs:[],HasValue:!1,HasMsg:!1,HasInbox:!1,KeyMsg:"mogi:msg",KeyInbox:"mogi:inbox",IsRead:function(n,t,i,r){var u=t.MessageId;n.push(t);t.Read=t.Read||!1;i[u]&&(t.Read=!0,r[u]=!0)},GetMessage:function(){var n={msg:{},inbox:{}},i={};i.msg=$cache.getJson(this.KeyMsg,{});i.inbox=$cache.getJson(this.KeyInbox,{});t({method:"GET",url:mogiRoutes.Common.GetMessage+"/"+MOGI.Member}).then(function(t){var f=t.data,u=r.Profile.Message,e,o;for(u.Total+=f.length,u.HasMsg=f.length>0,u.HasValue|=u.HasMsg,e=0,o=f.length;e0,u.HasValue|=u.HasInbox,e=0,o=f.length;e0&&t.get(n).then(function(n){n.data.forEach(function(n){n!==null&&(t.items[parseInt(n,10)]=!0)})}):this.loadCache()},loadCache:function(){var n=this,t;n.loaded||(n.loaded=!0,t=$cache.getJson(this.key,[]),r.Profile.Data.TotalFavorite=t.length,t.forEach(function(t){n.items[t]=!0}))},get:function(n){return t({method:"POST",url:mogiRoutes.Common.Favorite_GetList,data:n})},remove:function(n){return t({method:"POST",url:mogiRoutes.Common.Favorite_Remove+"?propertyId="+n})},add:function(n){return t({method:"POST",url:mogiRoutes.Common.Favorite_Add+"?propertyId="+n})},update:function(n){var t=r.Profile.Data;n=t.TotalFavorite+n;t.TotalFavorite=Math.max(0,n)},addRemove:function(n,t){var i=this.items[n]||!1;this.cache(n,i);i===!1?(this.items[n]=!0,this.add(n).then(function(){}),this.update(1)):(delete this.items[n],this.remove(n).then(function(){}),this.update(-1));t&&t.currentTarget.classList.toggle("favorited")},cache:function(n,t){var i=$cache.getJson(this.key,[]),r=i.indexOf(n);t?r!==-1&&i.splice(r,1):r===-1&&i.push(n);i.length>this.max&&(i=i.slice(i.length-this.max));$cache.setJson(this.key,i)}};r.TemplateTopMenuUrl=window.TemplateTopMenuUrl;u=window.template_layout_topmenu;$m.object(u)===!0&&$m.defined(i.get(u.url))===!1&&i.put(u.url,u.data);f()}function lazyLoad(n){if(lazy.length===0||lazyLoadCounter>3e3){var t=lozad(".lozad",{threshold:.1,root:n});t.observe()}else lazyLoadCounter+=20,setTimeout(lazyLoad,20)}function cleanChartName(n){var t=n.toLowerCase();switch(t){case"polararea":return"polarArea";case"horizontalbar":return"horizontalBar";default:return n}}function agent(n){function t(t){return n({method:"POST",url:mogiRoutes.Agent.SendMessageToAgent,data:t})}return{SendMessageToAgent:t}}function cityServices(n){function t(t){return n({method:"GET",url:mogiRoutes.City.GetZoneByCityId+"?cityId="+t})}function i(t){return n({method:"GET",url:mogiRoutes.City.GetStreetById+"?streetId="+t})}return{GetZoneByCity:t,GetStreetById:i}}function cmsServices(n){function t(t){return n({method:"GET",url:mogiRoutes.Cms.GetNews+"?id="+t})}function i(t){return n({method:"POST",url:mogiRoutes.Cms.GetListNews,data:t})}function r(t){return n({method:"POST",url:mogiRoutes.Cms.GetCategoriesByGroup+"?id="+t})}function u(t,i){return n({method:"POST",url:mogiRoutes.Cms.GetByUrlCode+"?groupId="+t+"&urlCode="+i})}function f(){return n({method:"GET",url:mogiRoutes.Cms.GetNotarizeOffices})}return{GetNews:t,GetListNews:i,GetCategoriesByGroup:r,GetByUrlCode:u,GetNotarizeOffices:f}}function commonServices(n,t,i){this.AlertSearch=function(n,r){var u=t.open({templateUrl:"/scripts/app/templates/alertsearchstatus.html",controller:["$scope","$filter","$uibModalInstance","profileServices","obj",function(n,t,i,r,u){n.Msg=mogiDatas.Msg;n.Data={AlertSearchId:u.AlertSearchId||0,Title:u.Title||"Nhận thông báo",ReceiveEmailType:u.ReceiveEmailType||136,HashKey:u.HashKey,Rent:u.ForRent,json:u.json||null};n.List=mogiResUtils.syscodeUtils.getAlertType();n.close=function(){i.dismiss("cancel")};n.update=function(){r.updateAlertSearch(n.Data).then(function(t){t=t.data;t.Status&&(u.ReceiveEmailType=t.Data.ReceiveEmailType,u.ReceiveEmailTypeName=mogiResUtils.getSysCode(u.ReceiveEmailType));i.close(n.Data)})}}],backdrop:"static",resolve:{obj:function(){return n}}});u.result.then(function(n){i.getUserData().then(function(t){if(t=t.data,t.Status&&!t.Data.IsVerifiedEmail&&n.ReceiveEmailType!==mogiConst.ReceiveEmailType.None){window.location.assign("/profile/verifyemail");return}return r(!0)})},function(){return r(!1)})};this.SendFeedBack=function(t){return n({method:"POST",url:mogiRoutes.Common.FeedBack,data:t})}}function homeServices(n){function t(t){return n({method:"POST",url:mogiRoutes.Home.RefreshCaptcha,data:{gid:t}})}function i(t){return n({method:"POST",url:mogiRoutes.Home.FeedBack,data:t})}return{RefreshCaptcha:t,SendFeedBack:i}}function imageServices(n){function t(t,i,r,u){if(t.type.indexOf("image/")!=0){u(mogiDatas.Msg.Msg_ProfileImage_Type_Error);return}if(t.size>=5242880){u(mogiDatas.Msg.Msg_ProfileImage_Size_Error);return}t.upload=n.upload({url:mogiRoutes.Upload.UploadImage,headers:{"optional-header":"header-value"},data:{referCode:i,file:t}});t.upload.then(function(n){if(t.result=n.data,n.data!=null&&n.data.success){var i={Url:n.data.PublishUrl,MediaId:n.data.MediaId,isUsed:!1,isChecked:!1,MediaTypeId:n.data.MediaTypeId,ServerId:n.data.ServerId,MediaUrl:n.data.MediaUrl,style:{},SmallUrl:function(){return this.Url.replace(this.MediaUrl,"thumb-small/"+this.MediaUrl)},AvatarUrl:function(){return this.Url.replace(this.MediaUrl,"thumb-avatar/"+this.MediaUrl)}};r&&r(i)}else u(n.data.error)},function(n){n.status>0&&u&&u(mogiDatas.Msg.Msg_ProfileImage_Type_Error)},function(n){t.progress=Math.min(100,parseInt(100*n.loaded/n.total))});t.upload.xhr(function(){})}return service={UploadImage:t}}function marketPrice(n){function t(t,i){return n({method:"GET",url:mogiRoutes.HousePrice.GetHousePriceSummary_ByDistrict+"?districtId="+t+"&month="+i})}function i(t,i,r){return n({method:"GET",url:mogiRoutes.HousePrice.GetHousePriceSummary_ByStreet+"?districtId="+t+"&wardId="+i+"&streetId="+r})}function r(t,i,r){return n({method:"GET",url:mogiRoutes.HousePrice.GetHousePriceMonthly_ByStreet+"?districtId="+t+"&wardId="+i+"&streetId="+r})}function u(t){return n({method:"GET",url:mogiRoutes.HousePrice.GetHousePrice_TopBy_AvgPrice+"?districtId="+t})}function f(t){return n({method:"GET",url:mogiRoutes.HousePrice.GetHousePrice_LowBy_AvgPrice+"?districtId="+t})}function e(t){return n({method:"GET",url:mogiRoutes.HousePrice.GetHousePrice_TopBy_Total+"?districtId="+t})}function o(t,i,r){return n({method:"GET",url:mogiRoutes.HousePrice.GetHousePrice_Street_vs_District+"?districtId="+t+"&wardId="+i+"&streetId="+r})}function s(t){return n({method:"POST",url:mogiRoutes.HousePrice.PropertySummaryByPriceRange,params:t})}return{GetHousePriceSummary_ByDistrict:t,GetHousePriceSummary_ByStreet:i,GetHousePriceMonthly_ByStreet:r,GetHousePrice_TopBy_AvgPrice:u,GetHousePrice_LowBy_AvgPrice:f,GetHousePrice_TopBy_Total:e,GetHousePrice_Street_vs_District:o,PropertySummaryByPriceRange:s}}function mbnAgentServices(n){function t(t){return n({method:"GET",url:mogiRoutes.MBNAgent.GetLocationAgent+t})}function i(t,i){return n({method:"GET",url:mogiRoutes.MBNAgent.GetMBNAgents+"?cityId="+t+"&districtId="+i})}return{GetLocationAgent:t,GetMBNAgents:i}}function messageService(n,t){var i=n;this.Messages=i.Profile.Messages;this.Data=[];this.Key="mogimsg";this.IsAuth=!1;this.Init=function(n,t){data=n;isAuth=t;this.Messages.Total=this.Data.length;this.IsReadAll()};this.GetData=function(n){t({method:"GET",url:mogiRoutes.Profile.getMessage,data:{code:n}}).then(function(n){i.Profile.Messages=n.data;this.Messages=n.data})};this.IsReadAll=function(){var n=$cache.get(this.Key),t;if(n===null)return this.Messages.ShowBadge=this.Data.length>0,!1;n=JSON.parse(n);t=this.Data.filter(function(t){return n.msg[t.MessageId]===!0});this.Messages.ShowBadge=t.length!==this.Data.length};this.OnRead=function(n){var r,i;if(this.IsAuth&&(r=mogiRoutes.Profile.ReadMessage+"?id="+n,t({method:"GET",url:r}).then(function(){})),i=$cache.get(this.Key),i!==null){if(i=JSON.parse(i),i.msg[n])return;i.msg[n]=!0}else i={msg:{}},i.msg[n]=!0;$cache.set(this.Key,JSON.stringify(i));this.IsReadAll()}}function projectServices(n){function t(t){return n({method:"GET",url:mogiRoutes.Project.GetQuestionsFromAsk+t})}function i(t){return n({method:"POST",url:mogiRoutes.Project.GetTopicCodeFromAsk+t})}return{GetQuestionsFromAsk:t,GetTopicCodeFromAsk:i}}function propertyServices(n){function i(t){return n({method:"POST",url:mogiRoutes.Property.TopService,data:t})}function r(t){return n({method:"POST",url:mogiRoutes.Property.SendMessageToBroker,data:t})}function t(n){var i=$("#favorite-total"),t=parseInt(i.html(),0),r;t+=n;t=Math.max(0,t);i.html(t);r=$("#favorite-icon");r.toggleClass("favorited",t>0)}function u(t){return n({method:"POST",url:mogiRoutes.Property.MapViewData,data:t})}function f(i){return t(1),n({method:"POST",url:mogiRoutes.Common.Favorite_GetList,data:i})}function e(i){return t(-1),n({method:"POST",url:mogiRoutes.Common.Favorite_Remove+"?propertyId="+i})}function o(i){return t(1),n({method:"POST",url:mogiRoutes.Common.Favorite_Add+"?propertyId="+i})}function s(){return n({method:"GET",url:mogiRoutes.Property.ReportMessages})}function h(t){return n({method:"POST",url:mogiRoutes.Property.ReportAbuse,data:t})}function c(t){return n({method:"GET",url:mogiRoutes.Property.MarketGetByDistrict+"?districtId="+t})}function l(){return n({method:"GET",url:mogiRoutes.Property.GetBankInterestRates})}function a(t,i){return n({method:"GET",url:mogiRoutes.Property.GetPropertyByStreet+"?streetId="+t+"&p="+i})}function v(t,i,r){return n({method:"GET",url:mogiRoutes.HousePrice.GetHistoryPropertyByStreet+"?streetId="+t+"&fromArea="+i+"&toArea="+r})}return{SearchMap:u,RemoveFavorite:e,AddFavorite:o,GetFavorites:f,SendMessageToAgent:r,GetMessages:s,SendReport:h,TopService:i,GetNext:function(t){var i=$.param(t);return n({method:"GET",url:mogiRoutes.Property.GetNext+"?"+i})},MarketGetByDistrict:c,GetBankInterestRates:l,GetPropertyByStreet:a,GetHistoryPropertyByStreet:v}}function researchProvinceServices(n){function t(){return n({method:"POST",url:"/ResearchProvince/GetExternalData"})}function i(){return n({method:"POST",url:"/ResearchProvince/GetOldCitiesData"})}function r(t){return n({method:"POST",url:"/ResearchProvince/GetCitySeoUrl",data:t})}function u(t){return n({method:"POST",url:"/ResearchProvince/GetWards",data:t})}return{GetExternalData:t,GetOldCitiesData:i,GetCitySeoUrl:r,GetWards:u}}function suggest(n){function i(){return{MapId:0,Name:"",ReferTypeId:0,ReferId:0,CityId:0,DistrictId:0,WardId:0,StreetId:0,ProjectId:0,PlaceId:0,SEOId:0,CodeUrl:"",FullName:function(n){return n.replace(/<.?b>/g,"")},Url:function(){return this.CodeUrl+"-mid"+this.MapId}}}function r(n,t){var r=[],e=t.data.suggest.startwith_suggester[n].suggestions,o=t.data.suggest.contain_suggester[n].suggestions,u=["MapId","ReferTypeId","ReferId","CityId","DistrictId","WardId","StreetId","ProjectId","PlaceId","SEOId","CodeUrl"],f={};return angular.forEach(e,function(n){var o=JSON.parse(n.payload),t=new i,e;for(t.Name=n.term,e=0;e=10)){for(o=JSON.parse(n.payload),t=new i,t.Name=n.term,e=0;e/g,"")}}}function c(n,t){var i=[],u=t.data.suggest.startwith_suggester[n].suggestions,e=t.data.suggest.contain_suggester[n].suggestions,r={};return angular.forEach(u,function(n){var t=new f;(t.Id=n.payload,t.Name=n.term,r[t.Id])||(r[t.Id]=t,i.push(t))}),angular.forEach(e,function(n){if(!(i.length>=10)){var t=new f;(t.Id=n.payload,t.Name=n.term,r[t.Id])||(r[t.Id]=t,i.push(t))}}),i}function l(i,r){i=i.toLowerCase();var u=t[i];return u?u:n({method:"GET",url:mogiRoutes.Common.Suggest_Project,params:{q:i},responseType:"json"}).then(function(n){return u=a(i,n),t[i]=u,r&&r(u[0]),u},function(){return t[i]=[],[]})}function e(){return{Id:"",Name:"",FullName:function(n){return n.replace(/<.?b>/g,"")}}}function a(n,t){var i=[],u=t.data.suggest.startwith_suggester[n].suggestions,f=t.data.suggest.contain_suggester[n].suggestions,r={};return angular.forEach(u,function(n){var t=new e;(t.Id=n.payload,t.Name=n.term,r[t.Id])||(r[t.Id]=t,i.push(t))}),angular.forEach(f,function(n){if(!(i.length>=10)){var t=new e;(t.Id=n.payload,t.Name=n.term,r[t.Id])||(r[t.Id]=t,i.push(t))}}),i}function u(){return{Name:"",Type:0,Id:0,Url:"",FullName:function(n){return n.replace(/<.?b>/g,"")}}}function v(n,t){var i=[],e=t.data.suggest.startwith_suggester[n].suggestions,o=t.data.suggest.contain_suggester[n].suggestions,r=["Type","Id","Url"],f={};return angular.forEach(e,function(n){var o=JSON.parse(n.payload),t=new u,e;for(t.Name=n.term,e=0;e=10)){for(o=JSON.parse(n.payload),t=new u,t.Name=n.term,e=0;e',n,"<\/style>"].join(""),f.id=e,(h?f:o).innerHTML+=l,o.appendChild(f),h||(o.style.background="",o.style.overflow="hidden",v=s.style.overflow,s.style.overflow="hidden",s.appendChild(o)),a=i(f,n),h?f.parentNode.removeChild(f):(o.parentNode.removeChild(o),s.style.overflow=v),!!a},at=function(t){var i=n.matchMedia||n.msMatchMedia,r;return i?i(t).matches:(l("@media "+t+" { #"+e+" { position: absolute; } }",function(t){r=(n.getComputedStyle?getComputedStyle(t,null):t.currentStyle).position=="absolute"}),r)},ct=function(){function r(r,u){u=u||t.createElement(n[r]||"div");r="on"+r;var f=r in u;return f||(u.setAttribute||(u=t.createElement("div")),u.setAttribute&&u.removeAttribute&&(u.setAttribute(r,""),f=h(u[r],"function"),h(u[r],"undefined")||(u[r]=i),u.removeAttribute(r))),u=null,f}var n={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return r}(),it={}.hasOwnProperty,rt,k;rt=h(it,"undefined")||h(it.call,"undefined")?function(n,t){return t in n&&h(n.constructor.prototype[t],"undefined")}:function(n,t){return it.call(n,t)};Function.prototype.bind||(Function.prototype.bind=function(n){var t=this,i,r;if(typeof t!="function")throw new TypeError;return i=tt.call(arguments,1),r=function(){var f,e,u;return this instanceof r?(f=function(){},f.prototype=t.prototype,e=new f,u=t.apply(e,i.concat(tt.call(arguments))),Object(u)===u)?u:e:t.apply(n,i.concat(tt.call(arguments)))},r});r.flexbox=function(){return f("flexWrap")};r.flexboxlegacy=function(){return f("boxDirection")};r.canvas=function(){var n=t.createElement("canvas");return!!(n.getContext&&n.getContext("2d"))};r.canvastext=function(){return!!(u.canvas&&h(t.createElement("canvas").getContext("2d").fillText,"function"))};r.webgl=function(){return!!n.WebGLRenderingContext};r.touch=function(){var i;return"ontouchstart"in n||n.DocumentTouch&&t instanceof DocumentTouch?i=!0:l(["@media (",y.join("touch-enabled),("),e,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(n){i=n.offsetTop===9}),i};r.geolocation=function(){return"geolocation"in navigator};r.postmessage=function(){return!!n.postMessage};r.websqldatabase=function(){return!!n.openDatabase};r.indexedDB=function(){return!!f("indexedDB",n)};r.hashchange=function(){return ct("hashchange",n)&&(t.documentMode===i||t.documentMode>7)};r.history=function(){return!!(n.history&&history.pushState)};r.draganddrop=function(){var n=t.createElement("div");return"draggable"in n||"ondragstart"in n&&"ondrop"in n};r.websockets=function(){return"WebSocket"in n||"MozWebSocket"in n};r.rgba=function(){return a("background-color:rgba(150,255,150,.5)"),v(c.backgroundColor,"rgba")};r.hsla=function(){return a("background-color:hsla(120,40%,100%,.5)"),v(c.backgroundColor,"rgba")||v(c.backgroundColor,"hsla")};r.multiplebgs=function(){return a("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(c.background)};r.backgroundsize=function(){return f("backgroundSize")};r.borderimage=function(){return f("borderImage")};r.borderradius=function(){return f("borderRadius")};r.boxshadow=function(){return f("boxShadow")};r.textshadow=function(){return t.createElement("div").style.textShadow===""};r.opacity=function(){return vt("opacity:.55"),/^0.55$/.test(c.opacity)};r.cssanimations=function(){return f("animationName")};r.csscolumns=function(){return f("columnCount")};r.cssgradients=function(){var n="background-image:";return a((n+"-webkit- ".split(" ").join("gradient(linear,left top,right bottom,from(#9f9),to(white));"+n)+y.join("linear-gradient(left top,#9f9, white);"+n)).slice(0,-n.length)),v(c.backgroundImage,"gradient")};r.cssreflections=function(){return f("boxReflect")};r.csstransforms=function(){return!!f("transform")};r.csstransforms3d=function(){var n=!!f("perspective");return n&&"webkitPerspective"in s.style&&l("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(t){n=t.offsetLeft===9&&t.offsetHeight===3}),n};r.csstransitions=function(){return f("transition")};r.fontface=function(){var n;return l('@font-face {font-family:"font";src:url("https://")}',function(i,r){var f=t.getElementById("smodernizr"),u=f.sheet||f.styleSheet,e=u?u.cssRules&&u.cssRules[0]?u.cssRules[0].cssText:u.cssText||"":"";n=/src/i.test(e)&&e.indexOf(r.split(" ")[0])===0}),n};r.generatedcontent=function(){var n;return l(["#",e,"{font:0/0 a}#",e,':after{content:"',g,'";visibility:hidden;font:3px/1 a}'].join(""),function(t){n=t.offsetHeight>=3}),n};r.video=function(){var i=t.createElement("video"),n=!1;try{(n=!!i.canPlayType)&&(n=new Boolean(n),n.ogg=i.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),n.h264=i.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),n.webm=i.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""))}catch(r){}return n};r.audio=function(){var i=t.createElement("audio"),n=!1;try{(n=!!i.canPlayType)&&(n=new Boolean(n),n.ogg=i.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),n.mp3=i.canPlayType("audio/mpeg;").replace(/^no$/,""),n.wav=i.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),n.m4a=(i.canPlayType("audio/x-m4a;")||i.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(r){}return n};r.localstorage=function(){try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(n){return!1}};r.sessionstorage=function(){try{return sessionStorage.setItem(e,e),sessionStorage.removeItem(e),!0}catch(n){return!1}};r.webworkers=function(){return!!n.Worker};r.applicationcache=function(){return!!n.applicationCache};r.svg=function(){return!!t.createElementNS&&!!t.createElementNS(p.svg,"svg").createSVGRect};r.inlinesvg=function(){var n=t.createElement("div");return n.innerHTML="",(n.firstChild&&n.firstChild.namespaceURI)==p.svg};r.smil=function(){return!!t.createElementNS&&/SVGAnimate/.test(ft.call(t.createElementNS(p.svg,"animate")))};r.svgclippaths=function(){return!!t.createElementNS&&/SVGClipPath/.test(ft.call(t.createElementNS(p.svg,"clipPath")))};for(k in r)rt(r,k)&&(b=k.toLowerCase(),u[b]=r[k](),nt.push((u[b]?"":"no-")+b));return u.input||pt(),u.addTest=function(n,t){if(typeof n=="object")for(var r in n)rt(n,r)&&u.addTest(r,n[r]);else{if(n=n.toLowerCase(),u[n]!==i)return u;t=typeof t=="function"?t():t;typeof d!="undefined"&&d&&(s.className+=" "+(t?"":"no-")+n);u[n]=t}return u},a(""),ut=o=null,function(n,t){function p(n,t){var i=n.createElement("p"),r=n.getElementsByTagName("head")[0]||n.documentElement;return i.innerHTML="x