@maveio/components 0.0.156 → 0.0.158
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/{chunk-45FW5DBN.js → chunk-24TUG5TP.js} +1 -1
- package/dist/{chunk-Z5AM3NST.cjs → chunk-32WXLTTE.cjs} +2 -2
- package/dist/{chunk-4CDE2QCJ.js → chunk-6XR2OUZW.js} +1 -1
- package/dist/chunk-7ZRXZY5C.js +20 -0
- package/dist/{chunk-TVNAG7X4.cjs → chunk-B3QILQEE.cjs} +3 -3
- package/dist/{chunk-6MCTUE3H.js → chunk-CHHWULL2.js} +4 -4
- package/dist/chunk-DITZCOYN.cjs +379 -0
- package/dist/{chunk-MKZYI5TY.cjs → chunk-EOHKHSQ3.cjs} +1 -1
- package/dist/{chunk-KTGL4HLA.cjs → chunk-FUSQ4EZG.cjs} +2 -2
- package/dist/chunk-JHSFSCC2.cjs +1 -0
- package/dist/chunk-KA24PL7V.js +1 -0
- package/dist/{chunk-VZKW2VWI.js → chunk-KNAAIER3.js} +2 -2
- package/dist/{chunk-5KQJTT3P.cjs → chunk-KVMGCTLR.cjs} +1 -1
- package/dist/{chunk-4DCPDVPE.js → chunk-LT26CEMU.js} +57 -5
- package/dist/{chunk-JBRRVOTV.cjs → chunk-MLZIA6JO.cjs} +5 -5
- package/dist/chunk-MSWONVA7.cjs +20 -0
- package/dist/{chunk-4AYP3SUJ.js → chunk-NKEVN7FX.js} +1 -1
- package/dist/{chunk-PLCF3Z5Q.cjs → chunk-OTRPT6Y4.cjs} +4 -4
- package/dist/{chunk-MC6T46LX.cjs → chunk-PHGKLFNF.cjs} +1 -1
- package/dist/chunk-QSQE5WBN.js +35 -0
- package/dist/chunk-QZSLJNS4.js +7 -0
- package/dist/chunk-STJ6CEFZ.cjs +1468 -0
- package/dist/chunk-T2P4BAWY.js +379 -0
- package/dist/chunk-ULZI6OGL.js +1468 -0
- package/dist/chunk-W3KNVBI3.cjs +213 -0
- package/dist/{chunk-CUGRXOA2.js → chunk-XLUB3ATV.js} +1 -1
- package/dist/{chunk-6NWQAHZT.cjs → chunk-ZLS57S3I.cjs} +1 -1
- package/dist/components/audio-track-menu.cjs +1 -0
- package/dist/components/audio-track-menu.d.cts +27 -0
- package/dist/components/audio-track-menu.d.ts +27 -0
- package/dist/components/audio-track-menu.js +1 -0
- package/dist/components/clip.cjs +1 -1
- package/dist/components/clip.js +1 -1
- package/dist/components/files.cjs +1 -1
- package/dist/components/files.js +1 -1
- package/dist/components/img.cjs +1 -1
- package/dist/components/img.js +1 -1
- package/dist/components/list.cjs +1 -1
- package/dist/components/list.js +1 -1
- package/dist/components/player.cjs +1 -1
- package/dist/components/player.d.cts +8 -0
- package/dist/components/player.d.ts +8 -0
- package/dist/components/player.js +1 -1
- package/dist/components/pop.cjs +1 -1
- package/dist/components/pop.js +1 -1
- package/dist/components/text.cjs +1 -1
- package/dist/components/text.js +1 -1
- package/dist/components/upload.cjs +1 -1
- package/dist/components/upload.d.cts +18 -1
- package/dist/components/upload.d.ts +18 -1
- package/dist/components/upload.js +1 -1
- package/dist/config.cjs +1 -1
- package/dist/config.js +1 -1
- package/dist/embed/api.cjs +1 -1
- package/dist/embed/api.d.cts +11 -1
- package/dist/embed/api.d.ts +11 -1
- package/dist/embed/api.js +1 -1
- package/dist/embed/caption.cjs +1 -1
- package/dist/embed/caption.js +1 -1
- package/dist/embed/controller.cjs +1 -1
- package/dist/embed/controller.js +1 -1
- package/dist/embed/socket.cjs +1 -1
- package/dist/embed/socket.d.cts +3 -5
- package/dist/embed/socket.d.ts +3 -5
- package/dist/embed/socket.js +1 -1
- package/dist/generated/locales/de.cjs +1 -1
- package/dist/generated/locales/de.d.cts +5 -0
- package/dist/generated/locales/de.d.ts +5 -0
- package/dist/generated/locales/de.js +1 -1
- package/dist/generated/locales/en.cjs +1 -1
- package/dist/generated/locales/en.d.cts +5 -0
- package/dist/generated/locales/en.d.ts +5 -0
- package/dist/generated/locales/en.js +1 -1
- package/dist/generated/locales/fr.cjs +1 -1
- package/dist/generated/locales/fr.d.cts +5 -0
- package/dist/generated/locales/fr.d.ts +5 -0
- package/dist/generated/locales/fr.js +1 -1
- package/dist/generated/locales/nl.cjs +1 -1
- package/dist/generated/locales/nl.d.cts +5 -0
- package/dist/generated/locales/nl.d.ts +5 -0
- package/dist/generated/locales/nl.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.js +1 -1
- package/dist/themes/default.cjs +53 -1
- package/dist/themes/default.js +53 -1
- package/dist/themes/dolphin.cjs +1 -1
- package/dist/themes/dolphin.js +1 -1
- package/dist/themes/loader.cjs +1 -1
- package/dist/themes/loader.js +1 -1
- package/dist/themes/synthwave.cjs +1 -1
- package/dist/themes/synthwave.js +1 -1
- package/dist/utils/localization.cjs +1 -1
- package/dist/utils/localization.js +1 -1
- package/dist/utils/mave_element.cjs +1 -1
- package/dist/utils/mave_element.js +1 -1
- package/dist/utils/origin.cjs +1 -1
- package/dist/utils/origin.js +1 -1
- package/dist/utils/video_events.cjs +1 -1
- package/dist/utils/video_events.js +1 -1
- package/dist/vue.cjs +1 -1
- package/dist/vue.js +1 -1
- package/package.json +3 -3
- package/dist/chunk-5IPIXU3O.js +0 -1807
- package/dist/chunk-DESQSXZF.cjs +0 -161
- package/dist/chunk-IBTJ5OMP.js +0 -35
- package/dist/chunk-IPA5Q26W.cjs +0 -1
- package/dist/chunk-LGWESJBJ.cjs +0 -20
- package/dist/chunk-NDDFZTBA.js +0 -1
- package/dist/chunk-SRXHXTDF.js +0 -7
- package/dist/chunk-ZMMJMM4X.cjs +0 -1807
- package/dist/chunk-ZT2E4EC7.js +0 -20
- /package/dist/{chunk-NI57YLPL.cjs → chunk-BVMU4ZXD.cjs} +0 -0
- /package/dist/{chunk-EXNM5EV2.js → chunk-DFLPNNA4.js} +0 -0
- /package/dist/{chunk-FSFJQ67W.js → chunk-FRPU6QLJ.js} +0 -0
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
'use strict';var chunkFUSQ4EZG_cjs=require('./chunk-FUSQ4EZG.cjs'),chunkPHGKLFNF_cjs=require('./chunk-PHGKLFNF.cjs'),chunkQ22T22LT_cjs=require('./chunk-Q22T22LT.cjs'),chunkFUBUUA7Y_cjs=require('./chunk-FUBUUA7Y.cjs'),chunk5NSCV6C2_cjs=require('./chunk-5NSCV6C2.cjs'),chunk5STN56TL_cjs=require('./chunk-5STN56TL.cjs'),chunkJHSFSCC2_cjs=require('./chunk-JHSFSCC2.cjs');var Pt=chunkJHSFSCC2_cjs.a((no,Ot)=>{Ot.exports=function(t,r){if(r=r.split(":")[0],t=+t,!t)return false;switch(r){case "http":case "ws":return t!==80;case "https":case "wss":return t!==443;case "ftp":return t!==21;case "gopher":return t!==70;case "file":return false}return t!==0};});var Dt=chunkJHSFSCC2_cjs.a(Ae=>{var Vr=Object.prototype.hasOwnProperty,Wr;function kt(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return null}}function Rt(e){try{return encodeURIComponent(e)}catch{return null}}function Yr(e){for(var t=/([^=?#&]+)=?([^&]*)/g,r={},n;n=t.exec(e);){var o=kt(n[1]),a=kt(n[2]);o===null||a===null||o in r||(r[o]=a);}return r}function Zr(e,t){t=t||"";var r=[],n,o;typeof t!="string"&&(t="?");for(o in e)if(Vr.call(e,o)){if(n=e[o],!n&&(n===null||n===Wr||isNaN(n))&&(n=""),o=Rt(o),n=Rt(n),o===null||n===null)continue;r.push(o+"="+n);}return r.length?t+r.join("&"):""}Ae.stringify=Zr;Ae.parse=Yr;});var Nt=chunkJHSFSCC2_cjs.a((io,It)=>{var jt=Pt(),be=Dt(),Jr=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,Tt=/[\n\r\t]/g,Qr=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,Lt=/:\d+$/,en=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,tn=/^[a-zA-Z]:/;function Ie(e){return (e||"").toString().replace(Jr,"")}var Fe=[["#","hash"],["?","query"],function(t,r){return L(r.protocol)?t.replace(/\\/g,"/"):t},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],Ct={hash:1,query:1};function At(e){var t;typeof window<"u"?t=window:typeof global<"u"?t=global:typeof self<"u"?t=self:t={};var r=t.location||{};e=e||r;var n={},o=typeof e,a;if(e.protocol==="blob:")n=new A(unescape(e.pathname),{});else if(o==="string"){n=new A(e,{});for(a in Ct)delete n[a];}else if(o==="object"){for(a in e)a in Ct||(n[a]=e[a]);n.slashes===void 0&&(n.slashes=Qr.test(e.href));}return n}function L(e){return e==="file:"||e==="ftp:"||e==="http:"||e==="https:"||e==="ws:"||e==="wss:"}function Ft(e,t){e=Ie(e),e=e.replace(Tt,""),t=t||{};var r=en.exec(e),n=r[1]?r[1].toLowerCase():"",o=!!r[2],a=!!r[3],u=0,f;return o?a?(f=r[2]+r[3]+r[4],u=r[2].length+r[3].length):(f=r[2]+r[4],u=r[2].length):a?(f=r[3]+r[4],u=r[3].length):f=r[4],n==="file:"?u>=2&&(f=f.slice(2)):L(n)?f=r[4]:n?o&&(f=f.slice(2)):u>=2&&L(t.protocol)&&(f=r[4]),{protocol:n,slashes:o||L(n),slashesCount:u,rest:f}}function rn(e,t){if(e==="")return t;for(var r=(t||"/").split("/").slice(0,-1).concat(e.split("/")),n=r.length,o=r[n-1],a=false,u=0;n--;)r[n]==="."?r.splice(n,1):r[n]===".."?(r.splice(n,1),u++):u&&(n===0&&(a=true),r.splice(n,1),u--);return a&&r.unshift(""),(o==="."||o==="..")&&r.push(""),r.join("/")}function A(e,t,r){if(e=Ie(e),e=e.replace(Tt,""),!(this instanceof A))return new A(e,t,r);var n,o,a,u,f,h,m=Fe.slice(),v=typeof t,y=this,C=0;for(v!=="object"&&v!=="string"&&(r=t,t=null),r&&typeof r!="function"&&(r=be.parse),t=At(t),o=Ft(e||"",t),n=!o.protocol&&!o.slashes,y.slashes=o.slashes||n&&t.slashes,y.protocol=o.protocol||t.protocol||"",e=o.rest,(o.protocol==="file:"&&(o.slashesCount!==2||tn.test(e))||!o.slashes&&(o.protocol||o.slashesCount<2||!L(y.protocol)))&&(m[3]=[/(.*)/,"pathname"]);C<m.length;C++){if(u=m[C],typeof u=="function"){e=u(e,y);continue}a=u[0],h=u[1],a!==a?y[h]=e:typeof a=="string"?(f=a==="@"?e.lastIndexOf(a):e.indexOf(a),~f&&(typeof u[2]=="number"?(y[h]=e.slice(0,f),e=e.slice(f+u[2])):(y[h]=e.slice(f),e=e.slice(0,f)))):(f=a.exec(e))&&(y[h]=f[1],e=e.slice(0,f.index)),y[h]=y[h]||n&&u[3]&&t[h]||"",u[4]&&(y[h]=y[h].toLowerCase());}r&&(y.query=r(y.query)),n&&t.slashes&&y.pathname.charAt(0)!=="/"&&(y.pathname!==""||t.pathname!=="")&&(y.pathname=rn(y.pathname,t.pathname)),y.pathname.charAt(0)!=="/"&&L(y.protocol)&&(y.pathname="/"+y.pathname),jt(y.port,y.protocol)||(y.host=y.hostname,y.port=""),y.username=y.password="",y.auth&&(f=y.auth.indexOf(":"),~f?(y.username=y.auth.slice(0,f),y.username=encodeURIComponent(decodeURIComponent(y.username)),y.password=y.auth.slice(f+1),y.password=encodeURIComponent(decodeURIComponent(y.password))):y.username=encodeURIComponent(decodeURIComponent(y.auth)),y.auth=y.password?y.username+":"+y.password:y.username),y.origin=y.protocol!=="file:"&&L(y.protocol)&&y.host?y.protocol+"//"+y.host:"null",y.href=y.toString();}function nn(e,t,r){var n=this;switch(e){case "query":typeof t=="string"&&t.length&&(t=(r||be.parse)(t)),n[e]=t;break;case "port":n[e]=t,jt(t,n.protocol)?t&&(n.host=n.hostname+":"+t):(n.host=n.hostname,n[e]="");break;case "hostname":n[e]=t,n.port&&(t+=":"+n.port),n.host=t;break;case "host":n[e]=t,Lt.test(t)?(t=t.split(":"),n.port=t.pop(),n.hostname=t.join(":")):(n.hostname=t,n.port="");break;case "protocol":n.protocol=t.toLowerCase(),n.slashes=!r;break;case "pathname":case "hash":if(t){var o=e==="pathname"?"/":"#";n[e]=t.charAt(0)!==o?o+t:t;}else n[e]=t;break;case "username":case "password":n[e]=encodeURIComponent(t);break;case "auth":var a=t.indexOf(":");~a?(n.username=t.slice(0,a),n.username=encodeURIComponent(decodeURIComponent(n.username)),n.password=t.slice(a+1),n.password=encodeURIComponent(decodeURIComponent(n.password))):n.username=encodeURIComponent(decodeURIComponent(t));}for(var u=0;u<Fe.length;u++){var f=Fe[u];f[4]&&(n[f[1]]=n[f[1]].toLowerCase());}return n.auth=n.password?n.username+":"+n.password:n.username,n.origin=n.protocol!=="file:"&&L(n.protocol)&&n.host?n.protocol+"//"+n.host:"null",n.href=n.toString(),n}function on(e){(!e||typeof e!="function")&&(e=be.stringify);var t,r=this,n=r.host,o=r.protocol;o&&o.charAt(o.length-1)!==":"&&(o+=":");var a=o+(r.protocol&&r.slashes||L(r.protocol)?"//":"");return r.username?(a+=r.username,r.password&&(a+=":"+r.password),a+="@"):r.password?(a+=":"+r.password,a+="@"):r.protocol!=="file:"&&L(r.protocol)&&!n&&r.pathname!=="/"&&(a+="@"),(n[n.length-1]===":"||Lt.test(r.hostname)&&!r.port)&&(n+=":"),a+=n+r.pathname,t=typeof r.query=="object"?e(r.query):r.query,t&&(a+=t.charAt(0)!=="?"?"?"+t:t),r.hash&&(a+=r.hash),a}A.prototype={set:nn,toString:on};A.extractProtocol=Ft;A.location=At;A.trimLeft=Ie;A.qs=be;It.exports=A;});function J(e){"@babel/helpers - typeof";return J=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},J(e)}function _r(e,t,r){return Object.defineProperty(e,"prototype",{writable:false}),e}function Er(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xr(e,t,r){return t=fe(t),Ur(e,De()?Reflect.construct(t,r||[],fe(e).constructor):t.apply(e,r))}function Ur(e,t){if(t&&(J(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Or(e)}function Or(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}}),Object.defineProperty(e,"prototype",{writable:false}),t&&ue(e,t);}function Re(e){var t=typeof Map=="function"?new Map:void 0;return Re=function(n){if(n===null||!Rr(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,o);}function o(){return kr(n,arguments,fe(this).constructor)}return o.prototype=Object.create(n.prototype,{constructor:{value:o,enumerable:false,writable:true,configurable:true}}),ue(o,n)},Re(e)}function kr(e,t,r){if(De())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&ue(o,r.prototype),o}function De(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch{}return (De=function(){return !!e})()}function Rr(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function ue(e,t){return ue=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},ue(e,t)}function fe(e){return fe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},fe(e)}var Dr=function(e){function t(r){var n,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;if(Er(this,t),n=xr(this,t,[r]),n.originalRequest=a,n.originalResponse=u,n.causingError=o,o!=null&&(r+=", caused by ".concat(o.toString())),a!=null){var f=a.getHeader("X-Request-ID")||"n/a",h=a.getMethod(),m=a.getURL(),v=u?u.getStatus():"n/a",y=u?u.getBody()||"":"n/a";r+=", originated from request (method: ".concat(h,", url: ").concat(m,", response code: ").concat(v,", response text: ").concat(y,", request id: ").concat(f,")");}return n.message=r,n}return Pr(t,e),_r(t)}(Re(Error)),Q=Dr;function B(e){}function ce(e){"@babel/helpers - typeof";return ce=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ce(e)}function jr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function it(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false,n.configurable=true,"value"in n&&(n.writable=true),Object.defineProperty(e,Lr(n.key),n);}}function Tr(e,t,r){return t&&it(e.prototype,t),Object.defineProperty(e,"prototype",{writable:false}),e}function Lr(e){var t=Ar(e,"string");return ce(t)=="symbol"?t:t+""}function Ar(e,t){if(ce(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ce(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return (String)(e)}var at=function(){function e(){jr(this,e);}return Tr(e,[{key:"listAllUploads",value:function(){return Promise.resolve([])}},{key:"findUploadsByFingerprint",value:function(r){return Promise.resolve([])}},{key:"removeUpload",value:function(r){return Promise.resolve()}},{key:"addUpload",value:function(r,n){return Promise.resolve(null)}}])}();var pt="3.7.5",Fr=pt,Ir=typeof atob=="function",Nr=typeof btoa=="function",te=typeof Buffer=="function",st=typeof TextDecoder=="function"?new TextDecoder:void 0,lt=typeof TextEncoder=="function"?new TextEncoder:void 0,Hr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",pe=Array.prototype.slice.call(Hr),ge=(e=>{let t={};return e.forEach((r,n)=>t[r]=n),t})(pe),Br=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,U=String.fromCharCode.bind(String),ut=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),ht=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),dt=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),yt=e=>{let t,r,n,o,a="",u=e.length%3;for(let f=0;f<e.length;){if((r=e.charCodeAt(f++))>255||(n=e.charCodeAt(f++))>255||(o=e.charCodeAt(f++))>255)throw new TypeError("invalid character found");t=r<<16|n<<8|o,a+=pe[t>>18&63]+pe[t>>12&63]+pe[t>>6&63]+pe[t&63];}return u?a.slice(0,u-3)+"===".substring(u):a},Te=Nr?e=>btoa(e):te?e=>Buffer.from(e,"binary").toString("base64"):yt,Ce=te?e=>Buffer.from(e).toString("base64"):e=>{let r=[];for(let n=0,o=e.length;n<o;n+=4096)r.push(U.apply(null,e.subarray(n,n+4096)));return Te(r.join(""))},ve=(e,t=false)=>t?ht(Ce(e)):Ce(e),qr=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?U(192|t>>>6)+U(128|t&63):U(224|t>>>12&15)+U(128|t>>>6&63)+U(128|t&63)}else {var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return U(240|t>>>18&7)+U(128|t>>>12&63)+U(128|t>>>6&63)+U(128|t&63)}},zr=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,mt=e=>e.replace(zr,qr),ft=te?e=>Buffer.from(e,"utf8").toString("base64"):lt?e=>Ce(lt.encode(e)):e=>Te(mt(e)),ee=(e,t=false)=>t?ht(ft(e)):ft(e),ct=e=>ee(e,true),Mr=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,$r=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),r=t-65536;return U((r>>>10)+55296)+U((r&1023)+56320);case 3:return U((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return U((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},gt=e=>e.replace(Mr,$r),vt=e=>{if(e=e.replace(/\s+/g,""),!Br.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,r="",n,o;for(let a=0;a<e.length;)t=ge[e.charAt(a++)]<<18|ge[e.charAt(a++)]<<12|(n=ge[e.charAt(a++)])<<6|(o=ge[e.charAt(a++)]),r+=n===64?U(t>>16&255):o===64?U(t>>16&255,t>>8&255):U(t>>16&255,t>>8&255,t&255);return r},Le=Ir?e=>atob(dt(e)):te?e=>Buffer.from(e,"base64").toString("binary"):vt,bt=te?e=>ut(Buffer.from(e,"base64")):e=>ut(Le(e).split("").map(t=>t.charCodeAt(0))),_t=e=>bt(wt(e)),Gr=te?e=>Buffer.from(e,"base64").toString("utf8"):st?e=>st.decode(bt(e)):e=>gt(Le(e)),wt=e=>dt(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),je=e=>Gr(wt(e)),Kr=e=>{if(typeof e!="string")return false;let t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return !/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},St=e=>({value:e,enumerable:false,writable:true,configurable:true}),Et=function(){let e=(t,r)=>Object.defineProperty(String.prototype,t,St(r));e("fromBase64",function(){return je(this)}),e("toBase64",function(t){return ee(this,t)}),e("toBase64URI",function(){return ee(this,true)}),e("toBase64URL",function(){return ee(this,true)}),e("toUint8Array",function(){return _t(this)});},xt=function(){let e=(t,r)=>Object.defineProperty(Uint8Array.prototype,t,St(r));e("toBase64",function(t){return ve(this,t)}),e("toBase64URI",function(){return ve(this,true)}),e("toBase64URL",function(){return ve(this,true)});},Xr=()=>{Et(),xt();},Ut={version:pt,VERSION:Fr,atob:Le,atobPolyfill:vt,btoa:Te,btoaPolyfill:yt,fromBase64:je,toBase64:ee,encode:ee,encodeURI:ct,encodeURL:ct,utob:mt,btou:gt,decode:je,isValid:Kr,fromUint8Array:ve,toUint8Array:_t,extendString:Et,extendUint8Array:xt,extendBuiltins:Xr};var Zt=chunkJHSFSCC2_cjs.b(Nt());function Ne(){return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=Math.random()*16|0,r=e==="x"?t:t&3|8;return r.toString(16)})}function He(){He=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(l,i,s){l[i]=s.value;},a=typeof Symbol=="function"?Symbol:{},u=a.iterator||"@@iterator",f=a.asyncIterator||"@@asyncIterator",h=a.toStringTag||"@@toStringTag";function m(l,i,s){return Object.defineProperty(l,i,{value:s,enumerable:true,configurable:true,writable:true}),l[i]}try{m({},"");}catch{m=function(s,c,d){return s[c]=d};}function v(l,i,s,c){var d=i&&i.prototype instanceof F?i:F,p=Object.create(d.prototype),g=new $(c||[]);return o(p,"_invoke",{value:Ue(l,s,g)}),p}function y(l,i,s){try{return {type:"normal",arg:l.call(i,s)}}catch(c){return {type:"throw",arg:c}}}t.wrap=v;var C="suspendedStart",ae="suspendedYield",q="executing",T="completed",S={};function F(){}function R(){}function E(){}var j={};m(j,u,function(){return this});var z=Object.getPrototypeOf,I=z&&z(z(G([])));I&&I!==r&&n.call(I,u)&&(j=I);var D=E.prototype=F.prototype=Object.create(j);function se(l){["next","throw","return"].forEach(function(i){m(l,i,function(s){return this._invoke(i,s)});});}function N(l,i){function s(d,p,g,b){var _=y(l[d],l,p);if(_.type!=="throw"){var O=_.arg,x=O.value;return x&&W(x)=="object"&&n.call(x,"__await")?i.resolve(x.__await).then(function(P){s("next",P,g,b);},function(P){s("throw",P,g,b);}):i.resolve(x).then(function(P){O.value=P,g(O);},function(P){return s("throw",P,g,b)})}b(_.arg);}var c;o(this,"_invoke",{value:function(p,g){function b(){return new i(function(_,O){s(p,g,_,O);})}return c=c?c.then(b,b):b()}});}function Ue(l,i,s){var c=C;return function(d,p){if(c===q)throw Error("Generator is already running");if(c===T){if(d==="throw")throw p;return {value:e,done:true}}for(s.method=d,s.arg=p;;){var g=s.delegate;if(g){var b=le(g,s);if(b){if(b===S)continue;return b}}if(s.method==="next")s.sent=s._sent=s.arg;else if(s.method==="throw"){if(c===C)throw c=T,s.arg;s.dispatchException(s.arg);}else s.method==="return"&&s.abrupt("return",s.arg);c=q;var _=y(l,i,s);if(_.type==="normal"){if(c=s.done?T:ae,_.arg===S)continue;return {value:_.arg,done:s.done}}_.type==="throw"&&(c=T,s.method="throw",s.arg=_.arg);}}}function le(l,i){var s=i.method,c=l.iterator[s];if(c===e)return i.delegate=null,s==="throw"&&l.iterator.return&&(i.method="return",i.arg=e,le(l,i),i.method==="throw")||s!=="return"&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+s+"' method")),S;var d=y(c,l.iterator,i.arg);if(d.type==="throw")return i.method="throw",i.arg=d.arg,i.delegate=null,S;var p=d.arg;return p?p.done?(i[l.resultName]=p.value,i.next=l.nextLoc,i.method!=="return"&&(i.method="next",i.arg=e),i.delegate=null,S):p:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,S)}function Oe(l){var i={tryLoc:l[0]};1 in l&&(i.catchLoc=l[1]),2 in l&&(i.finallyLoc=l[2],i.afterLoc=l[3]),this.tryEntries.push(i);}function M(l){var i=l.completion||{};i.type="normal",delete i.arg,l.completion=i;}function $(l){this.tryEntries=[{tryLoc:"root"}],l.forEach(Oe,this),this.reset(true);}function G(l){if(l||l===""){var i=l[u];if(i)return i.call(l);if(typeof l.next=="function")return l;if(!isNaN(l.length)){var s=-1,c=function d(){for(;++s<l.length;)if(n.call(l,s))return d.value=l[s],d.done=false,d;return d.value=e,d.done=true,d};return c.next=c}}throw new TypeError(W(l)+" is not iterable")}return R.prototype=E,o(D,"constructor",{value:E,configurable:true}),o(E,"constructor",{value:R,configurable:true}),R.displayName=m(E,h,"GeneratorFunction"),t.isGeneratorFunction=function(l){var i=typeof l=="function"&&l.constructor;return !!i&&(i===R||(i.displayName||i.name)==="GeneratorFunction")},t.mark=function(l){return Object.setPrototypeOf?Object.setPrototypeOf(l,E):(l.__proto__=E,m(l,h,"GeneratorFunction")),l.prototype=Object.create(D),l},t.awrap=function(l){return {__await:l}},se(N.prototype),m(N.prototype,f,function(){return this}),t.AsyncIterator=N,t.async=function(l,i,s,c,d){d===void 0&&(d=Promise);var p=new N(v(l,i,s,c),d);return t.isGeneratorFunction(i)?p:p.next().then(function(g){return g.done?g.value:p.next()})},se(D),m(D,h,"Generator"),m(D,u,function(){return this}),m(D,"toString",function(){return "[object Generator]"}),t.keys=function(l){var i=Object(l),s=[];for(var c in i)s.push(c);return s.reverse(),function d(){for(;s.length;){var p=s.pop();if(p in i)return d.value=p,d.done=false,d}return d.done=true,d}},t.values=G,$.prototype={constructor:$,reset:function(i){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=false,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(M),!i)for(var s in this)s.charAt(0)==="t"&&n.call(this,s)&&!isNaN(+s.slice(1))&&(this[s]=e);},stop:function(){this.done=true;var i=this.tryEntries[0].completion;if(i.type==="throw")throw i.arg;return this.rval},dispatchException:function(i){if(this.done)throw i;var s=this;function c(O,x){return g.type="throw",g.arg=i,s.next=O,x&&(s.method="next",s.arg=e),!!x}for(var d=this.tryEntries.length-1;d>=0;--d){var p=this.tryEntries[d],g=p.completion;if(p.tryLoc==="root")return c("end");if(p.tryLoc<=this.prev){var b=n.call(p,"catchLoc"),_=n.call(p,"finallyLoc");if(b&&_){if(this.prev<p.catchLoc)return c(p.catchLoc,true);if(this.prev<p.finallyLoc)return c(p.finallyLoc)}else if(b){if(this.prev<p.catchLoc)return c(p.catchLoc,true)}else {if(!_)throw Error("try statement without catch or finally");if(this.prev<p.finallyLoc)return c(p.finallyLoc)}}}},abrupt:function(i,s){for(var c=this.tryEntries.length-1;c>=0;--c){var d=this.tryEntries[c];if(d.tryLoc<=this.prev&&n.call(d,"finallyLoc")&&this.prev<d.finallyLoc){var p=d;break}}p&&(i==="break"||i==="continue")&&p.tryLoc<=s&&s<=p.finallyLoc&&(p=null);var g=p?p.completion:{};return g.type=i,g.arg=s,p?(this.method="next",this.next=p.finallyLoc,S):this.complete(g)},complete:function(i,s){if(i.type==="throw")throw i.arg;return i.type==="break"||i.type==="continue"?this.next=i.arg:i.type==="return"?(this.rval=this.arg=i.arg,this.method="return",this.next="end"):i.type==="normal"&&s&&(this.next=s),S},finish:function(i){for(var s=this.tryEntries.length-1;s>=0;--s){var c=this.tryEntries[s];if(c.finallyLoc===i)return this.complete(c.completion,c.afterLoc),M(c),S}},catch:function(i){for(var s=this.tryEntries.length-1;s>=0;--s){var c=this.tryEntries[s];if(c.tryLoc===i){var d=c.completion;if(d.type==="throw"){var p=d.arg;M(c);}return p}}throw Error("illegal catch attempt")},delegateYield:function(i,s,c){return this.delegate={iterator:G(i),resultName:s,nextLoc:c},this.method==="next"&&(this.arg=e),S}},t}function Ht(e,t,r,n,o,a,u){try{var f=e[a](u),h=f.value;}catch(m){r(m);return}f.done?t(h):Promise.resolve(h).then(n,o);}function an(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function u(h){Ht(a,n,o,u,f,"next",h);}function f(h){Ht(a,n,o,u,f,"throw",h);}u(void 0);})}}function Vt(e,t){return un(e)||ln(e,t)||Wt(e,t)||sn()}function sn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ln(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,a,u,f=[],h=true,m=false;try{if(a=(r=r.call(e)).next,t===0);else for(;!(h=(n=a.call(r)).done)&&(f.push(n.value),f.length!==t);h=!0);}catch(v){m=true,o=v;}finally{try{if(!h&&r.return!=null&&(u=r.return(),Object(u)!==u))return}finally{if(m)throw o}}return f}}function un(e){if(Array.isArray(e))return e}function W(e){"@babel/helpers - typeof";return W=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},W(e)}function fn(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Wt(e))||t){r&&(e=r);var n=0,o=function(){};return {s:o,n:function(){return n>=e.length?{done:true}:{done:false,value:e[n++]}},e:function(m){throw m},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
3
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=true,u=false,f;return {s:function(){r=r.call(e);},n:function(){var m=r.next();return a=m.done,m},e:function(m){u=true,f=m;},f:function(){try{!a&&r.return!=null&&r.return();}finally{if(u)throw f}}}}function Wt(e,t){if(e){if(typeof e=="string")return Bt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Bt(e,t)}}function Bt(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function qt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n);}return r}function re(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qt(Object(r),true).forEach(function(n){cn(e,n,r[n]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n));});}return e}function cn(e,t,r){return t=Yt(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true}):e[t]=r,e}function pn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false,n.configurable=true,"value"in n&&(n.writable=true),Object.defineProperty(e,Yt(n.key),n);}}function hn(e,t,r){return t&&zt(e.prototype,t),r&&zt(e,r),Object.defineProperty(e,"prototype",{writable:false}),e}function Yt(e){var t=dn(e,"string");return W(t)=="symbol"?t:t+""}function dn(e,t){if(W(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(W(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return (String)(e)}var Be="tus-v1",_e="ietf-draft-03",yn={endpoint:null,uploadUrl:null,metadata:{},metadataForPartialUploads:{},fingerprint:null,uploadSize:null,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,onUploadUrlAvailable:null,overridePatchMethod:false,headers:{},addRequestId:false,onBeforeRequest:null,onAfterResponse:null,onShouldRetry:Qt,chunkSize:Number.POSITIVE_INFINITY,retryDelays:[0,1e3,3e3,5e3],parallelUploads:1,parallelUploadBoundaries:null,storeFingerprintForResuming:true,removeFingerprintOnSuccess:false,uploadLengthDeferred:false,uploadDataDuringCreation:false,urlStorage:null,fileReader:null,httpStack:null,protocol:Be},Jt=function(){function e(t,r){pn(this,e),"resume"in r&&console.log("tus: The `resume` option has been removed in tus-js-client v2. Please use the URL storage API instead."),this.options=r,this.options.chunkSize=Number(this.options.chunkSize),this._urlStorage=this.options.urlStorage,this.file=t,this.url=null,this._req=null,this._fingerprint=null,this._urlStorageKey=null,this._offset=null,this._aborted=false,this._size=null,this._source=null,this._retryAttempt=0,this._retryTimeout=null,this._offsetBeforeRetry=0,this._parallelUploads=null,this._parallelUploadUrls=null;}return hn(e,[{key:"findPreviousUploads",value:function(){var r=this;return this.options.fingerprint(this.file,this.options).then(function(n){return r._urlStorage.findUploadsByFingerprint(n)})}},{key:"resumeFromPreviousUpload",value:function(r){this.url=r.uploadUrl||null,this._parallelUploadUrls=r.parallelUploadUrls||null,this._urlStorageKey=r.urlStorageKey;}},{key:"start",value:function(){var r=this,n=this.file;if(!n){this._emitError(new Error("tus: no file or stream to upload provided"));return}if(![Be,_e].includes(this.options.protocol)){this._emitError(new Error("tus: unsupported protocol ".concat(this.options.protocol)));return}if(!this.options.endpoint&&!this.options.uploadUrl&&!this.url){this._emitError(new Error("tus: neither an endpoint or an upload URL is provided"));return}var o=this.options.retryDelays;if(o!=null&&Object.prototype.toString.call(o)!=="[object Array]"){this._emitError(new Error("tus: the `retryDelays` option must either be an array or null"));return}if(this.options.parallelUploads>1)for(var a=0,u=["uploadUrl","uploadSize","uploadLengthDeferred"];a<u.length;a++){var f=u[a];if(this.options[f]){this._emitError(new Error("tus: cannot use the ".concat(f," option when parallelUploads is enabled")));return}}if(this.options.parallelUploadBoundaries){if(this.options.parallelUploads<=1){this._emitError(new Error("tus: cannot use the `parallelUploadBoundaries` option when `parallelUploads` is disabled"));return}if(this.options.parallelUploads!==this.options.parallelUploadBoundaries.length){this._emitError(new Error("tus: the `parallelUploadBoundaries` must have the same length as the value of `parallelUploads`"));return}}this.options.fingerprint(n,this.options).then(function(h){return r._fingerprint=h,r._source?r._source:r.options.fileReader.openFile(n,r.options.chunkSize)}).then(function(h){if(r._source=h,r.options.uploadLengthDeferred)r._size=null;else if(r.options.uploadSize!=null){if(r._size=Number(r.options.uploadSize),Number.isNaN(r._size)){r._emitError(new Error("tus: cannot convert `uploadSize` option into a number"));return}}else if(r._size=r._source.size,r._size==null){r._emitError(new Error("tus: cannot automatically derive upload's size from input. Specify it manually using the `uploadSize` option or use the `uploadLengthDeferred` option"));return}r.options.parallelUploads>1||r._parallelUploadUrls!=null?r._startParallelUpload():r._startSingleUpload();}).catch(function(h){r._emitError(h);});}},{key:"_startParallelUpload",value:function(){var r,n=this,o=this._size,a=0;this._parallelUploads=[];var u=this._parallelUploadUrls!=null?this._parallelUploadUrls.length:this.options.parallelUploads,f=(r=this.options.parallelUploadBoundaries)!==null&&r!==void 0?r:gn(this._source.size,u);this._parallelUploadUrls&&f.forEach(function(v,y){v.uploadUrl=n._parallelUploadUrls[y]||null;}),this._parallelUploadUrls=new Array(f.length);var h=f.map(function(v,y){var C=0;return n._source.slice(v.start,v.end).then(function(ae){var q=ae.value;return new Promise(function(T,S){var F=re(re({},n.options),{},{uploadUrl:v.uploadUrl||null,storeFingerprintForResuming:false,removeFingerprintOnSuccess:false,parallelUploads:1,parallelUploadBoundaries:null,metadata:n.options.metadataForPartialUploads,headers:re(re({},n.options.headers),{},{"Upload-Concat":"partial"}),onSuccess:T,onError:S,onProgress:function(j){a=a-C+j,C=j,n._emitProgress(a,o);},onUploadUrlAvailable:function(){n._parallelUploadUrls[y]=R.url,n._parallelUploadUrls.filter(function(j){return !!j}).length===f.length&&n._saveUploadInUrlStorage();}}),R=new e(q,F);R.start(),n._parallelUploads.push(R);})})}),m;Promise.all(h).then(function(){m=n._openRequest("POST",n.options.endpoint),m.setHeader("Upload-Concat","final;".concat(n._parallelUploadUrls.join(" ")));var v=Mt(n.options.metadata);return v!==""&&m.setHeader("Upload-Metadata",v),n._sendRequest(m,null)}).then(function(v){if(!ne(v.getStatus(),200)){n._emitHttpError(m,v,"tus: unexpected response while creating upload");return}var y=v.getHeader("Location");if(y==null){n._emitHttpError(m,v,"tus: invalid or missing Location header");return}n.url=Xt(n.options.endpoint,y),B("Created upload at ".concat(n.url)),n._emitSuccess(v);}).catch(function(v){n._emitError(v);});}},{key:"_startSingleUpload",value:function(){if(this._aborted=false,this.url!=null){B("Resuming upload from previous URL: ".concat(this.url)),this._resumeUpload();return}if(this.options.uploadUrl!=null){B("Resuming upload from provided URL: ".concat(this.options.uploadUrl)),this.url=this.options.uploadUrl,this._resumeUpload();return}this._createUpload();}},{key:"abort",value:function(r){var n=this;if(this._parallelUploads!=null){var o=fn(this._parallelUploads),a;try{for(o.s();!(a=o.n()).done;){var u=a.value;u.abort(r);}}catch(f){o.e(f);}finally{o.f();}}return this._req!==null&&this._req.abort(),this._aborted=true,this._retryTimeout!=null&&(clearTimeout(this._retryTimeout),this._retryTimeout=null),!r||this.url==null?Promise.resolve():e.terminate(this.url,this.options).then(function(){return n._removeFromUrlStorage()})}},{key:"_emitHttpError",value:function(r,n,o,a){this._emitError(new Q(o,a,r,n));}},{key:"_emitError",value:function(r){var n=this;if(!this._aborted){if(this.options.retryDelays!=null){var o=this._offset!=null&&this._offset>this._offsetBeforeRetry;if(o&&(this._retryAttempt=0),Kt(r,this._retryAttempt,this.options)){var a=this.options.retryDelays[this._retryAttempt++];this._offsetBeforeRetry=this._offset,this._retryTimeout=setTimeout(function(){n.start();},a);return}}if(typeof this.options.onError=="function")this.options.onError(r);else throw r}}},{key:"_emitSuccess",value:function(r){this.options.removeFingerprintOnSuccess&&this._removeFromUrlStorage(),typeof this.options.onSuccess=="function"&&this.options.onSuccess({lastResponse:r});}},{key:"_emitProgress",value:function(r,n){typeof this.options.onProgress=="function"&&this.options.onProgress(r,n);}},{key:"_emitChunkComplete",value:function(r,n,o){typeof this.options.onChunkComplete=="function"&&this.options.onChunkComplete(r,n,o);}},{key:"_createUpload",value:function(){var r=this;if(!this.options.endpoint){this._emitError(new Error("tus: unable to create upload because no endpoint is provided"));return}var n=this._openRequest("POST",this.options.endpoint);this.options.uploadLengthDeferred?n.setHeader("Upload-Defer-Length","1"):n.setHeader("Upload-Length","".concat(this._size));var o=Mt(this.options.metadata);o!==""&&n.setHeader("Upload-Metadata",o);var a;this.options.uploadDataDuringCreation&&!this.options.uploadLengthDeferred?(this._offset=0,a=this._addChunkToRequest(n)):(this.options.protocol===_e&&n.setHeader("Upload-Complete","?0"),a=this._sendRequest(n,null)),a.then(function(u){if(!ne(u.getStatus(),200)){r._emitHttpError(n,u,"tus: unexpected response while creating upload");return}var f=u.getHeader("Location");if(f==null){r._emitHttpError(n,u,"tus: invalid or missing Location header");return}if(r.url=Xt(r.options.endpoint,f),B("Created upload at ".concat(r.url)),typeof r.options.onUploadUrlAvailable=="function"&&r.options.onUploadUrlAvailable(),r._size===0){r._emitSuccess(u),r._source.close();return}r._saveUploadInUrlStorage().then(function(){r.options.uploadDataDuringCreation?r._handleUploadResponse(n,u):(r._offset=0,r._performUpload());});}).catch(function(u){r._emitHttpError(n,null,"tus: failed to create upload",u);});}},{key:"_resumeUpload",value:function(){var r=this,n=this._openRequest("HEAD",this.url),o=this._sendRequest(n,null);o.then(function(a){var u=a.getStatus();if(!ne(u,200)){if(u===423){r._emitHttpError(n,a,"tus: upload is currently locked; retry later");return}if(ne(u,400)&&r._removeFromUrlStorage(),!r.options.endpoint){r._emitHttpError(n,a,"tus: unable to resume upload (new upload cannot be created without an endpoint)");return}r.url=null,r._createUpload();return}var f=Number.parseInt(a.getHeader("Upload-Offset"),10);if(Number.isNaN(f)){r._emitHttpError(n,a,"tus: invalid or missing offset value");return}var h=Number.parseInt(a.getHeader("Upload-Length"),10);if(Number.isNaN(h)&&!r.options.uploadLengthDeferred&&r.options.protocol===Be){r._emitHttpError(n,a,"tus: invalid or missing length value");return}typeof r.options.onUploadUrlAvailable=="function"&&r.options.onUploadUrlAvailable(),r._saveUploadInUrlStorage().then(function(){if(f===h){r._emitProgress(h,h),r._emitSuccess(a);return}r._offset=f,r._performUpload();});}).catch(function(a){r._emitHttpError(n,null,"tus: failed to resume upload",a);});}},{key:"_performUpload",value:function(){var r=this;if(!this._aborted){var n;this.options.overridePatchMethod?(n=this._openRequest("POST",this.url),n.setHeader("X-HTTP-Method-Override","PATCH")):n=this._openRequest("PATCH",this.url),n.setHeader("Upload-Offset","".concat(this._offset));var o=this._addChunkToRequest(n);o.then(function(a){if(!ne(a.getStatus(),200)){r._emitHttpError(n,a,"tus: unexpected response while uploading chunk");return}r._handleUploadResponse(n,a);}).catch(function(a){r._aborted||r._emitHttpError(n,null,"tus: failed to upload chunk at offset ".concat(r._offset),a);});}}},{key:"_addChunkToRequest",value:function(r){var n=this,o=this._offset,a=this._offset+this.options.chunkSize;return r.setProgressHandler(function(u){n._emitProgress(o+u,n._size);}),r.setHeader("Content-Type","application/offset+octet-stream"),(a===Number.POSITIVE_INFINITY||a>this._size)&&!this.options.uploadLengthDeferred&&(a=this._size),this._source.slice(o,a).then(function(u){var f=u.value,h=u.done,m=f!=null&&f.size?f.size:0;n.options.uploadLengthDeferred&&h&&(n._size=n._offset+m,r.setHeader("Upload-Length","".concat(n._size)));var v=n._offset+m;return !n.options.uploadLengthDeferred&&h&&v!==n._size?Promise.reject(new Error("upload was configured with a size of ".concat(n._size," bytes, but the source is done after ").concat(v," bytes"))):f===null?n._sendRequest(r):(n.options.protocol===_e&&r.setHeader("Upload-Complete",h?"?1":"?0"),n._emitProgress(n._offset,n._size),n._sendRequest(r,f))})}},{key:"_handleUploadResponse",value:function(r,n){var o=Number.parseInt(n.getHeader("Upload-Offset"),10);if(Number.isNaN(o)){this._emitHttpError(r,n,"tus: invalid or missing offset value");return}if(this._emitProgress(o,this._size),this._emitChunkComplete(o-this._offset,o,this._size),this._offset=o,o===this._size){this._emitSuccess(n),this._source.close();return}this._performUpload();}},{key:"_openRequest",value:function(r,n){var o=$t(r,n,this.options);return this._req=o,o}},{key:"_removeFromUrlStorage",value:function(){var r=this;this._urlStorageKey&&(this._urlStorage.removeUpload(this._urlStorageKey).catch(function(n){r._emitError(n);}),this._urlStorageKey=null);}},{key:"_saveUploadInUrlStorage",value:function(){var r=this;if(!this.options.storeFingerprintForResuming||!this._fingerprint||this._urlStorageKey!==null)return Promise.resolve();var n={size:this._size,metadata:this.options.metadata,creationTime:new Date().toString()};return this._parallelUploads?n.parallelUploadUrls=this._parallelUploadUrls:n.uploadUrl=this.url,this._urlStorage.addUpload(this._fingerprint,n).then(function(o){r._urlStorageKey=o;})}},{key:"_sendRequest",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Gt(r,n,this.options)}}],[{key:"terminate",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=$t("DELETE",r,n);return Gt(o,null,n).then(function(a){if(a.getStatus()!==204)throw new Q("tus: unexpected response while terminating upload",null,o,a)}).catch(function(a){if(a instanceof Q||(a=new Q("tus: failed to terminate upload",a,o,null)),!Kt(a,0,n))throw a;var u=n.retryDelays[0],f=n.retryDelays.slice(1),h=re(re({},n),{},{retryDelays:f});return new Promise(function(m){return setTimeout(m,u)}).then(function(){return e.terminate(r,h)})})}}])}();function Mt(e){return Object.entries(e).map(function(t){var r=Vt(t,2),n=r[0],o=r[1];return "".concat(n," ").concat(Ut.encode(String(o)))}).join(",")}function ne(e,t){return e>=t&&e<t+100}function $t(e,t,r){var n=r.httpStack.createRequest(e,t);r.protocol===_e?n.setHeader("Upload-Draft-Interop-Version","5"):n.setHeader("Tus-Resumable","1.0.0");for(var o=r.headers||{},a=0,u=Object.entries(o);a<u.length;a++){var f=Vt(u[a],2),h=f[0],m=f[1];n.setHeader(h,m);}if(r.addRequestId){var v=Ne();n.setHeader("X-Request-ID",v);}return n}function Gt(e,t,r){return qe.apply(this,arguments)}function qe(){return qe=an(He().mark(function e(t,r,n){var o;return He().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(typeof n.onBeforeRequest!="function"){u.next=3;break}return u.next=3,n.onBeforeRequest(t);case 3:return u.next=5,t.send(r);case 5:if(o=u.sent,typeof n.onAfterResponse!="function"){u.next=9;break}return u.next=9,n.onAfterResponse(t,o);case 9:return u.abrupt("return",o);case 10:case "end":return u.stop()}},e)})),qe.apply(this,arguments)}function mn(){var e=true;return typeof navigator<"u"&&navigator.onLine===false&&(e=false),e}function Kt(e,t,r){return r.retryDelays==null||t>=r.retryDelays.length||e.originalRequest==null?false:r&&typeof r.onShouldRetry=="function"?r.onShouldRetry(e,t,r):Qt(e)}function Qt(e){var t=e.originalResponse?e.originalResponse.getStatus():0;return (!ne(t,400)||t===409||t===423)&&mn()}function Xt(e,t){return new Zt.default(t,e).toString()}function gn(e,t){for(var r=Math.floor(e/t),n=[],o=0;o<t;o++)n.push({start:r*o,end:r*(o+1)});return n[t-1].end=e,n}Jt.defaultOptions=yn;var we=Jt;var vn=function(){return typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative"},Se=vn;function ze(e){return new Promise(function(t,r){var n=new XMLHttpRequest;n.responseType="blob",n.onload=function(){var o=n.response;t(o);},n.onerror=function(o){r(o);},n.open("GET",e),n.send();})}var bn=function(){return typeof window<"u"&&(typeof window.PhoneGap<"u"||typeof window.Cordova<"u"||typeof window.cordova<"u")},er=bn;function Me(e){return new Promise(function(t,r){var n=new FileReader;n.onload=function(){var o=new Uint8Array(n.result);t({value:o});},n.onerror=function(o){r(o);},n.readAsArrayBuffer(e);})}function he(e){"@babel/helpers - typeof";return he=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},he(e)}function _n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false,n.configurable=true,"value"in n&&(n.writable=true),Object.defineProperty(e,Sn(n.key),n);}}function wn(e,t,r){return t&&tr(e.prototype,t),Object.defineProperty(e,"prototype",{writable:false}),e}function Sn(e){var t=En(e,"string");return he(t)=="symbol"?t:t+""}function En(e,t){if(he(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(he(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return (String)(e)}var $e=function(){function e(t){_n(this,e),this._file=t,this.size=t.size;}return wn(e,[{key:"slice",value:function(r,n){if(er())return Me(this._file.slice(r,n));var o=this._file.slice(r,n),a=n>=this.size;return Promise.resolve({value:o,done:a})}},{key:"close",value:function(){}}])}();function de(e){"@babel/helpers - typeof";return de=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},de(e)}function xn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false,n.configurable=true,"value"in n&&(n.writable=true),Object.defineProperty(e,On(n.key),n);}}function Un(e,t,r){return t&&rr(e.prototype,t),Object.defineProperty(e,"prototype",{writable:false}),e}function On(e){var t=Pn(e,"string");return de(t)=="symbol"?t:t+""}function Pn(e,t){if(de(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(de(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return (String)(e)}function nr(e){return e===void 0?0:e.size!==void 0?e.size:e.length}function kn(e,t){if(e.concat)return e.concat(t);if(e instanceof Blob)return new Blob([e,t],{type:e.type});if(e.set){var r=new e.constructor(e.length+t.length);return r.set(e),r.set(t,e.length),r}throw new Error("Unknown data type")}var or=function(){function e(t){xn(this,e),this._buffer=void 0,this._bufferOffset=0,this._reader=t,this._done=false;}return Un(e,[{key:"slice",value:function(r,n){return r<this._bufferOffset?Promise.reject(new Error("Requested data is before the reader's current offset")):this._readUntilEnoughDataOrDone(r,n)}},{key:"_readUntilEnoughDataOrDone",value:function(r,n){var o=this,a=n<=this._bufferOffset+nr(this._buffer);if(this._done||a){var u=this._getDataFromBuffer(r,n),f=u==null?this._done:false;return Promise.resolve({value:u,done:f})}return this._reader.read().then(function(h){var m=h.value,v=h.done;return v?o._done=true:o._buffer===void 0?o._buffer=m:o._buffer=kn(o._buffer,m),o._readUntilEnoughDataOrDone(r,n)})}},{key:"_getDataFromBuffer",value:function(r,n){r>this._bufferOffset&&(this._buffer=this._buffer.slice(r-this._bufferOffset),this._bufferOffset=r);var o=nr(this._buffer)===0;return this._done&&o?null:this._buffer.slice(0,n-r)}},{key:"close",value:function(){this._reader.cancel&&this._reader.cancel();}}])}();function Y(e){"@babel/helpers - typeof";return Y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Y(e)}function Ge(){Ge=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(l,i,s){l[i]=s.value;},a=typeof Symbol=="function"?Symbol:{},u=a.iterator||"@@iterator",f=a.asyncIterator||"@@asyncIterator",h=a.toStringTag||"@@toStringTag";function m(l,i,s){return Object.defineProperty(l,i,{value:s,enumerable:true,configurable:true,writable:true}),l[i]}try{m({},"");}catch{m=function(s,c,d){return s[c]=d};}function v(l,i,s,c){var d=i&&i.prototype instanceof F?i:F,p=Object.create(d.prototype),g=new $(c||[]);return o(p,"_invoke",{value:Ue(l,s,g)}),p}function y(l,i,s){try{return {type:"normal",arg:l.call(i,s)}}catch(c){return {type:"throw",arg:c}}}t.wrap=v;var C="suspendedStart",ae="suspendedYield",q="executing",T="completed",S={};function F(){}function R(){}function E(){}var j={};m(j,u,function(){return this});var z=Object.getPrototypeOf,I=z&&z(z(G([])));I&&I!==r&&n.call(I,u)&&(j=I);var D=E.prototype=F.prototype=Object.create(j);function se(l){["next","throw","return"].forEach(function(i){m(l,i,function(s){return this._invoke(i,s)});});}function N(l,i){function s(d,p,g,b){var _=y(l[d],l,p);if(_.type!=="throw"){var O=_.arg,x=O.value;return x&&Y(x)=="object"&&n.call(x,"__await")?i.resolve(x.__await).then(function(P){s("next",P,g,b);},function(P){s("throw",P,g,b);}):i.resolve(x).then(function(P){O.value=P,g(O);},function(P){return s("throw",P,g,b)})}b(_.arg);}var c;o(this,"_invoke",{value:function(p,g){function b(){return new i(function(_,O){s(p,g,_,O);})}return c=c?c.then(b,b):b()}});}function Ue(l,i,s){var c=C;return function(d,p){if(c===q)throw Error("Generator is already running");if(c===T){if(d==="throw")throw p;return {value:e,done:true}}for(s.method=d,s.arg=p;;){var g=s.delegate;if(g){var b=le(g,s);if(b){if(b===S)continue;return b}}if(s.method==="next")s.sent=s._sent=s.arg;else if(s.method==="throw"){if(c===C)throw c=T,s.arg;s.dispatchException(s.arg);}else s.method==="return"&&s.abrupt("return",s.arg);c=q;var _=y(l,i,s);if(_.type==="normal"){if(c=s.done?T:ae,_.arg===S)continue;return {value:_.arg,done:s.done}}_.type==="throw"&&(c=T,s.method="throw",s.arg=_.arg);}}}function le(l,i){var s=i.method,c=l.iterator[s];if(c===e)return i.delegate=null,s==="throw"&&l.iterator.return&&(i.method="return",i.arg=e,le(l,i),i.method==="throw")||s!=="return"&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+s+"' method")),S;var d=y(c,l.iterator,i.arg);if(d.type==="throw")return i.method="throw",i.arg=d.arg,i.delegate=null,S;var p=d.arg;return p?p.done?(i[l.resultName]=p.value,i.next=l.nextLoc,i.method!=="return"&&(i.method="next",i.arg=e),i.delegate=null,S):p:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,S)}function Oe(l){var i={tryLoc:l[0]};1 in l&&(i.catchLoc=l[1]),2 in l&&(i.finallyLoc=l[2],i.afterLoc=l[3]),this.tryEntries.push(i);}function M(l){var i=l.completion||{};i.type="normal",delete i.arg,l.completion=i;}function $(l){this.tryEntries=[{tryLoc:"root"}],l.forEach(Oe,this),this.reset(true);}function G(l){if(l||l===""){var i=l[u];if(i)return i.call(l);if(typeof l.next=="function")return l;if(!isNaN(l.length)){var s=-1,c=function d(){for(;++s<l.length;)if(n.call(l,s))return d.value=l[s],d.done=false,d;return d.value=e,d.done=true,d};return c.next=c}}throw new TypeError(Y(l)+" is not iterable")}return R.prototype=E,o(D,"constructor",{value:E,configurable:true}),o(E,"constructor",{value:R,configurable:true}),R.displayName=m(E,h,"GeneratorFunction"),t.isGeneratorFunction=function(l){var i=typeof l=="function"&&l.constructor;return !!i&&(i===R||(i.displayName||i.name)==="GeneratorFunction")},t.mark=function(l){return Object.setPrototypeOf?Object.setPrototypeOf(l,E):(l.__proto__=E,m(l,h,"GeneratorFunction")),l.prototype=Object.create(D),l},t.awrap=function(l){return {__await:l}},se(N.prototype),m(N.prototype,f,function(){return this}),t.AsyncIterator=N,t.async=function(l,i,s,c,d){d===void 0&&(d=Promise);var p=new N(v(l,i,s,c),d);return t.isGeneratorFunction(i)?p:p.next().then(function(g){return g.done?g.value:p.next()})},se(D),m(D,h,"Generator"),m(D,u,function(){return this}),m(D,"toString",function(){return "[object Generator]"}),t.keys=function(l){var i=Object(l),s=[];for(var c in i)s.push(c);return s.reverse(),function d(){for(;s.length;){var p=s.pop();if(p in i)return d.value=p,d.done=false,d}return d.done=true,d}},t.values=G,$.prototype={constructor:$,reset:function(i){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=false,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(M),!i)for(var s in this)s.charAt(0)==="t"&&n.call(this,s)&&!isNaN(+s.slice(1))&&(this[s]=e);},stop:function(){this.done=true;var i=this.tryEntries[0].completion;if(i.type==="throw")throw i.arg;return this.rval},dispatchException:function(i){if(this.done)throw i;var s=this;function c(O,x){return g.type="throw",g.arg=i,s.next=O,x&&(s.method="next",s.arg=e),!!x}for(var d=this.tryEntries.length-1;d>=0;--d){var p=this.tryEntries[d],g=p.completion;if(p.tryLoc==="root")return c("end");if(p.tryLoc<=this.prev){var b=n.call(p,"catchLoc"),_=n.call(p,"finallyLoc");if(b&&_){if(this.prev<p.catchLoc)return c(p.catchLoc,true);if(this.prev<p.finallyLoc)return c(p.finallyLoc)}else if(b){if(this.prev<p.catchLoc)return c(p.catchLoc,true)}else {if(!_)throw Error("try statement without catch or finally");if(this.prev<p.finallyLoc)return c(p.finallyLoc)}}}},abrupt:function(i,s){for(var c=this.tryEntries.length-1;c>=0;--c){var d=this.tryEntries[c];if(d.tryLoc<=this.prev&&n.call(d,"finallyLoc")&&this.prev<d.finallyLoc){var p=d;break}}p&&(i==="break"||i==="continue")&&p.tryLoc<=s&&s<=p.finallyLoc&&(p=null);var g=p?p.completion:{};return g.type=i,g.arg=s,p?(this.method="next",this.next=p.finallyLoc,S):this.complete(g)},complete:function(i,s){if(i.type==="throw")throw i.arg;return i.type==="break"||i.type==="continue"?this.next=i.arg:i.type==="return"?(this.rval=this.arg=i.arg,this.method="return",this.next="end"):i.type==="normal"&&s&&(this.next=s),S},finish:function(i){for(var s=this.tryEntries.length-1;s>=0;--s){var c=this.tryEntries[s];if(c.finallyLoc===i)return this.complete(c.completion,c.afterLoc),M(c),S}},catch:function(i){for(var s=this.tryEntries.length-1;s>=0;--s){var c=this.tryEntries[s];if(c.tryLoc===i){var d=c.completion;if(d.type==="throw"){var p=d.arg;M(c);}return p}}throw Error("illegal catch attempt")},delegateYield:function(i,s,c){return this.delegate={iterator:G(i),resultName:s,nextLoc:c},this.method==="next"&&(this.arg=e),S}},t}function ir(e,t,r,n,o,a,u){try{var f=e[a](u),h=f.value;}catch(m){r(m);return}f.done?t(h):Promise.resolve(h).then(n,o);}function Rn(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function u(h){ir(a,n,o,u,f,"next",h);}function f(h){ir(a,n,o,u,f,"throw",h);}u(void 0);})}}function Dn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ar(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false,n.configurable=true,"value"in n&&(n.writable=true),Object.defineProperty(e,jn(n.key),n);}}function Cn(e,t,r){return t&&ar(e.prototype,t),Object.defineProperty(e,"prototype",{writable:false}),e}function jn(e){var t=Tn(e,"string");return Y(t)=="symbol"?t:t+""}function Tn(e,t){if(Y(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Y(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return (String)(e)}var sr=function(){function e(){Dn(this,e);}return Cn(e,[{key:"openFile",value:function(){var t=Rn(Ge().mark(function n(o,a){var u;return Ge().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(!(Se()&&o&&typeof o.uri<"u")){h.next=11;break}return h.prev=1,h.next=4,ze(o.uri);case 4:return u=h.sent,h.abrupt("return",new $e(u));case 8:throw h.prev=8,h.t0=h.catch(1),new Error("tus: cannot fetch `file.uri` as Blob, make sure the uri is correct and accessible. ".concat(h.t0));case 11:if(!(typeof o.slice=="function"&&typeof o.size<"u")){h.next=13;break}return h.abrupt("return",Promise.resolve(new $e(o)));case 13:if(typeof o.read!="function"){h.next=18;break}if(a=Number(a),Number.isFinite(a)){h.next=17;break}return h.abrupt("return",Promise.reject(new Error("cannot create source for stream without a finite value for the `chunkSize` option")));case 17:return h.abrupt("return",Promise.resolve(new or(o,a)));case 18:return h.abrupt("return",Promise.reject(new Error("source object may only be an instance of File, Blob, or Reader in this environment")));case 19:case "end":return h.stop()}},n,null,[[1,8]])}));function r(n,o){return t.apply(this,arguments)}return r}()}])}();function Ke(e,t){return Se()?Promise.resolve(Ln(e,t)):Promise.resolve(["tus-br",e.name,e.type,e.size,e.lastModified,t.endpoint].join("-"))}function Ln(e,t){var r=e.exif?An(JSON.stringify(e.exif)):"noexif";return ["tus-rn",e.name||"noname",e.size||"nosize",r,t.endpoint].join("/")}function An(e){var t=0;if(e.length===0)return t;for(var r=0;r<e.length;r++){var n=e.charCodeAt(r);t=(t<<5)-t+n,t&=t;}return t}function ye(e){"@babel/helpers - typeof";return ye=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ye(e)}function Xe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false,n.configurable=true,"value"in n&&(n.writable=true),Object.defineProperty(e,Fn(n.key),n);}}function Ve(e,t,r){return t&&lr(e.prototype,t),Object.defineProperty(e,"prototype",{writable:false}),e}function Fn(e){var t=In(e,"string");return ye(t)=="symbol"?t:t+""}function In(e,t){if(ye(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ye(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return (String)(e)}var ur=function(){function e(){Xe(this,e);}return Ve(e,[{key:"createRequest",value:function(r,n){return new Nn(r,n)}},{key:"getName",value:function(){return "XHRHttpStack"}}])}();var Nn=function(){function e(t,r){Xe(this,e),this._xhr=new XMLHttpRequest,this._xhr.open(t,r,true),this._method=t,this._url=r,this._headers={};}return Ve(e,[{key:"getMethod",value:function(){return this._method}},{key:"getURL",value:function(){return this._url}},{key:"setHeader",value:function(r,n){this._xhr.setRequestHeader(r,n),this._headers[r]=n;}},{key:"getHeader",value:function(r){return this._headers[r]}},{key:"setProgressHandler",value:function(r){"upload"in this._xhr&&(this._xhr.upload.onprogress=function(n){n.lengthComputable&&r(n.loaded);});}},{key:"send",value:function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return new Promise(function(o,a){r._xhr.onload=function(){o(new Hn(r._xhr));},r._xhr.onerror=function(u){a(u);},r._xhr.send(n);})}},{key:"abort",value:function(){return this._xhr.abort(),Promise.resolve()}},{key:"getUnderlyingObject",value:function(){return this._xhr}}])}(),Hn=function(){function e(t){Xe(this,e),this._xhr=t;}return Ve(e,[{key:"getStatus",value:function(){return this._xhr.status}},{key:"getHeader",value:function(r){return this._xhr.getResponseHeader(r)}},{key:"getBody",value:function(){return this._xhr.responseText}},{key:"getUnderlyingObject",value:function(){return this._xhr}}])}();function me(e){"@babel/helpers - typeof";return me=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},me(e)}function Bn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false,n.configurable=true,"value"in n&&(n.writable=true),Object.defineProperty(e,zn(n.key),n);}}function qn(e,t,r){return t&&fr(e.prototype,t),Object.defineProperty(e,"prototype",{writable:false}),e}function zn(e){var t=Mn(e,"string");return me(t)=="symbol"?t:t+""}function Mn(e,t){if(me(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(me(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return (String)(e)}var Ye=false;try{Ye="localStorage"in window,Ee="tusSupport",We=localStorage.getItem(Ee),localStorage.setItem(Ee,We),We===null&&localStorage.removeItem(Ee);}catch(e){if(e.code===e.SECURITY_ERR||e.code===e.QUOTA_EXCEEDED_ERR)Ye=false;else throw e}var Ee,We,cr=Ye,pr=function(){function e(){Bn(this,e);}return qn(e,[{key:"findAllUploads",value:function(){var r=this._findEntries("tus::");return Promise.resolve(r)}},{key:"findUploadsByFingerprint",value:function(r){var n=this._findEntries("tus::".concat(r,"::"));return Promise.resolve(n)}},{key:"removeUpload",value:function(r){return localStorage.removeItem(r),Promise.resolve()}},{key:"addUpload",value:function(r,n){var o=Math.round(Math.random()*1e12),a="tus::".concat(r,"::").concat(o);return localStorage.setItem(a,JSON.stringify(n)),Promise.resolve(a)}},{key:"_findEntries",value:function(r){for(var n=[],o=0;o<localStorage.length;o++){var a=localStorage.key(o);if(a.indexOf(r)===0)try{var u=JSON.parse(localStorage.getItem(a));u.urlStorageKey=a,n.push(u);}catch{}}return n}}])}();function ie(e){"@babel/helpers - typeof";return ie=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ie(e)}function $n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false,n.configurable=true,"value"in n&&(n.writable=true),Object.defineProperty(e,gr(n.key),n);}}function Gn(e,t,r){return r&&hr(e,r),Object.defineProperty(e,"prototype",{writable:false}),e}function Kn(e,t,r){return t=xe(t),Xn(e,mr()?Reflect.construct(t,r||[],xe(e).constructor):t.apply(e,r))}function Xn(e,t){if(t&&(ie(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Vn(e)}function Vn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch{}return (mr=function(){return !!e})()}function xe(e){return xe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xe(e)}function Wn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}}),Object.defineProperty(e,"prototype",{writable:false}),t&&Ze(e,t);}function Ze(e,t){return Ze=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Ze(e,t)}function dr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n);}return r}function oe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dr(Object(r),true).forEach(function(n){Yn(e,n,r[n]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dr(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n));});}return e}function Yn(e,t,r){return t=gr(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true}):e[t]=r,e}function gr(e){var t=Zn(e,"string");return ie(t)=="symbol"?t:t+""}function Zn(e,t){if(ie(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ie(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return (t==="string"?String:Number)(e)}var yr=oe(oe({},we.defaultOptions),{},{httpStack:new ur,fileReader:new sr,urlStorage:cr?new pr:new at,fingerprint:Ke}),vr=function(e){function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return $n(this,t),n=oe(oe({},yr),n),Kn(this,t,[r,n])}return Wn(t,e),Gn(t,null,[{key:"terminate",value:function(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return o=oe(oe({},yr),o),we.terminate(n,o)}}])}(we);exports.a=class w extends chunk5NSCV6C2_cjs.i{constructor(){super(...arguments);this.disableCompletion=false;this._progress=0;this._completed=false;this._dragging=false;this._error=null;this._hasErrorSlot=false;this.playableEmitted=false;this.languageController=new chunkPHGKLFNF_cjs.d(this);this.lastState="initial";this.lastProgress=-1;}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleActionClick),this.addEventListener("keydown",this.handleActionKeyDown),this.languageController.locale=this.locale||"en",this.updateHasErrorSlot(),typeof MutationObserver<"u"&&(this.slotObserver=new MutationObserver(()=>{this.updateHasErrorSlot();}),this.slotObserver.observe(this,{childList:true,subtree:true,attributes:true,attributeFilter:["slot"]})),this.embedChannel=chunkFUSQ4EZG_cjs.a.connect(this.token),this.embedChannel.upload_id&&(this._upload_id=this.embedChannel.upload_id),this.embedChannel.channel.on("initiate",({upload_id:r})=>{this._upload_id=r,this.embedChannel.upload_id=r,this.playableEmitted=false;}),this.embedChannel.channel.on("completed",this.completed.bind(this)),this.embedChannel.channel.on("rendition",this.rendition.bind(this)),this.embedChannel.channel.on("error",this.error.bind(this));}requestUpdate(r,n){super.requestUpdate(r,n),r==="locale"&&(this.languageController.locale=this.locale);}reset(){this._progress=0,this._completed=false,this._error=null,this.playableEmitted=false,this.currentEmbed=void 0,this.embedChannel.channel.push("reset",{});}disconnectedCallback(){chunkFUSQ4EZG_cjs.a.disconnect(this.embedChannel),this.removeEventListener("click",this.handleActionClick),this.removeEventListener("keydown",this.handleActionKeyDown),this.slotObserver?.disconnect(),this.slotObserver=void 0,super.disconnectedCallback();}handleDrop(r){r.preventDefault(),this._dragging=false;let n=r.dataTransfer;if(!n)return;let o=[];if(n.items){for(let u of n.items)if(u.kind==="file"){let f=u.getAsFile();f&&o.push(f);}}else if(n.files)for(let u of n.files)o.push(u);if(!o.length)return;this._error=null;let a=false;for(let u of o)this.isSupportedFile(u)?(a||(this._progress=1,a=true),this.upload(u)):this.handleUnsupportedFile(u);}handleForm(r){let n=r.target;if(n.files){n.files.length&&(this._error=null);let o=false;for(let a of n.files)this.isSupportedFile(a)?(o||(this._progress=1,o=true),this.upload(a)):this.handleUnsupportedFile(a);n.value="";}}upload(r){this.dispatchEvent(new CustomEvent("upload",{bubbles:true,composed:true,detail:{file:r}})),this._error=null;let n=new vr(r,{endpoint:chunk5STN56TL_cjs.a.upload.endpoint,retryDelays:[0,3e3,5e3,1e4,2e4,6e4,6e4],metadata:{title:r.name,filetype:r.type,token:this.token,upload_id:this._upload_id},onError:o=>{console.log(o),this.dispatchEvent(new CustomEvent("failed",{bubbles:true,composed:true,detail:o}));},onProgress:(o,a)=>{let u=Math.round(o/a*100);u>this._progress&&(this._progress=u),this.dispatchEvent(new CustomEvent("progress",{bubbles:true,composed:true,detail:{progress:u}}));},onSuccess:()=>{this._progress=100,this.dispatchEvent(new CustomEvent("processing",{bubbles:true,composed:true}));},removeFingerprintOnSuccess:true});n.findPreviousUploads().then(o=>{o.length&&n.resumeFromPreviousUpload(o[0]),n.start();});}completed(r){this.currentEmbed=r?.embed,this.disableCompletion||(this._completed=true),this.dispatchEvent(new CustomEvent("completed",{bubbles:true,composed:true,detail:r}));}rendition(r){!this.playableEmitted&&this.isPlayableRendition(r)&&(this.playableEmitted=true,this.dispatchEvent(new CustomEvent("playable",{bubbles:true,composed:true,detail:{embed:this.currentEmbed}}))),this.dispatchEvent(new CustomEvent("rendition",{bubbles:true,composed:true,detail:r}));}error(r){console.warn(`[mave-upload] ${r.message}`),this._error={reason:"upload error",message:r.message},this._progress=0,this._completed=false,this.dispatchEvent(new CustomEvent("error",{bubbles:true,detail:r}));}isPlayableRendition(r){return typeof r?.container=="string"&&r.container==="hls"&&r?.type==="video"}updateHasErrorSlot(r){let n=!!this.querySelector('[slot="error"]');this._hasErrorSlot!==n&&(this._hasErrorSlot=n);}render(){switch(this.currentState){case "error":return this.renderError();case "uploading":return this.renderUploading();case "processing":return this.renderProcessing();case "done":return this.renderDone();default:return this.renderInitial()}}styleOpacity(){return this.languageController.loaded?this._upload_id?{}:{pointerEvents:"none",opacity:"0.5"}:{pointerEvents:"none",opacity:"0"}}styleFont(){return this.font?{fontFamily:this.font}:{fontFamily:"system-ui"}}get currentState(){return this._error?"error":this._completed?"done":this._progress>=100&&this._progress>0?"processing":this._progress>0?"uploading":"initial"}openFileDialog(){this.fileInput&&!this.fileInput.disabled&&this.fileInput.click();}findActionTarget(r){for(let n of r.composedPath())if(n instanceof HTMLElement&&n.hasAttribute("data-mave-upload-select"))return n;return null}handleActionClick(r){this.findActionTarget(r)&&(r.preventDefault(),this.openFileDialog());}handleActionKeyDown(r){if(r.key!=="Enter"&&r.key!==" ")return;this.findActionTarget(r)&&(r.preventDefault(),this.openFileDialog());}blockSubmit(r){r.preventDefault();}handleDragEnter(r){r.preventDefault(),this._dragging=true;}handleDragOver(r){r.preventDefault(),r.dataTransfer&&(r.dataTransfer.dropEffect="copy"),this._dragging=true;}handleDragLeave(r){r.preventDefault();let n=r.currentTarget,o=r.relatedTarget;if(!n){this._dragging=false;return}(!o||!(o instanceof Node)||!n.contains(o))&&(this._dragging=false);}isSupportedFile(r){let n=(r.type||"").toLowerCase(),o=exports.a.getFileExtension(r);return n.startsWith("video/")?!o||exports.a.SUPPORTED_VIDEO_EXTENSIONS.has(o):n.startsWith("audio/")?!o||exports.a.SUPPORTED_AUDIO_EXTENSIONS.has(o):o?!!(exports.a.SUPPORTED_VIDEO_EXTENSIONS.has(o)||exports.a.SUPPORTED_AUDIO_EXTENSIONS.has(o)):false}static getFileExtension(r){let n=r.name||"",o=n.lastIndexOf(".");if(!(o===-1||o===n.length-1))return n.slice(o+1).toLowerCase()}handleUnsupportedFile(r){let n={file:r,reason:"unsupported type",allowedExtensions:{video:Array.from(exports.a.SUPPORTED_VIDEO_EXTENSIONS),audio:Array.from(exports.a.SUPPORTED_AUDIO_EXTENSIONS)}};this._error=n,this._progress=0,this._completed=false,this.dispatchEvent(new CustomEvent("invalid",{bubbles:true,composed:true,detail:{...n,message:chunkPHGKLFNF_cjs.b("unsupported file type")}}));}updated(r){super.updated(r);let n=this._progress||0,o=this.currentState;this.setAttribute("state",o),this.setAttribute("progress",`${n}`),this.toggleAttribute("drag-over",this._dragging),this.toggleAttribute("ready",!!this._upload_id&&this.languageController.loaded);let a=o!==this.lastState,u=n!==this.lastProgress,f=r.has("_dragging");(a||u||f)&&this.dispatchEvent(new CustomEvent("statechange",{bubbles:true,composed:true,detail:{state:o,progress:n,dragging:this._dragging,error:this._error}})),this.lastState=o,this.lastProgress=n;}renderInitial(){let r=this.color?this.color:"#1997FF",n=this.radius?this.radius:"16px";return chunk5NSCV6C2_cjs.c`<form
|
|
4
|
+
class="state state--initial"
|
|
5
|
+
style=${chunkQ22T22LT_cjs.a({...this.styleOpacity(),...this.styleFont()})}
|
|
6
|
+
@submit=${this.blockSubmit}
|
|
7
|
+
@dragenter=${this.handleDragEnter}
|
|
8
|
+
@dragover=${this.handleDragOver}
|
|
9
|
+
@dragleave=${this.handleDragLeave}
|
|
10
|
+
@drop=${this.handleDrop}
|
|
11
|
+
>
|
|
12
|
+
<slot name="initial">
|
|
13
|
+
<div class="upload-default-title">${chunkPHGKLFNF_cjs.b("drop video here")}</div>
|
|
14
|
+
<div class="upload-default-subtitle">${chunkPHGKLFNF_cjs.b("or browse your files")}</div>
|
|
15
|
+
<button
|
|
16
|
+
type="button"
|
|
17
|
+
data-mave-upload-select
|
|
18
|
+
class="upload-default-button"
|
|
19
|
+
style=${chunkQ22T22LT_cjs.a({background:r,borderRadius:n})}
|
|
20
|
+
>
|
|
21
|
+
${chunkPHGKLFNF_cjs.b("select file")}
|
|
22
|
+
</button>
|
|
23
|
+
</slot>
|
|
24
|
+
<input
|
|
25
|
+
id="mave-upload-input"
|
|
26
|
+
.disabled=${!this._upload_id}
|
|
27
|
+
type="file"
|
|
28
|
+
accept="video/*, audio/*"
|
|
29
|
+
@change=${this.handleForm}
|
|
30
|
+
hidden
|
|
31
|
+
/>
|
|
32
|
+
</form>`}renderError(){return this._hasErrorSlot?chunk5NSCV6C2_cjs.c`<form
|
|
33
|
+
class="state state--error"
|
|
34
|
+
style=${chunkQ22T22LT_cjs.a({...this.styleOpacity(),...this.styleFont()})}
|
|
35
|
+
@submit=${this.blockSubmit}
|
|
36
|
+
@dragenter=${this.handleDragEnter}
|
|
37
|
+
@dragover=${this.handleDragOver}
|
|
38
|
+
@dragleave=${this.handleDragLeave}
|
|
39
|
+
@drop=${this.handleDrop}
|
|
40
|
+
>
|
|
41
|
+
<slot name="error" @slotchange=${this.updateHasErrorSlot}></slot>
|
|
42
|
+
<input
|
|
43
|
+
id="mave-upload-input"
|
|
44
|
+
.disabled=${!this._upload_id}
|
|
45
|
+
type="file"
|
|
46
|
+
accept="video/*, audio/*"
|
|
47
|
+
@change=${this.handleForm}
|
|
48
|
+
hidden
|
|
49
|
+
/>
|
|
50
|
+
</form>`:this.renderInitial()}renderUploading(){let r=Math.max(0,Math.min(100,this._progress||0));return chunk5NSCV6C2_cjs.c`<div class="state state--uploading" style=${chunkQ22T22LT_cjs.a(this.styleFont())}>
|
|
51
|
+
<slot name="uploading">
|
|
52
|
+
<div class="upload-default-progress" role="status">
|
|
53
|
+
<div
|
|
54
|
+
class="upload-default-progress-bar"
|
|
55
|
+
role="progressbar"
|
|
56
|
+
aria-valuemin="0"
|
|
57
|
+
aria-valuemax="100"
|
|
58
|
+
aria-valuenow=${r}
|
|
59
|
+
>
|
|
60
|
+
<div class="upload-default-progress-value" style="width: ${r}%;"></div>
|
|
61
|
+
</div>
|
|
62
|
+
<div class="upload-default-progress-label">${chunkPHGKLFNF_cjs.b("uploading...")}</div>
|
|
63
|
+
</div>
|
|
64
|
+
</slot>
|
|
65
|
+
</div>`}renderProcessing(){return chunk5NSCV6C2_cjs.c`<div class="state state--processing" style=${chunkQ22T22LT_cjs.a(this.styleFont())}>
|
|
66
|
+
<slot name="processing">
|
|
67
|
+
<div class="upload-default-status" role="status">${chunkPHGKLFNF_cjs.b("just a minute...")}</div>
|
|
68
|
+
</slot>
|
|
69
|
+
</div>`}renderDone(){return chunk5NSCV6C2_cjs.c`<div class="state state--done" style=${chunkQ22T22LT_cjs.a(this.styleFont())}>
|
|
70
|
+
<slot name="done">
|
|
71
|
+
<div class="upload-default-status" role="status">${chunkPHGKLFNF_cjs.b("done")}</div>
|
|
72
|
+
</slot>
|
|
73
|
+
</div>`}};exports.a.SUPPORTED_VIDEO_EXTENSIONS=new Set(["3g2","3gp","avi","mov","mp4","m4v","mkv","qt","ts","mts","m2t","m2ts","webm"]),exports.a.SUPPORTED_AUDIO_EXTENSIONS=new Set(["aac","amr","flac","m4a","m4b","m4p","mp3","ogg","wav"]),exports.a.styles=chunk5NSCV6C2_cjs.h`
|
|
74
|
+
:host {
|
|
75
|
+
all: initial;
|
|
76
|
+
display: block;
|
|
77
|
+
width: 100%;
|
|
78
|
+
aspect-ratio: 16 / 9;
|
|
79
|
+
position: relative;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.state {
|
|
83
|
+
display: flex;
|
|
84
|
+
flex-direction: column;
|
|
85
|
+
justify-content: center;
|
|
86
|
+
align-items: center;
|
|
87
|
+
background: white;
|
|
88
|
+
width: 100%;
|
|
89
|
+
height: 100%;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.state--initial {
|
|
93
|
+
transition: box-shadow 160ms ease;
|
|
94
|
+
gap: 12px;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.state--error {
|
|
98
|
+
transition: box-shadow 160ms ease;
|
|
99
|
+
gap: 12px;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.upload-default-error {
|
|
103
|
+
display: flex;
|
|
104
|
+
flex-direction: column;
|
|
105
|
+
align-items: center;
|
|
106
|
+
gap: 12px;
|
|
107
|
+
text-align: center;
|
|
108
|
+
width: 100%;
|
|
109
|
+
padding: 0 24px;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.upload-default-error-filename {
|
|
113
|
+
font-size: 14px;
|
|
114
|
+
font-weight: 500;
|
|
115
|
+
color: #111;
|
|
116
|
+
max-width: 320px;
|
|
117
|
+
overflow-wrap: anywhere;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.upload-default-error-title {
|
|
121
|
+
font-size: 24px;
|
|
122
|
+
font-weight: 400;
|
|
123
|
+
color: #e5484d;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.upload-default-error-subtitle {
|
|
127
|
+
opacity: 0.6;
|
|
128
|
+
max-width: 320px;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.upload-default-title {
|
|
132
|
+
font-size: 32px;
|
|
133
|
+
padding-bottom: 2px;
|
|
134
|
+
font-weight: 300;
|
|
135
|
+
opacity: 0.9;
|
|
136
|
+
text-align: center;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.upload-default-subtitle {
|
|
140
|
+
opacity: 0.5;
|
|
141
|
+
padding-bottom: 16px;
|
|
142
|
+
text-align: center;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.upload-default-button {
|
|
146
|
+
position: relative;
|
|
147
|
+
width: 150px;
|
|
148
|
+
height: 40px;
|
|
149
|
+
overflow: hidden;
|
|
150
|
+
color: white;
|
|
151
|
+
display: flex;
|
|
152
|
+
justify-content: center;
|
|
153
|
+
align-items: center;
|
|
154
|
+
cursor: pointer;
|
|
155
|
+
border: none;
|
|
156
|
+
font: inherit;
|
|
157
|
+
text-transform: none;
|
|
158
|
+
background: #1997ff;
|
|
159
|
+
border-radius: 16px;
|
|
160
|
+
transition: opacity 160ms ease;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.upload-default-button:hover,
|
|
164
|
+
.upload-default-button:focus {
|
|
165
|
+
opacity: 0.9;
|
|
166
|
+
outline: none;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.upload-default-button:disabled {
|
|
170
|
+
opacity: 0.5;
|
|
171
|
+
cursor: not-allowed;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.upload-default-progress {
|
|
175
|
+
width: 70%;
|
|
176
|
+
max-width: 380px;
|
|
177
|
+
display: flex;
|
|
178
|
+
flex-direction: column;
|
|
179
|
+
gap: 16px;
|
|
180
|
+
align-items: center;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.upload-default-progress-bar {
|
|
184
|
+
width: 100%;
|
|
185
|
+
height: 4px;
|
|
186
|
+
border-radius: 999px;
|
|
187
|
+
background: #e6e6e6;
|
|
188
|
+
overflow: hidden;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.upload-default-progress-value {
|
|
192
|
+
height: 100%;
|
|
193
|
+
background: #1997ff;
|
|
194
|
+
transition: width 200ms cubic-bezier(0, 0, 0.2, 1);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.upload-default-progress-label {
|
|
198
|
+
opacity: 0.6;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.upload-default-status {
|
|
202
|
+
opacity: 0.6;
|
|
203
|
+
padding-bottom: 24px;
|
|
204
|
+
text-align: center;
|
|
205
|
+
}
|
|
206
|
+
`,chunkJHSFSCC2_cjs.c([chunkFUBUUA7Y_cjs.a()],exports.a.prototype,"token",2),chunkJHSFSCC2_cjs.c([chunkFUBUUA7Y_cjs.a()],exports.a.prototype,"locale",2),chunkJHSFSCC2_cjs.c([chunkFUBUUA7Y_cjs.a()],exports.a.prototype,"color",2),chunkJHSFSCC2_cjs.c([chunkFUBUUA7Y_cjs.a()],exports.a.prototype,"font",2),chunkJHSFSCC2_cjs.c([chunkFUBUUA7Y_cjs.a()],exports.a.prototype,"radius",2),chunkJHSFSCC2_cjs.c([chunkFUBUUA7Y_cjs.a({type:Boolean})],exports.a.prototype,"disableCompletion",2),chunkJHSFSCC2_cjs.c([chunkFUBUUA7Y_cjs.b()],exports.a.prototype,"_progress",2),chunkJHSFSCC2_cjs.c([chunkFUBUUA7Y_cjs.b()],exports.a.prototype,"_upload_id",2),chunkJHSFSCC2_cjs.c([chunkFUBUUA7Y_cjs.b()],exports.a.prototype,"_completed",2),chunkJHSFSCC2_cjs.c([chunkFUBUUA7Y_cjs.b()],exports.a.prototype,"_dragging",2),chunkJHSFSCC2_cjs.c([chunkFUBUUA7Y_cjs.b()],exports.a.prototype,"_error",2),chunkJHSFSCC2_cjs.c([chunkFUBUUA7Y_cjs.b()],exports.a.prototype,"_hasErrorSlot",2),chunkJHSFSCC2_cjs.c([chunkFUBUUA7Y_cjs.c("#mave-upload-input")],exports.a.prototype,"fileInput",2),exports.a=chunkJHSFSCC2_cjs.c([chunkPHGKLFNF_cjs.a()],exports.a);typeof window<"u"&&window.customElements&&(window.customElements.get("mave-upload")||window.customElements.define("mave-upload",exports.a));/*! Bundled license information:
|
|
207
|
+
|
|
208
|
+
tus-js-client/lib.esm/upload.js:
|
|
209
|
+
(*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE *)
|
|
210
|
+
|
|
211
|
+
tus-js-client/lib.esm/browser/fileReader.js:
|
|
212
|
+
(*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE *)
|
|
213
|
+
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {b,c,a as a$1}from'./chunk-MMHEOMF5.js';import {g,f}from'./chunk-A4GZBQEB.js';import {a}from'./chunk-
|
|
1
|
+
import {b,c,a as a$1}from'./chunk-MMHEOMF5.js';import {g,f}from'./chunk-A4GZBQEB.js';import {a}from'./chunk-KA24PL7V.js';var De=a((xe,pe)=>{var se=Object.defineProperty,ke=Object.getOwnPropertyDescriptor,Te=Object.getOwnPropertyNames,ye=Object.prototype.hasOwnProperty,Ce=(e,t)=>{for(var s in t)se(e,s,{get:t[s],enumerable:true});},we=(e,t,s,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Te(t))!ye.call(e,n)&&n!==s&&se(e,n,{get:()=>t[n],enumerable:!(i=ke(t,n))||i.enumerable});return e},Ae=e=>we(se({},"__esModule",{value:true}),e),ie=(e,t,s)=>{if(!t.has(e))throw TypeError("Cannot "+s)},h=(e,t,s)=>(ie(e,t,"read from private field"),s?s.call(e):t.get(e)),d=(e,t,s)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,s);},p=(e,t,s,i)=>(ie(e,t,"write to private field"),t.set(e,s),s),w=(e,t,s)=>(ie(e,t,"access private method"),s),he={};Ce(he,{Metrics:()=>Pe});pe.exports=Ae(he);var H=e=>typeof e=="function"?e:function(){return e},Ee=typeof self<"u"?self:null,R=typeof window<"u"?window:null,E=Ee||R||E,$e="2.0.0",g={connecting:0,open:1,closing:2,closed:3},je=1e4,_e=1e3,m={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},v={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},z={longpoll:"longpoll",websocket:"websocket"},Re={complete:4},P=class{constructor(e,t,s,i){this.channel=e,this.event=t,this.payload=s||function(){return {}},this.receivedResp=null,this.timeout=i,this.timeoutTimer=null,this.recHooks=[],this.sent=false;}resend(e){this.timeout=e,this.reset(),this.send();}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=true,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}));}receive(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=false;}matchReceive({status:e,response:t,_ref:s}){this.recHooks.filter(i=>i.status===e).forEach(i=>i.callback(t));}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent);}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null;}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,e=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=e,this.matchReceive(e);}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{});},this.timeout);}hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}trigger(e,t){this.channel.trigger(this.refEvent,{status:e,response:t});}},ce=class{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=null,this.tries=0;}reset(){this.tries=0,clearTimeout(this.timer);}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback();},this.timerCalc(this.tries+1));}},Se=class{constructor(e,t,s){this.state=m.closed,this.topic=e,this.params=H(t||{}),this.socket=s,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=false,this.joinPush=new P(this,v.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new ce(()=>{this.socket.isConnected()&&this.rejoin();},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin();})),this.joinPush.receive("ok",()=>{this.state=m.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(i=>i.send()),this.pushBuffer=[];}),this.joinPush.receive("error",()=>{this.state=m.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout();}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic} ${this.joinRef()}`),this.state=m.closed,this.socket.remove(this);}),this.onError(i=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,i),this.isJoining()&&this.joinPush.reset(),this.state=m.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout();}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic} (${this.joinRef()})`,this.joinPush.timeout),new P(this,v.leave,H({}),this.timeout).send(),this.state=m.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout();}),this.on(v.reply,(i,n)=>{this.trigger(this.replyEventName(n),i);});}join(e=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=e,this.joinedOnce=true,this.rejoin(),this.joinPush}onClose(e){this.on(v.close,e);}onError(e){return this.on(v.error,t=>e(t))}on(e,t){let s=this.bindingRef++;return this.bindings.push({event:e,ref:s,callback:t}),s}off(e,t){this.bindings=this.bindings.filter(s=>!(s.event===e&&(typeof t>"u"||t===s.ref)));}canPush(){return this.socket.isConnected()&&this.isJoined()}push(e,t,s=this.timeout){if(t=t||{},!this.joinedOnce)throw new Error(`tried to push '${e}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let i=new P(this,e,function(){return t},s);return this.canPush()?i.send():(i.startTimeout(),this.pushBuffer.push(i)),i}leave(e=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=m.leaving;let t=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(v.close,"leave");},s=new P(this,v.leave,H({}),e);return s.receive("ok",()=>t()).receive("timeout",()=>t()),s.send(),this.canPush()||s.trigger("ok",{}),s}onMessage(e,t,s){return t}isMember(e,t,s,i){return this.topic!==e?false:i&&i!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:e,event:t,payload:s,joinRef:i}),false):true}joinRef(){return this.joinPush.ref}rejoin(e=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=m.joining,this.joinPush.resend(e));}trigger(e,t,s,i){let n=this.onMessage(e,t,s,i);if(t&&!n)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let r=this.bindings.filter(a=>a.event===e);for(let a=0;a<r.length;a++)r[a].callback(n,s,i||this.joinRef());}replyEventName(e){return `chan_reply_${e}`}isClosed(){return this.state===m.closed}isErrored(){return this.state===m.errored}isJoined(){return this.state===m.joined}isJoining(){return this.state===m.joining}isLeaving(){return this.state===m.leaving}},x=class{static request(e,t,s,i,n,r,a){if(E.XDomainRequest){let o=new E.XDomainRequest;return this.xdomainRequest(o,e,t,i,n,r,a)}else {let o=new E.XMLHttpRequest;return this.xhrRequest(o,e,t,s,i,n,r,a)}}static xdomainRequest(e,t,s,i,n,r,a){return e.timeout=n,e.open(t,s),e.onload=()=>{let o=this.parseJSON(e.responseText);a&&a(o);},r&&(e.ontimeout=r),e.onprogress=()=>{},e.send(i),e}static xhrRequest(e,t,s,i,n,r,a,o){return e.open(t,s,true),e.timeout=r,e.setRequestHeader("Content-Type",i),e.onerror=()=>o&&o(null),e.onreadystatechange=()=>{if(e.readyState===Re.complete&&o){let l=this.parseJSON(e.responseText);o(l);}},a&&(e.ontimeout=a),e.send(n),e}static parseJSON(e){if(!e||e==="")return null;try{return JSON.parse(e)}catch{return console&&console.log("failed to parse JSON response",e),null}}static serialize(e,t){let s=[];for(var i in e){if(!Object.prototype.hasOwnProperty.call(e,i))continue;let n=t?`${t}[${i}]`:i,r=e[i];typeof r=="object"?s.push(this.serialize(r,n)):s.push(encodeURIComponent(n)+"="+encodeURIComponent(r));}return s.join("&")}static appendParams(e,t){if(Object.keys(t).length===0)return e;let s=e.match(/\?/)?"&":"?";return `${e}${s}${this.serialize(t)}`}},Me=e=>{let t="",s=new Uint8Array(e),i=s.byteLength;for(let n=0;n<i;n++)t+=String.fromCharCode(s[n]);return btoa(t)},_=class{constructor(e){this.endPoint=null,this.token=null,this.skipHeartbeat=true,this.reqs=new Set,this.awaitingBatchAck=false,this.currentBatch=null,this.currentBatchTimer=null,this.batchBuffer=[],this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(e),this.readyState=g.connecting,setTimeout(()=>this.poll(),0);}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+z.websocket),"$1/"+z.longpoll)}endpointURL(){return x.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,s){this.close(e,t,s),this.readyState=g.connecting;}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",false);}isActive(){return this.readyState===g.open||this.readyState===g.connecting}poll(){this.ajax("GET","application/json",null,()=>this.ontimeout(),e=>{if(e){var{status:t,token:s,messages:i}=e;this.token=s;}else t=0;switch(t){case 200:i.forEach(n=>{setTimeout(()=>this.onmessage({data:n}),0);}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=g.open,this.onopen({}),this.poll();break;case 403:this.onerror(403),this.close(1008,"forbidden",false);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${t}`)}});}send(e){typeof e!="string"&&(e=Me(e)),this.currentBatch?this.currentBatch.push(e):this.awaitingBatchAck?this.batchBuffer.push(e):(this.currentBatch=[e],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null;},0));}batchSend(e){this.awaitingBatchAck=true,this.ajax("POST","application/x-ndjson",e.join(`
|
|
2
2
|
`),()=>this.onerror("timeout"),t=>{this.awaitingBatchAck=false,!t||t.status!==200?(this.onerror(t&&t.status),this.closeAndRetry(1011,"internal server error",false)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[]);});}close(e,t,s){for(let n of this.reqs)n.abort();this.readyState=g.closed;let i=Object.assign({code:1e3,reason:void 0,wasClean:true},{code:e,reason:t,wasClean:s});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",i)):this.onclose(i);}ajax(e,t,s,i,n){let r,a=()=>{this.reqs.delete(r),i();};r=x.request(e,this.endpointURL(),t,s,this.timeout,a,o=>{this.reqs.delete(r),this.isActive()&&n(o);}),this.reqs.add(r);}},D={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(e,t){if(e.payload.constructor===ArrayBuffer)return t(this.binaryEncode(e));{let s=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(s))}},decode(e,t){if(e.constructor===ArrayBuffer)return t(this.binaryDecode(e));{let[s,i,n,r,a]=JSON.parse(e);return t({join_ref:s,ref:i,topic:n,event:r,payload:a})}},binaryEncode(e){let{join_ref:t,ref:s,event:i,topic:n,payload:r}=e,a=this.META_LENGTH+t.length+s.length+n.length+i.length,o=new ArrayBuffer(this.HEADER_LENGTH+a),l=new DataView(o),f=0;l.setUint8(f++,this.KINDS.push),l.setUint8(f++,t.length),l.setUint8(f++,s.length),l.setUint8(f++,n.length),l.setUint8(f++,i.length),Array.from(t,b=>l.setUint8(f++,b.charCodeAt(0))),Array.from(s,b=>l.setUint8(f++,b.charCodeAt(0))),Array.from(n,b=>l.setUint8(f++,b.charCodeAt(0))),Array.from(i,b=>l.setUint8(f++,b.charCodeAt(0)));var T=new Uint8Array(o.byteLength+r.byteLength);return T.set(new Uint8Array(o),0),T.set(new Uint8Array(r),o.byteLength),T.buffer},binaryDecode(e){let t=new DataView(e),s=t.getUint8(0),i=new TextDecoder;switch(s){case this.KINDS.push:return this.decodePush(e,t,i);case this.KINDS.reply:return this.decodeReply(e,t,i);case this.KINDS.broadcast:return this.decodeBroadcast(e,t,i)}},decodePush(e,t,s){let i=t.getUint8(1),n=t.getUint8(2),r=t.getUint8(3),a=this.HEADER_LENGTH+this.META_LENGTH-1,o=s.decode(e.slice(a,a+i));a=a+i;let l=s.decode(e.slice(a,a+n));a=a+n;let f=s.decode(e.slice(a,a+r));a=a+r;let T=e.slice(a,e.byteLength);return {join_ref:o,ref:null,topic:l,event:f,payload:T}},decodeReply(e,t,s){let i=t.getUint8(1),n=t.getUint8(2),r=t.getUint8(3),a=t.getUint8(4),o=this.HEADER_LENGTH+this.META_LENGTH,l=s.decode(e.slice(o,o+i));o=o+i;let f=s.decode(e.slice(o,o+n));o=o+n;let T=s.decode(e.slice(o,o+r));o=o+r;let b=s.decode(e.slice(o,o+a));o=o+a;let ge=e.slice(o,e.byteLength),be={status:b,response:ge};return {join_ref:l,ref:f,topic:T,event:v.reply,payload:be}},decodeBroadcast(e,t,s){let i=t.getUint8(1),n=t.getUint8(2),r=this.HEADER_LENGTH+2,a=s.decode(e.slice(r,r+i));r=r+i;let o=s.decode(e.slice(r,r+n));r=r+n;let l=e.slice(r,e.byteLength);return {join_ref:null,ref:null,topic:a,event:o,payload:l}}},He=class{constructor(e,t={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.timeout=t.timeout||je,this.transport=t.transport||E.WebSocket||_,this.primaryPassedHealthCheck=false,this.longPollFallbackMs=t.longPollFallbackMs,this.fallbackTimer=null,this.sessionStore=t.sessionStorage||E&&E.sessionStorage,this.establishedConnections=0,this.defaultEncoder=D.encode.bind(D),this.defaultDecoder=D.decode.bind(D),this.closeWasClean=false,this.binaryType=t.binaryType||"arraybuffer",this.connectClock=1,this.transport!==_?(this.encode=t.encode||this.defaultEncoder,this.decode=t.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let s=null;R&&R.addEventListener&&(R.addEventListener("pagehide",i=>{this.conn&&(this.disconnect(),s=this.connectClock);}),R.addEventListener("pageshow",i=>{s===this.connectClock&&(s=null,this.connect());})),this.heartbeatIntervalMs=t.heartbeatIntervalMs||3e4,this.rejoinAfterMs=i=>t.rejoinAfterMs?t.rejoinAfterMs(i):[1e3,2e3,5e3][i-1]||1e4,this.reconnectAfterMs=i=>t.reconnectAfterMs?t.reconnectAfterMs(i):[10,50,100,150,200,250,500,1e3,2e3][i-1]||5e3,this.logger=t.logger||null,!this.logger&&t.debug&&(this.logger=(i,n,r)=>{console.log(`${i}: ${n}`,r);}),this.longpollerTimeout=t.longpollerTimeout||2e4,this.params=H(t.params||{}),this.endPoint=`${e}/${z.websocket}`,this.vsn=t.vsn||$e,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new ce(()=>{this.teardown(()=>this.connect());},this.reconnectAfterMs);}getLongPollTransport(){return _}replaceTransport(e){this.connectClock++,this.closeWasClean=true,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.conn&&(this.conn.close(),this.conn=null),this.transport=e;}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let e=x.appendParams(x.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return e.charAt(0)!=="/"?e:e.charAt(1)==="/"?`${this.protocol()}:${e}`:`${this.protocol()}://${location.host}${e}`}disconnect(e,t,s){this.connectClock++,this.closeWasClean=true,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(e,t,s);}connect(e){e&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=H(e)),!this.conn&&(this.longPollFallbackMs&&this.transport!==_?this.connectWithFallback(_,this.longPollFallbackMs):this.transportConnect());}log(e,t,s){this.logger&&this.logger(e,t,s);}hasLogger(){return this.logger!==null}onOpen(e){let t=this.makeRef();return this.stateChangeCallbacks.open.push([t,e]),t}onClose(e){let t=this.makeRef();return this.stateChangeCallbacks.close.push([t,e]),t}onError(e){let t=this.makeRef();return this.stateChangeCallbacks.error.push([t,e]),t}onMessage(e){let t=this.makeRef();return this.stateChangeCallbacks.message.push([t,e]),t}ping(e){if(!this.isConnected())return false;let t=this.makeRef(),s=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:t});let i=this.onMessage(n=>{n.ref===t&&(this.off([i]),e(Date.now()-s));});return true}transportConnect(){this.connectClock++,this.closeWasClean=false,this.conn=new this.transport(this.endPointURL()),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=e=>this.onConnError(e),this.conn.onmessage=e=>this.onConnMessage(e),this.conn.onclose=e=>this.onConnClose(e);}getSession(e){return this.sessionStore&&this.sessionStore.getItem(e)}storeSession(e,t){this.sessionStore&&this.sessionStore.setItem(e,t);}connectWithFallback(e,t=2500){clearTimeout(this.fallbackTimer);let s=false,i=true,n,r,a=o=>{this.log("transport",`falling back to ${e.name}...`,o),this.off([n,r]),i=false,this.replaceTransport(e),this.transportConnect();};if(this.getSession(`phx:fallback:${e.name}`))return a("memorized");this.fallbackTimer=setTimeout(a,t),r=this.onError(o=>{this.log("transport","error",o),i&&!s&&(clearTimeout(this.fallbackTimer),a(o));}),this.onOpen(()=>{if(s=true,!i)return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${e.name}`,"true"),this.log("transport",`established ${e.name} fallback`);clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(a,t),this.ping(o=>{this.log("transport","connected to primary after",o),this.primaryPassedHealthCheck=true,clearTimeout(this.fallbackTimer);});}),this.transportConnect();}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer);}onConnOpen(){this.hasLogger()&&this.log("transport",`${this.transport.name} connected to ${this.endPointURL()}`),this.closeWasClean=false,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.resetHeartbeat(),this.stateChangeCallbacks.open.forEach(([,e])=>e());}heartbeatTimeout(){this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection"),this.triggerChanError(),this.closeWasClean=false,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),_e,"heartbeat timeout"));}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs));}teardown(e,t,s){if(!this.conn)return e&&e();this.waitForBufferDone(()=>{this.conn&&(t?this.conn.close(t,s||""):this.conn.close()),this.waitForSocketClosed(()=>{this.conn&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),e&&e();});});}waitForBufferDone(e,t=1){if(t===5||!this.conn||!this.conn.bufferedAmount){e();return}setTimeout(()=>{this.waitForBufferDone(e,t+1);},150*t);}waitForSocketClosed(e,t=1){if(t===5||!this.conn||this.conn.readyState===g.closed){e();return}setTimeout(()=>{this.waitForSocketClosed(e,t+1);},150*t);}onConnClose(e){let t=e&&e.code;this.hasLogger()&&this.log("transport","close",e),this.triggerChanError(),this.clearHeartbeats(),!this.closeWasClean&&t!==1e3&&this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(([,s])=>s(e));}onConnError(e){this.hasLogger()&&this.log("transport",e);let t=this.transport,s=this.establishedConnections;this.stateChangeCallbacks.error.forEach(([,i])=>{i(e,t,s);}),(t===this.transport||s>0)&&this.triggerChanError();}triggerChanError(){this.channels.forEach(e=>{e.isErrored()||e.isLeaving()||e.isClosed()||e.trigger(v.error);});}connectionState(){switch(this.conn&&this.conn.readyState){case g.connecting:return "connecting";case g.open:return "open";case g.closing:return "closing";default:return "closed"}}isConnected(){return this.connectionState()==="open"}remove(e){this.off(e.stateChangeRefs),this.channels=this.channels.filter(t=>t!==e);}off(e){for(let t in this.stateChangeCallbacks)this.stateChangeCallbacks[t]=this.stateChangeCallbacks[t].filter(([s])=>e.indexOf(s)===-1);}channel(e,t={}){let s=new Se(e,t,this);return this.channels.push(s),s}push(e){if(this.hasLogger()){let{topic:t,event:s,payload:i,ref:n,join_ref:r}=e;this.log("push",`${t} ${s} (${r}, ${n})`,i);}this.isConnected()?this.encode(e,t=>this.conn.send(t)):this.sendBuffer.push(()=>this.encode(e,t=>this.conn.send(t)));}makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}sendHeartbeat(){this.pendingHeartbeatRef&&!this.isConnected()||(this.pendingHeartbeatRef=this.makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs));}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[]);}onConnMessage(e){this.decode(e.data,t=>{let{topic:s,event:i,payload:n,ref:r,join_ref:a}=t;r&&r===this.pendingHeartbeatRef&&(this.clearHeartbeats(),this.pendingHeartbeatRef=null,this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)),this.hasLogger()&&this.log("receive",`${n.status||""} ${s} ${i} ${r&&"("+r+")"||""}`,n);for(let o=0;o<this.channels.length;o++){let l=this.channels[o];l.isMember(s,i,n,a)&&l.trigger(i,n,r,a);}for(let o=0;o<this.stateChangeCallbacks.message.length;o++){let[,l]=this.stateChangeCallbacks.message[o];l(t);}});}leaveOpenTopic(e){let t=this.channels.find(s=>s.topic===e&&(s.isJoined()||s.isJoining()));t&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${e}"`),t.leave());}};function Le(){return crypto.getRandomValues(new Uint8Array(21)).reduce((e,t)=>e+=(t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t<63?"_":"-","")}var y,S,$,O,B,j,c=class{constructor(){d(this,y,void 0),d(this,S,void 0),d(this,$,void 0),d(this,O,false),d(this,B,false),d(this,j,new Map);}static set config(e){c.instance||(c.instance=new c),p(c.instance,S,e.socketPath),p(c.instance,$,e.apiKey);}static connect(){if(c.instance||(c.instance=new c),!h(c.instance,$)&&!h(c.instance,B)&&(console.warn("[metrics]: Set apiKey using `Metrics.config = {apiKey: 'your_key'}`"),p(c.instance,B,true)),!h(c.instance,S)&&!h(c.instance,O)&&(console.warn("[metrics]: Set path using `Metrics.config = {socketPath: 'ws://localhost:3000/socket`}"),p(c.instance,O,true)),!h(c.instance,y)&&window){let e=t=>[1e3,5e3,1e4][t-1]||25e3;p(c.instance,y,new He(h(c.instance,S)||"ws://localhost:3000/socket",{params:{source_url:`${window.location.protocol}//${window.location.host}${window.location.pathname}`,key:h(c.instance,$)},reconnectAfterMs:e,rejoinAfterMs:e})),h(c.instance,y).connect();}return h(c.instance,y)}static startSession(e,t){let s=h(c.instance,j).get(e);if(s)return s;let i=h(c.instance,y).channel(`session:${Le()}`,{...t,source_url:window.location.href,key:h(c.instance,$)});return h(c.instance,j).set(e,i),i.join(),i}static stopSession(e){let t=h(c.instance,j).get(e);t&&(t.leave(),h(c.instance,j).delete(e));}},I=c;y=new WeakMap,S=new WeakMap,$=new WeakMap,O=new WeakMap,B=new WeakMap,j=new WeakMap;var ae=class{static log(e){console.log(`[mave_metrics]: ${e}`);}static error(e){console.error(`[mave_metrics]: ${e}`);}},X=(e=>(e.DURATIONCHANGE="durationchange",e.LOADEDMETADATA="loadedmetadata",e.TIMEUPDATE="timeupdate",e.LOADEDDATA="loadeddata",e.CANPLAY="canplay",e.CANPLAYTHROUGH="canplaythrough",e.SEEKING="seeking",e.SEEKED="seeked",e.RATECHANGE="ratechange",e.VOLUMECHANGE="volumechange",e.PLAYING="playing",e.ENDED="ended",e.PLAY="play",e.PAUSE="pause",e.ERROR="error",e))(X||{}),u,A,C,k,Q,M,Z,le,ee,ue,te,de,N,V,U,K,Pe=class{constructor(...e){d(this,Z),d(this,ee),d(this,te),d(this,N),d(this,U),this.VERSION="0.1.5",this.timeout=1e4,d(this,u,void 0),d(this,A,void 0),d(this,C,void 0),d(this,k,null),this.bufferTimeInterval=50,this.bufferOffset=(this.bufferTimeInterval-40)/1e3,this.fullscreen=false,d(this,Q,void 0),d(this,M,false),e.length<=1?ae.error("Metrics requires at least two arguments: a querySelectorable, hls instance or HTMLMediaElement/HTMLVideoElement and a metadata object to identify your video."):(typeof e[0]=="string"&&(this.querySelectorable=e[0],this.identifier=e[1]),e[0]instanceof HTMLVideoElement||e[0]instanceof HTMLMediaElement?p(this,u,e[0]):typeof e[0]=="object"&&(this.hls=e[0]),e.length==2&&typeof e[1]=="object"?this.metadata=e[1]:this.identifier=e[1],e[2]&&(this.metadata=e[2]),e[3]&&(this.session_data=e[3]));}static set config(e){I.config=e;}monitor(){let e=this.querySelectorable?document.querySelector(this.querySelectorable):this.hls?.media;return h(this,M)?this:(e||h(this,u)?(h(this,u)||p(this,u,e),p(this,A,w(this,Z,le).call(this,h(this,u))),w(this,ee,ue).call(this),p(this,M,true)):ae.error(`${this.querySelectorable} is not a valid reference to a HTMLVideoElement.`),this)}demonitor(){h(this,M)&&(h(this,Q)?.unobserve(h(this,u)),w(this,te,de).call(this),h(this,A)&&h(this,u)&&I.stopSession(h(this,u)));}};u=new WeakMap,A=new WeakMap,C=new WeakMap,k=new WeakMap,Q=new WeakMap,M=new WeakMap,Z=new WeakSet,le=function(e){return I.connect(),I.startSession(e,{identifier:this.identifier,metadata:this.metadata,session_data:this.session_data})},ee=new WeakSet,ue=function(){for(let e of Object.values(X))h(this,u).addEventListener(e,w(this,N,V).bind(this));},te=new WeakSet,de=function(){for(let e of Object.values(X))h(this,u).removeEventListener(e,w(this,N,V).bind(this));},N=new WeakSet,V=function(e){let t={name:e.type,duration:h(this,u)?.duration};switch(e.type){case "playing":if(h(this,k)==="play")break;h(this,A)?.push("event",{...t,name:"play",from:h(this,u)?.currentTime<1?0:w(this,U,K).call(this)},this.timeout),p(this,k,"play");break;case "pause":if(h(this,u)?.readyState===4){if(h(this,k)==="pause")break;h(this,A)?.push("event",{...t,to:w(this,U,K).call(this)},this.timeout);}p(this,k,"pause");break;case "timeupdate":if(h(this,u)?.ended){p(this,C,void 0);break}if(h(this,C)&&!h(this,u).paused&&Math.abs(h(this,u)?.currentTime-h(this,C))>.5){if(h(this,k)==="pause")break;h(this,A)?.push("event",{...t,name:"pause",to:h(this,C)},this.timeout),p(this,k,"pause");}p(this,C,h(this,u)?.currentTime);break}},U=new WeakSet,K=function(){return h(this,u)?.currentTime.toFixed(2)};});var oe=class{constructor(t,{target:s,config:i,callback:n,skipInitial:r}){this.t=new Set,this.o=false,this.i=false,this.h=t,s!==null&&this.t.add(s??t),this.o=r??this.o,this.callback=n,window.IntersectionObserver?(this.u=new IntersectionObserver(a=>{let o=this.i;this.i=false,this.o&&o||(this.handleChanges(a),this.h.requestUpdate());},i),t.addController(this)):console.warn("IntersectionController error: browser does not support IntersectionObserver.");}handleChanges(t){this.value=this.callback?.(t,this.u);}hostConnected(){for(let t of this.t)this.observe(t);}hostDisconnected(){this.disconnect();}async hostUpdated(){let t=this.u.takeRecords();t.length&&this.handleChanges(t);}observe(t){this.t.add(t),this.u.observe(t),this.i=true;}unobserve(t){this.t.delete(t),this.u.unobserve(t);}disconnect(){this.u.disconnect();}};var{I:Xe}=g;var fe=e=>e.strings===void 0;var L=(e,t)=>{let s=e._$AN;if(s===void 0)return false;for(let i of s)i._$AO?.(t,false),L(i,t);return true},W=e=>{let t,s;do{if((t=e._$AM)===void 0)break;s=t._$AN,s.delete(e),e=t;}while(s?.size===0)},me=e=>{for(let t;t=e._$AM;e=t){let s=t._$AN;if(s===void 0)t._$AN=s=new Set;else if(s.has(e))break;s.add(e),Ne(t);}};function Oe(e){this._$AN!==void 0?(W(this),this._$AM=e,me(this)):this._$AM=e;}function Be(e,t=false,s=0){let i=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(t)if(Array.isArray(i))for(let r=s;r<i.length;r++)L(i[r],false),W(i[r]);else i!=null&&(L(i,false),W(i));else L(this,e);}var Ne=e=>{e.type==a$1.CHILD&&(e._$AP??(e._$AP=Be),e._$AQ??(e._$AQ=Oe));},q=class extends c{constructor(){super(...arguments),this._$AN=void 0;}_$AT(t,s,i){super._$AT(t,s,i),me(this),this.isConnected=t._$AU;}_$AO(t,s=true){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),s&&(L(this,t),W(this));}setValue(t){if(fe(this._$Ct))this._$Ct._$AI(t,this);else {let s=[...this._$Ct._$AH];s[this._$Ci]=t,this._$Ct._$AI(s,this,0);}}disconnected(){}reconnected(){}};var ne=new WeakMap,ot=b(class extends q{render(e){return f}update(e,[t]){let s=t!==this.Y;return s&&this.Y!==void 0&&this.rt(void 0),(s||this.lt!==this.ct)&&(this.Y=t,this.ht=e.options?.host,this.rt(this.ct=e.element)),f}rt(e){if(typeof this.Y=="function"){let t=this.ht??globalThis,s=ne.get(t);s===void 0&&(s=new WeakMap,ne.set(t,s)),s.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),s.set(this.Y,e),e!==void 0&&this.Y.call(this.ht,e);}else this.Y.value=e;}get lt(){return typeof this.Y=="function"?ne.get(this.ht??globalThis)?.get(this.Y):this.Y?.value}disconnected(){this.lt===this.ct&&this.rt(void 0);}reconnected(){this.rt(this.ct);}});/*! Bundled license information:
|
|
3
3
|
|
|
4
4
|
lit-html/directive-helpers.js:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkEOHKHSQ3_cjs=require('./chunk-EOHKHSQ3.cjs'),chunk5NSCV6C2_cjs=require('./chunk-5NSCV6C2.cjs');var e=class extends chunkEOHKHSQ3_cjs.a{get poster(){return `${this.cdn_root}/${this.embedId}/poster.webp`}render(){return chunk5NSCV6C2_cjs.c`<img src=${this.poster} />`}};e.styles=chunk5NSCV6C2_cjs.h`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkDITZCOYN_cjs=require('../chunk-DITZCOYN.cjs');require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"MaveAudioTrackMenu",{enumerable:true,get:function(){return chunkDITZCOYN_cjs.P}});Object.defineProperty(exports,"MaveAudioTrackMenuButton",{enumerable:true,get:function(){return chunkDITZCOYN_cjs.Q}});
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { MediaChromeMenu } from 'media-chrome/dist/menu/media-chrome-menu.js';
|
|
2
|
+
import { MediaChromeMenuButton } from 'media-chrome/dist/menu/media-chrome-menu-button.js';
|
|
3
|
+
|
|
4
|
+
type AudioTrackOption = {
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
language?: string;
|
|
8
|
+
enabled?: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare class MaveAudioTrackMenu extends MediaChromeMenu {
|
|
11
|
+
#private;
|
|
12
|
+
get tracks(): AudioTrackOption[];
|
|
13
|
+
set tracks(value: AudioTrackOption[]);
|
|
14
|
+
get selected(): string | undefined;
|
|
15
|
+
set selected(id: string | undefined);
|
|
16
|
+
connectedCallback(): void;
|
|
17
|
+
disconnectedCallback(): void;
|
|
18
|
+
}
|
|
19
|
+
declare class MaveAudioTrackMenuButton extends MediaChromeMenuButton {
|
|
20
|
+
#private;
|
|
21
|
+
static getSlotTemplateHTML: () => string;
|
|
22
|
+
static getTooltipContentHTML: () => string;
|
|
23
|
+
connectedCallback(): void;
|
|
24
|
+
get invokeTargetElement(): HTMLElement | null;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { MaveAudioTrackMenu, MaveAudioTrackMenuButton };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { MediaChromeMenu } from 'media-chrome/dist/menu/media-chrome-menu.js';
|
|
2
|
+
import { MediaChromeMenuButton } from 'media-chrome/dist/menu/media-chrome-menu-button.js';
|
|
3
|
+
|
|
4
|
+
type AudioTrackOption = {
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
language?: string;
|
|
8
|
+
enabled?: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare class MaveAudioTrackMenu extends MediaChromeMenu {
|
|
11
|
+
#private;
|
|
12
|
+
get tracks(): AudioTrackOption[];
|
|
13
|
+
set tracks(value: AudioTrackOption[]);
|
|
14
|
+
get selected(): string | undefined;
|
|
15
|
+
set selected(id: string | undefined);
|
|
16
|
+
connectedCallback(): void;
|
|
17
|
+
disconnectedCallback(): void;
|
|
18
|
+
}
|
|
19
|
+
declare class MaveAudioTrackMenuButton extends MediaChromeMenuButton {
|
|
20
|
+
#private;
|
|
21
|
+
static getSlotTemplateHTML: () => string;
|
|
22
|
+
static getTooltipContentHTML: () => string;
|
|
23
|
+
connectedCallback(): void;
|
|
24
|
+
get invokeTargetElement(): HTMLElement | null;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { MaveAudioTrackMenu, MaveAudioTrackMenuButton };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as MaveAudioTrackMenu,Q as MaveAudioTrackMenuButton}from'../chunk-T2P4BAWY.js';import'../chunk-KA24PL7V.js';
|
package/dist/components/clip.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkMLZIA6JO_cjs=require('../chunk-MLZIA6JO.cjs');require('../chunk-KVMGCTLR.cjs'),require('../chunk-SDKTBB4N.cjs'),require('../chunk-H57FX4I6.cjs'),require('../chunk-RRCW5BBR.cjs'),require('../chunk-YT56YDUY.cjs'),require('../chunk-ZODBVQLM.cjs'),require('../chunk-LG2O4WV2.cjs'),require('../chunk-FUBUUA7Y.cjs'),require('../chunk-5NSCV6C2.cjs'),require('../chunk-5STN56TL.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"Clip",{enumerable:true,get:function(){return chunkMLZIA6JO_cjs.a}});
|
package/dist/components/clip.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Clip}from'../chunk-
|
|
1
|
+
export{a as Clip}from'../chunk-CHHWULL2.js';import'../chunk-XLUB3ATV.js';import'../chunk-MK4VIJT3.js';import'../chunk-3R7TX6NC.js';import'../chunk-MMHEOMF5.js';import'../chunk-HX6F65VL.js';import'../chunk-F6EKAS27.js';import'../chunk-LCTGZL3L.js';import'../chunk-HMISRRKC.js';import'../chunk-A4GZBQEB.js';import'../chunk-JBV2AYRP.js';import'../chunk-KA24PL7V.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkMSWONVA7_cjs=require('../chunk-MSWONVA7.cjs');require('../chunk-YT56YDUY.cjs'),require('../chunk-ZODBVQLM.cjs'),require('../chunk-LG2O4WV2.cjs'),require('../chunk-EOHKHSQ3.cjs'),require('../chunk-FUBUUA7Y.cjs'),require('../chunk-5NSCV6C2.cjs'),require('../chunk-5STN56TL.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"Files",{enumerable:true,get:function(){return chunkMSWONVA7_cjs.a}});
|
package/dist/components/files.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Files}from'../chunk-
|
|
1
|
+
export{a as Files}from'../chunk-7ZRXZY5C.js';import'../chunk-HX6F65VL.js';import'../chunk-F6EKAS27.js';import'../chunk-LCTGZL3L.js';import'../chunk-24TUG5TP.js';import'../chunk-HMISRRKC.js';import'../chunk-A4GZBQEB.js';import'../chunk-JBV2AYRP.js';import'../chunk-KA24PL7V.js';
|
package/dist/components/img.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkZLS57S3I_cjs=require('../chunk-ZLS57S3I.cjs');require('../chunk-EOHKHSQ3.cjs'),require('../chunk-FUBUUA7Y.cjs'),require('../chunk-5NSCV6C2.cjs'),require('../chunk-5STN56TL.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"Image",{enumerable:true,get:function(){return chunkZLS57S3I_cjs.a}});
|
package/dist/components/img.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Image}from'../chunk-
|
|
1
|
+
export{a as Image}from'../chunk-6XR2OUZW.js';import'../chunk-24TUG5TP.js';import'../chunk-HMISRRKC.js';import'../chunk-A4GZBQEB.js';import'../chunk-JBV2AYRP.js';import'../chunk-KA24PL7V.js';
|
package/dist/components/list.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkOTRPT6Y4_cjs=require('../chunk-OTRPT6Y4.cjs');require('../chunk-32WXLTTE.cjs'),require('../chunk-STJ6CEFZ.cjs'),require('../chunk-BVMU4ZXD.cjs'),require('../chunk-5NKBIUPL.cjs'),require('../chunk-J7OISSKU.cjs'),require('../chunk-Q22T22LT.cjs'),require('../chunk-DITZCOYN.cjs'),require('../chunk-KVMGCTLR.cjs'),require('../chunk-SDKTBB4N.cjs'),require('../chunk-RRCW5BBR.cjs'),require('../chunk-YT56YDUY.cjs'),require('../chunk-ZODBVQLM.cjs'),require('../chunk-LG2O4WV2.cjs'),require('../chunk-EOHKHSQ3.cjs'),require('../chunk-FUBUUA7Y.cjs'),require('../chunk-5NSCV6C2.cjs'),require('../chunk-5STN56TL.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"List",{enumerable:true,get:function(){return chunkOTRPT6Y4_cjs.a}});
|
package/dist/components/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as List}from'../chunk-
|
|
1
|
+
export{a as List}from'../chunk-QZSLJNS4.js';import'../chunk-NKEVN7FX.js';import'../chunk-ULZI6OGL.js';import'../chunk-DFLPNNA4.js';import'../chunk-WE5NUDRY.js';import'../chunk-P6SBZPDR.js';import'../chunk-MS5NFI3Q.js';import'../chunk-T2P4BAWY.js';import'../chunk-XLUB3ATV.js';import'../chunk-MK4VIJT3.js';import'../chunk-MMHEOMF5.js';import'../chunk-HX6F65VL.js';import'../chunk-F6EKAS27.js';import'../chunk-LCTGZL3L.js';import'../chunk-24TUG5TP.js';import'../chunk-HMISRRKC.js';import'../chunk-A4GZBQEB.js';import'../chunk-JBV2AYRP.js';import'../chunk-KA24PL7V.js';
|