ucarecdn.com Open in urlscan Pro
2a02:26f0:f7::5c7b:e009  Public Scan

URL: https://ucarecdn.com/libs/widget/3.x/uploadcare.min.js
Submission: On March 11 via api from US — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

/**
 * @license uploadcare-widget v3.17.0
 *
 * Copyright (c) 2020 Uploadcare, Inc.
 *
 * This source code is licensed under the BSD 2-Clause License
 * found in the LICENSE file in the root directory of this source tree.
 */

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).uploadcare=t(e.$)}(this,(function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=t(e);function n(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function r(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?n(Object(a),!0).forEach((function(t){d(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):n(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function o(e){return(o="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)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var a=0;a<t.length;a++){var i=t[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function c(e,t,a){return t&&u(e.prototype,t),a&&u(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}function d(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function p(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}function _(e){var t=function(){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}}();return function(){var a,i=f(e);if(t){var n=f(this).constructor;a=Reflect.construct(i,arguments,n)}else a=i.apply(this,arguments);return g(this,a)}}function v(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=f(e)););return e}function b(){return(b="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,a){var i=v(e,t);if(i){var n=Object.getOwnPropertyDescriptor(i,t);return n.get?n.get.call(arguments.length<3?e:a):n.value}}).apply(this,arguments)}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==a)return;var i,n,r=[],o=!0,l=!1;try{for(a=a.call(e);!(o=(i=a.next()).done)&&(r.push(i.value),!t||r.length!==t);o=!0);}catch(e){l=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(l)throw n}}return r}(e,t)||x(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e){return function(e){if(Array.isArray(e))return k(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||x(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 x(e,t){if(e){if("string"==typeof e)return k(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?k(e,t):void 0}}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,i=new Array(t);a<t;a++)i[a]=e[a];return i}var z=function(){return"object"===("undefined"==typeof window?"undefined":o(window))},A=Object.freeze({__proto__:null,isWindowDefined:z});z()&&window.XDomainRequest&&a.default.ajaxTransport((function(e){var t;if(e.crossDomain&&e.async)return e.timeout&&(e.xdrTimeout=e.timeout,delete e.timeout),{send:function(a,i){function n(e,a,n,r){t.onload=t.onerror=t.ontimeout=function(){},t=void 0,i(e,a,n,r)}(t=new XDomainRequest).onload=function(){n(200,"OK",{text:t.responseText},"Content-Type: "+t.contentType)},t.onerror=function(){n(404,"Not Found")},t.onprogress=function(){},t.ontimeout=function(){n(0,"timeout")},t.timeout=e.xdrTimeout||Number.MAX_VALUE,t.open(e.type,e.url.replace(/^https?:/,"")),t.send(e.hasContent&&e.data||null)},abort:function(){t&&(t.onerror=function(){},t.abort())}}}));var C=z()&&!!(window.File&&window.FileList&&window.FileReader),S=z()&&!(!window.FormData||!C),F=z()&&function(){var e;return"draggable"in(e=document.createElement("div"))||"ondragstart"in e&&"ondrop"in e}(),T=z()&&function(){var e;return!(!(e=document.createElement("canvas")).getContext||!e.getContext("2d"))}(),j=C&&F,D=null,I=z()&&/^[^(]+\(iP(?:hone|od|ad);\s*(.+?)\)/.exec(navigator.userAgent);if(I){var P=/OS (\d*)_(\d*)/.exec(I[1]);P&&(D=+P[1]+P[2]/10)}var M=z()&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2&&/MacIntel/.test(navigator.platform),E=!1;try{z()&&new window.Blob&&(E=window.Blob)}catch(e){}var O=z()&&(window.URL||window.webkitURL||!1),U=O&&O.createObjectURL&&O,B=z()&&(null!=window.FileReader?window.FileReader.prototype.readAsArrayBuffer:void 0)&&window.FileReader,R=function(){var e;try{var t;return null!=(e=window.console)&&"function"==typeof e.log?(t=e).log.apply(t,arguments):void 0}catch(e){}},V=function(){var e;if(!(null!=(e=window.console)?e.debug:void 0))return R.apply(void 0,["Debug:"].concat(Array.prototype.slice.call(arguments)));try{var t;return(t=window.console).debug.apply(t,arguments)}catch(e){}},L=function(){var e;if(!(null!=(e=window.console)?e.warn:void 0))return R.apply(void 0,["Warning:"].concat(Array.prototype.slice.call(arguments)));try{var t;return(t=window.console).warn.apply(t,arguments)}catch(e){}},N={},q=function(e){if(null==N[e])return N[e]=!0,L(e)},K=[].indexOf,H=function(e){var t,a,i,n;for(n=[],a=0,i=e.length;a<i;a++)t=e[a],K.call(n,t)<0&&n.push(t);return n},W=function(e){return setTimeout(e,0)},G=function(e,t){for(var a;t;)a=e%t,e=t,t=a;return e},Y=function(e){var t,a;return t=!1,a=null,function(){return t||(a=e.apply(this,arguments),t=!0),a}},X=function(e){return a.default.Deferred().resolve(e).promise()},J=function(e,t,i,n){var r,o;return o=a.default.Deferred(),r=function(e,t){return e&&t?function(){return t.call(this,e.apply(this,arguments))}:e||t},e.then(r(t,o.resolve),r(i,o.reject),r(n,o.notify)),o.promise()},Z=function(e,t){var i;return i={},a.default.each(t,(function(t,n){var r=e[n];a.default.isFunction(r)?i[n]=function(){for(var t=arguments.length,a=new Array(t),n=0;n<t;n++)a[n]=arguments[n];var o=r.apply(e,a);return o===e?i:o}:i[n]=r})),i},Q=function(e){return e.replace(/([A-Z])/g,"_$1").toUpperCase()},$=function(e){var t;return(t=e.add).add=e.add,t.remove=e.remove,t},ee=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},te=/^(?:([^:/?#]+):)?(?:\/\/([^/?#]*))?([^?#]*)\??([^#]*)#?(.*)$/,ae=/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/i,ie=new RegExp("".concat(ae.source,"~[0-9]+"),"i"),ne=new RegExp("^/?(".concat(ae.source,")(?:/(-/(?:[^/]+/)+)?([^/]*))?$"),"i"),re=function(e){return ne.exec(te.exec(e)[3])},oe=function(e){return e.replace(/[\\-\\[]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},le=function(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"i";return t=a.default.map(e.split("*"),oe),new RegExp("^"+t.join(".+")+"$",i)},se=function(e){var t;return"http:"!==(t=document.location.protocol)&&(t="https:"),e.replace(/^\/\//,t+"//").replace(/\/+$/,"")},ue=function(e,t){if(e.length>t){var a=Math.ceil((t-3)/2),i=Math.floor((t-3)/2);return e.slice(0,a)+"..."+e.slice(-i)}return e},ce=function(e,t,a){var i,n;return e[0]>t[0]||e[1]>t[1]||a?(n=t[0]/e[0],i=t[1]/e[1],!t[0]||t[1]&&n>i?[Math.round(i*e[0]),t[1]]:[t[0],Math.round(n*e[1])]):e.slice()},de=function(e,t,i,n){var r,o,l,s,u,c,d;if(c=n.width,o=n.height,s=t.preferedSize,l="",(d=c===i[0]&&o===i[1])||(l+="-/crop/".concat(c,"x").concat(o,"/").concat(n.left,",").concat(n.top,"/")),r=t.downscale&&(c>s[0]||o>s[1]),u=t.upscale&&(c<s[0]||o<s[1]),r||u){var p=y(s,2);n.sw=p[0],n.sh=p[1],l+="-/resize/".concat(s.join("x"),"/")}else d||(l+="-/preview/");return(e=a.default.extend({},e)).cdnUrlModifiers=l,e.cdnUrl="".concat(e.originalUrl).concat(l||""),e.crop=n,e},pe=["image/*","image/heif","image/heif-sequence","image/heic","image/heic-sequence","image/avif","image/avif-sequence",".heif",".heifs",".heic",".heics",".avif",".avifs"].join(","),fe=function(e,t,i){var n,r,o;return r=null,""===(n=t.inputAcceptTypes)&&(n=t.imagesOnly?pe:null),(o=function(){return r=(t.multiple?a.default('<input type="file" multiple>'):a.default('<input type="file">')).attr("accept",n).css({position:"absolute",top:0,opacity:0,margin:0,padding:0,width:"auto",height:"auto",cursor:e.css("cursor")}).on("change",(function(){return i(this),a.default(this).hide(),o()})),e.append(r)})(),e.css({position:"relative",overflow:"hidden"}).mousemove((function(e){var t,i,n,o=a.default(this).offset();return t=o.left,i=o.top,n=r.width(),r.css({left:e.pageX-t-n+10,top:e.pageY-i-10})}))},he=function(e,t,i){var n,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return""===(n=t.inputAcceptTypes)&&(n=t.imagesOnly?pe:null),a.default(t.multiple?'<input type="file" multiple>':'<input type="file">').attr("accept",n).attr(r).css({position:"fixed",bottom:0,opacity:0}).on("change",(function(){return i(this),a.default(this).remove()})).appendTo(e).focus().click().hide()},me="B KB MB GB TB PB EB ZB YB".split(" "),ge=function(e){var t,a,i,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(e=parseInt(e,10),isNaN(e))return r;for(t=2,i=0,n=1e3-5*Math.pow(10,2-Math.max(t,3));e>n&&i<me.length-1;)i++,e/=1024;return e+=1e-15,a=Math.max(0,t-Math.floor(e).toFixed(0).length),e=Number(e.toFixed(a)),"".concat(o).concat(e," ").concat(me[i]).concat(l)},_e={dataType:"json",crossDomain:!0,cache:!1},ve=function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return a.default.ajax(a.default.extend({url:e,type:t,data:i},n,_e)).then((function(e){var t,i;return e.error?("string"==typeof e.error?(t=e.error,i=e.error_code):(t=e.error.content,i=e.error.error_code),a.default.Deferred().reject({message:t,code:i})):e}),(function(t,a,i){var n;return n="".concat(a," (").concat(i,")"),L("JSONP unexpected error: ".concat(n," while loading ").concat(e)),n}))},be=function(e,t,a,i){var n,r,o,l,s,u;if(window.HTMLCanvasElement.prototype.toBlob)return e.toBlob(i,t,a);for(o=(o=e.toDataURL(t,a)).split(","),r=window.atob(o[1]),n=new Uint8Array(r.length),l=s=0,u=r.length;s<u;l=s+=1)n[l]=r.charCodeAt(l);return i(new window.Blob([n],{type:/:(.+\/.+);/.exec(o[0])[1]}))},ye=function(e){var t,a,i;return i=0,t=[],a=function(){var e;return t.length?(e=t.shift(),W((function(){return e(a)}))):i-=1},function(n){return!e||i<e?(i+=1,W((function(){return n(a)}))):t.push(n)}},we=[["notify","progress",2],["resolve","done",0],["reject","fail",1]],xe=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return a.default.Deferred((function(t){return a.default.each(we,(function(n,r){var o;return o=a.default.isFunction(i[r[2]])&&i[r[2]],e[r[1]]((function(){var i;return(i=o&&o.apply(this,arguments))&&a.default.isFunction(i.promise)?i.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this===e?t.promise():this,o?[i]:arguments)}))}))})).promise()},ke=55,ze=110,Ae=165,Ce=255,Se="rgba(".concat(ke,", ").concat(ze,", ").concat(Ae,", ").concat(Ce/255,")");function Fe(e,t){try{var a=[e-1,t-1,1,1],i=document.createElement("canvas");i.width=1,i.height=1;var n=document.createElement("canvas");n.width=e,n.height=t;var r=i.getContext("2d"),o=n.getContext("2d");o&&(o.fillStyle=Se,o.fillRect.apply(o,a),r.drawImage(n,e-1,t-1,1,1,0,0,1,1));var l=r&&r.getImageData(0,0,1,1).data,s=!1;return l&&(s=l[0]===ke&&l[1]===ze&&l[2]===Ae&&l[3]===Ce),n.width=n.height=1,s}catch(a){return R("Failed to test for max canvas size of ".concat(e,"x").concat(t,"."),a),!1}}function Te(e,t){var a={};return function(){for(var i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];var o=t(n,a);return o in a?a[o]:a[o]=e.apply(void 0,n)}}var je={squareSide:[Math.floor(Math.sqrt(5e6)),4096,8192,11180,10836,11402,14188,16384],dimension:[4096,8192,16384,32767,65535]},De=je.squareSide[je.squareSide.length-1];function Ie(e){return function(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];var r=a.default.Deferred();return W((function(){var t=e.apply(void 0,i);r.resolve(t)})),r.promise()}}function Pe(e,t){for(var a=y(e,1)[0],i=Object.keys(t).map((function(e){return parseInt(e,10)})).sort((function(e,t){return e-t})),n=0;n<i.length;n++){var r=i[n],o=!!t[r];if(r>a&&o)return r;if(r<a&&!o)return r}return a}var Me=Ie(Te(Fe,Pe)),Ee=Ie(Te(Fe,Pe));function Oe(e,t){var i=a.default.Deferred(),n=je.squareSide.find((function(a){return a*a>=e*t})),r=je.dimension.find((function(a){return a>=e&&a>=t}));if(!n||!r)return i.reject();var o=[Me(n,n),Ee(r,1)];return a.default.when.apply(a.default,o).done((function(e,t){e&&t?i.resolve():i.reject()})),i.promise()}var Ue,Be,Re,Ve,Le,Ne,qe,Ke,He,We,Ge,Ye,Xe,Je,Ze,Qe,$e,et,tt,at=[].indexOf;Le={live:!0,manualStart:!1,locale:null,localePluralize:null,localeTranslations:null,systemDialog:!1,crop:!1,previewStep:!1,imagesOnly:!1,clearable:!1,multiple:!1,multipleMax:1e3,multipleMin:1,multipleMaxStrict:!1,imageShrink:!1,pathValue:!0,tabs:"file camera url facebook gdrive gphotos dropbox instagram evernote flickr onedrive",preferredTypes:"",inputAcceptTypes:"",doNotStore:!1,publicKey:null,secureSignature:"",secureExpire:"",pusherKey:"79ae88bd931ea68464d9",cdnBase:"https://ucarecdn.com",urlBase:"https://upload.uploadcare.com",socialBase:"https://social.uploadcare.com",previewProxy:null,previewUrlCallback:null,remoteTabSessionKey:null,imagePreviewMaxSize:26214400,multipartMinSize:10485760,multipartPartSize:5242880,multipartMinLastPartSize:1048576,multipartConcurrency:4,multipartMaxAttempts:3,parallelDirectUploads:10,passWindowOpen:!1,cameraMirrorDefault:!0,enableAudioRecording:!0,enableVideoRecording:!0,videoPreferredMimeTypes:null,audioBitsPerSecond:null,videoBitsPerSecond:null,scriptBase:"//ucarecdn.com/widget/".concat("3.17.0","/uploadcare/"),debugUploads:!1,integration:""},$e={multipleMax:{from:0,to:1e3}},Re={multipleMax:{min:1,max:1e3}},Xe={tabs:{all:"file camera url facebook gdrive gphotos dropbox instagram evernote flickr onedrive box vk huddle",default:Le.tabs}},Je=z()&&(document.currentScript||(tt=document.getElementsByTagName("script"))[tt.length-1]),(Ke=z()&&a.default(Je).data("integration"))&&null!=Ke&&(Le=a.default.extend(Le,{integration:Ke})),Ze=function(e){return a.default.isArray(e)||(e=(e=a.default.trim(e))?e.split(" "):[]),e},Ue=function(e,t){var a,i,n,r,o,l,s,u,c=Object.prototype.hasOwnProperty;for(a=0,o=t.length;a<o;a++){if(r=t[a],u=s=Ze(e[r]),c.apply(Xe,[r]))for(u=[],n=0,l=s.length;n<l;n++)i=s[n],c.apply(Xe[r],[i])?u=u.concat(Ze(Xe[r][i])):u.push(i);e[r]=H(u)}return e},et=function(e,t){var a,i,n;for(a=0,n=t.length;a<n;a++)null!=e[i=t[a]]&&(e[i]=se(e[i]));return e},Ne=function(e,t){var i,n,r,o;for(i=0,r=t.length;i<r;i++)null!=e[n=t[i]]&&("string"==typeof(o=e[n])?(o=a.default.trim(o).toLowerCase(),e[n]=!("false"===o||"disabled"===o)):e[n]=!!o);return e},qe=function(e,t){var a,i,n;for(a=0,n=t.length;a<n;a++)null!=e[i=t[a]]&&(e[i]=parseInt(e[i]));return e},He=function(e){return e._userAgent="UploadcareWidget/".concat("3.17.0","/").concat(e.publicKey," (JavaScript").concat(e.integration?"; ".concat(e.integration):"",")"),e},Qe=function(e,t){var a,i;for(a in t)i=t[a],null!=e[a]&&e[a]===i.from&&(e[a]=i.to);return e},Be=function(e,t){var a,i,n;for(a in t){var r=t[a];n=r.min,i=r.max,null!=e[a]&&(e[a]=Math.min(Math.max(e[a],n),i))}return e},Ge=function(e){var t;return{downscale:"x"===(t=/^([0-9]+)([x:])([0-9]+)\s*(|upscale|minimum)$/i.exec(a.default.trim(e.toLowerCase()))||[])[2],upscale:!!t[4],notLess:"minimum"===t[4],preferedSize:t.length?[+t[1],+t[3]]:void 0}},Ye=function(e){var t=/^([0-9]+)x([0-9]+)(?:\s+(\d{1,2}|100)%)?$/i.exec(a.default.trim(e.toLowerCase()))||[];if(!t.length)return!1;var i=t[1]*t[2],n=De*De;return i>n?(q("Shrinked size can not be larger than ".concat(Math.floor(n/1e3/1e3),"MP. ")+"You have set ".concat(t[1],"x").concat(t[2]," (")+"".concat(Math.ceil(i/1e3/100)/10,"MP).")),!1):{quality:t[3]?t[3]/100:void 0,size:i}},Ve=function(e,t){var a,i,n,r;return this.previewProxy?(i=(n=!/\?/.test(this.previewProxy))||!/=$/.test(this.previewProxy),a=!n&&!/[&?=]$/.test(this.previewProxy),r=encodeURIComponent(e),i&&(r="url="+r),a&&(r="&"+r),n&&(r="?"+r),this.previewProxy+r):e},We=function(e){var t;return Ue(e,["tabs","preferredTypes","videoPreferredMimeTypes"]),et(e,["cdnBase","socialBase","urlBase","scriptBase"]),Ne(e,["doNotStore","imagesOnly","multiple","clearable","pathValue","previewStep","systemDialog","debugUploads","multipleMaxStrict","cameraMirrorDefault"]),qe(e,["multipleMax","multipleMin","multipartMinSize","multipartPartSize","multipartMinLastPartSize","multipartConcurrency","multipartMaxAttempts","parallelDirectUploads"]),Qe(e,$e),Be(e,Re),He(e),!1===e.crop||a.default.isArray(e.crop)||(/^(disabled?|false|null)$/i.test(e.crop)?e.crop=!1:a.default.isPlainObject(e.crop)?e.crop=[e.crop]:e.crop=a.default.map((""+e.crop).split(","),Ge)),e.imageShrink&&!a.default.isPlainObject(e.imageShrink)&&(e.imageShrink=Ye(e.imageShrink)),(e.crop||e.multiple)&&(e.previewStep=!0),S||(e.systemDialog=!1),e.validators&&(e.validators=e.validators.slice()),e.previewProxy&&!e.previewUrlCallback&&(e.previewUrlCallback=Ve),-1!==(t=e.tabs.indexOf("skydrive"))&&(e.tabs[t]="onedrive"),e};var it,nt=function(){var e,t,a;for(e in t={},Le)null!=(a=window["UPLOADCARE_".concat(Q(e))])&&(t[e]=a);return t},rt=Y((function(e,t){var i;return t||(Le=a.default.extend(Le,nt())),i=We(a.default.extend(Le,e||{})),lt.fire(i),i})),ot=function(e){var t;return t=a.default.extend({},rt()),a.default.isEmptyObject(e)||(t=We(a.default.extend(t,e))),t},lt=z()&&a.default.Callbacks("once memory"),st=function(){function e(){s(this,e),this.urls=[],this.styles=[]}return c(e,[{key:"addUrl",value:function(e){if(!/^https?:\/\//i.test(e))throw new Error("Embedded urls should be absolute. "+e);if(!(at.call(this.urls,e)>=0))return this.urls.push(e)}},{key:"addStyle",value:function(e){return this.styles.push(e)}}]),e}(),ut=function(e,t){var i;return i=a.default.Deferred(),t&&(e.src=t),e.complete?i.resolve(e):(a.default(e).one("load",(function(){return i.resolve(e)})),a.default(e).one("error",(function(){return i.reject(e)}))),i.promise()},ct=function e(t){return a.default.isArray(t)?a.default.when.apply(null,a.default.map(t,e)):t.src?ut(t):ut(new window.Image,t)},dt=function(e){var t=a.default.Deferred();return a.default("<video></video>").on("loadeddata",t.resolve).on("error",t.reject).attr("src",e).get(0).load(),t.promise()},pt=function(){var e=a.default.Deferred();if(void 0!==it)e.resolve(it);else{var t=new window.Image;t.onload=function(){it=t.naturalWidth<t.naturalHeight,t.src="//:0",e.resolve(it)},t.src="data:image/jpg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/4QA6RXhpZgAATU0AKgAAAAgAAwESAAMAAAABAAYAAAEoAAMAAAABAAIAAAITAAMAAAABAAEAAAAAAAD/2wBDAP//////////////////////////////////////////////////////////////////////////////////////wAALCAABAAIBASIA/8QAJgABAAAAAAAAAAAAAAAAAAAAAxABAAAAAAAAAAAAAAAAAAAAAP/aAAgBAQAAPwBH/9k="}return e.promise()},ft=function(e,t,i){var n=a.default.Deferred();return W((function(){try{var a=document.createElement("canvas"),r=a.getContext("2d");a.width=t,a.height=i,r.imageSmoothingQuality="high",r.drawImage(e,0,0,t,i),e.src="//:0",e.width=e.height=1,n.resolve(a)}catch(e){R("Failed to shrink image to size ".concat(t,"x").concat(i,"."),e),n.reject(e)}})),n.promise()},ht=function(e,t,i,n,r){var o=function(e,t,a,i){var n=[],r=t,o=a;do{n.push([r,o]),r=Math.round(r/i),o=Math.round(o/i)}while(r<e*i);return n.reverse()}(t,i,n,r),l=a.default.Deferred(),s=a.default.Deferred();s.resolve(e);var u,c=function(e,t){var a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!a){if(Array.isArray(e)||(a=x(e))||t&&e&&"number"==typeof e.length){a&&(e=a);var i=0,n=function(){};return{s:n,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,l=!1;return{s:function(){a=a.call(e)},n:function(){var e=a.next();return o=e.done,e},e:function(e){l=!0,r=e},f:function(){try{o||null==a.return||a.return()}finally{if(l)throw r}}}}(o);try{var d=function(){var e=y(u.value,2),n=e[0],r=e[1];s=s.then((function(e){var t=a.default.Deferred();return Oe(n,r).then((function(){return t.resolve(e,!1)})).fail((function(){return t.resolve(e,!0)})),t.promise()})).then((function(e,t){return t?e:ft(e,n,r)})).then((function(e){return l.notify((t-n)/(t-i)),e}))};for(c.s();!(u=c.n()).done;)d()}catch(e){c.e(e)}finally{c.f()}return s.done((function(e){l.resolve(e)})),s.fail((function(e){l.reject(e)})),l.promise()},mt=function(e,t){var i=a.default.Deferred();if(.71*e.width*e.height*.71<t.size)return i.reject("not required");var n=e.width,r=e.height,o=n/r,l=Math.floor(Math.sqrt(t.size*o)),s=Math.floor(t.size/Math.sqrt(t.size*o));return Oe(l,s).fail((function(){i.reject("not supported")})).then((function(){("imageSmoothingQuality"in document.createElement("canvas").getContext("2d")&&!D&&!M?function(e,t,a){return ft(e,t,a)}(e,l,s):ht(e,n,l,s,.71)).done((function(e){return i.resolve(e)})).progress((function(e){return i.notify(e)})).fail((function(){return i.reject("not supported")}))})),i.promise()},gt=z()&&window.DataView,_t=ye(1),vt=function(e,t){var i;return i=a.default.Deferred(),U&&gt&&E?(_t((function(n){var r;return i.always(n),(r=ct(U.createObjectURL(e))).always((function(e){return U.revokeObjectURL(e.src)})),r.fail((function(){return i.reject("not image")})),r.done((function(n){i.notify(.1);var o=a.default.when(xt(e),pt()).always((function(e,a){var l;return i.notify(.2),l="resolved"===o.state(),(r=mt(n,t)).progress((function(e){return i.notify(.2+.6*e)})),r.fail(i.reject),r.done((function(n){var o,s;return o="image/jpeg",s=t.quality||.8,!l&&Ct(n)&&(o="image/png",s=void 0),be(n,o,s,(function(t){return n.width=n.height=1,i.notify(.9),e?(a&&kt(e,1),(r=wt(t,225,[e.buffer])).done(i.resolve),r.fail((function(){return i.resolve(t)}))):i.resolve(t)}))})),null,null}));return o}))})),i.promise()):i.reject("support")},bt=function(e,t,i,n,r){var o,l;return o=a.default.Deferred(),U?((l=ct(U.createObjectURL(e))).always((function(e){return U.revokeObjectURL(e.src)})),l.fail((function(){return o.reject("not image")})),l.done((function(l){return o.always((function(){l.src="//:0"})),r&&l.width*l.height>r?o.reject("max source"):a.default.when(xt(e),pt()).always((function(e,a){var r=a?1:zt(e)||1,s=r>4,u=s?[l.height,l.width]:[l.width,l.height],c=y(ce(u,[t,i]),2),d=c[0],p=c[1],f=[[1,0,0,1,0,0],[-1,0,0,1,d,0],[-1,0,0,-1,d,p],[1,0,0,-1,0,p],[0,1,1,0,0,0],[0,1,-1,0,d,0],[0,-1,-1,0,d,p],[0,-1,1,0,0,p]][r-1];if(!f)return o.reject("bad image");var h=document.createElement("canvas");h.width=d,h.height=p;var m=h.getContext("2d");if(m.transform.apply(m,f),s){var g=[p,d];d=g[0],p=g[1]}return n&&(m.fillStyle=n,m.fillRect(0,0,d,p)),m.drawImage(l,0,0,d,p),o.resolve(h,u)}))})),o.promise()):o.reject("support")},yt=function(e){var t,i,n,r,o;return o=function(e,a){var i;return(i=new B).onload=function(){return a(new gt(i.result))},i.onerror=function(e){return t.reject("reader",e)},i.readAsArrayBuffer(e)},n=function(){return o(e.slice(i,i+128),(function(e){var t,a,n;for(t=a=0,n=e.byteLength;n>=0?a<n:a>n;t=n>=0?++a:--a)if(255===e.getUint8(t)){i+=t;break}return r()}))},r=function(){var a;return a=i,o(e.slice(i,i+=4),(function(r){var l,s;return 4!==r.byteLength||255!==r.getUint8(0)?t.reject("corrupted"):218===(s=r.getUint8(1))?t.resolve():(l=r.getUint16(2)-2,o(e.slice(i,i+=l),(function(e){return e.byteLength!==l?t.reject("corrupted"):(t.notify(a,l,s,e),n())})))}))},t=a.default.Deferred(),B&&gt?(i=2,o(e.slice(0,2),(function(e){return 65496!==e.getUint16(0)?t.reject("not jpeg"):n()})),t.promise()):t.reject("support")},wt=function(e,t,i){var n,r,o,l;return n=a.default.Deferred(),o=[],r=[],(l=yt(e)).fail(n.reject),l.progress((function(e,a,i){if(i===t)return o.push(e),r.push(a)})),l.done((function(){var a,l,s,u,c,d,p,f,h;for(p=[e.slice(0,2)],u=0,d=i.length;u<d;u++)a=i[u],(s=new gt(new ArrayBuffer(4))).setUint16(0,65280+t),s.setUint16(2,a.byteLength+2),p.push(s.buffer),p.push(a);for(f=2,l=c=0,h=o.length;h>=0?c<h:c>h;l=h>=0?++c:--c)o[l]>f&&p.push(e.slice(f,o[l])),f=o[l]+r[l]+4;return p.push(e.slice(f,e.size)),n.resolve(new E(p,{type:e.type}))})),n.promise()},xt=function(e){var t,i;return t=null,(i=yt(e)).progress((function(e,a,i,n){if(!t&&225===i&&n.byteLength>=14&&1165519206===n.getUint32(0)&&0===n.getUint16(4))return t=n})),i.then((function(){return t}),(function(e){return a.default.Deferred().reject(t,e)}))},kt=function(e,t){At(e,(function(a,i){return e.setUint16(a,t,i)}))},zt=function(e){return At(e,(function(t,a){return e.getUint16(t,a)}))},At=function(e,t){var a,i,n,r;if(!e||e.byteLength<14||1165519206!==e.getUint32(0)||0!==e.getUint16(4))return null;if(18761===e.getUint16(6))i=!0;else{if(19789!==e.getUint16(6))return null;i=!1}if(42!==e.getUint16(8,i))return null;for(n=8+e.getUint32(10,i),a=0,r=e.getUint16(n-2,i);r>=0?a<r:a>r;r>=0?++a:--a){if(e.byteLength<n+10)return null;if(274===e.getUint16(n,i))return t(n+8,i);n+=12}return null},Ct=function(e){var t,a,i,n,r,o;for(50,(t=document.createElement("canvas")).width=t.height=50,(a=t.getContext("2d")).drawImage(e,0,0,50,50),i=a.getImageData(0,0,50,50).data,t.width=t.height=1,n=r=3,o=i.length;r<o;n=r+=4)if(i[n]<254)return!0;return!1},St=function(){function e(t,a){var i,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};s(this,e),this.settings=a,this.sourceInfo=n,this.fileId=null,this.fileName=null,this.sanitizedName=null,this.fileSize=null,this.isStored=null,this.cdnUrlModifiers=null,this.isImage=null,this.imageInfo=null,this.mimeType=null,this.s3Bucket=null,(i=this.sourceInfo).source||(i.source=this.sourceName),this.__setupValidation(),this.__initApi()}return c(e,[{key:"__startUpload",value:function(){return a.default.Deferred().resolve()}},{key:"__completeUpload",value:function(){var e,t,a,i,n=this;return a=0,this.settings.debugUploads&&(V("Load file info.",this.fileId,this.settings.publicKey),t=setInterval((function(){return V("Still waiting for file ready.",a,n.fileId,n.settings.publicKey)}),5e3),this.apiDeferred.done((function(){return V("File uploaded.",a,n.fileId,n.settings.publicKey)})).always((function(){return clearInterval(t)}))),i=100,(e=function(){if("pending"===n.apiDeferred.state())return a+=1,n.__updateInfo().done((function(){return setTimeout(e,i),i+=50}))})()}},{key:"__updateInfo",value:function(){var e=this;return ve("".concat(this.settings.urlBase,"/info/"),"GET",{jsonerrors:1,file_id:this.fileId,pub_key:this.settings.publicKey,wait_is_ready:+(null===this.isImage)},{headers:{"X-UC-User-Agent":this.settings._userAgent}}).fail((function(t){return e.settings.debugUploads&&R("Can't load file info. Probably removed.",e.fileId,e.settings.publicKey,t.message),e.__rejectApi("info",t)})).done(this.__handleFileData.bind(this))}},{key:"__handleFileData",value:function(e){if(this.fileName=e.original_filename,this.sanitizedName=e.filename,this.fileSize=e.size,this.isImage=e.is_image,this.imageInfo=e.image_info,this.mimeType=e.mime_type,this.isStored=e.is_stored,this.s3Bucket=e.s3_bucket,e.default_effects&&(this.cdnUrlModifiers="-/"+e.default_effects),this.s3Bucket&&this.cdnUrlModifiers&&this.__rejectApi("baddata"),this.__runValidators(),e.is_ready)return this.__resolveApi()}},{key:"__progressInfo",value:function(){var e;return{state:this.__progressState,uploadProgress:this.__progress,progress:"ready"===(e=this.__progressState)||"error"===e?1:.9*this.__progress,incompleteFileInfo:this.__fileInfo()}}},{key:"__fileInfo",value:function(){var e;return e=this.s3Bucket?"https://".concat(this.s3Bucket,".s3.amazonaws.com/").concat(this.fileId,"/").concat(this.sanitizedName):"".concat(this.settings.cdnBase,"/").concat(this.fileId,"/"),{uuid:this.fileId,name:this.fileName,size:this.fileSize,isStored:this.isStored,isImage:!this.s3Bucket&&this.isImage,originalImageInfo:this.imageInfo,mimeType:this.mimeType,originalUrl:this.fileId?e:null,cdnUrl:this.fileId?"".concat(e).concat(this.cdnUrlModifiers||""):null,cdnUrlModifiers:this.cdnUrlModifiers,sourceInfo:this.sourceInfo}}},{key:"__setupValidation",value:function(){if(this.validators=this.settings.validators||this.settings.__validators||[],this.settings.imagesOnly)return this.validators.push((function(e){if(!1===e.isImage)throw new Error("image")}))}},{key:"__runValidators",value:function(){var e,t,a,i,n,r,o;a=this.__fileInfo();try{for(n=this.validators,r=[],t=0,i=n.length;t<i;t++)o=n[t],r.push(o(a));return r}catch(t){return e=t,this.__rejectApi(e.message)}}},{key:"__initApi",value:function(){return this.apiDeferred=a.default.Deferred(),this.__progressState="uploading",this.__progress=0,this.__notifyApi()}},{key:"__notifyApi",value:function(){return this.apiDeferred.notify(this.__progressInfo())}},{key:"__rejectApi",value:function(e,t){return this.__progressState="error",this.__notifyApi(),this.apiDeferred.reject(e,this.__fileInfo(),t)}},{key:"__resolveApi",value:function(){return this.__progressState="ready",this.__notifyApi(),this.apiDeferred.resolve(this.__fileInfo())}},{key:"__cancel",value:function(){return this.__rejectApi("user")}},{key:"__extendApi",value:function(e){var t=this;return e.cancel=this.__cancel.bind(this),e.pipe=e.then=function(){for(var a=arguments.length,i=new Array(a),n=0;n<a;n++)i[n]=arguments[n];return t.__extendApi(xe.apply(void 0,[e].concat(i)))},e}},{key:"promise",value:function(){var e,t=this;return this.__apiPromise||(this.__apiPromise=this.__extendApi(this.apiDeferred.promise()),this.__runValidators(),"pending"===this.apiDeferred.state()&&((e=this.__startUpload()).done((function(){return t.__progressState="uploaded",t.__progress=1,t.__notifyApi(),t.__completeUpload()})),e.progress((function(e){if(e>t.__progress)return t.__progress=e,t.__notifyApi()})),e.fail((function(e){return t.__rejectApi("upload",e)})),this.apiDeferred.always(e.reject))),this.__apiPromise}}]),e}(),Ft=null,Tt=function(e){p(i,e);var t=_(i);function i(e){var a;return s(this,i),(a=t.apply(this,arguments)).__file=e,a.fileName=a.__file.name||"original",a.__notifyApi(),a}return c(i,[{key:"setFile",value:function(e){if(e&&(this.__file=e),this.sourceInfo.file=this.__file,this.__file)return this.fileSize=this.__file.size,this.fileType=this.__file.type||"application/octet-stream",this.settings.debugUploads&&V("Use local file.",this.fileName,this.fileType,this.fileSize),this.__runValidators(),this.__notifyApi()}},{key:"__startUpload",value:function(){var e,t,i,n=this;return this.apiDeferred.always((function(){return n.__file=null,n.__file})),this.__file.size>=this.settings.multipartMinSize&&E?(this.setFile(),this.multipartUpload()):(t=D,!this.settings.imageShrink||t&&t<8?(this.setFile(),this.directUpload()):(e=a.default.Deferred(),i=.4,vt(this.__file,this.settings.imageShrink).progress((function(t){return e.notify(t*i)})).done(this.setFile.bind(this)).fail((function(){return n.setFile(),i*=.1})).always((function(){return e.notify(i),n.directUpload().done(e.resolve).fail(e.reject).progress((function(t){return e.notify(i+t*(1-i))}))})),e))}},{key:"__autoAbort",value:function(e){return this.apiDeferred.fail(e.abort),e}},{key:"directRunner",value:function(e){return Ft||(Ft=ye(this.settings.parallelDirectUploads)),Ft(e)}},{key:"directUpload",value:function(){var e,t=this;return e=a.default.Deferred(),this.__file?this.fileSize>104857600?(this.__rejectApi("size"),e):(this.directRunner((function(i){var n;if(e.always(i),"pending"===t.apiDeferred.state())return(n=new window.FormData).append("UPLOADCARE_PUB_KEY",t.settings.publicKey),n.append("signature",t.settings.secureSignature),n.append("expire",t.settings.secureExpire),n.append("UPLOADCARE_STORE",t.settings.doNotStore?"":"auto"),n.append("file",t.__file,t.fileName),n.append("file_name",t.fileName),n.append("source",t.sourceInfo.source),t.__autoAbort(a.default.ajax({xhr:function(){var t;return t=a.default.ajaxSettings.xhr(),t.upload&&t.upload.addEventListener("progress",(function(t){return e.notify(t.loaded/t.total)}),!1),t},crossDomain:!0,type:"POST",url:"".concat(t.settings.urlBase,"/base/?jsonerrors=1"),headers:{"X-UC-User-Agent":t.settings._userAgent},contentType:!1,processData:!1,data:n,dataType:"json",error:e.reject,success:function(a){if(null!=a?a.file:void 0)return t.fileId=a.file,e.resolve();if(a.error){var i=a.error,n=i.content,r=i.error_code;return e.reject({message:n,code:r})}return e.reject()}}))})),e):(this.__rejectApi("baddata"),e)}},{key:"multipartUpload",value:function(){var e,t=this;return e=a.default.Deferred(),this.__file?(this.multipartStart().done((function(a){return t.uploadParts(a.parts,a.uuid).done((function(){return t.multipartComplete(a.uuid).done((function(a){return t.fileId=a.uuid,t.__handleFileData(a),e.resolve()})).fail(e.reject)})).progress(e.notify).fail(e.reject)})).fail(e.reject),e):e}},{key:"multipartStart",value:function(){var e,t=this;return e={UPLOADCARE_PUB_KEY:this.settings.publicKey,signature:this.settings.secureSignature,expire:this.settings.secureExpire,filename:this.fileName,source:this.sourceInfo.source,size:this.fileSize,content_type:this.fileType,part_size:this.settings.multipartPartSize,UPLOADCARE_STORE:this.settings.doNotStore?"":"auto"},this.__autoAbort(ve("".concat(this.settings.urlBase,"/multipart/start/?jsonerrors=1"),"POST",e,{headers:{"X-UC-User-Agent":this.settings._userAgent}})).fail((function(a){if(t.settings.debugUploads)return R("Can't start multipart upload.",a.message,e)}))}},{key:"uploadParts",value:function(e,t){var i,n,r,o,l,s,u,c,d,p,f=this;for(l=[],o=Date.now(),p=function(e,t){var a,n,r;if(l[e]=t,!(Date.now()-o<250)){for(o=Date.now(),r=0,a=0,n=l.length;a<n;a++)r+=t=l[a];return i.notify(r/f.fileSize)}},i=a.default.Deferred(),n=0,d=0,c=0,u=function(){var r,o,s,h,m;if(!(c>=f.fileSize))return s=c+f.settings.multipartPartSize,f.fileSize<s+f.settings.multipartMinLastPartSize&&(s=f.fileSize),o=f.__file.slice(c,s),c=s,h=d,n+=1,d+=1,r=0,(m=function(){if("pending"===f.apiDeferred.state())return l[h]=0,f.__autoAbort(a.default.ajax({xhr:function(){var e;return e=a.default.ajaxSettings.xhr(),e.responseType="text",e.upload&&e.upload.addEventListener("progress",(function(e){return p(h,e.loaded)}),!1),e},url:e[h],crossDomain:!0,type:"PUT",processData:!1,contentType:f.fileType,data:o,error:function(){return(r+=1)>f.settings.multipartMaxAttempts?(f.settings.debugUploads&&R("Part #".concat(h," and file upload is failed."),t),i.reject()):(f.settings.debugUploads&&V("Part #".concat(h,"(").concat(r,") upload is failed."),t),m())},success:function(){if(n-=1,u(),!n)return i.resolve()}}))})()},r=0,s=this.settings.multipartConcurrency;s>=0?r<s:r>s;s>=0?++r:--r)u();return i}},{key:"multipartComplete",value:function(e){var t,a=this;return t={UPLOADCARE_PUB_KEY:this.settings.publicKey,uuid:e},this.__autoAbort(ve("".concat(this.settings.urlBase,"/multipart/complete/?jsonerrors=1"),"POST",t,{headers:{"X-UC-User-Agent":this.settings._userAgent}})).fail((function(t){if(a.settings.debugUploads)return R("Can't complete multipart upload.",e,a.settings.publicKey,t.message)}))}}]),i}(St);Tt.prototype.sourceName="local";var jt=function(e){p(i,e);var t=_(i);function i(e){var n;return s(this,i),(n=t.apply(this,arguments)).__input=e,n.fileId=ee(),n.fileName=a.default(n.__input).val().split("\\").pop(),n.__notifyApi(),n}return c(i,[{key:"__startUpload",value:function(){var e,t,i,n;return e=a.default.Deferred(),n="".concat(this.settings.urlBase,"/iframe/"),i="uploadcare--iframe-".concat(this.fileId),this.__iframe=a.default("<iframe>").attr({id:i,name:i}).css("display","none").appendTo("body").on("load",e.resolve).on("error",e.reject),t=function(e,t){return a.default("<input/>",{type:"hidden",name:e,value:t})},a.default(this.__input).attr("name","file"),this.__iframeForm=a.default("<form>").attr({method:"POST",action:n,enctype:"multipart/form-data",target:i}).append(t("UPLOADCARE_PUB_KEY",this.settings.publicKey)).append(t("UPLOADCARE_SIGNATURE",this.settings.secureSignature)).append(t("UPLOADCARE_EXPIRE",this.settings.secureExpire)).append(t("UPLOADCARE_FILE_ID",this.fileId)).append(t("UPLOADCARE_STORE",this.settings.doNotStore?"":"auto")).append(t("UPLOADCARE_SOURCE",this.sourceInfo.source)).append(this.__input).css("display","none").appendTo("body").submit(),e.always(this.__cleanUp.bind(this))}},{key:"__cleanUp",value:function(){var e,t;return null!=(e=this.__iframe)&&e.off("load error").remove(),null!=(t=this.__iframeForm)&&t.remove(),this.__iframe=null,this.__iframeForm=null,this.__iframeForm}}]),i}(St);jt.prototype.sourceName="local-compat";var Dt=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e,t){
/*!
   * Pusher JavaScript Library v1.12.2
   * http://pusherapp.com/
   *
   * Copyright 2011, Pusher
   * Released under the MIT licence.
   */
var a=A.isWindowDefined;(function(){var e,t;(e=function(t,a){this.options=a||{},this.key=t,this.channels=new e.Channels,this.global_emitter=new e.EventsDispatcher;var i=this;this.checkAppKey(),this.connection=new e.Connection(this.key,this.options),this.connection.bind("connected",(function(){i.subscribeAll()})).bind("message",(function(e){var t,a=0===e.event.indexOf("pusher_internal:");e.channel&&(t=i.channel(e.channel))&&t.emit(e.event,e.data),a||i.global_emitter.emit(e.event,e.data)})).bind("disconnected",(function(){i.channels.disconnect()})).bind("error",(function(t){e.warn("Error",t)})),e.instances.push(this),e.isReady&&i.connect()}).instances=[],e.prototype={channel:function(e){return this.channels.find(e)},connect:function(){this.connection.connect()},disconnect:function(){this.connection.disconnect()},bind:function(e,t){return this.global_emitter.bind(e,t),this},bind_all:function(e){return this.global_emitter.bind_all(e),this},subscribeAll:function(){var e;for(e in this.channels.channels)this.channels.channels.hasOwnProperty(e)&&this.subscribe(e)},subscribe:function(e){var t=this,a=this.channels.add(e,this);return"connected"===this.connection.state&&a.authorize(this.connection.socket_id,this.options,(function(i,n){i?a.emit("pusher:subscription_error",n):t.send_event("pusher:subscribe",{channel:e,auth:n.auth,channel_data:n.channel_data})})),a},unsubscribe:function(e){this.channels.remove(e),"connected"===this.connection.state&&this.send_event("pusher:unsubscribe",{channel:e})},send_event:function(e,t,a){return this.connection.send_event(e,t,a)},checkAppKey:function(){null!==this.key&&void 0!==this.key||e.warn("Warning","You must pass your app key when you instantiate Pusher.")}},e.Util={extend:function e(t,a){for(var i in a)a[i]&&a[i].constructor&&a[i].constructor===Object?t[i]=e(t[i]||{},a[i]):t[i]=a[i];return t},stringify:function(){for(var e=["Pusher"],t=0;t<arguments.length;t++)"string"==typeof arguments[t]?e.push(arguments[t]):null==window.JSON?e.push(arguments[t].toString()):e.push(JSON.stringify(arguments[t]));return e.join(" : ")},arrayIndexOf:function(e,t){var a=Array.prototype.indexOf;if(null==e)return-1;if(a&&e.indexOf===a)return e.indexOf(t);for(i=0,l=e.length;i<l;i++)if(e[i]===t)return i;return-1}},e.debug=function(){e.log&&e.log(e.Util.stringify.apply(this,arguments))},e.warn=function(){if(window.console&&window.console.warn)window.console.warn(e.Util.stringify.apply(this,arguments));else{if(!e.log)return;e.log(e.Util.stringify.apply(this,arguments))}},e.VERSION="1.12.2",e.host="ws.pusherapp.com",e.ws_port=80,e.wss_port=443,e.channel_auth_endpoint="/pusher/auth",e.cdn_http="http://js.pusher.com/",e.cdn_https="https://d3dy5gmtp8yhk7.cloudfront.net/",e.dependency_suffix=".min",e.channel_auth_transport="ajax",e.activity_timeout=12e4,e.pong_timeout=3e4,e.isReady=!1,e.ready=function(){e.isReady=!0;for(var t=0,a=e.instances.length;t<a;t++)e.instances[t].connect()},function(){function t(){this._callbacks={}}function a(e){this.callbacks=new t,this.global_callbacks=[],this.failThrough=e}t.prototype.get=function(e){return this._callbacks[this._prefix(e)]},t.prototype.add=function(e,t){var a=this._prefix(e);this._callbacks[a]=this._callbacks[a]||[],this._callbacks[a].push(t)},t.prototype.remove=function(t,a){if(this.get(t)){var i=e.Util.arrayIndexOf(this.get(t),a);this._callbacks[this._prefix(t)].splice(i,1)}},t.prototype._prefix=function(e){return"_"+e},a.prototype.bind=function(e,t){return this.callbacks.add(e,t),this},a.prototype.unbind=function(e,t){return this.callbacks.remove(e,t),this},a.prototype.emit=function(e,t){for(var a=0;a<this.global_callbacks.length;a++)this.global_callbacks[a](e,t);var i=this.callbacks.get(e);if(i)for(a=0;a<i.length;a++)i[a](t);else this.failThrough&&this.failThrough(e,t);return this},a.prototype.bind_all=function(e){return this.global_callbacks.push(e),this},e.EventsDispatcher=a}(),function(){function t(e,t,a){void 0!==t[e]&&t[e](a)}function a(t,a,i){e.EventsDispatcher.call(this),this.state=void 0,this.errors=[],this.stateActions=i,this.transitions=a,this.transition(t)}a.prototype.transition=function(a,i){var n,r=this.state,o=this.stateActions;if(r&&-1==e.Util.arrayIndexOf(this.transitions[r],a))throw this.emit("invalid_transition_attempt",{oldState:r,newState:a}),new Error("Invalid transition ["+r+" to "+a+"]");t(r+"Exit",o,i),t(r+"To"+((n=a).substr(0,1).toUpperCase()+n.substr(1)),o,i),t(a+"Pre",o,i),this.state=a,this.emit("state_change",{oldState:r,newState:a}),t(a+"Post",o,i)},a.prototype.is=function(e){return this.state===e},a.prototype.isNot=function(e){return this.state!==e},e.Util.extend(a.prototype,e.EventsDispatcher.prototype),e.Machine=a}(),(t=function(){var t=this;e.EventsDispatcher.call(this),void 0!==window.addEventListener&&(window.addEventListener("online",(function(){t.emit("online",null)}),!1),window.addEventListener("offline",(function(){t.emit("offline",null)}),!1))}).prototype.isOnLine=function(){return void 0===window.navigator.onLine||window.navigator.onLine},e.Util.extend(t.prototype,e.EventsDispatcher.prototype),e.NetInfo=t,function(){var t={initialized:["waiting","failed"],waiting:["connecting","permanentlyClosed"],connecting:["open","permanentlyClosing","impermanentlyClosing","waiting"],open:["connected","permanentlyClosing","impermanentlyClosing","waiting"],connected:["permanentlyClosing","waiting"],impermanentlyClosing:["waiting","permanentlyClosing"],permanentlyClosing:["permanentlyClosed"],permanentlyClosed:["waiting","failed"],failed:["permanentlyClosed"]};function a(t){t.connectionWait=0,"flash"===e.TransportType?t.openTimeout=5e3:t.openTimeout=2e3,t.connectedTimeout=2e3,t.connectionSecure=t.compulsorySecure,t.connectionAttempts=0}function i(i,n){var r=this;function o(){r.connectionWait<1e4&&(r.connectionWait+=2e3),r.openTimeout<1e4&&(r.openTimeout+=2e3),r.connectedTimeout<1e4&&(r.connectedTimeout+=2e3),!0!==r.compulsorySecure&&(r.connectionSecure=!r.connectionSecure),r.connectionAttempts++}function l(){r._machine.transition("impermanentlyClosing")}function s(){r._activityTimer&&clearTimeout(r._activityTimer),r._activityTimer=setTimeout((function(){r.send_event("pusher:ping",{}),r._activityTimer=setTimeout((function(){r.socket.close()}),r.options.pong_timeout||e.pong_timeout)}),r.options.activity_timeout||e.activity_timeout)}function u(){r._machine.transition("open")}function c(e){var t,a,i=p(e);void 0!==i&&("pusher:connection_established"===i.event?r._machine.transition("connected",i.data.socket_id):"pusher:error"===i.event&&(t=i.data.code,a=i.data.message,r.emit("error",{type:"PusherError",data:{code:t,message:a}}),4e3===t?(r.compulsorySecure=!0,r.connectionSecure=!0,r.options.encrypted=!0,l()):t<4100?r._machine.transition("permanentlyClosing"):t<4200?(r.connectionWait=1e3,r._machine.transition("waiting")):t<4300?l():r._machine.transition("permanentlyClosing")))}function d(t){s();var a=p(t);if(void 0!==a){switch(e.debug("Event recd",a),a.event){case"pusher:error":r.emit("error",{type:"PusherError",data:a.data});break;case"pusher:ping":r.send_event("pusher:pong",{})}r.emit("message",a)}}function p(e){try{var t=JSON.parse(e.data);if("string"==typeof t.data)try{t.data=JSON.parse(t.data)}catch(e){if(!(e instanceof SyntaxError))throw e}return t}catch(t){r.emit("error",{type:"MessageParseError",error:t,data:e.data})}}function f(){r._machine.transition("waiting")}function h(e){r.emit("error",{type:"WebSocketError",error:e})}function m(t,a){var i=r.state;r.state=t,i!==t&&(e.debug("State changed",i+" -> "+t),r.emit("state_change",{previous:i,current:t}),r.emit(t,a))}e.EventsDispatcher.call(this),this.options=e.Util.extend({encrypted:!1},n),this.netInfo=new e.NetInfo,this.netInfo.bind("online",(function(){r._machine.is("waiting")&&(r._machine.transition("connecting"),m("connecting"))})),this.netInfo.bind("offline",(function(){r._machine.is("connected")&&(r.socket.onclose=void 0,r.socket.onmessage=void 0,r.socket.onerror=void 0,r.socket.onopen=void 0,r.socket.close(),r.socket=void 0,r._machine.transition("waiting"))})),this._machine=new e.Machine("initialized",t,{initializedPre:function(){r.compulsorySecure=r.options.encrypted,r.key=i,r.socket=null,r.socket_id=null,r.state="initialized"},waitingPre:function(){r.connectionWait>0&&r.emit("connecting_in",r.connectionWait),r.netInfo.isOnLine()&&r.connectionAttempts<=4?m("connecting"):m("unavailable"),r.netInfo.isOnLine()&&(r._waitingTimer=setTimeout((function(){r._machine.transition("connecting")}),function(){var e=r.connectionWait;if(0===e&&r.connectedAt){var t=(new Date).getTime()-r.connectedAt;t<1e3&&(e=1e3-t)}return e}()))},waitingExit:function(){clearTimeout(r._waitingTimer)},connectingPre:function(){if(!1===r.netInfo.isOnLine())return r._machine.transition("waiting"),void m("unavailable");var t=function(t,a){var i=e.ws_port,n="ws://";(a||"https:"===document.location.protocol)&&(i=e.wss_port,n="wss://");var r="flash"===e.TransportType?"true":"false";return n+e.host+":"+i+"/app/"+t+"?protocol=5&client=js&version="+e.VERSION+"&flash="+r}(r.key,r.connectionSecure);e.debug("Connecting",t),r.socket=new e.Transport(t),r.socket.onopen=u,r.socket.onclose=f,r.socket.onerror=h,r._connectingTimer=setTimeout(l,r.openTimeout)},connectingExit:function(){clearTimeout(r._connectingTimer),r.socket.onopen=void 0},connectingToWaiting:function(){o()},connectingToImpermanentlyClosing:function(){o()},openPre:function(){r.socket.onmessage=c,r.socket.onerror=h,r.socket.onclose=f,r._openTimer=setTimeout(l,r.connectedTimeout)},openExit:function(){clearTimeout(r._openTimer),r.socket.onmessage=void 0},openToWaiting:function(){o()},openToImpermanentlyClosing:function(){o()},connectedPre:function(e){r.socket_id=e,r.socket.onmessage=d,r.socket.onerror=h,r.socket.onclose=f,a(r),r.connectedAt=(new Date).getTime(),s()},connectedPost:function(){m("connected")},connectedExit:function(){r._activityTimer&&clearTimeout(r._activityTimer),m("disconnected")},impermanentlyClosingPost:function(){r.socket&&(r.socket.onclose=f,r.socket.close())},permanentlyClosingPost:function(){r.socket?(r.socket.onclose=function(){a(r),r._machine.transition("permanentlyClosed")},r.socket.close()):(a(r),r._machine.transition("permanentlyClosed"))},failedPre:function(){m("failed"),e.debug("WebSockets are not available in this browser.")},permanentlyClosedPost:function(){m("disconnected")}})}i.prototype.connect=function(){this._machine.is("failed")||e.Transport?this._machine.is("initialized")?(a(this),this._machine.transition("waiting")):this._machine.is("waiting")&&!0===this.netInfo.isOnLine()?this._machine.transition("connecting"):this._machine.is("permanentlyClosed")&&(a(this),this._machine.transition("waiting")):this._machine.transition("failed")},i.prototype.send=function(e){if(this._machine.is("connected")){var t=this;return setTimeout((function(){t.socket.send(e)}),0),!0}return!1},i.prototype.send_event=function(t,a,i){var n={event:t,data:a};return i&&(n.channel=i),e.debug("Event sent",n),this.send(JSON.stringify(n))},i.prototype.disconnect=function(){this._machine.is("permanentlyClosed")||(this._machine.is("waiting")||this._machine.is("failed")?this._machine.transition("permanentlyClosed"):this._machine.transition("permanentlyClosing"))},e.Util.extend(i.prototype,e.EventsDispatcher.prototype),e.Connection=i}(),function(){e.Channels=function(){this.channels={}},e.Channels.prototype={add:function(t,a){var i=this.find(t);if(i)return i;var n=e.Channel.factory(t,a);return this.channels[t]=n,n},find:function(e){return this.channels[e]},remove:function(e){delete this.channels[e]},disconnect:function(){for(var e in this.channels)this.channels[e].disconnect()}},e.Channel=function(t,a){var i=this;e.EventsDispatcher.call(this,(function(a,i){e.debug("No callbacks on "+t+" for "+a)})),this.pusher=a,this.name=t,this.subscribed=!1,this.bind("pusher_internal:subscription_succeeded",(function(e){i.onSubscriptionSucceeded(e)}))},e.Channel.prototype={init:function(){},disconnect:function(){this.subscribed=!1,this.emit("pusher_internal:disconnected")},onSubscriptionSucceeded:function(e){this.subscribed=!0,this.emit("pusher:subscription_succeeded")},authorize:function(e,t,a){return a(!1,{})},trigger:function(e,t){return this.pusher.send_event(e,t,this.name)}},e.Util.extend(e.Channel.prototype,e.EventsDispatcher.prototype),e.Channel.PrivateChannel={authorize:function(t,a,i){var n=this;return new e.Channel.Authorizer(this,e.channel_auth_transport,a).authorize(t,(function(e,t){e||n.emit("pusher_internal:authorized",t),i(e,t)}))}},e.Channel.PresenceChannel={init:function(){this.members=new t(this)},onSubscriptionSucceeded:function(e){this.subscribed=!0}};var t=function(e){var t=this,a=function(){this._members_map={},this.count=0,this.me=null};a.call(this),e.bind("pusher_internal:authorized",(function(a){var i=JSON.parse(a.channel_data);e.bind("pusher_internal:subscription_succeeded",(function(a){t._members_map=a.presence.hash,t.count=a.presence.count,t.me=t.get(i.user_id),e.emit("pusher:subscription_succeeded",t)}))})),e.bind("pusher_internal:member_added",(function(a){null===t.get(a.user_id)&&t.count++,t._members_map[a.user_id]=a.user_info,e.emit("pusher:member_added",t.get(a.user_id))})),e.bind("pusher_internal:member_removed",(function(a){var i=t.get(a.user_id);i&&(delete t._members_map[a.user_id],t.count--,e.emit("pusher:member_removed",i))})),e.bind("pusher_internal:disconnected",(function(){a.call(t)}))};t.prototype={each:function(e){for(var t in this._members_map)e(this.get(t))},get:function(e){return this._members_map.hasOwnProperty(e)?{id:e,info:this._members_map[e]}:null}},e.Channel.factory=function(t,a){var i=new e.Channel(t,a);return 0===t.indexOf("private-")?e.Util.extend(i,e.Channel.PrivateChannel):0===t.indexOf("presence-")&&(e.Util.extend(i,e.Channel.PrivateChannel),e.Util.extend(i,e.Channel.PresenceChannel)),i.init(),i}}(),e.Channel.Authorizer=function(e,t,a){this.channel=e,this.type=t,this.authOptions=(a||{}).auth||{}},e.Channel.Authorizer.prototype={composeQuery:function(e){var t="&socket_id="+encodeURIComponent(e)+"&channel_name="+encodeURIComponent(this.channel.name);for(var a in this.authOptions.params)t+="&"+encodeURIComponent(a)+"="+encodeURIComponent(this.authOptions.params[a]);return t},authorize:function(t,a){return e.authorizers[this.type].call(this,t,a)}},e.auth_callbacks={},e.authorizers={ajax:function(t,a){var i;for(var n in(i=e.XHR?new e.XHR:window.XMLHttpRequest?new window.XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP")).open("POST",e.channel_auth_endpoint,!0),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),this.authOptions.headers)i.setRequestHeader(n,this.authOptions.headers[n]);return i.onreadystatechange=function(){if(4==i.readyState)if(200==i.status){var t,n=!1;try{t=JSON.parse(i.responseText),n=!0}catch(e){a(!0,"JSON returned from webapp was invalid, yet status code was 200. Data was: "+i.responseText)}n&&a(!1,t)}else e.warn("Couldn't get auth info from your webapp",i.status),a(!0,i.status)},i.send(this.composeQuery(t)),i},jsonp:function(t,a){void 0!==this.authOptions.headers&&e.warn("Warn","To send headers with the auth request, you must use AJAX, rather than JSONP.");var i=document.createElement("script");e.auth_callbacks[this.channel.name]=function(e){a(!1,e)};var n="Pusher.auth_callbacks['"+this.channel.name+"']";i.src=e.channel_auth_endpoint+"?callback="+encodeURIComponent(n)+this.composeQuery(t);var r=document.getElementsByTagName("head")[0]||document.documentElement;r.insertBefore(i,r.firstChild)}};var n=function(){function e(e,t){var a=document.getElementsByTagName("head")[0],i=document.createElement("script");i.setAttribute("src",e),i.setAttribute("type","text/javascript"),i.setAttribute("async",!0),function(e,t){document.addEventListener?e.addEventListener("load",t,!1):e.attachEvent("onreadystatechange",(function(){"loaded"!=e.readyState&&"complete"!=e.readyState||t()}))}(i,(function(){t()})),a.appendChild(i)}return function(t,a){for(var i=0,n=0;n<t.length;n++)e(t[n],(function(){t.length==++i&&setTimeout(a,0)}))}}();!function(){a()&&!window.WebSocket&&window.MozWebSocket&&(window.WebSocket=window.MozWebSocket),a()&&window.WebSocket&&(e.Transport=window.WebSocket,e.TransportType="native");var t=(a()&&("http:"==document.location.protocol?e.cdn_http:e.cdn_https))+e.VERSION,i=[];a()&&!window.JSON&&i.push(t+"/json2"+e.dependency_suffix+".js"),a()&&!window.WebSocket&&(window.WEB_SOCKET_DISABLE_AUTO_INITIALIZATION=!0,i.push(t+"/flashfallback"+e.dependency_suffix+".js"));var r=a()&&window.WebSocket?function(){e.ready()}:function(){window.WebSocket?(e.Transport=window.WebSocket,e.TransportType="flash",window.WEB_SOCKET_SWF_LOCATION="https://s3.amazonaws.com/uploadcare-static/WebSocketMainInsecure.swf",WebSocket.__addTask((function(){e.ready()})),WebSocket.__initialize()):(e.Transport=null,e.TransportType="none",e.ready())},o=function(){var e;e=r,function t(){a()&&(document.body?e():setTimeout(t,0))}()};i.length>0?n(i,o):o()}(),this.Pusher=e}).call(t)})).Pusher,It={};Dt.prototype.constructor=Dt;var Pt=function(e){p(i,e);var t=_(i);function i(){return s(this,i),t.apply(this,arguments)}return c(i,[{key:"subscribe",value:function(e){return this.disconnectTimeout&&(clearTimeout(this.disconnectTimeout),this.disconnectTimeout=null),this.connect(),b(f(i.prototype),"subscribe",this).apply(this,arguments)}},{key:"unsubscribe",value:function(e){var t=this;b(f(i.prototype),"unsubscribe",this).apply(this,arguments),a.default.isEmptyObject(this.channels.channels)&&(this.disconnectTimeout=setTimeout((function(){return t.disconnectTimeout=null,t.disconnect()}),5e3))}}]),i}(Dt),Mt=function(e){return null==It[e]&&(It[e]=new Pt(e)),It[e].connect(),It[e]},Et=function(e){p(i,e);var t=_(i);function i(e){var a,n;if(s(this,i),(a=t.apply(this,arguments)).__url=e,n=te.exec(a.__url)[3].split("/").pop())try{a.fileName=decodeURIComponent(n)}catch(e){a.fileName=n}return a.__notifyApi(),a}return c(i,[{key:"setName",value:function(e){return this.fileName=e,this.__realFileName=e,this.__notifyApi()}},{key:"setIsImage",value:function(e){return this.isImage=e,this.__notifyApi()}},{key:"__startUpload",value:function(){var e,t,i,n,r=this;return t=a.default.Deferred(),n=new Ot(this.settings),i=new Ut(this.settings),e={pub_key:this.settings.publicKey,signature:this.settings.secureSignature,expire:this.settings.secureExpire,source_url:this.__url,filename:this.__realFileName||"",source:this.sourceInfo.source,store:this.settings.doNotStore?"":"auto",jsonerrors:1},W((function(){if("pending"===r.apiDeferred.state())return ve("".concat(r.settings.urlBase,"/from_url/"),"GET",e,{headers:{"X-UC-User-Agent":r.settings._userAgent}}).fail((function(a){return r.settings.debugUploads&&V("Can't start upload from URL.",a.message,e),t.reject(a)})).done((function(e){var o;if("pending"===r.apiDeferred.state())return r.settings.debugUploads&&(V("Start watchers.",e.token),o=setInterval((function(){return V("Still watching.",e.token)}),5e3),t.done((function(){return V("Stop watchers.",e.token)})).always((function(){return clearInterval(o)}))),r.__listenWatcher(t,a.default([n,i])),t.always((function(){return a.default([n,i]).off(r.allEvents),n.stopWatching(),i.stopWatching()})),a.default(n).one(r.allEvents,(function(){if(i.interval)return r.settings.debugUploads&&V("Start using pusher.",e.token),i.stopWatching()})),n.watch(e.token),i.watch(e.token)}))})),t}},{key:"__listenWatcher",value:function(e,t){var i=this;return t.on("progress",(function(t,a){return i.fileSize=a.total,e.notify(a.done/a.total)})).on("success",(function(t,n){return a.default(t.target).trigger("progress",n),i.fileId=n.uuid,i.__handleFileData(n),e.resolve()})).on("error fail",(function(t,a){if(a.error_code){var i=a.error_code,n=a.msg;e.reject({code:i,message:n})}else e.reject(a)}))}}]),i}(St);Et.prototype.sourceName="url",Et.prototype.allEvents="progress success error fail";var Ot=function(){function e(t){s(this,e),this.settings=t;try{this.pusher=Mt(this.settings.pusherKey)}catch(e){this.pusher=null}}return c(e,[{key:"watch",value:function(e){var t=this;if(this.token=e,this.pusher)return this.pusher.subscribe("task-status-".concat(this.token)).bind_all((function(e,i){return a.default(t).trigger(e,i)}))}},{key:"stopWatching",value:function(){if(this.pusher)return this.pusher.unsubscribe("task-status-".concat(this.token))}}]),e}(),Ut=function(){function e(t){s(this,e),this.settings=t,this.poolUrl="".concat(this.settings.urlBase,"/from_url/status/")}return c(e,[{key:"watch",value:function(e){var t=this;this.token=e;return function e(){return t.interval=setTimeout((function(){t.__updateStatus().done((function(){t.interval&&e()}))}),333),t.interval}()}},{key:"stopWatching",value:function(){return this.interval&&clearTimeout(this.interval),this.interval=null,this.interval}},{key:"__updateStatus",value:function(){var e=this;return ve(this.poolUrl,"GET",{token:this.token},{headers:{"X-UC-User-Agent":this.settings._userAgent}}).fail((function(t){return a.default(e).trigger("error",t)})).done((function(t){return a.default(e).trigger(t.status,t)}))}}]),e}(),Bt=function(e){p(a,e);var t=_(a);function a(e){var i,n;return s(this,a),i=t.apply(this,arguments),(n=re(e))?(i.fileId=n[1],n[2]&&(i.cdnUrlModifiers=n[2])):i.__rejectApi("baddata"),i}return c(a)}(St);Bt.prototype.sourceName="uploaded";var Rt=function(e){p(a,e);var t=_(a);function a(e){var i;return s(this,a),i=t.apply(this,arguments),e?(i.fileId=e.uuid,i.__handleFileData(e)):i.__rejectApi("deleted"),i}return c(a)}(St);Rt.prototype.sourceName="uploaded";var Vt={object:Tt,input:jt,url:Et,uploaded:Bt,ready:Rt},Lt=function(e,t,a){return Nt(e,[t],a)[0]},Nt=function(e,t,i){var n,r,o,l,s;for(i=ot(i||{}),s=[],n=0,o=t.length;n<o;n++)l=t[n],r=void 0,a.default.isArray(l)&&(r=l[1],l=l[0]),s.push(new Vt[e](l,i,r).promise());return s},qt=function(e){return e&&e.done&&e.fail&&e.cancel},Kt=function(e,t){return e&&!qt(e)&&(e=Lt("uploaded",e,t)),e||null},Ht=function(e){return e&&e.files&&e.promise},Wt=function(e,t){var i,n;if(e)if(a.default.isArray(e))i=function(){var a,i,r;for(r=[],a=0,i=e.length;a<i;a++)n=e[a],r.push(Kt(n,t));return r}(),e=oa(i,t);else if(!Ht(e))return la(e,t);return X(e||null)},Gt=function(e,t){var a,i,n,r,o;if(e===t)return!0;if(!Ht(e)||!Ht(t))return!1;if(a=e.files(),i=t.files(),a.length!==i.length)return!1;for(n=r=0,o=a.length;r<o;n=++r)if(a[n]!==i[n])return!1;return!0},Yt=[].indexOf,Xt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];s(this,e),this.onAdd=a.default.Callbacks(),this.onRemove=a.default.Callbacks(),this.onSort=a.default.Callbacks(),this.onReplace=a.default.Callbacks(),this.__items=[],i||this.init(t)}return c(e,[{key:"init",value:function(e){var t,a,i;for(a=0,i=e.length;a<i;a++)t=e[a],this.add(t)}},{key:"add",value:function(e){return this.__add(e,this.__items.length)}},{key:"__add",value:function(e,t){return this.__items.splice(t,0,e),this.onAdd.fire(e,t)}},{key:"remove",value:function(e){var t;if(-1!==(t=a.default.inArray(e,this.__items)))return this.__remove(e,t)}},{key:"__remove",value:function(e,t){return this.__items.splice(t,1),this.onRemove.fire(e,t)}},{key:"clear",value:function(){var e,t,a,i,n,r;for(a=this.get(),this.__items.length=0,r=[],e=i=0,n=a.length;i<n;e=++i)t=a[e],r.push(this.onRemove.fire(t,e));return r}},{key:"replace",value:function(e,t){var i;if(e!==t&&-1!==(i=a.default.inArray(e,this.__items)))return this.__replace(e,t,i)}},{key:"__replace",value:function(e,t,a){return this.__items[a]=t,this.onReplace.fire(e,t,a)}},{key:"sort",value:function(e){return this.__items.sort(e),this.onSort.fire()}},{key:"get",value:function(e){return null!=e?this.__items[e]:this.__items.slice(0)}},{key:"length",value:function(){return this.__items.length}}]),e}(),Jt=function(e){p(a,e);var t=_(a);function a(){return s(this,a),t.apply(this,arguments)}return c(a,[{key:"add",value:function(e){if(!(Yt.call(this.__items,e)>=0))return b(f(a.prototype),"add",this).apply(this,arguments)}},{key:"__replace",value:function(e,t,i){return Yt.call(this.__items,t)>=0?this.remove(e):b(f(a.prototype),"__replace",this).apply(this,arguments)}}]),a}(Xt),Zt=function(e){p(i,e);var t=_(i);function i(){var e,n;return s(this,i),(n=t.call.apply(t,[this].concat(Array.prototype.slice.call(arguments),[!0]))).anyDoneList=a.default.Callbacks(),n.anyFailList=a.default.Callbacks(),n.anyProgressList=a.default.Callbacks(),n._thenArgs=null,n.anyProgressList.add((function(e,t){return a.default(e).data("lastProgress",t)})),b((e=m(n),f(i.prototype)),"init",e).call(e,arguments[0]),n}return c(i,[{key:"onAnyDone",value:function(e){var t,a,i,n,r;for(this.anyDoneList.add(e),r=[],a=0,i=(n=this.__items).length;a<i;a++)"resolved"===(t=n[a]).state()?r.push(t.done((function(){for(var a=arguments.length,i=new Array(a),n=0;n<a;n++)i[n]=arguments[n];return e.apply(void 0,[t].concat(i))}))):r.push(void 0);return r}},{key:"onAnyFail",value:function(e){var t,a,i,n,r;for(this.anyFailList.add(e),r=[],a=0,i=(n=this.__items).length;a<i;a++)"rejected"===(t=n[a]).state()?r.push(t.fail((function(){for(var a=arguments.length,i=new Array(a),n=0;n<a;n++)i[n]=arguments[n];return e.apply(void 0,[t].concat(i))}))):r.push(void 0);return r}},{key:"onAnyProgress",value:function(e){var t,i,n,r,o;for(this.anyProgressList.add(e),o=[],i=0,n=(r=this.__items).length;i<n;i++)t=r[i],o.push(e(t,a.default(t).data("lastProgress")));return o}},{key:"lastProgresses",value:function(){var e,t,i,n,r;for(r=[],t=0,i=(n=this.__items).length;t<i;t++)e=n[t],r.push(a.default(e).data("lastProgress"));return r}},{key:"add",value:function(e){if(e&&e.then){var t;if(this._thenArgs)e=(t=e).then.apply(t,w(this._thenArgs));return b(f(i.prototype),"add",this).call(this,e),this.__watchItem(e)}}},{key:"__replace",value:function(e,t,a){return t&&t.then?(b(f(i.prototype),"__replace",this).apply(this,arguments),this.__watchItem(t)):this.remove(e)}},{key:"__watchItem",value:function(e){var t=this,a=function(a){return function(){if(Yt.call(t.__items,e)>=0){for(var i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];return a.fire.apply(a,[e].concat(n))}}};return e.then(a(this.anyDoneList),a(this.anyFailList),a(this.anyProgressList))}},{key:"autoThen",value:function(){var e,t,a,i,n,r;if(this._thenArgs)throw new Error("CollectionOfPromises.then() could be used only once");for(var o=arguments.length,l=new Array(o),s=0;s<o;s++)l[s]=arguments[s];for(this._thenArgs=l,r=[],e=a=0,i=(n=this.__items).length;a<i;e=++a){var u;t=n[e],r.push(this.__replace(t,(u=t).then.apply(u,w(this._thenArgs)),e))}return r}}]),i}(Jt),Qt={ar:{translations:{uploading:"جاري الرفع... الرجاء الانتظار",loadingInfo:"جار تحميل المعلومات ...",errors:{default:"خطأ",baddata:"قيمة غير صحيحة",size:"ملف كبير جداً",upload:"يتعذر الرفع",user:"تم إلغاء الرفع",info:"يتعذر تحميل المعلومات",image:"يسمح بالصور فقط",createGroup:"لا يمكن إنشاء مجموعة ملفات",deleted:"تم حذف الملف"},draghere:"أسقط ملف هنا",file:{one:"%1 ملف",other:"%1 ملفات"},buttons:{cancel:"إلغاء",remove:"إزالة",choose:{files:{one:"اختر ملف",other:"اختر ملفات"},images:{one:"اختر صورة",other:"اختر صور"}}},dialog:{close:"أغلق",openMenu:"افتح القائمة",done:"موافق",showFiles:"اظهار الملفات",tabs:{names:{"empty-pubkey":"مرحبا!",preview:"معاينة",file:"ملفات محلية",url:"رابط مباشر",camera:"كاميرا",facebook:"فيس بوك",dropbox:"دروب بوكس",gdrive:"جوجل دريف",gphotos:"صور غوغل",instagram:"إينستجرام",vk:"في كي",evernote:"إيفرنوت",box:"بوكس",onedrive:"ون درايف",flickr:"فليكر",huddle:"هادل"},file:{drag:"سحب وإفلات<br>أي ملف",nodrop:"رفع ملفات من&nbsp;الحاسوب",cloudsTip:"مخازن على السحابة<br>والشبكات الاجتماعية",or:"أو",button:"اختر ملف محلي",also:"أو اختر من"},url:{title:"ملفات من شبكة الإنترنت",line1:"التقاط أي ملف من على شبكة الإنترنت",line2:"فقط قم بتوفير الرابط",input:"الصق الرابط هنا...",button:"رفع"},camera:{title:"ملف من كاميرا الويب",capture:"التقاط صورة",mirror:"عكس الصورة",startRecord:"سجل فيديو",stopRecord:"توقف",cancelRecord:"إلغاء",retry:"طلب الإذن مرة أخرى",pleaseAllow:{title:"يرجى السماح بالوصول إلى الكاميرا",text:"تمت مطالبتك بالسماح بالدخول إلى الكاميرا من هذا الموقع<br>من أجل التقاط الصور من الكاميرا يجب عليك الموافقة على هذا الطلب"},notFound:{title:"لم يتم اكتشاف أي كاميرا",text:"يبدو أنه ليس لديك كاميرا متصلة بهذا الجهاز"}},preview:{unknownName:"غير معروف",change:"إلغاء",back:"الرجوع",done:"إضافة",unknown:{title:"جار الرفع ... يرجى الانتظار للحصول على معاينة",done:"تخطي المعاينة والقبول"},regular:{title:"إضافة هذا الملف؟",line1:"أنت على وشك إضافة الملف أعلاه",line2:"يرجى التأكيد"},image:{title:"إضافة هذة الصورة",change:"إلغاء"},crop:{title:"قص وإضافة هذه الصورة",done:"موافق",free:"حر"},video:{title:"إضافة هذا الفيديو",change:"إلغاء"},error:{default:{title:"عفوا آسف",text:"حدث خطأ أثناء الرفع",back:"حاول مرة اخرى"},image:{title:"يتم قبول ملفات الصور فقط",text:"الرجاء إعادة المحاولة باستخدام ملف آخر",back:"اختر صورة"},size:{title:"الملف الذي حددتة يتجاوز الحد المسموح بة",text:"الرجاء إعادة المحاولة باستخدام ملف آخر"},loadImage:{title:"خطأ",text:"لا يمكن تحميل الصورة"}},multiple:{title:"لقد اخترت %files%",question:"إضافة %files%?",tooManyFiles:"لقد اخترت عددا كبيرا جدا من الملفات %max% هو الحد الأقصى",tooFewFiles:"لقد اخترت %files%. على الأقل %min% مطلوب",clear:"حذف الكل",done:"إضافة",file:{preview:"معاينة %file%",remove:"حذف %file%"}}}},footer:{text:"مدعوم بواسطة",link:"ابلود كير"}}},pluralize:function(e){var t;return 0===e?"zero":1===e?"one":2===e?"two":(t=e%100)>=3&&t<=10?"few":t>=11&&t<=99?"many":"other"}},az:{translations:{uploading:"Yüklənilir... Lütfən, gözləyin.",loadingInfo:"İnfo yüklənilir...",errors:{default:"Xəta",baddata:"Yanlış dəyər",size:"Fayl çox böyükdür",upload:"Yüklənilə bilmədi",user:"Yükləmə ləğv edildi",info:"İnfo yüklənə bilmədi",image:"Yalnız təsvirlərə icazə verilir",createGroup:"Fayl qrupu yaradıla bilmir",deleted:"Fayl silindi"},draghere:"Faylı bura atın",file:{one:"%1 fayl",other:"%1 fayl"},buttons:{cancel:"Ləğv edin",remove:"Silin",choose:{files:{one:"Fayl seçin",other:"Fayllar seçin"},images:{one:"Təsvir seçin",other:"Təsvirlər seçin"}}},dialog:{done:"Hazırdır",showFiles:"Faylları göstərin",tabs:{names:{"empty-pubkey":"Xoş gəlmisiniz",preview:"Önbaxış",file:"Lokal Fayllar",url:"İxtiyari linklər",camera:"Kamera",gdrive:"Google Disk"},file:{drag:"Faylı bura atın",nodrop:"Kompüterinizdən faylları yükləyin",cloudsTip:"Bulud yaddaşlar <br>və sosial xidmətlər",or:"or",button:"Lokal fayl seçin",also:"Həmçinin, buradan seçə bilərsiniz"},url:{title:"Vebdən fayllar",line1:"Vebdən istənilən faylı götürün.",line2:"Sadəcə, link verin.",input:"Linkinizi bura yerləşdirin...",button:"Yükləyin"},camera:{capture:"Şəkil çəkin",mirror:"Güzgü",retry:"Yenidən icazə sorğusu göndərin.",pleaseAllow:{title:"Lütfən, kameranıza giriş hüququ verin",text:"Bu saytdan kameranıza daxil olmaq icazəsi verildi. Kameranız ilə şəkil çəkmək üçün bu sorğunu təsdiq etməlisiniz."},notFound:{title:"Kamera aşkar edilmədi",text:"Görünür, bu cihaza kamera qoşulmayıb."}},preview:{unknownName:"naməlum",change:"Ləğv edin",back:"Geri",done:"Əlavə edin",unknown:{title:"Yüklənilir... Lütfən, önbaxış üçün gözləyin.",done:"Önbaxışı ötürün və qəbul edin"},regular:{title:"Bu fayl əlavə edilsin?",line1:"Yuxarıdakı faylı əlavə etmək üzrəsiniz.",line2:"Lütfən, təsdiq edin."},image:{title:"Bu təsvir əlavə edilsin?",change:"Ləğv edin"},crop:{title:"Bu təsviri kəsin və əlavə edin",done:"Hazırdır",free:"pulsuz"},error:{default:{title:"Ups!",text:"Yükləmə zamanı nəsə xəta baş verdi.",back:"Lütfən, y enidən cəhd edin."},image:{title:"Yaınız təsvir faylları qəbul olunur.",text:"Lütfən, başqa fayl ilə cəhd edin.",back:"Təsvir seçin"},size:{title:"Seçdiyiniz fayl limiti keçir.",text:"Lütfən, başqa fayl ilə cəhd edin."},loadImage:{title:"Xəta",text:"Təsvir yüklənilə bilmir"}},multiple:{title:"%files% fayl seçdiniz.",question:"Bütün bu faylları əlavə etmək istəyirsiniz?",tooManyFiles:"Həddindən çox fayl seçdiniz. %max% maksimumdur.",tooFewFiles:"%files% fayl seçdiniz. Ən azı %min% tələb olunur.",clear:"Hamısını silin",done:"Hazırdır"}}}}},pluralize:function(e){return"other"}},ca:{translations:{uploading:"Carregant... Si us plau esperi.",loadingInfo:"Carregant informació...",errors:{default:"Error",baddata:"Valor incorrecte",size:"Massa gran",upload:"No s'ha pogut carregar",user:"Carrega cancel·lada",info:"No s'ha pogut carregar la informació",image:"Només es permeten imatges",createGroup:"No es pot crear el grup d'arxius",deleted:"Fitxer eliminat"},draghere:"Arrossega els fitxers fins aquí",file:{one:"%1 fitxer",other:"%1 fitxers"},buttons:{cancel:"Cancel·lar",remove:"Eliminar",choose:{files:{one:"Escull un fitxer",other:"Escull fitxers"},images:{one:"Escull una imatge",other:"Escull imatges"}}},dialog:{done:"Fet",showFiles:"Mostra fitxers",tabs:{names:{"empty-pubkey":"Benvingut",preview:"Avanci",file:"Ordinador",url:"Enllaços arbitraris",camera:"Càmera"},file:{drag:"Arrossega un fitxer aquí",nodrop:"Carrega fitxers des del teu ordinador",cloudsTip:"Emmagatzematge al núvol<br>i xarxes socials",or:"o",button:"Escull un fitxer des del teu ordinador",also:"També pots seleccionar-lo de"},url:{title:"Fitxers de la web",line1:"Selecciona qualsevol fitxer de la web.",line2:"Només proporcioni el link.",input:"Copiï el link aquí...",button:"Pujar"},camera:{capture:"Realitza una foto",mirror:"Mirall",retry:"Demanar permisos una altra vegada",pleaseAllow:{title:"Si us plau, permet accés a la teva càmera",text:"Aquest lloc t'ha demanat de permetre accés a la càmera. Per tal de realitzar imatges amb la teva càmera has d'acceptar aquesta petició."},notFound:{title:"No s'ha detectat cap càmera",text:"Sembla que no tens cap càmera connectada a aquest dispositiu."}},preview:{unknownName:"desconegut",change:"Cancel·lar",back:"Endarrere",done:"Pujar",unknown:{title:"Carregant. Si us plau esperi per la visualització prèvia.",done:"Saltar visualització prèvia i acceptar"},regular:{title:"Vols pujar aquest fitxer?",line1:"Estàs a punt de pujar el fitxer superior.",line2:"Confirmi, si us plau."},image:{title:"Vols pujar aquesta imatge?",change:"Cancel·lar"},crop:{title:"Tallar i pujar aquesta imatge",done:"Fet",free:"lliure"},error:{default:{title:"La pujada ha fallat!",text:"S'ha produït un error durant la pujada.",back:"Si us plau, provi-ho de nou."},image:{title:"Només s'accepten fitxers d'imatges.",text:"Si us plau, provi-ho de nou amb un altre fitxer.",back:"Escull imatge"},size:{title:"La mida del fitxer que has seleccionat sobrepassa el límit.",text:"Si us plau, provi-ho de nou amb un altre fitxer."},loadImage:{title:"Error",text:"No s'ha pogut carregar la imatge"}},multiple:{title:"N'has escollit %files%",question:"Vols afegir tots aquests fitxers?",tooManyFiles:"Has escollit massa fitxers. %max% és el màxim.",tooFewFiles:"Has escollit %files%. Com a mínim en calen %min%.",clear:"Eliminar-los tots",done:"Fet"}}}}},pluralize:function(e){return 1===e?"one":"other"}},cs:{translations:{uploading:"Nahrávám... Malý moment.",loadingInfo:"Nahrávám informace...",errors:{default:"Chyba",baddata:"Neplatná hodnota",size:"Soubor je příliš velký",upload:"Nelze nahrát",user:"Nahrávání zrušeno",info:"Nelze nahrát informace",image:"Lze nahrát pouze obrázky",createGroup:"Nelze vytvořit adresář",deleted:"Soubor byl smazán"},draghere:"Přetáhněte soubor sem",file:{one:"%1 soubor",few:"%1 soubory",many:"%1 souborů"},buttons:{cancel:"Zrušit",remove:"Odstranit",choose:{files:{one:"Vyberte soubor",other:"Vyberte soubory"},images:{one:"Vyberte obrázek",other:"Vyberte obrázky"}}},dialog:{done:"Hotovo",showFiles:"Zobrazit soubory",tabs:{names:{"empty-pubkey":"Vítejte",preview:"Náhled",file:"Soubor z počítače",url:"Soubor z internetu",camera:"Webkamera",facebook:"Facebook",dropbox:"Dropbox",gdrive:"Google Drive",instagram:"Instagram",vk:"VK",evernote:"Evernote",box:"Box",onedrive:"OneDrive",flickr:"Flickr",huddle:"Huddle"},file:{drag:"Přetáhněte soubor sem",nodrop:"Nahrajte soubory z vašeho počítače",cloudsTip:"Cloudové úložiště<br>a sociální sítě",or:"nebo",button:"Vyberte soubor z počítače",also:"Můžete také nahrát soubor z"},url:{title:"Soubory z internetu",line1:"Nahrajte jakýkoliv soubor z internetu.",line2:"Stačí vložit odkaz.",input:"Odkaz vložte zde...",button:"Nahrát"},camera:{capture:"Pořídit fotografii",mirror:"Zrcadlo",retry:"Znovu požádat o povolení",pleaseAllow:{title:"Prosím povolte přístup k webkameře",text:"Byl(a) jste požádán(a) o přístup k webkameře. Abyste mohl(a) pořídit fotografii, musíte přístup povolit."},notFound:{title:"Nebyla nalezena webkamera",text:"Zdá se, že k tomuto zařízení není připojena žádná webkamera."}},preview:{unknownName:"neznámý",change:"Zrušit",back:"Zpět",done:"Přidat",unknown:{title:"Nahrávám... Prosím vyčkejte na náhled.",done:"Přeskočit náhled a odeslat"},regular:{title:"Přidat tento soubor?",line1:"Tímto přidáte výše vybraný soubor.",line2:"Prosím potvrďte."},image:{title:"Přidat tento obrázek?",change:"Zrušit"},crop:{title:"Oříznout a přidat tento obrázek",done:"Hotovo",free:"zdarma"},error:{default:{title:"Jejda!",text:"Něco se v průběhu nahrávání nepodařilo.",back:"Zkuste to prosím znovu."},image:{title:"Lze nahrávat pouze obrázky.",text:"Zkuste to prosím s jiným souborem.",back:"Vyberte obrázek"},size:{title:"Soubor přesahuje povolenou velikost.",text:"Prosím zkuste to s jiným souborem."},loadImage:{title:"Chyba",text:"Nelze nahrát obrázek"}},multiple:{title:"Bylo vybráno %files% souborů",question:"Chcete přidat všechny tyto soubory?",tooManyFiles:"Bylo vybráno moc souborů. Maximum je %max%",tooFewFiles:"Bylo vybráno %files% souborů. Musíte vybrat minimálně %min%",clear:"Odstranit vše",done:"Hotovo"}}}}},pluralize:function(e){return 1===e?"one":e>=2&&e<=4?"few":"many"}},da:{translations:{uploading:"Uploader... Vent venligst.",loadingInfo:"Henter information...",errors:{default:"Fejl",baddata:"Forkert værdi",size:"Filen er for stor",upload:"Kan ikke uploade / sende fil",user:"Upload fortrudt",info:"Kan ikke hente information",image:"Kun billeder er tilladt",createGroup:"Kan ikke oprette fil gruppe",deleted:"Filen blev slettet"},draghere:"Drop en fil her",file:{one:"%1 fil",other:"%1 filer"},buttons:{cancel:"Annuller",remove:"Fjern",choose:{files:{one:"Vælg en fil",other:"Vælg filer"},images:{one:"Vælg et billede",other:"Vælg billeder"}}},dialog:{done:"Færdig",showFiles:"Vis filer",tabs:{names:{preview:"Vis",file:"Computer",gdrive:"Google Drev",url:"Direkte link"},file:{drag:"Drop en fil her",nodrop:"Hent filer fra din computer",or:"eller",button:"Hent fil fra din computer",also:"Du kan også hente fra"},url:{title:"Filer fra en Web adresse",line1:"Vælg en fil fra en web adresse.",line2:"Skriv bare linket til filen.",input:"Indsæt link her...",button:"Upload / Send"},preview:{unknownName:"ukendt",change:"Annuller",back:"Tilbage",done:"Fortsæt",unknown:{title:"Uploader / sender... Vent for at se mere.",done:"Fortsæt uden at vente på resultat"},regular:{title:"Tilføje fil?",line1:"Du er ved at tilføje filen ovenfor.",line2:"Venligst accepter."},image:{title:"Tilføj billede?",change:"Annuller"},crop:{title:"Beskær og tilføj dette billede",done:"Udfør"},error:{default:{title:"Hov!",text:"Noget gik galt under upload.",back:"Venligst prøv igen"},image:{title:"Du kan kun vælge billeder.",text:"Prøv igen med en billedfil.",back:"Vælg billede"},size:{title:"Den fil du valgte, er desværre større end tilladt.",text:"Venligst prøv med en mindre fil."},loadImage:{title:"Fejl",text:"Kan ikke åbne billede"}},multiple:{title:"Du har valgt %files% filer",question:"Vil du tilføje alle disse filer?",tooManyFiles:"Du har valgt for mange filer. %max% er maximum.",tooFewFiles:"Du har valgt %files% filer. Men du skal vælge mindst %min%.",clear:"Fjern alle",done:"Fortsæt"}}}}},pluralize:function(e){return 1===e?"one":"other"}},de:{translations:{uploading:"Upload läuft… Bitte warten…",loadingInfo:"Informationen werden geladen…",errors:{default:"Fehler",baddata:"Falscher Wert",size:"Datei zu groß",upload:"Kann nicht hochgeladen werden",user:"Hochladen abgebrochen",info:"Informationen können nicht geladen werden",image:"Nur Bilder sind erlaubt",createGroup:"Datei-Gruppe kann nicht erstellt werden",deleted:"Datei wurde gelöscht"},draghere:"Ziehen Sie eine Datei hierhin",file:{one:"%1 Datei",other:"%1 Dateien"},buttons:{cancel:"Abbrechen",remove:"Löschen",choose:{files:{one:"Datei auswählen",other:"Dateien auswählen"},images:{one:"Bild auswählen",other:"Bilder auswählen"}}},dialog:{close:"Schließen",openMenu:"Menü öffnen",done:"Fertig",showFiles:"Dateien anzeigen",tabs:{names:{"empty-pubkey":"Willkommen",preview:"Vorschau",file:"Lokale Dateien",url:"Web-Links",camera:"Kamera"},file:{drag:"Ziehen Sie eine Datei hierhin",nodrop:"Laden Sie Dateien von Ihrem PC hoch",cloudsTip:"Cloud-Speicher<br>und soziale Dienste",or:"oder",button:"Wählen Sie eine Datei",also:"Sie können sie auch Dateien wählen aus"},url:{title:"Eine Datei aus dem Web hochladen",line1:"Sie können eine Datei aus dem Internet hochladen.",line2:"Geben Sie hier einfach den Link ein.",input:"Bitte geben Sie hier den Link ein…",button:"Hochladen"},camera:{title:"Foto mit Webcam aufnehmen",capture:"Machen Sie ein Foto",mirror:"Andere Kamera",retry:"Berechtigungen erneut anfordern",pleaseAllow:{title:"Bitte erlauben Sie den Zugriff auf Ihre Kamera",text:"Sie wurden gebeten, dieser Website den Zugriff auf Ihre Kamera zu erlauben. Um mit Ihrer Kamera Fotos machen zu können, müssen Sie diese Erlaubnis erteilen."},notFound:{title:"Keine Kamera gefunden",text:"Es sieht so aus, als hätten Sie keine Kamera an dieses Gerät angeschlossen."}},preview:{unknownName:"nicht bekannt",change:"Abbrechen",back:"Zurück",done:"Hinzufügen",unknown:{title:"Upload läuft… Bitte warten Sie auf die Vorschau.",done:"Vorschau überspringen und Datei annehmen"},regular:{title:"Diese Datei hinzufügen?",line1:"Diese Datei wird nun hinzugefügt.",line2:"Bitte bestätigen Sie."},image:{title:"Nur Bilder sind akzeptiert.",text:"Bitte veruschen Sie es erneut mit einer anderen Datei.",back:"Bild wählen"},error:{default:{title:"Oops!",text:"Etwas ist während dem Hochladen schief gelaufen.",back:"Bitte versuchen Sie es erneut"},image:{title:"Nur Bilder sind akzeptiert.",text:"Bitte veruschen Sie es erneut mit einer anderen Datei.",back:"Bild wählen"},size:{title:"Die gewählte Datei ist zu groß.",text:"Bitte versuchen Sie es erneut mit einer anderen Datei."},loadImage:{title:"Fehler",text:"Das Bild kann nicht geladen werden"}},multiple:{title:"Sie haben %files% Dateien gewählt",question:"Möchten Sie all diese Dateien hinzufügen?",tooManyFiles:"Sie haben zu viele Dateien gewählt. %max% ist das Maximum.",tooFewFiles:"Sie haben %files% Dateien gewählt. Es sind mindestens %min% nötig.",clear:"Alle löschen",done:"Fertig",file:{preview:"Vorschau: %file%",remove:"Datei löschen: %file%"}}}}}},pluralize:function(e){return 1===e?"one":"other"}},el:{translations:{loadingInfo:"Φόρτωση πληροφοριών...",errors:{default:"Σφάλμα",baddata:"Λανθασμένη αξία",size:"Πολύ μεγάλο αρχείο",upload:"Δεν μπορεί να γίνει φόρτωση",user:"Η φόρτωση ακυρώθηκε",info:"Δεν μπορούν να φορτωθούν πληροφορίες",image:"Μόνο εικόνες επιτρέπονται",createGroup:"Δεν μπορεί να δημιουργηθεί ομάδα αρχείων",deleted:"Το αρχείο διαγράφηκε"},uploading:"Φόρτωση... Παρακαλούμε περιμένετε.",draghere:"Αποθέστε ένα αρχείο εδώ",file:{one:"%1 αρχείο",other:"%1 αρχεία"},buttons:{cancel:"Ακύρωση",remove:"Κατάργηση",choose:{files:{one:"Επιλέξτε ένα αρχείο",other:"Επιλέξτε αρχεία"},images:{one:"Επιλέξτε μία εικόνα",other:"Επιλέξτε εικόνες"}}},dialog:{close:"Κλείσιμο",openMenu:"Άνοιγμα μενού",done:"Εντάξει",showFiles:"Προβολή αρχείων",tabs:{names:{"empty-pubkey":"Καλώς ήρθατε",preview:"Προεπισκόπηση",file:"Τοπικά αρχεία",url:"Απευθείας σύνδεσμος",camera:"Κάμερα",facebook:"Facebook",dropbox:"Dropbox",gdrive:"Google Drive",instagram:"Instagram",gphotos:"Google Photos",vk:"VK",evernote:"Evernote",box:"Box",onedrive:"OneDrive",flickr:"Flickr",huddle:"Huddle"},file:{drag:"σύρετε & αποθέστε<br>οποιαδήποτε αρχεία",nodrop:"Φορτώστε αρχεία από τον&nbsp;υπολογιστή σας",cloudsTip:"Αποθήκευση νέφους<br>και κοινωνικά δίκτυα",or:"ή",button:"Επιλέξτε ένα τοπικό αρχείο",also:"ή επιλέξτε από"},url:{title:"Αρχεία από τον Ιστό",line1:"Πάρτε οποιοδήποτε αρχείο από το διαδίκτυο.",line2:"Γράψτε απλώς τον σύνδεσμο.",input:"Επικολλήστε τον σύνδεσμό σας εδώ...",button:"Φόρτωση"},camera:{title:"Αρχείο από κάμερα web",capture:"Τραβήξτε μια φωτογραφία",mirror:"Καθρέφτης",startRecord:"Εγγραφή βίντεο",cancelRecord:"Ακύρωση",stopRecord:"Διακοπή",retry:"Νέο αίτημα για άδεια",pleaseAllow:{text:"Έχετε δεχτεί υπόδειξη να επιτρέψετε την πρόσβαση στην κάμερα από αυτόν τον ιστότοπο.<br>Για να τραβήξετε φωτογραφίες με την κάμερά σας πρέπει να εγκρίνετε αυτό το αίτημα.",title:"Παρακαλούμε επιτρέψτε την πρόσβαση στην κάμερά σας"},notFound:{title:"Δεν εντοπίστηκε κάμερα",text:"Φαίνεται ότι δεν έχετε κάμερα συνδεδεμένη με αυτή τη συσκευή."}},preview:{unknownName:"άγνωστο",change:"Ακύρωση",back:"Πίσω",done:"Προσθήκη",unknown:{title:"Φόρτωση... Παρακαλούμε περιμένετε για προεπισκόπηση.",done:"Παράλειψη επισκόπησης και αποδοχή"},regular:{title:"Να προστεθεί αυτό το αρχείο;",line1:"Πρόκειται να προσθέσετε το παραπάνω αρχείο.",line2:"Παρακαλούμε επιβεβαιώστε."},image:{title:"Να προστεθεί αυτή η εικόνα;",change:"Ακύρωση"},crop:{title:"Περικοπή και προσθήκη αυτής της εικόνας",done:"Εντάξει",free:"δωρεάν"},video:{title:"Να προστεθεί αυτό το βίντεο;",change:"Ακύρωση"},error:{default:{title:"Ουπς!",back:"Παρακαλούμε προσπαθήστε ξανά",text:"Κάτι πήγε στραβά κατά τη φόρτωση."},image:{title:"Μόνο αρχεία εικόνων γίνονται δεκτά.",text:"Δοκιμάστε ξανά με άλλο αρχείο.",back:"Επιλέξτε εικόνα"},size:{title:"Το αρχείο που επιλέξατε υπερβαίνει το όριο.",text:"Δοκιμάστε ξανά με άλλο αρχείο."},loadImage:{title:"Σφάλμα",text:"Δεν μπορεί να φορτωθεί η εικόνα"}},multiple:{title:"Έχετε επιλέξει %files%",question:"Προσθήκη %files%;",tooManyFiles:"Έχετε επιλέξει πάρα πολλά αρχεία. Το μέγιστο είναι %max%.",tooFewFiles:"Έχετε επιλέξει %files%. Απαιτούνται τουλάχιστον %min%.",clear:"Κατάργηση όλων",file:{preview:"Προεπισκόπηση %file%",remove:"Αφαίρεση %file%"},done:"Προσθήκη"}}},footer:{text:"παρέχεται από",link:"uploadcare"}}},pluralize:function(e){return 1===e?"one":"other"}},en:{pluralize:function(e){return 1===e?"one":"other"},translations:{uploading:"Uploading... Please wait.",loadingInfo:"Loading info...",errors:{default:"Error",baddata:"Incorrect value",size:"File too big",upload:"Can’t upload",user:"Upload canceled",info:"Can’t load info",image:"Only images allowed",createGroup:"Can’t create file group",deleted:"File was deleted"},draghere:"Drop a file here",file:{one:"%1 file",other:"%1 files"},buttons:{cancel:"Cancel",remove:"Remove",choose:{files:{one:"Choose a file",other:"Choose files"},images:{one:"Choose an image",other:"Choose images"}}},dialog:{close:"Close",openMenu:"Open menu",done:"Done",showFiles:"Show files",tabs:{names:{"empty-pubkey":"Welcome",preview:"Preview",file:"Local Files",url:"Direct Link",camera:"Camera",facebook:"Facebook",dropbox:"Dropbox",gdrive:"Google Drive",gphotos:"Google Photos",instagram:"Instagram",vk:"VK",evernote:"Evernote",box:"Box",onedrive:"OneDrive",flickr:"Flickr",huddle:"Huddle",nft:"NFT"},file:{drag:"drag & drop<br>any files",nodrop:"Upload files from your&nbsp;computer",cloudsTip:"Cloud storages<br>and social networks",or:"or",button:"Choose a local file",also:"or choose from"},url:{title:"Files from the Web",line1:"Grab any file off the web.",line2:"Just provide the link.",input:"Paste your link here...",button:"Upload"},camera:{title:"File from web camera",capture:"Take a photo",mirror:"Mirror",startRecord:"Record a video",stopRecord:"Stop",cancelRecord:"Cancel",retry:"Request permissions again",pleaseAllow:{title:"Please allow access to your camera",text:"You have been prompted to allow camera access from this site.<br>In order to take pictures with your camera you must approve this request."},notFound:{title:"No camera detected",text:"Looks like you have no camera connected to this device."}},preview:{unknownName:"unknown",change:"Cancel",back:"Back",done:"Add",unknown:{title:"Uploading... Please wait for a preview.",done:"Skip preview and accept"},regular:{title:"Add this file?",line1:"You are about to add the file above.",line2:"Please confirm."},image:{title:"Add this image?",change:"Cancel"},crop:{title:"Crop and add this image",done:"Done",free:"free"},video:{title:"Add this video?",change:"Cancel"},error:{default:{title:"Oops!",text:"Something went wrong during the upload.",back:"Please try again"},image:{title:"Only image files are accepted.",text:"Please try again with another file.",back:"Choose image"},size:{title:"The file you selected exceeds the limit.",text:"Please try again with another file."},loadImage:{title:"Error",text:"Can’t load image"}},multiple:{title:"You’ve chosen %files%.",question:"Add %files%?",tooManyFiles:"You’ve chosen too many files. %max% is maximum.",tooFewFiles:"You’ve chosen %files%. At least %min% required.",clear:"Remove all",done:"Add",file:{preview:"Preview %file%",remove:"Remove %file%"}}}},footer:{text:"powered by",link:"uploadcare"}},serverErrors:{AccountBlockedError:"Administrator's account has been blocked. Please, contact support.",AccountUnpaidError:"Administrator's account has been blocked. Please, contact support.",AccountLimitsExceededError:"Administrator's account has reached its limits. Please, contact support.",FileSizeLimitExceededError:"File is too large.",MultipartFileSizeLimitExceededError:"File is too large.",FileTypeForbiddenOnCurrentPlanError:"Uploading of these files types is not allowed.",DownloadFileSizeLimitExceededError:"Downloaded file is too big."}}},es:{translations:{uploading:"Subiendo... Por favor espere.",loadingInfo:"Cargando información...",errors:{default:"Error",baddata:"Valor incorrecto",size:"Archivo demasiado grande",upload:"No se puede subir",user:"Subida cancelada",info:"No se puede cargar la información",image:"Solo se permiten imágenes",createGroup:"No se puede crear el grupo de archivos",deleted:"El archivo fue eliminado"},draghere:"Arrastra un archivo aquí",file:{one:"%1 archivo",other:"%1 archivos"},buttons:{cancel:"Cancelar",remove:"Eliminar",choose:{files:{one:"Escoge un archivo",other:"Escoge archivos"},images:{one:"Escoge una imagen",other:"Escoge imágenes"}}},dialog:{close:"Cerrar",openMenu:"Menú abierto",done:"Hecho",showFiles:"Mostrar archivos",tabs:{names:{"empty-pubkey":"Bienvenido",preview:"Previsualización",file:"Archivos locales",url:"Enlaces arbitrarios",camera:"Cámara"},file:{drag:"Arrastra un archivo aquí",nodrop:"Sube fotos desde tu dispositivo",cloudsTip:"Almacenamiento en la nube<br>y redes sociales",or:"o",button:"Elige un archivo de tu dispositivo",also:"Tambien puedes seleccionarlo de"},url:{title:"Archivos de la Web",line1:"Coge cualquier archivo de la web.",line2:"Solo danos el link.",input:"Pega tu link aquí...",button:"Subir"},camera:{title:"Archivo desde la cámara web",capture:"Hacer una foto",mirror:"Espejo",startRecord:"Grabar un video",stopRecord:"Detener",cancelRecord:"Cancelar",retry:"Solicitar permisos de nuevo",pleaseAllow:{title:"Por favor, permite el acceso a tu cámara",text:"Este sitio ha pedido permiso para acceder a la cámara. Para tomar imágenes con tu cámara debes aceptar esta petición."},notFound:{title:"No se ha detectado ninguna cámara",text:"Parece que no tienes ninguna cámara conectada a este dispositivo."}},preview:{unknownName:"desconocido",change:"Cancelar",back:"Atrás",done:"Añadir",unknown:{title:"Subiendo. Por favor espera para una vista previa.",done:"Saltar vista previa y aceptar"},regular:{title:"¿Quieres subir este archivo?",line1:"Estás a punto de subir el archivo de arriba.",line2:"Confírmalo por favor."},image:{title:"¿Quieres subir esta imagen?",change:"Cancelar"},crop:{title:"Cortar y añadir esta imagen",done:"Listo",free:"libre"},video:{title:"¿Añadir este video?",change:"Cancelar"},error:{default:{title:"Ups!",text:"Algo salió mal durante la subida.",back:"Por favor, inténtalo de nuevo."},image:{title:"Solo se aceptan archivos de imagen.",text:"Por favor, inténtalo de nuevo con otro archivo.",back:"Escoger imagen"},size:{title:"El archivo que has seleccinado excede el límite.",text:"Por favor, inténtalo de nuevo con otro archivo."},loadImage:{title:"Error",text:"No puede cargar la imagen"}},multiple:{title:"Has escogido %files%",question:"¿Quieres añadir todos estos archivos?",tooManyFiles:"Has escogido demasiados archivos. %max% es el máximo.",tooFewFiles:"Has escogido %files%. Hacen falta al menos %min%.",clear:"Eliminar todo",done:"Hecho",file:{preview:"Vista previa %file%",remove:"Quitar %file%"}}}},footer:{text:"alimentado por"}}},pluralize:function(e){return 1===e?"one":"other"}},et:{translations:{uploading:"Üleslaadimine… Palun oota.",loadingInfo:"Info laadimine...",errors:{default:"Viga",baddata:"Incorrect value",size:"Fail on liiga suur",upload:"Ei saa üles laadida",user:"Üleslaadimine tühistatud",info:"Ei saa infot laadida",image:"Ainult pildid lubatud",createGroup:"Ei saa luua failigruppi",deleted:"Fail on kustutatud"},draghere:"Tiri fail siia",file:{one:"%1 fail",other:"%1 failid"},buttons:{cancel:"Tühista",remove:"Kustuta",choose:{files:{one:"Vali fail",other:"Vali failid"},images:{one:"Vali pilt",other:"Vali pildid"}}},dialog:{done:"Valmis",showFiles:"Näita faile",tabs:{names:{"empty-pubkey":"Tere",preview:"Eelvaade",file:"Failid Kõvakettalt",url:"Veebilink",camera:"Kaamera"},file:{drag:"Tiri failid siia",nodrop:"Lae failid arvutist",cloudsTip:"Pilv<br>ja sotsiaalmeedia",or:"või",button:"Vali fail kõvakettalt",also:"Saad samuti valida"},url:{title:"Failid veebist",line1:"Ükskõik mis fail otse veebist.",line2:"Lihtsalt sisesta URL.",input:"Kleebi link siia...",button:"Lae üles"},camera:{capture:"Take a photo",mirror:"Mirror",startRecord:"Record a video",stopRecord:"Stop",cancelRecord:"Cancel",retry:"Request permissions again",pleaseAllow:{title:"Please allow access to your camera",text:"You have been prompted to allow camera access from this site. In order to take pictures with your camera you must approve this request."},notFound:{title:"No camera detected",text:"Looks like you have no camera connected to this device."}},preview:{unknownName:"teadmata",change:"Tühista",back:"Tagasi",done:"Lisa",unknown:{title:"Üleslaadimine... Palun oota eelvaadet.",done:"Jäta eelvaade vahele ja nõustu"},regular:{title:"Lisa see fail?",line1:"Oled lisamas ülaltoodud faili.",line2:"Palun kinnita."},image:{title:"Lisa pilt?",change:"Tühista"},crop:{title:"Lõika ja lisa pilt",done:"Valmis",free:"vaba"},video:{title:"Lisa video?",change:"Tühista"},error:{default:{title:"Oihh!",text:"Midagi läks üleslaadimisel valesti.",back:"Palun proovi uuesti"},image:{title:"Ainult pildifailid on lubatud.",text:"Palun proovi uuesti teise failiga.",back:"Vali pilt"},size:{title:"Valitud fail ületab maksimaalse suuruse.",text:"Palun proovi uuesti teise failiga."},loadImage:{title:"Viga",text:"Ei saa pilti laadida"}},multiple:{title:"Oled valinud %files%",question:"Kas sa soovid lisada kõik failid?",tooManyFiles:"Oled valinud liiga suure hulga faile. %max% on maksimaalne.",tooFewFiles:"Oled valinud %files%. Vähemalt %min% nõutud.",clear:"Eemalda kõik",done:"Valmis"}}}}},pluralize:function(e){return 1===e?"one":"other"}},fr:{translations:{uploading:"Envoi en cours... Merci de patienter.",loadingInfo:"Chargement des informations...",errors:{default:"Erreur",baddata:"Valeur incorrecte",size:"Fichier trop volumineux",upload:"Envoi impossible",user:"Envoi annulé",info:"Impossible de charger les informations",image:"Seules les images sont autorisées",createGroup:"Création d'1 groupe impossible",deleted:"Le fichier a été supprimé"},draghere:"Glissez-déposez un fichier ici",file:{one:"%1 fichier",other:"%1 fichiers"},buttons:{cancel:"Annuler",remove:"Supprimer",choose:{files:{one:"Sélectionner un fichier",other:"Sélectionner des fichiers"},images:{one:"Sélectionner une image",other:"Sélectionner des images"}}},dialog:{close:"Fermer",openMenu:"Ouvrir le menu",done:"Terminer",showFiles:"Voir les fichiers",tabs:{names:{"empty-pubkey":"Bienvenue",preview:"Avant-première",file:"Fichier en local",url:"Une adresse web",camera:"Caméra",facebook:"Facebook",dropbox:"Dropbox",gdrive:"Google Drive",gphotos:"Google Photos",instagram:"Instagram",vk:"VK",evernote:"Evernote",box:"Box",onedrive:"OneDrive",flickr:"Flickr",huddle:"Huddle"},file:{drag:"Glissez-déposez un fichier ici",nodrop:"Envoyez des fichiers depuis votre ordinateur",cloudsTip:"Stockage sur le cloud<br>et réseaux sociaux",or:"ou",button:"Choisir un fichier local",also:"Vous pouvez également le sélectionner depuis"},url:{title:"Fichiers depuis le Web",line1:"Prenez n'importe quel fichier depuis un site web.",line2:"Saisissez simplement son adresse.",input:"Collez le lien ici...",button:"Envoi"},camera:{title:"Fichier depuis la caméra",capture:"Prendre une photo",mirror:"Miroir",startRecord:"Enregistrer une vidéo",stopRecord:"Arrêter",cancelRecord:"Annuler",retry:"Envoyer une nouvelle demande de permission",pleaseAllow:{title:"Autorisez l'accès à votre appareil photo",text:"Vous avez été invité à autoriser l'accès à votre appareil photo. Pour prendre des photos avec votre caméra vous devez approuver cette demande."},notFound:{title:"Aucun appareil photo détecté",text:"Il semblerait que vous n'ayez pas d'appareil photo connecté à cet appareil."}},preview:{unknownName:"inconnu",change:"Annuler",back:"Retour",done:"Ajouter",unknown:{title:"Envoi en cours... Merci de patienter pour prévisualiser.",done:"Passer la prévisualisation et accepter"},regular:{title:"Ajouter ce fichier ?",line1:"Vous êtes sur le point d'ajouter le fichier ci-dessus.",line2:"Merci de confirmer."},image:{title:"Ajouter cette image ?",change:"Annuler"},crop:{title:"Recadrer et ajouter cette image",done:"Terminer",free:"libre"},video:{title:"Ajouter cette vidéo ?",change:"Annuler"},error:{default:{title:"Oups!",text:"Quelque chose n'a pas fonctionné pendant l'envoi.",back:"Merci de bien vouloir recommencer"},image:{title:"Seules les images sont acceptées.",text:"Merci de bien vouloir recommencer avec un autre fichier.",back:"Choisir une image"},size:{title:"Le fichier sélectionné est trop volumineux.",text:"Merci de bien vouloir recommencer avec un autre fichier."},loadImage:{title:"Erreur",text:"Impossible de charger l'image"}},multiple:{title:"Vous avez choisi %files%",question:"Voulez vous ajouter tous ces fichiers ?",tooManyFiles:"Vous avez choisi trop de fichiers. %max% est le maximum.",tooFewFiles:"Vous avez choisi %fichiers%. %min% est le minimum.",clear:"Tout retirer",done:"Terminer",file:{preview:"Prévisualiser %file%",remove:"Supprimer %file%"}}}}}},pluralize:function(e){return 1===e?"one":"other"}},he:{translations:{uploading:"טוען... אנא המתן.",loadingInfo:"טוען מידע...",errors:{default:"שגיאה",baddata:"ערך שגוי",size:"קובץ גדול מידי",upload:"לא ניתן להעלות",user:"העלאה בוטלה",info:"לא ניתן לטעון מידע",image:"ניתן להעלות רק תמונות",createGroup:"לא ניתן ליצור קבוצה",deleted:"הקובץ נמחק"},draghere:"שחרר כאן קובץ",file:{one:"קובץ %1",other:"%1 קבצים"},buttons:{cancel:"ביטול",remove:"הסר",choose:{files:{one:"בחר קובץ",other:"בחר קבצים"},images:{one:"בחר תמונה",other:"בחר תמונות"}}},dialog:{done:"סיום",showFiles:"הצג קבצים",tabs:{names:{facebook:"פייסבוק",dropbox:"דרופבוקס",gdrive:"כונן גוגל",instagram:"אינסטגרם",url:"לינק מהאינטרנט"},file:{drag:"שחרר כאן קובץ",nodrop:"העלה קבצים מהמחשב",or:"או",button:"בחר קובץ מהמחשב",also:"ניתן לבחור גם מ"},url:{title:"קובץ מהאינטרנט",line1:"גרור קובץ מהאינטרנט",line2:"ספק את כתובת הקובץ",input:"הדבק את כתובת הקובץ...",button:"העלה"},preview:{unknownName:"לא ידוע",change:"ביטול",back:"חזרה",done:"הוסף",unknown:{title:"מעלה... נא המתן לתצוגה מקדימה.",done:"דלג על תצוגה מקדימה"},regular:{title:"להוסיף קובץ זה?",line1:"קובץ זה יועלה",line2:"נא אשר."},image:{title:"להוסיף תמונה זו?",change:"ביטול"},crop:{title:"חתוך והוסף תמונה זו",done:"סיום"},error:{default:{title:"אופס!",text:"משהו השתבש בזמן ההעלאה.",back:"נא נסה שוב"},image:{title:"ניתן לקבל רק קבצי תמונות.",text:"נא נסה שוב עם קובץ אחר.",back:"בחר תמונה"},size:{title:"הקובץ שבחרת חורג מהגבול.",text:"נא נסה שוב עם קובץ אחר."},loadImage:{title:"שגיאה",text:"טעינת התמונה נכשלה"}},multiple:{title:"בחרת %files%",question:"אתה מעוניין להוסיף את כל הקבצים האלו?",tooManyFiles:"בחרת יותר מידי קבצים. יש לבחור מקסימום %max% קבצים.",tooFewFiles:"בחרת %files%. יש לבחור לפחות %min%.",clear:"הסר הכל",done:"סיום"}}}}},pluralize:function(e){return 1===e?"one":"other"}},is:{pluralize:function(e){return 1===e?"one":"other"},translations:{uploading:"Hleð upp... Vinsamlegast bíðið.",loadingInfo:"Hleð upp upplýsingum...",errors:{default:"Villa",baddata:"Rangt gildi",size:"Skráin er of stór",upload:"Ekki tókst að hlaða upp skrá",user:"Hætt var við",info:"Ekki tókst að sækja upplýsingar",image:"Myndir eru einungis leyfðar",createGroup:"Ekki tókst að búa til hóp",deleted:"Skrá hefur verið eytt"},draghere:"Dragðu skrá hingað",file:{one:"%1 skrá",other:"%1 skráa"},buttons:{cancel:"Hætta við",remove:"Fjarlægja",choose:{files:{one:"Veldu skrá",other:"Veldu skrár"},images:{one:"Veldu mynd",other:"Veldu myndir"}}},dialog:{close:"Loka",openMenu:"Opna valmynd",done:"Búið",showFiles:"Sjá skrár",tabs:{names:{"empty-pubkey":"Velkomin/n/ð",preview:"Forskoðun",file:"Staðbundnar skrár",url:"Beinn hlekkur",camera:"Myndavél",facebook:"Facebook",dropbox:"Dropbox",gdrive:"Google Drive",gphotos:"Google Photos",instagram:"Instagram",vk:"VK",evernote:"Evernote",box:"Box",onedrive:"OneDrive",flickr:"Flickr",huddle:"Huddle"},file:{drag:"dragðu & slepptu<br>skrám",nodrop:"Hlaða upp þínum skrám",cloudsTip:"Skýjaþjónustur<br>og samfélagsmiðlar",or:"eða",button:"Veldu staðbundna skrá",also:"eða veldu"},url:{title:"Skrár af netinu",line1:"Sæktu hvaða skrá sem er frá netinu",line2:"Settu bara inn hlekk",input:"Límdu hlekkinn hér...",button:"Hlaða upp"},camera:{title:"Skrá frá myndavél",capture:"Taktu mynd",mirror:"Spegill",startRecord:"Taktu upp myndband",stopRecord:"Stopp",cancelRecord:"Hætta við",retry:"Biðja aftur um heimild",pleaseAllow:{title:"Vinsamlegast gefðu heimild til þess að nota myndavélina",text:"Þú hefur verið beðin/n/ð um að gefa heimild til myndavélanotkunar frá þessari síðu<br>Til þess að geta tekið myndir er nauðsynlegt að gefa heimild."},notFound:{title:"Engin myndavél fannst.",text:"Það lítur út fyrir að það sé engin myndavél tengd."}},preview:{unknownName:"óþekkt",change:"Hætta við",back:"Bakka",done:"Bæta við",unknown:{title:"Hleð upp ... vinsamlegast bíðið eftir forskoðun. ",done:"Sleppa forskoðun og samþykkja"},regular:{title:"Bæta þessari skrá við?",line1:"Þú ert að fara bæta þessari skrá við.",line2:"Vinsamlegast staðfestið."},image:{title:"Bæta þessari mynd við?",change:"Hætta við"},crop:{title:"Kroppa og bæta þessari mynd við?",done:"Búið",free:"frítt"},video:{title:"Bæta þessu myndbandi við?",change:"Hætta við"},error:{default:{title:"Úps!",text:"Eitthvað fór úrskeiðis.",back:"Vinsamlegast reyndu aftur"},image:{title:"Myndir eru einungis leyfðar.",text:"Vinsamlegast reyndu aftur.",back:"Velja mynd"},size:{title:"Skráin er of stór.",text:"Vinsamlegast reyndu aftur."},loadImage:{title:"Villa",text:"Gat ekki hlaðið upp mynd."}},multiple:{title:"Þú hefur valið %files%.",question:"Bæta við %files%?",tooManyFiles:"Þú hefur valið of margar skrár. %max% er hámarkið.",tooFewFiles:"Þú hefur valið %files%. Að minnsta kosti %min% er lágmarkið.",clear:"Fjarlægja allar skrár",done:"Bæta við",file:{preview:"Forskoða %file%",remove:"Fjarlægja %file%"}}}}}}},it:{translations:{uploading:"Caricamento in corso... Si prega di attendere.",loadingInfo:"Caricamento informazioni in corso...",errors:{default:"Errore",baddata:"Valore errato",size:"Il file è troppo grande",upload:"Impossibile fare l’upload",user:"Upload cancellato",info:"Impossibile caricare le informazioni",image:"Sono ammesse solo immagini",createGroup:"Impossibile creare gruppo di file",deleted:"Il file è stato eliminato"},draghere:"Trascina un file qui",file:{one:"file %1",other:"file %1"},buttons:{cancel:"Cancella",remove:"Rimuovi",choose:{files:{one:"Seleziona un file",other:"Seleziona file"},images:{one:"Seleziona un’immagine",other:"Seleziona immagini"}}},dialog:{done:"Fatto",showFiles:"Mostra file",tabs:{names:{"empty-pubkey":"Benvenuto",preview:"Anteprima",file:"File locali",url:"Link arbitrari",camera:"Fotocamera"},file:{drag:"Trascina un file qui",nodrop:"Carica file dal tuo computer",cloudsTip:"Salvataggi nel cloud<br>e servizi sociali",or:"o",button:"Seleziona un file locale",also:"Puoi anche scegliere da"},url:{title:"File dal web",line1:"Preleva un file dal web.",line2:"È sufficiente fornire il link.",input:"Incolla il tuo link qui...",button:"Carica"},camera:{capture:"Scatta una foto",mirror:"Specchio",retry:"Richiedi di nuovo le autorizzazioni",pleaseAllow:{title:"Consenti l’accesso alla tua fotocamera",text:"Ti è stato richiesto di consentire l’accesso alla fotocamera da questo sito. Per scattare le foto con la tua fotocamera devi accettare questa richiesta."},notFound:{title:"Nessuna fotocamera rilevata",text:"Non risulta che tu non abbia una fotocamera collegata a questo dispositivo."}},preview:{unknownName:"sconosciuto",change:"Cancella",back:"Indietro",done:"Aggiungi",unknown:{title:"Caricamento in corso... Attendi l’anteprima.",done:"Salta l’anteprima e accetta"},regular:{title:"Vuoi aggiungere questo file?",line1:"Stai per aggiungere il file sopra.",line2:"Conferma."},image:{title:"Vuoi aggiungere questa immagine?",change:"Cancella"},crop:{title:"Ritaglia e aggiungi questa immagine",done:"Fatto",free:"gratis"},error:{default:{title:"Ops!",text:"Si è verificato un problema durante l’upload.",back:"Si prega di riprovare"},image:{title:"Sono accettati solo file immagine.",text:"Riprova con un altro file.",back:"Scegli immagine"},size:{title:"Il file selezionato supera il limite.",text:"Riprova con un altro file."},loadImage:{title:"Errore",text:"Impossibile caricare l’immagine"}},multiple:{title:"Hai selezionato %files%",question:"Vuoi aggiungere tutti questi file?",tooManyFiles:"Hai selezionato troppi file. %max% è il massimo.",tooFewFiles:"Hai selezionato %files%. È richiesto almeno %min%.",clear:"Rimuovi tutto",done:"Fatto"}}}}},pluralize:function(e){return 1===e?"one":"other"}},ja:{translations:{uploading:"アップロードしています… 完了までお待ち下さい。",loadingInfo:"読み込み中…",errors:{default:"エラー",baddata:"間違った値",size:"ファイルが大きすぎます",upload:"アップロードできませんでした",user:"アップロードがキャンセルされました",info:"読み込みに失敗しました",image:"アップロードできるのは画像ファイルのみです",createGroup:"グループの作成に失敗しました",deleted:"削除されたファイルです"},draghere:"ここにファイルをドロップ",file:{other:"%1ファイル"},buttons:{cancel:"キャンセル",remove:"削除",choose:{files:{one:"ファイルを選択",other:"ファイルを選択"},images:{one:"画像を選択",other:"画像を選択"}}},dialog:{done:"完了",showFiles:"ファイルを表示",tabs:{names:{preview:"プレビュー",file:"ローカルファイル",url:"URLを直接入力"},file:{drag:"ここにファイルをドロップ",nodrop:"ファイルを選択してアップロード",cloudsTip:"クラウドストレージ<br>およびソーシャルサービス",or:"もしくは",button:"ローカルのファイルを選択",also:"次からも選択可能です:"},url:{title:"ウェブ上のファイル",line1:"ウェブ上からファイルを取得します。",line2:"URLを入力してください。",input:"ここにURLを貼り付けしてください…",button:"アップロード"},preview:{unknownName:"不明なファイル",change:"キャンセル",back:"戻る",done:"追加",unknown:{title:"アップロードしています… プレビューの表示をお待ちください。",done:"プレビューの確認をスキップして完了"},regular:{title:"このファイルを追加しますか?",line1:"こちらのファイルを追加しようとしています。",line2:"確認してください。"},image:{title:"この画像を追加しますか?",change:"キャンセル"},crop:{title:"画像の切り取りと追加",done:"完了",free:"リセット"},error:{default:{title:"失敗しました",text:"アップロード中に不明なエラーが発生しました。",back:"もう一度お試し下さい"},image:{title:"画像ファイルのみ許可されています",text:"他のファイルで再度お試し下さい。",back:"画像を選択"},size:{title:"ファイルサイズが大きすぎます。",text:"他のファイルで再度お試し下さい。"},loadImage:{title:"エラー",text:"画像のロードに失敗しました。"}},multiple:{title:"%files%つのファイルを選択中",question:"これら全てのファイルを追加しますか?",tooManyFiles:"選択ファイルが多すぎます。%max%つ以下にしてください。",tooFewFiles:"選択ファイルが少なすぎます。%files%つ選択中です。少なくとも%min%つ選択してください。",clear:"全て削除",done:"完了"}}}}},pluralize:function(e){return"other"}},ko:{translations:{uploading:"업로드중 기다려주세요",loadingInfo:"정보 로드중...",errors:{default:"오류",baddata:"잘못된 값",size:"파일용량 초과",upload:"업로드 실패",user:"업로드 취소됨",info:"정보를 불러올 수 없습니다",image:"허용된 이미지만 가능",createGroup:"파일 그룹 만들기 실패",deleted:"파일이 삭제되었습니다"},draghere:"여기에 끌어다 놓기",file:{one:"%1 파일",other:"%1 파일"},buttons:{cancel:"취소",remove:"삭제",choose:{files:{one:"파일 첨부",other:"파일 첨부"},images:{one:"이미지 첨부",other:"이미지 첨부"}}},dialog:{close:"닫기",openMenu:"메뉴 열기",done:"완료",showFiles:"파일 표시",tabs:{names:{"empty-pubkey":"반갑습니다",preview:"미리보기",file:"파일 첨부",url:"링크 연결",camera:"카메라",facebook:"페이스북",dropbox:"드롭박스",gdrive:"구글 드라이브",gphotos:"구글 포토",instagram:"인스타그램",evernote:"에버노트",box:"박스",onedrive:"스카이드라이브",flickr:"플리커"},file:{drag:"모든 파일을<br>드래그 & 드롭",nodrop:"파일 업로드",cloudsTip:"클라우드 스토리지 및 소셜",or:"또는",button:"파일 선택",also:"또는 선택하십시오"},url:{title:"웹에서 파일 링크 연결",line1:"웹에서 모든파일을 가져옵니다",line2:"링크만 연결합니다.",input:"링크 붙여 넣기...",button:"업로드"},camera:{title:"카메라 연결",capture:"사진 찍기",mirror:"거울",startRecord:"비디오 녹화",stopRecord:"정지",cancelRecord:"취소",retry:"재 시도",pleaseAllow:{title:"카메라 접근 허용",text:"카메라 접근을 허용하시겠습니까?<br>승인 요청을 해주셔야 합니다"},notFound:{title:"카메라가 없습니다",text:"이 기기에 연결된 카메라가 없습니다"}},preview:{unknownName:"알수없음",change:"취소",back:"뒤로",done:"추가",unknown:{title:"업로드중, 기다려주세요",done:"미리보기 건너뛰기"},regular:{title:"이 파일을 추가하시겠습니까?",line1:"위 파일을 추가하려고 합니다",line2:"확인 하십시오"},image:{title:"이미지를 추가하시겠습니까?",change:"취소"},crop:{title:"이미지 자르기 및 추가",done:"완료",free:"무료"},video:{title:"비디오를 추가하시겠습니까?",change:"취소"},error:{default:{title:"죄송합니다",text:"업로드에 문제가 있습니다",back:"다시 시도해 주세요"},image:{title:"이미지 파일만 허용됩니다",text:"다른 파일로 다시 시도하세요",back:"이미지 선택"},size:{title:"선택한 파일이 한도 초과하였습니다",text:"다른 파일로 다시 시도하세요"},loadImage:{title:"오류",text:"이미지를 불러올 수 없습니다"}},multiple:{title:"%files%을(를) 선택하였습니다",question:"%files%을 추가하시겠습니까?",tooManyFiles:"너무 많은 파일을 추가하셨습니다. %max%가 최대 한도입니다",tooFewFiles:"%files%을(를) 선택하였습니다 최소 %min%이상 필요합니다",clear:"모두 삭제",done:"추가",file:{preview:"%file% 미리보기",remove:"%file% 삭제"}}}},footer:{text:"powered by",link:"uploadcare"}}},pluralize:function(e){return 1===e?"one":"other"}},lv:{translations:{uploading:"Augšupielādē... Lūdzu, gaidiet.",errors:{default:"Kļūda",image:"Atļauti tikai attēli"},draghere:"Velciet failus šeit",file:{zero:"%1 failu",one:"%1 fails",other:"%1 faili"},buttons:{cancel:"Atcelt",remove:"Dzēst"},dialog:{title:"Ielādēt jebko no jebkurienes",poweredby:"Darbināts ar",support:{images:"Attēli",audio:"Audio",video:"Video",documents:"Dokumenti"},tabs:{file:{title:"Mans dators",line1:"Paņemiet jebkuru failu no jūsu datora.",line2:"Izvēlēties ar dialogu vai ievelciet iekšā.",button:"Meklēt failus"},url:{title:"Faili no tīmekļa",line1:"Paņemiet jebkuru failu no tīmekļa.",line2:"Tikai uzrādiet linku.",input:"Ielīmējiet linku šeit...",button:"Ielādēt"}}}},pluralize:function(e){return 0===e?"zero":e%10==1&&e%100!=11?"one":"other"}},nb:{translations:{uploading:"Laster opp... Vennligst vent.",loadingInfo:"Laster inn info...",errors:{default:"Feil",baddata:"Ugyldig verdi",size:"Filen er for stor",upload:"Kan ikke laste opp",user:"Opplasting avbrutt",info:"Kan ikke laste inn info",image:"Kun bilder er tillatt",createGroup:"Kan ikke opprette filgruppe",deleted:"Filen er slettet"},draghere:"Dra en fil hit",file:{one:"%1 fil",other:"%1 filer"},buttons:{cancel:"Avbryt",remove:"Fjern",choose:{files:{one:"Velg en fil",other:"Velg filer"},images:{one:"Velg et bilde",other:"Velg bilder"}}},dialog:{done:"Ferdig",showFiles:"Vis filer",tabs:{names:{preview:"Forhåndsvising",file:"Lokale filer",url:"Direktelink"},file:{drag:"Dra og slipp en fil her",nodrop:"Last opp filer fra datamaskinen",cloudsTip:"Skylagring<br>og sosiale tjenester",or:"eller",button:"Velg en lokal fil",also:"Du kan også velge det fra"},url:{title:"Filer fra internett",line1:"Velg hvilken som helst fil fra internett.",line2:"Bare gi oss linken.",input:"Lim inn linken her...",button:"Last opp"},preview:{unknownName:"ukjent",change:"Avbryt",back:"Tilbake",done:"Legg til",unknown:{title:"Laster opp... Vennligst vent på forhåndsvisning.",done:"Hopp over forhåndsvisning og godkjenn"},regular:{title:"Legge til denne filen?",line1:"Filen legges nå til.",line2:"Vennligst bekreft."},image:{title:"Legge til dette bildet?",change:"Avbryt"},crop:{title:"Kutt og legg til dette bildet",done:"Ferdig",free:"frigjør"},error:{default:{title:"Ops!",text:"Noe gikk galt under opplastingen.",back:"Vennligst prøv igjen"},image:{title:"Kun bilder er akseptert.",text:"Prøv igjen med en annen fil.",back:"Velg bilde"},size:{title:"Den valgte filen overskrider tilatt størrelse.",text:"Vennligst prøv igjen med en annen fil."},loadImage:{title:"Feil",text:"Kan ikke laste bildet"}},multiple:{title:"Du har valgt %files%",question:"Ønsker du å legge til alle filene?",tooManyFiles:"Du har valgt for mange filer. %max% er maksimum.",tooFewFiles:"Du har valgt %files%. Minimum %min% er påkrevd.",clear:"Fjern alle",done:"Ferdig"}}}}},pluralize:function(e){return 1===e?"one":"other"}},nl:{translations:{uploading:"Uploaden... Even geduld.",loadingInfo:"Laden informatie...",errors:{default:"Fout",baddata:"Ongeldige waarde",size:"Bestand is te groot",upload:"Kan niet uploaden",user:"Upload geannuleerd",info:"Kan informatie niet laden",image:"Alleen afbeeldingen toegestaan",createGroup:"Kan bestandsgroep niet maken",deleted:"Bestand is verwijderd"},draghere:"Drop hier een bestand",file:{one:"%1 bestand",other:"%1 bestanden"},buttons:{cancel:"Annuleren",remove:"Verwijderen",choose:{files:{one:"Kies een bestand",other:"Kies bestanden"},images:{one:"Kies een afbeelding",other:"Kies afbeeldingen"}}},dialog:{done:"Klaar",showFiles:"Toon bestanden",tabs:{names:{preview:"Voorvertoning",file:"Computer",url:"Directe links"},file:{drag:"Drop hier een bestand",nodrop:"Upload bestanden van je computer",or:"of",button:"Selecteer een bestand op je computer",also:"Je kan ook selecteren van"},camera:{title:"Bestand van webcamera",retry:"Opnieuw toegang aanvragen"},url:{title:"Bestanden op het web",line1:"Selecteer een bestand op het web.",line2:"Voer de link in.",input:"Plak de link hier...",button:"Upload"},preview:{unknownName:"onbekend",change:"Annuleren",back:"Terug",done:"Toevoegen",unknown:{title:"Uploaden... Wacht op de voorvertoning.",done:"Voorvertoning overslaan an accepteren"},regular:{title:"Dit bestand toevoegen?",line1:"Je staat op het punt bovenstaand bestand toe te voegen.",line2:"Bevestig"},image:{title:"Voeg deze afbeelding toe?",change:"Annuleren"},crop:{title:"Afbeelding bijknippen en toevoegen",done:"Klaar"},error:{default:{title:"Oeps!",text:"Er is een fout opgetreden tijdens het uploaden.",back:"Probeer opnieuw"},image:{title:"Alleen afbeeldingen worden geaccepteerd.",text:"Probeer opnieuw met een andere bestand.",back:"Selecteer afbeelding"},size:{title:"Het geselecteerd bestand is groter dan de limiet.",text:"Probeer opnieuw met een andere bestand."},loadImage:{title:"Fout",text:"Kan afbeelding niet laden"}},multiple:{title:"Je hebt de volgende bestanden geselecteerd %files%",question:"Wil je al deze bestanden toevoegen?",tooManyFiles:"Je hebt teveel bestanden geselecteerd. %max% is het maximum.",tooFewFiles:"Je hebt de volgende bestanden geselecteerd %files%. Minimaal %min% is verplicht.",clear:"Verwijder alle bestanden",done:"Klaar"}}}}},pluralize:function(e){return 1===e?"one":"other"}},pl:{translations:{uploading:"Przesyłanie... Proszę czekać.",loadingInfo:"Ładowanie...",errors:{default:"Błąd",baddata:"Niepoprawna wartość",size:"Plik zbyt duży",upload:"Nie udało się przesłać",user:"Przesyłanie anulowane",info:"Nie udało się załadować informacji",image:"Dozwolone są tylko obrazy",createGroup:"Nie udało się utworzyć grupy plików",deleted:"Plik został usunięty"},draghere:"Upuść plik tutaj",file:{one:"%1 plik",few:"%1 pliki",many:"%1 plików"},buttons:{cancel:"Anuluj",remove:"Usuń",choose:{files:{one:"Wybierz plik",other:"Wybierz pliki"},images:{one:"Wybierz obraz",other:"Wybierz obrazy"}}},dialog:{close:"Zamknij",openMenu:"Otwórz menu",done:"Wykonano",showFiles:"Pokaż pliki",tabs:{names:{"empty-pubkey":"Witaj",preview:"Podgląd",file:"Pliki lokalne",url:"Plik z Sieci",camera:"Aparat"},file:{drag:"Upuść plik tutaj",nodrop:"Prześlij pliki z Twojego komputera",cloudsTip:"Dane w chmurze<br>i sieci społecznościowe",or:"lub",button:"Wybierz plik lokalny",also:"Możesz również wybrać z"},url:{title:"Pliki z Sieci",line1:"Złap jakikolwiej plik z sieci.",line2:"Podaj adres.",input:"Wklej link...",button:"Prześlij"},camera:{title:"Plik z kamery internetowej",capture:"Zrób zdjęcie",mirror:"Odbicie lustrzane",startRecord:"Nagraj film",stopRecord:"Zakończ",cancelRecord:"Anuluj",retry:"Poproś ponownie o dostęp",pleaseAllow:{title:"Prośba o udostępnienie aparatu",text:"Zostałeś poproszony przez tę stronę o dostęp do aparatu. Aby robić zdjecia, musisz zaakceptować tę prośbę."},notFound:{title:"Nie wykryto aparatu.",text:"Wygląda na to, że nie masz podłączonego aparatu do tego urządzenia."}},preview:{unknownName:"nieznany",change:"Anuluj",back:"Wstecz",done:"Dodaj",unknown:{title:"Przesyłanie... Proszę czekać na podgląd.",done:"Omiń podgląd i zaakceptuj."},regular:{title:"Dodać ten plik?",line1:"Zamierzasz dodać nowy plik.",line2:"Potwierdź, proszę."},image:{title:"Dodać ten obraz?",change:"Anuluj"},crop:{title:"Przytnij i dodaj ten obraz",done:"Wykonano",free:"wolny"},video:{title:"Dodać ten film?",change:"Anuluj"},error:{default:{title:"Oops!",text:"Coś poszło nie tak podczas przesyłania.",back:"Spróbuj ponownie"},image:{title:"Akceptowane są tylko obrazy.",text:"Spróbuj ponownie z innym plikiem.",back:"Wybierz obraz"},size:{title:"Plik, który wybrałeś, przekracza dopuszczalny rozmiar",text:"Spróbuj ponownie z innym plikiem."},loadImage:{title:"Błąd",text:"Nie udało się załadować obrazu"}},multiple:{title:"Wybrałeś %files%",question:"Czy chcesz dodać wszystkie te pliki?",tooManyFiles:"Wybrałeś zbyt wiele plików. Maksimum to %max%.",tooFewFiles:"Wybrałeś %files%. Wymagane jest co najmniej %min%.",clear:"Usuń wszystkie",done:"Wykonano",file:{preview:"Zobacz %file%",remove:"Usuń %file%"}}}}}},pluralize:function(e){var t;return 1===e?"one":(t=e%10)>=2&&t<=4&&1!=(e/10%10|0)?"few":"many"}},pt:{translations:{uploading:"Fazendo upload... Aguarde.",loadingInfo:"Carregando informações...",errors:{default:"Erro",baddata:"Valor incorreto",size:"Arquivo muito grande",upload:"Não foi possível fazer o upload",user:"Upload cancelado",info:"Não foi possível carregar as informações",image:"Apenas imagens são permitidas",createGroup:"Não foi possível criar o grupo de arquivos",deleted:"O arquivo foi excluído"},draghere:"Arraste um arquivo aqui",file:{one:"%1 arquivo",other:"%1 arquivos"},buttons:{cancel:"Cancelar",remove:"Excluir",choose:{files:{one:"Escolha um arquivo",other:"Escolha arquivos"},images:{one:"Escolha uma imagem",other:"Escolha imagens"}}},dialog:{done:"OK",showFiles:"Mostrar arquivos",tabs:{names:{preview:"Visualizar",file:"Computador",url:"Link da web"},file:{drag:"Arraste um arquivo aqui",nodrop:"Faça upload de arquivos do seu computador",or:"ou",button:"Escolha um arquivo do computador",also:"Você também pode escolher arquivos de"},url:{title:"Arquivos da web",line1:"Faça upload de qualquer arquivo da web.",line2:"Apenas informe o link.",input:"Cole seu link aqui...",button:"Upload"},camera:{capture:"Tirar uma foto",mirror:"Espelhar",startRecord:"Gravar um vídeo",stopRecord:"Parar",cancelRecord:"Cancelar",retry:"Requisitar permissão novamente",pleaseAllow:{title:"Por favor permita o acesso a sua câmera",text:"Você foi solicitado a permitir o acesso à câmera a partir deste site. Para tirar fotos com sua câmera, você deve aprovar este pedido."},notFoud:{title:"Câmera não detectada",text:"Parece que você não tem uma câmera conectada a este dispositivo"}},preview:{unknownName:"desconhecido",change:"Cancelar",back:"Voltar",done:"Adicionar",unknown:{title:"Fazendo upload... Aguarde a visualização.",done:"Pular visualização e aceitar"},regular:{title:"Adicionar esse arquivo?",line1:"Você está prestes a adicionar o arquivo acima.",line2:"Por favor, confirme."},image:{title:"Adicionar essa imagem?",change:"Cancelar"},crop:{title:"Cortar e adicionar essa imagem",done:"OK",free:"livre"},error:{default:{title:"Oops!",text:"Alguma coisa deu errado durante o upload.",back:"Por favor, tente novamente"},image:{title:"Apenas arquivos de imagem são aceitos.",text:"Por favor, tente novamente com outro arquivo.",back:"Escolher a imagem"},size:{title:"O arquivo que você escolheu excede o limite.",text:"Por favor, tente novamente com outro arquivo."},loadImage:{title:"Erro",text:"Não foi possível carregar a imagem"}},multiple:{title:"Você escolheu",question:"Você quer adicionar todos esses arquivos?",clear:"Excluir todos",done:"OK"}}}}},pluralize:function(e){return 1===e?"one":"other"}},ro:{translations:{uploading:"Se încarcă... Răbdare.",loadingInfo:"Info încărcare...",errors:{default:"Eroare",baddata:"Valoare incorectă",size:"Fișier prea mare",upload:"Nu pot încărca",user:"Încărcare anulată",info:"Nu pot încărca info",image:"Doar imagini, vă rog",createGroup:"Nu pot crea grup de fișiere",deleted:"Fișierul a fost șters"},draghere:"Trage un fișier aici",file:{one:"%1 fișier",other:"%1 fișiere"},buttons:{cancel:"Anulare",remove:"Șterge",choose:{files:{one:"Alege un fișier",other:"Alege fișiere"},images:{one:"Alege o imagine",other:"Alege imagini"}}},dialog:{close:"Închide",openMenu:"Deschide meniu",done:"Gata",showFiles:"Arată fișiere",tabs:{names:{"empty-pubkey":"Bine ai venit",preview:"Previzualizare",file:"Fișiere locale",url:"Link direct",camera:"Camera",facebook:"Facebook",dropbox:"Dropbox",gdrive:"Google Drive",gphotos:"Google Photos",instagram:"Instagram",vk:"VK",evernote:"Evernote",box:"Box",onedrive:"OneDrive",flickr:"Flickr",huddle:"Huddle"},file:{drag:"trage aici<br>fișierele",nodrop:"Încarcă fișiere din computer",cloudsTip:"Cloud <br>și rețle sociale",or:"sau",button:"Alege un fișier local",also:"sau alege din"},url:{title:"Fișiere din Web",line1:"Ia orice fișier din Web.",line2:"Trebuie să ai doar linkul.",input:"Lipește linkul aici...",button:"Încarcă"},camera:{title:"Fișier din camera web",capture:"Fă o fotografie",mirror:"Mirror",startRecord:"Înregistrează un video",stopRecord:"Stop",cancelRecord:"Anulează",retry:"Cere permisiune din nou",pleaseAllow:{title:"Te rog sa-mi dai acces la cameră",text:"Ai fost rugat să dai acces la cameră de acest site.<br>Pentru a putea face fotografii cu camera, trebuie să aprobi această cerere."},notFound:{title:"Nicio cameră detectată",text:"Se pare că nu ai nicio cameră atașată acestui device."}},preview:{unknownName:"necunoscut",change:"Anulează",back:"Înapoi",done:"Adaugă",unknown:{title:"Se încarcă... Te rog așteaptă previzualizarea.",done:"Sari peste previzualizare și acceptă"},regular:{title:"Adaug acest fișier?",line1:"Ești pe punctul de a adăuga fișierul de mai sus.",line2:"Te rog confirmă."},image:{title:"Adaug această imagine?",change:"Anulează"},crop:{title:"Decupează și adaugă aceasta imagine",done:"Gata",free:"gratis"},video:{title:"Adaug acest video?",change:"anulează"},error:{default:{title:"Oops!",text:"A intervenit o problemă la încărcare.",back:"te rog încearcă din nou"},image:{title:"Sunt acceptate doar imagini.",text:"Te rog încearcă din nou cu un alt fișier.",back:"Alege imagine"},size:{title:"Fișierul selectat de tine este prea mare.",text:"Te rog să încerci cu alt fișier."},loadImage:{title:"Eroare",text:"Nu pot încărca imaginea"}},multiple:{title:"Ai ales %files%.",question:"Adaug %files%?",tooManyFiles:"Ai ales prea multe fișiere. %max% is maximum.",tooFewFiles:"Ai ales %files%. Minimul este %min% .",clear:"Șterge toate",done:"Adaugă",file:{preview:"Previzualizare %file%",remove:"Șterge %file%"}}}},footer:{text:"powered by",link:"uploadcare"}}},pluralize:function(e){return 1===e?"one":"other"}},ru:{translations:{uploading:"Идет загрузка",loadingInfo:"Загрузка информации...",errors:{default:"Ошибка",baddata:"Некорректные данные",size:"Слишком большой файл",upload:"Ошибка при загрузке",user:"Загрузка прервана",info:"Ошибка при загрузке информации",image:"Разрешены только изображения",createGroup:"Не удалось создать группу файлов",deleted:"Файл удалён"},draghere:"Перетащите файл сюда",file:{one:"%1 файл",few:"%1 файла",many:"%1 файлов"},buttons:{cancel:"Отмена",remove:"Удалить",choose:{files:{one:"Выбрать файл",other:"Выбрать файлы"},images:{one:"Выбрать изображение",other:"Выбрать изображения"}}},dialog:{done:"Готово",showFiles:"Показать файлы",tabs:{names:{preview:"Предпросмотр","empty-pubkey":"Приветствие",file:"Локальные файлы",vk:"ВКонтакте",url:"Ссылка",camera:"Камера"},file:{drag:"Перетащите файл сюда",nodrop:"Загрузка файлов с вашего компьютера",cloudsTip:"Облачные хранилища<br>и социальные сети",or:"или",button:"Выберите локальный файл",also:"Вы также можете загрузить файлы, используя:"},url:{title:"Файлы с других сайтов",line1:"Загрузите любой файл из сети.",line2:"",input:"Укажите здесь ссылку...",button:"Загрузить"},camera:{title:"Файл из видеокамеры",capture:"Сделать снимок",mirror:"Отразить",retry:"Повторно запросить разрешение",pleaseAllow:{title:"Пожалуйста, разрешите доступ к камере",text:"Для того, чтобы сделать снимок, мы запросили разрешение на доступ к камере с этого сайта."},notFound:{title:"Камера не найдена",text:"Скорее всего камера не подключена или не настроена."}},preview:{unknownName:"неизвестно",change:"Отмена",back:"Назад",done:"Добавить",unknown:{title:"Загрузка... Пожалуйста подождите.",done:"Пропустить предварительный просмотр"},regular:{title:"Загрузить этот файл?",line1:"Вы собираетесь добавить этот файл:",line2:"Пожалуйста, подтвердите."},image:{title:"Добавить это изображение?",change:"Отмена"},video:{title:"Добавить это видео?",change:"Отмена"},crop:{title:"Обрезать и добавить это изображение",done:"Готово",free:"произв."},error:{default:{title:"Ой!",text:"Что-то пошло не так во время загрузки.",back:"Пожалуйста, попробуйте ещё раз"},image:{title:"Можно загружать только изображения.",text:"Попробуйте загрузить другой файл.",back:"Выберите изображение"},size:{title:"Размер выбранного файла превышает лимит.",text:"Попробуйте загрузить другой файл."},loadImage:{title:"Ошибка",text:"Изображение не удалось загрузить"}},multiple:{title:"Вы выбрали %files%",question:"Добавить все эти файлы?",tooManyFiles:"Вы выбрали слишком много файлов. %max% максимум.",tooFewFiles:"Вы выбрали %files%. Нужно не меньше %min%.",clear:"Удалить все",done:"Добавить",file:{preview:"Предпросмотр %file%",remove:"Удалить %file%"}}}}}},pluralize:function(e){return 1==(e/10%10|0)||e%10==0||e%10>4?"many":e%10==1?"one":"few"}},sk:{translations:{uploading:"Nahrávam... Prosím počkajte.",loadingInfo:"Nahrávam informácie...",errors:{default:"Chyba",baddata:"Nesprávna hodnota",size:"Súbor je príliš veľký",upload:"Nedá sa nahrať",user:"Nahrávanie bolo zrušené",info:"Informácie sa nedajú nahrať",image:"Povolené sú len obrázky",createGroup:"Nie je možné vytvoriť priečinok",deleted:"Súbor bol odstránený"},draghere:"Sem presuňte súbor",file:{one:"%1 súbor",few:"%1 súbory",other:"%1 súborov"},buttons:{cancel:"Zrušiť",remove:"Odstrániť",choose:{files:{one:"Vyberte súbor",other:"Vyberte súbory"},images:{one:"Vyberte obrázok",other:"Vyberte obrázky"}}},dialog:{close:"Zavrieť",openMenu:"Otvoriť menu",done:"Hotovo",showFiles:"Ukázať súbory",tabs:{names:{"empty-pubkey":"Vitajte",preview:"Náhľad",file:"Z počítača",url:"Z internetu",camera:"Kamera",facebook:"Facebook",dropbox:"Dropbox",gdrive:"Disk Google",gphotos:"Google Obrázky",instagram:"Instagram",vk:"VK",evernote:"Evernote",box:"Box",onedrive:"OneDrive",flickr:"Flickr",huddle:"Huddle"},file:{drag:"presuňte a vložte<br>akékoľvek súbory",nodrop:"Nahrajte súbory z vášho&nbsp;počítača",cloudsTip:"Cloud úložiská<br>a sociálne siete",or:"alebo",button:"Vyberte súbor z počítača",also:"alebo vyberte z"},url:{title:"Súbory z internetu",line1:"Uložte akýkoľvek súbor z internetu.",line2:"Stačí pridať odkaz na neho.",input:"Vložte svoj odkaz sem...",button:"Nahrať"},camera:{title:"Súbor z webkamery",capture:"Odfotiť",mirror:"Zrkadliť",startRecord:"Natočte video",stopRecord:"Prestať natáčať",cancelRecord:"Zrušiť",retry:"Znovu požiadať o prístup",pleaseAllow:{title:"Prosím povoľte prístup k vašej kamere",text:"Boli ste vyzvaní aby ste umožnili tejto stránke prístup ku kamere.<br>Prístup musíte povolit aby ste mohli fotiť s vašou kamerou."},notFound:{title:"Kamera nebola nájdená",text:"Zdá sa, že k tomuto zariadeniu nemáte pripojenú kameru."}},preview:{unknownName:"neznámy",change:"Zrušiť",back:"Späť",done:"Pridať",unknown:{title:"Nahráva sa... Prosím počkajte na náhľad.",done:"Preskočiť náhľad a nahrať"},regular:{title:"Pridať tento súbor?",line1:"Chystáte sa pridať vyššie uvedený súbor.",line2:"Prosím potvrďte váš výber."},image:{title:"Pridať tento obrázok?",change:"Zrušiť"},crop:{title:"Orezať a pridať túto fotku",done:"Hotovo",free:"obnoviť"},video:{title:"Pridať toto video?",change:"Zrušiť"},error:{default:{title:"Ejha!",text:"Pri nahrávaní sa vyskytla chyba.",back:"Skúste to znovu"},image:{title:"Je možné nahrávať len obrázky",text:"Skúste to znovu s iným súborom.",back:"Vybrať obrázok"},size:{title:"Súbor, ktorý ste vybrali presahuje povolenú veľkosť.",text:"Skúste to znovu s iným súborom."},loadImage:{title:"Chyba",text:"Obrázok nie je možné vyhľadať"}},multiple:{title:"Vybrali ste %files%.",question:"Pridať %files%?",tooManyFiles:"Vybrali ste príliš veľa súborov. Maximum je %max%.",tooFewFiles:"Vybrali ste %files%. Potrebných je aspoň %min%.",clear:"Odstrániť všetky",done:"Pridať",file:{preview:"Nahliadnuť na %file%",remove:"Odstrániť %file%"}}}}}},pluralize:function(e){return 1===e?"one":e>=2&&e<=4?"few":"many"}},sr:{translations:{uploading:"Шаљем... Молимо сачекајте.",loadingInfo:"Учитавам информације...",errors:{default:"Грешка",baddata:"Погрешна вредност",size:"Фајл је сувише велик",upload:"Не могу да пошаљем",user:"Слање прекинуто",info:"Не могу да учитам информације",image:"Дозвољене су само слике",createGroup:"Не могу да направим групу фајлова",deleted:"Фајл је обрисан"},draghere:"Убаците фајл овде",file:{one:"%1 фајл",other:"%1 фајлова"},buttons:{cancel:"Поништи",remove:"Избаци",choose:{files:{one:"Изабери фајл",other:"Изабери фајлове"},images:{one:"Изабери слику",other:"Изабери слике"}}},dialog:{close:"Затвори",openMenu:"Отвори мени",done:"Готово",showFiles:"Покажи фајлове",tabs:{names:{"empty-pubkey":"Добродошли",preview:"Погледај",file:"Локални фајлови",url:"Директан линк",camera:"Камера",facebook:"Фејсбук",dropbox:"Dropbox",gdrive:"Google Drive",gphotos:"Google Photos",instagram:"Инстаграм",vk:"VK",evernote:"Evernote",box:"Box",onedrive:"OneDrive",flickr:"Flickr",huddle:"Huddle"},file:{drag:"превуци<br>било које фајлове",nodrop:"Пошаљи фајлове са твог&nbsp;компјутера",cloudsTip:"Клауд<br>и социјалне мреже",or:"или",button:"Изабери локални фајл",also:"или изабери"},url:{title:"Фајлове са Интернета",line1:"Изабери било који фајл са Интернета.",line2:"Само убаци линк.",input:"Убаци линк овде...",button:"Пошаљи"},camera:{title:"Фајл са камере",capture:"Усликај",mirror:"Огледало",startRecord:"Сними видео",stopRecord:"Заустави",cancelRecord:"Поништи",retry:"Тражи дозволу поново",pleaseAllow:{title:"Молимо вас да дозволите приступ вашој камери",text:"Упитани сте да дозволите приступ вашој камери са овог сајта.<br>Уколико желите да сликате, морате одобрити овај захтев."},notFound:{title:"Камера није препозната",text:"Изгледа да немате камеру на овом уређају."}},preview:{unknownName:"непознато",change:"Поништи",back:"Назад",done:"Додај",unknown:{title:"Шаљем... Сачекајте за приказ.",done:"Прескочи приказ и прихвати"},regular:{title:"Додај овај фајл?",line1:"Управо ћете додати овај фајл изнад.",line2:"Молимо потврдите."},image:{title:"Додај ову слику?",change:"Поништи"},crop:{title:"Кропуј и додај ову слику",done:"Урађено",free:"слободно"},video:{title:"Додај овај видео?",change:"Поништи"},error:{default:{title:"Ооопс!",text:"Нешто је искрсло у току слања.",back:"Молимо покушајте поново"},image:{title:"Дозвљене су само слике.",text:"Молимо покушајте са другим фајлом.",back:"Изабери слику"},size:{title:"Фајл који сте изабрали премашује лимит.",text:"Молимо покушајте са другим фајлом."},loadImage:{title:"Грешка",text:"Не могу да учитам слику"}},multiple:{title:"Изабрали сте %files%.",question:"Додај %files%?",tooManyFiles:"Изабрали сте превише фајлова. %max% је максимално.",tooFewFiles:"Изабрали сте %files%. Морате најмање %min% фајла.",clear:"Избаци све",done:"Додај",file:{preview:"Прегледај %file%",remove:"Избаци %file%"}}}},footer:{text:"направио",link:"uploadcare"}}},pluralize:function(e){return 1===e?"one":"other"}},sv:{translations:{uploading:"Laddar... Var god vänta.",loadingInfo:"Laddar info...",errors:{default:"Fel",baddata:"Felaktigt värde",size:"Filen är för stor",upload:"Kan inte ladda upp",user:"Uppladdning avbruten",info:"Kan inte ladda informationen",image:"Endast bilder tillåtna",createGroup:"Kan inte skapa filgrupp",deleted:"Fil raderad"},draghere:"Dra filen hit",file:{one:"%1 fil",other:"%1 filer"},buttons:{cancel:"Avbryt",remove:"Ta bort",choose:{files:{one:"Välj fil",other:"Välj filer"},images:{one:"Välj en bild",other:"Välj bilder"}}},dialog:{done:"Klar",showFiles:"Visa filer",tabs:{names:{"empty-pubkey":"Välkommen",preview:"Förhandsgranskning",file:"Lokala filer",url:"Direkta länkar",camera:"Kamera"},file:{drag:"Släpp filen här",nodrop:"Ladda upp filer från din dator",cloudsTip:"Molnlagring<br>och sociala nätverk",or:"eller",button:"Välj en lokal fil",also:"Du kan också välja den från"},url:{title:"Filer från webben",line1:"Välj en fil från en webbadress.",line2:"Ange bara länken till filen.",input:"Klistra in din länk här...",button:"Ladda upp"},camera:{capture:"Ta ett foto",mirror:"Spegel",retry:"Begär tillstånd igen",pleaseAllow:{title:"Vänligen ge tillgång till din kamera",text:"Du har uppmanats att tillåta att denna webbplats får tillgång till din kamera.För att ta bilder med din kamera måste du godkänna denna begäran."},notFound:{title:"Ingen kamera hittades",text:"Det verkar som att du inte har någon kamera ansluten till denna enheten."}},preview:{unknownName:"okänd",change:"Avbryt",back:"Tillbaka",done:"Lägg till",unknown:{title:"Laddar... Vänligen vänta på förhandsgranskning.",done:"Skippa förhandsgranskning och acceptera"},regular:{title:"Lägg till denna filen?",line1:"Du håller på att lägga till filen ovan.",line2:"Vänligen bekräfta."},image:{title:"Lägg till denna bilden?",change:"Avbryt"},crop:{title:"Beskär och lägg till denna bild",done:"Klar",free:"fri"},error:{default:{title:"Oops!",text:"Någonting gick fel under uppladdningen.",back:"Vänligen försök igen"},image:{title:"Endast bildfiler accepteras.",text:"Vänligen försök igen med en annan fil.",back:"Välj bild"},size:{title:"Filen du har valt är för stor.",text:"Vänligen försök igen med en annan fil."},loadImage:{title:"Fel",text:"Kan inte ladda bild"}},multiple:{title:"Du har valt %files%",question:"Vill du lägga till alla dessa filer?",tooManyFiles:"Du har valt för många filer. %max% är max.",tooFewFiles:"Du har valt %files%. Minst %min% krävs.",clear:"Ta bort alla",done:"Klar"}}}}},pluralize:function(e){return 1===e?"one":"other"}},tr:{translations:{uploading:"Yükleniyor... Lütfen bekleyin.",loadingInfo:"Bilgiler yükleniyor...",errors:{default:"Hata",baddata:"Geçersiz değer",size:"Dosya çok büyük",upload:"Yüklenemedi",user:"Yükleme iptal edildi",info:"Bilgiler getirilemedi",image:"Sadece resim dosyası yüklenebilir",createGroup:"Dosya grubu yaratılamıyor",deleted:"Dosya silinmiş"},draghere:"Buraya bir dosya bırakın",file:{other:"%1 dosya"},buttons:{cancel:"İptal",remove:"Kaldır",choose:{files:{one:"Dosya Seçin",other:"Dosya Seçin"},images:{one:"Resim Dosyası Seçin",other:"Resim Dosyası Seçin"}}},dialog:{done:"Bitti",showFiles:"Dosyaları Göster",tabs:{names:{"empty-pubkey":"Hoş geldiniz",preview:"Önizleme",file:"Bilgisayar",url:"Dış Bağlantılar",camera:"Kamera"},file:{drag:"Buraya bir dosya bırakın",nodrop:"Bilgisayarınızdan dosya yükleyin",or:"ya da",button:"Bilgisayardan bir dosya seç",also:"Diğer yükleme seçenekleri",cloudsTip:"Bulut depolamalar<br>ve sosyal hizmetler"},url:{title:"Webden dosyalar",line1:"Webden herhangi bir dosya seçin.",line2:"Dosya bağlantısını sağlayın.",input:"Bağlantınızı buraya yapıştırın...",button:"Yükle"},camera:{capture:"Fotoğraf çek",mirror:"Ayna",retry:"Tekrar izin iste",pleaseAllow:{title:"Lütfen kameranıza erişilmesine izin verin",text:"Bu siteden kamera erişimine izin vermeniz talep ediliyor. Kameranızla fotoğraf çekmek için bu isteği onaylamanız gerekmektedir."},notFound:{title:"Kamera algılanamadı",text:"Bu cihaza kamera bağlantısının olmadığı görünüyor."}},preview:{unknownName:"bilinmeyen",change:"İptal",back:"Geri",done:"Ekle",unknown:{title:"Yükleniyor... Önizleme için lütfen bekleyin.",done:"Önizlemeyi geç ve kabul et"},regular:{title:"Bu dosya eklensin mi?",line1:"Yukarıdaki dosyayı eklemek üzeresiniz.",line2:"Lütfen onaylayın."},image:{title:"Bu görsel eklensin mi?",change:"İptal"},crop:{title:"Bu görseli kes ve ekle",done:"Bitti"},error:{default:{title:"Aman!",text:"Yükleme sırasında bir hata oluştu.",back:"Lütfen tekrar deneyin."},image:{title:"Sadece resim dosyaları kabul edilmektedir.",text:"Lütfen başka bir dosya ile tekrar deneyin.",back:"Resim dosyası seç"},size:{title:"Seçtiğiniz dosya limitleri aşıyor.",text:"Lütfen başka bir dosya ile tekrar deneyin."},loadImage:{title:"Hata",text:"Resim dosyası yüklenemedi"}},multiple:{title:"%files% dosya seçtiniz",question:"Bu dosyaların hepsini eklemek istiyor musunuz?",tooManyFiles:"Fazla sayıda dosya seçtiniz, en fazla %max% dosya olabilir.",tooFewFiles:"%files% dosya seçtiniz, en az %min% dosya olmalıdır.",clear:"Hepsini kaldır",done:"Bitti"}}}}},pluralize:function(e){return"other"}},uk:{translations:{uploading:"Завантаження... Зачекайте.",loadingInfo:"Завантаження інформації...",errors:{default:"Помилка",baddata:"Неправильне значення",size:"Завеликий файл",upload:"Помилка завантаження",user:"Завантаження скасовано",info:"Помилка завантаження інформації",image:"Дозволені лише зображення",createGroup:"Неможливо створити групу файлів",deleted:"Файл видалено"},draghere:"Перетягніть файл сюди",file:{one:"%1 файл",few:"%1 файли",many:"%1 файлів"},buttons:{cancel:"Скасувати",remove:"Видалити",choose:{files:{one:"Вибрати файл",other:"Вибрати файли"},images:{one:"Вибрати зображення",other:"Вибрати зображення"}}},dialog:{close:"Закрити",openMenu:"Відкрити меню",done:"Готово",showFiles:"Показати файли",tabs:{names:{"empty-pubkey":"Вітання",preview:"Попередній перегляд",file:"Локальні файли",url:"Пряме посилання",camera:"Камера"},file:{drag:"Перетягніть<br>будь-які файли",nodrop:"Завантаження файлів з вашого комп'ютера",cloudsTip:"Хмарні сховища<br>та соціальні мережі",or:"або",button:"Обрати локальний файл",also:"або обрати з"},url:{title:"Файли з інших сайтів",line1:"Візьміть будь-який файл з Інтернету..",line2:"Вкажіть тут посилання.",input:"Вставте ваше посилання тут...",button:"Завантажити"},camera:{title:"Файл із відеокамери",capture:"Зробити знімок",mirror:"Віддзеркалити",startRecord:"Записати відео",stopRecord:"Стоп",cancelRecord:"Скасувати",retry:"Повторний запит дозволу",pleaseAllow:{title:"Будь ласка, надайте доступ до вашої камери",text:"Вам буде запропоновано дозволити доступ до камери з цього сайту.<br>Для того, щоб фотографувати за допомогою камери, ви повинні схвалити цей запит."},notFound:{title:"Камера не виявлена",text:"Схоже, у вас немає камери, підключеної до цього пристрою."}},preview:{unknownName:"невідомо",change:"Скасувати",back:"Назад",done:"Додати",unknown:{title:"Завантаження... Зачекайте на попередній перегляд.",done:"Пропустити перегляд і прийняти"},regular:{title:"Додати цей файл?",line1:"Ви збираєтеся додати файл вище.",line2:"Будь ласка, підтвердіть."},image:{title:"Додати це зображення?",change:"Скасувати"},crop:{title:"Обрізати та додати це зображення",done:"Готово",free:"довільно"},video:{title:"Додати це відео?",change:"Скасувати"},error:{default:{title:"Ой!",text:"Під час завантаження сталася помилка.",back:"Будь ласка, спробуйте ще раз"},image:{title:"Приймаються лише файли зображень.",text:"Повторіть спробу з іншим файлом.",back:"Виберіть зображення"},size:{title:"Розмір вибраного файлу перевищує ліміт.",text:"Повторіть спробу з іншим файлом."},loadImage:{title:"Помилка",text:"Помилка завантаження зображення"}},multiple:{title:"Ви вибрали %files%.",question:"Додати %files%?",tooManyFiles:"Ви вибрали забагато файлів. Максимальна кількість %max%.",tooFewFiles:"Ви вибрали %files%. Мінімальна кількість %min%.",clear:"Видалити все",done:"Додати",file:{preview:"Попередній перегляд %file%",remove:"Видалити %file%"}}}},footer:{text:"працює на",link:"uploadcare"}}},pluralize:function(e){return 1==(e/10%10|0)||e%10==0||e%10>4?"many":e%10==1?"one":"few"}},vi:{translations:{loadingInfo:"Đang tải thông tin...",errors:{default:"Lỗi",baddata:"Giá trị không đúng",size:"Tệp quá lớn",upload:"Không thể tải lên",user:"Tải lên bị hủy",info:"Không thể nạp thông tin",image:"Chỉ cho phép các hình ảnh",createGroup:"Không thể tạo nhóm tệp",deleted:"Tệp đã bị xóa"},uploading:"Đang tải lên... Vui lòng chờ đợi.",draghere:"Thả một tệp vào đây",file:{other:"%1 tệp"},buttons:{cancel:"Hủy",remove:"Xóa",choose:{files:{other:"Lựa chọn các tệp"},images:{other:"Lựa chọn hình ảnh"}}},dialog:{close:"Đóng",openMenu:"Mở menu",done:"Xong",showFiles:"Hiển thị tệp",tabs:{names:{"empty-pubkey":"Chào mừng",preview:"Xem trước",file:"Các tệp trên máy",url:"Liên kết tr.tiếp",camera:"Máy ảnh",facebook:"Facebook",dropbox:"Dropbox",gdrive:"Google Drive",instagram:"Instagram",gphotos:"Google Photos",vk:"VK",evernote:"Evernote",box:"Box",onedrive:"OneDrive",flickr:"Flickr",huddle:"Huddle"},file:{drag:"kéo & thả<br>bất kỳ tệp nào",nodrop:"Tải lên các tệp từ &nbsp;máy tính của bạn",cloudsTip:"Lưu trữ Đám mây<br>và các mạng xã hội",or:"hoặc",button:"Lựa chọn một tệp trên máy",also:"hoặc lựa chọn từ"},url:{title:"Các tệp trên Web",line1:"Chọn bất từ tệp nào từ web.",line2:"Chỉ cần cung cấp liên kết.",input:"Dán liên kết của bạn xuống đây...",button:"Tải lên"},camera:{title:"Tệp từ web cam",capture:"Chụp một bức ảnh",mirror:"Gương",startRecord:"Quay một video",cancelRecord:"Hủy",stopRecord:"Dừng",retry:"Yêu cầu cấp phép lần nữa",pleaseAllow:{text:"Bạn đã được nhắc nhở để cho phép truy cập vào camera từ trang này.<br>Để có thể chụp ảnh với camera, bạn phải chấp thuận yêu cầu này.",title:"Vui lòng cho phép truy cập tới camera của bạn"},notFound:{title:"Không tìm thấy camera nào",text:"Có vẻ như bạn không có camera nào nối với thiết bị này."}},preview:{unknownName:"vô danh",change:"Hủy",back:"Quay lại",done:"Thêm",unknown:{title:"Đang tải lên...Vui lòng đợi để xem trước.",done:"Bỏ qua và chấp nhận"},regular:{title:"Thêm tệp này?",line1:"Bạn dự định thêm tệp ở trên.",line2:"Vui lòng chấp thuận."},image:{title:"Thêm hình ảnh này?",change:"Hủy"},crop:{title:"Cắt và thêm ảnh này",done:"Xong",free:"miễn phí"},video:{title:"Thêm video này?",change:"Hủy"},error:{default:{title:"Ồ!",back:"Vui lòng thử lại",text:"Có lỗi gì đó trong quá trình tải lên."},image:{title:"Chỉ chấp thuận các tệp hình ảnh.",text:"Vui lòng thử lại với một tệp mới.",back:"Lựa chọn hình ảnh"},size:{title:"Tệp bạn đã lựa chọn vượt quá giới hạn",text:"Vui lòng thử lại với một tệp khác."},loadImage:{title:"Lỗi",text:"Không thể tải hình ảnh"}},multiple:{title:"Bạn đã lựa chọn %files%",question:"Thêm %files%?",tooManyFiles:"Bạn đã lựa chọn quá nhiều tệp. %max% là tối đa.",tooFewFiles:"Bạn đã lựa chọn %files%. Ít nhất cần %min%",clear:"Xoá Tất cả",file:{preview:"Xem trước %file%",remove:"Xóa %file%"},done:"Thêm"}}},footer:{text:"được hỗ trợ bởi",link:"uploadcare"}}},pluralize:function(e){return"other"}},zhTW:{translations:{uploading:"上傳中...請等待",loadingInfo:"正在讀取資訊...",errors:{default:"錯誤",baddata:"錯誤資料",size:"檔案太大",upload:"無法上傳",user:"上傳被取消",info:"無法讀取資訊",image:"只允許圖片檔案",createGroup:"無法建立檔案群組",deleted:"檔案已被刪除"},draghere:"拖放檔案到這裡",file:{other:"%1 個檔案"},buttons:{cancel:"取消",remove:"刪除",choose:{files:{one:"選擇檔案",other:"選擇檔案"},images:{one:"選擇圖片",other:"選擇圖片"}}},dialog:{done:"完成",showFiles:"顯示檔案",tabs:{names:{"empty-pubkey":"歡迎",preview:"預覽",file:"從本機上傳",url:"任意圖片連結",camera:"相機"},file:{drag:"拖放檔案到這裡",nodrop:"從你的本機中上傳",cloudsTip:"雲端硬碟<br>與社群網站",or:"或者",button:"從本機中選取檔案",also:"你也可以選自"},url:{title:"來自網際網路的檔案",line1:"從網際網路選取檔案",line2:"只需提供連結",input:"將連結複製至此...",button:"上傳"},camera:{capture:"拍照",mirror:"鏡像",retry:"重新取得相機權限",pleaseAllow:{title:"請允許使存取您的相機",text:"你一直在提示允許來自這個網站的訪問攝像頭。為了拍照用你的相機,你必須批准這一請求。"},notFound:{title:"沒有找到相機",text:"看起來你有沒有將連接相機。"}},preview:{unknownName:"未知",change:"取消",back:"返回",done:"加入",unknown:{title:"上傳中...請等待預覽",done:"跳過預覽,直接接受"},regular:{title:"加入這個檔案?",line1:"你將加入上面的檔案。",line2:"請確認。"},image:{title:"加入這個圖片?",change:"取消"},crop:{title:"裁切並加入這個圖片",done:"完成",free:"自由裁切"},error:{default:{title:"錯誤!",text:"上傳過程中出錯。",back:"請重試"},image:{title:"只允許上傳圖片檔案。",text:"請選擇其他檔案重新上傳。",back:"選擇圖片"},size:{title:"你選取的檔案超過了100MB的上限",text:"請用另一個檔案再試一次。"},loadImage:{title:"錯誤",text:"無法讀取圖片"}},multiple:{title:"你已經選擇 %files%",question:"你要加入所有檔案嗎?",tooManyFiles:"你選了太多的檔案. 最多可選擇%max%. 請刪除一些。",tooFewFiles:"你所選擇的檔案 %files%. 至少要 %min% .",clear:"清空",done:"完成"}}}}},pluralize:function(e){return"other"}},zh:{translations:{uploading:"上传中...请等待",loadingInfo:"正在读取信息...",errors:{default:"错误",baddata:"错误数据",size:"文件太大",upload:"无法上传",user:"上传被取消",info:"无法读取信息",image:"只允许图形文件",createGroup:"无法建立文件组",deleted:"文件已被删除"},draghere:"拖放文件到这里",file:{other:"%1 个文件"},buttons:{cancel:"取消",remove:"删除"},dialog:{done:"完成",showFiles:"显示文件",tabs:{names:{url:"任意图片链接"},file:{drag:"拖放文件到这里",nodrop:"从你的电脑中上传",or:"或者",button:"从电脑中选取文件",also:"你也可以选自"},url:{title:"来自互联网的文件",line1:"从互联网选取文件",line2:"只需提供链接",input:"将链接拷贝至此...",button:"上传"},preview:{unknownName:"未知",change:"取消",back:"返回",done:"添加",unknown:{title:"上传中...请等待预览",done:"跳过预览,直接接受"},regular:{title:"添加这个文件?",line1:"你将添加上面的文件。",line2:"请确认。"},image:{title:"添加这个图片?",change:"取消"},crop:{title:"剪裁并添加这个图片",done:"完成"},error:{default:{title:"错误!",text:"上传过程中出错。",back:"请重试"},image:{title:"只允许上传图片文件。",text:"请选择其他文件重新上传。",back:"选择图片"},size:{title:"你选取的文件超过了100MB的上限",text:"请用另一个文件再试一次。"},loadImage:{title:"错误",text:"无法读取图片"}},multiple:{title:"你已经选择 %files%",question:"你要添加所有文件吗?",tooManyFiles:"你选了太多的文件. 最多可选择%max%. 请删除一些。",clear:"清空",done:"完成"}}}}},pluralize:function(e){return"other"}}},$t=null,ea={translations:Object.keys(Qt).reduce((function(e,t){return e[t]=Qt[t].translations,e}),{}),pluralize:Object.keys(Qt).reduce((function(e,t){return e[t]=Qt[t].pluralize,e}),{}),rebuild:function(e){return $t=null,aa(e)},t:function(e,t){var a,i,n;return a=aa(),null==(n=ia(e,a.translations))&&a.lang!==ta.lang&&(n=ia(e,(a=ta).translations)),null!=t&&(n=null!=a.pluralize?(null!=(i=n[a.pluralize(t)])?i.replace("%1",t):void 0)||t:""),n||""}},ta={lang:"en",translations:Qt.en.translations,pluralize:Qt.en.pluralize},aa=function(e){if(!$t){var t=ot(e),i=t.locale||ta.lang,n=a.default.extend(!0,{},ea.translations[i],t.localeTranslations),r=a.default.isFunction(t.localePluralize)?t.localePluralize:ea.pluralize[i];$t={lang:i,translations:n,pluralize:r}}return $t},ia=function(e,t){for(var a=e.split("."),i=0,n=a.length;i<n;i++){var r=a[i];if(null==t)return null;t=t[r]}return t},na=function(){function e(t,i){var n,r=this;s(this,e),this.__uuid=null,this.settings=ot(i),this.__fileColl=new Zt(t),this.__allFilesDf=a.default.when.apply(a.default,w(this.files())),this.__fileInfosDf=(t=function(){var e,t,i,r;for(r=[],e=0,t=(i=this.files()).length;e<t;e++)n=i[e],r.push(n.then(null,(function(e,t){return a.default.when(t)})));return r}.call(r),a.default.when.apply(a.default,w(t))),this.__createGroupDf=a.default.Deferred(),this.__initApiDeferred()}return c(e,[{key:"files",value:function(){return this.__fileColl.get()}},{key:"__save",value:function(){var e=this;if(!this.__saved)return this.__saved=!0,this.__allFilesDf.done((function(){return e.__createGroup().done((function(t){return e.__uuid=t.id,e.__buildInfo((function(t){return e.settings.imagesOnly&&!t.isImage?e.__createGroupDf.reject("image",t):e.__createGroupDf.resolve(t)}))})).fail((function(t){return e.__createGroupDf.reject("createGroup",t)}))}))}},{key:"promise",value:function(){return this.__save(),this.__apiDf.promise()}},{key:"__initApiDeferred",value:function(){var e,t,i,n=this;return this.__apiDf=a.default.Deferred(),this.__progressState="uploading",t=function(e){return n.__buildInfo((function(t){return n.__apiDf.reject(e,t)}))},i=function(e){return n.__apiDf.resolve(e)},(e=function(){return n.__apiDf.notify(n.__progressInfo())})(),this.__fileColl.onAnyProgress(e),this.__allFilesDf.done((function(){return n.__progressState="uploaded",e()})).fail(t),this.__createGroupDf.done((function(t){return n.__progressState="ready",e(),i(t)})).fail(t)}},{key:"__progressInfo",value:function(){var e,t,a,i,n;for(a=0,e=0,t=(n=this.__fileColl.lastProgresses()).length;e<t;e++)a+=((null!=(i=n[e])?i.progress:void 0)||0)/n.length;return{state:this.__progressState,uploadProgress:a,progress:"ready"===this.__progressState?1:.9*a}}},{key:"__buildInfo",value:function(e){var t;return t={uuid:this.__uuid,cdnUrl:this.__uuid?"".concat(this.settings.cdnBase,"/").concat(this.__uuid,"/"):null,name:ea.t("file",this.__fileColl.length()),count:this.__fileColl.length(),size:0,isImage:!0,isStored:!0},this.__fileInfosDf.done((function(){for(var a,i,n,r=arguments.length,o=new Array(r),l=0;l<r;l++)o[l]=arguments[l];for(i=0,n=o.length;i<n;i++)a=o[i],t.size+=a.size,a.isImage||(t.isImage=!1),a.isStored||(t.isStored=!1);return e(t)}))}},{key:"__createGroup",value:function(){var e,t=this;return e=a.default.Deferred(),this.__fileColl.length()?this.__fileInfosDf.done((function(){for(var a=arguments.length,i=new Array(a),n=0;n<a;n++)i[n]=arguments[n];var r;return ve("".concat(t.settings.urlBase,"/group/?jsonerrors=1"),"POST",{pub_key:t.settings.publicKey,signature:t.settings.secureSignature,expire:t.settings.secureExpire,files:function(){var e,t,a;for(a=[],e=0,t=i.length;e<t;e++)r=i[e],a.push("/".concat(r.uuid,"/").concat(r.cdnUrlModifiers||""));return a}()},{headers:{"X-UC-User-Agent":t.settings._userAgent}}).fail((function(a){return t.settings.debugUploads&&R("Can't create group.",t.settings.publicKey,a.message),e.reject(a)})).done(e.resolve)})):e.reject(),e.promise()}},{key:"api",value:function(){return this.__api||(this.__api=Z(this,["promise","files"])),this.__api}}]),e}(),ra=function(e){p(a,e);var t=_(a);function a(e,i){var n,r;return s(this,a),r=Nt("ready",e.files,i),(n=t.call(this,r,i)).__data=e,n}return c(a,[{key:"__createGroup",value:function(){return X(this.__data)}}]),a}(na),oa=function(){var e,t,a,i,n,r,o,l,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=arguments.length>1?arguments[1]:void 0;for(t=[],i=0,r=s.length;i<r;i++)if(a=s[i],qt(a))t.push(a);else if(Ht(a))for(n=0,o=(l=a.files()).length;n<o;n++)e=l[n],t.push(e);return new na(t,u).api()},la=function(e,t){var i,n;return t=ot(t),i=a.default.Deferred(),(n=ie.exec(e))?ve("".concat(t.urlBase,"/group/info/"),"GET",{jsonerrors:1,pub_key:t.publicKey,group_id:n[0]},{headers:{"X-UC-User-Agent":t._userAgent}}).fail((function(e){return t.debugUploads&&R("Can't load group info. Probably removed.",n[0],t.publicKey,e.message),i.reject(e)})).done((function(e){var a;return a=new ra(e,t),i.resolve(a.api())})):i.reject(),i.promise()},sa={};z()&&a.default(window).on("message",(function(e){var t,a,i,n,r,o,l=e.originalEvent;try{n=JSON.parse(l.data)}catch(e){return}if((null!=n?n.type:void 0)&&n.type in sa){for(o=[],t=0,i=(r=sa[n.type]).length;t<i;t++)a=r[t],l.source===a[0]?o.push(a[1](n)):o.push(void 0);return o}}));var ua=function(e,t,a){return e in sa||(sa[e]=[]),sa[e].push([t,a])},ca=function(e,t){if(e in sa)return sa[e]=a.default.grep(sa[e],(function(e){return e[0]!==t})),sa[e]},da=new st,pa=function(){function e(t,a,i,n,r){var o=this;s(this,e),this.__createIframe=this.__createIframe.bind(this),this.container=t,this.tabButton=a,this.dialogApi=i,this.settings=n,this.name=r,this.dialogApi.progress((function(e){return e===o.name&&(o.__createIframe(),o.container.find(".uploadcare--tab__iframe").focus()),o.__sendMessage({type:"visibility-changed",visible:e===o.name})}))}return c(e,[{key:"remoteUrl",value:function(){var e={lang:this.settings.locale,public_key:this.settings.publicKey,widget_version:"3.17.0",images_only:this.settings.imagesOnly,pass_window_open:this.settings.passWindowOpen};return this.settings.remoteTabSessionKey&&(e.session_key=this.settings.remoteTabSessionKey),"".concat(this.settings.socialBase,"/window3/").concat(this.name,"?")+a.default.param(e)}},{key:"__sendMessage",value:function(e){var t,a;return null!=(t=this.iframe)&&null!=(a=t[0].contentWindow)?a.postMessage(JSON.stringify(e),"*"):void 0}},{key:"__createIframe",value:function(){var e,t=this;if(!this.iframe)return this.iframe=a.default("<iframe>",{src:this.remoteUrl(),marginheight:0,marginwidth:0,frameborder:0,allowTransparency:"true"}).addClass("uploadcare--tab__iframe").appendTo(this.container).on("load",(function(){var e,a,i,n,r,o,l,s;for(t.iframe.css("opacity","1"),e=0,i=(r=da.urls).length;e<i;e++)s=r[e],t.__sendMessage({type:"embed-css",url:s});for(a=0,n=(o=da.styles).length;a<n;a++)l=o[a],t.__sendMessage({type:"embed-css",style:l})})),this.container.addClass("uploadcare--tab_remote"),e=this.iframe[0].contentWindow,ua("file-selected",e,(function(e){var i,n,r;return r=function(){var a,i,n,r,o;if(e.alternatives)for(a=0,n=(r=t.settings.preferredTypes).length;a<n;a++)for(i in o=r[a],o=le(o),e.alternatives)if(o.test(i))return e.alternatives[i];return e.url}(),n=a.default.extend({source:t.name},e.info||{}),i=new Et(r,t.settings,n),e.filename&&i.setName(e.filename),null!=e.is_image&&i.setIsImage(e.is_image),t.dialogApi.addFiles([i.promise()])})),ua("open-new-window",e,(function(e){var a,i,n;if(t.settings.debugUploads&&V("Open new window message.",t.name),i=window.open(e.url,"_blank"))return n=function(){return t.settings.debugUploads&&V("Window is closed.",t.name),t.__sendMessage({type:"navigate",fragment:""})},"closed"in i?a=setInterval((function(){if(i.closed)return clearInterval(a),n()}),100):i.addEventListener("exit",n);L("Can't open new window. Possible blocked.",t.name)})),this.dialogApi.done((function(){return ca("file-selected",e),ca("open-new-window",e)}))}}]),e}(),fa={version:"3.17.0",jQuery:a.default,utils:{abilities:{fileAPI:C,sendFileAPI:S,dragAndDrop:F,canvas:T,fileDragAndDrop:j,iOSVersion:D,Blob:E,URL:U,FileReader:B},Collection:Xt,UniqCollection:Jt,CollectionOfPromises:Zt,imageLoader:ct,videoLoader:dt,log:R,debug:V,warn:L,warnOnce:q,registerMessage:ua,unregisterMessage:ca,unique:H,defer:W,gcd:G,once:Y,wrapToPromise:X,then:J,bindAll:Z,upperCase:Q,publicCallbacks:$,uuid:ee,splitUrlRegex:te,uuidRegex:ae,groupIdRegex:ie,cdnUrlRegex:ne,splitCdnUrl:re,escapeRegExp:oe,globRegexp:le,normalizeUrl:se,fitText:ue,fitSizeInCdnLimit:function(e){return ce(e,[2048,2048])},fitSize:ce,applyCropCoordsToInfo:de,fileInput:fe,fileSelectDialog:he,fileSizeLabels:me,readableFileSize:ge,ajaxDefaults:_e,jsonp:ve,canvasToBlob:be,taskRunner:ye,fixedPipe:xe,isFile:qt,valueToFile:Kt,image:{shrinkFile:vt,shrinkImage:mt,drawFileToCanvas:bt,readJpegChunks:yt,replaceJpegChunk:wt,getExif:xt,parseExifOrientation:zt,hasTransparency:Ct},pusher:{getPusher:Mt},isFileGroup:Ht,valueToGroup:Wt,isFileGroupsEqual:Gt},settings:{globals:nt,build:ot,common:rt,waitForSettings:lt,CssCollector:st},locale:ea,tabsCss:da,files:{BaseFile:St,ObjectFile:Tt,InputFile:jt,UrlFile:Et,UploadedFile:Bt,ReadyFile:Rt,FileGroup:na,SavedFileGroup:ra},Pusher:Dt,FileGroup:oa,loadFileGroup:la,fileFrom:Lt,filesFrom:Nt,__exports:{},namespace:function(e,t){var a=fa;if(e)for(var i=e.split("."),n=0,r=i.length;n<r;n++){var o=i[n];a[o]||(a[o]={}),a=a[o]}return t(a)},expose:function(e,t){for(var a=e.split("."),i=a.pop(),n=fa.__exports,r=fa,o=0,l=a.length;o<l;o++){var s=a[o];n[s]||(n[s]={}),n=n[s],r=null!=r?r[s]:void 0}n[i]=t||r[i]}};function ha(e){return function(t){return t(e)}}var ma={plugin:ha(fa),version:"3.17.0",jQuery:a.default,defaults:r(r({},Le),{},{allTabs:Xe.tabs.all}),globals:rt,start:rt,fileFrom:Lt,filesFrom:Nt,FileGroup:oa,loadFileGroup:la,locales:["en"]},ga=/["'&<>]/,_a=function(e){var t,a=""+e,i=ga.exec(a);if(!i)return a;var n="",r=0,o=0;for(r=i.index;r<a.length;r++){switch(a.charCodeAt(r)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#39;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}o!==r&&(n+=a.substring(o,r)),o=r+1,n+=t}return o!==r?n+a.substring(o,r):n};var va={dialog:function(){return'<div class="uploadcare--dialog"><div class="uploadcare--dialog__container"><button type="button" title="'.concat(ea.t("dialog.close"),'" aria-label="').concat(ea.t("dialog.close"),'" class="uploadcare--button uploadcare--button_icon uploadcare--button_muted uploadcare--dialog__close"><svg role="presentation" width="32" height="32" class="uploadcare--icon"><use xlink:href="#uploadcare--icon-close"></use></svg></button><div class="uploadcare--dialog__placeholder"></div></div><div class="uploadcare--powered-by uploadcare--dialog__powered-by">').concat(ea.t("dialog.footer.text"),' <a class="uploadcare--link uploadcare--powered-by__link" href="https://uploadcare.com/uploader/').concat("3.17.0",'/" target="_blank"><svg width="32" height="32" role="presentation" class="uploadcare--icon uploadcare--powered-by__logo"><use xlink:href="#uploadcare--icon-uploadcare"></use></svg> ').concat(ea.t("dialog.footer.link"),"</a></div></div>")},dialog__panel:function(){return'<div class="uploadcare--panel"><div class="uploadcare--menu uploadcare--panel__menu"><button type="button" title="'.concat(ea.t("dialog.openMenu"),'" aria-label="').concat(ea.t("dialog.openMenu"),'" class="uploadcare--button uploadcare--button_icon uploadcare--button_muted uploadcare--menu__toggle"><svg role="presentation" width="32" height="32" class="uploadcare--icon uploadcare--menu__toggle-icon uploadcare--menu__toggle-icon_menu"><use xlink:href="#uploadcare--icon-menu"></use></svg> <svg role="presentation" width="32" height="32" class="uploadcare--icon uploadcare--menu__toggle-icon uploadcare--menu__toggle-icon_back"><use xlink:href="#uploadcare--icon-back"></use></svg></button><div class="uploadcare--menu__items"></div></div><div class="uploadcare--panel__content"><div class="uploadcare--footer uploadcare--panel__footer"><div class="uploadcare--footer__additions uploadcare--panel__message"></div><button type="button" class="uploadcare--button uploadcare--footer__button uploadcare--panel__show-files">').concat(ea.t("dialog.showFiles"),'<div class="uploadcare--panel__file-counter"></div></button> <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--footer__button uploadcare--panel__done">').concat(ea.t("dialog.done"),'</button></div><div class="uploadcare--powered-by uploadcare--panel__powered-by">').concat(ea.t("dialog.footer.text"),' <a class="uploadcare--link uploadcare--powered-by__link" href="https://uploadcare.com/uploader/').concat("3.17.0",'/" target="_blank"><svg width="32" height="32" role="presentation" class="uploadcare--icon uploadcare--powered-by__logo"><use xlink:href="#uploadcare--icon-uploadcare"></use></svg> ').concat(ea.t("dialog.footer.link"),"</a></div></div></div>")},progress__text:function(){return'<div class="uploadcare--progress__text-container"><div class="uploadcare--progress__text"></div></div>'},"tab-camera-capture":function(){return'<div class="uploadcare--tab__content"><div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title">'.concat(ea.t("dialog.tabs.camera.title"),'</div><div class="uploadcare--camera__controls"><button type="button" class="uploadcare--button uploadcare--button_size_big uploadcare--button_primary uploadcare--camera__button uploadcare--camera__button_type_photo">').concat(ea.t("dialog.tabs.camera.capture"),'</button> <button type="button" class="uploadcare--button uploadcare--button_size_big uploadcare--button_primary uploadcare--camera__button uploadcare--camera__button_type_video">').concat(ea.t("dialog.tabs.camera.startRecord"),"</button></div></div>")},"tab-camera":function(){return'<div class="uploadcare--tab__content"><div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title">'.concat(ea.t("dialog.tabs.camera.title"),'</div><div class="uploadcare--media uploadcare--camera__video-container"><video muted class="uploadcare--media__video uploadcare--camera__video uploadcare--camera__video_mirrored"></video><button type="button" class="uploadcare--button uploadcare--button_size_small uploadcare--button_overlay uploadcare--camera__button uploadcare--camera__button_type_mirror">').concat(ea.t("dialog.tabs.camera.mirror"),'</button></div><div class="uploadcare--camera__controls"><button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--camera__button uploadcare--camera__button_type_start-record">').concat(ea.t("dialog.tabs.camera.startRecord"),'</button> <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--camera__button uploadcare--camera__button_type_capture">').concat(ea.t("dialog.tabs.camera.capture"),'</button> <button type="button" class="uploadcare--button uploadcare--camera__button uploadcare--camera__button_type_cancel-record">').concat(ea.t("dialog.tabs.camera.cancelRecord"),'</button> <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--camera__button uploadcare--camera__button_type_stop-record">').concat(ea.t("dialog.tabs.camera.stopRecord"),'</button></div><div class="uploadcare--camera__please-allow"><div class="uploadcare--text uploadcare--text_size_medium">').concat(ea.t("dialog.tabs.camera.pleaseAllow.title"),'</div><div class="uploadcare--text">').concat(ea.t("dialog.tabs.camera.pleaseAllow.text"),'</div></div><div class="uploadcare--camera__not-found"><div class="uploadcare--text uploadcare--text_size_medium">').concat(ea.t("dialog.tabs.camera.notFound.title"),'</div><div class="uploadcare--text">').concat(ea.t("dialog.tabs.camera.notFound.text"),'</div></div><button type="button" class="uploadcare--button uploadcare--camera__button uploadcare--camera__button_type_retry">').concat(ea.t("dialog.tabs.camera.retry"),"</button></div>")},"tab-file":function(){return'<div class="uploadcare--tab__content uploadcare--draganddrop"><div class="uploadcare--text uploadcare--text_size_extra-large uploadcare--dragging__show">'.concat(ea.t("draghere"),'</div><div class="uploadcare--draganddrop__title uploadcare--dragging__hide"><div class="uploadcare--draganddrop__supported"><div class="uploadcare--text uploadcare--text_size_extra-large">').concat(ea.t("dialog.tabs.file.drag"),'</div><div class="uploadcare--text uploadcare--text_size_small uploadcare--text_muted">').concat(ea.t("dialog.tabs.file.or"),'</div></div><div class="uploadcare--text uploadcare--text_size_large uploadcare--draganddrop__not-supported">').concat(ea.t("dialog.tabs.file.nodrop"),'</div></div><button type="button" class="uploadcare--button uploadcare--button_size_big uploadcare--button_primary uploadcare--tab__action-button needsclick uploadcare--dragging__hide">').concat(ea.t("dialog.tabs.file.button"),'</button><div class="uploadcare--file-sources uploadcare--dragging__hide"><div class="uploadcare--text uploadcare--text_size_small uploadcare--text_muted uploadcare--file-sources__caption">').concat(ea.t("dialog.tabs.file.also"),'</div><div class="uploadcare--file-sources__items"><button type="button" class="uploadcare--button uploadcare--button_icon uploadcare--file-source uploadcare--file-source_all uploadcare--file-sources_item"><svg role="presentation" width="32" height="32" class="uploadcare--icon"><use xlink:href="#uploadcare--icon-more"></use></svg></button></div></div></div>')},"tab-preview-error":function(e){var t=e.debugUploads,a=e.errorType,i=e.error;return'<div class="uploadcare--tab__content uploadcare--preview__content uploadcare--error"><div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title uploadcare--preview__title">'.concat(ea.t("dialog.tabs.preview.error."+a+".title")||ea.t("dialog.tabs.preview.error.default.title"),'</div><div class="uploadcare--text">').concat(t&&(null==i?void 0:i.message)||ea.t("serverErrors.".concat(null==i?void 0:i.code))||(null==i?void 0:i.message)||ea.t("dialog.tabs.preview.error."+a+".text")||ea.t("dialog.tabs.preview.error.default.text"),'</div><button type="button" class="uploadcare--button uploadcare--preview__back">').concat(ea.t("dialog.tabs.preview.error."+a+".back")||ea.t("dialog.tabs.preview.error.default.back"),"</button></div>")},"tab-preview-image":function(e){var t=e.src,a=e.name,i=void 0===a?"":a,n=e.crop;return'<div class="uploadcare--tab__header"><div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title uploadcare--preview__title">'.concat(ea.t("dialog.tabs.preview.image.title"),'</div></div><div class="uploadcare--tab__content uploadcare--preview__content"><div class="uploadcare--media"><img src="').concat(t,'" title="').concat(_a(i),'" alt="').concat(_a(i),'" class="uploadcare--media__image uploadcare--preview__image"></div></div><div class="uploadcare--footer uploadcare--tab__footer"><div class="uploadcare--footer__additions">').concat(n?'<div class="uploadcare--crop-sizes"><div role="button" tabindex="0" class="uploadcare--button uploadcare--button_icon uploadcare--crop-sizes__item" data-caption="free"><div class="uploadcare--crop-sizes__icon"></div></div></div>':"",'</div><button type="button" class="uploadcare--button uploadcare--footer__button uploadcare--preview__back">').concat(ea.t("dialog.tabs.preview.image.change"),'</button> <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--footer__button uploadcare--preview__done">').concat(ea.t("dialog.tabs.preview.done"),"</button></div>")},"tab-preview-multiple-file":function(){return'<div class="uploadcare--file uploadcare--files__item uploadcare--file_status_uploading"><div class="uploadcare--file__description" tabindex="0"><div class="uploadcare--file__preview"></div><div class="uploadcare--file__name">'.concat(ea.t("dialog.tabs.preview.unknownName"),'</div><div class="uploadcare--file__size"></div><div class="uploadcare--file__error"></div></div><div class="uploadcare--file__progressbar"><div class="uploadcare--progressbar"><div class="uploadcare--progressbar__value"></div></div></div><button type="button" class="uploadcare--button uploadcare--button_icon uploadcare--button_muted uploadcare--file__remove"><svg role="presentation" width="32" height="32" class="uploadcare--icon"><use xlink:href="#uploadcare--icon-remove"></use></svg></button></div>')},"tab-preview-multiple":function(){return'<div class="uploadcare--tab__header"><div id="preview__title" class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title uploadcare--preview__title" role="status" aria-live="assertive"></div></div><div class="uploadcare--tab__content uploadcare--preview__content"><div class="uploadcare--files"></div></div><div class="uploadcare--footer uploadcare--tab__footer"><div class="uploadcare--footer__additions uploadcare--preview__message"></div><button type="button" class="uploadcare--button uploadcare--footer__button uploadcare--preview__back">'.concat(ea.t("dialog.tabs.preview.multiple.clear"),'</button> <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--footer__button uploadcare--preview__done" aria-describedby="preview_title">').concat(ea.t("dialog.tabs.preview.multiple.done"),"</button></div>")},"tab-preview-regular":function(e){var t=e.file;return'<div class="uploadcare--tab__header"><div id="tab__title" class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title" role="status" aria-live="assertive">'.concat(ea.t("dialog.tabs.preview.regular.title"),'</div></div><div class="uploadcare--tab__content uploadcare--preview__content"><div class="uploadcare--text uploadcare--preview__file-name">').concat(_a(t.name)||ea.t("dialog.tabs.preview.unknownName")," ").concat(ge(t.size,"",", "),'</div></div><div class="uploadcare--footer uploadcare--tab__footer"><button type="button" class="uploadcare--button uploadcare--footer__button uploadcare--preview__back">').concat(ea.t("dialog.tabs.preview.change"),'</button> <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--footer__button uploadcare--preview__done" aria-describedby="tab__title">').concat(ea.t("dialog.tabs.preview.done"),"</button></div>")},"tab-preview-unknown":function(){return'<div class="uploadcare--tab__header"><div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title uploadcare--preview__title">'.concat(ea.t("dialog.tabs.preview.unknown.title"),'</div></div><div class="uploadcare--tab__content uploadcare--preview__content"><div class="uploadcare--text uploadcare--preview__file-name"></div></div><div class="uploadcare--footer uploadcare--tab__footer"><button type="button" class="uploadcare--button uploadcare--footer__button uploadcare--preview__back">').concat(ea.t("dialog.tabs.preview.change"),'</button> <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--footer__button uploadcare--preview__done">').concat(ea.t("dialog.tabs.preview.unknown.done"),"</button></div>")},"tab-preview-video":function(){return'<div class="uploadcare--tab__header"><div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title uploadcare--preview__title">'.concat(ea.t("dialog.tabs.preview.video.title"),'</div></div><div class="uploadcare--tab__content uploadcare--preview__content"><div class="uploadcare--media"><video controls class="uploadcare--media__video uploadcare--preview__video"></video></div></div><div class="uploadcare--footer uploadcare--tab__footer"><button type="button" class="uploadcare--button uploadcare--footer__button uploadcare--preview__back">').concat(ea.t("dialog.tabs.preview.video.change"),'</button> <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--footer__button uploadcare--preview__done">').concat(ea.t("dialog.tabs.preview.done"),"</button></div>")},"tab-url":function(){return'<div class="uploadcare--tab__content"><div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title">'.concat(ea.t("dialog.tabs.url.title"),'</div><div class="uploadcare--text">').concat(ea.t("dialog.tabs.url.line1"),'</div><div class="uploadcare--text">').concat(ea.t("dialog.tabs.url.line2"),'</div><form class="uploadcare--form"><input type="text" class="uploadcare--input" placeholder="').concat(ea.t("dialog.tabs.url.input"),'"> <button type="submit" class="uploadcare--button uploadcare--button_primary uploadcare--tab__action-button" type="submit">').concat(ea.t("dialog.tabs.url.button"),"</button></form></div>")},"widget-button":function(e){var t=e.caption,a=e.name;return'<button type="button" class="uploadcare--widget__button uploadcare--widget__button_type_'.concat(a,'">').concat(t,"</button>")},"widget-file-name":function(e){var t=e.name,a=e.size;return'<div class="uploadcare--link uploadcare--widget__file-name" tabindex="0" role="link">'.concat(_a(ue(t,20)),'</div><div class="uploadcare--widget__file-size">, ').concat(ge(a),"</div>")},widget:function(){return'<div class="uploadcare--widget" aria-describedby="uploadcare--widget__text uploadcare--widget__progress"><div class="uploadcare--widget__dragndrop-area">'.concat(ea.t("draghere"),'</div><div id="uploadcare--widget__progress" class="uploadcare--widget__progress" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div><div id="uploadcare--widget__text" class="uploadcare--widget__text" aria-live="polite"></div></div>')},icons:function(){return'<svg width="0" height="0" style="position:absolute"><symbol viewBox="0 0 32 32" id="uploadcare--icon-back" xmlns="http://www.w3.org/2000/svg"><path d="M21.132 9.06a1.5 1.5 0 00-2.122-2.12L9.88 16.07l9.06 9.061a1.5 1.5 0 102.122-2.121l-6.94-6.94 7.01-7.01z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-box" xmlns="http://www.w3.org/2000/svg"><path d="M4.962 9C4.385 9 4 9.384 4 9.96v8.243C4 20.793 6.213 23 8.811 23c1.829 0 3.464-1.043 4.33-2.578.866 1.535 2.406 2.578 4.33 2.578 2.695 0 4.812-2.206 4.812-4.797 0-2.686-2.117-4.886-4.811-4.886-1.829 0-3.465 1.043-4.33 2.578-.77-1.535-2.406-2.578-4.33-2.578a4.957 4.957 0 00-2.887.96V9.958c0-.48-.482-.959-.963-.959zm17.08 4.257a.841.841 0 00-.33.15c-.385.288-.5.965-.211 1.349l2.526 3.357-2.526 3.358c-.289.384-.174 1.061.21 1.35.385.287 1.065.173 1.354-.21l2.105-2.879 2.105 2.878c.288.384.968.498 1.353.21.385-.288.499-.965.21-1.349l-2.526-3.358 2.526-3.357c.289-.384.175-1.061-.21-1.35-.385-.287-1.065-.203-1.353.18l-2.105 2.879-2.105-2.878c-.217-.288-.657-.406-1.023-.33zm-13.23 2.068c1.539 0 2.886 1.344 2.886 2.878.096 1.535-1.25 2.878-2.887 2.878a2.89 2.89 0 01-2.886-2.878c0-1.63 1.347-2.878 2.886-2.878zm8.66 0a2.89 2.89 0 012.886 2.878c0 1.535-1.347 2.878-2.886 2.878a2.89 2.89 0 01-2.887-2.878c0-1.63 1.347-2.878 2.887-2.878z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-camera" xmlns="http://www.w3.org/2000/svg"><path d="M21 10h3c1.653 0 3 1.343 3 3v9c0 1.656-1.344 3-3.001 3H8A3 3 0 015 22v-9a3 3 0 013-3h3v-.999C11 7.901 11.895 7 13 7h6c1.113 0 2 .896 2 2.001V10zm-5 12a4.5 4.5 0 100-9 4.5 4.5 0 000 9zm0-2a2.5 2.5 0 110-5 2.5 2.5 0 010 5z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-close" xmlns="http://www.w3.org/2000/svg"><path d="M10.06 7.94a1.5 1.5 0 00-2.12 2.12L13.878 16l-5.94 5.94a1.5 1.5 0 002.122 2.12L16 18.122l5.94 5.94a1.5 1.5 0 002.12-2.122L18.122 16l5.94-5.94a1.5 1.5 0 00-2.122-2.12L16 13.878l-5.94-5.94z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-crop-free" xmlns="http://www.w3.org/2000/svg"><path d="M8 12a2.004 2.004 0 01-2-2.01V8.01C6 6.897 6.893 6 8.01 6h1.98c1.109 0 2.005.888 2.01 2h8c.005-1.107.896-2 2.01-2h1.98C25.103 6 26 6.893 26 8.01v1.98A2.004 2.004 0 0124 12v8c1.107.005 2 .896 2 2.01v1.98c0 1.112-.893 2.01-2.01 2.01h-1.98A2.004 2.004 0 0120 24h-8a2.004 2.004 0 01-2.01 2H8.01A2.004 2.004 0 016 23.99v-1.98c0-1.109.888-2.005 2-2.01v-8zm2 0v8a2.004 2.004 0 012 2h8a2.004 2.004 0 012-2v-8a2.004 2.004 0 01-2-2h-8a2.004 2.004 0 01-2 2zm12 10.01v1.98c0 .01 0 .01.01.01h1.98c.01 0 .01 0 .01-.01v-1.98c0-.01 0-.01-.01-.01h-1.98c-.01 0-.01 0-.01.01zm0-14v1.98c0 .01 0 .01.01.01h1.98c.01 0 .01 0 .01-.01V8.01C24 8 24 8 23.99 8h-1.98C22 8 22 8 22 8.01zm-14 14v1.98c0 .01 0 .01.01.01h1.98c.01 0 .01 0 .01-.01v-1.98c0-.01 0-.01-.01-.01H8.01C8 22 8 22 8 22.01zm0-14v1.98c0 .01 0 .01.01.01h1.98c.01 0 .01 0 .01-.01V8.01C10 8 10 8 9.99 8H8.01C8 8 8 8 8 8.01z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-dropbox" xmlns="http://www.w3.org/2000/svg"><path d="M9.5 5L16 9.141l-6.5 4.141L3 9.141 9.5 5zm13 0L29 9.141l-6.5 4.141L16 9.141 22.5 5zM3 17.423l6.5-4.141 6.5 4.141-6.5 4.141L3 17.423zm19.5-4.141l6.5 4.141-6.5 4.141-6.5-4.141 6.5-4.141zm-13 9.662l6.5-4.14 6.5 4.14-6.5 4.141-6.5-4.14z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-empty-pubkey" xmlns="http://www.w3.org/2000/svg"><path d="M16 31C7.716 31 1 24.284 1 16 1 7.716 7.716 1 16 1c8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15zm0-13.704a1.296 1.296 0 100-2.592 1.296 1.296 0 000 2.592z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-error" xmlns="http://www.w3.org/2000/svg"><path d="M18.122 23.93V21a.583.583 0 00-.179-.434.585.585 0 00-.423-.175h-2.616a.585.585 0 00-.424.175.583.583 0 00-.179.434v2.93c0 .172.06.316.18.433.118.117.26.175.423.175h2.616a.585.585 0 00.423-.175.583.583 0 00.18-.434zm-.037-6.326l.339-9.05a.404.404 0 00-.189-.351c-.163-.135-.313-.203-.452-.203H14.64c-.138 0-.288.068-.452.203-.125.086-.188.215-.188.388l.32 9.013c0 .123.063.224.188.304.126.08.277.12.452.12h2.484c.176 0 .324-.04.443-.12a.41.41 0 00.198-.304z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-evernote" xmlns="http://www.w3.org/2000/svg"><path d="M7.998 8.648h2.245a.233.233 0 00.232-.233s-.028-1.931-.028-2.468v-.006c0-.441.093-.825.253-1.148l.077-.144a.05.05 0 00-.026.014l-4.359 4.34a.05.05 0 00-.016.025c.09-.044.213-.106.23-.113.38-.172.84-.267 1.392-.267M24.196 6.56c-.553-.2-1.675-.408-3.084-.575-1.134-.134-2.467-.123-3.272-.098-.097-.665-.56-1.272-1.08-1.482-1.384-.56-3.523-.424-4.071-.27-.437.123-.92.373-1.188.76-.18.258-.297.59-.298 1.051 0 .262.007.878.014 1.426.006.548.014 1.04.014 1.043a.887.887 0 01-.884.888H8.103c-.479 0-.845.08-1.124.208-.28.127-.478.3-.628.503-.3.404-.352.902-.351 1.411 0 0 .004.416.104 1.22.083.622.756 4.971 1.394 6.294.248.514.413.73.9.956 1.083.466 3.559.984 4.72 1.133 1.158.148 1.885.46 2.318-.451.002-.003.087-.227.204-.557.377-1.144.43-2.16.43-2.894 0-.075.108-.078.108 0 0 .519-.098 2.354 1.283 2.847.545.194 1.676.367 2.826.502 1.039.12 1.793.53 1.793 3.208 0 1.628-.34 1.851-2.122 1.851-1.444 0-1.994.038-1.994-1.113 0-.932.917-.834 1.596-.834.304 0 .083-.226.083-.8 0-.572.357-.902.02-.91-2.35-.066-3.733-.003-3.733 2.947 0 2.679 1.021 3.176 4.357 3.176 2.614 0 3.536-.086 4.616-3.45.213-.663.73-2.69 1.043-6.092.197-2.15-.187-8.644-.491-10.282-.178-.958-.746-1.43-1.259-1.616zm-3.3 8.792a4.75 4.75 0 00-.923.056c.081-.66.353-1.473 1.316-1.439 1.066.037 1.216 1.049 1.22 1.734-.45-.201-1.006-.33-1.613-.35"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-facebook" xmlns="http://www.w3.org/2000/svg"><path d="M28 16c0-6.627-5.373-12-12-12S4 9.373 4 16c0 5.99 4.388 10.954 10.125 11.854V19.47h-3.047V16h3.047v-2.644c0-3.007 1.792-4.668 4.533-4.668 1.312 0 2.686.234 2.686.234v2.953H19.83c-1.491 0-1.956.925-1.956 1.875V16h3.328l-.532 3.469h-2.796v8.385C23.612 26.954 28 21.99 28 16z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-file" xmlns="http://www.w3.org/2000/svg"><path d="M19 6l5 5h-4c-.556 0-1-.448-1-1V6zm5 7v11.192c0 .995-.808 1.808-1.804 1.808H9.804A1.808 1.808 0 018 24.2V7.74C8 6.602 8.627 6 9.778 6H17v4.994c0 1.12.898 2.006 2.006 2.006H24z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-flickr" xmlns="http://www.w3.org/2000/svg"><path d="M11 20c-2.212 0-4-1.79-4-4s1.79-4 4-4a4 4 0 010 8zm10.001 0a4 4 0 11-.002-8 4 4 0 01.002 8z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-gdrive" xmlns="http://www.w3.org/2000/svg"><path d="M19.461 6l7.109 12h-7.004L12.539 6h6.922zm-9.27 19l3.467-6H27l-3.466 6H10.192zM5 18.841l6.618-11.36 3.566 5.929-6.722 11.36L5 18.84z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-gphotos" xmlns="http://www.w3.org/2000/svg"><path d="M8.797 9.5l-5.632 5.841c-.064.07-.165.228-.165.33 0 .202.127.329.33.329h8.869c1.444 0 2.501-1.09 2.501-2.534V9.5H8.797zM28.67 16H19.8c-1.444 0-2.501 1.09-2.501 2.534V22.5h5.903l5.632-5.841c.064-.07.165-.228.165-.33 0-.202-.127-.329-.33-.329zM16.659 3.165C16.589 3.1 16.43 3 16.329 3c-.202 0-.329.127-.329.33v8.869c0 1.444 1.09 2.501 2.534 2.501H22.5V8.797l-5.841-5.632zM13.466 17.3H9.5v5.903l5.841 5.632c.07.064.228.165.33.165.202 0 .329-.127.329-.33v-8.869c0-1.444-1.09-2.501-2.534-2.501z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-huddle" xmlns="http://www.w3.org/2000/svg"><path d="M13.63 14.39c.07-.102.17-.26.2-.313 1.474-2.683 6.857-2.686 8.49 1.002.43.968.67 1.97.675 3.023.008 1.978.004 3.957.002 5.936 0 1.192-.68 1.945-1.763 1.962-1.087.016-1.856-.766-1.865-1.944-.014-1.874.003-3.749-.006-5.623-.006-1.351-.654-2.388-1.719-2.793-1.775-.675-3.59.305-3.892 2.159-.122.747-.104 1.52-.114 2.281-.016 1.336-.002 2.673-.005 4.01-.003 1.125-.669 1.866-1.707 1.907-1.06.042-1.828-.668-1.922-1.78-.007-.086-.003-.173-.003-.26 0-5.31-.002-10.622.002-15.932 0-1.2.731-2.016 1.79-2.025 1.05-.01 1.832.74 1.837 1.792.01 2.013.003 4.026.005 6.04 0 .12.002.391-.005.558"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-instagram" xmlns="http://www.w3.org/2000/svg"><path d="M16 5c2.987 0 3.362.013 4.535.066 1.171.054 1.97.24 2.67.511a5.391 5.391 0 011.949 1.27 5.392 5.392 0 011.269 1.948c.272.7.457 1.499.51 2.67.054 1.173.067 1.548.067 4.535s-.013 3.362-.066 4.535c-.054 1.171-.24 1.97-.511 2.67a5.392 5.392 0 01-1.27 1.949 5.391 5.391 0 01-1.948 1.269c-.7.271-1.499.457-2.67.51-1.173.054-1.548.067-4.535.067s-3.362-.013-4.535-.066c-1.171-.054-1.97-.24-2.67-.511a5.392 5.392 0 01-1.949-1.27 5.391 5.391 0 01-1.268-1.948c-.273-.7-.458-1.499-.512-2.67C5.013 19.362 5 18.987 5 16s.013-3.362.066-4.535c.054-1.171.24-1.97.512-2.67a5.391 5.391 0 011.268-1.949 5.392 5.392 0 011.949-1.269c.7-.271 1.499-.457 2.67-.51C12.638 5.012 13.013 5 16 5zm0 1.982c-2.937 0-3.285.011-4.445.064-1.072.049-1.655.228-2.042.379-.514.2-.88.438-1.265.823a3.41 3.41 0 00-.823 1.264c-.15.388-.33.97-.379 2.043-.053 1.16-.064 1.508-.064 4.445 0 2.937.011 3.285.064 4.445.049 1.072.228 1.655.379 2.043.2.513.438.88.823 1.264.385.385.751.624 1.265.823.387.15.97.33 2.042.379 1.16.053 1.508.064 4.445.064 2.937 0 3.285-.011 4.445-.064 1.072-.049 1.655-.228 2.042-.379.514-.2.88-.438 1.265-.823.385-.385.624-.751.823-1.264.15-.388.33-.97.379-2.043.053-1.16.064-1.508.064-4.445 0-2.937-.011-3.285-.064-4.445-.049-1.072-.228-1.655-.379-2.043-.2-.513-.438-.88-.823-1.264a3.408 3.408 0 00-1.265-.823c-.387-.15-.97-.33-2.042-.379-1.16-.053-1.508-.064-4.445-.064zm0 3.37a5.649 5.649 0 110 11.297 5.649 5.649 0 010-11.298zm0 9.315a3.667 3.667 0 100-7.334 3.667 3.667 0 000 7.334zm7.192-9.539a1.32 1.32 0 11-2.64 0 1.32 1.32 0 012.64 0z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-menu" xmlns="http://www.w3.org/2000/svg"><path d="M7.5 10a1.5 1.5 0 010-3h17a1.5 1.5 0 010 3h-17zm0 7a1.5 1.5 0 010-3h17a1.5 1.5 0 010 3h-17zm0 7a1.5 1.5 0 010-3h17a1.5 1.5 0 010 3h-17z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-more" xmlns="http://www.w3.org/2000/svg"><path d="M21 16a3 3 0 116 0 3 3 0 01-6 0zm-8 0a3 3 0 116 0 3 3 0 01-6 0zm-8 0a3 3 0 116 0 3 3 0 01-6 0z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-nft" xmlns="http://www.w3.org/2000/svg"><path d="M15.76 3.252c-.059.138-1.805 3.07-3.881 6.515-2.077 3.446-3.793 6.31-3.814 6.365-.028.072 1.1.773 3.955 2.46l3.995 2.36 3.992-2.36c2.87-1.697 3.983-2.39 3.955-2.463C23.817 15.753 16.052 3 15.968 3c-.057 0-.151.113-.209.252zM8.073 17.829c.154.263 7.908 11.172 7.94 11.171.053-.002 7.98-11.203 7.95-11.234-.03-.029-7.439 4.335-7.748 4.563l-.19.14-3.835-2.265a734.48 734.48 0 01-4.01-2.377c-.158-.101-.167-.101-.107.002z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-onedrive" xmlns="http://www.w3.org/2000/svg"><path d="M11.715 16.427c.584-2.413 2.699-4.177 5.209-4.177 1.483 0 2.873.621 3.878 1.7.425-.14.922-.248 1.364-.258v-.16c0-3.054-2.214-5.532-4.944-5.532-1.952 0-3.624 1.278-4.428 3.115a3.55 3.55 0 00-2.033-.658c-2.142 0-3.877 1.94-3.877 4.336 0 .258.028.51.068.754-1.652.167-2.946 1.9-2.946 3.79 0 .02.005.037.005.056-.001.017-.011.035-.011.052 0 .757.257 1.449.673 2.007a3.14 3.14 0 002.568 1.317h1.513a4.49 4.49 0 01-.477-1.987c-.001-2.138 1.476-3.93 3.438-4.355zm13.752 2.375c-.03 0-.06.01-.09.01.008-.09.026-.18.026-.273 0-1.812-1.431-3.279-3.198-3.279-.703 0-1.347.24-1.877.635-.655-1.249-1.924-2.107-3.405-2.107-2.146 0-3.885 1.784-3.885 3.984 0 .029.008.053.009.082a2.764 2.764 0 00-.431-.045c-1.602 0-2.898 1.33-2.898 2.973 0 .205.02.406.059.599C10.05 22.87 11.322 24 12.856 24h12.847v-.023C26.99 23.85 28 22.753 28 21.402c0-1.435-1.134-2.6-2.533-2.6z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-remove" xmlns="http://www.w3.org/2000/svg"><path d="M22.142 24.009c-.078 1.1-1.044 1.991-2.15 1.991h-7.983c-1.11 0-2.073-.897-2.151-1.991l-.786-11.002A.924.924 0 0110.007 12h11.986c.556 0 .975.45.935 1.007l-.786 11.002zM13 7V6c0-.556.444-1 .99-1h4.02A1 1 0 0119 6v1h4c.556 0 1 .447 1 .999v1.002A.997.997 0 0123 10H9c-.555 0-1-.447-1-.999V7.999A.996.996 0 019 7h4z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-uploadcare" xmlns="http://www.w3.org/2000/svg"><path fill="#ffd800" d="M16 31C7.716 31 1 24.284 1 16 1 7.716 7.716 1 16 1c8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15zm0-13.704a1.296 1.296 0 100-2.592 1.296 1.296 0 000 2.592z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-url" xmlns="http://www.w3.org/2000/svg"><path d="M16 5c6.074 0 11 4.926 11 11s-4.926 11-11 11S5 22.074 5 16 9.926 5 16 5zm6.076 6.327a.992.992 0 10-1.403-1.403l-1.128 1.128c-1.431-.92-3.47-.768-4.697.461l-3.186 3.185a3.7 3.7 0 00-1.09 2.636c0 .748.22 1.46.624 2.067l-1.272 1.272a.992.992 0 101.402 1.403l1.273-1.272c.606.405 1.32.623 2.067.623.997 0 1.933-.386 2.634-1.089l3.187-3.186a3.729 3.729 0 00.464-4.7l1.125-1.125zm-4.252 3.841a.982.982 0 00.701-.29l.95-.95c.067.188.114.385.114.591 0 .466-.178.904-.505 1.23l-3.186 3.187c-.472.47-1.197.588-1.813.382l.793-.792a.992.992 0 10-1.404-1.404l-.801.802a1.752 1.752 0 01-.115-.59c0-.468.179-.905.506-1.232l3.186-3.186a1.736 1.736 0 011.23-.507c.207 0 .404.049.592.116l-.948.95a.992.992 0 00.7 1.693z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-vk" xmlns="http://www.w3.org/2000/svg"><path d="M27.791 21.484c-.416-.767-1.212-1.708-2.386-2.824l-.038-.038c-.558-.532-.895-.882-1.037-1.06-.258-.341-.316-.686-.175-1.036.1-.264.475-.821 1.125-1.673.341-.451.612-.813.812-1.086 1.441-1.959 2.066-3.21 1.874-3.756l-.074-.127c-.05-.077-.18-.147-.387-.211-.209-.064-.475-.075-.8-.032l-3.599.025a.457.457 0 00-.25.007l-.163.038-.062.032-.05.039a.56.56 0 00-.137.134.882.882 0 00-.125.223 21.072 21.072 0 01-1.337 2.875 27.31 27.31 0 01-.85 1.373c-.258.388-.475.673-.65.856a4.57 4.57 0 01-.475.44c-.141.112-.25.158-.324.141a8.987 8.987 0 01-.213-.05.843.843 0 01-.281-.314 1.425 1.425 0 01-.144-.498c-.025-.2-.04-.373-.044-.518-.003-.144-.002-.349.007-.613.008-.264.012-.443.012-.536 0-.324.007-.675.019-1.054l.031-.901c.009-.222.013-.456.013-.703 0-.247-.015-.44-.044-.581a2.02 2.02 0 00-.131-.409.684.684 0 00-.256-.307 1.426 1.426 0 00-.419-.172c-.441-.102-1.004-.158-1.687-.166-1.55-.017-2.545.085-2.986.307a1.69 1.69 0 00-.475.383c-.15.187-.171.29-.063.306.5.077.854.26 1.062.55l.075.153c.059.11.117.307.175.588.059.28.096.592.113.932.041.622.041 1.154 0 1.597-.042.443-.081.788-.119 1.035a2.107 2.107 0 01-.169.6 2.55 2.55 0 01-.15.281.217.217 0 01-.062.064.918.918 0 01-.337.064c-.117 0-.259-.06-.425-.179a3.024 3.024 0 01-.519-.492c-.179-.208-.38-.5-.606-.875a15.385 15.385 0 01-.7-1.328l-.2-.37a32.156 32.156 0 01-.512-1.042 20.306 20.306 0 01-.575-1.323.84.84 0 00-.3-.408l-.062-.039a.85.85 0 00-.2-.108 1.304 1.304 0 00-.287-.083L4.8 9.64c-.35 0-.587.081-.712.243l-.05.077a.421.421 0 00-.038.204c0 .094.025.209.075.345.5 1.201 1.043 2.36 1.63 3.475C6.294 15.1 6.804 16 7.237 16.68c.433.681.875 1.324 1.325 1.929.45.604.748.992.893 1.162.146.17.26.298.344.384l.312.306c.2.205.494.45.881.735.388.285.817.566 1.287.843.471.277 1.019.503 1.644.677a5.564 5.564 0 001.824.211h1.437c.292-.026.512-.12.662-.281l.05-.064a.858.858 0 00.094-.236c.029-.107.044-.224.044-.351a4.301 4.301 0 01.08-.99c.063-.294.134-.516.213-.665a1.632 1.632 0 01.482-.562.806.806 0 01.1-.045c.2-.068.434-.002.705.199.271.2.525.447.763.74.237.295.522.625.856.99.333.367.625.64.874.818l.25.154c.167.102.384.196.65.28.266.086.5.107.7.065l3.199-.051c.316 0 .562-.054.737-.16.175-.107.279-.224.312-.351.034-.128.035-.273.007-.435a1.632 1.632 0 00-.088-.338 1.694 1.694 0 00-.082-.16z"/></symbol></svg>'},styles:function(){return'.uploadcare--jcrop-handle{box-sizing:border-box;padding:12.5px;width:45px;height:45px;background:transparent;z-index:2147483621}@media (min-width:760px){.uploadcare--jcrop-handle{height:35px;width:35px;padding:10px}}.uploadcare--jcrop-handle:before{content:"";display:block;width:20px;height:20px;background:#fff;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);border-radius:50%}@media (min-width:760px){.uploadcare--jcrop-handle:before{height:15px;width:15px}}.uploadcare--jcrop-handle.ord-nw{margin-top:-22.5px;margin-left:-22.5px;top:0;left:0}@media (min-width:760px){.uploadcare--jcrop-handle.ord-nw{margin-left:-17.5px;margin-top:-17.5px}}.uploadcare--jcrop-handle.ord-ne{margin-top:-22.5px;margin-right:-22.5px;top:0;right:0}@media (min-width:760px){.uploadcare--jcrop-handle.ord-ne{margin-right:-17.5px;margin-top:-17.5px}}.uploadcare--jcrop-handle.ord-se{margin-bottom:-22.5px;margin-right:-22.5px;bottom:0;right:0}@media (min-width:760px){.uploadcare--jcrop-handle.ord-se{margin-right:-17.5px;margin-bottom:-17.5px}}.uploadcare--jcrop-handle.ord-sw{margin-bottom:-22.5px;margin-left:-22.5px;bottom:0;left:0}@media (min-width:760px){.uploadcare--jcrop-handle.ord-sw{margin-left:-17.5px;margin-bottom:-17.5px}}.uploadcare--jcrop-hline{width:100%;height:1px!important;background-color:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.2);z-index:2147483620}.uploadcare--jcrop-hline.bottom{bottom:0}.uploadcare--jcrop-vline{width:1px!important;height:100%;background-color:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.2);z-index:2147483620}.uploadcare--jcrop-vline.right{right:0}.uploadcare--jcrop-tracker{height:100%;width:100%;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.uploadcare--jcrop-holder img{max-width:none;max-height:none}.uploadcare--text{margin:0 0 10px;padding:0;font-size:17.5px;line-height:25px}.uploadcare--text:empty{display:none}.uploadcare--text_muted{color:#a4a2a1}.uploadcare--text_pre{box-sizing:border-box;overflow-x:auto;padding:20px;max-width:100%;background:#e3e1e1;font-family:monospace;white-space:pre;text-align:left}.uploadcare--text_size_small{font-size:15px;line-height:20px}.uploadcare--text_size_medium{font-size:20px;font-weight:700;line-height:25px}.uploadcare--text_size_large{font-size:22px;font-weight:700;line-height:25px}.uploadcare--text_size_extra-large{font-size:35px;line-height:45px}@media (min-width:760px){.uploadcare--text_size_extra-large{font-size:42.5px;line-height:50px}}.uploadcare--icon{all:initial;color:inherit;fill:currentColor;margin:0;padding:0;max-width:100%;width:32px;height:32px;cursor:inherit}.uploadcare--link,.uploadcare--link:link,.uploadcare--link:visited{cursor:pointer;color:#157cfc;text-decoration:underline}.uploadcare--link:focus,.uploadcare--link:hover{color:#3891ff;text-decoration:none}.uploadcare--link:focus{outline:2px solid rgba(21,124,252,.5);outline-offset:1px}.uploadcare--link:active{color:#0969ee}.uploadcare--button{all:initial;-ms-flex-negative:0;flex-shrink:0;display:inline-block;overflow:hidden;box-sizing:border-box;margin:0;padding:10px;width:auto;min-width:100px;height:auto;min-height:0;border-radius:6px;border:1px solid #157cfc;background:transparent;color:#157cfc;cursor:default;white-space:nowrap;text-overflow:ellipsis;text-align:center;font-family:inherit;font-size:15px;font-weight:400;font-style:normal;line-height:20px;box-shadow:none;text-shadow:none;transition:background .3s,color .3s,border .3s}.uploadcare--button svg{pointer-events:none}.uploadcare--button:focus,.uploadcare--button:hover{background:transparent;border-color:#3891ff;color:#3891ff;font-weight:400;font-style:normal;box-shadow:none;text-shadow:none}.uploadcare--button:focus{outline:2px solid rgba(21,124,252,.5);outline-offset:1px}.uploadcare--button:active{border-color:#0969ee;color:#0969ee}.uploadcare--button:disabled,.uploadcare--button[aria-disabled=true]{background:transparent!important;border-color:#d4d2d2!important;color:#d4d2d2!important;cursor:not-allowed}@media (min-width:760px){.uploadcare--button{padding:10px 20px;font-size:17.5px;line-height:25px}}.uploadcare--button_icon{padding:14px;min-width:0;width:60px;height:60px}.uploadcare--button_muted{border-color:transparent!important;color:#a4a2a1;border-radius:0}.uploadcare--button_muted:focus,.uploadcare--button_muted:hover{color:#157cfc}.uploadcare--button_muted:disabled,.uploadcare--button_muted[aria-disabled=true]{border-color:transparent!important}.uploadcare--button_overlay{background:rgba(53,53,53,.5);border-color:transparent;color:#fff}.uploadcare--button_overlay:focus,.uploadcare--button_overlay:hover{background:hsla(0,0%,40%,.5);border-color:transparent;color:#fff}.uploadcare--button_overlay:active{background:rgba(33,33,33,.5)}.uploadcare--button_primary{background:#157cfc;border-color:#157cfc;color:#fff}.uploadcare--button_primary:focus,.uploadcare--button_primary:hover{background:#3891ff;border-color:#3891ff;color:#fff}.uploadcare--button_primary:active{background:#0969ee;border-color:#0969ee}.uploadcare--button_primary:disabled,.uploadcare--button_primary[aria-disabled=true]{background:#d4d2d2!important;border-color:#d4d2d2!important;color:#fff!important}.uploadcare--button_size_big{padding:10px 25px;font-size:20px;line-height:30px}.uploadcare--button_size_small{padding:5px 10px;min-width:80px;font-size:15px;line-height:20px}.uploadcare--input{-webkit-appearance:none;appearance:none;-ms-flex-negative:0;flex-shrink:0;display:block;box-sizing:border-box;margin:5px 0 15px;padding:10px 15px;width:100%;font-size:17.5px;line-height:25px;background:#fff;color:#353535;border:1px solid #a4a2a1;border-radius:2px;box-shadow:none}.uploadcare--input:focus{outline:2px solid rgba(21,124,252,.5);outline-offset:1px}.uploadcare--input::placeholder{color:#a4a2a1}.uploadcare--form{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;box-sizing:border-box;max-width:400px;width:100%}.uploadcare--error{color:#e66a6a}.uploadcare--powered-by{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;padding:7.5px 0;font-size:12.5px;line-height:15px;color:#fff;text-align:center}.uploadcare--powered-by__link{display:-ms-inline-flexbox;display:inline-flex;color:inherit!important;text-decoration:none!important}.uploadcare--powered-by__logo{display:-ms-inline-flexbox;display:inline-flex;width:20px;height:15px;vertical-align:text-bottom}.uploadcare--progress__canvas{width:100%;height:100%}.uploadcare--progress__text{display:table-cell;vertical-align:middle;text-align:center;font-size:60%;line-height:1}.uploadcare--progress__text-container{width:100%;height:100%;display:table;white-space:normal}.uploadcare--progress_type_canvas{padding:2px;width:32px;height:32px;color:#ffd800;border-color:#e3e1e1}.uploadcare--progressbar{overflow:hidden;width:100%;height:100%;background:#e3e1e1;border-radius:6px}.uploadcare--progressbar__value{width:0;height:100%;background:#ffd800}.uploadcare--menu{-ms-flex-negative:0;flex-shrink:0;width:100%;width:100vw;max-width:100%;height:100%;overflow:hidden}@media (min-width:760px){.uploadcare--menu{width:60px}}@media (max-width:759px){.uploadcare--menu{height:60px}}.uploadcare--menu__icon{-ms-flex-negative:0;flex-shrink:0;margin:14px}@media (max-width:759px){.uploadcare--menu:not(.uploadcare--menu_opened) .uploadcare--menu__item_current:not(.uploadcare--menu__item_tab_file) .uploadcare--menu__icon{position:absolute;top:0;left:50%;transform:translateX(-50%);margin-left:0}}.uploadcare--menu__item{-ms-flex-negative:0;flex-shrink:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:100vw;height:60px;overflow:hidden;cursor:default;background:#e3e1e1;color:#666;transition:background .3s,color .3s}@media (min-width:760px){.uploadcare--menu__item{width:60px}}.uploadcare--menu__item:focus,.uploadcare--menu__item:hover{color:#157cfc}.uploadcare--menu__item:active{background-color:#fff;color:#0969ee}.uploadcare--menu__item:focus{outline:none;box-shadow:inset 0 0 0 2px rgba(21,124,252,.5)}.uploadcare--menu__item[aria-disabled=true]{background:#e3e1e1!important;color:#666!important;cursor:not-allowed}.uploadcare--menu__item:after{content:attr(title);-ms-flex-negative:0;flex-shrink:0;display:-ms-flexbox;display:flex;height:30px;font-size:17px;line-height:30px;white-space:nowrap}@media (min-width:760px){.uploadcare--menu__item:after{overflow:hidden;max-width:170px;text-overflow:ellipsis}}.uploadcare--menu__item_current,.uploadcare--menu__item_current:active,.uploadcare--menu__item_current:focus,.uploadcare--menu__item_current:hover{background-color:#fff;color:#353535}.uploadcare--menu__item_hidden{display:none}.uploadcare--menu__items{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:100%;height:100%;padding-right:100vw;overflow-y:auto;overflow-x:hidden;background:#e3e1e1}.uploadcare--menu__toggle{width:60px;height:60px;transition:none}.uploadcare--menu__toggle:focus{outline-offset:-2px}@media (min-width:760px){.uploadcare--menu__toggle{display:none}}@media (max-width:759px){.uploadcare--menu:not(.uploadcare--menu_opened) .uploadcare--menu__toggle-icon_back{display:none}}@media (max-width:759px){.uploadcare--menu_opened{position:relative;z-index:1000;height:100%}.uploadcare--menu_opened .uploadcare--menu__toggle{-ms-flex-pack:start;justify-content:flex-start;width:100%;text-align:left;background:#e3e1e1}.uploadcare--menu_opened .uploadcare--menu__toggle-icon_menu{display:none}.uploadcare--menu_opened .uploadcare--menu__items{height:calc(100% - 60px)}}.uploadcare--footer{-ms-flex-negative:0;flex-shrink:0;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;box-sizing:border-box;width:100%;margin-top:10px;padding:5px 20px 15px}@media (max-width:759px) and (orientation:portrait){.uploadcare--footer{display:block}}.uploadcare--footer:empty{display:none}.uploadcare--footer__additions{-ms-flex-positive:1;flex-grow:1;-ms-flex-order:1;order:1;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;box-sizing:border-box;padding:0 0 15px;text-align:center}@media (max-width:759px) and (orientation:landscape){.uploadcare--footer__additions{padding:0 20px}}@media (max-width:500px) and (orientation:landscape){.uploadcare--footer__additions{display:none}}@media (min-width:760px){.uploadcare--footer__additions{padding:0 20px}}.uploadcare--footer__additions:empty{visibility:hidden;padding:0}.uploadcare--footer__button{margin-top:5px;margin-bottom:5px}.uploadcare--footer__button:first-of-type{-ms-flex-order:0;order:0}.uploadcare--footer__button:nth-of-type(2){-ms-flex-order:2;order:2}@media (max-width:759px){.uploadcare--footer__button{max-width:calc(50% - 20px)}}@media (max-width:759px) and (orientation:portrait){.uploadcare--footer__button:first-of-type{float:left}.uploadcare--footer__button:nth-of-type(2){float:right}}.uploadcare--dragging .uploadcare--draganddrop{margin:20px;background:#e3e1e1;color:#a4a2a1;border:2px dashed;border-radius:20px}.uploadcare--draganddrop.uploadcare--dragging{color:#157cfc!important}@media (max-width:759px){.uploadcare--draganddrop__title{display:none}}.uploadcare--draganddrop:not(.uploadcare--draganddrop_supported) .uploadcare--draganddrop__supported,.uploadcare--draganddrop_supported .uploadcare--draganddrop__not-supported,.uploadcare--dragging .uploadcare--dialog__close,.uploadcare--dragging__show{display:none}.uploadcare--dragging .uploadcare--dragging__show{display:block}.uploadcare--dragging .uploadcare--dragging__hide{display:none}.uploadcare--file{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:stretch;align-items:stretch;-ms-flex-pack:justify;justify-content:space-between;box-sizing:border-box;padding:5px 0 5px 20px;color:#353535;cursor:default}.uploadcare--file:hover{background:rgba(21,124,252,.1)}.uploadcare--file__description{-ms-flex-positive:1;flex-grow:1;min-width:0;padding-right:20px;text-align:left}.uploadcare--file__description:focus,.uploadcare--file__description:focus .uploadcare--file__preview,.uploadcare--file__description:hover,.uploadcare--file__description:hover .uploadcare--file__preview{color:#157cfc}.uploadcare--file__description:active,.uploadcare--file__description:active .uploadcare--file__preview{color:#0969ee}.uploadcare--file__description:focus{outline:2px solid rgba(21,124,252,.5);outline-offset:2px}.uploadcare--file__icon{max-width:100%;max-height:100%}.uploadcare--file__name{overflow:hidden;margin:0;max-width:calc(100vw - 200px);line-height:25px;white-space:nowrap;text-overflow:ellipsis;transition:color .3s}@media (min-width:760px){.uploadcare--file__name{max-width:350px}}.uploadcare--file__preview{-ms-flex-negative:0;flex-shrink:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;float:left;box-sizing:border-box;margin-right:10px;padding:2px;width:60px;height:60px;overflow:hidden;border:1px solid;border-radius:6px;background:transparent;color:#e3e1e1;transition:border .3s}.uploadcare--file__progressbar{-ms-flex-negative:0;flex-shrink:0;-ms-flex-item-align:center;align-self:center;margin:0 10px;width:60px;height:10px}.uploadcare--file__size{font-size:12.5px;color:#a4a2a1}.uploadcare--file_status_error,.uploadcare--file_status_error .uploadcare--file__description,.uploadcare--file_status_error .uploadcare--file__preview{color:#e66a6a!important}.uploadcare--file_status_error .uploadcare--file__name{color:rgba(230,106,106,.5)!important}.uploadcare--file_status_error .uploadcare--file__progressbar,.uploadcare--file_status_error .uploadcare--file__size,.uploadcare--file_status_uploaded .uploadcare--file__progressbar{display:none}.uploadcare--file_status_uploading,.uploadcare--file_status_uploading .uploadcare--file__description{color:#353535!important}.uploadcare--file_status_uploading .uploadcare--file__name{max-width:calc(100vw - 280px)}@media (min-width:760px){.uploadcare--file_status_uploading .uploadcare--file__name{max-width:270px}}.uploadcare--file_status_uploading .uploadcare--file__preview{background:#ffd800;color:#ffd800!important}.uploadcare--files{-ms-flex-positive:1;flex-grow:1;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:auto;width:100%;height:100%}.uploadcare--files__item{-ms-flex-negative:0;flex-shrink:0}.uploadcare--crop-sizes{-ms-flex-positive:1;flex-grow:1;display:-ms-flexbox;display:flex;-ms-flex-pack:distribute;justify-content:space-around}.uploadcare--crop-sizes__item{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-align:center;align-items:center;padding:0;height:65px;background:transparent;border-color:transparent;color:#353535}.uploadcare--crop-sizes__item:focus,.uploadcare--crop-sizes__item:hover{background:transparent;border-color:transparent;color:#157cfc}.uploadcare--crop-sizes__item:active{background:transparent;border-color:transparent;color:#0969ee}.uploadcare--crop-sizes__item:disabled,.uploadcare--crop-sizes__item[aria-disabled=true]{border-color:transparent!important}.uploadcare--crop-sizes__item:after{content:attr(data-caption);display:block;font-size:14px;line-height:25px;text-transform:uppercase}@media (max-width:400px),(max-width:600px) and (orientation:landscape){.uploadcare--crop-sizes__item:after{font-size:12px}}.uploadcare--crop-sizes__item:before{content:"";display:block;-ms-flex-order:1;order:1;margin:1px 0;width:6px;height:6px;background:transparent;border-radius:50%}.uploadcare--crop-sizes__item_current:active,.uploadcare--crop-sizes__item_current:focus,.uploadcare--crop-sizes__item_current:hover{color:#353535}.uploadcare--crop-sizes__item_current:before{background:#157cfc}.uploadcare--crop-sizes__icon{box-sizing:border-box;width:30px;height:30px;border:2px solid;border-radius:2px;color:inherit;transform:scale(.666)}.uploadcare--crop-sizes__icon_free{border:none;border-radius:0;transform:none}.uploadcare--file-source{margin:10px;border-color:#e3e1e1;background:#e3e1e1;color:#353535}.uploadcare--file-source_all{-ms-flex-order:1;order:1;border-color:currentColor;background:transparent;color:#157cfc}.uploadcare--file-sources{-ms-flex-negative:0;flex-shrink:0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;width:100%}@media (max-width:759px) and (max-height:450px),(min-width:760px){.uploadcare--file-sources{display:none}}.uploadcare--file-sources__caption{margin:15px 0 5px}@media (max-width:759px) and (max-height:550px){.uploadcare--file-sources__item:nth-child(4),.uploadcare--file-sources__item:nth-child(5),.uploadcare--file-sources__item:nth-child(6){display:none}}.uploadcare--file-sources__items{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:center;justify-content:center;max-width:300px}.uploadcare--file-sources__items:empty,.uploadcare--file-sources__items:not(.uploadcare--file-sources__items_many) .uploadcare--file-source__all{display:none}.uploadcare--media{-ms-flex-positive:1;flex-grow:1;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;position:relative;width:100%}.uploadcare--media__image{position:absolute;top:50%;left:50%;max-width:100%;max-height:100%;transform:translateX(-50%) translateY(-50%)}.uploadcare--media__video{all:initial;width:auto;max-width:100%;height:auto;min-height:100px;max-height:100%}@media (max-width:759px) and (max-height:379px){.uploadcare--media__video{max-height:120px}}@media (max-width:759px) and (min-height:380px) and (max-height:499px){.uploadcare--media__video{max-height:160px}}@media (max-width:759px) and (min-height:500px),(min-width:760px){.uploadcare--media__video{max-height:300px}}.uploadcare--camera__button{margin:5px 10px}.uploadcare--camera__button_type_mirror{position:absolute;top:15px;left:50%;margin:0;transform:translateX(-50%)}.uploadcare--camera__video{transition:transform .8s cubic-bezier(.23,1,.32,1)}.uploadcare--camera__video_mirrored{transform:scaleX(-1)}.uploadcare--camera__video-container{-ms-flex-positive:0;flex-grow:0;position:relative;margin-bottom:10px}.uploadcare--camera_status_denied .uploadcare--camera__button_type_cancel-record,.uploadcare--camera_status_denied .uploadcare--camera__button_type_capture,.uploadcare--camera_status_denied .uploadcare--camera__button_type_mirror,.uploadcare--camera_status_denied .uploadcare--camera__button_type_start-record,.uploadcare--camera_status_denied .uploadcare--camera__button_type_stop-record,.uploadcare--camera_status_denied .uploadcare--camera__controls,.uploadcare--camera_status_denied .uploadcare--camera__not-found,.uploadcare--camera_status_denied .uploadcare--camera__please-allow,.uploadcare--camera_status_denied .uploadcare--camera__video-container,.uploadcare--camera_status_not-founded .uploadcare--camera__button_type_cancel-record,.uploadcare--camera_status_not-founded .uploadcare--camera__button_type_capture,.uploadcare--camera_status_not-founded .uploadcare--camera__button_type_mirror,.uploadcare--camera_status_not-founded .uploadcare--camera__button_type_retry,.uploadcare--camera_status_not-founded .uploadcare--camera__button_type_start-record,.uploadcare--camera_status_not-founded .uploadcare--camera__button_type_stop-record,.uploadcare--camera_status_not-founded .uploadcare--camera__controls,.uploadcare--camera_status_not-founded .uploadcare--camera__please-allow,.uploadcare--camera_status_not-founded .uploadcare--camera__video-container,.uploadcare--camera_status_ready .uploadcare--camera__button_type_cancel-record,.uploadcare--camera_status_ready .uploadcare--camera__button_type_retry,.uploadcare--camera_status_ready .uploadcare--camera__button_type_stop-record,.uploadcare--camera_status_ready .uploadcare--camera__not-found,.uploadcare--camera_status_ready .uploadcare--camera__please-allow,.uploadcare--camera_status_recording .uploadcare--camera__button_type_capture,.uploadcare--camera_status_recording .uploadcare--camera__button_type_mirror,.uploadcare--camera_status_recording .uploadcare--camera__button_type_retry,.uploadcare--camera_status_recording .uploadcare--camera__button_type_start-record,.uploadcare--camera_status_recording .uploadcare--camera__not-found,.uploadcare--camera_status_recording .uploadcare--camera__please-allow,.uploadcare--camera_status_requested .uploadcare--camera__button_type_cancel-record,.uploadcare--camera_status_requested .uploadcare--camera__button_type_capture,.uploadcare--camera_status_requested .uploadcare--camera__button_type_mirror,.uploadcare--camera_status_requested .uploadcare--camera__button_type_retry,.uploadcare--camera_status_requested .uploadcare--camera__button_type_start-record,.uploadcare--camera_status_requested .uploadcare--camera__button_type_stop-record,.uploadcare--camera_status_requested .uploadcare--camera__controls,.uploadcare--camera_status_requested .uploadcare--camera__not-found,.uploadcare--camera_status_requested .uploadcare--camera__video-container{display:none}.uploadcare--crop-widget>.uploadcare--preview__image{filter:brightness(60%);transform:none}.uploadcare--tab{overflow:hidden;-ms-flex-align:stretch;align-items:stretch;text-align:center}.uploadcare--tab,.uploadcare--tab__content{-ms-flex-positive:1;flex-grow:1;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}.uploadcare--tab__content{-ms-flex-negative:1;flex-shrink:1;-ms-flex-align:center;align-items:center;overflow-y:auto;padding:0 20px}.uploadcare--tab__header{-ms-flex-negative:0;flex-shrink:0;padding:0 20px;overflow:hidden}@media (min-width:760px){.uploadcare--tab__header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding-right:60px;height:60px}}.uploadcare--tab__iframe{-ms-flex-positive:1;flex-grow:1;width:100%;height:100%;border:0;opacity:0}.uploadcare--tab__title{margin-top:10px;margin-bottom:10px}.uploadcare--tab:not(.uploadcare--tab_current),.uploadcare--tab_name_preview.uploadcare--tab_current~.uploadcare--panel__footer{display:none}.uploadcare--tab_remote.uploadcare--tab_current~.uploadcare--panel__footer{margin-top:0}.uploadcare--panel{-ms-flex-negative:0;flex-shrink:0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:relative;box-sizing:border-box;overflow:hidden;width:100%;height:500px;border:1px solid #a4a2a1;border-radius:6px;background:#fff;color:#353535;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,Arial,sans-serif;font-weight:400;font-size:15px;line-height:20px}@media (min-width:760px){.uploadcare--panel{-ms-flex-direction:row;flex-direction:row}}.uploadcare--panel__content{-ms-flex-positive:1;flex-grow:1;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden}.uploadcare--panel__file-counter{display:inline}.uploadcare--panel__footer{padding-top:15px;background:#fff9d8}.uploadcare--panel__icon{box-sizing:border-box;padding:3px}.uploadcare--panel__menu_hidden{display:none}.uploadcare--panel__message_hidden{color:#d4d2d2}.uploadcare--panel__powered-by{background:#353535;color:hsla(0,0%,100%,.5)}@media (min-width:760px){.uploadcare--panel__powered-by{display:none}}.uploadcare--tab:not(:nth-child(2)).uploadcare--tab_current~.uploadcare--panel__powered-by{display:none}@media (max-width:759px){.uploadcare--panel_menu-hidden .uploadcare--tab__header{padding:6px 60px 0;min-height:60px}}.uploadcare--panel:not(.uploadcare--panel_multiple) .uploadcare--panel__footer{display:none}.uploadcare--panel_multiple .uploadcare--panel__content{position:relative}.uploadcare--panel_multiple .uploadcare--tab_name_preview{position:absolute;top:0;left:0;height:100%;width:100%}.uploadcare--panel_multiple .uploadcare--tab_name_preview .uploadcare--tab__content{padding-left:0;padding-right:0}.uploadcare--panel_multiple .uploadcare--tab_name_preview .uploadcare--tab__footer{position:relative;margin-top:0;padding-top:15px}.uploadcare--panel_multiple .uploadcare--tab_name_preview .uploadcare--tab__footer:before{content:"";position:absolute;top:0;left:20px;width:calc(100% - 40px);height:1px;background:#e3e1e1}.uploadcare--preview__content{overflow:hidden}.uploadcare--preview__content_crop{padding:10px 20px}.uploadcare--dialog{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:stretch;align-items:stretch;position:fixed;top:0;left:0;z-index:2147483647;box-sizing:border-box;overflow:hidden;-ms-touch-action:none;touch-action:none;width:100%;height:100%;background:#fff;color:#353535;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,Arial,sans-serif;font-weight:400;font-size:15px;line-height:20px;opacity:0;transition:opacity .33s cubic-bezier(.05,.7,.25,1)}@media (min-width:760px){.uploadcare--dialog{-ms-flex-align:center;align-items:center;overflow-y:auto;background:rgba(0,0,0,.5)}}@media (min-width:760px) and (max-height:559px){.uploadcare--dialog{padding-top:30px}}@media (min-width:760px) and (min-height:560px){.uploadcare--dialog{-ms-flex-pack:center;justify-content:center}}.uploadcare--dialog__close{position:absolute;top:0;right:0;z-index:49}.uploadcare--dialog__close:focus{outline-offset:-2px}.uploadcare--dialog__container{display:-ms-flexbox;display:flex;position:relative;overflow:hidden}@media (max-width:759px){.uploadcare--dialog__container{-ms-flex-positive:1;flex-grow:1;height:100%}}@media (min-width:760px){.uploadcare--dialog__container{width:calc(100% - 60px);max-width:900px;height:calc(100% - 60px);min-height:500px;max-height:660px;border-radius:6px;-webkit-mask-image:-webkit-radial-gradient(#fff,#000)}}@media (min-width:1210px){.uploadcare--dialog__container{max-width:1050px}}.uploadcare--dialog__panel{height:100%;border:none;border-radius:0}@media (min-width:1210px){.uploadcare--dialog__panel .uploadcare--menu,.uploadcare--dialog__panel .uploadcare--menu__item{width:250px}}.uploadcare--dialog__powered-by{-ms-flex-negative:0;flex-shrink:0}@media (max-width:759px){.uploadcare--dialog__powered-by{display:none}}.uploadcare--dialog_status_active{opacity:1}.uploadcare--widget{display:inline-block;vertical-align:baseline}.uploadcare--dragging .uploadcare--widget,.uploadcare--widget.uploadcare--dragging{position:relative}.uploadcare--widget__button{all:initial;display:inline-block;box-sizing:border-box;margin:0;padding:.4em 1em;width:auto;min-width:0;height:auto;min-height:0;border-radius:6px;border:none;background:#c3c3c3;color:#fff;cursor:default;text-align:center;white-space:nowrap;font:inherit;line-height:inherit;box-shadow:none;text-shadow:inherit;transition:background .3s}.uploadcare--widget__button:focus,.uploadcare--widget__button:hover{background:#b3b3b3;color:#fff;font:inherit;box-shadow:none;text-shadow:inherit}.uploadcare--widget__button:focus{outline:2px solid rgba(21,124,252,.5);outline-offset:1px}.uploadcare--widget__button:active{background:#b3b3b3}.uploadcare--widget__button:disabled{background:#c3c3c3;color:#fff;cursor:not-allowed}.uploadcare--widget__button_type_open{background:#157cfc;color:#fff}.uploadcare--widget__button_type_open:focus,.uploadcare--widget__button_type_open:hover{background:#3891ff}.uploadcare--widget__button_type_open:active{background:#0969ee}.uploadcare--widget__button_type_open:disabled{background:#c3c3c3}.uploadcare--widget__dragndrop-area{position:absolute;top:0;left:0;box-sizing:border-box;min-width:100%;min-height:100%;margin:0;padding:calc(.4em - 1.5px) 1em;font:inherit;line-height:inherit;text-align:center;white-space:nowrap;border:1.5px dashed;border-radius:6px;background:#e3e1e1;color:#a4a2a1;transition:color .3s;display:none}.uploadcare--dragging .uploadcare--widget__dragndrop-area{display:block}.uploadcare--widget.uploadcare--dragging .uploadcare--widget__dragndrop-area{color:#157cfc}.uploadcare--widget__file-name,.uploadcare--widget__file-size{display:inline}.uploadcare--widget__progress{display:inline-block;width:1.8em;height:1.8em;margin:0 .2em 0 0;padding:0;line-height:0;vertical-align:middle}.uploadcare--widget__text{display:inline-block;box-sizing:border-box;margin-right:.2em;padding:.4em 0;white-space:nowrap}.uploadcare--widget:not(.uploadcare--widget_option_clearable).uploadcare--widget_status_error .uploadcare--widget__button_type_remove,.uploadcare--widget:not(.uploadcare--widget_option_clearable).uploadcare--widget_status_loaded .uploadcare--widget__button_type_remove,.uploadcare--widget_option_clearable.uploadcare--widget_status_error .uploadcare--widget__button_type_open,.uploadcare--widget_status_error .uploadcare--widget__button_type_cancel,.uploadcare--widget_status_error .uploadcare--widget__progress,.uploadcare--widget_status_loaded .uploadcare--widget__button_type_cancel,.uploadcare--widget_status_loaded .uploadcare--widget__button_type_open,.uploadcare--widget_status_loaded .uploadcare--widget__progress,.uploadcare--widget_status_ready .uploadcare--widget__button_type_cancel,.uploadcare--widget_status_ready .uploadcare--widget__button_type_remove,.uploadcare--widget_status_ready .uploadcare--widget__progress,.uploadcare--widget_status_ready .uploadcare--widget__text,.uploadcare--widget_status_started .uploadcare--widget__button_type_open,.uploadcare--widget_status_started .uploadcare--widget__button_type_remove{display:none}.uploadcare--page{width:auto;min-width:0;max-width:100%;height:auto;min-height:0;max-height:100%;overflow:hidden}.uploadcare--mouse-focused:focus{outline:none}'}},ba=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=va[e];return null!=a?a(r({},t)):""};z()&&lt.add((function(e){var t=ba("styles",{settings:e}),i=document.createElement("style");return i.setAttribute("type","text/css"),null!=i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t)),a.default("head").prepend(i)}));var ya=function(e){return"[data-status=started], [data-status=error]",!e.find(".uploadcare--widget").is("[data-status=started], [data-status=error]")},wa=function(e,t){return e.attr("data-uploadcare-submitted",t),e.find(":submit").attr("disabled",t)},xa='[role~="uploadcare-upload-form"]',ka=xa+"[data-uploadcare-submitted]";if(z()){a.default(document).on("submit",xa,(function(){var e;return e=a.default(this),!!ya(e)||(wa(e,!0),!1)})),a.default(document).on("loaded.uploadcare",ka,(function(){return a.default(this).submit()}));a.default(document).on("ready.uploadcare error.uploadcare",ka,(function(){var e;if(e=a.default(this),ya(e))return wa(e,!1)}))}var za=[".uploadcare--menu__item",".uploadcare--file__description",".uploadcare--crop-sizes__item"].join(", ");z()&&a.default(document.documentElement).on("mousedown",za,(function(e){return W((function(){var e;if((e=document.activeElement)&&e!==document.body)return a.default(e).addClass("uploadcare--mouse-focused").one("blur",(function(){return a.default(e).removeClass("uploadcare--mouse-focused")}))}))})).on("keypress",za,(function(e){if(13===e.which||32===e.which)return a.default(this).click(),e.preventDefault(),e.stopPropagation()}));var Aa=function(){function e(t){s(this,e),this.renderer=T?new Fa(t):new Sa(t),this.observed=null}return c(e,[{key:"listen",value:function(e,t){var a,i=this;return this.reset(),a=null!=t?function(e){return e[t]}:function(e){return e},this.observed=e,"resolved"===this.observed.state()?this.renderer.setValue(1,!0):this.observed.progress((function(t){e===i.observed&&i.renderer.setValue(a(t))})).always((function(t){e===i.observed&&i.renderer.setValue(1,!1)})),this}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.observed=null,this.renderer.setValue(e?1:0,!0)}},{key:"update",value:function(){this.renderer.update()}}]),e}(),Ca=function(){function e(t){s(this,e),this.element=a.default(t),this.element.data("uploadcare-progress-renderer",this),this.element.addClass("uploadcare--progress")}return c(e,[{key:"update",value:function(){}}]),e}(),Sa=function(e){p(a,e);var t=_(a);function a(){var e;return s(this,a),(e=t.apply(this,arguments)).element.addClass("uploadcare--progress_type_text"),e.element.html(ba("progress__text")),e.text=e.element.find(".uploadcare--progress__text"),e}return c(a,[{key:"setValue",value:function(e){e=Math.round(100*e),this.text.html("".concat(e," %"))}}]),a}(Ca),Fa=function(e){p(i,e);var t=_(i);function i(){var e;return s(this,i),(e=t.apply(this,arguments)).canvasEl=a.default("<canvas>").addClass("uploadcare--progress__canvas").get(0),e.element.addClass("uploadcare--progress_type_canvas"),e.element.html(e.canvasEl),e.setValue(0,!0),e}return c(i,[{key:"update",value:function(){var e=this;window.cancelAnimationFrame(this.__rafId),this.__rafId=window.requestAnimationFrame((function(){var t=Math.floor(Math.min(e.element.width(),e.element.height())),a=2*t;if(t){e.canvasEl.width===a&&e.canvasEl.height===a||(e.canvasEl.width=a,e.canvasEl.height=a);var i=e.canvasEl.getContext("2d"),n=function(e,a){var n;n=-Math.PI/2,i.beginPath(),i.moveTo(t,t),i.arc(t,t,e,n,n+2*Math.PI*a,!1),i.fill()};i.clearRect(0,0,a,a),i.globalCompositeOperation="source-over",i.fillStyle=e.element.css("border-left-color"),n(t-.5,1),i.fillStyle=e.element.css("color"),n(t,e.val),i.globalCompositeOperation="destination-out",n(t/7,1)}}))}},{key:"__animateValue",value:function(e){var t,a,i,n=this;i=this.val,a=new Date,t=e>i?2:-2,this.__animIntervalId=setInterval((function(){var r;r=i+(new Date-a)/1e3*t,(r=(t>0?Math.min:Math.max)(r,e))===e&&n.__stopAnimation(),n.__setValue(r)}),15)}},{key:"__stopAnimation",value:function(){this.__animIntervalId&&clearInterval(this.__animIntervalId),this.__animIntervalId=null}},{key:"__setValue",value:function(e){this.val=e,this.element.attr("aria-valuenow",(100*e).toFixed(0)),this.update()}},{key:"setValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.__stopAnimation(),t?this.__setValue(e):this.__animateValue(e)}}]),i}(Ca),Ta=j,ja=function(e,t,a){return a=ot(a),Da(e,(function(e,i){return t(a.multiple?Nt(e,i,a):Lt(e,i[0],a))}))},Da=Ta?function(e,t){Ia(e),a.default(e).on({dragover:function(e){e.preventDefault(),e.originalEvent.dataTransfer.dropEffect="copy"},drop:function(e){var i,n,r,o,l,s;if(e.preventDefault(),i=e.originalEvent.dataTransfer){if(i.files.length)return t("object",i.files);for(s=[],n=0,r=(o=i.getData("text/uri-list").split()).length;n<r;n++)l=o[n],(l=a.default.trim(l))&&"#"!==l[0]&&s.push(l);return s?t("url",s):void 0}}})}:function(){},Ia=Ta?function(e,t){var i,n,r;return r=!1,n=0,i=function(t){if(r!==t)return r=t,a.default(e).toggleClass("uploadcare--dragging",t)},a.default(t||e).on({dragenter:function(){return n+=1,i(!0)},dragleave:function(){if(0===(n-=1))return i(!1)},"drop mouseenter":function(){return n=0,i(!1)}})}:function(){};z()&&Ia("body",document);var Pa,Ma,Ea=function(){function e(t,i){s(this,e),this.settings=t,this.element=i,this.content=a.default(ba("widget")),this.element.after(this.content),this.circle=new Aa(this.content.find(".uploadcare--widget__progress").removeClass("uploadcare--widget__progress")),this.content.find(".uploadcare--progress").addClass("uploadcare--widget__progress"),this.statusText=this.content.find(".uploadcare--widget__text"),this.content.toggleClass("uploadcare--widget_option_clearable",this.settings.clearable)}return c(e,[{key:"addButton",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return a.default(ba("widget-button",{name:e,caption:t})).appendTo(this.content)}},{key:"setStatus",value:function(e){var t;return t="uploadcare--widget_status_",this.content.removeClass(t+this.content.attr("data-status")),this.content.attr("data-status",e),this.content.addClass(t+e),this.element.trigger("".concat(e,".uploadcare"))}},{key:"reset",value:function(){return this.circle.reset(),this.setStatus("ready"),this.content.attr("aria-busy",!1),this.__file=void 0,this.__file}},{key:"loaded",value:function(){return this.setStatus("loaded"),this.content.attr("aria-busy",!1),this.circle.reset(!0)}},{key:"listen",value:function(e){var t=this;return this.__file=e,this.circle.listen(e,"uploadProgress"),this.setStatus("started"),this.content.attr("aria-busy",!0),e.progress((function(a){if(e===t.__file)switch(a.state){case"uploading":return t.statusText.text(ea.t("uploading"));case"uploaded":return t.statusText.text(ea.t("loadingInfo"))}}))}},{key:"error",value:function(e,t){var a=this.settings.debugUploads&&(null==t?void 0:t.message)||ea.t("serverErrors.".concat(null==t?void 0:t.code))||(null==t?void 0:t.message)||ea.t("errors.".concat(e||"default"));return this.statusText.text(a),this.content.attr("aria-busy",!1),this.setStatus("error")}},{key:"setFileInfo",value:function(e){return this.statusText.html(ba("widget-file-name",e)).find(".uploadcare--widget__file-name").toggleClass("needsclick",this.settings.systemDialog)}}]),e}(),Oa=function(){function e(t,a,i,n,r){s(this,e),this.__initTabsList=this.__initTabsList.bind(this),this.container=t,this.tabButton=a,this.dialogApi=i,this.settings=n,this.name=r,this.container.append(ba("tab-file")),this.__setupFileButton(),this.__initDragNDrop(),this.__initTabsList()}return c(e,[{key:"__initDragNDrop",value:function(){var e,t=this;if(e=this.container.find(".uploadcare--draganddrop"),j)return Da(e,(function(e,a){return t.settings.multiple?t.dialogApi.addFiles(e,a):t.dialogApi.addFiles(e,[a[0]]),t.dialogApi.switchTab("preview")})),e.addClass("uploadcare--draganddrop_supported")}},{key:"__setupFileButton",value:function(){var e,t=this;return e=this.container.find(".uploadcare--tab__action-button"),S?e.on("click",(function(){return he(t.container,t.settings,(function(e){return t.dialogApi.addFiles("object",e.files),t.dialogApi.switchTab("preview")})),!1})):fe(e,this.settings,(function(e){return t.dialogApi.addFiles("input",[e]),t.dialogApi.switchTab("preview")}))}},{key:"__initTabsList",value:function(){var e,t,a,i,n,r,o=this;for((a=this.container.find(".uploadcare--file-sources__items")).remove(".uploadcare--file-sources__item:not(.uploadcare--file-source_all)"),i=0,e=0,t=(n=this.settings.tabs).length;e<t;e++)"file"!==(r=n[e])&&"url"!==r&&"camera"!==r&&this.dialogApi.isTabVisible(r)&&((i+=1)>5||a.append([this.__tabButton(r)," "]));return a.find(".uploadcare--file-source_all").on("click",(function(){return o.dialogApi.openMenu()})),i>5&&a.addClass("uploadcare--file-sources__items_many"),this.container.find(".uploadcare--file-sources").attr("hidden",0===i)}},{key:"__tabButton",value:function(e){var t,i=this;return t=a.default("<svg width='32' height='32'><use xlink:href='#uploadcare--icon-".concat(e,"'/></svg>")).attr("role","presentation").attr("class","uploadcare--icon uploadcare--file-source__icon"),a.default("<button>").addClass("uploadcare--button").addClass("uploadcare--button_icon").addClass("uploadcare--file-source").addClass("uploadcare--file-source_".concat(e)).addClass("uploadcare--file-sources__item").attr("type","button").attr("title",ea.t("dialog.tabs.names.".concat(e))).attr("data-tab",e).append(t).on("click",(function(){return i.dialogApi.switchTab(e)}))}},{key:"displayed",value:function(){this.dialogApi.takeFocus()&&this.container.find(".uploadcare--tab__action-button").focus()}}]),e}(),Ua=function(){function e(t,i,n,r,o){var l,u,c=this;s(this,e),this.container=t,this.tabButton=i,this.dialogApi=n,this.settings=r,this.name=o,this.container.append(ba("tab-url")),(u=this.container.find(".uploadcare--input")).on("change keyup input",(function(){var e=!a.default.trim(this.value);return l.attr("disabled",e).attr("aria-disabled",e)})),l=this.container.find(".uploadcare--button[type=submit]").attr("disabled",!0),this.container.find(".uploadcare--form").on("submit",(function(){var e=Pa(u.val());return e&&(c.dialogApi.addFiles("url",[[e,{source:"url-tab"}]]),u.val("").trigger("change")),!1}))}return c(e,[{key:"displayed",value:function(){this.dialogApi.takeFocus()&&this.container.find(".uploadcare--input").focus()}}]),e}();Ma=/^[a-z][a-z0-9+\-.]*:?\/\//,Pa=function(e){return e=a.default.trim(e),Ma.test(e)?e:"http://"+e};var Ba=z()&&"https:"===document.location.protocol,Ra=function(){function e(t,a,i,n,r){var o;if(s(this,e),this.__captureInput=this.__captureInput.bind(this),this.__captureInputHandle=this.__captureInputHandle.bind(this),this.__setState=this.__setState.bind(this),this.__requestCamera=this.__requestCamera.bind(this),this.__revoke=this.__revoke.bind(this),this.__mirror=this.__mirror.bind(this),this.__capture=this.__capture.bind(this),this.__startRecording=this.__startRecording.bind(this),this.__stopRecording=this.__stopRecording.bind(this),this.__cancelRecording=this.__cancelRecording.bind(this),this.container=t,this.tabButton=a,this.dialogApi=i,this.settings=n,this.name=r,this.__checkCapture())this.container.append(ba("tab-camera-capture")),this.container.addClass("uploadcare--camera"),this.container.find(".uploadcare--camera__button_type_photo").on("click",this.__captureInput("image/*")),o=this.container.find(".uploadcare--camera__button_type_video").on("click",this.__captureInput("video/*")),this.settings.imagesOnly&&o.hide();else{if(!this.__checkCompatibility())return void this.dialogApi.hideTab(this.name);this.__initCamera()}}return c(e,[{key:"__captureInput",value:function(e){var t=this;return function(){return he(t.container,{inputAcceptTypes:e},t.__captureInputHandle,{capture:"camera"})}}},{key:"__captureInputHandle",value:function(e){return this.dialogApi.addFiles("object",e.files),this.dialogApi.switchTab("preview")}},{key:"__initCamera",value:function(){var e,t=this;return this.__loaded=!1,this.mirrored=this.settings.cameraMirrorDefault,this.container.append(ba("tab-camera")),this.container.addClass("uploadcare--camera"),this.container.addClass("uploadcare--camera_status_requested"),this.container.find(".uploadcare--camera__button_type_capture").on("click",this.__capture),e=this.container.find(".uploadcare--camera__button_type_start-record").on("click",this.__startRecording),this.container.find(".uploadcare--camera__button_type_stop-record").on("click",this.__stopRecording),this.container.find(".uploadcare--camera__button_type_cancel-record").on("click",this.__cancelRecording),this.container.find(".uploadcare--camera__button_type_mirror").on("click",this.__mirror),this.container.find(".uploadcare--camera__button_type_retry").on("click",this.__requestCamera),this.MediaRecorder&&!this.settings.imagesOnly&&this.settings.enableVideoRecording||e.hide(),this.video=this.container.find(".uploadcare--camera__video"),this.video.toggleClass("uploadcare--camera__video_mirrored",this.mirrored),this.video.on("loadeddata",(function(){return this.play()})),this.dialogApi.progress((function(e){if(e===t.name){if(!t.__loaded)return t.__requestCamera()}else if(t.__loaded&&Ba)return t.__revoke()})),this.dialogApi.always(this.__revoke)}},{key:"__checkCompatibility",value:function(){var e;return navigator.mediaDevices&&navigator.mediaDevices.getUserMedia?this.getUserMedia=function(e,t,a){return navigator.mediaDevices.getUserMedia(e).then(t).catch(a)}:this.getUserMedia=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia,this.URL=window.URL||window.webkitURL,this.MediaRecorder=window.MediaRecorder,Ba||L("Camera is not allowed for HTTP. Please use HTTPS connection."),e="localhost"===document.location.hostname,!!this.getUserMedia&&Uint8Array&&(Ba||e)}},{key:"__checkCapture",value:function(){var e;return(e=document.createElement("input")).setAttribute("capture","camera"),!!e.capture}},{key:"__setState",value:function(e){var t=["","ready","requested","denied","not-founded","recording","error"].join(" uploadcare--camera_status_");this.container.removeClass(t).addClass("uploadcare--camera_status_".concat(e)),this.container.find(".uploadcare--camera__button").focus()}},{key:"__requestCamera",value:function(){var e=this;return this.__loaded=!0,this.getUserMedia.call(navigator,{audio:this.settings.enableAudioRecording,video:{width:{ideal:1920},height:{ideal:1080},frameRate:{ideal:30}}},(function(t){return e.__setState("ready"),e.__stream=t,"srcObject"in e.video[0]?(e.video.prop("srcObject",t),e.video.on("loadedmetadata",(function(){return e.video[0].play()}))):(e.URL?(e.__streamObject=e.URL.createObjectURL(t),e.video.prop("src",e.__streamObject)):e.video.prop("src",t),e.video[0].play())}),(function(t){var a=Object.create(null);return a.NotFoundError=function(){e.__setState("not-founded")},a.NotAllowedError=function(){e.__setState("denied")},a.other=function(){e.__setState("denied"),console.warn("Camera error occurred: "+t.name)},(a[t.name]||a.other)(),e.__loaded=!1,e.__loaded}))}},{key:"__revoke",value:function(){var e;if(this.__setState("requested"),this.__loaded=!1,this.__stream)return this.__streamObject&&this.URL.revokeObjectURL(this.__streamObject),this.__stream.getTracks?a.default.each(this.__stream.getTracks(),(function(){return"function"==typeof this.stop?this.stop():void 0})):"function"==typeof(e=this.__stream).stop&&e.stop(),this.__stream=null,this.__stream}},{key:"__mirror",value:function(){return this.mirrored=!this.mirrored,this.video.toggleClass("uploadcare--camera__video_mirrored",this.mirrored)}},{key:"__capture",value:function(){var e,t,a,i,n,r=this;return n=(i=this.video[0]).videoWidth,a=i.videoHeight,(e=document.createElement("canvas")).width=n,e.height=a,t=e.getContext("2d"),this.mirrored&&(t.translate(n,0),t.scale(-1,1)),t.drawImage(i,0,0,n,a),be(e,"image/jpeg",.9,(function(t){return e.width=e.height=1,t.name="camera.jpg",r.dialogApi.addFiles("object",[[t,{source:"camera"}]]),r.dialogApi.switchTab("preview")}))}},{key:"__startRecording",value:function(){var e=this;this.__setState("recording"),this.__chunks=[];var t={},i=this.settings.videoPreferredMimeTypes;if(null!=i){var n=function(e,t){for(var a=e.length,i=0;i<a;){var n=e[i];if(t(n))return n;i++}}(a.default.isArray(i)?i:[i],(function(t){return e.MediaRecorder.isTypeSupported(t)}));null!=n&&(t.mimeType=n)}var r=navigator.userAgent.toLowerCase().indexOf("firefox")>-1;return null==t.mimeType&&r&&this.MediaRecorder.isTypeSupported("video/webm")&&(t.mimeType="video/webm"),null!==this.settings.audioBitsPerSecond&&(t.audioBitsPerSecond=this.settings.audioBitsPerSecond),null!==this.settings.videoBitsPerSecond&&(t.videoBitsPerSecond=this.settings.videoBitsPerSecond),0!==Object.keys(t).length?this.__recorder=new this.MediaRecorder(this.__stream,t):this.__recorder=new this.MediaRecorder(this.__stream),this.__recorder.start(),this.__recorder.ondataavailable=function(t){return e.__chunks.push(t.data)},this.__recorder.ondataavailable}},{key:"__stopRecording",value:function(){var e=this;return this.__setState("ready"),this.__recorder.onstop=function(){var t,a;return t=new window.Blob(e.__chunks,{type:e.__recorder.mimeType}),a=e.__guessExtensionByMime(e.__recorder.mimeType),t.name="record.".concat(a),e.dialogApi.addFiles("object",[[t,{source:"camera"}]]),e.dialogApi.switchTab("preview"),e.__chunks=[],e.__chunks},this.__recorder.stop()}},{key:"__cancelRecording",value:function(){return this.__setState("ready"),this.__recorder.stop(),this.__chunks=[],this.__chunks}},{key:"__guessExtensionByMime",value:function(e){var t={mp4:"mp4",ogg:"ogg",webm:"webm",quicktime:"mov","x-matroska":"mkv"};if(""===e)return"webm";if(e&&"video"===(e=e.split("/"))[0]){var a=(e=e.slice(1).join("/")).split(";")[0];if(t[a])return t[a]}return"avi"}},{key:"displayed",value:function(){this.dialogApi.takeFocus()&&this.container.find(".uploadcare--camera__button").focus()}}]),e}();z()&&function(e){e.Jcrop=function(t,a){var i,n=e.extend({},e.Jcrop.defaults);function r(e){return Math.round(e)+"px"}function l(e){return n.baseClass+"-"+e}function s(t){var a=e(t).offset();return[a.left,a.top]}function u(e){return[e.pageX-i[0],e.pageY-i[1]]}function c(t){"object"!==o(t)&&(t={}),n=e.extend(n,t),e.each(["onChange","onSelect","onRelease","onDblClick"],(function(e,t){"function"!=typeof n[t]&&(n[t]=function(){})}))}function d(e,t){if(i=s(C),"move"===e)return Y.activateHandlers(function(e){var t=e;return X.watchKeys(),function(e){H.moveOffset([e[0]-t[0],e[1]-t[1]]),t=e,G.update()}}(t),m);var a=H.getFixed(),r=p(e),o=H.getCorner(p(r));H.setPressed(H.getCorner(r)),H.setCurrent(o),Y.activateHandlers(function(e,t){return function(a){if(n.aspectRatio)switch(e){case"e":case"w":a[1]=t.y+1;break;case"n":case"s":a[0]=t.x+1}else switch(e){case"e":case"w":a[1]=t.y2;break;case"n":case"s":a[0]=t.x2}H.setCurrent(a),G.update()}}(e,a),m)}function p(e){switch(e){case"n":return"sw";case"s":case"e":return"nw";case"w":return"ne";case"ne":return"sw";case"nw":return"se";case"se":return"nw";case"sw":return"ne"}}function f(e){return function(t){return!n.disabled&&(!("move"===e&&!n.allowMove)&&(i=s(C),R=!0,d(e,u(t)),t.stopPropagation(),t.preventDefault(),!1))}}function h(e){return{x:e.x*U,y:e.y*B,x2:e.x2*U,y2:e.y2*B,w:e.w*U,h:e.h*B}}function m(e){H.getFixed(),G.enableHandles(),G.done()}function g(){var t=e("<div></div>").addClass(l("tracker"));return t.css({opacity:0,backgroundColor:"white"}),t}"object"!==o(t)&&(t=e(t)[0]),"object"!==o(a)&&(a={}),c(a);var _,v,b,y,w,x={border:"none",visibility:"visible",margin:0,padding:0,position:"absolute",top:0,left:0},k=e(t),z=!0;if("IMG"==t.tagName){if(0!=k[0].width&&0!=k[0].height)k.width(k[0].width),k.height(k[0].height);else{var A=new Image;A.src=k[0].src,k.width(A.width),k.height(A.height)}var C=k.clone().removeAttr("id").css(x).show();C.width(k.width()),C.height(k.height()),k.after(C).hide()}else C=k.css(x).show(),z=!1,null===n.shade&&(n.shade=!0);_=C,v=n.boxWidth,b=n.boxHeight,y=_.width(),w=_.height(),y>v&&v>0&&(y=v,w=v/_.width()*_.height()),w>b&&b>0&&(w=b,y=b/_.height()*_.width()),U=_.width()/y,B=_.height()/w,_.width(y).height(w);var S=C.width(),F=C.height(),T=e("<div></div>").width(S).height(F).addClass(l("holder")).css({position:"relative",backgroundColor:n.bgColor}).insertAfter(k).append(C);n.addClass&&T.addClass(n.addClass);var j=e("<div></div>"),D=e("<div></div>").width("100%").height("100%").css({zIndex:310,position:"absolute",overflow:"hidden"}),I=e("<div></div>").css({position:"absolute",zIndex:600}).dblclick((function(){var e=H.getFixed();n.onDblClick.call($,e)})).insertBefore(C).append(D);z&&(j=e("<img />").attr("src",C.attr("src")).css(x).width(S).height(F),D.append(j));var P,M,E,O,U,B,R,V=n.boundary,L=g().width(S+2*V).height(F+2*V).css({position:"absolute",top:r(-V),left:r(-V),zIndex:290}),N=n.bgColor,q=n.bgOpacity;i=s(C);var K=function(){function e(){var e,t={},a=["touchstart","touchmove","touchend"],i=document.createElement("div");try{for(e=0;e<a.length;e++){var n=a[e],r=(n="on"+n)in i;r||(i.setAttribute(n,"return;"),r="function"==typeof i[n]),t[a[e]]=r}return t.touchstart&&t.touchend&&t.touchmove}catch(e){return!1}}return{createDragger:function(e){return function(t){return t.pageX=t.originalEvent.changedTouches[0].pageX,t.pageY=t.originalEvent.changedTouches[0].pageY,!n.disabled&&(!("move"===e&&!n.allowMove)&&(R=!0,d(e,u(t)),t.stopPropagation(),t.preventDefault(),!1))}},isSupported:e,support:!0===n.touchSupport||!1===n.touchSupport?n.touchSupport:e()}}(),H=function(){var e,t,a=0,i=0,r=0,o=0;function l(){if(!n.aspectRatio)return function(){var e,t=r-a,n=o-i;P&&Math.abs(t)>P&&(r=t>0?a+P:a-P);M&&Math.abs(n)>M&&(o=n>0?i+M:i-M);O/B&&Math.abs(n)<O/B&&(o=n>0?i+O/B:i-O/B);E/U&&Math.abs(t)<E/U&&(r=t>0?a+E/U:a-E/U);a<0&&(r-=a,a-=a);i<0&&(o-=i,i-=i);r<0&&(a-=r,r-=r);o<0&&(i-=o,o-=o);r>S&&(a-=e=r-S,r-=e);o>F&&(i-=e=o-F,o-=e);a>S&&(o-=e=a-F,i-=e);i>F&&(o-=e=i-F,i-=e);return c(u(a,i,r,o))}();var e=n.aspectRatio,t=n.minSize[0]/U,l=n.maxSize[0]/U;n.maxSize[1];var s,d,p,f,h=r-a,m=o-i,g=Math.abs(h),_=Math.abs(m);return 0===l&&(l=10*S),g/_<e?(d=o,p=_*e,(s=h<0?a-p:p+a)<0?(s=0,f=Math.abs((s-a)/e),d=m<0?i-f:f+i):s>S&&(s=S,f=Math.abs((s-a)/e),d=m<0?i-f:f+i)):(s=r,f=g/e,(d=m<0?i-f:i+f)<0?(d=0,p=Math.abs((d-i)*e),s=h<0?a-p:p+a):d>F&&(d=F,p=Math.abs(d-i)*e,s=h<0?a-p:p+a)),s>a?(s-a<t?s=a+t:s-a>l&&(s=a+l),d=d>i?i+(s-a)/e:i-(s-a)/e):s<a&&(a-s<t?s=a-t:a-s>l&&(s=a-l),d=d>i?i+(a-s)/e:i-(a-s)/e),s<0?(a-=s,s=0):s>S&&(a-=s-S,s=S),d<0?(i-=d,d=0):d>F&&(i-=d-F,d=F),c(u(a,i,s,d))}function s(e){return e[0]<0&&(e[0]=0),e[1]<0&&(e[1]=0),e[0]>S&&(e[0]=S),e[1]>F&&(e[1]=F),[e[0],e[1]]}function u(e,t,a,i){var n=e,r=a,o=t,l=i;return a<e&&(n=a,r=e),i<t&&(o=i,l=t),[n,o,r,l]}function c(e){return{x:e[0],y:e[1],x2:e[2],y2:e[3],w:e[2]-e[0],h:e[3]-e[1]}}return{flipCoords:u,setPressed:function(e){e=s(e),r=a=e[0],o=i=e[1]},setCurrent:function(a){a=s(a),e=a[0]-r,t=a[1]-o,r=a[0],o=a[1]},getOffset:function(){return[e,t]},moveOffset:function(e){var t=e[0],n=e[1];0>a+t&&(t-=t+a),0>i+n&&(n-=n+i),F<o+n&&(n+=F-(o+n)),S<r+t&&(t+=S-(r+t)),a+=t,r+=t,i+=n,o+=n},getCorner:function(e){var t=l();switch(e){case"ne":return[t.x2,t.y];case"nw":return[t.x,t.y];case"se":return[t.x2,t.y2];case"sw":return[t.x,t.y2]}},getFixed:l}}(),W=function(){var t=!1,a=e("<div></div>").css({position:"absolute",zIndex:240,opacity:0}),i={top:s(),left:s().height(F),right:s().height(F),bottom:s()};function o(){return l(H.getFixed())}function l(e){i.top.css({left:r(e.x),width:r(e.w),height:r(e.y)}),i.bottom.css({top:r(e.y2),left:r(e.x),width:r(e.w),height:r(F-e.y2)}),i.right.css({left:r(e.x2),width:r(S-e.x2)}),i.left.css({width:r(e.x)})}function s(){return e("<div></div>").css({position:"absolute",backgroundColor:n.shadeColor||n.bgColor}).appendTo(a)}function u(){t||(t=!0,a.insertBefore(C),o(),G.setBgOpacity(1,0,1),j.hide(),c(n.shadeColor||n.bgColor,1),G.isAwake()?p(n.bgOpacity,1):p(1,1))}function c(e,t){Z(f(),e,t)}function d(){t&&(a.remove(),j.show(),t=!1,G.isAwake()?G.setBgOpacity(n.bgOpacity,1,1):G.setBgOpacity(1,1,1),Z(T,0,1))}function p(e,i){t&&(n.bgFade&&!i?a.animate({opacity:1-e},{queue:!1,duration:n.fadeTime}):a.css({opacity:1-e}))}function f(){return a.children()}return{update:o,updateRaw:l,getShades:f,setBgColor:c,enable:u,disable:d,resize:function(e,t){i.left.css({height:r(t)}),i.right.css({height:r(t)})},refresh:function(){n.shade?u():d(),G.isAwake()&&p(n.bgOpacity)},opacity:p}}(),G=function(){var t,a={},i={};function o(t){return function(t){var a=e("<div></div>").mousedown(f(t)).css({cursor:t+"-resize",position:"absolute"}).append("<div></div>").addClass("ord-"+t);return K.support&&a.on("touchstart.jcrop",K.createDragger(t)),I.append(a),a}(t).addClass(l("handle"))}function s(){var e=H.getFixed();H.setPressed([e.x,e.y]),H.setCurrent([e.x2,e.y2]),u()}function u(e){if(t)return c(e)}function c(e){var a,i,o=H.getFixed();!function(e,t){I.width(Math.round(e)).height(Math.round(t))}(o.w,o.h),a=o.x,i=o.y,n.shade||j.css({top:r(-i),left:r(-a)}),I.css({top:r(i),left:r(a)}),n.shade&&W.updateRaw(o),t||function(){I.show(),n.shade?W.opacity(q):d(q,!0);t=!0}(),e?n.onSelect.call($,h(o)):n.onChange.call($,h(o))}function d(e,a,i){(t||a)&&(n.bgFade&&!i?C.animate({opacity:e},{queue:!1,duration:n.fadeTime}):C.css("opacity",e))}function p(){if(n.allowResize)return!0}function m(e){e||p()}e.isArray(n.createHandles)&&function(e){var t;for(t=0;t<e.length;t++)i[e[t]]=o(e[t])}(n.createHandles),n.drawBorders&&e.isArray(n.createBorders)&&function(t){var i,n,r,o;for(n=0;n<t.length;n++){switch(t[n]){case"n":i="hline";break;case"s":i="hline bottom";break;case"e":i="vline right";break;case"w":i="vline"}a[t[n]]=(r=i,o=void 0,o=e("<div></div>").css({position:"absolute"}).addClass(l(r)),I.append(o),o)}}(n.createBorders),e(document).on("touchstart.jcrop-ios",(function(t){e(t.currentTarget).hasClass("jcrop-tracker")&&t.stopPropagation()}));var _=g().mousedown(f("move")).css({cursor:"move",position:"absolute",zIndex:360});return K.support&&_.on("touchstart.jcrop",K.createDragger("move")),D.append(_),{updateVisible:u,update:c,release:function(){I.hide(),n.shade?W.opacity(1):d(1),t=!1,n.onRelease.call($)},refresh:s,isAwake:function(){return t},setCursor:function(e){_.css("cursor",e)},enableHandles:p,enableOnly:function(){},disableHandles:function(){},animMode:m,setBgOpacity:d,done:function(){m(!1),s()}}}(),Y=function(){var t=function(){},a=function(){},i=n.trackDocument;function r(e){return t(u(e)),!1}function o(i){return i.preventDefault(),i.stopPropagation(),R&&(R=!1,a(u(i)),G.isAwake()&&n.onSelect.call($,h(H.getFixed())),L.css({zIndex:290}),e(document).off(".jcrop"),t=function(){},a=function(){}),!1}function l(e){return e.pageX=e.originalEvent.changedTouches[0].pageX,e.pageY=e.originalEvent.changedTouches[0].pageY,r(e)}function s(e){return e.pageX=e.originalEvent.changedTouches[0].pageX,e.pageY=e.originalEvent.changedTouches[0].pageY,o(e)}return i||L.mousemove(r).mouseup(o).mouseout(o),C.before(L),{activateHandlers:function(n,u){return R=!0,t=n,a=u,L.css({zIndex:450}),K.support&&e(document).on("touchmove.jcrop",l).on("touchend.jcrop",s),i&&e(document).on("mousemove.jcrop",r).on("mouseup.jcrop",o),!1}}}(),X=function(){var t=e('<input type="radio" />').css({position:"fixed",left:"-120px",width:"12px"}).addClass("jcrop-keymgr"),a=e("<div></div>").css({position:"absolute",overflow:"hidden"}).append(t);function i(e,t,a){n.allowMove&&(H.moveOffset([t,a]),G.updateVisible(!0)),e.preventDefault(),e.stopPropagation()}return n.keySupport&&(t.keydown((function(e){if(e.ctrlKey||e.metaKey)return!0;var t=!!e.shiftKey?10:1;switch(e.keyCode){case 37:i(e,-t,0);break;case 39:i(e,t,0);break;case 38:i(e,0,-t);break;case 40:i(e,0,t);break;case 9:return!0}return!1})).blur((function(e){t.hide()})),t.css({position:"absolute",left:"-20px"}),a.append(t).insertBefore(C)),{watchKeys:function(){n.keySupport&&(t.show(),t.focus())}}}();function J(e){!function(e){H.setPressed([e[0],e[1]]),H.setCurrent([e[2],e[3]]),G.update()}([e[0]/U,e[1]/B,e[2]/U,e[3]/B]),n.onSelect.call($,h(H.getFixed())),G.enableHandles()}function Z(t,a,i){var r=a||n.bgColor;n.bgFade&&e.fx.step.hasOwnProperty("backgroundColor")&&n.fadeTime&&!i?t.animate({backgroundColor:r},{queue:!1,duration:n.fadeTime}):t.css("backgroundColor",r)}function Q(e){n.allowResize&&(e||G.enableHandles()),G.setCursor(n.allowMove?"move":"default"),n.hasOwnProperty("trueSize")&&(U=n.trueSize[0]/S,B=n.trueSize[1]/F),n.hasOwnProperty("setSelect")&&(J(n.setSelect),G.done(),delete n.setSelect),W.refresh(),n.bgColor!=N&&(Z(n.shade?W.getShades():T,n.shade&&n.shadeColor||n.bgColor),N=n.bgColor),q!=n.bgOpacity&&(q=n.bgOpacity,n.shade?W.refresh():G.setBgOpacity(q)),P=n.maxSize[0]||0,M=n.maxSize[1]||0,E=n.minSize[0]||0,O=n.minSize[1]||0,n.hasOwnProperty("outerImage")&&(C.attr("src",n.outerImage),delete n.outerImage),G.refresh()}Q(!0);var $={setSelect:J,setOptions:function(e){c(e),Q()},tellSelect:function(){return h(H.getFixed())},tellScaled:function(){return H.getFixed()},setClass:function(e){T.removeClass().addClass(l("holder")).addClass(e)},disable:function(){n.disabled=!0,G.setCursor("default")},enable:function(){n.disabled=!1,Q()},cancel:function(){G.done(),Y.activateHandlers(null,null)},release:G.release,destroy:function(){T.remove(),k.show(),k.css("visibility","visible"),e(t).removeData("Jcrop")},focus:X.watchKeys,getBounds:function(){return[S*U,F*B]},getWidgetSize:function(){return[S,F]},getScaleFactor:function(){return[U,B]},getOptions:function(){return n},ui:{holder:T,selection:I}};return k.data("Jcrop",$),$},e.fn.Jcrop=function(t,a){var i;return this.each((function(){if(e(this).data("Jcrop")){if("api"===t)return e(this).data("Jcrop");e(this).data("Jcrop").setOptions(t)}else"IMG"==this.tagName?e.Jcrop.Loader(this,(function(){e(this).css({display:"block",visibility:"hidden"}),i=e.Jcrop(this,t),e.isFunction(a)&&a.call(i)})):(e(this).css({display:"block",visibility:"hidden"}),i=e.Jcrop(this,t),e.isFunction(a)&&a.call(i))})),this},e.Jcrop.Loader=function(t,a,i){var n=e(t),r=n[0];n.on("load.jcloader",(function t(){r.complete?(n.off(".jcloader"),e.isFunction(a)&&a.call(r)):window.setTimeout(t,50)})).on("error.jcloader",(function(t){n.off(".jcloader"),e.isFunction(i)&&i.call(r)})),r.complete&&e.isFunction(a)&&(n.off(".jcloader"),a.call(r))},e.Jcrop.defaults={allowMove:!0,allowResize:!0,trackDocument:!0,baseClass:"jcrop",addClass:null,bgColor:"black",bgOpacity:.6,bgFade:!1,aspectRatio:0,keySupport:!0,createHandles:["n","s","e","w","nw","ne","se","sw"],createBorders:["n","s","e","w"],drawBorders:!0,dragEdges:!0,fixedSupport:!0,touchSupport:null,shade:null,boxWidth:0,boxHeight:0,boundary:2,fadeTime:400,animationDelay:20,swingSpeed:3,maxSize:[0,0],minSize:[0,0],onChange:function(){},onSelect:function(){},onDblClick:function(){},onRelease:function(){}}}(a.default);var Va=/-\/crop\/([0-9]+)x([0-9]+)(\/(center|([0-9]+),([0-9]+)))?\//i,La=function(){function e(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};s(this,e),this.element=t,this.originalSize=i,this.__api=a.default.Jcrop(this.element[0],{trueSize:this.originalSize,baseClass:"uploadcare--jcrop",addClass:"uploadcare--crop-widget",createHandles:["nw","ne","se","sw"],bgColor:"transparent",bgOpacity:.8}),this.setCrop(n),this.setSelection()}return c(e,[{key:"setCrop",value:function(e){return this.crop=e,this.__api.setOptions({aspectRatio:e.preferedSize?e.preferedSize[0]/e.preferedSize[1]:0,minSize:e.notLess?ce(e.preferedSize,this.originalSize):[0,0]})}},{key:"setSelection",value:function(e){var t,a,i,n;return e?(t=e.center,i=[e.width,e.height]):(t=!0,i=this.originalSize),this.crop.preferedSize&&(i=ce(this.crop.preferedSize,i,!0)),t?(a=(this.originalSize[0]-i[0])/2,n=(this.originalSize[1]-i[1])/2):(a=e.left||0,n=e.top||0),this.__api.setSelect([a,n,i[0]+a,i[1]+n])}},{key:"__parseModifiers",value:function(e){var t=null!=e?e.match(Va):void 0;if(t)return{width:parseInt(t[1],10),height:parseInt(t[2],10),center:"center"===t[4],left:parseInt(t[5],10)||void 0,top:parseInt(t[6],10)||void 0}}},{key:"setSelectionFromModifiers",value:function(e){return this.setSelection(this.__parseModifiers(e))}},{key:"getSelection",value:function(){var e,t,a;return e=this.__api.tellSelect(),{left:t=Math.round(Math.max(0,e.x)),top:a=Math.round(Math.max(0,e.y)),width:Math.round(Math.min(this.originalSize[0],e.x2))-t,height:Math.round(Math.min(this.originalSize[1],e.y2))-a}}},{key:"applySelectionToFile",value:function(e){var t=this;return e.then((function(e){return de(e,t.crop,t.originalSize,t.getSelection())}))}}]),e}(),Na=function(){function e(t,a,i,n,r){var o=this;s(this,e),this.container=t,this.tabButton=a,this.dialogApi=i,this.settings=n,this.name=r,this.__initTabButtonCircle(),this.container.addClass("uploadcare--preview"),this.container.on("click",".uploadcare--preview__back:not(:disabled)",(function(){return o.dialogApi.fileColl.clear()})),this.container.on("click",".uploadcare--preview__done:not(:disabled)",this.dialogApi.resolve)}return c(e,[{key:"__initTabButtonCircle",value:function(){var e,t,i,n,r=this;return i=this.tabButton.find(".uploadcare--panel__icon"),t=a.default.Deferred(),n=function(){var e,a,i,n,o;for(n=0,e=0,i=(a=r.dialogApi.fileColl.lastProgresses()).length;e<i;e++)n+=((null!=(o=a[e])?o.progress:void 0)||0)/a.length;return t.notify(n)},this.dialogApi.fileColl.onAnyProgress(n),this.dialogApi.fileColl.onAdd.add(n),this.dialogApi.fileColl.onRemove.add(n),n(),e=new Aa(i).listen(t.promise()),this.dialogApi.progress((function(){var t;return(t=e).update.apply(t,arguments)}))}}]),e}(),qa=function(e){p(i,e);var t=_(i);function i(e,n,r,o,l){var u;return s(this,i),(u=t.apply(this,arguments)).container=e,u.tabButton=n,u.dialogApi=r,u.settings=o,u.name=l,a.default.each(u.dialogApi.fileColl.get(),(function(e,t){return u.__setFile(t)})),u.dialogApi.fileColl.onAdd.add(u.__setFile.bind(m(u))),u.widget=null,u.__state=null,u}return c(i,[{key:"__setFile",value:function(e){var t,a,i,n=this;return this.file=e,t=function(t){return function(){if(e===n.file){for(var a=arguments.length,i=new Array(a),r=0;r<a;r++)i[r]=arguments[r];return t.apply(null,i)}}},a=Y(this.__tryToLoadImagePreview.bind(this)),i=Y(this.__tryToLoadVideoPreview.bind(this)),this.__setState("unknown",{}),this.file.progress(t((function(t){var r,o,l;if(o=((t=t.incompleteFileInfo).name||"")+ge(t.size,"",", "),n.container.find(".uploadcare--preview__file-name").text(o),l=t.sourceInfo,r=E,l.file&&r&&l.file instanceof r)return l.file.type&&-1!==l.file.type.search(/^image\//i)?a(e,l.file):l.file.type&&-1!==l.file.type.search(/^video\//i)?i(e,l.file):a(e,l.file).fail((function(){return i(e,l.file)}))}))),this.file.done(t((function(e){var t,a;if("video"!==n.__state)return e.isImage?"image"!==n.__state?(a=e.originalUrl,a+="-/preview/1162x693/-/setfill/ffffff/-/format/jpeg/-/progressive/yes/",n.settings.previewUrlCallback&&(a=n.settings.previewUrlCallback(a,e)),t=e.originalImageInfo,n.__setState("image",{src:a,name:e.name,info:e}),n.initImage([t.width,t.height],e.cdnUrlModifiers)):void 0:n.__setState("regular",{file:e})}))),this.file.fail(t((function(e,t,a){return n.__setState("error",{errorType:e,error:a,file:t})})))}},{key:"__tryToLoadImagePreview",value:function(e,t){var i,n=this;return i=a.default.Deferred(),"pending"!==e.state()||!t.size||t.size>=this.settings.multipartMinSize?i.reject().promise():(bt(t,1550,924,"#ffffff",this.settings.imagePreviewMaxSize).done((function(t,a){return be(t,"image/jpeg",.95,(function(r){var o;if(i.resolve(),t.width=t.height=1,"pending"===e.state()&&"pending"===n.dialogApi.state()&&n.file===e)return o=U.createObjectURL(r),n.dialogApi.always((function(){return U.revokeObjectURL(o)})),"image"!==n.__state?(n.__setState("image",{src:o,name:""}),n.initImage(a)):void 0}))})).fail(i.reject),i.promise())}},{key:"__tryToLoadVideoPreview",value:function(e,t){var i,n,r=this;return i=a.default.Deferred(),U&&t.size?(n=U.createObjectURL(t),dt(n).fail((function(){return U.revokeObjectURL(n),i.reject()})).done((function(){if("pending"===e.state()&&"pending"===r.dialogApi.state()&&r.file===e){r.dialogApi.always((function(){return U.revokeObjectURL(n)})),i.resolve(),r.__setState("video");var t=r.container.find(".uploadcare--preview__video");return t.on("loadeddata",(function(){return t.get(0).currentTime=36e4,t.off("loadeddata")})),t.on("ended",(function(){return t.get(0).currentTime=0,t.off("ended")})),t.attr("src",n),t.get(0).load()}U.revokeObjectURL(n)})),i.promise()):i.reject().promise()}},{key:"__setState",value:function(e,t){this.__state=e,(t=t||{}).crop=this.settings.crop,this.container.empty().append(ba("tab-preview-".concat(e),r(r({},t),{},{debugUploads:this.settings.debugUploads}))),this.container.removeClass((function(e,t){return t.split(" ").filter((function(e){return!!~e.indexOf("uploadcare--preview_status_")})).join(" ")})),"unknown"===e&&this.settings.crop&&this.container.find(".uploadcare--preview__done").hide(),"error"===e&&this.container.addClass("uploadcare--preview_status_error-"+t.errorType),this.container.find(".uploadcare--preview__done").focus()}},{key:"initImage",value:function(e,t){var a,i,n,r,o=this;if(i=this.container.find(".uploadcare--preview__image"),a=this.container.find(".uploadcare--preview__done"),n=ct(i[0]).done((function(){return o.container.addClass("uploadcare--preview_status_loaded")})).fail((function(){return o.file=null,o.__setState("error",{error:"loadImage"})})),r=function(){return o.container.find(".uploadcare--crop-sizes__item").attr("aria-disabled",!1).attr("tabindex",0),a.attr("disabled",!1).attr("aria-disabled",!1),o.widget=new La(i,e,o.settings.crop[0]),t&&o.widget.setSelectionFromModifiers(t),a.on("click",(function(){var e;return e=o.widget.applySelectionToFile(o.file),o.dialogApi.fileColl.replace(o.file,e),!0}))},this.settings.crop)return this.container.find(".uploadcare--preview__title").text(ea.t("dialog.tabs.preview.crop.title")),this.container.find(".uploadcare--preview__content").addClass("uploadcare--preview__content_crop"),a.attr("disabled",!0).attr("aria-disabled",!0),a.text(ea.t("dialog.tabs.preview.crop.done")),this.populateCropSizes(),this.container.find(".uploadcare--crop-sizes__item").attr("aria-disabled",!0).attr("tabindex",-1),n.done((function(){return W(r)}))}},{key:"populateCropSizes",value:function(){var e,t,i,n=this;return e=this.container.find(".uploadcare--crop-sizes"),i=e.children(),t="uploadcare--crop-sizes__item_current",a.default.each(this.settings.crop,(function(r,o){var l,s,u,c,d,p;return(d=o.preferedSize)?(s=G(d[0],d[1]),l="".concat(d[0]/s,":").concat(d[1]/s)):l=ea.t("dialog.tabs.preview.crop.free"),c=i.clone().appendTo(e).attr("data-caption",l).on("click",(function(i){"true"!==a.default(i.currentTarget).attr("aria-disabled")&&!a.default(i.currentTarget).hasClass(t)&&n.settings.crop.length>1&&n.widget&&(n.widget.setCrop(o),e.find(">*").removeClass(t),c.addClass(t))})),d?(p=ce(d,[30,30],!0),c.children().css({width:Math.max(20,p[0]),height:Math.max(12,p[1])})):(u=a.default("<svg width='32' height='32'><use xlink:href='#uploadcare--icon-crop-free'/></svg>").attr("role","presentation").attr("class","uploadcare--icon"),c.children().append(u).addClass("uploadcare--crop-sizes__icon_free"))})),i.remove(),e.find(">*").eq(0).addClass(t)}},{key:"displayed",value:function(){this.dialogApi.takeFocus()&&this.container.find(".uploadcare--preview__done").focus()}}]),i}(Na);z()&&function(e){function t(e){this.targets=e,this.last=null,this.update()}t.prototype={update:function(){var t={};this.targets.each((function(a){var i=e(this).offset();i.top in t||(t[i.top]=[]),t[i.top].push([i.left+this.offsetWidth/2,this])})),this.rows=t},find:function(e,t){var a,i,n,r=1/0,o=this.rows;for(i in o){(s=Math.abs(i-t))<r&&(r=s,a=o[i])}r=Math.abs(a[0][0]-e),n=a[0][1];for(var l=1;l<a.length;l++){var s;(s=Math.abs(a[l][0]-e))<r&&(r=s,n=a[l][1])}return n},findNotLast:function(e,t){var a=this.find(e,t);return this.last&&a&&this.last==a?null:this.last=a}};var a="uploadcareMovable",i={uploadcareMovable:function(t){function i(e){if(t.touch){var a,i;if((i=e.originalEvent.touches)&&i.length)a=i[0];else{if(!(i=e.originalEvent.changedTouches)||!i.length)return;a=i[0]}e.pageX=a.pageX,e.pageY=a.pageY,e.which=1}}t=e.extend({distance:4,anyButton:!1,axis:!1,zIndex:1e3,start:e.noop,move:e.noop,finish:e.noop,items:null,keepFake:!1,touch:!0},t);var n="mousedown.{} touchstart.{}".replace(/\{}/g,a);this.on(n,t.items,null,(function(n){if(i(n),t.anyButton||1==n.which){n.preventDefault();var r=!1,o=e(this),l=!1,s=o.position();s.top+=o.offsetParent().scrollTop(),s.left+=o.offsetParent().scrollLeft();var u="mousemove.{} touchmove.{}".replace(/\{}/g,a);e(document).on(u,(function(e){if(i(e),!r&&(Math.abs(e.pageX-n.pageX)>t.distance||Math.abs(e.pageY-n.pageY)>t.distance)&&(r=!0,l=o.clone().css({position:"absolute",zIndex:t.zIndex,width:o.width()}).appendTo(o.offsetParent()),t.start({event:e,dragged:o,fake:l})),r){e.preventDefault();var a="y"==t.axis?0:e.pageX-n.pageX,u="x"==t.axis?0:e.pageY-n.pageY;l.css({left:a+s.left,top:u+s.top}),t.move({event:e,dragged:o,fake:l,dx:a,dy:u})}}));u="mouseup.{} touchend.{} touchcancel.{} touchleave.{}";e(document).on(u.replace(/\{}/g,a),(function(s){i(s);if(e(document).off("mousemove.{} touchmove.{} mouseup.{} touchend.{} touchcancel.{} touchleave.{}".replace(/\{}/g,a)),r){s.preventDefault();var u=s.pageX-n.pageX,c=s.pageY-n.pageY;r=!1,t.finish({event:s,dragged:o,fake:l,dx:u,dy:c}),t.keepFake||l.remove()}}))}}))},uploadcareSortable:function(i){var n,r=e.extend({items:">*"},i),o=(i=e.extend({checkBounds:function(){return!0},start:e.noop,attach:e.noop,move:e.noop,finish:e.noop},i),!1),l=this;return r.start=function(e){i.start(e),n=new t(l.find(r.items).not(e.fake)),o=e.dragged.next()},r.move=function(t){if(t.nearest=null,i.checkBounds(t)){var a=t.fake.offset(),r=n.findNotLast(a.left+t.dragged.width()/2,a.top);t.nearest=e(r),r&&r!=t.dragged[0]&&(t.dragged.nextAll().filter(r).length>0?t.dragged.insertAfter(r):t.dragged.insertBefore(r),i.attach(t),n.last=null,n.update())}else null!==n.last&&(n.last=null,o.length?t.dragged.insertBefore(o):t.dragged.parent().append(t.dragged),i.attach(t),n.update());i.move(t)},r.finish=function(t){var a=t.fake.offset();t.nearest=null,i.checkBounds(t)&&(t.nearest=e(n.find(a.left+t.dragged.width()/2,a.top))),i.finish(t),n=null},this[a](r)}};e.fn.extend(i)}(a.default);var Ka=function(e){p(i,e);var t=_(i);function i(){var e;return s(this,i),(e=t.apply(this,arguments)).container.append(ba("tab-preview-multiple")),e.__fileTpl=a.default(ba("tab-preview-multiple-file")),e.fileListEl=e.container.find(".uploadcare--files"),e.doneBtnEl=e.container.find(".uploadcare--preview__done"),a.default.each(e.dialogApi.fileColl.get(),(function(t,a){return e.__fileAdded(a)})),e.__updateContainerView(),e.dialogApi.fileColl.onAdd.add(e.__fileAdded.bind(m(e)),(function(){return e.__updateContainerView()})),e.dialogApi.fileColl.onRemove.add(e.__fileRemoved.bind(m(e)),(function(){return e.__updateContainerView()})),e.dialogApi.fileColl.onReplace.add(e.__fileReplaced.bind(m(e)),(function(){return e.__updateContainerView()})),e.dialogApi.fileColl.onAnyProgress(e.__fileProgress.bind(m(e))),e.dialogApi.fileColl.onAnyDone(e.__fileDone.bind(m(e))),e.dialogApi.fileColl.onAnyFail(e.__fileFailed.bind(m(e))),e.fileListEl.addClass(e.settings.imagesOnly?"uploadcare--files_type_tiles":"uploadcare--files_type_table"),e.__setupSorting(),e}return c(i,[{key:"__setupSorting",value:function(){var e=this;return this.fileListEl.uploadcareSortable({touch:!1,axis:this.settings.imagesOnly?"xy":"y",start:function(e){return e.dragged.css("visibility","hidden")},finish:function(t){var a,i;return t.dragged.css("visibility","visible"),a=e.container.find(".uploadcare--file"),i=function(t){return a.index(e.__fileToEl(t))},e.dialogApi.fileColl.sort((function(e,t){return i(e)-i(t)}))}})}},{key:"__updateContainerView",value:function(){var e,t,a,i,n,r,o;if(r=(t=this.dialogApi.fileColl.length())>this.settings.multipleMax,n=t<this.settings.multipleMin,a=r||n,this.doneBtnEl.attr("disabled",a).attr("aria-disabled",a),i=ea.t("dialog.tabs.preview.multiple.question").replace("%files%",ea.t("file",t)),this.container.find(".uploadcare--preview__title").text(i),(e=this.container.find(".uploadcare--preview__message")).empty(),a)return o=r?ea.t("dialog.tabs.preview.multiple.tooManyFiles").replace("%max%",this.settings.multipleMax):t&&n?ea.t("dialog.tabs.preview.multiple.tooFewFiles").replace("%min%",this.settings.multipleMin).replace("%files%",ea.t("file",t)):void 0,e.addClass("uploadcare--error").text(o)}},{key:"__updateFileInfo",value:function(e,t){var a;return a=t.name||ea.t("dialog.tabs.preview.unknownName"),e.find(".uploadcare--file__name").text(a),e.find(".uploadcare--file__description").attr("aria-label",ea.t("dialog.tabs.preview.multiple.file.preview").replace("%file%",a)),e.find(".uploadcare--file__remove").attr("title",ea.t("dialog.tabs.preview.multiple.file.remove").replace("%file%",a)).attr("aria-label",ea.t("dialog.tabs.preview.multiple.file.remove").replace("%file%",a)),e.find(".uploadcare--file__size").text(ge(t.size,"–"))}},{key:"__fileProgress",value:function(e,t){var a;return(a=this.__fileToEl(e)).find(".uploadcare--progressbar__value").css("width",Math.round(100*t.progress)+"%"),this.__updateFileInfo(a,t.incompleteFileInfo)}},{key:"__fileDone",value:function(e,t){var i,n,r,o,l=this;return(n=this.__fileToEl(e).removeClass("uploadcare--file_status_uploading").addClass("uploadcare--file_status_uploaded")).find(".uploadcare--progressbar__value").css("width","100%"),this.__updateFileInfo(n,t),t.isImage?(i="".concat(t.cdnUrl,"-/quality/lightest/-/preview/108x108/"),this.settings.previewUrlCallback&&(i=this.settings.previewUrlCallback(i,t)),o=n.find(".uploadcare--file__name").text(),r=a.default("<img>").attr("src",i).attr("alt",o).addClass("uploadcare--file__icon")):r=a.default("<svg width='32' height='32'><use xlink:href='#uploadcare--icon-file'/></svg>").attr("role","presentation").attr("class","uploadcare--icon uploadcare--file__icon"),n.find(".uploadcare--file__preview").html(r),n.find(".uploadcare--file__description").on("click",(function(){return Za(e,l.settings).done((function(t){return l.dialogApi.fileColl.replace(e,t)}))}))}},{key:"__fileFailed",value:function(e,t,i,n){var r=this.settings.debugUploads&&(null==n?void 0:n.message)||ea.t("serverErrors.".concat(null==n?void 0:n.code))||(null==n?void 0:n.message)||ea.t("errors.".concat(t)),o=this.__fileToEl(e).removeClass("uploadcare--file_status_uploading").addClass("uploadcare--file_status_error");o.find(".uploadcare--file__error").text(r);var l=a.default("<svg width='32' height='32'><use xlink:href='#uploadcare--icon-error'/></svg>").attr("role","presentation").attr("class","uploadcare--icon uploadcare--file__icon");return o.find(".uploadcare--file__preview").html(l)}},{key:"__fileAdded",value:function(e){return this.__createFileEl(e).appendTo(this.fileListEl)}},{key:"__fileRemoved",value:function(e){return this.__fileToEl(e).remove(),a.default(e).removeData()}},{key:"__fileReplaced",value:function(e,t){return this.__createFileEl(t).insertAfter(this.__fileToEl(e)),this.__fileRemoved(e)}},{key:"__fileToEl",value:function(e){return a.default(e).data("dpm-el")||a.default()}},{key:"__createFileEl",value:function(e){var t,i=this;return t=this.__fileTpl.clone().on("click",".uploadcare--file__remove",(function(){return i.dialogApi.fileColl.remove(e)})),a.default(e).data("dpm-el",t),t}},{key:"displayed",value:function(){this.container.find(".uploadcare--preview__done").focus()}}]),i}(Na);z()&&a.default(window).on("keydown",(function(e){if(Ya()&&(27===e.which&&(e.stopImmediatePropagation(),null!=Ha&&Ha.reject()),9===e.which))return function(e){return!e.shiftKey&&Ga.last().is(e.target)?(e.preventDefault(),Ga.first().focus()):e.shiftKey&&Ga.first().is(e.target)?(e.preventDefault(),Ga.last().focus()):void 0}(e)}));var Ha=null,Wa=null,Ga=null,Ya=function(){return null!==Ha},Xa=function(){Ha&&(Ha.reject(),Ha=null)},Ja=function(e,t,i){var n,r,o;return Xa(),Wa=document.activeElement,r=a.default(ba("dialog")).appendTo("body"),o=Qa(r.find(".uploadcare--dialog__placeholder"),e,t,i,{inModal:!0}),r.find(".uploadcare--panel").addClass("uploadcare--dialog__panel"),r.addClass("uploadcare--dialog_status_active"),o.dialogElement=r,(Ga=r.find("select, input, textarea, button, a[href]")).first().focus(),n=function(e,t){var a,i;return i=e.scrollTop(),a=e.scrollLeft(),t&&e.scrollTop(0).scrollLeft(0),function(){return e.scrollTop(i).scrollLeft(a)}}(a.default(window),"absolute"===r.css("position")),a.default("html, body").addClass("uploadcare--page"),r.find(".uploadcare--dialog__close").on("click",o.reject),r.on("dblclick",(function(e){var t;if(a.default.contains(document.documentElement,e.target)&&(t=".uploadcare--dialog__panel, .uploadcare--dialog__powered-by",!a.default(e.target).is(t)&&!a.default(e.target).parents(t).length))return o.reject()})),Ha=o.always((function(){return a.default("html, body").removeClass("uploadcare--page"),Ha=null,r.remove(),n(),Wa.focus()}))},Za=function(e,t){var i,n;return n=Ha,Ha=null,t=a.default.extend({},t,{multiple:!1,tabs:""}),i=Ja(e,"preview",t),null!=n&&n.dialogElement.addClass("uploadcare--dialog_status_inactive"),i.always((function(){if(Ha=n,null!=n)return a.default("html, body").addClass("uploadcare--page"),n.dialogElement.removeClass("uploadcare--dialog_status_inactive")})),i.onTabVisibility((function(e,t){if("preview"===e&&!t)return i.reject()})),i},Qa=function(e,t,i,n){var r,o,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{inModal:!1};return a.default.isPlainObject(i)&&(n=i,i=null),t?Ht(t)?t=t.files():a.default.isArray(t)||(t=[t]):t=[],n=ot(n),o=new ti(n,e,t,i,l).publicPromise(),J(o,r=function(e){return n.multiple?oa(e,n):e[0]},r).promise(o)},$a={},ei=function(e,t){return $a[e]=t,$a[e]};ei("file",Oa),ei("url",Ua),ei("camera",Ra),ei("facebook",pa),ei("dropbox",pa),ei("gdrive",pa),ei("gphotos",pa),ei("instagram",pa),ei("flickr",pa),ei("vk",pa),ei("evernote",pa),ei("box",pa),ei("onedrive",pa),ei("huddle",pa),ei("nft",pa),ei("empty-pubkey",(function(e,t,a,i){return e.append('<div class="uploadcare--tab__content">\n<div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title">Hello!</div>\n<div class="uploadcare--text">Your <a class="uploadcare--link" href="https://uploadcare.com/dashboard/">public key</a> is not set.</div>\n<div class="uploadcare--text">Add this to the &lt;head&gt; tag to start uploading files:</div>\n<div class="uploadcare--text uploadcare--text_pre">&lt;script&gt;\nUPLOADCARE_PUBLIC_KEY = \'your_public_key\';\n&lt;/script&gt;</div>\n</div>')})),ei("preview",(function(e,t,a,i,n){if(i.previewStep||0!==a.fileColl.length())return new(i.multiple?Ka:qa)(e,t,a,i,n)}));var ti=function(){function e(t,i,n,r,o){var l,u=this;s(this,e),this.inModal=o.inModal||!1,this.addFiles=this.addFiles.bind(this),this.__resolve=this.__resolve.bind(this),this.__reject=this.__reject.bind(this),this.__updateFooter=this.__updateFooter.bind(this),this.__closePanel=this.__closePanel.bind(this),this.switchTab=this.switchTab.bind(this),this.showTab=this.showTab.bind(this),this.hideTab=this.hideTab.bind(this),this.isTabVisible=this.isTabVisible.bind(this),this.openMenu=this.openMenu.bind(this),this.settings=t,this.dfd=a.default.Deferred(),this.dfd.always(this.__closePanel),l=".uploadcare--panel",this.content=a.default(ba("dialog__panel")),this.panel=this.content.find(l).add(this.content.filter(l)),this.placeholder=a.default(i),this.placeholder.replaceWith(this.content),this.panel.append(a.default(ba("icons"))),this.settings.multiple&&this.panel.addClass("uploadcare--panel_multiple"),this.panel.find(".uploadcare--menu__toggle").on("click",(function(){return u.panel.find(".uploadcare--menu").toggleClass("uploadcare--menu_opened")})),this.files=new Zt(n),this.files.onRemove.add((function(){if(0===u.files.length())return u.hideTab("preview")})),this.__autoCrop(this.files),this.tabs={},this.__prepareFooter(),this.onTabVisibility=a.default.Callbacks().add((function(e,t){return u.panel.find(".uploadcare--menu__item_tab_".concat(e)).toggleClass("uploadcare--menu__item_hidden",!t)})),this.settings.publicKey?this.__prepareTabs(r):this.__welcome()}return c(e,[{key:"takeFocus",value:function(){return this.inModal}},{key:"publicPromise",value:function(){return this.promise||(this.promise=this.dfd.promise({reject:this.__reject,resolve:this.__resolve,fileColl:this.files,addFiles:this.addFiles,switchTab:this.switchTab,hideTab:this.hideTab,showTab:this.showTab,isTabVisible:this.isTabVisible,openMenu:this.openMenu,takeFocus:this.takeFocus.bind(this),onTabVisibility:$(this.onTabVisibility)})),this.promise}},{key:"addFiles",value:function(e,t){var a,i,n;for(t&&(e=Nt(e,t,this.settings)),this.settings.multiple||(this.files.clear(),e=[e[0]]),i=0,n=e.length;i<n;i++)a=e[i],this.settings.multipleMaxStrict&&this.files.length()>=this.settings.multipleMax?a.cancel():this.files.add(a);return this.settings.previewStep?(this.showTab("preview"),this.settings.multiple?void 0:this.switchTab("preview")):this.__resolve()}},{key:"__autoCrop",value:function(e){var t,a,i,n=this;if(this.settings.crop&&this.settings.multiple){for(t=0,a=(i=this.settings.crop).length;t<a;t++)if(!i[t].preferedSize)return;return e.autoThen((function(e){var t,a;return!e.isImage||e.cdnUrlModifiers||e.crop?e:(t=e.originalImageInfo,a=ce(n.settings.crop[0].preferedSize,[t.width,t.height],!0),de(e,n.settings.crop[0],[t.width,t.height],{width:a[0],height:a[1],left:Math.round((t.width-a[0])/2),top:Math.round((t.height-a[1])/2)}))}))}}},{key:"__resolve",value:function(){return this.dfd.resolve(this.files.get())}},{key:"__reject",value:function(){return this.dfd.reject(this.files.get())}},{key:"__prepareTabs",value:function(e){var t,a,i,n;for(this.addTab("preview"),t=0,a=(i=this.settings.tabs).length;t<a;t++)n=i[t],this.addTab(n);if(this.files.length()?(this.showTab("preview"),this.switchTab("preview")):(this.hideTab("preview"),this.switchTab(e||this.__firstVisibleTab())),0===this.settings.tabs.length)return this.panel.addClass("uploadcare--panel_menu-hidden"),this.panel.find(".uploadcare--panel__menu").addClass("uploadcare--panel__menu_hidden")}},{key:"__prepareFooter",value:function(){var e=this;return this.footer=this.panel.find(".uploadcare--panel__footer"),":not(:disabled)",this.footer.on("click",".uploadcare--panel__show-files:not(:disabled)",(function(){return e.switchTab("preview")})),this.footer.on("click",".uploadcare--panel__done:not(:disabled)",this.__resolve),this.__updateFooter(),this.files.onAdd.add(this.__updateFooter),this.files.onRemove.add(this.__updateFooter)}},{key:"__updateFooter",value:function(){var e,t,a,i=this.files.length();return a=i>this.settings.multipleMax,t=i<this.settings.multipleMin,this.footer.find(".uploadcare--panel__done").attr("disabled",a||t).attr("aria-disabled",a||t),this.footer.find(".uploadcare--panel__show-files").attr("disabled",0===i).attr("aria-disabled",0===i),e=a?ea.t("dialog.tabs.preview.multiple.tooManyFiles").replace("%max%",this.settings.multipleMax):i&&t?ea.t("dialog.tabs.preview.multiple.tooFewFiles").replace("%min%",this.settings.multipleMin):ea.t("dialog.tabs.preview.multiple.title"),this.footer.find(".uploadcare--panel__message").toggleClass("uploadcare--panel__message_hidden",0===i).toggleClass("uploadcare--error",a||t).text(e.replace("%files%",ea.t("file",i))),this.footer.find(".uploadcare--panel__file-counter").toggleClass("uploadcare--error",a||t).text(i?"(".concat(i,")"):"")}},{key:"__closePanel",value:function(){return this.panel.replaceWith(this.placeholder),this.content.remove()}},{key:"addTab",value:function(e){var t,i,n,r,o=this;if(!(e in this.tabs)){if(!(t=$a[e]))throw new Error("No such tab: ".concat(e));return r=a.default("<div>").addClass("uploadcare--tab").addClass("uploadcare--tab_name_".concat(e)).insertBefore(this.footer),n="preview"===e?a.default('<div class="uploadcare--menu__icon uploadcare--panel__icon" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100">'):a.default("<svg width='32' height='32'><use xlink:href='#uploadcare--icon-".concat(e,"'/></svg>")).attr("role","presentation").attr("class","uploadcare--icon uploadcare--menu__icon"),i=a.default("<div>",{role:"button",tabindex:"0"}).addClass("uploadcare--menu__item").addClass("uploadcare--menu__item_tab_".concat(e)).attr("title",ea.t("dialog.tabs.names.".concat(e))).append(n).appendTo(this.panel.find(".uploadcare--menu__items")).on("click",(function(){return e===o.currentTab?o.panel.find(".uploadcare--panel__menu").removeClass("uploadcare--menu_opened"):o.switchTab(e)})),this.tabs[e]=new t(r,i,this.publicPromise(),this.settings,e),this.tabs[e]}}},{key:"switchTab",value:function(e){var t;if(e&&this.currentTab!==e)return this.currentTab=e,this.panel.find(".uploadcare--panel__menu").removeClass("uploadcare--menu_opened").attr("data-current",e),this.panel.find(".uploadcare--menu__item").removeClass("uploadcare--menu__item_current").filter(".uploadcare--menu__item_tab_".concat(e)).addClass("uploadcare--menu__item_current"),t="uploadcare--tab",this.panel.find(".".concat(t)).removeClass("".concat(t,"_current")).filter(".".concat(t,"_name_").concat(e)).addClass("".concat(t,"_current")),this.tabs[e].displayed&&this.tabs[e].displayed(),this.dfd.notify(e)}},{key:"showTab",value:function(e){return this.onTabVisibility.fire(e,!0)}},{key:"hideTab",value:function(e){if(this.onTabVisibility.fire(e,!1),this.currentTab===e)return this.switchTab(this.__firstVisibleTab())}},{key:"isTabVisible",value:function(e){return!this.panel.find(".uploadcare--menu__item_tab_".concat(e)).is(".uploadcare--menu__item_hidden")}},{key:"openMenu",value:function(){return this.panel.find(".uploadcare--panel__menu").addClass("uploadcare--menu_opened")}},{key:"__firstVisibleTab",value:function(){var e,t,a,i;for(e=0,t=(a=this.settings.tabs).length;e<t;e++)if(i=a[e],this.isTabVisible(i))return i}},{key:"__welcome",value:function(){var e,t,a,i;for(this.addTab("empty-pubkey"),this.switchTab("empty-pubkey"),e=0,t=(a=this.settings.tabs).length;e<t;e++)i=a[e],this.__addFakeTab(i);return null}},{key:"__addFakeTab",value:function(e){var t;return t=a.default("<svg width='32' height='32'><use xlink:href='#uploadcare--icon-".concat(e,"'/></svg>")).attr("role","presentation").attr("class","uploadcare--icon uploadcare--menu__icon"),"empty-pubkey"===e&&t.addClass("uploadcare--panel__icon"),a.default("<div>").addClass("uploadcare--menu__item").addClass("uploadcare--menu__item_tab_".concat(e)).attr("aria-disabled",!0).attr("title",ea.t("dialog.tabs.names.".concat(e))).append(t).appendTo(this.panel.find(".uploadcare--menu__items"))}}]),e}(),ai=function(){function e(t,i){var n=this;s(this,e),this.element=t,this.settings=i,this.validators=this.settings.validators=[],this.currentObject=null,this.__onDialogOpen=a.default.Callbacks(),this.__onUploadComplete=a.default.Callbacks(),this.__onChange=a.default.Callbacks().add((function(e){return null!=e?e.promise().done((function(e){return n.__onUploadComplete.fire(e)})):void 0})),this.__setupWidget(),this.element.on("change.uploadcare",this.reloadInfo.bind(this)),this.__hasValue=!1,W((function(){if(!n.__hasValue)return n.reloadInfo()}))}return c(e,[{key:"__setupWidget",value:function(){var e,t=this;return this.template=new Ea(this.settings,this.element),(e=["buttons.choose"]).push(this.settings.imagesOnly?"images":"files"),e.push(this.settings.multiple?"other":"one"),this.template.addButton("open",ea.t(e.join("."))).toggleClass("needsclick",this.settings.systemDialog).on("click",(function(){return t.openDialog()})),this.template.addButton("cancel",ea.t("buttons.cancel")).on("click",(function(){return t.__setObject(null)})),this.template.addButton("remove",ea.t("buttons.remove")).on("click",(function(){return t.__setObject(null)})),this.template.content.on("click",".uploadcare--widget__file-name",(function(){return t.openDialog()})),Da(this.template.content,this.__handleDirectSelection.bind(this)),this.template.reset()}},{key:"__infoToValue",value:function(e){return e.cdnUrlModifiers||this.settings.pathValue?e.cdnUrl:e.uuid}},{key:"__reset",value:function(){var e;return e=this.currentObject,this.currentObject=null,null!=e&&"function"==typeof e.cancel&&e.cancel(),this.template.reset()}},{key:"__setObject",value:function(e){if(e!==this.currentObject)return this.__reset(),e?(this.currentObject=e,this.__watchCurrentObject()):this.element.val(""),this.__onChange.fire(this.currentObject)}},{key:"__watchCurrentObject",value:function(){var e,t=this;if(e=this.__currentFile())return this.template.listen(e),e.done((function(a){if(e===t.__currentFile())return t.__onUploadingDone(a)})).fail((function(a,i,n){if(e===t.__currentFile())return t.__onUploadingFailed(a,n)}))}},{key:"__onUploadingDone",value:function(e){return this.element.val(this.__infoToValue(e)),this.template.setFileInfo(e),this.template.loaded()}},{key:"__onUploadingFailed",value:function(e,t){return this.template.reset(),this.template.error(e,t)}},{key:"__setExternalValue",value:function(e){return this.__setObject(Kt(e,this.settings))}},{key:"value",value:function(e){return void 0!==e?(this.__hasValue=!0,this.__setExternalValue(e),this):this.currentObject}},{key:"reloadInfo",value:function(){return this.value(this.element.val())}},{key:"openDialog",value:function(e){var t=this;return this.settings.systemDialog?he(this.template.content,this.settings,(function(e){return t.__handleDirectSelection("object",e.files)})):this.__openDialog(e)}},{key:"__openDialog",value:function(e){var t;return t=Ja(this.currentObject,e,this.settings),this.__onDialogOpen.fire(t),t.done(this.__setObject.bind(this))}},{key:"api",value:function(){return this.__api||(this.__api=Z(this,["openDialog","reloadInfo","value","validators"]),this.__api.onChange=$(this.__onChange),this.__api.onUploadComplete=$(this.__onUploadComplete),this.__api.onDialogOpen=$(this.__onDialogOpen),this.__api.inputElement=this.element.get(0)),this.__api}}]),e}(),ii=function(e){p(a,e);var t=_(a);function a(){return s(this,a),t.apply(this,arguments)}return c(a,[{key:"__currentFile",value:function(){return this.currentObject}},{key:"__handleDirectSelection",value:function(e,t){var a=Lt(e,t[0],this.settings);return this.settings.systemDialog||!this.settings.previewStep?this.__setObject(a):this.__openDialog("preview").addFiles([a])}}]),a}(ai);ii._name="SingleWidget";var ni=function(e){p(a,e);var t=_(a);function a(){return s(this,a),t.apply(this,arguments)}return c(a,[{key:"__currentFile",value:function(){var e;return null!=(e=this.currentObject)?e.promise():void 0}},{key:"__setObject",value:function(e){return Gt(this.currentObject,e)?e?void 0:(this.__reset(),this.element.val("")):b(f(a.prototype),"__setObject",this).call(this,e)}},{key:"__setExternalValue",value:function(e){var t,a=this;return this.__lastGroupPr=t=Wt(e,this.settings),e&&(this.template.setStatus("started"),this.template.statusText.text(ea.t("loadingInfo"))),t.done((function(e){if(a.__lastGroupPr===t)return a.__setObject(e)})).fail((function(){if(a.__lastGroupPr===t)return a.__onUploadingFailed("createGroup")}))}},{key:"__handleDirectSelection",value:function(e,t){var a=Nt(e,t,this.settings);return this.settings.systemDialog?this.__setObject(oa(a,this.settings)):this.__openDialog("preview").addFiles(a)}}]),a}(ai);ni._name="MultipleWidget";var ri="uploadcareWidget",oi='[role~="uploadcare-uploader"]',li=function(){var e,t,i,n,r,o,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":root";for(r=[],t=0,i=(n=a.default(l)).length;t<i;t++)e=n[t],o=si(e.querySelectorAll(oi)),r=r.concat(o);return r},si=function(e){var t,i,n,r,o;for(n=[],t=0,i=e.length;t<i;t++)r=e[t],(o=a.default(r).data(ri))&&o.inputElement===r||n.push(pi(r));return n},ui=function(e,t){return pi(e,t,ii)},ci=function(e,t){return pi(e,t,ni)},di=function(e,t){return pi(e,t)},pi=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0,n=a.default(e);if(0===n.length)throw new Error("No DOM elements found matching selector");n.length>1&&L("There are multiple DOM elements matching selector"),e=n.eq(0);var o=ot(r(r({},t),e.data())),l=o.multiple?ni:ii;if(i&&l!==i)throw new Error("This element should be processed using ".concat(l._name));var s=e.data(ri);if(!s||s.inputElement!==e[0]){fi(e);var u=new l(e,o);s=u.api(),e.data(ri,s),u.template.content.data(ri,s)}return s},fi=function(e){return e.off(".uploadcare").each((function(){var e,t;if((e=(t=a.default(this).next(".uploadcare--widget")).data(ri))&&e.inputElement===this)return t.remove()}))},hi=Y((function(e,t){if(e=rt(e,t),!t)return e.live&&setInterval(li,100),li()}));z()&&a.default((function(){window.UPLOADCARE_MANUAL_START||hi()}));var mi=r(r({},fa),{},{templates:{JST:va,tpl:ba},crop:{CropWidget:La},dragdrop:{support:Ta,uploadDrop:ja,watchDragging:Ia,receiveDrop:Da},ui:{progress:{Circle:Aa,BaseRenderer:Ca,TextRenderer:Sa,CanvasRenderer:Fa}},widget:{tabs:{FileTab:Oa,UrlTab:Ua,CameraTab:Ra,RemoteTab:pa,BasePreviewTab:Na,PreviewTab:qa,PreviewTabMultiple:Ka},Template:Ea,BaseWidget:ai,Widget:ii,MultipleWidget:ni},isDialogOpened:Ya,closeDialog:Xa,openDialog:Ja,openPreviewDialog:Za,openPanel:Qa,registerTab:ei,initialize:li,SingleWidget:ui,MultipleWidget:ci,Widget:di,start:hi}),gi=ha(mi),_i=r(r({},ma),{},{plugin:gi,start:hi,initialize:li,openDialog:Ja,closeDialog:Xa,openPanel:Qa,registerTab:ei,Circle:Aa,SingleWidget:ui,MultipleWidget:ci,Widget:di,tabsCss:da,dragdrop:{receiveDrop:Da,support:Ta,uploadDrop:ja}}),vi=ha(mi);return r(r({},_i),{},{plugin:vi,locales:Object.keys(ea.translations)})}));