@quicktvui/quicktvui3 0.0.79 → 0.0.81

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.css CHANGED
@@ -1,3 +1,15 @@
1
+
2
+ .qt-ui-row-css[data-v-734c04b2] {
3
+ display: flex;
4
+ flex-direction: column;
5
+ }
6
+
7
+
8
+ .qt-ui-row-css[data-v-9c454b58] {
9
+ display: flex;
10
+ flex-direction: row;
11
+ }
12
+
1
13
  /* ----------------Button---------------------- */
2
14
  .quick-button--default[data-v-46a594e4] {
3
15
  flex-direction: row;
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import{Native as e}from"@extscreen/es3-vue";import{defineComponent as t,ref as n,resolveComponent as o,openBlock as a,createElementBlock as l,normalizeStyle as s,normalizeClass as i,createCommentVNode as c,withDirectives as r,vShow as u,createBlock as d,toDisplayString as f,renderSlot as p,watchEffect as g,onBeforeUnmount as m,withCtx as h,Fragment as v,createVNode as b,createElementVNode as _,pushScopeId as y,popScopeId as T,reactive as S,watch as I,h as x}from"vue";import{useESToast as E,useES as F,useESLog as P,ESLogLevel as C}from"@extscreen/es3-core";var L=t({name:"qt-button",props:{size:{type:String,default:"default"},itemType:{type:Number,default:2e4},focusBorder:{type:Boolean,default:!1},focusScale:{type:Number,default:1.08},focusable:{type:Boolean,default:!0},enableFlexStyle:{type:Boolean,default:!1},icon:{type:String,default:null},focusIcon:{type:String,default:null},text:{type:String,default:""},gradientFocusBackground:{type:Object,default:()=>{}},gradientSelectedBackground:{type:Object,default:()=>null},gradientBackground:{type:Object,default:()=>null},disabled:Boolean,circle:Boolean,round:Boolean,square:Boolean,buttonStyle:Object,textStyle:Object,iconStyle:Object,focusIconStyle:Object,iconParentStyle:Object},emits:["focus","click"],setup(t,o){const a=n(),l=n(!1);return{focused:l,requestFocus:function(){e.callUIFunction(a.value,"requestFocus",[])},requestFocusDirectly:function(){e.callUIFunction(a.value,"requestFocusDirectly",[])},onFocus:function(e){console.log("--------XXXXXXXXXXXXXXXXX--------------\x3e>>",l.value),l.value=e.isFocused,o.emit("focus",e.isFocused)},onClick:function(e){o.emit("click")}}}});const k=["focusable","enableFocusBorder","focusScale"],D=["gradientBackground"],N=["gradientBackground"],w=["gradientBackground"],O=["src"],A=["src"];function R(e,t,n=!0){let o=e.length;n?e.map(((e,n)=>{n!==o-1&&(e.decoration={bottom:t})})):e.map(((e,n)=>{n!==o-1&&(e.decoration={right:t})}))}L.render=function(e,t,n,g,m,h){const v=o("text-view");return a(),l("div",{ref:"buttonRef",clipChildren:!1,focusable:e.focusable,enableFocusBorder:e.focusBorder,focusScale:e.focusScale,onClick:t[0]||(t[0]=(...t)=>e.onClick&&e.onClick(...t)),name:"textButton",eventClick:"",eventFocus:"",onFocus:t[1]||(t[1]=(...t)=>e.onFocus&&e.onFocus(...t)),style:s(e.buttonStyle),class:i(["quick-button--default",e.size?"quick-button--"+e.size:"",{"is-disabled-button":e.disabled,"is-circle":e.circle,"is-round":e.round,"is-square":e.square}])},[c(" gradient "),e.gradientFocusBackground?(a(),l("div",{key:0,class:"button-gradient-background-css",gradientBackground:e.gradientFocusBackground,focusable:!1,showOnState:"focused"},null,8,D)):c("v-if",!0),e.gradientSelectedBackground?(a(),l("div",{key:1,class:"button-gradient-background-css",gradientBackground:e.gradientSelectedBackground,focusable:!1,showOnState:"selected"},null,8,N)):c("v-if",!0),e.gradientBackground?(a(),l("div",{key:2,class:"button-gradient-background-css",gradientBackground:e.gradientBackground,focusable:!1,showOnState:"normal"},null,8,w)):c("v-if",!0),c(" -----------------------------icon--------------------------------- "),!e.icon&&!e.focusIcon||e.$slots.default?c("v-if",!0):(a(),l("div",{key:3,duplicateParentState:!0,style:s(e.iconParentStyle),flexStyle:"${iconParentStyle}",class:i(["quick-button-icon-parent",e.size?"quick-button-icon--parent"+e.size:""])},[e.icon&&!e.$slots.default?r((a(),l("img",{key:0,style:s(e.iconStyle),flexStyle:"${iconStyle}",duplicateParentState:!0,class:i(["quick-button-icon",e.size?"quick-button-icon--"+e.size:"",{"is-square-icon":e.square}]),focusable:!1,src:e.enableFlexStyle?"${"+e.icon+"}":e.icon,showOnState:"normal"},null,14,O)),[[u,!e.focused]]):c("v-if",!0),e.focusIcon&&!e.$slots.default?r((a(),l("img",{key:1,style:s(e.focusIconStyle?e.focusIconStyle:e.iconStyle),flexStyle:"${iconStyle}",class:i(["quick-button-icon",e.size?"quick-button-icon--"+e.size:"",{"is-square-icon":e.square}]),focusable:!1,duplicateParentState:!0,src:e.enableFlexStyle?"${"+e.focusIcon+"}":e.focusIcon,showOnState:"focused"},null,14,A)),[[u,e.focused]]):c("v-if",!0)],6)),c(" ------------------------------------------------------------------- "),c(" text "),e.enableFlexStyle?(a(),d(v,{key:4,style:s(e.textStyle),duplicateParentState:"",class:i([e.size?"quick-button-text--"+e.size:"",{"is-disabled-text":e.disabled,"is-square-text":e.square}]),focusable:!1,text:"${"+e.text+"}",autoWidth:"",autoHeight:""},null,8,["style","class","text"])):e.text&&!e.$slots.default?(a(),l("span",{key:5,style:s(e.textStyle),duplicateParentState:"",class:i([e.size?"quick-button-text--"+e.size:"",{"is-disabled-text":e.disabled,"is-square-text":e.square}]),focusable:!1},f(e.text),7)):c("v-if",!0),p(e.$slots,"default")],46,k)},L.__scopeId="data-v-46a594e4",L.__file="src/button/index.vue";const B=e=>e.map(U),$=e=>{const t=Object.keys(e),n={};return t.forEach((t=>{n[t]=U(e[t])})),n};function U(e){return e?"object"!=typeof e?e:Array.isArray(e)?B(e):$(e):e}var V=t({name:"qt-grid-view",props:{loadMore:{type:Function,default:function(){return[1,1]}},openPage:{type:Boolean,default:!1},spanCount:{type:Number,default:0},pageSize:{type:Number},preloadNo:{type:Number,default:0},defaultFocus:{type:Number,default:-1},areaWidth:{type:Number,default:1200},blockFocusDirections:{type:Array,default:()=>[]}},emits:["item-click","scroll","item-unbind","scroll-state-changed","item-bind","item-focused"],setup(e,t){E(),F();const o=n();let a=n(2.5),l=[],s=[],i=[],c=[],r="",u=-1,d=!1,f=-1,p=-1,h=-1,v=-1;g((()=>{e.openPage&&(u=1,d=!1,e.loadMore(u))}));const b=t=>{0==l.length&&(l=U(t),s=t,a.value<2.2?(_(),e.openPage&&e.pageSize&&c.length>=e.pageSize/e.spanCount?o.value.setListData(c.concat([{type:1002,decoration:{top:15,left:30}}])):o.value.setListData(c)):e.openPage&&e.pageSize&&l.length>=e.pageSize?o.value.setListData(l.concat([{type:1002,decoration:{top:15,left:30}}])):o.value.setListData(l),e.defaultFocus>-1&&(h&&clearTimeout(h),h=setTimeout((()=>{T(e.defaultFocus),S(e.defaultFocus)}),800)));let n={get(t,n,s){if("__ob__"!=n&&"symbol"!=typeof n&&"map"!=n&&"length"!=n&&"constructor"!=n&&"_isVue"!=n&&"valueOf"!=n&&"toString"!=n&&"observeArray"!=n&&"dep"!=n&&"notify"!=n&&"subs"!=n&&"slice"!=n)if(i.push(n),-1!=i.indexOf("push"))r="push";else{if(-1!=i.indexOf("splice"))return r="splice",function(...e){if(t.splice(...e),a.value<2.2)if(_(),1==e.length||2==e.length)o.value.setListData(c);else if(0==e[1])o.value.setListData(c);else{let t=-1,n=0,a=0;for(let o=0;o<c.length;o++){const l=c[o];if("1003"==l.type)t++,e[0]==t&&(n=o),e[0]+e[1]-1==t&&(a=o);else for(let s=0;s<l.list.length;s++)l.list[s],t++,e[0]==t&&(n=o),e[0]+e[1]-1==t&&(a=o)}o.value.updateItemList(n,a-n+1,c.slice(n,a+1))}else 1==e.length?o.value.deleteItem(Number(e[0]),l.length-e[0]):2==e.length?o.value.deleteItem(Number(e[0]),e[1]):e.length>2&&(0==e[1]?a.value>2.29&&x(e[0],e.slice(2)):o.value.updateItemList(e[0],e[1],e.slice(2)));return l.splice(e[0],...e.slice(1)),r="",i=[],Reflect.get(t,n,s)};if(-1!=i.indexOf("pop"))return r="pop",function(){return t.pop(),a.value<2.2?(c[c.length-1].list.length<1&&c.pop(),c[c.length-1].list.pop(),o.value.updateItem(Number(c.length-1),c[c.length-1])):o.value.deleteItem(Number(l.length-1),1),l.pop(),r="",i=[],Reflect.get(t,n,s)};if(-1!=i.indexOf("forEach"))return r="forEach",function(u){return t.forEach((e=>{u(e)})),l=[],l=U(t),a.value<2.2?(_(),e.openPage&&e.pageSize&&c.length>=e.pageSize&&!d?o.value.setListData(c.concat([{type:1002,decoration:{top:15,left:30}}])):o.value.setListData(c)):e.openPage&&e.pageSize&&l.length>=e.pageSize&&!d?o.value.setListData(l.concat([{type:1002,decoration:{top:15,left:30}}])):o.value.setListData(l),r="",i=[],Reflect.get(t,n,s)};if(-1!=i.indexOf("concat"))return r="concat",function(f){if("[object Array]"===Object.prototype.toString.call(f))if(t=t.concat(f),l=l.concat(f),a.value<2.2){v&&clearTimeout(v);let t=c.length,n=c.slice(c.length-1)[0];_();let a=c.slice(t);e.openPage&&!d?e.pageSize||2!=u?0==a.length||"1003"!=n.type&&n.list.length<e.spanCount?(a=c.slice(t-1),v=setTimeout((()=>{o.value.addListDataWithParams(a.concat([{type:1002,decoration:{top:15,left:30}}]),2)}),300)):v=setTimeout((()=>{o.value.addListDataWithParams(a.concat([{type:1002,decoration:{top:15,left:30}}]),1)}),300):v=setTimeout((()=>{o.value.addListData(a.concat([{type:1002,decoration:{top:15,left:30}}]))}),300):o.value.setListData(c)}else v=e.openPage&&!d?e.pageSize||2!=u?setTimeout((()=>{o.value.addListDataWithParams(f.concat([{type:1002,decoration:{top:15,left:30}}]),1)}),300):setTimeout((()=>{o.value.addListData(f.concat([{type:1002,decoration:{top:15,left:30}}]))}),300):setTimeout((()=>{o.value.addListData(f)}),300);else console.log("concat:参数类型必须为数组");return r="",i=[],Reflect.get(t,n,s)};r=""}const f=Reflect.get(t,n,s);return y(f)&&"__ob__"!=n&&"dep"!=n&&"subs"!=n?b(f):(-1==i.indexOf("push")&&(i=[]),f)},set(t,n,f,p){const g=t[n],m=Reflect.set(t,n,f,p);if((!y(g)&&g!==f||y(g))&&"push"!=r)if(i.push(n),l[i[0]]=s[i[0]],a.value<2.2){let e=i[0],t=-1;for(let n=0;n<c.length;n++){const a=c[n];if("1003"==a.type)t++,t==e&&(c[n]=l[i[0]],o.value.updateItem(Number(n),c[n]));else for(let s=0;s<a.list.length;s++)if(a.list[s],t++,t==e){c[n].list[s]=l[i[0]];let e=c[n].list[s];e.decoration&&(e.decoration.top&&(e.decoration.top=0),e.decoration.bottom&&(e.decoration.bottom=0)),o.value.updateItem(Number(n),c[n])}}}else o.value.updateItem(Number(i[0]),s[i[0]]);if(n&&"push"==r&&g!==f)i.push(n),l.push(f);else{if("push"==r&&i.length>1)if(a.value<2.2){v&&clearTimeout(v);let t=c.length,n=c.slice(c.length-1)[0];_();let a=c.slice(t);e.openPage&&!d?e.pageSize||2!=u?0==a.length||"1003"!=n.type&&n.list.length<e.spanCount?(a=c.slice(t-1),v=setTimeout((()=>{o.value.addListDataWithParams(a.concat([{type:1002,decoration:{top:15,left:30}}]),2)}),300)):v=setTimeout((()=>{o.value.addListDataWithParams(a.concat([{type:1002,decoration:{top:15,left:30}}]),1)}),300):v=setTimeout((()=>{o.value.addListData(a.concat([{type:1002,decoration:{top:15,left:30}}]))}),300):o.value.setListData(c)}else{let t=l.slice(i[1]);v&&clearTimeout(v),v=e.openPage&&!d?e.pageSize||2!=u?setTimeout((()=>{o.value.addListDataWithParams(t.concat([{type:1002,decoration:{top:15,left:30}}]),1)}),300):setTimeout((()=>{o.value.addListData(t.concat([{type:1002,decoration:{top:15,left:30}}]))}),300):setTimeout((()=>{o.value.addListData(t)}),300)}r="",i=[]}return m}};return new Proxy(t,n)},_=()=>{let t=U(l);c=[];let n=0,o=[];for(let e=0;e<t.length;e++){let n=t[e];if("1003"==n.type)o.push(n);else if(n.decoration.top&&(n.toCompatibleSaveTopVal=n.decoration.top,n.decoration.top=0),n.decoration.bottom&&(n.toCompatibleSaveBottompVal=n.decoration.bottom,n.decoration.bottom=0),o[o.length-1]&&1==o[o.length-1].type)o[o.length-1].list.push(n);else{let e={type:1,list:[]};e.list.push(n),o.push(e)}}for(let t=0;t<o.length;t++){const a=o[t];if("1003"==a.type)c.push(a);else for(let t=0;t<a.list.length;t+=e.spanCount){const o=a.list[t];let l={top:-1,bottom:-1};o.decoration&&(l.top=o.toCompatibleSaveTopVal?o.toCompatibleSaveTopVal:0,l.bottom=o.toCompatibleSaveBottompVal?o.toCompatibleSaveBottompVal:0);const s={type:1,decoration:l,name:"name"+n,list:a.list.slice(t,t+e.spanCount)};n++,c.push(s)}}},y=e=>null!==e&&"object"==typeof e,T=e=>{if(a.value<2.2){let t=-1;for(let n=0;n<c.length;n++){const a=c[n];if("1003"==a.type)t++,t==e&&o.value.scrollToPosition(n);else for(let l=0;l<a.list.length;l++)a.list[l],t++,t==e&&o.value.scrollToPosition(n)}}else o.value.scrollToPosition(e)},S=e=>{if(a.value<2.2){let t=-1,n=0,a=0;for(let o=0;o<c.length;o++){const l=c[o];if("1003"==l.type)t++;else for(let s=0;s<l.list.length;s++)l.list[s],t++,e==t&&(n=o,a=s)}o.value.dispatchItemFunction(n,"tv_list_inner","requestChildFocus",[a])}else o.value.requestFocus(e)},I=(e,t)=>{if(a.value<2.2){let t=-1,n=0,a=0;for(let o=0;o<c.length;o++){const l=c[o];if("1003"==l.type)t++;else for(let s=0;s<l.list.length;s++)l.list[s],t++,e==t&&(n=o,a=s)}o.value.dispatchItemFunction(n,"tv_list_inner","setSelectChildPosition",[a])}else o.value.setSelectPosition(e,t)},x=(e,t)=>{o.value.addItem(e,t)},P=()=>{o.value.destroy()};return m((()=>{l=[],c=[],s.length=0,d=!1,i=[],u=1,d=!1,r="",P(),f&&clearTimeout(f),v&&clearTimeout(v),p&&clearTimeout(p),h&&clearTimeout(h)})),{tv_list:o,apkVersion:a,init:b,onItemClick:e=>{if(a.value<2.2){let t=-1,n=e.position,o=e.parentPosition;for(let a=0;a<e.parentPosition+1;a++){const l=c[a];if("1003"==l.type)t++;else for(let s=0;s<l.list.length;s++)t++,n==s&&o==a&&(e.position=t)}}t.emit("item-click",e)},onItemBind:n=>{a.value<2.2?d||n.position!=c.length-1-e.preloadNo/e.spanCount||(u++,e.loadMore(u)):d||n.position!=l.length-1-e.preloadNo||(u++,e.loadMore(u)),t.emit("item-bind",n)},onItemFocused:e=>{if(a.value<2.2){let t=-1,n=e.position,o=e.parentPosition;for(let a=0;a<e.parentPosition+1;a++){const l=c[a];if("1003"==l.type)t++;else for(let s=0;s<l.list.length;s++)t++,n==s&&o==a&&(e.position=t)}}t.emit("item-focused",e)},onItemUnbind:e=>{t.emit("item-unbind",e)},onScroll:e=>{t.emit("scroll",e)},onScrollStateChanged:e=>{t.emit("scroll-state-changed",e)},stopPage:t=>{p&&clearTimeout(p),p=setTimeout((()=>{a.value<2.2?e.pageSize?e.pageSize/e.spanCount<=c.length&&o.value.deleteItem(c.length,1):u>2&&o.value.deleteItem(c.length,1):e.pageSize?e.pageSize<=l.length&&o.value.deleteItem(l.length,1):u>2&&o.value.deleteItem(l.length,1)}),400),d=!0},scrollToTop:()=>{o.value.scrollToTop()},clearFocus:()=>{o.value.clearFocus()},blockRootFocus:()=>{o.value.blockRootFocus()},unBlockRootFocus:()=>{o.value.unBlockRootFocus()},setDisplay:e=>{o.value.setDisplay(e)},scrollToPosition:T,scrollToIndex:(e,t,n)=>{if(a.value<2.2){let a=-1;for(let l=0;l<c.length;l++){const s=c[l];if("1003"==s.type)a++,a==e&&o.value.scrollToIndex(0,l,t,n);else for(let i=0;i<s.list.length;i++)s.list[i],a++,a==e&&o.value.scrollToIndex(0,l,t,n)}}else o.value.scrollToIndex(0,e,t,n)},setItemFocused:S,scrollToFocused:e=>{T(e),S(e)},setItemSelected:I,scrollToSelected:(e,t)=>{T(e),I(e,t)},updateItemProps:(e,t,n)=>{o.value.updateItemProps(e,t,n)},setInitPosition:e=>{o.value.setInitPosition(e)},setListData:e=>{f&&clearTimeout(f),f=setTimeout((()=>{o.value.setListData(e)}),100)},insertItem:x,clearPostTask:()=>{o.value.clearPostTask()},destroy:P}}});function z(e,t){const n=Object.create(null),o=e.split(",");for(let e=0;e<o.length;e++)n[o[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}V.render=function(e,t,n,i,c,r){const u=o("tv-list");return a(),d(u,{class:"tv_list",ref:"tv_list",name:"tv_list",spanCount:e.apkVersion<2.2?"":e.spanCount,onItemBind:e.onItemBind,onItemClick:e.onItemClick,onItemFocused:e.onItemFocused,onItemUnbind:e.onItemUnbind,onScroll:e.onScroll,onScrollStateChanged:e.onScrollStateChanged,onSetListData:e.setListData,blockFocusDirections:e.blockFocusDirections},{default:h((()=>[e.apkVersion<2.2?(a(),l(v,{key:0},[p(e.$slots,"header"),b(u,{class:"tv_list_inner",ref:"${name}",list:"${list}",name:"tv_list_inner",type:"1",clipChildren:!1,focusable:!1,horizontal:"",style:s({width:e.areaWidth+"px"}),endHintEnabled:!1,blockFocusDirections:e.blockFocusDirections},{default:h((()=>[p(e.$slots,"default")])),_:3},8,["style","blockFocusDirections"]),p(e.$slots,"loading")],64)):(a(),l(v,{key:1},[p(e.$slots,"header"),p(e.$slots,"default"),p(e.$slots,"loading")],64))])),_:3},8,["spanCount","onItemBind","onItemClick","onItemFocused","onItemUnbind","onScroll","onScrollStateChanged","onSetListData","blockFocusDirections"])},V.__file="src/grid-view/index.vue";const q="production"!==process.env.NODE_ENV?Object.freeze({}):{};"production"===process.env.NODE_ENV||Object.freeze([]);const W=()=>{},M=/^on[^a-z]/,G=e=>M.test(e),Q=Object.assign,j=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Y=Object.prototype.hasOwnProperty,H=(e,t)=>Y.call(e,t),X=Array.isArray,K=e=>"[object Map]"===le(e),J=e=>"[object Set]"===le(e),Z=e=>"function"==typeof e,ee=e=>"string"==typeof e,te=e=>"symbol"==typeof e,ne=e=>null!==e&&"object"==typeof e,oe=e=>(ne(e)||Z(e))&&Z(e.then)&&Z(e.catch),ae=Object.prototype.toString,le=e=>ae.call(e),se=e=>le(e).slice(8,-1),ie=e=>"[object Object]"===le(e),ce=e=>ee(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,re=(e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))})((e=>e.charAt(0).toUpperCase()+e.slice(1))),ue=(e,t)=>!Object.is(e,t),de=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})};let fe;const pe=()=>fe||(fe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function ge(e){if(X(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],a=ee(o)?be(o):ge(o);if(a)for(const e in a)t[e]=a[e]}return t}if(ee(e)||ne(e))return e}const me=/;(?![^(]*\))/g,he=/:([^]+)/,ve=/\/\*[^]*?\*\//g;function be(e){const t={};return e.replace(ve,"").split(me).forEach((e=>{if(e){const n=e.split(he);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function _e(e){let t="";if(ee(e))t=e;else if(X(e))for(let n=0;n<e.length;n++){const o=_e(e[n]);o&&(t+=o+" ")}else if(ne(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function ye(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let Te;const Se=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Ie=e=>(e.w&Pe)>0,xe=e=>(e.n&Pe)>0,Ee=new WeakMap;let Fe=0,Pe=1;const Ce=30;let Le;const ke=Symbol("production"!==process.env.NODE_ENV?"iterate":""),De=Symbol("production"!==process.env.NODE_ENV?"Map key iterate":"");class Ne{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(e,t=Te){t&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();let e=Le,t=Oe;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=Le,Le=this,Oe=!0,Pe=1<<++Fe,Fe<=Ce?(({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Pe})(this):we(this),this.fn()}finally{Fe<=Ce&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const a=t[o];Ie(a)&&!xe(a)?a.delete(e):t[n++]=a,a.w&=~Pe,a.n&=~Pe}t.length=n}})(this),Pe=1<<--Fe,Le=this.parent,Oe=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Le===this?this.deferStop=!0:this.active&&(we(this),this.onStop&&this.onStop(),this.active=!1)}}function we(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Oe=!0;const Ae=[];function Re(){Ae.push(Oe),Oe=!1}function Be(){const e=Ae.pop();Oe=void 0===e||e}function $e(e,t,n){if(Oe&&Le){let o=Ee.get(e);o||Ee.set(e,o=new Map);let a=o.get(n);a||o.set(n,a=Se());!function(e,t){let n=!1;Fe<=Ce?xe(e)||(e.n|=Pe,n=!Ie(e)):n=!e.has(Le);n&&(e.add(Le),Le.deps.push(e),"production"!==process.env.NODE_ENV&&Le.onTrack&&Le.onTrack(Q({effect:Le},t)))}(a,"production"!==process.env.NODE_ENV?{effect:Le,target:e,type:t,key:n}:void 0)}}function Ue(e,t,n,o,a,l){const s=Ee.get(e);if(!s)return;let i=[];if("clear"===t)i=[...s.values()];else if("length"===n&&X(e)){const e=Number(o);s.forEach(((t,n)=>{("length"===n||!te(n)&&n>=e)&&i.push(t)}))}else switch(void 0!==n&&i.push(s.get(n)),t){case"add":X(e)?ce(n)&&i.push(s.get("length")):(i.push(s.get(ke)),K(e)&&i.push(s.get(De)));break;case"delete":X(e)||(i.push(s.get(ke)),K(e)&&i.push(s.get(De)));break;case"set":K(e)&&i.push(s.get(ke))}const c="production"!==process.env.NODE_ENV?{target:e,type:t,key:n,newValue:o,oldValue:a,oldTarget:l}:void 0;if(1===i.length)i[0]&&("production"!==process.env.NODE_ENV?Ve(i[0],c):Ve(i[0]));else{const e=[];for(const t of i)t&&e.push(...t);"production"!==process.env.NODE_ENV?Ve(Se(e),c):Ve(Se(e))}}function Ve(e,t){const n=X(e)?e:[...e];for(const e of n)e.computed&&ze(e,t);for(const e of n)e.computed||ze(e,t)}function ze(e,t){(e!==Le||e.allowRecurse)&&("production"!==process.env.NODE_ENV&&e.onTrigger&&e.onTrigger(Q({effect:e},t)),e.scheduler?e.scheduler():e.run())}const qe=z("__proto__,__v_isRef,__isVue"),We=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(te)),Me=Ge();function Ge(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=wt(this);for(let e=0,t=this.length;e<t;e++)$e(n,"get",e+"");const o=n[t](...e);return-1===o||!1===o?n[t](...e.map(wt)):o}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){Re();const n=wt(this)[t].apply(this,e);return Be(),n}})),e}function Qe(e){const t=wt(this);return $e(t,"has",e),t.hasOwnProperty(e)}class je{constructor(e=!1,t=!1){this._isReadonly=e,this._shallow=t}get(e,t,n){const o=this._isReadonly,a=this._shallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return a;if("__v_raw"===t&&n===(o?a?xt:It:a?St:Tt).get(e))return e;const l=X(e);if(!o){if(l&&H(Me,t))return Reflect.get(Me,t,n);if("hasOwnProperty"===t)return Qe}const s=Reflect.get(e,t,n);return(te(t)?We.has(t):qe(t))?s:(o||$e(e,"get",t),a?s:Rt(s)?l&&ce(t)?s:s.value:ne(s)?o?Ft(s):Et(s):s)}}class Ye extends je{constructor(e=!1){super(!1,e)}set(e,t,n,o){let a=e[t];if(kt(a)&&Rt(a)&&!Rt(n))return!1;if(!this._shallow&&(Dt(n)||kt(n)||(a=wt(a),n=wt(n)),!X(e)&&Rt(a)&&!Rt(n)))return a.value=n,!0;const l=X(e)&&ce(t)?Number(t)<e.length:H(e,t),s=Reflect.set(e,t,n,o);return e===wt(o)&&(l?ue(n,a)&&Ue(e,"set",t,n,a):Ue(e,"add",t,n)),s}deleteProperty(e,t){const n=H(e,t),o=e[t],a=Reflect.deleteProperty(e,t);return a&&n&&Ue(e,"delete",t,void 0,o),a}has(e,t){const n=Reflect.has(e,t);return te(t)&&We.has(t)||$e(e,"has",t),n}ownKeys(e){return $e(e,"iterate",X(e)?"length":ke),Reflect.ownKeys(e)}}class He extends je{constructor(e=!1){super(!0,e)}set(e,t){return"production"!==process.env.NODE_ENV&&ye(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0}deleteProperty(e,t){return"production"!==process.env.NODE_ENV&&ye(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}}const Xe=new Ye,Ke=new He,Je=new He(!0),Ze=e=>e,et=e=>Reflect.getPrototypeOf(e);function tt(e,t,n=!1,o=!1){const a=wt(e=e.__v_raw),l=wt(t);n||(ue(t,l)&&$e(a,"get",t),$e(a,"get",l));const{has:s}=et(a),i=o?Ze:n?At:Ot;return s.call(a,t)?i(e.get(t)):s.call(a,l)?i(e.get(l)):void(e!==a&&e.get(t))}function nt(e,t=!1){const n=this.__v_raw,o=wt(n),a=wt(e);return t||(ue(e,a)&&$e(o,"has",e),$e(o,"has",a)),e===a?n.has(e):n.has(e)||n.has(a)}function ot(e,t=!1){return e=e.__v_raw,!t&&$e(wt(e),"iterate",ke),Reflect.get(e,"size",e)}function at(e){e=wt(e);const t=wt(this);return et(t).has.call(t,e)||(t.add(e),Ue(t,"add",e,e)),this}function lt(e,t){t=wt(t);const n=wt(this),{has:o,get:a}=et(n);let l=o.call(n,e);l?"production"!==process.env.NODE_ENV&&yt(n,o,e):(e=wt(e),l=o.call(n,e));const s=a.call(n,e);return n.set(e,t),l?ue(t,s)&&Ue(n,"set",e,t,s):Ue(n,"add",e,t),this}function st(e){const t=wt(this),{has:n,get:o}=et(t);let a=n.call(t,e);a?"production"!==process.env.NODE_ENV&&yt(t,n,e):(e=wt(e),a=n.call(t,e));const l=o?o.call(t,e):void 0,s=t.delete(e);return a&&Ue(t,"delete",e,void 0,l),s}function it(){const e=wt(this),t=0!==e.size,n="production"!==process.env.NODE_ENV?K(e)?new Map(e):new Set(e):void 0,o=e.clear();return t&&Ue(e,"clear",void 0,void 0,n),o}function ct(e,t){return function(n,o){const a=this,l=a.__v_raw,s=wt(l),i=t?Ze:e?At:Ot;return!e&&$e(s,"iterate",ke),l.forEach(((e,t)=>n.call(o,i(e),i(t),a)))}}function rt(e,t,n){return function(...o){const a=this.__v_raw,l=wt(a),s=K(l),i="entries"===e||e===Symbol.iterator&&s,c="keys"===e&&s,r=a[e](...o),u=n?Ze:t?At:Ot;return!t&&$e(l,"iterate",c?De:ke),{next(){const{value:e,done:t}=r.next();return t?{value:e,done:t}:{value:i?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function ut(e){return function(...t){if("production"!==process.env.NODE_ENV){const n=t[0]?`on key "${t[0]}" `:"";console.warn(`${re(e)} operation ${n}failed: target is readonly.`,wt(this))}return"delete"!==e&&this}}function dt(){const e={get(e){return tt(this,e)},get size(){return ot(this)},has:nt,add:at,set:lt,delete:st,clear:it,forEach:ct(!1,!1)},t={get(e){return tt(this,e,!1,!0)},get size(){return ot(this)},has:nt,add:at,set:lt,delete:st,clear:it,forEach:ct(!1,!0)},n={get(e){return tt(this,e,!0)},get size(){return ot(this,!0)},has(e){return nt.call(this,e,!0)},add:ut("add"),set:ut("set"),delete:ut("delete"),clear:ut("clear"),forEach:ct(!0,!1)},o={get(e){return tt(this,e,!0,!0)},get size(){return ot(this,!0)},has(e){return nt.call(this,e,!0)},add:ut("add"),set:ut("set"),delete:ut("delete"),clear:ut("clear"),forEach:ct(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((a=>{e[a]=rt(a,!1,!1),n[a]=rt(a,!0,!1),t[a]=rt(a,!1,!0),o[a]=rt(a,!0,!0)})),[e,n,t,o]}const[ft,pt,gt,mt]=dt();function ht(e,t){const n=t?e?mt:gt:e?pt:ft;return(t,o,a)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(H(n,o)&&o in t?n:t,o,a)}const vt={get:ht(!1,!1)},bt={get:ht(!0,!1)},_t={get:ht(!0,!0)};function yt(e,t,n){const o=wt(n);if(o!==n&&t.call(e,o)){const t=se(e);console.warn(`Reactive ${t} contains both the raw and reactive versions of the same object${"Map"===t?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const Tt=new WeakMap,St=new WeakMap,It=new WeakMap,xt=new WeakMap;function Et(e){return kt(e)?e:Ct(e,!1,Xe,vt,Tt)}function Ft(e){return Ct(e,!0,Ke,bt,It)}function Pt(e){return Ct(e,!0,Je,_t,xt)}function Ct(e,t,n,o,a){if(!ne(e))return"production"!==process.env.NODE_ENV&&console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const l=a.get(e);if(l)return l;const s=(i=e).__v_skip||!Object.isExtensible(i)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(se(i));var i;if(0===s)return e;const c=new Proxy(e,2===s?o:n);return a.set(e,c),c}function Lt(e){return kt(e)?Lt(e.__v_raw):!(!e||!e.__v_isReactive)}function kt(e){return!(!e||!e.__v_isReadonly)}function Dt(e){return!(!e||!e.__v_isShallow)}function Nt(e){return Lt(e)||kt(e)}function wt(e){const t=e&&e.__v_raw;return t?wt(t):e}const Ot=e=>ne(e)?Et(e):e,At=e=>ne(e)?Ft(e):e;function Rt(e){return!(!e||!0!==e.__v_isRef)}const Bt={get:(e,t,n)=>{return Rt(o=Reflect.get(e,t,n))?o.value:o;var o},set:(e,t,n,o)=>{const a=e[t];return Rt(a)&&!Rt(n)?(a.value=n,!0):Reflect.set(e,t,n,o)}};const $t=[];function Ut(e,...t){if("production"===process.env.NODE_ENV)return;Re();const n=$t.length?$t[$t.length-1].component:null,o=n&&n.appContext.config.warnHandler,a=function(){let e=$t[$t.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const o=e.component&&e.component.parent;e=o&&o.vnode}return t}();if(o)Wt(o,n,11,[e+t.join(""),n&&n.proxy,a.map((({vnode:e})=>`at <${so(n,e.type)}>`)).join("\n"),a]);else{const n=[`[Vue warn]: ${e}`,...t];a.length&&n.push("\n",...function(e){const t=[];return e.forEach(((e,n)=>{t.push(...0===n?[]:["\n"],...function({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=!!e.component&&null==e.component.parent,a=` at <${so(e.component,e.type,o)}`,l=">"+n;return e.props?[a,...Vt(e.props),l]:[a+l]}(e))})),t}(a)),console.warn(...n)}Be()}function Vt(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach((n=>{t.push(...zt(n,e[n]))})),n.length>3&&t.push(" ..."),t}function zt(e,t,n){return ee(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?n?t:[`${e}=${t}`]:Rt(t)?(t=zt(e,wt(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):Z(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=wt(t),n?t:[`${e}=`,t])}const qt={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"};function Wt(e,t,n,o){let a;try{a=o?e(...o):e()}catch(e){Gt(e,t,n)}return a}function Mt(e,t,n,o){if(Z(e)){const a=Wt(e,t,n,o);return a&&oe(a)&&a.catch((e=>{Gt(e,t,n)})),a}const a=[];for(let l=0;l<e.length;l++)a.push(Mt(e[l],t,n,o));return a}function Gt(e,t,n,o=!0){const a=t?t.vnode:null;if(t){let o=t.parent;const a=t.proxy,l="production"!==process.env.NODE_ENV?qt[n]:n;for(;o;){const t=o.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,a,l))return;o=o.parent}const s=t.appContext.config.errorHandler;if(s)return void Wt(s,null,10,[e,a,l])}!function(e,t,n,o=!0){if("production"!==process.env.NODE_ENV){const l=qt[t];if(n&&(a=n,$t.push(a)),Ut("Unhandled error"+(l?` during execution of ${l}`:"")),n&&$t.pop(),o)throw e;console.error(e)}else console.error(e);var a}(e,n,a,o)}let Qt=!1,jt=!1;const Yt=[];let Ht=0;const Xt=[];let Kt=null,Jt=0;const Zt=Promise.resolve();let en=null;const tn=100;function nn(e){const t=en||Zt;return e?t.then(this?e.bind(this):e):t}function on(e){Yt.length&&Yt.includes(e,Qt&&e.allowRecurse?Ht+1:Ht)||(null==e.id?Yt.push(e):Yt.splice(function(e){let t=Ht+1,n=Yt.length;for(;t<n;){const o=t+n>>>1,a=Yt[o],l=sn(a);l<e||l===e&&a.pre?t=o+1:n=o}return t}(e.id),0,e),an())}function an(){Qt||jt||(jt=!0,en=Zt.then(rn))}function ln(e){X(e)?Xt.push(...e):Kt&&Kt.includes(e,e.allowRecurse?Jt+1:Jt)||Xt.push(e),an()}const sn=e=>null==e.id?1/0:e.id,cn=(e,t)=>{const n=sn(e)-sn(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function rn(e){jt=!1,Qt=!0,"production"!==process.env.NODE_ENV&&(e=e||new Map),Yt.sort(cn);const t="production"!==process.env.NODE_ENV?t=>un(e,t):W;try{for(Ht=0;Ht<Yt.length;Ht++){const e=Yt[Ht];if(e&&!1!==e.active){if("production"!==process.env.NODE_ENV&&t(e))continue;Wt(e,null,14)}}}finally{Ht=0,Yt.length=0,function(e){if(Xt.length){const t=[...new Set(Xt)];if(Xt.length=0,Kt)return void Kt.push(...t);for(Kt=t,"production"!==process.env.NODE_ENV&&(e=e||new Map),Kt.sort(((e,t)=>sn(e)-sn(t))),Jt=0;Jt<Kt.length;Jt++)"production"!==process.env.NODE_ENV&&un(e,Kt[Jt])||Kt[Jt]();Kt=null,Jt=0}}(e),Qt=!1,en=null,(Yt.length||Xt.length)&&rn(e)}}function un(e,t){if(e.has(t)){const n=e.get(t);if(n>tn){const e=t.ownerInstance,n=e&&lo(e.type);return Ut(`Maximum recursive updates exceeded${n?` in component <${n}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`),!0}e.set(t,n+1)}else e.set(t,1)}const dn=new Set;"production"!==process.env.NODE_ENV&&(pe().__VUE_HMR_RUNTIME__={createRecord:mn((function(e,t){if(fn.has(e))return!1;return fn.set(e,{initialDef:pn(t),instances:new Set}),!0})),rerender:mn((function(e,t){const n=fn.get(e);if(!n)return;n.initialDef.render=t,[...n.instances].forEach((e=>{t&&(e.render=t,pn(e.type).render=t),e.renderCache=[],e.update()}))})),reload:mn((function(e,t){const n=fn.get(e);if(!n)return;t=pn(t),gn(n.initialDef,t);const o=[...n.instances];for(const e of o){const o=pn(e.type);dn.has(o)||(o!==n.initialDef&&gn(o,t),dn.add(o)),e.appContext.propsCache.delete(e.type),e.appContext.emitsCache.delete(e.type),e.appContext.optionsCache.delete(e.type),e.ceReload?(dn.add(o),e.ceReload(t.styles),dn.delete(o)):e.parent?on(e.parent.update):e.appContext.reload?e.appContext.reload():"undefined"!=typeof window?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}ln((()=>{for(const e of o)dn.delete(pn(e.type))}))}))});const fn=new Map;function pn(e){return io(e)?e.__vccOpts:e}function gn(e,t){Q(e,t);for(const n in e)"__file"===n||n in t||delete e[n]}function mn(e){return(t,n)=>{try{return e(t,n)}catch(e){console.error(e),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let hn=null,vn=null;const bn=Symbol.for("v-ndc");const _n={};function yn(e,t,{immediate:n,deep:o,flush:a,onTrack:l,onTrigger:s}=q){var i;"production"===process.env.NODE_ENV||t||(void 0!==n&&Ut('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),void 0!==o&&Ut('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));const c=e=>{Ut("Invalid watch source: ",e,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},r=Te===(null==(i=Zn)?void 0:i.scope)?Zn:null;let u,d,f=!1,p=!1;if(Rt(e)?(u=()=>e.value,f=Dt(e)):Lt(e)?(u=()=>e,o=!0):X(e)?(p=!0,f=e.some((e=>Lt(e)||Dt(e))),u=()=>e.map((e=>Rt(e)?e.value:Lt(e)?Sn(e):Z(e)?Wt(e,r,2):void("production"!==process.env.NODE_ENV&&c(e))))):Z(e)?u=t?()=>Wt(e,r,2):()=>{if(!r||!r.isUnmounted)return d&&d(),Mt(e,r,3,[g])}:(u=W,"production"!==process.env.NODE_ENV&&c(e)),t&&o){const e=u;u=()=>Sn(e())}let g=e=>{d=b.onStop=()=>{Wt(e,r,4)}},m=p?new Array(e.length).fill(_n):_n;const h=()=>{if(b.active)if(t){const e=b.run();(o||f||(p?e.some(((e,t)=>ue(e,m[t]))):ue(e,m)))&&(d&&d(),Mt(t,r,3,[e,m===_n?void 0:p&&m[0]===_n?[]:m,g]),m=e)}else b.run()};let v;h.allowRecurse=!!t,"sync"===a?v=h:"post"===a?v=()=>Bn(h,r&&r.suspense):(h.pre=!0,r&&(h.id=r.uid),v=()=>on(h));const b=new Ne(u,v);"production"!==process.env.NODE_ENV&&(b.onTrack=l,b.onTrigger=s),t?n?h():m=b.run():"post"===a?Bn(b.run.bind(b),r&&r.suspense):b.run();return()=>{b.stop(),r&&r.scope&&j(r.scope.effects,b)}}function Tn(e,t,n){const o=this.proxy,a=ee(e)?e.includes(".")?function(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}(o,e):()=>o[e]:e.bind(o,o);let l;Z(t)?l=t:(l=t.handler,n=t);const s=Zn;to(this);const i=yn(a,l.bind(o),n);return s?to(s):no(),i}function Sn(e,t){if(!ne(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),Rt(e))Sn(e.value,t);else if(X(e))for(let n=0;n<e.length;n++)Sn(e[n],t);else if(J(e)||K(e))e.forEach((e=>{Sn(e,t)}));else if(ie(e))for(const n in e)Sn(e[n],t);return e}
2
- /*! #__NO_SIDE_EFFECTS__ */function In(e,t){return Z(e)?(()=>Q({name:e.name},t,{setup:e}))():e}const xn=e=>e?4&e.vnode.shapeFlag?function(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy((n=e.exposed,de(n,"__v_skip",!0),Lt(t=n)?t:new Proxy(t,Bt)),{get:(t,n)=>n in t?t[n]:n in En?En[n](e):void 0,has:(e,t)=>t in e||t in En}));var t;var n}(e)||e.proxy:xn(e.parent):null,En=Q(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>"production"!==process.env.NODE_ENV?Pt(e.props):e.props,$attrs:e=>"production"!==process.env.NODE_ENV?Pt(e.attrs):e.attrs,$slots:e=>"production"!==process.env.NODE_ENV?Pt(e.slots):e.slots,$refs:e=>"production"!==process.env.NODE_ENV?Pt(e.refs):e.refs,$parent:e=>xn(e.parent),$root:e=>xn(e.root),$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?function(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:a,optionsCache:l,config:{optionMergeStrategies:s}}=e.appContext,i=l.get(t);let c;i?c=i:a.length||n||o?(c={},a.length&&a.forEach((e=>kn(c,e,s,!0))),kn(c,t,s)):c=t;ne(t)&&l.set(t,c);return c}(e):e.type,$forceUpdate:e=>e.f||(e.f=()=>on(e.update)),$nextTick:e=>e.n||(e.n=nn.bind(e.proxy)),$watch:e=>__VUE_OPTIONS_API__?Tn.bind(e):W}),Fn=(e,t)=>e!==q&&!e.__isScriptSetup&&H(e,t),Pn={get({_:e},t){const{ctx:n,setupState:o,data:a,props:l,accessCache:s,type:i,appContext:c}=e;if("production"!==process.env.NODE_ENV&&"__isVue"===t)return!0;let r;if("$"!==t[0]){const i=s[t];if(void 0!==i)switch(i){case 1:return o[t];case 2:return a[t];case 4:return n[t];case 3:return l[t]}else{if(Fn(o,t))return s[t]=1,o[t];if(a!==q&&H(a,t))return s[t]=2,a[t];if((r=e.propsOptions[0])&&H(r,t))return s[t]=3,l[t];if(n!==q&&H(n,t))return s[t]=4,n[t];__VUE_OPTIONS_API__&&!Ln||(s[t]=0)}}const u=En[t];let d,f;return u?("$attrs"===t?($e(e,"get",t),process.env.NODE_ENV):"production"!==process.env.NODE_ENV&&"$slots"===t&&$e(e,"get",t),u(e)):(d=i.__cssModules)&&(d=d[t])?d:n!==q&&H(n,t)?(s[t]=4,n[t]):(f=c.config.globalProperties,H(f,t)?f[t]:void("production"===process.env.NODE_ENV||!hn||ee(t)&&0===t.indexOf("__v")||(a!==q&&(e=>"_"===e||"$"===e)(t[0])&&H(a,t)?Ut(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===hn&&Ut(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))))},set({_:e},t,n){const{data:o,setupState:a,ctx:l}=e;return Fn(a,t)?(a[t]=n,!0):"production"!==process.env.NODE_ENV&&a.__isScriptSetup&&H(a,t)?(Ut(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):o!==q&&H(o,t)?(o[t]=n,!0):H(e.props,t)?("production"!==process.env.NODE_ENV&&Ut(`Attempting to mutate prop "${t}". Props are readonly.`),!1):"$"===t[0]&&t.slice(1)in e?("production"!==process.env.NODE_ENV&&Ut(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):("production"!==process.env.NODE_ENV&&t in e.appContext.config.globalProperties?Object.defineProperty(l,t,{enumerable:!0,configurable:!0,value:n}):l[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:a,propsOptions:l}},s){let i;return!!n[s]||e!==q&&H(e,s)||Fn(t,s)||(i=l[0])&&H(i,s)||H(o,s)||H(En,s)||H(a.config.globalProperties,s)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:H(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Cn(e){return X(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}"production"!==process.env.NODE_ENV&&(Pn.ownKeys=e=>(Ut("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));let Ln=!0;function kn(e,t,n,o=!1){const{mixins:a,extends:l}=t;l&&kn(e,l,n,!0),a&&a.forEach((t=>kn(e,t,n,!0)));for(const a in t)if(o&&"expose"===a)"production"!==process.env.NODE_ENV&&Ut('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const o=Dn[a]||n&&n[a];e[a]=o?o(e[a],t[a]):t[a]}return e}const Dn={data:Nn,props:Rn,emits:Rn,methods:An,computed:An,beforeCreate:On,created:On,beforeMount:On,mounted:On,beforeUpdate:On,updated:On,beforeDestroy:On,beforeUnmount:On,destroyed:On,unmounted:On,activated:On,deactivated:On,errorCaptured:On,serverPrefetch:On,components:An,directives:An,watch:function(e,t){if(!e)return t;if(!t)return e;const n=Q(Object.create(null),e);for(const o in t)n[o]=On(e[o],t[o]);return n},provide:Nn,inject:function(e,t){return An(wn(e),wn(t))}};function Nn(e,t){return t?e?function(){return Q(Z(e)?e.call(this,this):e,Z(t)?t.call(this,this):t)}:t:e}function wn(e){if(X(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function On(e,t){return e?[...new Set([].concat(e,t))]:t}function An(e,t){return e?Q(Object.create(null),e,t):t}function Rn(e,t){return e?X(e)&&X(t)?[...new Set([...e,...t])]:Q(Object.create(null),Cn(e),Cn(null!=t?t:{})):t}const Bn=function(e,t){t&&t.pendingBranch?X(e)?t.effects.push(...e):t.effects.push(e):ln(e)},$n=Symbol.for("v-fgt"),Un=Symbol.for("v-txt"),Vn=Symbol.for("v-cmt");let zn=null;const qn="__vInternal",Wn=({key:e})=>null!=e?e:null,Mn=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?ee(e)||Rt(e)||Z(e)?{i:hn,r:e,k:t,f:!!n}:e:null);const Gn="production"!==process.env.NODE_ENV?(...e)=>Qn(...e):Qn;function Qn(e,t=null,n=null,o=0,a=null,l=!1){if(e&&e!==bn||("production"===process.env.NODE_ENV||e||Ut(`Invalid vnode type when creating vnode: ${e}.`),e=Vn),(s=e)&&!0===s.__v_isVNode){const o=jn(e,t,!0);return n&&Xn(o,n),!l&&zn&&(6&o.shapeFlag?zn[zn.indexOf(e)]=o:zn.push(o)),o.patchFlag|=-2,o}var s;if(io(e)&&(e=e.__vccOpts),t){t=function(e){return e?Nt(e)||qn in e?Q({},e):e:null}(t);let{class:e,style:n}=t;e&&!ee(e)&&(t.class=_e(e)),ne(n)&&(Nt(n)&&!X(n)&&(n=Q({},n)),t.style=ge(n))}const i=ee(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:ne(e)?4:Z(e)?2:0;return"production"!==process.env.NODE_ENV&&4&i&&Nt(e)&&Ut("Vue received a Component which was made a reactive object. This can lead to unnecessary performance overhead, and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.","\nComponent that was made reactive: ",e=wt(e)),function(e,t=null,n=null,o=0,a=null,l=(e===$n?0:1),s=!1,i=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Wn(t),ref:t&&Mn(t),scopeId:vn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:l,patchFlag:o,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:hn};return i?(Xn(c,n),128&l&&e.normalize(c)):n&&(c.shapeFlag|=ee(n)?8:16),"production"!==process.env.NODE_ENV&&c.key!=c.key&&Ut("VNode created with invalid key (NaN). VNode type:",c.type),!s&&zn&&(c.patchFlag>0||6&l)&&32!==c.patchFlag&&zn.push(c),c}(e,t,n,o,a,i,l,!0)}function jn(e,t,n=!1){const{props:o,ref:a,patchFlag:l,children:s}=e,i=t?function(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const e in o)if("class"===e)t.class!==o.class&&(t.class=_e([t.class,o.class]));else if("style"===e)t.style=ge([t.style,o.style]);else if(G(e)){const n=t[e],a=o[e];!a||n===a||X(n)&&n.includes(a)||(t[e]=n?[].concat(n,a):a)}else""!==e&&(t[e]=o[e])}return t}(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:i,key:i&&Wn(i),ref:t&&t.ref?n&&a?X(a)?a.concat(Mn(t)):[a,Mn(t)]:Mn(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:"production"!==process.env.NODE_ENV&&-1===l&&X(s)?s.map(Yn):s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==$n?-1===l?16:16|l:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&jn(e.ssContent),ssFallback:e.ssFallback&&jn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Yn(e){const t=jn(e);return X(e.children)&&(t.children=e.children.map(Yn)),t}function Hn(e=" ",t=0){return Gn(Un,null,e,t)}function Xn(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(X(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),Xn(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||qn in t?3===o&&hn&&(1===hn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=hn}}else Z(t)?(t={default:t,_ctx:hn},n=32):(t=String(t),64&o?(n=16,t=[Hn(t)]):n=8);e.children=t,e.shapeFlag|=n}let Kn,Jn,Zn=null,eo="__VUE_INSTANCE_SETTERS__";(Jn=pe()[eo])||(Jn=pe()[eo]=[]),Jn.push((e=>Zn=e)),Kn=e=>{Jn.length>1?Jn.forEach((t=>t(e))):Jn[0](e)};const to=e=>{Kn(e),e.scope.on()},no=()=>{Zn&&Zn.scope.off(),Kn(null)};const oo=/(?:^|[-_])(\w)/g,ao=e=>e.replace(oo,(e=>e.toUpperCase())).replace(/[-_]/g,"");function lo(e,t=!0){return Z(e)?e.displayName||e.name:e.name||t&&e.__name}function so(e,t,n=!1){let o=lo(t);if(!o&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(o=e[1])}if(!o&&e&&e.parent){const n=e=>{for(const n in e)if(e[n]===t)return n};o=n(e.components||e.parent.type.components)||n(e.appContext.components)}return o?ao(o):n?"App":"Anonymous"}function io(e){return Z(e)&&"__vccOpts"in e}var co=In({name:"qt-poster-focus-title",props:{fontSize:{type:Number,default:20}},setup(e,t){}});const ro={class:"absoluteFocusTitleRoot",delayLoad:"400",flexStyle:"${titleFocusStyle}",autoHeight:"",focusable:!1},uo={class:"absoluteFocusMainBgRoot",duplicateParentState:!0,focusable:!1,showIf:"${title.enable}"};co.render=function(e,t,n,s,i,r){const u=o("text-view");return a(),l("div",ro,[c(" 浮动标题"),b(u,{duplicateParentState:!0,focusable:!1,fontSize:26,ellipsizeMode:2,lines:1,paddingRect:[16,18,0,0],gradientBackground:"${floatTitle.background}",style:{height:"64px",color:"#ffffff"},flexStyle:"${floatTitle.style}",text:"${floatTitle}",showIf:"${floatTitle.enable}",gravity:"left",postDelay:"250"}),_("div",uo,[c(" 主标题 "),b(u,{duplicateParentState:!0,focusable:!1,fontSize:30,ellipsizeMode:2,autoHeight:"",maxLines:2,gravity:"left",paddingRect:[16,8,12,8],style:{"background-color":"transparent",color:"#000000"},flexStyle:"${title.style}",text:"${title.text}"}),c(" 副标题 "),b(u,{duplicateParentState:!0,focusable:!1,fontSize:24,ellipsizeMode:2,lines:1,autoHeight:"",gravity:"left|top",paddingRect:[16,0,0,16],style:{color:"rgba(0,0,0,.4)","background-color":"transparent"},flexStyle:"${subTitle.style}",text:"${subTitle.text}",visibility:"${subTitle}"})])])},co.__scopeId="data-v-703673b8",co.__file="src/poster/qt-poster-focus-title.vue";var fo=In({name:"qt-poster-corner-title",props:{fontSize:{type:Number,default:20}},setup(e,t){}});const po={class:"cornerRoot",focusable:!1};fo.render=function(e,t,n,s,i,c){const r=o("text-view");return a(),l("div",po,[b(r,{duplicateParentState:!0,focusable:!1,textSize:e.fontSize,ellipsizeMode:2,lines:1,typeface:"bold",gravity:"center",postDelay:"350",style:{color:"white",padding:"4px 8px",height:"36px"},gradientBackground:"${corner.background}",autoWidth:"",text:"${corner.text}",showIf:"${corner.enable}"},null,8,["textSize"])])},fo.__scopeId="data-v-4b767ea2",fo.__file="src/poster/qt-poster-corner-title.vue";var go=In({name:"qt-poster",components:{"qt-poster-corner-title":fo,"qt-poster-focus-title":co},props:{requestFirstFocus:{type:Boolean,default:!1},loadDelay:{type:Number,default:500},type:{type:Number,default:10001},templateKeyMap:{type:Object,default:()=>null},isFocusable:{type:Boolean,default:!0},enableFocusBorder:{type:Boolean,default:!0}},setup:(e,t)=>({mainTextShowOnState:["normal","selected"]})});const mo=["enableFocusBorder"],ho=["showOnState"],vo={flexStyle:"${floatTitle.style}",class:"qt-ui-poster-title-css",gradientBackground:{colors:["#e5000000","#00000000"],cornerRadii4:[0,0,8,8],orientation:4},duplicateParentState:!0,delayLoad:"500",focusable:!1,showIf:"${floatTitle.enable}"},bo={flexStyle:"${ripple.style}",class:"qt-ui-poster-ripple-view-root-css",showOnState:"focused",focusable:!1,clipChildren:!1},_o=(e=>(y("data-v-3c4765e9"),e=e(),T(),e))((()=>_("img",{src:"${ripple.src}",class:"qt-ui-ripple-img-css",focusable:!1,duplicateParentState:!0,showIf:"${true}",delayLoad:"800"},null,-1)));go.render=function(e,t,n,l,s,i){const r=o("qt-poster-focus-title"),u=o("text-view"),f=o("ripple-view"),g=o("qt-poster-corner-title"),m=o("item-frame");return a(),d(m,{type:e.type,layout:"${layout}",flexStyle:"${style}",focusable:e.isFocusable,eventClick:"",eventFocus:"",name:"poster",class:"qt-ui-poster-root-css",itemShowShimmer:"${shimmer.enable}",hideShadow:"${shadow.enable}",shimmerSize:"${size}"},{default:h((()=>[c("封面"),_("img",{class:"qt-ui-poster-img-css",duplicateParentState:!0,postDelay:"300",focusable:!1,enableFocusBorder:e.enableFocusBorder,flexStyle:"${image.style}",src:"${image.src}"},null,8,mo),c(" 焦点选中时的标题 "),b(r,{focusable:!1,showOnState:"focused"}),_("div",{style:{"flex-direction":"column","background-color":"transparent","z-index":"999"},duplicateParentState:!0,focusable:!1,flexStyle:"${titleStyle}",showOnState:e.mainTextShowOnState},[c(" 浮动标题 "),_("div",vo,[b(u,{duplicateParentState:!0,focusable:!1,textSize:26,ellipsizeMode:2,enablePostTask:"",postDelay:"200",lines:1,gravity:"left",style:{"z-index":"999",height:"50px"},flexStyle:"${floatTitle.style}",text:"${floatTitle.text}"})]),c(" 主标题"),b(u,{duplicateParentState:!0,focusable:!1,textSize:30,ellipsizeMode:2,lines:1,delayLoad:"400",postDelay:"200",gravity:"left",paddingRect:[16,8,0,0],gradientBackground:"${title.background}",style:{"z-index":"999",height:"60px"},flexStyle:"${title.style}",text:"${title.text}",showIf:"${title.enable}"})],8,ho),_("div",bo,[b(f,{class:"qt-ui-ripple-view-css",delayLoad:"800",focusable:!1,duplicateParentState:!0,color:"#FF4E46",isShowRipple:"${ripple.enable}",rippleVisible:"invisible"}),_o]),b(g,{focusable:!1,delayLoad:"600",flexStyle:"${corner.style}",style:{"z-index":"1000",position:"absolute"}}),p(e.$slots,"default")])),_:3},8,["type","focusable"])},go.__scopeId="data-v-3c4765e9",go.__file="src/poster/index.vue";var yo=t({name:"qt-nav-bar",props:{textKey:{type:String,default:"text"},itemGap:{type:Number,default:0},horizontal:{type:Boolean,default:!0},initSelect:{type:Number,default:0},size:{type:String,default:"medium"},navs:{type:Array,default:()=>[]}},setup(e,t){const o=n();let a=n("#f5f5f5"),l=S({normal:"#80ffffff",focused:"#000000",selected:"#F5F5F5"}),s=-1,i=-1;I((()=>e.navs),(e=>{e.length>0&&c(e)}));const c=t=>{t||(t=[]),t.forEach(((t,n)=>{0!==e.itemGap&&(e.horizontal?t.decoration={right:e.itemGap}:t.decoration={bottom:e.itemGap}),t.type||(t.type=2e4)})),o.value?.setListData(t),clearTimeout(i);let n=e.initSelect;n>-1&&(o.value?.scrollToPosition(n),i=setTimeout((()=>{o.value?.setItemSelected(n,!0),r(n)}),300))},r=e=>{clearTimeout(s),s=setTimeout((()=>{t.emit("tab-select",{position:e})}),300)};return{navList:o,focusColor:a,textColor:l,bgPadding:[10,10],onTabChange:e=>{!0===e.hasFocus&&(t.emit("tab-focus",e),r(e.position))},scrollToPosition:e=>{o.value?.scrollToPosition(e)},scrollToTop:()=>{o.value?.scrollToTop()},init:e=>{c(e.data)}}}});const To=["stateTextColor","sateBackgroundPadding"],So=["stateTextColor","sateBackgroundPadding"];var Io,xo;yo.render=function(e,t,n,l,i,c){const r=o("text-view"),u=o("qt-list-view");return e.horizontal?(a(),d(u,{key:0,ref:"navList",clipChildren:!1,clipPadding:!1,horizontal:"",class:"qt-ui-nav-bar-root-horizontal",onItemFocused:e.onTabChange},{default:h((()=>[_("div",{class:"qt-ui-nav-bar-item-css",type:2e4,autoWidth:"",focusable:!0,eventFocus:"",flexStyle:"${style}",clipChildren:!1,style:s({focusBackgroundColor:e.focusColor}),stateTextColor:e.textColor,sateBackgroundPadding:e.bgPadding},[b(r,{autoWidth:"",gravity:"center",lines:1,fontSize:44,class:"qt-ui-nav-bar-item-text-css",duplicateParentState:!0,text:"${text}"})],12,To),p(e.$slots,"default")])),_:3},8,["onItemFocused"])):(a(),d(u,{key:1,ref:"navList",clipChildren:!1,clipPadding:!1,class:"qt-ui-nav-bar-root-vertical",onItemFocused:e.onTabChange},{default:h((()=>[_("div",{class:"qt-ui-nav-bar-item-css",type:2e4,flexStyle:"${style}",eventFocus:"",autoWidth:"",focusable:!0,stateTextColor:e.textColor,style:s({focusBackgroundColor:e.focusColor}),sateBackgroundPadding:e.bgPadding,clipChildren:!1},[b(r,{autoWidth:"",gravity:"center",lines:1,fontSize:44,class:"qt-ui-nav-bar-item-text-css",duplicateParentState:!0,text:"${text}"})],12,So),p(e.$slots,"default")])),_:3},8,["onItemFocused"]))},yo.__file="src/nav-bar/index.vue",function(e){e[e.QT_WATERFALL_SECTION_TYPE_LOADING=-1]="QT_WATERFALL_SECTION_TYPE_LOADING",e[e.QT_WATERFALL_SECTION_TYPE_TITLE=1e3]="QT_WATERFALL_SECTION_TYPE_TITLE",e[e.QT_WATERFALL_SECTION_TYPE_FLEX=1002]="QT_WATERFALL_SECTION_TYPE_FLEX",e[e.QT_WATERFALL_SECTION_TYPE_LIST=1003]="QT_WATERFALL_SECTION_TYPE_LIST",e[e.QT_WATERFALL_SECTION_TYPE_TAB=1003]="QT_WATERFALL_SECTION_TYPE_TAB",e[e.QT_WATERFALL_SECTION_TYPE_INDEPENDENT_ITEM=1004]="QT_WATERFALL_SECTION_TYPE_INDEPENDENT_ITEM",e[e.QT_WATERFALL_SECTION_TYPE_TAB_LIST=1005]="QT_WATERFALL_SECTION_TYPE_TAB_LIST",e[e.QT_WATERFALL_SECTION_TYPE_CARD=1006]="QT_WATERFALL_SECTION_TYPE_CARD",e[e.QT_WATERFALL_SECTION_TYPE_VUE=1007]="QT_WATERFALL_SECTION_TYPE_VUE",e[e.QT_WATERFALL_SECTION_TYPE_END=-1001]="QT_WATERFALL_SECTION_TYPE_END",e[e.QT_WATERFALL_SECTION_TYPE_BLANK=-1e3]="QT_WATERFALL_SECTION_TYPE_BLANK"}(Io||(Io={})),function(e){e[e.QT_WATERFALL_ITEM_TYPE_STANDARD_ITEM=10001]="QT_WATERFALL_ITEM_TYPE_STANDARD_ITEM",e[e.QT_WATERFALL_ITEM_TYPE_TAB=10002]="QT_WATERFALL_ITEM_TYPE_TAB",e[e.QT_WATERFALL_ITEM_TYPE_CARD=10003]="QT_WATERFALL_ITEM_TYPE_CARD"}(xo||(xo={}));var Eo=In({name:"card-item",setup(e,t){const n=P();return{onFocus:function(e){n.isLoggable(C.DEBUG)&&n.d("card-item","------onFocus---------\x3e>>>",e),t.emit("focus",e)}}}});Eo.render=function(e,t,n,l,s,i){const c=o("es-card-container");return a(),d(c,{clipChildren:!1,clipPadding:!1,autoRecycle:!0,disablePlaceholder:"",layout:"${layout}",flexStyle:"${style}",cardId:"${cardId}",focusScale:"${cardPlaceHolder.focusScale}",focusable:"${cardPlaceHolder.focusable}",showPlaceHolder:"${cardPlaceHolder.enable}",placeHolderRadius:"${cardPlaceHolder.radius}",placeHolderRect:"${cardPlaceHolder.rect}",type:10003,onFocus:e.onFocus,class:"qt-ui-waterfall-card-item"},null,8,["onFocus"])},Eo.__scopeId="data-v-599898aa",Eo.__file="src/waterfall/item/card-item.vue";var Fo=In({name:"standard-section",components:{"card-item":Eo},props:{enablePlaceholder:{type:Boolean,default:!0},plateData:{type:String,default:""},useDiff:{type:Boolean,default:!0},cachePool:{type:Object,default:{}},sectionType:{type:Number,default:Io.QT_WATERFALL_SECTION_TYPE_FLEX},standItemType:{type:Number,default:xo.QT_WATERFALL_ITEM_TYPE_STANDARD_ITEM},currentPageIndex:{type:Number,default:-1}},setup(e,t){const n=P();return{onFocus:function(e){n.isLoggable(C.DEBUG)&&n.d("card-item","------onFocus---------\x3e>>>",e),t.emit("focus",e)}}}});const Po=["type"];Fo.render=function(e,t,n,s,i,r){const u=o("text-view"),d=o("qt-poster"),f=o("card-item"),g=o("tv-flex");return a(),l("div",{class:"standard-section-css",blockFocusDirections:["left","right"],clipChildren:!1,clipPadding:!1,type:e.sectionType,focusable:!1,keyName:"_id",flexStyle:"${style}",bringFocusChildToFront:!0,useAdvancedFocusSearch:!0},[b(u,{class:"standard-section-title-text-css",delayLoad:"200",postDelay:"300",flexStyle:"${titleStyle}",focusable:!1,textSize:50,text:"${title}"}),b(g,{class:"standard-section-css",name:"QUICKTVUI_WARTERFALL_LIST",blockFocusDirections:["left","right"],clipChildren:!1,clipPadding:!1,bringFocusChildToFront:!0,cachePool:e.cachePool,useDiff:e.useDiff,keyName:"_id",enablePlaceholder:e.enablePlaceholder,focusScrollTarget:"${focusScrollTarget==true}",list:"${itemList}"},{default:h((()=>[c(" poster "),b(d,{"load-delay":500,type:e.standItemType},null,8,["type"]),c(" card "),b(f,{onFocus:e.onFocus},null,8,["onFocus"]),p(e.$slots,"default")])),_:3},8,["cachePool","useDiff","enablePlaceholder"])],8,Po)},Fo.__scopeId="data-v-227e921e",Fo.__file="src/waterfall/section/flex-section.vue";const Co="tab-list-section";var Lo=In({name:"tabs-list-section",props:{enablePlaceholder:{type:Boolean,default:!0},isSwitchBgScroll:{type:Boolean,default:!1},standItemType:{type:Number,default:10001},tabItemType:{type:Number,default:10002},sectionType:{type:Number,default:Io.QT_WATERFALL_SECTION_TYPE_LIST},fetchPendingData:{type:Function,default:null},arrangeType:{type:String,default:"TB"}},setup(e,t){const n=P();return{blockDirections:["left","right"],onItemBind:function(e){n.isLoggable(C.DEBUG)&&n.d(Co,"----------onItemBind--------------\x3e>>",e)},onItemClick:function(e){n.isLoggable(C.DEBUG)&&n.d(Co,"----------onItemClick--------------\x3e>>",e)},onItemRecycled:function(e){n.isLoggable(C.DEBUG)&&n.d(Co,"----------onItemRecycled--------------\x3e>>",e)},onItemFocused:function(e){n.isLoggable(C.DEBUG)&&n.d(Co,"----------onItemFocused--------------\x3e>>",e)}}}});const ko={class:"qt-ui-section-tab-list-root",focusable:!1,flexStyle:"${style}",blockFocusDirections:["right"],clipChildren:!1,useAdvancedFocusSearch:!0,bringFocusChildToFront:!0},Do=["type"];Lo.render=function(e,t,n,l,s,i){const c=o("text-view"),r=o("qt-poster"),u=o("tv-list"),f=o("tv-item");return a(),d(f,{type:e.sectionType,clipPadding:!1,clipChildren:!1,ref:"listSection",class:"tab-list-section-root-css",onItemClick:e.onItemClick,onItemBind:e.onItemBind,onItemUnbind:e.onItemRecycled,onItemFocused:e.onItemFocused},{default:h((()=>[_("div",ko,[b(c,{class:"tab-list-section-title-text-css",delayLoad:"200",postDelay:"300",flexStyle:"${titleStyle}",focusable:!1,textSize:50,text:"${title}"}),b(u,{list:"${itemList}",horizontal:"",clipChildren:!1,focusable:!1,class:"tab-list-section-list-css",name:"QUICKTVUI_WARTERFALL_LIST",resetOnDetach:!0,enableKeepFocus:"${enableKeepFocus==true}",endHintEnabled:"${enableEndHit}",onScrollEnable:!1,setSelectChildPosition:0,enablePlaceholder:e.enablePlaceholder,cachePoolName:"HorizontalList",blockFocusDirections:e.blockDirections},{default:h((()=>[b(r,{type:e.standItemType},null,8,["type"]),_("div",{type:e.tabItemType,class:"qt-ui-section-tab-list-item",clipChildren:!1,flexStyle:"${style}",style:{"padding-left":"24px","padding-right":"23px","justify-content":"center",height:"50px"},autoWidth:"",name:"QUICKTVUI_TAB_2",focusable:!0,eventClick:"",eventFocus:""},[b(c,{class:"qt-ui-section-tab-list-item-text",autoWidth:"",flexStyle:"${textStyle}",gravity:"center",fontSize:36,lines:1,focusable:!1,duplicateParentState:!0,style:{height:"50px"},text:"${text}"})],8,Do),p(e.$slots,"default")])),_:3},8,["enablePlaceholder","blockFocusDirections"])])])),_:3},8,["type","onItemClick","onItemBind","onItemUnbind","onItemFocused"])},Lo.__scopeId="data-v-88e60816",Lo.__file="src/waterfall/section/tabs-list-section.vue";var No=In({name:"loading-section"});const wo={focusable:!1,type:-1,class:"loading-section-css"};No.render=function(e,t,n,s,i,c){const r=o("qt-loading-view");return a(),l("div",wo,[b(r,{class:"loading-section-loading-css"})])},No.__scopeId="data-v-48609f24",No.__file="src/waterfall/section/loading-section.vue";var Oo=In({name:"end-section",setup:()=>({})});const Ao={type:-1001,focusable:!1,flexStyle:"${style}",class:"qt-waterfall-end-section-css"};Oo.render=function(e,t,n,s,i,c){const r=o("text-view");return a(),l("div",Ao,[b(r,{focusable:!1,gravity:"center",flexStyle:"${titleStyle}",class:"qt-waterfall-end-section-text-css",fontSize:28,text:"${title}"})])},Oo.__scopeId="data-v-70b82c43",Oo.__file="src/waterfall/section/end-section.vue";var Ro=In({props:{plateTitleLeftMargin:{type:Number,default:0},type:{type:Number,default:Io.QT_WATERFALL_SECTION_TYPE_TITLE}},setup:(e,t)=>({})});const Bo=["type"];Ro.render=function(e,t,n,i,c,r){const u=o("text-view");return a(),l("div",{class:"section-title-css",blockFocusDirections:["left","right"],clipChildren:!1,clipPadding:!1,type:e.type,focusable:!1,bringFocusChildToFront:!0,useAdvancedFocusSearch:!0},[b(u,{class:"section-title-text-css",delayLoad:"200",postDelay:"300",style:s({marginLeft:e.plateTitleLeftMargin+"px"}),focusable:!1,textSize:50,text:"${title}"},null,8,["style"])],8,Bo)},Ro.__scopeId="data-v-20428d40",Ro.__file="src/waterfall/section/section-title.vue";var $o=In({name:"blank-section",setup:()=>({})});const Uo={focusable:!1,type:-1e3,flexStyle:"${style}",class:"qt-ui-waterfall-blank-section"};$o.render=function(e,t,n,o,s,i){return a(),l("div",Uo)},$o.__scopeId="data-v-eeab4d88",$o.__file="src/waterfall/section/blank-section.vue";var Vo=In({name:"card-section",setup(e,t){const n=P();return{onFocus:function(e){n.isLoggable(C.DEBUG)&&n.d("card-section","------onFocus---------\x3e>>>",e),t.emit("focus",e)}}}});const zo={type:1006,class:"qt-ui-waterfall-card-section-css",clipChildren:!1,clipPadding:!1,focusScrollTarget:"${isFocusScrollTarget}",keyName:"_id",flexStyle:"${style}",bringFocusChildToFront:!0,useAdvancedFocusSearch:!0};Vo.render=function(e,t,n,s,i,c){const r=o("text-view"),u=o("es-card-container");return a(),l("div",zo,[b(r,{class:"qt-ui-waterfall-card-section-title-css",delayLoad:"200",postDelay:"300",flexStyle:"${titleStyle}",focusable:!1,textSize:50,text:"${title}"}),b(u,{cardId:"${cardId}",onFocus:e.onFocus,clipChildren:!1,clipPadding:!1,autoRecycle:!0,focusScale:"${cardPlaceHolder.focusScale}",focusable:"${cardPlaceHolder.focusable}",showPlaceHolder:"${cardPlaceHolder.enable}",placeHolderRadius:"${cardPlaceHolder.radius}",placeHolderRect:"${cardPlaceHolder.rect}",flexStyle:"${cardStyle}",class:"qt-ui-waterfall-card-section"},null,8,["onFocus"])])},Vo.__scopeId="data-v-43a44788",Vo.__file="src/waterfall/section/card-section.vue";var qo=In({name:"vue-section",setup:(e,t)=>({onSectionBind:function(){}})});function Wo(e,t){const n=[];if(t&&t.length>0)for(let o=0;o<t.length;o++){let a=Mo(e,t[o]);n.push(a)}return n}function Mo(e,t){let n=0;return t.itemList.length>0&&(n=function(e,t){const n=t.itemList,o=t.style?.spacing??0,a=t.titleStyle,l=a?.height??0,s=a?.marginTop??0,i=a?.marginBottom??0,c=a?.paddingTop??0,r=a?.paddingBottom??0;let u=0,d=0,f=0,p=0;for(let t=0;t<n.length;t++){const a=n[t],l=a.decoration,s=l?.left??0,i=l?.top??0,c=l?.right??0,r=l?.bottom??0;let g=a?.style.width??0,m=a?.style.height??0;u+g+c>=e&&(d+=f+o,f=0,u=0),a.layout||(a.layout=[0,0,g,m]),a.layout[0]=u+s,a.layout[1]=d+i,a.layout[1]+m+r>p&&(p=a.layout[1]+m+r),m+i+r>f&&(f=m+i+r),u+=g+o+s+c}return p+l+s+i+c+r}(e.width,t),t.style.height=n),t}function Go(){let e=[];function t(e){return e.itemList.length}function n(n,o){console.log("----1--------getRangeSectionListItemCount-----------------\x3e>>>");const a=e.length;if(n<0||n>=a)return 0;console.log("----2--------getRangeSectionListItemCount-----------------\x3e>>>");let l=n+o;n+o>a&&(l=a),console.log("----3--------getRangeSectionListItemCount-----------------\x3e>>>");let s=0;for(let o=n;o<l;o++){s+=t(e[o])}return s}function o(){console.log("--------dumpWaterfallData---------\x3e>>>",e)}return{init:function(){},getSectionList:function(){return e},addSectionList:function(a){const l=e.length,s=n(0,l),i=function(e){if(e.length<=0)return 0;let n=0;for(let o=0;o<e.length;o++){n+=t(e[o])}return n}(a);return e.push(...a),o(),{sectionIndex:l,sectionCount:a.length,itemIndex:s,itemCount:i}},deleteSection:function(t,a){const l=n(0,t-1),s=n(t,a);return e.splice(t,a),o(),{sectionIndex:t,sectionCount:a,itemIndex:l,itemCount:s}},updateSection:function(a,l){const s=n(0,a-1),i=t(l);return e.splice(a,1,l),o(),{sectionIndex:a,sectionCount:1,itemIndex:s,itemCount:i}},getSection:function(t){if(!(t<0||t>=e.length||0==e.length))return e[t]},addItemList:function(t,n){const a=e.length;if(t<0||t>=a||n.length<=0)return{sectionIndex:-1,sectionCount:0,itemIndex:-1,itemCount:0};const l=e[t],s=l.itemList.length;return l.itemList.push(...n),o(),{sectionIndex:t,sectionCount:1,itemIndex:s,itemCount:n.length}},deleteItem:function(t,n,a){return e[t].itemList.splice(n,a),o(),{sectionIndex:t,sectionCount:1,itemIndex:n,itemCount:a}},updateItem:function(t,n,a){return e[t].itemList.splice(n,1,a),o(),{sectionIndex:t,sectionCount:1,itemIndex:n,itemCount:1}},updateItemList:function(t,n,a,l){return e[t].itemList.splice(n,a,...l),o(),{sectionIndex:t,sectionCount:1,itemIndex:n,itemCount:a}},getItem:function(t,n){const o=e[t];if(o&&o.itemList.length>0&&n>=0&&n<o.itemList.length){return o.itemList[n]}},destroy:function(){e=[]}}}qo.render=function(e,t,n,l,s,i){const c=o("tv-item");return a(),d(c,{class:"qt-ui-waterfall-vue-section",type:1007,blockFocusDirections:["left","right"],clipChildren:!1,clipPadding:!1,flexStyle:"${style}",singleton:"",onItemBind:e.onSectionBind},{default:h((()=>[p(e.$slots,"default")])),_:3},8,["onItemBind"])},qo.__scopeId="data-v-f8447724",qo.__file="src/waterfall/section/vue-section.vue";const Qo="qt-waterfall";var jo,Yo=In({name:"qt-waterfall",emits:["onScroll","onScrollStateChanged","onItemClick","onItemFocused","onSectionBind","onSectionAttached"],props:{enablePlaceholder:{type:Boolean,default:!0},prevLoadNumber:{type:Number,default:3},backTop:{type:Function,default:()=>{}},isLoadMore:{type:Boolean,default:!0},headBlank:{type:Number,default:90},blockFocusDirections:{type:Array,default:()=>["down"]}},setup(e,t){const o=P(),a={name:"tvList"+Date.now(),size:{20008:10}},l=n();let s;const i=Go();return{waterfallRef:l,init:function(e){s=e},setAutoFocus:function(e,t){l.value?.setAutoFocus(e,t)},getSectionList:function(){return i.getSectionList()},setSectionList:function(e){if(!s)return;o.isLoggable(C.DEBUG)&&o.d(Qo,"-------1---setSectionList--------------\x3e>>"),i.destroy();const t=i.addSectionList(e);o.isLoggable(C.DEBUG)&&o.d(Qo,"-------2---setSectionList--------------\x3e>>",t);const n=Wo(s,e);o.isLoggable(C.DEBUG)&&o.d(Qo,"----------setSectionList-----最终数据---------\x3e>>",n),l.value?.setListData(n)},addSectionList:function(e){if(!s)return;i.addSectionList(e);const t=Wo(s,e);o.isLoggable(C.DEBUG)&&o.d(Qo,"----------addSectionList-----最终数据---------\x3e>>",t),l.value?.addListData(t)},deleteSection:function(e,t){const n=i.deleteSection(e,t);o.isLoggable(C.DEBUG)&&o.d(Qo,"----------deleteSection-----最终数据---------\x3e>>",n),l.value?.deleteItem(e,t)},updateSection:function(e,t){i.updateSection(e,t);const n=Mo(s,t);o.isLoggable(C.DEBUG)&&o.d(Qo,"----------updateSection-----最终数据---------\x3e>>sectionIndex:"+e+"updateSection:"+n),l.value?.updateItem(e,n)},updateSectionList:function(e,t,n){const o=[];for(let t=0;t<n.length;t++){const a=n[t];i.updateSection(e+t,a);const l=Mo(s,a);l&&o.push(l)}l.value?.updateItemList(e,t,o)},getSection:function(e){return i.getSection(e)},addItemList:function(e,t){i.addItemList(e,t);const n=i.getSection(e);if(n){const t=Mo(s,n);l.value?.updateItem(e,t)}},deleteItem:function(e,t,n){i.deleteItem(e,t,n);const o=i.getSection(e);if(o){const t=Mo(s,o);l.value?.updateItem(e,t)}},updateItem:function(e,t,n){i.updateItem(e,t,n);const o=i.getSection(e);if(o){const t=Mo(s,o);l.value?.updateItem(e,t)}},updateItemList:function(e,t,n,o){i.updateItemList(e,t,n,o);const a=i.getSection(e);if(a){const t=Mo(s,a);l.value?.updateItem(e,t)}},getItem:function(e,t){return i.getItem(e,t)},cachePool:a,flexCachePool:{name:"tvFlex",size:{1:50}},onScroll:function(e){e.stopPropagation();let n=e.offsetX,o=e.offsetY;t.emit("onScroll",n,o)},onItemClick:function(e){o.isLoggable(C.DEBUG)&&o.d(Qo,"----------onItemClick--------------\x3e>>",e,"sectionIndex:"+e.parentPosition+" position:"+e.position+" "),t.emit("onItemClick",e.parentPosition,e.position,e.item)},onItemFocused:function(e){o.isLoggable(C.DEBUG)&&o.d(Qo,"----------onItemFocused--------------\x3e>>",e,"sectionIndex:"+e.parentPosition+" position:"+e.position+" isFocused:"+e.isFocused+" "),t.emit("onItemFocused",e.parentPosition,e.position,e.isFocused,e.item)},onSectionBind:function(e){if(e){o.isLoggable(C.DEBUG)&&o.d(Qo,"----------onSectionBind--------------\x3e>>",e);let n=e.pageIndex??0;t.emit("onSectionBind",n,e.position)}},onSectionAttached:function(e){if(e){o.isLoggable(C.DEBUG)&&o.d(Qo,"----------onSectionAttached--------------\x3e>>",e);let n=e.pageIndex??0;t.emit("onSectionAttached",n,e.position)}},onScrollStateChanged:function(e){let n=e.offsetY,o=e.offsetX,a=e.newState;t.emit("onScrollStateChanged",o,n,a)},resumePostTask:function(){l.value?.pausePostTask()},pausePostTask:function(){l.value?.pausePostTask()},clearPostTask:function(){l.value?.clearPostTask()},destroy:function(){l.value?.destroy()},scrollToTop:function(){l.value?.scrollToTop()}}},components:{"flex-section":Fo,"tabs-list-section":Lo,"section-title":Ro,"loading-section":No,"end-section":Oo,"blank-section":$o,"card-section":Vo,"vue-section":qo}});function Ho(){const e=new Map,t=new Map;function n(n){const o={index:n,state:jo.QT_TAB_PAGE_STATE_IDLE};e.set(n,o),t.set(n,[])}function o(e){return e.itemList.length}function a(e,t,n){const a=e.length;if(t<0||t>=a)return 0;let l=t+n;t+n>a&&(l=a),console.log("----3--------getRangeSectionListItemCount-----------------\x3e>>>");let s=0;for(let n=t;n<l;n++){s+=o(e[n])}return s}function l(){console.log("--------dumpTabWaterfallData---------\x3e>>>",t)}return{initTab:function(e){const t=e.itemList;for(let e=0;e<t.length;e++)n(e)},getTabPageData:function(t){return e.get(t)},setTabPageData:function(t,n){e.set(t,n)},getSectionList:function(e){return t.get(e)??[]},addSectionList:function(n,s){const i=t.get(n)??[],c=i.length,r=a(i,0,c),u=function(e){if(e.length<=0)return 0;let t=0;for(let n=0;n<e.length;n++){t+=o(e[n])}return t}(s);i.push(...s);const d=e.get(n);return d&&(d.state=jo.QT_TAB_PAGE_STATE_IDLE),l(),{pageIndex:n,sectionIndex:c,sectionCount:s.length,itemIndex:r,itemCount:u}},deleteSection:function(e,n,o){const s=t.get(e)??[],i=a(s,0,n-1),c=a(s,n,o);return s.splice(n,o),l(),{pageIndex:e,sectionIndex:n,sectionCount:o,itemIndex:i,itemCount:c}},updateSection:function(e,n,s){const i=t.get(e)??[],c=a(i,0,n-1),r=o(s);return i.splice(n,1,s),l(),{pageIndex:e,sectionIndex:n,sectionCount:1,itemIndex:c,itemCount:r}},updateSectionList:function(e,n){return t.set(e,n),l(),{pageIndex:e,sectionIndex:0,sectionCount:n.length,itemIndex:-1,itemCount:-1}},getSection:function(e,n){const o=t.get(e)??[];if(!(n<0||n>=o.length||0==o.length))return o[n]},addItemList:function(e,n,o){const a=t.get(e)??[],s=a.length;if(n<0||n>=s||o.length<=0)return{pageIndex:e,sectionIndex:-1,sectionCount:0,itemIndex:-1,itemCount:0};const i=a[n],c=i.itemList.length;return i.itemList.push(...o),l(),{pageIndex:e,sectionIndex:n,sectionCount:1,itemIndex:c,itemCount:o.length}},deleteItem:function(e,n,o,a){return(t.get(e)??[])[n].itemList.splice(o,a),l(),{pageIndex:e,sectionIndex:n,sectionCount:1,itemIndex:o,itemCount:a}},updateItem:function(e,n,o,a){return(t.get(e)??[])[n].itemList.splice(o,1,a),l(),{pageIndex:e,sectionIndex:n,sectionCount:1,itemIndex:o,itemCount:1}},updateItemList:function(e,n,o,a,s){return(t.get(e)??[])[n].itemList.splice(o,a,...s),l(),{pageIndex:e,sectionIndex:n,sectionCount:1,itemIndex:o,itemCount:a}},getItem:function(e,n,o){const a=(t.get(e)??[])[n];if(a&&a.itemList.length>0&&o>=0&&o<a.itemList.length){return a.itemList[o]}},destroy:function(){t.clear()}}}Yo.render=function(e,t,n,l,s,i){const r=o("flex-section"),u=o("tabs-list-section"),f=o("loading-section"),g=o("end-section"),m=o("blank-section"),v=o("card-section"),_=o("vue-section"),y=o("tv-list");return a(),d(y,{ref:"waterfallRef",class:"qt-waterfall-root-css",clipChildren:!1,clipPadding:!1,listenBoundEvent:!0,negativeKeyTime:"30",postContentDelay:"500",onScroll:e.onScroll,onItemClick:e.onItemClick,onItemFocused:e.onItemFocused,onItemBind:e.onSectionBind,onItemAttached:e.onSectionAttached,focusMemory:!1,cachePool:e.cachePool,preload:1,checkScrollOffsetOnStateChanged:!0,makeChildVisibleType:"center",scrollThresholdVertical:50,scrollEventThrottle:16,enableSelectOnFocus:!1,advancedFocusSearchSpan:"1",scrollYLesserReferenceValue:30,scrollYGreaterReferenceValue:30,shakePreCheckNumber:"4",blockFocusDirections:e.blockFocusDirections,onScrollStateChanged:e.onScrollStateChanged},{default:h((()=>[c(" 普通版块"),b(r,{"cache-pool":e.flexCachePool,enablePlaceholder:e.enablePlaceholder,onFocus:e.onItemFocused},{default:h((()=>[p(e.$slots,"item")])),_:3},8,["cache-pool","enablePlaceholder","onFocus"]),c("一行滚动 多级tab"),b(u,{enablePlaceholder:e.enablePlaceholder},{default:h((()=>[p(e.$slots,"list-item")])),_:3},8,["enablePlaceholder"]),c(" loading"),b(f),c(" end "),b(g),c(" blank "),b(m),c(" card "),b(v,{onFocus:e.onItemFocused},null,8,["onFocus"]),c(" vue "),b(_,null,{default:h((()=>[p(e.$slots,"vue-section")])),_:3}),p(e.$slots,"section")])),_:3},8,["onScroll","onItemClick","onItemFocused","onItemBind","onItemAttached","cachePool","blockFocusDirections","onScrollStateChanged"])},Yo.__file="src/waterfall/index.vue",function(e){e[e.QT_TAB_PAGE_STATE_IDLE=0]="QT_TAB_PAGE_STATE_IDLE",e[e.QT_TAB_PAGE_STATE_BUSY=1]="QT_TAB_PAGE_STATE_BUSY",e[e.QT_TAB_PAGE_STATE_COMPLETE=2]="QT_TAB_PAGE_STATE_COMPLETE",e[e.QT_TAB_PAGE_STATE_ERROR=3]="QT_TAB_PAGE_STATE_ERROR"}(jo||(jo={}));const Xo="qt-tab";var Ko=In({name:"qt-tab",emits:["onTabPageLoadData","onTabPageChanged","onTabEvent","onTabPageItemClick","onTabPageItemFocused","onTabPageSectionAttached","onTabPageScroll","onTabPageScrollStateChanged","onTabMoveToTopStart","onTabMoveToTopEnd","onTabMoveToBottomStart","onTabMoveToBottomEnd","onTabChanged","onTabPageScrollToEnd","onTabPageScrollToStart"],props:{preloadNumber:{type:Number,default:3},tabNavBarClass:{type:String,default:""},tabClass:{type:String,default:""},tabsDataStrategy:{type:String,default:"overTime"},tabContentClass:{type:String,default:""},horizontal:{type:Boolean,default:!0},pageTransform:{type:Boolean,default:!0},hideOnSingleTab:{type:Boolean,default:!0},floatNavBar:{type:Boolean,default:!0},contentNextFocus:{type:Object,default:()=>({up:"tabList",left:"tabList"})},triggerTask:{type:Array,default:()=>[]},blockViewPager:{type:Array,default:()=>[]},blockViewPagerVertical:{type:Array,default:()=>[]},tabContentBlockFocusDirections:{type:Array,default:()=>["down"]},tabContentResumeDelay:{type:Number,default:500},tabContentSwitchDelay:{type:Number,default:300}},setup(e,t){const o=n(),a=n(!0),l=n(1),s=n(!0),i=P(),c=n(),r=Ho();let u,d=-1;function f(e,t){const n=r.getTabPageData(e);n&&(n.state=t,r.setTabPageData(e,n))}function p(n,o,a){let l=r.getTabPageData(n);if(l&&l.state===jo.QT_TAB_PAGE_STATE_IDLE){a>=r.getSectionList(n).length-e.preloadNumber-1&&(i.isLoggable(C.DEBUG)&&i.d(Xo,"----------loadPageData----加载数加载据--\x3e>>> pageIndex:"+n+" sectionIndex:"+a),t.emit("onTabPageLoadData",n,o),f(n,jo.QT_TAB_PAGE_STATE_BUSY))}else i.isLoggable(C.DEBUG)&&i.d(Xo,"----------loadPageData--状态不对--\x3e>>>",n)}function g(e,n){i.isLoggable(C.DEBUG)&&i.d(Xo,"----------onWaterfallScroll----\x3e>>> offsetX:"+e+" scrollY:"+n),t.emit("onTabPageScroll",e,n)}function m(e,n,o){i.isLoggable(C.DEBUG)&&i.d(Xo,"----------onWaterfallScrollStateChanged----\x3e>>> offsetX:"+e+" scrollY:"+n+" newState:"+o),t.emit("onTabPageScrollStateChanged",e,n,o)}return{tabs:o,ifTabs:a,navBarRef:c,initTab:function(e){let t={defaultIndex:e.defaultIndex,focusIndex:e.defaultFocusIndex,data:e.itemList};r.initTab(e),o.value?.setTabsData(t)},setAutoFocus:function(e,t){o.value?.setAutoFocus(e,t)},initWaterfall:function(e){u=e},setTagPageSate:f,setTabPageData:function(e,t){i.isLoggable(C.DEBUG)&&i.d(Xo,"----------loadPageData----setTabPageData--\x3e>>>pageIndex:"+e),r.addSectionList(e,t.data);const n={data:Wo(u,t.data),disableScrollOnFirstScreen:t.disableScrollOnFirstScreen??!1,firstFocusTargetID:t.firstFocusTargetID??"",useDiff:t.useDiff};i.isLoggable(C.DEBUG)&&i.d(Xo,"------设置数据----setTabPageData------\x3e>>> pageIndex:"+e+" data:",n),o.value?.setPageData(e,n)},addPageData:function(e,t,n=0){i.isLoggable(C.DEBUG)&&i.d(Xo,"----------loadPageData----addPageData--\x3e>>>pageIndex:"+e),r.addSectionList(e,t.data);const a={data:Wo(u,t.data),disableScrollOnFirstScreen:t.disableScrollOnFirstScreen??!1,firstFocusTargetID:t.firstFocusTargetID??"",useDiff:t.useDiff};i.isLoggable(C.DEBUG)&&i.d(Xo,"----设置数据------addPageData------\x3e>>> pageIndex:"+e+" data:",a," deleteCount:"+n),o.value?.addPageData(e,a,n)},updatePageData:function(e,t){r.updateSectionList(e,t.data);const n={data:Wo(u,t.data),disableScrollOnFirstScreen:t.disableScrollOnFirstScreen??!1,firstFocusTargetID:t.firstFocusTargetID??"",useDiff:t.useDiff};o.value?.updatePageData(e,n)},updatePageSection:function(e,t,n){r.updateSection(e,t,n);const a=Mo(u,n);o.value?.updateRootNode(e,t,a)},getPageSection:function(e,t){return r.getSection(e,t)},getPageSectionList:function(e){return r.getSectionList(e)},deletePageSection:function(e,t,n){r.deleteSection(e,t,n),o.value?.invokeContentFunction(e,"deleteItemRange",[t,n])},addPageItemList:function(e,t,n){r.addItemList(e,t,n);const a=r.getSection(e,t);if(a){const n=Mo(u,a);o.value?.updateRootNode(e,t,n)}},getPageItem:function(e,t,n){return r.getItem(e,t,n)},updatePageItem:function(e,t,n,a){r.updateItem(e,t,n,a),o.value?.updateChildNode(e,t,n,a)},deletePageItem:function(e,t,n,a){r.deleteItem(e,t,n,a);const l=r.getSection(e,t);if(l){const n=Mo(u,l);o.value?.updateRootNode(e,t,n)}},blockRootFocus:function(){o.value?.blockRootFocus()},unBlockRootFocus:function(){o.value?.unBlockRootFocus()},focusBackToTop:function(){o.value?.focusBackToTop()},requestNodeFocus:function(e){o.value?.requestNodeFocus(e)},reloadAll:function(e=!0){o.value?.reloadAll(e)},reloadPage:function(e){o.value?.reloadPage(e)},setCurrentPage:function(e){o.value?.setCurrentPage(e)},requestTabFocus:function(e){o.value?.requestTabFocus(e)},invokeContentFunction:function(e,t,n){o.value?.invokeContentFunction(e,t,n)},invokeContentFunctionDirect:function(e,t){o.value?.invokeContentFunctionDirect(e,t)},contentScrollToFocus:function(e){o.value?.contentScrollToFocus(e)},getRootNodeViewState:function(e,t,n){o.value?.getRootNodeViewState(e,t,n)},getChildNodeViewState:function(e,t,n,a,l){o.value?.getChildNodeViewState(e,t,n,a,l)},dispatchUIFunctionOnChildNode:function(e,t,n,a,l){o.value?.dispatchUIFunctionOnChildNode(e,t,n,a,l)},updateItemMatched:function(e="id",t,n){o.value?.updateItemMatched(e,t,n)},updateRootNode:function(e,t,n){o.value?.updateRootNode(e,t,n)},updateChildNode:function(e,t,n,a){o.value?.updateChildNode(e,t,n,a)},destroy:function(){o.value?.destroy()},rootOpacity:l,isTabHorizontal:s,onTabPageLoadData:function(e){const t=e.pageIndex,n=e.useDiff;i.isLoggable(C.DEBUG)&&i.d(Xo,"----------loadPageData----android--\x3e>>>pageIndex:"+t),p(t,n,0)},onTabPageChanged:function(e){const n=e.pageIndex;d=n;const o=e.data;i.isLoggable(C.DEBUG)&&i.d(Xo,"----------onTabPageChanged------\x3e>>> pageIndex:"+n+" data:",o),t.emit("onTabPageChanged",n,o)},onTabEvent:function(e){const n=e.params,o=e.eventName,a=e.params.itemPosition,l=e.params.x,s=e.params.y,c=e.params.contentOffset,r=e.params.state;switch(i.isLoggable(C.DEBUG)&&i.d(Xo,"----------onTabEvent------\x3e>>> eventName:"+o+" tabIndex:"+a+" params:",n),t.emit("onTabEvent",a,o,n),o){case"onMoveToTopStart":t.emit("onTabMoveToTopStart",a,o,n);break;case"onMoveToTopEnd":t.emit("onTabMoveToTopEnd",a,o,n);break;case"onMoveToBottomStart":t.emit("onTabMoveToBottomStart",a,o,n);break;case"onMoveToBottomEnd":t.emit("onTabMoveToBottomEnd",a,o,n);break;case"onTabChanged":t.emit("onTabChanged",a,o,n);break;case"onScroll":g(l,s);break;case"onScrollStateChanged":m(c.x,c.y,r.newState)}},onWaterfallItemClick:function(e,n,o){i.isLoggable(C.DEBUG)&&i.d(Xo,"-----------onWaterfallItemClick---------------\x3e>>> sectionIndex:"+e+" itemIndex:"+n+" item:",o),t.emit("onTabPageItemClick",d,e,n,o)},onWaterfallItemFocused:function(e,n,o,a){i.isLoggable(C.DEBUG)&&i.d(Xo,"-----------onWaterfallItemFocused---------------\x3e>>> sectionIndex:"+e+" itemIndex:"+n+" isFocused:"+o+" item:",a),t.emit("onTabPageItemFocused",d,e,n,o,a)},onWaterfallSectionBind:function(e,t){i.isLoggable(C.DEBUG)&&i.d(Xo,"-----------onWaterfallSectionBind---------------\x3e>>> pageIndex:"+e+" sectionIndex:"+t),e===d&&(i.isLoggable(C.DEBUG)&&i.d(Xo,"----------loadPageData----bind--\x3e>>>pageIndex:"+e),p(e,!1,t))},onWaterfallSectionAttached:function(e,n){i.isLoggable(C.DEBUG)&&i.d(Xo,"-----------onWaterfallSectionAttached---------------\x3e>>> pageIndex:"+e+" sectionIndex:"+n),t.emit("onTabPageSectionAttached",e,n)},onWaterfallScroll:g,onWaterfallScrollStateChanged:m,onTabPageScrollToStart:function(e){const n=e.pageIndex;t.emit("onTabPageScrollToStart",n),i.isLoggable(C.DEBUG)&&i.d(Xo,"----------onTabPageScrollToStart------\x3e>>> pageIndex:"+n)},onTabPageScrollToEnd:function(e){const n=e.pageIndex;t.emit("onTabPageScrollToEnd",n),i.isLoggable(C.DEBUG)&&i.d(Xo,"----------onTabPageScrollToEnd------\x3e>>> pageIndex:"+n)}}}});Ko.render=function(e,t,n,l,s,r){const u=o("qt-nav-bar"),f=o("qt-waterfall"),g=o("recycler-view-pager"),m=o("tabs");return e.ifTabs?(a(),d(m,{key:0,ref:"tabs",class:i(["tabs-root-css",e.tabClass]),dataStrategy:e.tabsDataStrategy,hideOnSingleTab:this.hideOnSingleTab,pageSwitchDelay:e.tabContentSwitchDelay,resumeTaskDelay:e.tabContentResumeDelay,suspension:this.floatNavBar,clipChildren:!1,outOfDateTime:3e5,blockFocusDirections:e.tabContentBlockFocusDirections,onScrollToStart:e.onTabPageScrollToStart,onScrollToEnd:e.onTabPageScrollToEnd,onLoadPage:e.onTabPageLoadData,onPageChanged:e.onTabPageChanged,onTabEvent:e.onTabEvent},{default:h((()=>[b(u,{ref:"navBarRef",name:"tabList",focusable:!1,class:i(e.tabNavBarClass),"text-key":"text",clipChldren:!1,horizontal:e.isTabHorizontal},{default:h((()=>[p(e.$slots,"tab-item")])),_:3},8,["class","horizontal"]),b(g,{nextFocusName:e.contentNextFocus,ref:"viewPager",class:i(e.tabContentClass),name:"content",loadingItemType:-1,clipChldren:!1,opacity:e.rootOpacity,focusable:!1,enableTransform:e.pageTransform,triggerTask:e.triggerTask,direction:e.isTabHorizontal?"horizontal":"vertical",blockFocusDirections:e.isTabHorizontal?e.blockViewPager:e.blockViewPagerVertical},{default:h((()=>[b(f,{onOnScrollStateChanged:e.onWaterfallScrollStateChanged,onOnScroll:e.onWaterfallScroll,onOnSectionBind:e.onWaterfallSectionBind,onOnSectionAttached:e.onWaterfallSectionAttached,onOnItemFocused:e.onWaterfallItemFocused,onOnItemClick:e.onWaterfallItemClick},{item:h((()=>[p(e.$slots,"waterfall-item")])),section:h((()=>[p(e.$slots,"waterfall-section")])),_:3},8,["onOnScrollStateChanged","onOnScroll","onOnSectionBind","onOnSectionAttached","onOnItemFocused","onOnItemClick"])])),_:3},8,["nextFocusName","class","opacity","enableTransform","triggerTask","direction","blockFocusDirections"])])),_:3},8,["dataStrategy","hideOnSingleTab","pageSwitchDelay","resumeTaskDelay","suspension","class","blockFocusDirections","onScrollToStart","onScrollToEnd","onLoadPage","onPageChanged","onTabEvent"])):c("v-if",!0)},Ko.__file="src/tab/index.vue";var Jo=In({name:"qt-classified-list-view",props:{className:{type:String,default:"content_list_view"},classNavName:{type:String,default:"nav_list_view"},currentFocusIndex:{type:Number,default:0},focusScale:{type:Number,default:1.15},navType:{type:Number,default:10001},yOffest:{type:Number,default:802}},emits:["item-click","item-focused"],setup(e,t){let o=n(1);const a=n(),l=n();let s=[],i=-1,c=-1,r=[];let u=-1;let d=-1;return{descendantFocusability:o,content_list_view:a,nav_list_view:l,init:t=>{t.forEach(((n,o)=>{n.mask||(n.mask="http://qcloudcdn.a311.ottcn.com/channelzero_image/web_static/extend_screen/mood/mask.png"),n.icon||(n.icon="http://qcloudcdn.a311.ottcn.com/channelzero_image/web_static/extend_screen/mood/playing.png"),n.isPlaying=!1,e.currentFocusIndex==o&&(n.isPlaying=!0);let a=!1;for(let e=0;e<s.length;e++){const t=s[e];n.categoryname==t.categoryname&&(n.navIndex=e,a=!0)}a||(n.navIndex||(n.navIndex=s.length),s.push({type:n.type,decoration:{left:50},categoryname:n.categoryname,startIndex:o,isNeedFocus:!0})),r=t})),nn((()=>{a.value?.setListData(t),l.value?.setListData(s),setTimeout((()=>{i=e.currentFocusIndex,c=t[e.currentFocusIndex].navIndex,a.value?.scrollToFocused(i),l.value?.scrollToSelected(c,!0)}),300)}))},onItemBind:()=>{},onSItemClick:e=>{t.emit("item-click",e)},onFItemClick:e=>{t.emit("item-click",e)},scrollToIndex:(e,t=!0,n=802)=>{a.value?.scrollToIndex(e,t,n)},scrollToFocused:e=>{a.value?.scrollToFocused(e)},setItemFocused:e=>{a.value?.setItemFocused(e)},scrollToSelected:(e,t=!0)=>{a.value?.scrollToSelected(e,t)},setItemSelected:(e,t=!0)=>{a.value?.setItemSelected(e,!0)},onSItemFocused:e=>{clearTimeout(u),u=setTimeout((()=>{if(e.hasFocus){if(i!=e.position){if(i>-1){let e=r[i];e.isPlaying=!1,a.value?.updateItem(i,e)}let t=r[e.position];t.isPlaying=!0,a.value?.updateItem(e.position,t)}i=e.position,c!=e.item.navIndex&&(c=e.item.navIndex,l.value?.scrollToSelected(e.item.navIndex,!0)),t.emit("item-focused",e)}else c=e.item.navIndex,l.value?.scrollToFocused(e.item.navIndex)}),300)},onFItemFocused:t=>{o.value=2,clearTimeout(d),d=setTimeout((()=>{t.hasFocus&&c!=t.position&&(c=t.position,r[t.item.startIndex].isNeedFocus?(a.value?.scrollToIndex(t.item.startIndex,!0,e.yOffest),a.value?.setItemSelected(t.item.startIndex,!0)):(a.value?.scrollToIndex(t.item.startIndex+1,!0,e.yOffest),a.value?.setItemSelected(t.item.startIndex+1,!0))),o.value=1}),400)},updateItem:(e,t)=>{r[e]=t,r.forEach(((e,t)=>{e.mask||(e.mask="http://qcloudcdn.a311.ottcn.com/channelzero_image/web_static/extend_screen/mood/mask.png"),e.icon||(e.icon="http://qcloudcdn.a311.ottcn.com/channelzero_image/web_static/extend_screen/mood/playing.png");for(let t=0;t<s.length;t++){const n=s[t];e.categoryname==n.categoryname&&(e.navIndex=t)}})),a.value?.updateItem(e,r[e])}}}});const Zo={focusable:!1,clipChildren:!1},ea=["focusScale"],ta=_("img",{class:"coverV",src:"${coverV}",focusable:!1,postDelay:"300"},null,-1),na=_("img",{src:"${mask}",class:"titMask",focusable:"false",postDelay:"300"},null,-1),oa={focusable:!1,class:"clv_item_text_box",showIf:"${isPlaying}"},aa={class:"playMark",focusable:!1},la={showIf:"${isPlaying==false}",focusable:!1,class:"clv_item_text_box1"},sa=["type"],ia=_("div",{class:"line",focusable:!1,showOnState:"selected",duplicateParentState:!0},null,-1),ca=_("div",{duplicateParentState:!0,class:"nav_item_text_focused",showOnState:"focused",focusable:!1,gradientBackground:{colors:["#FF2F7CEB","#FF1163D8"],cornerRadius:40}},null,-1),ra={class:"nav_item_text",focusable:!1,duplicateParentState:!0};var ua,da,fa;Jo.render=function(e,t,n,r,u,d){const f=o("play-mark"),g=o("text-view"),m=o("qt-list-view");return a(),l("div",Zo,[c(" listview second nav "),b(m,{class:i(e.className),ref:"content_list_view",clipChildren:!1,clipPadding:!1,onItemClick:e.onSItemClick,horizontal:"",blockFocusDirections:["left","right"],descendantFocusability:e.descendantFocusability,onItemFocused:e.onSItemFocused},{default:h((()=>[_("div",{type:10001,name:"clv_item",class:"clv_item",focusable:!0,enableFocusBorder:!0,clipChildren:!1,eventClick:"",eventFocus:"",focusScale:e.focusScale},[ta,na,_("div",oa,[_("div",aa,[b(f,{style:s([{width:"28px",height:"20px"},{"margin-left":"16px"}]),markColor:"#ffffff",gap:-1,focusable:!1})]),b(g,{focusable:!1,ellipsizeMode:2,fontSize:30,gravity:"centerVertical",lines:1,maxLines:1,class:"clv_item_text",text:"${assetTitle}",paddingRect:[6,0,0,0]})]),_("div",la,[b(g,{focusable:!1,ellipsizeMode:2,fontSize:30,gravity:"centerVertical",lines:1,maxLines:1,duplicateParentState:!0,class:"clv_item_selected_text",text:"${assetTitle}",paddingRect:[16,0,0,0],showOnState:["selected"]}),b(g,{focusable:!1,ellipsizeMode:2,fontSize:30,gravity:"centerVertical",lines:1,maxLines:1,duplicateParentState:!0,class:"clv_item_selected_text",text:"",paddingRect:[16,0,0,0],showOnState:["focused","normal"]})])],8,ea),p(e.$slots,"item")])),_:3},8,["class","onItemClick","descendantFocusability","onItemFocused"]),c(" listview first nav "),b(m,{class:i(e.classNavName),ref:"nav_list_view",clipChildren:!1,clipPadding:!1,onItemClick:e.onFItemClick,horizontal:"",blockFocusDirections:["left","right"],onItemFocused:e.onFItemFocused},{default:h((()=>[_("div",{type:e.navType,name:"nav_item",class:"nav_item",focusable:!0,enableFocusBorder:!1,focusScale:"1",eventClick:"",eventFocus:"",clipChildren:!1},[ia,ca,_("div",ra,[b(g,{focusable:!1,ellipsizeMode:2,duplicateParentState:!0,fontSize:44,gravity:"center",lines:1,class:"text_selected",text:"${categoryname}",showOnState:["selected"]}),b(g,{focusable:!1,ellipsizeMode:2,duplicateParentState:!0,fontSize:44,gravity:"center",lines:1,maxLines:1,class:"text",text:"${categoryname}",showOnState:"focused"}),b(g,{focusable:!1,ellipsizeMode:2,duplicateParentState:!0,fontSize:44,gravity:"center",lines:1,class:"text",text:"${categoryname}",showOnState:["normal"]})])],8,sa),p(e.$slots,"navItem")])),_:3},8,["class","onItemClick","onItemFocused"])])},Jo.__file="src/classified-list-view/index.vue",function(e){e.QT_DIRECTION_UP="up",e.QT_DIRECTION_DOWN="down",e.QT_DIRECTION_RIGHT="right",e.QT_DIRECTION_LEFT="left"}(ua||(ua={})),function(e){e[e.SCROLL_STATE_IDLE=0]="SCROLL_STATE_IDLE",e[e.SCROLL_STATE_DRAGGING=1]="SCROLL_STATE_DRAGGING",e[e.SCROLL_STATE_SETTLING=2]="SCROLL_STATE_SETTLING"}(da||(da={})),function(e){e[e.QT_NAV_BAR_ITEM_TYPE_TEXT=2e4]="QT_NAV_BAR_ITEM_TYPE_TEXT"}(fa||(fa={}));const pa=[L,V,go,yo,Yo,Ko,Jo],ga=o=>{o.component("qt-loading-view",{setup(e,t){const o=n();return()=>x("LoadingViewComponent",{ref:o})}}),function(o){const a=t({props:{loadMore:{type:Function,default:function(){return[1,1]}},openPage:{type:Boolean,default:!1},preloadNo:{type:Number,default:0},defaultFocus:{type:Number,default:-1}},emits:["item-click","scroll","item-focused","item-attached","item-detached","item-bind","item-unbind","load-more","scroll-state-changed","focus-search-failed","scrollYGreaterReference","scrollYLesserReference"],setup(t,o){const a=n();F();let l=[],s=[],i=[],c="",r=-1,u=!1,d=-1,f=-1,p=-1,h=-1;g((()=>{t.openPage&&(r=1,u=!1,t.loadMore(r))}));const v=e=>{0==l.length&&(l=U(e),b(l,-1),s=e,t.openPage?T(l.concat([{_id:"",type:1002,decoration:{top:18,bottom:18,right:30,left:30}}])):T(l),t.defaultFocus>-1&&(p&&clearTimeout(p),p=setTimeout((()=>{N(t.defaultFocus)}),500)));let n={get(e,n,o){if("__ob__"!=n&&"symbol"!=typeof n&&"map"!=n&&"length"!=n&&"constructor"!=n&&"_isVue"!=n&&"valueOf"!=n&&"toString"!=n&&"observeArray"!=n&&"dep"!=n&&"notify"!=n&&"subs"!=n&&"slice"!=n)if(i.push(n),-1!=i.indexOf("push"))c="push";else{if(-1!=i.indexOf("splice"))return c="splice",function(...t){return e.splice(...t),-1!=i.indexOf("list")?(l[i[0]].list.splice(...t),P(Number(i[0]),l[i[0]])):1==t.length?E(Number(t[0]),l.length-t[0]+1):2==t.length?E(Number(t[0]),t[1]):t.length>2&&(0==t[1]?L(t[0],t.slice(2)):C(t[0],t[1],t.slice(2))),l.splice(t[0],...t.slice(1)),c="",i=[],Reflect.get(e,n,o)};if(-1!=i.indexOf("pop"))return c="pop",function(){return e.pop(),-1!=i.lastIndexOf("list")?(l[i[0]].list.pop(),P(Number(i[0]),l[i[0]])):(E(Number(l.length-1),1),l.pop()),c="",i=[],Reflect.get(e,n,o)};if(-1!=i.indexOf("forEach"))return c="forEach",function(a){return e.forEach((e=>{a(e)})),l=[],l=U(e),t.openPage?T(l.concat([{_id:"",type:1002,decoration:{top:15,left:30}}])):T(l),c="",i=[],Reflect.get(e,n,o)};if(-1!=i.indexOf("concat"))return c="concat",function(a){return e=e.concat(a),-1!=i.lastIndexOf("list")?(l[i[0]].list=l[i[0]].list.concat(a),P(Number(i[0]),l[i[0]])):(l=l.concat(a),t.openPage&&!u?setTimeout((()=>{I(a.concat([{type:"1002",decoration:{bottom:18,right:30,left:30}}]),1)}),300):S(a)),c="",i=[],Reflect.get(e,n,o)};c=""}const a=Reflect.get(e,n,o);return _(a)&&"__ob__"!=n&&"dep"!=n&&"subs"!=n?v(a):(-1==i.indexOf("push")&&(i=[]),a)},set(e,n,o,a){const r=e[n];y(e,n);const d=Reflect.set(e,n,o,a);if((!_(r)&&r!==o||_(r))&&"push"!=c)if(i.push(n),-1!=i.lastIndexOf("list")){let e=i.lastIndexOf("list"),t=i.lastIndexOf("list")+2,n={};for(let e=0;e<t;e++){let t=i[e];n=n?n[t]:s[t]}n.name="name"+i[e-1]+i[e+1],P(Number(i[0]),s[i[0]]),l[i[0]].list[i[e+1]]=s[i[0]].list[i[e+1]],l[i[0]].list[i[e+1]].name="name"+i[e-1]+i[e+1]}else l[i[0]]=s[i[0]],l[i[0]].name="name"+i[0],P(Number(i[0]),s[i[0]]);if(n&&"push"==c&&r!==o)-1!=i.lastIndexOf("list")?(i.push(n),l[i[0]].list.push(o)):(i.push(n),l.push(o));else{if("push"==c)if(-1!=i.lastIndexOf("list"))P(Number(i[0]),l[i[0]]);else{let e=l.slice(i[1]);h&&clearTimeout(h),h=t.openPage&&!u?setTimeout((()=>{I(e.concat([{_id:"",type:1002,decoration:{bottom:18,right:30,left:30}}]),1)}),300):setTimeout((()=>{S(e)}),300)}c="",i=[]}return d}};return new Proxy(e,n)},b=(e,t)=>{for(let n=0;n<e.length;n++){const o=e[n];o.name=t>=0?"name"+t+n:"name"+n,o.list&&o.list.length>0&&b(o.list,n)}},_=e=>null!==e&&"object"==typeof e,y=(e,t)=>{Object.hasOwnProperty.call(e,t)},T=t=>{d&&clearTimeout(d),d=setTimeout((()=>{e.callUIFunction(a.value,"setListData",t)}),100)},S=t=>{e.callUIFunction(a.value,"addListData",t)},I=(t,n)=>{e.callUIFunction(a.value,"addListDataWithParams",[t,n])},E=(t,n)=>{e.callUIFunction(a.value,"deleteItemRange",[t,n])},P=(t,n)=>{e.callUIFunction(a.value,"updateItem",[t,n])},C=(t,n,o)=>{e.callUIFunction(a.value,"updateItemRange",[t,n,o])},L=(t,n)=>{e.callUIFunction(a.value,"insertItemRange",[t,n])},k=(t,n)=>{e.callUIFunction(a.value,"setSelectChildPosition",[t,n])},D=t=>{e.callUIFunction(a.value,"scrollToPosition",[t])},N=t=>{e.callUIFunction(a.value,"requestChildFocus",[t])};return m((()=>{l=[],s.length=0,i=[],u=!1,r=1,c="",d&&clearTimeout(d),p&&clearTimeout(p),h&&clearTimeout(h),f&&clearTimeout(f)})),o.expose({viewRef:a,init:v,undataItemName:b,hasChanged:(e,t)=>e!==t&&(e==e||t==t),scrollToIndex:(t,n,o)=>{e.callUIFunction(a.value,"scrollToPositionWithOffset",[t,o,n])},updateItem:P,updateItemList:C,hasFocus:t=>{e.callUIFunction(a.value,"hasFocus",(e=>{t(e)}))},updateItemProps:(t,n,o)=>{e.callUIFunction(a.value,"updateItemProps",[n,t,o,!0])},setListData:T,insertItem:L,addListData:S,addListDataWithParams:I,dispatchItemFunction:(t,n,o,l)=>{e.callUIFunction(a.value,"dispatchItemFunction",[t,n,o,l])},deleteItem:E,setBlockFocusDirectionsOnFail:t=>{e.callUIFunction(a.value,"setBlockFocusDirectionsOnFail",[t])},setListDataWithParams:(t,n)=>{e.callUIFunction(a.value,"setListDataWithParams",[t,n])},prepareForRecycle:()=>{e.callUIFunction(a.value,"prepareForRecycle",[])},setDisplay:t=>{e.callUIFunction(a.value,"setDisplay",[t])},scrollToTop:()=>{e.callUIFunction(a.value,"scrollToTop",[])},changeDisplayState:(t,n)=>{e.callUIFunction(a.value,"changeDisplayState",[t,n])},notifySaveInstance:()=>{e.callUIFunction(a.value,"notifySaveInstance",[])},notifyRestoreInstance:()=>{e.callUIFunction(a.value,"notifyRestoreInstance",[])},pausePostTask:()=>{e.callUIFunction(a.value,"pausePostTask",[])},resumePostTask:()=>{e.callUIFunction(a.value,"resumePostTask",[])},getScrollOffset:t=>{e.callUIFunction(a.value,"getScrollOffset",[],t)},scrollToPosition:D,scrollToFocused:e=>{D(e),N(e)},scrollToSelected:(e,t)=>{D(e),k(e,t)},scrollToPositionOffset:(t,n,o,l,s)=>{e.callUIFunction(a.value,"scrollToPositionWithOffset",[n,l,o])},destroy:()=>{e.callUIFunction(a.value,"destroy",[])},setInitPosition:t=>{e.callUIFunction(a.value,"setInitPosition",[t])},setItemFocused:N,clearPostTask:()=>{e.callUIFunction(a.value,"clearAllPostTask",[])},clearFocus:()=>{e.callUIFunction(a.value,"clearFocus",[])},setItemSelected:k,blockRootFocus:()=>{e.callUIFunction(a.value,"blockRootFocus",[])},unBlockRootFocus:()=>{e.callUIFunction(a.value,"unBlockRootFocus",[])},setBackgroundColor:t=>{e.callUIFunction(a.value,"setBackgroundColor",[t])},stopPage:()=>{f&&clearTimeout(f),f=setTimeout((()=>{E(l.length,1)}),400),u=!0},setAutoFocus:function(t,n){e.callUIFunction(a.value,"setAutoFocus",[t,n])}}),()=>{const e=o.slots.default&&o.slots.default();return x("FastListView",{ref:a,onItemClick:e=>{o.emit("item-click",e)},onScroll:e=>{o.emit("scroll",e)},onItemFocused:e=>{o.emit("item-focused",e)},onAttachedToWindow:e=>{o.emit("item-attached",e)},onDetachedFromWindow:e=>{o.emit("item-detached",e)},onBindItem:e=>{e.position==l.length-1-t.preloadNo&&(r++,t.loadMore(r)),o.emit("item-bind",e)},onUnbindItem:e=>{o.emit("item-unbind",e)},onLoadMore:e=>{o.emit("load-more",e)},onScrollStateChanged:e=>{o.emit("scroll-state-changed",e)},onFocusSearchFailed:e=>{o.emit("focus-search-failed",e)},onScrollYGreaterReference:e=>{o.emit("scrollYGreaterReference",e)},onScrollYLesserReference:e=>{o.emit("scrollYLesserReference",e)}},e)}}});o.component("qt-list-view",a)}(o),function(o){const a=t({emits:["item-focused","item-attached","item-detached","item-bind","item-unbind"],setup(t,o){const a=n();return o.expose({viewRef:a,updateItem:(t,n)=>{e.callUIFunction(a.value,"updateItem",[t,n])},dispatchItemFunction:(t,n,o,l)=>{e.callUIFunction(a.value,"dispatchItemFunction",[t,n,o,l])},updateItemProps:(t,n,o)=>{e.callUIFunction(a.value,"updateItemProps",[n,t,o,!0])},batch:t=>{e.callUIFunction(a.value,"batch",[t])}}),()=>{const e=o.slots.default&&o.slots.default();return x("FastListView",{ref:a,onBindItem:e=>{o.emit("item-bind",e)},onItemFocused:e=>{o.emit("item-focused",e)},onAttachedToWindow:e=>{o.emit("item-attached",e)},onDetachedFromWindow:e=>{o.emit("item-detached",e)},onItemRecycled:e=>{o.emit("item-unbind",e)}},e)}}});o.component("qt-list-item",a)}(o);for(let e in pa)o.component(pa[e].name,pa[e])};export{ua as QTDirections,fa as QTNavBarItemType,da as QTScrollState,jo as QTTabPageState,xo as QTWaterfallItemType,Io as QTWaterfallSectionType,ga as QuickTVUI,R as arrangeChildren4ListView};
1
+ import{openBlock as e,createElementBlock as t,renderSlot as n,defineComponent as o,ref as a,resolveComponent as l,normalizeStyle as s,normalizeClass as i,createCommentVNode as c,withDirectives as r,vShow as u,createBlock as d,toDisplayString as f,watchEffect as p,onBeforeUnmount as g,withCtx as m,Fragment as h,createVNode as v,createElementVNode as b,pushScopeId as _,popScopeId as y,reactive as T,watch as S,h as I}from"vue";import{Native as x}from"@extscreen/es3-vue";import{useESToast as E,useES as F,useESLog as P,ESLogLevel as C}from"@extscreen/es3-core";function L(e,t){const n=Object.create(null),o=e.split(",");for(let e=0;e<o.length;e++)n[o[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}const k="production"!==process.env.NODE_ENV?Object.freeze({}):{};"production"===process.env.NODE_ENV||Object.freeze([]);const D=()=>{},N=/^on[^a-z]/,w=e=>N.test(e),O=Object.assign,A=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},R=Object.prototype.hasOwnProperty,B=(e,t)=>R.call(e,t),$=Array.isArray,U=e=>"[object Map]"===j(e),V=e=>"[object Set]"===j(e),z=e=>"function"==typeof e,q=e=>"string"==typeof e,W=e=>"symbol"==typeof e,M=e=>null!==e&&"object"==typeof e,G=e=>(M(e)||z(e))&&z(e.then)&&z(e.catch),Q=Object.prototype.toString,j=e=>Q.call(e),Y=e=>j(e).slice(8,-1),H=e=>"[object Object]"===j(e),X=e=>q(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,K=(e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))})((e=>e.charAt(0).toUpperCase()+e.slice(1))),J=(e,t)=>!Object.is(e,t),Z=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})};let ee;const te=()=>ee||(ee="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function ne(e){if($(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],a=q(o)?se(o):ne(o);if(a)for(const e in a)t[e]=a[e]}return t}if(q(e)||M(e))return e}const oe=/;(?![^(]*\))/g,ae=/:([^]+)/,le=/\/\*[^]*?\*\//g;function se(e){const t={};return e.replace(le,"").split(oe).forEach((e=>{if(e){const n=e.split(ae);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function ie(e){let t="";if(q(e))t=e;else if($(e))for(let n=0;n<e.length;n++){const o=ie(e[n]);o&&(t+=o+" ")}else if(M(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function ce(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let re;const ue=e=>{const t=new Set(e);return t.w=0,t.n=0,t},de=e=>(e.w&me)>0,fe=e=>(e.n&me)>0,pe=new WeakMap;let ge=0,me=1;const he=30;let ve;const be=Symbol("production"!==process.env.NODE_ENV?"iterate":""),_e=Symbol("production"!==process.env.NODE_ENV?"Map key iterate":"");class ye{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(e,t=re){t&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();let e=ve,t=Se;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=ve,ve=this,Se=!0,me=1<<++ge,ge<=he?(({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=me})(this):Te(this),this.fn()}finally{ge<=he&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const a=t[o];de(a)&&!fe(a)?a.delete(e):t[n++]=a,a.w&=~me,a.n&=~me}t.length=n}})(this),me=1<<--ge,ve=this.parent,Se=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){ve===this?this.deferStop=!0:this.active&&(Te(this),this.onStop&&this.onStop(),this.active=!1)}}function Te(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Se=!0;const Ie=[];function xe(){Ie.push(Se),Se=!1}function Ee(){const e=Ie.pop();Se=void 0===e||e}function Fe(e,t,n){if(Se&&ve){let o=pe.get(e);o||pe.set(e,o=new Map);let a=o.get(n);a||o.set(n,a=ue());!function(e,t){let n=!1;ge<=he?fe(e)||(e.n|=me,n=!de(e)):n=!e.has(ve);n&&(e.add(ve),ve.deps.push(e),"production"!==process.env.NODE_ENV&&ve.onTrack&&ve.onTrack(O({effect:ve},t)))}(a,"production"!==process.env.NODE_ENV?{effect:ve,target:e,type:t,key:n}:void 0)}}function Pe(e,t,n,o,a,l){const s=pe.get(e);if(!s)return;let i=[];if("clear"===t)i=[...s.values()];else if("length"===n&&$(e)){const e=Number(o);s.forEach(((t,n)=>{("length"===n||!W(n)&&n>=e)&&i.push(t)}))}else switch(void 0!==n&&i.push(s.get(n)),t){case"add":$(e)?X(n)&&i.push(s.get("length")):(i.push(s.get(be)),U(e)&&i.push(s.get(_e)));break;case"delete":$(e)||(i.push(s.get(be)),U(e)&&i.push(s.get(_e)));break;case"set":U(e)&&i.push(s.get(be))}const c="production"!==process.env.NODE_ENV?{target:e,type:t,key:n,newValue:o,oldValue:a,oldTarget:l}:void 0;if(1===i.length)i[0]&&("production"!==process.env.NODE_ENV?Ce(i[0],c):Ce(i[0]));else{const e=[];for(const t of i)t&&e.push(...t);"production"!==process.env.NODE_ENV?Ce(ue(e),c):Ce(ue(e))}}function Ce(e,t){const n=$(e)?e:[...e];for(const e of n)e.computed&&Le(e,t);for(const e of n)e.computed||Le(e,t)}function Le(e,t){(e!==ve||e.allowRecurse)&&("production"!==process.env.NODE_ENV&&e.onTrigger&&e.onTrigger(O({effect:e},t)),e.scheduler?e.scheduler():e.run())}const ke=L("__proto__,__v_isRef,__isVue"),De=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(W)),Ne=we();function we(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Tt(this);for(let e=0,t=this.length;e<t;e++)Fe(n,"get",e+"");const o=n[t](...e);return-1===o||!1===o?n[t](...e.map(Tt)):o}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){xe();const n=Tt(this)[t].apply(this,e);return Ee(),n}})),e}function Oe(e){const t=Tt(this);return Fe(t,"has",e),t.hasOwnProperty(e)}class Ae{constructor(e=!1,t=!1){this._isReadonly=e,this._shallow=t}get(e,t,n){const o=this._isReadonly,a=this._shallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return a;if("__v_raw"===t&&n===(o?a?ft:dt:a?ut:rt).get(e))return e;const l=$(e);if(!o){if(l&&B(Ne,t))return Reflect.get(Ne,t,n);if("hasOwnProperty"===t)return Oe}const s=Reflect.get(e,t,n);return(W(t)?De.has(t):ke(t))?s:(o||Fe(e,"get",t),a?s:xt(s)?l&&X(t)?s:s.value:M(s)?o?gt(s):pt(s):s)}}class Re extends Ae{constructor(e=!1){super(!1,e)}set(e,t,n,o){let a=e[t];if(bt(a)&&xt(a)&&!xt(n))return!1;if(!this._shallow&&(_t(n)||bt(n)||(a=Tt(a),n=Tt(n)),!$(e)&&xt(a)&&!xt(n)))return a.value=n,!0;const l=$(e)&&X(t)?Number(t)<e.length:B(e,t),s=Reflect.set(e,t,n,o);return e===Tt(o)&&(l?J(n,a)&&Pe(e,"set",t,n,a):Pe(e,"add",t,n)),s}deleteProperty(e,t){const n=B(e,t),o=e[t],a=Reflect.deleteProperty(e,t);return a&&n&&Pe(e,"delete",t,void 0,o),a}has(e,t){const n=Reflect.has(e,t);return W(t)&&De.has(t)||Fe(e,"has",t),n}ownKeys(e){return Fe(e,"iterate",$(e)?"length":be),Reflect.ownKeys(e)}}class Be extends Ae{constructor(e=!1){super(!0,e)}set(e,t){return"production"!==process.env.NODE_ENV&&ce(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0}deleteProperty(e,t){return"production"!==process.env.NODE_ENV&&ce(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}}const $e=new Re,Ue=new Be,Ve=new Be(!0),ze=e=>e,qe=e=>Reflect.getPrototypeOf(e);function We(e,t,n=!1,o=!1){const a=Tt(e=e.__v_raw),l=Tt(t);n||(J(t,l)&&Fe(a,"get",t),Fe(a,"get",l));const{has:s}=qe(a),i=o?ze:n?It:St;return s.call(a,t)?i(e.get(t)):s.call(a,l)?i(e.get(l)):void(e!==a&&e.get(t))}function Me(e,t=!1){const n=this.__v_raw,o=Tt(n),a=Tt(e);return t||(J(e,a)&&Fe(o,"has",e),Fe(o,"has",a)),e===a?n.has(e):n.has(e)||n.has(a)}function Ge(e,t=!1){return e=e.__v_raw,!t&&Fe(Tt(e),"iterate",be),Reflect.get(e,"size",e)}function Qe(e){e=Tt(e);const t=Tt(this);return qe(t).has.call(t,e)||(t.add(e),Pe(t,"add",e,e)),this}function je(e,t){t=Tt(t);const n=Tt(this),{has:o,get:a}=qe(n);let l=o.call(n,e);l?"production"!==process.env.NODE_ENV&&ct(n,o,e):(e=Tt(e),l=o.call(n,e));const s=a.call(n,e);return n.set(e,t),l?J(t,s)&&Pe(n,"set",e,t,s):Pe(n,"add",e,t),this}function Ye(e){const t=Tt(this),{has:n,get:o}=qe(t);let a=n.call(t,e);a?"production"!==process.env.NODE_ENV&&ct(t,n,e):(e=Tt(e),a=n.call(t,e));const l=o?o.call(t,e):void 0,s=t.delete(e);return a&&Pe(t,"delete",e,void 0,l),s}function He(){const e=Tt(this),t=0!==e.size,n="production"!==process.env.NODE_ENV?U(e)?new Map(e):new Set(e):void 0,o=e.clear();return t&&Pe(e,"clear",void 0,void 0,n),o}function Xe(e,t){return function(n,o){const a=this,l=a.__v_raw,s=Tt(l),i=t?ze:e?It:St;return!e&&Fe(s,"iterate",be),l.forEach(((e,t)=>n.call(o,i(e),i(t),a)))}}function Ke(e,t,n){return function(...o){const a=this.__v_raw,l=Tt(a),s=U(l),i="entries"===e||e===Symbol.iterator&&s,c="keys"===e&&s,r=a[e](...o),u=n?ze:t?It:St;return!t&&Fe(l,"iterate",c?_e:be),{next(){const{value:e,done:t}=r.next();return t?{value:e,done:t}:{value:i?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function Je(e){return function(...t){if("production"!==process.env.NODE_ENV){const n=t[0]?`on key "${t[0]}" `:"";console.warn(`${K(e)} operation ${n}failed: target is readonly.`,Tt(this))}return"delete"!==e&&this}}function Ze(){const e={get(e){return We(this,e)},get size(){return Ge(this)},has:Me,add:Qe,set:je,delete:Ye,clear:He,forEach:Xe(!1,!1)},t={get(e){return We(this,e,!1,!0)},get size(){return Ge(this)},has:Me,add:Qe,set:je,delete:Ye,clear:He,forEach:Xe(!1,!0)},n={get(e){return We(this,e,!0)},get size(){return Ge(this,!0)},has(e){return Me.call(this,e,!0)},add:Je("add"),set:Je("set"),delete:Je("delete"),clear:Je("clear"),forEach:Xe(!0,!1)},o={get(e){return We(this,e,!0,!0)},get size(){return Ge(this,!0)},has(e){return Me.call(this,e,!0)},add:Je("add"),set:Je("set"),delete:Je("delete"),clear:Je("clear"),forEach:Xe(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((a=>{e[a]=Ke(a,!1,!1),n[a]=Ke(a,!0,!1),t[a]=Ke(a,!1,!0),o[a]=Ke(a,!0,!0)})),[e,n,t,o]}const[et,tt,nt,ot]=Ze();function at(e,t){const n=t?e?ot:nt:e?tt:et;return(t,o,a)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(B(n,o)&&o in t?n:t,o,a)}const lt={get:at(!1,!1)},st={get:at(!0,!1)},it={get:at(!0,!0)};function ct(e,t,n){const o=Tt(n);if(o!==n&&t.call(e,o)){const t=Y(e);console.warn(`Reactive ${t} contains both the raw and reactive versions of the same object${"Map"===t?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const rt=new WeakMap,ut=new WeakMap,dt=new WeakMap,ft=new WeakMap;function pt(e){return bt(e)?e:ht(e,!1,$e,lt,rt)}function gt(e){return ht(e,!0,Ue,st,dt)}function mt(e){return ht(e,!0,Ve,it,ft)}function ht(e,t,n,o,a){if(!M(e))return"production"!==process.env.NODE_ENV&&console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const l=a.get(e);if(l)return l;const s=(i=e).__v_skip||!Object.isExtensible(i)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(Y(i));var i;if(0===s)return e;const c=new Proxy(e,2===s?o:n);return a.set(e,c),c}function vt(e){return bt(e)?vt(e.__v_raw):!(!e||!e.__v_isReactive)}function bt(e){return!(!e||!e.__v_isReadonly)}function _t(e){return!(!e||!e.__v_isShallow)}function yt(e){return vt(e)||bt(e)}function Tt(e){const t=e&&e.__v_raw;return t?Tt(t):e}const St=e=>M(e)?pt(e):e,It=e=>M(e)?gt(e):e;function xt(e){return!(!e||!0!==e.__v_isRef)}const Et={get:(e,t,n)=>{return xt(o=Reflect.get(e,t,n))?o.value:o;var o},set:(e,t,n,o)=>{const a=e[t];return xt(a)&&!xt(n)?(a.value=n,!0):Reflect.set(e,t,n,o)}};const Ft=[];function Pt(e,...t){if("production"===process.env.NODE_ENV)return;xe();const n=Ft.length?Ft[Ft.length-1].component:null,o=n&&n.appContext.config.warnHandler,a=function(){let e=Ft[Ft.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const o=e.component&&e.component.parent;e=o&&o.vnode}return t}();if(o)Dt(o,n,11,[e+t.join(""),n&&n.proxy,a.map((({vnode:e})=>`at <${Yn(n,e.type)}>`)).join("\n"),a]);else{const n=[`[Vue warn]: ${e}`,...t];a.length&&n.push("\n",...function(e){const t=[];return e.forEach(((e,n)=>{t.push(...0===n?[]:["\n"],...function({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=!!e.component&&null==e.component.parent,a=` at <${Yn(e.component,e.type,o)}`,l=">"+n;return e.props?[a,...Ct(e.props),l]:[a+l]}(e))})),t}(a)),console.warn(...n)}Ee()}function Ct(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach((n=>{t.push(...Lt(n,e[n]))})),n.length>3&&t.push(" ..."),t}function Lt(e,t,n){return q(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?n?t:[`${e}=${t}`]:xt(t)?(t=Lt(e,Tt(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):z(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Tt(t),n?t:[`${e}=`,t])}const kt={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"};function Dt(e,t,n,o){let a;try{a=o?e(...o):e()}catch(e){wt(e,t,n)}return a}function Nt(e,t,n,o){if(z(e)){const a=Dt(e,t,n,o);return a&&G(a)&&a.catch((e=>{wt(e,t,n)})),a}const a=[];for(let l=0;l<e.length;l++)a.push(Nt(e[l],t,n,o));return a}function wt(e,t,n,o=!0){const a=t?t.vnode:null;if(t){let o=t.parent;const a=t.proxy,l="production"!==process.env.NODE_ENV?kt[n]:n;for(;o;){const t=o.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,a,l))return;o=o.parent}const s=t.appContext.config.errorHandler;if(s)return void Dt(s,null,10,[e,a,l])}!function(e,t,n,o=!0){if("production"!==process.env.NODE_ENV){const l=kt[t];if(n&&(a=n,Ft.push(a)),Pt("Unhandled error"+(l?` during execution of ${l}`:"")),n&&Ft.pop(),o)throw e;console.error(e)}else console.error(e);var a}(e,n,a,o)}let Ot=!1,At=!1;const Rt=[];let Bt=0;const $t=[];let Ut=null,Vt=0;const zt=Promise.resolve();let qt=null;const Wt=100;function Mt(e){const t=qt||zt;return e?t.then(this?e.bind(this):e):t}function Gt(e){Rt.length&&Rt.includes(e,Ot&&e.allowRecurse?Bt+1:Bt)||(null==e.id?Rt.push(e):Rt.splice(function(e){let t=Bt+1,n=Rt.length;for(;t<n;){const o=t+n>>>1,a=Rt[o],l=Yt(a);l<e||l===e&&a.pre?t=o+1:n=o}return t}(e.id),0,e),Qt())}function Qt(){Ot||At||(At=!0,qt=zt.then(Xt))}function jt(e){$(e)?$t.push(...e):Ut&&Ut.includes(e,e.allowRecurse?Vt+1:Vt)||$t.push(e),Qt()}const Yt=e=>null==e.id?1/0:e.id,Ht=(e,t)=>{const n=Yt(e)-Yt(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Xt(e){At=!1,Ot=!0,"production"!==process.env.NODE_ENV&&(e=e||new Map),Rt.sort(Ht);const t="production"!==process.env.NODE_ENV?t=>Kt(e,t):D;try{for(Bt=0;Bt<Rt.length;Bt++){const e=Rt[Bt];if(e&&!1!==e.active){if("production"!==process.env.NODE_ENV&&t(e))continue;Dt(e,null,14)}}}finally{Bt=0,Rt.length=0,function(e){if($t.length){const t=[...new Set($t)];if($t.length=0,Ut)return void Ut.push(...t);for(Ut=t,"production"!==process.env.NODE_ENV&&(e=e||new Map),Ut.sort(((e,t)=>Yt(e)-Yt(t))),Vt=0;Vt<Ut.length;Vt++)"production"!==process.env.NODE_ENV&&Kt(e,Ut[Vt])||Ut[Vt]();Ut=null,Vt=0}}(e),Ot=!1,qt=null,(Rt.length||$t.length)&&Xt(e)}}function Kt(e,t){if(e.has(t)){const n=e.get(t);if(n>Wt){const e=t.ownerInstance,n=e&&jn(e.type);return Pt(`Maximum recursive updates exceeded${n?` in component <${n}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`),!0}e.set(t,n+1)}else e.set(t,1)}const Jt=new Set;"production"!==process.env.NODE_ENV&&(te().__VUE_HMR_RUNTIME__={createRecord:nn((function(e,t){if(Zt.has(e))return!1;return Zt.set(e,{initialDef:en(t),instances:new Set}),!0})),rerender:nn((function(e,t){const n=Zt.get(e);if(!n)return;n.initialDef.render=t,[...n.instances].forEach((e=>{t&&(e.render=t,en(e.type).render=t),e.renderCache=[],e.update()}))})),reload:nn((function(e,t){const n=Zt.get(e);if(!n)return;t=en(t),tn(n.initialDef,t);const o=[...n.instances];for(const e of o){const o=en(e.type);Jt.has(o)||(o!==n.initialDef&&tn(o,t),Jt.add(o)),e.appContext.propsCache.delete(e.type),e.appContext.emitsCache.delete(e.type),e.appContext.optionsCache.delete(e.type),e.ceReload?(Jt.add(o),e.ceReload(t.styles),Jt.delete(o)):e.parent?Gt(e.parent.update):e.appContext.reload?e.appContext.reload():"undefined"!=typeof window?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}jt((()=>{for(const e of o)Jt.delete(en(e.type))}))}))});const Zt=new Map;function en(e){return Hn(e)?e.__vccOpts:e}function tn(e,t){O(e,t);for(const n in e)"__file"===n||n in t||delete e[n]}function nn(e){return(t,n)=>{try{return e(t,n)}catch(e){console.error(e),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let on=null,an=null;const ln=Symbol.for("v-ndc");const sn={};function cn(e,t,{immediate:n,deep:o,flush:a,onTrack:l,onTrigger:s}=k){var i;"production"===process.env.NODE_ENV||t||(void 0!==n&&Pt('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),void 0!==o&&Pt('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));const c=e=>{Pt("Invalid watch source: ",e,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},r=re===(null==(i=zn)?void 0:i.scope)?zn:null;let u,d,f=!1,p=!1;if(xt(e)?(u=()=>e.value,f=_t(e)):vt(e)?(u=()=>e,o=!0):$(e)?(p=!0,f=e.some((e=>vt(e)||_t(e))),u=()=>e.map((e=>xt(e)?e.value:vt(e)?un(e):z(e)?Dt(e,r,2):void("production"!==process.env.NODE_ENV&&c(e))))):z(e)?u=t?()=>Dt(e,r,2):()=>{if(!r||!r.isUnmounted)return d&&d(),Nt(e,r,3,[g])}:(u=D,"production"!==process.env.NODE_ENV&&c(e)),t&&o){const e=u;u=()=>un(e())}let g=e=>{d=b.onStop=()=>{Dt(e,r,4)}},m=p?new Array(e.length).fill(sn):sn;const h=()=>{if(b.active)if(t){const e=b.run();(o||f||(p?e.some(((e,t)=>J(e,m[t]))):J(e,m)))&&(d&&d(),Nt(t,r,3,[e,m===sn?void 0:p&&m[0]===sn?[]:m,g]),m=e)}else b.run()};let v;h.allowRecurse=!!t,"sync"===a?v=h:"post"===a?v=()=>En(h,r&&r.suspense):(h.pre=!0,r&&(h.id=r.uid),v=()=>Gt(h));const b=new ye(u,v);"production"!==process.env.NODE_ENV&&(b.onTrack=l,b.onTrigger=s),t?n?h():m=b.run():"post"===a?En(b.run.bind(b),r&&r.suspense):b.run();return()=>{b.stop(),r&&r.scope&&A(r.scope.effects,b)}}function rn(e,t,n){const o=this.proxy,a=q(e)?e.includes(".")?function(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}(o,e):()=>o[e]:e.bind(o,o);let l;z(t)?l=t:(l=t.handler,n=t);const s=zn;Wn(this);const i=cn(a,l.bind(o),n);return s?Wn(s):Mn(),i}function un(e,t){if(!M(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),xt(e))un(e.value,t);else if($(e))for(let n=0;n<e.length;n++)un(e[n],t);else if(V(e)||U(e))e.forEach((e=>{un(e,t)}));else if(H(e))for(const n in e)un(e[n],t);return e}
2
+ /*! #__NO_SIDE_EFFECTS__ */function dn(e,t){return z(e)?(()=>O({name:e.name},t,{setup:e}))():e}const fn=e=>e?4&e.vnode.shapeFlag?function(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy((n=e.exposed,Z(n,"__v_skip",!0),vt(t=n)?t:new Proxy(t,Et)),{get:(t,n)=>n in t?t[n]:n in pn?pn[n](e):void 0,has:(e,t)=>t in e||t in pn}));var t;var n}(e)||e.proxy:fn(e.parent):null,pn=O(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>"production"!==process.env.NODE_ENV?mt(e.props):e.props,$attrs:e=>"production"!==process.env.NODE_ENV?mt(e.attrs):e.attrs,$slots:e=>"production"!==process.env.NODE_ENV?mt(e.slots):e.slots,$refs:e=>"production"!==process.env.NODE_ENV?mt(e.refs):e.refs,$parent:e=>fn(e.parent),$root:e=>fn(e.root),$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?function(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:a,optionsCache:l,config:{optionMergeStrategies:s}}=e.appContext,i=l.get(t);let c;i?c=i:a.length||n||o?(c={},a.length&&a.forEach((e=>bn(c,e,s,!0))),bn(c,t,s)):c=t;M(t)&&l.set(t,c);return c}(e):e.type,$forceUpdate:e=>e.f||(e.f=()=>Gt(e.update)),$nextTick:e=>e.n||(e.n=Mt.bind(e.proxy)),$watch:e=>__VUE_OPTIONS_API__?rn.bind(e):D}),gn=(e,t)=>e!==k&&!e.__isScriptSetup&&B(e,t),mn={get({_:e},t){const{ctx:n,setupState:o,data:a,props:l,accessCache:s,type:i,appContext:c}=e;if("production"!==process.env.NODE_ENV&&"__isVue"===t)return!0;let r;if("$"!==t[0]){const i=s[t];if(void 0!==i)switch(i){case 1:return o[t];case 2:return a[t];case 4:return n[t];case 3:return l[t]}else{if(gn(o,t))return s[t]=1,o[t];if(a!==k&&B(a,t))return s[t]=2,a[t];if((r=e.propsOptions[0])&&B(r,t))return s[t]=3,l[t];if(n!==k&&B(n,t))return s[t]=4,n[t];__VUE_OPTIONS_API__&&!vn||(s[t]=0)}}const u=pn[t];let d,f;return u?("$attrs"===t?(Fe(e,"get",t),process.env.NODE_ENV):"production"!==process.env.NODE_ENV&&"$slots"===t&&Fe(e,"get",t),u(e)):(d=i.__cssModules)&&(d=d[t])?d:n!==k&&B(n,t)?(s[t]=4,n[t]):(f=c.config.globalProperties,B(f,t)?f[t]:void("production"===process.env.NODE_ENV||!on||q(t)&&0===t.indexOf("__v")||(a!==k&&(e=>"_"===e||"$"===e)(t[0])&&B(a,t)?Pt(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===on&&Pt(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))))},set({_:e},t,n){const{data:o,setupState:a,ctx:l}=e;return gn(a,t)?(a[t]=n,!0):"production"!==process.env.NODE_ENV&&a.__isScriptSetup&&B(a,t)?(Pt(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):o!==k&&B(o,t)?(o[t]=n,!0):B(e.props,t)?("production"!==process.env.NODE_ENV&&Pt(`Attempting to mutate prop "${t}". Props are readonly.`),!1):"$"===t[0]&&t.slice(1)in e?("production"!==process.env.NODE_ENV&&Pt(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):("production"!==process.env.NODE_ENV&&t in e.appContext.config.globalProperties?Object.defineProperty(l,t,{enumerable:!0,configurable:!0,value:n}):l[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:a,propsOptions:l}},s){let i;return!!n[s]||e!==k&&B(e,s)||gn(t,s)||(i=l[0])&&B(i,s)||B(o,s)||B(pn,s)||B(a.config.globalProperties,s)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:B(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function hn(e){return $(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}"production"!==process.env.NODE_ENV&&(mn.ownKeys=e=>(Pt("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));let vn=!0;function bn(e,t,n,o=!1){const{mixins:a,extends:l}=t;l&&bn(e,l,n,!0),a&&a.forEach((t=>bn(e,t,n,!0)));for(const a in t)if(o&&"expose"===a)"production"!==process.env.NODE_ENV&&Pt('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const o=_n[a]||n&&n[a];e[a]=o?o(e[a],t[a]):t[a]}return e}const _n={data:yn,props:xn,emits:xn,methods:In,computed:In,beforeCreate:Sn,created:Sn,beforeMount:Sn,mounted:Sn,beforeUpdate:Sn,updated:Sn,beforeDestroy:Sn,beforeUnmount:Sn,destroyed:Sn,unmounted:Sn,activated:Sn,deactivated:Sn,errorCaptured:Sn,serverPrefetch:Sn,components:In,directives:In,watch:function(e,t){if(!e)return t;if(!t)return e;const n=O(Object.create(null),e);for(const o in t)n[o]=Sn(e[o],t[o]);return n},provide:yn,inject:function(e,t){return In(Tn(e),Tn(t))}};function yn(e,t){return t?e?function(){return O(z(e)?e.call(this,this):e,z(t)?t.call(this,this):t)}:t:e}function Tn(e){if($(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Sn(e,t){return e?[...new Set([].concat(e,t))]:t}function In(e,t){return e?O(Object.create(null),e,t):t}function xn(e,t){return e?$(e)&&$(t)?[...new Set([...e,...t])]:O(Object.create(null),hn(e),hn(null!=t?t:{})):t}const En=function(e,t){t&&t.pendingBranch?$(e)?t.effects.push(...e):t.effects.push(e):jt(e)},Fn=Symbol.for("v-fgt"),Pn=Symbol.for("v-txt"),Cn=Symbol.for("v-cmt");let Ln=null;const kn="__vInternal",Dn=({key:e})=>null!=e?e:null,Nn=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?q(e)||xt(e)||z(e)?{i:on,r:e,k:t,f:!!n}:e:null);const wn="production"!==process.env.NODE_ENV?(...e)=>On(...e):On;function On(e,t=null,n=null,o=0,a=null,l=!1){if(e&&e!==ln||("production"===process.env.NODE_ENV||e||Pt(`Invalid vnode type when creating vnode: ${e}.`),e=Cn),(s=e)&&!0===s.__v_isVNode){const o=An(e,t,!0);return n&&$n(o,n),!l&&Ln&&(6&o.shapeFlag?Ln[Ln.indexOf(e)]=o:Ln.push(o)),o.patchFlag|=-2,o}var s;if(Hn(e)&&(e=e.__vccOpts),t){t=function(e){return e?yt(e)||kn in e?O({},e):e:null}(t);let{class:e,style:n}=t;e&&!q(e)&&(t.class=ie(e)),M(n)&&(yt(n)&&!$(n)&&(n=O({},n)),t.style=ne(n))}const i=q(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:M(e)?4:z(e)?2:0;return"production"!==process.env.NODE_ENV&&4&i&&yt(e)&&Pt("Vue received a Component which was made a reactive object. This can lead to unnecessary performance overhead, and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.","\nComponent that was made reactive: ",e=Tt(e)),function(e,t=null,n=null,o=0,a=null,l=(e===Fn?0:1),s=!1,i=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Dn(t),ref:t&&Nn(t),scopeId:an,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:l,patchFlag:o,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:on};return i?($n(c,n),128&l&&e.normalize(c)):n&&(c.shapeFlag|=q(n)?8:16),"production"!==process.env.NODE_ENV&&c.key!=c.key&&Pt("VNode created with invalid key (NaN). VNode type:",c.type),!s&&Ln&&(c.patchFlag>0||6&l)&&32!==c.patchFlag&&Ln.push(c),c}(e,t,n,o,a,i,l,!0)}function An(e,t,n=!1){const{props:o,ref:a,patchFlag:l,children:s}=e,i=t?function(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const e in o)if("class"===e)t.class!==o.class&&(t.class=ie([t.class,o.class]));else if("style"===e)t.style=ne([t.style,o.style]);else if(w(e)){const n=t[e],a=o[e];!a||n===a||$(n)&&n.includes(a)||(t[e]=n?[].concat(n,a):a)}else""!==e&&(t[e]=o[e])}return t}(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:i,key:i&&Dn(i),ref:t&&t.ref?n&&a?$(a)?a.concat(Nn(t)):[a,Nn(t)]:Nn(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:"production"!==process.env.NODE_ENV&&-1===l&&$(s)?s.map(Rn):s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Fn?-1===l?16:16|l:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&An(e.ssContent),ssFallback:e.ssFallback&&An(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Rn(e){const t=An(e);return $(e.children)&&(t.children=e.children.map(Rn)),t}function Bn(e=" ",t=0){return wn(Pn,null,e,t)}function $n(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if($(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),$n(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||kn in t?3===o&&on&&(1===on.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=on}}else z(t)?(t={default:t,_ctx:on},n=32):(t=String(t),64&o?(n=16,t=[Bn(t)]):n=8);e.children=t,e.shapeFlag|=n}let Un,Vn,zn=null,qn="__VUE_INSTANCE_SETTERS__";(Vn=te()[qn])||(Vn=te()[qn]=[]),Vn.push((e=>zn=e)),Un=e=>{Vn.length>1?Vn.forEach((t=>t(e))):Vn[0](e)};const Wn=e=>{Un(e),e.scope.on()},Mn=()=>{zn&&zn.scope.off(),Un(null)};const Gn=/(?:^|[-_])(\w)/g,Qn=e=>e.replace(Gn,(e=>e.toUpperCase())).replace(/[-_]/g,"");function jn(e,t=!0){return z(e)?e.displayName||e.name:e.name||t&&e.__name}function Yn(e,t,n=!1){let o=jn(t);if(!o&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(o=e[1])}if(!o&&e&&e.parent){const n=e=>{for(const n in e)if(e[n]===t)return n};o=n(e.components||e.parent.type.components)||n(e.appContext.components)}return o?Qn(o):n?"App":"Anonymous"}function Hn(e){return z(e)&&"__vccOpts"in e}var Xn=dn({name:"qt-column"});const Kn={class:"qt-ui-row-css",clipChildren:!1};Xn.render=function(o,a,l,s,i,c){return e(),t("div",Kn,[n(o.$slots,"default")])},Xn.__scopeId="data-v-734c04b2",Xn.__file="src/column/index.vue";var Jn=dn({name:"qt-row"});const Zn={class:"qt-ui-row-css",clipChildren:!1};Jn.render=function(o,a,l,s,i,c){return e(),t("div",Zn,[n(o.$slots,"default")])},Jn.__scopeId="data-v-9c454b58",Jn.__file="src/row/index.vue";var eo=o({name:"qt-button",props:{size:{type:String,default:"default"},itemType:{type:Number,default:2e4},focusBorder:{type:Boolean,default:!1},focusScale:{type:Number,default:1.08},focusable:{type:Boolean,default:!0},enableFlexStyle:{type:Boolean,default:!1},icon:{type:String,default:null},focusIcon:{type:String,default:null},text:{type:String,default:""},gradientFocusBackground:{type:Object,default:()=>{}},gradientSelectedBackground:{type:Object,default:()=>null},gradientBackground:{type:Object,default:()=>null},disabled:Boolean,circle:Boolean,round:Boolean,square:Boolean,buttonStyle:Object,textStyle:Object,iconStyle:Object,focusIconStyle:Object,iconParentStyle:Object},emits:["focus","click"],setup(e,t){const n=a(),o=a(!1);return{focused:o,requestFocus:function(){x.callUIFunction(n.value,"requestFocus",[])},requestFocusDirectly:function(){x.callUIFunction(n.value,"requestFocusDirectly",[])},onFocus:function(e){console.log("--------XXXXXXXXXXXXXXXXX--------------\x3e>>",o.value),o.value=e.isFocused,t.emit("focus",e.isFocused)},onClick:function(e){t.emit("click")}}}});const to=["focusable","enableFocusBorder","focusScale"],no=["gradientBackground"],oo=["gradientBackground"],ao=["gradientBackground"],lo=["src"],so=["src"];function io(e,t,n=!0){let o=e.length;n?e.map(((e,n)=>{n!==o-1&&(e.decoration={bottom:t})})):e.map(((e,n)=>{n!==o-1&&(e.decoration={right:t})}))}eo.render=function(o,a,p,g,m,h){const v=l("text-view");return e(),t("div",{ref:"buttonRef",clipChildren:!1,focusable:o.focusable,enableFocusBorder:o.focusBorder,focusScale:o.focusScale,onClick:a[0]||(a[0]=(...e)=>o.onClick&&o.onClick(...e)),name:"textButton",eventClick:"",eventFocus:"",onFocus:a[1]||(a[1]=(...e)=>o.onFocus&&o.onFocus(...e)),style:s(o.buttonStyle),class:i(["quick-button--default",o.size?"quick-button--"+o.size:"",{"is-disabled-button":o.disabled,"is-circle":o.circle,"is-round":o.round,"is-square":o.square}])},[c(" gradient "),o.gradientFocusBackground?(e(),t("div",{key:0,class:"button-gradient-background-css",gradientBackground:o.gradientFocusBackground,focusable:!1,showOnState:"focused"},null,8,no)):c("v-if",!0),o.gradientSelectedBackground?(e(),t("div",{key:1,class:"button-gradient-background-css",gradientBackground:o.gradientSelectedBackground,focusable:!1,showOnState:"selected"},null,8,oo)):c("v-if",!0),o.gradientBackground?(e(),t("div",{key:2,class:"button-gradient-background-css",gradientBackground:o.gradientBackground,focusable:!1,showOnState:"normal"},null,8,ao)):c("v-if",!0),c(" -----------------------------icon--------------------------------- "),!o.icon&&!o.focusIcon||o.$slots.default?c("v-if",!0):(e(),t("div",{key:3,duplicateParentState:!0,style:s(o.iconParentStyle),flexStyle:"${iconParentStyle}",class:i(["quick-button-icon-parent",o.size?"quick-button-icon--parent"+o.size:""])},[o.icon&&!o.$slots.default?r((e(),t("img",{key:0,style:s(o.iconStyle),flexStyle:"${iconStyle}",duplicateParentState:!0,class:i(["quick-button-icon",o.size?"quick-button-icon--"+o.size:"",{"is-square-icon":o.square}]),focusable:!1,src:o.enableFlexStyle?"${"+o.icon+"}":o.icon,showOnState:"normal"},null,14,lo)),[[u,!o.focused]]):c("v-if",!0),o.focusIcon&&!o.$slots.default?r((e(),t("img",{key:1,style:s(o.focusIconStyle?o.focusIconStyle:o.iconStyle),flexStyle:"${iconStyle}",class:i(["quick-button-icon",o.size?"quick-button-icon--"+o.size:"",{"is-square-icon":o.square}]),focusable:!1,duplicateParentState:!0,src:o.enableFlexStyle?"${"+o.focusIcon+"}":o.focusIcon,showOnState:"focused"},null,14,so)),[[u,o.focused]]):c("v-if",!0)],6)),c(" ------------------------------------------------------------------- "),c(" text "),o.enableFlexStyle?(e(),d(v,{key:4,style:s(o.textStyle),duplicateParentState:"",class:i([o.size?"quick-button-text--"+o.size:"",{"is-disabled-text":o.disabled,"is-square-text":o.square}]),focusable:!1,text:"${"+o.text+"}",autoWidth:"",autoHeight:""},null,8,["style","class","text"])):o.text&&!o.$slots.default?(e(),t("span",{key:5,style:s(o.textStyle),duplicateParentState:"",class:i([o.size?"quick-button-text--"+o.size:"",{"is-disabled-text":o.disabled,"is-square-text":o.square}]),focusable:!1},f(o.text),7)):c("v-if",!0),n(o.$slots,"default")],46,to)},eo.__scopeId="data-v-46a594e4",eo.__file="src/button/index.vue";const co=e=>e.map(uo),ro=e=>{const t=Object.keys(e),n={};return t.forEach((t=>{n[t]=uo(e[t])})),n};function uo(e){return e?"object"!=typeof e?e:Array.isArray(e)?co(e):ro(e):e}var fo=o({name:"qt-grid-view",props:{loadMore:{type:Function,default:function(){return[1,1]}},openPage:{type:Boolean,default:!1},spanCount:{type:Number,default:0},pageSize:{type:Number},preloadNo:{type:Number,default:0},defaultFocus:{type:Number,default:-1},areaWidth:{type:Number,default:1200},blockFocusDirections:{type:Array,default:()=>[]}},emits:["item-click","scroll","item-unbind","scroll-state-changed","item-bind","item-focused"],setup(e,t){E(),F();const n=a();let o=a(2.5),l=[],s=[],i=[],c=[],r="",u=-1,d=!1,f=-1,m=-1,h=-1,v=-1;p((()=>{e.openPage&&(u=1,d=!1,e.loadMore(u))}));const b=t=>{0==l.length&&(l=uo(t),s=t,o.value<2.2?(_(),e.openPage&&e.pageSize&&c.length>=e.pageSize/e.spanCount?n.value.setListData(c.concat([{type:1002,decoration:{top:15,left:30}}])):n.value.setListData(c)):e.openPage&&e.pageSize&&l.length>=e.pageSize?n.value.setListData(l.concat([{type:1002,decoration:{top:15,left:30}}])):n.value.setListData(l),e.defaultFocus>-1&&(h&&clearTimeout(h),h=setTimeout((()=>{T(e.defaultFocus),S(e.defaultFocus)}),800)));let a={get(t,a,s){if("__ob__"!=a&&"symbol"!=typeof a&&"map"!=a&&"length"!=a&&"constructor"!=a&&"_isVue"!=a&&"valueOf"!=a&&"toString"!=a&&"observeArray"!=a&&"dep"!=a&&"notify"!=a&&"subs"!=a&&"slice"!=a)if(i.push(a),-1!=i.indexOf("push"))r="push";else{if(-1!=i.indexOf("splice"))return r="splice",function(...e){if(t.splice(...e),o.value<2.2)if(_(),1==e.length||2==e.length)n.value.setListData(c);else if(0==e[1])n.value.setListData(c);else{let t=-1,o=0,a=0;for(let n=0;n<c.length;n++){const l=c[n];if("1003"==l.type)t++,e[0]==t&&(o=n),e[0]+e[1]-1==t&&(a=n);else for(let s=0;s<l.list.length;s++)l.list[s],t++,e[0]==t&&(o=n),e[0]+e[1]-1==t&&(a=n)}n.value.updateItemList(o,a-o+1,c.slice(o,a+1))}else 1==e.length?n.value.deleteItem(Number(e[0]),l.length-e[0]):2==e.length?n.value.deleteItem(Number(e[0]),e[1]):e.length>2&&(0==e[1]?o.value>2.29&&x(e[0],e.slice(2)):n.value.updateItemList(e[0],e[1],e.slice(2)));return l.splice(e[0],...e.slice(1)),r="",i=[],Reflect.get(t,a,s)};if(-1!=i.indexOf("pop"))return r="pop",function(){return t.pop(),o.value<2.2?(c[c.length-1].list.length<1&&c.pop(),c[c.length-1].list.pop(),n.value.updateItem(Number(c.length-1),c[c.length-1])):n.value.deleteItem(Number(l.length-1),1),l.pop(),r="",i=[],Reflect.get(t,a,s)};if(-1!=i.indexOf("forEach"))return r="forEach",function(u){return t.forEach((e=>{u(e)})),l=[],l=uo(t),o.value<2.2?(_(),e.openPage&&e.pageSize&&c.length>=e.pageSize&&!d?n.value.setListData(c.concat([{type:1002,decoration:{top:15,left:30}}])):n.value.setListData(c)):e.openPage&&e.pageSize&&l.length>=e.pageSize&&!d?n.value.setListData(l.concat([{type:1002,decoration:{top:15,left:30}}])):n.value.setListData(l),r="",i=[],Reflect.get(t,a,s)};if(-1!=i.indexOf("concat"))return r="concat",function(f){if("[object Array]"===Object.prototype.toString.call(f))if(t=t.concat(f),l=l.concat(f),o.value<2.2){v&&clearTimeout(v);let t=c.length,o=c.slice(c.length-1)[0];_();let a=c.slice(t);e.openPage&&!d?e.pageSize||2!=u?0==a.length||"1003"!=o.type&&o.list.length<e.spanCount?(a=c.slice(t-1),v=setTimeout((()=>{n.value.addListDataWithParams(a.concat([{type:1002,decoration:{top:15,left:30}}]),2)}),300)):v=setTimeout((()=>{n.value.addListDataWithParams(a.concat([{type:1002,decoration:{top:15,left:30}}]),1)}),300):v=setTimeout((()=>{n.value.addListData(a.concat([{type:1002,decoration:{top:15,left:30}}]))}),300):n.value.setListData(c)}else v=e.openPage&&!d?e.pageSize||2!=u?setTimeout((()=>{n.value.addListDataWithParams(f.concat([{type:1002,decoration:{top:15,left:30}}]),1)}),300):setTimeout((()=>{n.value.addListData(f.concat([{type:1002,decoration:{top:15,left:30}}]))}),300):setTimeout((()=>{n.value.addListData(f)}),300);else console.log("concat:参数类型必须为数组");return r="",i=[],Reflect.get(t,a,s)};r=""}const f=Reflect.get(t,a,s);return y(f)&&"__ob__"!=a&&"dep"!=a&&"subs"!=a?b(f):(-1==i.indexOf("push")&&(i=[]),f)},set(t,a,f,p){const g=t[a],m=Reflect.set(t,a,f,p);if((!y(g)&&g!==f||y(g))&&"push"!=r)if(i.push(a),l[i[0]]=s[i[0]],o.value<2.2){let e=i[0],t=-1;for(let o=0;o<c.length;o++){const a=c[o];if("1003"==a.type)t++,t==e&&(c[o]=l[i[0]],n.value.updateItem(Number(o),c[o]));else for(let s=0;s<a.list.length;s++)if(a.list[s],t++,t==e){c[o].list[s]=l[i[0]];let e=c[o].list[s];e.decoration&&(e.decoration.top&&(e.decoration.top=0),e.decoration.bottom&&(e.decoration.bottom=0)),n.value.updateItem(Number(o),c[o])}}}else n.value.updateItem(Number(i[0]),s[i[0]]);if(a&&"push"==r&&g!==f)i.push(a),l.push(f);else{if("push"==r&&i.length>1)if(o.value<2.2){v&&clearTimeout(v);let t=c.length,o=c.slice(c.length-1)[0];_();let a=c.slice(t);e.openPage&&!d?e.pageSize||2!=u?0==a.length||"1003"!=o.type&&o.list.length<e.spanCount?(a=c.slice(t-1),v=setTimeout((()=>{n.value.addListDataWithParams(a.concat([{type:1002,decoration:{top:15,left:30}}]),2)}),300)):v=setTimeout((()=>{n.value.addListDataWithParams(a.concat([{type:1002,decoration:{top:15,left:30}}]),1)}),300):v=setTimeout((()=>{n.value.addListData(a.concat([{type:1002,decoration:{top:15,left:30}}]))}),300):n.value.setListData(c)}else{let t=l.slice(i[1]);v&&clearTimeout(v),v=e.openPage&&!d?e.pageSize||2!=u?setTimeout((()=>{n.value.addListDataWithParams(t.concat([{type:1002,decoration:{top:15,left:30}}]),1)}),300):setTimeout((()=>{n.value.addListData(t.concat([{type:1002,decoration:{top:15,left:30}}]))}),300):setTimeout((()=>{n.value.addListData(t)}),300)}r="",i=[]}return m}};return new Proxy(t,a)},_=()=>{let t=uo(l);c=[];let n=0,o=[];for(let e=0;e<t.length;e++){let n=t[e];if("1003"==n.type)o.push(n);else if(n.decoration.top&&(n.toCompatibleSaveTopVal=n.decoration.top,n.decoration.top=0),n.decoration.bottom&&(n.toCompatibleSaveBottompVal=n.decoration.bottom,n.decoration.bottom=0),o[o.length-1]&&1==o[o.length-1].type)o[o.length-1].list.push(n);else{let e={type:1,list:[]};e.list.push(n),o.push(e)}}for(let t=0;t<o.length;t++){const a=o[t];if("1003"==a.type)c.push(a);else for(let t=0;t<a.list.length;t+=e.spanCount){const o=a.list[t];let l={top:-1,bottom:-1};o.decoration&&(l.top=o.toCompatibleSaveTopVal?o.toCompatibleSaveTopVal:0,l.bottom=o.toCompatibleSaveBottompVal?o.toCompatibleSaveBottompVal:0);const s={type:1,decoration:l,name:"name"+n,list:a.list.slice(t,t+e.spanCount)};n++,c.push(s)}}},y=e=>null!==e&&"object"==typeof e,T=e=>{if(o.value<2.2){let t=-1;for(let o=0;o<c.length;o++){const a=c[o];if("1003"==a.type)t++,t==e&&n.value.scrollToPosition(o);else for(let l=0;l<a.list.length;l++)a.list[l],t++,t==e&&n.value.scrollToPosition(o)}}else n.value.scrollToPosition(e)},S=e=>{if(o.value<2.2){let t=-1,o=0,a=0;for(let n=0;n<c.length;n++){const l=c[n];if("1003"==l.type)t++;else for(let s=0;s<l.list.length;s++)l.list[s],t++,e==t&&(o=n,a=s)}n.value.dispatchItemFunction(o,"tv_list_inner","requestChildFocus",[a])}else n.value.requestFocus(e)},I=(e,t)=>{if(o.value<2.2){let t=-1,o=0,a=0;for(let n=0;n<c.length;n++){const l=c[n];if("1003"==l.type)t++;else for(let s=0;s<l.list.length;s++)l.list[s],t++,e==t&&(o=n,a=s)}n.value.dispatchItemFunction(o,"tv_list_inner","setSelectChildPosition",[a])}else n.value.setSelectPosition(e,t)},x=(e,t)=>{n.value.addItem(e,t)},P=()=>{n.value.destroy()};return g((()=>{l=[],c=[],s.length=0,d=!1,i=[],u=1,d=!1,r="",P(),f&&clearTimeout(f),v&&clearTimeout(v),m&&clearTimeout(m),h&&clearTimeout(h)})),{tv_list:n,apkVersion:o,init:b,onItemClick:e=>{if(o.value<2.2){let t=-1,n=e.position,o=e.parentPosition;for(let a=0;a<e.parentPosition+1;a++){const l=c[a];if("1003"==l.type)t++;else for(let s=0;s<l.list.length;s++)t++,n==s&&o==a&&(e.position=t)}}t.emit("item-click",e)},onItemBind:n=>{o.value<2.2?d||n.position!=c.length-1-e.preloadNo/e.spanCount||(u++,e.loadMore(u)):d||n.position!=l.length-1-e.preloadNo||(u++,e.loadMore(u)),t.emit("item-bind",n)},onItemFocused:e=>{if(o.value<2.2){let t=-1,n=e.position,o=e.parentPosition;for(let a=0;a<e.parentPosition+1;a++){const l=c[a];if("1003"==l.type)t++;else for(let s=0;s<l.list.length;s++)t++,n==s&&o==a&&(e.position=t)}}t.emit("item-focused",e)},onItemUnbind:e=>{t.emit("item-unbind",e)},onScroll:e=>{t.emit("scroll",e)},onScrollStateChanged:e=>{t.emit("scroll-state-changed",e)},stopPage:t=>{m&&clearTimeout(m),m=setTimeout((()=>{o.value<2.2?e.pageSize?e.pageSize/e.spanCount<=c.length&&n.value.deleteItem(c.length,1):u>2&&n.value.deleteItem(c.length,1):e.pageSize?e.pageSize<=l.length&&n.value.deleteItem(l.length,1):u>2&&n.value.deleteItem(l.length,1)}),400),d=!0},scrollToTop:()=>{n.value.scrollToTop()},clearFocus:()=>{n.value.clearFocus()},blockRootFocus:()=>{n.value.blockRootFocus()},unBlockRootFocus:()=>{n.value.unBlockRootFocus()},setDisplay:e=>{n.value.setDisplay(e)},scrollToPosition:T,scrollToIndex:(e,t,a)=>{if(o.value<2.2){let o=-1;for(let l=0;l<c.length;l++){const s=c[l];if("1003"==s.type)o++,o==e&&n.value.scrollToIndex(0,l,t,a);else for(let i=0;i<s.list.length;i++)s.list[i],o++,o==e&&n.value.scrollToIndex(0,l,t,a)}}else n.value.scrollToIndex(0,e,t,a)},setItemFocused:S,scrollToFocused:e=>{T(e),S(e)},setItemSelected:I,scrollToSelected:(e,t)=>{T(e),I(e,t)},updateItemProps:(e,t,o)=>{n.value.updateItemProps(e,t,o)},setInitPosition:e=>{n.value.setInitPosition(e)},setListData:e=>{f&&clearTimeout(f),f=setTimeout((()=>{n.value.setListData(e)}),100)},insertItem:x,clearPostTask:()=>{n.value.clearPostTask()},destroy:P}}});fo.render=function(o,a,i,c,r,u){const f=l("tv-list");return e(),d(f,{class:"tv_list",ref:"tv_list",name:"tv_list",spanCount:o.apkVersion<2.2?"":o.spanCount,onItemBind:o.onItemBind,onItemClick:o.onItemClick,onItemFocused:o.onItemFocused,onItemUnbind:o.onItemUnbind,onScroll:o.onScroll,onScrollStateChanged:o.onScrollStateChanged,onSetListData:o.setListData,blockFocusDirections:o.blockFocusDirections},{default:m((()=>[o.apkVersion<2.2?(e(),t(h,{key:0},[n(o.$slots,"header"),v(f,{class:"tv_list_inner",ref:"${name}",list:"${list}",name:"tv_list_inner",type:"1",clipChildren:!1,focusable:!1,horizontal:"",style:s({width:o.areaWidth+"px"}),endHintEnabled:!1,blockFocusDirections:o.blockFocusDirections},{default:m((()=>[n(o.$slots,"default")])),_:3},8,["style","blockFocusDirections"]),n(o.$slots,"loading")],64)):(e(),t(h,{key:1},[n(o.$slots,"header"),n(o.$slots,"default"),n(o.$slots,"loading")],64))])),_:3},8,["spanCount","onItemBind","onItemClick","onItemFocused","onItemUnbind","onScroll","onScrollStateChanged","onSetListData","blockFocusDirections"])},fo.__file="src/grid-view/index.vue";var po=dn({name:"qt-poster-focus-title",props:{fontSize:{type:Number,default:20}},setup(e,t){}});const go={class:"absoluteFocusTitleRoot",delayLoad:"400",flexStyle:"${titleFocusStyle}",autoHeight:"",focusable:!1},mo={class:"absoluteFocusMainBgRoot",duplicateParentState:!0,focusable:!1,showIf:"${title.enable}"};po.render=function(n,o,a,s,i,r){const u=l("text-view");return e(),t("div",go,[c(" 浮动标题"),v(u,{duplicateParentState:!0,focusable:!1,fontSize:26,ellipsizeMode:2,lines:1,paddingRect:[16,18,0,0],gradientBackground:"${floatTitle.background}",style:{height:"64px",color:"#ffffff"},flexStyle:"${floatTitle.style}",text:"${floatTitle}",showIf:"${floatTitle.enable}",gravity:"left",postDelay:"250"}),b("div",mo,[c(" 主标题 "),v(u,{duplicateParentState:!0,focusable:!1,fontSize:30,ellipsizeMode:2,autoHeight:"",maxLines:2,gravity:"left",paddingRect:[16,8,12,8],style:{"background-color":"transparent",color:"#000000"},flexStyle:"${title.style}",text:"${title.text}"}),c(" 副标题 "),v(u,{duplicateParentState:!0,focusable:!1,fontSize:24,ellipsizeMode:2,lines:1,autoHeight:"",gravity:"left|top",paddingRect:[16,0,0,16],style:{color:"rgba(0,0,0,.4)","background-color":"transparent"},flexStyle:"${subTitle.style}",text:"${subTitle.text}",visibility:"${subTitle}"})])])},po.__scopeId="data-v-703673b8",po.__file="src/poster/qt-poster-focus-title.vue";var ho=dn({name:"qt-poster-corner-title",props:{fontSize:{type:Number,default:20}},setup(e,t){}});const vo={class:"cornerRoot",focusable:!1};ho.render=function(n,o,a,s,i,c){const r=l("text-view");return e(),t("div",vo,[v(r,{duplicateParentState:!0,focusable:!1,textSize:n.fontSize,ellipsizeMode:2,lines:1,typeface:"bold",gravity:"center",postDelay:"350",style:{color:"white",padding:"4px 8px",height:"36px"},gradientBackground:"${corner.background}",autoWidth:"",text:"${corner.text}",showIf:"${corner.enable}"},null,8,["textSize"])])},ho.__scopeId="data-v-4b767ea2",ho.__file="src/poster/qt-poster-corner-title.vue";var bo=dn({name:"qt-poster",components:{"qt-poster-corner-title":ho,"qt-poster-focus-title":po},props:{requestFirstFocus:{type:Boolean,default:!1},loadDelay:{type:Number,default:500},type:{type:Number,default:10001},templateKeyMap:{type:Object,default:()=>null},isFocusable:{type:Boolean,default:!0},enableFocusBorder:{type:Boolean,default:!0}},setup:(e,t)=>({mainTextShowOnState:["normal","selected"]})});const _o=["enableFocusBorder"],yo=["showOnState"],To={flexStyle:"${floatTitle.style}",class:"qt-ui-poster-title-css",gradientBackground:{colors:["#e5000000","#00000000"],cornerRadii4:[0,0,8,8],orientation:4},duplicateParentState:!0,delayLoad:"500",focusable:!1,showIf:"${floatTitle.enable}"},So={flexStyle:"${ripple.style}",class:"qt-ui-poster-ripple-view-root-css",showOnState:"focused",focusable:!1,clipChildren:!1},Io=(e=>(_("data-v-3c4765e9"),e=e(),y(),e))((()=>b("img",{src:"${ripple.src}",class:"qt-ui-ripple-img-css",focusable:!1,duplicateParentState:!0,showIf:"${true}",delayLoad:"800"},null,-1)));bo.render=function(t,o,a,s,i,r){const u=l("qt-poster-focus-title"),f=l("text-view"),p=l("ripple-view"),g=l("qt-poster-corner-title"),h=l("item-frame");return e(),d(h,{type:t.type,layout:"${layout}",flexStyle:"${style}",focusable:t.isFocusable,eventClick:"",eventFocus:"",name:"poster",class:"qt-ui-poster-root-css",itemShowShimmer:"${shimmer.enable}",hideShadow:"${shadow.enable}",shimmerSize:"${size}"},{default:m((()=>[c("封面"),b("img",{class:"qt-ui-poster-img-css",duplicateParentState:!0,postDelay:"300",focusable:!1,enableFocusBorder:t.enableFocusBorder,flexStyle:"${image.style}",src:"${image.src}"},null,8,_o),c(" 焦点选中时的标题 "),v(u,{focusable:!1,showOnState:"focused"}),b("div",{style:{"flex-direction":"column","background-color":"transparent","z-index":"999"},duplicateParentState:!0,focusable:!1,flexStyle:"${titleStyle}",showOnState:t.mainTextShowOnState},[c(" 浮动标题 "),b("div",To,[v(f,{duplicateParentState:!0,focusable:!1,textSize:26,ellipsizeMode:2,enablePostTask:"",postDelay:"200",lines:1,gravity:"left",style:{"z-index":"999",height:"50px"},flexStyle:"${floatTitle.style}",text:"${floatTitle.text}"})]),c(" 主标题"),v(f,{duplicateParentState:!0,focusable:!1,textSize:30,ellipsizeMode:2,lines:1,delayLoad:"400",postDelay:"200",gravity:"left",paddingRect:[16,8,0,0],gradientBackground:"${title.background}",style:{"z-index":"999",height:"60px"},flexStyle:"${title.style}",text:"${title.text}",showIf:"${title.enable}"})],8,yo),b("div",So,[v(p,{class:"qt-ui-ripple-view-css",delayLoad:"800",focusable:!1,duplicateParentState:!0,color:"#FF4E46",isShowRipple:"${ripple.enable}",rippleVisible:"invisible"}),Io]),v(g,{focusable:!1,delayLoad:"600",flexStyle:"${corner.style}",style:{"z-index":"1000",position:"absolute"}}),n(t.$slots,"default")])),_:3},8,["type","focusable"])},bo.__scopeId="data-v-3c4765e9",bo.__file="src/poster/index.vue";var xo=o({name:"qt-nav-bar",props:{textKey:{type:String,default:"text"},itemGap:{type:Number,default:0},horizontal:{type:Boolean,default:!0},initSelect:{type:Number,default:0},size:{type:String,default:"medium"},navs:{type:Array,default:()=>[]}},setup(e,t){const n=a();let o=a("#f5f5f5"),l=T({normal:"#80ffffff",focused:"#000000",selected:"#F5F5F5"}),s=-1,i=-1;S((()=>e.navs),(e=>{e.length>0&&c(e)}));const c=t=>{t||(t=[]),t.forEach(((t,n)=>{0!==e.itemGap&&(e.horizontal?t.decoration={right:e.itemGap}:t.decoration={bottom:e.itemGap}),t.type||(t.type=2e4)})),n.value?.setListData(t),clearTimeout(i);let o=e.initSelect;o>-1&&(n.value?.scrollToPosition(o),i=setTimeout((()=>{n.value?.setItemSelected(o,!0),r(o)}),300))},r=e=>{clearTimeout(s),s=setTimeout((()=>{t.emit("tab-select",{position:e})}),300)};return{navList:n,focusColor:o,textColor:l,bgPadding:[10,10],onTabChange:e=>{!0===e.hasFocus&&(t.emit("tab-focus",e),r(e.position))},scrollToPosition:e=>{n.value?.scrollToPosition(e)},scrollToTop:()=>{n.value?.scrollToTop()},init:e=>{c(e.data)}}}});const Eo=["stateTextColor","sateBackgroundPadding"],Fo=["stateTextColor","sateBackgroundPadding"];var Po,Co;xo.render=function(t,o,a,i,c,r){const u=l("text-view"),f=l("qt-list-view");return t.horizontal?(e(),d(f,{key:0,ref:"navList",clipChildren:!1,clipPadding:!1,horizontal:"",class:"qt-ui-nav-bar-root-horizontal",onItemFocused:t.onTabChange},{default:m((()=>[b("div",{class:"qt-ui-nav-bar-item-css",type:2e4,autoWidth:"",focusable:!0,eventFocus:"",flexStyle:"${style}",clipChildren:!1,style:s({focusBackgroundColor:t.focusColor}),stateTextColor:t.textColor,sateBackgroundPadding:t.bgPadding},[v(u,{autoWidth:"",gravity:"center",lines:1,fontSize:44,class:"qt-ui-nav-bar-item-text-css",duplicateParentState:!0,text:"${text}"})],12,Eo),n(t.$slots,"default")])),_:3},8,["onItemFocused"])):(e(),d(f,{key:1,ref:"navList",clipChildren:!1,clipPadding:!1,class:"qt-ui-nav-bar-root-vertical",onItemFocused:t.onTabChange},{default:m((()=>[b("div",{class:"qt-ui-nav-bar-item-css",type:2e4,flexStyle:"${style}",eventFocus:"",autoWidth:"",focusable:!0,stateTextColor:t.textColor,style:s({focusBackgroundColor:t.focusColor}),sateBackgroundPadding:t.bgPadding,clipChildren:!1},[v(u,{autoWidth:"",gravity:"center",lines:1,fontSize:44,class:"qt-ui-nav-bar-item-text-css",duplicateParentState:!0,text:"${text}"})],12,Fo),n(t.$slots,"default")])),_:3},8,["onItemFocused"]))},xo.__file="src/nav-bar/index.vue",function(e){e[e.QT_WATERFALL_SECTION_TYPE_LOADING=-1]="QT_WATERFALL_SECTION_TYPE_LOADING",e[e.QT_WATERFALL_SECTION_TYPE_TITLE=1e3]="QT_WATERFALL_SECTION_TYPE_TITLE",e[e.QT_WATERFALL_SECTION_TYPE_FLEX=1002]="QT_WATERFALL_SECTION_TYPE_FLEX",e[e.QT_WATERFALL_SECTION_TYPE_LIST=1003]="QT_WATERFALL_SECTION_TYPE_LIST",e[e.QT_WATERFALL_SECTION_TYPE_TAB=1003]="QT_WATERFALL_SECTION_TYPE_TAB",e[e.QT_WATERFALL_SECTION_TYPE_INDEPENDENT_ITEM=1004]="QT_WATERFALL_SECTION_TYPE_INDEPENDENT_ITEM",e[e.QT_WATERFALL_SECTION_TYPE_TAB_LIST=1005]="QT_WATERFALL_SECTION_TYPE_TAB_LIST",e[e.QT_WATERFALL_SECTION_TYPE_CARD=1006]="QT_WATERFALL_SECTION_TYPE_CARD",e[e.QT_WATERFALL_SECTION_TYPE_VUE=1007]="QT_WATERFALL_SECTION_TYPE_VUE",e[e.QT_WATERFALL_SECTION_TYPE_END=-1001]="QT_WATERFALL_SECTION_TYPE_END",e[e.QT_WATERFALL_SECTION_TYPE_BLANK=-1e3]="QT_WATERFALL_SECTION_TYPE_BLANK"}(Po||(Po={})),function(e){e[e.QT_WATERFALL_ITEM_TYPE_STANDARD_ITEM=10001]="QT_WATERFALL_ITEM_TYPE_STANDARD_ITEM",e[e.QT_WATERFALL_ITEM_TYPE_TAB=10002]="QT_WATERFALL_ITEM_TYPE_TAB",e[e.QT_WATERFALL_ITEM_TYPE_CARD=10003]="QT_WATERFALL_ITEM_TYPE_CARD"}(Co||(Co={}));var Lo=dn({name:"card-item",setup(e,t){const n=P();return{onFocus:function(e){n.isLoggable(C.DEBUG)&&n.d("card-item","------onFocus---------\x3e>>>",e),t.emit("focus",e)}}}});Lo.render=function(t,n,o,a,s,i){const c=l("es-card-container");return e(),d(c,{clipChildren:!1,clipPadding:!1,autoRecycle:!0,disablePlaceholder:"",layout:"${layout}",flexStyle:"${style}",cardId:"${cardId}",focusScale:"${cardPlaceHolder.focusScale}",focusable:"${cardPlaceHolder.focusable}",showPlaceHolder:"${cardPlaceHolder.enable}",placeHolderRadius:"${cardPlaceHolder.radius}",placeHolderRect:"${cardPlaceHolder.rect}",type:10003,onFocus:t.onFocus,class:"qt-ui-waterfall-card-item"},null,8,["onFocus"])},Lo.__scopeId="data-v-599898aa",Lo.__file="src/waterfall/item/card-item.vue";var ko=dn({name:"standard-section",components:{"card-item":Lo},props:{enablePlaceholder:{type:Boolean,default:!0},plateData:{type:String,default:""},useDiff:{type:Boolean,default:!0},cachePool:{type:Object,default:{}},sectionType:{type:Number,default:Po.QT_WATERFALL_SECTION_TYPE_FLEX},standItemType:{type:Number,default:Co.QT_WATERFALL_ITEM_TYPE_STANDARD_ITEM},currentPageIndex:{type:Number,default:-1}},setup(e,t){const n=P();return{onFocus:function(e){n.isLoggable(C.DEBUG)&&n.d("card-item","------onFocus---------\x3e>>>",e),t.emit("focus",e)}}}});const Do=["type"];ko.render=function(o,a,s,i,r,u){const d=l("text-view"),f=l("qt-poster"),p=l("card-item"),g=l("tv-flex");return e(),t("div",{class:"standard-section-css",blockFocusDirections:["left","right"],clipChildren:!1,clipPadding:!1,type:o.sectionType,focusable:!1,keyName:"_id",flexStyle:"${style}",bringFocusChildToFront:!0,useAdvancedFocusSearch:!0},[v(d,{class:"standard-section-title-text-css",delayLoad:"200",postDelay:"300",flexStyle:"${titleStyle}",focusable:!1,textSize:50,text:"${title}"}),v(g,{class:"standard-section-css",name:"QUICKTVUI_WARTERFALL_LIST",blockFocusDirections:["left","right"],clipChildren:!1,clipPadding:!1,bringFocusChildToFront:!0,cachePool:o.cachePool,useDiff:o.useDiff,keyName:"_id",enablePlaceholder:o.enablePlaceholder,focusScrollTarget:"${focusScrollTarget==true}",list:"${itemList}"},{default:m((()=>[c(" poster "),v(f,{"load-delay":500,type:o.standItemType},null,8,["type"]),c(" card "),v(p,{onFocus:o.onFocus},null,8,["onFocus"]),n(o.$slots,"default")])),_:3},8,["cachePool","useDiff","enablePlaceholder"])],8,Do)},ko.__scopeId="data-v-227e921e",ko.__file="src/waterfall/section/flex-section.vue";const No="tab-list-section";var wo=dn({name:"tabs-list-section",props:{enablePlaceholder:{type:Boolean,default:!0},isSwitchBgScroll:{type:Boolean,default:!1},standItemType:{type:Number,default:10001},tabItemType:{type:Number,default:10002},sectionType:{type:Number,default:Po.QT_WATERFALL_SECTION_TYPE_LIST},fetchPendingData:{type:Function,default:null},arrangeType:{type:String,default:"TB"}},setup(e,t){const n=P();return{blockDirections:["left","right"],onItemBind:function(e){n.isLoggable(C.DEBUG)&&n.d(No,"----------onItemBind--------------\x3e>>",e)},onItemClick:function(e){n.isLoggable(C.DEBUG)&&n.d(No,"----------onItemClick--------------\x3e>>",e)},onItemRecycled:function(e){n.isLoggable(C.DEBUG)&&n.d(No,"----------onItemRecycled--------------\x3e>>",e)},onItemFocused:function(e){n.isLoggable(C.DEBUG)&&n.d(No,"----------onItemFocused--------------\x3e>>",e)}}}});const Oo={class:"qt-ui-section-tab-list-root",focusable:!1,flexStyle:"${style}",blockFocusDirections:["right"],clipChildren:!1,useAdvancedFocusSearch:!0,bringFocusChildToFront:!0},Ao=["type"];wo.render=function(t,o,a,s,i,c){const r=l("text-view"),u=l("qt-poster"),f=l("tv-list"),p=l("tv-item");return e(),d(p,{type:t.sectionType,clipPadding:!1,clipChildren:!1,ref:"listSection",class:"tab-list-section-root-css",onItemClick:t.onItemClick,onItemBind:t.onItemBind,onItemUnbind:t.onItemRecycled,onItemFocused:t.onItemFocused},{default:m((()=>[b("div",Oo,[v(r,{class:"tab-list-section-title-text-css",delayLoad:"200",postDelay:"300",flexStyle:"${titleStyle}",focusable:!1,textSize:50,text:"${title}"}),v(f,{list:"${itemList}",horizontal:"",clipChildren:!1,focusable:!1,class:"tab-list-section-list-css",name:"QUICKTVUI_WARTERFALL_LIST",resetOnDetach:!0,enableKeepFocus:"${enableKeepFocus==true}",endHintEnabled:"${enableEndHit}",onScrollEnable:!1,setSelectChildPosition:0,enablePlaceholder:t.enablePlaceholder,cachePoolName:"HorizontalList",blockFocusDirections:t.blockDirections},{default:m((()=>[v(u,{type:t.standItemType},null,8,["type"]),b("div",{type:t.tabItemType,class:"qt-ui-section-tab-list-item",clipChildren:!1,flexStyle:"${style}",style:{"padding-left":"24px","padding-right":"23px","justify-content":"center",height:"50px"},autoWidth:"",name:"QUICKTVUI_TAB_2",focusable:!0,eventClick:"",eventFocus:""},[v(r,{class:"qt-ui-section-tab-list-item-text",autoWidth:"",flexStyle:"${textStyle}",gravity:"center",fontSize:36,lines:1,focusable:!1,duplicateParentState:!0,style:{height:"50px"},text:"${text}"})],8,Ao),n(t.$slots,"default")])),_:3},8,["enablePlaceholder","blockFocusDirections"])])])),_:3},8,["type","onItemClick","onItemBind","onItemUnbind","onItemFocused"])},wo.__scopeId="data-v-88e60816",wo.__file="src/waterfall/section/tabs-list-section.vue";var Ro=dn({name:"loading-section"});const Bo={focusable:!1,type:-1,class:"loading-section-css"};Ro.render=function(n,o,a,s,i,c){const r=l("qt-loading-view");return e(),t("div",Bo,[v(r,{class:"loading-section-loading-css"})])},Ro.__scopeId="data-v-48609f24",Ro.__file="src/waterfall/section/loading-section.vue";var $o=dn({name:"end-section",setup:()=>({})});const Uo={type:-1001,focusable:!1,flexStyle:"${style}",class:"qt-waterfall-end-section-css"};$o.render=function(n,o,a,s,i,c){const r=l("text-view");return e(),t("div",Uo,[v(r,{focusable:!1,gravity:"center",flexStyle:"${titleStyle}",class:"qt-waterfall-end-section-text-css",fontSize:28,text:"${title}"})])},$o.__scopeId="data-v-70b82c43",$o.__file="src/waterfall/section/end-section.vue";var Vo=dn({props:{plateTitleLeftMargin:{type:Number,default:0},type:{type:Number,default:Po.QT_WATERFALL_SECTION_TYPE_TITLE}},setup:(e,t)=>({})});const zo=["type"];Vo.render=function(n,o,a,i,c,r){const u=l("text-view");return e(),t("div",{class:"section-title-css",blockFocusDirections:["left","right"],clipChildren:!1,clipPadding:!1,type:n.type,focusable:!1,bringFocusChildToFront:!0,useAdvancedFocusSearch:!0},[v(u,{class:"section-title-text-css",delayLoad:"200",postDelay:"300",style:s({marginLeft:n.plateTitleLeftMargin+"px"}),focusable:!1,textSize:50,text:"${title}"},null,8,["style"])],8,zo)},Vo.__scopeId="data-v-20428d40",Vo.__file="src/waterfall/section/section-title.vue";var qo=dn({name:"blank-section",setup:()=>({})});const Wo={focusable:!1,type:-1e3,flexStyle:"${style}",class:"qt-ui-waterfall-blank-section"};qo.render=function(n,o,a,l,s,i){return e(),t("div",Wo)},qo.__scopeId="data-v-eeab4d88",qo.__file="src/waterfall/section/blank-section.vue";var Mo=dn({name:"card-section",setup(e,t){const n=P();return{onFocus:function(e){n.isLoggable(C.DEBUG)&&n.d("card-section","------onFocus---------\x3e>>>",e),t.emit("focus",e)}}}});const Go={type:1006,class:"qt-ui-waterfall-card-section-css",clipChildren:!1,clipPadding:!1,focusScrollTarget:"${isFocusScrollTarget}",keyName:"_id",flexStyle:"${style}",bringFocusChildToFront:!0,useAdvancedFocusSearch:!0};Mo.render=function(n,o,a,s,i,c){const r=l("text-view"),u=l("es-card-container");return e(),t("div",Go,[v(r,{class:"qt-ui-waterfall-card-section-title-css",delayLoad:"200",postDelay:"300",flexStyle:"${titleStyle}",focusable:!1,textSize:50,text:"${title}"}),v(u,{cardId:"${cardId}",onFocus:n.onFocus,clipChildren:!1,clipPadding:!1,autoRecycle:!0,focusScale:"${cardPlaceHolder.focusScale}",focusable:"${cardPlaceHolder.focusable}",showPlaceHolder:"${cardPlaceHolder.enable}",placeHolderRadius:"${cardPlaceHolder.radius}",placeHolderRect:"${cardPlaceHolder.rect}",flexStyle:"${cardStyle}",class:"qt-ui-waterfall-card-section"},null,8,["onFocus"])])},Mo.__scopeId="data-v-43a44788",Mo.__file="src/waterfall/section/card-section.vue";var Qo=dn({name:"vue-section",setup:(e,t)=>({onSectionBind:function(){}})});function jo(e,t){const n=[];if(t&&t.length>0)for(let o=0;o<t.length;o++){let a=Yo(e,t[o]);n.push(a)}return n}function Yo(e,t){let n=0;return t.itemList.length>0&&(n=function(e,t){const n=t.itemList,o=t.style?.spacing??0,a=t.titleStyle,l=a?.height??0,s=a?.marginTop??0,i=a?.marginBottom??0,c=a?.paddingTop??0,r=a?.paddingBottom??0;let u=0,d=0,f=0,p=0;for(let t=0;t<n.length;t++){const a=n[t],l=a.decoration,s=l?.left??0,i=l?.top??0,c=l?.right??0,r=l?.bottom??0;let g=a?.style.width??0,m=a?.style.height??0;u+g+c>=e&&(d+=f+o,f=0,u=0),a.layout||(a.layout=[0,0,g,m]),a.layout[0]=u+s,a.layout[1]=d+i,a.layout[1]+m+r>p&&(p=a.layout[1]+m+r),m+i+r>f&&(f=m+i+r),u+=g+o+s+c}return p+l+s+i+c+r}(e.width,t),t.style.height=n),t}function Ho(){let e=[];function t(e){return e.itemList.length}function n(n,o){console.log("----1--------getRangeSectionListItemCount-----------------\x3e>>>");const a=e.length;if(n<0||n>=a)return 0;console.log("----2--------getRangeSectionListItemCount-----------------\x3e>>>");let l=n+o;n+o>a&&(l=a),console.log("----3--------getRangeSectionListItemCount-----------------\x3e>>>");let s=0;for(let o=n;o<l;o++){s+=t(e[o])}return s}function o(){console.log("--------dumpWaterfallData---------\x3e>>>",e)}return{init:function(){},getSectionList:function(){return e},addSectionList:function(a){const l=e.length,s=n(0,l),i=function(e){if(e.length<=0)return 0;let n=0;for(let o=0;o<e.length;o++){n+=t(e[o])}return n}(a);return e.push(...a),o(),{sectionIndex:l,sectionCount:a.length,itemIndex:s,itemCount:i}},deleteSection:function(t,a){const l=n(0,t-1),s=n(t,a);return e.splice(t,a),o(),{sectionIndex:t,sectionCount:a,itemIndex:l,itemCount:s}},updateSection:function(a,l){const s=n(0,a-1),i=t(l);return e.splice(a,1,l),o(),{sectionIndex:a,sectionCount:1,itemIndex:s,itemCount:i}},getSection:function(t){if(!(t<0||t>=e.length||0==e.length))return e[t]},addItemList:function(t,n){const a=e.length;if(t<0||t>=a||n.length<=0)return{sectionIndex:-1,sectionCount:0,itemIndex:-1,itemCount:0};const l=e[t],s=l.itemList.length;return l.itemList.push(...n),o(),{sectionIndex:t,sectionCount:1,itemIndex:s,itemCount:n.length}},deleteItem:function(t,n,a){return e[t].itemList.splice(n,a),o(),{sectionIndex:t,sectionCount:1,itemIndex:n,itemCount:a}},updateItem:function(t,n,a){return e[t].itemList.splice(n,1,a),o(),{sectionIndex:t,sectionCount:1,itemIndex:n,itemCount:1}},updateItemList:function(t,n,a,l){return e[t].itemList.splice(n,a,...l),o(),{sectionIndex:t,sectionCount:1,itemIndex:n,itemCount:a}},getItem:function(t,n){const o=e[t];if(o&&o.itemList.length>0&&n>=0&&n<o.itemList.length){return o.itemList[n]}},destroy:function(){e=[]}}}Qo.render=function(t,o,a,s,i,c){const r=l("tv-item");return e(),d(r,{class:"qt-ui-waterfall-vue-section",type:1007,blockFocusDirections:["left","right"],clipChildren:!1,clipPadding:!1,flexStyle:"${style}",singleton:"",onItemBind:t.onSectionBind},{default:m((()=>[n(t.$slots,"default")])),_:3},8,["onItemBind"])},Qo.__scopeId="data-v-f8447724",Qo.__file="src/waterfall/section/vue-section.vue";const Xo="qt-waterfall";var Ko,Jo=dn({name:"qt-waterfall",emits:["onScroll","onScrollStateChanged","onItemClick","onItemFocused","onSectionBind","onSectionAttached"],props:{enablePlaceholder:{type:Boolean,default:!0},prevLoadNumber:{type:Number,default:3},backTop:{type:Function,default:()=>{}},isLoadMore:{type:Boolean,default:!0},headBlank:{type:Number,default:90},blockFocusDirections:{type:Array,default:()=>["down"]}},setup(e,t){const n=P(),o={name:"tvList"+Date.now(),size:{20008:10}},l=a();let s;const i=Ho();return{waterfallRef:l,init:function(e){s=e},setAutoFocus:function(e,t){l.value?.setAutoFocus(e,t)},getSectionList:function(){return i.getSectionList()},setSectionList:function(e){if(!s)return;n.isLoggable(C.DEBUG)&&n.d(Xo,"-------1---setSectionList--------------\x3e>>"),i.destroy();const t=i.addSectionList(e);n.isLoggable(C.DEBUG)&&n.d(Xo,"-------2---setSectionList--------------\x3e>>",t);const o=jo(s,e);n.isLoggable(C.DEBUG)&&n.d(Xo,"----------setSectionList-----最终数据---------\x3e>>",o),l.value?.setListData(o)},addSectionList:function(e){if(!s)return;i.addSectionList(e);const t=jo(s,e);n.isLoggable(C.DEBUG)&&n.d(Xo,"----------addSectionList-----最终数据---------\x3e>>",t),l.value?.addListData(t)},deleteSection:function(e,t){const o=i.deleteSection(e,t);n.isLoggable(C.DEBUG)&&n.d(Xo,"----------deleteSection-----最终数据---------\x3e>>",o),l.value?.deleteItem(e,t)},updateSection:function(e,t){i.updateSection(e,t);const o=Yo(s,t);n.isLoggable(C.DEBUG)&&n.d(Xo,"----------updateSection-----最终数据---------\x3e>>sectionIndex:"+e+"updateSection:"+o),l.value?.updateItem(e,o)},updateSectionList:function(e,t,n){const o=[];for(let t=0;t<n.length;t++){const a=n[t];i.updateSection(e+t,a);const l=Yo(s,a);l&&o.push(l)}l.value?.updateItemList(e,t,o)},getSection:function(e){return i.getSection(e)},addItemList:function(e,t){i.addItemList(e,t);const n=i.getSection(e);if(n){const t=Yo(s,n);l.value?.updateItem(e,t)}},deleteItem:function(e,t,n){i.deleteItem(e,t,n);const o=i.getSection(e);if(o){const t=Yo(s,o);l.value?.updateItem(e,t)}},updateItem:function(e,t,n){i.updateItem(e,t,n);const o=i.getSection(e);if(o){const t=Yo(s,o);l.value?.updateItem(e,t)}},updateItemList:function(e,t,n,o){i.updateItemList(e,t,n,o);const a=i.getSection(e);if(a){const t=Yo(s,a);l.value?.updateItem(e,t)}},getItem:function(e,t){return i.getItem(e,t)},cachePool:o,flexCachePool:{name:"tvFlex",size:{1:50}},onScroll:function(e){e.stopPropagation();let n=e.offsetX,o=e.offsetY;t.emit("onScroll",n,o)},onItemClick:function(e){n.isLoggable(C.DEBUG)&&n.d(Xo,"----------onItemClick--------------\x3e>>",e,"sectionIndex:"+e.parentPosition+" position:"+e.position+" "),t.emit("onItemClick",e.parentPosition,e.position,e.item)},onItemFocused:function(e){n.isLoggable(C.DEBUG)&&n.d(Xo,"----------onItemFocused--------------\x3e>>",e,"sectionIndex:"+e.parentPosition+" position:"+e.position+" isFocused:"+e.isFocused+" "),t.emit("onItemFocused",e.parentPosition,e.position,e.isFocused,e.item)},onSectionBind:function(e){if(e){n.isLoggable(C.DEBUG)&&n.d(Xo,"----------onSectionBind--------------\x3e>>",e);let o=e.pageIndex??0;t.emit("onSectionBind",o,e.position)}},onSectionAttached:function(e){if(e){n.isLoggable(C.DEBUG)&&n.d(Xo,"----------onSectionAttached--------------\x3e>>",e);let o=e.pageIndex??0;t.emit("onSectionAttached",o,e.position)}},onScrollStateChanged:function(e){let n=e.offsetY,o=e.offsetX,a=e.newState;t.emit("onScrollStateChanged",o,n,a)},resumePostTask:function(){l.value?.pausePostTask()},pausePostTask:function(){l.value?.pausePostTask()},clearPostTask:function(){l.value?.clearPostTask()},destroy:function(){l.value?.destroy()},scrollToTop:function(){l.value?.scrollToTop()}}},components:{"flex-section":ko,"tabs-list-section":wo,"section-title":Vo,"loading-section":Ro,"end-section":$o,"blank-section":qo,"card-section":Mo,"vue-section":Qo}});function Zo(){const e=new Map,t=new Map;function n(n){const o={index:n,state:Ko.QT_TAB_PAGE_STATE_IDLE};e.set(n,o),t.set(n,[])}function o(e){return e.itemList.length}function a(e,t,n){const a=e.length;if(t<0||t>=a)return 0;let l=t+n;t+n>a&&(l=a),console.log("----3--------getRangeSectionListItemCount-----------------\x3e>>>");let s=0;for(let n=t;n<l;n++){s+=o(e[n])}return s}function l(){console.log("--------dumpTabWaterfallData---------\x3e>>>",t)}return{initTab:function(e){const t=e.itemList;for(let e=0;e<t.length;e++)n(e)},getTabPageData:function(t){return e.get(t)},setTabPageData:function(t,n){e.set(t,n)},getSectionList:function(e){return t.get(e)??[]},addSectionList:function(n,s){const i=t.get(n)??[],c=i.length,r=a(i,0,c),u=function(e){if(e.length<=0)return 0;let t=0;for(let n=0;n<e.length;n++){t+=o(e[n])}return t}(s);i.push(...s);const d=e.get(n);return d&&(d.state=Ko.QT_TAB_PAGE_STATE_IDLE),l(),{pageIndex:n,sectionIndex:c,sectionCount:s.length,itemIndex:r,itemCount:u}},deleteSection:function(e,n,o){const s=t.get(e)??[],i=a(s,0,n-1),c=a(s,n,o);return s.splice(n,o),l(),{pageIndex:e,sectionIndex:n,sectionCount:o,itemIndex:i,itemCount:c}},updateSection:function(e,n,s){const i=t.get(e)??[],c=a(i,0,n-1),r=o(s);return i.splice(n,1,s),l(),{pageIndex:e,sectionIndex:n,sectionCount:1,itemIndex:c,itemCount:r}},updateSectionList:function(e,n){return t.set(e,n),l(),{pageIndex:e,sectionIndex:0,sectionCount:n.length,itemIndex:-1,itemCount:-1}},getSection:function(e,n){const o=t.get(e)??[];if(!(n<0||n>=o.length||0==o.length))return o[n]},addItemList:function(e,n,o){const a=t.get(e)??[],s=a.length;if(n<0||n>=s||o.length<=0)return{pageIndex:e,sectionIndex:-1,sectionCount:0,itemIndex:-1,itemCount:0};const i=a[n],c=i.itemList.length;return i.itemList.push(...o),l(),{pageIndex:e,sectionIndex:n,sectionCount:1,itemIndex:c,itemCount:o.length}},deleteItem:function(e,n,o,a){return(t.get(e)??[])[n].itemList.splice(o,a),l(),{pageIndex:e,sectionIndex:n,sectionCount:1,itemIndex:o,itemCount:a}},updateItem:function(e,n,o,a){return(t.get(e)??[])[n].itemList.splice(o,1,a),l(),{pageIndex:e,sectionIndex:n,sectionCount:1,itemIndex:o,itemCount:1}},updateItemList:function(e,n,o,a,s){return(t.get(e)??[])[n].itemList.splice(o,a,...s),l(),{pageIndex:e,sectionIndex:n,sectionCount:1,itemIndex:o,itemCount:a}},getItem:function(e,n,o){const a=(t.get(e)??[])[n];if(a&&a.itemList.length>0&&o>=0&&o<a.itemList.length){return a.itemList[o]}},destroy:function(){t.clear()}}}Jo.render=function(t,o,a,s,i,r){const u=l("flex-section"),f=l("tabs-list-section"),p=l("loading-section"),g=l("end-section"),h=l("blank-section"),b=l("card-section"),_=l("vue-section"),y=l("tv-list");return e(),d(y,{ref:"waterfallRef",class:"qt-waterfall-root-css",clipChildren:!1,clipPadding:!1,listenBoundEvent:!0,negativeKeyTime:"30",postContentDelay:"500",onScroll:t.onScroll,onItemClick:t.onItemClick,onItemFocused:t.onItemFocused,onItemBind:t.onSectionBind,onItemAttached:t.onSectionAttached,focusMemory:!1,cachePool:t.cachePool,preload:1,checkScrollOffsetOnStateChanged:!0,makeChildVisibleType:"center",scrollThresholdVertical:50,scrollEventThrottle:16,enableSelectOnFocus:!1,advancedFocusSearchSpan:"1",scrollYLesserReferenceValue:30,scrollYGreaterReferenceValue:30,shakePreCheckNumber:"4",blockFocusDirections:t.blockFocusDirections,onScrollStateChanged:t.onScrollStateChanged},{default:m((()=>[c(" 普通版块"),v(u,{"cache-pool":t.flexCachePool,enablePlaceholder:t.enablePlaceholder,onFocus:t.onItemFocused},{default:m((()=>[n(t.$slots,"item")])),_:3},8,["cache-pool","enablePlaceholder","onFocus"]),c("一行滚动 多级tab"),v(f,{enablePlaceholder:t.enablePlaceholder},{default:m((()=>[n(t.$slots,"list-item")])),_:3},8,["enablePlaceholder"]),c(" loading"),v(p),c(" end "),v(g),c(" blank "),v(h),c(" card "),v(b,{onFocus:t.onItemFocused},null,8,["onFocus"]),c(" vue "),v(_,null,{default:m((()=>[n(t.$slots,"vue-section")])),_:3}),n(t.$slots,"section")])),_:3},8,["onScroll","onItemClick","onItemFocused","onItemBind","onItemAttached","cachePool","blockFocusDirections","onScrollStateChanged"])},Jo.__file="src/waterfall/index.vue",function(e){e[e.QT_TAB_PAGE_STATE_IDLE=0]="QT_TAB_PAGE_STATE_IDLE",e[e.QT_TAB_PAGE_STATE_BUSY=1]="QT_TAB_PAGE_STATE_BUSY",e[e.QT_TAB_PAGE_STATE_COMPLETE=2]="QT_TAB_PAGE_STATE_COMPLETE",e[e.QT_TAB_PAGE_STATE_ERROR=3]="QT_TAB_PAGE_STATE_ERROR"}(Ko||(Ko={}));const ea="qt-tab";var ta=dn({name:"qt-tab",emits:["onTabPageLoadData","onTabPageChanged","onTabEvent","onTabPageItemClick","onTabPageItemFocused","onTabPageSectionAttached","onTabPageScroll","onTabPageScrollStateChanged","onTabMoveToTopStart","onTabMoveToTopEnd","onTabMoveToBottomStart","onTabMoveToBottomEnd","onTabChanged","onTabPageScrollToEnd","onTabPageScrollToStart"],props:{preloadNumber:{type:Number,default:3},tabNavBarClass:{type:String,default:""},tabClass:{type:String,default:""},tabsDataStrategy:{type:String,default:"overTime"},tabContentClass:{type:String,default:""},horizontal:{type:Boolean,default:!0},pageTransform:{type:Boolean,default:!0},hideOnSingleTab:{type:Boolean,default:!0},floatNavBar:{type:Boolean,default:!0},contentNextFocus:{type:Object,default:()=>({up:"tabList",left:"tabList"})},triggerTask:{type:Array,default:()=>[]},blockViewPager:{type:Array,default:()=>[]},blockViewPagerVertical:{type:Array,default:()=>[]},tabContentBlockFocusDirections:{type:Array,default:()=>["down"]},tabContentResumeDelay:{type:Number,default:500},tabContentSwitchDelay:{type:Number,default:300}},setup(e,t){const n=a(),o=a(!0),l=a(1),s=a(!0),i=P(),c=a(),r=Zo();let u,d=-1;function f(e,t){const n=r.getTabPageData(e);n&&(n.state=t,r.setTabPageData(e,n))}function p(n,o,a){let l=r.getTabPageData(n);if(l&&l.state===Ko.QT_TAB_PAGE_STATE_IDLE){a>=r.getSectionList(n).length-e.preloadNumber-1&&(i.isLoggable(C.DEBUG)&&i.d(ea,"----------loadPageData----加载数加载据--\x3e>>> pageIndex:"+n+" sectionIndex:"+a),t.emit("onTabPageLoadData",n,o),f(n,Ko.QT_TAB_PAGE_STATE_BUSY))}else i.isLoggable(C.DEBUG)&&i.d(ea,"----------loadPageData--状态不对--\x3e>>>",n)}function g(e,n){i.isLoggable(C.DEBUG)&&i.d(ea,"----------onWaterfallScroll----\x3e>>> offsetX:"+e+" scrollY:"+n),t.emit("onTabPageScroll",e,n)}function m(e,n,o){i.isLoggable(C.DEBUG)&&i.d(ea,"----------onWaterfallScrollStateChanged----\x3e>>> offsetX:"+e+" scrollY:"+n+" newState:"+o),t.emit("onTabPageScrollStateChanged",e,n,o)}return{tabs:n,ifTabs:o,navBarRef:c,initTab:function(e){let t={defaultIndex:e.defaultIndex,focusIndex:e.defaultFocusIndex,data:e.itemList};r.initTab(e),n.value?.setTabsData(t)},setAutoFocus:function(e,t){n.value?.setAutoFocus(e,t)},initWaterfall:function(e){u=e},setTagPageSate:f,setTabPageData:function(e,t){i.isLoggable(C.DEBUG)&&i.d(ea,"----------loadPageData----setTabPageData--\x3e>>>pageIndex:"+e),r.addSectionList(e,t.data);const o={data:jo(u,t.data),disableScrollOnFirstScreen:t.disableScrollOnFirstScreen??!1,firstFocusTargetID:t.firstFocusTargetID??"",useDiff:t.useDiff};i.isLoggable(C.DEBUG)&&i.d(ea,"------设置数据----setTabPageData------\x3e>>> pageIndex:"+e+" data:",o),n.value?.setPageData(e,o)},addPageData:function(e,t,o=0){i.isLoggable(C.DEBUG)&&i.d(ea,"----------loadPageData----addPageData--\x3e>>>pageIndex:"+e),r.addSectionList(e,t.data);const a={data:jo(u,t.data),disableScrollOnFirstScreen:t.disableScrollOnFirstScreen??!1,firstFocusTargetID:t.firstFocusTargetID??"",useDiff:t.useDiff};i.isLoggable(C.DEBUG)&&i.d(ea,"----设置数据------addPageData------\x3e>>> pageIndex:"+e+" data:",a," deleteCount:"+o),n.value?.addPageData(e,a,o)},updatePageData:function(e,t){r.updateSectionList(e,t.data);const o={data:jo(u,t.data),disableScrollOnFirstScreen:t.disableScrollOnFirstScreen??!1,firstFocusTargetID:t.firstFocusTargetID??"",useDiff:t.useDiff};n.value?.updatePageData(e,o)},updatePageSection:function(e,t,o){r.updateSection(e,t,o);const a=Yo(u,o);n.value?.updateRootNode(e,t,a)},getPageSection:function(e,t){return r.getSection(e,t)},getPageSectionList:function(e){return r.getSectionList(e)},deletePageSection:function(e,t,o){r.deleteSection(e,t,o),n.value?.invokeContentFunction(e,"deleteItemRange",[t,o])},addPageItemList:function(e,t,o){r.addItemList(e,t,o);const a=r.getSection(e,t);if(a){const o=Yo(u,a);n.value?.updateRootNode(e,t,o)}},getPageItem:function(e,t,n){return r.getItem(e,t,n)},updatePageItem:function(e,t,o,a){r.updateItem(e,t,o,a),n.value?.updateChildNode(e,t,o,a)},deletePageItem:function(e,t,o,a){r.deleteItem(e,t,o,a);const l=r.getSection(e,t);if(l){const o=Yo(u,l);n.value?.updateRootNode(e,t,o)}},blockRootFocus:function(){n.value?.blockRootFocus()},unBlockRootFocus:function(){n.value?.unBlockRootFocus()},focusBackToTop:function(){n.value?.focusBackToTop()},requestNodeFocus:function(e){n.value?.requestNodeFocus(e)},reloadAll:function(e=!0){n.value?.reloadAll(e)},reloadPage:function(e){n.value?.reloadPage(e)},setCurrentPage:function(e){n.value?.setCurrentPage(e)},requestTabFocus:function(e){n.value?.requestTabFocus(e)},invokeContentFunction:function(e,t,o){n.value?.invokeContentFunction(e,t,o)},invokeContentFunctionDirect:function(e,t){n.value?.invokeContentFunctionDirect(e,t)},contentScrollToFocus:function(e){n.value?.contentScrollToFocus(e)},getRootNodeViewState:function(e,t,o){n.value?.getRootNodeViewState(e,t,o)},getChildNodeViewState:function(e,t,o,a,l){n.value?.getChildNodeViewState(e,t,o,a,l)},dispatchUIFunctionOnChildNode:function(e,t,o,a,l){n.value?.dispatchUIFunctionOnChildNode(e,t,o,a,l)},updateItemMatched:function(e="id",t,o){n.value?.updateItemMatched(e,t,o)},updateRootNode:function(e,t,o){n.value?.updateRootNode(e,t,o)},updateChildNode:function(e,t,o,a){n.value?.updateChildNode(e,t,o,a)},destroy:function(){n.value?.destroy()},rootOpacity:l,isTabHorizontal:s,onTabPageLoadData:function(e){const t=e.pageIndex,n=e.useDiff;i.isLoggable(C.DEBUG)&&i.d(ea,"----------loadPageData----android--\x3e>>>pageIndex:"+t),p(t,n,0)},onTabPageChanged:function(e){const n=e.pageIndex;d=n;const o=e.data;i.isLoggable(C.DEBUG)&&i.d(ea,"----------onTabPageChanged------\x3e>>> pageIndex:"+n+" data:",o),t.emit("onTabPageChanged",n,o)},onTabEvent:function(e){const n=e.params,o=e.eventName,a=e.params.itemPosition,l=e.params.x,s=e.params.y,c=e.params.contentOffset,r=e.params.state;switch(i.isLoggable(C.DEBUG)&&i.d(ea,"----------onTabEvent------\x3e>>> eventName:"+o+" tabIndex:"+a+" params:",n),t.emit("onTabEvent",a,o,n),o){case"onMoveToTopStart":t.emit("onTabMoveToTopStart",a,o,n);break;case"onMoveToTopEnd":t.emit("onTabMoveToTopEnd",a,o,n);break;case"onMoveToBottomStart":t.emit("onTabMoveToBottomStart",a,o,n);break;case"onMoveToBottomEnd":t.emit("onTabMoveToBottomEnd",a,o,n);break;case"onTabChanged":t.emit("onTabChanged",a,o,n);break;case"onScroll":g(l,s);break;case"onScrollStateChanged":m(c.x,c.y,r.newState)}},onWaterfallItemClick:function(e,n,o){i.isLoggable(C.DEBUG)&&i.d(ea,"-----------onWaterfallItemClick---------------\x3e>>> sectionIndex:"+e+" itemIndex:"+n+" item:",o),t.emit("onTabPageItemClick",d,e,n,o)},onWaterfallItemFocused:function(e,n,o,a){i.isLoggable(C.DEBUG)&&i.d(ea,"-----------onWaterfallItemFocused---------------\x3e>>> sectionIndex:"+e+" itemIndex:"+n+" isFocused:"+o+" item:",a),t.emit("onTabPageItemFocused",d,e,n,o,a)},onWaterfallSectionBind:function(e,t){i.isLoggable(C.DEBUG)&&i.d(ea,"-----------onWaterfallSectionBind---------------\x3e>>> pageIndex:"+e+" sectionIndex:"+t),e===d&&(i.isLoggable(C.DEBUG)&&i.d(ea,"----------loadPageData----bind--\x3e>>>pageIndex:"+e),p(e,!1,t))},onWaterfallSectionAttached:function(e,n){i.isLoggable(C.DEBUG)&&i.d(ea,"-----------onWaterfallSectionAttached---------------\x3e>>> pageIndex:"+e+" sectionIndex:"+n),t.emit("onTabPageSectionAttached",e,n)},onWaterfallScroll:g,onWaterfallScrollStateChanged:m,onTabPageScrollToStart:function(e){const n=e.pageIndex;t.emit("onTabPageScrollToStart",n),i.isLoggable(C.DEBUG)&&i.d(ea,"----------onTabPageScrollToStart------\x3e>>> pageIndex:"+n)},onTabPageScrollToEnd:function(e){const n=e.pageIndex;t.emit("onTabPageScrollToEnd",n),i.isLoggable(C.DEBUG)&&i.d(ea,"----------onTabPageScrollToEnd------\x3e>>> pageIndex:"+n)}}}});ta.render=function(t,o,a,s,r,u){const f=l("qt-nav-bar"),p=l("qt-waterfall"),g=l("recycler-view-pager"),h=l("tabs");return t.ifTabs?(e(),d(h,{key:0,ref:"tabs",class:i(["tabs-root-css",t.tabClass]),dataStrategy:t.tabsDataStrategy,hideOnSingleTab:this.hideOnSingleTab,pageSwitchDelay:t.tabContentSwitchDelay,resumeTaskDelay:t.tabContentResumeDelay,suspension:this.floatNavBar,clipChildren:!1,outOfDateTime:3e5,blockFocusDirections:t.tabContentBlockFocusDirections,onScrollToStart:t.onTabPageScrollToStart,onScrollToEnd:t.onTabPageScrollToEnd,onLoadPage:t.onTabPageLoadData,onPageChanged:t.onTabPageChanged,onTabEvent:t.onTabEvent},{default:m((()=>[v(f,{ref:"navBarRef",name:"tabList",focusable:!1,class:i(t.tabNavBarClass),"text-key":"text",clipChldren:!1,horizontal:t.isTabHorizontal},{default:m((()=>[n(t.$slots,"tab-item")])),_:3},8,["class","horizontal"]),v(g,{nextFocusName:t.contentNextFocus,ref:"viewPager",class:i(t.tabContentClass),name:"content",loadingItemType:-1,clipChldren:!1,opacity:t.rootOpacity,focusable:!1,enableTransform:t.pageTransform,triggerTask:t.triggerTask,direction:t.isTabHorizontal?"horizontal":"vertical",blockFocusDirections:t.isTabHorizontal?t.blockViewPager:t.blockViewPagerVertical},{default:m((()=>[v(p,{onOnScrollStateChanged:t.onWaterfallScrollStateChanged,onOnScroll:t.onWaterfallScroll,onOnSectionBind:t.onWaterfallSectionBind,onOnSectionAttached:t.onWaterfallSectionAttached,onOnItemFocused:t.onWaterfallItemFocused,onOnItemClick:t.onWaterfallItemClick},{item:m((()=>[n(t.$slots,"waterfall-item")])),section:m((()=>[n(t.$slots,"waterfall-section")])),_:3},8,["onOnScrollStateChanged","onOnScroll","onOnSectionBind","onOnSectionAttached","onOnItemFocused","onOnItemClick"])])),_:3},8,["nextFocusName","class","opacity","enableTransform","triggerTask","direction","blockFocusDirections"])])),_:3},8,["dataStrategy","hideOnSingleTab","pageSwitchDelay","resumeTaskDelay","suspension","class","blockFocusDirections","onScrollToStart","onScrollToEnd","onLoadPage","onPageChanged","onTabEvent"])):c("v-if",!0)},ta.__file="src/tab/index.vue";var na=dn({name:"qt-classified-list-view",props:{className:{type:String,default:"content_list_view"},classNavName:{type:String,default:"nav_list_view"},currentFocusIndex:{type:Number,default:0},focusScale:{type:Number,default:1.15},navType:{type:Number,default:10001},yOffest:{type:Number,default:802}},emits:["item-click","item-focused"],setup(e,t){let n=a(1);const o=a(),l=a();let s=[],i=-1,c=-1,r=[];let u=-1;let d=-1;return{descendantFocusability:n,content_list_view:o,nav_list_view:l,init:t=>{t.forEach(((n,o)=>{n.mask||(n.mask="http://qcloudcdn.a311.ottcn.com/channelzero_image/web_static/extend_screen/mood/mask.png"),n.icon||(n.icon="http://qcloudcdn.a311.ottcn.com/channelzero_image/web_static/extend_screen/mood/playing.png"),n.isPlaying=!1,e.currentFocusIndex==o&&(n.isPlaying=!0);let a=!1;for(let e=0;e<s.length;e++){const t=s[e];n.categoryname==t.categoryname&&(n.navIndex=e,a=!0)}a||(n.navIndex||(n.navIndex=s.length),s.push({type:n.type,decoration:{left:50},categoryname:n.categoryname,startIndex:o,isNeedFocus:!0})),r=t})),Mt((()=>{o.value?.setListData(t),l.value?.setListData(s),setTimeout((()=>{i=e.currentFocusIndex,c=t[e.currentFocusIndex].navIndex,o.value?.scrollToFocused(i),l.value?.scrollToSelected(c,!0)}),300)}))},onItemBind:()=>{},onSItemClick:e=>{t.emit("item-click",e)},onFItemClick:e=>{t.emit("item-click",e)},scrollToIndex:(e,t=!0,n=802)=>{o.value?.scrollToIndex(e,t,n)},scrollToFocused:e=>{n.value=1,o.value?.scrollToFocused(e)},setItemFocused:e=>{n.value=1,o.value?.setItemFocused(e)},scrollToSelected:(e,t=!0)=>{o.value?.scrollToSelected(e,t)},setItemSelected:(e,t=!0)=>{o.value?.setItemSelected(e,!0)},onSItemFocused:e=>{clearTimeout(u),u=setTimeout((()=>{if(e.hasFocus){if(i!=e.position){if(i>-1){let e=r[i];e.isPlaying=!1,o.value?.updateItem(i,e)}let t=r[e.position];t.isPlaying=!0,o.value?.updateItem(e.position,t)}i=e.position,c!=e.item.navIndex&&(c=e.item.navIndex,l.value?.scrollToSelected(e.item.navIndex,!0)),t.emit("item-focused",e)}else c=e.item.navIndex}),300)},onFItemFocused:t=>{clearTimeout(d),t.hasFocus&&(c!=t.position&&(n.value=2,c=t.position,r[t.item.startIndex].isNeedFocus?(o.value?.scrollToIndex(t.item.startIndex,!0,e.yOffest),o.value?.setItemSelected(t.item.startIndex,!0)):(o.value?.scrollToIndex(t.item.startIndex+1,!0,e.yOffest),o.value?.setItemSelected(t.item.startIndex+1,!0))),d=setTimeout((()=>{n.value=1}),400))},updateItem:(e,t)=>{r[e]=t,r.forEach(((e,t)=>{e.mask||(e.mask="http://qcloudcdn.a311.ottcn.com/channelzero_image/web_static/extend_screen/mood/mask.png"),e.icon||(e.icon="http://qcloudcdn.a311.ottcn.com/channelzero_image/web_static/extend_screen/mood/playing.png");for(let t=0;t<s.length;t++){const n=s[t];e.categoryname==n.categoryname&&(e.navIndex=t)}})),o.value?.updateItem(e,r[e])}}}});const oa={focusable:!1,clipChildren:!1},aa=["focusScale"],la=b("img",{class:"coverV",src:"${coverV}",focusable:!1,postDelay:"300"},null,-1),sa=b("img",{src:"${mask}",class:"titMask",focusable:"false",postDelay:"300",showIf:"${isPlaying}"},null,-1),ia={focusable:!1,class:"clv_item_text_box",showIf:"${isPlaying}"},ca={class:"playMark",focusable:!1},ra=["type"],ua=b("div",{class:"line",focusable:!1,showOnState:"selected",duplicateParentState:!0},null,-1),da=b("div",{duplicateParentState:!0,class:"nav_item_text_focused",showOnState:"focused",focusable:!1,gradientBackground:{colors:["#FF2F7CEB","#FF1163D8"],cornerRadius:40}},null,-1),fa={class:"nav_item_text",focusable:!1,duplicateParentState:!0};var pa,ga,ma;na.render=function(o,a,r,u,d,f){const p=l("play-mark"),g=l("text-view"),h=l("qt-list-view");return e(),t("div",oa,[c(" listview second nav "),v(h,{class:i(o.className),ref:"content_list_view",clipChildren:!1,clipPadding:!1,onItemClick:o.onSItemClick,horizontal:"",blockFocusDirections:["left","right"],descendantFocusability:o.descendantFocusability,onItemFocused:o.onSItemFocused},{default:m((()=>[b("div",{type:10001,name:"clv_item",class:"clv_item",focusable:!0,enableFocusBorder:!0,clipChildren:!1,eventClick:"",eventFocus:"",focusScale:o.focusScale},[la,sa,b("div",ia,[b("div",ca,[v(p,{style:s([{width:"28px",height:"20px"},{"margin-left":"16px"}]),markColor:"#ffffff",gap:-1,focusable:!1})]),v(g,{focusable:!1,ellipsizeMode:2,fontSize:30,gravity:"centerVertical",lines:1,maxLines:1,class:"clv_item_text",text:"${assetTitle}",paddingRect:[6,0,0,0]})]),c(' <div showIf="${isPlaying==false}" :focusable="false" class="clv_item_text_box1">\n <text-view :focusable="false" :ellipsizeMode="2" :fontSize="30" gravity="centerVertical" :lines="1" :maxLines="1"\n :duplicateParentState="true" class="clv_item_selected_text" text="${assetTitle}" :paddingRect="[16,0,0,0]" \n :showOnState="[\'selected\']"/>\n <text-view :focusable="false" :ellipsizeMode="2" :fontSize="30" gravity="centerVertical" :lines="1" :maxLines="1"\n :duplicateParentState="true" class="clv_item_selected_text" text="" :paddingRect="[16,0,0,0]" \n :showOnState="[\'focused\',\'normal\']" />\n </div> ')],8,aa),n(o.$slots,"item")])),_:3},8,["class","onItemClick","descendantFocusability","onItemFocused"]),c(" listview first nav "),v(h,{class:i(o.classNavName),ref:"nav_list_view",clipChildren:!1,clipPadding:!1,onItemClick:o.onFItemClick,horizontal:"",blockFocusDirections:["left","right"],onItemFocused:o.onFItemFocused},{default:m((()=>[b("div",{type:o.navType,name:"nav_item",class:"nav_item",focusable:!0,enableFocusBorder:!1,focusScale:"1",eventClick:"",eventFocus:"",clipChildren:!1},[ua,da,b("div",fa,[v(g,{focusable:!1,ellipsizeMode:2,duplicateParentState:!0,fontSize:44,gravity:"center",lines:1,class:"text_selected",text:"${categoryname}",showOnState:["selected"]}),v(g,{focusable:!1,ellipsizeMode:2,duplicateParentState:!0,fontSize:44,gravity:"center",lines:1,maxLines:1,class:"text",text:"${categoryname}",showOnState:"focused"}),v(g,{focusable:!1,ellipsizeMode:2,duplicateParentState:!0,fontSize:44,gravity:"center",lines:1,class:"text",text:"${categoryname}",showOnState:["normal"]})])],8,ra),n(o.$slots,"navItem")])),_:3},8,["class","onItemClick","onItemFocused"])])},na.__file="src/classified-list-view/index.vue",function(e){e.QT_DIRECTION_UP="up",e.QT_DIRECTION_DOWN="down",e.QT_DIRECTION_RIGHT="right",e.QT_DIRECTION_LEFT="left"}(pa||(pa={})),function(e){e[e.SCROLL_STATE_IDLE=0]="SCROLL_STATE_IDLE",e[e.SCROLL_STATE_DRAGGING=1]="SCROLL_STATE_DRAGGING",e[e.SCROLL_STATE_SETTLING=2]="SCROLL_STATE_SETTLING"}(ga||(ga={})),function(e){e[e.QT_NAV_BAR_ITEM_TYPE_TEXT=2e4]="QT_NAV_BAR_ITEM_TYPE_TEXT"}(ma||(ma={}));const ha=[Xn,Jn,eo,fo,bo,xo,Jo,ta,na],va=e=>{e.component("qt-loading-view",{setup(e,t){const n=a();return()=>I("LoadingViewComponent",{ref:n})}}),function(e){const t=o({props:{loadMore:{type:Function,default:function(){return[1,1]}},openPage:{type:Boolean,default:!1},preloadNo:{type:Number,default:0},defaultFocus:{type:Number,default:-1}},emits:["item-click","scroll","item-focused","item-attached","item-detached","item-bind","item-unbind","load-more","scroll-state-changed","focus-search-failed","scrollYGreaterReference","scrollYLesserReference"],setup(e,t){const n=a();F();let o=[],l=[],s=[],i="",c=-1,r=!1,u=-1,d=-1,f=-1,m=-1;p((()=>{e.openPage&&(c=1,r=!1,e.loadMore(c))}));const h=t=>{0==o.length&&(o=uo(t),v(o,-1),l=t,e.openPage?y(o.concat([{_id:"",type:1002,decoration:{top:18,bottom:18,right:30,left:30}}])):y(o),e.defaultFocus>-1&&(f&&clearTimeout(f),f=setTimeout((()=>{N(e.defaultFocus)}),500)));let n={get(t,n,a){if("__ob__"!=n&&"symbol"!=typeof n&&"map"!=n&&"length"!=n&&"constructor"!=n&&"_isVue"!=n&&"valueOf"!=n&&"toString"!=n&&"observeArray"!=n&&"dep"!=n&&"notify"!=n&&"subs"!=n&&"slice"!=n)if(s.push(n),-1!=s.indexOf("push"))i="push";else{if(-1!=s.indexOf("splice"))return i="splice",function(...e){return t.splice(...e),-1!=s.indexOf("list")?(o[s[0]].list.splice(...e),P(Number(s[0]),o[s[0]])):1==e.length?E(Number(e[0]),o.length-e[0]+1):2==e.length?E(Number(e[0]),e[1]):e.length>2&&(0==e[1]?L(e[0],e.slice(2)):C(e[0],e[1],e.slice(2))),o.splice(e[0],...e.slice(1)),i="",s=[],Reflect.get(t,n,a)};if(-1!=s.indexOf("pop"))return i="pop",function(){return t.pop(),-1!=s.lastIndexOf("list")?(o[s[0]].list.pop(),P(Number(s[0]),o[s[0]])):(E(Number(o.length-1),1),o.pop()),i="",s=[],Reflect.get(t,n,a)};if(-1!=s.indexOf("forEach"))return i="forEach",function(l){return t.forEach((e=>{l(e)})),o=[],o=uo(t),e.openPage?y(o.concat([{_id:"",type:1002,decoration:{top:15,left:30}}])):y(o),i="",s=[],Reflect.get(t,n,a)};if(-1!=s.indexOf("concat"))return i="concat",function(l){return t=t.concat(l),-1!=s.lastIndexOf("list")?(o[s[0]].list=o[s[0]].list.concat(l),P(Number(s[0]),o[s[0]])):(o=o.concat(l),e.openPage&&!r?setTimeout((()=>{S(l.concat([{type:"1002",decoration:{bottom:18,right:30,left:30}}]),1)}),300):T(l)),i="",s=[],Reflect.get(t,n,a)};i=""}const l=Reflect.get(t,n,a);return b(l)&&"__ob__"!=n&&"dep"!=n&&"subs"!=n?h(l):(-1==s.indexOf("push")&&(s=[]),l)},set(t,n,a,c){const u=t[n];_(t,n);const d=Reflect.set(t,n,a,c);if((!b(u)&&u!==a||b(u))&&"push"!=i)if(s.push(n),-1!=s.lastIndexOf("list")){let e=s.lastIndexOf("list"),t=s.lastIndexOf("list")+2,n={};for(let e=0;e<t;e++){let t=s[e];n=n?n[t]:l[t]}n.name="name"+s[e-1]+s[e+1],P(Number(s[0]),l[s[0]]),o[s[0]].list[s[e+1]]=l[s[0]].list[s[e+1]],o[s[0]].list[s[e+1]].name="name"+s[e-1]+s[e+1]}else o[s[0]]=l[s[0]],o[s[0]].name="name"+s[0],P(Number(s[0]),l[s[0]]);if(n&&"push"==i&&u!==a)-1!=s.lastIndexOf("list")?(s.push(n),o[s[0]].list.push(a)):(s.push(n),o.push(a));else{if("push"==i)if(-1!=s.lastIndexOf("list"))P(Number(s[0]),o[s[0]]);else{let t=o.slice(s[1]);m&&clearTimeout(m),m=e.openPage&&!r?setTimeout((()=>{S(t.concat([{_id:"",type:1002,decoration:{bottom:18,right:30,left:30}}]),1)}),300):setTimeout((()=>{T(t)}),300)}i="",s=[]}return d}};return new Proxy(t,n)},v=(e,t)=>{for(let n=0;n<e.length;n++){const o=e[n];o.name=t>=0?"name"+t+n:"name"+n,o.list&&o.list.length>0&&v(o.list,n)}},b=e=>null!==e&&"object"==typeof e,_=(e,t)=>{Object.hasOwnProperty.call(e,t)},y=e=>{u&&clearTimeout(u),u=setTimeout((()=>{x.callUIFunction(n.value,"setListData",e)}),100)},T=e=>{x.callUIFunction(n.value,"addListData",e)},S=(e,t)=>{x.callUIFunction(n.value,"addListDataWithParams",[e,t])},E=(e,t)=>{x.callUIFunction(n.value,"deleteItemRange",[e,t])},P=(e,t)=>{x.callUIFunction(n.value,"updateItem",[e,t])},C=(e,t,o)=>{x.callUIFunction(n.value,"updateItemRange",[e,t,o])},L=(e,t)=>{x.callUIFunction(n.value,"insertItemRange",[e,t])},k=(e,t)=>{x.callUIFunction(n.value,"setSelectChildPosition",[e,t])},D=e=>{x.callUIFunction(n.value,"scrollToPosition",[e])},N=e=>{x.callUIFunction(n.value,"requestChildFocus",[e])};return g((()=>{o=[],l.length=0,s=[],r=!1,c=1,i="",u&&clearTimeout(u),f&&clearTimeout(f),m&&clearTimeout(m),d&&clearTimeout(d)})),t.expose({viewRef:n,init:h,undataItemName:v,hasChanged:(e,t)=>e!==t&&(e==e||t==t),scrollToIndex:(e,t,o)=>{x.callUIFunction(n.value,"scrollToPositionWithOffset",[e,o,t])},updateItem:P,updateItemList:C,hasFocus:e=>{x.callUIFunction(n.value,"hasFocus",(t=>{e(t)}))},updateItemProps:(e,t,o)=>{x.callUIFunction(n.value,"updateItemProps",[t,e,o,!0])},setListData:y,insertItem:L,addListData:T,addListDataWithParams:S,dispatchItemFunction:(e,t,o,a)=>{x.callUIFunction(n.value,"dispatchItemFunction",[e,t,o,a])},deleteItem:E,setBlockFocusDirectionsOnFail:e=>{x.callUIFunction(n.value,"setBlockFocusDirectionsOnFail",[e])},setListDataWithParams:(e,t)=>{x.callUIFunction(n.value,"setListDataWithParams",[e,t])},prepareForRecycle:()=>{x.callUIFunction(n.value,"prepareForRecycle",[])},setDisplay:e=>{x.callUIFunction(n.value,"setDisplay",[e])},scrollToTop:()=>{x.callUIFunction(n.value,"scrollToTop",[])},changeDisplayState:(e,t)=>{x.callUIFunction(n.value,"changeDisplayState",[e,t])},notifySaveInstance:()=>{x.callUIFunction(n.value,"notifySaveInstance",[])},notifyRestoreInstance:()=>{x.callUIFunction(n.value,"notifyRestoreInstance",[])},pausePostTask:()=>{x.callUIFunction(n.value,"pausePostTask",[])},resumePostTask:()=>{x.callUIFunction(n.value,"resumePostTask",[])},getScrollOffset:e=>{x.callUIFunction(n.value,"getScrollOffset",[],e)},scrollToPosition:D,scrollToFocused:e=>{D(e),N(e)},scrollToSelected:(e,t)=>{D(e),k(e,t)},scrollToPositionOffset:(e,t,o,a,l)=>{x.callUIFunction(n.value,"scrollToPositionWithOffset",[t,a,o])},destroy:()=>{x.callUIFunction(n.value,"destroy",[])},setInitPosition:e=>{x.callUIFunction(n.value,"setInitPosition",[e])},setItemFocused:N,clearPostTask:()=>{x.callUIFunction(n.value,"clearAllPostTask",[])},clearFocus:()=>{x.callUIFunction(n.value,"clearFocus",[])},setItemSelected:k,blockRootFocus:()=>{x.callUIFunction(n.value,"blockRootFocus",[])},unBlockRootFocus:()=>{x.callUIFunction(n.value,"unBlockRootFocus",[])},setBackgroundColor:e=>{x.callUIFunction(n.value,"setBackgroundColor",[e])},stopPage:()=>{d&&clearTimeout(d),d=setTimeout((()=>{E(o.length,1)}),400),r=!0},setAutoFocus:function(e,t){x.callUIFunction(n.value,"setAutoFocus",[e,t])}}),()=>{const a=t.slots.default&&t.slots.default();return I("FastListView",{ref:n,onItemClick:e=>{t.emit("item-click",e)},onScroll:e=>{t.emit("scroll",e)},onItemFocused:e=>{t.emit("item-focused",e)},onAttachedToWindow:e=>{t.emit("item-attached",e)},onDetachedFromWindow:e=>{t.emit("item-detached",e)},onBindItem:n=>{n.position==o.length-1-e.preloadNo&&(c++,e.loadMore(c)),t.emit("item-bind",n)},onUnbindItem:e=>{t.emit("item-unbind",e)},onLoadMore:e=>{t.emit("load-more",e)},onScrollStateChanged:e=>{t.emit("scroll-state-changed",e)},onFocusSearchFailed:e=>{t.emit("focus-search-failed",e)},onScrollYGreaterReference:e=>{t.emit("scrollYGreaterReference",e)},onScrollYLesserReference:e=>{t.emit("scrollYLesserReference",e)}},a)}}});e.component("qt-list-view",t)}(e),function(e){const t=o({emits:["item-focused","item-attached","item-detached","item-bind","item-unbind"],setup(e,t){const n=a();return t.expose({viewRef:n,updateItem:(e,t)=>{x.callUIFunction(n.value,"updateItem",[e,t])},dispatchItemFunction:(e,t,o,a)=>{x.callUIFunction(n.value,"dispatchItemFunction",[e,t,o,a])},updateItemProps:(e,t,o)=>{x.callUIFunction(n.value,"updateItemProps",[t,e,o,!0])},batch:e=>{x.callUIFunction(n.value,"batch",[e])}}),()=>{const e=t.slots.default&&t.slots.default();return I("FastListView",{ref:n,onBindItem:e=>{t.emit("item-bind",e)},onItemFocused:e=>{t.emit("item-focused",e)},onAttachedToWindow:e=>{t.emit("item-attached",e)},onDetachedFromWindow:e=>{t.emit("item-detached",e)},onItemRecycled:e=>{t.emit("item-unbind",e)}},e)}}});e.component("qt-list-item",t)}(e);for(let t in ha)e.component(ha[t].name,ha[t])};export{pa as QTDirections,ma as QTNavBarItemType,ga as QTScrollState,Ko as QTTabPageState,Co as QTWaterfallItemType,Po as QTWaterfallSectionType,va as QuickTVUI,io as arrangeChildren4ListView};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quicktvui/quicktvui3",
3
- "version": "0.0.79",
3
+ "version": "0.0.81",
4
4
  "description": "ExtScreen framework",
5
5
  "author": "ExtScreen Team",
6
6
  "homepage": "http://extscreen.com",