Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/ts.corals.io/corals-api/public/assets/corals/plugins/page-designer/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/ts.corals.io/corals-api/public/assets/corals/plugins/page-designer/filestack.js
/* v0.9.12 */
!function(u,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):u.filestack=e()}(this,function(){"use strict";function u(u,e){return"function"==typeof e?Cu(e):e}function e(u,t){!0!==u&&(du(t)?t=t():hu(t)&&(t='Assert failed (turn on "Pause on exceptions" in your Source panel)'),e.fail(t))}function t(u,e){return"{"+Du(u)+" | "+Cu(e)+"}"}function r(u,e,r){function n(e,t){return ju(u,e,t)}var o=r||t(u,e),i=Ou(u);return n.meta={kind:"subtype",type:u,predicate:e,name:r,identity:i},n.displayName=o,n.is=function(t){return zu(t,u)&&e(t)},n.update=function(u,e){return n(yu.update(u,e))},n}function n(u,e){return"{[key: "+Du(u)+"]: "+Du(e)+"}"}function o(u,e,t){function r(t,r){if(i)return t;var n=!0,o={};for(var a in t)if(t.hasOwnProperty(a)){var s=t[a=ju(u,a,null)],c=ju(e,s,null);n=n&&s===c,o[a]=c}return n&&(o=t),o}var o=t||n(u,e),i=(Du(u),Du(e),Ou(u)&&Ou(e));return r.meta={kind:"dict",domain:u,codomain:e,name:t,identity:i},r.displayName=o,r.is=function(t){if(!Bu(t))return!1;for(var r in t)if(t.hasOwnProperty(r)&&(!zu(r,u)||!zu(t[r],e)))return!1;return!0},r.update=function(u,e){return r(yu.update(u,e))},r}function i(u){return Object.keys(u).map(function(u){return yu.stringify(u)}).join(" | ")}function a(u,e){function t(u,e){return u}var r=e||i(u);return t.meta={kind:"enums",map:u,name:e,identity:!0},t.displayName=r,t.is=function(e){return u.hasOwnProperty(e)},t}function s(u){return"Array<"+Du(u)+">"}function c(u,e){function t(e,t){if(n)return e;for(var r=!0,o=[],i=0,a=e.length;i<a;i++){var s=e[i],c=ju(u,s,null);r=r&&s===c,o.push(c)}return r&&(o=e),o}var r=e||s(u),n=(Du(u),Ou(u));return t.meta={kind:"list",type:u,name:e,identity:n},t.displayName=r,t.is=function(e){return Fu(e)&&e.every(function(e){return zu(e,u)})},t.update=function(u,e){return t(yu.update(u,e))},t}function f(u){return"?"+Du(u)}function A(u,e){function t(e,t){return Tu.is(e)?e:ju(u,e,t)}if(Ju(u)||u===bu||u===Tu)return u;var r=e||f(u),n=Ou(u);return t.meta={kind:"maybe",type:u,name:e,identity:n},t.displayName=r,t.is=function(e){return Tu.is(e)||zu(e,u)},t}function l(u){return vu(u)&&"subtype"===u.meta.kind}function p(u){return l(u)?[u.meta.predicate].concat(p(u.meta.type)):[]}function E(u){return l(u)?E(u.meta.type):u}function d(u,e){return u.reduce(function(u,e){return Nu(u,e)},e)}function h(u){return Bu(u)?u:u.meta.props}function C(u){return Bu(u)?null:u.meta.defaultProps}function y(u,e){Array.prototype.push.apply(u,e)}function m(u){return"Struct"+Qu(u)}function F(u,e){return Ku(v,u,e)}function B(u){return Bu(u)||(u=hu(u)?{}:{name:u}),u.hasOwnProperty("strict")||(u.strict=v.strict),u.hasOwnProperty("defaultProps")||(u.defaultProps={}),u}function v(u,e){function t(e,r){if(t.is(e))return e;if(!(this instanceof t))return new t(e,r);for(var n in u)if(u.hasOwnProperty(n)){var i=u[n],a=e[n];void 0===a&&(a=o[n]),this[n]=ju(i,a,null)}}var r=(e=B(e)).name,n=e.strict,o=e.defaultProps,i=r||m(u);return t.meta={kind:"struct",props:u,name:r,identity:!1,strict:n,defaultProps:o},t.displayName=i,t.is=function(u){return u instanceof t},t.update=function(u,e){return new t(yu.update(u,e))},t.extend=function(u,e){return F([t].concat(u),e)},t}function D(u){return"["+u.map(Du).join(", ")+"]"}function g(u,e){function t(e,t){if(n)return e;for(var r=!0,o=[],i=0,a=u.length;i<a;i++){var s=u[i],c=e[i],f=ju(s,c,null);r=r&&c===f,o.push(f)}return r&&(o=e),o}var r=e||D(u),n=u.every(Ou);return t.meta={kind:"tuple",types:u,name:e,identity:n},t.displayName=r,t.is=function(e){return Fu(e)&&e.length===u.length&&u.every(function(u,t){return zu(e[t],u)})},t.update=function(u,e){return t(yu.update(u,e))},t}function b(u){return u.map(Du).join(" | ")}function w(u,e){function t(u,e){if(n)return u;var r=t.dispatch(u);return!r&&t.is(u)?u:ju(r,u,e)}var r=e||b(u),n=u.every(Ou);return t.meta={kind:"union",types:u,name:e,identity:n},t.displayName=r,t.is=function(e){return u.some(function(u){return zu(e,u)})},t.dispatch=function(e){for(var t=0,r=u.length;t<r;t++){var n=u[t];if(Hu(n)){var o=n.dispatch(e);if(!hu(o))return o}else if(zu(e,n))return n}},t.update=function(u,e){return t(yu.update(u,e))},t}function k(u,e){return"("+u.map(Du).join(", ")+") => "+Du(e)}function _(u){return Su.is(u)&&Bu(u.instrumentation)}function x(u){for(var e=u.length,t=!1,r=e-1;r>=0;r--){var n=u[r];if(!vu(n)||"maybe"!==n.meta.kind)return r+1;t=!0}return t?0:e}function S(u,e,t){function r(u,e){return _(u)?u:r.of(u)}u=Fu(u)?u:[u];var n=t||k(u,e),o=u.length;x(u);return r.meta={kind:"func",domain:u,codomain:e,name:t,identity:!0},r.displayName=n,r.is=function(t){return _(t)&&t.instrumentation.domain.length===o&&t.instrumentation.domain.every(function(e,t){return e===u[t]})&&t.instrumentation.codomain===e},r.of=function(t,n){function i(){var r=Array.prototype.slice.call(arguments),i=r.length;if(n&&i<o){var a=Function.prototype.bind.apply(t,[this].concat(r));return S(u.slice(i),e).of(a,!0)}return ju(e,t.apply(this,r))}return r.is(t)?t:(i.instrumentation={domain:u,codomain:e,f:t},i.displayName=Cu(t),i)},r}function T(u){return u.map(Du).join(" & ")}function P(u,e){function t(u,e){return u}var r=e||T(u),n=u.every(re);return t.meta={kind:"intersection",types:u,name:e,identity:n},t.displayName=r,t.is=function(e){return u.every(function(u){return zu(e,u)})},t.update=function(u,e){return t(yu.update(u,e))},t}function O(u,e){return Ku(z,u,e)}function j(u){return Bu(u)||(u=hu(u)?{}:{name:u}),u.hasOwnProperty("strict")||(u.strict=z.strict),u}function z(u,e){function t(e,t){if(i)return e;var r=!0,n=i?{}:oe({},e);for(var o in u){var a=u[o],s=e[o],c=ju(a,s,null);r=r&&s===c,n[o]=c}return r&&(n=e),n}var r=(e=j(e)).name,n=e.strict,o=r||Qu(u),i=Object.keys(u).map(function(e){return u[e]}).every(Ou);return t.meta={kind:"interface",props:u,name:r,identity:i,strict:n},t.displayName=o,t.is=function(e){if(hu(e))return!1;if(n)for(var t in e)if(!u.hasOwnProperty(t))return!1;for(var r in u)if(!zu(e[r],u[r]))return!1;return!0},t.update=function(u,e){return t(yu.update(u,e))},t.extend=function(u,e){return O([t].concat(u),e)},t}function N(u){return Bu(u)?u instanceof Date||u instanceof RegExp?u:oe({},u):Fu(u)?u.concat():u}function I(u){return R.commands.hasOwnProperty(u)}function q(u){return R.commands[u]}function R(u,e){var t,r=u,n=!1;for(var o in e)e.hasOwnProperty(o)&&(I(o)?(t=q(o)(e[o],r))!==u?(n=!0,r=t):r=u:(r===u&&(r=N(u)),t=R(r[o],e[o]),n=n||t!==r[o],r[o]=t));return n?r:u}function U(u,e,t){var r=se.getTypeName(e),n=t.length?"/"+t.join("/")+": "+r:r;return"Invalid value "+ce(u)+" supplied to "+n}function M(u,e,t,r){return se.Function.is(e.getValidationErrorMessage)?e.getValidationErrorMessage(u,t,r):U(u,e,t)}function L(u,e,t){t=t||{};var r=se.Array.is(t)?t:t.path||[];return new le($(u,e,r,t))}function $(u,e,t,r){return se.isType(e)?pe[e.meta.kind](u,e,t,r):pe.es6classes(u,e,t,r)}function H(u,e){return e={exports:{}},u(e,e.exports),e.exports}function X(u){if(u)return V(u)}function V(u){for(var e in X.prototype)u[e]=X.prototype[e];return u}function W(u){if(u)return J(u)}function J(u){for(var e in W.prototype)u[e]=W.prototype[e];return u}function G(){this._defaults=[]}function Q(u,e,t,r){for(var n=-1,o=wt(bt((e-u)/(t||1)),0),i=Array(o);o--;)i[r?o:++n]=u,u+=t;return i}function Z(u,e){return!!(e=null==e?lt:e)&&("number"==typeof u||vt.test(u))&&u>-1&&u%1==0&&u<e}function K(u,e,t){if(!ru(t))return!1;var r=typeof e;return!!("number"==r?uu(t)&&Z(e,t.length):"string"==r&&e in t)&&Y(t[e],u)}function Y(u,e){return u===e||u!==u&&e!==e}function uu(u){return null!=u&&tu(u.length)&&!eu(u)}function eu(u){var e=ru(u)?gt.call(u):"";return e==dt||e==ht}function tu(u){return"number"==typeof u&&u>-1&&u%1==0&&u<=lt}function ru(u){var e=typeof u;return!!u&&("object"==e||"function"==e)}function nu(u){return!!u&&"object"==typeof u}function ou(u){return"symbol"==typeof u||nu(u)&&gt.call(u)==Ct}function iu(u){return u?(u=au(u))===At||u===-At?(u<0?-1:1)*pt:u===u?u:0:0===u?u:0}function au(u){if("number"==typeof u)return u;if(ou(u))return Et;if(ru(u)){var e="function"==typeof u.valueOf?u.valueOf():u;u=ru(e)?e+"":e}if("string"!=typeof u)return 0===u?u:+u;u=u.replace(yt,"");var t=Ft.test(u);return t||Bt.test(u)?Dt(u.slice(2),t?2:8):mt.test(u)?Et:+u}function su(u,e,t){function r(e){var t=f,r=A;return f=A=void 0,h=e,p=u.apply(r,t)}function n(u){return h=u,E=setTimeout(a,e),C?r(u):p}function o(u){var t=u-h,r=e-(u-d);return y?Mt(r,l-t):r}function i(u){var t=u-d,r=u-h;return void 0===d||t>=e||t<0||y&&r>=l}function a(){var u=Lt();if(i(u))return s(u);E=setTimeout(a,o(u))}function s(u){return E=void 0,m&&f?r(u):(f=A=void 0,p)}function c(){var u=Lt(),t=i(u);if(f=arguments,A=this,d=u,t){if(void 0===E)return n(d);if(y)return E=setTimeout(a,e),r(d)}return void 0===E&&(E=setTimeout(a,e)),p}var f,A,l,p,E,d,h=0,C=!1,y=!1,m=!0;if("function"!=typeof u)throw new TypeError(_t);return e=lu(e)||0,cu(t)&&(C=!!t.leading,l=(y="maxWait"in t)?Ut(lu(t.maxWait)||0,e):l,m="trailing"in t?!!t.trailing:m),c.cancel=function(){void 0!==E&&clearTimeout(E),h=0,f=d=A=E=void 0},c.flush=function(){return void 0===E?p:s(Lt())},c}function cu(u){var e=typeof u;return!!u&&("object"==e||"function"==e)}function fu(u){return!!u&&"object"==typeof u}function Au(u){return"symbol"==typeof u||fu(u)&&Rt.call(u)==St}function lu(u){if("number"==typeof u)return u;if(Au(u))return xt;if(cu(u)){var e="function"==typeof u.valueOf?u.valueOf():u;u=cu(e)?e+"":e}if("string"!=typeof u)return 0===u?u:+u;u=u.replace(Tt,"");var t=Ot.test(u);return t||jt.test(u)?zt(u.slice(2),t?2:8):Pt.test(u)?xt:+u}var pu=function(u){return{picker:"https://static."+(u||"filestackapi.com")+"/picker/v3/picker-0.11.2.js"}},Eu={storeApiUrl:"https://www.filestackapi.com/api/store",fileApiUrl:"https://www.filestackapi.com/api/file",uploadApiUrl:"https://upload.filestackapi.com",cloudApiUrl:"https://cloud.filestackapi.com",processApiUrl:"https://process.filestackapi.com",previewApiUrl:"https://cdn.filestackcontent.com/api/preview"},du=function(u){return"function"==typeof u},hu=function(u){return null===u||void 0===u},Cu=function(u){return u.displayName||u.name||"<function"+u.length+">"};e.fail=function(u){throw new TypeError("[tcomb] "+u)},e.stringify=function(e){try{return JSON.stringify(e,u,2)}catch(u){return String(e)}};var yu=e,mu=function(u){return"string"==typeof u},Fu=function(u){return Array.isArray?Array.isArray(u):u instanceof Array},Bu=function(u){return!hu(u)&&"object"==typeof u&&!Fu(u)},vu=function(u){return du(u)&&Bu(u.meta)},Du=function(u){return vu(u)?u.displayName:Cu(u)},gu=function(u,e){function t(u,e){return u}return t.meta={kind:"irreducible",name:u,predicate:e,identity:!0},t.displayName=u,t.is=e,t},bu=gu("Any",function(){return!0}),wu=gu("Array",Fu),ku=gu("Boolean",function(u){return!0===u||!1===u}),_u=gu("Date",function(u){return u instanceof Date}),xu=gu("Error",function(u){return u instanceof Error}),Su=gu("Function",du),Tu=gu("Nil",hu),Pu=gu("Number",function(u){return"number"==typeof u&&isFinite(u)&&!isNaN(u)}),Ou=function(u){return!vu(u)||u.meta.identity},ju=function(u,e,t){return vu(u)?u.meta.identity||"object"!=typeof e||null===e?u(e,t):new u(e,t):e},zu=function(u,e){return vu(e)?e.is(u):u instanceof e};r.getDefaultName=t;var Nu=r,Iu=Nu(Pu,function(u){return u%1==0},"Integer"),qu=gu("Object",Bu),Ru=gu("RegExp",function(u){return u instanceof RegExp}),Uu=gu("String",mu),Mu=gu("Type",vu);o.getDefaultName=n;var Lu=o,$u=function(u,e,t){if(hu(e))return u;for(var r in e)e.hasOwnProperty(r)&&(u[r]=e[r]);return u},Hu=function(u){return vu(u)&&"union"===u.meta.kind},Xu=1;a.of=function(u,e){var t={};return(u=mu(u)?u.split(" "):u).forEach(function(u){t[u]=u}),a(t,e)},a.getDefaultName=i;var Vu=a;c.getDefaultName=s;var Wu=c,Ju=function(u){return vu(u)&&"maybe"===u.meta.kind};A.getDefaultName=f;var Gu=A,Qu=function(u){return"{"+Object.keys(u).map(function(e){return e+": "+Du(u[e])}).join(", ")+"}"},Zu=function(u){return{predicates:p(u),unrefinedType:E(u)}},Ku=function(u,e,t){var r={},n={},o=[],i={};e.forEach(function(u,e){var t=Zu(u),a=t.unrefinedType;y(o,t.predicates),$u(r,h(a)),$u(n,a.prototype),$u(i,C(a),!0)}),(t=u.getOptions(t)).defaultProps=$u(i,t.defaultProps,!0);var a=d(o,u(r,t));return $u(a.prototype,n),a};v.strict=!1,v.getOptions=B,v.getDefaultName=m,v.extend=F;var Yu=v;g.getDefaultName=D;var ue=g;w.getDefaultName=b;var ee=w;S.getDefaultName=k,S.getOptionalArgumentsIndex=x;var te=S,re=Ou;P.getDefaultName=T;var ne=P,oe=function(u,e){for(var t in e)e.hasOwnProperty(t)&&(u[t]=e[t]);return u};z.strict=!1,z.getOptions=j,z.getDefaultName=Qu,z.extend=O;var ie=z;R.commands={$apply:function(u,e){return u(e)},$push:function(u,e){return u.length>0?e.concat(u):e},$remove:function(u,e){if(u.length>0){e=N(e);for(var t=0,r=u.length;t<r;t++)delete e[u[t]]}return e},$set:function(u){return u},$splice:function(u,e){return u.length>0?(e=N(e),u.reduce(function(u,e){return u.splice.apply(u,e),u},e)):e},$swap:function(u,e){if(u.from!==u.to){var t=(e=N(e))[u.to];e[u.to]=e[u.from],e[u.from]=t}return e},$unshift:function(u,e){return u.length>0?u.concat(e):e},$merge:function(u,e){var t=!1,r=N(e);for(var n in u)u.hasOwnProperty(n)&&(r[n]=u[n],t=t||r[n]!==e[n]);return t?r:e}};var ae=R;yu.Any=bu,yu.Array=wu,yu.Boolean=ku,yu.Date=_u,yu.Error=xu,yu.Function=Su,yu.Nil=Tu,yu.Number=Pu,yu.Integer=Iu,yu.IntegerT=yu.Integer,yu.Object=qu,yu.RegExp=Ru,yu.String=Uu,yu.Type=Mu,yu.TypeT=yu.Type,yu.Arr=yu.Array,yu.Bool=yu.Boolean,yu.Dat=yu.Date,yu.Err=yu.Error,yu.Func=yu.Function,yu.Num=yu.Number,yu.Obj=yu.Object,yu.Re=yu.RegExp,yu.Str=yu.String,yu.dict=Lu,yu.declare=function(u){function e(u,e){return t(u,e)}var t;return e.define=function(r){return Hu(r)&&e.hasOwnProperty("dispatch")&&(r.dispatch=e.dispatch),t=r,$u(e,t,!0),u&&(t.displayName=e.displayName=u,e.meta.name=u),e.meta.identity=t.meta.identity,e.prototype=t.prototype,e},e.displayName=u||Du(e)+"$"+Xu++,e.meta={identity:!1},e.prototype=null,e},yu.enums=Vu,yu.irreducible=gu,yu.list=Wu,yu.maybe=Gu,yu.refinement=Nu,yu.struct=Yu,yu.tuple=ue,yu.union=ee,yu.func=te,yu.intersection=ne,yu.subtype=yu.refinement,yu.inter=ie,yu.interface=yu.inter,yu.assert=yu,yu.update=ae,yu.mixin=$u,yu.isType=vu,yu.is=zu,yu.getTypeName=Du,yu.match=function(u){for(var e,t,r,n=1,o=arguments.length;n<o;)if(e=arguments[n],t=arguments[n+1],r=arguments[n+2],du(r)&&!vu(r)?n+=3:(r=t,t=bu.is,n+=2),e.is(u)&&t(u))return r(u);yu.fail("Match error")};var se=yu,ce=se.stringify,fe={},Ae=se.struct({message:se.Any,actual:se.Any,expected:se.Any,path:se.list(se.union([se.String,se.Number]))},"ValidationError");Ae.of=function(u,e,t,r){return new Ae({message:M(u,e,t,r),actual:u,expected:e,path:t})};var le=se.struct({errors:se.list(Ae),value:se.Any},"ValidationResult");le.prototype.isValid=function(){return!this.errors.length},le.prototype.firstError=function(){return this.isValid()?null:this.errors[0]},le.prototype.toString=function(){return this.isValid()?"[ValidationResult, true, "+ce(this.value)+"]":"[ValidationResult, false, ("+this.errors.map(function(u){return ce(u.message)}).join(", ")+")]"};var pe=L.validators={};pe.es6classes=function(u,e,t,r){return{value:u,errors:u instanceof e?[]:[Ae.of(u,e,t,r.context)]}},pe.irreducible=pe.enums=function(u,e,t,r){return{value:u,errors:e.is(u)?[]:[Ae.of(u,e,t,r.context)]}},pe.list=function(u,e,t,r){if(!se.Array.is(u))return{value:u,errors:[Ae.of(u,e,t,r.context)]};for(var n={value:[],errors:[]},o=0,i=u.length;o<i;o++){var a=$(u[o],e.meta.type,t.concat(o),r);n.value[o]=a.value,n.errors=n.errors.concat(a.errors)}return n},pe.subtype=function(u,e,t,r){var n=$(u,e.meta.type,t,r);return n.errors.length?n:(e.meta.predicate(n.value)||(n.errors=[Ae.of(u,e,t,r.context)]),n)},pe.maybe=function(u,e,t,r){return se.Nil.is(u)?{value:u,errors:[]}:$(u,e.meta.type,t,r)},pe.struct=function(u,e,t,r){if(!se.Object.is(u))return{value:u,errors:[Ae.of(u,e,t,r.context)]};if(e.is(u))return{value:u,errors:[]};var n={value:{},errors:[]},o=e.meta.props,i=e.meta.defaultProps||fe;for(var a in o)if(o.hasOwnProperty(a)){var s=u[a];void 0===s&&(s=i[a]);var c=$(s,o[a],t.concat(a),r);n.value[a]=c.value,n.errors=n.errors.concat(c.errors)}if(r.hasOwnProperty("strict")?r.strict:e.meta.strict)for(var f in u)u.hasOwnProperty(f)&&!o.hasOwnProperty(f)&&n.errors.push(Ae.of(u[f],se.Nil,t.concat(f),r.context));return n.errors.length||(n.value=new e(n.value)),n},pe.tuple=function(u,e,t,r){var n=e.meta.types,o=n.length;if(!se.Array.is(u)||u.length>o)return{value:u,errors:[Ae.of(u,e,t,r.context)]};for(var i={value:[],errors:[]},a=0;a<o;a++){var s=$(u[a],n[a],t.concat(a),r);i.value[a]=s.value,i.errors=i.errors.concat(s.errors)}return i},pe.dict=function(u,e,t,r){if(!se.Object.is(u))return{value:u,errors:[Ae.of(u,e,t,r.context)]};var n={value:{},errors:[]};for(var o in u)if(u.hasOwnProperty(o)){var i=t.concat(o),a=$(o,e.meta.domain,i,r),s=$(u[o],e.meta.codomain,i,r);n.value[o]=s.value,n.errors=n.errors.concat(a.errors,s.errors)}return n},pe.union=function(u,e,t,r){var n=e.dispatch(u);return se.Function.is(n)?$(u,n,t.concat(e.meta.types.indexOf(n)),r):{value:u,errors:[Ae.of(u,e,t,r.context)]}},pe.intersection=function(u,e,t,r){for(var n=e.meta.types,o=n.length,i={value:u,errors:[]},a=0,s=0;s<o;s++){"struct"===n[s].meta.kind&&a++;var c=$(u,n[s],t,r);i.errors=i.errors.concat(c.errors)}return a>1&&i.errors.push(Ae.of(u,e,t,r.context)),i},pe.interface=function(u,e,t,r){if(!se.Object.is(u))return{value:u,errors:[Ae.of(u,e,t,r.context)]};var n={value:{},errors:[]},o=e.meta.props;for(var i in o){var a=$(u[i],o[i],t.concat(i),r);n.value[i]=a.value,n.errors=n.errors.concat(a.errors)}if(r.hasOwnProperty("strict")?r.strict:e.meta.strict)for(var s in u)o.hasOwnProperty(s)||se.Nil.is(u[s])||n.errors.push(Ae.of(u[s],se.Nil,t.concat(s),r.context));return n},se.mixin(se,{ValidationError:Ae,ValidationResult:le,validate:L});var Ee=se,de="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},he=H(function(u){function e(u){if(u)return t(u)}function t(u){for(var t in e.prototype)u[t]=e.prototype[t];return u}u.exports=e,e.prototype.on=e.prototype.addEventListener=function(u,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+u]=this._callbacks["$"+u]||[]).push(e),this},e.prototype.once=function(u,e){function t(){this.off(u,t),e.apply(this,arguments)}return t.fn=e,this.on(u,t),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(u,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var t=this._callbacks["$"+u];if(!t)return this;if(1==arguments.length)return delete this._callbacks["$"+u],this;for(var r,n=0;n<t.length;n++)if((r=t[n])===e||r.fn===e){t.splice(n,1);break}return this},e.prototype.emit=function(u){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),t=this._callbacks["$"+u];if(t)for(var r=0,n=(t=t.slice(0)).length;r<n;++r)t[r].apply(this,e);return this},e.prototype.listeners=function(u){return this._callbacks=this._callbacks||{},this._callbacks["$"+u]||[]},e.prototype.hasListeners=function(u){return!!this.listeners(u).length}}),Ce=function(u){return null!==u&&"object"==typeof u},ye=X;X.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,this},X.prototype.parse=function(u){return this._parser=u,this},X.prototype.responseType=function(u){return this._responseType=u,this},X.prototype.serialize=function(u){return this._serializer=u,this},X.prototype.timeout=function(u){if(!u||"object"!=typeof u)return this._timeout=u,this._responseTimeout=0,this;for(var e in u)switch(e){case"deadline":this._timeout=u.deadline;break;case"response":this._responseTimeout=u.response;break;default:console.warn("Unknown timeout option",e)}return this},X.prototype.retry=function(u,e){return 0!==arguments.length&&!0!==u||(u=1),u<=0&&(u=0),this._maxRetries=u,this._retries=0,this._retryCallback=e,this};var me=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"];X.prototype._shouldRetry=function(u,e){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var t=this._retryCallback(u,e);if(!0===t)return!0;if(!1===t)return!1}catch(u){console.error(u)}if(e&&e.status&&e.status>=500&&501!=e.status)return!0;if(u){if(u.code&&~me.indexOf(u.code))return!0;if(u.timeout&&"ECONNABORTED"==u.code)return!0;if(u.crossDomain)return!0}return!1},X.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this._end()},X.prototype.then=function(u,e){if(!this._fullfilledPromise){var t=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(u,e){t.end(function(t,r){t?e(t):u(r)})})}return this._fullfilledPromise.then(u,e)},X.prototype.catch=function(u){return this.then(void 0,u)},X.prototype.use=function(u){return u(this),this},X.prototype.ok=function(u){if("function"!=typeof u)throw Error("Callback required");return this._okCallback=u,this},X.prototype._isResponseOK=function(u){return!!u&&(this._okCallback?this._okCallback(u):u.status>=200&&u.status<300)},X.prototype.get=function(u){return this._header[u.toLowerCase()]},X.prototype.getHeader=X.prototype.get,X.prototype.set=function(u,e){if(Ce(u)){for(var t in u)this.set(t,u[t]);return this}return this._header[u.toLowerCase()]=e,this.header[u]=e,this},X.prototype.unset=function(u){return delete this._header[u.toLowerCase()],delete this.header[u],this},X.prototype.field=function(u,e){if(null===u||void 0===u)throw new Error(".field(name, val) name can not be empty");if(this._data&&console.error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()"),Ce(u)){for(var t in u)this.field(t,u[t]);return this}if(Array.isArray(e)){for(var r in e)this.field(u,e[r]);return this}if(null===e||void 0===e)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof e&&(e=""+e),this._getFormData().append(u,e),this},X.prototype.abort=function(){return this._aborted?this:(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort"),this)},X.prototype._auth=function(u,e,t,r){switch(t.type){case"basic":this.set("Authorization","Basic "+r(u+":"+e));break;case"auto":this.username=u,this.password=e;break;case"bearer":this.set("Authorization","Bearer "+u)}return this},X.prototype.withCredentials=function(u){return void 0==u&&(u=!0),this._withCredentials=u,this},X.prototype.redirects=function(u){return this._maxRedirects=u,this},X.prototype.maxResponseSize=function(u){if("number"!=typeof u)throw TypeError("Invalid argument");return this._maxResponseSize=u,this},X.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},X.prototype.send=function(u){var e=Ce(u),t=this._header["content-type"];if(this._formData&&console.error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()"),e&&!this._data)Array.isArray(u)?this._data=[]:this._isHost(u)||(this._data={});else if(u&&this._data&&this._isHost(this._data))throw Error("Can't merge these send calls");if(e&&Ce(this._data))for(var r in u)this._data[r]=u[r];else"string"==typeof u?(t||this.type("form"),t=this._header["content-type"],this._data="application/x-www-form-urlencoded"==t?this._data?this._data+"&"+u:u:(this._data||"")+u):this._data=u;return!e||this._isHost(u)?this:(t||this.type("json"),this)},X.prototype.sortQuery=function(u){return this._sort=void 0===u||u,this},X.prototype._finalizeQueryString=function(){var u=this._query.join("&");if(u&&(this.url+=(this.url.indexOf("?")>=0?"&":"?")+u),this._query.length=0,this._sort){var e=this.url.indexOf("?");if(e>=0){var t=this.url.substring(e+1).split("&");"function"==typeof this._sort?t.sort(this._sort):t.sort(),this.url=this.url.substring(0,e)+"?"+t.join("&")}}},X.prototype._appendQueryString=function(){console.trace("Unsupported")},X.prototype._timeoutError=function(u,e,t){if(!this._aborted){var r=new Error(u+e+"ms exceeded");r.timeout=e,r.code="ECONNABORTED",r.errno=t,this.timedout=!0,this.abort(),this.callback(r)}},X.prototype._setTimeouts=function(){var u=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){u._timeoutError("Timeout of ",u._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){u._timeoutError("Response timeout of ",u._responseTimeout,"ETIMEDOUT")},this._responseTimeout))};var Fe={type:function(u){return u.split(/ *; */).shift()},params:function(u){return u.split(/ *; */).reduce(function(u,e){var t=e.split(/ *= */),r=t.shift(),n=t.shift();return r&&n&&(u[r]=n),u},{})},parseLinks:function(u){return u.split(/ *, */).reduce(function(u,e){var t=e.split(/ *; */),r=t[0].slice(1,-1);return u[t[1].split(/ *= */)[1].slice(1,-1)]=r,u},{})},cleanHeader:function(u,e){return delete u["content-type"],delete u["content-length"],delete u["transfer-encoding"],delete u.host,e&&delete u.cookie,u}},Be=W;W.prototype.get=function(u){return this.header[u.toLowerCase()]},W.prototype._setHeaderProperties=function(u){var e=u["content-type"]||"";this.type=Fe.type(e);var t=Fe.params(e);for(var r in t)this[r]=t[r];this.links={};try{u.link&&(this.links=Fe.parseLinks(u.link))}catch(u){}},W.prototype._setStatusProperties=function(u){var e=u/100|0;this.status=this.statusCode=u,this.statusType=e,this.info=1==e,this.ok=2==e,this.redirect=3==e,this.clientError=4==e,this.serverError=5==e,this.error=(4==e||5==e)&&this.toError(),this.accepted=202==u,this.noContent=204==u,this.badRequest=400==u,this.unauthorized=401==u,this.notAcceptable=406==u,this.forbidden=403==u,this.notFound=404==u},["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert"].forEach(function(u){G.prototype[u]=function(){return this._defaults.push({fn:u,arguments:arguments}),this}}),G.prototype._setDefaults=function(u){this._defaults.forEach(function(e){u[e.fn].apply(u,e.arguments)})};var ve=G,De=H(function(u,e){function t(){}function r(u){if(!Ce(u))return u;var e=[];for(var t in u)n(e,t,u[t]);return e.join("&")}function n(u,e,t){if(null!=t)if(Array.isArray(t))t.forEach(function(t){n(u,e,t)});else if(Ce(t))for(var r in t)n(u,e+"["+r+"]",t[r]);else u.push(encodeURIComponent(e)+"="+encodeURIComponent(t));else null===t&&u.push(encodeURIComponent(e))}function o(u){for(var e,t,r={},n=u.split("&"),o=0,i=n.length;o<i;++o)-1==(t=(e=n[o]).indexOf("="))?r[decodeURIComponent(e)]="":r[decodeURIComponent(e.slice(0,t))]=decodeURIComponent(e.slice(t+1));return r}function i(u){for(var e,t,r,n,o=u.split(/\r?\n/),i={},a=0,s=o.length;a<s;++a)-1!==(e=(t=o[a]).indexOf(":"))&&(r=t.slice(0,e).toLowerCase(),n=p(t.slice(e+1)),i[r]=n);return i}function a(u){return/[\/+]json\b/.test(u)}function s(u){this.req=u,this.xhr=this.req.xhr,this.text="HEAD"!=this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var e=this.xhr.status;1223===e&&(e=204),this._setStatusProperties(e),this.header=this.headers=i(this.xhr.getAllResponseHeaders()),this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&u._responseType?this.body=this.xhr.response:this.body="HEAD"!=this.req.method?this._parseBody(this.text?this.text:this.xhr.response):null}function c(u,e){var t=this;this._query=this._query||[],this.method=u,this.url=e,this.header={},this._header={},this.on("end",function(){var u=null,e=null;try{e=new s(t)}catch(e){return u=new Error("Parser is unable to parse the response"),u.parse=!0,u.original=e,t.xhr?(u.rawResponse=void 0===t.xhr.responseType?t.xhr.responseText:t.xhr.response,u.status=t.xhr.status?t.xhr.status:null,u.statusCode=u.status):(u.rawResponse=null,u.status=null),t.callback(u)}t.emit("response",e);var r;try{t._isResponseOK(e)||(r=new Error(e.statusText||"Unsuccessful HTTP response"))}catch(u){r=u}r?(r.original=u,r.response=e,r.status=e.status,t.callback(r,e)):t.callback(null,e)})}function f(u,e,t){var r=l("DELETE",u);return"function"==typeof e&&(t=e,e=null),e&&r.send(e),t&&r.end(t),r}var A;"undefined"!=typeof window?A=window:"undefined"!=typeof self?A=self:(console.warn("Using browser-only version of superagent in non-browser environment"),A=de);var l=e=u.exports=function(u,t){return"function"==typeof t?new e.Request("GET",u).end(t):1==arguments.length?new e.Request("GET",u):new e.Request(u,t)};e.Request=c,l.getXHR=function(){if(!(!A.XMLHttpRequest||A.location&&"file:"==A.location.protocol&&A.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(u){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(u){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(u){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(u){}throw Error("Browser-only version of superagent could not find XHR")};var p="".trim?function(u){return u.trim()}:function(u){return u.replace(/(^\s*|\s*$)/g,"")};l.serializeObject=r,l.parseString=o,l.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},l.serialize={"application/x-www-form-urlencoded":r,"application/json":JSON.stringify},l.parse={"application/x-www-form-urlencoded":o,"application/json":JSON.parse},Be(s.prototype),s.prototype._parseBody=function(u){var e=l.parse[this.type];return this.req._parser?this.req._parser(this,u):(!e&&a(this.type)&&(e=l.parse["application/json"]),e&&u&&(u.length||u instanceof Object)?e(u):null)},s.prototype.toError=function(){var u=this.req,e=u.method,t=u.url,r="cannot "+e+" "+t+" ("+this.status+")",n=new Error(r);return n.status=this.status,n.method=e,n.url=t,n},l.Response=s,he(c.prototype),ye(c.prototype),c.prototype.type=function(u){return this.set("Content-Type",l.types[u]||u),this},c.prototype.accept=function(u){return this.set("Accept",l.types[u]||u),this},c.prototype.auth=function(u,e,t){1===arguments.length&&(e=""),"object"==typeof e&&null!==e&&(t=e,e=""),t||(t={type:"function"==typeof btoa?"basic":"auto"});return this._auth(u,e,t,function(u){if("function"==typeof btoa)return btoa(u);throw new Error("Cannot use basic auth, btoa is not a function")})},c.prototype.query=function(u){return"string"!=typeof u&&(u=r(u)),u&&this._query.push(u),this},c.prototype.attach=function(u,e,t){if(e){if(this._data)throw Error("superagent can't mix .send() and .attach()");this._getFormData().append(u,e,t||e.name)}return this},c.prototype._getFormData=function(){return this._formData||(this._formData=new A.FormData),this._formData},c.prototype.callback=function(u,e){if(this._shouldRetry(u,e))return this._retry();var t=this._callback;this.clearTimeout(),u&&(this._maxRetries&&(u.retries=this._retries-1),this.emit("error",u)),t(u,e)},c.prototype.crossDomainError=function(){var u=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");u.crossDomain=!0,u.status=this.status,u.method=this.method,u.url=this.url,this.callback(u)},c.prototype.buffer=c.prototype.ca=c.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},c.prototype.pipe=c.prototype.write=function(){throw Error("Streaming is not supported in browser version of superagent")},c.prototype._isHost=function(u){return u&&"object"==typeof u&&!Array.isArray(u)&&"[object Object]"!==Object.prototype.toString.call(u)},c.prototype.end=function(u){return this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=u||t,this._finalizeQueryString(),this._end()},c.prototype._end=function(){var u=this,e=this.xhr=l.getXHR(),t=this._formData||this._data;this._setTimeouts(),e.onreadystatechange=function(){var t=e.readyState;if(t>=2&&u._responseTimeoutTimer&&clearTimeout(u._responseTimeoutTimer),4==t){var r;try{r=e.status}catch(u){r=0}if(!r){if(u.timedout||u._aborted)return;return u.crossDomainError()}u.emit("end")}};var r=function(e,t){t.total>0&&(t.percent=t.loaded/t.total*100),t.direction=e,u.emit("progress",t)};if(this.hasListeners("progress"))try{e.onprogress=r.bind(null,"download"),e.upload&&(e.upload.onprogress=r.bind(null,"upload"))}catch(u){}try{this.username&&this.password?e.open(this.method,this.url,!0,this.username,this.password):e.open(this.method,this.url,!0)}catch(u){return this.callback(u)}if(this._withCredentials&&(e.withCredentials=!0),!this._formData&&"GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof t&&!this._isHost(t)){var n=this._header["content-type"],o=this._serializer||l.serialize[n?n.split(";")[0]:""];!o&&a(n)&&(o=l.serialize["application/json"]),o&&(t=o(t))}for(var i in this.header)null!=this.header[i]&&this.header.hasOwnProperty(i)&&e.setRequestHeader(i,this.header[i]);return this._responseType&&(e.responseType=this._responseType),this.emit("request",this),e.send(void 0!==t?t:null),this},l.agent=function(){return new ve},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(u){ve.prototype[u.toLowerCase()]=function(e,t){var r=new l.Request(u,e);return this._setDefaults(r),t&&r.end(t),r}}),ve.prototype.del=ve.prototype.delete,l.get=function(u,e,t){var r=l("GET",u);return"function"==typeof e&&(t=e,e=null),e&&r.query(e),t&&r.end(t),r},l.head=function(u,e,t){var r=l("HEAD",u);return"function"==typeof e&&(t=e,e=null),e&&r.query(e),t&&r.end(t),r},l.options=function(u,e,t){var r=l("OPTIONS",u);return"function"==typeof e&&(t=e,e=null),e&&r.send(e),t&&r.end(t),r},l.del=f,l.delete=f,l.patch=function(u,e,t){var r=l("PATCH",u);return"function"==typeof e&&(t=e,e=null),e&&r.send(e),t&&r.end(t),r},l.post=function(u,e,t){var r=l("POST",u);return"function"==typeof e&&(t=e,e=null),e&&r.send(e),t&&r.end(t),r},l.put=function(u,e,t){var r=l("PUT",u);return"function"==typeof e&&(t=e,e=null),e&&r.send(e),t&&r.end(t),r}}),ge=function(u,e){return De[u](e).set("Filestack-Source","JS-0.5.16")},be={tr:{regexp:/\u0130|\u0049|\u0049\u0307/g,map:{"İ":"i",I:"ı","İ":"i"}},az:{regexp:/[\u0130]/g,map:{"İ":"i",I:"ı","İ":"i"}},lt:{regexp:/[\u0049\u004A\u012E\u00CC\u00CD\u0128]/g,map:{I:"i̇",J:"j̇","Į":"į̇","Ì":"i̇̀","Í":"i̇́","Ĩ":"i̇̃"}}},we=function(u,e){var t=be[e];return u=null==u?"":String(u),t&&(u=u.replace(t.regexp,function(u){return t.map[u]})),u.toLowerCase()},ke=/[^A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC0-9\xB2\xB3\xB9\xBC-\xBE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]+/g,_e=/([a-z\xB5\xDF-\xF6\xF8-\xFF\u0101\u0103\u0105\u0107\u0109\u010B\u010D\u010F\u0111\u0113\u0115\u0117\u0119\u011B\u011D\u011F\u0121\u0123\u0125\u0127\u0129\u012B\u012D\u012F\u0131\u0133\u0135\u0137\u0138\u013A\u013C\u013E\u0140\u0142\u0144\u0146\u0148\u0149\u014B\u014D\u014F\u0151\u0153\u0155\u0157\u0159\u015B\u015D\u015F\u0161\u0163\u0165\u0167\u0169\u016B\u016D\u016F\u0171\u0173\u0175\u0177\u017A\u017C\u017E-\u0180\u0183\u0185\u0188\u018C\u018D\u0192\u0195\u0199-\u019B\u019E\u01A1\u01A3\u01A5\u01A8\u01AA\u01AB\u01AD\u01B0\u01B4\u01B6\u01B9\u01BA\u01BD-\u01BF\u01C6\u01C9\u01CC\u01CE\u01D0\u01D2\u01D4\u01D6\u01D8\u01DA\u01DC\u01DD\u01DF\u01E1\u01E3\u01E5\u01E7\u01E9\u01EB\u01ED\u01EF\u01F0\u01F3\u01F5\u01F9\u01FB\u01FD\u01FF\u0201\u0203\u0205\u0207\u0209\u020B\u020D\u020F\u0211\u0213\u0215\u0217\u0219\u021B\u021D\u021F\u0221\u0223\u0225\u0227\u0229\u022B\u022D\u022F\u0231\u0233-\u0239\u023C\u023F\u0240\u0242\u0247\u0249\u024B\u024D\u024F-\u0293\u0295-\u02AF\u0371\u0373\u0377\u037B-\u037D\u0390\u03AC-\u03CE\u03D0\u03D1\u03D5-\u03D7\u03D9\u03DB\u03DD\u03DF\u03E1\u03E3\u03E5\u03E7\u03E9\u03EB\u03ED\u03EF-\u03F3\u03F5\u03F8\u03FB\u03FC\u0430-\u045F\u0461\u0463\u0465\u0467\u0469\u046B\u046D\u046F\u0471\u0473\u0475\u0477\u0479\u047B\u047D\u047F\u0481\u048B\u048D\u048F\u0491\u0493\u0495\u0497\u0499\u049B\u049D\u049F\u04A1\u04A3\u04A5\u04A7\u04A9\u04AB\u04AD\u04AF\u04B1\u04B3\u04B5\u04B7\u04B9\u04BB\u04BD\u04BF\u04C2\u04C4\u04C6\u04C8\u04CA\u04CC\u04CE\u04CF\u04D1\u04D3\u04D5\u04D7\u04D9\u04DB\u04DD\u04DF\u04E1\u04E3\u04E5\u04E7\u04E9\u04EB\u04ED\u04EF\u04F1\u04F3\u04F5\u04F7\u04F9\u04FB\u04FD\u04FF\u0501\u0503\u0505\u0507\u0509\u050B\u050D\u050F\u0511\u0513\u0515\u0517\u0519\u051B\u051D\u051F\u0521\u0523\u0525\u0527\u0529\u052B\u052D\u052F\u0561-\u0587\u13F8-\u13FD\u1D00-\u1D2B\u1D6B-\u1D77\u1D79-\u1D9A\u1E01\u1E03\u1E05\u1E07\u1E09\u1E0B\u1E0D\u1E0F\u1E11\u1E13\u1E15\u1E17\u1E19\u1E1B\u1E1D\u1E1F\u1E21\u1E23\u1E25\u1E27\u1E29\u1E2B\u1E2D\u1E2F\u1E31\u1E33\u1E35\u1E37\u1E39\u1E3B\u1E3D\u1E3F\u1E41\u1E43\u1E45\u1E47\u1E49\u1E4B\u1E4D\u1E4F\u1E51\u1E53\u1E55\u1E57\u1E59\u1E5B\u1E5D\u1E5F\u1E61\u1E63\u1E65\u1E67\u1E69\u1E6B\u1E6D\u1E6F\u1E71\u1E73\u1E75\u1E77\u1E79\u1E7B\u1E7D\u1E7F\u1E81\u1E83\u1E85\u1E87\u1E89\u1E8B\u1E8D\u1E8F\u1E91\u1E93\u1E95-\u1E9D\u1E9F\u1EA1\u1EA3\u1EA5\u1EA7\u1EA9\u1EAB\u1EAD\u1EAF\u1EB1\u1EB3\u1EB5\u1EB7\u1EB9\u1EBB\u1EBD\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1EC9\u1ECB\u1ECD\u1ECF\u1ED1\u1ED3\u1ED5\u1ED7\u1ED9\u1EDB\u1EDD\u1EDF\u1EE1\u1EE3\u1EE5\u1EE7\u1EE9\u1EEB\u1EED\u1EEF\u1EF1\u1EF3\u1EF5\u1EF7\u1EF9\u1EFB\u1EFD\u1EFF-\u1F07\u1F10-\u1F15\u1F20-\u1F27\u1F30-\u1F37\u1F40-\u1F45\u1F50-\u1F57\u1F60-\u1F67\u1F70-\u1F7D\u1F80-\u1F87\u1F90-\u1F97\u1FA0-\u1FA7\u1FB0-\u1FB4\u1FB6\u1FB7\u1FBE\u1FC2-\u1FC4\u1FC6\u1FC7\u1FD0-\u1FD3\u1FD6\u1FD7\u1FE0-\u1FE7\u1FF2-\u1FF4\u1FF6\u1FF7\u210A\u210E\u210F\u2113\u212F\u2134\u2139\u213C\u213D\u2146-\u2149\u214E\u2184\u2C30-\u2C5E\u2C61\u2C65\u2C66\u2C68\u2C6A\u2C6C\u2C71\u2C73\u2C74\u2C76-\u2C7B\u2C81\u2C83\u2C85\u2C87\u2C89\u2C8B\u2C8D\u2C8F\u2C91\u2C93\u2C95\u2C97\u2C99\u2C9B\u2C9D\u2C9F\u2CA1\u2CA3\u2CA5\u2CA7\u2CA9\u2CAB\u2CAD\u2CAF\u2CB1\u2CB3\u2CB5\u2CB7\u2CB9\u2CBB\u2CBD\u2CBF\u2CC1\u2CC3\u2CC5\u2CC7\u2CC9\u2CCB\u2CCD\u2CCF\u2CD1\u2CD3\u2CD5\u2CD7\u2CD9\u2CDB\u2CDD\u2CDF\u2CE1\u2CE3\u2CE4\u2CEC\u2CEE\u2CF3\u2D00-\u2D25\u2D27\u2D2D\uA641\uA643\uA645\uA647\uA649\uA64B\uA64D\uA64F\uA651\uA653\uA655\uA657\uA659\uA65B\uA65D\uA65F\uA661\uA663\uA665\uA667\uA669\uA66B\uA66D\uA681\uA683\uA685\uA687\uA689\uA68B\uA68D\uA68F\uA691\uA693\uA695\uA697\uA699\uA69B\uA723\uA725\uA727\uA729\uA72B\uA72D\uA72F-\uA731\uA733\uA735\uA737\uA739\uA73B\uA73D\uA73F\uA741\uA743\uA745\uA747\uA749\uA74B\uA74D\uA74F\uA751\uA753\uA755\uA757\uA759\uA75B\uA75D\uA75F\uA761\uA763\uA765\uA767\uA769\uA76B\uA76D\uA76F\uA771-\uA778\uA77A\uA77C\uA77F\uA781\uA783\uA785\uA787\uA78C\uA78E\uA791\uA793-\uA795\uA797\uA799\uA79B\uA79D\uA79F\uA7A1\uA7A3\uA7A5\uA7A7\uA7A9\uA7B5\uA7B7\uA7FA\uAB30-\uAB5A\uAB60-\uAB65\uAB70-\uABBF\uFB00-\uFB06\uFB13-\uFB17\uFF41-\uFF5A0-9\xB2\xB3\xB9\xBC-\xBE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19])([A-Z\xC0-\xD6\xD8-\xDE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178\u0179\u017B\u017D\u0181\u0182\u0184\u0186\u0187\u0189-\u018B\u018E-\u0191\u0193\u0194\u0196-\u0198\u019C\u019D\u019F\u01A0\u01A2\u01A4\u01A6\u01A7\u01A9\u01AC\u01AE\u01AF\u01B1-\u01B3\u01B5\u01B7\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A\u023B\u023D\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u037F\u0386\u0388-\u038A\u038C\u038E\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0528\u052A\u052C\u052E\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u13A0-\u13F5\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E\u213F\u2145\u2183\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA698\uA69A\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA796\uA798\uA79A\uA79C\uA79E\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA-\uA7AD\uA7B0-\uA7B4\uA7B6\uFF21-\uFF3A])/g,xe=/([A-Z\xC0-\xD6\xD8-\xDE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178\u0179\u017B\u017D\u0181\u0182\u0184\u0186\u0187\u0189-\u018B\u018E-\u0191\u0193\u0194\u0196-\u0198\u019C\u019D\u019F\u01A0\u01A2\u01A4\u01A6\u01A7\u01A9\u01AC\u01AE\u01AF\u01B1-\u01B3\u01B5\u01B7\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A\u023B\u023D\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u037F\u0386\u0388-\u038A\u038C\u038E\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0528\u052A\u052C\u052E\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u13A0-\u13F5\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E\u213F\u2145\u2183\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA698\uA69A\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA796\uA798\uA79A\uA79C\uA79E\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA-\uA7AD\uA7B0-\uA7B4\uA7B6\uFF21-\uFF3A]+)([A-Z\xC0-\xD6\xD8-\xDE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178\u0179\u017B\u017D\u0181\u0182\u0184\u0186\u0187\u0189-\u018B\u018E-\u0191\u0193\u0194\u0196-\u0198\u019C\u019D\u019F\u01A0\u01A2\u01A4\u01A6\u01A7\u01A9\u01AC\u01AE\u01AF\u01B1-\u01B3\u01B5\u01B7\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A\u023B\u023D\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u037F\u0386\u0388-\u038A\u038C\u038E\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0528\u052A\u052C\u052E\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u13A0-\u13F5\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E\u213F\u2145\u2183\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA698\uA69A\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA796\uA798\uA79A\uA79C\uA79E\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA-\uA7AD\uA7B0-\uA7B4\uA7B6\uFF21-\uFF3A][a-z\xB5\xDF-\xF6\xF8-\xFF\u0101\u0103\u0105\u0107\u0109\u010B\u010D\u010F\u0111\u0113\u0115\u0117\u0119\u011B\u011D\u011F\u0121\u0123\u0125\u0127\u0129\u012B\u012D\u012F\u0131\u0133\u0135\u0137\u0138\u013A\u013C\u013E\u0140\u0142\u0144\u0146\u0148\u0149\u014B\u014D\u014F\u0151\u0153\u0155\u0157\u0159\u015B\u015D\u015F\u0161\u0163\u0165\u0167\u0169\u016B\u016D\u016F\u0171\u0173\u0175\u0177\u017A\u017C\u017E-\u0180\u0183\u0185\u0188\u018C\u018D\u0192\u0195\u0199-\u019B\u019E\u01A1\u01A3\u01A5\u01A8\u01AA\u01AB\u01AD\u01B0\u01B4\u01B6\u01B9\u01BA\u01BD-\u01BF\u01C6\u01C9\u01CC\u01CE\u01D0\u01D2\u01D4\u01D6\u01D8\u01DA\u01DC\u01DD\u01DF\u01E1\u01E3\u01E5\u01E7\u01E9\u01EB\u01ED\u01EF\u01F0\u01F3\u01F5\u01F9\u01FB\u01FD\u01FF\u0201\u0203\u0205\u0207\u0209\u020B\u020D\u020F\u0211\u0213\u0215\u0217\u0219\u021B\u021D\u021F\u0221\u0223\u0225\u0227\u0229\u022B\u022D\u022F\u0231\u0233-\u0239\u023C\u023F\u0240\u0242\u0247\u0249\u024B\u024D\u024F-\u0293\u0295-\u02AF\u0371\u0373\u0377\u037B-\u037D\u0390\u03AC-\u03CE\u03D0\u03D1\u03D5-\u03D7\u03D9\u03DB\u03DD\u03DF\u03E1\u03E3\u03E5\u03E7\u03E9\u03EB\u03ED\u03EF-\u03F3\u03F5\u03F8\u03FB\u03FC\u0430-\u045F\u0461\u0463\u0465\u0467\u0469\u046B\u046D\u046F\u0471\u0473\u0475\u0477\u0479\u047B\u047D\u047F\u0481\u048B\u048D\u048F\u0491\u0493\u0495\u0497\u0499\u049B\u049D\u049F\u04A1\u04A3\u04A5\u04A7\u04A9\u04AB\u04AD\u04AF\u04B1\u04B3\u04B5\u04B7\u04B9\u04BB\u04BD\u04BF\u04C2\u04C4\u04C6\u04C8\u04CA\u04CC\u04CE\u04CF\u04D1\u04D3\u04D5\u04D7\u04D9\u04DB\u04DD\u04DF\u04E1\u04E3\u04E5\u04E7\u04E9\u04EB\u04ED\u04EF\u04F1\u04F3\u04F5\u04F7\u04F9\u04FB\u04FD\u04FF\u0501\u0503\u0505\u0507\u0509\u050B\u050D\u050F\u0511\u0513\u0515\u0517\u0519\u051B\u051D\u051F\u0521\u0523\u0525\u0527\u0529\u052B\u052D\u052F\u0561-\u0587\u13F8-\u13FD\u1D00-\u1D2B\u1D6B-\u1D77\u1D79-\u1D9A\u1E01\u1E03\u1E05\u1E07\u1E09\u1E0B\u1E0D\u1E0F\u1E11\u1E13\u1E15\u1E17\u1E19\u1E1B\u1E1D\u1E1F\u1E21\u1E23\u1E25\u1E27\u1E29\u1E2B\u1E2D\u1E2F\u1E31\u1E33\u1E35\u1E37\u1E39\u1E3B\u1E3D\u1E3F\u1E41\u1E43\u1E45\u1E47\u1E49\u1E4B\u1E4D\u1E4F\u1E51\u1E53\u1E55\u1E57\u1E59\u1E5B\u1E5D\u1E5F\u1E61\u1E63\u1E65\u1E67\u1E69\u1E6B\u1E6D\u1E6F\u1E71\u1E73\u1E75\u1E77\u1E79\u1E7B\u1E7D\u1E7F\u1E81\u1E83\u1E85\u1E87\u1E89\u1E8B\u1E8D\u1E8F\u1E91\u1E93\u1E95-\u1E9D\u1E9F\u1EA1\u1EA3\u1EA5\u1EA7\u1EA9\u1EAB\u1EAD\u1EAF\u1EB1\u1EB3\u1EB5\u1EB7\u1EB9\u1EBB\u1EBD\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1EC9\u1ECB\u1ECD\u1ECF\u1ED1\u1ED3\u1ED5\u1ED7\u1ED9\u1EDB\u1EDD\u1EDF\u1EE1\u1EE3\u1EE5\u1EE7\u1EE9\u1EEB\u1EED\u1EEF\u1EF1\u1EF3\u1EF5\u1EF7\u1EF9\u1EFB\u1EFD\u1EFF-\u1F07\u1F10-\u1F15\u1F20-\u1F27\u1F30-\u1F37\u1F40-\u1F45\u1F50-\u1F57\u1F60-\u1F67\u1F70-\u1F7D\u1F80-\u1F87\u1F90-\u1F97\u1FA0-\u1FA7\u1FB0-\u1FB4\u1FB6\u1FB7\u1FBE\u1FC2-\u1FC4\u1FC6\u1FC7\u1FD0-\u1FD3\u1FD6\u1FD7\u1FE0-\u1FE7\u1FF2-\u1FF4\u1FF6\u1FF7\u210A\u210E\u210F\u2113\u212F\u2134\u2139\u213C\u213D\u2146-\u2149\u214E\u2184\u2C30-\u2C5E\u2C61\u2C65\u2C66\u2C68\u2C6A\u2C6C\u2C71\u2C73\u2C74\u2C76-\u2C7B\u2C81\u2C83\u2C85\u2C87\u2C89\u2C8B\u2C8D\u2C8F\u2C91\u2C93\u2C95\u2C97\u2C99\u2C9B\u2C9D\u2C9F\u2CA1\u2CA3\u2CA5\u2CA7\u2CA9\u2CAB\u2CAD\u2CAF\u2CB1\u2CB3\u2CB5\u2CB7\u2CB9\u2CBB\u2CBD\u2CBF\u2CC1\u2CC3\u2CC5\u2CC7\u2CC9\u2CCB\u2CCD\u2CCF\u2CD1\u2CD3\u2CD5\u2CD7\u2CD9\u2CDB\u2CDD\u2CDF\u2CE1\u2CE3\u2CE4\u2CEC\u2CEE\u2CF3\u2D00-\u2D25\u2D27\u2D2D\uA641\uA643\uA645\uA647\uA649\uA64B\uA64D\uA64F\uA651\uA653\uA655\uA657\uA659\uA65B\uA65D\uA65F\uA661\uA663\uA665\uA667\uA669\uA66B\uA66D\uA681\uA683\uA685\uA687\uA689\uA68B\uA68D\uA68F\uA691\uA693\uA695\uA697\uA699\uA69B\uA723\uA725\uA727\uA729\uA72B\uA72D\uA72F-\uA731\uA733\uA735\uA737\uA739\uA73B\uA73D\uA73F\uA741\uA743\uA745\uA747\uA749\uA74B\uA74D\uA74F\uA751\uA753\uA755\uA757\uA759\uA75B\uA75D\uA75F\uA761\uA763\uA765\uA767\uA769\uA76B\uA76D\uA76F\uA771-\uA778\uA77A\uA77C\uA77F\uA781\uA783\uA785\uA787\uA78C\uA78E\uA791\uA793-\uA795\uA797\uA799\uA79B\uA79D\uA79F\uA7A1\uA7A3\uA7A5\uA7A7\uA7A9\uA7B5\uA7B7\uA7FA\uAB30-\uAB5A\uAB60-\uAB65\uAB70-\uABBF\uFB00-\uFB06\uFB13-\uFB17\uFF41-\uFF5A])/g,Se=function(u,e,t){return null==u?"":(t="string"!=typeof t?" ":t,u=String(u).replace(_e,"$1 $2").replace(xe,"$1 $2").replace(ke,function(u,e,r){return 0===e||e===r.length-u.length?"":t}),we(u,e))},Te=function(u,e){return Se(u,e,"_")},Pe=function(u,e,t){return e in u?Object.defineProperty(u,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):u[e]=t,u},Oe=Object.assign||function(u){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(u[r]=t[r])}return u},je=Ee.validate,ze=function(u,e,t){var r=Object.keys(t),n=e.map(function(u){return u.name}),o=n.join(", ");return r.forEach(function(e){if(n.indexOf(e)<0)throw new Error(e+" is not a valid option for "+u+". Valid options are: "+o)}),e.forEach(function(u){var e=t[u.name];if("location"===u.name&&"string"==typeof e&&(e=e.toLowerCase()),void 0!==e){var r=je(e,u.type);if(!r.isValid())throw new Error(r.firstError().message)}}),r},Ne=function(u){var e=Oe({},u);return Object.keys(e).forEach(function(u){return!e[u]&&void 0!==e[u]&&delete e[u]}),e},Ie=function(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=Oe({},u);return Object.keys(t).reduce(function(u,r){return u[Te(e+"-"+r)]=t[r],delete t[r],u},{})},qe=function(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=u.urls.storeApiUrl;if(!e||"string"!=typeof e)throw new Error("url is required for storeURL");var o=[{name:"filename",type:Ee.String},{name:"location",type:Ee.enums.of("s3 gcs rackspace azure dropbox")},{name:"mimetype",type:Ee.String},{name:"path",type:Ee.String},{name:"region",type:Ee.String},{name:"container",type:Ee.String},{name:"access",type:Ee.enums.of("public private")}];ze("storeURL",o,t);var i=t.location||"s3",a=Ne(t);u.policy&&u.signature&&(a.policy=u.policy,a.signature=u.signature);var s=n+"/"+i,c=new FormData;return c.append("url",e),new Promise(function(e,t){var n=De.post(s).query({key:u.apikey}).query(a).send(c).end(function(u,r){if(u)t(u);else if(r.body&&r.body.url){var n=r.body.url.split("/").pop(),o=Oe({},r.body,{handle:n});e(o)}else e(r.body)});r.cancel=function(){n.abort(),t(new Error("Upload cancelled"))}})},Re=function(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=u.urls.fileApiUrl;if(!e||"string"!=typeof e)throw new Error("handle is required for retrieve");var n=[{name:"metadata",type:Ee.Boolean},{name:"head",type:Ee.Boolean},{name:"cache",type:Ee.Boolean},{name:"dl",type:Ee.Boolean},{name:"extension",type:Ee.String}];ze("retrieve",n,t);var o=r+"/"+e,i=Ne(t);return i.extension&&(o+="+"+i.extension,delete i.extension),i.metadata&&(o+="/metadata"),u.policy&&u.signature&&(i.policy=u.policy,i.signature=u.signature),i.head?(delete i.head,new Promise(function(u,e){De.head(o).query(i).end(function(t,r){t?e(t):u(r.headers)})})):new Promise(function(u,e){var t=i.metadata?"json":"blob";delete i.metadata,De.get(o).query(i).responseType(t).end(function(t,r){t?e(t):u(r.body)})})},Ue=function(u,e){var t=u.urls.fileApiUrl;if(!e||"string"!=typeof e)throw new Error("handle is required for remove");if(!u.policy||!u.signature)throw new Error("security policy and signature are required for remove");var r=t+"/"+e;return new Promise(function(e,t){De.delete(r).query({key:u.apikey}).query({policy:u.policy,signature:u.signature}).end(function(u,r){u?t(u):e(r)})})},Me=function(u,e){var t=u.urls.fileApiUrl;if(!e||"string"!=typeof e)throw new Error("handle is required for overwrite");if(!u.policy||!u.signature)throw new Error("security policy and signature are required for overwrite");var r=t+"/"+e;return new Promise(function(t,n){De.post(r).query({key:u.apikey}).query({policy:u.policy,signature:u.signature}).end(function(u,r){if(u)n(u);else{var o=Oe({},r.body,{handle:e});t(o)}})})},Le=function(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=u.urls.fileApiUrl;if(!e||"string"!=typeof e)throw new Error("handle is required for metadata");var n=[{name:"size",type:Ee.Boolean},{name:"mimetype",type:Ee.Boolean},{name:"filename",type:Ee.Boolean},{name:"width",type:Ee.Boolean},{name:"height",type:Ee.Boolean},{name:"uploaded",type:Ee.Boolean},{name:"writeable",type:Ee.Boolean},{name:"cloud",type:Ee.Boolean},{name:"sourceUrl",type:Ee.Boolean},{name:"md5",type:Ee.Boolean},{name:"sha1",type:Ee.Boolean},{name:"sha224",type:Ee.Boolean},{name:"sha256",type:Ee.Boolean},{name:"sha384",type:Ee.Boolean},{name:"sha512",type:Ee.Boolean},{name:"location",type:Ee.Boolean},{name:"path",type:Ee.Boolean},{name:"container",type:Ee.Boolean},{name:"exif",type:Ee.Boolean}];ze("retrieve",n,t);var o=Ne(Ie(t));u.policy&&u.signature&&(o.policy=u.policy,o.signature=u.signature);var i=r+"/"+e+"/metadata";return new Promise(function(u,e){De.get(i).query(o).end(function(t,r){t?e(t):u(r.body)})})},$e={init:function(){window.filestackInternals.logger.working=!1},isWorking:function(){return window.filestackInternals.logger.working},on:function(){window.filestackInternals.logger.working=!0},off:function(){window.filestackInternals.logger.working=!1}},He="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(u){return typeof u}:function(u){return u&&"function"==typeof Symbol&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},Xe=function(u){if(Array.isArray(u)){for(var e=0,t=Array(u.length);e<u.length;e++)t[e]=u[e];return t}return Array.from(u)},Ve=function u(e,t){var r=function(){for(var u=arguments.length,r=Array(u),n=0;n<u;n++)r[n]=arguments[n];var o=[].concat(r).map(function(u){return"object"===(void 0===u?"undefined":He(u))?JSON.stringify(u,function(u,e){if("function"==typeof e){if("json"===u)try{return e()}catch(u){}return"[Function]"}return e instanceof File?"[File name: "+e.name+", mimetype: "+e.type+", size: "+e.size+"]":e},2):u});if(t.isWorking()){var i;(i=console).log.apply(i,["["+e+"]"].concat(Xe(o)))}};return r.context=function(r){return u(e+"]["+r,t)},r.on=t.on,r.off=t.off,r}("filestack",$e);!function(){var u=void 0;"object"===("undefined"==typeof window?"undefined":He(window))&&((u=window.filestackInternals)||(u={},window.filestackInternals=u),u.logger||(u.logger=Ve,$e.init()))}();var We=Ve.context("api-client"),Je=function(u){var e=u.urls.cloudApiUrl;return{list:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={apikey:u.apikey,clouds:t};return u.policy&&u.signature&&(n.policy=u.policy,n.signature=u.signature),We("cloud.list() called:",n),new Promise(function(u,t){var o=De.post(e+"/folder/list").send(n).withCredentials().end(function(e,r){e?t(e):(We("cloud.list() responded:",r.body),u(r.body))});r.cancel=function(){o.abort(),t(new Error("Cancelled"))}})},store:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};We("cloud.store() called:",t,r,n);var a=[{name:"location",type:Ee.enums.of("s3 gcs rackspace azure dropbox")},{name:"region",type:Ee.String},{name:"path",type:Ee.String},{name:"container",type:Ee.String},{name:"access",type:Ee.enums.of("public private")}];ze("cloud.store",a,n),void 0===n.location&&(n.location="s3");var s={apikey:u.apikey,clouds:Pe({},t,{path:r,store:Oe({},Ne(n))})};return"customsource"===t&&o.customSourcePath&&(s.clouds.customsource.customSourcePath=o.customSourcePath),"customsource"===t&&o.customSourceContainer&&(s.clouds.customsource.customSourceContainer=o.customSourceContainer),u.policy&&u.signature&&(s.policy=u.policy,s.signature=u.signature),new Promise(function(u,r){var n=De.post(e+"/store/").send(s).withCredentials().end(function(e,n){e?r(e):(We("cloud.store() responded:",n.body),u(n.body[t]?n.body[t]:n.body))});i.cancel=function(){n.abort(),r(new Error("Cancelled"))}})},link:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};We("cloud.link() called:",t,r);var i={apikey:u.apikey,clouds:Pe({},t,{path:r})};return"customsource"===t&&n.customSourcePath&&(i.clouds.customsource.customSourcePath=n.customSourcePath),"customsource"===t&&n.customSourceContainer&&(i.clouds.customsource.customSourceContainer=n.customSourceContainer),u.policy&&u.signature&&(i.policy=u.policy,i.signature=u.signature),new Promise(function(u,r){var n=De.post(e+"/link/").send(i).withCredentials().end(function(e,n){e?r(e):(We("cloud.link() responded:",n.body),u(n.body[t]?n.body[t]:n.body))});o.cancel=function(){n.abort(),r(new Error("Cancelled"))}})},metadata:function(t){var r={apikey:u.apikey,url:t};return u.policy&&u.signature&&(r.policy=u.policy,r.signature=u.signature),new Promise(function(u,t){De.post(e+"/metadata").send(r).end(function(e,r){e?t(e):(We("cloud.metadata() responded:",r.body),u(r.body))})})},logout:function(t){We("cloud.logout() called:",t);var r={apikey:u.apikey};return t&&(r.clouds=Pe({},t,{})),new Promise(function(u,t){De.post(e+"/auth/logout/").send(r).withCredentials().end(function(e,r){e?t(e):(We("cloud.logout() responded:",r.body),u(r.body))})})},tokInit:function(u){if("video"!==u&&"audio"!==u)throw new Error("Type must be one of video or audio.");return De.post(e+"/recording/"+u+"/init")},tokStart:function(u,t,r){if("video"!==u&&"audio"!==u)throw new Error("Type must be one of video or audio.");var n={apikey:t,session_id:r};return De.post(e+"/recording/"+u+"/start").send(n)},tokStop:function(u,t,r,n){if("video"!==u&&"audio"!==u)throw new Error("Type must be one of video or audio.");var o={apikey:t,session_id:r,archive_id:n};return De.post(e+"/recording/"+u+"/stop").send(o)}}},Ge=function(u){var e=u.urls.cloudApiUrl,t={apikey:u.apikey};return De.get(e+"/prefetch").timeout(5e3).query(t).then(function(u){return u.body})},Qe=function(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Oe({},t);!r.policy&&!r.signature&&u.policy&&u.signature&&(r.policy=u.policy,r.signature=u.signature);var n=r.signature&&r.policy,o=u.urls.previewApiUrl,i=r.css,a=r.policy,s=r.signature,c=o+"/"+e,f=[];return n&&f.push("signature="+s+"&policy="+a),i&&f.push("css="+i),f.length?c+"?"+f.join("&"):c},Ze=function(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e||"string"!=typeof e)throw new Error("handle is required for preview");var r=[{name:"id",type:Ee.String},{name:"css",type:Ee.String},{name:"policy",type:Ee.String},{name:"signature",type:Ee.String}];ze("preview",r,t);var n=Ne(t),o=Qe(u,e,n);if(n.id){var i=n.id,a=document.createElement("iframe"),s=document.getElementById(i);if(a.src=o,a.width="100%",a.height="100%",!s)throw new Error('DOM Element with id "'+i+'" not found.');return s.appendChild(a)}return window.open(o,e)},Ke=function(u,e){return Ee.refinement(Ee.Number,function(t){return t>=u&&t<=e})},Ye=function(u){return Ee.refinement(Ee.Integer,function(e){return e>=u})},ut=function(u){return Ee.refinement(Ee.Integer,function(e){return e<=u})},et=function(u,e){return Ee.tuple([Ye(u),ut(e)],"range")},tt=Ee.enums.of("top left right bottom"),rt=Ee.refinement(Ee.tuple([tt,tt]),function(u){return u[0]!==u[1]},"pair"),nt=function(u,e){var t=Te(u.name),r=e[u.name];return Array.isArray(r)?t+":["+r+"]":r?t+":"+r:null},ot=function(u,e,t){var r=e.map(function(u){return nt(u,t)}).filter(function(u){return u}).join(","),n=Te(u);return r.length?n+"="+r:n},it={crop:function(){var u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1],t=[{name:"dim",type:Ee.struct({x:Ee.Integer,y:Ee.Integer,width:Ee.Integer,height:Ee.Integer})}];ze("crop",t,e);var r=e.dim,n="crop=dim:["+r.x+","+r.y+","+r.width+","+r.height+"]";return u.concat(n)},resize:function(){var u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1],t=[{name:"width",type:Ke(0,1e4)},{name:"height",type:Ke(0,1e4)},{name:"fit",type:Ee.enums.of("clip crop scale max")},{name:"align",type:Ee.union([Ee.enums.of("center top bottom left right faces"),rt])}];if(ze("resize",t,e).length<1)throw new Error("Resize options must contain either width, height, fit, or align");var r=ot("resize",t,e);return u.concat(r)},rotate:function(){var u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1],t=[{name:"deg",type:Ee.union([Ke(0,359),Ee.enums.of("exif")])},{name:"exif",type:Ee.Boolean},{name:"background",type:Ee.String}];if(ze("rotate",t,e).length<1)throw new Error("Rotate options must contain either deg or exif");var r=ot("rotate",t,e);return u.concat(r)},roundedCorners:function(){var u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1],t=[{name:"radius",type:Ee.union([Ke(1,1e4),Ee.enums.of("max")])},{name:"blur",type:Ke(0,20)},{name:"background",type:Ee.String}];ze("roundedCorners",t,e);var r=ot("roundedCorners",t,e);return u.concat(r)},vignette:function(){var u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1],t=[{name:"amount",type:Ke(0,100)},{name:"blurmode",type:Ee.enums.of("linear gaussian")},{name:"background",type:Ee.String}];ze("vignette",t,e);var r=ot("vignette",t,e);return u.concat(r)},polaroid:function(){var u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1],t=[{name:"color",type:Ee.String},{name:"rotate",type:Ke(0,359)},{name:"background",type:Ee.String}];ze("polaroid",t,e);var r=ot("polaroid",t,e);return u.concat(r)},tornEdges:function(){var u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1],t=[{name:"spread",type:et(1,1e4)},{name:"background",type:Ee.String}];ze("tornEdges",t,e);var r=ot("tornEdges",t,e);return u.concat(r)},shadow:function(){var u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1],t=[{name:"blur",type:Ke(0,20)},{name:"opacity",type:Ke(0,100)},{name:"vector",type:et(-1e3,1e3)},{name:"color",type:Ee.String},{name:"background",type:Ee.String}];ze("shadow",t,e);var r=ot("shadow",t,e);return u.concat(r)},circle:function(){var u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1],t=[{name:"background",type:Ee.String}];ze("circle",t,e);var r=ot("circle",t,e);return u.concat(r)},border:function(){var u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1],t=[{name:"width",type:Ke(1,1e3)},{name:"color",type:Ee.String},{name:"background",type:Ee.String}];ze("border",t,e);var r=ot("border",t,e);return u.concat(r)},flip:function(){var u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1];if("boolean"!=typeof e)throw Error("flip must be a Boolean value");return e?u.concat("flip"):u},flop:function(){var u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1];if("boolean"!=typeof e)throw Error("flop must be a Boolean value");return e?u.concat("flop"):u},blackwhite:function(){var u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1],t=[{name:"threshold",type:Ke(0,100)}];ze("blackwhite",t,e);var r=ot("blackwhite",t,e);return u.concat(r)},monochrome:function(){var u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1];if("boolean"!=typeof e)throw Error("monochrome must be a Boolean value");return e?u.concat("monochrome"):u},sepia:function(){var u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1],t=[{name:"tone",type:Ke(0,100)}];ze("sepia",t,e);var r=ot("sepia",t,e);return u.concat(r)},output:function(){var u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1],t=[{name:"format",type:Ee.String},{name:"background",type:Ee.String},{name:"page",type:Ke(1,1e4)},{name:"density",type:Ke(1,500)},{name:"compress",type:Ee.Boolean},{name:"quality",type:Ee.union([Ke(1,100),Ee.enums.of("input")])},{name:"input",type:Ee.Boolean},{name:"strip",type:Ee.Boolean},{name:"colorspace",type:Ee.enums.of("rgb cmyk input")},{name:"secure",type:Ee.Boolean},{name:"docinfo",type:Ee.Boolean},{name:"pageformat",type:Ee.enums.of("a3 a4 a5 b4 b5 letter legal tabloid")},{name:"pageorientation",type:Ee.enums.of("landscape portrait")}];ze("output",t,e);var r=ot("output",t,e);return u.concat(r)}},at=function(u,e,t){var r=u.urls.processApiUrl,n=Object.keys(it),o=Object.keys(t);o.forEach(function(u){if(n.indexOf(u)<0)throw new Error("Invalid option specified: "+u+" is not a valid transform option.")});var i=function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(r===o.length)return e;var n=o[r],i=t[n],a=r+1;return u((0,it[n])(e,i),a)};if(u.policy&&u.signature){var a="security=policy:"+u.policy+",signature:"+u.signature;return r+"/"+u.apikey+"/"+a+"/"+i().join("/")+"/"+e}var s=r+"/"+u.apikey;return i().length?s+"/"+i().join("/")+"/"+e:e},st=H(function(u){!function(e,t,r){u.exports?u.exports=r():e.bowser=r()}(de,0,function(){function u(u){function e(e){var t=u.match(e);return t&&t.length>1&&t[1]||""}var t,r=e(/(ipod|iphone|ipad)/i).toLowerCase(),n=!/like android/i.test(u)&&/android/i.test(u),i=/nexus\s*[0-6]\s*/i.test(u),a=!i&&/nexus\s*[0-9]+/i.test(u),s=/CrOS/.test(u),c=/silk/i.test(u),f=/sailfish/i.test(u),A=/tizen/i.test(u),l=/(web|hpw)os/i.test(u),p=/windows phone/i.test(u),E=(/SamsungBrowser/i.test(u),!p&&/windows/i.test(u)),d=!r&&!c&&/macintosh/i.test(u),h=!n&&!f&&!A&&!l&&/linux/i.test(u),C=e(/edge\/(\d+(\.\d+)?)/i),y=e(/version\/(\d+(\.\d+)?)/i),m=/tablet/i.test(u)&&!/tablet pc/i.test(u),F=!m&&/[^-]mobi/i.test(u),B=/xbox/i.test(u);/opera/i.test(u)?t={name:"Opera",opera:o,version:y||e(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr|opios/i.test(u)?t={name:"Opera",opera:o,version:e(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||y}:/SamsungBrowser/i.test(u)?t={name:"Samsung Internet for Android",samsungBrowser:o,version:y||e(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(u)?t={name:"Opera Coast",coast:o,version:y||e(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(u)?t={name:"Yandex Browser",yandexbrowser:o,version:y||e(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(u)?t={name:"UC Browser",ucbrowser:o,version:e(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(u)?t={name:"Maxthon",maxthon:o,version:e(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(u)?t={name:"Epiphany",epiphany:o,version:e(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(u)?t={name:"Puffin",puffin:o,version:e(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(u)?t={name:"Sleipnir",sleipnir:o,version:e(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(u)?t={name:"K-Meleon",kMeleon:o,version:e(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:p?(t={name:"Windows Phone",windowsphone:o},C?(t.msedge=o,t.version=C):(t.msie=o,t.version=e(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(u)?t={name:"Internet Explorer",msie:o,version:e(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:s?t={name:"Chrome",chromeos:o,chromeBook:o,chrome:o,version:e(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/chrome.+? edge/i.test(u)?t={name:"Microsoft Edge",msedge:o,version:C}:/vivaldi/i.test(u)?t={name:"Vivaldi",vivaldi:o,version:e(/vivaldi\/(\d+(\.\d+)?)/i)||y}:f?t={name:"Sailfish",sailfish:o,version:e(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(u)?t={name:"SeaMonkey",seamonkey:o,version:e(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(u)?(t={name:"Firefox",firefox:o,version:e(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(u)&&(t.firefoxos=o)):c?t={name:"Amazon Silk",silk:o,version:e(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(u)?t={name:"PhantomJS",phantom:o,version:e(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(u)?t={name:"SlimerJS",slimer:o,version:e(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(u)||/rim\stablet/i.test(u)?t={name:"BlackBerry",blackberry:o,version:y||e(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:l?(t={name:"WebOS",webos:o,version:y||e(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(u)&&(t.touchpad=o)):/bada/i.test(u)?t={name:"Bada",bada:o,version:e(/dolfin\/(\d+(\.\d+)?)/i)}:A?t={name:"Tizen",tizen:o,version:e(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||y}:/qupzilla/i.test(u)?t={name:"QupZilla",qupzilla:o,version:e(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||y}:/chromium/i.test(u)?t={name:"Chromium",chromium:o,version:e(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||y}:/chrome|crios|crmo/i.test(u)?t={name:"Chrome",chrome:o,version:e(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:n?t={name:"Android",version:y}:/safari|applewebkit/i.test(u)?(t={name:"Safari",safari:o},y&&(t.version=y)):r?(t={name:"iphone"==r?"iPhone":"ipad"==r?"iPad":"iPod"},y&&(t.version=y)):t=/googlebot/i.test(u)?{name:"Googlebot",googlebot:o,version:e(/googlebot\/(\d+(\.\d+))/i)||y}:{name:e(/^(.*)\/(.*) /),version:function(e){var t=u.match(e);return t&&t.length>1&&t[2]||""}(/^(.*)\/(.*) /)},!t.msedge&&/(apple)?webkit/i.test(u)?(/(apple)?webkit\/537\.36/i.test(u)?(t.name=t.name||"Blink",t.blink=o):(t.name=t.name||"Webkit",t.webkit=o),!t.version&&y&&(t.version=y)):!t.opera&&/gecko\//i.test(u)&&(t.name=t.name||"Gecko",t.gecko=o,t.version=t.version||e(/gecko\/(\d+(\.\d+)?)/i)),t.windowsphone||t.msedge||!n&&!t.silk?t.windowsphone||t.msedge||!r?d?t.mac=o:B?t.xbox=o:E?t.windows=o:h&&(t.linux=o):(t[r]=o,t.ios=o):t.android=o;var v="";t.windows?v=function(u){switch(u){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}(e(/Windows ((NT|XP)( \d\d?.\d)?)/i)):t.windowsphone?v=e(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):t.mac?v=(v=e(/Mac OS X (\d+([_\.\s]\d+)*)/i)).replace(/[_\s]/g,"."):r?v=(v=e(/os (\d+([_\s]\d+)*) like mac os x/i)).replace(/[_\s]/g,"."):n?v=e(/android[ \/-](\d+(\.\d+)*)/i):t.webos?v=e(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):t.blackberry?v=e(/rim\stablet\sos\s(\d+(\.\d+)*)/i):t.bada?v=e(/bada\/(\d+(\.\d+)*)/i):t.tizen&&(v=e(/tizen[\/\s](\d+(\.\d+)*)/i)),v&&(t.osversion=v);var D=!t.windows&&v.split(".")[0];return m||a||"ipad"==r||n&&(3==D||D>=4&&!F)||t.silk?t.tablet=o:(F||"iphone"==r||"ipod"==r||n||i||t.blackberry||t.webos||t.bada)&&(t.mobile=o),t.msedge||t.msie&&t.version>=10||t.yandexbrowser&&t.version>=15||t.vivaldi&&t.version>=1||t.chrome&&t.version>=20||t.samsungBrowser&&t.version>=4||t.firefox&&t.version>=20||t.safari&&t.version>=6||t.opera&&t.version>=10||t.ios&&t.osversion&&t.osversion.split(".")[0]>=6||t.blackberry&&t.version>=10.1||t.chromium&&t.version>=20?t.a=o:t.msie&&t.version<10||t.chrome&&t.version<20||t.firefox&&t.version<20||t.safari&&t.version<6||t.opera&&t.version<10||t.ios&&t.osversion&&t.osversion.split(".")[0]<6||t.chromium&&t.version<20?t.c=o:t.x=o,t}function e(u){return u.split(".").length}function t(u,e){var t,r=[];if(Array.prototype.map)return Array.prototype.map.call(u,e);for(t=0;t<u.length;t++)r.push(e(u[t]));return r}function r(u){for(var r=Math.max(e(u[0]),e(u[1])),n=t(u,function(u){var n=r-e(u);return u+=new Array(n+1).join(".0"),t(u.split("."),function(u){return new Array(20-u.length).join("0")+u}).reverse()});--r>=0;){if(n[0][r]>n[1][r])return 1;if(n[0][r]!==n[1][r])return-1;if(0===r)return 0}}function n(e,t,n){var o=i;"string"==typeof t&&(n=t,t=void 0),void 0===t&&(t=!1),n&&(o=u(n));var a=""+o.version;for(var s in e)if(e.hasOwnProperty(s)&&o[s]){if("string"!=typeof e[s])throw new Error("Browser version in the minVersion map should be a string: "+s+": "+String(e));return r([a,e[s]])<0}return t}var o=!0,i=u("undefined"!=typeof navigator?navigator.userAgent||"":"");return i.test=function(u){for(var e=0;e<u.length;++e){var t=u[e];if("string"==typeof t&&t in i)return!0}return!1},i.isUnsupportedBrowser=n,i.compareVersions=r,i.check=function(u,e,t){return!n(u,e,t)},i._detect=u,i})}),ct=H(function(u,e){!function(e){u.exports=e()}(function(u){function e(u,e){var t=u[0],r=u[1],n=u[2],o=u[3];r=((r+=((n=((n+=((o=((o+=((t=((t+=(r&n|~r&o)+e[0]-680876936|0)<<7|t>>>25)+r|0)&r|~t&n)+e[1]-389564586|0)<<12|o>>>20)+t|0)&t|~o&r)+e[2]+606105819|0)<<17|n>>>15)+o|0)&o|~n&t)+e[3]-1044525330|0)<<22|r>>>10)+n|0,r=((r+=((n=((n+=((o=((o+=((t=((t+=(r&n|~r&o)+e[4]-176418897|0)<<7|t>>>25)+r|0)&r|~t&n)+e[5]+1200080426|0)<<12|o>>>20)+t|0)&t|~o&r)+e[6]-1473231341|0)<<17|n>>>15)+o|0)&o|~n&t)+e[7]-45705983|0)<<22|r>>>10)+n|0,r=((r+=((n=((n+=((o=((o+=((t=((t+=(r&n|~r&o)+e[8]+1770035416|0)<<7|t>>>25)+r|0)&r|~t&n)+e[9]-1958414417|0)<<12|o>>>20)+t|0)&t|~o&r)+e[10]-42063|0)<<17|n>>>15)+o|0)&o|~n&t)+e[11]-1990404162|0)<<22|r>>>10)+n|0,r=((r+=((n=((n+=((o=((o+=((t=((t+=(r&n|~r&o)+e[12]+1804603682|0)<<7|t>>>25)+r|0)&r|~t&n)+e[13]-40341101|0)<<12|o>>>20)+t|0)&t|~o&r)+e[14]-1502002290|0)<<17|n>>>15)+o|0)&o|~n&t)+e[15]+1236535329|0)<<22|r>>>10)+n|0,r=((r+=((n=((n+=((o=((o+=((t=((t+=(r&o|n&~o)+e[1]-165796510|0)<<5|t>>>27)+r|0)&n|r&~n)+e[6]-1069501632|0)<<9|o>>>23)+t|0)&r|t&~r)+e[11]+643717713|0)<<14|n>>>18)+o|0)&t|o&~t)+e[0]-373897302|0)<<20|r>>>12)+n|0,r=((r+=((n=((n+=((o=((o+=((t=((t+=(r&o|n&~o)+e[5]-701558691|0)<<5|t>>>27)+r|0)&n|r&~n)+e[10]+38016083|0)<<9|o>>>23)+t|0)&r|t&~r)+e[15]-660478335|0)<<14|n>>>18)+o|0)&t|o&~t)+e[4]-405537848|0)<<20|r>>>12)+n|0,r=((r+=((n=((n+=((o=((o+=((t=((t+=(r&o|n&~o)+e[9]+568446438|0)<<5|t>>>27)+r|0)&n|r&~n)+e[14]-1019803690|0)<<9|o>>>23)+t|0)&r|t&~r)+e[3]-187363961|0)<<14|n>>>18)+o|0)&t|o&~t)+e[8]+1163531501|0)<<20|r>>>12)+n|0,r=((r+=((n=((n+=((o=((o+=((t=((t+=(r&o|n&~o)+e[13]-1444681467|0)<<5|t>>>27)+r|0)&n|r&~n)+e[2]-51403784|0)<<9|o>>>23)+t|0)&r|t&~r)+e[7]+1735328473|0)<<14|n>>>18)+o|0)&t|o&~t)+e[12]-1926607734|0)<<20|r>>>12)+n|0,r=((r+=((n=((n+=((o=((o+=((t=((t+=(r^n^o)+e[5]-378558|0)<<4|t>>>28)+r|0)^r^n)+e[8]-2022574463|0)<<11|o>>>21)+t|0)^t^r)+e[11]+1839030562|0)<<16|n>>>16)+o|0)^o^t)+e[14]-35309556|0)<<23|r>>>9)+n|0,r=((r+=((n=((n+=((o=((o+=((t=((t+=(r^n^o)+e[1]-1530992060|0)<<4|t>>>28)+r|0)^r^n)+e[4]+1272893353|0)<<11|o>>>21)+t|0)^t^r)+e[7]-155497632|0)<<16|n>>>16)+o|0)^o^t)+e[10]-1094730640|0)<<23|r>>>9)+n|0,r=((r+=((n=((n+=((o=((o+=((t=((t+=(r^n^o)+e[13]+681279174|0)<<4|t>>>28)+r|0)^r^n)+e[0]-358537222|0)<<11|o>>>21)+t|0)^t^r)+e[3]-722521979|0)<<16|n>>>16)+o|0)^o^t)+e[6]+76029189|0)<<23|r>>>9)+n|0,r=((r+=((n=((n+=((o=((o+=((t=((t+=(r^n^o)+e[9]-640364487|0)<<4|t>>>28)+r|0)^r^n)+e[12]-421815835|0)<<11|o>>>21)+t|0)^t^r)+e[15]+530742520|0)<<16|n>>>16)+o|0)^o^t)+e[2]-995338651|0)<<23|r>>>9)+n|0,r=((r+=((o=((o+=(r^((t=((t+=(n^(r|~o))+e[0]-198630844|0)<<6|t>>>26)+r|0)|~n))+e[7]+1126891415|0)<<10|o>>>22)+t|0)^((n=((n+=(t^(o|~r))+e[14]-1416354905|0)<<15|n>>>17)+o|0)|~t))+e[5]-57434055|0)<<21|r>>>11)+n|0,r=((r+=((o=((o+=(r^((t=((t+=(n^(r|~o))+e[12]+1700485571|0)<<6|t>>>26)+r|0)|~n))+e[3]-1894986606|0)<<10|o>>>22)+t|0)^((n=((n+=(t^(o|~r))+e[10]-1051523|0)<<15|n>>>17)+o|0)|~t))+e[1]-2054922799|0)<<21|r>>>11)+n|0,r=((r+=((o=((o+=(r^((t=((t+=(n^(r|~o))+e[8]+1873313359|0)<<6|t>>>26)+r|0)|~n))+e[15]-30611744|0)<<10|o>>>22)+t|0)^((n=((n+=(t^(o|~r))+e[6]-1560198380|0)<<15|n>>>17)+o|0)|~t))+e[13]+1309151649|0)<<21|r>>>11)+n|0,r=((r+=((o=((o+=(r^((t=((t+=(n^(r|~o))+e[4]-145523070|0)<<6|t>>>26)+r|0)|~n))+e[11]-1120210379|0)<<10|o>>>22)+t|0)^((n=((n+=(t^(o|~r))+e[2]+718787259|0)<<15|n>>>17)+o|0)|~t))+e[9]-343485551|0)<<21|r>>>11)+n|0,u[0]=t+u[0]|0,u[1]=r+u[1]|0,u[2]=n+u[2]|0,u[3]=o+u[3]|0}function t(u){var e,t=[];for(e=0;e<64;e+=4)t[e>>2]=u.charCodeAt(e)+(u.charCodeAt(e+1)<<8)+(u.charCodeAt(e+2)<<16)+(u.charCodeAt(e+3)<<24);return t}function r(u){var e,t=[];for(e=0;e<64;e+=4)t[e>>2]=u[e]+(u[e+1]<<8)+(u[e+2]<<16)+(u[e+3]<<24);return t}function n(u){var r,n,o,i,a,s,c=u.length,f=[1732584193,-271733879,-1732584194,271733878];for(r=64;r<=c;r+=64)e(f,t(u.substring(r-64,r)));for(n=(u=u.substring(r-64)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],r=0;r<n;r+=1)o[r>>2]|=u.charCodeAt(r)<<(r%4<<3);if(o[r>>2]|=128<<(r%4<<3),r>55)for(e(f,o),r=0;r<16;r+=1)o[r]=0;return i=8*c,i=i.toString(16).match(/(.*?)(.{0,8})$/),a=parseInt(i[2],16),s=parseInt(i[1],16)||0,o[14]=a,o[15]=s,e(f,o),f}function o(u){var t,n,o,i,a,s,c=u.length,f=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=c;t+=64)e(f,r(u.subarray(t-64,t)));for(n=(u=t-64<c?u.subarray(t-64):new Uint8Array(0)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<n;t+=1)o[t>>2]|=u[t]<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(e(f,o),t=0;t<16;t+=1)o[t]=0;return i=8*c,i=i.toString(16).match(/(.*?)(.{0,8})$/),a=parseInt(i[2],16),s=parseInt(i[1],16)||0,o[14]=a,o[15]=s,e(f,o),f}function i(u){var e,t="";for(e=0;e<4;e+=1)t+=E[u>>8*e+4&15]+E[u>>8*e&15];return t}function a(u){var e;for(e=0;e<u.length;e+=1)u[e]=i(u[e]);return u.join("")}function s(u){return/[\u0080-\uFFFF]/.test(u)&&(u=unescape(encodeURIComponent(u))),u}function c(u,e){var t,r=u.length,n=new ArrayBuffer(r),o=new Uint8Array(n);for(t=0;t<r;t+=1)o[t]=u.charCodeAt(t);return e?o:n}function f(u){return String.fromCharCode.apply(null,new Uint8Array(u))}function A(u,e,t){var r=new Uint8Array(u.byteLength+e.byteLength);return r.set(new Uint8Array(u)),r.set(new Uint8Array(e),u.byteLength),t?r:r.buffer}function l(u){var e,t=[],r=u.length;for(e=0;e<r-1;e+=2)t.push(parseInt(u.substr(e,2),16));return String.fromCharCode.apply(String,t)}function p(){this.reset()}var E=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];return"5d41402abc4b2a76b9719d911017c592"!==a(n("hello"))&&function(u,e){var t=(65535&u)+(65535&e);return(u>>16)+(e>>16)+(t>>16)<<16|65535&t},"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function e(u,e){return(u=0|u||0)<0?Math.max(u+e,0):Math.min(u,e)}ArrayBuffer.prototype.slice=function(t,r){var n,o,i,a,s=this.byteLength,c=e(t,s),f=s;return r!==u&&(f=e(r,s)),c>f?new ArrayBuffer(0):(n=f-c,o=new ArrayBuffer(n),i=new Uint8Array(o),a=new Uint8Array(this,c,n),i.set(a),o)}}(),p.prototype.append=function(u){return this.appendBinary(s(u)),this},p.prototype.appendBinary=function(u){this._buff+=u,this._length+=u.length;var r,n=this._buff.length;for(r=64;r<=n;r+=64)e(this._hash,t(this._buff.substring(r-64,r)));return this._buff=this._buff.substring(r-64),this},p.prototype.end=function(u){var e,t,r=this._buff,n=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<n;e+=1)o[e>>2]|=r.charCodeAt(e)<<(e%4<<3);return this._finish(o,n),t=a(this._hash),u&&(t=l(t)),this.reset(),t},p.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},p.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash}},p.prototype.setState=function(u){return this._buff=u.buff,this._length=u.length,this._hash=u.hash,this},p.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},p.prototype._finish=function(u,t){var r,n,o,i=t;if(u[i>>2]|=128<<(i%4<<3),i>55)for(e(this._hash,u),i=0;i<16;i+=1)u[i]=0;r=(r=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),n=parseInt(r[2],16),o=parseInt(r[1],16)||0,u[14]=n,u[15]=o,e(this._hash,u)},p.hash=function(u,e){return p.hashBinary(s(u),e)},p.hashBinary=function(u,e){var t=a(n(u));return e?l(t):t},p.ArrayBuffer=function(){this.reset()},p.ArrayBuffer.prototype.append=function(u){var t,n=A(this._buff.buffer,u,!0),o=n.length;for(this._length+=u.byteLength,t=64;t<=o;t+=64)e(this._hash,r(n.subarray(t-64,t)));return this._buff=t-64<o?new Uint8Array(n.buffer.slice(t-64)):new Uint8Array(0),this},p.ArrayBuffer.prototype.end=function(u){var e,t,r=this._buff,n=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<n;e+=1)o[e>>2]|=r[e]<<(e%4<<3);return this._finish(o,n),t=a(this._hash),u&&(t=l(t)),this.reset(),t},p.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},p.ArrayBuffer.prototype.getState=function(){var u=p.prototype.getState.call(this);return u.buff=f(u.buff),u},p.ArrayBuffer.prototype.setState=function(u){return u.buff=c(u.buff,!0),p.prototype.setState.call(this,u)},p.ArrayBuffer.prototype.destroy=p.prototype.destroy,p.ArrayBuffer.prototype._finish=p.prototype._finish,p.ArrayBuffer.hash=function(u,e){var t=a(o(new Uint8Array(u)));return e?l(t):t},p})}),ft=H(function(u){function e(u,e,t,r){this.resolve=u,this.fn=e,this.self=t||null,this.args=r}function t(){this._s1=[],this._s2=[]}u.exports=function(r){function n(u,r){function n(t,r,n){if(u){u--;var s=new o(function(u){u(t.apply(r,n))});return s.then(i,i),s}return new o(function(u){a.push(new e(u,t,r,n))})}function i(){if(u++,!a.isEmpty()){var e=a.shift();e.resolve(n(e.fn,e.self,e.args))}}var a=new t;if("function"==typeof u){var s=r;r=u,u=s}if("number"!=typeof u)throw new TypeError("Expected throat size to be a number but got "+typeof u);if(void 0!==r&&"function"!=typeof r)throw new TypeError("Expected throat fn to be a function but got "+typeof r);return"function"==typeof r?function(){for(var u=[],e=0;e<arguments.length;e++)u.push(arguments[e]);return n(r,this,u)}:function(u){if("function"!=typeof u)throw new TypeError("Expected throat fn to be a function but got "+typeof u);for(var e=[],t=1;t<arguments.length;t++)e.push(arguments[t]);return n(u,this,e)}}var o;if(1===arguments.length&&"function"==typeof r)return o=r,n;if("function"!=typeof(o=u.exports.Promise))throw new Error("You must provide a Promise polyfill for this library to work in older environments");return n(arguments[0],arguments[1])},"function"==typeof Promise&&(u.exports.Promise=Promise),t.prototype.push=function(u){this._s1.push(u)},t.prototype.shift=function(){var u=this._s2;if(0===u.length){var e=this._s1;if(0===e.length)return;this._s1=u,u=this._s2=e.reverse()}return u.pop()},t.prototype.isEmpty=function(){return!this._s1.length&&!this._s2.length}}),At=1/0,lt=9007199254740991,pt=1.7976931348623157e308,Et=NaN,dt="[object Function]",ht="[object GeneratorFunction]",Ct="[object Symbol]",yt=/^\s+|\s+$/g,mt=/^[-+]0x[0-9a-f]+$/i,Ft=/^0b[01]+$/i,Bt=/^0o[0-7]+$/i,vt=/^(?:0|[1-9]\d*)$/,Dt=parseInt,gt=Object.prototype.toString,bt=Math.ceil,wt=Math.max,kt=function(u){return function(e,t,r){return r&&"number"!=typeof r&&K(e,t,r)&&(t=r=void 0),e=iu(e),void 0===t?(t=e,e=0):t=iu(t),r=void 0===r?e<t?1:-1:iu(r),Q(e,t,r,u)}}(),_t="Expected a function",xt=NaN,St="[object Symbol]",Tt=/^\s+|\s+$/g,Pt=/^[-+]0x[0-9a-f]+$/i,Ot=/^0b[01]+$/i,jt=/^0o[0-7]+$/i,zt=parseInt,Nt="object"==typeof de&&de&&de.Object===Object&&de,It="object"==typeof self&&self&&self.Object===Object&&self,qt=Nt||It||Function("return this")(),Rt=Object.prototype.toString,Ut=Math.max,Mt=Math.min,Lt=function(){return qt.Date.now()},$t=function(u,e,t){var r=!0,n=!0;if("function"!=typeof u)throw new TypeError(_t);return cu(t)&&(r="leading"in t?!!t.leading:r,n="trailing"in t?!!t.trailing:n),su(u,e,{leading:r,maxWait:e,trailing:n})},Ht=Ve.context("api-client"),Xt=function(u){return"https://"+u},Vt=function(u){return u&&Xt(u)},Wt=function(u){return u.customName||u.name},Jt=function(u){return"[object File]"===u.toString()},Gt=function(u){return Jt(u)||"[object Blob]"===u.toString()},Qt=function(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:512,t=void 0,r="";u.split(",")[0].indexOf("base64")>=0&&(t=u.split(",")[1]),void 0!==t&&(r=u.split(",")[0].split(":")[1].split(";")[0],u=decodeURI(t));for(var n=atob(u),o=[],i=0;i<n.length;i+=e){for(var a=n.slice(i,i+e),s=new Array(a.length),c=0;c<a.length;c+=1)s[c]=a.charCodeAt(c);var f=new Uint8Array(s);o.push(f)}return new Blob(o,{type:r})},Zt=function(u,e,t){var r=e*t.partSize;return{start:r,end:Math.min(r+t.partSize,u.size)}},Kt=function(u,e,t){var r=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,n=Zt(u,e,t),o=n.start,i=n.end;return r.call(u,o,i)},Yt=function(u,e){for(var t=0,r=[],n=ArrayBuffer.prototype.slice;t<u.size;){var o=n.call(u.buffer,t,t+e),i={buf:o,offset:t,size:o.byteLength,part:u};r.push(i),t+=e}return r},ur=function(u){return new Promise(function(e,t){var r=void 0;window.File&&window.FileReader&&window.Blob?r=new FileReader:t(new Error("The File APIs are not fully supported by your browser")),r.onloadend=e,r.onerror=t,r.readAsArrayBuffer(u)})},er=function(u){return window.btoa(ct.ArrayBuffer.hash(u,!0))},tr=function(u,e){var t=new FormData;return Object.keys(u).forEach(function(e){t.append(e,u[e])}),Object.keys(e.store).forEach(function(u){t.append(u,e.store[u])}),t},rr=function(u,e){var t={apikey:e.apikey,filename:Wt(u),mimetype:u.type||"application/octet-stream",size:u.size};e.policy&&e.signature&&(t.policy=e.policy,t.signature=e.signature),e.intelligent&&(t.multipart=!0);var r=tr(t,e);return ge("post",e.host+"/multipart/start").timeout(e.timeout).send(r)},nr=function(u,e,t,r,n,o){var i=n.debug?n.host:Vt(u.location_url)||n.host,a=u.location_region,s=Oe({apikey:n.apikey,part:e.number+1,size:t,md5:r},u);(!0===n.intelligent||e.intelligentOverride)&&(s.multipart=!0,s.offset=o);var c=tr(s,n);return ge("post",i+"/multipart/upload").set("Filestack-Upload-Region",a).timeout(n.timeout).send(c)},or=function(u,e,t,r){var n=r.fakeS3?r.host+"/fakeS3":e.url,o=Math.max(r.timeout,u.byteLength/100),i=De.put(n).set(e.headers).timeout(o).send(u);return t?i.on("progress",t):i},ir=function(u,e,t){u.buf=new Uint8Array(u.buf);var r=er(u.buf);return nr(e,u.part,u.size,r,t,u.offset).then(function(e){var r=void 0;return t.onProgress&&(r=$t(function(e){e.loaded>0&&(u.loaded=e.loaded)},t.progressInterval)),delete e.xhr,delete e.req,u.request=or(u.buf,e.body,r,t),u.request}).then(function(e){return delete u.buf,delete u.request,delete e.req,delete e.xhr,e})},ar=function(u,e,t,r){var n=r.debug?r.host:Vt(t.location_url)||r.host,o=Oe({apikey:r.apikey,part:e.number+1,size:u.size},t),i=tr(o,r);return ge("post",n+"/multipart/commit").timeout(r.timeout).send(i)},sr=function(u,e,t,r){var n=r.debug?r.host:Vt(t.location_url)||r.host,o=t.location_region,i=Oe({apikey:r.apikey,size:u.size,filename:u.customName||u.name,mimetype:u.type||"application/octet-stream",parts:e},t);r.intelligent&&(i.multipart=!0,delete i.parts);var a=tr(i,r);return ge("post",n+"/multipart/complete").set("Filestack-Upload-Region",o).timeout(r.timeout).send(a)},cr=function(u){return u.map(function(u,e){return e+1+":"+u}).join(";")},fr=function(u,e,t){Ht("calling upload with config:",e,"file: ",u);var r={progressTick:null,paused:!1,failed:!1,done:!1,retries:{}},n=Math.ceil(u.size/e.partSize),o=kt(0,n).map(function(u){return{size:null,number:u,loaded:0,request:null,intelligentOverride:!1,chunks:[],chunkSize:e.intelligentChunkSize?e.intelligentChunkSize:st.mobile?1048576:8388608}}),i=function(u){return u.reduce(function(u,e){return u+e},0)},a=function(e){return Math.round(e/u.size*100)},s=function(){e.onProgress&&(r.progressTick=setInterval(function(){var u=o.map(function(u){return u.loaded}),t=o.map(function(u){return u.chunks}).reduce(function(u,e){return u.concat(e)},[]).map(function(u){return u.loaded}).filter(function(u){return u}),n=u;!0===e.intelligent&&(n=t),"fallback"===e.intelligent&&(n=o.filter(function(u){return!u.intelligentOverride}).map(function(u){return u.loaded}).concat(t));var s=i(n),c=a(s),f={totalBytes:s,totalPercent:c},A=r.previousPayload||{};100!==c?(c<A.totalPercent&&(f.totalBytes=A.totalBytes,f.totalPercent=A.totalPercent),e.onProgress(f),r.previousPayload=f):clearInterval(r.progressTick)},e.progressInterval))},c=function(){if(e.onProgress){var t={totalBytes:u.size,totalPercent:100};e.onProgress(t),clearInterval(r.progressTick)}};t.pause=function(){r.failed||r.done||r.paused||(Ht("Upload flow paused"),r.paused=!0,clearInterval(r.progressTick))},t.resume=function(){r.failed||r.done||!r.paused||(Ht("Upload flow resumed"),r.paused=!1,s()),r.paused&&r.done&&(r.paused=!1,c())};var f=function(){o.forEach(function(u){u.request&&u.request.abort(),delete u.request,u.chunks.forEach(function(u){u.request&&u.request.abort(),delete u.request})})},A=new Promise(function(u,e){t.cancel=function(){r.failed||r.done||(clearInterval(r.progressTick),f(),r.failed=!0,e(new Error("Upload cancelled")))}}),l=function(u){return function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.failed?Promise.resolve():r.paused?new Promise(function(e){!function n(){r.paused?setTimeout(function(){return n()},100):e(u.apply(void 0,t))}()}):u.apply(void 0,t)}},p=function(t,n,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=r.retries[t]||0,c=Math.min(e.retryMaxTime,1e3*Math.pow(e.retryFactor,s)),f=new Promise(function(f,A){s===e.retry||r.failed||400===i.status&&"PUT"!==i.method||401===i.status||403===i.status||404===i.status||a.chunkSize<=32768?(clearInterval(r.progressTick),r.failed=!0,A(new Error("Upload for "+Wt(u)+" failed. "+i.message))):setTimeout(function(){r.failed?f():(!0===e.intelligent||a.intelligentOverride)&&(i.crossDomain&&"PUT"===i.method||400===i.status&&"PUT"===i.method||i.timeout)?a.chunkSize<=32768?f():(a.chunkSize/=2,e.onRetry&&e.onRetry({location:t,parts:o,filename:Wt(u),chunkSize:a.chunkSize}),f(n())):"fallback"===e.intelligent&&(i.crossDomain&&"PUT"===i.method||400===i.status&&"PUT"===i.method||i.timeout)?(a.intelligentOverride=!0,a.chunkSize===e.partSize&&(a.chunkSize/=2),e.onRetry&&e.onRetry({location:t,parts:o,filename:Wt(u),chunkSize:a.chunkSize}),f(n())):(s+=1,r.retries[t]=s,e.onRetry&&e.onRetry({location:t,parts:o,filename:Wt(u),attempt:s}),f(n()))},c)});return Promise.race([A,f])},E=function(t,n){var o=ur(Kt(u,t.number,e)).then(function(u){return t.buffer=!0===e.intelligent||t.intelligentOverride?u.target.result:new Uint8Array(u.target.result),t.size=t.buffer.byteLength,0===t.size?(r.failed=!0,Promise.reject(new Error("Upload aborted due to empty chunk."))):t});return!0===e.intelligent||t.intelligentOverride?o.then(function(t){var r=l(function(u){return ir(u,n,e)});return t.chunks=Yt(t,t.chunkSize),Promise.race([A,Promise.all(t.chunks.map(ft(e.concurrency,r)))]).then(function(){return delete t.buffer,t.loaded=t.size,ar(u,t,n,e).then(function(u){return 206===u.status?Promise.reject(new Error("FII chunks missing")):u})})}):o.then(function(u){var t=er(u.buffer);return u.request=nr(n,u,u.size,t,e),u.request}).then(function(u){var r=void 0;return e.onProgress&&(r=$t(function(u){u.loaded>0&&(t.loaded=u.loaded)},e.progressInterval)),t.request=or(t.buffer,u.body,r,e),t.request}).then(function(u){if(delete t.buffer,delete t.request,delete u.req,delete u.xhr,void 0===u.headers.etag){r.failed=!0;return Promise.reject(new Error("Response from S3 is missing ETag header. Please expose it in your bucket CORS config."))}return u})};return Promise.race([A,function t(){return rr(u,e).catch(function(u){return p("start",t,u)})}()]).then(function(t){var n=t.body;s();var i=l(function(u){return E(u,n).catch(function(e){return u.loaded=0,u.chunks=[],p("upload part "+(u.number+1),function(){return i(u)},e,u)})}),a=Promise.all(o.map(ft(e.concurrency,i)));return Promise.race([A,a]).then(function(t){var o=void 0;!0!==e.intelligent&&(o=cr(t.map(function(u){return u.headers&&u.headers.etag})));var i=l(function(){return sr(u,o,n,e).then(function(u){return 202===u.status?new Promise(function(u){setTimeout(function(){return u(i())},1e3)}):(r.done=!0,r.paused||c(),u.body)}).catch(function(u){return p("complete",i,u)})});return i()})})},Ar=function(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if("string"==typeof e&&(e=Qt(e)),!e||!Gt(e))return Promise.reject(new TypeError("File parameter is not a valid Blob or File instance"));if(void 0!==e.size&&0===e.size)return Promise.reject(new Error("File has a size of 0."));var o=[{name:"host",type:Ee.String},{name:"partSize",type:Ee.Number},{name:"concurrency",type:Ee.refinement(Ee.Integer,function(u){return u>0})},{name:"onProgress",type:Ee.Function},{name:"progressInterval",type:Ee.Integer},{name:"onRetry",type:Ee.Function},{name:"retry",type:Ee.Integer},{name:"retryFactor",type:Ee.Integer},{name:"retryMaxTime",type:Ee.Integer},{name:"timeout",type:Ee.Integer},{name:"debug",type:Ee.Bool},{name:"intelligent",type:Ee.union([Ee.Bool,Ee.enums.of("fallback")])},{name:"intelligentChunkSize",type:Ee.Number},{name:"fakeS3",type:Ee.Bool}],i=[{name:"location",type:Ee.enums.of("s3 gcs rackspace azure dropbox")},{name:"region",type:Ee.String},{name:"path",type:Ee.String},{name:"container",type:Ee.String},{name:"filename",type:Ee.String},{name:"access",type:Ee.enums.of("public private")}];if(ze("upload (options)",o,t),ze("upload (storeOptions)",i,r),r.filename)e.customName=r.filename;else if(void 0===e.name)if(e.type){var a=e.type.split("/").pop();e.customName="untitled."+a}else e.customName="untitled";delete r.filename,void 0===r.location&&(r.location="s3"),t.intelligent&&(t.partSize=8388608);var s=Ie(r,"store"),c=Oe({host:u.urls.uploadApiUrl,apikey:u.apikey,policy:u.policy,signature:u.signature,partSize:6291456,concurrency:3,onProgress:null,progressInterval:1e3,onRetry:null,retry:10,retryFactor:2,retryMaxTime:1e4,store:s,timeout:12e4,debug:!1},t);return fr(e,c,n)},lr={version:"0.5.16",init:function(u,e,t){if(!u||"string"!=typeof u)throw new Error("apikey is required to initialize the Filestack client");var r=Oe({},e,{apikey:u,urls:function(){var u=Eu;return t&&Object.keys(Eu).forEach(function(e){u[e]=Eu[e].replace("filestackapi.com",t)}),u}()});return{apikey:u,cname:t,getSecurity:function(){return{policy:r.policy,signature:r.signature}},setSecurity:function(u){if(u&&(!u.policy||!u.signature))throw new Error("signature and policy are both required for security");return r.policy=u.policy,r.signature=u.signature,r},storeURL:function(u,e,t){return qe(r,u,e,t)},retrieve:function(u,e){return Re(r,u,e)},remove:function(u,e){return Ue(r,u)},preview:function(u,e){return Ze(r,u,e)},overwrite:function(u,e){return Me(r,u)},metadata:function(u,e){return Le(r,u,e)},transform:function(u,e){return at(r,u,e)},upload:function(u,e,t,n){return Ar(r,u,e,t,n)},prefetch:function(){return Ge(r)},cloud:function(){return Je(r)}}}},pr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(u){return typeof u}:function(u){return u&&"function"==typeof Symbol&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},Er=function(){var u=void 0;return"object"===("undefined"==typeof window?"undefined":pr(window))&&((u=window.filestackInternals)||(u={},window.filestackInternals=u),u.loader||(u.loader={modules:{}})),u}(),dr=Er&&Er.loader.modules,hr={registerReadyModule:function(u,e){var t=void 0;if(e&&document.getElementById(e))t=document.getElementById(e);else{var r=document.getElementsByTagName("script");t=r[r.length-1]}var n=t.getAttribute("src"),o=dr[n];o&&o.resolvePromise&&(o.instance=u,o.resolvePromise(u),delete o.promise,delete o.resolvePromise)},loadModule:function(u,e){var t=dr[u];if(t||(dr[u]={},t=dr[u]),t.instance)return Promise.resolve(t.instance);if(t.promise)return t.promise;var r=new Promise(function(r,n){var o=function(){t.resolvePromise=r;var o=document.createElement("script");o.src=u,o.onerror=n,e&&(o.id=e),document.body.appendChild(o)};!function u(){"complete"===document.readyState?o():setTimeout(u,50)}()});return t.promise=r,r},loadCss:function(u){return null!==document.querySelector('link[href="'+u+'"]')?Promise.resolve():new Promise(function(e){var t=document.getElementsByTagName("head")[0],r=document.createElement("link");r.rel="stylesheet",r.href=u,r.addEventListener("load",function u(){e(),r.removeEventListener("load",u)}),t.appendChild(r)})},knownModuleIds:{picker:"__filestack-picker-module"}},Cr=Object.assign||function(u){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(u[r]=t[r])}return u};return{version:"0.9.12",init:function(u,e,t){var r=lr.init(u,e,t),n=pu(t);return{getSecurity:function(){return r.getSecurity()},setSecurity:function(u){return r.setSecurity(u)},cropFiles:function(u,e){var t=Cr({},e,{cropFiles:u});return hr.loadModule(n.picker,hr.knownModuleIds.picker).then(function(u){return u(r,t)})},makeDropPane:function(u,e){var t=Cr({},e,{dropPane:u});hr.loadModule(n.picker,hr.knownModuleIds.picker).then(function(u){u(r,t)})},pick:function(u){return hr.loadModule(n.picker,hr.knownModuleIds.picker).then(function(e){return e(r,u)})},storeURL:function(u,e){return r.storeURL(u,e)},transform:function(u,e){return r.transform(u,e)},upload:function(u,e,t,n){return r.upload(u,e,t,n)},retrieve:function(u,e){return r.retrieve(u,e)},remove:function(u){return r.remove(u)},metadata:function(u,e){return r.metadata(u,e)},preview:function(u,e){return r.preview(u,e)},logout:function(){return r.cloud().logout()}}}}});
//# sourceMappingURL=filestack.js.map

Spamworldpro Mini