Files
appco_dist/.output/public/_nuxt/BZ33drkU.js
T

75 lines
84 KiB
JavaScript
Raw Normal View History

2026-03-03 20:40:54 +03:30
import{bJ as zt,c6 as Bt,D as _,b3 as Le,r as T,J as De,aC as N,o as Ae,bv as tt,aU as Ht,l as U,s as Pe,aa as Ut,d as pe,a0 as Se,bc as Ft,aJ as de,a1 as He,aI as Oe,bR as Ee,ag as yt,b2 as Gt,dK as Vt,cp as it,dL as Xt,aL as Yt,a$ as Zt,cu as Re,b0 as nt,dM as qt,dH as Jt,c1 as Qt,cv as Kt,b7 as ei,cz as ti,aE as wt,c3 as ze,aQ as ii,b5 as ni,df as ri,I as Ct,H as St,e as xt,z as A,A as ee,a2 as si,dN as ai,af as $e,a3 as ie,B as y,G as le,C as ce,a8 as oi,K as re,bT as _t,T as fe,u as li,di as ui,dO as ci,dP as di,E as rt,U as hi,dQ as pi}from"./CE4SaZgW.js";import{b as Ie,c as Pt,d as Ue,w as Ve,k as fi,m as kt,t as st,l as vi,s as mi}from"./C_1pJ-hg.js";import{_ as gi}from"./LnMFAdTT.js";import{B as ve}from"./DAaUah2x.js";import{U as bi}from"./KYGZybbC.js";import{B as yi}from"./CSzw-WNk.js";import{u as Mt}from"./UfKM_8Ux.js";import{R as wi}from"./DJqfVuFV.js";import{E as Ci}from"./Dmy9LQHx.js";import{_ as Si}from"./Tyt-5zMt.js";import{_ as Ot}from"./DlAUqK2U.js";import{u as xi}from"./CfQT9Pjy.js";import"./DPkf2bcV.js";import"./C9-mKqzf.js";import"./CjPHwh7J.js";import"./cA5fh2lg.js";import"./BD2G5fvF.js";import"./B2MUeQ_z.js";import"./BQKhYWGC.js";import"./ogsyABxJ.js";import"./PGC92_Sj.js";import"./DFL6LqjW.js";import"./0N7JoioX.js";import"./CDDBg3Y_.js";var _i="[object Number]";function Pi(n){return typeof n=="number"||zt(n)&&Bt(n)==_i}var ki={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};function at(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},i=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),i.forEach(function(r){Mi(n,r,t[r])})}return n}function Mi(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Xe=function(e,t){var i=at({},e,t.attrs);return _(Le,at({},i,{icon:ki}),null)};Xe.displayName="LeftOutlined";Xe.inheritAttrs=!1;function Oi(){const n=document.documentElement.clientWidth,e=window.innerHeight||document.documentElement.clientHeight;return{width:n,height:e}}function Et(n){const e=n.getBoundingClientRect(),t=document.documentElement;return{left:e.left+(window.pageXOffset||t.scrollLeft)-(t.clientLeft||document.body.clientLeft||0),top:e.top+(window.pageYOffset||t.scrollTop)-(t.clientTop||document.body.clientTop||0)}}function Ei(n){const e=T(null),t=De(N({},n)),i=T([]),r=s=>{e.value===null&&(i.value=[],e.value=tt(()=>{let o;i.value.forEach(a=>{o=N(N({},o),a)}),N(t,o),e.value=null})),i.value.push(s)};return Ae(()=>{e.value&&tt.cancel(e.value)}),[t,r]}function ot(n,e,t,i){const r=e+t,s=(t-i)/2;if(t>i){if(e>0)return{[n]:s};if(e<0&&r<i)return{[n]:-s}}else if(e<0||r>i)return{[n]:e<0?s:-s};return{}}function Ri(n,e,t,i){const{width:r,height:s}=Oi();let o=null;return n<=r&&e<=s?o={x:0,y:0}:(n>r||e>s)&&(o=N(N({},ot("x",t,n,r)),ot("y",i,e,s))),o}var Ti=function(n,e){var t={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&e.indexOf(i)<0&&(t[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(n);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(n,i[r])&&(t[i[r]]=n[i[r]]);return t};const lt=Symbol("previewGroupContext"),Ye={provide:n=>{Ut(lt,n)},inject:()=>Ht(lt,{isPreviewGroup:Pe(!1),previewUrls:U(()=>new Map),setPreviewUrls:()=>{},current:T(null),setCurrent:()=>{},setShowPreview:()=>{},setMousePosition:()=>{},registerImage:null,rootClassName:""})},Li=()=>({previewPrefixCls:String,preview:{type:[Boolean,Object],default:!0},icons:{type:Object,default:()=>({})}}),Rt=pe({compatConfig:{MODE:3},name:"PreviewGroup",inheritAttrs:!1,props:Li(),setup(n,e){let{slots:t}=e;const i=U(()=>{const g={visible:void 0,onVisibleChange:()=>{}
2026-02-22 12:27:05 +03:30
<style${i?` nonce="${i}"`:""}>
:host {
user-select: none;
min-width: 1px;
}
:host audio {
display: block;
width: 100%;
}
:host .scroll {
overflow-x: auto;
overflow-y: hidden;
width: 100%;
position: relative;
}
:host .noScrollbar {
scrollbar-color: transparent;
scrollbar-width: none;
}
:host .noScrollbar::-webkit-scrollbar {
display: none;
-webkit-appearance: none;
}
:host .wrapper {
position: relative;
overflow: visible;
z-index: 2;
}
:host .canvases {
min-height: ${this.getHeight(this.options.height,this.options.splitChannels)}px;
pointer-events: none;
}
:host .canvases > div {
position: relative;
}
:host canvas {
display: block;
position: absolute;
top: 0;
image-rendering: pixelated;
}
:host .progress {
pointer-events: none;
position: absolute;
z-index: 2;
top: 0;
left: 0;
width: 0;
height: 100%;
overflow: hidden;
}
:host .progress > div {
position: relative;
}
:host .cursor {
pointer-events: none;
position: absolute;
z-index: 5;
top: 0;
left: 0;
height: 100%;
border-radius: 2px;
}
</style>
<div class="scroll" part="scroll">
<div class="wrapper" part="wrapper">
<div class="canvases" part="canvases"></div>
<div class="progress" part="progress"></div>
<div class="cursor" part="cursor"></div>
</div>
</div>
2026-02-22 22:14:30 +03:30
`,[e,t]}setOptions(e){if(this.options.container!==e.container){const t=this.parentFromOptionsContainer(e.container);t.appendChild(this.container),this.parent=t}e.dragToSeek!==!0&&typeof this.options.dragToSeek!="object"||this.initDrag(),this.options=e,this.reRender()}getWrapper(){return this.wrapper}getWidth(){return this.scrollContainer.clientWidth}getScroll(){return this.scrollContainer.scrollLeft}setScroll(e){this.scrollContainer.scrollLeft=e}setScrollPercentage(e){const{scrollWidth:t}=this.scrollContainer,i=t*e;this.setScroll(i)}destroy(){var e;this.subscriptions.forEach((t=>t())),this.container.remove(),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),(e=this.unsubscribeOnScroll)===null||e===void 0||e.forEach((t=>t())),this.unsubscribeOnScroll=[],this.dragStream&&(this.dragStream.cleanup(),this.dragStream=null),this.scrollStream&&(this.scrollStream.cleanup(),this.scrollStream=null)}createDelay(e=10){let t,i;const r=()=>{t&&(clearTimeout(t),t=void 0),i&&(i(),i=void 0)};return this.timeouts.push(r),()=>new Promise(((s,o)=>{r(),i=o,t=setTimeout((()=>{t=void 0,i=void 0,s()}),e)}))}getHeight(e,t){var i;const r=((i=this.audioData)===null||i===void 0?void 0:i.numberOfChannels)||1;return(function({optionsHeight:s,optionsSplitChannels:o,parentHeight:a,numberOfChannels:u,defaultHeight:l=128}){if(s==null)return l;const d=Number(s);if(!isNaN(d))return d;if(s==="auto"){const p=a||l;return o?.every((f=>!f.overlay))?p/u:p}return l})({optionsHeight:e,optionsSplitChannels:t,parentHeight:this.parent.clientHeight,numberOfChannels:r,defaultHeight:128})}convertColorValues(e,t){return(function(i,r,s){if(!Array.isArray(i))return i||"";if(i.length===0)return"#999";if(i.length<2)return i[0]||"";const o=document.createElement("canvas"),a=o.getContext("2d"),u=s??o.height*r,l=a.createLinearGradient(0,0,0,u||r),d=1/(i.length-1);return i.forEach(((p,f)=>{l.addColorStop(f*d,p)})),l})(e,this.getPixelRatio(),t?.canvas.height)}getPixelRatio(){return e=window.devicePixelRatio,Math.max(1,e||1);var e}renderBarWaveform(e,t,i,r){const{width:s,height:o}=i.canvas,{halfHeight:a,barWidth:u,barRadius:l,barIndexScale:d,barSpacing:p,barMinHeight:f}=(function({width:h,height:w,length:x,options:E,pixelRatio:L}){const j=w/2,P=E.barWidth?E.barWidth*L:1,g=E.barGap?E.barGap*L:E.barWidth?P/2:0,k=P+g||1;return{halfHeight:j,barWidth:P,barGap:g,barRadius:E.barRadius||0,barMinHeight:E.barMinHeight?E.barMinHeight*L:0,barIndexScale:x>0?h/k/x:0,barSpacing:k}})({width:s,height:o,length:(e[0]||[]).length,options:t,pixelRatio:this.getPixelRatio()}),v=(function({channelData:h,barIndexScale:w,barSpacing:x,barWidth:E,halfHeight:L,vScale:j,canvasHeight:P,barAlign:g,barMinHeight:k}){const M=h[0]||[],B=h[1]||M,D=M.length,W=[];let G=0,V=0,F=0;for(let $=0;$<=D;$++){const Y=Math.round($*w);if(Y>G){const{topHeight:I,totalHeight:te}=Mn({maxTop:V,maxBottom:F,halfHeight:L,vScale:j,barMinHeight:k,barAlign:g}),K=On({barAlign:g,halfHeight:L,topHeight:I,totalHeight:te,canvasHeight:P});W.push({x:G*x,y:K,width:E,height:te}),G=Y,V=0,F=0}const se=Math.abs(M[$]||0),ne=Math.abs(B[$]||0);se>V&&(V=se),ne>F&&(F=ne)}return W})({channelData:e,barIndexScale:d,barSpacing:p,barWidth:u,halfHeight:a,vScale:r,canvasHeight:o,barAlign:t.barAlign,barMinHeight:f});i.beginPath();for(const h of v)l&&"roundRect"in i?i.roundRect(h.x,h.y,h.width,h.height,l):i.rect(h.x,h.y,h.width,h.height);i.fill(),i.closePath()}renderLineWaveform(e,t,i,r){const{width:s,height:o}=i.canvas,a=(function({channelData:u,width:l,height:d,vScale:p}){const f=d/2,v=u[0]||[];return[v,u[1]||v].map(((h,w)=>{const x=h.length,E=x?l/x:0,L=f,j=w===0?-1:1,P=[{x:0,y:L}];let g=0,k=0;for(let M=0;M<=x;M++){const B=Math.round(M*E);if(B>g){const W=L+(Math.round(k*f*p)||1)*j;P.push({x:g,y:W}),g=B,k=0}const D=Math.abs(h[M]||0);D>k&&(k=D)}return P.push({x:g,y:L}),P}))})({channelData:e,width:s,height:o,vScale:r});i.beginPath();for(const u of a)if(u.length){i.moveTo(u[0].x,u[0].y);for(let l=1;l<u.length;l++){const d=u[l];i.lineTo(d.x,d.y)}}i.fill(),i.closePath()}renderWaveform(e,t,i){if(i.fillStyle=this.convertColorValues(t.wav