chunk-a982c72c.92904edc.js 27 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a982c72c"],{"0fd9":function(t,e,i){"use strict";i("4b85");var n=i("2b0e"),s=i("d9f7"),r=i("80d2");const a=["sm","md","lg","xl"],o=["start","end","center"];function l(t,e){return a.reduce((i,n)=>(i[t+Object(r["E"])(n)]=e(),i),{})}const c=t=>[...o,"baseline","stretch"].includes(t),u=l("align",()=>({type:String,default:null,validator:c})),d=t=>[...o,"space-between","space-around"].includes(t),h=l("justify",()=>({type:String,default:null,validator:d})),g=t=>[...o,"space-between","space-around","stretch"].includes(t),p=l("alignContent",()=>({type:String,default:null,validator:g})),f={align:Object.keys(u),justify:Object.keys(h),alignContent:Object.keys(p)},v={align:"align",justify:"justify",alignContent:"align-content"};function m(t,e,i){let n=v[t];if(null!=i){if(e){const i=e.replace(t,"");n+="-"+i}return n+="-"+i,n.toLowerCase()}}const b=new Map;e["a"]=n["default"].extend({name:"v-row",functional:!0,props:{tag:{type:String,default:"div"},dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:c},...u,justify:{type:String,default:null,validator:d},...h,alignContent:{type:String,default:null,validator:g},...p},render(t,{props:e,data:i,children:n}){let r="";for(const s in e)r+=String(e[s]);let a=b.get(r);if(!a){let t;for(t in a=[],f)f[t].forEach(i=>{const n=e[i],s=m(t,i,n);s&&a.push(s)});a.push({"no-gutters":e.noGutters,"row--dense":e.dense,["align-"+e.align]:e.align,["justify-"+e.justify]:e.justify,["align-content-"+e.alignContent]:e.alignContent}),b.set(r,a)}return t(e.tag,Object(s["a"])(i,{staticClass:"row",class:a}),n)}})},"129f":function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e}},"132d":function(t,e,i){"use strict";i("4804");var n,s=i("7e2b"),r=i("a9ad"),a=i("af2b"),o=i("7560"),l=i("80d2"),c=i("2b0e"),u=i("58df");function d(t){return["fas","far","fal","fab","fad"].some(e=>t.includes(e))}function h(t){return/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\dz]$/i.test(t)&&t.length>4}(function(t){t["xSmall"]="12px",t["small"]="16px",t["default"]="24px",t["medium"]="28px",t["large"]="36px",t["xLarge"]="40px"})(n||(n={}));const g=Object(u["a"])(s["a"],r["a"],a["a"],o["a"]).extend({name:"v-icon",props:{dense:Boolean,disabled:Boolean,left:Boolean,right:Boolean,size:[Number,String],tag:{type:String,required:!1,default:"i"}},computed:{medium(){return!1},hasClickListener(){return Boolean(this.listeners$.click||this.listeners$["!click"])}},methods:{getIcon(){let t="";return this.$slots.default&&(t=this.$slots.default[0].text.trim()),Object(l["B"])(this,t)},getSize(){const t={xSmall:this.xSmall,small:this.small,medium:this.medium,large:this.large,xLarge:this.xLarge},e=Object(l["y"])(t).find(e=>t[e]);return e&&n[e]||Object(l["g"])(this.size)},getDefaultData(){return{staticClass:"v-icon notranslate",class:{"v-icon--disabled":this.disabled,"v-icon--left":this.left,"v-icon--link":this.hasClickListener,"v-icon--right":this.right,"v-icon--dense":this.dense},attrs:{"aria-hidden":!this.hasClickListener,disabled:this.hasClickListener&&this.disabled,type:this.hasClickListener?"button":void 0,...this.attrs$},on:this.listeners$}},getSvgWrapperData(){const t=this.getSize(),e={...this.getDefaultData(),style:t?{fontSize:t,height:t,width:t}:void 0};return this.applyColors(e),e},applyColors(t){t.class={...t.class,...this.themeClasses},this.setTextColor(this.color,t)},renderFontIcon(t,e){const i=[],n=this.getDefaultData();let s="material-icons";const r=t.indexOf("-"),a=r<=-1;a?i.push(t):(s=t.slice(0,r),d(s)&&(s="")),n.class[s]=!0,n.class[t]=!a;const o=this.getSize();return o&&(n.style={fontSize:o}),this.applyColors(n),e(this.hasClickListener?"button":this.tag,n,i)},renderSvgIcon(t,e){const i=this.getSize(),n={class:"v-icon__svg",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:i||"24",width:i||"24",role:"img","aria-hidden":!0}};return e(this.hasClickListener?"button":"span",this.getSvgWrapperData(),[e("svg",n,[e("path",{attrs:{d:t}})])])},renderSvgIconComponent(t,e){const i={class:{"v-icon__svg":!0}},n=this.getSize();n&&(i.style={fontSize:n,height:n,width:n}),this.applyColors(i);const s=t.component;return i.props=t.props,i.nativeOn=i.on,e(this.hasClickListener?"button":"span",this.getSvgWrapperData(),[e(s,i)])}},render(t){const e=this.getIcon();return"string"===typeof e?h(e)?this.renderSvgIcon(e,t):this.renderFontIcon(e,t):this.renderSvgIconComponent(e,t)}});e["a"]=c["default"].extend({name:"v-icon",$_wrapperFor:g,functional:!0,render(t,{data:e,children:i}){let n="";return e.domProps&&(n=e.domProps.textContent||e.domProps.innerHTML||n,delete e.domProps.textContent,delete e.domProps.innerHTML),t(g,e,n?[n]:i)}})},"14c3":function(t,e,i){var n=i("c6b6"),s=i("9263");t.exports=function(t,e){var i=t.exec;if("function"===typeof i){var r=i.call(t,e);if("object"!==typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==n(t))throw TypeError("RegExp#exec called on incompatible receiver");return s.call(t,e)}},"17b3":function(t,e,i){},"24b2":function(t,e,i){"use strict";var n=i("80d2"),s=i("2b0e");e["a"]=s["default"].extend({name:"measurable",props:{height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},computed:{measurableStyles(){const t={},e=Object(n["g"])(this.height),i=Object(n["g"])(this.minHeight),s=Object(n["g"])(this.minWidth),r=Object(n["g"])(this.maxHeight),a=Object(n["g"])(this.maxWidth),o=Object(n["g"])(this.width);return e&&(t.height=e),i&&(t.minHeight=i),s&&(t.minWidth=s),r&&(t.maxHeight=r),a&&(t.maxWidth=a),o&&(t.width=o),t}}})},3408:function(t,e,i){},"36a7":function(t,e,i){},"371f":function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticStyle:{width:"320px"}},[i("router-link",{attrs:{to:"/video/"+t.videoInfo.videoId}},[i("div",{staticStyle:{position:"relative",width:"320px",height:"180px"}},[i("v-img",{attrs:{src:t.videoInfo.coverUrl,outlined:"","aspect-ratio":"1.77"}}),i("span",{staticStyle:{position:"absolute",bottom:"0",right:"0",color:"red"}},[t._v(t._s(t.videoInfo.duration))])],1)]),i("v-row",[i("v-col",{attrs:{cols:"2"}},[null!==t.videoInfo.userId?i("router-link",{attrs:{to:"/u/"+t.videoInfo.userId}},[i("v-avatar",{attrs:{size:"48"}},[i("v-img",{attrs:{src:t.videoInfo.avatarUrl}})],1)],1):t._e()],1),i("v-col",{attrs:{cols:"10"}},[i("p",{staticStyle:{"font-size":"15px","margin-bottom":"0px",color:"black"}},[i("router-link",{staticStyle:{color:"black"},attrs:{to:"/video/"+t.videoInfo.videoId}},[t._v(" "+t._s(t.videoInfo.title)+" ")])],1),i("p",{staticStyle:{"font-size":"10px",color:"#606060"}},[null!==t.videoInfo.userId?i("router-link",{attrs:{to:"/u/"+t.videoInfo.userId}},[t._v(" "+t._s(t.videoInfo.username))]):t._e(),i("br"),t._v(" "+t._s(t.videoInfo.viewCount)+" 观看 "),i("span",{domProps:{innerHTML:t._s("&nbsp;&nbsp;")}}),t._v(" "+t._s(t.videoInfo.commentCount)+" 评论 "),i("span",{domProps:{innerHTML:t._s("&nbsp;&nbsp;")}})],1)])],1)],1)},s=[],r=i("9878"),a={name:"ItemCard",props:{video:{type:Object,default:function(){}}},data:function(){return{TimeUtil:r["a"],videoInfo:this.video}},created:function(){}},o=a,l=i("2877"),c=i("6544"),u=i.n(c),d=i("8212"),h=i("62ad"),g=i("adda"),p=i("0fd9"),f=Object(l["a"])(o,n,s,!1,null,null,null);e["a"]=f.exports;u()(f,{VAvatar:d["a"],VCol:h["a"],VImg:g["a"],VRow:p["a"]})},4804:function(t,e,i){},"62ad":function(t,e,i){"use strict";i("4b85");var n=i("2b0e"),s=i("d9f7"),r=i("80d2");const a=["sm","md","lg","xl"],o=(()=>a.reduce((t,e)=>(t[e]={type:[Boolean,String,Number],default:!1},t),{}))(),l=(()=>a.reduce((t,e)=>(t["offset"+Object(r["E"])(e)]={type:[String,Number],default:null},t),{}))(),c=(()=>a.reduce((t,e)=>(t["order"+Object(r["E"])(e)]={type:[String,Number],default:null},t),{}))(),u={col:Object.keys(o),offset:Object.keys(l),order:Object.keys(c)};function d(t,e,i){let n=t;if(null!=i&&!1!==i){if(e){const i=e.replace(t,"");n+="-"+i}return"col"!==t||""!==i&&!0!==i?(n+="-"+i,n.toLowerCase()):n.toLowerCase()}}const h=new Map;e["a"]=n["default"].extend({name:"v-col",functional:!0,props:{cols:{type:[Boolean,String,Number],default:!1},...o,offset:{type:[String,Number],default:null},...l,order:{type:[String,Number],default:null},...c,alignSelf:{type:String,default:null,validator:t=>["auto","start","end","center","baseline","stretch"].includes(t)},tag:{type:String,default:"div"}},render(t,{props:e,data:i,children:n,parent:r}){let a="";for(const s in e)a+=String(e[s]);let o=h.get(a);if(!o){let t;for(t in o=[],u)u[t].forEach(i=>{const n=e[i],s=d(t,i,n);s&&o.push(s)});const i=o.some(t=>t.startsWith("col-"));o.push({col:!i||!e.cols,["col-"+e.cols]:e.cols,["offset-"+e.offset]:e.offset,["order-"+e.order]:e.order,["align-self-"+e.alignSelf]:e.alignSelf}),h.set(a,o)}return t(e.tag,Object(s["a"])(i,{class:o}),n)}})},"7e2b":function(t,e,i){"use strict";var n=i("2b0e");function s(t){return function(e,i){for(const n in i)Object.prototype.hasOwnProperty.call(e,n)||this.$delete(this.$data[t],n);for(const n in e)this.$set(this.$data[t],n,e[n])}}e["a"]=n["default"].extend({data:()=>({attrs$:{},listeners$:{}}),created(){this.$watch("$attrs",s("attrs$"),{immediate:!0}),this.$watch("$listeners",s("listeners$"),{immediate:!0})}})},8212:function(t,e,i){"use strict";i("3408");var n=i("a9ad"),s=i("24b2"),r=i("a236"),a=i("80d2"),o=i("58df");e["a"]=Object(o["a"])(n["a"],s["a"],r["a"]).extend({name:"v-avatar",props:{left:Boolean,right:Boolean,size:{type:[Number,String],default:48}},computed:{classes(){return{"v-avatar--left":this.left,"v-avatar--right":this.right,...this.roundedClasses}},styles(){return{height:Object(a["g"])(this.size),minWidth:Object(a["g"])(this.size),width:Object(a["g"])(this.size),...this.measurableStyles}}},render(t){const e={staticClass:"v-avatar",class:this.classes,style:this.styles,on:this.$listeners};return t("div",this.setBackgroundColor(this.color,e),this.$slots.default)}})},"841c":function(t,e,i){"use strict";var n=i("d784"),s=i("825a"),r=i("1d80"),a=i("129f"),o=i("14c3");n("search",1,(function(t,e,i){return[function(e){var i=r(this),n=void 0==e?void 0:e[t];return void 0!==n?n.call(e,i):new RegExp(e)[t](String(i))},function(t){var n=i(e,t,this);if(n.done)return n.value;var r=s(t),l=String(this),c=r.lastIndex;a(c,0)||(r.lastIndex=0);var u=o(r,l);return a(r.lastIndex,c)||(r.lastIndex=c),null===u?-1:u.index}]}))},"891e":function(t,e,i){"use strict";i("17b3");var n=i("9d26"),s=i("dc22"),r=i("a9ad"),a=i("de2c"),o=i("7560"),l=i("58df");e["a"]=Object(l["a"])(r["a"],Object(a["a"])({onVisible:["init"]}),o["a"]).extend({name:"v-pagination",directives:{Resize:s["a"]},props:{circle:Boolean,disabled:Boolean,length:{type:Number,default:0,validator:t=>t%1===0},nextIcon:{type:String,default:"$next"},prevIcon:{type:String,default:"$prev"},totalVisible:[Number,String],value:{type:Number,default:0},pageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.page"},currentPageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.currentPage"},previousAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.previous"},nextAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.next"},wrapperAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.wrapper"}},data(){return{maxButtons:0,selected:null}},computed:{classes(){return{"v-pagination":!0,"v-pagination--circle":this.circle,"v-pagination--disabled":this.disabled,...this.themeClasses}},items(){const t=parseInt(this.totalVisible,10),e=Math.min(Math.max(0,t)||this.length,Math.max(0,this.maxButtons)||this.length,this.length);if(this.length<=e)return this.range(1,this.length);const i=e%2===0?1:0,n=Math.floor(e/2),s=this.length-n+1+i;if(this.value>n&&this.value<s){const t=this.value-n+2,e=this.value+n-2-i;return[1,"...",...this.range(t,e),"...",this.length]}if(this.value===n){const t=this.value+n-1-i;return[...this.range(1,t),"...",this.length]}if(this.value===s){const t=this.value-n+1;return[1,"...",...this.range(t,this.length)]}return[...this.range(1,n),"...",...this.range(s,this.length)]}},watch:{value(){this.init()}},mounted(){this.init()},methods:{init(){this.selected=null,this.$nextTick(this.onResize),setTimeout(()=>this.selected=this.value,100)},onResize(){const t=this.$el&&this.$el.parentElement?this.$el.parentElement.clientWidth:window.innerWidth;this.maxButtons=Math.floor((t-96)/42)},next(t){t.preventDefault(),this.$emit("input",this.value+1),this.$emit("next")},previous(t){t.preventDefault(),this.$emit("input",this.value-1),this.$emit("previous")},range(t,e){const i=[];t=t>0?t:1;for(let n=t;n<=e;n++)i.push(n);return i},genIcon(t,e,i,s,r){return t("li",[t("button",{staticClass:"v-pagination__navigation",class:{"v-pagination__navigation--disabled":i},attrs:{type:"button","aria-label":r},on:i?{}:{click:s}},[t(n["a"],[e])])])},genItem(t,e){const i=e===this.value&&(this.color||"primary"),n=e===this.value,s=n?this.currentPageAriaLabel:this.pageAriaLabel;return t("button",this.setBackgroundColor(i,{staticClass:"v-pagination__item",class:{"v-pagination__item--active":e===this.value},attrs:{type:"button","aria-current":n,"aria-label":this.$vuetify.lang.t(s,e)},on:{click:()=>this.$emit("input",e)}}),[e.toString()])},genItems(t){return this.items.map((e,i)=>t("li",{key:i},[isNaN(Number(e))?t("span",{class:"v-pagination__more"},[e.toString()]):this.genItem(t,e)]))},genList(t,e){return t("ul",{directives:[{modifiers:{quiet:!0},name:"resize",value:this.onResize}],class:this.classes},e)}},render(t){const e=[this.genIcon(t,this.$vuetify.rtl?this.nextIcon:this.prevIcon,this.value<=1,this.previous,this.$vuetify.lang.t(this.previousAriaLabel)),this.genItems(t),this.genIcon(t,this.$vuetify.rtl?this.prevIcon:this.nextIcon,this.value>=this.length,this.next,this.$vuetify.lang.t(this.nextAriaLabel))];return t("nav",{attrs:{role:"navigation","aria-label":this.$vuetify.lang.t(this.wrapperAriaLabel)}},[this.genList(t,e)])}})},"8ce9":function(t,e,i){},"8efc":function(t,e,i){},"90a2":function(t,e,i){"use strict";function n(t,e){const i=e.modifiers||{},n=e.value,{handler:r,options:a}="object"===typeof n?n:{handler:n,options:{}},o=new IntersectionObserver((e=[],n)=>{if(t._observe){if(r&&(!i.quiet||t._observe.init)){const t=Boolean(e.find(t=>t.isIntersecting));r(e,n,t)}t._observe.init&&i.once?s(t):t._observe.init=!0}},a);t._observe={init:!1,observer:o},o.observe(t)}function s(t){t._observe&&(t._observe.observer.unobserve(t),delete t._observe)}const r={inserted:n,unbind:s};e["a"]=r},9263:function(t,e,i){"use strict";var n=i("ad6d"),s=i("9f7f"),r=RegExp.prototype.exec,a=String.prototype.replace,o=r,l=function(){var t=/a/,e=/b*/g;return r.call(t,"a"),r.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),c=s.UNSUPPORTED_Y||s.BROKEN_CARET,u=void 0!==/()??/.exec("")[1],d=l||u||c;d&&(o=function(t){var e,i,s,o,d=this,h=c&&d.sticky,g=n.call(d),p=d.source,f=0,v=t;return h&&(g=g.replace("y",""),-1===g.indexOf("g")&&(g+="g"),v=String(t).slice(d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==t[d.lastIndex-1])&&(p="(?: "+p+")",v=" "+v,f++),i=new RegExp("^(?:"+p+")",g)),u&&(i=new RegExp("^"+p+"$(?!\\s)",g)),l&&(e=d.lastIndex),s=r.call(h?i:d,v),h?s?(s.input=s.input.slice(f),s[0]=s[0].slice(f),s.index=d.lastIndex,d.lastIndex+=s[0].length):d.lastIndex=0:l&&s&&(d.lastIndex=d.global?s.index+s[0].length:e),u&&s&&s.length>1&&a.call(s[0],i,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(s[o]=void 0)})),s}),t.exports=o},9878:function(t,e,i){"use strict";i("b65f");function n(t){if(""===t||null==t)return"";var e=new Date(t);return e.getFullYear()+"-"+(e.getMonth()+1)+"-"+e.getDate()+" "+e.getHours()+":"+e.getMinutes()+":"+e.getSeconds()}function s(t){if(""===t||null==t)return"";var e=new Date(t);return e.getFullYear()+"年"+(e.getMonth()+1)+"月"+e.getDate()+"日 "+e.getHours()+"时"+e.getMinutes()+"分"}function r(t,e){return s(t)+" ~ "+s(e)}function a(t){var e=(new Date).getTime(),i=e-t;return i=Math.trunc(i/1e3),i<60?i+"秒前":(i=Math.trunc(i/60),i<60?i+"分钟前":(i=Math.trunc(i/60),i<24?i+"小时前":(i=Math.trunc(i/24),i<30?i+"天前":n(t))))}var o,l,c={timeToNowStrning:a,renderTime:n,formateTimeToChinese:s,formateTime:r},u=c,d=i("2877"),h=Object(d["a"])(u,o,l,!1,null,null,null);e["a"]=h.exports},"9d26":function(t,e,i){"use strict";var n=i("132d");e["a"]=n["a"]},"9f7f":function(t,e,i){"use strict";var n=i("d039");function s(t,e){return RegExp(t,e)}e.UNSUPPORTED_Y=n((function(){var t=s("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),e.BROKEN_CARET=n((function(){var t=s("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},a236:function(t,e,i){"use strict";var n=i("2b0e");e["a"]=n["default"].extend({name:"roundable",props:{rounded:[Boolean,String],tile:Boolean},computed:{roundedClasses(){const t=[],e="string"===typeof this.rounded?String(this.rounded):!0===this.rounded;if(this.tile)t.push("rounded-0");else if("string"===typeof e){const i=e.split(" ");for(const e of i)t.push("rounded-"+e)}else e&&t.push("rounded");return t.length>0?{[t.join(" ")]:!0}:{}}}})},a9ad:function(t,e,i){"use strict";var n=i("2b0e"),s=i("d9bd"),r=i("7bc6");e["a"]=n["default"].extend({name:"colorable",props:{color:String},methods:{setBackgroundColor(t,e={}){return"string"===typeof e.style?(Object(s["b"])("style must be an object",this),e):"string"===typeof e.class?(Object(s["b"])("class must be an object",this),e):(Object(r["d"])(t)?e.style={...e.style,"background-color":""+t,"border-color":""+t}:t&&(e.class={...e.class,[t]:!0}),e)},setTextColor(t,e={}){if("string"===typeof e.style)return Object(s["b"])("style must be an object",this),e;if("string"===typeof e.class)return Object(s["b"])("class must be an object",this),e;if(Object(r["d"])(t))e.style={...e.style,color:""+t,"caret-color":""+t};else if(t){const[i,n]=t.toString().trim().split(" ",2);e.class={...e.class,[i+"--text"]:!0},n&&(e.class["text--"+n]=!0)}return e}}})},ac1f:function(t,e,i){"use strict";var n=i("23e7"),s=i("9263");n({target:"RegExp",proto:!0,forced:/./.exec!==s},{exec:s})},ad6d:function(t,e,i){"use strict";var n=i("825a");t.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},adda:function(t,e,i){"use strict";i("8efc");var n=i("90a2"),s=(i("36a7"),i("24b2")),r=i("58df"),a=Object(r["a"])(s["a"]).extend({name:"v-responsive",props:{aspectRatio:[String,Number]},computed:{computedAspectRatio(){return Number(this.aspectRatio)},aspectStyle(){return this.computedAspectRatio?{paddingBottom:1/this.computedAspectRatio*100+"%"}:void 0},__cachedSizer(){return this.aspectStyle?this.$createElement("div",{style:this.aspectStyle,staticClass:"v-responsive__sizer"}):[]}},methods:{genContent(){return this.$createElement("div",{staticClass:"v-responsive__content"},this.$slots.default)}},render(t){return t("div",{staticClass:"v-responsive",style:this.measurableStyles,on:this.$listeners},[this.__cachedSizer,this.genContent()])}}),o=a,l=i("7560"),c=i("d9f7"),u=i("d9bd");const d="undefined"!==typeof window&&"IntersectionObserver"in window;e["a"]=Object(r["a"])(o,l["a"]).extend({name:"v-img",directives:{intersect:n["a"]},props:{alt:String,contain:Boolean,eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},position:{type:String,default:"center center"},sizes:String,src:{type:[String,Object],default:""},srcset:String,transition:{type:[Boolean,String],default:"fade-transition"}},data(){return{currentSrc:"",image:null,isLoading:!0,calculatedAspectRatio:void 0,naturalWidth:void 0,hasError:!1}},computed:{computedAspectRatio(){return Number(this.normalisedSrc.aspect||this.calculatedAspectRatio)},normalisedSrc(){return this.src&&"object"===typeof this.src?{src:this.src.src,srcset:this.srcset||this.src.srcset,lazySrc:this.lazySrc||this.src.lazySrc,aspect:Number(this.aspectRatio||this.src.aspect)}:{src:this.src,srcset:this.srcset,lazySrc:this.lazySrc,aspect:Number(this.aspectRatio||0)}},__cachedImage(){if(!(this.normalisedSrc.src||this.normalisedSrc.lazySrc||this.gradient))return[];const t=[],e=this.isLoading?this.normalisedSrc.lazySrc:this.currentSrc;this.gradient&&t.push(`linear-gradient(${this.gradient})`),e&&t.push(`url("${e}")`);const i=this.$createElement("div",{staticClass:"v-image__image",class:{"v-image__image--preload":this.isLoading,"v-image__image--contain":this.contain,"v-image__image--cover":!this.contain},style:{backgroundImage:t.join(", "),backgroundPosition:this.position},key:+this.isLoading});return this.transition?this.$createElement("transition",{attrs:{name:this.transition,mode:"in-out"}},[i]):i}},watch:{src(){this.isLoading?this.loadImage():this.init(void 0,void 0,!0)},"$vuetify.breakpoint.width":"getSrc"},mounted(){this.init()},methods:{init(t,e,i){if(!d||i||this.eager){if(this.normalisedSrc.lazySrc){const t=new Image;t.src=this.normalisedSrc.lazySrc,this.pollForSize(t,null)}this.normalisedSrc.src&&this.loadImage()}},onLoad(){this.getSrc(),this.isLoading=!1,this.$emit("load",this.src)},onError(){this.hasError=!0,this.$emit("error",this.src)},getSrc(){this.image&&(this.currentSrc=this.image.currentSrc||this.image.src)},loadImage(){const t=new Image;this.image=t,t.onload=()=>{t.decode?t.decode().catch(t=>{Object(u["c"])("Failed to decode image, trying to render anyway\n\nsrc: "+this.normalisedSrc.src+(t.message?"\nOriginal error: "+t.message:""),this)}).then(this.onLoad):this.onLoad()},t.onerror=this.onError,this.hasError=!1,t.src=this.normalisedSrc.src,this.sizes&&(t.sizes=this.sizes),this.normalisedSrc.srcset&&(t.srcset=this.normalisedSrc.srcset),this.aspectRatio||this.pollForSize(t),this.getSrc()},pollForSize(t,e=100){const i=()=>{const{naturalHeight:n,naturalWidth:s}=t;n||s?(this.naturalWidth=s,this.calculatedAspectRatio=s/n):null!=e&&!this.hasError&&setTimeout(i,e)};i()},genContent(){const t=o.options.methods.genContent.call(this);return this.naturalWidth&&this._b(t.data,"div",{style:{width:this.naturalWidth+"px"}}),t},__genPlaceholder(){if(this.$slots.placeholder){const t=this.isLoading?[this.$createElement("div",{staticClass:"v-image__placeholder"},this.$slots.placeholder)]:[];return this.transition?this.$createElement("transition",{props:{appear:!0,name:this.transition}},t):t[0]}}},render(t){const e=o.options.render.call(this,t),i=Object(c["a"])(e.data,{staticClass:"v-image",attrs:{"aria-label":this.alt,role:this.alt?"img":void 0},class:this.themeClasses,directives:d?[{name:"intersect",modifiers:{once:!0},value:{handler:this.init,options:this.options}}]:void 0});return e.children=[this.__cachedSizer,this.__cachedImage,this.__genPlaceholder(),this.genContent()],t(e.tag,i,e.children)}})},ade9:function(t,e,i){"use strict";i.d(e,"a",(function(){return r})),i.d(e,"b",(function(){return a}));var n=i("365c"),s={keywordSuggestApi:"/api/search/suggest",videoSearchApi:"/api/search/query"};function r(t){return n["a"].get(s.keywordSuggestApi+"?k="+t)}function a(t,e){return n["a"].get(s.videoSearchApi+"?keyword="+t+"&page="+e)}},af2b:function(t,e,i){"use strict";var n=i("2b0e");e["a"]=n["default"].extend({name:"sizeable",props:{large:Boolean,small:Boolean,xLarge:Boolean,xSmall:Boolean},computed:{medium(){return Boolean(!this.xSmall&&!this.small&&!this.large&&!this.xLarge)},sizeableClasses(){return{"v-size--x-small":this.xSmall,"v-size--small":this.small,"v-size--default":this.medium,"v-size--large":this.large,"v-size--x-large":this.xLarge}}}})},b65f:function(t,e,i){var n=i("23e7"),s=Math.ceil,r=Math.floor;n({target:"Math",stat:!0},{trunc:function(t){return(t>0?r:s)(t)}})},ce7e:function(t,e,i){"use strict";i("8ce9");var n=i("7560");e["a"]=n["a"].extend({name:"v-divider",props:{inset:Boolean,vertical:Boolean},render(t){let e;return this.$attrs.role&&"separator"!==this.$attrs.role||(e=this.vertical?"vertical":"horizontal"),t("hr",{class:{"v-divider":!0,"v-divider--inset":this.inset,"v-divider--vertical":this.vertical,...this.themeClasses},attrs:{role:"separator","aria-orientation":e,...this.$attrs},on:this.$listeners})}})},d784:function(t,e,i){"use strict";i("ac1f");var n=i("6eeb"),s=i("d039"),r=i("b622"),a=i("9263"),o=i("9112"),l=r("species"),c=!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),u=function(){return"$0"==="a".replace(/./,"$0")}(),d=r("replace"),h=function(){return!!/./[d]&&""===/./[d]("a","$0")}(),g=!s((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var i="ab".split(t);return 2!==i.length||"a"!==i[0]||"b"!==i[1]}));t.exports=function(t,e,i,d){var p=r(t),f=!s((function(){var e={};return e[p]=function(){return 7},7!=""[t](e)})),v=f&&!s((function(){var e=!1,i=/a/;return"split"===t&&(i={},i.constructor={},i.constructor[l]=function(){return i},i.flags="",i[p]=/./[p]),i.exec=function(){return e=!0,null},i[p](""),!e}));if(!f||!v||"replace"===t&&(!c||!u||h)||"split"===t&&!g){var m=/./[p],b=i(p,""[t],(function(t,e,i,n,s){return e.exec===a?f&&!s?{done:!0,value:m.call(e,i,n)}:{done:!0,value:t.call(i,e,n)}:{done:!1}}),{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:h}),y=b[0],S=b[1];n(String.prototype,t,y),n(RegExp.prototype,p,2==e?function(t,e){return S.call(t,this,e)}:function(t){return S.call(t,this)})}d&&o(RegExp.prototype[p],"sham",!0)}},dc22:function(t,e,i){"use strict";function n(t,e){const i=e.value,n=e.options||{passive:!0};window.addEventListener("resize",i,n),t._onResize={callback:i,options:n},e.modifiers&&e.modifiers.quiet||i()}function s(t){if(!t._onResize)return;const{callback:e,options:i}=t._onResize;window.removeEventListener("resize",e,i),delete t._onResize}const r={inserted:n,unbind:s};e["a"]=r},de2c:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("90a2"),s=i("d9bd"),r=i("2b0e");function a(t){return"undefined"!==typeof window&&"IntersectionObserver"in window?r["default"].extend({name:"intersectable",mounted(){n["a"].inserted(this.$el,{name:"intersect",value:this.onObserve})},destroyed(){n["a"].unbind(this.$el)},methods:{onObserve(e,i,n){if(n)for(let r=0,a=t.onVisible.length;r<a;r++){const e=this[t.onVisible[r]];"function"!==typeof e?Object(s["c"])(t.onVisible[r]+" method is not available on the instance but referenced in intersectable mixin options"):e()}}}}):r["default"].extend({name:"intersectable"})}},ea21:function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-container",{attrs:{"fill-height":""}},[i("div",[i("v-row",[i("v-col",[i("h3",[t._v("搜索结果")])])],1),i("v-row",[i("v-col",[i("v-divider")],1)],1),i("v-row",t._l(t.videoList,(function(t){return i("v-col",{key:t.id},[i("ItemCard",{attrs:{video:t}})],1)})),1),i("v-row",{attrs:{justify:"center"}},[i("v-pagination",{attrs:{length:t.length,"total-visible":7},on:{input:t.pageChange},model:{value:t.page,callback:function(e){t.page=e},expression:"page"}})],1)],1)])},s=[],r=(i("ac1f"),i("841c"),i("ade9")),a=i("371f"),o={name:"SearchResult",components:{ItemCard:a["a"]},data:function(){return{page:1,currentPage:1,size:12,length:1,videoList:[]}},created:function(){this.page=parseInt(this.$route.query.page),this.search(this.$route.query.keyword,this.$route.query.page)},methods:{search:function(t,e){var i=this;Object(r["b"])(t,e).then((function(t){if(0===t.code){var e=t.data;i.videoList=e.list,i.currentPage=e.currentPage,i.length=e.totalPages,i.$vuetify.goTo(0)}else console.error(t.msg)})).catch((function(t){console.error(t.message)}))},pageChange:function(t){t!==this.currentPage&&(this.currentPage=t,this.$router.push({path:this.$route.path,query:{keyword:this.$route.query.keyword,page:t}}))}}},l=o,c=i("2877"),u=i("6544"),d=i.n(u),h=i("62ad"),g=i("a523"),p=i("ce7e"),f=i("891e"),v=i("0fd9"),m=Object(c["a"])(l,n,s,!1,null,null,null);e["default"]=m.exports;d()(m,{VCol:h["a"],VContainer:g["a"],VDivider:p["a"],VPagination:f["a"],VRow:v["a"]})}}]);