PageSourceSearch

https://app.independently.ai/_next/static/chunks/b5abf434.b8ecddf4b76eb842.js

js independently.ai collected 2026-10-05 12:04:30 UTC 117,931 bytes, 2 lines download raw bytes

1try{let e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e1599697-e959-412a-88b2-63de5a069c09",e._sentryDebugIdIdentifier="sentry-dbid-e1599697-e959-412a-88b2-63de5a069c09")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[826],{29621:function(e,t){!function(e){"use strict";var t,n,r,o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=Object.assign({},e),o=[],i=[],a=function(e,t,n){n&&!document.hidden?i.push({type:e,data:t}):(l[e]&&l[e](t),o.push({type:e,data:t}))},s=function(e){for(var t,n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return u[e]?(t=u)[e].apply(t,r):null},u={};t.forEach(function(e){u=Object.assign({},e(r),{},u)});var l={};return n.forEach(function(e){l=Object.assign({},e(a,s,r),{},l)}),{getState:function(){return Object.assign({},r)},processActionQueue:function(){var e=[].concat(o);return o.length=0,e},processDispatchQueue:function(){var e=[].concat(i);i.length=0,e.forEach(function(e){a(e.type,e.data)})},dispatch:a,query:s}},i=function(e,t,n){if("function"==typeof n){e[t]=n;return}Object.defineProperty(e,t,Object.assign({},n))},a=function(e,t){for(var n in e)e.hasOwnProperty(n)&&t(n,e[n])},s=function(e){var t={};return a(e,function(n){i(t,n,e[n])}),t},u=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(null===n)return e.getAttribute(t)||e.hasAttribute(t);e.setAttribute(t,n)},l=["svg","path"],c=function(e){return l.includes(e)},f=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"==typeof t&&(n=t,t=null);var r=c(e)?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return t&&(c(e)?u(r,"class",t):r.className=t),a(n,function(e,t){u(r,e,t)}),r},d="u">typeof window&&void 0!==window.document,p=function(){return d},E="children"in(p()?f("svg"):{})?function(e){return e.children.length}:function(e){return e.childNodes.length},_=function(e,t,n,r){var o=n[0]||e.left,i=n[1]||e.top,a=o+e.width,s=i+e.height*(r[1]||1),u={element:Object.assign({},e),inner:{left:e.left,top:e.top,right:e.right,bottom:e.bottom},outer:{left:o,top:i,right:a,bottom:s}};return t.filter(function(e){return!e.isRectIgnored()}).map(function(e){return e.rect}).forEach(function(e){T(u.inner,Object.assign({},e.inner)),T(u.outer,Object.assign({},e.outer))}),I(u.inner),u.outer.bottom+=u.element.marginBottom,u.outer.right+=u.element.marginRight,I(u.outer),u},T=function(e,t){t.top+=e.top,t.right+=e.left,t.bottom+=e.top,t.left+=e.left,t.bottom>e.bottom&&(e.bottom=t.bottom),t.right>e.right&&(e.right=t.right)},I=function(e){e.width=e.right-e.left,e.height=e.bottom-e.top},v=function(e){return"number"==typeof e},m=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.001;return Math.abs(e-t)<r&&Math.abs(n)<r},h=function(e){return e<.5?2*e*e:-1+(4-2*e)*e},g={spring:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiffness,n=void 0===t?.5:t,r=e.damping,o=void 0===r?.75:r,i=e.mass,a=void 0===i?10:i,u=null,l=null,c=0,f=!1,d=s({interpolate:function(e,t){if(!f){if(!(v(u)&&v(l))){f=!0,c=0;return}c+=-(l-u)*n/a,l+=c,c*=o,m(l,u,c)||t?(l=u,c=0,f=!0,d.onupdate(l),d.oncomplete(l)):d.onupdate(l)}},target:{set:function(e){if(v(e)&&!v(l)&&(l=e),null===u&&(u=e,l=e),l===(u=e)||void 0===u){f=!0,c=0,d.onupdate(l),d.oncomplete(l);return}f=!1},get:function(){return u}},resting:{get:function(){return f}},onupdate:function(e){},oncomplete:function(e){}});return d},tween:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.duration,o=void 0===r?500:r,i=n.easing,a=void 0===i?h:i,u=n.delay,l=void 0===u?0:u,c=null,f=!0,d=!1,p=null,E=s({interpolate:function(n,r){f||null===p||(null===c&&(c=n),n-c<l||((e=n-c-l)>=o||r?(e=1,t=+!d,E.onupdate(t*p),E.oncomplete(t*p),f=!0):(t=e/o,E.onupdate((e>=0?a(d?1-t:t):0)*p))))},target:{get:function(){return d?0:p},set:function(e){if(null===p){p=e,E.onupdate(e),E.oncomplete(e);return}e<p?(p=1,d=!0):(d=!1,p=e),f=!1,c=null}},resting:{get:function(){return f}},onupdate:function(e){},oncomplete:function(e){}});return E}},R=function(e,t,n){var r=e[t]&&"object"==typeof e[t][n]?e[t][n]:e[t]||e,o="string"==typeof r?r:r.type,i="object"==typeof r?Object.assign({},r):{};return g[o]?g[o](i):null},O=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];
vendor: 5,676 bytes, line 1
1(t=Array.isArray(t)?t:[t]).forEach(function(t){e.forEach(function(e){var o=e,i=function(){return n[e]},a=function(t){return n[e]=t};"object"==typeof e&&(o=e.key,i=e.getter||i,a=e.setter||a),(!t[o]||r)&&(t[o]={get:i,set:a})})})},y=function(e){return null!=e},D={opacity:1,scaleX:1,scaleY:1,translateX:0,translateY:0,rotateX:0,rotateY:0,rotateZ:0,originX:0,originY:0},S=function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!0;for(var n in t)if(t[n]!==e[n])return!0;return!1},A=function(e,t){var n=t.opacity,r=t.perspective,o=t.translateX,i=t.translateY,a=t.scaleX,s=t.scaleY,u=t.rotateX,l=t.rotateY,c=t.rotateZ,f=t.originX,d=t.originY,p=t.width,E=t.height,_="",T="";(y(f)||y(d))&&(T+="transform-origin: "+(f||0)+"px "+(d||0)+"px;"),y(r)&&(_+="perspective("+r+"px) "),(y(o)||y(i))&&(_+="translate3d("+(o||0)+"px, "+(i||0)+"px, 0) "),(y(a)||y(s))&&(_+="scale3d("+(y(a)?a:1)+", "+(y(s)?s:1)+", 1) "),y(c)&&(_+="rotateZ("+c+"rad) "),y(u)&&(_+="rotateX("+u+"rad) "),y(l)&&(_+="rotateY("+l+"rad) "),_.length&&(T+="transform:"+_+";"),y(n)&&(T+="opacity:"+n+";",0===n&&(T+="visibility:hidden;"),n<1&&(T+="pointer-events:none;")),y(E)&&(T+="height:"+E+"px;"),y(p)&&(T+="width:"+p+"px;");var I=e.elementCurrentStyle||"";(T.length!==I.length||T!==I)&&(e.style.cssText=T,e.elementCurrentStyle=T)},b={styles:function(e){var t=e.mixinConfig,n=e.viewProps,r=e.viewInternalAPI,o=e.viewExternalAPI,i=e.view,a=Object.assign({},n),s={};O(t,[r,o],n);var u=function(){return i.rect?_(i.rect,i.childViews,[n.translateX||0,n.translateY||0],[n.scaleX||0,n.scaleY||0]):null};return r.rect={get:u},o.rect={get:u},t.forEach(function(e){n[e]=void 0===a[e]?D[e]:a[e]}),{write:function(){if(S(s,n))return A(i.element,n),Object.assign(s,Object.assign({},n)),!0},destroy:function(){}}},listeners:function(e){e.mixinConfig,e.viewProps,e.viewInternalAPI;var t,n,r=e.viewExternalAPI,o=(e.viewState,e.view),i=[],a=(t=o.element,function(e,n){t.addEventListener(e,n)}),s=(n=o.element,function(e,t){n.removeEventListener(e,t)});return r.on=function(e,t){i.push({type:e,fn:t}),a(e,t)},r.off=function(e,t){i.splice(i.findIndex(function(n){return n.type===e&&n.fn===t}),1),s(e,t)},{write:function(){return!0},destroy:function(){i.forEach(function(e){s(e.type,e.fn)})}}},animations:function(e){var t=e.mixinConfig,n=e.viewProps,r=e.viewInternalAPI,o=e.viewExternalAPI,i=Object.assign({},n),s=[];return a(t,function(e,t){var a=R(t);a&&(a.onupdate=function(t){n[e]=t},a.target=i[e],O([{key:e,setter:function(e){a.target!==e&&(a.target=e)},getter:function(){return n[e]}}],[r,o],n,!0),s.push(a))}),{write:function(e){var t=document.hidden,n=!0;return s.forEach(function(r){r.resting||(n=!1),r.interpolate(e,t)}),n},destroy:function(){}}},apis:function(e){var t=e.mixinConfig,n=e.viewProps;O(t,e.viewExternalAPI,n)}},L=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.layoutCalculated||(e.paddingTop=parseInt(n.paddingTop,10)||0,e.marginTop=parseInt(n.marginTop,10)||0,e.marginRight=parseInt(n.marginRight,10)||0,e.marginBottom=parseInt(n.marginBottom,10)||0,e.marginLeft=parseInt(n.marginLeft,10)||0,t.layoutCalculated=!0),e.left=t.offsetLeft||0,e.top=t.offsetTop||0,e.width=t.offsetWidth||0,e.height=t.offsetHeight||0,e.right=e.left+e.width,e.bottom=e.top+e.height,e.scrollTop=t.scrollTop,e.hidden=null===t.offsetParent,e},P=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.tag,n=void 0===t?"div":t,r=e.name,o=void 0===r?null:r,i=e.attributes,a=void 0===i?{}:i,u=e.read,l=void 0===u?function(){}:u,c=e.write,d=void 0===c?function(){}:c,p=e.create,T=void 0===p?function(){}:p,I=e.destroy,v=void 0===I?function(){}:I,m=e.filterFrameActionsForChild,h=void 0===m?function(e,t){return t}:m,g=e.didCreateView,R=void 0===g?function(){}:g,O=e.didWriteView,y=void 0===O?function(){}:O,D=e.ignoreRect,S=void 0!==D&&D,A=e.ignoreRectUpdate,P=void 0!==A&&A,M=e.mixins,C=void 0===M?[]:M;return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=f(n,"filepond--"+o,a),i=window.getComputedStyle(r,null),u=L(),c=null,p=!1,I=[],m=[],g={},O={},D=[d],A=[l],M=[v],w=function(){return r},N=function(){return I.concat()},G=function(){return c||(c=_(u,I,[0,0],[1,1]))},U={element:{get:w},style:{get:function(){return i}},childViews:{get:N}},B=Object.assign({},U,{rect:{get:G},ref:{get:function(){return g}},is:function(e){return o===e},appendChild:function(e,t){void 0!==t&&r.children[t]?r.insertBefore(e,r.children[t]):r.appendChild(e)},createChildView:function(t,n){return t(e,n)},linkView:function(e){return I.push(e),e},unlinkView:function(e){I.splice(I.indexOf(e),1)},appendChildView:function(e,t){return void 0!==t?I.splice(t,0,e):I.push(e),e},removeChildView:function(e){return I.splice(I.indexOf(e),1),e.element.parentNode&&r.removeChild(e.element),e},registerWriter:function(e){return D.push(e)},registerReader:function(e){return A.push(e)},registerDestroyer:function(e){return M.push(e)},invalidateLayout:function(){return r.layoutCalculated=!1},dispatch:e.dispatch,query:e.query}),F={element:{get:w},childViews:{get:N},rect:{get:G},resting:{get:function(){return p}},isRectIgnored:function(){return S},_read:function(){c=null,I.forEach(function(e){return e._read()}),P&&u.width&&u.height||L(u,r,i);var e={root:V,props:t,rect:u};A.forEach(function(t){return t(e)})},_write:function(e,n,r){var o=0===n.length;return D.forEach(function(i){!1===i({props:t,root:V,actions:n,timestamp:e,shouldOptimize:r})&&(o=!1)}),m.forEach(function(t){!1===t.write(e)&&(o=!1)}),I.filter(function(e){return!!e.element.parentNode}
vendor: 4,933 bytes, line 1
1).forEach(function(t){t._write(e,h(t,n),r)||(o=!1)}),I.forEach(function(t,i){t.element.parentNode||(V.appendChild(t.element,i),t._read(),t._write(e,h(t,n),r),o=!1)}),p=o,y({props:t,root:V,actions:n,timestamp:e}),o},_destroy:function(){m.forEach(function(e){return e.destroy()}),M.forEach(function(e){e({root:V,props:t})}),I.forEach(function(e){return e._destroy()})}},q=Object.assign({},U,{rect:{get:function(){return u}}});Object.keys(C).sort(function(e,t){return"styles"===e?1:"styles"===t?-1:0}).forEach(function(e){var n=b[e]({mixinConfig:C[e],viewProps:t,viewState:O,viewInternalAPI:B,viewExternalAPI:F,view:s(q)});n&&m.push(n)});var V=s(B);T({root:V,props:t});var x=E(r);return I.forEach(function(e,t){V.appendChild(e.element,x+t)}),R(V),s(F)}},M=function(e,t){return function(n){var r=n.root,o=n.props,i=n.actions,a=void 0===i?[]:i,s=n.timestamp,u=n.shouldOptimize;a.filter(function(t){return e[t.type]}).forEach(function(t){return e[t.type]({root:r,props:o,action:t.data,timestamp:s,shouldOptimize:u})}),t&&t({root:r,props:o,actions:a,timestamp:s,shouldOptimize:u})}},C=function(e,t){return t.parentNode.insertBefore(e,t)},w=function(e,t){return t.parentNode.insertBefore(e,t.nextSibling)},N=function(e){return Array.isArray(e)},G=function(e){return null==e},U=function(e){return e.trim()},B=function(e){return""+e},F=function(e){return"boolean"==typeof e},q=function(e){return F(e)?e:"true"===e},V=function(e){return"string"==typeof e},x=function(e){return v(e)?e:V(e)?B(e).replace(/[a-z]+/gi,""):0},Y=function(e){return parseInt(x(e),10)},k=function(e){return parseFloat(x(e))},j=function(e){return v(e)&&isFinite(e)&&Math.floor(e)===e},H=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(j(e))return e;var n=B(e).trim();return/MB$/i.test(n)?Y(n=n.replace(/MB$i/,"").trim())*t*t:/KB/i.test(n)?Y(n=n.replace(/KB$i/,"").trim())*t:Y(n)},X=function(e){return"function"==typeof e},W=function(e){for(var t=self,n=e.split("."),r=null;r=n.shift();)if(!(t=t[r]))return null;return t},z={process:"POST",patch:"PATCH",revert:"DELETE",fetch:"GET",restore:"GET",load:"GET"},Q=function(e){var t={};return t.url=V(e)?e:e.url||"",t.timeout=e.timeout?parseInt(e.timeout,10):0,t.headers=e.headers?e.headers:{},a(z,function(n){t[n]=Z(n,e[n],z[n],t.timeout,t.headers)}),t.process=e.process||V(e)||e.url?t.process:null,t.remove=e.remove||null,delete t.headers,t},Z=function(e,t,n,r,o){if(null===t)return null;if("function"==typeof t)return t;var i={url:"GET"===n||"PATCH"===n?"?"+e+"=":"",method:n,headers:o,withCredentials:!1,timeout:r,onload:null,ondata:null,onerror:null};if(V(t))return i.url=t,i;if(Object.assign(i,t),V(i.headers)){var a=i.headers.split(/:(.+)/);i.headers={header:a[0],value:a[1]}}return i.withCredentials=q(i.withCredentials),i},K=function(e){return"object"==typeof e&&null!==e},$=function(e){return N(e)?"array":null===e?"null":j(e)?"int":/^[0-9]+ ?(?:GB|MB|KB)$/gi.test(e)?"bytes":K(e)&&V(e.url)&&K(e.process)&&K(e.revert)&&K(e.restore)&&K(e.fetch)?"api":typeof e},J={array:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";return G(e)?[]:N(e)?e:B(e).split(t).map(U).filter(function(e){return e.length})},boolean:q,int:function(e){return"bytes"===$(e)?H(e):Y(e)},number:k,float:k,bytes:H,string:function(e){return X(e)?e:B(e)},function:function(e){return W(e)},serverapi:function(e){return Q(e)},object:function(e){try{return JSON.parse(e.replace(/{\s*'/g,'{"').replace(/'\s*}/g,'"}').replace(/'\s*:/g,'":').replace(/:\s*'/g,':"').replace(/,\s*'/g,',"').replace(/'\s*,/g,'",'))}catch(e){return null}}},ee=function(e,t,n){if(e===t)return e;var r=$(e);if(r!==n){var o,i=(o=e,J[n](o));if(r=$(i),null===i)throw'Trying to assign value with incorrect type to "'+option+'", allowed type: "'+n+'"';e=i}return e},et=function(e,t){var n=e;return{enumerable:!0,get:function(){return n},set:function(r){n=ee(r,e,t)}}},en=function(e){var t={};return a(e,function(n){var r=e[n];t[n]=et(r[0],r[1])}),s(t)},er=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return e.split(/(?=[A-Z])/).map(function(e){return e.toLowerCase()}).join(t)},eo=function(e,t){var n={};return a(t,function(t){n[t]={get:function(){return e.getState().options[t]},set:function(n){e.dispatch("SET_"+er(t,"_").toUpperCase(),{value:n})}}}),n},ei=function(){return Math.random().toString(36).substring(2,11)};function ea(e){this.wrapped=e}function es(e){var t,n;function r(t,n){try{var i=e[t](n),a=i.value,s=a instanceof ea;Promise.resolve(s?a.wrapped:a).then(function(e){s?r("next",e):o(i.done?"return":"normal",e)},function(e){r("throw",e)})}catch(e){o("throw",e)}}function o(e,o){switch(e){case"return":t.resolve({value:o,done:!0});break;case"throw":t.reject(o);break;default:t.resolve({value:o,done:!1})}(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,o){return new Promise(function(i,a){var s={key:e,arg:o,resolve:i,reject:a,next:null};n?n=n.next=s:(t=n=s,r(e,o))})}
1,"function"!=typeof e.return&&(this.return=void 0)}function eu(e){return function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance")}()}"function"==typeof Symbol&&Symbol.asyncIterator&&(es.prototype[Symbol.asyncIterator]=function(){return this}),es.prototype.next=function(e){return this._invoke("next",e)},es.prototype.throw=function(e){return this._invoke("throw",e)},es.prototype.return=function(e){return this._invoke("return",e)};var el=function(e,t){return e.splice(t,1)},ec=function(e,t){t?e():document.hidden?Promise.resolve(1).then(e):setTimeout(e,0)},ef=function(){var e=[],t=function(t,n){el(e,e.findIndex(function(e){return e.event===t&&(e.cb===n||!n)}))},n=function(t,n,r){e.filter(function(e){return e.event===t}).map(function(e){return e.cb}).forEach(function(e){return ec(function(){return e.apply(void 0,eu(n))},r)})};return{fireSync:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];n(e,r,!0)},fire:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];n(e,r,!1)},on:function(t,n){e.push({event:t,cb:n})},onOnce:function(n,r){e.push({event:n,cb:function(){t(n,r),r.apply(void 0,arguments)}})},off:t}},ed=function(e,t,n){Object.getOwnPropertyNames(e).filter(function(e){return!n.includes(e)}).forEach(function(n){return Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})},ep=["fire","process","revert","load","on","off","onOnce","retryLoad","extend","archive","archived","release","released","requestProcessing","freeze"],eE=function(e){var t={};return ed(e,t,ep),t},e_=function(e){e.forEach(function(t,n){t.released&&el(e,n)})},eT={INIT:1,IDLE:2,PROCESSING_QUEUED:9,PROCESSING:3,PROCESSING_COMPLETE:5,PROCESSING_ERROR:6,PROCESSING_REVERT_ERROR:10,LOADING:7,LOAD_ERROR:8},eI={INPUT:1,LIMBO:2,LOCAL:3},ev=function(e){return/[^0-9]+/.exec(e)},em=function(){return ev(1.1.toLocaleString())[0]},eh={BOOLEAN:"boolean",INT:"int",NUMBER:"number",STRING:"string",ARRAY:"array",OBJECT:"object",FUNCTION:"function",ACTION:"action",SERVER_API:"serverapi",REGEX:"regex"},eg=[],eR=function(e,t,n){return new Promise(function(r,o){var i=eg.filter(function(t){return t.key===e}).map(function(e){return e.cb});if(0===i.length)return void r(t);var a=i.shift();i.reduce(function(e,t){return e.then(function(e){return t(e,n)})},a(t,n)).then(function(e){return r(e)}).catch(function(e){return o(e)})})},eO=function(e,t,n){return eg.filter(function(t){return t.key===e}).map(function(e){return e.cb(t,n)})},ey=function(e,t){return eg.push({key:e,cb:t})},eD=function(){return Object.assign({},eA)},eS=function(e){a(e,function(e,t){eA[e]&&(eA[e][0]=ee(t,eA[e][0],eA[e][1]))})},eA={id:[null,eh.STRING],name:["filepond",eh.STRING],disabled:[!1,eh.BOOLEAN],className:[null,eh.STRING],required:[!1,eh.BOOLEAN],captureMethod:[null,eh.STRING],allowSyncAcceptAttribute:[!0,eh.BOOLEAN],allowDrop:[!0,eh.BOOLEAN],allowBrowse:[!0,eh.BOOLEAN],allowPaste:[!0,eh.BOOLEAN],allowMultiple:[!1,eh.BOOLEAN],allowReplace:[!0,eh.BOOLEAN],allowRevert:[!0,eh.BOOLEAN],allowRemove:[!0,eh.BOOLEAN],allowProcess:[!0,eh.BOOLEAN],allowReorder:[!1,eh.BOOLEAN],allowDirectoriesOnly:[!1,eh.BOOLEAN],storeAsFile:[!1,eh.BOOLEAN],forceRevert:[!1,eh.BOOLEAN],maxFiles:[null,eh.INT],checkValidity:[!1,eh.BOOLEAN],itemInsertLocationFreedom:[!0,eh.BOOLEAN],itemInsertLocation:["before",eh.STRING],itemInsertInterval:[75,eh.INT],dropOnPage:[!1,eh.BOOLEAN],dropOnElement:[!0,eh.BOOLEAN],dropValidation:[!1,eh.BOOLEAN],ignoredFiles:[[".ds_store","thumbs.db","desktop.ini"],eh.ARRAY],instantUpload:[!0,eh.BOOLEAN],maxParallelUploads:[2,eh.INT],allowMinimumUploadDuration:[!0,eh.BOOLEAN],chunkUploads:[!1,eh.BOOLEAN],chunkForce:[!1,eh.BOOLEAN],chunkSize:[5e6,eh.INT],chunkRetryDelays:[[500,1e3,3e3],eh.ARRAY],server:[null,eh.SERVER_API],fileSizeBase:[1e3,eh.INT],labelFileSizeBytes:["bytes",eh.STRING],labelFileSizeKilobytes:["KB",eh.STRING],labelFileSizeMegabytes:["MB",eh.STRING],labelFileSizeGigabytes:["GB",eh.STRING],labelDecimalSeparator:[em(),eh.STRING],labelThousandsSeparator:[(t=em(),"1000"!==(n=1e3.toLocaleStr
1ing())?ev(n)[0]:"."===t?",":"."),eh.STRING],labelIdle:['Drag & Drop your files or <span class="filepond--label-action">Browse</span>',eh.STRING],labelInvalidField:["Field contains invalid files",eh.STRING],labelFileWaitingForSize:["Waiting for size",eh.STRING],labelFileSizeNotAvailable:["Size not available",eh.STRING],labelFileCountSingular:["file in list",eh.STRING],labelFileCountPlural:["files in list",eh.STRING],labelFileLoading:["Loading",eh.STRING],labelFileAdded:["Added",eh.STRING],labelFileLoadError:["Error during load",eh.STRING],labelFileRemoved:["Removed",eh.STRING],labelFileRemoveError:["Error during remove",eh.STRING],labelFileProcessing:["Uploading",eh.STRING],labelFileProcessingComplete:["Upload complete",eh.STRING],labelFileProcessingAborted:["Upload cancelled",eh.STRING],labelFileProcessingError:["Error during upload",eh.STRING],labelFileProcessingRevertError:["Error during revert",eh.STRING],labelTapToCancel:["tap to cancel",eh.STRING],labelTapToRetry:["tap to retry",eh.STRING],labelTapToUndo:["tap to undo",eh.STRING],labelButtonRemoveItem:["Remove",eh.STRING],labelButtonAbortItemLoad:["Abort",eh.STRING],labelButtonRetryItemLoad:["Retry",eh.STRING],labelButtonAbortItemProcessing:["Cancel",eh.STRING],labelButtonUndoItemProcessing:["
1Undo",eh.STRING],labelButtonRetryItemProcessing:["Retry",eh.STRING],labelButtonProcessItem:["Upload",eh.STRING],iconRemove:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M11.586 13l-2.293 2.293a1 1 0 0 0 1.414 1.414L13 14.414l2.293 2.293a1 1 0 0 0 1.414-1.414L14.414 13l2.293-2.293a1 1 0 0 0-1.414-1.414L13 11.586l-2.293-2.293a1 1 0 0 0-1.414 1.414L11.586 13z" fill="currentColor" fill-rule="nonzero"/></svg>',eh.STRING],iconProcess:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M14 10.414v3.585a1 1 0 0 1-2 0v-3.585l-1.293 1.293a1 1 0 0 1-1.414-1.415l3-3a1 1 0 0 1 1.414 0l3 3a1 1 0 0 1-1.414 1.415L14 10.414zM9 18a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2H9z" fill="currentColor" fill-rule="evenodd"/></svg>',eh.STRING],iconRetry:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M10.81 9.185l-.038.02A4.997 4.997 0 0 0 8 13.683a5 5 0 0 0 5 5 5 5 0 0 0 5-5 1 1 0 0 1 2 0A7 7 0 1 1 9.722 7.496l-.842-.21a.999.999 0 1 1 .484-1.94l3.23.806c.535.133.86.675.73 1.21l-.804 3.233a.997.997 0 0 1-1.21.73.997.997 0 0 1-.73-1.21l.23-.928v-.002z" fill="currentColor" fill-rule="nonzero"/></svg>',eh.STRING],iconUndo:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M9.185 10.81l.02-.038A4.997 4.997 0 0 1 13.683 8a5 5 0 0 1 5 5 5 5 0 0 1-5 5 1 1 0 0 0 0 2A7 7 0 1 0 7.496 9.722l-.21-.842a.999.999 0 1 0-1.94.484l.806 3.23c.133.535.675.86 1.21.73l3.233-.803a.997.997 0 0 0 .73-1.21.997.997 0 0 0-1.21-.73l-.928.23-.002-.001z" fill="currentColor" fill-rule="nonzero"/></svg>',eh.STRING],iconDone:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M18.293 9.293a1 1 0 0 1 1.414 1.414l-7.002 7a1 1 0 0 1-1.414 0l-3.998-4a1 1 0 1 1 1.414-1.414L12 15.586l6.294-6.293z" fill="currentColor" fill-rule="nonzero"/></svg>',eh.STRING],oninit:[null,eh.FUNCTION],onwarning:[null,eh.FUNCTION],onerror:[null,eh.FUNCTION],onactivatefile:[null,eh.FUNCTION],oninitfile:[null,eh.FUNCTION],onaddfilestart:[null,eh.FUNCTION],onaddfileprogress:[null,eh.FUNCTION],onaddfile:[null,eh.FUNCTION],onprocessfilestart:[null,eh.FUNCTION],onprocessfileprogress:[null,eh.FUNCTION],onprocessfileabort:[null,eh.FUNCTION],onprocessfilerevert:[null,eh.FUNCTION],onprocessfile:[null,eh.FUNCTION],onprocessfiles:[null,eh.FUNCTION],onremovefile:[null,eh.FUNCTION],onpreparefile:[null,eh.FUNCTION],onupdatefiles:[null,eh.FUNCTION],onreorderfiles:[null,eh.FUNCTION],beforeDropFile:[null,eh.FUNCTION],beforeAddFile:[null,eh.FUNCTION],beforeRemoveFile:[null,eh.FUNCTION],beforePrepareFile:[null,eh.FUNCTION],stylePanelLayout:[null,eh.STRING],stylePanelAspectRatio:[null,eh.STRING],styleItemPanelAspectRatio:[null,eh.STRING],styleButtonRemoveItemPosition:["left",eh.STRING],styleButtonProcessItemPosition:["right",eh.STRING],styleLoadIndicatorPosition:["right",eh.STRING],styleProgressIndicatorPosition:["right",eh.STRING],styleButtonRemoveItemAlign:[!1,eh.BOOLEAN],files:[[],eh.ARRAY],credits:[["https://pqina.nl/","Powered by PQINA"],eh.ARRAY]},eb=function(e,t){return G(t)?e[0]||null:j(t)?e[t]||null:("object"==typeof t&&(t=t.id),e.find(function(e){return e.id===t})||null)},eL=function(e){if(G(e))return e;if(/:/.test(e)){var t=e.split(":");return t[1]/t[0]}return parseFloat(e)},eP=function(e){return e.filter(function(e){return!e.archived})},eM={EMPTY:0,IDLE:1,ERROR:2,BUSY:3,READY:4},eC=null,ew=function(){if(null===eC)try{var e=new DataTransfer;e.items.add(new File(["hello world"],"This_Works.txt"));var t=document.createElement("input");t.setAttribute("type","file"),t.files=e.files,eC=1===t.files.length}catch(e){eC=!1}return eC},eN=[eT.LOAD_ERROR,eT.PROCESSING_ERROR,eT.PROCESSING_REVERT_ERROR],eG=[eT.LOADING,eT.PROCESSING,eT.PROCESSING_QUEUED,eT.INIT],eU=[eT.PROCESSING_COMPLETE],eB=function(e){return eN.includes(e.status)},eF=function(e){return eG.includes(e.status)},eq=function(e){return eU.includes(e.status)},eV=function(e){return K(e.options.server)&&(K(e.options.server.process)||X(e.options.server.process))}
vendor: 3,089 bytes, line 1
1,ex=function(e){return{GET_STATUS:function(){var t=eP(e.items),n=eM.EMPTY,r=eM.ERROR,o=eM.BUSY,i=eM.IDLE,a=eM.READY;return 0===t.length?n:t.some(eB)?r:t.some(eF)?o:t.some(eq)?a:i},GET_ITEM:function(t){return eb(e.items,t)},GET_ACTIVE_ITEM:function(t){return eb(eP(e.items),t)},GET_ACTIVE_ITEMS:function(){return eP(e.items)},GET_ITEMS:function(){return e.items},GET_ITEM_NAME:function(t){var n=eb(e.items,t);return n?n.filename:null},GET_ITEM_SIZE:function(t){var n=eb(e.items,t);return n?n.fileSize:null},GET_STYLES:function(){return Object.keys(e.options).filter(function(e){return/^style/.test(e)}).map(function(t){return{name:t,value:e.options[t]}})},GET_PANEL_ASPECT_RATIO:function(){return/circle/.test(e.options.stylePanelLayout)?1:eL(e.options.stylePanelAspectRatio)},GET_ITEM_PANEL_ASPECT_RATIO:function(){return e.options.styleItemPanelAspectRatio},GET_ITEMS_BY_STATUS:function(t){return eP(e.items).filter(function(e){return e.status===t})},GET_TOTAL_ITEMS:function(){return eP(e.items).length},SHOULD_UPDATE_FILE_INPUT:function(){return e.options.storeAsFile&&ew()&&!eV(e)},IS_ASYNC:function(){return eV(e)},GET_FILE_SIZE_LABELS:function(e){return{labelBytes:e("GET_LABEL_FILE_SIZE_BYTES")||void 0,labelKilobytes:e("GET_LABEL_FILE_SIZE_KILOBYTES")||void 0,labelMegabytes:e("GET_LABEL_FILE_SIZE_MEGABYTES")||void 0,labelGigabytes:e("GET_LABEL_FILE_SIZE_GIGABYTES")||void 0}}}},eY=function(e){var t=eP(e.items).length;if(!e.options.allowMultiple)return 0===t;var n=e.options.maxFiles;return null===n||!!(t<n)},ek=function(e,t,n){return Math.max(Math.min(n,e),t)},ej=function(e,t,n){var r;return G(t)?null:void 0===n?(e.push(t),t):(n=ek(n,0,e.length),r=n,e.splice(r,0,t),t)},eH=function(e){return/^\s*data:([a-z]+\/[a-z0-9-+.]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s]*)\s*$/i.test(e)},eX=function(e){return(""+e).split("/").pop().split("?").shift()},eW=function(e){return e.split(".").pop()},ez=function(e){if("string"!=typeof e)return"";var t=e.split("/").pop();return/svg/.test(t)?"svg":/zip|compressed/.test(t)?"zip":/plain/.test(t)?"txt":/msword/.test(t)?"doc":/[a-z]+/.test(t)?"jpeg"===t?"jpg":t:""},eQ=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(t+e).slice(-t.length)},eZ=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return e.getFullYear()+"-"+eQ(e.getMonth()+1,"00")+"-"+eQ(e.getDate(),"00")+"_"+eQ(e.getHours(),"00")+"-"+eQ(e.getMinutes(),"00")+"-"+eQ(e.getSeconds(),"00")},eK=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o="string"==typeof n?e.slice(0,e.size,n):e.slice(0,e.size,e.type);return o.lastModifiedDate=new Date,e._relativePath&&(o._relativePath=e._relativePath),V(t)||(t=eZ()),t&&null===r&&eW(t)?o.name=t:(r=r||ez(o.type),o.name=t+(r?"."+r:"")),o},e$=function(e,t){var n=window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder;if(n){var r=new n;return r.append(e),r.getBlob(t)}return new Blob([e],{type:t})}
1,eJ=function(e,t){for(var n=new ArrayBuffer(e.length),r=new Uint8Array(n),o=0;o<e.length;o++)r[o]=e.charCodeAt(o);return e$(n,t)},e0=function(e){return(/^data:(.+);/.exec(e)||[])[1]||null},e1=function(e){var t=e0(e);return eJ(atob(e.split(",")[1].replace(/\s/g,"")),t)},e2=function(e){if(!/^content-disposition:/i.test(e))return null;var t=e.split(/filename=|filename\*=.+''/).splice(1).map(function(e){return e.trim().replace(/^["']|[;"']{0,2}$/g,"")}).filter(function(e){return e.length});return t.length?decodeURI(t[t.length-1]):null},e3=function(e){if(/content-length:/i.test(e)){var t=e.match(/[0-9]+/)[0];return t?parseInt(t,10):null}return null},e9=function(e){var t={source:null,name:null,size:null},n=e.split("\n"),r=!0,o=!1,i=void 0;try{for(var a,s=n[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var u=a.value,l=e2(u);if(l){t.name=l;continue}var c=e3(u);if(c){t.size=c;continue}var f=/x-content-transfer-id:/i.test(u)&&(u.split(":")[1]||"").trim()||null;if(f){t.source=f;continue}}}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return t},e5=function(e){var t={source:null,complete:!1,progress:0,size:null,timestamp:null,duration:0,request:null},n=function(n){e?(t.timestamp=Date.now(),t.request=e(n,function(e){t.duration=Date.now()-t.timestamp,t.complete=!0,e instanceof Blob&&(e=eK(e,e.name||eX(n))),r.fire("load",e instanceof Blob?e:e?e.body:null)},function(e){r.fire("error","string"==typeof e?{type:"error",code:0,body:e}:e)},function(e,n,o){if(o&&(t.size=o),t.duration=Date.now()-t.timestamp,!e){t.progress=null;return}t.progress=n/o,r.fire("progress",t.progress)},function(){r.fire("abort")},function(e){var n=e9("string"==typeof e?e:e.headers);r.fire("meta",{size:t.size||n.size,filename:n.name,source:n.source})})):r.fire("error",{type:"error",body:"Can't load URL",code:400})},r=Object.assign({},ef(),{setSource:function(e){return t.source=e},getProgress:function(){return t.progress},abort:function(){t.request&&t.request.abort&&t.request.abort()},load:function(){var e=t.source;(r.fire("init",e),e instanceof File)?r.fire("load",e):e instanceof Blob?r.fire("load",eK(e,e.name)):eH(e)?r.fire("load",eK(e1(e),void 0,null,void 0)):n(e)}});return r},e4=function(e){return/GET|HEAD/.test(e)},e6=function(e,t,n){var r={onheaders:function(){},onprogress:function(){},onload:function(){},ontimeout:function(){},onerror:function(){},onabort:function(){},abort:function(){o=!0,a.abort()}},o=!1,i=!1;n=Object.assign({method:"POST",headers:{},withCredentials:!1},n),t=encodeURI(t),e4(n.method)&&e&&(t=""+t+encodeURIComponent("string"==typeof e?e:JSON.stringify(e)));var a=new XMLHttpRequest;return(e4(n.method)?a:a.upload).onprogress=function(e){o||r.onprogress(e.lengthComputable,e.loaded,e.total)},a.onreadystatechange=function(){a.readyState<2||4===a.readyState&&0===a.status||i||(i=!0,r.onheaders(a))},a.onload=function(){a.status>=200&&a.status<300?r.onload(a):r.onerror(a)},a.onerror=function(){return r.onerror(a)},a.onabort=function(){o=!0,r.onabort()},a.ontimeout=function(){return r.ontimeout(a)},a.open(n.method,t,!0),j(n.timeout)&&(a.timeout=n.timeout),Object.keys(n.headers).forEach(function(e){var t=unescape(encodeURIComponent(n.headers[e]));a.setRequestHeader(e,t)}),n.responseType&&(a.responseType=n.responseType),n.withCredentials&&(a.withCredentials=!0),a.send(e),r},e7=function(e,t,n,r){return{type:e,code:t,body:n,headers:r}},e8=function(e){return function(t){e(e7("error",0,"Timeout",t.getAllResponseHeaders()))}},te=function(e){return/\?/.test(e)},tt=function(){for(var e="",t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){e+=te(e)&&te(t)?t.replace(/\?/,"&"):t}),e},tn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("function"==typeof t)return t;if(!t||!V(t.url))return null;var n=t.onload||function(e){return e},r=t.onerror||function(e){return null};return function(o,i,a,s,u,l){var c=e6(o,tt(e,t.url),Object.assign({},t,{responseType:"blob"}));return c.onload=function(e){var r=e.getAllResponseHeaders(),a=e9(r).name||eX(o);i(e7("load",e.status,"HEAD"===t.method?null:eK(n(e.response),a),r))},c.onerror=function(e){a(e7("error",e.status,r(e.response)||e.statusText,e.getAllResponseHeaders()))}
1,c.onheaders=function(e){l(e7("headers",e.status,null,e.getAllResponseHeaders()))},c.ontimeout=e8(a),c.onprogress=s,c.onabort=u,c}},tr=function(e,t,n,r,o,i,a,s,u,l,c){for(var f,d,p,E,_,T,I,v,m=[],h=c.chunkTransferId,g=c.chunkServer,R=c.chunkSize,O=c.chunkRetryDelays,y={serverId:h,aborted:!1},D=t.ondata||function(e){return e},S=t.onload||function(e,t){return"HEAD"===t?e.getResponseHeader("Upload-Offset"):e.response},A=t.onerror||function(e){return null},b=Math.floor(r.size/R),L=0;L<=b;L++){var P=L*R,M=r.slice(P,P+R,"application/offset+octet-stream");m[L]={index:L,size:M.size,offset:P,data:M,file:r,progress:0,retries:eu(O),status:0,error:null,request:null,timeout:null}}var C=function(e){return 0===e.status||3===e.status},w=function(t){if(!y.aborted){if(!(t=t||m.find(C))){m.every(function(e){return 1===e.status})&&i(y.serverId);return}t.status=2,t.progress=null;var n=g.ondata||function(e){return e},o=g.onerror||function(e){return null},s=g.onload||function(){},l=tt(e,g.url,y.serverId),c="function"==typeof g.headers?g.headers(t):Object.assign({},g.headers,{"Content-Type":"application/offset+octet-stream","Upload-Offset":t.offset,"Upload-Length":r.size,"Upload-Name":r.name}),f=t.request=e6(n(t.data),l,Object.assign({},g,{headers:c}));f.onload=function(e){s(e,t.index,m.length),t.status=1,t.request=null,U()},f.onprogress=function(e,n,r){t.progress=e?n:null,G()},f.onerror=function(e){t.status=3,t.request=null,t.error=o(e.response)||e.statusText,N(t)||a(e7("error",e.status,o(e.response)||e.statusText,e.getAllResponseHeaders()))},f.ontimeout=function(e){t.status=3,t.request=null,N(t)||e8(a)(e)},f.onabort=function(){t.status=0,t.request=null,u()}}},N=function(e){return 0!==e.retries.length&&(e.status=4,clearTimeout(e.timeout),e.timeout=setTimeout(function(){w(e)},e.retries.shift()),!0)},G=function(){var e=m.reduce(function(e,t){return null===e||null===t.progress?null:e+t.progress},0);if(null===e)return s(!1,0,0);s(!0,e,m.reduce(function(e,t){return e+t.size},0))},U=function(){m.filter(function(e){return 2===e.status}).length>=1||w()},B=function(){m.forEach(function(e){clearTimeout(e.timeout),e.request&&e.request.abort()})};return y.serverId?(f=function(e){y.aborted||(m.filter(function(t){return t.offset<e}).forEach(function(e){e.status=1,e.progress=e.size}),U())},(p=e6(null,tt(e,g.url,y.serverId),d={headers:"function"==typeof t.headers?t.headers(y.serverId):Object.assign({},t.headers),method:"HEAD"})).onload=function(e){return f(S(e,d.method))},p.onerror=function(e){return a(e7("error",e.status,A(e.response)||e.statusText,e.getAllResponseHeaders()))},p.ontimeout=e8(a)):(E=function(e){y.aborted||(l(e),y.serverId=e,U())},_=new FormData,K(o)&&_.append(n,JSON.stringify(o)),T="function"==typeof t.headers?t.headers(r,o):Object.assign({},t.headers,{"Upload-Length":r.size}),I=Object.assign({},t,{headers:T}),(v=e6(D(_),tt(e,t.url),I)).onload=function(e){return E(S(e,I.method))},v.onerror=function(e){return a(e7("error",e.status,A(e.response)||e.statusText,e.getAllResponseHeaders()))},v.ontimeout=e8(a)),{abort:function(){y.aborted=!0,B()}}},to=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return"function"==typeof t?function(){for(var e=arguments.length,o=Array(e),i=0;i<e;i++)o[i]=arguments[i];return t.apply(void 0,[n].concat(o,[r]))}:t&&V(t.url)?function(o,i,a,s,u,l,c){if(o){var f=r.chunkUploads,d=f&&o.size>r.chunkSize,p=f&&(d||r.chunkForce);if(o instanceof Blob&&p)return tr(e,t,n,o,i,a,s,u,l,c,r);var E=t.ondata||function(e){return e},_=t.onload||function(e){return e},T=t.onerror||function(e){return null},I="function"==typeof t.headers?t.headers(o,i)||{}:Object.assign({},t.headers),v=Object.assign({},t,{headers:I}),m=new FormData;K(i)&&m.append(n,JSON.stringify(i)),(o instanceof Blob?[{name:null,file:o}]:o).forEach(function(e){m.append(n,e.file,null===e.name?e.file.name:""+e.name+e.file.name)});var h=e6(E(m),tt(e,t.url),v);return h.onload=function(e){a(e7("load",e.status,_(e.response),e.getAllResponseHeaders()))},h.onerror=function(e){s(e7("error",e.status,T(e.response)||e.statusText,e.getAllResponseHeaders()))},h.ontimeout=e8(s),h.onprogress=u,h.onabort=l,h}}:null},ti=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("function"==typeof t)return t;if(!t||!V(t.url))return function(e,t){return t()};var n=t.onload||function(e){return e},r=t.onerror||function(e){return null};
vendor: 7,770 bytes, line 1
1return function(o,i,a){var s=e6(o,e+t.url,t);return s.onload=function(e){i(e7("load",e.status,n(e.response),e.getAllResponseHeaders()))},s.onerror=function(e){a(e7("error",e.status,r(e.response)||e.statusText,e.getAllResponseHeaders()))},s.ontimeout=e8(a),s}},ta=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e+Math.random()*(t-e)},ts=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;arguments.length>2&&void 0!==arguments[2]&&arguments[2];var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:25,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:250,o=null,i=Date.now();return t>0&&function a(){var s=Date.now()-i,u=ta(n,r);s+u>t&&(u=s+u-t);var l=s/t;l>=1||document.hidden?e(1):(e(l),o=setTimeout(a,u))}(),{clear:function(){clearTimeout(o)}}},tu=function(e,t){var n={complete:!1,perceivedProgress:0,perceivedPerformanceUpdater:null,progress:null,timestamp:null,perceivedDuration:0,duration:0,request:null,response:null},r=t.allowMinimumUploadDuration,o=function(){n.request&&(n.perceivedPerformanceUpdater.clear(),n.request.abort&&n.request.abort(),n.complete=!0)},i=r?function(){return n.progress?Math.min(n.progress,n.perceivedProgress):null}:function(){return n.progress||null},a=r?function(){return Math.min(n.duration,n.perceivedDuration)}:function(){return n.duration},s=Object.assign({},ef(),{process:function(t,o){var i=function(){0!==n.duration&&null!==n.progress&&s.fire("progress",s.getProgress())},a=function(){n.complete=!0,s.fire("load-perceived",n.response.body)};s.fire("start"),n.timestamp=Date.now(),n.perceivedPerformanceUpdater=ts(function(e){n.perceivedProgress=e,n.perceivedDuration=Date.now()-n.timestamp,i(),n.response&&1===n.perceivedProgress&&!n.complete&&a()},r?ta(750,1500):0),n.request=e(t,o,function(e){n.response=K(e)?e:{type:"load",code:200,body:""+e,headers:{}},n.duration=Date.now()-n.timestamp,n.progress=1,s.fire("load",n.response.body),(!r||r&&1===n.perceivedProgress)&&a()},function(e){n.perceivedPerformanceUpdater.clear(),s.fire("error",K(e)?e:{type:"error",code:0,body:""+e})},function(e,t,r){n.duration=Date.now()-n.timestamp,n.progress=e?t/r:null,i()},function(){n.perceivedPerformanceUpdater.clear(),s.fire("abort",n.response?n.response.body:null)},function(e){s.fire("transfer",e)})},abort:o,getProgress:i,getDuration:a,reset:function(){o(),n.complete=!1,n.perceivedProgress=0,n.progress=0,n.timestamp=null,n.perceivedDuration=0,n.duration=0,n.request=null,n.response=null}});return s},tl=function(e){return e.substring(0,e.lastIndexOf("."))||e},tc=function(e){var t=[e.name,e.size,e.type];return e instanceof Blob||eH(e)?t[0]=e.name||eZ():eH(e)?(t[1]=e.length,t[2]=e0(e)):V(e)&&(t[0]=eX(e),t[1]=0,t[2]="application/octet-stream"),{name:t[0],size:t[1],type:t[2]}},tf=function(e){return!!(e instanceof File||e instanceof Blob&&e.name)},td=function e(t){if(!K(t))return t;var n=N(t)?[]:{};for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];n[r]=o&&K(o)?e(o):o}return n},tp=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=ei(),o={archived:!1,frozen:!1,released:!1,source:null,file:n,serverFileReference:t,transferId:null,processingAborted:!1,status:t?eT.PROCESSING_COMPLETE:eT.INIT,activeLoader:null,activeProcessor:null},i=null,a={},u=function(e){return o.status=e},l=function(e){if(!o.released&&!o.frozen){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];f.fire.apply(f,[e].concat(n))}},c=function(e,t,n){var r=e.split("."),o=r[0],i=r.pop(),s=a;r.forEach(function(e){return s=s[e]}),JSON.stringify(s[i])!==JSON.stringify(t)&&(s[i]=t,l("metadata-update",{key:o,value:a[o],silent:n}))},f=Object.assign({id:{get:function(){return r}},origin:{get:function(){return e},set:function(t){return e=t}},serverId:{get:function(){return o.serverFileReference}},transferId:{get:function(){return o.transferId}},status:{get:function(){return o.status}},filename:{get:function(){return o.file.name}},filenameWithoutExtension:{get:function(){return tl(o.file.name)}},fileExtension:{get:function(){return eW(o.file.name)}},fileType:{get:function(){return o.file.type}},fileSize:{get:function(){return o.file.size}},file:{get:function(){return o.file}},relativePath:{get:function(){return o.file._relativePath}},source:{get:function(){return o.source}},getMetadata:function(e){return td(e?a[e]:a)},setMetadata:function(e,t,n){return K(e)?(Object.keys(e).forEach(function(n){c(n,e[n],t)}),e):(c(e,t,n),t)},extend:function(e,t){return d[e]=t},abortLoad:function(){o.activeLoader?o.activeLoader.abort():(u(eT.INIT),l("load-abort"))},retryLoad:function(){o.activeLoader&&o.activeLoader.load()},requestProcessing:function(){o.processingAborted=!1,u(eT.PROCESSING_QUEUED)},abortProcessing:function(){return new Promise(function(e){if(!o.activeProcessor){o.processingAborted=!0,u(eT.IDLE),l("process-abort"),e();return}i=function(){e()},o.activeProcessor.abort()})},load:function(t,n,r){(o.source=t,f.fireSync("init"),o.file)?f.fireSync("load-skip"):(o.file=tc(t),n.on("init",function(){l("load-init")}),n.on("meta",function(t){o.file.size=t.size,o.file.filename=t.filename,t.source&&(e=eI.LIMBO,o.serverFileReference=t.source,o.status=eT.PROCESSING_COMPLETE),l("load-meta")}),n.on("progress",function(e){u(eT.LOADING),l("load-progress",e)}),n.on("error",function(e){u(eT.LOAD_ERROR),l("load-request-error",e)}),n.on("abort",function(){u(eT.INIT),l("load-abort")}),n.on("load",function(t){o.activeLoader=null;var n=function(t){o.file=tf(t)?t:o.file,e===eI.LIMBO&&o.serverFileReference?u(eT.PROCESSING_COMPLETE):u(eT.IDLE),l("load")};o.serverFileReference?n(t):r(t,n,function(e){o.file=t,l("load-meta"),u(eT.LOAD_ERROR),l("load-file-error",e)})}),n.setSource(t),o.activeLoader=n,n.load())},process:function e(t,n){if(o.processingAborted){o.processingAborted=!1;return}if(u(eT.PROCESSING),i=null,!(o.file instanceof Blob))return void f.on("load",function(){e(t,n)});t.on("load",function(e){o.transferId=null,o.serverFileReference=e}),t.on("transfer",function(e){o.transferId=e}),t.on("load-perceived",function(e){o.activeProcessor=null,o.transferId=null,o.serverFileReference=e,u(eT.PROCESSING_COMPLETE),l("process-complete",e)}),t.on("start",function(){l("process-start")}),t.on("error",function(e){o.activeProcessor=null,u(eT.PROCESSING_ERROR),l("process-error",e)}),t.on("abort",function(e){o.activeProcessor=null,o.serverFileReference=e,u(eT.IDLE),l("process-abort"),i&&i()}),t.on("progress",function(e){l("process-progress",e)});var r=console.error;n(o.file,function(e){o.archived||t.process(e,Object.assign({},a))},r),o.activeProcessor=t},revert:function(e,t){return new Promise(function(n,r){var i=null!==o.serverFileReference?o.serverFileReference:o.transferId;null===i?n():(e(i,function(){o.serverFileReference=null,o.transferId=null,n()},function(e){t?(u(eT.PROCESSING_REVERT_ERROR),l("process-revert-error"),r(e)):n()}),u(eT.IDLE),l("process-revert"))})}},ef(),{freeze:function(){return o.frozen=!0},release:function(){return o.released=!0},released:{get:function(){return o.released}},archive:function(){return o.archived=!0},archived:{get:function(){return o.archived}},setFile:function(e){return o.file=e}}),d=s(f);return d},tE=function(e,t){var n=G(t)?0:V(t)?e.findIndex(function(e){return e.id===t}):-1;if(!(n<0))return e[n]||null},t_=function(e,t,n,r,o,i){var a=e6(null,e,{method:"GET",responseType:"blob"});return a.onload=function(n){var r=n.getAllResponseHeaders(),o=e9(r).name||eX(e);t(e7("load",n.status,eK(n.response,o),r))},a.onerror=function(e){n(e7("error",e.status,e.statusText,e.getAllResponseHeaders()))}
1,a.onheaders=function(e){i(e7("headers",e.status,null,e.getAllResponseHeaders()))},a.ontimeout=e8(n),a.onprogress=r,a.onabort=o,a},tT=function(e){return 0===e.indexOf("//")&&(e=location.protocol+e),e.toLowerCase().replace("blob:","").replace(/([a-z])?:\/\//,"$1").split("/")[0]},tI=function(e){return function(){return X(e)?e.apply(void 0,arguments):e}},tv=function(e,t){clearTimeout(t.listUpdateTimeout),t.listUpdateTimeout=setTimeout(function(){e("DID_UPDATE_ITEMS",{items:eP(t.items)})},0)},tm=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new Promise(function(t){if(!e)return t(!0);var r=e.apply(void 0,n);return null==r?t(!0):"boolean"==typeof r?t(r):void("function"==typeof r.then&&r.then(t))})},th=function(e,t){e.items.sort(function(e,n){return t(eE(e),eE(n))})},tg=function(e,t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.query,o=n.success,i=n.failure,a=void 0===i?function(){}:i,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(n,["query","success","failure"]),u=eb(e.items,r);u?t(u,void 0===o?function(){}:o,a,s||{}):a({error:e7("error",0,"Item not found"),file:null})}},tR=function(e,t,n){return{ABORT_ALL:function(){eP(n.items).forEach(function(e){e.freeze(),e.abortLoad(),e.abortProcessing()})},DID_SET_FILES:function(t){var r=t.value,o=(void 0===r?[]:r).map(function(e){return{source:e.source?e.source:e,options:e.options}}),i=eP(n.items);i.forEach(function(t){o.find(function(e){return e.source===t.source||e.source===t.file})||e("REMOVE_ITEM",{query:t,remove:!1})}),i=eP(n.items),o.forEach(function(t,n){i.find(function(e){return e.source===t.source||e.file===t.source})||e("ADD_ITEM",Object.assign({},t,{interactionMethod:5,index:n}))})},DID_UPDATE_ITEM_METADATA:function(r){var o=r.id,i=r.action,a=r.change;a.silent||(clearTimeout(n.itemUpdateTimeout),n.itemUpdateTimeout=setTimeout(function(){var r,s,u=tE(n.items,o);if(!t("IS_ASYNC"))return void eR("SHOULD_PREPARE_OUTPUT",!1,{item:u,query:t,action:i,change:a}).then(function(n){var r=t("GET_BEFORE_PREPARE_FILE");r&&(n=r(u,n)),n&&e("REQUEST_PREPARE_OUTPUT",{query:o,item:u,success:function(t){e("DID_PREPARE_OUTPUT",{id:o,file:t})}},!0)});u.origin===eI.LOCAL&&e("DID_LOAD_ITEM",{id:u.id,error:null,serverFileReference:u.source});var l=function(){setTimeout(function(){e("REQUEST_ITEM_PROCESSING",{query:o})},32)};u.status===eT.PROCESSING_COMPLETE?(r=n.options.instantUpload,u.revert(ti(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then(r?l:function(){}).catch(function(){})):u.status===eT.PROCESSING?(s=n.options.instantUpload,u.abortProcessing().then(s?l:function(){})):n.options.instantUpload&&l()},0))},MOVE_ITEM:function(e){var t=e.query,r=e.index,o=eb(n.items,t);if(o){var i=n.items.indexOf(o);i!==(r=ek(r,0,n.items.length-1))&&n.items.splice(r,0,n.items.splice(i,1)[0])}},SORT:function(r){th(n,r.compare),e("DID_SORT_ITEMS",{items:t("GET_ACTIVE_ITEMS")})},ADD_ITEMS:function(n){var r=n.items,o=n.index,i=n.interactionMethod,a=n.success,s=n.failure,u=o;if(-1===o||void 0===o){var l=t("GET_ITEM_INSERT_LOCATION"),c=t("GET_TOTAL_ITEMS");u="before"===l?0:c}var f=t("GET_IGNORED_FILES");Promise.all(r.filter(function(e){return tf(e)?!f.includes(e.name.toLowerCase()):!G(e)}).map(function(t){return new Promise(function(n,r){e("ADD_ITEM",{interactionMethod:i,source:t.source||t,success:n,failure:r,index:u++,options:t.options||{}})})})).then(void 0===a?function(){}:a).catch(void 0===s?function(){}:s)},ADD_ITEM:function(r){var o=r.source,i=r.index,a=void 0===i?-1:i,s=r.interactionMethod,u=r.success,l=void 0===u?function(){}:u,c=r.failure,f=void 0===c?function(){}:c,d=r.options,p=void 0===d?{}:d;if(G(o))return void f({error:e7("error",0,"No source"),file:null});if(!(tf(o)&&n.options.ignoredFiles.includes(o.name.toLowerCase()))){if(!eY(n)){if
1(n.options.allowMultiple||!n.options.allowMultiple&&!n.options.allowReplace){var E,_=e7("warning",0,"Max files");e("DID_THROW_MAX_FILES",{source:o,error:_}),f({error:_,file:null});return}var T=eP(n.items)[0];if(T.status===eT.PROCESSING_COMPLETE||T.status===eT.PROCESSING_REVERT_ERROR){var I=t("GET_FORCE_REVERT");if(T.revert(ti(n.options.server.url,n.options.server.revert),I).then(function(){I&&e("ADD_ITEM",{source:o,index:a,interactionMethod:s,success:l,failure:f,options:p})}).catch(function(){}),I)return}e("REMOVE_ITEM",{query:T.id})}var v="local"===p.type?eI.LOCAL:"limbo"===p.type?eI.LIMBO:eI.INPUT,m=tp(v,v===eI.INPUT?null:o,p.file);Object.keys(p.metadata||{}).forEach(function(e){m.setMetadata(e,p.metadata[e])}),eO("DID_CREATE_ITEM",m,{query:t,dispatch:e});var h=t("GET_ITEM_INSERT_LOCATION");n.options.itemInsertLocationFreedom||(a="before"===h?-1:n.items.length),ej(n.items,m,a),X(h)&&o&&th(n,h);var g=m.id;m.on("init",function(){e("DID_INIT_ITEM",{id:g})}),m.on("load-init",function(){e("DID_START_ITEM_LOAD",{id:g})}),m.on("load-meta",function(){e("DID_UPDATE_ITEM_META",{id:g})}),m.on("load-progress",function(t){e("DID_UPDATE_ITEM_LOAD_PROGRESS",{id:g,progress:t})}),m.on("load-request-error",function(t){var r=tI(n.options.labelFileLoadError)(t);if(t.code>=400&&t.code<500){e("DID_THROW_ITEM_INVALID",{id:g,error:t,status:{main:r,sub:t.code+" ("+t.body+")"}}),f({error:t,file:eE(m)});return}e("DID_THROW_ITEM_LOAD_ERROR",{id:g,error:t,status:{main:r,sub:n.options.labelTapToRetry}})}),m.on("load-file-error",function(t){e("DID_THROW_ITEM_INVALID",{id:g,error:t.status,status:t.status}),f({error:t.status,file:eE(m)})}),m.on("load-abort",function(){e("REMOVE_ITEM",{query:g})}),m.on("load-skip",function(){m.on("metadata-update",function(t){tf(m.file)&&e("DID_UPDATE_ITEM_METADATA",{id:g,change:t})}),e("COMPLETE_LOAD_ITEM",{query:g,item:m,data:{source:o,success:l}})}),m.on("load",function(){var r=function(r){r?(m.on("metadata-update",function(t){e("DID_UPDATE_ITEM_METADATA",{id:g,change:t})}),eR("SHOULD_PREPARE_OUTPUT",!1,{item:m,query:t}).then(function(r){var i=t("GET_BEFORE_PREPARE_FILE");i&&(r=i(m,r));var a=function(){e("COMPLETE_LOAD_ITEM",{query:g,item:m,data:{source:o,success:l}}),tv(e,n)};r?e("REQUEST_PREPARE_OUTPUT",{query:g,item:m,success:function(t){e("DID_PREPARE_OUTPUT",{id:g,file:t}),a()}},!0):a()})):e("REMOVE_ITEM",{query:g})};eR("DID_LOAD_ITEM",m,{query:t,dispatch:e}).then(function(){tm(t("GET_BEFORE_ADD_FILE"),eE(m)).then(r)}).catch(function(t){if(!t||!t.error||!t.status)return r(!1);e("DID_THROW_ITEM_INVALID",{id:g,error:t.error,status:t.status})})}),m.on("process-start",function(){e("DID_START_ITEM_PROCESSING",{id:g})}),m.on("process-progress",function(t){e("DID_UPDATE_ITEM_PROCESS_PROGRESS",{id:g,progress:t})}),m.on("process-error",function(t){e("DID_THROW_ITEM_PROCESSING_ERROR",{id:g,error:t,status:{main:tI(n.options.labelFileProcessingError)(t),sub:n.options.labelTapToRetry}})}),m.on("process-revert-error",function(t){e("DID_THROW_ITEM_PROCESSING_REVERT_ERROR",{id:g,error:t,status:{main:tI(n.options.labelFileProcessingRevertError)(t),sub:n.options.labelTapToRetry}})}),m.on("process-complete",function(t){e("DID_COMPLETE_ITEM_PROCESSING",{id:g,error:null,serverFileReference:t}),e("DID_DEFINE_VALUE",{id:g,value:t})}),m.on("process-abort",function(){e("DID_ABORT_ITEM_PROCESSING",{id:g})}),m.on("process-revert",function(){e("DID_REVERT_ITEM_PROCESSING",{id:g}),e("DID_DEFINE_VALUE",{id:g,value:null})}),e("DID_ADD_ITEM",{id:g,index:a,interactionMethod:s}),tv(e,n);var R=n.options.server||{},O=R.url,y=R.load,D=R.restore,S=R.fetch;m.load(o,e5(v===eI.INPUT?V(o)&&((E=o).indexOf(":")>-1||E.indexOf("//")>-1)&&tT(location.href)!==tT(E)&&S?tn(O,S):t_:v===eI.LIMBO?tn(O,D):tn(O,y)),function(e,n,r){eR("LOAD_FILE",e,{query:t}).then(n).catch(r)})}},REQUEST_PREPARE_OUTPUT:function(e){var n=e.item,r=e.success,o=e.failure,i=void 0===o?function(){}:o,a={error:e7("error",0,"Item not found"),file:null};if(n.archived)return i(a);eR("PREPARE_OUTPUT",n.file,{query:t,item:n}).then(function(e){eR("COMPLETE_PREPARE_OUTPUT",e,{query:t,item:n}).then(function(e){if(n.archived)return i(a);r(e)})})},COMPLETE_LOAD_ITEM:function(r){var o=r.item,i=r.data,a=i.success,s=i.source,u=t("GET_ITEM_INSERT_LOCATION");if(X(u)&&s&&th(n,u),e("DID_LOAD_ITEM",{id:o.id,error:null,serverFileReference:o.origin===eI.INPUT?null:s}),a(eE(o)),o.origin===eI.LOCAL)return void e("DID_LOAD_LOCAL_ITEM",{id:o.id});if(o.origin===eI.LIMBO){e("DID_COMPLETE_ITEM_PROCESSING",{id:o.id,error:null,serverFileReference:s}),e("DID_DEFINE_VALUE",{id:o.id,value:o.serverId||s});return}t("IS_ASYNC")&&n.options.instantUpload&&e("REQUEST_ITEM_PROCESSING",{query:o.id})},RETRY_ITEM_LOAD:tg(n,function(e){e.retryLoad()}),REQUEST_ITEM_PREPARE:tg(n,function(t,n,r){e("REQUEST_PREPARE_OUTPUT",{query:t.id,item:t,success:function(r){e("DID_PREPARE_OUTPUT",{id:t.id,file:r}),n({file:t,output:r})},failure:r},!0)}
vendor: 7,461 bytes, line 1
1),REQUEST_ITEM_PROCESSING:tg(n,function(r,o,i){if(r.status!==eT.IDLE&&r.status!==eT.PROCESSING_ERROR){var a=function(){return e("REQUEST_ITEM_PROCESSING",{query:r,success:o,failure:i})},s=function(){return document.hidden?a():setTimeout(a,32)};r.status===eT.PROCESSING_COMPLETE||r.status===eT.PROCESSING_REVERT_ERROR?r.revert(ti(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then(s).catch(function(){}):r.status===eT.PROCESSING&&r.abortProcessing().then(s);return}r.status!==eT.PROCESSING_QUEUED&&(r.requestProcessing(),e("DID_REQUEST_ITEM_PROCESSING",{id:r.id}),e("PROCESS_ITEM",{query:r,success:o,failure:i},!0))}),PROCESS_ITEM:tg(n,function(r,o,i){var a=t("GET_MAX_PARALLEL_UPLOADS");if(t("GET_ITEMS_BY_STATUS",eT.PROCESSING).length===a)return void n.processingQueue.push({id:r.id,success:o,failure:i});if(r.status!==eT.PROCESSING){var s=function t(){var r=n.processingQueue.shift();if(r){var o=r.id,i=r.success,a=r.failure,s=eb(n.items,o);if(!s||s.archived)return void t();e("PROCESS_ITEM",{query:o,success:i,failure:a},!0)}};r.onOnce("process-complete",function(){o(eE(r)),s();var i=n.options.server;if(n.options.instantUpload&&r.origin===eI.LOCAL&&X(i.remove)){var a=function(){};r.origin=eI.LIMBO,n.options.server.remove(r.source,a,a)}t("GET_ITEMS_BY_STATUS",eT.PROCESSING_COMPLETE).length===n.items.length&&e("DID_COMPLETE_ITEM_PROCESSING_ALL")}),r.onOnce("process-error",function(e){i({error:e,file:eE(r)}),s()}),r.onOnce("process-abort",function(){s()});var u=n.options;r.process(tu(to(u.server.url,u.server.process,u.name,{chunkTransferId:r.transferId,chunkServer:u.server.patch,chunkUploads:u.chunkUploads,chunkForce:u.chunkForce,chunkSize:u.chunkSize,chunkRetryDelays:u.chunkRetryDelays}),{allowMinimumUploadDuration:t("GET_ALLOW_MINIMUM_UPLOAD_DURATION")}),function(n,o,i){eR("PREPARE_OUTPUT",n,{query:t,item:r}).then(function(t){e("DID_PREPARE_OUTPUT",{id:r.id,file:t}),o(t)}).catch(i)})}}),RETRY_ITEM_PROCESSING:tg(n,function(t){e("REQUEST_ITEM_PROCESSING",{query:t})}),REQUEST_REMOVE_ITEM:tg(n,function(n){tm(t("GET_BEFORE_REMOVE_FILE"),eE(n)).then(function(t){t&&e("REMOVE_ITEM",{query:n})})}),RELEASE_ITEM:tg(n,function(e){e.release()}),REMOVE_ITEM:tg(n,function(r,o,i,a){var s=function(){var t=r.id;tE(n.items,t).archive(),e("DID_REMOVE_ITEM",{error:null,id:t,item:r}),tv(e,n),o(eE(r))},u=n.options.server;r.origin===eI.LOCAL&&u&&X(u.remove)&&!1!==a.remove?(e("DID_START_ITEM_REMOVE",{id:r.id}),u.remove(r.source,function(){return s()},function(t){e("DID_THROW_ITEM_REMOVE_ERROR",{id:r.id,error:e7("error",0,t,null),status:{main:tI(n.options.labelFileRemoveError)(t),sub:n.options.labelTapToRetry}})})):((a.revert&&r.origin!==eI.LOCAL&&null!==r.serverId||n.options.chunkUploads&&r.file.size>n.options.chunkSize||n.options.chunkUploads&&n.options.chunkForce)&&r.revert(ti(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")),s())}),ABORT_ITEM_LOAD:tg(n,function(e){e.abortLoad()}),ABORT_ITEM_PROCESSING:tg(n,function(t){t.serverId?e("REVERT_ITEM_PROCESSING",{id:t.id}):t.abortProcessing().then(function(){n.options.instantUpload&&e("REMOVE_ITEM",{query:t.id})})}),REQUEST_REVERT_ITEM_PROCESSING:tg(n,function(r){if(!n.options.instantUpload)return void e("REVERT_ITEM_PROCESSING",{query:r});var o=function(t){t&&e("REVERT_ITEM_PROCESSING",{query:r})},i=t("GET_BEFORE_REMOVE_FILE");if(!i)return o(!0);var a=i(eE(r));return null==a?o(!0):"boolean"==typeof a?o(a):void("function"==typeof a.then&&a.then(o))}),REVERT_ITEM_PROCESSING:tg(n,function(r){r.revert(ti(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then(function(){(n.options.instantUpload||!tf(r.file))&&e("REMOVE_ITEM",{query:r.id})}).catch(function(){})}),SET_OPTIONS:function(t){var n=t.options,r=Object.keys(n),o=tO.filter(function(e){return r.includes(e)});[].concat(eu(o),eu(Object.keys(n).filter(function(e){return!o.includes(e)}))).forEach(function(t){e("SET_"+er(t,"_").toUpperCase(),{value:n[t]})})}}},tO=["server"],ty=function(e){return e},tD=function(e){return document.createElement(e)},tS=function(e,t){var n=e.childNodes[0];n?t!==n.nodeValue&&(n.nodeValue=t):(n=document.createTextNode(t),e.appendChild(n))},tA=function(e,t,n,r){var o=(r%360-90)*Math.PI/180;return{x:e+n*Math.cos(o),y:t+n*Math.sin(o)}},tb=function(e,t,n,r,o,i){var a=tA(e,t,n,o),s=tA(e,t,n,r);return["M",a.x,a.y,"A",n,n,0,i,0,s.x,s.y].join(" ")},tL=function(e,t,n,r,o){var i=1;return o>r&&o-r<=.5&&(i=0),r>o&&r-o>=.5&&(i=0),tb(e,t,n,360*Math.min(.9999,r),360*Math.min(.9999,o),i)},tP=P({tag:"div",name:"progress-indicator",ignoreRectUpdate:!0,ignoreRect:!0,create:function(e){var t=e.root,n=e.props;n.spin=!1,n.progress=0,n.opacity=0;var r=f("svg");t.ref.path=f("path",{"stroke-width":2,"stroke-linecap":"round"}),r.appendChild(t.ref.path),t.ref.svg=r,t.appendChild(r)},write:function(e){var t=e.root,n=e.props;if(0!==n.opacity){n.align&&(t.element.dataset.align=n.align);var r=parseInt(u(t.ref.path,"stroke-width"),10),o=.5*t.rect.element.width,i=0,a=0;n.spin?(i=0,a=.5):(i=0,a=n.progress);var s=tL(o,o,o-r,i,a);u(t.ref.path,"d",s),u(t.ref.path,"stroke-opacity",n.spin||n.progress>0?1:0)}},mixins:{apis:["progress","spin","align"],styles:["opacity"],animations:{opacity:{type:"tween",duration:500},progress:{type:"spring",stiffness:.95,damping:.65,mass:10}}}}),tM=P({tag:"button",attributes:{type:"button"},ignoreRect:!0,ignoreRectUpdate:!0,name:"file-action-button",mixins:{apis:["label"],styles:["translateX","translateY","scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",translateX:"spring",translateY:"spring",opacity:{type:"tween",duration:250}},listeners:!0},create:function(e){var t=e.root,n=e.props;t.element.innerHTML=(n.icon||"")+"<span>"+n.label+"</span>",n.isDisabled=!1},write:function(e){var t=e.root,n=e.props,r=n.isDisabled,o=t.query("GET_DISABLED")||0===n.opacity;o&&!r?(n.isDisabled=!0,u(t.element,"disabled","disabled")):!o&&r&&(n.isDisabled=!1,t.element.removeAttribute("disabled"))}}),tC=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.labelBytes,i=r.labelKilobytes,a=r.labelMegabytes,s=r.labelGigabytes,u=n*n,l=n*n*n;return(e=Math.round(Math.abs(e)))<n?e+" "+(void 0===o?"bytes":o):e<u?Math.floor(e/n)+" "+(void 0===i?"KB":i):e<l?tw(e/u,1,t)+" "+(void 0===a?"MB":a):tw(e/l,2,t)+" "+(void 0===s?"GB":s)},tw=function(e,t,n){return e.toFixed(t).split(".").filter(function(e){return"0"!==e}).join(n)},tN=function(e){var t=e.root,n=e.props;tS(t.ref.fileSize,tC(t.query("GET_ITEM_SIZE",n.id),".",t.query("GET_FILE_SIZE_BASE"),t.query("GET_FILE_SIZE_LABELS",t.query))),tS(t.ref.fileName,ty(t.query("GET_ITEM_NAME",n.id)))},tG=function(e){var t=e.root,n=e.props;j(t.query("GET_ITEM_SIZE",n.id))?tN({root:t,props:n}):tS(t.ref.fileSize,t.query("GET_LABEL_FILE_SIZE_NOT_AVAILABLE"))},tU=P({name:"file-info",ignoreRect:!0,ignoreRectUpdate:!0,write:M({DID_LOAD_ITEM:tN,DID_UPDATE_ITEM_META:tN,DID_THROW_ITEM_LOAD_ERROR:tG,DID_THROW_ITEM_INVALID:tG}),didCreateView:function(e){eO("CREATE_VIEW",Object.assign({},e,{view:e}))},create:function(e){var t=e.root,n=e.props,r=tD("span");r.className="filepond--file-info-main",u(r,"aria-hidden","true"),t.appendChild(r),t.ref.fileName=r;var o=tD("span");o.className="filepond--file-info-sub",t.appendChild(o),t.ref.fileSize=o,tS(o,t.query("GET_LABEL_FILE_WAITING_FOR_SIZE")),tS(r,ty(t.query("GET_ITEM_NAME",n.id)))}
vendor: 13,059 bytes, line 1
1,mixins:{styles:["translateX","translateY"],animations:{translateX:"spring",translateY:"spring"}}}),tB=function(e){return Math.round(100*e)},tF=function(e){var t=e.root,n=e.action,r=null===n.progress?t.query("GET_LABEL_FILE_LOADING"):t.query("GET_LABEL_FILE_LOADING")+" "+tB(n.progress)+"%";tS(t.ref.main,r),tS(t.ref.sub,t.query("GET_LABEL_TAP_TO_CANCEL"))},tq=function(e){var t=e.root;tS(t.ref.main,""),tS(t.ref.sub,"")},tV=function(e){var t=e.root,n=e.action;tS(t.ref.main,n.status.main),tS(t.ref.sub,n.status.sub)},tx=P({name:"file-status",ignoreRect:!0,ignoreRectUpdate:!0,write:M({DID_LOAD_ITEM:tq,DID_REVERT_ITEM_PROCESSING:tq,DID_REQUEST_ITEM_PROCESSING:function(e){var t=e.root;tS(t.ref.main,t.query("GET_LABEL_FILE_PROCESSING")),tS(t.ref.sub,t.query("GET_LABEL_TAP_TO_CANCEL"))},DID_ABORT_ITEM_PROCESSING:function(e){var t=e.root;tS(t.ref.main,t.query("GET_LABEL_FILE_PROCESSING_ABORTED")),tS(t.ref.sub,t.query("GET_LABEL_TAP_TO_RETRY"))},DID_COMPLETE_ITEM_PROCESSING:function(e){var t=e.root;tS(t.ref.main,t.query("GET_LABEL_FILE_PROCESSING_COMPLETE")),tS(t.ref.sub,t.query("GET_LABEL_TAP_TO_UNDO"))},DID_UPDATE_ITEM_PROCESS_PROGRESS:function(e){var t=e.root,n=e.action,r=null===n.progress?t.query("GET_LABEL_FILE_PROCESSING"):t.query("GET_LABEL_FILE_PROCESSING")+" "+tB(n.progress)+"%";tS(t.ref.main,r),tS(t.ref.sub,t.query("GET_LABEL_TAP_TO_CANCEL"))},DID_UPDATE_ITEM_LOAD_PROGRESS:tF,DID_THROW_ITEM_LOAD_ERROR:tV,DID_THROW_ITEM_INVALID:tV,DID_THROW_ITEM_PROCESSING_ERROR:tV,DID_THROW_ITEM_PROCESSING_REVERT_ERROR:tV,DID_THROW_ITEM_REMOVE_ERROR:tV}),didCreateView:function(e){eO("CREATE_VIEW",Object.assign({},e,{view:e}))},create:function(e){var t=e.root,n=tD("span");n.className="filepond--file-status-main",t.appendChild(n),t.ref.main=n;var r=tD("span");r.className="filepond--file-status-sub",t.appendChild(r),t.ref.sub=r,tF({root:t,action:{progress:null}})},mixins:{styles:["translateX","translateY","opacity"],animations:{opacity:{type:"tween",duration:250},translateX:"spring",translateY:"spring"}}}),tY={AbortItemLoad:{label:"GET_LABEL_BUTTON_ABORT_ITEM_LOAD",action:"ABORT_ITEM_LOAD",className:"filepond--action-abort-item-load",align:"LOAD_INDICATOR_POSITION"},RetryItemLoad:{label:"GET_LABEL_BUTTON_RETRY_ITEM_LOAD",action:"RETRY_ITEM_LOAD",icon:"GET_ICON_RETRY",className:"filepond--action-retry-item-load",align:"BUTTON_PROCESS_ITEM_POSITION"},RemoveItem:{label:"GET_LABEL_BUTTON_REMOVE_ITEM",action:"REQUEST_REMOVE_ITEM",icon:"GET_ICON_REMOVE",className:"filepond--action-remove-item",align:"BUTTON_REMOVE_ITEM_POSITION"},ProcessItem:{label:"GET_LABEL_BUTTON_PROCESS_ITEM",action:"REQUEST_ITEM_PROCESSING",icon:"GET_ICON_PROCESS",className:"filepond--action-process-item",align:"BUTTON_PROCESS_ITEM_POSITION"},AbortItemProcessing:{label:"GET_LABEL_BUTTON_ABORT_ITEM_PROCESSING",action:"ABORT_ITEM_PROCESSING",className:"filepond--action-abort-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"},RetryItemProcessing:{label:"GET_LABEL_BUTTON_RETRY_ITEM_PROCESSING",action:"RETRY_ITEM_PROCESSING",icon:"GET_ICON_RETRY",className:"filepond--action-retry-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"},RevertItemProcessing:{label:"GET_LABEL_BUTTON_UNDO_ITEM_PROCESSING",action:"REQUEST_REVERT_ITEM_PROCESSING",icon:"GET_ICON_UNDO",className:"filepond--action-revert-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"}},tk=[];a(tY,function(e){tk.push(e)});var tj=function(e){if("right"===tz(e))return 0;var t=e.ref.buttonRemoveItem.rect.element;return t.hidden?null:t.width+t.left},tH=function(e){return e.ref.buttonAbortItemLoad.rect.element.width},tX=function(e){return Math.floor(e.ref.buttonRemoveItem.rect.element.height/4)},tW=function(e){return Math.floor(e.ref.buttonRemoveItem.rect.element.left/2)},tz=function(e){return e.query("GET_STYLE_BUTTON_REMOVE_ITEM_POSITION")},tQ={buttonAbortItemLoad:{opacity:0},buttonRetryItemLoad:{opacity:0},buttonRemoveItem:{opacity:0},buttonProcessItem:{opacity:0},buttonAbortItemProcessing:{opacity:0},buttonRetryItemProcessing:{opacity:0},buttonRevertItemProcessing:{opacity:0},loadProgressIndicator:{opacity:0,align:function(e){return e.query("GET_STYLE_LOAD_INDICATOR_POSITION")}},processProgressIndicator:{opacity:0,align:function(e){return e.query("GET_STYLE_PROGRESS_INDICATOR_POSITION")}},processingCompleteIndicator:{opacity:0,scaleX:.75,scaleY:.75},info:{translateX:0,translateY:0,opacity:0},status:{translateX:0,translateY:0,opacity:0}},tZ={buttonRemoveItem:{opacity:1},buttonProcessItem:{opacity:1},info:{translateX:tj},status:{translateX:tj}},tK={buttonAbortItemProcessing:{opacity:1},processProgressIndicator:{opacity:1},status:{opacity:1}},t$={DID_THROW_ITEM_INVALID:{buttonRemoveItem:{opacity:1},info:{translateX:tj},status:{translateX:tj,opacity:1}},DID_START_ITEM_LOAD:{buttonAbortItemLoad:{opacity:1},loadProgressIndicator:{opacity:1},status:{opacity:1}},DID_THROW_ITEM_LOAD_ERROR:{buttonRetryItemLoad:{opacity:1},buttonRemoveItem:{opacity:1},info:{translateX:tj},status:{opacity:1}},DID_START_ITEM_REMOVE:{processProgressIndicator:{opacity:1,align:tz},info:{translateX:tj},status:{opacity:0}},DID_THROW_ITEM_REMOVE_ERROR:{processProgressIndicator:{opacity:0,align:tz},buttonRemoveItem:{opacity:1},info:{translateX:tj},status:{opacity:1,translateX:tj}},DID_LOAD_ITEM:tZ,DID_LOAD_LOCAL_ITEM:{buttonRemoveItem:{opacity:1},info:{translateX:tj},status:{translateX:tj}},DID_START_ITEM_PROCESSING:tK,DID_REQUEST_ITEM_PROCESSING:tK,DID_UPDATE_ITEM_PROCESS_PROGRESS:tK,DID_COMPLETE_ITEM_PROCESSING:{buttonRevertItemProcessing:{opacity:1},info:{opacity:1},status:{opacity:1}},DID_THROW_ITEM_PROCESSING_ERROR:{buttonRemoveItem:{opacity:1},buttonRetryItemProcessing:{opacity:1},status:{opacity:1},info:{translateX:tj}},DID_THROW_ITEM_PROCESSING_REVERT_ERROR:{buttonRevertItemProcessing:{opacity:1},status:{opacity:1},info:{opacity:1}},DID_ABORT_ITEM_PROCESSING:{buttonRemoveItem:{opacity:1},buttonProcessItem:{opacity:1},info:{translateX:tj},status:{opacity:1}},DID_REVERT_ITEM_PROCESSING:tZ},tJ=P({create:function(e){var t=e.root;t.element.innerHTML=t.query("GET_ICON_DONE")},name:"processing-complete-indicator",ignoreRect:!0,mixins:{styles:["scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",opacity:{type:"tween",duration:250}}}}),t0=M({DID_SET_LABEL_BUTTON_ABORT_ITEM_PROCESSING:function(e){var t=e.root,n=e.action;t.ref.buttonAbortItemProcessing.label=n.value},DID_SET_LABEL_BUTTON_ABORT_ITEM_LOAD:function(e){var t=e.root,n=e.action;t.ref.buttonAbortItemLoad.label=n.value},DID_SET_LABEL_BUTTON_ABORT_ITEM_REMOVAL:function(e){var t=e.root,n=e.action;t.ref.buttonAbortItemRemoval.label=n.value},DID_REQUEST_ITEM_PROCESSING:function(e){var t=e.root;t.ref.processProgressIndicator.spin=!0,t.ref.processProgressIndicator.progress=0},DID_START_ITEM_LOAD:function(e){var t=e.root;t.ref.loadProgressIndicator.spin=!0,t.ref.loadProgressIndicator.progress=0},DID_START_ITEM_REMOVE:function(e){var t=e.root;t.ref.processProgressIndicator.spin=!0,t.ref.processProgressIndicator.progress=0},DID_UPDATE_ITEM_LOAD_PROGRESS:function(e){var t=e.root,n=e.action;t.ref.loadProgressIndicator.spin=!1,t.ref.loadProgressIndicator.progress=n.progress},DID_UPDATE_ITEM_PROCESS_PROGRESS:function(e){var t=e.root,n=e.action;t.ref.processProgressIndicator.spin=!1,t.ref.processProgressIndicator.progress=n.progress}}),t1=P({create:function(e){var t,n=e.root,r=e.props,o=Object.keys(tY).reduce(function(e,t){return e[t]=Object.assign({},tY[t]),e},{}),i=r.id,s=n.query("GET_ALLOW_REVERT"),u=n.query("GET_ALLOW_REMOVE"),l=n.query("GET_ALLOW_PROCESS"),c=n.query("GET_INSTANT_UPLOAD"),f=n.query("IS_ASYNC"),d=n.query("GET_STYLE_BUTTON_REMOVE_ITEM_ALIGN");f?l&&!s?t=function(e){return!/RevertItemProcessing/.test(e)}:!l&&s?t=function(e){return!/ProcessItem|RetryItemProcessing|AbortItemProcessing/.test(e)}:l||s||(t=function(e){return!/Process/.test(e)}):t=function(e){return!/Process/.test(e)};var p=t?tk.filter(t):tk.concat();if(c&&s&&(o.RevertItemProcessing.label="GET_LABEL_BUTTON_REMOVE_ITEM",o.RevertItemProcessing.icon="GET_ICON_REMOVE"),f&&!s){var E=t$.DID_COMPLETE_ITEM_PROCESSING;E.info.translateX=tW,E.info.translateY=tX,E.status.translateY=tX,E.processingCompleteIndicator={opacity:1,scaleX:1,scaleY:1}}if(f&&!l&&(["DID_START_ITEM_PROCESSING","DID_REQUEST_ITEM_PROCESSING","DID_UPDATE_ITEM_PROCESS_PROGRESS","DID_THROW_ITEM_PROCESSING_ERROR"].forEach(function(e){t$[e].status.translateY=tX}),t$.DID_THROW_ITEM_PROCESSING_ERROR.status.translateX=tH),d&&s){o.RevertItemProcessing.align="BUTTON_REMOVE_ITEM_POSITION";var _=t$.DID_COMPLETE_ITEM_PROCESSING;_.info.translateX=tj,_.status.translateY=tX,_.processingCompleteIndicator={opacity:1,scaleX:1,scaleY:1}}u||(o.RemoveItem.disabled=!0),a(o,function(e,t){var r=n.createChildView(tM,{label:n.query(t.label),icon:n.query(t.icon),opacity:0});p.includes(e)&&n.appendChildView(r),t.disabled&&(r.element.setAttribute("disabled","disabled"),r.element.setAttribute("hidden","hidden")),r.element.dataset.align=n.query("GET_STYLE_"+t.align),r.element.classList.add(t.className),r.on("click",function(e){e.stopPropagation(),t.disabled||n.dispatch(t.action,{query:i})}),n.ref["button"+e]=r}),n.ref.processingCompleteIndicator=n.appendChildView(n.createChildView(tJ)),n.ref.processingCompleteIndicator.element.dataset.align=n.query("GET_STYLE_BUTTON_PROCESS_ITEM_POSITION"),n.ref.info=n.appendChildView(n.createChildView(tU,{id:i})),n.ref.status=n.appendChildView(n.createChildView(tx,{id:i}));var T=n.appendChildView(n.createChildView(tP,{opacity:0,align:n.query("GET_STYLE_LOAD_INDICATOR_POSITION")}));T.element.classList.add("filepond--load-indicator"),n.ref.loadProgressIndicator=T;var I=n.appendChildView(n.createChildView(tP,{opacity:0,align:n.query("GET_STYLE_PROGRESS_INDICATOR_POSITION")}));I.element.classList.add("filepond--process-indicator"),n.ref.processProgressIndicator=I,n.ref.activeStyles=[]},write:function(e){var t=e.root,n=e.actions;t0({root:t,actions:n,props:e.props});var r=n.concat().filter(function(e){return/^DID_/.test(e.type)}).reverse().find(function(e){return t$[e.type]});if(r){t.ref.activeStyles=[];var o=t$[r.type];a(tQ,function(e,n){var r=t.ref[e];a(n,function(n,i){var a=o[e]&&void 0!==o[e][n]?o[e][n]:i;t.ref.activeStyles.push({control:r,key:n,value:a})})})}t.ref.activeStyles.forEach(function(e){var n=e.control,r=e.key,o=e.value;n[r]="function"==typeof o?o(t):o})},didCreateView:function(e){eO("CREATE_VIEW",Object.assign({},e,{view:e}))},name:"file"}),t2=P({create:function(e){var t=e.root,n=e.props;t.ref.fileName=tD("legend"),t.appendChild(t.ref.fileName),t.ref.file=t.appendChildView(t.createChildView(t1,{id:n.id})),t.ref.data=!1},ignoreRect:!0,write:M({DID_LOAD_ITEM:function(e){var t=e.root,n=e.props;tS(t.ref.fileName,ty(t.query("GET_ITEM_NAME",n.id)))}}),didCreateView:function(e){eO("CREATE_VIEW",Object.assign({},e,{view:e}))},tag:"fieldset",name:"file-wrapper"}),t3={type:"spring",damping:.6,mass:7},t9=function(e,t,n){var r=P({name:"panel-"+t.name+" filepond--"+n,mixins:t.mixins,ignoreRectUpdate:!0}),o=e.createChildView(r,t.props);e.ref[t.name]=e.appendChildView(o)},t5=P({name:"panel",read:function(e){var t=e.root;return e.props.heightCurrent=t.ref.bottom.translateY},write:function(e){var t=e.root,n=e.props;if((null===t.ref.scalable||n.scalable!==t.ref.scalable)&&(t.ref.scalable=!F(n.scalable)||n.scalable,t.element.dataset.scalable=t.ref.scalable),n.height){var r=t.ref.top.rect.element,o=t.ref.bottom.rect.element,i=Math.max(r.height+o.height,n.height);t.ref.center.translateY=r.height,t.ref.center.scaleY=(i-r.height-o.height)/100,t.ref.bottom.translateY=i-o.height}},create:function(e){var t=e.root,n=e.props;[{name:"top"},{name:"center",props:{translateY:null,scaleY:null},mixins:{animations:{scaleY:t3},styles:["translateY","scaleY"]}},{name:"bottom",props:{translateY:null},mixins:{animations:{translateY:t3},styles:["translateY"]}}].forEach(function(e){t9(t,e,n.name)}),t.element.classList.add("filepond--"+n.name),t.ref.scalable=null},ignoreRect:!0,mixins:{apis:["height","heightCurrent","scalable"]}}),t4=function(e){var t=e.map(function(e){return e.id}),n=void 0;return{setIndex:function(e){n=e},getIndex:function(){return n},getItemIndex:function(e){return t.indexOf(e.id)}}},t6={type:"spring",stiffness:.75,damping:.45,mass:10},t7="spring",t8={DID_START_ITEM_LOAD:"busy",DID_UPDATE_ITEM_LOAD_PROGRESS:"loading",DID_THROW_ITEM_INVALID:"load-invalid",DID_THROW_ITEM_LOAD_ERROR:"load-error",DID_LOAD_ITEM:"idle",DID_THROW_ITEM_REMOVE_ERROR:"remove-error",DID_START_ITEM_REMOVE:"busy",DID_START_ITEM_PROCESSING:"busy processing",DID_REQUEST_ITEM_PROCESSING:"busy processing",DID_UPDATE_ITEM_PROCESS_PROGRESS:"processing",DID_COMPLETE_ITEM_PROCESSING:"processing-complete",DID_THROW_ITEM_PROCESSING_ERROR:"processing-error",DID_THROW_ITEM_PROCESSING_REVERT_ERROR:"processing-revert-error",DID_ABORT_ITEM_PROCESSING:"cancelled",DID_REVERT_ITEM_PROCESSING:"idle"},ne=M({DID_UPDATE_PANEL_HEIGHT:function(e){e.root.height=e.action.height}}),nt=P({create:function(e){var t=e.root,n=e.props;t.ref.handleClick=function(e){return t.dispatch("DID_ACTIVATE_ITEM",{id:n.id})}
1,t.element.id="filepond--item-"+n.id,t.element.addEventListener("click",t.ref.handleClick),t.ref.container=t.appendChildView(t.createChildView(t2,{id:n.id})),t.ref.panel=t.appendChildView(t.createChildView(t5,{name:"item-panel"})),t.ref.panel.height=null,n.markedForRemoval=!1,t.query("GET_ALLOW_REORDER")&&(t.element.dataset.dragState="idle",t.element.addEventListener("pointerdown",function(e){if(e.isPrimary){var r=!1,o={x:e.pageX,y:e.pageY};n.dragOrigin={x:t.translateX,y:t.translateY},n.dragCenter={x:e.offsetX,y:e.offsetY};var i=t4(t.query("GET_ACTIVE_ITEMS"));t.dispatch("DID_GRAB_ITEM",{id:n.id,dragState:i});var a=function(e){e.isPrimary&&(e.stopPropagation(),e.preventDefault(),n.dragOffset={x:e.pageX-o.x,y:e.pageY-o.y},n.dragOffset.x*n.dragOffset.x+n.dragOffset.y*n.dragOffset.y>16&&!r&&(r=!0,t.element.removeEventListener("click",t.ref.handleClick)),t.dispatch("DID_DRAG_ITEM",{id:n.id,dragState:i}))},s=function(e){e.isPrimary&&(n.dragOffset={x:e.pageX-o.x,y:e.pageY-o.y},l())},u=function(){l()},l=function(){document.removeEventListener("pointercancel",u),document.removeEventListener("pointermove",a),document.removeEventListener("pointerup",s),t.dispatch("DID_DROP_ITEM",{id:n.id,dragState:i}),r&&setTimeout(function(){return t.element.addEventListener("click",t.ref.handleClick)},0)};document.addEventListener("pointercancel",u),document.addEventListener("pointermove",a),document.addEventListener("pointerup",s)}}))},write:M({DID_GRAB_ITEM:function(e){var t=e.root;e.props.dragOrigin={x:t.translateX,y:t.translateY}},DID_DRAG_ITEM:function(e){e.root.element.dataset.dragState="drag"},DID_DROP_ITEM:function(e){var t=e.root,n=e.props;n.dragOffset=null,n.dragOrigin=null,t.element.dataset.dragState="drop"}},function(e){var t=e.root,n=e.actions,r=e.props,o=e.shouldOptimize;"drop"===t.element.dataset.dragState&&t.scaleX<=1&&(t.element.dataset.dragState="idle");var i=n.concat().filter(function(e){return/^DID_/.test(e.type)}).reverse().find(function(e){return t8[e.type]});i&&i.type!==r.currentState&&(r.currentState=i.type,t.element.dataset.filepondItemState=t8[r.currentState]||"");var a=t.query("GET_ITEM_PANEL_ASPECT_RATIO")||t.query("GET_PANEL_ASPECT_RATIO");a?o||(t.height=t.rect.element.width*a):(ne({root:t,actions:n,props:r}),!t.height&&t.ref.container.rect.element.height>0&&(t.height=t.ref.container.rect.element.height)),o&&(t.ref.panel.height=null),t.ref.panel.height=t.height}),destroy:function(e){var t=e.root,n=e.props;t.element.removeEventListener("click",t.ref.handleClick),t.dispatch("RELEASE_ITEM",{query:n.id})},tag:"li",name:"item",mixins:{apis:["id","interactionMethod","markedForRemoval","spawnDate","dragCenter","dragOrigin","dragOffset"],styles:["translateX","translateY","scaleX","scaleY","opacity","height"],animations:{scaleX:t7,scaleY:t7,translateX:t6,translateY:t6,opacity:{type:"tween",duration:150}}}}),nn=function(e,t){return Math.max(1,Math.floor((e+1)/t))},nr=function(e,t,n){if(n){var r=e.rect.element.width,o=t.length,i=null;if(0===o||n.top<t[0].rect.element.top)return -1;var a=t[0].rect.element,s=a.marginLeft+a.marginRight,u=a.width+s,l=nn(r,u);if(1===l){for(var c=0;c<o;c++){var f=t[c],d=f.rect.outer.top+.5*f.rect.element.height;if(n.top<d)return c}return o}for(var p=a.marginTop+a.marginBottom,E=a.height+p,_=0;_<o;_++){var T=_%l*u,I=Math.floor(_/l)*E,v=I-a.marginTop,m=T+u,h=I+E+a.marginBottom;if(n.top<h&&n.top>v)if(n.left<m)return _;else i=_!==o-1?_:null}return null!==i?i:o}},no={height:0,width:0,get getHeight(){return this.height},set setHeight(val){(0===this.height||0===val)&&(this.height=val)},get getWidth(){return this.width},set setWidth(val){(0===this.width||0===val)&&(this.width=val)},setDimensions:function(e,t){(0===this.height||0===e)&&(this.height=e),(0===this.width||0===t)&&(this.width=t)}},ni=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;e.dragOffset?(e.translateX=null,e.translateY=null,e.translateX=e.dragOrigin.x+e.dragOffset.x,e.translateY=e.dragOrigin.y+e.dragOffset.y,e.scaleX=1.025,e.scaleY=1.025):(e.translateX=t,e.translateY=n,Date.now()>e.spawnDate&&(0===e.opacity&&na(e,t,n,r,o),e.scaleX=1,e.scaleY=1,e.opacity=1))},na=function(e,t,n,r,o){5===e.interactionMethod?(e.translateX=null,e.translateX=t,e.translateY=null,e.translateY=n):2===e.interactionMethod?(e.translateX=null,e.translateX=t-20*r,e.translateY=null,e.translateY=n-10*o,e.scaleX=.8,e.scaleY=.8):3===e.interactionMethod?(e.translateY=null,e.translateY=n-30):1===e.interactionMethod&&(e.translateX=null,e.translateX=t-30,e.translateY=null)},ns=function(e){return e.rect.element.height+e.rect.element.marginBottom+e.rect.element.marginTop},nu=M({DID_ADD_ITEM:function(e){var t=e.root,n=e.action,r=n.id,o=n.index,i=n.interactionMethod;t.ref.addIndex=o;var a=Date.now(),s=a,u=1;if(5!==i){u=0;var l=t.query("GET_ITEM_INSERT_INTERVAL"),c=a-t.ref.lastItemSpanwDate;s=c<l?a+(l-c):a}t.ref.lastItemSpanwDate=s,t.appendChildView(t.createChildView(nt,{spawnDate:s,id:r,opacity:u,interactionMethod:i}),o)},DID_REMOVE_ITEM:function(e){var t=e.root,n=e.action.id,r=t.childViews.find(function(e){return e.id===n});r&&(r.scaleX=.9,r.scaleY=.9,r.opacity=0,r.markedForRemoval=!0)},DID_DRAG_ITEM:function(e){var t=e.root,n=e.action,r=n.id,o=n.dragState,i=t.query("GET_ITEM",{id:r}),a=t.childViews.find(function(e){return e.id===r}),s=t.childViews.length,u=o.getItemIndex(i);if(a){var l={x:a.dragOrigin.x+a.dragOffset.x+a.dragCenter.x,y:a.dragOrigin.y+a.dragOffset.y+a.dragCenter.y},c=ns(a),f=a.rect.element.width+.5*a.rect.element.marginLeft+.5*a.rect.element.marginRight,d=Math.floor(t.rect.outer.width/f);d>s&&(d=s),no.setHeight=c*Math.floor(s/d+1),no.setWidth=f*d;var p={y:Math.floor(l.y/c),x:Math.floor(l.x/f),getGridIndex:function(){return l.y>no.getHeight||l.y<0||l.x>no.getWidth||l.x<0?u:this.y*d+this.x},getColIndex:function(){for(var e=t.query("GET_ACTIVE_ITEMS"),n=t.childViews.filter(function(e){return e.rect.element.height}),r=e.map(function(e){return n.find(function(t){return t.id===e.id})}),o=r.findIndex(function(e){return e===a}),i=ns(a),s=r.length,u=s,c=0,f=0,d=0,p=0;p<s;p++)if(c=ns(r[p]),f=(d=f)+c,l.y<f){if(o>p){if(l.y<d+i){u=p;break}continue}u=p;break}return u}},E=d>1?p.getGridIndex():p.getColIndex();t.dispatch("MOVE_ITEM",{query:a,index:E});var _=o.getIndex();if(void 0===_||_!==E){if(o.setIndex(E),void 0===_)return;t.dispatch("DID_REORDER_ITEMS",{items:t.query("GET_ACTIVE_ITEMS"),origin:u,target:E})}}}}),nl=P({create:function(e){var t=e.root;u(t.element,"role","list"),t.ref.lastItemSpanwDate=Date.now()},write:function(e){var t=e.root,n=e.props,r=e.actions,o=e.shouldOptimize;nu({root:t,props:n,actions:r});var i=n.dragCoordinates,a=t.rect.element.width,s=t.childViews.filter(function(e){return e.rect.element.height}),u=t.query("GET_ACTIVE_ITEMS").map(function(e){return s.find(function(t){return t.id===e.id})}).filter(function(e){return e}),l=i?nr(t,u,i):null,c=t.ref.addIndex||null;t.ref.addIndex=null;var f=0,d=0,p=0;if(0!==u.length){var E=u[0].rect.element,_=E.marginTop+E.marginBottom,T=E.marginLeft+E.marginRight,I=E.width+T,v=E.height+_,m=nn(a,I);if(1===m){var h=0,g=0;u.forEach(function(e,t){if(l){var n=t-l;g=-2===n?-(.25*_):-1===n?-(.75*_):0===n?.75*_:1===n?.25*_:0}o&&(e.translateX=null,e.translateY=null),e.markedForRemoval||ni(e,0,h+g);var r=(e.rect.element.height+_)*(e.markedForRemoval?e.opacity:1);h+=r})}else{var R=0,O=0;u.forEach(function(e,t){t===l&&(f=1),t===c&&(p+=1),e.markedForRemoval&&e.o
1pacity<.5&&(d-=1);var n=t+p+f+d,r=Math.floor(n/m),i=n%m*I,a=r*v,s=Math.sign(i-R),u=Math.sign(a-O);R=i,O=a,e.markedForRemoval||(o&&(e.translateX=null,e.translateY=null),ni(e,i,a,s,u))})}}},tag:"ul",name:"list",didWriteView:function(e){var t=e.root;t.childViews.filter(function(e){return e.markedForRemoval&&0===e.opacity&&e.resting}).forEach(function(e){e._destroy(),t.removeChildView(e)})},filterFrameActionsForChild:function(e,t){return t.filter(function(t){return!t.data||!t.data.id||e.id===t.data.id})},mixins:{apis:["dragCoordinates"]}}),nc=M({DID_DRAG:function(e){var t=e.root,n=e.props,r=e.action;t.query("GET_ITEM_INSERT_LOCATION_FREEDOM")&&(n.dragCoordinates={left:r.position.scopeLeft-t.ref.list.rect.element.left,top:r.position.scopeTop-(t.rect.outer.top+t.rect.element.marginTop+t.rect.element.scrollTop)})},DID_END_DRAG:function(e){e.props.dragCoordinates=null}}),nf=P({create:function(e){var t=e.root,n=e.props;t.ref.list=t.appendChildView(t.createChildView(nl)),n.dragCoordinates=null,n.overflowing=!1},write:function(e){var t=e.root,n=e.props;if(nc({root:t,props:n,actions:e.actions}),t.ref.list.dragCoordinates=n.dragCoordinates,n.overflowing&&!n.overflow&&(n.overflowing=!1,t.element.dataset.state="",t.height=null),n.overflow){var r=Math.round(n.overflow);r!==t.height&&(n.overflowing=!0,t.element.dataset.state="overflow",t.height=r)}},name:"list-scroller",mixins:{apis:["overflow","dragCoordinates"],styles:["height","translateY"],animations:{translateY:"spring"}}}),nd=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";n?u(e,t,r):e.removeAttribute(t)},np=function(e){if(e&&""!==e.value){try{e.value=""}catch(e){}if(e.value){var t=tD("form"),n=e.parentNode,r=e.nextSibling;t.appendChild(e),t.reset(),r?n.insertBefore(e,r):n.appendChild(e)}}},nE=function(e){var t=e.root,n=e.action;t.query("GET_ALLOW_SYNC_ACCEPT_ATTRIBUTE")&&nd(t.element,"accept",!!n.value,n.value?n.value.join(","):"")},n_=function(e){var t=e.root,n=e.action;nd(t.element,"multiple",n.value)},nT=function(e){var t=e.root,n=e.action;nd(t.element,"webkitdirectory",n.value)},nI=function(e){var t=e.root,n=t.query("GET_DISABLED"),r=t.query("GET_ALLOW_BROWSE");nd(t.element,"disabled",n||!r)},nv=function(e){var t=e.root;e.action.value?0===t.query("GET_TOTAL_ITEMS")&&nd(t.element,"required",!0):nd(t.element,"required",!1)},nm=function(e){var t=e.root,n=e.action;nd(t.element,"capture",!!n.value,!0===n.value?"":n.value)},nh=function(e){var t=e.root,n=t.element;if(t.query("GET_TOTAL_ITEMS")>0){nd(n,"required",!1),nd(n,"name",!1);for(var r=t.query("GET_ACTIVE_ITEMS"),o=!1,i=0;i<r.length;i++)r[i].status===eT.LOAD_ERROR&&(o=!0);t.element.setCustomValidity(o?t.query("GET_LABEL_INVALID_FIELD"):"")}else nd(n,"name",!0,t.query("GET_NAME")),t.query("GET_CHECK_VALIDITY")&&n.setCustomValidity(""),t.query("GET_REQUIRED")&&nd(n,"required",!0)},ng=P({tag:"input",name:"browser",ignoreRect:!0,ignoreRectUpdate:!0,attributes:{type:"file"},create:function(e){var t=e.root,n=e.props;t.element.id="filepond--browser-"+n.id,u(t.element,"name",t.query("GET_NAME")),u(t.element,"aria-controls","filepond--assistant-"+n.id),u(t.element,"aria-labelledby","filepond--drop-label-"+n.id),nE({root:t,action:{value:t.query("GET_ACCEPTED_FILE_TYPES")}}),n_({root:t,action:{value:t.query("GET_ALLOW_MULTIPLE")}}),nT({root:t,action:{value:t.query("GET_ALLOW_DIRECTORIES_ONLY")}}),nI({root:t}),nv({root:t,action:{value:t.query("GET_REQUIRED")}
1}),nm({root:t,action:{value:t.query("GET_CAPTURE_METHOD")}}),t.ref.handleChange=function(e){if(t.element.value){var r=Array.from(t.element.files).map(function(e){return e._relativePath=e.webkitRelativePath,e});setTimeout(function(){n.onload(r),np(t.element)},250)}},t.element.addEventListener("change",t.ref.handleChange)},destroy:function(e){var t=e.root;t.element.removeEventListener("change",t.ref.handleChange)},write:M({DID_LOAD_ITEM:nh,DID_REMOVE_ITEM:nh,DID_THROW_ITEM_INVALID:function(e){var t=e.root;t.query("GET_CHECK_VALIDITY")&&t.element.setCustomValidity(t.query("GET_LABEL_INVALID_FIELD"))},DID_SET_DISABLED:nI,DID_SET_ALLOW_BROWSE:nI,DID_SET_ALLOW_DIRECTORIES_ONLY:nT,DID_SET_ALLOW_MULTIPLE:n_,DID_SET_ACCEPTED_FILE_TYPES:nE,DID_SET_CAPTURE_METHOD:nm,DID_SET_REQUIRED:nv})}),nR=function(e,t){e.innerHTML=t;var n=e.querySelector(".filepond--label-action");return n&&u(n,"tabindex","0"),t},nO=P({name:"drop-label",ignoreRect:!0,create:function(e){var t=e.root,n=e.props,r=tD("label");u(r,"for","filepond--browser-"+n.id),u(r,"id","filepond--drop-label-"+n.id),t.ref.handleKeyDown=function(e){(13===e.keyCode||32===e.keyCode)&&(e.preventDefault(),t.ref.label.click())},t.ref.handleClick=function(e){e.target===r||r.contains(e.target)||t.ref.label.click()},r.addEventListener("keydown",t.ref.handleKeyDown),t.element.addEventListener("click",t.ref.handleClick),nR(r,n.caption),t.appendChild(r),t.ref.label=r},destroy:function(e){var t=e.root;t.ref.label.addEventListener("keydown",t.ref.handleKeyDown),t.element.removeEventListener("click",t.ref.handleClick)},write:M({DID_SET_LABEL_IDLE:function(e){var t=e.root,n=e.action;nR(t.ref.label,n.value)}}),mixins:{styles:["opacity","translateX","translateY"],animations:{opacity:{type:"tween",duration:150},translateX:"spring",translateY:"spring"}}}),ny=P({name:"drip-blob",ignoreRect:!0,mixins:{styles:["translateX","translateY","scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",translateX:"spring",translateY:"spring",opacity:{type:"tween",duration:250}}}}),nD=function(e){var t=e.root,n=.5*t.rect.element.width,r=.5*t.rect.element.height;t.ref.blob=t.appendChildView(t.createChildView(ny,{opacity:0,scaleX:2.5,scaleY:2.5,translateX:n,translateY:r}))},nS=M({DID_DRAG:function(e){var t=e.root,n=e.action;t.ref.blob?(t.ref.blob.translateX=n.position.scopeLeft,t.ref.blob.translateY=n.position.scopeTop,t.ref.blob.scaleX=1,t.ref.blob.scaleY=1,t.ref.blob.opacity=1):nD({root:t})},DID_DROP:function(e){var t=e.root;t.ref.blob&&(t.ref.blob.scaleX=2.5,t.ref.blob.scaleY=2.5,t.ref.blob.opacity=0)},DID_END_DRAG:function(e){var t=e.root;t.ref.blob&&(t.ref.blob.opacity=0)}}),nA=P({ignoreRect:!0,ignoreRectUpdate:!0,name:"drip",write:function(e){var t=e.root,n=e.props,r=e.actions;nS({root:t,props:n,actions:r});var o=t.ref.blob;0===r.length&&o&&0===o.opacity&&(t.removeChildView(o),t.ref.blob=null)}}),nb=function(e,t){try{var n=new DataTransfer;t.forEach(function(e){e instanceof File?n.items.add(e):n.items.add(new File([e],e.name,{type:e.type}))}),e.files=n.files}catch(e){return!1}return!0},nL=function(e,t){return e.ref.fields[t]},nP=function(e){e.query("GET_ACTIVE_ITEMS").forEach(function(t){e.ref.fields[t.id]&&e.element.appendChild(e.ref.fields[t.id])})},nM=function(e){return nP(e.root)},nC=P({tag:"fieldset",name:"data",create:function(e){var t=e.root;t.ref.fields={};var n=document.createElement("legend");n.textContent="Files",t.element.appendChild(n)},write:M({DID_SET_DISABLED:function(e){var t=e.root;t.element.disabled=t.query("GET_DISABLED")},DID_ADD_ITEM:function(e){var t=e.root,n=e.action,r=t.query("GET_ITEM",n.id).origin!==eI.LOCAL&&t.query("SHOULD_UPDATE_FILE_INPUT"),o=tD("input");o.type=r?"file":"hidden",o.name=t.query("GET_NAME"),t.ref.fields[n.id]=o,nP(t)},DID_LOAD_ITEM:function(e){var t=e.root,n=e.action,r=nL(t,n.id);!r||(null!==n.serverFileReference&&(r.value=n.serverFileReference),t.query("SHOULD_UPDATE_FILE_INPUT")&&nb(r,[t.query("GET_ITEM",n.id).file]))},DID_REMOVE_ITEM:function(e){var t=e.root,n=e.action,r=nL(t,n.id);r&&(r.parentNode&&r.parentNode.removeChild(r),delete t.ref.fields[n.id])},DID_DEFINE_VALUE:function(e){var t=e.root,n=e.action,r=nL(t,n.id);r&&(null===n.value?r.removeAttribute("value"):"file"!=r.type&&(r.value=n.value),nP
1(t))},DID_PREPARE_OUTPUT:function(e){var t=e.root,n=e.action;t.query("SHOULD_UPDATE_FILE_INPUT")&&setTimeout(function(){var e=nL(t,n.id);e&&nb(e,[n.file])},0)},DID_REORDER_ITEMS:nM,DID_SORT_ITEMS:nM}),ignoreRect:!0}),nw=["jpg","jpeg","png","gif","bmp","webp","svg","tiff"],nN=["css","csv","html","txt"],nG={zip:"zip|compressed",epub:"application/epub+zip"},nU=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(e=e.toLowerCase(),nw.includes(e))?"image/"+("jpg"===e?"jpeg":"svg"===e?"svg+xml":e):nN.includes(e)?"text/"+e:nG[e]||""},nB=function(e){return new Promise(function(t,n){var r=nW(e);if(r.length&&!nF(e))return t(r);nq(e).then(t)})},nF=function(e){return!!e.files&&e.files.length>0},nq=function(e){return new Promise(function(t,n){var r=(e.items?Array.from(e.items):[]).filter(function(e){return nV(e)}).map(function(e){return nx(e)});r.length?Promise.all(r).then(function(e){var n=[];e.forEach(function(e){n.push.apply(n,e)}),t(n.filter(function(e){return e}).map(function(e){return e._relativePath||(e._relativePath=e.webkitRelativePath),e}))}).catch(console.error):t(e.files?Array.from(e.files):[])})},nV=function(e){if(nH(e)){var t=nX(e);if(t)return t.isFile||t.isDirectory}return"file"===e.kind},nx=function(e){return new Promise(function(t,n){nj(e)?nY(nX(e)).then(t).catch(n):t([e.getAsFile()])})},nY=function(e){return new Promise(function(t,n){var r=[],o=0,i=0,a=function(){0===i&&0===o&&t(r)};!function e(t){o++;var s=t.createReader();!function t(){s.readEntries(function(n){if(0===n.length){o--,a();return}n.forEach(function(t){t.isDirectory?e(t):(i++,t.file(function(e){var n=nk(e);t.fullPath&&(n._relativePath=t.fullPath),r.push(n),i--,a()}))}),t()},n)}()}(e)})},nk=function(e){if(e.type.length)return e;var t=e.lastModifiedDate,n=e.name,r=nU(eW(e.name));return r.length&&((e=e.slice(0,e.size,r)).name=n,e.lastModifiedDate=t),e},nj=function(e){return nH(e)&&(nX(e)||{}).isDirectory},nH=function(e){return"webkitGetAsEntry"in e},nX=function(e){return e.webkitGetAsEntry()},nW=function(e){var t=[];try{if((t=nQ(e)).length)return t;t=nz(e)}catch(e){}return t},nz=function(e){var t=e.getData("url");return"string"==typeof t&&t.length?[t]:[]},nQ=function(e){var t=e.getData("text/html");if("string"==typeof t&&t.length){var n=t.match(/src\s*=\s*"(.+?)"/);if(n)return[n[1]]}return[]},nZ=[],nK=function(e){return{pageLeft:e.pageX,pageTop:e.pageY,scopeLeft:e.offsetX||e.layerX,scopeTop:e.offsetY||e.layerY}},n$=function(e,t,n){var r=nJ(t),o={element:e,filterElement:n,state:null,ondrop:function(){},onenter:function(){},ondrag:function(){},onexit:function(){},onload:function(){},allowdrop:function(){}};return o.destroy=r.addListener(o),o},nJ=function(e){var t=nZ.find(function(t){return t.element===e});if(t)return t;var n=n0(e);return nZ.push(n),n},n0=function(e){var t=[],n={dragenter:n9,dragover:n5,dragleave:n6,drop:n4},r={};a(n,function(n,o){r[n]=o(e,t),e.addEventListener(n,r[n],!1)});var o={element:e,addListener:function(i){return t.push(i),function(){t.splice(t.indexOf(i),1),0===t.length&&(nZ.splice(nZ.indexOf(o),1),a(n,function(t){e.removeEventListener(t,r[t],!1)}))}}};return o},n1=function(e,t){var n,r,o=(n="getRootNode"in t?t.getRootNode():document,r={x:e.pageX-window.pageXOffset,y:e.pageY-window.pageYOffset},"elementFromPoint"in n||(n=document),n.elementFromPoint(r.x,r.y));return o===t||t.contains(o)},n2=null,n3=function(e,t){try{e.dropEffect=t}catch(e){}},n9=function(e,t){return function(e){e.preventDefault(),n2=e.target,t.forEach(function(t){var n=t.element,r=t.onenter;n1(e,n)&&(t.state="enter",r(nK(e)))})}},n5=function(e,t){return function(e){e.preventDefault();var n=e.dataTransfer;nB(n).then(function(r){var o=!1;t.some(function(t){var i=t.filterElement,a=t.element,s=t.onenter,u=t.onexit,l=t.ondrag,c=t.allowdrop;n3(n,"copy");var f=c(r);if(!f)return void n3(n,"none");if(n1(e,a)){if(o=!0,null===t.state){t.state="enter",s(nK(e));return}if(t.state="over",i&&!f)return void n3(n,"none");l(nK(e))}else i&&!o&&n3(n,"none"),t.state&&(t.state=null,u(nK(e)))})})}},n4=function(e,t){return function(e){e.preventDefault(),nB(e.dataTransfer).then(function(n){t.forEach(function(t){var r=t.filterElement,o=t.element,i=t.ondrop,a=t.onexit,
1s=t.allowdrop;if(t.state=null,!r||n1(e,o)){if(!s(n))return a(nK(e));i(nK(e),n)}})})}},n6=function(e,t){return function(e){n2===e.target&&t.forEach(function(t){var n=t.onexit;t.state=null,n(nK(e))})}},n7=function(e,t,n){e.classList.add("filepond--hopper");var r=n.catchesDropsOnPage,o=n.requiresDropOnElement,i=n.filterItems,a=void 0===i?function(e){return e}:i,s=n$(e,r?document.documentElement:e,o),u="",l="";s.allowdrop=function(e){return t(a(e))},s.ondrop=function(e,n){var r=a(n);t(r)?(l="drag-drop",c.onload(r,e)):c.ondragend(e)},s.ondrag=function(e){c.ondrag(e)},s.onenter=function(e){l="drag-over",c.ondragstart(e)},s.onexit=function(e){l="drag-exit",c.ondragend(e)};var c={updateHopperState:function(){u!==l&&(e.dataset.hopperState=l,u=l)},onload:function(){},ondragstart:function(){},ondrag:function(){},ondragend:function(){},destroy:function(){s.destroy()}};return c},n8=!1,re=[],rt=function(e){var t=document.activeElement;if(t&&(/textarea|input/i.test(t.nodeName)||"true"===t.getAttribute("contenteditable")||""===t.getAttribute("contenteditable"))){for(var n=!1,r=t;r!==document.body;){if(r.classList.contains("filepond--root")){n=!0;break}r=r.parentNode}if(!n)return}nB(e.clipboardData).then(function(e){e.length&&re.forEach(function(t){return t(e)})})},rn=function(e){re.includes(e)||(re.push(e),n8||(n8=!0,document.addEventListener("paste",rt)))},rr=function(e){el(re,re.indexOf(e)),0===re.length&&(document.removeEventListener("paste",rt),n8=!1)},ro=function(){var e=function(e){t.onload(e)},t={destroy:function(){rr(e)},onload:function(){}};return rn(e),t},ri=null,ra=null,rs=[],ru=function(e,t){e.element.textContent=t},rl=function(e){e.element.textContent=""},rc=function(e,t,n){var r=e.query("GET_TOTAL_ITEMS");ru(e,n+" "+t+", "+r+" "+(1===r?e.query("GET_LABEL_FILE_COUNT_SINGULAR"):e.query("GET_LABEL_FILE_COUNT_PLURAL"))),clearTimeout(ra),ra=setTimeout(function(){rl(e)},1500)},rf=function(e){return e.element.parentNode.contains(document.activeElement)},rd=function(e){var t=e.root,n=e.action,r=t.query("GET_ITEM",n.id).filename,o=t.query("GET_LABEL_FILE_PROCESSING_ABORTED");ru(t,r+" "+o)},rp=function(e){var t=e.root,n=e.action,r=t.query("GET_ITEM",n.id).filename;ru(t,n.status.main+" "+r+" "+n.status.sub)},rE=P({create:function(e){var t=e.root,n=e.props;t.element.id="filepond--assistant-"+n.id,u(t.element,"role","alert"),u(t.element,"aria-live","polite"),u(t.element,"aria-relevant","additions")},ignoreRect:!0,ignoreRectUpdate:!0,write:M({DID_LOAD_ITEM:function(e){var t=e.root,n=e.action;if(rf(t)){t.element.textContent="";var r=t.query("GET_ITEM",n.id);rs.push(r.filename),clearTimeout(ri),ri=setTimeout(function(){rc(t,rs.join(", "),t.query("GET_LABEL_FILE_ADDED")),rs.length=0},750)}},DID_REMOVE_ITEM:function(e){var t=e.root,n=e.action;rf(t)&&rc(t,n.item.filename,t.query("GET_LABEL_FILE_REMOVED"))},DID_COMPLETE_ITEM_PROCESSING:function(e){var t=e.root,n=e.action,r=t.query("GET_ITEM",n.id).filename,o=t.query("GET_LABEL_FILE_PROCESSING_COMPLETE");ru(t,r+" "+o)},DID_ABORT_ITEM_PROCESSING:rd,DID_REVERT_ITEM_PROCESSING:rd,DID_THROW_ITEM_REMOVE_ERROR:rp,DID_THROW_ITEM_LOAD_ERROR:rp,DID_THROW_ITEM_INVALID:rp,DID_THROW_ITEM_PROCESSING_ERROR:rp}),tag:"span",name:"assistant"}),r_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return e.replace(RegExp(t+".","g"),function(e){return e.charAt(1).toUpperCase()})},rT=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16,n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],r=Date.now(),o=null;return function(){for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];clearTimeout(o);var u=Date.now()-r,l=function(){r=Date.now(),e.apply(void 0,a)};u<t?n||(o=setTimeout(l,t-u)):l()}},rI=function(e){return e.preventDefault()},rv=function(e){var t=e.ref.list.childViews[0].childViews[0];return t?{top:t.rect.element.marginTop,bottom:t.rect.element.marginBottom}:{top:0,bottom:0}},rm=function(e){var t=0,n=0,r=e.ref.list,o=r.childViews[0],i=o.childViews.filter(function(e){return e.rect.element.height}),a=e.query("GET_ACTIVE_ITEMS").map(function(e){return i.find(function(t){return t.id===e.id})}).filter(function(e){return e});if(0===a.length)return{visual:t,bounds:n};var s=o.rect.element.width,u=nr(o,a,r.dragCoordinates),l=a[0].rect.element,c=l.marginTop+l.marginBottom,f=l.marginLeft+l.marginRight,d=l.width+f,p=l.height+c,E=a.find(function(e){return e.markedForRemoval&&e.o
1pacity<.45})?-1:0,_=a.length+ +(void 0!==u&&u>=0)+E,T=nn(s,d);return 1===T?a.forEach(function(e){var r=e.rect.element.height+c;n+=r,t+=r*e.opacity}):t=n=Math.ceil(_/T)*p,{visual:t,bounds:n}},rh=function(e){var t=e.ref.measureHeight||null;return{cappedHeight:parseInt(e.style.maxHeight,10)||null,fixedHeight:0===t?null:t}},rg=function(e,t){var n=e.query("GET_ALLOW_REPLACE"),r=e.query("GET_ALLOW_MULTIPLE"),o=e.query("GET_TOTAL_ITEMS"),i=e.query("GET_MAX_FILES"),a=t.length;return!r&&a>1?(e.dispatch("DID_THROW_MAX_FILES",{source:t,error:e7("warning",0,"Max files")}),!0):(i=r?i:1,(!!r||!n)&&!!j(i)&&o+a>i&&(e.dispatch("DID_THROW_MAX_FILES",{source:t,error:e7("warning",0,"Max files")}),!0))},rR=function(e,t,n){var r=e.childViews[0];return nr(r,t,{left:n.scopeLeft-r.rect.element.left,top:n.scopeTop-(e.rect.outer.top+e.rect.element.marginTop+e.rect.element.scrollTop)})},rO=function(e){var t=e.query("GET_ALLOW_DROP"),n=e.query("GET_DISABLED"),r=t&&!n;if(r&&!e.ref.hopper){var o=n7(e.element,function(t){var n=e.query("GET_BEFORE_DROP_FILE")||function(){return!0};return!e.query("GET_DROP_VALIDATION")||t.every(function(t){return eO("ALLOW_HOPPER_ITEM",t,{query:e.query}).every(function(e){return!0===e})&&n(t)})},{filterItems:function(t){var n=e.query("GET_IGNORED_FILES");return t.filter(function(e){return!tf(e)||!n.includes(e.name.toLowerCase())})},catchesDropsOnPage:e.query("GET_DROP_ON_PAGE"),requiresDropOnElement:e.query("GET_DROP_ON_ELEMENT")});o.onload=function(t,n){var r=e.ref.list.childViews[0].childViews.filter(function(e){return e.rect.element.height}),o=e.query("GET_ACTIVE_ITEMS").map(function(e){return r.find(function(t){return t.id===e.id})}).filter(function(e){return e});eR("ADD_ITEMS",t,{dispatch:e.dispatch}).then(function(t){if(rg(e,t))return!1;e.dispatch("ADD_ITEMS",{items:t,index:rR(e.ref.list,o,n),interactionMethod:2})}),e.dispatch("DID_DROP",{position:n}),e.dispatch("DID_END_DRAG",{position:n})},o.ondragstart=function(t){e.dispatch("DID_START_DRAG",{position:t})},o.ondrag=rT(function(t){e.dispatch("DID_DRAG",{position:t})}),o.ondragend=function(t){e.dispatch("DID_END_DRAG",{position:t})},e.ref.hopper=o,e.ref.drip=e.appendChildView(e.createChildView(nA))}else!r&&e.ref.hopper&&(e.ref.hopper.destroy(),e.ref.hopper=null,e.removeChildView(e.ref.drip))},ry=function(e,t){var n=e.query("GET_ALLOW_BROWSE"),r=e.query("GET_DISABLED"),o=n&&!r;o&&!e.ref.browser?e.ref.browser=e.appendChildView(e.createChildView(ng,Object.assign({},t,{onload:function(t){eR("ADD_ITEMS",t,{dispatch:e.dispatch}).then(function(t){if(rg(e,t))return!1;e.dispatch("ADD_ITEMS",{items:t,index:-1,interactionMethod:3})})}})),0):!o&&e.ref.browser&&(e.removeChildView(e.ref.browser),e.ref.browser=null)},rD=function(e){var t=e.query("GET_ALLOW_PASTE"),n=e.query("GET_DISABLED"),r=t&&!n;r&&!e.ref.paster?(e.ref.paster=ro(),e.ref.paster.onload=function(t){eR("ADD_ITEMS",t,{dispatch:e.dispatch}).then(function(t){if(rg(e,t))return!1;e.dispatch("ADD_ITEMS",{items:t,index:-1,interactionMethod:4})})}):!r&&e.ref.paster&&(e.ref.paster.destroy(),e.ref.paster=null)},rS=M({DID_SET_ALLOW_BROWSE:function(e){ry(e.root,e.props)},DID_SET_ALLOW_DROP:function(e){rO(e.root)},DID_SET_ALLOW_PASTE:function(e){rD(e.root)},DID_SET_DISABLED:function(e){var t=e.root,n=e.props;rO(t),rD(t),ry(t,n),t.query("GET_DISABLED")?t.element.dataset.disabled="disabled":t.element.removeAttribute("data-disabled")}}),rA=P({name:"root",read:function(e){var t=e.root;t.ref.measure&&(t.ref.measureHeight=t.ref.measure.offsetHeight)},create:function(e){var t=e.root,n=e.props,r=t.query("GET_ID");r&&(t.element.id=r);var o=t.query("GET_CLASS_NAME");o&&o.split(" ").filter(function(e){return e.length}).forEach(function(e){t.element.classList.add(e)}),t.ref.label=t.appendChildView(t.createChildView(nO,Object.assign({},n,{translateY:null,caption:t.query("GET_LABEL_IDLE")}))),t.ref.list=t.appendChildView(t.createChildView(nf,{translateY:null})),t.ref.panel=t.appendChildView(t.createChildView(t5,{name:"panel-root"})),t.ref.assistant=t.appendChildView(t.createChildView(rE,Object.assign({},n))),t.ref.data=t.appendChildView(t.createChildView(nC,Object.assign({},n))),t.ref.measure=tD("div"),t.ref.measure.style.height="100%",t.element.appendChild(t.ref.measure),t.ref.bounds=null,t.query("GET_STYLES").filter(function(e){return!G(e.value)}).map(function(e){var n=e.name,r=e.value;t.element.dataset[n]=r}),t.ref.widthPrevious=null,t.ref.widthUpdated=rT(function(){t.ref.updateHistory=[],t.dispatch("DID_RESIZE_ROOT")},250),t.ref.previousAspectRatio=null,t.ref.updateHistory=[];var i=window.matchMedia("(pointer: fine) and (hover: hover)").matches,a="PointerEvent"in window;t.query("GET_ALLOW_REORDER")&&a&&!i&&(t.element.addEventListener("touchmove",rI,{passive:!1}),t.element.addEventListener("gesturestart",rI));var s=t.query("GET_CREDITS");if(2===s.length){var u=document.createElement("a");u.className="filepond--credits",u.href=s[0],u.tabIndex=-1,u.target="_blank",u.rel="noopener noreferrer nofollow",u.textContent=s[1],t.element.appendChild(u),t.ref.credits=u}},write:function(e){var t=e.root,n=e.props,r=e.actions;if(rS({root:t,props:n,actions:r}),r.filter(function(e){return/^DID_SET_STYLE_/.test(e.type)}).filter(function(e){return!G(e.data.value)}).map(function(e){var n=e.type,r=e.data,o=r_(n.substring(8).toLowerCase(),"_");t.element.dataset[o]=r.value,t.invalidateLayout()}
vendor: 4,721 bytes, line 1
1),!t.rect.element.hidden){t.rect.element.width!==t.ref.widthPrevious&&(t.ref.widthPrevious=t.rect.element.width,t.ref.widthUpdated());var o=t.ref.bounds;o||(o=t.ref.bounds=rh(t),t.element.removeChild(t.ref.measure),t.ref.measure=null);var i=t.ref,a=i.hopper,s=i.label,u=i.list,l=i.panel;a&&a.updateHopperState();var c=t.query("GET_PANEL_ASPECT_RATIO"),f=t.query("GET_ALLOW_MULTIPLE"),d=t.query("GET_TOTAL_ITEMS"),p=d===(f?t.query("GET_MAX_FILES")||1e6:1),E=r.find(function(e){return"DID_ADD_ITEM"===e.type});if(p&&E){var _=E.data.interactionMethod;s.opacity=0,f?s.translateY=-40:1===_?s.translateX=40:3===_?s.translateY=40:s.translateY=30}else p||(s.opacity=1,s.translateX=0,s.translateY=0);var T=rv(t),I=rm(t),v=s.rect.element.height,m=!f||p?0:v,h=p?u.rect.element.marginTop:0,g=0===d?0:u.rect.element.marginBottom,R=m+h+I.visual+g,O=m+h+I.bounds+g;if(u.translateY=Math.max(0,m-u.rect.element.marginTop)-T.top,c){var y=t.rect.element.width,D=y*c;c!==t.ref.previousAspectRatio&&(t.ref.previousAspectRatio=c,t.ref.updateHistory=[]);var S=t.ref.updateHistory;if(S.push(y),S.length>4){for(var A=S.length,b=A-10,L=0,P=A;P>=b;P--)if(S[P]===S[P-2]&&L++,L>=2)return}l.scalable=!1,l.height=D;var M=D-m-(g-T.bottom)-(p?h:0);I.visual>M?u.overflow=M:u.overflow=null,t.height=D}else if(o.fixedHeight){l.scalable=!1;var C=o.fixedHeight-m-(g-T.bottom)-(p?h:0);I.visual>C?u.overflow=C:u.overflow=null}else if(o.cappedHeight){var w=R>=o.cappedHeight,N=Math.min(o.cappedHeight,R);l.scalable=!0,l.height=w?N:N-T.top-T.bottom;var U=N-m-(g-T.bottom)-(p?h:0);R>o.cappedHeight&&I.visual>U?u.overflow=U:u.overflow=null,t.height=Math.min(o.cappedHeight,O-T.top-T.bottom)}else{var B=d>0?T.top+T.bottom:0;l.scalable=!0,l.height=Math.max(v,R-B),t.height=Math.max(v,O-B)}t.ref.credits&&l.heightCurrent&&(t.ref.credits.style.transform="translateY("+l.heightCurrent+"px)")}},destroy:function(e){var t=e.root;t.ref.paster&&t.ref.paster.destroy(),t.ref.hopper&&t.ref.hopper.destroy(),t.element.removeEventListener("touchmove",rI),t.element.removeEventListener("gesturestart",rI)},mixins:{styles:["height"]}}),rb=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=null,n=eD(),r=o({items:[],listUpdateTimeout:null,itemUpdateTimeout:null,processingQueue:[],options:en(n)},[ex,function(e){var t={};return a(n,function(n){t["GET_"+er(n,"_").toUpperCase()]=function(t){return e.options[n]}}),t}],[tR,function(e,t,r){var o={};return a(n,function(t){var n=er(t,"_").toUpperCase();o["SET_"+n]=function(o){try{r.options[t]=o.value}catch(e){}e("DID_SET_"+n,{value:r.options[t]})}}),o}]);r.dispatch("SET_OPTIONS",{options:e});var i=function(){document.hidden||r.dispatch("KICK")};document.addEventListener("visibilitychange",i);var u=null,l=!1,c=!1,f=null,d=null,p=function(){l||(l=!0),clearTimeout(u),u=setTimeout(function(){l=!1,f=null,d=null,c&&(c=!1,r.dispatch("DID_STOP_RESIZE"))},500)};window.addEventListener("resize",p);var E=rA(r,{id:ei()}),_=!1,T=!1,I=function(e){return function(t){var n={type:e};if(!t)return n;if(t.hasOwnProperty("error")&&(n.error=t.error?Object.assign({},t.error):null),t.status&&(n.status=Object.assign({},t.status)),t.file&&(n.output=t.file),t.source)n.file=t.source;else if(t.item||t.id){var o=t.item?t.item:r.query("GET_ITEM",t.id);n.file=o?eE(o):null}return t.items&&(n.items=t.items.map(eE)),/progress/.test(e)&&(n.progress=t.progress),t.hasOwnProperty("origin")&&t.hasOwnProperty("target")&&(n.origin=t.origin,n.target=t.target),n}},m={DID_DESTROY:I("destroy"),DID_INIT:I("init"),DID_THROW_MAX_FILES:I("warning"),DID_INIT_ITEM:I("initfile"),DID_START_ITEM_LOAD:I("addfilestart"),DID_UPDATE_ITEM_LOAD_PROGRESS:I("addfileprogress"),DID_LOAD_ITEM:I("addfile"),DID_THROW_ITEM_INVALID:[I("error"),I("addfile")],DID_THROW_ITEM_LOAD_ERROR:[I("error"),I("addfile")],DID_THROW_ITEM_REMOVE_ERROR:[I("error"),I("removefile")],DID_PREPARE_OUTPUT:I("preparefile"),DID_START_ITEM_PROCESSING:I("processfilestart"),DID_UPDATE_ITEM_PROCESS_PROGRESS:I("processfileprogress"),DID_ABORT_ITEM_PROCESSING:I("processfileabort"),DID_COMPLETE_ITEM_PROCESSING:I("processfile"),DID_COMPLETE_ITEM_PROCESSING_ALL:I("processfiles"),DID_REVERT_ITEM_PROCESSING:I("processfilerevert"),DID_THROW_ITEM_PROCESSING_ERROR:[I("error"),I("processfile")],DID_REMOVE_ITEM:I("removefile"),DID_UPDATE_ITEMS:I("updatefiles"),DID_ACTIVATE_ITEM:I("activatefile"),DID_REORDER_ITEMS:I("reorderfiles")},h=function(e){var t=Object.assign({pond:A},e);delete t.type,E.element.dispatchEvent(new CustomEvent("FilePond:"+e.type,{detail:t,bubbles:!0,cancelable:!0,composed:!0}));var n=[];e.hasOwnProperty("error")&&n.push(e.error),e.hasOwnProperty("file")&&n.push(e.file);var o=["type","error","file"];Object.keys(e).filter(function(e){return!o.includes(e)}
1).forEach(function(t){return n.push(e[t])}),A.fire.apply(A,[e.type].concat(n));var i=r.query("GET_ON"+e.type.toUpperCase());i&&i.apply(void 0,n)},g=function(e){e.length&&e.filter(function(e){return m[e.type]}).forEach(function(e){var t=m[e.type];(Array.isArray(t)?t:[t]).forEach(function(t){"DID_INIT_ITEM"===e.type?h(t(e.data)):setTimeout(function(){h(t(e.data))},0)})})},R=function(e){return new Promise(function(t,n){r.dispatch("REQUEST_ITEM_PREPARE",{query:e,success:function(e){t(e)},failure:function(e){n(e)}})})},O=function(e,t){var n;return"object"!=typeof e||(n=e).file&&n.id||t||(t=e,e=void 0),r.dispatch("REMOVE_ITEM",Object.assign({},t,{query:e})),null===r.query("GET_ACTIVE_ITEM",e)},y=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Promise(function(e,n){var o=[],i={};if(N(t[0]))o.push.apply(o,t[0]),Object.assign(i,t[1]||{});else{var a=t[t.length-1];"object"!=typeof a||a instanceof Blob||Object.assign(i,t.pop()),o.push.apply(o,t)}r.dispatch("ADD_ITEMS",{items:o,index:i.index,interactionMethod:1,success:e,failure:n})})},D=function(){return r.query("GET_ACTIVE_ITEMS")},S=function(e){return new Promise(function(t,n){r.dispatch("REQUEST_ITEM_PROCESSING",{query:e,success:function(e){t(e)},failure:function(e){n(e)}})})},A=Object.assign({},ef(),{},{_read:function(){l&&(d=window.innerWidth,f||(f=d),c||d===f||(r.dispatch("DID_START_RESIZE"),c=!0)),T&&_&&(_=null===E.element.offsetParent),_||(E._read(),T=E.rect.element.hidden)},_write:function(e){var t=r.processActionQueue().filter(function(e){return!/^SET_/.test(e.type)});(!_||t.length)&&(g(t),_=E._write(e,t,c),e_(r.query("GET_ITEMS")),_&&r.processDispatchQueue())}},{},eo(r,n),{setOptions:function(e){return r.dispatch("SET_OPTIONS",{options:e})},addFile:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(n,r){y([{source:e,options:t}],{index:t.index}).then(function(e){return n(e&&e[0])}).catch(r)})},addFiles:y,getFile:function(e){return r.query("GET_ACTIVE_ITEM",e)},processFile:S,prepareFile:R,removeFile:O,moveFile:function(e,t){return r.dispatch("MOVE_ITEM",{query:e,index:t})},getFiles:D,processFiles:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Array.isArray(t[0])?t[0]:t;return r.length?Promise.all(r.map(S)):Promise.all(D().filter(function(e){return(e.status!==eT.IDLE||e.origin!==eI.LOCAL)&&e.status!==eT.PROCESSING&&e.status!==eT.PROCESSING_COMPLETE&&e.status!==eT.PROCESSING_REVERT_ERROR}).map(S))},removeFiles:function(){for(var e,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=Array.isArray(n[0])?n[0]:n;"object"==typeof o[o.length-1]?e=o.pop():Array.isArray(n[0])&&(e=n[1]);var i=D();return o.length?o.map(function(e){return v(e)?i[e]?i[e].id:null:e}).filter(function(e){return e}).map(function(t){return O(t,e)}):Promise.all(i.map(function(t){return O(t,e)}))},prepareFiles:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Array.isArray(t[0])?t[0]:t;return Promise.all((r.length?r:D()).map(R))},sort:function(e){return r.dispatch("SORT",{compare:e})},browse:function(){var e=E.element.querySelector("input[type=file]");e&&e.click()},destroy:function(){A.fire("destroy",E.element),r.dispatch("ABORT_ALL"),E._destroy(),window.removeEventListener("resize",p),document.removeEventListener("visibilitychange",i),r.dispatch("DID_DESTROY")},insertBefore:function(e){return C(E.element,e)},insertAfter:function(e){return w(E.element,e)},appendTo:function(e){return e.appendChild(E.element)},replaceElement:function(e){C(E.element,e),e.parentNode.removeChild(e),t=e},restoreElement:function(){t&&(w(t,E.element),E.element.parentNode.removeChild(E.element),t=null)},isAttachedTo:function(e){return E.element===e||t===e},element:{get:function(){return E.element}},status:{get:function(){return r.query("GET_STATUS")}}});return r.dispatch("DID_INIT"),s(A)},rL=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};return a(eD(),function(e,n){t[e]=n[0]}),rb(Object.assign({},t,{},e))},rP=function e(t,n){a(n,function(n,r){a(t,function(e,o){var i=new RegExp(n);if(i.test(e)&&(delete t[e],!1!==r)){if(V(r)){t[r]=o;return}var a,s=r.group;K(r)&&!t[s]&&(t[s]={}),t[s][(a=e.replace(i,"")).charAt(0).toLowerCase()+a.slice(1)]=o}}),r.mapping&&e(t[r.group],r.mapping)})},rM=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];a(e.attributes,function(t){n.push(e.attributes[t])});var r=n.filter(function(e){return e.name}).reduce(function(t,n){var r=u(e,n.name);return t[r_(n.name.replace(/^data-/,""))]=r===n.name||r,t},{});return rP(r,t),r},rC=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={"^class$":"className","^multiple$":"allowMultiple","^capture$":"captureMethod","^webkitdirectory$":"allowDirectoriesOnly","^server":{group:"server",mapping:{"^process":{group:"process"},"^revert":{group:"revert"},"^fetch":{group:"fetch"},"^restore":{group:"restore"},"^load":{group:"load"}}}
1,"^type$":!1,"^files$":!1};eO("SET_ATTRIBUTE_TO_OPTION_MAP",n);var r=Object.assign({},t),o=rM("FIELDSET"===e.nodeName?e.querySelector("input[type=file]"):e,n);Object.keys(o).forEach(function(e){K(o[e])?(K(r[e])||(r[e]={}),Object.assign(r[e],o[e])):r[e]=o[e]}),r.files=(t.files||[]).concat(Array.from(e.querySelectorAll("input:not([type=file])")).map(function(e){return{source:e.value,options:{type:e.dataset.type}}}));var i=rL(r);return e.files&&Array.from(e.files).forEach(function(e){i.addFile(e)}),i.replaceElement(e),i},rw=function(){var e;return(e=arguments.length<=0?void 0:arguments[0],e instanceof HTMLElement)?rC.apply(void 0,arguments):rL.apply(void 0,arguments)},rN=["fire","_read","_write"],rG=function(e){var t={};return ed(e,t,rN),t},rU=function(e,t){return e.replace(/(?:{([a-zA-Z]+)})/g,function(e,n){return t[n]})},rB=function(e){var t=new Blob(["(",e.toString(),")()"],{type:"application/javascript"}),n=URL.createObjectURL(t),r=new Worker(n);return{transfer:function(e,t){},post:function(e,t,n){var o=ei();r.onmessage=function(e){e.data.id===o&&t(e.data.message)},r.postMessage({id:o,message:e},n)},terminate:function(){r.terminate(),URL.revokeObjectURL(n)}}},rF=function(e){return new Promise(function(t,n){var r=new Image;r.onload=function(){t(r)},r.onerror=function(e){n(e)},r.src=e})},rq=function(e,t){var n=e.slice(0,e.size,e.type);return n.lastModifiedDate=e.lastModifiedDate,n.name=t,n},rV=function(e){return rq(e,e.name)},rx=[],rY=function(e){rx.includes(e)||(rx.push(e),Object.assign(eA,e({addFilter:ey,utils:{Type:eh,forin:a,isString:V,isFile:tf,toNaturalFileSize:tC,replaceInString:rU,getExtensionFromFilename:eW,getFilenameWithoutExtension:tl,guesstimateMimeType:nU,getFileFromBlob:eK,getFilenameFromURL:eX,createRoute:M,createWorker:rB,createView:P,createItemAPI:eE,loadImage:rF,copyFile:rV,renameFile:rq,createBlob:e$,applyFilterChain:eR,text:tS,getNumericAspectRatioFromString:eL},views:{fileActionButton:tM}}).options))},rk=(r=p()&&"[object OperaMini]"!==Object.prototype.toString.call(window.operamini)&&"visibilityState"in document&&"Promise"in window&&"slice"in Blob.prototype&&"URL"in window&&"createObjectURL"in window.URL&&"performance"in window&&("supports"in(window.CSS||{})||/MSIE|Trident/.test(window.navigator.userAgent)),function(){return r}),rj=[],rH=function(){};if(e.Status={},e.FileStatus={},e.FileOrigin={},e.OptionTypes={},e.create=rH,e.destroy=rH,e.parse=rH,e.find=rH,e.registerPlugin=rH,e.getOptions=rH,e.setOptions=rH,rk()){!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:60,r="__framePainter";if(window[r]){window[r].readers.push(e),window[r].writers.push(t);return}window[r]={readers:[e],writers:[t]};var o=window[r],i=1e3/n,a=null,s=null,u=null,l=null,c=function(){document.hidden?(u=function(){return window.setTimeout(function(){return f(performance.now())},i)},l=function(){return window.clearTimeout(s)}):(u=function(){return window.requestAnimationFrame(f)},l=function(){return window.cancelAnimationFrame(s)})};document.addEventListener("visibilitychange",function(){l&&l(),c(),f(performance.now())});var f=function e(t){s=u(e),a||(a=t);var n=t-a;n<=i||(a=t-n%i,o.readers.forEach(function(e){return e()}),o.writers.forEach(function(e){return e(t)}))};c(),f(performance.now())}(function(){rj.forEach(function(e){return e._read()})},function(e){rj.forEach(function(t){return t._write(e)})});var rX=function t(){document.dispatchEvent(new CustomEvent("FilePond:loaded",{detail:{supported:rk,create:e.create,destroy:e.destroy,parse:e.parse,find:e.find,registerPlugin:e.registerPlugin,setOptions:e.setOptions}})),document.removeEventListener("DOMContentLoaded",t)};"loading"!==document.readyState?setTimeout(function(){return rX()},0):document.addEventListener("DOMContentLoaded",rX);var rW=function(){return a(eD(),function(t,n){e.OptionTypes[t]=n[1]})};e.Status=Object.assign({},eM),e.FileOrigin=Object.assign({},eI),e.FileStatus=Object.assign({},eT),e.OptionTypes={},rW(),e.create=function(){var t=rw.apply(void 0,arguments);return t.on("destroy",e.destroy),rj.push(t),rG(t)},e.destroy=function(e){var t=rj.findIndex(function(t){return t.isAttachedTo(e)});return t>=0&&(rj.splice(t,1)[0].restoreElement(),!0)},e.parse=function(t){return Array.from(t.querySelectorAll(".filepond")).filter(function(e){return!rj.find(function(t){return t.isAttachedTo(e)})}).map(function(t){return e.create(t)})},e.find=function(e){var t=rj.find(function(t){return t.isAttachedTo(e)});return t?rG(t):null},e.registerPlugin=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];t.forEach(rY),rW()},e.getOptions=function(){var e={};return a(eD(),function(t,n){e[t]=n[0]}),e}
1,e.setOptions=function(t){return K(t)&&(rj.forEach(function(e){e.setOptions(t)}),eS(t)),e.getOptions()}}e.supported=rk,Object.defineProperty(e,"__esModule",{value:!0})}(t)}}]);
2//# sourceMappingURL=b5abf434.b8ecddf4b76eb842.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.