(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{408:function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=42)}([function(t,e){t.exports=n(0)},function(t,e,n){t.exports={user_center_box:"usercenter_user_center_box",avatar:"usercenter_avatar",avatar_img:"usercenter_avatar_img",no_login:"usercenter_no_login",no_login_box:"usercenter_no_login_box",no_login_text:"usercenter_no_login_text",panel:"usercenter_panel",content:"usercenter_content",uInfo:"usercenter_uinfo",vipBorder:"usercenter_vipborder",uLink:"usercenter_ulink",vipULink:"usercenter_vipulink",vipLevelIcon:"usercenter_viplevelicon",exitLogin:"usercenter_exitlogin",uInfoInt:"usercenter_uinfoint",uList:"usercenter_ulist",item:"usercenter_item",lastItem:"usercenter_lastitem",iconSpan:"usercenter_iconspan",text:"usercenter_text",user_content:"usercenter_user_content",user_content_avatar:"usercenter_user_content_avatar",user_content_avatar_int:"usercenter_user_content_avatar_int",user_content_avatar_img:"usercenter_user_content_avatar_img",user_content_txt:"usercenter_user_content_txt",user_content_int:"usercenter_user_content_int",card_content:"usercenter_card_content",card_content_top:"usercenter_card_content_top",card_content_top_content:"usercenter_card_content_top_content",card_content_top_content_txt:"usercenter_card_content_top_content_txt",card_content_top_content_span:"usercenter_card_content_top_content_span",vipColorSubTitle:"usercenter_vipcolorsubtitle",crm_btn:"usercenter_crm_btn",svip_crm_btn:"usercenter_svip_crm_btn",card_content_bottom:"usercenter_card_content_bottom",card_content_bottom_item:"usercenter_card_content_bottom_item",intPanel:"usercenter_intpanel",vipPanel:"usercenter_vippanel",svipPanel:"usercenter_svippanel",uPanel:"usercenter_upanel","user_panel_tab-in-animation":"usercenter_user_panel_tab-in-animation",winPanel:"usercenter_winpanel",winRedPanel:"usercenter_winredpanel",user_center_box_win:"usercenter_user_center_box_win",user_center_redbox_win:"usercenter_user_center_redbox_win",user_center_box_nav:"usercenter_user_center_box_nav",oldStyle:"usercenter_oldstyle"}},function(t,e){t.exports={getUserAgent:function(t){return t.app.env?t.header["yk-user-agent"]||t.header["user-agent"]:t.navigator.userAgent},getCna:function(){if(navigator.userAgent.indexOf("YoukuDesktop")>-1&&window.__INITIAL_DATA__&&window.__INITIAL_DATA__.ikuUtdid)return window.__INITIAL_DATA__.ikuUtdid;var t="",e=new RegExp("(^| )cna=([^;]*)(;|$)"),n=document.cookie.match(e);return n&&n[2]&&(t=n[2]),t},getPid:function(){var t,e,n,r,o,a,i,c,l=(null===(t=window)||void 0===t||null===(e=t.__ENVDATA__)||void 0===e?void 0:e.pid)||(null===(n=window)||void 0===n||null===(r=n.__INITIAL_DATA__)||void 0===r?void 0:r.pid)||(null===(o=window)||void 0===o||null===(a=o.PageConfig)||void 0===a?void 0:a.ykPid)||"";if(l)return l;var u=null===(i=navigator)||void 0===i||null===(c=i.userAgent)||void 0===c?void 0:c.match(/PID\s([^;]+)/);return u&&u.length>1&&(l=u[1]||""),l},getCookie:function(t,e){var n=navigator.userAgent.indexOf("YoukuDesktop")>-1,r="";if(e&&e.app&&e.app.env)return r=e.cookies.get(t,{encrypt:!1,signed:!1,overwrite:!0}),Promise.resolve(r);if(n&&window.ikuApi&&window.ikuApi.getSessionCookies)return window.ikuApi.getSessionCookies({domain:".youku.com"}).then((function(e){var n=e.filter((function(e){return e.name===t}));return n[0]?n[0].value:""}));var o=new RegExp("(^| )"+t+"=([^;]*)(;|$)"),a=document.cookie.match(o);return a&&a[2]&&(r=a[2]),Promise.resolve(r)},getCookieByName:function(t){var e=new RegExp("(^| )".concat(t,"=([^;]*)(;|$)")),n=document.cookie.match(e);if(n&&n[2])return n[2]},setCookie:function(t,e,n,r,o){var a,i=t+"="+e;if(n){var c=1e3*n;i+=";expires="+(a=new Date((new Date).getTime()+c)).toUTCString()}if(navigator.userAgent.indexOf("YoukuDesktop")>-1&&window.ikuApi&&window.ikuApi.setSessionCookies){var l={url:"https://www.youku.com",name:t,value:"".concat(e),domain:r||".youku.com",path:o||"/"};return a&&(l.expirationDate=a.toUTCString()),void window.ikuApi.setSessionCookies(l)}i+=r?";domain="+r:";domain="+window.location.host.replace(window.location.port,"").replace(":",""),i+=o?";path="+o:";path=/",document.cookie=i},getQueryString:function(t){var e={},n=location.search.substr(1).split("&");if(n)for(var r=0;r<n.length;r++){var o=n[r].split("=");e[o[0]]=o[1]}return e[t]},getPreStr:function(t){var e,n=null==t?void 0:t.match(/pre|prodtest|local|pre2|staging/i);return null==n||null===(e=n[0])||void 0===e?void 0:e.toString()},expRecord:function(t){var e=t.key,n=t.frequency,r=60*t.timeTnterval*60||0,o=(new Date).getTime(),a=this.getCookieByName(e);if(!a)return this.setCookie(e,"1_".concat(o),r),!0;var i=a.split("_")[0],c=a.split("_")[1];if(Number(i)<Number(n)){var l=Math.floor((Number(c)+1e3*r-o)/1e3);return this.setCookie(e,"".concat(Number(i)+1,"_").concat(c),l),!0}return!1}}},function(t,e,n){t.exports={uRecord:"historyrecord_urecord",headerLogImgLeft:"historyrecord_headerlogimgleft",headerLogImg:"historyrecord_headerlogimg",rightText:"historyrecord_righttext",rightTextFont:"historyrecord_righttextfont",headerLogDate:"historyrecord_headerlogdate",headerLogTime:"historyrecord_headerlogtime",headerLogImgRight:"historyrecord_headerlogimgright",recordIcon:"historyrecord_recordicon",panel:"historyrecord_panel","panel_tab-in-animation":"historyrecord_panel_tab-in-animation",filterArea:"historyrecord_filterarea",check:"historyrecord_check",content:"historyrecord_content",arrow:"historyrecord_arrow",intPanel:"historyrecord_intpanel",uPanel:"historyrecord_upanel","user_panel_tab-in-animation":"historyrecord_user_panel_tab-in-animation",intuPanel:"historyrecord_intupanel","user_panel_tab-in-animation-int":"historyrecord_user_panel_tab-in-animation-int",recordLogin:"historyrecord_recordlogin",recList:"historyrecord_reclist",icoDevice:"historyrecord_icodevice",recSt:"historyrecord_recst",hoverMore:"historyrecord_hovermore",next:"historyrecord_next",deletePlaylog:"historyrecord_deleteplaylog",notPlayable:"historyrecord_notplayable",noRecord:"historyrecord_norecord","no-record-bg":"historyrecord_no-record-bg",uBottom:"historyrecord_ubottom",moreButton:"historyrecord_morebutton",logout:"historyrecord_logout",imgtip:"historyrecord_imgtip",subtitle:"historyrecord_subtitle",loginbuttonBox:"historyrecord_loginbuttonbox",loginbutton:"historyrecord_loginbutton",redPointer:"historyrecord_redpointer",dropdownOpen:"historyrecord_dropdownopen",handle:"historyrecord_handle",icoUrecord:"historyrecord_icourecord",showanimate:"historyrecord_showanimate"}},function(t,e,n){t.exports={hot_search_list:"hot-search-list_hot_search_list",nav_list:"hot-search-list_nav_list",nav_item_box:"hot-search-list_nav_item_box",nav_item_box_content:"hot-search-list_nav_item_box_content",nav_page_tabs:"hot-search-list_nav_page_tabs",nav_page_tabs_left:"hot-search-list_nav_page_tabs_left",nav_page_tabs_right:"hot-search-list_nav_page_tabs_right",nav_page_tabs_opacity:"hot-search-list_nav_page_tabs_opacity",nav_item:"hot-search-list_nav_item",current_item:"hot-search-list_current_item",list_box:"hot-search-list_list_box",hot_item:"hot-search-list_hot_item",hot_item_nohover_box:"hot-search-list_hot_item_nohover_box",hot_item_hover_box:"hot-search-list_hot_item_hover_box",hot_item_hover_box_img:"hot-search-list_hot_item_hover_box_img",hot_item_hover_content:"hot-search-list_hot_item_hover_content",hot_item_hover_content_title:"hot-search-list_hot_item_hover_content_title",hot_item_hover_content_txt:"hot-search-list_hot_item_hover_content_txt",hot_item_txt_hover:"hot-search-list_hot_item_txt_hover",hot_item_txt_hover2:"hot-search-list_hot_item_txt_hover2",hot_item_img_hover:"hot-search-list_hot_item_img_hover",hot_item_img_hover2:"hot-search-list_hot_item_img_hover2",hot_word:"hot-search-list_hot_word",hot_word_tag:"hot-search-list_hot_word_tag",hot_word_tag_number:"hot-search-list_hot_word_tag_number",hot_point_tag:"hot-search-list_hot_point_tag",hot_point_tag_icon:"hot-search-list_hot_point_tag_icon",tag:"hot-search-list_tag",order_box:"hot-search-list_order_box",order:"hot-search-list_order",text:"hot-search-list_text",one:"hot-search-list_one",two:"hot-search-list_two",three:"hot-search-list_three",more:"hot-search-list_more",last:"hot-search-list_last",hot_more:"hot-search-list_hot_more"}},function(t,e,n){t.exports={hot_component:"hot-search-component_hot_component",nav_list:"hot-search-component_nav_list",nav_item_box:"hot-search-component_nav_item_box",nav_item_box_content:"hot-search-component_nav_item_box_content",nav_page_tabs:"hot-search-component_nav_page_tabs",nav_page_tabs_left:"hot-search-component_nav_page_tabs_left",nav_page_tabs_right:"hot-search-component_nav_page_tabs_right",nav_page_tabs_opacity:"hot-search-component_nav_page_tabs_opacity",nav_item:"hot-search-component_nav_item",current_item:"hot-search-component_current_item",list_box:"hot-search-component_list_box",hot_item:"hot-search-component_hot_item",hot_item_nohover_box:"hot-search-component_hot_item_nohover_box",hot_item_hover_box:"hot-search-component_hot_item_hover_box",hot_item_hover_box_img:"hot-search-component_hot_item_hover_box_img",hot_item_hover_content:"hot-search-component_hot_item_hover_content",hot_item_hover_content_title:"hot-search-component_hot_item_hover_content_title",hot_item_hover_content_txt:"hot-search-component_hot_item_hover_content_txt",hot_item_txt_hover:"hot-search-component_hot_item_txt_hover",hot_item_img_hover:"hot-search-component_hot_item_img_hover",hot_word:"hot-search-component_hot_word",hot_word_tag:"hot-search-component_hot_word_tag",hot_word_tag_number:"hot-search-component_hot_word_tag_number",hot_point_tag:"hot-search-component_hot_point_tag",hot_point_tag_icon:"hot-search-component_hot_point_tag_icon",order_box:"hot-search-component_order_box",order:"hot-search-component_order",text:"hot-search-component_text",one:"hot-search-component_one",two:"hot-search-component_two",three:"hot-search-component_three",more:"hot-search-component_more",last:"hot-search-component_last",hot_more:"hot-search-component_hot_more",hot_component_short:"hot-search-component_hot_component_short"}},function(t,e,n){t.exports={vip_wrap:"vip_vip_wrap",vip_buy_button:"vip_vip_buy_button",vip_icon:"vip_vip_icon",vip_pop_content:"vip_vip_pop_content",vip_icontxt_width:"vip_vip_icontxt_width",vip_iconpop_width:"vip_vip_iconpop_width",icontxt:"vip_icontxt",angle_mark:"vip_angle_mark","angle-mark-in-animation":"vip_angle-mark-in-animation",vip_panel:"vip_vip_panel",vip_panel_content:"vip_vip_panel_content",panel_txt_list:"vip_panel_txt_list",panel_txt_item:"vip_panel_txt_item",panel_code_box:"vip_panel_code_box",panel_code_img:"vip_panel_code_img",code_loading:"vip_code_loading","code-refresh-in-animation":"vip_code-refresh-in-animation",code_error:"vip_code_error",code_error_box:"vip_code_error_box",panel_code_txt:"vip_panel_code_txt",bottomBox:"vip_bottombox",bottomButton:"vip_bottombutton",bottomButtonPop:"vip_bottombuttonpop",bottomButtonPopTxt:"vip_bottombuttonpoptxt",item_content:"vip_item_content",uPanel:"vip_upanel","user_panel_tab-in-animation":"vip_user_panel_tab-in-animation",masPanel:"vip_maspanel"}},function(t,e,n){t.exports={sugSearchList:"keyword-search-list_sugsearchlist",sugItem:"keyword-search-list_sugitem",left_word:"keyword-search-list_left_word",sugItemBox:"keyword-search-list_sugitembox",sugNoSubHover:"keyword-search-list_sugnosubhover",sugImgItem:"keyword-search-list_sugimgitem",sugItemHoverBox:"keyword-search-list_sugitemhoverbox",sugItemHoverContent:"keyword-search-list_sugitemhovercontent",sugItemHoverContentTitle:"keyword-search-list_sugitemhovercontenttitle",sugItemHoverContentTip:"keyword-search-list_sugitemhovercontenttip",sugItemHoverBoxImg:"keyword-search-list_sugitemhoverboximg",sugItemHoverBtn:"keyword-search-list_sugitemhoverbtn",sugItemHoverBoxNoBtn:"keyword-search-list_sugitemhoverboxnobtn",sugImgItemHover:"keyword-search-list_sugimgitemhover",sugItemHover:"keyword-search-list_sugitemhover",sugTextItem:"keyword-search-list_sugtextitem",sugTextItemHover:"keyword-search-list_sugtextitemhover",sugSubItemHover:"keyword-search-list_sugsubitemhover",sugItemFoucs:"keyword-search-list_sugitemfoucs",sugItemBoxLeft:"keyword-search-list_sugitemboxleft",tagBox:"keyword-search-list_tagbox",tag:"keyword-search-list_tag",tagText:"keyword-search-list_tagtext"}},function(t,e,n){t.exports={topHeaderWrap:"topheader_topheaderwrap",top_header_box:"topheader_top_header_box",uosHeader:"topheader_uosheader",red_box:"topheader_red_box",top_box:"topheader_top_box",top_header_car:"topheader_top_header_car",top_header_car_nohome:"topheader_top_header_car_nohome",uos_top_box:"topheader_uos_top_box",utils_box:"topheader_utils_box",top_box_mac:"topheader_top_box_mac",top_box_win:"topheader_top_box_win",no_drag:"topheader_no_drag",hasAd:"topheader_hasad",header_width:"topheader_header_width",headerBackGround:"topheader_headerbackground",scroll_class:"topheader_scroll_class","top_header_scroll-in-animation":"topheader_top_header_scroll-in-animation",scroll_no_class:"topheader_scroll_no_class","top_header_scroll_no-in-animation":"topheader_top_header_scroll_no-in-animation",search_box_mac:"topheader_search_box_mac"}},function(t,e,n){t.exports={left_header_box:"leftheader_left_header_box",navList_wrap:"leftheader_navlist_wrap",nav_area_box:"leftheader_nav_area_box",shadow_bottom:"leftheader_shadow_bottom",nav_area_box_red:"leftheader_nav_area_box_red",left_header_box_red:"leftheader_left_header_box_red",left_nav_box:"leftheader_left_nav_box",link_item:"leftheader_link_item","tab-hover-animation":"leftheader_tab-hover-animation",link_item_car:"leftheader_link_item_car","car-tab-hover-animation":"leftheader_car-tab-hover-animation",link_item_vip:"leftheader_link_item_vip",current_item:"leftheader_current_item","current-tab-hover-animation":"leftheader_current-tab-hover-animation",current_item_vip:"leftheader_current_item_vip",current_item_car:"leftheader_current_item_car","car-current-tab-hover-animation":"leftheader_car-current-tab-hover-animation",shaixuan_box:"leftheader_shaixuan_box",line:"leftheader_line",icon_span:"leftheader_icon_span",footer_current_item:"leftheader_footer_current_item"}},function(t,e,n){t.exports={search_box:"search_search_box",hot_search_box:"search_hot_search_box",hot_search_box_title:"search_hot_search_box_title",fire:"search_fire",hot_search:"search_hot_search",selected:"search_selected",focus_button:"search_focus_button",search_list:"search_search_list",close_box:"search_close_box",search_box_int:"search_search_box_int",search_box_vip:"search_search_box_vip",search_box_nav:"search_search_box_nav",search_box_short:"search_search_box_short",focus_search_box:"search_focus_search_box",hover_search_box:"search_hover_search_box"}},function(t,e,n){t.exports={nav_box:"topheadernav_nav_box",nav_item:"topheadernav_nav_item",nav_cut:"topheadernav_nav_cut",iconfontheader:"topheadernav_iconfontheader",nav_item_color:"topheadernav_nav_item_color",nav_panel:"topheadernav_nav_panel",nav_panel_list:"topheadernav_nav_panel_list",nav_panel_item:"topheadernav_nav_panel_item",nav_panel_cut:"topheadernav_nav_panel_cut",nav_panel_vip:"topheadernav_nav_panel_vip",nav_panel_vip_txt:"topheadernav_nav_panel_vip_txt",uPanel:"topheadernav_upanel","user_panel_tab-in-animation":"topheadernav_user_panel_tab-in-animation"}},function(t,e,n){t.exports={nav_box:"internationalnav_nav_box",nav_item:"internationalnav_nav_item",nav_cut:"internationalnav_nav_cut",iconfontheader:"internationalnav_iconfontheader",nav_item_color:"internationalnav_nav_item_color",current:"internationalnav_current",nav_icon:"internationalnav_nav_icon",nav_panel:"internationalnav_nav_panel",nav_panel_list:"internationalnav_nav_panel_list",nav_panel_item:"internationalnav_nav_panel_item",nav_panel_cut:"internationalnav_nav_panel_cut",nav_panel_vip:"internationalnav_nav_panel_vip",nav_panel_vip_txt:"internationalnav_nav_panel_vip_txt",uPanel:"internationalnav_upanel","user_panel_tab-in-animation":"internationalnav_user_panel_tab-in-animation"}},function(t,e,n){t.exports={intapp_box:"intappdownload_intapp_box",icon_span:"intappdownload_icon_span",intapp_panel:"intappdownload_intapp_panel",text_box:"intappdownload_text_box",line:"intappdownload_line",code_wrap:"intappdownload_code_wrap",code_box:"intappdownload_code_box",code:"intappdownload_code",houzi:"intappdownload_houzi",uPanel:"intappdownload_upanel","user_panel_tab-in-animation":"intappdownload_user_panel_tab-in-animation"}},function(t,e,n){t.exports={logo_box:"logo_logo_box",logo_img:"logo_logo_img",logo_i18n:"logo_logo_i18n",logo_vip:"logo_logo_vip",nav_logo:"logo_nav_logo",logo_int:"logo_logo_int",oldStyle:"logo_oldstyle",logo_hover:"logo_logo_hover",I18n_box:"logo_i18n_box"}},function(t,e,n){t.exports={input_box:"search-input_input_box",icon_box:"search-input_icon_box",search_clear:"search-input_search_clear",input_focus:"search-input_input_focus",input_focus_int:"search-input_input_focus_int",input_short:"search-input_input_short",hiddenipt:"search-input_hiddenipt"}},function(t,e,n){t.exports={kuhuduan_box:"ikudownload_kuhuduan_box",download_panel:"ikudownload_download_panel",item_content:"ikudownload_item_content",bottom_button_box:"ikudownload_bottom_button_box",bottom_button:"ikudownload_bottom_button",uPanel:"ikudownload_upanel","user_panel_tab-in-animation":"ikudownload_user_panel_tab-in-animation"}},function(t,e,n){t.exports={H5Content:"h5activity_h5content",conBox:"h5activity_conbox",bottomMask:"h5activity_bottommask",closeBtn:"h5activity_closebtn",H5Center:"h5activity_h5center"}},function(t,e,n){t.exports={history_search_list:"history-search-list_history_search_list",title:"history-search-list_title",historyListBox:"history-search-list_historylistbox",history_item:"history-search-list_history_item",history_item_hover:"history-search-list_history_item_hover"}},function(t,e,n){t.exports={infoBottom:"promotelogin_infobottom",close:"promotelogin_close",title:"promotelogin_title",subTitle:"promotelogin_subtitle",buttonBox:"promotelogin_buttonbox"}},function(t,e,n){t.exports={lang_box:"language_lang_box",icon_span:"language_icon_span",lang_panel:"language_lang_panel",current:"language_current",uPanel:"language_upanel","user_panel_tab-in-animation":"language_user_panel_tab-in-animation"}},function(t,e){t.exports=n(254)},function(t,e,n){t.exports={win_header:"winheaderbox_win_header",win_header_red:"winheaderbox_win_header_red",YLine:"winheaderbox_yline"}},function(t,e,n){t.exports={localfile_box:"localfile_localfile_box",icon_span:"localfile_icon_span"}},function(t,e,n){t.exports={localplay_box:"localplay_localplay_box",icon_span:"localplay_icon_span"}},function(t,e,n){t.exports={reload_box:"reload_reload_box",icon_span:"reload_icon_span"}},function(t,e){t.exports=n(212)},function(t,e){t.exports=n(120)},function(t,e){t.exports=n(405)},function(t,e){t.exports=n(1061)},function(t,e){t.exports=n(1067)},function(t,e){var n,r={getUserAgent:function(){return window.navigator.userAgent},userAgentContains:function(t){return t=t.toLowerCase(),this.getUserAgent().toLowerCase().indexOf(t)>-1},isOSX:function(){return this.userAgentContains("Macintosh")},isFirefox:function(){return this.userAgentContains("firefox")},isInternetExplorer:function(){return this.userAgentContains("trident")},isIE:function(){var t=this.getUserAgent().toLowerCase();return t.indexOf("msie")>0||t.indexOf("trident/")>0},isEdge:function(){return this.getUserAgent().toLowerCase().indexOf("edge")>0},isChrome:function(){var t=window.chrome,e=window.navigator,n=e.vendor,r=void 0!==window.opr,o=e.userAgent.indexOf("Edge")>-1,a=e.userAgent.match("CriOS");return null!=t&&"Google Inc."===n&&!1===r&&!1===o||a},isOpera:function(){return this.userAgentContains(" OPR/")}},o=function(t,e,n){return t.addEventListener?(t.addEventListener(e,n),{remove:function(){t.removeEventListener(e,n)}}):(t.attachEvent(e,n),{remove:function(){t.detachEvent(e,n)}})},a=function(t,e){var n=document.createElement("iframe");return n.src=e,n.id="hiddenIframe",n.style.display="none",t.appendChild(n),n},i=function(t,e,r){var i=setTimeout((function(){e(),l.remove()}),n),c=document.querySelector("#hiddenIframe");c||(c=a(document.body,"about:blank"));var l=o(window,"blur",(function(){clearTimeout(i),l.remove(),r()}));c.contentWindow.location.href=t},c=function(t,e,r){for(var a=setTimeout((function(){e(),c.remove()}),n),i=window;i.parent&&i!=i.parent;)i=i.parent;var c=o(i,"blur",(function(){clearTimeout(a),c.remove(),r()}));window.location.href=t},l=function(t,e,n){var r=document.querySelector("#hiddenIframe");r||(r=a(document.body,"about:blank"));try{r.contentWindow.location.href=t,n()}catch(t){"NS_ERROR_UNKNOWN_PROTOCOL"==t.name&&e()}},u=function(t,e,n){navigator.msLaunchUri(t,n,e)},s=function(){var t,e=window.navigator.userAgent,n=e.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(n[1])?(t=/\brv[ :]+(\d+)/g.exec(e)||[],parseFloat(t[1])||""):"Chrome"===n[1]&&null!=(t=e.match(/\b(OPR|Edge)\/(\d+)/))?parseFloat(t[2]):(n=n[2]?[n[1],n[2]]:[window.navigator.appName,window.navigator.appVersion,"-?"],null!=(t=e.match(/version\/(\d+)/i))&&n.splice(1,1,t[1]),parseFloat(n[1]))};t.exports=function(t,e,a){var f=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2e3,h=arguments.length>4?arguments[4]:void 0,d=function(){e&&e()},p=function(){a&&a()},m=function(){h&&h()},v=function(){r.isFirefox()?s()>=64?i(t,d,p):l(t,d,p):r.isChrome()?c(t,d,p):r.isOSX()||r.isOpera()?i(t,d,p):m()};if(f&&(n=f),r.isEdge()||r.isIE())u(t,e,a);else if(document.hasFocus())v();else var y=o(window,"focus",(function(){y.remove(),v()}))}},function(t,e,n){t.exports={toastBox:"toast_toastbox"}},function(t,e,n){t.exports={adWrap:"src_adwrap"}},function(t,e){t.exports=n(311)},function(t,e){t.exports=n(1077)},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){"use strict";n.r(e);var r=n(0),o=n.n(r),a=n(2),i=n(21),c={config:function(t,e){window.lib.mtop.config[t]=e},request:function(t){var e,r,o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=location.host.includes("youku.tv"),c=location.search.includes("isProd=1")?"prod":(null===(e=window)||void 0===e?void 0:e.__ENV__)||(null===(r=window)||void 0===r||null===(o=r.__ENVDATA__)||void 0===o?void 0:o.env)||"prod";return new Promise((function(e,r){var o,l,u,s,f,h,d=(null===(o=window)||void 0===o||null===(l=o.lib)||void 0===l?void 0:l.mtop)||n(34),p={api:t,v:a.v||"1.0",data:a.data||{},ecode:0,appKey:i?"34300712":a.appKey||(null===(u=window)||void 0===u||null===(s=u.lib)||void 0===s||null===(f=s.mtop)||void 0===f||null===(h=f.config)||void 0===h?void 0:h.appKey)||"24679788",dataType:a.dataType||"jsonp",jsonpIncPrefix:(a.jsonpIncPrefix||"")+(new Date).getTime()};d.config.prefix="local"===c||"staging"===c||"pre"===c?"pre-acs":"acs",d.config.subDomain="",i?(d.config.mainDomain="youku.tv",d.config.syncCookieMode=!0):d.config.mainDomain="youku.com",window&&window.mtopConfig&&Object.assign(window.lib.mtop.config,window.mtopConfig),d.request(p,(function(t){t.ret.join(",").indexOf("SUCCESS")>-1?e(t):r(t)}),(function(t){r(t)}))}))}},l=c,u=n(26);function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(){f=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function h(t,e,n,r){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),c=new C(r||[]);return o(i,"_invoke",{value:L(t,n,c)}),i}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var p="suspendedStart",m="executing",v="completed",y={};function g(){}function _(){}function b(){}var w={};u(w,i,(function(){return this}));var x=Object.getPrototypeOf,E=x&&x(x(T([])));E&&E!==n&&r.call(E,i)&&(w=E);var k=b.prototype=g.prototype=Object.create(w);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function n(o,a,i,c){var l=d(t[o],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==s(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,i,c)}),(function(t){n("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function L(e,n,r){var o=p;return function(a,i){if(o===m)throw Error("Generator is already running");if(o===v){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var c=r.delegate;if(c){var l=j(c,r);if(l){if(l===y)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=d(e,n,r);if("normal"===u.type){if(o=r.done?v:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=v,r.method="throw",r.arg=u.arg)}}}function j(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,j(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var a=d(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,y;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function T(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(s(e)+" is not iterable")}return _.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:_,configurable:!0}),_.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===_||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},S(O.prototype),u(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new O(h(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},S(k),u(k,l,"Generator"),u(k,i,(function(){return this})),u(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=T,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),I(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;I(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},e}function h(t,e,n,r,o,a,i){try{var c=t[a](i),l=c.value}catch(t){return void n(t)}c.done?e(l):Promise.resolve(l).then(r,o)}function d(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){h(a,r,o,i,c,"next",t)}function c(t){h(a,r,o,i,c,"throw",t)}i(void 0)}))}}function p(t,e,n){return(e=g(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,g(r.key),r)}}function y(t,e,n){return e&&v(t.prototype,e),n&&v(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function g(t){var e=_(t,"string");return"symbol"==s(e)?e:e+""}function _(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var b={LOGIN_SUCCESS:"Xlogin:loginSuccess",LOGIN_OUT:"Xlogin:logoutSuccess",CHECK_LOGIN:"Xlogin:checkLogin"},w=y((function t(e,n,r){m(this,t),this._isLoginStatus=e,this._userInfo=n,this._loginExtend=r}),[{key:"isLoginStatus",get:function(){return this._isLoginStatus}},{key:"userInfo",get:function(){return this._userInfo}},{key:"loginExtend",get:function(){return this._loginExtend}}]),x=function(){return y((function t(e){var n=this;m(this,t),p(this,"loginInsatance",null),p(this,"loginExtend",null),p(this,"eventbusSuccess",[]),p(this,"eventbusLogin",new i.BehaviorSubject(new w(!1,null,null))),p(this,"eventbusLoggout",new i.Subject),p(this,"isLoginStatus",!1),p(this,"checkLoginStatus",!1),p(this,"_userInfo",null),p(this,"_isUseNew",!0),p(this,"DefaultLoginOptions",{loginOrLogout:"login",callbackURL:"",mode:"popup",template:"tempA",buid:"youku",pid:"8fb8456183734a86bfc1c15a1c761cdf",themes:["148AFF","c0e8f6"],bgThemes:"#fff url("+(t.isEvening?t.ThemeConfig.eveningBgURL:t.ThemeConfig.daytimeBgURL)+") no-repeat right bottom",fontColor:t.isEvening?t.ThemeConfig.eveningFontColor:t.ThemeConfig.daytimeFontColor,inkColor:t.isEvening?t.ThemeConfig.eveningFontColor:t.ThemeConfig.daytimeFontColor,padding:[30,30,30,410],loginModel:["normal","mobile"],regModel:["mobile"],isQRlogin:!0,isThirdPartLogin:!0,regShowType:"in",regRules:["\u7528\u6237\u534f\u8bae","//mapp.youku.com/service/agreement","//mapp.youku.com/service/copyright"],qrMsg:"\u8bf7\u4f7f\u7528\u4f18\u9177APP\u626b\u7801\u767b\u5f55",qrBu:["ykt",80,"false"],size:"normal",checkNoLogin:function(){},loadSucess:function(){},loginSuccess:function(){},login:this.login,logout:this.logout,isLogin:!1,getUserInfo:function(){return n.userInfo},on:function(t,e){n.on(t,e)}}),e&&(this.DefaultLoginOptions.pid="20211011PLF008702"),this.HasPCookie().then((function(t){n.DefaultLoginOptions.isLogin=t,n.init()}))}),[{key:"userInfo",get:function(){return this._userInfo}},{key:"HasPCookie",value:(n=d(f().mark((function t(){var e;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=decodeURIComponent,t.next=3,Object(a.getCookie)("P_gck");case 3:if(t.t1=t.sent,t.t1){t.next=6;break}t.t1="";case 6:return t.t2=t.t1,e=(0,t.t0)(t.t2).split("|")[1],t.abrupt("return",null!=e&&"NA"!==e);case 9:case"end":return t.stop()}}),t)}))),function(){return n.apply(this,arguments)})},{key:"init",value:function(){var t=this;if(this._isUseNew=!!window.useNewLogin&&window.useNewLogin,this._isUseNew&&!this.loginInsatance){var e=this.DefaultLoginOptions;e.loginSuccess=function(){t.loginInsatance&&t.loginInsatance.closeFrame&&t.loginInsatance.closeFrame(),t.loginSuccess()},this.loginInsatance=new u.YoukuLoginNew(e),window.XloginNew=this.loginInsatance}window.YKLoginLoader?this.Xlogin():E("pre"===window.__ENV__||"staging"===window.__ENV__||"local"===window.__ENV__?"//dev.g.alicdn.com/static-es6/login/3.0.6/src/public/load.js":"//g.alicdn.com/static-es6/login/3.0.6/public/load.js",(function(){t.Xlogin()}))}},{key:"createSuccessEvent",value:function(){var t=new i.Subject;return this.eventbusSuccess.push(t),t}},{key:"checkLogin",value:(e=d(f().mark((function t(){var e,n,r,o,a,i,c,u,s,h,p=arguments;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=!(p.length>0&&void 0!==p[0])||p[0],t.next=3,this.HasPCookie();case 3:if(n=t.sent,!this.userInfo||!n){t.next=10;break}return r=new w(this.isLoginStatus,this.userInfo,this.loginExtend),e&&this.eventbusLogin.next(r),t.abrupt("return",r);case 10:return this.checkLoginStatus=!0,o={deviceType:"pc",show:1},a={req:JSON.stringify(o)},i=!1,t.next=16,l.request("mtop.youku.vip.xtop.member.profile.get",{data:a,dataType:"json"}).catch(function(){var t=d(f().mark((function t(e){return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=!0,t.abrupt("return",{});case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 16:if(c=t.sent,i){t.next=32;break}if(!c.ret||"SUCCESS::\u8c03\u7528\u6210\u529f"!==c.ret[0]||!c.data){t.next=26;break}return this.isLoginStatus=!0,c.data.loginStatus=!0,u=new w(this.isLoginStatus,c.data,this.loginExtend),e&&this.eventbusLogin.next(u),t.abrupt("return",u);case 26:return this.isLoginStatus=!1,s=new w(this.isLoginStatus,null,null),e&&this.eventbusLogin.next(s),t.abrupt("return",s);case 30:t.next=36;break;case 32:return this.isLoginStatus=!1,h=new w(this.isLoginStatus,this.assignEmptyObj(),null),e&&this.eventbusLogin.next(h),t.abrupt("return",h);case 36:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"loginSuccess",value:function(){var t=this;this.isLoginStatus=!0,this.eventbusSuccess.forEach((function(t){t.next("web app is success logined")})),setTimeout((function(){t.checkLogin()}),0)}},{key:"login",value:function(t){var e,n;(t=t||{}).regist?null===(e=this.loginInsatance)||void 0===e||e.buildRegDom():null===(n=this.loginInsatance)||void 0===n||n.buildLoginDom(),t.extend&&(this.loginExtend=t.extend)}},{key:"logoutSuccess",value:function(){this._userInfo=null,this.eventbusLoggout.next("web app is success loggout")}},{key:"logout",value:(t=d(f().mark((function t(){var e=this;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t){e._isUseNew?e.loginInsatance.logout({logoutSuccess:function(){console.log("utility logoutSuccess",(new Date).getTime()),e.logoutSuccess(),t()}}):new window.YKLoginLoader({loginOrLogout:"logout",buid:e.DefaultLoginOptions.buid,pid:e.DefaultLoginOptions.pid,logoutSuccess:function(){e.logoutSuccess(),t()}})})));case 1:case"end":return t.stop()}}),t)}))),function(){return t.apply(this,arguments)})},{key:"setLoginBg",value:function(){}},{key:"on",value:function(t,e){switch(t){case b.LOGIN_SUCCESS:case b.LOGIN_OUT:case b.CHECK_LOGIN:}}},{key:"Xlogin",value:function(){var t=this,e=this.DefaultLoginOptions;e.loginSuccess=function(){t.loginInsatance&&t.loginInsatance.closeFrame&&t.loginInsatance.closeFrame(),t.loginSuccess()},e.loadSucess=function(){t.setLoginBg()},this._isUseNew||(this.loginInsatance=new window.YKLoginLoader(e)),window.Xlogin=new window.YKLoginLoader(e)}},{key:"assignEmptyObj",value:function(){return{is_vip:0,ytid:"",uname:"",login_email:"",login_mobile:"",mobile:"",vip_icon:"",user_icon:"",user_icon_big:"",user_icon_large:"",user_icon_middle:"",user_icon_small:"",uid:"",loginStatus:!1}}}]);var t,e,n}();function E(t,e){var n=document.createElement("script");n.type="text/javascript",n.async=!0,e?e instanceof Function&&(e={callback:e}):e={},e.charset&&(n.charset=e.charset),e.crossOrigin&&(e.retry=1,n.crossOrigin="anonymous"),n.src=t;var r=document.getElementsByTagName("head")[0],o=!1,a=function(){o||Reflect.get(n,"readyState")&&"loaded"!==Reflect.get(n,"readyState")&&"complete"!==Reflect.get(n,"readyState")||(o=!0,n.onload=null,Reflect.set(n,"onreadystatechange",null),e.saveScript||r.removeChild(n),e.callback&&e.callback())};n.onerror=function(){n.onerror=null,e.retry&&(e.retry--,E(t,e))},n.onload=a,Reflect.set(n,"onreadystatechange",a),r.appendChild(n)}p(x,"isEvening",(new Date).getHours()>=18||(new Date).getHours()<=8),p(x,"ThemeConfig",{daytimeBgURL:"//account.youku.com/static-resources/images/stylize/youku_bg.jpg",eveningBgURL:"//account.youku.com/static-resources/images/stylize/yknight.jpg",eveningFontColor:"#fff",daytimeFontColor:"#333"});var k=n(27),S=n.n(k),O=n(28),L=n.n(O);function j(t){return(j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function N(){N=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new C(r||[]);return o(i,"_invoke",{value:S(t,n,c)}),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",d="executing",p="completed",m={};function v(){}function y(){}function g(){}var _={};u(_,i,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(T([])));w&&w!==n&&r.call(w,i)&&(_=w);var x=g.prototype=v.prototype=Object.create(_);function E(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function n(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==j(s)&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,i,c)}),(function(t){n("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function S(e,n,r){var o=h;return function(a,i){if(o===d)throw Error("Generator is already running");if(o===p){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var c=r.delegate;if(c){var l=O(c,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=d;var u=f(e,n,r);if("normal"===u.type){if(o=r.done?p:"suspendedYield",u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=p,r.method="throw",r.arg=u.arg)}}}function O(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var a=f(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function T(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(j(e)+" is not iterable")}return y.prototype=g,o(x,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:y,configurable:!0}),y.displayName=u(g,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},E(k.prototype),u(k.prototype,c,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new k(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=T,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),I(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;I(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function I(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function C(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?I(Object(n),!0).forEach((function(e){T(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function T(t,e,n){return(e=P(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function P(t){var e=A(t,"string");return"symbol"==j(e)?e:e+""}function A(t,e){if("object"!=j(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=j(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function D(t,e,n,r,o,a,i){try{var c=t[a](i),l=c.value}catch(t){return void n(t)}c.done?e(l):Promise.resolve(l).then(r,o)}function H(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){D(a,r,o,i,c,"next",t)}function c(t){D(a,r,o,i,c,"throw",t)}i(void 0)}))}}function R(){return U.apply(this,arguments)}function U(){return(U=H(N().mark((function t(){var e,n,r,o=arguments;return N().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=o.length>0&&void 0!==o[0]?o[0]:{},n=e.url,r={timeout:3e3,params:C({},e.data)},e.jsonp&&(r.adapter=L.a),t.abrupt("return",S.a.get(n,r));case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function M(t){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function B(){B=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new N(r||[]);return o(i,"_invoke",{value:S(t,n,c)}),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",d="executing",p="completed",m={};function v(){}function y(){}function g(){}var _={};u(_,i,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(I([])));w&&w!==n&&r.call(w,i)&&(_=w);var x=g.prototype=v.prototype=Object.create(_);function E(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function n(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==M(s)&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,i,c)}),(function(t){n("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function S(e,n,r){var o=h;return function(a,i){if(o===d)throw Error("Generator is already running");if(o===p){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var c=r.delegate;if(c){var l=O(c,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=d;var u=f(e,n,r);if("normal"===u.type){if(o=r.done?p:"suspendedYield",u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=p,r.method="throw",r.arg=u.arg)}}}function O(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var a=f(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function I(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(M(e)+" is not iterable")}return y.prototype=g,o(x,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:y,configurable:!0}),y.displayName=u(g,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},E(k.prototype),u(k.prototype,c,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new k(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=I,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function F(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function G(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?F(Object(n),!0).forEach((function(e){K(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function K(t,e,n){return(e=V(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function V(t){var e=W(t,"string");return"symbol"==M(e)?e:e+""}function W(t,e){if("object"!=M(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=M(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function q(t,e,n,r,o,a,i){try{var c=t[a](i),l=c.value}catch(t){return void n(t)}c.done?e(l):Promise.resolve(l).then(r,o)}function X(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){q(a,r,o,i,c,"next",t)}function c(t){q(a,r,o,i,c,"throw",t)}i(void 0)}))}}var J=[{title:"\u9996\u9875",pathName:"webhome",nodeKey:"WEBHOME",url:"https://www.youku.com/channel/webhome"},{title:"\u7535\u89c6\u5267",pathName:"webtv",nodeKey:"WEBTV",url:"https://www.youku.com/channel/webtv"},{title:"\u7535\u5f71",pathName:"webmovie",nodeKey:"WEBMOVIE",url:"https://www.youku.com/channel/webmovie"},{title:"\u7efc\u827a",pathName:"webzy",nodeKey:"WEBZY",url:"https://www.youku.com/channel/webzy"},{title:"\u52a8\u6f2b",pathName:"webcomic",nodeKey:"WEBCOMIC",url:"https://www.youku.com/channel/webcomic"},{title:"\u5c11\u513f",pathName:"webchild",nodeKey:"WEBCHILD",url:"https://www.youku.com/channel/webchild"},{title:"\u7eaa\u5f55\u7247",pathName:"webjilupian",nodeKey:"WEBJILUPIAN",url:"https://www.youku.com/channel/webjilupian"},{title:"\u4f53\u80b2",pathName:"tiyu",nodeKey:"TIYU",url:"https://www.youku.com/channel/tiyu"},{title:"\u6e38\u620f",pathName:"webgame",nodeKey:"WEBGAME",url:"https://www.youku.com/channel/webgame"},{title:"\u97f3\u4e50",pathName:"webmusic",nodeKey:"WEBMUSIC",url:"https://www.youku.com/channel/webmusic"},{title:"\u6587\u5316",pathName:"webculture",nodeKey:"WEBCULTURE",url:"https://www.youku.com/channel/webculture"},{title:"\u76f4\u64ad",pathName:"weblive",nodeKey:"WEBLIVE",url:"https://www.youku.com/channel/weblive"},{title:"\u6c7d\u8f66",pathName:"webauto",nodeKey:"WEBAUTO",url:"https://www.youku.com/channel/webauto"},{title:"\u5a31\u4e50",pathName:"webent",nodeKey:"WEBENT",url:"https://www.youku.com/channel/webent"},{title:"\u5b66\u5802",pathName:"webxuetang",nodeKey:"WEBXUETANG",url:"https://www.youku.com/channel/webxuetang"},{title:"\u641e\u7b11",pathName:"webfun",nodeKey:"WEBFUN",url:"https://www.youku.com/channel/webfun"},{title:"\u79d1\u6280",pathName:"webtech",nodeKey:"WEBTECH",url:"https://www.youku.com/channel/webtech"},{title:"\u751f\u6d3b",pathName:"weblife",nodeKey:"WEBLIFE",url:"https://www.youku.com/channel/weblife"},{title:"\u7535\u7ade",pathName:"webdianjing",nodeKey:"WEBDIANJING",url:"https://www.youku.com/channel/webdianjing"},{title:"\u65b0\u77e5",pathName:"webxinzhi",nodeKey:"WEBXINZHI",url:"https://www.youku.com/channel/webxinzhi"},{title:"\u65f6\u5c1a",pathName:"webfashion",nodeKey:"WEBFASHION",url:"https://www.youku.com/channel/webfashion"},{title:"\u65c5\u6e38",pathName:"webtravel",nodeKey:"WEBTRAVEL",url:"https://www.youku.com/channel/webtravel"},{title:"\u4eb2\u5b50",pathName:"webbaby",nodeKey:"WEBBABY",url:"https://www.youku.com/channel/webbaby"},{title:"\u53d1\u73b0",pathName:"webfaxian",nodeKey:"WEBFAXIAN",url:"https://www.youku.com/channel/webfaxian"},{title:"\u516c\u76ca",pathName:"webgongyi",nodeKey:"WEBGONGYI",url:"https://www.youku.com/channel/webgongyi"},{title:"\u6559\u80b2",pathName:"webedu",nodeKey:"WEBEDU",url:"https://www.youku.com/channel/webedu"},{title:"\u8d22\u7ecf",pathName:"webfinance",nodeKey:"WEBFINANCE",url:"https://www.youku.com/channel/webfinance"}];function Y(t){return z.apply(this,arguments)}function z(){return(z=X(B().mark((function t(e){var n,r;return B().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n="prod"===window.__ENV__?"//pc.pay.youku.com/apis/pay_rcode":"//paypre.vip.youku.com/apis/pay_rcode",t.next=3,R({url:n,jsonp:!0,data:e});case 3:return r=t.sent,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Q(t){return $.apply(this,arguments)}function $(){return($=X(B().mark((function t(e){var n;return B().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={type:"GET",v:"1.0",ecode:0,dataType:"json",data:JSON.stringify(e),appKey:"24679788"},t.abrupt("return",l.request("mtop.youku.xmop.strategyfacadeservice.getcontent",n).catch((function(t){console.log(t)})));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Z(t,e){return tt.apply(this,arguments)}function tt(){return(tt=X(B().mark((function t(e,n){var r,o,a,i,c,l,u,s,f,h,d,p;return B().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Q(e);case 2:if(r=t.sent){t.next=6;break}return console.log("\u63a5\u53e3\u8bf7\u6c42\u6570\u636e\u5931\u8d25,\u8bf7\u5c1d\u8bd5\u8bbe\u7f6e\u91cd\u8bd5\u673a\u5236\u6216\u8005\u68c0\u67e5\u63a5\u53e3\u53c2\u6570"),t.abrupt("return",{});case 6:if(r&&r.data&&Array.isArray(r.data.contents)&&0!==r.data.contents.length)try{o=JSON.parse(r.data.contents[0])}catch(t){console.log(t)}else o={};if(a={},o&&o.link&&o.link.indexOf("h5params=")>-1&&(c=o.link.split("&"),i=Array.isArray(c)&&c.filter((function(t){return t.indexOf("h5params=")>-1})),Array.isArray(i)&&i.length>0)){l="string"==typeof i[0]&&i[0].split("=");try{Array.isArray(l)&&l.length>0&&l[1]&&l[1].indexOf("{")>-1?a=JSON.parse(l[1]):Array.isArray(l)&&l.length>0&&l[1]&&(a=JSON.parse(decodeURIComponent(l[1])))}catch(t){console.log(t)}}if(u="",s="",f="",h=[],Object.keys(a).length>0){if(a.attributes){try{d=JSON.parse(a.attributes)}catch(t){console.log(t)}p=d&&d.crm_params,u=p?p&&JSON.stringify(p):o.crm_params?o.crm_params:""}s=a.activityCode?a.activityCode:o.activity_code?o.activity_code:"",f=a.biz?a.biz:"default",h=a.products?a.products:[]}else u=o.crm_params?o.crm_params:"",s=o.activity_code?o.activity_code:"",f="default",h=[];return Array.isArray(h)&&h.length<1&&(h=""),t.abrupt("return",G(G({},o),{},{crm_params:u,activity_code:s,biz:f,products:h,pid:n}));case 16:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function et(){return nt.apply(this,arguments)}function nt(){return(nt=X(B().mark((function t(){var e,n,r,o,i,c,u,s,f,h,d,p,m,v;return B().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=(null===(e=window)||void 0===e?void 0:e.__ENV__)||(null===(n=window)||void 0===n||null===(r=n.__ENVDATA__)||void 0===r?void 0:r.env)||"staging",c=null===(o=navigator)||void 0===o?void 0:o.userAgent,u=c&&c.indexOf("YoukuDesktop")>-1,s={},s="prod"===i?{rootPath:"product-main-cms",terminal:"pcweb",positionTag:"pcweb_homepage"}:{rootPath:"product-main-cms-test",terminal:"pcweb",positionTag:"pcweb.page.right"},u&&(s="prod"===i?{rootPath:"product-main-cms",terminal:"iku",positionTag:"pcweb_homepage"}:{rootPath:"product-main-cms-test",terminal:"iku",positionTag:"pcweb.page.right"}),f=Object(a.getCna)()||"homepage_empty_cna",h=window.__INITIAL_DATA__&&window.__INITIAL_DATA__.ip||"0.0.0.0",d=G(G({},s),{},{gray:!!Object(a.getQueryString)("grayMode"),utdid:f,ip:h,userId:0,debug:!1,businessContext:"",mockType:0,ttid:"",isVip:0,businessKey:"main_cms",mock:!1,systemInfo:JSON.stringify({device:u?"iku":"pcweb",os:u?"iku":"pcweb",ver:"1.0.0.0",userAgent:c,guid:"1590141704165YXe",appPackageKey:u?"com.youku.iku":"com.youku.pcweb",young:0,brand:"",network:"",ouid:"",idfa:"",scale:"",operator:"",resolution:"",pid:Object(a.getPid)(),childGender:0,userId:Number(0),utdid:f})}),p={type:"GET",v:"1.0",ecode:0,dataType:"json",data:JSON.stringify(d),appKey:"24679788"},t.prev=11,t.next=14,l.request("mtop.youku.xspace.maincms.position.query",p);case 14:if(null==(v=t.sent)||null===(m=v.data)||void 0===m||!m.modelData||!Array.isArray(v.data.modelData.positionTaskInfoList)){t.next=19;break}return t.abrupt("return",it(v.data));case 19:return t.abrupt("return",{});case 20:t.next=25;break;case 22:return t.prev=22,t.t0=t.catch(11),t.abrupt("return",{});case 25:case"end":return t.stop()}}),t,null,[[11,22]])})))).apply(this,arguments)}function rt(t,e,n){return ot.apply(this,arguments)}function ot(){return(ot=X(B().mark((function t(e,n,r){var o,i,c,u,s,f,h,d,p,m;return B().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=Object(a.getCna)()||"homepage_empty_cna",i=window.__INITIAL_DATA__&&window.__INITIAL_DATA__.ip||"0.0.0.0",c=window&&window.navigator&&window.navigator.userAgent,u=0,(s=c.match(/ZREAL ./))&&s[0]&&s[0].length>0&&(u=Number(s[0].slice(-1))||0),r&&"1"===Object(a.getQueryString)("usepre")&&(e="YOUKU_WEB_GUOJIBAN_TEST",n="WEBHOMETEST"),f={debug:!1,gray:"1"===Object(a.getQueryString)("grayMode")?1:0,pageNo:1,utdid:o,userId:0,bizKey:e||"YOUKU_WEB",appPackageKey:"com.youku.YouKu",session:JSON.stringify({scene:"home_channels"}),showNodeList:1,reqSubNode:0,nodeKey:n||"WEBHOME",ip:i},h={device:"pcweb",os:"pcweb",ver:"1.0.0.0",userAgent:c,guid:"1590141704165YXe",appPackageKey:"com.youku.pcweb",young:0,brand:"",network:"",ouid:"",idfa:"",scale:"",operator:"",resolution:"",pid:Object(a.getPid)(),childGender:0,zx:u},r&&(h.language=r),d={ms_codes:"2019061000",params:JSON.stringify(f),system_info:JSON.stringify(h)},p={type:"GET",v:"1.0",ecode:0,dataType:"json",data:JSON.stringify(d),appKey:"24679788"},t.prev=13,t.next=16,l.request("mtop.youku.columbus.gateway.new.execute",p).catch((function(t){console.log(t)}));case 16:return m=t.sent,t.abrupt("return",at(m.data[2019061e3].data.nodes));case 20:return t.prev=20,t.t0=t.catch(13),t.abrupt("return",J);case 23:case"end":return t.stop()}}),t,null,[[13,20]])})))).apply(this,arguments)}function at(t){return t?t.map((function(t){var e=null==t?void 0:t.data,n=e.nodeKey,r=e.nodeKey&&e.nodeKey.toLowerCase(),o={title:(null==e?void 0:e.title)||"",pathName:r,nodeKey:n};return"H5"===e.type||"WEEX"===e.type?(o.icon=e.selectedImg||"",o.url=e.url||"",o.showType="icon"):o.url="https://www.youku.com/channel/".concat(r),o})):[]}function it(t){var e=[],n=[];return t&&t.modelData&&Array.isArray(t.modelData.positionTaskInfoList)&&t.modelData.positionTaskInfoList.forEach((function(t){var r={};t.bizExtProperty&&(r=JSON.parse(t.bizExtProperty));var o={};if(Array.isArray(t.materialInfoList)&&t.materialInfoList[0]){var a="";if(t.materialInfoList[0].materialValue)try{var i=JSON.parse(t.materialInfoList[0].materialValue);Object.keys(i).length>0&&(o=G(G({},o),i),(null==i?void 0:i.img)&&(o.imgUrl=i.img),(null==i?void 0:i.eventType)&&(o.scmType=i.eventType))}catch(t){console.log(t)}t.materialInfoList[0].materialId&&(a=t.materialInfoList[0].materialId),o=G(G({},o),{},{imgId:a})}var c,l=t.trackInfo&&JSON.parse(t.trackInfo)||{};l.ranking||(l.ranking=null===(c=r)||void 0===c?void 0:c.priority);var u=G(G(G({},r),{},{endTime:t.endTime,startTime:t.startTime,taskId:t.taskId},o),{},{trackInfo:l});"top_red"===r.poplayerType?n.push(u):e.push(u),e.sort((function(t,e){return(null==e?void 0:e.priority)-(null==t?void 0:t.priority)}))})),{topRed:n,popData:e}}function ct(t){return(ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function lt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ut(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ft(r.key),r)}}function st(t,e,n){return e&&ut(t.prototype,e),n&&ut(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function ft(t){var e=ht(t,"string");return"symbol"==ct(e)?e:e+""}function ht(t,e){if("object"!=ct(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ct(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var dt=st((function t(e){lt(this,t),this.name="storage"}),[{key:"setItem",value:function(t){var e={name:"",value:"",expires:"",startTime:(new Date).getTime()},n={};Object.assign(n,e,t),n.expires?localStorage.setItem(n.name,JSON.stringify(n)):("[object Object]"===Object.prototype.toString.call(n.value)&&(n.value=JSON.stringify(n.value)),"[object Array]"===Object.prototype.toString.call(n.value)&&(n.value=JSON.stringify(n.value)),localStorage.setItem(n.name,n.value))}},{key:"getItem",value:function(t){var e=localStorage.getItem(t);try{e=JSON.parse(e)}catch(t){console.log("error",t)}return e&&e.startTime?(new Date).getTime()-e.startTime>e.expires?(localStorage.removeItem(t),!1):e.value:e}},{key:"removeItem",value:function(t){localStorage.removeItem(t)}},{key:"clear",value:function(){localStorage.clear()}}]);function pt(t){return(new dt).getItem(t)}function mt(t){(new dt).setItem(t)}function vt(t){(new dt).removeItem(t)}function yt(t){return wt(t)||bt(t)||_t(t)||gt()}function gt(){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 _t(t,e){if(t){if("string"==typeof t)return xt(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xt(t,e):void 0}}function bt(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function wt(t){if(Array.isArray(t))return xt(t)}function xt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var Et=["prodtest.youku.com","pre2.youku.com","www.youku.com","youku.com","local.m.youku.com","local.youku.com"];function kt(t,e,n){var r=n||Object(a.getQueryString)("rid"),o=!t.rule||jt(t.rule,Number(r)),i=!1,c=!1;return t&&o&&(i=Nt(t,e)),i&&(c=St(t)),c}var St=function(t){if(null==t||!t.exposure_switch)return!0;var e,n,r="".concat(null==t?void 0:t.taskId,"-index"),o="".concat(null==t?void 0:t.taskId,"-startTime"),i="hour"===(null==t?void 0:t.timesCompany)?1:"day"===(null==t?void 0:t.timesCompany)?24:0,c=(null==t?void 0:t.timesLength)*i*60*60*1e3||0,l=(new Date).getTime();if(!((null===(e=navigator)||void 0===e||null===(n=e.userAgent)||void 0===n?void 0:n.indexOf("YoukuDesktop"))>-1)){var u=Number(Object(a.getCookieByName)(r));if(!u)return Object(a.setCookie)(r,1,Math.floor(c/1e3)),Object(a.setCookie)(o,l,Math.floor(c/1e3)),!0;var s=Object(a.getCookieByName)(o);if(l>=c+s)return Object(a.setCookie)(r,1,Math.floor(c/1e3)),Object(a.setCookie)(o,l,Math.floor(c/1e3)),!0;var f=c-((new Date).getTime()-s);return u<=Number((null==t?void 0:t.times)-1)&&(Object(a.setCookie)(r,u+1,Math.floor(f/1e3)),!0)}var h,d=pt(r),p=l+c,m=null==d||null===(h=d.split("*"))||void 0===h?void 0:h[1];if(!d||l>m)return mt({name:"".concat(null==t?void 0:t.taskId,"-index"),value:"1*".concat(p)}),!0;if(l<=m){var v,y=Number(null==d||null===(v=d.split("*"))||void 0===v?void 0:v[0]);return y<=Number((null==t?void 0:t.times)-1)&&(mt({name:"".concat(null==t?void 0:t.taskId,"-index"),value:"".concat(y+1,"*").concat(m)}),!0)}},Ot=function(t,e){if(t&&t.user_identity)if("1"===t.user_identity){if(e&&(2===e.is_vip||0===e.is_vip))return!0}else if("2"===t.user_identity&&e&&1===e.is_vip)return!0;return!1},Lt=function(t){var e,n=Object(a.getCna)()||"",r=n.substr(n.length-1,1);return(null==t||null===(e=t.cna_investment)||void 0===e?void 0:e.substr(t.cna_investment.length-1,1))===r},jt=function(t,e){var n=!1;if(e=Number(e)?Number(e):1,t&&t.indexOf("-")>-1){var r=(t=t.replace(/\s*/g,"")).split("-").map((function(t){return Number(t)})),o=Math.min.apply(Math,yt(r))||0,a=Math.max.apply(Math,yt(r))||0;e>=o&&e<=a&&(n=!0)}return n},Nt=function(t,e){var n=!1,r=!1,o=!1,i=!0,c=navigator.userAgent,l=(null==c?void 0:c.indexOf("YoukuDesktop"))>-1,u=(null==t?void 0:t.isElecShow)||void 0===(null==t?void 0:t.isElecShow)||(null==t?void 0:t.isElecShow);if(l&&!u&&(i=!1),"allChannel"===(null==t?void 0:t.domain_name))o=!0;else{var s="/"===location.pathname?"/channel/".concat(Object(a.getQueryString)("channel")):location.pathname;"v.youku.com"!==location.host&&"so.youku.com"!==location.host||(s=location.host),"pre2-v.youku.com"===location.host&&(s="v.youku.com"),"pre2-so.youku.com"===location.host&&(s="so.youku.com"),"/"===location.pathname&&Et.includes(location.host)&&(s="/channel/webhome"),null!=t&&t.domain_name&&It[t.domain_name]===s&&(o=!0)}return"cna"===(null==t?void 0:t.fixed_investment)?r=Lt(t):"user"===t.fixed_investment?r="0"===t.user_identity&&!e.loginStatus||e&&e.loginStatus&&Ot(t,e):"noGray"===t.fixed_investment&&(n=!0),i&&o&&(r||n)},It={"www.youku.com":"/channel/webhome","v.youku.com":"v.youku.com","so.youku.com":"so.youku.com","tv.youku.com":"/channel/webtv","movie.youku.com":"/channel/webmovie","zy.youku.com":"/channel/webzy","music.youku.com":"/channel/webmusic","child.youku.com":"/channel/webchild","jilupian.youku.com":"/channel/webjilupian","gongyi.youku.com":"/channel/webgongyi","sports.youku.com":"/channel/tiyu","auto.youku.com":"/channel/webauto","tech.youku.com":"/channel/webzy","finance.youku.com":"/channel/webzy","ent.youku.com":"/channel/webzy","culture.youku.com":"/channel/webzy","comic.youku.com":"/channel/webzy","travel.youku.com":"/channel/webzy","fashion.youku.com":"/channel/webzy","baby.youku.com":"/channel/webzy","edu.youku.com":"/channel/webzy","game.youku.com":"/channel/webzy","vip.youku.com":"/channel/hy"},Ct=n(29),Tt=Object(Ct.create)((function(t){return{isI18n:!1,setIsI18n:function(e){return t({isI18n:e})}}})),Pt=n(8),At=n.n(Pt),Dt=n(10),Ht=n.n(Dt);function Rt(t){return(Rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ut(){Ut=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new N(r||[]);return o(i,"_invoke",{value:S(t,n,c)}),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",d="executing",p="completed",m={};function v(){}function y(){}function g(){}var _={};u(_,i,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(I([])));w&&w!==n&&r.call(w,i)&&(_=w);var x=g.prototype=v.prototype=Object.create(_);function E(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function n(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==Rt(s)&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,i,c)}),(function(t){n("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function S(e,n,r){var o=h;return function(a,i){if(o===d)throw Error("Generator is already running");if(o===p){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var c=r.delegate;if(c){var l=O(c,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=d;var u=f(e,n,r);if("normal"===u.type){if(o=r.done?p:"suspendedYield",u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=p,r.method="throw",r.arg=u.arg)}}}function O(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var a=f(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function I(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(Rt(e)+" is not iterable")}return y.prototype=g,o(x,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:y,configurable:!0}),y.displayName=u(g,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},E(k.prototype),u(k.prototype,c,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new k(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=I,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function Mt(t,e,n,r,o,a,i){try{var c=t[a](i),l=c.value}catch(t){return void n(t)}c.done?e(l):Promise.resolve(l).then(r,o)}function Bt(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){Mt(a,r,o,i,c,"next",t)}function c(t){Mt(a,r,o,i,c,"throw",t)}i(void 0)}))}}var Ft=n(2),Gt=Ft.getCna,Kt=Ft.getPid;function Vt(){return Wt.apply(this,arguments)}function Wt(){return(Wt=Bt(Ut().mark((function t(){var e,n,r;return Ut().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=Gt()||"XlQcF5xQrCcCAWoLKdGqIOhS",n={type:"GET",v:"1.0",dataType:"json",data:{appid:"14177",mtopParams:JSON.stringify({count:"1",channel:"PC",fr:"pc",app_source:"main_page",x_utdid:e}),utdid:e},appKey:24679788,jsonpIncPrefix:"headerSearch"},t.prev=2,t.next=5,l.request("mtop.ykrec.RecommendService.recommend",n);case 5:if(!(r=t.sent)){t.next=8;break}return t.abrupt("return",r);case 8:t.next=13;break;case 10:t.prev=10,t.t0=t.catch(2),console.log(t.t0);case 13:case"end":return t.stop()}}),t,null,[[2,10]])})))).apply(this,arguments)}function qt(){return Xt.apply(this,arguments)}function Xt(){return(Xt=Bt(Ut().mark((function t(){var e,n,r,o;return Ut().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=Gt()||"XlQcF5xQrCcCAWoLKdGqIOhS",n=Kt(),r={type:"GET",v:"2.0",ecode:1,dataType:"json",data:{pg:"1",pz:"10",appScene:"default_page",appCaller:"youku-search-sdk",searchFrom:"home",utdId:e,ykPid:n},appKey:23774304},t.prev=3,t.next=6,l.request("mtop.youku.soku.yksearch",r);case 6:if(!(o=t.sent)){t.next=9;break}return t.abrupt("return",o.data);case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(3),console.log(t.t0);case 14:case"end":return t.stop()}}),t,null,[[3,11]])})))).apply(this,arguments)}function Jt(t){return Yt.apply(this,arguments)}function Yt(){return(Yt=Bt(Ut().mark((function t(e){var n,r,o,a,i;return Ut().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=Gt()||"XlQcF5xQrCcCAWoLKdGqIOhS",r=Kt(),o={appScene:"kubox",appCaller:"pc",s:"pc",device:"pc",platform:"pc",keyword:e,utdId:n,ykPid:r},a={appKey:24679788,jsonpIncPrefix:"headerSearch",v:"2.0",data:JSON.stringify(o),ecode:1,dataType:"jsonp"},t.prev=4,t.next=7,l.request("mtop.youku.soku.yksearch",a);case 7:if(!(i=t.sent)){t.next=10;break}return t.abrupt("return",i.data);case 10:t.next=15;break;case 12:t.prev=12,t.t0=t.catch(4),console.log(t.t0);case 15:case"end":return t.stop()}}),t,null,[[4,12]])})))).apply(this,arguments)}function zt(t){return(zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Qt(){Qt=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new N(r||[]);return o(i,"_invoke",{value:S(t,n,c)}),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",d="executing",p="completed",m={};function v(){}function y(){}function g(){}var _={};u(_,i,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(I([])));w&&w!==n&&r.call(w,i)&&(_=w);var x=g.prototype=v.prototype=Object.create(_);function E(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function n(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==zt(s)&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,i,c)}),(function(t){n("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function S(e,n,r){var o=h;return function(a,i){if(o===d)throw Error("Generator is already running");if(o===p){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var c=r.delegate;if(c){var l=O(c,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=d;var u=f(e,n,r);if("normal"===u.type){if(o=r.done?p:"suspendedYield",u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=p,r.method="throw",r.arg=u.arg)}}}function O(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var a=f(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function I(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(zt(e)+" is not iterable")}return y.prototype=g,o(x,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:y,configurable:!0}),y.displayName=u(g,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},E(k.prototype),u(k.prototype,c,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new k(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=I,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function $t(t,e,n,r,o,a,i){try{var c=t[a](i),l=c.value}catch(t){return void n(t)}c.done?e(l):Promise.resolve(l).then(r,o)}function Zt(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){$t(a,r,o,i,c,"next",t)}function c(t){$t(a,r,o,i,c,"throw",t)}i(void 0)}))}}var te=n(35);function ee(t,e,n){return ne.apply(this,arguments)}function ne(){return(ne=Zt(Qt().mark((function t(e,n,r){var o,i,c,l,u,s,f,h,d;return Qt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:o=Object(a.getCna)(),i={click:["/click.index.module","CLK"],show:["/show.index.module","EXP"]},c=document.querySelector('meta[name="data-spm"]'),l=c&&String(c.getAttribute("content"))||"",u=document.querySelector("body"),s=u&&String(u.getAttribute("data-spm"))||"";try{e=JSON.parse(e)}catch(t){console.log(t)}if(f={spm:"".concat(l,".").concat(s,".home.search"),track_info:e,pid:o},"click"!==n){t.next=14;break}return f={spm:"".concat(l,".").concat(s,".home.search"),track_info:e,pid:o,utparam:{yk_abtest:"129:317#337:775#218:491#290:661#142:345"},keywords:r},t.next=12,re();case 12:f.track_info.aaid=t.sent,f.track_info.k=r;case 14:for(d in f.track_info.source_from="home",f.track_info=JSON.stringify(f.track_info),h="",f)void 0!==f[d]&&(h+="".concat(d,"=").concat(f[d],"&"));(window.goldlog_queue||(window.goldlog_queue=[])).push({action:"goldlog.record",arguments:[i[n][0],i[n][1],h,"POST"]});case 20:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function re(){return oe.apply(this,arguments)}function oe(){return(oe=Zt(Qt().mark((function t(){var e,n;return Qt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=Date.now(),n=Object(a.getCna)(),t.abrupt("return",te(n+e));case 3:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var ae=n(15),ie=n.n(ae),ce=function(t){var e=new RegExp("(^|&)".concat(t,"=([^&]*)(&|$)"),"i"),n=window.location.search.substr(1).match(e);return null!=n?decodeURI((null==n?void 0:n[2])||""):null},le=Object(r.forwardRef)((function(t,e){var n=Tt((function(t){return t.isI18n}));Object(r.useImperativeHandle)(e,(function(){return{jumpToSearchResult:l}}));var a="",i="",c=Object(r.useRef)();Object(r.useEffect)((function(){var e,n,r,o,l,f,h,d;if("so.youku.com"===(null===(e=window)||void 0===e||null===(n=e.location)||void 0===n?void 0:n.host)||"pre2-so.youku.com"===(null===(r=window)||void 0===r||null===(o=r.location)||void 0===o?void 0:o.host)||"pre-so.youku.tv"===(null===(l=window)||void 0===l||null===(f=l.location)||void 0===f?void 0:f.host)||"so.youku.tv"===(null===(h=window)||void 0===h||null===(d=h.location)||void 0===d?void 0:d.host)){var p=window.location.pathname.indexOf("q");p+=2;var m=window.location.pathname.substring(p);m=decodeURIComponent(m),c.current.placeholder=m,c.current.value=m,a=m}else if(null!=t&&t.isI18n){var v;c.current.placeholder=(null==t||null===(v=t.i18nHeader)||void 0===v?void 0:v.i18n_Search_DefaultWords)||""}else Vt().then((function(t){var e,n,r,o,l;void 0!==(null==t||null===(e=t.result)||void 0===e?void 0:e[0])&&(c.current.placeholder=(null==t?void 0:t.q)||(null==t||null===(n=t.result)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.search_id)||"",a=null==t||null===(o=t.result)||void 0===o||null===(l=o[0])||void 0===l?void 0:l.search_id,(null==t?void 0:t.track_info)&&ee(t.track_info,"show"),i=t.track_info)}));u(),/(iPhone|iPad|iPod|iOS|Android)/i.test(navigator.userAgent)&&(c.current.style.width="170px"),window.ikuWebApi&&(window.ikuWebApi.handleClear=s)}),[]);var l=function(){var e,r,o,l;if(null==t||!t.isI18n||c.current.value){var u=null==c||null===(e=c.current)||void 0===e||null===(r=e.value)||void 0===r?void 0:r.length,f=u>0?c.current.value:c.current.placeholder;if(null!==(o=window)&&void 0!==o&&null!==(l=o.baseCommonAttributes)&&void 0!==l&&l.isSearchReload){var h=u>0?1:5,d="true"===ce("gray_new");window.location.href="https://".concat(window.location.host,"/search_video/q_").concat(encodeURIComponent(f)).concat(d?"?gray_new=true":"").concat(d?"&searchfrom=".concat(h).concat(n?"&isI18n=1":"").concat(null!=t&&t.isCar?"&source=car":""):"?searchfrom=".concat(h).concat(n?"&isI18n=1":"").concat(null!=t&&t.isCar?"&source=car":""))}else{var p,m,v,y,g,_=(null===(p=window)||void 0===p?void 0:p.__ENV__)||"prod",b=null!==(m=location)&&void 0!==m&&null!==(v=m.host)&&void 0!==v&&v.includes("youku.tv")?"so.youku.tv":"so.youku.com";"pre"!==_&&"staging"!==_&&"local"!==_&&"daily"!==_||(b=null!==(y=location)&&void 0!==y&&null!==(g=y.host)&&void 0!==g&&g.includes("youku.tv")?"pre-so.youku.tv":"pre2-so.youku.com");var w="https://".concat(b,"/search_video/q_").concat(encodeURIComponent(f),"?searchfrom=1").concat(n?"&isI18n=1":"").concat(null!=t&&t.isCar?"&source=car":"");null!=t&&t.isCar?location.href=w:window.open(w)}i&&ee(i,"click",u||a),(null==f?void 0:f.length)>0&&(null==t||t.saveHistoryWord({value:f})),window.ikuWebApi||t.isSearchPage||s()}},u=function(){c.current.addEventListener("keypress",(function(e){e&&13===e.keyCode&&(l(),null==t||t.blurHandle())}))},s=function(){c.current.value=""};return o.a.createElement("div",{className:"".concat(ie.a.input_box," ").concat(t.searchShort?ie.a.input_short:""),style:{width:t.isShowButton||t.isFocus?"":"".concat(t.searchShort?246:353,"px")}},o.a.createElement("span",{className:"iconfontheader icon-search ".concat(ie.a.icon_box)}),o.a.createElement("input",{placeholder:"",className:ie.a.hiddenipt,tabIndex:"1"}),o.a.createElement("input",{placeholder:"",id:"search-input-box",ref:c,tabIndex:"2",autoComplete:"off",className:t.isI18n||null!=t&&t.isCar?ie.a.input_focus_int:t.isShowButton||t.isFocus?ie.a.input_focus:"",style:{color:t.isFocus?"#eaeaea":"",backgroundColor:"transparent",borderRight:null!=t&&t.isI18n||!t.isFocus||!t.isSug?"none":"1px solid rgba(255, 255, 255, 0.12)"}}),o.a.createElement("span",{style:{display:t.isFocus&&t.isSug?"block":"none"},className:"aplus_exp aplus_clk iconfontheader icon-searchClear ".concat(ie.a.search_clear),"data-spm":"clearbutton",onClick:function(){s(),c.current.focus()}}))})),ue=le,se=n(7),fe=n.n(se);function he(){var t=document&&document.querySelector('meta[name="data-spm"]'),e=t&&String(t.getAttribute("content"))||"a2hbt",n=document&&document.querySelector("body");return{spmA:e,spmB:n&&String(n.getAttribute("data-spm"))||"13141534"}}function de(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"CLK",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4?arguments[4]:void 0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"",c="a2hbt",l="13141534";document.getElementsByTagName("meta")["data-spm"]&&document.getElementsByTagName("meta")["data-spm"].getAttribute("content")&&(c=document.getElementsByTagName("meta")["data-spm"].getAttribute("content")),document.body.getAttribute("data-spm")&&(l=document.body.getAttribute("data-spm")),a&&(c=a),i&&(l=i);var u="".concat(c,".").concat(l,".").concat(t).concat(""!==e?".".concat(e):""),s={"data-spm":u,from:"PC",spm:u};r&&(s.en_scm=r,s.scm=r,s["data-scm"]=r);var f=Object.assign({},s);o&&(f=Object.assign(f,{"track-info":o}));var h=[{exargs:f,pageurl:window.location.href}],d={};"CLK"===n&&(d.clkdata=JSON.stringify(h)),"EXP"===n&&(d.expdata=JSON.stringify(h));var p=[];for(var m in d)p.push("".concat(m,"=").concat(d[m]));window.goldlog_queue||(window.goldlog_queue=[]),window.goldlog_queue.push({action:"goldlog.record",arguments:["/yt/youku.pcweb.control",n,p.join("&"),"POST"]})}var pe=void 0===arguments?void 0:arguments,me=void 0;function ve(t,e){return we(t)||be(t,e)||ge(t,e)||ye()}function ye(){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 ge(t,e){if(t){if("string"==typeof t)return _e(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_e(t,e):void 0}}function _e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function be(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,i,c=[],l=!0,u=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(c.push(r.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}function we(t){if(Array.isArray(t))return t}var xe=function(t){var e=new RegExp("(^|&)".concat(t,"=([^&]*)(&|$)"),"i"),n=window.location.search.substr(1).match(e);return null!=n?decodeURI(n[2]):null},Ee=function(t){var e=ve(Object(r.useState)([]),2),n=e[0],a=e[1],i=ve(Object(r.useState)(""),2),c=i[0],l=i[1],u=ve(Object(r.useState)(null),2),s=u[0],f=u[1],h=ve(Object(r.useState)(-1),2),d=h[0],p=h[1],m=Object(r.useRef)(null),v=Object(r.useRef)([]),y=t.isVisible;Object(r.useEffect)((function(){var t=document.getElementById("search-input-box"),e=!1;null==t||t.addEventListener("compositionstart",(function(){e=!0})),null==t||t.addEventListener("compositionend",(function(){e=!1}));var n=function(){var n=t.value.trim();p(-1),!e&&n&&Jt(n).then((function(t){var e,n,r,o,i,c=[];(null==t||null===(e=t.nodes)||void 0===e?void 0:e.length)>0&&(null==t||null===(n=t.nodes)||void 0===n||null===(r=n[0])||void 0===r||null===(o=r.nodes)||void 0===o||null===(i=o[0])||void 0===i?void 0:i.nodes).forEach((function(t){var e=t.data;e&&c.push(e)}));for(var u=0;u<c.length;u++)if(c[u].thumbUrl){var s,f,h;p(u),de("searchOperate","d_titledetail_".concat(u+1),"EXP",null===(s=c[u])||void 0===s||null===(f=s.action)||void 0===f||null===(h=f.report)||void 0===h?void 0:h.scm),c[u].hasExp=!0;break}l(c.length>0&&c[0].q),a(c),v.current=c}))};null==t||t.addEventListener("focus",n),null==t||t.addEventListener("input",function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300;return function(){var r=me,o=pe;clearTimeout(e),e=setTimeout((function(){t.apply(r,o)}),n)}}(n,300))}),[]),Object(r.useEffect)((function(){var e=document.getElementById("search-input-box"),n=function(t){var n;(null==v||null===(n=v.current)||void 0===n?void 0:n.length)<=0||(38===t.keyCode&&(t.preventDefault(),null!==m.current&&m.current>=0&&(m.current-=1,m.current<0&&(m.current=0),e.value=v.current[m.current].w,f(m.current))),40===t.keyCode&&(null===m.current?(m.current=0,e.value=v.current[m.current].w,f(m.current)):m.current>=0&&(m.current+=1,m.current>=v.current.length&&(m.current=v.current.length-1),e.value=v.current[m.current].w,f(m.current))))};return t.isSug&&(null==e||e.addEventListener("keydown",n)),function(){null==e||e.removeEventListener("keydown",n)}}),[t.isSug]),Object(r.useEffect)((function(){v.current=n,m.current=null,f(null)}),[n]);var g=function(t){if(!t)return"";var e="";if(t.tagType&&t.tagText){switch(t.tagType){case 2:e="#999999";break;case 4:case 5:e="#00A9F5";break;default:e="rgba(255, 255, 255, 0.3)"}return o.a.createElement("div",{className:fe.a.tagBox},o.a.createElement("span",{className:fe.a.tag,style:{backgroundColor:e}},o.a.createElement("span",{className:fe.a.tagText},t.tagText)))}return""};return o.a.createElement(o.a.Fragment,null,y&&n.length>0&&o.a.createElement("div",{className:fe.a.sugSearchList,"data-spm":"searchOperate"},n.map((function(e,n){var r,a,i,l,u,f,h,m,v;return o.a.createElement("a",{className:"aplus_exp ".concat(fe.a.sugItem,"\n                  ").concat(e.thumbUrl?fe.a.sugImgItem:"","\n                  ").concat(!e.thumbUrl&&null!==(r=e.titleDTO)&&void 0!==r&&r.subTitle?fe.a.sugTextItem:"","\n                  ").concat(n===d?fe.a.sugItemHover:"","\n                  ").concat(n===s&&(e.thumbUrl?fe.a.sugImgItemHover:""),"\n                  ").concat(n===s&&!e.thumbUrl&&(null!==(a=e.titleDTO)&&void 0!==a&&a.subTitle?fe.a.sugSubItemHover:fe.a.sugNoSubHover)),href:"javascript:void(0)",key:e.w||e.keyword,"data-spm":"d_title_".concat(n+1),"data-scm":null==e||null===(i=e.action)||void 0===i||null===(l=i.report)||void 0===l?void 0:l.scm,onClick:function(){return function(e,n){var r,o,a=document.getElementById("search-input-box");null!=t&&t.isUosMode||t.isSearchPage?null!=t&&t.isUosMode&&(a.value=e.w):a.value="";var i=he().spmA+"."+he().spmB,c="d_title".concat(null!=e&&e.thumbUrl?"detail":"","_").concat(n+1),l=(null==e||null===(r=e.action)||void 0===r||null===(o=r.report)||void 0===o?void 0:o.scm)||"",u="spm=".concat(i,".searchOperate.").concat(c,"&scm=").concat(l);if(window.baseCommonAttributes&&window.baseCommonAttributes.isSearchReload){var s="true"===xe("gray_new");window.location.href="https://".concat(window.location.host,"/search_video/q_").concat(encodeURIComponent(e.w)).concat(s?"?gray_new=true":"").concat(s?"&searchfrom=2&{extraLog}":"?searchfrom=2&{extraLog}").concat(null!=t&&t.isCar?"&source=car":"")}else{var f="https://so.youku.com/search_video/q_".concat(encodeURIComponent(e.w),"?searchfrom=2&").concat(u).concat(null!=t&&t.isCar?"&source=car":"");null!=t&&t.isCar?location.href=f:window.open(f)}t.saveHistoryWord({value:e.w}),de("searchOperate",c,"CLK",l),null==t||t.blurHandle()}(e,n)},onMouseEnter:function(){!function(t,e){var n,r;p(-1),!t.hasExp&&null!=t&&t.thumbUrl&&(de("searchOperate","d_titledetail_".concat(e+1),"EXP",null==t||null===(n=t.action)||void 0===n||null===(r=n.report)||void 0===r?void 0:r.scm),t.hasExp=!0)}(e,n)}},o.a.createElement("div",{className:fe.a.sugItemBox},e.titleDTO&&o.a.createElement("div",{className:fe.a.sugItemBoxLeft,dangerouslySetInnerHTML:{__html:null===(u=e.titleDTO)||void 0===u?void 0:u.title}}),!e.titleDTO&&o.a.createElement("span",null,function(t){var e=c;if(t&&e){e=e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var n=t.search(new RegExp("(".concat(e,")"),"g"));if(n>=0){var r=e.length,a=t.slice(0,n),i=t.slice(n+r);return o.a.createElement("div",null,a,o.a.createElement("span",{className:fe.a.left_word},e),i)}return t}return t}(e.w)),e.sugIconDTO&&g(e.sugIconDTO)),e.thumbUrl&&o.a.createElement("div",{className:"".concat(fe.a.sugItemHoverBox," ").concat(e.cate?"":fe.a.sugItemHoverBoxNoBtn)},o.a.createElement("div",{className:fe.a.sugItemHoverBoxImg,style:{backgroundImage:"url(".concat(e.thumbUrl,")")}}),o.a.createElement("div",{className:fe.a.sugItemHoverContent},o.a.createElement("div",{className:fe.a.sugItemHoverContentTitle},o.a.createElement("div",{className:fe.a.sugItemBoxLeft,dangerouslySetInnerHTML:{__html:null===(f=e.titleDTO)||void 0===f?void 0:f.title}}),g(e.sugIconDTO)),(null===(h=e.titleDTO)||void 0===h?void 0:h.subTitle)&&o.a.createElement("div",{className:fe.a.sugItemHoverContentTip,dangerouslySetInnerHTML:{__html:null===(m=e.titleDTO)||void 0===m?void 0:m.subTitle}})),e.cate&&o.a.createElement("div",{className:"".concat(fe.a.sugItemHoverBtn),onClick:function(r){!function(e,n,r){var o;e.stopPropagation();var a=document.getElementById("search-input-box");if(null!=t&&t.isUosMode||t.isSearchPage||(a.value=""),null==t||!t.isUosMode||null!==(o=window.ikuWebApi)&&void 0!==o&&o.isSearchPage||(a.value=""),t.saveHistoryWord({value:n.w}),null!=n&&n.cate){var i,c,l=he().spmA+"."+he().spmB,u="d_titledetail_".concat(r+1),s=null==n||null===(i=n.action)||void 0===i||null===(c=i.report)||void 0===c?void 0:c.scm.replace(/keyword(.*)/,"jumptitle_v.youku.com/v_nextstage/id_".concat(n.cate,".html")),f="spm=".concat(l,".searchOperate.").concat(u,"&scm=").concat(s).concat(null!=t&&t.isCar?"&source=car":"");window.open("//v.youku.com/v_nextstage/id_".concat(n.cate,".html?").concat(f)),de("searchOperate",u,"CLK",s),null==t||t.blurHandle()}}(r,e,n)}},"\u64ad\u653e")),!e.thumbUrl&&(null===(v=e.titleDTO)||void 0===v?void 0:v.subTitle)&&o.a.createElement("div",{className:fe.a.sugTextItemHover,dangerouslySetInnerHTML:{__html:e.titleDTO.subTitle}}))}))))},ke=Ee,Se=n(4),Oe=n.n(Se);function Le(t,e){return Te(t)||Ce(t,e)||Ne(t,e)||je()}function je(){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 Ne(t,e){if(t){if("string"==typeof t)return Ie(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ie(t,e):void 0}}function Ie(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Ce(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,i,c=[],l=!0,u=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(c.push(r.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}function Te(t){if(Array.isArray(t))return t}var Pe=function(t){var e=new RegExp("(^|&)".concat(t,"=([^&]*)(&|$)"),"i"),n=window.location.search.substr(1).match(e);return null!=n?decodeURI(n[2]):null},Ae=function(t){var e,n=Le(Object(r.useState)([]),2),a=n[0],i=n[1],c=Le(Object(r.useState)(""),2),l=c[0],u=c[1],s=Le(Object(r.useState)(0),2),f=s[0],h=s[1],d=Le(Object(r.useState)(0),2),p=d[0],m=d[1],v=Object(r.useRef)(),y=Object(r.useRef)(),g=function(e){var n,r,o,a;return null!==(n=t.hostSearchMap[e])&&void 0!==n&&null!==(r=n.nodes[0])&&void 0!==r&&r.nodes?JSON.parse(JSON.stringify(null===(o=t.hostSearchMap[e])||void 0===o||null===(a=o.nodes[0])||void 0===a?void 0:a.nodes.slice(0,5))):[]};Object(r.useEffect)((function(){t.isVisible&&i(g(l||t.hostSearchDefaultTab))}),[t.isVisible]),Object(r.useEffect)((function(){t.hostSearchDefaultTab&&t.hostSearchTabs.length>0&&t.hostSearchMap&&"{}"!==JSON.stringify(t.hostSearchMap)&&(u(t.hostSearchDefaultTab),i(g(t.hostSearchDefaultTab)))}),[t.hostSearchMap,t.hostSearchDefaultTab,t.hostSearchTabs]);var _=function(t){switch(t){case 0:return"one";case 1:return"two";case 2:return"three";case 9:return"last";default:return"more"}},b=function(e,n,r){var a,i,c,l,u,s,f,h,d=(null==t?void 0:t.keyIndex)===n&&!(null==e||null===(a=e.data)||void 0===a||!a.posterImage),p=(null==t?void 0:t.keyIndex)===n&&!(null!=e&&null!==(i=e.data)&&void 0!==i&&i.posterImage);return o.a.createElement("a",{className:"aplus_exp ".concat(Oe.a.hot_item," ").concat(e.data.posterImage?Oe.a.hot_item_img_hover:Oe.a.hot_item_txt_hover," ").concat(d?Oe.a.hot_item_img_hover2:null," ").concat(p?Oe.a.hot_item_txt_hover2:null),href:"javascript:void(0)",key:"d_poster_".concat(r,"_").concat(n),"data-spm":"d_poster_".concat(n+1),"data-scm":null==e||null===(c=e.data)||void 0===c||null===(l=c.action)||void 0===l||null===(u=l.report)||void 0===u?void 0:u.scm,"data-trackinfo":encodeURIComponent(JSON.stringify(null==e||null===(s=e.data)||void 0===s||null===(f=s.action)||void 0===f||null===(h=f.report)||void 0===h?void 0:h.trackInfo)),onMouseEnter:function(){!function(t,e){var n,r,o,a;!t.hasExp&&null!=t&&null!==(n=t.data)&&void 0!==n&&n.posterImage&&(de("searchTop","d_posterdetail_".concat(e+1),"EXP",null==t||null===(r=t.data)||void 0===r||null===(o=r.action)||void 0===o||null===(a=o.report)||void 0===a?void 0:a.scm),t.hasExp=!0)}(e,n)},onClick:function(){return function(e,n){var r,o,a,i,c,l,u,s=he().spmA+"."+he().spmB,f="d_poster".concat(null!=e&&null!==(r=e.data)&&void 0!==r&&r.posterImage?"detail":"","_").concat(n+1),h=(null==e||null===(o=e.data)||void 0===o||null===(a=o.action)||void 0===a||null===(i=a.report)||void 0===i?void 0:i.scm)||"",d="spm=".concat(s,".searchTop.").concat(f,"&scm=").concat(h).concat(null!=t&&t.isCar?"&source=car":"");de("searchTop",f,"CLK",h);var p,m,v,y,g=e&&e.data&&(e.data.keyword||e.data.title||""),_=document.querySelector("#search-input-box");if(t.saveHistoryWord({value:g}),null!=e&&null!==(c=e.data)&&void 0!==c&&c.encodeShowId||null!=e&&null!==(l=e.data)&&void 0!==l&&l.showId)return window.open("//v.youku.com/v_nextstage/id_".concat((null==e||null===(p=e.data)||void 0===p?void 0:p.encodeShowId)||(null==e||null===(m=e.data)||void 0===m?void 0:m.showId),".html?").concat(d)),null!=t&&t.isUosMode&&null!==(v=window.ikuWebApi)&&void 0!==v&&v.isSearchPage&&(_.value=g),void(null==t||t.blurHandle());if(null!=e&&null!==(u=e.data)&&void 0!==u&&u.vid)return window.open("//v.youku.com/v_show/id_".concat(e.data.vid,".html?").concat(d)),null!=t&&t.isUosMode&&null!==(y=window.ikuWebApi)&&void 0!==y&&y.isSearchPage&&(_.value=g),void(null==t||t.blurHandle());if(null!=t&&t.isUosMode&&(_.value=g),window.baseCommonAttributes&&window.baseCommonAttributes.isSearchReload){var b="true"===Pe("gray_new");window.location.href="https://".concat(window.location.host,"/search_video/q_").concat(encodeURIComponent(g)).concat(b?"?gray_new=true":"").concat(b?"&searchfrom=4&{extraLog}":"?searchfrom=4&{extraLog}")}else window.open("https://so.youku.com/search_video/q_".concat(encodeURIComponent(g),"?searchfrom=4&{extraLog}"));null==t||t.blurHandle()}(e,n)}},o.a.createElement("div",{className:"".concat(Oe.a.order_box)},o.a.createElement("div",{className:"".concat(Oe.a.order," ").concat(Oe.a[_(n)])},o.a.createElement("span",{className:Oe.a.text},n+1))),o.a.createElement("div",{className:Oe.a.hot_item_nohover_box},o.a.createElement("div",{className:Oe.a.hot_word},r),e.data.searchIndexTitle&&e.data.searchIndexValue&&o.a.createElement("div",{className:Oe.a.hot_word_tag},"\xa0\xb7\xa0",e.data.searchIndexTitle,o.a.createElement("span",{className:Oe.a.hot_word_tag_number},e.data.searchIndexValue)),!(e.data.searchIndexTitle&&e.data.searchIndexValue)&&e.data.hotInfo&&o.a.createElement("span",{className:Oe.a.hot_point_tag},o.a.createElement("span",{className:"iconfontheader ".concat(Oe.a.hot_point_tag_icon)}),e.data.hotInfo)),e.data.posterImage&&o.a.createElement("div",{className:Oe.a.hot_item_hover_box},o.a.createElement("div",{className:Oe.a.hot_item_hover_box_img,style:{backgroundImage:"url(".concat(e.data.posterImage,")")}}),o.a.createElement("div",{className:Oe.a.hot_item_hover_content},o.a.createElement("div",{className:Oe.a.hot_item_hover_content_title},o.a.createElement("div",{className:Oe.a.hot_word},r),e.data.searchIndexTitle&&e.data.searchIndexValue&&o.a.createElement("div",{className:Oe.a.hot_word_tag},"\xa0\xb7\xa0",e.data.searchIndexTitle,o.a.createElement("span",{className:Oe.a.hot_word_tag_number},e.data.searchIndexValue))),e.data.videoInfo&&o.a.createElement("div",{className:Oe.a.hot_item_hover_content_txt},e.data.videoInfo.replace(/\xb7/g," \xb7 ")),e.data.hotComment&&o.a.createElement("div",{className:Oe.a.hot_item_hover_content_txt},e.data.hotComment))))};return o.a.createElement(o.a.Fragment,null,t.isVisible&&a&&a.length>0&&o.a.createElement("div",{className:Oe.a.hot_search_list,"data-spm":"searchTop",onMouseDown:function(t){t.preventDefault()}},o.a.createElement("div",{className:Oe.a.nav_list},o.a.createElement("div",{ref:v,className:Oe.a.nav_item_box},o.a.createElement("div",{ref:y,className:Oe.a.nav_item_box_content,style:{left:"".concat(f,"px")}},(null==t||null===(e=t.hostSearchTabs)||void 0===e?void 0:e.length)>0&&t.hostSearchTabs.map((function(t,e){var n,r;return o.a.createElement("a",{className:"aplus_exp aplus_clk ".concat(Oe.a.nav_item," ").concat((null==t||null===(n=t.data)||void 0===n?void 0:n.cateName)===l?Oe.a.current_item:""),href:"javascript:void(0)",key:"d_channeltab_".concat(null==t||null===(r=t.data)||void 0===r?void 0:r.cateName,"_").concat(e),"data-spm":"d_channeltab_".concat(e+1),onClick:function(){var e;e=t.data&&t.data.cateName,u(e),i(g(e))}},t.data&&t.data.cateName)})))),o.a.createElement("div",{className:Oe.a.nav_page_tabs},o.a.createElement("div",{className:"".concat(Oe.a.nav_page_tabs_left," ").concat(0===f?Oe.a.nav_page_tabs_opacity:""),onClick:function(){h(0)}}),o.a.createElement("div",{className:"".concat(Oe.a.nav_page_tabs_right," ").concat(0!==f?Oe.a.nav_page_tabs_opacity:""),onClick:function(){if(p)h(p);else{var t=v.current.clientWidth-y.current.clientWidth;m(t),h(t)}}}))),o.a.createElement("div",{className:Oe.a.list_box},a&&a.map((function(t,e){var n=t&&t.data&&(t.data.keyword||t.data.title||"");return b(t,e,n)}))),!(null!=t&&t.isCar)&&o.a.createElement("div",null,o.a.createElement("a",{href:"https://t.youku.com/yep/page/s/hot_search_rank",target:"_black",className:"aplus_exp aplus_clk ".concat(Oe.a.hot_more),"data-spm":"d_more",onClick:function(){null==t||t.blurHandle()}},"\u66f4\u591a\u70ed\u95e8\u641c\u7d22"))))},De=Ae,He=n(18),Re=n.n(He),Ue=function(t){var e=new RegExp("(^|&)".concat(t,"=([^&]*)(&|$)"),"i"),n=window.location.search.substr(1).match(e);return null!=n?decodeURI((null==n?void 0:n[2])||""):null},Me=function(t){var e,n=Tt((function(t){return t.isI18n}));return o.a.createElement(o.a.Fragment,null,t.isVisible&&t.historyList.length>0&&o.a.createElement("div",{className:Re.a.history_search_list,"data-spm":"searchHistory",onMouseDown:function(t){t.preventDefault()}},o.a.createElement("h5",{className:Re.a.title},null!=t&&t.isI18n?(null==t||null===(e=t.i18nHeader)||void 0===e?void 0:e.i18n_Search_History)||"Recent searches":"\u5386\u53f2\u641c\u7d22",o.a.createElement("img",{className:"aplus_exp aplus_clk","data-spm":"delete",src:"//img.alicdn.com/imgextra/i4/O1CN01q5QHSs1tYf71K7OAf_!!6000000005914-2-tps-32-32.png",width:"20",onClick:function(e){e.stopPropagation(),null==t||t.clearHistory(),null!=t&&t.isUosMode?vt("youku_history_word"):n?Object(a.setCookie)("youku_history_word",JSON.stringify([]),.1,".youku.tv"):Object(a.setCookie)("youku_history_word",JSON.stringify([]),.1,".youku.com")}})),o.a.createElement("div",{className:Re.a.historyListBox},t.historyList.map((function(e,r){return o.a.createElement("a",{className:"aplus_exp aplus_clk ".concat(Re.a.history_item," ").concat((null==t?void 0:t.keyIndex)===r?Re.a.history_item_hover:""),href:"javascript:void(0)","data-spm":"d_title_".concat(r+1),"data-trackinfo":encodeURIComponent(JSON.stringify({object_title:e})),key:r,onClick:function(r){return function(e,r){var o,a;if(e.preventDefault(),null!=t&&t.isUosMode&&(document.getElementById("search-input-box").value=r),null!==(o=window)&&void 0!==o&&null!==(a=o.baseCommonAttributes)&&void 0!==a&&a.isSearchReload){var i="true"===Ue("gray_new");window.location.href="https://".concat(window.location.host,"/search_video/q_").concat(encodeURIComponent(r)).concat(i?"?gray_new=true":"").concat(i?"&searchfrom=3":"?searchfrom=3").concat(n?"&isI18n=1":"").concat(null!=t&&t.isCar?"&source=car":"")}else{var c,l,u,s,f,h=(null===(c=window)||void 0===c?void 0:c.__ENV__)||"prod",d=null!==(l=location)&&void 0!==l&&null!==(u=l.host)&&void 0!==u&&u.includes("youku.tv")?"so.youku.tv":"so.youku.com";"pre"!==h&&"staging"!==h&&"local"!==h&&"daily"!==h||(d=null!==(s=location)&&void 0!==s&&null!==(f=s.host)&&void 0!==f&&f.includes("youku.tv")?"pre-so.youku.tv":"pre2-so.youku.com");var p="https://".concat(d,"/search_video/q_").concat(encodeURIComponent(r),"?searchfrom=3").concat(n?"&isI18n=1":"").concat(null!=t&&t.isCar?"&source=car":"");null!=t&&t.isCar?location.href=p:window.open(p)}null==t||t.saveHistoryWord({value:r}),null==t||t.blurHandle()}(r,e)}},e)})))))},Be=Me,Fe=n(5),Ge=n.n(Fe);function Ke(t,e){return Je(t)||Xe(t,e)||We(t,e)||Ve()}function Ve(){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 We(t,e){if(t){if("string"==typeof t)return qe(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qe(t,e):void 0}}function qe(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Xe(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,i,c=[],l=!0,u=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(c.push(r.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}function Je(t){if(Array.isArray(t))return t}var Ye=function(t){var e=new RegExp("(^|&)".concat(t,"=([^&]*)(&|$)"),"i"),n=window.location.search.substr(1).match(e);return null!=n?decodeURI(n[2]):null},ze=function(t){var e=Ke(Object(r.useState)([]),2),n=e[0],a=e[1],i=Ke(Object(r.useState)(""),2),c=i[0],l=i[1],u=Ke(Object(r.useState)(0),2),s=u[0],f=u[1],h=Ke(Object(r.useState)(0),2),d=h[0],p=h[1],m=Object(r.useRef)(),v=Object(r.useRef)(),y=function(e){var n,r,o,a;return null!==(n=t.hostSearchMap[e])&&void 0!==n&&null!==(r=n.nodes[0])&&void 0!==r&&r.nodes?JSON.parse(JSON.stringify(null===(o=t.hostSearchMap[e])||void 0===o||null===(a=o.nodes[0])||void 0===a?void 0:a.nodes.slice(0,5))):[]},g=function(e){var n=document.querySelector(".hot-search-component_hot_component"),r=!1;e.target.className.indexOf("hot-search-component_nav_item")>-1&&(r=!0),n&&n.contains(e.target)||r||null==t||t.handleHotSearch()};Object(r.useEffect)((function(){return t.isVisible&&(a(y(c||t.hostSearchDefaultTab)),document.addEventListener("click",g)),t.isVisible||document.removeEventListener("click",g),function(){document.removeEventListener("click",g)}}),[t.isVisible]),Object(r.useEffect)((function(){t.hostSearchDefaultTab&&t.hostSearchTabs.length>0&&t.hostSearchMap&&"{}"!==JSON.stringify(t.hostSearchMap)&&(l(t.hostSearchDefaultTab),a(y(t.hostSearchDefaultTab)))}),[t.hostSearchMap,t.hostSearchDefaultTab,t.hostSearchTabs]);var _=function(t){switch(t){case 0:return"one";case 1:return"two";case 2:return"three";case 9:return"last";default:return"more"}},b=function(e,n,r){var a,i,c,l,u,s;return o.a.createElement("a",{className:"aplus_exp ".concat(Ge.a.hot_item," ").concat(e.data.posterImage?Ge.a.hot_item_img_hover:Ge.a.hot_item_txt_hover),href:"javascript:void(0);",key:"d_poster_".concat(r,"_").concat(n),"data-spm":"d_poster_".concat(n+1),"data-scm":null==e||null===(a=e.data)||void 0===a||null===(i=a.action)||void 0===i||null===(c=i.report)||void 0===c?void 0:c.scm,"data-trackinfo":encodeURIComponent(JSON.stringify(null==e||null===(l=e.data)||void 0===l||null===(u=l.action)||void 0===u||null===(s=u.report)||void 0===s?void 0:s.trackInfo)),onMouseEnter:function(){!function(t,e){var n,r,o,a;!t.hasExp&&null!=t&&null!==(n=t.data)&&void 0!==n&&n.posterImage&&(de("d_hotSearch","d_posterdetail_".concat(e+1),"EXP",null==t||null===(r=t.data)||void 0===r||null===(o=r.action)||void 0===o||null===(a=o.report)||void 0===a?void 0:a.scm),t.hasExp=!0)}(e,n)},onClick:function(){return function(e,n){var r,o,a,i,c,l,u,s=he().spmA+"."+he().spmB,f="d_poster".concat(null!=e&&null!==(r=e.data)&&void 0!==r&&r.posterImage?"detail":"","_").concat(n+1),h=(null==e||null===(o=e.data)||void 0===o||null===(a=o.action)||void 0===a||null===(i=a.report)||void 0===i?void 0:i.scm)||"",d="spm=".concat(s,".d_hotSearch.").concat(f,"&scm=").concat(h);de("d_hotSearch",f,"CLK",h);var p,m,v,y,g=e&&e.data&&(e.data.keyword||e.data.title||""),_=document.getElementById("search-input-box");if(null!=t&&t.isUosMode||t.isSearchPage||(_.value=""),t.saveHistoryWord({value:g}),null!=e&&null!==(c=e.data)&&void 0!==c&&c.encodeShowId||null!=e&&null!==(l=e.data)&&void 0!==l&&l.showId)return window.open("//v.youku.com/v_nextstage/id_".concat((null==e||null===(p=e.data)||void 0===p?void 0:p.encodeShowId)||(null==e||null===(m=e.data)||void 0===m?void 0:m.showId),".html?").concat(d)),null==t||!t.isUosMode||null!==(v=window.ikuWebApi)&&void 0!==v&&v.isSearchPage||(_.value=""),void(null==t||t.handleHotSearch());if(null!=e&&null!==(u=e.data)&&void 0!==u&&u.vid)return window.open("//v.youku.com/v_show/id_".concat(e.data.vid,".html?").concat(d)),null==t||!t.isUosMode||null!==(y=window.ikuWebApi)&&void 0!==y&&y.isSearchPage||(_.value=""),void(null==t||t.handleHotSearch());if(null!=t&&t.isUosMode&&(_.value=g),window.baseCommonAttributes&&window.baseCommonAttributes.isSearchReload){var b="true"===Ye("gray_new");window.location.href="https://".concat(window.location.host,"/search_video/q_").concat(encodeURIComponent(g)).concat(b?"?gray_new=true":"").concat(b?"&searchfrom=4&".concat(d):"?searchfrom=4&".concat(d))}else window.open("https://so.youku.com/search_video/q_".concat(encodeURIComponent(g),"?searchfrom=4&").concat(d));null==t||t.handleHotSearch()}(e,n)}},o.a.createElement("div",{className:"".concat(Ge.a.order_box)},o.a.createElement("div",{className:"".concat(Ge.a.order," ").concat(Ge.a[_(n)])},o.a.createElement("span",{className:Ge.a.text},n+1))),o.a.createElement("div",{className:Ge.a.hot_item_nohover_box},o.a.createElement("span",{className:Ge.a.hot_word},r),e.data.searchIndexTitle&&e.data.searchIndexValue&&o.a.createElement("span",{className:Ge.a.hot_word_tag},"\xa0\xb7\xa0",e.data.searchIndexTitle,o.a.createElement("span",{className:Ge.a.hot_word_tag_number},e.data.searchIndexValue)),!(e.data.searchIndexTitle&&e.data.searchIndexValue)&&e.data.hotInfo&&o.a.createElement("span",{className:Ge.a.hot_point_tag},o.a.createElement("span",{className:"iconfontheader ".concat(Ge.a.hot_point_tag_icon)}),e.data.hotInfo)),e.data.posterImage&&o.a.createElement("div",{className:Ge.a.hot_item_hover_box},o.a.createElement("div",{className:Ge.a.hot_item_hover_box_img,style:{backgroundImage:"url(".concat(e.data.posterImage,")")}}),o.a.createElement("div",{className:Ge.a.hot_item_hover_content},o.a.createElement("div",{className:Ge.a.hot_item_hover_content_title},o.a.createElement("span",{className:Ge.a.hot_word},r),e.data.searchIndexTitle&&e.data.searchIndexValue&&o.a.createElement("span",{className:Ge.a.hot_word_tag},"\xa0\xb7\xa0",e.data.searchIndexTitle,o.a.createElement("span",{className:Ge.a.hot_word_tag_number},e.data.searchIndexValue))),e.data.videoInfo&&o.a.createElement("div",{className:Ge.a.hot_item_hover_content_txt},e.data.videoInfo.replace(/\xb7/g," \xb7 ")),e.data.hotComment&&o.a.createElement("div",{className:Ge.a.hot_item_hover_content_txt},e.data.hotComment))))};return o.a.createElement(o.a.Fragment,null,t.isVisible&&n.length>0&&o.a.createElement("div",{className:"".concat(Ge.a.hot_component," ").concat(t.searchShort?Ge.a.hot_component_short:"")},o.a.createElement("div",{className:Ge.a.nav_list},o.a.createElement("div",{ref:m,className:Ge.a.nav_item_box},o.a.createElement("div",{ref:v,className:Ge.a.nav_item_box_content,style:{left:"".concat(s,"px")}},Array.isArray(t.hostSearchTabs)&&t.hostSearchTabs&&t.hostSearchTabs.length>0&&t.hostSearchTabs.map((function(t,e){var n;return o.a.createElement("a",{className:"aplus_exp aplus_clk ".concat(Ge.a.nav_item," ").concat(t.data&&t.data.cateName===c?Ge.a.current_item:""),href:"javascript:void(0)",key:"d_channeltab_".concat(null==t||null===(n=t.data)||void 0===n?void 0:n.cateName,"_").concat(e),"data-spm":"d_channeltab_".concat(e+1),onClick:function(){var e;e=t.data&&t.data.cateName,l(e),a(y(e))}},t.data&&t.data.cateName)})))),o.a.createElement("div",{className:Ge.a.nav_page_tabs},o.a.createElement("div",{className:"".concat(Ge.a.nav_page_tabs_left," ").concat(0===s?Ge.a.nav_page_tabs_opacity:""),onClick:function(){f(0)}}),o.a.createElement("div",{className:"".concat(Ge.a.nav_page_tabs_right," ").concat(0!==s?Ge.a.nav_page_tabs_opacity:""),onClick:function(){if(d)f(d);else{var t=m.current.clientWidth-v.current.clientWidth;p(t),f(t)}}}))),o.a.createElement("div",{className:Ge.a.list_box},n&&n.map((function(t,e){var n=t&&t.data&&(t.data.keyword||t.data.title||"");return b(t,e,n)}))),o.a.createElement("div",null,o.a.createElement("a",{href:"https://t.youku.com/yep/page/s/hot_search_rank",target:"_black",className:"aplus_exp aplus_clk ".concat(Ge.a.hot_more),"data-spm":"d_more",onClick:function(){var e;(e=document.querySelector("#search-input-box"))&&!t.isSearchPage&&(e.value=""),null==t||t.handleHotSearch()}},"\u66f4\u591a\u70ed\u95e8\u641c\u7d22"))))},Qe=ze;function $e(t){return($e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ze(t){return nn(t)||en(t)||un(t)||tn()}function tn(){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 en(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function nn(t){if(Array.isArray(t))return sn(t)}function rn(){rn=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new N(r||[]);return o(i,"_invoke",{value:S(t,n,c)}),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",d="executing",p="completed",m={};function v(){}function y(){}function g(){}var _={};u(_,i,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(I([])));w&&w!==n&&r.call(w,i)&&(_=w);var x=g.prototype=v.prototype=Object.create(_);function E(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function n(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==$e(s)&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,i,c)}),(function(t){n("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function S(e,n,r){var o=h;return function(a,i){if(o===d)throw Error("Generator is already running");if(o===p){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var c=r.delegate;if(c){var l=O(c,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=d;var u=f(e,n,r);if("normal"===u.type){if(o=r.done?p:"suspendedYield",u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=p,r.method="throw",r.arg=u.arg)}}}function O(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var a=f(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function I(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError($e(e)+" is not iterable")}return y.prototype=g,o(x,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:y,configurable:!0}),y.displayName=u(g,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},E(k.prototype),u(k.prototype,c,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new k(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=I,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function on(t,e,n,r,o,a,i){try{var c=t[a](i),l=c.value}catch(t){return void n(t)}c.done?e(l):Promise.resolve(l).then(r,o)}function an(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){on(a,r,o,i,c,"next",t)}function c(t){on(a,r,o,i,c,"throw",t)}i(void 0)}))}}function cn(t,e){return hn(t)||fn(t,e)||un(t,e)||ln()}function ln(){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 un(t,e){if(t){if("string"==typeof t)return sn(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sn(t,e):void 0}}function sn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function fn(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,i,c=[],l=!0,u=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(c.push(r.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}function hn(t){if(Array.isArray(t))return t}var dn=!1,pn=null,mn=null;function vn(t){var e=cn(Object(r.useState)(!1),2),n=e[0],i=e[1],c=cn(Object(r.useState)(!1),2),l=c[0],u=c[1],s=cn(Object(r.useState)(!1),2),f=s[0],h=s[1],d=cn(Object(r.useState)([]),2),p=d[0],m=d[1],v=cn(Object(r.useState)(!1),2),y=v[0],g=v[1],_=cn(Object(r.useState)([]),2),b=_[0],w=_[1],x=cn(Object(r.useState)(""),2),E=x[0],k=x[1],S=cn(Object(r.useState)({}),2),O=S[0],L=S[1],j=cn(Object(r.useState)([-1,-1]),2),N=j[0],I=j[1],C=Object(r.useRef)(),T=Object(r.useRef)(null),P=Object(r.useRef)(null),A=Object(r.useRef)(null);Object(r.useEffect)((function(){var e=document.querySelector("#search-input-box");e.addEventListener("focus",(function(){T.current=null,I([-1,-1]),i(!0),u(!0),g(!1),e.value.length>0&&h(!0),0===e.value.length&&h(!1),t.setSearchIsFocus&&t.setSearchIsFocus(!0)})),e.addEventListener("input",(function(){T.current=null,I([-1,-1]),e.value.length>0&&(h(!0),g(!1)),0===e.value.length&&h(!1)})),window.addEventListener("click",(function(t){t.target.closest(".search_search_box")||M()})),qt().then((function(t){var e,n,r,o,a,i,c,l,u,s,f,h;null!=t&&null!==(e=t.nodes[0])&&void 0!==e&&null!==(n=e.nodes[0])&&void 0!==n&&n.nodes&&null!=t&&null!==(r=t.nodes[0])&&void 0!==r&&null!==(o=r.nodes[0])&&void 0!==o&&o.data&&(w(null==t||null===(a=t.nodes[0])||void 0===a||null===(i=a.nodes[0])||void 0===i?void 0:i.nodes),k(null==t||null===(c=t.nodes[0])||void 0===c||null===(l=c.nodes[0])||void 0===l||null===(u=l.data)||void 0===u?void 0:u.defaultTab),L(null==t||null===(s=t.nodes[0])||void 0===s||null===(f=s.nodes[0])||void 0===f||null===(h=f.data)||void 0===h?void 0:h.tabDataMap))}))}),[]);var D=function(){var t=an(rn().mark((function t(){var e;return rn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,R();case 2:e=t.sent,e=Array.isArray(e)&&e.map((function(t){return decodeURIComponent(t)})),P.current=e,m(e);case 6:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();Object(r.useEffect)((function(){var e=function(e){var n,r,o,a,c,l;if(null!=t&&t.isCar&&"Dead"===(null==e?void 0:e.key)){i(!0);var u=document.querySelector("#search-input-box");null==u||u.blur()}if(!A.current){var s=H();A.current=s}var f=(null===(n=P.current)||void 0===n?void 0:n.slice(0,A.current||1e4))||[],h=(null==O||null===(r=O[E])||void 0===r||null===(o=r.nodes[0])||void 0===o||null===(a=o.nodes)||void 0===a?void 0:a.slice(0,5))||[],d=[].concat(Ze(f),Ze(h));if(!((null==d?void 0:d.length)<=0||38!==e.keyCode&&40!==e.keyCode)){var p=document.querySelector("#search-input-box");if(38===e.keyCode&&(e.preventDefault(),null!==T.current&&T.current>=0&&(T.current-=1,T.current<0)))T.current=0;else{if(40===e.keyCode)if(null===T.current)T.current=0;else if(T.current>=0&&(T.current+=1,T.current>=d.length))return void(T.current=d.length-1);if(p.value=(null==d||null===(c=d[T.current])||void 0===c||null===(l=c.data)||void 0===l?void 0:l.title)||(null==d?void 0:d[T.current])||"",T.current>f.length-1){var m=T.current-f.length;I([-1,m])}else I([T.current,-1])}}};return n&&(D(),!f&&window.addEventListener("keydown",e)),function(){var t;null===(t=window)||void 0===t||t.removeEventListener("keydown",e)}}),[n,f]);var H=function(){function t(t,e){if(t&&e){var n=t.getBoundingClientRect(),r=e.getBoundingClientRect();return n.bottom<=r.bottom&&n.top>=r.top&&n.right<=r.right&&n.left>=r.left}}var e=null,n=document.querySelector(".history-search-list_historylistbox"),r=document.querySelectorAll(".history-search-list_history_item");if(t(r[r.length-1],n))return e;for(var o=r.length-2;o>0;o--)if(t(r[o],n)){e=o+1;break}return e},R=function(){var e=an(rn().mark((function e(){var n;return rn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null==t||!t.isUosMode){e.next=2;break}return e.abrupt("return",Promise.resolve(pt("youku_history_word")||[]));case 2:return e.next=4,Object(a.getCookie)("youku_history_word");case 4:n=e.sent,n=decodeURIComponent(n);try{n=JSON.parse(n)}catch(t){n=[]}return e.abrupt("return",n);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),U=function(){var e=an(rn().mark((function e(n){var r,o,i,c,l,u,s,f;return rn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,R();case 2:i=e.sent,c=(null==n?void 0:n.value)||"",(null===(r=c)||void 0===r?void 0:r.length)>28&&(c=c.slice(0,28)),null==i||i.unshift(c),l=Array.from(new Set(i)),u=l.length,s="",f=0;case 10:if(!(f<l.length)){e.next=18;break}if(!((s+=l[f]).length>84)){e.next=15;break}return u=f-1,e.abrupt("break",18);case 15:f++,e.next=10;break;case 18:u>18&&(u=18),l=null===(o=l)||void 0===o?void 0:o.slice(0,u),null!=t&&t.isUosMode?mt({name:"youku_history_word",value:l}):t.isI18n?Object(a.setCookie)("youku_history_word",encodeURIComponent(JSON.stringify(l)),7776e3,".youku.tv"):Object(a.setCookie)("youku_history_word",encodeURIComponent(JSON.stringify(l)),7776e3,".youku.com");case 21:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),M=function(){dn=!1,T.current=null,I([-1,-1]),i(!1),u(!1),null==t||t.setSearchIsFocus(!1);var e=document.querySelector("#search-input-box");null==e||e.blur()};return o.a.createElement("div",{className:"".concat(Ht.a.search_box," ").concat(n?Ht.a.focus_search_box:""," ").concat(y?Ht.a.hover_search_box:""," ").concat(t.isPaddingMac?Ht.a.search_box_mac:""," ").concat(t.showTopHeaderNav?Ht.a.search_box_nav:""," ").concat(t.searchShort?Ht.a.search_box_short:""," ").concat(t.isI18n?Ht.a.search_box_int:""," ").concat(null!=t&&t.isVipPage?Ht.a.search_box_vip:""),"data-spm":"search"},o.a.createElement(ue,{isFocus:n,isSug:f,isShowButton:l,ref:C,saveHistoryWord:U,searchShort:t.searchShort,isSearchPage:t.isSearchPage,isI18n:null==t?void 0:t.isI18n,i18nHeader:null==t?void 0:t.i18nHeader,blurHandle:M,isCar:null==t?void 0:t.isCar}),!t.isI18n&&!(null!=t&&t.isCar)&&o.a.createElement("div",{className:"".concat(Ht.a.hot_search_box),onMouseEnter:n?null:function(){pn&&clearTimeout(pn),pn=null,mn=setTimeout((function(){g(!0)}),100)},onMouseLeave:dn?null:function(){mn&&clearTimeout(mn),mn=null,dn=!1,pn=setTimeout((function(){g(!1),pn&&clearTimeout(pn),pn=null}),150)}},o.a.createElement("div",{className:"aplus_exp aplus_clk ".concat(Ht.a.hot_search_box_title),onClick:n?function(){dn=!0,g(!0),i(!1)}:null,"data-spm":"d_hotSearch"},o.a.createElement("span",{className:"iconfontheader iconhuore-16-mian ".concat(Ht.a.fire," ").concat(y?Ht.a.selected:"")}),o.a.createElement("a",{className:"".concat(Ht.a.hot_search," ").concat(y?Ht.a.selected:"")},"\u70ed\u641c\u699c")),o.a.createElement(Qe,{isVisible:y,hostSearchTabs:b,hostSearchDefaultTab:E,hostSearchMap:O,searchShort:t.searchShort,handleHotSearch:function(){dn=!1,g(!1),u(!1)},saveHistoryWord:U,isSearchPage:t.isSearchPage,isUosMode:t.isUosMode})),l&&o.a.createElement("div",{className:"aplus_exp aplus_clk ".concat(Ht.a.focus_button),"data-spm":"searchbutton",onClick:function(){C.current.jumpToSearchResult(),M()}},o.a.createElement("img",{src:"//img.alicdn.com/imgextra/i2/O1CN01TTI7vI1GYPt7FowfZ_!!6000000000634-2-tps-200-200.png"})),o.a.createElement("div",{className:Ht.a.search_list},!(null!=t&&t.isI18n)&&o.a.createElement(ke,{isSug:f,isVisible:n&&f,saveHistoryWord:U,isSearchPage:t.isSearchPage,isUosMode:t.isUosMode,blurHandle:M,isCar:null==t?void 0:t.isCar}),o.a.createElement(Be,{historyList:p,isVisible:n&&!f,saveHistoryWord:U,isI18n:null==t?void 0:t.isI18n,i18nHeader:null==t?void 0:t.i18nHeader,isUosMode:t.isUosMode,keyIndex:N[0],clearHistory:function(){m([]),P.current=[]},blurHandle:M,isCar:null==t?void 0:t.isCar}),!(null!=t&&t.isI18n)&&o.a.createElement(De,{isVisible:n&&!f,hostSearchTabs:b,hostSearchDefaultTab:E,hostSearchMap:O,historyListLength:p.length?p.length:0,isSearchPage:t.isSearchPage,saveHistoryWord:U,isUosMode:t.isUosMode,keyIndex:N[1],blurHandle:M,isCar:null==t?void 0:t.isCar})))}var yn=vn,gn=n(19),_n=n.n(gn);function bn(t,e){return Sn(t)||kn(t,e)||xn(t,e)||wn()}function wn(){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 xn(t,e){if(t){if("string"==typeof t)return En(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?En(t,e):void 0}}function En(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function kn(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,i,c=[],l=!0,u=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(c.push(r.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}function Sn(t){if(Array.isArray(t))return t}var On=function(t){var e=bn(Object(r.useState)(!1),2),n=e[0],a=e[1],i=bn(Object(r.useState)(!1),2),c=i[0],l=i[1];Object(r.useEffect)((function(){t.logininstance&&t.logininstance&&t.logininstance.eventbusLogin.subscribe((function(t){t.userInfo&&a(t.isLoginStatus)}))}),[t.logininstance]),Object(r.useEffect)((function(){document.addEventListener("scroll",(function(){var t=document.documentElement.scrollTop||document.body.scrollTop;if("v.youku.com"!==location.host&&"pre2-v.youku.com"!==location.host){if(t>200&&!n){var e=localStorage.getItem("logouttiptime"),r=new Date,o=new Date("".concat(r.getFullYear(),"-").concat(r.getMonth()+1,"-").concat(r.getDate())).getTime();e?e!=="".concat(o)&&l(!1):l(!0)}}else l(!1)}))}),[]);var u=function(e){e.preventDefault(),t.logininstance&&t.logininstance.login()};return o.a.createElement("div",null,c&&!n&&o.a.createElement("div",{className:"".concat(_n.a.infoBottom)},o.a.createElement("img",{className:_n.a.close,src:"//img.alicdn.com/tfs/TB1lPFxh4D1gK0jSZFyXXciOVXa-12-12.svg",onClick:function(t){!function(){l(!1);var t=new Date,e=new Date("".concat(t.getFullYear(),"-").concat(t.getMonth()+1,"-").concat(t.getDate())).getTime();localStorage.setItem("logouttiptime","".concat(e))}()}}),o.a.createElement("div",{onClick:function(t){t.preventDefault(),t.stopPropagation(),u(t)},className:_n.a.title},"\u767b\u5f55\u4f18\u9177\uff0c\u5c0a\u4eab\u54c1\u8d28\u89c2\u5f71\u4f53\u9a8c"),o.a.createElement("div",{onClick:function(t){t.preventDefault(),t.stopPropagation(),u(t)},className:_n.a.subTitle},"VIP\u767b\u5f55\uff0c\u8df3\u8fc7\u5e7f\u544a\u770b\u5927\u7247"),o.a.createElement("div",{className:_n.a.buttonBox},o.a.createElement("button",{onClick:function(t){t.preventDefault(),t.stopPropagation(),u(t)}},"\u7acb\u5373\u767b\u5f55"))))},Ln=On,jn=n(1),Nn=n.n(jn);function In(t,e){return Dn(t)||An(t,e)||Tn(t,e)||Cn()}function Cn(){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 Tn(t,e){if(t){if("string"==typeof t)return Pn(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pn(t,e):void 0}}function Pn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function An(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,i,c=[],l=!0,u=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(c.push(r.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}function Dn(t){if(Array.isArray(t))return t}var Hn=n(2);function Rn(t){var e,n,r={},o=null===(e=window)||void 0===e||null===(n=e.location)||void 0===n?void 0:n.search.substr(1).split("&");if(o)for(var a=0;a<o.length;a++){var i=o[a].split("=");r[i[0]]=i[1]}return r[t]}function Un(t,e){var n=new URL(t);return n.searchParams.delete(e),n.toString()}var Mn=null,Bn=null,Fn=function(t){var e=In(Object(r.useState)({}),2),n=e[0],a=e[1],i=In(Object(r.useState)(!1),2),c=i[0],l=i[1],u=In(Object(r.useState)(!1),2),s=u[0],f=u[1],h=In(Object(r.useState)(!1),2),d=h[0],p=h[1],m=In(Object(r.useState)(!1),2),v=m[0],y=m[1],g=In(Object(r.useState)(""),2),_=g[0],b=g[1],w=In(Object(r.useState)(""),2),x=w[0],E=w[1],k=In(Object(r.useState)(""),2),S=k[0],O=k[1],L=In(Object(r.useState)(""),2),j=L[0],N=L[1],I=t.theme,C=t.crmData,T=!1,P=Hn.getPreStr(_),A=null==_?void 0:_.includes(P),D=null!=_&&_.includes("youku.tv")?"".concat(A?"pre":"www",".youku.tv"):"".concat(A?"prodtest":"www",".youku.com");Object(r.useEffect)((function(){var e,n;t.logininstance&&(null===(e=t.logininstance)||void 0===e||null===(n=e.eventbusLogin)||void 0===n||n.subscribe((function(e){var n,r,o;if(!e.isLoginStatus&&t.isI18n&&S&&x&&t.logininstance.login(),e.userInfo&&(a(e.userInfo),f(e.isLoginStatus),z(e.isLoginStatus),p(!(1!==e.userInfo.is_vip&&"1"!==e.userInfo.is_vip)),y(100006===(null==e||null===(n=e.userInfo)||void 0===n?void 0:n.member_id)&&(null==e||null===(r=e.userInfo)||void 0===r||null===(o=r.name)||void 0===o?void 0:o.includes("SVIP"))),de("loginyindao",e.isLoginStatus?1===e.userInfo.is_vip||"1"===e.userInfo.is_vip?"d_renew":"d_startpay":"d_login","EXP"),e.isLoginStatus&&x)){var i,c,l=Un(null===(i=window)||void 0===i||null===(c=i.location)||void 0===c?void 0:c.href,"openLogin");(l=Un(l,"openlogin"))&&window.history.replaceState(null,"",l)}})),t.logininstance.checkLogin())}),[t.logininstance]),Object(r.useEffect)((function(){var t,e,n,r,o,a,i,c,l="true"===Rn("openLogin")||"true"===Rn("openlogin"),u=["pre.youku.tv","www.youku.tv","local.youku.com","local.m.youku.tv"].includes(null===(t=window)||void 0===t||null===(e=t.location)||void 0===e?void 0:e.host)&&"/"===(null===(n=window)||void 0===n||null===(r=n.location)||void 0===r?void 0:r.pathname);return b(null===(o=window)||void 0===o||null===(a=o.location)||void 0===a?void 0:a.host),N(null===(i=window)||void 0===i||null===(c=i.location)||void 0===c?void 0:c.search),E(l),O(u),function(){clearTimeout(Mn),clearTimeout(Bn)}}),[]),Object(r.useEffect)((function(){t.loginGuideAllow&&z()}),[t.loginGuideAllow]),Object(r.useEffect)((function(){t.mouseIn&&c&&(Mn&&clearTimeout(Mn),Mn=null,l(!1))}),[t.mouseIn]),Object(r.useEffect)((function(){c&&s&&(de("loggedin","exit","EXP"),de("loggedin","exit_all","EXP","",null,"a2hja","14919748_WEBHOME_NEW"))}),[c,s]);var H,R,U,M,B,F,G,K,V,W,q,X,J,Y,z=function(e){(T||void 0!==e)&&(T=!0,(e=e||s)?l(!1):t.loginGuideAllow&&Hn.expRecord({key:"login_index",frequency:3,timeTnterval:1})&&(l(!0),de("loginyindaopanel","d_login","EXP"),de("loginyindaokaitonghuiyuan","d_login","EXP",C.scm?C.scm:""),de("loginyindaopanellogin","d_login","EXP"),Mn=setTimeout((function(){l(!1)}),8e3)))},Q=function(){t.logininstance&&t.logininstance.login()};return o.a.createElement("div",{className:"".concat(Nn.a.user_center_box," ").concat("win"===t.platform?t.isShowRed?Nn.a.user_center_redbox_win:Nn.a.user_center_box_win:""," ").concat(null!=t&&t.isI18n||!t.showTopHeaderNav?"":Nn.a.user_center_box_nav," ").concat(t.oldStyle?Nn.a.oldStyle:""),"data-spm":"usercenter",onMouseEnter:function(){if(null==t||!t.isCar){Mn&&clearTimeout(Mn),Mn=null,Bn=setTimeout((function(){l(!0)}),300);var e=s?d?"d_renew":"d_startpay":"d_login";de("loginyindaopanel",e,"EXP"),de("loginyindaokaitonghuiyuan",e,"EXP",C.scm?C.scm:""),s||de("loginyindaopanellogin","d_login","EXP")}},onMouseLeave:function(){null!=t&&t.isCar||(Bn&&clearTimeout(Bn),Bn=null,Mn=setTimeout((function(){l(!1),Mn&&clearTimeout(Mn),Mn=null}),150))}},o.a.createElement("div",{className:Nn.a.avatar},o.a.createElement("a",{href:!s||null!=t&&t.isCar?"javascript:void(:;)":"//".concat(D,"/page/usc/index").concat(I?"?theme=".concat(I,"&").concat(j):"?".concat(j)),target:!s||null!=t&&t.isCar?"":"_blank",onClick:function(){de("loginyindao",s?d?"d_renew":"d_startpay":"d_login","CLK"),!s&&Q(),(null==t?void 0:t.isCar)&&l(!c)},className:"aplus_exp aplus_clk","data-spm":"d_avatar",rel:"noreferrer"},o.a.createElement("img",{className:"".concat(Nn.a.avatar_img," ").concat(d>0?Nn.a.vipBorder:""),src:n.user_icon_large||"https://img.alicdn.com/imgextra/i2/O1CN01lr1KAH1eIQrB1u9ZK_!!6000000003848-2-tps-138-138.png",title:null==n?void 0:n.uname,alt:null==n?void 0:n.uname}))),s&&c&&(W=(null==n||null===(U=n.iconData)||void 0===U||null===(M=U[4])||void 0===M?void 0:M[1])||(null==n?void 0:n.vip_icon),q=t.isI18n?(null==t||null===(B=t.i18nHeader)||void 0===B?void 0:B.i18n_Header_Me_VIP)||"VIP":"\u4f18\u9177VIP\u4f1a\u5458",X=t.isI18n?(null==t||null===(F=t.i18nHeader)||void 0===F?void 0:F.i18n_Header_Me_Buy)||"Join VIP":"\u7acb\u5373\u7eed\u8d39",J=t.isI18n?(null==t||null===(G=t.i18nHeader)||void 0===G?void 0:G.i18n_Header_Me_Buy)||"Join VIP":"\u7acb\u5373\u5f00\u901a",Y=null!=t&&t.isI18n?(null==t||null===(K=t.i18nHeader)||void 0===K?void 0:K.i18n_Header_Me_Expiration)||"Expire on %s":"%s\u5230\u671f",o.a.createElement("div",{className:"".concat(Nn.a.panel," ").concat(Nn.a.uPanel," ").concat(v?Nn.a.svipPanel:d>0?Nn.a.vipPanel:""," ").concat("win"===t.platform?t.isShowRed?Nn.a.winRedPanel:Nn.a.winPanel:""," ").concat(null!=t&&t.isI18n?Nn.a.intPanel:"")},o.a.createElement("div",{className:"".concat(Nn.a.content)},o.a.createElement("div",{className:"".concat(Nn.a.uInfo," ").concat(null!=t&&t.isI18n?Nn.a.uInfoInt:"")},o.a.createElement("a",{href:"//".concat(D,"/page/usc/index/?theme=").concat(I,"&".concat(j)),target:"_blank",rel:"noreferrer",onClick:function(e){(null==t?void 0:t.isCar)&&e.preventDefault()}},o.a.createElement("img",{src:n.user_icon_middle,className:d?Nn.a.vipBorder:""})),o.a.createElement("a",{href:"//".concat(D,"/page/usc/index/?theme=").concat(I,"&".concat(j)),className:"".concat(Nn.a.uLink," ").concat(d?Nn.a.vipULink:""),target:"_blank",title:n.uname,rel:"noreferrer",onClick:function(e){(null==t?void 0:t.isCar)&&e.preventDefault()}},n.uname),o.a.createElement("a",{rel:"noreferrer"},o.a.createElement("span",{className:Nn.a.vipLevelIcon,style:{backgroundImage:"url(".concat(W,")")}})),o.a.createElement("a",{onClick:function(e){de("loggedin","exit","CLK"),de("loggedin","exit_all","CLK","",null,"a2hja","14919748_WEBHOME_NEW"),t.logininstance&&t.logininstance.logout()},className:Nn.a.exitLogin},null!=t&&t.isI18n?(null==t||null===(V=t.i18nHeader)||void 0===V?void 0:V.i18n_Header_Logout)||"Log out":"\u9000\u51fa\u767b\u5f55")),o.a.createElement("a",{href:"javascript:void(0);",className:"".concat(Nn.a.card_content," youku_vip_pay_btn"),onClick:function(){de("loginyindaokaitonghuiyuan",d?"d_renew":"d_startpay","CLK",C.scm?C.scm:"")},"data-scm":C&&C.scm?C.scm:"","data-spm":"d_kaitonghuiyuan","data-products":C&&C.product_sku_id,"data-crm_params":C&&C.crm_params&&encodeURIComponent(JSON.stringify(C.crm_params)),"data-acode":C&&C.activity_code&&C.activity_code,"data-product_params":C&&C.products&&encodeURIComponent(JSON.stringify(C.products)),"data-type":C&&C.biz,"data-pid":C&&C.pid},o.a.createElement("div",{className:Nn.a.card_content_top},o.a.createElement("img",{src:v?"https://img.alicdn.com/imgextra/i4/O1CN01CLtnoi1HSIH6w1YoE_!!6000000000756-2-tps-171-171.png":"https://img.alicdn.com/imgextra/i4/O1CN01FlWRPH1v8fwNtQqav_!!6000000006128-2-tps-171-171.png"}),o.a.createElement("div",{className:Nn.a.card_content_top_content},o.a.createElement("p",{className:Nn.a.card_content_top_content_txt,title:null!=C&&C.title?C.title:q},null!=C&&C.title?C.title:q),o.a.createElement("p",{className:"".concat(Nn.a.card_content_top_content_span," ").concat(d>0?Nn.a.vipColorSubTitle:"")},(null==C?void 0:C.subtitle)||(d>0?Y.replace("%s",n.exptime):null!=t&&t.isI18n?"":"\u5f00\u901a\u4f1a\u5458\u89e3\u9501\u66f4\u591a\u70ed\u64ad\u5267\u96c6"))),o.a.createElement("span",{className:"".concat(Nn.a.crm_btn," ").concat(v?Nn.a.svip_crm_btn:""),title:(null==C?void 0:C.btntext)||(d>0?X:J)},(null==C?void 0:C.btntext)||(d>0?X:J)))),!(null!=t&&t.isI18n)&&!(null!=t&&t.isCar)&&o.a.createElement("div",{className:Nn.a.uList},o.a.createElement("div",{className:Nn.a.item,onClick:function(){de("loggedin","shoucang","CLK"),window.open("https://user.youku.com/page/usc/fav?theme=".concat(I))}},o.a.createElement("span",{className:"iconfontheader iconshoucang-24-mian1 ".concat(Nn.a.iconSpan)}),o.a.createElement("a",{className:Nn.a.text},"\u5728\u8ffd\u9884\u7ea6")),o.a.createElement("div",{className:Nn.a.item,onClick:function(){de("loggedin","guanzhu","CLK"),window.open("https://www.youku.com/profile/subscribe")}},o.a.createElement("span",{className:"iconfontheader iconjiaguanzhu-28-mian ".concat(Nn.a.iconSpan)}),o.a.createElement("a",{className:Nn.a.text},"\u6211\u7684\u5173\u6ce8")),o.a.createElement("div",{className:Nn.a.item,onClick:function(){de("loggedin","chuangzuo","CLK"),window.open("https://mp.youku.com/new/video")}},o.a.createElement("span",{className:"iconfontheader iconchuangzuozhongxin-24-mian ".concat(Nn.a.iconSpan)}),o.a.createElement("a",{className:Nn.a.text},"\u521b\u4f5c\u4e2d\u5fc3")),o.a.createElement("div",{className:Nn.a.lastItem,onClick:function(){de("loggedin","bangzhu","CLK"),window.open("https://t.youku.com/yep/page/pc/youkukefu?isNeedBaseImage=1&useMtopData=true")}},o.a.createElement("span",{className:"iconfontheader iconkefu-24-mian ".concat(Nn.a.iconSpan)}),o.a.createElement("a",{href:"javascript:;",className:Nn.a.text},"\u5e2e\u52a9\u4e2d\u5fc3")))))),!s&&!x&&c&&!(null!=t&&t.isCar)&&o.a.createElement("div",{className:"".concat(Nn.a.panel," ").concat(Nn.a.uPanel," ").concat("win"===t.platform?t.isShowRed?Nn.a.winRedPanel:Nn.a.winPanel:""," ").concat(null!=t&&t.isI18n?Nn.a.intPanel:"")},o.a.createElement("div",{className:Nn.a.content},o.a.createElement("div",{className:"".concat(Nn.a.user_content," ").concat(null!=t&&t.isI18n?Nn.a.user_content_int:"")},o.a.createElement("div",{className:"".concat(Nn.a.user_content_avatar," ").concat(null!=t&&t.isI18n?Nn.a.user_content_avatar_int:"")},o.a.createElement("a",{onClick:function(t){t.preventDefault(),t.stopPropagation(),Q(),de("loginyindaopanellogin","d_login","CLK")}},o.a.createElement("img",{className:Nn.a.user_content_avatar_img,src:"https://img.alicdn.com/imgextra/i2/O1CN01lr1KAH1eIQrB1u9ZK_!!6000000003848-2-tps-138-138.png"}))),o.a.createElement("div",{className:Nn.a.user_content_txt},o.a.createElement("a",{onClick:function(t){t.preventDefault(),t.stopPropagation(),Q(),de("loginyindaopanellogin","d_login","CLK")}},null!=t&&t.isI18n?(null==t||null===(H=t.i18nHeader)||void 0===H?void 0:H.i18n_Header_Login)||"Log in":"\u7acb\u5373\u767b\u5f55",o.a.createElement("img",{src:"https://img.alicdn.com/imgextra/i4/O1CN01dPxUfG1sOkwab62IN_!!6000000005757-2-tps-60-60.png"})),o.a.createElement("p",null,null!=t&&t.isI18n?(null==t||null===(R=t.i18nHeader)||void 0===R?void 0:R.i18n_Header_Login_Str)||"view more browsing history":"\u540c\u6b65\u591a\u7aef\u89c2\u770b\u8bb0\u5f55 \u5c0a\u4eab\u9ad8\u6e05\u89c2\u5f71\u4f53\u9a8c"))),!(null!=t&&t.isI18n)&&o.a.createElement("div",{className:"".concat(Nn.a.card_content," youku_vip_pay_btn"),onClick:function(){de("loginyindaokaitonghuiyuan","d_login","CLK",C.scm?C.scm:"")},"data-spm-anchor-id":t.spmAB&&"".concat(t.spmAB.spmA,".").concat(t.spmAB.spmB,".vipyindao.d_kaitonghuiyuan"),"data-scm":C&&C.scm?C.scm:"","data-spm":"d_kaitonghuiyuan","data-products":C&&C.product_sku_id,"data-crm_params":C&&C.crm_params&&encodeURIComponent(JSON.stringify(C.crm_params)),"data-acode":C&&C.activity_code&&C.activity_code,"data-product_params":C&&C.products&&encodeURIComponent(JSON.stringify(C.products)),"data-type":C&&C.biz,"data-pid":C&&C.pid},o.a.createElement("div",{className:Nn.a.card_content_top},o.a.createElement("img",{src:"https://img.alicdn.com/imgextra/i4/O1CN01FlWRPH1v8fwNtQqav_!!6000000006128-2-tps-171-171.png"}),o.a.createElement("div",{className:Nn.a.card_content_top_content},o.a.createElement("p",{className:Nn.a.card_content_top_content_txt},C&&C.title),o.a.createElement("p",{className:Nn.a.card_content_top_content_span},C&&C.subtitle)),o.a.createElement("a",{className:Nn.a.crm_btn},C&&C.btntext?C.btntext:"\u7acb\u5373\u5f00\u901a")),o.a.createElement("div",{className:Nn.a.card_content_bottom},o.a.createElement("div",{className:Nn.a.card_content_bottom_item},o.a.createElement("img",{src:"https://img.alicdn.com/imgextra/i3/O1CN01AwZQgn1SZ7uEOdOm2_!!6000000002260-2-tps-66-66.png"}),o.a.createElement("p",null,"\u5e7f\u544a\u7279\u6743")),o.a.createElement("div",{className:Nn.a.card_content_bottom_item},o.a.createElement("img",{src:"https://img.alicdn.com/imgextra/i4/O1CN019clF1m1T6YoghIM20_!!6000000002333-2-tps-66-66.png"}),o.a.createElement("p",null,"\u5e27\u4eab\u5f71\u97f3")),o.a.createElement("div",{className:Nn.a.card_content_bottom_item},o.a.createElement("img",{src:"https://img.alicdn.com/imgextra/i1/O1CN01fPVypd28y3K3gEQIg_!!6000000008000-2-tps-66-66.png"}),o.a.createElement("p",null,"\u70ed\u5267\u62a2\u5148\u770b")),o.a.createElement("div",{className:Nn.a.card_content_bottom_item},o.a.createElement("img",{src:"https://img.alicdn.com/imgextra/i4/O1CN01Q68wVL1NhlIAkq9Dl_!!6000000001602-2-tps-66-66.png"}),o.a.createElement("p",null,"\u9662\u7ebf\u65b0\u7247")))))))},Gn=Fn,Kn=n(14),Vn=n.n(Kn),Wn=function(t){return o.a.createElement("div",{className:"".concat(Vn.a.logo_box," ").concat("win"!==t.platform&&"mac"!==t.platform?Vn.a.logo_hover:""," ").concat(t.isI18n?Vn.a.I18n_box:"")},o.a.createElement("img",{className:"".concat(t.isVipPage?Vn.a.logo_vip:t.isI18n?Vn.a.logo_i18n:Vn.a.logo_img," ").concat(t.showTopHeaderNav?Vn.a.nav_logo:""," ").concat(t.oldStyle?Vn.a.oldStyle:""," ").concat(null!=t&&t.isI18n?Vn.a.logo_int:""),onClick:function(){if(!("win"===t.platform||"mac"===t.platform||null!=t&&t.isCar))if(t.isVipPage)window.location.href="//hy.youku.com";else if(t.isI18n){var e,n=Object(a.getPreStr)(null===(e=location)||void 0===e?void 0:e.host),r="pre"===window.__ENV__||"staging"===window.__ENV__||location.host.includes(n);if(location.host.includes("youku.tv")){var o=r?"pre.youku.tv":"www.youku.tv";window.location.href="//".concat(o,"/channel/webhome")}else{var i=r?"prodtest.youku.com":"www.youku.com";window.location.href="//".concat(i,"/channel/webhome?isI18n=1")}}else window.location.href="//www.youku.com"},src:t.isVipPage?"https://img.alicdn.com/imgextra/i1/O1CN01GjItwX1tbPYvwgSJJ_!!6000000005920-2-tps-352-75.png":t.isI18n?"https://img.alicdn.com/imgextra/i3/O1CN01gh9DO91Dj0Lr8PPNJ_!!6000000000251-55-tps-333-66.svg":"https://img.alicdn.com/imgextra/i1/O1CN01180Rqd1u3Lo8PdgSs_!!6000000005981-55-tps-213-72.svg"}))},qn=Wn,Xn=n(30),Jn=n.n(Xn),Yn=n(6),zn=n.n(Yn);function Qn(){Qn=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new N(r||[]);return o(i,"_invoke",{value:S(t,n,c)}),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",d="executing",p="completed",m={};function v(){}function y(){}function g(){}var _={};u(_,i,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(I([])));w&&w!==n&&r.call(w,i)&&(_=w);var x=g.prototype=v.prototype=Object.create(_);function E(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function n(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==$n(s)&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,i,c)}),(function(t){n("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function S(e,n,r){var o=h;return function(a,i){if(o===d)throw Error("Generator is already running");if(o===p){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var c=r.delegate;if(c){var l=O(c,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=d;var u=f(e,n,r);if("normal"===u.type){if(o=r.done?p:"suspendedYield",u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=p,r.method="throw",r.arg=u.arg)}}}function O(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var a=f(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function I(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError($n(e)+" is not iterable")}return y.prototype=g,o(x,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:y,configurable:!0}),y.displayName=u(g,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},E(k.prototype),u(k.prototype,c,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new k(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=I,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function $n(t){return($n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Zn(t,e,n,r,o,a,i){try{var c=t[a](i),l=c.value}catch(t){return void n(t)}c.done?e(l):Promise.resolve(l).then(r,o)}function tr(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){Zn(a,r,o,i,c,"next",t)}function c(t){Zn(a,r,o,i,c,"throw",t)}i(void 0)}))}}function er(t,e){return ir(t)||ar(t,e)||rr(t,e)||nr()}function nr(){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 rr(t,e){if(t){if("string"==typeof t)return or(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?or(t,e):void 0}}function or(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function ar(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,i,c=[],l=!0,u=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(c.push(r.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}function ir(t){if(Array.isArray(t))return t}var cr=[{url:"https://hy.youku.com/",img:"//img.alicdn.com/imgextra/i3/O1CN01AwZQgn1SZ7uEOdOm2_!!6000000002260-2-tps-66-66.png",title:"\u5e7f\u544a\u7279\u6743"},{url:"https://hy.youku.com/",img:"//img.alicdn.com/imgextra/i4/O1CN019clF1m1T6YoghIM20_!!6000000002333-2-tps-66-66.png",title:"\u5e27\u4eab\u5f71\u97f3"},{url:"https://hy.youku.com/",img:"//img.alicdn.com/imgextra/i1/O1CN01fPVypd28y3K3gEQIg_!!6000000008000-2-tps-66-66.png",title:"\u70ed\u5267\u62a2\u5148\u770b"},{url:"https://hy.youku.com/",img:"//img.alicdn.com/imgextra/i4/O1CN01Q68wVL1NhlIAkq9Dl_!!6000000001602-2-tps-66-66.png",title:"\u9662\u7ebf\u65b0\u7247"}],lr=null,ur=null,sr=null,fr=function(t){var e=t.userInfo,n=t.crmData,a=t.isLogin,i=t.isVip,c=Tt((function(t){return t.isI18n})),l=er(Object(r.useState)(""),2),u=l[0],s=l[1],f=er(Object(r.useState)("loading"),2),h=f[0],d=f[1],p=er(Object(r.useState)(""),2),m=p[0],v=p[1],y=er(Object(r.useState)(!1),2),g=y[0],_=y[1],b=er(Object(r.useState)(!1),2),w=b[0],x=b[1],E=function(){var e=tr(Qn().mark((function e(){var r,o,a,i,c,l;return Qn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r="https://t.youku.com/app/ykvip_rax/yk-vip-cashier-plato/pages/index",o="https://t.youku.com/app/visp/cashier/index",n&&n.link){e.next=6;break}return v(o),d("ready"),e.abrupt("return");case 6:"19dd4927ee66ad7e"===n.pid&&(o=r),a="".concat(o,"?hideNavigatorBar=true&sceneType=fullScreen&tabStyle=1"),i={};try{i="string"==typeof n.cashier_attributes?Object.assign({},JSON.parse(n.cashier_attributes),{pid:n.pid||""}):"object"===$n(n.cashier_attributes)?Object.assign({},n.cashier_attributes,{pid:n.pid||""}):{pid:n.pid||""}}catch(t){i={pid:n.pid||""}}if("19dd4927ee66ad7e"===n.pid?(i.wxtip=2,x(!0)):x(!1),c={pageKey:n.cashierPageKey,channel:"pc@yk",activityCode:n.activity_code,attributes:JSON.stringify(i),products:n.products},"win"!==t.platform&&"mac"!==t.platform||(c.channel="iku@yk"),"true"===t.isMas&&(c.channel="mac@yk"),a+="&h5params=".concat(encodeURIComponent(JSON.stringify(c)),"&en_scm=").concat(n.scm,"&v=1"),!lr||lr!==a){e.next=17;break}return e.abrupt("return");case 17:return lr=a,d("loading"),e.prev=19,e.next=22,Y({codeSize:128,sources:"pc",channel:"pc",cycle_buy_re:1,payUrl:a});case 22:l=e.sent,v(l.data.result.data.shortUrl),e.next=29;break;case 26:e.prev=26,e.t0=e.catch(19),v("https://t.youku.com/app/visp/cashier/index");case 29:d("ready");case 30:case"end":return e.stop()}}),e,null,[[19,26]])})));return function(){return e.apply(this,arguments)}}();return Object(r.useEffect)((function(){if(n&&n.scm){var t=e.loginStatus?1===e.is_vip?"1":"2":"0",r="";t&&"0"===t?r="login":t&&"1"===t?r="renew":t&&"2"===t&&(r="startpay"),s(r),de("vipyindao","d_".concat(r),"EXP","login"!==r?n.scm?n.scm:"20140719.manual.cashier_".concat(r,".syt_default"):"")}}),[n,e]),Object(r.useEffect)((function(){var e=t.isLogin?t.isVip?"renew":"startpay":"login";s(e)}),[a,i]),o.a.createElement("div",{className:zn.a.vip_wrap,onMouseEnter:c?void 0:function(){t.setMouseIn&&t.setMouseIn(!0),ur&&clearTimeout(ur),ur=null,sr=setTimeout((function(){E(),_(!0)}),300),de("vipyindaopanel","d_".concat(u),"EXP","login"!==u?n.scm?n.scm:"20140719.manual.cashier_".concat(u,".syt_default"):""),n&&n.btntext&&de("vipyindaokaitonghuiyuan","d_".concat(u),"EXP","login"!==u?n.scm?n.scm:"20140719.manual.cashier_".concat(u,".syt_default"):"")},onMouseLeave:c?void 0:function(){sr&&clearTimeout(sr),sr=null,ur=setTimeout((function(){_(!1),ur&&clearTimeout(ur),ur=null}),150)},"data-spm":"vipyindao"},o.a.createElement("a",{href:"javascript:void(0);",className:"youku_vip_pay_btn aplus_exp aplus_clk ".concat(zn.a.vip_buy_button),onClick:function(){de("vipyindao","d_".concat(u),"CLK","login"!==u?n.scm?n.scm:"20140719.manual.cashier_".concat(u,".syt_default"):"")},"data-scm":n&&n.scm?n.scm:"20140719.manual.cashier_".concat(u,".syt_default"),"data-spm":"d_".concat(u),"data-name":"a_pos","data-products":n&&n.product_sku_id,"data-crm_params":n&&n.crm_params&&encodeURIComponent(JSON.stringify(n.crm_params)),"data-acode":n&&n.activity_code,"data-product_params":n&&n.products&&encodeURIComponent(JSON.stringify(n.products)),"data-type":n&&n.biz,"data-pid":n&&n.pid},o.a.createElement("span",{className:"iconfontheader icon-vip ".concat(zn.a.vip_icon)}),o.a.createElement("div",{className:"".concat(zn.a.vip_pop_content," ").concat((null==n?void 0:n.iconpop)&&zn.a.vip_iconpop_width||zn.a.vip_icontxt_width)},(null==n?void 0:n.icontxt)&&o.a.createElement("span",{className:zn.a.icontxt},n.icontxt),(null==n?void 0:n.iconpop)&&o.a.createElement("span",{className:zn.a.angle_mark},n.iconpop))),g&&o.a.createElement("div",{className:"".concat(zn.a.vip_panel," ").concat(zn.a.uPanel," ").concat("true"===t.isMas?zn.a.masPanel:"")},o.a.createElement("div",{className:zn.a.vip_panel_content},o.a.createElement("div",{className:zn.a.panel_txt_list},cr&&cr.map((function(t,e){return o.a.createElement("a",{key:e,className:"aplus_exp aplus_clk ".concat(zn.a.panel_txt_item),href:t.url,onClick:function(){de("vipyindao","text_".concat(e+1),"CLK")},target:"_blank",rel:"noreferrer"},o.a.createElement("img",{src:t.img}),o.a.createElement("p",null,t.title))}))),"true"!==t.isMas&&o.a.createElement("div",{className:zn.a.panel_code_box},o.a.createElement("div",{className:zn.a.panel_code_img},m&&"loading"!==h&&o.a.createElement(Jn.a,{width:96,code:m}),"loading"===h&&o.a.createElement("img",{className:zn.a.code_loading,src:"https://img.alicdn.com/imgextra/i4/O1CN01XIDL4K1YLk1m7oXIc_!!6000000003043-2-tps-63-63.png"}),"error"===h&&o.a.createElement("div",{className:zn.a.code_error,onClick:function(){d("loading"),setTimeout((function(){d("ready")}),1e3)}},o.a.createElement("div",{className:zn.a.code_error_box},o.a.createElement("img",{src:"https://img.alicdn.com/imgextra/i4/O1CN01q1SlXH1t1EDZJ8JUM_!!6000000005841-2-tps-63-63.png"}),o.a.createElement("p",null,"\u70b9\u51fb\u5237\u65b0")))),o.a.createElement("div",{className:zn.a.panel_code_txt},o.a.createElement("span",null,o.a.createElement("img",{src:"https://img.alicdn.com/imgextra/i1/O1CN01lXpGHd23MQhwDeNoy_!!6000000007241-2-tps-54-54.png"}),w?null:o.a.createElement("img",{src:"https://img.alicdn.com/imgextra/i1/O1CN01S88svU1GX2iMgWcK1_!!6000000000631-2-tps-54-54.png"}),"\u652f\u4ed8\u5b9d",w?"":"/\u5fae\u4fe1"," ",o.a.createElement("br",null),"\u626b\u7801\u5f00\u4f1a\u5458")))),o.a.createElement("div",{className:zn.a.bottomBox},n&&n.btntext&&o.a.createElement("a",{className:"youku_vip_pay_btn aplus_exp aplus_clk ".concat(zn.a.bottomButton),onClick:function(){de("vipyindaokaitonghuiyuan","d_".concat(u),"CLK","login"!==u?n.scm?n.scm:"20140719.manual.cashier_".concat(u,".syt_default"):"")},"data-scm":n&&n.scm?n.scm:"20140719.manual.cashier_".concat(u,".syt_default"),"data-spm":"d_".concat(u),"data-name":"a_pos","data-products":n&&n.product_sku_id,"data-crm_params":n&&n.crm_params&&encodeURIComponent(JSON.stringify(n.crm_params)),"data-acode":n&&n.activity_code,"data-product_params":n&&n.products&&encodeURIComponent(JSON.stringify(n.products)),"data-type":n&&n.biz,"data-pid":n&&n.pid,href:"javascript:void(0);"},n&&n.btntext),n&&n.subtitle&&o.a.createElement("div",{className:zn.a.bottomButtonPop},o.a.createElement("p",{className:zn.a.bottomButtonPopTxt},n&&n.subtitle)))))},hr=fr,dr=n(23),pr=n.n(dr),mr=function(t){return o.a.createElement("div",{className:pr.a.localfile_box},o.a.createElement("a",{onClick:function(){window.ikuApi&&window.ikuApi.switchPersonalCenter&&window.ikuApi.switchPersonalCenter({flag:!0,personalActiveKey:2})},title:"\u4e0b\u8f7d",className:"iconfontheader icon-localfile-main-24 ".concat(pr.a.icon_span)}))},vr=mr,yr=n(24),gr=n.n(yr),_r=function(t){return o.a.createElement("div",{className:gr.a.localplay_box},o.a.createElement("a",{onClick:function(){window.ikuApi&&window.ikuApi.openLocalPlayWindow&&window.ikuApi.openLocalPlayWindow()},title:"\u672c\u5730\u64ad\u653e",className:"iconfontheader icon-localplay-main-24 ".concat(gr.a.icon_span)}))},br=_r,wr=n(25),xr=n.n(wr),Er=function(t){return o.a.createElement("div",{className:xr.a.reload_box},o.a.createElement("a",{onClick:function(){var e;window.ikuApi&&window.ikuApi.windowReload&&(window.ikuApi.windowReload(),null==t||null===(e=t.bus)||void 0===e||e.emit("updatePop"))},title:"\u5237\u65b0",className:"iconfontheader icon-reload-main-24 ".concat(xr.a.icon_span)}))},kr=Er,Sr=n(22),Or=n.n(Sr),Lr=function(t){return o.a.createElement("div",{className:"".concat(Or.a.win_header," ").concat(t.isShowRed?Or.a.win_header_red:"")},!t.isShowRed&&o.a.createElement("div",{className:Or.a.YLine}),o.a.createElement(kr,{bus:null==t?void 0:t.bus}))},jr=Lr,Nr=n(3),Ir=n.n(Nr);function Cr(t){return(Cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Tr(){Tr=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new N(r||[]);return o(i,"_invoke",{value:S(t,n,c)}),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",d="executing",p="completed",m={};function v(){}function y(){}function g(){}var _={};u(_,i,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(I([])));w&&w!==n&&r.call(w,i)&&(_=w);var x=g.prototype=v.prototype=Object.create(_);function E(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function n(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==Cr(s)&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,i,c)}),(function(t){n("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function S(e,n,r){var o=h;return function(a,i){if(o===d)throw Error("Generator is already running");if(o===p){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var c=r.delegate;if(c){var l=O(c,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=d;var u=f(e,n,r);if("normal"===u.type){if(o=r.done?p:"suspendedYield",u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=p,r.method="throw",r.arg=u.arg)}}}function O(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var a=f(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function I(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(Cr(e)+" is not iterable")}return y.prototype=g,o(x,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:y,configurable:!0}),y.displayName=u(g,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},E(k.prototype),u(k.prototype,c,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new k(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=I,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function Pr(t,e,n,r,o,a,i){try{var c=t[a](i),l=c.value}catch(t){return void n(t)}c.done?e(l):Promise.resolve(l).then(r,o)}function Ar(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){Pr(a,r,o,i,c,"next",t)}function c(t){Pr(a,r,o,i,c,"throw",t)}i(void 0)}))}}function Dr(t,e){return Hr.apply(this,arguments)}function Hr(){return(Hr=Ar(Tr().mark((function t(e,n){var r,o,i;return Tr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=Object(a.getCna)(),o={api:"mtop.youku.playlog.open.get",type:"GET",v:"1.0",ecode:0,dataType:"jsonp",data:JSON.stringify({nlid:r||"XlQcF5xQrCcCAWoLKdGqIOhS",uid:e||"",pageLength:100,timestamp:(new Date).getTime().toString(),appKey:"qPbb2hfIYugHjMaj",appName:"pc",hwClass:1,deviceName:"web",isPlayController:1,ccode:n?"0597":"0502",clientDrmAbility:Rr(navigator&&navigator.userAgent)||3}),appKey:24679788,jsonpIncPrefix:"headerRecord"},t.next=4,l.request("mtop.youku.playlog.open.get",o).catch((function(t){console.log("getRecord_open.get_err",t)}));case 4:return i=t.sent,t.abrupt("return",i);case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Rr(t){var e,n,r=/(chrome)\/([\w.]+)/.test(t)&&t.match(new RegExp("chrome/([0-9]+)."))<=49,o=(t.indexOf("360ee")>-1||t.indexOf("360se")>-1)&&r;(t.indexOf("msie")>-1||t.indexOf("compatible")>-1||t.indexOf("trident")>-1)&&(e=RegExp.$1,n=!0);var a=t.match(new RegExp("".concat(e,":| ([0-9]+).")));return r||o||n&&a<11?1:3}function Ur(t){return(Ur="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Mr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Br(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,zr(r.key),r)}}function Fr(t,e,n){return e&&Br(t.prototype,e),n&&Br(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Gr(t,e,n){return e=qr(e),Kr(t,Wr()?Reflect.construct(e,n||[],qr(t).constructor):e.apply(t,n))}function Kr(t,e){if(e&&("object"==Ur(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Vr(t)}function Vr(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Wr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Wr=function(){return!!t})()}function qr(t){return(qr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Xr(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Jr(t,e)}function Jr(t,e){return(Jr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Yr(t,e,n){return(e=zr(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function zr(t){var e=Qr(t,"string");return"symbol"==Ur(e)?e:e+""}function Qr(t,e){if("object"!=Ur(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Ur(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var $r=function(t){function e(t){var n;return Mr(this,e),Yr(n=Gr(this,e,[t]),"updateView",(function(t,e){t&&n.setState({progressWidth:t/100*e})})),n.state={progressWidth:0},n}return Xr(e,t),Fr(e,[{key:"componentWillReceiveProps",value:function(t){t.progress!==this.props.progress&&this.updateView(t.progress,90)}},{key:"componentDidMount",value:function(){this.updateView(this.props.progress,90)}},{key:"render",value:function(){return o.a.createElement("div",{style:{width:"100%",height:"3px",background:"rgba(255,255,255, .5)",position:"absolute",bottom:"0px",left:"0px"}},o.a.createElement("div",{style:{width:"".concat(this.state.progressWidth,"px"),height:"3px",background:"#00a9f5"}}))}}])}(o.a.Component);function Zr(t,e){return t[{"VIP\xb7\u534a\u4ef7":"i18n_Corner_VodHalf","\u4ed8\u8d39":"i18n_Corner_Tvod","\u72ec\u64ad":"i18n_Corner_Exclusive","\u6700\u65b0":"i18n_Corner_Latest","\u5df2\u70b9\u64ad":"i18n_Corner_Available","\u8d85\u524d\u70b9\u64ad":"i18n_Corner_Express",VIP:"i18n_Corner_VIP","\u9884\u544a":"i18n_Corner_Trailer"}[e]]||""}function to(t){return(to="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function eo(){eo=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new N(r||[]);return o(i,"_invoke",{value:S(t,n,c)}),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",d="executing",p="completed",m={};function v(){}function y(){}function g(){}var _={};u(_,i,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(I([])));w&&w!==n&&r.call(w,i)&&(_=w);var x=g.prototype=v.prototype=Object.create(_);function E(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function n(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==to(s)&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,i,c)}),(function(t){n("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function S(e,n,r){var o=h;return function(a,i){if(o===d)throw Error("Generator is already running");if(o===p){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var c=r.delegate;if(c){var l=O(c,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=d;var u=f(e,n,r);if("normal"===u.type){if(o=r.done?p:"suspendedYield",u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=p,r.method="throw",r.arg=u.arg)}}}function O(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var a=f(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function I(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(to(e)+" is not iterable")}return y.prototype=g,o(x,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:y,configurable:!0}),y.displayName=u(g,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},E(k.prototype),u(k.prototype,c,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new k(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=I,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function no(t,e,n,r,o,a,i){try{var c=t[a](i),l=c.value}catch(t){return void n(t)}c.done?e(l):Promise.resolve(l).then(r,o)}function ro(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){no(a,r,o,i,c,"next",t)}function c(t){no(a,r,o,i,c,"throw",t)}i(void 0)}))}}function oo(t,e){return uo(t)||lo(t,e)||io(t,e)||ao()}function ao(){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 io(t,e){if(t){if("string"==typeof t)return co(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?co(t,e):void 0}}function co(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function lo(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,i,c=[],l=!0,u=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(c.push(r.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}function uo(t){if(Array.isArray(t))return t}var so=!1,fo=[],ho=[],po=[],mo=!1,vo=function(t){var e=oo(Object(r.useState)(!1),2),n=e[0],i=e[1],c=oo(Object(r.useState)(!1),2),l=c[0],u=c[1],s=oo(Object(r.useState)(!1),2),f=s[0],h=s[1],d=oo(Object(r.useState)(""),2),p=d[0],m=d[1],v=oo(Object(r.useState)(""),2),y=v[0],g=v[1],_=oo(Object(r.useState)(""),2),b=_[0],w=_[1],x=Object(r.useRef)(null),E=Object(r.useRef)();Object(r.useEffect)((function(){t.logininstance&&(t.logininstance&&t.logininstance.eventbusLogin.subscribe((function(t){t.userInfo&&(i(t.isLoginStatus,(function(){if(p){var t=document.createElement("a");t.target="_blank",t.href=p,document.body.appendChild(t),t.click(),document.body.removeChild(t)}})),j(t.userInfo.ytid))})),t.logininstance.eventbusLoggout.subscribe((function(){fo=[],j(""),i(!1)})))}),[t.logininstance]),Object(r.useEffect)((function(){return g(window.location.host),w(window.location.search),function(){}}),[]);var k=function(e,n,r){var o;return null!=t&&t.isI18n?(null==t||null===(o=t.i18nHeader)||void 0===o?void 0:o[e])||n:r},S=function(){t.logininstance&&t.logininstance.login()},O=function(t,e){e=Math.floor(e/1e3);var n=new Date,r=new Date("".concat(n.getFullYear(),"/").concat(n.getMonth()+1,"/").concat(n.getDate()," 00:00:00")).getTime()/1e3,o=new Date("".concat(n.getFullYear(),"/").concat(n.getMonth()+1,"/").concat(n.getDate()," 23:59:59")).getTime()/1e3;return t>=r&&t<=o?0:e-t<=604800?1:2},L=function(t){var e=[],n=0,r=0,o=0;return t.todayList.length>0&&(e.push({type:"date",title:k("i18n_Header_History_Today","Today","\u4eca\u5929")}),r++,t.todayList.map((function(t,r){return r<10&&(t.order=++n,e.push(t)),t}))),e.length<11?(o=11-e.length,e.push({type:"date",title:k("i18n_Header_History_Week","Last 7 days","\u4e03\u5929\u5185")}),r++,o=10-e.length+r,0===t.withinSevenList.length&&e.pop(),t.withinSevenList.map((function(t,r){return r<o-1&&(t.order=++n,e.push(t)),t})),e.length<12&&(o=12-e.length,e.push({type:"date",title:k("i18n_Header_History_Earlier","Earlier","\u66f4\u65e9")}),r++,o=10-e.length+r,0===t.earlierList.length&&e.pop(),t.earlierList.map((function(t,r){return r<o&&(t.order=++n,e.push(t)),t}))),e):e},j=function(){var e=ro(eo().mark((function e(n){var r,o,a,i,c,l,u;return eo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Dr(n,null==t?void 0:t.isI18n);case 3:l=e.sent,e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),console.log(e.t0);case 9:so=!(l&&l.data&&l.data.dataList&&l.data.dataList.length>0),u={todayList:[],withinSevenList:[],earlierList:[]},null===(r=l)||void 0===r||null===(o=r.data)||void 0===o||null===(a=o.dataList)||void 0===a||a.forEach((function(t){var e=O(t.lastUpdate,(new Date).getTime());0===e?u.todayList.push(t):1===e?u.withinSevenList.push(t):u.earlierList.push(t)})),fo=L(u),ho=(null===(i=l)||void 0===i||null===(c=i.data)||void 0===c?void 0:c.dataList)||[];case 14:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(t){return e.apply(this,arguments)}}(),N=function(e,r,o){var i,c="//v.youku.com/v_show/id_".concat(r.videoId,".html?firsttime=").concat(r.point),l=Object(a.getPreStr)(null===(i=location)||void 0===i?void 0:i.host),u="pre"===window.__ENV__||"staging"===window.__ENV__||location.host.includes(l);if(null!=t&&t.isI18n&&(c=location.host.includes("youku.tv")?"//".concat(u?"pre.youku.tv":"www.youku.tv","/v_show/id_").concat(r.videoId,".html?firsttime=").concat(r.point):"//".concat(u?"pre-v1.youku.com":"www.youku.com","/v_show/id_").concat(r.videoId,".html?firsttime=").concat(r.point,"&isI18n=1")),r.urlParams&&(c+="&".concat(r.urlParams)),0===o?de(n?"loginrecord":"unloginrecord","text_".concat(r.order),"CLK"):r.playPercent<97?de(n?"loginrecord":"unloginrecord","continue"):de(n?"loginrecord":"unloginrecord","replay"),window.headerInterceptSwitch){if(!n&&!mo)return S(),mo=!0,m(c),!1;mo&&(m(""),window.open(c)),n&&window.open(c)}else window.open(c);return!1},I=function(e,n){var r,a,i,c;if("date"===e.type)return o.a.createElement("dt",{key:n},e.title);var l="iconlishijilu-16-diannao";switch(e.hwClass){case 1:l="iconlishijilu-16-diannao";break;case 2:l="iconlishijilu-16-TV";break;case 3:l="iconlishijilu-16-pad";break;case 4:l="iconlishijilu-16-shouji";break;default:l="iconlishijilu-16-shouji"}return 0===e.isPlayable?o.a.createElement("dd",{key:n,className:Ir.a.notPlayable},((null==e?void 0:e.img)||(null==e?void 0:e.imgHd))&&o.a.createElement("div",{style:{display:"inline-block",height:"51px",marginRight:"7px"}},o.a.createElement("img",{src:null!==e.unplayableReason?e.imgHd:e.img,className:Ir.a.headerLogImg})),o.a.createElement("div",{style:{display:"inline-block",height:"51px",cursor:"default"}},o.a.createElement("a",{href:"javascript:return false"},e.title),o.a.createElement("span",{className:Ir.a.recSt},null!==e.unplayableReason?"\u5f53\u524d\u8bbe\u5907\u65e0\u6743\u9650\u64ad\u653e":k("i18n_Header_History_Ban","Sorry, the video is unavailable.","\u6682\u65e0\u53ef\u64ad\u6e90")))):o.a.createElement("dd",{key:n},o.a.createElement("div",{className:Ir.a.headerLogImgLeft},e.img?o.a.createElement("img",{className:Ir.a.headerLogImg,src:e.img,alt:"",onClick:function(t){return N(0,e,0)}}):o.a.createElement("div",{className:Ir.a.headerLogImg}),null!=t&&t.isI18n||!e.showUpdateStatus?"":o.a.createElement("span",{className:Ir.a.headerLogDate},e.showUpdateStatus," "),e.playPercent?o.a.createElement($r,{progress:e.playPercent,containerStyle:{borderRadius:"0px"}}):"",function(e,n){var r=e.cornerMark,a=e.markColor,i=e.ext,c=r,l=a,u=i&&JSON.parse(i);null!=u&&u.cornerMarkIconFont&&(l=(null==u?void 0:u.cornerFontColor)||a),"VIP\xb7\u5e27\u4eab"===c&&(c="VIP");var s="",f="";if(l)switch(l){case"RED":s="linear-gradient(45deg, #00A3F5 0%, #00C9FD 100%)",f="#fff";break;case"GOLDEN":s="linear-gradient(45deg, #FFC552 0%, #FFDD9A 100%)",f="#4e2d03";break;case"BLUE":s="linear-gradient(45deg, #5C6FE6 0%, #8899F5 100%)",f="#fff";break;case"SVIP_COLORFUL":s="linear-gradient(243deg, #FFE6B3 0%, #F5C4FF 100%)",f="#4d0819"}return n&&(c=Zr(t.i18nHeader,c)),s&&f&&(c||null!=u&&u.cornerMarkIconFont)?o.a.createElement("div",{className:Ir.a.rightText,style:{position:"absolute",right:0,top:0,background:s,borderRadius:"0 7px 0 7px",color:f}},null!=u&&u.cornerMarkIconFont?o.a.createElement("span",{className:"".concat(Ir.a.rightTextFont," iconfontheader ").concat(null==u?void 0:u.cornerMarkIconFont," ").concat("SVIP_COLORFUL"===l?"svipTextHeader":"")}):o.a.createElement("span",{className:Ir.a.rightTextFont},s?c:"\u76f4\u64ad")):""}(e,null==t?void 0:t.isI18n)),o.a.createElement("div",{className:Ir.a.headerLogImgRight},o.a.createElement("a",{target:"video",style:{maxWidth:"170px"},title:e.title,onClick:function(t){return N(0,e,0)}},e.title),o.a.createElement("div",{style:{display:"flex",alignItems:"center"}},o.a.createElement("span",{className:"iconfontheader ".concat(l," ").concat(Ir.a.icoDevice),style:{display:"inline-block"}}),o.a.createElement("span",{className:Ir.a.recSt},e.playPercent<1?(null==t||null===(r=t.i18nHeader)||void 0===r||null===(a=r.i18n_Header_History_WatchPer)||void 0===a?void 0:a.replace("%s","1%"))||"\u89c2\u770b\u4e0d\u8db31%":e.playPercent>97?k("i18n_Header_History_Finished","Finished","\u5df2\u770b\u5b8c"):(null==t||null===(i=t.i18nHeader)||void 0===i||null===(c=i.i18n_Header_History_WatchPer)||void 0===c?void 0:c.replace("%s","".concat(e.playPercent,"%")))||"\u89c2\u770b\u81f3".concat(e.playPercent,"%")),e.lastUpdate?o.a.createElement("span",{className:Ir.a.headerLogTime},function(t){t&&t.toString().length<=10&&(t*=1e3);var e=new Date(t),n="".concat(e.getMonth()+1);n=n.length>1?n:"0".concat(n);var r="".concat(e.getDate());r=r.length>1?r:"0".concat(r);var o="".concat(e.getHours());o=o.length>1?o:"0".concat(o);var a="".concat(e.getMinutes());a=a.length>1?a:"0".concat(a);var i=new Date,c="".concat(i.getMonth()+1);c=c.length>1?c:"0".concat(c);var l="".concat(i.getDate());return l=l.length>1?l:"0".concat(l),n===c&&r===l?"".concat(k("i18n_Header_History_Today","Today","\u4eca\u5929")," ").concat(o,":").concat(a):"".concat(n,"-").concat(r," ").concat(o,":").concat(a)}(e.lastUpdate)," "):"")))},C=function(){E&&E.current&&h(!E.current.checked)},T=function(t){var e=t.target.checked?"filter_on":"filter_off";de(n?"loginrecord":"unloginrecord",e,"CLK"),h(t.target.checked)};if(f){var P,A={todayList:[],withinSevenList:[],earlierList:[]};null===(P=ho)||void 0===P||P.forEach((function(t){var e=O(t.lastUpdate,(new Date).getTime());0===t.tp&&Number(t.duration)<1200||(0===e?A.todayList.push(t):1===e?A.withinSevenList.push(t):A.earlierList.push(t))})),po=L(A),so=0===po.length}else fo.length>0&&(so=!1);var D=Object(a.getPreStr)(y),H=null==y?void 0:y.includes(D),R=null!=y&&y.includes("youku.tv")?"".concat(H?"pre":"www",".youku.tv"):"".concat(H?"prodtest":"www",".youku.com"),U="//".concat(R,"/page/usc/index").concat(b);return o.a.createElement("div",{className:"".concat(Ir.a.uRecord," ").concat((t.white,"")),onMouseEnter:function(){t.setMouseIn&&t.setMouseIn(!0),t.logininstance&&t.logininstance.eventbusLogin&&t.logininstance.eventbusLogin.subscribe((function(t){var e=t.userInfo&&t.userInfo.ytid;j(e)})),de(n?"loginrecord":"unloginrecord","","EXP"),x.current&&clearTimeout(x.current),x.current=setTimeout((function(){u(!0)}),300)},onMouseLeave:function(){x.current&&clearTimeout(x.current),x.current=null,u(!1)}},o.a.createElement("a",{rel:"noopener noreferrer",title:k("i18n_Header_History","history","\u64ad\u653e\u8bb0\u5f55"),href:n?U:"javascript:void:",target:n?"_black":"",onClick:function(t){!n&&S(),de("headericons","kanguo","CLK")},className:"aplus_exp aplus_clk iconfontheader icondingdao-24-guankanlishi ".concat(Ir.a.recordIcon),"data-spm":"d_record"}),l&&o.a.createElement(o.a.Fragment,null,!so&&o.a.createElement("div",{className:"".concat(null!=t&&t.isI18n?Ir.a.intPanel:Ir.a.panel," ").concat(null!=t&&t.isI18n?Ir.a.intuPanel:Ir.a.uPanel),style:{display:l?"block":"none"}},o.a.createElement("div",null,!(null!=t&&t.isI18n)&&o.a.createElement("div",{className:Ir.a.filterArea},o.a.createElement("input",{id:"headerCheckBox",className:Ir.a.check,type:"checkbox",onChange:function(t){return T(t)},checked:f,ref:E}),o.a.createElement("label",{htmlFor:"headerCheckBox"}),o.a.createElement("span",{onClick:C},k("i18n_Header_History_NoShorts","Filter out short videos","\u8fc7\u6ee4\u77ed\u89c6\u9891"))),o.a.createElement("dl",{className:Ir.a.recList},f?po.map((function(t,e){return I(t,e)})):fo.map((function(t,e){return I(t,e)})))),n?o.a.createElement("div",{className:Ir.a.uBottom},o.a.createElement("a",{href:U,className:Ir.a.moreButton,target:"_blank",onClick:function(){setTimeout((function(){u(!1)}),500),de("loginrecord","more","CLK")},rel:"noreferrer"},k("i18n_Header_History_More","More","\u67e5\u770b\u66f4\u591a"))):o.a.createElement("div",{className:Ir.a.uBottom},o.a.createElement("a",{onClick:function(t){S(),de("unloginrecord","loginmore","CLK")},className:Ir.a.moreButton},k("i18n_Header_History_Login","Sign in to view history","\u767b\u5f55\u67e5\u770b\u66f4\u591a")),o.a.createElement("br",null))),so&&n&&o.a.createElement("div",{className:"".concat(null!=t&&t.isI18n?Ir.a.intPanel:Ir.a.panel," ").concat(Ir.a.logout," ").concat(null!=t&&t.isI18n?Ir.a.intuPanel:Ir.a.uPanel),style:{display:l?"block":"none"}},!(null!=t&&t.isI18n)&&o.a.createElement("div",{className:Ir.a.filterArea},o.a.createElement("input",{id:"headerCheckBox2",className:Ir.a.check,type:"checkbox",onChange:function(t){return T(t)},checked:f,ref:E}),o.a.createElement("label",{htmlFor:"headerCheckBox2"}),o.a.createElement("span",{onClick:C},k("i18n_Header_History_NoShorts","Filter out short videos","\u8fc7\u6ee4\u77ed\u89c6\u9891"))),o.a.createElement("img",{className:Ir.a.imgtip,src:"//gw.alicdn.com/tfs/TB1fLhORUY1gK0jSZFCXXcwqXXa-400-400.png"}),o.a.createElement("div",{className:Ir.a.subtitle},k("i18n_Header_History_None","No video",f?"\u4eb2\uff0c\u6682\u65e0\u957f\u89c6\u9891\u64ad\u653e\u8bb0\u5f55\u54e6~":"\u4eb2\uff0c\u4f60\u8fd8\u6ca1\u6709\u89c2\u770b\u89c6\u9891\u54e6~")),o.a.createElement("div",{className:Ir.a.loginbuttonBox},o.a.createElement("button",{onClick:function(){setTimeout((function(){u(!1)}),500),window.open(U),de("loginrecord","more","CLK")},className:Ir.a.loginbutton},k("i18n_Header_History_More","More","\u67e5\u770b\u66f4\u591a")))),so&&!n&&o.a.createElement("div",{className:"".concat(null!=t&&t.isI18n?Ir.a.intPanel:Ir.a.panel," ").concat(Ir.a.logout," ").concat(null!=t&&t.isI18n?Ir.a.intuPanel:Ir.a.uPanel),style:{display:l?"block":"none"}},!(null!=t&&t.isI18n)&&o.a.createElement("div",{className:Ir.a.filterArea},o.a.createElement("input",{id:"headerCheckBox3",className:Ir.a.check,type:"checkbox",onChange:function(t){return T(t)},checked:f,ref:E}),o.a.createElement("label",{htmlFor:"headerCheckBox3"}),o.a.createElement("span",{onClick:C},k("i18n_Header_History_NoShorts","Filter out short videos","\u8fc7\u6ee4\u77ed\u89c6\u9891"))),o.a.createElement("img",{className:Ir.a.imgtip,src:"//gw.alicdn.com/tfs/TB1fLhORUY1gK0jSZFCXXcwqXXa-400-400.png"}),o.a.createElement("div",{className:Ir.a.subtitle},k("i18n_Header_History_None","No video",f?"\u4eb2\uff0c\u6682\u65e0\u957f\u89c6\u9891\u64ad\u653e\u8bb0\u5f55\u54e6~":"\u4eb2\uff0c\u4f60\u8fd8\u6ca1\u6709\u89c2\u770b\u89c6\u9891\u54e6~")),o.a.createElement("div",{className:Ir.a.loginbuttonBox},o.a.createElement("button",{onClick:function(t){S(),de("unloginrecord","loginmore","CLK")},className:Ir.a.loginbutton},k("i18n_Header_History_Login","Sign in to view history","\u767b\u5f55\u67e5\u770b\u66f4\u591a"))))))},yo=vo,go=n(16),_o=n.n(go),bo=n(31),wo=n.n(bo);function xo(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"iku://";return new Promise((function(e,n){wo()(t,(function(){console.log("Custom protocol not found."),e(!1)}),(function(){console.log("Custom protocol found and opened the file successfully."),e(!0)}),1500)}))}function Eo(t){return(Eo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ko(){ko=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new N(r||[]);return o(i,"_invoke",{value:S(t,n,c)}),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",d="executing",p="completed",m={};function v(){}function y(){}function g(){}var _={};u(_,i,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(I([])));w&&w!==n&&r.call(w,i)&&(_=w);var x=g.prototype=v.prototype=Object.create(_);function E(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function n(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==Eo(s)&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,i,c)}),(function(t){n("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function S(e,n,r){var o=h;return function(a,i){if(o===d)throw Error("Generator is already running");if(o===p){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var c=r.delegate;if(c){var l=O(c,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=d;var u=f(e,n,r);if("normal"===u.type){if(o=r.done?p:"suspendedYield",u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=p,r.method="throw",r.arg=u.arg)}}}function O(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var a=f(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function I(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(Eo(e)+" is not iterable")}return y.prototype=g,o(x,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:y,configurable:!0}),y.displayName=u(g,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},E(k.prototype),u(k.prototype,c,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new k(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=I,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function So(t,e,n,r,o,a,i){try{var c=t[a](i),l=c.value}catch(t){return void n(t)}c.done?e(l):Promise.resolve(l).then(r,o)}function Oo(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){So(a,r,o,i,c,"next",t)}function c(t){So(a,r,o,i,c,"throw",t)}i(void 0)}))}}function Lo(t,e){return To(t)||Co(t,e)||No(t,e)||jo()}function jo(){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 No(t,e){if(t){if("string"==typeof t)return Io(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Io(t,e):void 0}}function Io(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Co(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,i,c=[],l=!0,u=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(c.push(r.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}function To(t){if(Array.isArray(t))return t}var Po=[{url:"//www.youku.com/ikudownload/index",type:"icon",img:"//img.alicdn.com/imgextra/i3/O1CN019qtoTE1cnulCtvCq1_!!6000000003646-2-tps-40-38.png",title:"1080P\u9650\u514d",show:!0,icon:"iconHD-24-mian"},{url:"//www.youku.com/ikudownload/index",type:"img",img:"//gw.alicdn.com/imgextra/i1/O1CN01DR4qae1o8wwh5abSP_!!6000000005181-2-tps-60-46.png",title:"\u6d41\u7545\u64ad\u653e",show:!0},{url:"//www.youku.com/ikudownload/index",type:"icon",img:"//img.alicdn.com/imgextra/i1/O1CN0198j2wM1VT7TA2CgR8_!!6000000002653-2-tps-48-48.png",title:"\u6781\u901f\u79bb\u7ebf\u4e0b\u8f7d",show:!0,icon:"iconjisuxiazai-24-mian"}],Ao=null,Do=null,Ho=function(t){var e=Lo(Object(r.useState)(!1),2),n=e[0],a=e[1],i=Object(r.useRef)(null),c=function(){var t=Oo(ko().mark((function t(e,n,r){var o,a;return ko().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=e,t.next=3,xo();case 3:if(!(a=t.sent)){t.next=7;break}return de("downloadikuyindao",n,"CLK"),t.abrupt("return");case 7:!a&&o&&(window.location.href=o,de("downloadikuyindao",r,"CLK"));case 8:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}();return o.a.createElement("div",{className:_o.a.kuhuduan_box,onMouseEnter:function(){t.setMouseIn&&t.setMouseIn(!0),Ao&&clearTimeout(Ao),Ao=null,Do=setTimeout((function(){a(!0)}),300)},onMouseLeave:function(){Do&&clearTimeout(Do),Do=null,Ao=setTimeout((function(){a(!1),Ao&&clearTimeout(Ao),Ao=null}),150)}},o.a.createElement("a",{href:"//youku.com/product/index",title:"\u5ba2\u6237\u7aef",target:"_black",rel:"noopener noreferrer",className:"iconfontheader iconkehuduan-main-24 ".concat(_o.a.icon_span," aplus_exp aplus_clk"),"data-spm":"d_ikuDownload"}),n&&o.a.createElement("div",{className:"".concat(_o.a.download_panel," ").concat(_o.a.uPanel)},Po&&Po.map((function(t,e){var n={href:t.url?t.url:"javascript:void(0)",onClick:function(t){t.preventDefault(),c(n.href,"text_".concat(e+1,"_installed"),"text_".concat(e+1))}};return t.show?o.a.createElement("div",{key:e,className:_o.a.item_content},"img"===t.type?o.a.createElement("img",{src:t.img}):o.a.createElement("i",{style:{color:"#00a9f5"},className:"iconfontheader ".concat(t.icon," ")}),o.a.createElement("a",n,t.title)):null})),o.a.createElement("div",{className:_o.a.bottom_button_box},o.a.createElement("a",{ref:i,className:_o.a.bottom_button,href:"//www.youku.com/ikudownload/index",onClick:function(){var t=Oo(ko().mark((function t(e){var n,r;return ko().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.preventDefault(),r=null==i||null===(n=i.current)||void 0===n?void 0:n.href,c(r,"hitlocaliku","downloadiku");case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},"\u7acb\u5373\u4f53\u9a8c"))))},Ro=Ho,Uo=n(11),Mo=n.n(Uo);function Bo(t,e){return Wo(t)||Vo(t,e)||Go(t,e)||Fo()}function Fo(){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 Go(t,e){if(t){if("string"==typeof t)return Ko(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ko(t,e):void 0}}function Ko(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Vo(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,i,c=[],l=!0,u=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(c.push(r.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}function Wo(t){if(Array.isArray(t))return t}var qo=null,Xo=null,Jo=function(t){var e=Bo(Object(r.useState)(!1),2),n=e[0],a=e[1],i=Bo(Object(r.useState)([]),2),c=i[0],l=i[1],u=Bo(Object(r.useState)([]),2),s=u[0],f=u[1];Object(r.useEffect)((function(){window.addEventListener("resize",h(p))}),[]),Object(r.useEffect)((function(){p()}),[t.channelList]);var h=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=!0;return function(){var r=arguments,o=this;n&&(n=!1,setTimeout((function(){t.apply(o,r),n=!0}),e))}},d="",p=function(){if(t.channelList&&0!==t.channelList.length){var e=document.body.clientWidth;(!d||"long"===d)&&e<=1250?(l(t.channelList.slice(0,1)),f(t.channelList.slice(1,t.channelList.length)),d="short"):(!d||"short"===d)&&e>1250&&(l(t.channelList.slice(0,4)),f(t.channelList.slice(4,t.channelList.length)),d="long")}},m=Math.ceil(s.length/2);return o.a.createElement("div",{className:Mo.a.nav_box},o.a.createElement("ul",{style:{display:"flex",flexWrap:"nowrap",whiteSpace:"nowrap",height:"100%"}},c&&c.length>0&&c.map((function(t,e){return o.a.createElement("li",{className:"".concat(Mo.a.nav_item),key:e},o.a.createElement("a",{href:t.url,target:"_blank",rel:"noreferrer"},t.title))})),(null==s?void 0:s.length)>0&&o.a.createElement("li",{className:"".concat(Mo.a.nav_item),onMouseEnter:function(){qo&&clearTimeout(qo),qo=null,Xo=setTimeout((function(){a(!0)}),300)},onMouseLeave:function(){Xo&&clearTimeout(Xo),Xo=null,qo=setTimeout((function(){a(!1),qo&&clearTimeout(qo),qo=null}),150)}},o.a.createElement("span",{className:Mo.a.nav_cut}),o.a.createElement("a",{className:"".concat(n?Mo.a.nav_item_color:"")},"\u5168\u90e8",o.a.createElement("span",{className:"iconfontheader ".concat(Mo.a.iconfontheader," iconzhankaijiantou-xia ").concat(n?"iconzhankaijiantou-shang":"")})),n&&s&&s.length>0&&o.a.createElement("div",{className:"".concat(Mo.a.nav_panel," ").concat(Mo.a.uPanel)},o.a.createElement("ul",{className:Mo.a.nav_panel_list,style:{width:"".concat(62*m,"px")}},s.map((function(t,e){return o.a.createElement("li",{className:Mo.a.nav_panel_item,key:e},o.a.createElement("a",{href:t.url,target:"_blank",rel:"noreferrer"},t.title))}))),o.a.createElement("div",{className:Mo.a.nav_panel_cut}),o.a.createElement("a",{className:Mo.a.nav_panel_vip,href:"https://hy.youku.com/",target:"_blank",rel:"noreferrer"},o.a.createElement("img",{src:"https://img.alicdn.com/imgextra/i2/O1CN01YbcMgh1gdA1tZxOA3_!!6000000004164-2-tps-108-90.png"}),o.a.createElement("div",{className:Mo.a.nav_panel_vip_txt},"\u4f1a\u5458\u7cbe\u9009"))))))},Yo=Jo,zo=n(20),Qo=n.n(zo);function $o(t){return($o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Zo(t,e){return oa(t)||ra(t,e)||ea(t,e)||ta()}function ta(){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 ea(t,e){if(t){if("string"==typeof t)return na(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?na(t,e):void 0}}function na(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function ra(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,i,c=[],l=!0,u=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(c.push(r.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}function oa(t){if(Array.isArray(t))return t}function aa(){aa=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new N(r||[]);return o(i,"_invoke",{value:S(t,n,c)}),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",d="executing",p="completed",m={};function v(){}function y(){}function g(){}var _={};u(_,i,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(I([])));w&&w!==n&&r.call(w,i)&&(_=w);var x=g.prototype=v.prototype=Object.create(_);function E(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function n(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==$o(s)&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,i,c)}),(function(t){n("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function S(e,n,r){var o=h;return function(a,i){if(o===d)throw Error("Generator is already running");if(o===p){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var c=r.delegate;if(c){var l=O(c,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=d;var u=f(e,n,r);if("normal"===u.type){if(o=r.done?p:"suspendedYield",u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=p,r.method="throw",r.arg=u.arg)}}}function O(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var a=f(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function I(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError($o(e)+" is not iterable")}return y.prototype=g,o(x,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:y,configurable:!0}),y.displayName=u(g,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},E(k.prototype),u(k.prototype,c,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new k(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=I,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function ia(t,e,n,r,o,a,i){try{var c=t[a](i),l=c.value}catch(t){return void n(t)}c.done?e(l):Promise.resolve(l).then(r,o)}function ca(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){ia(a,r,o,i,c,"next",t)}function c(t){ia(a,r,o,i,c,"throw",t)}i(void 0)}))}}var la=[{title:"\u7b80\u4f53\u4e2d\u6587",key:"zh_CN"},{title:"\u7e41\u9ad4\u4e2d\u6587",key:"zh_TW"},{title:"English",key:"en_US"},{title:"Ti\u1ebfng Vi\u1ec7t",key:"vi_VN"},{title:"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22",key:"th_TH"},{title:"Bahasa Indonesia",key:"in_ID"},{title:"Espa\xf1ol",key:"es_ES"},{title:"Bahasa Melayu",key:"ms_MY"},{title:"Portugu\xeas",key:"pt_BR"}],ua=function(){var t=ca(aa().mark((function t(){var e;return aa().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(a.getCookie)("yk_lang");case 2:return e=t.sent,t.abrupt("return",e);case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),sa=function(t){var e,n=Zo(Object(r.useState)(),2),i=n[0],c=n[1],l=Zo(Object(r.useState)(""),2),u=l[0],s=l[1],f=(Tt((function(t){return t.isI18n})),Object(r.useRef)(null));Object(r.useEffect)((function(){ca(aa().mark((function t(){var e;return aa().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ua();case 2:e=t.sent,s(e);case 4:case"end":return t.stop()}}),t)})))()}),[]);return o.a.createElement("div",{className:Qo.a.lang_box,onMouseEnter:function(){f.current&&clearTimeout(f.current),f.current=setTimeout((function(){c(!0)}),300),de("languagepanel",la.findIndex((function(t){return t.key===u}))+1,"EXP","",{language:u})},onMouseLeave:function(){c(!1),f.current&&clearTimeout(f.current),f.current=null}},o.a.createElement("a",{className:"aplus_exp aplus_clk iconfontheader iconlanguage-main-24 ".concat(Qo.a.icon_span),"data-spm":"d_language",title:(null==t||null===(e=t.i18nHeader)||void 0===e?void 0:e.i18n_Header_Language)||"language"}),i&&o.a.createElement("ul",{className:"".concat(Qo.a.lang_panel," ").concat(Qo.a.uPanel)},la.map((function(t,e){return o.a.createElement("li",{className:"".concat(u===t.key?Qo.a.current:""),key:e,onClick:function(){!function(t,e){s(t.key),de("languagepanel",e+1,"CLK","",{language:t.key}),function(t){return new Promise((function(e){var n,r,o=null!==(n=location)&&void 0!==n&&null!==(r=n.host)&&void 0!==r&&r.includes("youku.tv")?"youku.tv":"youku.com";e(Object(a.setCookie)("yk_lang",t,null,o))}))}(t.key).then((function(){var t;null===(t=location)||void 0===t||t.reload()}))}(t,e)}},t.title)}))))},fa=sa,ha=n(13),da=n.n(ha);function pa(t,e){return _a(t)||ga(t,e)||va(t,e)||ma()}function ma(){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 va(t,e){if(t){if("string"==typeof t)return ya(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ya(t,e):void 0}}function ya(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function ga(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,i,c=[],l=!0,u=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(c.push(r.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}function _a(t){if(Array.isArray(t))return t}var ba=function(t){var e,n,a,i,c=pa(Object(r.useState)(!1),2),l=c[0],u=c[1],s=Object(r.useRef)(null);return Object(r.useEffect)((function(){return function(){}}),[]),o.a.createElement("div",{className:da.a.intapp_box,onMouseEnter:function(){s.current&&clearTimeout(s.current),s.current=setTimeout((function(){u(!0)}),300)},onMouseLeave:function(){u(!1),s.current&&clearTimeout(s.current),s.current=null}},o.a.createElement("div",{className:"iconfontheader iconintappDownload-main-24 aplus_exp aplus_clk ".concat(da.a.icon_span),"data-spm":"d_intApp"}),l&&o.a.createElement("div",{className:"".concat(da.a.intapp_panel," ").concat(da.a.uPanel)},o.a.createElement("div",{className:da.a.text_box},o.a.createElement("h2",null,(null==t||null===(e=t.i18nHeader)||void 0===e?void 0:e.i18n_Header_App_Title)||"Scan QR code to download App Now!"),o.a.createElement("p",null,(null==t||null===(n=t.i18nHeader)||void 0===n?void 0:n.i18n_Header_App_Benefit1)||"Boost your download speed"),o.a.createElement("p",null,(null==t||null===(a=t.i18nHeader)||void 0===a?void 0:a.i18n_Header_App_Benefit2)||"No more buffering while streaming"),o.a.createElement("p",null,(null==t||null===(i=t.i18nHeader)||void 0===i?void 0:i.i18n_Header_App_Benefit3)||"High resolution")),o.a.createElement("div",{className:da.a.line}),o.a.createElement("div",{className:da.a.code_wrap},o.a.createElement("div",{style:{position:"relative"}},o.a.createElement("div",{className:da.a.code_box},o.a.createElement("div",{className:da.a.code})),o.a.createElement("img",{className:da.a.houzi,src:"https://img.alicdn.com/imgextra/i1/O1CN01BhptKl1KpbFOscgVl_!!6000000001213-2-tps-240-276.png"})))))},wa=ba,xa=n(12),Ea=n.n(xa);function ka(t,e){return Na(t)||ja(t,e)||Oa(t,e)||Sa()}function Sa(){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 Oa(t,e){if(t){if("string"==typeof t)return La(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?La(t,e):void 0}}function La(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function ja(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,i,c=[],l=!0,u=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(c.push(r.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}function Na(t){if(Array.isArray(t))return t}var Ia=[],Ca=null,Ta=null,Pa=function(t){var e,n=ka(Object(r.useState)(!1),2),i=n[0],c=n[1],l=ka(Object(r.useState)([]),2),u=l[0],s=l[1],f=ka(Object(r.useState)([]),2),h=f[0],d=f[1],p=ka(Object(r.useState)(t.current),2),m=p[0],v=p[1],y=ka(Object(r.useState)(""),2),g=y[0],_=y[1],b=2;Object(r.useEffect)((function(){return window.addEventListener("resize",w),function(){window.removeEventListener("resize",w)}}),[m]),Object(r.useEffect)((function(){w(m)}),[t.channelList]);var w=function(){if(_(""),t.channelList&&0!==t.channelList.length){var e,n,r,o,a,i;Ia=[];var c=(null===(e=document)||void 0===e||null===(n=e.querySelector(".topheader_top_box"))||void 0===n?void 0:n.clientWidth)-(null===(r=document)||void 0===r||null===(o=r.querySelector(".logo_logo_box"))||void 0===o?void 0:o.clientWidth)-(null===(a=document)||void 0===a||null===(i=a.querySelector(".topheader_utils_box"))||void 0===i?void 0:i.clientWidth)-150,l=document.createElement("canvas").getContext("2d");l.font="16px pingfang SC Microsoft YaHei helvetica arial verdana tahoma sans-serif";for(var u=0,f=0;f<t.channelList.length;f++){var h=t.channelList[f];if((u+=Math.ceil(l.measureText(h.title).width)+22)+38>c){b=f;break}b=f+1}b=b<2?2:b;var p,v=t.channelList.slice(b,t.channelList.length),y=[];null!=v&&v.some((function(t){return t.nodeKey===m}))?(_(null==v||null===(p=v.find((function(t){return t.nodeKey===m})))||void 0===p?void 0:p.title),y=v.filter((function(t){return t.nodeKey!==m}))):_(""),s(t.channelList.slice(0,b)),d(y.length>0?y:v),Ia=v}},x=function(t){var e,n;if(window){var r=t,o=Object(a.getPreStr)(null===(e=location)||void 0===e?void 0:e.host),i="pre"===window.__ENV__||"staging"===window.__ENV__||location.host.includes(o);if(null!==(n=location.host)&&void 0!==n&&n.includes("youku.tv")){var c=i?"pre.youku.tv":"www.youku.tv";r=r.replace("www.youku.com",c)}else{var l=i?"prodtest.youku.com":"www.youku.com";r="".concat(r.replace("www.youku.com",l),"?isI18n=1")}return r}};return o.a.createElement("div",{className:Ea.a.nav_box},o.a.createElement("ul",{style:{display:"flex",height:"100%",whiteSpace:"nowrap"}},(null==u?void 0:u.length)>0&&u.map((function(e,n){return o.a.createElement("li",{className:"".concat(Ea.a.nav_item," ").concat("play"!==t.channelType&&e.nodeKey===m?Ea.a.current:"").concat("icon"===e.showType?" "+Ea.a.nav_icon:""),key:n},o.a.createElement("a",{href:"play"===t.channelType||"icon"===e.showType?x(e.url):"javascript:void(0);",target:"play"===t.channelType||"icon"===e.showType?"_blank":"_self",onClick:"play"===t.channelType||"icon"===e.showType?null:function(){!function(e){v(e.nodeKey),_(""),d(Ia),c(!1),t.handleChannelClick(e)}(e)},rel:"noreferrer"},"icon"===e.showType?o.a.createElement("img",{src:e.icon}):e.title))})),((null==u?void 0:u.length)>0&&(null==h?void 0:h.length)>0||g)&&o.a.createElement("li",{className:"".concat(Ea.a.nav_item),onMouseEnter:function(){Ca&&clearTimeout(Ca),Ca=null,Ta=setTimeout((function(){c(!0)}),300)},onMouseLeave:function(){Ta&&clearTimeout(Ta),Ta=null,Ca=setTimeout((function(){c(!1),Ca&&clearTimeout(Ca),Ca=null}),150)}},o.a.createElement("a",{className:"".concat(i?Ea.a.nav_item_color:"")},o.a.createElement("span",{className:g?Ea.a.current:""},g||(null==t||null===(e=t.i18nHeader)||void 0===e?void 0:e.i18n_Header_All)||"All"),(null==h?void 0:h.length)>0&&o.a.createElement("span",{className:"iconfontheader ".concat(Ea.a.iconfontheader," iconzhankaijiantou-xia ").concat(i?"iconzhankaijiantou-shang":"")})),i&&(null==h?void 0:h.length)>0&&o.a.createElement("div",{className:"".concat(Ea.a.nav_panel," ").concat(Ea.a.uPanel)},o.a.createElement("ul",{className:Ea.a.nav_panel_list},h.map((function(e,n){return o.a.createElement("li",{className:"".concat(Ea.a.nav_panel_item," ").concat("play"!==t.channelType&&e.nodeKey===m?Ea.a.current:null),key:n},o.a.createElement("a",{href:"play"===t.channelType||"icon"===e.showType?x(e.url):"javascript:void(0);",target:"play"===t.channelType||"icon"===e.showType?"_blank":"_self",onClick:"play"===t.channelType||"icon"===e.showType?null:function(n){!function(e,n){var r=e.target.innerHTML,o=Ia.filter((function(t){return t.title!==r}));d(o),_(r||""),v(n.nodeKey),c(!1),t.handleChannelClick(n)}(n,e)},rel:"noreferrer"},"icon"===e.showType?o.a.createElement("img",{src:e.icon}):e.title))})))))))},Aa=Pa;function Da(t,e){return Ba(t)||Ma(t,e)||Ra(t,e)||Ha()}function Ha(){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 Ra(t,e){if(t){if("string"==typeof t)return Ua(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ua(t,e):void 0}}function Ua(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Ma(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,i,c=[],l=!0,u=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(c.push(r.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}function Ba(t){if(Array.isArray(t))return t}var Fa=function(t){var e=Da(Object(r.useState)({}),2),n=e[0],a=e[1],i=Da(Object(r.useState)(!1),2),c=i[0],l=i[1],u=Da(Object(r.useState)(!1),2),s=u[0],f=u[1],h=Da(Object(r.useState)(!1),2),d=h[0],p=h[1],m=Da(Object(r.useState)(!1),2),v=m[0],y=m[1],g=Da(Object(r.useState)(!1),2),_=g[0],b=g[1],w=t.popData,x=t.scrollClass;Object(r.useEffect)((function(){t.logininstance&&t.logininstance&&t.logininstance.eventbusLogin.subscribe((function(t){t.userInfo&&(a(t.userInfo),l(t.isLoginStatus),f(!(1!==t.userInfo.is_vip&&"1"!==t.userInfo.is_vip)))}))}),[t.logininstance]),Object(r.useEffect)((function(){t.festivalConfig&&document&&document.addEventListener("scroll",(function(){var t=document.documentElement.scrollTop||document.body.scrollTop;t>=100&&!v?y(!0):t<100&&y(!1)}))}),[]);var E,k,S="win"===t.platform&&!t.isShowRed,O="mac"===t.platform&&!t.isShowRed&&!t.macFullScreen,L="mac"===t.platform||"win"===t.platform;return o.a.createElement("div",{className:"".concat(At.a.topHeaderWrap," ").concat(x?"no_class"===x?At.a.scroll_no_class:At.a.scroll_class:""," ").concat(v||t.festivalConfig?v?"":At.a.hasAd:""," ").concat(void 0!==x?"":At.a.headerBackGround)},o.a.createElement("div",{className:"".concat(At.a.top_header_box," ").concat(t.oldStyle?At.a.header_width:""," ").concat(_?At.a.no_drag:""),style:{height:"".concat(null!=t&&t.isI18n||!t.isShowRed?"70":"140","px")}},"win"===t.platform&&o.a.createElement("div",{className:At.a.uosHeader}),!(null!=t&&t.isI18n)&&t.isShowRed&&Array.isArray(w.topRed)&&w.topRed[0]&&o.a.createElement("div",{className:At.a.red_box,style:{backgroundColor:"".concat("bg_color"===w.topRed[0].bgType?w.topRed[0].bg_color:w.topRed[0].bg_fill_color||"#BD0000")}},"bg_pic"===w.topRed[0].bgType&&o.a.createElement("div",{style:{backgroundImage:"url(".concat(w.topRed[0].imgUrl,")")}})),o.a.createElement("div",{className:"".concat(At.a.top_box," ").concat(L?At.a.uos_top_box:""," ").concat(t.isShowRed?At.a.no_drag:""," ").concat(S?At.a.top_box_win:""," ").concat(O?At.a.top_box_mac:"")},(null==t?void 0:t.isI18n)?o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{style:{display:"flex",flexGrow:"1",flexWrap:"nowrap",alignItems:"center"}},o.a.createElement(qn,{isVipPage:t.isVipPage,platform:t.platform,showTopHeaderNav:t.showTopHeaderNav,oldStyle:t.oldStyle,isI18n:t.isI18n}),(null==t||null===(E=t.topChannelList)||void 0===E?void 0:E.length)>0&&o.a.createElement(Aa,{showTopHeaderNav:t.showTopHeaderNav,channelList:t.topChannelList,handleChannelClick:t.handleChannelClick,i18nHeader:null==t?void 0:t.i18nHeader,current:t.current,channelType:t.channelType,languageForRequest:t.languageForRequest})),o.a.createElement("div",{className:"".concat(At.a.utils_box)},!(null!=t&&t.noSearch)&&o.a.createElement(yn,{isPaddingMac:O,showTopHeaderNav:t.showTopHeaderNav,searchShort:t.searchShort,isSearchPage:t.isSearchPage,isI18n:null==t?void 0:t.isI18n,i18nHeader:null==t?void 0:t.i18nHeader,isUosMode:L,isVipPage:t.isVipPage}),o.a.createElement(wa,{i18nHeader:null==t?void 0:t.i18nHeader}),o.a.createElement(yo,{setMouseIn:p,logininstance:t.logininstance,isI18n:t.isI18n,i18nHeader:null==t?void 0:t.i18nHeader}),(null==t?void 0:t.showLanguage)&&o.a.createElement(fa,{isI18n:t.isI18n,i18nHeader:null==t?void 0:t.i18nHeader}),o.a.createElement(hr,{setMouseIn:p,logininstance:t.logininstance,crmData:t.vipNewData,userInfo:n,spmAB:t.spmAB,isLogin:c,isVip:s,platform:t.platform}),o.a.createElement(Gn,{mouseIn:d,platform:t.platform,crmData:t.vipData,logininstance:t.logininstance,showTopHeaderNav:t.showTopHeaderNav,loginGuideAllow:t.loginGuideAllow,oldStyle:t.oldStyle,isI18n:t.isI18n,i18nHeader:null==t?void 0:t.i18nHeader}))):o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{style:{display:"flex",flexGrow:"1",flexWrap:"nowrap",alignItems:"center"}},o.a.createElement(qn,{isVipPage:t.isVipPage,platform:t.platform,showTopHeaderNav:t.showTopHeaderNav,oldStyle:t.oldStyle,isCar:t.isCar}),(null==t?void 0:t.isCar)&&t.isShowBack&&o.a.createElement("div",{className:"".concat(At.a.top_header_car," ").concat(t.isShowBack?At.a.top_header_car_nohome:""),onClick:function(){window.history.back()}}),t.topChannelList&&t.topChannelList.length>0&&!t.isCar&&o.a.createElement(Yo,{showTopHeaderNav:t.showTopHeaderNav,channelList:t.topChannelList}),!(null!=t&&t.noSearch)&&o.a.createElement(yn,{isPaddingMac:O,isSearchPage:t.isSearchPage,showTopHeaderNav:t.showTopHeaderNav,searchShort:t.searchShort,setSearchIsFocus:b,isUosMode:L,isCar:t.isCar,isVipPage:t.isVipPage})),!t.isShowRed&&!L&&o.a.createElement(Ln,{logininstance:t.logininstance}),o.a.createElement("div",{className:"".concat(At.a.utils_box)},"win"===(k=t.platform)?o.a.createElement(o.a.Fragment,null,o.a.createElement(yo,{logininstance:t.logininstance}),o.a.createElement(vr,null),o.a.createElement(br,null),o.a.createElement(hr,{logininstance:t.logininstance,crmData:t.vipNewData,userInfo:n,spmAB:t.spmAB,isLogin:c,isVip:s,platform:t.platform}),o.a.createElement(Gn,{platform:t.platform,isShowRed:t.isShowRed,crmData:t.vipData,logininstance:t.logininstance}),o.a.createElement(jr,{isShowRed:t.isShowRed,bus:null==t?void 0:t.bus})):"mac"===k?o.a.createElement(o.a.Fragment,null,o.a.createElement(kr,{bus:null==t?void 0:t.bus}),o.a.createElement(yo,{logininstance:t.logininstance}),o.a.createElement(vr,null),o.a.createElement(br,null),o.a.createElement(hr,{logininstance:t.logininstance,crmData:t.vipNewData,userInfo:n,spmAB:t.spmAB,isLogin:c,isVip:s,platform:t.platform,isMas:t.isMas}),o.a.createElement(Gn,{platform:t.platform,crmData:t.vipData,logininstance:t.logininstance})):o.a.createElement(o.a.Fragment,null,!(null!=t&&t.isCar)&&o.a.createElement(Ro,{setMouseIn:p}),!(null!=t&&t.isCar)&&o.a.createElement(yo,{setMouseIn:p,logininstance:t.logininstance}),o.a.createElement(hr,{setMouseIn:p,logininstance:t.logininstance,crmData:t.vipNewData,userInfo:n,spmAB:t.spmAB,isLogin:c,isVip:s,platform:t.platform}),o.a.createElement(Gn,{mouseIn:d,platform:t.platform,crmData:t.vipData,logininstance:t.logininstance,showTopHeaderNav:t.showTopHeaderNav,loginGuideAllow:t.loginGuideAllow,oldStyle:t.oldStyle,isCar:t.isCar})))))))},Ga=Fa,Ka=n(9),Va=n.n(Ka);function Wa(t,e){return za(t)||Ya(t,e)||Xa(t,e)||qa()}function qa(){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 Xa(t,e){if(t){if("string"==typeof t)return Ja(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ja(t,e):void 0}}function Ja(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Ya(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,i,c=[],l=!0,u=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(c.push(r.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}function za(t){if(Array.isArray(t))return t}function Qa(t){var e=Wa(Object(r.useState)(0),2),n=e[0],a=e[1],i=Wa(Object(r.useState)("absolute"),2),c=i[0],l=i[1],u=Wa(Object(r.useState)(t.navList),2),s=u[0];u[1],Object(r.useEffect)((function(){if(t.UOSMode)l("fixed");else{var e=document.querySelector(".app_normal")&&document.querySelector(".app_normal").getBoundingClientRect().left||0;e<0&&(e=0),a(e),l("fixed"),window.addEventListener("resize",(function(){var t=document.querySelector(".app_normal")&&document.querySelector(".app_normal").getBoundingClientRect().left||0;t<0&&(t=0),a(t)}))}}),[]);var f=function(e){var n,r;if((!t.disableNodeKeys||t.disableNodeKeys.indexOf(e.nodeKey)<0)&&t.setCurrent&&t.setCurrent(e.nodeKey),null!=t&&t.bus&&(null!=t&&t.platform||null!==(n=window)&&void 0!==n&&n.ikuApi||null!==(r=window)&&void 0!==r&&r.ikuWebApi)){var o,a,i,c,l,u=null===(o=window)||void 0===o||null===(a=o.location)||void 0===a||null===(i=a.pathname)||void 0===i||null===(c=i.match(/^\/channel\/([^\/]*)/))||void 0===c?void 0:c[1];(null==e?void 0:e.pathName)!==u&&(null==t||null===(l=t.bus)||void 0===l||l.emit("updatePop"))}t.handleChannelClick(e)};return o.a.createElement("div",{className:"".concat(Va.a.left_header_box," ").concat(t.isShowRed?Va.a.left_header_box_red:""),style:{left:"".concat(n,"px"),position:c}},o.a.createElement("div",{className:"".concat(Va.a.navList_wrap," ").concat(t.isShowRed?Va.a.nav_area_box_red:""),"data-spm":"navList"},o.a.createElement("div",{className:"".concat(Va.a.nav_area_box)},o.a.createElement("div",{className:Va.a.left_nav_box},s&&s.map((function(e,n){return e.url?o.a.createElement("a",{className:"aplus_exp aplus_clk ".concat(Va.a.link_item," ").concat(e.nodeKey===t.current?t.isVipPage?Va.a.current_item_vip:t.isCar?Va.a.current_item_car:Va.a.current_item:""," ").concat(null!=t&&t.isCar?Va.a.link_item_car:""),key:"".concat(e.url,"_").concat(n),href:e.url,target:"_blank","data-spm":"d_".concat(e.url.match(/\/\/(\S*).youku.com/)[1]),onClick:function(){f(e)},rel:"noreferrer"},e.title):o.a.createElement("a",{"data-spm":"d_".concat(e.pathName),key:"".concat(e.pathName,"_").concat(n),href:"javascript:void(0);",className:"aplus_exp aplus_clk ".concat("hy"===e.pathName?Va.a.link_item_vip:Va.a.link_item," ").concat(e.nodeKey===t.current?t.isVipPage?Va.a.current_item_vip:t.isCar?Va.a.current_item_car:Va.a.current_item:""," ").concat(null!=t&&t.isCar?Va.a.link_item_car:""),onClick:function(){f(e)}},e.title)}))))))}var $a=Qa,Za=(n(36),n(17)),ti=n.n(Za);function ei(t){return(ei="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ni(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ri(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ai(r.key),r)}}function oi(t,e,n){return e&&ri(t.prototype,e),n&&ri(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function ai(t){var e=ii(t,"string");return"symbol"==ei(e)?e:e+""}function ii(t,e){if("object"!=ei(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ei(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function ci(t,e,n){return e=fi(e),li(t,si()?Reflect.construct(e,n||[],fi(t).constructor):e.apply(t,n))}function li(t,e){if(e&&("object"==ei(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return ui(t)}function ui(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function si(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(si=function(){return!!t})()}function fi(t){return(fi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function hi(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&di(t,e)}function di(t,e){return(di=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var pi=function(t){function e(t){var n;return ni(this,e),(n=ci(this,e,[t])).state={isShow:!0},n}return hi(e,t),oi(e,[{key:"closeBtn",value:function(t){this.setState({isShow:!1}),de("closeBtn",t,"CLK")}},{key:"componentDidMount",value:function(){de("market_h5",this.props.spmD,"EXP")}},{key:"render",value:function(){var t=this,e=this.state.isShow,n=this.props,r=n.iframeSrc,a=n.spmD;return e&&o.a.createElement("div",{className:ti.a.H5Content},o.a.createElement("div",{className:ti.a.conBox},o.a.createElement("img",{className:ti.a.closeBtn,src:"https://img.alicdn.com/imgextra/i2/O1CN01SfCZWt1UrZ0SRs5gm_!!6000000002571-2-tps-120-120.png",onClick:function(){t.closeBtn(a)}}),o.a.createElement("div",{className:ti.a.bottomMask}),o.a.createElement("div",{className:ti.a.H5Center},o.a.createElement("iframe",{className:ti.a.iframeDom,width:"100%",height:"100%",frameBorder:"0",src:r}))))}}])}(o.a.Component);function mi(t){return(mi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function vi(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Li(r.key),r)}}function gi(t,e,n){return e&&yi(t.prototype,e),n&&yi(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function _i(t,e,n){return e=Ei(e),bi(t,xi()?Reflect.construct(e,n||[],Ei(t).constructor):e.apply(t,n))}function bi(t,e){if(e&&("object"==mi(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return wi(t)}function wi(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function xi(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(xi=function(){return!!t})()}function Ei(t){return(Ei=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ki(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Si(t,e)}function Si(t,e){return(Si=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Oi(t,e,n){return(e=Li(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Li(t){var e=ji(t,"string");return"symbol"==mi(e)?e:e+""}function ji(t,e){if("object"!=mi(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=mi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Ni=function(t){function e(t){var n;return vi(this,e),Oi(n=_i(this,e,[t]),"closeClick",(function(){var t,e;n.setState({isShowAll:!1}),de(null===(t=n.props)||void 0===t||null===(e=t.angleData)||void 0===e?void 0:e.taskId,"corner_close","CLK"),clearTimeout(n.timer)})),Oi(n,"autoClose",(function(){var t=n.props.angleData;0!==(null==t?void 0:t.angle_time)&&(n.timer=setTimeout((function(){"angle_static"===(null==t?void 0:t.angle)?n.setState({isShowAll:!1}):"angle_dynamic"===(null==t?void 0:t.angle)&&n.setState({isAnimation:!1}),de(null==t?void 0:t.taskId,"corner_close","CLK")}),1e3*(null==t?void 0:t.angle_time)))})),Oi(n,"clickHandle",(function(t){"activity"===(null==t?void 0:t.scmType)&&n.setState({isActivity:!0,isShowAll:!1,iframeSrc:null==t?void 0:t.activityUrl}),"login"===(null==t?void 0:t.scmType)&&!n.state.isLogin&&n.props.loginInstance.login(),n.setState({isShowAll:!1}),clearTimeout(n.timer);var e=(null==t?void 0:t.trackInfo)||{};de(null==t?void 0:t.taskId,"angle_static"===(null==t?void 0:t.angle)?"corner":"pop_corner","CLK",JSON.stringify(e))})),Oi(n,"renderA",(function(t){return o.a.createElement("a",{"data-spm":"angle_static"===(null==t?void 0:t.angle)?"d_corner":"d_pop_corner",href:"url"===t.scmType?t.actionUrl:"javascript:void(;:)",target:"url"===t.scmType?"_blank":"_self",rel:"noreferrer"},o.a.createElement("img",{className:"imgStyle ".concat("cashier"===(null==t?void 0:t.scmType)?"youku_vip_pay_btn":""),src:null==t?void 0:t.imgUrl,onClick:function(){n.clickHandle(t)}}))})),Oi(n,"renderClose",(function(t){return o.a.createElement(o.a.Fragment,null,"angle_static"===(null==t?void 0:t.angle)?o.a.createElement("img",{className:"static_close",src:"//img.alicdn.com/tfs/TB1lPFxh4D1gK0jSZFyXXciOVXa-12-12.svg",onClick:n.closeClick}):o.a.createElement("a",{className:"dynamic_close ".concat(n.state.isAnimation?"":"close_animation"),onClick:function(t){return n.closeClick(t)},href:"javaScript:void(0)"},o.a.createElement("span",{className:"closeSpan"},o.a.createElement("img",{src:"//img.alicdn.com/tfs/TB1lPFxh4D1gK0jSZFyXXciOVXa-12-12.svg"}))))})),n.cna="",n.intervalTime=0,n.state={isAnimation:!0,isShowAll:!0,isShowFrist:!1,isActivity:!1,iframeSrc:"",isLogin:!1},n.subscribe=!1,n.timer=null,n}return ki(e,t),gi(e,[{key:"componentDidMount",value:function(){var t,e,n,r,o,a;this.setState({isShowFrist:!0}),this.autoClose();var i=null===(t=this.props)||void 0===t||null===(e=t.angleData)||void 0===e?void 0:e.taskId,c=null===(n=this.props)||void 0===n||null===(r=n.angleData)||void 0===r?void 0:r.angle,l=(null==this||null===(o=this.props)||void 0===o||null===(a=o.angleData)||void 0===a?void 0:a.trackInfo)||{};de(i,"angle_dynamic"===c?"pop_corner":"corner","EXP",JSON.stringify(l)),console.info({alarm_type:"angle-pop",alarm_code:8206,client_msg:{message:"angle-pop"}})}},{key:"componentWillReceiveProps",value:function(t){var e=this;t.loginInstance&&!this.subscribe||!this.props.loginInstance||this.props.loginInstance.eventbusLogin.subscribe((function(t){var n,r,o;e.setState({isLogin:null==t?void 0:t._isLoginStatus}),null!=t&&null!==(n=t._userInfo)&&void 0!==n&&n.loginStatus&&"0"===(null===(r=e.props)||void 0===r||null===(o=r.angleData)||void 0===o?void 0:o.user_identity)&&(e.setState({isShowAll:!1}),clearTimeout(e.timer))})),this.subscribe=!0}},{key:"render",value:function(){var t=this.props.angleData,e=this.state,n=e.isActivity,r=e.iframeSrc;return o.a.createElement(o.a.Fragment,null,n&&o.a.createElement(pi,{iframeSrc:r,spmD:t.taskId}),this.state.isShowAll&&this.state.isShowFrist&&o.a.createElement("div",{className:"angle_box ".concat("angle_dynamic"===(null==t?void 0:t.angle)&&(this.state.isAnimation?"":"dynamic_putAway")),"data-spm":t.taskId},this.renderA(t),this.renderClose(t)))}}])}(r.Component),Ii=(n(37),n(32)),Ci=n.n(Ii);function Ti(t){return(Ti="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Pi(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ai(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Hi(r.key),r)}}function Di(t,e,n){return e&&Ai(t.prototype,e),n&&Ai(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Hi(t){var e=Ri(t,"string");return"symbol"==Ti(e)?e:e+""}function Ri(t,e){if("object"!=Ti(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Ti(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Ui(t,e,n){return e=Gi(e),Mi(t,Fi()?Reflect.construct(e,n||[],Gi(t).constructor):e.apply(t,n))}function Mi(t,e){if(e&&("object"==Ti(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Bi(t)}function Bi(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Fi(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Fi=function(){return!!t})()}function Gi(t){return(Gi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ki(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Vi(t,e)}function Vi(t,e){return(Vi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var Wi=function(t){function e(){return Pi(this,e),Ui(this,e,arguments)}return Ki(e,t),Di(e,[{key:"render",value:function(){var t=this.props.content;return o.a.createElement("div",{className:Ci.a.toastBox},o.a.createElement("p",null,t))}}])}(r.Component),qi=Wi;function Xi(t){return(Xi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ji(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Yi(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ji(Object(n),!0).forEach((function(e){zi(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ji(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function zi(t,e,n){return(e=Qi(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Qi(t){var e=$i(t,"string");return"symbol"==Xi(e)?e:e+""}function $i(t,e){if("object"!=Xi(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Xi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Zi(){Zi=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new N(r||[]);return o(i,"_invoke",{value:S(t,n,c)}),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",d="executing",p="completed",m={};function v(){}function y(){}function g(){}var _={};u(_,i,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(I([])));w&&w!==n&&r.call(w,i)&&(_=w);var x=g.prototype=v.prototype=Object.create(_);function E(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function n(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==Xi(s)&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,i,c)}),(function(t){n("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function S(e,n,r){var o=h;return function(a,i){if(o===d)throw Error("Generator is already running");if(o===p){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var c=r.delegate;if(c){var l=O(c,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=d;var u=f(e,n,r);if("normal"===u.type){if(o=r.done?p:"suspendedYield",u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=p,r.method="throw",r.arg=u.arg)}}}function O(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var a=f(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function I(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(Xi(e)+" is not iterable")}return y.prototype=g,o(x,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:y,configurable:!0}),y.displayName=u(g,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},E(k.prototype),u(k.prototype,c,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new k(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=I,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function tc(t,e,n,r,o,a,i){try{var c=t[a](i),l=c.value}catch(t){return void n(t)}c.done?e(l):Promise.resolve(l).then(r,o)}function ec(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){tc(a,r,o,i,c,"next",t)}function c(t){tc(a,r,o,i,c,"throw",t)}i(void 0)}))}}function nc(t,e){return cc(t)||ic(t,e)||oc(t,e)||rc()}function rc(){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 oc(t,e){if(t){if("string"==typeof t)return ac(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ac(t,e):void 0}}function ac(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function ic(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,i,c=[],l=!0,u=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(c.push(r.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}function cc(t){if(Array.isArray(t))return t}var lc=function(t){var e,n,i,c,u=nc(Object(r.useState)(!1),2),s=u[0],f=u[1],h=nc(Object(r.useState)(!0),2),d=h[0],p=h[1],m=nc(Object(r.useState)(!1),2),v=m[0],y=m[1],g=nc(Object(r.useState)(!1),2),_=g[0],b=g[1],w=nc(Object(r.useState)(""),2),x=w[0],E=w[1],k=Object(r.useRef)(!1),S=Object(r.useRef)(null),O=Object(r.useRef)(!1),L=Object(r.useRef)("");Object(r.useEffect)((function(){t.loginInstance&&!k.current&&(t.loginInstance.eventbusLogin.subscribe((function(e){var n,r,o;f(null==e?void 0:e._isLoginStatus),null!=e&&null!==(n=e._userInfo)&&void 0!==n&&n.loginStatus&&("0"===(null==t||null===(r=t.fullScreenData)||void 0===r?void 0:r.user_identity)&&(p(!1),clearTimeout(S.current)),O.current&&"appointment"===(null==t||null===(o=t.fullScreenData)||void 0===o?void 0:o.scmType)&&(j(),clearTimeout(S.current)))})),k.current=!0)}),[t.loginInstance]),Object(r.useEffect)((function(){var e,n,r;N();var o=null==t||null===(e=t.fullScreenData)||void 0===e?void 0:e.taskId,a=(null==t||null===(n=t.fullScreenData)||void 0===n?void 0:n.trackInfo)||{};"appointment"===t.fullScreenData.scmType&&null!=t&&null!==(r=t.fullScreenData)&&void 0!==r&&r.show&&(a.showId=t.fullScreenData.show),de(o,"full_screen","EXP","",JSON.stringify(a)),console.info({alarm_type:"full-screen-pop",alarm_code:8206,client_msg:{message:"full-screen-pop"}})}),[]);var j=function(){var e=ec(Zi().mark((function e(){var n,r,o,i,c,u,s,f,h,d,m,v;return Zi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return O.current=!1,s=t.fullScreenData,f=t.UOSMode,h={bizId:53,contentId:null==s?void 0:s.show,contentType:"SHOW",deviceType:f?"IKU":"PC",deviceId:Object(a.getCna)()||"XlQcF5xQrCcCAWoLKdGqIOhS",src:f?"iku_fullscreen":"pcweb_fullscreen",serviceVer:2},d={type:"GET",v:"1.2",dataType:"jsonp",data:h},e.prev=5,e.next=8,l.request("mtop.youku.rooster.reservationservice.rerserver",d);case 8:m=e.sent,e.next=14;break;case 11:e.prev=11,e.t0=e.catch(5),m=e.t0;case 14:null!==(n=m)&&void 0!==n&&null!==(r=n.data)&&void 0!==r&&null!==(o=r.model)&&void 0!==o&&o.success||null!==(i=m)&&void 0!==i&&null!==(c=i.ret)&&void 0!==c&&null!==(u=c[0])&&void 0!==u&&u.includes("CONTENT_ID_BEEN_RESERVERED")?L.current="\u9884\u7ea6\u6210\u529f\uff01\u5df2\u653e\u5165\u4e2a\u4eba\u4e2d\u5fc3\u300c\u5728\u8ffd\u9884\u7ea6\u300d":L.current="\u9884\u7ea6\u5931\u8d25\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5",y(!0),p(!1),S.current=setTimeout((function(){(null==s?void 0:s.jumpUrl)&&window.open(s.jumpUrl),window.isReLoad&&window._loginStatus&&window.location.reload(),clearTimeout(S)}),600),v=setTimeout((function(){y(!1),clearTimeout(v)}),3e3);case 19:case"end":return e.stop()}}),e,null,[[5,11]])})));return function(){return e.apply(this,arguments)}}(),N=function(){var e;0!==(null==t||null===(e=t.fullScreenData)||void 0===e?void 0:e.full_time)&&(S.current=setTimeout((function(){var e;p(!1),de(null==t||null===(e=t.fullScreenData)||void 0===e?void 0:e.taskId,"full_screen_close","CLK")}),1e3*t.fullScreenData.full_time))};return o.a.createElement(o.a.Fragment,null,_&&o.a.createElement(pi,{iframeSrc:x,spmD:null===(e=t.fullScreenData)||void 0===e?void 0:e.taskId}),d&&o.a.createElement("div",{className:"full_wrap"},o.a.createElement("div",{className:"full_box","data-spm":null==t?void 0:t.fullScreenData.taskId},o.a.createElement("a",{className:"cashier"===(null==t?void 0:t.fullScreenData.scmType)?"youku_vip_pay_btn":"","data-spm":"d_full_screen",href:"url"===(null==t?void 0:t.fullScreenData.scmType)?null==t?void 0:t.fullScreenData.actionUrl:"javascript:void(;:)",target:"url"===(null==t?void 0:t.fullScreenData.scmType)?"_blank":"_self","data-tag":null==t||null===(n=t.fullScreenData)||void 0===n||null===(i=n.trackInfo)||void 0===i?void 0:i.benefit_id,rel:"noreferrer"},o.a.createElement("img",{src:null==t||null===(c=t.fullScreenData)||void 0===c?void 0:c.imgUrl,onClick:function(){!function(e){var n;"activity"===(null==e?void 0:e.scmType)&&(b(!0),E((null==e?void 0:e.activityUrl)||"")),"login"===(null==e?void 0:e.scmType)&&!s&&t.loginInstance.login(),"appointment"===(null==e?void 0:e.scmType)&&(s?j():(O.current=!0,window.isReLoad&&(window._loginStatus=!0),null==t||null===(n=t.loginInstance)||void 0===n||n.login(),clearTimeout(S.current))),p(!1),function(t){clearTimeout(S.current);var e=(null==t?void 0:t.trackInfo)||{};"appointment"===t.scmType&&null!=t&&t.show&&(e=Yi(Yi({},e),{},{showId:t.show})),de(t.taskId,"full_screen","CLK","",JSON.stringify(e))}(e)}(null==t?void 0:t.fullScreenData)}})),o.a.createElement("img",{className:"full_close",src:"//img.alicdn.com/tfs/TB1lPFxh4D1gK0jSZFyXXciOVXa-12-12.svg",onClick:function(){var e;p(!1),de(null==t||null===(e=t.fullScreenData)||void 0===e?void 0:e.taskId,"full_screen_close","CLK"),clearTimeout(S.current)}}))),v&&o.a.createElement(qi,{content:L.current}))},uc=lc;function sc(t){return(sc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function fc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function hc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?fc(Object(n),!0).forEach((function(e){Ec(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fc(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function dc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,kc(r.key),r)}}function mc(t,e,n){return e&&pc(t.prototype,e),n&&pc(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function vc(t,e,n){return e=bc(e),yc(t,_c()?Reflect.construct(e,n||[],bc(t).constructor):e.apply(t,n))}function yc(t,e){if(e&&("object"==sc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return gc(t)}function gc(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(_c=function(){return!!t})()}function bc(t){return(bc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function wc(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&xc(t,e)}function xc(t,e){return(xc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Ec(t,e,n){return(e=kc(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function kc(t){var e=Sc(t,"string");return"symbol"==sc(e)?e:e+""}function Sc(t,e){if("object"!=sc(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=sc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}n(38);var Oc=function(t){function e(t){var n;return dc(this,e),Ec(n=vc(this,e,[t]),"autoClose",(function(t){0!==(null==t?void 0:t.pic_time)&&(n.timer=setTimeout((function(){n.setState({isShowAll:!1}),de(t&&t.taskId,"trumpet_close","CLK")}),1e3*t.pic_time))})),n.state={isShowAll:!0,picInPicData:{}},n.timer=null,n}return wc(e,t),mc(e,[{key:"componentDidMount",value:function(){var t,e,n=this.props.picInPicData,r={};n&&(r=hc(hc({},n),{},{liveUrl:n.liveUrl,jumpUrl:n.actionUrl,gray:n.gray,endTime:n.endTime,startTime:n.startTime,title:n.title,autoDisable:n.autoDisable,liveUUID:n.liveUUID,iframeStyle:{height:n.iframeHeight,width:n.iframeWidth,marginTop:n.iframeMarginTop},bgStyle:{height:n.bgHeight,width:n.bgWidth,bottom:n.bgBottom,left:n.bgRight,backgroundImage:n.imgUrl,boxShadow:n.boxShadow},closeBtStyle:{right:n.closeRight,top:n.closeTop},flagExpiresTime:n.flagExpiresTime,markText:n.markText,markBgColor:n.markBgColor,isCloseLive:n.isCloseLive,isShowOnceTime:n.isShowOnceTime,taskId:n.taskId,UUID:n.UUID})),r&&this.setState({picInPicData:r}),this.autoClose(r);var o=(null===(t=r)||void 0===t?void 0:t.trackInfo)||{};de(null===(e=r)||void 0===e?void 0:e.taskId,"trumpet","EXP",JSON.stringify(o))}},{key:"componentWillReceiveProps",value:function(t){var e,n,r=this;t.loginInstance&&!this.subscribe||!this.props.loginInstance||null===(e=this.props.loginInstance)||void 0===e||null===(n=e.eventbusLogin)||void 0===n||n.subscribe((function(t){var e,n,o;null!=t&&null!==(e=t._userInfo)&&void 0!==e&&e.loginStatus&&"0"===(null===(n=r.state)||void 0===n||null===(o=n.picInPicData)||void 0===o?void 0:o.user_identity)&&(r.setState({isShowAll:!1}),clearTimeout(r.timer))})),this.subscribe=!0}},{key:"jumpToTargetUrl",value:function(){var t,e,n,r,o=this.state.picInPicData,a=o.jumpUrl,i=o.isCloseLive,c=o.taskId;(null===(t=navigator)||void 0===t||null===(e=t.userAgent)||void 0===e?void 0:e.indexOf("YoukuDesktop"))>-1?location.href=a:window.open("about:blank").location.href=a;var l=(null===(n=this.props)||void 0===n||null===(r=n.picInPicData)||void 0===r?void 0:r.trackInfo)||{};de(!!c&&c,"trumpet","CLK",JSON.stringify(l)),i&&this.closeLiveWindow()}},{key:"closeLiveWindow",value:function(){var t,e;this.setState({isShowAll:!1}),de(null===(t=this.state)||void 0===t||null===(e=t.picInPicData)||void 0===e?void 0:e.taskId,"trumpet_close","CLK"),clearTimeout(this.timer)}},{key:"render",value:function(){var t=this,e=this.state.picInPicData,n=e.bgStyle,r=e.closeBtStyle,a=e.title,i=e.iframeStyle,c=e.markBgColor,l=e.markText,u=e.liveUrl,s={};return n&&(s=hc(hc({},n),{},{backgroundImage:"url(".concat(n.backgroundImage,")"),boxShadow:"0px 15px 10px -15px ".concat(n.boxShadow||"#FD0054"),backgroundSize:"".concat(n.width," ").concat(n.height)})),this.state.isShowAll&&this.state.picInPicData&&this.props.picInPicData&&o.a.createElement("div",{className:"live-bg",style:this.props.picInPicData.silence_switch?hc({},{width:"1px",height:"1px",bottom:"0",left:"0",backgroundColor:"transparent"}):s&&hc({},s)},o.a.createElement("a",{href:"javascript:void:;",className:"close-bt-wrap",style:r&&hc({},r)},o.a.createElement("img",{src:"//img.alicdn.com/tfs/TB1wCeQgYr1gK0jSZR0XXbP8XXa-36-36.png",onClick:function(){return t.closeLiveWindow()}})),o.a.createElement("div",{className:"live-wrap",style:i&&hc({},i)},o.a.createElement("a",{draggable:!1,className:"title",href:"javascript:void(0)",onMouseUp:function(){return t.jumpToTargetUrl()}},a),o.a.createElement("iframe",{src:u,width:i&&i.width,height:i&&i.height,frameBorder:0}),o.a.createElement("a",{draggable:!1,className:"shade",style:{width:i&&i.width,height:i&&i.height},target:"_blank",onMouseUp:function(){return t.jumpToTargetUrl()}},o.a.createElement("div",{className:"mark",style:{backgroundColor:c||"#FC4273"}},l||"\u76f4\u64ad"))))}}])}(r.Component);function Lc(t){return(Lc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function jc(){jc=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new N(r||[]);return o(i,"_invoke",{value:S(t,n,c)}),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",d="executing",p="completed",m={};function v(){}function y(){}function g(){}var _={};u(_,i,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(I([])));w&&w!==n&&r.call(w,i)&&(_=w);var x=g.prototype=v.prototype=Object.create(_);function E(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function n(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==Lc(s)&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,i,c)}),(function(t){n("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function S(e,n,r){var o=h;return function(a,i){if(o===d)throw Error("Generator is already running");if(o===p){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var c=r.delegate;if(c){var l=O(c,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=d;var u=f(e,n,r);if("normal"===u.type){if(o=r.done?p:"suspendedYield",u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=p,r.method="throw",r.arg=u.arg)}}}function O(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var a=f(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function I(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(Lc(e)+" is not iterable")}return y.prototype=g,o(x,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:y,configurable:!0}),y.displayName=u(g,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},E(k.prototype),u(k.prototype,c,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new k(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=I,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function Nc(t,e,n,r,o,a,i){try{var c=t[a](i),l=c.value}catch(t){return void n(t)}c.done?e(l):Promise.resolve(l).then(r,o)}function Ic(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){Nc(a,r,o,i,c,"next",t)}function c(t){Nc(a,r,o,i,c,"throw",t)}i(void 0)}))}}function Cc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Tc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Cc(Object(n),!0).forEach((function(e){Pc(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Cc(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Pc(t,e,n){return(e=Ac(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ac(t){var e=Dc(t,"string");return"symbol"==Lc(e)?e:e+""}function Dc(t,e){if("object"!=Lc(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Lc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Hc(t,e){return Fc(t)||Bc(t,e)||Uc(t,e)||Rc()}function Rc(){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 Uc(t,e){if(t){if("string"==typeof t)return Mc(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mc(t,e):void 0}}function Mc(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Bc(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,i,c=[],l=!0,u=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(c.push(r.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}function Fc(t){if(Array.isArray(t))return t}n(39);var Gc=function(t){var e,n,i,c,u=Hc(Object(r.useState)(!0),2),s=u[0],f=u[1],h=Hc(Object(r.useState)(!1),2),d=h[0],p=h[1],m=Hc(Object(r.useState)(!1),2),v=m[0],y=m[1],g=Hc(Object(r.useState)(!1),2),_=g[0],b=g[1],w=Object(r.useRef)(!1),x=Object(r.useRef)(!1),E=Object(r.useRef)(null),k=Object(r.useRef)(""),S=Object(r.useRef)(null==t||null===(e=t.bubbleData)||void 0===e?void 0:e.taskId),O=Object(r.useRef)((null==t||null===(n=t.bubbleData)||void 0===n?void 0:n.trackInfo)||{});"appointment"===(null==t||null===(i=t.bubbleData)||void 0===i?void 0:i.scmType)&&null!=t&&null!==(c=t.bubbleData)&&void 0!==c&&c.show&&(O.current=Tc(Tc({},O.current),{},{showId:t.bubbleData.show})),Object(r.useEffect)((function(){L()}),[]),Object(r.useEffect)((function(){null!=t&&t.loginInstance&&!w.current&&t.loginInstance.eventbusLogin.subscribe((function(t){y(null==t?void 0:t._isLoginStatus),null!=t&&t._isLoginStatus&&"goBubbleReserve"===t._loginExtend&&!x.current&&(x.current=!0,j())})),w.current=!0}),[t.loginInstance]);var L=function(){N(),S.current&&de(S.current,"bubble","EXP","",JSON.stringify(O.current)),S.current&&de(S.current,"bubble_close","EXP","",JSON.stringify(O.current)),console.info({alarm_type:"bubble-pop",alarm_code:8206,client_msg:{message:"bubble-pop"}})},j=function(){var e=Ic(jc().mark((function e(){var n,r,o,i,c,u,s,h,d,p,m,v;return jc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=t.bubbleData,h=t.UOSMode,d={bizId:53,contentId:null==s?void 0:s.show,contentType:"SHOW",deviceId:Object(a.getCna)()||"XlQcF5xQrCcCAWoLKdGqIOhS",deviceType:h?"IKU":"PC",src:h?"iku_bubble":"pcweb_bubble",serviceVer:2},p={type:"GET",v:"1.2",dataType:"jsonp",data:d},e.prev=4,e.next=7,l.request("mtop.youku.rooster.reservationservice.rerserver",p);case 7:m=e.sent,e.next=13;break;case 10:e.prev=10,e.t0=e.catch(4),m=e.t0;case 13:null!==(n=m)&&void 0!==n&&null!==(r=n.data)&&void 0!==r&&null!==(o=r.model)&&void 0!==o&&o.success||null!==(i=m)&&void 0!==i&&null!==(c=i.ret)&&void 0!==c&&null!==(u=c[0])&&void 0!==u&&u.includes("CONTENT_ID_BEEN_RESERVERED")?k.current="\u9884\u7ea6\u6210\u529f\uff01\u5185\u5bb9\u4e0a\u7ebf\u4f1a\u5728\u624b\u673a\u7aef\u901a\u77e5\u4f60\u54e6~":k.current="\u9884\u7ea6\u5931\u8d25\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5\uff01",b(!0),f(!1),E.current=setTimeout((function(){(null==s?void 0:s.jumpUrl)&&window.open(s.jumpUrl),window.isReLoad&&window._loginStatus&&window.location.reload(),clearTimeout(E.current)}),600),v=setTimeout((function(){b(!1),clearTimeout(v)}),3e3);case 18:case"end":return e.stop()}}),e,null,[[4,10]])})));return function(){return e.apply(this,arguments)}}(),N=function(){var e=t.bubbleData;null!=e&&e.autoClose&&0!==(null==e?void 0:e.autoCloseTime)&&(E.current=setTimeout((function(){p(!0)}),1e3*e.autoCloseTime+600))},I=null==t?void 0:t.bubbleData,C=I.btnColor,T=void 0===C?"#00A9F5":C,P=I.btnMessage,A=I.imgUrl,D=I.subtitleMessage,H=I.titleMessageSmall,R=I.contentLogo,U=I.darkContentLogo;return o.a.createElement(o.a.Fragment,null,s&&o.a.createElement("div",{className:"bubble-wrap".concat(d?" out":""),onAnimationEnd:function(){var e,n;d&&(p(!1),f(!1),(null==t||null===(e=t.bubbleData)||void 0===e||!e.autoClose)&&de(null==t||null===(n=t.bubbleData)||void 0===n?void 0:n.taskId,"bubble_close","CLK"))}},o.a.createElement("div",{className:"bubble-bg",style:{backgroundColor:T}}),o.a.createElement("dl",null,o.a.createElement("img",{src:A,alt:D||H})),o.a.createElement("dt",null,o.a.createElement("img",{className:H&&"bubble-logo",src:R||U,alt:D||H}),H&&o.a.createElement("h4",null,H),o.a.createElement("p",{className:H&&"bubble-subtitle"},D)),o.a.createElement("a",{"data-spm":"d_bubble",className:"bubble-btn",href:"javascript:void(0);",style:{backgroundColor:T},onClick:function(){var e,n,r;e=t.bubbleData,n=t.loginInstance,r=(e||{}).scmType,S.current&&de(S.current,"bubble","CLK","",JSON.stringify(O.current)),"appointment"===r?v?j():(null==n||n.login({extend:"goBubbleReserve"}),clearTimeout(E.current)):"jump"===r&&(null==e?void 0:e.jumpUrl)&&window.open(e.jumpUrl,"_blank")}},P),o.a.createElement("a",{className:"bubble-exit",href:"javascript:void(0);",onClick:function(){p(!0)}},"\u5173\u95ed")),_&&o.a.createElement(qi,{content:k.current}))},Kc=Gc;function Vc(t,e){return Yc(t)||Jc(t,e)||qc(t,e)||Wc()}function Wc(){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 qc(t,e){if(t){if("string"==typeof t)return Xc(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xc(t,e):void 0}}function Xc(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Jc(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,i,c=[],l=!0,u=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(c.push(r.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}function Yc(t){if(Array.isArray(t))return t}var zc=function(t){var e=Vc(Object(r.useState)(null),2),n=e[0],i=e[1];Object(r.useEffect)((function(){var e;(null===(e=t.popData)||void 0===e?void 0:e.length)>0&&Object.keys(t.userInfo).length>0&&i(c(t.popData))}),[t.popData,t.userInfo]);var c=function(e){var n=e||[],r=Object(a.getQueryString)("rid");Object(a.getQueryString)("useRid")&&r&&(n=n.filter((function(t){return t.rule.includes(r)})));for(var o=null,i=0;i<n.length;i++){var c=n[i];if(kt(c,t.userInfo,t.rid)){o=c;break}}return o};return o.a.createElement("div",null,n&&function(){if(n)switch(null==n?void 0:n.poplayerType){case"full_screen":return o.a.createElement(uc,{fullScreenData:n,loginInstance:t.logininstance,isLogin:t.userInfo.loginStatus,UOSMode:t.UOSMode});case"on_corner":return o.a.createElement(Ni,{angleData:n,loginInstance:t.logininstance,isLogin:t.userInfo.loginStatus});case"bubble":return o.a.createElement(Kc,{bubbleData:n,loginInstance:t.logininstance,isLogin:t.userInfo.loginStatus,UOSMode:t.UOSMode});case"pic_in_pic":return o.a.createElement(Oc,{picInPicData:n,loginInstance:t.logininstance,isLogin:t.userInfo.loginStatus})}return null}())},Qc=zc,$c=(n(40),n(41),n(33)),Zc=n.n($c);function tl(t){return(tl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function el(){el=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new N(r||[]);return o(i,"_invoke",{value:S(t,n,c)}),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",d="executing",p="completed",m={};function v(){}function y(){}function g(){}var _={};u(_,i,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(I([])));w&&w!==n&&r.call(w,i)&&(_=w);var x=g.prototype=v.prototype=Object.create(_);function E(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function n(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==tl(s)&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,i,c)}),(function(t){n("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function S(e,n,r){var o=h;return function(a,i){if(o===d)throw Error("Generator is already running");if(o===p){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var c=r.delegate;if(c){var l=O(c,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=d;var u=f(e,n,r);if("normal"===u.type){if(o=r.done?p:"suspendedYield",u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=p,r.method="throw",r.arg=u.arg)}}}function O(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var a=f(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function I(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(tl(e)+" is not iterable")}return y.prototype=g,o(x,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:y,configurable:!0}),y.displayName=u(g,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},E(k.prototype),u(k.prototype,c,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new k(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=I,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function nl(t,e,n,r,o,a,i){try{var c=t[a](i),l=c.value}catch(t){return void n(t)}c.done?e(l):Promise.resolve(l).then(r,o)}function rl(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){nl(a,r,o,i,c,"next",t)}function c(t){nl(a,r,o,i,c,"throw",t)}i(void 0)}))}}function ol(t,e){return ul(t)||ll(t,e)||il(t,e)||al()}function al(){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 il(t,e){if(t){if("string"==typeof t)return cl(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cl(t,e):void 0}}function cl(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function ll(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,i,c=[],l=!0,u=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(c.push(r.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}function ul(t){if(Array.isArray(t))return t}var sl=function(t){var e,n,i,c,l,u,s,f=ol(Object(r.useState)(null),2),h=f[0],d=f[1],p=ol(Object(r.useState)({}),2),m=p[0],v=p[1],y=ol(Object(r.useState)({}),2),g=y[0],_=y[1],b=ol(Object(r.useState)({}),2),w=b[0],k=b[1],S=ol(Object(r.useState)({}),2),O=S[0],L=S[1],j=ol(Object(r.useState)(!1),2),N=j[0],I=j[1],C=ol(Object(r.useState)({}),2),T=C[0],P=C[1],A=Tt((function(t){return t.setIsI18n})),D=ol(Object(r.useState)(!1),2),H=D[0],R=D[1],U=ol(Object(r.useState)([]),2),M=U[0],B=U[1],F=ol(Object(r.useState)(t.pathName),2),G=F[0],K=F[1],V=t.festivalConfig&&t.festivalConfig.scmAB||"",W=t.festivalConfig&&t.festivalConfig.adConfig&&t.festivalConfig.adConfig.adpid,q=V&&"".concat(V,".topAd.content_").concat(W)||"",X=function(){var t="1",e=navigator.userAgent.toLowerCase();return e.match("youkudesktop")&&(t="2",e.match("mac")&&e.match("channel appstore")&&(t="32")),t},J=function(){var e=rl(el().mark((function e(){var n,r,o,i,c,l,u,s,f,h,d;return el().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=Object(a.getCna)(),i=Object(a.getPid)(),c={},l={touch_point_code:null!=t&&null!==(n=t.i18n)&&void 0!==n&&n.isI18n?"PC_youkuoverseas_navigation_avatar":"nucenter_page_pc",device_id:X(),cna:o},i&&(c.ykPid=i),null!=t&&null!==(r=t.i18n)&&void 0!==r&&r.isI18n&&(c.language=(null==t||null===(u=t.i18n)||void 0===u?void 0:u.languageForRequest)||"EN",c.apptype="youku_intl",c.countryCode=null==t||null===(s=t.i18n)||void 0===s?void 0:s.countryCode,c.countryCodeNO=null==t||null===(f=t.i18n)||void 0===f?void 0:f.countryCodeNO,c.tradeCurrency=null==t||null===(h=t.i18n)||void 0===h?void 0:h.tradeCurrency),Object.keys(c).length>0&&(l.ext_map=JSON.stringify(c)),e.next=9,Z(l,i);case 9:return(d=e.sent)&&_(d||{}),e.abrupt("return",d);case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Y=function(){var e=rl(el().mark((function e(){var n,r,o,i,c,l,u,s,f,h,d;return el().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=Object(a.getCna)(),i=Object(a.getPid)(),c={},l={touch_point_code:null!=t&&null!==(n=t.i18n)&&void 0!==n&&n.isI18n?"PC_youkuoverseas_navigation_vipicon":"pc_home_vipicon",device_id:X(),cna:o},i&&(c.ykPid=i),null!=t&&null!==(r=t.i18n)&&void 0!==r&&r.isI18n&&(c.language=(null==t||null===(u=t.i18n)||void 0===u?void 0:u.languageForRequest)||"EN",c.apptype="youku_intl",c.countryCode=null==t||null===(s=t.i18n)||void 0===s?void 0:s.countryCode,c.countryCodeNO=null==t||null===(f=t.i18n)||void 0===f?void 0:f.countryCodeNO,c.tradeCurrency=null==t||null===(h=t.i18n)||void 0===h?void 0:h.tradeCurrency),Object.keys(c).length>0&&(l.ext_map=JSON.stringify(c)),e.next=9,Z(l,i);case 9:return(d=e.sent)&&k(d||{}),e.abrupt("return",d);case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),z=function(){var t=rl(el().mark((function t(){var e;return el().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,et();case 2:e=t.sent,L(e);case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return Object(r.useEffect)((function(){var e,n,r,o,a,i,c=new x(null==t||null===(e=t.i18n)||void 0===e?void 0:e.isI18n);d(c),window.yklogininstance=c,t.getLoginInstance&&t.getLoginInstance(c),c&&c.eventbusLogin.subscribe((function(e){if(e.userInfo){if(P(e.userInfo),t.hideAll)return;e.isLoginStatus&&!H&&(J(),Y(),R(!0))}})),window.isPayJSLoad||E("//g.alicdn.com/youkuvip_fe/vip-public-assets/pay/pay.js"),t.hideAll||((null==t||null===(n=t.i18n)||void 0===n||!n.isI18n)&&z(),J(),Y(),o=(r=document.querySelector('meta[name="data-spm"]'))&&String(r.getAttribute("content"))||"",i=(a=document.querySelector("body"))&&String(a.getAttribute("data-spm"))||"",v({spmA:o,spmB:i}),W&&de("topAd","ad_".concat(W),"EXP",q))}),[]),Object(r.useEffect)((function(){var e;t.pathName!==G&&(L({}),(null==t||null===(e=t.i18n)||void 0===e||!e.isI18n)&&z(),K(t.pathName))}),[t.pathName]),Object(r.useEffect)((function(){var e,n;null!=t&&t.bus&&(null!=t&&t.platform||null!==(e=window)&&void 0!==e&&e.ikuApi||null!==(n=window)&&void 0!==n&&n.ikuWebApi)&&t.bus.on("updatePop",(function(){L({}),z()}))}),[]),Object(r.useEffect)((function(){rl(el().mark((function e(){var n,r,o,a;return el().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.showTopHeaderNav){e.next=17;break}if(r=[],null==t||null===(n=t.i18n)||void 0===n||!n.isI18n){e.next=13;break}if(null==t||!t.navList){e.next=7;break}e.t0=t.navList,e.next=10;break;case 7:return e.next=9,rt((null==t||null===(o=t.i18n)||void 0===o?void 0:o.mtopBizKey)||(null==t?void 0:t.bizKey)||"i18n_WEB_EN",t.channelId||"",(null==t||null===(a=t.i18n)||void 0===a?void 0:a.languageForRequest)||"");case 9:e.t0=e.sent;case 10:r=e.t0,e.next=16;break;case 13:return e.next=15,rt();case 15:r=e.sent;case 16:r&&B(r||[]);case 17:case"end":return e.stop()}}),e)})))()}),[t.showTopHeaderNav]),Object(r.useEffect)((function(){if(Array.isArray(O.topRed)&&O.topRed.length>0){var e=kt(O.topRed[0],T,t.rid);if(e){var n=document.querySelector(".app_normal");n&&(n.style.marginTop="".concat(70,"px")),t.UOSMode&&(document.querySelector("#root").className="iku_red")}I(e)}}),[O]),Object(r.useEffect)((function(){var e;A(null==t||null===(e=t.i18n)||void 0===e?void 0:e.isI18n)}),[]),o.a.createElement("div",null,!(null!=t&&null!==(e=t.i18n)&&void 0!==e&&e.isI18n)&&!(null!=t&&t.isCar)&&(s=t.festivalConfig,o.a.createElement(o.a.Fragment,null,s&&s.adConfig&&s.adConfig.adpid&&o.a.createElement("div",{className:Zc.a.adWrap,style:s.adConfig.style,"data-adpid":s.adConfig.adpid,"data-adext":s.adConfig.adext,onClick:function(){de("topAd","ad_".concat(W),"CLK",q)}}))),o.a.createElement(Ga,{logininstance:h,popData:O,isShowRed:N,theme:t.theme,platform:t.platform,isMas:t.isMas,macFullScreen:t.macFullScreen,scrollClass:t.scrollClass,spmAB:m,vipData:g,vipNewData:w,isVipPage:t.isVipPage,showTopHeaderNav:t.showTopHeaderNav,searchShort:t.searchShort,loginGuideAllow:t.loginGuideAllow,topChannelList:M,oldStyle:t.oldStyle,festivalConfig:t.festivalConfig,isI18n:null==t||null===(n=t.i18n)||void 0===n?void 0:n.isI18n,languageForRequest:null==t||null===(i=t.i18n)||void 0===i?void 0:i.languageForRequest,i18nHeader:(null==t||null===(c=t.i18n)||void 0===c||null===(l=c.data)||void 0===l?void 0:l.pcData)||{},handleChannelClick:t.handleChannelClick,current:t.current,UOSMode:t.UOSMode,channelType:null==t?void 0:t.channelType,showLanguage:null==t?void 0:t.showLanguage,isSearchPage:null==t?void 0:t.isSearchPage,isCar:null==t?void 0:t.isCar,isShowBack:null==t?void 0:t.isShowBack,noSearch:null==t?void 0:t.noSearch,bus:t.bus}),!t.hideLeftHeader&&o.a.createElement($a,{logininstance:h,theme:t.theme,spmAB:m,platform:t.platform,navList:t.navList,filterUrl:t.filterUrl,current:t.current,setCurrent:t.handleSetCurrent,disableNodeKeys:t.disableNodeKeys,isShowRed:N,handleChannelClick:t.handleChannelClick,isVipPage:t.isVipPage,UOSMode:t.UOSMode,bus:t.bus,isCar:null==t?void 0:t.isCar}),(null==O||null===(u=O.popData)||void 0===u?void 0:u.length)>0&&o.a.createElement(Qc,{logininstance:h,popData:O.popData,userInfo:T,rid:t.rid,UOSMode:t.UOSMode}))};sl.defaultProps={showLanguage:!0},e.default=sl}])}}]);