@hbis-uni/components 2.13.0 → 2.15.0
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.cjs.js +4 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +2302 -1083
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +31 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const vue=require("vue"),_sfc_main$e=vue.defineComponent({__name:"C1",props:{title:{default:"C1 Component"},primary:{type:Boolean,default:!1}},setup(o){return(m,n)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["c1-container",{"c1-primary":o.primary}])},[vue.renderSlot(m.$slots,"default",{},()=>[vue.createTextVNode(vue.toDisplayString(o.title),1)],!0)],2))}}),_export_sfc=(o,m)=>{const n=o.__vccOpts||o;for(const[t,r]of m)n[t]=r;return n},C1=_export_sfc(_sfc_main$e,[["__scopeId","data-v-e2028f64"]]),_hoisted_1$b={class:"c2-container"},_hoisted_2$a={class:"c2-title"},_hoisted_3$8={class:"c2-content"},_sfc_main$d=vue.defineComponent({__name:"C2",props:{title:{default:"C2 Component"},showButton:{type:Boolean,default:!0},buttonText:{default:"Click Me"}},emits:["click"],setup(o,{emit:m}){const n=m,t=r=>{n("click",r)};return(r,u)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$b,[vue.createElementVNode("h2",_hoisted_2$a,vue.toDisplayString(o.title),1),vue.createElementVNode("div",_hoisted_3$8,[vue.renderSlot(r.$slots,"default",{},void 0,!0)]),o.showButton?(vue.openBlock(),vue.createElementBlock("button",{key:0,class:"c2-button",onClick:t},vue.toDisplayString(o.buttonText),1)):vue.createCommentVNode("",!0)]))}}),C2=_export_sfc(_sfc_main$d,[["__scopeId","data-v-b1d573ae"]]),_hoisted_1$a={key:0},_hoisted_2$9={class:"hbis-date-strip__weekdays"},_hoisted_3$7={class:"hbis-date-strip__dates"},_hoisted_4$5=["onClick"],_hoisted_5$4={class:"hbis-date-strip__date-number"},_hoisted_6$4={class:"hbis-date-strip__date-slot"},_hoisted_7$4={key:1,class:"hbis-date-strip__scroll-wrapper"},_hoisted_8$2={class:"hbis-date-strip__scroll-container"},_hoisted_9$1={class:"hbis-date-strip__weekdays"},_hoisted_10$1={class:"hbis-date-strip__dates"},_hoisted_11$1=["onClick"],_hoisted_12={class:"hbis-date-strip__date-number"},_hoisted_13={class:"hbis-date-strip__date-slot"},_sfc_main$c=vue.defineComponent({__name:"hbis-dateStrip",props:{modelValue:{default:()=>new Date},startDate:{default:()=>new Date},endDate:{default:()=>{const o=new Date;return o.setDate(o.getDate()+30),o}},highlightType:{default:"bg"},showToday:{type:Boolean,default:!0},disablePast:{type:Boolean,default:!1},disableFuture:{type:Boolean,default:!1},selectedColor:{default:"#ffffff"},normalColor:{default:"#666666"},selectedBgColor:{default:"#1890ff"},normalBgColor:{default:"transparent"},scrollable:{type:Boolean,default:!1},visibleDays:{default:7}},emits:["update:modelValue","dateClick"],setup(o,{emit:m}){const n=o,t=m,r=vue.computed(()=>{if(console.log("props:",{startDate:n.startDate,endDate:n.endDate,scrollable:n.scrollable}),n.scrollable)return console.log("显式设置了scrollable为true,允许滚动"),!0;try{const d=new Date(n.startDate);d.setHours(0,0,0,0);const p=new Date(n.endDate);if(p.setHours(0,0,0,0),isNaN(d.getTime())||isNaN(p.getTime()))return console.log("无效的日期对象,使用默认滚动行为"),!1;const e=p.getTime()-d.getTime(),x=Math.ceil(e/(1e3*60*60*24)),g=x+1;return console.log("日期范围天数计算:",{start:d.toLocaleDateString(),end:p.toLocaleDateString(),diffTime:e,diffDays:x,totalDays:g,shouldScroll:g>7}),g>7}catch(d){return console.error("计算日期范围时出错:",d),!1}}),u=[{value:0,label:"日",isWeekend:!0},{value:1,label:"一",isWeekend:!1},{value:2,label:"二",isWeekend:!1},{value:3,label:"三",isWeekend:!1},{value:4,label:"四",isWeekend:!1},{value:5,label:"五",isWeekend:!1},{value:6,label:"六",isWeekend:!0}],a=vue.computed(()=>{const d=h.value[0];if(!d)return u;const p=d.weekday,e=[];for(let x=0;x<7;x++){const g=(p+x)%7;e.push(u[g])}return e}),s=()=>{const d=n.startDate||new Date,p=d.getDay(),e=d.getDate()-(p===0?6:p-1),x=new Date(d);return x.setDate(e),x};vue.ref(s()),vue.onMounted(()=>{console.log("props:",n),console.log("highlightType:",n.highlightType)}),vue.watch(()=>n.highlightType,d=>{console.log("highlightType changed:",d)}),vue.watch(()=>n.modelValue,d=>{console.log("modelValue changed:",d)});const v=vue.computed(()=>{const d=[];try{const p=n.startDate,e=n.endDate;if(isNaN(p.getTime())||isNaN(e.getTime()))return console.log("无效的日期对象,返回空数组"),d;const x=Math.ceil((e.getTime()-p.getTime())/(1e3*60*60*24))+1;for(let g=0;g<x;g++){const w=new Date(p);w.setDate(p.getDate()+g),isNaN(w.getTime())||d.push({date:w,dateString:l(w),day:w.getDate(),month:w.getMonth()+1,year:w.getFullYear(),isWeekend:w.getDay()===0||w.getDay()===6,weekday:w.getDay()})}}catch(p){console.error("生成日期数组时出错:",p)}return d}),h=vue.computed(()=>v.value.filter(d=>!!(d&&d.date&&d.dateString&&!isNaN(d.date.getTime())&&typeof d.dateString=="string"&&typeof d.day=="number"))),l=d=>`${d.getFullYear()}-${String(d.getMonth()+1).padStart(2,"0")}-${String(d.getDate()).padStart(2,"0")}`,i=d=>{const p=d.dateString;return n.modelValue?Array.isArray(n.modelValue)?n.modelValue.some(e=>!e||isNaN(e.getTime())?!1:l(e)===p):isNaN(n.modelValue.getTime())?!1:l(n.modelValue)===p:!1},f=d=>{const p=l(new Date);return d.dateString===p},c=d=>{const p=d.date;return n.disablePast&&p<new Date(new Date().setHours(0,0,0,0))||n.disableFuture&&p>new Date(new Date().setHours(23,59,59,999))?!1:p>=n.startDate&&p<=n.endDate},_=d=>{var p;return((p=u.find(e=>e.value===d))==null?void 0:p.label)||""},y=d=>{c(d)&&(t("dateClick",d),t("update:modelValue",d.date))};return(d,p)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["hbis-date-strip",{"hbis-date-strip--highlight-bg":o.highlightType==="bg","hbis-date-strip--highlight-dot":o.highlightType==="dot","hbis-date-strip--highlight-round":o.highlightType==="round","hbis-date-strip--scrollable":r.value}])},[r.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_7$4,[vue.createElementVNode("div",_hoisted_8$2,[vue.createElementVNode("div",_hoisted_9$1,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(h.value,e=>(vue.openBlock(),vue.createElementBlock("div",{key:e.dateString+"-weekday",class:vue.normalizeClass(["hbis-date-strip__weekday",{"hbis-date-strip__weekday--weekend":e.isWeekend}])},vue.toDisplayString(_(e.weekday)),3))),128))]),vue.createElementVNode("div",_hoisted_10$1,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(h.value,e=>(vue.openBlock(),vue.createElementBlock("div",{key:e.dateString,class:vue.normalizeClass(["hbis-date-strip__date",{"hbis-date-strip__date--selected":i(e),"hbis-date-strip__date--today":f(e),"hbis-date-strip__date--disabled":!c(e),"hbis-date-strip__date--weekend":e.isWeekend}]),style:vue.normalizeStyle({color:i(e)?o.selectedColor:o.normalColor,backgroundColor:i(e)?o.selectedBgColor:o.normalBgColor}),onClick:x=>y(e)},[vue.createElementVNode("div",_hoisted_12,vue.toDisplayString(e.day),1),vue.createElementVNode("div",_hoisted_13,[vue.renderSlot(d.$slots,"default",{date:e},void 0,!0)])],14,_hoisted_11$1))),128))])])])):(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$a,[vue.createElementVNode("div",_hoisted_2$9,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(a.value,e=>(vue.openBlock(),vue.createElementBlock("div",{key:e.value,class:vue.normalizeClass(["hbis-date-strip__weekday",{"hbis-date-strip__weekday--weekend":e.isWeekend}])},vue.toDisplayString(e.label),3))),128))]),vue.createElementVNode("div",_hoisted_3$7,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(h.value,e=>(vue.openBlock(),vue.createElementBlock("div",{key:e.dateString,class:vue.normalizeClass(["hbis-date-strip__date",{"hbis-date-strip__date--selected":i(e),"hbis-date-strip__date--today":f(e),"hbis-date-strip__date--disabled":!c(e),"hbis-date-strip__date--weekend":e.isWeekend}]),style:vue.normalizeStyle({color:i(e)?o.selectedColor:o.normalColor,backgroundColor:i(e)?o.selectedBgColor:o.normalBgColor}),onClick:x=>y(e)},[vue.createElementVNode("div",_hoisted_5$4,vue.toDisplayString(e.day),1),vue.createElementVNode("div",_hoisted_6$4,[vue.renderSlot(d.$slots,"default",{date:e},void 0,!0)])],14,_hoisted_4$5))),128))])]))],2))}}),hbisDateStrip=_export_sfc(_sfc_main$c,[["__scopeId","data-v-2e8258eb"]]),_hoisted_1$9={class:"image-preview"},_hoisted_2$8={key:0,class:"counter"},_hoisted_3$6={class:"counter-text"},_hoisted_4$4={class:"swiper-container"},_hoisted_5$3=["onWheel"],_hoisted_6$3=["src","onLoad"],_hoisted_7$3=["disabled"],_hoisted_8$1=["disabled"],_sfc_main$b={__name:"hbis-previewImage",props:{images:{type:Array,required:!0,validator:o=>o.every(m=>typeof m=="string")},initialIndex:{type:Number,default:0},minScale:{type:Number,default:.5},maxScale:{type:Number,default:5},showCloseBtn:{type:Boolean,default:!0},enableSwipe:{type:Boolean,default:!0}},emits:["close","change","update:initialIndex"],setup(o,{emit:m}){const n=o,t=m,r=vue.ref(n.initialIndex),u=vue.ref(null),a=vue.ref(!1),s=vue.ref(!1),v=vue.ref(0),h=vue.ref(0),l=vue.ref(0),i=vue.ref(window.innerWidth),f=vue.ref(window.innerHeight),c=vue.ref(n.images.map(()=>({scale:1,translateX:0,translateY:0,naturalWidth:0,naturalHeight:0,isLoaded:!1}))),_=vue.ref(0),y=vue.ref(0),d=vue.ref(0),p=vue.ref(0),e=vue.ref(0),x=vue.computed(()=>({transform:`translateX(${l.value}px)`,transition:a.value?"none":"transform 0.3s ease"})),g=vue.computed(()=>({width:`${i.value}px`,height:`${f.value}px`}));vue.watch(()=>n.initialIndex,b=>{b!==r.value&&(r.value=b,w())}),vue.onMounted(()=>{const b=()=>{i.value=window.innerWidth,f.value=window.innerHeight,w()};return window.addEventListener("resize",b),b(),()=>{window.removeEventListener("resize",b)}});const w=()=>{l.value=-r.value*i.value},N=()=>{r.value>0&&(r.value--,w(),T(),t("change",r.value),t("update:initialIndex",r.value))},S=()=>{r.value<n.images.length-1&&(r.value++,w(),T(),t("change",r.value),t("update:initialIndex",r.value))},T=()=>{c.value[r.value]={...c.value[r.value],scale:1,translateX:0,translateY:0}},O=b=>{const k=c.value[b];return{transform:`scale(${k.scale}) translate(${k.translateX}px, ${k.translateY}px)`,transition:s.value?"none":"transform 0.1s ease",opacity:k.isLoaded?1:0}},M=b=>{const k=event.target;c.value[b]={...c.value[b],naturalWidth:k.naturalWidth,naturalHeight:k.naturalHeight,isLoaded:!0}},F=b=>{b.target.tagName==="IMG"?(s.value=!0,v.value=b.clientX-c.value[r.value].translateX,h.value=b.clientY-c.value[r.value].translateY):(a.value=!0,v.value=b.clientX-l.value),b.preventDefault()},D=b=>{if(s.value){const k=b.clientX-v.value,A=b.clientY-h.value;c.value[r.value]={...c.value[r.value],translateX:k,translateY:A}}else if(a.value&&n.enableSwipe){const k=b.clientX-v.value;l.value=k}},E=()=>{if(a.value&&n.enableSwipe){const b=i.value*.3;Math.abs(l.value+r.value*i.value)>b?l.value>0?N():S():w()}a.value=!1,s.value=!1},C=b=>{const k=b.touches[0];_.value=k.clientX,y.value=k.clientY,d.value=Date.now()},V=b=>{const k=b.touches[0];p.value=k.clientX,e.value=k.clientY;const A=p.value-_.value,B=e.value-y.value;if(Math.abs(A)>Math.abs(B))b.preventDefault(),a.value=!0,l.value=-r.value*i.value+A;else if(c.value[r.value].scale>1){b.preventDefault(),s.value=!0;const z=A+c.value[r.value].translateX,L=B+c.value[r.value].translateY;c.value[r.value]={...c.value[r.value],translateX:z,translateY:L}}},$=()=>{if(a.value){const b=p.value-_.value,k=Date.now()-d.value,A=i.value*.2,B=Math.abs(b)/k;Math.abs(b)>A||B>.5?b>0?N():S():w()}a.value=!1,s.value=!1},I=(b,k)=>{if(k!==r.value)return;b.preventDefault();const A=b.deltaY>0?-.1:.1,B=b.clientX,z=b.clientY;R(B,z,A)},R=(b,k,A)=>{const B=c.value[r.value],z=Math.max(n.minScale,Math.min(n.maxScale,B.scale+A)),L=event.target.getBoundingClientRect(),P=b-L.left,j=k-L.top,W=z-B.scale,H=B.translateX+(P-B.translateX)*(W/B.scale),U=B.translateY+(j-B.translateY)*(W/B.scale);c.value[r.value]={...B,scale:z,translateX:H,translateY:U}};return(b,k)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$9,[o.images.length>1?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$8,[vue.createElementVNode("span",_hoisted_3$6,vue.toDisplayString(r.value+1)+"/"+vue.toDisplayString(o.images.length),1)])):vue.createCommentVNode("",!0),o.showCloseBtn?(vue.openBlock(),vue.createElementBlock("button",{key:1,class:"close-btn",onClick:k[0]||(k[0]=A=>t("close"))},[...k[1]||(k[1]=[vue.createElementVNode("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[vue.createElementVNode("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),vue.createElementVNode("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_4$4,[vue.createElementVNode("div",{class:"swiper-wrapper",ref_key:"swiperWrapper",ref:u,style:vue.normalizeStyle(x.value),onTouchstart:C,onTouchmove:V,onTouchend:$,onMousedown:F,onMousemove:D,onMouseup:E,onMouseleave:E},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(o.images,(A,B)=>(vue.openBlock(),vue.createElementBlock("div",{key:B,class:"swiper-slide",style:vue.normalizeStyle(g.value)},[vue.createElementVNode("div",{class:"image-container",onWheel:z=>I(z,B)},[vue.createElementVNode("img",{src:A,alt:"Preview image",class:"preview-image",style:vue.normalizeStyle(O(B)),onLoad:z=>M(B),loading:"lazy"},null,44,_hoisted_6$3)],40,_hoisted_5$3)],4))),128))],36)]),vue.createElementVNode("button",{class:"nav-btn prev-btn",onClick:N,disabled:r.value===0},[...k[2]||(k[2]=[vue.createElementVNode("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[vue.createElementVNode("polyline",{points:"15 18 9 12 15 6"})],-1)])],8,_hoisted_7$3),vue.createElementVNode("button",{class:"nav-btn next-btn",onClick:S,disabled:r.value===o.images.length-1},[...k[3]||(k[3]=[vue.createElementVNode("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[vue.createElementVNode("polyline",{points:"9 18 15 12 9 6"})],-1)])],8,_hoisted_8$1)]))}},_sfc_main$a={__name:"hbis-auto-scroll-list",props:{data:{type:Array,default:()=>[]},speed:{type:Number,default:1},direction:{type:String,default:"vertical",validator:o=>["vertical","horizontal"].includes(o)},pauseOnHover:{type:Boolean,default:!0},itemHeight:{type:Number,default:40},itemWidth:{type:Number,default:200},containerHeight:{type:[Number,String],default:300},containerWidth:{type:[Number,String],default:"100%"},loop:{type:Boolean,default:!0},customItemClass:{type:String,default:""},itemStyle:{type:Object,default:()=>({})}},emits:["scroll","pause","resume","dragStart","dragEnd"],setup(o,{expose:m,emit:n}){const t=o,r=n,u=vue.ref(null),a=vue.ref(null),s=vue.ref(!1),v=vue.ref(null),h=vue.ref(0),l=vue.ref([]),i=vue.ref(!1),f=vue.ref(0),c=vue.ref(0),_=vue.ref(0),y=vue.ref(!1),d=vue.computed(()=>({height:typeof t.containerHeight=="number"?`${t.containerHeight}px`:t.containerHeight,width:typeof t.containerWidth=="number"?`${t.containerWidth}px`:t.containerWidth,overflow:"hidden",position:"relative"})),p=vue.computed(()=>{const b={with:"100%",position:"absolute",transition:"none",willChange:"transform"};return t.direction==="vertical"?b.transform=`translateY(${h.value}px)`:b.transform=`translateX(${h.value}px)`,b}),e=()=>{if(!t.data||t.data.length===0){l.value=[];return}t.loop?l.value=[...t.data,...t.data]:l.value=[...t.data]},x=()=>{if(s.value||i.value){v.value=requestAnimationFrame(x);return}const b=u.value,k=a.value;if(!b||!k){v.value=requestAnimationFrame(x);return}const A=t.direction==="vertical"?b.offsetHeight:b.offsetWidth,z=(t.direction==="vertical"?t.itemHeight:t.itemWidth)*t.data.length;if(h.value-=t.speed,t.loop)Math.abs(h.value)>=z&&(h.value=0);else{const L=-(z-A);if(h.value<=L){h.value=L,s.value=!0,r("scroll",h.value);return}}r("scroll",h.value),v.value=requestAnimationFrame(x)},g=()=>{v.value&&cancelAnimationFrame(v.value),v.value=requestAnimationFrame(x)},w=()=>{v.value&&(cancelAnimationFrame(v.value),v.value=null)},N=()=>{s.value=!0,r("pause")},S=()=>{s.value=!1,r("resume")},T=()=>{t.pauseOnHover&&N()},O=()=>{t.pauseOnHover&&!i.value&&S()},M=b=>{i.value=!0,y.value=s.value,s.value=!0,f.value=t.direction==="vertical"?b.clientY:b.clientX,c.value=f.value,_.value=h.value,r("dragStart"),document.addEventListener("mousemove",F),document.addEventListener("mouseup",D)},F=b=>{if(!i.value)return;c.value=t.direction==="vertical"?b.clientY:b.clientX;const k=c.value-f.value;h.value=_.value+k;const A=u.value,B=a.value;if(A&&B){const z=t.direction==="vertical"?A.offsetHeight:A.offsetWidth,P=(t.direction==="vertical"?t.itemHeight:t.itemWidth)*t.data.length;if(t.loop)h.value>0?h.value=0:Math.abs(h.value)>P&&(h.value=-P);else{const j=-(P-z);h.value>0?h.value=0:h.value<j&&(h.value=j)}}r("scroll",h.value)},D=()=>{i.value&&(i.value=!1,document.removeEventListener("mousemove",F),document.removeEventListener("mouseup",D),y.value||(s.value=!1),r("dragEnd"))},E=b=>{const k=b.touches[0];i.value=!0,y.value=s.value,s.value=!0,f.value=t.direction==="vertical"?k.clientY:k.clientX,c.value=f.value,_.value=h.value,r("dragStart")},C=b=>{if(!i.value)return;b.preventDefault();const k=b.touches[0];c.value=t.direction==="vertical"?k.clientY:k.clientX;const A=c.value-f.value;h.value=_.value+A;const B=u.value,z=a.value;if(B&&z){const L=t.direction==="vertical"?B.offsetHeight:B.offsetWidth,j=(t.direction==="vertical"?t.itemHeight:t.itemWidth)*t.data.length;if(t.loop)h.value>0?h.value=0:Math.abs(h.value)>j&&(h.value=-j);else{const W=-(j-L);h.value>0?h.value=0:h.value<W&&(h.value=W)}}r("scroll",h.value)},V=()=>{i.value&&(i.value=!1,y.value||(s.value=!1),r("dragEnd"))},$=b=>{h.value=b},I=()=>{h.value=0},R=()=>{const b=u.value;if(b){const k=a.value;if(k){const A=t.direction==="vertical"?k.offsetHeight:k.offsetWidth;h.value=-(A-b.offsetHeight)}}};return vue.watch(()=>t.data,()=>{e(),h.value=0},{deep:!0}),vue.watch(()=>t.speed,()=>{s.value||(w(),g())}),vue.onMounted(()=>{e(),vue.nextTick(()=>{g();const b=u.value;b&&(b.addEventListener("mouseenter",T),b.addEventListener("mouseleave",O))})}),vue.onUnmounted(()=>{w();const b=u.value;b&&(b.removeEventListener("mouseenter",T),b.removeEventListener("mouseleave",O)),document.removeEventListener("mousemove",F),document.removeEventListener("mouseup",D)}),m({pause:N,resume:S,scrollTo:$,scrollToTop:I,scrollToBottom:R,isPaused:s,isDragging:i}),(b,k)=>(vue.openBlock(),vue.createElementBlock("div",{class:"hbis-auto-scroll-list",ref_key:"containerRef",ref:u,style:vue.normalizeStyle(d.value),onMousedown:M,onTouchstart:E,onTouchmove:C,onTouchend:V},[vue.createElementVNode("div",{class:"scroll-content",ref_key:"contentRef",ref:a,style:vue.normalizeStyle(p.value)},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(l.value,(A,B)=>vue.renderSlot(b.$slots,"item",{item:A,index:B},()=>[vue.createElementVNode("div",{class:"default-item",style:vue.normalizeStyle(o.itemStyle)},vue.toDisplayString(A),5)],!0)),256))],4)],36))}},HbisAutoScrollList=_export_sfc(_sfc_main$a,[["__scopeId","data-v-5b76d8eb"]]),_hoisted_1$8={key:0,class:"circular-spinner"},_hoisted_2$7={key:1,class:"dots-spinner"},_hoisted_3$5={key:2,class:"bars-spinner"},_sfc_main$9={__name:"hbis-loading",props:{visible:{type:Boolean,default:!1},touchDismiss:{type:Boolean,default:!1},text:{type:String,default:""},spinnerType:{type:String,default:"circular"},textStyle:{type:Object,default:()=>({})},containerStyle:{type:Object,default:()=>({})}},emits:["update:visible","close"],setup(o,{expose:m,emit:n}){const t=o,r=n,u=()=>{t.touchDismiss&&(r("update:visible",!1),r("close"))};return vue.watch(()=>t.visible,a=>{a?document.body.style.overflow="hidden":document.body.style.overflow=""}),vue.onUnmounted(()=>{document.body.style.overflow=""}),m({show:()=>r("update:visible",!0),hide:()=>{r("update:visible",!1),r("close")}}),(a,s)=>o.visible?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["hbis-loading-container",{"touch-dismissible":o.touchDismiss}]),onClick:u},[vue.createElementVNode("div",{class:"hbis-loading-wrapper",onClick:s[0]||(s[0]=vue.withModifiers(()=>{},["stop"]))},[vue.renderSlot(a.$slots,"spinner",{},()=>[vue.createElementVNode("div",{class:vue.normalizeClass(["hbis-loading-spinner",o.spinnerType])},[o.spinnerType==="circular"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$8,[...s[1]||(s[1]=[vue.createElementVNode("div",{class:"circle"},null,-1)])])):o.spinnerType==="dots"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$7,[...s[2]||(s[2]=[vue.createElementVNode("div",{class:"dot"},null,-1),vue.createElementVNode("div",{class:"dot"},null,-1),vue.createElementVNode("div",{class:"dot"},null,-1)])])):o.spinnerType==="bars"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$5,[...s[3]||(s[3]=[vue.createElementVNode("div",{class:"bar"},null,-1),vue.createElementVNode("div",{class:"bar"},null,-1),vue.createElementVNode("div",{class:"bar"},null,-1)])])):vue.createCommentVNode("",!0)],2)],!0),o.text?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"hbis-loading-text",style:vue.normalizeStyle(o.textStyle)},vue.toDisplayString(o.text),5)):vue.createCommentVNode("",!0)])],2)):vue.createCommentVNode("",!0)}},hbisLoading=_export_sfc(_sfc_main$9,[["__scopeId","data-v-d5965f87"]]),_hoisted_1$7={class:"parent-view"},_sfc_main$8={__name:"hbis-sms-input",props:{countDownTime:{type:Number,default:60},inputPlacheHolder:{type:String,default:"请输入验证码"},inputColor:{type:String,default:"#F1F7FA"},inputTextColor:{type:String,default:"#000"},inputPlacheHolderColor:{type:String,default:"#F00"},smsCodeTimeText:{type:String,default:"s"},smsCodeBtnText:{type:String,default:"发送"},smsCodeBtnColor:{type:String,default:"#FFF"},smsCodeBtnTextColor:{type:String,default:"#2E6DFF"}},emits:["custom-event"],setup(o,{expose:m,emit:n}){const t=o,r=n,u=vue.ref(!0),a=vue.ref(""),s=vue.ref(t.countDownTime),v=()=>{if(console.log("验证码isSendSMS:"+u.value),!u.value){console.log("请"+t.countDownTime+"秒后再重试。");return}r("custom-event")};return m({countDown:()=>{s.value=t.countDownTime;let l=setInterval(()=>{u.value=!1,s.value--,s.value===0&&(u.value=!0,clearInterval(l))},1e3)},smsCode:a}),(l,i)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$7,[vue.createElementVNode("div",{class:"input_view_sms_code",style:vue.normalizeStyle({background:o.inputColor})},[vue.withDirectives(vue.createElementVNode("input",{type:"text",class:"view_sms_code","placeholder-style":"color:#999",placeholder:"请输入验证码","onUpdate:modelValue":i[0]||(i[0]=f=>a.value=f),style:vue.normalizeStyle({color:o.inputTextColor})},null,4),[[vue.vModelText,a.value]]),u.value?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["sms_code_btn",{disabled:!u.value}]),style:vue.normalizeStyle({color:o.smsCodeBtnTextColor,background:o.smsCodeBtnColor}),onClick:v},vue.toDisplayString(s.value)+" "+vue.toDisplayString(o.smsCodeTimeText),7)),u.value?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"sms_code_btn",style:vue.normalizeStyle({color:o.smsCodeBtnTextColor,background:o.smsCodeBtnColor}),onClick:v},vue.toDisplayString(o.smsCodeBtnText),5)):vue.createCommentVNode("",!0)],4)]))}},HbisSmsInput=_export_sfc(_sfc_main$8,[["__scopeId","data-v-3eedbbcc"]]),_hoisted_1$6={class:"waterfall-debug"},_hoisted_2$6={class:"waterfall-container"},_hoisted_3$4={class:"column-debug"},_hoisted_4$3={key:0,class:"waterfall-item-with-slot"},_hoisted_5$2=["src"],_hoisted_6$2={class:"waterfall-content"},_hoisted_7$2=["src"],_sfc_main$7=Object.assign({name:"HbisWaterfall"},{__name:"hbis-waterfall",props:{data:{type:Array,default:()=>[]},column:{type:Number,default:2,validator:o=>o>=2},maxColumn:{type:Number,default:5},columnGap:{type:[Number,String],default:10},rowGap:{type:[Number,String],default:10},itemKey:{type:String,default:"id"},imageKey:{type:String,default:"url"}},emits:["load","error"],setup(o,{expose:m,emit:n}){const t=vue.useSlots(),r=vue.ref(null),u=o,a=n;vue.useCssVars(()=>({columnGap:String(u.columnGap)+"px",rowGap:String(u.rowGap)+"px"}));const s=vue.ref([]),v=vue.ref(2),h=vue.computed(()=>t.default!==void 0),l=_=>(r.value&&r.value.offsetWidth,Math.min(u.column,u.maxColumn),parseInt(u.columnGap),parseInt(u.rowGap),200+Math.floor(Math.random()*100)+20),i=()=>{console.log("开始分配数据,总数据量:",u.data.length);const _=Math.min(u.column,u.maxColumn);v.value=_;const y=[];for(let d=0;d<_;d++)y.push({items:[],height:0});s.value=y,u.data.forEach((d,p)=>{const e=l();let x=1/0,g=0;for(let w=0;w<_;w++)s.value[w].height<x&&(x=s.value[w].height,g=w);s.value[g].items.push(d),s.value[g].height+=e,console.log("分配数据到列:",{itemIndex:p,columnIndex:g,itemHeight:e,columnHeight:s.value[g].height})}),console.log("分配完成,各列数据量:",s.value.map((d,p)=>`列${p+1}: ${d.items.length}个`)),console.log("分配完成,各列高度:",s.value.map((d,p)=>`列${p+1}: ${d.height}px`))},f=_=>{a("load",_)},c=_=>{a("error",_)};return vue.watch(()=>u.data,()=>{console.log("数据变化,重新分配数据"),i()},{deep:!0}),vue.watch(()=>[u.column,u.maxColumn],()=>{console.log("列数变化,更新列数"),v.value=Math.min(u.column,u.maxColumn),i()}),vue.watch(()=>[u.columnGap,u.rowGap],()=>{console.log("间距变化,重新计算高度和分配数据"),i()}),vue.onMounted(()=>{console.log("===== 组件挂载 ====="),console.log("组件挂载,初始化数据"),console.log("初始数据量:",u.data.length);try{i(),console.log("===== 组件挂载完成 =====")}catch(_){console.error("refresh函数执行失败:",_),console.log("===== 组件挂载失败 =====")}}),m({refresh:i}),(_,y)=>(vue.openBlock(),vue.createElementBlock("div",{ref_key:"waterfallRef",ref:r},[vue.createElementVNode("div",_hoisted_1$6,[vue.createTextVNode(" 列数: "+vue.toDisplayString(v.value)+" ",1),y[1]||(y[1]=vue.createElementVNode("br",null,null,-1)),vue.createTextVNode(" 数据总量: "+vue.toDisplayString(o.data.length)+" ",1),y[2]||(y[2]=vue.createElementVNode("br",null,null,-1)),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(s.value,(d,p)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:p},[vue.createTextVNode(" 列"+vue.toDisplayString(p+1)+"数据量: "+vue.toDisplayString(d.items.length),1),y[0]||(y[0]=vue.createElementVNode("br",null,null,-1))],64))),128))]),vue.createElementVNode("div",_hoisted_2$6,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(s.value,(d,p)=>(vue.openBlock(),vue.createElementBlock("div",{key:p,class:"waterfall-column"},[vue.createElementVNode("div",_hoisted_3$4," 列"+vue.toDisplayString(p+1)+": "+vue.toDisplayString(d.items.length)+"个元素 ",1),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(d.items,(e,x)=>(vue.openBlock(),vue.createElementBlock("div",{key:e[o.itemKey]||`col${p}-${x}`,class:"waterfall-item"},[h.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$3,[vue.createElementVNode("img",{src:e[o.imageKey],class:"waterfall-image",style:vue.normalizeStyle({height:l()+"px"}),onLoad:f,onError:c},null,44,_hoisted_5$2),vue.createElementVNode("div",_hoisted_6$2,[vue.renderSlot(_.$slots,"default",{item:e,index:x},void 0,!0)])])):(vue.openBlock(),vue.createElementBlock("img",{key:1,src:e[o.imageKey],class:"waterfall-image",style:vue.normalizeStyle({height:l()+"px"}),onLoad:f,onError:c},null,44,_hoisted_7$2))]))),128))]))),128))])],512))}}),HbisWaterfall=_export_sfc(_sfc_main$7,[["__scopeId","data-v-20459ccd"]]);var svga_lite_min={exports:{}};/*!
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const vue=require("vue"),_sfc_main$l=vue.defineComponent({__name:"C1",props:{title:{default:"C1 Component"},primary:{type:Boolean,default:!1}},setup(r){return(g,i)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["c1-container",{"c1-primary":r.primary}])},[vue.renderSlot(g.$slots,"default",{},()=>[vue.createTextVNode(vue.toDisplayString(r.title),1)],!0)],2))}}),_export_sfc=(r,g)=>{const i=r.__vccOpts||r;for(const[e,o]of g)i[e]=o;return i},C1=_export_sfc(_sfc_main$l,[["__scopeId","data-v-e2028f64"]]),_hoisted_1$g={class:"c2-container"},_hoisted_2$f={class:"c2-title"},_hoisted_3$c={class:"c2-content"},_sfc_main$k=vue.defineComponent({__name:"C2",props:{title:{default:"C2 Component"},showButton:{type:Boolean,default:!0},buttonText:{default:"Click Me"}},emits:["click"],setup(r,{emit:g}){const i=g,e=o=>{i("click",o)};return(o,l)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$g,[vue.createElementVNode("h2",_hoisted_2$f,vue.toDisplayString(r.title),1),vue.createElementVNode("div",_hoisted_3$c,[vue.renderSlot(o.$slots,"default",{},void 0,!0)]),r.showButton?(vue.openBlock(),vue.createElementBlock("button",{key:0,class:"c2-button",onClick:e},vue.toDisplayString(r.buttonText),1)):vue.createCommentVNode("",!0)]))}}),C2=_export_sfc(_sfc_main$k,[["__scopeId","data-v-b1d573ae"]]),_hoisted_1$f={key:0},_hoisted_2$e={class:"hbis-date-strip__weekdays"},_hoisted_3$b={class:"hbis-date-strip__dates"},_hoisted_4$9=["onClick"],_hoisted_5$7={class:"hbis-date-strip__date-number"},_hoisted_6$6={class:"hbis-date-strip__date-slot"},_hoisted_7$6={key:1,class:"hbis-date-strip__scroll-wrapper"},_hoisted_8$4={class:"hbis-date-strip__scroll-container"},_hoisted_9$2={class:"hbis-date-strip__weekdays"},_hoisted_10$1={class:"hbis-date-strip__dates"},_hoisted_11$1=["onClick"],_hoisted_12={class:"hbis-date-strip__date-number"},_hoisted_13={class:"hbis-date-strip__date-slot"},_sfc_main$j=vue.defineComponent({__name:"hbis-dateStrip",props:{modelValue:{default:()=>new Date},startDate:{default:()=>new Date},endDate:{default:()=>{const r=new Date;return r.setDate(r.getDate()+30),r}},highlightType:{default:"bg"},showToday:{type:Boolean,default:!0},disablePast:{type:Boolean,default:!1},disableFuture:{type:Boolean,default:!1},selectedColor:{default:"#ffffff"},normalColor:{default:"#666666"},selectedBgColor:{default:"#1890ff"},normalBgColor:{default:"transparent"},scrollable:{type:Boolean,default:!1},visibleDays:{default:7}},emits:["update:modelValue","dateClick"],setup(r,{emit:g}){const i=r,e=g,o=vue.computed(()=>{if(console.log("props:",{startDate:i.startDate,endDate:i.endDate,scrollable:i.scrollable}),i.scrollable)return console.log("显式设置了scrollable为true,允许滚动"),!0;try{const d=new Date(i.startDate);d.setHours(0,0,0,0);const b=new Date(i.endDate);if(b.setHours(0,0,0,0),isNaN(d.getTime())||isNaN(b.getTime()))return console.log("无效的日期对象,使用默认滚动行为"),!1;const t=b.getTime()-d.getTime(),w=Math.ceil(t/(1e3*60*60*24)),y=w+1;return console.log("日期范围天数计算:",{start:d.toLocaleDateString(),end:b.toLocaleDateString(),diffTime:t,diffDays:w,totalDays:y,shouldScroll:y>7}),y>7}catch(d){return console.error("计算日期范围时出错:",d),!1}}),l=[{value:0,label:"日",isWeekend:!0},{value:1,label:"一",isWeekend:!1},{value:2,label:"二",isWeekend:!1},{value:3,label:"三",isWeekend:!1},{value:4,label:"四",isWeekend:!1},{value:5,label:"五",isWeekend:!1},{value:6,label:"六",isWeekend:!0}],u=vue.computed(()=>{const d=v.value[0];if(!d)return l;const b=d.weekday,t=[];for(let w=0;w<7;w++){const y=(b+w)%7;t.push(l[y])}return t}),a=()=>{const d=i.startDate||new Date,b=d.getDay(),t=d.getDate()-(b===0?6:b-1),w=new Date(d);return w.setDate(t),w};vue.ref(a()),vue.onMounted(()=>{console.log("props:",i),console.log("highlightType:",i.highlightType)}),vue.watch(()=>i.highlightType,d=>{console.log("highlightType changed:",d)}),vue.watch(()=>i.modelValue,d=>{console.log("modelValue changed:",d)});const c=vue.computed(()=>{const d=[];try{const b=i.startDate,t=i.endDate;if(isNaN(b.getTime())||isNaN(t.getTime()))return console.log("无效的日期对象,返回空数组"),d;const w=Math.ceil((t.getTime()-b.getTime())/(1e3*60*60*24))+1;for(let y=0;y<w;y++){const _=new Date(b);_.setDate(b.getDate()+y),isNaN(_.getTime())||d.push({date:_,dateString:h(_),day:_.getDate(),month:_.getMonth()+1,year:_.getFullYear(),isWeekend:_.getDay()===0||_.getDay()===6,weekday:_.getDay()})}}catch(b){console.error("生成日期数组时出错:",b)}return d}),v=vue.computed(()=>c.value.filter(d=>!!(d&&d.date&&d.dateString&&!isNaN(d.date.getTime())&&typeof d.dateString=="string"&&typeof d.day=="number"))),h=d=>`${d.getFullYear()}-${String(d.getMonth()+1).padStart(2,"0")}-${String(d.getDate()).padStart(2,"0")}`,s=d=>{const b=d.dateString;return i.modelValue?Array.isArray(i.modelValue)?i.modelValue.some(t=>!t||isNaN(t.getTime())?!1:h(t)===b):isNaN(i.modelValue.getTime())?!1:h(i.modelValue)===b:!1},n=d=>{const b=h(new Date);return d.dateString===b},f=d=>{const b=d.date;return i.disablePast&&b<new Date(new Date().setHours(0,0,0,0))||i.disableFuture&&b>new Date(new Date().setHours(23,59,59,999))?!1:b>=i.startDate&&b<=i.endDate},m=d=>{var b;return((b=l.find(t=>t.value===d))==null?void 0:b.label)||""},p=d=>{f(d)&&(e("dateClick",d),e("update:modelValue",d.date))};return(d,b)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["hbis-date-strip",{"hbis-date-strip--highlight-bg":r.highlightType==="bg","hbis-date-strip--highlight-dot":r.highlightType==="dot","hbis-date-strip--highlight-round":r.highlightType==="round","hbis-date-strip--scrollable":o.value}])},[o.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_7$6,[vue.createElementVNode("div",_hoisted_8$4,[vue.createElementVNode("div",_hoisted_9$2,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(v.value,t=>(vue.openBlock(),vue.createElementBlock("div",{key:t.dateString+"-weekday",class:vue.normalizeClass(["hbis-date-strip__weekday",{"hbis-date-strip__weekday--weekend":t.isWeekend}])},vue.toDisplayString(m(t.weekday)),3))),128))]),vue.createElementVNode("div",_hoisted_10$1,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(v.value,t=>(vue.openBlock(),vue.createElementBlock("div",{key:t.dateString,class:vue.normalizeClass(["hbis-date-strip__date",{"hbis-date-strip__date--selected":s(t),"hbis-date-strip__date--today":n(t),"hbis-date-strip__date--disabled":!f(t),"hbis-date-strip__date--weekend":t.isWeekend}]),style:vue.normalizeStyle({color:s(t)?r.selectedColor:r.normalColor,backgroundColor:s(t)?r.selectedBgColor:r.normalBgColor}),onClick:w=>p(t)},[vue.createElementVNode("div",_hoisted_12,vue.toDisplayString(t.day),1),vue.createElementVNode("div",_hoisted_13,[vue.renderSlot(d.$slots,"default",{date:t},void 0,!0)])],14,_hoisted_11$1))),128))])])])):(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$f,[vue.createElementVNode("div",_hoisted_2$e,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(u.value,t=>(vue.openBlock(),vue.createElementBlock("div",{key:t.value,class:vue.normalizeClass(["hbis-date-strip__weekday",{"hbis-date-strip__weekday--weekend":t.isWeekend}])},vue.toDisplayString(t.label),3))),128))]),vue.createElementVNode("div",_hoisted_3$b,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(v.value,t=>(vue.openBlock(),vue.createElementBlock("div",{key:t.dateString,class:vue.normalizeClass(["hbis-date-strip__date",{"hbis-date-strip__date--selected":s(t),"hbis-date-strip__date--today":n(t),"hbis-date-strip__date--disabled":!f(t),"hbis-date-strip__date--weekend":t.isWeekend}]),style:vue.normalizeStyle({color:s(t)?r.selectedColor:r.normalColor,backgroundColor:s(t)?r.selectedBgColor:r.normalBgColor}),onClick:w=>p(t)},[vue.createElementVNode("div",_hoisted_5$7,vue.toDisplayString(t.day),1),vue.createElementVNode("div",_hoisted_6$6,[vue.renderSlot(d.$slots,"default",{date:t},void 0,!0)])],14,_hoisted_4$9))),128))])]))],2))}}),hbisDateStrip=_export_sfc(_sfc_main$j,[["__scopeId","data-v-2e8258eb"]]),_hoisted_1$e={class:"image-preview"},_hoisted_2$d={key:0,class:"counter"},_hoisted_3$a={class:"counter-text"},_hoisted_4$8={class:"swiper-container"},_hoisted_5$6=["onWheel"],_hoisted_6$5=["src","onLoad"],_hoisted_7$5=["disabled"],_hoisted_8$3=["disabled"],_sfc_main$i={__name:"hbis-previewImage",props:{images:{type:Array,required:!0,validator:r=>r.every(g=>typeof g=="string")},initialIndex:{type:Number,default:0},minScale:{type:Number,default:.5},maxScale:{type:Number,default:5},showCloseBtn:{type:Boolean,default:!0},enableSwipe:{type:Boolean,default:!0}},emits:["close","change","update:initialIndex"],setup(r,{emit:g}){const i=r,e=g,o=vue.ref(i.initialIndex),l=vue.ref(null),u=vue.ref(!1),a=vue.ref(!1),c=vue.ref(0),v=vue.ref(0),h=vue.ref(0),s=vue.ref(window.innerWidth),n=vue.ref(window.innerHeight),f=vue.ref(i.images.map(()=>({scale:1,translateX:0,translateY:0,naturalWidth:0,naturalHeight:0,isLoaded:!1}))),m=vue.ref(0),p=vue.ref(0),d=vue.ref(0),b=vue.ref(0),t=vue.ref(0),w=vue.computed(()=>({transform:`translateX(${h.value}px)`,transition:u.value?"none":"transform 0.3s ease"})),y=vue.computed(()=>({width:`${s.value}px`,height:`${n.value}px`}));vue.watch(()=>i.initialIndex,k=>{k!==o.value&&(o.value=k,_())}),vue.onMounted(()=>{const k=()=>{s.value=window.innerWidth,n.value=window.innerHeight,_()};return window.addEventListener("resize",k),k(),()=>{window.removeEventListener("resize",k)}});const _=()=>{h.value=-o.value*s.value},E=()=>{o.value>0&&(o.value--,_(),$(),e("change",o.value),e("update:initialIndex",o.value))},S=()=>{o.value<i.images.length-1&&(o.value++,_(),$(),e("change",o.value),e("update:initialIndex",o.value))},$=()=>{f.value[o.value]={...f.value[o.value],scale:1,translateX:0,translateY:0}},A=k=>{const x=f.value[k];return{transform:`scale(${x.scale}) translate(${x.translateX}px, ${x.translateY}px)`,transition:a.value?"none":"transform 0.1s ease",opacity:x.isLoaded?1:0}},z=k=>{const x=event.target;f.value[k]={...f.value[k],naturalWidth:x.naturalWidth,naturalHeight:x.naturalHeight,isLoaded:!0}},O=k=>{k.target.tagName==="IMG"?(a.value=!0,c.value=k.clientX-f.value[o.value].translateX,v.value=k.clientY-f.value[o.value].translateY):(u.value=!0,c.value=k.clientX-h.value),k.preventDefault()},D=k=>{if(a.value){const x=k.clientX-c.value,T=k.clientY-v.value;f.value[o.value]={...f.value[o.value],translateX:x,translateY:T}}else if(u.value&&i.enableSwipe){const x=k.clientX-c.value;h.value=x}},B=()=>{if(u.value&&i.enableSwipe){const k=s.value*.3;Math.abs(h.value+o.value*s.value)>k?h.value>0?E():S():_()}u.value=!1,a.value=!1},N=k=>{const x=k.touches[0];m.value=x.clientX,p.value=x.clientY,d.value=Date.now()},F=k=>{const x=k.touches[0];b.value=x.clientX,t.value=x.clientY;const T=b.value-m.value,C=t.value-p.value;if(Math.abs(T)>Math.abs(C))k.preventDefault(),u.value=!0,h.value=-o.value*s.value+T;else if(f.value[o.value].scale>1){k.preventDefault(),a.value=!0;const M=T+f.value[o.value].translateX,L=C+f.value[o.value].translateY;f.value[o.value]={...f.value[o.value],translateX:M,translateY:L}}},V=()=>{if(u.value){const k=b.value-m.value,x=Date.now()-d.value,T=s.value*.2,C=Math.abs(k)/x;Math.abs(k)>T||C>.5?k>0?E():S():_()}u.value=!1,a.value=!1},I=(k,x)=>{if(x!==o.value)return;k.preventDefault();const T=k.deltaY>0?-.1:.1,C=k.clientX,M=k.clientY;R(C,M,T)},R=(k,x,T)=>{const C=f.value[o.value],M=Math.max(i.minScale,Math.min(i.maxScale,C.scale+T)),L=event.target.getBoundingClientRect(),j=k-L.left,P=x-L.top,W=M-C.scale,H=C.translateX+(j-C.translateX)*(W/C.scale),U=C.translateY+(P-C.translateY)*(W/C.scale);f.value[o.value]={...C,scale:M,translateX:H,translateY:U}};return(k,x)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$e,[r.images.length>1?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$d,[vue.createElementVNode("span",_hoisted_3$a,vue.toDisplayString(o.value+1)+"/"+vue.toDisplayString(r.images.length),1)])):vue.createCommentVNode("",!0),r.showCloseBtn?(vue.openBlock(),vue.createElementBlock("button",{key:1,class:"close-btn",onClick:x[0]||(x[0]=T=>e("close"))},[...x[1]||(x[1]=[vue.createElementVNode("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[vue.createElementVNode("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),vue.createElementVNode("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_4$8,[vue.createElementVNode("div",{class:"swiper-wrapper",ref_key:"swiperWrapper",ref:l,style:vue.normalizeStyle(w.value),onTouchstart:N,onTouchmove:F,onTouchend:V,onMousedown:O,onMousemove:D,onMouseup:B,onMouseleave:B},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(r.images,(T,C)=>(vue.openBlock(),vue.createElementBlock("div",{key:C,class:"swiper-slide",style:vue.normalizeStyle(y.value)},[vue.createElementVNode("div",{class:"image-container",onWheel:M=>I(M,C)},[vue.createElementVNode("img",{src:T,alt:"Preview image",class:"preview-image",style:vue.normalizeStyle(A(C)),onLoad:M=>z(C),loading:"lazy"},null,44,_hoisted_6$5)],40,_hoisted_5$6)],4))),128))],36)]),vue.createElementVNode("button",{class:"nav-btn prev-btn",onClick:E,disabled:o.value===0},[...x[2]||(x[2]=[vue.createElementVNode("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[vue.createElementVNode("polyline",{points:"15 18 9 12 15 6"})],-1)])],8,_hoisted_7$5),vue.createElementVNode("button",{class:"nav-btn next-btn",onClick:S,disabled:o.value===r.images.length-1},[...x[3]||(x[3]=[vue.createElementVNode("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[vue.createElementVNode("polyline",{points:"9 18 15 12 9 6"})],-1)])],8,_hoisted_8$3)]))}},_sfc_main$h={__name:"hbis-auto-scroll-list",props:{data:{type:Array,default:()=>[]},speed:{type:Number,default:1},direction:{type:String,default:"vertical",validator:r=>["vertical","horizontal"].includes(r)},pauseOnHover:{type:Boolean,default:!0},itemHeight:{type:Number,default:40},itemWidth:{type:Number,default:200},containerHeight:{type:[Number,String],default:300},containerWidth:{type:[Number,String],default:"100%"},loop:{type:Boolean,default:!0},customItemClass:{type:String,default:""},itemStyle:{type:Object,default:()=>({})}},emits:["scroll","pause","resume","dragStart","dragEnd"],setup(r,{expose:g,emit:i}){const e=r,o=i,l=vue.ref(null),u=vue.ref(null),a=vue.ref(!1),c=vue.ref(null),v=vue.ref(0),h=vue.ref([]),s=vue.ref(!1),n=vue.ref(0),f=vue.ref(0),m=vue.ref(0),p=vue.ref(!1),d=vue.computed(()=>({height:typeof e.containerHeight=="number"?`${e.containerHeight}px`:e.containerHeight,width:typeof e.containerWidth=="number"?`${e.containerWidth}px`:e.containerWidth,overflow:"hidden",position:"relative"})),b=vue.computed(()=>{const k={with:"100%",position:"absolute",transition:"none",willChange:"transform"};return e.direction==="vertical"?k.transform=`translateY(${v.value}px)`:k.transform=`translateX(${v.value}px)`,k}),t=()=>{if(!e.data||e.data.length===0){h.value=[];return}e.loop?h.value=[...e.data,...e.data]:h.value=[...e.data]},w=()=>{if(a.value||s.value){c.value=requestAnimationFrame(w);return}const k=l.value,x=u.value;if(!k||!x){c.value=requestAnimationFrame(w);return}const T=e.direction==="vertical"?k.offsetHeight:k.offsetWidth,M=(e.direction==="vertical"?e.itemHeight:e.itemWidth)*e.data.length;if(v.value-=e.speed,e.loop)Math.abs(v.value)>=M&&(v.value=0);else{const L=-(M-T);if(v.value<=L){v.value=L,a.value=!0,o("scroll",v.value);return}}o("scroll",v.value),c.value=requestAnimationFrame(w)},y=()=>{c.value&&cancelAnimationFrame(c.value),c.value=requestAnimationFrame(w)},_=()=>{c.value&&(cancelAnimationFrame(c.value),c.value=null)},E=()=>{a.value=!0,o("pause")},S=()=>{a.value=!1,o("resume")},$=()=>{e.pauseOnHover&&E()},A=()=>{e.pauseOnHover&&!s.value&&S()},z=k=>{s.value=!0,p.value=a.value,a.value=!0,n.value=e.direction==="vertical"?k.clientY:k.clientX,f.value=n.value,m.value=v.value,o("dragStart"),document.addEventListener("mousemove",O),document.addEventListener("mouseup",D)},O=k=>{if(!s.value)return;f.value=e.direction==="vertical"?k.clientY:k.clientX;const x=f.value-n.value;v.value=m.value+x;const T=l.value,C=u.value;if(T&&C){const M=e.direction==="vertical"?T.offsetHeight:T.offsetWidth,j=(e.direction==="vertical"?e.itemHeight:e.itemWidth)*e.data.length;if(e.loop)v.value>0?v.value=0:Math.abs(v.value)>j&&(v.value=-j);else{const P=-(j-M);v.value>0?v.value=0:v.value<P&&(v.value=P)}}o("scroll",v.value)},D=()=>{s.value&&(s.value=!1,document.removeEventListener("mousemove",O),document.removeEventListener("mouseup",D),p.value||(a.value=!1),o("dragEnd"))},B=k=>{const x=k.touches[0];s.value=!0,p.value=a.value,a.value=!0,n.value=e.direction==="vertical"?x.clientY:x.clientX,f.value=n.value,m.value=v.value,o("dragStart")},N=k=>{if(!s.value)return;k.preventDefault();const x=k.touches[0];f.value=e.direction==="vertical"?x.clientY:x.clientX;const T=f.value-n.value;v.value=m.value+T;const C=l.value,M=u.value;if(C&&M){const L=e.direction==="vertical"?C.offsetHeight:C.offsetWidth,P=(e.direction==="vertical"?e.itemHeight:e.itemWidth)*e.data.length;if(e.loop)v.value>0?v.value=0:Math.abs(v.value)>P&&(v.value=-P);else{const W=-(P-L);v.value>0?v.value=0:v.value<W&&(v.value=W)}}o("scroll",v.value)},F=()=>{s.value&&(s.value=!1,p.value||(a.value=!1),o("dragEnd"))},V=k=>{v.value=k},I=()=>{v.value=0},R=()=>{const k=l.value;if(k){const x=u.value;if(x){const T=e.direction==="vertical"?x.offsetHeight:x.offsetWidth;v.value=-(T-k.offsetHeight)}}};return vue.watch(()=>e.data,()=>{t(),v.value=0},{deep:!0}),vue.watch(()=>e.speed,()=>{a.value||(_(),y())}),vue.onMounted(()=>{t(),vue.nextTick(()=>{y();const k=l.value;k&&(k.addEventListener("mouseenter",$),k.addEventListener("mouseleave",A))})}),vue.onUnmounted(()=>{_();const k=l.value;k&&(k.removeEventListener("mouseenter",$),k.removeEventListener("mouseleave",A)),document.removeEventListener("mousemove",O),document.removeEventListener("mouseup",D)}),g({pause:E,resume:S,scrollTo:V,scrollToTop:I,scrollToBottom:R,isPaused:a,isDragging:s}),(k,x)=>(vue.openBlock(),vue.createElementBlock("div",{class:"hbis-auto-scroll-list",ref_key:"containerRef",ref:l,style:vue.normalizeStyle(d.value),onMousedown:z,onTouchstart:B,onTouchmove:N,onTouchend:F},[vue.createElementVNode("div",{class:"scroll-content",ref_key:"contentRef",ref:u,style:vue.normalizeStyle(b.value)},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(h.value,(T,C)=>vue.renderSlot(k.$slots,"item",{item:T,index:C},()=>[vue.createElementVNode("div",{class:"default-item",style:vue.normalizeStyle(r.itemStyle)},vue.toDisplayString(T),5)],!0)),256))],4)],36))}},HbisAutoScrollList=_export_sfc(_sfc_main$h,[["__scopeId","data-v-5b76d8eb"]]),_hoisted_1$d={key:0,class:"circular-spinner"},_hoisted_2$c={key:1,class:"dots-spinner"},_hoisted_3$9={key:2,class:"bars-spinner"},_sfc_main$g={__name:"hbis-loading",props:{visible:{type:Boolean,default:!1},touchDismiss:{type:Boolean,default:!1},text:{type:String,default:""},spinnerType:{type:String,default:"circular"},textStyle:{type:Object,default:()=>({})},containerStyle:{type:Object,default:()=>({})}},emits:["update:visible","close"],setup(r,{expose:g,emit:i}){const e=r,o=i,l=()=>{e.touchDismiss&&(o("update:visible",!1),o("close"))};return vue.watch(()=>e.visible,u=>{u?document.body.style.overflow="hidden":document.body.style.overflow=""}),vue.onUnmounted(()=>{document.body.style.overflow=""}),g({show:()=>o("update:visible",!0),hide:()=>{o("update:visible",!1),o("close")}}),(u,a)=>r.visible?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["hbis-loading-container",{"touch-dismissible":r.touchDismiss}]),onClick:l},[vue.createElementVNode("div",{class:"hbis-loading-wrapper",onClick:a[0]||(a[0]=vue.withModifiers(()=>{},["stop"]))},[vue.renderSlot(u.$slots,"spinner",{},()=>[vue.createElementVNode("div",{class:vue.normalizeClass(["hbis-loading-spinner",r.spinnerType])},[r.spinnerType==="circular"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$d,[...a[1]||(a[1]=[vue.createElementVNode("div",{class:"circle"},null,-1)])])):r.spinnerType==="dots"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$c,[...a[2]||(a[2]=[vue.createElementVNode("div",{class:"dot"},null,-1),vue.createElementVNode("div",{class:"dot"},null,-1),vue.createElementVNode("div",{class:"dot"},null,-1)])])):r.spinnerType==="bars"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$9,[...a[3]||(a[3]=[vue.createElementVNode("div",{class:"bar"},null,-1),vue.createElementVNode("div",{class:"bar"},null,-1),vue.createElementVNode("div",{class:"bar"},null,-1)])])):vue.createCommentVNode("",!0)],2)],!0),r.text?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"hbis-loading-text",style:vue.normalizeStyle(r.textStyle)},vue.toDisplayString(r.text),5)):vue.createCommentVNode("",!0)])],2)):vue.createCommentVNode("",!0)}},hbisLoading=_export_sfc(_sfc_main$g,[["__scopeId","data-v-d5965f87"]]),_hoisted_1$c={class:"parent-view"},_sfc_main$f={__name:"hbis-sms-input",props:{countDownTime:{type:Number,default:60},inputPlacheHolder:{type:String,default:"请输入验证码"},inputColor:{type:String,default:"#F1F7FA"},inputTextColor:{type:String,default:"#000"},inputPlacheHolderColor:{type:String,default:"#F00"},smsCodeTimeText:{type:String,default:"s"},smsCodeBtnText:{type:String,default:"发送"},smsCodeBtnColor:{type:String,default:"#FFF"},smsCodeBtnTextColor:{type:String,default:"#2E6DFF"}},emits:["custom-event"],setup(r,{expose:g,emit:i}){const e=r,o=i,l=vue.ref(!0),u=vue.ref(""),a=vue.ref(e.countDownTime),c=()=>{if(console.log("验证码isSendSMS:"+l.value),!l.value){console.log("请"+e.countDownTime+"秒后再重试。");return}o("custom-event")};return g({countDown:()=>{a.value=e.countDownTime;let h=setInterval(()=>{l.value=!1,a.value--,a.value===0&&(l.value=!0,clearInterval(h))},1e3)},smsCode:u}),(h,s)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$c,[vue.createElementVNode("div",{class:"input_view_sms_code",style:vue.normalizeStyle({background:r.inputColor})},[vue.withDirectives(vue.createElementVNode("input",{type:"text",class:"view_sms_code","placeholder-style":"color:#999",placeholder:"请输入验证码","onUpdate:modelValue":s[0]||(s[0]=n=>u.value=n),style:vue.normalizeStyle({color:r.inputTextColor})},null,4),[[vue.vModelText,u.value]]),l.value?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["sms_code_btn",{disabled:!l.value}]),style:vue.normalizeStyle({color:r.smsCodeBtnTextColor,background:r.smsCodeBtnColor}),onClick:c},vue.toDisplayString(a.value)+" "+vue.toDisplayString(r.smsCodeTimeText),7)),l.value?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"sms_code_btn",style:vue.normalizeStyle({color:r.smsCodeBtnTextColor,background:r.smsCodeBtnColor}),onClick:c},vue.toDisplayString(r.smsCodeBtnText),5)):vue.createCommentVNode("",!0)],4)]))}},HbisSmsInput=_export_sfc(_sfc_main$f,[["__scopeId","data-v-3eedbbcc"]]),_hoisted_1$b={class:"waterfall-debug"},_hoisted_2$b={class:"waterfall-container"},_hoisted_3$8={class:"column-debug"},_hoisted_4$7={key:0,class:"waterfall-item-with-slot"},_hoisted_5$5=["src"],_hoisted_6$4={class:"waterfall-content"},_hoisted_7$4=["src"],_sfc_main$e=Object.assign({name:"HbisWaterfall"},{__name:"hbis-waterfall",props:{data:{type:Array,default:()=>[]},column:{type:Number,default:2,validator:r=>r>=2},maxColumn:{type:Number,default:5},columnGap:{type:[Number,String],default:10},rowGap:{type:[Number,String],default:10},itemKey:{type:String,default:"id"},imageKey:{type:String,default:"url"}},emits:["load","error"],setup(r,{expose:g,emit:i}){const e=vue.useSlots(),o=vue.ref(null),l=r,u=i;vue.useCssVars(()=>({columnGap:String(l.columnGap)+"px",rowGap:String(l.rowGap)+"px"}));const a=vue.ref([]),c=vue.ref(2),v=vue.computed(()=>e.default!==void 0),h=m=>(o.value&&o.value.offsetWidth,Math.min(l.column,l.maxColumn),parseInt(l.columnGap),parseInt(l.rowGap),200+Math.floor(Math.random()*100)+20),s=()=>{console.log("开始分配数据,总数据量:",l.data.length);const m=Math.min(l.column,l.maxColumn);c.value=m;const p=[];for(let d=0;d<m;d++)p.push({items:[],height:0});a.value=p,l.data.forEach((d,b)=>{const t=h();let w=1/0,y=0;for(let _=0;_<m;_++)a.value[_].height<w&&(w=a.value[_].height,y=_);a.value[y].items.push(d),a.value[y].height+=t,console.log("分配数据到列:",{itemIndex:b,columnIndex:y,itemHeight:t,columnHeight:a.value[y].height})}),console.log("分配完成,各列数据量:",a.value.map((d,b)=>`列${b+1}: ${d.items.length}个`)),console.log("分配完成,各列高度:",a.value.map((d,b)=>`列${b+1}: ${d.height}px`))},n=m=>{u("load",m)},f=m=>{u("error",m)};return vue.watch(()=>l.data,()=>{console.log("数据变化,重新分配数据"),s()},{deep:!0}),vue.watch(()=>[l.column,l.maxColumn],()=>{console.log("列数变化,更新列数"),c.value=Math.min(l.column,l.maxColumn),s()}),vue.watch(()=>[l.columnGap,l.rowGap],()=>{console.log("间距变化,重新计算高度和分配数据"),s()}),vue.onMounted(()=>{console.log("===== 组件挂载 ====="),console.log("组件挂载,初始化数据"),console.log("初始数据量:",l.data.length);try{s(),console.log("===== 组件挂载完成 =====")}catch(m){console.error("refresh函数执行失败:",m),console.log("===== 组件挂载失败 =====")}}),g({refresh:s}),(m,p)=>(vue.openBlock(),vue.createElementBlock("div",{ref_key:"waterfallRef",ref:o},[vue.createElementVNode("div",_hoisted_1$b,[vue.createTextVNode(" 列数: "+vue.toDisplayString(c.value)+" ",1),p[1]||(p[1]=vue.createElementVNode("br",null,null,-1)),vue.createTextVNode(" 数据总量: "+vue.toDisplayString(r.data.length)+" ",1),p[2]||(p[2]=vue.createElementVNode("br",null,null,-1)),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(a.value,(d,b)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:b},[vue.createTextVNode(" 列"+vue.toDisplayString(b+1)+"数据量: "+vue.toDisplayString(d.items.length),1),p[0]||(p[0]=vue.createElementVNode("br",null,null,-1))],64))),128))]),vue.createElementVNode("div",_hoisted_2$b,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(a.value,(d,b)=>(vue.openBlock(),vue.createElementBlock("div",{key:b,class:"waterfall-column"},[vue.createElementVNode("div",_hoisted_3$8," 列"+vue.toDisplayString(b+1)+": "+vue.toDisplayString(d.items.length)+"个元素 ",1),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(d.items,(t,w)=>(vue.openBlock(),vue.createElementBlock("div",{key:t[r.itemKey]||`col${b}-${w}`,class:"waterfall-item"},[v.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$7,[vue.createElementVNode("img",{src:t[r.imageKey],class:"waterfall-image",style:vue.normalizeStyle({height:h()+"px"}),onLoad:n,onError:f},null,44,_hoisted_5$5),vue.createElementVNode("div",_hoisted_6$4,[vue.renderSlot(m.$slots,"default",{item:t,index:w},void 0,!0)])])):(vue.openBlock(),vue.createElementBlock("img",{key:1,src:t[r.imageKey],class:"waterfall-image",style:vue.normalizeStyle({height:h()+"px"}),onLoad:n,onError:f},null,44,_hoisted_7$4))]))),128))]))),128))])],512))}}),HbisWaterfall=_export_sfc(_sfc_main$e,[["__scopeId","data-v-20459ccd"]]);var svga_lite_min={exports:{}};/*!
|
|
2
2
|
* svga.lite
|
|
3
3
|
*
|
|
4
4
|
* Version: 1.6.1
|
|
5
5
|
* Document: https://github.com/svga/SVGAPlayer-Web-Lite
|
|
6
6
|
* (c) 2019 YY.SVGA
|
|
7
7
|
* Released under the MIT License.
|
|
8
|
-
*/(function(module,exports$1){(function(o,m){module.exports=m()})(window,function(){return function(o){var m={};function n(t){if(m[t])return m[t].exports;var r=m[t]={i:t,l:!1,exports:{}};return o[t].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=o,n.c=m,n.d=function(t,r,u){n.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:u})},n.r=function(t){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,r){if(1&r&&(t=n(t)),8&r||4&r&&typeof t=="object"&&t&&t.__esModule)return t;var u=Object.create(null);if(n.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:t}),2&r&&typeof t!="string")for(var a in t)n.d(u,a,(function(s){return t[s]}).bind(null,a));return u},n.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(r,"a",r),r},n.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},n.p="",n(n.s=1)}([function(o,m,n){Object.defineProperty(m,"__esModule",{value:!0});var t=function(r,u,a){this._d=r,this._transform=u,this._styles=a};m.default=t},function(o,m,n){Object.defineProperty(m,"__esModule",{value:!0});var t=n(2),r=n(3),u=n(4),a={Downloader:t.default,Parser:r.default,Player:u.default};m.default=a},function(o,m,n){Object.defineProperty(m,"__esModule",{value:!0});var t=function(){function r(){this.request=null}return r.prototype.get=function(u){var a=this;if(!u)throw new Error("download link undefined");return new Promise(function(s,v){var h=new XMLHttpRequest;h.open("GET",u,!0),h.responseType="arraybuffer",h.onloadend=function(){!h.response||h.status!==200&&h.status!==304?v(h):s(h.response)},h.onerror=function(){return v(h.response)},h.send(),a.request=h})},r.prototype.cancel=function(){this.request&&this.request.abort()},r.prototype.destroy=function(){this.request&&this.request.abort()},r}();m.default=t},function(module,exports$1,__webpack_require__){Object.defineProperty(exports$1,"__esModule",{value:!0});var WORKER=`!function(t){var e={};function r(i){if(e[i])return e[i].exports;var s=e[i]={i:i,l:!1,exports:{}};return t[i].call(s.exports,s,s.exports,r),s.l=!0,s.exports}r.m=t,r.c=e,r.d=function(t,e,i){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)r.d(i,s,function(e){return t[e]}.bind(null,s));return i},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=8)}([function(t,e,r){"use strict";var i=t.exports=r(6);i.codegen=r(16),i.toArray=function(t){if(t){for(var e=Object.keys(t),r=new Array(e.length),i=0;i<e.length;)r[i]=t[e[i++]];return r}return[]};var s=/\\\\/g,n=/"/g;i.isReserved=function(t){return/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/.test(t)},i.safeProp=function(t){return!/^[$\\w_]+$/.test(t)||i.isReserved(t)?'["'+t.replace(s,"\\\\\\\\").replace(n,'\\\\"')+'"]':"."+t}},function(t,e,r){"use strict";t.exports=h;var i=r(2);((h.prototype=Object.create(i.prototype)).constructor=h).className="Field";var s,n=r(3),o=r(5),a=r(0),f=/^required|optional|repeated$/;function h(t,e,r,s,n,h,l){if(a.isObject(s)?(l=n,h=s,s=n=void 0):a.isObject(n)&&(l=h,h=n,n=void 0),i.call(this,t,h),!a.isInteger(e)||e<0)throw TypeError("id must be a non-negative integer");if(!a.isString(r))throw TypeError("type must be a string");if(void 0!==s&&!f.test(s=s.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==n&&!a.isString(n))throw TypeError("extend must be a string");this.rule=s&&"optional"!==s?s:void 0,this.type=r,this.id=e,this.extend=n||void 0,this.required="required"===s,this.optional=!this.required,this.repeated="repeated"===s,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!a.Long&&void 0!==o.long[r],this.bytes="bytes"===r,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this._packed=null,this.comment=l}h.fromJSON=function(t,e){return new h(t,e.id,e.type,e.rule,e.extend,e.options,e.comment)},h.prototype.setOption=function(t,e,r){return"packed"===t&&(this._packed=null),i.prototype.setOption.call(this,t,e,r)},h.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=o.defaults[this.type])&&(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof s?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof n&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(!0!==this.options.packed&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof n)||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=a.Long.fromNumber(this.typeDefault,"u"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&"string"==typeof this.typeDefault){var t;a.base64.test(this.typeDefault)?a.base64.decode(this.typeDefault,t=a.newBuffer(a.base64.length(this.typeDefault)),0):a.utf8.write(this.typeDefault,t=a.newBuffer(a.utf8.length(this.typeDefault)),0),this.typeDefault=t}return this.map?this.defaultValue=a.emptyObject:this.repeated?this.defaultValue=a.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof s&&(this.parent.ctor.prototype[this.name]=this.defaultValue),i.prototype.resolve.call(this)},h._configure=function(t){s=t}},function(t,e,r){"use strict";var i;function s(t,e){this.options=e,this.name=t,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}t.exports=s,s.className="ReflectionObject",s.prototype.onAdd=function(t){this.parent&&this.parent!==t&&this.parent.remove(this),this.parent=t,this.resolved=!1;var e=t.root;e instanceof i&&e._handleAdd(this)},s.prototype.resolve=function(){return this.resolved?this:(this.root instanceof i&&(this.resolved=!0),this)},s.prototype.getOption=function(t){if(this.options)return this.options[t]},s._configure=function(t){i=t}},function(t,e,r){"use strict";t.exports=s;var i=r(2);function s(t,e,r,s,n){if(i.call(this,t,r),e&&"object"!=typeof e)throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=s,this.comments=n||{},this.reserved=void 0,e)for(var o=Object.keys(e),a=0;a<o.length;++a)"number"==typeof e[o[a]]&&(this.valuesById[this.values[o[a]]=e[o[a]]]=o[a])}((s.prototype=Object.create(i.prototype)).constructor=s).className="Enum",s.fromJSON=function(t,e){var r=new s(t,e.values,e.options,e.comment,e.comments);return r.reserved=e.reserved,r}},function(t,e,r){"use strict";t.exports=h;var i=r(2);((h.prototype=Object.create(i.prototype)).constructor=h).className="Namespace";var s,n,o,a=r(1),f=r(0);function h(t,e){i.call(this,t,e),this.nested=void 0,this._nestedArray=null}h.fromJSON=function(t,e){return new h(t,e.options).addJSON(e.nested)},h.isReservedId=function(t,e){if(t)for(var r=0;r<t.length;++r)if("string"!=typeof t[r]&&t[r][0]<=e&&t[r][1]>=e)return!0;return!1},h.isReservedName=function(t,e){if(t)for(var r=0;r<t.length;++r)if(t[r]===e)return!0;return!1},Object.defineProperty(h.prototype,"nestedArray",{get:function(){return this._nestedArray||(this._nestedArray=f.toArray(this.nested))}}),h.prototype.addJSON=function(t){if(t)for(var e,r=Object.keys(t),i=0;i<r.length;++i)e=t[r[i]],this.add((void 0!==e.fields?s.fromJSON:void 0!==e.values?o.fromJSON:void 0!==e.methods?n.fromJSON:void 0!==e.id?a.fromJSON:h.fromJSON)(r[i],e));return this},h.prototype.get=function(t){return this.nested&&this.nested[t]||null},h.prototype.add=function(t){if(!(t instanceof a&&void 0!==t.extend||t instanceof s||t instanceof o||t instanceof n||t instanceof h))throw TypeError("object must be a valid nested object");if(this.nested){var e=this.get(t.name);if(e){if(!(e instanceof h&&t instanceof h)||e instanceof s||e instanceof n)throw Error("duplicate name '"+t.name+"' in "+this);for(var r=e.nestedArray,i=0;i<r.length;++i)t.add(r[i]);this.remove(e),this.nested||(this.nested={}),t.setOptions(e.options,!0)}}else this.nested={};return this.nested[t.name]=t,t.onAdd(this),(f=this)._nestedArray=null,f;var f},h.prototype.lookup=function(t,e,r){if("boolean"==typeof e?(r=e,e=void 0):e&&!Array.isArray(e)&&(e=[e]),f.isString(t)&&t.length){if("."===t)return this.root;t=t.split(".")}else if(!t.length)return this;if(""===t[0])return this.root.lookup(t.slice(1),e);var i=this.get(t[0]);if(i){if(1===t.length){if(!e||e.indexOf(i.constructor)>-1)return i}else if(i instanceof h&&(i=i.lookup(t.slice(1),e,!0)))return i}else for(var s=0;s<this.nestedArray.length;++s)if(this._nestedArray[s]instanceof h&&(i=this._nestedArray[s].lookup(t,e,!0)))return i;return null===this.parent||r?null:this.parent.lookup(t,e)},h.prototype.lookupType=function(t){var e=this.lookup(t,[s]);if(!e)throw Error("no such type: "+t);return e},h.prototype.lookupTypeOrEnum=function(t){var e=this.lookup(t,[s,o]);if(!e)throw Error("no such Type or Enum '"+t+"' in "+this);return e},h._configure=function(t,e,r){s=t,n=e,o=r}},function(t,e,r){"use strict";var i=e,s=r(0),n=["double","float","int32","uint32","sint32","fixed32","sfixed32","int64","uint64","sint64","fixed64","sfixed64","bool","string","bytes"];function o(t,e){var r=0,i={};for(e|=0;r<t.length;)i[n[r+e]]=t[r++];return i}i.basic=o([1,5,0,0,0,5,5,0,0,0,1,1,0,2,2]),i.defaults=o([0,0,0,0,0,0,0,0,0,0,0,0,!1,"",s.emptyArray,null]),i.long=o([0,0,0,1,1],7),i.mapKey=o([0,0,0,5,5,0,0,0,1,1,0,2],2),i.packed=o([1,5,0,0,0,5,5,0,0,0,1,1,0])},function(t,e,r){"use strict";var i=e;i.float=r(14),i.utf8=r(15),i.emptyArray=Object.freeze?Object.freeze([]):[],i.emptyObject=Object.freeze?Object.freeze({}):{},i.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},i.isString=function(t){return"string"==typeof t||t instanceof String},i.isObject=function(t){return t&&"object"==typeof t},i.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,i._configure=function(){var t=i.Buffer;t?(i._Buffer_from=t.from!==Uint8Array.from&&t.from||function(e,r){return new t(e,r)},i._Buffer_allocUnsafe=t.allocUnsafe||function(e){return new t(e)}):i._Buffer_from=i._Buffer_allocUnsafe=null}},function(t,e,r){"use strict";t.exports=s;var i=r(4);function s(t,e){i.call(this,t,e),this.methods={},this._methodsArray=null}((s.prototype=Object.create(i.prototype)).constructor=s).className="Service"},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),r(9);var i,s=r(10),n=r(23),o=r(24),a=r(25),f=r(26);self.document?((i=self.SVGAParserMockWorker={}).disableWorker=!0,i.postMessage=function(t){i.onmessageCallback&&i.onmessageCallback(t)}):i=self;var h=s.Root.fromJSON(n.default).lookupType("com.opensource.svga.MovieEntity");i.onmessage=function(t){var e=new o.Zlib.Inflate(new Uint8Array(t.data)).decompress(),r=h.decode(e),s={};for(var n in r.images){var l=r.images[n],u=a.default(l);s[n]=btoa(u)}var p=new f.default(r,s);i.postMessage(p)}},function(t,e,r){"use strict";var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";!self.btoa&&(self.btoa=function(t){for(var e,r,s,n,o="",a=0,f=(t=String(t)).length%3;a<t.length;){if((r=t.charCodeAt(a++))>255||(s=t.charCodeAt(a++))>255||(n=t.charCodeAt(a++))>255)throw new TypeError("Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.");o+=i.charAt((e=r<<16|s<<8|n)>>18&63)+i.charAt(e>>12&63)+i.charAt(e>>6&63)+i.charAt(63&e)}return f?o.slice(0,f-3)+"===".substring(f):o})},function(t,e,r){"use strict";t.exports=r(11)},function(t,e,r){"use strict";(t.exports=r(12)).build="full"},function(t,e,r){"use strict";var i=t.exports=r(13);i.build="light",i.ReflectionObject=r(2),i.Namespace=r(4),i.Root=r(17),i.Enum=r(3),i.Type=r(19),i.Field=r(1),i.Service=r(7),i.ReflectionObject._configure(i.Root),i.Namespace._configure(i.Type,i.Service,i.Enum),i.Root._configure(i.Type),i.Field._configure(i.Type)},function(t,e,r){"use strict";e.build="minimal"},function(t,e,r){"use strict";function i(t){return"undefined"!=typeof Float32Array?function(){var e=new Float32Array([-0]),r=new Uint8Array(e.buffer),i=128===r[3];function s(t,i,s){e[0]=t,i[s]=r[0],i[s+1]=r[1],i[s+2]=r[2],i[s+3]=r[3]}function n(t,i,s){e[0]=t,i[s]=r[3],i[s+1]=r[2],i[s+2]=r[1],i[s+3]=r[0]}function o(t,i){return r[0]=t[i],r[1]=t[i+1],r[2]=t[i+2],r[3]=t[i+3],e[0]}function a(t,i){return r[3]=t[i],r[2]=t[i+1],r[1]=t[i+2],r[0]=t[i+3],e[0]}t.writeFloatLE=i?s:n,t.writeFloatBE=i?n:s,t.readFloatLE=i?o:a,t.readFloatBE=i?a:o}():function(){function e(t,e,r,i){var s=e<0?1:0;if(s&&(e=-e),0===e)t(1/e>0?0:2147483648,r,i);else if(isNaN(e))t(2143289344,r,i);else if(e>34028234663852886e22)t((s<<31|2139095040)>>>0,r,i);else if(e<11754943508222875e-54)t((s<<31|Math.round(e/1401298464324817e-60))>>>0,r,i);else{var n=Math.floor(Math.log(e)/Math.LN2);t((s<<31|n+127<<23|8388607&Math.round(e*Math.pow(2,-n)*8388608))>>>0,r,i)}}function r(t,e,r){var i=t(e,r),s=2*(i>>31)+1,n=i>>>23&255,o=8388607&i;return 255===n?o?NaN:s*(1/0):0===n?1401298464324817e-60*s*o:s*Math.pow(2,n-150)*(o+8388608)}t.writeFloatLE=e.bind(null,s),t.writeFloatBE=e.bind(null,n),t.readFloatLE=r.bind(null,o),t.readFloatBE=r.bind(null,a)}(),"undefined"!=typeof Float64Array?function(){var e=new Float64Array([-0]),r=new Uint8Array(e.buffer),i=128===r[7];function s(t,i,s){e[0]=t,i[s]=r[0],i[s+1]=r[1],i[s+2]=r[2],i[s+3]=r[3],i[s+4]=r[4],i[s+5]=r[5],i[s+6]=r[6],i[s+7]=r[7]}function n(t,i,s){e[0]=t,i[s]=r[7],i[s+1]=r[6],i[s+2]=r[5],i[s+3]=r[4],i[s+4]=r[3],i[s+5]=r[2],i[s+6]=r[1],i[s+7]=r[0]}function o(t,i){return r[0]=t[i],r[1]=t[i+1],r[2]=t[i+2],r[3]=t[i+3],r[4]=t[i+4],r[5]=t[i+5],r[6]=t[i+6],r[7]=t[i+7],e[0]}function a(t,i){return r[7]=t[i],r[6]=t[i+1],r[5]=t[i+2],r[4]=t[i+3],r[3]=t[i+4],r[2]=t[i+5],r[1]=t[i+6],r[0]=t[i+7],e[0]}t.writeDoubleLE=i?s:n,t.writeDoubleBE=i?n:s,t.readDoubleLE=i?o:a,t.readDoubleBE=i?a:o}():function(){function e(t,e,r,i,s,n){var o=i<0?1:0;if(o&&(i=-i),0===i)t(0,s,n+e),t(1/i>0?0:2147483648,s,n+r);else if(isNaN(i))t(0,s,n+e),t(2146959360,s,n+r);else if(i>17976931348623157e292)t(0,s,n+e),t((o<<31|2146435072)>>>0,s,n+r);else{var a;if(i<22250738585072014e-324)t((a=i/5e-324)>>>0,s,n+e),t((o<<31|a/4294967296)>>>0,s,n+r);else{var f=Math.floor(Math.log(i)/Math.LN2);1024===f&&(f=1023),t(4503599627370496*(a=i*Math.pow(2,-f))>>>0,s,n+e),t((o<<31|f+1023<<20|1048576*a&1048575)>>>0,s,n+r)}}}function r(t,e,r,i,s){var n=t(i,s+e),o=t(i,s+r),a=2*(o>>31)+1,f=o>>>20&2047,h=4294967296*(1048575&o)+n;return 2047===f?h?NaN:a*(1/0):0===f?5e-324*a*h:a*Math.pow(2,f-1075)*(h+4503599627370496)}t.writeDoubleLE=e.bind(null,s,0,4),t.writeDoubleBE=e.bind(null,n,4,0),t.readDoubleLE=r.bind(null,o,0,4),t.readDoubleBE=r.bind(null,a,4,0)}(),t}function s(t,e,r){e[r]=255&t,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24}function n(t,e,r){e[r]=t>>>24,e[r+1]=t>>>16&255,e[r+2]=t>>>8&255,e[r+3]=255&t}function o(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}function a(t,e){return(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}t.exports=i(i)},function(t,e,r){"use strict";var i=e;i.length=function(t){for(var e=0,r=0,i=0;i<t.length;++i)(r=t.charCodeAt(i))<128?e+=1:r<2048?e+=2:55296==(64512&r)&&56320==(64512&t.charCodeAt(i+1))?(++i,e+=4):e+=3;return e},i.read=function(t,e,r){if(r-e<1)return"";for(var i,s=null,n=[],o=0;e<r;)(i=t[e++])<128?n[o++]=i:i>191&&i<224?n[o++]=(31&i)<<6|63&t[e++]:i>239&&i<365?(i=((7&i)<<18|(63&t[e++])<<12|(63&t[e++])<<6|63&t[e++])-65536,n[o++]=55296+(i>>10),n[o++]=56320+(1023&i)):n[o++]=(15&i)<<12|(63&t[e++])<<6|63&t[e++],o>8191&&((s||(s=[])).push(String.fromCharCode.apply(String,n)),o=0);return s?(o&&s.push(String.fromCharCode.apply(String,n.slice(0,o))),s.join("")):String.fromCharCode.apply(String,n.slice(0,o))},i.write=function(t,e,r){for(var i,s,n=r,o=0;o<t.length;++o)(i=t.charCodeAt(o))<128?e[r++]=i:i<2048?(e[r++]=i>>6|192,e[r++]=63&i|128):55296==(64512&i)&&56320==(64512&(s=t.charCodeAt(o+1)))?(i=65536+((1023&i)<<10)+(1023&s),++o,e[r++]=i>>18|240,e[r++]=i>>12&63|128,e[r++]=i>>6&63|128,e[r++]=63&i|128):(e[r++]=i>>12|224,e[r++]=i>>6&63|128,e[r++]=63&i|128);return r-n}},function(t,e,r){"use strict";function i(t,e){"string"==typeof t&&(e=t,t=void 0);var r=[];function s(t){if("string"!=typeof t){var e=n();if(i.verbose&&console.log("codegen: "+e),e="return "+e,t){for(var o=Object.keys(t),a=new Array(o.length+1),f=new Array(o.length),h=0;h<o.length;)a[h]=o[h],f[h]=t[o[h++]];return a[h]=e,Function.apply(null,a).apply(null,f)}return Function(e)()}for(var l=new Array(arguments.length-1),u=0;u<l.length;)l[u]=arguments[++u];if(u=0,t=t.replace(/%([%dfijs])/g,function(t,e){var r=l[u++];switch(e){case"d":case"f":return String(Number(r));case"i":return String(Math.floor(r));case"j":return JSON.stringify(r);case"s":return String(r)}return"%"}),u!==l.length)throw Error("parameter count mismatch");return r.push(t),s}function n(i){return"function "+(i||e||"")+"("+(t&&t.join(",")||"")+"){\\n "+r.join("\\n ")+"\\n}"}return s.toString=n,s}t.exports=i,i.verbose=!1},function(t,e,r){"use strict";t.exports=f;var i=r(4);((f.prototype=Object.create(i.prototype)).constructor=f).className="Root";var s,n=r(1),o=r(3),a=r(18);function f(t){i.call(this,"",t),this.deferred=[],this.files=[]}f.fromJSON=function(t,e){return e||(e=new f),t.options&&e.setOptions(t.options),e.addJSON(t.nested)};var h=/^[A-Z]/;function l(t,e){var r=e.parent.lookup(e.extend);if(r){var i=new n(e.fullName,e.id,e.type,e.rule,void 0,e.options);return i.declaringField=e,e.extensionField=i,r.add(i),!0}return!1}f.prototype._handleAdd=function(t){if(t instanceof n)void 0===t.extend||t.extensionField||l(0,t)||this.deferred.push(t);else if(t instanceof o)h.test(t.name)&&(t.parent[t.name]=t.values);else if(!(t instanceof a)){if(t instanceof s)for(var e=0;e<this.deferred.length;)l(0,this.deferred[e])?this.deferred.splice(e,1):++e;for(var r=0;r<t.nestedArray.length;++r)this._handleAdd(t._nestedArray[r]);h.test(t.name)&&(t.parent[t.name]=t)}},f._configure=function(t,e,r){s=t,e,r}},function(t,e,r){"use strict";t.exports=o;var i=r(2);((o.prototype=Object.create(i.prototype)).constructor=o).className="OneOf";var s=r(1),n=r(0);function o(t,e,r,s){if(Array.isArray(e)||(r=e,e=void 0),i.call(this,t,r),void 0!==e&&!Array.isArray(e))throw TypeError("fieldNames must be an Array");this.oneof=e||[],this.fieldsArray=[],this.comment=s}function a(t){if(t.parent)for(var e=0;e<t.fieldsArray.length;++e)t.fieldsArray[e].parent||t.parent.add(t.fieldsArray[e])}o.fromJSON=function(t,e){return new o(t,e.oneof,e.options,e.comment)},o.prototype.toJSON=function(t){var e=!!t&&Boolean(t.keepComments);return n.toObject(["options",this.options,"oneof",this.oneof,"comment",e?this.comment:void 0])},o.prototype.add=function(t){if(!(t instanceof s))throw TypeError("field must be a Field");return t.parent&&t.parent!==this.parent&&t.parent.remove(t),this.oneof.push(t.name),this.fieldsArray.push(t),t.partOf=this,a(this),this},o.prototype.remove=function(t){if(!(t instanceof s))throw TypeError("field must be a Field");var e=this.fieldsArray.indexOf(t);if(e<0)throw Error(t+" is not a member of "+this);return this.fieldsArray.splice(e,1),(e=this.oneof.indexOf(t.name))>-1&&this.oneof.splice(e,1),t.partOf=null,this},o.prototype.onAdd=function(t){i.prototype.onAdd.call(this,t);for(var e=0;e<this.oneof.length;++e){var r=t.get(this.oneof[e]);r&&!r.partOf&&(r.partOf=this,this.fieldsArray.push(r))}a(this)},o.prototype.onRemove=function(t){for(var e,r=0;r<this.fieldsArray.length;++r)(e=this.fieldsArray[r]).parent&&e.parent.remove(e);i.prototype.onRemove.call(this,t)},o.d=function(){for(var t=new Array(arguments.length),e=0;e<arguments.length;)t[e]=arguments[e++];return function(e,r){n.decorateType(e.constructor).add(new o(r,t)),Object.defineProperty(e,r,{get:n.oneOfGetter(t),set:n.oneOfSetter(t)})}}},function(t,e,r){"use strict";t.exports=u;var i=r(4);((u.prototype=Object.create(i.prototype)).constructor=u).className="Type";var s=r(3),n=r(1),o=r(20),a=r(7),f=r(21),h=r(0),l=r(22);function u(t,e){i.call(this,t,e),this.fields={},this.oneofs=void 0,this.extensions=void 0,this.reserved=void 0,this.group=void 0,this._fieldsById=null,this._fieldsArray=null,this._oneofsArray=null,this._ctor=null}Object.defineProperties(u.prototype,{fieldsById:{get:function(){if(this._fieldsById)return this._fieldsById;this._fieldsById={};for(var t=Object.keys(this.fields),e=0;e<t.length;++e){var r=this.fields[t[e]],i=r.id;if(this._fieldsById[i])throw Error("duplicate id "+i+" in "+this);this._fieldsById[i]=r}return this._fieldsById}},fieldsArray:{get:function(){return this._fieldsArray||(this._fieldsArray=h.toArray(this.fields))}},oneofsArray:{get:function(){return this._oneofsArray||(this._oneofsArray=h.toArray(this.oneofs))}},ctor:{get:function(){return this._ctor||(this.ctor=u.generateConstructor(this)())},set:function(t){t.prototype;t.$type=t.prototype.$type=this,this._ctor=t;for(var e=0;e<this.fieldsArray.length;++e)this._fieldsArray[e].resolve();var r={};for(e=0;e<this.oneofsArray.length;++e)r[this._oneofsArray[e].resolve().name]={get:h.oneOfGetter(this._oneofsArray[e].oneof),set:h.oneOfSetter(this._oneofsArray[e].oneof)};e&&Object.defineProperties(t.prototype,r)}}}),u.generateConstructor=function(t){for(var e,r=h.codegen(["p"],t.name),i=0;i<t.fieldsArray.length;++i)(e=t._fieldsArray[i]).map?r("this%s={}",h.safeProp(e.name)):e.repeated&&r("this%s=[]",h.safeProp(e.name));return r("if(p)for(var ks=Object.keys(p),i=0;i<ks.length;++i)if(p[ks[i]]!=null)")("this[ks[i]]=p[ks[i]]")},u.fromJSON=function(t,e){var r=new u(t,e.options);r.extensions=e.extensions,r.reserved=e.reserved;for(var f=Object.keys(e.fields),h=0;h<f.length;++h)r.add((void 0!==e.fields[f[h]].keyType?o.fromJSON:n.fromJSON)(f[h],e.fields[f[h]]));if(e.nested)for(f=Object.keys(e.nested),h=0;h<f.length;++h){var l=e.nested[f[h]];r.add((void 0!==l.id?n.fromJSON:void 0!==l.fields?u.fromJSON:void 0!==l.values?s.fromJSON:void 0!==l.methods?a.fromJSON:i.fromJSON)(f[h],l))}return e.extensions&&e.extensions.length&&(r.extensions=e.extensions),e.reserved&&e.reserved.length&&(r.reserved=e.reserved),e.group&&(r.group=!0),e.comment&&(r.comment=e.comment),r},u.prototype.add=function(t){if(this.get(t.name))throw Error("duplicate name '"+t.name+"' in "+this);if(t instanceof n&&void 0===t.extend){if(this._fieldsById?this._fieldsById[t.id]:this.fieldsById[t.id])throw Error("duplicate id "+t.id+" in "+this);if(this.isReservedId(t.id))throw Error("id "+t.id+" is reserved in "+this);if(this.isReservedName(t.name))throw Error("name '"+t.name+"' is reserved in "+this);return t.parent&&t.parent.remove(t),this.fields[t.name]=t,t.message=this,t.onAdd(this),(e=this)._fieldsById=e._fieldsArray=e._oneofsArray=null,delete e.encode,delete e.decode,delete e.verify,e}var e;return i.prototype.add.call(this,t)},u.prototype.isReservedId=function(t){return i.isReservedId(this.reserved,t)},u.prototype.isReservedName=function(t){return i.isReservedName(this.reserved,t)},u.prototype.setup=function(){this.fullName;for(var t=[],e=0;e<this.fieldsArray.length;++e)t.push(this._fieldsArray[e].resolve().resolvedType);return this.decode=l(this)({Reader:f,types:t,util:h}),this},u.prototype.decode=function(t,e){return this.setup().decode(t,e)}},function(t,e,r){"use strict";t.exports=n;var i=r(1);((n.prototype=Object.create(i.prototype)).constructor=n).className="MapField";r(5);var s=r(0);function n(t,e,r,n,o,a){if(i.call(this,t,e,n,void 0,void 0,o,a),!s.isString(r))throw TypeError("keyType must be a string");this.keyType=r,this.resolvedKeyType=null,this.map=!0}n.fromJSON=function(t,e){return new n(t,e.id,e.keyType,e.type,e.options,e.comment)}},function(t,e,r){"use strict";t.exports=o;var i=r(6),s=(i.LongBits,i.utf8);function n(t,e){return RangeError("index out of range: "+t.pos+" + "+(e||1)+" > "+t.len)}function o(t){this.buf=t,this.pos=0,this.len=t.length}var a,f="undefined"!=typeof Uint8Array?function(t){if(t instanceof Uint8Array||Array.isArray(t))return new o(t);throw Error("illegal buffer")}:function(t){if(Array.isArray(t))return new o(t);throw Error("illegal buffer")};function h(t,e){return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0}o.create=i.Buffer?function(t){return(o.create=function(t){return i.Buffer.isBuffer(t)?new(void 0)(t):f(t)})(t)}:f,o.prototype._slice=i.Array.prototype.subarray||i.Array.prototype.slice,o.prototype.uint32=(a=4294967295,function(){if(a=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return a;if(a=(a|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return a;if(a=(a|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return a;if(a=(a|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return a;if(a=(a|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return a;if((this.pos+=5)>this.len)throw this.pos=this.len,n(this,10);return a}),o.prototype.int32=function(){return 0|this.uint32()},o.prototype.sint32=function(){var t=this.uint32();return t>>>1^-(1&t)|0},o.prototype.bool=function(){return 0!==this.uint32()},o.prototype.fixed32=function(){if(this.pos+4>this.len)throw n(this,4);return h(this.buf,this.pos+=4)},o.prototype.sfixed32=function(){if(this.pos+4>this.len)throw n(this,4);return 0|h(this.buf,this.pos+=4)},o.prototype.float=function(){if(this.pos+4>this.len)throw n(this,4);var t=i.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t},o.prototype.double=function(){if(this.pos+8>this.len)throw n(this,4);var t=i.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t},o.prototype.bytes=function(){var t=this.uint32(),e=this.pos,r=this.pos+t;if(r>this.len)throw n(this,t);return this.pos+=t,Array.isArray(this.buf)?this.buf.slice(e,r):e===r?new this.buf.constructor(0):this._slice.call(this.buf,e,r)},o.prototype.string=function(){var t=this.bytes();return s.read(t,0,t.length)},o.prototype.skip=function(t){if("number"==typeof t){if(this.pos+t>this.len)throw n(this,t);this.pos+=t}else do{if(this.pos>=this.len)throw n(this)}while(128&this.buf[this.pos++]);return this},o.prototype.skipType=function(t){switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(t=7&this.uint32());)this.skipType(t);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this}},function(t,e,r){"use strict";t.exports=function(t){var e=n.codegen(["r","l"],t.name+"$decode")("if(!(r instanceof Reader))")("r=Reader.create(r)")("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(t.fieldsArray.filter(function(t){return t.map}).length?",k":""))("while(r.pos<c){")("var t=r.uint32()");t.group&&e("if((t&7)===4)")("break");e("switch(t>>>3){");for(var r=0;r<t.fieldsArray.length;++r){var a=t._fieldsArray[r].resolve(),f=a.resolvedType instanceof i?"int32":a.type,h="m"+n.safeProp(a.name);e("case %i:",a.id),a.map?(e("r.skip().pos++")("if(%s===util.emptyObject)",h)("%s={}",h)("k=r.%s()",a.keyType)("r.pos++"),void 0!==s.long[a.keyType]?void 0===s.basic[f]?e('%s[typeof k==="object"?util.longToHash(k):k]=types[%i].decode(r,r.uint32())',h,r):e('%s[typeof k==="object"?util.longToHash(k):k]=r.%s()',h,f):void 0===s.basic[f]?e("%s[k]=types[%i].decode(r,r.uint32())",h,r):e("%s[k]=r.%s()",h,f)):a.repeated?(e("if(!(%s&&%s.length))",h,h)("%s=[]",h),void 0!==s.packed[f]&&e("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos<c2)")("%s.push(r.%s())",h,f)("}else"),void 0===s.basic[f]?e(a.resolvedType.group?"%s.push(types[%i].decode(r))":"%s.push(types[%i].decode(r,r.uint32()))",h,r):e("%s.push(r.%s())",h,f)):void 0===s.basic[f]?e(a.resolvedType.group?"%s=types[%i].decode(r)":"%s=types[%i].decode(r,r.uint32())",h,r):e("%s=r.%s()",h,f),e("break")}for(e("default:")("r.skipType(t&7)")("break")("}")("}"),r=0;r<t._fieldsArray.length;++r){var l=t._fieldsArray[r];l.required&&e("if(!m.hasOwnProperty(%j))",l.name)("throw util.ProtocolError(%j,{instance:m})",o(l))}return e("return m")};var i=r(3),s=r(5),n=r(0);function o(t){return"missing required '"+t.name+"'"}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={nested:{com:{nested:{opensource:{nested:{svga:{options:{objc_class_prefix:"SVGAProto",java_package:"com.opensource.svgaplayer"},nested:{MovieParams:{fields:{viewBoxWidth:{type:"float",id:1},viewBoxHeight:{type:"float",id:2},fps:{type:"int32",id:3},frames:{type:"int32",id:4}}},SpriteEntity:{fields:{imageKey:{type:"string",id:1},frames:{rule:"repeated",type:"FrameEntity",id:2}}},Layout:{fields:{x:{type:"float",id:1},y:{type:"float",id:2},width:{type:"float",id:3},height:{type:"float",id:4}}},Transform:{fields:{a:{type:"float",id:1},b:{type:"float",id:2},c:{type:"float",id:3},d:{type:"float",id:4},tx:{type:"float",id:5},ty:{type:"float",id:6}}},ShapeEntity:{oneofs:{args:{oneof:["shape","rect","ellipse"]}},fields:{type:{type:"ShapeType",id:1},shape:{type:"ShapeArgs",id:2},rect:{type:"RectArgs",id:3},ellipse:{type:"EllipseArgs",id:4},styles:{type:"ShapeStyle",id:10},transform:{type:"Transform",id:11}},nested:{ShapeType:{values:{SHAPE:0,RECT:1,ELLIPSE:2,KEEP:3}},ShapeArgs:{fields:{d:{type:"string",id:1}}},RectArgs:{fields:{x:{type:"float",id:1},y:{type:"float",id:2},width:{type:"float",id:3},height:{type:"float",id:4},cornerRadius:{type:"float",id:5}}},EllipseArgs:{fields:{x:{type:"float",id:1},y:{type:"float",id:2},radiusX:{type:"float",id:3},radiusY:{type:"float",id:4}}},ShapeStyle:{fields:{fill:{type:"RGBAColor",id:1},stroke:{type:"RGBAColor",id:2},strokeWidth:{type:"float",id:3},lineCap:{type:"LineCap",id:4},lineJoin:{type:"LineJoin",id:5},miterLimit:{type:"float",id:6},lineDashI:{type:"float",id:7},lineDashII:{type:"float",id:8},lineDashIII:{type:"float",id:9}},nested:{RGBAColor:{fields:{r:{type:"float",id:1},g:{type:"float",id:2},b:{type:"float",id:3},a:{type:"float",id:4}}},LineCap:{values:{LineCap_BUTT:0,LineCap_ROUND:1,LineCap_SQUARE:2}},LineJoin:{values:{LineJoin_MITER:0,LineJoin_ROUND:1,LineJoin_BEVEL:2}}}}}},FrameEntity:{fields:{alpha:{type:"float",id:1},layout:{type:"Layout",id:2},transform:{type:"Transform",id:3},clipPath:{type:"string",id:4},shapes:{rule:"repeated",type:"ShapeEntity",id:5}}},MovieEntity:{fields:{version:{type:"string",id:1},params:{type:"MovieParams",id:2},images:{keyType:"string",type:"bytes",id:3},sprites:{rule:"repeated",type:"SpriteEntity",id:4}}}}}}}}}}}},function(t,e){
|
|
8
|
+
*/(function(module,exports$1){(function(r,g){module.exports=g()})(window,function(){return function(r){var g={};function i(e){if(g[e])return g[e].exports;var o=g[e]={i:e,l:!1,exports:{}};return r[e].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=r,i.c=g,i.d=function(e,o,l){i.o(e,o)||Object.defineProperty(e,o,{enumerable:!0,get:l})},i.r=function(e){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,o){if(1&o&&(e=i(e)),8&o||4&o&&typeof e=="object"&&e&&e.__esModule)return e;var l=Object.create(null);if(i.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:e}),2&o&&typeof e!="string")for(var u in e)i.d(l,u,(function(a){return e[a]}).bind(null,u));return l},i.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(o,"a",o),o},i.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},i.p="",i(i.s=1)}([function(r,g,i){Object.defineProperty(g,"__esModule",{value:!0});var e=function(o,l,u){this._d=o,this._transform=l,this._styles=u};g.default=e},function(r,g,i){Object.defineProperty(g,"__esModule",{value:!0});var e=i(2),o=i(3),l=i(4),u={Downloader:e.default,Parser:o.default,Player:l.default};g.default=u},function(r,g,i){Object.defineProperty(g,"__esModule",{value:!0});var e=function(){function o(){this.request=null}return o.prototype.get=function(l){var u=this;if(!l)throw new Error("download link undefined");return new Promise(function(a,c){var v=new XMLHttpRequest;v.open("GET",l,!0),v.responseType="arraybuffer",v.onloadend=function(){!v.response||v.status!==200&&v.status!==304?c(v):a(v.response)},v.onerror=function(){return c(v.response)},v.send(),u.request=v})},o.prototype.cancel=function(){this.request&&this.request.abort()},o.prototype.destroy=function(){this.request&&this.request.abort()},o}();g.default=e},function(module,exports$1,__webpack_require__){Object.defineProperty(exports$1,"__esModule",{value:!0});var WORKER=`!function(t){var e={};function r(i){if(e[i])return e[i].exports;var s=e[i]={i:i,l:!1,exports:{}};return t[i].call(s.exports,s,s.exports,r),s.l=!0,s.exports}r.m=t,r.c=e,r.d=function(t,e,i){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)r.d(i,s,function(e){return t[e]}.bind(null,s));return i},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=8)}([function(t,e,r){"use strict";var i=t.exports=r(6);i.codegen=r(16),i.toArray=function(t){if(t){for(var e=Object.keys(t),r=new Array(e.length),i=0;i<e.length;)r[i]=t[e[i++]];return r}return[]};var s=/\\\\/g,n=/"/g;i.isReserved=function(t){return/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/.test(t)},i.safeProp=function(t){return!/^[$\\w_]+$/.test(t)||i.isReserved(t)?'["'+t.replace(s,"\\\\\\\\").replace(n,'\\\\"')+'"]':"."+t}},function(t,e,r){"use strict";t.exports=h;var i=r(2);((h.prototype=Object.create(i.prototype)).constructor=h).className="Field";var s,n=r(3),o=r(5),a=r(0),f=/^required|optional|repeated$/;function h(t,e,r,s,n,h,l){if(a.isObject(s)?(l=n,h=s,s=n=void 0):a.isObject(n)&&(l=h,h=n,n=void 0),i.call(this,t,h),!a.isInteger(e)||e<0)throw TypeError("id must be a non-negative integer");if(!a.isString(r))throw TypeError("type must be a string");if(void 0!==s&&!f.test(s=s.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==n&&!a.isString(n))throw TypeError("extend must be a string");this.rule=s&&"optional"!==s?s:void 0,this.type=r,this.id=e,this.extend=n||void 0,this.required="required"===s,this.optional=!this.required,this.repeated="repeated"===s,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!a.Long&&void 0!==o.long[r],this.bytes="bytes"===r,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this._packed=null,this.comment=l}h.fromJSON=function(t,e){return new h(t,e.id,e.type,e.rule,e.extend,e.options,e.comment)},h.prototype.setOption=function(t,e,r){return"packed"===t&&(this._packed=null),i.prototype.setOption.call(this,t,e,r)},h.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=o.defaults[this.type])&&(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof s?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof n&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(!0!==this.options.packed&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof n)||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=a.Long.fromNumber(this.typeDefault,"u"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&"string"==typeof this.typeDefault){var t;a.base64.test(this.typeDefault)?a.base64.decode(this.typeDefault,t=a.newBuffer(a.base64.length(this.typeDefault)),0):a.utf8.write(this.typeDefault,t=a.newBuffer(a.utf8.length(this.typeDefault)),0),this.typeDefault=t}return this.map?this.defaultValue=a.emptyObject:this.repeated?this.defaultValue=a.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof s&&(this.parent.ctor.prototype[this.name]=this.defaultValue),i.prototype.resolve.call(this)},h._configure=function(t){s=t}},function(t,e,r){"use strict";var i;function s(t,e){this.options=e,this.name=t,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}t.exports=s,s.className="ReflectionObject",s.prototype.onAdd=function(t){this.parent&&this.parent!==t&&this.parent.remove(this),this.parent=t,this.resolved=!1;var e=t.root;e instanceof i&&e._handleAdd(this)},s.prototype.resolve=function(){return this.resolved?this:(this.root instanceof i&&(this.resolved=!0),this)},s.prototype.getOption=function(t){if(this.options)return this.options[t]},s._configure=function(t){i=t}},function(t,e,r){"use strict";t.exports=s;var i=r(2);function s(t,e,r,s,n){if(i.call(this,t,r),e&&"object"!=typeof e)throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=s,this.comments=n||{},this.reserved=void 0,e)for(var o=Object.keys(e),a=0;a<o.length;++a)"number"==typeof e[o[a]]&&(this.valuesById[this.values[o[a]]=e[o[a]]]=o[a])}((s.prototype=Object.create(i.prototype)).constructor=s).className="Enum",s.fromJSON=function(t,e){var r=new s(t,e.values,e.options,e.comment,e.comments);return r.reserved=e.reserved,r}},function(t,e,r){"use strict";t.exports=h;var i=r(2);((h.prototype=Object.create(i.prototype)).constructor=h).className="Namespace";var s,n,o,a=r(1),f=r(0);function h(t,e){i.call(this,t,e),this.nested=void 0,this._nestedArray=null}h.fromJSON=function(t,e){return new h(t,e.options).addJSON(e.nested)},h.isReservedId=function(t,e){if(t)for(var r=0;r<t.length;++r)if("string"!=typeof t[r]&&t[r][0]<=e&&t[r][1]>=e)return!0;return!1},h.isReservedName=function(t,e){if(t)for(var r=0;r<t.length;++r)if(t[r]===e)return!0;return!1},Object.defineProperty(h.prototype,"nestedArray",{get:function(){return this._nestedArray||(this._nestedArray=f.toArray(this.nested))}}),h.prototype.addJSON=function(t){if(t)for(var e,r=Object.keys(t),i=0;i<r.length;++i)e=t[r[i]],this.add((void 0!==e.fields?s.fromJSON:void 0!==e.values?o.fromJSON:void 0!==e.methods?n.fromJSON:void 0!==e.id?a.fromJSON:h.fromJSON)(r[i],e));return this},h.prototype.get=function(t){return this.nested&&this.nested[t]||null},h.prototype.add=function(t){if(!(t instanceof a&&void 0!==t.extend||t instanceof s||t instanceof o||t instanceof n||t instanceof h))throw TypeError("object must be a valid nested object");if(this.nested){var e=this.get(t.name);if(e){if(!(e instanceof h&&t instanceof h)||e instanceof s||e instanceof n)throw Error("duplicate name '"+t.name+"' in "+this);for(var r=e.nestedArray,i=0;i<r.length;++i)t.add(r[i]);this.remove(e),this.nested||(this.nested={}),t.setOptions(e.options,!0)}}else this.nested={};return this.nested[t.name]=t,t.onAdd(this),(f=this)._nestedArray=null,f;var f},h.prototype.lookup=function(t,e,r){if("boolean"==typeof e?(r=e,e=void 0):e&&!Array.isArray(e)&&(e=[e]),f.isString(t)&&t.length){if("."===t)return this.root;t=t.split(".")}else if(!t.length)return this;if(""===t[0])return this.root.lookup(t.slice(1),e);var i=this.get(t[0]);if(i){if(1===t.length){if(!e||e.indexOf(i.constructor)>-1)return i}else if(i instanceof h&&(i=i.lookup(t.slice(1),e,!0)))return i}else for(var s=0;s<this.nestedArray.length;++s)if(this._nestedArray[s]instanceof h&&(i=this._nestedArray[s].lookup(t,e,!0)))return i;return null===this.parent||r?null:this.parent.lookup(t,e)},h.prototype.lookupType=function(t){var e=this.lookup(t,[s]);if(!e)throw Error("no such type: "+t);return e},h.prototype.lookupTypeOrEnum=function(t){var e=this.lookup(t,[s,o]);if(!e)throw Error("no such Type or Enum '"+t+"' in "+this);return e},h._configure=function(t,e,r){s=t,n=e,o=r}},function(t,e,r){"use strict";var i=e,s=r(0),n=["double","float","int32","uint32","sint32","fixed32","sfixed32","int64","uint64","sint64","fixed64","sfixed64","bool","string","bytes"];function o(t,e){var r=0,i={};for(e|=0;r<t.length;)i[n[r+e]]=t[r++];return i}i.basic=o([1,5,0,0,0,5,5,0,0,0,1,1,0,2,2]),i.defaults=o([0,0,0,0,0,0,0,0,0,0,0,0,!1,"",s.emptyArray,null]),i.long=o([0,0,0,1,1],7),i.mapKey=o([0,0,0,5,5,0,0,0,1,1,0,2],2),i.packed=o([1,5,0,0,0,5,5,0,0,0,1,1,0])},function(t,e,r){"use strict";var i=e;i.float=r(14),i.utf8=r(15),i.emptyArray=Object.freeze?Object.freeze([]):[],i.emptyObject=Object.freeze?Object.freeze({}):{},i.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},i.isString=function(t){return"string"==typeof t||t instanceof String},i.isObject=function(t){return t&&"object"==typeof t},i.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,i._configure=function(){var t=i.Buffer;t?(i._Buffer_from=t.from!==Uint8Array.from&&t.from||function(e,r){return new t(e,r)},i._Buffer_allocUnsafe=t.allocUnsafe||function(e){return new t(e)}):i._Buffer_from=i._Buffer_allocUnsafe=null}},function(t,e,r){"use strict";t.exports=s;var i=r(4);function s(t,e){i.call(this,t,e),this.methods={},this._methodsArray=null}((s.prototype=Object.create(i.prototype)).constructor=s).className="Service"},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),r(9);var i,s=r(10),n=r(23),o=r(24),a=r(25),f=r(26);self.document?((i=self.SVGAParserMockWorker={}).disableWorker=!0,i.postMessage=function(t){i.onmessageCallback&&i.onmessageCallback(t)}):i=self;var h=s.Root.fromJSON(n.default).lookupType("com.opensource.svga.MovieEntity");i.onmessage=function(t){var e=new o.Zlib.Inflate(new Uint8Array(t.data)).decompress(),r=h.decode(e),s={};for(var n in r.images){var l=r.images[n],u=a.default(l);s[n]=btoa(u)}var p=new f.default(r,s);i.postMessage(p)}},function(t,e,r){"use strict";var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";!self.btoa&&(self.btoa=function(t){for(var e,r,s,n,o="",a=0,f=(t=String(t)).length%3;a<t.length;){if((r=t.charCodeAt(a++))>255||(s=t.charCodeAt(a++))>255||(n=t.charCodeAt(a++))>255)throw new TypeError("Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.");o+=i.charAt((e=r<<16|s<<8|n)>>18&63)+i.charAt(e>>12&63)+i.charAt(e>>6&63)+i.charAt(63&e)}return f?o.slice(0,f-3)+"===".substring(f):o})},function(t,e,r){"use strict";t.exports=r(11)},function(t,e,r){"use strict";(t.exports=r(12)).build="full"},function(t,e,r){"use strict";var i=t.exports=r(13);i.build="light",i.ReflectionObject=r(2),i.Namespace=r(4),i.Root=r(17),i.Enum=r(3),i.Type=r(19),i.Field=r(1),i.Service=r(7),i.ReflectionObject._configure(i.Root),i.Namespace._configure(i.Type,i.Service,i.Enum),i.Root._configure(i.Type),i.Field._configure(i.Type)},function(t,e,r){"use strict";e.build="minimal"},function(t,e,r){"use strict";function i(t){return"undefined"!=typeof Float32Array?function(){var e=new Float32Array([-0]),r=new Uint8Array(e.buffer),i=128===r[3];function s(t,i,s){e[0]=t,i[s]=r[0],i[s+1]=r[1],i[s+2]=r[2],i[s+3]=r[3]}function n(t,i,s){e[0]=t,i[s]=r[3],i[s+1]=r[2],i[s+2]=r[1],i[s+3]=r[0]}function o(t,i){return r[0]=t[i],r[1]=t[i+1],r[2]=t[i+2],r[3]=t[i+3],e[0]}function a(t,i){return r[3]=t[i],r[2]=t[i+1],r[1]=t[i+2],r[0]=t[i+3],e[0]}t.writeFloatLE=i?s:n,t.writeFloatBE=i?n:s,t.readFloatLE=i?o:a,t.readFloatBE=i?a:o}():function(){function e(t,e,r,i){var s=e<0?1:0;if(s&&(e=-e),0===e)t(1/e>0?0:2147483648,r,i);else if(isNaN(e))t(2143289344,r,i);else if(e>34028234663852886e22)t((s<<31|2139095040)>>>0,r,i);else if(e<11754943508222875e-54)t((s<<31|Math.round(e/1401298464324817e-60))>>>0,r,i);else{var n=Math.floor(Math.log(e)/Math.LN2);t((s<<31|n+127<<23|8388607&Math.round(e*Math.pow(2,-n)*8388608))>>>0,r,i)}}function r(t,e,r){var i=t(e,r),s=2*(i>>31)+1,n=i>>>23&255,o=8388607&i;return 255===n?o?NaN:s*(1/0):0===n?1401298464324817e-60*s*o:s*Math.pow(2,n-150)*(o+8388608)}t.writeFloatLE=e.bind(null,s),t.writeFloatBE=e.bind(null,n),t.readFloatLE=r.bind(null,o),t.readFloatBE=r.bind(null,a)}(),"undefined"!=typeof Float64Array?function(){var e=new Float64Array([-0]),r=new Uint8Array(e.buffer),i=128===r[7];function s(t,i,s){e[0]=t,i[s]=r[0],i[s+1]=r[1],i[s+2]=r[2],i[s+3]=r[3],i[s+4]=r[4],i[s+5]=r[5],i[s+6]=r[6],i[s+7]=r[7]}function n(t,i,s){e[0]=t,i[s]=r[7],i[s+1]=r[6],i[s+2]=r[5],i[s+3]=r[4],i[s+4]=r[3],i[s+5]=r[2],i[s+6]=r[1],i[s+7]=r[0]}function o(t,i){return r[0]=t[i],r[1]=t[i+1],r[2]=t[i+2],r[3]=t[i+3],r[4]=t[i+4],r[5]=t[i+5],r[6]=t[i+6],r[7]=t[i+7],e[0]}function a(t,i){return r[7]=t[i],r[6]=t[i+1],r[5]=t[i+2],r[4]=t[i+3],r[3]=t[i+4],r[2]=t[i+5],r[1]=t[i+6],r[0]=t[i+7],e[0]}t.writeDoubleLE=i?s:n,t.writeDoubleBE=i?n:s,t.readDoubleLE=i?o:a,t.readDoubleBE=i?a:o}():function(){function e(t,e,r,i,s,n){var o=i<0?1:0;if(o&&(i=-i),0===i)t(0,s,n+e),t(1/i>0?0:2147483648,s,n+r);else if(isNaN(i))t(0,s,n+e),t(2146959360,s,n+r);else if(i>17976931348623157e292)t(0,s,n+e),t((o<<31|2146435072)>>>0,s,n+r);else{var a;if(i<22250738585072014e-324)t((a=i/5e-324)>>>0,s,n+e),t((o<<31|a/4294967296)>>>0,s,n+r);else{var f=Math.floor(Math.log(i)/Math.LN2);1024===f&&(f=1023),t(4503599627370496*(a=i*Math.pow(2,-f))>>>0,s,n+e),t((o<<31|f+1023<<20|1048576*a&1048575)>>>0,s,n+r)}}}function r(t,e,r,i,s){var n=t(i,s+e),o=t(i,s+r),a=2*(o>>31)+1,f=o>>>20&2047,h=4294967296*(1048575&o)+n;return 2047===f?h?NaN:a*(1/0):0===f?5e-324*a*h:a*Math.pow(2,f-1075)*(h+4503599627370496)}t.writeDoubleLE=e.bind(null,s,0,4),t.writeDoubleBE=e.bind(null,n,4,0),t.readDoubleLE=r.bind(null,o,0,4),t.readDoubleBE=r.bind(null,a,4,0)}(),t}function s(t,e,r){e[r]=255&t,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24}function n(t,e,r){e[r]=t>>>24,e[r+1]=t>>>16&255,e[r+2]=t>>>8&255,e[r+3]=255&t}function o(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}function a(t,e){return(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}t.exports=i(i)},function(t,e,r){"use strict";var i=e;i.length=function(t){for(var e=0,r=0,i=0;i<t.length;++i)(r=t.charCodeAt(i))<128?e+=1:r<2048?e+=2:55296==(64512&r)&&56320==(64512&t.charCodeAt(i+1))?(++i,e+=4):e+=3;return e},i.read=function(t,e,r){if(r-e<1)return"";for(var i,s=null,n=[],o=0;e<r;)(i=t[e++])<128?n[o++]=i:i>191&&i<224?n[o++]=(31&i)<<6|63&t[e++]:i>239&&i<365?(i=((7&i)<<18|(63&t[e++])<<12|(63&t[e++])<<6|63&t[e++])-65536,n[o++]=55296+(i>>10),n[o++]=56320+(1023&i)):n[o++]=(15&i)<<12|(63&t[e++])<<6|63&t[e++],o>8191&&((s||(s=[])).push(String.fromCharCode.apply(String,n)),o=0);return s?(o&&s.push(String.fromCharCode.apply(String,n.slice(0,o))),s.join("")):String.fromCharCode.apply(String,n.slice(0,o))},i.write=function(t,e,r){for(var i,s,n=r,o=0;o<t.length;++o)(i=t.charCodeAt(o))<128?e[r++]=i:i<2048?(e[r++]=i>>6|192,e[r++]=63&i|128):55296==(64512&i)&&56320==(64512&(s=t.charCodeAt(o+1)))?(i=65536+((1023&i)<<10)+(1023&s),++o,e[r++]=i>>18|240,e[r++]=i>>12&63|128,e[r++]=i>>6&63|128,e[r++]=63&i|128):(e[r++]=i>>12|224,e[r++]=i>>6&63|128,e[r++]=63&i|128);return r-n}},function(t,e,r){"use strict";function i(t,e){"string"==typeof t&&(e=t,t=void 0);var r=[];function s(t){if("string"!=typeof t){var e=n();if(i.verbose&&console.log("codegen: "+e),e="return "+e,t){for(var o=Object.keys(t),a=new Array(o.length+1),f=new Array(o.length),h=0;h<o.length;)a[h]=o[h],f[h]=t[o[h++]];return a[h]=e,Function.apply(null,a).apply(null,f)}return Function(e)()}for(var l=new Array(arguments.length-1),u=0;u<l.length;)l[u]=arguments[++u];if(u=0,t=t.replace(/%([%dfijs])/g,function(t,e){var r=l[u++];switch(e){case"d":case"f":return String(Number(r));case"i":return String(Math.floor(r));case"j":return JSON.stringify(r);case"s":return String(r)}return"%"}),u!==l.length)throw Error("parameter count mismatch");return r.push(t),s}function n(i){return"function "+(i||e||"")+"("+(t&&t.join(",")||"")+"){\\n "+r.join("\\n ")+"\\n}"}return s.toString=n,s}t.exports=i,i.verbose=!1},function(t,e,r){"use strict";t.exports=f;var i=r(4);((f.prototype=Object.create(i.prototype)).constructor=f).className="Root";var s,n=r(1),o=r(3),a=r(18);function f(t){i.call(this,"",t),this.deferred=[],this.files=[]}f.fromJSON=function(t,e){return e||(e=new f),t.options&&e.setOptions(t.options),e.addJSON(t.nested)};var h=/^[A-Z]/;function l(t,e){var r=e.parent.lookup(e.extend);if(r){var i=new n(e.fullName,e.id,e.type,e.rule,void 0,e.options);return i.declaringField=e,e.extensionField=i,r.add(i),!0}return!1}f.prototype._handleAdd=function(t){if(t instanceof n)void 0===t.extend||t.extensionField||l(0,t)||this.deferred.push(t);else if(t instanceof o)h.test(t.name)&&(t.parent[t.name]=t.values);else if(!(t instanceof a)){if(t instanceof s)for(var e=0;e<this.deferred.length;)l(0,this.deferred[e])?this.deferred.splice(e,1):++e;for(var r=0;r<t.nestedArray.length;++r)this._handleAdd(t._nestedArray[r]);h.test(t.name)&&(t.parent[t.name]=t)}},f._configure=function(t,e,r){s=t,e,r}},function(t,e,r){"use strict";t.exports=o;var i=r(2);((o.prototype=Object.create(i.prototype)).constructor=o).className="OneOf";var s=r(1),n=r(0);function o(t,e,r,s){if(Array.isArray(e)||(r=e,e=void 0),i.call(this,t,r),void 0!==e&&!Array.isArray(e))throw TypeError("fieldNames must be an Array");this.oneof=e||[],this.fieldsArray=[],this.comment=s}function a(t){if(t.parent)for(var e=0;e<t.fieldsArray.length;++e)t.fieldsArray[e].parent||t.parent.add(t.fieldsArray[e])}o.fromJSON=function(t,e){return new o(t,e.oneof,e.options,e.comment)},o.prototype.toJSON=function(t){var e=!!t&&Boolean(t.keepComments);return n.toObject(["options",this.options,"oneof",this.oneof,"comment",e?this.comment:void 0])},o.prototype.add=function(t){if(!(t instanceof s))throw TypeError("field must be a Field");return t.parent&&t.parent!==this.parent&&t.parent.remove(t),this.oneof.push(t.name),this.fieldsArray.push(t),t.partOf=this,a(this),this},o.prototype.remove=function(t){if(!(t instanceof s))throw TypeError("field must be a Field");var e=this.fieldsArray.indexOf(t);if(e<0)throw Error(t+" is not a member of "+this);return this.fieldsArray.splice(e,1),(e=this.oneof.indexOf(t.name))>-1&&this.oneof.splice(e,1),t.partOf=null,this},o.prototype.onAdd=function(t){i.prototype.onAdd.call(this,t);for(var e=0;e<this.oneof.length;++e){var r=t.get(this.oneof[e]);r&&!r.partOf&&(r.partOf=this,this.fieldsArray.push(r))}a(this)},o.prototype.onRemove=function(t){for(var e,r=0;r<this.fieldsArray.length;++r)(e=this.fieldsArray[r]).parent&&e.parent.remove(e);i.prototype.onRemove.call(this,t)},o.d=function(){for(var t=new Array(arguments.length),e=0;e<arguments.length;)t[e]=arguments[e++];return function(e,r){n.decorateType(e.constructor).add(new o(r,t)),Object.defineProperty(e,r,{get:n.oneOfGetter(t),set:n.oneOfSetter(t)})}}},function(t,e,r){"use strict";t.exports=u;var i=r(4);((u.prototype=Object.create(i.prototype)).constructor=u).className="Type";var s=r(3),n=r(1),o=r(20),a=r(7),f=r(21),h=r(0),l=r(22);function u(t,e){i.call(this,t,e),this.fields={},this.oneofs=void 0,this.extensions=void 0,this.reserved=void 0,this.group=void 0,this._fieldsById=null,this._fieldsArray=null,this._oneofsArray=null,this._ctor=null}Object.defineProperties(u.prototype,{fieldsById:{get:function(){if(this._fieldsById)return this._fieldsById;this._fieldsById={};for(var t=Object.keys(this.fields),e=0;e<t.length;++e){var r=this.fields[t[e]],i=r.id;if(this._fieldsById[i])throw Error("duplicate id "+i+" in "+this);this._fieldsById[i]=r}return this._fieldsById}},fieldsArray:{get:function(){return this._fieldsArray||(this._fieldsArray=h.toArray(this.fields))}},oneofsArray:{get:function(){return this._oneofsArray||(this._oneofsArray=h.toArray(this.oneofs))}},ctor:{get:function(){return this._ctor||(this.ctor=u.generateConstructor(this)())},set:function(t){t.prototype;t.$type=t.prototype.$type=this,this._ctor=t;for(var e=0;e<this.fieldsArray.length;++e)this._fieldsArray[e].resolve();var r={};for(e=0;e<this.oneofsArray.length;++e)r[this._oneofsArray[e].resolve().name]={get:h.oneOfGetter(this._oneofsArray[e].oneof),set:h.oneOfSetter(this._oneofsArray[e].oneof)};e&&Object.defineProperties(t.prototype,r)}}}),u.generateConstructor=function(t){for(var e,r=h.codegen(["p"],t.name),i=0;i<t.fieldsArray.length;++i)(e=t._fieldsArray[i]).map?r("this%s={}",h.safeProp(e.name)):e.repeated&&r("this%s=[]",h.safeProp(e.name));return r("if(p)for(var ks=Object.keys(p),i=0;i<ks.length;++i)if(p[ks[i]]!=null)")("this[ks[i]]=p[ks[i]]")},u.fromJSON=function(t,e){var r=new u(t,e.options);r.extensions=e.extensions,r.reserved=e.reserved;for(var f=Object.keys(e.fields),h=0;h<f.length;++h)r.add((void 0!==e.fields[f[h]].keyType?o.fromJSON:n.fromJSON)(f[h],e.fields[f[h]]));if(e.nested)for(f=Object.keys(e.nested),h=0;h<f.length;++h){var l=e.nested[f[h]];r.add((void 0!==l.id?n.fromJSON:void 0!==l.fields?u.fromJSON:void 0!==l.values?s.fromJSON:void 0!==l.methods?a.fromJSON:i.fromJSON)(f[h],l))}return e.extensions&&e.extensions.length&&(r.extensions=e.extensions),e.reserved&&e.reserved.length&&(r.reserved=e.reserved),e.group&&(r.group=!0),e.comment&&(r.comment=e.comment),r},u.prototype.add=function(t){if(this.get(t.name))throw Error("duplicate name '"+t.name+"' in "+this);if(t instanceof n&&void 0===t.extend){if(this._fieldsById?this._fieldsById[t.id]:this.fieldsById[t.id])throw Error("duplicate id "+t.id+" in "+this);if(this.isReservedId(t.id))throw Error("id "+t.id+" is reserved in "+this);if(this.isReservedName(t.name))throw Error("name '"+t.name+"' is reserved in "+this);return t.parent&&t.parent.remove(t),this.fields[t.name]=t,t.message=this,t.onAdd(this),(e=this)._fieldsById=e._fieldsArray=e._oneofsArray=null,delete e.encode,delete e.decode,delete e.verify,e}var e;return i.prototype.add.call(this,t)},u.prototype.isReservedId=function(t){return i.isReservedId(this.reserved,t)},u.prototype.isReservedName=function(t){return i.isReservedName(this.reserved,t)},u.prototype.setup=function(){this.fullName;for(var t=[],e=0;e<this.fieldsArray.length;++e)t.push(this._fieldsArray[e].resolve().resolvedType);return this.decode=l(this)({Reader:f,types:t,util:h}),this},u.prototype.decode=function(t,e){return this.setup().decode(t,e)}},function(t,e,r){"use strict";t.exports=n;var i=r(1);((n.prototype=Object.create(i.prototype)).constructor=n).className="MapField";r(5);var s=r(0);function n(t,e,r,n,o,a){if(i.call(this,t,e,n,void 0,void 0,o,a),!s.isString(r))throw TypeError("keyType must be a string");this.keyType=r,this.resolvedKeyType=null,this.map=!0}n.fromJSON=function(t,e){return new n(t,e.id,e.keyType,e.type,e.options,e.comment)}},function(t,e,r){"use strict";t.exports=o;var i=r(6),s=(i.LongBits,i.utf8);function n(t,e){return RangeError("index out of range: "+t.pos+" + "+(e||1)+" > "+t.len)}function o(t){this.buf=t,this.pos=0,this.len=t.length}var a,f="undefined"!=typeof Uint8Array?function(t){if(t instanceof Uint8Array||Array.isArray(t))return new o(t);throw Error("illegal buffer")}:function(t){if(Array.isArray(t))return new o(t);throw Error("illegal buffer")};function h(t,e){return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0}o.create=i.Buffer?function(t){return(o.create=function(t){return i.Buffer.isBuffer(t)?new(void 0)(t):f(t)})(t)}:f,o.prototype._slice=i.Array.prototype.subarray||i.Array.prototype.slice,o.prototype.uint32=(a=4294967295,function(){if(a=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return a;if(a=(a|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return a;if(a=(a|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return a;if(a=(a|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return a;if(a=(a|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return a;if((this.pos+=5)>this.len)throw this.pos=this.len,n(this,10);return a}),o.prototype.int32=function(){return 0|this.uint32()},o.prototype.sint32=function(){var t=this.uint32();return t>>>1^-(1&t)|0},o.prototype.bool=function(){return 0!==this.uint32()},o.prototype.fixed32=function(){if(this.pos+4>this.len)throw n(this,4);return h(this.buf,this.pos+=4)},o.prototype.sfixed32=function(){if(this.pos+4>this.len)throw n(this,4);return 0|h(this.buf,this.pos+=4)},o.prototype.float=function(){if(this.pos+4>this.len)throw n(this,4);var t=i.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t},o.prototype.double=function(){if(this.pos+8>this.len)throw n(this,4);var t=i.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t},o.prototype.bytes=function(){var t=this.uint32(),e=this.pos,r=this.pos+t;if(r>this.len)throw n(this,t);return this.pos+=t,Array.isArray(this.buf)?this.buf.slice(e,r):e===r?new this.buf.constructor(0):this._slice.call(this.buf,e,r)},o.prototype.string=function(){var t=this.bytes();return s.read(t,0,t.length)},o.prototype.skip=function(t){if("number"==typeof t){if(this.pos+t>this.len)throw n(this,t);this.pos+=t}else do{if(this.pos>=this.len)throw n(this)}while(128&this.buf[this.pos++]);return this},o.prototype.skipType=function(t){switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(t=7&this.uint32());)this.skipType(t);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this}},function(t,e,r){"use strict";t.exports=function(t){var e=n.codegen(["r","l"],t.name+"$decode")("if(!(r instanceof Reader))")("r=Reader.create(r)")("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(t.fieldsArray.filter(function(t){return t.map}).length?",k":""))("while(r.pos<c){")("var t=r.uint32()");t.group&&e("if((t&7)===4)")("break");e("switch(t>>>3){");for(var r=0;r<t.fieldsArray.length;++r){var a=t._fieldsArray[r].resolve(),f=a.resolvedType instanceof i?"int32":a.type,h="m"+n.safeProp(a.name);e("case %i:",a.id),a.map?(e("r.skip().pos++")("if(%s===util.emptyObject)",h)("%s={}",h)("k=r.%s()",a.keyType)("r.pos++"),void 0!==s.long[a.keyType]?void 0===s.basic[f]?e('%s[typeof k==="object"?util.longToHash(k):k]=types[%i].decode(r,r.uint32())',h,r):e('%s[typeof k==="object"?util.longToHash(k):k]=r.%s()',h,f):void 0===s.basic[f]?e("%s[k]=types[%i].decode(r,r.uint32())",h,r):e("%s[k]=r.%s()",h,f)):a.repeated?(e("if(!(%s&&%s.length))",h,h)("%s=[]",h),void 0!==s.packed[f]&&e("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos<c2)")("%s.push(r.%s())",h,f)("}else"),void 0===s.basic[f]?e(a.resolvedType.group?"%s.push(types[%i].decode(r))":"%s.push(types[%i].decode(r,r.uint32()))",h,r):e("%s.push(r.%s())",h,f)):void 0===s.basic[f]?e(a.resolvedType.group?"%s=types[%i].decode(r)":"%s=types[%i].decode(r,r.uint32())",h,r):e("%s=r.%s()",h,f),e("break")}for(e("default:")("r.skipType(t&7)")("break")("}")("}"),r=0;r<t._fieldsArray.length;++r){var l=t._fieldsArray[r];l.required&&e("if(!m.hasOwnProperty(%j))",l.name)("throw util.ProtocolError(%j,{instance:m})",o(l))}return e("return m")};var i=r(3),s=r(5),n=r(0);function o(t){return"missing required '"+t.name+"'"}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={nested:{com:{nested:{opensource:{nested:{svga:{options:{objc_class_prefix:"SVGAProto",java_package:"com.opensource.svgaplayer"},nested:{MovieParams:{fields:{viewBoxWidth:{type:"float",id:1},viewBoxHeight:{type:"float",id:2},fps:{type:"int32",id:3},frames:{type:"int32",id:4}}},SpriteEntity:{fields:{imageKey:{type:"string",id:1},frames:{rule:"repeated",type:"FrameEntity",id:2}}},Layout:{fields:{x:{type:"float",id:1},y:{type:"float",id:2},width:{type:"float",id:3},height:{type:"float",id:4}}},Transform:{fields:{a:{type:"float",id:1},b:{type:"float",id:2},c:{type:"float",id:3},d:{type:"float",id:4},tx:{type:"float",id:5},ty:{type:"float",id:6}}},ShapeEntity:{oneofs:{args:{oneof:["shape","rect","ellipse"]}},fields:{type:{type:"ShapeType",id:1},shape:{type:"ShapeArgs",id:2},rect:{type:"RectArgs",id:3},ellipse:{type:"EllipseArgs",id:4},styles:{type:"ShapeStyle",id:10},transform:{type:"Transform",id:11}},nested:{ShapeType:{values:{SHAPE:0,RECT:1,ELLIPSE:2,KEEP:3}},ShapeArgs:{fields:{d:{type:"string",id:1}}},RectArgs:{fields:{x:{type:"float",id:1},y:{type:"float",id:2},width:{type:"float",id:3},height:{type:"float",id:4},cornerRadius:{type:"float",id:5}}},EllipseArgs:{fields:{x:{type:"float",id:1},y:{type:"float",id:2},radiusX:{type:"float",id:3},radiusY:{type:"float",id:4}}},ShapeStyle:{fields:{fill:{type:"RGBAColor",id:1},stroke:{type:"RGBAColor",id:2},strokeWidth:{type:"float",id:3},lineCap:{type:"LineCap",id:4},lineJoin:{type:"LineJoin",id:5},miterLimit:{type:"float",id:6},lineDashI:{type:"float",id:7},lineDashII:{type:"float",id:8},lineDashIII:{type:"float",id:9}},nested:{RGBAColor:{fields:{r:{type:"float",id:1},g:{type:"float",id:2},b:{type:"float",id:3},a:{type:"float",id:4}}},LineCap:{values:{LineCap_BUTT:0,LineCap_ROUND:1,LineCap_SQUARE:2}},LineJoin:{values:{LineJoin_MITER:0,LineJoin_ROUND:1,LineJoin_BEVEL:2}}}}}},FrameEntity:{fields:{alpha:{type:"float",id:1},layout:{type:"Layout",id:2},transform:{type:"Transform",id:3},clipPath:{type:"string",id:4},shapes:{rule:"repeated",type:"ShapeEntity",id:5}}},MovieEntity:{fields:{version:{type:"string",id:1},params:{type:"MovieParams",id:2},images:{keyType:"string",type:"bytes",id:3},sprites:{rule:"repeated",type:"SpriteEntity",id:4}}}}}}}}}}}},function(t,e){
|
|
9
9
|
/** @license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */
|
|
10
|
-
(function(){"use strict";var t=void 0,e=this;function r(r,i){var s,n=r.split("."),o=e;!(n[0]in o)&&o.execScript&&o.execScript("var "+n[0]);for(;n.length&&(s=n.shift());)n.length||i===t?o=o[s]?o[s]:o[s]={}:o[s]=i}var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array&&"undefined"!=typeof DataView;function s(t){var e,r,s,n,o,a,f,h,l,u,p=t.length,d=0,c=Number.POSITIVE_INFINITY;for(h=0;h<p;++h)t[h]>d&&(d=t[h]),t[h]<c&&(c=t[h]);for(e=1<<d,r=new(i?Uint32Array:Array)(e),s=1,n=0,o=2;s<=d;){for(h=0;h<p;++h)if(t[h]===s){for(a=0,f=n,l=0;l<s;++l)a=a<<1|1&f,f>>=1;for(u=s<<16|h,l=a;l<e;l+=o)r[l]=u;++n}++s,n<<=1,o<<=1}return[r,d,c]}function n(t,e){switch(this.g=[],this.h=32768,this.d=this.f=this.a=this.l=0,this.input=i?new Uint8Array(t):t,this.m=!1,this.i=a,this.r=!1,!e&&(e={})||(e.index&&(this.a=e.index),e.bufferSize&&(this.h=e.bufferSize),e.bufferType&&(this.i=e.bufferType),e.resize&&(this.r=e.resize)),this.i){case o:this.b=32768,this.c=new(i?Uint8Array:Array)(32768+this.h+258);break;case a:this.b=0,this.c=new(i?Uint8Array:Array)(this.h),this.e=this.z,this.n=this.v,this.j=this.w;break;default:throw Error("invalid inflate mode")}}var o=0,a=1,f={t:o,s:a};n.prototype.k=function(){for(;!this.m;){var e=S(this,3);switch(1&e&&(this.m=!0),e>>>=1){case 0:var r=this.input,n=this.a,f=this.c,h=this.b,l=r.length,u=t,d=f.length,c=t;if(this.d=this.f=0,n+1>=l)throw Error("invalid uncompressed block header: LEN");if(u=r[n++]|r[n++]<<8,n+1>=l)throw Error("invalid uncompressed block header: NLEN");if(u===~(r[n++]|r[n++]<<8))throw Error("invalid uncompressed block header: length verify");if(n+u>r.length)throw Error("input buffer is broken");switch(this.i){case o:for(;h+u>f.length;){if(u-=c=d-h,i)f.set(r.subarray(n,n+c),h),h+=c,n+=c;else for(;c--;)f[h++]=r[n++];this.b=h,f=this.e(),h=this.b}break;case a:for(;h+u>f.length;)f=this.e({p:2});break;default:throw Error("invalid inflate mode")}if(i)f.set(r.subarray(n,n+u),h),h+=u,n+=u;else for(;u--;)f[h++]=r[n++];this.a=n,this.b=h,this.c=f;break;case 1:this.j(_,x);break;case 2:var y,v,m,b,g=S(this,5)+257,A=S(this,5)+1,w=S(this,4)+4,k=new(i?Uint8Array:Array)(p.length),O=t,E=t,T=t,N=t,I=t;for(I=0;I<w;++I)k[p[I]]=S(this,3);if(!i)for(I=w,w=k.length;I<w;++I)k[p[I]]=0;for(y=s(k),O=new(i?Uint8Array:Array)(g+A),I=0,b=g+A;I<b;)switch(E=j(this,y),E){case 16:for(N=3+S(this,2);N--;)O[I++]=T;break;case 17:for(N=3+S(this,3);N--;)O[I++]=0;T=0;break;case 18:for(N=11+S(this,7);N--;)O[I++]=0;T=0;break;default:T=O[I++]=E}v=s(i?O.subarray(0,g):O.slice(0,g)),m=s(i?O.subarray(g):O.slice(g)),this.j(v,m);break;default:throw Error("unknown BTYPE: "+e)}}return this.n()};var h,l,u=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],p=i?new Uint16Array(u):u,d=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,258,258],c=i?new Uint16Array(d):d,y=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0],v=i?new Uint8Array(y):y,m=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],b=i?new Uint16Array(m):m,g=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],A=i?new Uint8Array(g):g,w=new(i?Uint8Array:Array)(288);for(h=0,l=w.length;h<l;++h)w[h]=143>=h?8:255>=h?9:279>=h?7:8;var k,O,_=s(w),E=new(i?Uint8Array:Array)(30);for(k=0,O=E.length;k<O;++k)E[k]=5;var x=s(E);function S(t,e){for(var r,i=t.f,s=t.d,n=t.input,o=t.a,a=n.length;s<e;){if(o>=a)throw Error("input buffer is broken");i|=n[o++]<<s,s+=8}return r=i&(1<<e)-1,t.f=i>>>e,t.d=s-e,t.a=o,r}function j(t,e){for(var r,i,s=t.f,n=t.d,o=t.input,a=t.a,f=o.length,h=e[0],l=e[1];n<l&&!(a>=f);)s|=o[a++]<<n,n+=8;if((i=(r=h[s&(1<<l)-1])>>>16)>n)throw Error("invalid code length: "+i);return t.f=s>>i,t.d=n-i,t.a=a,65535&r}function T(t,e){var r,i;switch(this.input=t,this.a=0,!e&&(e={})||(e.index&&(this.a=e.index),e.verify&&(this.A=e.verify)),r=t[this.a++],i=t[this.a++],15&r){case N:this.method=N;break;default:throw Error("unsupported compression method")}if(0!=((r<<8)+i)%31)throw Error("invalid fcheck flag:"+((r<<8)+i)%31);if(32&i)throw Error("fdict flag is not supported");this.q=new n(t,{index:this.a,bufferSize:e.bufferSize,bufferType:e.bufferType,resize:e.resize})}n.prototype.j=function(t,e){var r=this.c,i=this.b;this.o=t;for(var s,n,o,a,f=r.length-258;256!==(s=j(this,t));)if(256>s)i>=f&&(this.b=i,r=this.e(),i=this.b),r[i++]=s;else for(a=c[n=s-257],0<v[n]&&(a+=S(this,v[n])),s=j(this,e),o=b[s],0<A[s]&&(o+=S(this,A[s])),i>=f&&(this.b=i,r=this.e(),i=this.b);a--;)r[i]=r[i++-o];for(;8<=this.d;)this.d-=8,this.a--;this.b=i},n.prototype.w=function(t,e){var r=this.c,i=this.b;this.o=t;for(var s,n,o,a,f=r.length;256!==(s=j(this,t));)if(256>s)i>=f&&(f=(r=this.e()).length),r[i++]=s;else for(a=c[n=s-257],0<v[n]&&(a+=S(this,v[n])),s=j(this,e),o=b[s],0<A[s]&&(o+=S(this,A[s])),i+a>f&&(f=(r=this.e()).length);a--;)r[i]=r[i++-o];for(;8<=this.d;)this.d-=8,this.a--;this.b=i},n.prototype.e=function(){var t,e,r=new(i?Uint8Array:Array)(this.b-32768),s=this.b-32768,n=this.c;if(i)r.set(n.subarray(32768,r.length));else for(t=0,e=r.length;t<e;++t)r[t]=n[t+32768];if(this.g.push(r),this.l+=r.length,i)n.set(n.subarray(s,s+32768));else for(t=0;32768>t;++t)n[t]=n[s+t];return this.b=32768,n},n.prototype.z=function(t){var e,r,s,n=this.input.length/this.a+1|0,o=this.input,a=this.c;return t&&("number"==typeof t.p&&(n=t.p),"number"==typeof t.u&&(n+=t.u)),2>n?r=(s=(o.length-this.a)/this.o[2]/2*258|0)<a.length?a.length+s:a.length<<1:r=a.length*n,i?(e=new Uint8Array(r)).set(a):e=a,this.c=e},n.prototype.n=function(){var t,e,r,s,n,o=0,a=this.c,f=this.g,h=new(i?Uint8Array:Array)(this.l+(this.b-32768));if(0===f.length)return i?this.c.subarray(32768,this.b):this.c.slice(32768,this.b);for(e=0,r=f.length;e<r;++e)for(s=0,n=(t=f[e]).length;s<n;++s)h[o++]=t[s];for(e=32768,r=this.b;e<r;++e)h[o++]=a[e];return this.g=[],this.buffer=h},n.prototype.v=function(){var t,e=this.b;return i?this.r?(t=new Uint8Array(e)).set(this.c.subarray(0,e)):t=this.c.subarray(0,e):(this.c.length>e&&(this.c.length=e),t=this.c),this.buffer=t},T.prototype.k=function(){var t,e,r=this.input;if(t=this.q.k(),this.a=this.q.a,this.A){e=(r[this.a++]<<24|r[this.a++]<<16|r[this.a++]<<8|r[this.a++])>>>0;var i=t;if("string"==typeof i){var s,n,o=i.split("");for(s=0,n=o.length;s<n;s++)o[s]=(255&o[s].charCodeAt(0))>>>0;i=o}for(var a,f=1,h=0,l=i.length,u=0;0<l;){l-=a=1024<l?1024:l;do{h+=f+=i[u++]}while(--a);f%=65521,h%=65521}if(e!==(h<<16|f)>>>0)throw Error("invalid adler-32 checksum")}return t};var N=8;r("Zlib.Inflate",T),r("Zlib.Inflate.prototype.decompress",T.prototype.k);var I,B,F,D,M={ADAPTIVE:f.s,BLOCK:f.t};if(Object.keys)I=Object.keys(M);else for(B in I=[],F=0,M)I[F++]=B;for(F=0,D=I.length;F<D;++F)r("Zlib.Inflate.BufferType."+(B=I[F]),M[B])}).call(this)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){for(var e=[],r=0;r<t.length;r+=32768)e.push(String.fromCharCode.apply(null,t.subarray(r,r+32768)));return e.join("")}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(27),s=function(t,e){this.videoSize={width:0,height:0},this.images={},this.dynamicElements={},this.sprites=[],this.version=t.version,this.videoSize.width=t.params.viewBoxWidth||0,this.videoSize.height=t.params.viewBoxHeight||0,this.FPS=t.params.fps||20,this.frames=t.params.frames||0,t.sprites instanceof Array&&(this.sprites=t.sprites.map(function(t){return new i.default(t)})),e&&(this.images=e)};e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(28),s=function(t){this.frames=[],this.imageKey=t.imageKey,t.frames&&(this.frames=t.frames.map(function(t){return new i.default(t)}))};e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(29),s=function(t,e,r,i,s,n){return{a:t,b:e,c:r,d:i,tx:s,ty:n}},n=function(t,e,r,i){return{x:t,y:e,width:r,height:i}},o=function(){function t(e){this.alpha=0,this.transform=s(1,0,0,1,0,0),this.nx=0,this.ny=0,this.layout=n(0,0,0,0),this.shapes=[],this.alpha=parseFloat(e.alpha)||0,e.layout&&(this.layout=n(parseFloat(e.layout.x)||0,parseFloat(e.layout.y)||0,parseFloat(e.layout.width)||0,parseFloat(e.layout.height)||0)),e.transform&&(this.transform=s(parseFloat(e.transform.a)||1,parseFloat(e.transform.b)||0,parseFloat(e.transform.c)||0,parseFloat(e.transform.d)||1,parseFloat(e.transform.tx)||0,parseFloat(e.transform.ty)||0)),e.clipPath&&e.clipPath.length>0&&(this.maskPath=new i.default(e.clipPath,void 0,{fill:"#000000"})),e.shapes&&(e.shapes instanceof Array&&e.shapes.forEach(function(t){switch(t.pathArgs=t.args,t.type){case 0:t.type="shape",t.pathArgs=t.shape;break;case 1:t.type="rect",t.pathArgs=t.rect;break;case 2:t.type="ellipse",t.pathArgs=t.ellipse;break;case 3:t.type="keep"}if(t.styles){t.styles.fill&&("number"==typeof t.styles.fill.r&&(t.styles.fill[0]=t.styles.fill.r),"number"==typeof t.styles.fill.g&&(t.styles.fill[1]=t.styles.fill.g),"number"==typeof t.styles.fill.b&&(t.styles.fill[2]=t.styles.fill.b),"number"==typeof t.styles.fill.a&&(t.styles.fill[3]=t.styles.fill.a)),t.styles.stroke&&("number"==typeof t.styles.stroke.r&&(t.styles.stroke[0]=t.styles.stroke.r),"number"==typeof t.styles.stroke.g&&(t.styles.stroke[1]=t.styles.stroke.g),"number"==typeof t.styles.stroke.b&&(t.styles.stroke[2]=t.styles.stroke.b),"number"==typeof t.styles.stroke.a&&(t.styles.stroke[3]=t.styles.stroke.a));var e=t.styles.lineDash||[];switch(t.styles.lineDashI>0&&e.push(t.styles.lineDashI),t.styles.lineDashII>0&&(e.length<1&&e.push(0),e.push(t.styles.lineDashII),e.push(0)),t.styles.lineDashIII>0&&(e.length<2&&(e.push(0),e.push(0)),e[2]=t.styles.lineDashIII),t.styles.lineDash=e,t.styles.lineJoin){case 0:t.styles.lineJoin="miter";break;case 1:t.styles.lineJoin="round";break;case 2:t.styles.lineJoin="bevel"}switch(t.styles.lineCap){case 0:t.styles.lineCap="butt";break;case 1:t.styles.lineCap="round";break;case 2:t.styles.lineCap="square"}}}),e.shapes[0]&&"keep"===e.shapes[0].type?this.shapes=t.lastShapes:(t.lastShapes=e.shapes,this.shapes=e.shapes));var r=this.transform.a*this.layout.x+this.transform.c*this.layout.y+this.transform.tx,o=this.transform.a*(this.layout.x+this.layout.width)+this.transform.c*this.layout.y+this.transform.tx,a=this.transform.a*this.layout.x+this.transform.c*(this.layout.y+this.layout.height)+this.transform.tx,f=this.transform.a*(this.layout.x+this.layout.width)+this.transform.c*(this.layout.y+this.layout.height)+this.transform.tx,h=this.transform.b*this.layout.x+this.transform.d*this.layout.y+this.transform.ty,l=this.transform.b*(this.layout.x+this.layout.width)+this.transform.d*this.layout.y+this.transform.ty,u=this.transform.b*this.layout.x+this.transform.d*(this.layout.y+this.layout.height)+this.transform.ty,p=this.transform.b*(this.layout.x+this.layout.width)+this.transform.d*(this.layout.y+this.layout.height)+this.transform.ty;this.nx=Math.min(Math.min(a,f),Math.min(r,o)),this.ny=Math.min(Math.min(u,p),Math.min(h,l))}return t.lastShapes="",t}();e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t,e,r){this._d=t,this._transform=e,this._styles=r};e.default=i}]);`,Parser=function(){function Parser(_a){var disableWorker=(_a===void 0?{disableWorker:!1}:_a).disableWorker;disableWorker?(eval(WORKER),this.worker=window.SVGAParserMockWorker):this.worker=new Worker(window.URL.createObjectURL(new Blob([WORKER])))}return Parser.prototype.do=function(o){var m=this,n=new Uint8Array(o,0,4);if(n[0]==80&&n[1]==75&&n[2]==3&&n[3]==4)throw"this parser not support version@1.x of svga.";if(!o)throw new Error("Parser Data not found");if(!this.worker)throw new Error("Parser Worker not found");return new Promise(function(t,r){var u;m.worker.disableWorker?((u=m.worker).onmessageCallback=function(a){t(a)},u.onmessage({data:o})):((u=m.worker).postMessage(o),u.onmessage=function(a){var s=a.data;t(s)})})},Parser.prototype.destroy=function(){var o=this.worker;o.terminate&&o.terminate()},Parser}();exports$1.default=Parser},function(o,m,n){Object.defineProperty(m,"__esModule",{value:!0});var t,r,u,a=n(5),s=n(9);(function(l){l.START="start",l.RESUME="resume",l.PROCESS="process",l.PAUSE="pause",l.STOP="stop",l.END="end",l.CLEAR="clear"})(t||(t={})),function(l){l.FORWARDS="forwards",l.BACKWARDS="backwards"}(r||(r={})),function(l){l.FORWARDS="forwards",l.FALLBACKS="fallbacks"}(u||(u={}));var v=typeof window<"u"&&"IntersectionObserver"in window,h=function(){function l(i,f,c){if(this.videoItem=f,this.loop=!0,this.fillMode=r.FORWARDS,this.playMode=u.FORWARDS,this.progress=0,this.currentFrame=0,this.totalFramesCount=0,this.startFrame=0,this.endFrame=0,this.cacheFrames=!1,this.intersectionObserverRender=!1,this.intersectionObserverRenderShow=!0,this._intersectionObserver=null,this.$onEvent={start:function(){},resume:function(){},process:function(){},pause:function(){},stop:function(){},end:function(){},clear:function(){}},this.container=typeof i=="string"?document.body.querySelector(i):i,!this.container)throw new Error("container undefined.");if(!this.container.getContext)throw new Error("container should be HTMLCanvasElement.");this._renderer=new a.default(this),this._animator=new s.default,this.videoItem&&this.mount(f),c&&this.set(c)}return l.prototype.set=function(i){var f=this;i.loop!==void 0&&(this.loop=i.loop),i.fillMode&&(this.fillMode=i.fillMode),i.playMode&&(this.playMode=i.playMode),i.cacheFrames!==void 0&&(this.cacheFrames=i.cacheFrames),this.startFrame=i.startFrame?i.startFrame:this.startFrame,this.endFrame=i.endFrame?i.endFrame:this.endFrame,i.intersectionObserverRender!==void 0&&(this.intersectionObserverRender=i.intersectionObserverRender),v&&this.intersectionObserverRender?(this._intersectionObserver=new IntersectionObserver(function(c){c[0].intersectionRatio<=0?f.intersectionObserverRenderShow&&(f.intersectionObserverRenderShow=!1):!f.intersectionObserverRenderShow&&(f.intersectionObserverRenderShow=!0)},{rootMargin:"0px",threshold:[0,.5,1]}),this._intersectionObserver.observe(this.container)):(this._intersectionObserver&&this._intersectionObserver.disconnect(),this.intersectionObserverRender=!1,this.intersectionObserverRenderShow=!0),this._animator.noExecutionDelay=i.noExecutionDelay},l.prototype.mount=function(i){var f=this;return new Promise(function(c,_){f.currentFrame=0,f.progress=0,f.totalFramesCount=i.frames-1,f.videoItem=i,f._renderer.prepare().then(c),f._renderer.clear(),f._setSize()})},l.prototype.start=function(){if(!this.videoItem)throw new Error("video item undefined.");this._renderer.clear(),this._startAnimation(),this.$onEvent.start()},l.prototype.resume=function(){if(!this.videoItem)throw new Error("video item undefined.");this._startAnimation(),this.$onEvent.resume()},l.prototype.pause=function(){this._animator&&this._animator.stop(),this.$onEvent.pause()},l.prototype.stop=function(){this._animator&&this._animator.stop(),this.currentFrame=0,this._renderer.drawFrame(this.currentFrame),this.$onEvent.stop()},l.prototype.clear=function(){this._animator&&this._animator.stop(),this._renderer.clear(),this.$onEvent.clear()},l.prototype.destroy=function(){this._animator&&this._animator.stop(),this._renderer.clear(),this._animator=null,this._renderer=null,this.videoItem=null},l.prototype.$on=function(i,f){var c=this;return this.$onEvent[i]=f,i==="end"&&(this._animator.onEnd=function(){return c.$onEvent.end()}),this},l.prototype._startAnimation=function(){var i=this,f=this,c=f.playMode,_=f.totalFramesCount,y=f.startFrame,d=f.endFrame,p=f.videoItem;this.currentFrame===_&&(this.currentFrame=y||0),this._animator.startValue=c==="fallbacks"?d||_:y||0,this._animator.endValue=c==="fallbacks"?y||0:d||_;var e=p.frames;d>0&&d>y?e=d-y:d<=0&&y>0&&(e=p.frames-y),this._animator.duration=e*(1/p.FPS)*1e3,this._animator.loop=this.loop===!0||this.loop<=0?1/0:this.loop===!1?1:this.loop,this._animator.fillRule=this.fillMode==="backwards"?1:0,this._animator.onUpdate=function(x){x=Math.floor(x),i.currentFrame!==x&&(i.currentFrame=x,i.progress=parseFloat((x+1).toString())/parseFloat(p.frames.toString())*100,i._renderer.drawFrame(i.currentFrame),i.$onEvent.process())},this._animator.start(this.currentFrame)},l.prototype._setSize=function(){var i=this.videoItem.videoSize;this.container.width=i.width,this.container.height=i.height},l}();m.default=h},function(o,m,n){Object.defineProperty(m,"__esModule",{value:!0});var t=n(6),r=function(){function u(a){this._bitmapCache={},this._dynamicElements={},this._frames={},this._player=a;var s=this._player.container;this._ofsCanvas=window.OffscreenCanvas?new window.OffscreenCanvas(s.width,s.height):document.createElement("canvas")}return u.prototype.prepare=function(){var a=this;return new Promise(function(s,v){if(a._bitmapCache={},a._player.videoItem.images&&Object.keys(a._player.videoItem.images).length!=0){a._player.videoItem.dynamicElements&&(a._dynamicElements=a._player.videoItem.dynamicElements);var h=0,l=0;for(var i in a._player.videoItem.images){var f=a._player.videoItem.images[i];if(typeof f!="string"||f.indexOf("iVBO")!==0&&f.indexOf("/9j/2w")!==0)a._bitmapCache[i]=f;else{h++;var c=document.createElement("img");c.src="data:image/png;base64,"+f,a._bitmapCache[i]=c,c.onload=function(){++l===h&&s()}}}}else s()})},u.prototype.clear=function(){this._player.container.width=this._player.container.width},u.prototype.drawFrame=function(a){var s=this._player;if(!s.intersectionObserverRender||s.intersectionObserverRenderShow){this.clear();var v=s.container.getContext("2d");if(this._player.cacheFrames&&this._frames[a]){var h=this._frames[a];v.drawImage(h,0,0,h.width,h.height,0,0,h.width,h.height)}else{var l=this._ofsCanvas;if(l.width=this._player.container.width,l.height=this._player.container.height,t.default(l,this._bitmapCache,this._dynamicElements,this._player.videoItem,this._player.currentFrame),v.drawImage(l,0,0,l.width,l.height,0,0,l.width,l.height),this._player.cacheFrames)if("toDataURL"in l){var i=l.toDataURL(),f=new Image;f.src=i,this._frames[a]=f}else this._frames[a]=l.transferToImageBitmap()}}},u}();m.default=r},function(o,m,n){Object.defineProperty(m,"__esModule",{value:!0}),m.default=void 0;var t=a(n(0)),r=a(n(7)),u=a(n(8));function a(i){return i&&i.__esModule?i:{default:i}}var s="MLHVCSQRZmlhvcsqrz";function v(i,f){var c=f._styles;c!==void 0&&(c&&c.stroke?i.strokeStyle="rgba(".concat(parseInt((255*c.stroke[0]).toString()),", ").concat(parseInt((255*c.stroke[1]).toString()),", ").concat(parseInt((255*c.stroke[2]).toString()),", ").concat(c.stroke[3],")"):i.strokeStyle="transparent",c&&(i.lineWidth=c.strokeWidth||void 0,i.lineCap=c.lineCap||void 0,i.lineJoin=c.lineJoin||void 0,i.miterLimit=c.miterLimit||void 0),c&&c.fill?i.fillStyle="rgba(".concat(parseInt((255*c.fill[0]).toString()),", ").concat(parseInt((255*c.fill[1]).toString()),", ").concat(parseInt((255*c.fill[2]).toString()),", ").concat(c.fill[3],")"):i.fillStyle="transparent",c&&c.lineDash&&i.setLineDash(c.lineDash))}function h(i,f){i.save(),v(i,f),f._transform!==void 0&&f._transform!==null&&i.transform(f._transform.a||1,f._transform.b||0,f._transform.c||0,f._transform.d||1,f._transform.tx||0,f._transform.ty||0);var c={x:0,y:0,x1:0,y1:0,x2:0,y2:0};i.beginPath(),f._d.replace(/([a-zA-Z])/g,"|||$1 ").replace(/,/g," ").split("|||").forEach(function(_){if(_.length!=0){var y=_.substr(0,1);if(s.indexOf(y)>=0){var d=_.substr(1).trim().split(" ");(function(p,e,x,g){switch(x){case"M":e.x=Number(g[0]),e.y=Number(g[1]),p.moveTo(e.x,e.y);break;case"m":e.x+=Number(g[0]),e.y+=Number(g[1]),p.moveTo(e.x,e.y);break;case"L":e.x=Number(g[0]),e.y=Number(g[1]),p.lineTo(e.x,e.y);break;case"l":e.x+=Number(g[0]),e.y+=Number(g[1]),p.lineTo(e.x,e.y);break;case"H":e.x=Number(g[0]),p.lineTo(e.x,e.y);break;case"h":e.x+=Number(g[0]),p.lineTo(e.x,e.y);break;case"V":e.y=Number(g[0]),p.lineTo(e.x,e.y);break;case"v":e.y+=Number(g[0]),p.lineTo(e.x,e.y);break;case"C":e.x1=Number(g[0]),e.y1=Number(g[1]),e.x2=Number(g[2]),e.y2=Number(g[3]),e.x=Number(g[4]),e.y=Number(g[5]),p.bezierCurveTo(e.x1,e.y1,e.x2,e.y2,e.x,e.y);break;case"c":e.x1=e.x+Number(g[0]),e.y1=e.y+Number(g[1]),e.x2=e.x+Number(g[2]),e.y2=e.y+Number(g[3]),e.x+=Number(g[4]),e.y+=Number(g[5]),p.bezierCurveTo(e.x1,e.y1,e.x2,e.y2,e.x,e.y);break;case"S":e.x1&&e.y1&&e.x2&&e.y2?(e.x1=e.x-e.x2+e.x,e.y1=e.y-e.y2+e.y,e.x2=Number(g[0]),e.y2=Number(g[1]),e.x=Number(g[2]),e.y=Number(g[3]),p.bezierCurveTo(e.x1,e.y1,e.x2,e.y2,e.x,e.y)):(e.x1=Number(g[0]),e.y1=Number(g[1]),e.x=Number(g[2]),e.y=Number(g[3]),p.quadraticCurveTo(e.x1,e.y1,e.x,e.y));break;case"s":e.x1&&e.y1&&e.x2&&e.y2?(e.x1=e.x-e.x2+e.x,e.y1=e.y-e.y2+e.y,e.x2=e.x+Number(g[0]),e.y2=e.y+Number(g[1]),e.x+=Number(g[2]),e.y+=Number(g[3]),p.bezierCurveTo(e.x1,e.y1,e.x2,e.y2,e.x,e.y)):(e.x1=e.x+Number(g[0]),e.y1=e.y+Number(g[1]),e.x+=Number(g[2]),e.y+=Number(g[3]),p.quadraticCurveTo(e.x1,e.y1,e.x,e.y));break;case"Q":e.x1=Number(g[0]),e.y1=Number(g[1]),e.x=Number(g[2]),e.y=Number(g[3]),p.quadraticCurveTo(e.x1,e.y1,e.x,e.y);break;case"q":e.x1=e.x+Number(g[0]),e.y1=e.y+Number(g[1]),e.x+=Number(g[2]),e.y+=Number(g[3]),p.quadraticCurveTo(e.x1,e.y1,e.x,e.y);break;case"A":case"a":break;case"Z":case"z":p.closePath()}})(i,c,y,d)}}}),f._styles&&f._styles.fill?i.fill():f._styles&&f._styles.stroke&&i.stroke(),i.restore()}var l=function(i,f,c,_,y){var d=i.getContext("2d");return _.sprites.forEach(function(p){var e=p.frames[y];if(!(e.alpha<.05)){d.save(),d.globalAlpha=e.alpha,d.transform(e.transform.a||1,e.transform.b||0,e.transform.c||0,e.transform.d||1,e.transform.tx||0,e.transform.ty||0);var x=f[p.imageKey];x&&(e.maskPath!==void 0&&e.maskPath!==null&&(e.maskPath._styles=void 0,h(d,e.maskPath),d.clip()),d.drawImage(x,0,0));var g=c[p.imageKey];g&&d.drawImage(g,(e.layout.width-g.width)/2,(e.layout.height-g.height)/2),e.shapes&&e.shapes.forEach(function(w){w.type==="shape"&&w.pathArgs&&w.pathArgs.d?h(d,new t.default(w.pathArgs.d,w.transform,w.styles)):w.type==="ellipse"&&w.pathArgs?function(N,S){N.save(),v(N,S),S._transform!==void 0&&S._transform!==null&&N.transform(S._transform.a||1,S._transform.b||0,S._transform.c||0,S._transform.d||1,S._transform.tx||0,S._transform.ty||0);var T=S._x-S._radiusX,O=S._y-S._radiusY,M=2*S._radiusX,F=2*S._radiusY,D=M/2*.5522848,E=F/2*.5522848,C=T+M,V=O+F,$=T+M/2,I=O+F/2;N.beginPath(),N.moveTo(T,I),N.bezierCurveTo(T,I-E,$-D,O,$,O),N.bezierCurveTo($+D,O,C,I-E,C,I),N.bezierCurveTo(C,I+E,$+D,V,$,V),N.bezierCurveTo($-D,V,T,I+E,T,I),S._styles&&S._styles.fill?N.fill():S._styles&&S._styles.stroke&&N.stroke(),N.restore()}(d,new r.default(parseFloat(w.pathArgs.x)||0,parseFloat(w.pathArgs.y)||0,parseFloat(w.pathArgs.radiusX)||0,parseFloat(w.pathArgs.radiusY)||0,w.transform,w.styles)):w.type==="rect"&&w.pathArgs&&function(N,S){N.save(),v(N,S),S._transform!==void 0&&S._transform!==null&&N.transform(S._transform.a||1,S._transform.b||0,S._transform.c||0,S._transform.d||1,S._transform.tx||0,S._transform.ty||0);var T=S._x,O=S._y,M=S._width,F=S._height,D=S._cornerRadius;M<2*D&&(D=M/2),F<2*D&&(D=F/2),N.beginPath(),N.moveTo(T+D,O),N.arcTo(T+M,O,T+M,O+F,D),N.arcTo(T+M,O+F,T,O+F,D),N.arcTo(T,O+F,T,O,D),N.arcTo(T,O,T+M,O,D),N.closePath(),S._styles&&S._styles.fill?N.fill():S._styles&&S._styles.stroke&&N.stroke(),N.restore()}(d,new u.default(parseFloat(w.pathArgs.x)||0,parseFloat(w.pathArgs.y)||0,parseFloat(w.pathArgs.width)||0,parseFloat(w.pathArgs.height)||0,parseFloat(w.pathArgs.cornerRadius)||0,w.transform,w.styles))}),d.restore()}}),i};m.default=l},function(o,m,n){var t,r=(t=function(a,s){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,h){v.__proto__=h}||function(v,h){for(var l in h)Object.prototype.hasOwnProperty.call(h,l)&&(v[l]=h[l])})(a,s)},function(a,s){function v(){this.constructor=a}t(a,s),a.prototype=s===null?Object.create(s):(v.prototype=s.prototype,new v)});Object.defineProperty(m,"__esModule",{value:!0});var u=function(a){function s(v,h,l,i,f,c){var _=a.call(this)||this;return _._x=v,_._y=h,_._radiusX=l,_._radiusY=i,_._transform=f,_._styles=c,_}return r(s,a),s}(n(0).default);m.default=u},function(o,m,n){var t,r=(t=function(a,s){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,h){v.__proto__=h}||function(v,h){for(var l in h)Object.prototype.hasOwnProperty.call(h,l)&&(v[l]=h[l])})(a,s)},function(a,s){function v(){this.constructor=a}t(a,s),a.prototype=s===null?Object.create(s):(v.prototype=s.prototype,new v)});Object.defineProperty(m,"__esModule",{value:!0});var u=function(a){function s(v,h,l,i,f,c,_){var y=a.call(this)||this;return y._x=v,y._y=h,y._width=l,y._height=i,y._cornerRadius=f,y._transform=c,y._styles=_,y}return r(s,a),s}(n(0).default);m.default=u},function(o,m,n){Object.defineProperty(m,"__esModule",{value:!0});var t=function(){function r(){this._currentTimeMillsecond=function(){return typeof performance>"u"?new Date().getTime():performance.now()},this.noExecutionDelay=!1,this.startValue=0,this.endValue=0,this.duration=0,this.loop=1,this.fillRule=0,this.onStart=function(){},this.onUpdate=function(){},this.onEnd=function(){},this._isRunning=!1,this._mStartTime=0,this._currentFrication=0,this._worker=null}return r.prototype.start=function(u){this.doStart(u)},r.prototype.stop=function(){this._doStop()},Object.defineProperty(r.prototype,"animatedValue",{get:function(){return(this.endValue-this.startValue)*this._currentFrication+this.startValue},enumerable:!1,configurable:!0}),r.prototype.doStart=function(u){this._isRunning=!0,this._mStartTime=this._currentTimeMillsecond(),u&&(this._mStartTime-=u/(this.endValue-this.startValue)*this.duration),this._currentFrication=0,this.noExecutionDelay&&this._worker===null&&(this._worker=new Worker(window.URL.createObjectURL(new Blob([`onmessage = function () {
|
|
10
|
+
(function(){"use strict";var t=void 0,e=this;function r(r,i){var s,n=r.split("."),o=e;!(n[0]in o)&&o.execScript&&o.execScript("var "+n[0]);for(;n.length&&(s=n.shift());)n.length||i===t?o=o[s]?o[s]:o[s]={}:o[s]=i}var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array&&"undefined"!=typeof DataView;function s(t){var e,r,s,n,o,a,f,h,l,u,p=t.length,d=0,c=Number.POSITIVE_INFINITY;for(h=0;h<p;++h)t[h]>d&&(d=t[h]),t[h]<c&&(c=t[h]);for(e=1<<d,r=new(i?Uint32Array:Array)(e),s=1,n=0,o=2;s<=d;){for(h=0;h<p;++h)if(t[h]===s){for(a=0,f=n,l=0;l<s;++l)a=a<<1|1&f,f>>=1;for(u=s<<16|h,l=a;l<e;l+=o)r[l]=u;++n}++s,n<<=1,o<<=1}return[r,d,c]}function n(t,e){switch(this.g=[],this.h=32768,this.d=this.f=this.a=this.l=0,this.input=i?new Uint8Array(t):t,this.m=!1,this.i=a,this.r=!1,!e&&(e={})||(e.index&&(this.a=e.index),e.bufferSize&&(this.h=e.bufferSize),e.bufferType&&(this.i=e.bufferType),e.resize&&(this.r=e.resize)),this.i){case o:this.b=32768,this.c=new(i?Uint8Array:Array)(32768+this.h+258);break;case a:this.b=0,this.c=new(i?Uint8Array:Array)(this.h),this.e=this.z,this.n=this.v,this.j=this.w;break;default:throw Error("invalid inflate mode")}}var o=0,a=1,f={t:o,s:a};n.prototype.k=function(){for(;!this.m;){var e=S(this,3);switch(1&e&&(this.m=!0),e>>>=1){case 0:var r=this.input,n=this.a,f=this.c,h=this.b,l=r.length,u=t,d=f.length,c=t;if(this.d=this.f=0,n+1>=l)throw Error("invalid uncompressed block header: LEN");if(u=r[n++]|r[n++]<<8,n+1>=l)throw Error("invalid uncompressed block header: NLEN");if(u===~(r[n++]|r[n++]<<8))throw Error("invalid uncompressed block header: length verify");if(n+u>r.length)throw Error("input buffer is broken");switch(this.i){case o:for(;h+u>f.length;){if(u-=c=d-h,i)f.set(r.subarray(n,n+c),h),h+=c,n+=c;else for(;c--;)f[h++]=r[n++];this.b=h,f=this.e(),h=this.b}break;case a:for(;h+u>f.length;)f=this.e({p:2});break;default:throw Error("invalid inflate mode")}if(i)f.set(r.subarray(n,n+u),h),h+=u,n+=u;else for(;u--;)f[h++]=r[n++];this.a=n,this.b=h,this.c=f;break;case 1:this.j(_,x);break;case 2:var y,v,m,b,g=S(this,5)+257,A=S(this,5)+1,w=S(this,4)+4,k=new(i?Uint8Array:Array)(p.length),O=t,E=t,T=t,N=t,I=t;for(I=0;I<w;++I)k[p[I]]=S(this,3);if(!i)for(I=w,w=k.length;I<w;++I)k[p[I]]=0;for(y=s(k),O=new(i?Uint8Array:Array)(g+A),I=0,b=g+A;I<b;)switch(E=j(this,y),E){case 16:for(N=3+S(this,2);N--;)O[I++]=T;break;case 17:for(N=3+S(this,3);N--;)O[I++]=0;T=0;break;case 18:for(N=11+S(this,7);N--;)O[I++]=0;T=0;break;default:T=O[I++]=E}v=s(i?O.subarray(0,g):O.slice(0,g)),m=s(i?O.subarray(g):O.slice(g)),this.j(v,m);break;default:throw Error("unknown BTYPE: "+e)}}return this.n()};var h,l,u=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],p=i?new Uint16Array(u):u,d=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,258,258],c=i?new Uint16Array(d):d,y=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0],v=i?new Uint8Array(y):y,m=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],b=i?new Uint16Array(m):m,g=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],A=i?new Uint8Array(g):g,w=new(i?Uint8Array:Array)(288);for(h=0,l=w.length;h<l;++h)w[h]=143>=h?8:255>=h?9:279>=h?7:8;var k,O,_=s(w),E=new(i?Uint8Array:Array)(30);for(k=0,O=E.length;k<O;++k)E[k]=5;var x=s(E);function S(t,e){for(var r,i=t.f,s=t.d,n=t.input,o=t.a,a=n.length;s<e;){if(o>=a)throw Error("input buffer is broken");i|=n[o++]<<s,s+=8}return r=i&(1<<e)-1,t.f=i>>>e,t.d=s-e,t.a=o,r}function j(t,e){for(var r,i,s=t.f,n=t.d,o=t.input,a=t.a,f=o.length,h=e[0],l=e[1];n<l&&!(a>=f);)s|=o[a++]<<n,n+=8;if((i=(r=h[s&(1<<l)-1])>>>16)>n)throw Error("invalid code length: "+i);return t.f=s>>i,t.d=n-i,t.a=a,65535&r}function T(t,e){var r,i;switch(this.input=t,this.a=0,!e&&(e={})||(e.index&&(this.a=e.index),e.verify&&(this.A=e.verify)),r=t[this.a++],i=t[this.a++],15&r){case N:this.method=N;break;default:throw Error("unsupported compression method")}if(0!=((r<<8)+i)%31)throw Error("invalid fcheck flag:"+((r<<8)+i)%31);if(32&i)throw Error("fdict flag is not supported");this.q=new n(t,{index:this.a,bufferSize:e.bufferSize,bufferType:e.bufferType,resize:e.resize})}n.prototype.j=function(t,e){var r=this.c,i=this.b;this.o=t;for(var s,n,o,a,f=r.length-258;256!==(s=j(this,t));)if(256>s)i>=f&&(this.b=i,r=this.e(),i=this.b),r[i++]=s;else for(a=c[n=s-257],0<v[n]&&(a+=S(this,v[n])),s=j(this,e),o=b[s],0<A[s]&&(o+=S(this,A[s])),i>=f&&(this.b=i,r=this.e(),i=this.b);a--;)r[i]=r[i++-o];for(;8<=this.d;)this.d-=8,this.a--;this.b=i},n.prototype.w=function(t,e){var r=this.c,i=this.b;this.o=t;for(var s,n,o,a,f=r.length;256!==(s=j(this,t));)if(256>s)i>=f&&(f=(r=this.e()).length),r[i++]=s;else for(a=c[n=s-257],0<v[n]&&(a+=S(this,v[n])),s=j(this,e),o=b[s],0<A[s]&&(o+=S(this,A[s])),i+a>f&&(f=(r=this.e()).length);a--;)r[i]=r[i++-o];for(;8<=this.d;)this.d-=8,this.a--;this.b=i},n.prototype.e=function(){var t,e,r=new(i?Uint8Array:Array)(this.b-32768),s=this.b-32768,n=this.c;if(i)r.set(n.subarray(32768,r.length));else for(t=0,e=r.length;t<e;++t)r[t]=n[t+32768];if(this.g.push(r),this.l+=r.length,i)n.set(n.subarray(s,s+32768));else for(t=0;32768>t;++t)n[t]=n[s+t];return this.b=32768,n},n.prototype.z=function(t){var e,r,s,n=this.input.length/this.a+1|0,o=this.input,a=this.c;return t&&("number"==typeof t.p&&(n=t.p),"number"==typeof t.u&&(n+=t.u)),2>n?r=(s=(o.length-this.a)/this.o[2]/2*258|0)<a.length?a.length+s:a.length<<1:r=a.length*n,i?(e=new Uint8Array(r)).set(a):e=a,this.c=e},n.prototype.n=function(){var t,e,r,s,n,o=0,a=this.c,f=this.g,h=new(i?Uint8Array:Array)(this.l+(this.b-32768));if(0===f.length)return i?this.c.subarray(32768,this.b):this.c.slice(32768,this.b);for(e=0,r=f.length;e<r;++e)for(s=0,n=(t=f[e]).length;s<n;++s)h[o++]=t[s];for(e=32768,r=this.b;e<r;++e)h[o++]=a[e];return this.g=[],this.buffer=h},n.prototype.v=function(){var t,e=this.b;return i?this.r?(t=new Uint8Array(e)).set(this.c.subarray(0,e)):t=this.c.subarray(0,e):(this.c.length>e&&(this.c.length=e),t=this.c),this.buffer=t},T.prototype.k=function(){var t,e,r=this.input;if(t=this.q.k(),this.a=this.q.a,this.A){e=(r[this.a++]<<24|r[this.a++]<<16|r[this.a++]<<8|r[this.a++])>>>0;var i=t;if("string"==typeof i){var s,n,o=i.split("");for(s=0,n=o.length;s<n;s++)o[s]=(255&o[s].charCodeAt(0))>>>0;i=o}for(var a,f=1,h=0,l=i.length,u=0;0<l;){l-=a=1024<l?1024:l;do{h+=f+=i[u++]}while(--a);f%=65521,h%=65521}if(e!==(h<<16|f)>>>0)throw Error("invalid adler-32 checksum")}return t};var N=8;r("Zlib.Inflate",T),r("Zlib.Inflate.prototype.decompress",T.prototype.k);var I,B,F,D,M={ADAPTIVE:f.s,BLOCK:f.t};if(Object.keys)I=Object.keys(M);else for(B in I=[],F=0,M)I[F++]=B;for(F=0,D=I.length;F<D;++F)r("Zlib.Inflate.BufferType."+(B=I[F]),M[B])}).call(this)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){for(var e=[],r=0;r<t.length;r+=32768)e.push(String.fromCharCode.apply(null,t.subarray(r,r+32768)));return e.join("")}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(27),s=function(t,e){this.videoSize={width:0,height:0},this.images={},this.dynamicElements={},this.sprites=[],this.version=t.version,this.videoSize.width=t.params.viewBoxWidth||0,this.videoSize.height=t.params.viewBoxHeight||0,this.FPS=t.params.fps||20,this.frames=t.params.frames||0,t.sprites instanceof Array&&(this.sprites=t.sprites.map(function(t){return new i.default(t)})),e&&(this.images=e)};e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(28),s=function(t){this.frames=[],this.imageKey=t.imageKey,t.frames&&(this.frames=t.frames.map(function(t){return new i.default(t)}))};e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(29),s=function(t,e,r,i,s,n){return{a:t,b:e,c:r,d:i,tx:s,ty:n}},n=function(t,e,r,i){return{x:t,y:e,width:r,height:i}},o=function(){function t(e){this.alpha=0,this.transform=s(1,0,0,1,0,0),this.nx=0,this.ny=0,this.layout=n(0,0,0,0),this.shapes=[],this.alpha=parseFloat(e.alpha)||0,e.layout&&(this.layout=n(parseFloat(e.layout.x)||0,parseFloat(e.layout.y)||0,parseFloat(e.layout.width)||0,parseFloat(e.layout.height)||0)),e.transform&&(this.transform=s(parseFloat(e.transform.a)||1,parseFloat(e.transform.b)||0,parseFloat(e.transform.c)||0,parseFloat(e.transform.d)||1,parseFloat(e.transform.tx)||0,parseFloat(e.transform.ty)||0)),e.clipPath&&e.clipPath.length>0&&(this.maskPath=new i.default(e.clipPath,void 0,{fill:"#000000"})),e.shapes&&(e.shapes instanceof Array&&e.shapes.forEach(function(t){switch(t.pathArgs=t.args,t.type){case 0:t.type="shape",t.pathArgs=t.shape;break;case 1:t.type="rect",t.pathArgs=t.rect;break;case 2:t.type="ellipse",t.pathArgs=t.ellipse;break;case 3:t.type="keep"}if(t.styles){t.styles.fill&&("number"==typeof t.styles.fill.r&&(t.styles.fill[0]=t.styles.fill.r),"number"==typeof t.styles.fill.g&&(t.styles.fill[1]=t.styles.fill.g),"number"==typeof t.styles.fill.b&&(t.styles.fill[2]=t.styles.fill.b),"number"==typeof t.styles.fill.a&&(t.styles.fill[3]=t.styles.fill.a)),t.styles.stroke&&("number"==typeof t.styles.stroke.r&&(t.styles.stroke[0]=t.styles.stroke.r),"number"==typeof t.styles.stroke.g&&(t.styles.stroke[1]=t.styles.stroke.g),"number"==typeof t.styles.stroke.b&&(t.styles.stroke[2]=t.styles.stroke.b),"number"==typeof t.styles.stroke.a&&(t.styles.stroke[3]=t.styles.stroke.a));var e=t.styles.lineDash||[];switch(t.styles.lineDashI>0&&e.push(t.styles.lineDashI),t.styles.lineDashII>0&&(e.length<1&&e.push(0),e.push(t.styles.lineDashII),e.push(0)),t.styles.lineDashIII>0&&(e.length<2&&(e.push(0),e.push(0)),e[2]=t.styles.lineDashIII),t.styles.lineDash=e,t.styles.lineJoin){case 0:t.styles.lineJoin="miter";break;case 1:t.styles.lineJoin="round";break;case 2:t.styles.lineJoin="bevel"}switch(t.styles.lineCap){case 0:t.styles.lineCap="butt";break;case 1:t.styles.lineCap="round";break;case 2:t.styles.lineCap="square"}}}),e.shapes[0]&&"keep"===e.shapes[0].type?this.shapes=t.lastShapes:(t.lastShapes=e.shapes,this.shapes=e.shapes));var r=this.transform.a*this.layout.x+this.transform.c*this.layout.y+this.transform.tx,o=this.transform.a*(this.layout.x+this.layout.width)+this.transform.c*this.layout.y+this.transform.tx,a=this.transform.a*this.layout.x+this.transform.c*(this.layout.y+this.layout.height)+this.transform.tx,f=this.transform.a*(this.layout.x+this.layout.width)+this.transform.c*(this.layout.y+this.layout.height)+this.transform.tx,h=this.transform.b*this.layout.x+this.transform.d*this.layout.y+this.transform.ty,l=this.transform.b*(this.layout.x+this.layout.width)+this.transform.d*this.layout.y+this.transform.ty,u=this.transform.b*this.layout.x+this.transform.d*(this.layout.y+this.layout.height)+this.transform.ty,p=this.transform.b*(this.layout.x+this.layout.width)+this.transform.d*(this.layout.y+this.layout.height)+this.transform.ty;this.nx=Math.min(Math.min(a,f),Math.min(r,o)),this.ny=Math.min(Math.min(u,p),Math.min(h,l))}return t.lastShapes="",t}();e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t,e,r){this._d=t,this._transform=e,this._styles=r};e.default=i}]);`,Parser=function(){function Parser(_a){var disableWorker=(_a===void 0?{disableWorker:!1}:_a).disableWorker;disableWorker?(eval(WORKER),this.worker=window.SVGAParserMockWorker):this.worker=new Worker(window.URL.createObjectURL(new Blob([WORKER])))}return Parser.prototype.do=function(r){var g=this,i=new Uint8Array(r,0,4);if(i[0]==80&&i[1]==75&&i[2]==3&&i[3]==4)throw"this parser not support version@1.x of svga.";if(!r)throw new Error("Parser Data not found");if(!this.worker)throw new Error("Parser Worker not found");return new Promise(function(e,o){var l;g.worker.disableWorker?((l=g.worker).onmessageCallback=function(u){e(u)},l.onmessage({data:r})):((l=g.worker).postMessage(r),l.onmessage=function(u){var a=u.data;e(a)})})},Parser.prototype.destroy=function(){var r=this.worker;r.terminate&&r.terminate()},Parser}();exports$1.default=Parser},function(r,g,i){Object.defineProperty(g,"__esModule",{value:!0});var e,o,l,u=i(5),a=i(9);(function(h){h.START="start",h.RESUME="resume",h.PROCESS="process",h.PAUSE="pause",h.STOP="stop",h.END="end",h.CLEAR="clear"})(e||(e={})),function(h){h.FORWARDS="forwards",h.BACKWARDS="backwards"}(o||(o={})),function(h){h.FORWARDS="forwards",h.FALLBACKS="fallbacks"}(l||(l={}));var c=typeof window<"u"&&"IntersectionObserver"in window,v=function(){function h(s,n,f){if(this.videoItem=n,this.loop=!0,this.fillMode=o.FORWARDS,this.playMode=l.FORWARDS,this.progress=0,this.currentFrame=0,this.totalFramesCount=0,this.startFrame=0,this.endFrame=0,this.cacheFrames=!1,this.intersectionObserverRender=!1,this.intersectionObserverRenderShow=!0,this._intersectionObserver=null,this.$onEvent={start:function(){},resume:function(){},process:function(){},pause:function(){},stop:function(){},end:function(){},clear:function(){}},this.container=typeof s=="string"?document.body.querySelector(s):s,!this.container)throw new Error("container undefined.");if(!this.container.getContext)throw new Error("container should be HTMLCanvasElement.");this._renderer=new u.default(this),this._animator=new a.default,this.videoItem&&this.mount(n),f&&this.set(f)}return h.prototype.set=function(s){var n=this;s.loop!==void 0&&(this.loop=s.loop),s.fillMode&&(this.fillMode=s.fillMode),s.playMode&&(this.playMode=s.playMode),s.cacheFrames!==void 0&&(this.cacheFrames=s.cacheFrames),this.startFrame=s.startFrame?s.startFrame:this.startFrame,this.endFrame=s.endFrame?s.endFrame:this.endFrame,s.intersectionObserverRender!==void 0&&(this.intersectionObserverRender=s.intersectionObserverRender),c&&this.intersectionObserverRender?(this._intersectionObserver=new IntersectionObserver(function(f){f[0].intersectionRatio<=0?n.intersectionObserverRenderShow&&(n.intersectionObserverRenderShow=!1):!n.intersectionObserverRenderShow&&(n.intersectionObserverRenderShow=!0)},{rootMargin:"0px",threshold:[0,.5,1]}),this._intersectionObserver.observe(this.container)):(this._intersectionObserver&&this._intersectionObserver.disconnect(),this.intersectionObserverRender=!1,this.intersectionObserverRenderShow=!0),this._animator.noExecutionDelay=s.noExecutionDelay},h.prototype.mount=function(s){var n=this;return new Promise(function(f,m){n.currentFrame=0,n.progress=0,n.totalFramesCount=s.frames-1,n.videoItem=s,n._renderer.prepare().then(f),n._renderer.clear(),n._setSize()})},h.prototype.start=function(){if(!this.videoItem)throw new Error("video item undefined.");this._renderer.clear(),this._startAnimation(),this.$onEvent.start()},h.prototype.resume=function(){if(!this.videoItem)throw new Error("video item undefined.");this._startAnimation(),this.$onEvent.resume()},h.prototype.pause=function(){this._animator&&this._animator.stop(),this.$onEvent.pause()},h.prototype.stop=function(){this._animator&&this._animator.stop(),this.currentFrame=0,this._renderer.drawFrame(this.currentFrame),this.$onEvent.stop()},h.prototype.clear=function(){this._animator&&this._animator.stop(),this._renderer.clear(),this.$onEvent.clear()},h.prototype.destroy=function(){this._animator&&this._animator.stop(),this._renderer.clear(),this._animator=null,this._renderer=null,this.videoItem=null},h.prototype.$on=function(s,n){var f=this;return this.$onEvent[s]=n,s==="end"&&(this._animator.onEnd=function(){return f.$onEvent.end()}),this},h.prototype._startAnimation=function(){var s=this,n=this,f=n.playMode,m=n.totalFramesCount,p=n.startFrame,d=n.endFrame,b=n.videoItem;this.currentFrame===m&&(this.currentFrame=p||0),this._animator.startValue=f==="fallbacks"?d||m:p||0,this._animator.endValue=f==="fallbacks"?p||0:d||m;var t=b.frames;d>0&&d>p?t=d-p:d<=0&&p>0&&(t=b.frames-p),this._animator.duration=t*(1/b.FPS)*1e3,this._animator.loop=this.loop===!0||this.loop<=0?1/0:this.loop===!1?1:this.loop,this._animator.fillRule=this.fillMode==="backwards"?1:0,this._animator.onUpdate=function(w){w=Math.floor(w),s.currentFrame!==w&&(s.currentFrame=w,s.progress=parseFloat((w+1).toString())/parseFloat(b.frames.toString())*100,s._renderer.drawFrame(s.currentFrame),s.$onEvent.process())},this._animator.start(this.currentFrame)},h.prototype._setSize=function(){var s=this.videoItem.videoSize;this.container.width=s.width,this.container.height=s.height},h}();g.default=v},function(r,g,i){Object.defineProperty(g,"__esModule",{value:!0});var e=i(6),o=function(){function l(u){this._bitmapCache={},this._dynamicElements={},this._frames={},this._player=u;var a=this._player.container;this._ofsCanvas=window.OffscreenCanvas?new window.OffscreenCanvas(a.width,a.height):document.createElement("canvas")}return l.prototype.prepare=function(){var u=this;return new Promise(function(a,c){if(u._bitmapCache={},u._player.videoItem.images&&Object.keys(u._player.videoItem.images).length!=0){u._player.videoItem.dynamicElements&&(u._dynamicElements=u._player.videoItem.dynamicElements);var v=0,h=0;for(var s in u._player.videoItem.images){var n=u._player.videoItem.images[s];if(typeof n!="string"||n.indexOf("iVBO")!==0&&n.indexOf("/9j/2w")!==0)u._bitmapCache[s]=n;else{v++;var f=document.createElement("img");f.src="data:image/png;base64,"+n,u._bitmapCache[s]=f,f.onload=function(){++h===v&&a()}}}}else a()})},l.prototype.clear=function(){this._player.container.width=this._player.container.width},l.prototype.drawFrame=function(u){var a=this._player;if(!a.intersectionObserverRender||a.intersectionObserverRenderShow){this.clear();var c=a.container.getContext("2d");if(this._player.cacheFrames&&this._frames[u]){var v=this._frames[u];c.drawImage(v,0,0,v.width,v.height,0,0,v.width,v.height)}else{var h=this._ofsCanvas;if(h.width=this._player.container.width,h.height=this._player.container.height,e.default(h,this._bitmapCache,this._dynamicElements,this._player.videoItem,this._player.currentFrame),c.drawImage(h,0,0,h.width,h.height,0,0,h.width,h.height),this._player.cacheFrames)if("toDataURL"in h){var s=h.toDataURL(),n=new Image;n.src=s,this._frames[u]=n}else this._frames[u]=h.transferToImageBitmap()}}},l}();g.default=o},function(r,g,i){Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var e=u(i(0)),o=u(i(7)),l=u(i(8));function u(s){return s&&s.__esModule?s:{default:s}}var a="MLHVCSQRZmlhvcsqrz";function c(s,n){var f=n._styles;f!==void 0&&(f&&f.stroke?s.strokeStyle="rgba(".concat(parseInt((255*f.stroke[0]).toString()),", ").concat(parseInt((255*f.stroke[1]).toString()),", ").concat(parseInt((255*f.stroke[2]).toString()),", ").concat(f.stroke[3],")"):s.strokeStyle="transparent",f&&(s.lineWidth=f.strokeWidth||void 0,s.lineCap=f.lineCap||void 0,s.lineJoin=f.lineJoin||void 0,s.miterLimit=f.miterLimit||void 0),f&&f.fill?s.fillStyle="rgba(".concat(parseInt((255*f.fill[0]).toString()),", ").concat(parseInt((255*f.fill[1]).toString()),", ").concat(parseInt((255*f.fill[2]).toString()),", ").concat(f.fill[3],")"):s.fillStyle="transparent",f&&f.lineDash&&s.setLineDash(f.lineDash))}function v(s,n){s.save(),c(s,n),n._transform!==void 0&&n._transform!==null&&s.transform(n._transform.a||1,n._transform.b||0,n._transform.c||0,n._transform.d||1,n._transform.tx||0,n._transform.ty||0);var f={x:0,y:0,x1:0,y1:0,x2:0,y2:0};s.beginPath(),n._d.replace(/([a-zA-Z])/g,"|||$1 ").replace(/,/g," ").split("|||").forEach(function(m){if(m.length!=0){var p=m.substr(0,1);if(a.indexOf(p)>=0){var d=m.substr(1).trim().split(" ");(function(b,t,w,y){switch(w){case"M":t.x=Number(y[0]),t.y=Number(y[1]),b.moveTo(t.x,t.y);break;case"m":t.x+=Number(y[0]),t.y+=Number(y[1]),b.moveTo(t.x,t.y);break;case"L":t.x=Number(y[0]),t.y=Number(y[1]),b.lineTo(t.x,t.y);break;case"l":t.x+=Number(y[0]),t.y+=Number(y[1]),b.lineTo(t.x,t.y);break;case"H":t.x=Number(y[0]),b.lineTo(t.x,t.y);break;case"h":t.x+=Number(y[0]),b.lineTo(t.x,t.y);break;case"V":t.y=Number(y[0]),b.lineTo(t.x,t.y);break;case"v":t.y+=Number(y[0]),b.lineTo(t.x,t.y);break;case"C":t.x1=Number(y[0]),t.y1=Number(y[1]),t.x2=Number(y[2]),t.y2=Number(y[3]),t.x=Number(y[4]),t.y=Number(y[5]),b.bezierCurveTo(t.x1,t.y1,t.x2,t.y2,t.x,t.y);break;case"c":t.x1=t.x+Number(y[0]),t.y1=t.y+Number(y[1]),t.x2=t.x+Number(y[2]),t.y2=t.y+Number(y[3]),t.x+=Number(y[4]),t.y+=Number(y[5]),b.bezierCurveTo(t.x1,t.y1,t.x2,t.y2,t.x,t.y);break;case"S":t.x1&&t.y1&&t.x2&&t.y2?(t.x1=t.x-t.x2+t.x,t.y1=t.y-t.y2+t.y,t.x2=Number(y[0]),t.y2=Number(y[1]),t.x=Number(y[2]),t.y=Number(y[3]),b.bezierCurveTo(t.x1,t.y1,t.x2,t.y2,t.x,t.y)):(t.x1=Number(y[0]),t.y1=Number(y[1]),t.x=Number(y[2]),t.y=Number(y[3]),b.quadraticCurveTo(t.x1,t.y1,t.x,t.y));break;case"s":t.x1&&t.y1&&t.x2&&t.y2?(t.x1=t.x-t.x2+t.x,t.y1=t.y-t.y2+t.y,t.x2=t.x+Number(y[0]),t.y2=t.y+Number(y[1]),t.x+=Number(y[2]),t.y+=Number(y[3]),b.bezierCurveTo(t.x1,t.y1,t.x2,t.y2,t.x,t.y)):(t.x1=t.x+Number(y[0]),t.y1=t.y+Number(y[1]),t.x+=Number(y[2]),t.y+=Number(y[3]),b.quadraticCurveTo(t.x1,t.y1,t.x,t.y));break;case"Q":t.x1=Number(y[0]),t.y1=Number(y[1]),t.x=Number(y[2]),t.y=Number(y[3]),b.quadraticCurveTo(t.x1,t.y1,t.x,t.y);break;case"q":t.x1=t.x+Number(y[0]),t.y1=t.y+Number(y[1]),t.x+=Number(y[2]),t.y+=Number(y[3]),b.quadraticCurveTo(t.x1,t.y1,t.x,t.y);break;case"A":case"a":break;case"Z":case"z":b.closePath()}})(s,f,p,d)}}}),n._styles&&n._styles.fill?s.fill():n._styles&&n._styles.stroke&&s.stroke(),s.restore()}var h=function(s,n,f,m,p){var d=s.getContext("2d");return m.sprites.forEach(function(b){var t=b.frames[p];if(!(t.alpha<.05)){d.save(),d.globalAlpha=t.alpha,d.transform(t.transform.a||1,t.transform.b||0,t.transform.c||0,t.transform.d||1,t.transform.tx||0,t.transform.ty||0);var w=n[b.imageKey];w&&(t.maskPath!==void 0&&t.maskPath!==null&&(t.maskPath._styles=void 0,v(d,t.maskPath),d.clip()),d.drawImage(w,0,0));var y=f[b.imageKey];y&&d.drawImage(y,(t.layout.width-y.width)/2,(t.layout.height-y.height)/2),t.shapes&&t.shapes.forEach(function(_){_.type==="shape"&&_.pathArgs&&_.pathArgs.d?v(d,new e.default(_.pathArgs.d,_.transform,_.styles)):_.type==="ellipse"&&_.pathArgs?function(E,S){E.save(),c(E,S),S._transform!==void 0&&S._transform!==null&&E.transform(S._transform.a||1,S._transform.b||0,S._transform.c||0,S._transform.d||1,S._transform.tx||0,S._transform.ty||0);var $=S._x-S._radiusX,A=S._y-S._radiusY,z=2*S._radiusX,O=2*S._radiusY,D=z/2*.5522848,B=O/2*.5522848,N=$+z,F=A+O,V=$+z/2,I=A+O/2;E.beginPath(),E.moveTo($,I),E.bezierCurveTo($,I-B,V-D,A,V,A),E.bezierCurveTo(V+D,A,N,I-B,N,I),E.bezierCurveTo(N,I+B,V+D,F,V,F),E.bezierCurveTo(V-D,F,$,I+B,$,I),S._styles&&S._styles.fill?E.fill():S._styles&&S._styles.stroke&&E.stroke(),E.restore()}(d,new o.default(parseFloat(_.pathArgs.x)||0,parseFloat(_.pathArgs.y)||0,parseFloat(_.pathArgs.radiusX)||0,parseFloat(_.pathArgs.radiusY)||0,_.transform,_.styles)):_.type==="rect"&&_.pathArgs&&function(E,S){E.save(),c(E,S),S._transform!==void 0&&S._transform!==null&&E.transform(S._transform.a||1,S._transform.b||0,S._transform.c||0,S._transform.d||1,S._transform.tx||0,S._transform.ty||0);var $=S._x,A=S._y,z=S._width,O=S._height,D=S._cornerRadius;z<2*D&&(D=z/2),O<2*D&&(D=O/2),E.beginPath(),E.moveTo($+D,A),E.arcTo($+z,A,$+z,A+O,D),E.arcTo($+z,A+O,$,A+O,D),E.arcTo($,A+O,$,A,D),E.arcTo($,A,$+z,A,D),E.closePath(),S._styles&&S._styles.fill?E.fill():S._styles&&S._styles.stroke&&E.stroke(),E.restore()}(d,new l.default(parseFloat(_.pathArgs.x)||0,parseFloat(_.pathArgs.y)||0,parseFloat(_.pathArgs.width)||0,parseFloat(_.pathArgs.height)||0,parseFloat(_.pathArgs.cornerRadius)||0,_.transform,_.styles))}),d.restore()}}),s};g.default=h},function(r,g,i){var e,o=(e=function(u,a){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,v){c.__proto__=v}||function(c,v){for(var h in v)Object.prototype.hasOwnProperty.call(v,h)&&(c[h]=v[h])})(u,a)},function(u,a){function c(){this.constructor=u}e(u,a),u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)});Object.defineProperty(g,"__esModule",{value:!0});var l=function(u){function a(c,v,h,s,n,f){var m=u.call(this)||this;return m._x=c,m._y=v,m._radiusX=h,m._radiusY=s,m._transform=n,m._styles=f,m}return o(a,u),a}(i(0).default);g.default=l},function(r,g,i){var e,o=(e=function(u,a){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,v){c.__proto__=v}||function(c,v){for(var h in v)Object.prototype.hasOwnProperty.call(v,h)&&(c[h]=v[h])})(u,a)},function(u,a){function c(){this.constructor=u}e(u,a),u.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)});Object.defineProperty(g,"__esModule",{value:!0});var l=function(u){function a(c,v,h,s,n,f,m){var p=u.call(this)||this;return p._x=c,p._y=v,p._width=h,p._height=s,p._cornerRadius=n,p._transform=f,p._styles=m,p}return o(a,u),a}(i(0).default);g.default=l},function(r,g,i){Object.defineProperty(g,"__esModule",{value:!0});var e=function(){function o(){this._currentTimeMillsecond=function(){return typeof performance>"u"?new Date().getTime():performance.now()},this.noExecutionDelay=!1,this.startValue=0,this.endValue=0,this.duration=0,this.loop=1,this.fillRule=0,this.onStart=function(){},this.onUpdate=function(){},this.onEnd=function(){},this._isRunning=!1,this._mStartTime=0,this._currentFrication=0,this._worker=null}return o.prototype.start=function(l){this.doStart(l)},o.prototype.stop=function(){this._doStop()},Object.defineProperty(o.prototype,"animatedValue",{get:function(){return(this.endValue-this.startValue)*this._currentFrication+this.startValue},enumerable:!1,configurable:!0}),o.prototype.doStart=function(l){this._isRunning=!0,this._mStartTime=this._currentTimeMillsecond(),l&&(this._mStartTime-=l/(this.endValue-this.startValue)*this.duration),this._currentFrication=0,this.noExecutionDelay&&this._worker===null&&(this._worker=new Worker(window.URL.createObjectURL(new Blob([`onmessage = function () {
|
|
11
11
|
setTimeout(function() {postMessage(null)}, 1 / 60)
|
|
12
|
-
}`])))),this.onStart(),this._doFrame()},r.prototype._doStop=function(){this._isRunning=!1,this._worker!==null&&(this._worker.terminate(),this._worker=null)},r.prototype._doFrame=function(){this._isRunning&&(this._doDeltaTime(this._currentTimeMillsecond()-this._mStartTime),this._isRunning&&(this._worker?(this._worker.onmessage=this._doFrame.bind(this),this._worker.postMessage(null)):window.requestAnimationFrame(this._doFrame.bind(this))))},r.prototype._doDeltaTime=function(u){u>=this.duration*this.loop?(this._currentFrication=this.fillRule===1?0:1,this._isRunning=!1):this._currentFrication=u%this.duration/this.duration,this.onUpdate(this.animatedValue),this._isRunning===!1&&(this._worker!==null&&(this._worker.terminate(),this._worker=null),this.onEnd())},r}();m.default=t}]).default})})(svga_lite_min);var svga_lite_minExports=svga_lite_min.exports;const _sfc_main$6={__name:"hbis-svgaPlayer",props:{src:{type:String,required:!0},autoplay:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},progress:{type:Number,default:0},speed:{type:Number,default:1},width:{type:[Number,String],default:"100%"},height:{type:[Number,String],default:"100%"}},emits:["loaded","play","pause","ended","progress","error"],setup(o,{expose:m,emit:n}){vue.useCssVars(e=>({v5ce75b7f:o.width,v26351a8e:o.height}));const t=o,r=n,u=vue.ref(null),a=vue.ref(null);let s=null,v=null,h=null;const l=async()=>{try{s=new svga_lite_minExports.Parser,h=await s.load(t.src),v=new svga_lite_minExports.Player(a.value),v.loop=t.loop,v.speed=t.speed,v.onStart=()=>r("play"),v.onPause=()=>r("pause"),v.onEnd=()=>r("ended"),v.onFrame=()=>r("progress",v.progress),await v.setAnimationData(h),t.progress>0&&(v.progress=t.progress),t.autoplay&&v.start(),r("loaded")}catch(e){console.error("SVGA 加载失败:",e),r("error",e)}},i=()=>{v&&v.start()},f=()=>{v&&v.pause()},c=()=>{v&&v.stop()},_=()=>{v&&(v.stop(),v.start())},y=e=>{v&&(v.progress=e)},d=e=>{v&&(v.speed=e)},p=e=>{v&&(v.loop=e)};return m({play:i,pause:f,stop:c,restart:_,setProgress:y,setSpeed:d,setLoop:p}),vue.watch(()=>t.src,async e=>{e&&await l()}),vue.watch(()=>t.loop,e=>{p(e)}),vue.watch(()=>t.speed,e=>{d(e)}),vue.watch(()=>t.progress,e=>{y(e)}),vue.onMounted(async()=>{await vue.nextTick(),await l()}),vue.onUnmounted(()=>{v&&(v.stop(),v=null),s&&(s=null),h=null}),(e,x)=>(vue.openBlock(),vue.createElementBlock("div",{ref_key:"containerRef",ref:u,class:"svga-player-container"},[vue.createElementVNode("canvas",{ref_key:"canvasRef",ref:a,class:"svga-player-canvas"},null,512)],512))}},HbisSvgaPlayer=_export_sfc(_sfc_main$6,[["__scopeId","data-v-6b83dcf1"]]),_hoisted_1$5={class:"search-dropdown"},_hoisted_2$5=["placeholder"],_hoisted_3$3=["onClick"],_hoisted_4$2={class:"item-text"},_sfc_main$5={__name:"hbis-search-input",props:{list:{type:Array,default:()=>[]},placeholder:{type:String,default:"请输入关键词搜索"},defaultValue:{type:String,default:""},maxHeight:{type:Number,default:200},showClear:{type:Boolean,default:!0},onFocusShowList:{type:Boolean,default:!0},enterSearch:{type:Boolean,default:!1}},emits:["clearIcon","search","select"],setup(o,{emit:m}){const n=o,t=m,r=vue.ref(n.defaultValue),u=vue.ref(!1),a=vue.ref(!1),s=vue.ref([]);function v(){r.value="",s.value=[],a.value=!1,t("clearIcon","",[])}function h(){if(!n.enterSearch)return;const _=r.value;s.value=n.list.filter(y=>y.label&&y.label.includes(_)),a.value=s.value.length>0,t("search",_,s.value)}function l(){if(n.enterSearch)return;const _=r.value;s.value=n.list.filter(y=>y.label&&y.label.includes(_)),a.value=s.value.length>0,t("search",_,s.value)}function i(){n.onFocusShowList&&(s.value=n.list.filter(_=>_.label&&_.label.includes(r.value)),a.value=!0),u.value=!0}function f(){setTimeout(()=>{u.value=!1,a.value=!1},150)}function c(_){r.value=_.label,a.value=!1,t("select",_)}return vue.onMounted(()=>{n.defaultValue&&(r.value=n.defaultValue)}),(_,y)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$5,[vue.createElementVNode("div",{class:vue.normalizeClass(["input-wrapper",{focus:u.value}])},[vue.withDirectives(vue.createElementVNode("input",{class:"search-input",placeholder:o.placeholder,"onUpdate:modelValue":y[0]||(y[0]=d=>r.value=d),onInput:l,onFocus:i,onBlur:f,onKeyup:vue.withKeys(h,["enter"])},null,40,_hoisted_2$5),[[vue.vModelText,r.value]]),r.value&&o.showClear?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"clear-icon",onClick:v},"×")):vue.createCommentVNode("",!0)],2),a.value&&s.value.length>0?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"dropdown-list",style:vue.normalizeStyle({maxHeight:o.maxHeight+"px"})},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(s.value,(d,p)=>(vue.openBlock(),vue.createElementBlock("div",{key:p,class:"dropdown-item",onClick:e=>c(d)},[vue.createElementVNode("span",_hoisted_4$2,vue.toDisplayString(d.label),1)],8,_hoisted_3$3))),128))],4)):vue.createCommentVNode("",!0)]))}},_hoisted_1$4=["src","alt"],_hoisted_2$4=["onClick"],_sfc_main$4={__name:"hbis-swiper",props:{data:{type:Array,default:()=>[]},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},duration:{type:Number,default:500},direction:{type:String,default:"horizontal",validator:o=>["horizontal","vertical"].includes(o)},showIndicators:{type:Boolean,default:!0},indicatorType:{type:String,default:"dots",validator:o=>["dots","numbers","none"].includes(o)},indicatorPosition:{type:String,default:"bottom",validator:o=>["top","bottom","left","right"].includes(o)},showArrows:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},height:{type:[String,Number],default:"300px"},width:{type:[String,Number],default:"100%"},slideWidth:{type:[String,Number],default:"100%"},slideHeight:{type:[String,Number],default:"100%"},indicatorColor:{type:String,default:"#ffffff"},indicatorActiveColor:{type:String,default:"#ffffff"},indicatorSize:{type:[String,Number],default:8},touchRatio:{type:Number,default:.5},threshold:{type:Number,default:50}},emits:["change","transition-start","transition-end"],setup(o,{expose:m,emit:n}){const t=o,r=n,u=vue.ref(null),a=vue.ref(0),s=vue.ref(!1),v=vue.ref(!1),h=vue.ref(0),l=vue.ref(0),i=vue.ref(0),f=vue.ref(null);vue.ref(!1);const c=vue.computed(()=>!t.loop||t.data.length<=1?t.data:[t.data[t.data.length-1],...t.data,t.data[0]]),_=vue.computed(()=>({width:typeof t.width=="number"?`${t.width}px`:t.width,height:typeof t.height=="number"?`${t.height}px`:t.height,position:"relative",overflow:"hidden"})),y=vue.computed(()=>({transform:`translate(${t.direction==="horizontal"?`${i.value}px, 0`:`0, ${i.value}px`})`,transition:s.value?`transform ${t.duration}ms ease`:"none",display:"flex",flexDirection:t.direction==="horizontal"?"row":"column",width:t.direction==="horizontal"?"100%":"auto",height:t.direction==="horizontal"?"100%":"auto"})),d=vue.computed(()=>({width:typeof t.slideWidth=="number"?`${t.slideWidth}px`:t.slideWidth,height:typeof t.slideHeight=="number"?`${t.slideHeight}px`:t.slideHeight,flexShrink:0,overflow:"hidden"})),p=vue.computed(()=>({backgroundColor:t.indicatorColor,width:t.indicatorType==="numbers"?"24px":`${t.indicatorSize}px`,height:`${t.indicatorSize}px`,borderRadius:t.indicatorType==="numbers"?"4px":"50%"})),e=vue.computed(()=>!t.loop||t.data.length<=1?a.value:(a.value-1+t.data.length)%t.data.length),x=()=>{if(!u.value)return;const E=t.direction==="horizontal"?u.value.offsetWidth:u.value.offsetHeight;E&&(i.value=-a.value*E)},g=E=>{s.value||v.value||E<0||E>=c.value.length||(s.value=!0,a.value=E,r("change",e.value))},w=()=>{s.value||v.value||(s.value=!0,a.value++,r("change",e.value))},N=()=>{s.value||v.value||(s.value=!0,a.value--,r("change",e.value))},S=()=>{s.value=!1,r("transition-end",e.value),t.loop&&t.data.length>1&&(a.value===0?(s.value=!0,a.value=c.value.length-2,setTimeout(()=>{s.value=!1},0)):a.value===c.value.length-1&&(s.value=!0,a.value=1,setTimeout(()=>{s.value=!1},0)))},T=()=>{O(),t.autoplay&&t.data.length>1&&(f.value=setInterval(()=>{w()},t.interval))},O=()=>{f.value&&(clearInterval(f.value),f.value=null)},M=E=>{var $,I;if(E.touches.length!==1)return;O(),v.value=!0;const C=E.touches[0];h.value=C.clientX||C.pageX,l.value=C.clientY||C.pageY;const V=t.direction==="horizontal"?($=u.value)==null?void 0:$.offsetWidth:(I=u.value)==null?void 0:I.offsetHeight;i.value=-a.value*(V||0)},F=E=>{var A,B;if(!v.value)return;const C=E.touches[0],V=C.clientX||C.pageX,$=C.clientY||C.pageY,I=V-h.value,R=$-l.value,b=t.direction==="horizontal"?(A=u.value)==null?void 0:A.offsetWidth:(B=u.value)==null?void 0:B.offsetHeight,k=t.direction==="horizontal"?I:R;i.value=-a.value*(b||0)+k*t.touchRatio},D=()=>{var $,I;if(!v.value)return;v.value=!1;const E=t.direction==="horizontal"?($=u.value)==null?void 0:$.offsetWidth:(I=u.value)==null?void 0:I.offsetHeight,C=-a.value*(E||0),V=i.value-C;Math.abs(V)>t.threshold?V>0?N():w():(s.value=!0,i.value=C,setTimeout(()=>{s.value=!1},t.duration)),T()};return vue.watch(()=>t.data,()=>{a.value=t.loop?1:0,x()},{immediate:!0}),vue.watch(()=>t.autoplay,E=>{E?T():O()}),vue.watch(a,()=>{x()}),vue.onMounted(()=>{var C;x(),T();const E=(C=u.value)==null?void 0:C.parentElement;E&&(E.addEventListener("touchstart",M,{passive:!0}),E.addEventListener("touchmove",F,{passive:!0}),E.addEventListener("touchend",D,{passive:!0})),window.addEventListener("resize",x)}),vue.onUnmounted(()=>{var C;O();const E=(C=u.value)==null?void 0:C.parentElement;E&&(E.removeEventListener("touchstart",M),E.removeEventListener("touchmove",F),E.removeEventListener("touchend",D)),window.removeEventListener("resize",x)}),m({next:w,prev:N,goToSlide:g,startAutoplay:T,stopAutoplay:O}),(E,C)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["hbis-swiper",{"is-vertical":o.direction==="vertical"}]),style:vue.normalizeStyle(_.value)},[vue.createElementVNode("div",{class:"swiper-wrapper",ref_key:"wrapperRef",ref:u,style:vue.normalizeStyle(y.value),onTransitionend:S},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.value,(V,$)=>(vue.openBlock(),vue.createElementBlock("div",{class:"swiper-slide",key:$,style:vue.normalizeStyle(d.value)},[vue.renderSlot(E.$slots,"default",{item:V,index:$},()=>[vue.createElementVNode("img",{src:V,alt:`slide-${$}`,class:"swiper-image"},null,8,_hoisted_1$4)],!0)],4))),128))],36),o.showIndicators&&c.value.length>1?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["swiper-indicators",o.indicatorPosition])},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.value,(V,$)=>(vue.openBlock(),vue.createElementBlock("span",{key:$,class:vue.normalizeClass(["indicator",{active:a.value===$,"is-dots":o.indicatorType==="dots","is-numbers":o.indicatorType==="numbers"}]),style:vue.normalizeStyle(p.value),onClick:I=>g($)},[o.indicatorType==="numbers"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createTextVNode(vue.toDisplayString($+1),1)],64)):vue.createCommentVNode("",!0)],14,_hoisted_2$4))),128))],2)):vue.createCommentVNode("",!0),o.showArrows&&c.value.length>1?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"swiper-arrow swiper-arrow-prev",onClick:N},[vue.renderSlot(E.$slots,"arrow-prev",{},()=>[C[0]||(C[0]=vue.createElementVNode("span",{class:"arrow-icon"},"‹",-1))],!0)])):vue.createCommentVNode("",!0),o.showArrows&&c.value.length>1?(vue.openBlock(),vue.createElementBlock("div",{key:2,class:"swiper-arrow swiper-arrow-next",onClick:w},[vue.renderSlot(E.$slots,"arrow-next",{},()=>[C[1]||(C[1]=vue.createElementVNode("span",{class:"arrow-icon"},"›",-1))],!0)])):vue.createCommentVNode("",!0)],6))}},hbisSwiper=_export_sfc(_sfc_main$4,[["__scopeId","data-v-61e2df95"]]),_hoisted_1$3={class:"dropdown-filter"},_hoisted_2$3={class:"filter-container"},_hoisted_3$2=["onClick"],_hoisted_4$1={class:"filter-label"},_hoisted_5$1={class:"filter-value-group"},_hoisted_6$1={class:"filter-value"},_hoisted_7$1=["onClick"],_sfc_main$3={__name:"hbis-dropdown-select",props:{options:{type:Array,default:()=>[]},modelValue:{type:Object,default:()=>({})},showArrow:{type:Boolean,default:!0},listHeight:{type:Number,default:0},chosenColor:{type:String,default:"#ee0a24"},unChosenColor:{type:String,default:"#000"},showScrollBar:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(o,{emit:m}){const n=o,t=m,r=vue.ref(-1),u=vue.ref(n.options),a=l=>{r.value===l?r.value=-1:r.value=l},s=(l,i,f)=>{const c={...n.modelValue};c[l.key]=i.value,t("update:modelValue",c),t("change",{item:l,option:i,index:f}),r.value=-1},v=l=>{const i=n.modelValue[l.key];if(i!==void 0){const f=l.options.find(c=>c.value===i);return f?f.label:"请选择"}return"请选择"},h=(l,i)=>n.modelValue[l.key]===i.value;return(l,i)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$3,[vue.createElementVNode("div",_hoisted_2$3,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(u.value,(f,c)=>(vue.openBlock(),vue.createElementBlock("div",{key:c,class:vue.normalizeClass(["filter-item",{active:r.value===c}])},[vue.createElementVNode("div",{class:"filter-header",onClick:_=>a(c)},[vue.createElementVNode("span",_hoisted_4$1,vue.toDisplayString(f.label),1),vue.createElementVNode("div",_hoisted_5$1,[vue.createElementVNode("span",_hoisted_6$1,vue.toDisplayString(v(f)),1),n.showArrow?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["arrow",{up:r.value===c}])},null,2)):vue.createCommentVNode("",!0)])],8,_hoisted_3$2),r.value===c?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass([n.showScrollBar?"dropdown-menu-show":"dropdown-menu-hide"]),style:vue.normalizeStyle(n.listHeight?`height: ${n.listHeight}px;`:`height: ${f.options.length*40}px;`)},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(f.options,(_,y)=>(vue.openBlock(),vue.createElementBlock("div",{key:y,class:vue.normalizeClass(["dropdown-item",{selected:h(f,_)}]),onClick:d=>s(f,_,c)},[vue.createElementVNode("span",{style:vue.normalizeStyle(h(f,_)?`color: ${n.chosenColor};`:`color: ${n.unChosenColor};`)},vue.toDisplayString(_.label),5)],10,_hoisted_7$1))),128))],6)):vue.createCommentVNode("",!0)],2))),128))])]))}},hbisDropdownSelect=_export_sfc(_sfc_main$3,[["__scopeId","data-v-1a98ef80"]]),_hoisted_1$2={key:0,class:"hbis-password-input"},_hoisted_2$2={class:"password-dialog"},_hoisted_3$1={class:"password-header"},_hoisted_4={class:"password-title"},_hoisted_5={class:"password-body"},_hoisted_6={class:"password-input-container"},_hoisted_7={key:0,class:"password-visible"},_hoisted_8={key:1,class:"password-hidden"},_hoisted_9={class:"password-keyboard"},_hoisted_10=["onClick"],_hoisted_11={class:"password-footer"},_sfc_main$2={__name:"hbis-password-input",props:{visible:{type:Boolean,default:!1},title:{type:String,default:"请输入密码"},confirmText:{type:String,default:"确定"},maxLength:{type:Number,default:6},showPassword:{type:Boolean,default:!1},keyboardLayout:{type:Array,default:()=>[["1","2","3"],["4","5","6"],["7","8","9"],["清除","0","删除"]]}},emits:["complete","close","confirm"],setup(o,{emit:m}){const n=o,t=m,r=vue.ref([]),u=l=>["清除","删除"].includes(l);vue.watch(r,l=>{if(l.length===n.maxLength){const i=l.join("");t("complete",i)}},{deep:!0});const a=l=>{l==="清除"?r.value=[]:l==="删除"?r.value=r.value.slice(0,-1):/^[0-9]$/.test(l)&&r.value.length<n.maxLength&&r.value.push(l)},s=()=>{},v=()=>{t("close"),t("update:visible",!1)},h=()=>{const l=r.value.join("");t("confirm",l)};return vue.onMounted(()=>{r.value=[]}),vue.watch(()=>n.visible,l=>{l&&(r.value=[])}),(l,i)=>o.visible?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$2,[vue.createElementVNode("div",{class:"password-overlay",onClick:s}),vue.createElementVNode("div",_hoisted_2$2,[vue.createElementVNode("div",_hoisted_3$1,[vue.createElementVNode("h3",_hoisted_4,vue.toDisplayString(o.title),1),vue.createElementVNode("button",{class:"password-close",onClick:v},"×")]),vue.createElementVNode("div",_hoisted_5,[vue.createElementVNode("div",_hoisted_6,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(o.maxLength,(f,c)=>(vue.openBlock(),vue.createElementBlock("div",{key:c,class:"password-input-item"},[o.showPassword?(vue.openBlock(),vue.createElementBlock("span",_hoisted_7,vue.toDisplayString(r.value[c]||""),1)):(vue.openBlock(),vue.createElementBlock("span",_hoisted_8,vue.toDisplayString(r.value[c]?"●":""),1))]))),128))]),vue.createElementVNode("div",_hoisted_9,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(o.keyboardLayout,(f,c)=>(vue.openBlock(),vue.createElementBlock("div",{key:c,class:"keyboard-row"},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(f,(_,y)=>(vue.openBlock(),vue.createElementBlock("button",{key:y,class:vue.normalizeClass(["keyboard-key",{"keyboard-key-action":u(_)}]),onClick:d=>a(_)},vue.toDisplayString(_),11,_hoisted_10))),128))]))),128))])]),vue.createElementVNode("div",_hoisted_11,[vue.createElementVNode("button",{class:"password-cancel",onClick:v},"取消"),vue.createElementVNode("button",{class:"password-confirm",onClick:h},vue.toDisplayString(o.confirmText),1)])])])):vue.createCommentVNode("",!0)}},hbisPasswordInput=_export_sfc(_sfc_main$2,[["__scopeId","data-v-32ee9eeb"]]),_hoisted_1$1={class:"hbis-empty-content"},_hoisted_2$1=["src"],_sfc_main$1={__name:"hbis-empty",props:{visible:{type:Boolean,default:!0},text:{type:String,default:"暂无数据"},showIcon:{type:Boolean,default:!0},showText:{type:Boolean,default:!0},icon:{type:String,default:""},iconWidth:{type:[String,Number],default:200},iconHeight:{type:[String,Number],default:200},textColor:{type:String,default:"#999999"},textFontSize:{type:[String,Number],default:14},containerStyle:{type:Object,default:()=>({})}},setup(o){const m=o,n={width:typeof m.iconWidth=="number"?`${m.iconWidth}px`:m.iconWidth,height:typeof m.iconHeight=="number"?`${m.iconHeight}px`:m.iconHeight},t={color:m.textColor,fontSize:typeof m.textFontSize=="number"?`${m.textFontSize}px`:m.textFontSize};return(r,u)=>o.visible?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"hbis-empty-container",style:vue.normalizeStyle(o.containerStyle)},[vue.renderSlot(r.$slots,"default",{},()=>[vue.createElementVNode("div",_hoisted_1$1,[o.showIcon?(vue.openBlock(),vue.createElementBlock("image",{key:0,src:o.icon,style:n,class:"hbis-empty-image",mode:"aspectFit"},null,8,_hoisted_2$1)):vue.createCommentVNode("",!0),o.showText?(vue.openBlock(),vue.createElementBlock("div",{key:1,style:t,class:"hbis-empty-text"},vue.toDisplayString(o.text),1)):vue.createCommentVNode("",!0)])],!0)],4)):vue.createCommentVNode("",!0)}},hbisEmpty=_export_sfc(_sfc_main$1,[["__scopeId","data-v-27a2026a"]]),_hoisted_1=["onClick"],_hoisted_2=["src"],_hoisted_3={class:"hbis-bubble-option-text"},_sfc_main={__name:"hbis-bubble-box",props:{options:{type:Array,default:()=>[]},position:{type:String,default:"top",validator:o=>["top","bottom","left","right"].includes(o)},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:280},height:{type:[String,Number],default:""},bgColor:{type:String,default:"#ffffff"},textColor:{type:String,default:"#333333"},optionItemPadding:{type:String,default:"20rpx 30rpx"},disabled:{type:Boolean,default:!1},autoClose:{type:Boolean,default:!0},zIndex:{type:Number,default:1002}},emits:["open","close","click"],setup(o,{expose:m,emit:n}){const t=o,r=n,u=vue.ref(!1),a=vue.ref(null),s=vue.computed(()=>{const y={zIndex:t.zIndex,backgroundColor:t.bgColor};return t.width&&(y.width=typeof t.width=="number"?`${t.width}rpx`:t.width),t.minWidth&&(y.minWidth=typeof t.minWidth=="number"?`${t.minWidth}rpx`:t.minWidth),t.height&&(y.height=typeof t.height=="number"?`${t.height}rpx`:t.height),y}),v=vue.computed(()=>{const y={};return t.height&&(y.maxHeight=typeof t.height=="number"?`${t.height}rpx`:t.height,y.overflowY="auto"),y}),h=y=>{const d={};return y.textColor?d.color=y.textColor:t.textColor&&(d.color=t.textColor),d},l=()=>{u.value?f():i()},i=()=>{u.value=!0,r("open"),setTimeout(()=>{document.addEventListener("click",_)},0)},f=()=>{u.value=!1,r("close"),document.removeEventListener("click",_)},c=(y,d)=>{d.disabled||t.disabled||(r("click",y),t.autoClose&&f())},_=y=>{a.value&&!a.value.contains(y.target)&&f()};return vue.onUnmounted(()=>{document.removeEventListener("click",_)}),m({open:i,close:f}),(y,d)=>(vue.openBlock(),vue.createElementBlock("div",{ref_key:"bubbleRef",ref:a,class:"hbis-bubble-box"},[vue.createElementVNode("div",{class:"hbis-bubble-trigger",onClick:l},[vue.renderSlot(y.$slots,"default",{},void 0,!0)]),u.value?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["hbis-bubble-popup",[`position-${o.position}`,{"auto-close":o.autoClose}]]),style:vue.normalizeStyle(s.value),onClick:d[0]||(d[0]=vue.withModifiers(()=>{},["stop"]))},[vue.createElementVNode("div",{class:"hbis-bubble-options",style:vue.normalizeStyle(v.value)},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(o.options,(p,e)=>(vue.openBlock(),vue.createElementBlock("div",{key:e,class:vue.normalizeClass(["hbis-bubble-option",{disabled:p.disabled||o.disabled}]),style:vue.normalizeStyle(h(p)),onClick:x=>c(e,p)},[p.icon?(vue.openBlock(),vue.createElementBlock("image",{key:0,src:p.icon,class:"hbis-bubble-option-icon",mode:"aspectFit"},null,8,_hoisted_2)):vue.createCommentVNode("",!0),vue.createElementVNode("text",_hoisted_3,vue.toDisplayString(p.text),1)],14,_hoisted_1))),128))],4),vue.createElementVNode("div",{class:vue.normalizeClass(["hbis-bubble-arrow",`arrow-${o.position}`])},null,2)],6)):vue.createCommentVNode("",!0)],512))}},hbisBubbleBox=_export_sfc(_sfc_main,[["__scopeId","data-v-f7ba99b3"]]);exports.C1=C1;exports.C2=C2;exports.HbisAutoScrollList=HbisAutoScrollList;exports.HbisSmsInput=HbisSmsInput;exports.HbisSvgaPlayer=HbisSvgaPlayer;exports.HbisWaterfall=HbisWaterfall;exports.hbisAutoScrollList=HbisAutoScrollList;exports.hbisBubbleBox=hbisBubbleBox;exports.hbisDateStrip=hbisDateStrip;exports.hbisDropDownSelect=hbisDropdownSelect;exports.hbisEmpty=hbisEmpty;exports.hbisLoading=hbisLoading;exports.hbisPasswordInput=hbisPasswordInput;exports.hbisPreviewImage=_sfc_main$b;exports.hbisSearchInput=_sfc_main$5;exports.hbisSmsInput=HbisSmsInput;exports.hbisSvgaPlayer=HbisSvgaPlayer;exports.hbisSwiper=hbisSwiper;exports.hbisWaterfall=HbisWaterfall;
|
|
12
|
+
}`])))),this.onStart(),this._doFrame()},o.prototype._doStop=function(){this._isRunning=!1,this._worker!==null&&(this._worker.terminate(),this._worker=null)},o.prototype._doFrame=function(){this._isRunning&&(this._doDeltaTime(this._currentTimeMillsecond()-this._mStartTime),this._isRunning&&(this._worker?(this._worker.onmessage=this._doFrame.bind(this),this._worker.postMessage(null)):window.requestAnimationFrame(this._doFrame.bind(this))))},o.prototype._doDeltaTime=function(l){l>=this.duration*this.loop?(this._currentFrication=this.fillRule===1?0:1,this._isRunning=!1):this._currentFrication=l%this.duration/this.duration,this.onUpdate(this.animatedValue),this._isRunning===!1&&(this._worker!==null&&(this._worker.terminate(),this._worker=null),this.onEnd())},o}();g.default=e}]).default})})(svga_lite_min);var svga_lite_minExports=svga_lite_min.exports;const _sfc_main$d={__name:"hbis-svgaPlayer",props:{src:{type:String,required:!0},autoplay:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},progress:{type:Number,default:0},speed:{type:Number,default:1},width:{type:[Number,String],default:"100%"},height:{type:[Number,String],default:"100%"}},emits:["loaded","play","pause","ended","progress","error"],setup(r,{expose:g,emit:i}){vue.useCssVars(t=>({v5ce75b7f:r.width,v26351a8e:r.height}));const e=r,o=i,l=vue.ref(null),u=vue.ref(null);let a=null,c=null,v=null;const h=async()=>{try{a=new svga_lite_minExports.Parser,v=await a.load(e.src),c=new svga_lite_minExports.Player(u.value),c.loop=e.loop,c.speed=e.speed,c.onStart=()=>o("play"),c.onPause=()=>o("pause"),c.onEnd=()=>o("ended"),c.onFrame=()=>o("progress",c.progress),await c.setAnimationData(v),e.progress>0&&(c.progress=e.progress),e.autoplay&&c.start(),o("loaded")}catch(t){console.error("SVGA 加载失败:",t),o("error",t)}},s=()=>{c&&c.start()},n=()=>{c&&c.pause()},f=()=>{c&&c.stop()},m=()=>{c&&(c.stop(),c.start())},p=t=>{c&&(c.progress=t)},d=t=>{c&&(c.speed=t)},b=t=>{c&&(c.loop=t)};return g({play:s,pause:n,stop:f,restart:m,setProgress:p,setSpeed:d,setLoop:b}),vue.watch(()=>e.src,async t=>{t&&await h()}),vue.watch(()=>e.loop,t=>{b(t)}),vue.watch(()=>e.speed,t=>{d(t)}),vue.watch(()=>e.progress,t=>{p(t)}),vue.onMounted(async()=>{await vue.nextTick(),await h()}),vue.onUnmounted(()=>{c&&(c.stop(),c=null),a&&(a=null),v=null}),(t,w)=>(vue.openBlock(),vue.createElementBlock("div",{ref_key:"containerRef",ref:l,class:"svga-player-container"},[vue.createElementVNode("canvas",{ref_key:"canvasRef",ref:u,class:"svga-player-canvas"},null,512)],512))}},HbisSvgaPlayer=_export_sfc(_sfc_main$d,[["__scopeId","data-v-6b83dcf1"]]),_hoisted_1$a={class:"search-dropdown"},_hoisted_2$a=["placeholder"],_hoisted_3$7=["onClick"],_hoisted_4$6={class:"item-text"},_sfc_main$c={__name:"hbis-search-input",props:{list:{type:Array,default:()=>[]},placeholder:{type:String,default:"请输入关键词搜索"},defaultValue:{type:String,default:""},maxHeight:{type:Number,default:200},showClear:{type:Boolean,default:!0},onFocusShowList:{type:Boolean,default:!0},enterSearch:{type:Boolean,default:!1}},emits:["clearIcon","search","select"],setup(r,{emit:g}){const i=r,e=g,o=vue.ref(i.defaultValue),l=vue.ref(!1),u=vue.ref(!1),a=vue.ref([]);function c(){o.value="",a.value=[],u.value=!1,e("clearIcon","",[])}function v(){if(!i.enterSearch)return;const m=o.value;a.value=i.list.filter(p=>p.label&&p.label.includes(m)),u.value=a.value.length>0,e("search",m,a.value)}function h(){if(i.enterSearch)return;const m=o.value;a.value=i.list.filter(p=>p.label&&p.label.includes(m)),u.value=a.value.length>0,e("search",m,a.value)}function s(){i.onFocusShowList&&(a.value=i.list.filter(m=>m.label&&m.label.includes(o.value)),u.value=!0),l.value=!0}function n(){setTimeout(()=>{l.value=!1,u.value=!1},150)}function f(m){o.value=m.label,u.value=!1,e("select",m)}return vue.onMounted(()=>{i.defaultValue&&(o.value=i.defaultValue)}),(m,p)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$a,[vue.createElementVNode("div",{class:vue.normalizeClass(["input-wrapper",{focus:l.value}])},[vue.withDirectives(vue.createElementVNode("input",{class:"search-input",placeholder:r.placeholder,"onUpdate:modelValue":p[0]||(p[0]=d=>o.value=d),onInput:h,onFocus:s,onBlur:n,onKeyup:vue.withKeys(v,["enter"])},null,40,_hoisted_2$a),[[vue.vModelText,o.value]]),o.value&&r.showClear?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"clear-icon",onClick:c},"×")):vue.createCommentVNode("",!0)],2),u.value&&a.value.length>0?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"dropdown-list",style:vue.normalizeStyle({maxHeight:r.maxHeight+"px"})},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(a.value,(d,b)=>(vue.openBlock(),vue.createElementBlock("div",{key:b,class:"dropdown-item",onClick:t=>f(d)},[vue.createElementVNode("span",_hoisted_4$6,vue.toDisplayString(d.label),1)],8,_hoisted_3$7))),128))],4)):vue.createCommentVNode("",!0)]))}},_hoisted_1$9=["src","alt"],_hoisted_2$9=["onClick"],_sfc_main$b={__name:"hbis-swiper",props:{data:{type:Array,default:()=>[]},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},duration:{type:Number,default:500},direction:{type:String,default:"horizontal",validator:r=>["horizontal","vertical"].includes(r)},showIndicators:{type:Boolean,default:!0},indicatorType:{type:String,default:"dots",validator:r=>["dots","numbers","none"].includes(r)},indicatorPosition:{type:String,default:"bottom",validator:r=>["top","bottom","left","right"].includes(r)},showArrows:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},height:{type:[String,Number],default:"300px"},width:{type:[String,Number],default:"100%"},slideWidth:{type:[String,Number],default:"100%"},slideHeight:{type:[String,Number],default:"100%"},indicatorColor:{type:String,default:"#ffffff"},indicatorActiveColor:{type:String,default:"#ffffff"},indicatorSize:{type:[String,Number],default:8},touchRatio:{type:Number,default:.5},threshold:{type:Number,default:50}},emits:["change","transition-start","transition-end"],setup(r,{expose:g,emit:i}){const e=r,o=i,l=vue.ref(null),u=vue.ref(0),a=vue.ref(!1),c=vue.ref(!1),v=vue.ref(0),h=vue.ref(0),s=vue.ref(0),n=vue.ref(null);vue.ref(!1);const f=vue.computed(()=>!e.loop||e.data.length<=1?e.data:[e.data[e.data.length-1],...e.data,e.data[0]]),m=vue.computed(()=>({width:typeof e.width=="number"?`${e.width}px`:e.width,height:typeof e.height=="number"?`${e.height}px`:e.height,position:"relative",overflow:"hidden"})),p=vue.computed(()=>({transform:`translate(${e.direction==="horizontal"?`${s.value}px, 0`:`0, ${s.value}px`})`,transition:a.value?`transform ${e.duration}ms ease`:"none",display:"flex",flexDirection:e.direction==="horizontal"?"row":"column",width:e.direction==="horizontal"?"100%":"auto",height:e.direction==="horizontal"?"100%":"auto"})),d=vue.computed(()=>({width:typeof e.slideWidth=="number"?`${e.slideWidth}px`:e.slideWidth,height:typeof e.slideHeight=="number"?`${e.slideHeight}px`:e.slideHeight,flexShrink:0,overflow:"hidden"})),b=vue.computed(()=>({backgroundColor:e.indicatorColor,width:e.indicatorType==="numbers"?"24px":`${e.indicatorSize}px`,height:`${e.indicatorSize}px`,borderRadius:e.indicatorType==="numbers"?"4px":"50%"})),t=vue.computed(()=>!e.loop||e.data.length<=1?u.value:(u.value-1+e.data.length)%e.data.length),w=()=>{if(!l.value)return;const B=e.direction==="horizontal"?l.value.offsetWidth:l.value.offsetHeight;B&&(s.value=-u.value*B)},y=B=>{a.value||c.value||B<0||B>=f.value.length||(a.value=!0,u.value=B,o("change",t.value))},_=()=>{a.value||c.value||(a.value=!0,u.value++,o("change",t.value))},E=()=>{a.value||c.value||(a.value=!0,u.value--,o("change",t.value))},S=()=>{a.value=!1,o("transition-end",t.value),e.loop&&e.data.length>1&&(u.value===0?(a.value=!0,u.value=f.value.length-2,setTimeout(()=>{a.value=!1},0)):u.value===f.value.length-1&&(a.value=!0,u.value=1,setTimeout(()=>{a.value=!1},0)))},$=()=>{A(),e.autoplay&&e.data.length>1&&(n.value=setInterval(()=>{_()},e.interval))},A=()=>{n.value&&(clearInterval(n.value),n.value=null)},z=B=>{var V,I;if(B.touches.length!==1)return;A(),c.value=!0;const N=B.touches[0];v.value=N.clientX||N.pageX,h.value=N.clientY||N.pageY;const F=e.direction==="horizontal"?(V=l.value)==null?void 0:V.offsetWidth:(I=l.value)==null?void 0:I.offsetHeight;s.value=-u.value*(F||0)},O=B=>{var T,C;if(!c.value)return;const N=B.touches[0],F=N.clientX||N.pageX,V=N.clientY||N.pageY,I=F-v.value,R=V-h.value,k=e.direction==="horizontal"?(T=l.value)==null?void 0:T.offsetWidth:(C=l.value)==null?void 0:C.offsetHeight,x=e.direction==="horizontal"?I:R;s.value=-u.value*(k||0)+x*e.touchRatio},D=()=>{var V,I;if(!c.value)return;c.value=!1;const B=e.direction==="horizontal"?(V=l.value)==null?void 0:V.offsetWidth:(I=l.value)==null?void 0:I.offsetHeight,N=-u.value*(B||0),F=s.value-N;Math.abs(F)>e.threshold?F>0?E():_():(a.value=!0,s.value=N,setTimeout(()=>{a.value=!1},e.duration)),$()};return vue.watch(()=>e.data,()=>{u.value=e.loop?1:0,w()},{immediate:!0}),vue.watch(()=>e.autoplay,B=>{B?$():A()}),vue.watch(u,()=>{w()}),vue.onMounted(()=>{var N;w(),$();const B=(N=l.value)==null?void 0:N.parentElement;B&&(B.addEventListener("touchstart",z,{passive:!0}),B.addEventListener("touchmove",O,{passive:!0}),B.addEventListener("touchend",D,{passive:!0})),window.addEventListener("resize",w)}),vue.onUnmounted(()=>{var N;A();const B=(N=l.value)==null?void 0:N.parentElement;B&&(B.removeEventListener("touchstart",z),B.removeEventListener("touchmove",O),B.removeEventListener("touchend",D)),window.removeEventListener("resize",w)}),g({next:_,prev:E,goToSlide:y,startAutoplay:$,stopAutoplay:A}),(B,N)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["hbis-swiper",{"is-vertical":r.direction==="vertical"}]),style:vue.normalizeStyle(m.value)},[vue.createElementVNode("div",{class:"swiper-wrapper",ref_key:"wrapperRef",ref:l,style:vue.normalizeStyle(p.value),onTransitionend:S},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(f.value,(F,V)=>(vue.openBlock(),vue.createElementBlock("div",{class:"swiper-slide",key:V,style:vue.normalizeStyle(d.value)},[vue.renderSlot(B.$slots,"default",{item:F,index:V},()=>[vue.createElementVNode("img",{src:F,alt:`slide-${V}`,class:"swiper-image"},null,8,_hoisted_1$9)],!0)],4))),128))],36),r.showIndicators&&f.value.length>1?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["swiper-indicators",r.indicatorPosition])},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(f.value,(F,V)=>(vue.openBlock(),vue.createElementBlock("span",{key:V,class:vue.normalizeClass(["indicator",{active:u.value===V,"is-dots":r.indicatorType==="dots","is-numbers":r.indicatorType==="numbers"}]),style:vue.normalizeStyle(b.value),onClick:I=>y(V)},[r.indicatorType==="numbers"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createTextVNode(vue.toDisplayString(V+1),1)],64)):vue.createCommentVNode("",!0)],14,_hoisted_2$9))),128))],2)):vue.createCommentVNode("",!0),r.showArrows&&f.value.length>1?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"swiper-arrow swiper-arrow-prev",onClick:E},[vue.renderSlot(B.$slots,"arrow-prev",{},()=>[N[0]||(N[0]=vue.createElementVNode("span",{class:"arrow-icon"},"‹",-1))],!0)])):vue.createCommentVNode("",!0),r.showArrows&&f.value.length>1?(vue.openBlock(),vue.createElementBlock("div",{key:2,class:"swiper-arrow swiper-arrow-next",onClick:_},[vue.renderSlot(B.$slots,"arrow-next",{},()=>[N[1]||(N[1]=vue.createElementVNode("span",{class:"arrow-icon"},"›",-1))],!0)])):vue.createCommentVNode("",!0)],6))}},hbisSwiper=_export_sfc(_sfc_main$b,[["__scopeId","data-v-61e2df95"]]),_hoisted_1$8={class:"dropdown-filter"},_hoisted_2$8={class:"filter-container"},_hoisted_3$6=["onClick"],_hoisted_4$5={class:"filter-label"},_hoisted_5$4={class:"filter-value-group"},_hoisted_6$3={class:"filter-value"},_hoisted_7$3=["onClick"],_sfc_main$a={__name:"hbis-dropdown-select",props:{options:{type:Array,default:()=>[]},modelValue:{type:Object,default:()=>({})},showArrow:{type:Boolean,default:!0},listHeight:{type:Number,default:0},chosenColor:{type:String,default:"#ee0a24"},unChosenColor:{type:String,default:"#000"},showScrollBar:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(r,{emit:g}){const i=r,e=g,o=vue.ref(-1),l=vue.ref(i.options),u=h=>{o.value===h?o.value=-1:o.value=h},a=(h,s,n)=>{const f={...i.modelValue};f[h.key]=s.value,e("update:modelValue",f),e("change",{item:h,option:s,index:n}),o.value=-1},c=h=>{const s=i.modelValue[h.key];if(s!==void 0){const n=h.options.find(f=>f.value===s);return n?n.label:"请选择"}return"请选择"},v=(h,s)=>i.modelValue[h.key]===s.value;return(h,s)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$8,[vue.createElementVNode("div",_hoisted_2$8,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(l.value,(n,f)=>(vue.openBlock(),vue.createElementBlock("div",{key:f,class:vue.normalizeClass(["filter-item",{active:o.value===f}])},[vue.createElementVNode("div",{class:"filter-header",onClick:m=>u(f)},[vue.createElementVNode("span",_hoisted_4$5,vue.toDisplayString(n.label),1),vue.createElementVNode("div",_hoisted_5$4,[vue.createElementVNode("span",_hoisted_6$3,vue.toDisplayString(c(n)),1),i.showArrow?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["arrow",{up:o.value===f}])},null,2)):vue.createCommentVNode("",!0)])],8,_hoisted_3$6),o.value===f?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass([i.showScrollBar?"dropdown-menu-show":"dropdown-menu-hide"]),style:vue.normalizeStyle(i.listHeight?`height: ${i.listHeight}px;`:`height: ${n.options.length*40}px;`)},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(n.options,(m,p)=>(vue.openBlock(),vue.createElementBlock("div",{key:p,class:vue.normalizeClass(["dropdown-item",{selected:v(n,m)}]),onClick:d=>a(n,m,f)},[vue.createElementVNode("span",{style:vue.normalizeStyle(v(n,m)?`color: ${i.chosenColor};`:`color: ${i.unChosenColor};`)},vue.toDisplayString(m.label),5)],10,_hoisted_7$3))),128))],6)):vue.createCommentVNode("",!0)],2))),128))])]))}},hbisDropdownSelect=_export_sfc(_sfc_main$a,[["__scopeId","data-v-1a98ef80"]]),_hoisted_1$7={key:0,class:"hbis-password-input"},_hoisted_2$7={class:"password-dialog"},_hoisted_3$5={class:"password-header"},_hoisted_4$4={class:"password-title"},_hoisted_5$3={class:"password-body"},_hoisted_6$2={class:"password-input-container"},_hoisted_7$2={key:0,class:"password-visible"},_hoisted_8$2={key:1,class:"password-hidden"},_hoisted_9$1={class:"password-keyboard"},_hoisted_10=["onClick"],_hoisted_11={class:"password-footer"},_sfc_main$9={__name:"hbis-password-input",props:{visible:{type:Boolean,default:!1},title:{type:String,default:"请输入密码"},confirmText:{type:String,default:"确定"},maxLength:{type:Number,default:6},showPassword:{type:Boolean,default:!1},keyboardLayout:{type:Array,default:()=>[["1","2","3"],["4","5","6"],["7","8","9"],["清除","0","删除"]]}},emits:["complete","close","confirm"],setup(r,{emit:g}){const i=r,e=g,o=vue.ref([]),l=h=>["清除","删除"].includes(h);vue.watch(o,h=>{if(h.length===i.maxLength){const s=h.join("");e("complete",s)}},{deep:!0});const u=h=>{h==="清除"?o.value=[]:h==="删除"?o.value=o.value.slice(0,-1):/^[0-9]$/.test(h)&&o.value.length<i.maxLength&&o.value.push(h)},a=()=>{},c=()=>{e("close"),e("update:visible",!1)},v=()=>{const h=o.value.join("");e("confirm",h)};return vue.onMounted(()=>{o.value=[]}),vue.watch(()=>i.visible,h=>{h&&(o.value=[])}),(h,s)=>r.visible?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$7,[vue.createElementVNode("div",{class:"password-overlay",onClick:a}),vue.createElementVNode("div",_hoisted_2$7,[vue.createElementVNode("div",_hoisted_3$5,[vue.createElementVNode("h3",_hoisted_4$4,vue.toDisplayString(r.title),1),vue.createElementVNode("button",{class:"password-close",onClick:c},"×")]),vue.createElementVNode("div",_hoisted_5$3,[vue.createElementVNode("div",_hoisted_6$2,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(r.maxLength,(n,f)=>(vue.openBlock(),vue.createElementBlock("div",{key:f,class:"password-input-item"},[r.showPassword?(vue.openBlock(),vue.createElementBlock("span",_hoisted_7$2,vue.toDisplayString(o.value[f]||""),1)):(vue.openBlock(),vue.createElementBlock("span",_hoisted_8$2,vue.toDisplayString(o.value[f]?"●":""),1))]))),128))]),vue.createElementVNode("div",_hoisted_9$1,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(r.keyboardLayout,(n,f)=>(vue.openBlock(),vue.createElementBlock("div",{key:f,class:"keyboard-row"},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(n,(m,p)=>(vue.openBlock(),vue.createElementBlock("button",{key:p,class:vue.normalizeClass(["keyboard-key",{"keyboard-key-action":l(m)}]),onClick:d=>u(m)},vue.toDisplayString(m),11,_hoisted_10))),128))]))),128))])]),vue.createElementVNode("div",_hoisted_11,[vue.createElementVNode("button",{class:"password-cancel",onClick:c},"取消"),vue.createElementVNode("button",{class:"password-confirm",onClick:v},vue.toDisplayString(r.confirmText),1)])])])):vue.createCommentVNode("",!0)}},hbisPasswordInput=_export_sfc(_sfc_main$9,[["__scopeId","data-v-32ee9eeb"]]),_hoisted_1$6={class:"hbis-empty-content"},_hoisted_2$6=["src"],_sfc_main$8={__name:"hbis-empty",props:{visible:{type:Boolean,default:!0},text:{type:String,default:"暂无数据"},showIcon:{type:Boolean,default:!0},showText:{type:Boolean,default:!0},icon:{type:String,default:""},iconWidth:{type:[String,Number],default:200},iconHeight:{type:[String,Number],default:200},textColor:{type:String,default:"#999999"},textFontSize:{type:[String,Number],default:14},containerStyle:{type:Object,default:()=>({})}},setup(r){const g=r,i={width:typeof g.iconWidth=="number"?`${g.iconWidth}px`:g.iconWidth,height:typeof g.iconHeight=="number"?`${g.iconHeight}px`:g.iconHeight},e={color:g.textColor,fontSize:typeof g.textFontSize=="number"?`${g.textFontSize}px`:g.textFontSize};return(o,l)=>r.visible?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"hbis-empty-container",style:vue.normalizeStyle(r.containerStyle)},[vue.renderSlot(o.$slots,"default",{},()=>[vue.createElementVNode("div",_hoisted_1$6,[r.showIcon?(vue.openBlock(),vue.createElementBlock("image",{key:0,src:r.icon,style:i,class:"hbis-empty-image",mode:"aspectFit"},null,8,_hoisted_2$6)):vue.createCommentVNode("",!0),r.showText?(vue.openBlock(),vue.createElementBlock("div",{key:1,style:e,class:"hbis-empty-text"},vue.toDisplayString(r.text),1)):vue.createCommentVNode("",!0)])],!0)],4)):vue.createCommentVNode("",!0)}},hbisEmpty=_export_sfc(_sfc_main$8,[["__scopeId","data-v-27a2026a"]]),_hoisted_1$5=["onClick"],_hoisted_2$5=["src"],_hoisted_3$4={class:"hbis-bubble-option-text"},_sfc_main$7={__name:"hbis-bubble-box",props:{options:{type:Array,default:()=>[]},position:{type:String,default:"top",validator:r=>["top","bottom","left","right"].includes(r)},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:280},height:{type:[String,Number],default:""},bgColor:{type:String,default:"#ffffff"},textColor:{type:String,default:"#333333"},optionItemPadding:{type:String,default:"20rpx 30rpx"},disabled:{type:Boolean,default:!1},autoClose:{type:Boolean,default:!0},zIndex:{type:Number,default:1002}},emits:["open","close","click"],setup(r,{expose:g,emit:i}){const e=r,o=i,l=vue.ref(!1),u=vue.ref(null),a=vue.computed(()=>{const p={zIndex:e.zIndex,backgroundColor:e.bgColor};return e.width&&(p.width=typeof e.width=="number"?`${e.width}rpx`:e.width),e.minWidth&&(p.minWidth=typeof e.minWidth=="number"?`${e.minWidth}rpx`:e.minWidth),e.height&&(p.height=typeof e.height=="number"?`${e.height}rpx`:e.height),p}),c=vue.computed(()=>{const p={};return e.height&&(p.maxHeight=typeof e.height=="number"?`${e.height}rpx`:e.height,p.overflowY="auto"),p}),v=p=>{const d={};return p.textColor?d.color=p.textColor:e.textColor&&(d.color=e.textColor),d},h=()=>{l.value?n():s()},s=()=>{l.value=!0,o("open"),setTimeout(()=>{document.addEventListener("click",m)},0)},n=()=>{l.value=!1,o("close"),document.removeEventListener("click",m)},f=(p,d)=>{d.disabled||e.disabled||(o("click",p),e.autoClose&&n())},m=p=>{u.value&&!u.value.contains(p.target)&&n()};return vue.onUnmounted(()=>{document.removeEventListener("click",m)}),g({open:s,close:n}),(p,d)=>(vue.openBlock(),vue.createElementBlock("div",{ref_key:"bubbleRef",ref:u,class:"hbis-bubble-box"},[vue.createElementVNode("div",{class:"hbis-bubble-trigger",onClick:h},[vue.renderSlot(p.$slots,"default",{},void 0,!0)]),l.value?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["hbis-bubble-popup",[`position-${r.position}`,{"auto-close":r.autoClose}]]),style:vue.normalizeStyle(a.value),onClick:d[0]||(d[0]=vue.withModifiers(()=>{},["stop"]))},[vue.createElementVNode("div",{class:"hbis-bubble-options",style:vue.normalizeStyle(c.value)},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(r.options,(b,t)=>(vue.openBlock(),vue.createElementBlock("div",{key:t,class:vue.normalizeClass(["hbis-bubble-option",{disabled:b.disabled||r.disabled}]),style:vue.normalizeStyle(v(b)),onClick:w=>f(t,b)},[b.icon?(vue.openBlock(),vue.createElementBlock("image",{key:0,src:b.icon,class:"hbis-bubble-option-icon",mode:"aspectFit"},null,8,_hoisted_2$5)):vue.createCommentVNode("",!0),vue.createElementVNode("text",_hoisted_3$4,vue.toDisplayString(b.text),1)],14,_hoisted_1$5))),128))],4),vue.createElementVNode("div",{class:vue.normalizeClass(["hbis-bubble-arrow",`arrow-${r.position}`])},null,2)],6)):vue.createCommentVNode("",!0)],512))}},hbisBubbleBox=_export_sfc(_sfc_main$7,[["__scopeId","data-v-f7ba99b3"]]),_hoisted_1$4={key:0,class:"hbis-share-sheet-header"},_hoisted_2$4={key:0,class:"hbis-share-sheet-title"},_hoisted_3$3={key:1,class:"hbis-share-sheet-description"},_hoisted_4$3={class:"hbis-share-sheet-content"},_hoisted_5$2=["onClick"],_hoisted_6$1=["src"],_hoisted_7$1={key:1,class:"hbis-share-sheet-item-icon-text"},_hoisted_8$1={class:"hbis-share-sheet-footer"},_sfc_main$6={__name:"hbis-share-sheet",props:{visible:{type:Boolean,default:!1},itemList:{type:Array,default:()=>[]},title:{type:String,default:""},description:{type:String,default:""},cancel:{type:String,default:"取消"},duration:{type:Number,default:300},zIndex:{type:Number,default:9999}},emits:["update:visible","select","cancel","open","close"],setup(r,{expose:g,emit:i}){const e=r,o=i,l=vue.computed(()=>!e.itemList||e.itemList.length===0?[]:Array.isArray(e.itemList[0])?e.itemList:[e.itemList]),u=p=>p?p.startsWith("http://")||p.startsWith("https://")||p.startsWith("/")||p.includes(".png")||p.includes(".jpg")||p.includes(".jpeg")||p.includes(".gif"):!1,a=p=>{const d={};return p.background&&(d.backgroundColor=p.background),d},c=p=>{const d={};return p.color&&(d.color=p.color),p.iconFamily&&(d.fontFamily=p.iconFamily),d},v=()=>{},h=()=>{f()},s=(p,d,b)=>{o("select",p,d,b),f()},n=()=>{o("cancel"),f()},f=()=>{o("update:visible",!1),o("close"),document.removeEventListener("touchmove",m)},m=p=>{p.preventDefault()};return vue.watch(()=>e.visible,p=>{p?(o("open"),document.body.style.overflow="hidden",document.addEventListener("touchmove",m,{passive:!1})):(document.body.style.overflow="",document.removeEventListener("touchmove",m))}),vue.onUnmounted(()=>{document.body.style.overflow="",document.removeEventListener("touchmove",m)}),g({open:()=>o("update:visible",!0),close:f}),(p,d)=>r.visible?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"hbis-share-sheet-container",onClick:v},[vue.createElementVNode("div",{class:"hbis-share-sheet-overlay",onClick:h}),vue.createElementVNode("div",{class:"hbis-share-sheet-panel",onClick:d[0]||(d[0]=vue.withModifiers(()=>{},["stop"]))},[r.title||r.description?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$4,[r.title?(vue.openBlock(),vue.createElementBlock("h3",_hoisted_2$4,vue.toDisplayString(r.title),1)):vue.createCommentVNode("",!0),r.description?(vue.openBlock(),vue.createElementBlock("p",_hoisted_3$3,vue.toDisplayString(r.description),1)):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_4$3,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(l.value,(b,t)=>(vue.openBlock(),vue.createElementBlock("div",{key:t,class:"hbis-share-sheet-row"},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(b,(w,y)=>(vue.openBlock(),vue.createElementBlock("div",{key:`${t}-${y}`,class:"hbis-share-sheet-item",style:vue.normalizeStyle(a(w)),onClick:_=>s(w,y,t)},[vue.createElementVNode("div",{class:"hbis-share-sheet-item-icon",style:vue.normalizeStyle(c(w))},[u(w.icon)?(vue.openBlock(),vue.createElementBlock("image",{key:0,src:w.icon,class:"hbis-share-sheet-item-icon-image",mode:"aspectFit"},null,8,_hoisted_6$1)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_7$1,vue.toDisplayString(w.icon),1))],4),vue.createElementVNode("div",{class:"hbis-share-sheet-item-name",style:vue.normalizeStyle({color:w.color||"#333"})},vue.toDisplayString(w.name),5)],12,_hoisted_5$2))),128))]))),128))]),vue.createElementVNode("div",_hoisted_8$1,[vue.createElementVNode("button",{class:"hbis-share-sheet-cancel",onClick:n},vue.toDisplayString(r.cancel),1)])])])):vue.createCommentVNode("",!0)}},hbisShareSheet=_export_sfc(_sfc_main$6,[["__scopeId","data-v-55c87ab1"]]),_sfc_main$5={__name:"hbis-popup",props:{visible:{type:Boolean,default:!1},position:{type:String,default:"center",validator:r=>["center","top","right","bottom","left"].includes(r)},closable:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!0},duration:{type:[Number,Boolean],default:300},zIndex:{type:Number,default:10},customStyle:{type:String,default:""},modal:{type:Boolean,default:!0},modalStyle:{type:String,default:""},hideWhenClose:{type:Boolean,default:!0},lazyRender:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!1},transition:{type:String,default:"fade",validator:r=>["fade","fade-up","fade-down","fade-left","fade-right","slide-up","slide-down","slide-left","slide-right","zoom-in"].includes(r)},lockScroll:{type:Boolean,default:!0},rootPortal:{type:Boolean,default:!1},customClass:{type:String,default:""}},emits:["update:visible","close","click-modal","before-enter","enter","after-enter","before-leave","leave","after-leave"],setup(r,{expose:g,emit:i}){const e=r,o=i,l=vue.computed(()=>({zIndex:e.zIndex})),u=vue.computed(()=>{const n={};return e.customStyle&&e.customStyle.split(";").filter(m=>m.trim()).forEach(m=>{const[p,d]=m.split(":").map(b=>b.trim());p&&d&&(n[p]=d)}),e.safeAreaInsetBottom&&e.position==="bottom"&&(n.paddingBottom="env(safe-area-inset-bottom)"),n}),a=vue.computed(()=>{const n={};return e.modalStyle&&e.modalStyle.split(";").filter(m=>m.trim()).forEach(m=>{const[p,d]=m.split(":").map(b=>b.trim());p&&d&&(n[p]=d)}),n}),c=()=>{},v=()=>{o("click-modal"),e.closeOnClickModal&&h()},h=()=>{o("close"),o("update:visible",!1),document.removeEventListener("touchmove",s),e.lockScroll&&(document.body.style.overflow="")},s=n=>{n.preventDefault()};return vue.watch(()=>e.visible,n=>{n?(o("before-enter"),e.lockScroll&&(document.body.style.overflow="hidden",document.addEventListener("touchmove",s,{passive:!1})),setTimeout(()=>{o("enter"),setTimeout(()=>{o("after-enter")},e.duration)},0)):(o("before-leave"),setTimeout(()=>{o("leave"),setTimeout(()=>{o("after-leave")},e.duration)},0))}),vue.onUnmounted(()=>{document.body.style.overflow="",document.removeEventListener("touchmove",s)}),g({open:()=>o("update:visible",!0),close:h}),(n,f)=>r.visible||!r.hideWhenClose?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"hbis-popup-container",style:vue.normalizeStyle(l.value),onClick:c},[r.modal?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"hbis-popup-overlay",style:vue.normalizeStyle(a.value),onClick:v},null,4)):vue.createCommentVNode("",!0),vue.createElementVNode("div",{class:vue.normalizeClass(["hbis-popup-content",[`hbis-popup-position-${r.position}`,{"hbis-popup-closable":r.closable}]]),style:vue.normalizeStyle(u.value),onClick:f[0]||(f[0]=vue.withModifiers(()=>{},["stop"]))},[r.closable?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"hbis-popup-close",onClick:h},[...f[1]||(f[1]=[vue.createElementVNode("span",{class:"hbis-popup-close-icon"},"×",-1)])])):vue.createCommentVNode("",!0),vue.renderSlot(n.$slots,"default",{},void 0,!0)],6)],4)):vue.createCommentVNode("",!0)}},hbisPopup=_export_sfc(_sfc_main$5,[["__scopeId","data-v-091517df"]]),_hoisted_1$3={class:"hbis-navbar-container"},_hoisted_2$3={key:0,class:"hbis-navbar-left-arrow"},_hoisted_3$2={key:1,class:"hbis-navbar-left-text"},_hoisted_4$2={class:"hbis-navbar-title"},_hoisted_5$1={key:0},_sfc_main$4={__name:"hbis-navbar",props:{title:{type:String,default:""},leftText:{type:String,default:""},rightText:{type:String,default:""},leftArrow:{type:Boolean,default:!1},bordered:{type:Boolean,default:!0},fixed:{type:Boolean,default:!1},placeholder:{type:Boolean,default:!1},zIndex:{type:Number,default:1},safeAreaInsetTop:{type:Boolean,default:!1},leftDisabled:{type:Boolean,default:!1},rightDisabled:{type:Boolean,default:!1},customClass:{type:String,default:""},customStyle:{type:String,default:""}},emits:["click-left","click-right"],setup(r,{emit:g}){const i=r,e=g,o=vue.computed(()=>{const c={};return c.zIndex=i.zIndex,i.safeAreaInsetTop&&(c.paddingTop="env(safe-area-inset-top)"),i.customStyle&&i.customStyle.split(";").filter(h=>h.trim()).forEach(h=>{const[s,n]=h.split(":").map(f=>f.trim());s&&n&&(c[s]=n)}),c}),l=vue.computed(()=>{const c={};return i.safeAreaInsetTop&&(c.paddingTop="env(safe-area-inset-top)"),c}),u=()=>{i.leftDisabled||e("click-left")},a=()=>{i.rightDisabled||e("click-right")};return(c,v)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$3,[r.fixed&&r.placeholder?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"hbis-navbar-placeholder",style:vue.normalizeStyle(l.value)},null,4)):vue.createCommentVNode("",!0),vue.createElementVNode("div",{class:vue.normalizeClass(["hbis-navbar",[{"hbis-navbar-fixed":r.fixed},{"hbis-navbar-bordered":r.bordered}]]),style:vue.normalizeStyle(o.value)},[vue.renderSlot(c.$slots,"capsule",{},void 0,!0),c.$slots.capsule?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"hbis-navbar-left",onClick:u},[vue.renderSlot(c.$slots,"left",{},()=>[r.leftText||r.leftArrow?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["hbis-navbar-left-content",{"hbis-navbar-left-disabled":r.leftDisabled}])},[r.leftArrow?(vue.openBlock(),vue.createElementBlock("span",_hoisted_2$3,"←")):vue.createCommentVNode("",!0),r.leftText?(vue.openBlock(),vue.createElementBlock("span",_hoisted_3$2,vue.toDisplayString(r.leftText),1)):vue.createCommentVNode("",!0)],2)):vue.createCommentVNode("",!0)],!0)])),vue.createElementVNode("div",_hoisted_4$2,[vue.renderSlot(c.$slots,"title",{},()=>[r.title?(vue.openBlock(),vue.createElementBlock("span",_hoisted_5$1,vue.toDisplayString(r.title),1)):vue.createCommentVNode("",!0)],!0)]),vue.createElementVNode("div",{class:"hbis-navbar-right",onClick:a},[vue.renderSlot(c.$slots,"right",{},()=>[r.rightText?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["hbis-navbar-right-content",{"hbis-navbar-right-disabled":r.rightDisabled}])},vue.toDisplayString(r.rightText),3)):vue.createCommentVNode("",!0)],!0)])],6)]))}},hbisNavbar=_export_sfc(_sfc_main$4,[["__scopeId","data-v-6ca82b09"]]),_hoisted_1$2=["onClick"],_hoisted_2$2={class:"hbis-segmented-item-label"},_sfc_main$3={__name:"hbis-segmented",props:{value:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1},size:{type:String,default:"middle",validator:r=>["large","middle","small"].includes(r)},options:{type:Array,default:()=>[]},vibrateShort:{type:Boolean,default:!1},customStyle:{type:String,default:""},customClass:{type:String,default:""}},emits:["update:value","change","click"],setup(r,{expose:g,emit:i}){const e=r,o=i,l=vue.ref(null),u=vue.ref(null),a=vue.computed(()=>e.options.map(n=>typeof n=="string"||typeof n=="number"?{value:n,disabled:!1}:n)),c=vue.computed(()=>{const n={};return e.customStyle&&e.customStyle.split(";").filter(m=>m.trim()).forEach(m=>{const[p,d]=m.split(":").map(b=>b.trim());p&&d&&(n[p]=d)}),n}),v=vue.ref({}),h=(n,f)=>{e.disabled||n.disabled||(o("click",n),n.value!==e.value&&(e.vibrateShort&&typeof navigator<"u"&&navigator.vibrate&&navigator.vibrate(10),o("update:value",n.value),o("change",n),vue.nextTick(()=>{s()})))},s=(n=!0)=>{if(!l.value||!u.value)return;const f=l.value.querySelector(".hbis-segmented-item-active");if(!f)return;const{left:m,width:p}=f.getBoundingClientRect(),{left:d}=l.value.getBoundingClientRect();v.value={left:`${m-d}px`,width:`${p}px`,transition:n?"all 0.3s ease":"none"}};return vue.watch(()=>e.value,()=>{vue.nextTick(()=>{s()})}),vue.watch(()=>e.options,()=>{vue.nextTick(()=>{s(!1)})},{deep:!0}),vue.onMounted(()=>{vue.nextTick(()=>{s(!1)})}),g({updateActiveStyle:s}),(n,f)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["hbis-segmented",[`hbis-segmented-${r.size}`,{"hbis-segmented-disabled":r.disabled}]]),style:vue.normalizeStyle(c.value)},[vue.createElementVNode("div",{class:"hbis-segmented-container",ref_key:"containerRef",ref:l},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(a.value,(m,p)=>(vue.openBlock(),vue.createElementBlock("div",{key:m.value,class:vue.normalizeClass(["hbis-segmented-item",{"hbis-segmented-item-active":m.value===r.value,"hbis-segmented-item-disabled":m.disabled}]),onClick:d=>h(m)},[vue.renderSlot(n.$slots,"label",{option:m},()=>[vue.createElementVNode("span",_hoisted_2$2,vue.toDisplayString(m.value),1)],!0)],10,_hoisted_1$2))),128)),vue.createElementVNode("div",{class:"hbis-segmented-active",ref_key:"activeRef",ref:u,style:vue.normalizeStyle(v.value)},null,4)],512)],6))}},hbisSegmented=_export_sfc(_sfc_main$3,[["__scopeId","data-v-b45fdcb8"]]),_hoisted_1$1={key:0,class:"hbis-checkbox-button-content"},_hoisted_2$1={key:1,class:"hbis-checkbox-content"},_hoisted_3$1={key:0,class:"hbis-checkbox-icon-check"},_hoisted_4$1={key:0,class:"hbis-checkbox-label"},_sfc_main$2={__name:"hbis-checkbox",props:{modelValue:{type:[Boolean,String,Number],default:!1},trueValue:{type:[Boolean,String,Number],default:!0},falseValue:{type:[Boolean,String,Number],default:!1},shape:{type:String,default:"circle",validator:r=>["circle","square","button"].includes(r)},checkedColor:{type:String,default:"#409eff"},disabled:{type:Boolean,default:!1},customStyle:{type:String,default:""},customClass:{type:String,default:""}},emits:["update:modelValue","change"],setup(r,{expose:g,emit:i}){const e=r,o=i,l=vue.inject("checkboxGroup",null),u=vue.computed(()=>e.disabled||l&&l.disabled),a=vue.computed(()=>l?l.value.value.includes(e.modelValue):e.modelValue===e.trueValue),c=vue.computed(()=>{const n={};return e.customStyle&&e.customStyle.split(";").filter(m=>m.trim()).forEach(m=>{const[p,d]=m.split(":").map(b=>b.trim());p&&d&&(n[p]=d)}),n}),v=vue.computed(()=>({borderColor:a.value?e.checkedColor:"#dcdfe6",backgroundColor:a.value?e.checkedColor:"transparent",color:a.value?"#fff":"transparent"})),h=()=>{if(!u.value)if(l)l.toggle(e.modelValue);else{const n=a.value?e.falseValue:e.trueValue;o("update:modelValue",n),o("change",{value:n})}};return g({toggle:()=>{h()}}),(n,f)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["hbis-checkbox",[`hbis-checkbox-${r.shape}`,{"hbis-checkbox-disabled":u.value},{"hbis-checkbox-checked":a.value},{"hbis-checkbox-button":r.shape==="button"}]]),style:vue.normalizeStyle(c.value),onClick:h},[r.shape==="button"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1,[vue.renderSlot(n.$slots,"default",{},void 0,!0)])):(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$1,[vue.createElementVNode("div",{class:"hbis-checkbox-icon",style:vue.normalizeStyle(v.value)},[a.value?(vue.openBlock(),vue.createElementBlock("span",_hoisted_3$1,"✓")):vue.createCommentVNode("",!0)],4),n.$slots.default?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$1,[vue.renderSlot(n.$slots,"default",{},void 0,!0)])):vue.createCommentVNode("",!0)]))],6))}},hbisCheckbox=_export_sfc(_sfc_main$2,[["__scopeId","data-v-65b8f51f"]]),_sfc_main$1={__name:"hbis-checkbox-group",props:{modelValue:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},cell:{type:Boolean,default:!1},min:{type:Number,default:0},max:{type:Number,default:1/0},customStyle:{type:String,default:""},customClass:{type:String,default:""}},emits:["update:modelValue","change"],setup(r,{emit:g}){const i=r,e=g,o=vue.ref([...i.modelValue]),l={value:o,disabled:i.disabled,toggle:u};vue.provide("checkboxGroup",l);function u(c){const v=o.value.indexOf(c);if(v===-1){if(o.value.length>=i.max)return;o.value.push(c)}else{if(o.value.length<=i.min)return;o.value.splice(v,1)}e("update:modelValue",[...o.value]),e("change",{value:[...o.value]})}vue.watch(()=>i.modelValue,c=>{o.value=[...c]},{deep:!0}),vue.watch(()=>i.disabled,c=>{l.disabled=c});const a={};return(c,v)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["hbis-checkbox-group",[{"hbis-checkbox-group-inline":r.inline},{"hbis-checkbox-group-cell":r.cell}]]),style:a},[vue.renderSlot(c.$slots,"default",{},void 0,!0)],2))}},hbisCheckboxGroup=_export_sfc(_sfc_main$1,[["__scopeId","data-v-a7d0f349"]]),_hoisted_1={key:0,class:"hbis-input-required"},_hoisted_2={class:"hbis-input-container"},_hoisted_3={key:0,class:"hbis-input-prefix"},_hoisted_4={key:0,class:"hbis-input-icon"},_hoisted_5=["type","placeholder","disabled","readonly","maxlength","placeholder-style","placeholder-class","focus","cursor-spacing","cursor","selection-start","selection-end","adjust-position","confirm-type","confirm-hold","always-embed"],_hoisted_6={key:2,class:"hbis-input-suffix"},_hoisted_7={key:0,class:"hbis-input-icon"},_hoisted_8={class:"hbis-input-icon"},_hoisted_9={key:1,class:"hbis-input-word-limit"},_sfc_main={__name:"hbis-input",props:{type:{type:String,default:"text",validator:r=>["text","number","digit","idcard","safe-password","nickname","tel"].includes(r)},modelValue:{type:[String,Number],default:""},placeholder:{type:String,default:"请输入..."},clearable:{type:Boolean,default:!1},maxlength:{type:Number,default:-1},showPassword:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},prefixIcon:{type:String,default:""},suffixIcon:{type:String,default:""},showWordLimit:{type:Boolean,default:!1},confirmType:{type:String,default:"done",validator:r=>["done","go","next","search","send"].includes(r)},confirmHold:{type:Boolean,default:!1},alwaysEmbed:{type:Boolean,default:!1},placeholderStyle:{type:String,default:""},placeholderClass:{type:String,default:""},focus:{type:Boolean,default:!1},cursorSpacing:{type:Number,default:0},cursor:{type:Number,default:-1},selectionStart:{type:Number,default:-1},selectionEnd:{type:Number,default:-1},adjustPosition:{type:Boolean,default:!0},label:{type:String,default:""},size:{type:String,default:"",validator:r=>["","large"].includes(r)},error:{type:Boolean,default:!1},center:{type:Boolean,default:!1},labelWidth:{type:String,default:"33%"},required:{type:Boolean,default:!1},clearTrigger:{type:String,default:"",validator:r=>["","focus"].includes(r)},focusWhenClear:{type:Boolean,default:!0},customStyle:{type:String,default:""},customClass:{type:String,default:""}},emits:["update:modelValue","input","change","focus","blur","confirm","clear"],setup(r,{expose:g,emit:i}){const e=r,o=i,l=vue.ref(e.modelValue),u=vue.ref(!1),a=vue.ref(!1),c=vue.ref(null),v=vue.computed(()=>e.showPassword&&!u.value?"password":e.type),h=vue.computed(()=>e.clearTrigger!=="focus"),s=vue.computed(()=>{const y={};return e.customStyle&&e.customStyle.split(";").filter(E=>E.trim()).forEach(E=>{const[S,$]=E.split(":").map(A=>A.trim());S&&$&&(y[S]=$)}),y}),n=vue.computed(()=>({width:e.labelWidth})),f=y=>{const _=y.target.value;l.value=_,o("update:modelValue",_),o("input",y)},m=y=>{o("change",y)},p=y=>{a.value=!0,o("focus",y)},d=y=>{a.value=!1,o("blur",y)},b=y=>{o("confirm",y)},t=()=>{l.value="",o("update:modelValue",""),o("clear"),e.focusWhenClear&&c.value&&c.value.focus()},w=()=>{u.value=!u.value};return vue.watch(()=>e.modelValue,y=>{l.value=y}),g({focus:()=>{var y;return(y=c.value)==null?void 0:y.focus()},blur:()=>{var y;return(y=c.value)==null?void 0:y.blur()}}),(y,_)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["hbis-input",[`hbis-input-${r.size}`,{"hbis-input-disabled":r.disabled},{"hbis-input-error":r.error},{"hbis-input-center":r.center}]]),style:vue.normalizeStyle(s.value)},[r.label?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"hbis-input-label",style:vue.normalizeStyle(n.value)},[r.required?(vue.openBlock(),vue.createElementBlock("span",_hoisted_1,"*")):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString(r.label),1)],4)):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_2,[r.prefixIcon||y.$slots.prefix?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3,[vue.renderSlot(y.$slots,"prefix",{},()=>[r.prefixIcon?(vue.openBlock(),vue.createElementBlock("span",_hoisted_4,vue.toDisplayString(r.prefixIcon),1)):vue.createCommentVNode("",!0)],!0)])):vue.createCommentVNode("",!0),r.type!=="textarea"?vue.withDirectives((vue.openBlock(),vue.createElementBlock("input",{key:1,type:v.value,"onUpdate:modelValue":_[0]||(_[0]=E=>l.value=E),placeholder:r.placeholder,disabled:r.disabled,readonly:r.readonly,maxlength:r.maxlength,"placeholder-style":r.placeholderStyle,"placeholder-class":r.placeholderClass,focus:r.focus,"cursor-spacing":r.cursorSpacing,cursor:r.cursor,"selection-start":r.selectionStart,"selection-end":r.selectionEnd,"adjust-position":r.adjustPosition,"confirm-type":r.confirmType,"confirm-hold":r.confirmHold,"always-embed":r.alwaysEmbed,onInput:f,onChange:m,onFocus:p,onBlur:d,onConfirm:b,class:"hbis-input-field"},null,40,_hoisted_5)),[[vue.vModelDynamic,l.value]]):vue.createCommentVNode("",!0),r.suffixIcon||y.$slots.suffix?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6,[vue.renderSlot(y.$slots,"suffix",{},()=>[r.suffixIcon?(vue.openBlock(),vue.createElementBlock("span",_hoisted_7,vue.toDisplayString(r.suffixIcon),1)):vue.createCommentVNode("",!0)],!0)])):vue.createCommentVNode("",!0),r.showPassword?(vue.openBlock(),vue.createElementBlock("div",{key:3,class:"hbis-input-password-toggle",onClick:w},[vue.createElementVNode("span",_hoisted_8,vue.toDisplayString(u.value?"👁️":"👁️🗨️"),1)])):vue.createCommentVNode("",!0),r.clearable&&(h.value||r.clearTrigger==="focus"&&a.value)&&l.value?(vue.openBlock(),vue.createElementBlock("div",{key:4,class:"hbis-input-clear",onClick:t},[..._[1]||(_[1]=[vue.createElementVNode("span",{class:"hbis-input-icon"},"✕",-1)])])):vue.createCommentVNode("",!0)]),r.showWordLimit&&r.maxlength?(vue.openBlock(),vue.createElementBlock("div",_hoisted_9,vue.toDisplayString(l.value.length)+"/"+vue.toDisplayString(r.maxlength),1)):vue.createCommentVNode("",!0)],6))}},hbisInput=_export_sfc(_sfc_main,[["__scopeId","data-v-4c67f39f"]]);exports.C1=C1;exports.C2=C2;exports.HbisAutoScrollList=HbisAutoScrollList;exports.HbisSmsInput=HbisSmsInput;exports.HbisSvgaPlayer=HbisSvgaPlayer;exports.HbisWaterfall=HbisWaterfall;exports.hbisAutoScrollList=HbisAutoScrollList;exports.hbisBubbleBox=hbisBubbleBox;exports.hbisCheckbox=hbisCheckbox;exports.hbisCheckboxGroup=hbisCheckboxGroup;exports.hbisDateStrip=hbisDateStrip;exports.hbisDropDownSelect=hbisDropdownSelect;exports.hbisEmpty=hbisEmpty;exports.hbisInput=hbisInput;exports.hbisLoading=hbisLoading;exports.hbisNavbar=hbisNavbar;exports.hbisPasswordInput=hbisPasswordInput;exports.hbisPopup=hbisPopup;exports.hbisPreviewImage=_sfc_main$i;exports.hbisSearchInput=_sfc_main$c;exports.hbisSegmented=hbisSegmented;exports.hbisShareSheet=hbisShareSheet;exports.hbisSmsInput=HbisSmsInput;exports.hbisSvgaPlayer=HbisSvgaPlayer;exports.hbisSwiper=hbisSwiper;exports.hbisWaterfall=HbisWaterfall;
|
|
13
13
|
//# sourceMappingURL=index.cjs.js.map
|