text: /*! For license information please see tool.js.LICENSE.txt */
  (()=>{var e,t={5158:e=>{e.exports=function(e){if("number"!=typeof e||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,i=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),i.length-1);e=Number(e/Math.pow(1024,r));var n=i[r];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+n:(t?"-":"")+e.toFixed(1)+" "+n}},2744:(e,t,i)=>{"use strict";function r(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var n=0;function s(e){return"__private_"+n+++"_"+e}const{AbortController:o,createAbortError:a}=i(8692),l=i(254),u={limit:1,retryDelays:[0,1e3,3e3,5e3],getChunkSize:e=>Math.ceil(e.size/1e4),onStart(){},onProgress(){},onPartComplete(){},onSuccess(){},onError(e){throw e}};function c(e){if("string"==typeof e)return parseInt(e,10);if("number"==typeof e)return e;throw new TypeError("Expected a number")}var h=s("aborted"),p=s("initChunks"),d=s("createUpload"),f=s("resumeUpload"),m=s("uploadParts"),g=s("retryable"),v=s("prepareUploadParts"),y=s("uploadPartRetryable"),b=s("uploadPart"),w=s("onPartProgress"),_=s("onPartComplete"),S=s("uploadPartBytes"),k=s("completeUpload"),P=s("abortUpload"),C=s("onError");function x(){return this.abortController.signal.aborted}function A(){const e=[],t=this.options.getChunkSize(this.file),i=Math.max(5242880,Math.ceil(this.file.size/1e4)),r=Math.max(t,i);if(0===this.file.size)e.push(this.file);else for(let t=0;t<this.file.size;t+=r){const i=Math.min(this.file.size,t+r);e.push(this.file.slice(t,i))}this.chunks=e,this.chunkState=e.map((()=>({uploaded:0,busy:!1,done:!1})))}function O(){return this.createdPromise=Promise.resolve().then((()=>this.options.createMultipartUpload())),this.createdPromise.then((e=>{if(r(this,h)[h]())throw a();if(!("object"==typeof e&&e&&"string"==typeof e.uploadId&&"string"==typeof e.key))throw new TypeError("AwsS3/Multipart: Got incorrect result from `createMultipartUpload()`, expected an object `{ uploadId, key }`.");this.key=e.key,this.uploadId=e.uploadId,this.options.onStart(e),r(this,m)[m]()})).catch((e=>{r(this,C)[C](e)}))}async function T(){try{const e=await this.options.listParts({uploadId:this.uploadId,key:this.key});if(r(this,h)[h]())throw a();e.forEach((e=>{const t=e.PartNumber-1;this.chunkState[t]={uploaded:c(e.Size),etag:e.ETag,done:!0},this.parts.some((t=>t.PartNumber===e.PartNumber))||this.parts.push({PartNumber:e.PartNumber,ETag:e.ETag})})),r(this,m)[m]()}catch(e){r(this,C)[C](e)}}function E(){if(this.isPaused)return;if(this.chunkState.every((e=>e.done)))return void r(this,k)[k]();const e=this.options.limit-this.partsInProgress,t=this.chunkState.filter((e=>e.done)).length,i=this.chunks.length-t;let n=Math.ceil(this.options.limit/2);if(n>i&&(n=i),e<n)return;const s=[];for(let t=0;t<this.chunkState.length;t++){const i=this.chunkState[t];if(!i.done&&!i.busy&&(s.push(t),s.length>=e))break}0!==s.length&&r(this,v)[v](s).then((e=>{s.forEach((t=>{const i=t+1,n={url:e.presignedUrls[i],headers:e.headers};r(this,y)[y](t,n).then((()=>{r(this,m)[m]()}),(e=>{r(this,C)[C](e)}))}))}))}function F(e){let{before:t,attempt:i,after:n}=e;const{retryDelays:s}=this.options,{signal:o}=this.abortController;t&&t();const u=e=>i().catch((t=>{if(r(this,h)[h]())throw a();if(function(e){if(e.source&&"number"==typeof e.source.status){const{status:t}=e.source;return 0===t||409===t||423===t||t>=500&&t<600}return!1}(t)&&e<s.length)return l(s[e],{signal:o}).then((()=>u(e+1)));throw t}));return u(0).then((e=>(n&&n(),e)),(e=>{throw n&&n(),e}))}async function M(e){e.forEach((e=>{this.chunkState[e].busy=!0}));const t=await r(this,g)[g]({attempt:()=>this.options.prepareUploadParts({key:this.key,uploadId:this.uploadId,partNumbers:e.map((e=>e+1))})});if("object"!=typeof(null==t?void 0:t.presignedUrls))throw new TypeError("AwsS3/Multipart: Got incorrect result from `prepareUploadParts()`, expected an object `{ presignedUrls }`.");return t}function D(e,t){return r(this,g)[g]({before:()=>{this.partsInProgress+=1},attempt:()=>r(this,b)[b](e,t),after:()=>{this.partsInProgress-=1}})}function R(e,t){this.chunkState[e].busy=!0;if(!("string"==typeof(null==t?void 0:t.url)))throw new TypeError("AwsS3/Multipart: Got incorrect result for `prePreparedPart`, expected an object `{ url }`.");const{url:i,headers:n}=t;if(r(this,h)[h]())throw this.chunkState[e].busy=!1,a();return r(this,S)[S](e,i,n)}function U(e,t){this.chunkState[e].uploaded=c(t);const i=this.chunkState.reduce(((e,t)=>e+t.uploaded),0);this.options.onProgress(i,this.file.size)}function I(e,t){this.chunkState[e].etag=t,this.chunkState[e].done=!0;const i={PartNumber:e+1,ETag:t};this.parts.push(i),this.options.onPartComplete(i)}function N(e,t,i){const n=this.chunks[e],{signal:s}=this.abortController;let o;const l=new Promise(((e,t)=>{o={resolve:e,reject:t}})),u=new XMLHttpRequest;function c(){s.removeEventListener("abort",h)}function h(){u.abort()}return u.open("PUT",t,!0),i&&Object.keys(i).forEach((e=>{u.setRequestHeader(e,i[e])})),u.responseType="text",s.addEventListener("abort",h),u.upload.addEventListener("progress",(t=>{t.lengthComputable&&r(this,w)[w](e,t.loaded,t.total)})),u.addEventListener("abort",(()=>{c(),this.chunkState[e].busy=!1,o.reject(a())})),u.addEventListener("load",(t=>{if(c(),this.chunkState[e].busy=!1,t.target.status<200||t.target.status>=300){const e=new Error("Non 2xx");return e.source=t.target,void o.reject(e)}this.chunks[e]=null,r(this,w)[w](e,n.size,n.size);const i=t.target.getResponseHeader("ETag");null!==i?(r(this,_)[_](e,i),o.resolve()):o.reject(new Error("AwsS3/Multipart: Could not read the ETag header. This likely means CORS is not configured correctly on the S3 Bucket. See https://uppy.io/docs/aws-s3-multipart#S3-Bucket-Configuration for instructions."))})),u.addEventListener("error",(t=>{c(),this.chunkState[e].busy=!1;const i=new Error("Unknown error");i.source=t.target,o.reject(i)})),u.send(n),l}async function B(){this.parts.sort(((e,t)=>e.PartNumber-t.PartNumber));try{const e=await this.options.completeMultipartUpload({key:this.key,uploadId:this.uploadId,parts:this.parts});this.options.onSuccess(e)}catch(e){r(this,C)[C](e)}}function L(){this.abortController.abort(),this.createdPromise.then((()=>{this.options.abortMultipartUpload({key:this.key,uploadId:this.uploadId})}),(()=>{}))}function $(e){e&&"AbortError"===e.name||this.options.onError(e)}e.exports=class{constructor(e,t){Object.defineProperty(this,C,{value:$}),Object.defineProperty(this,P,{value:L}),Object.defineProperty(this,k,{value:B}),Object.defineProperty(this,S,{value:N}),Object.defineProperty(this,_,{value:I}),Object.defineProperty(this,w,{value:U}),Object.defineProperty(this,b,{value:R}),Object.defineProperty(this,y,{value:D}),Object.defineProperty(this,v,{value:M}),Object.defineProperty(this,g,{value:F}),Object.defineProperty(this,m,{value:E}),Object.defineProperty(this,f,{value:T}),Object.defineProperty(this,d,{value:O}),Object.defineProperty(this,p,{value:A}),Object.defineProperty(this,h,{value:x}),this.options={...u,...t},this.options.getChunkSize||(this.options.getChunkSize=u.getChunkSize),this.file=e,this.abortController=new o,this.key=this.options.key||null,this.uploadId=this.options.uploadId||null,this.parts=[],this.createdPromise=Promise.reject(),this.isPaused=!1,this.partsInProgress=0,this.chunks=null,this.chunkState=null,r(this,p)[p](),this.createdPromise.catch((()=>{}))}start(){this.isPaused=!1,this.uploadId?r(this,f)[f]():r(this,d)[d]()}pause(){this.abortController.abort(),this.abortController=new o,this.isPaused=!0}abort(e){var t;void 0===e&&(e=void 0),null!=(t=e)&&t.really?r(this,P)[P]():this.pause()}}},7949:(e,t,i)=>{"use strict";var r,n;const s=i(8937),{Socket:o,Provider:a,RequestClient:l}=i(6385),u=i(8429),c=i(7351),h=i(5313),{RateLimitedQueue:p}=i(8618),d=i(2744);function f(e){if(e&&e.error){const t=new Error(e.message);throw Object.assign(t,e.error),t}return e}e.exports=(n=r=class extends s{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"AwsS3Multipart",this.title="AWS S3 Multipart",this.client=new l(e,t);const i={timeout:3e4,limit:0,retryDelays:[0,1e3,3e3,5e3],createMultipartUpload:this.createMultipartUpload.bind(this),listParts:this.listParts.bind(this),prepareUploadParts:this.prepareUploadParts.bind(this),abortMultipartUpload:this.abortMultipartUpload.bind(this),completeMultipartUpload:this.completeMultipartUpload.bind(this)};this.opts={...i,...t},this.upload=this.upload.bind(this),this.requests=new p(this.opts.limit),this.uploaders=Object.create(null),this.uploaderEvents=Object.create(null),this.uploaderSockets=Object.create(null)}resetUploaderReferences(e,t){void 0===t&&(t={}),this.uploaders[e]&&(this.uploaders[e].abort({really:t.abort||!1}),this.uploaders[e]=null),this.uploaderEvents[e]&&(this.uploaderEvents[e].remove(),this.uploaderEvents[e]=null),this.uploaderSockets[e]&&(this.uploaderSockets[e].close(),this.uploaderSockets[e]=null)}assertHost(e){if(!this.opts.companionUrl)throw new Error(`Expected a \`companionUrl\` option containing a Companion address, or if you are not using Companion, a custom \`${e}\` implementation.`)}createMultipartUpload(e){this.assertHost("createMultipartUpload");const t={};return Object.keys(e.meta).forEach((i=>{null!=e.meta[i]&&(t[i]=e.meta[i].toString())})),this.client.post("s3/multipart",{filename:e.name,type:e.type,metadata:t}).then(f)}listParts(e,t){let{key:i,uploadId:r}=t;this.assertHost("listParts");const n=encodeURIComponent(i);return this.client.get(`s3/multipart/${r}?key=${n}`).then(f)}prepareUploadParts(e,t){let{key:i,uploadId:r,partNumbers:n}=t;this.assertHost("prepareUploadParts");const s=encodeURIComponent(i);return this.client.get(`s3/multipart/${r}/batch?key=${s}&partNumbers=${n.join(",")}`).then(f)}completeMultipartUpload(e,t){let{key:i,uploadId:r,parts:n}=t;this.assertHost("completeMultipartUpload");const s=encodeURIComponent(i),o=encodeURIComponent(r);return this.client.post(`s3/multipart/${o}/complete?key=${s}`,{parts:n}).then(f)}abortMultipartUpload(e,t){let{key:i,uploadId:r}=t;this.assertHost("abortMultipartUpload");const n=encodeURIComponent(i),s=encodeURIComponent(r);return this.client.delete(`s3/multipart/${s}?key=${n}`).then(f)}uploadFile(e){return new Promise(((t,i)=>{const r=new d(e.data,{createMultipartUpload:this.opts.createMultipartUpload.bind(this,e),listParts:this.opts.listParts.bind(this,e),prepareUploadParts:this.opts.prepareUploadParts.bind(this,e),completeMultipartUpload:this.opts.completeMultipartUpload.bind(this,e),abortMultipartUpload:this.opts.abortMultipartUpload.bind(this,e),getChunkSize:this.opts.getChunkSize?this.opts.getChunkSize.bind(this):null,onStart:t=>{const i=this.uppy.getFile(e.id);this.uppy.setFileState(e.id,{s3Multipart:{...i.s3Multipart,key:t.key,uploadId:t.uploadId}})},onProgress:(t,i)=>{this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t,bytesTotal:i})},onError:t=>{this.uppy.log(t),this.uppy.emit("upload-error",e,t),n.done(),this.resetUploaderReferences(e.id),i(t)},onSuccess:i=>{const s={body:{...i},uploadURL:i.location};n.done(),this.resetUploaderReferences(e.id);const o=this.uppy.getFile(e.id);this.uppy.emit("upload-success",o||e,s),i.location&&this.uppy.log(`Download ${r.file.name} from ${i.location}`),t(r)},onPartComplete:t=>{const i=this.uppy.getFile(e.id);i&&this.uppy.emit("s3-multipart:part-uploaded",i,t)},limit:this.opts.limit||5,retryDelays:this.opts.retryDelays||[],...e.s3Multipart});this.uploaders[e.id]=r,this.uploaderEvents[e.id]=new u(this.uppy);let n=this.requests.run((()=>(e.isPaused||r.start(),()=>{})));this.onFileRemove(e.id,(i=>{n.abort(),this.resetUploaderReferences(e.id,{abort:!0}),t(`upload ${i.id} was removed`)})),this.onCancelAll(e.id,(()=>{n.abort(),this.resetUploaderReferences(e.id,{abort:!0}),t(`upload ${e.id} was canceled`)})),this.onFilePause(e.id,(e=>{e?(n.abort(),r.pause()):(n.abort(),n=this.requests.run((()=>(r.start(),()=>{}))))})),this.onPauseAll(e.id,(()=>{n.abort(),r.pause()})),this.onResumeAll(e.id,(()=>{n.abort(),e.error&&r.abort(),n=this.requests.run((()=>(r.start(),()=>{})))})),e.progress.uploadStarted&&e.isRestored||this.uppy.emit("upload-started",e)}))}uploadRemote(e){return this.resetUploaderReferences(e.id),e.progress.uploadStarted&&e.isRestored||this.uppy.emit("upload-started",e),e.serverToken?this.connectToServerSocket(e):new Promise(((t,i)=>{new(e.remote.providerOptions.provider?a:l)(this.uppy,e.remote.providerOptions).post(e.remote.url,{...e.remote.body,protocol:"s3-multipart",size:e.data.size,metadata:e.meta}).then((t=>(this.uppy.setFileState(e.id,{serverToken:t.token}),e=this.uppy.getFile(e.id)))).then((e=>this.connectToServerSocket(e))).then((()=>{t()})).catch((t=>{this.uppy.emit("upload-error",e,t),i(t)}))}))}connectToServerSocket(e){return new Promise(((t,i)=>{const r=e.serverToken,n=h(e.remote.companionUrl),s=new o({target:`${n}/api/${r}`,autoOpen:!1});this.uploaderSockets[e.id]=s,this.uploaderEvents[e.id]=new u(this.uppy),this.onFileRemove(e.id,(()=>{a.abort(),s.send("cancel",{}),this.resetUploaderReferences(e.id,{abort:!0}),t(`upload ${e.id} was removed`)})),this.onFilePause(e.id,(e=>{e?(a.abort(),s.send("pause",{})):(a.abort(),a=this.requests.run((()=>(s.send("resume",{}),()=>{}))))})),this.onPauseAll(e.id,(()=>{a.abort(),s.send("pause",{})})),this.onCancelAll(e.id,(()=>{a.abort(),s.send("cancel",{}),this.resetUploaderReferences(e.id),t(`upload ${e.id} was canceled`)})),this.onResumeAll(e.id,(()=>{a.abort(),e.error&&s.send("pause",{}),a=this.requests.run((()=>{s.send("resume",{})}))})),this.onRetry(e.id,(()=>{s.isOpen&&(s.send("pause",{}),s.send("resume",{}))})),this.onRetryAll(e.id,(()=>{s.isOpen&&(s.send("pause",{}),s.send("resume",{}))})),s.on("progress",(t=>c(this,t,e))),s.on("error",(t=>{this.uppy.emit("upload-error",e,new Error(t.error)),this.resetUploaderReferences(e.id),a.done(),i(new Error(t.error))})),s.on("success",(i=>{const r={uploadURL:i.url};this.uppy.emit("upload-success",e,r),this.resetUploaderReferences(e.id),a.done(),t()}));let a=this.requests.run((()=>(s.open(),e.isPaused&&s.send("pause",{}),()=>{})))}))}upload(e){if(0===e.length)return Promise.resolve();const t=e.map((e=>{const t=this.uppy.getFile(e);return t.isRemote?this.uploadRemote(t):this.uploadFile(t)}));return Promise.all(t)}onFileRemove(e,t){this.uploaderEvents[e].on("file-removed",(i=>{e===i.id&&t(i.id)}))}onFilePause(e,t){this.uploaderEvents[e].on("upload-pause",((i,r)=>{e===i&&t(r)}))}onRetry(e,t){this.uploaderEvents[e].on("upload-retry",(i=>{e===i&&t()}))}onRetryAll(e,t){this.uploaderEvents[e].on("retry-all",(()=>{this.uppy.getFile(e)&&t()}))}onPauseAll(e,t){this.uploaderEvents[e].on("pause-all",(()=>{this.uppy.getFile(e)&&t()}))}onCancelAll(e,t){this.uploaderEvents[e].on("cancel-all",(()=>{this.uppy.getFile(e)&&t()}))}onResumeAll(e,t){this.uploaderEvents[e].on("resume-all",(()=>{this.uppy.getFile(e)&&t()}))}install(){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,resumableUploads:!0}}),this.uppy.addUploader(this.upload)}uninstall(){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,resumableUploads:!1}}),this.uppy.removeUploader(this.upload)}},r.VERSION="2.2.0",n)},1220:e=>{"use strict";class t extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}e.exports=t},6808:(e,t,i)=>{"use strict";const r=i(2368),n=i(8871);e.exports=class extends r{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||this.id.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" "),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then((e=>{let[t,i]=e;const r={};return i&&(r["uppy-auth-token"]=i),this.companionKeysParams&&(r["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...t,...r}}))}onReceiveResponse(e){e=super.onReceiveResponse(e);const t=this.uppy.getPlugin(this.pluginId),i=t.getPluginState().authenticated?401!==e.status:e.status<400;return t.setPluginState({authenticated:i}),e}setAuthToken(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(e){return void 0===e&&(e={}),this.preAuthToken&&(e.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(e)}`}fileUrl(e){return`${this.hostname}/${this.id}/get/${e}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(`${this.id}/preauth/`,{params:this.companionKeysParams}).then((e=>{this.preAuthToken=e.token})).catch((e=>{this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${e}`,"warning")})):Promise.resolve()}list(e){return this.get(`${this.id}/list/${e||""}`)}logout(){return this.get(`${this.id}/logout`).then((e=>Promise.all([e,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)]))).then((e=>{let[t]=e;return t}))}static initPlugin(e,t,i){if(e.type="acquirer",e.files=[],i&&(e.opts={...i,...t}),t.serverUrl||t.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(t.companionAllowedHosts){const i=t.companionAllowedHosts;if(!("string"==typeof i||Array.isArray(i)||i instanceof RegExp))throw new TypeError(`${e.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);e.opts.companionAllowedHosts=i}else/^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts=`https://${t.companionUrl.replace(/^\/\//,"")}`:e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||n}}},2368:(e,t,i)=>{"use strict";var r,n,s,o,a;function l(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var u=0;function c(e){return"__private_"+u+++"_"+e}const h=i(6865),p=i(1220);async function d(e){if(401===e.status)throw new p;const t=e.json();if(e.status<200||e.status>300){let i=`Failed request with status: ${e.status}. ${e.statusText}`;try{const e=await t;i=e.message?`${i} message: ${e.message}`:i,i=e.requestId?`${i} request-Id: ${e.requestId}`:i}finally{throw new Error(i)}}return t}function f(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function m(e,t){return i=>{var r;if(null==(r=i)||!r.isAuthError){const r=new Error(`Could not ${e} ${l(this,s)[s](t)}`);r.cause=i,i=r}return Promise.reject(i)}}e.exports=(n=c("getPostResponseFunc"),s=c("getUrl"),o=c("errorHandler"),a=r=class e{constructor(e,t){Object.defineProperty(this,o,{value:m}),Object.defineProperty(this,s,{value:f}),Object.defineProperty(this,n,{writable:!0,value:e=>t=>e?t:this.onReceiveResponse(t)}),this.uppy=e,this.opts=t,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:e}=this.uppy.getState(),t=this.opts.companionUrl;return(e&&e[t]?e[t]:t).replace(/\/$/,"")}headers(){const t=this.opts.companionHeaders||{};return Promise.resolve({...e.defaultHeaders,...t})}onReceiveResponse(e){const t=this.uppy.getState().companion||{},i=this.opts.companionUrl,{headers:r}=e;return r.has("i-am")&&r.get("i-am")!==t[i]&&this.uppy.setState({companion:{...t,[i]:r.get("i-am")}}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(l(this,s)[s](e),{method:"OPTIONS"}).then((e=>(e.headers.has("access-control-allow-headers")&&(this.allowedHeaders=e.headers.get("access-control-allow-headers").split(",").map((e=>e.trim().toLowerCase()))),this.preflightDone=!0,this.allowedHeaders.slice()))).catch((e=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${e}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice())))}preflightAndHeaders(e){return Promise.all([this.preflight(e),this.headers()]).then((e=>{let[t,i]=e;return Object.keys(i).forEach((e=>{t.includes(e.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${e}`),delete i[e])})),i}))}get(e,t){return this.preflightAndHeaders(e).then((t=>h(l(this,s)[s](e),{method:"get",headers:t,credentials:this.opts.companionCookiesRule||"same-origin"}))).then(l(this,n)[n](t)).then(d).catch(l(this,o)[o]("get",e))}post(e,t,i){const r="post";return this.preflightAndHeaders(e).then((i=>h(l(this,s)[s](e),{method:r,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(t)}))).then(l(this,n)[n](i)).then(d).catch(l(this,o)[o](r,e))}delete(e,t,i){const r="delete";return this.preflightAndHeaders(e).then((i=>h(`${this.hostname}/${e}`,{method:r,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:t?JSON.stringify(t):null}))).then(l(this,n)[n](i)).then(d).catch(l(this,o)[o](r,e))}},r.VERSION="2.0.4",r.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${r.VERSION}`},a)},3145:(e,t,i)=>{"use strict";const r=i(2368);e.exports=class extends r{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||this.id.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" "),this.pluginId=this.opts.pluginId}fileUrl(e){return`${this.hostname}/search/${this.id}/get/${e}`}search(e,t){return t=t?`&${t}`:"",this.get(`search/${this.id}/list?q=${encodeURIComponent(e)}${t}`)}}},9906:(e,t,i)=>{"use strict";var r,n,s,o,a;let l,u;function c(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var h=0;function p(e){return"__private_"+h+++"_"+e}const d=i(4800);e.exports=(r=p("queued"),n=p("emitter"),s=p("isOpen"),o=p("socket"),a=p("handleMessage"),l=Symbol.for("uppy test: getSocket"),u=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,r,{writable:!0,value:[]}),Object.defineProperty(this,n,{writable:!0,value:d()}),Object.defineProperty(this,s,{writable:!0,value:!1}),Object.defineProperty(this,o,{writable:!0,value:void 0}),Object.defineProperty(this,a,{writable:!0,value:e=>{try{const t=JSON.parse(e.data);this.emit(t.action,t.payload)}catch(e){console.log(e)}}}),this.opts=e,e&&!1===e.autoOpen||this.open()}get isOpen(){return c(this,s)[s]}[l](){return c(this,o)[o]}[u](){return c(this,r)[r]}open(){c(this,o)[o]=new WebSocket(this.opts.target),c(this,o)[o].onopen=()=>{for(c(this,s)[s]=!0;c(this,r)[r].length>0&&c(this,s)[s];){const e=c(this,r)[r].shift();this.send(e.action,e.payload)}},c(this,o)[o].onclose=()=>{c(this,s)[s]=!1},c(this,o)[o].onmessage=c(this,a)[a]}close(){var e;null==(e=c(this,o)[o])||e.close()}send(e,t){c(this,s)[s]?c(this,o)[o].send(JSON.stringify({action:e,payload:t})):c(this,r)[r].push({action:e,payload:t})}on(e,t){c(this,n)[n].on(e,t)}emit(e,t){c(this,n)[n].emit(e,t)}once(e,t){c(this,n)[n].once(e,t)}})},6385:(e,t,i)=>{"use strict";const r=i(2368),n=i(6808),s=i(3145),o=i(9906);e.exports={RequestClient:r,Provider:n,SearchProvider:s,Socket:o}},8871:e=>{"use strict";e.exports.setItem=(e,t)=>new Promise((i=>{localStorage.setItem(e,t),i()})),e.exports.getItem=e=>Promise.resolve(localStorage.getItem(e)),e.exports.removeItem=e=>new Promise((t=>{localStorage.removeItem(e),t()}))},8937:(e,t,i)=>{"use strict";const r=i(3363);e.exports=class{constructor(e,t){void 0===t&&(t={}),this.uppy=e,this.opts=t}getPluginState(){const{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(),this.i18nInit()}i18nInit(){const e=new r([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}}},4649:(e,t,i)=>{"use strict";function r(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var n=0;function s(e){return"__private_"+n+++"_"+e}const{render:o}=i(6400),a=i(2729),l=i(8937);var u=s("updateUI");class c extends l{constructor(){super(...arguments),Object.defineProperty(this,u,{writable:!0,value:void 0})}mount(e,t){const i=t.id,n=a(e);if(n){this.isTargetDOMEl=!0;const t=document.createDocumentFragment();return r(this,u)[u]=function(e){let t=null,i=null;return function(){for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];return i=n,t||(t=Promise.resolve().then((()=>(t=null,e(...i))))),t}}((e=>{this.uppy.getPlugin(this.id)&&(o(this.render(e),t),this.afterUpdate())})),this.uppy.log(`Installing ${i} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(n.innerHTML=""),o(this.render(this.uppy.getState()),t),this.el=t.firstElementChild,n.appendChild(t),this.onMount(),this.el}let s;if("object"==typeof e&&e instanceof c)s=e;else if("function"==typeof e){const t=e;this.uppy.iteratePlugins((e=>{if(e instanceof t)return s=e,!1}))}if(s)return this.uppy.log(`Installing ${i} to ${s.id}`),this.parent=s,this.el=s.addTarget(t),this.onMount(),this.el;this.uppy.log(`Not installing ${i}`);let l=`Invalid target option given to ${i}.`;throw l+="function"==typeof e?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(l)}update(e){var t,i;null!=this.el&&(null==(t=(i=r(this,u))[u])||t.call(i,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove());this.onUnmount()}onMount(){}onUnmount(){}}e.exports=c},1790:(e,t,i)=>{"use strict";let r,n;function s(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var o=0;function a(e){return"__private_"+o+++"_"+e}const l=i(3363),u=i(4800),{nanoid:c}=i(2961),h=i(3096),p=i(5158),d=i(4193),f=i(6273),m=i(9404),g=i(8744),v=i(8619),y=i(8585),b=i(2008),{justErrorsLogger:w,debugLogger:_}=i(4519),S=i(8998);class k extends Error{constructor(){super(...arguments),this.isRestriction=!0}}"undefined"==typeof AggregateError&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});class P extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var C=a("plugins"),x=a("storeUnsubscribe"),A=a("emitter"),O=a("preProcessors"),T=a("uploaders"),E=a("postProcessors"),F=a("checkRestrictions"),M=a("checkMinNumberOfFiles"),D=a("checkRequiredMetaFieldsOnFile"),R=a("checkRequiredMetaFields"),U=a("showOrLogErrorAndThrow"),I=a("assertNewUploadAllowed"),N=a("checkAndCreateFileStateObject"),B=a("startIfAutoProceed"),L=a("addListeners"),$=a("updateOnlineStatus"),j=a("createUpload"),z=a("getUpload"),H=a("removeUpload"),V=a("runUpload");r=Symbol.for("uppy test: getPlugins"),n=Symbol.for("uppy test: createUpload");class W{constructor(e){Object.defineProperty(this,V,{value:ne}),Object.defineProperty(this,H,{value:re}),Object.defineProperty(this,z,{value:ie}),Object.defineProperty(this,j,{value:te}),Object.defineProperty(this,L,{value:ee}),Object.defineProperty(this,B,{value:Z}),Object.defineProperty(this,N,{value:J}),Object.defineProperty(this,I,{value:Q}),Object.defineProperty(this,U,{value:G}),Object.defineProperty(this,R,{value:K}),Object.defineProperty(this,D,{value:X}),Object.defineProperty(this,M,{value:Y}),Object.defineProperty(this,F,{value:q}),Object.defineProperty(this,C,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,x,{writable:!0,value:void 0}),Object.defineProperty(this,A,{writable:!0,value:u()}),Object.defineProperty(this,O,{writable:!0,value:new Set}),Object.defineProperty(this,T,{writable:!0,value:new Set}),Object.defineProperty(this,E,{writable:!0,value:new Set}),Object.defineProperty(this,$,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=S;const t={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:e=>e,onBeforeUpload:e=>e,store:f(),logger:w,infoTimeout:5e3};if(this.opts={...t,...e,restrictions:{...t.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=_),this.log(`Using Core v${this.constructor.VERSION}`),this.opts.restrictions.allowedFileTypes&&null!==this.opts.restrictions.allowedFileTypes&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=h(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:y(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),s(this,x)[x]=this.store.subscribe(((e,t,i)=>{this.emit("state-update",e,t,i),this.updateAll(t)})),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),s(this,L)[L]()}emit(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];s(this,A)[A].emit(e,...i)}on(e,t){return s(this,A)[A].on(e,t),this}once(e,t){return s(this,A)[A].once(e,t),this}off(e,t){return s(this,A)[A].off(e,t),this}updateAll(e){this.iteratePlugins((t=>{t.update(e)}))}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,t){if(!this.getState().files[e])throw new Error(`Can’t set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...t}}})}i18nInit(){const e=new l([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...e&&e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins((e=>{e.setOptions()})),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},i={};Object.keys(t).forEach((r=>{const n={...t[r]};n.progress={...n.progress,...e},i[r]=n})),this.setState({files:i,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){s(this,O)[O].add(e)}removePreProcessor(e){return s(this,O)[O].delete(e)}addPostProcessor(e){s(this,E)[E].add(e)}removePostProcessor(e){return s(this,E)[E].delete(e)}addUploader(e){s(this,T)[T].add(e)}removeUploader(e){return s(this,T)[T].delete(e)}setMeta(e){const t={...this.getState().meta,...e},i={...this.getState().files};Object.keys(i).forEach((t=>{i[t]={...i[t],meta:{...i[t].meta,...e}}})),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:i})}setFileMeta(e,t){const i={...this.getState().files};if(!i[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const r={...i[e].meta,...t};i[e]={...i[e],meta:r},this.setState({files:i})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:t,error:i}=this.getState(),r=Object.values(e),n=r.filter((e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted})),s=r.filter((e=>!e.progress.uploadStarted)),o=r.filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess)),a=r.filter((e=>e.progress.uploadStarted)),l=r.filter((e=>e.isPaused)),u=r.filter((e=>e.progress.uploadComplete)),c=r.filter((e=>e.error)),h=n.filter((e=>!e.isPaused)),p=r.filter((e=>e.progress.preprocess||e.progress.postprocess));return{newFiles:s,startedFiles:o,uploadStartedFiles:a,pausedFiles:l,completeFiles:u,erroredFiles:c,inProgressFiles:n,inProgressNotPausedFiles:h,processingFiles:p,isUploadStarted:a.length>0,isAllComplete:100===t&&u.length===r.length&&0===p.length,isAllErrored:!!i&&c.length===r.length,isAllPaused:0!==n.length&&l.length===n.length,isUploadInProgress:n.length>0,isSomeGhost:r.some((e=>e.isGhost))}}validateRestrictions(e,t){try{return s(this,F)[F](e,t),{result:!0}}catch(e){return{result:!1,reason:e.message}}}checkIfFileAlreadyExists(e){const{files:t}=this.getState();return!(!t[e]||t[e].isGhost)}addFile(e){s(this,I)[I](e);const{files:t}=this.getState();let i=s(this,N)[N](t,e);return t[i.id]&&t[i.id].isGhost&&(i={...t[i.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${i.name}, ${i.id}`)),this.setState({files:{...t,[i.id]:i}}),this.emit("file-added",i),this.emit("files-added",[i]),this.log(`Added file: ${i.name}, ${i.id}, mime type: ${i.type}`),s(this,B)[B](),i.id}addFiles(e){s(this,I)[I]();const t={...this.getState().files},i=[],r=[];for(let n=0;n<e.length;n++)try{let r=s(this,N)[N](t,e[n]);t[r.id]&&t[r.id].isGhost&&(r={...t[r.id],data:e[n].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${r.name}, ${r.id}`)),t[r.id]=r,i.push(r)}catch(e){e.isRestriction||r.push(e)}if(this.setState({files:t}),i.forEach((e=>{this.emit("file-added",e)})),this.emit("files-added",i),i.length>5?this.log(`Added batch of ${i.length} files`):Object.keys(i).forEach((e=>{this.log(`Added file: ${i[e].name}\n id: ${i[e].id}\n type: ${i[e].type}`)})),i.length>0&&s(this,B)[B](),r.length>0){let e="Multiple errors occurred while adding files:\n";if(r.forEach((t=>{e+=`\n * ${t.message}`})),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:r.length}),details:e},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw new AggregateError(r,e);{const t=new Error(e);throw t.errors=r,t}}}removeFiles(e,t){const{files:i,currentUploads:r}=this.getState(),n={...i},s={...r},o=Object.create(null);function a(e){return void 0===o[e]}e.forEach((e=>{i[e]&&(o[e]=i[e],delete n[e])})),Object.keys(s).forEach((e=>{const t=r[e].fileIDs.filter(a);0!==t.length?s[e]={...r[e],fileIDs:t}:delete s[e]}));const l={currentUploads:s,files:n};0===Object.keys(n).length&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();const u=Object.keys(o);u.forEach((e=>{this.emit("file-removed",o[e],t)})),u.length>5?this.log(`Removed ${u.length} files`):this.log(`Removed files: ${u.join(", ")}`)}removeFile(e,t){void 0===t&&(t=null),this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const t=!(this.getFile(e).isPaused||!1);return this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}pauseAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const i={...e[t],isPaused:!0};e[t]=i})),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const i={...e[t],isPaused:!1,error:null};e[t]=i})),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},t=Object.keys(e).filter((t=>e[t].error));if(t.forEach((t=>{const i={...e[t],isPaused:!1,error:null};e[t]=i})),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});const i=s(this,j)[j](t,{forceAllowNewUpload:!0});return s(this,V)[V](i)}cancelAll(){this.emit("cancel-all");const{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const t=s(this,j)[j]([e],{forceAllowNewUpload:!0});return s(this,V)[V](t)}reset(){this.cancelAll()}logout(){this.iteratePlugins((e=>{e.provider&&e.provider.logout&&e.provider.logout()}))}calculateProgress(e,t){if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const i=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:i?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const e=this.getFiles().filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess));if(0===e.length)return this.emit("progress",0),void this.setState({totalProgress:0});const t=e.filter((e=>null!=e.progress.bytesTotal)),i=e.filter((e=>null==e.progress.bytesTotal));if(0===t.length){const t=100*e.length,r=i.reduce(((e,t)=>e+t.progress.percentage),0),n=Math.round(r/t*100);return void this.setState({totalProgress:n})}let r=t.reduce(((e,t)=>e+t.progress.bytesTotal),0);const n=r/t.length;r+=n*i.length;let s=0;t.forEach((e=>{s+=e.progress.bytesUploaded})),i.forEach((e=>{s+=n*(e.progress.percentage||0)/100}));let o=0===r?0:Math.round(s/r*100);o>100&&(o=100),this.setState({totalProgress:o}),this.emit("progress",o)}updateOnlineStatus(){void 0===window.navigator.onLine||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,t){if("function"!=typeof e){throw new TypeError(`Expected a plugin class, but got ${null===e?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`)}const i=new e(this,t),r=i.id;if(!r)throw new Error("Your plugin must have an id");if(!i.type)throw new Error("Your plugin must have a type");const n=this.getPlugin(r);if(n){const e=`Already found a plugin named '${n.id}'. Tried to use: '${r}'.\nUppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(e)}return e.VERSION&&this.log(`Using ${r} v${e.VERSION}`),i.type in s(this,C)[C]?s(this,C)[C][i.type].push(i):s(this,C)[C][i.type]=[i],i.install(),this}getPlugin(e){for(const t of Object.values(s(this,C)[C])){const i=t.find((t=>t.id===e));if(null!=i)return i}}[r](e){return s(this,C)[C][e]}iteratePlugins(e){Object.values(s(this,C)[C]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=s(this,C)[C][e.type],i=t.findIndex((t=>t.id===e.id));-1!==i&&t.splice(i,1);const r={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(r)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),s(this,x)[x](),this.iteratePlugins((e=>{this.removePlugin(e)})),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",s(this,$)[$]),window.removeEventListener("offline",s(this,$)[$]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,i){void 0===t&&(t="info"),void 0===i&&(i=3e3);const r="object"==typeof e;this.setState({info:[...this.getState().info,{type:t,message:r?e.message:e,details:r?e.details:null}]}),setTimeout((()=>this.hideInfo()),i),this.emit("info-visible")}log(e,t){const{logger:i}=this.opts;switch(t){case"error":i.error(e);break;case"warning":i.warn(e);break;default:i.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?s(this,V)[V](e):(s(this,H)[H](e),Promise.reject(new Error("Nonexistent upload")))}[n](){return s(this,j)[j](...arguments)}addResultData(e,t){if(!s(this,z)[z](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:i}=this.getState(),r={...i[e],result:{...i[e].result,...t}};this.setState({currentUploads:{...i,[e]:r}})}upload(){var e;null!=(e=s(this,C)[C].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState();const i=this.opts.onBeforeUpload(t);return!1===i?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(i&&"object"==typeof i&&(t=i,this.setState({files:t})),Promise.resolve().then((()=>{s(this,M)[M](t),s(this,R)[R](t)})).catch((e=>{s(this,U)[U](e)})).then((()=>{const{currentUploads:e}=this.getState(),i=Object.values(e).flatMap((e=>e.fileIDs)),r=[];Object.keys(t).forEach((e=>{const t=this.getFile(e);t.progress.uploadStarted||-1!==i.indexOf(e)||r.push(t.id)}));const n=s(this,j)[j](r);return s(this,V)[V](n)})).catch((e=>{s(this,U)[U](e,{showInformer:!1})})))}}function q(e,t){void 0===t&&(t=this.getFiles());const{maxFileSize:i,minFileSize:r,maxTotalFileSize:n,maxNumberOfFiles:s,allowedFileTypes:o}=this.opts.restrictions;if(s&&t.length+1>s)throw new k(`${this.i18n("youCanOnlyUploadX",{smart_count:s})}`);if(o){if(!o.some((t=>t.indexOf("/")>-1?!!e.type&&d(e.type.replace(/;.*?$/,""),t):!("."!==t[0]||!e.extension)&&e.extension.toLowerCase()===t.substr(1).toLowerCase()))){const e=o.join(", ");throw new k(this.i18n("youCanOnlyUploadFileTypes",{types:e}))}}if(n&&null!=e.size){let i=0;if(i+=e.size,t.forEach((e=>{i+=e.size})),i>n)throw new k(this.i18n("exceedsSize",{size:p(n),file:e.name}))}if(i&&null!=e.size&&e.size>i)throw new k(this.i18n("exceedsSize",{size:p(i),file:e.name}));if(r&&null!=e.size&&e.size<r)throw new k(this.i18n("inferiorSize",{size:p(r)}))}function Y(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new k(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function X(e){const{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:i}=Object.prototype,r=[],n=[];for(let o=0;o<t.length;o++)if(!i.call(e.meta,t[o])||""===e.meta[t[o]]){const i=new k(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);r.push(i),n.push(t[o]),s(this,U)[U](i,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:n}),r}function K(e){const t=Object.keys(e).flatMap((e=>{const t=this.getFile(e);return s(this,D)[D](t)}));if(t.length)throw new P(t,`${this.i18n("missingRequiredMetaField")}`)}function G(e,t){let{showInformer:i=!0,file:r=null,throwErr:n=!0}=void 0===t?{}:t;const s="object"==typeof e?e.message:e,o="object"==typeof e&&e.details?e.details:"";let a=s;if(o&&(a+=` ${o}`),e.isRestriction?(this.log(a),this.emit("restriction-failed",r,e)):this.log(a,"error"),i&&this.info({message:s,details:o},"error",this.opts.infoTimeout),n)throw"object"==typeof e?e:new Error(e)}function Q(e){const{allowNewUpload:t}=this.getState();!1===t&&s(this,U)[U](new k(this.i18n("noMoreFilesAllowed")),{file:e})}function J(e,t){const i=m(t),r=b(i,t),n=g(r).extension,o=Boolean(t.isRemote),a=v({...t,type:i});if(this.checkIfFileAlreadyExists(a)){const e=new k(this.i18n("noDuplicates",{fileName:r}));s(this,U)[U](e,{file:t})}const l=t.meta||{};l.name=r,l.type=i;const u=Number.isFinite(t.data.size)?t.data.size:null;let c={source:t.source||"",id:a,name:r,extension:n||"",meta:{...this.getState().meta,...l},type:i,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:u,uploadComplete:!1,uploadStarted:null},size:u,isRemote:o,remote:t.remote||"",preview:t.preview};const h=this.opts.onBeforeFileAdded(c,e);!1===h?s(this,U)[U](new k("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):"object"==typeof h&&null!==h&&(c=h);try{const t=Object.keys(e).map((t=>e[t]));s(this,F)[F](c,t)}catch(e){s(this,U)[U](e,{file:c})}return c}function Z(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout((()=>{this.scheduledAutoProceed=null,this.upload().catch((e=>{e.isRestriction||this.log(e.stack||e.message||e)}))}),4))}function ee(){const e=(e,t,i)=>{let r=e.message||"Unknown error";e.details&&(r+=` ${e.details}`),this.setState({error:r}),null!=t&&t.id in this.getState().files&&this.setFileState(t.id,{error:r,response:i})};this.on("error",e),this.on("upload-error",((t,i,r)=>{if(e(i,t,r),"object"==typeof i&&i.message){const e=new Error(i.message);e.details=i.message,i.details&&(e.details+=` ${i.details}`),e.message=this.i18n("failedToUpload",{file:t.name}),s(this,U)[U](e,{throwErr:!1})}else s(this,U)[U](i,{throwErr:!1})})),this.on("upload",(()=>{this.setState({error:null})})),this.on("upload-started",(e=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)})),this.on("upload-progress",this.calculateProgress),this.on("upload-success",((e,t)=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const i=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...i,postprocess:s(this,E)[E].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:i.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),null==e.size&&this.setFileState(e.id,{size:t.bytesUploaded||i.bytesTotal}),this.calculateTotalProgress()})),this.on("preprocess-progress",((e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)})),this.on("preprocess-complete",(e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})})),this.on("postprocess-progress",((e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)})),this.on("postprocess-complete",(e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})})),this.on("restored",(()=>{this.calculateTotalProgress()})),this.on("dashboard:file-edit-complete",(e=>{e&&s(this,D)[D](e)})),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",s(this,$)[$]),window.addEventListener("offline",s(this,$)[$]),setTimeout(s(this,$)[$],3e3))}function te(e,t){void 0===t&&(t={});const{forceAllowNewUpload:i=!1}=t,{allowNewUpload:r,currentUploads:n}=this.getState();if(!r&&!i)throw new Error("Cannot create a new upload: already uploading.");const s=c();return this.emit("upload",{id:s,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...n,[s]:{fileIDs:e,step:0,result:{}}}}),s}function ie(e){const{currentUploads:t}=this.getState();return t[e]}function re(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function ne(e){let{currentUploads:t}=this.getState(),i=t[e];const r=i.step||0,n=[...s(this,O)[O],...s(this,T)[T],...s(this,E)[E]];try{for(let s=r;s<n.length&&i;s++){const r=n[s],o={...i,step:s};this.setState({currentUploads:{...t,[e]:o}}),await r(o.fileIDs,e),t=this.getState().currentUploads,i=t[e]}}catch(t){throw this.emit("error",t),s(this,H)[H](e),t}if(i){i.fileIDs.forEach((e=>{const t=this.getFile(e);t&&t.progress.postprocess&&this.emit("postprocess-complete",t)}));const r=i.fileIDs.map((e=>this.getFile(e))),n=r.filter((e=>!e.error)),s=r.filter((e=>e.error));await this.addResultData(e,{successful:n,failed:s,uploadID:e}),t=this.getState().currentUploads,i=t[e]}let o;return i&&(o=i.result,this.emit("complete",o),s(this,H)[H](e)),null==o&&this.log(`Not setting result for an upload that has been removed: ${e}`),o}W.VERSION="2.1.4",e.exports=W},2008:e=>{"use strict";e.exports=function(e,t){return t.name?t.name:"image"===e.split("/")[0]?`${e.split("/")[0]}.${e.split("/")[1]}`:"noname"}},9429:(e,t,i)=>{"use strict";const r=i(1790),n=i(4649),s=i(8937),{debugLogger:o}=i(4519);e.exports=r,e.exports.Uppy=r,e.exports.UIPlugin=n,e.exports.BasePlugin=s,e.exports.debugLogger=o},8998:e=>{"use strict";e.exports={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",backToSearch:"Back to Search",emptyFolderAdded:"No files were added from empty folder",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"}}}},4519:(e,t,i)=>{"use strict";const r=i(6770),n={debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return console.error(`[Uppy] [${r()}]`,...t)}},s={debug:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return console.debug(`[Uppy] [${r()}]`,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return console.warn(`[Uppy] [${r()}]`,...t)},error:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return console.error(`[Uppy] [${r()}]`,...t)}};e.exports={justErrorsLogger:n,debugLogger:s}},8585:e=>{"use strict";e.exports=function(e){if(null==e&&(e="undefined"!=typeof navigator?navigator.userAgent:null),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const i=t[1];let[r,n]=i.split(".");return r=parseInt(r,10),n=parseInt(n,10),r<15||15===r&&n<15063||(r>18||18===r&&n>=18218)}},6052:(e,t,i)=>{"use strict";let r;const{h:n,Component:s}=i(6400);r=Symbol.for("uppy test: disable unused locale key warning");e.exports=class extends s{constructor(){super(...arguments),this.triggerFileInputClick=()=>{this.fileInput.click()},this.triggerFolderInputClick=()=>{this.folderInput.click()},this.onFileInputChange=e=>{this.props.handleInputChange(e),e.target.value=null},this.renderHiddenInput=(e,t)=>n("input",{className:"uppy-Dashboard-input",hidden:!0,"aria-hidden":"true",tabIndex:-1,webkitdirectory:e,type:"file",name:"files[]",multiple:1!==this.props.maxNumberOfFiles,onChange:this.onFileInputChange,accept:this.props.allowedFileTypes,ref:t}),this.renderMyDeviceAcquirer=()=>n("div",{className:"uppy-DashboardTab",role:"presentation","data-uppy-acquirer-id":"MyDevice"},n("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-DashboardTab-btn",role:"tab",tabIndex:0,"data-uppy-super-focusable":!0,onClick:this.triggerFileInputClick},n("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},n("g",{fill:"none",fillRule:"evenodd"},n("rect",{className:"uppy-ProviderIconBg",width:"32",height:"32",rx:"16",fill:"#2275D7"}),n("path",{d:"M21.973 21.152H9.863l-1.108-5.087h14.464l-1.246 5.087zM9.935 11.37h3.958l.886 1.444a.673.673 0 0 0 .585.316h6.506v1.37H9.935v-3.13zm14.898 3.44a.793.793 0 0 0-.616-.31h-.978v-2.126c0-.379-.275-.613-.653-.613H15.75l-.886-1.445a.673.673 0 0 0-.585-.316H9.232c-.378 0-.667.209-.667.587V14.5h-.782a.793.793 0 0 0-.61.303.795.795 0 0 0-.155.663l1.45 6.633c.078.36.396.618.764.618h13.354c.36 0 .674-.246.76-.595l1.631-6.636a.795.795 0 0 0-.144-.675z",fill:"#FFF"}))),n("div",{className:"uppy-DashboardTab-name"},this.props.i18n("myDevice")))),this.renderBrowseButton=(e,t)=>{const i=this.props.acquirers.length;return n("button",{type:"button",className:"uppy-u-reset uppy-Dashboard-browse",onClick:t,"data-uppy-super-focusable":0===i},e)},this.renderDropPasteBrowseTagline=()=>{const e=this.props.acquirers.length,t=this.renderBrowseButton(this.props.i18n("browseFiles"),this.triggerFileInputClick),i=this.renderBrowseButton(this.props.i18n("browseFolders"),this.triggerFolderInputClick),r=this.props.fileManagerSelectionType,s=r.charAt(0).toUpperCase()+r.slice(1);return n("div",{class:"uppy-Dashboard-AddFiles-title"},this.props.disableLocalFiles?this.props.i18n("importFiles"):e>0?this.props.i18nArray(`dropPasteImport${s}`,{browseFiles:t,browseFolders:i,browse:t}):this.props.i18nArray(`dropPaste${s}`,{browseFiles:t,browseFolders:i,browse:t}))},this.renderAcquirer=e=>n("div",{className:"uppy-DashboardTab",role:"presentation","data-uppy-acquirer-id":e.id},n("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-DashboardTab-btn",role:"tab",tabIndex:0,"aria-controls":`uppy-DashboardContent-panel--${e.id}`,"aria-selected":this.props.activePickerPanel.id===e.id,"data-uppy-super-focusable":!0,onClick:()=>this.props.showPanel(e.id)},e.icon(),n("div",{className:"uppy-DashboardTab-name"},e.name))),this.renderAcquirers=(e,t)=>{const i=[...e],r=i.splice(e.length-2,e.length);return n("div",{className:"uppy-Dashboard-AddFiles-list",role:"tablist"},!t&&this.renderMyDeviceAcquirer(),i.map((e=>this.renderAcquirer(e))),n("span",{role:"presentation",style:{"white-space":"nowrap"}},r.map((e=>this.renderAcquirer(e)))))}}[r](){this.props.i18nArray("dropPasteBoth"),this.props.i18nArray("dropPasteFiles"),this.props.i18nArray("dropPasteFolders"),this.props.i18nArray("dropPasteImportBoth"),this.props.i18nArray("dropPasteImportFiles"),this.props.i18nArray("dropPasteImportFolders")}renderPoweredByUppy(){const{i18nArray:e}=this.props,t=e("poweredBy",{uppy:n("span",null,n("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon uppy-Dashboard-poweredByIcon",width:"11",height:"11",viewBox:"0 0 11 11"},n("path",{d:"M7.365 10.5l-.01-4.045h2.612L5.5.806l-4.467 5.65h2.604l.01 4.044h3.718z",fillRule:"evenodd"})),n("span",{className:"uppy-Dashboard-poweredByUppy"},"Uppy"))});return n("a",{tabIndex:"-1",href:"https://uppy.io",rel:"noreferrer noopener",target:"_blank",className:"uppy-Dashboard-poweredBy"},t)}render(){return n("div",{className:"uppy-Dashboard-AddFiles"},this.renderHiddenInput(!1,(e=>{this.fileInput=e})),this.renderHiddenInput(!0,(e=>{this.folderInput=e})),this.renderDropPasteBrowseTagline(),this.props.acquirers.length>0&&this.renderAcquirers(this.props.acquirers,this.props.disableLocalFiles),n("div",{className:"uppy-Dashboard-AddFiles-info"},this.props.note&&n("div",{className:"uppy-Dashboard-note"},this.props.note),this.props.proudlyDisplayPoweredByUppy&&this.renderPoweredByUppy(this.props)))}}},5808:(e,t,i)=>{"use strict";const{h:r}=i(6400),n=i(4184),s=i(6052);e.exports=e=>r("div",{className:n("uppy-Dashboard-AddFilesPanel",e.className),"data-uppy-panelType":"AddFiles","aria-hidden":e.showAddFilesPanel},r("div",{className:"uppy-DashboardContent-bar"},r("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},e.i18n("addingMoreFiles")),r("button",{className:"uppy-DashboardContent-back",type:"button",onClick:()=>e.toggleAddFilesPanel(!1)},e.i18n("back"))),r(s,e))},5519:(e,t,i)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},r.apply(this,arguments)}const{h:n}=i(6400),s=i(4184),o=i(3754),a=i(8689),l=i(6052),u=i(5808),c=i(5859),h=i(4477),p=i(7246),d=i(5261),f=i(9167);e.exports=function(e){const t=0===e.totalFileCount,i=e.containerWidth>576,m=s({"uppy-Root":e.isTargetDOMEl}),g=s({"uppy-Dashboard":!0,"uppy-Dashboard--isDisabled":e.disabled,"uppy-Dashboard--animateOpenClose":e.animateOpenClose,"uppy-Dashboard--isClosing":e.isClosing,"uppy-Dashboard--isDraggingOver":e.isDraggingOver,"uppy-Dashboard--modal":!e.inline,"uppy-size--md":e.containerWidth>576,"uppy-size--lg":e.containerWidth>700,"uppy-size--xl":e.containerWidth>900,"uppy-size--height-md":e.containerHeight>400,"uppy-Dashboard--isAddFilesPanelVisible":e.showAddFilesPanel,"uppy-Dashboard--isInnerWrapVisible":e.areInsidesReadyToBeVisible});let v=1;e.containerWidth>900?v=5:e.containerWidth>700?v=4:e.containerWidth>576&&(v=3);const y=e.showSelectedFiles&&!t,b=e.recoveredState?Object.keys(e.recoveredState.files).length:null,w=e.files?Object.keys(e.files).filter((t=>e.files[t].isGhost)).length:null,_=n("div",{className:g,"data-uppy-theme":e.theme,"data-uppy-num-acquirers":e.acquirers.length,"data-uppy-drag-drop-supported":!e.disableLocalFiles&&o(),"aria-hidden":e.inline?"false":e.isHidden,"aria-disabled":e.disabled,"aria-label":e.inline?e.i18n("dashboardTitle"):e.i18n("dashboardWindowTitle"),onPaste:e.handlePaste,onDragOver:e.handleDragOver,onDragLeave:e.handleDragLeave,onDrop:e.handleDrop},n("div",{"aria-hidden":"true",className:"uppy-Dashboard-overlay",tabIndex:-1,onClick:e.handleClickOutside}),n("div",{className:"uppy-Dashboard-inner","aria-modal":!e.inline&&"true",role:!e.inline&&"dialog",style:{width:e.inline&&e.width?e.width:"",height:e.inline&&e.height?e.height:""}},e.inline?null:n("button",{className:"uppy-u-reset uppy-Dashboard-close",type:"button","aria-label":e.i18n("closeModal"),title:e.i18n("closeModal"),onClick:e.closeModal},n("span",{"aria-hidden":"true"},"×")),n("div",{className:"uppy-Dashboard-innerWrap"},n("div",{className:"uppy-Dashboard-dropFilesHereHint"},e.i18n("dropHint")),y&&n(p,e),b&&n("div",{className:"uppy-Dashboard-serviceMsg"},n("svg",{className:"uppy-Dashboard-serviceMsg-icon","aria-hidden":"true",focusable:"false",width:"21",height:"16",viewBox:"0 0 24 19"},n("g",{transform:"translate(0 -1)",fill:"none",fillRule:"evenodd"},n("path",{d:"M12.857 1.43l10.234 17.056A1 1 0 0122.234 20H1.766a1 1 0 01-.857-1.514L11.143 1.429a1 1 0 011.714 0z",fill:"#FFD300"}),n("path",{fill:"#000",d:"M11 6h2l-.3 8h-1.4z"}),n("circle",{fill:"#000",cx:"12",cy:"17",r:"1"}))),n("strong",{className:"uppy-Dashboard-serviceMsg-title"},e.i18n("sessionRestored")),n("div",{className:"uppy-Dashboard-serviceMsg-text"},w>0?e.i18n("recoveredXFiles",{smart_count:w}):e.i18n("recoveredAllFiles"))),y?n(a,r({},e,{itemsPerRow:v})):n(l,r({},e,{isSizeMD:i})),n(f,null,e.showAddFilesPanel?n(u,r({key:"AddFiles"},e,{isSizeMD:i})):null),n(f,null,e.fileCardFor?n(d,r({key:"FileCard"},e)):null),n(f,null,e.activePickerPanel?n(c,r({key:"Picker"},e)):null),n(f,null,e.showFileEditor?n(h,r({key:"Editor"},e)):null),n("div",{className:"uppy-Dashboard-progressindicators"},e.progressindicators.map((t=>e.uppy.getPlugin(t.id).render(e.state)))))));return n("div",{className:m,dir:e.direction},_)}},4477:(e,t,i)=>{"use strict";const{h:r}=i(6400),n=i(4184);e.exports=function(e){const t=e.files[e.fileCardFor];return r("div",{className:n("uppy-DashboardContent-panel",e.className),role:"tabpanel","data-uppy-panelType":"FileEditor",id:"uppy-DashboardContent-panel--editor"},r("div",{className:"uppy-DashboardContent-bar"},r("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},e.i18nArray("editing",{file:r("span",{className:"uppy-DashboardContent-titleFile"},t.meta?t.meta.name:t.name)})),r("button",{className:"uppy-DashboardContent-back",type:"button",onClick:e.hideAllPanels},e.i18n("cancel")),r("button",{className:"uppy-DashboardContent-save",type:"button",onClick:e.saveFileEditor},e.i18n("save"))),r("div",{className:"uppy-DashboardContent-panelBody"},e.editors.map((t=>e.uppy.getPlugin(t.id).render(e.state)))))}},5261:(e,t,i)=>{"use strict";const{h:r,Component:n}=i(6400),s=i(4184),{nanoid:o}=i(2961),a=i(1882),l=i(8805),u=i(9282);e.exports=class extends n{constructor(e){super(e),this.form=document.createElement("form"),this.updateMeta=(e,t)=>{this.setState((i=>{let{formState:r}=i;return{formState:{...r,[t]:e}}}))},this.handleSave=e=>{e.preventDefault();const t=this.props.fileCardFor;this.props.saveFileCard(this.state.formState,t)},this.handleCancel=()=>{this.props.toggleFileCard(!1)},this.saveOnEnter=e=>{if(13===e.keyCode){e.stopPropagation(),e.preventDefault();const t=this.props.files[this.props.fileCardFor];this.props.saveFileCard(this.state.formState,t.id)}},this.renderMetaFields=()=>{const e=this.getMetaFields()||[],t={text:"uppy-u-reset uppy-c-textInput uppy-Dashboard-FileCard-input"};return e.map((e=>{const i=`uppy-Dashboard-FileCard-input-${e.id}`,n=this.props.requiredMetaFields.includes(e.id);return r("fieldset",{key:e.id,className:"uppy-Dashboard-FileCard-fieldset"},r("label",{className:"uppy-Dashboard-FileCard-label",htmlFor:i},e.name),void 0!==e.render?e.render({value:this.state.formState[e.id],onChange:t=>this.updateMeta(t,e.id),fieldCSSClasses:t,required:n,form:this.form.id},r):r("input",{className:t.text,id:i,form:this.form.id,type:e.type||"text",required:n,value:this.state.formState[e.id],placeholder:e.placeholder,onKeyUp:"form"in HTMLInputElement.prototype?void 0:this.saveOnEnter,onKeyDown:"form"in HTMLInputElement.prototype?void 0:this.saveOnEnter,onKeyPress:"form"in HTMLInputElement.prototype?void 0:this.saveOnEnter,onInput:t=>this.updateMeta(t.target.value,e.id),"data-uppy-super-focusable":!0}))}))};const t=this.props.files[this.props.fileCardFor],i=this.getMetaFields()||[],n={};i.forEach((e=>{n[e.id]=t.meta[e.id]||""})),this.state={formState:n},this.form.id=o()}componentWillMount(){this.form.addEventListener("submit",this.handleSave),document.body.appendChild(this.form)}componentWillUnmount(){this.form.removeEventListener("submit",this.handleSave),document.body.removeChild(this.form)}getMetaFields(){return"function"==typeof this.props.metaFields?this.props.metaFields(this.props.files[this.props.fileCardFor]):this.props.metaFields}render(){const e=this.props.files[this.props.fileCardFor],t=this.props.canEditFile(e);return r("div",{className:s("uppy-Dashboard-FileCard",this.props.className),"data-uppy-panelType":"FileCard",onDragOver:l,onDragLeave:l,onDrop:l,onPaste:l},r("div",{className:"uppy-DashboardContent-bar"},r("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},this.props.i18nArray("editing",{file:r("span",{className:"uppy-DashboardContent-titleFile"},e.meta?e.meta.name:e.name)})),r("button",{className:"uppy-DashboardContent-back",type:"button",form:this.form.id,title:this.props.i18n("finishEditingFile"),onClick:this.handleCancel},this.props.i18n("cancel"))),r("div",{className:"uppy-Dashboard-FileCard-inner"},r("div",{className:"uppy-Dashboard-FileCard-preview",style:{backgroundColor:a(e.type).color}},r(u,{file:e}),t&&r("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-Dashboard-FileCard-edit",onClick:t=>{this.handleSave(t),this.props.openFileEditor(e)},form:this.form.id},this.props.i18n("editFile"))),r("div",{className:"uppy-Dashboard-FileCard-info"},this.renderMetaFields()),r("div",{className:"uppy-Dashboard-FileCard-actions"},r("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary uppy-Dashboard-FileCard-actionsBtn",type:"form"in HTMLButtonElement.prototype?"submit":"button",onClick:"form"in HTMLButtonElement.prototype?void 0:this.handleSave,form:this.form.id},this.props.i18n("saveChanges")),r("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-link uppy-Dashboard-FileCard-actionsBtn",type:"button",onClick:this.handleCancel,form:this.form.id},this.props.i18n("cancel")))))}}},6757:(e,t,i)=>{"use strict";const{h:r}=i(6400),n=i(818);function s(e){let{file:t,uploadInProgressOrComplete:i,metaFields:n,canEditFile:s,i18n:o,onClick:a}=e;return!i&&n&&n.length>0||!i&&s(t)?r("button",{className:"uppy-u-reset uppy-Dashboard-Item-action uppy-Dashboard-Item-action--edit",type:"button","aria-label":o("editFileWithFilename",{file:t.meta.name}),title:o("editFileWithFilename",{file:t.meta.name}),onClick:()=>a()},r("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"14",height:"14",viewBox:"0 0 14 14"},r("g",{fillRule:"evenodd"},r("path",{d:"M1.5 10.793h2.793A1 1 0 0 0 5 10.5L11.5 4a1 1 0 0 0 0-1.414L9.707.793a1 1 0 0 0-1.414 0l-6.5 6.5A1 1 0 0 0 1.5 8v2.793zm1-1V8L9 1.5l1.793 1.793-6.5 6.5H2.5z",fillRule:"nonzero"}),r("rect",{x:"1",y:"12.293",width:"11",height:"1",rx:".5"}),r("path",{fillRule:"nonzero",d:"M6.793 2.5L9.5 5.207l.707-.707L7.5 1.793z"})))):null}function o(e){let{i18n:t,onClick:i,file:n}=e;return r("button",{className:"uppy-u-reset uppy-Dashboard-Item-action uppy-Dashboard-Item-action--remove",type:"button","aria-label":t("removeFile",{file:n.meta.name}),title:t("removeFile",{file:n.meta.name}),onClick:()=>i()},r("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"18",height:"18",viewBox:"0 0 18 18"},r("path",{d:"M9 0C4.034 0 0 4.034 0 9s4.034 9 9 9 9-4.034 9-9-4.034-9-9-9z"}),r("path",{fill:"#FFF",d:"M13 12.222l-.778.778L9 9.778 5.778 13 5 12.222 8.222 9 5 5.778 5.778 5 9 8.222 12.222 5l.778.778L9.778 9z"})))}function a(e){const{i18n:t}=e;return r("button",{className:"uppy-u-reset uppy-Dashboard-Item-action uppy-Dashboard-Item-action--copyLink",type:"button","aria-label":t("copyLink"),title:t("copyLink"),onClick:t=>((e,t)=>{n(t.file.uploadURL,t.i18n("copyLinkToClipboardFallback")).then((()=>{t.uppy.log("Link copied to clipboard."),t.uppy.info(t.i18n("copyLinkToClipboardSuccess"),"info",3e3)})).catch(t.uppy.log).then((()=>e.target.focus({preventScroll:!0})))})(t,e)},r("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"14",height:"14",viewBox:"0 0 14 12"},r("path",{d:"M7.94 7.703a2.613 2.613 0 0 1-.626 2.681l-.852.851a2.597 2.597 0 0 1-1.849.766A2.616 2.616 0 0 1 2.764 7.54l.852-.852a2.596 2.596 0 0 1 2.69-.625L5.267 7.099a1.44 1.44 0 0 0-.833.407l-.852.851a1.458 1.458 0 0 0 1.03 2.486c.39 0 .755-.152 1.03-.426l.852-.852c.231-.231.363-.522.406-.824l1.04-1.038zm4.295-5.937A2.596 2.596 0 0 0 10.387 1c-.698 0-1.355.272-1.849.766l-.852.851a2.614 2.614 0 0 0-.624 2.688l1.036-1.036c.041-.304.173-.6.407-.833l.852-.852c.275-.275.64-.426 1.03-.426a1.458 1.458 0 0 1 1.03 2.486l-.852.851a1.442 1.442 0 0 1-.824.406l-1.04 1.04a2.596 2.596 0 0 0 2.683-.628l.851-.85a2.616 2.616 0 0 0 0-3.697zm-6.88 6.883a.577.577 0 0 0 .82 0l3.474-3.474a.579.579 0 1 0-.819-.82L5.355 7.83a.579.579 0 0 0 0 .819z"})))}e.exports=function(e){const{uppy:t,file:i,uploadInProgressOrComplete:n,canEditFile:l,metaFields:u,showLinkToFileUploadResult:c,showRemoveButton:h,i18n:p,toggleFileCard:d,openFileEditor:f}=e;return r("div",{className:"uppy-Dashboard-Item-actionWrapper"},r(s,{i18n:p,file:i,uploadInProgressOrComplete:n,canEditFile:l,metaFields:u,onClick:()=>{u&&u.length>0?d(!0,i.id):f(i)}}),c&&i.uploadURL?r(a,{file:i,uppy:t,i18n:p}):null,h?r(o,{i18n:p,file:i,uppy:t,onClick:()=>e.uppy.removeFile(i.id,"removed-by-user")}):null)}},3844:(e,t,i)=>{"use strict";const{h:r,Fragment:n}=i(6400),s=i(5158),o=i(469),a=i(8092),l=e=>{let{file:t,onClick:i}=e;return t.error?r("button",{className:"uppy-u-reset uppy-Dashboard-Item-errorDetails","aria-label":t.error,"data-microtip-position":"bottom","data-microtip-size":"medium",onClick:i,type:"button"},"?"):null};e.exports=function(e){const{file:t}=e;return r("div",{className:"uppy-Dashboard-Item-fileInfo","data-uppy-file-source":t.source},r("div",{className:"uppy-Dashboard-Item-fileName"},(e=>{const{author:t,name:i}=e.file.meta;return r("div",{className:"uppy-Dashboard-Item-name",title:i},o(i,e.containerWidth<=352?35:e.containerWidth<=576?60:t?20:30))})(e),r(l,{file:e.file,onClick:()=>alert(e.file.error)})),r("div",{className:"uppy-Dashboard-Item-status"},(e=>{const{author:t}=e.file.meta,{providerName:i}=e.file.remote;return t?r("div",{className:"uppy-Dashboard-Item-author"},r("a",{href:`${t.url}?utm_source=Companion&utm_medium=referral`,target:"_blank",rel:"noopener noreferrer"},o(t.name,13)),i?r(n,null," · ",i):null):null})(e),(e=>e.file.size&&r("div",{className:"uppy-Dashboard-Item-statusSize"},s(e.file.size)))(e),(e=>e.file.isGhost&&r("span",null," • ",r("button",{className:"uppy-u-reset uppy-c-btn uppy-Dashboard-Item-reSelect",type:"button",onClick:e.toggleAddFilesPanel},e.i18n("reSelect"))))(e)),r(a,{file:e.file,i18n:e.i18n,toggleFileCard:e.toggleFileCard,metaFields:e.metaFields}))}},6012:(e,t,i)=>{"use strict";const{h:r}=i(6400),n=i(9282),s=i(8092),o=i(1882);e.exports=function(e){return r("div",{className:"uppy-Dashboard-Item-previewInnerWrap",style:{backgroundColor:o(e.file.type).color}},e.showLinkToFileUploadResult&&e.file.uploadURL&&r("a",{className:"uppy-Dashboard-Item-previewLink",href:e.file.uploadURL,rel:"noreferrer noopener",target:"_blank","aria-label":e.file.meta.name},r("span",{hidden:!0},e.file.meta.name)),r(n,{file:e.file}),r(s,{file:e.file,i18n:e.i18n,toggleFileCard:e.toggleFileCard,metaFields:e.metaFields}))}},1911:(e,t,i)=>{"use strict";const{h:r}=i(6400);function n(e){return e.isUploaded?e.i18n("uploadComplete"):e.error?e.i18n("retryUpload"):e.resumableUploads?e.file.isPaused?e.i18n("resumeUpload"):e.i18n("pauseUpload"):e.individualCancellation?e.i18n("cancelUpload"):""}function s(e){return r("div",{className:"uppy-Dashboard-Item-progress"},r("button",{className:"uppy-u-reset uppy-Dashboard-Item-progressIndicator",type:"button","aria-label":n(e),title:n(e),onClick:()=>function(e){e.isUploaded||(!e.error||e.hideRetryButton?e.resumableUploads&&!e.hidePauseResumeButton?e.uppy.pauseResume(e.file.id):e.individualCancellation&&!e.hideCancelButton&&e.uppy.removeFile(e.file.id):e.uppy.retryUpload(e.file.id))}(e)},e.children))}function o(e){let{children:t}=e;return r("svg",{"aria-hidden":"true",focusable:"false",width:"70",height:"70",viewBox:"0 0 36 36",className:"uppy-c-icon uppy-Dashboard-Item-progressIcon--circle"},t)}function a(e){let{progress:t}=e;const i=2*Math.PI*15;return r("g",null,r("circle",{className:"uppy-Dashboard-Item-progressIcon--bg",r:"15",cx:"18",cy:"18","stroke-width":"2",fill:"none"}),r("circle",{className:"uppy-Dashboard-Item-progressIcon--progress",r:"15",cx:"18",cy:"18",transform:"rotate(-90, 18, 18)",fill:"none","stroke-width":"2","stroke-dasharray":i,"stroke-dashoffset":i-i/100*t}))}e.exports=function(e){return e.file.progress.uploadStarted?e.isUploaded?r("div",{className:"uppy-Dashboard-Item-progress"},r("div",{className:"uppy-Dashboard-Item-progressIndicator"},r(o,null,r("circle",{r:"15",cx:"18",cy:"18",fill:"#1bb240"}),r("polygon",{className:"uppy-Dashboard-Item-progressIcon--check",transform:"translate(2, 3)",points:"14 22.5 7 15.2457065 8.99985857 13.1732815 14 18.3547104 22.9729883 9 25 11.1005634"})))):e.recoveredState?void 0:e.error&&!e.hideRetryButton?r(s,e,r("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon uppy-Dashboard-Item-progressIcon--retry",width:"28",height:"31",viewBox:"0 0 16 19"},r("path",{d:"M16 11a8 8 0 1 1-8-8v2a6 6 0 1 0 6 6h2z"}),r("path",{d:"M7.9 3H10v2H7.9z"}),r("path",{d:"M8.536.5l3.535 3.536-1.414 1.414L7.12 1.914z"}),r("path",{d:"M10.657 2.621l1.414 1.415L8.536 7.57 7.12 6.157z"}))):e.resumableUploads&&!e.hidePauseResumeButton?r(s,e,r(o,null,r(a,{progress:e.file.progress.percentage}),e.file.isPaused?r("polygon",{className:"uppy-Dashboard-Item-progressIcon--play",transform:"translate(3, 3)",points:"12 20 12 10 20 15"}):r("g",{className:"uppy-Dashboard-Item-progressIcon--pause",transform:"translate(14.5, 13)"},r("rect",{x:"0",y:"0",width:"2",height:"10",rx:"0"}),r("rect",{x:"5",y:"0",width:"2",height:"10",rx:"0"})))):e.resumableUploads||!e.individualCancellation||e.hideCancelButton?r("div",{className:"uppy-Dashboard-Item-progress"},r("div",{className:"uppy-Dashboard-Item-progressIndicator"},r(o,null,r(a,{progress:e.file.progress.percentage})))):r(s,e,r(o,null,r(a,{progress:e.file.progress.percentage}),r("polygon",{className:"cancel",transform:"translate(2, 2)",points:"19.8856516 11.0625 16 14.9481516 12.1019737 11.0625 11.0625 12.1143484 14.9481516 16 11.0625 19.8980263 12.1019737 20.9375 16 17.0518484 19.8856516 20.9375 20.9375 19.8980263 17.0518484 16 20.9375 12"}))):null}},8092:(e,t,i)=>{"use strict";const{h:r}=i(6400);e.exports=function(e){const{file:t,toggleFileCard:i,i18n:n,metaFields:s}=e,{missingRequiredMetaFields:o}=t;if(null==o||!o.length)return null;const a=o.map((e=>((e,t)=>t.filter((t=>t.id===e))[0].name)(e,s))).join(", ");return r("div",{className:"uppy-Dashboard-Item-errorMessage"},n("missingRequiredMetaFields",{smart_count:o.length,fields:a})," ",r("button",{type:"button",class:"uppy-u-reset uppy-Dashboard-Item-errorMessageBtn",onClick:()=>i(!0,t.id)},n("editFile")))}},5845:(e,t,i)=>{"use strict";const{h:r,Component:n}=i(6400),s=i(4184),o=i(81),a=i(6012),l=i(1911),u=i(3844),c=i(6757);e.exports=class extends n{componentDidMount(){const{file:e}=this.props;e.preview||this.props.handleRequestThumbnail(e)}shouldComponentUpdate(e){return!o(this.props,e)}componentDidUpdate(){const{file:e}=this.props;e.preview||this.props.handleRequestThumbnail(e)}componentWillUnmount(){const{file:e}=this.props;e.preview||this.props.handleCancelThumbnail(e)}render(){const{file:e}=this.props,t=e.progress.preprocess||e.progress.postprocess,i=e.progress.uploadComplete&&!t&&!e.error,n=e.progress.uploadStarted||t,o=e.progress.uploadStarted&&!e.progress.uploadComplete||t,h=e.error||!1,{isGhost:p}=e;let d=(this.props.individualCancellation||!o)&&!i;i&&this.props.showRemoveButtonAfterComplete&&(d=!0);const f=s({"uppy-Dashboard-Item":!0,"is-inprogress":o&&!this.props.recoveredState,"is-processing":t,"is-complete":i,"is-error":!!h,"is-resumable":this.props.resumableUploads,"is-noIndividualCancellation":!this.props.individualCancellation,"is-ghost":p});return r("div",{className:f,id:`uppy_${e.id}`,role:this.props.role},r("div",{className:"uppy-Dashboard-Item-preview"},r(a,{file:e,showLinkToFileUploadResult:this.props.showLinkToFileUploadResult,i18n:this.props.i18n,toggleFileCard:this.props.toggleFileCard,metaFields:this.props.metaFields}),r(l,{uppy:this.props.uppy,file:e,error:h,isUploaded:i,hideRetryButton:this.props.hideRetryButton,hideCancelButton:this.props.hideCancelButton,hidePauseResumeButton:this.props.hidePauseResumeButton,recoveredState:this.props.recoveredState,showRemoveButtonAfterComplete:this.props.showRemoveButtonAfterComplete,resumableUploads:this.props.resumableUploads,individualCancellation:this.props.individualCancellation,i18n:this.props.i18n})),r("div",{className:"uppy-Dashboard-Item-fileInfoAndButtons"},r(u,{file:e,id:this.props.id,acquirers:this.props.acquirers,containerWidth:this.props.containerWidth,i18n:this.props.i18n,toggleAddFilesPanel:this.props.toggleAddFilesPanel,toggleFileCard:this.props.toggleFileCard,metaFields:this.props.metaFields}),r(c,{file:e,metaFields:this.props.metaFields,showLinkToFileUploadResult:this.props.showLinkToFileUploadResult,showRemoveButton:d,canEditFile:this.props.canEditFile,uploadInProgressOrComplete:n,toggleFileCard:this.props.toggleFileCard,openFileEditor:this.props.openFileEditor,uppy:this.props.uppy,i18n:this.props.i18n})))}}},8689:(e,t,i)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},r.apply(this,arguments)}const n=i(4184),{h:s}=i(6400),o=i(5845),a=i(4825);e.exports=e=>{const t=0===e.totalFileCount,i=n("uppy-Dashboard-files",{"uppy-Dashboard-files--noFiles":t}),l=1===e.itemsPerRow?71:200,u={id:e.id,error:e.error,i18n:e.i18n,uppy:e.uppy,acquirers:e.acquirers,resumableUploads:e.resumableUploads,individualCancellation:e.individualCancellation,hideRetryButton:e.hideRetryButton,hidePauseResumeButton:e.hidePauseResumeButton,hideCancelButton:e.hideCancelButton,showLinkToFileUploadResult:e.showLinkToFileUploadResult,showRemoveButtonAfterComplete:e.showRemoveButtonAfterComplete,isWide:e.isWide,metaFields:e.metaFields,recoveredState:e.recoveredState,toggleFileCard:e.toggleFileCard,handleRequestThumbnail:e.handleRequestThumbnail,handleCancelThumbnail:e.handleCancelThumbnail},c=Object.keys(e.files);e.recoveredState&&c.sort(((t,i)=>e.files[i].isGhost-e.files[t].isGhost));const h=function(e,t){const i=[];let r=[];return e.forEach((e=>{r.length<t?r.push(e):(i.push(r),r=[e])})),r.length&&i.push(r),i}(c,e.itemsPerRow);return s(a,{class:i,role:"list",data:h,renderRow:t=>s("div",{role:"presentation",key:t[0]},t.map((t=>s(o,r({key:t,uppy:e.uppy},u,{role:"listitem",openFileEditor:e.openFileEditor,canEditFile:e.canEditFile,toggleAddFilesPanel:e.toggleAddFilesPanel,file:e.files[t]}))))),rowHeight:l})}},9282:(e,t,i)=>{"use strict";const{h:r}=i(6400),n=i(1882);e.exports=function(e){const{file:t}=e;if(t.preview)return r("img",{className:"uppy-Dashboard-Item-previewImg",alt:t.name,src:t.preview});const{color:i,icon:s}=n(t.type);return r("div",{className:"uppy-Dashboard-Item-previewIconWrap"},r("span",{className:"uppy-Dashboard-Item-previewIcon",style:{color:i}},s),r("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-Dashboard-Item-previewIconBg",width:"58",height:"76",viewBox:"0 0 58 76"},r("rect",{fill:"#FFF",width:"58",height:"76",rx:"3",fillRule:"evenodd"})))}},5859:(e,t,i)=>{"use strict";const{h:r}=i(6400),n=i(4184),s=i(8805);e.exports=function(e){return r("div",{className:n("uppy-DashboardContent-panel",e.className),role:"tabpanel","data-uppy-panelType":"PickerPanel",id:`uppy-DashboardContent-panel--${e.activePickerPanel.id}`,onDragOver:s,onDragLeave:s,onDrop:s,onPaste:s},r("div",{className:"uppy-DashboardContent-bar"},r("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},e.i18n("importFrom",{name:e.activePickerPanel.name})),r("button",{className:"uppy-DashboardContent-back",type:"button",onClick:e.hideAllPanels},e.i18n("cancel"))),r("div",{className:"uppy-DashboardContent-panelBody"},e.uppy.getPlugin(e.activePickerPanel.id).render(e.state)))}},7246:(e,t,i)=>{"use strict";const{h:r}=i(6400),n="error",s="waiting",o="preprocessing",a="uploading",l="postprocessing",u="complete",c="paused";function h(e){switch(function(e,t,i,r){if(void 0===r&&(r={}),e)return n;if(t)return u;if(i)return c;let h=s;const p=Object.keys(r);for(let e=0;e<p.length;e++){const{progress:t}=r[p[e]];if(t.uploadStarted&&!t.uploadComplete)return a;t.preprocess&&h!==a&&(h=o),t.postprocess&&h!==a&&h!==o&&(h=l)}return h}(e.isAllErrored,e.isAllComplete,e.isAllPaused,e.files)){case"uploading":return e.i18n("uploadingXFiles",{smart_count:e.inProgressNotPausedFiles.length});case"preprocessing":case"postprocessing":return e.i18n("processingXFiles",{smart_count:e.processingFiles.length});case"paused":return e.i18n("uploadPaused");case"waiting":return e.i18n("xFilesSelected",{smart_count:e.newFiles.length});case"complete":return e.i18n("uploadComplete")}}e.exports=function(e){let{allowNewUpload:t}=e;return t&&e.maxNumberOfFiles&&(t=e.totalFileCount<e.maxNumberOfFiles),r("div",{className:"uppy-DashboardContent-bar"},e.isAllComplete||e.hideCancelButton?r("div",null):r("button",{className:"uppy-DashboardContent-back",type:"button",onClick:()=>e.uppy.cancelAll()},e.i18n("cancel")),r("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},r(h,e)),t?r("button",{className:"uppy-DashboardContent-addMore",type:"button","aria-label":e.i18n("addMoreFiles"),title:e.i18n("addMoreFiles"),onClick:()=>e.toggleAddFilesPanel(!0)},r("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"15",height:"15",viewBox:"0 0 15 15"},r("path",{d:"M8 6.5h6a.5.5 0 0 1 .5.5v.5a.5.5 0 0 1-.5.5H8v6a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V8h-6a.5.5 0 0 1-.5-.5V7a.5.5 0 0 1 .5-.5h6v-6A.5.5 0 0 1 7 0h.5a.5.5 0 0 1 .5.5v6z"})),r("span",{className:"uppy-DashboardContent-addMoreCaption"},e.i18n("addMore"))):r("div",null))}},9167:(e,t,i)=>{"use strict";const{cloneElement:r,Component:n,toChildArray:s}=i(6400),o=i(4184),a="uppy-transition-slideDownUp";e.exports=class extends n{constructor(e){super(e),this.state={cachedChildren:null,className:""}}componentWillUpdate(e){const{cachedChildren:t}=this.state,i=s(e.children)[0];if(t===i)return null;const r={cachedChildren:i};i&&!t&&(r.className=`${a}-enter`,cancelAnimationFrame(this.animationFrame),clearTimeout(this.leaveTimeout),this.leaveTimeout=void 0,this.animationFrame=requestAnimationFrame((()=>{this.setState({className:`${a}-enter ${a}-enter-active`}),this.enterTimeout=setTimeout((()=>{this.setState({className:""})}),250)}))),t&&!i&&void 0===this.leaveTimeout&&(r.cachedChildren=t,r.className=`${a}-leave`,cancelAnimationFrame(this.animationFrame),clearTimeout(this.enterTimeout),this.enterTimeout=void 0,this.animationFrame=requestAnimationFrame((()=>{this.setState({className:`${a}-leave ${a}-leave-active`}),this.leaveTimeout=setTimeout((()=>{this.setState({cachedChildren:null,className:""})}),250)}))),this.setState(r)}render(){const{cachedChildren:e,className:t}=this.state;return e?r(e,{className:o(t,e.props.className)}):null}}},4825:(e,t,i)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},r.apply(this,arguments)}const{h:n,Component:s}=i(6400),o={position:"relative",width:"100%",minHeight:"100%"},a={position:"absolute",top:0,left:0,width:"100%",overflow:"visible"};e.exports=class extends s{constructor(e){super(e),this.handleScroll=()=>{this.setState({offset:this.base.scrollTop})},this.handleResize=()=>{this.resize()},this.focusElement=null,this.state={offset:0,height:0}}componentDidMount(){this.resize(),window.addEventListener("resize",this.handleResize)}componentWillUpdate(){this.base.contains(document.activeElement)&&(this.focusElement=document.activeElement)}componentDidUpdate(){this.focusElement&&this.focusElement.parentNode&&document.activeElement!==this.focusElement&&this.focusElement.focus(),this.focusElement=null,this.resize()}componentWillUnmount(){window.removeEventListener("resize",this.handleResize)}resize(){const{height:e}=this.state;e!==this.base.offsetHeight&&this.setState({height:this.base.offsetHeight})}render(e){let{data:t,rowHeight:i,renderRow:s,overscanCount:l=10,...u}=e;const{offset:c,height:h}=this.state;let p=Math.floor(c/i),d=Math.floor(h/i);l&&(p=Math.max(0,p-p%l),d+=l);const f=p+d+4,m=t.slice(p,f),g={...o,height:t.length*i},v={...a,top:p*i};return n("div",r({onScroll:this.handleScroll},u),n("div",{role:"presentation",style:g},n("div",{role:"presentation",style:v},m.map(s))))}}},3121:(e,t,i)=>{"use strict";var r,n,s,o,a,l,u,c;function h(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var p=0;function d(e){return"__private_"+p+++"_"+e}const{h:f}=i(6400),{UIPlugin:m}=i(9429),g=i(3215),v=i(873),y=i(7753),b=i(1147),w=i(6361),_=i(4031),S=i(8958),{nanoid:k}=i(2961),P=i(3962),C=i(6673),x=i(845).default||i(845),A=i(9045),O=i(5519),T=i(5233);function E(){const e={};return e.promise=new Promise(((t,i)=>{e.resolve=t,e.reject=i})),e}function F(){return f("svg",{"aria-hidden":"true",focusable:"false",width:"30",height:"30",viewBox:"0 0 30 30"},f("path",{d:"M15 30c8.284 0 15-6.716 15-15 0-8.284-6.716-15-15-15C6.716 0 0 6.716 0 15c0 8.284 6.716 15 15 15zm4.258-12.676v6.846h-8.426v-6.846H5.204l9.82-12.364 9.82 12.364H19.26z"}))}e.exports=(n=d("openFileEditorWhenFilesAdded"),s=d("attachRenderFunctionToTarget"),o=d("isTargetSupported"),a=d("getAcquirers"),l=d("getProgressIndicators"),u=d("getEditors"),c=r=class extends m{constructor(e,t){var i;super(e,t),i=this,this.removeTarget=e=>{const t=this.getPluginState().targets.filter((t=>t.id!==e.id));this.setPluginState({targets:t})},this.addTarget=e=>{const t=e.id||e.constructor.name,i=e.title||t,r=e.type;if("acquirer"!==r&&"progressindicator"!==r&&"editor"!==r){const e="Dashboard: can only be targeted by plugins of types: acquirer, progressindicator, editor";return void this.uppy.log(e,"error")}const n={id:t,name:i,type:r},s=this.getPluginState().targets.slice();return s.push(n),this.setPluginState({targets:s}),this.el},this.hideAllPanels=()=>{const e=this.getPluginState(),t={activePickerPanel:!1,showAddFilesPanel:!1,activeOverlayType:null,fileCardFor:null,showFileEditor:!1};e.activePickerPanel===t.activePickerPanel&&e.showAddFilesPanel===t.showAddFilesPanel&&e.showFileEditor===t.showFileEditor&&e.activeOverlayType===t.activeOverlayType||this.setPluginState(t)},this.showPanel=e=>{const{targets:t}=this.getPluginState(),i=t.filter((t=>"acquirer"===t.type&&t.id===e))[0];this.setPluginState({activePickerPanel:i,activeOverlayType:"PickerPanel"})},this.canEditFile=e=>{const{targets:t}=this.getPluginState();return h(this,u)[u](t).some((t=>this.uppy.getPlugin(t.id).canEditFile(e)))},this.openFileEditor=e=>{const{targets:t}=this.getPluginState(),i=h(this,u)[u](t);this.setPluginState({showFileEditor:!0,fileCardFor:e.id||null,activeOverlayType:"FileEditor"}),i.forEach((t=>{this.uppy.getPlugin(t.id).selectFile(e)}))},this.saveFileEditor=()=>{const{targets:e}=this.getPluginState();h(this,u)[u](e).forEach((e=>{this.uppy.getPlugin(e.id).save()})),this.hideAllPanels()},this.openModal=()=>{const{promise:e,resolve:t}=E();if(this.savedScrollPosition=window.pageYOffset,this.savedActiveElement=document.activeElement,this.opts.disablePageScrollWhenModalOpen&&document.body.classList.add("uppy-Dashboard-isFixed"),this.opts.animateOpenClose&&this.getPluginState().isClosing){const e=()=>{this.setPluginState({isHidden:!1}),this.el.removeEventListener("animationend",e,!1),t()};this.el.addEventListener("animationend",e,!1)}else this.setPluginState({isHidden:!1}),t();return this.opts.browserBackButtonClose&&this.updateBrowserHistory(),document.addEventListener("keydown",this.handleKeyDownInModal),this.uppy.emit("dashboard:modal-open"),e},this.closeModal=function(e){void 0===e&&(e={});const{manualClose:t=!0}=e,{isHidden:r,isClosing:n}=i.getPluginState();if(r||n)return;const{promise:s,resolve:o}=E();if(i.opts.disablePageScrollWhenModalOpen&&document.body.classList.remove("uppy-Dashboard-isFixed"),i.opts.animateOpenClose){i.setPluginState({isClosing:!0});const e=()=>{i.setPluginState({isHidden:!0,isClosing:!1}),i.superFocus.cancel(),i.savedActiveElement.focus(),i.el.removeEventListener("animationend",e,!1),o()};i.el.addEventListener("animationend",e,!1)}else i.setPluginState({isHidden:!0}),i.superFocus.cancel(),i.savedActiveElement.focus(),o();var a;(document.removeEventListener("keydown",i.handleKeyDownInModal),t)&&(i.opts.browserBackButtonClose&&null!=(a=history.state)&&a[i.modalName]&&history.back());return i.uppy.emit("dashboard:modal-closed"),s},this.isModalOpen=()=>!this.getPluginState().isHidden||!1,this.requestCloseModal=()=>this.opts.onRequestCloseModal?this.opts.onRequestCloseModal():this.closeModal(),this.setDarkModeCapability=e=>{const{capabilities:t}=this.uppy.getState();this.uppy.setState({capabilities:{...t,darkMode:e}})},this.handleSystemDarkModeChange=e=>{const t=e.matches;this.uppy.log("[Dashboard] Dark mode is "+(t?"on":"off")),this.setDarkModeCapability(t)},this.toggleFileCard=(e,t)=>{const i=this.uppy.getFile(t);e?this.uppy.emit("dashboard:file-edit-start",i):this.uppy.emit("dashboard:file-edit-complete",i),this.setPluginState({fileCardFor:e?t:null,activeOverlayType:e?"FileCard":null})},this.toggleAddFilesPanel=e=>{this.setPluginState({showAddFilesPanel:e,activeOverlayType:e?"AddFiles":null})},this.addFiles=e=>{const t=e.map((e=>({source:this.id,name:e.name,type:e.type,data:e,meta:{relativePath:e.relativePath||null}})));try{this.uppy.addFiles(t)}catch(e){this.uppy.log(e)}},this.startListeningToResize=()=>{this.resizeObserver=new ResizeObserver((e=>{const t=e[0],{width:i,height:r}=t.contentRect;this.uppy.log(`[Dashboard] resized: ${i} / ${r}`,"debug"),this.setPluginState({containerWidth:i,containerHeight:r,areInsidesReadyToBeVisible:!0})})),this.resizeObserver.observe(this.el.querySelector(".uppy-Dashboard-inner")),this.makeDashboardInsidesVisibleAnywayTimeout=setTimeout((()=>{const e=this.getPluginState(),t=!this.opts.inline&&e.isHidden;e.areInsidesReadyToBeVisible||t||(this.uppy.log("[Dashboard] resize event didn't fire on time: defaulted to mobile layout","debug"),this.setPluginState({areInsidesReadyToBeVisible:!0}))}),1e3)},this.stopListeningToResize=()=>{this.resizeObserver.disconnect(),clearTimeout(this.makeDashboardInsidesVisibleAnywayTimeout)},this.recordIfFocusedOnUppyRecently=e=>{this.el.contains(e.target)?this.ifFocusedOnUppyRecently=!0:(this.ifFocusedOnUppyRecently=!1,this.superFocus.cancel())},this.disableAllFocusableElements=e=>{const t=w(this.el.querySelectorAll(A));e?t.forEach((e=>{const t=e.getAttribute("tabindex");t&&(e.dataset.inertTabindex=t),e.setAttribute("tabindex","-1")})):t.forEach((e=>{"inertTabindex"in e.dataset?e.setAttribute("tabindex",e.dataset.inertTabindex):e.removeAttribute("tabindex")})),this.dashboardIsDisabled=e},this.updateBrowserHistory=()=>{var e;null!=(e=history.state)&&e[this.modalName]||history.pushState({...history.state,[this.modalName]:!0},""),window.addEventListener("popstate",this.handlePopState,!1)},this.handlePopState=e=>{var t;!this.isModalOpen()||e.state&&e.state[this.modalName]||this.closeModal({manualClose:!1}),!this.isModalOpen()&&null!=(t=e.state)&&t[this.modalName]&&history.back()},this.handleKeyDownInModal=e=>{27===e.keyCode&&this.requestCloseModal(e),9===e.keyCode&&P.forModal(e,this.getPluginState().activeOverlayType,this.el)},this.handleClickOutside=()=>{this.opts.closeModalOnClickOutside&&this.requestCloseModal()},this.handlePaste=e=>{this.uppy.iteratePlugins((t=>{"acquirer"===t.type&&(null==t.handleRootPaste||t.handleRootPaste(e))}));const t=w(e.clipboardData.files);t.length>0&&(this.uppy.log("[Dashboard] Files pasted"),this.addFiles(t))},this.handleInputChange=e=>{e.preventDefault();const t=w(e.target.files);t.length>0&&(this.uppy.log("[Dashboard] Files selected through input"),this.addFiles(t))},this.handleDragOver=e=>{var t,i;e.preventDefault(),e.stopPropagation();const r=(()=>{let t=!0;return this.uppy.iteratePlugins((i=>{null!=i.canHandleRootDrop&&i.canHandleRootDrop(e)&&(t=!0)})),t})(),n=(()=>{const{types:t}=e.dataTransfer;return t.some((e=>"Files"===e))})();if(!r&&!n||this.opts.disabled||this.opts.disableLocalFiles&&(n||!r)||!this.uppy.getState().allowNewUpload)return e.dataTransfer.dropEffect="none",void clearTimeout(this.removeDragOverClassTimeout);e.dataTransfer.dropEffect="copy",clearTimeout(this.removeDragOverClassTimeout),this.setPluginState({isDraggingOver:!0}),null==(t=(i=this.opts).onDragOver)||t.call(i,e)},this.handleDragLeave=e=>{var t,i;e.preventDefault(),e.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),this.removeDragOverClassTimeout=setTimeout((()=>{this.setPluginState({isDraggingOver:!1})}),50),null==(t=(i=this.opts).onDragLeave)||t.call(i,e)},this.handleDrop=async e=>{var t,i;e.preventDefault(),e.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),this.setPluginState({isDraggingOver:!1}),this.uppy.iteratePlugins((t=>{"acquirer"===t.type&&(null==t.handleRootDrop||t.handleRootDrop(e))}));let r=!1;const n=await _(e.dataTransfer,{logDropError:e=>{this.uppy.log(e,"error"),r||(this.uppy.info(e.message,"error"),r=!0)}});n.length>0&&(this.uppy.log("[Dashboard] Files dropped"),this.addFiles(n)),null==(t=(i=this.opts).onDrop)||t.call(i,e)},this.handleRequestThumbnail=e=>{this.opts.waitForThumbnailsBeforeUpload||this.uppy.emit("thumbnail:request",e)},this.handleCancelThumbnail=e=>{this.opts.waitForThumbnailsBeforeUpload||this.uppy.emit("thumbnail:cancel",e)},this.handleKeyDownInInline=e=>{9===e.keyCode&&P.forInline(e,this.getPluginState().activeOverlayType,this.el)},this.handlePasteOnBody=e=>{this.el.contains(document.activeElement)&&this.handlePaste(e)},this.handleComplete=e=>{let{failed:t}=e;this.opts.closeAfterFinish&&0===t.length&&this.requestCloseModal()},this.handleCancelRestore=()=>{this.uppy.emit("restore-canceled")},Object.defineProperty(this,n,{writable:!0,value:e=>{const t=e[0];this.canEditFile(t)&&this.openFileEditor(t)}}),this.initEvents=()=>{if(this.opts.trigger&&!this.opts.inline){const e=b(this.opts.trigger);e?e.forEach((e=>e.addEventListener("click",this.openModal))):this.uppy.log("Dashboard modal trigger not found. Make sure `trigger` is set in Dashboard options, unless you are planning to call `dashboard.openModal()` method yourself","warning")}this.startListeningToResize(),document.addEventListener("paste",this.handlePasteOnBody),this.uppy.on("plugin-remove",this.removeTarget),this.uppy.on("file-added",this.hideAllPanels),this.uppy.on("dashboard:modal-closed",this.hideAllPanels),this.uppy.on("file-editor:complete",this.hideAllPanels),this.uppy.on("complete",this.handleComplete),document.addEventListener("focus",this.recordIfFocusedOnUppyRecently,!0),document.addEventListener("click",this.recordIfFocusedOnUppyRecently,!0),this.opts.inline&&this.el.addEventListener("keydown",this.handleKeyDownInInline),this.opts.autoOpenFileEditor&&this.uppy.on("files-added",h(this,n)[n])},this.removeEvents=()=>{const e=b(this.opts.trigger);!this.opts.inline&&e&&e.forEach((e=>e.removeEventListener("click",this.openModal))),this.stopListeningToResize(),document.removeEventListener("paste",this.handlePasteOnBody),window.removeEventListener("popstate",this.handlePopState,!1),this.uppy.off("plugin-remove",this.removeTarget),this.uppy.off("file-added",this.hideAllPanels),this.uppy.off("dashboard:modal-closed",this.hideAllPanels),this.uppy.off("file-editor:complete",this.hideAllPanels),this.uppy.off("complete",this.handleComplete),document.removeEventListener("focus",this.recordIfFocusedOnUppyRecently),document.removeEventListener("click",this.recordIfFocusedOnUppyRecently),this.opts.inline&&this.el.removeEventListener("keydown",this.handleKeyDownInInline),this.opts.autoOpenFileEditor&&this.uppy.off("files-added",h(this,n)[n])},this.superFocusOnEachUpdate=()=>{const e=this.el.contains(document.activeElement),t=document.activeElement===document.body||null===document.activeElement,i=this.uppy.getState().info.isHidden,r=!this.opts.inline;i&&(r||e||t&&this.ifFocusedOnUppyRecently)?this.superFocus(this.el,this.getPluginState().activeOverlayType):this.superFocus.cancel()},this.afterUpdate=()=>{!this.opts.disabled||this.dashboardIsDisabled?(!this.opts.disabled&&this.dashboardIsDisabled&&this.disableAllFocusableElements(!1),this.superFocusOnEachUpdate()):this.disableAllFocusableElements(!0)},this.saveFileCard=(e,t)=>{this.uppy.setFileMeta(t,e),this.toggleFileCard(!1,t)},Object.defineProperty(this,s,{writable:!0,value:e=>{const t=this.uppy.getPlugin(e.id);return{...e,icon:t.icon||this.opts.defaultPickerIcon,render:t.render}}}),Object.defineProperty(this,o,{writable:!0,value:e=>{const t=this.uppy.getPlugin(e.id);return"function"!=typeof t.isSupported||t.isSupported()}}),Object.defineProperty(this,a,{writable:!0,value:x((e=>e.filter((e=>"acquirer"===e.type&&h(this,o)[o](e))).map(h(this,s)[s])))}),Object.defineProperty(this,l,{writable:!0,value:x((e=>e.filter((e=>"progressindicator"===e.type)).map(h(this,s)[s])))}),Object.defineProperty(this,u,{writable:!0,value:x((e=>e.filter((e=>"editor"===e.type)).map(h(this,s)[s])))}),this.render=e=>{const t=this.getPluginState(),{files:i,capabilities:r,allowNewUpload:n}=e,{newFiles:s,uploadStartedFiles:o,completeFiles:c,erroredFiles:p,inProgressFiles:d,inProgressNotPausedFiles:f,processingFiles:m,isUploadStarted:g,isAllComplete:v,isAllErrored:y,isAllPaused:b}=this.uppy.getObjectOfFilesPerState(),w=h(this,a)[a](t.targets),_=h(this,l)[l](t.targets),S=h(this,u)[u](t.targets);let k;return k="auto"===this.opts.theme?r.darkMode?"dark":"light":this.opts.theme,["files","folders","both"].indexOf(this.opts.fileManagerSelectionType)<0&&(this.opts.fileManagerSelectionType="files",console.warn(`Unsupported option for "fileManagerSelectionType". Using default of "${this.opts.fileManagerSelectionType}".`)),O({state:e,isHidden:t.isHidden,files:i,newFiles:s,uploadStartedFiles:o,completeFiles:c,erroredFiles:p,inProgressFiles:d,inProgressNotPausedFiles:f,processingFiles:m,isUploadStarted:g,isAllComplete:v,isAllErrored:y,isAllPaused:b,totalFileCount:Object.keys(i).length,totalProgress:e.totalProgress,allowNewUpload:n,acquirers:w,theme:k,disabled:this.opts.disabled,disableLocalFiles:this.opts.disableLocalFiles,direction:this.opts.direction,activePickerPanel:t.activePickerPanel,showFileEditor:t.showFileEditor,saveFileEditor:this.saveFileEditor,disableAllFocusableElements:this.disableAllFocusableElements,animateOpenClose:this.opts.animateOpenClose,isClosing:t.isClosing,progressindicators:_,editors:S,autoProceed:this.uppy.opts.autoProceed,id:this.id,closeModal:this.requestCloseModal,handleClickOutside:this.handleClickOutside,handleInputChange:this.handleInputChange,handlePaste:this.handlePaste,inline:this.opts.inline,showPanel:this.showPanel,hideAllPanels:this.hideAllPanels,i18n:this.i18n,i18nArray:this.i18nArray,uppy:this.uppy,note:this.opts.note,recoveredState:e.recoveredState,metaFields:t.metaFields,resumableUploads:r.resumableUploads||!1,individualCancellation:r.individualCancellation,isMobileDevice:r.isMobileDevice,fileCardFor:t.fileCardFor,toggleFileCard:this.toggleFileCard,toggleAddFilesPanel:this.toggleAddFilesPanel,showAddFilesPanel:t.showAddFilesPanel,saveFileCard:this.saveFileCard,openFileEditor:this.openFileEditor,canEditFile:this.canEditFile,width:this.opts.width,height:this.opts.height,showLinkToFileUploadResult:this.opts.showLinkToFileUploadResult,fileManagerSelectionType:this.opts.fileManagerSelectionType,proudlyDisplayPoweredByUppy:this.opts.proudlyDisplayPoweredByUppy,hideCancelButton:this.opts.hideCancelButton,hideRetryButton:this.opts.hideRetryButton,hidePauseResumeButton:this.opts.hidePauseResumeButton,showRemoveButtonAfterComplete:this.opts.showRemoveButtonAfterComplete,containerWidth:t.containerWidth,containerHeight:t.containerHeight,areInsidesReadyToBeVisible:t.areInsidesReadyToBeVisible,isTargetDOMEl:this.isTargetDOMEl,parentElement:this.el,allowedFileTypes:this.uppy.opts.restrictions.allowedFileTypes,maxNumberOfFiles:this.uppy.opts.restrictions.maxNumberOfFiles,requiredMetaFields:this.uppy.opts.restrictions.requiredMetaFields,showSelectedFiles:this.opts.showSelectedFiles,handleCancelRestore:this.handleCancelRestore,handleRequestThumbnail:this.handleRequestThumbnail,handleCancelThumbnail:this.handleCancelThumbnail,isDraggingOver:t.isDraggingOver,handleDragOver:this.handleDragOver,handleDragLeave:this.handleDragLeave,handleDrop:this.handleDrop})},this.discoverProviderPlugins=()=>{this.uppy.iteratePlugins((e=>{e&&!e.target&&e.opts&&e.opts.target===this.constructor&&this.addTarget(e)}))},this.install=()=>{this.setPluginState({isHidden:!0,fileCardFor:null,activeOverlayType:null,showAddFilesPanel:!1,activePickerPanel:!1,showFileEditor:!1,metaFields:this.opts.metaFields,targets:[],areInsidesReadyToBeVisible:!1,isDraggingOver:!1});const{inline:e,closeAfterFinish:t}=this.opts;if(e&&t)throw new Error("[Dashboard] `closeAfterFinish: true` cannot be used on an inline Dashboard, because an inline Dashboard cannot be closed at all. Either set `inline: false`, or disable the `closeAfterFinish` option.");const{allowMultipleUploads:i,allowMultipleUploadBatches:r}=this.uppy.opts;(i||r)&&t&&this.uppy.log("[Dashboard] When using `closeAfterFinish`, we recommended setting the `allowMultipleUploadBatches` option to `false` in the Uppy constructor. See https://uppy.io/docs/uppy/#allowMultipleUploads-true","warning");const{target:n}=this.opts;n&&this.mount(n,this);(this.opts.plugins||[]).forEach((e=>{const t=this.uppy.getPlugin(e);t&&t.mount(this,t)})),this.opts.disableStatusBar||this.uppy.use(g,{id:`${this.id}:StatusBar`,target:this,hideUploadButton:this.opts.hideUploadButton,hideRetryButton:this.opts.hideRetryButton,hidePauseResumeButton:this.opts.hidePauseResumeButton,hideCancelButton:this.opts.hideCancelButton,showProgressDetails:this.opts.showProgressDetails,hideAfterFinish:this.opts.hideProgressAfterFinish,locale:this.opts.locale,doneButtonHandler:this.opts.doneButtonHandler}),this.opts.disableInformer||this.uppy.use(v,{id:`${this.id}:Informer`,target:this}),this.opts.disableThumbnailGenerator||this.uppy.use(y,{id:`${this.id}:ThumbnailGenerator`,thumbnailWidth:this.opts.thumbnailWidth,thumbnailType:this.opts.thumbnailType,waitForThumbnailsBeforeUpload:this.opts.waitForThumbnailsBeforeUpload,lazy:!this.opts.waitForThumbnailsBeforeUpload}),this.darkModeMediaQuery="undefined"!=typeof window&&window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)"):null;const s=!!this.darkModeMediaQuery&&this.darkModeMediaQuery.matches;this.uppy.log("[Dashboard] Dark mode is "+(s?"on":"off")),this.setDarkModeCapability(s),"auto"===this.opts.theme&&this.darkModeMediaQuery.addListener(this.handleSystemDarkModeChange),this.discoverProviderPlugins(),this.initEvents()},this.uninstall=()=>{if(!this.opts.disableInformer){const e=this.uppy.getPlugin(`${this.id}:Informer`);e&&this.uppy.removePlugin(e)}if(!this.opts.disableStatusBar){const e=this.uppy.getPlugin(`${this.id}:StatusBar`);e&&this.uppy.removePlugin(e)}if(!this.opts.disableThumbnailGenerator){const e=this.uppy.getPlugin(`${this.id}:ThumbnailGenerator`);e&&this.uppy.removePlugin(e)}(this.opts.plugins||[]).forEach((e=>{const t=this.uppy.getPlugin(e);t&&t.unmount()})),"auto"===this.opts.theme&&this.darkModeMediaQuery.removeListener(this.handleSystemDarkModeChange),this.unmount(),this.removeEvents()},this.id=this.opts.id||"Dashboard",this.title="Dashboard",this.type="orchestrator",this.modalName=`uppy-Dashboard-${k()}`,this.defaultLocale=T;const r={target:"body",metaFields:[],trigger:null,inline:!1,width:750,height:550,thumbnailWidth:280,thumbnailType:"image/jpeg",waitForThumbnailsBeforeUpload:!1,defaultPickerIcon:F,showLinkToFileUploadResult:!1,showProgressDetails:!1,hideUploadButton:!1,hideCancelButton:!1,hideRetryButton:!1,hidePauseResumeButton:!1,hideProgressAfterFinish:!1,doneButtonHandler:()=>{this.uppy.reset(),this.requestCloseModal()},note:null,closeModalOnClickOutside:!1,closeAfterFinish:!1,disableStatusBar:!1,disableInformer:!1,disableThumbnailGenerator:!1,disablePageScrollWhenModalOpen:!0,animateOpenClose:!0,fileManagerSelectionType:"files",proudlyDisplayPoweredByUppy:!0,onRequestCloseModal:()=>this.closeModal(),showSelectedFiles:!0,showRemoveButtonAfterComplete:!1,browserBackButtonClose:!1,theme:"light",autoOpenFileEditor:!1,disabled:!1,disableLocalFiles:!1};this.opts={...r,...t},this.i18nInit(),this.superFocus=C(),this.ifFocusedOnUppyRecently=!1,this.makeDashboardInsidesVisibleAnywayTimeout=null,this.removeDragOverClassTimeout=null}onMount(){const e=this.el;S(e)||(e.dir="ltr")}},r.VERSION="2.1.3",c)},5233:e=>{"use strict";e.exports={strings:{closeModal:"Close Modal",addMoreFiles:"Add more files",addingMoreFiles:"Adding more files",importFrom:"Import from %{name}",dashboardWindowTitle:"Uppy Dashboard Window (Press escape to close)",dashboardTitle:"Uppy Dashboard",copyLinkToClipboardSuccess:"Link copied to clipboard.",copyLinkToClipboardFallback:"Copy the URL below",copyLink:"Copy link",back:"Back",removeFile:"Remove file",editFile:"Edit file",editing:"Editing %{file}",finishEditingFile:"Finish editing file",saveChanges:"Save changes",myDevice:"My Device",dropHint:"Drop your files here",uploadComplete:"Upload complete",uploadPaused:"Upload paused",resumeUpload:"Resume upload",pauseUpload:"Pause upload",retryUpload:"Retry upload",cancelUpload:"Cancel upload",xFilesSelected:{0:"%{smart_count} file selected",1:"%{smart_count} files selected"},uploadingXFiles:{0:"Uploading %{smart_count} file",1:"Uploading %{smart_count} files"},processingXFiles:{0:"Processing %{smart_count} file",1:"Processing %{smart_count} files"},poweredBy:"Powered by %{uppy}",addMore:"Add more",editFileWithFilename:"Edit file %{file}",save:"Save",cancel:"Cancel",dropPasteFiles:"Drop files here or %{browseFiles}",dropPasteFolders:"Drop files here or %{browseFolders}",dropPasteBoth:"Drop files here, %{browseFiles} or %{browseFolders}",dropPasteImportFiles:"Drop files here, %{browseFiles} or import from:",dropPasteImportFolders:"Drop files here, %{browseFolders} or import from:",dropPasteImportBoth:"Drop files here, %{browseFiles}, %{browseFolders} or import from:",importFiles:"Import files from:",browseFiles:"browse files",browseFolders:"browse folders",recoveredXFiles:{0:"We could not fully recover 1 file. Please re-select it and resume the upload.",1:"We could not fully recover %{smart_count} files. Please re-select them and resume the upload."},recoveredAllFiles:"We restored all files. You can now resume the upload.",sessionRestored:"Session restored",reSelect:"Re-select",missingRequiredMetaFields:{0:"Missing required meta field: %{fields}.",1:"Missing required meta fields: %{fields}."}}}},818:e=>{"use strict";e.exports=function(e,t){return t=t||"Copy the URL below",new Promise((i=>{const r=document.createElement("textarea");r.setAttribute("style",{position:"fixed",top:0,left:0,width:"2em",height:"2em",padding:0,border:"none",outline:"none",boxShadow:"none",background:"transparent"}),r.value=e,document.body.appendChild(r),r.select();const n=()=>{document.body.removeChild(r),window.prompt(t,e),i()};try{return document.execCommand("copy")?(document.body.removeChild(r),i()):n()}catch(e){return document.body.removeChild(r),n()}}))}},6673:(e,t,i)=>{"use strict";const r=i(1296),n=i(9045),s=i(6470);e.exports=function(){let e=!1;return r(((t,i)=>{const r=s(t,i),o=r.contains(document.activeElement);if(o&&e)return;const a=r.querySelector("[data-uppy-super-focusable]");if(!o||a)if(a)a.focus({preventScroll:!0}),e=!0;else{const t=r.querySelector(n);null==t||t.focus({preventScroll:!0}),e=!1}}),260)}},6470:e=>{"use strict";e.exports=function(e,t){if(t){const i=e.querySelector(`[data-uppy-paneltype="${t}"]`);if(i)return i}return e}},1882:(e,t,i)=>{"use strict";const{h:r}=i(6400);e.exports=function(e){const t={color:"#838999",icon:r("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},r("g",{fill:"#A7AFB7",fillRule:"nonzero"},r("path",{d:"M5.5 22a.5.5 0 0 1-.5-.5v-18a.5.5 0 0 1 .5-.5h10.719a.5.5 0 0 1 .367.16l3.281 3.556a.5.5 0 0 1 .133.339V21.5a.5.5 0 0 1-.5.5h-14zm.5-1h13V7.25L16 4H6v17z"}),r("path",{d:"M15 4v3a1 1 0 0 0 1 1h3V7h-3V4h-1z"})))};if(!e)return t;const i=e.split("/")[0],n=e.split("/")[1];if("text"===i)return{color:"#5a5e69",icon:r("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},r("path",{d:"M4.5 7h13a.5.5 0 1 1 0 1h-13a.5.5 0 0 1 0-1zm0 3h15a.5.5 0 1 1 0 1h-15a.5.5 0 1 1 0-1zm0 3h15a.5.5 0 1 1 0 1h-15a.5.5 0 1 1 0-1zm0 3h10a.5.5 0 1 1 0 1h-10a.5.5 0 1 1 0-1z",fill:"#5A5E69",fillRule:"nonzero"}))};if("image"===i)return{color:"#686de0",icon:r("svg",{"aria-hidden":"true",focusable:"false",width:"25",height:"25",viewBox:"0 0 25 25"},r("g",{fill:"#686DE0",fillRule:"evenodd"},r("path",{d:"M5 7v10h15V7H5zm0-1h15a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1z",fillRule:"nonzero"}),r("path",{d:"M6.35 17.172l4.994-5.026a.5.5 0 0 1 .707 0l2.16 2.16 3.505-3.505a.5.5 0 0 1 .707 0l2.336 2.31-.707.72-1.983-1.97-3.505 3.505a.5.5 0 0 1-.707 0l-2.16-2.159-3.938 3.939-1.409.026z",fillRule:"nonzero"}),r("circle",{cx:"7.5",cy:"9.5",r:"1.5"})))};if("audio"===i)return{color:"#068dbb",icon:r("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},r("path",{d:"M9.5 18.64c0 1.14-1.145 2-2.5 2s-2.5-.86-2.5-2c0-1.14 1.145-2 2.5-2 .557 0 1.079.145 1.5.396V7.25a.5.5 0 0 1 .379-.485l9-2.25A.5.5 0 0 1 18.5 5v11.64c0 1.14-1.145 2-2.5 2s-2.5-.86-2.5-2c0-1.14 1.145-2 2.5-2 .557 0 1.079.145 1.5.396V8.67l-8 2v7.97zm8-11v-2l-8 2v2l8-2zM7 19.64c.855 0 1.5-.484 1.5-1s-.645-1-1.5-1-1.5.484-1.5 1 .645 1 1.5 1zm9-2c.855 0 1.5-.484 1.5-1s-.645-1-1.5-1-1.5.484-1.5 1 .645 1 1.5 1z",fill:"#049BCF",fillRule:"nonzero"}))};if("video"===i)return{color:"#19af67",icon:r("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},r("path",{d:"M16 11.834l4.486-2.691A1 1 0 0 1 22 10v6a1 1 0 0 1-1.514.857L16 14.167V17a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v2.834zM15 9H5v8h10V9zm1 4l5 3v-6l-5 3z",fill:"#19AF67",fillRule:"nonzero"}))};if("application"===i&&"pdf"===n)return{color:"#e25149",icon:r("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},r("path",{d:"M9.766 8.295c-.691-1.843-.539-3.401.747-3.726 1.643-.414 2.505.938 2.39 3.299-.039.79-.194 1.662-.537 3.148.324.49.66.967 1.055 1.51.17.231.382.488.629.757 1.866-.128 3.653.114 4.918.655 1.487.635 2.192 1.685 1.614 2.84-.566 1.133-1.839 1.084-3.416.249-1.141-.604-2.457-1.634-3.51-2.707a13.467 13.467 0 0 0-2.238.426c-1.392 4.051-4.534 6.453-5.707 4.572-.986-1.58 1.38-4.206 4.914-5.375.097-.322.185-.656.264-1.001.08-.353.306-1.31.407-1.737-.678-1.059-1.2-2.031-1.53-2.91zm2.098 4.87c-.033.144-.068.287-.104.427l.033-.01-.012.038a14.065 14.065 0 0 1 1.02-.197l-.032-.033.052-.004a7.902 7.902 0 0 1-.208-.271c-.197-.27-.38-.526-.555-.775l-.006.028-.002-.003c-.076.323-.148.632-.186.8zm5.77 2.978c1.143.605 1.832.632 2.054.187.26-.519-.087-1.034-1.113-1.473-.911-.39-2.175-.608-3.55-.608.845.766 1.787 1.459 2.609 1.894zM6.559 18.789c.14.223.693.16 1.425-.413.827-.648 1.61-1.747 2.208-3.206-2.563 1.064-4.102 2.867-3.633 3.62zm5.345-10.97c.088-1.793-.351-2.48-1.146-2.28-.473.119-.564 1.05-.056 2.405.213.566.52 1.188.908 1.859.18-.858.268-1.453.294-1.984z",fill:"#E2514A",fillRule:"nonzero"}))};return"application"===i&&-1!==["zip","x-7z-compressed","x-rar-compressed","x-tar","x-gzip","x-apple-diskimage"].indexOf(n)?{color:"#00C469",icon:r("svg",{"aria-hidden":"true",focusable:"false",width:"25",height:"25",viewBox:"0 0 25 25"},r("path",{d:"M10.45 2.05h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5V2.55a.5.5 0 0 1 .5-.5zm2.05 1.024h1.05a.5.5 0 0 1 .5.5V3.6a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5v-.001zM10.45 0h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5V.5a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.024a.5.5 0 0 1 .5-.5zm-2.05 3.074h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.024a.5.5 0 0 1 .5-.5zm-2.05 1.024h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm-2.05 1.025h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.024a.5.5 0 0 1 .5-.5zm-1.656 3.074l-.82 5.946c.52.302 1.174.458 1.976.458.803 0 1.455-.156 1.975-.458l-.82-5.946h-2.311zm0-1.025h2.312c.512 0 .946.378 1.015.885l.82 5.946c.056.412-.142.817-.501 1.026-.686.398-1.515.597-2.49.597-.974 0-1.804-.199-2.49-.597a1.025 1.025 0 0 1-.5-1.026l.819-5.946c.07-.507.503-.885 1.015-.885zm.545 6.6a.5.5 0 0 1-.397-.561l.143-.999a.5.5 0 0 1 .495-.429h.74a.5.5 0 0 1 .495.43l.143.998a.5.5 0 0 1-.397.561c-.404.08-.819.08-1.222 0z",fill:"#00C469",fillRule:"nonzero"}))}:t}},8805:e=>{"use strict";e.exports=function(e){const{tagName:t}=e.target;"INPUT"!==t&&"TEXTAREA"!==t?(e.preventDefault(),e.stopPropagation()):e.stopPropagation()}},3962:(e,t,i)=>{"use strict";const r=i(6361),n=i(9045),s=i(6470);function o(e,t){const i=t[0];i&&(i.focus(),e.preventDefault())}function a(e,t,i){const a=s(i,t),l=r(a.querySelectorAll(n)),u=l.indexOf(document.activeElement);!function(e){return e.contains(document.activeElement)}(a)?o(e,l):e.shiftKey&&0===u?function(e,t){const i=t[t.length-1];i&&(i.focus(),e.preventDefault())}(e,l):e.shiftKey||u!==l.length-1||o(e,l)}e.exports={forModal:(e,t,i)=>{a(e,t,i)},forInline:(e,t,i)=>{null===t||a(e,t,i)}}},6129:(e,t,i)=>{"use strict";var r,n;const{UIPlugin:s}=i(9429),o=i(6361),a=i(3754),l=i(4031),{h:u}=i(6400),c=i(2577);e.exports=(n=r=class e extends s{constructor(e,t){super(e,t),this.handleDrop=async e=>{var t,i;e.preventDefault(),e.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),this.setPluginState({isDraggingOver:!1});const r=await l(e.dataTransfer,{logDropError:e=>{this.uppy.log(e,"error")}});r.length>0&&(this.uppy.log("[DragDrop] Files dropped"),this.addFiles(r)),null==(t=(i=this.opts).onDrop)||t.call(i,e)},this.type="acquirer",this.id=this.opts.id||"DragDrop",this.title="Drag & Drop",this.defaultLocale=c;this.opts={target:null,inputName:"files[]",width:"100%",height:"100%",note:null,...t},this.i18nInit(),this.isDragDropSupported=a(),this.removeDragOverClassTimeout=null,this.onInputChange=this.onInputChange.bind(this),this.handleDragOver=this.handleDragOver.bind(this),this.handleDragLeave=this.handleDragLeave.bind(this),this.handleDrop=this.handleDrop.bind(this),this.addFiles=this.addFiles.bind(this),this.render=this.render.bind(this)}addFiles(e){const t=e.map((e=>({source:this.id,name:e.name,type:e.type,data:e,meta:{relativePath:e.relativePath||null}})));try{this.uppy.addFiles(t)}catch(e){this.uppy.log(e)}}onInputChange(e){const t=o(e.target.files);t.length>0&&(this.uppy.log("[DragDrop] Files selected through input"),this.addFiles(t)),e.target.value=null}handleDragOver(e){var t,i;e.preventDefault(),e.stopPropagation();const{types:r}=e.dataTransfer,n=r.some((e=>"Files"===e)),{allowNewUpload:s}=this.uppy.getState();if(!n||!s)return e.dataTransfer.dropEffect="none",void clearTimeout(this.removeDragOverClassTimeout);e.dataTransfer.dropEffect="copy",clearTimeout(this.removeDragOverClassTimeout),this.setPluginState({isDraggingOver:!0}),null==(t=(i=this.opts).onDragOver)||t.call(i,e)}handleDragLeave(e){var t,i;e.preventDefault(),e.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),this.removeDragOverClassTimeout=setTimeout((()=>{this.setPluginState({isDraggingOver:!1})}),50),null==(t=(i=this.opts).onDragLeave)||t.call(i,e)}renderHiddenFileInput(){const{restrictions:e}=this.uppy.opts;return u("input",{className:"uppy-DragDrop-input",type:"file",hidden:!0,ref:e=>{this.fileInputRef=e},name:this.opts.inputName,multiple:1!==e.maxNumberOfFiles,accept:e.allowedFileTypes,onChange:this.onInputChange})}static renderArrowSvg(){return u("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon uppy-DragDrop-arrow",width:"16",height:"16",viewBox:"0 0 16 16"},u("path",{d:"M11 10V0H5v10H2l6 6 6-6h-3zm0 0",fillRule:"evenodd"}))}renderLabel(){return u("div",{className:"uppy-DragDrop-label"},this.i18nArray("dropHereOr",{browse:u("span",{className:"uppy-DragDrop-browse"},this.i18n("browse"))}))}renderNote(){return u("span",{className:"uppy-DragDrop-note"},this.opts.note)}render(){const t=`uppy-Root\n      uppy-u-reset\n      uppy-DragDrop-container\n      ${this.isDragDropSupported?"uppy-DragDrop--isDragDropSupported":""}\n      ${this.getPluginState().isDraggingOver?"uppy-DragDrop--isDraggingOver":""}\n    `,i={width:this.opts.width,height:this.opts.height};return u("button",{type:"button",className:t,style:i,onClick:()=>this.fileInputRef.click(),onDragOver:this.handleDragOver,onDragLeave:this.handleDragLeave,onDrop:this.handleDrop},this.renderHiddenFileInput(),u("div",{className:"uppy-DragDrop-inner"},e.renderArrowSvg(),this.renderLabel(),this.renderNote()))}install(){const{target:e}=this.opts;this.setPluginState({isDraggingOver:!1}),e&&this.mount(e,this)}uninstall(){this.unmount()}},r.VERSION="2.0.6",n)},2577:e=>{"use strict";e.exports={strings:{dropHereOr:"Drop here or %{browse}",browse:"browse"}}},9763:(e,t,i)=>{"use strict";const r=i(3129),{h:n,Component:s}=i(6400),o=r.__esModule?r.default:r;e.exports=class extends s{constructor(e){super(e),this.granularRotateOnChange=e=>{const{rotationAngle:t,rotationDelta:i}=this.state,r=Number(e.target.value)-i;if(cancelAnimationFrame(this.granularRotateOnInputNextFrame),0!==r){const e=t+r;this.granularRotateOnInputNextFrame=requestAnimationFrame((()=>{this.cropper.rotateTo(e)}))}},this.state={rotationAngle:0,rotationDelta:0}}componentDidMount(){const{opts:e,storeCropperInstance:t}=this.props;this.cropper=new o(this.imgElement,e.cropperOptions),t(this.cropper),e.actions.granularRotate&&this.imgElement.addEventListener("crop",(e=>{const t=e.detail.rotate;this.setState({rotationAngle:t,rotationDelta:(t+405)%90-45})}))}componentWillUnmount(){this.cropper.destroy()}renderGranularRotate(){const{i18n:e}=this.props,{rotationDelta:t,rotationAngle:i}=this.state;return n("label",{"data-microtip-position":"top",role:"tooltip","aria-label":`${i}º`,className:"uppy-ImageCropper-rangeWrapper uppy-u-reset"},n("input",{className:"uppy-ImageCropper-range uppy-u-reset",type:"range",onInput:this.granularRotateOnChange,onChange:this.granularRotateOnChange,value:t,min:"-45",max:"44","aria-label":e("rotate")}))}renderRevert(){const{i18n:e}=this.props;return n("button",{type:"button",className:"uppy-u-reset uppy-c-btn","aria-label":e("revert"),"data-microtip-position":"top",onClick:()=>{this.cropper.reset(),this.cropper.setAspectRatio(0)}},n("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},n("path",{d:"M0 0h24v24H0z",fill:"none"}),n("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"})))}renderRotate(){const{i18n:e}=this.props;return n("button",{type:"button",className:"uppy-u-reset uppy-c-btn",onClick:()=>this.cropper.rotate(-90),"aria-label":e("rotate"),"data-microtip-position":"top"},n("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},n("path",{d:"M0 0h24v24H0V0zm0 0h24v24H0V0z",fill:"none"}),n("path",{d:"M14 10a2 2 0 012 2v7a2 2 0 01-2 2H6a2 2 0 01-2-2v-7a2 2 0 012-2h8zm0 1.75H6a.25.25 0 00-.243.193L5.75 12v7a.25.25 0 00.193.243L6 19.25h8a.25.25 0 00.243-.193L14.25 19v-7a.25.25 0 00-.193-.243L14 11.75zM12 .76V4c2.3 0 4.61.88 6.36 2.64a8.95 8.95 0 012.634 6.025L21 13a1 1 0 01-1.993.117L19 13h-.003a6.979 6.979 0 00-2.047-4.95 6.97 6.97 0 00-4.652-2.044L12 6v3.24L7.76 5 12 .76z"})))}renderFlip(){const{i18n:e}=this.props;return n("button",{type:"button",className:"uppy-u-reset uppy-c-btn","aria-label":e("flipHorizontal"),"data-microtip-position":"top",onClick:()=>this.cropper.scaleX(-this.cropper.getData().scaleX||-1)},n("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},n("path",{d:"M0 0h24v24H0z",fill:"none"}),n("path",{d:"M15 21h2v-2h-2v2zm4-12h2V7h-2v2zM3 5v14c0 1.1.9 2 2 2h4v-2H5V5h4V3H5c-1.1 0-2 .9-2 2zm16-2v2h2c0-1.1-.9-2-2-2zm-8 20h2V1h-2v22zm8-6h2v-2h-2v2zM15 5h2V3h-2v2zm4 8h2v-2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2z"})))}renderZoomIn(){const{i18n:e}=this.props;return n("button",{type:"button",className:"uppy-u-reset uppy-c-btn","aria-label":e("zoomIn"),"data-microtip-position":"top",onClick:()=>this.cropper.zoom(.1)},n("svg",{"aria-hidden":"true",className:"uppy-c-icon",height:"24",viewBox:"0 0 24 24",width:"24"},n("path",{d:"M0 0h24v24H0V0z",fill:"none"}),n("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),n("path",{d:"M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"})))}renderZoomOut(){const{i18n:e}=this.props;return n("button",{type:"button",className:"uppy-u-reset uppy-c-btn","aria-label":e("zoomOut"),"data-microtip-position":"top",onClick:()=>this.cropper.zoom(-.1)},n("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},n("path",{d:"M0 0h24v24H0V0z",fill:"none"}),n("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zM7 9h5v1H7z"})))}renderCropSquare(){const{i18n:e}=this.props;return n("button",{type:"button",className:"uppy-u-reset uppy-c-btn","aria-label":e("aspectRatioSquare"),"data-microtip-position":"top",onClick:()=>this.cropper.setAspectRatio(1)},n("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},n("path",{d:"M0 0h24v24H0z",fill:"none"}),n("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"})))}renderCropWidescreen(){const{i18n:e}=this.props;return n("button",{type:"button",className:"uppy-u-reset uppy-c-btn","aria-label":e("aspectRatioLandscape"),"data-microtip-position":"top",onClick:()=>this.cropper.setAspectRatio(16/9)},n("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},n("path",{d:"M 19,4.9999992 V 17.000001 H 4.9999998 V 6.9999992 H 19 m 0,-2 H 4.9999998 c -1.0999999,0 -1.9999999,0.9000001 -1.9999999,2 V 17.000001 c 0,1.1 0.9,2 1.9999999,2 H 19 c 1.1,0 2,-0.9 2,-2 V 6.9999992 c 0,-1.0999999 -0.9,-2 -2,-2 z"}),n("path",{fill:"none",d:"M0 0h24v24H0z"})))}renderCropWidescreenVertical(){const{i18n:e}=this.props;return n("button",{type:"button",className:"uppy-u-reset uppy-c-btn","aria-label":e("aspectRatioPortrait"),"data-microtip-position":"top",onClick:()=>this.cropper.setAspectRatio(9/16)},n("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},n("path",{d:"M 19.000001,19 H 6.999999 V 5 h 10.000002 v 14 m 2,0 V 5 c 0,-1.0999999 -0.9,-1.9999999 -2,-1.9999999 H 6.999999 c -1.1,0 -2,0.9 -2,1.9999999 v 14 c 0,1.1 0.9,2 2,2 h 10.000002 c 1.1,0 2,-0.9 2,-2 z"}),n("path",{d:"M0 0h24v24H0z",fill:"none"})))}render(){const{currentImage:e,opts:t}=this.props,{actions:i}=t,r=URL.createObjectURL(e.data);return n("div",{className:"uppy-ImageCropper"},n("div",{className:"uppy-ImageCropper-container"},n("img",{className:"uppy-ImageCropper-image",alt:e.name,src:r,ref:e=>{this.imgElement=e}})),n("div",{className:"uppy-ImageCropper-controls"},i.revert&&this.renderRevert(),i.rotate&&this.renderRotate(),i.granularRotate&&this.renderGranularRotate(),i.flip&&this.renderFlip(),i.zoomIn&&this.renderZoomIn(),i.zoomOut&&this.renderZoomOut(),i.cropSquare&&this.renderCropSquare(),i.cropWidescreen&&this.renderCropWidescreen(),i.cropWidescreenVertical&&this.renderCropWidescreenVertical()))}}},8919:(e,t,i)=>{"use strict";var r,n;const{UIPlugin:s}=i(9429),{h:o}=i(6400),a=i(9763),l=i(8452);e.exports=(n=r=class extends s{constructor(e,t){super(e,t),this.save=()=>{const{currentImage:e}=this.getPluginState();this.cropper.getCroppedCanvas(this.opts.cropperOptions.croppedCanvasOptions).toBlob((e=>{const{currentImage:t}=this.getPluginState();this.uppy.setFileState(t.id,{data:e,size:e.size,preview:null});const i=this.uppy.getFile(t.id);this.uppy.emit("thumbnail:request",i),this.setPluginState({currentImage:i}),this.uppy.emit("file-editor:complete",i)}),e.type,this.opts.quality)},this.storeCropperInstance=e=>{this.cropper=e},this.selectFile=e=>{this.uppy.emit("file-editor:start",e),this.setPluginState({currentImage:e})},this.id=this.opts.id||"ImageEditor",this.title="Image Editor",this.type="editor",this.defaultLocale=l;this.opts={quality:.8,...t,actions:{revert:!0,rotate:!0,granularRotate:!0,flip:!0,zoomIn:!0,zoomOut:!0,cropSquare:!0,cropWidescreen:!0,cropWidescreenVertical:!0,...t.actions},cropperOptions:{viewMode:1,background:!1,autoCropArea:1,responsive:!0,croppedCanvasOptions:{},...t.cropperOptions}},this.i18nInit()}canEditFile(e){if(!e.type||e.isRemote)return!1;const t=e.type.split("/")[1];return!!/^(jpe?g|gif|png|bmp|webp)$/.test(t)}install(){this.setPluginState({currentImage:null});const{target:e}=this.opts;e&&this.mount(e,this)}uninstall(){this.unmount()}render(){const{currentImage:e}=this.getPluginState();return null===e||e.isRemote?null:o(a,{currentImage:e,storeCropperInstance:this.storeCropperInstance,save:this.save,opts:this.opts,i18n:this.i18n})}},r.VERSION="1.1.1",n)},8452:e=>{"use strict";e.exports={strings:{revert:"Revert",rotate:"Rotate",zoomIn:"Zoom in",zoomOut:"Zoom out",flipHorizontal:"Flip horizontal",aspectRatioSquare:"Crop square",aspectRatioLandscape:"Crop landscape (16:9)",aspectRatioPortrait:"Crop portrait (9:16)"}}},1623:(e,t,i)=>{"use strict";const{h:r,Component:n,createRef:s}=i(6400);e.exports=class extends n{constructor(){super(...arguments),this.ref=s()}componentWillEnter(e){this.ref.current.style.opacity="1",this.ref.current.style.transform="none",setTimeout(e,300)}componentWillLeave(e){this.ref.current.style.opacity="0",this.ref.current.style.transform="translateY(350%)",setTimeout(e,300)}render(){const{children:e}=this.props;return r("div",{className:"uppy-Informer-animated",ref:this.ref},e)}}},6455:(e,t,i)=>{"use strict";const{Component:r,cloneElement:n,h:s,toChildArray:o}=i(6400);function a(e,t){const i=e._ptgLinkedRefs||(e._ptgLinkedRefs={});return i[t]||(i[t]=i=>{e.refs[t]=i})}function l(e){const t={};for(let s=0;s<e.length;s++)if(null!=e[s]){t[(i=e[s],r=s.toString(36),n=void 0,null!=(n=null==i?void 0:i.key)?n:r)]=e[s]}var i,r,n;return t}function u(e,t){e=e||{},t=t||{};const i=i=>t.hasOwnProperty(i)?t[i]:e[i],r={};let n=[];for(const i in e)t.hasOwnProperty(i)?n.length&&(r[i]=n,n=[]):n.push(i);const s={};for(const e in t){if(r.hasOwnProperty(e))for(let t=0;t<r[e].length;t++){const n=r[e][t];s[r[e][t]]=i(n)}s[e]=i(e)}for(let e=0;e<n.length;e++)s[n[e]]=i(n[e]);return s}class c extends r{constructor(e,t){super(e,t),this.refs={},this.state={children:l(o(o(this.props.children))||[])},this.performAppear=this.performAppear.bind(this),this.performEnter=this.performEnter.bind(this),this.performLeave=this.performLeave.bind(this)}componentWillMount(){this.currentlyTransitioningKeys={},this.keysToAbortLeave=[],this.keysToEnter=[],this.keysToLeave=[]}componentDidMount(){const e=this.state.children;for(const t in e)e[t]&&this.performAppear(t)}componentWillReceiveProps(e){const t=l(o(e.children)||[]),i=this.state.children;let r;for(r in this.setState((e=>({children:u(e.children,t)}))),t)if(t.hasOwnProperty(r)){const e=i&&i.hasOwnProperty(r);t[r]&&e&&this.currentlyTransitioningKeys[r]?(this.keysToEnter.push(r),this.keysToAbortLeave.push(r)):!t[r]||e||this.currentlyTransitioningKeys[r]||this.keysToEnter.push(r)}for(r in i)if(i.hasOwnProperty(r)){const e=t&&t.hasOwnProperty(r);!i[r]||e||this.currentlyTransitioningKeys[r]||this.keysToLeave.push(r)}}componentDidUpdate(){const{keysToEnter:e}=this;this.keysToEnter=[],e.forEach(this.performEnter);const{keysToLeave:t}=this;this.keysToLeave=[],t.forEach(this.performLeave)}_finishAbort(e){const t=this.keysToAbortLeave.indexOf(e);-1!==t&&this.keysToAbortLeave.splice(t,1)}performAppear(e){this.currentlyTransitioningKeys[e]=!0;const t=this.refs[e];t.componentWillAppear?t.componentWillAppear(this._handleDoneAppearing.bind(this,e)):this._handleDoneAppearing(e)}_handleDoneAppearing(e){const t=this.refs[e];t.componentDidAppear&&t.componentDidAppear(),delete this.currentlyTransitioningKeys[e],this._finishAbort(e);const i=l(o(this.props.children)||[]);i&&i.hasOwnProperty(e)||this.performLeave(e)}performEnter(e){this.currentlyTransitioningKeys[e]=!0;const t=this.refs[e];t.componentWillEnter?t.componentWillEnter(this._handleDoneEntering.bind(this,e)):this._handleDoneEntering(e)}_handleDoneEntering(e){const t=this.refs[e];t.componentDidEnter&&t.componentDidEnter(),delete this.currentlyTransitioningKeys[e],this._finishAbort(e);const i=l(o(this.props.children)||[]);i&&i.hasOwnProperty(e)||this.performLeave(e)}performLeave(e){if(-1!==this.keysToAbortLeave.indexOf(e))return;this.currentlyTransitioningKeys[e]=!0;const t=this.refs[e];t.componentWillLeave?t.componentWillLeave(this._handleDoneLeaving.bind(this,e)):this._handleDoneLeaving(e)}_handleDoneLeaving(e){if(-1!==this.keysToAbortLeave.indexOf(e))return;const t=this.refs[e];t.componentDidLeave&&t.componentDidLeave(),delete this.currentlyTransitioningKeys[e];const i=l(o(this.props.children)||[]);if(i&&i.hasOwnProperty(e))this.performEnter(e);else{const t=(r={},n=this.state.children,Object.assign(r,n));delete t[e],this.setState({children:t})}var r,n}render(e,t){let{childFactory:i,transitionLeave:r,transitionName:o,transitionAppear:l,transitionEnter:u,transitionLeaveTimeout:c,transitionEnterTimeout:h,transitionAppearTimeout:p,component:d,...f}=e,{children:m}=t;const g=[];for(const e in m)if(m.hasOwnProperty(e)){const t=m[e];if(t){const r=a(this,e),s=n(i(t),{ref:r,key:e});g.push(s)}}return s(d,f,g)}}c.defaultProps={component:"span",childFactory:e=>e},e.exports=c},873:(e,t,i)=>{"use strict";var r,n;const{h:s}=i(6400),{UIPlugin:o}=i(9429),a=i(1623),l=i(6455);e.exports=(n=r=class extends o{constructor(e,t){super(e,t),this.render=e=>s("div",{className:"uppy uppy-Informer"},s(l,null,e.info.map((e=>s(a,{key:e.message},s("p",{role:"alert"},e.message," ",e.details&&s("span",{"aria-label":e.details,"data-microtip-position":"top-left","data-microtip-size":"medium",role:"tooltip",onClick:()=>alert(`${e.message} \n\n ${e.details}`)},"?"))))))),this.type="progressindicator",this.id=this.opts.id||"Informer",this.title="Informer";this.opts={...t}}install(){const{target:e}=this.opts;e&&this.mount(e,this)}},r.VERSION="2.0.5",n)},4749:(e,t,i)=>{"use strict";var r,n;const{UIPlugin:s}=i(9429),{h:o}=i(6400);e.exports=(n=r=class extends s{constructor(e,t){super(e,t),this.id=this.opts.id||"ProgressBar",this.title="Progress Bar",this.type="progressindicator";this.opts={target:"body",fixed:!1,hideAfterFinish:!0,...t},this.render=this.render.bind(this)}render(e){const t=e.totalProgress||0,i=(0===t||100===t)&&this.opts.hideAfterFinish;return o("div",{className:"uppy uppy-ProgressBar",style:{position:this.opts.fixed?"fixed":"initial"},"aria-hidden":i},o("div",{className:"uppy-ProgressBar-inner",style:{width:`${t}%`}}),o("div",{className:"uppy-ProgressBar-percentage"},t))}install(){const{target:e}=this.opts;e&&this.mount(e,this)}uninstall(){this.unmount()}},r.VERSION="2.0.4",n)},7902:(e,t,i)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},r.apply(this,arguments)}const{h:n,Component:s}=i(6400),o=i(1977),a=i(2714),l=i(381),u=i(7814);e.exports=class extends s{componentWillUnmount(){this.props.onStop()}render(){const{recording:e,stream:t,recordedVideo:i}=this.props,s={playsinline:!0};return(e||!i&&!e)&&(s.muted=!0,s.autoplay=!0,s.srcObject=t),i&&!e&&(s.muted=!1,s.controls=!0,s.src=i,this.videoElement&&(this.videoElement.srcObject=void 0)),n("div",{className:"uppy uppy-ScreenCapture-container"},n("div",{className:"uppy-ScreenCapture-videoContainer"},n(u,this.props),n("video",r({ref:e=>{this.videoElement=e},className:"uppy-ScreenCapture-video"},s)),n(l,this.props)),n("div",{className:"uppy-ScreenCapture-buttonContainer"},n(o,this.props),n(a,this.props)))}}},1977:(e,t,i)=>{"use strict";const{h:r}=i(6400);e.exports=function(e){let{recording:t,onStartRecording:i,onStopRecording:n,i18n:s}=e;return t?r("button",{className:"uppy-u-reset uppy-c-btn uppy-ScreenCapture-button uppy-ScreenCapture-button--video uppy-ScreenCapture-button--stop-rec",type:"button",title:s("stopCapturing"),"aria-label":s("stopCapturing"),onClick:n,"data-uppy-super-focusable":!0},r("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"100",height:"100",viewBox:"0 0 100 100"},r("rect",{x:"15",y:"15",width:"70",height:"70"}))):r("button",{className:"uppy-u-reset uppy-c-btn uppy-ScreenCapture-button uppy-ScreenCapture-button--video",type:"button",title:s("startCapturing"),"aria-label":s("startCapturing"),onClick:i,"data-uppy-super-focusable":!0},r("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"100",height:"100",viewBox:"0 0 100 100"},r("circle",{cx:"50",cy:"50",r:"40"})))}},4370:(e,t,i)=>{"use strict";const{h:r}=i(6400);e.exports=()=>r("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},r("g",{fill:"none",fillRule:"evenodd"},r("rect",{className:"uppy-ProviderIconBg",fill:"#2C3E50",width:"32",height:"32",rx:"16"}),r("path",{d:"M24.182 9H7.818C6.81 9 6 9.742 6 10.667v10c0 .916.81 1.666 1.818 1.666h4.546V24h7.272v-1.667h4.546c1 0 1.809-.75 1.809-1.666l.009-10C26 9.742 25.182 9 24.182 9zM24 21H8V11h16v10z",fill:"#FFF",fillRule:"nonzero"}),r("circle",{fill:"#FFF",cx:"16",cy:"16",r:"2"})))},381:(e,t,i)=>{"use strict";const{h:r,Component:n}=i(6400);e.exports=class extends n{constructor(e){super(e),this.state={elapsedTime:0},this.wrapperStyle={width:"100%",height:"100%",display:"flex"},this.overlayStyle={position:"absolute",width:"100%",height:"100%",background:"black",opacity:.7},this.infoContainerStyle={marginLeft:"auto",marginRight:"auto",marginTop:"auto",marginBottom:"auto",zIndex:1,color:"white"},this.infotextStyle={marginLeft:"auto",marginRight:"auto",marginBottom:"1rem",fontSize:"1.5rem"},this.timeStyle={display:"block",fontWeight:"bold",marginLeft:"auto",marginRight:"auto",fontSize:"3rem",fontFamily:"Courier New"}}startTimer(){this.timerTick(),this.timerRunning=!0}resetTimer(){clearTimeout(this.timer),this.setState({elapsedTime:0}),this.timerRunning=!1}timerTick(){this.timer=setTimeout((()=>{this.setState((e=>({elapsedTime:e.elapsedTime+1}))),this.timerTick()}),1e3)}fmtMSS(e){return(e-(e%=60))/60+(e>9?":":":0")+e}render(){const{recording:e,i18n:t}={...this.props},i=this.fmtMSS(this.state.elapsedTime);return e&&!this.timerRunning&&this.startTimer(),!e&&this.timerRunning&&this.resetTimer(),e?r("div",{style:this.wrapperStyle},r("div",{style:this.overlayStyle}),r("div",{style:this.infoContainerStyle},r("div",{style:this.infotextStyle},t("recording")),r("div",{style:this.timeStyle},i))):null}}},7814:(e,t,i)=>{"use strict";const{h:r}=i(6400);e.exports=e=>{let{streamActive:t,i18n:i}=e;return t?r("div",{title:i("streamActive"),"aria-label":i("streamActive"),className:"uppy-ScreenCapture-icon--stream uppy-ScreenCapture-icon--streamActive"},r("svg",{"aria-hidden":"true",focusable:"false",width:"24",height:"24",viewBox:"0 0 24 24"},r("path",{d:"M0 0h24v24H0z",opacity:".1",fill:"none"}),r("path",{d:"M0 0h24v24H0z",fill:"none"}),r("path",{d:"M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm18-7H5v1.63c3.96 1.28 7.09 4.41 8.37 8.37H19V7zM1 10v2c4.97 0 9 4.03 9 9h2c0-6.08-4.93-11-11-11zm20-7H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}))):r("div",{title:i("streamPassive"),"aria-label":i("streamPassive"),className:"uppy-ScreenCapture-icon--stream"},r("svg",{"aria-hidden":"true",focusable:"false",width:"24",height:"24",viewBox:"0 0 24 24"},r("path",{d:"M0 0h24v24H0z",opacity:".1",fill:"none"}),r("path",{d:"M0 0h24v24H0z",fill:"none"}),r("path",{d:"M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2c4.97 0 9 4.03 9 9h2c0-6.08-4.93-11-11-11z"})))}},2714:(e,t,i)=>{"use strict";const{h:r}=i(6400);e.exports=function(e){let{recording:t,recordedVideo:i,onSubmit:n,i18n:s}=e;return i&&!t?r("button",{className:"uppy-u-reset uppy-c-btn uppy-ScreenCapture-button uppy-ScreenCapture-button--submit",type:"button",title:s("submitRecordedFile"),"aria-label":s("submitRecordedFile"),onClick:n,"data-uppy-super-focusable":!0},r("svg",{width:"12",height:"9",viewBox:"0 0 12 9",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",className:"uppy-c-icon"},r("path",{fill:"#fff",fillRule:"nonzero",d:"M10.66 0L12 1.31 4.136 9 0 4.956l1.34-1.31L4.136 6.38z"}))):null}},9904:(e,t,i)=>{"use strict";var r,n;function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},s.apply(this,arguments)}const{h:o}=i(6400),{UIPlugin:a}=i(9429),l=i(182),u=i(4370),c=i(7902),h=i(6025);e.exports=(n=r=class extends a{constructor(e,t){super(e,t),this.mediaDevices=window.MediaRecorder&&navigator.mediaDevices,this.protocol="https:"===location.protocol?"https":"http",this.id=this.opts.id||"ScreenCapture",this.title=this.opts.title||"Screencast",this.type="acquirer",this.icon=u,this.defaultLocale=h;this.opts={displayMediaConstraints:{video:{width:1280,height:720,frameRate:{ideal:3,max:5},cursor:"motion",displaySurface:"monitor"}},userMediaConstraints:{audio:!0},preferredVideoMimeType:"video/webm",...t},this.i18nInit(),this.install=this.install.bind(this),this.setPluginState=this.setPluginState.bind(this),this.render=this.render.bind(this),this.start=this.start.bind(this),this.stop=this.stop.bind(this),this.startRecording=this.startRecording.bind(this),this.stopRecording=this.stopRecording.bind(this),this.submit=this.submit.bind(this),this.streamInterrupted=this.streamInactivated.bind(this),this.captureActive=!1,this.capturedMediaFile=null}install(){if(!this.mediaDevices)return this.uppy.log("Screen recorder access is not supported","error"),null;this.setPluginState({streamActive:!1,audioStreamActive:!1});const{target:e}=this.opts;e&&this.mount(e,this)}uninstall(){this.videoStream&&this.stop(),this.unmount()}start(){if(!this.mediaDevices)return Promise.reject(new Error("Screen recorder access not supported"));this.captureActive=!0,this.selectAudioStreamSource(),this.selectVideoStreamSource().then((e=>{!1===e&&this.parent&&this.parent.hideAllPanels&&(this.parent.hideAllPanels(),this.captureActive=!1)}))}selectVideoStreamSource(){return this.videoStream?new Promise((e=>e(this.videoStream))):this.mediaDevices.getDisplayMedia(this.opts.displayMediaConstraints).then((e=>(this.videoStream=e,this.videoStream.addEventListener("inactive",(()=>{this.streamInactivated()})),this.setPluginState({streamActive:!0}),e))).catch((e=>(this.setPluginState({screenRecError:e}),this.userDenied=!0,setTimeout((()=>{this.userDenied=!1}),1e3),!1)))}selectAudioStreamSource(){return this.audioStream?new Promise((e=>e(this.audioStream))):this.mediaDevices.getUserMedia(this.opts.userMediaConstraints).then((e=>(this.audioStream=e,this.setPluginState({audioStreamActive:!0}),e))).catch((e=>("NotAllowedError"===e.name&&this.uppy.info(this.i18n("micDisabled"),"error",5e3),!1)))}startRecording(){const e={};this.capturedMediaFile=null,this.recordingChunks=[];const{preferredVideoMimeType:t}=this.opts;this.selectVideoStreamSource().then((i=>{t&&MediaRecorder.isTypeSupported(t)&&l(t)&&(e.mimeType=t);const r=[i.getVideoTracks()[0]];this.audioStream&&r.push(this.audioStream.getAudioTracks()[0]),this.outputStream=new MediaStream(r),this.recorder=new MediaRecorder(this.outputStream,e),this.recorder.addEventListener("dataavailable",(e=>{this.recordingChunks.push(e.data)})),this.recorder.start(),this.setPluginState({recording:!0})})).catch((e=>{this.uppy.log(e,"error")}))}streamInactivated(){const{recordedVideo:e,recording:t}={...this.getPluginState()};e||t?t&&(this.uppy.log("Capture stream inactive — stop recording"),this.stopRecording()):this.parent&&this.parent.hideAllPanels&&this.parent.hideAllPanels(),this.videoStream=null,this.audioStream=null,this.setPluginState({streamActive:!1,audioStreamActive:!1})}stopRecording(){return new Promise((e=>{this.recorder.addEventListener("stop",(()=>{e()})),this.recorder.stop()})).then((()=>(this.setPluginState({recording:!1}),this.getVideo()))).then((e=>{this.capturedMediaFile=e,this.setPluginState({recordedVideo:URL.createObjectURL(e.data)})})).then((()=>{this.recordingChunks=null,this.recorder=null}),(e=>{throw this.recordingChunks=null,this.recorder=null,e}))}submit(){try{this.capturedMediaFile&&this.uppy.addFile(this.capturedMediaFile)}catch(e){e.isRestriction||this.uppy.log(e,"error")}}stop(){this.videoStream&&(this.videoStream.getVideoTracks().forEach((e=>{e.stop()})),this.videoStream.getAudioTracks().forEach((e=>{e.stop()})),this.videoStream=null),this.audioStream&&(this.audioStream.getAudioTracks().forEach((e=>{e.stop()})),this.audioStream.getVideoTracks().forEach((e=>{e.stop()})),this.audioStream=null),this.outputStream&&(this.outputStream.getAudioTracks().forEach((e=>{e.stop()})),this.outputStream.getVideoTracks().forEach((e=>{e.stop()})),this.outputStream=null),this.setPluginState({recordedVideo:null}),this.captureActive=!1}getVideo(){const e=this.recordingChunks[0].type,t=l(e);if(!t)return Promise.reject(new Error(`Could not retrieve recording: Unsupported media type "${e}"`));const i=`screencap-${Date.now()}.${t}`,r=new Blob(this.recordingChunks,{type:e}),n={source:this.id,name:i,data:new Blob([r],{type:e}),type:e};return Promise.resolve(n)}render(){const e=this.getPluginState();return e.streamActive||this.captureActive||this.userDenied||this.start(),o(c,s({},e,{onStartRecording:this.startRecording,onStopRecording:this.stopRecording,onStop:this.stop,onSubmit:this.submit,i18n:this.i18n,stream:this.videoStream}))}},r.VERSION="2.0.6",n)},6025:e=>{"use strict";e.exports={strings:{startCapturing:"Begin screen capturing",stopCapturing:"Stop screen capturing",submitRecordedFile:"Submit recorded file",streamActive:"Stream active",streamPassive:"Stream passive",micDisabled:"Microphone access denied by user",recording:"Recording"}}},4049:(e,t,i)=>{"use strict";const r=i(4184),n=i(3096),s=i(5158),o=i(1011),{h:a}=i(6400),l=i(3242);function u(){return a("svg",{className:"uppy-StatusBar-spinner","aria-hidden":"true",focusable:"false",width:"14",height:"14"},a("path",{d:"M13.983 6.547c-.12-2.509-1.64-4.893-3.939-5.936-2.48-1.127-5.488-.656-7.556 1.094C.524 3.367-.398 6.048.162 8.562c.556 2.495 2.46 4.52 4.94 5.183 2.932.784 5.61-.602 7.256-3.015-1.493 1.993-3.745 3.309-6.298 2.868-2.514-.434-4.578-2.349-5.153-4.84a6.226 6.226 0 0 1 2.98-6.778C6.34.586 9.74 1.1 11.373 3.493c.407.596.693 1.282.842 1.988.127.598.073 1.197.161 1.794.078.525.543 1.257 1.15.864.525-.341.49-1.05.456-1.592-.007-.15.02.3 0 0",fillRule:"evenodd"}))}function c(e){const{numUploads:t,complete:i,totalUploadedSize:r,totalSize:n,totalETA:l,i18n:u}=e,c=t>1;return a("div",{className:"uppy-StatusBar-statusSecondary"},c&&u("filesUploadedOfTotal",{complete:i,smart_count:t}),a("span",{className:"uppy-StatusBar-additionalInfo"},c&&" · ",u("dataUploadedOfTotal",{complete:s(r),total:s(n)})," · ",u("xTimeLeft",{time:o(l)})))}function h(e){const{i18n:t,complete:i,numUploads:r}=e;return a("div",{className:"uppy-StatusBar-statusSecondary"},t("filesUploadedOfTotal",{complete:i,smart_count:r}))}function p(e){const{i18n:t,newFiles:i,startUpload:n}=e,s=r("uppy-u-reset","uppy-c-btn","uppy-StatusBar-actionBtn","uppy-StatusBar-actionBtn--uploadNewlyAdded");return a("div",{className:"uppy-StatusBar-statusSecondary"},a("div",{className:"uppy-StatusBar-statusSecondaryHint"},t("xMoreFilesAdded",{smart_count:i})),a("button",{type:"button",className:s,"aria-label":t("uploadXFiles",{smart_count:i}),onClick:n},t("upload")))}const d=n(c,500,{leading:!0,trailing:!0});e.exports={UploadBtn:function(e){const{newFiles:t,isUploadStarted:i,recoveredState:n,i18n:s,uploadState:o,isSomeGhost:u,startUpload:c}=e,h=r("uppy-u-reset","uppy-c-btn","uppy-StatusBar-actionBtn","uppy-StatusBar-actionBtn--upload",{"uppy-c-btn-primary":o===l.STATE_WAITING},{"uppy-StatusBar-actionBtn--disabled":u}),p=s(t&&i&&!n?"uploadXNewFiles":"uploadXFiles",{smart_count:t});return a("button",{type:"button",className:h,"aria-label":s("uploadXFiles",{smart_count:t}),onClick:c,disabled:u,"data-uppy-super-focusable":!0},p)},RetryBtn:function(e){const{i18n:t,uppy:i}=e;return a("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-StatusBar-actionBtn uppy-StatusBar-actionBtn--retry","aria-label":t("retryUpload"),onClick:()=>i.retryAll(),"data-uppy-super-focusable":!0},a("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"8",height:"10",viewBox:"0 0 8 10"},a("path",{d:"M4 2.408a2.75 2.75 0 1 0 2.75 2.75.626.626 0 0 1 1.25.018v.023a4 4 0 1 1-4-4.041V.25a.25.25 0 0 1 .389-.208l2.299 1.533a.25.25 0 0 1 0 .416l-2.3 1.533A.25.25 0 0 1 4 3.316v-.908z"})),t("retry"))},CancelBtn:function(e){const{i18n:t,uppy:i}=e;return a("button",{type:"button",className:"uppy-u-reset uppy-StatusBar-actionCircleBtn",title:t("cancel"),"aria-label":t("cancel"),onClick:()=>i.cancelAll(),"data-uppy-super-focusable":!0},a("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"16",height:"16",viewBox:"0 0 16 16"},a("g",{fill:"none",fillRule:"evenodd"},a("circle",{fill:"#888",cx:"8",cy:"8",r:"8"}),a("path",{fill:"#FFF",d:"M9.283 8l2.567 2.567-1.283 1.283L8 9.283 5.433 11.85 4.15 10.567 6.717 8 4.15 5.433 5.433 4.15 8 6.717l2.567-2.567 1.283 1.283z"}))))},PauseResumeButton:function(e){const{isAllPaused:t,i18n:i,isAllComplete:r,resumableUploads:n,uppy:s}=e,o=i(t?"resume":"pause");return a("button",{title:o,"aria-label":o,className:"uppy-u-reset uppy-StatusBar-actionCircleBtn",type:"button",onClick:function(){return r?null:n?t?s.resumeAll():s.pauseAll():s.cancelAll()},"data-uppy-super-focusable":!0},a("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"16",height:"16",viewBox:"0 0 16 16"},a("g",{fill:"none",fillRule:"evenodd"},a("circle",{fill:"#888",cx:"8",cy:"8",r:"8"}),a("path",{fill:"#FFF",d:t?"M6 4.25L11.5 8 6 11.75z":"M5 4.5h2v7H5v-7zm4 0h2v7H9v-7z"}))))},DoneBtn:function(e){const{i18n:t,doneButtonHandler:i}=e;return a("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-StatusBar-actionBtn uppy-StatusBar-actionBtn--done",onClick:i,"data-uppy-super-focusable":!0},t("done"))},LoadingSpinner:u,ProgressDetails:c,ProgressBarProcessing:function(e){const{progress:t}=e,{value:i,mode:r,message:n}=t,s=Math.round(100*i);return a("div",{className:"uppy-StatusBar-content"},a(u,null),"determinate"===r?`${s}% · `:"",n)},ProgressBarError:function(e){const{error:t,i18n:i,complete:r,numUploads:n}=e;return a("div",{className:"uppy-StatusBar-content",title:i("uploadFailed")},a("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-StatusBar-statusIndicator uppy-c-icon",width:"11",height:"11",viewBox:"0 0 11 11"},a("path",{d:"M4.278 5.5L0 1.222 1.222 0 5.5 4.278 9.778 0 11 1.222 6.722 5.5 11 9.778 9.778 11 5.5 6.722 1.222 11 0 9.778z"})),a("div",{className:"uppy-StatusBar-status"},a("div",{className:"uppy-StatusBar-statusPrimary"},i("uploadFailed"),a("button",{className:"uppy-u-reset uppy-StatusBar-details","aria-label":i("showErrorDetails"),"data-microtip-position":"top-right","data-microtip-size":"medium",onClick:function(){const e=`${i("uploadFailed")} \n\n ${t}`;alert(e)},type:"button"},"?")),a(h,{i18n:i,complete:r,numUploads:n})))},ProgressBarUploading:function(e){const{i18n:t,supportsUploadProgress:i,totalProgress:r,showProgressDetails:n,isUploadStarted:s,isAllComplete:o,isAllPaused:l,newFiles:c,numUploads:f,complete:m,totalUploadedSize:g,totalSize:v,totalETA:y,startUpload:b}=e,w=c&&s;if(!s||o)return null;const _=t(l?"paused":"uploading");return a("div",{className:"uppy-StatusBar-content","aria-label":_,title:_},l?null:a(u,null),a("div",{className:"uppy-StatusBar-status"},a("div",{className:"uppy-StatusBar-statusPrimary"},i?`${_}: ${r}%`:_),l||w||!n?null:i?a(d,{numUploads:f,complete:m,totalUploadedSize:g,totalSize:v,totalETA:y,i18n:t}):a(h,{i18n:t,complete:m,numUploads:f}),w?a(p,{i18n:t,newFiles:c,startUpload:b}):null))},ProgressBarComplete:function(e){const{i18n:t}=e;return a("div",{className:"uppy-StatusBar-content",role:"status",title:t("complete")},a("div",{className:"uppy-StatusBar-status"},a("div",{className:"uppy-StatusBar-statusPrimary"},a("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-StatusBar-statusIndicator uppy-c-icon",width:"15",height:"11",viewBox:"0 0 15 11"},a("path",{d:"M.414 5.843L1.627 4.63l3.472 3.472L13.202 0l1.212 1.213L5.1 10.528z"})),t("complete"))))}}},858:(e,t,i)=>{"use strict";const{h:r}=i(6400),n=i(4184),s=i(3242),o=i(1881),{UploadBtn:a,RetryBtn:l,CancelBtn:u,PauseResumeButton:c,DoneBtn:h,ProgressBarProcessing:p,ProgressBarError:d,ProgressBarUploading:f,ProgressBarComplete:m}=i(4049),{STATE_ERROR:g,STATE_WAITING:v,STATE_PREPROCESSING:y,STATE_UPLOADING:b,STATE_POSTPROCESSING:w,STATE_COMPLETE:_}=s;e.exports=function(e){const{newFiles:t,allowNewUpload:i,isUploadInProgress:s,isAllPaused:S,resumableUploads:k,error:P,hideUploadButton:C,hidePauseResumeButton:x,hideCancelButton:A,hideRetryButton:O,recoveredState:T,uploadState:E,totalProgress:F,files:M,supportsUploadProgress:D,hideAfterFinish:R,isSomeGhost:U,isTargetDOMEl:I,doneButtonHandler:N,isUploadStarted:B,i18n:L,startUpload:$,uppy:j,isAllComplete:z,showProgressDetails:H,numUploads:V,complete:W,totalSize:q,totalETA:Y,totalUploadedSize:X}=e;const K=function(){switch(E){case w:case y:{const e=o(M);return"determinate"===e.mode?100*e.value:F}case g:return null;case b:return D?F:null;default:return F}}(),G=function(){if(T)return!1;switch(E){case v:return C||0===t;case _:return R;default:return!1}}(),Q=null!=K?K:100,J=!P&&t&&!s&&!S&&i&&!C,Z=!A&&E!==v&&E!==_,ee=k&&!x&&E===b,te=P&&!z&&!O,ie=N&&E===_,re=n("uppy-StatusBar-progress",{"is-indeterminate":function(){switch(E){case w:case y:{const{mode:e}=o(M);return"indeterminate"===e}case b:return!D;default:return!1}}()}),ne=n({"uppy-Root":I},"uppy-StatusBar",`is-${E}`,{"has-ghosts":U});return r("div",{className:ne,"aria-hidden":G},r("div",{className:re,style:{width:`${Q}%`},role:"progressbar","aria-label":`${Q}%`,"aria-valuetext":`${Q}%`,"aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":K}),(()=>{switch(E){case y:case w:return r(p,{progress:o(M)});case _:return r(m,{i18n:L});case g:return r(d,{error:P,i18n:L,numUploads:V,complete:W});case b:return r(f,{i18n:L,supportsUploadProgress:D,totalProgress:F,showProgressDetails:H,isUploadStarted:B,isAllComplete:z,isAllPaused:S,newFiles:t,numUploads:V,complete:W,totalUploadedSize:X,totalSize:q,totalETA:Y,startUpload:$});default:return null}})(),r("div",{className:"uppy-StatusBar-actions"},T||J?r(a,{newFiles:t,isUploadStarted:B,recoveredState:T,i18n:L,isSomeGhost:U,startUpload:$,uploadState:E}):null,te?r(l,{i18n:L,uppy:j}):null,ee?r(c,{isAllPaused:S,i18n:L,isAllComplete:z,resumableUploads:k,uppy:j}):null,Z?r(u,{i18n:L,uppy:j}):null,ie?r(h,{i18n:L,doneButtonHandler:N}):null))}},3242:e=>{"use strict";e.exports={STATE_ERROR:"error",STATE_WAITING:"waiting",STATE_PREPROCESSING:"preprocessing",STATE_UPLOADING:"uploading",STATE_POSTPROCESSING:"postprocessing",STATE_COMPLETE:"complete"}},1881:e=>{"use strict";e.exports=function(e){const t=[];let i,r;for(const{progress:n}of Object.values(e)){const{preprocess:e,postprocess:s}=n;null==r&&(e||s)&&({mode:i,message:r}=e||s),"determinate"===(null==e?void 0:e.mode)&&t.push(e.value),"determinate"===(null==s?void 0:s.mode)&&t.push(s.value)}return{mode:i,message:r,value:t.reduce(((e,i)=>e+i/t.length),0)}}},3215:(e,t,i)=>{"use strict";var r,n;const{UIPlugin:s}=i(9429),o=i(522),a=i(9599),l=i(8958),u=i(3242),c=i(858),h=i(2658);function p(e,t,i,r){if(e&&!t)return u.STATE_ERROR;if(t)return u.STATE_COMPLETE;if(i)return u.STATE_WAITING;let n=u.STATE_WAITING;const s=Object.keys(r);for(let e=0;e<s.length;e++){const{progress:t}=r[s[e]];if(t.uploadStarted&&!t.uploadComplete)return u.STATE_UPLOADING;t.preprocess&&n!==u.STATE_UPLOADING&&(n=u.STATE_PREPROCESSING),t.postprocess&&n!==u.STATE_UPLOADING&&n!==u.STATE_PREPROCESSING&&(n=u.STATE_POSTPROCESSING)}return n}e.exports=(n=r=class extends s{constructor(e,t){super(e,t),this.startUpload=()=>{const{recoveredState:e}=this.uppy.getState();if(!e)return this.uppy.upload().catch((()=>{}));this.uppy.emit("restore-confirmed")},this.id=this.opts.id||"StatusBar",this.title="StatusBar",this.type="progressindicator",this.defaultLocale=h;this.opts={target:"body",hideUploadButton:!1,hideRetryButton:!1,hidePauseResumeButton:!1,hideCancelButton:!1,showProgressDetails:!1,hideAfterFinish:!0,doneButtonHandler:null,...t},this.i18nInit(),this.render=this.render.bind(this),this.install=this.install.bind(this)}render(e){const{capabilities:t,files:i,allowNewUpload:r,totalProgress:n,error:s,recoveredState:l}=e,{newFiles:u,startedFiles:h,completeFiles:d,inProgressNotPausedFiles:f,isUploadStarted:m,isAllComplete:g,isAllErrored:v,isAllPaused:y,isUploadInProgress:b,isSomeGhost:w}=this.uppy.getObjectOfFilesPerState(),_=l?Object.values(i):u,S=function(e){const t=function(e){let t=0;return e.forEach((e=>{t+=o(e.progress)})),t}(e);if(0===t)return 0;const i=e.reduce(((e,t)=>e+a(t.progress)),0);return Math.round(i/t*10)/10}(f),k=!!t.resumableUploads,P=!1!==t.uploadProgress;let C=0,x=0;return h.forEach((e=>{C+=e.progress.bytesTotal||0,x+=e.progress.bytesUploaded||0})),c({error:s,uploadState:p(s,g,l,e.files||{}),allowNewUpload:r,totalProgress:n,totalSize:C,totalUploadedSize:x,isAllComplete:!1,isAllPaused:y,isAllErrored:v,isUploadStarted:m,isUploadInProgress:b,isSomeGhost:w,recoveredState:l,complete:d.length,newFiles:_.length,numUploads:h.length,totalETA:S,files:i,i18n:this.i18n,uppy:this.uppy,startUpload:this.startUpload,doneButtonHandler:this.opts.doneButtonHandler,resumableUploads:k,supportsUploadProgress:P,showProgressDetails:this.opts.showProgressDetails,hideUploadButton:this.opts.hideUploadButton,hideRetryButton:this.opts.hideRetryButton,hidePauseResumeButton:this.opts.hidePauseResumeButton,hideCancelButton:this.opts.hideCancelButton,hideAfterFinish:this.opts.hideAfterFinish,isTargetDOMEl:this.isTargetDOMEl})}onMount(){const e=this.el;l(e)||(e.dir="ltr")}install(){const{target:e}=this.opts;e&&this.mount(e,this)}uninstall(){this.unmount()}},r.VERSION="2.1.2",n)},2658:e=>{"use strict";e.exports={strings:{uploading:"Uploading",complete:"Complete",uploadFailed:"Upload failed",paused:"Paused",retry:"Retry",cancel:"Cancel",pause:"Pause",resume:"Resume",done:"Done",filesUploadedOfTotal:{0:"%{complete} of %{smart_count} file uploaded",1:"%{complete} of %{smart_count} files uploaded"},dataUploadedOfTotal:"%{complete} of %{total}",xTimeLeft:"%{time} left",uploadXFiles:{0:"Upload %{smart_count} file",1:"Upload %{smart_count} files"},uploadXNewFiles:{0:"Upload +%{smart_count} file",1:"Upload +%{smart_count} files"},upload:"Upload",retryUpload:"Retry upload",xMoreFilesAdded:{0:"%{smart_count} more file added",1:"%{smart_count} more files added"},showErrorDetails:"Show error details"}}},6273:e=>{"use strict";var t=0;function i(e){return"__private_"+t+++"_"+e}var r=i("publish");class n{constructor(){Object.defineProperty(this,r,{value:s}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const t={...this.state},i={...this.state,...e};this.state=i,function(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}(this,r)[r](t,i,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function s(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];this.callbacks.forEach((e=>{e(...t)}))}n.VERSION="2.0.3",e.exports=function(){return new n}},7753:(e,t,i)=>{"use strict";var r,n;const{UIPlugin:s}=i(9429),o=i(3517),a=i(6508),l=i(9373),u=i(7198),c=i(3107);e.exports=(n=r=class extends s{constructor(e,t){super(e,t),this.onFileAdded=e=>{!e.preview&&e.data&&l(e.type)&&!e.isRemote&&this.addToQueue(e.id)},this.onCancelRequest=e=>{const t=this.queue.indexOf(e.id);-1!==t&&this.queue.splice(t,1)},this.onFileRemoved=e=>{const t=this.queue.indexOf(e.id);-1!==t&&this.queue.splice(t,1),e.preview&&a(e.preview)&&URL.revokeObjectURL(e.preview)},this.onRestored=()=>{this.uppy.getFiles().filter((e=>e.isRestored)).forEach((e=>{e.preview&&!a(e.preview)||this.addToQueue(e.id)}))},this.waitUntilAllProcessed=e=>{e.forEach((e=>{const t=this.uppy.getFile(e);this.uppy.emit("preprocess-progress",t,{mode:"indeterminate",message:this.i18n("generatingThumbnails")})}));const t=()=>{e.forEach((e=>{const t=this.uppy.getFile(e);this.uppy.emit("preprocess-complete",t)}))};return new Promise((e=>{this.queueProcessing?this.uppy.once("thumbnail:all-generated",(()=>{t(),e()})):(t(),e())}))},this.type="modifier",this.id=this.opts.id||"ThumbnailGenerator",this.title="Thumbnail Generator",this.queue=[],this.queueProcessing=!1,this.defaultThumbnailDimension=200,this.thumbnailType=this.opts.thumbnailType||"image/jpeg",this.defaultLocale=c;if(this.opts={thumbnailWidth:null,thumbnailHeight:null,waitForThumbnailsBeforeUpload:!1,lazy:!1,...t},this.i18nInit(),this.opts.lazy&&this.opts.waitForThumbnailsBeforeUpload)throw new Error("ThumbnailGenerator: The `lazy` and `waitForThumbnailsBeforeUpload` options are mutually exclusive. Please ensure at most one of them is set to `true`.")}createThumbnail(e,t,i){const r=URL.createObjectURL(e.data),n=new Promise(((e,t)=>{const i=new Image;i.src=r,i.addEventListener("load",(()=>{URL.revokeObjectURL(r),e(i)})),i.addEventListener("error",(e=>{URL.revokeObjectURL(r),t(e.error||new Error("Could not create thumbnail"))}))})),s=u.rotation(e.data).catch((()=>1));return Promise.all([n,s]).then((e=>{let[r,n]=e;const s=this.getProportionalDimensions(r,t,i,n.deg),o=this.rotateImage(r,n),a=this.resizeImage(o,s.width,s.height);return this.canvasToBlob(a,this.thumbnailType,80)})).then((e=>URL.createObjectURL(e)))}getProportionalDimensions(e,t,i,r){let n=e.width/e.height;return 90!==r&&270!==r||(n=e.height/e.width),null!=t?{width:t,height:Math.round(t/n)}:null!=i?{width:Math.round(i*n),height:i}:{width:this.defaultThumbnailDimension,height:Math.round(this.defaultThumbnailDimension/n)}}protect(e){const t=e.width/e.height,i=5e6,r=4096;let n=Math.floor(Math.sqrt(i*t)),s=Math.floor(i/Math.sqrt(i*t));if(n>r&&(n=r,s=Math.round(n/t)),s>r&&(s=r,n=Math.round(t*s)),e.width>n){const t=document.createElement("canvas");t.width=n,t.height=s,t.getContext("2d").drawImage(e,0,0,n,s),e=t}return e}resizeImage(e,t,i){e=this.protect(e);let r=Math.ceil(Math.log2(e.width/t));r<1&&(r=1);let n=t*2**(r-1),s=i*2**(r-1);for(;r--;){const t=document.createElement("canvas");t.width=n,t.height=s,t.getContext("2d").drawImage(e,0,0,n,s),e=t,n=Math.round(n/2),s=Math.round(s/2)}return e}rotateImage(e,t){let i=e.width,r=e.height;90!==t.deg&&270!==t.deg||(i=e.height,r=e.width);const n=document.createElement("canvas");n.width=i,n.height=r;const s=n.getContext("2d");return s.translate(i/2,r/2),t.canvas&&(s.rotate(t.rad),s.scale(t.scaleX,t.scaleY)),s.drawImage(e,-e.width/2,-e.height/2,e.width,e.height),n}canvasToBlob(e,t,i){try{e.getContext("2d").getImageData(0,0,1,1)}catch(e){if(18===e.code)return Promise.reject(new Error("cannot read image, probably an svg with external resources"))}return e.toBlob?new Promise((r=>{e.toBlob(r,t,i)})).then((e=>{if(null===e)throw new Error("cannot read image, probably an svg with external resources");return e})):Promise.resolve().then((()=>o(e.toDataURL(t,i),{}))).then((e=>{if(null===e)throw new Error("could not extract blob, probably an old browser");return e}))}setPreviewURL(e,t){this.uppy.setFileState(e,{preview:t})}addToQueue(e){this.queue.push(e),!1===this.queueProcessing&&this.processQueue()}processQueue(){if(this.queueProcessing=!0,this.queue.length>0){const e=this.uppy.getFile(this.queue.shift());return e?this.requestThumbnail(e).catch((()=>{})).then((()=>this.processQueue())):void this.uppy.log("[ThumbnailGenerator] file was removed before a thumbnail could be generated, but not removed from the queue. This is probably a bug","error")}this.queueProcessing=!1,this.uppy.log("[ThumbnailGenerator] Emptied thumbnail queue"),this.uppy.emit("thumbnail:all-generated")}requestThumbnail(e){return l(e.type)&&!e.isRemote?this.createThumbnail(e,this.opts.thumbnailWidth,this.opts.thumbnailHeight).then((t=>{this.setPreviewURL(e.id,t),this.uppy.log(`[ThumbnailGenerator] Generated thumbnail for ${e.id}`),this.uppy.emit("thumbnail:generated",this.uppy.getFile(e.id),t)})).catch((t=>{this.uppy.log(`[ThumbnailGenerator] Failed thumbnail for ${e.id}:`,"warning"),this.uppy.log(t,"warning"),this.uppy.emit("thumbnail:error",this.uppy.getFile(e.id),t)})):Promise.resolve()}install(){this.uppy.on("file-removed",this.onFileRemoved),this.opts.lazy?(this.uppy.on("thumbnail:request",this.onFileAdded),this.uppy.on("thumbnail:cancel",this.onCancelRequest)):(this.uppy.on("file-added",this.onFileAdded),this.uppy.on("restored",this.onRestored)),this.opts.waitForThumbnailsBeforeUpload&&this.uppy.addPreProcessor(this.waitUntilAllProcessed)}uninstall(){this.uppy.off("file-removed",this.onFileRemoved),this.opts.lazy?(this.uppy.off("thumbnail:request",this.onFileAdded),this.uppy.off("thumbnail:cancel",this.onCancelRequest)):(this.uppy.off("file-added",this.onFileAdded),this.uppy.off("restored",this.onRestored)),this.opts.waitForThumbnailsBeforeUpload&&this.uppy.removePreProcessor(this.waitUntilAllProcessed)}},r.VERSION="2.0.6",n)},3107:e=>{"use strict";e.exports={strings:{generatingThumbnails:"Generating thumbnails..."}}},8692:(e,t)=>{"use strict";t.AbortController=globalThis.AbortController,t.AbortSignal=globalThis.AbortSignal,t.createAbortError=function(e){return void 0===e&&(e="Aborted"),new DOMException(e,"AbortError")}},8429:e=>{"use strict";var t,i;function r(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var n=0;function s(e){return"__private_"+n+++"_"+e}e.exports=(t=s("emitter"),i=s("events"),class{constructor(e){Object.defineProperty(this,t,{writable:!0,value:void 0}),Object.defineProperty(this,i,{writable:!0,value:[]}),r(this,t)[t]=e}on(e,n){return r(this,i)[i].push([e,n]),r(this,t)[t].on(e,n)}remove(){for(const[e,n]of r(this,i)[i].splice(0))r(this,t)[t].off(e,n)}})},9045:e=>{"use strict";e.exports=['a[href]:not([tabindex^="-"]):not([inert]):not([aria-hidden])','area[href]:not([tabindex^="-"]):not([inert]):not([aria-hidden])',"input:not([disabled]):not([inert]):not([aria-hidden])","select:not([disabled]):not([inert]):not([aria-hidden])","textarea:not([disabled]):not([inert]):not([aria-hidden])","button:not([disabled]):not([inert]):not([aria-hidden])",'iframe:not([tabindex^="-"]):not([inert]):not([aria-hidden])','object:not([tabindex^="-"]):not([inert]):not([aria-hidden])','embed:not([tabindex^="-"]):not([inert]):not([aria-hidden])','[contenteditable]:not([tabindex^="-"]):not([inert]):not([aria-hidden])','[tabindex]:not([tabindex^="-"]):not([inert]):not([aria-hidden])']},6311:e=>{"use strict";class t extends Error{constructor(e,t){void 0===t&&(t=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=e,this.isNetworkError=!0,this.request=t}}e.exports=t},8618:e=>{"use strict";function t(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var i=0;function r(e){return"__private_"+i+++"_"+e}function n(){return new Error("Cancelled")}var s=r("activeRequests"),o=r("queuedHandlers"),a=r("paused"),l=r("pauseTimer"),u=r("downLimit"),c=r("upperLimit"),h=r("rateLimitingTimer"),p=r("call"),d=r("queueNext"),f=r("next"),m=r("queue"),g=r("dequeue"),v=r("resume"),y=r("increaseLimit");function b(e){t(this,s)[s]+=1;let i,r=!1;try{i=e()}catch(e){throw t(this,s)[s]-=1,e}return{abort:()=>{r||(r=!0,t(this,s)[s]-=1,i(),t(this,d)[d]())},done:()=>{r||(r=!0,t(this,s)[s]-=1,t(this,d)[d]())}}}function w(){queueMicrotask((()=>t(this,f)[f]()))}function _(){if(t(this,a)[a]||t(this,s)[s]>=this.limit)return;if(0===t(this,o)[o].length)return;const e=t(this,o)[o].shift(),i=t(this,p)[p](e.fn);e.abort=i.abort,e.done=i.done}function S(e,i){void 0===i&&(i={});const r={fn:e,priority:i.priority||0,abort:()=>{t(this,g)[g](r)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},n=t(this,o)[o].findIndex((e=>r.priority>e.priority));return-1===n?t(this,o)[o].push(r):t(this,o)[o].splice(n,0,r),r}function k(e){const i=t(this,o)[o].indexOf(e);-1!==i&&t(this,o)[o].splice(i,1)}e.exports={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,g,{value:k}),Object.defineProperty(this,m,{value:S}),Object.defineProperty(this,f,{value:_}),Object.defineProperty(this,d,{value:w}),Object.defineProperty(this,p,{value:b}),Object.defineProperty(this,s,{writable:!0,value:0}),Object.defineProperty(this,o,{writable:!0,value:[]}),Object.defineProperty(this,a,{writable:!0,value:!1}),Object.defineProperty(this,l,{writable:!0,value:void 0}),Object.defineProperty(this,u,{writable:!0,value:1}),Object.defineProperty(this,c,{writable:!0,value:void 0}),Object.defineProperty(this,h,{writable:!0,value:void 0}),Object.defineProperty(this,v,{writable:!0,value:()=>this.resume()}),Object.defineProperty(this,y,{writable:!0,value:()=>{if(t(this,a)[a])t(this,h)[h]=setTimeout(t(this,y)[y],0);else{t(this,u)[u]=this.limit,this.limit=Math.ceil((t(this,c)[c]+t(this,u)[u])/2);for(let e=t(this,u)[u];e<=this.limit;e++)t(this,d)[d]();t(this,c)[c]-t(this,u)[u]>3?t(this,h)[h]=setTimeout(t(this,y)[y],2e3):t(this,u)[u]=Math.floor(t(this,u)[u]/2)}}}),this.limit="number"!=typeof e||0===e?1/0:e}run(e,i){return!t(this,a)[a]&&t(this,s)[s]<this.limit?t(this,p)[p](e):t(this,m)[m](e,i)}wrapPromiseFunction(e,t){var i=this;return function(){for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];let a;const l=new Promise(((r,o)=>{a=i.run((()=>{let t,i;try{i=Promise.resolve(e(...s))}catch(e){i=Promise.reject(e)}return i.then((e=>{t?o(t):(a.done(),r(e))}),(e=>{t?o(t):(a.done(),o(e))})),()=>{t=n()}}),t)}));return l.abort=()=>{a.abort()},l}}resume(){t(this,a)[a]=!1,clearTimeout(t(this,l)[l]);for(let e=0;e<this.limit;e++)t(this,d)[d]()}pause(e){void 0===e&&(e=null),t(this,a)[a]=!0,clearTimeout(t(this,l)[l]),null!=e&&(t(this,l)[l]=setTimeout(t(this,v)[v],e))}rateLimit(e){clearTimeout(t(this,h)[h]),this.pause(e),this.limit>1&&Number.isFinite(this.limit)&&(t(this,c)[c]=this.limit-1,this.limit=t(this,u)[u],t(this,h)[h]=setTimeout(t(this,y)[y],e))}get isPaused(){return t(this,a)[a]}},internalRateLimitedQueue:Symbol("__queue")}},3363:(e,t,i)=>{"use strict";var r;function n(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var s=0;function o(e){return"__private_"+s+++"_"+e}const a=i(4114);function l(e,t,i){const r=[];return e.forEach((e=>"string"!=typeof e?r.push(e):t[Symbol.split](e).forEach(((e,t,n)=>{""!==e&&r.push(e),t<n.length-1&&r.push(i)})))),r}function u(e,t){const i=/\$/g;let r=[e];if(null==t)return r;for(const e of Object.keys(t))if("_"!==e){let n=t[e];"string"==typeof n&&(n=i[Symbol.replace](n,"$$$$")),r=l(r,new RegExp(`%\\{${e}\\}`,"g"),n)}return r}function c(e){if(null==e||!e.strings)return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}e.exports=(r=o("apply"),class{constructor(e){Object.defineProperty(this,r,{value:c}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(e)?e.forEach(n(this,r)[r],this):n(this,r)[r](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!a(this.locale.strings,e))throw new Error(`missing string: ${e}`);const i=this.locale.strings[e];if("object"==typeof i){if(t&&void 0!==t.smart_count){return u(i[this.locale.pluralize(t.smart_count)],t)}throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return u(i,t)}})},7326:e=>{"use strict";e.exports=function(e,t,i){return new Promise((r=>{e.toBlob(r,t,i)}))}},3517:e=>{"use strict";const t=/^data:([^/]+\/[^,;]+(?:[^,]*?))(;base64)?,([\s\S]*)$/;e.exports=function(e,i,r){var n,s;const o=t.exec(e),a=null!=(n=null!=(s=i.mimeType)?s:null==o?void 0:o[1])?n:"plain/text";let l;if(null!=o[2]){const e=atob(decodeURIComponent(o[3])),t=new Uint8Array(e.length);for(let i=0;i<e.length;i++)t[i]=e.charCodeAt(i);l=[t]}else l=[decodeURIComponent(o[3])];return r?new File(l,i.name||"",{type:a}):new Blob(l,{type:a})}},254:(e,t,i)=>{"use strict";const{createAbortError:r}=i(8692);e.exports=function(e,t){return new Promise(((i,n)=>{var s,o;if(null!=t&&null!=(s=t.signal)&&s.aborted)return n(r());const a=setTimeout((()=>{u(),i()}),e);function l(){clearTimeout(a),u(),n(r())}function u(){var e;null==t||null==(e=t.signal)||e.removeEventListener("abort",l)}null==t||null==(o=t.signal)||o.addEventListener("abort",l)}))}},7351:(e,t,i)=>{"use strict";const r=i(3096);e.exports=r((function(e,t,i){const{progress:r,bytesUploaded:n,bytesTotal:s}=t;r&&(e.uppy.log(`Upload progress: ${r}`),e.uppy.emit("upload-progress",i,{uploader:e,bytesUploaded:n,bytesTotal:s}))}),300,{leading:!0,trailing:!0})},6865:(e,t,i)=>{"use strict";const r=i(6311);e.exports=function(){return fetch(...arguments).catch((e=>{throw"AbortError"===e.name?e:new r(e)}))}},1147:(e,t,i)=>{"use strict";const r=i(5031);e.exports=function(e){if("string"==typeof e){const t=document.querySelectorAll(e);return 0===t.length?null:Array.from(t)}return"object"==typeof e&&r(e)?[e]:null}},2729:(e,t,i)=>{"use strict";const r=i(5031);e.exports=function(e,t){return void 0===t&&(t=document),"string"==typeof e?t.querySelector(e):r(e)?e:null}},8619:e=>{"use strict";function t(e){let t="";return e.replace(/[^A-Z0-9]/gi,(e=>(t+=`-${function(e){return e.charCodeAt(0).toString(32)}(e)}`,"/")))+t}e.exports=function(e){let i="uppy";return"string"==typeof e.name&&(i+=`-${t(e.name.toLowerCase())}`),void 0!==e.type&&(i+=`-${e.type}`),e.meta&&"string"==typeof e.meta.relativePath&&(i+=`-${t(e.meta.relativePath.toLowerCase())}`),void 0!==e.data.size&&(i+=`-${e.data.size}`),void 0!==e.data.lastModified&&(i+=`-${e.data.lastModified}`),i}},9599:e=>{"use strict";e.exports=function(e){return e.bytesTotal-e.bytesUploaded}},4031:(e,t,i)=>{"use strict";const r=i(9324),n=i(180);e.exports=function(e,t){var i;let{logDropError:s=(()=>{})}=void 0===t?{}:t;return null!=(i=e.items)&&i[0]&&"webkitGetAsEntry"in e.items[0]?r(e,s):n(e)}},180:(e,t,i)=>{"use strict";const r=i(6361);e.exports=function(e){const t=r(e.files);return Promise.resolve(t)}},9083:e=>{"use strict";e.exports=function e(t,i,r,n){let{onSuccess:s}=n;t.readEntries((n=>{const o=[...i,...n];n.length?setTimeout((()=>{e(t,o,r,{onSuccess:s})}),0):s(o)}),(e=>{r(e),s(i)}))}},2871:e=>{"use strict";e.exports=function(e){return e.fullPath&&e.fullPath!==`/${e.name}`?e.fullPath:null}},9324:(e,t,i)=>{"use strict";const r=i(6361),n=i(2871),s=i(9083);e.exports=function(e,t){const i=[],o=[],a=e=>new Promise((r=>{if(e.isFile)e.file((t=>{t.relativePath=n(e),i.push(t),r()}),(e=>{t(e),r()}));else if(e.isDirectory){const i=e.createReader();s(i,[],t,{onSuccess:e=>r(Promise.all(e.map(a)))})}}));return r(e.items).forEach((e=>{const t=e.webkitGetAsEntry();t&&o.push(a(t))})),Promise.all(o).then((()=>i))}},8744:e=>{"use strict";e.exports=function(e){const t=e.lastIndexOf(".");return-1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}}},9404:(e,t,i)=>{"use strict";const r=i(8744),n=i(5624);e.exports=function(e){var t;if(e.type)return e.type;const i=e.name?null==(t=r(e.name).extension)?void 0:t.toLowerCase():null;return i&&i in n?n[i]:"application/octet-stream"}},182:e=>{"use strict";const t={"audio/mp3":"mp3","audio/mp4":"mp4","audio/ogg":"ogg","audio/webm":"webm","image/gif":"gif","image/heic":"heic","image/heif":"heif","image/jpeg":"jpg","image/png":"png","image/svg+xml":"svg","video/mp4":"mp4","video/ogg":"ogv","video/quicktime":"mov","video/webm":"webm","video/x-matroska":"mkv","video/x-msvideo":"avi"};e.exports=function(e){return[e]=e.split(";",1),t[e]||null}},5313:e=>{"use strict";e.exports=function(e){const t=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(e)[1];return`${/^http:\/\//i.test(e)?"ws":"wss"}://${t}`}},522:e=>{"use strict";e.exports=function(e){if(!e.bytesUploaded)return 0;const t=Date.now()-e.uploadStarted;return e.bytesUploaded/(t/1e3)}},8958:e=>{"use strict";e.exports=function(e){for(var t;e&&!e.dir;)e=e.parentNode;return null==(t=e)?void 0:t.dir}},6770:e=>{"use strict";function t(e){return e<10?`0${e}`:e.toString()}e.exports=function(){const e=new Date;return`${t(e.getHours())}:${t(e.getMinutes())}:${t(e.getSeconds())}`}},4114:e=>{"use strict";e.exports=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},5031:e=>{"use strict";e.exports=function(e){return(null==e?void 0:e.nodeType)===Node.ELEMENT_NODE}},3754:e=>{"use strict";e.exports=function(){const e=document.body;return"draggable"in e&&"ondragstart"in e&&"ondrop"in e&&("FormData"in window&&"FileReader"in window)}},6508:e=>{"use strict";e.exports=function(e){return e.startsWith("blob:")}},9373:e=>{"use strict";e.exports=function(e){return!!e&&/^[^/]+\/(jpe?g|gif|png|svg|svg\+xml|bmp|webp|avif)$/.test(e)}},5624:e=>{"use strict";e.exports={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"}},1011:(e,t,i)=>{"use strict";const r=i(8920);e.exports=function(e){const t=r(e);return`${0===t.hours?"":`${t.hours}h`}${0===t.minutes?"":`${0===t.hours?t.minutes:` ${t.minutes.toString(10).padStart(2,"0")}`}m`}${0!==t.hours?"":`${0===t.minutes?t.seconds:` ${t.seconds.toString(10).padStart(2,"0")}`}s`}`}},8920:e=>{"use strict";e.exports=function(e){return{hours:Math.floor(e/3600)%24,minutes:Math.floor(e/60)%60,seconds:Math.floor(e%60)}}},6361:e=>{"use strict";e.exports=Array.from},469:e=>{"use strict";const t="...";e.exports=function(e,i){if(0===i)return"";if(e.length<=i)return e;if(i<=t.length+1)return`${e.slice(0,i-1)}…`;const r=i-t.length,n=Math.ceil(r/2),s=Math.floor(r/2);return e.slice(0,n)+t+e.slice(-s)}},8008:(e,t,i)=>{"use strict";t.__esModule=!0,t.default=void 0;var r,n=(r=i(3121))&&r.__esModule?r:{default:r},s=i(781),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var i=l(t);if(i&&i.has(e))return i.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var o=n?Object.getOwnPropertyDescriptor(e,s):null;o&&(o.get||o.set)?Object.defineProperty(r,s,o):r[s]=e[s]}r.default=e,i&&i.set(e,r);return r}(i(538)),a=i(7100);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,i=new WeakMap;return(l=function(e){return e?i:t})(e)}var u={data:()=>({plugin:{}}),props:{uppy:{required:!0},props:{type:Object},plugins:{type:Array},open:{type:Boolean,required:!0}},mounted(){this.installPlugin()},methods:{installPlugin(){const{uppy:e}=this,t={id:"vue:DashboardModal",plugins:this.plugins,...this.props,target:this.$refs.container};e.use(n.default,t),this.plugin=e.getPlugin(t.id),this.open&&this.plugin.openModal()},uninstallPlugin(e){e.removePlugin(this.plugin)}},beforeDestroy(){this.uninstallPlugin(this.uppy)},beforeUnmount(){this.uninstallPlugin(this.uppy)},watch:{uppy(e,t){t!==e&&(this.uninstallPlugin(t),this.installPlugin())},open(e,t){e&&!t&&this.plugin.openModal(),!e&&t&&this.plugin.closeModal()},props(e,t){(0,s.shallowEqualObjects)(e,t)||this.plugin.setOptions({...e})}},render(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];if((0,a.isVue2)(...t)){const[e]=t;return e("div",{ref:"container"})}return o.h("div",{ref:"container"})}};t.default=u},4862:(e,t,i)=>{"use strict";t.__esModule=!0,t.default=void 0;var r,n=(r=i(3121))&&r.__esModule?r:{default:r},s=i(781),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var i=l(t);if(i&&i.has(e))return i.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var o=n?Object.getOwnPropertyDescriptor(e,s):null;o&&(o.get||o.set)?Object.defineProperty(r,s,o):r[s]=e[s]}r.default=e,i&&i.set(e,r);return r}(i(538)),a=i(7100);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,i=new WeakMap;return(l=function(e){return e?i:t})(e)}var u={data:()=>({plugin:{}}),props:{uppy:{required:!0},props:{type:Object},plugins:{type:Array}},mounted(){this.installPlugin()},methods:{installPlugin(){const{uppy:e}=this,t={id:"vue:Dashboard",inline:!0,plugins:this.plugins,...this.props,target:this.$refs.container};e.use(n.default,t),this.plugin=e.getPlugin(t.id)},uninstallPlugin(e){e.removePlugin(this.plugin)}},beforeDestroy(){this.uninstallPlugin(this.uppy)},beforeUnmount(){this.uninstallPlugin(this.uppy)},watch:{uppy(e,t){t!==e&&(this.uninstallPlugin(t),this.installPlugin())},props(e,t){(0,s.shallowEqualObjects)(e,t)||this.plugin.setOptions({...e})}},render(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];if((0,a.isVue2)(...t)){const[e]=t;return e("div",{ref:"container"})}return o.h("div",{ref:"container"})}};t.default=u},5725:(e,t,i)=>{"use strict";t.__esModule=!0,t.default=void 0;var r,n=(r=i(6129))&&r.__esModule?r:{default:r},s=i(781),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var i=l(t);if(i&&i.has(e))return i.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var o=n?Object.getOwnPropertyDescriptor(e,s):null;o&&(o.get||o.set)?Object.defineProperty(r,s,o):r[s]=e[s]}r.default=e,i&&i.set(e,r);return r}(i(538)),a=i(7100);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,i=new WeakMap;return(l=function(e){return e?i:t})(e)}var u={data:()=>({plugin:{}}),props:{uppy:{required:!0},props:{type:Object}},mounted(){this.installPlugin()},methods:{installPlugin(){const{uppy:e}=this,t={id:"vue:DragDrop",...this.props,target:this.$refs.container};e.use(n.default,t),this.plugin=e.getPlugin(t.id)},uninstallPlugin(e){e.removePlugin(this.plugin)}},beforeDestroy(){this.uninstallPlugin(this.uppy)},beforeUnmount(){this.uninstallPlugin(this.uppy)},watch:{uppy(e,t){t!==e&&(this.uninstallPlugin(t),this.installPlugin())},props(e,t){(0,s.shallowEqualObjects)(e,t)||this.plugin.setOptions({...e})}},render(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];if((0,a.isVue2)(...t)){const[e]=t;return e("div",{ref:"container"})}return o.h("div",{ref:"container"})}};t.default=u},1471:(e,t,i)=>{"use strict";t.A=void 0;var r=n(i(4862));function n(e){return e&&e.__esModule?e:{default:e}}t.A=r.default,n(i(8008)).default,n(i(5725)).default,n(i(8986)).default,n(i(9105)).default},8986:(e,t,i)=>{"use strict";t.__esModule=!0,t.default=void 0;var r,n=(r=i(4749))&&r.__esModule?r:{default:r},s=i(781),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var i=l(t);if(i&&i.has(e))return i.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var o=n?Object.getOwnPropertyDescriptor(e,s):null;o&&(o.get||o.set)?Object.defineProperty(r,s,o):r[s]=e[s]}r.default=e,i&&i.set(e,r);return r}(i(538)),a=i(7100);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,i=new WeakMap;return(l=function(e){return e?i:t})(e)}var u={data:()=>({plugin:{}}),props:{uppy:{required:!0},props:{type:Object}},mounted(){this.installPlugin()},methods:{installPlugin(){const{uppy:e}=this,t={id:"vue:ProgressBar",...this.props,target:this.$refs.container};e.use(n.default,t),this.plugin=e.getPlugin(t.id)},uninstallPlugin(e){e.removePlugin(this.plugin)}},beforeDestroy(){this.uninstallPlugin(this.uppy)},watch:{uppy(e,t){t!==e&&(this.uninstallPlugin(t),this.installPlugin())},props(e,t){(0,s.shallowEqualObjects)(e,t)||this.plugin.setOptions({...e})}},render(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];if((0,a.isVue2)(...t)){const[e]=t;return e("div",{ref:"container"})}return o.h("div",{ref:"container"})}};t.default=u},9105:(e,t,i)=>{"use strict";t.__esModule=!0,t.default=void 0;var r,n=(r=i(3215))&&r.__esModule?r:{default:r},s=i(781),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var i=l(t);if(i&&i.has(e))return i.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var o=n?Object.getOwnPropertyDescriptor(e,s):null;o&&(o.get||o.set)?Object.defineProperty(r,s,o):r[s]=e[s]}r.default=e,i&&i.set(e,r);return r}(i(538)),a=i(7100);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,i=new WeakMap;return(l=function(e){return e?i:t})(e)}var u={data:()=>({plugin:{}}),props:{uppy:{required:!0},props:{type:Object}},mounted(){this.installPlugin()},methods:{installPlugin(){const{uppy:e}=this,t={id:"vue:StatusBar",...this.props,target:this.$refs.container};e.use(n.default,t),this.plugin=e.getPlugin(t.id)},uninstallPlugin(e){e.removePlugin(this.plugin)}},beforeDestroy(){this.uninstallPlugin(this.uppy)},beforeUnmount(){this.uninstallPlugin(this.uppy)},watch:{uppy(e,t){t!==e&&(this.uninstallPlugin(t),this.installPlugin())},props(e,t){(0,s.shallowEqualObjects)(e,t)||this.plugin.setOptions({...e})}},render(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];if((0,a.isVue2)(...t)){const[e]=t;return e("div",{ref:"container"})}return o.h("div",{ref:"container"})}};t.default=u},7100:(e,t)=>{"use strict";t.__esModule=!0,t.isVue2=void 0;t.isVue2=function(){return arguments.length>0&&"function"==typeof(arguments.length<=0?void 0:arguments[0])}},1288:(e,t,i)=>{"use strict";const{h:r}=i(6400);e.exports=()=>r("svg",{"aria-hidden":"true",focusable:"false",fill:"#0097DC",width:"66",height:"55",viewBox:"0 0 66 55"},r("path",{d:"M57.3 8.433c4.59 0 8.1 3.51 8.1 8.1v29.7c0 4.59-3.51 8.1-8.1 8.1H8.7c-4.59 0-8.1-3.51-8.1-8.1v-29.7c0-4.59 3.51-8.1 8.1-8.1h9.45l4.59-7.02c.54-.54 1.35-1.08 2.16-1.08h16.2c.81 0 1.62.54 2.16 1.08l4.59 7.02h9.45zM33 14.64c-8.62 0-15.393 6.773-15.393 15.393 0 8.62 6.773 15.393 15.393 15.393 8.62 0 15.393-6.773 15.393-15.393 0-8.62-6.773-15.393-15.393-15.393zM33 40c-5.648 0-9.966-4.319-9.966-9.967 0-5.647 4.318-9.966 9.966-9.966s9.966 4.319 9.966 9.966C42.966 35.681 38.648 40 33 40z",fillRule:"evenodd"}))},8232:(e,t,i)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},r.apply(this,arguments)}const{h:n,Component:s}=i(6400),o=i(1592),a=i(4491),l=i(2494),u=i(9346),c=i(8416),h=i(6871);function p(e,t){return-1!==e.indexOf(t)}e.exports=class extends s{componentDidMount(){const{onFocus:e}=this.props;e()}componentWillUnmount(){const{onStop:e}=this.props;e()}render(){const{src:e,recordedVideo:t,recording:i,modes:s,supportsRecording:d,videoSources:f,showVideoSourceDropdown:m,showRecordingLength:g,onSubmit:v,i18n:y,mirror:b,onSnapshot:w,onStartRecording:_,onStopRecording:S,onDiscardRecordedVideo:k,recordingLengthSeconds:P}=this.props,C=!!t,x=!C&&d&&(p(s,"video-only")||p(s,"audio-only")||p(s,"video-audio")),A=!C&&p(s,"picture"),O=d&&g&&!C,T=m&&f&&f.length>1,E={playsinline:!0};return t?(E.muted=!1,E.controls=!0,E.src=t,this.videoElement&&(this.videoElement.srcObject=void 0)):(E.muted=!0,E.autoplay=!0,E.srcObject=e),n("div",{className:"uppy uppy-Webcam-container"},n("div",{className:"uppy-Webcam-videoContainer"},n("video",r({ref:e=>this.videoElement=e,className:"uppy-Webcam-video  "+(b?"uppy-Webcam-video--mirrored":"")},E))),n("div",{className:"uppy-Webcam-footer"},n("div",{className:"uppy-Webcam-videoSourceContainer"},T?u(this.props):null),n("div",{className:"uppy-Webcam-buttonContainer"},A&&n(o,{onSnapshot:w,i18n:y}),x&&n(a,{recording:i,onStartRecording:_,onStopRecording:S,i18n:y}),C&&n(c,{onSubmit:v,i18n:y}),C&&n(h,{onDiscard:k,i18n:y})),n("div",{className:"uppy-Webcam-recordingLength"},O&&n(l,{recordingLengthSeconds:P,i18n:y}))))}}},6871:(e,t,i)=>{"use strict";const{h:r}=i(6400);e.exports=function(e){let{onDiscard:t,i18n:i}=e;return r("button",{className:"uppy-u-reset uppy-c-btn uppy-Webcam-button uppy-Webcam-button--discard",type:"button",title:i("discardRecordedFile"),"aria-label":i("discardRecordedFile"),onClick:t,"data-uppy-super-focusable":!0},r("svg",{width:"13",height:"13",viewBox:"0 0 13 13",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",className:"uppy-c-icon"},r("g",{fill:"#FFF",fillRule:"evenodd"},r("path",{d:"M.496 11.367L11.103.76l1.414 1.414L1.911 12.781z"}),r("path",{d:"M11.104 12.782L.497 2.175 1.911.76l10.607 10.606z"}))))}},9366:(e,t,i)=>{"use strict";const{h:r}=i(6400);e.exports=e=>r("div",{className:"uppy-Webcam-permissons"},r("div",{className:"uppy-Webcam-permissonsIcon"},e.icon()),r("h1",{className:"uppy-Webcam-title"},e.hasCamera?e.i18n("allowAccessTitle"):e.i18n("noCameraTitle")),r("p",null,e.hasCamera?e.i18n("allowAccessDescription"):e.i18n("noCameraDescription")))},4491:(e,t,i)=>{"use strict";const{h:r}=i(6400);e.exports=function(e){let{recording:t,onStartRecording:i,onStopRecording:n,i18n:s}=e;return t?r("button",{className:"uppy-u-reset uppy-c-btn uppy-Webcam-button",type:"button",title:s("stopRecording"),"aria-label":s("stopRecording"),onClick:n,"data-uppy-super-focusable":!0},r("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"100",height:"100",viewBox:"0 0 100 100"},r("rect",{x:"15",y:"15",width:"70",height:"70"}))):r("button",{className:"uppy-u-reset uppy-c-btn uppy-Webcam-button",type:"button",title:s("startRecording"),"aria-label":s("startRecording"),onClick:i,"data-uppy-super-focusable":!0},r("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"100",height:"100",viewBox:"0 0 100 100"},r("circle",{cx:"50",cy:"50",r:"40"})))}},2494:(e,t,i)=>{"use strict";const{h:r}=i(6400),n=i(5447);e.exports=function(e){let{recordingLengthSeconds:t,i18n:i}=e;const s=n(t);return r("span",{"aria-label":i("recordingLength",{recording_length:s})},s)}},1592:(e,t,i)=>{"use strict";const{h:r}=i(6400),n=i(1288);e.exports=e=>{let{onSnapshot:t,i18n:i}=e;return r("button",{className:"uppy-u-reset uppy-c-btn uppy-Webcam-button uppy-Webcam-button--picture",type:"button",title:i("takePicture"),"aria-label":i("takePicture"),onClick:t,"data-uppy-super-focusable":!0},n())}},8416:(e,t,i)=>{"use strict";const{h:r}=i(6400);e.exports=function(e){let{onSubmit:t,i18n:i}=e;return r("button",{className:"uppy-u-reset uppy-c-btn uppy-Webcam-button uppy-Webcam-button--submit",type:"button",title:i("submitRecordedFile"),"aria-label":i("submitRecordedFile"),onClick:t,"data-uppy-super-focusable":!0},r("svg",{width:"12",height:"9",viewBox:"0 0 12 9",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",className:"uppy-c-icon"},r("path",{fill:"#fff",fillRule:"nonzero",d:"M10.66 0L12 1.31 4.136 9 0 4.956l1.34-1.31L4.136 6.38z"})))}},9346:(e,t,i)=>{"use strict";const{h:r}=i(6400);e.exports=e=>{let{currentDeviceId:t,videoSources:i,onChangeVideoSource:n}=e;return r("div",{className:"uppy-Webcam-videoSource"},r("select",{className:"uppy-u-reset uppy-Webcam-videoSource-select",onChange:e=>{n(e.target.value)}},i.map((e=>r("option",{key:e.deviceId,value:e.deviceId,selected:e.deviceId===t},e.label)))))}},5447:e=>{"use strict";e.exports=function(e){return`${Math.floor(e/60)}:${String(e%60).padStart(2,0)}`}},9189:(e,t,i)=>{"use strict";var r,n,s;function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},o.apply(this,arguments)}function a(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var l=0;function u(e){return"__private_"+l+++"_"+e}const{h:c}=i(6400),{UIPlugin:h}=i(9429),p=i(182),d=i(5624),f=i(7326),m=i(5109),g=i(1288),v=i(8232),y=i(9366),b=i(7352);function w(e){return"."===e[0]?d[e.slice(1)]:e}function _(e){return/^video\/[^*]+$/.test(e)}function S(e){return/^image\/[^*]+$/.test(e)}e.exports=(n=u("enableMirror"),s=r=class extends h{constructor(e,t){super(e,t),Object.defineProperty(this,n,{writable:!0,value:void 0}),this.mediaDevices=navigator.mediaDevices,this.supportsUserMedia=!!this.mediaDevices,this.protocol=location.protocol.match(/https/i)?"https":"http",this.id=this.opts.id||"Webcam",this.type="acquirer",this.capturedMediaFile=null,this.icon=()=>c("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},c("g",{fill:"none",fillRule:"evenodd"},c("rect",{className:"uppy-ProviderIconBg",fill:"#03BFEF",width:"32",height:"32",rx:"16"}),c("path",{d:"M22 11c1.133 0 2 .867 2 2v7.333c0 1.134-.867 2-2 2H10c-1.133 0-2-.866-2-2V13c0-1.133.867-2 2-2h2.333l1.134-1.733C13.6 9.133 13.8 9 14 9h4c.2 0 .4.133.533.267L19.667 11H22zm-6 1.533a3.764 3.764 0 0 0-3.8 3.8c0 2.129 1.672 3.801 3.8 3.801s3.8-1.672 3.8-3.8c0-2.13-1.672-3.801-3.8-3.801zm0 6.261c-1.395 0-2.46-1.066-2.46-2.46 0-1.395 1.065-2.461 2.46-2.461s2.46 1.066 2.46 2.46c0 1.395-1.065 2.461-2.46 2.461z",fill:"#FFF",fillRule:"nonzero"}))),this.defaultLocale=b;const i={onBeforeSnapshot:()=>Promise.resolve(),countdown:!1,modes:["video-audio","video-only","audio-only","picture"],mirror:!0,showVideoSourceDropdown:!1,facingMode:"user",preferredImageMimeType:null,preferredVideoMimeType:null,showRecordingLength:!1};this.opts={...i,...t},this.i18nInit(),this.title=this.i18n("pluginNameCamera"),a(this,n)[n]=this.opts.mirror,this.install=this.install.bind(this),this.setPluginState=this.setPluginState.bind(this),this.render=this.render.bind(this),this.start=this.start.bind(this),this.stop=this.stop.bind(this),this.takeSnapshot=this.takeSnapshot.bind(this),this.startRecording=this.startRecording.bind(this),this.stopRecording=this.stopRecording.bind(this),this.discardRecordedVideo=this.discardRecordedVideo.bind(this),this.submit=this.submit.bind(this),this.oneTwoThreeSmile=this.oneTwoThreeSmile.bind(this),this.focus=this.focus.bind(this),this.changeVideoSource=this.changeVideoSource.bind(this),this.webcamActive=!1,this.opts.countdown&&(this.opts.onBeforeSnapshot=this.oneTwoThreeSmile),this.setPluginState({hasCamera:!1,cameraReady:!1,cameraError:null,recordingLengthSeconds:0,videoSources:[],currentDeviceId:null})}setOptions(e){super.setOptions({...e,videoConstraints:{...this.opts.videoConstraints,...null==e?void 0:e.videoConstraints}})}hasCameraCheck(){return this.mediaDevices?this.mediaDevices.enumerateDevices().then((e=>e.some((e=>"videoinput"===e.kind)))):Promise.resolve(!1)}isAudioOnly(){return 1===this.opts.modes.length&&"audio-only"===this.opts.modes[0]}getConstraints(e){void 0===e&&(e=null);const t=-1!==this.opts.modes.indexOf("video-audio")||-1!==this.opts.modes.indexOf("audio-only"),i=!this.isAudioOnly()&&(-1!==this.opts.modes.indexOf("video-audio")||-1!==this.opts.modes.indexOf("video-only")||-1!==this.opts.modes.indexOf("picture")),r={...this.opts.videoConstraints||{facingMode:this.opts.facingMode},...e?{deviceId:e,facingMode:null}:{}};return{audio:t,video:!!i&&r}}start(e){if(void 0===e&&(e=null),!this.supportsUserMedia)return Promise.reject(new Error("Webcam access not supported"));this.webcamActive=!0,this.opts.mirror&&(a(this,n)[n]=!0);const t=this.getConstraints(e&&e.deviceId?e.deviceId:null);this.hasCameraCheck().then((i=>(this.setPluginState({hasCamera:i}),this.mediaDevices.getUserMedia(t).then((t=>{this.stream=t;let i=null;const r=this.isAudioOnly()?t.getAudioTracks():t.getVideoTracks();e&&e.deviceId?r.forEach((t=>{t.getSettings().deviceId===e.deviceId&&(i=t.getSettings().deviceId)})):i=r[0].getSettings().deviceId,this.updateVideoSources(),this.setPluginState({currentDeviceId:i,cameraReady:!0})})).catch((e=>{this.setPluginState({cameraReady:!1,cameraError:e}),this.uppy.info(e.message,"error")})))))}getMediaRecorderOptions(){const e={};if(MediaRecorder.isTypeSupported){const{restrictions:t}=this.uppy.opts;let i=[];this.opts.preferredVideoMimeType?i=[this.opts.preferredVideoMimeType]:t.allowedFileTypes&&(i=t.allowedFileTypes.map(w).filter(_));const r=e=>MediaRecorder.isTypeSupported(e)&&p(e),n=i.filter(r);n.length>0&&(e.mimeType=n[0])}return e}startRecording(){this.recorder=new MediaRecorder(this.stream,this.getMediaRecorderOptions()),this.recordingChunks=[];let e=!1;this.recorder.addEventListener("dataavailable",(t=>{this.recordingChunks.push(t.data);const{restrictions:i}=this.uppy.opts;if(this.recordingChunks.length>1&&null!=i.maxFileSize&&!e){const t=this.recordingChunks.reduce(((e,t)=>e+t.size),0),r=3*((t-this.recordingChunks[0].size)/(this.recordingChunks.length-1));t>Math.max(0,i.maxFileSize-r)&&(e=!0,this.uppy.info(this.i18n("recordingStoppedMaxSize"),"warning",4e3),this.stopRecording())}})),this.recorder.start(500),this.opts.showRecordingLength&&(this.recordingLengthTimer=setInterval((()=>{const e=this.getPluginState().recordingLengthSeconds;this.setPluginState({recordingLengthSeconds:e+1})}),1e3)),this.setPluginState({isRecording:!0})}stopRecording(){return new Promise((e=>{this.recorder.addEventListener("stop",(()=>{e()})),this.recorder.stop(),this.opts.showRecordingLength&&(clearInterval(this.recordingLengthTimer),this.setPluginState({recordingLengthSeconds:0}))})).then((()=>(this.setPluginState({isRecording:!1}),this.getVideo()))).then((e=>{try{this.capturedMediaFile=e,this.setPluginState({recordedVideo:URL.createObjectURL(e.data)}),a(this,n)[n]=!1}catch(e){e.isRestriction||this.uppy.log(e)}})).then((()=>{this.recordingChunks=null,this.recorder=null}),(e=>{throw this.recordingChunks=null,this.recorder=null,e}))}discardRecordedVideo(){this.setPluginState({recordedVideo:null}),this.opts.mirror&&(a(this,n)[n]=!0),this.capturedMediaFile=null}submit(){try{this.capturedMediaFile&&this.uppy.addFile(this.capturedMediaFile)}catch(e){e.isRestriction||this.uppy.log(e,"error")}}async stop(){if(this.stream){const e=this.stream.getAudioTracks(),t=this.stream.getVideoTracks();e.concat(t).forEach((e=>e.stop()))}this.recorder&&await new Promise((e=>{this.recorder.addEventListener("stop",e,{once:!0}),this.recorder.stop(),this.opts.showRecordingLength&&clearInterval(this.recordingLengthTimer)})),this.recordingChunks=null,this.recorder=null,this.webcamActive=!1,this.stream=null,this.setPluginState({recordedVideo:null,isRecording:!1,recordingLengthSeconds:0})}getVideoElement(){return this.el.querySelector(".uppy-Webcam-video")}oneTwoThreeSmile(){return new Promise(((e,t)=>{let i=this.opts.countdown;const r=setInterval((()=>{if(!this.webcamActive)return clearInterval(r),this.captureInProgress=!1,t(new Error("Webcam is not active"));i>0?(this.uppy.info(`${i}...`,"warning",800),i--):(clearInterval(r),this.uppy.info(this.i18n("smile"),"success",1500),setTimeout((()=>e()),1500))}),1e3)}))}takeSnapshot(){this.captureInProgress||(this.captureInProgress=!0,this.opts.onBeforeSnapshot().catch((e=>{const t="object"==typeof e?e.message:e;return this.uppy.info(t,"error",5e3),Promise.reject(new Error(`onBeforeSnapshot: ${t}`))})).then((()=>this.getImage())).then((e=>{this.captureInProgress=!1;try{this.uppy.addFile(e)}catch(e){e.isRestriction||this.uppy.log(e)}}),(e=>{throw this.captureInProgress=!1,e})))}getImage(){const e=this.getVideoElement();if(!e)return Promise.reject(new Error("No video element found, likely due to the Webcam tab being closed."));const t=e.videoWidth,i=e.videoHeight,r=document.createElement("canvas");r.width=t,r.height=i;r.getContext("2d").drawImage(e,0,0);const{restrictions:n}=this.uppy.opts;let s=[];this.opts.preferredImageMimeType?s=[this.opts.preferredImageMimeType]:n.allowedFileTypes&&(s=n.allowedFileTypes.map(w).filter(S));const o=s[0]||"image/jpeg",a=p(o)||"jpg",l=`cam-${Date.now()}.${a}`;return f(r,o).then((e=>({source:this.id,name:l,data:new Blob([e],{type:o}),type:o})))}getVideo(){const e=this.recordingChunks.find((e=>{var t;return(null==(t=e.type)?void 0:t.length)>0})).type,t=p(e);if(!t)return Promise.reject(new Error(`Could not retrieve recording: Unsupported media type "${e}"`));const i=`webcam-${Date.now()}.${t}`,r=new Blob(this.recordingChunks,{type:e}),n={source:this.id,name:i,data:new Blob([r],{type:e}),type:e};return Promise.resolve(n)}focus(){this.opts.countdown&&setTimeout((()=>{this.uppy.info(this.i18n("smile"),"success",1500)}),1e3)}changeVideoSource(e){this.stop(),this.start({deviceId:e})}updateVideoSources(){this.mediaDevices.enumerateDevices().then((e=>{this.setPluginState({videoSources:e.filter((e=>"videoinput"===e.kind))})}))}render(){this.webcamActive||this.start();const e=this.getPluginState();return e.cameraReady&&e.hasCamera?c(v,o({},e,{onChangeVideoSource:this.changeVideoSource,onSnapshot:this.takeSnapshot,onStartRecording:this.startRecording,onStopRecording:this.stopRecording,onDiscardRecordedVideo:this.discardRecordedVideo,onSubmit:this.submit,onFocus:this.focus,onStop:this.stop,i18n:this.i18n,modes:this.opts.modes,showRecordingLength:this.opts.showRecordingLength,showVideoSourceDropdown:this.opts.showVideoSourceDropdown,supportsRecording:m(),recording:e.isRecording,mirror:a(this,n)[n],src:this.stream})):c(y,{icon:g,i18n:this.i18n,hasCamera:e.hasCamera})}install(){this.setPluginState({cameraReady:!1,recordingLengthSeconds:0});const{target:e}=this.opts;e&&this.mount(e,this),this.mediaDevices&&(this.updateVideoSources(),this.mediaDevices.ondevicechange=()=>{if(this.updateVideoSources(),this.stream){let e=!0;const{videoSources:t,currentDeviceId:i}=this.getPluginState();t.forEach((t=>{i===t.deviceId&&(e=!1)})),e&&(this.stop(),this.start())}})}uninstall(){this.stop(),this.unmount()}onUnmount(){this.stop()}},r.VERSION="2.0.5",s)},7352:e=>{"use strict";e.exports={strings:{pluginNameCamera:"Camera",noCameraTitle:"Camera Not Available",noCameraDescription:"In order to take pictures or record video, please connect a camera device",recordingStoppedMaxSize:"Recording stopped because the file size is about to exceed the limit",submitRecordedFile:"Submit recorded file",discardRecordedFile:"Discard recorded file",smile:"Smile!",takePicture:"Take a picture",startRecording:"Begin video recording",stopRecording:"Stop video recording",recordingLength:"Recording length %{recording_length}",allowAccessTitle:"Please allow access to your camera",allowAccessDescription:"In order to take pictures or record video with your camera, please allow camera access for this site."}}},5109:e=>{"use strict";e.exports=function(){return"function"==typeof MediaRecorder&&!!MediaRecorder.prototype&&"function"==typeof MediaRecorder.prototype.start}},9523:(e,t,i)=>{Nova.booting((function(e,t,r){e.component("nova-s3-multipart-upload",i(1058).Z)}))},9742:(e,t)=>{"use strict";t.byteLength=function(e){var t=l(e),i=t[0],r=t[1];return 3*(i+r)/4-r},t.toByteArray=function(e){var t,i,s=l(e),o=s[0],a=s[1],u=new n(function(e,t,i){return 3*(t+i)/4-i}(0,o,a)),c=0,h=a>0?o-4:o;for(i=0;i<h;i+=4)t=r[e.charCodeAt(i)]<<18|r[e.charCodeAt(i+1)]<<12|r[e.charCodeAt(i+2)]<<6|r[e.charCodeAt(i+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;2===a&&(t=r[e.charCodeAt(i)]<<2|r[e.charCodeAt(i+1)]>>4,u[c++]=255&t);1===a&&(t=r[e.charCodeAt(i)]<<10|r[e.charCodeAt(i+1)]<<4|r[e.charCodeAt(i+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t);return u},t.fromByteArray=function(e){for(var t,r=e.length,n=r%3,s=[],o=16383,a=0,l=r-n;a<l;a+=o)s.push(u(e,a,a+o>l?l:a+o));1===n?(t=e[r-1],s.push(i[t>>2]+i[t<<4&63]+"==")):2===n&&(t=(e[r-2]<<8)+e[r-1],s.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"="));return s.join("")};for(var i=[],r=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,a=s.length;o<a;++o)i[o]=s[o],r[s.charCodeAt(o)]=o;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=e.indexOf("=");return-1===i&&(i=t),[i,i===t?0:4-i%4]}function u(e,t,r){for(var n,s,o=[],a=t;a<r;a+=3)n=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(i[(s=n)>>18&63]+i[s>>12&63]+i[s>>6&63]+i[63&s]);return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},8764:(e,t,i)=>{"use strict";var r=i(9742),n=i(645),s=i(5826);function o(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(o()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,i){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,i);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return h(this,e)}return u(this,e,t,i)}function u(e,t,i,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,i,r){if(t.byteLength,i<0||t.byteLength<i)throw new RangeError("'offset' is out of bounds");if(t.byteLength<i+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===i&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,i):new Uint8Array(t,i,r);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=p(e,t);return e}(e,t,i,r):"string"==typeof t?function(e,t,i){"string"==typeof i&&""!==i||(i="utf8");if(!l.isEncoding(i))throw new TypeError('"encoding" must be a valid string encoding');var r=0|f(t,i),n=(e=a(e,r)).write(t,i);n!==r&&(e=e.slice(0,n));return e}(e,t,i):function(e,t){if(l.isBuffer(t)){var i=0|d(t.length);return 0===(e=a(e,i)).length||t.copy(e,0,0,i),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?a(e,0):p(e,t);if("Buffer"===t.type&&s(t.data))return p(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function h(e,t){if(c(t),e=a(e,t<0?0:0|d(t)),!l.TYPED_ARRAY_SUPPORT)for(var i=0;i<t;++i)e[i]=0;return e}function p(e,t){var i=t.length<0?0:0|d(t.length);e=a(e,i);for(var r=0;r<i;r+=1)e[r]=255&t[r];return e}function d(e){if(e>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function f(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var i=e.length;if(0===i)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return j(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return z(e).length;default:if(r)return j(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,i){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return E(this,t,i);case"utf8":case"utf-8":return x(this,t,i);case"ascii":return O(this,t,i);case"latin1":case"binary":return T(this,t,i);case"base64":return C(this,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,t,i);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,i){var r=e[t];e[t]=e[i],e[i]=r}function v(e,t,i,r,n){if(0===e.length)return-1;if("string"==typeof i?(r=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=n?0:e.length-1),i<0&&(i=e.length+i),i>=e.length){if(n)return-1;i=e.length-1}else if(i<0){if(!n)return-1;i=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:y(e,t,i,r,n);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,i):Uint8Array.prototype.lastIndexOf.call(e,t,i):y(e,[t],i,r,n);throw new TypeError("val must be string, number or Buffer")}function y(e,t,i,r,n){var s,o=1,a=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,a/=2,l/=2,i/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(n){var c=-1;for(s=i;s<a;s++)if(u(e,s)===u(t,-1===c?0:s-c)){if(-1===c&&(c=s),s-c+1===l)return c*o}else-1!==c&&(s-=s-c),c=-1}else for(i+l>a&&(i=a-l),s=i;s>=0;s--){for(var h=!0,p=0;p<l;p++)if(u(e,s+p)!==u(t,p)){h=!1;break}if(h)return s}return-1}function b(e,t,i,r){i=Number(i)||0;var n=e.length-i;r?(r=Number(r))>n&&(r=n):r=n;var s=t.length;if(s%2!=0)throw new TypeError("Invalid hex string");r>s/2&&(r=s/2);for(var o=0;o<r;++o){var a=parseInt(t.substr(2*o,2),16);if(isNaN(a))return o;e[i+o]=a}return o}function w(e,t,i,r){return H(j(t,e.length-i),e,i,r)}function _(e,t,i,r){return H(function(e){for(var t=[],i=0;i<e.length;++i)t.push(255&e.charCodeAt(i));return t}(t),e,i,r)}function S(e,t,i,r){return _(e,t,i,r)}function k(e,t,i,r){return H(z(t),e,i,r)}function P(e,t,i,r){return H(function(e,t){for(var i,r,n,s=[],o=0;o<e.length&&!((t-=2)<0);++o)r=(i=e.charCodeAt(o))>>8,n=i%256,s.push(n),s.push(r);return s}(t,e.length-i),e,i,r)}function C(e,t,i){return 0===t&&i===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,i))}function x(e,t,i){i=Math.min(e.length,i);for(var r=[],n=t;n<i;){var s,o,a,l,u=e[n],c=null,h=u>239?4:u>223?3:u>191?2:1;if(n+h<=i)switch(h){case 1:u<128&&(c=u);break;case 2:128==(192&(s=e[n+1]))&&(l=(31&u)<<6|63&s)>127&&(c=l);break;case 3:s=e[n+1],o=e[n+2],128==(192&s)&&128==(192&o)&&(l=(15&u)<<12|(63&s)<<6|63&o)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:s=e[n+1],o=e[n+2],a=e[n+3],128==(192&s)&&128==(192&o)&&128==(192&a)&&(l=(15&u)<<18|(63&s)<<12|(63&o)<<6|63&a)>65535&&l<1114112&&(c=l)}null===c?(c=65533,h=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),n+=h}return function(e){var t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);var i="",r=0;for(;r<t;)i+=String.fromCharCode.apply(String,e.slice(r,r+=A));return i}(r)}t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==i.g.TYPED_ARRAY_SUPPORT?i.g.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=o(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,i){return u(null,e,t,i)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,i){return function(e,t,i,r){return c(t),t<=0?a(e,t):void 0!==i?"string"==typeof r?a(e,t).fill(i,r):a(e,t).fill(i):a(e,t)}(null,e,t,i)},l.allocUnsafe=function(e){return h(null,e)},l.allocUnsafeSlow=function(e){return h(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var i=e.length,r=t.length,n=0,s=Math.min(i,r);n<s;++n)if(e[n]!==t[n]){i=e[n],r=t[n];break}return i<r?-1:r<i?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!s(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var i;if(void 0===t)for(t=0,i=0;i<e.length;++i)t+=e[i].length;var r=l.allocUnsafe(t),n=0;for(i=0;i<e.length;++i){var o=e[i];if(!l.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,n),n+=o.length}return r},l.byteLength=f,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?x(this,0,e):m.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",i=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,i,r,n){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===i&&(i=e?e.length:0),void 0===r&&(r=0),void 0===n&&(n=this.length),t<0||i>e.length||r<0||n>this.length)throw new RangeError("out of range index");if(r>=n&&t>=i)return 0;if(r>=n)return-1;if(t>=i)return 1;if(this===e)return 0;for(var s=(n>>>=0)-(r>>>=0),o=(i>>>=0)-(t>>>=0),a=Math.min(s,o),u=this.slice(r,n),c=e.slice(t,i),h=0;h<a;++h)if(u[h]!==c[h]){s=u[h],o=c[h];break}return s<o?-1:o<s?1:0},l.prototype.includes=function(e,t,i){return-1!==this.indexOf(e,t,i)},l.prototype.indexOf=function(e,t,i){return v(this,e,t,i,!0)},l.prototype.lastIndexOf=function(e,t,i){return v(this,e,t,i,!1)},l.prototype.write=function(e,t,i,r){if(void 0===t)r="utf8",i=this.length,t=0;else if(void 0===i&&"string"==typeof t)r=t,i=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(i)?(i|=0,void 0===r&&(r="utf8")):(r=i,i=void 0)}var n=this.length-t;if((void 0===i||i>n)&&(i=n),e.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var s=!1;;)switch(r){case"hex":return b(this,e,t,i);case"utf8":case"utf-8":return w(this,e,t,i);case"ascii":return _(this,e,t,i);case"latin1":case"binary":return S(this,e,t,i);case"base64":return k(this,e,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,e,t,i);default:if(s)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),s=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function O(e,t,i){var r="";i=Math.min(e.length,i);for(var n=t;n<i;++n)r+=String.fromCharCode(127&e[n]);return r}function T(e,t,i){var r="";i=Math.min(e.length,i);for(var n=t;n<i;++n)r+=String.fromCharCode(e[n]);return r}function E(e,t,i){var r=e.length;(!t||t<0)&&(t=0),(!i||i<0||i>r)&&(i=r);for(var n="",s=t;s<i;++s)n+=$(e[s]);return n}function F(e,t,i){for(var r=e.slice(t,i),n="",s=0;s<r.length;s+=2)n+=String.fromCharCode(r[s]+256*r[s+1]);return n}function M(e,t,i){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>i)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,i,r,n,s){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||t<s)throw new RangeError('"value" argument is out of bounds');if(i+r>e.length)throw new RangeError("Index out of range")}function R(e,t,i,r){t<0&&(t=65535+t+1);for(var n=0,s=Math.min(e.length-i,2);n<s;++n)e[i+n]=(t&255<<8*(r?n:1-n))>>>8*(r?n:1-n)}function U(e,t,i,r){t<0&&(t=4294967295+t+1);for(var n=0,s=Math.min(e.length-i,4);n<s;++n)e[i+n]=t>>>8*(r?n:3-n)&255}function I(e,t,i,r,n,s){if(i+r>e.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function N(e,t,i,r,s){return s||I(e,0,i,4),n.write(e,t,i,r,23,4),i+4}function B(e,t,i,r,s){return s||I(e,0,i,8),n.write(e,t,i,r,52,8),i+8}l.prototype.slice=function(e,t){var i,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(i=this.subarray(e,t)).__proto__=l.prototype;else{var n=t-e;i=new l(n,void 0);for(var s=0;s<n;++s)i[s]=this[s+e]}return i},l.prototype.readUIntLE=function(e,t,i){e|=0,t|=0,i||M(e,t,this.length);for(var r=this[e],n=1,s=0;++s<t&&(n*=256);)r+=this[e+s]*n;return r},l.prototype.readUIntBE=function(e,t,i){e|=0,t|=0,i||M(e,t,this.length);for(var r=this[e+--t],n=1;t>0&&(n*=256);)r+=this[e+--t]*n;return r},l.prototype.readUInt8=function(e,t){return t||M(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||M(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||M(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||M(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||M(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,i){e|=0,t|=0,i||M(e,t,this.length);for(var r=this[e],n=1,s=0;++s<t&&(n*=256);)r+=this[e+s]*n;return r>=(n*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,i){e|=0,t|=0,i||M(e,t,this.length);for(var r=t,n=1,s=this[e+--r];r>0&&(n*=256);)s+=this[e+--r]*n;return s>=(n*=128)&&(s-=Math.pow(2,8*t)),s},l.prototype.readInt8=function(e,t){return t||M(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||M(e,2,this.length);var i=this[e]|this[e+1]<<8;return 32768&i?4294901760|i:i},l.prototype.readInt16BE=function(e,t){t||M(e,2,this.length);var i=this[e+1]|this[e]<<8;return 32768&i?4294901760|i:i},l.prototype.readInt32LE=function(e,t){return t||M(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||M(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||M(e,4,this.length),n.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||M(e,4,this.length),n.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||M(e,8,this.length),n.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||M(e,8,this.length),n.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,i,r){(e=+e,t|=0,i|=0,r)||D(this,e,t,i,Math.pow(2,8*i)-1,0);var n=1,s=0;for(this[t]=255&e;++s<i&&(n*=256);)this[t+s]=e/n&255;return t+i},l.prototype.writeUIntBE=function(e,t,i,r){(e=+e,t|=0,i|=0,r)||D(this,e,t,i,Math.pow(2,8*i)-1,0);var n=i-1,s=1;for(this[t+n]=255&e;--n>=0&&(s*=256);)this[t+n]=e/s&255;return t+i},l.prototype.writeUInt8=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):U(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):U(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,i,r){if(e=+e,t|=0,!r){var n=Math.pow(2,8*i-1);D(this,e,t,i,n-1,-n)}var s=0,o=1,a=0;for(this[t]=255&e;++s<i&&(o*=256);)e<0&&0===a&&0!==this[t+s-1]&&(a=1),this[t+s]=(e/o>>0)-a&255;return t+i},l.prototype.writeIntBE=function(e,t,i,r){if(e=+e,t|=0,!r){var n=Math.pow(2,8*i-1);D(this,e,t,i,n-1,-n)}var s=i-1,o=1,a=0;for(this[t+s]=255&e;--s>=0&&(o*=256);)e<0&&0===a&&0!==this[t+s+1]&&(a=1),this[t+s]=(e/o>>0)-a&255;return t+i},l.prototype.writeInt8=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):U(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):U(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,i){return N(this,e,t,!0,i)},l.prototype.writeFloatBE=function(e,t,i){return N(this,e,t,!1,i)},l.prototype.writeDoubleLE=function(e,t,i){return B(this,e,t,!0,i)},l.prototype.writeDoubleBE=function(e,t,i){return B(this,e,t,!1,i)},l.prototype.copy=function(e,t,i,r){if(i||(i=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<i&&(r=i),r===i)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-i&&(r=e.length-t+i);var n,s=r-i;if(this===e&&i<t&&t<r)for(n=s-1;n>=0;--n)e[n+t]=this[n+i];else if(s<1e3||!l.TYPED_ARRAY_SUPPORT)for(n=0;n<s;++n)e[n+t]=this[n+i];else Uint8Array.prototype.set.call(e,this.subarray(i,i+s),t);return s},l.prototype.fill=function(e,t,i,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,i=this.length):"string"==typeof i&&(r=i,i=this.length),1===e.length){var n=e.charCodeAt(0);n<256&&(e=n)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;var s;if(t>>>=0,i=void 0===i?this.length:i>>>0,e||(e=0),"number"==typeof e)for(s=t;s<i;++s)this[s]=e;else{var o=l.isBuffer(e)?e:j(new l(e,r).toString()),a=o.length;for(s=0;s<i-t;++s)this[s+t]=o[s%a]}return this};var L=/[^+\/0-9A-Za-z-_]/g;function $(e){return e<16?"0"+e.toString(16):e.toString(16)}function j(e,t){var i;t=t||1/0;for(var r=e.length,n=null,s=[],o=0;o<r;++o){if((i=e.charCodeAt(o))>55295&&i<57344){if(!n){if(i>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&s.push(239,191,189);continue}n=i;continue}if(i<56320){(t-=3)>-1&&s.push(239,191,189),n=i;continue}i=65536+(n-55296<<10|i-56320)}else n&&(t-=3)>-1&&s.push(239,191,189);if(n=null,i<128){if((t-=1)<0)break;s.push(i)}else if(i<2048){if((t-=2)<0)break;s.push(i>>6|192,63&i|128)}else if(i<65536){if((t-=3)<0)break;s.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return s}function z(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(L,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,i,r){for(var n=0;n<r&&!(n+i>=t.length||n>=e.length);++n)t[n+i]=e[n];return n}},4184:(e,t)=>{var i;!function(){"use strict";var r={}.hasOwnProperty;function n(){for(var e=[],t=0;t<arguments.length;t++){var i=arguments[t];if(i){var s=typeof i;if("string"===s||"number"===s)e.push(i);else if(Array.isArray(i)){if(i.length){var o=n.apply(null,i);o&&e.push(o)}}else if("object"===s)if(i.toString===Object.prototype.toString)for(var a in i)r.call(i,a)&&i[a]&&e.push(a);else e.push(i.toString())}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):void 0===(i=function(){return n}.apply(t,[]))||(e.exports=i)}()},3129:function(e){e.exports=function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}function n(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function s(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,r)}return i}function o(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?s(Object(i),!0).forEach((function(t){n(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):s(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function a(e){return l(e)||u(e)||c(e)||p()}function l(e){if(Array.isArray(e))return h(e)}function u(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function c(e,t){if(e){if("string"==typeof e)return h(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?h(e,t):void 0}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,r=new Array(t);i<t;i++)r[i]=e[i];return r}function p(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var d="undefined"!=typeof window&&void 0!==window.document,f=d?window:{},m=!(!d||!f.document.documentElement)&&"ontouchstart"in f.document.documentElement,g=!!d&&"PointerEvent"in f,v="cropper",y="all",b="crop",w="move",_="zoom",S="e",k="w",P="s",C="n",x="ne",A="nw",O="se",T="sw",E="".concat(v,"-crop"),F="".concat(v,"-disabled"),M="".concat(v,"-hidden"),D="".concat(v,"-hide"),R="".concat(v,"-invisible"),U="".concat(v,"-modal"),I="".concat(v,"-move"),N="".concat(v,"Action"),B="".concat(v,"Preview"),L="crop",$="move",j="none",z="crop",H="cropend",V="cropmove",W="cropstart",q="dblclick",Y=m?"touchstart":"mousedown",X=m?"touchmove":"mousemove",K=m?"touchend touchcancel":"mouseup",G=g?"pointerdown":Y,Q=g?"pointermove":X,J=g?"pointerup pointercancel":K,Z="ready",ee="resize",te="wheel",ie="zoom",re="image/jpeg",ne=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,se=/^data:/,oe=/^data:image\/jpeg;base64,/,ae=/^img|canvas$/i,le={viewMode:0,dragMode:L,initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:200,minContainerHeight:100,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},ue='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>',ce=Number.isNaN||f.isNaN;function he(e){return"number"==typeof e&&!ce(e)}var pe=function(e){return e>0&&e<1/0};function de(e){return void 0===e}function fe(t){return"object"===e(t)&&null!==t}var me=Object.prototype.hasOwnProperty;function ge(e){if(!fe(e))return!1;try{var t=e.constructor,i=t.prototype;return t&&i&&me.call(i,"isPrototypeOf")}catch(e){return!1}}function ve(e){return"function"==typeof e}var ye=Array.prototype.slice;function be(e){return Array.from?Array.from(e):ye.call(e)}function we(e,t){return e&&ve(t)&&(Array.isArray(e)||he(e.length)?be(e).forEach((function(i,r){t.call(e,i,r,e)})):fe(e)&&Object.keys(e).forEach((function(i){t.call(e,e[i],i,e)}))),e}var _e=Object.assign||function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];return fe(e)&&i.length>0&&i.forEach((function(t){fe(t)&&Object.keys(t).forEach((function(i){e[i]=t[i]}))})),e},Se=/\.\d*(?:0|9){12}\d*$/;function ke(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e11;return Se.test(e)?Math.round(e*t)/t:e}var Pe=/^width|height|left|top|marginLeft|marginTop$/;function Ce(e,t){var i=e.style;we(t,(function(e,t){Pe.test(t)&&he(e)&&(e="".concat(e,"px")),i[t]=e}))}function xe(e,t){return e.classList?e.classList.contains(t):e.className.indexOf(t)>-1}function Ae(e,t){if(t)if(he(e.length))we(e,(function(e){Ae(e,t)}));else if(e.classList)e.classList.add(t);else{var i=e.className.trim();i?i.indexOf(t)<0&&(e.className="".concat(i," ").concat(t)):e.className=t}}function Oe(e,t){t&&(he(e.length)?we(e,(function(e){Oe(e,t)})):e.classList?e.classList.remove(t):e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,"")))}function Te(e,t,i){t&&(he(e.length)?we(e,(function(e){Te(e,t,i)})):i?Ae(e,t):Oe(e,t))}var Ee=/([a-z\d])([A-Z])/g;function Fe(e){return e.replace(Ee,"$1-$2").toLowerCase()}function Me(e,t){return fe(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(Fe(t)))}function De(e,t,i){fe(i)?e[t]=i:e.dataset?e.dataset[t]=i:e.setAttribute("data-".concat(Fe(t)),i)}function Re(e,t){if(fe(e[t]))try{delete e[t]}catch(i){e[t]=void 0}else if(e.dataset)try{delete e.dataset[t]}catch(i){e.dataset[t]=void 0}else e.removeAttribute("data-".concat(Fe(t)))}var Ue=/\s\s*/,Ie=function(){var e=!1;if(d){var t=!1,i=function(){},r=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(e){t=e}});f.addEventListener("test",i,r),f.removeEventListener("test",i,r)}return e}();function Ne(e,t,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=i;t.trim().split(Ue).forEach((function(t){if(!Ie){var s=e.listeners;s&&s[t]&&s[t][i]&&(n=s[t][i],delete s[t][i],0===Object.keys(s[t]).length&&delete s[t],0===Object.keys(s).length&&delete e.listeners)}e.removeEventListener(t,n,r)}))}function Be(e,t,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=i;t.trim().split(Ue).forEach((function(t){if(r.once&&!Ie){var s=e.listeners,o=void 0===s?{}:s;n=function(){delete o[t][i],e.removeEventListener(t,n,r);for(var s=arguments.length,a=new Array(s),l=0;l<s;l++)a[l]=arguments[l];i.apply(e,a)},o[t]||(o[t]={}),o[t][i]&&e.removeEventListener(t,o[t][i],r),o[t][i]=n,e.listeners=o}e.addEventListener(t,n,r)}))}function Le(e,t,i){var r;return ve(Event)&&ve(CustomEvent)?r=new CustomEvent(t,{detail:i,bubbles:!0,cancelable:!0}):(r=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,i),e.dispatchEvent(r)}function $e(e){var t=e.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}var je=f.location,ze=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i;function He(e){var t=e.match(ze);return null!==t&&(t[1]!==je.protocol||t[2]!==je.hostname||t[3]!==je.port)}function Ve(e){var t="timestamp=".concat((new Date).getTime());return e+(-1===e.indexOf("?")?"?":"&")+t}function We(e){var t=e.rotate,i=e.scaleX,r=e.scaleY,n=e.translateX,s=e.translateY,o=[];he(n)&&0!==n&&o.push("translateX(".concat(n,"px)")),he(s)&&0!==s&&o.push("translateY(".concat(s,"px)")),he(t)&&0!==t&&o.push("rotate(".concat(t,"deg)")),he(i)&&1!==i&&o.push("scaleX(".concat(i,")")),he(r)&&1!==r&&o.push("scaleY(".concat(r,")"));var a=o.length?o.join(" "):"none";return{WebkitTransform:a,msTransform:a,transform:a}}function qe(e){var t=o({},e),i=[];return we(e,(function(e,r){delete t[r],we(t,(function(t){var r=Math.abs(e.startX-t.startX),n=Math.abs(e.startY-t.startY),s=Math.abs(e.endX-t.endX),o=Math.abs(e.endY-t.endY),a=Math.sqrt(r*r+n*n),l=(Math.sqrt(s*s+o*o)-a)/a;i.push(l)}))})),i.sort((function(e,t){return Math.abs(e)<Math.abs(t)})),i[0]}function Ye(e,t){var i=e.pageX,r=e.pageY,n={endX:i,endY:r};return t?n:o({startX:i,startY:r},n)}function Xe(e){var t=0,i=0,r=0;return we(e,(function(e){var n=e.startX,s=e.startY;t+=n,i+=s,r+=1})),{pageX:t/=r,pageY:i/=r}}function Ke(e){var t=e.aspectRatio,i=e.height,r=e.width,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"contain",s=pe(r),o=pe(i);if(s&&o){var a=i*t;"contain"===n&&a>r||"cover"===n&&a<r?i=r/t:r=i*t}else s?i=r/t:o&&(r=i*t);return{width:r,height:i}}function Ge(e){var t=e.width,i=e.height,r=e.degree;if(90==(r=Math.abs(r)%180))return{width:i,height:t};var n=r%90*Math.PI/180,s=Math.sin(n),o=Math.cos(n),a=t*o+i*s,l=t*s+i*o;return r>90?{width:l,height:a}:{width:a,height:l}}function Qe(e,t,i,r){var n=t.aspectRatio,s=t.naturalWidth,o=t.naturalHeight,l=t.rotate,u=void 0===l?0:l,c=t.scaleX,h=void 0===c?1:c,p=t.scaleY,d=void 0===p?1:p,f=i.aspectRatio,m=i.naturalWidth,g=i.naturalHeight,v=r.fillColor,y=void 0===v?"transparent":v,b=r.imageSmoothingEnabled,w=void 0===b||b,_=r.imageSmoothingQuality,S=void 0===_?"low":_,k=r.maxWidth,P=void 0===k?1/0:k,C=r.maxHeight,x=void 0===C?1/0:C,A=r.minWidth,O=void 0===A?0:A,T=r.minHeight,E=void 0===T?0:T,F=document.createElement("canvas"),M=F.getContext("2d"),D=Ke({aspectRatio:f,width:P,height:x}),R=Ke({aspectRatio:f,width:O,height:E},"cover"),U=Math.min(D.width,Math.max(R.width,m)),I=Math.min(D.height,Math.max(R.height,g)),N=Ke({aspectRatio:n,width:P,height:x}),B=Ke({aspectRatio:n,width:O,height:E},"cover"),L=Math.min(N.width,Math.max(B.width,s)),$=Math.min(N.height,Math.max(B.height,o)),j=[-L/2,-$/2,L,$];return F.width=ke(U),F.height=ke(I),M.fillStyle=y,M.fillRect(0,0,U,I),M.save(),M.translate(U/2,I/2),M.rotate(u*Math.PI/180),M.scale(h,d),M.imageSmoothingEnabled=w,M.imageSmoothingQuality=S,M.drawImage.apply(M,[e].concat(a(j.map((function(e){return Math.floor(ke(e))}))))),M.restore(),F}var Je=String.fromCharCode;function Ze(e,t,i){var r="";i+=t;for(var n=t;n<i;n+=1)r+=Je(e.getUint8(n));return r}var et=/^data:.*,/;function tt(e){var t=e.replace(et,""),i=atob(t),r=new ArrayBuffer(i.length),n=new Uint8Array(r);return we(n,(function(e,t){n[t]=i.charCodeAt(t)})),r}function it(e,t){for(var i=[],r=8192,n=new Uint8Array(e);n.length>0;)i.push(Je.apply(null,be(n.subarray(0,r)))),n=n.subarray(r);return"data:".concat(t,";base64,").concat(btoa(i.join("")))}function rt(e){var t,i=new DataView(e);try{var r,n,s;if(255===i.getUint8(0)&&216===i.getUint8(1))for(var o=i.byteLength,a=2;a+1<o;){if(255===i.getUint8(a)&&225===i.getUint8(a+1)){n=a;break}a+=1}if(n){var l=n+10;if("Exif"===Ze(i,n+4,4)){var u=i.getUint16(l);if(((r=18761===u)||19789===u)&&42===i.getUint16(l+2,r)){var c=i.getUint32(l+4,r);c>=8&&(s=l+c)}}}if(s){var h,p,d=i.getUint16(s,r);for(p=0;p<d;p+=1)if(h=s+12*p+2,274===i.getUint16(h,r)){h+=8,t=i.getUint16(h,r),i.setUint16(h,1,r);break}}}catch(e){t=1}return t}function nt(e){var t=0,i=1,r=1;switch(e){case 2:i=-1;break;case 3:t=-180;break;case 4:r=-1;break;case 5:t=90,r=-1;break;case 6:t=90;break;case 7:t=90,i=-1;break;case 8:t=-90}return{rotate:t,scaleX:i,scaleY:r}}var st={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var e=this.element,t=this.options,i=this.container,r=this.cropper;Ae(r,M),Oe(e,M);var n={width:Math.max(i.offsetWidth,Number(t.minContainerWidth)||200),height:Math.max(i.offsetHeight,Number(t.minContainerHeight)||100)};this.containerData=n,Ce(r,{width:n.width,height:n.height}),Ae(e,M),Oe(r,M)},initCanvas:function(){var e=this.containerData,t=this.imageData,i=this.options.viewMode,r=Math.abs(t.rotate)%180==90,n=r?t.naturalHeight:t.naturalWidth,s=r?t.naturalWidth:t.naturalHeight,o=n/s,a=e.width,l=e.height;e.height*o>e.width?3===i?a=e.height*o:l=e.width/o:3===i?l=e.width/o:a=e.height*o;var u={aspectRatio:o,naturalWidth:n,naturalHeight:s,width:a,height:l};u.left=(e.width-a)/2,u.top=(e.height-l)/2,u.oldLeft=u.left,u.oldTop=u.top,this.canvasData=u,this.limited=1===i||2===i,this.limitCanvas(!0,!0),this.initialImageData=_e({},t),this.initialCanvasData=_e({},u)},limitCanvas:function(e,t){var i=this.options,r=this.containerData,n=this.canvasData,s=this.cropBoxData,o=i.viewMode,a=n.aspectRatio,l=this.cropped&&s;if(e){var u=Number(i.minCanvasWidth)||0,c=Number(i.minCanvasHeight)||0;o>1?(u=Math.max(u,r.width),c=Math.max(c,r.height),3===o&&(c*a>u?u=c*a:c=u/a)):o>0&&(u?u=Math.max(u,l?s.width:0):c?c=Math.max(c,l?s.height:0):l&&(u=s.width,(c=s.height)*a>u?u=c*a:c=u/a));var h=Ke({aspectRatio:a,width:u,height:c});u=h.width,c=h.height,n.minWidth=u,n.minHeight=c,n.maxWidth=1/0,n.maxHeight=1/0}if(t)if(o>(l?0:1)){var p=r.width-n.width,d=r.height-n.height;n.minLeft=Math.min(0,p),n.minTop=Math.min(0,d),n.maxLeft=Math.max(0,p),n.maxTop=Math.max(0,d),l&&this.limited&&(n.minLeft=Math.min(s.left,s.left+(s.width-n.width)),n.minTop=Math.min(s.top,s.top+(s.height-n.height)),n.maxLeft=s.left,n.maxTop=s.top,2===o&&(n.width>=r.width&&(n.minLeft=Math.min(0,p),n.maxLeft=Math.max(0,p)),n.height>=r.height&&(n.minTop=Math.min(0,d),n.maxTop=Math.max(0,d))))}else n.minLeft=-n.width,n.minTop=-n.height,n.maxLeft=r.width,n.maxTop=r.height},renderCanvas:function(e,t){var i=this.canvasData,r=this.imageData;if(t){var n=Ge({width:r.naturalWidth*Math.abs(r.scaleX||1),height:r.naturalHeight*Math.abs(r.scaleY||1),degree:r.rotate||0}),s=n.width,o=n.height,a=i.width*(s/i.naturalWidth),l=i.height*(o/i.naturalHeight);i.left-=(a-i.width)/2,i.top-=(l-i.height)/2,i.width=a,i.height=l,i.aspectRatio=s/o,i.naturalWidth=s,i.naturalHeight=o,this.limitCanvas(!0,!1)}(i.width>i.maxWidth||i.width<i.minWidth)&&(i.left=i.oldLeft),(i.height>i.maxHeight||i.height<i.minHeight)&&(i.top=i.oldTop),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),this.limitCanvas(!1,!0),i.left=Math.min(Math.max(i.left,i.minLeft),i.maxLeft),i.top=Math.min(Math.max(i.top,i.minTop),i.maxTop),i.oldLeft=i.left,i.oldTop=i.top,Ce(this.canvas,_e({width:i.width,height:i.height},We({translateX:i.left,translateY:i.top}))),this.renderImage(e),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(e){var t=this.canvasData,i=this.imageData,r=i.naturalWidth*(t.width/t.naturalWidth),n=i.naturalHeight*(t.height/t.naturalHeight);_e(i,{width:r,height:n,left:(t.width-r)/2,top:(t.height-n)/2}),Ce(this.image,_e({width:i.width,height:i.height},We(_e({translateX:i.left,translateY:i.top},i)))),e&&this.output()},initCropBox:function(){var e=this.options,t=this.canvasData,i=e.aspectRatio||e.initialAspectRatio,r=Number(e.autoCropArea)||.8,n={width:t.width,height:t.height};i&&(t.height*i>t.width?n.height=n.width/i:n.width=n.height*i),this.cropBoxData=n,this.limitCropBox(!0,!0),n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth),n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight),n.width=Math.max(n.minWidth,n.width*r),n.height=Math.max(n.minHeight,n.height*r),n.left=t.left+(t.width-n.width)/2,n.top=t.top+(t.height-n.height)/2,n.oldLeft=n.left,n.oldTop=n.top,this.initialCropBoxData=_e({},n)},limitCropBox:function(e,t){var i=this.options,r=this.containerData,n=this.canvasData,s=this.cropBoxData,o=this.limited,a=i.aspectRatio;if(e){var l=Number(i.minCropBoxWidth)||0,u=Number(i.minCropBoxHeight)||0,c=o?Math.min(r.width,n.width,n.width+n.left,r.width-n.left):r.width,h=o?Math.min(r.height,n.height,n.height+n.top,r.height-n.top):r.height;l=Math.min(l,r.width),u=Math.min(u,r.height),a&&(l&&u?u*a>l?u=l/a:l=u*a:l?u=l/a:u&&(l=u*a),h*a>c?h=c/a:c=h*a),s.minWidth=Math.min(l,c),s.minHeight=Math.min(u,h),s.maxWidth=c,s.maxHeight=h}t&&(o?(s.minLeft=Math.max(0,n.left),s.minTop=Math.max(0,n.top),s.maxLeft=Math.min(r.width,n.left+n.width)-s.width,s.maxTop=Math.min(r.height,n.top+n.height)-s.height):(s.minLeft=0,s.minTop=0,s.maxLeft=r.width-s.width,s.maxTop=r.height-s.height))},renderCropBox:function(){var e=this.options,t=this.containerData,i=this.cropBoxData;(i.width>i.maxWidth||i.width<i.minWidth)&&(i.left=i.oldLeft),(i.height>i.maxHeight||i.height<i.minHeight)&&(i.top=i.oldTop),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),this.limitCropBox(!1,!0),i.left=Math.min(Math.max(i.left,i.minLeft),i.maxLeft),i.top=Math.min(Math.max(i.top,i.minTop),i.maxTop),i.oldLeft=i.left,i.oldTop=i.top,e.movable&&e.cropBoxMovable&&De(this.face,N,i.width>=t.width&&i.height>=t.height?w:y),Ce(this.cropBox,_e({width:i.width,height:i.height},We({translateX:i.left,translateY:i.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),Le(this.element,z,this.getData())}},ot={initPreview:function(){var e=this.element,t=this.crossOrigin,i=this.options.preview,r=t?this.crossOriginUrl:this.url,n=e.alt||"The image to preview",s=document.createElement("img");if(t&&(s.crossOrigin=t),s.src=r,s.alt=n,this.viewBox.appendChild(s),this.viewBoxImage=s,i){var o=i;"string"==typeof i?o=e.ownerDocument.querySelectorAll(i):i.querySelector&&(o=[i]),this.previews=o,we(o,(function(e){var i=document.createElement("img");De(e,B,{width:e.offsetWidth,height:e.offsetHeight,html:e.innerHTML}),t&&(i.crossOrigin=t),i.src=r,i.alt=n,i.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',e.innerHTML="",e.appendChild(i)}))}},resetPreview:function(){we(this.previews,(function(e){var t=Me(e,B);Ce(e,{width:t.width,height:t.height}),e.innerHTML=t.html,Re(e,B)}))},preview:function(){var e=this.imageData,t=this.canvasData,i=this.cropBoxData,r=i.width,n=i.height,s=e.width,o=e.height,a=i.left-t.left-e.left,l=i.top-t.top-e.top;this.cropped&&!this.disabled&&(Ce(this.viewBoxImage,_e({width:s,height:o},We(_e({translateX:-a,translateY:-l},e)))),we(this.previews,(function(t){var i=Me(t,B),u=i.width,c=i.height,h=u,p=c,d=1;r&&(p=n*(d=u/r)),n&&p>c&&(h=r*(d=c/n),p=c),Ce(t,{width:h,height:p}),Ce(t.getElementsByTagName("img")[0],_e({width:s*d,height:o*d},We(_e({translateX:-a*d,translateY:-l*d},e))))})))}},at={bind:function(){var e=this.element,t=this.options,i=this.cropper;ve(t.cropstart)&&Be(e,W,t.cropstart),ve(t.cropmove)&&Be(e,V,t.cropmove),ve(t.cropend)&&Be(e,H,t.cropend),ve(t.crop)&&Be(e,z,t.crop),ve(t.zoom)&&Be(e,ie,t.zoom),Be(i,G,this.onCropStart=this.cropStart.bind(this)),t.zoomable&&t.zoomOnWheel&&Be(i,te,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),t.toggleDragModeOnDblclick&&Be(i,q,this.onDblclick=this.dblclick.bind(this)),Be(e.ownerDocument,Q,this.onCropMove=this.cropMove.bind(this)),Be(e.ownerDocument,J,this.onCropEnd=this.cropEnd.bind(this)),t.responsive&&Be(window,ee,this.onResize=this.resize.bind(this))},unbind:function(){var e=this.element,t=this.options,i=this.cropper;ve(t.cropstart)&&Ne(e,W,t.cropstart),ve(t.cropmove)&&Ne(e,V,t.cropmove),ve(t.cropend)&&Ne(e,H,t.cropend),ve(t.crop)&&Ne(e,z,t.crop),ve(t.zoom)&&Ne(e,ie,t.zoom),Ne(i,G,this.onCropStart),t.zoomable&&t.zoomOnWheel&&Ne(i,te,this.onWheel,{passive:!1,capture:!0}),t.toggleDragModeOnDblclick&&Ne(i,q,this.onDblclick),Ne(e.ownerDocument,Q,this.onCropMove),Ne(e.ownerDocument,J,this.onCropEnd),t.responsive&&Ne(window,ee,this.onResize)}},lt={resize:function(){if(!this.disabled){var e,t,i=this.options,r=this.container,n=this.containerData,s=r.offsetWidth/n.width;1===s&&r.offsetHeight===n.height||(i.restore&&(e=this.getCanvasData(),t=this.getCropBoxData()),this.render(),i.restore&&(this.setCanvasData(we(e,(function(t,i){e[i]=t*s}))),this.setCropBoxData(we(t,(function(e,i){t[i]=e*s})))))}},dblclick:function(){this.disabled||this.options.dragMode===j||this.setDragMode(xe(this.dragBox,E)?$:L)},wheel:function(e){var t=this,i=Number(this.options.wheelZoomRatio)||.1,r=1;this.disabled||(e.preventDefault(),this.wheeling||(this.wheeling=!0,setTimeout((function(){t.wheeling=!1}),50),e.deltaY?r=e.deltaY>0?1:-1:e.wheelDelta?r=-e.wheelDelta/120:e.detail&&(r=e.detail>0?1:-1),this.zoom(-r*i,e)))},cropStart:function(e){var t=e.buttons,i=e.button;if(!(this.disabled||("mousedown"===e.type||"pointerdown"===e.type&&"mouse"===e.pointerType)&&(he(t)&&1!==t||he(i)&&0!==i||e.ctrlKey))){var r,n=this.options,s=this.pointers;e.changedTouches?we(e.changedTouches,(function(e){s[e.identifier]=Ye(e)})):s[e.pointerId||0]=Ye(e),r=Object.keys(s).length>1&&n.zoomable&&n.zoomOnTouch?_:Me(e.target,N),ne.test(r)&&!1!==Le(this.element,W,{originalEvent:e,action:r})&&(e.preventDefault(),this.action=r,this.cropping=!1,r===b&&(this.cropping=!0,Ae(this.dragBox,U)))}},cropMove:function(e){var t=this.action;if(!this.disabled&&t){var i=this.pointers;e.preventDefault(),!1!==Le(this.element,V,{originalEvent:e,action:t})&&(e.changedTouches?we(e.changedTouches,(function(e){_e(i[e.identifier]||{},Ye(e,!0))})):_e(i[e.pointerId||0]||{},Ye(e,!0)),this.change(e))}},cropEnd:function(e){if(!this.disabled){var t=this.action,i=this.pointers;e.changedTouches?we(e.changedTouches,(function(e){delete i[e.identifier]})):delete i[e.pointerId||0],t&&(e.preventDefault(),Object.keys(i).length||(this.action=""),this.cropping&&(this.cropping=!1,Te(this.dragBox,U,this.cropped&&this.options.modal)),Le(this.element,H,{originalEvent:e,action:t}))}}},ut={change:function(e){var t,i=this.options,r=this.canvasData,n=this.containerData,s=this.cropBoxData,o=this.pointers,a=this.action,l=i.aspectRatio,u=s.left,c=s.top,h=s.width,p=s.height,d=u+h,f=c+p,m=0,g=0,v=n.width,E=n.height,F=!0;!l&&e.shiftKey&&(l=h&&p?h/p:1),this.limited&&(m=s.minLeft,g=s.minTop,v=m+Math.min(n.width,r.width,r.left+r.width),E=g+Math.min(n.height,r.height,r.top+r.height));var D=o[Object.keys(o)[0]],R={x:D.endX-D.startX,y:D.endY-D.startY},U=function(e){switch(e){case S:d+R.x>v&&(R.x=v-d);break;case k:u+R.x<m&&(R.x=m-u);break;case C:c+R.y<g&&(R.y=g-c);break;case P:f+R.y>E&&(R.y=E-f)}};switch(a){case y:u+=R.x,c+=R.y;break;case S:if(R.x>=0&&(d>=v||l&&(c<=g||f>=E))){F=!1;break}U(S),(h+=R.x)<0&&(a=k,u-=h=-h),l&&(p=h/l,c+=(s.height-p)/2);break;case C:if(R.y<=0&&(c<=g||l&&(u<=m||d>=v))){F=!1;break}U(C),p-=R.y,c+=R.y,p<0&&(a=P,c-=p=-p),l&&(h=p*l,u+=(s.width-h)/2);break;case k:if(R.x<=0&&(u<=m||l&&(c<=g||f>=E))){F=!1;break}U(k),h-=R.x,u+=R.x,h<0&&(a=S,u-=h=-h),l&&(p=h/l,c+=(s.height-p)/2);break;case P:if(R.y>=0&&(f>=E||l&&(u<=m||d>=v))){F=!1;break}U(P),(p+=R.y)<0&&(a=C,c-=p=-p),l&&(h=p*l,u+=(s.width-h)/2);break;case x:if(l){if(R.y<=0&&(c<=g||d>=v)){F=!1;break}U(C),p-=R.y,c+=R.y,h=p*l}else U(C),U(S),R.x>=0?d<v?h+=R.x:R.y<=0&&c<=g&&(F=!1):h+=R.x,R.y<=0?c>g&&(p-=R.y,c+=R.y):(p-=R.y,c+=R.y);h<0&&p<0?(a=T,c-=p=-p,u-=h=-h):h<0?(a=A,u-=h=-h):p<0&&(a=O,c-=p=-p);break;case A:if(l){if(R.y<=0&&(c<=g||u<=m)){F=!1;break}U(C),p-=R.y,c+=R.y,h=p*l,u+=s.width-h}else U(C),U(k),R.x<=0?u>m?(h-=R.x,u+=R.x):R.y<=0&&c<=g&&(F=!1):(h-=R.x,u+=R.x),R.y<=0?c>g&&(p-=R.y,c+=R.y):(p-=R.y,c+=R.y);h<0&&p<0?(a=O,c-=p=-p,u-=h=-h):h<0?(a=x,u-=h=-h):p<0&&(a=T,c-=p=-p);break;case T:if(l){if(R.x<=0&&(u<=m||f>=E)){F=!1;break}U(k),h-=R.x,u+=R.x,p=h/l}else U(P),U(k),R.x<=0?u>m?(h-=R.x,u+=R.x):R.y>=0&&f>=E&&(F=!1):(h-=R.x,u+=R.x),R.y>=0?f<E&&(p+=R.y):p+=R.y;h<0&&p<0?(a=x,c-=p=-p,u-=h=-h):h<0?(a=O,u-=h=-h):p<0&&(a=A,c-=p=-p);break;case O:if(l){if(R.x>=0&&(d>=v||f>=E)){F=!1;break}U(S),p=(h+=R.x)/l}else U(P),U(S),R.x>=0?d<v?h+=R.x:R.y>=0&&f>=E&&(F=!1):h+=R.x,R.y>=0?f<E&&(p+=R.y):p+=R.y;h<0&&p<0?(a=A,c-=p=-p,u-=h=-h):h<0?(a=T,u-=h=-h):p<0&&(a=x,c-=p=-p);break;case w:this.move(R.x,R.y),F=!1;break;case _:this.zoom(qe(o),e),F=!1;break;case b:if(!R.x||!R.y){F=!1;break}t=$e(this.cropper),u=D.startX-t.left,c=D.startY-t.top,h=s.minWidth,p=s.minHeight,R.x>0?a=R.y>0?O:x:R.x<0&&(u-=h,a=R.y>0?T:A),R.y<0&&(c-=p),this.cropped||(Oe(this.cropBox,M),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0))}F&&(s.width=h,s.height=p,s.left=u,s.top=c,this.action=a,this.renderCropBox()),we(o,(function(e){e.startX=e.endX,e.startY=e.endY}))}},ct={crop:function(){return!this.ready||this.cropped||this.disabled||(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&Ae(this.dragBox,U),Oe(this.cropBox,M),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=_e({},this.initialImageData),this.canvasData=_e({},this.initialCanvasData),this.cropBoxData=_e({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(_e(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),Oe(this.dragBox,U),Ae(this.cropBox,M)),this},replace:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!this.disabled&&e&&(this.isImg&&(this.element.src=e),t?(this.url=e,this.image.src=e,this.ready&&(this.viewBoxImage.src=e,we(this.previews,(function(t){t.getElementsByTagName("img")[0].src=e})))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(e))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,Oe(this.cropper,F)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,Ae(this.cropper,F)),this},destroy:function(){var e=this.element;return e[v]?(e[v]=void 0,this.isImg&&this.replaced&&(e.src=this.originalUrl),this.uncreate(),this):this},move:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,i=this.canvasData,r=i.left,n=i.top;return this.moveTo(de(e)?e:r+Number(e),de(t)?t:n+Number(t))},moveTo:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,i=this.canvasData,r=!1;return e=Number(e),t=Number(t),this.ready&&!this.disabled&&this.options.movable&&(he(e)&&(i.left=e,r=!0),he(t)&&(i.top=t,r=!0),r&&this.renderCanvas(!0)),this},zoom:function(e,t){var i=this.canvasData;return e=(e=Number(e))<0?1/(1-e):1+e,this.zoomTo(i.width*e/i.naturalWidth,null,t)},zoomTo:function(e,t,i){var r=this.options,n=this.canvasData,s=n.width,o=n.height,a=n.naturalWidth,l=n.naturalHeight;if((e=Number(e))>=0&&this.ready&&!this.disabled&&r.zoomable){var u=a*e,c=l*e;if(!1===Le(this.element,ie,{ratio:e,oldRatio:s/a,originalEvent:i}))return this;if(i){var h=this.pointers,p=$e(this.cropper),d=h&&Object.keys(h).length?Xe(h):{pageX:i.pageX,pageY:i.pageY};n.left-=(u-s)*((d.pageX-p.left-n.left)/s),n.top-=(c-o)*((d.pageY-p.top-n.top)/o)}else ge(t)&&he(t.x)&&he(t.y)?(n.left-=(u-s)*((t.x-n.left)/s),n.top-=(c-o)*((t.y-n.top)/o)):(n.left-=(u-s)/2,n.top-=(c-o)/2);n.width=u,n.height=c,this.renderCanvas(!0)}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e))},rotateTo:function(e){return he(e=Number(e))&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=e%360,this.renderCanvas(!0,!0)),this},scaleX:function(e){var t=this.imageData.scaleY;return this.scale(e,he(t)?t:1)},scaleY:function(e){var t=this.imageData.scaleX;return this.scale(he(t)?t:1,e)},scale:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,i=this.imageData,r=!1;return e=Number(e),t=Number(t),this.ready&&!this.disabled&&this.options.scalable&&(he(e)&&(i.scaleX=e,r=!0),he(t)&&(i.scaleY=t,r=!0),r&&this.renderCanvas(!0,!0)),this},getData:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=this.options,r=this.imageData,n=this.canvasData,s=this.cropBoxData;if(this.ready&&this.cropped){e={x:s.left-n.left,y:s.top-n.top,width:s.width,height:s.height};var o=r.width/r.naturalWidth;if(we(e,(function(t,i){e[i]=t/o})),t){var a=Math.round(e.y+e.height),l=Math.round(e.x+e.width);e.x=Math.round(e.x),e.y=Math.round(e.y),e.width=l-e.x,e.height=a-e.y}}else e={x:0,y:0,width:0,height:0};return i.rotatable&&(e.rotate=r.rotate||0),i.scalable&&(e.scaleX=r.scaleX||1,e.scaleY=r.scaleY||1),e},setData:function(e){var t=this.options,i=this.imageData,r=this.canvasData,n={};if(this.ready&&!this.disabled&&ge(e)){var s=!1;t.rotatable&&he(e.rotate)&&e.rotate!==i.rotate&&(i.rotate=e.rotate,s=!0),t.scalable&&(he(e.scaleX)&&e.scaleX!==i.scaleX&&(i.scaleX=e.scaleX,s=!0),he(e.scaleY)&&e.scaleY!==i.scaleY&&(i.scaleY=e.scaleY,s=!0)),s&&this.renderCanvas(!0,!0);var o=i.width/i.naturalWidth;he(e.x)&&(n.left=e.x*o+r.left),he(e.y)&&(n.top=e.y*o+r.top),he(e.width)&&(n.width=e.width*o),he(e.height)&&(n.height=e.height*o),this.setCropBoxData(n)}return this},getContainerData:function(){return this.ready?_e({},this.containerData):{}},getImageData:function(){return this.sized?_e({},this.imageData):{}},getCanvasData:function(){var e=this.canvasData,t={};return this.ready&&we(["left","top","width","height","naturalWidth","naturalHeight"],(function(i){t[i]=e[i]})),t},setCanvasData:function(e){var t=this.canvasData,i=t.aspectRatio;return this.ready&&!this.disabled&&ge(e)&&(he(e.left)&&(t.left=e.left),he(e.top)&&(t.top=e.top),he(e.width)?(t.width=e.width,t.height=e.width/i):he(e.height)&&(t.height=e.height,t.width=e.height*i),this.renderCanvas(!0)),this},getCropBoxData:function(){var e,t=this.cropBoxData;return this.ready&&this.cropped&&(e={left:t.left,top:t.top,width:t.width,height:t.height}),e||{}},setCropBoxData:function(e){var t,i,r=this.cropBoxData,n=this.options.aspectRatio;return this.ready&&this.cropped&&!this.disabled&&ge(e)&&(he(e.left)&&(r.left=e.left),he(e.top)&&(r.top=e.top),he(e.width)&&e.width!==r.width&&(t=!0,r.width=e.width),he(e.height)&&e.height!==r.height&&(i=!0,r.height=e.height),n&&(t?r.height=r.width/n:i&&(r.width=r.height*n)),this.renderCropBox()),this},getCroppedCanvas:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var t=this.canvasData,i=Qe(this.image,this.imageData,t,e);if(!this.cropped)return i;var r=this.getData(),n=r.x,s=r.y,o=r.width,l=r.height,u=i.width/Math.floor(t.naturalWidth);1!==u&&(n*=u,s*=u,o*=u,l*=u);var c=o/l,h=Ke({aspectRatio:c,width:e.maxWidth||1/0,height:e.maxHeight||1/0}),p=Ke({aspectRatio:c,width:e.minWidth||0,height:e.minHeight||0},"cover"),d=Ke({aspectRatio:c,width:e.width||(1!==u?i.width:o),height:e.height||(1!==u?i.height:l)}),f=d.width,m=d.height;f=Math.min(h.width,Math.max(p.width,f)),m=Math.min(h.height,Math.max(p.height,m));var g=document.createElement("canvas"),v=g.getContext("2d");g.width=ke(f),g.height=ke(m),v.fillStyle=e.fillColor||"transparent",v.fillRect(0,0,f,m);var y=e.imageSmoothingEnabled,b=void 0===y||y,w=e.imageSmoothingQuality;v.imageSmoothingEnabled=b,w&&(v.imageSmoothingQuality=w);var _,S,k,P,C,x,A=i.width,O=i.height,T=n,E=s;T<=-o||T>A?(T=0,_=0,k=0,C=0):T<=0?(k=-T,T=0,C=_=Math.min(A,o+T)):T<=A&&(k=0,C=_=Math.min(o,A-T)),_<=0||E<=-l||E>O?(E=0,S=0,P=0,x=0):E<=0?(P=-E,E=0,x=S=Math.min(O,l+E)):E<=O&&(P=0,x=S=Math.min(l,O-E));var F=[T,E,_,S];if(C>0&&x>0){var M=f/o;F.push(k*M,P*M,C*M,x*M)}return v.drawImage.apply(v,[i].concat(a(F.map((function(e){return Math.floor(ke(e))}))))),g},setAspectRatio:function(e){var t=this.options;return this.disabled||de(e)||(t.aspectRatio=Math.max(0,e)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(e){var t=this.options,i=this.dragBox,r=this.face;if(this.ready&&!this.disabled){var n=e===L,s=t.movable&&e===$;e=n||s?e:j,t.dragMode=e,De(i,N,e),Te(i,E,n),Te(i,I,s),t.cropBoxMovable||(De(r,N,e),Te(r,E,n),Te(r,I,s))}return this}},ht=f.Cropper,pt=function(){function e(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t(this,e),!i||!ae.test(i.tagName))throw new Error("The first argument is required and must be an <img> or <canvas> element.");this.element=i,this.options=_e({},le,ge(r)&&r),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return r(e,[{key:"init",value:function(){var e,t=this.element,i=t.tagName.toLowerCase();if(!t[v]){if(t[v]=this,"img"===i){if(this.isImg=!0,e=t.getAttribute("src")||"",this.originalUrl=e,!e)return;e=t.src}else"canvas"===i&&window.HTMLCanvasElement&&(e=t.toDataURL());this.load(e)}}},{key:"load",value:function(e){var t=this;if(e){this.url=e,this.imageData={};var i=this.element,r=this.options;if(r.rotatable||r.scalable||(r.checkOrientation=!1),r.checkOrientation&&window.ArrayBuffer)if(se.test(e))oe.test(e)?this.read(tt(e)):this.clone();else{var n=new XMLHttpRequest,s=this.clone.bind(this);this.reloading=!0,this.xhr=n,n.onabort=s,n.onerror=s,n.ontimeout=s,n.onprogress=function(){n.getResponseHeader("content-type")!==re&&n.abort()},n.onload=function(){t.read(n.response)},n.onloadend=function(){t.reloading=!1,t.xhr=null},r.checkCrossOrigin&&He(e)&&i.crossOrigin&&(e=Ve(e)),n.open("GET",e),n.responseType="arraybuffer",n.withCredentials="use-credentials"===i.crossOrigin,n.send()}else this.clone()}}},{key:"read",value:function(e){var t=this.options,i=this.imageData,r=rt(e),n=0,s=1,o=1;if(r>1){this.url=it(e,re);var a=nt(r);n=a.rotate,s=a.scaleX,o=a.scaleY}t.rotatable&&(i.rotate=n),t.scalable&&(i.scaleX=s,i.scaleY=o),this.clone()}},{key:"clone",value:function(){var e=this.element,t=this.url,i=e.crossOrigin,r=t;this.options.checkCrossOrigin&&He(t)&&(i||(i="anonymous"),r=Ve(t)),this.crossOrigin=i,this.crossOriginUrl=r;var n=document.createElement("img");i&&(n.crossOrigin=i),n.src=r||t,n.alt=e.alt||"The image to crop",this.image=n,n.onload=this.start.bind(this),n.onerror=this.stop.bind(this),Ae(n,D),e.parentNode.insertBefore(n,e.nextSibling)}},{key:"start",value:function(){var e=this,t=this.image;t.onload=null,t.onerror=null,this.sizing=!0;var i=f.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(f.navigator.userAgent),r=function(t,i){_e(e.imageData,{naturalWidth:t,naturalHeight:i,aspectRatio:t/i}),e.sizing=!1,e.sized=!0,e.build()};if(!t.naturalWidth||i){var n=document.createElement("img"),s=document.body||document.documentElement;this.sizingImage=n,n.onload=function(){r(n.width,n.height),i||s.removeChild(n)},n.src=t.src,i||(n.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",s.appendChild(n))}else r(t.naturalWidth,t.naturalHeight)}},{key:"stop",value:function(){var e=this.image;e.onload=null,e.onerror=null,e.parentNode.removeChild(e),this.image=null}},{key:"build",value:function(){if(this.sized&&!this.ready){var e=this.element,t=this.options,i=this.image,r=e.parentNode,n=document.createElement("div");n.innerHTML=ue;var s=n.querySelector(".".concat(v,"-container")),o=s.querySelector(".".concat(v,"-canvas")),a=s.querySelector(".".concat(v,"-drag-box")),l=s.querySelector(".".concat(v,"-crop-box")),u=l.querySelector(".".concat(v,"-face"));this.container=r,this.cropper=s,this.canvas=o,this.dragBox=a,this.cropBox=l,this.viewBox=s.querySelector(".".concat(v,"-view-box")),this.face=u,o.appendChild(i),Ae(e,M),r.insertBefore(s,e.nextSibling),this.isImg||Oe(i,D),this.initPreview(),this.bind(),t.initialAspectRatio=Math.max(0,t.initialAspectRatio)||NaN,t.aspectRatio=Math.max(0,t.aspectRatio)||NaN,t.viewMode=Math.max(0,Math.min(3,Math.round(t.viewMode)))||0,Ae(l,M),t.guides||Ae(l.getElementsByClassName("".concat(v,"-dashed")),M),t.center||Ae(l.getElementsByClassName("".concat(v,"-center")),M),t.background&&Ae(s,"".concat(v,"-bg")),t.highlight||Ae(u,R),t.cropBoxMovable&&(Ae(u,I),De(u,N,y)),t.cropBoxResizable||(Ae(l.getElementsByClassName("".concat(v,"-line")),M),Ae(l.getElementsByClassName("".concat(v,"-point")),M)),this.render(),this.ready=!0,this.setDragMode(t.dragMode),t.autoCrop&&this.crop(),this.setData(t.data),ve(t.ready)&&Be(e,Z,t.ready,{once:!0}),Le(e,Z)}}},{key:"unbuild",value:function(){this.ready&&(this.ready=!1,this.unbind(),this.resetPreview(),this.cropper.parentNode.removeChild(this.cropper),Oe(this.element,M))}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],[{key:"noConflict",value:function(){return window.Cropper=ht,e}},{key:"setDefaults",value:function(e){_e(le,ge(e)&&e)}}]),e}();return _e(pt.prototype,st,ot,at,lt,ut,ct),pt}()},7198:function(e,t,i){var r=i(4155),n=i(8764).Buffer;!function(e){"use strict";function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,i){return t&&s(e.prototype,t),i&&s(e,i),e}function a(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}});var i=["prototype","__proto__","caller","arguments","length","name"];Object.getOwnPropertyNames(t).forEach((function(r){-1===i.indexOf(r)&&e[r]!==t[r]&&(e[r]=t[r])})),t&&c(e,t)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function p(e,t,i){return(p=h()?Reflect.construct:function(e,t,i){var r=[null];r.push.apply(r,t);var n=new(Function.bind.apply(e,r));return i&&c(n,i.prototype),n}).apply(null,arguments)}function d(e){var t="function"==typeof Map?new Map:void 0;return(d=function(e){if(null===e||(i=e,-1===Function.toString.call(i).indexOf("[native code]")))return e;var i;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return p(e,arguments,u(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),c(r,e)})(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?f(e):t}function g(e){var t=h();return function(){var i,r=u(e);if(t){var n=u(this).constructor;i=Reflect.construct(r,arguments,n)}else i=r.apply(this,arguments);return m(this,i)}}function v(e,t,i){return(v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,i){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=u(e)););return e}(e,t);if(r){var n=Object.getOwnPropertyDescriptor(r,t);return n.get?n.get.call(i):n.value}})(e,t,i||e)}var y=Object.values||function(e){var t=[];for(var i in e)t.push(e[i]);return t},b=Object.entries||function(e){var t=[];for(var i in e)t.push([i,e[i]]);return t},w=Object.assign||function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];return i.forEach((function(t){for(var i in t)e[i]=t[i]})),e},_=Object.fromEntries||function(e){var t={};return S(e).forEach((function(e){var i=e[0],r=e[1];t[i]=r})),t},S=Array.from||function(e){if(e instanceof O){var t=[];return e.forEach((function(e,i){return t.push([i,e])})),t}return Array.prototype.slice.call(e)};function k(e){return-1!==this.indexOf(e)}Array.prototype.includes||(Array.prototype.includes=k),String.prototype.includes||(String.prototype.includes=k),String.prototype.startsWith||(String.prototype.startsWith=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.substring(t,t+e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length;return this.substring(t-e.length,t)===e});var P="undefined"!=typeof self?self:i.g,C=P.fetch||function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(i,r){var n=new XMLHttpRequest;if(n.open("get",e,!0),n.responseType="arraybuffer",n.onerror=r,t.headers)for(var s in t.headers)n.setRequestHeader(s,t.headers[s]);n.onload=function(){i({ok:n.status>=200&&n.status<300,status:n.status,arrayBuffer:function(){return Promise.resolve(n.response)}})},n.send(null)}))},x=function(e){var t=[];if(Object.defineProperties(t,{size:{get:function(){return this.length}},has:{value:function(e){return-1!==this.indexOf(e)}},add:{value:function(e){this.has(e)||this.push(e)}},delete:{value:function(e){if(this.has(e)){var t=this.indexOf(e);this.splice(t,1)}}}}),Array.isArray(e))for(var i=0;i<e.length;i++)t.add(e[i]);return t},A=function(e){return new O(e)},O=void 0!==P.Map&&void 0!==P.Map.prototype.keys?P.Map:function(){function e(i){if(t(this,e),this.clear(),i)for(var r=0;r<i.length;r++)this.set(i[r][0],i[r][1])}return o(e,[{key:"clear",value:function(){this._map={},this._keys=[]}},{key:"size",get:function(){return this._keys.length}},{key:"get",value:function(e){return this._map["map_"+e]}},{key:"set",value:function(e,t){return this._map["map_"+e]=t,this._keys.indexOf(e)<0&&this._keys.push(e),this}},{key:"has",value:function(e){return this._keys.indexOf(e)>=0}},{key:"delete",value:function(e){var t=this._keys.indexOf(e);return!(t<0||(delete this._map["map_"+e],this._keys.splice(t,1),0))}},{key:"keys",value:function(){return this._keys.slice(0)}},{key:"values",value:function(){var e=this;return this._keys.map((function(t){return e.get(t)}))}},{key:"entries",value:function(){var e=this;return this._keys.map((function(t){return[t,e.get(t)]}))}},{key:"forEach",value:function(e,t){for(var i=0;i<this._keys.length;i++)e.call(t,this._map["map_"+this._keys[i]],this._keys[i],this)}}]),e}(),T="undefined"!=typeof self?self:i.g,E="undefined"!=typeof navigator,F=E&&"undefined"==typeof HTMLImageElement,M=!(void 0===i.g||void 0===r||!r.versions||!r.versions.node),D=T.Buffer,R=!!D,U=function(e){return void 0!==e};function I(e){return void 0===e||(e instanceof O?0===e.size:0===y(e).filter(U).length)}function N(e){var t=new Error(e);throw delete t.stack,t}function B(e){var t=function(e){var t=0;return e.ifd0.enabled&&(t+=1024),e.exif.enabled&&(t+=2048),e.makerNote&&(t+=2048),e.userComment&&(t+=1024),e.gps.enabled&&(t+=512),e.interop.enabled&&(t+=100),e.ifd1.enabled&&(t+=1024),t+2048}(e);return e.jfif.enabled&&(t+=50),e.xmp.enabled&&(t+=2e4),e.iptc.enabled&&(t+=14e3),e.icc.enabled&&(t+=6e3),t}var L=function(e){return String.fromCharCode.apply(null,e)},$="undefined"!=typeof TextDecoder?new TextDecoder("utf-8"):void 0;function j(e){return $?$.decode(e):R?n.from(e).toString("utf8"):decodeURIComponent(escape(L(e)))}var z=function(){function e(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0;if(t(this,e),"boolean"==typeof s&&(this.le=s),Array.isArray(i)&&(i=new Uint8Array(i)),0===i)this.byteOffset=0,this.byteLength=0;else if(i instanceof ArrayBuffer){void 0===n&&(n=i.byteLength-r);var o=new DataView(i,r,n);this._swapDataView(o)}else if(i instanceof Uint8Array||i instanceof DataView||i instanceof e){void 0===n&&(n=i.byteLength-r),(r+=i.byteOffset)+n>i.byteOffset+i.byteLength&&N("Creating view outside of available memory in ArrayBuffer");var a=new DataView(i.buffer,r,n);this._swapDataView(a)}else if("number"==typeof i){var l=new DataView(new ArrayBuffer(i));this._swapDataView(l)}else N("Invalid input argument for BufferView: "+i)}return o(e,[{key:"_swapArrayBuffer",value:function(e){this._swapDataView(new DataView(e))}},{key:"_swapBuffer",value:function(e){this._swapDataView(new DataView(e.buffer,e.byteOffset,e.byteLength))}},{key:"_swapDataView",value:function(e){this.dataView=e,this.buffer=e.buffer,this.byteOffset=e.byteOffset,this.byteLength=e.byteLength}},{key:"_lengthToEnd",value:function(e){return this.byteLength-e}},{key:"set",value:function(t,i){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e;return t instanceof DataView||t instanceof e?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):t instanceof ArrayBuffer&&(t=new Uint8Array(t)),t instanceof Uint8Array||N("BufferView.set(): Invalid data argument."),this.toUint8().set(t,i),new r(this,i,t.byteLength)}},{key:"subarray",value:function(t,i){return new e(this,t,i=i||this._lengthToEnd(t))}},{key:"toUint8",value:function(){return new Uint8Array(this.buffer,this.byteOffset,this.byteLength)}},{key:"getUint8Array",value:function(e,t){return new Uint8Array(this.buffer,this.byteOffset+e,t)}},{key:"getString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.byteLength;return j(this.getUint8Array(e,t))}},{key:"getLatin1String",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.byteLength,i=this.getUint8Array(e,t);return L(i)}},{key:"getUnicodeString",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.byteLength,i=[],r=0;r<t&&e+r<this.byteLength;r+=2)i.push(this.getUint16(e+r));return L(i)}},{key:"getInt8",value:function(e){return this.dataView.getInt8(e)}},{key:"getUint8",value:function(e){return this.dataView.getUint8(e)}},{key:"getInt16",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getInt16(e,t)}},{key:"getInt32",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getInt32(e,t)}},{key:"getUint16",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getUint16(e,t)}},{key:"getUint32",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getUint32(e,t)}},{key:"getFloat32",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getFloat32(e,t)}},{key:"getFloat64",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getFloat64(e,t)}},{key:"getFloat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getFloat32(e,t)}},{key:"getDouble",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getFloat64(e,t)}},{key:"getUintBytes",value:function(e,t,i){switch(t){case 1:return this.getUint8(e,i);case 2:return this.getUint16(e,i);case 4:return this.getUint32(e,i);case 8:return this.getUint64&&this.getUint64(e,i)}}},{key:"getUint",value:function(e,t,i){switch(t){case 8:return this.getUint8(e,i);case 16:return this.getUint16(e,i);case 32:return this.getUint32(e,i);case 64:return this.getUint64&&this.getUint64(e,i)}}},{key:"toString",value:function(e){return this.dataView.toString(e,this.constructor.name)}},{key:"ensureChunk",value:function(){}}],[{key:"from",value:function(t,i){return t instanceof this&&t.le===i?t:new e(t,void 0,void 0,i)}}]),e}();function H(e,t){N("".concat(e," '").concat(t,"' was not loaded, try using full build of exifr."))}var V=function(e){l(r,e);var i=g(r);function r(e){var n;return t(this,r),(n=i.call(this)).kind=e,n}return o(r,[{key:"get",value:function(e,t){return this.has(e)||H(this.kind,e),t&&(e in t||function(e,t){N("Unknown ".concat(e," '").concat(t,"'."))}(this.kind,e),t[e].enabled||H(this.kind,e)),v(u(r.prototype),"get",this).call(this,e)}},{key:"keyList",value:function(){return S(this.keys())}}]),r}(d(O)),W=new V("file parser"),q=new V("segment parser"),Y=new V("file reader");function X(e){return function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];try{return Promise.resolve(e.apply(this,t))}catch(e){return Promise.reject(e)}}}function K(e,t,i){return i?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}var G=X((function(e){return new Promise((function(t,i){var r=new FileReader;r.onloadend=function(){return t(r.result||new ArrayBuffer)},r.onerror=i,r.readAsArrayBuffer(e)}))})),Q=X((function(e){return C(e).then((function(e){return e.arrayBuffer()}))})),J=X((function(e,t){return K(t(e),(function(e){return new z(e)}))})),Z=X((function(e,t,i){var r=new(Y.get(i))(e,t);return K(r.read(),(function(){return r}))})),ee=X((function(e,t,i,r){return Y.has(i)?Z(e,t,i):r?J(e,r):(N("Parser ".concat(i," is not loaded")),K())})),te="Invalid input argument";function ie(e,t){return(i=e).startsWith("data:")||i.length>1e4?Z(e,t,"base64"):E?ee(e,t,"url",Q):M?Z(e,t,"fs"):void N(te);var i}var re=function(e){l(r,e);var i=g(r);function r(){return t(this,r),i.apply(this,arguments)}return o(r,[{key:"tagKeys",get:function(){return this.allKeys||(this.allKeys=S(this.keys())),this.allKeys}},{key:"tagValues",get:function(){return this.allValues||(this.allValues=S(this.values())),this.allValues}}]),r}(d(O));function ne(e,t,i){var r=new re,n=i;Array.isArray(n)||("function"==typeof n.entries&&(n=n.entries()),n=S(n));for(var s=0;s<n.length;s++){var o=n[s],a=o[0],l=o[1];r.set(a,l)}if(Array.isArray(t)){var u=t;Array.isArray(u)||("function"==typeof u.entries&&(u=u.entries()),u=S(u));for(var c=0;c<u.length;c++){var h=u[c];e.set(h,r)}}else e.set(t,r);return r}function se(e,t,i){var r,n=e.get(t),s=i;Array.isArray(s)||("function"==typeof s.entries&&(s=s.entries()),s=S(s));for(var o=0;o<s.length;o++)r=s[o],n.set(r[0],r[1])}var oe=A(),ae=A(),le=A(),ue=37500,ce=37510,he=33723,pe=34675,de=34665,fe=34853,me=40965,ge=["chunked","firstChunkSize","firstChunkSizeNode","firstChunkSizeBrowser","chunkSize","chunkLimit"],ve=["jfif","xmp","icc","iptc","ihdr"],ye=["tiff"].concat(ve),be=["ifd0","ifd1","exif","gps","interop"],we=[].concat(ye,be),_e=["makerNote","userComment"],Se=["translateKeys","translateValues","reviveValues","multiSegment"],ke=[].concat(Se,["sanitize","mergeOutput","silentErrors"]),Pe=function(){function e(){t(this,e)}return o(e,[{key:"translate",get:function(){return this.translateKeys||this.translateValues||this.reviveValues}}]),e}(),Ce=function(e){l(r,e);var i=g(r);function r(e,n,s,o){var l;if(t(this,r),a(f(l=i.call(this)),"enabled",!1),a(f(l),"skip",x()),a(f(l),"pick",x()),a(f(l),"deps",x()),a(f(l),"translateKeys",!1),a(f(l),"translateValues",!1),a(f(l),"reviveValues",!1),l.key=e,l.enabled=n,l.parse=l.enabled,l.applyInheritables(o),l.canBeFiltered=be.includes(e),l.canBeFiltered&&(l.dict=oe.get(e)),void 0!==s)if(Array.isArray(s))l.parse=l.enabled=!0,l.canBeFiltered&&s.length>0&&l.translateTagSet(s,l.pick);else if("object"==typeof s){if(l.enabled=!0,l.parse=!1!==s.parse,l.canBeFiltered){var u=s.pick,c=s.skip;u&&u.length>0&&l.translateTagSet(u,l.pick),c&&c.length>0&&l.translateTagSet(c,l.skip)}l.applyInheritables(s)}else!0===s||!1===s?l.parse=l.enabled=s:N("Invalid options argument: ".concat(s));return l}return o(r,[{key:"needed",get:function(){return this.enabled||this.deps.size>0}},{key:"applyInheritables",value:function(e){var t,i,r=Se;Array.isArray(r)||("function"==typeof r.entries&&(r=r.entries()),r=S(r));for(var n=0;n<r.length;n++)void 0!==(i=e[t=r[n]])&&(this[t]=i)}},{key:"translateTagSet",value:function(e,t){if(this.dict){var i,r,n=this.dict,s=n.tagKeys,o=n.tagValues,a=e;Array.isArray(a)||("function"==typeof a.entries&&(a=a.entries()),a=S(a));for(var l=0;l<a.length;l++)"string"==typeof(i=a[l])?(-1===(r=o.indexOf(i))&&(r=s.indexOf(Number(i))),-1!==r&&t.add(Number(s[r]))):t.add(i)}else{var u=e;Array.isArray(u)||("function"==typeof u.entries&&(u=u.entries()),u=S(u));for(var c=0;c<u.length;c++){var h=u[c];t.add(h)}}}},{key:"finalizeFilters",value:function(){!this.enabled&&this.deps.size>0?(this.enabled=!0,Fe(this.pick,this.deps)):this.enabled&&this.pick.size>0&&Fe(this.pick,this.deps)}}]),r}(Pe),xe={jfif:!1,tiff:!0,xmp:!1,icc:!1,iptc:!1,ifd0:!0,ifd1:!1,exif:!0,gps:!0,interop:!1,ihdr:void 0,makerNote:!1,userComment:!1,multiSegment:!1,skip:[],pick:[],translateKeys:!0,translateValues:!0,reviveValues:!0,sanitize:!0,mergeOutput:!0,silentErrors:!0,chunked:!0,firstChunkSize:void 0,firstChunkSizeNode:512,firstChunkSizeBrowser:65536,chunkSize:65536,chunkLimit:5},Ae=A(),Oe=function(e){l(r,e);var i=g(r);function r(e){var n;return t(this,r),n=i.call(this),!0===e?n.setupFromTrue():void 0===e?n.setupFromUndefined():Array.isArray(e)?n.setupFromArray(e):"object"==typeof e?n.setupFromObject(e):N("Invalid options argument ".concat(e)),void 0===n.firstChunkSize&&(n.firstChunkSize=E?n.firstChunkSizeBrowser:n.firstChunkSizeNode),n.mergeOutput&&(n.ifd1.enabled=!1),n.filterNestedSegmentTags(),n.traverseTiffDependencyTree(),n.checkLoadedPlugins(),n}return o(r,[{key:"setupFromUndefined",value:function(){var e,t=ge;Array.isArray(t)||("function"==typeof t.entries&&(t=t.entries()),t=S(t));for(var i=0;i<t.length;i++)this[e=t[i]]=xe[e];var r=ke;Array.isArray(r)||("function"==typeof r.entries&&(r=r.entries()),r=S(r));for(var n=0;n<r.length;n++)this[e=r[n]]=xe[e];var s=_e;Array.isArray(s)||("function"==typeof s.entries&&(s=s.entries()),s=S(s));for(var o=0;o<s.length;o++)this[e=s[o]]=xe[e];var a=we;Array.isArray(a)||("function"==typeof a.entries&&(a=a.entries()),a=S(a));for(var l=0;l<a.length;l++)this[e=a[l]]=new Ce(e,xe[e],void 0,this)}},{key:"setupFromTrue",value:function(){var e,t=ge;Array.isArray(t)||("function"==typeof t.entries&&(t=t.entries()),t=S(t));for(var i=0;i<t.length;i++)this[e=t[i]]=xe[e];var r=ke;Array.isArray(r)||("function"==typeof r.entries&&(r=r.entries()),r=S(r));for(var n=0;n<r.length;n++)this[e=r[n]]=xe[e];var s=_e;Array.isArray(s)||("function"==typeof s.entries&&(s=s.entries()),s=S(s));for(var o=0;o<s.length;o++)this[e=s[o]]=!0;var a=we;Array.isArray(a)||("function"==typeof a.entries&&(a=a.entries()),a=S(a));for(var l=0;l<a.length;l++)this[e=a[l]]=new Ce(e,!0,void 0,this)}},{key:"setupFromArray",value:function(e){var t,i=ge;Array.isArray(i)||("function"==typeof i.entries&&(i=i.entries()),i=S(i));for(var r=0;r<i.length;r++)this[t=i[r]]=xe[t];var n=ke;Array.isArray(n)||("function"==typeof n.entries&&(n=n.entries()),n=S(n));for(var s=0;s<n.length;s++)this[t=n[s]]=xe[t];var o=_e;Array.isArray(o)||("function"==typeof o.entries&&(o=o.entries()),o=S(o));for(var a=0;a<o.length;a++)this[t=o[a]]=xe[t];var l=we;Array.isArray(l)||("function"==typeof l.entries&&(l=l.entries()),l=S(l));for(var u=0;u<l.length;u++)this[t=l[u]]=new Ce(t,!1,void 0,this);this.setupGlobalFilters(e,void 0,be)}},{key:"setupFromObject",value:function(e){var t;be.ifd0=be.ifd0||be.image,be.ifd1=be.ifd1||be.thumbnail,w(this,e);var i=ge;Array.isArray(i)||("function"==typeof i.entries&&(i=i.entries()),i=S(i));for(var r=0;r<i.length;r++)this[t=i[r]]=Ee(e[t],xe[t]);var n=ke;Array.isArray(n)||("function"==typeof n.entries&&(n=n.entries()),n=S(n));for(var s=0;s<n.length;s++)this[t=n[s]]=Ee(e[t],xe[t]);var o=_e;Array.isArray(o)||("function"==typeof o.entries&&(o=o.entries()),o=S(o));for(var a=0;a<o.length;a++)this[t=o[a]]=Ee(e[t],xe[t]);var l=ye;Array.isArray(l)||("function"==typeof l.entries&&(l=l.entries()),l=S(l));for(var u=0;u<l.length;u++)this[t=l[u]]=new Ce(t,xe[t],e[t],this);var c=be;Array.isArray(c)||("function"==typeof c.entries&&(c=c.entries()),c=S(c));for(var h=0;h<c.length;h++)this[t=c[h]]=new Ce(t,xe[t],e[t],this.tiff);this.setupGlobalFilters(e.pick,e.skip,be,we),!0===e.tiff?this.batchEnableWithBool(be,!0):!1===e.tiff?this.batchEnableWithUserValue(be,e):Array.isArray(e.tiff)?this.setupGlobalFilters(e.tiff,void 0,be):"object"==typeof e.tiff&&this.setupGlobalFilters(e.tiff.pick,e.tiff.skip,be)}},{key:"batchEnableWithBool",value:function(e,t){var i=e;Array.isArray(i)||("function"==typeof i.entries&&(i=i.entries()),i=S(i));for(var r=0;r<i.length;r++)this[i[r]].enabled=t}},{key:"batchEnableWithUserValue",value:function(e,t){var i=e;Array.isArray(i)||("function"==typeof i.entries&&(i=i.entries()),i=S(i));for(var r=0;r<i.length;r++){var n=i[r],s=t[n];this[n].enabled=!1!==s&&void 0!==s}}},{key:"setupGlobalFilters",value:function(e,t,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:i;if(e&&e.length){var n=r;Array.isArray(n)||("function"==typeof n.entries&&(n=n.entries()),n=S(n));for(var s=0;s<n.length;s++)this[n[s]].enabled=!1;var o=Te(e,i);Array.isArray(o)||("function"==typeof o.entries&&(o=o.entries()),o=S(o));for(var a=0;a<o.length;a++){var l=o[a],u=l[0],c=l[1];Fe(this[u].pick,c),this[u].enabled=!0}}else if(t&&t.length){var h=Te(t,i);Array.isArray(h)||("function"==typeof h.entries&&(h=h.entries()),h=S(h));for(var p=0;p<h.length;p++){var d=h[p],f=d[0],m=d[1];Fe(this[f].skip,m)}}}},{key:"filterNestedSegmentTags",value:function(){var e=this.ifd0,t=this.exif,i=this.xmp,r=this.iptc,n=this.icc;this.makerNote?t.deps.add(ue):t.skip.add(ue),this.userComment?t.deps.add(ce):t.skip.add(ce),i.enabled||e.skip.add(700),r.enabled||e.skip.add(he),n.enabled||e.skip.add(pe)}},{key:"traverseTiffDependencyTree",value:function(){var e=this,t=this.ifd0,i=this.exif,r=this.gps;this.interop.needed&&(i.deps.add(me),t.deps.add(me)),i.needed&&t.deps.add(de),r.needed&&t.deps.add(fe),this.tiff.enabled=be.some((function(t){return!0===e[t].enabled}))||this.makerNote||this.userComment;var n=be;Array.isArray(n)||("function"==typeof n.entries&&(n=n.entries()),n=S(n));for(var s=0;s<n.length;s++)this[n[s]].finalizeFilters()}},{key:"onlyTiff",get:function(){var e=this;return!ve.map((function(t){return e[t].enabled})).some((function(e){return!0===e}))&&this.tiff.enabled}},{key:"checkLoadedPlugins",value:function(){var e=ye;Array.isArray(e)||("function"==typeof e.entries&&(e=e.entries()),e=S(e));for(var t=0;t<e.length;t++){var i=e[t];this[i].enabled&&!q.has(i)&&H("segment parser",i)}}}],[{key:"useCached",value:function(e){var t=Ae.get(e);return void 0!==t||(t=new this(e),Ae.set(e,t)),t}}]),r}(Pe);function Te(e,t){var i,r,n,s=[],o=t;Array.isArray(o)||("function"==typeof o.entries&&(o=o.entries()),o=S(o));for(var a=0;a<o.length;a++){r=o[a],i=[];var l=oe.get(r);Array.isArray(l)||("function"==typeof l.entries&&(l=l.entries()),l=S(l));for(var u=0;u<l.length;u++)n=l[u],(e.includes(n[0])||e.includes(n[1]))&&i.push(n[0]);i.length&&s.push([r,i])}return s}function Ee(e,t){return void 0!==e?e:void 0!==t?t:void 0}function Fe(e,t){var i=t;Array.isArray(i)||("function"==typeof i.entries&&(i=i.entries()),i=S(i));for(var r=0;r<i.length;r++){var n=i[r];e.add(n)}}function Me(e,t,i){return i?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function De(){}function Re(e,t){if(!t)return e&&e.then?e.then(De):Promise.resolve()}function Ue(e,t){var i=e();return i&&i.then?i.then(t):t(i)}a(Oe,"default",xe);var Ie,Ne=function(){function e(i){t(this,e),a(this,"parsers",{}),this.options=Oe.useCached(i)}return o(e,[{key:"setup",value:function(){if(!this.fileParser){var e=this.file,t=e.getUint16(0),i=W;Array.isArray(i)||("function"==typeof i.entries&&(i=i.entries()),i=S(i));for(var r=0;r<i.length;r++){var n=i[r],s=n[0],o=n[1];if(o.canHandle(e,t))return this.fileParser=new o(this.options,this.file,this.parsers),e[s]=!0}N("Unknown file format")}}},{key:"read",value:function(e){try{var t=this;return Me(function(e,t){return"string"==typeof e?ie(e,t):E&&!F&&e instanceof HTMLImageElement?ie(e.src,t):e instanceof Uint8Array||e instanceof ArrayBuffer||e instanceof DataView?new z(e):E&&e instanceof Blob?ee(e,t,"blob",G):void N(te)}(e,t.options),(function(e){t.file=e}))}catch(e){return Promise.reject(e)}}},{key:"parse",value:function(){try{var e=this;e.setup();var t={},i=[];return Ue((function(){return e.options.silentErrors?Me(e.doParse(t,i).catch((function(e){return i.push(e)})),(function(){i.push.apply(i,e.fileParser.errors)})):Re(e.doParse(t,i))}),(function(){return e.file.close&&e.file.close(),e.options.silentErrors&&i.length>0&&(t.errors=i),I(r=t)?void 0:r;var r}))}catch(e){return Promise.reject(e)}}},{key:"doParse",value:function(e,t){try{var i=this;return Me(i.fileParser.parse(),(function(){var r,n=y(i.parsers).map((r=function(t){return Me(t.parse(),(function(i){t.assignToOutput(e,i)}))},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(r.apply(this,e))}catch(e){return Promise.reject(e)}}));if(i.options.silentErrors){var s=function(e){return t.push(e)};n=n.map((function(e){return e.catch(s)}))}return Re(Promise.all(n))}))}catch(e){return Promise.reject(e)}}},{key:"extractThumbnail",value:function(){try{var e=this;e.setup();var t,i=e.options,r=e.file,n=q.get("tiff",i);return Ue((function(){if(!r.tiff)return function(e){var t=e();if(t&&t.then)return t.then(De)}((function(){if(r.jpeg)return Me(e.fileParser.getOrFindSegment("tiff"),(function(e){t=e}))}));t={start:0,type:"tiff"}}),(function(){if(void 0!==t)return Me(e.fileParser.ensureSegmentChunk(t),(function(t){return Me((e.parsers.tiff=new n(t,i,r)).extractThumbnail(),(function(e){return r.close&&r.close(),e}))}))}))}catch(e){return Promise.reject(e)}}}]),e}(),Be=(Ie=function(e,t){var i,r,n,s=new Ne(t);return i=s.read(e),r=function(){return s.parse()},n?r?r(i):i:(i&&i.then||(i=Promise.resolve(i)),r?i.then(r):i)},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(Ie.apply(this,e))}catch(e){return Promise.reject(e)}}),Le=Object.freeze({__proto__:null,parse:Be,Exifr:Ne,fileParsers:W,segmentParsers:q,fileReaders:Y,tagKeys:oe,tagValues:ae,tagRevivers:le,createDictionary:ne,extendDictionary:se,fetchUrlAsArrayBuffer:Q,readBlobAsArrayBuffer:G,chunkedProps:ge,otherSegments:ve,segments:ye,tiffBlocks:be,segmentsAndBlocks:we,tiffExtractables:_e,inheritables:Se,allFormatters:ke,Options:Oe});function $e(){}var je=function(){function e(i,r,n){var s=this;t(this,e),a(this,"errors",[]),a(this,"ensureSegmentChunk",function(e){return function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];try{return Promise.resolve(e.apply(this,t))}catch(e){return Promise.reject(e)}}}((function(e){var t,i,r,n=e.start,o=e.size||65536;return t=function(){if(s.file.chunked)return function(e){var t=e();if(t&&t.then)return t.then($e)}((function(){if(!s.file.available(n,o))return function(e){if(e&&e.then)return e.then($e)}(function(e,t){try{var i=e()}catch(e){return t(e)}return i&&i.then?i.then(void 0,t):i}((function(){return t=s.file.readChunk(n,o),i=function(t){e.chunk=t},r?i?i(t):t:(t&&t.then||(t=Promise.resolve(t)),i?t.then(i):t);var t,i,r}),(function(t){N("Couldn't read segment: ".concat(JSON.stringify(e),". ").concat(t.message))})));e.chunk=s.file.subarray(n,o)}));s.file.byteLength>n+o?e.chunk=s.file.subarray(n,o):void 0===e.size?e.chunk=s.file.subarray(n):N("Segment unreachable: "+JSON.stringify(e))},i=function(){return e.chunk},(r=t())&&r.then?r.then(i):i(r)}))),this.extendOptions&&this.extendOptions(i),this.options=i,this.file=r,this.parsers=n}return o(e,[{key:"injectSegment",value:function(e,t){this.options[e].enabled&&this.createParser(e,t)}},{key:"createParser",value:function(e,t){var i=new(q.get(e))(t,this.options,this.file);return this.parsers[e]=i}},{key:"createParsers",value:function(e){var t=e;Array.isArray(t)||("function"==typeof t.entries&&(t=t.entries()),t=S(t));for(var i=0;i<t.length;i++){var r=t[i],n=r.type,s=r.chunk,o=this.options[n];if(o&&o.enabled){var a=this.parsers[n];a&&a.append||a||this.createParser(n,s)}}}},{key:"readSegments",value:function(e){try{var t=e.map(this.ensureSegmentChunk);return function(e,t){return e&&e.then?e.then($e):Promise.resolve()}(Promise.all(t))}catch(e){return Promise.reject(e)}}}]),e}(),ze=function(){function e(i){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2?arguments[2]:void 0;t(this,e),a(this,"errors",[]),a(this,"raw",A()),a(this,"handleError",(function(e){if(!r.options.silentErrors)throw e;r.errors.push(e.message)})),this.chunk=this.normalizeInput(i),this.file=s,this.type=this.constructor.type,this.globalOptions=this.options=n,this.localOptions=n[this.type],this.canTranslate=this.localOptions&&this.localOptions.translate}return o(e,[{key:"normalizeInput",value:function(e){return e instanceof z?e:new z(e)}},{key:"translate",value:function(){this.canTranslate&&(this.translated=this.translateBlock(this.raw,this.type))}},{key:"output",get:function(){return this.translated?this.translated:this.raw?_(this.raw):void 0}},{key:"translateBlock",value:function(e,t){var i=le.get(t),r=ae.get(t),n=oe.get(t),s=this.options[t],o=s.reviveValues&&!!i,a=s.translateValues&&!!r,l=s.translateKeys&&!!n,u={},c=e;Array.isArray(c)||("function"==typeof c.entries&&(c=c.entries()),c=S(c));for(var h=0;h<c.length;h++){var p=c[h],d=p[0],f=p[1];o&&i.has(d)?f=i.get(d)(f):a&&r.has(d)&&(f=this.translateValue(f,r.get(d))),l&&n.has(d)&&(d=n.get(d)||d),u[d]=f}return u}},{key:"translateValue",value:function(e,t){return t[e]||t.DEFAULT||e}},{key:"assignToOutput",value:function(e,t){this.assignObjectToOutput(e,this.constructor.type,t)}},{key:"assignObjectToOutput",value:function(e,t,i){if(this.globalOptions.mergeOutput)return w(e,i);e[t]?w(e[t],i):e[t]=i}}],[{key:"findPosition",value:function(e,t){var i=e.getUint16(t+2)+2,r="function"==typeof this.headerLength?this.headerLength(e,t,i):this.headerLength,n=t+r,s=i-r;return{offset:t,length:i,headerLength:r,start:n,size:s,end:n+s}}},{key:"parse",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new this(e,new Oe(a({},this.type,t))).parse()}}]),e}();function He(e,t,i){return i?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function Ve(){}function We(e,t){if(!t)return e&&e.then?e.then(Ve):Promise.resolve()}function qe(e){var t=e();if(t&&t.then)return t.then(Ve)}function Ye(e,t){var i=e();return i&&i.then?i.then(t):t(i)}function Xe(e,t,i){if(!e.s){if(i instanceof Ke){if(!i.s)return void(i.o=Xe.bind(null,e,t));1&t&&(t=i.s),i=i.v}if(i&&i.then)return void i.then(Xe.bind(null,e,t),Xe.bind(null,e,2));e.s=t,e.v=i;var r=e.o;r&&r(e)}}a(ze,"headerLength",4),a(ze,"type",void 0),a(ze,"multiSegment",!1),a(ze,"canHandle",(function(){return!1}));var Ke=function(){function e(){}return e.prototype.then=function(t,i){var r=new e,n=this.s;if(n){var s=1&n?t:i;if(s){try{Xe(r,1,s(this.v))}catch(e){Xe(r,2,e)}return r}return this}return this.o=function(e){try{var n=e.v;1&e.s?Xe(r,1,t?t(n):n):i?Xe(r,1,i(n)):Xe(r,2,n)}catch(e){Xe(r,2,e)}},r},e}();function Ge(e){return e instanceof Ke&&1&e.s}function Qe(e,t,i){for(var r;;){var n=e();if(Ge(n)&&(n=n.v),!n)return s;if(n.then){r=0;break}var s=i();if(s&&s.then){if(!Ge(s)){r=1;break}s=s.s}if(t){var o=t();if(o&&o.then&&!Ge(o)){r=2;break}}}var a=new Ke,l=Xe.bind(null,a,2);return(0===r?n.then(c):1===r?s.then(u):o.then(h)).then(void 0,l),a;function u(r){s=r;do{if(t&&(o=t())&&o.then&&!Ge(o))return void o.then(h).then(void 0,l);if(!(n=e())||Ge(n)&&!n.v)return void Xe(a,1,s);if(n.then)return void n.then(c).then(void 0,l);Ge(s=i())&&(s=s.v)}while(!s||!s.then);s.then(u).then(void 0,l)}function c(e){e?(s=i())&&s.then?s.then(u).then(void 0,l):u(s):Xe(a,1,s)}function h(){(n=e())?n.then?n.then(c).then(void 0,l):c(n):Xe(a,1,s)}}function Je(e){return 192===e||194===e||196===e||219===e||221===e||218===e||254===e}function Ze(e){return e>=224&&e<=239}function et(e,t,i){var r=q;Array.isArray(r)||("function"==typeof r.entries&&(r=r.entries()),r=S(r));for(var n=0;n<r.length;n++){var s=r[n],o=s[0];if(s[1].canHandle(e,t,i))return o}}var tt=function(e){l(r,e);var i=g(r);function r(){var e;t(this,r);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return a(f(e=i.call.apply(i,[this].concat(s))),"appSegments",[]),a(f(e),"jpegSegments",[]),a(f(e),"unknownSegments",[]),e}return o(r,[{key:"parse",value:function(){try{var e=this;return He(e.findAppSegments(),(function(){return He(e.readSegments(e.appSegments),(function(){e.mergeMultiSegments(),e.createParsers(e.mergedAppSegments||e.appSegments)}))}))}catch(e){return Promise.reject(e)}}},{key:"setupSegmentFinderArgs",value:function(e){var t=this;!0===e?(this.findAll=!0,this.wanted=x(q.keyList())):(e=void 0===e?q.keyList().filter((function(e){return t.options[e].enabled})):e.filter((function(e){return t.options[e].enabled&&q.has(e)})),this.findAll=!1,this.remaining=x(e),this.wanted=x(e)),this.unfinishedMultiSegment=!1}},{key:"findAppSegments",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;try{var i=this;i.setupSegmentFinderArgs(t);var r=i.file,n=i.findAll,s=i.wanted,o=i.remaining;return Ye((function(){if(!n&&i.file.chunked)return n=S(s).some((function(e){var t=q.get(e),r=i.options[e];return t.multiSegment&&r.multiSegment})),qe((function(){if(n)return We(i.file.readWhole())}))}),(function(){var t=!1;if(e=i.findAppSegmentsInRange(e,r.byteLength),!i.options.onlyTiff)return function(){if(r.chunked){var n=!1;return Qe((function(){return!t&&o.size>0&&!n&&(!!r.canReadNextChunk||!!i.unfinishedMultiSegment)}),void 0,(function(){var s=r.nextChunkOffset,o=i.appSegments.some((function(e){return!i.file.available(e.offset||e.start,e.length||e.size)}));return Ye((function(){return He(e>s&&!o?r.readNextChunk(e):r.readNextChunk(s),(function(e){n=!e}))}),(function(){void 0===(e=i.findAppSegmentsInRange(e,r.byteLength))&&(t=!0)}))}))}}()}))}catch(e){return Promise.reject(e)}}},{key:"findAppSegmentsInRange",value:function(e,t){t-=2;for(var i,r,n,s,o,a,l=this.file,u=this.findAll,c=this.wanted,h=this.remaining,p=this.options;e<t;e++)if(255===l.getUint8(e))if(Ze(i=l.getUint8(e+1))){if(r=l.getUint16(e+2),(n=et(l,e,r))&&c.has(n)&&(o=(s=q.get(n)).findPosition(l,e),a=p[n],o.type=n,this.appSegments.push(o),!u&&(s.multiSegment&&a.multiSegment?(this.unfinishedMultiSegment=o.chunkNumber<o.chunkCount,this.unfinishedMultiSegment||h.delete(n)):h.delete(n),0===h.size)))break;p.recordUnknownSegments&&((o=ze.findPosition(l,e)).marker=i,this.unknownSegments.push(o)),e+=r+1}else if(Je(i)){if(r=l.getUint16(e+2),218===i&&!1!==p.stopAfterSos)return;p.recordJpegSegments&&this.jpegSegments.push({offset:e,length:r,marker:i}),e+=r+1}return e}},{key:"mergeMultiSegments",value:function(){var e=this;if(this.appSegments.some((function(e){return e.multiSegment}))){var t=function(e,t){for(var i,r,n,s=A(),o=0;o<e.length;o++)r=(i=e[o])[t],s.has(r)?n=s.get(r):s.set(r,n=[]),n.push(i);return S(s)}(this.appSegments,"type");this.mergedAppSegments=t.map((function(t){var i=t[0],r=t[1],n=q.get(i,e.options);return n.handleMultiSegments?{type:i,chunk:n.handleMultiSegments(r)}:r[0]}))}}},{key:"getSegment",value:function(e){return this.appSegments.find((function(t){return t.type===e}))}},{key:"getOrFindSegment",value:function(e){try{var t=this,i=t.getSegment(e);return Ye((function(){if(void 0===i)return He(t.findAppSegments(0,[e]),(function(){i=t.getSegment(e)}))}),(function(){return i}))}catch(e){return Promise.reject(e)}}}],[{key:"canHandle",value:function(e,t){return 65496===t}}]),r}(je);function it(){}function rt(e,t){if(!t)return e&&e.then?e.then(it):Promise.resolve()}function nt(e,t){var i=e();return i&&i.then?i.then(t):t(i)}a(tt,"type","jpeg"),W.set("jpeg",tt);var st=[void 0,1,1,2,4,8,1,1,2,4,8,4,8,4],ot=function(e){l(r,e);var i=g(r);function r(){return t(this,r),i.apply(this,arguments)}return o(r,[{key:"parse",value:function(){try{var e=this;e.parseHeader();var t=e.options;return nt((function(){if(t.ifd0.enabled)return rt(e.parseIfd0Block())}),(function(){return nt((function(){if(t.exif.enabled)return rt(e.safeParse("parseExifBlock"))}),(function(){return nt((function(){if(t.gps.enabled)return rt(e.safeParse("parseGpsBlock"))}),(function(){return nt((function(){if(t.interop.enabled)return rt(e.safeParse("parseInteropBlock"))}),(function(){return nt((function(){if(t.ifd1.enabled)return rt(e.safeParse("parseThumbnailBlock"))}),(function(){return e.createOutput()}))}))}))}))}))}catch(e){return Promise.reject(e)}}},{key:"safeParse",value:function(e){var t=this[e]();return void 0!==t.catch&&(t=t.catch(this.handleError)),t}},{key:"findIfd0Offset",value:function(){void 0===this.ifd0Offset&&(this.ifd0Offset=this.chunk.getUint32(4))}},{key:"findIfd1Offset",value:function(){if(void 0===this.ifd1Offset){this.findIfd0Offset();var e=this.chunk.getUint16(this.ifd0Offset),t=this.ifd0Offset+2+12*e;this.ifd1Offset=this.chunk.getUint32(t)}}},{key:"parseBlock",value:function(e,t){var i=A();return this[t]=i,this.parseTags(e,t,i),i}},{key:"parseIfd0Block",value:function(){try{var e=this;if(e.ifd0)return;var t=e.file;return e.findIfd0Offset(),e.ifd0Offset<8&&N("Malformed EXIF data"),!t.chunked&&e.ifd0Offset>t.byteLength&&N("IFD0 offset points to outside of file.\nthis.ifd0Offset: ".concat(e.ifd0Offset,", file.byteLength: ").concat(t.byteLength)),nt((function(){if(t.tiff)return rt(t.ensureChunk(e.ifd0Offset,B(e.options)))}),(function(){var t=e.parseBlock(e.ifd0Offset,"ifd0");if(0!==t.size)return e.exifOffset=t.get(de),e.interopOffset=t.get(me),e.gpsOffset=t.get(fe),e.xmp=t.get(700),e.iptc=t.get(he),e.icc=t.get(pe),e.options.sanitize&&(t.delete(de),t.delete(me),t.delete(fe),t.delete(700),t.delete(he),t.delete(pe)),t}))}catch(e){return Promise.reject(e)}}},{key:"parseExifBlock",value:function(){try{var e=this;if(e.exif)return;return nt((function(){if(!e.ifd0)return rt(e.parseIfd0Block())}),(function(){if(void 0!==e.exifOffset)return nt((function(){if(e.file.tiff)return rt(e.file.ensureChunk(e.exifOffset,B(e.options)))}),(function(){var t=e.parseBlock(e.exifOffset,"exif");return e.interopOffset||(e.interopOffset=t.get(me)),e.makerNote=t.get(ue),e.userComment=t.get(ce),e.options.sanitize&&(t.delete(me),t.delete(ue),t.delete(ce)),e.unpack(t,41728),e.unpack(t,41729),t}))}))}catch(e){return Promise.reject(e)}}},{key:"unpack",value:function(e,t){var i=e.get(t);i&&1===i.length&&e.set(t,i[0])}},{key:"parseGpsBlock",value:function(){try{var e=this;if(e.gps)return;return nt((function(){if(!e.ifd0)return rt(e.parseIfd0Block())}),(function(){if(void 0!==e.gpsOffset){var t=e.parseBlock(e.gpsOffset,"gps");return t&&t.has(2)&&t.has(4)&&(t.set("latitude",at.apply(void 0,t.get(2).concat([t.get(1)]))),t.set("longitude",at.apply(void 0,t.get(4).concat([t.get(3)])))),t}}))}catch(e){return Promise.reject(e)}}},{key:"parseInteropBlock",value:function(){try{var e=this;if(e.interop)return;return nt((function(){if(!e.ifd0)return rt(e.parseIfd0Block())}),(function(){return nt((function(){if(void 0===e.interopOffset&&!e.exif)return rt(e.parseExifBlock())}),(function(){if(void 0!==e.interopOffset)return e.parseBlock(e.interopOffset,"interop")}))}))}catch(e){return Promise.reject(e)}}},{key:"parseThumbnailBlock",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];try{var t=this;if(t.ifd1||t.ifd1Parsed)return;if(t.options.mergeOutput&&!e)return;return t.findIfd1Offset(),t.ifd1Offset>0&&(t.parseBlock(t.ifd1Offset,"ifd1"),t.ifd1Parsed=!0),t.ifd1}catch(e){return Promise.reject(e)}}},{key:"extractThumbnail",value:function(){try{var e=this;return e.headerParsed||e.parseHeader(),nt((function(){if(!e.ifd1Parsed)return rt(e.parseThumbnailBlock(!0))}),(function(){if(void 0!==e.ifd1){var t=e.ifd1.get(513),i=e.ifd1.get(514);return e.chunk.getUint8Array(t,i)}}))}catch(e){return Promise.reject(e)}}},{key:"image",get:function(){return this.ifd0}},{key:"thumbnail",get:function(){return this.ifd1}},{key:"createOutput",value:function(){var e,t,i,r={},n=be;Array.isArray(n)||("function"==typeof n.entries&&(n=n.entries()),n=S(n));for(var s=0;s<n.length;s++)if(!I(e=this[t=n[s]]))if(i=this.canTranslate?this.translateBlock(e,t):_(e),this.options.mergeOutput){if("ifd1"===t)continue;w(r,i)}else r[t]=i;return this.makerNote&&(r.makerNote=this.makerNote),this.userComment&&(r.userComment=this.userComment),r}},{key:"assignToOutput",value:function(e,t){if(this.globalOptions.mergeOutput)w(e,t);else{var i=b(t);Array.isArray(i)||("function"==typeof i.entries&&(i=i.entries()),i=S(i));for(var r=0;r<i.length;r++){var n=i[r],s=n[0],o=n[1];this.assignObjectToOutput(e,s,o)}}}}],[{key:"canHandle",value:function(e,t){return 225===e.getUint8(t+1)&&1165519206===e.getUint32(t+4)&&0===e.getUint16(t+8)}}]),r}(function(e){l(r,e);var i=g(r);function r(){return t(this,r),i.apply(this,arguments)}return o(r,[{key:"parseHeader",value:function(){var e=this.chunk.getUint16();18761===e?this.le=!0:19789===e&&(this.le=!1),this.chunk.le=this.le,this.headerParsed=!0}},{key:"parseTags",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:A(),r=this.options[t],n=r.pick,s=r.skip,o=(n=x(n)).size>0,a=0===s.size,l=this.chunk.getUint16(e);e+=2;for(var u=0;u<l;u++){var c=this.chunk.getUint16(e);if(o){if(n.has(c)&&(i.set(c,this.parseTag(e,c,t)),n.delete(c),0===n.size))break}else!a&&s.has(c)||i.set(c,this.parseTag(e,c,t));e+=12}return i}},{key:"parseTag",value:function(e,t,i){var r,n=this.chunk,s=n.getUint16(e+2),o=n.getUint32(e+4),a=st[s];if(a*o<=4?e+=8:e=n.getUint32(e+8),(s<1||s>13)&&N("Invalid TIFF value type. block: ".concat(i.toUpperCase(),", tag: ").concat(t.toString(16),", type: ").concat(s,", offset ").concat(e)),e>n.byteLength&&N("Invalid TIFF value offset. block: ".concat(i.toUpperCase(),", tag: ").concat(t.toString(16),", type: ").concat(s,", offset ").concat(e," is outside of chunk size ").concat(n.byteLength)),1===s)return n.getUint8Array(e,o);if(2===s)return""===(r=function(e){for(;e.endsWith("\0");)e=e.slice(0,-1);return e}(r=n.getString(e,o)).trim())?void 0:r;if(7===s)return n.getUint8Array(e,o);if(1===o)return this.parseTagValue(s,e);for(var l=new(function(e){switch(e){case 1:return Uint8Array;case 3:return Uint16Array;case 4:return Uint32Array;case 5:case 10:default:return Array;case 6:return Int8Array;case 8:return Int16Array;case 9:return Int32Array;case 11:return Float32Array;case 12:return Float64Array}}(s))(o),u=a,c=0;c<o;c++)l[c]=this.parseTagValue(s,e),e+=u;return l}},{key:"parseTagValue",value:function(e,t){var i=this.chunk;switch(e){case 1:return i.getUint8(t);case 3:return i.getUint16(t);case 4:case 13:return i.getUint32(t);case 5:return i.getUint32(t)/i.getUint32(t+4);case 6:return i.getInt8(t);case 8:return i.getInt16(t);case 9:return i.getInt32(t);case 10:return i.getInt32(t)/i.getInt32(t+4);case 11:return i.getFloat(t);case 12:return i.getDouble(t);default:N("Invalid tiff type ".concat(e))}}}]),r}(ze));function at(e,t,i,r){var n=e+t/60+i/3600;return"S"!==r&&"W"!==r||(n*=-1),n}a(ot,"type","tiff"),a(ot,"headerLength",10),q.set("tiff",ot);var lt=Object.freeze({__proto__:null,default:Le,Exifr:Ne,fileParsers:W,segmentParsers:q,fileReaders:Y,tagKeys:oe,tagValues:ae,tagRevivers:le,createDictionary:ne,extendDictionary:se,fetchUrlAsArrayBuffer:Q,readBlobAsArrayBuffer:G,chunkedProps:ge,otherSegments:ve,segments:ye,tiffBlocks:be,segmentsAndBlocks:we,tiffExtractables:_e,inheritables:Se,allFormatters:ke,Options:Oe,parse:Be});function ut(e,t,i){return i?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function ct(e){return function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];try{return Promise.resolve(e.apply(this,t))}catch(e){return Promise.reject(e)}}}var ht=ct((function(e){var t=new Ne(vt);return ut(t.read(e),(function(){return ut(t.parse(),(function(e){if(e&&e.ifd0)return e.ifd0[274]}))}))})),pt=ct((function(e){var t=new Ne(gt);return ut(t.read(e),(function(){return ut(t.parse(),(function(e){if(e&&e.gps){var t=e.gps;return{latitude:t.latitude,longitude:t.longitude}}}))}))})),dt=ct((function(e){return ut(this.thumbnail(e),(function(e){if(void 0!==e){var t=new Blob([e]);return URL.createObjectURL(t)}}))})),ft=ct((function(e){var t=new Ne(yt);return ut(t.read(e),(function(){return ut(t.extractThumbnail(),(function(e){return e&&R?D.from(e):e}))}))})),mt={ifd0:!1,ifd1:!1,exif:!1,gps:!1,interop:!1,sanitize:!1,reviveValues:!0,translateKeys:!1,translateValues:!1,mergeOutput:!1},gt=w({},mt,{firstChunkSize:4e4,gps:[1,2,3,4]}),vt=w({},mt,{firstChunkSize:4e4,ifd0:[274]}),yt=w({},mt,{tiff:!1,ifd1:!0,mergeOutput:!1}),bt=Object.freeze({1:{dimensionSwapped:!1,scaleX:1,scaleY:1,deg:0,rad:0},2:{dimensionSwapped:!1,scaleX:-1,scaleY:1,deg:0,rad:0},3:{dimensionSwapped:!1,scaleX:1,scaleY:1,deg:180,rad:180*Math.PI/180},4:{dimensionSwapped:!1,scaleX:-1,scaleY:1,deg:180,rad:180*Math.PI/180},5:{dimensionSwapped:!0,scaleX:1,scaleY:-1,deg:90,rad:90*Math.PI/180},6:{dimensionSwapped:!0,scaleX:1,scaleY:1,deg:90,rad:90*Math.PI/180},7:{dimensionSwapped:!0,scaleX:1,scaleY:-1,deg:270,rad:270*Math.PI/180},8:{dimensionSwapped:!0,scaleX:1,scaleY:1,deg:270,rad:270*Math.PI/180}});if(e.rotateCanvas=!0,e.rotateCss=!0,"object"==typeof navigator){var wt=navigator.userAgent;if(wt.includes("iPad")||wt.includes("iPhone")){var _t=wt.match(/OS (\d+)_(\d+)/);if(_t){var St=_t[1],kt=_t[2],Pt=Number(St)+.1*Number(kt);e.rotateCanvas=Pt<13.4,e.rotateCss=!1}}else if(wt.includes("OS X 10")){var Ct=wt.match(/OS X 10[_.](\d+)/)[1];e.rotateCanvas=e.rotateCss=Number(Ct)<15}if(wt.includes("Chrome/")){var xt=wt.match(/Chrome\/(\d+)/)[1];e.rotateCanvas=e.rotateCss=Number(xt)<81}else if(wt.includes("Firefox/")){var At=wt.match(/Firefox\/(\d+)/)[1];e.rotateCanvas=e.rotateCss=Number(At)<77}}function Ot(){}var Tt=function(e){l(r,e);var i=g(r);function r(){var e;t(this,r);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return a(f(e=i.call.apply(i,[this].concat(s))),"ranges",new Et),0!==e.byteLength&&e.ranges.add(0,e.byteLength),e}return o(r,[{key:"_tryExtend",value:function(e,t,i){if(0===e&&0===this.byteLength&&i){var r=new DataView(i.buffer||i,i.byteOffset,i.byteLength);this._swapDataView(r)}else{var n=e+t;if(n>this.byteLength){var s=this._extend(n).dataView;this._swapDataView(s)}}}},{key:"_extend",value:function(e){var t;t=R?D.allocUnsafe(e):new Uint8Array(e);var i=new DataView(t.buffer,t.byteOffset,t.byteLength);return t.set(new Uint8Array(this.buffer,this.byteOffset,this.byteLength),0),{uintView:t,dataView:i}}},{key:"subarray",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t=t||this._lengthToEnd(e),i&&this._tryExtend(e,t),this.ranges.add(e,t),v(u(r.prototype),"subarray",this).call(this,e,t)}},{key:"set",value:function(e,t){arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&this._tryExtend(t,e.byteLength,e);var i=v(u(r.prototype),"set",this).call(this,e,t);return this.ranges.add(t,i.byteLength),i}},{key:"ensureChunk",value:function(e,t){try{var i=this;if(!i.chunked)return;if(i.ranges.available(e,t))return;return function(e,t){return e&&e.then?e.then(Ot):Promise.resolve()}(i.readChunk(e,t))}catch(e){return Promise.reject(e)}}},{key:"available",value:function(e,t){return this.ranges.available(e,t)}}]),r}(z),Et=function(){function e(){t(this,e),a(this,"list",[])}return o(e,[{key:"length",get:function(){return this.list.length}},{key:"add",value:function(e,t){var i=e+t,r=this.list.filter((function(t){return Ft(e,t.offset,i)||Ft(e,t.end,i)}));if(r.length>0){e=Math.min.apply(Math,[e].concat(r.map((function(e){return e.offset})))),t=(i=Math.max.apply(Math,[i].concat(r.map((function(e){return e.end})))))-e;var n=r.shift();n.offset=e,n.length=t,n.end=i,this.list=this.list.filter((function(e){return!r.includes(e)}))}else this.list.push({offset:e,length:t,end:i})}},{key:"available",value:function(e,t){var i=e+t;return this.list.some((function(t){return t.offset<=e&&i<=t.end}))}}]),e}();function Ft(e,t,i){return e<=t&&t<=i}function Mt(){}function Dt(e,t){if(!t)return e&&e.then?e.then(Mt):Promise.resolve()}function Rt(e,t,i){return i?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}var Ut=function(e){l(r,e);var i=g(r);function r(){return t(this,r),i.apply(this,arguments)}return o(r,[{key:"readWhole",value:function(){try{var e=this;return e.chunked=!1,Rt(G(e.input),(function(t){e._swapArrayBuffer(t)}))}catch(e){return Promise.reject(e)}}},{key:"readChunked",value:function(){return this.chunked=!0,this.size=this.input.size,v(u(r.prototype),"readChunked",this).call(this)}},{key:"_readChunk",value:function(e,t){try{var i=this,r=t?e+t:void 0,n=i.input.slice(e,r);return Rt(G(n),(function(t){return i.set(t,e,!0)}))}catch(e){return Promise.reject(e)}}}]),r}(function(e){l(r,e);var i=g(r);function r(e,n){var s;return t(this,r),a(f(s=i.call(this,0)),"chunksRead",0),s.input=e,s.options=n,s}return o(r,[{key:"readWhole",value:function(){try{var e=this;return e.chunked=!1,Dt(e.readChunk(e.nextChunkOffset))}catch(e){return Promise.reject(e)}}},{key:"readChunked",value:function(){try{var e=this;return e.chunked=!0,Dt(e.readChunk(0,e.options.firstChunkSize))}catch(e){return Promise.reject(e)}}},{key:"readNextChunk",value:function(e){try{var t=this;if(void 0===e&&(e=t.nextChunkOffset),t.fullyRead)return t.chunksRead++,!1;var i=t.options.chunkSize;return r=t.readChunk(e,i),n=function(e){return!!e&&e.byteLength===i},s?n?n(r):r:(r&&r.then||(r=Promise.resolve(r)),n?r.then(n):r)}catch(e){return Promise.reject(e)}var r,n,s}},{key:"readChunk",value:function(e,t){try{var i=this;if(i.chunksRead++,0===(t=i.safeWrapAddress(e,t)))return;return i._readChunk(e,t)}catch(e){return Promise.reject(e)}}},{key:"safeWrapAddress",value:function(e,t){return void 0!==this.size&&e+t>this.size?Math.max(0,this.size-e):t}},{key:"nextChunkOffset",get:function(){if(0!==this.ranges.list.length)return this.ranges.list[0].length}},{key:"canReadNextChunk",get:function(){return this.chunksRead<this.options.chunkLimit}},{key:"fullyRead",get:function(){return void 0!==this.size&&this.nextChunkOffset===this.size}},{key:"read",value:function(){return this.options.chunked?this.readChunked():this.readWhole()}},{key:"close",value:function(){}}]),r}(Tt));Y.set("blob",Ut),e.Exifr=Ne,e.Options=Oe,e.allFormatters=ke,e.chunkedProps=ge,e.createDictionary=ne,e.default=lt,e.disableAllOptions=mt,e.extendDictionary=se,e.fetchUrlAsArrayBuffer=Q,e.fileParsers=W,e.fileReaders=Y,e.gps=pt,e.gpsOnlyOptions=gt,e.inheritables=Se,e.orientation=ht,e.orientationOnlyOptions=vt,e.otherSegments=ve,e.parse=Be,e.readBlobAsArrayBuffer=G,e.rotation=function(t){return ut(ht(t),(function(t){return w({canvas:e.rotateCanvas,css:e.rotateCss},bt[t])}))},e.rotations=bt,e.segmentParsers=q,e.segments=ye,e.segmentsAndBlocks=we,e.tagKeys=oe,e.tagRevivers=le,e.tagValues=ae,e.thumbnail=ft,e.thumbnailOnlyOptions=yt,e.thumbnailUrl=dt,e.tiffBlocks=be,e.tiffExtractables=_e,Object.defineProperty(e,"__esModule",{value:!0})}(t)},645:(e,t)=>{t.read=function(e,t,i,r,n){var s,o,a=8*n-r-1,l=(1<<a)-1,u=l>>1,c=-7,h=i?n-1:0,p=i?-1:1,d=e[t+h];for(h+=p,s=d&(1<<-c)-1,d>>=-c,c+=a;c>0;s=256*s+e[t+h],h+=p,c-=8);for(o=s&(1<<-c)-1,s>>=-c,c+=r;c>0;o=256*o+e[t+h],h+=p,c-=8);if(0===s)s=1-u;else{if(s===l)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,r),s-=u}return(d?-1:1)*o*Math.pow(2,s-r)},t.write=function(e,t,i,r,n,s){var o,a,l,u=8*s-n-1,c=(1<<u)-1,h=c>>1,p=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:s-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),(t+=o+h>=1?p/l:p*Math.pow(2,1-h))*l>=2&&(o++,l/=2),o+h>=c?(a=0,o=c):o+h>=1?(a=(t*l-1)*Math.pow(2,n),o+=h):(a=t*Math.pow(2,h-1)*Math.pow(2,n),o=0));n>=8;e[i+d]=255&a,d+=f,a/=256,n-=8);for(o=o<<n|a,u+=n;u>0;e[i+d]=255&o,d+=f,o/=256,u-=8);e[i+d-f]|=128*m}},81:e=>{e.exports=function(e,t){if(e===t)return!0;for(var i in e)if(!(i in t))return!1;for(var i in t)if(e[i]!==t[i])return!1;return!0}},5826:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},1296:(e,t,i)=>{var r=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt,l="object"==typeof i.g&&i.g&&i.g.Object===Object&&i.g,u="object"==typeof self&&self&&self.Object===Object&&self,c=l||u||Function("return this")(),h=Object.prototype.toString,p=Math.max,d=Math.min,f=function(){return c.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==h.call(e)}(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var i=s.test(e);return i||o.test(e)?a(e.slice(2),i?2:8):n.test(e)?NaN:+e}e.exports=function(e,t,i){var r,n,s,o,a,l,u=0,c=!1,h=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var i=r,s=n;return r=n=void 0,u=t,o=e.apply(s,i)}function b(e){return u=e,a=setTimeout(_,t),c?y(e):o}function w(e){var i=e-l;return void 0===l||i>=t||i<0||h&&e-u>=s}function _(){var e=f();if(w(e))return S(e);a=setTimeout(_,function(e){var i=t-(e-l);return h?d(i,s-(e-u)):i}(e))}function S(e){return a=void 0,v&&r?y(e):(r=n=void 0,o)}function k(){var e=f(),i=w(e);if(r=arguments,n=this,l=e,i){if(void 0===a)return b(l);if(h)return a=setTimeout(_,t),y(l)}return void 0===a&&(a=setTimeout(_,t)),o}return t=g(t)||0,m(i)&&(c=!!i.leading,s=(h="maxWait"in i)?p(g(i.maxWait)||0,t):s,v="trailing"in i?!!i.trailing:v),k.cancel=function(){void 0!==a&&clearTimeout(a),u=0,r=l=n=a=void 0},k.flush=function(){return void 0===a?o:S(f())},k}},3096:(e,t,i)=>{var r="Expected a function",n=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,a=/^0o[0-7]+$/i,l=parseInt,u="object"==typeof i.g&&i.g&&i.g.Object===Object&&i.g,c="object"==typeof self&&self&&self.Object===Object&&self,h=u||c||Function("return this")(),p=Object.prototype.toString,d=Math.max,f=Math.min,m=function(){return h.Date.now()};function g(e,t,i){var n,s,o,a,l,u,c=0,h=!1,p=!1,g=!0;if("function"!=typeof e)throw new TypeError(r);function b(t){var i=n,r=s;return n=s=void 0,c=t,a=e.apply(r,i)}function w(e){return c=e,l=setTimeout(S,t),h?b(e):a}function _(e){var i=e-u;return void 0===u||i>=t||i<0||p&&e-c>=o}function S(){var e=m();if(_(e))return k(e);l=setTimeout(S,function(e){var i=t-(e-u);return p?f(i,o-(e-c)):i}(e))}function k(e){return l=void 0,g&&n?b(e):(n=s=void 0,a)}function P(){var e=m(),i=_(e);if(n=arguments,s=this,u=e,i){if(void 0===l)return w(u);if(p)return l=setTimeout(S,t),b(u)}return void 0===l&&(l=setTimeout(S,t)),a}return t=y(t)||0,v(i)&&(h=!!i.leading,o=(p="maxWait"in i)?d(y(i.maxWait)||0,t):o,g="trailing"in i?!!i.trailing:g),P.cancel=function(){void 0!==l&&clearTimeout(l),c=0,n=u=s=l=void 0},P.flush=function(){return void 0===l?a:k(m())},P}function v(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function y(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==p.call(e)}(e))return NaN;if(v(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=v(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var i=o.test(e);return i||a.test(e)?l(e.slice(2),i?2:8):s.test(e)?NaN:+e}e.exports=function(e,t,i){var n=!0,s=!0;if("function"!=typeof e)throw new TypeError(r);return v(i)&&(n="leading"in i?!!i.leading:n,s="trailing"in i?!!i.trailing:s),g(e,t,{leading:n,maxWait:t,trailing:s})}},845:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});var r=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function n(e,t){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(n=e[i],s=t[i],!(n===s||r(n)&&r(s)))return!1;var n,s;return!0}const s=function(e,t){var i;void 0===t&&(t=n);var r,s=[],o=!1;return function(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];return o&&i===this&&t(n,s)||(r=e.apply(this,n),o=!0,i=this,s=n),r}}},4193:(e,t,i)=>{var r=i(1196),n=/[\/\+\.]/;e.exports=function(e,t){function i(t){var i=r(t,e,n);return i&&i.length>=2}return t?i(t.split(";")[0]):i}},7034:()=>{},4800:e=>{e.exports=function(){var e={},t=e._fns={};return e.emit=function(e,i,r,n,s,o,a){var l=function(e){var i=t[e]?t[e]:[],r=e.indexOf(":"),n=-1===r?[e]:[e.substring(0,r),e.substring(r+1)],s=Object.keys(t),o=0,a=s.length;for(;o<a;o++){var l=s[o];if("*"===l&&(i=i.concat(t[l])),2===n.length&&n[0]===l){i=i.concat(t[l]);break}}return i}(e);l.length&&function(e,t,i){var r=0,n=t.length;for(;r<n&&t[r];r++)t[r].event=e,t[r].apply(t[r],i)}(e,l,[i,r,n,s,o,a])},e.on=function(e,i){t[e]||(t[e]=[]),t[e].push(i)},e.once=function(t,i){this.on(t,(function r(){i.apply(this,arguments),e.off(t,r)}))},e.off=function(e,t){var i=[];if(e&&t)for(var r=this._fns[e],n=0,s=r?r.length:0;n<s;n++)r[n]!==t&&i.push(r[n]);i.length?this._fns[e]=i:delete this._fns[e]},e}},6400:(e,t,i)=>{"use strict";i.r(t),i.d(t,{render:()=>L,hydrate:()=>$,createElement:()=>g,h:()=>g,Fragment:()=>b,createRef:()=>y,isValidElement:()=>o,Component:()=>w,cloneElement:()=>j,createContext:()=>z,toChildArray:()=>A,options:()=>n});var r,n,s,o,a,l,u,c,h={},p=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function f(e,t){for(var i in t)e[i]=t[i];return e}function m(e){var t=e.parentNode;t&&t.removeChild(e)}function g(e,t,i){var n,s,o,a={};for(o in t)"key"==o?n=t[o]:"ref"==o?s=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?r.call(arguments,2):i),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===a[o]&&(a[o]=e.defaultProps[o]);return v(e,a,n,s,null)}function v(e,t,i,r,o){var a={type:e,props:t,key:i,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++s:o};return null==o&&null!=n.vnode&&n.vnode(a),a}function y(){return{current:null}}function b(e){return e.children}function w(e,t){this.props=e,this.context=t}function _(e,t){if(null==t)return e.__?_(e.__,e.__.__k.indexOf(e)+1):null;for(var i;t<e.__k.length;t++)if(null!=(i=e.__k[t])&&null!=i.__e)return i.__e;return"function"==typeof e.type?_(e):null}function S(e){var t,i;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(i=e.__k[t])&&null!=i.__e){e.__e=e.__c.base=i.__e;break}return S(e)}}function k(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!P.__r++||u!==n.debounceRendering)&&((u=n.debounceRendering)||l)(P)}function P(){for(var e;P.__r=a.length;)e=a.sort((function(e,t){return e.__v.__b-t.__v.__b})),a=[],e.some((function(e){var t,i,r,n,s,o;e.__d&&(s=(n=(t=e).__v).__e,(o=t.__P)&&(i=[],(r=f({},n)).__v=n.__v+1,D(o,n,r,t.__n,void 0!==o.ownerSVGElement,null!=n.__h?[s]:null,i,null==s?_(n):s,n.__h),R(i,n),n.__e!=s&&S(n)))}))}function C(e,t,i,r,n,s,o,a,l,u){var c,d,f,m,g,y,w,S=r&&r.__k||p,k=S.length;for(i.__k=[],c=0;c<t.length;c++)if(null!=(m=i.__k[c]=null==(m=t[c])||"boolean"==typeof m?null:"string"==typeof m||"number"==typeof m||"bigint"==typeof m?v(null,m,null,null,m):Array.isArray(m)?v(b,{children:m},null,null,null):m.__b>0?v(m.type,m.props,m.key,null,m.__v):m)){if(m.__=i,m.__b=i.__b+1,null===(f=S[c])||f&&m.key==f.key&&m.type===f.type)S[c]=void 0;else for(d=0;d<k;d++){if((f=S[d])&&m.key==f.key&&m.type===f.type){S[d]=void 0;break}f=null}D(e,m,f=f||h,n,s,o,a,l,u),g=m.__e,(d=m.ref)&&f.ref!=d&&(w||(w=[]),f.ref&&w.push(f.ref,null,m),w.push(d,m.__c||g,m)),null!=g?(null==y&&(y=g),"function"==typeof m.type&&m.__k===f.__k?m.__d=l=x(m,l,e):l=O(e,m,f,S,g,l),"function"==typeof i.type&&(i.__d=l)):l&&f.__e==l&&l.parentNode!=e&&(l=_(f))}for(i.__e=y,c=k;c--;)null!=S[c]&&("function"==typeof i.type&&null!=S[c].__e&&S[c].__e==i.__d&&(i.__d=_(r,c+1)),N(S[c],S[c]));if(w)for(c=0;c<w.length;c++)I(w[c],w[++c],w[++c])}function x(e,t,i){for(var r,n=e.__k,s=0;n&&s<n.length;s++)(r=n[s])&&(r.__=e,t="function"==typeof r.type?x(r,t,i):O(i,r,r,n,r.__e,t));return t}function A(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){A(e,t)})):t.push(e)),t}function O(e,t,i,r,n,s){var o,a,l;if(void 0!==t.__d)o=t.__d,t.__d=void 0;else if(null==i||n!=s||null==n.parentNode)e:if(null==s||s.parentNode!==e)e.appendChild(n),o=null;else{for(a=s,l=0;(a=a.nextSibling)&&l<r.length;l+=2)if(a==n)break e;e.insertBefore(n,s),o=s}return void 0!==o?o:n.nextSibling}function T(e,t,i){"-"===t[0]?e.setProperty(t,i):e[t]=null==i?"":"number"!=typeof i||d.test(t)?i:i+"px"}function E(e,t,i,r,n){var s;e:if("style"===t)if("string"==typeof i)e.style.cssText=i;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)i&&t in i||T(e.style,t,"");if(i)for(t in i)r&&i[t]===r[t]||T(e.style,t,i[t])}else if("o"===t[0]&&"n"===t[1])s=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=i,i?r||e.addEventListener(t,s?M:F,s):e.removeEventListener(t,s?M:F,s);else if("dangerouslySetInnerHTML"!==t){if(n)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==i?"":i;break e}catch(e){}"function"==typeof i||(null!=i&&(!1!==i||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,i):e.removeAttribute(t))}}function F(e){this.l[e.type+!1](n.event?n.event(e):e)}function M(e){this.l[e.type+!0](n.event?n.event(e):e)}function D(e,t,i,r,s,o,a,l,u){var c,h,p,d,m,g,v,y,_,S,k,P=t.type;if(void 0!==t.constructor)return null;null!=i.__h&&(u=i.__h,l=t.__e=i.__e,t.__h=null,o=[l]),(c=n.__b)&&c(t);try{e:if("function"==typeof P){if(y=t.props,_=(c=P.contextType)&&r[c.__c],S=c?_?_.props.value:c.__:r,i.__c?v=(h=t.__c=i.__c).__=h.__E:("prototype"in P&&P.prototype.render?t.__c=h=new P(y,S):(t.__c=h=new w(y,S),h.constructor=P,h.render=B),_&&_.sub(h),h.props=y,h.state||(h.state={}),h.context=S,h.__n=r,p=h.__d=!0,h.__h=[]),null==h.__s&&(h.__s=h.state),null!=P.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=f({},h.__s)),f(h.__s,P.getDerivedStateFromProps(y,h.__s))),d=h.props,m=h.state,p)null==P.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(null==P.getDerivedStateFromProps&&y!==d&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(y,S),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(y,h.__s,S)||t.__v===i.__v){h.props=y,h.state=h.__s,t.__v!==i.__v&&(h.__d=!1),h.__v=t,t.__e=i.__e,t.__k=i.__k,t.__k.forEach((function(e){e&&(e.__=t)})),h.__h.length&&a.push(h);break e}null!=h.componentWillUpdate&&h.componentWillUpdate(y,h.__s,S),null!=h.componentDidUpdate&&h.__h.push((function(){h.componentDidUpdate(d,m,g)}))}h.context=S,h.props=y,h.state=h.__s,(c=n.__r)&&c(t),h.__d=!1,h.__v=t,h.__P=e,c=h.render(h.props,h.state,h.context),h.state=h.__s,null!=h.getChildContext&&(r=f(f({},r),h.getChildContext())),p||null==h.getSnapshotBeforeUpdate||(g=h.getSnapshotBeforeUpdate(d,m)),k=null!=c&&c.type===b&&null==c.key?c.props.children:c,C(e,Array.isArray(k)?k:[k],t,i,r,s,o,a,l,u),h.base=t.__e,t.__h=null,h.__h.length&&a.push(h),v&&(h.__E=h.__=null),h.__e=!1}else null==o&&t.__v===i.__v?(t.__k=i.__k,t.__e=i.__e):t.__e=U(i.__e,t,i,r,s,o,a,u);(c=n.diffed)&&c(t)}catch(e){t.__v=null,(u||null!=o)&&(t.__e=l,t.__h=!!u,o[o.indexOf(l)]=null),n.__e(e,t,i)}}function R(e,t){n.__c&&n.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){n.__e(e,t.__v)}}))}function U(e,t,i,n,s,o,a,l){var u,c,p,d=i.props,f=t.props,g=t.type,v=0;if("svg"===g&&(s=!0),null!=o)for(;v<o.length;v++)if((u=o[v])&&"setAttribute"in u==!!g&&(g?u.localName===g:3===u.nodeType)){e=u,o[v]=null;break}if(null==e){if(null===g)return document.createTextNode(f);e=s?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,f.is&&f),o=null,l=!1}if(null===g)d===f||l&&e.data===f||(e.data=f);else{if(o=o&&r.call(e.childNodes),c=(d=i.props||h).dangerouslySetInnerHTML,p=f.dangerouslySetInnerHTML,!l){if(null!=o)for(d={},v=0;v<e.attributes.length;v++)d[e.attributes[v].name]=e.attributes[v].value;(p||c)&&(p&&(c&&p.__html==c.__html||p.__html===e.innerHTML)||(e.innerHTML=p&&p.__html||""))}if(function(e,t,i,r,n){var s;for(s in i)"children"===s||"key"===s||s in t||E(e,s,null,i[s],r);for(s in t)n&&"function"!=typeof t[s]||"children"===s||"key"===s||"value"===s||"checked"===s||i[s]===t[s]||E(e,s,t[s],i[s],r)}(e,f,d,s,l),p)t.__k=[];else if(v=t.props.children,C(e,Array.isArray(v)?v:[v],t,i,n,s&&"foreignObject"!==g,o,a,o?o[0]:i.__k&&_(i,0),l),null!=o)for(v=o.length;v--;)null!=o[v]&&m(o[v]);l||("value"in f&&void 0!==(v=f.value)&&(v!==d.value||v!==e.value||"progress"===g&&!v)&&E(e,"value",v,d.value,!1),"checked"in f&&void 0!==(v=f.checked)&&v!==e.checked&&E(e,"checked",v,d.checked,!1))}return e}function I(e,t,i){try{"function"==typeof e?e(t):e.current=t}catch(e){n.__e(e,i)}}function N(e,t,i){var r,s;if(n.unmount&&n.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||I(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){n.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(s=0;s<r.length;s++)r[s]&&N(r[s],t,"function"!=typeof e.type);i||null==e.__e||m(e.__e),e.__e=e.__d=void 0}function B(e,t,i){return this.constructor(e,i)}function L(e,t,i){var s,o,a;n.__&&n.__(e,t),o=(s="function"==typeof i)?null:i&&i.__k||t.__k,a=[],D(t,e=(!s&&i||t).__k=g(b,null,[e]),o||h,h,void 0!==t.ownerSVGElement,!s&&i?[i]:o?null:t.firstChild?r.call(t.childNodes):null,a,!s&&i?i:o?o.__e:t.firstChild,s),R(a,e)}function $(e,t){L(e,t,$)}function j(e,t,i){var n,s,o,a=f({},e.props);for(o in t)"key"==o?n=t[o]:"ref"==o?s=t[o]:a[o]=t[o];return arguments.length>2&&(a.children=arguments.length>3?r.call(arguments,2):i),v(e.type,a,n||e.key,s||e.ref,null)}function z(e,t){var i={__c:t="__cC"+c++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var i,r;return this.getChildContext||(i=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&i.some(k)},this.sub=function(e){i.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){i.splice(i.indexOf(e),1),t&&t.call(e)}}),e.children}};return i.Provider.__=i.Consumer.contextType=i}r=p.slice,n={__e:function(e,t){for(var i,r,n;t=t.__;)if((i=t.__c)&&!i.__)try{if((r=i.constructor)&&null!=r.getDerivedStateFromError&&(i.setState(r.getDerivedStateFromError(e)),n=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e),n=i.__d),n)return i.__E=i}catch(t){e=t}throw e}},s=0,o=function(e){return null!=e&&void 0===e.constructor},w.prototype.setState=function(e,t){var i;i=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=f({},this.state),"function"==typeof e&&(e=e(f({},i),this.props)),e&&f(i,e),null!=e&&this.__v&&(t&&this.__h.push(t),k(this))},w.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),k(this))},w.prototype.render=b,a=[],l="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,P.__r=0,c=0},4155:e=>{var t,i,r=e.exports={};function n(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===n||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(i){try{return t.call(null,e,0)}catch(i){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:n}catch(e){t=n}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(e){i=s}}();var a,l=[],u=!1,c=-1;function h(){u&&a&&(u=!1,a.length?l=a.concat(l):c=-1,l.length&&p())}function p(){if(!u){var e=o(h);u=!0;for(var t=l.length;t;){for(a=l,l=[];++c<t;)a&&a[c].run();c=-1,t=l.length}a=null,u=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function f(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)t[i-1]=arguments[i];l.push(new d(e,t)),1!==l.length||u||o(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=f,r.addListener=f,r.once=f,r.off=f,r.removeListener=f,r.removeAllListeners=f,r.emit=f,r.prependListener=f,r.prependOnceListener=f,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},781:(e,t,i)=>{"use strict";function r(e,t){if(e===t)return!0;if(!e||!t)return!1;var i=Object.keys(e),r=Object.keys(t),n=i.length;if(r.length!==n)return!1;for(var s=0;s<n;s++){var o=i[s];if(e[o]!==t[o]||!Object.prototype.hasOwnProperty.call(t,o))return!1}return!0}function n(e,t){if(e===t)return!0;if(!e||!t)return!1;var i=e.length;if(t.length!==i)return!1;for(var r=0;r<i;r++)if(e[r]!==t[r])return!1;return!0}i.r(t),i.d(t,{shallowEqualArrays:()=>n,shallowEqualObjects:()=>r})},1058:(e,t,i)=>{"use strict";i.d(t,{Z:()=>T});var r=i(6400),n=i(9404),s=i.n(n),o=i(1882),a=i.n(o);function l(e,t,i,r,n,s,o,a){var l,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=i,u._compiled=!0),r&&(u.functional=!0),s&&(u._scopeId="data-v-"+s),o?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},u._ssrRegister=l):n&&(l=a?function(){n.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:n),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:u}}var u=l({props:["fileKey","fileName","fileSize","fileMeta","apiUri","withMeta"],data:function(){return{removeModalOpen:!1}},mounted:function(){(0,r.render)(a()(s()({name:this.fileKey})).icon,this.$refs.fileIcon)},computed:{formatedFileSize:function(){var e=Math.floor(Math.log(this.fileSize)/Math.log(1024));return 1*(this.fileSize/Math.pow(1024,e)).toFixed(2)+" "+["B","KB","MB","GB","TB"][e]},formatedFileMeta:function(){var e=[];for(var t in this.fileMeta)e.push("".concat(t,": ").concat(this.fileMeta[t]));return e.join(" | ")}},methods:{downloadFile:function(e){Nova.request().get("".concat(this.apiUri,"/").concat(this.fileKey),{params:{contentDisposition:e}}).then((function(t){var i=document.createElement("a");i.href=t.data.temporaryUrl,i.target="inline"===e?"_blank":"_self",document.body.appendChild(i),i.click(),document.body.removeChild(i)})).catch((function(e){Nova.error(e.message)}))},openRemoveModal:function(){this.removeModalOpen=!0},closeRemoveModal:function(){this.removeModalOpen=!1},removeFile:function(){var e=this;Nova.request().delete("".concat(this.apiUri,"/").concat(this.fileKey)).then((function(t){Nova.success(t.data.message),Nova.$emit("refresh-".concat(e.withMeta.attribute,"-files")),e.withMeta.refreshListable&&Nova.$emit("refresh-resources")})).catch((function(e){Nova.error(e.message)})).then((function(){e.closeRemoveModal()}))}}},(function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("card",{staticClass:"flex item-center overflow-hidden p-4"},[i("div",{directives:[{name:"tooltip",rawName:"v-tooltip.click",value:e.formatedFileMeta,expression:"formatedFileMeta",modifiers:{click:!0}}],ref:"fileIcon",staticClass:"flex items-center flex-no-shrink mr-4"}),e._v(" "),i("div",{staticClass:"flex flex-col justify-center truncate"},[i("div",[e._v("\n            "+e._s(e.fileName||e.fileKey)+"\n        ")]),e._v(" "),e.fileSize?i("div",{staticClass:"mt-2 text-80 text-xs font-semibold"},[e._v("\n            "+e._s(e.formatedFileSize)+"\n        ")]):e._e()]),e._v(" "),e.withMeta.canDownload||e.withMeta.canDelete?i("div",{staticClass:"flex item-center ml-auto"},[e.withMeta.canDownload&&e.withMeta.contentDisposition.includes("inline")?i("button",{directives:[{name:"tooltip",rawName:"v-tooltip.click",value:e.__("View"),expression:"__('View')",modifiers:{click:!0}}],staticClass:"cursor-pointer dim btn btn-link text-primary inline-flex items-center ml-3",attrs:{type:"button"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.downloadFile("inline"))},click:function(t){return t.preventDefault(),e.downloadFile("inline")}}},[i("icon",{attrs:{type:"view","view-box":"0 0 22 16",width:"16",height:"16"}})],1):e._e(),e._v(" "),e.withMeta.canDownload&&e.withMeta.contentDisposition.includes("attachment")?i("button",{directives:[{name:"tooltip",rawName:"v-tooltip.click",value:e.__("Download"),expression:"__('Download')",modifiers:{click:!0}}],staticClass:"cursor-pointer dim btn btn-link text-primary inline-flex items-center ml-3",attrs:{type:"button"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.downloadFile("attachment"))},click:function(t){return t.preventDefault(),e.downloadFile("attachment")}}},[i("icon",{attrs:{type:"download","view-box":"2 2 20 20",width:"16",height:"16"}})],1):e._e(),e._v(" "),e.withMeta.canDelete?i("button",{directives:[{name:"tooltip",rawName:"v-tooltip.click",value:e.__("Delete"),expression:"__('Delete')",modifiers:{click:!0}}],staticClass:"cursor-pointer dim btn btn-link text-primary inline-flex items-center ml-3",attrs:{type:"button"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.openRemoveModal.apply(null,arguments))},click:function(t){return t.preventDefault(),e.openRemoveModal.apply(null,arguments)}}},[i("icon",{attrs:{type:"delete","view-box":"0 0 20 20",width:"16",height:"16"}})],1):e._e()]):e._e(),e._v(" "),i("portal",{attrs:{to:"modals"}},[e.removeModalOpen?i("confirm-upload-removal-modal",{on:{confirm:e.removeFile,close:e.closeRemoveModal}}):e._e()],1)],1)}),[],!1,null,null,null);const c=l({components:{FileCard:u.exports},props:["apiUri","withMeta"],data:function(){return{files:[],isLoading:!0}},created:function(){var e=this;this.getFiles(),Nova.$on("refresh-".concat(this.withMeta.attribute,"-files"),(function(){e.getFiles()}))},methods:{getFiles:function(){var e=this;this.isLoading=!0,new Promise((function(e){setTimeout((function(){return e()}),300)})).then((function(){Nova.request().get(e.apiUri).then((function(t){e.isLoading=!1,e.files=t.data.files}))}))}}},(function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("loading-view",{attrs:{loading:e.isLoading}},[e.files.length?i("div",{staticClass:"mb-3 files-grid",class:{"files-grid-2":2===e.files.length,"files-grid-3":e.files.length>2}},e._l(e.files,(function(t){return i("file-card",{key:t.fileKey,attrs:{"file-key":t.fileKey,"file-name":t.fileName,"file-size":t.fileSize,"file-meta":t.fileMeta,"api-uri":e.apiUri,"with-meta":e.withMeta}})})),1):e._e()])}),[],!1,null,null,null).exports;var h=i(1471),p=i(9429),d=i.n(p),f=i(7949),m=i.n(f),g=i(9189),v=i.n(g),y=i(9904),b=i.n(y),w=i(8919),S=i.n(w);function k(e){return function(e){if(Array.isArray(e))return P(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return P(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return P(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,r=new Array(t);i<t;i++)r[i]=e[i];return r}function C(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,r)}return i}function x(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?C(Object(i),!0).forEach((function(t){A(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):C(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function A(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var O=l({components:{Dashboard:h.A},props:["companionUri","withMeta","queueFile"],data:function(){return this.initUppy()},beforeDestroy:function(){this.uppy.close()},methods:{getChunkSize:function(e){return this.withMeta.chunkSize||5242880},initUppy:function(){var e=this,t=window.NovaUppyLocale||{strings:{}};_.merge(t.strings,this.withMeta.locale);var i=[],r=new(d())({id:this.withMeta.attribute,autoProceed:this.withMeta.autoProceed||!1,allowMultipleUploadBatches:this.withMeta.allowMultipleUploads||!1,restrictions:x(x({},this.withMeta.restrictions),this.withMeta.multipleFilesRestriction),locale:t}).on("upload-success",(function(t,i){e.queueFile(t)})).use(m(),{limit:this.withMeta.limit||0,companionUrl:this.companionUri,companionHeaders:{"X-CSRF-TOKEN":document.querySelector('meta[name="csrf-token"]').getAttribute("content")},getChunkSize:this.getChunkSize});r.on("file-added",(function(t){r.setFileMeta(t.id,e.withMeta.metaValues||{})})),this.withMeta.useWebcam&&(r.use(v(),{title:t.strings.Camera||"Camera",showVideoSourceDropdown:!0,showRecordingLength:!0}),i.push("Webcam")),this.withMeta.useScreenCapture&&(r.use(b(),{title:t.strings.Screencast||"Screencast"}),i.push("ScreenCapture")),this.withMeta.useImageEditor&&(r.use(S(),{quality:1}),i.push("ImageEditor"));var n={plugins:i,width:null,height:this.withMeta.height||null,showProgressDetails:!0,fileManagerSelectionType:this.withMeta.fileManagerSelectionType||"files",metaFields:[].concat(k(this.withMeta.nameMetaField||[]),k(this.withMeta.metaFields||[])),autoOpenFileEditor:this.withMeta.autoOpenFileEditor||!1,proudlyDisplayPoweredByUppy:this.withMeta.proudlyDisplayPoweredByUppy||!1,note:this.withMeta.note||null};return{uppy:r,options:n}}}},(function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("card",[i("Dashboard",{staticClass:"uppy-panel",attrs:{uppy:e.uppy,props:e.options}})],1)}),[],!1,null,null,null);const T=l({components:{FilesGrid:c,UppyWrapper:O.exports},props:["resourceName","resourceId","panel"],data:function(){return{apiUri:"/nova-vendor/nova-s3-multipart-upload/".concat(this.resourceName,"/").concat(this.resourceId,"/").concat(this.panel.fields[0].attribute,"/files"),companionUri:"/nova-vendor/nova-s3-multipart-upload/".concat(this.resourceName,"/").concat(this.resourceId,"/").concat(this.panel.fields[0].attribute,"/"),withMeta:this.panel.fields[0],filesQueue:[],isSaving:!1}},watch:{filesQueue:function(){!this.isSaving&&this.filesQueue.length&&this.processQueue()}},methods:{queueFile:function(e){this.filesQueue.push({fileId:e.id,fileKey:e.s3Multipart.key,fileName:e.meta.name,fileSize:e.size||0,fileMeta:e.meta})},dequeueFile:function(e){this.filesQueue=this.filesQueue.filter((function(t){return t.fileId!==e}))},processQueue:function(){this.saveModel(this.filesQueue[0])},saveModel:function(e){var t=this;this.isSaving=!0,Nova.request().post(this.apiUri,e).then((function(e){Nova.success(e.data.message),Nova.$emit("refresh-".concat(t.withMeta.attribute,"-files")),t.withMeta.refreshListable&&Nova.$emit("refresh-resources")})).catch((function(e){Nova.error(e.message)})).then((function(){t.isSaving=!1,t.dequeueFile(e.fileId)}))}}},(function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("heading",{staticClass:"mb-3",attrs:{level:1}},[e._v(e._s(e.panel.name))]),e._v(" "),e.withMeta.canView?i("files-grid",{attrs:{"api-uri":e.apiUri,"with-meta":e.withMeta}}):e._e(),e._v(" "),e.withMeta.canUpload?i("uppy-wrapper",{attrs:{"companion-uri":e.companionUri,"with-meta":e.withMeta,"queue-file":e.queueFile}}):e._e()],1)}),[],!1,null,null,null).exports},538:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>ka});var r=Object.freeze({});function n(e){return null==e}function s(e){return null!=e}function o(e){return!0===e}function a(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function l(e){return null!==e&&"object"==typeof e}var u=Object.prototype.toString;function c(e){return"[object Object]"===u.call(e)}function h(e){return"[object RegExp]"===u.call(e)}function p(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function d(e){return s(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function f(e){return null==e?"":Array.isArray(e)||c(e)&&e.toString===u?JSON.stringify(e,null,2):String(e)}function m(e){var t=parseFloat(e);return isNaN(t)?e:t}function g(e,t){for(var i=Object.create(null),r=e.split(","),n=0;n<r.length;n++)i[r[n]]=!0;return t?function(e){return i[e.toLowerCase()]}:function(e){return i[e]}}var v=g("slot,component",!0),y=g("key,ref,slot,slot-scope,is");function b(e,t){if(e.length){var i=e.indexOf(t);if(i>-1)return e.splice(i,1)}}var w=Object.prototype.hasOwnProperty;function _(e,t){return w.call(e,t)}function S(e){var t=Object.create(null);return function(i){return t[i]||(t[i]=e(i))}}var k=/-(\w)/g,P=S((function(e){return e.replace(k,(function(e,t){return t?t.toUpperCase():""}))})),C=S((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),x=/\B([A-Z])/g,A=S((function(e){return e.replace(x,"-$1").toLowerCase()}));var O=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function i(i){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,i):e.call(t)}return i._length=e.length,i};function T(e,t){t=t||0;for(var i=e.length-t,r=new Array(i);i--;)r[i]=e[i+t];return r}function E(e,t){for(var i in t)e[i]=t[i];return e}function F(e){for(var t={},i=0;i<e.length;i++)e[i]&&E(t,e[i]);return t}function M(e,t,i){}var D=function(e,t,i){return!1},R=function(e){return e};function U(e,t){if(e===t)return!0;var i=l(e),r=l(t);if(!i||!r)return!i&&!r&&String(e)===String(t);try{var n=Array.isArray(e),s=Array.isArray(t);if(n&&s)return e.length===t.length&&e.every((function(e,i){return U(e,t[i])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(n||s)return!1;var o=Object.keys(e),a=Object.keys(t);return o.length===a.length&&o.every((function(i){return U(e[i],t[i])}))}catch(e){return!1}}function I(e,t){for(var i=0;i<e.length;i++)if(U(e[i],t))return i;return-1}function N(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var B="data-server-rendered",L=["component","directive","filter"],$=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],j={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:D,isReservedAttr:D,isUnknownElement:D,getTagNamespace:M,parsePlatformTagName:R,mustUseProp:D,async:!0,_lifecycleHooks:$},z=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function H(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function V(e,t,i,r){Object.defineProperty(e,t,{value:i,enumerable:!!r,writable:!0,configurable:!0})}var W=new RegExp("[^"+z.source+".$_\\d]");var q,Y="__proto__"in{},X="undefined"!=typeof window,K="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,G=K&&WXEnvironment.platform.toLowerCase(),Q=X&&window.navigator.userAgent.toLowerCase(),J=Q&&/msie|trident/.test(Q),Z=Q&&Q.indexOf("msie 9.0")>0,ee=Q&&Q.indexOf("edge/")>0,te=(Q&&Q.indexOf("android"),Q&&/iphone|ipad|ipod|ios/.test(Q)||"ios"===G),ie=(Q&&/chrome\/\d+/.test(Q),Q&&/phantomjs/.test(Q),Q&&Q.match(/firefox\/(\d+)/)),re={}.watch,ne=!1;if(X)try{var se={};Object.defineProperty(se,"passive",{get:function(){ne=!0}}),window.addEventListener("test-passive",null,se)}catch(e){}var oe=function(){return void 0===q&&(q=!X&&!K&&void 0!==i.g&&(i.g.process&&"server"===i.g.process.env.VUE_ENV)),q},ae=X&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function le(e){return"function"==typeof e&&/native code/.test(e.toString())}var ue,ce="undefined"!=typeof Symbol&&le(Symbol)&&"undefined"!=typeof Reflect&&le(Reflect.ownKeys);ue="undefined"!=typeof Set&&le(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var he=M,pe=0,de=function(){this.id=pe++,this.subs=[]};de.prototype.addSub=function(e){this.subs.push(e)},de.prototype.removeSub=function(e){b(this.subs,e)},de.prototype.depend=function(){de.target&&de.target.addDep(this)},de.prototype.notify=function(){var e=this.subs.slice();for(var t=0,i=e.length;t<i;t++)e[t].update()},de.target=null;var fe=[];function me(e){fe.push(e),de.target=e}function ge(){fe.pop(),de.target=fe[fe.length-1]}var ve=function(e,t,i,r,n,s,o,a){this.tag=e,this.data=t,this.children=i,this.text=r,this.elm=n,this.ns=void 0,this.context=s,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=o,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=a,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},ye={child:{configurable:!0}};ye.child.get=function(){return this.componentInstance},Object.defineProperties(ve.prototype,ye);var be=function(e){void 0===e&&(e="");var t=new ve;return t.text=e,t.isComment=!0,t};function we(e){return new ve(void 0,void 0,void 0,String(e))}function _e(e){var t=new ve(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var Se=Array.prototype,ke=Object.create(Se);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(e){var t=Se[e];V(ke,e,(function(){for(var i=[],r=arguments.length;r--;)i[r]=arguments[r];var n,s=t.apply(this,i),o=this.__ob__;switch(e){case"push":case"unshift":n=i;break;case"splice":n=i.slice(2)}return n&&o.observeArray(n),o.dep.notify(),s}))}));var Pe=Object.getOwnPropertyNames(ke),Ce=!0;function xe(e){Ce=e}var Ae=function(e){this.value=e,this.dep=new de,this.vmCount=0,V(e,"__ob__",this),Array.isArray(e)?(Y?function(e,t){e.__proto__=t}(e,ke):function(e,t,i){for(var r=0,n=i.length;r<n;r++){var s=i[r];V(e,s,t[s])}}(e,ke,Pe),this.observeArray(e)):this.walk(e)};function Oe(e,t){var i;if(l(e)&&!(e instanceof ve))return _(e,"__ob__")&&e.__ob__ instanceof Ae?i=e.__ob__:Ce&&!oe()&&(Array.isArray(e)||c(e))&&Object.isExtensible(e)&&!e._isVue&&(i=new Ae(e)),t&&i&&i.vmCount++,i}function Te(e,t,i,r,n){var s=new de,o=Object.getOwnPropertyDescriptor(e,t);if(!o||!1!==o.configurable){var a=o&&o.get,l=o&&o.set;a&&!l||2!==arguments.length||(i=e[t]);var u=!n&&Oe(i);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=a?a.call(e):i;return de.target&&(s.depend(),u&&(u.dep.depend(),Array.isArray(t)&&Me(t))),t},set:function(t){var r=a?a.call(e):i;t===r||t!=t&&r!=r||a&&!l||(l?l.call(e,t):i=t,u=!n&&Oe(t),s.notify())}})}}function Ee(e,t,i){if(Array.isArray(e)&&p(t))return e.length=Math.max(e.length,t),e.splice(t,1,i),i;if(t in e&&!(t in Object.prototype))return e[t]=i,i;var r=e.__ob__;return e._isVue||r&&r.vmCount?i:r?(Te(r.value,t,i),r.dep.notify(),i):(e[t]=i,i)}function Fe(e,t){if(Array.isArray(e)&&p(t))e.splice(t,1);else{var i=e.__ob__;e._isVue||i&&i.vmCount||_(e,t)&&(delete e[t],i&&i.dep.notify())}}function Me(e){for(var t=void 0,i=0,r=e.length;i<r;i++)(t=e[i])&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&Me(t)}Ae.prototype.walk=function(e){for(var t=Object.keys(e),i=0;i<t.length;i++)Te(e,t[i])},Ae.prototype.observeArray=function(e){for(var t=0,i=e.length;t<i;t++)Oe(e[t])};var De=j.optionMergeStrategies;function Re(e,t){if(!t)return e;for(var i,r,n,s=ce?Reflect.ownKeys(t):Object.keys(t),o=0;o<s.length;o++)"__ob__"!==(i=s[o])&&(r=e[i],n=t[i],_(e,i)?r!==n&&c(r)&&c(n)&&Re(r,n):Ee(e,i,n));return e}function Ue(e,t,i){return i?function(){var r="function"==typeof t?t.call(i,i):t,n="function"==typeof e?e.call(i,i):e;return r?Re(r,n):n}:t?e?function(){return Re("function"==typeof t?t.call(this,this):t,"function"==typeof e?e.call(this,this):e)}:t:e}function Ie(e,t){var i=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return i?function(e){for(var t=[],i=0;i<e.length;i++)-1===t.indexOf(e[i])&&t.push(e[i]);return t}(i):i}function Ne(e,t,i,r){var n=Object.create(e||null);return t?E(n,t):n}De.data=function(e,t,i){return i?Ue(e,t,i):t&&"function"!=typeof t?e:Ue(e,t)},$.forEach((function(e){De[e]=Ie})),L.forEach((function(e){De[e+"s"]=Ne})),De.watch=function(e,t,i,r){if(e===re&&(e=void 0),t===re&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var n={};for(var s in E(n,e),t){var o=n[s],a=t[s];o&&!Array.isArray(o)&&(o=[o]),n[s]=o?o.concat(a):Array.isArray(a)?a:[a]}return n},De.props=De.methods=De.inject=De.computed=function(e,t,i,r){if(!e)return t;var n=Object.create(null);return E(n,e),t&&E(n,t),n},De.provide=Ue;var Be=function(e,t){return void 0===t?e:t};function Le(e,t,i){if("function"==typeof t&&(t=t.options),function(e,t){var i=e.props;if(i){var r,n,s={};if(Array.isArray(i))for(r=i.length;r--;)"string"==typeof(n=i[r])&&(s[P(n)]={type:null});else if(c(i))for(var o in i)n=i[o],s[P(o)]=c(n)?n:{type:n};e.props=s}}(t),function(e,t){var i=e.inject;if(i){var r=e.inject={};if(Array.isArray(i))for(var n=0;n<i.length;n++)r[i[n]]={from:i[n]};else if(c(i))for(var s in i){var o=i[s];r[s]=c(o)?E({from:s},o):{from:o}}}}(t),function(e){var t=e.directives;if(t)for(var i in t){var r=t[i];"function"==typeof r&&(t[i]={bind:r,update:r})}}(t),!t._base&&(t.extends&&(e=Le(e,t.extends,i)),t.mixins))for(var r=0,n=t.mixins.length;r<n;r++)e=Le(e,t.mixins[r],i);var s,o={};for(s in e)a(s);for(s in t)_(e,s)||a(s);function a(r){var n=De[r]||Be;o[r]=n(e[r],t[r],i,r)}return o}function $e(e,t,i,r){if("string"==typeof i){var n=e[t];if(_(n,i))return n[i];var s=P(i);if(_(n,s))return n[s];var o=C(s);return _(n,o)?n[o]:n[i]||n[s]||n[o]}}function je(e,t,i,r){var n=t[e],s=!_(i,e),o=i[e],a=We(Boolean,n.type);if(a>-1)if(s&&!_(n,"default"))o=!1;else if(""===o||o===A(e)){var l=We(String,n.type);(l<0||a<l)&&(o=!0)}if(void 0===o){o=function(e,t,i){if(!_(t,"default"))return;var r=t.default;0;if(e&&e.$options.propsData&&void 0===e.$options.propsData[i]&&void 0!==e._props[i])return e._props[i];return"function"==typeof r&&"Function"!==He(t.type)?r.call(e):r}(r,n,e);var u=Ce;xe(!0),Oe(o),xe(u)}return o}var ze=/^\s*function (\w+)/;function He(e){var t=e&&e.toString().match(ze);return t?t[1]:""}function Ve(e,t){return He(e)===He(t)}function We(e,t){if(!Array.isArray(t))return Ve(t,e)?0:-1;for(var i=0,r=t.length;i<r;i++)if(Ve(t[i],e))return i;return-1}function qe(e,t,i){me();try{if(t)for(var r=t;r=r.$parent;){var n=r.$options.errorCaptured;if(n)for(var s=0;s<n.length;s++)try{if(!1===n[s].call(r,e,t,i))return}catch(e){Xe(e,r,"errorCaptured hook")}}Xe(e,t,i)}finally{ge()}}function Ye(e,t,i,r,n){var s;try{(s=i?e.apply(t,i):e.call(t))&&!s._isVue&&d(s)&&!s._handled&&(s.catch((function(e){return qe(e,r,n+" (Promise/async)")})),s._handled=!0)}catch(e){qe(e,r,n)}return s}function Xe(e,t,i){if(j.errorHandler)try{return j.errorHandler.call(null,e,t,i)}catch(t){t!==e&&Ke(t,null,"config.errorHandler")}Ke(e,t,i)}function Ke(e,t,i){if(!X&&!K||"undefined"==typeof console)throw e;console.error(e)}var Ge,Qe=!1,Je=[],Ze=!1;function et(){Ze=!1;var e=Je.slice(0);Je.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!=typeof Promise&&le(Promise)){var tt=Promise.resolve();Ge=function(){tt.then(et),te&&setTimeout(M)},Qe=!0}else if(J||"undefined"==typeof MutationObserver||!le(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Ge="undefined"!=typeof setImmediate&&le(setImmediate)?function(){setImmediate(et)}:function(){setTimeout(et,0)};else{var it=1,rt=new MutationObserver(et),nt=document.createTextNode(String(it));rt.observe(nt,{characterData:!0}),Ge=function(){it=(it+1)%2,nt.data=String(it)},Qe=!0}function st(e,t){var i;if(Je.push((function(){if(e)try{e.call(t)}catch(e){qe(e,t,"nextTick")}else i&&i(t)})),Ze||(Ze=!0,Ge()),!e&&"undefined"!=typeof Promise)return new Promise((function(e){i=e}))}var ot=new ue;function at(e){lt(e,ot),ot.clear()}function lt(e,t){var i,r,n=Array.isArray(e);if(!(!n&&!l(e)||Object.isFrozen(e)||e instanceof ve)){if(e.__ob__){var s=e.__ob__.dep.id;if(t.has(s))return;t.add(s)}if(n)for(i=e.length;i--;)lt(e[i],t);else for(i=(r=Object.keys(e)).length;i--;)lt(e[r[i]],t)}}var ut=S((function(e){var t="&"===e.charAt(0),i="~"===(e=t?e.slice(1):e).charAt(0),r="!"===(e=i?e.slice(1):e).charAt(0);return{name:e=r?e.slice(1):e,once:i,capture:r,passive:t}}));function ct(e,t){function i(){var e=arguments,r=i.fns;if(!Array.isArray(r))return Ye(r,null,arguments,t,"v-on handler");for(var n=r.slice(),s=0;s<n.length;s++)Ye(n[s],null,e,t,"v-on handler")}return i.fns=e,i}function ht(e,t,i,r,s,a){var l,u,c,h;for(l in e)u=e[l],c=t[l],h=ut(l),n(u)||(n(c)?(n(u.fns)&&(u=e[l]=ct(u,a)),o(h.once)&&(u=e[l]=s(h.name,u,h.capture)),i(h.name,u,h.capture,h.passive,h.params)):u!==c&&(c.fns=u,e[l]=c));for(l in t)n(e[l])&&r((h=ut(l)).name,t[l],h.capture)}function pt(e,t,i){var r;e instanceof ve&&(e=e.data.hook||(e.data.hook={}));var a=e[t];function l(){i.apply(this,arguments),b(r.fns,l)}n(a)?r=ct([l]):s(a.fns)&&o(a.merged)?(r=a).fns.push(l):r=ct([a,l]),r.merged=!0,e[t]=r}function dt(e,t,i,r,n){if(s(t)){if(_(t,i))return e[i]=t[i],n||delete t[i],!0;if(_(t,r))return e[i]=t[r],n||delete t[r],!0}return!1}function ft(e){return a(e)?[we(e)]:Array.isArray(e)?gt(e):void 0}function mt(e){return s(e)&&s(e.text)&&!1===e.isComment}function gt(e,t){var i,r,l,u,c=[];for(i=0;i<e.length;i++)n(r=e[i])||"boolean"==typeof r||(u=c[l=c.length-1],Array.isArray(r)?r.length>0&&(mt((r=gt(r,(t||"")+"_"+i))[0])&&mt(u)&&(c[l]=we(u.text+r[0].text),r.shift()),c.push.apply(c,r)):a(r)?mt(u)?c[l]=we(u.text+r):""!==r&&c.push(we(r)):mt(r)&&mt(u)?c[l]=we(u.text+r.text):(o(e._isVList)&&s(r.tag)&&n(r.key)&&s(t)&&(r.key="__vlist"+t+"_"+i+"__"),c.push(r)));return c}function vt(e,t){if(e){for(var i=Object.create(null),r=ce?Reflect.ownKeys(e):Object.keys(e),n=0;n<r.length;n++){var s=r[n];if("__ob__"!==s){for(var o=e[s].from,a=t;a;){if(a._provided&&_(a._provided,o)){i[s]=a._provided[o];break}a=a.$parent}if(!a)if("default"in e[s]){var l=e[s].default;i[s]="function"==typeof l?l.call(t):l}else 0}}return i}}function yt(e,t){if(!e||!e.length)return{};for(var i={},r=0,n=e.length;r<n;r++){var s=e[r],o=s.data;if(o&&o.attrs&&o.attrs.slot&&delete o.attrs.slot,s.context!==t&&s.fnContext!==t||!o||null==o.slot)(i.default||(i.default=[])).push(s);else{var a=o.slot,l=i[a]||(i[a]=[]);"template"===s.tag?l.push.apply(l,s.children||[]):l.push(s)}}for(var u in i)i[u].every(bt)&&delete i[u];return i}function bt(e){return e.isComment&&!e.asyncFactory||" "===e.text}function wt(e){return e.isComment&&e.asyncFactory}function _t(e,t,i){var n,s=Object.keys(t).length>0,o=e?!!e.$stable:!s,a=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(o&&i&&i!==r&&a===i.$key&&!s&&!i.$hasNormal)return i;for(var l in n={},e)e[l]&&"$"!==l[0]&&(n[l]=St(t,l,e[l]))}else n={};for(var u in t)u in n||(n[u]=kt(t,u));return e&&Object.isExtensible(e)&&(e._normalized=n),V(n,"$stable",o),V(n,"$key",a),V(n,"$hasNormal",s),n}function St(e,t,i){var r=function(){var e=arguments.length?i.apply(null,arguments):i({}),t=(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:ft(e))&&e[0];return e&&(!t||1===e.length&&t.isComment&&!wt(t))?void 0:e};return i.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function kt(e,t){return function(){return e[t]}}function Pt(e,t){var i,r,n,o,a;if(Array.isArray(e)||"string"==typeof e)for(i=new Array(e.length),r=0,n=e.length;r<n;r++)i[r]=t(e[r],r);else if("number"==typeof e)for(i=new Array(e),r=0;r<e;r++)i[r]=t(r+1,r);else if(l(e))if(ce&&e[Symbol.iterator]){i=[];for(var u=e[Symbol.iterator](),c=u.next();!c.done;)i.push(t(c.value,i.length)),c=u.next()}else for(o=Object.keys(e),i=new Array(o.length),r=0,n=o.length;r<n;r++)a=o[r],i[r]=t(e[a],a,r);return s(i)||(i=[]),i._isVList=!0,i}function Ct(e,t,i,r){var n,s=this.$scopedSlots[e];s?(i=i||{},r&&(i=E(E({},r),i)),n=s(i)||("function"==typeof t?t():t)):n=this.$slots[e]||("function"==typeof t?t():t);var o=i&&i.slot;return o?this.$createElement("template",{slot:o},n):n}function xt(e){return $e(this.$options,"filters",e)||R}function At(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function Ot(e,t,i,r,n){var s=j.keyCodes[t]||i;return n&&r&&!j.keyCodes[t]?At(n,r):s?At(s,e):r?A(r)!==t:void 0===e}function Tt(e,t,i,r,n){if(i)if(l(i)){var s;Array.isArray(i)&&(i=F(i));var o=function(o){if("class"===o||"style"===o||y(o))s=e;else{var a=e.attrs&&e.attrs.type;s=r||j.mustUseProp(t,a,o)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var l=P(o),u=A(o);l in s||u in s||(s[o]=i[o],n&&((e.on||(e.on={}))["update:"+o]=function(e){i[o]=e}))};for(var a in i)o(a)}else;return e}function Et(e,t){var i=this._staticTrees||(this._staticTrees=[]),r=i[e];return r&&!t||Mt(r=i[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),"__static__"+e,!1),r}function Ft(e,t,i){return Mt(e,"__once__"+t+(i?"_"+i:""),!0),e}function Mt(e,t,i){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!=typeof e[r]&&Dt(e[r],t+"_"+r,i);else Dt(e,t,i)}function Dt(e,t,i){e.isStatic=!0,e.key=t,e.isOnce=i}function Rt(e,t){if(t)if(c(t)){var i=e.on=e.on?E({},e.on):{};for(var r in t){var n=i[r],s=t[r];i[r]=n?[].concat(n,s):s}}else;return e}function Ut(e,t,i,r){t=t||{$stable:!i};for(var n=0;n<e.length;n++){var s=e[n];Array.isArray(s)?Ut(s,t,i):s&&(s.proxy&&(s.fn.proxy=!0),t[s.key]=s.fn)}return r&&(t.$key=r),t}function It(e,t){for(var i=0;i<t.length;i+=2){var r=t[i];"string"==typeof r&&r&&(e[t[i]]=t[i+1])}return e}function Nt(e,t){return"string"==typeof e?t+e:e}function Bt(e){e._o=Ft,e._n=m,e._s=f,e._l=Pt,e._t=Ct,e._q=U,e._i=I,e._m=Et,e._f=xt,e._k=Ot,e._b=Tt,e._v=we,e._e=be,e._u=Ut,e._g=Rt,e._d=It,e._p=Nt}function Lt(e,t,i,n,s){var a,l=this,u=s.options;_(n,"_uid")?(a=Object.create(n))._original=n:(a=n,n=n._original);var c=o(u._compiled),h=!c;this.data=e,this.props=t,this.children=i,this.parent=n,this.listeners=e.on||r,this.injections=vt(u.inject,n),this.slots=function(){return l.$slots||_t(e.scopedSlots,l.$slots=yt(i,n)),l.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return _t(e.scopedSlots,this.slots())}}),c&&(this.$options=u,this.$slots=this.slots(),this.$scopedSlots=_t(e.scopedSlots,this.$slots)),u._scopeId?this._c=function(e,t,i,r){var s=qt(a,e,t,i,r,h);return s&&!Array.isArray(s)&&(s.fnScopeId=u._scopeId,s.fnContext=n),s}:this._c=function(e,t,i,r){return qt(a,e,t,i,r,h)}}function $t(e,t,i,r,n){var s=_e(e);return s.fnContext=i,s.fnOptions=r,t.slot&&((s.data||(s.data={})).slot=t.slot),s}function jt(e,t){for(var i in t)e[P(i)]=t[i]}Bt(Lt.prototype);var zt={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var i=e;zt.prepatch(i,i)}else{(e.componentInstance=function(e,t){var i={_isComponent:!0,_parentVnode:e,parent:t},r=e.data.inlineTemplate;s(r)&&(i.render=r.render,i.staticRenderFns=r.staticRenderFns);return new e.componentOptions.Ctor(i)}(e,ii)).$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var i=t.componentOptions;!function(e,t,i,n,s){0;var o=n.data.scopedSlots,a=e.$scopedSlots,l=!!(o&&!o.$stable||a!==r&&!a.$stable||o&&e.$scopedSlots.$key!==o.$key||!o&&e.$scopedSlots.$key),u=!!(s||e.$options._renderChildren||l);e.$options._parentVnode=n,e.$vnode=n,e._vnode&&(e._vnode.parent=n);if(e.$options._renderChildren=s,e.$attrs=n.data.attrs||r,e.$listeners=i||r,t&&e.$options.props){xe(!1);for(var c=e._props,h=e.$options._propKeys||[],p=0;p<h.length;p++){var d=h[p],f=e.$options.props;c[d]=je(d,f,t,e)}xe(!0),e.$options.propsData=t}i=i||r;var m=e.$options._parentListeners;e.$options._parentListeners=i,ti(e,i,m),u&&(e.$slots=yt(s,n.context),e.$forceUpdate());0}(t.componentInstance=e.componentInstance,i.propsData,i.listeners,t,i.children)},insert:function(e){var t,i=e.context,r=e.componentInstance;r._isMounted||(r._isMounted=!0,ai(r,"mounted")),e.data.keepAlive&&(i._isMounted?((t=r)._inactive=!1,ui.push(t)):si(r,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?oi(t,!0):t.$destroy())}},Ht=Object.keys(zt);function Vt(e,t,i,a,u){if(!n(e)){var c=i.$options._base;if(l(e)&&(e=c.extend(e)),"function"==typeof e){var h;if(n(e.cid)&&(e=function(e,t){if(o(e.error)&&s(e.errorComp))return e.errorComp;if(s(e.resolved))return e.resolved;var i=Kt;i&&s(e.owners)&&-1===e.owners.indexOf(i)&&e.owners.push(i);if(o(e.loading)&&s(e.loadingComp))return e.loadingComp;if(i&&!s(e.owners)){var r=e.owners=[i],a=!0,u=null,c=null;i.$on("hook:destroyed",(function(){return b(r,i)}));var h=function(e){for(var t=0,i=r.length;t<i;t++)r[t].$forceUpdate();e&&(r.length=0,null!==u&&(clearTimeout(u),u=null),null!==c&&(clearTimeout(c),c=null))},p=N((function(i){e.resolved=Gt(i,t),a?r.length=0:h(!0)})),f=N((function(t){s(e.errorComp)&&(e.error=!0,h(!0))})),m=e(p,f);return l(m)&&(d(m)?n(e.resolved)&&m.then(p,f):d(m.component)&&(m.component.then(p,f),s(m.error)&&(e.errorComp=Gt(m.error,t)),s(m.loading)&&(e.loadingComp=Gt(m.loading,t),0===m.delay?e.loading=!0:u=setTimeout((function(){u=null,n(e.resolved)&&n(e.error)&&(e.loading=!0,h(!1))}),m.delay||200)),s(m.timeout)&&(c=setTimeout((function(){c=null,n(e.resolved)&&f(null)}),m.timeout)))),a=!1,e.loading?e.loadingComp:e.resolved}}(h=e,c),void 0===e))return function(e,t,i,r,n){var s=be();return s.asyncFactory=e,s.asyncMeta={data:t,context:i,children:r,tag:n},s}(h,t,i,a,u);t=t||{},Ti(e),s(t.model)&&function(e,t){var i=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[i]=t.model.value;var n=t.on||(t.on={}),o=n[r],a=t.model.callback;s(o)?(Array.isArray(o)?-1===o.indexOf(a):o!==a)&&(n[r]=[a].concat(o)):n[r]=a}(e.options,t);var p=function(e,t,i){var r=t.options.props;if(!n(r)){var o={},a=e.attrs,l=e.props;if(s(a)||s(l))for(var u in r){var c=A(u);dt(o,l,u,c,!0)||dt(o,a,u,c,!1)}return o}}(t,e);if(o(e.options.functional))return function(e,t,i,n,o){var a=e.options,l={},u=a.props;if(s(u))for(var c in u)l[c]=je(c,u,t||r);else s(i.attrs)&&jt(l,i.attrs),s(i.props)&&jt(l,i.props);var h=new Lt(i,l,o,n,e),p=a.render.call(null,h._c,h);if(p instanceof ve)return $t(p,i,h.parent,a);if(Array.isArray(p)){for(var d=ft(p)||[],f=new Array(d.length),m=0;m<d.length;m++)f[m]=$t(d[m],i,h.parent,a);return f}}(e,p,t,i,a);var f=t.on;if(t.on=t.nativeOn,o(e.options.abstract)){var m=t.slot;t={},m&&(t.slot=m)}!function(e){for(var t=e.hook||(e.hook={}),i=0;i<Ht.length;i++){var r=Ht[i],n=t[r],s=zt[r];n===s||n&&n._merged||(t[r]=n?Wt(s,n):s)}}(t);var g=e.options.name||u;return new ve("vue-component-"+e.cid+(g?"-"+g:""),t,void 0,void 0,void 0,i,{Ctor:e,propsData:p,listeners:f,tag:u,children:a},h)}}}function Wt(e,t){var i=function(i,r){e(i,r),t(i,r)};return i._merged=!0,i}function qt(e,t,i,r,n,u){return(Array.isArray(i)||a(i))&&(n=r,r=i,i=void 0),o(u)&&(n=2),function(e,t,i,r,n){if(s(i)&&s(i.__ob__))return be();s(i)&&s(i.is)&&(t=i.is);if(!t)return be();0;Array.isArray(r)&&"function"==typeof r[0]&&((i=i||{}).scopedSlots={default:r[0]},r.length=0);2===n?r=ft(r):1===n&&(r=function(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}(r));var o,a;if("string"==typeof t){var u;a=e.$vnode&&e.$vnode.ns||j.getTagNamespace(t),o=j.isReservedTag(t)?new ve(j.parsePlatformTagName(t),i,r,void 0,void 0,e):i&&i.pre||!s(u=$e(e.$options,"components",t))?new ve(t,i,r,void 0,void 0,e):Vt(u,i,e,r,t)}else o=Vt(t,i,e,r);return Array.isArray(o)?o:s(o)?(s(a)&&Yt(o,a),s(i)&&function(e){l(e.style)&&at(e.style);l(e.class)&&at(e.class)}(i),o):be()}(e,t,i,r,n)}function Yt(e,t,i){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,i=!0),s(e.children))for(var r=0,a=e.children.length;r<a;r++){var l=e.children[r];s(l.tag)&&(n(l.ns)||o(i)&&"svg"!==l.tag)&&Yt(l,t,i)}}var Xt,Kt=null;function Gt(e,t){return(e.__esModule||ce&&"Module"===e[Symbol.toStringTag])&&(e=e.default),l(e)?t.extend(e):e}function Qt(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var i=e[t];if(s(i)&&(s(i.componentOptions)||wt(i)))return i}}function Jt(e,t){Xt.$on(e,t)}function Zt(e,t){Xt.$off(e,t)}function ei(e,t){var i=Xt;return function r(){var n=t.apply(null,arguments);null!==n&&i.$off(e,r)}}function ti(e,t,i){Xt=e,ht(t,i||{},Jt,Zt,ei,e),Xt=void 0}var ii=null;function ri(e){var t=ii;return ii=e,function(){ii=t}}function ni(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function si(e,t){if(t){if(e._directInactive=!1,ni(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var i=0;i<e.$children.length;i++)si(e.$children[i]);ai(e,"activated")}}function oi(e,t){if(!(t&&(e._directInactive=!0,ni(e))||e._inactive)){e._inactive=!0;for(var i=0;i<e.$children.length;i++)oi(e.$children[i]);ai(e,"deactivated")}}function ai(e,t){me();var i=e.$options[t],r=t+" hook";if(i)for(var n=0,s=i.length;n<s;n++)Ye(i[n],e,null,e,r);e._hasHookEvent&&e.$emit("hook:"+t),ge()}var li=[],ui=[],ci={},hi=!1,pi=!1,di=0;var fi=0,mi=Date.now;if(X&&!J){var gi=window.performance;gi&&"function"==typeof gi.now&&mi()>document.createEvent("Event").timeStamp&&(mi=function(){return gi.now()})}function vi(){var e,t;for(fi=mi(),pi=!0,li.sort((function(e,t){return e.id-t.id})),di=0;di<li.length;di++)(e=li[di]).before&&e.before(),t=e.id,ci[t]=null,e.run();var i=ui.slice(),r=li.slice();di=li.length=ui.length=0,ci={},hi=pi=!1,function(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,si(e[t],!0)}(i),function(e){var t=e.length;for(;t--;){var i=e[t],r=i.vm;r._watcher===i&&r._isMounted&&!r._isDestroyed&&ai(r,"updated")}}(r),ae&&j.devtools&&ae.emit("flush")}var yi=0,bi=function(e,t,i,r,n){this.vm=e,n&&(e._watcher=this),e._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=i,this.id=++yi,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ue,this.newDepIds=new ue,this.expression="","function"==typeof t?this.getter=t:(this.getter=function(e){if(!W.test(e)){var t=e.split(".");return function(e){for(var i=0;i<t.length;i++){if(!e)return;e=e[t[i]]}return e}}}(t),this.getter||(this.getter=M)),this.value=this.lazy?void 0:this.get()};bi.prototype.get=function(){var e;me(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(e){if(!this.user)throw e;qe(e,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&at(e),ge(),this.cleanupDeps()}return e},bi.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},bi.prototype.cleanupDeps=function(){for(var e=this.deps.length;e--;){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var i=this.depIds;this.depIds=this.newDepIds,this.newDepIds=i,this.newDepIds.clear(),i=this.deps,this.deps=this.newDeps,this.newDeps=i,this.newDeps.length=0},bi.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(e){var t=e.id;if(null==ci[t]){if(ci[t]=!0,pi){for(var i=li.length-1;i>di&&li[i].id>e.id;)i--;li.splice(i+1,0,e)}else li.push(e);hi||(hi=!0,st(vi))}}(this)},bi.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||l(e)||this.deep){var t=this.value;if(this.value=e,this.user){var i='callback for watcher "'+this.expression+'"';Ye(this.cb,this.vm,[e,t],this.vm,i)}else this.cb.call(this.vm,e,t)}}},bi.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},bi.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},bi.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||b(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var wi={enumerable:!0,configurable:!0,get:M,set:M};function _i(e,t,i){wi.get=function(){return this[t][i]},wi.set=function(e){this[t][i]=e},Object.defineProperty(e,i,wi)}function Si(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var i=e.$options.propsData||{},r=e._props={},n=e.$options._propKeys=[];e.$parent&&xe(!1);var s=function(s){n.push(s);var o=je(s,t,i,e);Te(r,s,o),s in e||_i(e,"_props",s)};for(var o in t)s(o);xe(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var i in t)e[i]="function"!=typeof t[i]?M:O(t[i],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;c(t=e._data="function"==typeof t?function(e,t){me();try{return e.call(t,t)}catch(e){return qe(e,t,"data()"),{}}finally{ge()}}(t,e):t||{})||(t={});var i=Object.keys(t),r=e.$options.props,n=(e.$options.methods,i.length);for(;n--;){var s=i[n];0,r&&_(r,s)||H(s)||_i(e,"_data",s)}Oe(t,!0)}(e):Oe(e._data={},!0),t.computed&&function(e,t){var i=e._computedWatchers=Object.create(null),r=oe();for(var n in t){var s=t[n],o="function"==typeof s?s:s.get;0,r||(i[n]=new bi(e,o||M,M,ki)),n in e||Pi(e,n,s)}}(e,t.computed),t.watch&&t.watch!==re&&function(e,t){for(var i in t){var r=t[i];if(Array.isArray(r))for(var n=0;n<r.length;n++)Ai(e,i,r[n]);else Ai(e,i,r)}}(e,t.watch)}var ki={lazy:!0};function Pi(e,t,i){var r=!oe();"function"==typeof i?(wi.get=r?Ci(t):xi(i),wi.set=M):(wi.get=i.get?r&&!1!==i.cache?Ci(t):xi(i.get):M,wi.set=i.set||M),Object.defineProperty(e,t,wi)}function Ci(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),de.target&&t.depend(),t.value}}function xi(e){return function(){return e.call(this,this)}}function Ai(e,t,i,r){return c(i)&&(r=i,i=i.handler),"string"==typeof i&&(i=e[i]),e.$watch(t,i,r)}var Oi=0;function Ti(e){var t=e.options;if(e.super){var i=Ti(e.super);if(i!==e.superOptions){e.superOptions=i;var r=function(e){var t,i=e.options,r=e.sealedOptions;for(var n in i)i[n]!==r[n]&&(t||(t={}),t[n]=i[n]);return t}(e);r&&E(e.extendOptions,r),(t=e.options=Le(i,e.extendOptions)).name&&(t.components[t.name]=e)}}return t}function Ei(e){this._init(e)}function Fi(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var i=this,r=i.cid,n=e._Ctor||(e._Ctor={});if(n[r])return n[r];var s=e.name||i.options.name;var o=function(e){this._init(e)};return(o.prototype=Object.create(i.prototype)).constructor=o,o.cid=t++,o.options=Le(i.options,e),o.super=i,o.options.props&&function(e){var t=e.options.props;for(var i in t)_i(e.prototype,"_props",i)}(o),o.options.computed&&function(e){var t=e.options.computed;for(var i in t)Pi(e.prototype,i,t[i])}(o),o.extend=i.extend,o.mixin=i.mixin,o.use=i.use,L.forEach((function(e){o[e]=i[e]})),s&&(o.options.components[s]=o),o.superOptions=i.options,o.extendOptions=e,o.sealedOptions=E({},o.options),n[r]=o,o}}function Mi(e){return e&&(e.Ctor.options.name||e.tag)}function Di(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!h(e)&&e.test(t)}function Ri(e,t){var i=e.cache,r=e.keys,n=e._vnode;for(var s in i){var o=i[s];if(o){var a=o.name;a&&!t(a)&&Ui(i,s,r,n)}}}function Ui(e,t,i,r){var n=e[t];!n||r&&n.tag===r.tag||n.componentInstance.$destroy(),e[t]=null,b(i,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=Oi++,t._isVue=!0,e&&e._isComponent?function(e,t){var i=e.$options=Object.create(e.constructor.options),r=t._parentVnode;i.parent=t.parent,i._parentVnode=r;var n=r.componentOptions;i.propsData=n.propsData,i._parentListeners=n.listeners,i._renderChildren=n.children,i._componentTag=n.tag,t.render&&(i.render=t.render,i.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Le(Ti(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,i=t.parent;if(i&&!t.abstract){for(;i.$options.abstract&&i.$parent;)i=i.$parent;i.$children.push(e)}e.$parent=i,e.$root=i?i.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&ti(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,i=e.$vnode=t._parentVnode,n=i&&i.context;e.$slots=yt(t._renderChildren,n),e.$scopedSlots=r,e._c=function(t,i,r,n){return qt(e,t,i,r,n,!1)},e.$createElement=function(t,i,r,n){return qt(e,t,i,r,n,!0)};var s=i&&i.data;Te(e,"$attrs",s&&s.attrs||r,null,!0),Te(e,"$listeners",t._parentListeners||r,null,!0)}(t),ai(t,"beforeCreate"),function(e){var t=vt(e.$options.inject,e);t&&(xe(!1),Object.keys(t).forEach((function(i){Te(e,i,t[i])})),xe(!0))}(t),Si(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),ai(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(Ei),function(e){var t={get:function(){return this._data}},i={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",i),e.prototype.$set=Ee,e.prototype.$delete=Fe,e.prototype.$watch=function(e,t,i){var r=this;if(c(t))return Ai(r,e,t,i);(i=i||{}).user=!0;var n=new bi(r,e,t,i);if(i.immediate){var s='callback for immediate watcher "'+n.expression+'"';me(),Ye(t,r,[n.value],r,s),ge()}return function(){n.teardown()}}}(Ei),function(e){var t=/^hook:/;e.prototype.$on=function(e,i){var r=this;if(Array.isArray(e))for(var n=0,s=e.length;n<s;n++)r.$on(e[n],i);else(r._events[e]||(r._events[e]=[])).push(i),t.test(e)&&(r._hasHookEvent=!0);return r},e.prototype.$once=function(e,t){var i=this;function r(){i.$off(e,r),t.apply(i,arguments)}return r.fn=t,i.$on(e,r),i},e.prototype.$off=function(e,t){var i=this;if(!arguments.length)return i._events=Object.create(null),i;if(Array.isArray(e)){for(var r=0,n=e.length;r<n;r++)i.$off(e[r],t);return i}var s,o=i._events[e];if(!o)return i;if(!t)return i._events[e]=null,i;for(var a=o.length;a--;)if((s=o[a])===t||s.fn===t){o.splice(a,1);break}return i},e.prototype.$emit=function(e){var t=this,i=t._events[e];if(i){i=i.length>1?T(i):i;for(var r=T(arguments,1),n='event handler for "'+e+'"',s=0,o=i.length;s<o;s++)Ye(i[s],t,r,t,n)}return t}}(Ei),function(e){e.prototype._update=function(e,t){var i=this,r=i.$el,n=i._vnode,s=ri(i);i._vnode=e,i.$el=n?i.__patch__(n,e):i.__patch__(i.$el,e,t,!1),s(),r&&(r.__vue__=null),i.$el&&(i.$el.__vue__=i),i.$vnode&&i.$parent&&i.$vnode===i.$parent._vnode&&(i.$parent.$el=i.$el)},e.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){ai(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||b(t.$children,e),e._watcher&&e._watcher.teardown();for(var i=e._watchers.length;i--;)e._watchers[i].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),ai(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}(Ei),function(e){Bt(e.prototype),e.prototype.$nextTick=function(e){return st(e,this)},e.prototype._render=function(){var e,t=this,i=t.$options,r=i.render,n=i._parentVnode;n&&(t.$scopedSlots=_t(n.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=n;try{Kt=t,e=r.call(t._renderProxy,t.$createElement)}catch(i){qe(i,t,"render"),e=t._vnode}finally{Kt=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof ve||(e=be()),e.parent=n,e}}(Ei);var Ii=[String,RegExp,Array],Ni={name:"keep-alive",abstract:!0,props:{include:Ii,exclude:Ii,max:[String,Number]},methods:{cacheVNode:function(){var e=this,t=e.cache,i=e.keys,r=e.vnodeToCache,n=e.keyToCache;if(r){var s=r.tag,o=r.componentInstance,a=r.componentOptions;t[n]={name:Mi(a),tag:s,componentInstance:o},i.push(n),this.max&&i.length>parseInt(this.max)&&Ui(t,i[0],i,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Ui(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",(function(t){Ri(e,(function(e){return Di(t,e)}))})),this.$watch("exclude",(function(t){Ri(e,(function(e){return!Di(t,e)}))}))},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,t=Qt(e),i=t&&t.componentOptions;if(i){var r=Mi(i),n=this.include,s=this.exclude;if(n&&(!r||!Di(n,r))||s&&r&&Di(s,r))return t;var o=this.cache,a=this.keys,l=null==t.key?i.Ctor.cid+(i.tag?"::"+i.tag:""):t.key;o[l]?(t.componentInstance=o[l].componentInstance,b(a,l),a.push(l)):(this.vnodeToCache=t,this.keyToCache=l),t.data.keepAlive=!0}return t||e&&e[0]}},Bi={KeepAlive:Ni};!function(e){var t={get:function(){return j}};Object.defineProperty(e,"config",t),e.util={warn:he,extend:E,mergeOptions:Le,defineReactive:Te},e.set=Ee,e.delete=Fe,e.nextTick=st,e.observable=function(e){return Oe(e),e},e.options=Object.create(null),L.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,E(e.options.components,Bi),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var i=T(arguments,1);return i.unshift(this),"function"==typeof e.install?e.install.apply(e,i):"function"==typeof e&&e.apply(null,i),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Le(this.options,e),this}}(e),Fi(e),function(e){L.forEach((function(t){e[t]=function(e,i){return i?("component"===t&&c(i)&&(i.name=i.name||e,i=this.options._base.extend(i)),"directive"===t&&"function"==typeof i&&(i={bind:i,update:i}),this.options[t+"s"][e]=i,i):this.options[t+"s"][e]}}))}(e)}(Ei),Object.defineProperty(Ei.prototype,"$isServer",{get:oe}),Object.defineProperty(Ei.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Ei,"FunctionalRenderContext",{value:Lt}),Ei.version="2.6.14";var Li=g("style,class"),$i=g("input,textarea,option,select,progress"),ji=function(e,t,i){return"value"===i&&$i(e)&&"button"!==t||"selected"===i&&"option"===e||"checked"===i&&"input"===e||"muted"===i&&"video"===e},zi=g("contenteditable,draggable,spellcheck"),Hi=g("events,caret,typing,plaintext-only"),Vi=g("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),Wi="http://www.w3.org/1999/xlink",qi=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Yi=function(e){return qi(e)?e.slice(6,e.length):""},Xi=function(e){return null==e||!1===e};function Ki(e){for(var t=e.data,i=e,r=e;s(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=Gi(r.data,t));for(;s(i=i.parent);)i&&i.data&&(t=Gi(t,i.data));return function(e,t){if(s(e)||s(t))return Qi(e,Ji(t));return""}(t.staticClass,t.class)}function Gi(e,t){return{staticClass:Qi(e.staticClass,t.staticClass),class:s(e.class)?[e.class,t.class]:t.class}}function Qi(e,t){return e?t?e+" "+t:e:t||""}function Ji(e){return Array.isArray(e)?function(e){for(var t,i="",r=0,n=e.length;r<n;r++)s(t=Ji(e[r]))&&""!==t&&(i&&(i+=" "),i+=t);return i}(e):l(e)?function(e){var t="";for(var i in e)e[i]&&(t&&(t+=" "),t+=i);return t}(e):"string"==typeof e?e:""}var Zi={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},er=g("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),tr=g("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),ir=function(e){return er(e)||tr(e)};function rr(e){return tr(e)?"svg":"math"===e?"math":void 0}var nr=Object.create(null);var sr=g("text,number,password,search,email,tel,url");function or(e){if("string"==typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}var ar=Object.freeze({createElement:function(e,t){var i=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&i.setAttribute("multiple","multiple"),i},createElementNS:function(e,t){return document.createElementNS(Zi[e],t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,i){e.insertBefore(t,i)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},setStyleScope:function(e,t){e.setAttribute(t,"")}}),lr={create:function(e,t){ur(t)},update:function(e,t){e.data.ref!==t.data.ref&&(ur(e,!0),ur(t))},destroy:function(e){ur(e,!0)}};function ur(e,t){var i=e.data.ref;if(s(i)){var r=e.context,n=e.componentInstance||e.elm,o=r.$refs;t?Array.isArray(o[i])?b(o[i],n):o[i]===n&&(o[i]=void 0):e.data.refInFor?Array.isArray(o[i])?o[i].indexOf(n)<0&&o[i].push(n):o[i]=[n]:o[i]=n}}var cr=new ve("",{},[]),hr=["create","activate","update","remove","destroy"];function pr(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&s(e.data)===s(t.data)&&function(e,t){if("input"!==e.tag)return!0;var i,r=s(i=e.data)&&s(i=i.attrs)&&i.type,n=s(i=t.data)&&s(i=i.attrs)&&i.type;return r===n||sr(r)&&sr(n)}(e,t)||o(e.isAsyncPlaceholder)&&n(t.asyncFactory.error))}function dr(e,t,i){var r,n,o={};for(r=t;r<=i;++r)s(n=e[r].key)&&(o[n]=r);return o}var fr={create:mr,update:mr,destroy:function(e){mr(e,cr)}};function mr(e,t){(e.data.directives||t.data.directives)&&function(e,t){var i,r,n,s=e===cr,o=t===cr,a=vr(e.data.directives,e.context),l=vr(t.data.directives,t.context),u=[],c=[];for(i in l)r=a[i],n=l[i],r?(n.oldValue=r.value,n.oldArg=r.arg,br(n,"update",t,e),n.def&&n.def.componentUpdated&&c.push(n)):(br(n,"bind",t,e),n.def&&n.def.inserted&&u.push(n));if(u.length){var h=function(){for(var i=0;i<u.length;i++)br(u[i],"inserted",t,e)};s?pt(t,"insert",h):h()}c.length&&pt(t,"postpatch",(function(){for(var i=0;i<c.length;i++)br(c[i],"componentUpdated",t,e)}));if(!s)for(i in a)l[i]||br(a[i],"unbind",e,e,o)}(e,t)}var gr=Object.create(null);function vr(e,t){var i,r,n=Object.create(null);if(!e)return n;for(i=0;i<e.length;i++)(r=e[i]).modifiers||(r.modifiers=gr),n[yr(r)]=r,r.def=$e(t.$options,"directives",r.name);return n}function yr(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function br(e,t,i,r,n){var s=e.def&&e.def[t];if(s)try{s(i.elm,e,i,r,n)}catch(r){qe(r,i.context,"directive "+e.name+" "+t+" hook")}}var wr=[lr,fr];function _r(e,t){var i=t.componentOptions;if(!(s(i)&&!1===i.Ctor.options.inheritAttrs||n(e.data.attrs)&&n(t.data.attrs))){var r,o,a=t.elm,l=e.data.attrs||{},u=t.data.attrs||{};for(r in s(u.__ob__)&&(u=t.data.attrs=E({},u)),u)o=u[r],l[r]!==o&&Sr(a,r,o,t.data.pre);for(r in(J||ee)&&u.value!==l.value&&Sr(a,"value",u.value),l)n(u[r])&&(qi(r)?a.removeAttributeNS(Wi,Yi(r)):zi(r)||a.removeAttribute(r))}}function Sr(e,t,i,r){r||e.tagName.indexOf("-")>-1?kr(e,t,i):Vi(t)?Xi(i)?e.removeAttribute(t):(i="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,i)):zi(t)?e.setAttribute(t,function(e,t){return Xi(t)||"false"===t?"false":"contenteditable"===e&&Hi(t)?t:"true"}(t,i)):qi(t)?Xi(i)?e.removeAttributeNS(Wi,Yi(t)):e.setAttributeNS(Wi,t,i):kr(e,t,i)}function kr(e,t,i){if(Xi(i))e.removeAttribute(t);else{if(J&&!Z&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==i&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,i)}}var Pr={create:_r,update:_r};function Cr(e,t){var i=t.elm,r=t.data,o=e.data;if(!(n(r.staticClass)&&n(r.class)&&(n(o)||n(o.staticClass)&&n(o.class)))){var a=Ki(t),l=i._transitionClasses;s(l)&&(a=Qi(a,Ji(l))),a!==i._prevClass&&(i.setAttribute("class",a),i._prevClass=a)}}var xr,Ar,Or,Tr,Er,Fr,Mr={create:Cr,update:Cr},Dr=/[\w).+\-_$\]]/;function Rr(e){var t,i,r,n,s,o=!1,a=!1,l=!1,u=!1,c=0,h=0,p=0,d=0;for(r=0;r<e.length;r++)if(i=t,t=e.charCodeAt(r),o)39===t&&92!==i&&(o=!1);else if(a)34===t&&92!==i&&(a=!1);else if(l)96===t&&92!==i&&(l=!1);else if(u)47===t&&92!==i&&(u=!1);else if(124!==t||124===e.charCodeAt(r+1)||124===e.charCodeAt(r-1)||c||h||p){switch(t){case 34:a=!0;break;case 39:o=!0;break;case 96:l=!0;break;case 40:p++;break;case 41:p--;break;case 91:h++;break;case 93:h--;break;case 123:c++;break;case 125:c--}if(47===t){for(var f=r-1,m=void 0;f>=0&&" "===(m=e.charAt(f));f--);m&&Dr.test(m)||(u=!0)}}else void 0===n?(d=r+1,n=e.slice(0,r).trim()):g();function g(){(s||(s=[])).push(e.slice(d,r).trim()),d=r+1}if(void 0===n?n=e.slice(0,r).trim():0!==d&&g(),s)for(r=0;r<s.length;r++)n=Ur(n,s[r]);return n}function Ur(e,t){var i=t.indexOf("(");if(i<0)return'_f("'+t+'")('+e+")";var r=t.slice(0,i),n=t.slice(i+1);return'_f("'+r+'")('+e+(")"!==n?","+n:n)}function Ir(e,t){console.error("[Vue compiler]: "+e)}function Nr(e,t){return e?e.map((function(e){return e[t]})).filter((function(e){return e})):[]}function Br(e,t,i,r,n){(e.props||(e.props=[])).push(Yr({name:t,value:i,dynamic:n},r)),e.plain=!1}function Lr(e,t,i,r,n){(n?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[])).push(Yr({name:t,value:i,dynamic:n},r)),e.plain=!1}function $r(e,t,i,r){e.attrsMap[t]=i,e.attrsList.push(Yr({name:t,value:i},r))}function jr(e,t,i,r,n,s,o,a){(e.directives||(e.directives=[])).push(Yr({name:t,rawName:i,value:r,arg:n,isDynamicArg:s,modifiers:o},a)),e.plain=!1}function zr(e,t,i){return i?"_p("+t+',"'+e+'")':e+t}function Hr(e,t,i,n,s,o,a,l){var u;(n=n||r).right?l?t="("+t+")==='click'?'contextmenu':("+t+")":"click"===t&&(t="contextmenu",delete n.right):n.middle&&(l?t="("+t+")==='click'?'mouseup':("+t+")":"click"===t&&(t="mouseup")),n.capture&&(delete n.capture,t=zr("!",t,l)),n.once&&(delete n.once,t=zr("~",t,l)),n.passive&&(delete n.passive,t=zr("&",t,l)),n.native?(delete n.native,u=e.nativeEvents||(e.nativeEvents={})):u=e.events||(e.events={});var c=Yr({value:i.trim(),dynamic:l},a);n!==r&&(c.modifiers=n);var h=u[t];Array.isArray(h)?s?h.unshift(c):h.push(c):u[t]=h?s?[c,h]:[h,c]:c,e.plain=!1}function Vr(e,t,i){var r=Wr(e,":"+t)||Wr(e,"v-bind:"+t);if(null!=r)return Rr(r);if(!1!==i){var n=Wr(e,t);if(null!=n)return JSON.stringify(n)}}function Wr(e,t,i){var r;if(null!=(r=e.attrsMap[t]))for(var n=e.attrsList,s=0,o=n.length;s<o;s++)if(n[s].name===t){n.splice(s,1);break}return i&&delete e.attrsMap[t],r}function qr(e,t){for(var i=e.attrsList,r=0,n=i.length;r<n;r++){var s=i[r];if(t.test(s.name))return i.splice(r,1),s}}function Yr(e,t){return t&&(null!=t.start&&(e.start=t.start),null!=t.end&&(e.end=t.end)),e}function Xr(e,t,i){var r=i||{},n=r.number,s="$$v",o=s;r.trim&&(o="(typeof $$v === 'string'? $$v.trim(): $$v)"),n&&(o="_n("+o+")");var a=Kr(t,o);e.model={value:"("+t+")",expression:JSON.stringify(t),callback:"function ($$v) {"+a+"}"}}function Kr(e,t){var i=function(e){if(e=e.trim(),xr=e.length,e.indexOf("[")<0||e.lastIndexOf("]")<xr-1)return(Tr=e.lastIndexOf("."))>-1?{exp:e.slice(0,Tr),key:'"'+e.slice(Tr+1)+'"'}:{exp:e,key:null};Ar=e,Tr=Er=Fr=0;for(;!Qr();)Jr(Or=Gr())?en(Or):91===Or&&Zr(Or);return{exp:e.slice(0,Er),key:e.slice(Er+1,Fr)}}(e);return null===i.key?e+"="+t:"$set("+i.exp+", "+i.key+", "+t+")"}function Gr(){return Ar.charCodeAt(++Tr)}function Qr(){return Tr>=xr}function Jr(e){return 34===e||39===e}function Zr(e){var t=1;for(Er=Tr;!Qr();)if(Jr(e=Gr()))en(e);else if(91===e&&t++,93===e&&t--,0===t){Fr=Tr;break}}function en(e){for(var t=e;!Qr()&&(e=Gr())!==t;);}var tn,rn="__r";function nn(e,t,i){var r=tn;return function n(){var s=t.apply(null,arguments);null!==s&&an(e,n,i,r)}}var sn=Qe&&!(ie&&Number(ie[1])<=53);function on(e,t,i,r){if(sn){var n=fi,s=t;t=s._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=n||e.timeStamp<=0||e.target.ownerDocument!==document)return s.apply(this,arguments)}}tn.addEventListener(e,t,ne?{capture:i,passive:r}:i)}function an(e,t,i,r){(r||tn).removeEventListener(e,t._wrapper||t,i)}function ln(e,t){if(!n(e.data.on)||!n(t.data.on)){var i=t.data.on||{},r=e.data.on||{};tn=t.elm,function(e){if(s(e.__r)){var t=J?"change":"input";e[t]=[].concat(e.__r,e[t]||[]),delete e.__r}s(e.__c)&&(e.change=[].concat(e.__c,e.change||[]),delete e.__c)}(i),ht(i,r,on,an,nn,t.context),tn=void 0}}var un,cn={create:ln,update:ln};function hn(e,t){if(!n(e.data.domProps)||!n(t.data.domProps)){var i,r,o=t.elm,a=e.data.domProps||{},l=t.data.domProps||{};for(i in s(l.__ob__)&&(l=t.data.domProps=E({},l)),a)i in l||(o[i]="");for(i in l){if(r=l[i],"textContent"===i||"innerHTML"===i){if(t.children&&(t.children.length=0),r===a[i])continue;1===o.childNodes.length&&o.removeChild(o.childNodes[0])}if("value"===i&&"PROGRESS"!==o.tagName){o._value=r;var u=n(r)?"":String(r);pn(o,u)&&(o.value=u)}else if("innerHTML"===i&&tr(o.tagName)&&n(o.innerHTML)){(un=un||document.createElement("div")).innerHTML="<svg>"+r+"</svg>";for(var c=un.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;c.firstChild;)o.appendChild(c.firstChild)}else if(r!==a[i])try{o[i]=r}catch(e){}}}}function pn(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var i=!0;try{i=document.activeElement!==e}catch(e){}return i&&e.value!==t}(e,t)||function(e,t){var i=e.value,r=e._vModifiers;if(s(r)){if(r.number)return m(i)!==m(t);if(r.trim)return i.trim()!==t.trim()}return i!==t}(e,t))}var dn={create:hn,update:hn},fn=S((function(e){var t={},i=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var r=e.split(i);r.length>1&&(t[r[0].trim()]=r[1].trim())}})),t}));function mn(e){var t=gn(e.style);return e.staticStyle?E(e.staticStyle,t):t}function gn(e){return Array.isArray(e)?F(e):"string"==typeof e?fn(e):e}var vn,yn=/^--/,bn=/\s*!important$/,wn=function(e,t,i){if(yn.test(t))e.style.setProperty(t,i);else if(bn.test(i))e.style.setProperty(A(t),i.replace(bn,""),"important");else{var r=Sn(t);if(Array.isArray(i))for(var n=0,s=i.length;n<s;n++)e.style[r]=i[n];else e.style[r]=i}},_n=["Webkit","Moz","ms"],Sn=S((function(e){if(vn=vn||document.createElement("div").style,"filter"!==(e=P(e))&&e in vn)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<_n.length;i++){var r=_n[i]+t;if(r in vn)return r}}));function kn(e,t){var i=t.data,r=e.data;if(!(n(i.staticStyle)&&n(i.style)&&n(r.staticStyle)&&n(r.style))){var o,a,l=t.elm,u=r.staticStyle,c=r.normalizedStyle||r.style||{},h=u||c,p=gn(t.data.style)||{};t.data.normalizedStyle=s(p.__ob__)?E({},p):p;var d=function(e,t){var i,r={};if(t)for(var n=e;n.componentInstance;)(n=n.componentInstance._vnode)&&n.data&&(i=mn(n.data))&&E(r,i);(i=mn(e.data))&&E(r,i);for(var s=e;s=s.parent;)s.data&&(i=mn(s.data))&&E(r,i);return r}(t,!0);for(a in h)n(d[a])&&wn(l,a,"");for(a in d)(o=d[a])!==h[a]&&wn(l,a,null==o?"":o)}}var Pn={create:kn,update:kn},Cn=/\s+/;function xn(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Cn).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var i=" "+(e.getAttribute("class")||"")+" ";i.indexOf(" "+t+" ")<0&&e.setAttribute("class",(i+t).trim())}}function An(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Cn).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var i=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";i.indexOf(r)>=0;)i=i.replace(r," ");(i=i.trim())?e.setAttribute("class",i):e.removeAttribute("class")}}function On(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&E(t,Tn(e.name||"v")),E(t,e),t}return"string"==typeof e?Tn(e):void 0}}var Tn=S((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),En=X&&!Z,Fn="transition",Mn="animation",Dn="transition",Rn="transitionend",Un="animation",In="animationend";En&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Dn="WebkitTransition",Rn="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Un="WebkitAnimation",In="webkitAnimationEnd"));var Nn=X?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Bn(e){Nn((function(){Nn(e)}))}function Ln(e,t){var i=e._transitionClasses||(e._transitionClasses=[]);i.indexOf(t)<0&&(i.push(t),xn(e,t))}function $n(e,t){e._transitionClasses&&b(e._transitionClasses,t),An(e,t)}function jn(e,t,i){var r=Hn(e,t),n=r.type,s=r.timeout,o=r.propCount;if(!n)return i();var a=n===Fn?Rn:In,l=0,u=function(){e.removeEventListener(a,c),i()},c=function(t){t.target===e&&++l>=o&&u()};setTimeout((function(){l<o&&u()}),s+1),e.addEventListener(a,c)}var zn=/\b(transform|all)(,|$)/;function Hn(e,t){var i,r=window.getComputedStyle(e),n=(r[Dn+"Delay"]||"").split(", "),s=(r[Dn+"Duration"]||"").split(", "),o=Vn(n,s),a=(r[Un+"Delay"]||"").split(", "),l=(r[Un+"Duration"]||"").split(", "),u=Vn(a,l),c=0,h=0;return t===Fn?o>0&&(i=Fn,c=o,h=s.length):t===Mn?u>0&&(i=Mn,c=u,h=l.length):h=(i=(c=Math.max(o,u))>0?o>u?Fn:Mn:null)?i===Fn?s.length:l.length:0,{type:i,timeout:c,propCount:h,hasTransform:i===Fn&&zn.test(r[Dn+"Property"])}}function Vn(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max.apply(null,t.map((function(t,i){return Wn(t)+Wn(e[i])})))}function Wn(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function qn(e,t){var i=e.elm;s(i._leaveCb)&&(i._leaveCb.cancelled=!0,i._leaveCb());var r=On(e.data.transition);if(!n(r)&&!s(i._enterCb)&&1===i.nodeType){for(var o=r.css,a=r.type,u=r.enterClass,c=r.enterToClass,h=r.enterActiveClass,p=r.appearClass,d=r.appearToClass,f=r.appearActiveClass,g=r.beforeEnter,v=r.enter,y=r.afterEnter,b=r.enterCancelled,w=r.beforeAppear,_=r.appear,S=r.afterAppear,k=r.appearCancelled,P=r.duration,C=ii,x=ii.$vnode;x&&x.parent;)C=x.context,x=x.parent;var A=!C._isMounted||!e.isRootInsert;if(!A||_||""===_){var O=A&&p?p:u,T=A&&f?f:h,E=A&&d?d:c,F=A&&w||g,M=A&&"function"==typeof _?_:v,D=A&&S||y,R=A&&k||b,U=m(l(P)?P.enter:P);0;var I=!1!==o&&!Z,B=Kn(M),L=i._enterCb=N((function(){I&&($n(i,E),$n(i,T)),L.cancelled?(I&&$n(i,O),R&&R(i)):D&&D(i),i._enterCb=null}));e.data.show||pt(e,"insert",(function(){var t=i.parentNode,r=t&&t._pending&&t._pending[e.key];r&&r.tag===e.tag&&r.elm._leaveCb&&r.elm._leaveCb(),M&&M(i,L)})),F&&F(i),I&&(Ln(i,O),Ln(i,T),Bn((function(){$n(i,O),L.cancelled||(Ln(i,E),B||(Xn(U)?setTimeout(L,U):jn(i,a,L)))}))),e.data.show&&(t&&t(),M&&M(i,L)),I||B||L()}}}function Yn(e,t){var i=e.elm;s(i._enterCb)&&(i._enterCb.cancelled=!0,i._enterCb());var r=On(e.data.transition);if(n(r)||1!==i.nodeType)return t();if(!s(i._leaveCb)){var o=r.css,a=r.type,u=r.leaveClass,c=r.leaveToClass,h=r.leaveActiveClass,p=r.beforeLeave,d=r.leave,f=r.afterLeave,g=r.leaveCancelled,v=r.delayLeave,y=r.duration,b=!1!==o&&!Z,w=Kn(d),_=m(l(y)?y.leave:y);0;var S=i._leaveCb=N((function(){i.parentNode&&i.parentNode._pending&&(i.parentNode._pending[e.key]=null),b&&($n(i,c),$n(i,h)),S.cancelled?(b&&$n(i,u),g&&g(i)):(t(),f&&f(i)),i._leaveCb=null}));v?v(k):k()}function k(){S.cancelled||(!e.data.show&&i.parentNode&&((i.parentNode._pending||(i.parentNode._pending={}))[e.key]=e),p&&p(i),b&&(Ln(i,u),Ln(i,h),Bn((function(){$n(i,u),S.cancelled||(Ln(i,c),w||(Xn(_)?setTimeout(S,_):jn(i,a,S)))}))),d&&d(i,S),b||w||S())}}function Xn(e){return"number"==typeof e&&!isNaN(e)}function Kn(e){if(n(e))return!1;var t=e.fns;return s(t)?Kn(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function Gn(e,t){!0!==t.data.show&&qn(t)}var Qn=function(e){var t,i,r={},l=e.modules,u=e.nodeOps;for(t=0;t<hr.length;++t)for(r[hr[t]]=[],i=0;i<l.length;++i)s(l[i][hr[t]])&&r[hr[t]].push(l[i][hr[t]]);function c(e){var t=u.parentNode(e);s(t)&&u.removeChild(t,e)}function h(e,t,i,n,a,l,c){if(s(e.elm)&&s(l)&&(e=l[c]=_e(e)),e.isRootInsert=!a,!function(e,t,i,n){var a=e.data;if(s(a)){var l=s(e.componentInstance)&&a.keepAlive;if(s(a=a.hook)&&s(a=a.init)&&a(e,!1),s(e.componentInstance))return p(e,t),d(i,e.elm,n),o(l)&&function(e,t,i,n){var o,a=e;for(;a.componentInstance;)if(s(o=(a=a.componentInstance._vnode).data)&&s(o=o.transition)){for(o=0;o<r.activate.length;++o)r.activate[o](cr,a);t.push(a);break}d(i,e.elm,n)}(e,t,i,n),!0}}(e,t,i,n)){var h=e.data,m=e.children,g=e.tag;s(g)?(e.elm=e.ns?u.createElementNS(e.ns,g):u.createElement(g,e),y(e),f(e,m,t),s(h)&&v(e,t),d(i,e.elm,n)):o(e.isComment)?(e.elm=u.createComment(e.text),d(i,e.elm,n)):(e.elm=u.createTextNode(e.text),d(i,e.elm,n))}}function p(e,t){s(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,m(e)?(v(e,t),y(e)):(ur(e),t.push(e))}function d(e,t,i){s(e)&&(s(i)?u.parentNode(i)===e&&u.insertBefore(e,t,i):u.appendChild(e,t))}function f(e,t,i){if(Array.isArray(t)){0;for(var r=0;r<t.length;++r)h(t[r],i,e.elm,null,!0,t,r)}else a(e.text)&&u.appendChild(e.elm,u.createTextNode(String(e.text)))}function m(e){for(;e.componentInstance;)e=e.componentInstance._vnode;return s(e.tag)}function v(e,i){for(var n=0;n<r.create.length;++n)r.create[n](cr,e);s(t=e.data.hook)&&(s(t.create)&&t.create(cr,e),s(t.insert)&&i.push(e))}function y(e){var t;if(s(t=e.fnScopeId))u.setStyleScope(e.elm,t);else for(var i=e;i;)s(t=i.context)&&s(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t),i=i.parent;s(t=ii)&&t!==e.context&&t!==e.fnContext&&s(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t)}function b(e,t,i,r,n,s){for(;r<=n;++r)h(i[r],s,e,t,!1,i,r)}function w(e){var t,i,n=e.data;if(s(n))for(s(t=n.hook)&&s(t=t.destroy)&&t(e),t=0;t<r.destroy.length;++t)r.destroy[t](e);if(s(t=e.children))for(i=0;i<e.children.length;++i)w(e.children[i])}function _(e,t,i){for(;t<=i;++t){var r=e[t];s(r)&&(s(r.tag)?(S(r),w(r)):c(r.elm))}}function S(e,t){if(s(t)||s(e.data)){var i,n=r.remove.length+1;for(s(t)?t.listeners+=n:t=function(e,t){function i(){0==--i.listeners&&c(e)}return i.listeners=t,i}(e.elm,n),s(i=e.componentInstance)&&s(i=i._vnode)&&s(i.data)&&S(i,t),i=0;i<r.remove.length;++i)r.remove[i](e,t);s(i=e.data.hook)&&s(i=i.remove)?i(e,t):t()}else c(e.elm)}function k(e,t,i,r){for(var n=i;n<r;n++){var o=t[n];if(s(o)&&pr(e,o))return n}}function P(e,t,i,a,l,c){if(e!==t){s(t.elm)&&s(a)&&(t=a[l]=_e(t));var p=t.elm=e.elm;if(o(e.isAsyncPlaceholder))s(t.asyncFactory.resolved)?A(e.elm,t,i):t.isAsyncPlaceholder=!0;else if(o(t.isStatic)&&o(e.isStatic)&&t.key===e.key&&(o(t.isCloned)||o(t.isOnce)))t.componentInstance=e.componentInstance;else{var d,f=t.data;s(f)&&s(d=f.hook)&&s(d=d.prepatch)&&d(e,t);var g=e.children,v=t.children;if(s(f)&&m(t)){for(d=0;d<r.update.length;++d)r.update[d](e,t);s(d=f.hook)&&s(d=d.update)&&d(e,t)}n(t.text)?s(g)&&s(v)?g!==v&&function(e,t,i,r,o){var a,l,c,p=0,d=0,f=t.length-1,m=t[0],g=t[f],v=i.length-1,y=i[0],w=i[v],S=!o;for(;p<=f&&d<=v;)n(m)?m=t[++p]:n(g)?g=t[--f]:pr(m,y)?(P(m,y,r,i,d),m=t[++p],y=i[++d]):pr(g,w)?(P(g,w,r,i,v),g=t[--f],w=i[--v]):pr(m,w)?(P(m,w,r,i,v),S&&u.insertBefore(e,m.elm,u.nextSibling(g.elm)),m=t[++p],w=i[--v]):pr(g,y)?(P(g,y,r,i,d),S&&u.insertBefore(e,g.elm,m.elm),g=t[--f],y=i[++d]):(n(a)&&(a=dr(t,p,f)),n(l=s(y.key)?a[y.key]:k(y,t,p,f))?h(y,r,e,m.elm,!1,i,d):pr(c=t[l],y)?(P(c,y,r,i,d),t[l]=void 0,S&&u.insertBefore(e,c.elm,m.elm)):h(y,r,e,m.elm,!1,i,d),y=i[++d]);p>f?b(e,n(i[v+1])?null:i[v+1].elm,i,d,v,r):d>v&&_(t,p,f)}(p,g,v,i,c):s(v)?(s(e.text)&&u.setTextContent(p,""),b(p,null,v,0,v.length-1,i)):s(g)?_(g,0,g.length-1):s(e.text)&&u.setTextContent(p,""):e.text!==t.text&&u.setTextContent(p,t.text),s(f)&&s(d=f.hook)&&s(d=d.postpatch)&&d(e,t)}}}function C(e,t,i){if(o(i)&&s(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r<t.length;++r)t[r].data.hook.insert(t[r])}var x=g("attrs,class,staticClass,staticStyle,key");function A(e,t,i,r){var n,a=t.tag,l=t.data,u=t.children;if(r=r||l&&l.pre,t.elm=e,o(t.isComment)&&s(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(s(l)&&(s(n=l.hook)&&s(n=n.init)&&n(t,!0),s(n=t.componentInstance)))return p(t,i),!0;if(s(a)){if(s(u))if(e.hasChildNodes())if(s(n=l)&&s(n=n.domProps)&&s(n=n.innerHTML)){if(n!==e.innerHTML)return!1}else{for(var c=!0,h=e.firstChild,d=0;d<u.length;d++){if(!h||!A(h,u[d],i,r)){c=!1;break}h=h.nextSibling}if(!c||h)return!1}else f(t,u,i);if(s(l)){var m=!1;for(var g in l)if(!x(g)){m=!0,v(t,i);break}!m&&l.class&&at(l.class)}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,i,a){if(!n(t)){var l,c=!1,p=[];if(n(e))c=!0,h(t,p);else{var d=s(e.nodeType);if(!d&&pr(e,t))P(e,t,p,null,null,a);else{if(d){if(1===e.nodeType&&e.hasAttribute(B)&&(e.removeAttribute(B),i=!0),o(i)&&A(e,t,p))return C(t,p,!0),e;l=e,e=new ve(u.tagName(l).toLowerCase(),{},[],void 0,l)}var f=e.elm,g=u.parentNode(f);if(h(t,p,f._leaveCb?null:g,u.nextSibling(f)),s(t.parent))for(var v=t.parent,y=m(t);v;){for(var b=0;b<r.destroy.length;++b)r.destroy[b](v);if(v.elm=t.elm,y){for(var S=0;S<r.create.length;++S)r.create[S](cr,v);var k=v.data.hook.insert;if(k.merged)for(var x=1;x<k.fns.length;x++)k.fns[x]()}else ur(v);v=v.parent}s(g)?_([e],0,0):s(e.tag)&&w(e)}}return C(t,p,c),t.elm}s(e)&&w(e)}}({nodeOps:ar,modules:[Pr,Mr,cn,dn,Pn,X?{create:Gn,activate:Gn,remove:function(e,t){!0!==e.data.show?Yn(e,t):t()}}:{}].concat(wr)});Z&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&ss(e,"input")}));var Jn={inserted:function(e,t,i,r){"select"===i.tag?(r.elm&&!r.elm._vOptions?pt(i,"postpatch",(function(){Jn.componentUpdated(e,t,i)})):Zn(e,t,i.context),e._vOptions=[].map.call(e.options,is)):("textarea"===i.tag||sr(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",rs),e.addEventListener("compositionend",ns),e.addEventListener("change",ns),Z&&(e.vmodel=!0)))},componentUpdated:function(e,t,i){if("select"===i.tag){Zn(e,t,i.context);var r=e._vOptions,n=e._vOptions=[].map.call(e.options,is);if(n.some((function(e,t){return!U(e,r[t])})))(e.multiple?t.value.some((function(e){return ts(e,n)})):t.value!==t.oldValue&&ts(t.value,n))&&ss(e,"change")}}};function Zn(e,t,i){es(e,t,i),(J||ee)&&setTimeout((function(){es(e,t,i)}),0)}function es(e,t,i){var r=t.value,n=e.multiple;if(!n||Array.isArray(r)){for(var s,o,a=0,l=e.options.length;a<l;a++)if(o=e.options[a],n)s=I(r,is(o))>-1,o.selected!==s&&(o.selected=s);else if(U(is(o),r))return void(e.selectedIndex!==a&&(e.selectedIndex=a));n||(e.selectedIndex=-1)}}function ts(e,t){return t.every((function(t){return!U(t,e)}))}function is(e){return"_value"in e?e._value:e.value}function rs(e){e.target.composing=!0}function ns(e){e.target.composing&&(e.target.composing=!1,ss(e.target,"input"))}function ss(e,t){var i=document.createEvent("HTMLEvents");i.initEvent(t,!0,!0),e.dispatchEvent(i)}function os(e){return!e.componentInstance||e.data&&e.data.transition?e:os(e.componentInstance._vnode)}var as={bind:function(e,t,i){var r=t.value,n=(i=os(i)).data&&i.data.transition,s=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&n?(i.data.show=!0,qn(i,(function(){e.style.display=s}))):e.style.display=r?s:"none"},update:function(e,t,i){var r=t.value;!r!=!t.oldValue&&((i=os(i)).data&&i.data.transition?(i.data.show=!0,r?qn(i,(function(){e.style.display=e.__vOriginalDisplay})):Yn(i,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,i,r,n){n||(e.style.display=e.__vOriginalDisplay)}},ls={model:Jn,show:as},us={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function cs(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?cs(Qt(t.children)):e}function hs(e){var t={},i=e.$options;for(var r in i.propsData)t[r]=e[r];var n=i._parentListeners;for(var s in n)t[P(s)]=n[s];return t}function ps(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var ds=function(e){return e.tag||wt(e)},fs=function(e){return"show"===e.name},ms={name:"transition",props:us,abstract:!0,render:function(e){var t=this,i=this.$slots.default;if(i&&(i=i.filter(ds)).length){0;var r=this.mode;0;var n=i[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return n;var s=cs(n);if(!s)return n;if(this._leaving)return ps(e,n);var o="__transition-"+this._uid+"-";s.key=null==s.key?s.isComment?o+"comment":o+s.tag:a(s.key)?0===String(s.key).indexOf(o)?s.key:o+s.key:s.key;var l=(s.data||(s.data={})).transition=hs(this),u=this._vnode,c=cs(u);if(s.data.directives&&s.data.directives.some(fs)&&(s.data.show=!0),c&&c.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(s,c)&&!wt(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var h=c.data.transition=E({},l);if("out-in"===r)return this._leaving=!0,pt(h,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),ps(e,n);if("in-out"===r){if(wt(s))return u;var p,d=function(){p()};pt(l,"afterEnter",d),pt(l,"enterCancelled",d),pt(h,"delayLeave",(function(e){p=e}))}}return n}}},gs=E({tag:String,moveClass:String},us);function vs(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function ys(e){e.data.newPos=e.elm.getBoundingClientRect()}function bs(e){var t=e.data.pos,i=e.data.newPos,r=t.left-i.left,n=t.top-i.top;if(r||n){e.data.moved=!0;var s=e.elm.style;s.transform=s.WebkitTransform="translate("+r+"px,"+n+"px)",s.transitionDuration="0s"}}delete gs.mode;var ws={Transition:ms,TransitionGroup:{props:gs,beforeMount:function(){var e=this,t=this._update;this._update=function(i,r){var n=ri(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,n(),t.call(e,i,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",i=Object.create(null),r=this.prevChildren=this.children,n=this.$slots.default||[],s=this.children=[],o=hs(this),a=0;a<n.length;a++){var l=n[a];if(l.tag)if(null!=l.key&&0!==String(l.key).indexOf("__vlist"))s.push(l),i[l.key]=l,(l.data||(l.data={})).transition=o;else;}if(r){for(var u=[],c=[],h=0;h<r.length;h++){var p=r[h];p.data.transition=o,p.data.pos=p.elm.getBoundingClientRect(),i[p.key]?u.push(p):c.push(p)}this.kept=e(t,null,u),this.removed=c}return e(t,null,s)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(vs),e.forEach(ys),e.forEach(bs),this._reflow=document.body.offsetHeight,e.forEach((function(e){if(e.data.moved){var i=e.elm,r=i.style;Ln(i,t),r.transform=r.WebkitTransform=r.transitionDuration="",i.addEventListener(Rn,i._moveCb=function e(r){r&&r.target!==i||r&&!/transform$/.test(r.propertyName)||(i.removeEventListener(Rn,e),i._moveCb=null,$n(i,t))})}})))},methods:{hasMove:function(e,t){if(!En)return!1;if(this._hasMove)return this._hasMove;var i=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach((function(e){An(i,e)})),xn(i,t),i.style.display="none",this.$el.appendChild(i);var r=Hn(i);return this.$el.removeChild(i),this._hasMove=r.hasTransform}}}};Ei.config.mustUseProp=ji,Ei.config.isReservedTag=ir,Ei.config.isReservedAttr=Li,Ei.config.getTagNamespace=rr,Ei.config.isUnknownElement=function(e){if(!X)return!0;if(ir(e))return!1;if(e=e.toLowerCase(),null!=nr[e])return nr[e];var t=document.createElement(e);return e.indexOf("-")>-1?nr[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:nr[e]=/HTMLUnknownElement/.test(t.toString())},E(Ei.options.directives,ls),E(Ei.options.components,ws),Ei.prototype.__patch__=X?Qn:M,Ei.prototype.$mount=function(e,t){return function(e,t,i){var r;return e.$el=t,e.$options.render||(e.$options.render=be),ai(e,"beforeMount"),r=function(){e._update(e._render(),i)},new bi(e,r,M,{before:function(){e._isMounted&&!e._isDestroyed&&ai(e,"beforeUpdate")}},!0),i=!1,null==e.$vnode&&(e._isMounted=!0,ai(e,"mounted")),e}(this,e=e&&X?or(e):void 0,t)},X&&setTimeout((function(){j.devtools&&ae&&ae.emit("init",Ei)}),0);var _s=/\{\{((?:.|\r?\n)+?)\}\}/g,Ss=/[-.*+?^${}()|[\]\/\\]/g,ks=S((function(e){var t=e[0].replace(Ss,"\\$&"),i=e[1].replace(Ss,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+i,"g")}));var Ps={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var i=Wr(e,"class");i&&(e.staticClass=JSON.stringify(i));var r=Vr(e,"class",!1);r&&(e.classBinding=r)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}};var Cs,xs={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var i=Wr(e,"style");i&&(e.staticStyle=JSON.stringify(fn(i)));var r=Vr(e,"style",!1);r&&(e.styleBinding=r)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}},As=function(e){return(Cs=Cs||document.createElement("div")).innerHTML=e,Cs.textContent},Os=g("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),Ts=g("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),Es=g("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),Fs=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Ms=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Ds="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+z.source+"]*",Rs="((?:"+Ds+"\\:)?"+Ds+")",Us=new RegExp("^<"+Rs),Is=/^\s*(\/?)>/,Ns=new RegExp("^<\\/"+Rs+"[^>]*>"),Bs=/^<!DOCTYPE [^>]+>/i,Ls=/^<!\--/,$s=/^<!\[/,js=g("script,style,textarea",!0),zs={},Hs={"&lt;":"<","&gt;":">","&quot;":'"',"&amp;":"&","&#10;":"\n","&#9;":"\t","&#39;":"'"},Vs=/&(?:lt|gt|quot|amp|#39);/g,Ws=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,qs=g("pre,textarea",!0),Ys=function(e,t){return e&&qs(e)&&"\n"===t[0]};function Xs(e,t){var i=t?Ws:Vs;return e.replace(i,(function(e){return Hs[e]}))}var Ks,Gs,Qs,Js,Zs,eo,to,io,ro=/^@|^v-on:/,no=/^v-|^@|^:|^#/,so=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,oo=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,ao=/^\(|\)$/g,lo=/^\[.*\]$/,uo=/:(.*)$/,co=/^:|^\.|^v-bind:/,ho=/\.[^.\]]+(?=[^\]]*$)/g,po=/^v-slot(:|$)|^#/,fo=/[\r\n]/,mo=/[ \f\t\r\n]+/g,go=S(As),vo="_empty_";function yo(e,t,i){return{type:1,tag:e,attrsList:t,attrsMap:Co(t),rawAttrsMap:{},parent:i,children:[]}}function bo(e,t){Ks=t.warn||Ir,eo=t.isPreTag||D,to=t.mustUseProp||D,io=t.getTagNamespace||D;var i=t.isReservedTag||D;(function(e){return!(!(e.component||e.attrsMap[":is"]||e.attrsMap["v-bind:is"])&&(e.attrsMap.is?i(e.attrsMap.is):i(e.tag)))}),Qs=Nr(t.modules,"transformNode"),Js=Nr(t.modules,"preTransformNode"),Zs=Nr(t.modules,"postTransformNode"),Gs=t.delimiters;var r,n,s=[],o=!1!==t.preserveWhitespace,a=t.whitespace,l=!1,u=!1;function c(e){if(h(e),l||e.processed||(e=wo(e,t)),s.length||e===r||r.if&&(e.elseif||e.else)&&So(r,{exp:e.elseif,block:e}),n&&!e.forbidden)if(e.elseif||e.else)o=e,a=function(e){for(var t=e.length;t--;){if(1===e[t].type)return e[t];e.pop()}}(n.children),a&&a.if&&So(a,{exp:o.elseif,block:o});else{if(e.slotScope){var i=e.slotTarget||'"default"';(n.scopedSlots||(n.scopedSlots={}))[i]=e}n.children.push(e),e.parent=n}var o,a;e.children=e.children.filter((function(e){return!e.slotScope})),h(e),e.pre&&(l=!1),eo(e.tag)&&(u=!1);for(var c=0;c<Zs.length;c++)Zs[c](e,t)}function h(e){if(!u)for(var t;(t=e.children[e.children.length-1])&&3===t.type&&" "===t.text;)e.children.pop()}return function(e,t){for(var i,r,n=[],s=t.expectHTML,o=t.isUnaryTag||D,a=t.canBeLeftOpenTag||D,l=0;e;){if(i=e,r&&js(r)){var u=0,c=r.toLowerCase(),h=zs[c]||(zs[c]=new RegExp("([\\s\\S]*?)(</"+c+"[^>]*>)","i")),p=e.replace(h,(function(e,i,r){return u=r.length,js(c)||"noscript"===c||(i=i.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),Ys(c,i)&&(i=i.slice(1)),t.chars&&t.chars(i),""}));l+=e.length-p.length,e=p,x(c,l-u,l)}else{var d=e.indexOf("<");if(0===d){if(Ls.test(e)){var f=e.indexOf("--\x3e");if(f>=0){t.shouldKeepComment&&t.comment(e.substring(4,f),l,l+f+3),k(f+3);continue}}if($s.test(e)){var m=e.indexOf("]>");if(m>=0){k(m+2);continue}}var g=e.match(Bs);if(g){k(g[0].length);continue}var v=e.match(Ns);if(v){var y=l;k(v[0].length),x(v[1],y,l);continue}var b=P();if(b){C(b),Ys(b.tagName,e)&&k(1);continue}}var w=void 0,_=void 0,S=void 0;if(d>=0){for(_=e.slice(d);!(Ns.test(_)||Us.test(_)||Ls.test(_)||$s.test(_)||(S=_.indexOf("<",1))<0);)d+=S,_=e.slice(d);w=e.substring(0,d)}d<0&&(w=e),w&&k(w.length),t.chars&&w&&t.chars(w,l-w.length,l)}if(e===i){t.chars&&t.chars(e);break}}function k(t){l+=t,e=e.substring(t)}function P(){var t=e.match(Us);if(t){var i,r,n={tagName:t[1],attrs:[],start:l};for(k(t[0].length);!(i=e.match(Is))&&(r=e.match(Ms)||e.match(Fs));)r.start=l,k(r[0].length),r.end=l,n.attrs.push(r);if(i)return n.unarySlash=i[1],k(i[0].length),n.end=l,n}}function C(e){var i=e.tagName,l=e.unarySlash;s&&("p"===r&&Es(i)&&x(r),a(i)&&r===i&&x(i));for(var u=o(i)||!!l,c=e.attrs.length,h=new Array(c),p=0;p<c;p++){var d=e.attrs[p],f=d[3]||d[4]||d[5]||"",m="a"===i&&"href"===d[1]?t.shouldDecodeNewlinesForHref:t.shouldDecodeNewlines;h[p]={name:d[1],value:Xs(f,m)}}u||(n.push({tag:i,lowerCasedTag:i.toLowerCase(),attrs:h,start:e.start,end:e.end}),r=i),t.start&&t.start(i,h,u,e.start,e.end)}function x(e,i,s){var o,a;if(null==i&&(i=l),null==s&&(s=l),e)for(a=e.toLowerCase(),o=n.length-1;o>=0&&n[o].lowerCasedTag!==a;o--);else o=0;if(o>=0){for(var u=n.length-1;u>=o;u--)t.end&&t.end(n[u].tag,i,s);n.length=o,r=o&&n[o-1].tag}else"br"===a?t.start&&t.start(e,[],!0,i,s):"p"===a&&(t.start&&t.start(e,[],!1,i,s),t.end&&t.end(e,i,s))}x()}(e,{warn:Ks,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,i,o,a,h){var p=n&&n.ns||io(e);J&&"svg"===p&&(i=function(e){for(var t=[],i=0;i<e.length;i++){var r=e[i];xo.test(r.name)||(r.name=r.name.replace(Ao,""),t.push(r))}return t}(i));var d,f=yo(e,i,n);p&&(f.ns=p),"style"!==(d=f).tag&&("script"!==d.tag||d.attrsMap.type&&"text/javascript"!==d.attrsMap.type)||oe()||(f.forbidden=!0);for(var m=0;m<Js.length;m++)f=Js[m](f,t)||f;l||(!function(e){null!=Wr(e,"v-pre")&&(e.pre=!0)}(f),f.pre&&(l=!0)),eo(f.tag)&&(u=!0),l?function(e){var t=e.attrsList,i=t.length;if(i)for(var r=e.attrs=new Array(i),n=0;n<i;n++)r[n]={name:t[n].name,value:JSON.stringify(t[n].value)},null!=t[n].start&&(r[n].start=t[n].start,r[n].end=t[n].end);else e.pre||(e.plain=!0)}(f):f.processed||(_o(f),function(e){var t=Wr(e,"v-if");if(t)e.if=t,So(e,{exp:t,block:e});else{null!=Wr(e,"v-else")&&(e.else=!0);var i=Wr(e,"v-else-if");i&&(e.elseif=i)}}(f),function(e){null!=Wr(e,"v-once")&&(e.once=!0)}(f)),r||(r=f),o?c(f):(n=f,s.push(f))},end:function(e,t,i){var r=s[s.length-1];s.length-=1,n=s[s.length-1],c(r)},chars:function(e,t,i){if(n&&(!J||"textarea"!==n.tag||n.attrsMap.placeholder!==e)){var r,s,c,h=n.children;if(e=u||e.trim()?"script"===(r=n).tag||"style"===r.tag?e:go(e):h.length?a?"condense"===a&&fo.test(e)?"":" ":o?" ":"":"")u||"condense"!==a||(e=e.replace(mo," ")),!l&&" "!==e&&(s=function(e,t){var i=t?ks(t):_s;if(i.test(e)){for(var r,n,s,o=[],a=[],l=i.lastIndex=0;r=i.exec(e);){(n=r.index)>l&&(a.push(s=e.slice(l,n)),o.push(JSON.stringify(s)));var u=Rr(r[1].trim());o.push("_s("+u+")"),a.push({"@binding":u}),l=n+r[0].length}return l<e.length&&(a.push(s=e.slice(l)),o.push(JSON.stringify(s))),{expression:o.join("+"),tokens:a}}}(e,Gs))?c={type:2,expression:s.expression,tokens:s.tokens,text:e}:" "===e&&h.length&&" "===h[h.length-1].text||(c={type:3,text:e}),c&&h.push(c)}},comment:function(e,t,i){if(n){var r={type:3,text:e,isComment:!0};0,n.children.push(r)}}}),r}function wo(e,t){var i;!function(e){var t=Vr(e,"key");if(t){e.key=t}}(e),e.plain=!e.key&&!e.scopedSlots&&!e.attrsList.length,function(e){var t=Vr(e,"ref");t&&(e.ref=t,e.refInFor=function(e){var t=e;for(;t;){if(void 0!==t.for)return!0;t=t.parent}return!1}(e))}(e),function(e){var t;"template"===e.tag?(t=Wr(e,"scope"),e.slotScope=t||Wr(e,"slot-scope")):(t=Wr(e,"slot-scope"))&&(e.slotScope=t);var i=Vr(e,"slot");i&&(e.slotTarget='""'===i?'"default"':i,e.slotTargetDynamic=!(!e.attrsMap[":slot"]&&!e.attrsMap["v-bind:slot"]),"template"===e.tag||e.slotScope||Lr(e,"slot",i,function(e,t){return e.rawAttrsMap[":"+t]||e.rawAttrsMap["v-bind:"+t]||e.rawAttrsMap[t]}(e,"slot")));if("template"===e.tag){var r=qr(e,po);if(r){0;var n=ko(r),s=n.name,o=n.dynamic;e.slotTarget=s,e.slotTargetDynamic=o,e.slotScope=r.value||vo}}else{var a=qr(e,po);if(a){0;var l=e.scopedSlots||(e.scopedSlots={}),u=ko(a),c=u.name,h=u.dynamic,p=l[c]=yo("template",[],e);p.slotTarget=c,p.slotTargetDynamic=h,p.children=e.children.filter((function(e){if(!e.slotScope)return e.parent=p,!0})),p.slotScope=a.value||vo,e.children=[],e.plain=!1}}}(e),"slot"===(i=e).tag&&(i.slotName=Vr(i,"name")),function(e){var t;(t=Vr(e,"is"))&&(e.component=t);null!=Wr(e,"inline-template")&&(e.inlineTemplate=!0)}(e);for(var r=0;r<Qs.length;r++)e=Qs[r](e,t)||e;return function(e){var t,i,r,n,s,o,a,l,u=e.attrsList;for(t=0,i=u.length;t<i;t++){if(r=n=u[t].name,s=u[t].value,no.test(r))if(e.hasBindings=!0,(o=Po(r.replace(no,"")))&&(r=r.replace(ho,"")),co.test(r))r=r.replace(co,""),s=Rr(s),(l=lo.test(r))&&(r=r.slice(1,-1)),o&&(o.prop&&!l&&"innerHtml"===(r=P(r))&&(r="innerHTML"),o.camel&&!l&&(r=P(r)),o.sync&&(a=Kr(s,"$event"),l?Hr(e,'"update:"+('+r+")",a,null,!1,0,u[t],!0):(Hr(e,"update:"+P(r),a,null,!1,0,u[t]),A(r)!==P(r)&&Hr(e,"update:"+A(r),a,null,!1,0,u[t])))),o&&o.prop||!e.component&&to(e.tag,e.attrsMap.type,r)?Br(e,r,s,u[t],l):Lr(e,r,s,u[t],l);else if(ro.test(r))r=r.replace(ro,""),(l=lo.test(r))&&(r=r.slice(1,-1)),Hr(e,r,s,o,!1,0,u[t],l);else{var c=(r=r.replace(no,"")).match(uo),h=c&&c[1];l=!1,h&&(r=r.slice(0,-(h.length+1)),lo.test(h)&&(h=h.slice(1,-1),l=!0)),jr(e,r,n,s,h,l,o,u[t])}else Lr(e,r,JSON.stringify(s),u[t]),!e.component&&"muted"===r&&to(e.tag,e.attrsMap.type,r)&&Br(e,r,"true",u[t])}}(e),e}function _o(e){var t;if(t=Wr(e,"v-for")){var i=function(e){var t=e.match(so);if(!t)return;var i={};i.for=t[2].trim();var r=t[1].trim().replace(ao,""),n=r.match(oo);n?(i.alias=r.replace(oo,"").trim(),i.iterator1=n[1].trim(),n[2]&&(i.iterator2=n[2].trim())):i.alias=r;return i}(t);i&&E(e,i)}}function So(e,t){e.ifConditions||(e.ifConditions=[]),e.ifConditions.push(t)}function ko(e){var t=e.name.replace(po,"");return t||"#"!==e.name[0]&&(t="default"),lo.test(t)?{name:t.slice(1,-1),dynamic:!0}:{name:'"'+t+'"',dynamic:!1}}function Po(e){var t=e.match(ho);if(t){var i={};return t.forEach((function(e){i[e.slice(1)]=!0})),i}}function Co(e){for(var t={},i=0,r=e.length;i<r;i++)t[e[i].name]=e[i].value;return t}var xo=/^xmlns:NS\d+/,Ao=/^NS\d+:/;function Oo(e){return yo(e.tag,e.attrsList.slice(),e.parent)}var To=[Ps,xs,{preTransformNode:function(e,t){if("input"===e.tag){var i,r=e.attrsMap;if(!r["v-model"])return;if((r[":type"]||r["v-bind:type"])&&(i=Vr(e,"type")),r.type||i||!r["v-bind"]||(i="("+r["v-bind"]+").type"),i){var n=Wr(e,"v-if",!0),s=n?"&&("+n+")":"",o=null!=Wr(e,"v-else",!0),a=Wr(e,"v-else-if",!0),l=Oo(e);_o(l),$r(l,"type","checkbox"),wo(l,t),l.processed=!0,l.if="("+i+")==='checkbox'"+s,So(l,{exp:l.if,block:l});var u=Oo(e);Wr(u,"v-for",!0),$r(u,"type","radio"),wo(u,t),So(l,{exp:"("+i+")==='radio'"+s,block:u});var c=Oo(e);return Wr(c,"v-for",!0),$r(c,":type",i),wo(c,t),So(l,{exp:n,block:c}),o?l.else=!0:a&&(l.elseif=a),l}}}}];var Eo,Fo,Mo={model:function(e,t,i){i;var r=t.value,n=t.modifiers,s=e.tag,o=e.attrsMap.type;if(e.component)return Xr(e,r,n),!1;if("select"===s)!function(e,t,i){var r='var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(i&&i.number?"_n(val)":"val")+"});";r=r+" "+Kr(t,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),Hr(e,"change",r,null,!0)}(e,r,n);else if("input"===s&&"checkbox"===o)!function(e,t,i){var r=i&&i.number,n=Vr(e,"value")||"null",s=Vr(e,"true-value")||"true",o=Vr(e,"false-value")||"false";Br(e,"checked","Array.isArray("+t+")?_i("+t+","+n+")>-1"+("true"===s?":("+t+")":":_q("+t+","+s+")")),Hr(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+s+"):("+o+");if(Array.isArray($$a)){var $$v="+(r?"_n("+n+")":n)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Kr(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Kr(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Kr(t,"$$c")+"}",null,!0)}(e,r,n);else if("input"===s&&"radio"===o)!function(e,t,i){var r=i&&i.number,n=Vr(e,"value")||"null";Br(e,"checked","_q("+t+","+(n=r?"_n("+n+")":n)+")"),Hr(e,"change",Kr(t,n),null,!0)}(e,r,n);else if("input"===s||"textarea"===s)!function(e,t,i){var r=e.attrsMap.type;0;var n=i||{},s=n.lazy,o=n.number,a=n.trim,l=!s&&"range"!==r,u=s?"change":"range"===r?rn:"input",c="$event.target.value";a&&(c="$event.target.value.trim()");o&&(c="_n("+c+")");var h=Kr(t,c);l&&(h="if($event.target.composing)return;"+h);Br(e,"value","("+t+")"),Hr(e,u,h,null,!0),(a||o)&&Hr(e,"blur","$forceUpdate()")}(e,r,n);else{if(!j.isReservedTag(s))return Xr(e,r,n),!1}return!0},text:function(e,t){t.value&&Br(e,"textContent","_s("+t.value+")",t)},html:function(e,t){t.value&&Br(e,"innerHTML","_s("+t.value+")",t)}},Do={expectHTML:!0,modules:To,directives:Mo,isPreTag:function(e){return"pre"===e},isUnaryTag:Os,mustUseProp:ji,canBeLeftOpenTag:Ts,isReservedTag:ir,getTagNamespace:rr,staticKeys:function(e){return e.reduce((function(e,t){return e.concat(t.staticKeys||[])}),[]).join(",")}(To)},Ro=S((function(e){return g("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}));function Uo(e,t){e&&(Eo=Ro(t.staticKeys||""),Fo=t.isReservedTag||D,Io(e),No(e,!1))}function Io(e){if(e.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||v(e.tag)||!Fo(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(Eo)))}(e),1===e.type){if(!Fo(e.tag)&&"slot"!==e.tag&&null==e.attrsMap["inline-template"])return;for(var t=0,i=e.children.length;t<i;t++){var r=e.children[t];Io(r),r.static||(e.static=!1)}if(e.ifConditions)for(var n=1,s=e.ifConditions.length;n<s;n++){var o=e.ifConditions[n].block;Io(o),o.static||(e.static=!1)}}}function No(e,t){if(1===e.type){if((e.static||e.once)&&(e.staticInFor=t),e.static&&e.children.length&&(1!==e.children.length||3!==e.children[0].type))return void(e.staticRoot=!0);if(e.staticRoot=!1,e.children)for(var i=0,r=e.children.length;i<r;i++)No(e.children[i],t||!!e.for);if(e.ifConditions)for(var n=1,s=e.ifConditions.length;n<s;n++)No(e.ifConditions[n].block,t)}}var Bo=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,Lo=/\([^)]*?\);*$/,$o=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,jo={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},zo={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Ho=function(e){return"if("+e+")return null;"},Vo={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Ho("$event.target !== $event.currentTarget"),ctrl:Ho("!$event.ctrlKey"),shift:Ho("!$event.shiftKey"),alt:Ho("!$event.altKey"),meta:Ho("!$event.metaKey"),left:Ho("'button' in $event && $event.button !== 0"),middle:Ho("'button' in $event && $event.button !== 1"),right:Ho("'button' in $event && $event.button !== 2")};function Wo(e,t){var i=t?"nativeOn:":"on:",r="",n="";for(var s in e){var o=qo(e[s]);e[s]&&e[s].dynamic?n+=s+","+o+",":r+='"'+s+'":'+o+","}return r="{"+r.slice(0,-1)+"}",n?i+"_d("+r+",["+n.slice(0,-1)+"])":i+r}function qo(e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map((function(e){return qo(e)})).join(",")+"]";var t=$o.test(e.value),i=Bo.test(e.value),r=$o.test(e.value.replace(Lo,""));if(e.modifiers){var n="",s="",o=[];for(var a in e.modifiers)if(Vo[a])s+=Vo[a],jo[a]&&o.push(a);else if("exact"===a){var l=e.modifiers;s+=Ho(["ctrl","shift","alt","meta"].filter((function(e){return!l[e]})).map((function(e){return"$event."+e+"Key"})).join("||"))}else o.push(a);return o.length&&(n+=function(e){return"if(!$event.type.indexOf('key')&&"+e.map(Yo).join("&&")+")return null;"}(o)),s&&(n+=s),"function($event){"+n+(t?"return "+e.value+".apply(null, arguments)":i?"return ("+e.value+").apply(null, arguments)":r?"return "+e.value:e.value)+"}"}return t||i?e.value:"function($event){"+(r?"return "+e.value:e.value)+"}"}function Yo(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var i=jo[e],r=zo[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(i)+",$event.key,"+JSON.stringify(r)+")"}var Xo={on:function(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}},bind:function(e,t){e.wrapData=function(i){return"_b("+i+",'"+e.tag+"',"+t.value+","+(t.modifiers&&t.modifiers.prop?"true":"false")+(t.modifiers&&t.modifiers.sync?",true":"")+")"}},cloak:M},Ko=function(e){this.options=e,this.warn=e.warn||Ir,this.transforms=Nr(e.modules,"transformCode"),this.dataGenFns=Nr(e.modules,"genData"),this.directives=E(E({},Xo),e.directives);var t=e.isReservedTag||D;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Go(e,t){var i=new Ko(t);return{render:"with(this){return "+(e?"script"===e.tag?"null":Qo(e,i):'_c("div")')+"}",staticRenderFns:i.staticRenderFns}}function Qo(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Jo(e,t);if(e.once&&!e.onceProcessed)return Zo(e,t);if(e.for&&!e.forProcessed)return ia(e,t);if(e.if&&!e.ifProcessed)return ea(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var i=e.slotName||'"default"',r=oa(e,t),n="_t("+i+(r?",function(){return "+r+"}":""),s=e.attrs||e.dynamicAttrs?ua((e.attrs||[]).concat(e.dynamicAttrs||[]).map((function(e){return{name:P(e.name),value:e.value,dynamic:e.dynamic}}))):null,o=e.attrsMap["v-bind"];!s&&!o||r||(n+=",null");s&&(n+=","+s);o&&(n+=(s?"":",null")+","+o);return n+")"}(e,t);var i;if(e.component)i=function(e,t,i){var r=t.inlineTemplate?null:oa(t,i,!0);return"_c("+e+","+ra(t,i)+(r?","+r:"")+")"}(e.component,e,t);else{var r;(!e.plain||e.pre&&t.maybeComponent(e))&&(r=ra(e,t));var n=e.inlineTemplate?null:oa(e,t,!0);i="_c('"+e.tag+"'"+(r?","+r:"")+(n?","+n:"")+")"}for(var s=0;s<t.transforms.length;s++)i=t.transforms[s](e,i);return i}return oa(e,t)||"void 0"}function Jo(e,t){e.staticProcessed=!0;var i=t.pre;return e.pre&&(t.pre=e.pre),t.staticRenderFns.push("with(this){return "+Qo(e,t)+"}"),t.pre=i,"_m("+(t.staticRenderFns.length-1)+(e.staticInFor?",true":"")+")"}function Zo(e,t){if(e.onceProcessed=!0,e.if&&!e.ifProcessed)return ea(e,t);if(e.staticInFor){for(var i="",r=e.parent;r;){if(r.for){i=r.key;break}r=r.parent}return i?"_o("+Qo(e,t)+","+t.onceId+++","+i+")":Qo(e,t)}return Jo(e,t)}function ea(e,t,i,r){return e.ifProcessed=!0,ta(e.ifConditions.slice(),t,i,r)}function ta(e,t,i,r){if(!e.length)return r||"_e()";var n=e.shift();return n.exp?"("+n.exp+")?"+s(n.block)+":"+ta(e,t,i,r):""+s(n.block);function s(e){return i?i(e,t):e.once?Zo(e,t):Qo(e,t)}}function ia(e,t,i,r){var n=e.for,s=e.alias,o=e.iterator1?","+e.iterator1:"",a=e.iterator2?","+e.iterator2:"";return e.forProcessed=!0,(r||"_l")+"(("+n+"),function("+s+o+a+"){return "+(i||Qo)(e,t)+"})"}function ra(e,t){var i="{",r=function(e,t){var i=e.directives;if(!i)return;var r,n,s,o,a="directives:[",l=!1;for(r=0,n=i.length;r<n;r++){s=i[r],o=!0;var u=t.directives[s.name];u&&(o=!!u(e,s,t.warn)),o&&(l=!0,a+='{name:"'+s.name+'",rawName:"'+s.rawName+'"'+(s.value?",value:("+s.value+"),expression:"+JSON.stringify(s.value):"")+(s.arg?",arg:"+(s.isDynamicArg?s.arg:'"'+s.arg+'"'):"")+(s.modifiers?",modifiers:"+JSON.stringify(s.modifiers):"")+"},")}if(l)return a.slice(0,-1)+"]"}(e,t);r&&(i+=r+","),e.key&&(i+="key:"+e.key+","),e.ref&&(i+="ref:"+e.ref+","),e.refInFor&&(i+="refInFor:true,"),e.pre&&(i+="pre:true,"),e.component&&(i+='tag:"'+e.tag+'",');for(var n=0;n<t.dataGenFns.length;n++)i+=t.dataGenFns[n](e);if(e.attrs&&(i+="attrs:"+ua(e.attrs)+","),e.props&&(i+="domProps:"+ua(e.props)+","),e.events&&(i+=Wo(e.events,!1)+","),e.nativeEvents&&(i+=Wo(e.nativeEvents,!0)+","),e.slotTarget&&!e.slotScope&&(i+="slot:"+e.slotTarget+","),e.scopedSlots&&(i+=function(e,t,i){var r=e.for||Object.keys(t).some((function(e){var i=t[e];return i.slotTargetDynamic||i.if||i.for||na(i)})),n=!!e.if;if(!r)for(var s=e.parent;s;){if(s.slotScope&&s.slotScope!==vo||s.for){r=!0;break}s.if&&(n=!0),s=s.parent}var o=Object.keys(t).map((function(e){return sa(t[e],i)})).join(",");return"scopedSlots:_u(["+o+"]"+(r?",null,true":"")+(!r&&n?",null,false,"+function(e){var t=5381,i=e.length;for(;i;)t=33*t^e.charCodeAt(--i);return t>>>0}(o):"")+")"}(e,e.scopedSlots,t)+","),e.model&&(i+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"),e.inlineTemplate){var s=function(e,t){var i=e.children[0];0;if(i&&1===i.type){var r=Go(i,t.options);return"inlineTemplate:{render:function(){"+r.render+"},staticRenderFns:["+r.staticRenderFns.map((function(e){return"function(){"+e+"}"})).join(",")+"]}"}}(e,t);s&&(i+=s+",")}return i=i.replace(/,$/,"")+"}",e.dynamicAttrs&&(i="_b("+i+',"'+e.tag+'",'+ua(e.dynamicAttrs)+")"),e.wrapData&&(i=e.wrapData(i)),e.wrapListeners&&(i=e.wrapListeners(i)),i}function na(e){return 1===e.type&&("slot"===e.tag||e.children.some(na))}function sa(e,t){var i=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!i)return ea(e,t,sa,"null");if(e.for&&!e.forProcessed)return ia(e,t,sa);var r=e.slotScope===vo?"":String(e.slotScope),n="function("+r+"){return "+("template"===e.tag?e.if&&i?"("+e.if+")?"+(oa(e,t)||"undefined")+":undefined":oa(e,t)||"undefined":Qo(e,t))+"}",s=r?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+n+s+"}"}function oa(e,t,i,r,n){var s=e.children;if(s.length){var o=s[0];if(1===s.length&&o.for&&"template"!==o.tag&&"slot"!==o.tag){var a=i?t.maybeComponent(o)?",1":",0":"";return""+(r||Qo)(o,t)+a}var l=i?function(e,t){for(var i=0,r=0;r<e.length;r++){var n=e[r];if(1===n.type){if(aa(n)||n.ifConditions&&n.ifConditions.some((function(e){return aa(e.block)}))){i=2;break}(t(n)||n.ifConditions&&n.ifConditions.some((function(e){return t(e.block)})))&&(i=1)}}return i}(s,t.maybeComponent):0,u=n||la;return"["+s.map((function(e){return u(e,t)})).join(",")+"]"+(l?","+l:"")}}function aa(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function la(e,t){return 1===e.type?Qo(e,t):3===e.type&&e.isComment?function(e){return"_e("+JSON.stringify(e.text)+")"}(e):function(e){return"_v("+(2===e.type?e.expression:ca(JSON.stringify(e.text)))+")"}(e)}function ua(e){for(var t="",i="",r=0;r<e.length;r++){var n=e[r],s=ca(n.value);n.dynamic?i+=n.name+","+s+",":t+='"'+n.name+'":'+s+","}return t="{"+t.slice(0,-1)+"}",i?"_d("+t+",["+i.slice(0,-1)+"])":t}function ca(e){return e.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)");function ha(e,t){try{return new Function(e)}catch(i){return t.push({err:i,code:e}),M}}function pa(e){var t=Object.create(null);return function(i,r,n){(r=E({},r)).warn;delete r.warn;var s=r.delimiters?String(r.delimiters)+i:i;if(t[s])return t[s];var o=e(i,r);var a={},l=[];return a.render=ha(o.render,l),a.staticRenderFns=o.staticRenderFns.map((function(e){return ha(e,l)})),t[s]=a}}var da,fa,ma=(da=function(e,t){var i=bo(e.trim(),t);!1!==t.optimize&&Uo(i,t);var r=Go(i,t);return{ast:i,render:r.render,staticRenderFns:r.staticRenderFns}},function(e){function t(t,i){var r=Object.create(e),n=[],s=[];if(i)for(var o in i.modules&&(r.modules=(e.modules||[]).concat(i.modules)),i.directives&&(r.directives=E(Object.create(e.directives||null),i.directives)),i)"modules"!==o&&"directives"!==o&&(r[o]=i[o]);r.warn=function(e,t,i){(i?s:n).push(e)};var a=da(t.trim(),r);return a.errors=n,a.tips=s,a}return{compile:t,compileToFunctions:pa(t)}}),ga=ma(Do),va=(ga.compile,ga.compileToFunctions);function ya(e){return(fa=fa||document.createElement("div")).innerHTML=e?'<a href="\n"/>':'<div a="\n"/>',fa.innerHTML.indexOf("&#10;")>0}var ba=!!X&&ya(!1),wa=!!X&&ya(!0),_a=S((function(e){var t=or(e);return t&&t.innerHTML})),Sa=Ei.prototype.$mount;Ei.prototype.$mount=function(e,t){if((e=e&&or(e))===document.body||e===document.documentElement)return this;var i=this.$options;if(!i.render){var r=i.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=_a(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(r){0;var n=va(r,{outputSourceRange:!1,shouldDecodeNewlines:ba,shouldDecodeNewlinesForHref:wa,delimiters:i.delimiters,comments:i.comments},this),s=n.render,o=n.staticRenderFns;i.render=s,i.staticRenderFns=o}}return Sa.call(this,e,t)},Ei.compile=va;const ka=Ei},1196:e=>{"use strict";function t(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}t.prototype.match=function(e){var t,i,r=!0,n=this.parts,s=n.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(i=(e||"").split(this.separator),t=0;r&&t<s;t++)"*"!==n[t]&&(r=t<i.length&&n[t]===i[t]);r=r&&i}else r=!1;else if("function"==typeof e.splice)for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if("object"==typeof e)for(var o in r={},e)this.match(o)&&(r[o]=e[o]);return r},e.exports=function(e,i,r){var n=new t(e,r||/[\/\.]/);return void 0!==i?n.match(i):n}},2961:e=>{e.exports={nanoid:(e=21)=>{let t="",i=e;for(;i--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t)=>()=>{let i="",r=t;for(;r--;)i+=e[Math.random()*e.length|0];return i}}}},i={};function r(e){var n=i[e];if(void 0!==n)return n.exports;var s=i[e]={exports:{}};return t[e].call(s.exports,s,s.exports,r),s.exports}r.m=t,e=[],r.O=(t,i,n,s)=>{if(!i){var o=1/0;for(c=0;c<e.length;c++){for(var[i,n,s]=e[c],a=!0,l=0;l<i.length;l++)(!1&s||o>=s)&&Object.keys(r.O).every((e=>r.O[e](i[l])))?i.splice(l--,1):(a=!1,s<o&&(o=s));if(a){e.splice(c--,1);var u=n();void 0!==u&&(t=u)}}return t}s=s||0;for(var c=e.length;c>0&&e[c-1][2]>s;c--)e[c]=e[c-1];e[c]=[i,n,s]},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var i in t)r.o(t,i)&&!r.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={103:0,990:0};r.O.j=t=>0===e[t];var t=(t,i)=>{var n,s,[o,a,l]=i,u=0;if(o.some((t=>0!==e[t]))){for(n in a)r.o(a,n)&&(r.m[n]=a[n]);if(l)var c=l(r)}for(t&&t(i);u<o.length;u++)s=o[u],r.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return r.O(c)},i=self.webpackChunk=self.webpackChunk||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})(),r.O(void 0,[990],(()=>r(9523)));var n=r.O(void 0,[990],(()=>r(7034)));n=r.O(n)})();